lnd-client 0.1.0.0 → 0.1.0.1
raw patch · 113 files changed
+117959/−20435 lines, 113 filesdep +GenericPrettydep +generic-pretty-instancesdep +timedep −asn1-encodingdep −asn1-typesdep −deepseqdep ~aesondep ~asyncdep ~base16-bytestringnew-component:exe:lnd-client-profPVP: major bump suggested
API removals or changes: PVP suggests a major version bump
Dependencies added: GenericPretty, generic-pretty-instances, time, tls, x509-store
Dependencies removed: asn1-encoding, asn1-types, deepseq
Dependency ranges changed: aeson, async, base16-bytestring, base64-bytestring, bytestring, chronos, containers, cryptohash-sha256, cryptonite, extra, hspec, http2, http2-client, http2-client-grpc, http2-grpc-proto-lens, http2-grpc-types, katip, microlens, network-bitcoin, persistent, proto-lens, proto-lens-runtime, qrcode-core, qrcode-juicypixels, template-haskell, text, universum, unliftio
API changes (from Hackage documentation)
Files
- LICENSE +2/−2
- README.md +32/−13
- lnd-client.cabal +507/−92
- prof/LndClient/Main.hs +28/−0
- src/LndClient.hs +1/−1
- src/LndClient/Class.hs +17/−0
- src/LndClient/Data/AddHodlInvoice.hs +12/−11
- src/LndClient/Data/AddInvoice.hs +19/−17
- src/LndClient/Data/Channel.hs +38/−23
- src/LndClient/Data/ChannelBackup.hs +87/−0
- src/LndClient/Data/ChannelPoint.hs +22/−11
- src/LndClient/Data/CloseChannel.hs +39/−30
- src/LndClient/Data/ClosedChannel.hs +9/−8
- src/LndClient/Data/ClosedChannels.hs +13/−12
- src/LndClient/Data/FinalizePsbt.hs +39/−0
- src/LndClient/Data/ForceClosedChannel.hs +17/−24
- src/LndClient/Data/FundPsbt.hs +87/−0
- src/LndClient/Data/FundingPsbtFinalize.hs +25/−0
- src/LndClient/Data/FundingPsbtVerify.hs +23/−0
- src/LndClient/Data/FundingShim.hs +71/−0
- src/LndClient/Data/FundingShimCancel.hs +24/−0
- src/LndClient/Data/FundingStateStep.hs +37/−0
- src/LndClient/Data/GetInfo.hs +10/−9
- src/LndClient/Data/HtlcEvent.hs +20/−14
- src/LndClient/Data/InitWallet.hs +12/−9
- src/LndClient/Data/Invoice.hs +26/−20
- src/LndClient/Data/Kind.hs +1/−1
- src/LndClient/Data/LeaseOutput.hs +46/−0
- src/LndClient/Data/ListChannels.hs +12/−11
- src/LndClient/Data/ListInvoices.hs +19/−17
- src/LndClient/Data/ListLeases.hs +50/−0
- src/LndClient/Data/ListUnspent.hs +63/−0
- src/LndClient/Data/LndEnv.hs +118/−74
- src/LndClient/Data/NewAddress.hs +34/−20
- src/LndClient/Data/Newtype.hs +149/−59
- src/LndClient/Data/OpenChannel.hs +53/−38
- src/LndClient/Data/OutPoint.hs +27/−0
- src/LndClient/Data/PayReq.hs +53/−14
- src/LndClient/Data/Payment.hs +35/−19
- src/LndClient/Data/Peer.hs +23/−20
- src/LndClient/Data/PendingChannel.hs +21/−30
- src/LndClient/Data/PendingChannels.hs +13/−15
- src/LndClient/Data/PendingOpenChannel.hs +15/−21
- src/LndClient/Data/PsbtShim.hs +38/−0
- src/LndClient/Data/PublishTransaction.hs +39/−0
- src/LndClient/Data/ReleaseOutput.hs +41/−0
- src/LndClient/Data/SendCoins.hs +45/−0
- src/LndClient/Data/SendPayment.hs +22/−17
- src/LndClient/Data/SignMessage.hs +76/−0
- src/LndClient/Data/SubscribeChannelEvents.hs +24/−12
- src/LndClient/Data/SubscribeInvoices.hs +9/−8
- src/LndClient/Data/TrackPayment.hs +9/−8
- src/LndClient/Data/Type.hs +65/−11
- src/LndClient/Data/UnlockWallet.hs +14/−11
- src/LndClient/Data/VerifyMessage.hs +46/−0
- src/LndClient/Data/WaitingCloseChannel.hs +10/−12
- src/LndClient/Data/WalletBalance.hs +24/−0
- src/LndClient/Import.hs +1/−0
- src/LndClient/Import/External.hs +40/−18
- src/LndClient/LndTest.hs +137/−125
- src/LndClient/Log.hs +178/−0
- src/LndClient/Orphan.hs +23/−0
- src/LndClient/QRCode.hs +5/−6
- src/LndClient/RPC/Generic.hs +100/−59
- src/LndClient/RPC/Katip.hs +115/−47
- src/LndClient/RPC/Silent.hs +83/−21
- src/LndClient/RPC/TH.hs +364/−118
- src/LndClient/Util.hs +49/−20
- src/LndClient/Watcher.hs +182/−123
- src/LndGrpc/Client.hs +64/−19
- src/Proto/Autopilotrpc/Autopilot.hs +1753/−0
- src/Proto/Autopilotrpc/Autopilot_Fields.hs +88/−0
- src/Proto/Chainrpc/Chainnotifier.hs +2306/−0
- src/Proto/Chainrpc/Chainnotifier_Fields.hs +177/−0
- src/Proto/InvoiceGrpc.hs +0/−1568
- src/Proto/InvoiceGrpc_Fields.hs +0/−114
- src/Proto/Invoicesrpc/Invoices.hs +2190/−0
- src/Proto/Invoicesrpc/Invoices_Fields.hs +162/−0
- src/Proto/Lightning.hs +21239/−0
- src/Proto/Lightning_Fields.hs +1107/−0
- src/Proto/Lnclipb/Lncli.hs +256/−0
- src/Proto/Lnclipb/Lncli_Fields.hs +52/−0
- src/Proto/LndGrpc.hs too large to diff
- src/Proto/LndGrpc_Fields.hs +0/−3320
- src/Proto/Lnrpc/Ln0.hs +26453/−0
- src/Proto/Lnrpc/Ln0_Fields.hs +1787/−0
- src/Proto/Lnrpc/Ln1.hs +21126/−0
- src/Proto/Lnrpc/Ln1_Fields.hs +1211/−0
- src/Proto/RouterGrpc.hs +0/−10865
- src/Proto/RouterGrpc_Fields.hs +0/−620
- src/Proto/Routerrpc/Router.hs +10699/−0
- src/Proto/Routerrpc/Router_Fields.hs +621/−0
- src/Proto/Signrpc/Signer.hs +3204/−0
- src/Proto/Signrpc/Signer_Fields.hs +223/−0
- src/Proto/Stateservice.hs +671/−0
- src/Proto/Stateservice_Fields.hs +34/−0
- src/Proto/Verrpc/Verrpc.hs +806/−0
- src/Proto/Verrpc/Verrpc_Fields.hs +87/−0
- src/Proto/WalletUnlockerGrpc.hs +0/−2121
- src/Proto/WalletUnlockerGrpc_Fields.hs +0/−118
- src/Proto/Walletrpc/Walletkit.hs +9990/−0
- src/Proto/Walletrpc/Walletkit_Fields.hs +511/−0
- src/Proto/Walletunlocker.hs +2893/−0
- src/Proto/Walletunlocker_Fields.hs +190/−0
- src/Proto/Watchtowerrpc/Watchtower.hs +452/−0
- src/Proto/Watchtowerrpc/Watchtower_Fields.hs +57/−0
- src/Proto/Wtclientrpc/Wtclient.hs +2883/−0
- src/Proto/Wtclientrpc/Wtclient_Fields.hs +155/−0
- test/LndClient/ChanBakSpec.hs +55/−0
- test/LndClient/PsbtSpec.hs +167/−0
- test/LndClient/RPCSpec.hs +438/−279
- test/LndClient/TestApp.hs +0/−160
- tkit/LndClient/TestApp.hs +164/−0
@@ -1,4 +1,4 @@-Copyright Author name here (c) 2020+Copyright Yolo name here (c) 2022 All rights reserved. @@ -13,7 +13,7 @@ disclaimer in the documentation and/or other materials provided with the distribution. - * Neither the name of Author name here nor the names of other+ * Neither the name of Yolo name here nor the names of other contributors may be used to endorse or promote products derived from this software without specific prior written permission.
@@ -1,28 +1,47 @@ # lnd-client -Lightning Network Daemon (LND) client library for Haskell. Docker is the only thing required to get started. Development environment is packed into [nix-shell](https://nixos.org/nixos/nix-pills/developing-with-nix-shell.html)+Lightning Network Daemon (LND) client library for Haskell. Nix is the only thing required to get started. Development environment is packed into [nix-shell](https://nixos.org/nixos/nix-pills/developing-with-nix-shell.html). -```bash-# start nix-shell+## Quickstart++Spawn shell:++```sh ./nix/shell.sh+``` -# run tests in nix-shell-stack test+Develop in shell: -# develop in nix-shell+```sh vi . ``` -Optional nix-shell environment variables+Run all tests with hot code reloading: -```bash-vi ~/.zshrc+```sh+ghcid+``` +Run specific tests with hot code reloading:++```sh+ghcid --setup ":set args -m fromJSON"+```++Optional environment variables:++```sh+vi ~/.profile+ export VIM_BACKGROUND="light" # or "dark" export VIM_COLOR_SCHEME="PaperColor" # or "jellybeans"+export NIX_EXTRA_BUILD_INPUTS='[(import (fetchTarball "https://github.com/21it/ultimate-haskell-ide/tarball/ebfcd25eeac74ba813efa0b5929174cd59c4f4d2") {bundle = "haskell"; withGit = false;})]'+export NIX_WITH_SHELL_HOOK="true" ``` -# gRPC schema upgrade-- we are using lnd version 0.13.1-beta.rc2-- download fresh grpc files to proto directory-- run `./script/generate-protoc.sh`+## gRPC schema upgrade++- We are using lnd version 0.14.1-beta+- Run `./script/update-protobuf.sh` (This will download latest proto files from github, so make sure that lnd version is consistent with latest protobufs)+- Manually split `lightning.proto` into 3 smaller files, because at the single file is way too big and GHC-8.10.7 requires too much RAM to compile it. The issue might disappear with GHC-9.X.X.+- Run `./script/generate-protoc.sh` (This will generate haskell types and instances for downloaded protos)
@@ -1,19 +1,19 @@-cabal-version: 1.12+cabal-version: 2.0 --- This file has been generated from package.yaml by hpack version 0.34.2.+-- This file has been generated from package.yaml by hpack version 0.34.6. -- -- see: https://github.com/sol/hpack name: lnd-client-version: 0.1.0.0+version: 0.1.0.1 synopsis: Lightning Network Daemon (LND) client library for Haskell description: You can find documentation at <https://hackage.haskell.org/package/lnd-client> category: Lightning, Bitcoin, Finance, Network, Payments homepage: https://github.com/coingaming/lnd-client#readme bug-reports: https://github.com/coingaming/lnd-client/issues-author: Mikhail Prushinskiy <mprushinsky@gmail.com>-maintainer: Mikhail Prushinskiy <mprushinsky@gmail.com>, Ilja Tkachuk <tkachuk.labs@gmail.com>, Artem Markov <drownbes@gmail.com>-copyright: 2020 Coingaming <hello@coingaming.io>+author: 21it <21it@tuta.io>, Mikhail Prushinskiy <mprushinsky@gmail.com>, Artem Markov <drownbes@gmail.com>+maintainer: 21it <21it@tuta.io>, Mikhail Prushinskiy <mprushinsky@gmail.com>, Artem Markov <drownbes@gmail.com>+copyright: 2022 Yolo <hello@coingaming.io> license: BSD3 license-file: LICENSE build-type: Simple@@ -25,6 +25,10 @@ type: git location: https://github.com/coingaming/lnd-client +flag ghcid+ manual: True+ default: False+ library exposed-modules: LndClient@@ -32,38 +36,59 @@ LndClient.Data.AddHodlInvoice LndClient.Data.AddInvoice LndClient.Data.Channel+ LndClient.Data.ChannelBackup LndClient.Data.ChannelPoint LndClient.Data.CloseChannel LndClient.Data.ClosedChannel LndClient.Data.ClosedChannels+ LndClient.Data.FinalizePsbt LndClient.Data.ForceClosedChannel+ LndClient.Data.FundingPsbtFinalize+ LndClient.Data.FundingPsbtVerify+ LndClient.Data.FundingShim+ LndClient.Data.FundingShimCancel+ LndClient.Data.FundingStateStep+ LndClient.Data.FundPsbt LndClient.Data.GetInfo LndClient.Data.HtlcEvent LndClient.Data.InitWallet LndClient.Data.Invoice LndClient.Data.Kind+ LndClient.Data.LeaseOutput LndClient.Data.ListChannels LndClient.Data.ListInvoices+ LndClient.Data.ListLeases+ LndClient.Data.ListUnspent LndClient.Data.LndEnv LndClient.Data.NewAddress LndClient.Data.Newtype LndClient.Data.OpenChannel+ LndClient.Data.OutPoint LndClient.Data.Payment LndClient.Data.PayReq LndClient.Data.Peer LndClient.Data.PendingChannel LndClient.Data.PendingChannels LndClient.Data.PendingOpenChannel+ LndClient.Data.PsbtShim+ LndClient.Data.PublishTransaction+ LndClient.Data.ReleaseOutput+ LndClient.Data.SendCoins LndClient.Data.SendPayment+ LndClient.Data.SignMessage LndClient.Data.SubscribeChannelEvents LndClient.Data.SubscribeInvoices LndClient.Data.TrackPayment LndClient.Data.Type LndClient.Data.UnlockWallet+ LndClient.Data.VerifyMessage LndClient.Data.WaitingCloseChannel+ LndClient.Data.WalletBalance LndClient.Import LndClient.Import.External LndClient.LndTest+ LndClient.Log+ LndClient.Orphan LndClient.QRCode LndClient.RPC.Generic LndClient.RPC.Katip@@ -72,112 +97,502 @@ LndClient.Util LndClient.Watcher LndGrpc.Client- Proto.InvoiceGrpc- Proto.InvoiceGrpc_Fields- Proto.LndGrpc- Proto.LndGrpc_Fields- Proto.RouterGrpc- Proto.RouterGrpc_Fields- Proto.WalletUnlockerGrpc- Proto.WalletUnlockerGrpc_Fields+ Proto.Autopilotrpc.Autopilot+ Proto.Autopilotrpc.Autopilot_Fields+ Proto.Chainrpc.Chainnotifier+ Proto.Chainrpc.Chainnotifier_Fields+ Proto.Invoicesrpc.Invoices+ Proto.Invoicesrpc.Invoices_Fields+ Proto.Lightning+ Proto.Lightning_Fields+ Proto.Lnclipb.Lncli+ Proto.Lnclipb.Lncli_Fields+ Proto.Lnrpc.Ln0+ Proto.Lnrpc.Ln0_Fields+ Proto.Lnrpc.Ln1+ Proto.Lnrpc.Ln1_Fields+ Proto.Routerrpc.Router+ Proto.Routerrpc.Router_Fields+ Proto.Signrpc.Signer+ Proto.Signrpc.Signer_Fields+ Proto.Stateservice+ Proto.Stateservice_Fields+ Proto.Verrpc.Verrpc+ Proto.Verrpc.Verrpc_Fields+ Proto.Walletrpc.Walletkit+ Proto.Walletrpc.Walletkit_Fields+ Proto.Walletunlocker+ Proto.Walletunlocker_Fields+ Proto.Watchtowerrpc.Watchtower+ Proto.Watchtowerrpc.Watchtower_Fields+ Proto.Wtclientrpc.Wtclient+ Proto.Wtclientrpc.Wtclient_Fields other-modules: Paths_lnd_client+ autogen-modules:+ Paths_lnd_client hs-source-dirs: src- default-extensions: NoImplicitPrelude MultiParamTypeClasses LambdaCase OverloadedStrings ScopedTypeVariables DataKinds KindSignatures- ghc-options: -Weverything -Wno-missing-export-lists -Wno-missing-exported-signatures -Wno-missing-import-lists -Wno-missed-specialisations -Wno-all-missed-specialisations -Wno-unsafe -Wno-safe -Wno-missing-local-signatures -Wno-monomorphism-restriction+ default-extensions:+ NoImplicitPrelude+ MultiParamTypeClasses+ LambdaCase+ OverloadedStrings+ ScopedTypeVariables+ DerivingStrategies+ GeneralizedNewtypeDeriving+ DataKinds+ KindSignatures+ StrictData+ DeriveGeneric+ TypeOperators+ FlexibleContexts+ FlexibleInstances+ ghc-options: -Weverything -Wno-missing-export-lists -Wno-missing-exported-signatures -Wno-missing-import-lists -Wno-missed-specialisations -Wno-all-missed-specialisations -Wno-unsafe -Wno-safe -Wno-missing-local-signatures build-depends:- JuicyPixels >=3.3.3 && <3.4- , aeson >=1.4.4.0 && <1.4.8- , asn1-encoding >=0.9.6 && <0.10- , asn1-types >=0.3 && <0.4- , async >=2.2.2 && <2.2.3+ GenericPretty+ , JuicyPixels >=3.3.3 && <3.4+ , aeson >=1.4.4.0+ , async >=2.2.2 && <2.3 , base >=4.7 && <5- , base16-bytestring >=1.0.1.0 && <1.0.2- , base64-bytestring >=1.0.0.2 && <1.0.1- , bytestring >=0.10.8.2 && <0.10.9- , chronos >=1.0.7 && <1.0.10- , containers >=0.6.0.1 && <0.6.1- , cryptohash-sha256 >=0.11.101.0 && <0.11.102- , cryptonite >=0.25 && <0.29- , deepseq >=1.4.4.0 && <1.4.5- , envparse >=0.4.1 && <0.4.2- , extra >=1.6.18 && <1.6.20- , hspec >=2.7.1 && <2.7.2- , http2 >=2.0.3 && <3.0.3- , http2-client >=0.10.0.0 && <0.10.1- , http2-client-grpc >=0.8.0.0 && <0.8.1- , http2-grpc-proto-lens >=0.1.0.0 && <0.1.1- , http2-grpc-types >=0.5.0.0 && <0.5.1- , katip >=0.8.3.0 && <0.8.4- , microlens >=0.4.10 && <0.5- , network-bitcoin >=1.8.3 && <1.9.2+ , base16-bytestring >=1.0.1.0 && <1.1+ , base64-bytestring >=1.0.0.2 && <1.3+ , bytestring >=0.10.8.2 && <0.13+ , chronos >=1.0.7 && <1.2+ , containers >=0.6.0.1 && <0.6.6+ , cryptohash-sha256 >=0.11.101.0 && <0.12+ , cryptonite >=0.25 && <0.31+ , envparse ==0.4.1.*+ , extra >=1.6.18 && <1.8+ , generic-pretty-instances+ , http2 >=3.0.3+ , http2-client+ , http2-client-grpc >=0.8.0.0+ , http2-grpc-proto-lens >=0.1.0.0+ , http2-grpc-types >=0.5.0.0+ , katip >=0.8.3.0 && <0.9+ , microlens >=0.4.10+ , network-bitcoin >=1.8.3 , pem >=0.2.4 && <0.3- , persistent >=2.11.0.2 && <2.11.1- , proto-lens >=0.7.0 && <0.8- , proto-lens-runtime >=0.7.0 && <0.8- , qrcode-core >=0.9 && <0.9.3- , qrcode-juicypixels >=0.8.0 && <0.8.1+ , persistent >=2.11.0.2+ , proto-lens >=0.7.0+ , proto-lens-runtime >=0.7.0+ , qrcode-core ==0.9.*+ , qrcode-juicypixels >=0.8.0 && <0.9 , scientific >=0.3.6.2 && <0.3.7 , stm >=2.5.0.0 && <2.5.1- , template-haskell >=2.14.0.0 && <2.14.1- , text >=1.2.3.1 && <1.2.4+ , template-haskell >=2.14.0.0 && <2.19+ , text >=1.2.3.1 && <2.1+ , time+ , tls , unbounded-delays >=0.1.1.0 && <0.1.2- , universum >=1.5.0 && <1.5.1- , unliftio >=0.2.12 && <0.2.13- , x509 >=1.7.5 && <1.7.6+ , universum >=1.5.0 && <1.8+ , unliftio >=0.2.12+ , x509 ==1.7.5.*+ , x509-store+ if impl(ghc >= 8.10.7)+ ghc-options: -Wno-missing-safe-haskell-mode -Wno-prepositive-qualified-module -fenable-th-splice-warnings -fprint-potential-instances default-language: Haskell2010 +library lnd-client-tkit+ exposed-modules:+ LndClient.TestApp+ other-modules:+ Paths_lnd_client+ autogen-modules:+ Paths_lnd_client+ hs-source-dirs:+ tkit+ default-extensions:+ NoImplicitPrelude+ MultiParamTypeClasses+ LambdaCase+ OverloadedStrings+ ScopedTypeVariables+ DerivingStrategies+ GeneralizedNewtypeDeriving+ DataKinds+ KindSignatures+ StrictData+ DeriveGeneric+ TypeOperators+ FlexibleContexts+ FlexibleInstances+ ghc-options: -Weverything -Wno-missing-export-lists -Wno-missing-exported-signatures -Wno-missing-import-lists -Wno-missed-specialisations -Wno-all-missed-specialisations -Wno-unsafe -Wno-safe -Wno-missing-local-signatures+ build-depends:+ base >=4.7 && <5+ , http2-client-grpc+ , lnd-client+ , network-bitcoin+ if impl(ghc >= 8.10.7)+ ghc-options: -Wno-missing-safe-haskell-mode -Wno-prepositive-qualified-module -fenable-th-splice-warnings -fprint-potential-instances+ default-language: Haskell2010++executable lnd-client-prof+ main-is: LndClient/Main.hs+ other-modules:+ Paths_lnd_client+ autogen-modules:+ Paths_lnd_client+ hs-source-dirs:+ prof+ default-extensions:+ NoImplicitPrelude+ MultiParamTypeClasses+ LambdaCase+ OverloadedStrings+ ScopedTypeVariables+ DerivingStrategies+ GeneralizedNewtypeDeriving+ DataKinds+ KindSignatures+ StrictData+ DeriveGeneric+ TypeOperators+ FlexibleContexts+ FlexibleInstances+ ghc-options: -Weverything -Wno-missing-export-lists -Wno-missing-exported-signatures -Wno-missing-import-lists -Wno-missed-specialisations -Wno-all-missed-specialisations -Wno-unsafe -Wno-safe -Wno-missing-local-signatures -main-is LndClient.Main -O2 -optc-O3 -funfolding-use-threshold=16 -threaded -rtsopts "-with-rtsopts=-N -s -p -h -xt" -fprof-auto -optl-fuse-ld=gold+ ld-options: -fuse-ld=gold+ build-depends:+ async+ , base >=4.7 && <5+ , lnd-client+ , lnd-client-tkit+ if impl(ghc >= 8.10.7)+ ghc-options: -Wno-missing-safe-haskell-mode -Wno-prepositive-qualified-module -fenable-th-splice-warnings -fprint-potential-instances+ if flag(ghcid)+ other-modules:+ LndClient+ LndClient.Class+ LndClient.Data.AddHodlInvoice+ LndClient.Data.AddInvoice+ LndClient.Data.Channel+ LndClient.Data.ChannelBackup+ LndClient.Data.ChannelPoint+ LndClient.Data.CloseChannel+ LndClient.Data.ClosedChannel+ LndClient.Data.ClosedChannels+ LndClient.Data.FinalizePsbt+ LndClient.Data.ForceClosedChannel+ LndClient.Data.FundingPsbtFinalize+ LndClient.Data.FundingPsbtVerify+ LndClient.Data.FundingShim+ LndClient.Data.FundingShimCancel+ LndClient.Data.FundingStateStep+ LndClient.Data.FundPsbt+ LndClient.Data.GetInfo+ LndClient.Data.HtlcEvent+ LndClient.Data.InitWallet+ LndClient.Data.Invoice+ LndClient.Data.Kind+ LndClient.Data.LeaseOutput+ LndClient.Data.ListChannels+ LndClient.Data.ListInvoices+ LndClient.Data.ListLeases+ LndClient.Data.ListUnspent+ LndClient.Data.LndEnv+ LndClient.Data.NewAddress+ LndClient.Data.Newtype+ LndClient.Data.OpenChannel+ LndClient.Data.OutPoint+ LndClient.Data.Payment+ LndClient.Data.PayReq+ LndClient.Data.Peer+ LndClient.Data.PendingChannel+ LndClient.Data.PendingChannels+ LndClient.Data.PendingOpenChannel+ LndClient.Data.PsbtShim+ LndClient.Data.PublishTransaction+ LndClient.Data.ReleaseOutput+ LndClient.Data.SendCoins+ LndClient.Data.SendPayment+ LndClient.Data.SignMessage+ LndClient.Data.SubscribeChannelEvents+ LndClient.Data.SubscribeInvoices+ LndClient.Data.TrackPayment+ LndClient.Data.Type+ LndClient.Data.UnlockWallet+ LndClient.Data.VerifyMessage+ LndClient.Data.WaitingCloseChannel+ LndClient.Data.WalletBalance+ LndClient.Import+ LndClient.Import.External+ LndClient.LndTest+ LndClient.Log+ LndClient.Orphan+ LndClient.QRCode+ LndClient.RPC.Generic+ LndClient.RPC.Katip+ LndClient.RPC.Silent+ LndClient.RPC.TH+ LndClient.Util+ LndClient.Watcher+ LndGrpc.Client+ Proto.Autopilotrpc.Autopilot+ Proto.Autopilotrpc.Autopilot_Fields+ Proto.Chainrpc.Chainnotifier+ Proto.Chainrpc.Chainnotifier_Fields+ Proto.Invoicesrpc.Invoices+ Proto.Invoicesrpc.Invoices_Fields+ Proto.Lightning+ Proto.Lightning_Fields+ Proto.Lnclipb.Lncli+ Proto.Lnclipb.Lncli_Fields+ Proto.Lnrpc.Ln0+ Proto.Lnrpc.Ln0_Fields+ Proto.Lnrpc.Ln1+ Proto.Lnrpc.Ln1_Fields+ Proto.Routerrpc.Router+ Proto.Routerrpc.Router_Fields+ Proto.Signrpc.Signer+ Proto.Signrpc.Signer_Fields+ Proto.Stateservice+ Proto.Stateservice_Fields+ Proto.Verrpc.Verrpc+ Proto.Verrpc.Verrpc_Fields+ Proto.Walletrpc.Walletkit+ Proto.Walletrpc.Walletkit_Fields+ Proto.Walletunlocker+ Proto.Walletunlocker_Fields+ Proto.Watchtowerrpc.Watchtower+ Proto.Watchtowerrpc.Watchtower_Fields+ Proto.Wtclientrpc.Wtclient+ Proto.Wtclientrpc.Wtclient_Fields+ LndClient.TestApp+ hs-source-dirs:+ src+ tkit+ ghc-options: -Wno-unused-packages+ build-depends:+ GenericPretty+ , JuicyPixels >=3.3.3 && <3.4+ , aeson >=1.4.4.0+ , async >=2.2.2 && <2.3+ , base >=4.7 && <5+ , base16-bytestring >=1.0.1.0 && <1.1+ , base64-bytestring >=1.0.0.2 && <1.3+ , bytestring >=0.10.8.2 && <0.13+ , chronos >=1.0.7 && <1.2+ , containers >=0.6.0.1 && <0.6.6+ , cryptohash-sha256 >=0.11.101.0 && <0.12+ , cryptonite >=0.25 && <0.31+ , envparse ==0.4.1.*+ , extra >=1.6.18 && <1.8+ , generic-pretty-instances+ , http2 >=3.0.3+ , http2-client+ , http2-client-grpc >=0.8.0.0+ , http2-grpc-proto-lens >=0.1.0.0+ , http2-grpc-types >=0.5.0.0+ , katip >=0.8.3.0 && <0.9+ , microlens >=0.4.10+ , network-bitcoin >=1.8.3+ , pem >=0.2.4 && <0.3+ , persistent >=2.11.0.2+ , proto-lens >=0.7.0+ , proto-lens-runtime >=0.7.0+ , qrcode-core ==0.9.*+ , qrcode-juicypixels >=0.8.0 && <0.9+ , scientific >=0.3.6.2 && <0.3.7+ , stm >=2.5.0.0 && <2.5.1+ , template-haskell >=2.14.0.0 && <2.19+ , text >=1.2.3.1 && <2.1+ , time+ , tls+ , unbounded-delays >=0.1.1.0 && <0.1.2+ , universum >=1.5.0 && <1.8+ , unliftio >=0.2.12+ , x509 ==1.7.5.*+ , x509-store+ else+ build-depends:+ lnd-client+ , lnd-client-tkit+ default-language: Haskell2010+ test-suite lnd-client-test type: exitcode-stdio-1.0 main-is: Spec.hs other-modules:+ LndClient.ChanBakSpec+ LndClient.PsbtSpec LndClient.RPCSpec- LndClient.TestApp Paths_lnd_client+ autogen-modules:+ Paths_lnd_client hs-source-dirs: test- default-extensions: NoImplicitPrelude MultiParamTypeClasses LambdaCase OverloadedStrings ScopedTypeVariables DataKinds KindSignatures- ghc-options: -Weverything -Wno-missing-exported-signatures -Wno-missing-import-lists -Wno-missed-specialisations -Wno-all-missed-specialisations -Wno-unsafe -Wno-safe -Wno-missing-local-signatures -Wno-monomorphism-restriction -threaded -rtsopts -with-rtsopts=-N+ default-extensions:+ NoImplicitPrelude+ MultiParamTypeClasses+ LambdaCase+ OverloadedStrings+ ScopedTypeVariables+ DerivingStrategies+ GeneralizedNewtypeDeriving+ DataKinds+ KindSignatures+ StrictData+ DeriveGeneric+ TypeOperators+ FlexibleContexts+ FlexibleInstances+ ghc-options: -Weverything -Wno-missing-export-lists -Wno-missing-exported-signatures -Wno-missing-import-lists -Wno-missed-specialisations -Wno-all-missed-specialisations -Wno-unsafe -Wno-safe -Wno-missing-local-signatures -O2 -optc-O3 -funfolding-use-threshold=16 -threaded -rtsopts -with-rtsopts=-N -optl-fuse-ld=gold+ ld-options: -fuse-ld=gold build-depends:- JuicyPixels >=3.3.3 && <3.4- , aeson >=1.4.4.0 && <1.4.8- , asn1-encoding >=0.9.6 && <0.10- , asn1-types >=0.3 && <0.4- , async >=2.2.2 && <2.2.3+ async , base >=4.7 && <5- , base16-bytestring >=1.0.1.0 && <1.0.2- , base64-bytestring >=1.0.0.2 && <1.0.1- , bytestring >=0.10.8.2 && <0.10.9- , chronos >=1.0.7 && <1.0.10- , containers >=0.6.0.1 && <0.6.1- , cryptohash-sha256 >=0.11.101.0 && <0.11.102- , cryptonite >=0.25 && <0.29- , deepseq >=1.4.4.0 && <1.4.5- , envparse >=0.4.1 && <0.4.2- , extra >=1.6.18 && <1.6.20- , hspec >=2.7.1 && <2.7.2- , http2 >=2.0.3 && <3.0.3- , http2-client >=0.10.0.0 && <0.10.1- , http2-client-grpc >=0.8.0.0 && <0.8.1- , http2-grpc-proto-lens >=0.1.0.0 && <0.1.1- , http2-grpc-types >=0.5.0.0 && <0.5.1- , katip >=0.8.3.0 && <0.8.4- , lnd-client- , microlens >=0.4.10 && <0.5- , network-bitcoin >=1.8.3 && <1.9.2- , pem >=0.2.4 && <0.3- , persistent >=2.11.0.2 && <2.11.1- , proto-lens >=0.7.0 && <0.8- , proto-lens-runtime >=0.7.0 && <0.8- , qrcode-core >=0.9 && <0.9.3- , qrcode-juicypixels >=0.8.0 && <0.8.1- , scientific >=0.3.6.2 && <0.3.7- , stm >=2.5.0.0 && <2.5.1- , template-haskell >=2.14.0.0 && <2.14.1- , text >=1.2.3.1 && <1.2.4- , unbounded-delays >=0.1.1.0 && <0.1.2- , universum >=1.5.0 && <1.5.1- , unliftio >=0.2.12 && <0.2.13- , x509 >=1.7.5 && <1.7.6+ , containers+ , hspec+ , unliftio+ if impl(ghc >= 8.10.7)+ ghc-options: -Wno-missing-safe-haskell-mode -Wno-prepositive-qualified-module -fenable-th-splice-warnings -fprint-potential-instances+ if flag(ghcid)+ other-modules:+ LndClient+ LndClient.Class+ LndClient.Data.AddHodlInvoice+ LndClient.Data.AddInvoice+ LndClient.Data.Channel+ LndClient.Data.ChannelBackup+ LndClient.Data.ChannelPoint+ LndClient.Data.CloseChannel+ LndClient.Data.ClosedChannel+ LndClient.Data.ClosedChannels+ LndClient.Data.FinalizePsbt+ LndClient.Data.ForceClosedChannel+ LndClient.Data.FundingPsbtFinalize+ LndClient.Data.FundingPsbtVerify+ LndClient.Data.FundingShim+ LndClient.Data.FundingShimCancel+ LndClient.Data.FundingStateStep+ LndClient.Data.FundPsbt+ LndClient.Data.GetInfo+ LndClient.Data.HtlcEvent+ LndClient.Data.InitWallet+ LndClient.Data.Invoice+ LndClient.Data.Kind+ LndClient.Data.LeaseOutput+ LndClient.Data.ListChannels+ LndClient.Data.ListInvoices+ LndClient.Data.ListLeases+ LndClient.Data.ListUnspent+ LndClient.Data.LndEnv+ LndClient.Data.NewAddress+ LndClient.Data.Newtype+ LndClient.Data.OpenChannel+ LndClient.Data.OutPoint+ LndClient.Data.Payment+ LndClient.Data.PayReq+ LndClient.Data.Peer+ LndClient.Data.PendingChannel+ LndClient.Data.PendingChannels+ LndClient.Data.PendingOpenChannel+ LndClient.Data.PsbtShim+ LndClient.Data.PublishTransaction+ LndClient.Data.ReleaseOutput+ LndClient.Data.SendCoins+ LndClient.Data.SendPayment+ LndClient.Data.SignMessage+ LndClient.Data.SubscribeChannelEvents+ LndClient.Data.SubscribeInvoices+ LndClient.Data.TrackPayment+ LndClient.Data.Type+ LndClient.Data.UnlockWallet+ LndClient.Data.VerifyMessage+ LndClient.Data.WaitingCloseChannel+ LndClient.Data.WalletBalance+ LndClient.Import+ LndClient.Import.External+ LndClient.LndTest+ LndClient.Log+ LndClient.Orphan+ LndClient.QRCode+ LndClient.RPC.Generic+ LndClient.RPC.Katip+ LndClient.RPC.Silent+ LndClient.RPC.TH+ LndClient.Util+ LndClient.Watcher+ LndGrpc.Client+ Proto.Autopilotrpc.Autopilot+ Proto.Autopilotrpc.Autopilot_Fields+ Proto.Chainrpc.Chainnotifier+ Proto.Chainrpc.Chainnotifier_Fields+ Proto.Invoicesrpc.Invoices+ Proto.Invoicesrpc.Invoices_Fields+ Proto.Lightning+ Proto.Lightning_Fields+ Proto.Lnclipb.Lncli+ Proto.Lnclipb.Lncli_Fields+ Proto.Lnrpc.Ln0+ Proto.Lnrpc.Ln0_Fields+ Proto.Lnrpc.Ln1+ Proto.Lnrpc.Ln1_Fields+ Proto.Routerrpc.Router+ Proto.Routerrpc.Router_Fields+ Proto.Signrpc.Signer+ Proto.Signrpc.Signer_Fields+ Proto.Stateservice+ Proto.Stateservice_Fields+ Proto.Verrpc.Verrpc+ Proto.Verrpc.Verrpc_Fields+ Proto.Walletrpc.Walletkit+ Proto.Walletrpc.Walletkit_Fields+ Proto.Walletunlocker+ Proto.Walletunlocker_Fields+ Proto.Watchtowerrpc.Watchtower+ Proto.Watchtowerrpc.Watchtower_Fields+ Proto.Wtclientrpc.Wtclient+ Proto.Wtclientrpc.Wtclient_Fields+ LndClient.TestApp+ hs-source-dirs:+ src+ tkit+ ghc-options: -Wno-unused-packages+ build-depends:+ GenericPretty+ , JuicyPixels >=3.3.3 && <3.4+ , aeson >=1.4.4.0+ , async >=2.2.2 && <2.3+ , base >=4.7 && <5+ , base16-bytestring >=1.0.1.0 && <1.1+ , base64-bytestring >=1.0.0.2 && <1.3+ , bytestring >=0.10.8.2 && <0.13+ , chronos >=1.0.7 && <1.2+ , containers >=0.6.0.1 && <0.6.6+ , cryptohash-sha256 >=0.11.101.0 && <0.12+ , cryptonite >=0.25 && <0.31+ , envparse ==0.4.1.*+ , extra >=1.6.18 && <1.8+ , generic-pretty-instances+ , http2 >=3.0.3+ , http2-client+ , http2-client-grpc >=0.8.0.0+ , http2-grpc-proto-lens >=0.1.0.0+ , http2-grpc-types >=0.5.0.0+ , katip >=0.8.3.0 && <0.9+ , microlens >=0.4.10+ , network-bitcoin >=1.8.3+ , pem >=0.2.4 && <0.3+ , persistent >=2.11.0.2+ , proto-lens >=0.7.0+ , proto-lens-runtime >=0.7.0+ , qrcode-core ==0.9.*+ , qrcode-juicypixels >=0.8.0 && <0.9+ , scientific >=0.3.6.2 && <0.3.7+ , stm >=2.5.0.0 && <2.5.1+ , template-haskell >=2.14.0.0 && <2.19+ , text >=1.2.3.1 && <2.1+ , time+ , tls+ , unbounded-delays >=0.1.1.0 && <0.1.2+ , universum >=1.5.0 && <1.8+ , unliftio >=0.2.12+ , x509 ==1.7.5.*+ , x509-store+ else+ build-depends:+ lnd-client+ , lnd-client-tkit default-language: Haskell2010
@@ -0,0 +1,28 @@+module LndClient.Main+ ( main,+ )+where++import qualified Control.Concurrent.Async as Async+import LndClient.Import+import LndClient.LndTest+import LndClient.RPC.Silent+import LndClient.TestApp++main :: IO ()+main =+ void $+ Async.race delay poll+ where+ delay :: IO ()+ delay =+ sleep+ . MicroSecondsDelay+ --- $ 3 * 60 * 60 * 1000000+ $ 5 * 60 * 1000000+ poll :: IO ()+ poll =+ withEnv+ . forever+ . void+ $ getInfo =<< getLndEnv Bob
@@ -1,5 +1,5 @@ -- | Lightning Network Daemon (LND) client library for Haskell.--- Please use LndClient.RPC.Silent or LndClient.RPC.Katip to send/receive/subscribe to LND.+-- Please use 'LndClient.RPC.Silent' or 'LndClient.RPC.Katip' to communicate with LND. module LndClient ( module Import, )
@@ -1,4 +1,5 @@ {-# LANGUAGE FlexibleInstances #-}+{-# LANGUAGE TypeFamilies #-} module LndClient.Class ( FromGrpc (..),@@ -9,6 +10,7 @@ import Data.ProtoLens.Message import LndClient.Data.Type import LndClient.Import.External+import qualified Proto.Lnrpc.Ln0 as LnGrpc class ToGrpc a b where toGrpc :: a -> Either LndError b@@ -46,3 +48,18 @@ instance FromGrpc a b => FromGrpc [a] [b] where fromGrpc x = sequence $ fromGrpc <$> x++instance FromGrpc LnInitiator Bool where+ fromGrpc =+ pure . \case+ True -> LnInitiatorLocal+ False -> LnInitiatorRemote++instance FromGrpc LnInitiator LnGrpc.Initiator where+ fromGrpc =+ pure . \case+ LnGrpc.INITIATOR_UNKNOWN -> LnInitiatorUnknown+ LnGrpc.INITIATOR_LOCAL -> LnInitiatorLocal+ LnGrpc.INITIATOR_REMOTE -> LnInitiatorRemote+ LnGrpc.INITIATOR_BOTH -> LnInitiatorBoth+ LnGrpc.Initiator'Unrecognized {} -> LnInitiatorUnknown
@@ -7,24 +7,25 @@ import Data.ProtoLens.Message import LndClient.Import-import qualified Proto.InvoiceGrpc as LnGRPC-import qualified Proto.InvoiceGrpc_Fields as LnGRPC+import qualified Proto.Invoicesrpc.Invoices as LnGRPC+import qualified Proto.Invoicesrpc.Invoices_Fields as LnGRPC -data AddHodlInvoiceRequest- = AddHodlInvoiceRequest- { memo :: Maybe Text,- hash :: RHash,- valueMsat :: MSat,- expiry :: Maybe Seconds- }- deriving (Eq, Show)+data AddHodlInvoiceRequest = AddHodlInvoiceRequest+ { memo :: Maybe Text,+ hash :: RHash,+ valueMsat :: MSat,+ expiry :: Maybe Seconds+ }+ deriving stock (Eq, Show, Generic) +instance Out AddHodlInvoiceRequest+ instance ToGrpc AddHodlInvoiceRequest LnGRPC.AddHoldInvoiceRequest where toGrpc x = msg <$> toGrpc (memo x) <*> toGrpc (hash x)- <*> toGrpc (valueMsat x)+ <*> toGrpcMSat (valueMsat x) <*> toGrpc (expiry x) where msg gMemo gHash gValue gExp =
@@ -8,30 +8,32 @@ import Data.ProtoLens.Message import LndClient.Import-import qualified Proto.LndGrpc as LnGRPC-import qualified Proto.LndGrpc_Fields as LnGRPC+import qualified Proto.Lnrpc.Ln1 as LnGRPC+import qualified Proto.Lnrpc.Ln1_Fields as LnGRPC -data AddInvoiceRequest- = AddInvoiceRequest- { valueMsat :: MSat,- memo :: Maybe Text,- expiry :: Maybe Seconds- }- deriving (Eq, Show)+data AddInvoiceRequest = AddInvoiceRequest+ { valueMsat :: MSat,+ memo :: Maybe Text,+ expiry :: Maybe Seconds+ }+ deriving stock (Eq, Show, Generic) -data AddInvoiceResponse- = AddInvoiceResponse- { rHash :: RHash,- paymentRequest :: PaymentRequest,- addIndex :: AddIndex- }- deriving (Eq, Show)+instance Out AddInvoiceRequest +data AddInvoiceResponse = AddInvoiceResponse+ { rHash :: RHash,+ paymentRequest :: PaymentRequest,+ addIndex :: AddIndex+ }+ deriving stock (Eq, Show, Generic)++instance Out AddInvoiceResponse+ instance ToGrpc AddInvoiceRequest LnGRPC.Invoice where toGrpc x = msg <$> toGrpc (memo x)- <*> toGrpc (valueMsat x)+ <*> toGrpcMSat (valueMsat x) <*> toGrpc (expiry x) where msg gMemo gValue gExp =
@@ -12,38 +12,53 @@ ) import LndClient.Data.Newtype import LndClient.Import-import qualified Proto.LndGrpc as LnGRPC-import qualified Proto.LndGrpc_Fields as LnGRPC+import qualified Proto.Lightning as LnGRPC+import qualified Proto.Lnrpc.Ln0 as LnGRPC+import qualified Proto.Lnrpc.Ln0_Fields as LnGRPC -data Channel- = Channel- { remotePubkey :: NodePubKey,- channelPoint :: ChannelPoint,- capacity :: MSat,- localBalance :: MSat,- remoteBalance :: MSat,- commitFee :: MSat,- active :: Bool- }- deriving (Eq, Ord, Show)+data Channel = Channel+ { remotePubkey :: NodePubKey,+ channelPoint :: ChannelPoint,+ chanId :: ChanId,+ capacity :: MSat,+ localBalance :: MSat,+ remoteBalance :: MSat,+ commitFee :: MSat,+ active :: Bool,+ initiator :: LnInitiator,+ totalSatoshisSent :: MSat,+ totalSatoshisReceived :: MSat,+ numUpdates :: Word64,+ prv :: Bool+ }+ deriving stock (Eq, Ord, Show, Generic) -data PendingUpdate (a :: TxKind)- = PendingUpdate- { txid :: TxId a,- outputIndex :: Vout a- }- deriving (Eq, Ord, Show)+instance Out Channel +data PendingUpdate (a :: TxKind) = PendingUpdate+ { txid :: TxId a,+ outputIndex :: Vout a+ }+ deriving stock (Eq, Ord, Show, Generic)++instance Out (PendingUpdate a)+ instance FromGrpc Channel LnGRPC.Channel where fromGrpc x = Channel <$> fromGrpc (x ^. LnGRPC.remotePubkey) <*> channelPointParser (x ^. LnGRPC.channelPoint)- <*> fromGrpc (x ^. LnGRPC.capacity)- <*> fromGrpc (x ^. LnGRPC.localBalance)- <*> fromGrpc (x ^. LnGRPC.remoteBalance)- <*> fromGrpc (x ^. LnGRPC.commitFee)+ <*> fromGrpc (x ^. LnGRPC.chanId)+ <*> fromGrpcSat (x ^. LnGRPC.capacity)+ <*> fromGrpcSat (x ^. LnGRPC.localBalance)+ <*> fromGrpcSat (x ^. LnGRPC.remoteBalance)+ <*> fromGrpcSat (x ^. LnGRPC.commitFee) <*> fromGrpc (x ^. LnGRPC.active)+ <*> fromGrpc (x ^. LnGRPC.initiator)+ <*> fromGrpcSat (x ^. LnGRPC.totalSatoshisSent)+ <*> fromGrpcSat (x ^. LnGRPC.totalSatoshisReceived)+ <*> fromGrpc (x ^. LnGRPC.numUpdates)+ <*> fromGrpc (x ^. LnGRPC.private) instance FromGrpc [Channel] LnGRPC.ListChannelsResponse where fromGrpc x = fromGrpc (x ^. LnGRPC.channels)
@@ -0,0 +1,87 @@+module LndClient.Data.ChannelBackup+ ( ChannelBackup (..),+ SingleChanBackupBlob (..),+ )+where++import Data.ProtoLens+import qualified LndClient.Data.ChannelPoint as Ch+import LndClient.Import+import qualified Proto.Lnrpc.Ln1 as Ln1+import qualified Proto.Lnrpc.Ln1_Fields as Ln1++data ChannelBackup = ChannelBackup+ { chanPoint :: Ch.ChannelPoint,+ chanBackup :: SingleChanBackupBlob+ }+ deriving stock+ ( Eq,+ Ord,+ Show,+ Generic+ )++instance Out ChannelBackup++newtype SingleChanBackupBlob = SingleChanBackupBlob+ { unSingleChanBackupBlob :: ByteString+ }+ deriving newtype+ ( Eq,+ Ord,+ Show,+ PersistField,+ PersistFieldSql+ )+ deriving stock+ ( Generic+ )++instance Out SingleChanBackupBlob++instance FromGrpc [ChannelBackup] Ln1.ChanBackupSnapshot where+ fromGrpc x =+ fromGrpc $+ x ^. Ln1.singleChanBackups . Ln1.chanBackups++instance FromGrpc ChannelBackup Ln1.ChannelBackup where+ fromGrpc x =+ ChannelBackup+ <$> fromGrpc (x ^. Ln1.chanPoint)+ <*> fromGrpc (x ^. Ln1.chanBackup)++instance ToGrpc ChannelBackup Ln1.ChannelBackup where+ toGrpc x =+ msg+ <$> toGrpc (chanPoint x)+ <*> toGrpc (chanBackup x)+ where+ msg cp bak =+ defMessage+ & Ln1.chanPoint .~ cp+ & Ln1.chanBackup .~ bak++instance FromGrpc SingleChanBackupBlob ByteString where+ fromGrpc x =+ if null x+ then+ Left+ . FromGrpcError+ $ "Cannot parse SingleChanBackupBlob from " <> inspect x+ else+ Right $+ SingleChanBackupBlob x++instance ToGrpc SingleChanBackupBlob ByteString where+ toGrpc =+ Right . unSingleChanBackupBlob++instance ToGrpc [ChannelBackup] Ln1.RestoreChanBackupRequest where+ toGrpc xs0 = do+ xs <- mapM toGrpc xs0+ pure $+ defMessage+ & Ln1.chanBackups+ .~ ( defMessage+ & Ln1.chanBackups .~ xs+ )
@@ -12,16 +12,19 @@ import Data.ProtoLens.Message import qualified Data.Text as TS (unpack) import LndClient.Import-import qualified Proto.LndGrpc as LnGRPC-import qualified Proto.LndGrpc_Fields as LnGRPC+import qualified Proto.Lnrpc.Ln0 as LnGRPC+import qualified Proto.Lnrpc.Ln0_Fields as LnGRPC+import qualified Proto.Lnrpc.Ln1 as Ln1+import qualified Proto.Lnrpc.Ln1_Fields as Ln1 -data ChannelPoint- = ChannelPoint- { fundingTxId :: TxId 'Funding,- outputIndex :: Vout 'Funding- }- deriving (Eq, Ord, Show)+data ChannelPoint = ChannelPoint+ { fundingTxId :: TxId 'Funding,+ outputIndex :: Vout 'Funding+ }+ deriving stock (Eq, Ord, Show, Generic) +instance Out ChannelPoint+ instance FromGrpc ChannelPoint LnGRPC.ChannelPoint where fromGrpc x = ChannelPoint@@ -39,6 +42,14 @@ & LnGRPC.fundingTxidBytes .~ gFundingTxIdBytes & LnGRPC.outputIndex .~ gOutputIndex +instance ToGrpc ChannelPoint Ln1.ExportChannelBackupRequest where+ toGrpc x =+ msg <$> toGrpc x+ where+ msg cp =+ defMessage+ & Ln1.chanPoint .~ cp+ channelPointParser :: Text -> Either LndError ChannelPoint channelPointParser x = case C8.split ':' str of@@ -51,9 +62,8 @@ FromGrpcError "Invalid ChannelPoint outputIndex" ) $ decodeUtf8' idxBS- ChannelPoint- <$> (pure . TxId $ BS.reverse txidHex)- <*> maybeToRight+ ChannelPoint (TxId $ BS.reverse txidHex)+ <$> maybeToRight (FromGrpcError "Invalid ChannelPoint outputIndex") (readMaybe $ TS.unpack idxTS) Left {} ->@@ -61,4 +71,5 @@ _ -> Left $ FromGrpcError "Invalid ChannelPoint text" where+ str :: ByteString str = encodeUtf8 x
@@ -13,41 +13,49 @@ import LndClient.Data.Channel (PendingUpdate) import LndClient.Data.ChannelPoint import LndClient.Import-import qualified Proto.LndGrpc as LnGRPC-import qualified Proto.LndGrpc_Fields as LnGRPC+import qualified Proto.Lightning as LnGRPC+import qualified Proto.Lightning_Fields as LnGRPC+import qualified Proto.Lnrpc.Ln0 as LnGRPC0+import qualified Proto.Lnrpc.Ln0_Fields as LnGRPC0 -data CloseChannelRequest- = CloseChannelRequest- { channelPoint :: ChannelPoint,- force :: Bool,- targetConf :: Maybe Int32,- satPerByte :: Maybe Int64,- deliveryAddress :: Maybe Text- }- deriving (Eq, Ord, Show)+data CloseChannelRequest = CloseChannelRequest+ { channelPoint :: ChannelPoint,+ force :: Bool,+ targetConf :: Maybe Int32,+ satPerByte :: Maybe Int64,+ deliveryAddress :: Maybe Text+ }+ deriving stock (Eq, Ord, Show, Generic) +instance Out CloseChannelRequest+ data CloseStatusUpdate = Pending (PendingUpdate 'Closing) | Close ChannelCloseUpdate | NothingUpdate- deriving (Eq, Ord, Show)+ deriving stock (Eq, Ord, Show, Generic) -data ChannelCloseUpdate- = ChannelCloseUpdate- { closingTxid :: TxId 'Closing,- success :: Bool- }- deriving (Eq, Ord, Show)+instance Out CloseStatusUpdate -data ChannelCloseSummary- = ChannelCloseSummary- { remotePubkey :: NodePubKey,- chPoint :: ChannelPoint,- settledBalance :: MSat,- closingTxId :: TxId 'Closing- }- deriving (Eq, Ord, Show)+data ChannelCloseUpdate = ChannelCloseUpdate+ { closingTxid :: TxId 'Closing,+ success :: Bool+ }+ deriving stock (Eq, Ord, Show, Generic) +instance Out ChannelCloseUpdate++data ChannelCloseSummary = ChannelCloseSummary+ { remotePubkey :: NodePubKey,+ chPoint :: ChannelPoint,+ chanId :: ChanId,+ settledBalance :: MSat,+ closingTxId :: TxId 'Closing+ }+ deriving stock (Eq, Ord, Show, Generic)++instance Out ChannelCloseSummary+ instance FromGrpc [ChannelCloseSummary] LnGRPC.ClosedChannelsResponse where fromGrpc x = sequence $ fromGrpc <$> (x ^. LnGRPC.channels) @@ -81,10 +89,11 @@ <$> fromGrpc (x ^. LnGRPC.closingTxid) <*> fromGrpc (x ^. LnGRPC.success) -instance FromGrpc ChannelCloseSummary LnGRPC.ChannelCloseSummary where+instance FromGrpc ChannelCloseSummary LnGRPC0.ChannelCloseSummary where fromGrpc x = ChannelCloseSummary- <$> fromGrpc (x ^. LnGRPC.remotePubkey)+ <$> fromGrpc (x ^. LnGRPC0.remotePubkey) <*> channelPointParser (x ^. LnGRPC.channelPoint)- <*> fromGrpc (x ^. LnGRPC.settledBalance)- <*> fromGrpc (x ^. LnGRPC.closingTxHash)+ <*> fromGrpc (x ^. LnGRPC0.chanId)+ <*> fromGrpcSat (x ^. LnGRPC0.settledBalance)+ <*> fromGrpc (x ^. LnGRPC0.closingTxHash)
@@ -5,15 +5,16 @@ import LndClient.Data.PendingChannel import LndClient.Import-import qualified Proto.LndGrpc as LnGRPC-import qualified Proto.LndGrpc_Fields as LnGRPC+import qualified Proto.Lnrpc.Ln0 as LnGRPC+import qualified Proto.Lnrpc.Ln0_Fields as LnGRPC -data ClosedChannel- = ClosedChannel- { channel :: PendingChannel,- closingTxid :: TxId 'Closing- }- deriving (Eq, Show)+data ClosedChannel = ClosedChannel+ { channel :: PendingChannel,+ closingTxid :: TxId 'Closing+ }+ deriving stock (Eq, Show, Generic)++instance Out ClosedChannel instance FromGrpc
@@ -8,19 +8,20 @@ import Data.ProtoLens.Message import LndClient.Import-import qualified Proto.LndGrpc as LnGRPC-import qualified Proto.LndGrpc_Fields as LnGRPC+import qualified Proto.Lightning as LnGRPC+import qualified Proto.Lightning_Fields as LnGRPC -data ClosedChannelsRequest- = ClosedChannelsRequest- { cooperative :: Bool,- localForce :: Bool,- remoteForce :: Bool,- breach :: Bool,- fundingCanceled :: Bool,- abandoned :: Bool- }- deriving (Eq, Ord, Show)+data ClosedChannelsRequest = ClosedChannelsRequest+ { cooperative :: Bool,+ localForce :: Bool,+ remoteForce :: Bool,+ breach :: Bool,+ fundingCanceled :: Bool,+ abandoned :: Bool+ }+ deriving stock (Eq, Ord, Show, Generic)++instance Out ClosedChannelsRequest instance ToGrpc ClosedChannelsRequest LnGRPC.ClosedChannelsRequest where toGrpc x =
@@ -0,0 +1,39 @@+{-# LANGUAGE FlexibleContexts #-}++module LndClient.Data.FinalizePsbt+ ( FinalizePsbtRequest (..),+ FinalizePsbtResponse (..),+ )+where++import Data.ProtoLens.Message+import LndClient.Import+import qualified Proto.Walletrpc.Walletkit as W+import qualified Proto.Walletrpc.Walletkit_Fields as W++data FinalizePsbtRequest = FinalizePsbtRequest+ { fundedPsbt :: ByteString,+ account :: Text+ }+ deriving stock (Eq, Ord, Show, Generic)++instance Out FinalizePsbtRequest++instance ToGrpc FinalizePsbtRequest W.FinalizePsbtRequest where+ toGrpc x = pure $ msg (fundedPsbt x) (account x)+ where+ msg f a =+ defMessage+ & W.fundedPsbt .~ f+ & W.account .~ a++data FinalizePsbtResponse = FinalizePsbtResponse+ { signedPsbt :: ByteString,+ rawFinalTx :: ByteString+ }+ deriving stock (Eq, Ord, Show, Generic)++instance Out FinalizePsbtResponse++instance FromGrpc FinalizePsbtResponse W.FinalizePsbtResponse where+ fromGrpc x = Right $ FinalizePsbtResponse (x ^. W.signedPsbt) (x ^. W.rawFinalTx)
@@ -5,20 +5,21 @@ import LndClient.Data.PendingChannel import LndClient.Import-import qualified Proto.LndGrpc as LnGRPC-import qualified Proto.LndGrpc_Fields as LnGRPC+import qualified Proto.Lnrpc.Ln0 as LnGRPC+import qualified Proto.Lnrpc.Ln0_Fields as LnGRPC -data ForceClosedChannel- = ForceClosedChannel- { channel :: PendingChannel,- closingTxid :: TxId 'Closing,- limboBalance :: MSat,- maturityHeight :: Word32,- blocksTilMaturity :: Int32,- recoveredBalance :: MSat- }- deriving (Eq, Show)+data ForceClosedChannel = ForceClosedChannel+ { channel :: PendingChannel,+ closingTxid :: TxId 'Closing,+ limboBalance :: MSat,+ maturityHeight :: Word32,+ blocksTilMaturity :: Int32,+ recoveredBalance :: MSat+ }+ deriving stock (Eq, Show, Generic) +instance Out ForceClosedChannel+ instance FromGrpc ForceClosedChannel@@ -33,18 +34,10 @@ fromGrpc this ) <*> fromGrpc (x ^. LnGRPC.closingTxid)- <*> ( toMSat- <$> fromGrpc- (x ^. LnGRPC.limboBalance)- )- <*> fromGrpc- (x ^. LnGRPC.maturityHeight)- <*> fromGrpc- (x ^. LnGRPC.blocksTilMaturity)- <*> ( toMSat- <$> fromGrpc- (x ^. LnGRPC.recoveredBalance)- )+ <*> fromGrpcSat (x ^. LnGRPC.limboBalance)+ <*> fromGrpc (x ^. LnGRPC.maturityHeight)+ <*> fromGrpc (x ^. LnGRPC.blocksTilMaturity)+ <*> fromGrpcSat (x ^. LnGRPC.recoveredBalance) where pendingChannel = x ^. LnGRPC.maybe'channel
@@ -0,0 +1,87 @@+{-# LANGUAGE FlexibleContexts #-}++module LndClient.Data.FundPsbt (+ FundPsbtRequest (..), FundPsbtResponse (..), TxTemplate (..), Fee(..), UtxoLease(..)+) where++import Data.ProtoLens.Message+import Lens.Micro+import LndClient.Data.OutPoint+import LndClient.Import+import qualified Proto.Walletrpc.Walletkit as W+import qualified Proto.Walletrpc.Walletkit_Fields as W++data TxTemplate = TxTemplate+ { inputs :: [OutPoint],+ outputs :: Map Text MSat+ }+ deriving stock (Eq, Ord, Show, Generic)++instance Out TxTemplate++instance ToGrpc TxTemplate W.FundPsbtRequest'Template where+ toGrpc x = W.FundPsbtRequest'Raw <$> (msg <$> mapM toGrpc (inputs x) <*> mapM toGrpcSat (outputs x))+ where+ msg i o = defMessage & W.inputs .~ i & W.outputs .~ o++data Fee = TargetConf Word32 | SatPerVbyte Word64+ deriving stock (Eq, Ord, Show, Generic)++instance Out Fee++data FundPsbtRequest = FundPsbtRequest {+ account :: Text,+ template :: TxTemplate,+ minConfs :: Int32,+ spendUnconfirmed :: Bool,+ fee :: Fee+ }+ deriving stock (Eq, Ord, Show, Generic)++instance Out FundPsbtRequest++instance ToGrpc FundPsbtRequest W.FundPsbtRequest where+ toGrpc x = msg+ (account x) (spendUnconfirmed x)+ (feeMap $ fee x) <$> toGrpc (template x)+ where+ feeMap (TargetConf n) = W.FundPsbtRequest'TargetConf n+ feeMap (SatPerVbyte n) = W.FundPsbtRequest'SatPerVbyte n+ msg a s f t =+ defMessage+ & W.account .~ a+ & W.maybe'template ?~ t+ & W.maybe'fees ?~ f+ & W.spendUnconfirmed .~ s++data UtxoLease = UtxoLease+ { id :: ByteString,+ outpoint :: OutPoint,+ expiration :: Word64+ }+ deriving stock (Eq, Ord, Show, Generic)++instance Out UtxoLease++instance FromGrpc UtxoLease W.UtxoLease where+ fromGrpc x =+ UtxoLease+ <$> fromGrpc (x ^. W.id)+ <*> fromGrpc (x ^. W.outpoint)+ <*> fromGrpc (x ^. W.expiration)++data FundPsbtResponse = FundPsbtResponse+ { fundedPsbt :: ByteString,+ changeOutputIndex :: Int32,+ lockedUtxos :: [UtxoLease]+ }+ deriving stock (Eq, Ord, Show, Generic)++instance Out FundPsbtResponse++instance FromGrpc FundPsbtResponse W.FundPsbtResponse where+ fromGrpc x =+ FundPsbtResponse+ <$> fromGrpc (x ^. W.fundedPsbt)+ <*> fromGrpc (x ^. W.changeOutputIndex)+ <*> mapM fromGrpc (x ^. W.lockedUtxos)
@@ -0,0 +1,25 @@+{-# LANGUAGE FlexibleContexts #-}++module LndClient.Data.FundingPsbtFinalize+ (FundingPsbtFinalize (..))+where++import Data.ProtoLens.Message+import LndClient.Import+import qualified Proto.Lnrpc.Ln0 as L+import qualified Proto.Lnrpc.Ln0_Fields as L++data FundingPsbtFinalize = FundingPsbtFinalize+ {+ signedPsbt :: Psbt,+ pendingChanId :: PendingChannelId,+ finalRawTx :: RawTx+ } deriving stock (Eq, Ord, Show, Generic)++instance Out FundingPsbtFinalize++instance ToGrpc FundingPsbtFinalize L.FundingPsbtFinalize where+ toGrpc x = msg <$> toGrpc (signedPsbt x) <*> toGrpc (pendingChanId x) <*> toGrpc (finalRawTx x)+ where+ msg sp pci frt =+ defMessage & L.signedPsbt .~ sp & L.pendingChanId .~ pci & L.finalRawTx .~ frt
@@ -0,0 +1,23 @@+{-# LANGUAGE FlexibleContexts #-}++module LndClient.Data.FundingPsbtVerify (FundingPsbtVerify (..)) where++import Data.ProtoLens.Message+import LndClient.Import+import qualified Proto.Lnrpc.Ln0 as L+import qualified Proto.Lnrpc.Ln0_Fields as L++data FundingPsbtVerify = FundingPsbtVerify+ { fundedPsbt :: Psbt,+ pendingChanId :: PendingChannelId,+ skipFinalize :: Bool+ }+ deriving stock (Eq, Ord, Show, Generic)++instance Out FundingPsbtVerify++instance ToGrpc FundingPsbtVerify L.FundingPsbtVerify where+ toGrpc x = msg <$> toGrpc (fundedPsbt x) <*> toGrpc (pendingChanId x) <*> pure (skipFinalize x)+ where+ msg fp pci sf =+ defMessage & L.fundedPsbt .~ fp & L.pendingChanId .~ pci & L.skipFinalize .~ sf
@@ -0,0 +1,71 @@+{-# LANGUAGE FlexibleContexts #-}++module LndClient.Data.FundingShim (FundingShim (..)) where++import Data.ProtoLens.Message+import Lens.Micro+import LndClient.Data.ChannelPoint+import qualified LndClient.Data.PsbtShim as PS+import LndClient.Import+import qualified Proto.Lnrpc.Ln0 as L+import qualified Proto.Lnrpc.Ln0_Fields as L+import qualified LndClient.Data.SignMessage as KL++data KeyDescriptor = KeyDescriptor+ { rawKeyBytes :: ByteString,+ keyLoc :: KL.KeyLocator+ }+ deriving stock (Eq, Show, Ord, Generic)++instance ToGrpc KeyDescriptor L.KeyDescriptor where+ toGrpc x = msg <$> toGrpc (rawKeyBytes x) <*> toGrpc (keyLoc x)+ where+ msg r k = defMessage & L.rawKeyBytes .~ r & L.keyLoc .~ k++instance Out KeyDescriptor++data ChanPointShim = ChanPointShim+ { amt :: MSat,+ chanPoint :: Maybe ChannelPoint,+ localKey :: Maybe KeyDescriptor,+ remoteKey :: NodePubKey,+ pendingChanId :: PendingChannelId,+ thawHeight :: Word32+ }+ deriving stock (Eq, Show, Ord, Generic)++instance ToGrpc ChanPointShim L.ChanPointShim where+ toGrpc x =+ msg+ <$> toGrpcSat (amt x)+ <*> toGrpcMaybe (chanPoint x)+ <*> toGrpcMaybe (localKey x)+ <*> toGrpc (remoteKey x)+ <*> toGrpc (pendingChanId x)+ <*> toGrpc (thawHeight x)+ where+ msg a c l r p t =+ defMessage+ & L.amt .~ a+ & L.maybe'chanPoint .~ c+ & L.maybe'localKey .~ l+ & L.remoteKey .~ r+ & L.pendingChanId .~ p+ & L.thawHeight .~ t++instance Out ChanPointShim++data FundingShim+ = FundingShim'ChanPointShim ChanPointShim+ | FundingShim'PsbtShim PS.PsbtShim+ deriving stock (Eq, Show, Ord, Generic)++instance Out FundingShim++instance ToGrpc FundingShim L.FundingShim where+ toGrpc x = msg <$> mapShim x+ where+ mapShim (FundingShim'ChanPointShim f) = L.FundingShim'ChanPointShim <$> toGrpc f+ mapShim (FundingShim'PsbtShim f) = L.FundingShim'PsbtShim <$> toGrpc f+ msg s = defMessage & L.maybe'shim ?~ s+
@@ -0,0 +1,24 @@+{-# LANGUAGE FlexibleContexts #-}++module LndClient.Data.FundingShimCancel+ (FundingShimCancel (..))+where++import Data.ProtoLens.Message+import LndClient.Import+import qualified Proto.Lnrpc.Ln0 as L+import qualified Proto.Lnrpc.Ln0_Fields as L++newtype FundingShimCancel = FundingShimCancel+ {+ pendingChanId :: PendingChannelId+ } deriving stock (Eq, Ord, Show, Generic)+++instance Out FundingShimCancel++instance ToGrpc FundingShimCancel L.FundingShimCancel where+ toGrpc x = msg <$> toGrpc (pendingChanId x)+ where+ msg pci =+ defMessage & L.pendingChanId .~ pci
@@ -0,0 +1,37 @@+{-# LANGUAGE FlexibleContexts #-}++module LndClient.Data.FundingStateStep+ (+ FundingStateStepRequest(..)+ )+where++import Data.ProtoLens.Message+import LndClient.Import+import qualified Proto.Lnrpc.Ln0 as L+import qualified Proto.Lnrpc.Ln0_Fields as L+import LndClient.Data.FundingPsbtVerify+import LndClient.Data.FundingPsbtFinalize+import LndClient.Data.FundingShimCancel+import LndClient.Data.FundingShim+import Lens.Micro++data FundingStateStepRequest =+ FundingStateStepShimCancelRequest FundingShimCancel |+ FundingStateStepPsbtFinalizeRequest FundingPsbtFinalize |+ FundingStateStepPsbtVerifyRequest FundingPsbtVerify |+ FundingStateStepShimRegister FundingShim+ deriving stock (Eq, Ord, Show, Generic)++instance Out FundingStateStepRequest++instance ToGrpc FundingStateStepRequest L.FundingTransitionMsg where+ toGrpc x = msg <$> mapTrigger x+ where+ mapTrigger :: FundingStateStepRequest -> Either LndError L.FundingTransitionMsg'Trigger+ mapTrigger (FundingStateStepShimCancelRequest t) = L.FundingTransitionMsg'ShimCancel <$> toGrpc t+ mapTrigger (FundingStateStepPsbtFinalizeRequest t) = L.FundingTransitionMsg'PsbtFinalize <$> toGrpc t+ mapTrigger (FundingStateStepPsbtVerifyRequest t) = L.FundingTransitionMsg'PsbtVerify <$> toGrpc t+ mapTrigger (FundingStateStepShimRegister t) = L.FundingTransitionMsg'ShimRegister <$> toGrpc t+ msg t = defMessage & L.maybe'trigger ?~ t+
@@ -6,16 +6,17 @@ where import LndClient.Import-import qualified Proto.LndGrpc as LnGRPC-import qualified Proto.LndGrpc_Fields as LnGRPC+import qualified Proto.Lightning as LnGRPC+import qualified Proto.Lightning_Fields as LnGRPC -data GetInfoResponse- = GetInfoResponse- { identityPubkey :: NodePubKey,- syncedToChain :: Bool,- syncedToGraph :: Bool- }- deriving (Eq, Show)+data GetInfoResponse = GetInfoResponse+ { identityPubkey :: NodePubKey,+ syncedToChain :: Bool,+ syncedToGraph :: Bool+ }+ deriving stock (Eq, Show, Generic)++instance Out GetInfoResponse instance FromGrpc GetInfoResponse LnGRPC.GetInfoResponse where fromGrpc x =
@@ -4,27 +4,30 @@ where import LndClient.Import-import qualified Proto.RouterGrpc as LnGRPC-import qualified Proto.RouterGrpc_Fields as LnGRPC+import qualified Proto.Routerrpc.Router as LnGRPC+import qualified Proto.Routerrpc.Router_Fields as LnGRPC -data HtlcEvent- = HtlcEvent- { incomingChannelId :: Word64,- outgoingChannelId :: Word64,- incomingHtlcId :: Word64,- outgoingHtlcId :: Word64,- timestampNs :: Word64,- eventType :: EventType- }- deriving (Eq)+data HtlcEvent = HtlcEvent+ { incomingChannelId :: Word64,+ outgoingChannelId :: Word64,+ incomingHtlcId :: Word64,+ outgoingHtlcId :: Word64,+ timestampNs :: Word64,+ eventType :: EventType+ }+ deriving stock (Eq, Generic) +instance Out HtlcEvent+ data EventType = UNKNOWN | SEND | RECEIVE | FORWARD- deriving (Eq)+ deriving stock (Eq, Generic) +instance Out EventType+ instance FromGrpc HtlcEvent LnGRPC.HtlcEvent where fromGrpc x = HtlcEvent@@ -42,4 +45,7 @@ LnGRPC.HtlcEvent'SEND -> Right SEND LnGRPC.HtlcEvent'RECEIVE -> Right RECEIVE LnGRPC.HtlcEvent'FORWARD -> Right FORWARD- LnGRPC.HtlcEvent'EventType'Unrecognized v -> Left $ FromGrpcError ("Cannot parse EventType, value:" <> show v)+ LnGRPC.HtlcEvent'EventType'Unrecognized v ->+ Left+ . FromGrpcError+ $ "Cannot parse EventType, value:" <> inspect v
@@ -7,20 +7,23 @@ import Data.ProtoLens.Message import LndClient.Import-import qualified Proto.WalletUnlockerGrpc as LnGRPC-import qualified Proto.WalletUnlockerGrpc_Fields as LnGRPC+import qualified Proto.Walletunlocker as LnGRPC+import qualified Proto.Walletunlocker_Fields as LnGRPC import Prelude (Show (..)) -data InitWalletRequest- = InitWalletRequest- { walletPassword :: LndWalletPassword,- cipherSeedMnemonic :: CipherSeedMnemonic,- aezeedPassphrase :: Maybe AezeedPassphrase- }- deriving (Eq)+data InitWalletRequest = InitWalletRequest+ { walletPassword :: LndWalletPassword,+ cipherSeedMnemonic :: CipherSeedMnemonic,+ aezeedPassphrase :: Maybe AezeedPassphrase+ }+ deriving stock (Eq) instance Show InitWalletRequest where show = const "SECRET"++instance Out InitWalletRequest where+ docPrec = const $ const "SECRET"+ doc = const "SECRET" instance ToGrpc InitWalletRequest LnGRPC.InitWalletRequest where toGrpc x =
@@ -5,37 +5,40 @@ where import LndClient.Import-import qualified Proto.LndGrpc as LnGRPC-import qualified Proto.LndGrpc_Fields as LnGRPC+import qualified Proto.Lnrpc.Ln1 as LnGRPC+import qualified Proto.Lnrpc.Ln1_Fields as LnGRPC -data Invoice- = Invoice- { rHash :: RHash,- amtPaidMsat :: MSat,- valueMsat :: MSat,- settled :: Bool,- settleIndex :: Maybe SettleIndex,- memo :: Text,- paymentRequest :: PaymentRequest,- private :: Bool,- addIndex :: AddIndex,- state :: InvoiceState- }- deriving (Eq, Show)+data Invoice = Invoice+ { rHash :: RHash,+ amtPaidMsat :: MSat,+ valueMsat :: MSat,+ settled :: Bool,+ settleIndex :: Maybe SettleIndex,+ memo :: Text,+ paymentRequest :: PaymentRequest,+ private :: Bool,+ addIndex :: AddIndex,+ state :: InvoiceState+ }+ deriving stock (Eq, Show, Generic) +instance Out Invoice+ data InvoiceState = OPEN | SETTLED | CANCELED | ACCEPTED- deriving (Eq, Show)+ deriving stock (Eq, Show, Generic) +instance Out InvoiceState+ instance FromGrpc Invoice LnGRPC.Invoice where fromGrpc x = Invoice <$> fromGrpc (x ^. LnGRPC.rHash)- <*> fromGrpc (x ^. LnGRPC.amtPaidMsat)- <*> fromGrpc (x ^. LnGRPC.valueMsat)+ <*> fromGrpcMSat (x ^. LnGRPC.amtPaidMsat)+ <*> fromGrpcMSat (x ^. LnGRPC.valueMsat) <*> fromGrpc (x ^. LnGRPC.settled) <*> fromGrpc (x ^. LnGRPC.settleIndex) <*> fromGrpc (x ^. LnGRPC.memo)@@ -51,4 +54,7 @@ LnGRPC.Invoice'SETTLED -> Right SETTLED LnGRPC.Invoice'CANCELED -> Right CANCELED LnGRPC.Invoice'ACCEPTED -> Right ACCEPTED- LnGRPC.Invoice'InvoiceState'Unrecognized v -> Left $ FromGrpcError ("Cannot parse InvoiceState, value:" <> show v)+ LnGRPC.Invoice'InvoiceState'Unrecognized v ->+ Left+ . FromGrpcError+ $ "Cannot parse InvoiceState, value:" <> inspect v
@@ -8,4 +8,4 @@ data TxKind = Funding | Closing- deriving (Eq, Show)+ deriving stock (Eq, Show)
@@ -0,0 +1,46 @@+{-# LANGUAGE FlexibleContexts #-}++module LndClient.Data.LeaseOutput+ ( LeaseOutputRequest (..),+ LeaseOutputResponse (..),+ )+where++import Data.ProtoLens.Message+import LndClient.Data.OutPoint+import LndClient.Import+import qualified Proto.Lnrpc.Ln0 as LnGRPC+import qualified Proto.Walletrpc.Walletkit as W+import qualified Proto.Walletrpc.Walletkit_Fields as W++data LeaseOutputRequest = LeaseOutputRequest+ { id' :: ByteString,+ outpoint :: Maybe OutPoint,+ expirationSeconds :: Word64+ }+ deriving stock (Eq, Ord, Show, Generic)++instance Out LeaseOutputRequest++instance ToGrpc LeaseOutputRequest W.LeaseOutputRequest where+ toGrpc x = msg (id' x) (expirationSeconds x) <$> out'+ where+ out' :: Either LndError (Maybe LnGRPC.OutPoint)+ out' = case outpoint x of+ Just op -> Just <$> toGrpc op+ Nothing -> Right Nothing+ msg i e o =+ defMessage+ & (W.id .~ i)+ & (W.maybe'outpoint .~ o)+ & (W.expirationSeconds .~ e)++newtype LeaseOutputResponse = LeaseOutputResponse+ {expiration :: Word64}+ deriving newtype (Eq, Ord, Show)+ deriving stock (Generic)++instance Out LeaseOutputResponse++instance FromGrpc LeaseOutputResponse W.LeaseOutputResponse where+ fromGrpc x = LeaseOutputResponse <$> fromGrpc (x ^. W.expiration)
@@ -9,18 +9,19 @@ import Data.ProtoLens.Message import LndClient.Import-import qualified Proto.LndGrpc as LnGRPC-import qualified Proto.LndGrpc_Fields as LnGRPC+import qualified Proto.Lightning as LnGRPC+import qualified Proto.Lightning_Fields as LnGRPC -data ListChannelsRequest- = ListChannelsRequest- { activeOnly :: Bool,- inactiveOnly :: Bool,- publicOnly :: Bool,- privateOnly :: Bool,- peer :: Maybe NodePubKey- }- deriving (Generic, Show)+data ListChannelsRequest = ListChannelsRequest+ { activeOnly :: Bool,+ inactiveOnly :: Bool,+ publicOnly :: Bool,+ privateOnly :: Bool,+ peer :: Maybe NodePubKey+ }+ deriving stock (Generic, Show)++instance Out ListChannelsRequest instance ToGrpc ListChannelsRequest LnGRPC.ListChannelsRequest where toGrpc x =
@@ -11,25 +11,27 @@ import Data.ProtoLens.Message import LndClient.Data.Invoice (Invoice) import LndClient.Import-import qualified Proto.LndGrpc as LnGRPC-import qualified Proto.LndGrpc_Fields as LnGRPC+import qualified Proto.Lnrpc.Ln1 as LnGRPC+import qualified Proto.Lnrpc.Ln1_Fields as LnGRPC -data ListInvoiceRequest- = ListInvoiceRequest- { pendingOnly :: Bool,- indexOffset :: AddIndex,- numMaxInvoices :: Word64,- reversed :: Bool- }- deriving (Generic, Show)+data ListInvoiceRequest = ListInvoiceRequest+ { pendingOnly :: Bool,+ indexOffset :: AddIndex,+ numMaxInvoices :: Word64,+ reversed :: Bool+ }+ deriving stock (Generic, Show) -data ListInvoiceResponse- = ListInvoiceResponse- { invoices :: [Invoice],- lastIndexOffset :: AddIndex,- firstIndexOffset :: AddIndex- }- deriving (Generic, Show)+instance Out ListInvoiceRequest++data ListInvoiceResponse = ListInvoiceResponse+ { invoices :: [Invoice],+ lastIndexOffset :: AddIndex,+ firstIndexOffset :: AddIndex+ }+ deriving stock (Generic, Show)++instance Out ListInvoiceResponse instance ToGrpc ListInvoiceRequest LnGRPC.ListInvoiceRequest where toGrpc x =
@@ -0,0 +1,50 @@+{-# LANGUAGE FlexibleContexts #-}++module LndClient.Data.ListLeases+ ( ListLeasesRequest (..),+ ListLeasesResponse (..),+ UtxoLease (..),+ )+where++import Data.ProtoLens.Message+import LndClient.Data.OutPoint+import LndClient.Import+import qualified Proto.Walletrpc.Walletkit as W+import qualified Proto.Walletrpc.Walletkit_Fields as W++data ListLeasesRequest = ListLeasesRequest deriving stock (Eq, Ord, Show, Generic)++instance Out ListLeasesRequest++instance ToGrpc ListLeasesRequest W.ListLeasesRequest where+ toGrpc = const (pure defMessage)++data UtxoLease = UtxoLease+ { id :: ByteString,+ outpoint :: Maybe OutPoint,+ expiration :: Word64+ }+ deriving stock (Eq, Ord, Show, Generic)++instance Out UtxoLease++newtype ListLeasesResponse = ListLeasesResponse+ { lockedUtxos :: [UtxoLease]+ }+ deriving newtype (Eq, Ord, Show)+ deriving stock (Generic)++instance FromGrpc UtxoLease W.UtxoLease where+ fromGrpc x = lease (x ^. W.id) (x ^. W.expiration) <$> out'+ where+ out' :: Either LndError (Maybe OutPoint)+ out' = case x ^. W.maybe'outpoint of+ Just op -> Just <$> fromGrpc op+ Nothing -> Right Nothing+ lease id' expr op = UtxoLease id' op expr++instance Out ListLeasesResponse++instance FromGrpc ListLeasesResponse W.ListLeasesResponse where+ fromGrpc x = ListLeasesResponse <$> mapM fromGrpc (x ^. W.lockedUtxos)
@@ -0,0 +1,63 @@+{-# LANGUAGE FlexibleContexts #-}++module LndClient.Data.ListUnspent (ListUnspentRequest (..), ListUnspentResponse (..), Utxo (..)) where++import Data.ProtoLens.Message+import LndClient.Data.NewAddress (AddressType)+import LndClient.Data.OutPoint+import LndClient.Import+import qualified Proto.Lightning as L+import qualified Proto.Lightning_Fields as L+import qualified Proto.Walletrpc.Walletkit as W+import qualified Proto.Walletrpc.Walletkit_Fields as W++data ListUnspentRequest = ListUnspentRequest+ { minConfs :: Int32,+ maxConfs :: Int32,+ account :: Text+ }+ deriving stock (Eq, Ord, Show, Generic)++instance Out ListUnspentRequest++instance ToGrpc ListUnspentRequest W.ListUnspentRequest where+ toGrpc x = pure $ msg (minConfs x) (maxConfs x) (account x)+ where+ msg mn mx a =+ defMessage+ & W.minConfs .~ mn+ & W.maxConfs .~ mx+ & W.account .~ a++data Utxo = Utxo+ { addressType :: AddressType,+ address :: Text,+ amountSat :: MSat,+ pkScript :: Text,+ outpoint :: OutPoint,+ confirmations :: Int64+ }+ deriving stock (Eq, Ord, Show, Generic)++instance Out Utxo++instance FromGrpc Utxo L.Utxo where+ fromGrpc x =+ Utxo+ <$> fromGrpc (x ^. L.addressType)+ <*> fromGrpc (x ^. L.address)+ <*> fromGrpcSat (x ^. L.amountSat)+ <*> fromGrpc (x ^. L.pkScript)+ <*> fromGrpc (x ^. L.outpoint)+ <*> fromGrpc (x ^. L.confirmations)++newtype ListUnspentResponse = ListUnspentResponse+ { utxos :: [Utxo]+ }+ deriving newtype (Eq, Ord, Show)+ deriving stock (Generic)++instance Out ListUnspentResponse++instance FromGrpc ListUnspentResponse W.ListUnspentResponse where+ fromGrpc x = ListUnspentResponse <$> mapM fromGrpc (x ^. W.utxos)
@@ -8,23 +8,20 @@ LndWalletPassword (..), LndTlsCert, LndHexMacaroon (..),- LndHost (..),- LndPort,+ LndHost' (..),+ LndPort', LndConfig (..), newLndEnv, readLndEnv, createLndTlsCert, unLndTlsCert, createLndPort,- katipAddLndContext,- newSeverity,- newSev,+ enforceDebugSev, ) where import Data.Aeson as A- ( (.:?),- Result (..),+ ( Result (..), Value (..), camelTo2, defaultOptions,@@ -32,69 +29,82 @@ fieldLabelModifier, genericParseJSON, withObject,+ (.:?), ) import qualified Data.ByteString.Char8 as C8 import qualified Data.PEM as Pem import Data.Scientific import Data.X509+import Data.X509.CertificateStore import Env import LndClient.Class import LndClient.Data.Newtype import LndClient.Data.Type import LndClient.Import.External as Ex import LndClient.Util as U-import Network.GRPC.Client.Helpers (GrpcClientConfig (..), grpcClientConfigSimple)+import Network.GRPC.Client.Helpers+ ( GrpcClientConfig (..),+ grpcClientConfigSimple,+ ) import Network.GRPC.HTTP2.Encoding (uncompressed)-import Network.HTTP2.Client+import Network.HTTP2.Client2+import qualified Network.TLS as TLS+import qualified Network.TLS.Extra.Cipher as TLS+import qualified Universum+import qualified Prelude newtype LndWalletPassword = LndWalletPassword Text- deriving (PersistField, PersistFieldSql, Eq, FromJSON, IsString)+ deriving newtype (PersistField, PersistFieldSql, Eq, FromJSON, IsString) -newtype LndTlsCert = LndTlsCert ByteString- deriving (PersistField, PersistFieldSql, Eq)+data LndTlsCert = LndTlsCert ByteString SignedCertificate+ deriving stock (Eq, Show) newtype LndHexMacaroon = LndHexMacaroon Text- deriving (PersistField, PersistFieldSql, Eq, FromJSON, IsString)+ deriving newtype (PersistField, PersistFieldSql, Eq, FromJSON, IsString) -newtype LndHost = LndHost Text- deriving (PersistField, PersistFieldSql, Eq, FromJSON, IsString)+newtype LndHost' = LndHost' Text+ deriving newtype (PersistField, PersistFieldSql, Eq, FromJSON, IsString)+ deriving stock (Generic) -newtype LndPort = LndPort Int- deriving (PersistField, PersistFieldSql, Eq)+instance Out LndHost' -data LndConfig- = LndConfig- { lndConfigHost :: HostName,- lndConfigPort :: PortNumber,- lndConfigTlsEnabled :: Bool,- lndConfigCompression :: Bool- }- deriving (Show)+newtype LndPort' = LndPort' Int+ deriving newtype (PersistField, PersistFieldSql, Eq)+ deriving stock (Generic) -data RawConfig- = RawConfig- { rawConfigLndWalletPassword :: LndWalletPassword,- rawConfigLndTlsCert :: LndTlsCert,- rawConfigLndHexMacaroon :: LndHexMacaroon,- rawConfigLndHost :: LndHost,- rawConfigLndPort :: LndPort,- rawConfigLndCipherSeedMnemonic :: Maybe CipherSeedMnemonic,- rawConfigLndAezeedPassphrase :: Maybe AezeedPassphrase- }- deriving (Eq, Generic)+instance Out LndPort' -data LndEnv- = LndEnv- { envLndWalletPassword :: LndWalletPassword,- envLndHexMacaroon :: LndHexMacaroon,- envLndLogStrategy :: LoggingStrategy,- envLndCipherSeedMnemonic :: Maybe CipherSeedMnemonic,- envLndAezeedPassphrase :: Maybe AezeedPassphrase,- envLndSyncGrpcTimeout :: Maybe GrpcTimeoutSeconds,- envLndAsyncGrpcTimeout :: Maybe GrpcTimeoutSeconds,- envLndConfig :: GrpcClientConfig- }+data LndConfig = LndConfig+ { lndConfigHost :: HostName,+ lndConfigPort :: PortNumber,+ lndConfigTlsEnabled :: Bool,+ lndConfigCompression :: Bool+ }+ deriving stock (Show) +data RawConfig = RawConfig+ { rawConfigLndWalletPassword :: LndWalletPassword,+ rawConfigLndTlsCert :: LndTlsCert,+ rawConfigLndHexMacaroon :: LndHexMacaroon,+ rawConfigLndHost :: LndHost',+ rawConfigLndPort :: LndPort',+ rawConfigLndCipherSeedMnemonic :: Maybe CipherSeedMnemonic,+ rawConfigLndAezeedPassphrase :: Maybe AezeedPassphrase+ }+ deriving stock (Eq, Generic)++data LndEnv = LndEnv+ { envLndWalletPassword :: LndWalletPassword,+ envLndHexMacaroon :: LndHexMacaroon,+ envLndLogStrategy :: LoggingStrategy,+ envLndCipherSeedMnemonic :: Maybe CipherSeedMnemonic,+ envLndAezeedPassphrase :: Maybe AezeedPassphrase,+ envLndSyncGrpcTimeout :: Maybe GrpcTimeoutSeconds,+ envLndAsyncGrpcTimeout :: Maybe GrpcTimeoutSeconds,+ envLndConfig :: GrpcClientConfig,+ envLndLogSeverity :: Maybe Severity+ }+ instance ToGrpc LndWalletPassword ByteString where toGrpc x = Right $ encodeUtf8 (coerce x :: Text) @@ -107,13 +117,15 @@ Left e -> failure e e -> failure e where- failure err = fail $ "Json certificate parsing error: " <> " " <> show err+ failure err =+ fail $+ "Json certificate parsing error: " <> Prelude.show err -instance FromJSON LndPort where+instance FromJSON LndPort' where parseJSON x = case x of A.Number s -> do- let ePort =+ let ePort :: Either LndError Word32 = maybeToRight (LndEnvError "Port should be Int") $ toBoundedInteger s@@ -122,7 +134,9 @@ Left err -> failure err err -> failure err where- failure err = fail $ "Json port loading error: " <> " " <> show err+ failure err =+ fail $+ "Json port loading error: " <> Prelude.show err instance FromJSON RawConfig where parseJSON =@@ -145,12 +159,27 @@ (rawConfigLndPort rc) (rawConfigLndCipherSeedMnemonic rc) (rawConfigLndAezeedPassphrase rc)+ let logStrategy =+ envLndLogStrategy res withObject "LndEnv" ( \obj ->- (\x y -> res {envLndSyncGrpcTimeout = x, envLndAsyncGrpcTimeout = y})+ ( \x0 x1 x2 x3 ->+ res+ { envLndSyncGrpcTimeout = x0,+ envLndAsyncGrpcTimeout = x1,+ envLndLogSeverity = x2,+ envLndLogStrategy =+ logStrategy+ { loggingStrategyMeta =+ fromMaybe (loggingStrategyMeta logStrategy) x3+ }+ }+ ) <$> obj .:? "lnd_sync_grpc_timeout_seconds" <*> obj .:? "lnd_async_grpc_timeout_seconds"+ <*> obj .:? "lnd_log_severity"+ <*> obj .:? "lnd_log_meta" ) arg @@ -161,16 +190,16 @@ note (LndEnvError $ pack "No pem found") $ safeHead pemsM bimap (LndEnvError . pack . ("Certificate is not valid: " <>))- (const $ LndTlsCert bs)+ (LndTlsCert bs) (decodeSignedCertificate $ Pem.pemContent pem) unLndTlsCert :: LndTlsCert -> ByteString-unLndTlsCert = coerce+unLndTlsCert (LndTlsCert bs _) = coerce bs -createLndPort :: Word32 -> Either LndError LndPort+createLndPort :: Word32 -> Either LndError LndPort' createLndPort p = do let maybePort :: Maybe Int = U.safeFromIntegral p- maybeToRight (LndEnvError "Wrong port") $ LndPort <$> maybePort+ maybeToRight (LndEnvError "Wrong port") $ LndPort' <$> maybePort readLndEnv :: IO LndEnv readLndEnv =@@ -185,16 +214,25 @@ parser x = first UnreadError $ eitherDecodeStrict $ C8.pack x +selfSignedCertificateValidation :: [SignedCertificate] -> TLS.ClientParams -> TLS.ClientParams+selfSignedCertificateValidation extraCerts cp =+ cp+ { TLS.clientShared =+ (TLS.clientShared cp) {TLS.sharedCAStore = makeCertificateStore extraCerts},+ TLS.clientSupported =+ (TLS.clientSupported cp) {TLS.supportedCiphers = TLS.ciphersuite_default}+ }+ newLndEnv :: LndWalletPassword -> LndTlsCert -> LndHexMacaroon ->- LndHost ->- LndPort ->+ LndHost' ->+ LndPort' -> Maybe CipherSeedMnemonic -> Maybe AezeedPassphrase -> LndEnv-newLndEnv pwd _cert mac host port seed aezeed =+newLndEnv pwd (LndTlsCert _ cert) mac (LndHost' host) (LndPort' port) seed aezeed = LndEnv { envLndWalletPassword = pwd, envLndHexMacaroon = mac,@@ -204,22 +242,28 @@ envLndSyncGrpcTimeout = Nothing, envLndAsyncGrpcTimeout = Nothing, envLndConfig =- (grpcClientConfigSimple (unpack $ coerce host) (fromInteger (toInteger (coerce port :: Int))) True)+ (grpcClientConfigSimple host_ port_ True) { _grpcClientConfigCompression = uncompressed,- _grpcClientConfigHeaders = [("macaroon", encodeUtf8 (coerce mac :: Text))]- }+ _grpcClientConfigHeaders =+ [ ("macaroon", encodeUtf8 (coerce mac :: Text))+ ],+ _grpcClientConfigTLS =+ Just . selfSignedCertificateValidation [cert] $+ TLS.defaultParamsClient host_ (Universum.show port_)+ },+ envLndLogSeverity = Just DebugS }--katipAddLndContext :: (KatipContext m) => LndEnv -> m a -> m a-katipAddLndContext env =- katipAddContext (sl "LndHost:" h)- . katipAddContext (sl "LndPort" p) where- h = _grpcClientConfigHost $ envLndConfig env- p = toInteger $ _grpcClientConfigPort $ envLndConfig env--newSeverity :: LndEnv -> Severity -> Maybe Timespan -> Maybe LndError -> Severity-newSeverity = coerce . envLndLogStrategy+ host_ = unpack host+ port_ :: PortNumber+ port_ = fromInteger (toInteger port) -newSev :: LndEnv -> Severity -> Severity-newSev env sev = newSeverity env sev Nothing Nothing+enforceDebugSev :: LndEnv -> LndEnv+enforceDebugSev env =+ env+ { envLndLogStrategy =+ (envLndLogStrategy env)+ { loggingStrategySeverity =+ loggingStrategySeverity logDebug+ }+ }
@@ -8,31 +8,36 @@ where import Data.ProtoLens.Message-import Data.Text (pack) import LndClient.Import-import qualified Proto.LndGrpc as LnGRPC-import qualified Proto.LndGrpc_Fields as LnGRPC+import qualified Proto.Lightning as LnGRPC+import qualified Proto.Lightning_Fields as LnGRPC -data NewAddressRequest- = NewAddressRequest- { addrType :: AddressType,- account :: Maybe String- }- deriving (Show, Eq)+data NewAddressRequest = NewAddressRequest+ { addrType :: AddressType,+ account :: Maybe String+ }+ deriving stock (Show, Eq, Generic) +instance Out NewAddressRequest+ data AddressType = WITNESS_PUBKEY_HASH | NESTED_PUBKEY_HASH | UNUSED_WITNESS_PUBKEY_HASH | UNUSED_NESTED_PUBKEY_HASH- deriving (Show, Eq)+ | UNKNOWN+ deriving stock (Show, Eq, Ord, Generic) -newtype NewAddressResponse- = NewAddressResponse- { address :: Text- }- deriving (Show, Eq)+instance Out AddressType +newtype NewAddressResponse = NewAddressResponse+ { address :: Text+ }+ deriving newtype (Show, Eq)+ deriving stock (Generic)++instance Out NewAddressResponse+ instance ToGrpc NewAddressRequest LnGRPC.NewAddressRequest where toGrpc x = msg@@ -46,12 +51,21 @@ instance ToGrpc AddressType LnGRPC.AddressType where toGrpc x =- Right $ case x of- WITNESS_PUBKEY_HASH -> LnGRPC.WITNESS_PUBKEY_HASH- NESTED_PUBKEY_HASH -> LnGRPC.NESTED_PUBKEY_HASH- UNUSED_WITNESS_PUBKEY_HASH -> LnGRPC.UNUSED_WITNESS_PUBKEY_HASH- UNUSED_NESTED_PUBKEY_HASH -> LnGRPC.UNUSED_NESTED_PUBKEY_HASH+ case x of+ WITNESS_PUBKEY_HASH -> Right LnGRPC.WITNESS_PUBKEY_HASH+ NESTED_PUBKEY_HASH -> Right LnGRPC.NESTED_PUBKEY_HASH+ UNUSED_WITNESS_PUBKEY_HASH -> Right LnGRPC.UNUSED_WITNESS_PUBKEY_HASH+ UNUSED_NESTED_PUBKEY_HASH -> Right LnGRPC.UNUSED_NESTED_PUBKEY_HASH+ UNKNOWN -> Left $ LndError "Unknown address type" instance FromGrpc NewAddressResponse LnGRPC.NewAddressResponse where fromGrpc x = NewAddressResponse <$> Right (x ^. LnGRPC.address)++instance FromGrpc AddressType LnGRPC.AddressType where+ fromGrpc x = Right $ case x of+ LnGRPC.WITNESS_PUBKEY_HASH -> WITNESS_PUBKEY_HASH+ LnGRPC.NESTED_PUBKEY_HASH -> NESTED_PUBKEY_HASH+ LnGRPC.UNUSED_WITNESS_PUBKEY_HASH -> UNUSED_WITNESS_PUBKEY_HASH+ LnGRPC.UNUSED_NESTED_PUBKEY_HASH -> UNUSED_NESTED_PUBKEY_HASH+ _ -> UNKNOWN
@@ -9,9 +9,11 @@ RHash (..), RPreimage (..), MSat (..),- Sat (..),- toSat,- toMSat,+ toGrpcSat,+ toGrpcMSat,+ toGrpcMaybe,+ fromGrpcSat,+ fromGrpcMSat, CipherSeedMnemonic (..), AezeedPassphrase (..), Seconds (..),@@ -20,19 +22,23 @@ GrpcTimeoutSeconds, newRHash, newRPreimage,+ newPendingChanId, newGrpcTimeout, unGrpcTimeout, defaultSyncGrpcTimeout, defaultAsyncGrpcTimeout, TxId (..), Vout (..),+ ChanId (..),+ PendingChannelId (..),+ Psbt (..),+ RawTx (..) ) where import Codec.QRCode as QR (ToText) import qualified Crypto.Hash.SHA256 as SHA256 (hash) import Crypto.Random (getRandomBytes)-import Data.Aeson (FromJSON (..)) import Data.ByteString.Base16 as B16 (decode, encode) import Data.ByteString.Char8 as C8 import Data.ProtoLens.Message@@ -41,65 +47,138 @@ import LndClient.Data.Type import LndClient.Import.External import LndClient.Util-import qualified Proto.InvoiceGrpc as IGrpc-import qualified Proto.InvoiceGrpc_Fields as IGrpc-import qualified Proto.LndGrpc as LnGrpc-import qualified Proto.LndGrpc_Fields as LnGrpc-import Prelude (Show)+import qualified Proto.Invoicesrpc.Invoices as IGrpc+import qualified Proto.Invoicesrpc.Invoices_Fields as IGrpc+import qualified Proto.Lnrpc.Ln1 as LnGrpc+import qualified Proto.Lnrpc.Ln1_Fields as LnGrpc +newtype PendingChannelId = PendingChannelId ByteString+ deriving newtype (PersistField, PersistFieldSql, Eq, Ord, Show)+ deriving stock (Generic)++instance Out PendingChannelId++newtype Psbt = Psbt ByteString+ deriving newtype (PersistField, PersistFieldSql, Eq, Ord, Show)+ deriving stock (Generic)++instance Out Psbt++newtype RawTx = RawTx ByteString+ deriving newtype (PersistField, PersistFieldSql, Eq, Ord, Show)+ deriving stock (Generic)++instance Out RawTx++newtype ChanId = ChanId Word64+ deriving newtype+ ( PersistField,+ PersistFieldSql,+ Eq,+ Ord,+ Show,+ Read+ )+ deriving stock (Generic)++instance Out ChanId+ newtype Vout (a :: TxKind) = Vout Word32 deriving newtype (PersistField, PersistFieldSql, Eq, Ord, Show, Read)+ deriving stock (Generic) +instance Out (Vout a)+ newtype TxId (a :: TxKind) = TxId ByteString- deriving (PersistField, PersistFieldSql, Eq, Ord, Show)+ deriving newtype (PersistField, PersistFieldSql, Eq, Ord, Show, Read)+ deriving stock (Generic) +instance Out (TxId a)+ newtype NodePubKey = NodePubKey ByteString- deriving (PersistField, PersistFieldSql, Eq, Ord, Show, Read)+ deriving newtype (PersistField, PersistFieldSql, Eq, Ord, Show, Read)+ deriving stock (Generic) +instance Out NodePubKey+ newtype NodeLocation = NodeLocation Text- deriving (PersistField, PersistFieldSql, Eq, Ord, Show, Read)+ deriving newtype (PersistField, PersistFieldSql, Eq, Ord, Show, Read)+ deriving stock (Generic) +instance Out NodeLocation+ newtype AddIndex = AddIndex Word64- deriving (PersistField, PersistFieldSql, Eq, Ord, Show)+ deriving newtype (PersistField, PersistFieldSql, Eq, Ord, Show)+ deriving stock (Generic) +instance Out AddIndex+ newtype SettleIndex = SettleIndex Word64- deriving (PersistField, PersistFieldSql, Eq, Ord, Show)+ deriving newtype (PersistField, PersistFieldSql, Eq, Ord, Show)+ deriving stock (Generic) +instance Out SettleIndex+ newtype PaymentRequest = PaymentRequest Text- deriving (PersistField, PersistFieldSql, Eq, QR.ToText, Show)+ deriving newtype (PersistField, PersistFieldSql, Eq, QR.ToText, Show)+ deriving stock (Generic) +instance Out PaymentRequest+ newtype RHash = RHash ByteString- deriving (PersistField, PersistFieldSql, Eq, Ord, Show)+ deriving newtype (PersistField, PersistFieldSql, Eq, Ord, Show)+ deriving stock (Generic) +instance Out RHash+ newtype RPreimage = RPreimage ByteString- deriving (PersistField, PersistFieldSql, Eq, Ord, Show)+ deriving newtype (PersistField, PersistFieldSql, Eq, Ord, Show)+ deriving stock (Generic) +instance Out RPreimage+ newtype MSat = MSat Word64- deriving+ deriving newtype ( PersistField, PersistFieldSql, Eq, Num, Ord, FromJSON,- Show+ Show,+ Read )+ deriving stock+ ( Generic+ ) -newtype Sat = Sat Word64- deriving- (Eq, Num, Ord, FromJSON, Show)+instance Out MSat newtype CipherSeedMnemonic = CipherSeedMnemonic [Text]- deriving (PersistField, PersistFieldSql, Eq, FromJSON, Show)+ deriving newtype (PersistField, PersistFieldSql, Eq, FromJSON) newtype AezeedPassphrase = AezeedPassphrase Text- deriving (PersistField, PersistFieldSql, Eq, FromJSON, Show)+ deriving newtype (PersistField, PersistFieldSql, Eq, FromJSON) newtype Seconds = Seconds Word64- deriving (PersistField, PersistFieldSql, Eq, FromJSON, Show)+ deriving newtype+ ( PersistField,+ PersistFieldSql,+ Eq,+ Ord,+ FromJSON,+ Show,+ Num,+ Real,+ Enum,+ Integral+ )+ deriving stock (Generic) +instance Out Seconds+ newtype GrpcTimeoutSeconds = GrpcTimeoutSeconds Int- deriving (Eq, Ord, FromJSON, Show)+ deriving newtype (Eq, Ord, FromJSON, Show) instance ToGrpc NodePubKey ByteString where toGrpc = Right . coerce@@ -143,41 +222,26 @@ instance ToGrpc (Vout a) Word32 where toGrpc = Right . coerce -instance ToGrpc AddIndex Word64 where+instance ToGrpc ChanId Word64 where toGrpc = Right . coerce -instance ToGrpc SettleIndex Word64 where+instance ToGrpc PendingChannelId ByteString where toGrpc = Right . coerce -instance ToGrpc MSat Int64 where- toGrpc x =- maybeToRight- (ToGrpcError "MSat overflow")- $ safeFromIntegral (coerce x :: Word64)+instance ToGrpc Psbt ByteString where+ toGrpc = Right . coerce -instance FromGrpc MSat Int64 where- fromGrpc x =- maybeToRight- (ToGrpcError "MSat overflow")- $ MSat <$> safeFromIntegral x+instance ToGrpc RawTx ByteString where+ toGrpc = Right . coerce -instance FromGrpc MSat Word64 where- fromGrpc x =- maybeToRight- (ToGrpcError "MSat overflow")- $ MSat <$> safeFromIntegral x+instance ToGrpc AddIndex Word64 where+ toGrpc = Right . coerce -instance ToGrpc Sat Int64 where- toGrpc x =- maybeToRight- (ToGrpcError "Sat overflow")- $ safeFromIntegral (coerce x :: Word64)+instance ToGrpc SettleIndex Word64 where+ toGrpc = Right . coerce -instance FromGrpc Sat Int64 where- fromGrpc x =- maybeToRight- (ToGrpcError "Sat overflow")- $ Sat <$> safeFromIntegral x+instance FromGrpc ChanId Word64 where+ fromGrpc = Right . coerce instance FromGrpc RHash ByteString where fromGrpc = Right . RHash@@ -185,6 +249,9 @@ instance FromGrpc RPreimage ByteString where fromGrpc = Right . RPreimage +instance FromGrpc Psbt ByteString where+ fromGrpc = Right . Psbt+ instance FromGrpc AddIndex Word64 where fromGrpc = Right . AddIndex @@ -263,6 +330,10 @@ newRPreimage :: MonadIO m => m RPreimage newRPreimage = RPreimage <$> liftIO (getRandomBytes 32) ++newPendingChanId :: MonadIO m => m PendingChannelId+newPendingChanId = PendingChannelId <$> liftIO (getRandomBytes 32)+ newGrpcTimeout :: Int -> Maybe GrpcTimeoutSeconds newGrpcTimeout x = if x > 0@@ -278,12 +349,31 @@ defaultAsyncGrpcTimeout :: GrpcTimeoutSeconds defaultAsyncGrpcTimeout = GrpcTimeoutSeconds 3600 -toSat :: MSat -> Either LndError Sat-toSat mSat = do+toGrpcSat :: (Integral a, Bounded a) => MSat -> Either LndError a+toGrpcSat mSat = do let mVal :: Word64 = coerce mSat case divMod mVal 1000 of- (val, 0) -> Right $ Sat val- _ -> Left $ ToGrpcError ("Cannot convert " <> show mVal <> " to Sat")+ (val, 0) -> maybeToRight (ToGrpcError "MSat overflow") $ safeFromIntegral val+ _ -> Left $ ToGrpcError ("Cannot convert " <> inspect mVal <> " to Sat") -toMSat :: Sat -> MSat-toMSat sat = MSat $ 1000 * coerce sat+fromGrpcSat :: (Integral a) => a -> Either LndError MSat+fromGrpcSat sat =+ maybeToRight+ (FromGrpcError ("Cannot convert " <> (inspect . toInteger) sat <> " to MSat"))+ $ MSat . (1000 *) <$> safeFromIntegral sat++toGrpcMSat :: (Integral a, Bounded a) => MSat -> Either LndError a+toGrpcMSat x =+ maybeToRight+ (ToGrpcError "MSat overflow")+ $ safeFromIntegral (coerce x :: Word64)++toGrpcMaybe :: (ToGrpc a b) => Maybe a -> Either LndError (Maybe b)+toGrpcMaybe (Just fs) = Just <$> toGrpc fs+toGrpcMaybe Nothing = Right Nothing++fromGrpcMSat :: (Integral a) => a -> Either LndError MSat+fromGrpcMSat x =+ maybeToRight+ (FromGrpcError "MSat overflow")+ $ MSat <$> safeFromIntegral x
@@ -3,6 +3,9 @@ module LndClient.Data.OpenChannel ( OpenChannelRequest (..), OpenStatusUpdate (..),+ OpenStatusUpdate' (..),+ ReadyForPsbtFunding (..),+ ChannelOpenUpdate (..) ) where @@ -10,49 +13,59 @@ import LndClient.Data.Channel import LndClient.Data.ChannelPoint import LndClient.Import-import qualified Proto.LndGrpc as LnGRPC-import qualified Proto.LndGrpc_Fields as LnGRPC+import qualified Proto.Lightning as LnGRPC+import qualified Proto.Lightning_Fields as LnGRPC+import LndClient.Data.PsbtShim -data OpenChannelRequest- = OpenChannelRequest- { nodePubkey :: NodePubKey,- localFundingAmount :: MSat,- pushSat :: Maybe MSat,- targetConf :: Maybe Int32,- satPerByte :: Maybe MSat,- private :: Maybe Bool,- minHtlcMsat :: Maybe MSat,- remoteCsvDelay :: Maybe Word32,- minConfs :: Maybe Int32,- spendUnconfirmed :: Maybe Bool,- closeAddress :: Maybe Text- }- deriving (Eq, Show)+data OpenChannelRequest = OpenChannelRequest+ { nodePubkey :: NodePubKey,+ localFundingAmount :: MSat,+ pushMSat :: Maybe MSat,+ targetConf :: Maybe Int32,+ mSatPerByte :: Maybe MSat,+ private :: Maybe Bool,+ minHtlcMsat :: Maybe MSat,+ remoteCsvDelay :: Maybe Word32,+ minConfs :: Maybe Int32,+ spendUnconfirmed :: Maybe Bool,+ closeAddress :: Maybe Text,+ fundingShim :: Maybe PsbtShim+ }+ deriving stock (Eq, Show, Generic) -data OpenStatusUpdate- = OpenStatusUpdate- { pendingChanId :: ByteString,- update :: Maybe OpenStatusUpdate'- }- deriving (Eq, Show)+instance Out OpenChannelRequest +data OpenStatusUpdate = OpenStatusUpdate+ { pendingChanId :: ByteString,+ update :: Maybe OpenStatusUpdate'+ }+ deriving stock (Eq, Show, Generic)++instance Out OpenStatusUpdate+ data OpenStatusUpdate' = OpenStatusUpdateChanPending (PendingUpdate 'Funding) | OpenStatusUpdateChanOpen ChannelOpenUpdate | OpenStatusUpdatePsbtFund ReadyForPsbtFunding- deriving (Eq, Show)+ deriving stock (Eq, Show, Generic) +instance Out OpenStatusUpdate'+ newtype ChannelOpenUpdate = ChannelOpenUpdate ChannelPoint- deriving (Eq, Show)+ deriving newtype (Eq, Show)+ deriving stock (Generic) -data ReadyForPsbtFunding- = ReadyForPsbtFunding- { fundingAddress :: Text,- fundingAmount :: MSat,- psbt :: ByteString- }- deriving (Eq, Show)+instance Out ChannelOpenUpdate +data ReadyForPsbtFunding = ReadyForPsbtFunding+ { fundingAddress :: Text,+ fundingAmount :: MSat,+ psbt :: Psbt+ }+ deriving stock (Eq, Show, Generic)++instance Out ReadyForPsbtFunding+ instance FromGrpc OpenStatusUpdate LnGRPC.OpenStatusUpdate where fromGrpc x = OpenStatusUpdate@@ -75,25 +88,26 @@ fromGrpc x = ReadyForPsbtFunding <$> fromGrpc (x ^. LnGRPC.fundingAddress)- <*> fromGrpc (x ^. LnGRPC.fundingAmount)+ <*> fromGrpcSat (x ^. LnGRPC.fundingAmount) <*> fromGrpc (x ^. LnGRPC.psbt) instance ToGrpc OpenChannelRequest LnGRPC.OpenChannelRequest where toGrpc x = msg <$> toGrpc (nodePubkey x)- <*> (toGrpc =<< toSat (localFundingAmount x))- <*> maybe (Right fieldDefault) (toGrpc <=< toSat) (pushSat x)+ <*> toGrpcSat (localFundingAmount x)+ <*> maybe (Right fieldDefault) toGrpcSat (pushMSat x) <*> toGrpc (targetConf x)- <*> maybe (Right fieldDefault) (toGrpc <=< toSat) (satPerByte x)+ <*> maybe (Right fieldDefault) toGrpcSat (mSatPerByte x) <*> toGrpc (private x)- <*> toGrpc (minHtlcMsat x)+ <*> maybe (Right fieldDefault) toGrpcMSat (minHtlcMsat x) <*> toGrpc (remoteCsvDelay x) <*> toGrpc (minConfs x) <*> toGrpc (spendUnconfirmed x) <*> toGrpc (closeAddress x)+ <*> toGrpcMaybe (fundingShim x) where- msg gNodePubKey gLocalFindingAmount gPushSat gTargetConf gSatPerByte gPrivate gMinHtlcMsat gRemoteCsvDelay gMinConfs gSpendUnconfirmed gCloseAddress =+ msg gNodePubKey gLocalFindingAmount gPushSat gTargetConf gSatPerByte gPrivate gMinHtlcMsat gRemoteCsvDelay gMinConfs gSpendUnconfirmed gCloseAddress gFundingShim= defMessage & LnGRPC.nodePubkey .~ gNodePubKey & LnGRPC.localFundingAmount .~ gLocalFindingAmount@@ -106,3 +120,4 @@ & LnGRPC.minConfs .~ gMinConfs & LnGRPC.spendUnconfirmed .~ gSpendUnconfirmed & LnGRPC.closeAddress .~ gCloseAddress+ & LnGRPC.maybe'fundingShim .~ gFundingShim
@@ -0,0 +1,27 @@+module LndClient.Data.OutPoint (OutPoint (..)) where++import Data.ProtoLens.Message+import LndClient.Import+import qualified Proto.Lnrpc.Ln0 as LnGRPC+import qualified Proto.Lnrpc.Ln0_Fields as LnGRPC++data OutPoint = OutPoint+ { txid :: ByteString,+ outputIndex :: Word32+ }+ deriving stock (Eq, Ord, Show, Generic)++instance Out OutPoint++instance ToGrpc OutPoint LnGRPC.OutPoint where+ toGrpc x =+ Right $+ defMessage+ & LnGRPC.txidBytes .~ txid x+ & LnGRPC.outputIndex .~ outputIndex x++instance FromGrpc OutPoint LnGRPC.OutPoint where+ fromGrpc x =+ OutPoint+ <$> fromGrpc (x ^. LnGRPC.txidBytes)+ <*> fromGrpc (x ^. LnGRPC.outputIndex)
@@ -1,23 +1,62 @@ module LndClient.Data.PayReq ( PayReq (..),+ addSeconds, ) where +import Data.Time.Clock (addUTCTime)+import Data.Time.Clock.POSIX (posixSecondsToUTCTime) import LndClient.Import-import qualified Proto.LndGrpc as LnGRPC-import qualified Proto.LndGrpc_Fields as LnGRPC+import qualified Proto.Lnrpc.Ln1 as LnGRPC+import qualified Proto.Lnrpc.Ln1_Fields as LnGRPC -data PayReq- = PayReq- { paymentHash :: RHash,- numMsat :: MSat,- expiry :: Seconds- }- deriving (Eq, Show)+data PayReq = PayReq+ { destination :: NodePubKey,+ paymentHash :: RHash,+ numMsat :: MSat,+ expiry :: Seconds,+ timestamp :: UTCTime,+ expiresAt :: UTCTime+ }+ deriving stock (Eq, Show, Generic) +instance Out PayReq+ instance FromGrpc PayReq LnGRPC.PayReq where- fromGrpc x =- PayReq- <$> fromGrpc (x ^. LnGRPC.paymentHash)- <*> fromGrpc (x ^. LnGRPC.numMsat)- <*> fromGrpc (x ^. LnGRPC.expiry)+ fromGrpc x = do+ dest <- fromGrpc (x ^. LnGRPC.destination)+ hash <- fromGrpc (x ^. LnGRPC.paymentHash)+ msat <- fromGrpcMSat (x ^. LnGRPC.numMsat)+ expSec <- fromGrpc (x ^. LnGRPC.expiry)+ let createdAt = secToUtcTime $ x ^. LnGRPC.timestamp+ pure+ PayReq+ { destination = dest,+ paymentHash = hash,+ numMsat = msat,+ expiry = expSec,+ timestamp = createdAt,+ expiresAt = addSeconds expSec createdAt+ }++addSeconds :: Seconds -> UTCTime -> UTCTime+addSeconds =+ addUTCTime+ . fromRational+ . toRational+ . secondsToDiffTime+ . fromIntegral++secToUtcTime :: Int64 -> UTCTime+secToUtcTime x =+ addUTCTime+ ( fromRational+ . toRational+ . secondsToDiffTime+ $ fromIntegral x+ )+ epoch++epoch :: UTCTime+epoch =+ posixSecondsToUTCTime 0
@@ -1,35 +1,48 @@ module LndClient.Data.Payment ( Payment (..),+ PaymentStatus (..), ) where -import LndClient.Import-import qualified Proto.LndGrpc as LnGRPC-import qualified Proto.LndGrpc_Fields as LnGRPC+import LndClient.Import hiding (state)+import qualified Proto.Lnrpc.Ln1 as LnGRPC+import qualified Proto.Lnrpc.Ln1_Fields as LnGRPC+import Text.PrettyPrint.GenericPretty.Import -data Payment- = Payment- { paymentHash :: RHash,- paymentPreimage :: RPreimage,- valueMsat :: MSat,- state :: PaymentStatus- }- deriving (Eq, Show)+data Payment = Payment+ { paymentHash :: RHash,+ paymentPreimage :: RPreimage,+ valueMsat :: MSat,+ state :: PaymentStatus+ }+ deriving stock (Eq, Show, Generic) +instance Out Payment+ data PaymentStatus = UNKNOWN | IN_FLIGHT | SUCCEEDED | FAILED- deriving (Eq, Show)+ deriving stock (Eq, Show, Generic) +instance Out PaymentStatus+ instance FromGrpc Payment LnGRPC.Payment where- fromGrpc x =- Payment- <$> fromGrpc (x ^. LnGRPC.paymentHash)- <*> fromGrpc (x ^. LnGRPC.paymentPreimage)- <*> fromGrpc (x ^. LnGRPC.valueMsat)- <*> fromGrpc (x ^. LnGRPC.status)+ fromGrpc x = do+ res <-+ Payment+ <$> fromGrpc (x ^. LnGRPC.paymentHash)+ <*> fromGrpc (x ^. LnGRPC.paymentPreimage)+ <*> fromGrpcMSat (x ^. LnGRPC.valueMsat)+ <*> fromGrpc (x ^. LnGRPC.status)+ if (state res == SUCCEEDED)+ && (newRHash (paymentPreimage res) /= paymentHash res)+ then+ Left . LndError $+ "paymentPreimage doesn't match paymentHash, got: "+ <> inspectPlain res+ else Right res instance FromGrpc PaymentStatus LnGRPC.Payment'PaymentStatus where fromGrpc x =@@ -38,4 +51,7 @@ LnGRPC.Payment'IN_FLIGHT -> Right IN_FLIGHT LnGRPC.Payment'SUCCEEDED -> Right SUCCEEDED LnGRPC.Payment'FAILED -> Right FAILED- LnGRPC.Payment'PaymentStatus'Unrecognized v -> Left $ FromGrpcError ("Cannot parse PaymentStatus, value:" <> show v)+ LnGRPC.Payment'PaymentStatus'Unrecognized v ->+ Left+ . FromGrpcError+ $ "Cannot parse PaymentStatus, value:" <> inspect v
@@ -10,29 +10,31 @@ import Data.ProtoLens.Message import LndClient.Import-import qualified Proto.LndGrpc as LnGRPC-import qualified Proto.LndGrpc_Fields as LnGRPC+import qualified Proto.Lightning as LnGRPC+import qualified Proto.Lightning_Fields as LnGRPC -data Peer- = Peer- { pubKey :: NodePubKey,- address :: NodeLocation- }- deriving (Eq, Show)+data Peer = Peer+ { pubKey :: NodePubKey,+ address :: NodeLocation+ }+ deriving stock (Eq, Show, Generic) +instance Out Peer+ instance FromGrpc Peer LnGRPC.Peer where fromGrpc x = Peer <$> fromGrpc (x ^. LnGRPC.pubKey) <*> fromGrpc (x ^. LnGRPC.address) -data LightningAddress- = LightningAddress- { pubkey :: NodePubKey,- host :: NodeLocation- }- deriving (Eq, Show, Read)+data LightningAddress = LightningAddress+ { pubkey :: NodePubKey,+ host :: NodeLocation+ }+ deriving stock (Eq, Show, Read, Generic) +instance Out LightningAddress+ instance ToGrpc LightningAddress LnGRPC.LightningAddress where toGrpc x = msg@@ -44,12 +46,13 @@ & LnGRPC.pubkey .~ gPubkey & LnGRPC.host .~ gHost -data ConnectPeerRequest- = ConnectPeerRequest- { addr :: LightningAddress,- perm :: Bool- }- deriving (Eq, Show)+data ConnectPeerRequest = ConnectPeerRequest+ { addr :: LightningAddress,+ perm :: Bool+ }+ deriving stock (Eq, Show, Generic)++instance Out ConnectPeerRequest instance ToGrpc ConnectPeerRequest LnGRPC.ConnectPeerRequest where toGrpc x =
@@ -5,21 +5,23 @@ import LndClient.Data.ChannelPoint import LndClient.Import-import qualified Proto.LndGrpc as LnGRPC-import qualified Proto.LndGrpc_Fields as LnGRPC+import qualified Proto.Lnrpc.Ln0 as LnGRPC+import qualified Proto.Lnrpc.Ln0_Fields as LnGRPC -data PendingChannel- = PendingChannel- { remoteNodePub :: NodePubKey,- channelPoint :: ChannelPoint,- capacity :: MSat,- localBalance :: MSat,- remoteBalance :: MSat,- localChanReserveSat :: MSat,- remoteChanReserveSat :: MSat- }- deriving (Eq, Show)+data PendingChannel = PendingChannel+ { remoteNodePub :: NodePubKey,+ channelPoint :: ChannelPoint,+ capacity :: MSat,+ localBalance :: MSat,+ remoteBalance :: MSat,+ localChanReserveSat :: MSat,+ remoteChanReserveSat :: MSat,+ initiator :: LnInitiator+ }+ deriving stock (Eq, Show, Generic) +instance Out PendingChannel+ instance FromGrpc PendingChannel@@ -31,20 +33,9 @@ (x ^. LnGRPC.remoteNodePub) <*> channelPointParser (x ^. LnGRPC.channelPoint)- <*> (toMSat <$> fromGrpc (x ^. LnGRPC.capacity))- <*> ( toMSat- <$> fromGrpc- (x ^. LnGRPC.localBalance)- )- <*> ( toMSat- <$> fromGrpc- (x ^. LnGRPC.remoteBalance)- )- <*> ( toMSat- <$> fromGrpc- (x ^. LnGRPC.localChanReserveSat)- )- <*> ( toMSat- <$> fromGrpc- (x ^. LnGRPC.remoteChanReserveSat)- )+ <*> fromGrpcSat (x ^. LnGRPC.capacity)+ <*> fromGrpcSat (x ^. LnGRPC.localBalance)+ <*> fromGrpcSat (x ^. LnGRPC.remoteBalance)+ <*> fromGrpcSat (x ^. LnGRPC.localChanReserveSat)+ <*> fromGrpcSat (x ^. LnGRPC.remoteChanReserveSat)+ <*> fromGrpc (x ^. LnGRPC.initiator)
@@ -10,26 +10,24 @@ import LndClient.Data.PendingOpenChannel import LndClient.Data.WaitingCloseChannel import LndClient.Import-import qualified Proto.LndGrpc as LnGRPC-import qualified Proto.LndGrpc_Fields as LnGRPC+import qualified Proto.Lnrpc.Ln0 as LnGRPC+import qualified Proto.Lnrpc.Ln0_Fields as LnGRPC -data PendingChannelsResponse- = PendingChannelsResponse- { totalLimboBalance :: MSat,- pendingOpenChannels :: [PendingOpenChannel],- pendingClosingChannels :: [ClosedChannel],- pendingForceClosingChannels :: [ForceClosedChannel],- waitingCloseChannels :: [WaitingCloseChannel]- }- deriving (Eq, Show)+data PendingChannelsResponse = PendingChannelsResponse+ { totalLimboBalance :: MSat,+ pendingOpenChannels :: [PendingOpenChannel],+ pendingClosingChannels :: [ClosedChannel],+ pendingForceClosingChannels :: [ForceClosedChannel],+ waitingCloseChannels :: [WaitingCloseChannel]+ }+ deriving stock (Eq, Show, Generic) +instance Out PendingChannelsResponse+ instance FromGrpc PendingChannelsResponse LnGRPC.PendingChannelsResponse where fromGrpc x = PendingChannelsResponse- <$> ( toMSat- <$> fromGrpc- (x ^. LnGRPC.totalLimboBalance)- )+ <$> fromGrpcSat (x ^. LnGRPC.totalLimboBalance) <*> fromGrpc (x ^. LnGRPC.pendingOpenChannels) <*> fromGrpc
@@ -5,19 +5,20 @@ import LndClient.Data.PendingChannel import LndClient.Import-import qualified Proto.LndGrpc as LnGRPC-import qualified Proto.LndGrpc_Fields as LnGRPC+import qualified Proto.Lnrpc.Ln0 as LnGRPC+import qualified Proto.Lnrpc.Ln0_Fields as LnGRPC -data PendingOpenChannel- = PendingOpenChannel- { channel :: PendingChannel,- confirmationHeight :: Word32,- commitFee :: MSat,- commitWeight :: Int64,- feePerKw :: MSat- }- deriving (Eq, Show)+data PendingOpenChannel = PendingOpenChannel+ { channel :: PendingChannel,+ confirmationHeight :: Word32,+ commitFee :: MSat,+ commitWeight :: Int64,+ feePerKw :: MSat+ }+ deriving stock (Eq, Show, Generic) +instance Out PendingOpenChannel+ instance FromGrpc PendingOpenChannel@@ -29,13 +30,6 @@ (x ^. LnGRPC.channel) <*> fromGrpc (x ^. LnGRPC.confirmationHeight)- <*> ( toMSat- <$> fromGrpc- (x ^. LnGRPC.commitFee)- )- <*> fromGrpc- (x ^. LnGRPC.commitWeight)- <*> ( toMSat- <$> fromGrpc- (x ^. LnGRPC.feePerKw)- )+ <*> fromGrpcSat (x ^. LnGRPC.commitFee)+ <*> fromGrpc (x ^. LnGRPC.commitWeight)+ <*> fromGrpcSat (x ^. LnGRPC.feePerKw)
@@ -0,0 +1,38 @@+{-# LANGUAGE FlexibleContexts #-}++module LndClient.Data.PsbtShim+ ( PsbtShim (..),+ )+where++import Data.ProtoLens.Message+import LndClient.Data.Newtype+import LndClient.Import+import qualified Proto.Lnrpc.Ln0 as L+import qualified Proto.Lnrpc.Ln0_Fields as L+import Lens.Micro++data PsbtShim = PsbtShim+ { pendingChanId :: PendingChannelId,+ basePsbt :: Maybe Psbt,+ noPublish :: Bool+ }+ deriving stock (Eq, Ord, Show, Generic)++instance Out PsbtShim++toBasePsbt :: Maybe Psbt -> Either LndError ByteString+toBasePsbt = maybe (Right "") toGrpc++instance ToGrpc PsbtShim L.PsbtShim where+ toGrpc x = msg <$> toGrpc (pendingChanId x) <*> toBasePsbt (basePsbt x) <*> pure (noPublish x)+ where+ msg pchid bp np = defMessage & L.pendingChanId .~ pchid & L.basePsbt .~ bp & L.noPublish .~ np++instance ToGrpc PsbtShim L.FundingShim where+ toGrpc x = msg <$> toGrpc (pendingChanId x) <*> toBasePsbt (basePsbt x) <*> pure (noPublish x)+ where+ msg pchid bp np =+ defMessage+ & L.maybe'psbtShim ?~+ (defMessage & L.pendingChanId .~ pchid & L.basePsbt .~ bp & L.noPublish .~ np)
@@ -0,0 +1,39 @@+{-# LANGUAGE FlexibleContexts #-}++module LndClient.Data.PublishTransaction+ ( PublishTransactionRequest (..),+ PublishTransactionResponse (..),+ )+where++import Data.ProtoLens.Message+import LndClient.Import+import qualified Proto.Walletrpc.Walletkit as W+import qualified Proto.Walletrpc.Walletkit_Fields as W++data PublishTransactionRequest = PublishTransactionRequest+ { txHex :: ByteString,+ label :: Text+ }+ deriving stock (Eq, Ord, Show, Generic)++instance Out PublishTransactionRequest++instance ToGrpc PublishTransactionRequest W.Transaction where+ toGrpc x = pure $ msg (txHex x) (label x)+ where+ msg f a =+ defMessage+ & W.txHex .~ f+ & W.label .~ a++newtype PublishTransactionResponse = PublishTransactionResponse+ { publishError :: Text+ }+ deriving newtype (Eq, Ord, Show)+ deriving stock (Generic)++instance Out PublishTransactionResponse++instance FromGrpc PublishTransactionResponse W.PublishResponse where+ fromGrpc x = Right $ PublishTransactionResponse (x ^. W.publishError)
@@ -0,0 +1,41 @@+{-# LANGUAGE FlexibleContexts #-}++module LndClient.Data.ReleaseOutput+ ( ReleaseOutputRequest (..),+ ReleaseOutputResponse (..),+ )+where++import Data.ProtoLens.Message+import LndClient.Data.OutPoint+import LndClient.Import+import qualified Proto.Lnrpc.Ln0 as LnGRPC+import qualified Proto.Walletrpc.Walletkit as W+import qualified Proto.Walletrpc.Walletkit_Fields as W++data ReleaseOutputRequest = ReleaseOutputRequest+ { id' :: ByteString,+ outpoint :: Maybe OutPoint+ }+ deriving stock (Eq, Ord, Show, Generic)++instance Out ReleaseOutputRequest++instance ToGrpc ReleaseOutputRequest W.ReleaseOutputRequest where+ toGrpc x = msg (id' x) <$> out'+ where+ out' :: Either LndError (Maybe LnGRPC.OutPoint)+ out' = case outpoint x of+ Just op -> Just <$> toGrpc op+ Nothing -> Right Nothing+ msg i o =+ defMessage+ & (W.id .~ i)+ & (W.maybe'outpoint .~ o)++data ReleaseOutputResponse = ReleaseOutputResponse deriving stock (Eq, Ord, Show, Generic)++instance Out ReleaseOutputResponse++instance FromGrpc ReleaseOutputResponse W.ReleaseOutputResponse where+ fromGrpc = const $ Right ReleaseOutputResponse
@@ -0,0 +1,45 @@+{-# LANGUAGE FlexibleContexts #-}++module LndClient.Data.SendCoins+ ( SendCoinsRequest (..),+ SendCoinsResponse (..),+ )+where++import Data.ProtoLens.Message+import LndClient.Import+import qualified Proto.Lightning as LnGRPC+import qualified Proto.Lightning_Fields as LnGRPC++data SendCoinsRequest = SendCoinsRequest+ { addr :: Text,+ amount :: MSat,+ sendAll :: Bool+ }+ deriving stock (Eq, Show, Generic)++instance Out SendCoinsRequest++newtype SendCoinsResponse = SendCoinsResponse+ { txid :: Text+ }+ deriving newtype (Eq, Show)+ deriving stock (Generic)++instance Out SendCoinsResponse++instance ToGrpc SendCoinsRequest LnGRPC.SendCoinsRequest where+ toGrpc x =+ msg+ <$> toGrpcSat (amount x)+ <*> toGrpc (addr x)+ <*> toGrpc (sendAll x)+ where+ msg gAmt gAddr gSendAll=+ defMessage+ & LnGRPC.amount .~ gAmt+ & LnGRPC.addr .~ gAddr+ & LnGRPC.sendAll .~ gSendAll++instance FromGrpc SendCoinsResponse LnGRPC.SendCoinsResponse where+ fromGrpc x = SendCoinsResponse <$> fromGrpc (x ^. LnGRPC.txid)
@@ -8,34 +8,39 @@ import Data.ProtoLens.Message import LndClient.Import-import qualified Proto.LndGrpc as LnGRPC-import qualified Proto.LndGrpc_Fields as LnGRPC+import qualified Proto.Lightning as LnGRPC+import qualified Proto.Lightning_Fields as LnGRPC -data SendPaymentRequest- = SendPaymentRequest- { paymentRequest :: PaymentRequest,- amt :: MSat- }- deriving (Eq, Show)+data SendPaymentRequest = SendPaymentRequest+ { paymentRequest :: PaymentRequest,+ amt :: MSat,+ outgoingChanId :: Maybe ChanId+ }+ deriving stock (Eq, Show, Generic) -data SendPaymentResponse- = SendPaymentResponse- { paymentError :: Text,- paymentPreimage :: RPreimage,- paymentHash :: RHash- }- deriving (Eq, Show)+instance Out SendPaymentRequest +data SendPaymentResponse = SendPaymentResponse+ { paymentError :: Text,+ paymentPreimage :: RPreimage,+ paymentHash :: RHash+ }+ deriving stock (Eq, Show, Generic)++instance Out SendPaymentResponse+ instance ToGrpc SendPaymentRequest LnGRPC.SendRequest where toGrpc x = msg- <$> toGrpc (amt x)+ <$> toGrpcMSat (amt x) <*> toGrpc (paymentRequest x)+ <*> toGrpc (outgoingChanId x) where- msg gAmt gPaymentRequest =+ msg gAmt gPaymentRequest gChanId = defMessage & LnGRPC.amtMsat .~ gAmt & LnGRPC.paymentRequest .~ gPaymentRequest+ & LnGRPC.outgoingChanId .~ gChanId instance FromGrpc SendPaymentResponse LnGRPC.SendResponse where fromGrpc x = do
@@ -0,0 +1,76 @@+{-# LANGUAGE FlexibleContexts #-}+{-# LANGUAGE FlexibleInstances #-}++module LndClient.Data.SignMessage+ ( SignMessageRequest (..),+ SignMessageResponse (..),+ KeyLocator (..),+ )+where++import Data.ProtoLens.Message+import LndClient.Import+import qualified Proto.Signrpc.Signer as LnGRPC+import qualified Proto.Signrpc.Signer_Fields as LnGRPC+import qualified Proto.Lnrpc.Ln0 as L+import qualified Proto.Lnrpc.Ln0_Fields as L++data SignMessageRequest = SignMessageRequest+ { message :: ByteString,+ keyLoc :: KeyLocator,+ doubleHash :: Bool,+ compactSig :: Bool+ }+ deriving stock (Eq, Show, Generic)++instance Out SignMessageRequest++newtype SignMessageResponse = SignMessageResponse ByteString+ deriving newtype (Eq, Show)+ deriving stock (Generic)++instance Out SignMessageResponse++instance ToGrpc SignMessageRequest LnGRPC.SignMessageReq where+ toGrpc x =+ msg+ <$> toGrpc (message x)+ <*> toGrpc (keyLoc x)+ <*> toGrpc (doubleHash x)+ <*> toGrpc (compactSig x)+ where+ msg gMsg gKeyLoc gDoubleHash gCompactSig =+ defMessage+ & LnGRPC.msg .~ gMsg+ & LnGRPC.keyLoc .~ gKeyLoc+ & LnGRPC.doubleHash .~ gDoubleHash+ & LnGRPC.compactSig .~ gCompactSig++instance FromGrpc SignMessageResponse LnGRPC.SignMessageResp where+ fromGrpc x = SignMessageResponse <$> fromGrpc (x ^. LnGRPC.signature)++data KeyLocator = KeyLocator+ { keyFamily :: Int32,+ keyIndex :: Int32+ }+ deriving stock (Eq, Show, Ord, Generic)++instance Out KeyLocator++instance ToGrpc KeyLocator LnGRPC.KeyLocator where+ toGrpc x =+ msg+ <$> toGrpc (keyFamily x)+ <*> toGrpc (keyIndex x)+ where+ msg gKeyFamily gKeyIndex =+ defMessage+ & LnGRPC.keyFamily .~ gKeyFamily+ & LnGRPC.keyIndex .~ gKeyIndex++instance ToGrpc KeyLocator L.KeyLocator where+ toGrpc x = pure $ msg (keyFamily x) (keyIndex x)+ where+ msg f i = defMessage & L.keyFamily .~ f & L.keyIndex .~ i++
@@ -11,32 +11,39 @@ import LndClient.Data.ChannelPoint import LndClient.Data.CloseChannel import LndClient.Import-import qualified Proto.LndGrpc as LnGRPC-import qualified Proto.LndGrpc_Fields as LnGRPC+import qualified Proto.Lnrpc.Ln0 as LnGRPC+import qualified Proto.Lnrpc.Ln0_Fields as LnGRPC -data ChannelEventUpdate- = ChannelEventUpdate- { channelEvent :: UpdateChannel,- eventType :: UpdateType- }- deriving (Eq, Ord, Show)+data ChannelEventUpdate = ChannelEventUpdate+ { channelEvent :: UpdateChannel,+ eventType :: UpdateType+ }+ deriving stock (Eq, Ord, Show, Generic) +instance Out ChannelEventUpdate+ data UpdateChannel = ChannelEventUpdateChannelOpenChannel Channel | ChannelEventUpdateChannelClosedChannel ChannelCloseSummary | ChannelEventUpdateChannelActiveChannel ChannelPoint | ChannelEventUpdateChannelInactiveChannel ChannelPoint | ChannelEventUpdateChannelPendingOpenChannel (PendingUpdate 'Funding)- deriving (Eq, Ord, Show)+ | ChannelEventUpdateChannelFullyResolved ChannelPoint+ deriving stock (Eq, Ord, Show, Generic) +instance Out UpdateChannel+ data UpdateType = OPEN_CHANNEL | CLOSED_CHANNEL | ACTIVE_CHANNEL | INACTIVE_CHANNEL | PENDING_OPEN_CHANNEL- deriving (Eq, Ord, Show)+ | FULLY_RESOLVED_CHANNEL+ deriving stock (Eq, Ord, Show, Generic) +instance Out UpdateType+ instance FromGrpc UpdateType LnGRPC.ChannelEventUpdate'UpdateType where fromGrpc x = case x of LnGRPC.ChannelEventUpdate'OPEN_CHANNEL -> Right OPEN_CHANNEL@@ -44,15 +51,20 @@ LnGRPC.ChannelEventUpdate'INACTIVE_CHANNEL -> Right INACTIVE_CHANNEL LnGRPC.ChannelEventUpdate'PENDING_OPEN_CHANNEL -> Right PENDING_OPEN_CHANNEL LnGRPC.ChannelEventUpdate'CLOSED_CHANNEL -> Right CLOSED_CHANNEL- LnGRPC.ChannelEventUpdate'UpdateType'Unrecognized v -> Left $ FromGrpcError ("Cannot parse ChannelUpdateType, value:" <> show v)+ LnGRPC.ChannelEventUpdate'FULLY_RESOLVED_CHANNEL -> Right FULLY_RESOLVED_CHANNEL+ LnGRPC.ChannelEventUpdate'UpdateType'Unrecognized v ->+ Left+ . FromGrpcError+ $ "Cannot parse ChannelUpdateType, value:" <> inspect v instance FromGrpc UpdateChannel LnGRPC.ChannelEventUpdate'Channel where fromGrpc x = case x of LnGRPC.ChannelEventUpdate'OpenChannel c -> ChannelEventUpdateChannelOpenChannel <$> fromGrpc c LnGRPC.ChannelEventUpdate'ActiveChannel cp -> ChannelEventUpdateChannelActiveChannel <$> fromGrpc cp- LnGRPC.ChannelEventUpdate'InactiveChannel cp -> ChannelEventUpdateChannelActiveChannel <$> fromGrpc cp+ LnGRPC.ChannelEventUpdate'InactiveChannel cp -> ChannelEventUpdateChannelInactiveChannel <$> fromGrpc cp LnGRPC.ChannelEventUpdate'PendingOpenChannel pa -> ChannelEventUpdateChannelPendingOpenChannel <$> fromGrpc pa LnGRPC.ChannelEventUpdate'ClosedChannel cc -> ChannelEventUpdateChannelClosedChannel <$> fromGrpc cc+ LnGRPC.ChannelEventUpdate'FullyResolvedChannel cc -> ChannelEventUpdateChannelFullyResolved <$> fromGrpc cc instance FromGrpc ChannelEventUpdate LnGRPC.ChannelEventUpdate where fromGrpc x =
@@ -7,15 +7,16 @@ import Data.ProtoLens.Message import LndClient.Import-import qualified Proto.LndGrpc as LnGRPC-import qualified Proto.LndGrpc_Fields as LnGRPC+import qualified Proto.Lnrpc.Ln1 as LnGRPC+import qualified Proto.Lnrpc.Ln1_Fields as LnGRPC -data SubscribeInvoicesRequest- = SubscribeInvoicesRequest- { addIndex :: Maybe AddIndex,- settleIndex :: Maybe SettleIndex- }- deriving (Eq, Ord, Show)+data SubscribeInvoicesRequest = SubscribeInvoicesRequest+ { addIndex :: Maybe AddIndex,+ settleIndex :: Maybe SettleIndex+ }+ deriving stock (Eq, Ord, Show, Generic)++instance Out SubscribeInvoicesRequest instance ToGrpc SubscribeInvoicesRequest LnGRPC.InvoiceSubscription where toGrpc x =
@@ -7,15 +7,16 @@ import Data.ProtoLens.Message import LndClient.Import-import qualified Proto.RouterGrpc as LnGRPC-import qualified Proto.RouterGrpc_Fields as LnGRPC+import qualified Proto.Routerrpc.Router as LnGRPC+import qualified Proto.Routerrpc.Router_Fields as LnGRPC -data TrackPaymentRequest- = TrackPaymentRequest- { paymentHash :: RHash,- noInflightUpdates :: Bool- }- deriving (Eq, Ord, Show)+data TrackPaymentRequest = TrackPaymentRequest+ { paymentHash :: RHash,+ noInflightUpdates :: Bool+ }+ deriving stock (Eq, Ord, Show, Generic)++instance Out TrackPaymentRequest instance ToGrpc TrackPaymentRequest LnGRPC.TrackPaymentRequest where toGrpc x =
@@ -1,40 +1,94 @@-{-# LANGUAGE DeriveLift #-}-{-# LANGUAGE GeneralizedNewtypeDeriving #-}+{-# LANGUAGE TemplateHaskell #-} module LndClient.Data.Type ( LndError (..), LoggingStrategy (..),+ LoggingMeta (..),+ LnInitiator (..), logDefault, logDebug, ) where -import Chronos (Timespan)-import Control.Exception (Exception)+import Control.Exception (IOException)+import qualified Data.Set as Set import LndClient.Import.External-import Network.HTTP2.Client.Exceptions as E+import LndClient.Orphan ()+import qualified Network.HTTP2.Client2.Exceptions as E data LndError = ToGrpcError Text | FromGrpcError Text | LndGrpcError E.ClientError+ | LndGrpcException Text+ | LndWalletLocked+ | LndWalletNotExists | GrpcUnexpectedResult Text | GrpcEmptyResult | LndError Text | LndEnvError Text | TChanTimeout Text- deriving (Eq, Show)+ | NetworkException Text+ | LndIOException IOException+ deriving stock (Eq, Show, Generic) -newtype LoggingStrategy- = LoggingStrategy- (Severity -> Maybe Timespan -> Maybe LndError -> Severity)+instance Out LndError +data LoggingMeta+ = LndHost+ | LndPort+ | LndMethod+ | LndRequest+ | LndRequestGrpc+ | LndResponse+ | LndResponseGrpc+ | LndResponseSub+ | LndResponseGrpcSub+ | LndElapsedSeconds+ | LndElapsedSecondsSub+ | LndMethodCompose+ | LndTestReceiveInvoice+ deriving stock (Eq, Ord, Show, Read, Generic, Enum, Bounded)++instance Out LoggingMeta++instance FromJSON LoggingMeta++data LoggingStrategy = LoggingStrategy+ { loggingStrategySeverity ::+ Severity ->+ Maybe Timespan ->+ Maybe LndError ->+ Severity,+ loggingStrategySecret :: SecretVision,+ loggingStrategyMeta :: Set LoggingMeta+ }++data LnInitiator+ = LnInitiatorUnknown+ | LnInitiatorLocal+ | LnInitiatorRemote+ | LnInitiatorBoth+ deriving stock (Eq, Ord, Show, Read, Generic)++instance Out LnInitiator++derivePersistField "LnInitiator"+ logDefault :: LoggingStrategy logDefault =- LoggingStrategy $ \x _ _ -> x+ LoggingStrategy+ { loggingStrategySeverity = \x _ _ -> x,+ loggingStrategySecret = SecretHidden,+ loggingStrategyMeta = Set.fromList enumerate+ } logDebug :: LoggingStrategy logDebug =- LoggingStrategy $ \_ _ _ -> DebugS+ LoggingStrategy+ { loggingStrategySeverity = \_ _ _ -> DebugS,+ loggingStrategySecret = SecretHidden,+ loggingStrategyMeta = Set.fromList enumerate+ } instance Exception LndError
@@ -5,22 +5,25 @@ import Data.ProtoLens.Message import LndClient.Import-import qualified Proto.WalletUnlockerGrpc as LnGRPC-import qualified Proto.WalletUnlockerGrpc_Fields as LnGRPC+import qualified Proto.Walletunlocker as LnGRPC+import qualified Proto.Walletunlocker_Fields as LnGRPC import Prelude (Show (..)) -data UnlockWalletRequest- = UnlockWalletRequest- { walletPassword :: LndWalletPassword,- recoveryWindow :: Int32- --- -- TODO : channel_backups- --- }- deriving (Eq)+data UnlockWalletRequest = UnlockWalletRequest+ { walletPassword :: LndWalletPassword,+ recoveryWindow :: Int32+ --+ -- TODO : channel_backups+ --+ }+ deriving stock (Eq) instance Show UnlockWalletRequest where show = const "SECRET"++instance Out UnlockWalletRequest where+ docPrec = const $ const "SECRET"+ doc = const "SECRET" instance ToGrpc UnlockWalletRequest LnGRPC.UnlockWalletRequest where toGrpc x =
@@ -0,0 +1,46 @@+{-# LANGUAGE FlexibleContexts #-}+{-# LANGUAGE FlexibleInstances #-}++module LndClient.Data.VerifyMessage+ ( VerifyMessageRequest (..),+ VerifyMessageResponse (..),+ )+where++import Data.ProtoLens.Message+import LndClient.Import+import qualified Proto.Signrpc.Signer as LnGRPC+import qualified Proto.Signrpc.Signer_Fields as LnGRPC++data VerifyMessageRequest = VerifyMessageRequest+ { message :: ByteString,+ signature :: ByteString,+ pubkey :: ByteString+ }+ deriving stock (Eq, Show, Generic)++instance Out VerifyMessageRequest++newtype VerifyMessageResponse = VerifyMessageResponse Bool+ deriving newtype (Eq, Show)+ deriving stock (Generic)++instance Out VerifyMessageResponse++instance ToGrpc VerifyMessageRequest LnGRPC.VerifyMessageReq where+ toGrpc x =+ msg+ <$> toGrpc (message x)+ <*> toGrpc (signature x)+ <*> toGrpc (pubkey x)+ where+ msg gMsg gSignature gPubKey =+ defMessage+ & LnGRPC.msg .~ gMsg+ & LnGRPC.signature .~ gSignature+ & LnGRPC.pubkey .~ gPubKey++instance FromGrpc VerifyMessageResponse LnGRPC.VerifyMessageResp where+ fromGrpc x =+ VerifyMessageResponse+ <$> fromGrpc (x ^. LnGRPC.valid)
@@ -5,16 +5,17 @@ import LndClient.Data.PendingChannel import LndClient.Import-import qualified Proto.LndGrpc as LnGRPC-import qualified Proto.LndGrpc_Fields as LnGRPC+import qualified Proto.Lnrpc.Ln0 as LnGRPC+import qualified Proto.Lnrpc.Ln0_Fields as LnGRPC -data WaitingCloseChannel- = WaitingCloseChannel- { channel :: PendingChannel,- limboBalance :: MSat- }- deriving (Eq, Show)+data WaitingCloseChannel = WaitingCloseChannel+ { channel :: PendingChannel,+ limboBalance :: MSat+ }+ deriving stock (Eq, Show, Generic) +instance Out WaitingCloseChannel+ instance FromGrpc WaitingCloseChannel@@ -28,10 +29,7 @@ Just this -> fromGrpc this )- <*> ( toMSat- <$> fromGrpc- (x ^. LnGRPC.limboBalance)- )+ <*> fromGrpcSat (x ^. LnGRPC.limboBalance) where pendingChannel = x ^. LnGRPC.maybe'channel
@@ -0,0 +1,24 @@+module LndClient.Data.WalletBalance+ ( WalletBalance (..),+ )+where++import LndClient.Import+import qualified Proto.Lnrpc.Ln0 as Proto+import qualified Proto.Lnrpc.Ln0_Fields as Proto++data WalletBalance = WalletBalance+ { totalBalance :: MSat,+ confirmedBalance :: MSat,+ unconfirmedBalance :: MSat+ }+ deriving stock (Eq, Ord, Show, Generic)++instance Out WalletBalance++instance FromGrpc WalletBalance Proto.WalletBalanceResponse where+ fromGrpc x =+ WalletBalance+ <$> fromGrpcMSat (x ^. Proto.totalBalance)+ <*> fromGrpcMSat (x ^. Proto.confirmedBalance)+ <*> fromGrpcMSat (x ^. Proto.unconfirmedBalance)
@@ -6,4 +6,5 @@ import LndClient.Data.Newtype as Import import LndClient.Data.Type as Import import LndClient.Import.External as Import+import LndClient.Log as Import import LndClient.Util as Import
@@ -1,4 +1,7 @@-module LndClient.Import.External (module Import) where+module LndClient.Import.External+ ( module Import,+ )+where import Chronos as Import ( SubsecondPrecision (SubsecondPrecisionAuto),@@ -8,13 +11,6 @@ ) import Control.Concurrent.Async as Import ( Async,- async,- asyncThreadId,- cancel,- link,- wait,- waitAnySTM,- withAsync, ) import Control.Concurrent.STM as Import (check) import Control.Concurrent.STM.TChan as Import@@ -24,19 +20,30 @@ readTChan, writeTChan, )-import Control.Concurrent.STM.TVar as Import (registerDelay)-import Control.Concurrent.Thread.Delay as Import (delay)-import Control.Monad.Extra as Import (fromMaybeM)+import Control.Monad.Extra as Import+ ( eitherM,+ fromMaybeM,+ ) import Data.Aeson as Import (FromJSON (..), ToJSON, fromJSON)-import Data.ByteString as Import (ByteString) import Data.Coerce as Import (coerce) import Data.List.Extra as Import (enumerate) import Data.Text as Import (Text, pack, unpack)-import Data.Text.Lazy as Import (fromStrict, toStrict)-import Data.Word as Import (Word64)+import Data.Time.Clock as Import+ ( UTCTime (..),+ diffTimeToPicoseconds,+ getCurrentTime,+ picosecondsToDiffTime,+ secondsToDiffTime,+ )+import Data.Type.Equality as Import+ ( TestEquality (..),+ (:~:) (..),+ type (==),+ ) import Database.Persist.Class as Import (PersistField) import Database.Persist.Sql as Import (PersistFieldSql)-import GHC.Generics as Import (Generic, Rep (..))+import Database.Persist.TH as Import (derivePersistField)+import GHC.Generics as Import (Rep (..)) import Katip as Import ( ColorStrategy (..), Katip (..),@@ -46,13 +53,13 @@ LogEnv (..), Namespace, Severity (..),+ SimpleLogPayload, Verbosity (..), bracketFormat, closeScribes, defaultScribeSettings, initLogEnv, jsonFormat,- katipAddContext, logStr, logTM, mkHandleScribeWithFormatter,@@ -61,5 +68,20 @@ runKatipContextT, sl, )-import Universum as Import hiding (Text)-import UnliftIO as Import (MonadUnliftIO (..), UnliftIO (..))+import Text.PrettyPrint.GenericPretty as Import (Out (..))+import Text.PrettyPrint.GenericPretty.Import as Import+ ( PrettyLog (..),+ SecretVision (..),+ inspect,+ inspectStr,+ )+import Text.PrettyPrint.GenericPretty.Instance as Import ()+import Universum as Import hiding (Text, catch, finally, show)+import UnliftIO as Import+ ( Handler (..),+ MonadUnliftIO (..),+ UnliftIO (..),+ catch,+ catches,+ finally,+ )
@@ -3,7 +3,7 @@ {-# LANGUAGE TemplateHaskell #-} module LndClient.LndTest- ( -- * BTC+ ( -- * Btc BtcUrl (..), BtcLogin (..), BtcPassword (..),@@ -11,11 +11,11 @@ newBtcClient, -- * TestEnv- TestEnv,- newTestEnv,- spawnLinkChannelWatcher,- spawnLinkInvoiceWatcher,- spawnLinkSingleInvoiceWatcher,+ TestEnv (..),+ withTestEnv,+ withChannelWatcher,+ withInvoiceWatcher,+ withSingleInvoiceWatcher, -- * Class LndTest (..),@@ -90,9 +90,9 @@ import LndClient.Import import qualified LndClient.RPC.Katip as Lnd import LndClient.Watcher as Watcher-import qualified Network.Bitcoin as BTC (Client, getClient)-import qualified Network.Bitcoin.BlockChain as BTC (getBlockCount)-import qualified Network.Bitcoin.Mining as BTC (generateToAddress)+import qualified Network.Bitcoin as Btc (Client, getClient)+import qualified Network.Bitcoin.BlockChain as Btc (getBlockCount)+import qualified Network.Bitcoin.Mining as Btc (generateToAddress) newtype BtcUrl = BtcUrl String @@ -100,52 +100,50 @@ newtype BtcPassword = BtcPassword ByteString -data BtcEnv- = BtcEnv- { btcUrl :: BtcUrl,- btcLogin :: BtcLogin,- btcPassword :: BtcPassword- }+data BtcEnv = BtcEnv+ { btcUrl :: BtcUrl,+ btcLogin :: BtcLogin,+ btcPassword :: BtcPassword+ } -data TestEnv- = TestEnv- { testLndEnv :: LndEnv,- testNodeLocation :: NodeLocation,- testChannelWatcher :: Watcher () ChannelEventUpdate,- testInvoiceWatcher :: Watcher SubscribeInvoicesRequest Invoice,- testSingleInvoiceWatcher :: Watcher RHash Invoice- }+data TestEnv = TestEnv+ { testLndEnv :: LndEnv,+ testNodeLocation :: NodeLocation,+ testChannelWatcher :: Watcher () ChannelEventUpdate,+ testInvoiceWatcher :: Watcher SubscribeInvoicesRequest Invoice,+ testSingleInvoiceWatcher :: Watcher RHash Invoice+ } uniquePairs :: (Ord a, Enum a, Bounded a) => [(a, a)] uniquePairs = [(x0, x1) | x0 <- enumerate, x1 <- enumerate, x0 < x1] -newBtcClient :: MonadIO m => BtcEnv -> m BTC.Client+newBtcClient :: MonadIO m => BtcEnv -> m Btc.Client newBtcClient x = liftIO $- BTC.getClient+ Btc.getClient (coerce $ btcUrl x) (coerce $ btcLogin x) (coerce $ btcPassword x) -newTestEnv ::- ( KatipContext m,- MonadUnliftIO m+withTestEnv ::+ ( MonadUnliftIO m ) => LndEnv -> NodeLocation ->- m TestEnv-newTestEnv lnd loc = do- cw <- spawnLinkChannelWatcher lnd- iw <- spawnLinkInvoiceWatcher lnd- siw <- spawnLinkSingleInvoiceWatcher lnd- pure $- TestEnv- { testLndEnv = lnd,- testNodeLocation = loc,- testChannelWatcher = cw,- testInvoiceWatcher = iw,- testSingleInvoiceWatcher = siw- }+ (TestEnv -> KatipContextT m a) ->+ KatipContextT m a+withTestEnv lnd loc action =+ withChannelWatcher lnd $ \cw ->+ withInvoiceWatcher lnd $ \iw ->+ withSingleInvoiceWatcher lnd id $ \siw ->+ action+ TestEnv+ { testLndEnv = lnd,+ testNodeLocation = loc,+ testChannelWatcher = cw,+ testInvoiceWatcher = iw,+ testSingleInvoiceWatcher = siw+ } class ( KatipContext m,@@ -153,10 +151,11 @@ Ord owner, Enum owner, Bounded owner,- Show owner+ Out owner ) =>- LndTest m owner where- getBtcClient :: owner -> m BTC.Client+ LndTest m owner+ where+ getBtcClient :: owner -> m Btc.Client getTestEnv :: owner -> m TestEnv getLndEnv :: owner -> m LndEnv getLndEnv = (testLndEnv <$>) . getTestEnv@@ -168,19 +167,13 @@ getNodeLocation = (testNodeLocation <$>) . getTestEnv getChannelTChan :: owner -> m (TChan ((), ChannelEventUpdate)) getChannelTChan =- (Watcher.dupLndTChan =<<)- . (testChannelWatcher <$>)- . getTestEnv+ (Watcher.dupLndTChan . testChannelWatcher) <=< getTestEnv getInvoiceTChan :: owner -> m (TChan (SubscribeInvoicesRequest, Invoice)) getInvoiceTChan =- (Watcher.dupLndTChan =<<)- . (testInvoiceWatcher <$>)- . getTestEnv+ (Watcher.dupLndTChan . testInvoiceWatcher) <=< getTestEnv getSingleInvoiceTChan :: owner -> m (TChan (RHash, Invoice)) getSingleInvoiceTChan =- (Watcher.dupLndTChan =<<)- . (testSingleInvoiceWatcher <$>)- . getTestEnv+ (Watcher.dupLndTChan . testSingleInvoiceWatcher) <=< getTestEnv -- -- TODO : embed getSingleInvoiceTChan here@@ -203,17 +196,19 @@ lazyMineInitialCoins :: forall m owner. LndTest m owner => Proxy owner -> m () lazyMineInitialCoins = const $ do- mapM_ (liftLndResult <=< Lnd.lazyInitWallet <=< getLndEnv) xs- bc <- getBtcClient someone- h <- liftIO $ BTC.getBlockCount bc- -- reward coins are spendable only after 100 blocks- when (h < 101 + numOwners) $ do- mapM_ (mine 1) xs- mine 101 someone+ mapM_ (liftLndResult <=< Lnd.lazyInitWallet <=< getLndEnv) owners+ bc <- getBtcClient (minBound :: owner)+ h <- liftIO $ Btc.getBlockCount bc+ -- Reward coins are spendable only after 100 blocks,+ -- mine additional 100 blocks per owner to ensure everybody+ -- has coins to spend.+ when (h < fromIntegral (length owners * blocksPerOwner)) $ do+ mapM_ (mine blocksPerOwner) owners where- xs = enumerate :: [owner]- someone = minBound :: owner- numOwners = fromIntegral $ length xs+ owners :: [owner]+ owners = enumerate+ blocksPerOwner :: Int+ blocksPerOwner = 200 lazyConnectNodes :: forall m owner. LndTest m owner => Proxy owner -> m () lazyConnectNodes = const $ mapM_ this uniquePairs@@ -253,15 +248,16 @@ mine blocks owner = do btcAddr <- walletAddress owner bc <- getBtcClient owner- sev <- getSev owner InfoS- $(logTM) sev $ logStr $- ("Mining " :: Text)- <> show blocks- <> " blocks to "- <> show owner- <> " wallet"+ sev <- getSev owner DebugS+ $(logTM) sev $+ logStr $+ "Mining "+ <> inspect blocks+ <> " blocks to "+ <> inspect owner+ <> " wallet" void . liftIO $- BTC.generateToAddress+ Btc.generateToAddress bc blocks btcAddr@@ -275,7 +271,7 @@ liftLndResult (Right x) = pure x liftLndResult (Left x) =- liftIO $ fail $ "LiftLndResult failed " <> show x+ liftIO . fail $ "LiftLndResult failed " <> inspectStr x syncWallets :: forall m owner.@@ -285,17 +281,19 @@ syncWallets = const $ this 0 where this 30 = do- let msg = "SyncWallets attempt limit exceeded"+ let msg :: Text = "SyncWallets attempt limit exceeded" sev <- getSev (minBound :: owner) ErrorS $(logTM) sev $ logStr msg pure . Left $ LndError msg this (attempt :: Int) = do- sev <- getSev (minBound :: owner) InfoS+ sev <- getSev (minBound :: owner) DebugS $(logTM) sev "SyncWallets is running" rs <- mapM (Lnd.getInfo <=< getLndEnv) (enumerate :: [owner]) if all isInSync rs then pure $ Right ()- else liftIO (delay 1000000) >> this (attempt + 1)+ else do+ sleep $ MicroSecondsDelay 1000000+ this $ attempt + 1 isInSync = \case Left {} -> False Right x -> Lnd.syncedToChain x@@ -314,17 +312,18 @@ this 30 = do let msg = "SyncPendingChannelsFor "- <> show owner+ <> inspect owner <> " attempt limit exceeded" sev <- getSev owner ErrorS $(logTM) sev $ logStr msg pure . Left $ LndError msg this (attempt :: Int) = do- sev <- getSev owner InfoS- $(logTM) sev $ logStr $- "SyncPendingChannelsFor "- <> (show owner :: Text)- <> " is running"+ sev <- getSev owner DebugS+ $(logTM) sev $+ logStr $+ "SyncPendingChannelsFor "+ <> inspect owner+ <> " is running" res <- Lnd.pendingChannels =<< getLndEnv owner case res of Left {} -> this (attempt + 1)@@ -347,16 +346,19 @@ this _ [] = pure $ Right () this 30 _ =- pure- $ Left- $ LndError "receiveClosedChannels - exceeded"+ pure $+ Left $+ LndError "receiveClosedChannels - exceeded" this (attempt :: Integer) cps = do let owners = enumerate :: [owner] xs <- rights <$> mapM getOwnersCloseCPs owners let filteredCps = filter (checkTwiceCP $ concat xs) cps if null filteredCps then pure $ Right ()- else mine1 po >> liftIO (delay 1000000) >> this (attempt + 1) filteredCps+ else do+ mine1 po+ sleep $ MicroSecondsDelay 1000000+ this (attempt + 1) filteredCps checkTwiceCP :: [ChannelPoint] -> ChannelPoint -> Bool checkTwiceCP cps cp = length (filter (cp ==) cps) < 2 getOwnersCloseCPs :: owner -> m (Either LndError [ChannelPoint])@@ -375,32 +377,28 @@ where listReq = ListInvoices.ListInvoiceRequest- { ListInvoices.pendingOnly = False,+ { ListInvoices.pendingOnly = True, ListInvoices.indexOffset = AddIndex 0, ListInvoices.numMaxInvoices = 0, ListInvoices.reversed = False } this :: Int -> owner -> m () this 30 owner =- error $ "CancelAllInvoices attempt limit exceeded for " <> show owner+ error $+ "CancelAllInvoices attempt limit exceeded for " <> inspect owner this attempt owner = do lnd <- getLndEnv owner- let getInvoices =- filter- ( \x ->- Invoice.state x- `elem` [ Invoice.OPEN,- Invoice.ACCEPTED- ]- )- . ListInvoices.invoices+ let getInvoices :: m [Invoice] =+ ListInvoices.invoices <$> (liftLndResult =<< Lnd.listInvoices lnd listReq) is0 <- getInvoices res <- mapM (Lnd.cancelInvoice lnd) (Invoice.rHash <$> is0) is1 <- getInvoices if all isRight res && null is1 then pure ()- else liftIO (delay 1000000) >> this (attempt + 1) owner+ else do+ sleep $ MicroSecondsDelay 1000000+ this (attempt + 1) owner closeAllChannels :: forall m owner. LndTest m owner => Proxy owner -> m () closeAllChannels po = do@@ -409,15 +407,16 @@ where this :: Int -> (owner, owner) -> m () this 30 owners =- error $ "CloseAllChannels - limit exceeded for " <> show owners+ error $+ "CloseAllChannels - limit exceeded for " <> inspect owners this attempt (owner0, owner1) = do- sev <- getSev owner0 InfoS+ sev <- getSev owner0 DebugS $(logTM) sev "CloseAllChannels - closing channels" lnd0 <- getLndEnv owner0 peerLocation <- getNodeLocation owner1 GetInfoResponse peerPubKey _ _ <- liftLndResult =<< Lnd.getInfo =<< getLndEnv owner1- let getChannels =+ let getChannels :: m [Channel] = liftLndResult =<< Lnd.listChannels lnd0@@ -429,14 +428,18 @@ ( \cp -> Lnd.closeChannelSync lnd0- (ConnectPeerRequest (LightningAddress peerPubKey peerLocation) False)+ ( Just $+ ConnectPeerRequest (LightningAddress peerPubKey peerLocation) False+ ) (CloseChannelRequest cp False Nothing Nothing Nothing) ) cps cs1 <- getChannels if all isRight res && null cs1 then liftLndResult =<< receiveClosedChannels po cps- else liftIO (delay 1000000) >> this (attempt + 1) (owner0, owner1)+ else do+ sleep $ MicroSecondsDelay 1000000+ this (attempt + 1) (owner0, owner1) receiveActiveChannel :: LndTest m owner =>@@ -481,7 +484,7 @@ -- -- Open channel from Customer to Merchant --- sev <- getSev ownerFrom InfoS+ sev <- getSev ownerFrom DebugS $(logTM) sev "SetupOneChannel - opening channel" GetInfoResponse merchantPubKey _ _ <- liftLndResult =<< Lnd.getInfo lndTo@@ -489,15 +492,16 @@ OpenChannel.OpenChannelRequest { OpenChannel.nodePubkey = merchantPubKey, OpenChannel.localFundingAmount = MSat 200000000,- OpenChannel.pushSat = Just $ MSat 10000000,+ OpenChannel.pushMSat = Just $ MSat 10000000, OpenChannel.targetConf = Nothing,- OpenChannel.satPerByte = Nothing,+ OpenChannel.mSatPerByte = Nothing, OpenChannel.private = Nothing, OpenChannel.minHtlcMsat = Nothing, OpenChannel.remoteCsvDelay = Nothing, OpenChannel.minConfs = Nothing, OpenChannel.spendUnconfirmed = Nothing,- OpenChannel.closeAddress = Nothing+ OpenChannel.closeAddress = Nothing,+ OpenChannel.fundingShim = Nothing } cp <- liftLndResult@@ -533,7 +537,10 @@ SendPayment.SendPaymentRequest { SendPayment.paymentRequest = AddInvoice.paymentRequest invoice,- SendPayment.amt = amt0+ SendPayment.amt =+ amt0,+ SendPayment.outgoingChanId =+ Nothing } void . liftLndResult =<< Lnd.sendPayment sender payReq @@ -541,18 +548,19 @@ ( MonadUnliftIO m, KatipContext m ) =>+ LndEnv -> RHash -> Invoice.InvoiceState -> TChan (a, Invoice) -> m (Either LndError ())-receiveInvoice rh s q = do+receiveInvoice env rh s q = do mx0 <- readTChanTimeout (MicroSecondsDelay 30000000) q let mx = snd <$> mx0- $(logTM) DebugS $ logStr $- "receiveInvoice - " <> (show mx :: Text)+ katipAddLndPublic env LndTestReceiveInvoice mx $+ $(logTM) DebugS rpcSucceeded case (\x -> Invoice.rHash x == rh && Invoice.state x == s) <$> mx of Just True -> return $ Right ()- Just False -> receiveInvoice rh s q+ Just False -> receiveInvoice env rh s q Nothing -> return . Left $ TChanTimeout "receiveInvoice" liftMaybe :: MonadIO m => String -> Maybe a -> m a@@ -572,32 +580,36 @@ ignore3 :: Monad m => a -> b -> c -> m () ignore3 _ _ _ = pure () -spawnLinkChannelWatcher ::+withChannelWatcher :: (KatipContext m, MonadUnliftIO m) => LndEnv ->- m (Watcher () ChannelEventUpdate)-spawnLinkChannelWatcher lnd =- Watcher.spawnLinkUnit+ (Watcher () ChannelEventUpdate -> m a) ->+ m a+withChannelWatcher lnd =+ Watcher.withWatcherUnit lnd Lnd.subscribeChannelEventsChan ignore2 -spawnLinkInvoiceWatcher ::+withInvoiceWatcher :: (KatipContext m, MonadUnliftIO m) => LndEnv ->- m (Watcher SubscribeInvoicesRequest Invoice)-spawnLinkInvoiceWatcher lnd =- Watcher.spawnLink+ (Watcher SubscribeInvoicesRequest Invoice -> m a) ->+ m a+withInvoiceWatcher lnd =+ Watcher.withWatcher lnd Lnd.subscribeInvoicesChan ignore3 -spawnLinkSingleInvoiceWatcher ::- (KatipContext m, MonadUnliftIO m) =>+withSingleInvoiceWatcher ::+ (Ord req, KatipContext m, MonadUnliftIO m) => LndEnv ->- m (Watcher RHash Invoice)-spawnLinkSingleInvoiceWatcher lnd =- Watcher.spawnLink+ (req -> RHash) ->+ (Watcher req Invoice -> m a) ->+ m a+withSingleInvoiceWatcher lnd accessor =+ Watcher.withWatcher lnd- Lnd.subscribeSingleInvoiceChan+ (Lnd.subscribeSingleInvoiceChan accessor) ignore3
@@ -0,0 +1,178 @@+{-# LANGUAGE AllowAmbiguousTypes #-}+{-# LANGUAGE FlexibleContexts #-}+{-# LANGUAGE TypeApplications #-}+{-# LANGUAGE TypeFamilies #-}++module LndClient.Log+ ( SecretRpc,+ katipAddLndSecret,+ katipAddLndPublic,+ katipAddLndLoc,+ rpcRunning,+ rpcFailed,+ rpcSucceeded,+ newSeverity,+ newSev,+ )+where++import qualified Data.Set as Set+import qualified GHC.TypeLits as GHC+import qualified Katip+import LndClient.Data.LndEnv+import LndClient.Data.Type+import LndClient.Import.External+import qualified Network.GRPC.Client.Helpers as Grpc++type family SecretRpc (t :: GHC.Symbol) :: GHC.Nat where+--+-- Sync+--+ SecretRpc "unlockWallet" = 1+ SecretRpc "initWallet" = 1+ SecretRpc "newAddress" = 0+ SecretRpc "addInvoice" = 0+ SecretRpc "addHoldInvoice" = 0+ SecretRpc "cancelInvoice" = 0+ SecretRpc "settleInvoice" = 0+ SecretRpc "openChannelSync" = 0+ SecretRpc "listChannels" = 0+ SecretRpc "listPeers" = 0+ SecretRpc "connectPeer" = 0+ SecretRpc "getInfo" = 0+ SecretRpc "sendPaymentSync" = 0+ SecretRpc "sendCoins" = 0+ SecretRpc "fundPsbt" = 0+ SecretRpc "finalizePsbt" = 0+ SecretRpc "publishTransaction" = 0+ SecretRpc "listUnspent" = 0+ SecretRpc "listLeases" = 0+ SecretRpc "releaseOutput" = 0+ SecretRpc "leaseOutput" = 0+ SecretRpc "decodePayReq" = 0+ SecretRpc "lookupInvoice" = 0+ SecretRpc "pendingChannels" = 0+ SecretRpc "closedChannels" = 0+ SecretRpc "listInvoices" = 0+ SecretRpc "signMessage" = 0+ SecretRpc "verifyMessage" = 0+ SecretRpc "fundingStateStep" = 0+ SecretRpc "exportAllChannelBackups" = 0+ SecretRpc "exportChannelBackup" = 0+ SecretRpc "restoreChannelBackups" = 0+ SecretRpc "walletBalance" = 0+--+-- Sub+--+ SecretRpc "trackPaymentV2" = 0+ SecretRpc "subscribeHtlcEvents" = 0+ SecretRpc "closeChannel" = 0+ SecretRpc "openChannel" = 0+ SecretRpc "subscribeChannelEvents" = 0+ SecretRpc "subscribeInvoices" = 0+ SecretRpc "subscribeSingleInvoice" = 0++rpcIsSecret ::+ forall t.+ GHC.KnownNat (SecretRpc t) =>+ Bool+rpcIsSecret =+ natVal (Proxy @(SecretRpc t)) > 0++inspectSecret ::+ forall (rpc :: GHC.Symbol) raw.+ ( Out raw,+ KnownNat (SecretRpc rpc)+ ) =>+ LndEnv ->+ raw ->+ Text+inspectSecret env =+ inspect+ . if rpcIsSecret @rpc+ then SecretLog (loggingStrategySecret $ envLndLogStrategy env)+ else PrettyLog++katipAddLndMeta ::+ (KatipContext m) =>+ LndEnv ->+ LoggingMeta ->+ SimpleLogPayload ->+ m a ->+ m a+katipAddLndMeta env meta slp this =+ if Set.member meta . loggingStrategyMeta $ envLndLogStrategy env+ then Katip.katipAddContext slp this+ else this++katipAddLndSecret ::+ forall (rpc :: GHC.Symbol) a m b.+ ( Out a,+ KatipContext m,+ KnownNat (SecretRpc rpc)+ ) =>+ LndEnv ->+ LoggingMeta ->+ a ->+ m b ->+ m b+katipAddLndSecret env meta =+ katipAddLndMeta env meta+ . sl (inspect meta)+ . inspectSecret @rpc env++katipAddLndPublic ::+ ( Out a,+ KatipContext m+ ) =>+ LndEnv ->+ LoggingMeta ->+ a ->+ m b ->+ m b+katipAddLndPublic env meta =+ katipAddLndMeta env meta+ . sl (inspect meta)+ . inspect++katipAddLndLoc ::+ ( KatipContext m+ ) =>+ LndEnv ->+ m a ->+ m a+katipAddLndLoc env =+ case Grpc._grpcClientConfigAddress $ envLndConfig env of+ Grpc.AddressTCP host port ->+ katipAddLndPublic env LndHost host+ . katipAddLndPublic env LndPort (toInteger port)+ Grpc.AddressUnix {} ->+ katipAddLndPublic env LndHost ("AddressUnix" :: Text)+ Grpc.AddressSocket {} ->+ katipAddLndPublic env LndHost ("AddressSocket" :: Text)++rpcRunning :: Katip.LogStr+rpcRunning = "RPC is running..."++rpcFailed :: Katip.LogStr+rpcFailed = "RPC failed!"++rpcSucceeded :: Katip.LogStr+rpcSucceeded = "RPC succeeded!"++newSeverity ::+ LndEnv ->+ Severity ->+ Maybe Timespan ->+ Maybe LndError ->+ Severity+newSeverity =+ loggingStrategySeverity+ . envLndLogStrategy++newSev ::+ LndEnv ->+ Severity ->+ Severity+newSev env sev =+ newSeverity env sev Nothing Nothing
@@ -0,0 +1,23 @@+{-# OPTIONS_GHC -fno-warn-orphans #-}++module LndClient.Orphan+ (+ )+where++import Control.Exception (IOException)+import Data.ProtoLens.Message+import Network.HTTP2.Client2.Exceptions as E+import Text.PrettyPrint.GenericPretty+import Universum++instance Out E.ClientError where+ docPrec n x = docPrec n (Universum.show x :: String)+ doc x = doc (Universum.show x :: String)++instance Out IOException where+ docPrec n x = docPrec n (Universum.show x :: String)+ doc x = doc (Universum.show x :: String)++instance FieldDefault (Maybe a) where+ fieldDefault = Nothing
@@ -26,13 +26,12 @@ newtype QRPixels = QRPixels (Image Pixel8) newtype QRPngDataUrl = QRPngDataUrl Text- deriving (PersistField, PersistFieldSql, Show, Eq)+ deriving newtype (PersistField, PersistFieldSql, Show, Eq) -data QROpts- = QROpts- { qrBorder :: Int,- qrScale :: Int- }+data QROpts = QROpts+ { qrBorder :: Int,+ qrScale :: Int+ } qrDefOpts :: QROpts qrDefOpts =
@@ -1,10 +1,8 @@-{-# LANGUAGE DataKinds #-} {-# LANGUAGE DeriveGeneric #-}+{-# LANGUAGE FlexibleContexts #-} {-# LANGUAGE GADTs #-}-{-# LANGUAGE OverloadedLists #-}-{-# LANGUAGE ScopedTypeVariables #-} {-# LANGUAGE TemplateHaskell #-}-{-# LANGUAGE TypeFamilies #-}+{-# LANGUAGE TypeApplications #-} module LndClient.RPC.Generic ( grpcSyncSilent,@@ -16,8 +14,7 @@ where import Data.ProtoLens.Service.Types (HasMethod, HasMethodImpl (..))-import qualified Data.Text.Lazy as T-import GHC.TypeLits+import qualified GHC.TypeLits as GHC import LndClient.Import import LndGrpc.Client import qualified Network.GRPC.HTTP2.ProtoLens as PL@@ -43,6 +40,7 @@ | ConnectPeer | GetInfo | SendPayment+ | SendCoins | WaitForGrpc | DecodePayReq | LookupInvoice@@ -52,81 +50,102 @@ | ClosedChannels | ListInvoices | SubscribeSingleInvoice- deriving (Generic)+ | CloseChannelSync+ deriving stock (Generic) instance ToJSON RpcName +instance Out RpcName+ showElapsedSeconds :: Timespan -> Text-showElapsedSeconds = encodeTimespan SubsecondPrecisionAuto+showElapsedSeconds =+ encodeTimespan SubsecondPrecisionAuto grpcSyncSilent ::- ( MonadIO m,+ ( MonadUnliftIO m, ToGrpc a gA, FromGrpc b gB, HasMethod s rm, gA ~ MethodInput s rm, gB ~ MethodOutput s rm ) =>- PL.RPC s (rm :: Symbol) ->+ PL.RPC s (rm :: GHC.Symbol) -> LndEnv -> a -> m (Either LndError b) grpcSyncSilent rpc env req = case toGrpc req of- Right gReq -> join . second fromGrpc <$> runUnary rpc env gReq- Left err -> return $ Left err+ Right gReq ->+ join+ . second fromGrpc+ <$> runUnary rpc env gReq+ Left e ->+ pure $ Left e grpcSyncKatip ::- ( MonadIO m,- KatipContext m,+ forall m a gA b gB s rm.+ ( KatipContext m,+ MonadUnliftIO m, ToGrpc a gA, FromGrpc b gB,+ KnownNat (SecretRpc rm), HasMethod s rm, gA ~ MethodInput s rm, gB ~ MethodOutput s rm,- Show a,- Show b+ Out a,+ Out b,+ Out gA,+ Out gB ) =>- PL.RPC s (rm :: Symbol) ->+ PL.RPC s (rm :: GHC.Symbol) -> LndEnv -> a -> m (Either LndError b) grpcSyncKatip rpc env req =- katipAddContext (sl "RpcName" (T.pack $ symbolVal rpc))- $ katipAddContext (sl "RpcRequest" (show req :: Text))- $ katipAddLndContext env- $ do- $(logTM) (newSev env InfoS) "RPC is running"- (ts, res) <-- liftIO $ stopwatch $- grpcSyncSilent rpc env req- katipAddContext (sl "ElapsedSeconds" (showElapsedSeconds ts)) $- case res of- Left e ->- katipAddContext (sl "RpcResponse" (show e :: Text)) $- $(logTM) (newSeverity env ErrorS (Just ts) (Just e)) "RPC failed"- Right x ->- katipAddContext (sl "RpcResponse" (show x :: Text)) $- $(logTM) (newSeverity env InfoS (Just ts) Nothing) "RPC succeded"- pure res+ katipAddLndPublic env LndMethod (GHC.symbolVal rpc) $+ katipAddLndSecret @rm env LndRequest req $+ katipAddLndLoc env $ do+ (ts, gRes) <-+ withRunInIO $ \run -> stopwatch $+ case toGrpc req of+ Right gReq -> run $+ katipAddLndSecret @rm env LndRequestGrpc gReq $ do+ $(logTM) (newSev env DebugS) rpcRunning+ runUnary rpc env gReq+ Left e ->+ pure $ Left e+ katipAddLndSecret @rm env LndResponseGrpc gRes $+ katipAddLndPublic env LndElapsedSeconds (showElapsedSeconds ts) $+ case gRes >>= fromGrpc of+ Left e ->+ katipAddLndPublic env LndResponse e $ do+ $(logTM) (newSeverity env ErrorS (Just ts) (Just e)) rpcFailed+ pure $ Left e+ Right x ->+ katipAddLndSecret @rm env LndResponse x $ do+ $(logTM) (newSeverity env DebugS (Just ts) Nothing) rpcSucceeded+ pure $ Right x grpcSubscribeSilent ::- ( MonadIO m,+ ( MonadUnliftIO m, ToGrpc a gA, FromGrpc b gB, HasMethod s rm, gA ~ MethodInput s rm, gB ~ MethodOutput s rm ) =>- PL.RPC s (rm :: Symbol) ->+ PL.RPC s (rm :: GHC.Symbol) -> (b -> IO ()) -> LndEnv -> a -> m (Either LndError ()) grpcSubscribeSilent rpc handler env req = case toGrpc req of- Right grpcReq -> second (const ()) <$> runStreamServer rpc env grpcReq gHandler- Left err -> return $ Left err+ Right grpcReq ->+ second (const ())+ <$> runStreamServer rpc env grpcReq gHandler+ Left e ->+ return $ Left e where gHandler _ x = case fromGrpc x of@@ -134,37 +153,59 @@ Left _ -> return () grpcSubscribeKatip ::- ( MonadIO m,- KatipContext m,+ forall m a gA b gB s rm.+ ( KatipContext m,+ MonadUnliftIO m, ToGrpc a gA, FromGrpc b gB,+ KnownNat (SecretRpc rm), HasMethod s rm,- Show a,+ Out a,+ Out b,+ Out gA,+ Out gB, gA ~ MethodInput s rm, gB ~ MethodOutput s rm ) =>- PL.RPC s (rm :: Symbol) ->+ PL.RPC s (rm :: GHC.Symbol) -> (b -> IO ()) -> LndEnv -> a -> m (Either LndError ()) grpcSubscribeKatip rpc handler env req =- katipAddContext (sl "RpcName" (T.pack $ symbolVal rpc))- $ katipAddContext (sl "RpcRequest" (show req :: Text))- $ katipAddLndContext env- $ do- $(logTM) (newSev env InfoS) "RPC is running"- (ts, res) <-- liftIO $ stopwatch $ grpcSubscribeSilent rpc handler env req- katipAddContext (sl "ElapsedSeconds" (showElapsedSeconds ts))- $ uncurry katipAddContext- $ case res of+ katipAddLndPublic env LndMethod (GHC.symbolVal rpc) $+ katipAddLndSecret @rm env LndRequest req $+ katipAddLndLoc env $ do+ (ts, gRes) <-+ withRunInIO $ \run -> stopwatch $+ case toGrpc req of+ Right gReq -> run $+ katipAddLndSecret @rm env LndRequestGrpc gReq $ do+ $(logTM) (newSev env DebugS) rpcRunning+ runStreamServer rpc env gReq $ \_ gRes -> liftIO . run $ gHandler gRes+ Left e ->+ pure $ Left e+ katipAddLndSecret @rm env LndResponseGrpc gRes $+ katipAddLndPublic env LndElapsedSeconds (showElapsedSeconds ts) $+ case gRes of+ Left e -> do+ katipAddLndPublic env LndResponse e $+ $(logTM) (newSeverity env ErrorS (Just ts) (Just e)) rpcFailed+ pure $ Left e+ Right x -> do+ katipAddLndSecret @rm env LndResponse x $+ $(logTM) (newSeverity env DebugS (Just ts) Nothing) rpcSucceeded+ pure $ Right ()+ where+ gHandler gRes =+ katipAddLndSecret @rm env LndResponseGrpcSub gRes $+ case fromGrpc gRes of Left e ->- ( sl "RpcResponse" (show e :: Text),- $(logTM) (newSeverity env ErrorS (Just ts) (Just e)) "RPC failed"- )+ katipAddLndPublic env LndResponseSub e $+ $(logTM) (newSeverity env ErrorS Nothing (Just e)) rpcFailed Right x ->- ( sl "RpcResponse" (show x :: Text),- $(logTM) (newSeverity env InfoS (Just ts) Nothing) "RPC succeded"- )- pure res+ katipAddLndSecret @rm env LndResponseSub x $ do+ $(logTM) (newSev env DebugS) rpcRunning+ (ts, ()) <- liftIO . stopwatch $ handler x+ katipAddLndPublic env LndElapsedSecondsSub (showElapsedSeconds ts) $+ $(logTM) (newSeverity env DebugS (Just ts) Nothing) rpcSucceeded
@@ -1,3 +1,4 @@+{-# LANGUAGE ConstraintKinds #-} {-# LANGUAGE TemplateHaskell #-} -- | List of functions, used to communicate with LND via gRPC.@@ -22,6 +23,14 @@ connectPeer, lazyConnectPeer, sendPayment,+ sendCoins,+ fundPsbt,+ finalizePsbt,+ publishTransaction,+ listUnspent,+ listLeases,+ leaseOutput,+ releaseOutput, getInfo, subscribeInvoices, subscribeInvoicesChan,@@ -39,6 +48,15 @@ listInvoices, subscribeSingleInvoice, subscribeSingleInvoiceChan,+ signMessage,+ verifyMessage,+ fundingStateStep,+ trackPaymentSync,+ catchWalletLock,+ exportAllChannelBackups,+ exportChannelBackup,+ restoreChannelBackups,+ walletBalance, ) where @@ -46,10 +64,12 @@ import LndClient.Data.AddHodlInvoice as AddHodlInvoice (AddHodlInvoiceRequest (..)) import LndClient.Data.AddInvoice as AddInvoice (AddInvoiceResponse (..)) import qualified LndClient.Data.Channel as Channel-import LndClient.Data.CloseChannel as CloseChannel (CloseChannelRequest (..))+import LndClient.Data.CloseChannel as CloseChannel (CloseChannelRequest (..), CloseStatusUpdate (..)) import LndClient.Data.Invoice as Invoice (Invoice (..)) import LndClient.Data.ListChannels as ListChannels (ListChannelsRequest (..))+import LndClient.Data.Payment as Payment import LndClient.Data.Peer (ConnectPeerRequest (..))+import LndClient.Data.TrackPayment as TrackPayment import LndClient.Import import LndClient.RPC.Generic import LndClient.RPC.TH@@ -58,65 +78,68 @@ $(mkRpc RpcKatip) waitForGrpc ::- (KatipContext m) =>+ (KatipContext m, MonadUnliftIO m) => LndEnv -> m (Either LndError ()) waitForGrpc env =- katipAddContext (sl "RpcName" WaitForGrpc) $ this 30+ katipAddLndPublic env LndMethodCompose WaitForGrpc $ do+ $(logTM) (newSev env DebugS) rpcRunning+ this 30 where this (x :: Int) = if x > 0 then do- $(logTM) (newSev env InfoS) "Waiting for GRPC..."- res <- getInfo $ env {envLndLogStrategy = logDebug}+ $(logTM) (newSev env DebugS) "Waiting for GRPC..."+ res <- getInfo $ enforceDebugSev env if isRight res then return $ Right ()- else liftIO (delay 1000000) >> this (x - 1)+ else do+ sleep $ MicroSecondsDelay 1000000+ this $ x - 1 else do- let msg = "waitForGrpc attempt limit exceeded"+ let msg :: Text = "WaitForGrpc attempt limit exceeded!" $(logTM) (newSev env ErrorS) $ logStr msg return . Left $ LndError msg lazyUnlockWallet ::- (KatipContext m) =>+ (KatipContext m, MonadUnliftIO m) => LndEnv -> m (Either LndError ()) lazyUnlockWallet env =- katipAddContext (sl "RpcName" LazyUnlockWallet) $ do- $(logTM) (newSev env InfoS) "RPC is running..."- unlocked <- isRight <$> getInfo (env {envLndLogStrategy = logDebug})+ katipAddLndPublic env LndMethodCompose LazyUnlockWallet $ do+ $(logTM) (newSev env DebugS) rpcRunning+ unlocked <- isRight <$> getInfo (enforceDebugSev env) if unlocked then do- $(logTM) (newSev env InfoS) "Wallet is already unlocked, doing nothing"+ $(logTM) (newSev env DebugS) "Wallet is already unlocked, doing nothing!" return $ Right () else unlockWallet env lazyInitWallet ::- (KatipContext m) =>+ (KatipContext m, MonadUnliftIO m) => LndEnv -> m (Either LndError ()) lazyInitWallet env =- katipAddContext (sl "RpcName" LazyInitWallet) $ do- $(logTM) (newSev env InfoS) "RPC is running..."+ katipAddLndPublic env LndMethodCompose LazyInitWallet $ do+ $(logTM) (newSev env DebugS) rpcRunning unlockRes <-- lazyUnlockWallet $- env {envLndLogStrategy = logDebug}+ lazyUnlockWallet $ enforceDebugSev env if isRight unlockRes then do- $(logTM) (newSev env InfoS) "Wallet is already initialized, doing nothing"+ $(logTM) (newSev env DebugS) "Wallet is already initialized, doing nothing!" return unlockRes else initWallet env ensureHodlInvoice ::- (KatipContext m) =>+ (KatipContext m, MonadUnliftIO m) => LndEnv -> AddHodlInvoiceRequest -> m (Either LndError AddInvoiceResponse) ensureHodlInvoice env req =- katipAddContext (sl "RpcName" EnsureHodlInvoice) $ do- $(logTM) (newSev env InfoS) "RPC is running..."+ katipAddLndPublic env LndMethodCompose EnsureHodlInvoice $ do+ $(logTM) (newSev env DebugS) rpcRunning let rh = AddHodlInvoice.hash req- _ <- addHodlInvoice (env {envLndLogStrategy = logDebug}) req+ void $ addHodlInvoice (enforceDebugSev env) req res <- lookupInvoice env rh return $ case res of Left x -> Left x@@ -131,34 +154,79 @@ closeChannelSync :: (KatipContext m, MonadUnliftIO m) => LndEnv ->- ConnectPeerRequest ->+ Maybe ConnectPeerRequest -> CloseChannelRequest ->- m (Either LndError ())-closeChannelSync env conn req = do- cs0 <- listChannels env (ListChannels.ListChannelsRequest False False False False Nothing)- case cs0 of- Left err -> pure $ Left err- Right x ->- case filter (\ch -> channelPoint req == Channel.channelPoint ch) x of- [] -> do- $(logTM) (newSev env WarningS) "Cannot close channel that is not active"- return $ Right ()- _ -> do- mVar <- newEmptyMVar- closeChannelRecursive mVar 10+ m (Either LndError CloseStatusUpdate)+closeChannelSync env mConn req =+ katipAddLndPublic env LndMethodCompose CloseChannelSync $ do+ $(logTM) (newSev env DebugS) rpcRunning+ cs0 <-+ listChannels+ env+ $ ListChannels.ListChannelsRequest False False False False Nothing+ case cs0 of+ Left err -> pure $ Left err+ Right x ->+ case filter (\ch -> channelPoint req == Channel.channelPoint ch) x of+ [] -> do+ $(logTM) (newSev env WarningS) "Cannot close channel that is not active!"+ return $ Right NothingUpdate+ _ -> do+ mVar <- newEmptyMVar+ closeChannelRecursive mVar 10 where closeChannelRecursive _ (0 :: Int) = do- $(logTM) (newSev env ErrorS) "Channel couldn't be closed."- return $ Left $ LndError "Cannot close channel"+ $(logTM) (newSev env ErrorS) "Channel couldn't be closed!"+ return . Left $ LndError "Channel couldn't be closed!" closeChannelRecursive mVar0 n = do- void $ lazyConnectPeer env conn- void $ Util.spawnLink $- closeChannel- (void . tryPutMVar mVar0)- env- req- liftIO $ delay 1000000+ whenJust mConn $ void . lazyConnectPeer env+ void $+ Util.spawnLink $+ closeChannel+ (void . tryPutMVar mVar0)+ env+ req+ sleep $ MicroSecondsDelay 1000000 upd <- tryTakeMVar mVar0 case upd of- Just _ -> return $ Right ()- Nothing -> closeChannelRecursive mVar0 (n -1)+ Just res -> return $ Right res+ Nothing -> closeChannelRecursive mVar0 $ n - 1++trackPaymentSync ::+ (KatipContext m, MonadUnliftIO m) =>+ LndEnv ->+ TrackPaymentRequest ->+ m (Either LndError Payment)+trackPaymentSync env req = do+ mVar <- newEmptyMVar+ withSpawnLink+ ( trackPaymentV2+ (void . tryPutMVar mVar)+ env+ req+ )+ (const $ waitTrackResult mVar 10)+ where+ waitTrackResult _ (0 :: Int) = do+ $(logTM) (newSev env ErrorS) "Track Payment timeout expired"+ return $ Left $ LndError "Track Payment timeout expired"+ waitTrackResult mVar0 n = do+ sleep $ MicroSecondsDelay 100000+ upd <- tryTakeMVar mVar0+ case upd of+ Just res -> return $ Right res+ Nothing -> waitTrackResult mVar0 (n - 1)++catchWalletLock ::+ forall m a.+ (MonadUnliftIO m, KatipContext m) =>+ LndEnv ->+ m (Either LndError a) ->+ m (Either LndError a)+catchWalletLock env x = do+ x0 <- x+ case x0 of+ Left LndWalletLocked -> do+ _ <- lazyUnlockWallet env+ x+ _ -> pure x0
@@ -21,6 +21,14 @@ connectPeer, lazyConnectPeer, sendPayment,+ sendCoins,+ fundPsbt,+ finalizePsbt,+ publishTransaction,+ listUnspent,+ listLeases,+ leaseOutput,+ releaseOutput, getInfo, subscribeInvoices, subscribeInvoicesChan,@@ -38,6 +46,15 @@ listInvoices, subscribeSingleInvoice, subscribeSingleInvoiceChan,+ signMessage,+ verifyMessage,+ fundingStateStep,+ trackPaymentSync,+ catchWalletLock,+ exportAllChannelBackups,+ exportChannelBackup,+ restoreChannelBackups,+ walletBalance, ) where @@ -45,10 +62,15 @@ import LndClient.Data.AddHodlInvoice as AddHodlInvoice (AddHodlInvoiceRequest (..)) import LndClient.Data.AddInvoice as AddInvoice (AddInvoiceResponse (..)) import qualified LndClient.Data.Channel as Channel-import LndClient.Data.CloseChannel as CloseChannel (CloseChannelRequest (..))+import LndClient.Data.CloseChannel as CloseChannel+ ( CloseChannelRequest (..),+ CloseStatusUpdate (..),+ ) import LndClient.Data.Invoice as Invoice (Invoice (..)) import LndClient.Data.ListChannels as ListChannels (ListChannelsRequest (..))+import LndClient.Data.Payment as Payment import LndClient.Data.Peer (ConnectPeerRequest (..))+import LndClient.Data.TrackPayment as TrackPayment import LndClient.Import import LndClient.RPC.TH import LndClient.Util as Util@@ -56,7 +78,7 @@ $(mkRpc RpcSilent) waitForGrpc ::- (MonadIO m) =>+ (MonadUnliftIO m) => LndEnv -> m (Either LndError ()) waitForGrpc env = this 30@@ -64,36 +86,38 @@ this (x :: Int) = if x > 0 then do- res <- getInfo $ env {envLndLogStrategy = logDebug}+ res <- getInfo env if isRight res then return $ Right ()- else liftIO (delay 1000000) >> this (x - 1)+ else do+ sleep $ MicroSecondsDelay 1000000+ this $ x - 1 else do- let msg = "waitForGrpc attempt limit exceeded"- return . Left $ LndError msg+ return . Left $+ LndError "waitForGrpc attempt limit exceeded" lazyUnlockWallet ::- (MonadIO m) =>+ (MonadUnliftIO m) => LndEnv -> m (Either LndError ()) lazyUnlockWallet env = do- unlocked <- isRight <$> getInfo (env {envLndLogStrategy = logDebug})+ unlocked <- isRight <$> getInfo env if unlocked then return $ Right () else unlockWallet env lazyInitWallet ::- (MonadIO m) =>+ (MonadUnliftIO m) => LndEnv -> m (Either LndError ()) lazyInitWallet env = do- unlockRes <- lazyUnlockWallet $ env {envLndLogStrategy = logDebug}+ unlockRes <- lazyUnlockWallet env if isRight unlockRes then return unlockRes else initWallet env ensureHodlInvoice ::- (MonadIO m) =>+ (MonadUnliftIO m) => LndEnv -> AddHodlInvoiceRequest -> m (Either LndError AddInvoiceResponse)@@ -116,14 +140,14 @@ LndEnv -> ConnectPeerRequest -> CloseChannelRequest ->- m (Either LndError ())+ m (Either LndError CloseStatusUpdate) closeChannelSync env conn req = do cs0 <- listChannels env (ListChannels.ListChannelsRequest False False False False Nothing) case cs0 of Left err -> pure $ Left err Right x -> case filter (\ch -> channelPoint req == Channel.channelPoint ch) x of- [] -> return $ Right ()+ [] -> return $ Right NothingUpdate _ -> do mVar <- newEmptyMVar closeChannelRecursive mVar 10@@ -131,13 +155,51 @@ closeChannelRecursive _ (0 :: Int) = return $ Left $ LndError "Cannot close channel" closeChannelRecursive mVar0 n = do void $ lazyConnectPeer env conn- void $ Util.spawnLink $- closeChannel- (void . tryPutMVar mVar0)- env- req- liftIO $ delay 1000000+ void $+ Util.spawnLink $+ closeChannel+ (void . tryPutMVar mVar0)+ env+ req+ sleep $ MicroSecondsDelay 1000000 upd <- tryTakeMVar mVar0 case upd of- Just _ -> return $ Right ()- Nothing -> closeChannelRecursive mVar0 (n -1)+ Just res -> return $ Right res+ Nothing -> closeChannelRecursive mVar0 (n - 1)++trackPaymentSync ::+ (MonadUnliftIO m) =>+ LndEnv ->+ TrackPaymentRequest ->+ m (Either LndError Payment)+trackPaymentSync env req = do+ mVar <- newEmptyMVar+ withSpawnLink+ ( trackPaymentV2+ (void . tryPutMVar mVar)+ env+ req+ )+ (const $ waitTrackResult mVar 10)+ where+ waitTrackResult _ (0 :: Int) = return $ Left $ LndError "Track Payment timeout expired"+ waitTrackResult mVar0 n = do+ sleep $ MicroSecondsDelay 100000+ upd <- tryTakeMVar mVar0+ case upd of+ Just res -> return $ Right res+ Nothing -> waitTrackResult mVar0 (n - 1)++catchWalletLock ::+ forall m a.+ (MonadUnliftIO m) =>+ LndEnv ->+ m (Either LndError a) ->+ m (Either LndError a)+catchWalletLock env x = do+ x0 <- x+ case x0 of+ Left LndWalletLocked -> do+ _ <- lazyUnlockWallet env+ x+ _ -> pure x0
@@ -7,10 +7,11 @@ ) where -import Language.Haskell.TH.Syntax+import Language.Haskell.TH.Syntax as TH import LndClient.Data.AddHodlInvoice (AddHodlInvoiceRequest (..)) import LndClient.Data.AddInvoice (AddInvoiceRequest (..), AddInvoiceResponse (..)) import LndClient.Data.Channel (Channel (..))+import qualified LndClient.Data.ChannelBackup as Bak import LndClient.Data.ChannelPoint (ChannelPoint (..)) import LndClient.Data.CloseChannel ( ChannelCloseSummary (..),@@ -18,15 +19,20 @@ CloseStatusUpdate (..), ) import LndClient.Data.ClosedChannels (ClosedChannelsRequest (..))+import LndClient.Data.FinalizePsbt+import LndClient.Data.FundPsbt (FundPsbtRequest, FundPsbtResponse)+import qualified LndClient.Data.FundingStateStep as FSS import qualified LndClient.Data.GetInfo as GI import LndClient.Data.HtlcEvent (HtlcEvent (..)) import qualified LndClient.Data.InitWallet as IW import LndClient.Data.Invoice (Invoice (..))+import LndClient.Data.LeaseOutput (LeaseOutputRequest, LeaseOutputResponse) import LndClient.Data.ListChannels (ListChannelsRequest (..)) import LndClient.Data.ListInvoices (ListInvoiceRequest (..), ListInvoiceResponse (..))+import LndClient.Data.ListLeases (ListLeasesRequest, ListLeasesResponse)+import LndClient.Data.ListUnspent import LndClient.Data.NewAddress (NewAddressRequest (..), NewAddressResponse (..))-import LndClient.Data.OpenChannel-import LndClient.Data.OpenChannel (OpenChannelRequest (..))+import LndClient.Data.OpenChannel (OpenChannelRequest (..), OpenStatusUpdate (..)) import LndClient.Data.PayReq (PayReq (..)) import LndClient.Data.Payment (Payment (..)) import LndClient.Data.Peer@@ -35,30 +41,47 @@ Peer (..), ) import LndClient.Data.PendingChannels (PendingChannelsResponse (..))+import LndClient.Data.PublishTransaction (PublishTransactionRequest, PublishTransactionResponse)+import LndClient.Data.ReleaseOutput (ReleaseOutputRequest, ReleaseOutputResponse)+import LndClient.Data.SendCoins (SendCoinsRequest, SendCoinsResponse) import LndClient.Data.SendPayment (SendPaymentRequest (..), SendPaymentResponse (..))+import LndClient.Data.SignMessage+ ( SignMessageRequest (..),+ SignMessageResponse (..),+ ) import LndClient.Data.SubscribeChannelEvents (ChannelEventUpdate (..)) import LndClient.Data.SubscribeInvoices ( SubscribeInvoicesRequest (..), ) import LndClient.Data.TrackPayment (TrackPaymentRequest (..)) import qualified LndClient.Data.UnlockWallet as UW+import qualified LndClient.Data.VerifyMessage as VM+ ( VerifyMessageRequest (..),+ VerifyMessageResponse (..),+ )+import qualified LndClient.Data.WalletBalance as Wallet import LndClient.Import import LndClient.RPC.Generic import Network.GRPC.HTTP2.ProtoLens (RPC (..))-import qualified Proto.InvoiceGrpc as LnGRPC-import qualified Proto.LndGrpc as LnGRPC-import qualified Proto.RouterGrpc as LnGRPC-import qualified Proto.WalletUnlockerGrpc as LnGRPC+import qualified Proto.Invoicesrpc.Invoices as LnGRPC+import qualified Proto.Lightning as LnGRPC+import qualified Proto.Lnrpc.Ln0 as LnGRPC+import qualified Proto.Lnrpc.Ln1 as LnGRPC+import qualified Proto.Routerrpc.Router as LnGRPC+import qualified Proto.Signrpc.Signer as LnGRPC+import qualified Proto.Walletrpc.Walletkit as LnGRPC+import qualified Proto.Walletunlocker as LnGRPC data RpcKind = RpcSilent | RpcKatip mkRpc :: RpcKind -> Q [Dec] mkRpc k = do+ m <- VarT <$> newName "m" [d| getInfo ::- ($(tcc) m) =>+ $(tcc m) => LndEnv ->- m (Either LndError GI.GetInfoResponse)+ $(pure m) (Either LndError GI.GetInfoResponse) getInfo env = $(grpcRetry) $ $(grpcSync)@@ -67,9 +90,9 @@ (defMessage :: LnGRPC.GetInfoRequest) initWallet ::- ($(tcc) m) =>+ $(tcc m) => LndEnv ->- m (Either LndError ())+ $(pure m) (Either LndError ()) initWallet env = do case envLndCipherSeedMnemonic env of Nothing -> pure . Left $ LndEnvError "CipherSeed is required for initWallet"@@ -92,9 +115,9 @@ else return res unlockWallet ::- ($(tcc) m) =>+ $(tcc m) => LndEnv ->- m (Either LndError ())+ $(pure m) (Either LndError ()) unlockWallet env = do res <- $(grpcRetry) $@@ -110,99 +133,111 @@ else return res newAddress ::- ($(tcc) m) =>+ $(tcc m) => LndEnv -> NewAddressRequest ->- m (Either LndError NewAddressResponse)+ $(pure m) (Either LndError NewAddressResponse) newAddress env =- $(grpcRetry)+ catchWalletLock env+ . $(grpcRetry) . $(grpcSync) (RPC :: RPC LnGRPC.Lightning "newAddress") env addInvoice ::- ($(tcc) m) =>+ $(tcc m) => LndEnv -> AddInvoiceRequest ->- m (Either LndError AddInvoiceResponse)+ $(pure m) (Either LndError AddInvoiceResponse) addInvoice env =- $(grpcRetry)+ catchWalletLock env+ . $(grpcRetry) . $(grpcSync) (RPC :: RPC LnGRPC.Lightning "addInvoice") env addHodlInvoice ::- ($(tcc) m) =>+ $(tcc m) => LndEnv -> AddHodlInvoiceRequest ->- m (Either LndError PaymentRequest)+ $(pure m) (Either LndError PaymentRequest) addHodlInvoice env =- $(grpcRetry)+ catchWalletLock env+ . $(grpcRetry) . $(grpcSync) (RPC :: RPC LnGRPC.Invoices "addHoldInvoice") env cancelInvoice ::- ($(tcc) m) =>+ $(tcc m) => LndEnv -> RHash ->- m (Either LndError ())+ $(pure m) (Either LndError ()) cancelInvoice env =- $(grpcRetry)+ catchWalletLock env+ . $(grpcRetry) . $(grpcSync) (RPC :: RPC LnGRPC.Invoices "cancelInvoice") env settleInvoice ::- ($(tcc) m) =>+ $(tcc m) => LndEnv -> RPreimage ->- m (Either LndError ())+ $(pure m) (Either LndError ()) settleInvoice env =- $(grpcRetry)+ catchWalletLock env+ . $(grpcRetry) . $(grpcSync) (RPC :: RPC LnGRPC.Invoices "settleInvoice") env subscribeSingleInvoice ::- ($(tcc) m) =>+ $(tcc m) => (Invoice -> IO ()) -> LndEnv -> RHash ->- m (Either LndError ())- subscribeSingleInvoice =- $(grpcSubscribe)- (RPC :: RPC LnGRPC.Invoices "subscribeSingleInvoice")+ $(pure m) (Either LndError ())+ subscribeSingleInvoice handler env =+ catchWalletLock env+ . $(grpcSubscribe)+ (RPC :: RPC LnGRPC.Invoices "subscribeSingleInvoice")+ handler+ env subscribeSingleInvoiceChan ::- ($(tcc) m) =>- Maybe (TChan (RHash, Invoice)) ->+ $(tcc m) =>+ (req -> RHash) ->+ Maybe (TChan (req, Invoice)) -> LndEnv ->- RHash ->- m (Either LndError ())- subscribeSingleInvoiceChan mq env req = do+ req ->+ $(pure m) (Either LndError ())+ subscribeSingleInvoiceChan accessor mq env req = do q <- fromMaybeM (atomically newBroadcastTChan) $ pure mq subscribeSingleInvoice (\x -> atomically $ writeTChan q (req, x)) env- req+ $ accessor req subscribeInvoices ::- ($(tcc) m) =>+ $(tcc m) => (Invoice -> IO ()) -> LndEnv -> SubscribeInvoicesRequest ->- m (Either LndError ())- subscribeInvoices =- $(grpcSubscribe)- (RPC :: RPC LnGRPC.Lightning "subscribeInvoices")+ $(pure m) (Either LndError ())+ subscribeInvoices handler env =+ catchWalletLock env+ . $(grpcSubscribe)+ (RPC :: RPC LnGRPC.Lightning "subscribeInvoices")+ handler+ env subscribeInvoicesChan ::- ($(tcc) m) =>+ $(tcc m) => Maybe (TChan (SubscribeInvoicesRequest, Invoice)) -> LndEnv -> SubscribeInvoicesRequest ->- m (Either LndError ())+ $(pure m) (Either LndError ()) subscribeInvoicesChan mq env req = do q <- fromMaybeM (atomically newBroadcastTChan) $ pure mq subscribeInvoices@@ -211,22 +246,23 @@ req subscribeChannelEvents ::- ($(tcc) m) =>+ $(tcc m) => (ChannelEventUpdate -> IO ()) -> LndEnv ->- m (Either LndError ())+ $(pure m) (Either LndError ()) subscribeChannelEvents handler env =- $(grpcSubscribe)- (RPC :: RPC LnGRPC.Lightning "subscribeChannelEvents")- handler- env- (defMessage :: LnGRPC.ChannelEventSubscription)+ catchWalletLock env $+ $(grpcSubscribe)+ (RPC :: RPC LnGRPC.Lightning "subscribeChannelEvents")+ handler+ env+ (defMessage :: LnGRPC.ChannelEventSubscription) subscribeChannelEventsChan ::- ($(tcc) m) =>+ $(tcc m) => Maybe (TChan ((), ChannelEventUpdate)) -> LndEnv ->- m (Either LndError ())+ $(pure m) (Either LndError ()) subscribeChannelEventsChan mq env = do q <- fromMaybeM (atomically newBroadcastTChan) $ pure mq subscribeChannelEvents@@ -234,95 +270,105 @@ env openChannel ::- ($(tcc) m) =>+ $(tcc m) => (OpenStatusUpdate -> IO ()) -> LndEnv -> OpenChannelRequest ->- m (Either LndError ())- openChannel =- $(grpcSubscribe)- (RPC :: RPC LnGRPC.Lightning "openChannel")+ $(pure m) (Either LndError ())+ openChannel handler env =+ catchWalletLock env+ . $(grpcSubscribe)+ (RPC :: RPC LnGRPC.Lightning "openChannel")+ handler+ env openChannelSync ::- ($(tcc) m) =>+ $(tcc m) => LndEnv -> OpenChannelRequest ->- m (Either LndError ChannelPoint)+ $(pure m) (Either LndError ChannelPoint) openChannelSync env =- $(grpcSync)- (RPC :: RPC LnGRPC.Lightning "openChannelSync")- env+ catchWalletLock env+ . $(grpcSync) (RPC :: RPC LnGRPC.Lightning "openChannelSync") env listChannels ::- ($(tcc) m) =>+ $(tcc m) => LndEnv -> ListChannelsRequest ->- m (Either LndError [Channel])+ $(pure m) (Either LndError [Channel]) listChannels env =- $(grpcRetry)+ catchWalletLock env+ . $(grpcRetry) . $(grpcSync) (RPC :: RPC LnGRPC.Lightning "listChannels") env listInvoices ::- ($(tcc) m) =>+ $(tcc m) => LndEnv -> ListInvoiceRequest ->- m (Either LndError ListInvoiceResponse)+ $(pure m) (Either LndError ListInvoiceResponse) listInvoices env =- $(grpcRetry)+ catchWalletLock env+ . $(grpcRetry) . $(grpcSync) (RPC :: RPC LnGRPC.Lightning "listInvoices") env closedChannels ::- ($(tcc) m) =>+ $(tcc m) => LndEnv -> ClosedChannelsRequest ->- m (Either LndError [ChannelCloseSummary])+ $(pure m) (Either LndError [ChannelCloseSummary]) closedChannels env =- $(grpcRetry)+ catchWalletLock env+ . $(grpcRetry) . $(grpcSync) (RPC :: RPC LnGRPC.Lightning "closedChannels") env closeChannel ::- ($(tcc) m) =>+ $(tcc m) => (CloseStatusUpdate -> IO ()) -> LndEnv -> CloseChannelRequest ->- m (Either LndError ())- closeChannel =- $(grpcSubscribe)- (RPC :: RPC LnGRPC.Lightning "closeChannel")+ $(pure m) (Either LndError ())+ closeChannel handler env =+ catchWalletLock env+ . $(grpcSubscribe)+ (RPC :: RPC LnGRPC.Lightning "closeChannel")+ handler+ env listPeers ::- ($(tcc) m) =>+ $(tcc m) => LndEnv ->- m (Either LndError [Peer])+ $(pure m) (Either LndError [Peer]) listPeers env =- $(grpcRetry) $- $(grpcSync)+ catchWalletLock env+ . $(grpcRetry)+ $ $(grpcSync) (RPC :: RPC LnGRPC.Lightning "listPeers") env (defMessage :: LnGRPC.ListPeersRequest) connectPeer ::- ($(tcc) m) =>+ $(tcc m) => LndEnv -> ConnectPeerRequest ->- m (Either LndError ())+ $(pure m) (Either LndError ()) connectPeer env =- $(grpcRetry)+ catchWalletLock env+ . $(grpcRetry) . $(grpcSync) (RPC :: RPC LnGRPC.Lightning "connectPeer") env lazyConnectPeer ::- ($(tcc) m) =>+ $(tcc m) => LndEnv -> ConnectPeerRequest ->- m (Either LndError ())+ $(pure m) (Either LndError ()) lazyConnectPeer env cpr = do eps <- listPeers env case eps of@@ -336,66 +382,168 @@ pk = pubkey $ addr cpr sendPayment ::- ($(tcc) m) =>+ $(tcc m) => LndEnv -> SendPaymentRequest ->- m (Either LndError SendPaymentResponse)+ $(pure m) (Either LndError SendPaymentResponse) sendPayment env =- $(grpcRetry)+ catchWalletLock env+ . $(grpcRetry) . $(grpcSync) (RPC :: RPC LnGRPC.Lightning "sendPaymentSync") env + fundPsbt ::+ $(tcc m) =>+ LndEnv ->+ FundPsbtRequest ->+ $(pure m) (Either LndError FundPsbtResponse)+ fundPsbt env =+ catchWalletLock env+ . $(grpcRetry)+ . $(grpcSync)+ (RPC :: RPC LnGRPC.WalletKit "fundPsbt")+ env++ finalizePsbt ::+ $(tcc m) =>+ LndEnv ->+ FinalizePsbtRequest ->+ $(pure m) (Either LndError FinalizePsbtResponse)+ finalizePsbt env =+ catchWalletLock env+ . $(grpcRetry)+ . $(grpcSync)+ (RPC :: RPC LnGRPC.WalletKit "finalizePsbt")+ env++ publishTransaction ::+ $(tcc m) =>+ LndEnv ->+ PublishTransactionRequest ->+ $(pure m) (Either LndError PublishTransactionResponse)+ publishTransaction env =+ catchWalletLock env+ . $(grpcRetry)+ . $(grpcSync)+ (RPC :: RPC LnGRPC.WalletKit "publishTransaction")+ env++ listUnspent ::+ $(tcc m) =>+ LndEnv ->+ ListUnspentRequest ->+ $(pure m) (Either LndError ListUnspentResponse)+ listUnspent env =+ catchWalletLock env+ . $(grpcRetry)+ . $(grpcSync)+ (RPC :: RPC LnGRPC.WalletKit "listUnspent")+ env++ listLeases ::+ $(tcc m) =>+ LndEnv ->+ ListLeasesRequest ->+ $(pure m) (Either LndError ListLeasesResponse)+ listLeases env =+ catchWalletLock env+ . $(grpcRetry)+ . $(grpcSync)+ (RPC :: RPC LnGRPC.WalletKit "listLeases")+ env++ leaseOutput ::+ $(tcc m) =>+ LndEnv ->+ LeaseOutputRequest ->+ $(pure m) (Either LndError LeaseOutputResponse)+ leaseOutput env =+ catchWalletLock env+ . $(grpcRetry)+ . $(grpcSync)+ (RPC :: RPC LnGRPC.WalletKit "leaseOutput")+ env++ releaseOutput ::+ $(tcc m) =>+ LndEnv ->+ ReleaseOutputRequest ->+ $(pure m) (Either LndError ReleaseOutputResponse)+ releaseOutput env =+ catchWalletLock env+ . $(grpcRetry)+ . $(grpcSync)+ (RPC :: RPC LnGRPC.WalletKit "releaseOutput")+ env++ sendCoins ::+ $(tcc m) =>+ LndEnv ->+ SendCoinsRequest ->+ $(pure m) (Either LndError SendCoinsResponse)+ sendCoins env =+ $(grpcRetry)+ . $(grpcSync)+ (RPC :: RPC LnGRPC.Lightning "sendCoins")+ env+ subscribeHtlcEvents ::- ($(tcc) m) =>+ $(tcc m) => (HtlcEvent -> IO ()) -> LndEnv ->- m (Either LndError ())+ $(pure m) (Either LndError ()) subscribeHtlcEvents handler env =- $(grpcSubscribe)- (RPC :: RPC LnGRPC.Router "subscribeHtlcEvents")- handler- env- (defMessage :: LnGRPC.SubscribeHtlcEventsRequest)+ catchWalletLock env $+ $(grpcSubscribe)+ (RPC :: RPC LnGRPC.Router "subscribeHtlcEvents")+ handler+ env+ (defMessage :: LnGRPC.SubscribeHtlcEventsRequest) decodePayReq ::- ($(tcc) m) =>+ $(tcc m) => LndEnv -> PaymentRequest ->- m (Either LndError PayReq)+ $(pure m) (Either LndError PayReq) decodePayReq env =- $(grpcRetry)+ catchWalletLock env+ . $(grpcRetry) . $(grpcSync) (RPC :: RPC LnGRPC.Lightning "decodePayReq") env lookupInvoice ::- ($(tcc) m) =>+ $(tcc m) => LndEnv -> RHash ->- m (Either LndError Invoice)+ $(pure m) (Either LndError Invoice) lookupInvoice env =- $(grpcRetry)+ catchWalletLock env+ . $(grpcRetry) . $(grpcSync) (RPC :: RPC LnGRPC.Lightning "lookupInvoice") env trackPaymentV2 ::- ($(tcc) m) =>+ $(tcc m) => (Payment -> IO ()) -> LndEnv -> TrackPaymentRequest ->- m (Either LndError ())- trackPaymentV2 =- $(grpcSubscribe)- (RPC :: RPC LnGRPC.Router "trackPaymentV2")+ $(pure m) (Either LndError ())+ trackPaymentV2 handler env =+ catchWalletLock env+ . $(grpcSubscribe)+ (RPC :: RPC LnGRPC.Router "trackPaymentV2")+ handler+ env trackPaymentV2Chan ::- ($(tcc) m) =>+ $(tcc m) => Maybe (TChan (TrackPaymentRequest, Payment)) -> LndEnv -> TrackPaymentRequest ->- m (Either LndError ())+ $(pure m) (Either LndError ()) trackPaymentV2Chan mc env req = do q <- fromMaybeM (atomically newBroadcastTChan) $ pure mc trackPaymentV2@@ -404,26 +552,124 @@ req pendingChannels ::- ($(tcc) m) =>+ $(tcc m) => LndEnv ->- m (Either LndError PendingChannelsResponse)+ $(pure m) (Either LndError PendingChannelsResponse) pendingChannels env =- $(grpcRetry) $- $(grpcSync)+ catchWalletLock env+ . $(grpcRetry)+ $ $(grpcSync) (RPC :: RPC LnGRPC.Lightning "pendingChannels") env (defMessage :: LnGRPC.PendingChannelsRequest)++ signMessage ::+ $(tcc m) =>+ LndEnv ->+ SignMessageRequest ->+ $(pure m) (Either LndError SignMessageResponse)+ signMessage env =+ catchWalletLock env+ . $(grpcRetry)+ . $(grpcSync)+ (RPC :: RPC LnGRPC.Signer "signMessage")+ env++ verifyMessage ::+ $(tcc m) =>+ LndEnv ->+ VM.VerifyMessageRequest ->+ $(pure m) (Either LndError VM.VerifyMessageResponse)+ verifyMessage env =+ catchWalletLock env+ . $(grpcRetry)+ . $(grpcSync)+ (RPC :: RPC LnGRPC.Signer "verifyMessage")+ env++ fundingStateStep ::+ $(tcc m) =>+ LndEnv ->+ FSS.FundingStateStepRequest ->+ $(pure m) (Either LndError ())+ fundingStateStep env =+ catchWalletLock env+ . $(grpcRetry)+ . $(grpcSync)+ (RPC :: RPC LnGRPC.Lightning "fundingStateStep")+ env++ exportAllChannelBackups ::+ $(tcc m) =>+ LndEnv ->+ $(pure m) (Either LndError [Bak.ChannelBackup])+ exportAllChannelBackups env =+ catchWalletLock env+ . $(grpcRetry)+ $ $(grpcSync)+ (RPC :: RPC LnGRPC.Lightning "exportAllChannelBackups")+ env+ (defMessage :: LnGRPC.ChanBackupExportRequest)++ exportChannelBackup ::+ $(tcc m) =>+ LndEnv ->+ ChannelPoint ->+ $(pure m) (Either LndError Bak.ChannelBackup)+ exportChannelBackup env =+ catchWalletLock env+ . $(grpcRetry)+ . $(grpcSync)+ (RPC :: RPC LnGRPC.Lightning "exportChannelBackup")+ env++ restoreChannelBackups ::+ $(tcc m) =>+ LndEnv ->+ [Bak.ChannelBackup] ->+ $(pure m) (Either LndError ())+ restoreChannelBackups env =+ catchWalletLock env+ . $(grpcRetry)+ . $(grpcSync)+ (RPC :: RPC LnGRPC.Lightning "restoreChannelBackups")+ env++ walletBalance ::+ $(tcc m) =>+ LndEnv ->+ $(pure m) (Either LndError Wallet.WalletBalance)+ walletBalance env =+ catchWalletLock env+ . $(grpcRetry)+ $ $(grpcSync)+ (RPC :: RPC LnGRPC.Lightning "walletBalance")+ env+ (defMessage :: LnGRPC.WalletBalanceRequest) |] where- tcc = case k of- RpcSilent -> [t|MonadIO|]- RpcKatip -> [t|KatipContext|]+ tcc :: TH.Type -> Q TH.Type+ tcc m = case k of+ RpcSilent ->+ [t|+ ( MonadUnliftIO $(pure m)+ )+ |]+ RpcKatip ->+ [t|+ ( KatipContext $(pure m),+ MonadUnliftIO $(pure m)+ )+ |]+ grpcRetry :: Q Exp grpcRetry = case k of RpcSilent -> [e|retrySilent|] RpcKatip -> [e|retryKatip|]+ grpcSync :: Q Exp grpcSync = case k of RpcSilent -> [e|grpcSyncSilent|] RpcKatip -> [e|grpcSyncKatip|]+ grpcSubscribe :: Q Exp grpcSubscribe = case k of RpcSilent -> [e|grpcSubscribeSilent|] RpcKatip -> [e|grpcSubscribeKatip|]
@@ -1,4 +1,5 @@ {-# LANGUAGE FlexibleContexts #-}+{-# LANGUAGE TypeApplications #-} module LndClient.Util ( retrySilent,@@ -7,15 +8,23 @@ spawnLink, withSpawnLink, readTChanTimeout,- maybeDeadlock,+ catchAsync, txIdParser,+ txIdHex,+ psbtBtcCli, MicroSecondsDelay (..),+ sleep, ) where -import Control.Exception+import qualified Control.Concurrent.Async as Async+import qualified Control.Concurrent.STM.TVar as TVar (registerDelay)+import qualified Control.Concurrent.Thread.Delay as Delay (delay)+import Control.Exception hiding (Handler, catches) import qualified Data.ByteString as BS (reverse)-import qualified Data.ByteString.Base16 as B16 (decode)+import qualified Data.ByteString.Base16 as B16 (decode, encode)+import qualified Data.ByteString.Base64 as B64+import qualified Data.Text.Encoding as T import LndClient.Data.Type import LndClient.Import.External @@ -27,6 +36,12 @@ Right x -> Right $ BS.reverse x Left {} -> Left $ FromGrpcError "TX_ID_NON_HEX_BYTES" +txIdHex :: ByteString -> Text+txIdHex = decodeUtf8 . BS.reverse . B16.encode++psbtBtcCli :: ByteString -> Text+psbtBtcCli x = T.decodeUtf8 $ B64.encode x+ retrySilent :: MonadIO m => m (Either LndError a) -> m (Either LndError a) retrySilent = this 0@@ -39,7 +54,7 @@ if attempt > 5 then pure res else do- liftIO $ delay 300000+ sleep $ MicroSecondsDelay 300000 this attempt f _ -> pure res@@ -56,7 +71,7 @@ if attempt > 5 then pure res else do- liftIO $ delay 300000+ sleep $ MicroSecondsDelay 300000 this attempt f _ -> pure res@@ -75,35 +90,49 @@ spawnLink :: (MonadUnliftIO m) => m a -> m (Async a) spawnLink x = withRunInIO $ \run -> do- pid <- async $ run x- link pid+ pid <- Async.async $ run x+ Async.link pid pure pid withSpawnLink :: (MonadUnliftIO m) => m a -> (Async a -> m b) -> m b withSpawnLink action inner = withRunInIO $ \run ->- withAsync+ Async.withAsync (run action) ( \pid -> do- link pid+ Async.link pid run $ inner pid ) readTChanTimeout :: MonadUnliftIO m => MicroSecondsDelay -> TChan a -> m (Maybe a) readTChanTimeout t x = do- t0 <- liftIO . registerDelay $ coerce t- (join <$>) . maybeDeadlock . atomically $- Just <$> readTChan x+ t0 <-+ liftIO+ . TVar.registerDelay+ $ coerce t+ (join <$>)+ . (rightToMaybe <$>)+ . catchAsync+ . atomically+ $ Just <$> readTChan x <|> Nothing <$ fini t0 -maybeDeadlock :: MonadUnliftIO m => m a -> m (Maybe a)-maybeDeadlock x =- withRunInIO $ \run ->- (Just <$> run x)- `catches` [ Handler $- \BlockedIndefinitelyOnSTM -> pure Nothing- ]- fini :: TVar Bool -> STM () fini = check <=< readTVar++catchAsync :: (MonadUnliftIO m) => m a -> m (Either Text a)+catchAsync x =+ (Right <$> x)+ `catches` [ Handler+ ( \(_ :: BlockedIndefinitelyOnMVar) ->+ pure $ Left "BlockedIndefinitelyOnMVar"+ ),+ Handler+ ( \(_ :: BlockedIndefinitelyOnSTM) ->+ pure $ Left "BlockedIndefinitelyOnSTM"+ )+ ]++sleep :: MonadIO m => MicroSecondsDelay -> m ()+sleep = liftIO . Delay.delay . fromIntegral @Int . coerce
@@ -4,148 +4,179 @@ -- | Generic async worker to automate LND gRPC subscriptions. -- It watches any amount of subscriptions of the same type, -- and re-subscribes if subscription was not terminated properly.--- The only way to terminate subscription is to apply `unWatch` or--- `unWatchUnit` function.+-- The only way to terminate subscription is to apply `unWatch`,+-- `unWatchUnit` or `unWatchAll` function. module LndClient.Watcher ( Watcher,- spawnLink,- spawnLinkUnit, watch, watchUnit, unWatch, unWatchUnit,+ unWatchAll, dupLndTChan,- delete,+ withWatcher,+ withWatcherUnit, ) where +import qualified Control.Concurrent.Async as Async import qualified Data.Map as Map import LndClient.Import hiding (newSev, spawnLink) ------ TODO : maybe pass OnSub | OnExit callbacks?---+newtype WatcherPid = WatcherPid+ { unWatcherPid :: Async ()+ } -data Watcher a b- = Watcher- { watcherCmdChan :: TChan (Cmd a),- watcherLndChan :: TChan (a, b),- watcherProc :: Async ()- }+newtype TaskPid req = TaskPid+ { unTaskPid ::+ Async+ ( Either+ (KilledTask req)+ (req, Maybe LndError)+ )+ } ------ TODO : introduce UnWatchAll--- and use it in withEnv etc----data Cmd a- = Watch a- | UnWatch a+data Watcher req res = Watcher+ { watcherCmdChan :: TChan (Cmd req),+ watcherLndChan :: TChan (req, res),+ watcherPid :: WatcherPid+ } -data Event a b- = EventCmd (Cmd a)- | EventLnd b- | EventTask (a, Either LndError ())+data KillSignal+ = KillSignal+ deriving stock (Eq, Ord, Show) -data WatcherState a b m- = WatcherState- { watcherStateCmdChan :: TChan (Cmd a),- watcherStateLndChan :: TChan (a, b),- watcherStateSub :: a -> m (Either LndError ()),- watcherStateHandler :: a -> Either LndError b -> m (),- watcherStateTasks :: Map a (Async (a, Either LndError ())),- watcherStateLndEnv :: LndEnv- }+newtype KilledTask req = KilledTask req+ deriving newtype (Eq, Ord, Show) -newSev :: WatcherState a b m -> Severity -> Severity+data Cmd req+ = Watch WatcherPid req+ | UnWatch req+ | UnWatchAll++data Event req res+ = EventCmd (Cmd req)+ | EventLnd res+ | EventTask (Either (KilledTask req) (req, Maybe LndError))++data WatcherState req res m = WatcherState+ { watcherStateCmdChan :: TChan (Cmd req),+ watcherStateLndChan :: TChan (req, res),+ watcherStateSub :: req -> m (Maybe LndError),+ watcherStateHandler :: req -> Either LndError res -> m (),+ watcherStateTasks :: Map req (TaskPid req),+ watcherStateLndEnv :: LndEnv,+ watcherStateKillChan :: TChan KillSignal+ }++newSev :: WatcherState req res m -> Severity -> Severity newSev w s = newSeverity (watcherStateLndEnv w) s Nothing Nothing --- Spawn watcher where subscription accepts argument--- for example `subscribeInvoicesChan`-spawnLink ::- (Ord a, MonadUnliftIO m, KatipContext m) =>+-- | Compute an action with given subscription watcher+-- with given arguments.+withWatcher ::+ (Ord req, MonadUnliftIO m, KatipContext m) => LndEnv ->- (Maybe (TChan (a, b)) -> LndEnv -> a -> m (Either LndError ())) ->- (Watcher a b -> a -> Either LndError b -> m ()) ->- m (Watcher a b)-spawnLink env sub handler = do- w <- withRunInIO $ \run -> do- ( writeCmdChan,+ (Maybe (TChan (req, res)) -> LndEnv -> req -> m (Either LndError ())) ->+ (Watcher req res -> req -> Either LndError res -> m ()) ->+ (Watcher req res -> m actionRes) ->+ m actionRes+withWatcher env sub handler action =+ withRunInIO $ \run -> do+ ( writeKillChan,+ writeCmdChan, writeLndChan, readCmdChan, readLndChan ) <- atomically $ do+ writeKillChan <- newBroadcastTChan writeCmdChan <- newBroadcastTChan writeLndChan <- newBroadcastTChan readCmdChan <- dupTChan writeCmdChan readLndChan <- dupTChan writeLndChan- pure (writeCmdChan, writeLndChan, readCmdChan, readLndChan)- let w =+ pure+ ( writeKillChan,+ writeCmdChan,+ writeLndChan,+ readCmdChan,+ readLndChan+ )+ let newWatcher proc = Watcher { watcherCmdChan = writeCmdChan, watcherLndChan = writeLndChan,- watcherProc = error "PARTIAL_WATCHER"- }- varProc <- newEmptyMVar- proc <-- async . run $ do- proc <- takeMVar varProc- loop $- WatcherState- { watcherStateCmdChan = readCmdChan,- watcherStateLndChan = readLndChan,- watcherStateSub = sub (Just writeLndChan) env,- watcherStateHandler = handler $ w {watcherProc = proc},- watcherStateTasks = mempty,- watcherStateLndEnv = env+ watcherPid = proc }- liftIO $ putMVar varProc proc- pure $ w {watcherProc = proc}- let proc = watcherProc w- liftIO $ link proc- $(logTM) (newSeverity env InfoS Nothing Nothing)- $ logStr- $ ("Watcher spawned as " :: Text)- <> show (asyncThreadId proc)- pure w+ varWatchPid <- newEmptyMVar+ finally+ ( withSpawnLink+ ( do+ watchPid <- takeMVar varWatchPid+ run . loop $+ WatcherState+ { watcherStateCmdChan = readCmdChan,+ watcherStateLndChan = readLndChan,+ watcherStateSub =+ eitherM+ (pure . Just)+ (\() -> pure Nothing)+ . sub (Just writeLndChan) env,+ watcherStateHandler = handler $ newWatcher watchPid,+ watcherStateTasks = mempty,+ watcherStateLndEnv = env,+ watcherStateKillChan = writeKillChan+ }+ )+ ( \pid0 -> do+ let pid1 = WatcherPid pid0+ putMVar varWatchPid pid1+ run . action $ newWatcher pid1+ )+ )+ ( do+ atomically $ writeTChan writeKillChan KillSignal+ run . $(logTM) DebugS $ "Watcher terminated"+ ) --- Spawn watcher where subscription don't accept argument--- for example `subscribeChannelEventsChan`-spawnLinkUnit ::+-- | Compute an action with given subscription watcher+-- without arguments, for example `subscribeChannelEventsChan`.+withWatcherUnit :: (MonadUnliftIO m, KatipContext m) => LndEnv ->- (Maybe (TChan ((), b)) -> LndEnv -> m (Either LndError ())) ->- (Watcher () b -> Either LndError b -> m ()) ->- m (Watcher () b)-spawnLinkUnit env0 sub handler =- spawnLink+ (Maybe (TChan ((), res)) -> LndEnv -> m (Either LndError ())) ->+ (Watcher () res -> Either LndError res -> m ()) ->+ (Watcher () res -> m actionRes) ->+ m actionRes+withWatcherUnit env0 sub handler =+ withWatcher env0 (\mChan env1 _ -> sub mChan env1) (\chan _ x -> handler chan x) -watch :: (MonadUnliftIO m) => Watcher a b -> a -> m ()-watch w = atomically . writeTChan (watcherCmdChan w) . Watch+watch :: (MonadUnliftIO m) => Watcher req res -> req -> m ()+watch w =+ atomically+ . writeTChan (watcherCmdChan w)+ . Watch (watcherPid w) -watchUnit :: (MonadUnliftIO m) => Watcher () b -> m ()+watchUnit :: (MonadUnliftIO m) => Watcher () res -> m () watchUnit w = watch w () -unWatch :: (MonadUnliftIO m) => Watcher a b -> a -> m ()+unWatch :: (MonadUnliftIO m) => Watcher req res -> req -> m () unWatch w = atomically . writeTChan (watcherCmdChan w) . UnWatch -unWatchUnit :: (MonadUnliftIO m) => Watcher () b -> m ()+unWatchUnit :: (MonadUnliftIO m) => Watcher () res -> m () unWatchUnit w = unWatch w () -dupLndTChan :: (MonadIO m) => Watcher a b -> m (TChan (a, b))-dupLndTChan = atomically . dupTChan . watcherLndChan+unWatchAll :: (MonadUnliftIO m) => Watcher req res -> m ()+unWatchAll w = atomically $ writeTChan (watcherCmdChan w) UnWatchAll ------ TODO : atomically cancel all linked processes----delete :: (MonadUnliftIO m) => Watcher a b -> m ()-delete (Watcher _ _ proc) = liftIO $ cancel proc+dupLndTChan :: (MonadIO m) => Watcher req res -> m (TChan (req, res))+dupLndTChan = atomically . dupTChan . watcherLndChan loop ::- (Ord a, MonadUnliftIO m, KatipContext m) =>- WatcherState a b m ->+ (Ord req, MonadUnliftIO m, KatipContext m) =>+ WatcherState req res m -> m () loop w = do -- Here is the trick. Async watcher task can be already@@ -156,75 +187,103 @@ -- evaluated independently. In this case we need to retry -- alternative computation but without reading from -- watcherStateLndChan.- $(logTM) (newSev w InfoS) "Watcher - cmd <|> lnd <|> task"- me <- maybeDeadlock . atomically $ cmd <|> lnd <|> task+ me <-+ catchAsync . atomically $+ if tasksEmpty+ then cmd <|> lnd+ else cmd <|> lnd <|> task event <- case me of- Nothing -> do- $(logTM) (newSev w InfoS) "Watcher - cmd <|> task"- atomically $ cmd <|> task- Just x -> return x- $(logTM) (newSev w InfoS) "Watcher - applying event"+ Left _ ->+ atomically $+ if tasksEmpty+ then cmd+ else cmd <|> task+ Right x ->+ return x+ $(logTM) (newSev w DebugS) "Watcher - applying event" case event of EventCmd x -> applyCmd w x EventLnd x -> applyLnd w (second Right x)- EventTask x -> applyTask w x+ EventTask (Left (KilledTask x)) ->+ loop $+ w+ { watcherStateTasks =+ Map.delete x $ watcherStateTasks w+ }+ EventTask (Right x) -> applyTask w x where+ ts = unTaskPid <$> Map.elems (watcherStateTasks w)+ tasksEmpty = null ts cmd = EventCmd <$> readTChan (watcherStateCmdChan w) lnd = EventLnd <$> readTChan (watcherStateLndChan w)- task =- EventTask . snd- <$> waitAnySTM (Map.elems $ watcherStateTasks w)+ task = EventTask . snd <$> Async.waitAnySTM ts applyCmd ::- (Ord a, MonadUnliftIO m, KatipContext m) =>- WatcherState a b m ->- Cmd a ->+ forall req res m.+ (Ord req, MonadUnliftIO m, KatipContext m) =>+ WatcherState req res m ->+ Cmd req -> m () applyCmd w = \case- Watch x -> do- $(logTM) (newSev w InfoS) "Watcher - applying Cmd Watch"+ Watch watchPid x -> do+ $(logTM) (newSev w DebugS) "Watcher - applying Cmd Watch" if isJust $ Map.lookup x ts then loop w else do t <- withRunInIO $ \run -> do- t <- async . run $ (x,) <$> watcherStateSub w x- link t- return t+ readKillChan <- atomically $ dupTChan writeKillChan+ let rcvKill :: IO (KilledTask req) = do+ KillSignal <- atomically $ readTChan readKillChan+ pure $ KilledTask x+ let runExpr =+ run $ (x,) <$> watcherStateSub w x+ t <- Async.async $ do+ Async.linkOnly (const True) $ unWatcherPid watchPid+ Async.race rcvKill runExpr+ Async.link t+ pure $ TaskPid t loop w {watcherStateTasks = Map.insert x t ts} UnWatch x -> do- $(logTM) (newSev w InfoS) "Watcher - applying Cmd UnWatch"+ $(logTM) (newSev w DebugS) "Watcher - applying Cmd UnWatch" case Map.lookup x ts of Nothing -> loop w Just t -> do- liftIO $ cancel t+ liftIO . Async.cancel $ unTaskPid t loop w {watcherStateTasks = Map.delete x ts}+ UnWatchAll -> do+ $(logTM) (newSev w DebugS) "Watcher - applying Cmd UnWatchAll"+ liftIO $ do+ atomically $ writeTChan writeKillChan KillSignal+ mapM_ (Async.cancel . unTaskPid) $ Map.elems ts+ loop w {watcherStateTasks = mempty} where+ writeKillChan = watcherStateKillChan w ts = watcherStateTasks w applyLnd ::- (Ord a, MonadUnliftIO m, KatipContext m) =>- WatcherState a b m ->- (a, Either LndError b) ->+ (Ord req, MonadUnliftIO m, KatipContext m) =>+ WatcherState req res m ->+ (req, Either LndError res) -> m () applyLnd w (x0, x1) = do- $(logTM) (newSev w InfoS) "Watcher - applying Lnd"+ $(logTM) (newSev w DebugS) "Watcher - applying Lnd" watcherStateHandler w x0 x1 loop w applyTask ::- (Ord a, MonadUnliftIO m, KatipContext m) =>- WatcherState a b m ->- (a, Either LndError ()) ->+ (Ord req, MonadUnliftIO m, KatipContext m) =>+ WatcherState req res m ->+ (req, Maybe LndError) -> m () applyTask w0 (x, res) = do- $(logTM) (newSev w0 InfoS) "Watcher - applying Task"+ $(logTM) (newSev w0 DebugS) "Watcher - applying Task" case Map.lookup x ts of Nothing -> loop w0 Just t -> do case res of- Left (e :: LndError) -> watcherStateHandler w0 x $ Left e- Right () -> liftIO $ cancel t+ Just (e :: LndError) -> watcherStateHandler w0 x $ Left e+ Nothing -> liftIO . Async.cancel $ unTaskPid t loop w1 where ts = watcherStateTasks w0
@@ -8,18 +8,22 @@ ) where +import Control.Exception (BlockedIndefinitelyOnMVar (..)) import Data.ProtoLens.Message import Data.ProtoLens.Service.Types (HasMethod, HasMethodImpl (..))+import Data.Text+import GHC.IO.Exception (IOException) import GHC.TypeLits (Symbol) import LndClient.Data.LndEnv import LndClient.Import import Network.GRPC.Client.Helpers import qualified Network.GRPC.HTTP2.ProtoLens as ProtoLens import Network.HPACK (HeaderList)-import Network.HTTP2.Client+import Network.HTTP2.Client2+import qualified Prelude runUnary ::- ( MonadIO p,+ ( MonadUnliftIO p, HasMethod s m, req ~ MethodInput s m, res ~ MethodOutput s m@@ -29,18 +33,36 @@ req -> p (Either LndError res) runUnary rpc env req = do- res <- liftIO $ runClientIO $ do- grpc <- setupGrpcClient $ envLndConfig env- rawUnary rpc grpc req- return $ case res of- Right (Right (Right (_, _, (Right x)))) -> Right x- Right (Right (Right (_, _, (Left e)))) -> Left $ LndError $ pack e- Right (Right (Left e)) -> Left $ LndError ("LndGrpc response error, code: " <> show e)- Right (Left e) -> Left $ LndError ("LndGrpc, TooMuchConcurrency error: " <> show e)- Left e -> Left $ LndGrpcError e+ res <-+ catchExceptions $ liftIO (Right <$> this)+ pure $ case res of+ Right (Right (Right (Right (_, _, Right x)))) ->+ Right x+ Right (Right (Right (Right (_, _, Left "wallet not created, create one to enable full RPC access")))) ->+ Left LndWalletNotExists+ Right (Right (Right (Right (_, _, Left "wallet locked, unlock it to enable full RPC access")))) ->+ Left LndWalletLocked+ Right (Right (Right (Right (_, _, Left e)))) ->+ Left $ LndError $ pack e+ Right (Right (Right (Left e))) ->+ Left $ LndError ("LndGrpc response error, code: " <> inspect e)+ Right (Right (Left e)) ->+ Left . LndError $+ "LndGrpc TooMuchConcurrency error" <> fromString (Prelude.show e)+ Right (Left e) ->+ Left $ LndGrpcError e+ Left e ->+ Left e+ where+ this =+ runClientIO $+ bracket+ (setupGrpcClient $ envLndConfig env)+ close+ (\grpc -> rawUnary rpc grpc req) runStreamServer ::- ( MonadIO p,+ ( MonadUnliftIO p, HasMethod s m, req ~ MethodInput s m, res ~ MethodOutput s m@@ -51,10 +73,33 @@ (HeaderList -> res -> ClientIO ()) -> p (Either LndError res) runStreamServer rpc env req handler = do- r <- liftIO $ runClientIO $ do- grpc <- setupGrpcClient $ envLndConfig env- rawStreamServer rpc grpc () req $ const handler- return $ case r of- Right (Right ((), _, _)) -> Right defMessage- Right (Left e) -> Left $ LndError ("LndGrpc response error: " <> show e)- Left e -> Left $ LndGrpcError e+ res <-+ catchExceptions $ liftIO (Right <$> this)+ pure $ case res of+ Right (Right (Right ((), _, _))) ->+ Right defMessage+ Right (Right (Left e)) ->+ Left . LndError $+ "LndGrpc response error: " <> fromString (Prelude.show e)+ Right (Left e) ->+ Left $ LndGrpcError e+ Left e ->+ Left e+ where+ this =+ runClientIO $+ bracket+ (setupGrpcClient $ envLndConfig env)+ close+ (\grpc -> rawStreamServer rpc grpc () req $ const handler)++catchExceptions :: MonadUnliftIO m => m (Either LndError a) -> m (Either LndError a)+catchExceptions x =+ x+ `catches` [ Handler (\(e :: BlockedIndefinitelyOnMVar) -> pure (Left $ LndGrpcException $ inspect e)),+ Handler+ ( \(ex :: IOException) -> case stripPrefix ("Network.Socket.connect" :: Text) (pack $ Prelude.show ex) of+ Just mes -> pure $ Left $ NetworkException mes+ Nothing -> pure $ Left $ LndIOException ex+ )+ ]
@@ -0,0 +1,1753 @@+{- This file was auto-generated from autopilotrpc/autopilot.proto by the proto-lens-protoc program. -}+{-# LANGUAGE ScopedTypeVariables, DataKinds, TypeFamilies, UndecidableInstances, GeneralizedNewtypeDeriving, MultiParamTypeClasses, FlexibleContexts, FlexibleInstances, PatternSynonyms, MagicHash, NoImplicitPrelude, BangPatterns, TypeApplications, OverloadedStrings, DerivingStrategies, DeriveGeneric#-}+{-# OPTIONS_GHC -Wno-unused-imports#-}+{-# OPTIONS_GHC -Wno-duplicate-exports#-}+{-# OPTIONS_GHC -Wno-dodgy-exports#-}+module Proto.Autopilotrpc.Autopilot (+ Autopilot(..), ModifyStatusRequest(), ModifyStatusResponse(),+ QueryScoresRequest(), QueryScoresResponse(),+ QueryScoresResponse'HeuristicResult(),+ QueryScoresResponse'HeuristicResult'ScoresEntry(),+ SetScoresRequest(), SetScoresRequest'ScoresEntry(),+ SetScoresResponse(), StatusRequest(), StatusResponse()+ ) where+import qualified Data.ProtoLens.Runtime.Control.DeepSeq as Control.DeepSeq+import qualified Data.ProtoLens.Runtime.Data.ProtoLens.Prism as Data.ProtoLens.Prism+import qualified Text.PrettyPrint.GenericPretty.Instance+import qualified GHC.Generics+import qualified Text.PrettyPrint.GenericPretty+import qualified Data.ProtoLens.Runtime.Prelude as Prelude+import qualified Data.ProtoLens.Runtime.Data.Int as Data.Int+import qualified Data.ProtoLens.Runtime.Data.Monoid as Data.Monoid+import qualified Data.ProtoLens.Runtime.Data.Word as Data.Word+import qualified Data.ProtoLens.Runtime.Data.ProtoLens as Data.ProtoLens+import qualified Data.ProtoLens.Runtime.Data.ProtoLens.Encoding.Bytes as Data.ProtoLens.Encoding.Bytes+import qualified Data.ProtoLens.Runtime.Data.ProtoLens.Encoding.Growing as Data.ProtoLens.Encoding.Growing+import qualified Data.ProtoLens.Runtime.Data.ProtoLens.Encoding.Parser.Unsafe as Data.ProtoLens.Encoding.Parser.Unsafe+import qualified Data.ProtoLens.Runtime.Data.ProtoLens.Encoding.Wire as Data.ProtoLens.Encoding.Wire+import qualified Data.ProtoLens.Runtime.Data.ProtoLens.Field as Data.ProtoLens.Field+import qualified Data.ProtoLens.Runtime.Data.ProtoLens.Message.Enum as Data.ProtoLens.Message.Enum+import qualified Data.ProtoLens.Runtime.Data.ProtoLens.Service.Types as Data.ProtoLens.Service.Types+import qualified Data.ProtoLens.Runtime.Lens.Family2 as Lens.Family2+import qualified Data.ProtoLens.Runtime.Lens.Family2.Unchecked as Lens.Family2.Unchecked+import qualified Data.ProtoLens.Runtime.Data.Text as Data.Text+import qualified Data.ProtoLens.Runtime.Data.Map as Data.Map+import qualified Data.ProtoLens.Runtime.Data.ByteString as Data.ByteString+import qualified Data.ProtoLens.Runtime.Data.ByteString.Char8 as Data.ByteString.Char8+import qualified Data.ProtoLens.Runtime.Data.Text.Encoding as Data.Text.Encoding+import qualified Data.ProtoLens.Runtime.Data.Vector as Data.Vector+import qualified Data.ProtoLens.Runtime.Data.Vector.Generic as Data.Vector.Generic+import qualified Data.ProtoLens.Runtime.Data.Vector.Unboxed as Data.Vector.Unboxed+import qualified Data.ProtoLens.Runtime.Text.Read as Text.Read+{- | Fields :+ + * 'Proto.Autopilotrpc.Autopilot_Fields.enable' @:: Lens' ModifyStatusRequest Prelude.Bool@ -}+data ModifyStatusRequest+ = ModifyStatusRequest'_constructor {_ModifyStatusRequest'enable :: !Prelude.Bool,+ _ModifyStatusRequest'_unknownFields :: !Data.ProtoLens.FieldSet}+ deriving stock (Prelude.Eq, Prelude.Ord, GHC.Generics.Generic)+instance Prelude.Show ModifyStatusRequest where+ showsPrec _ __x __s+ = Prelude.showChar+ '{'+ (Prelude.showString+ (Data.ProtoLens.showMessageShort __x) (Prelude.showChar '}' __s))+instance Text.PrettyPrint.GenericPretty.Out ModifyStatusRequest+instance Data.ProtoLens.Field.HasField ModifyStatusRequest "enable" Prelude.Bool where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _ModifyStatusRequest'enable+ (\ x__ y__ -> x__ {_ModifyStatusRequest'enable = y__}))+ Prelude.id+instance Data.ProtoLens.Message ModifyStatusRequest where+ messageName _ = Data.Text.pack "autopilotrpc.ModifyStatusRequest"+ packedMessageDescriptor _+ = "\n\+ \\DC3ModifyStatusRequest\DC2\SYN\n\+ \\ACKenable\CAN\SOH \SOH(\bR\ACKenable"+ packedFileDescriptor _ = packedFileDescriptor+ fieldsByTag+ = let+ enable__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "enable"+ (Data.ProtoLens.ScalarField Data.ProtoLens.BoolField ::+ Data.ProtoLens.FieldTypeDescriptor Prelude.Bool)+ (Data.ProtoLens.PlainField+ Data.ProtoLens.Optional (Data.ProtoLens.Field.field @"enable")) ::+ Data.ProtoLens.FieldDescriptor ModifyStatusRequest+ in+ Data.Map.fromList+ [(Data.ProtoLens.Tag 1, enable__field_descriptor)]+ unknownFields+ = Lens.Family2.Unchecked.lens+ _ModifyStatusRequest'_unknownFields+ (\ x__ y__ -> x__ {_ModifyStatusRequest'_unknownFields = y__})+ defMessage+ = ModifyStatusRequest'_constructor+ {_ModifyStatusRequest'enable = Data.ProtoLens.fieldDefault,+ _ModifyStatusRequest'_unknownFields = []}+ parseMessage+ = let+ loop ::+ ModifyStatusRequest+ -> Data.ProtoLens.Encoding.Bytes.Parser ModifyStatusRequest+ loop x+ = do end <- Data.ProtoLens.Encoding.Bytes.atEnd+ if end then+ do (let missing = []+ in+ if Prelude.null missing then+ Prelude.return ()+ else+ Prelude.fail+ ((Prelude.++)+ "Missing required fields: "+ (Prelude.show (missing :: [Prelude.String]))))+ Prelude.return+ (Lens.Family2.over+ Data.ProtoLens.unknownFields (\ !t -> Prelude.reverse t) x)+ else+ do tag <- Data.ProtoLens.Encoding.Bytes.getVarInt+ case tag of+ 8 -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (Prelude.fmap+ ((Prelude./=) 0) Data.ProtoLens.Encoding.Bytes.getVarInt)+ "enable"+ loop (Lens.Family2.set (Data.ProtoLens.Field.field @"enable") y x)+ wire+ -> do !y <- Data.ProtoLens.Encoding.Wire.parseTaggedValueFromWire+ wire+ loop+ (Lens.Family2.over+ Data.ProtoLens.unknownFields (\ !t -> (:) y t) x)+ in+ (Data.ProtoLens.Encoding.Bytes.<?>)+ (do loop Data.ProtoLens.defMessage) "ModifyStatusRequest"+ buildMessage+ = \ _x+ -> (Data.Monoid.<>)+ (let+ _v = Lens.Family2.view (Data.ProtoLens.Field.field @"enable") _x+ in+ if (Prelude.==) _v Data.ProtoLens.fieldDefault then+ Data.Monoid.mempty+ else+ (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 8)+ ((Prelude..)+ Data.ProtoLens.Encoding.Bytes.putVarInt (\ b -> if b then 1 else 0)+ _v))+ (Data.ProtoLens.Encoding.Wire.buildFieldSet+ (Lens.Family2.view Data.ProtoLens.unknownFields _x))+instance Control.DeepSeq.NFData ModifyStatusRequest where+ rnf+ = \ x__+ -> Control.DeepSeq.deepseq+ (_ModifyStatusRequest'_unknownFields x__)+ (Control.DeepSeq.deepseq (_ModifyStatusRequest'enable x__) ())+{- | Fields :+ -}+data ModifyStatusResponse+ = ModifyStatusResponse'_constructor {_ModifyStatusResponse'_unknownFields :: !Data.ProtoLens.FieldSet}+ deriving stock (Prelude.Eq, Prelude.Ord, GHC.Generics.Generic)+instance Prelude.Show ModifyStatusResponse where+ showsPrec _ __x __s+ = Prelude.showChar+ '{'+ (Prelude.showString+ (Data.ProtoLens.showMessageShort __x) (Prelude.showChar '}' __s))+instance Text.PrettyPrint.GenericPretty.Out ModifyStatusResponse+instance Data.ProtoLens.Message ModifyStatusResponse where+ messageName _ = Data.Text.pack "autopilotrpc.ModifyStatusResponse"+ packedMessageDescriptor _+ = "\n\+ \\DC4ModifyStatusResponse"+ packedFileDescriptor _ = packedFileDescriptor+ fieldsByTag = let in Data.Map.fromList []+ unknownFields+ = Lens.Family2.Unchecked.lens+ _ModifyStatusResponse'_unknownFields+ (\ x__ y__ -> x__ {_ModifyStatusResponse'_unknownFields = y__})+ defMessage+ = ModifyStatusResponse'_constructor+ {_ModifyStatusResponse'_unknownFields = []}+ parseMessage+ = let+ loop ::+ ModifyStatusResponse+ -> Data.ProtoLens.Encoding.Bytes.Parser ModifyStatusResponse+ loop x+ = do end <- Data.ProtoLens.Encoding.Bytes.atEnd+ if end then+ do (let missing = []+ in+ if Prelude.null missing then+ Prelude.return ()+ else+ Prelude.fail+ ((Prelude.++)+ "Missing required fields: "+ (Prelude.show (missing :: [Prelude.String]))))+ Prelude.return+ (Lens.Family2.over+ Data.ProtoLens.unknownFields (\ !t -> Prelude.reverse t) x)+ else+ do tag <- Data.ProtoLens.Encoding.Bytes.getVarInt+ case tag of {+ wire+ -> do !y <- Data.ProtoLens.Encoding.Wire.parseTaggedValueFromWire+ wire+ loop+ (Lens.Family2.over+ Data.ProtoLens.unknownFields (\ !t -> (:) y t) x) }+ in+ (Data.ProtoLens.Encoding.Bytes.<?>)+ (do loop Data.ProtoLens.defMessage) "ModifyStatusResponse"+ buildMessage+ = \ _x+ -> Data.ProtoLens.Encoding.Wire.buildFieldSet+ (Lens.Family2.view Data.ProtoLens.unknownFields _x)+instance Control.DeepSeq.NFData ModifyStatusResponse where+ rnf+ = \ x__+ -> Control.DeepSeq.deepseq+ (_ModifyStatusResponse'_unknownFields x__) ()+{- | Fields :+ + * 'Proto.Autopilotrpc.Autopilot_Fields.pubkeys' @:: Lens' QueryScoresRequest [Data.Text.Text]@+ * 'Proto.Autopilotrpc.Autopilot_Fields.vec'pubkeys' @:: Lens' QueryScoresRequest (Data.Vector.Vector Data.Text.Text)@+ * 'Proto.Autopilotrpc.Autopilot_Fields.ignoreLocalState' @:: Lens' QueryScoresRequest Prelude.Bool@ -}+data QueryScoresRequest+ = QueryScoresRequest'_constructor {_QueryScoresRequest'pubkeys :: !(Data.Vector.Vector Data.Text.Text),+ _QueryScoresRequest'ignoreLocalState :: !Prelude.Bool,+ _QueryScoresRequest'_unknownFields :: !Data.ProtoLens.FieldSet}+ deriving stock (Prelude.Eq, Prelude.Ord, GHC.Generics.Generic)+instance Prelude.Show QueryScoresRequest where+ showsPrec _ __x __s+ = Prelude.showChar+ '{'+ (Prelude.showString+ (Data.ProtoLens.showMessageShort __x) (Prelude.showChar '}' __s))+instance Text.PrettyPrint.GenericPretty.Out QueryScoresRequest+instance Data.ProtoLens.Field.HasField QueryScoresRequest "pubkeys" [Data.Text.Text] where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _QueryScoresRequest'pubkeys+ (\ x__ y__ -> x__ {_QueryScoresRequest'pubkeys = y__}))+ (Lens.Family2.Unchecked.lens+ Data.Vector.Generic.toList+ (\ _ y__ -> Data.Vector.Generic.fromList y__))+instance Data.ProtoLens.Field.HasField QueryScoresRequest "vec'pubkeys" (Data.Vector.Vector Data.Text.Text) where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _QueryScoresRequest'pubkeys+ (\ x__ y__ -> x__ {_QueryScoresRequest'pubkeys = y__}))+ Prelude.id+instance Data.ProtoLens.Field.HasField QueryScoresRequest "ignoreLocalState" Prelude.Bool where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _QueryScoresRequest'ignoreLocalState+ (\ x__ y__ -> x__ {_QueryScoresRequest'ignoreLocalState = y__}))+ Prelude.id+instance Data.ProtoLens.Message QueryScoresRequest where+ messageName _ = Data.Text.pack "autopilotrpc.QueryScoresRequest"+ packedMessageDescriptor _+ = "\n\+ \\DC2QueryScoresRequest\DC2\CAN\n\+ \\apubkeys\CAN\SOH \ETX(\tR\apubkeys\DC2,\n\+ \\DC2ignore_local_state\CAN\STX \SOH(\bR\DLEignoreLocalState"+ packedFileDescriptor _ = packedFileDescriptor+ fieldsByTag+ = let+ pubkeys__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "pubkeys"+ (Data.ProtoLens.ScalarField Data.ProtoLens.StringField ::+ Data.ProtoLens.FieldTypeDescriptor Data.Text.Text)+ (Data.ProtoLens.RepeatedField+ Data.ProtoLens.Unpacked (Data.ProtoLens.Field.field @"pubkeys")) ::+ Data.ProtoLens.FieldDescriptor QueryScoresRequest+ ignoreLocalState__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "ignore_local_state"+ (Data.ProtoLens.ScalarField Data.ProtoLens.BoolField ::+ Data.ProtoLens.FieldTypeDescriptor Prelude.Bool)+ (Data.ProtoLens.PlainField+ Data.ProtoLens.Optional+ (Data.ProtoLens.Field.field @"ignoreLocalState")) ::+ Data.ProtoLens.FieldDescriptor QueryScoresRequest+ in+ Data.Map.fromList+ [(Data.ProtoLens.Tag 1, pubkeys__field_descriptor),+ (Data.ProtoLens.Tag 2, ignoreLocalState__field_descriptor)]+ unknownFields+ = Lens.Family2.Unchecked.lens+ _QueryScoresRequest'_unknownFields+ (\ x__ y__ -> x__ {_QueryScoresRequest'_unknownFields = y__})+ defMessage+ = QueryScoresRequest'_constructor+ {_QueryScoresRequest'pubkeys = Data.Vector.Generic.empty,+ _QueryScoresRequest'ignoreLocalState = Data.ProtoLens.fieldDefault,+ _QueryScoresRequest'_unknownFields = []}+ parseMessage+ = let+ loop ::+ QueryScoresRequest+ -> Data.ProtoLens.Encoding.Growing.Growing Data.Vector.Vector Data.ProtoLens.Encoding.Growing.RealWorld Data.Text.Text+ -> Data.ProtoLens.Encoding.Bytes.Parser QueryScoresRequest+ loop x mutable'pubkeys+ = do end <- Data.ProtoLens.Encoding.Bytes.atEnd+ if end then+ do frozen'pubkeys <- Data.ProtoLens.Encoding.Parser.Unsafe.unsafeLiftIO+ (Data.ProtoLens.Encoding.Growing.unsafeFreeze+ mutable'pubkeys)+ (let missing = []+ in+ if Prelude.null missing then+ Prelude.return ()+ else+ Prelude.fail+ ((Prelude.++)+ "Missing required fields: "+ (Prelude.show (missing :: [Prelude.String]))))+ Prelude.return+ (Lens.Family2.over+ Data.ProtoLens.unknownFields (\ !t -> Prelude.reverse t)+ (Lens.Family2.set+ (Data.ProtoLens.Field.field @"vec'pubkeys") frozen'pubkeys x))+ else+ do tag <- Data.ProtoLens.Encoding.Bytes.getVarInt+ case tag of+ 10+ -> do !y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (do value <- do len <- Data.ProtoLens.Encoding.Bytes.getVarInt+ Data.ProtoLens.Encoding.Bytes.getBytes+ (Prelude.fromIntegral len)+ Data.ProtoLens.Encoding.Bytes.runEither+ (case Data.Text.Encoding.decodeUtf8' value of+ (Prelude.Left err)+ -> Prelude.Left (Prelude.show err)+ (Prelude.Right r) -> Prelude.Right r))+ "pubkeys"+ v <- Data.ProtoLens.Encoding.Parser.Unsafe.unsafeLiftIO+ (Data.ProtoLens.Encoding.Growing.append mutable'pubkeys y)+ loop x v+ 16+ -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (Prelude.fmap+ ((Prelude./=) 0) Data.ProtoLens.Encoding.Bytes.getVarInt)+ "ignore_local_state"+ loop+ (Lens.Family2.set+ (Data.ProtoLens.Field.field @"ignoreLocalState") y x)+ mutable'pubkeys+ wire+ -> do !y <- Data.ProtoLens.Encoding.Wire.parseTaggedValueFromWire+ wire+ loop+ (Lens.Family2.over+ Data.ProtoLens.unknownFields (\ !t -> (:) y t) x)+ mutable'pubkeys+ in+ (Data.ProtoLens.Encoding.Bytes.<?>)+ (do mutable'pubkeys <- Data.ProtoLens.Encoding.Parser.Unsafe.unsafeLiftIO+ Data.ProtoLens.Encoding.Growing.new+ loop Data.ProtoLens.defMessage mutable'pubkeys)+ "QueryScoresRequest"+ buildMessage+ = \ _x+ -> (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.foldMapBuilder+ (\ _v+ -> (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 10)+ ((Prelude..)+ (\ bs+ -> (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt+ (Prelude.fromIntegral (Data.ByteString.length bs)))+ (Data.ProtoLens.Encoding.Bytes.putBytes bs))+ Data.Text.Encoding.encodeUtf8 _v))+ (Lens.Family2.view (Data.ProtoLens.Field.field @"vec'pubkeys") _x))+ ((Data.Monoid.<>)+ (let+ _v+ = Lens.Family2.view+ (Data.ProtoLens.Field.field @"ignoreLocalState") _x+ in+ if (Prelude.==) _v Data.ProtoLens.fieldDefault then+ Data.Monoid.mempty+ else+ (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 16)+ ((Prelude..)+ Data.ProtoLens.Encoding.Bytes.putVarInt (\ b -> if b then 1 else 0)+ _v))+ (Data.ProtoLens.Encoding.Wire.buildFieldSet+ (Lens.Family2.view Data.ProtoLens.unknownFields _x)))+instance Control.DeepSeq.NFData QueryScoresRequest where+ rnf+ = \ x__+ -> Control.DeepSeq.deepseq+ (_QueryScoresRequest'_unknownFields x__)+ (Control.DeepSeq.deepseq+ (_QueryScoresRequest'pubkeys x__)+ (Control.DeepSeq.deepseq+ (_QueryScoresRequest'ignoreLocalState x__) ()))+{- | Fields :+ + * 'Proto.Autopilotrpc.Autopilot_Fields.results' @:: Lens' QueryScoresResponse [QueryScoresResponse'HeuristicResult]@+ * 'Proto.Autopilotrpc.Autopilot_Fields.vec'results' @:: Lens' QueryScoresResponse (Data.Vector.Vector QueryScoresResponse'HeuristicResult)@ -}+data QueryScoresResponse+ = QueryScoresResponse'_constructor {_QueryScoresResponse'results :: !(Data.Vector.Vector QueryScoresResponse'HeuristicResult),+ _QueryScoresResponse'_unknownFields :: !Data.ProtoLens.FieldSet}+ deriving stock (Prelude.Eq, Prelude.Ord, GHC.Generics.Generic)+instance Prelude.Show QueryScoresResponse where+ showsPrec _ __x __s+ = Prelude.showChar+ '{'+ (Prelude.showString+ (Data.ProtoLens.showMessageShort __x) (Prelude.showChar '}' __s))+instance Text.PrettyPrint.GenericPretty.Out QueryScoresResponse+instance Data.ProtoLens.Field.HasField QueryScoresResponse "results" [QueryScoresResponse'HeuristicResult] where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _QueryScoresResponse'results+ (\ x__ y__ -> x__ {_QueryScoresResponse'results = y__}))+ (Lens.Family2.Unchecked.lens+ Data.Vector.Generic.toList+ (\ _ y__ -> Data.Vector.Generic.fromList y__))+instance Data.ProtoLens.Field.HasField QueryScoresResponse "vec'results" (Data.Vector.Vector QueryScoresResponse'HeuristicResult) where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _QueryScoresResponse'results+ (\ x__ y__ -> x__ {_QueryScoresResponse'results = y__}))+ Prelude.id+instance Data.ProtoLens.Message QueryScoresResponse where+ messageName _ = Data.Text.pack "autopilotrpc.QueryScoresResponse"+ packedMessageDescriptor _+ = "\n\+ \\DC3QueryScoresResponse\DC2K\n\+ \\aresults\CAN\SOH \ETX(\v21.autopilotrpc.QueryScoresResponse.HeuristicResultR\aresults\SUB\193\SOH\n\+ \\SIHeuristicResult\DC2\FS\n\+ \\theuristic\CAN\SOH \SOH(\tR\theuristic\DC2U\n\+ \\ACKscores\CAN\STX \ETX(\v2=.autopilotrpc.QueryScoresResponse.HeuristicResult.ScoresEntryR\ACKscores\SUB9\n\+ \\vScoresEntry\DC2\DLE\n\+ \\ETXkey\CAN\SOH \SOH(\tR\ETXkey\DC2\DC4\n\+ \\ENQvalue\CAN\STX \SOH(\SOHR\ENQvalue:\STX8\SOH"+ packedFileDescriptor _ = packedFileDescriptor+ fieldsByTag+ = let+ results__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "results"+ (Data.ProtoLens.MessageField Data.ProtoLens.MessageType ::+ Data.ProtoLens.FieldTypeDescriptor QueryScoresResponse'HeuristicResult)+ (Data.ProtoLens.RepeatedField+ Data.ProtoLens.Unpacked (Data.ProtoLens.Field.field @"results")) ::+ Data.ProtoLens.FieldDescriptor QueryScoresResponse+ in+ Data.Map.fromList+ [(Data.ProtoLens.Tag 1, results__field_descriptor)]+ unknownFields+ = Lens.Family2.Unchecked.lens+ _QueryScoresResponse'_unknownFields+ (\ x__ y__ -> x__ {_QueryScoresResponse'_unknownFields = y__})+ defMessage+ = QueryScoresResponse'_constructor+ {_QueryScoresResponse'results = Data.Vector.Generic.empty,+ _QueryScoresResponse'_unknownFields = []}+ parseMessage+ = let+ loop ::+ QueryScoresResponse+ -> Data.ProtoLens.Encoding.Growing.Growing Data.Vector.Vector Data.ProtoLens.Encoding.Growing.RealWorld QueryScoresResponse'HeuristicResult+ -> Data.ProtoLens.Encoding.Bytes.Parser QueryScoresResponse+ loop x mutable'results+ = do end <- Data.ProtoLens.Encoding.Bytes.atEnd+ if end then+ do frozen'results <- Data.ProtoLens.Encoding.Parser.Unsafe.unsafeLiftIO+ (Data.ProtoLens.Encoding.Growing.unsafeFreeze+ mutable'results)+ (let missing = []+ in+ if Prelude.null missing then+ Prelude.return ()+ else+ Prelude.fail+ ((Prelude.++)+ "Missing required fields: "+ (Prelude.show (missing :: [Prelude.String]))))+ Prelude.return+ (Lens.Family2.over+ Data.ProtoLens.unknownFields (\ !t -> Prelude.reverse t)+ (Lens.Family2.set+ (Data.ProtoLens.Field.field @"vec'results") frozen'results x))+ else+ do tag <- Data.ProtoLens.Encoding.Bytes.getVarInt+ case tag of+ 10+ -> do !y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (do len <- Data.ProtoLens.Encoding.Bytes.getVarInt+ Data.ProtoLens.Encoding.Bytes.isolate+ (Prelude.fromIntegral len)+ Data.ProtoLens.parseMessage)+ "results"+ v <- Data.ProtoLens.Encoding.Parser.Unsafe.unsafeLiftIO+ (Data.ProtoLens.Encoding.Growing.append mutable'results y)+ loop x v+ wire+ -> do !y <- Data.ProtoLens.Encoding.Wire.parseTaggedValueFromWire+ wire+ loop+ (Lens.Family2.over+ Data.ProtoLens.unknownFields (\ !t -> (:) y t) x)+ mutable'results+ in+ (Data.ProtoLens.Encoding.Bytes.<?>)+ (do mutable'results <- Data.ProtoLens.Encoding.Parser.Unsafe.unsafeLiftIO+ Data.ProtoLens.Encoding.Growing.new+ loop Data.ProtoLens.defMessage mutable'results)+ "QueryScoresResponse"+ buildMessage+ = \ _x+ -> (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.foldMapBuilder+ (\ _v+ -> (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 10)+ ((Prelude..)+ (\ bs+ -> (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt+ (Prelude.fromIntegral (Data.ByteString.length bs)))+ (Data.ProtoLens.Encoding.Bytes.putBytes bs))+ Data.ProtoLens.encodeMessage _v))+ (Lens.Family2.view (Data.ProtoLens.Field.field @"vec'results") _x))+ (Data.ProtoLens.Encoding.Wire.buildFieldSet+ (Lens.Family2.view Data.ProtoLens.unknownFields _x))+instance Control.DeepSeq.NFData QueryScoresResponse where+ rnf+ = \ x__+ -> Control.DeepSeq.deepseq+ (_QueryScoresResponse'_unknownFields x__)+ (Control.DeepSeq.deepseq (_QueryScoresResponse'results x__) ())+{- | Fields :+ + * 'Proto.Autopilotrpc.Autopilot_Fields.heuristic' @:: Lens' QueryScoresResponse'HeuristicResult Data.Text.Text@+ * 'Proto.Autopilotrpc.Autopilot_Fields.scores' @:: Lens' QueryScoresResponse'HeuristicResult (Data.Map.Map Data.Text.Text Prelude.Double)@ -}+data QueryScoresResponse'HeuristicResult+ = QueryScoresResponse'HeuristicResult'_constructor {_QueryScoresResponse'HeuristicResult'heuristic :: !Data.Text.Text,+ _QueryScoresResponse'HeuristicResult'scores :: !(Data.Map.Map Data.Text.Text Prelude.Double),+ _QueryScoresResponse'HeuristicResult'_unknownFields :: !Data.ProtoLens.FieldSet}+ deriving stock (Prelude.Eq, Prelude.Ord, GHC.Generics.Generic)+instance Prelude.Show QueryScoresResponse'HeuristicResult where+ showsPrec _ __x __s+ = Prelude.showChar+ '{'+ (Prelude.showString+ (Data.ProtoLens.showMessageShort __x) (Prelude.showChar '}' __s))+instance Text.PrettyPrint.GenericPretty.Out QueryScoresResponse'HeuristicResult+instance Data.ProtoLens.Field.HasField QueryScoresResponse'HeuristicResult "heuristic" Data.Text.Text where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _QueryScoresResponse'HeuristicResult'heuristic+ (\ x__ y__+ -> x__ {_QueryScoresResponse'HeuristicResult'heuristic = y__}))+ Prelude.id+instance Data.ProtoLens.Field.HasField QueryScoresResponse'HeuristicResult "scores" (Data.Map.Map Data.Text.Text Prelude.Double) where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _QueryScoresResponse'HeuristicResult'scores+ (\ x__ y__+ -> x__ {_QueryScoresResponse'HeuristicResult'scores = y__}))+ Prelude.id+instance Data.ProtoLens.Message QueryScoresResponse'HeuristicResult where+ messageName _+ = Data.Text.pack "autopilotrpc.QueryScoresResponse.HeuristicResult"+ packedMessageDescriptor _+ = "\n\+ \\SIHeuristicResult\DC2\FS\n\+ \\theuristic\CAN\SOH \SOH(\tR\theuristic\DC2U\n\+ \\ACKscores\CAN\STX \ETX(\v2=.autopilotrpc.QueryScoresResponse.HeuristicResult.ScoresEntryR\ACKscores\SUB9\n\+ \\vScoresEntry\DC2\DLE\n\+ \\ETXkey\CAN\SOH \SOH(\tR\ETXkey\DC2\DC4\n\+ \\ENQvalue\CAN\STX \SOH(\SOHR\ENQvalue:\STX8\SOH"+ packedFileDescriptor _ = packedFileDescriptor+ fieldsByTag+ = let+ heuristic__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "heuristic"+ (Data.ProtoLens.ScalarField Data.ProtoLens.StringField ::+ Data.ProtoLens.FieldTypeDescriptor Data.Text.Text)+ (Data.ProtoLens.PlainField+ Data.ProtoLens.Optional+ (Data.ProtoLens.Field.field @"heuristic")) ::+ Data.ProtoLens.FieldDescriptor QueryScoresResponse'HeuristicResult+ scores__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "scores"+ (Data.ProtoLens.MessageField Data.ProtoLens.MessageType ::+ Data.ProtoLens.FieldTypeDescriptor QueryScoresResponse'HeuristicResult'ScoresEntry)+ (Data.ProtoLens.MapField+ (Data.ProtoLens.Field.field @"key")+ (Data.ProtoLens.Field.field @"value")+ (Data.ProtoLens.Field.field @"scores")) ::+ Data.ProtoLens.FieldDescriptor QueryScoresResponse'HeuristicResult+ in+ Data.Map.fromList+ [(Data.ProtoLens.Tag 1, heuristic__field_descriptor),+ (Data.ProtoLens.Tag 2, scores__field_descriptor)]+ unknownFields+ = Lens.Family2.Unchecked.lens+ _QueryScoresResponse'HeuristicResult'_unknownFields+ (\ x__ y__+ -> x__ {_QueryScoresResponse'HeuristicResult'_unknownFields = y__})+ defMessage+ = QueryScoresResponse'HeuristicResult'_constructor+ {_QueryScoresResponse'HeuristicResult'heuristic = Data.ProtoLens.fieldDefault,+ _QueryScoresResponse'HeuristicResult'scores = Data.Map.empty,+ _QueryScoresResponse'HeuristicResult'_unknownFields = []}+ parseMessage+ = let+ loop ::+ QueryScoresResponse'HeuristicResult+ -> Data.ProtoLens.Encoding.Bytes.Parser QueryScoresResponse'HeuristicResult+ loop x+ = do end <- Data.ProtoLens.Encoding.Bytes.atEnd+ if end then+ do (let missing = []+ in+ if Prelude.null missing then+ Prelude.return ()+ else+ Prelude.fail+ ((Prelude.++)+ "Missing required fields: "+ (Prelude.show (missing :: [Prelude.String]))))+ Prelude.return+ (Lens.Family2.over+ Data.ProtoLens.unknownFields (\ !t -> Prelude.reverse t) x)+ else+ do tag <- Data.ProtoLens.Encoding.Bytes.getVarInt+ case tag of+ 10+ -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (do value <- do len <- Data.ProtoLens.Encoding.Bytes.getVarInt+ Data.ProtoLens.Encoding.Bytes.getBytes+ (Prelude.fromIntegral len)+ Data.ProtoLens.Encoding.Bytes.runEither+ (case Data.Text.Encoding.decodeUtf8' value of+ (Prelude.Left err)+ -> Prelude.Left (Prelude.show err)+ (Prelude.Right r) -> Prelude.Right r))+ "heuristic"+ loop+ (Lens.Family2.set (Data.ProtoLens.Field.field @"heuristic") y x)+ 18+ -> do !(entry :: QueryScoresResponse'HeuristicResult'ScoresEntry) <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (do len <- Data.ProtoLens.Encoding.Bytes.getVarInt+ Data.ProtoLens.Encoding.Bytes.isolate+ (Prelude.fromIntegral+ len)+ Data.ProtoLens.parseMessage)+ "scores"+ (let+ key = Lens.Family2.view (Data.ProtoLens.Field.field @"key") entry+ value+ = Lens.Family2.view (Data.ProtoLens.Field.field @"value") entry+ in+ loop+ (Lens.Family2.over+ (Data.ProtoLens.Field.field @"scores")+ (\ !t -> Data.Map.insert key value t) x))+ wire+ -> do !y <- Data.ProtoLens.Encoding.Wire.parseTaggedValueFromWire+ wire+ loop+ (Lens.Family2.over+ Data.ProtoLens.unknownFields (\ !t -> (:) y t) x)+ in+ (Data.ProtoLens.Encoding.Bytes.<?>)+ (do loop Data.ProtoLens.defMessage) "HeuristicResult"+ buildMessage+ = \ _x+ -> (Data.Monoid.<>)+ (let+ _v = Lens.Family2.view (Data.ProtoLens.Field.field @"heuristic") _x+ in+ if (Prelude.==) _v Data.ProtoLens.fieldDefault then+ Data.Monoid.mempty+ else+ (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 10)+ ((Prelude..)+ (\ bs+ -> (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt+ (Prelude.fromIntegral (Data.ByteString.length bs)))+ (Data.ProtoLens.Encoding.Bytes.putBytes bs))+ Data.Text.Encoding.encodeUtf8 _v))+ ((Data.Monoid.<>)+ (Data.Monoid.mconcat+ (Prelude.map+ (\ _v+ -> (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 18)+ ((Prelude..)+ (\ bs+ -> (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt+ (Prelude.fromIntegral (Data.ByteString.length bs)))+ (Data.ProtoLens.Encoding.Bytes.putBytes bs))+ Data.ProtoLens.encodeMessage+ (Lens.Family2.set+ (Data.ProtoLens.Field.field @"key") (Prelude.fst _v)+ (Lens.Family2.set+ (Data.ProtoLens.Field.field @"value") (Prelude.snd _v)+ (Data.ProtoLens.defMessage ::+ QueryScoresResponse'HeuristicResult'ScoresEntry)))))+ (Data.Map.toList+ (Lens.Family2.view (Data.ProtoLens.Field.field @"scores") _x))))+ (Data.ProtoLens.Encoding.Wire.buildFieldSet+ (Lens.Family2.view Data.ProtoLens.unknownFields _x)))+instance Control.DeepSeq.NFData QueryScoresResponse'HeuristicResult where+ rnf+ = \ x__+ -> Control.DeepSeq.deepseq+ (_QueryScoresResponse'HeuristicResult'_unknownFields x__)+ (Control.DeepSeq.deepseq+ (_QueryScoresResponse'HeuristicResult'heuristic x__)+ (Control.DeepSeq.deepseq+ (_QueryScoresResponse'HeuristicResult'scores x__) ()))+{- | Fields :+ + * 'Proto.Autopilotrpc.Autopilot_Fields.key' @:: Lens' QueryScoresResponse'HeuristicResult'ScoresEntry Data.Text.Text@+ * 'Proto.Autopilotrpc.Autopilot_Fields.value' @:: Lens' QueryScoresResponse'HeuristicResult'ScoresEntry Prelude.Double@ -}+data QueryScoresResponse'HeuristicResult'ScoresEntry+ = QueryScoresResponse'HeuristicResult'ScoresEntry'_constructor {_QueryScoresResponse'HeuristicResult'ScoresEntry'key :: !Data.Text.Text,+ _QueryScoresResponse'HeuristicResult'ScoresEntry'value :: !Prelude.Double,+ _QueryScoresResponse'HeuristicResult'ScoresEntry'_unknownFields :: !Data.ProtoLens.FieldSet}+ deriving stock (Prelude.Eq, Prelude.Ord, GHC.Generics.Generic)+instance Prelude.Show QueryScoresResponse'HeuristicResult'ScoresEntry where+ showsPrec _ __x __s+ = Prelude.showChar+ '{'+ (Prelude.showString+ (Data.ProtoLens.showMessageShort __x) (Prelude.showChar '}' __s))+instance Text.PrettyPrint.GenericPretty.Out QueryScoresResponse'HeuristicResult'ScoresEntry+instance Data.ProtoLens.Field.HasField QueryScoresResponse'HeuristicResult'ScoresEntry "key" Data.Text.Text where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _QueryScoresResponse'HeuristicResult'ScoresEntry'key+ (\ x__ y__+ -> x__+ {_QueryScoresResponse'HeuristicResult'ScoresEntry'key = y__}))+ Prelude.id+instance Data.ProtoLens.Field.HasField QueryScoresResponse'HeuristicResult'ScoresEntry "value" Prelude.Double where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _QueryScoresResponse'HeuristicResult'ScoresEntry'value+ (\ x__ y__+ -> x__+ {_QueryScoresResponse'HeuristicResult'ScoresEntry'value = y__}))+ Prelude.id+instance Data.ProtoLens.Message QueryScoresResponse'HeuristicResult'ScoresEntry where+ messageName _+ = Data.Text.pack+ "autopilotrpc.QueryScoresResponse.HeuristicResult.ScoresEntry"+ packedMessageDescriptor _+ = "\n\+ \\vScoresEntry\DC2\DLE\n\+ \\ETXkey\CAN\SOH \SOH(\tR\ETXkey\DC2\DC4\n\+ \\ENQvalue\CAN\STX \SOH(\SOHR\ENQvalue:\STX8\SOH"+ packedFileDescriptor _ = packedFileDescriptor+ fieldsByTag+ = let+ key__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "key"+ (Data.ProtoLens.ScalarField Data.ProtoLens.StringField ::+ Data.ProtoLens.FieldTypeDescriptor Data.Text.Text)+ (Data.ProtoLens.PlainField+ Data.ProtoLens.Optional (Data.ProtoLens.Field.field @"key")) ::+ Data.ProtoLens.FieldDescriptor QueryScoresResponse'HeuristicResult'ScoresEntry+ value__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "value"+ (Data.ProtoLens.ScalarField Data.ProtoLens.DoubleField ::+ Data.ProtoLens.FieldTypeDescriptor Prelude.Double)+ (Data.ProtoLens.PlainField+ Data.ProtoLens.Optional (Data.ProtoLens.Field.field @"value")) ::+ Data.ProtoLens.FieldDescriptor QueryScoresResponse'HeuristicResult'ScoresEntry+ in+ Data.Map.fromList+ [(Data.ProtoLens.Tag 1, key__field_descriptor),+ (Data.ProtoLens.Tag 2, value__field_descriptor)]+ unknownFields+ = Lens.Family2.Unchecked.lens+ _QueryScoresResponse'HeuristicResult'ScoresEntry'_unknownFields+ (\ x__ y__+ -> x__+ {_QueryScoresResponse'HeuristicResult'ScoresEntry'_unknownFields = y__})+ defMessage+ = QueryScoresResponse'HeuristicResult'ScoresEntry'_constructor+ {_QueryScoresResponse'HeuristicResult'ScoresEntry'key = Data.ProtoLens.fieldDefault,+ _QueryScoresResponse'HeuristicResult'ScoresEntry'value = Data.ProtoLens.fieldDefault,+ _QueryScoresResponse'HeuristicResult'ScoresEntry'_unknownFields = []}+ parseMessage+ = let+ loop ::+ QueryScoresResponse'HeuristicResult'ScoresEntry+ -> Data.ProtoLens.Encoding.Bytes.Parser QueryScoresResponse'HeuristicResult'ScoresEntry+ loop x+ = do end <- Data.ProtoLens.Encoding.Bytes.atEnd+ if end then+ do (let missing = []+ in+ if Prelude.null missing then+ Prelude.return ()+ else+ Prelude.fail+ ((Prelude.++)+ "Missing required fields: "+ (Prelude.show (missing :: [Prelude.String]))))+ Prelude.return+ (Lens.Family2.over+ Data.ProtoLens.unknownFields (\ !t -> Prelude.reverse t) x)+ else+ do tag <- Data.ProtoLens.Encoding.Bytes.getVarInt+ case tag of+ 10+ -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (do value <- do len <- Data.ProtoLens.Encoding.Bytes.getVarInt+ Data.ProtoLens.Encoding.Bytes.getBytes+ (Prelude.fromIntegral len)+ Data.ProtoLens.Encoding.Bytes.runEither+ (case Data.Text.Encoding.decodeUtf8' value of+ (Prelude.Left err)+ -> Prelude.Left (Prelude.show err)+ (Prelude.Right r) -> Prelude.Right r))+ "key"+ loop (Lens.Family2.set (Data.ProtoLens.Field.field @"key") y x)+ 17+ -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (Prelude.fmap+ Data.ProtoLens.Encoding.Bytes.wordToDouble+ Data.ProtoLens.Encoding.Bytes.getFixed64)+ "value"+ loop (Lens.Family2.set (Data.ProtoLens.Field.field @"value") y x)+ wire+ -> do !y <- Data.ProtoLens.Encoding.Wire.parseTaggedValueFromWire+ wire+ loop+ (Lens.Family2.over+ Data.ProtoLens.unknownFields (\ !t -> (:) y t) x)+ in+ (Data.ProtoLens.Encoding.Bytes.<?>)+ (do loop Data.ProtoLens.defMessage) "ScoresEntry"+ buildMessage+ = \ _x+ -> (Data.Monoid.<>)+ (let _v = Lens.Family2.view (Data.ProtoLens.Field.field @"key") _x+ in+ if (Prelude.==) _v Data.ProtoLens.fieldDefault then+ Data.Monoid.mempty+ else+ (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 10)+ ((Prelude..)+ (\ bs+ -> (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt+ (Prelude.fromIntegral (Data.ByteString.length bs)))+ (Data.ProtoLens.Encoding.Bytes.putBytes bs))+ Data.Text.Encoding.encodeUtf8 _v))+ ((Data.Monoid.<>)+ (let+ _v = Lens.Family2.view (Data.ProtoLens.Field.field @"value") _x+ in+ if (Prelude.==) _v Data.ProtoLens.fieldDefault then+ Data.Monoid.mempty+ else+ (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 17)+ ((Prelude..)+ Data.ProtoLens.Encoding.Bytes.putFixed64+ Data.ProtoLens.Encoding.Bytes.doubleToWord _v))+ (Data.ProtoLens.Encoding.Wire.buildFieldSet+ (Lens.Family2.view Data.ProtoLens.unknownFields _x)))+instance Control.DeepSeq.NFData QueryScoresResponse'HeuristicResult'ScoresEntry where+ rnf+ = \ x__+ -> Control.DeepSeq.deepseq+ (_QueryScoresResponse'HeuristicResult'ScoresEntry'_unknownFields+ x__)+ (Control.DeepSeq.deepseq+ (_QueryScoresResponse'HeuristicResult'ScoresEntry'key x__)+ (Control.DeepSeq.deepseq+ (_QueryScoresResponse'HeuristicResult'ScoresEntry'value x__) ()))+{- | Fields :+ + * 'Proto.Autopilotrpc.Autopilot_Fields.heuristic' @:: Lens' SetScoresRequest Data.Text.Text@+ * 'Proto.Autopilotrpc.Autopilot_Fields.scores' @:: Lens' SetScoresRequest (Data.Map.Map Data.Text.Text Prelude.Double)@ -}+data SetScoresRequest+ = SetScoresRequest'_constructor {_SetScoresRequest'heuristic :: !Data.Text.Text,+ _SetScoresRequest'scores :: !(Data.Map.Map Data.Text.Text Prelude.Double),+ _SetScoresRequest'_unknownFields :: !Data.ProtoLens.FieldSet}+ deriving stock (Prelude.Eq, Prelude.Ord, GHC.Generics.Generic)+instance Prelude.Show SetScoresRequest where+ showsPrec _ __x __s+ = Prelude.showChar+ '{'+ (Prelude.showString+ (Data.ProtoLens.showMessageShort __x) (Prelude.showChar '}' __s))+instance Text.PrettyPrint.GenericPretty.Out SetScoresRequest+instance Data.ProtoLens.Field.HasField SetScoresRequest "heuristic" Data.Text.Text where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _SetScoresRequest'heuristic+ (\ x__ y__ -> x__ {_SetScoresRequest'heuristic = y__}))+ Prelude.id+instance Data.ProtoLens.Field.HasField SetScoresRequest "scores" (Data.Map.Map Data.Text.Text Prelude.Double) where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _SetScoresRequest'scores+ (\ x__ y__ -> x__ {_SetScoresRequest'scores = y__}))+ Prelude.id+instance Data.ProtoLens.Message SetScoresRequest where+ messageName _ = Data.Text.pack "autopilotrpc.SetScoresRequest"+ packedMessageDescriptor _+ = "\n\+ \\DLESetScoresRequest\DC2\FS\n\+ \\theuristic\CAN\SOH \SOH(\tR\theuristic\DC2B\n\+ \\ACKscores\CAN\STX \ETX(\v2*.autopilotrpc.SetScoresRequest.ScoresEntryR\ACKscores\SUB9\n\+ \\vScoresEntry\DC2\DLE\n\+ \\ETXkey\CAN\SOH \SOH(\tR\ETXkey\DC2\DC4\n\+ \\ENQvalue\CAN\STX \SOH(\SOHR\ENQvalue:\STX8\SOH"+ packedFileDescriptor _ = packedFileDescriptor+ fieldsByTag+ = let+ heuristic__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "heuristic"+ (Data.ProtoLens.ScalarField Data.ProtoLens.StringField ::+ Data.ProtoLens.FieldTypeDescriptor Data.Text.Text)+ (Data.ProtoLens.PlainField+ Data.ProtoLens.Optional+ (Data.ProtoLens.Field.field @"heuristic")) ::+ Data.ProtoLens.FieldDescriptor SetScoresRequest+ scores__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "scores"+ (Data.ProtoLens.MessageField Data.ProtoLens.MessageType ::+ Data.ProtoLens.FieldTypeDescriptor SetScoresRequest'ScoresEntry)+ (Data.ProtoLens.MapField+ (Data.ProtoLens.Field.field @"key")+ (Data.ProtoLens.Field.field @"value")+ (Data.ProtoLens.Field.field @"scores")) ::+ Data.ProtoLens.FieldDescriptor SetScoresRequest+ in+ Data.Map.fromList+ [(Data.ProtoLens.Tag 1, heuristic__field_descriptor),+ (Data.ProtoLens.Tag 2, scores__field_descriptor)]+ unknownFields+ = Lens.Family2.Unchecked.lens+ _SetScoresRequest'_unknownFields+ (\ x__ y__ -> x__ {_SetScoresRequest'_unknownFields = y__})+ defMessage+ = SetScoresRequest'_constructor+ {_SetScoresRequest'heuristic = Data.ProtoLens.fieldDefault,+ _SetScoresRequest'scores = Data.Map.empty,+ _SetScoresRequest'_unknownFields = []}+ parseMessage+ = let+ loop ::+ SetScoresRequest+ -> Data.ProtoLens.Encoding.Bytes.Parser SetScoresRequest+ loop x+ = do end <- Data.ProtoLens.Encoding.Bytes.atEnd+ if end then+ do (let missing = []+ in+ if Prelude.null missing then+ Prelude.return ()+ else+ Prelude.fail+ ((Prelude.++)+ "Missing required fields: "+ (Prelude.show (missing :: [Prelude.String]))))+ Prelude.return+ (Lens.Family2.over+ Data.ProtoLens.unknownFields (\ !t -> Prelude.reverse t) x)+ else+ do tag <- Data.ProtoLens.Encoding.Bytes.getVarInt+ case tag of+ 10+ -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (do value <- do len <- Data.ProtoLens.Encoding.Bytes.getVarInt+ Data.ProtoLens.Encoding.Bytes.getBytes+ (Prelude.fromIntegral len)+ Data.ProtoLens.Encoding.Bytes.runEither+ (case Data.Text.Encoding.decodeUtf8' value of+ (Prelude.Left err)+ -> Prelude.Left (Prelude.show err)+ (Prelude.Right r) -> Prelude.Right r))+ "heuristic"+ loop+ (Lens.Family2.set (Data.ProtoLens.Field.field @"heuristic") y x)+ 18+ -> do !(entry :: SetScoresRequest'ScoresEntry) <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (do len <- Data.ProtoLens.Encoding.Bytes.getVarInt+ Data.ProtoLens.Encoding.Bytes.isolate+ (Prelude.fromIntegral+ len)+ Data.ProtoLens.parseMessage)+ "scores"+ (let+ key = Lens.Family2.view (Data.ProtoLens.Field.field @"key") entry+ value+ = Lens.Family2.view (Data.ProtoLens.Field.field @"value") entry+ in+ loop+ (Lens.Family2.over+ (Data.ProtoLens.Field.field @"scores")+ (\ !t -> Data.Map.insert key value t) x))+ wire+ -> do !y <- Data.ProtoLens.Encoding.Wire.parseTaggedValueFromWire+ wire+ loop+ (Lens.Family2.over+ Data.ProtoLens.unknownFields (\ !t -> (:) y t) x)+ in+ (Data.ProtoLens.Encoding.Bytes.<?>)+ (do loop Data.ProtoLens.defMessage) "SetScoresRequest"+ buildMessage+ = \ _x+ -> (Data.Monoid.<>)+ (let+ _v = Lens.Family2.view (Data.ProtoLens.Field.field @"heuristic") _x+ in+ if (Prelude.==) _v Data.ProtoLens.fieldDefault then+ Data.Monoid.mempty+ else+ (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 10)+ ((Prelude..)+ (\ bs+ -> (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt+ (Prelude.fromIntegral (Data.ByteString.length bs)))+ (Data.ProtoLens.Encoding.Bytes.putBytes bs))+ Data.Text.Encoding.encodeUtf8 _v))+ ((Data.Monoid.<>)+ (Data.Monoid.mconcat+ (Prelude.map+ (\ _v+ -> (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 18)+ ((Prelude..)+ (\ bs+ -> (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt+ (Prelude.fromIntegral (Data.ByteString.length bs)))+ (Data.ProtoLens.Encoding.Bytes.putBytes bs))+ Data.ProtoLens.encodeMessage+ (Lens.Family2.set+ (Data.ProtoLens.Field.field @"key") (Prelude.fst _v)+ (Lens.Family2.set+ (Data.ProtoLens.Field.field @"value") (Prelude.snd _v)+ (Data.ProtoLens.defMessage ::+ SetScoresRequest'ScoresEntry)))))+ (Data.Map.toList+ (Lens.Family2.view (Data.ProtoLens.Field.field @"scores") _x))))+ (Data.ProtoLens.Encoding.Wire.buildFieldSet+ (Lens.Family2.view Data.ProtoLens.unknownFields _x)))+instance Control.DeepSeq.NFData SetScoresRequest where+ rnf+ = \ x__+ -> Control.DeepSeq.deepseq+ (_SetScoresRequest'_unknownFields x__)+ (Control.DeepSeq.deepseq+ (_SetScoresRequest'heuristic x__)+ (Control.DeepSeq.deepseq (_SetScoresRequest'scores x__) ()))+{- | Fields :+ + * 'Proto.Autopilotrpc.Autopilot_Fields.key' @:: Lens' SetScoresRequest'ScoresEntry Data.Text.Text@+ * 'Proto.Autopilotrpc.Autopilot_Fields.value' @:: Lens' SetScoresRequest'ScoresEntry Prelude.Double@ -}+data SetScoresRequest'ScoresEntry+ = SetScoresRequest'ScoresEntry'_constructor {_SetScoresRequest'ScoresEntry'key :: !Data.Text.Text,+ _SetScoresRequest'ScoresEntry'value :: !Prelude.Double,+ _SetScoresRequest'ScoresEntry'_unknownFields :: !Data.ProtoLens.FieldSet}+ deriving stock (Prelude.Eq, Prelude.Ord, GHC.Generics.Generic)+instance Prelude.Show SetScoresRequest'ScoresEntry where+ showsPrec _ __x __s+ = Prelude.showChar+ '{'+ (Prelude.showString+ (Data.ProtoLens.showMessageShort __x) (Prelude.showChar '}' __s))+instance Text.PrettyPrint.GenericPretty.Out SetScoresRequest'ScoresEntry+instance Data.ProtoLens.Field.HasField SetScoresRequest'ScoresEntry "key" Data.Text.Text where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _SetScoresRequest'ScoresEntry'key+ (\ x__ y__ -> x__ {_SetScoresRequest'ScoresEntry'key = y__}))+ Prelude.id+instance Data.ProtoLens.Field.HasField SetScoresRequest'ScoresEntry "value" Prelude.Double where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _SetScoresRequest'ScoresEntry'value+ (\ x__ y__ -> x__ {_SetScoresRequest'ScoresEntry'value = y__}))+ Prelude.id+instance Data.ProtoLens.Message SetScoresRequest'ScoresEntry where+ messageName _+ = Data.Text.pack "autopilotrpc.SetScoresRequest.ScoresEntry"+ packedMessageDescriptor _+ = "\n\+ \\vScoresEntry\DC2\DLE\n\+ \\ETXkey\CAN\SOH \SOH(\tR\ETXkey\DC2\DC4\n\+ \\ENQvalue\CAN\STX \SOH(\SOHR\ENQvalue:\STX8\SOH"+ packedFileDescriptor _ = packedFileDescriptor+ fieldsByTag+ = let+ key__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "key"+ (Data.ProtoLens.ScalarField Data.ProtoLens.StringField ::+ Data.ProtoLens.FieldTypeDescriptor Data.Text.Text)+ (Data.ProtoLens.PlainField+ Data.ProtoLens.Optional (Data.ProtoLens.Field.field @"key")) ::+ Data.ProtoLens.FieldDescriptor SetScoresRequest'ScoresEntry+ value__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "value"+ (Data.ProtoLens.ScalarField Data.ProtoLens.DoubleField ::+ Data.ProtoLens.FieldTypeDescriptor Prelude.Double)+ (Data.ProtoLens.PlainField+ Data.ProtoLens.Optional (Data.ProtoLens.Field.field @"value")) ::+ Data.ProtoLens.FieldDescriptor SetScoresRequest'ScoresEntry+ in+ Data.Map.fromList+ [(Data.ProtoLens.Tag 1, key__field_descriptor),+ (Data.ProtoLens.Tag 2, value__field_descriptor)]+ unknownFields+ = Lens.Family2.Unchecked.lens+ _SetScoresRequest'ScoresEntry'_unknownFields+ (\ x__ y__+ -> x__ {_SetScoresRequest'ScoresEntry'_unknownFields = y__})+ defMessage+ = SetScoresRequest'ScoresEntry'_constructor+ {_SetScoresRequest'ScoresEntry'key = Data.ProtoLens.fieldDefault,+ _SetScoresRequest'ScoresEntry'value = Data.ProtoLens.fieldDefault,+ _SetScoresRequest'ScoresEntry'_unknownFields = []}+ parseMessage+ = let+ loop ::+ SetScoresRequest'ScoresEntry+ -> Data.ProtoLens.Encoding.Bytes.Parser SetScoresRequest'ScoresEntry+ loop x+ = do end <- Data.ProtoLens.Encoding.Bytes.atEnd+ if end then+ do (let missing = []+ in+ if Prelude.null missing then+ Prelude.return ()+ else+ Prelude.fail+ ((Prelude.++)+ "Missing required fields: "+ (Prelude.show (missing :: [Prelude.String]))))+ Prelude.return+ (Lens.Family2.over+ Data.ProtoLens.unknownFields (\ !t -> Prelude.reverse t) x)+ else+ do tag <- Data.ProtoLens.Encoding.Bytes.getVarInt+ case tag of+ 10+ -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (do value <- do len <- Data.ProtoLens.Encoding.Bytes.getVarInt+ Data.ProtoLens.Encoding.Bytes.getBytes+ (Prelude.fromIntegral len)+ Data.ProtoLens.Encoding.Bytes.runEither+ (case Data.Text.Encoding.decodeUtf8' value of+ (Prelude.Left err)+ -> Prelude.Left (Prelude.show err)+ (Prelude.Right r) -> Prelude.Right r))+ "key"+ loop (Lens.Family2.set (Data.ProtoLens.Field.field @"key") y x)+ 17+ -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (Prelude.fmap+ Data.ProtoLens.Encoding.Bytes.wordToDouble+ Data.ProtoLens.Encoding.Bytes.getFixed64)+ "value"+ loop (Lens.Family2.set (Data.ProtoLens.Field.field @"value") y x)+ wire+ -> do !y <- Data.ProtoLens.Encoding.Wire.parseTaggedValueFromWire+ wire+ loop+ (Lens.Family2.over+ Data.ProtoLens.unknownFields (\ !t -> (:) y t) x)+ in+ (Data.ProtoLens.Encoding.Bytes.<?>)+ (do loop Data.ProtoLens.defMessage) "ScoresEntry"+ buildMessage+ = \ _x+ -> (Data.Monoid.<>)+ (let _v = Lens.Family2.view (Data.ProtoLens.Field.field @"key") _x+ in+ if (Prelude.==) _v Data.ProtoLens.fieldDefault then+ Data.Monoid.mempty+ else+ (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 10)+ ((Prelude..)+ (\ bs+ -> (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt+ (Prelude.fromIntegral (Data.ByteString.length bs)))+ (Data.ProtoLens.Encoding.Bytes.putBytes bs))+ Data.Text.Encoding.encodeUtf8 _v))+ ((Data.Monoid.<>)+ (let+ _v = Lens.Family2.view (Data.ProtoLens.Field.field @"value") _x+ in+ if (Prelude.==) _v Data.ProtoLens.fieldDefault then+ Data.Monoid.mempty+ else+ (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 17)+ ((Prelude..)+ Data.ProtoLens.Encoding.Bytes.putFixed64+ Data.ProtoLens.Encoding.Bytes.doubleToWord _v))+ (Data.ProtoLens.Encoding.Wire.buildFieldSet+ (Lens.Family2.view Data.ProtoLens.unknownFields _x)))+instance Control.DeepSeq.NFData SetScoresRequest'ScoresEntry where+ rnf+ = \ x__+ -> Control.DeepSeq.deepseq+ (_SetScoresRequest'ScoresEntry'_unknownFields x__)+ (Control.DeepSeq.deepseq+ (_SetScoresRequest'ScoresEntry'key x__)+ (Control.DeepSeq.deepseq+ (_SetScoresRequest'ScoresEntry'value x__) ()))+{- | Fields :+ -}+data SetScoresResponse+ = SetScoresResponse'_constructor {_SetScoresResponse'_unknownFields :: !Data.ProtoLens.FieldSet}+ deriving stock (Prelude.Eq, Prelude.Ord, GHC.Generics.Generic)+instance Prelude.Show SetScoresResponse where+ showsPrec _ __x __s+ = Prelude.showChar+ '{'+ (Prelude.showString+ (Data.ProtoLens.showMessageShort __x) (Prelude.showChar '}' __s))+instance Text.PrettyPrint.GenericPretty.Out SetScoresResponse+instance Data.ProtoLens.Message SetScoresResponse where+ messageName _ = Data.Text.pack "autopilotrpc.SetScoresResponse"+ packedMessageDescriptor _+ = "\n\+ \\DC1SetScoresResponse"+ packedFileDescriptor _ = packedFileDescriptor+ fieldsByTag = let in Data.Map.fromList []+ unknownFields+ = Lens.Family2.Unchecked.lens+ _SetScoresResponse'_unknownFields+ (\ x__ y__ -> x__ {_SetScoresResponse'_unknownFields = y__})+ defMessage+ = SetScoresResponse'_constructor+ {_SetScoresResponse'_unknownFields = []}+ parseMessage+ = let+ loop ::+ SetScoresResponse+ -> Data.ProtoLens.Encoding.Bytes.Parser SetScoresResponse+ loop x+ = do end <- Data.ProtoLens.Encoding.Bytes.atEnd+ if end then+ do (let missing = []+ in+ if Prelude.null missing then+ Prelude.return ()+ else+ Prelude.fail+ ((Prelude.++)+ "Missing required fields: "+ (Prelude.show (missing :: [Prelude.String]))))+ Prelude.return+ (Lens.Family2.over+ Data.ProtoLens.unknownFields (\ !t -> Prelude.reverse t) x)+ else+ do tag <- Data.ProtoLens.Encoding.Bytes.getVarInt+ case tag of {+ wire+ -> do !y <- Data.ProtoLens.Encoding.Wire.parseTaggedValueFromWire+ wire+ loop+ (Lens.Family2.over+ Data.ProtoLens.unknownFields (\ !t -> (:) y t) x) }+ in+ (Data.ProtoLens.Encoding.Bytes.<?>)+ (do loop Data.ProtoLens.defMessage) "SetScoresResponse"+ buildMessage+ = \ _x+ -> Data.ProtoLens.Encoding.Wire.buildFieldSet+ (Lens.Family2.view Data.ProtoLens.unknownFields _x)+instance Control.DeepSeq.NFData SetScoresResponse where+ rnf+ = \ x__+ -> Control.DeepSeq.deepseq+ (_SetScoresResponse'_unknownFields x__) ()+{- | Fields :+ -}+data StatusRequest+ = StatusRequest'_constructor {_StatusRequest'_unknownFields :: !Data.ProtoLens.FieldSet}+ deriving stock (Prelude.Eq, Prelude.Ord, GHC.Generics.Generic)+instance Prelude.Show StatusRequest where+ showsPrec _ __x __s+ = Prelude.showChar+ '{'+ (Prelude.showString+ (Data.ProtoLens.showMessageShort __x) (Prelude.showChar '}' __s))+instance Text.PrettyPrint.GenericPretty.Out StatusRequest+instance Data.ProtoLens.Message StatusRequest where+ messageName _ = Data.Text.pack "autopilotrpc.StatusRequest"+ packedMessageDescriptor _+ = "\n\+ \\rStatusRequest"+ packedFileDescriptor _ = packedFileDescriptor+ fieldsByTag = let in Data.Map.fromList []+ unknownFields+ = Lens.Family2.Unchecked.lens+ _StatusRequest'_unknownFields+ (\ x__ y__ -> x__ {_StatusRequest'_unknownFields = y__})+ defMessage+ = StatusRequest'_constructor {_StatusRequest'_unknownFields = []}+ parseMessage+ = let+ loop ::+ StatusRequest -> Data.ProtoLens.Encoding.Bytes.Parser StatusRequest+ loop x+ = do end <- Data.ProtoLens.Encoding.Bytes.atEnd+ if end then+ do (let missing = []+ in+ if Prelude.null missing then+ Prelude.return ()+ else+ Prelude.fail+ ((Prelude.++)+ "Missing required fields: "+ (Prelude.show (missing :: [Prelude.String]))))+ Prelude.return+ (Lens.Family2.over+ Data.ProtoLens.unknownFields (\ !t -> Prelude.reverse t) x)+ else+ do tag <- Data.ProtoLens.Encoding.Bytes.getVarInt+ case tag of {+ wire+ -> do !y <- Data.ProtoLens.Encoding.Wire.parseTaggedValueFromWire+ wire+ loop+ (Lens.Family2.over+ Data.ProtoLens.unknownFields (\ !t -> (:) y t) x) }+ in+ (Data.ProtoLens.Encoding.Bytes.<?>)+ (do loop Data.ProtoLens.defMessage) "StatusRequest"+ buildMessage+ = \ _x+ -> Data.ProtoLens.Encoding.Wire.buildFieldSet+ (Lens.Family2.view Data.ProtoLens.unknownFields _x)+instance Control.DeepSeq.NFData StatusRequest where+ rnf+ = \ x__+ -> Control.DeepSeq.deepseq (_StatusRequest'_unknownFields x__) ()+{- | Fields :+ + * 'Proto.Autopilotrpc.Autopilot_Fields.active' @:: Lens' StatusResponse Prelude.Bool@ -}+data StatusResponse+ = StatusResponse'_constructor {_StatusResponse'active :: !Prelude.Bool,+ _StatusResponse'_unknownFields :: !Data.ProtoLens.FieldSet}+ deriving stock (Prelude.Eq, Prelude.Ord, GHC.Generics.Generic)+instance Prelude.Show StatusResponse where+ showsPrec _ __x __s+ = Prelude.showChar+ '{'+ (Prelude.showString+ (Data.ProtoLens.showMessageShort __x) (Prelude.showChar '}' __s))+instance Text.PrettyPrint.GenericPretty.Out StatusResponse+instance Data.ProtoLens.Field.HasField StatusResponse "active" Prelude.Bool where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _StatusResponse'active+ (\ x__ y__ -> x__ {_StatusResponse'active = y__}))+ Prelude.id+instance Data.ProtoLens.Message StatusResponse where+ messageName _ = Data.Text.pack "autopilotrpc.StatusResponse"+ packedMessageDescriptor _+ = "\n\+ \\SOStatusResponse\DC2\SYN\n\+ \\ACKactive\CAN\SOH \SOH(\bR\ACKactive"+ packedFileDescriptor _ = packedFileDescriptor+ fieldsByTag+ = let+ active__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "active"+ (Data.ProtoLens.ScalarField Data.ProtoLens.BoolField ::+ Data.ProtoLens.FieldTypeDescriptor Prelude.Bool)+ (Data.ProtoLens.PlainField+ Data.ProtoLens.Optional (Data.ProtoLens.Field.field @"active")) ::+ Data.ProtoLens.FieldDescriptor StatusResponse+ in+ Data.Map.fromList+ [(Data.ProtoLens.Tag 1, active__field_descriptor)]+ unknownFields+ = Lens.Family2.Unchecked.lens+ _StatusResponse'_unknownFields+ (\ x__ y__ -> x__ {_StatusResponse'_unknownFields = y__})+ defMessage+ = StatusResponse'_constructor+ {_StatusResponse'active = Data.ProtoLens.fieldDefault,+ _StatusResponse'_unknownFields = []}+ parseMessage+ = let+ loop ::+ StatusResponse+ -> Data.ProtoLens.Encoding.Bytes.Parser StatusResponse+ loop x+ = do end <- Data.ProtoLens.Encoding.Bytes.atEnd+ if end then+ do (let missing = []+ in+ if Prelude.null missing then+ Prelude.return ()+ else+ Prelude.fail+ ((Prelude.++)+ "Missing required fields: "+ (Prelude.show (missing :: [Prelude.String]))))+ Prelude.return+ (Lens.Family2.over+ Data.ProtoLens.unknownFields (\ !t -> Prelude.reverse t) x)+ else+ do tag <- Data.ProtoLens.Encoding.Bytes.getVarInt+ case tag of+ 8 -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (Prelude.fmap+ ((Prelude./=) 0) Data.ProtoLens.Encoding.Bytes.getVarInt)+ "active"+ loop (Lens.Family2.set (Data.ProtoLens.Field.field @"active") y x)+ wire+ -> do !y <- Data.ProtoLens.Encoding.Wire.parseTaggedValueFromWire+ wire+ loop+ (Lens.Family2.over+ Data.ProtoLens.unknownFields (\ !t -> (:) y t) x)+ in+ (Data.ProtoLens.Encoding.Bytes.<?>)+ (do loop Data.ProtoLens.defMessage) "StatusResponse"+ buildMessage+ = \ _x+ -> (Data.Monoid.<>)+ (let+ _v = Lens.Family2.view (Data.ProtoLens.Field.field @"active") _x+ in+ if (Prelude.==) _v Data.ProtoLens.fieldDefault then+ Data.Monoid.mempty+ else+ (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 8)+ ((Prelude..)+ Data.ProtoLens.Encoding.Bytes.putVarInt (\ b -> if b then 1 else 0)+ _v))+ (Data.ProtoLens.Encoding.Wire.buildFieldSet+ (Lens.Family2.view Data.ProtoLens.unknownFields _x))+instance Control.DeepSeq.NFData StatusResponse where+ rnf+ = \ x__+ -> Control.DeepSeq.deepseq+ (_StatusResponse'_unknownFields x__)+ (Control.DeepSeq.deepseq (_StatusResponse'active x__) ())+data Autopilot = Autopilot {}+instance Data.ProtoLens.Service.Types.Service Autopilot where+ type ServiceName Autopilot = "Autopilot"+ type ServicePackage Autopilot = "autopilotrpc"+ type ServiceMethods Autopilot = '["modifyStatus",+ "queryScores",+ "setScores",+ "status"]+ packedServiceDescriptor _+ = "\n\+ \\tAutopilot\DC2C\n\+ \\ACKStatus\DC2\ESC.autopilotrpc.StatusRequest\SUB\FS.autopilotrpc.StatusResponse\DC2U\n\+ \\fModifyStatus\DC2!.autopilotrpc.ModifyStatusRequest\SUB\".autopilotrpc.ModifyStatusResponse\DC2R\n\+ \\vQueryScores\DC2 .autopilotrpc.QueryScoresRequest\SUB!.autopilotrpc.QueryScoresResponse\DC2L\n\+ \\tSetScores\DC2\RS.autopilotrpc.SetScoresRequest\SUB\US.autopilotrpc.SetScoresResponse"+instance Data.ProtoLens.Service.Types.HasMethodImpl Autopilot "status" where+ type MethodName Autopilot "status" = "Status"+ type MethodInput Autopilot "status" = StatusRequest+ type MethodOutput Autopilot "status" = StatusResponse+ type MethodStreamingType Autopilot "status" = 'Data.ProtoLens.Service.Types.NonStreaming+instance Data.ProtoLens.Service.Types.HasMethodImpl Autopilot "modifyStatus" where+ type MethodName Autopilot "modifyStatus" = "ModifyStatus"+ type MethodInput Autopilot "modifyStatus" = ModifyStatusRequest+ type MethodOutput Autopilot "modifyStatus" = ModifyStatusResponse+ type MethodStreamingType Autopilot "modifyStatus" = 'Data.ProtoLens.Service.Types.NonStreaming+instance Data.ProtoLens.Service.Types.HasMethodImpl Autopilot "queryScores" where+ type MethodName Autopilot "queryScores" = "QueryScores"+ type MethodInput Autopilot "queryScores" = QueryScoresRequest+ type MethodOutput Autopilot "queryScores" = QueryScoresResponse+ type MethodStreamingType Autopilot "queryScores" = 'Data.ProtoLens.Service.Types.NonStreaming+instance Data.ProtoLens.Service.Types.HasMethodImpl Autopilot "setScores" where+ type MethodName Autopilot "setScores" = "SetScores"+ type MethodInput Autopilot "setScores" = SetScoresRequest+ type MethodOutput Autopilot "setScores" = SetScoresResponse+ type MethodStreamingType Autopilot "setScores" = 'Data.ProtoLens.Service.Types.NonStreaming+packedFileDescriptor :: Data.ByteString.ByteString+packedFileDescriptor+ = "\n\+ \\FSautopilotrpc/autopilot.proto\DC2\fautopilotrpc\"\SI\n\+ \\rStatusRequest\"(\n\+ \\SOStatusResponse\DC2\SYN\n\+ \\ACKactive\CAN\SOH \SOH(\bR\ACKactive\"-\n\+ \\DC3ModifyStatusRequest\DC2\SYN\n\+ \\ACKenable\CAN\SOH \SOH(\bR\ACKenable\"\SYN\n\+ \\DC4ModifyStatusResponse\"\\\n\+ \\DC2QueryScoresRequest\DC2\CAN\n\+ \\apubkeys\CAN\SOH \ETX(\tR\apubkeys\DC2,\n\+ \\DC2ignore_local_state\CAN\STX \SOH(\bR\DLEignoreLocalState\"\166\STX\n\+ \\DC3QueryScoresResponse\DC2K\n\+ \\aresults\CAN\SOH \ETX(\v21.autopilotrpc.QueryScoresResponse.HeuristicResultR\aresults\SUB\193\SOH\n\+ \\SIHeuristicResult\DC2\FS\n\+ \\theuristic\CAN\SOH \SOH(\tR\theuristic\DC2U\n\+ \\ACKscores\CAN\STX \ETX(\v2=.autopilotrpc.QueryScoresResponse.HeuristicResult.ScoresEntryR\ACKscores\SUB9\n\+ \\vScoresEntry\DC2\DLE\n\+ \\ETXkey\CAN\SOH \SOH(\tR\ETXkey\DC2\DC4\n\+ \\ENQvalue\CAN\STX \SOH(\SOHR\ENQvalue:\STX8\SOH\"\175\SOH\n\+ \\DLESetScoresRequest\DC2\FS\n\+ \\theuristic\CAN\SOH \SOH(\tR\theuristic\DC2B\n\+ \\ACKscores\CAN\STX \ETX(\v2*.autopilotrpc.SetScoresRequest.ScoresEntryR\ACKscores\SUB9\n\+ \\vScoresEntry\DC2\DLE\n\+ \\ETXkey\CAN\SOH \SOH(\tR\ETXkey\DC2\DC4\n\+ \\ENQvalue\CAN\STX \SOH(\SOHR\ENQvalue:\STX8\SOH\"\DC3\n\+ \\DC1SetScoresResponse2\201\STX\n\+ \\tAutopilot\DC2C\n\+ \\ACKStatus\DC2\ESC.autopilotrpc.StatusRequest\SUB\FS.autopilotrpc.StatusResponse\DC2U\n\+ \\fModifyStatus\DC2!.autopilotrpc.ModifyStatusRequest\SUB\".autopilotrpc.ModifyStatusResponse\DC2R\n\+ \\vQueryScores\DC2 .autopilotrpc.QueryScoresRequest\SUB!.autopilotrpc.QueryScoresResponse\DC2L\n\+ \\tSetScores\DC2\RS.autopilotrpc.SetScoresRequest\SUB\US.autopilotrpc.SetScoresResponseB4Z2github.com/lightningnetwork/lnd/lnrpc/autopilotrpcJ\133\DLE\n\+ \\ACK\DC2\EOT\NUL\NULO\SOH\n\+ \\b\n\+ \\SOH\f\DC2\ETX\NUL\NUL\DC2\n\+ \\b\n\+ \\SOH\STX\DC2\ETX\STX\NUL\NAK\n\+ \\b\n\+ \\SOH\b\DC2\ETX\EOT\NULI\n\+ \\t\n\+ \\STX\b\v\DC2\ETX\EOT\NULI\n\+ \\223\SOH\n\+ \\STX\ACK\NUL\DC2\EOT\t\NUL!\SOH\SUB\210\SOH Autopilot is a service that can be used to get information about the current\n\+ \ state of the daemon's autopilot agent, and also supply it with information\n\+ \ that can be used when deciding where to open channels.\n\+ \\n\+ \\n\+ \\n\+ \\ETX\ACK\NUL\SOH\DC2\ETX\t\b\DC1\n\+ \M\n\+ \\EOT\ACK\NUL\STX\NUL\DC2\ETX\r\EOT8\SUB@\n\+ \Status returns whether the daemon's autopilot agent is active.\n\+ \\n\+ \\f\n\+ \\ENQ\ACK\NUL\STX\NUL\SOH\DC2\ETX\r\b\SO\n\+ \\f\n\+ \\ENQ\ACK\NUL\STX\NUL\STX\DC2\ETX\r\DLE\GS\n\+ \\f\n\+ \\ENQ\ACK\NUL\STX\NUL\ETX\DC2\ETX\r(6\n\+ \o\n\+ \\EOT\ACK\NUL\STX\SOH\DC2\ETX\DC3\EOTJ\SUBb\n\+ \ModifyStatus is used to modify the status of the autopilot agent, like\n\+ \enabling or disabling it.\n\+ \\n\+ \\f\n\+ \\ENQ\ACK\NUL\STX\SOH\SOH\DC2\ETX\DC3\b\DC4\n\+ \\f\n\+ \\ENQ\ACK\NUL\STX\SOH\STX\DC2\ETX\DC3\SYN)\n\+ \\f\n\+ \\ENQ\ACK\NUL\STX\SOH\ETX\DC2\ETX\DC34H\n\+ \\182\SOH\n\+ \\EOT\ACK\NUL\STX\STX\DC2\ETX\SUB\EOTG\SUB\168\SOH\n\+ \QueryScores queries all available autopilot heuristics, in addition to any\n\+ \active combination of these heruristics, for the scores they would give to\n\+ \the given nodes.\n\+ \\n\+ \\f\n\+ \\ENQ\ACK\NUL\STX\STX\SOH\DC2\ETX\SUB\b\DC3\n\+ \\f\n\+ \\ENQ\ACK\NUL\STX\STX\STX\DC2\ETX\SUB\NAK'\n\+ \\f\n\+ \\ENQ\ACK\NUL\STX\STX\ETX\DC2\ETX\SUB2E\n\+ \\134\SOH\n\+ \\EOT\ACK\NUL\STX\ETX\DC2\ETX \EOTA\SUBy\n\+ \SetScores attempts to set the scores used by the running autopilot agent,\n\+ \if the external scoring heuristic is enabled.\n\+ \\n\+ \\f\n\+ \\ENQ\ACK\NUL\STX\ETX\SOH\DC2\ETX \b\DC1\n\+ \\f\n\+ \\ENQ\ACK\NUL\STX\ETX\STX\DC2\ETX \DC3#\n\+ \\f\n\+ \\ENQ\ACK\NUL\STX\ETX\ETX\DC2\ETX .?\n\+ \\n\+ \\n\+ \\STX\EOT\NUL\DC2\EOT#\NUL$\SOH\n\+ \\n\+ \\n\+ \\ETX\EOT\NUL\SOH\DC2\ETX#\b\NAK\n\+ \\n\+ \\n\+ \\STX\EOT\SOH\DC2\EOT&\NUL)\SOH\n\+ \\n\+ \\n\+ \\ETX\EOT\SOH\SOH\DC2\ETX&\b\SYN\n\+ \@\n\+ \\EOT\EOT\SOH\STX\NUL\DC2\ETX(\EOT\DC4\SUB3 Indicates whether the autopilot is active or not.\n\+ \\n\+ \\f\n\+ \\ENQ\EOT\SOH\STX\NUL\ENQ\DC2\ETX(\EOT\b\n\+ \\f\n\+ \\ENQ\EOT\SOH\STX\NUL\SOH\DC2\ETX(\t\SI\n\+ \\f\n\+ \\ENQ\EOT\SOH\STX\NUL\ETX\DC2\ETX(\DC2\DC3\n\+ \\n\+ \\n\+ \\STX\EOT\STX\DC2\EOT+\NUL.\SOH\n\+ \\n\+ \\n\+ \\ETX\EOT\STX\SOH\DC2\ETX+\b\ESC\n\+ \D\n\+ \\EOT\EOT\STX\STX\NUL\DC2\ETX-\EOT\DC4\SUB7 Whether the autopilot agent should be enabled or not.\n\+ \\n\+ \\f\n\+ \\ENQ\EOT\STX\STX\NUL\ENQ\DC2\ETX-\EOT\b\n\+ \\f\n\+ \\ENQ\EOT\STX\STX\NUL\SOH\DC2\ETX-\t\SI\n\+ \\f\n\+ \\ENQ\EOT\STX\STX\NUL\ETX\DC2\ETX-\DC2\DC3\n\+ \\n\+ \\n\+ \\STX\EOT\ETX\DC2\EOT0\NUL1\SOH\n\+ \\n\+ \\n\+ \\ETX\EOT\ETX\SOH\DC2\ETX0\b\FS\n\+ \\n\+ \\n\+ \\STX\EOT\EOT\DC2\EOT3\NUL8\SOH\n\+ \\n\+ \\n\+ \\ETX\EOT\EOT\SOH\DC2\ETX3\b\SUB\n\+ \\v\n\+ \\EOT\EOT\EOT\STX\NUL\DC2\ETX4\EOT \n\+ \\f\n\+ \\ENQ\EOT\EOT\STX\NUL\EOT\DC2\ETX4\EOT\f\n\+ \\f\n\+ \\ENQ\EOT\EOT\STX\NUL\ENQ\DC2\ETX4\r\DC3\n\+ \\f\n\+ \\ENQ\EOT\EOT\STX\NUL\SOH\DC2\ETX4\DC4\ESC\n\+ \\f\n\+ \\ENQ\EOT\EOT\STX\NUL\ETX\DC2\ETX4\RS\US\n\+ \V\n\+ \\EOT\EOT\EOT\STX\SOH\DC2\ETX7\EOT \SUBI If set, we will ignore the local channel state when calculating scores.\n\+ \\n\+ \\f\n\+ \\ENQ\EOT\EOT\STX\SOH\ENQ\DC2\ETX7\EOT\b\n\+ \\f\n\+ \\ENQ\EOT\EOT\STX\SOH\SOH\DC2\ETX7\t\ESC\n\+ \\f\n\+ \\ENQ\EOT\EOT\STX\SOH\ETX\DC2\ETX7\RS\US\n\+ \\n\+ \\n\+ \\STX\EOT\ENQ\DC2\EOT:\NULA\SOH\n\+ \\n\+ \\n\+ \\ETX\EOT\ENQ\SOH\DC2\ETX:\b\ESC\n\+ \\f\n\+ \\EOT\EOT\ENQ\ETX\NUL\DC2\EOT;\EOT>\ENQ\n\+ \\f\n\+ \\ENQ\EOT\ENQ\ETX\NUL\SOH\DC2\ETX;\f\ESC\n\+ \\r\n\+ \\ACK\EOT\ENQ\ETX\NUL\STX\NUL\DC2\ETX<\b\GS\n\+ \\SO\n\+ \\a\EOT\ENQ\ETX\NUL\STX\NUL\ENQ\DC2\ETX<\b\SO\n\+ \\SO\n\+ \\a\EOT\ENQ\ETX\NUL\STX\NUL\SOH\DC2\ETX<\SI\CAN\n\+ \\SO\n\+ \\a\EOT\ENQ\ETX\NUL\STX\NUL\ETX\DC2\ETX<\ESC\FS\n\+ \\r\n\+ \\ACK\EOT\ENQ\ETX\NUL\STX\SOH\DC2\ETX=\b'\n\+ \\SO\n\+ \\a\EOT\ENQ\ETX\NUL\STX\SOH\ACK\DC2\ETX=\b\ESC\n\+ \\SO\n\+ \\a\EOT\ENQ\ETX\NUL\STX\SOH\SOH\DC2\ETX=\FS\"\n\+ \\SO\n\+ \\a\EOT\ENQ\ETX\NUL\STX\SOH\ETX\DC2\ETX=%&\n\+ \\v\n\+ \\EOT\EOT\ENQ\STX\NUL\DC2\ETX@\EOT)\n\+ \\f\n\+ \\ENQ\EOT\ENQ\STX\NUL\EOT\DC2\ETX@\EOT\f\n\+ \\f\n\+ \\ENQ\EOT\ENQ\STX\NUL\ACK\DC2\ETX@\r\FS\n\+ \\f\n\+ \\ENQ\EOT\ENQ\STX\NUL\SOH\DC2\ETX@\GS$\n\+ \\f\n\+ \\ENQ\EOT\ENQ\STX\NUL\ETX\DC2\ETX@'(\n\+ \\n\+ \\n\+ \\STX\EOT\ACK\DC2\EOTC\NULL\SOH\n\+ \\n\+ \\n\+ \\ETX\EOT\ACK\SOH\DC2\ETXC\b\CAN\n\+ \>\n\+ \\EOT\EOT\ACK\STX\NUL\DC2\ETXE\EOT\EM\SUB1 The name of the heuristic to provide scores to.\n\+ \\n\+ \\f\n\+ \\ENQ\EOT\ACK\STX\NUL\ENQ\DC2\ETXE\EOT\n\+ \\n\+ \\f\n\+ \\ENQ\EOT\ACK\STX\NUL\SOH\DC2\ETXE\v\DC4\n\+ \\f\n\+ \\ENQ\EOT\ACK\STX\NUL\ETX\DC2\ETXE\ETB\CAN\n\+ \d\n\+ \\EOT\EOT\ACK\STX\SOH\DC2\ETXK\EOT#\SUBW\n\+ \A map from hex-encoded public keys to scores. Scores must be in the range\n\+ \[0.0, 1.0].\n\+ \\n\+ \\f\n\+ \\ENQ\EOT\ACK\STX\SOH\ACK\DC2\ETXK\EOT\ETB\n\+ \\f\n\+ \\ENQ\EOT\ACK\STX\SOH\SOH\DC2\ETXK\CAN\RS\n\+ \\f\n\+ \\ENQ\EOT\ACK\STX\SOH\ETX\DC2\ETXK!\"\n\+ \\n\+ \\n\+ \\STX\EOT\a\DC2\EOTN\NULO\SOH\n\+ \\n\+ \\n\+ \\ETX\EOT\a\SOH\DC2\ETXN\b\EMb\ACKproto3"
@@ -0,0 +1,88 @@+{- This file was auto-generated from autopilotrpc/autopilot.proto by the proto-lens-protoc program. -}+{-# LANGUAGE ScopedTypeVariables, DataKinds, TypeFamilies, UndecidableInstances, GeneralizedNewtypeDeriving, MultiParamTypeClasses, FlexibleContexts, FlexibleInstances, PatternSynonyms, MagicHash, NoImplicitPrelude, BangPatterns, TypeApplications, OverloadedStrings, DerivingStrategies, DeriveGeneric#-}+{-# OPTIONS_GHC -Wno-unused-imports#-}+{-# OPTIONS_GHC -Wno-duplicate-exports#-}+{-# OPTIONS_GHC -Wno-dodgy-exports#-}+module Proto.Autopilotrpc.Autopilot_Fields where+import qualified Data.ProtoLens.Runtime.Prelude as Prelude+import qualified Data.ProtoLens.Runtime.Data.Int as Data.Int+import qualified Data.ProtoLens.Runtime.Data.Monoid as Data.Monoid+import qualified Data.ProtoLens.Runtime.Data.Word as Data.Word+import qualified Data.ProtoLens.Runtime.Data.ProtoLens as Data.ProtoLens+import qualified Data.ProtoLens.Runtime.Data.ProtoLens.Encoding.Bytes as Data.ProtoLens.Encoding.Bytes+import qualified Data.ProtoLens.Runtime.Data.ProtoLens.Encoding.Growing as Data.ProtoLens.Encoding.Growing+import qualified Data.ProtoLens.Runtime.Data.ProtoLens.Encoding.Parser.Unsafe as Data.ProtoLens.Encoding.Parser.Unsafe+import qualified Data.ProtoLens.Runtime.Data.ProtoLens.Encoding.Wire as Data.ProtoLens.Encoding.Wire+import qualified Data.ProtoLens.Runtime.Data.ProtoLens.Field as Data.ProtoLens.Field+import qualified Data.ProtoLens.Runtime.Data.ProtoLens.Message.Enum as Data.ProtoLens.Message.Enum+import qualified Data.ProtoLens.Runtime.Data.ProtoLens.Service.Types as Data.ProtoLens.Service.Types+import qualified Data.ProtoLens.Runtime.Lens.Family2 as Lens.Family2+import qualified Data.ProtoLens.Runtime.Lens.Family2.Unchecked as Lens.Family2.Unchecked+import qualified Data.ProtoLens.Runtime.Data.Text as Data.Text+import qualified Data.ProtoLens.Runtime.Data.Map as Data.Map+import qualified Data.ProtoLens.Runtime.Data.ByteString as Data.ByteString+import qualified Data.ProtoLens.Runtime.Data.ByteString.Char8 as Data.ByteString.Char8+import qualified Data.ProtoLens.Runtime.Data.Text.Encoding as Data.Text.Encoding+import qualified Data.ProtoLens.Runtime.Data.Vector as Data.Vector+import qualified Data.ProtoLens.Runtime.Data.Vector.Generic as Data.Vector.Generic+import qualified Data.ProtoLens.Runtime.Data.Vector.Unboxed as Data.Vector.Unboxed+import qualified Data.ProtoLens.Runtime.Text.Read as Text.Read+active ::+ forall f s a.+ (Prelude.Functor f, Data.ProtoLens.Field.HasField s "active" a) =>+ Lens.Family2.LensLike' f s a+active = Data.ProtoLens.Field.field @"active"+enable ::+ forall f s a.+ (Prelude.Functor f, Data.ProtoLens.Field.HasField s "enable" a) =>+ Lens.Family2.LensLike' f s a+enable = Data.ProtoLens.Field.field @"enable"+heuristic ::+ forall f s a.+ (Prelude.Functor f,+ Data.ProtoLens.Field.HasField s "heuristic" a) =>+ Lens.Family2.LensLike' f s a+heuristic = Data.ProtoLens.Field.field @"heuristic"+ignoreLocalState ::+ forall f s a.+ (Prelude.Functor f,+ Data.ProtoLens.Field.HasField s "ignoreLocalState" a) =>+ Lens.Family2.LensLike' f s a+ignoreLocalState = Data.ProtoLens.Field.field @"ignoreLocalState"+key ::+ forall f s a.+ (Prelude.Functor f, Data.ProtoLens.Field.HasField s "key" a) =>+ Lens.Family2.LensLike' f s a+key = Data.ProtoLens.Field.field @"key"+pubkeys ::+ forall f s a.+ (Prelude.Functor f, Data.ProtoLens.Field.HasField s "pubkeys" a) =>+ Lens.Family2.LensLike' f s a+pubkeys = Data.ProtoLens.Field.field @"pubkeys"+results ::+ forall f s a.+ (Prelude.Functor f, Data.ProtoLens.Field.HasField s "results" a) =>+ Lens.Family2.LensLike' f s a+results = Data.ProtoLens.Field.field @"results"+scores ::+ forall f s a.+ (Prelude.Functor f, Data.ProtoLens.Field.HasField s "scores" a) =>+ Lens.Family2.LensLike' f s a+scores = Data.ProtoLens.Field.field @"scores"+value ::+ forall f s a.+ (Prelude.Functor f, Data.ProtoLens.Field.HasField s "value" a) =>+ Lens.Family2.LensLike' f s a+value = Data.ProtoLens.Field.field @"value"+vec'pubkeys ::+ forall f s a.+ (Prelude.Functor f,+ Data.ProtoLens.Field.HasField s "vec'pubkeys" a) =>+ Lens.Family2.LensLike' f s a+vec'pubkeys = Data.ProtoLens.Field.field @"vec'pubkeys"+vec'results ::+ forall f s a.+ (Prelude.Functor f,+ Data.ProtoLens.Field.HasField s "vec'results" a) =>+ Lens.Family2.LensLike' f s a+vec'results = Data.ProtoLens.Field.field @"vec'results"
@@ -0,0 +1,2306 @@+{- This file was auto-generated from chainrpc/chainnotifier.proto by the proto-lens-protoc program. -}+{-# LANGUAGE ScopedTypeVariables, DataKinds, TypeFamilies, UndecidableInstances, GeneralizedNewtypeDeriving, MultiParamTypeClasses, FlexibleContexts, FlexibleInstances, PatternSynonyms, MagicHash, NoImplicitPrelude, BangPatterns, TypeApplications, OverloadedStrings, DerivingStrategies, DeriveGeneric#-}+{-# OPTIONS_GHC -Wno-unused-imports#-}+{-# OPTIONS_GHC -Wno-duplicate-exports#-}+{-# OPTIONS_GHC -Wno-dodgy-exports#-}+module Proto.Chainrpc.Chainnotifier (+ ChainNotifier(..), BlockEpoch(), ConfDetails(), ConfEvent(),+ ConfEvent'Event(..), _ConfEvent'Conf, _ConfEvent'Reorg,+ ConfRequest(), Outpoint(), Reorg(), SpendDetails(), SpendEvent(),+ SpendEvent'Event(..), _SpendEvent'Spend, _SpendEvent'Reorg,+ SpendRequest()+ ) where+import qualified Data.ProtoLens.Runtime.Control.DeepSeq as Control.DeepSeq+import qualified Data.ProtoLens.Runtime.Data.ProtoLens.Prism as Data.ProtoLens.Prism+import qualified Text.PrettyPrint.GenericPretty.Instance+import qualified GHC.Generics+import qualified Text.PrettyPrint.GenericPretty+import qualified Data.ProtoLens.Runtime.Prelude as Prelude+import qualified Data.ProtoLens.Runtime.Data.Int as Data.Int+import qualified Data.ProtoLens.Runtime.Data.Monoid as Data.Monoid+import qualified Data.ProtoLens.Runtime.Data.Word as Data.Word+import qualified Data.ProtoLens.Runtime.Data.ProtoLens as Data.ProtoLens+import qualified Data.ProtoLens.Runtime.Data.ProtoLens.Encoding.Bytes as Data.ProtoLens.Encoding.Bytes+import qualified Data.ProtoLens.Runtime.Data.ProtoLens.Encoding.Growing as Data.ProtoLens.Encoding.Growing+import qualified Data.ProtoLens.Runtime.Data.ProtoLens.Encoding.Parser.Unsafe as Data.ProtoLens.Encoding.Parser.Unsafe+import qualified Data.ProtoLens.Runtime.Data.ProtoLens.Encoding.Wire as Data.ProtoLens.Encoding.Wire+import qualified Data.ProtoLens.Runtime.Data.ProtoLens.Field as Data.ProtoLens.Field+import qualified Data.ProtoLens.Runtime.Data.ProtoLens.Message.Enum as Data.ProtoLens.Message.Enum+import qualified Data.ProtoLens.Runtime.Data.ProtoLens.Service.Types as Data.ProtoLens.Service.Types+import qualified Data.ProtoLens.Runtime.Lens.Family2 as Lens.Family2+import qualified Data.ProtoLens.Runtime.Lens.Family2.Unchecked as Lens.Family2.Unchecked+import qualified Data.ProtoLens.Runtime.Data.Text as Data.Text+import qualified Data.ProtoLens.Runtime.Data.Map as Data.Map+import qualified Data.ProtoLens.Runtime.Data.ByteString as Data.ByteString+import qualified Data.ProtoLens.Runtime.Data.ByteString.Char8 as Data.ByteString.Char8+import qualified Data.ProtoLens.Runtime.Data.Text.Encoding as Data.Text.Encoding+import qualified Data.ProtoLens.Runtime.Data.Vector as Data.Vector+import qualified Data.ProtoLens.Runtime.Data.Vector.Generic as Data.Vector.Generic+import qualified Data.ProtoLens.Runtime.Data.Vector.Unboxed as Data.Vector.Unboxed+import qualified Data.ProtoLens.Runtime.Text.Read as Text.Read+{- | Fields :+ + * 'Proto.Chainrpc.Chainnotifier_Fields.hash' @:: Lens' BlockEpoch Data.ByteString.ByteString@+ * 'Proto.Chainrpc.Chainnotifier_Fields.height' @:: Lens' BlockEpoch Data.Word.Word32@ -}+data BlockEpoch+ = BlockEpoch'_constructor {_BlockEpoch'hash :: !Data.ByteString.ByteString,+ _BlockEpoch'height :: !Data.Word.Word32,+ _BlockEpoch'_unknownFields :: !Data.ProtoLens.FieldSet}+ deriving stock (Prelude.Eq, Prelude.Ord, GHC.Generics.Generic)+instance Prelude.Show BlockEpoch where+ showsPrec _ __x __s+ = Prelude.showChar+ '{'+ (Prelude.showString+ (Data.ProtoLens.showMessageShort __x) (Prelude.showChar '}' __s))+instance Text.PrettyPrint.GenericPretty.Out BlockEpoch+instance Data.ProtoLens.Field.HasField BlockEpoch "hash" Data.ByteString.ByteString where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _BlockEpoch'hash (\ x__ y__ -> x__ {_BlockEpoch'hash = y__}))+ Prelude.id+instance Data.ProtoLens.Field.HasField BlockEpoch "height" Data.Word.Word32 where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _BlockEpoch'height (\ x__ y__ -> x__ {_BlockEpoch'height = y__}))+ Prelude.id+instance Data.ProtoLens.Message BlockEpoch where+ messageName _ = Data.Text.pack "chainrpc.BlockEpoch"+ packedMessageDescriptor _+ = "\n\+ \\n\+ \BlockEpoch\DC2\DC2\n\+ \\EOThash\CAN\SOH \SOH(\fR\EOThash\DC2\SYN\n\+ \\ACKheight\CAN\STX \SOH(\rR\ACKheight"+ packedFileDescriptor _ = packedFileDescriptor+ fieldsByTag+ = let+ hash__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "hash"+ (Data.ProtoLens.ScalarField Data.ProtoLens.BytesField ::+ Data.ProtoLens.FieldTypeDescriptor Data.ByteString.ByteString)+ (Data.ProtoLens.PlainField+ Data.ProtoLens.Optional (Data.ProtoLens.Field.field @"hash")) ::+ Data.ProtoLens.FieldDescriptor BlockEpoch+ height__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "height"+ (Data.ProtoLens.ScalarField Data.ProtoLens.UInt32Field ::+ Data.ProtoLens.FieldTypeDescriptor Data.Word.Word32)+ (Data.ProtoLens.PlainField+ Data.ProtoLens.Optional (Data.ProtoLens.Field.field @"height")) ::+ Data.ProtoLens.FieldDescriptor BlockEpoch+ in+ Data.Map.fromList+ [(Data.ProtoLens.Tag 1, hash__field_descriptor),+ (Data.ProtoLens.Tag 2, height__field_descriptor)]+ unknownFields+ = Lens.Family2.Unchecked.lens+ _BlockEpoch'_unknownFields+ (\ x__ y__ -> x__ {_BlockEpoch'_unknownFields = y__})+ defMessage+ = BlockEpoch'_constructor+ {_BlockEpoch'hash = Data.ProtoLens.fieldDefault,+ _BlockEpoch'height = Data.ProtoLens.fieldDefault,+ _BlockEpoch'_unknownFields = []}+ parseMessage+ = let+ loop ::+ BlockEpoch -> Data.ProtoLens.Encoding.Bytes.Parser BlockEpoch+ loop x+ = do end <- Data.ProtoLens.Encoding.Bytes.atEnd+ if end then+ do (let missing = []+ in+ if Prelude.null missing then+ Prelude.return ()+ else+ Prelude.fail+ ((Prelude.++)+ "Missing required fields: "+ (Prelude.show (missing :: [Prelude.String]))))+ Prelude.return+ (Lens.Family2.over+ Data.ProtoLens.unknownFields (\ !t -> Prelude.reverse t) x)+ else+ do tag <- Data.ProtoLens.Encoding.Bytes.getVarInt+ case tag of+ 10+ -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (do len <- Data.ProtoLens.Encoding.Bytes.getVarInt+ Data.ProtoLens.Encoding.Bytes.getBytes+ (Prelude.fromIntegral len))+ "hash"+ loop (Lens.Family2.set (Data.ProtoLens.Field.field @"hash") y x)+ 16+ -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (Prelude.fmap+ Prelude.fromIntegral+ Data.ProtoLens.Encoding.Bytes.getVarInt)+ "height"+ loop (Lens.Family2.set (Data.ProtoLens.Field.field @"height") y x)+ wire+ -> do !y <- Data.ProtoLens.Encoding.Wire.parseTaggedValueFromWire+ wire+ loop+ (Lens.Family2.over+ Data.ProtoLens.unknownFields (\ !t -> (:) y t) x)+ in+ (Data.ProtoLens.Encoding.Bytes.<?>)+ (do loop Data.ProtoLens.defMessage) "BlockEpoch"+ buildMessage+ = \ _x+ -> (Data.Monoid.<>)+ (let _v = Lens.Family2.view (Data.ProtoLens.Field.field @"hash") _x+ in+ if (Prelude.==) _v Data.ProtoLens.fieldDefault then+ Data.Monoid.mempty+ else+ (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 10)+ ((\ bs+ -> (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt+ (Prelude.fromIntegral (Data.ByteString.length bs)))+ (Data.ProtoLens.Encoding.Bytes.putBytes bs))+ _v))+ ((Data.Monoid.<>)+ (let+ _v = Lens.Family2.view (Data.ProtoLens.Field.field @"height") _x+ in+ if (Prelude.==) _v Data.ProtoLens.fieldDefault then+ Data.Monoid.mempty+ else+ (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 16)+ ((Prelude..)+ Data.ProtoLens.Encoding.Bytes.putVarInt Prelude.fromIntegral _v))+ (Data.ProtoLens.Encoding.Wire.buildFieldSet+ (Lens.Family2.view Data.ProtoLens.unknownFields _x)))+instance Control.DeepSeq.NFData BlockEpoch where+ rnf+ = \ x__+ -> Control.DeepSeq.deepseq+ (_BlockEpoch'_unknownFields x__)+ (Control.DeepSeq.deepseq+ (_BlockEpoch'hash x__)+ (Control.DeepSeq.deepseq (_BlockEpoch'height x__) ()))+{- | Fields :+ + * 'Proto.Chainrpc.Chainnotifier_Fields.rawTx' @:: Lens' ConfDetails Data.ByteString.ByteString@+ * 'Proto.Chainrpc.Chainnotifier_Fields.blockHash' @:: Lens' ConfDetails Data.ByteString.ByteString@+ * 'Proto.Chainrpc.Chainnotifier_Fields.blockHeight' @:: Lens' ConfDetails Data.Word.Word32@+ * 'Proto.Chainrpc.Chainnotifier_Fields.txIndex' @:: Lens' ConfDetails Data.Word.Word32@ -}+data ConfDetails+ = ConfDetails'_constructor {_ConfDetails'rawTx :: !Data.ByteString.ByteString,+ _ConfDetails'blockHash :: !Data.ByteString.ByteString,+ _ConfDetails'blockHeight :: !Data.Word.Word32,+ _ConfDetails'txIndex :: !Data.Word.Word32,+ _ConfDetails'_unknownFields :: !Data.ProtoLens.FieldSet}+ deriving stock (Prelude.Eq, Prelude.Ord, GHC.Generics.Generic)+instance Prelude.Show ConfDetails where+ showsPrec _ __x __s+ = Prelude.showChar+ '{'+ (Prelude.showString+ (Data.ProtoLens.showMessageShort __x) (Prelude.showChar '}' __s))+instance Text.PrettyPrint.GenericPretty.Out ConfDetails+instance Data.ProtoLens.Field.HasField ConfDetails "rawTx" Data.ByteString.ByteString where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _ConfDetails'rawTx (\ x__ y__ -> x__ {_ConfDetails'rawTx = y__}))+ Prelude.id+instance Data.ProtoLens.Field.HasField ConfDetails "blockHash" Data.ByteString.ByteString where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _ConfDetails'blockHash+ (\ x__ y__ -> x__ {_ConfDetails'blockHash = y__}))+ Prelude.id+instance Data.ProtoLens.Field.HasField ConfDetails "blockHeight" Data.Word.Word32 where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _ConfDetails'blockHeight+ (\ x__ y__ -> x__ {_ConfDetails'blockHeight = y__}))+ Prelude.id+instance Data.ProtoLens.Field.HasField ConfDetails "txIndex" Data.Word.Word32 where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _ConfDetails'txIndex+ (\ x__ y__ -> x__ {_ConfDetails'txIndex = y__}))+ Prelude.id+instance Data.ProtoLens.Message ConfDetails where+ messageName _ = Data.Text.pack "chainrpc.ConfDetails"+ packedMessageDescriptor _+ = "\n\+ \\vConfDetails\DC2\NAK\n\+ \\ACKraw_tx\CAN\SOH \SOH(\fR\ENQrawTx\DC2\GS\n\+ \\n\+ \block_hash\CAN\STX \SOH(\fR\tblockHash\DC2!\n\+ \\fblock_height\CAN\ETX \SOH(\rR\vblockHeight\DC2\EM\n\+ \\btx_index\CAN\EOT \SOH(\rR\atxIndex"+ packedFileDescriptor _ = packedFileDescriptor+ fieldsByTag+ = let+ rawTx__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "raw_tx"+ (Data.ProtoLens.ScalarField Data.ProtoLens.BytesField ::+ Data.ProtoLens.FieldTypeDescriptor Data.ByteString.ByteString)+ (Data.ProtoLens.PlainField+ Data.ProtoLens.Optional (Data.ProtoLens.Field.field @"rawTx")) ::+ Data.ProtoLens.FieldDescriptor ConfDetails+ blockHash__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "block_hash"+ (Data.ProtoLens.ScalarField Data.ProtoLens.BytesField ::+ Data.ProtoLens.FieldTypeDescriptor Data.ByteString.ByteString)+ (Data.ProtoLens.PlainField+ Data.ProtoLens.Optional+ (Data.ProtoLens.Field.field @"blockHash")) ::+ Data.ProtoLens.FieldDescriptor ConfDetails+ blockHeight__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "block_height"+ (Data.ProtoLens.ScalarField Data.ProtoLens.UInt32Field ::+ Data.ProtoLens.FieldTypeDescriptor Data.Word.Word32)+ (Data.ProtoLens.PlainField+ Data.ProtoLens.Optional+ (Data.ProtoLens.Field.field @"blockHeight")) ::+ Data.ProtoLens.FieldDescriptor ConfDetails+ txIndex__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "tx_index"+ (Data.ProtoLens.ScalarField Data.ProtoLens.UInt32Field ::+ Data.ProtoLens.FieldTypeDescriptor Data.Word.Word32)+ (Data.ProtoLens.PlainField+ Data.ProtoLens.Optional (Data.ProtoLens.Field.field @"txIndex")) ::+ Data.ProtoLens.FieldDescriptor ConfDetails+ in+ Data.Map.fromList+ [(Data.ProtoLens.Tag 1, rawTx__field_descriptor),+ (Data.ProtoLens.Tag 2, blockHash__field_descriptor),+ (Data.ProtoLens.Tag 3, blockHeight__field_descriptor),+ (Data.ProtoLens.Tag 4, txIndex__field_descriptor)]+ unknownFields+ = Lens.Family2.Unchecked.lens+ _ConfDetails'_unknownFields+ (\ x__ y__ -> x__ {_ConfDetails'_unknownFields = y__})+ defMessage+ = ConfDetails'_constructor+ {_ConfDetails'rawTx = Data.ProtoLens.fieldDefault,+ _ConfDetails'blockHash = Data.ProtoLens.fieldDefault,+ _ConfDetails'blockHeight = Data.ProtoLens.fieldDefault,+ _ConfDetails'txIndex = Data.ProtoLens.fieldDefault,+ _ConfDetails'_unknownFields = []}+ parseMessage+ = let+ loop ::+ ConfDetails -> Data.ProtoLens.Encoding.Bytes.Parser ConfDetails+ loop x+ = do end <- Data.ProtoLens.Encoding.Bytes.atEnd+ if end then+ do (let missing = []+ in+ if Prelude.null missing then+ Prelude.return ()+ else+ Prelude.fail+ ((Prelude.++)+ "Missing required fields: "+ (Prelude.show (missing :: [Prelude.String]))))+ Prelude.return+ (Lens.Family2.over+ Data.ProtoLens.unknownFields (\ !t -> Prelude.reverse t) x)+ else+ do tag <- Data.ProtoLens.Encoding.Bytes.getVarInt+ case tag of+ 10+ -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (do len <- Data.ProtoLens.Encoding.Bytes.getVarInt+ Data.ProtoLens.Encoding.Bytes.getBytes+ (Prelude.fromIntegral len))+ "raw_tx"+ loop (Lens.Family2.set (Data.ProtoLens.Field.field @"rawTx") y x)+ 18+ -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (do len <- Data.ProtoLens.Encoding.Bytes.getVarInt+ Data.ProtoLens.Encoding.Bytes.getBytes+ (Prelude.fromIntegral len))+ "block_hash"+ loop+ (Lens.Family2.set (Data.ProtoLens.Field.field @"blockHash") y x)+ 24+ -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (Prelude.fmap+ Prelude.fromIntegral+ Data.ProtoLens.Encoding.Bytes.getVarInt)+ "block_height"+ loop+ (Lens.Family2.set (Data.ProtoLens.Field.field @"blockHeight") y x)+ 32+ -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (Prelude.fmap+ Prelude.fromIntegral+ Data.ProtoLens.Encoding.Bytes.getVarInt)+ "tx_index"+ loop (Lens.Family2.set (Data.ProtoLens.Field.field @"txIndex") y x)+ wire+ -> do !y <- Data.ProtoLens.Encoding.Wire.parseTaggedValueFromWire+ wire+ loop+ (Lens.Family2.over+ Data.ProtoLens.unknownFields (\ !t -> (:) y t) x)+ in+ (Data.ProtoLens.Encoding.Bytes.<?>)+ (do loop Data.ProtoLens.defMessage) "ConfDetails"+ buildMessage+ = \ _x+ -> (Data.Monoid.<>)+ (let+ _v = Lens.Family2.view (Data.ProtoLens.Field.field @"rawTx") _x+ in+ if (Prelude.==) _v Data.ProtoLens.fieldDefault then+ Data.Monoid.mempty+ else+ (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 10)+ ((\ bs+ -> (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt+ (Prelude.fromIntegral (Data.ByteString.length bs)))+ (Data.ProtoLens.Encoding.Bytes.putBytes bs))+ _v))+ ((Data.Monoid.<>)+ (let+ _v = Lens.Family2.view (Data.ProtoLens.Field.field @"blockHash") _x+ in+ if (Prelude.==) _v Data.ProtoLens.fieldDefault then+ Data.Monoid.mempty+ else+ (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 18)+ ((\ bs+ -> (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt+ (Prelude.fromIntegral (Data.ByteString.length bs)))+ (Data.ProtoLens.Encoding.Bytes.putBytes bs))+ _v))+ ((Data.Monoid.<>)+ (let+ _v+ = Lens.Family2.view (Data.ProtoLens.Field.field @"blockHeight") _x+ in+ if (Prelude.==) _v Data.ProtoLens.fieldDefault then+ Data.Monoid.mempty+ else+ (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 24)+ ((Prelude..)+ Data.ProtoLens.Encoding.Bytes.putVarInt Prelude.fromIntegral _v))+ ((Data.Monoid.<>)+ (let+ _v = Lens.Family2.view (Data.ProtoLens.Field.field @"txIndex") _x+ in+ if (Prelude.==) _v Data.ProtoLens.fieldDefault then+ Data.Monoid.mempty+ else+ (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 32)+ ((Prelude..)+ Data.ProtoLens.Encoding.Bytes.putVarInt Prelude.fromIntegral _v))+ (Data.ProtoLens.Encoding.Wire.buildFieldSet+ (Lens.Family2.view Data.ProtoLens.unknownFields _x)))))+instance Control.DeepSeq.NFData ConfDetails where+ rnf+ = \ x__+ -> Control.DeepSeq.deepseq+ (_ConfDetails'_unknownFields x__)+ (Control.DeepSeq.deepseq+ (_ConfDetails'rawTx x__)+ (Control.DeepSeq.deepseq+ (_ConfDetails'blockHash x__)+ (Control.DeepSeq.deepseq+ (_ConfDetails'blockHeight x__)+ (Control.DeepSeq.deepseq (_ConfDetails'txIndex x__) ()))))+{- | Fields :+ + * 'Proto.Chainrpc.Chainnotifier_Fields.maybe'event' @:: Lens' ConfEvent (Prelude.Maybe ConfEvent'Event)@+ * 'Proto.Chainrpc.Chainnotifier_Fields.maybe'conf' @:: Lens' ConfEvent (Prelude.Maybe ConfDetails)@+ * 'Proto.Chainrpc.Chainnotifier_Fields.conf' @:: Lens' ConfEvent ConfDetails@+ * 'Proto.Chainrpc.Chainnotifier_Fields.maybe'reorg' @:: Lens' ConfEvent (Prelude.Maybe Reorg)@+ * 'Proto.Chainrpc.Chainnotifier_Fields.reorg' @:: Lens' ConfEvent Reorg@ -}+data ConfEvent+ = ConfEvent'_constructor {_ConfEvent'event :: !(Prelude.Maybe ConfEvent'Event),+ _ConfEvent'_unknownFields :: !Data.ProtoLens.FieldSet}+ deriving stock (Prelude.Eq, Prelude.Ord, GHC.Generics.Generic)+instance Prelude.Show ConfEvent where+ showsPrec _ __x __s+ = Prelude.showChar+ '{'+ (Prelude.showString+ (Data.ProtoLens.showMessageShort __x) (Prelude.showChar '}' __s))+instance Text.PrettyPrint.GenericPretty.Out ConfEvent+data ConfEvent'Event+ = ConfEvent'Conf !ConfDetails | ConfEvent'Reorg !Reorg+ deriving stock (Prelude.Show,+ Prelude.Eq,+ Prelude.Ord,+ GHC.Generics.Generic)+instance Text.PrettyPrint.GenericPretty.Out ConfEvent'Event+instance Data.ProtoLens.Field.HasField ConfEvent "maybe'event" (Prelude.Maybe ConfEvent'Event) where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _ConfEvent'event (\ x__ y__ -> x__ {_ConfEvent'event = y__}))+ Prelude.id+instance Data.ProtoLens.Field.HasField ConfEvent "maybe'conf" (Prelude.Maybe ConfDetails) where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _ConfEvent'event (\ x__ y__ -> x__ {_ConfEvent'event = y__}))+ (Lens.Family2.Unchecked.lens+ (\ x__+ -> case x__ of+ (Prelude.Just (ConfEvent'Conf x__val)) -> Prelude.Just x__val+ _otherwise -> Prelude.Nothing)+ (\ _ y__ -> Prelude.fmap ConfEvent'Conf y__))+instance Data.ProtoLens.Field.HasField ConfEvent "conf" ConfDetails where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _ConfEvent'event (\ x__ y__ -> x__ {_ConfEvent'event = y__}))+ ((Prelude..)+ (Lens.Family2.Unchecked.lens+ (\ x__+ -> case x__ of+ (Prelude.Just (ConfEvent'Conf x__val)) -> Prelude.Just x__val+ _otherwise -> Prelude.Nothing)+ (\ _ y__ -> Prelude.fmap ConfEvent'Conf y__))+ (Data.ProtoLens.maybeLens Data.ProtoLens.defMessage))+instance Data.ProtoLens.Field.HasField ConfEvent "maybe'reorg" (Prelude.Maybe Reorg) where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _ConfEvent'event (\ x__ y__ -> x__ {_ConfEvent'event = y__}))+ (Lens.Family2.Unchecked.lens+ (\ x__+ -> case x__ of+ (Prelude.Just (ConfEvent'Reorg x__val)) -> Prelude.Just x__val+ _otherwise -> Prelude.Nothing)+ (\ _ y__ -> Prelude.fmap ConfEvent'Reorg y__))+instance Data.ProtoLens.Field.HasField ConfEvent "reorg" Reorg where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _ConfEvent'event (\ x__ y__ -> x__ {_ConfEvent'event = y__}))+ ((Prelude..)+ (Lens.Family2.Unchecked.lens+ (\ x__+ -> case x__ of+ (Prelude.Just (ConfEvent'Reorg x__val)) -> Prelude.Just x__val+ _otherwise -> Prelude.Nothing)+ (\ _ y__ -> Prelude.fmap ConfEvent'Reorg y__))+ (Data.ProtoLens.maybeLens Data.ProtoLens.defMessage))+instance Data.ProtoLens.Message ConfEvent where+ messageName _ = Data.Text.pack "chainrpc.ConfEvent"+ packedMessageDescriptor _+ = "\n\+ \\tConfEvent\DC2+\n\+ \\EOTconf\CAN\SOH \SOH(\v2\NAK.chainrpc.ConfDetailsH\NULR\EOTconf\DC2'\n\+ \\ENQreorg\CAN\STX \SOH(\v2\SI.chainrpc.ReorgH\NULR\ENQreorgB\a\n\+ \\ENQevent"+ packedFileDescriptor _ = packedFileDescriptor+ fieldsByTag+ = let+ conf__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "conf"+ (Data.ProtoLens.MessageField Data.ProtoLens.MessageType ::+ Data.ProtoLens.FieldTypeDescriptor ConfDetails)+ (Data.ProtoLens.OptionalField+ (Data.ProtoLens.Field.field @"maybe'conf")) ::+ Data.ProtoLens.FieldDescriptor ConfEvent+ reorg__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "reorg"+ (Data.ProtoLens.MessageField Data.ProtoLens.MessageType ::+ Data.ProtoLens.FieldTypeDescriptor Reorg)+ (Data.ProtoLens.OptionalField+ (Data.ProtoLens.Field.field @"maybe'reorg")) ::+ Data.ProtoLens.FieldDescriptor ConfEvent+ in+ Data.Map.fromList+ [(Data.ProtoLens.Tag 1, conf__field_descriptor),+ (Data.ProtoLens.Tag 2, reorg__field_descriptor)]+ unknownFields+ = Lens.Family2.Unchecked.lens+ _ConfEvent'_unknownFields+ (\ x__ y__ -> x__ {_ConfEvent'_unknownFields = y__})+ defMessage+ = ConfEvent'_constructor+ {_ConfEvent'event = Prelude.Nothing,+ _ConfEvent'_unknownFields = []}+ parseMessage+ = let+ loop :: ConfEvent -> Data.ProtoLens.Encoding.Bytes.Parser ConfEvent+ loop x+ = do end <- Data.ProtoLens.Encoding.Bytes.atEnd+ if end then+ do (let missing = []+ in+ if Prelude.null missing then+ Prelude.return ()+ else+ Prelude.fail+ ((Prelude.++)+ "Missing required fields: "+ (Prelude.show (missing :: [Prelude.String]))))+ Prelude.return+ (Lens.Family2.over+ Data.ProtoLens.unknownFields (\ !t -> Prelude.reverse t) x)+ else+ do tag <- Data.ProtoLens.Encoding.Bytes.getVarInt+ case tag of+ 10+ -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (do len <- Data.ProtoLens.Encoding.Bytes.getVarInt+ Data.ProtoLens.Encoding.Bytes.isolate+ (Prelude.fromIntegral len) Data.ProtoLens.parseMessage)+ "conf"+ loop (Lens.Family2.set (Data.ProtoLens.Field.field @"conf") y x)+ 18+ -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (do len <- Data.ProtoLens.Encoding.Bytes.getVarInt+ Data.ProtoLens.Encoding.Bytes.isolate+ (Prelude.fromIntegral len) Data.ProtoLens.parseMessage)+ "reorg"+ loop (Lens.Family2.set (Data.ProtoLens.Field.field @"reorg") y x)+ wire+ -> do !y <- Data.ProtoLens.Encoding.Wire.parseTaggedValueFromWire+ wire+ loop+ (Lens.Family2.over+ Data.ProtoLens.unknownFields (\ !t -> (:) y t) x)+ in+ (Data.ProtoLens.Encoding.Bytes.<?>)+ (do loop Data.ProtoLens.defMessage) "ConfEvent"+ buildMessage+ = \ _x+ -> (Data.Monoid.<>)+ (case+ Lens.Family2.view (Data.ProtoLens.Field.field @"maybe'event") _x+ of+ Prelude.Nothing -> Data.Monoid.mempty+ (Prelude.Just (ConfEvent'Conf v))+ -> (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 10)+ ((Prelude..)+ (\ bs+ -> (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt+ (Prelude.fromIntegral (Data.ByteString.length bs)))+ (Data.ProtoLens.Encoding.Bytes.putBytes bs))+ Data.ProtoLens.encodeMessage v)+ (Prelude.Just (ConfEvent'Reorg v))+ -> (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 18)+ ((Prelude..)+ (\ bs+ -> (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt+ (Prelude.fromIntegral (Data.ByteString.length bs)))+ (Data.ProtoLens.Encoding.Bytes.putBytes bs))+ Data.ProtoLens.encodeMessage v))+ (Data.ProtoLens.Encoding.Wire.buildFieldSet+ (Lens.Family2.view Data.ProtoLens.unknownFields _x))+instance Control.DeepSeq.NFData ConfEvent where+ rnf+ = \ x__+ -> Control.DeepSeq.deepseq+ (_ConfEvent'_unknownFields x__)+ (Control.DeepSeq.deepseq (_ConfEvent'event x__) ())+instance Control.DeepSeq.NFData ConfEvent'Event where+ rnf (ConfEvent'Conf x__) = Control.DeepSeq.rnf x__+ rnf (ConfEvent'Reorg x__) = Control.DeepSeq.rnf x__+_ConfEvent'Conf ::+ Data.ProtoLens.Prism.Prism' ConfEvent'Event ConfDetails+_ConfEvent'Conf+ = Data.ProtoLens.Prism.prism'+ ConfEvent'Conf+ (\ p__+ -> case p__ of+ (ConfEvent'Conf p__val) -> Prelude.Just p__val+ _otherwise -> Prelude.Nothing)+_ConfEvent'Reorg ::+ Data.ProtoLens.Prism.Prism' ConfEvent'Event Reorg+_ConfEvent'Reorg+ = Data.ProtoLens.Prism.prism'+ ConfEvent'Reorg+ (\ p__+ -> case p__ of+ (ConfEvent'Reorg p__val) -> Prelude.Just p__val+ _otherwise -> Prelude.Nothing)+{- | Fields :+ + * 'Proto.Chainrpc.Chainnotifier_Fields.txid' @:: Lens' ConfRequest Data.ByteString.ByteString@+ * 'Proto.Chainrpc.Chainnotifier_Fields.script' @:: Lens' ConfRequest Data.ByteString.ByteString@+ * 'Proto.Chainrpc.Chainnotifier_Fields.numConfs' @:: Lens' ConfRequest Data.Word.Word32@+ * 'Proto.Chainrpc.Chainnotifier_Fields.heightHint' @:: Lens' ConfRequest Data.Word.Word32@ -}+data ConfRequest+ = ConfRequest'_constructor {_ConfRequest'txid :: !Data.ByteString.ByteString,+ _ConfRequest'script :: !Data.ByteString.ByteString,+ _ConfRequest'numConfs :: !Data.Word.Word32,+ _ConfRequest'heightHint :: !Data.Word.Word32,+ _ConfRequest'_unknownFields :: !Data.ProtoLens.FieldSet}+ deriving stock (Prelude.Eq, Prelude.Ord, GHC.Generics.Generic)+instance Prelude.Show ConfRequest where+ showsPrec _ __x __s+ = Prelude.showChar+ '{'+ (Prelude.showString+ (Data.ProtoLens.showMessageShort __x) (Prelude.showChar '}' __s))+instance Text.PrettyPrint.GenericPretty.Out ConfRequest+instance Data.ProtoLens.Field.HasField ConfRequest "txid" Data.ByteString.ByteString where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _ConfRequest'txid (\ x__ y__ -> x__ {_ConfRequest'txid = y__}))+ Prelude.id+instance Data.ProtoLens.Field.HasField ConfRequest "script" Data.ByteString.ByteString where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _ConfRequest'script (\ x__ y__ -> x__ {_ConfRequest'script = y__}))+ Prelude.id+instance Data.ProtoLens.Field.HasField ConfRequest "numConfs" Data.Word.Word32 where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _ConfRequest'numConfs+ (\ x__ y__ -> x__ {_ConfRequest'numConfs = y__}))+ Prelude.id+instance Data.ProtoLens.Field.HasField ConfRequest "heightHint" Data.Word.Word32 where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _ConfRequest'heightHint+ (\ x__ y__ -> x__ {_ConfRequest'heightHint = y__}))+ Prelude.id+instance Data.ProtoLens.Message ConfRequest where+ messageName _ = Data.Text.pack "chainrpc.ConfRequest"+ packedMessageDescriptor _+ = "\n\+ \\vConfRequest\DC2\DC2\n\+ \\EOTtxid\CAN\SOH \SOH(\fR\EOTtxid\DC2\SYN\n\+ \\ACKscript\CAN\STX \SOH(\fR\ACKscript\DC2\ESC\n\+ \\tnum_confs\CAN\ETX \SOH(\rR\bnumConfs\DC2\US\n\+ \\vheight_hint\CAN\EOT \SOH(\rR\n\+ \heightHint"+ packedFileDescriptor _ = packedFileDescriptor+ fieldsByTag+ = let+ txid__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "txid"+ (Data.ProtoLens.ScalarField Data.ProtoLens.BytesField ::+ Data.ProtoLens.FieldTypeDescriptor Data.ByteString.ByteString)+ (Data.ProtoLens.PlainField+ Data.ProtoLens.Optional (Data.ProtoLens.Field.field @"txid")) ::+ Data.ProtoLens.FieldDescriptor ConfRequest+ script__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "script"+ (Data.ProtoLens.ScalarField Data.ProtoLens.BytesField ::+ Data.ProtoLens.FieldTypeDescriptor Data.ByteString.ByteString)+ (Data.ProtoLens.PlainField+ Data.ProtoLens.Optional (Data.ProtoLens.Field.field @"script")) ::+ Data.ProtoLens.FieldDescriptor ConfRequest+ numConfs__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "num_confs"+ (Data.ProtoLens.ScalarField Data.ProtoLens.UInt32Field ::+ Data.ProtoLens.FieldTypeDescriptor Data.Word.Word32)+ (Data.ProtoLens.PlainField+ Data.ProtoLens.Optional+ (Data.ProtoLens.Field.field @"numConfs")) ::+ Data.ProtoLens.FieldDescriptor ConfRequest+ heightHint__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "height_hint"+ (Data.ProtoLens.ScalarField Data.ProtoLens.UInt32Field ::+ Data.ProtoLens.FieldTypeDescriptor Data.Word.Word32)+ (Data.ProtoLens.PlainField+ Data.ProtoLens.Optional+ (Data.ProtoLens.Field.field @"heightHint")) ::+ Data.ProtoLens.FieldDescriptor ConfRequest+ in+ Data.Map.fromList+ [(Data.ProtoLens.Tag 1, txid__field_descriptor),+ (Data.ProtoLens.Tag 2, script__field_descriptor),+ (Data.ProtoLens.Tag 3, numConfs__field_descriptor),+ (Data.ProtoLens.Tag 4, heightHint__field_descriptor)]+ unknownFields+ = Lens.Family2.Unchecked.lens+ _ConfRequest'_unknownFields+ (\ x__ y__ -> x__ {_ConfRequest'_unknownFields = y__})+ defMessage+ = ConfRequest'_constructor+ {_ConfRequest'txid = Data.ProtoLens.fieldDefault,+ _ConfRequest'script = Data.ProtoLens.fieldDefault,+ _ConfRequest'numConfs = Data.ProtoLens.fieldDefault,+ _ConfRequest'heightHint = Data.ProtoLens.fieldDefault,+ _ConfRequest'_unknownFields = []}+ parseMessage+ = let+ loop ::+ ConfRequest -> Data.ProtoLens.Encoding.Bytes.Parser ConfRequest+ loop x+ = do end <- Data.ProtoLens.Encoding.Bytes.atEnd+ if end then+ do (let missing = []+ in+ if Prelude.null missing then+ Prelude.return ()+ else+ Prelude.fail+ ((Prelude.++)+ "Missing required fields: "+ (Prelude.show (missing :: [Prelude.String]))))+ Prelude.return+ (Lens.Family2.over+ Data.ProtoLens.unknownFields (\ !t -> Prelude.reverse t) x)+ else+ do tag <- Data.ProtoLens.Encoding.Bytes.getVarInt+ case tag of+ 10+ -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (do len <- Data.ProtoLens.Encoding.Bytes.getVarInt+ Data.ProtoLens.Encoding.Bytes.getBytes+ (Prelude.fromIntegral len))+ "txid"+ loop (Lens.Family2.set (Data.ProtoLens.Field.field @"txid") y x)+ 18+ -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (do len <- Data.ProtoLens.Encoding.Bytes.getVarInt+ Data.ProtoLens.Encoding.Bytes.getBytes+ (Prelude.fromIntegral len))+ "script"+ loop (Lens.Family2.set (Data.ProtoLens.Field.field @"script") y x)+ 24+ -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (Prelude.fmap+ Prelude.fromIntegral+ Data.ProtoLens.Encoding.Bytes.getVarInt)+ "num_confs"+ loop+ (Lens.Family2.set (Data.ProtoLens.Field.field @"numConfs") y x)+ 32+ -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (Prelude.fmap+ Prelude.fromIntegral+ Data.ProtoLens.Encoding.Bytes.getVarInt)+ "height_hint"+ loop+ (Lens.Family2.set (Data.ProtoLens.Field.field @"heightHint") y x)+ wire+ -> do !y <- Data.ProtoLens.Encoding.Wire.parseTaggedValueFromWire+ wire+ loop+ (Lens.Family2.over+ Data.ProtoLens.unknownFields (\ !t -> (:) y t) x)+ in+ (Data.ProtoLens.Encoding.Bytes.<?>)+ (do loop Data.ProtoLens.defMessage) "ConfRequest"+ buildMessage+ = \ _x+ -> (Data.Monoid.<>)+ (let _v = Lens.Family2.view (Data.ProtoLens.Field.field @"txid") _x+ in+ if (Prelude.==) _v Data.ProtoLens.fieldDefault then+ Data.Monoid.mempty+ else+ (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 10)+ ((\ bs+ -> (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt+ (Prelude.fromIntegral (Data.ByteString.length bs)))+ (Data.ProtoLens.Encoding.Bytes.putBytes bs))+ _v))+ ((Data.Monoid.<>)+ (let+ _v = Lens.Family2.view (Data.ProtoLens.Field.field @"script") _x+ in+ if (Prelude.==) _v Data.ProtoLens.fieldDefault then+ Data.Monoid.mempty+ else+ (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 18)+ ((\ bs+ -> (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt+ (Prelude.fromIntegral (Data.ByteString.length bs)))+ (Data.ProtoLens.Encoding.Bytes.putBytes bs))+ _v))+ ((Data.Monoid.<>)+ (let+ _v = Lens.Family2.view (Data.ProtoLens.Field.field @"numConfs") _x+ in+ if (Prelude.==) _v Data.ProtoLens.fieldDefault then+ Data.Monoid.mempty+ else+ (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 24)+ ((Prelude..)+ Data.ProtoLens.Encoding.Bytes.putVarInt Prelude.fromIntegral _v))+ ((Data.Monoid.<>)+ (let+ _v+ = Lens.Family2.view (Data.ProtoLens.Field.field @"heightHint") _x+ in+ if (Prelude.==) _v Data.ProtoLens.fieldDefault then+ Data.Monoid.mempty+ else+ (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 32)+ ((Prelude..)+ Data.ProtoLens.Encoding.Bytes.putVarInt Prelude.fromIntegral _v))+ (Data.ProtoLens.Encoding.Wire.buildFieldSet+ (Lens.Family2.view Data.ProtoLens.unknownFields _x)))))+instance Control.DeepSeq.NFData ConfRequest where+ rnf+ = \ x__+ -> Control.DeepSeq.deepseq+ (_ConfRequest'_unknownFields x__)+ (Control.DeepSeq.deepseq+ (_ConfRequest'txid x__)+ (Control.DeepSeq.deepseq+ (_ConfRequest'script x__)+ (Control.DeepSeq.deepseq+ (_ConfRequest'numConfs x__)+ (Control.DeepSeq.deepseq (_ConfRequest'heightHint x__) ()))))+{- | Fields :+ + * 'Proto.Chainrpc.Chainnotifier_Fields.hash' @:: Lens' Outpoint Data.ByteString.ByteString@+ * 'Proto.Chainrpc.Chainnotifier_Fields.index' @:: Lens' Outpoint Data.Word.Word32@ -}+data Outpoint+ = Outpoint'_constructor {_Outpoint'hash :: !Data.ByteString.ByteString,+ _Outpoint'index :: !Data.Word.Word32,+ _Outpoint'_unknownFields :: !Data.ProtoLens.FieldSet}+ deriving stock (Prelude.Eq, Prelude.Ord, GHC.Generics.Generic)+instance Prelude.Show Outpoint where+ showsPrec _ __x __s+ = Prelude.showChar+ '{'+ (Prelude.showString+ (Data.ProtoLens.showMessageShort __x) (Prelude.showChar '}' __s))+instance Text.PrettyPrint.GenericPretty.Out Outpoint+instance Data.ProtoLens.Field.HasField Outpoint "hash" Data.ByteString.ByteString where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _Outpoint'hash (\ x__ y__ -> x__ {_Outpoint'hash = y__}))+ Prelude.id+instance Data.ProtoLens.Field.HasField Outpoint "index" Data.Word.Word32 where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _Outpoint'index (\ x__ y__ -> x__ {_Outpoint'index = y__}))+ Prelude.id+instance Data.ProtoLens.Message Outpoint where+ messageName _ = Data.Text.pack "chainrpc.Outpoint"+ packedMessageDescriptor _+ = "\n\+ \\bOutpoint\DC2\DC2\n\+ \\EOThash\CAN\SOH \SOH(\fR\EOThash\DC2\DC4\n\+ \\ENQindex\CAN\STX \SOH(\rR\ENQindex"+ packedFileDescriptor _ = packedFileDescriptor+ fieldsByTag+ = let+ hash__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "hash"+ (Data.ProtoLens.ScalarField Data.ProtoLens.BytesField ::+ Data.ProtoLens.FieldTypeDescriptor Data.ByteString.ByteString)+ (Data.ProtoLens.PlainField+ Data.ProtoLens.Optional (Data.ProtoLens.Field.field @"hash")) ::+ Data.ProtoLens.FieldDescriptor Outpoint+ index__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "index"+ (Data.ProtoLens.ScalarField Data.ProtoLens.UInt32Field ::+ Data.ProtoLens.FieldTypeDescriptor Data.Word.Word32)+ (Data.ProtoLens.PlainField+ Data.ProtoLens.Optional (Data.ProtoLens.Field.field @"index")) ::+ Data.ProtoLens.FieldDescriptor Outpoint+ in+ Data.Map.fromList+ [(Data.ProtoLens.Tag 1, hash__field_descriptor),+ (Data.ProtoLens.Tag 2, index__field_descriptor)]+ unknownFields+ = Lens.Family2.Unchecked.lens+ _Outpoint'_unknownFields+ (\ x__ y__ -> x__ {_Outpoint'_unknownFields = y__})+ defMessage+ = Outpoint'_constructor+ {_Outpoint'hash = Data.ProtoLens.fieldDefault,+ _Outpoint'index = Data.ProtoLens.fieldDefault,+ _Outpoint'_unknownFields = []}+ parseMessage+ = let+ loop :: Outpoint -> Data.ProtoLens.Encoding.Bytes.Parser Outpoint+ loop x+ = do end <- Data.ProtoLens.Encoding.Bytes.atEnd+ if end then+ do (let missing = []+ in+ if Prelude.null missing then+ Prelude.return ()+ else+ Prelude.fail+ ((Prelude.++)+ "Missing required fields: "+ (Prelude.show (missing :: [Prelude.String]))))+ Prelude.return+ (Lens.Family2.over+ Data.ProtoLens.unknownFields (\ !t -> Prelude.reverse t) x)+ else+ do tag <- Data.ProtoLens.Encoding.Bytes.getVarInt+ case tag of+ 10+ -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (do len <- Data.ProtoLens.Encoding.Bytes.getVarInt+ Data.ProtoLens.Encoding.Bytes.getBytes+ (Prelude.fromIntegral len))+ "hash"+ loop (Lens.Family2.set (Data.ProtoLens.Field.field @"hash") y x)+ 16+ -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (Prelude.fmap+ Prelude.fromIntegral+ Data.ProtoLens.Encoding.Bytes.getVarInt)+ "index"+ loop (Lens.Family2.set (Data.ProtoLens.Field.field @"index") y x)+ wire+ -> do !y <- Data.ProtoLens.Encoding.Wire.parseTaggedValueFromWire+ wire+ loop+ (Lens.Family2.over+ Data.ProtoLens.unknownFields (\ !t -> (:) y t) x)+ in+ (Data.ProtoLens.Encoding.Bytes.<?>)+ (do loop Data.ProtoLens.defMessage) "Outpoint"+ buildMessage+ = \ _x+ -> (Data.Monoid.<>)+ (let _v = Lens.Family2.view (Data.ProtoLens.Field.field @"hash") _x+ in+ if (Prelude.==) _v Data.ProtoLens.fieldDefault then+ Data.Monoid.mempty+ else+ (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 10)+ ((\ bs+ -> (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt+ (Prelude.fromIntegral (Data.ByteString.length bs)))+ (Data.ProtoLens.Encoding.Bytes.putBytes bs))+ _v))+ ((Data.Monoid.<>)+ (let+ _v = Lens.Family2.view (Data.ProtoLens.Field.field @"index") _x+ in+ if (Prelude.==) _v Data.ProtoLens.fieldDefault then+ Data.Monoid.mempty+ else+ (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 16)+ ((Prelude..)+ Data.ProtoLens.Encoding.Bytes.putVarInt Prelude.fromIntegral _v))+ (Data.ProtoLens.Encoding.Wire.buildFieldSet+ (Lens.Family2.view Data.ProtoLens.unknownFields _x)))+instance Control.DeepSeq.NFData Outpoint where+ rnf+ = \ x__+ -> Control.DeepSeq.deepseq+ (_Outpoint'_unknownFields x__)+ (Control.DeepSeq.deepseq+ (_Outpoint'hash x__)+ (Control.DeepSeq.deepseq (_Outpoint'index x__) ()))+{- | Fields :+ -}+data Reorg+ = Reorg'_constructor {_Reorg'_unknownFields :: !Data.ProtoLens.FieldSet}+ deriving stock (Prelude.Eq, Prelude.Ord, GHC.Generics.Generic)+instance Prelude.Show Reorg where+ showsPrec _ __x __s+ = Prelude.showChar+ '{'+ (Prelude.showString+ (Data.ProtoLens.showMessageShort __x) (Prelude.showChar '}' __s))+instance Text.PrettyPrint.GenericPretty.Out Reorg+instance Data.ProtoLens.Message Reorg where+ messageName _ = Data.Text.pack "chainrpc.Reorg"+ packedMessageDescriptor _+ = "\n\+ \\ENQReorg"+ packedFileDescriptor _ = packedFileDescriptor+ fieldsByTag = let in Data.Map.fromList []+ unknownFields+ = Lens.Family2.Unchecked.lens+ _Reorg'_unknownFields+ (\ x__ y__ -> x__ {_Reorg'_unknownFields = y__})+ defMessage = Reorg'_constructor {_Reorg'_unknownFields = []}+ parseMessage+ = let+ loop :: Reorg -> Data.ProtoLens.Encoding.Bytes.Parser Reorg+ loop x+ = do end <- Data.ProtoLens.Encoding.Bytes.atEnd+ if end then+ do (let missing = []+ in+ if Prelude.null missing then+ Prelude.return ()+ else+ Prelude.fail+ ((Prelude.++)+ "Missing required fields: "+ (Prelude.show (missing :: [Prelude.String]))))+ Prelude.return+ (Lens.Family2.over+ Data.ProtoLens.unknownFields (\ !t -> Prelude.reverse t) x)+ else+ do tag <- Data.ProtoLens.Encoding.Bytes.getVarInt+ case tag of {+ wire+ -> do !y <- Data.ProtoLens.Encoding.Wire.parseTaggedValueFromWire+ wire+ loop+ (Lens.Family2.over+ Data.ProtoLens.unknownFields (\ !t -> (:) y t) x) }+ in+ (Data.ProtoLens.Encoding.Bytes.<?>)+ (do loop Data.ProtoLens.defMessage) "Reorg"+ buildMessage+ = \ _x+ -> Data.ProtoLens.Encoding.Wire.buildFieldSet+ (Lens.Family2.view Data.ProtoLens.unknownFields _x)+instance Control.DeepSeq.NFData Reorg where+ rnf+ = \ x__ -> Control.DeepSeq.deepseq (_Reorg'_unknownFields x__) ()+{- | Fields :+ + * 'Proto.Chainrpc.Chainnotifier_Fields.spendingOutpoint' @:: Lens' SpendDetails Outpoint@+ * 'Proto.Chainrpc.Chainnotifier_Fields.maybe'spendingOutpoint' @:: Lens' SpendDetails (Prelude.Maybe Outpoint)@+ * 'Proto.Chainrpc.Chainnotifier_Fields.rawSpendingTx' @:: Lens' SpendDetails Data.ByteString.ByteString@+ * 'Proto.Chainrpc.Chainnotifier_Fields.spendingTxHash' @:: Lens' SpendDetails Data.ByteString.ByteString@+ * 'Proto.Chainrpc.Chainnotifier_Fields.spendingInputIndex' @:: Lens' SpendDetails Data.Word.Word32@+ * 'Proto.Chainrpc.Chainnotifier_Fields.spendingHeight' @:: Lens' SpendDetails Data.Word.Word32@ -}+data SpendDetails+ = SpendDetails'_constructor {_SpendDetails'spendingOutpoint :: !(Prelude.Maybe Outpoint),+ _SpendDetails'rawSpendingTx :: !Data.ByteString.ByteString,+ _SpendDetails'spendingTxHash :: !Data.ByteString.ByteString,+ _SpendDetails'spendingInputIndex :: !Data.Word.Word32,+ _SpendDetails'spendingHeight :: !Data.Word.Word32,+ _SpendDetails'_unknownFields :: !Data.ProtoLens.FieldSet}+ deriving stock (Prelude.Eq, Prelude.Ord, GHC.Generics.Generic)+instance Prelude.Show SpendDetails where+ showsPrec _ __x __s+ = Prelude.showChar+ '{'+ (Prelude.showString+ (Data.ProtoLens.showMessageShort __x) (Prelude.showChar '}' __s))+instance Text.PrettyPrint.GenericPretty.Out SpendDetails+instance Data.ProtoLens.Field.HasField SpendDetails "spendingOutpoint" Outpoint where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _SpendDetails'spendingOutpoint+ (\ x__ y__ -> x__ {_SpendDetails'spendingOutpoint = y__}))+ (Data.ProtoLens.maybeLens Data.ProtoLens.defMessage)+instance Data.ProtoLens.Field.HasField SpendDetails "maybe'spendingOutpoint" (Prelude.Maybe Outpoint) where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _SpendDetails'spendingOutpoint+ (\ x__ y__ -> x__ {_SpendDetails'spendingOutpoint = y__}))+ Prelude.id+instance Data.ProtoLens.Field.HasField SpendDetails "rawSpendingTx" Data.ByteString.ByteString where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _SpendDetails'rawSpendingTx+ (\ x__ y__ -> x__ {_SpendDetails'rawSpendingTx = y__}))+ Prelude.id+instance Data.ProtoLens.Field.HasField SpendDetails "spendingTxHash" Data.ByteString.ByteString where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _SpendDetails'spendingTxHash+ (\ x__ y__ -> x__ {_SpendDetails'spendingTxHash = y__}))+ Prelude.id+instance Data.ProtoLens.Field.HasField SpendDetails "spendingInputIndex" Data.Word.Word32 where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _SpendDetails'spendingInputIndex+ (\ x__ y__ -> x__ {_SpendDetails'spendingInputIndex = y__}))+ Prelude.id+instance Data.ProtoLens.Field.HasField SpendDetails "spendingHeight" Data.Word.Word32 where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _SpendDetails'spendingHeight+ (\ x__ y__ -> x__ {_SpendDetails'spendingHeight = y__}))+ Prelude.id+instance Data.ProtoLens.Message SpendDetails where+ messageName _ = Data.Text.pack "chainrpc.SpendDetails"+ packedMessageDescriptor _+ = "\n\+ \\fSpendDetails\DC2?\n\+ \\DC1spending_outpoint\CAN\SOH \SOH(\v2\DC2.chainrpc.OutpointR\DLEspendingOutpoint\DC2&\n\+ \\SIraw_spending_tx\CAN\STX \SOH(\fR\rrawSpendingTx\DC2(\n\+ \\DLEspending_tx_hash\CAN\ETX \SOH(\fR\SOspendingTxHash\DC20\n\+ \\DC4spending_input_index\CAN\EOT \SOH(\rR\DC2spendingInputIndex\DC2'\n\+ \\SIspending_height\CAN\ENQ \SOH(\rR\SOspendingHeight"+ packedFileDescriptor _ = packedFileDescriptor+ fieldsByTag+ = let+ spendingOutpoint__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "spending_outpoint"+ (Data.ProtoLens.MessageField Data.ProtoLens.MessageType ::+ Data.ProtoLens.FieldTypeDescriptor Outpoint)+ (Data.ProtoLens.OptionalField+ (Data.ProtoLens.Field.field @"maybe'spendingOutpoint")) ::+ Data.ProtoLens.FieldDescriptor SpendDetails+ rawSpendingTx__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "raw_spending_tx"+ (Data.ProtoLens.ScalarField Data.ProtoLens.BytesField ::+ Data.ProtoLens.FieldTypeDescriptor Data.ByteString.ByteString)+ (Data.ProtoLens.PlainField+ Data.ProtoLens.Optional+ (Data.ProtoLens.Field.field @"rawSpendingTx")) ::+ Data.ProtoLens.FieldDescriptor SpendDetails+ spendingTxHash__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "spending_tx_hash"+ (Data.ProtoLens.ScalarField Data.ProtoLens.BytesField ::+ Data.ProtoLens.FieldTypeDescriptor Data.ByteString.ByteString)+ (Data.ProtoLens.PlainField+ Data.ProtoLens.Optional+ (Data.ProtoLens.Field.field @"spendingTxHash")) ::+ Data.ProtoLens.FieldDescriptor SpendDetails+ spendingInputIndex__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "spending_input_index"+ (Data.ProtoLens.ScalarField Data.ProtoLens.UInt32Field ::+ Data.ProtoLens.FieldTypeDescriptor Data.Word.Word32)+ (Data.ProtoLens.PlainField+ Data.ProtoLens.Optional+ (Data.ProtoLens.Field.field @"spendingInputIndex")) ::+ Data.ProtoLens.FieldDescriptor SpendDetails+ spendingHeight__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "spending_height"+ (Data.ProtoLens.ScalarField Data.ProtoLens.UInt32Field ::+ Data.ProtoLens.FieldTypeDescriptor Data.Word.Word32)+ (Data.ProtoLens.PlainField+ Data.ProtoLens.Optional+ (Data.ProtoLens.Field.field @"spendingHeight")) ::+ Data.ProtoLens.FieldDescriptor SpendDetails+ in+ Data.Map.fromList+ [(Data.ProtoLens.Tag 1, spendingOutpoint__field_descriptor),+ (Data.ProtoLens.Tag 2, rawSpendingTx__field_descriptor),+ (Data.ProtoLens.Tag 3, spendingTxHash__field_descriptor),+ (Data.ProtoLens.Tag 4, spendingInputIndex__field_descriptor),+ (Data.ProtoLens.Tag 5, spendingHeight__field_descriptor)]+ unknownFields+ = Lens.Family2.Unchecked.lens+ _SpendDetails'_unknownFields+ (\ x__ y__ -> x__ {_SpendDetails'_unknownFields = y__})+ defMessage+ = SpendDetails'_constructor+ {_SpendDetails'spendingOutpoint = Prelude.Nothing,+ _SpendDetails'rawSpendingTx = Data.ProtoLens.fieldDefault,+ _SpendDetails'spendingTxHash = Data.ProtoLens.fieldDefault,+ _SpendDetails'spendingInputIndex = Data.ProtoLens.fieldDefault,+ _SpendDetails'spendingHeight = Data.ProtoLens.fieldDefault,+ _SpendDetails'_unknownFields = []}+ parseMessage+ = let+ loop ::+ SpendDetails -> Data.ProtoLens.Encoding.Bytes.Parser SpendDetails+ loop x+ = do end <- Data.ProtoLens.Encoding.Bytes.atEnd+ if end then+ do (let missing = []+ in+ if Prelude.null missing then+ Prelude.return ()+ else+ Prelude.fail+ ((Prelude.++)+ "Missing required fields: "+ (Prelude.show (missing :: [Prelude.String]))))+ Prelude.return+ (Lens.Family2.over+ Data.ProtoLens.unknownFields (\ !t -> Prelude.reverse t) x)+ else+ do tag <- Data.ProtoLens.Encoding.Bytes.getVarInt+ case tag of+ 10+ -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (do len <- Data.ProtoLens.Encoding.Bytes.getVarInt+ Data.ProtoLens.Encoding.Bytes.isolate+ (Prelude.fromIntegral len) Data.ProtoLens.parseMessage)+ "spending_outpoint"+ loop+ (Lens.Family2.set+ (Data.ProtoLens.Field.field @"spendingOutpoint") y x)+ 18+ -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (do len <- Data.ProtoLens.Encoding.Bytes.getVarInt+ Data.ProtoLens.Encoding.Bytes.getBytes+ (Prelude.fromIntegral len))+ "raw_spending_tx"+ loop+ (Lens.Family2.set+ (Data.ProtoLens.Field.field @"rawSpendingTx") y x)+ 26+ -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (do len <- Data.ProtoLens.Encoding.Bytes.getVarInt+ Data.ProtoLens.Encoding.Bytes.getBytes+ (Prelude.fromIntegral len))+ "spending_tx_hash"+ loop+ (Lens.Family2.set+ (Data.ProtoLens.Field.field @"spendingTxHash") y x)+ 32+ -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (Prelude.fmap+ Prelude.fromIntegral+ Data.ProtoLens.Encoding.Bytes.getVarInt)+ "spending_input_index"+ loop+ (Lens.Family2.set+ (Data.ProtoLens.Field.field @"spendingInputIndex") y x)+ 40+ -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (Prelude.fmap+ Prelude.fromIntegral+ Data.ProtoLens.Encoding.Bytes.getVarInt)+ "spending_height"+ loop+ (Lens.Family2.set+ (Data.ProtoLens.Field.field @"spendingHeight") y x)+ wire+ -> do !y <- Data.ProtoLens.Encoding.Wire.parseTaggedValueFromWire+ wire+ loop+ (Lens.Family2.over+ Data.ProtoLens.unknownFields (\ !t -> (:) y t) x)+ in+ (Data.ProtoLens.Encoding.Bytes.<?>)+ (do loop Data.ProtoLens.defMessage) "SpendDetails"+ buildMessage+ = \ _x+ -> (Data.Monoid.<>)+ (case+ Lens.Family2.view+ (Data.ProtoLens.Field.field @"maybe'spendingOutpoint") _x+ of+ Prelude.Nothing -> Data.Monoid.mempty+ (Prelude.Just _v)+ -> (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 10)+ ((Prelude..)+ (\ bs+ -> (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt+ (Prelude.fromIntegral (Data.ByteString.length bs)))+ (Data.ProtoLens.Encoding.Bytes.putBytes bs))+ Data.ProtoLens.encodeMessage _v))+ ((Data.Monoid.<>)+ (let+ _v+ = Lens.Family2.view+ (Data.ProtoLens.Field.field @"rawSpendingTx") _x+ in+ if (Prelude.==) _v Data.ProtoLens.fieldDefault then+ Data.Monoid.mempty+ else+ (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 18)+ ((\ bs+ -> (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt+ (Prelude.fromIntegral (Data.ByteString.length bs)))+ (Data.ProtoLens.Encoding.Bytes.putBytes bs))+ _v))+ ((Data.Monoid.<>)+ (let+ _v+ = Lens.Family2.view+ (Data.ProtoLens.Field.field @"spendingTxHash") _x+ in+ if (Prelude.==) _v Data.ProtoLens.fieldDefault then+ Data.Monoid.mempty+ else+ (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 26)+ ((\ bs+ -> (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt+ (Prelude.fromIntegral (Data.ByteString.length bs)))+ (Data.ProtoLens.Encoding.Bytes.putBytes bs))+ _v))+ ((Data.Monoid.<>)+ (let+ _v+ = Lens.Family2.view+ (Data.ProtoLens.Field.field @"spendingInputIndex") _x+ in+ if (Prelude.==) _v Data.ProtoLens.fieldDefault then+ Data.Monoid.mempty+ else+ (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 32)+ ((Prelude..)+ Data.ProtoLens.Encoding.Bytes.putVarInt Prelude.fromIntegral _v))+ ((Data.Monoid.<>)+ (let+ _v+ = Lens.Family2.view+ (Data.ProtoLens.Field.field @"spendingHeight") _x+ in+ if (Prelude.==) _v Data.ProtoLens.fieldDefault then+ Data.Monoid.mempty+ else+ (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 40)+ ((Prelude..)+ Data.ProtoLens.Encoding.Bytes.putVarInt Prelude.fromIntegral+ _v))+ (Data.ProtoLens.Encoding.Wire.buildFieldSet+ (Lens.Family2.view Data.ProtoLens.unknownFields _x))))))+instance Control.DeepSeq.NFData SpendDetails where+ rnf+ = \ x__+ -> Control.DeepSeq.deepseq+ (_SpendDetails'_unknownFields x__)+ (Control.DeepSeq.deepseq+ (_SpendDetails'spendingOutpoint x__)+ (Control.DeepSeq.deepseq+ (_SpendDetails'rawSpendingTx x__)+ (Control.DeepSeq.deepseq+ (_SpendDetails'spendingTxHash x__)+ (Control.DeepSeq.deepseq+ (_SpendDetails'spendingInputIndex x__)+ (Control.DeepSeq.deepseq (_SpendDetails'spendingHeight x__) ())))))+{- | Fields :+ + * 'Proto.Chainrpc.Chainnotifier_Fields.maybe'event' @:: Lens' SpendEvent (Prelude.Maybe SpendEvent'Event)@+ * 'Proto.Chainrpc.Chainnotifier_Fields.maybe'spend' @:: Lens' SpendEvent (Prelude.Maybe SpendDetails)@+ * 'Proto.Chainrpc.Chainnotifier_Fields.spend' @:: Lens' SpendEvent SpendDetails@+ * 'Proto.Chainrpc.Chainnotifier_Fields.maybe'reorg' @:: Lens' SpendEvent (Prelude.Maybe Reorg)@+ * 'Proto.Chainrpc.Chainnotifier_Fields.reorg' @:: Lens' SpendEvent Reorg@ -}+data SpendEvent+ = SpendEvent'_constructor {_SpendEvent'event :: !(Prelude.Maybe SpendEvent'Event),+ _SpendEvent'_unknownFields :: !Data.ProtoLens.FieldSet}+ deriving stock (Prelude.Eq, Prelude.Ord, GHC.Generics.Generic)+instance Prelude.Show SpendEvent where+ showsPrec _ __x __s+ = Prelude.showChar+ '{'+ (Prelude.showString+ (Data.ProtoLens.showMessageShort __x) (Prelude.showChar '}' __s))+instance Text.PrettyPrint.GenericPretty.Out SpendEvent+data SpendEvent'Event+ = SpendEvent'Spend !SpendDetails | SpendEvent'Reorg !Reorg+ deriving stock (Prelude.Show,+ Prelude.Eq,+ Prelude.Ord,+ GHC.Generics.Generic)+instance Text.PrettyPrint.GenericPretty.Out SpendEvent'Event+instance Data.ProtoLens.Field.HasField SpendEvent "maybe'event" (Prelude.Maybe SpendEvent'Event) where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _SpendEvent'event (\ x__ y__ -> x__ {_SpendEvent'event = y__}))+ Prelude.id+instance Data.ProtoLens.Field.HasField SpendEvent "maybe'spend" (Prelude.Maybe SpendDetails) where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _SpendEvent'event (\ x__ y__ -> x__ {_SpendEvent'event = y__}))+ (Lens.Family2.Unchecked.lens+ (\ x__+ -> case x__ of+ (Prelude.Just (SpendEvent'Spend x__val)) -> Prelude.Just x__val+ _otherwise -> Prelude.Nothing)+ (\ _ y__ -> Prelude.fmap SpendEvent'Spend y__))+instance Data.ProtoLens.Field.HasField SpendEvent "spend" SpendDetails where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _SpendEvent'event (\ x__ y__ -> x__ {_SpendEvent'event = y__}))+ ((Prelude..)+ (Lens.Family2.Unchecked.lens+ (\ x__+ -> case x__ of+ (Prelude.Just (SpendEvent'Spend x__val)) -> Prelude.Just x__val+ _otherwise -> Prelude.Nothing)+ (\ _ y__ -> Prelude.fmap SpendEvent'Spend y__))+ (Data.ProtoLens.maybeLens Data.ProtoLens.defMessage))+instance Data.ProtoLens.Field.HasField SpendEvent "maybe'reorg" (Prelude.Maybe Reorg) where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _SpendEvent'event (\ x__ y__ -> x__ {_SpendEvent'event = y__}))+ (Lens.Family2.Unchecked.lens+ (\ x__+ -> case x__ of+ (Prelude.Just (SpendEvent'Reorg x__val)) -> Prelude.Just x__val+ _otherwise -> Prelude.Nothing)+ (\ _ y__ -> Prelude.fmap SpendEvent'Reorg y__))+instance Data.ProtoLens.Field.HasField SpendEvent "reorg" Reorg where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _SpendEvent'event (\ x__ y__ -> x__ {_SpendEvent'event = y__}))+ ((Prelude..)+ (Lens.Family2.Unchecked.lens+ (\ x__+ -> case x__ of+ (Prelude.Just (SpendEvent'Reorg x__val)) -> Prelude.Just x__val+ _otherwise -> Prelude.Nothing)+ (\ _ y__ -> Prelude.fmap SpendEvent'Reorg y__))+ (Data.ProtoLens.maybeLens Data.ProtoLens.defMessage))+instance Data.ProtoLens.Message SpendEvent where+ messageName _ = Data.Text.pack "chainrpc.SpendEvent"+ packedMessageDescriptor _+ = "\n\+ \\n\+ \SpendEvent\DC2.\n\+ \\ENQspend\CAN\SOH \SOH(\v2\SYN.chainrpc.SpendDetailsH\NULR\ENQspend\DC2'\n\+ \\ENQreorg\CAN\STX \SOH(\v2\SI.chainrpc.ReorgH\NULR\ENQreorgB\a\n\+ \\ENQevent"+ packedFileDescriptor _ = packedFileDescriptor+ fieldsByTag+ = let+ spend__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "spend"+ (Data.ProtoLens.MessageField Data.ProtoLens.MessageType ::+ Data.ProtoLens.FieldTypeDescriptor SpendDetails)+ (Data.ProtoLens.OptionalField+ (Data.ProtoLens.Field.field @"maybe'spend")) ::+ Data.ProtoLens.FieldDescriptor SpendEvent+ reorg__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "reorg"+ (Data.ProtoLens.MessageField Data.ProtoLens.MessageType ::+ Data.ProtoLens.FieldTypeDescriptor Reorg)+ (Data.ProtoLens.OptionalField+ (Data.ProtoLens.Field.field @"maybe'reorg")) ::+ Data.ProtoLens.FieldDescriptor SpendEvent+ in+ Data.Map.fromList+ [(Data.ProtoLens.Tag 1, spend__field_descriptor),+ (Data.ProtoLens.Tag 2, reorg__field_descriptor)]+ unknownFields+ = Lens.Family2.Unchecked.lens+ _SpendEvent'_unknownFields+ (\ x__ y__ -> x__ {_SpendEvent'_unknownFields = y__})+ defMessage+ = SpendEvent'_constructor+ {_SpendEvent'event = Prelude.Nothing,+ _SpendEvent'_unknownFields = []}+ parseMessage+ = let+ loop ::+ SpendEvent -> Data.ProtoLens.Encoding.Bytes.Parser SpendEvent+ loop x+ = do end <- Data.ProtoLens.Encoding.Bytes.atEnd+ if end then+ do (let missing = []+ in+ if Prelude.null missing then+ Prelude.return ()+ else+ Prelude.fail+ ((Prelude.++)+ "Missing required fields: "+ (Prelude.show (missing :: [Prelude.String]))))+ Prelude.return+ (Lens.Family2.over+ Data.ProtoLens.unknownFields (\ !t -> Prelude.reverse t) x)+ else+ do tag <- Data.ProtoLens.Encoding.Bytes.getVarInt+ case tag of+ 10+ -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (do len <- Data.ProtoLens.Encoding.Bytes.getVarInt+ Data.ProtoLens.Encoding.Bytes.isolate+ (Prelude.fromIntegral len) Data.ProtoLens.parseMessage)+ "spend"+ loop (Lens.Family2.set (Data.ProtoLens.Field.field @"spend") y x)+ 18+ -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (do len <- Data.ProtoLens.Encoding.Bytes.getVarInt+ Data.ProtoLens.Encoding.Bytes.isolate+ (Prelude.fromIntegral len) Data.ProtoLens.parseMessage)+ "reorg"+ loop (Lens.Family2.set (Data.ProtoLens.Field.field @"reorg") y x)+ wire+ -> do !y <- Data.ProtoLens.Encoding.Wire.parseTaggedValueFromWire+ wire+ loop+ (Lens.Family2.over+ Data.ProtoLens.unknownFields (\ !t -> (:) y t) x)+ in+ (Data.ProtoLens.Encoding.Bytes.<?>)+ (do loop Data.ProtoLens.defMessage) "SpendEvent"+ buildMessage+ = \ _x+ -> (Data.Monoid.<>)+ (case+ Lens.Family2.view (Data.ProtoLens.Field.field @"maybe'event") _x+ of+ Prelude.Nothing -> Data.Monoid.mempty+ (Prelude.Just (SpendEvent'Spend v))+ -> (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 10)+ ((Prelude..)+ (\ bs+ -> (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt+ (Prelude.fromIntegral (Data.ByteString.length bs)))+ (Data.ProtoLens.Encoding.Bytes.putBytes bs))+ Data.ProtoLens.encodeMessage v)+ (Prelude.Just (SpendEvent'Reorg v))+ -> (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 18)+ ((Prelude..)+ (\ bs+ -> (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt+ (Prelude.fromIntegral (Data.ByteString.length bs)))+ (Data.ProtoLens.Encoding.Bytes.putBytes bs))+ Data.ProtoLens.encodeMessage v))+ (Data.ProtoLens.Encoding.Wire.buildFieldSet+ (Lens.Family2.view Data.ProtoLens.unknownFields _x))+instance Control.DeepSeq.NFData SpendEvent where+ rnf+ = \ x__+ -> Control.DeepSeq.deepseq+ (_SpendEvent'_unknownFields x__)+ (Control.DeepSeq.deepseq (_SpendEvent'event x__) ())+instance Control.DeepSeq.NFData SpendEvent'Event where+ rnf (SpendEvent'Spend x__) = Control.DeepSeq.rnf x__+ rnf (SpendEvent'Reorg x__) = Control.DeepSeq.rnf x__+_SpendEvent'Spend ::+ Data.ProtoLens.Prism.Prism' SpendEvent'Event SpendDetails+_SpendEvent'Spend+ = Data.ProtoLens.Prism.prism'+ SpendEvent'Spend+ (\ p__+ -> case p__ of+ (SpendEvent'Spend p__val) -> Prelude.Just p__val+ _otherwise -> Prelude.Nothing)+_SpendEvent'Reorg ::+ Data.ProtoLens.Prism.Prism' SpendEvent'Event Reorg+_SpendEvent'Reorg+ = Data.ProtoLens.Prism.prism'+ SpendEvent'Reorg+ (\ p__+ -> case p__ of+ (SpendEvent'Reorg p__val) -> Prelude.Just p__val+ _otherwise -> Prelude.Nothing)+{- | Fields :+ + * 'Proto.Chainrpc.Chainnotifier_Fields.outpoint' @:: Lens' SpendRequest Outpoint@+ * 'Proto.Chainrpc.Chainnotifier_Fields.maybe'outpoint' @:: Lens' SpendRequest (Prelude.Maybe Outpoint)@+ * 'Proto.Chainrpc.Chainnotifier_Fields.script' @:: Lens' SpendRequest Data.ByteString.ByteString@+ * 'Proto.Chainrpc.Chainnotifier_Fields.heightHint' @:: Lens' SpendRequest Data.Word.Word32@ -}+data SpendRequest+ = SpendRequest'_constructor {_SpendRequest'outpoint :: !(Prelude.Maybe Outpoint),+ _SpendRequest'script :: !Data.ByteString.ByteString,+ _SpendRequest'heightHint :: !Data.Word.Word32,+ _SpendRequest'_unknownFields :: !Data.ProtoLens.FieldSet}+ deriving stock (Prelude.Eq, Prelude.Ord, GHC.Generics.Generic)+instance Prelude.Show SpendRequest where+ showsPrec _ __x __s+ = Prelude.showChar+ '{'+ (Prelude.showString+ (Data.ProtoLens.showMessageShort __x) (Prelude.showChar '}' __s))+instance Text.PrettyPrint.GenericPretty.Out SpendRequest+instance Data.ProtoLens.Field.HasField SpendRequest "outpoint" Outpoint where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _SpendRequest'outpoint+ (\ x__ y__ -> x__ {_SpendRequest'outpoint = y__}))+ (Data.ProtoLens.maybeLens Data.ProtoLens.defMessage)+instance Data.ProtoLens.Field.HasField SpendRequest "maybe'outpoint" (Prelude.Maybe Outpoint) where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _SpendRequest'outpoint+ (\ x__ y__ -> x__ {_SpendRequest'outpoint = y__}))+ Prelude.id+instance Data.ProtoLens.Field.HasField SpendRequest "script" Data.ByteString.ByteString where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _SpendRequest'script+ (\ x__ y__ -> x__ {_SpendRequest'script = y__}))+ Prelude.id+instance Data.ProtoLens.Field.HasField SpendRequest "heightHint" Data.Word.Word32 where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _SpendRequest'heightHint+ (\ x__ y__ -> x__ {_SpendRequest'heightHint = y__}))+ Prelude.id+instance Data.ProtoLens.Message SpendRequest where+ messageName _ = Data.Text.pack "chainrpc.SpendRequest"+ packedMessageDescriptor _+ = "\n\+ \\fSpendRequest\DC2.\n\+ \\boutpoint\CAN\SOH \SOH(\v2\DC2.chainrpc.OutpointR\boutpoint\DC2\SYN\n\+ \\ACKscript\CAN\STX \SOH(\fR\ACKscript\DC2\US\n\+ \\vheight_hint\CAN\ETX \SOH(\rR\n\+ \heightHint"+ packedFileDescriptor _ = packedFileDescriptor+ fieldsByTag+ = let+ outpoint__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "outpoint"+ (Data.ProtoLens.MessageField Data.ProtoLens.MessageType ::+ Data.ProtoLens.FieldTypeDescriptor Outpoint)+ (Data.ProtoLens.OptionalField+ (Data.ProtoLens.Field.field @"maybe'outpoint")) ::+ Data.ProtoLens.FieldDescriptor SpendRequest+ script__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "script"+ (Data.ProtoLens.ScalarField Data.ProtoLens.BytesField ::+ Data.ProtoLens.FieldTypeDescriptor Data.ByteString.ByteString)+ (Data.ProtoLens.PlainField+ Data.ProtoLens.Optional (Data.ProtoLens.Field.field @"script")) ::+ Data.ProtoLens.FieldDescriptor SpendRequest+ heightHint__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "height_hint"+ (Data.ProtoLens.ScalarField Data.ProtoLens.UInt32Field ::+ Data.ProtoLens.FieldTypeDescriptor Data.Word.Word32)+ (Data.ProtoLens.PlainField+ Data.ProtoLens.Optional+ (Data.ProtoLens.Field.field @"heightHint")) ::+ Data.ProtoLens.FieldDescriptor SpendRequest+ in+ Data.Map.fromList+ [(Data.ProtoLens.Tag 1, outpoint__field_descriptor),+ (Data.ProtoLens.Tag 2, script__field_descriptor),+ (Data.ProtoLens.Tag 3, heightHint__field_descriptor)]+ unknownFields+ = Lens.Family2.Unchecked.lens+ _SpendRequest'_unknownFields+ (\ x__ y__ -> x__ {_SpendRequest'_unknownFields = y__})+ defMessage+ = SpendRequest'_constructor+ {_SpendRequest'outpoint = Prelude.Nothing,+ _SpendRequest'script = Data.ProtoLens.fieldDefault,+ _SpendRequest'heightHint = Data.ProtoLens.fieldDefault,+ _SpendRequest'_unknownFields = []}+ parseMessage+ = let+ loop ::+ SpendRequest -> Data.ProtoLens.Encoding.Bytes.Parser SpendRequest+ loop x+ = do end <- Data.ProtoLens.Encoding.Bytes.atEnd+ if end then+ do (let missing = []+ in+ if Prelude.null missing then+ Prelude.return ()+ else+ Prelude.fail+ ((Prelude.++)+ "Missing required fields: "+ (Prelude.show (missing :: [Prelude.String]))))+ Prelude.return+ (Lens.Family2.over+ Data.ProtoLens.unknownFields (\ !t -> Prelude.reverse t) x)+ else+ do tag <- Data.ProtoLens.Encoding.Bytes.getVarInt+ case tag of+ 10+ -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (do len <- Data.ProtoLens.Encoding.Bytes.getVarInt+ Data.ProtoLens.Encoding.Bytes.isolate+ (Prelude.fromIntegral len) Data.ProtoLens.parseMessage)+ "outpoint"+ loop+ (Lens.Family2.set (Data.ProtoLens.Field.field @"outpoint") y x)+ 18+ -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (do len <- Data.ProtoLens.Encoding.Bytes.getVarInt+ Data.ProtoLens.Encoding.Bytes.getBytes+ (Prelude.fromIntegral len))+ "script"+ loop (Lens.Family2.set (Data.ProtoLens.Field.field @"script") y x)+ 24+ -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (Prelude.fmap+ Prelude.fromIntegral+ Data.ProtoLens.Encoding.Bytes.getVarInt)+ "height_hint"+ loop+ (Lens.Family2.set (Data.ProtoLens.Field.field @"heightHint") y x)+ wire+ -> do !y <- Data.ProtoLens.Encoding.Wire.parseTaggedValueFromWire+ wire+ loop+ (Lens.Family2.over+ Data.ProtoLens.unknownFields (\ !t -> (:) y t) x)+ in+ (Data.ProtoLens.Encoding.Bytes.<?>)+ (do loop Data.ProtoLens.defMessage) "SpendRequest"+ buildMessage+ = \ _x+ -> (Data.Monoid.<>)+ (case+ Lens.Family2.view (Data.ProtoLens.Field.field @"maybe'outpoint") _x+ of+ Prelude.Nothing -> Data.Monoid.mempty+ (Prelude.Just _v)+ -> (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 10)+ ((Prelude..)+ (\ bs+ -> (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt+ (Prelude.fromIntegral (Data.ByteString.length bs)))+ (Data.ProtoLens.Encoding.Bytes.putBytes bs))+ Data.ProtoLens.encodeMessage _v))+ ((Data.Monoid.<>)+ (let+ _v = Lens.Family2.view (Data.ProtoLens.Field.field @"script") _x+ in+ if (Prelude.==) _v Data.ProtoLens.fieldDefault then+ Data.Monoid.mempty+ else+ (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 18)+ ((\ bs+ -> (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt+ (Prelude.fromIntegral (Data.ByteString.length bs)))+ (Data.ProtoLens.Encoding.Bytes.putBytes bs))+ _v))+ ((Data.Monoid.<>)+ (let+ _v+ = Lens.Family2.view (Data.ProtoLens.Field.field @"heightHint") _x+ in+ if (Prelude.==) _v Data.ProtoLens.fieldDefault then+ Data.Monoid.mempty+ else+ (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 24)+ ((Prelude..)+ Data.ProtoLens.Encoding.Bytes.putVarInt Prelude.fromIntegral _v))+ (Data.ProtoLens.Encoding.Wire.buildFieldSet+ (Lens.Family2.view Data.ProtoLens.unknownFields _x))))+instance Control.DeepSeq.NFData SpendRequest where+ rnf+ = \ x__+ -> Control.DeepSeq.deepseq+ (_SpendRequest'_unknownFields x__)+ (Control.DeepSeq.deepseq+ (_SpendRequest'outpoint x__)+ (Control.DeepSeq.deepseq+ (_SpendRequest'script x__)+ (Control.DeepSeq.deepseq (_SpendRequest'heightHint x__) ())))+data ChainNotifier = ChainNotifier {}+instance Data.ProtoLens.Service.Types.Service ChainNotifier where+ type ServiceName ChainNotifier = "ChainNotifier"+ type ServicePackage ChainNotifier = "chainrpc"+ type ServiceMethods ChainNotifier = '["registerBlockEpochNtfn",+ "registerConfirmationsNtfn",+ "registerSpendNtfn"]+ packedServiceDescriptor _+ = "\n\+ \\rChainNotifier\DC2I\n\+ \\EMRegisterConfirmationsNtfn\DC2\NAK.chainrpc.ConfRequest\SUB\DC3.chainrpc.ConfEvent0\SOH\DC2C\n\+ \\DC1RegisterSpendNtfn\DC2\SYN.chainrpc.SpendRequest\SUB\DC4.chainrpc.SpendEvent0\SOH\DC2F\n\+ \\SYNRegisterBlockEpochNtfn\DC2\DC4.chainrpc.BlockEpoch\SUB\DC4.chainrpc.BlockEpoch0\SOH"+instance Data.ProtoLens.Service.Types.HasMethodImpl ChainNotifier "registerConfirmationsNtfn" where+ type MethodName ChainNotifier "registerConfirmationsNtfn" = "RegisterConfirmationsNtfn"+ type MethodInput ChainNotifier "registerConfirmationsNtfn" = ConfRequest+ type MethodOutput ChainNotifier "registerConfirmationsNtfn" = ConfEvent+ type MethodStreamingType ChainNotifier "registerConfirmationsNtfn" = 'Data.ProtoLens.Service.Types.ServerStreaming+instance Data.ProtoLens.Service.Types.HasMethodImpl ChainNotifier "registerSpendNtfn" where+ type MethodName ChainNotifier "registerSpendNtfn" = "RegisterSpendNtfn"+ type MethodInput ChainNotifier "registerSpendNtfn" = SpendRequest+ type MethodOutput ChainNotifier "registerSpendNtfn" = SpendEvent+ type MethodStreamingType ChainNotifier "registerSpendNtfn" = 'Data.ProtoLens.Service.Types.ServerStreaming+instance Data.ProtoLens.Service.Types.HasMethodImpl ChainNotifier "registerBlockEpochNtfn" where+ type MethodName ChainNotifier "registerBlockEpochNtfn" = "RegisterBlockEpochNtfn"+ type MethodInput ChainNotifier "registerBlockEpochNtfn" = BlockEpoch+ type MethodOutput ChainNotifier "registerBlockEpochNtfn" = BlockEpoch+ type MethodStreamingType ChainNotifier "registerBlockEpochNtfn" = 'Data.ProtoLens.Service.Types.ServerStreaming+packedFileDescriptor :: Data.ByteString.ByteString+packedFileDescriptor+ = "\n\+ \\FSchainrpc/chainnotifier.proto\DC2\bchainrpc\"w\n\+ \\vConfRequest\DC2\DC2\n\+ \\EOTtxid\CAN\SOH \SOH(\fR\EOTtxid\DC2\SYN\n\+ \\ACKscript\CAN\STX \SOH(\fR\ACKscript\DC2\ESC\n\+ \\tnum_confs\CAN\ETX \SOH(\rR\bnumConfs\DC2\US\n\+ \\vheight_hint\CAN\EOT \SOH(\rR\n\+ \heightHint\"\129\SOH\n\+ \\vConfDetails\DC2\NAK\n\+ \\ACKraw_tx\CAN\SOH \SOH(\fR\ENQrawTx\DC2\GS\n\+ \\n\+ \block_hash\CAN\STX \SOH(\fR\tblockHash\DC2!\n\+ \\fblock_height\CAN\ETX \SOH(\rR\vblockHeight\DC2\EM\n\+ \\btx_index\CAN\EOT \SOH(\rR\atxIndex\"\a\n\+ \\ENQReorg\"j\n\+ \\tConfEvent\DC2+\n\+ \\EOTconf\CAN\SOH \SOH(\v2\NAK.chainrpc.ConfDetailsH\NULR\EOTconf\DC2'\n\+ \\ENQreorg\CAN\STX \SOH(\v2\SI.chainrpc.ReorgH\NULR\ENQreorgB\a\n\+ \\ENQevent\"4\n\+ \\bOutpoint\DC2\DC2\n\+ \\EOThash\CAN\SOH \SOH(\fR\EOThash\DC2\DC4\n\+ \\ENQindex\CAN\STX \SOH(\rR\ENQindex\"w\n\+ \\fSpendRequest\DC2.\n\+ \\boutpoint\CAN\SOH \SOH(\v2\DC2.chainrpc.OutpointR\boutpoint\DC2\SYN\n\+ \\ACKscript\CAN\STX \SOH(\fR\ACKscript\DC2\US\n\+ \\vheight_hint\CAN\ETX \SOH(\rR\n\+ \heightHint\"\252\SOH\n\+ \\fSpendDetails\DC2?\n\+ \\DC1spending_outpoint\CAN\SOH \SOH(\v2\DC2.chainrpc.OutpointR\DLEspendingOutpoint\DC2&\n\+ \\SIraw_spending_tx\CAN\STX \SOH(\fR\rrawSpendingTx\DC2(\n\+ \\DLEspending_tx_hash\CAN\ETX \SOH(\fR\SOspendingTxHash\DC20\n\+ \\DC4spending_input_index\CAN\EOT \SOH(\rR\DC2spendingInputIndex\DC2'\n\+ \\SIspending_height\CAN\ENQ \SOH(\rR\SOspendingHeight\"n\n\+ \\n\+ \SpendEvent\DC2.\n\+ \\ENQspend\CAN\SOH \SOH(\v2\SYN.chainrpc.SpendDetailsH\NULR\ENQspend\DC2'\n\+ \\ENQreorg\CAN\STX \SOH(\v2\SI.chainrpc.ReorgH\NULR\ENQreorgB\a\n\+ \\ENQevent\"8\n\+ \\n\+ \BlockEpoch\DC2\DC2\n\+ \\EOThash\CAN\SOH \SOH(\fR\EOThash\DC2\SYN\n\+ \\ACKheight\CAN\STX \SOH(\rR\ACKheight2\231\SOH\n\+ \\rChainNotifier\DC2I\n\+ \\EMRegisterConfirmationsNtfn\DC2\NAK.chainrpc.ConfRequest\SUB\DC3.chainrpc.ConfEvent0\SOH\DC2C\n\+ \\DC1RegisterSpendNtfn\DC2\SYN.chainrpc.SpendRequest\SUB\DC4.chainrpc.SpendEvent0\SOH\DC2F\n\+ \\SYNRegisterBlockEpochNtfn\DC2\DC4.chainrpc.BlockEpoch\SUB\DC4.chainrpc.BlockEpoch0\SOHB0Z.github.com/lightningnetwork/lnd/lnrpc/chainrpcJ\171-\n\+ \\a\DC2\ENQ\NUL\NUL\181\SOH\SOH\n\+ \\b\n\+ \\SOH\f\DC2\ETX\NUL\NUL\DC2\n\+ \\b\n\+ \\SOH\STX\DC2\ETX\STX\NUL\DC1\n\+ \\b\n\+ \\SOH\b\DC2\ETX\EOT\NULE\n\+ \\t\n\+ \\STX\b\v\DC2\ETX\EOT\NULE\n\+ \\145\SOH\n\+ \\STX\ACK\NUL\DC2\EOT\b\NUL*\SOH\SUB\132\SOH ChainNotifier is a service that can be used to get information about the\n\+ \ chain backend by registering notifiers for chain events.\n\+ \\n\+ \\n\+ \\n\+ \\ETX\ACK\NUL\SOH\DC2\ETX\b\b\NAK\n\+ \\250\STX\n\+ \\EOT\ACK\NUL\STX\NUL\DC2\ETX\DC2\EOTK\SUB\236\STX\n\+ \RegisterConfirmationsNtfn is a synchronous response-streaming RPC that\n\+ \registers an intent for a client to be notified once a confirmation request\n\+ \has reached its required number of confirmations on-chain.\n\+ \\n\+ \A client can specify whether the confirmation request should be for a\n\+ \particular transaction by its hash or for an output script by specifying a\n\+ \zero hash.\n\+ \\n\+ \\f\n\+ \\ENQ\ACK\NUL\STX\NUL\SOH\DC2\ETX\DC2\b!\n\+ \\f\n\+ \\ENQ\ACK\NUL\STX\NUL\STX\DC2\ETX\DC2#.\n\+ \\f\n\+ \\ENQ\ACK\NUL\STX\NUL\ACK\DC2\ETX\DC29?\n\+ \\f\n\+ \\ENQ\ACK\NUL\STX\NUL\ETX\DC2\ETX\DC2@I\n\+ \\224\STX\n\+ \\EOT\ACK\NUL\STX\SOH\DC2\ETX\FS\EOTE\SUB\210\STX\n\+ \RegisterSpendNtfn is a synchronous response-streaming RPC that registers an\n\+ \intent for a client to be notification once a spend request has been spent\n\+ \by a transaction that has confirmed on-chain.\n\+ \\n\+ \A client can specify whether the spend request should be for a particular\n\+ \outpoint or for an output script by specifying a zero outpoint.\n\+ \\n\+ \\f\n\+ \\ENQ\ACK\NUL\STX\SOH\SOH\DC2\ETX\FS\b\EM\n\+ \\f\n\+ \\ENQ\ACK\NUL\STX\SOH\STX\DC2\ETX\FS\ESC'\n\+ \\f\n\+ \\ENQ\ACK\NUL\STX\SOH\ACK\DC2\ETX\FS28\n\+ \\f\n\+ \\ENQ\ACK\NUL\STX\SOH\ETX\DC2\ETX\FS9C\n\+ \\185\EOT\n\+ \\EOT\ACK\NUL\STX\STX\DC2\ETX)\EOTH\SUB\171\EOT\n\+ \RegisterBlockEpochNtfn is a synchronous response-streaming RPC that\n\+ \registers an intent for a client to be notified of blocks in the chain. The\n\+ \stream will return a hash and height tuple of a block for each new/stale\n\+ \block in the chain. It is the client's responsibility to determine whether\n\+ \the tuple returned is for a new or stale block in the chain.\n\+ \\n\+ \A client can also request a historical backlog of blocks from a particular\n\+ \point. This allows clients to be idempotent by ensuring that they do not\n\+ \missing processing a single block within the chain.\n\+ \\n\+ \\f\n\+ \\ENQ\ACK\NUL\STX\STX\SOH\DC2\ETX)\b\RS\n\+ \\f\n\+ \\ENQ\ACK\NUL\STX\STX\STX\DC2\ETX) *\n\+ \\f\n\+ \\ENQ\ACK\NUL\STX\STX\ACK\DC2\ETX)5;\n\+ \\f\n\+ \\ENQ\ACK\NUL\STX\STX\ETX\DC2\ETX)<F\n\+ \\n\+ \\n\+ \\STX\EOT\NUL\DC2\EOT,\NULH\SOH\n\+ \\n\+ \\n\+ \\ETX\EOT\NUL\SOH\DC2\ETX,\b\DC3\n\+ \\205\SOH\n\+ \\EOT\EOT\NUL\STX\NUL\DC2\ETX2\EOT\DC3\SUB\191\SOH\n\+ \The transaction hash for which we should request a confirmation notification\n\+ \for. If set to a hash of all zeros, then the confirmation notification will\n\+ \be requested for the script instead.\n\+ \\n\+ \\f\n\+ \\ENQ\EOT\NUL\STX\NUL\ENQ\DC2\ETX2\EOT\t\n\+ \\f\n\+ \\ENQ\EOT\NUL\STX\NUL\SOH\DC2\ETX2\n\+ \\SO\n\+ \\f\n\+ \\ENQ\EOT\NUL\STX\NUL\ETX\DC2\ETX2\DC1\DC2\n\+ \\136\STX\n\+ \\EOT\EOT\NUL\STX\SOH\DC2\ETX:\EOT\NAK\SUB\250\SOH\n\+ \An output script within a transaction with the hash above which will be used\n\+ \by light clients to match block filters. If the transaction hash is set to a\n\+ \hash of all zeros, then a confirmation notification will be requested for\n\+ \this script instead.\n\+ \\n\+ \\f\n\+ \\ENQ\EOT\NUL\STX\SOH\ENQ\DC2\ETX:\EOT\t\n\+ \\f\n\+ \\ENQ\EOT\NUL\STX\SOH\SOH\DC2\ETX:\n\+ \\DLE\n\+ \\f\n\+ \\ENQ\EOT\NUL\STX\SOH\ETX\DC2\ETX:\DC3\DC4\n\+ \\142\SOH\n\+ \\EOT\EOT\NUL\STX\STX\DC2\ETX@\EOT\EM\SUB\128\SOH\n\+ \The number of desired confirmations the transaction/output script should\n\+ \reach before dispatching a confirmation notification.\n\+ \\n\+ \\f\n\+ \\ENQ\EOT\NUL\STX\STX\ENQ\DC2\ETX@\EOT\n\+ \\n\+ \\f\n\+ \\ENQ\EOT\NUL\STX\STX\SOH\DC2\ETX@\v\DC4\n\+ \\f\n\+ \\ENQ\EOT\NUL\STX\STX\ETX\DC2\ETX@\ETB\CAN\n\+ \\216\SOH\n\+ \\EOT\EOT\NUL\STX\ETX\DC2\ETXG\EOT\ESC\SUB\202\SOH\n\+ \The earliest height in the chain for which the transaction/output script\n\+ \could have been included in a block. This should in most cases be set to the\n\+ \broadcast height of the transaction/output script.\n\+ \\n\+ \\f\n\+ \\ENQ\EOT\NUL\STX\ETX\ENQ\DC2\ETXG\EOT\n\+ \\n\+ \\f\n\+ \\ENQ\EOT\NUL\STX\ETX\SOH\DC2\ETXG\v\SYN\n\+ \\f\n\+ \\ENQ\EOT\NUL\STX\ETX\ETX\DC2\ETXG\EM\SUB\n\+ \\n\+ \\n\+ \\STX\EOT\SOH\DC2\EOTJ\NULW\SOH\n\+ \\n\+ \\n\+ \\ETX\EOT\SOH\SOH\DC2\ETXJ\b\DC3\n\+ \:\n\+ \\EOT\EOT\SOH\STX\NUL\DC2\ETXL\EOT\NAK\SUB- The raw bytes of the confirmed transaction.\n\+ \\n\+ \\f\n\+ \\ENQ\EOT\SOH\STX\NUL\ENQ\DC2\ETXL\EOT\t\n\+ \\f\n\+ \\ENQ\EOT\SOH\STX\NUL\SOH\DC2\ETXL\n\+ \\DLE\n\+ \\f\n\+ \\ENQ\EOT\SOH\STX\NUL\ETX\DC2\ETXL\DC3\DC4\n\+ \X\n\+ \\EOT\EOT\SOH\STX\SOH\DC2\ETXO\EOT\EM\SUBK The hash of the block in which the confirmed transaction was included in.\n\+ \\n\+ \\f\n\+ \\ENQ\EOT\SOH\STX\SOH\ENQ\DC2\ETXO\EOT\t\n\+ \\f\n\+ \\ENQ\EOT\SOH\STX\SOH\SOH\DC2\ETXO\n\+ \\DC4\n\+ \\f\n\+ \\ENQ\EOT\SOH\STX\SOH\ETX\DC2\ETXO\ETB\CAN\n\+ \[\n\+ \\EOT\EOT\SOH\STX\STX\DC2\ETXS\EOT\FS\SUBN The height of the block in which the confirmed transaction was included\n\+ \ in.\n\+ \\n\+ \\f\n\+ \\ENQ\EOT\SOH\STX\STX\ENQ\DC2\ETXS\EOT\n\+ \\n\+ \\f\n\+ \\ENQ\EOT\SOH\STX\STX\SOH\DC2\ETXS\v\ETB\n\+ \\f\n\+ \\ENQ\EOT\SOH\STX\STX\ETX\DC2\ETXS\SUB\ESC\n\+ \M\n\+ \\EOT\EOT\SOH\STX\ETX\DC2\ETXV\EOT\CAN\SUB@ The index of the confirmed transaction within the transaction.\n\+ \\n\+ \\f\n\+ \\ENQ\EOT\SOH\STX\ETX\ENQ\DC2\ETXV\EOT\n\+ \\n\+ \\f\n\+ \\ENQ\EOT\SOH\STX\ETX\SOH\DC2\ETXV\v\DC3\n\+ \\f\n\+ \\ENQ\EOT\SOH\STX\ETX\ETX\DC2\ETXV\SYN\ETB\n\+ \L\n\+ \\STX\EOT\STX\DC2\EOTY\NUL[\SOH\"@ TODO(wilmer): need to know how the client will use this first.\n\+ \\n\+ \\n\+ \\n\+ \\ETX\EOT\STX\SOH\DC2\ETXY\b\r\n\+ \\n\+ \\n\+ \\STX\EOT\ETX\DC2\EOT]\NULk\SOH\n\+ \\n\+ \\n\+ \\ETX\EOT\ETX\SOH\DC2\ETX]\b\DC1\n\+ \\f\n\+ \\EOT\EOT\ETX\b\NUL\DC2\EOT^\EOTj\ENQ\n\+ \\f\n\+ \\ENQ\EOT\ETX\b\NUL\SOH\DC2\ETX^\n\+ \\SI\n\+ \b\n\+ \\EOT\EOT\ETX\STX\NUL\DC2\ETXc\b\GS\SUBU\n\+ \An event that includes the confirmation details of the request\n\+ \(txid/ouput script).\n\+ \\n\+ \\f\n\+ \\ENQ\EOT\ETX\STX\NUL\ACK\DC2\ETXc\b\DC3\n\+ \\f\n\+ \\ENQ\EOT\ETX\STX\NUL\SOH\DC2\ETXc\DC4\CAN\n\+ \\f\n\+ \\ENQ\EOT\ETX\STX\NUL\ETX\DC2\ETXc\ESC\FS\n\+ \]\n\+ \\EOT\EOT\ETX\STX\SOH\DC2\ETXi\b\CAN\SUBP\n\+ \An event send when the transaction of the request is reorged out of the\n\+ \chain.\n\+ \\n\+ \\f\n\+ \\ENQ\EOT\ETX\STX\SOH\ACK\DC2\ETXi\b\r\n\+ \\f\n\+ \\ENQ\EOT\ETX\STX\SOH\SOH\DC2\ETXi\SO\DC3\n\+ \\f\n\+ \\ENQ\EOT\ETX\STX\SOH\ETX\DC2\ETXi\SYN\ETB\n\+ \\n\+ \\n\+ \\STX\EOT\EOT\DC2\EOTm\NULs\SOH\n\+ \\n\+ \\n\+ \\ETX\EOT\EOT\SOH\DC2\ETXm\b\DLE\n\+ \+\n\+ \\EOT\EOT\EOT\STX\NUL\DC2\ETXo\EOT\DC3\SUB\RS The hash of the transaction.\n\+ \\n\+ \\f\n\+ \\ENQ\EOT\EOT\STX\NUL\ENQ\DC2\ETXo\EOT\t\n\+ \\f\n\+ \\ENQ\EOT\EOT\STX\NUL\SOH\DC2\ETXo\n\+ \\SO\n\+ \\f\n\+ \\ENQ\EOT\EOT\STX\NUL\ETX\DC2\ETXo\DC1\DC2\n\+ \>\n\+ \\EOT\EOT\EOT\STX\SOH\DC2\ETXr\EOT\NAK\SUB1 The index of the output within the transaction.\n\+ \\n\+ \\f\n\+ \\ENQ\EOT\EOT\STX\SOH\ENQ\DC2\ETXr\EOT\n\+ \\n\+ \\f\n\+ \\ENQ\EOT\EOT\STX\SOH\SOH\DC2\ETXr\v\DLE\n\+ \\f\n\+ \\ENQ\EOT\EOT\STX\SOH\ETX\DC2\ETXr\DC3\DC4\n\+ \\v\n\+ \\STX\EOT\ENQ\DC2\ENQu\NUL\140\SOH\SOH\n\+ \\n\+ \\n\+ \\ETX\EOT\ENQ\SOH\DC2\ETXu\b\DC4\n\+ \\179\SOH\n\+ \\EOT\EOT\ENQ\STX\NUL\DC2\ETX{\EOT\SUB\SUB\165\SOH\n\+ \The outpoint for which we should request a spend notification for. If set to\n\+ \a zero outpoint, then the spend notification will be requested for the\n\+ \script instead.\n\+ \\n\+ \\f\n\+ \\ENQ\EOT\ENQ\STX\NUL\ACK\DC2\ETX{\EOT\f\n\+ \\f\n\+ \\ENQ\EOT\ENQ\STX\NUL\SOH\DC2\ETX{\r\NAK\n\+ \\f\n\+ \\ENQ\EOT\ENQ\STX\NUL\ETX\DC2\ETX{\CAN\EM\n\+ \\229\SOH\n\+ \\EOT\EOT\ENQ\STX\SOH\DC2\EOT\130\SOH\EOT\NAK\SUB\214\SOH\n\+ \The output script for the outpoint above. This will be used by light clients\n\+ \to match block filters. If the outpoint is set to a zero outpoint, then a\n\+ \spend notification will be requested for this script instead.\n\+ \\n\+ \\r\n\+ \\ENQ\EOT\ENQ\STX\SOH\ENQ\DC2\EOT\130\SOH\EOT\t\n\+ \\r\n\+ \\ENQ\EOT\ENQ\STX\SOH\SOH\DC2\EOT\130\SOH\n\+ \\DLE\n\+ \\r\n\+ \\ENQ\EOT\ENQ\STX\SOH\ETX\DC2\EOT\130\SOH\DC3\DC4\n\+ \\197\SOH\n\+ \\EOT\EOT\ENQ\STX\STX\DC2\EOT\137\SOH\EOT\ESC\SUB\182\SOH\n\+ \The earliest height in the chain for which the outpoint/output script could\n\+ \have been spent. This should in most cases be set to the broadcast height of\n\+ \the outpoint/output script.\n\+ \\n\+ \\r\n\+ \\ENQ\EOT\ENQ\STX\STX\ENQ\DC2\EOT\137\SOH\EOT\n\+ \\n\+ \\r\n\+ \\ENQ\EOT\ENQ\STX\STX\SOH\DC2\EOT\137\SOH\v\SYN\n\+ \\r\n\+ \\ENQ\EOT\ENQ\STX\STX\ETX\DC2\EOT\137\SOH\EM\SUB\n\+ \\f\n\+ \\STX\EOT\ACK\DC2\ACK\142\SOH\NUL\157\SOH\SOH\n\+ \\v\n\+ \\ETX\EOT\ACK\SOH\DC2\EOT\142\SOH\b\DC4\n\+ \,\n\+ \\EOT\EOT\ACK\STX\NUL\DC2\EOT\144\SOH\EOT#\SUB\RS The outpoint was that spent.\n\+ \\n\+ \\r\n\+ \\ENQ\EOT\ACK\STX\NUL\ACK\DC2\EOT\144\SOH\EOT\f\n\+ \\r\n\+ \\ENQ\EOT\ACK\STX\NUL\SOH\DC2\EOT\144\SOH\r\RS\n\+ \\r\n\+ \\ENQ\EOT\ACK\STX\NUL\ETX\DC2\EOT\144\SOH!\"\n\+ \:\n\+ \\EOT\EOT\ACK\STX\SOH\DC2\EOT\147\SOH\EOT\RS\SUB, The raw bytes of the spending transaction.\n\+ \\n\+ \\r\n\+ \\ENQ\EOT\ACK\STX\SOH\ENQ\DC2\EOT\147\SOH\EOT\t\n\+ \\r\n\+ \\ENQ\EOT\ACK\STX\SOH\SOH\DC2\EOT\147\SOH\n\+ \\EM\n\+ \\r\n\+ \\ENQ\EOT\ACK\STX\SOH\ETX\DC2\EOT\147\SOH\FS\GS\n\+ \5\n\+ \\EOT\EOT\ACK\STX\STX\DC2\EOT\150\SOH\EOT\US\SUB' The hash of the spending transaction.\n\+ \\n\+ \\r\n\+ \\ENQ\EOT\ACK\STX\STX\ENQ\DC2\EOT\150\SOH\EOT\t\n\+ \\r\n\+ \\ENQ\EOT\ACK\STX\STX\SOH\DC2\EOT\150\SOH\n\+ \\SUB\n\+ \\r\n\+ \\ENQ\EOT\ACK\STX\STX\ETX\DC2\EOT\150\SOH\GS\RS\n\+ \W\n\+ \\EOT\EOT\ACK\STX\ETX\DC2\EOT\153\SOH\EOT$\SUBI The input of the spending transaction that fulfilled the spend request.\n\+ \\n\+ \\r\n\+ \\ENQ\EOT\ACK\STX\ETX\ENQ\DC2\EOT\153\SOH\EOT\n\+ \\n\+ \\r\n\+ \\ENQ\EOT\ACK\STX\ETX\SOH\DC2\EOT\153\SOH\v\US\n\+ \\r\n\+ \\ENQ\EOT\ACK\STX\ETX\ETX\DC2\EOT\153\SOH\"#\n\+ \U\n\+ \\EOT\EOT\ACK\STX\EOT\DC2\EOT\156\SOH\EOT\US\SUBG The height at which the spending transaction was included in a block.\n\+ \\n\+ \\r\n\+ \\ENQ\EOT\ACK\STX\EOT\ENQ\DC2\EOT\156\SOH\EOT\n\+ \\n\+ \\r\n\+ \\ENQ\EOT\ACK\STX\EOT\SOH\DC2\EOT\156\SOH\v\SUB\n\+ \\r\n\+ \\ENQ\EOT\ACK\STX\EOT\ETX\DC2\EOT\156\SOH\GS\RS\n\+ \\f\n\+ \\STX\EOT\a\DC2\ACK\159\SOH\NUL\173\SOH\SOH\n\+ \\v\n\+ \\ETX\EOT\a\SOH\DC2\EOT\159\SOH\b\DC2\n\+ \\SO\n\+ \\EOT\EOT\a\b\NUL\DC2\ACK\160\SOH\EOT\172\SOH\ENQ\n\+ \\r\n\+ \\ENQ\EOT\a\b\NUL\SOH\DC2\EOT\160\SOH\n\+ \\SI\n\+ \w\n\+ \\EOT\EOT\a\STX\NUL\DC2\EOT\165\SOH\b\US\SUBi\n\+ \An event that includes the details of the spending transaction of the\n\+ \request (outpoint/output script).\n\+ \\n\+ \\r\n\+ \\ENQ\EOT\a\STX\NUL\ACK\DC2\EOT\165\SOH\b\DC4\n\+ \\r\n\+ \\ENQ\EOT\a\STX\NUL\SOH\DC2\EOT\165\SOH\NAK\SUB\n\+ \\r\n\+ \\ENQ\EOT\a\STX\NUL\ETX\DC2\EOT\165\SOH\GS\RS\n\+ \h\n\+ \\EOT\EOT\a\STX\SOH\DC2\EOT\171\SOH\b\CAN\SUBZ\n\+ \An event sent when the spending transaction of the request was\n\+ \reorged out of the chain.\n\+ \\n\+ \\r\n\+ \\ENQ\EOT\a\STX\SOH\ACK\DC2\EOT\171\SOH\b\r\n\+ \\r\n\+ \\ENQ\EOT\a\STX\SOH\SOH\DC2\EOT\171\SOH\SO\DC3\n\+ \\r\n\+ \\ENQ\EOT\a\STX\SOH\ETX\DC2\EOT\171\SOH\SYN\ETB\n\+ \\f\n\+ \\STX\EOT\b\DC2\ACK\175\SOH\NUL\181\SOH\SOH\n\+ \\v\n\+ \\ETX\EOT\b\SOH\DC2\EOT\175\SOH\b\DC2\n\+ \&\n\+ \\EOT\EOT\b\STX\NUL\DC2\EOT\177\SOH\EOT\DC3\SUB\CAN The hash of the block.\n\+ \\n\+ \\r\n\+ \\ENQ\EOT\b\STX\NUL\ENQ\DC2\EOT\177\SOH\EOT\t\n\+ \\r\n\+ \\ENQ\EOT\b\STX\NUL\SOH\DC2\EOT\177\SOH\n\+ \\SO\n\+ \\r\n\+ \\ENQ\EOT\b\STX\NUL\ETX\DC2\EOT\177\SOH\DC1\DC2\n\+ \(\n\+ \\EOT\EOT\b\STX\SOH\DC2\EOT\180\SOH\EOT\SYN\SUB\SUB The height of the block.\n\+ \\n\+ \\r\n\+ \\ENQ\EOT\b\STX\SOH\ENQ\DC2\EOT\180\SOH\EOT\n\+ \\n\+ \\r\n\+ \\ENQ\EOT\b\STX\SOH\SOH\DC2\EOT\180\SOH\v\DC1\n\+ \\r\n\+ \\ENQ\EOT\b\STX\SOH\ETX\DC2\EOT\180\SOH\DC4\NAKb\ACKproto3"
@@ -0,0 +1,177 @@+{- This file was auto-generated from chainrpc/chainnotifier.proto by the proto-lens-protoc program. -}+{-# LANGUAGE ScopedTypeVariables, DataKinds, TypeFamilies, UndecidableInstances, GeneralizedNewtypeDeriving, MultiParamTypeClasses, FlexibleContexts, FlexibleInstances, PatternSynonyms, MagicHash, NoImplicitPrelude, BangPatterns, TypeApplications, OverloadedStrings, DerivingStrategies, DeriveGeneric#-}+{-# OPTIONS_GHC -Wno-unused-imports#-}+{-# OPTIONS_GHC -Wno-duplicate-exports#-}+{-# OPTIONS_GHC -Wno-dodgy-exports#-}+module Proto.Chainrpc.Chainnotifier_Fields where+import qualified Data.ProtoLens.Runtime.Prelude as Prelude+import qualified Data.ProtoLens.Runtime.Data.Int as Data.Int+import qualified Data.ProtoLens.Runtime.Data.Monoid as Data.Monoid+import qualified Data.ProtoLens.Runtime.Data.Word as Data.Word+import qualified Data.ProtoLens.Runtime.Data.ProtoLens as Data.ProtoLens+import qualified Data.ProtoLens.Runtime.Data.ProtoLens.Encoding.Bytes as Data.ProtoLens.Encoding.Bytes+import qualified Data.ProtoLens.Runtime.Data.ProtoLens.Encoding.Growing as Data.ProtoLens.Encoding.Growing+import qualified Data.ProtoLens.Runtime.Data.ProtoLens.Encoding.Parser.Unsafe as Data.ProtoLens.Encoding.Parser.Unsafe+import qualified Data.ProtoLens.Runtime.Data.ProtoLens.Encoding.Wire as Data.ProtoLens.Encoding.Wire+import qualified Data.ProtoLens.Runtime.Data.ProtoLens.Field as Data.ProtoLens.Field+import qualified Data.ProtoLens.Runtime.Data.ProtoLens.Message.Enum as Data.ProtoLens.Message.Enum+import qualified Data.ProtoLens.Runtime.Data.ProtoLens.Service.Types as Data.ProtoLens.Service.Types+import qualified Data.ProtoLens.Runtime.Lens.Family2 as Lens.Family2+import qualified Data.ProtoLens.Runtime.Lens.Family2.Unchecked as Lens.Family2.Unchecked+import qualified Data.ProtoLens.Runtime.Data.Text as Data.Text+import qualified Data.ProtoLens.Runtime.Data.Map as Data.Map+import qualified Data.ProtoLens.Runtime.Data.ByteString as Data.ByteString+import qualified Data.ProtoLens.Runtime.Data.ByteString.Char8 as Data.ByteString.Char8+import qualified Data.ProtoLens.Runtime.Data.Text.Encoding as Data.Text.Encoding+import qualified Data.ProtoLens.Runtime.Data.Vector as Data.Vector+import qualified Data.ProtoLens.Runtime.Data.Vector.Generic as Data.Vector.Generic+import qualified Data.ProtoLens.Runtime.Data.Vector.Unboxed as Data.Vector.Unboxed+import qualified Data.ProtoLens.Runtime.Text.Read as Text.Read+blockHash ::+ forall f s a.+ (Prelude.Functor f,+ Data.ProtoLens.Field.HasField s "blockHash" a) =>+ Lens.Family2.LensLike' f s a+blockHash = Data.ProtoLens.Field.field @"blockHash"+blockHeight ::+ forall f s a.+ (Prelude.Functor f,+ Data.ProtoLens.Field.HasField s "blockHeight" a) =>+ Lens.Family2.LensLike' f s a+blockHeight = Data.ProtoLens.Field.field @"blockHeight"+conf ::+ forall f s a.+ (Prelude.Functor f, Data.ProtoLens.Field.HasField s "conf" a) =>+ Lens.Family2.LensLike' f s a+conf = Data.ProtoLens.Field.field @"conf"+hash ::+ forall f s a.+ (Prelude.Functor f, Data.ProtoLens.Field.HasField s "hash" a) =>+ Lens.Family2.LensLike' f s a+hash = Data.ProtoLens.Field.field @"hash"+height ::+ forall f s a.+ (Prelude.Functor f, Data.ProtoLens.Field.HasField s "height" a) =>+ Lens.Family2.LensLike' f s a+height = Data.ProtoLens.Field.field @"height"+heightHint ::+ forall f s a.+ (Prelude.Functor f,+ Data.ProtoLens.Field.HasField s "heightHint" a) =>+ Lens.Family2.LensLike' f s a+heightHint = Data.ProtoLens.Field.field @"heightHint"+index ::+ forall f s a.+ (Prelude.Functor f, Data.ProtoLens.Field.HasField s "index" a) =>+ Lens.Family2.LensLike' f s a+index = Data.ProtoLens.Field.field @"index"+maybe'conf ::+ forall f s a.+ (Prelude.Functor f,+ Data.ProtoLens.Field.HasField s "maybe'conf" a) =>+ Lens.Family2.LensLike' f s a+maybe'conf = Data.ProtoLens.Field.field @"maybe'conf"+maybe'event ::+ forall f s a.+ (Prelude.Functor f,+ Data.ProtoLens.Field.HasField s "maybe'event" a) =>+ Lens.Family2.LensLike' f s a+maybe'event = Data.ProtoLens.Field.field @"maybe'event"+maybe'outpoint ::+ forall f s a.+ (Prelude.Functor f,+ Data.ProtoLens.Field.HasField s "maybe'outpoint" a) =>+ Lens.Family2.LensLike' f s a+maybe'outpoint = Data.ProtoLens.Field.field @"maybe'outpoint"+maybe'reorg ::+ forall f s a.+ (Prelude.Functor f,+ Data.ProtoLens.Field.HasField s "maybe'reorg" a) =>+ Lens.Family2.LensLike' f s a+maybe'reorg = Data.ProtoLens.Field.field @"maybe'reorg"+maybe'spend ::+ forall f s a.+ (Prelude.Functor f,+ Data.ProtoLens.Field.HasField s "maybe'spend" a) =>+ Lens.Family2.LensLike' f s a+maybe'spend = Data.ProtoLens.Field.field @"maybe'spend"+maybe'spendingOutpoint ::+ forall f s a.+ (Prelude.Functor f,+ Data.ProtoLens.Field.HasField s "maybe'spendingOutpoint" a) =>+ Lens.Family2.LensLike' f s a+maybe'spendingOutpoint+ = Data.ProtoLens.Field.field @"maybe'spendingOutpoint"+numConfs ::+ forall f s a.+ (Prelude.Functor f,+ Data.ProtoLens.Field.HasField s "numConfs" a) =>+ Lens.Family2.LensLike' f s a+numConfs = Data.ProtoLens.Field.field @"numConfs"+outpoint ::+ forall f s a.+ (Prelude.Functor f,+ Data.ProtoLens.Field.HasField s "outpoint" a) =>+ Lens.Family2.LensLike' f s a+outpoint = Data.ProtoLens.Field.field @"outpoint"+rawSpendingTx ::+ forall f s a.+ (Prelude.Functor f,+ Data.ProtoLens.Field.HasField s "rawSpendingTx" a) =>+ Lens.Family2.LensLike' f s a+rawSpendingTx = Data.ProtoLens.Field.field @"rawSpendingTx"+rawTx ::+ forall f s a.+ (Prelude.Functor f, Data.ProtoLens.Field.HasField s "rawTx" a) =>+ Lens.Family2.LensLike' f s a+rawTx = Data.ProtoLens.Field.field @"rawTx"+reorg ::+ forall f s a.+ (Prelude.Functor f, Data.ProtoLens.Field.HasField s "reorg" a) =>+ Lens.Family2.LensLike' f s a+reorg = Data.ProtoLens.Field.field @"reorg"+script ::+ forall f s a.+ (Prelude.Functor f, Data.ProtoLens.Field.HasField s "script" a) =>+ Lens.Family2.LensLike' f s a+script = Data.ProtoLens.Field.field @"script"+spend ::+ forall f s a.+ (Prelude.Functor f, Data.ProtoLens.Field.HasField s "spend" a) =>+ Lens.Family2.LensLike' f s a+spend = Data.ProtoLens.Field.field @"spend"+spendingHeight ::+ forall f s a.+ (Prelude.Functor f,+ Data.ProtoLens.Field.HasField s "spendingHeight" a) =>+ Lens.Family2.LensLike' f s a+spendingHeight = Data.ProtoLens.Field.field @"spendingHeight"+spendingInputIndex ::+ forall f s a.+ (Prelude.Functor f,+ Data.ProtoLens.Field.HasField s "spendingInputIndex" a) =>+ Lens.Family2.LensLike' f s a+spendingInputIndex+ = Data.ProtoLens.Field.field @"spendingInputIndex"+spendingOutpoint ::+ forall f s a.+ (Prelude.Functor f,+ Data.ProtoLens.Field.HasField s "spendingOutpoint" a) =>+ Lens.Family2.LensLike' f s a+spendingOutpoint = Data.ProtoLens.Field.field @"spendingOutpoint"+spendingTxHash ::+ forall f s a.+ (Prelude.Functor f,+ Data.ProtoLens.Field.HasField s "spendingTxHash" a) =>+ Lens.Family2.LensLike' f s a+spendingTxHash = Data.ProtoLens.Field.field @"spendingTxHash"+txIndex ::+ forall f s a.+ (Prelude.Functor f, Data.ProtoLens.Field.HasField s "txIndex" a) =>+ Lens.Family2.LensLike' f s a+txIndex = Data.ProtoLens.Field.field @"txIndex"+txid ::+ forall f s a.+ (Prelude.Functor f, Data.ProtoLens.Field.HasField s "txid" a) =>+ Lens.Family2.LensLike' f s a+txid = Data.ProtoLens.Field.field @"txid"
@@ -1,1568 +0,0 @@-{- This file was auto-generated from invoice_grpc.proto by the proto-lens-protoc program. -}-{-# LANGUAGE ScopedTypeVariables, DataKinds, TypeFamilies, UndecidableInstances, GeneralizedNewtypeDeriving, MultiParamTypeClasses, FlexibleContexts, FlexibleInstances, PatternSynonyms, MagicHash, NoImplicitPrelude, DataKinds, BangPatterns, TypeApplications, OverloadedStrings, DerivingStrategies#-}-{-# OPTIONS_GHC -Wno-unused-imports#-}-{-# OPTIONS_GHC -Wno-duplicate-exports#-}-{-# OPTIONS_GHC -Wno-dodgy-exports#-}-module Proto.InvoiceGrpc (- Invoices(..), AddHoldInvoiceRequest(), AddHoldInvoiceResp(),- CancelInvoiceMsg(), CancelInvoiceResp(), SettleInvoiceMsg(),- SettleInvoiceResp(), SubscribeSingleInvoiceRequest()- ) where-import qualified Data.ProtoLens.Runtime.Control.DeepSeq as Control.DeepSeq-import qualified Data.ProtoLens.Runtime.Data.ProtoLens.Prism as Data.ProtoLens.Prism-import qualified Data.ProtoLens.Runtime.Prelude as Prelude-import qualified Data.ProtoLens.Runtime.Data.Int as Data.Int-import qualified Data.ProtoLens.Runtime.Data.Monoid as Data.Monoid-import qualified Data.ProtoLens.Runtime.Data.Word as Data.Word-import qualified Data.ProtoLens.Runtime.Data.ProtoLens as Data.ProtoLens-import qualified Data.ProtoLens.Runtime.Data.ProtoLens.Encoding.Bytes as Data.ProtoLens.Encoding.Bytes-import qualified Data.ProtoLens.Runtime.Data.ProtoLens.Encoding.Growing as Data.ProtoLens.Encoding.Growing-import qualified Data.ProtoLens.Runtime.Data.ProtoLens.Encoding.Parser.Unsafe as Data.ProtoLens.Encoding.Parser.Unsafe-import qualified Data.ProtoLens.Runtime.Data.ProtoLens.Encoding.Wire as Data.ProtoLens.Encoding.Wire-import qualified Data.ProtoLens.Runtime.Data.ProtoLens.Field as Data.ProtoLens.Field-import qualified Data.ProtoLens.Runtime.Data.ProtoLens.Message.Enum as Data.ProtoLens.Message.Enum-import qualified Data.ProtoLens.Runtime.Data.ProtoLens.Service.Types as Data.ProtoLens.Service.Types-import qualified Data.ProtoLens.Runtime.Lens.Family2 as Lens.Family2-import qualified Data.ProtoLens.Runtime.Lens.Family2.Unchecked as Lens.Family2.Unchecked-import qualified Data.ProtoLens.Runtime.Data.Text as Data.Text-import qualified Data.ProtoLens.Runtime.Data.Map as Data.Map-import qualified Data.ProtoLens.Runtime.Data.ByteString as Data.ByteString-import qualified Data.ProtoLens.Runtime.Data.ByteString.Char8 as Data.ByteString.Char8-import qualified Data.ProtoLens.Runtime.Data.Text.Encoding as Data.Text.Encoding-import qualified Data.ProtoLens.Runtime.Data.Vector as Data.Vector-import qualified Data.ProtoLens.Runtime.Data.Vector.Generic as Data.Vector.Generic-import qualified Data.ProtoLens.Runtime.Data.Vector.Unboxed as Data.Vector.Unboxed-import qualified Data.ProtoLens.Runtime.Text.Read as Text.Read-import qualified Proto.LndGrpc-{- | Fields :- - * 'Proto.InvoiceGrpc_Fields.memo' @:: Lens' AddHoldInvoiceRequest Data.Text.Text@- * 'Proto.InvoiceGrpc_Fields.hash' @:: Lens' AddHoldInvoiceRequest Data.ByteString.ByteString@- * 'Proto.InvoiceGrpc_Fields.value' @:: Lens' AddHoldInvoiceRequest Data.Int.Int64@- * 'Proto.InvoiceGrpc_Fields.valueMsat' @:: Lens' AddHoldInvoiceRequest Data.Int.Int64@- * 'Proto.InvoiceGrpc_Fields.descriptionHash' @:: Lens' AddHoldInvoiceRequest Data.ByteString.ByteString@- * 'Proto.InvoiceGrpc_Fields.expiry' @:: Lens' AddHoldInvoiceRequest Data.Int.Int64@- * 'Proto.InvoiceGrpc_Fields.fallbackAddr' @:: Lens' AddHoldInvoiceRequest Data.Text.Text@- * 'Proto.InvoiceGrpc_Fields.cltvExpiry' @:: Lens' AddHoldInvoiceRequest Data.Word.Word64@- * 'Proto.InvoiceGrpc_Fields.routeHints' @:: Lens' AddHoldInvoiceRequest [Proto.LndGrpc.RouteHint]@- * 'Proto.InvoiceGrpc_Fields.vec'routeHints' @:: Lens' AddHoldInvoiceRequest (Data.Vector.Vector Proto.LndGrpc.RouteHint)@- * 'Proto.InvoiceGrpc_Fields.private' @:: Lens' AddHoldInvoiceRequest Prelude.Bool@ -}-data AddHoldInvoiceRequest- = AddHoldInvoiceRequest'_constructor {_AddHoldInvoiceRequest'memo :: !Data.Text.Text,- _AddHoldInvoiceRequest'hash :: !Data.ByteString.ByteString,- _AddHoldInvoiceRequest'value :: !Data.Int.Int64,- _AddHoldInvoiceRequest'valueMsat :: !Data.Int.Int64,- _AddHoldInvoiceRequest'descriptionHash :: !Data.ByteString.ByteString,- _AddHoldInvoiceRequest'expiry :: !Data.Int.Int64,- _AddHoldInvoiceRequest'fallbackAddr :: !Data.Text.Text,- _AddHoldInvoiceRequest'cltvExpiry :: !Data.Word.Word64,- _AddHoldInvoiceRequest'routeHints :: !(Data.Vector.Vector Proto.LndGrpc.RouteHint),- _AddHoldInvoiceRequest'private :: !Prelude.Bool,- _AddHoldInvoiceRequest'_unknownFields :: !Data.ProtoLens.FieldSet}- deriving stock (Prelude.Eq, Prelude.Ord)-instance Prelude.Show AddHoldInvoiceRequest where- showsPrec _ __x __s- = Prelude.showChar- '{'- (Prelude.showString- (Data.ProtoLens.showMessageShort __x) (Prelude.showChar '}' __s))-instance Data.ProtoLens.Field.HasField AddHoldInvoiceRequest "memo" Data.Text.Text where- fieldOf _- = (Prelude..)- (Lens.Family2.Unchecked.lens- _AddHoldInvoiceRequest'memo- (\ x__ y__ -> x__ {_AddHoldInvoiceRequest'memo = y__}))- Prelude.id-instance Data.ProtoLens.Field.HasField AddHoldInvoiceRequest "hash" Data.ByteString.ByteString where- fieldOf _- = (Prelude..)- (Lens.Family2.Unchecked.lens- _AddHoldInvoiceRequest'hash- (\ x__ y__ -> x__ {_AddHoldInvoiceRequest'hash = y__}))- Prelude.id-instance Data.ProtoLens.Field.HasField AddHoldInvoiceRequest "value" Data.Int.Int64 where- fieldOf _- = (Prelude..)- (Lens.Family2.Unchecked.lens- _AddHoldInvoiceRequest'value- (\ x__ y__ -> x__ {_AddHoldInvoiceRequest'value = y__}))- Prelude.id-instance Data.ProtoLens.Field.HasField AddHoldInvoiceRequest "valueMsat" Data.Int.Int64 where- fieldOf _- = (Prelude..)- (Lens.Family2.Unchecked.lens- _AddHoldInvoiceRequest'valueMsat- (\ x__ y__ -> x__ {_AddHoldInvoiceRequest'valueMsat = y__}))- Prelude.id-instance Data.ProtoLens.Field.HasField AddHoldInvoiceRequest "descriptionHash" Data.ByteString.ByteString where- fieldOf _- = (Prelude..)- (Lens.Family2.Unchecked.lens- _AddHoldInvoiceRequest'descriptionHash- (\ x__ y__ -> x__ {_AddHoldInvoiceRequest'descriptionHash = y__}))- Prelude.id-instance Data.ProtoLens.Field.HasField AddHoldInvoiceRequest "expiry" Data.Int.Int64 where- fieldOf _- = (Prelude..)- (Lens.Family2.Unchecked.lens- _AddHoldInvoiceRequest'expiry- (\ x__ y__ -> x__ {_AddHoldInvoiceRequest'expiry = y__}))- Prelude.id-instance Data.ProtoLens.Field.HasField AddHoldInvoiceRequest "fallbackAddr" Data.Text.Text where- fieldOf _- = (Prelude..)- (Lens.Family2.Unchecked.lens- _AddHoldInvoiceRequest'fallbackAddr- (\ x__ y__ -> x__ {_AddHoldInvoiceRequest'fallbackAddr = y__}))- Prelude.id-instance Data.ProtoLens.Field.HasField AddHoldInvoiceRequest "cltvExpiry" Data.Word.Word64 where- fieldOf _- = (Prelude..)- (Lens.Family2.Unchecked.lens- _AddHoldInvoiceRequest'cltvExpiry- (\ x__ y__ -> x__ {_AddHoldInvoiceRequest'cltvExpiry = y__}))- Prelude.id-instance Data.ProtoLens.Field.HasField AddHoldInvoiceRequest "routeHints" [Proto.LndGrpc.RouteHint] where- fieldOf _- = (Prelude..)- (Lens.Family2.Unchecked.lens- _AddHoldInvoiceRequest'routeHints- (\ x__ y__ -> x__ {_AddHoldInvoiceRequest'routeHints = y__}))- (Lens.Family2.Unchecked.lens- Data.Vector.Generic.toList- (\ _ y__ -> Data.Vector.Generic.fromList y__))-instance Data.ProtoLens.Field.HasField AddHoldInvoiceRequest "vec'routeHints" (Data.Vector.Vector Proto.LndGrpc.RouteHint) where- fieldOf _- = (Prelude..)- (Lens.Family2.Unchecked.lens- _AddHoldInvoiceRequest'routeHints- (\ x__ y__ -> x__ {_AddHoldInvoiceRequest'routeHints = y__}))- Prelude.id-instance Data.ProtoLens.Field.HasField AddHoldInvoiceRequest "private" Prelude.Bool where- fieldOf _- = (Prelude..)- (Lens.Family2.Unchecked.lens- _AddHoldInvoiceRequest'private- (\ x__ y__ -> x__ {_AddHoldInvoiceRequest'private = y__}))- Prelude.id-instance Data.ProtoLens.Message AddHoldInvoiceRequest where- messageName _ = Data.Text.pack "invoicesrpc.AddHoldInvoiceRequest"- packedMessageDescriptor _- = "\n\- \\NAKAddHoldInvoiceRequest\DC2\DC2\n\- \\EOTmemo\CAN\SOH \SOH(\tR\EOTmemo\DC2\DC2\n\- \\EOThash\CAN\STX \SOH(\fR\EOThash\DC2\DC4\n\- \\ENQvalue\CAN\ETX \SOH(\ETXR\ENQvalue\DC2\GS\n\- \\n\- \value_msat\CAN\n\- \ \SOH(\ETXR\tvalueMsat\DC2)\n\- \\DLEdescription_hash\CAN\EOT \SOH(\fR\SIdescriptionHash\DC2\SYN\n\- \\ACKexpiry\CAN\ENQ \SOH(\ETXR\ACKexpiry\DC2#\n\- \\rfallback_addr\CAN\ACK \SOH(\tR\ffallbackAddr\DC2\US\n\- \\vcltv_expiry\CAN\a \SOH(\EOTR\n\- \cltvExpiry\DC21\n\- \\vroute_hints\CAN\b \ETX(\v2\DLE.lnrpc.RouteHintR\n\- \routeHints\DC2\CAN\n\- \\aprivate\CAN\t \SOH(\bR\aprivate"- packedFileDescriptor _ = packedFileDescriptor- fieldsByTag- = let- memo__field_descriptor- = Data.ProtoLens.FieldDescriptor- "memo"- (Data.ProtoLens.ScalarField Data.ProtoLens.StringField ::- Data.ProtoLens.FieldTypeDescriptor Data.Text.Text)- (Data.ProtoLens.PlainField- Data.ProtoLens.Optional (Data.ProtoLens.Field.field @"memo")) ::- Data.ProtoLens.FieldDescriptor AddHoldInvoiceRequest- hash__field_descriptor- = Data.ProtoLens.FieldDescriptor- "hash"- (Data.ProtoLens.ScalarField Data.ProtoLens.BytesField ::- Data.ProtoLens.FieldTypeDescriptor Data.ByteString.ByteString)- (Data.ProtoLens.PlainField- Data.ProtoLens.Optional (Data.ProtoLens.Field.field @"hash")) ::- Data.ProtoLens.FieldDescriptor AddHoldInvoiceRequest- value__field_descriptor- = Data.ProtoLens.FieldDescriptor- "value"- (Data.ProtoLens.ScalarField Data.ProtoLens.Int64Field ::- Data.ProtoLens.FieldTypeDescriptor Data.Int.Int64)- (Data.ProtoLens.PlainField- Data.ProtoLens.Optional (Data.ProtoLens.Field.field @"value")) ::- Data.ProtoLens.FieldDescriptor AddHoldInvoiceRequest- valueMsat__field_descriptor- = Data.ProtoLens.FieldDescriptor- "value_msat"- (Data.ProtoLens.ScalarField Data.ProtoLens.Int64Field ::- Data.ProtoLens.FieldTypeDescriptor Data.Int.Int64)- (Data.ProtoLens.PlainField- Data.ProtoLens.Optional- (Data.ProtoLens.Field.field @"valueMsat")) ::- Data.ProtoLens.FieldDescriptor AddHoldInvoiceRequest- descriptionHash__field_descriptor- = Data.ProtoLens.FieldDescriptor- "description_hash"- (Data.ProtoLens.ScalarField Data.ProtoLens.BytesField ::- Data.ProtoLens.FieldTypeDescriptor Data.ByteString.ByteString)- (Data.ProtoLens.PlainField- Data.ProtoLens.Optional- (Data.ProtoLens.Field.field @"descriptionHash")) ::- Data.ProtoLens.FieldDescriptor AddHoldInvoiceRequest- expiry__field_descriptor- = Data.ProtoLens.FieldDescriptor- "expiry"- (Data.ProtoLens.ScalarField Data.ProtoLens.Int64Field ::- Data.ProtoLens.FieldTypeDescriptor Data.Int.Int64)- (Data.ProtoLens.PlainField- Data.ProtoLens.Optional (Data.ProtoLens.Field.field @"expiry")) ::- Data.ProtoLens.FieldDescriptor AddHoldInvoiceRequest- fallbackAddr__field_descriptor- = Data.ProtoLens.FieldDescriptor- "fallback_addr"- (Data.ProtoLens.ScalarField Data.ProtoLens.StringField ::- Data.ProtoLens.FieldTypeDescriptor Data.Text.Text)- (Data.ProtoLens.PlainField- Data.ProtoLens.Optional- (Data.ProtoLens.Field.field @"fallbackAddr")) ::- Data.ProtoLens.FieldDescriptor AddHoldInvoiceRequest- cltvExpiry__field_descriptor- = Data.ProtoLens.FieldDescriptor- "cltv_expiry"- (Data.ProtoLens.ScalarField Data.ProtoLens.UInt64Field ::- Data.ProtoLens.FieldTypeDescriptor Data.Word.Word64)- (Data.ProtoLens.PlainField- Data.ProtoLens.Optional- (Data.ProtoLens.Field.field @"cltvExpiry")) ::- Data.ProtoLens.FieldDescriptor AddHoldInvoiceRequest- routeHints__field_descriptor- = Data.ProtoLens.FieldDescriptor- "route_hints"- (Data.ProtoLens.MessageField Data.ProtoLens.MessageType ::- Data.ProtoLens.FieldTypeDescriptor Proto.LndGrpc.RouteHint)- (Data.ProtoLens.RepeatedField- Data.ProtoLens.Unpacked- (Data.ProtoLens.Field.field @"routeHints")) ::- Data.ProtoLens.FieldDescriptor AddHoldInvoiceRequest- private__field_descriptor- = Data.ProtoLens.FieldDescriptor- "private"- (Data.ProtoLens.ScalarField Data.ProtoLens.BoolField ::- Data.ProtoLens.FieldTypeDescriptor Prelude.Bool)- (Data.ProtoLens.PlainField- Data.ProtoLens.Optional (Data.ProtoLens.Field.field @"private")) ::- Data.ProtoLens.FieldDescriptor AddHoldInvoiceRequest- in- Data.Map.fromList- [(Data.ProtoLens.Tag 1, memo__field_descriptor),- (Data.ProtoLens.Tag 2, hash__field_descriptor),- (Data.ProtoLens.Tag 3, value__field_descriptor),- (Data.ProtoLens.Tag 10, valueMsat__field_descriptor),- (Data.ProtoLens.Tag 4, descriptionHash__field_descriptor),- (Data.ProtoLens.Tag 5, expiry__field_descriptor),- (Data.ProtoLens.Tag 6, fallbackAddr__field_descriptor),- (Data.ProtoLens.Tag 7, cltvExpiry__field_descriptor),- (Data.ProtoLens.Tag 8, routeHints__field_descriptor),- (Data.ProtoLens.Tag 9, private__field_descriptor)]- unknownFields- = Lens.Family2.Unchecked.lens- _AddHoldInvoiceRequest'_unknownFields- (\ x__ y__ -> x__ {_AddHoldInvoiceRequest'_unknownFields = y__})- defMessage- = AddHoldInvoiceRequest'_constructor- {_AddHoldInvoiceRequest'memo = Data.ProtoLens.fieldDefault,- _AddHoldInvoiceRequest'hash = Data.ProtoLens.fieldDefault,- _AddHoldInvoiceRequest'value = Data.ProtoLens.fieldDefault,- _AddHoldInvoiceRequest'valueMsat = Data.ProtoLens.fieldDefault,- _AddHoldInvoiceRequest'descriptionHash = Data.ProtoLens.fieldDefault,- _AddHoldInvoiceRequest'expiry = Data.ProtoLens.fieldDefault,- _AddHoldInvoiceRequest'fallbackAddr = Data.ProtoLens.fieldDefault,- _AddHoldInvoiceRequest'cltvExpiry = Data.ProtoLens.fieldDefault,- _AddHoldInvoiceRequest'routeHints = Data.Vector.Generic.empty,- _AddHoldInvoiceRequest'private = Data.ProtoLens.fieldDefault,- _AddHoldInvoiceRequest'_unknownFields = []}- parseMessage- = let- loop ::- AddHoldInvoiceRequest- -> Data.ProtoLens.Encoding.Growing.Growing Data.Vector.Vector Data.ProtoLens.Encoding.Growing.RealWorld Proto.LndGrpc.RouteHint- -> Data.ProtoLens.Encoding.Bytes.Parser AddHoldInvoiceRequest- loop x mutable'routeHints- = do end <- Data.ProtoLens.Encoding.Bytes.atEnd- if end then- do frozen'routeHints <- Data.ProtoLens.Encoding.Parser.Unsafe.unsafeLiftIO- (Data.ProtoLens.Encoding.Growing.unsafeFreeze- mutable'routeHints)- (let missing = []- in- if Prelude.null missing then- Prelude.return ()- else- Prelude.fail- ((Prelude.++)- "Missing required fields: "- (Prelude.show (missing :: [Prelude.String]))))- Prelude.return- (Lens.Family2.over- Data.ProtoLens.unknownFields- (\ !t -> Prelude.reverse t)- (Lens.Family2.set- (Data.ProtoLens.Field.field @"vec'routeHints")- frozen'routeHints- x))- else- do tag <- Data.ProtoLens.Encoding.Bytes.getVarInt- case tag of- 10- -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)- (do value <- do len <- Data.ProtoLens.Encoding.Bytes.getVarInt- Data.ProtoLens.Encoding.Bytes.getBytes- (Prelude.fromIntegral len)- Data.ProtoLens.Encoding.Bytes.runEither- (case Data.Text.Encoding.decodeUtf8' value of- (Prelude.Left err)- -> Prelude.Left (Prelude.show err)- (Prelude.Right r) -> Prelude.Right r))- "memo"- loop- (Lens.Family2.set (Data.ProtoLens.Field.field @"memo") y x)- mutable'routeHints- 18- -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)- (do len <- Data.ProtoLens.Encoding.Bytes.getVarInt- Data.ProtoLens.Encoding.Bytes.getBytes- (Prelude.fromIntegral len))- "hash"- loop- (Lens.Family2.set (Data.ProtoLens.Field.field @"hash") y x)- mutable'routeHints- 24- -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)- (Prelude.fmap- Prelude.fromIntegral- Data.ProtoLens.Encoding.Bytes.getVarInt)- "value"- loop- (Lens.Family2.set (Data.ProtoLens.Field.field @"value") y x)- mutable'routeHints- 80- -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)- (Prelude.fmap- Prelude.fromIntegral- Data.ProtoLens.Encoding.Bytes.getVarInt)- "value_msat"- loop- (Lens.Family2.set (Data.ProtoLens.Field.field @"valueMsat") y x)- mutable'routeHints- 34- -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)- (do len <- Data.ProtoLens.Encoding.Bytes.getVarInt- Data.ProtoLens.Encoding.Bytes.getBytes- (Prelude.fromIntegral len))- "description_hash"- loop- (Lens.Family2.set- (Data.ProtoLens.Field.field @"descriptionHash") y x)- mutable'routeHints- 40- -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)- (Prelude.fmap- Prelude.fromIntegral- Data.ProtoLens.Encoding.Bytes.getVarInt)- "expiry"- loop- (Lens.Family2.set (Data.ProtoLens.Field.field @"expiry") y x)- mutable'routeHints- 50- -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)- (do value <- do len <- Data.ProtoLens.Encoding.Bytes.getVarInt- Data.ProtoLens.Encoding.Bytes.getBytes- (Prelude.fromIntegral len)- Data.ProtoLens.Encoding.Bytes.runEither- (case Data.Text.Encoding.decodeUtf8' value of- (Prelude.Left err)- -> Prelude.Left (Prelude.show err)- (Prelude.Right r) -> Prelude.Right r))- "fallback_addr"- loop- (Lens.Family2.set- (Data.ProtoLens.Field.field @"fallbackAddr") y x)- mutable'routeHints- 56- -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)- Data.ProtoLens.Encoding.Bytes.getVarInt "cltv_expiry"- loop- (Lens.Family2.set (Data.ProtoLens.Field.field @"cltvExpiry") y x)- mutable'routeHints- 66- -> do !y <- (Data.ProtoLens.Encoding.Bytes.<?>)- (do len <- Data.ProtoLens.Encoding.Bytes.getVarInt- Data.ProtoLens.Encoding.Bytes.isolate- (Prelude.fromIntegral len)- Data.ProtoLens.parseMessage)- "route_hints"- v <- Data.ProtoLens.Encoding.Parser.Unsafe.unsafeLiftIO- (Data.ProtoLens.Encoding.Growing.append mutable'routeHints y)- loop x v- 72- -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)- (Prelude.fmap- ((Prelude./=) 0) Data.ProtoLens.Encoding.Bytes.getVarInt)- "private"- loop- (Lens.Family2.set (Data.ProtoLens.Field.field @"private") y x)- mutable'routeHints- wire- -> do !y <- Data.ProtoLens.Encoding.Wire.parseTaggedValueFromWire- wire- loop- (Lens.Family2.over- Data.ProtoLens.unknownFields (\ !t -> (:) y t) x)- mutable'routeHints- in- (Data.ProtoLens.Encoding.Bytes.<?>)- (do mutable'routeHints <- Data.ProtoLens.Encoding.Parser.Unsafe.unsafeLiftIO- Data.ProtoLens.Encoding.Growing.new- loop Data.ProtoLens.defMessage mutable'routeHints)- "AddHoldInvoiceRequest"- buildMessage- = \ _x- -> (Data.Monoid.<>)- (let _v = Lens.Family2.view (Data.ProtoLens.Field.field @"memo") _x- in- if (Prelude.==) _v Data.ProtoLens.fieldDefault then- Data.Monoid.mempty- else- (Data.Monoid.<>)- (Data.ProtoLens.Encoding.Bytes.putVarInt 10)- ((Prelude..)- (\ bs- -> (Data.Monoid.<>)- (Data.ProtoLens.Encoding.Bytes.putVarInt- (Prelude.fromIntegral (Data.ByteString.length bs)))- (Data.ProtoLens.Encoding.Bytes.putBytes bs))- Data.Text.Encoding.encodeUtf8- _v))- ((Data.Monoid.<>)- (let _v = Lens.Family2.view (Data.ProtoLens.Field.field @"hash") _x- in- if (Prelude.==) _v Data.ProtoLens.fieldDefault then- Data.Monoid.mempty- else- (Data.Monoid.<>)- (Data.ProtoLens.Encoding.Bytes.putVarInt 18)- ((\ bs- -> (Data.Monoid.<>)- (Data.ProtoLens.Encoding.Bytes.putVarInt- (Prelude.fromIntegral (Data.ByteString.length bs)))- (Data.ProtoLens.Encoding.Bytes.putBytes bs))- _v))- ((Data.Monoid.<>)- (let- _v = Lens.Family2.view (Data.ProtoLens.Field.field @"value") _x- in- if (Prelude.==) _v Data.ProtoLens.fieldDefault then- Data.Monoid.mempty- else- (Data.Monoid.<>)- (Data.ProtoLens.Encoding.Bytes.putVarInt 24)- ((Prelude..)- Data.ProtoLens.Encoding.Bytes.putVarInt Prelude.fromIntegral _v))- ((Data.Monoid.<>)- (let- _v = Lens.Family2.view (Data.ProtoLens.Field.field @"valueMsat") _x- in- if (Prelude.==) _v Data.ProtoLens.fieldDefault then- Data.Monoid.mempty- else- (Data.Monoid.<>)- (Data.ProtoLens.Encoding.Bytes.putVarInt 80)- ((Prelude..)- Data.ProtoLens.Encoding.Bytes.putVarInt Prelude.fromIntegral _v))- ((Data.Monoid.<>)- (let- _v- = Lens.Family2.view- (Data.ProtoLens.Field.field @"descriptionHash") _x- in- if (Prelude.==) _v Data.ProtoLens.fieldDefault then- Data.Monoid.mempty- else- (Data.Monoid.<>)- (Data.ProtoLens.Encoding.Bytes.putVarInt 34)- ((\ bs- -> (Data.Monoid.<>)- (Data.ProtoLens.Encoding.Bytes.putVarInt- (Prelude.fromIntegral (Data.ByteString.length bs)))- (Data.ProtoLens.Encoding.Bytes.putBytes bs))- _v))- ((Data.Monoid.<>)- (let- _v = Lens.Family2.view (Data.ProtoLens.Field.field @"expiry") _x- in- if (Prelude.==) _v Data.ProtoLens.fieldDefault then- Data.Monoid.mempty- else- (Data.Monoid.<>)- (Data.ProtoLens.Encoding.Bytes.putVarInt 40)- ((Prelude..)- Data.ProtoLens.Encoding.Bytes.putVarInt- Prelude.fromIntegral- _v))- ((Data.Monoid.<>)- (let- _v- = Lens.Family2.view- (Data.ProtoLens.Field.field @"fallbackAddr") _x- in- if (Prelude.==) _v Data.ProtoLens.fieldDefault then- Data.Monoid.mempty- else- (Data.Monoid.<>)- (Data.ProtoLens.Encoding.Bytes.putVarInt 50)- ((Prelude..)- (\ bs- -> (Data.Monoid.<>)- (Data.ProtoLens.Encoding.Bytes.putVarInt- (Prelude.fromIntegral- (Data.ByteString.length bs)))- (Data.ProtoLens.Encoding.Bytes.putBytes bs))- Data.Text.Encoding.encodeUtf8- _v))- ((Data.Monoid.<>)- (let- _v- = Lens.Family2.view- (Data.ProtoLens.Field.field @"cltvExpiry") _x- in- if (Prelude.==) _v Data.ProtoLens.fieldDefault then- Data.Monoid.mempty- else- (Data.Monoid.<>)- (Data.ProtoLens.Encoding.Bytes.putVarInt 56)- (Data.ProtoLens.Encoding.Bytes.putVarInt _v))- ((Data.Monoid.<>)- (Data.ProtoLens.Encoding.Bytes.foldMapBuilder- (\ _v- -> (Data.Monoid.<>)- (Data.ProtoLens.Encoding.Bytes.putVarInt 66)- ((Prelude..)- (\ bs- -> (Data.Monoid.<>)- (Data.ProtoLens.Encoding.Bytes.putVarInt- (Prelude.fromIntegral- (Data.ByteString.length bs)))- (Data.ProtoLens.Encoding.Bytes.putBytes- bs))- Data.ProtoLens.encodeMessage- _v))- (Lens.Family2.view- (Data.ProtoLens.Field.field @"vec'routeHints") _x))- ((Data.Monoid.<>)- (let- _v- = Lens.Family2.view- (Data.ProtoLens.Field.field @"private") _x- in- if (Prelude.==) _v Data.ProtoLens.fieldDefault then- Data.Monoid.mempty- else- (Data.Monoid.<>)- (Data.ProtoLens.Encoding.Bytes.putVarInt 72)- ((Prelude..)- Data.ProtoLens.Encoding.Bytes.putVarInt- (\ b -> if b then 1 else 0)- _v))- (Data.ProtoLens.Encoding.Wire.buildFieldSet- (Lens.Family2.view- Data.ProtoLens.unknownFields _x)))))))))))-instance Control.DeepSeq.NFData AddHoldInvoiceRequest where- rnf- = \ x__- -> Control.DeepSeq.deepseq- (_AddHoldInvoiceRequest'_unknownFields x__)- (Control.DeepSeq.deepseq- (_AddHoldInvoiceRequest'memo x__)- (Control.DeepSeq.deepseq- (_AddHoldInvoiceRequest'hash x__)- (Control.DeepSeq.deepseq- (_AddHoldInvoiceRequest'value x__)- (Control.DeepSeq.deepseq- (_AddHoldInvoiceRequest'valueMsat x__)- (Control.DeepSeq.deepseq- (_AddHoldInvoiceRequest'descriptionHash x__)- (Control.DeepSeq.deepseq- (_AddHoldInvoiceRequest'expiry x__)- (Control.DeepSeq.deepseq- (_AddHoldInvoiceRequest'fallbackAddr x__)- (Control.DeepSeq.deepseq- (_AddHoldInvoiceRequest'cltvExpiry x__)- (Control.DeepSeq.deepseq- (_AddHoldInvoiceRequest'routeHints x__)- (Control.DeepSeq.deepseq- (_AddHoldInvoiceRequest'private x__) ()))))))))))-{- | Fields :- - * 'Proto.InvoiceGrpc_Fields.paymentRequest' @:: Lens' AddHoldInvoiceResp Data.Text.Text@ -}-data AddHoldInvoiceResp- = AddHoldInvoiceResp'_constructor {_AddHoldInvoiceResp'paymentRequest :: !Data.Text.Text,- _AddHoldInvoiceResp'_unknownFields :: !Data.ProtoLens.FieldSet}- deriving stock (Prelude.Eq, Prelude.Ord)-instance Prelude.Show AddHoldInvoiceResp where- showsPrec _ __x __s- = Prelude.showChar- '{'- (Prelude.showString- (Data.ProtoLens.showMessageShort __x) (Prelude.showChar '}' __s))-instance Data.ProtoLens.Field.HasField AddHoldInvoiceResp "paymentRequest" Data.Text.Text where- fieldOf _- = (Prelude..)- (Lens.Family2.Unchecked.lens- _AddHoldInvoiceResp'paymentRequest- (\ x__ y__ -> x__ {_AddHoldInvoiceResp'paymentRequest = y__}))- Prelude.id-instance Data.ProtoLens.Message AddHoldInvoiceResp where- messageName _ = Data.Text.pack "invoicesrpc.AddHoldInvoiceResp"- packedMessageDescriptor _- = "\n\- \\DC2AddHoldInvoiceResp\DC2'\n\- \\SIpayment_request\CAN\SOH \SOH(\tR\SOpaymentRequest"- packedFileDescriptor _ = packedFileDescriptor- fieldsByTag- = let- paymentRequest__field_descriptor- = Data.ProtoLens.FieldDescriptor- "payment_request"- (Data.ProtoLens.ScalarField Data.ProtoLens.StringField ::- Data.ProtoLens.FieldTypeDescriptor Data.Text.Text)- (Data.ProtoLens.PlainField- Data.ProtoLens.Optional- (Data.ProtoLens.Field.field @"paymentRequest")) ::- Data.ProtoLens.FieldDescriptor AddHoldInvoiceResp- in- Data.Map.fromList- [(Data.ProtoLens.Tag 1, paymentRequest__field_descriptor)]- unknownFields- = Lens.Family2.Unchecked.lens- _AddHoldInvoiceResp'_unknownFields- (\ x__ y__ -> x__ {_AddHoldInvoiceResp'_unknownFields = y__})- defMessage- = AddHoldInvoiceResp'_constructor- {_AddHoldInvoiceResp'paymentRequest = Data.ProtoLens.fieldDefault,- _AddHoldInvoiceResp'_unknownFields = []}- parseMessage- = let- loop ::- AddHoldInvoiceResp- -> Data.ProtoLens.Encoding.Bytes.Parser AddHoldInvoiceResp- loop x- = do end <- Data.ProtoLens.Encoding.Bytes.atEnd- if end then- do (let missing = []- in- if Prelude.null missing then- Prelude.return ()- else- Prelude.fail- ((Prelude.++)- "Missing required fields: "- (Prelude.show (missing :: [Prelude.String]))))- Prelude.return- (Lens.Family2.over- Data.ProtoLens.unknownFields (\ !t -> Prelude.reverse t) x)- else- do tag <- Data.ProtoLens.Encoding.Bytes.getVarInt- case tag of- 10- -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)- (do value <- do len <- Data.ProtoLens.Encoding.Bytes.getVarInt- Data.ProtoLens.Encoding.Bytes.getBytes- (Prelude.fromIntegral len)- Data.ProtoLens.Encoding.Bytes.runEither- (case Data.Text.Encoding.decodeUtf8' value of- (Prelude.Left err)- -> Prelude.Left (Prelude.show err)- (Prelude.Right r) -> Prelude.Right r))- "payment_request"- loop- (Lens.Family2.set- (Data.ProtoLens.Field.field @"paymentRequest") y x)- wire- -> do !y <- Data.ProtoLens.Encoding.Wire.parseTaggedValueFromWire- wire- loop- (Lens.Family2.over- Data.ProtoLens.unknownFields (\ !t -> (:) y t) x)- in- (Data.ProtoLens.Encoding.Bytes.<?>)- (do loop Data.ProtoLens.defMessage) "AddHoldInvoiceResp"- buildMessage- = \ _x- -> (Data.Monoid.<>)- (let- _v- = Lens.Family2.view- (Data.ProtoLens.Field.field @"paymentRequest") _x- in- if (Prelude.==) _v Data.ProtoLens.fieldDefault then- Data.Monoid.mempty- else- (Data.Monoid.<>)- (Data.ProtoLens.Encoding.Bytes.putVarInt 10)- ((Prelude..)- (\ bs- -> (Data.Monoid.<>)- (Data.ProtoLens.Encoding.Bytes.putVarInt- (Prelude.fromIntegral (Data.ByteString.length bs)))- (Data.ProtoLens.Encoding.Bytes.putBytes bs))- Data.Text.Encoding.encodeUtf8- _v))- (Data.ProtoLens.Encoding.Wire.buildFieldSet- (Lens.Family2.view Data.ProtoLens.unknownFields _x))-instance Control.DeepSeq.NFData AddHoldInvoiceResp where- rnf- = \ x__- -> Control.DeepSeq.deepseq- (_AddHoldInvoiceResp'_unknownFields x__)- (Control.DeepSeq.deepseq- (_AddHoldInvoiceResp'paymentRequest x__) ())-{- | Fields :- - * 'Proto.InvoiceGrpc_Fields.paymentHash' @:: Lens' CancelInvoiceMsg Data.ByteString.ByteString@ -}-data CancelInvoiceMsg- = CancelInvoiceMsg'_constructor {_CancelInvoiceMsg'paymentHash :: !Data.ByteString.ByteString,- _CancelInvoiceMsg'_unknownFields :: !Data.ProtoLens.FieldSet}- deriving stock (Prelude.Eq, Prelude.Ord)-instance Prelude.Show CancelInvoiceMsg where- showsPrec _ __x __s- = Prelude.showChar- '{'- (Prelude.showString- (Data.ProtoLens.showMessageShort __x) (Prelude.showChar '}' __s))-instance Data.ProtoLens.Field.HasField CancelInvoiceMsg "paymentHash" Data.ByteString.ByteString where- fieldOf _- = (Prelude..)- (Lens.Family2.Unchecked.lens- _CancelInvoiceMsg'paymentHash- (\ x__ y__ -> x__ {_CancelInvoiceMsg'paymentHash = y__}))- Prelude.id-instance Data.ProtoLens.Message CancelInvoiceMsg where- messageName _ = Data.Text.pack "invoicesrpc.CancelInvoiceMsg"- packedMessageDescriptor _- = "\n\- \\DLECancelInvoiceMsg\DC2!\n\- \\fpayment_hash\CAN\SOH \SOH(\fR\vpaymentHash"- packedFileDescriptor _ = packedFileDescriptor- fieldsByTag- = let- paymentHash__field_descriptor- = Data.ProtoLens.FieldDescriptor- "payment_hash"- (Data.ProtoLens.ScalarField Data.ProtoLens.BytesField ::- Data.ProtoLens.FieldTypeDescriptor Data.ByteString.ByteString)- (Data.ProtoLens.PlainField- Data.ProtoLens.Optional- (Data.ProtoLens.Field.field @"paymentHash")) ::- Data.ProtoLens.FieldDescriptor CancelInvoiceMsg- in- Data.Map.fromList- [(Data.ProtoLens.Tag 1, paymentHash__field_descriptor)]- unknownFields- = Lens.Family2.Unchecked.lens- _CancelInvoiceMsg'_unknownFields- (\ x__ y__ -> x__ {_CancelInvoiceMsg'_unknownFields = y__})- defMessage- = CancelInvoiceMsg'_constructor- {_CancelInvoiceMsg'paymentHash = Data.ProtoLens.fieldDefault,- _CancelInvoiceMsg'_unknownFields = []}- parseMessage- = let- loop ::- CancelInvoiceMsg- -> Data.ProtoLens.Encoding.Bytes.Parser CancelInvoiceMsg- loop x- = do end <- Data.ProtoLens.Encoding.Bytes.atEnd- if end then- do (let missing = []- in- if Prelude.null missing then- Prelude.return ()- else- Prelude.fail- ((Prelude.++)- "Missing required fields: "- (Prelude.show (missing :: [Prelude.String]))))- Prelude.return- (Lens.Family2.over- Data.ProtoLens.unknownFields (\ !t -> Prelude.reverse t) x)- else- do tag <- Data.ProtoLens.Encoding.Bytes.getVarInt- case tag of- 10- -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)- (do len <- Data.ProtoLens.Encoding.Bytes.getVarInt- Data.ProtoLens.Encoding.Bytes.getBytes- (Prelude.fromIntegral len))- "payment_hash"- loop- (Lens.Family2.set (Data.ProtoLens.Field.field @"paymentHash") y x)- wire- -> do !y <- Data.ProtoLens.Encoding.Wire.parseTaggedValueFromWire- wire- loop- (Lens.Family2.over- Data.ProtoLens.unknownFields (\ !t -> (:) y t) x)- in- (Data.ProtoLens.Encoding.Bytes.<?>)- (do loop Data.ProtoLens.defMessage) "CancelInvoiceMsg"- buildMessage- = \ _x- -> (Data.Monoid.<>)- (let- _v- = Lens.Family2.view (Data.ProtoLens.Field.field @"paymentHash") _x- in- if (Prelude.==) _v Data.ProtoLens.fieldDefault then- Data.Monoid.mempty- else- (Data.Monoid.<>)- (Data.ProtoLens.Encoding.Bytes.putVarInt 10)- ((\ bs- -> (Data.Monoid.<>)- (Data.ProtoLens.Encoding.Bytes.putVarInt- (Prelude.fromIntegral (Data.ByteString.length bs)))- (Data.ProtoLens.Encoding.Bytes.putBytes bs))- _v))- (Data.ProtoLens.Encoding.Wire.buildFieldSet- (Lens.Family2.view Data.ProtoLens.unknownFields _x))-instance Control.DeepSeq.NFData CancelInvoiceMsg where- rnf- = \ x__- -> Control.DeepSeq.deepseq- (_CancelInvoiceMsg'_unknownFields x__)- (Control.DeepSeq.deepseq (_CancelInvoiceMsg'paymentHash x__) ())-{- | Fields :- -}-data CancelInvoiceResp- = CancelInvoiceResp'_constructor {_CancelInvoiceResp'_unknownFields :: !Data.ProtoLens.FieldSet}- deriving stock (Prelude.Eq, Prelude.Ord)-instance Prelude.Show CancelInvoiceResp where- showsPrec _ __x __s- = Prelude.showChar- '{'- (Prelude.showString- (Data.ProtoLens.showMessageShort __x) (Prelude.showChar '}' __s))-instance Data.ProtoLens.Message CancelInvoiceResp where- messageName _ = Data.Text.pack "invoicesrpc.CancelInvoiceResp"- packedMessageDescriptor _- = "\n\- \\DC1CancelInvoiceResp"- packedFileDescriptor _ = packedFileDescriptor- fieldsByTag = let in Data.Map.fromList []- unknownFields- = Lens.Family2.Unchecked.lens- _CancelInvoiceResp'_unknownFields- (\ x__ y__ -> x__ {_CancelInvoiceResp'_unknownFields = y__})- defMessage- = CancelInvoiceResp'_constructor- {_CancelInvoiceResp'_unknownFields = []}- parseMessage- = let- loop ::- CancelInvoiceResp- -> Data.ProtoLens.Encoding.Bytes.Parser CancelInvoiceResp- loop x- = do end <- Data.ProtoLens.Encoding.Bytes.atEnd- if end then- do (let missing = []- in- if Prelude.null missing then- Prelude.return ()- else- Prelude.fail- ((Prelude.++)- "Missing required fields: "- (Prelude.show (missing :: [Prelude.String]))))- Prelude.return- (Lens.Family2.over- Data.ProtoLens.unknownFields (\ !t -> Prelude.reverse t) x)- else- do tag <- Data.ProtoLens.Encoding.Bytes.getVarInt- case tag of {- wire- -> do !y <- Data.ProtoLens.Encoding.Wire.parseTaggedValueFromWire- wire- loop- (Lens.Family2.over- Data.ProtoLens.unknownFields (\ !t -> (:) y t) x) }- in- (Data.ProtoLens.Encoding.Bytes.<?>)- (do loop Data.ProtoLens.defMessage) "CancelInvoiceResp"- buildMessage- = \ _x- -> Data.ProtoLens.Encoding.Wire.buildFieldSet- (Lens.Family2.view Data.ProtoLens.unknownFields _x)-instance Control.DeepSeq.NFData CancelInvoiceResp where- rnf- = \ x__- -> Control.DeepSeq.deepseq- (_CancelInvoiceResp'_unknownFields x__) ()-{- | Fields :- - * 'Proto.InvoiceGrpc_Fields.preimage' @:: Lens' SettleInvoiceMsg Data.ByteString.ByteString@ -}-data SettleInvoiceMsg- = SettleInvoiceMsg'_constructor {_SettleInvoiceMsg'preimage :: !Data.ByteString.ByteString,- _SettleInvoiceMsg'_unknownFields :: !Data.ProtoLens.FieldSet}- deriving stock (Prelude.Eq, Prelude.Ord)-instance Prelude.Show SettleInvoiceMsg where- showsPrec _ __x __s- = Prelude.showChar- '{'- (Prelude.showString- (Data.ProtoLens.showMessageShort __x) (Prelude.showChar '}' __s))-instance Data.ProtoLens.Field.HasField SettleInvoiceMsg "preimage" Data.ByteString.ByteString where- fieldOf _- = (Prelude..)- (Lens.Family2.Unchecked.lens- _SettleInvoiceMsg'preimage- (\ x__ y__ -> x__ {_SettleInvoiceMsg'preimage = y__}))- Prelude.id-instance Data.ProtoLens.Message SettleInvoiceMsg where- messageName _ = Data.Text.pack "invoicesrpc.SettleInvoiceMsg"- packedMessageDescriptor _- = "\n\- \\DLESettleInvoiceMsg\DC2\SUB\n\- \\bpreimage\CAN\SOH \SOH(\fR\bpreimage"- packedFileDescriptor _ = packedFileDescriptor- fieldsByTag- = let- preimage__field_descriptor- = Data.ProtoLens.FieldDescriptor- "preimage"- (Data.ProtoLens.ScalarField Data.ProtoLens.BytesField ::- Data.ProtoLens.FieldTypeDescriptor Data.ByteString.ByteString)- (Data.ProtoLens.PlainField- Data.ProtoLens.Optional- (Data.ProtoLens.Field.field @"preimage")) ::- Data.ProtoLens.FieldDescriptor SettleInvoiceMsg- in- Data.Map.fromList- [(Data.ProtoLens.Tag 1, preimage__field_descriptor)]- unknownFields- = Lens.Family2.Unchecked.lens- _SettleInvoiceMsg'_unknownFields- (\ x__ y__ -> x__ {_SettleInvoiceMsg'_unknownFields = y__})- defMessage- = SettleInvoiceMsg'_constructor- {_SettleInvoiceMsg'preimage = Data.ProtoLens.fieldDefault,- _SettleInvoiceMsg'_unknownFields = []}- parseMessage- = let- loop ::- SettleInvoiceMsg- -> Data.ProtoLens.Encoding.Bytes.Parser SettleInvoiceMsg- loop x- = do end <- Data.ProtoLens.Encoding.Bytes.atEnd- if end then- do (let missing = []- in- if Prelude.null missing then- Prelude.return ()- else- Prelude.fail- ((Prelude.++)- "Missing required fields: "- (Prelude.show (missing :: [Prelude.String]))))- Prelude.return- (Lens.Family2.over- Data.ProtoLens.unknownFields (\ !t -> Prelude.reverse t) x)- else- do tag <- Data.ProtoLens.Encoding.Bytes.getVarInt- case tag of- 10- -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)- (do len <- Data.ProtoLens.Encoding.Bytes.getVarInt- Data.ProtoLens.Encoding.Bytes.getBytes- (Prelude.fromIntegral len))- "preimage"- loop- (Lens.Family2.set (Data.ProtoLens.Field.field @"preimage") y x)- wire- -> do !y <- Data.ProtoLens.Encoding.Wire.parseTaggedValueFromWire- wire- loop- (Lens.Family2.over- Data.ProtoLens.unknownFields (\ !t -> (:) y t) x)- in- (Data.ProtoLens.Encoding.Bytes.<?>)- (do loop Data.ProtoLens.defMessage) "SettleInvoiceMsg"- buildMessage- = \ _x- -> (Data.Monoid.<>)- (let- _v = Lens.Family2.view (Data.ProtoLens.Field.field @"preimage") _x- in- if (Prelude.==) _v Data.ProtoLens.fieldDefault then- Data.Monoid.mempty- else- (Data.Monoid.<>)- (Data.ProtoLens.Encoding.Bytes.putVarInt 10)- ((\ bs- -> (Data.Monoid.<>)- (Data.ProtoLens.Encoding.Bytes.putVarInt- (Prelude.fromIntegral (Data.ByteString.length bs)))- (Data.ProtoLens.Encoding.Bytes.putBytes bs))- _v))- (Data.ProtoLens.Encoding.Wire.buildFieldSet- (Lens.Family2.view Data.ProtoLens.unknownFields _x))-instance Control.DeepSeq.NFData SettleInvoiceMsg where- rnf- = \ x__- -> Control.DeepSeq.deepseq- (_SettleInvoiceMsg'_unknownFields x__)- (Control.DeepSeq.deepseq (_SettleInvoiceMsg'preimage x__) ())-{- | Fields :- -}-data SettleInvoiceResp- = SettleInvoiceResp'_constructor {_SettleInvoiceResp'_unknownFields :: !Data.ProtoLens.FieldSet}- deriving stock (Prelude.Eq, Prelude.Ord)-instance Prelude.Show SettleInvoiceResp where- showsPrec _ __x __s- = Prelude.showChar- '{'- (Prelude.showString- (Data.ProtoLens.showMessageShort __x) (Prelude.showChar '}' __s))-instance Data.ProtoLens.Message SettleInvoiceResp where- messageName _ = Data.Text.pack "invoicesrpc.SettleInvoiceResp"- packedMessageDescriptor _- = "\n\- \\DC1SettleInvoiceResp"- packedFileDescriptor _ = packedFileDescriptor- fieldsByTag = let in Data.Map.fromList []- unknownFields- = Lens.Family2.Unchecked.lens- _SettleInvoiceResp'_unknownFields- (\ x__ y__ -> x__ {_SettleInvoiceResp'_unknownFields = y__})- defMessage- = SettleInvoiceResp'_constructor- {_SettleInvoiceResp'_unknownFields = []}- parseMessage- = let- loop ::- SettleInvoiceResp- -> Data.ProtoLens.Encoding.Bytes.Parser SettleInvoiceResp- loop x- = do end <- Data.ProtoLens.Encoding.Bytes.atEnd- if end then- do (let missing = []- in- if Prelude.null missing then- Prelude.return ()- else- Prelude.fail- ((Prelude.++)- "Missing required fields: "- (Prelude.show (missing :: [Prelude.String]))))- Prelude.return- (Lens.Family2.over- Data.ProtoLens.unknownFields (\ !t -> Prelude.reverse t) x)- else- do tag <- Data.ProtoLens.Encoding.Bytes.getVarInt- case tag of {- wire- -> do !y <- Data.ProtoLens.Encoding.Wire.parseTaggedValueFromWire- wire- loop- (Lens.Family2.over- Data.ProtoLens.unknownFields (\ !t -> (:) y t) x) }- in- (Data.ProtoLens.Encoding.Bytes.<?>)- (do loop Data.ProtoLens.defMessage) "SettleInvoiceResp"- buildMessage- = \ _x- -> Data.ProtoLens.Encoding.Wire.buildFieldSet- (Lens.Family2.view Data.ProtoLens.unknownFields _x)-instance Control.DeepSeq.NFData SettleInvoiceResp where- rnf- = \ x__- -> Control.DeepSeq.deepseq- (_SettleInvoiceResp'_unknownFields x__) ()-{- | Fields :- - * 'Proto.InvoiceGrpc_Fields.rHash' @:: Lens' SubscribeSingleInvoiceRequest Data.ByteString.ByteString@ -}-data SubscribeSingleInvoiceRequest- = SubscribeSingleInvoiceRequest'_constructor {_SubscribeSingleInvoiceRequest'rHash :: !Data.ByteString.ByteString,- _SubscribeSingleInvoiceRequest'_unknownFields :: !Data.ProtoLens.FieldSet}- deriving stock (Prelude.Eq, Prelude.Ord)-instance Prelude.Show SubscribeSingleInvoiceRequest where- showsPrec _ __x __s- = Prelude.showChar- '{'- (Prelude.showString- (Data.ProtoLens.showMessageShort __x) (Prelude.showChar '}' __s))-instance Data.ProtoLens.Field.HasField SubscribeSingleInvoiceRequest "rHash" Data.ByteString.ByteString where- fieldOf _- = (Prelude..)- (Lens.Family2.Unchecked.lens- _SubscribeSingleInvoiceRequest'rHash- (\ x__ y__ -> x__ {_SubscribeSingleInvoiceRequest'rHash = y__}))- Prelude.id-instance Data.ProtoLens.Message SubscribeSingleInvoiceRequest where- messageName _- = Data.Text.pack "invoicesrpc.SubscribeSingleInvoiceRequest"- packedMessageDescriptor _- = "\n\- \\GSSubscribeSingleInvoiceRequest\DC2\NAK\n\- \\ACKr_hash\CAN\STX \SOH(\fR\ENQrHashJ\EOT\b\SOH\DLE\STX"- packedFileDescriptor _ = packedFileDescriptor- fieldsByTag- = let- rHash__field_descriptor- = Data.ProtoLens.FieldDescriptor- "r_hash"- (Data.ProtoLens.ScalarField Data.ProtoLens.BytesField ::- Data.ProtoLens.FieldTypeDescriptor Data.ByteString.ByteString)- (Data.ProtoLens.PlainField- Data.ProtoLens.Optional (Data.ProtoLens.Field.field @"rHash")) ::- Data.ProtoLens.FieldDescriptor SubscribeSingleInvoiceRequest- in- Data.Map.fromList [(Data.ProtoLens.Tag 2, rHash__field_descriptor)]- unknownFields- = Lens.Family2.Unchecked.lens- _SubscribeSingleInvoiceRequest'_unknownFields- (\ x__ y__- -> x__ {_SubscribeSingleInvoiceRequest'_unknownFields = y__})- defMessage- = SubscribeSingleInvoiceRequest'_constructor- {_SubscribeSingleInvoiceRequest'rHash = Data.ProtoLens.fieldDefault,- _SubscribeSingleInvoiceRequest'_unknownFields = []}- parseMessage- = let- loop ::- SubscribeSingleInvoiceRequest- -> Data.ProtoLens.Encoding.Bytes.Parser SubscribeSingleInvoiceRequest- loop x- = do end <- Data.ProtoLens.Encoding.Bytes.atEnd- if end then- do (let missing = []- in- if Prelude.null missing then- Prelude.return ()- else- Prelude.fail- ((Prelude.++)- "Missing required fields: "- (Prelude.show (missing :: [Prelude.String]))))- Prelude.return- (Lens.Family2.over- Data.ProtoLens.unknownFields (\ !t -> Prelude.reverse t) x)- else- do tag <- Data.ProtoLens.Encoding.Bytes.getVarInt- case tag of- 18- -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)- (do len <- Data.ProtoLens.Encoding.Bytes.getVarInt- Data.ProtoLens.Encoding.Bytes.getBytes- (Prelude.fromIntegral len))- "r_hash"- loop (Lens.Family2.set (Data.ProtoLens.Field.field @"rHash") y x)- wire- -> do !y <- Data.ProtoLens.Encoding.Wire.parseTaggedValueFromWire- wire- loop- (Lens.Family2.over- Data.ProtoLens.unknownFields (\ !t -> (:) y t) x)- in- (Data.ProtoLens.Encoding.Bytes.<?>)- (do loop Data.ProtoLens.defMessage) "SubscribeSingleInvoiceRequest"- buildMessage- = \ _x- -> (Data.Monoid.<>)- (let- _v = Lens.Family2.view (Data.ProtoLens.Field.field @"rHash") _x- in- if (Prelude.==) _v Data.ProtoLens.fieldDefault then- Data.Monoid.mempty- else- (Data.Monoid.<>)- (Data.ProtoLens.Encoding.Bytes.putVarInt 18)- ((\ bs- -> (Data.Monoid.<>)- (Data.ProtoLens.Encoding.Bytes.putVarInt- (Prelude.fromIntegral (Data.ByteString.length bs)))- (Data.ProtoLens.Encoding.Bytes.putBytes bs))- _v))- (Data.ProtoLens.Encoding.Wire.buildFieldSet- (Lens.Family2.view Data.ProtoLens.unknownFields _x))-instance Control.DeepSeq.NFData SubscribeSingleInvoiceRequest where- rnf- = \ x__- -> Control.DeepSeq.deepseq- (_SubscribeSingleInvoiceRequest'_unknownFields x__)- (Control.DeepSeq.deepseq- (_SubscribeSingleInvoiceRequest'rHash x__) ())-data Invoices = Invoices {}-instance Data.ProtoLens.Service.Types.Service Invoices where- type ServiceName Invoices = "Invoices"- type ServicePackage Invoices = "invoicesrpc"- type ServiceMethods Invoices = '["addHoldInvoice",- "cancelInvoice",- "settleInvoice",- "subscribeSingleInvoice"]-instance Data.ProtoLens.Service.Types.HasMethodImpl Invoices "subscribeSingleInvoice" where- type MethodName Invoices "subscribeSingleInvoice" = "SubscribeSingleInvoice"- type MethodInput Invoices "subscribeSingleInvoice" = SubscribeSingleInvoiceRequest- type MethodOutput Invoices "subscribeSingleInvoice" = Proto.LndGrpc.Invoice- type MethodStreamingType Invoices "subscribeSingleInvoice" = 'Data.ProtoLens.Service.Types.ServerStreaming-instance Data.ProtoLens.Service.Types.HasMethodImpl Invoices "cancelInvoice" where- type MethodName Invoices "cancelInvoice" = "CancelInvoice"- type MethodInput Invoices "cancelInvoice" = CancelInvoiceMsg- type MethodOutput Invoices "cancelInvoice" = CancelInvoiceResp- type MethodStreamingType Invoices "cancelInvoice" = 'Data.ProtoLens.Service.Types.NonStreaming-instance Data.ProtoLens.Service.Types.HasMethodImpl Invoices "addHoldInvoice" where- type MethodName Invoices "addHoldInvoice" = "AddHoldInvoice"- type MethodInput Invoices "addHoldInvoice" = AddHoldInvoiceRequest- type MethodOutput Invoices "addHoldInvoice" = AddHoldInvoiceResp- type MethodStreamingType Invoices "addHoldInvoice" = 'Data.ProtoLens.Service.Types.NonStreaming-instance Data.ProtoLens.Service.Types.HasMethodImpl Invoices "settleInvoice" where- type MethodName Invoices "settleInvoice" = "SettleInvoice"- type MethodInput Invoices "settleInvoice" = SettleInvoiceMsg- type MethodOutput Invoices "settleInvoice" = SettleInvoiceResp- type MethodStreamingType Invoices "settleInvoice" = 'Data.ProtoLens.Service.Types.NonStreaming-packedFileDescriptor :: Data.ByteString.ByteString-packedFileDescriptor- = "\n\- \\DC2invoice_grpc.proto\DC2\vinvoicesrpc\SUB\SOlnd_grpc.proto\"5\n\- \\DLECancelInvoiceMsg\DC2!\n\- \\fpayment_hash\CAN\SOH \SOH(\fR\vpaymentHash\"\DC3\n\- \\DC1CancelInvoiceResp\"\202\STX\n\- \\NAKAddHoldInvoiceRequest\DC2\DC2\n\- \\EOTmemo\CAN\SOH \SOH(\tR\EOTmemo\DC2\DC2\n\- \\EOThash\CAN\STX \SOH(\fR\EOThash\DC2\DC4\n\- \\ENQvalue\CAN\ETX \SOH(\ETXR\ENQvalue\DC2\GS\n\- \\n\- \value_msat\CAN\n\- \ \SOH(\ETXR\tvalueMsat\DC2)\n\- \\DLEdescription_hash\CAN\EOT \SOH(\fR\SIdescriptionHash\DC2\SYN\n\- \\ACKexpiry\CAN\ENQ \SOH(\ETXR\ACKexpiry\DC2#\n\- \\rfallback_addr\CAN\ACK \SOH(\tR\ffallbackAddr\DC2\US\n\- \\vcltv_expiry\CAN\a \SOH(\EOTR\n\- \cltvExpiry\DC21\n\- \\vroute_hints\CAN\b \ETX(\v2\DLE.lnrpc.RouteHintR\n\- \routeHints\DC2\CAN\n\- \\aprivate\CAN\t \SOH(\bR\aprivate\"=\n\- \\DC2AddHoldInvoiceResp\DC2'\n\- \\SIpayment_request\CAN\SOH \SOH(\tR\SOpaymentRequest\".\n\- \\DLESettleInvoiceMsg\DC2\SUB\n\- \\bpreimage\CAN\SOH \SOH(\fR\bpreimage\"\DC3\n\- \\DC1SettleInvoiceResp\"<\n\- \\GSSubscribeSingleInvoiceRequest\DC2\NAK\n\- \\ACKr_hash\CAN\STX \SOH(\fR\ENQrHashJ\EOT\b\SOH\DLE\STX2\217\STX\n\- \\bInvoices\DC2V\n\- \\SYNSubscribeSingleInvoice\DC2*.invoicesrpc.SubscribeSingleInvoiceRequest\SUB\SO.lnrpc.Invoice0\SOH\DC2N\n\- \\rCancelInvoice\DC2\GS.invoicesrpc.CancelInvoiceMsg\SUB\RS.invoicesrpc.CancelInvoiceResp\DC2U\n\- \\SOAddHoldInvoice\DC2\".invoicesrpc.AddHoldInvoiceRequest\SUB\US.invoicesrpc.AddHoldInvoiceResp\DC2N\n\- \\rSettleInvoice\DC2\GS.invoicesrpc.SettleInvoiceMsg\SUB\RS.invoicesrpc.SettleInvoiceRespB3Z1github.com/lightningnetwork/lnd/lnrpc/invoicesrpcJ\242\FS\n\- \\ACK\DC2\EOT\STX\NUL{\SOH\n\- \\147\SOH\n\- \\SOH\f\DC2\ETX\STX\NUL\DC22\136\SOHsource https://raw.githubusercontent.com/lightningnetwork/lnd/c733c139e95a6ef4e5f9ac88b43328ac96c333ef/lnrpc/invoicesrpc/invoices.proto\n\- \\n\- \\t\n\- \\STX\ETX\NUL\DC2\ETX\EOT\NUL\CAN\n\- \\b\n\- \\SOH\STX\DC2\ETX\ACK\NUL\DC4\n\- \\b\n\- \\SOH\b\DC2\ETX\b\NULH\n\- \\t\n\- \\STX\b\v\DC2\ETX\b\NULH\n\- \d\n\- \\STX\ACK\NUL\DC2\EOT\f\NUL'\SOH\SUBX Invoices is a service that can be used to create, accept, settle and cancel\n\- \ invoices.\n\- \\n\- \\n\- \\n\- \\ETX\ACK\NUL\SOH\DC2\ETX\f\b\DLE\n\- \\215\SOH\n\- \\EOT\ACK\NUL\STX\NUL\DC2\EOT\DC2\EOT\DC3'\SUB\200\SOH\n\- \SubscribeSingleInvoice returns a uni-directional stream (server -> client)\n\- \to notify the client of state transitions of the specified invoice.\n\- \Initially the current invoice state is always sent out.\n\- \\n\- \\f\n\- \\ENQ\ACK\NUL\STX\NUL\SOH\DC2\ETX\DC2\b\RS\n\- \\f\n\- \\ENQ\ACK\NUL\STX\NUL\STX\DC2\ETX\DC2 =\n\- \\f\n\- \\ENQ\ACK\NUL\STX\NUL\ACK\DC2\ETX\DC3\DC1\ETB\n\- \\f\n\- \\ENQ\ACK\NUL\STX\NUL\ETX\DC2\ETX\DC3\CAN%\n\- \\172\SOH\n\- \\EOT\ACK\NUL\STX\SOH\DC2\ETX\SUB\EOTE\SUB\158\SOH\n\- \CancelInvoice cancels a currently open invoice. If the invoice is already\n\- \canceled, this call will succeed. If the invoice is already settled, it will\n\- \fail.\n\- \\n\- \\f\n\- \\ENQ\ACK\NUL\STX\SOH\SOH\DC2\ETX\SUB\b\NAK\n\- \\f\n\- \\ENQ\ACK\NUL\STX\SOH\STX\DC2\ETX\SUB\ETB'\n\- \\f\n\- \\ENQ\ACK\NUL\STX\SOH\ETX\DC2\ETX\SUB2C\n\- \n\n\- \\EOT\ACK\NUL\STX\STX\DC2\ETX \EOTL\SUBa\n\- \AddHoldInvoice creates a hold invoice. It ties the invoice to the hash\n\- \supplied in the request.\n\- \\n\- \\f\n\- \\ENQ\ACK\NUL\STX\STX\SOH\DC2\ETX \b\SYN\n\- \\f\n\- \\ENQ\ACK\NUL\STX\STX\STX\DC2\ETX \CAN-\n\- \\f\n\- \\ENQ\ACK\NUL\STX\STX\ETX\DC2\ETX 8J\n\- \t\n\- \\EOT\ACK\NUL\STX\ETX\DC2\ETX&\EOTE\SUBg\n\- \SettleInvoice settles an accepted invoice. If the invoice is already\n\- \settled, this call will succeed.\n\- \\n\- \\f\n\- \\ENQ\ACK\NUL\STX\ETX\SOH\DC2\ETX&\b\NAK\n\- \\f\n\- \\ENQ\ACK\NUL\STX\ETX\STX\DC2\ETX&\ETB'\n\- \\f\n\- \\ENQ\ACK\NUL\STX\ETX\ETX\DC2\ETX&2C\n\- \\n\- \\n\- \\STX\EOT\NUL\DC2\EOT)\NUL,\SOH\n\- \\n\- \\n\- \\ETX\EOT\NUL\SOH\DC2\ETX)\b\CAN\n\- \B\n\- \\EOT\EOT\NUL\STX\NUL\DC2\ETX+\EOT\ESC\SUB5 Hash corresponding to the (hold) invoice to cancel.\n\- \\n\- \\r\n\- \\ENQ\EOT\NUL\STX\NUL\EOT\DC2\EOT+\EOT)\SUB\n\- \\f\n\- \\ENQ\EOT\NUL\STX\NUL\ENQ\DC2\ETX+\EOT\t\n\- \\f\n\- \\ENQ\EOT\NUL\STX\NUL\SOH\DC2\ETX+\n\- \\SYN\n\- \\f\n\- \\ENQ\EOT\NUL\STX\NUL\ETX\DC2\ETX+\EM\SUB\n\- \\n\- \\n\- \\STX\EOT\SOH\DC2\EOT-\NUL.\SOH\n\- \\n\- \\n\- \\ETX\EOT\SOH\SOH\DC2\ETX-\b\EM\n\- \\n\- \\n\- \\STX\EOT\STX\DC2\EOT0\NULb\SOH\n\- \\n\- \\n\- \\ETX\EOT\STX\SOH\DC2\ETX0\b\GS\n\- \\252\SOH\n\- \\EOT\EOT\STX\STX\NUL\DC2\ETX7\EOT\DC4\SUB\238\SOH\n\- \An optional memo to attach along with the invoice. Used for record keeping\n\- \purposes for the invoice's creator, and will also be set in the description\n\- \field of the encoded payment request if the description_hash field is not\n\- \being used.\n\- \\n\- \\r\n\- \\ENQ\EOT\STX\STX\NUL\EOT\DC2\EOT7\EOT0\US\n\- \\f\n\- \\ENQ\EOT\STX\STX\NUL\ENQ\DC2\ETX7\EOT\n\- \\n\- \\f\n\- \\ENQ\EOT\STX\STX\NUL\SOH\DC2\ETX7\v\SI\n\- \\f\n\- \\ENQ\EOT\STX\STX\NUL\ETX\DC2\ETX7\DC2\DC3\n\- \'\n\- \\EOT\EOT\STX\STX\SOH\DC2\ETX:\EOT\DC3\SUB\SUB The hash of the preimage\n\- \\n\- \\r\n\- \\ENQ\EOT\STX\STX\SOH\EOT\DC2\EOT:\EOT7\DC4\n\- \\f\n\- \\ENQ\EOT\STX\STX\SOH\ENQ\DC2\ETX:\EOT\t\n\- \\f\n\- \\ENQ\EOT\STX\STX\SOH\SOH\DC2\ETX:\n\- \\SO\n\- \\f\n\- \\ENQ\EOT\STX\STX\SOH\ETX\DC2\ETX:\DC1\DC2\n\- \m\n\- \\EOT\EOT\STX\STX\STX\DC2\ETXA\EOT\DC4\SUB`\n\- \The value of this invoice in satoshis\n\- \\n\- \The fields value and value_msat are mutually exclusive.\n\- \\n\- \\r\n\- \\ENQ\EOT\STX\STX\STX\EOT\DC2\EOTA\EOT:\DC3\n\- \\f\n\- \\ENQ\EOT\STX\STX\STX\ENQ\DC2\ETXA\EOT\t\n\- \\f\n\- \\ENQ\EOT\STX\STX\STX\SOH\DC2\ETXA\n\- \\SI\n\- \\f\n\- \\ENQ\EOT\STX\STX\STX\ETX\DC2\ETXA\DC2\DC3\n\- \r\n\- \\EOT\EOT\STX\STX\ETX\DC2\ETXH\EOT\SUB\SUBe\n\- \The value of this invoice in millisatoshis\n\- \\n\- \The fields value and value_msat are mutually exclusive.\n\- \\n\- \\r\n\- \\ENQ\EOT\STX\STX\ETX\EOT\DC2\EOTH\EOTA\DC4\n\- \\f\n\- \\ENQ\EOT\STX\STX\ETX\ENQ\DC2\ETXH\EOT\t\n\- \\f\n\- \\ENQ\EOT\STX\STX\ETX\SOH\DC2\ETXH\n\- \\DC4\n\- \\f\n\- \\ENQ\EOT\STX\STX\ETX\ETX\DC2\ETXH\ETB\EM\n\- \\194\SOH\n\- \\EOT\EOT\STX\STX\EOT\DC2\ETXO\EOT\US\SUB\180\SOH\n\- \Hash (SHA-256) of a description of the payment. Used if the description of\n\- \payment (memo) is too long to naturally fit within the description field\n\- \of an encoded payment request.\n\- \\n\- \\r\n\- \\ENQ\EOT\STX\STX\EOT\EOT\DC2\EOTO\EOTH\SUB\n\- \\f\n\- \\ENQ\EOT\STX\STX\EOT\ENQ\DC2\ETXO\EOT\t\n\- \\f\n\- \\ENQ\EOT\STX\STX\EOT\SOH\DC2\ETXO\n\- \\SUB\n\- \\f\n\- \\ENQ\EOT\STX\STX\EOT\ETX\DC2\ETXO\GS\RS\n\- \P\n\- \\EOT\EOT\STX\STX\ENQ\DC2\ETXR\EOT\NAK\SUBC Payment request expiry time in seconds. Default is 3600 (1 hour).\n\- \\n\- \\r\n\- \\ENQ\EOT\STX\STX\ENQ\EOT\DC2\EOTR\EOTO\US\n\- \\f\n\- \\ENQ\EOT\STX\STX\ENQ\ENQ\DC2\ETXR\EOT\t\n\- \\f\n\- \\ENQ\EOT\STX\STX\ENQ\SOH\DC2\ETXR\n\- \\DLE\n\- \\f\n\- \\ENQ\EOT\STX\STX\ENQ\ETX\DC2\ETXR\DC3\DC4\n\- \)\n\- \\EOT\EOT\STX\STX\ACK\DC2\ETXU\EOT\GS\SUB\FS Fallback on-chain address.\n\- \\n\- \\r\n\- \\ENQ\EOT\STX\STX\ACK\EOT\DC2\EOTU\EOTR\NAK\n\- \\f\n\- \\ENQ\EOT\STX\STX\ACK\ENQ\DC2\ETXU\EOT\n\- \\n\- \\f\n\- \\ENQ\EOT\STX\STX\ACK\SOH\DC2\ETXU\v\CAN\n\- \\f\n\- \\ENQ\EOT\STX\STX\ACK\ETX\DC2\ETXU\ESC\FS\n\- \T\n\- \\EOT\EOT\STX\STX\a\DC2\ETXX\EOT\ESC\SUBG Delta to use for the time-lock of the CLTV extended to the final hop.\n\- \\n\- \\r\n\- \\ENQ\EOT\STX\STX\a\EOT\DC2\EOTX\EOTU\GS\n\- \\f\n\- \\ENQ\EOT\STX\STX\a\ENQ\DC2\ETXX\EOT\n\- \\n\- \\f\n\- \\ENQ\EOT\STX\STX\a\SOH\DC2\ETXX\v\SYN\n\- \\f\n\- \\ENQ\EOT\STX\STX\a\ETX\DC2\ETXX\EM\SUB\n\- \n\n\- \\EOT\EOT\STX\STX\b\DC2\ETX^\EOT-\SUBa\n\- \Route hints that can each be individually used to assist in reaching the\n\- \invoice's destination.\n\- \\n\- \\f\n\- \\ENQ\EOT\STX\STX\b\EOT\DC2\ETX^\EOT\f\n\- \\f\n\- \\ENQ\EOT\STX\STX\b\ACK\DC2\ETX^\r\FS\n\- \\f\n\- \\ENQ\EOT\STX\STX\b\SOH\DC2\ETX^\GS(\n\- \\f\n\- \\ENQ\EOT\STX\STX\b\ETX\DC2\ETX^+,\n\- \V\n\- \\EOT\EOT\STX\STX\t\DC2\ETXa\EOT\NAK\SUBI Whether this invoice should include routing hints for private channels.\n\- \\n\- \\r\n\- \\ENQ\EOT\STX\STX\t\EOT\DC2\EOTa\EOT^-\n\- \\f\n\- \\ENQ\EOT\STX\STX\t\ENQ\DC2\ETXa\EOT\b\n\- \\f\n\- \\ENQ\EOT\STX\STX\t\SOH\DC2\ETXa\t\DLE\n\- \\f\n\- \\ENQ\EOT\STX\STX\t\ETX\DC2\ETXa\DC3\DC4\n\- \\n\- \\n\- \\STX\EOT\ETX\DC2\EOTd\NULk\SOH\n\- \\n\- \\n\- \\ETX\EOT\ETX\SOH\DC2\ETXd\b\SUB\n\- \\188\SOH\n\- \\EOT\EOT\ETX\STX\NUL\DC2\ETXj\EOT\US\SUB\174\SOH\n\- \A bare-bones invoice for a payment within the Lightning Network. With the\n\- \details of the invoice, the sender has all the data necessary to send a\n\- \payment to the recipient.\n\- \\n\- \\r\n\- \\ENQ\EOT\ETX\STX\NUL\EOT\DC2\EOTj\EOTd\FS\n\- \\f\n\- \\ENQ\EOT\ETX\STX\NUL\ENQ\DC2\ETXj\EOT\n\- \\n\- \\f\n\- \\ENQ\EOT\ETX\STX\NUL\SOH\DC2\ETXj\v\SUB\n\- \\f\n\- \\ENQ\EOT\ETX\STX\NUL\ETX\DC2\ETXj\GS\RS\n\- \\n\- \\n\- \\STX\EOT\EOT\DC2\EOTm\NULq\SOH\n\- \\n\- \\n\- \\ETX\EOT\EOT\SOH\DC2\ETXm\b\CAN\n\- \_\n\- \\EOT\EOT\EOT\STX\NUL\DC2\ETXp\EOT\ETB\SUBR Externally discovered pre-image that should be used to settle the hold\n\- \ invoice.\n\- \\n\- \\r\n\- \\ENQ\EOT\EOT\STX\NUL\EOT\DC2\EOTp\EOTm\SUB\n\- \\f\n\- \\ENQ\EOT\EOT\STX\NUL\ENQ\DC2\ETXp\EOT\t\n\- \\f\n\- \\ENQ\EOT\EOT\STX\NUL\SOH\DC2\ETXp\n\- \\DC2\n\- \\f\n\- \\ENQ\EOT\EOT\STX\NUL\ETX\DC2\ETXp\NAK\SYN\n\- \\n\- \\n\- \\STX\EOT\ENQ\DC2\EOTs\NULt\SOH\n\- \\n\- \\n\- \\ETX\EOT\ENQ\SOH\DC2\ETXs\b\EM\n\- \\n\- \\n\- \\STX\EOT\ACK\DC2\EOTv\NUL{\SOH\n\- \\n\- \\n\- \\ETX\EOT\ACK\SOH\DC2\ETXv\b%\n\- \\n\- \\n\- \\ETX\EOT\ACK\t\DC2\ETXw\EOT\SI\n\- \\v\n\- \\EOT\EOT\ACK\t\NUL\DC2\ETXw\r\SO\n\- \\f\n\- \\ENQ\EOT\ACK\t\NUL\SOH\DC2\ETXw\r\SO\n\- \\f\n\- \\ENQ\EOT\ACK\t\NUL\STX\DC2\ETXw\r\SO\n\- \H\n\- \\EOT\EOT\ACK\STX\NUL\DC2\ETXz\EOT\NAK\SUB; Hash corresponding to the (hold) invoice to subscribe to.\n\- \\n\- \\r\n\- \\ENQ\EOT\ACK\STX\NUL\EOT\DC2\EOTz\EOTw\SI\n\- \\f\n\- \\ENQ\EOT\ACK\STX\NUL\ENQ\DC2\ETXz\EOT\t\n\- \\f\n\- \\ENQ\EOT\ACK\STX\NUL\SOH\DC2\ETXz\n\- \\DLE\n\- \\f\n\- \\ENQ\EOT\ACK\STX\NUL\ETX\DC2\ETXz\DC3\DC4b\ACKproto3"
@@ -1,114 +0,0 @@-{- This file was auto-generated from invoice_grpc.proto by the proto-lens-protoc program. -}-{-# LANGUAGE ScopedTypeVariables, DataKinds, TypeFamilies, UndecidableInstances, GeneralizedNewtypeDeriving, MultiParamTypeClasses, FlexibleContexts, FlexibleInstances, PatternSynonyms, MagicHash, NoImplicitPrelude, DataKinds, BangPatterns, TypeApplications, OverloadedStrings, DerivingStrategies#-}-{-# OPTIONS_GHC -Wno-unused-imports#-}-{-# OPTIONS_GHC -Wno-duplicate-exports#-}-{-# OPTIONS_GHC -Wno-dodgy-exports#-}-module Proto.InvoiceGrpc_Fields where-import qualified Data.ProtoLens.Runtime.Prelude as Prelude-import qualified Data.ProtoLens.Runtime.Data.Int as Data.Int-import qualified Data.ProtoLens.Runtime.Data.Monoid as Data.Monoid-import qualified Data.ProtoLens.Runtime.Data.Word as Data.Word-import qualified Data.ProtoLens.Runtime.Data.ProtoLens as Data.ProtoLens-import qualified Data.ProtoLens.Runtime.Data.ProtoLens.Encoding.Bytes as Data.ProtoLens.Encoding.Bytes-import qualified Data.ProtoLens.Runtime.Data.ProtoLens.Encoding.Growing as Data.ProtoLens.Encoding.Growing-import qualified Data.ProtoLens.Runtime.Data.ProtoLens.Encoding.Parser.Unsafe as Data.ProtoLens.Encoding.Parser.Unsafe-import qualified Data.ProtoLens.Runtime.Data.ProtoLens.Encoding.Wire as Data.ProtoLens.Encoding.Wire-import qualified Data.ProtoLens.Runtime.Data.ProtoLens.Field as Data.ProtoLens.Field-import qualified Data.ProtoLens.Runtime.Data.ProtoLens.Message.Enum as Data.ProtoLens.Message.Enum-import qualified Data.ProtoLens.Runtime.Data.ProtoLens.Service.Types as Data.ProtoLens.Service.Types-import qualified Data.ProtoLens.Runtime.Lens.Family2 as Lens.Family2-import qualified Data.ProtoLens.Runtime.Lens.Family2.Unchecked as Lens.Family2.Unchecked-import qualified Data.ProtoLens.Runtime.Data.Text as Data.Text-import qualified Data.ProtoLens.Runtime.Data.Map as Data.Map-import qualified Data.ProtoLens.Runtime.Data.ByteString as Data.ByteString-import qualified Data.ProtoLens.Runtime.Data.ByteString.Char8 as Data.ByteString.Char8-import qualified Data.ProtoLens.Runtime.Data.Text.Encoding as Data.Text.Encoding-import qualified Data.ProtoLens.Runtime.Data.Vector as Data.Vector-import qualified Data.ProtoLens.Runtime.Data.Vector.Generic as Data.Vector.Generic-import qualified Data.ProtoLens.Runtime.Data.Vector.Unboxed as Data.Vector.Unboxed-import qualified Data.ProtoLens.Runtime.Text.Read as Text.Read-import qualified Proto.LndGrpc-cltvExpiry ::- forall f s a.- (Prelude.Functor f,- Data.ProtoLens.Field.HasField s "cltvExpiry" a) =>- Lens.Family2.LensLike' f s a-cltvExpiry = Data.ProtoLens.Field.field @"cltvExpiry"-descriptionHash ::- forall f s a.- (Prelude.Functor f,- Data.ProtoLens.Field.HasField s "descriptionHash" a) =>- Lens.Family2.LensLike' f s a-descriptionHash = Data.ProtoLens.Field.field @"descriptionHash"-expiry ::- forall f s a.- (Prelude.Functor f, Data.ProtoLens.Field.HasField s "expiry" a) =>- Lens.Family2.LensLike' f s a-expiry = Data.ProtoLens.Field.field @"expiry"-fallbackAddr ::- forall f s a.- (Prelude.Functor f,- Data.ProtoLens.Field.HasField s "fallbackAddr" a) =>- Lens.Family2.LensLike' f s a-fallbackAddr = Data.ProtoLens.Field.field @"fallbackAddr"-hash ::- forall f s a.- (Prelude.Functor f, Data.ProtoLens.Field.HasField s "hash" a) =>- Lens.Family2.LensLike' f s a-hash = Data.ProtoLens.Field.field @"hash"-memo ::- forall f s a.- (Prelude.Functor f, Data.ProtoLens.Field.HasField s "memo" a) =>- Lens.Family2.LensLike' f s a-memo = Data.ProtoLens.Field.field @"memo"-paymentHash ::- forall f s a.- (Prelude.Functor f,- Data.ProtoLens.Field.HasField s "paymentHash" a) =>- Lens.Family2.LensLike' f s a-paymentHash = Data.ProtoLens.Field.field @"paymentHash"-paymentRequest ::- forall f s a.- (Prelude.Functor f,- Data.ProtoLens.Field.HasField s "paymentRequest" a) =>- Lens.Family2.LensLike' f s a-paymentRequest = Data.ProtoLens.Field.field @"paymentRequest"-preimage ::- forall f s a.- (Prelude.Functor f,- Data.ProtoLens.Field.HasField s "preimage" a) =>- Lens.Family2.LensLike' f s a-preimage = Data.ProtoLens.Field.field @"preimage"-private ::- forall f s a.- (Prelude.Functor f, Data.ProtoLens.Field.HasField s "private" a) =>- Lens.Family2.LensLike' f s a-private = Data.ProtoLens.Field.field @"private"-rHash ::- forall f s a.- (Prelude.Functor f, Data.ProtoLens.Field.HasField s "rHash" a) =>- Lens.Family2.LensLike' f s a-rHash = Data.ProtoLens.Field.field @"rHash"-routeHints ::- forall f s a.- (Prelude.Functor f,- Data.ProtoLens.Field.HasField s "routeHints" a) =>- Lens.Family2.LensLike' f s a-routeHints = Data.ProtoLens.Field.field @"routeHints"-value ::- forall f s a.- (Prelude.Functor f, Data.ProtoLens.Field.HasField s "value" a) =>- Lens.Family2.LensLike' f s a-value = Data.ProtoLens.Field.field @"value"-valueMsat ::- forall f s a.- (Prelude.Functor f,- Data.ProtoLens.Field.HasField s "valueMsat" a) =>- Lens.Family2.LensLike' f s a-valueMsat = Data.ProtoLens.Field.field @"valueMsat"-vec'routeHints ::- forall f s a.- (Prelude.Functor f,- Data.ProtoLens.Field.HasField s "vec'routeHints" a) =>- Lens.Family2.LensLike' f s a-vec'routeHints = Data.ProtoLens.Field.field @"vec'routeHints"
@@ -0,0 +1,2190 @@+{- This file was auto-generated from invoicesrpc/invoices.proto by the proto-lens-protoc program. -}+{-# LANGUAGE ScopedTypeVariables, DataKinds, TypeFamilies, UndecidableInstances, GeneralizedNewtypeDeriving, MultiParamTypeClasses, FlexibleContexts, FlexibleInstances, PatternSynonyms, MagicHash, NoImplicitPrelude, BangPatterns, TypeApplications, OverloadedStrings, DerivingStrategies, DeriveGeneric#-}+{-# OPTIONS_GHC -Wno-unused-imports#-}+{-# OPTIONS_GHC -Wno-duplicate-exports#-}+{-# OPTIONS_GHC -Wno-dodgy-exports#-}+module Proto.Invoicesrpc.Invoices (+ Invoices(..), AddHoldInvoiceRequest(), AddHoldInvoiceResp(),+ CancelInvoiceMsg(), CancelInvoiceResp(), LookupInvoiceMsg(),+ LookupInvoiceMsg'InvoiceRef(..), _LookupInvoiceMsg'PaymentHash,+ _LookupInvoiceMsg'PaymentAddr, _LookupInvoiceMsg'SetId,+ LookupModifier(..), LookupModifier(),+ LookupModifier'UnrecognizedValue, SettleInvoiceMsg(),+ SettleInvoiceResp(), SubscribeSingleInvoiceRequest()+ ) where+import qualified Data.ProtoLens.Runtime.Control.DeepSeq as Control.DeepSeq+import qualified Data.ProtoLens.Runtime.Data.ProtoLens.Prism as Data.ProtoLens.Prism+import qualified Text.PrettyPrint.GenericPretty.Instance+import qualified GHC.Generics+import qualified Text.PrettyPrint.GenericPretty+import qualified Data.ProtoLens.Runtime.Prelude as Prelude+import qualified Data.ProtoLens.Runtime.Data.Int as Data.Int+import qualified Data.ProtoLens.Runtime.Data.Monoid as Data.Monoid+import qualified Data.ProtoLens.Runtime.Data.Word as Data.Word+import qualified Data.ProtoLens.Runtime.Data.ProtoLens as Data.ProtoLens+import qualified Data.ProtoLens.Runtime.Data.ProtoLens.Encoding.Bytes as Data.ProtoLens.Encoding.Bytes+import qualified Data.ProtoLens.Runtime.Data.ProtoLens.Encoding.Growing as Data.ProtoLens.Encoding.Growing+import qualified Data.ProtoLens.Runtime.Data.ProtoLens.Encoding.Parser.Unsafe as Data.ProtoLens.Encoding.Parser.Unsafe+import qualified Data.ProtoLens.Runtime.Data.ProtoLens.Encoding.Wire as Data.ProtoLens.Encoding.Wire+import qualified Data.ProtoLens.Runtime.Data.ProtoLens.Field as Data.ProtoLens.Field+import qualified Data.ProtoLens.Runtime.Data.ProtoLens.Message.Enum as Data.ProtoLens.Message.Enum+import qualified Data.ProtoLens.Runtime.Data.ProtoLens.Service.Types as Data.ProtoLens.Service.Types+import qualified Data.ProtoLens.Runtime.Lens.Family2 as Lens.Family2+import qualified Data.ProtoLens.Runtime.Lens.Family2.Unchecked as Lens.Family2.Unchecked+import qualified Data.ProtoLens.Runtime.Data.Text as Data.Text+import qualified Data.ProtoLens.Runtime.Data.Map as Data.Map+import qualified Data.ProtoLens.Runtime.Data.ByteString as Data.ByteString+import qualified Data.ProtoLens.Runtime.Data.ByteString.Char8 as Data.ByteString.Char8+import qualified Data.ProtoLens.Runtime.Data.Text.Encoding as Data.Text.Encoding+import qualified Data.ProtoLens.Runtime.Data.Vector as Data.Vector+import qualified Data.ProtoLens.Runtime.Data.Vector.Generic as Data.Vector.Generic+import qualified Data.ProtoLens.Runtime.Data.Vector.Unboxed as Data.Vector.Unboxed+import qualified Data.ProtoLens.Runtime.Text.Read as Text.Read+import qualified Proto.Lnrpc.Ln0+import qualified Proto.Lnrpc.Ln1+{- | Fields :+ + * 'Proto.Invoicesrpc.Invoices_Fields.memo' @:: Lens' AddHoldInvoiceRequest Data.Text.Text@+ * 'Proto.Invoicesrpc.Invoices_Fields.hash' @:: Lens' AddHoldInvoiceRequest Data.ByteString.ByteString@+ * 'Proto.Invoicesrpc.Invoices_Fields.value' @:: Lens' AddHoldInvoiceRequest Data.Int.Int64@+ * 'Proto.Invoicesrpc.Invoices_Fields.valueMsat' @:: Lens' AddHoldInvoiceRequest Data.Int.Int64@+ * 'Proto.Invoicesrpc.Invoices_Fields.descriptionHash' @:: Lens' AddHoldInvoiceRequest Data.ByteString.ByteString@+ * 'Proto.Invoicesrpc.Invoices_Fields.expiry' @:: Lens' AddHoldInvoiceRequest Data.Int.Int64@+ * 'Proto.Invoicesrpc.Invoices_Fields.fallbackAddr' @:: Lens' AddHoldInvoiceRequest Data.Text.Text@+ * 'Proto.Invoicesrpc.Invoices_Fields.cltvExpiry' @:: Lens' AddHoldInvoiceRequest Data.Word.Word64@+ * 'Proto.Invoicesrpc.Invoices_Fields.routeHints' @:: Lens' AddHoldInvoiceRequest [Proto.Lnrpc.Ln0.RouteHint]@+ * 'Proto.Invoicesrpc.Invoices_Fields.vec'routeHints' @:: Lens' AddHoldInvoiceRequest (Data.Vector.Vector Proto.Lnrpc.Ln0.RouteHint)@+ * 'Proto.Invoicesrpc.Invoices_Fields.private' @:: Lens' AddHoldInvoiceRequest Prelude.Bool@ -}+data AddHoldInvoiceRequest+ = AddHoldInvoiceRequest'_constructor {_AddHoldInvoiceRequest'memo :: !Data.Text.Text,+ _AddHoldInvoiceRequest'hash :: !Data.ByteString.ByteString,+ _AddHoldInvoiceRequest'value :: !Data.Int.Int64,+ _AddHoldInvoiceRequest'valueMsat :: !Data.Int.Int64,+ _AddHoldInvoiceRequest'descriptionHash :: !Data.ByteString.ByteString,+ _AddHoldInvoiceRequest'expiry :: !Data.Int.Int64,+ _AddHoldInvoiceRequest'fallbackAddr :: !Data.Text.Text,+ _AddHoldInvoiceRequest'cltvExpiry :: !Data.Word.Word64,+ _AddHoldInvoiceRequest'routeHints :: !(Data.Vector.Vector Proto.Lnrpc.Ln0.RouteHint),+ _AddHoldInvoiceRequest'private :: !Prelude.Bool,+ _AddHoldInvoiceRequest'_unknownFields :: !Data.ProtoLens.FieldSet}+ deriving stock (Prelude.Eq, Prelude.Ord, GHC.Generics.Generic)+instance Prelude.Show AddHoldInvoiceRequest where+ showsPrec _ __x __s+ = Prelude.showChar+ '{'+ (Prelude.showString+ (Data.ProtoLens.showMessageShort __x) (Prelude.showChar '}' __s))+instance Text.PrettyPrint.GenericPretty.Out AddHoldInvoiceRequest+instance Data.ProtoLens.Field.HasField AddHoldInvoiceRequest "memo" Data.Text.Text where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _AddHoldInvoiceRequest'memo+ (\ x__ y__ -> x__ {_AddHoldInvoiceRequest'memo = y__}))+ Prelude.id+instance Data.ProtoLens.Field.HasField AddHoldInvoiceRequest "hash" Data.ByteString.ByteString where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _AddHoldInvoiceRequest'hash+ (\ x__ y__ -> x__ {_AddHoldInvoiceRequest'hash = y__}))+ Prelude.id+instance Data.ProtoLens.Field.HasField AddHoldInvoiceRequest "value" Data.Int.Int64 where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _AddHoldInvoiceRequest'value+ (\ x__ y__ -> x__ {_AddHoldInvoiceRequest'value = y__}))+ Prelude.id+instance Data.ProtoLens.Field.HasField AddHoldInvoiceRequest "valueMsat" Data.Int.Int64 where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _AddHoldInvoiceRequest'valueMsat+ (\ x__ y__ -> x__ {_AddHoldInvoiceRequest'valueMsat = y__}))+ Prelude.id+instance Data.ProtoLens.Field.HasField AddHoldInvoiceRequest "descriptionHash" Data.ByteString.ByteString where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _AddHoldInvoiceRequest'descriptionHash+ (\ x__ y__ -> x__ {_AddHoldInvoiceRequest'descriptionHash = y__}))+ Prelude.id+instance Data.ProtoLens.Field.HasField AddHoldInvoiceRequest "expiry" Data.Int.Int64 where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _AddHoldInvoiceRequest'expiry+ (\ x__ y__ -> x__ {_AddHoldInvoiceRequest'expiry = y__}))+ Prelude.id+instance Data.ProtoLens.Field.HasField AddHoldInvoiceRequest "fallbackAddr" Data.Text.Text where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _AddHoldInvoiceRequest'fallbackAddr+ (\ x__ y__ -> x__ {_AddHoldInvoiceRequest'fallbackAddr = y__}))+ Prelude.id+instance Data.ProtoLens.Field.HasField AddHoldInvoiceRequest "cltvExpiry" Data.Word.Word64 where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _AddHoldInvoiceRequest'cltvExpiry+ (\ x__ y__ -> x__ {_AddHoldInvoiceRequest'cltvExpiry = y__}))+ Prelude.id+instance Data.ProtoLens.Field.HasField AddHoldInvoiceRequest "routeHints" [Proto.Lnrpc.Ln0.RouteHint] where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _AddHoldInvoiceRequest'routeHints+ (\ x__ y__ -> x__ {_AddHoldInvoiceRequest'routeHints = y__}))+ (Lens.Family2.Unchecked.lens+ Data.Vector.Generic.toList+ (\ _ y__ -> Data.Vector.Generic.fromList y__))+instance Data.ProtoLens.Field.HasField AddHoldInvoiceRequest "vec'routeHints" (Data.Vector.Vector Proto.Lnrpc.Ln0.RouteHint) where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _AddHoldInvoiceRequest'routeHints+ (\ x__ y__ -> x__ {_AddHoldInvoiceRequest'routeHints = y__}))+ Prelude.id+instance Data.ProtoLens.Field.HasField AddHoldInvoiceRequest "private" Prelude.Bool where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _AddHoldInvoiceRequest'private+ (\ x__ y__ -> x__ {_AddHoldInvoiceRequest'private = y__}))+ Prelude.id+instance Data.ProtoLens.Message AddHoldInvoiceRequest where+ messageName _ = Data.Text.pack "invoicesrpc.AddHoldInvoiceRequest"+ packedMessageDescriptor _+ = "\n\+ \\NAKAddHoldInvoiceRequest\DC2\DC2\n\+ \\EOTmemo\CAN\SOH \SOH(\tR\EOTmemo\DC2\DC2\n\+ \\EOThash\CAN\STX \SOH(\fR\EOThash\DC2\DC4\n\+ \\ENQvalue\CAN\ETX \SOH(\ETXR\ENQvalue\DC2\GS\n\+ \\n\+ \value_msat\CAN\n\+ \ \SOH(\ETXR\tvalueMsat\DC2)\n\+ \\DLEdescription_hash\CAN\EOT \SOH(\fR\SIdescriptionHash\DC2\SYN\n\+ \\ACKexpiry\CAN\ENQ \SOH(\ETXR\ACKexpiry\DC2#\n\+ \\rfallback_addr\CAN\ACK \SOH(\tR\ffallbackAddr\DC2\US\n\+ \\vcltv_expiry\CAN\a \SOH(\EOTR\n\+ \cltvExpiry\DC21\n\+ \\vroute_hints\CAN\b \ETX(\v2\DLE.lnrpc.RouteHintR\n\+ \routeHints\DC2\CAN\n\+ \\aprivate\CAN\t \SOH(\bR\aprivate"+ packedFileDescriptor _ = packedFileDescriptor+ fieldsByTag+ = let+ memo__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "memo"+ (Data.ProtoLens.ScalarField Data.ProtoLens.StringField ::+ Data.ProtoLens.FieldTypeDescriptor Data.Text.Text)+ (Data.ProtoLens.PlainField+ Data.ProtoLens.Optional (Data.ProtoLens.Field.field @"memo")) ::+ Data.ProtoLens.FieldDescriptor AddHoldInvoiceRequest+ hash__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "hash"+ (Data.ProtoLens.ScalarField Data.ProtoLens.BytesField ::+ Data.ProtoLens.FieldTypeDescriptor Data.ByteString.ByteString)+ (Data.ProtoLens.PlainField+ Data.ProtoLens.Optional (Data.ProtoLens.Field.field @"hash")) ::+ Data.ProtoLens.FieldDescriptor AddHoldInvoiceRequest+ value__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "value"+ (Data.ProtoLens.ScalarField Data.ProtoLens.Int64Field ::+ Data.ProtoLens.FieldTypeDescriptor Data.Int.Int64)+ (Data.ProtoLens.PlainField+ Data.ProtoLens.Optional (Data.ProtoLens.Field.field @"value")) ::+ Data.ProtoLens.FieldDescriptor AddHoldInvoiceRequest+ valueMsat__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "value_msat"+ (Data.ProtoLens.ScalarField Data.ProtoLens.Int64Field ::+ Data.ProtoLens.FieldTypeDescriptor Data.Int.Int64)+ (Data.ProtoLens.PlainField+ Data.ProtoLens.Optional+ (Data.ProtoLens.Field.field @"valueMsat")) ::+ Data.ProtoLens.FieldDescriptor AddHoldInvoiceRequest+ descriptionHash__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "description_hash"+ (Data.ProtoLens.ScalarField Data.ProtoLens.BytesField ::+ Data.ProtoLens.FieldTypeDescriptor Data.ByteString.ByteString)+ (Data.ProtoLens.PlainField+ Data.ProtoLens.Optional+ (Data.ProtoLens.Field.field @"descriptionHash")) ::+ Data.ProtoLens.FieldDescriptor AddHoldInvoiceRequest+ expiry__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "expiry"+ (Data.ProtoLens.ScalarField Data.ProtoLens.Int64Field ::+ Data.ProtoLens.FieldTypeDescriptor Data.Int.Int64)+ (Data.ProtoLens.PlainField+ Data.ProtoLens.Optional (Data.ProtoLens.Field.field @"expiry")) ::+ Data.ProtoLens.FieldDescriptor AddHoldInvoiceRequest+ fallbackAddr__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "fallback_addr"+ (Data.ProtoLens.ScalarField Data.ProtoLens.StringField ::+ Data.ProtoLens.FieldTypeDescriptor Data.Text.Text)+ (Data.ProtoLens.PlainField+ Data.ProtoLens.Optional+ (Data.ProtoLens.Field.field @"fallbackAddr")) ::+ Data.ProtoLens.FieldDescriptor AddHoldInvoiceRequest+ cltvExpiry__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "cltv_expiry"+ (Data.ProtoLens.ScalarField Data.ProtoLens.UInt64Field ::+ Data.ProtoLens.FieldTypeDescriptor Data.Word.Word64)+ (Data.ProtoLens.PlainField+ Data.ProtoLens.Optional+ (Data.ProtoLens.Field.field @"cltvExpiry")) ::+ Data.ProtoLens.FieldDescriptor AddHoldInvoiceRequest+ routeHints__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "route_hints"+ (Data.ProtoLens.MessageField Data.ProtoLens.MessageType ::+ Data.ProtoLens.FieldTypeDescriptor Proto.Lnrpc.Ln0.RouteHint)+ (Data.ProtoLens.RepeatedField+ Data.ProtoLens.Unpacked+ (Data.ProtoLens.Field.field @"routeHints")) ::+ Data.ProtoLens.FieldDescriptor AddHoldInvoiceRequest+ private__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "private"+ (Data.ProtoLens.ScalarField Data.ProtoLens.BoolField ::+ Data.ProtoLens.FieldTypeDescriptor Prelude.Bool)+ (Data.ProtoLens.PlainField+ Data.ProtoLens.Optional (Data.ProtoLens.Field.field @"private")) ::+ Data.ProtoLens.FieldDescriptor AddHoldInvoiceRequest+ in+ Data.Map.fromList+ [(Data.ProtoLens.Tag 1, memo__field_descriptor),+ (Data.ProtoLens.Tag 2, hash__field_descriptor),+ (Data.ProtoLens.Tag 3, value__field_descriptor),+ (Data.ProtoLens.Tag 10, valueMsat__field_descriptor),+ (Data.ProtoLens.Tag 4, descriptionHash__field_descriptor),+ (Data.ProtoLens.Tag 5, expiry__field_descriptor),+ (Data.ProtoLens.Tag 6, fallbackAddr__field_descriptor),+ (Data.ProtoLens.Tag 7, cltvExpiry__field_descriptor),+ (Data.ProtoLens.Tag 8, routeHints__field_descriptor),+ (Data.ProtoLens.Tag 9, private__field_descriptor)]+ unknownFields+ = Lens.Family2.Unchecked.lens+ _AddHoldInvoiceRequest'_unknownFields+ (\ x__ y__ -> x__ {_AddHoldInvoiceRequest'_unknownFields = y__})+ defMessage+ = AddHoldInvoiceRequest'_constructor+ {_AddHoldInvoiceRequest'memo = Data.ProtoLens.fieldDefault,+ _AddHoldInvoiceRequest'hash = Data.ProtoLens.fieldDefault,+ _AddHoldInvoiceRequest'value = Data.ProtoLens.fieldDefault,+ _AddHoldInvoiceRequest'valueMsat = Data.ProtoLens.fieldDefault,+ _AddHoldInvoiceRequest'descriptionHash = Data.ProtoLens.fieldDefault,+ _AddHoldInvoiceRequest'expiry = Data.ProtoLens.fieldDefault,+ _AddHoldInvoiceRequest'fallbackAddr = Data.ProtoLens.fieldDefault,+ _AddHoldInvoiceRequest'cltvExpiry = Data.ProtoLens.fieldDefault,+ _AddHoldInvoiceRequest'routeHints = Data.Vector.Generic.empty,+ _AddHoldInvoiceRequest'private = Data.ProtoLens.fieldDefault,+ _AddHoldInvoiceRequest'_unknownFields = []}+ parseMessage+ = let+ loop ::+ AddHoldInvoiceRequest+ -> Data.ProtoLens.Encoding.Growing.Growing Data.Vector.Vector Data.ProtoLens.Encoding.Growing.RealWorld Proto.Lnrpc.Ln0.RouteHint+ -> Data.ProtoLens.Encoding.Bytes.Parser AddHoldInvoiceRequest+ loop x mutable'routeHints+ = do end <- Data.ProtoLens.Encoding.Bytes.atEnd+ if end then+ do frozen'routeHints <- Data.ProtoLens.Encoding.Parser.Unsafe.unsafeLiftIO+ (Data.ProtoLens.Encoding.Growing.unsafeFreeze+ mutable'routeHints)+ (let missing = []+ in+ if Prelude.null missing then+ Prelude.return ()+ else+ Prelude.fail+ ((Prelude.++)+ "Missing required fields: "+ (Prelude.show (missing :: [Prelude.String]))))+ Prelude.return+ (Lens.Family2.over+ Data.ProtoLens.unknownFields (\ !t -> Prelude.reverse t)+ (Lens.Family2.set+ (Data.ProtoLens.Field.field @"vec'routeHints") frozen'routeHints+ x))+ else+ do tag <- Data.ProtoLens.Encoding.Bytes.getVarInt+ case tag of+ 10+ -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (do value <- do len <- Data.ProtoLens.Encoding.Bytes.getVarInt+ Data.ProtoLens.Encoding.Bytes.getBytes+ (Prelude.fromIntegral len)+ Data.ProtoLens.Encoding.Bytes.runEither+ (case Data.Text.Encoding.decodeUtf8' value of+ (Prelude.Left err)+ -> Prelude.Left (Prelude.show err)+ (Prelude.Right r) -> Prelude.Right r))+ "memo"+ loop+ (Lens.Family2.set (Data.ProtoLens.Field.field @"memo") y x)+ mutable'routeHints+ 18+ -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (do len <- Data.ProtoLens.Encoding.Bytes.getVarInt+ Data.ProtoLens.Encoding.Bytes.getBytes+ (Prelude.fromIntegral len))+ "hash"+ loop+ (Lens.Family2.set (Data.ProtoLens.Field.field @"hash") y x)+ mutable'routeHints+ 24+ -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (Prelude.fmap+ Prelude.fromIntegral+ Data.ProtoLens.Encoding.Bytes.getVarInt)+ "value"+ loop+ (Lens.Family2.set (Data.ProtoLens.Field.field @"value") y x)+ mutable'routeHints+ 80+ -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (Prelude.fmap+ Prelude.fromIntegral+ Data.ProtoLens.Encoding.Bytes.getVarInt)+ "value_msat"+ loop+ (Lens.Family2.set (Data.ProtoLens.Field.field @"valueMsat") y x)+ mutable'routeHints+ 34+ -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (do len <- Data.ProtoLens.Encoding.Bytes.getVarInt+ Data.ProtoLens.Encoding.Bytes.getBytes+ (Prelude.fromIntegral len))+ "description_hash"+ loop+ (Lens.Family2.set+ (Data.ProtoLens.Field.field @"descriptionHash") y x)+ mutable'routeHints+ 40+ -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (Prelude.fmap+ Prelude.fromIntegral+ Data.ProtoLens.Encoding.Bytes.getVarInt)+ "expiry"+ loop+ (Lens.Family2.set (Data.ProtoLens.Field.field @"expiry") y x)+ mutable'routeHints+ 50+ -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (do value <- do len <- Data.ProtoLens.Encoding.Bytes.getVarInt+ Data.ProtoLens.Encoding.Bytes.getBytes+ (Prelude.fromIntegral len)+ Data.ProtoLens.Encoding.Bytes.runEither+ (case Data.Text.Encoding.decodeUtf8' value of+ (Prelude.Left err)+ -> Prelude.Left (Prelude.show err)+ (Prelude.Right r) -> Prelude.Right r))+ "fallback_addr"+ loop+ (Lens.Family2.set+ (Data.ProtoLens.Field.field @"fallbackAddr") y x)+ mutable'routeHints+ 56+ -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ Data.ProtoLens.Encoding.Bytes.getVarInt "cltv_expiry"+ loop+ (Lens.Family2.set (Data.ProtoLens.Field.field @"cltvExpiry") y x)+ mutable'routeHints+ 66+ -> do !y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (do len <- Data.ProtoLens.Encoding.Bytes.getVarInt+ Data.ProtoLens.Encoding.Bytes.isolate+ (Prelude.fromIntegral len)+ Data.ProtoLens.parseMessage)+ "route_hints"+ v <- Data.ProtoLens.Encoding.Parser.Unsafe.unsafeLiftIO+ (Data.ProtoLens.Encoding.Growing.append mutable'routeHints y)+ loop x v+ 72+ -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (Prelude.fmap+ ((Prelude./=) 0) Data.ProtoLens.Encoding.Bytes.getVarInt)+ "private"+ loop+ (Lens.Family2.set (Data.ProtoLens.Field.field @"private") y x)+ mutable'routeHints+ wire+ -> do !y <- Data.ProtoLens.Encoding.Wire.parseTaggedValueFromWire+ wire+ loop+ (Lens.Family2.over+ Data.ProtoLens.unknownFields (\ !t -> (:) y t) x)+ mutable'routeHints+ in+ (Data.ProtoLens.Encoding.Bytes.<?>)+ (do mutable'routeHints <- Data.ProtoLens.Encoding.Parser.Unsafe.unsafeLiftIO+ Data.ProtoLens.Encoding.Growing.new+ loop Data.ProtoLens.defMessage mutable'routeHints)+ "AddHoldInvoiceRequest"+ buildMessage+ = \ _x+ -> (Data.Monoid.<>)+ (let _v = Lens.Family2.view (Data.ProtoLens.Field.field @"memo") _x+ in+ if (Prelude.==) _v Data.ProtoLens.fieldDefault then+ Data.Monoid.mempty+ else+ (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 10)+ ((Prelude..)+ (\ bs+ -> (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt+ (Prelude.fromIntegral (Data.ByteString.length bs)))+ (Data.ProtoLens.Encoding.Bytes.putBytes bs))+ Data.Text.Encoding.encodeUtf8 _v))+ ((Data.Monoid.<>)+ (let _v = Lens.Family2.view (Data.ProtoLens.Field.field @"hash") _x+ in+ if (Prelude.==) _v Data.ProtoLens.fieldDefault then+ Data.Monoid.mempty+ else+ (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 18)+ ((\ bs+ -> (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt+ (Prelude.fromIntegral (Data.ByteString.length bs)))+ (Data.ProtoLens.Encoding.Bytes.putBytes bs))+ _v))+ ((Data.Monoid.<>)+ (let+ _v = Lens.Family2.view (Data.ProtoLens.Field.field @"value") _x+ in+ if (Prelude.==) _v Data.ProtoLens.fieldDefault then+ Data.Monoid.mempty+ else+ (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 24)+ ((Prelude..)+ Data.ProtoLens.Encoding.Bytes.putVarInt Prelude.fromIntegral _v))+ ((Data.Monoid.<>)+ (let+ _v = Lens.Family2.view (Data.ProtoLens.Field.field @"valueMsat") _x+ in+ if (Prelude.==) _v Data.ProtoLens.fieldDefault then+ Data.Monoid.mempty+ else+ (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 80)+ ((Prelude..)+ Data.ProtoLens.Encoding.Bytes.putVarInt Prelude.fromIntegral _v))+ ((Data.Monoid.<>)+ (let+ _v+ = Lens.Family2.view+ (Data.ProtoLens.Field.field @"descriptionHash") _x+ in+ if (Prelude.==) _v Data.ProtoLens.fieldDefault then+ Data.Monoid.mempty+ else+ (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 34)+ ((\ bs+ -> (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt+ (Prelude.fromIntegral (Data.ByteString.length bs)))+ (Data.ProtoLens.Encoding.Bytes.putBytes bs))+ _v))+ ((Data.Monoid.<>)+ (let+ _v = Lens.Family2.view (Data.ProtoLens.Field.field @"expiry") _x+ in+ if (Prelude.==) _v Data.ProtoLens.fieldDefault then+ Data.Monoid.mempty+ else+ (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 40)+ ((Prelude..)+ Data.ProtoLens.Encoding.Bytes.putVarInt Prelude.fromIntegral+ _v))+ ((Data.Monoid.<>)+ (let+ _v+ = Lens.Family2.view+ (Data.ProtoLens.Field.field @"fallbackAddr") _x+ in+ if (Prelude.==) _v Data.ProtoLens.fieldDefault then+ Data.Monoid.mempty+ else+ (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 50)+ ((Prelude..)+ (\ bs+ -> (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt+ (Prelude.fromIntegral+ (Data.ByteString.length bs)))+ (Data.ProtoLens.Encoding.Bytes.putBytes bs))+ Data.Text.Encoding.encodeUtf8 _v))+ ((Data.Monoid.<>)+ (let+ _v+ = Lens.Family2.view+ (Data.ProtoLens.Field.field @"cltvExpiry") _x+ in+ if (Prelude.==) _v Data.ProtoLens.fieldDefault then+ Data.Monoid.mempty+ else+ (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 56)+ (Data.ProtoLens.Encoding.Bytes.putVarInt _v))+ ((Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.foldMapBuilder+ (\ _v+ -> (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 66)+ ((Prelude..)+ (\ bs+ -> (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt+ (Prelude.fromIntegral+ (Data.ByteString.length bs)))+ (Data.ProtoLens.Encoding.Bytes.putBytes+ bs))+ Data.ProtoLens.encodeMessage _v))+ (Lens.Family2.view+ (Data.ProtoLens.Field.field @"vec'routeHints") _x))+ ((Data.Monoid.<>)+ (let+ _v+ = Lens.Family2.view+ (Data.ProtoLens.Field.field @"private") _x+ in+ if (Prelude.==) _v Data.ProtoLens.fieldDefault then+ Data.Monoid.mempty+ else+ (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 72)+ ((Prelude..)+ Data.ProtoLens.Encoding.Bytes.putVarInt+ (\ b -> if b then 1 else 0) _v))+ (Data.ProtoLens.Encoding.Wire.buildFieldSet+ (Lens.Family2.view+ Data.ProtoLens.unknownFields _x)))))))))))+instance Control.DeepSeq.NFData AddHoldInvoiceRequest where+ rnf+ = \ x__+ -> Control.DeepSeq.deepseq+ (_AddHoldInvoiceRequest'_unknownFields x__)+ (Control.DeepSeq.deepseq+ (_AddHoldInvoiceRequest'memo x__)+ (Control.DeepSeq.deepseq+ (_AddHoldInvoiceRequest'hash x__)+ (Control.DeepSeq.deepseq+ (_AddHoldInvoiceRequest'value x__)+ (Control.DeepSeq.deepseq+ (_AddHoldInvoiceRequest'valueMsat x__)+ (Control.DeepSeq.deepseq+ (_AddHoldInvoiceRequest'descriptionHash x__)+ (Control.DeepSeq.deepseq+ (_AddHoldInvoiceRequest'expiry x__)+ (Control.DeepSeq.deepseq+ (_AddHoldInvoiceRequest'fallbackAddr x__)+ (Control.DeepSeq.deepseq+ (_AddHoldInvoiceRequest'cltvExpiry x__)+ (Control.DeepSeq.deepseq+ (_AddHoldInvoiceRequest'routeHints x__)+ (Control.DeepSeq.deepseq+ (_AddHoldInvoiceRequest'private x__) ()))))))))))+{- | Fields :+ + * 'Proto.Invoicesrpc.Invoices_Fields.paymentRequest' @:: Lens' AddHoldInvoiceResp Data.Text.Text@+ * 'Proto.Invoicesrpc.Invoices_Fields.addIndex' @:: Lens' AddHoldInvoiceResp Data.Word.Word64@+ * 'Proto.Invoicesrpc.Invoices_Fields.paymentAddr' @:: Lens' AddHoldInvoiceResp Data.ByteString.ByteString@ -}+data AddHoldInvoiceResp+ = AddHoldInvoiceResp'_constructor {_AddHoldInvoiceResp'paymentRequest :: !Data.Text.Text,+ _AddHoldInvoiceResp'addIndex :: !Data.Word.Word64,+ _AddHoldInvoiceResp'paymentAddr :: !Data.ByteString.ByteString,+ _AddHoldInvoiceResp'_unknownFields :: !Data.ProtoLens.FieldSet}+ deriving stock (Prelude.Eq, Prelude.Ord, GHC.Generics.Generic)+instance Prelude.Show AddHoldInvoiceResp where+ showsPrec _ __x __s+ = Prelude.showChar+ '{'+ (Prelude.showString+ (Data.ProtoLens.showMessageShort __x) (Prelude.showChar '}' __s))+instance Text.PrettyPrint.GenericPretty.Out AddHoldInvoiceResp+instance Data.ProtoLens.Field.HasField AddHoldInvoiceResp "paymentRequest" Data.Text.Text where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _AddHoldInvoiceResp'paymentRequest+ (\ x__ y__ -> x__ {_AddHoldInvoiceResp'paymentRequest = y__}))+ Prelude.id+instance Data.ProtoLens.Field.HasField AddHoldInvoiceResp "addIndex" Data.Word.Word64 where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _AddHoldInvoiceResp'addIndex+ (\ x__ y__ -> x__ {_AddHoldInvoiceResp'addIndex = y__}))+ Prelude.id+instance Data.ProtoLens.Field.HasField AddHoldInvoiceResp "paymentAddr" Data.ByteString.ByteString where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _AddHoldInvoiceResp'paymentAddr+ (\ x__ y__ -> x__ {_AddHoldInvoiceResp'paymentAddr = y__}))+ Prelude.id+instance Data.ProtoLens.Message AddHoldInvoiceResp where+ messageName _ = Data.Text.pack "invoicesrpc.AddHoldInvoiceResp"+ packedMessageDescriptor _+ = "\n\+ \\DC2AddHoldInvoiceResp\DC2'\n\+ \\SIpayment_request\CAN\SOH \SOH(\tR\SOpaymentRequest\DC2\ESC\n\+ \\tadd_index\CAN\STX \SOH(\EOTR\baddIndex\DC2!\n\+ \\fpayment_addr\CAN\ETX \SOH(\fR\vpaymentAddr"+ packedFileDescriptor _ = packedFileDescriptor+ fieldsByTag+ = let+ paymentRequest__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "payment_request"+ (Data.ProtoLens.ScalarField Data.ProtoLens.StringField ::+ Data.ProtoLens.FieldTypeDescriptor Data.Text.Text)+ (Data.ProtoLens.PlainField+ Data.ProtoLens.Optional+ (Data.ProtoLens.Field.field @"paymentRequest")) ::+ Data.ProtoLens.FieldDescriptor AddHoldInvoiceResp+ addIndex__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "add_index"+ (Data.ProtoLens.ScalarField Data.ProtoLens.UInt64Field ::+ Data.ProtoLens.FieldTypeDescriptor Data.Word.Word64)+ (Data.ProtoLens.PlainField+ Data.ProtoLens.Optional+ (Data.ProtoLens.Field.field @"addIndex")) ::+ Data.ProtoLens.FieldDescriptor AddHoldInvoiceResp+ paymentAddr__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "payment_addr"+ (Data.ProtoLens.ScalarField Data.ProtoLens.BytesField ::+ Data.ProtoLens.FieldTypeDescriptor Data.ByteString.ByteString)+ (Data.ProtoLens.PlainField+ Data.ProtoLens.Optional+ (Data.ProtoLens.Field.field @"paymentAddr")) ::+ Data.ProtoLens.FieldDescriptor AddHoldInvoiceResp+ in+ Data.Map.fromList+ [(Data.ProtoLens.Tag 1, paymentRequest__field_descriptor),+ (Data.ProtoLens.Tag 2, addIndex__field_descriptor),+ (Data.ProtoLens.Tag 3, paymentAddr__field_descriptor)]+ unknownFields+ = Lens.Family2.Unchecked.lens+ _AddHoldInvoiceResp'_unknownFields+ (\ x__ y__ -> x__ {_AddHoldInvoiceResp'_unknownFields = y__})+ defMessage+ = AddHoldInvoiceResp'_constructor+ {_AddHoldInvoiceResp'paymentRequest = Data.ProtoLens.fieldDefault,+ _AddHoldInvoiceResp'addIndex = Data.ProtoLens.fieldDefault,+ _AddHoldInvoiceResp'paymentAddr = Data.ProtoLens.fieldDefault,+ _AddHoldInvoiceResp'_unknownFields = []}+ parseMessage+ = let+ loop ::+ AddHoldInvoiceResp+ -> Data.ProtoLens.Encoding.Bytes.Parser AddHoldInvoiceResp+ loop x+ = do end <- Data.ProtoLens.Encoding.Bytes.atEnd+ if end then+ do (let missing = []+ in+ if Prelude.null missing then+ Prelude.return ()+ else+ Prelude.fail+ ((Prelude.++)+ "Missing required fields: "+ (Prelude.show (missing :: [Prelude.String]))))+ Prelude.return+ (Lens.Family2.over+ Data.ProtoLens.unknownFields (\ !t -> Prelude.reverse t) x)+ else+ do tag <- Data.ProtoLens.Encoding.Bytes.getVarInt+ case tag of+ 10+ -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (do value <- do len <- Data.ProtoLens.Encoding.Bytes.getVarInt+ Data.ProtoLens.Encoding.Bytes.getBytes+ (Prelude.fromIntegral len)+ Data.ProtoLens.Encoding.Bytes.runEither+ (case Data.Text.Encoding.decodeUtf8' value of+ (Prelude.Left err)+ -> Prelude.Left (Prelude.show err)+ (Prelude.Right r) -> Prelude.Right r))+ "payment_request"+ loop+ (Lens.Family2.set+ (Data.ProtoLens.Field.field @"paymentRequest") y x)+ 16+ -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ Data.ProtoLens.Encoding.Bytes.getVarInt "add_index"+ loop+ (Lens.Family2.set (Data.ProtoLens.Field.field @"addIndex") y x)+ 26+ -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (do len <- Data.ProtoLens.Encoding.Bytes.getVarInt+ Data.ProtoLens.Encoding.Bytes.getBytes+ (Prelude.fromIntegral len))+ "payment_addr"+ loop+ (Lens.Family2.set (Data.ProtoLens.Field.field @"paymentAddr") y x)+ wire+ -> do !y <- Data.ProtoLens.Encoding.Wire.parseTaggedValueFromWire+ wire+ loop+ (Lens.Family2.over+ Data.ProtoLens.unknownFields (\ !t -> (:) y t) x)+ in+ (Data.ProtoLens.Encoding.Bytes.<?>)+ (do loop Data.ProtoLens.defMessage) "AddHoldInvoiceResp"+ buildMessage+ = \ _x+ -> (Data.Monoid.<>)+ (let+ _v+ = Lens.Family2.view+ (Data.ProtoLens.Field.field @"paymentRequest") _x+ in+ if (Prelude.==) _v Data.ProtoLens.fieldDefault then+ Data.Monoid.mempty+ else+ (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 10)+ ((Prelude..)+ (\ bs+ -> (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt+ (Prelude.fromIntegral (Data.ByteString.length bs)))+ (Data.ProtoLens.Encoding.Bytes.putBytes bs))+ Data.Text.Encoding.encodeUtf8 _v))+ ((Data.Monoid.<>)+ (let+ _v = Lens.Family2.view (Data.ProtoLens.Field.field @"addIndex") _x+ in+ if (Prelude.==) _v Data.ProtoLens.fieldDefault then+ Data.Monoid.mempty+ else+ (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 16)+ (Data.ProtoLens.Encoding.Bytes.putVarInt _v))+ ((Data.Monoid.<>)+ (let+ _v+ = Lens.Family2.view (Data.ProtoLens.Field.field @"paymentAddr") _x+ in+ if (Prelude.==) _v Data.ProtoLens.fieldDefault then+ Data.Monoid.mempty+ else+ (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 26)+ ((\ bs+ -> (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt+ (Prelude.fromIntegral (Data.ByteString.length bs)))+ (Data.ProtoLens.Encoding.Bytes.putBytes bs))+ _v))+ (Data.ProtoLens.Encoding.Wire.buildFieldSet+ (Lens.Family2.view Data.ProtoLens.unknownFields _x))))+instance Control.DeepSeq.NFData AddHoldInvoiceResp where+ rnf+ = \ x__+ -> Control.DeepSeq.deepseq+ (_AddHoldInvoiceResp'_unknownFields x__)+ (Control.DeepSeq.deepseq+ (_AddHoldInvoiceResp'paymentRequest x__)+ (Control.DeepSeq.deepseq+ (_AddHoldInvoiceResp'addIndex x__)+ (Control.DeepSeq.deepseq+ (_AddHoldInvoiceResp'paymentAddr x__) ())))+{- | Fields :+ + * 'Proto.Invoicesrpc.Invoices_Fields.paymentHash' @:: Lens' CancelInvoiceMsg Data.ByteString.ByteString@ -}+data CancelInvoiceMsg+ = CancelInvoiceMsg'_constructor {_CancelInvoiceMsg'paymentHash :: !Data.ByteString.ByteString,+ _CancelInvoiceMsg'_unknownFields :: !Data.ProtoLens.FieldSet}+ deriving stock (Prelude.Eq, Prelude.Ord, GHC.Generics.Generic)+instance Prelude.Show CancelInvoiceMsg where+ showsPrec _ __x __s+ = Prelude.showChar+ '{'+ (Prelude.showString+ (Data.ProtoLens.showMessageShort __x) (Prelude.showChar '}' __s))+instance Text.PrettyPrint.GenericPretty.Out CancelInvoiceMsg+instance Data.ProtoLens.Field.HasField CancelInvoiceMsg "paymentHash" Data.ByteString.ByteString where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _CancelInvoiceMsg'paymentHash+ (\ x__ y__ -> x__ {_CancelInvoiceMsg'paymentHash = y__}))+ Prelude.id+instance Data.ProtoLens.Message CancelInvoiceMsg where+ messageName _ = Data.Text.pack "invoicesrpc.CancelInvoiceMsg"+ packedMessageDescriptor _+ = "\n\+ \\DLECancelInvoiceMsg\DC2!\n\+ \\fpayment_hash\CAN\SOH \SOH(\fR\vpaymentHash"+ packedFileDescriptor _ = packedFileDescriptor+ fieldsByTag+ = let+ paymentHash__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "payment_hash"+ (Data.ProtoLens.ScalarField Data.ProtoLens.BytesField ::+ Data.ProtoLens.FieldTypeDescriptor Data.ByteString.ByteString)+ (Data.ProtoLens.PlainField+ Data.ProtoLens.Optional+ (Data.ProtoLens.Field.field @"paymentHash")) ::+ Data.ProtoLens.FieldDescriptor CancelInvoiceMsg+ in+ Data.Map.fromList+ [(Data.ProtoLens.Tag 1, paymentHash__field_descriptor)]+ unknownFields+ = Lens.Family2.Unchecked.lens+ _CancelInvoiceMsg'_unknownFields+ (\ x__ y__ -> x__ {_CancelInvoiceMsg'_unknownFields = y__})+ defMessage+ = CancelInvoiceMsg'_constructor+ {_CancelInvoiceMsg'paymentHash = Data.ProtoLens.fieldDefault,+ _CancelInvoiceMsg'_unknownFields = []}+ parseMessage+ = let+ loop ::+ CancelInvoiceMsg+ -> Data.ProtoLens.Encoding.Bytes.Parser CancelInvoiceMsg+ loop x+ = do end <- Data.ProtoLens.Encoding.Bytes.atEnd+ if end then+ do (let missing = []+ in+ if Prelude.null missing then+ Prelude.return ()+ else+ Prelude.fail+ ((Prelude.++)+ "Missing required fields: "+ (Prelude.show (missing :: [Prelude.String]))))+ Prelude.return+ (Lens.Family2.over+ Data.ProtoLens.unknownFields (\ !t -> Prelude.reverse t) x)+ else+ do tag <- Data.ProtoLens.Encoding.Bytes.getVarInt+ case tag of+ 10+ -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (do len <- Data.ProtoLens.Encoding.Bytes.getVarInt+ Data.ProtoLens.Encoding.Bytes.getBytes+ (Prelude.fromIntegral len))+ "payment_hash"+ loop+ (Lens.Family2.set (Data.ProtoLens.Field.field @"paymentHash") y x)+ wire+ -> do !y <- Data.ProtoLens.Encoding.Wire.parseTaggedValueFromWire+ wire+ loop+ (Lens.Family2.over+ Data.ProtoLens.unknownFields (\ !t -> (:) y t) x)+ in+ (Data.ProtoLens.Encoding.Bytes.<?>)+ (do loop Data.ProtoLens.defMessage) "CancelInvoiceMsg"+ buildMessage+ = \ _x+ -> (Data.Monoid.<>)+ (let+ _v+ = Lens.Family2.view (Data.ProtoLens.Field.field @"paymentHash") _x+ in+ if (Prelude.==) _v Data.ProtoLens.fieldDefault then+ Data.Monoid.mempty+ else+ (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 10)+ ((\ bs+ -> (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt+ (Prelude.fromIntegral (Data.ByteString.length bs)))+ (Data.ProtoLens.Encoding.Bytes.putBytes bs))+ _v))+ (Data.ProtoLens.Encoding.Wire.buildFieldSet+ (Lens.Family2.view Data.ProtoLens.unknownFields _x))+instance Control.DeepSeq.NFData CancelInvoiceMsg where+ rnf+ = \ x__+ -> Control.DeepSeq.deepseq+ (_CancelInvoiceMsg'_unknownFields x__)+ (Control.DeepSeq.deepseq (_CancelInvoiceMsg'paymentHash x__) ())+{- | Fields :+ -}+data CancelInvoiceResp+ = CancelInvoiceResp'_constructor {_CancelInvoiceResp'_unknownFields :: !Data.ProtoLens.FieldSet}+ deriving stock (Prelude.Eq, Prelude.Ord, GHC.Generics.Generic)+instance Prelude.Show CancelInvoiceResp where+ showsPrec _ __x __s+ = Prelude.showChar+ '{'+ (Prelude.showString+ (Data.ProtoLens.showMessageShort __x) (Prelude.showChar '}' __s))+instance Text.PrettyPrint.GenericPretty.Out CancelInvoiceResp+instance Data.ProtoLens.Message CancelInvoiceResp where+ messageName _ = Data.Text.pack "invoicesrpc.CancelInvoiceResp"+ packedMessageDescriptor _+ = "\n\+ \\DC1CancelInvoiceResp"+ packedFileDescriptor _ = packedFileDescriptor+ fieldsByTag = let in Data.Map.fromList []+ unknownFields+ = Lens.Family2.Unchecked.lens+ _CancelInvoiceResp'_unknownFields+ (\ x__ y__ -> x__ {_CancelInvoiceResp'_unknownFields = y__})+ defMessage+ = CancelInvoiceResp'_constructor+ {_CancelInvoiceResp'_unknownFields = []}+ parseMessage+ = let+ loop ::+ CancelInvoiceResp+ -> Data.ProtoLens.Encoding.Bytes.Parser CancelInvoiceResp+ loop x+ = do end <- Data.ProtoLens.Encoding.Bytes.atEnd+ if end then+ do (let missing = []+ in+ if Prelude.null missing then+ Prelude.return ()+ else+ Prelude.fail+ ((Prelude.++)+ "Missing required fields: "+ (Prelude.show (missing :: [Prelude.String]))))+ Prelude.return+ (Lens.Family2.over+ Data.ProtoLens.unknownFields (\ !t -> Prelude.reverse t) x)+ else+ do tag <- Data.ProtoLens.Encoding.Bytes.getVarInt+ case tag of {+ wire+ -> do !y <- Data.ProtoLens.Encoding.Wire.parseTaggedValueFromWire+ wire+ loop+ (Lens.Family2.over+ Data.ProtoLens.unknownFields (\ !t -> (:) y t) x) }+ in+ (Data.ProtoLens.Encoding.Bytes.<?>)+ (do loop Data.ProtoLens.defMessage) "CancelInvoiceResp"+ buildMessage+ = \ _x+ -> Data.ProtoLens.Encoding.Wire.buildFieldSet+ (Lens.Family2.view Data.ProtoLens.unknownFields _x)+instance Control.DeepSeq.NFData CancelInvoiceResp where+ rnf+ = \ x__+ -> Control.DeepSeq.deepseq+ (_CancelInvoiceResp'_unknownFields x__) ()+{- | Fields :+ + * 'Proto.Invoicesrpc.Invoices_Fields.lookupModifier' @:: Lens' LookupInvoiceMsg LookupModifier@+ * 'Proto.Invoicesrpc.Invoices_Fields.maybe'invoiceRef' @:: Lens' LookupInvoiceMsg (Prelude.Maybe LookupInvoiceMsg'InvoiceRef)@+ * 'Proto.Invoicesrpc.Invoices_Fields.maybe'paymentHash' @:: Lens' LookupInvoiceMsg (Prelude.Maybe Data.ByteString.ByteString)@+ * 'Proto.Invoicesrpc.Invoices_Fields.paymentHash' @:: Lens' LookupInvoiceMsg Data.ByteString.ByteString@+ * 'Proto.Invoicesrpc.Invoices_Fields.maybe'paymentAddr' @:: Lens' LookupInvoiceMsg (Prelude.Maybe Data.ByteString.ByteString)@+ * 'Proto.Invoicesrpc.Invoices_Fields.paymentAddr' @:: Lens' LookupInvoiceMsg Data.ByteString.ByteString@+ * 'Proto.Invoicesrpc.Invoices_Fields.maybe'setId' @:: Lens' LookupInvoiceMsg (Prelude.Maybe Data.ByteString.ByteString)@+ * 'Proto.Invoicesrpc.Invoices_Fields.setId' @:: Lens' LookupInvoiceMsg Data.ByteString.ByteString@ -}+data LookupInvoiceMsg+ = LookupInvoiceMsg'_constructor {_LookupInvoiceMsg'lookupModifier :: !LookupModifier,+ _LookupInvoiceMsg'invoiceRef :: !(Prelude.Maybe LookupInvoiceMsg'InvoiceRef),+ _LookupInvoiceMsg'_unknownFields :: !Data.ProtoLens.FieldSet}+ deriving stock (Prelude.Eq, Prelude.Ord, GHC.Generics.Generic)+instance Prelude.Show LookupInvoiceMsg where+ showsPrec _ __x __s+ = Prelude.showChar+ '{'+ (Prelude.showString+ (Data.ProtoLens.showMessageShort __x) (Prelude.showChar '}' __s))+instance Text.PrettyPrint.GenericPretty.Out LookupInvoiceMsg+data LookupInvoiceMsg'InvoiceRef+ = LookupInvoiceMsg'PaymentHash !Data.ByteString.ByteString |+ LookupInvoiceMsg'PaymentAddr !Data.ByteString.ByteString |+ LookupInvoiceMsg'SetId !Data.ByteString.ByteString+ deriving stock (Prelude.Show,+ Prelude.Eq,+ Prelude.Ord,+ GHC.Generics.Generic)+instance Text.PrettyPrint.GenericPretty.Out LookupInvoiceMsg'InvoiceRef+instance Data.ProtoLens.Field.HasField LookupInvoiceMsg "lookupModifier" LookupModifier where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _LookupInvoiceMsg'lookupModifier+ (\ x__ y__ -> x__ {_LookupInvoiceMsg'lookupModifier = y__}))+ Prelude.id+instance Data.ProtoLens.Field.HasField LookupInvoiceMsg "maybe'invoiceRef" (Prelude.Maybe LookupInvoiceMsg'InvoiceRef) where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _LookupInvoiceMsg'invoiceRef+ (\ x__ y__ -> x__ {_LookupInvoiceMsg'invoiceRef = y__}))+ Prelude.id+instance Data.ProtoLens.Field.HasField LookupInvoiceMsg "maybe'paymentHash" (Prelude.Maybe Data.ByteString.ByteString) where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _LookupInvoiceMsg'invoiceRef+ (\ x__ y__ -> x__ {_LookupInvoiceMsg'invoiceRef = y__}))+ (Lens.Family2.Unchecked.lens+ (\ x__+ -> case x__ of+ (Prelude.Just (LookupInvoiceMsg'PaymentHash x__val))+ -> Prelude.Just x__val+ _otherwise -> Prelude.Nothing)+ (\ _ y__ -> Prelude.fmap LookupInvoiceMsg'PaymentHash y__))+instance Data.ProtoLens.Field.HasField LookupInvoiceMsg "paymentHash" Data.ByteString.ByteString where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _LookupInvoiceMsg'invoiceRef+ (\ x__ y__ -> x__ {_LookupInvoiceMsg'invoiceRef = y__}))+ ((Prelude..)+ (Lens.Family2.Unchecked.lens+ (\ x__+ -> case x__ of+ (Prelude.Just (LookupInvoiceMsg'PaymentHash x__val))+ -> Prelude.Just x__val+ _otherwise -> Prelude.Nothing)+ (\ _ y__ -> Prelude.fmap LookupInvoiceMsg'PaymentHash y__))+ (Data.ProtoLens.maybeLens Data.ProtoLens.fieldDefault))+instance Data.ProtoLens.Field.HasField LookupInvoiceMsg "maybe'paymentAddr" (Prelude.Maybe Data.ByteString.ByteString) where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _LookupInvoiceMsg'invoiceRef+ (\ x__ y__ -> x__ {_LookupInvoiceMsg'invoiceRef = y__}))+ (Lens.Family2.Unchecked.lens+ (\ x__+ -> case x__ of+ (Prelude.Just (LookupInvoiceMsg'PaymentAddr x__val))+ -> Prelude.Just x__val+ _otherwise -> Prelude.Nothing)+ (\ _ y__ -> Prelude.fmap LookupInvoiceMsg'PaymentAddr y__))+instance Data.ProtoLens.Field.HasField LookupInvoiceMsg "paymentAddr" Data.ByteString.ByteString where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _LookupInvoiceMsg'invoiceRef+ (\ x__ y__ -> x__ {_LookupInvoiceMsg'invoiceRef = y__}))+ ((Prelude..)+ (Lens.Family2.Unchecked.lens+ (\ x__+ -> case x__ of+ (Prelude.Just (LookupInvoiceMsg'PaymentAddr x__val))+ -> Prelude.Just x__val+ _otherwise -> Prelude.Nothing)+ (\ _ y__ -> Prelude.fmap LookupInvoiceMsg'PaymentAddr y__))+ (Data.ProtoLens.maybeLens Data.ProtoLens.fieldDefault))+instance Data.ProtoLens.Field.HasField LookupInvoiceMsg "maybe'setId" (Prelude.Maybe Data.ByteString.ByteString) where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _LookupInvoiceMsg'invoiceRef+ (\ x__ y__ -> x__ {_LookupInvoiceMsg'invoiceRef = y__}))+ (Lens.Family2.Unchecked.lens+ (\ x__+ -> case x__ of+ (Prelude.Just (LookupInvoiceMsg'SetId x__val))+ -> Prelude.Just x__val+ _otherwise -> Prelude.Nothing)+ (\ _ y__ -> Prelude.fmap LookupInvoiceMsg'SetId y__))+instance Data.ProtoLens.Field.HasField LookupInvoiceMsg "setId" Data.ByteString.ByteString where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _LookupInvoiceMsg'invoiceRef+ (\ x__ y__ -> x__ {_LookupInvoiceMsg'invoiceRef = y__}))+ ((Prelude..)+ (Lens.Family2.Unchecked.lens+ (\ x__+ -> case x__ of+ (Prelude.Just (LookupInvoiceMsg'SetId x__val))+ -> Prelude.Just x__val+ _otherwise -> Prelude.Nothing)+ (\ _ y__ -> Prelude.fmap LookupInvoiceMsg'SetId y__))+ (Data.ProtoLens.maybeLens Data.ProtoLens.fieldDefault))+instance Data.ProtoLens.Message LookupInvoiceMsg where+ messageName _ = Data.Text.pack "invoicesrpc.LookupInvoiceMsg"+ packedMessageDescriptor _+ = "\n\+ \\DLELookupInvoiceMsg\DC2#\n\+ \\fpayment_hash\CAN\SOH \SOH(\fH\NULR\vpaymentHash\DC2#\n\+ \\fpayment_addr\CAN\STX \SOH(\fH\NULR\vpaymentAddr\DC2\ETB\n\+ \\ACKset_id\CAN\ETX \SOH(\fH\NULR\ENQsetId\DC2D\n\+ \\SIlookup_modifier\CAN\EOT \SOH(\SO2\ESC.invoicesrpc.LookupModifierR\SOlookupModifierB\r\n\+ \\vinvoice_ref"+ packedFileDescriptor _ = packedFileDescriptor+ fieldsByTag+ = let+ lookupModifier__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "lookup_modifier"+ (Data.ProtoLens.ScalarField Data.ProtoLens.EnumField ::+ Data.ProtoLens.FieldTypeDescriptor LookupModifier)+ (Data.ProtoLens.PlainField+ Data.ProtoLens.Optional+ (Data.ProtoLens.Field.field @"lookupModifier")) ::+ Data.ProtoLens.FieldDescriptor LookupInvoiceMsg+ paymentHash__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "payment_hash"+ (Data.ProtoLens.ScalarField Data.ProtoLens.BytesField ::+ Data.ProtoLens.FieldTypeDescriptor Data.ByteString.ByteString)+ (Data.ProtoLens.OptionalField+ (Data.ProtoLens.Field.field @"maybe'paymentHash")) ::+ Data.ProtoLens.FieldDescriptor LookupInvoiceMsg+ paymentAddr__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "payment_addr"+ (Data.ProtoLens.ScalarField Data.ProtoLens.BytesField ::+ Data.ProtoLens.FieldTypeDescriptor Data.ByteString.ByteString)+ (Data.ProtoLens.OptionalField+ (Data.ProtoLens.Field.field @"maybe'paymentAddr")) ::+ Data.ProtoLens.FieldDescriptor LookupInvoiceMsg+ setId__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "set_id"+ (Data.ProtoLens.ScalarField Data.ProtoLens.BytesField ::+ Data.ProtoLens.FieldTypeDescriptor Data.ByteString.ByteString)+ (Data.ProtoLens.OptionalField+ (Data.ProtoLens.Field.field @"maybe'setId")) ::+ Data.ProtoLens.FieldDescriptor LookupInvoiceMsg+ in+ Data.Map.fromList+ [(Data.ProtoLens.Tag 4, lookupModifier__field_descriptor),+ (Data.ProtoLens.Tag 1, paymentHash__field_descriptor),+ (Data.ProtoLens.Tag 2, paymentAddr__field_descriptor),+ (Data.ProtoLens.Tag 3, setId__field_descriptor)]+ unknownFields+ = Lens.Family2.Unchecked.lens+ _LookupInvoiceMsg'_unknownFields+ (\ x__ y__ -> x__ {_LookupInvoiceMsg'_unknownFields = y__})+ defMessage+ = LookupInvoiceMsg'_constructor+ {_LookupInvoiceMsg'lookupModifier = Data.ProtoLens.fieldDefault,+ _LookupInvoiceMsg'invoiceRef = Prelude.Nothing,+ _LookupInvoiceMsg'_unknownFields = []}+ parseMessage+ = let+ loop ::+ LookupInvoiceMsg+ -> Data.ProtoLens.Encoding.Bytes.Parser LookupInvoiceMsg+ loop x+ = do end <- Data.ProtoLens.Encoding.Bytes.atEnd+ if end then+ do (let missing = []+ in+ if Prelude.null missing then+ Prelude.return ()+ else+ Prelude.fail+ ((Prelude.++)+ "Missing required fields: "+ (Prelude.show (missing :: [Prelude.String]))))+ Prelude.return+ (Lens.Family2.over+ Data.ProtoLens.unknownFields (\ !t -> Prelude.reverse t) x)+ else+ do tag <- Data.ProtoLens.Encoding.Bytes.getVarInt+ case tag of+ 32+ -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (Prelude.fmap+ Prelude.toEnum+ (Prelude.fmap+ Prelude.fromIntegral+ Data.ProtoLens.Encoding.Bytes.getVarInt))+ "lookup_modifier"+ loop+ (Lens.Family2.set+ (Data.ProtoLens.Field.field @"lookupModifier") y x)+ 10+ -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (do len <- Data.ProtoLens.Encoding.Bytes.getVarInt+ Data.ProtoLens.Encoding.Bytes.getBytes+ (Prelude.fromIntegral len))+ "payment_hash"+ loop+ (Lens.Family2.set (Data.ProtoLens.Field.field @"paymentHash") y x)+ 18+ -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (do len <- Data.ProtoLens.Encoding.Bytes.getVarInt+ Data.ProtoLens.Encoding.Bytes.getBytes+ (Prelude.fromIntegral len))+ "payment_addr"+ loop+ (Lens.Family2.set (Data.ProtoLens.Field.field @"paymentAddr") y x)+ 26+ -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (do len <- Data.ProtoLens.Encoding.Bytes.getVarInt+ Data.ProtoLens.Encoding.Bytes.getBytes+ (Prelude.fromIntegral len))+ "set_id"+ loop (Lens.Family2.set (Data.ProtoLens.Field.field @"setId") y x)+ wire+ -> do !y <- Data.ProtoLens.Encoding.Wire.parseTaggedValueFromWire+ wire+ loop+ (Lens.Family2.over+ Data.ProtoLens.unknownFields (\ !t -> (:) y t) x)+ in+ (Data.ProtoLens.Encoding.Bytes.<?>)+ (do loop Data.ProtoLens.defMessage) "LookupInvoiceMsg"+ buildMessage+ = \ _x+ -> (Data.Monoid.<>)+ (let+ _v+ = Lens.Family2.view+ (Data.ProtoLens.Field.field @"lookupModifier") _x+ in+ if (Prelude.==) _v Data.ProtoLens.fieldDefault then+ Data.Monoid.mempty+ else+ (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 32)+ ((Prelude..)+ ((Prelude..)+ Data.ProtoLens.Encoding.Bytes.putVarInt Prelude.fromIntegral)+ Prelude.fromEnum _v))+ ((Data.Monoid.<>)+ (case+ Lens.Family2.view+ (Data.ProtoLens.Field.field @"maybe'invoiceRef") _x+ of+ Prelude.Nothing -> Data.Monoid.mempty+ (Prelude.Just (LookupInvoiceMsg'PaymentHash v))+ -> (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 10)+ ((\ bs+ -> (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt+ (Prelude.fromIntegral (Data.ByteString.length bs)))+ (Data.ProtoLens.Encoding.Bytes.putBytes bs))+ v)+ (Prelude.Just (LookupInvoiceMsg'PaymentAddr v))+ -> (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 18)+ ((\ bs+ -> (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt+ (Prelude.fromIntegral (Data.ByteString.length bs)))+ (Data.ProtoLens.Encoding.Bytes.putBytes bs))+ v)+ (Prelude.Just (LookupInvoiceMsg'SetId v))+ -> (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 26)+ ((\ bs+ -> (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt+ (Prelude.fromIntegral (Data.ByteString.length bs)))+ (Data.ProtoLens.Encoding.Bytes.putBytes bs))+ v))+ (Data.ProtoLens.Encoding.Wire.buildFieldSet+ (Lens.Family2.view Data.ProtoLens.unknownFields _x)))+instance Control.DeepSeq.NFData LookupInvoiceMsg where+ rnf+ = \ x__+ -> Control.DeepSeq.deepseq+ (_LookupInvoiceMsg'_unknownFields x__)+ (Control.DeepSeq.deepseq+ (_LookupInvoiceMsg'lookupModifier x__)+ (Control.DeepSeq.deepseq (_LookupInvoiceMsg'invoiceRef x__) ()))+instance Control.DeepSeq.NFData LookupInvoiceMsg'InvoiceRef where+ rnf (LookupInvoiceMsg'PaymentHash x__) = Control.DeepSeq.rnf x__+ rnf (LookupInvoiceMsg'PaymentAddr x__) = Control.DeepSeq.rnf x__+ rnf (LookupInvoiceMsg'SetId x__) = Control.DeepSeq.rnf x__+_LookupInvoiceMsg'PaymentHash ::+ Data.ProtoLens.Prism.Prism' LookupInvoiceMsg'InvoiceRef Data.ByteString.ByteString+_LookupInvoiceMsg'PaymentHash+ = Data.ProtoLens.Prism.prism'+ LookupInvoiceMsg'PaymentHash+ (\ p__+ -> case p__ of+ (LookupInvoiceMsg'PaymentHash p__val) -> Prelude.Just p__val+ _otherwise -> Prelude.Nothing)+_LookupInvoiceMsg'PaymentAddr ::+ Data.ProtoLens.Prism.Prism' LookupInvoiceMsg'InvoiceRef Data.ByteString.ByteString+_LookupInvoiceMsg'PaymentAddr+ = Data.ProtoLens.Prism.prism'+ LookupInvoiceMsg'PaymentAddr+ (\ p__+ -> case p__ of+ (LookupInvoiceMsg'PaymentAddr p__val) -> Prelude.Just p__val+ _otherwise -> Prelude.Nothing)+_LookupInvoiceMsg'SetId ::+ Data.ProtoLens.Prism.Prism' LookupInvoiceMsg'InvoiceRef Data.ByteString.ByteString+_LookupInvoiceMsg'SetId+ = Data.ProtoLens.Prism.prism'+ LookupInvoiceMsg'SetId+ (\ p__+ -> case p__ of+ (LookupInvoiceMsg'SetId p__val) -> Prelude.Just p__val+ _otherwise -> Prelude.Nothing)+newtype LookupModifier'UnrecognizedValue+ = LookupModifier'UnrecognizedValue Data.Int.Int32+ deriving stock (Prelude.Eq,+ Prelude.Ord,+ Prelude.Show,+ GHC.Generics.Generic)+instance Text.PrettyPrint.GenericPretty.Out LookupModifier'UnrecognizedValue+data LookupModifier+ = DEFAULT |+ HTLC_SET_ONLY |+ HTLC_SET_BLANK |+ LookupModifier'Unrecognized !LookupModifier'UnrecognizedValue+ deriving stock (Prelude.Show,+ Prelude.Eq,+ Prelude.Ord,+ GHC.Generics.Generic)+instance Data.ProtoLens.MessageEnum LookupModifier where+ maybeToEnum 0 = Prelude.Just DEFAULT+ maybeToEnum 1 = Prelude.Just HTLC_SET_ONLY+ maybeToEnum 2 = Prelude.Just HTLC_SET_BLANK+ maybeToEnum k+ = Prelude.Just+ (LookupModifier'Unrecognized+ (LookupModifier'UnrecognizedValue (Prelude.fromIntegral k)))+ showEnum DEFAULT = "DEFAULT"+ showEnum HTLC_SET_ONLY = "HTLC_SET_ONLY"+ showEnum HTLC_SET_BLANK = "HTLC_SET_BLANK"+ showEnum+ (LookupModifier'Unrecognized (LookupModifier'UnrecognizedValue k))+ = Prelude.show k+ readEnum k+ | (Prelude.==) k "DEFAULT" = Prelude.Just DEFAULT+ | (Prelude.==) k "HTLC_SET_ONLY" = Prelude.Just HTLC_SET_ONLY+ | (Prelude.==) k "HTLC_SET_BLANK" = Prelude.Just HTLC_SET_BLANK+ | Prelude.otherwise+ = (Prelude.>>=) (Text.Read.readMaybe k) Data.ProtoLens.maybeToEnum+instance Prelude.Bounded LookupModifier where+ minBound = DEFAULT+ maxBound = HTLC_SET_BLANK+instance Prelude.Enum LookupModifier where+ toEnum k__+ = Prelude.maybe+ (Prelude.error+ ((Prelude.++)+ "toEnum: unknown value for enum LookupModifier: "+ (Prelude.show k__)))+ Prelude.id (Data.ProtoLens.maybeToEnum k__)+ fromEnum DEFAULT = 0+ fromEnum HTLC_SET_ONLY = 1+ fromEnum HTLC_SET_BLANK = 2+ fromEnum+ (LookupModifier'Unrecognized (LookupModifier'UnrecognizedValue k))+ = Prelude.fromIntegral k+ succ HTLC_SET_BLANK+ = Prelude.error+ "LookupModifier.succ: bad argument HTLC_SET_BLANK. This value would be out of bounds."+ succ DEFAULT = HTLC_SET_ONLY+ succ HTLC_SET_ONLY = HTLC_SET_BLANK+ succ (LookupModifier'Unrecognized _)+ = Prelude.error+ "LookupModifier.succ: bad argument: unrecognized value"+ pred DEFAULT+ = Prelude.error+ "LookupModifier.pred: bad argument DEFAULT. This value would be out of bounds."+ pred HTLC_SET_ONLY = DEFAULT+ pred HTLC_SET_BLANK = HTLC_SET_ONLY+ pred (LookupModifier'Unrecognized _)+ = Prelude.error+ "LookupModifier.pred: bad argument: unrecognized value"+ enumFrom = Data.ProtoLens.Message.Enum.messageEnumFrom+ enumFromTo = Data.ProtoLens.Message.Enum.messageEnumFromTo+ enumFromThen = Data.ProtoLens.Message.Enum.messageEnumFromThen+ enumFromThenTo = Data.ProtoLens.Message.Enum.messageEnumFromThenTo+instance Data.ProtoLens.FieldDefault LookupModifier where+ fieldDefault = DEFAULT+instance Control.DeepSeq.NFData LookupModifier where+ rnf x__ = Prelude.seq x__ ()+instance Text.PrettyPrint.GenericPretty.Out LookupModifier+{- | Fields :+ + * 'Proto.Invoicesrpc.Invoices_Fields.preimage' @:: Lens' SettleInvoiceMsg Data.ByteString.ByteString@ -}+data SettleInvoiceMsg+ = SettleInvoiceMsg'_constructor {_SettleInvoiceMsg'preimage :: !Data.ByteString.ByteString,+ _SettleInvoiceMsg'_unknownFields :: !Data.ProtoLens.FieldSet}+ deriving stock (Prelude.Eq, Prelude.Ord, GHC.Generics.Generic)+instance Prelude.Show SettleInvoiceMsg where+ showsPrec _ __x __s+ = Prelude.showChar+ '{'+ (Prelude.showString+ (Data.ProtoLens.showMessageShort __x) (Prelude.showChar '}' __s))+instance Text.PrettyPrint.GenericPretty.Out SettleInvoiceMsg+instance Data.ProtoLens.Field.HasField SettleInvoiceMsg "preimage" Data.ByteString.ByteString where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _SettleInvoiceMsg'preimage+ (\ x__ y__ -> x__ {_SettleInvoiceMsg'preimage = y__}))+ Prelude.id+instance Data.ProtoLens.Message SettleInvoiceMsg where+ messageName _ = Data.Text.pack "invoicesrpc.SettleInvoiceMsg"+ packedMessageDescriptor _+ = "\n\+ \\DLESettleInvoiceMsg\DC2\SUB\n\+ \\bpreimage\CAN\SOH \SOH(\fR\bpreimage"+ packedFileDescriptor _ = packedFileDescriptor+ fieldsByTag+ = let+ preimage__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "preimage"+ (Data.ProtoLens.ScalarField Data.ProtoLens.BytesField ::+ Data.ProtoLens.FieldTypeDescriptor Data.ByteString.ByteString)+ (Data.ProtoLens.PlainField+ Data.ProtoLens.Optional+ (Data.ProtoLens.Field.field @"preimage")) ::+ Data.ProtoLens.FieldDescriptor SettleInvoiceMsg+ in+ Data.Map.fromList+ [(Data.ProtoLens.Tag 1, preimage__field_descriptor)]+ unknownFields+ = Lens.Family2.Unchecked.lens+ _SettleInvoiceMsg'_unknownFields+ (\ x__ y__ -> x__ {_SettleInvoiceMsg'_unknownFields = y__})+ defMessage+ = SettleInvoiceMsg'_constructor+ {_SettleInvoiceMsg'preimage = Data.ProtoLens.fieldDefault,+ _SettleInvoiceMsg'_unknownFields = []}+ parseMessage+ = let+ loop ::+ SettleInvoiceMsg+ -> Data.ProtoLens.Encoding.Bytes.Parser SettleInvoiceMsg+ loop x+ = do end <- Data.ProtoLens.Encoding.Bytes.atEnd+ if end then+ do (let missing = []+ in+ if Prelude.null missing then+ Prelude.return ()+ else+ Prelude.fail+ ((Prelude.++)+ "Missing required fields: "+ (Prelude.show (missing :: [Prelude.String]))))+ Prelude.return+ (Lens.Family2.over+ Data.ProtoLens.unknownFields (\ !t -> Prelude.reverse t) x)+ else+ do tag <- Data.ProtoLens.Encoding.Bytes.getVarInt+ case tag of+ 10+ -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (do len <- Data.ProtoLens.Encoding.Bytes.getVarInt+ Data.ProtoLens.Encoding.Bytes.getBytes+ (Prelude.fromIntegral len))+ "preimage"+ loop+ (Lens.Family2.set (Data.ProtoLens.Field.field @"preimage") y x)+ wire+ -> do !y <- Data.ProtoLens.Encoding.Wire.parseTaggedValueFromWire+ wire+ loop+ (Lens.Family2.over+ Data.ProtoLens.unknownFields (\ !t -> (:) y t) x)+ in+ (Data.ProtoLens.Encoding.Bytes.<?>)+ (do loop Data.ProtoLens.defMessage) "SettleInvoiceMsg"+ buildMessage+ = \ _x+ -> (Data.Monoid.<>)+ (let+ _v = Lens.Family2.view (Data.ProtoLens.Field.field @"preimage") _x+ in+ if (Prelude.==) _v Data.ProtoLens.fieldDefault then+ Data.Monoid.mempty+ else+ (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 10)+ ((\ bs+ -> (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt+ (Prelude.fromIntegral (Data.ByteString.length bs)))+ (Data.ProtoLens.Encoding.Bytes.putBytes bs))+ _v))+ (Data.ProtoLens.Encoding.Wire.buildFieldSet+ (Lens.Family2.view Data.ProtoLens.unknownFields _x))+instance Control.DeepSeq.NFData SettleInvoiceMsg where+ rnf+ = \ x__+ -> Control.DeepSeq.deepseq+ (_SettleInvoiceMsg'_unknownFields x__)+ (Control.DeepSeq.deepseq (_SettleInvoiceMsg'preimage x__) ())+{- | Fields :+ -}+data SettleInvoiceResp+ = SettleInvoiceResp'_constructor {_SettleInvoiceResp'_unknownFields :: !Data.ProtoLens.FieldSet}+ deriving stock (Prelude.Eq, Prelude.Ord, GHC.Generics.Generic)+instance Prelude.Show SettleInvoiceResp where+ showsPrec _ __x __s+ = Prelude.showChar+ '{'+ (Prelude.showString+ (Data.ProtoLens.showMessageShort __x) (Prelude.showChar '}' __s))+instance Text.PrettyPrint.GenericPretty.Out SettleInvoiceResp+instance Data.ProtoLens.Message SettleInvoiceResp where+ messageName _ = Data.Text.pack "invoicesrpc.SettleInvoiceResp"+ packedMessageDescriptor _+ = "\n\+ \\DC1SettleInvoiceResp"+ packedFileDescriptor _ = packedFileDescriptor+ fieldsByTag = let in Data.Map.fromList []+ unknownFields+ = Lens.Family2.Unchecked.lens+ _SettleInvoiceResp'_unknownFields+ (\ x__ y__ -> x__ {_SettleInvoiceResp'_unknownFields = y__})+ defMessage+ = SettleInvoiceResp'_constructor+ {_SettleInvoiceResp'_unknownFields = []}+ parseMessage+ = let+ loop ::+ SettleInvoiceResp+ -> Data.ProtoLens.Encoding.Bytes.Parser SettleInvoiceResp+ loop x+ = do end <- Data.ProtoLens.Encoding.Bytes.atEnd+ if end then+ do (let missing = []+ in+ if Prelude.null missing then+ Prelude.return ()+ else+ Prelude.fail+ ((Prelude.++)+ "Missing required fields: "+ (Prelude.show (missing :: [Prelude.String]))))+ Prelude.return+ (Lens.Family2.over+ Data.ProtoLens.unknownFields (\ !t -> Prelude.reverse t) x)+ else+ do tag <- Data.ProtoLens.Encoding.Bytes.getVarInt+ case tag of {+ wire+ -> do !y <- Data.ProtoLens.Encoding.Wire.parseTaggedValueFromWire+ wire+ loop+ (Lens.Family2.over+ Data.ProtoLens.unknownFields (\ !t -> (:) y t) x) }+ in+ (Data.ProtoLens.Encoding.Bytes.<?>)+ (do loop Data.ProtoLens.defMessage) "SettleInvoiceResp"+ buildMessage+ = \ _x+ -> Data.ProtoLens.Encoding.Wire.buildFieldSet+ (Lens.Family2.view Data.ProtoLens.unknownFields _x)+instance Control.DeepSeq.NFData SettleInvoiceResp where+ rnf+ = \ x__+ -> Control.DeepSeq.deepseq+ (_SettleInvoiceResp'_unknownFields x__) ()+{- | Fields :+ + * 'Proto.Invoicesrpc.Invoices_Fields.rHash' @:: Lens' SubscribeSingleInvoiceRequest Data.ByteString.ByteString@ -}+data SubscribeSingleInvoiceRequest+ = SubscribeSingleInvoiceRequest'_constructor {_SubscribeSingleInvoiceRequest'rHash :: !Data.ByteString.ByteString,+ _SubscribeSingleInvoiceRequest'_unknownFields :: !Data.ProtoLens.FieldSet}+ deriving stock (Prelude.Eq, Prelude.Ord, GHC.Generics.Generic)+instance Prelude.Show SubscribeSingleInvoiceRequest where+ showsPrec _ __x __s+ = Prelude.showChar+ '{'+ (Prelude.showString+ (Data.ProtoLens.showMessageShort __x) (Prelude.showChar '}' __s))+instance Text.PrettyPrint.GenericPretty.Out SubscribeSingleInvoiceRequest+instance Data.ProtoLens.Field.HasField SubscribeSingleInvoiceRequest "rHash" Data.ByteString.ByteString where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _SubscribeSingleInvoiceRequest'rHash+ (\ x__ y__ -> x__ {_SubscribeSingleInvoiceRequest'rHash = y__}))+ Prelude.id+instance Data.ProtoLens.Message SubscribeSingleInvoiceRequest where+ messageName _+ = Data.Text.pack "invoicesrpc.SubscribeSingleInvoiceRequest"+ packedMessageDescriptor _+ = "\n\+ \\GSSubscribeSingleInvoiceRequest\DC2\NAK\n\+ \\ACKr_hash\CAN\STX \SOH(\fR\ENQrHashJ\EOT\b\SOH\DLE\STX"+ packedFileDescriptor _ = packedFileDescriptor+ fieldsByTag+ = let+ rHash__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "r_hash"+ (Data.ProtoLens.ScalarField Data.ProtoLens.BytesField ::+ Data.ProtoLens.FieldTypeDescriptor Data.ByteString.ByteString)+ (Data.ProtoLens.PlainField+ Data.ProtoLens.Optional (Data.ProtoLens.Field.field @"rHash")) ::+ Data.ProtoLens.FieldDescriptor SubscribeSingleInvoiceRequest+ in+ Data.Map.fromList [(Data.ProtoLens.Tag 2, rHash__field_descriptor)]+ unknownFields+ = Lens.Family2.Unchecked.lens+ _SubscribeSingleInvoiceRequest'_unknownFields+ (\ x__ y__+ -> x__ {_SubscribeSingleInvoiceRequest'_unknownFields = y__})+ defMessage+ = SubscribeSingleInvoiceRequest'_constructor+ {_SubscribeSingleInvoiceRequest'rHash = Data.ProtoLens.fieldDefault,+ _SubscribeSingleInvoiceRequest'_unknownFields = []}+ parseMessage+ = let+ loop ::+ SubscribeSingleInvoiceRequest+ -> Data.ProtoLens.Encoding.Bytes.Parser SubscribeSingleInvoiceRequest+ loop x+ = do end <- Data.ProtoLens.Encoding.Bytes.atEnd+ if end then+ do (let missing = []+ in+ if Prelude.null missing then+ Prelude.return ()+ else+ Prelude.fail+ ((Prelude.++)+ "Missing required fields: "+ (Prelude.show (missing :: [Prelude.String]))))+ Prelude.return+ (Lens.Family2.over+ Data.ProtoLens.unknownFields (\ !t -> Prelude.reverse t) x)+ else+ do tag <- Data.ProtoLens.Encoding.Bytes.getVarInt+ case tag of+ 18+ -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (do len <- Data.ProtoLens.Encoding.Bytes.getVarInt+ Data.ProtoLens.Encoding.Bytes.getBytes+ (Prelude.fromIntegral len))+ "r_hash"+ loop (Lens.Family2.set (Data.ProtoLens.Field.field @"rHash") y x)+ wire+ -> do !y <- Data.ProtoLens.Encoding.Wire.parseTaggedValueFromWire+ wire+ loop+ (Lens.Family2.over+ Data.ProtoLens.unknownFields (\ !t -> (:) y t) x)+ in+ (Data.ProtoLens.Encoding.Bytes.<?>)+ (do loop Data.ProtoLens.defMessage) "SubscribeSingleInvoiceRequest"+ buildMessage+ = \ _x+ -> (Data.Monoid.<>)+ (let+ _v = Lens.Family2.view (Data.ProtoLens.Field.field @"rHash") _x+ in+ if (Prelude.==) _v Data.ProtoLens.fieldDefault then+ Data.Monoid.mempty+ else+ (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 18)+ ((\ bs+ -> (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt+ (Prelude.fromIntegral (Data.ByteString.length bs)))+ (Data.ProtoLens.Encoding.Bytes.putBytes bs))+ _v))+ (Data.ProtoLens.Encoding.Wire.buildFieldSet+ (Lens.Family2.view Data.ProtoLens.unknownFields _x))+instance Control.DeepSeq.NFData SubscribeSingleInvoiceRequest where+ rnf+ = \ x__+ -> Control.DeepSeq.deepseq+ (_SubscribeSingleInvoiceRequest'_unknownFields x__)+ (Control.DeepSeq.deepseq+ (_SubscribeSingleInvoiceRequest'rHash x__) ())+data Invoices = Invoices {}+instance Data.ProtoLens.Service.Types.Service Invoices where+ type ServiceName Invoices = "Invoices"+ type ServicePackage Invoices = "invoicesrpc"+ type ServiceMethods Invoices = '["addHoldInvoice",+ "cancelInvoice",+ "lookupInvoiceV2",+ "settleInvoice",+ "subscribeSingleInvoice"]+ packedServiceDescriptor _+ = "\n\+ \\bInvoices\DC2V\n\+ \\SYNSubscribeSingleInvoice\DC2*.invoicesrpc.SubscribeSingleInvoiceRequest\SUB\SO.lnrpc.Invoice0\SOH\DC2N\n\+ \\rCancelInvoice\DC2\GS.invoicesrpc.CancelInvoiceMsg\SUB\RS.invoicesrpc.CancelInvoiceResp\DC2U\n\+ \\SOAddHoldInvoice\DC2\".invoicesrpc.AddHoldInvoiceRequest\SUB\US.invoicesrpc.AddHoldInvoiceResp\DC2N\n\+ \\rSettleInvoice\DC2\GS.invoicesrpc.SettleInvoiceMsg\SUB\RS.invoicesrpc.SettleInvoiceResp\DC2@\n\+ \\SILookupInvoiceV2\DC2\GS.invoicesrpc.LookupInvoiceMsg\SUB\SO.lnrpc.Invoice"+instance Data.ProtoLens.Service.Types.HasMethodImpl Invoices "subscribeSingleInvoice" where+ type MethodName Invoices "subscribeSingleInvoice" = "SubscribeSingleInvoice"+ type MethodInput Invoices "subscribeSingleInvoice" = SubscribeSingleInvoiceRequest+ type MethodOutput Invoices "subscribeSingleInvoice" = Proto.Lnrpc.Ln1.Invoice+ type MethodStreamingType Invoices "subscribeSingleInvoice" = 'Data.ProtoLens.Service.Types.ServerStreaming+instance Data.ProtoLens.Service.Types.HasMethodImpl Invoices "cancelInvoice" where+ type MethodName Invoices "cancelInvoice" = "CancelInvoice"+ type MethodInput Invoices "cancelInvoice" = CancelInvoiceMsg+ type MethodOutput Invoices "cancelInvoice" = CancelInvoiceResp+ type MethodStreamingType Invoices "cancelInvoice" = 'Data.ProtoLens.Service.Types.NonStreaming+instance Data.ProtoLens.Service.Types.HasMethodImpl Invoices "addHoldInvoice" where+ type MethodName Invoices "addHoldInvoice" = "AddHoldInvoice"+ type MethodInput Invoices "addHoldInvoice" = AddHoldInvoiceRequest+ type MethodOutput Invoices "addHoldInvoice" = AddHoldInvoiceResp+ type MethodStreamingType Invoices "addHoldInvoice" = 'Data.ProtoLens.Service.Types.NonStreaming+instance Data.ProtoLens.Service.Types.HasMethodImpl Invoices "settleInvoice" where+ type MethodName Invoices "settleInvoice" = "SettleInvoice"+ type MethodInput Invoices "settleInvoice" = SettleInvoiceMsg+ type MethodOutput Invoices "settleInvoice" = SettleInvoiceResp+ type MethodStreamingType Invoices "settleInvoice" = 'Data.ProtoLens.Service.Types.NonStreaming+instance Data.ProtoLens.Service.Types.HasMethodImpl Invoices "lookupInvoiceV2" where+ type MethodName Invoices "lookupInvoiceV2" = "LookupInvoiceV2"+ type MethodInput Invoices "lookupInvoiceV2" = LookupInvoiceMsg+ type MethodOutput Invoices "lookupInvoiceV2" = Proto.Lnrpc.Ln1.Invoice+ type MethodStreamingType Invoices "lookupInvoiceV2" = 'Data.ProtoLens.Service.Types.NonStreaming+packedFileDescriptor :: Data.ByteString.ByteString+packedFileDescriptor+ = "\n\+ \\SUBinvoicesrpc/invoices.proto\DC2\vinvoicesrpc\SUB\SIlnrpc/ln0.proto\SUB\SIlnrpc/ln1.proto\"5\n\+ \\DLECancelInvoiceMsg\DC2!\n\+ \\fpayment_hash\CAN\SOH \SOH(\fR\vpaymentHash\"\DC3\n\+ \\DC1CancelInvoiceResp\"\202\STX\n\+ \\NAKAddHoldInvoiceRequest\DC2\DC2\n\+ \\EOTmemo\CAN\SOH \SOH(\tR\EOTmemo\DC2\DC2\n\+ \\EOThash\CAN\STX \SOH(\fR\EOThash\DC2\DC4\n\+ \\ENQvalue\CAN\ETX \SOH(\ETXR\ENQvalue\DC2\GS\n\+ \\n\+ \value_msat\CAN\n\+ \ \SOH(\ETXR\tvalueMsat\DC2)\n\+ \\DLEdescription_hash\CAN\EOT \SOH(\fR\SIdescriptionHash\DC2\SYN\n\+ \\ACKexpiry\CAN\ENQ \SOH(\ETXR\ACKexpiry\DC2#\n\+ \\rfallback_addr\CAN\ACK \SOH(\tR\ffallbackAddr\DC2\US\n\+ \\vcltv_expiry\CAN\a \SOH(\EOTR\n\+ \cltvExpiry\DC21\n\+ \\vroute_hints\CAN\b \ETX(\v2\DLE.lnrpc.RouteHintR\n\+ \routeHints\DC2\CAN\n\+ \\aprivate\CAN\t \SOH(\bR\aprivate\"}\n\+ \\DC2AddHoldInvoiceResp\DC2'\n\+ \\SIpayment_request\CAN\SOH \SOH(\tR\SOpaymentRequest\DC2\ESC\n\+ \\tadd_index\CAN\STX \SOH(\EOTR\baddIndex\DC2!\n\+ \\fpayment_addr\CAN\ETX \SOH(\fR\vpaymentAddr\".\n\+ \\DLESettleInvoiceMsg\DC2\SUB\n\+ \\bpreimage\CAN\SOH \SOH(\fR\bpreimage\"\DC3\n\+ \\DC1SettleInvoiceResp\"<\n\+ \\GSSubscribeSingleInvoiceRequest\DC2\NAK\n\+ \\ACKr_hash\CAN\STX \SOH(\fR\ENQrHashJ\EOT\b\SOH\DLE\STX\"\202\SOH\n\+ \\DLELookupInvoiceMsg\DC2#\n\+ \\fpayment_hash\CAN\SOH \SOH(\fH\NULR\vpaymentHash\DC2#\n\+ \\fpayment_addr\CAN\STX \SOH(\fH\NULR\vpaymentAddr\DC2\ETB\n\+ \\ACKset_id\CAN\ETX \SOH(\fH\NULR\ENQsetId\DC2D\n\+ \\SIlookup_modifier\CAN\EOT \SOH(\SO2\ESC.invoicesrpc.LookupModifierR\SOlookupModifierB\r\n\+ \\vinvoice_ref*D\n\+ \\SOLookupModifier\DC2\v\n\+ \\aDEFAULT\DLE\NUL\DC2\DC1\n\+ \\rHTLC_SET_ONLY\DLE\SOH\DC2\DC2\n\+ \\SO\&HTLC_SET_BLANK\DLE\STX2\155\ETX\n\+ \\bInvoices\DC2V\n\+ \\SYNSubscribeSingleInvoice\DC2*.invoicesrpc.SubscribeSingleInvoiceRequest\SUB\SO.lnrpc.Invoice0\SOH\DC2N\n\+ \\rCancelInvoice\DC2\GS.invoicesrpc.CancelInvoiceMsg\SUB\RS.invoicesrpc.CancelInvoiceResp\DC2U\n\+ \\SOAddHoldInvoice\DC2\".invoicesrpc.AddHoldInvoiceRequest\SUB\US.invoicesrpc.AddHoldInvoiceResp\DC2N\n\+ \\rSettleInvoice\DC2\GS.invoicesrpc.SettleInvoiceMsg\SUB\RS.invoicesrpc.SettleInvoiceResp\DC2@\n\+ \\SILookupInvoiceV2\DC2\GS.invoicesrpc.LookupInvoiceMsg\SUB\SO.lnrpc.InvoiceB3Z1github.com/lightningnetwork/lnd/lnrpc/invoicesrpcJ\193'\n\+ \\a\DC2\ENQ\NUL\NUL\172\SOH\SOH\n\+ \\b\n\+ \\SOH\f\DC2\ETX\NUL\NUL\DC2\n\+ \\t\n\+ \\STX\ETX\NUL\DC2\ETX\STX\NUL\EM\n\+ \\t\n\+ \\STX\ETX\SOH\DC2\ETX\ETX\NUL\EM\n\+ \\b\n\+ \\SOH\STX\DC2\ETX\ENQ\NUL\DC4\n\+ \\b\n\+ \\SOH\b\DC2\ETX\a\NULH\n\+ \\t\n\+ \\STX\b\v\DC2\ETX\a\NULH\n\+ \d\n\+ \\STX\ACK\NUL\DC2\EOT\v\NUL,\SOH\SUBX Invoices is a service that can be used to create, accept, settle and cancel\n\+ \ invoices.\n\+ \\n\+ \\n\+ \\n\+ \\ETX\ACK\NUL\SOH\DC2\ETX\v\b\DLE\n\+ \\215\SOH\n\+ \\EOT\ACK\NUL\STX\NUL\DC2\EOT\DC1\EOT\DC2'\SUB\200\SOH\n\+ \SubscribeSingleInvoice returns a uni-directional stream (server -> client)\n\+ \to notify the client of state transitions of the specified invoice.\n\+ \Initially the current invoice state is always sent out.\n\+ \\n\+ \\f\n\+ \\ENQ\ACK\NUL\STX\NUL\SOH\DC2\ETX\DC1\b\RS\n\+ \\f\n\+ \\ENQ\ACK\NUL\STX\NUL\STX\DC2\ETX\DC1 =\n\+ \\f\n\+ \\ENQ\ACK\NUL\STX\NUL\ACK\DC2\ETX\DC2\DC1\ETB\n\+ \\f\n\+ \\ENQ\ACK\NUL\STX\NUL\ETX\DC2\ETX\DC2\CAN%\n\+ \\172\SOH\n\+ \\EOT\ACK\NUL\STX\SOH\DC2\ETX\EM\EOTE\SUB\158\SOH\n\+ \CancelInvoice cancels a currently open invoice. If the invoice is already\n\+ \canceled, this call will succeed. If the invoice is already settled, it will\n\+ \fail.\n\+ \\n\+ \\f\n\+ \\ENQ\ACK\NUL\STX\SOH\SOH\DC2\ETX\EM\b\NAK\n\+ \\f\n\+ \\ENQ\ACK\NUL\STX\SOH\STX\DC2\ETX\EM\ETB'\n\+ \\f\n\+ \\ENQ\ACK\NUL\STX\SOH\ETX\DC2\ETX\EM2C\n\+ \n\n\+ \\EOT\ACK\NUL\STX\STX\DC2\ETX\US\EOTL\SUBa\n\+ \AddHoldInvoice creates a hold invoice. It ties the invoice to the hash\n\+ \supplied in the request.\n\+ \\n\+ \\f\n\+ \\ENQ\ACK\NUL\STX\STX\SOH\DC2\ETX\US\b\SYN\n\+ \\f\n\+ \\ENQ\ACK\NUL\STX\STX\STX\DC2\ETX\US\CAN-\n\+ \\f\n\+ \\ENQ\ACK\NUL\STX\STX\ETX\DC2\ETX\US8J\n\+ \t\n\+ \\EOT\ACK\NUL\STX\ETX\DC2\ETX%\EOTE\SUBg\n\+ \SettleInvoice settles an accepted invoice. If the invoice is already\n\+ \settled, this call will succeed.\n\+ \\n\+ \\f\n\+ \\ENQ\ACK\NUL\STX\ETX\SOH\DC2\ETX%\b\NAK\n\+ \\f\n\+ \\ENQ\ACK\NUL\STX\ETX\STX\DC2\ETX%\ETB'\n\+ \\f\n\+ \\ENQ\ACK\NUL\STX\ETX\ETX\DC2\ETX%2C\n\+ \\150\SOH\n\+ \\EOT\ACK\NUL\STX\EOT\DC2\ETX+\EOTC\SUB\136\SOH\n\+ \LookupInvoiceV2 attempts to look up at invoice. An invoice can be refrenced\n\+ \using either its payment hash, payment address, or set ID.\n\+ \\n\+ \\f\n\+ \\ENQ\ACK\NUL\STX\EOT\SOH\DC2\ETX+\b\ETB\n\+ \\f\n\+ \\ENQ\ACK\NUL\STX\EOT\STX\DC2\ETX+\EM)\n\+ \\f\n\+ \\ENQ\ACK\NUL\STX\EOT\ETX\DC2\ETX+4A\n\+ \\n\+ \\n\+ \\STX\EOT\NUL\DC2\EOT.\NUL1\SOH\n\+ \\n\+ \\n\+ \\ETX\EOT\NUL\SOH\DC2\ETX.\b\CAN\n\+ \B\n\+ \\EOT\EOT\NUL\STX\NUL\DC2\ETX0\EOT\ESC\SUB5 Hash corresponding to the (hold) invoice to cancel.\n\+ \\n\+ \\f\n\+ \\ENQ\EOT\NUL\STX\NUL\ENQ\DC2\ETX0\EOT\t\n\+ \\f\n\+ \\ENQ\EOT\NUL\STX\NUL\SOH\DC2\ETX0\n\+ \\SYN\n\+ \\f\n\+ \\ENQ\EOT\NUL\STX\NUL\ETX\DC2\ETX0\EM\SUB\n\+ \\n\+ \\n\+ \\STX\EOT\SOH\DC2\EOT2\NUL3\SOH\n\+ \\n\+ \\n\+ \\ETX\EOT\SOH\SOH\DC2\ETX2\b\EM\n\+ \\n\+ \\n\+ \\STX\EOT\STX\DC2\EOT5\NULg\SOH\n\+ \\n\+ \\n\+ \\ETX\EOT\STX\SOH\DC2\ETX5\b\GS\n\+ \\252\SOH\n\+ \\EOT\EOT\STX\STX\NUL\DC2\ETX<\EOT\DC4\SUB\238\SOH\n\+ \An optional memo to attach along with the invoice. Used for record keeping\n\+ \purposes for the invoice's creator, and will also be set in the description\n\+ \field of the encoded payment request if the description_hash field is not\n\+ \being used.\n\+ \\n\+ \\f\n\+ \\ENQ\EOT\STX\STX\NUL\ENQ\DC2\ETX<\EOT\n\+ \\n\+ \\f\n\+ \\ENQ\EOT\STX\STX\NUL\SOH\DC2\ETX<\v\SI\n\+ \\f\n\+ \\ENQ\EOT\STX\STX\NUL\ETX\DC2\ETX<\DC2\DC3\n\+ \'\n\+ \\EOT\EOT\STX\STX\SOH\DC2\ETX?\EOT\DC3\SUB\SUB The hash of the preimage\n\+ \\n\+ \\f\n\+ \\ENQ\EOT\STX\STX\SOH\ENQ\DC2\ETX?\EOT\t\n\+ \\f\n\+ \\ENQ\EOT\STX\STX\SOH\SOH\DC2\ETX?\n\+ \\SO\n\+ \\f\n\+ \\ENQ\EOT\STX\STX\SOH\ETX\DC2\ETX?\DC1\DC2\n\+ \m\n\+ \\EOT\EOT\STX\STX\STX\DC2\ETXF\EOT\DC4\SUB`\n\+ \The value of this invoice in satoshis\n\+ \\n\+ \The fields value and value_msat are mutually exclusive.\n\+ \\n\+ \\f\n\+ \\ENQ\EOT\STX\STX\STX\ENQ\DC2\ETXF\EOT\t\n\+ \\f\n\+ \\ENQ\EOT\STX\STX\STX\SOH\DC2\ETXF\n\+ \\SI\n\+ \\f\n\+ \\ENQ\EOT\STX\STX\STX\ETX\DC2\ETXF\DC2\DC3\n\+ \r\n\+ \\EOT\EOT\STX\STX\ETX\DC2\ETXM\EOT\SUB\SUBe\n\+ \The value of this invoice in millisatoshis\n\+ \\n\+ \The fields value and value_msat are mutually exclusive.\n\+ \\n\+ \\f\n\+ \\ENQ\EOT\STX\STX\ETX\ENQ\DC2\ETXM\EOT\t\n\+ \\f\n\+ \\ENQ\EOT\STX\STX\ETX\SOH\DC2\ETXM\n\+ \\DC4\n\+ \\f\n\+ \\ENQ\EOT\STX\STX\ETX\ETX\DC2\ETXM\ETB\EM\n\+ \\194\SOH\n\+ \\EOT\EOT\STX\STX\EOT\DC2\ETXT\EOT\US\SUB\180\SOH\n\+ \Hash (SHA-256) of a description of the payment. Used if the description of\n\+ \payment (memo) is too long to naturally fit within the description field\n\+ \of an encoded payment request.\n\+ \\n\+ \\f\n\+ \\ENQ\EOT\STX\STX\EOT\ENQ\DC2\ETXT\EOT\t\n\+ \\f\n\+ \\ENQ\EOT\STX\STX\EOT\SOH\DC2\ETXT\n\+ \\SUB\n\+ \\f\n\+ \\ENQ\EOT\STX\STX\EOT\ETX\DC2\ETXT\GS\RS\n\+ \P\n\+ \\EOT\EOT\STX\STX\ENQ\DC2\ETXW\EOT\NAK\SUBC Payment request expiry time in seconds. Default is 3600 (1 hour).\n\+ \\n\+ \\f\n\+ \\ENQ\EOT\STX\STX\ENQ\ENQ\DC2\ETXW\EOT\t\n\+ \\f\n\+ \\ENQ\EOT\STX\STX\ENQ\SOH\DC2\ETXW\n\+ \\DLE\n\+ \\f\n\+ \\ENQ\EOT\STX\STX\ENQ\ETX\DC2\ETXW\DC3\DC4\n\+ \)\n\+ \\EOT\EOT\STX\STX\ACK\DC2\ETXZ\EOT\GS\SUB\FS Fallback on-chain address.\n\+ \\n\+ \\f\n\+ \\ENQ\EOT\STX\STX\ACK\ENQ\DC2\ETXZ\EOT\n\+ \\n\+ \\f\n\+ \\ENQ\EOT\STX\STX\ACK\SOH\DC2\ETXZ\v\CAN\n\+ \\f\n\+ \\ENQ\EOT\STX\STX\ACK\ETX\DC2\ETXZ\ESC\FS\n\+ \T\n\+ \\EOT\EOT\STX\STX\a\DC2\ETX]\EOT\ESC\SUBG Delta to use for the time-lock of the CLTV extended to the final hop.\n\+ \\n\+ \\f\n\+ \\ENQ\EOT\STX\STX\a\ENQ\DC2\ETX]\EOT\n\+ \\n\+ \\f\n\+ \\ENQ\EOT\STX\STX\a\SOH\DC2\ETX]\v\SYN\n\+ \\f\n\+ \\ENQ\EOT\STX\STX\a\ETX\DC2\ETX]\EM\SUB\n\+ \n\n\+ \\EOT\EOT\STX\STX\b\DC2\ETXc\EOT-\SUBa\n\+ \Route hints that can each be individually used to assist in reaching the\n\+ \invoice's destination.\n\+ \\n\+ \\f\n\+ \\ENQ\EOT\STX\STX\b\EOT\DC2\ETXc\EOT\f\n\+ \\f\n\+ \\ENQ\EOT\STX\STX\b\ACK\DC2\ETXc\r\FS\n\+ \\f\n\+ \\ENQ\EOT\STX\STX\b\SOH\DC2\ETXc\GS(\n\+ \\f\n\+ \\ENQ\EOT\STX\STX\b\ETX\DC2\ETXc+,\n\+ \V\n\+ \\EOT\EOT\STX\STX\t\DC2\ETXf\EOT\NAK\SUBI Whether this invoice should include routing hints for private channels.\n\+ \\n\+ \\f\n\+ \\ENQ\EOT\STX\STX\t\ENQ\DC2\ETXf\EOT\b\n\+ \\f\n\+ \\ENQ\EOT\STX\STX\t\SOH\DC2\ETXf\t\DLE\n\+ \\f\n\+ \\ENQ\EOT\STX\STX\t\ETX\DC2\ETXf\DC3\DC4\n\+ \\n\+ \\n\+ \\STX\EOT\ETX\DC2\EOTi\NUL\DEL\SOH\n\+ \\n\+ \\n\+ \\ETX\EOT\ETX\SOH\DC2\ETXi\b\SUB\n\+ \\187\SOH\n\+ \\EOT\EOT\ETX\STX\NUL\DC2\ETXo\EOT\US\SUB\173\SOH\n\+ \A bare-bones invoice for a payment within the Lightning Network. With the\n\+ \details of the invoice, the sender has all the data necessary to send a\n\+ \payment to the recipient.\n\+ \\n\+ \\f\n\+ \\ENQ\EOT\ETX\STX\NUL\ENQ\DC2\ETXo\EOT\n\+ \\n\+ \\f\n\+ \\ENQ\EOT\ETX\STX\NUL\SOH\DC2\ETXo\v\SUB\n\+ \\f\n\+ \\ENQ\EOT\ETX\STX\NUL\ETX\DC2\ETXo\GS\RS\n\+ \\149\STX\n\+ \\EOT\EOT\ETX\STX\SOH\DC2\ETXw\EOT\EM\SUB\135\STX\n\+ \The \"add\" index of this invoice. Each newly created invoice will increment\n\+ \this index making it monotonically increasing. Callers to the\n\+ \SubscribeInvoices call can use this to instantly get notified of all added\n\+ \invoices with an add_index greater than this one.\n\+ \\n\+ \\f\n\+ \\ENQ\EOT\ETX\STX\SOH\ENQ\DC2\ETXw\EOT\n\+ \\n\+ \\f\n\+ \\ENQ\EOT\ETX\STX\SOH\SOH\DC2\ETXw\v\DC4\n\+ \\f\n\+ \\ENQ\EOT\ETX\STX\SOH\ETX\DC2\ETXw\ETB\CAN\n\+ \\162\SOH\n\+ \\EOT\EOT\ETX\STX\STX\DC2\ETX~\EOT\ESC\SUB\148\SOH\n\+ \The payment address of the generated invoice. This value should be used\n\+ \in all payments for this invoice as we require it for end to end\n\+ \security.\n\+ \\n\+ \\f\n\+ \\ENQ\EOT\ETX\STX\STX\ENQ\DC2\ETX~\EOT\t\n\+ \\f\n\+ \\ENQ\EOT\ETX\STX\STX\SOH\DC2\ETX~\n\+ \\SYN\n\+ \\f\n\+ \\ENQ\EOT\ETX\STX\STX\ETX\DC2\ETX~\EM\SUB\n\+ \\f\n\+ \\STX\EOT\EOT\DC2\ACK\129\SOH\NUL\133\SOH\SOH\n\+ \\v\n\+ \\ETX\EOT\EOT\SOH\DC2\EOT\129\SOH\b\CAN\n\+ \`\n\+ \\EOT\EOT\EOT\STX\NUL\DC2\EOT\132\SOH\EOT\ETB\SUBR Externally discovered pre-image that should be used to settle the hold\n\+ \ invoice.\n\+ \\n\+ \\r\n\+ \\ENQ\EOT\EOT\STX\NUL\ENQ\DC2\EOT\132\SOH\EOT\t\n\+ \\r\n\+ \\ENQ\EOT\EOT\STX\NUL\SOH\DC2\EOT\132\SOH\n\+ \\DC2\n\+ \\r\n\+ \\ENQ\EOT\EOT\STX\NUL\ETX\DC2\EOT\132\SOH\NAK\SYN\n\+ \\f\n\+ \\STX\EOT\ENQ\DC2\ACK\135\SOH\NUL\136\SOH\SOH\n\+ \\v\n\+ \\ETX\EOT\ENQ\SOH\DC2\EOT\135\SOH\b\EM\n\+ \\f\n\+ \\STX\EOT\ACK\DC2\ACK\138\SOH\NUL\143\SOH\SOH\n\+ \\v\n\+ \\ETX\EOT\ACK\SOH\DC2\EOT\138\SOH\b%\n\+ \\v\n\+ \\ETX\EOT\ACK\t\DC2\EOT\139\SOH\EOT\SI\n\+ \\f\n\+ \\EOT\EOT\ACK\t\NUL\DC2\EOT\139\SOH\r\SO\n\+ \\r\n\+ \\ENQ\EOT\ACK\t\NUL\SOH\DC2\EOT\139\SOH\r\SO\n\+ \\r\n\+ \\ENQ\EOT\ACK\t\NUL\STX\DC2\EOT\139\SOH\r\SO\n\+ \I\n\+ \\EOT\EOT\ACK\STX\NUL\DC2\EOT\142\SOH\EOT\NAK\SUB; Hash corresponding to the (hold) invoice to subscribe to.\n\+ \\n\+ \\r\n\+ \\ENQ\EOT\ACK\STX\NUL\ENQ\DC2\EOT\142\SOH\EOT\t\n\+ \\r\n\+ \\ENQ\EOT\ACK\STX\NUL\SOH\DC2\EOT\142\SOH\n\+ \\DLE\n\+ \\r\n\+ \\ENQ\EOT\ACK\STX\NUL\ETX\DC2\EOT\142\SOH\DC3\DC4\n\+ \\f\n\+ \\STX\ENQ\NUL\DC2\ACK\145\SOH\NUL\162\SOH\SOH\n\+ \\v\n\+ \\ETX\ENQ\NUL\SOH\DC2\EOT\145\SOH\ENQ\DC3\n\+ \M\n\+ \\EOT\ENQ\NUL\STX\NUL\DC2\EOT\147\SOH\EOT\DLE\SUB? The default look up modifier, no look up behavior is changed.\n\+ \\n\+ \\r\n\+ \\ENQ\ENQ\NUL\STX\NUL\SOH\DC2\EOT\147\SOH\EOT\v\n\+ \\r\n\+ \\ENQ\ENQ\NUL\STX\NUL\STX\DC2\EOT\147\SOH\SO\SI\n\+ \\144\SOH\n\+ \\EOT\ENQ\NUL\STX\SOH\DC2\EOT\153\SOH\EOT\SYN\SUB\129\SOH\n\+ \Indicates that when a look up is done based on a set_id, then only that set\n\+ \of HTLCs related to that set ID should be returned.\n\+ \\n\+ \\r\n\+ \\ENQ\ENQ\NUL\STX\SOH\SOH\DC2\EOT\153\SOH\EOT\DC1\n\+ \\r\n\+ \\ENQ\ENQ\NUL\STX\SOH\STX\DC2\EOT\153\SOH\DC4\NAK\n\+ \\170\STX\n\+ \\EOT\ENQ\NUL\STX\STX\DC2\EOT\161\SOH\EOT\ETB\SUB\155\STX\n\+ \Indicates that when a look up is done using a payment_addr, then no HTLCs\n\+ \related to the payment_addr should be returned. This is useful when one\n\+ \wants to be able to obtain the set of associated setIDs with a given\n\+ \invoice, then look up the sub-invoices \"projected\" by that set ID.\n\+ \\n\+ \\r\n\+ \\ENQ\ENQ\NUL\STX\STX\SOH\DC2\EOT\161\SOH\EOT\DC2\n\+ \\r\n\+ \\ENQ\ENQ\NUL\STX\STX\STX\DC2\EOT\161\SOH\NAK\SYN\n\+ \\f\n\+ \\STX\EOT\a\DC2\ACK\164\SOH\NUL\172\SOH\SOH\n\+ \\v\n\+ \\ETX\EOT\a\SOH\DC2\EOT\164\SOH\b\CAN\n\+ \\SO\n\+ \\EOT\EOT\a\b\NUL\DC2\ACK\165\SOH\EOT\169\SOH\ENQ\n\+ \\r\n\+ \\ENQ\EOT\a\b\NUL\SOH\DC2\EOT\165\SOH\n\+ \\NAK\n\+ \\f\n\+ \\EOT\EOT\a\STX\NUL\DC2\EOT\166\SOH\b\US\n\+ \\r\n\+ \\ENQ\EOT\a\STX\NUL\ENQ\DC2\EOT\166\SOH\b\r\n\+ \\r\n\+ \\ENQ\EOT\a\STX\NUL\SOH\DC2\EOT\166\SOH\SO\SUB\n\+ \\r\n\+ \\ENQ\EOT\a\STX\NUL\ETX\DC2\EOT\166\SOH\GS\RS\n\+ \\f\n\+ \\EOT\EOT\a\STX\SOH\DC2\EOT\167\SOH\b\US\n\+ \\r\n\+ \\ENQ\EOT\a\STX\SOH\ENQ\DC2\EOT\167\SOH\b\r\n\+ \\r\n\+ \\ENQ\EOT\a\STX\SOH\SOH\DC2\EOT\167\SOH\SO\SUB\n\+ \\r\n\+ \\ENQ\EOT\a\STX\SOH\ETX\DC2\EOT\167\SOH\GS\RS\n\+ \\f\n\+ \\EOT\EOT\a\STX\STX\DC2\EOT\168\SOH\b\EM\n\+ \\r\n\+ \\ENQ\EOT\a\STX\STX\ENQ\DC2\EOT\168\SOH\b\r\n\+ \\r\n\+ \\ENQ\EOT\a\STX\STX\SOH\DC2\EOT\168\SOH\SO\DC4\n\+ \\r\n\+ \\ENQ\EOT\a\STX\STX\ETX\DC2\EOT\168\SOH\ETB\CAN\n\+ \\f\n\+ \\EOT\EOT\a\STX\ETX\DC2\EOT\171\SOH\EOT'\n\+ \\r\n\+ \\ENQ\EOT\a\STX\ETX\ACK\DC2\EOT\171\SOH\EOT\DC2\n\+ \\r\n\+ \\ENQ\EOT\a\STX\ETX\SOH\DC2\EOT\171\SOH\DC3\"\n\+ \\r\n\+ \\ENQ\EOT\a\STX\ETX\ETX\DC2\EOT\171\SOH%&b\ACKproto3"
@@ -0,0 +1,162 @@+{- This file was auto-generated from invoicesrpc/invoices.proto by the proto-lens-protoc program. -}+{-# LANGUAGE ScopedTypeVariables, DataKinds, TypeFamilies, UndecidableInstances, GeneralizedNewtypeDeriving, MultiParamTypeClasses, FlexibleContexts, FlexibleInstances, PatternSynonyms, MagicHash, NoImplicitPrelude, BangPatterns, TypeApplications, OverloadedStrings, DerivingStrategies, DeriveGeneric#-}+{-# OPTIONS_GHC -Wno-unused-imports#-}+{-# OPTIONS_GHC -Wno-duplicate-exports#-}+{-# OPTIONS_GHC -Wno-dodgy-exports#-}+module Proto.Invoicesrpc.Invoices_Fields where+import qualified Data.ProtoLens.Runtime.Prelude as Prelude+import qualified Data.ProtoLens.Runtime.Data.Int as Data.Int+import qualified Data.ProtoLens.Runtime.Data.Monoid as Data.Monoid+import qualified Data.ProtoLens.Runtime.Data.Word as Data.Word+import qualified Data.ProtoLens.Runtime.Data.ProtoLens as Data.ProtoLens+import qualified Data.ProtoLens.Runtime.Data.ProtoLens.Encoding.Bytes as Data.ProtoLens.Encoding.Bytes+import qualified Data.ProtoLens.Runtime.Data.ProtoLens.Encoding.Growing as Data.ProtoLens.Encoding.Growing+import qualified Data.ProtoLens.Runtime.Data.ProtoLens.Encoding.Parser.Unsafe as Data.ProtoLens.Encoding.Parser.Unsafe+import qualified Data.ProtoLens.Runtime.Data.ProtoLens.Encoding.Wire as Data.ProtoLens.Encoding.Wire+import qualified Data.ProtoLens.Runtime.Data.ProtoLens.Field as Data.ProtoLens.Field+import qualified Data.ProtoLens.Runtime.Data.ProtoLens.Message.Enum as Data.ProtoLens.Message.Enum+import qualified Data.ProtoLens.Runtime.Data.ProtoLens.Service.Types as Data.ProtoLens.Service.Types+import qualified Data.ProtoLens.Runtime.Lens.Family2 as Lens.Family2+import qualified Data.ProtoLens.Runtime.Lens.Family2.Unchecked as Lens.Family2.Unchecked+import qualified Data.ProtoLens.Runtime.Data.Text as Data.Text+import qualified Data.ProtoLens.Runtime.Data.Map as Data.Map+import qualified Data.ProtoLens.Runtime.Data.ByteString as Data.ByteString+import qualified Data.ProtoLens.Runtime.Data.ByteString.Char8 as Data.ByteString.Char8+import qualified Data.ProtoLens.Runtime.Data.Text.Encoding as Data.Text.Encoding+import qualified Data.ProtoLens.Runtime.Data.Vector as Data.Vector+import qualified Data.ProtoLens.Runtime.Data.Vector.Generic as Data.Vector.Generic+import qualified Data.ProtoLens.Runtime.Data.Vector.Unboxed as Data.Vector.Unboxed+import qualified Data.ProtoLens.Runtime.Text.Read as Text.Read+import qualified Proto.Lnrpc.Ln0+import qualified Proto.Lnrpc.Ln1+addIndex ::+ forall f s a.+ (Prelude.Functor f,+ Data.ProtoLens.Field.HasField s "addIndex" a) =>+ Lens.Family2.LensLike' f s a+addIndex = Data.ProtoLens.Field.field @"addIndex"+cltvExpiry ::+ forall f s a.+ (Prelude.Functor f,+ Data.ProtoLens.Field.HasField s "cltvExpiry" a) =>+ Lens.Family2.LensLike' f s a+cltvExpiry = Data.ProtoLens.Field.field @"cltvExpiry"+descriptionHash ::+ forall f s a.+ (Prelude.Functor f,+ Data.ProtoLens.Field.HasField s "descriptionHash" a) =>+ Lens.Family2.LensLike' f s a+descriptionHash = Data.ProtoLens.Field.field @"descriptionHash"+expiry ::+ forall f s a.+ (Prelude.Functor f, Data.ProtoLens.Field.HasField s "expiry" a) =>+ Lens.Family2.LensLike' f s a+expiry = Data.ProtoLens.Field.field @"expiry"+fallbackAddr ::+ forall f s a.+ (Prelude.Functor f,+ Data.ProtoLens.Field.HasField s "fallbackAddr" a) =>+ Lens.Family2.LensLike' f s a+fallbackAddr = Data.ProtoLens.Field.field @"fallbackAddr"+hash ::+ forall f s a.+ (Prelude.Functor f, Data.ProtoLens.Field.HasField s "hash" a) =>+ Lens.Family2.LensLike' f s a+hash = Data.ProtoLens.Field.field @"hash"+lookupModifier ::+ forall f s a.+ (Prelude.Functor f,+ Data.ProtoLens.Field.HasField s "lookupModifier" a) =>+ Lens.Family2.LensLike' f s a+lookupModifier = Data.ProtoLens.Field.field @"lookupModifier"+maybe'invoiceRef ::+ forall f s a.+ (Prelude.Functor f,+ Data.ProtoLens.Field.HasField s "maybe'invoiceRef" a) =>+ Lens.Family2.LensLike' f s a+maybe'invoiceRef = Data.ProtoLens.Field.field @"maybe'invoiceRef"+maybe'paymentAddr ::+ forall f s a.+ (Prelude.Functor f,+ Data.ProtoLens.Field.HasField s "maybe'paymentAddr" a) =>+ Lens.Family2.LensLike' f s a+maybe'paymentAddr = Data.ProtoLens.Field.field @"maybe'paymentAddr"+maybe'paymentHash ::+ forall f s a.+ (Prelude.Functor f,+ Data.ProtoLens.Field.HasField s "maybe'paymentHash" a) =>+ Lens.Family2.LensLike' f s a+maybe'paymentHash = Data.ProtoLens.Field.field @"maybe'paymentHash"+maybe'setId ::+ forall f s a.+ (Prelude.Functor f,+ Data.ProtoLens.Field.HasField s "maybe'setId" a) =>+ Lens.Family2.LensLike' f s a+maybe'setId = Data.ProtoLens.Field.field @"maybe'setId"+memo ::+ forall f s a.+ (Prelude.Functor f, Data.ProtoLens.Field.HasField s "memo" a) =>+ Lens.Family2.LensLike' f s a+memo = Data.ProtoLens.Field.field @"memo"+paymentAddr ::+ forall f s a.+ (Prelude.Functor f,+ Data.ProtoLens.Field.HasField s "paymentAddr" a) =>+ Lens.Family2.LensLike' f s a+paymentAddr = Data.ProtoLens.Field.field @"paymentAddr"+paymentHash ::+ forall f s a.+ (Prelude.Functor f,+ Data.ProtoLens.Field.HasField s "paymentHash" a) =>+ Lens.Family2.LensLike' f s a+paymentHash = Data.ProtoLens.Field.field @"paymentHash"+paymentRequest ::+ forall f s a.+ (Prelude.Functor f,+ Data.ProtoLens.Field.HasField s "paymentRequest" a) =>+ Lens.Family2.LensLike' f s a+paymentRequest = Data.ProtoLens.Field.field @"paymentRequest"+preimage ::+ forall f s a.+ (Prelude.Functor f,+ Data.ProtoLens.Field.HasField s "preimage" a) =>+ Lens.Family2.LensLike' f s a+preimage = Data.ProtoLens.Field.field @"preimage"+private ::+ forall f s a.+ (Prelude.Functor f, Data.ProtoLens.Field.HasField s "private" a) =>+ Lens.Family2.LensLike' f s a+private = Data.ProtoLens.Field.field @"private"+rHash ::+ forall f s a.+ (Prelude.Functor f, Data.ProtoLens.Field.HasField s "rHash" a) =>+ Lens.Family2.LensLike' f s a+rHash = Data.ProtoLens.Field.field @"rHash"+routeHints ::+ forall f s a.+ (Prelude.Functor f,+ Data.ProtoLens.Field.HasField s "routeHints" a) =>+ Lens.Family2.LensLike' f s a+routeHints = Data.ProtoLens.Field.field @"routeHints"+setId ::+ forall f s a.+ (Prelude.Functor f, Data.ProtoLens.Field.HasField s "setId" a) =>+ Lens.Family2.LensLike' f s a+setId = Data.ProtoLens.Field.field @"setId"+value ::+ forall f s a.+ (Prelude.Functor f, Data.ProtoLens.Field.HasField s "value" a) =>+ Lens.Family2.LensLike' f s a+value = Data.ProtoLens.Field.field @"value"+valueMsat ::+ forall f s a.+ (Prelude.Functor f,+ Data.ProtoLens.Field.HasField s "valueMsat" a) =>+ Lens.Family2.LensLike' f s a+valueMsat = Data.ProtoLens.Field.field @"valueMsat"+vec'routeHints ::+ forall f s a.+ (Prelude.Functor f,+ Data.ProtoLens.Field.HasField s "vec'routeHints" a) =>+ Lens.Family2.LensLike' f s a+vec'routeHints = Data.ProtoLens.Field.field @"vec'routeHints"
@@ -0,0 +1,21239 @@+{- This file was auto-generated from lightning.proto by the proto-lens-protoc program. -}+{-# LANGUAGE ScopedTypeVariables, DataKinds, TypeFamilies, UndecidableInstances, GeneralizedNewtypeDeriving, MultiParamTypeClasses, FlexibleContexts, FlexibleInstances, PatternSynonyms, MagicHash, NoImplicitPrelude, BangPatterns, TypeApplications, OverloadedStrings, DerivingStrategies, DeriveGeneric#-}+{-# OPTIONS_GHC -Wno-unused-imports#-}+{-# OPTIONS_GHC -Wno-duplicate-exports#-}+{-# OPTIONS_GHC -Wno-dodgy-exports#-}+module Proto.Lightning (+ Lightning(..), AddressType(..), AddressType(),+ AddressType'UnrecognizedValue, BatchOpenChannel(),+ BatchOpenChannelRequest(), BatchOpenChannelResponse(), Chain(),+ ChannelAcceptRequest(), ChannelAcceptResponse(),+ ChannelCloseUpdate(), ChannelOpenUpdate(), CloseChannelRequest(),+ CloseStatusUpdate(), CloseStatusUpdate'Update(..),+ _CloseStatusUpdate'ClosePending, _CloseStatusUpdate'ChanClose,+ ClosedChannelsRequest(), ClosedChannelsResponse(),+ ConfirmationUpdate(), ConnectPeerRequest(), ConnectPeerResponse(),+ CustomMessage(), DisconnectPeerRequest(), DisconnectPeerResponse(),+ EstimateFeeRequest(), EstimateFeeRequest'AddrToAmountEntry(),+ EstimateFeeResponse(), GetInfoRequest(), GetInfoResponse(),+ GetInfoResponse'FeaturesEntry(), GetRecoveryInfoRequest(),+ GetRecoveryInfoResponse(), GetTransactionsRequest(),+ LightningAddress(), ListChannelsRequest(), ListChannelsResponse(),+ ListPeersRequest(), ListPeersResponse(), ListUnspentRequest(),+ ListUnspentResponse(), NewAddressRequest(), NewAddressResponse(),+ OpenChannelRequest(), OpenStatusUpdate(),+ OpenStatusUpdate'Update(..), _OpenStatusUpdate'ChanPending,+ _OpenStatusUpdate'ChanOpen, _OpenStatusUpdate'PsbtFund, Peer(),+ Peer'FeaturesEntry(), Peer'SyncType(..), Peer'SyncType(),+ Peer'SyncType'UnrecognizedValue, PeerEvent(),+ PeerEvent'EventType(..), PeerEvent'EventType(),+ PeerEvent'EventType'UnrecognizedValue, PeerEventSubscription(),+ ReadyForPsbtFunding(), SendCoinsRequest(), SendCoinsResponse(),+ SendCustomMessageRequest(), SendCustomMessageResponse(),+ SendManyRequest(), SendManyRequest'AddrToAmountEntry(),+ SendManyResponse(), SendRequest(),+ SendRequest'DestCustomRecordsEntry(), SendResponse(),+ SendToRouteRequest(), SignMessageRequest(), SignMessageResponse(),+ SubscribeCustomMessagesRequest(), TimestampedError(),+ Transaction(), TransactionDetails(), Utxo(),+ VerifyMessageRequest(), VerifyMessageResponse()+ ) where+import qualified Data.ProtoLens.Runtime.Control.DeepSeq as Control.DeepSeq+import qualified Data.ProtoLens.Runtime.Data.ProtoLens.Prism as Data.ProtoLens.Prism+import qualified Text.PrettyPrint.GenericPretty.Instance+import qualified GHC.Generics+import qualified Text.PrettyPrint.GenericPretty+import qualified Data.ProtoLens.Runtime.Prelude as Prelude+import qualified Data.ProtoLens.Runtime.Data.Int as Data.Int+import qualified Data.ProtoLens.Runtime.Data.Monoid as Data.Monoid+import qualified Data.ProtoLens.Runtime.Data.Word as Data.Word+import qualified Data.ProtoLens.Runtime.Data.ProtoLens as Data.ProtoLens+import qualified Data.ProtoLens.Runtime.Data.ProtoLens.Encoding.Bytes as Data.ProtoLens.Encoding.Bytes+import qualified Data.ProtoLens.Runtime.Data.ProtoLens.Encoding.Growing as Data.ProtoLens.Encoding.Growing+import qualified Data.ProtoLens.Runtime.Data.ProtoLens.Encoding.Parser.Unsafe as Data.ProtoLens.Encoding.Parser.Unsafe+import qualified Data.ProtoLens.Runtime.Data.ProtoLens.Encoding.Wire as Data.ProtoLens.Encoding.Wire+import qualified Data.ProtoLens.Runtime.Data.ProtoLens.Field as Data.ProtoLens.Field+import qualified Data.ProtoLens.Runtime.Data.ProtoLens.Message.Enum as Data.ProtoLens.Message.Enum+import qualified Data.ProtoLens.Runtime.Data.ProtoLens.Service.Types as Data.ProtoLens.Service.Types+import qualified Data.ProtoLens.Runtime.Lens.Family2 as Lens.Family2+import qualified Data.ProtoLens.Runtime.Lens.Family2.Unchecked as Lens.Family2.Unchecked+import qualified Data.ProtoLens.Runtime.Data.Text as Data.Text+import qualified Data.ProtoLens.Runtime.Data.Map as Data.Map+import qualified Data.ProtoLens.Runtime.Data.ByteString as Data.ByteString+import qualified Data.ProtoLens.Runtime.Data.ByteString.Char8 as Data.ByteString.Char8+import qualified Data.ProtoLens.Runtime.Data.Text.Encoding as Data.Text.Encoding+import qualified Data.ProtoLens.Runtime.Data.Vector as Data.Vector+import qualified Data.ProtoLens.Runtime.Data.Vector.Generic as Data.Vector.Generic+import qualified Data.ProtoLens.Runtime.Data.Vector.Unboxed as Data.Vector.Unboxed+import qualified Data.ProtoLens.Runtime.Text.Read as Text.Read+import qualified Proto.Lnrpc.Ln0+import qualified Proto.Lnrpc.Ln1+newtype AddressType'UnrecognizedValue+ = AddressType'UnrecognizedValue Data.Int.Int32+ deriving stock (Prelude.Eq,+ Prelude.Ord,+ Prelude.Show,+ GHC.Generics.Generic)+instance Text.PrettyPrint.GenericPretty.Out AddressType'UnrecognizedValue+data AddressType+ = WITNESS_PUBKEY_HASH |+ NESTED_PUBKEY_HASH |+ UNUSED_WITNESS_PUBKEY_HASH |+ UNUSED_NESTED_PUBKEY_HASH |+ AddressType'Unrecognized !AddressType'UnrecognizedValue+ deriving stock (Prelude.Show,+ Prelude.Eq,+ Prelude.Ord,+ GHC.Generics.Generic)+instance Data.ProtoLens.MessageEnum AddressType where+ maybeToEnum 0 = Prelude.Just WITNESS_PUBKEY_HASH+ maybeToEnum 1 = Prelude.Just NESTED_PUBKEY_HASH+ maybeToEnum 2 = Prelude.Just UNUSED_WITNESS_PUBKEY_HASH+ maybeToEnum 3 = Prelude.Just UNUSED_NESTED_PUBKEY_HASH+ maybeToEnum k+ = Prelude.Just+ (AddressType'Unrecognized+ (AddressType'UnrecognizedValue (Prelude.fromIntegral k)))+ showEnum WITNESS_PUBKEY_HASH = "WITNESS_PUBKEY_HASH"+ showEnum NESTED_PUBKEY_HASH = "NESTED_PUBKEY_HASH"+ showEnum UNUSED_WITNESS_PUBKEY_HASH = "UNUSED_WITNESS_PUBKEY_HASH"+ showEnum UNUSED_NESTED_PUBKEY_HASH = "UNUSED_NESTED_PUBKEY_HASH"+ showEnum+ (AddressType'Unrecognized (AddressType'UnrecognizedValue k))+ = Prelude.show k+ readEnum k+ | (Prelude.==) k "WITNESS_PUBKEY_HASH"+ = Prelude.Just WITNESS_PUBKEY_HASH+ | (Prelude.==) k "NESTED_PUBKEY_HASH"+ = Prelude.Just NESTED_PUBKEY_HASH+ | (Prelude.==) k "UNUSED_WITNESS_PUBKEY_HASH"+ = Prelude.Just UNUSED_WITNESS_PUBKEY_HASH+ | (Prelude.==) k "UNUSED_NESTED_PUBKEY_HASH"+ = Prelude.Just UNUSED_NESTED_PUBKEY_HASH+ | Prelude.otherwise+ = (Prelude.>>=) (Text.Read.readMaybe k) Data.ProtoLens.maybeToEnum+instance Prelude.Bounded AddressType where+ minBound = WITNESS_PUBKEY_HASH+ maxBound = UNUSED_NESTED_PUBKEY_HASH+instance Prelude.Enum AddressType where+ toEnum k__+ = Prelude.maybe+ (Prelude.error+ ((Prelude.++)+ "toEnum: unknown value for enum AddressType: " (Prelude.show k__)))+ Prelude.id (Data.ProtoLens.maybeToEnum k__)+ fromEnum WITNESS_PUBKEY_HASH = 0+ fromEnum NESTED_PUBKEY_HASH = 1+ fromEnum UNUSED_WITNESS_PUBKEY_HASH = 2+ fromEnum UNUSED_NESTED_PUBKEY_HASH = 3+ fromEnum+ (AddressType'Unrecognized (AddressType'UnrecognizedValue k))+ = Prelude.fromIntegral k+ succ UNUSED_NESTED_PUBKEY_HASH+ = Prelude.error+ "AddressType.succ: bad argument UNUSED_NESTED_PUBKEY_HASH. This value would be out of bounds."+ succ WITNESS_PUBKEY_HASH = NESTED_PUBKEY_HASH+ succ NESTED_PUBKEY_HASH = UNUSED_WITNESS_PUBKEY_HASH+ succ UNUSED_WITNESS_PUBKEY_HASH = UNUSED_NESTED_PUBKEY_HASH+ succ (AddressType'Unrecognized _)+ = Prelude.error+ "AddressType.succ: bad argument: unrecognized value"+ pred WITNESS_PUBKEY_HASH+ = Prelude.error+ "AddressType.pred: bad argument WITNESS_PUBKEY_HASH. This value would be out of bounds."+ pred NESTED_PUBKEY_HASH = WITNESS_PUBKEY_HASH+ pred UNUSED_WITNESS_PUBKEY_HASH = NESTED_PUBKEY_HASH+ pred UNUSED_NESTED_PUBKEY_HASH = UNUSED_WITNESS_PUBKEY_HASH+ pred (AddressType'Unrecognized _)+ = Prelude.error+ "AddressType.pred: bad argument: unrecognized value"+ enumFrom = Data.ProtoLens.Message.Enum.messageEnumFrom+ enumFromTo = Data.ProtoLens.Message.Enum.messageEnumFromTo+ enumFromThen = Data.ProtoLens.Message.Enum.messageEnumFromThen+ enumFromThenTo = Data.ProtoLens.Message.Enum.messageEnumFromThenTo+instance Data.ProtoLens.FieldDefault AddressType where+ fieldDefault = WITNESS_PUBKEY_HASH+instance Control.DeepSeq.NFData AddressType where+ rnf x__ = Prelude.seq x__ ()+instance Text.PrettyPrint.GenericPretty.Out AddressType+{- | Fields :+ + * 'Proto.Lightning_Fields.nodePubkey' @:: Lens' BatchOpenChannel Data.ByteString.ByteString@+ * 'Proto.Lightning_Fields.localFundingAmount' @:: Lens' BatchOpenChannel Data.Int.Int64@+ * 'Proto.Lightning_Fields.pushSat' @:: Lens' BatchOpenChannel Data.Int.Int64@+ * 'Proto.Lightning_Fields.private' @:: Lens' BatchOpenChannel Prelude.Bool@+ * 'Proto.Lightning_Fields.minHtlcMsat' @:: Lens' BatchOpenChannel Data.Int.Int64@+ * 'Proto.Lightning_Fields.remoteCsvDelay' @:: Lens' BatchOpenChannel Data.Word.Word32@+ * 'Proto.Lightning_Fields.closeAddress' @:: Lens' BatchOpenChannel Data.Text.Text@+ * 'Proto.Lightning_Fields.pendingChanId' @:: Lens' BatchOpenChannel Data.ByteString.ByteString@+ * 'Proto.Lightning_Fields.commitmentType' @:: Lens' BatchOpenChannel Proto.Lnrpc.Ln0.CommitmentType@ -}+data BatchOpenChannel+ = BatchOpenChannel'_constructor {_BatchOpenChannel'nodePubkey :: !Data.ByteString.ByteString,+ _BatchOpenChannel'localFundingAmount :: !Data.Int.Int64,+ _BatchOpenChannel'pushSat :: !Data.Int.Int64,+ _BatchOpenChannel'private :: !Prelude.Bool,+ _BatchOpenChannel'minHtlcMsat :: !Data.Int.Int64,+ _BatchOpenChannel'remoteCsvDelay :: !Data.Word.Word32,+ _BatchOpenChannel'closeAddress :: !Data.Text.Text,+ _BatchOpenChannel'pendingChanId :: !Data.ByteString.ByteString,+ _BatchOpenChannel'commitmentType :: !Proto.Lnrpc.Ln0.CommitmentType,+ _BatchOpenChannel'_unknownFields :: !Data.ProtoLens.FieldSet}+ deriving stock (Prelude.Eq, Prelude.Ord, GHC.Generics.Generic)+instance Prelude.Show BatchOpenChannel where+ showsPrec _ __x __s+ = Prelude.showChar+ '{'+ (Prelude.showString+ (Data.ProtoLens.showMessageShort __x) (Prelude.showChar '}' __s))+instance Text.PrettyPrint.GenericPretty.Out BatchOpenChannel+instance Data.ProtoLens.Field.HasField BatchOpenChannel "nodePubkey" Data.ByteString.ByteString where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _BatchOpenChannel'nodePubkey+ (\ x__ y__ -> x__ {_BatchOpenChannel'nodePubkey = y__}))+ Prelude.id+instance Data.ProtoLens.Field.HasField BatchOpenChannel "localFundingAmount" Data.Int.Int64 where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _BatchOpenChannel'localFundingAmount+ (\ x__ y__ -> x__ {_BatchOpenChannel'localFundingAmount = y__}))+ Prelude.id+instance Data.ProtoLens.Field.HasField BatchOpenChannel "pushSat" Data.Int.Int64 where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _BatchOpenChannel'pushSat+ (\ x__ y__ -> x__ {_BatchOpenChannel'pushSat = y__}))+ Prelude.id+instance Data.ProtoLens.Field.HasField BatchOpenChannel "private" Prelude.Bool where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _BatchOpenChannel'private+ (\ x__ y__ -> x__ {_BatchOpenChannel'private = y__}))+ Prelude.id+instance Data.ProtoLens.Field.HasField BatchOpenChannel "minHtlcMsat" Data.Int.Int64 where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _BatchOpenChannel'minHtlcMsat+ (\ x__ y__ -> x__ {_BatchOpenChannel'minHtlcMsat = y__}))+ Prelude.id+instance Data.ProtoLens.Field.HasField BatchOpenChannel "remoteCsvDelay" Data.Word.Word32 where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _BatchOpenChannel'remoteCsvDelay+ (\ x__ y__ -> x__ {_BatchOpenChannel'remoteCsvDelay = y__}))+ Prelude.id+instance Data.ProtoLens.Field.HasField BatchOpenChannel "closeAddress" Data.Text.Text where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _BatchOpenChannel'closeAddress+ (\ x__ y__ -> x__ {_BatchOpenChannel'closeAddress = y__}))+ Prelude.id+instance Data.ProtoLens.Field.HasField BatchOpenChannel "pendingChanId" Data.ByteString.ByteString where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _BatchOpenChannel'pendingChanId+ (\ x__ y__ -> x__ {_BatchOpenChannel'pendingChanId = y__}))+ Prelude.id+instance Data.ProtoLens.Field.HasField BatchOpenChannel "commitmentType" Proto.Lnrpc.Ln0.CommitmentType where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _BatchOpenChannel'commitmentType+ (\ x__ y__ -> x__ {_BatchOpenChannel'commitmentType = y__}))+ Prelude.id+instance Data.ProtoLens.Message BatchOpenChannel where+ messageName _ = Data.Text.pack "lnrpc.BatchOpenChannel"+ packedMessageDescriptor _+ = "\n\+ \\DLEBatchOpenChannel\DC2\US\n\+ \\vnode_pubkey\CAN\SOH \SOH(\fR\n\+ \nodePubkey\DC20\n\+ \\DC4local_funding_amount\CAN\STX \SOH(\ETXR\DC2localFundingAmount\DC2\EM\n\+ \\bpush_sat\CAN\ETX \SOH(\ETXR\apushSat\DC2\CAN\n\+ \\aprivate\CAN\EOT \SOH(\bR\aprivate\DC2\"\n\+ \\rmin_htlc_msat\CAN\ENQ \SOH(\ETXR\vminHtlcMsat\DC2(\n\+ \\DLEremote_csv_delay\CAN\ACK \SOH(\rR\SOremoteCsvDelay\DC2#\n\+ \\rclose_address\CAN\a \SOH(\tR\fcloseAddress\DC2&\n\+ \\SIpending_chan_id\CAN\b \SOH(\fR\rpendingChanId\DC2>\n\+ \\SIcommitment_type\CAN\t \SOH(\SO2\NAK.lnrpc.CommitmentTypeR\SOcommitmentType"+ packedFileDescriptor _ = packedFileDescriptor+ fieldsByTag+ = let+ nodePubkey__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "node_pubkey"+ (Data.ProtoLens.ScalarField Data.ProtoLens.BytesField ::+ Data.ProtoLens.FieldTypeDescriptor Data.ByteString.ByteString)+ (Data.ProtoLens.PlainField+ Data.ProtoLens.Optional+ (Data.ProtoLens.Field.field @"nodePubkey")) ::+ Data.ProtoLens.FieldDescriptor BatchOpenChannel+ localFundingAmount__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "local_funding_amount"+ (Data.ProtoLens.ScalarField Data.ProtoLens.Int64Field ::+ Data.ProtoLens.FieldTypeDescriptor Data.Int.Int64)+ (Data.ProtoLens.PlainField+ Data.ProtoLens.Optional+ (Data.ProtoLens.Field.field @"localFundingAmount")) ::+ Data.ProtoLens.FieldDescriptor BatchOpenChannel+ pushSat__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "push_sat"+ (Data.ProtoLens.ScalarField Data.ProtoLens.Int64Field ::+ Data.ProtoLens.FieldTypeDescriptor Data.Int.Int64)+ (Data.ProtoLens.PlainField+ Data.ProtoLens.Optional (Data.ProtoLens.Field.field @"pushSat")) ::+ Data.ProtoLens.FieldDescriptor BatchOpenChannel+ private__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "private"+ (Data.ProtoLens.ScalarField Data.ProtoLens.BoolField ::+ Data.ProtoLens.FieldTypeDescriptor Prelude.Bool)+ (Data.ProtoLens.PlainField+ Data.ProtoLens.Optional (Data.ProtoLens.Field.field @"private")) ::+ Data.ProtoLens.FieldDescriptor BatchOpenChannel+ minHtlcMsat__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "min_htlc_msat"+ (Data.ProtoLens.ScalarField Data.ProtoLens.Int64Field ::+ Data.ProtoLens.FieldTypeDescriptor Data.Int.Int64)+ (Data.ProtoLens.PlainField+ Data.ProtoLens.Optional+ (Data.ProtoLens.Field.field @"minHtlcMsat")) ::+ Data.ProtoLens.FieldDescriptor BatchOpenChannel+ remoteCsvDelay__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "remote_csv_delay"+ (Data.ProtoLens.ScalarField Data.ProtoLens.UInt32Field ::+ Data.ProtoLens.FieldTypeDescriptor Data.Word.Word32)+ (Data.ProtoLens.PlainField+ Data.ProtoLens.Optional+ (Data.ProtoLens.Field.field @"remoteCsvDelay")) ::+ Data.ProtoLens.FieldDescriptor BatchOpenChannel+ closeAddress__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "close_address"+ (Data.ProtoLens.ScalarField Data.ProtoLens.StringField ::+ Data.ProtoLens.FieldTypeDescriptor Data.Text.Text)+ (Data.ProtoLens.PlainField+ Data.ProtoLens.Optional+ (Data.ProtoLens.Field.field @"closeAddress")) ::+ Data.ProtoLens.FieldDescriptor BatchOpenChannel+ pendingChanId__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "pending_chan_id"+ (Data.ProtoLens.ScalarField Data.ProtoLens.BytesField ::+ Data.ProtoLens.FieldTypeDescriptor Data.ByteString.ByteString)+ (Data.ProtoLens.PlainField+ Data.ProtoLens.Optional+ (Data.ProtoLens.Field.field @"pendingChanId")) ::+ Data.ProtoLens.FieldDescriptor BatchOpenChannel+ commitmentType__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "commitment_type"+ (Data.ProtoLens.ScalarField Data.ProtoLens.EnumField ::+ Data.ProtoLens.FieldTypeDescriptor Proto.Lnrpc.Ln0.CommitmentType)+ (Data.ProtoLens.PlainField+ Data.ProtoLens.Optional+ (Data.ProtoLens.Field.field @"commitmentType")) ::+ Data.ProtoLens.FieldDescriptor BatchOpenChannel+ in+ Data.Map.fromList+ [(Data.ProtoLens.Tag 1, nodePubkey__field_descriptor),+ (Data.ProtoLens.Tag 2, localFundingAmount__field_descriptor),+ (Data.ProtoLens.Tag 3, pushSat__field_descriptor),+ (Data.ProtoLens.Tag 4, private__field_descriptor),+ (Data.ProtoLens.Tag 5, minHtlcMsat__field_descriptor),+ (Data.ProtoLens.Tag 6, remoteCsvDelay__field_descriptor),+ (Data.ProtoLens.Tag 7, closeAddress__field_descriptor),+ (Data.ProtoLens.Tag 8, pendingChanId__field_descriptor),+ (Data.ProtoLens.Tag 9, commitmentType__field_descriptor)]+ unknownFields+ = Lens.Family2.Unchecked.lens+ _BatchOpenChannel'_unknownFields+ (\ x__ y__ -> x__ {_BatchOpenChannel'_unknownFields = y__})+ defMessage+ = BatchOpenChannel'_constructor+ {_BatchOpenChannel'nodePubkey = Data.ProtoLens.fieldDefault,+ _BatchOpenChannel'localFundingAmount = Data.ProtoLens.fieldDefault,+ _BatchOpenChannel'pushSat = Data.ProtoLens.fieldDefault,+ _BatchOpenChannel'private = Data.ProtoLens.fieldDefault,+ _BatchOpenChannel'minHtlcMsat = Data.ProtoLens.fieldDefault,+ _BatchOpenChannel'remoteCsvDelay = Data.ProtoLens.fieldDefault,+ _BatchOpenChannel'closeAddress = Data.ProtoLens.fieldDefault,+ _BatchOpenChannel'pendingChanId = Data.ProtoLens.fieldDefault,+ _BatchOpenChannel'commitmentType = Data.ProtoLens.fieldDefault,+ _BatchOpenChannel'_unknownFields = []}+ parseMessage+ = let+ loop ::+ BatchOpenChannel+ -> Data.ProtoLens.Encoding.Bytes.Parser BatchOpenChannel+ loop x+ = do end <- Data.ProtoLens.Encoding.Bytes.atEnd+ if end then+ do (let missing = []+ in+ if Prelude.null missing then+ Prelude.return ()+ else+ Prelude.fail+ ((Prelude.++)+ "Missing required fields: "+ (Prelude.show (missing :: [Prelude.String]))))+ Prelude.return+ (Lens.Family2.over+ Data.ProtoLens.unknownFields (\ !t -> Prelude.reverse t) x)+ else+ do tag <- Data.ProtoLens.Encoding.Bytes.getVarInt+ case tag of+ 10+ -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (do len <- Data.ProtoLens.Encoding.Bytes.getVarInt+ Data.ProtoLens.Encoding.Bytes.getBytes+ (Prelude.fromIntegral len))+ "node_pubkey"+ loop+ (Lens.Family2.set (Data.ProtoLens.Field.field @"nodePubkey") y x)+ 16+ -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (Prelude.fmap+ Prelude.fromIntegral+ Data.ProtoLens.Encoding.Bytes.getVarInt)+ "local_funding_amount"+ loop+ (Lens.Family2.set+ (Data.ProtoLens.Field.field @"localFundingAmount") y x)+ 24+ -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (Prelude.fmap+ Prelude.fromIntegral+ Data.ProtoLens.Encoding.Bytes.getVarInt)+ "push_sat"+ loop (Lens.Family2.set (Data.ProtoLens.Field.field @"pushSat") y x)+ 32+ -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (Prelude.fmap+ ((Prelude./=) 0) Data.ProtoLens.Encoding.Bytes.getVarInt)+ "private"+ loop (Lens.Family2.set (Data.ProtoLens.Field.field @"private") y x)+ 40+ -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (Prelude.fmap+ Prelude.fromIntegral+ Data.ProtoLens.Encoding.Bytes.getVarInt)+ "min_htlc_msat"+ loop+ (Lens.Family2.set (Data.ProtoLens.Field.field @"minHtlcMsat") y x)+ 48+ -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (Prelude.fmap+ Prelude.fromIntegral+ Data.ProtoLens.Encoding.Bytes.getVarInt)+ "remote_csv_delay"+ loop+ (Lens.Family2.set+ (Data.ProtoLens.Field.field @"remoteCsvDelay") y x)+ 58+ -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (do value <- do len <- Data.ProtoLens.Encoding.Bytes.getVarInt+ Data.ProtoLens.Encoding.Bytes.getBytes+ (Prelude.fromIntegral len)+ Data.ProtoLens.Encoding.Bytes.runEither+ (case Data.Text.Encoding.decodeUtf8' value of+ (Prelude.Left err)+ -> Prelude.Left (Prelude.show err)+ (Prelude.Right r) -> Prelude.Right r))+ "close_address"+ loop+ (Lens.Family2.set+ (Data.ProtoLens.Field.field @"closeAddress") y x)+ 66+ -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (do len <- Data.ProtoLens.Encoding.Bytes.getVarInt+ Data.ProtoLens.Encoding.Bytes.getBytes+ (Prelude.fromIntegral len))+ "pending_chan_id"+ loop+ (Lens.Family2.set+ (Data.ProtoLens.Field.field @"pendingChanId") y x)+ 72+ -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (Prelude.fmap+ Prelude.toEnum+ (Prelude.fmap+ Prelude.fromIntegral+ Data.ProtoLens.Encoding.Bytes.getVarInt))+ "commitment_type"+ loop+ (Lens.Family2.set+ (Data.ProtoLens.Field.field @"commitmentType") y x)+ wire+ -> do !y <- Data.ProtoLens.Encoding.Wire.parseTaggedValueFromWire+ wire+ loop+ (Lens.Family2.over+ Data.ProtoLens.unknownFields (\ !t -> (:) y t) x)+ in+ (Data.ProtoLens.Encoding.Bytes.<?>)+ (do loop Data.ProtoLens.defMessage) "BatchOpenChannel"+ buildMessage+ = \ _x+ -> (Data.Monoid.<>)+ (let+ _v+ = Lens.Family2.view (Data.ProtoLens.Field.field @"nodePubkey") _x+ in+ if (Prelude.==) _v Data.ProtoLens.fieldDefault then+ Data.Monoid.mempty+ else+ (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 10)+ ((\ bs+ -> (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt+ (Prelude.fromIntegral (Data.ByteString.length bs)))+ (Data.ProtoLens.Encoding.Bytes.putBytes bs))+ _v))+ ((Data.Monoid.<>)+ (let+ _v+ = Lens.Family2.view+ (Data.ProtoLens.Field.field @"localFundingAmount") _x+ in+ if (Prelude.==) _v Data.ProtoLens.fieldDefault then+ Data.Monoid.mempty+ else+ (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 16)+ ((Prelude..)+ Data.ProtoLens.Encoding.Bytes.putVarInt Prelude.fromIntegral _v))+ ((Data.Monoid.<>)+ (let+ _v = Lens.Family2.view (Data.ProtoLens.Field.field @"pushSat") _x+ in+ if (Prelude.==) _v Data.ProtoLens.fieldDefault then+ Data.Monoid.mempty+ else+ (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 24)+ ((Prelude..)+ Data.ProtoLens.Encoding.Bytes.putVarInt Prelude.fromIntegral _v))+ ((Data.Monoid.<>)+ (let+ _v = Lens.Family2.view (Data.ProtoLens.Field.field @"private") _x+ in+ if (Prelude.==) _v Data.ProtoLens.fieldDefault then+ Data.Monoid.mempty+ else+ (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 32)+ ((Prelude..)+ Data.ProtoLens.Encoding.Bytes.putVarInt+ (\ b -> if b then 1 else 0) _v))+ ((Data.Monoid.<>)+ (let+ _v+ = Lens.Family2.view (Data.ProtoLens.Field.field @"minHtlcMsat") _x+ in+ if (Prelude.==) _v Data.ProtoLens.fieldDefault then+ Data.Monoid.mempty+ else+ (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 40)+ ((Prelude..)+ Data.ProtoLens.Encoding.Bytes.putVarInt Prelude.fromIntegral+ _v))+ ((Data.Monoid.<>)+ (let+ _v+ = Lens.Family2.view+ (Data.ProtoLens.Field.field @"remoteCsvDelay") _x+ in+ if (Prelude.==) _v Data.ProtoLens.fieldDefault then+ Data.Monoid.mempty+ else+ (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 48)+ ((Prelude..)+ Data.ProtoLens.Encoding.Bytes.putVarInt Prelude.fromIntegral+ _v))+ ((Data.Monoid.<>)+ (let+ _v+ = Lens.Family2.view+ (Data.ProtoLens.Field.field @"closeAddress") _x+ in+ if (Prelude.==) _v Data.ProtoLens.fieldDefault then+ Data.Monoid.mempty+ else+ (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 58)+ ((Prelude..)+ (\ bs+ -> (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt+ (Prelude.fromIntegral+ (Data.ByteString.length bs)))+ (Data.ProtoLens.Encoding.Bytes.putBytes bs))+ Data.Text.Encoding.encodeUtf8 _v))+ ((Data.Monoid.<>)+ (let+ _v+ = Lens.Family2.view+ (Data.ProtoLens.Field.field @"pendingChanId") _x+ in+ if (Prelude.==) _v Data.ProtoLens.fieldDefault then+ Data.Monoid.mempty+ else+ (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 66)+ ((\ bs+ -> (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt+ (Prelude.fromIntegral+ (Data.ByteString.length bs)))+ (Data.ProtoLens.Encoding.Bytes.putBytes bs))+ _v))+ ((Data.Monoid.<>)+ (let+ _v+ = Lens.Family2.view+ (Data.ProtoLens.Field.field @"commitmentType") _x+ in+ if (Prelude.==) _v Data.ProtoLens.fieldDefault then+ Data.Monoid.mempty+ else+ (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 72)+ ((Prelude..)+ ((Prelude..)+ Data.ProtoLens.Encoding.Bytes.putVarInt+ Prelude.fromIntegral)+ Prelude.fromEnum _v))+ (Data.ProtoLens.Encoding.Wire.buildFieldSet+ (Lens.Family2.view Data.ProtoLens.unknownFields _x))))))))))+instance Control.DeepSeq.NFData BatchOpenChannel where+ rnf+ = \ x__+ -> Control.DeepSeq.deepseq+ (_BatchOpenChannel'_unknownFields x__)+ (Control.DeepSeq.deepseq+ (_BatchOpenChannel'nodePubkey x__)+ (Control.DeepSeq.deepseq+ (_BatchOpenChannel'localFundingAmount x__)+ (Control.DeepSeq.deepseq+ (_BatchOpenChannel'pushSat x__)+ (Control.DeepSeq.deepseq+ (_BatchOpenChannel'private x__)+ (Control.DeepSeq.deepseq+ (_BatchOpenChannel'minHtlcMsat x__)+ (Control.DeepSeq.deepseq+ (_BatchOpenChannel'remoteCsvDelay x__)+ (Control.DeepSeq.deepseq+ (_BatchOpenChannel'closeAddress x__)+ (Control.DeepSeq.deepseq+ (_BatchOpenChannel'pendingChanId x__)+ (Control.DeepSeq.deepseq+ (_BatchOpenChannel'commitmentType x__) ())))))))))+{- | Fields :+ + * 'Proto.Lightning_Fields.channels' @:: Lens' BatchOpenChannelRequest [BatchOpenChannel]@+ * 'Proto.Lightning_Fields.vec'channels' @:: Lens' BatchOpenChannelRequest (Data.Vector.Vector BatchOpenChannel)@+ * 'Proto.Lightning_Fields.targetConf' @:: Lens' BatchOpenChannelRequest Data.Int.Int32@+ * 'Proto.Lightning_Fields.satPerVbyte' @:: Lens' BatchOpenChannelRequest Data.Int.Int64@+ * 'Proto.Lightning_Fields.minConfs' @:: Lens' BatchOpenChannelRequest Data.Int.Int32@+ * 'Proto.Lightning_Fields.spendUnconfirmed' @:: Lens' BatchOpenChannelRequest Prelude.Bool@+ * 'Proto.Lightning_Fields.label' @:: Lens' BatchOpenChannelRequest Data.Text.Text@ -}+data BatchOpenChannelRequest+ = BatchOpenChannelRequest'_constructor {_BatchOpenChannelRequest'channels :: !(Data.Vector.Vector BatchOpenChannel),+ _BatchOpenChannelRequest'targetConf :: !Data.Int.Int32,+ _BatchOpenChannelRequest'satPerVbyte :: !Data.Int.Int64,+ _BatchOpenChannelRequest'minConfs :: !Data.Int.Int32,+ _BatchOpenChannelRequest'spendUnconfirmed :: !Prelude.Bool,+ _BatchOpenChannelRequest'label :: !Data.Text.Text,+ _BatchOpenChannelRequest'_unknownFields :: !Data.ProtoLens.FieldSet}+ deriving stock (Prelude.Eq, Prelude.Ord, GHC.Generics.Generic)+instance Prelude.Show BatchOpenChannelRequest where+ showsPrec _ __x __s+ = Prelude.showChar+ '{'+ (Prelude.showString+ (Data.ProtoLens.showMessageShort __x) (Prelude.showChar '}' __s))+instance Text.PrettyPrint.GenericPretty.Out BatchOpenChannelRequest+instance Data.ProtoLens.Field.HasField BatchOpenChannelRequest "channels" [BatchOpenChannel] where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _BatchOpenChannelRequest'channels+ (\ x__ y__ -> x__ {_BatchOpenChannelRequest'channels = y__}))+ (Lens.Family2.Unchecked.lens+ Data.Vector.Generic.toList+ (\ _ y__ -> Data.Vector.Generic.fromList y__))+instance Data.ProtoLens.Field.HasField BatchOpenChannelRequest "vec'channels" (Data.Vector.Vector BatchOpenChannel) where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _BatchOpenChannelRequest'channels+ (\ x__ y__ -> x__ {_BatchOpenChannelRequest'channels = y__}))+ Prelude.id+instance Data.ProtoLens.Field.HasField BatchOpenChannelRequest "targetConf" Data.Int.Int32 where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _BatchOpenChannelRequest'targetConf+ (\ x__ y__ -> x__ {_BatchOpenChannelRequest'targetConf = y__}))+ Prelude.id+instance Data.ProtoLens.Field.HasField BatchOpenChannelRequest "satPerVbyte" Data.Int.Int64 where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _BatchOpenChannelRequest'satPerVbyte+ (\ x__ y__ -> x__ {_BatchOpenChannelRequest'satPerVbyte = y__}))+ Prelude.id+instance Data.ProtoLens.Field.HasField BatchOpenChannelRequest "minConfs" Data.Int.Int32 where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _BatchOpenChannelRequest'minConfs+ (\ x__ y__ -> x__ {_BatchOpenChannelRequest'minConfs = y__}))+ Prelude.id+instance Data.ProtoLens.Field.HasField BatchOpenChannelRequest "spendUnconfirmed" Prelude.Bool where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _BatchOpenChannelRequest'spendUnconfirmed+ (\ x__ y__+ -> x__ {_BatchOpenChannelRequest'spendUnconfirmed = y__}))+ Prelude.id+instance Data.ProtoLens.Field.HasField BatchOpenChannelRequest "label" Data.Text.Text where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _BatchOpenChannelRequest'label+ (\ x__ y__ -> x__ {_BatchOpenChannelRequest'label = y__}))+ Prelude.id+instance Data.ProtoLens.Message BatchOpenChannelRequest where+ messageName _ = Data.Text.pack "lnrpc.BatchOpenChannelRequest"+ packedMessageDescriptor _+ = "\n\+ \\ETBBatchOpenChannelRequest\DC23\n\+ \\bchannels\CAN\SOH \ETX(\v2\ETB.lnrpc.BatchOpenChannelR\bchannels\DC2\US\n\+ \\vtarget_conf\CAN\STX \SOH(\ENQR\n\+ \targetConf\DC2\"\n\+ \\rsat_per_vbyte\CAN\ETX \SOH(\ETXR\vsatPerVbyte\DC2\ESC\n\+ \\tmin_confs\CAN\EOT \SOH(\ENQR\bminConfs\DC2+\n\+ \\DC1spend_unconfirmed\CAN\ENQ \SOH(\bR\DLEspendUnconfirmed\DC2\DC4\n\+ \\ENQlabel\CAN\ACK \SOH(\tR\ENQlabel"+ packedFileDescriptor _ = packedFileDescriptor+ fieldsByTag+ = let+ channels__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "channels"+ (Data.ProtoLens.MessageField Data.ProtoLens.MessageType ::+ Data.ProtoLens.FieldTypeDescriptor BatchOpenChannel)+ (Data.ProtoLens.RepeatedField+ Data.ProtoLens.Unpacked+ (Data.ProtoLens.Field.field @"channels")) ::+ Data.ProtoLens.FieldDescriptor BatchOpenChannelRequest+ targetConf__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "target_conf"+ (Data.ProtoLens.ScalarField Data.ProtoLens.Int32Field ::+ Data.ProtoLens.FieldTypeDescriptor Data.Int.Int32)+ (Data.ProtoLens.PlainField+ Data.ProtoLens.Optional+ (Data.ProtoLens.Field.field @"targetConf")) ::+ Data.ProtoLens.FieldDescriptor BatchOpenChannelRequest+ satPerVbyte__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "sat_per_vbyte"+ (Data.ProtoLens.ScalarField Data.ProtoLens.Int64Field ::+ Data.ProtoLens.FieldTypeDescriptor Data.Int.Int64)+ (Data.ProtoLens.PlainField+ Data.ProtoLens.Optional+ (Data.ProtoLens.Field.field @"satPerVbyte")) ::+ Data.ProtoLens.FieldDescriptor BatchOpenChannelRequest+ minConfs__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "min_confs"+ (Data.ProtoLens.ScalarField Data.ProtoLens.Int32Field ::+ Data.ProtoLens.FieldTypeDescriptor Data.Int.Int32)+ (Data.ProtoLens.PlainField+ Data.ProtoLens.Optional+ (Data.ProtoLens.Field.field @"minConfs")) ::+ Data.ProtoLens.FieldDescriptor BatchOpenChannelRequest+ spendUnconfirmed__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "spend_unconfirmed"+ (Data.ProtoLens.ScalarField Data.ProtoLens.BoolField ::+ Data.ProtoLens.FieldTypeDescriptor Prelude.Bool)+ (Data.ProtoLens.PlainField+ Data.ProtoLens.Optional+ (Data.ProtoLens.Field.field @"spendUnconfirmed")) ::+ Data.ProtoLens.FieldDescriptor BatchOpenChannelRequest+ label__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "label"+ (Data.ProtoLens.ScalarField Data.ProtoLens.StringField ::+ Data.ProtoLens.FieldTypeDescriptor Data.Text.Text)+ (Data.ProtoLens.PlainField+ Data.ProtoLens.Optional (Data.ProtoLens.Field.field @"label")) ::+ Data.ProtoLens.FieldDescriptor BatchOpenChannelRequest+ in+ Data.Map.fromList+ [(Data.ProtoLens.Tag 1, channels__field_descriptor),+ (Data.ProtoLens.Tag 2, targetConf__field_descriptor),+ (Data.ProtoLens.Tag 3, satPerVbyte__field_descriptor),+ (Data.ProtoLens.Tag 4, minConfs__field_descriptor),+ (Data.ProtoLens.Tag 5, spendUnconfirmed__field_descriptor),+ (Data.ProtoLens.Tag 6, label__field_descriptor)]+ unknownFields+ = Lens.Family2.Unchecked.lens+ _BatchOpenChannelRequest'_unknownFields+ (\ x__ y__ -> x__ {_BatchOpenChannelRequest'_unknownFields = y__})+ defMessage+ = BatchOpenChannelRequest'_constructor+ {_BatchOpenChannelRequest'channels = Data.Vector.Generic.empty,+ _BatchOpenChannelRequest'targetConf = Data.ProtoLens.fieldDefault,+ _BatchOpenChannelRequest'satPerVbyte = Data.ProtoLens.fieldDefault,+ _BatchOpenChannelRequest'minConfs = Data.ProtoLens.fieldDefault,+ _BatchOpenChannelRequest'spendUnconfirmed = Data.ProtoLens.fieldDefault,+ _BatchOpenChannelRequest'label = Data.ProtoLens.fieldDefault,+ _BatchOpenChannelRequest'_unknownFields = []}+ parseMessage+ = let+ loop ::+ BatchOpenChannelRequest+ -> Data.ProtoLens.Encoding.Growing.Growing Data.Vector.Vector Data.ProtoLens.Encoding.Growing.RealWorld BatchOpenChannel+ -> Data.ProtoLens.Encoding.Bytes.Parser BatchOpenChannelRequest+ loop x mutable'channels+ = do end <- Data.ProtoLens.Encoding.Bytes.atEnd+ if end then+ do frozen'channels <- Data.ProtoLens.Encoding.Parser.Unsafe.unsafeLiftIO+ (Data.ProtoLens.Encoding.Growing.unsafeFreeze+ mutable'channels)+ (let missing = []+ in+ if Prelude.null missing then+ Prelude.return ()+ else+ Prelude.fail+ ((Prelude.++)+ "Missing required fields: "+ (Prelude.show (missing :: [Prelude.String]))))+ Prelude.return+ (Lens.Family2.over+ Data.ProtoLens.unknownFields (\ !t -> Prelude.reverse t)+ (Lens.Family2.set+ (Data.ProtoLens.Field.field @"vec'channels") frozen'channels x))+ else+ do tag <- Data.ProtoLens.Encoding.Bytes.getVarInt+ case tag of+ 10+ -> do !y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (do len <- Data.ProtoLens.Encoding.Bytes.getVarInt+ Data.ProtoLens.Encoding.Bytes.isolate+ (Prelude.fromIntegral len)+ Data.ProtoLens.parseMessage)+ "channels"+ v <- Data.ProtoLens.Encoding.Parser.Unsafe.unsafeLiftIO+ (Data.ProtoLens.Encoding.Growing.append mutable'channels y)+ loop x v+ 16+ -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (Prelude.fmap+ Prelude.fromIntegral+ Data.ProtoLens.Encoding.Bytes.getVarInt)+ "target_conf"+ loop+ (Lens.Family2.set (Data.ProtoLens.Field.field @"targetConf") y x)+ mutable'channels+ 24+ -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (Prelude.fmap+ Prelude.fromIntegral+ Data.ProtoLens.Encoding.Bytes.getVarInt)+ "sat_per_vbyte"+ loop+ (Lens.Family2.set (Data.ProtoLens.Field.field @"satPerVbyte") y x)+ mutable'channels+ 32+ -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (Prelude.fmap+ Prelude.fromIntegral+ Data.ProtoLens.Encoding.Bytes.getVarInt)+ "min_confs"+ loop+ (Lens.Family2.set (Data.ProtoLens.Field.field @"minConfs") y x)+ mutable'channels+ 40+ -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (Prelude.fmap+ ((Prelude./=) 0) Data.ProtoLens.Encoding.Bytes.getVarInt)+ "spend_unconfirmed"+ loop+ (Lens.Family2.set+ (Data.ProtoLens.Field.field @"spendUnconfirmed") y x)+ mutable'channels+ 50+ -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (do value <- do len <- Data.ProtoLens.Encoding.Bytes.getVarInt+ Data.ProtoLens.Encoding.Bytes.getBytes+ (Prelude.fromIntegral len)+ Data.ProtoLens.Encoding.Bytes.runEither+ (case Data.Text.Encoding.decodeUtf8' value of+ (Prelude.Left err)+ -> Prelude.Left (Prelude.show err)+ (Prelude.Right r) -> Prelude.Right r))+ "label"+ loop+ (Lens.Family2.set (Data.ProtoLens.Field.field @"label") y x)+ mutable'channels+ wire+ -> do !y <- Data.ProtoLens.Encoding.Wire.parseTaggedValueFromWire+ wire+ loop+ (Lens.Family2.over+ Data.ProtoLens.unknownFields (\ !t -> (:) y t) x)+ mutable'channels+ in+ (Data.ProtoLens.Encoding.Bytes.<?>)+ (do mutable'channels <- Data.ProtoLens.Encoding.Parser.Unsafe.unsafeLiftIO+ Data.ProtoLens.Encoding.Growing.new+ loop Data.ProtoLens.defMessage mutable'channels)+ "BatchOpenChannelRequest"+ buildMessage+ = \ _x+ -> (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.foldMapBuilder+ (\ _v+ -> (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 10)+ ((Prelude..)+ (\ bs+ -> (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt+ (Prelude.fromIntegral (Data.ByteString.length bs)))+ (Data.ProtoLens.Encoding.Bytes.putBytes bs))+ Data.ProtoLens.encodeMessage _v))+ (Lens.Family2.view+ (Data.ProtoLens.Field.field @"vec'channels") _x))+ ((Data.Monoid.<>)+ (let+ _v+ = Lens.Family2.view (Data.ProtoLens.Field.field @"targetConf") _x+ in+ if (Prelude.==) _v Data.ProtoLens.fieldDefault then+ Data.Monoid.mempty+ else+ (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 16)+ ((Prelude..)+ Data.ProtoLens.Encoding.Bytes.putVarInt Prelude.fromIntegral _v))+ ((Data.Monoid.<>)+ (let+ _v+ = Lens.Family2.view (Data.ProtoLens.Field.field @"satPerVbyte") _x+ in+ if (Prelude.==) _v Data.ProtoLens.fieldDefault then+ Data.Monoid.mempty+ else+ (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 24)+ ((Prelude..)+ Data.ProtoLens.Encoding.Bytes.putVarInt Prelude.fromIntegral _v))+ ((Data.Monoid.<>)+ (let+ _v = Lens.Family2.view (Data.ProtoLens.Field.field @"minConfs") _x+ in+ if (Prelude.==) _v Data.ProtoLens.fieldDefault then+ Data.Monoid.mempty+ else+ (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 32)+ ((Prelude..)+ Data.ProtoLens.Encoding.Bytes.putVarInt Prelude.fromIntegral _v))+ ((Data.Monoid.<>)+ (let+ _v+ = Lens.Family2.view+ (Data.ProtoLens.Field.field @"spendUnconfirmed") _x+ in+ if (Prelude.==) _v Data.ProtoLens.fieldDefault then+ Data.Monoid.mempty+ else+ (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 40)+ ((Prelude..)+ Data.ProtoLens.Encoding.Bytes.putVarInt+ (\ b -> if b then 1 else 0) _v))+ ((Data.Monoid.<>)+ (let+ _v = Lens.Family2.view (Data.ProtoLens.Field.field @"label") _x+ in+ if (Prelude.==) _v Data.ProtoLens.fieldDefault then+ Data.Monoid.mempty+ else+ (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 50)+ ((Prelude..)+ (\ bs+ -> (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt+ (Prelude.fromIntegral+ (Data.ByteString.length bs)))+ (Data.ProtoLens.Encoding.Bytes.putBytes bs))+ Data.Text.Encoding.encodeUtf8 _v))+ (Data.ProtoLens.Encoding.Wire.buildFieldSet+ (Lens.Family2.view Data.ProtoLens.unknownFields _x)))))))+instance Control.DeepSeq.NFData BatchOpenChannelRequest where+ rnf+ = \ x__+ -> Control.DeepSeq.deepseq+ (_BatchOpenChannelRequest'_unknownFields x__)+ (Control.DeepSeq.deepseq+ (_BatchOpenChannelRequest'channels x__)+ (Control.DeepSeq.deepseq+ (_BatchOpenChannelRequest'targetConf x__)+ (Control.DeepSeq.deepseq+ (_BatchOpenChannelRequest'satPerVbyte x__)+ (Control.DeepSeq.deepseq+ (_BatchOpenChannelRequest'minConfs x__)+ (Control.DeepSeq.deepseq+ (_BatchOpenChannelRequest'spendUnconfirmed x__)+ (Control.DeepSeq.deepseq+ (_BatchOpenChannelRequest'label x__) ()))))))+{- | Fields :+ + * 'Proto.Lightning_Fields.pendingChannels' @:: Lens' BatchOpenChannelResponse [Proto.Lnrpc.Ln0.PendingUpdate]@+ * 'Proto.Lightning_Fields.vec'pendingChannels' @:: Lens' BatchOpenChannelResponse (Data.Vector.Vector Proto.Lnrpc.Ln0.PendingUpdate)@ -}+data BatchOpenChannelResponse+ = BatchOpenChannelResponse'_constructor {_BatchOpenChannelResponse'pendingChannels :: !(Data.Vector.Vector Proto.Lnrpc.Ln0.PendingUpdate),+ _BatchOpenChannelResponse'_unknownFields :: !Data.ProtoLens.FieldSet}+ deriving stock (Prelude.Eq, Prelude.Ord, GHC.Generics.Generic)+instance Prelude.Show BatchOpenChannelResponse where+ showsPrec _ __x __s+ = Prelude.showChar+ '{'+ (Prelude.showString+ (Data.ProtoLens.showMessageShort __x) (Prelude.showChar '}' __s))+instance Text.PrettyPrint.GenericPretty.Out BatchOpenChannelResponse+instance Data.ProtoLens.Field.HasField BatchOpenChannelResponse "pendingChannels" [Proto.Lnrpc.Ln0.PendingUpdate] where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _BatchOpenChannelResponse'pendingChannels+ (\ x__ y__+ -> x__ {_BatchOpenChannelResponse'pendingChannels = y__}))+ (Lens.Family2.Unchecked.lens+ Data.Vector.Generic.toList+ (\ _ y__ -> Data.Vector.Generic.fromList y__))+instance Data.ProtoLens.Field.HasField BatchOpenChannelResponse "vec'pendingChannels" (Data.Vector.Vector Proto.Lnrpc.Ln0.PendingUpdate) where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _BatchOpenChannelResponse'pendingChannels+ (\ x__ y__+ -> x__ {_BatchOpenChannelResponse'pendingChannels = y__}))+ Prelude.id+instance Data.ProtoLens.Message BatchOpenChannelResponse where+ messageName _ = Data.Text.pack "lnrpc.BatchOpenChannelResponse"+ packedMessageDescriptor _+ = "\n\+ \\CANBatchOpenChannelResponse\DC2?\n\+ \\DLEpending_channels\CAN\SOH \ETX(\v2\DC4.lnrpc.PendingUpdateR\SIpendingChannels"+ packedFileDescriptor _ = packedFileDescriptor+ fieldsByTag+ = let+ pendingChannels__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "pending_channels"+ (Data.ProtoLens.MessageField Data.ProtoLens.MessageType ::+ Data.ProtoLens.FieldTypeDescriptor Proto.Lnrpc.Ln0.PendingUpdate)+ (Data.ProtoLens.RepeatedField+ Data.ProtoLens.Unpacked+ (Data.ProtoLens.Field.field @"pendingChannels")) ::+ Data.ProtoLens.FieldDescriptor BatchOpenChannelResponse+ in+ Data.Map.fromList+ [(Data.ProtoLens.Tag 1, pendingChannels__field_descriptor)]+ unknownFields+ = Lens.Family2.Unchecked.lens+ _BatchOpenChannelResponse'_unknownFields+ (\ x__ y__ -> x__ {_BatchOpenChannelResponse'_unknownFields = y__})+ defMessage+ = BatchOpenChannelResponse'_constructor+ {_BatchOpenChannelResponse'pendingChannels = Data.Vector.Generic.empty,+ _BatchOpenChannelResponse'_unknownFields = []}+ parseMessage+ = let+ loop ::+ BatchOpenChannelResponse+ -> Data.ProtoLens.Encoding.Growing.Growing Data.Vector.Vector Data.ProtoLens.Encoding.Growing.RealWorld Proto.Lnrpc.Ln0.PendingUpdate+ -> Data.ProtoLens.Encoding.Bytes.Parser BatchOpenChannelResponse+ loop x mutable'pendingChannels+ = do end <- Data.ProtoLens.Encoding.Bytes.atEnd+ if end then+ do frozen'pendingChannels <- Data.ProtoLens.Encoding.Parser.Unsafe.unsafeLiftIO+ (Data.ProtoLens.Encoding.Growing.unsafeFreeze+ mutable'pendingChannels)+ (let missing = []+ in+ if Prelude.null missing then+ Prelude.return ()+ else+ Prelude.fail+ ((Prelude.++)+ "Missing required fields: "+ (Prelude.show (missing :: [Prelude.String]))))+ Prelude.return+ (Lens.Family2.over+ Data.ProtoLens.unknownFields (\ !t -> Prelude.reverse t)+ (Lens.Family2.set+ (Data.ProtoLens.Field.field @"vec'pendingChannels")+ frozen'pendingChannels x))+ else+ do tag <- Data.ProtoLens.Encoding.Bytes.getVarInt+ case tag of+ 10+ -> do !y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (do len <- Data.ProtoLens.Encoding.Bytes.getVarInt+ Data.ProtoLens.Encoding.Bytes.isolate+ (Prelude.fromIntegral len)+ Data.ProtoLens.parseMessage)+ "pending_channels"+ v <- Data.ProtoLens.Encoding.Parser.Unsafe.unsafeLiftIO+ (Data.ProtoLens.Encoding.Growing.append+ mutable'pendingChannels y)+ loop x v+ wire+ -> do !y <- Data.ProtoLens.Encoding.Wire.parseTaggedValueFromWire+ wire+ loop+ (Lens.Family2.over+ Data.ProtoLens.unknownFields (\ !t -> (:) y t) x)+ mutable'pendingChannels+ in+ (Data.ProtoLens.Encoding.Bytes.<?>)+ (do mutable'pendingChannels <- Data.ProtoLens.Encoding.Parser.Unsafe.unsafeLiftIO+ Data.ProtoLens.Encoding.Growing.new+ loop Data.ProtoLens.defMessage mutable'pendingChannels)+ "BatchOpenChannelResponse"+ buildMessage+ = \ _x+ -> (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.foldMapBuilder+ (\ _v+ -> (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 10)+ ((Prelude..)+ (\ bs+ -> (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt+ (Prelude.fromIntegral (Data.ByteString.length bs)))+ (Data.ProtoLens.Encoding.Bytes.putBytes bs))+ Data.ProtoLens.encodeMessage _v))+ (Lens.Family2.view+ (Data.ProtoLens.Field.field @"vec'pendingChannels") _x))+ (Data.ProtoLens.Encoding.Wire.buildFieldSet+ (Lens.Family2.view Data.ProtoLens.unknownFields _x))+instance Control.DeepSeq.NFData BatchOpenChannelResponse where+ rnf+ = \ x__+ -> Control.DeepSeq.deepseq+ (_BatchOpenChannelResponse'_unknownFields x__)+ (Control.DeepSeq.deepseq+ (_BatchOpenChannelResponse'pendingChannels x__) ())+{- | Fields :+ + * 'Proto.Lightning_Fields.chain' @:: Lens' Chain Data.Text.Text@+ * 'Proto.Lightning_Fields.network' @:: Lens' Chain Data.Text.Text@ -}+data Chain+ = Chain'_constructor {_Chain'chain :: !Data.Text.Text,+ _Chain'network :: !Data.Text.Text,+ _Chain'_unknownFields :: !Data.ProtoLens.FieldSet}+ deriving stock (Prelude.Eq, Prelude.Ord, GHC.Generics.Generic)+instance Prelude.Show Chain where+ showsPrec _ __x __s+ = Prelude.showChar+ '{'+ (Prelude.showString+ (Data.ProtoLens.showMessageShort __x) (Prelude.showChar '}' __s))+instance Text.PrettyPrint.GenericPretty.Out Chain+instance Data.ProtoLens.Field.HasField Chain "chain" Data.Text.Text where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _Chain'chain (\ x__ y__ -> x__ {_Chain'chain = y__}))+ Prelude.id+instance Data.ProtoLens.Field.HasField Chain "network" Data.Text.Text where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _Chain'network (\ x__ y__ -> x__ {_Chain'network = y__}))+ Prelude.id+instance Data.ProtoLens.Message Chain where+ messageName _ = Data.Text.pack "lnrpc.Chain"+ packedMessageDescriptor _+ = "\n\+ \\ENQChain\DC2\DC4\n\+ \\ENQchain\CAN\SOH \SOH(\tR\ENQchain\DC2\CAN\n\+ \\anetwork\CAN\STX \SOH(\tR\anetwork"+ packedFileDescriptor _ = packedFileDescriptor+ fieldsByTag+ = let+ chain__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "chain"+ (Data.ProtoLens.ScalarField Data.ProtoLens.StringField ::+ Data.ProtoLens.FieldTypeDescriptor Data.Text.Text)+ (Data.ProtoLens.PlainField+ Data.ProtoLens.Optional (Data.ProtoLens.Field.field @"chain")) ::+ Data.ProtoLens.FieldDescriptor Chain+ network__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "network"+ (Data.ProtoLens.ScalarField Data.ProtoLens.StringField ::+ Data.ProtoLens.FieldTypeDescriptor Data.Text.Text)+ (Data.ProtoLens.PlainField+ Data.ProtoLens.Optional (Data.ProtoLens.Field.field @"network")) ::+ Data.ProtoLens.FieldDescriptor Chain+ in+ Data.Map.fromList+ [(Data.ProtoLens.Tag 1, chain__field_descriptor),+ (Data.ProtoLens.Tag 2, network__field_descriptor)]+ unknownFields+ = Lens.Family2.Unchecked.lens+ _Chain'_unknownFields+ (\ x__ y__ -> x__ {_Chain'_unknownFields = y__})+ defMessage+ = Chain'_constructor+ {_Chain'chain = Data.ProtoLens.fieldDefault,+ _Chain'network = Data.ProtoLens.fieldDefault,+ _Chain'_unknownFields = []}+ parseMessage+ = let+ loop :: Chain -> Data.ProtoLens.Encoding.Bytes.Parser Chain+ loop x+ = do end <- Data.ProtoLens.Encoding.Bytes.atEnd+ if end then+ do (let missing = []+ in+ if Prelude.null missing then+ Prelude.return ()+ else+ Prelude.fail+ ((Prelude.++)+ "Missing required fields: "+ (Prelude.show (missing :: [Prelude.String]))))+ Prelude.return+ (Lens.Family2.over+ Data.ProtoLens.unknownFields (\ !t -> Prelude.reverse t) x)+ else+ do tag <- Data.ProtoLens.Encoding.Bytes.getVarInt+ case tag of+ 10+ -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (do value <- do len <- Data.ProtoLens.Encoding.Bytes.getVarInt+ Data.ProtoLens.Encoding.Bytes.getBytes+ (Prelude.fromIntegral len)+ Data.ProtoLens.Encoding.Bytes.runEither+ (case Data.Text.Encoding.decodeUtf8' value of+ (Prelude.Left err)+ -> Prelude.Left (Prelude.show err)+ (Prelude.Right r) -> Prelude.Right r))+ "chain"+ loop (Lens.Family2.set (Data.ProtoLens.Field.field @"chain") y x)+ 18+ -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (do value <- do len <- Data.ProtoLens.Encoding.Bytes.getVarInt+ Data.ProtoLens.Encoding.Bytes.getBytes+ (Prelude.fromIntegral len)+ Data.ProtoLens.Encoding.Bytes.runEither+ (case Data.Text.Encoding.decodeUtf8' value of+ (Prelude.Left err)+ -> Prelude.Left (Prelude.show err)+ (Prelude.Right r) -> Prelude.Right r))+ "network"+ loop (Lens.Family2.set (Data.ProtoLens.Field.field @"network") y x)+ wire+ -> do !y <- Data.ProtoLens.Encoding.Wire.parseTaggedValueFromWire+ wire+ loop+ (Lens.Family2.over+ Data.ProtoLens.unknownFields (\ !t -> (:) y t) x)+ in+ (Data.ProtoLens.Encoding.Bytes.<?>)+ (do loop Data.ProtoLens.defMessage) "Chain"+ buildMessage+ = \ _x+ -> (Data.Monoid.<>)+ (let+ _v = Lens.Family2.view (Data.ProtoLens.Field.field @"chain") _x+ in+ if (Prelude.==) _v Data.ProtoLens.fieldDefault then+ Data.Monoid.mempty+ else+ (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 10)+ ((Prelude..)+ (\ bs+ -> (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt+ (Prelude.fromIntegral (Data.ByteString.length bs)))+ (Data.ProtoLens.Encoding.Bytes.putBytes bs))+ Data.Text.Encoding.encodeUtf8 _v))+ ((Data.Monoid.<>)+ (let+ _v = Lens.Family2.view (Data.ProtoLens.Field.field @"network") _x+ in+ if (Prelude.==) _v Data.ProtoLens.fieldDefault then+ Data.Monoid.mempty+ else+ (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 18)+ ((Prelude..)+ (\ bs+ -> (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt+ (Prelude.fromIntegral (Data.ByteString.length bs)))+ (Data.ProtoLens.Encoding.Bytes.putBytes bs))+ Data.Text.Encoding.encodeUtf8 _v))+ (Data.ProtoLens.Encoding.Wire.buildFieldSet+ (Lens.Family2.view Data.ProtoLens.unknownFields _x)))+instance Control.DeepSeq.NFData Chain where+ rnf+ = \ x__+ -> Control.DeepSeq.deepseq+ (_Chain'_unknownFields x__)+ (Control.DeepSeq.deepseq+ (_Chain'chain x__)+ (Control.DeepSeq.deepseq (_Chain'network x__) ()))+{- | Fields :+ + * 'Proto.Lightning_Fields.nodePubkey' @:: Lens' ChannelAcceptRequest Data.ByteString.ByteString@+ * 'Proto.Lightning_Fields.chainHash' @:: Lens' ChannelAcceptRequest Data.ByteString.ByteString@+ * 'Proto.Lightning_Fields.pendingChanId' @:: Lens' ChannelAcceptRequest Data.ByteString.ByteString@+ * 'Proto.Lightning_Fields.fundingAmt' @:: Lens' ChannelAcceptRequest Data.Word.Word64@+ * 'Proto.Lightning_Fields.pushAmt' @:: Lens' ChannelAcceptRequest Data.Word.Word64@+ * 'Proto.Lightning_Fields.dustLimit' @:: Lens' ChannelAcceptRequest Data.Word.Word64@+ * 'Proto.Lightning_Fields.maxValueInFlight' @:: Lens' ChannelAcceptRequest Data.Word.Word64@+ * 'Proto.Lightning_Fields.channelReserve' @:: Lens' ChannelAcceptRequest Data.Word.Word64@+ * 'Proto.Lightning_Fields.minHtlc' @:: Lens' ChannelAcceptRequest Data.Word.Word64@+ * 'Proto.Lightning_Fields.feePerKw' @:: Lens' ChannelAcceptRequest Data.Word.Word64@+ * 'Proto.Lightning_Fields.csvDelay' @:: Lens' ChannelAcceptRequest Data.Word.Word32@+ * 'Proto.Lightning_Fields.maxAcceptedHtlcs' @:: Lens' ChannelAcceptRequest Data.Word.Word32@+ * 'Proto.Lightning_Fields.channelFlags' @:: Lens' ChannelAcceptRequest Data.Word.Word32@+ * 'Proto.Lightning_Fields.commitmentType' @:: Lens' ChannelAcceptRequest Proto.Lnrpc.Ln0.CommitmentType@ -}+data ChannelAcceptRequest+ = ChannelAcceptRequest'_constructor {_ChannelAcceptRequest'nodePubkey :: !Data.ByteString.ByteString,+ _ChannelAcceptRequest'chainHash :: !Data.ByteString.ByteString,+ _ChannelAcceptRequest'pendingChanId :: !Data.ByteString.ByteString,+ _ChannelAcceptRequest'fundingAmt :: !Data.Word.Word64,+ _ChannelAcceptRequest'pushAmt :: !Data.Word.Word64,+ _ChannelAcceptRequest'dustLimit :: !Data.Word.Word64,+ _ChannelAcceptRequest'maxValueInFlight :: !Data.Word.Word64,+ _ChannelAcceptRequest'channelReserve :: !Data.Word.Word64,+ _ChannelAcceptRequest'minHtlc :: !Data.Word.Word64,+ _ChannelAcceptRequest'feePerKw :: !Data.Word.Word64,+ _ChannelAcceptRequest'csvDelay :: !Data.Word.Word32,+ _ChannelAcceptRequest'maxAcceptedHtlcs :: !Data.Word.Word32,+ _ChannelAcceptRequest'channelFlags :: !Data.Word.Word32,+ _ChannelAcceptRequest'commitmentType :: !Proto.Lnrpc.Ln0.CommitmentType,+ _ChannelAcceptRequest'_unknownFields :: !Data.ProtoLens.FieldSet}+ deriving stock (Prelude.Eq, Prelude.Ord, GHC.Generics.Generic)+instance Prelude.Show ChannelAcceptRequest where+ showsPrec _ __x __s+ = Prelude.showChar+ '{'+ (Prelude.showString+ (Data.ProtoLens.showMessageShort __x) (Prelude.showChar '}' __s))+instance Text.PrettyPrint.GenericPretty.Out ChannelAcceptRequest+instance Data.ProtoLens.Field.HasField ChannelAcceptRequest "nodePubkey" Data.ByteString.ByteString where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _ChannelAcceptRequest'nodePubkey+ (\ x__ y__ -> x__ {_ChannelAcceptRequest'nodePubkey = y__}))+ Prelude.id+instance Data.ProtoLens.Field.HasField ChannelAcceptRequest "chainHash" Data.ByteString.ByteString where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _ChannelAcceptRequest'chainHash+ (\ x__ y__ -> x__ {_ChannelAcceptRequest'chainHash = y__}))+ Prelude.id+instance Data.ProtoLens.Field.HasField ChannelAcceptRequest "pendingChanId" Data.ByteString.ByteString where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _ChannelAcceptRequest'pendingChanId+ (\ x__ y__ -> x__ {_ChannelAcceptRequest'pendingChanId = y__}))+ Prelude.id+instance Data.ProtoLens.Field.HasField ChannelAcceptRequest "fundingAmt" Data.Word.Word64 where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _ChannelAcceptRequest'fundingAmt+ (\ x__ y__ -> x__ {_ChannelAcceptRequest'fundingAmt = y__}))+ Prelude.id+instance Data.ProtoLens.Field.HasField ChannelAcceptRequest "pushAmt" Data.Word.Word64 where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _ChannelAcceptRequest'pushAmt+ (\ x__ y__ -> x__ {_ChannelAcceptRequest'pushAmt = y__}))+ Prelude.id+instance Data.ProtoLens.Field.HasField ChannelAcceptRequest "dustLimit" Data.Word.Word64 where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _ChannelAcceptRequest'dustLimit+ (\ x__ y__ -> x__ {_ChannelAcceptRequest'dustLimit = y__}))+ Prelude.id+instance Data.ProtoLens.Field.HasField ChannelAcceptRequest "maxValueInFlight" Data.Word.Word64 where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _ChannelAcceptRequest'maxValueInFlight+ (\ x__ y__ -> x__ {_ChannelAcceptRequest'maxValueInFlight = y__}))+ Prelude.id+instance Data.ProtoLens.Field.HasField ChannelAcceptRequest "channelReserve" Data.Word.Word64 where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _ChannelAcceptRequest'channelReserve+ (\ x__ y__ -> x__ {_ChannelAcceptRequest'channelReserve = y__}))+ Prelude.id+instance Data.ProtoLens.Field.HasField ChannelAcceptRequest "minHtlc" Data.Word.Word64 where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _ChannelAcceptRequest'minHtlc+ (\ x__ y__ -> x__ {_ChannelAcceptRequest'minHtlc = y__}))+ Prelude.id+instance Data.ProtoLens.Field.HasField ChannelAcceptRequest "feePerKw" Data.Word.Word64 where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _ChannelAcceptRequest'feePerKw+ (\ x__ y__ -> x__ {_ChannelAcceptRequest'feePerKw = y__}))+ Prelude.id+instance Data.ProtoLens.Field.HasField ChannelAcceptRequest "csvDelay" Data.Word.Word32 where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _ChannelAcceptRequest'csvDelay+ (\ x__ y__ -> x__ {_ChannelAcceptRequest'csvDelay = y__}))+ Prelude.id+instance Data.ProtoLens.Field.HasField ChannelAcceptRequest "maxAcceptedHtlcs" Data.Word.Word32 where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _ChannelAcceptRequest'maxAcceptedHtlcs+ (\ x__ y__ -> x__ {_ChannelAcceptRequest'maxAcceptedHtlcs = y__}))+ Prelude.id+instance Data.ProtoLens.Field.HasField ChannelAcceptRequest "channelFlags" Data.Word.Word32 where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _ChannelAcceptRequest'channelFlags+ (\ x__ y__ -> x__ {_ChannelAcceptRequest'channelFlags = y__}))+ Prelude.id+instance Data.ProtoLens.Field.HasField ChannelAcceptRequest "commitmentType" Proto.Lnrpc.Ln0.CommitmentType where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _ChannelAcceptRequest'commitmentType+ (\ x__ y__ -> x__ {_ChannelAcceptRequest'commitmentType = y__}))+ Prelude.id+instance Data.ProtoLens.Message ChannelAcceptRequest where+ messageName _ = Data.Text.pack "lnrpc.ChannelAcceptRequest"+ packedMessageDescriptor _+ = "\n\+ \\DC4ChannelAcceptRequest\DC2\US\n\+ \\vnode_pubkey\CAN\SOH \SOH(\fR\n\+ \nodePubkey\DC2\GS\n\+ \\n\+ \chain_hash\CAN\STX \SOH(\fR\tchainHash\DC2&\n\+ \\SIpending_chan_id\CAN\ETX \SOH(\fR\rpendingChanId\DC2\US\n\+ \\vfunding_amt\CAN\EOT \SOH(\EOTR\n\+ \fundingAmt\DC2\EM\n\+ \\bpush_amt\CAN\ENQ \SOH(\EOTR\apushAmt\DC2\GS\n\+ \\n\+ \dust_limit\CAN\ACK \SOH(\EOTR\tdustLimit\DC2-\n\+ \\DC3max_value_in_flight\CAN\a \SOH(\EOTR\DLEmaxValueInFlight\DC2'\n\+ \\SIchannel_reserve\CAN\b \SOH(\EOTR\SOchannelReserve\DC2\EM\n\+ \\bmin_htlc\CAN\t \SOH(\EOTR\aminHtlc\DC2\FS\n\+ \\n\+ \fee_per_kw\CAN\n\+ \ \SOH(\EOTR\bfeePerKw\DC2\ESC\n\+ \\tcsv_delay\CAN\v \SOH(\rR\bcsvDelay\DC2,\n\+ \\DC2max_accepted_htlcs\CAN\f \SOH(\rR\DLEmaxAcceptedHtlcs\DC2#\n\+ \\rchannel_flags\CAN\r \SOH(\rR\fchannelFlags\DC2>\n\+ \\SIcommitment_type\CAN\SO \SOH(\SO2\NAK.lnrpc.CommitmentTypeR\SOcommitmentType"+ packedFileDescriptor _ = packedFileDescriptor+ fieldsByTag+ = let+ nodePubkey__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "node_pubkey"+ (Data.ProtoLens.ScalarField Data.ProtoLens.BytesField ::+ Data.ProtoLens.FieldTypeDescriptor Data.ByteString.ByteString)+ (Data.ProtoLens.PlainField+ Data.ProtoLens.Optional+ (Data.ProtoLens.Field.field @"nodePubkey")) ::+ Data.ProtoLens.FieldDescriptor ChannelAcceptRequest+ chainHash__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "chain_hash"+ (Data.ProtoLens.ScalarField Data.ProtoLens.BytesField ::+ Data.ProtoLens.FieldTypeDescriptor Data.ByteString.ByteString)+ (Data.ProtoLens.PlainField+ Data.ProtoLens.Optional+ (Data.ProtoLens.Field.field @"chainHash")) ::+ Data.ProtoLens.FieldDescriptor ChannelAcceptRequest+ pendingChanId__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "pending_chan_id"+ (Data.ProtoLens.ScalarField Data.ProtoLens.BytesField ::+ Data.ProtoLens.FieldTypeDescriptor Data.ByteString.ByteString)+ (Data.ProtoLens.PlainField+ Data.ProtoLens.Optional+ (Data.ProtoLens.Field.field @"pendingChanId")) ::+ Data.ProtoLens.FieldDescriptor ChannelAcceptRequest+ fundingAmt__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "funding_amt"+ (Data.ProtoLens.ScalarField Data.ProtoLens.UInt64Field ::+ Data.ProtoLens.FieldTypeDescriptor Data.Word.Word64)+ (Data.ProtoLens.PlainField+ Data.ProtoLens.Optional+ (Data.ProtoLens.Field.field @"fundingAmt")) ::+ Data.ProtoLens.FieldDescriptor ChannelAcceptRequest+ pushAmt__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "push_amt"+ (Data.ProtoLens.ScalarField Data.ProtoLens.UInt64Field ::+ Data.ProtoLens.FieldTypeDescriptor Data.Word.Word64)+ (Data.ProtoLens.PlainField+ Data.ProtoLens.Optional (Data.ProtoLens.Field.field @"pushAmt")) ::+ Data.ProtoLens.FieldDescriptor ChannelAcceptRequest+ dustLimit__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "dust_limit"+ (Data.ProtoLens.ScalarField Data.ProtoLens.UInt64Field ::+ Data.ProtoLens.FieldTypeDescriptor Data.Word.Word64)+ (Data.ProtoLens.PlainField+ Data.ProtoLens.Optional+ (Data.ProtoLens.Field.field @"dustLimit")) ::+ Data.ProtoLens.FieldDescriptor ChannelAcceptRequest+ maxValueInFlight__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "max_value_in_flight"+ (Data.ProtoLens.ScalarField Data.ProtoLens.UInt64Field ::+ Data.ProtoLens.FieldTypeDescriptor Data.Word.Word64)+ (Data.ProtoLens.PlainField+ Data.ProtoLens.Optional+ (Data.ProtoLens.Field.field @"maxValueInFlight")) ::+ Data.ProtoLens.FieldDescriptor ChannelAcceptRequest+ channelReserve__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "channel_reserve"+ (Data.ProtoLens.ScalarField Data.ProtoLens.UInt64Field ::+ Data.ProtoLens.FieldTypeDescriptor Data.Word.Word64)+ (Data.ProtoLens.PlainField+ Data.ProtoLens.Optional+ (Data.ProtoLens.Field.field @"channelReserve")) ::+ Data.ProtoLens.FieldDescriptor ChannelAcceptRequest+ minHtlc__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "min_htlc"+ (Data.ProtoLens.ScalarField Data.ProtoLens.UInt64Field ::+ Data.ProtoLens.FieldTypeDescriptor Data.Word.Word64)+ (Data.ProtoLens.PlainField+ Data.ProtoLens.Optional (Data.ProtoLens.Field.field @"minHtlc")) ::+ Data.ProtoLens.FieldDescriptor ChannelAcceptRequest+ feePerKw__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "fee_per_kw"+ (Data.ProtoLens.ScalarField Data.ProtoLens.UInt64Field ::+ Data.ProtoLens.FieldTypeDescriptor Data.Word.Word64)+ (Data.ProtoLens.PlainField+ Data.ProtoLens.Optional+ (Data.ProtoLens.Field.field @"feePerKw")) ::+ Data.ProtoLens.FieldDescriptor ChannelAcceptRequest+ csvDelay__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "csv_delay"+ (Data.ProtoLens.ScalarField Data.ProtoLens.UInt32Field ::+ Data.ProtoLens.FieldTypeDescriptor Data.Word.Word32)+ (Data.ProtoLens.PlainField+ Data.ProtoLens.Optional+ (Data.ProtoLens.Field.field @"csvDelay")) ::+ Data.ProtoLens.FieldDescriptor ChannelAcceptRequest+ maxAcceptedHtlcs__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "max_accepted_htlcs"+ (Data.ProtoLens.ScalarField Data.ProtoLens.UInt32Field ::+ Data.ProtoLens.FieldTypeDescriptor Data.Word.Word32)+ (Data.ProtoLens.PlainField+ Data.ProtoLens.Optional+ (Data.ProtoLens.Field.field @"maxAcceptedHtlcs")) ::+ Data.ProtoLens.FieldDescriptor ChannelAcceptRequest+ channelFlags__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "channel_flags"+ (Data.ProtoLens.ScalarField Data.ProtoLens.UInt32Field ::+ Data.ProtoLens.FieldTypeDescriptor Data.Word.Word32)+ (Data.ProtoLens.PlainField+ Data.ProtoLens.Optional+ (Data.ProtoLens.Field.field @"channelFlags")) ::+ Data.ProtoLens.FieldDescriptor ChannelAcceptRequest+ commitmentType__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "commitment_type"+ (Data.ProtoLens.ScalarField Data.ProtoLens.EnumField ::+ Data.ProtoLens.FieldTypeDescriptor Proto.Lnrpc.Ln0.CommitmentType)+ (Data.ProtoLens.PlainField+ Data.ProtoLens.Optional+ (Data.ProtoLens.Field.field @"commitmentType")) ::+ Data.ProtoLens.FieldDescriptor ChannelAcceptRequest+ in+ Data.Map.fromList+ [(Data.ProtoLens.Tag 1, nodePubkey__field_descriptor),+ (Data.ProtoLens.Tag 2, chainHash__field_descriptor),+ (Data.ProtoLens.Tag 3, pendingChanId__field_descriptor),+ (Data.ProtoLens.Tag 4, fundingAmt__field_descriptor),+ (Data.ProtoLens.Tag 5, pushAmt__field_descriptor),+ (Data.ProtoLens.Tag 6, dustLimit__field_descriptor),+ (Data.ProtoLens.Tag 7, maxValueInFlight__field_descriptor),+ (Data.ProtoLens.Tag 8, channelReserve__field_descriptor),+ (Data.ProtoLens.Tag 9, minHtlc__field_descriptor),+ (Data.ProtoLens.Tag 10, feePerKw__field_descriptor),+ (Data.ProtoLens.Tag 11, csvDelay__field_descriptor),+ (Data.ProtoLens.Tag 12, maxAcceptedHtlcs__field_descriptor),+ (Data.ProtoLens.Tag 13, channelFlags__field_descriptor),+ (Data.ProtoLens.Tag 14, commitmentType__field_descriptor)]+ unknownFields+ = Lens.Family2.Unchecked.lens+ _ChannelAcceptRequest'_unknownFields+ (\ x__ y__ -> x__ {_ChannelAcceptRequest'_unknownFields = y__})+ defMessage+ = ChannelAcceptRequest'_constructor+ {_ChannelAcceptRequest'nodePubkey = Data.ProtoLens.fieldDefault,+ _ChannelAcceptRequest'chainHash = Data.ProtoLens.fieldDefault,+ _ChannelAcceptRequest'pendingChanId = Data.ProtoLens.fieldDefault,+ _ChannelAcceptRequest'fundingAmt = Data.ProtoLens.fieldDefault,+ _ChannelAcceptRequest'pushAmt = Data.ProtoLens.fieldDefault,+ _ChannelAcceptRequest'dustLimit = Data.ProtoLens.fieldDefault,+ _ChannelAcceptRequest'maxValueInFlight = Data.ProtoLens.fieldDefault,+ _ChannelAcceptRequest'channelReserve = Data.ProtoLens.fieldDefault,+ _ChannelAcceptRequest'minHtlc = Data.ProtoLens.fieldDefault,+ _ChannelAcceptRequest'feePerKw = Data.ProtoLens.fieldDefault,+ _ChannelAcceptRequest'csvDelay = Data.ProtoLens.fieldDefault,+ _ChannelAcceptRequest'maxAcceptedHtlcs = Data.ProtoLens.fieldDefault,+ _ChannelAcceptRequest'channelFlags = Data.ProtoLens.fieldDefault,+ _ChannelAcceptRequest'commitmentType = Data.ProtoLens.fieldDefault,+ _ChannelAcceptRequest'_unknownFields = []}+ parseMessage+ = let+ loop ::+ ChannelAcceptRequest+ -> Data.ProtoLens.Encoding.Bytes.Parser ChannelAcceptRequest+ loop x+ = do end <- Data.ProtoLens.Encoding.Bytes.atEnd+ if end then+ do (let missing = []+ in+ if Prelude.null missing then+ Prelude.return ()+ else+ Prelude.fail+ ((Prelude.++)+ "Missing required fields: "+ (Prelude.show (missing :: [Prelude.String]))))+ Prelude.return+ (Lens.Family2.over+ Data.ProtoLens.unknownFields (\ !t -> Prelude.reverse t) x)+ else+ do tag <- Data.ProtoLens.Encoding.Bytes.getVarInt+ case tag of+ 10+ -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (do len <- Data.ProtoLens.Encoding.Bytes.getVarInt+ Data.ProtoLens.Encoding.Bytes.getBytes+ (Prelude.fromIntegral len))+ "node_pubkey"+ loop+ (Lens.Family2.set (Data.ProtoLens.Field.field @"nodePubkey") y x)+ 18+ -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (do len <- Data.ProtoLens.Encoding.Bytes.getVarInt+ Data.ProtoLens.Encoding.Bytes.getBytes+ (Prelude.fromIntegral len))+ "chain_hash"+ loop+ (Lens.Family2.set (Data.ProtoLens.Field.field @"chainHash") y x)+ 26+ -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (do len <- Data.ProtoLens.Encoding.Bytes.getVarInt+ Data.ProtoLens.Encoding.Bytes.getBytes+ (Prelude.fromIntegral len))+ "pending_chan_id"+ loop+ (Lens.Family2.set+ (Data.ProtoLens.Field.field @"pendingChanId") y x)+ 32+ -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ Data.ProtoLens.Encoding.Bytes.getVarInt "funding_amt"+ loop+ (Lens.Family2.set (Data.ProtoLens.Field.field @"fundingAmt") y x)+ 40+ -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ Data.ProtoLens.Encoding.Bytes.getVarInt "push_amt"+ loop (Lens.Family2.set (Data.ProtoLens.Field.field @"pushAmt") y x)+ 48+ -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ Data.ProtoLens.Encoding.Bytes.getVarInt "dust_limit"+ loop+ (Lens.Family2.set (Data.ProtoLens.Field.field @"dustLimit") y x)+ 56+ -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ Data.ProtoLens.Encoding.Bytes.getVarInt "max_value_in_flight"+ loop+ (Lens.Family2.set+ (Data.ProtoLens.Field.field @"maxValueInFlight") y x)+ 64+ -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ Data.ProtoLens.Encoding.Bytes.getVarInt "channel_reserve"+ loop+ (Lens.Family2.set+ (Data.ProtoLens.Field.field @"channelReserve") y x)+ 72+ -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ Data.ProtoLens.Encoding.Bytes.getVarInt "min_htlc"+ loop (Lens.Family2.set (Data.ProtoLens.Field.field @"minHtlc") y x)+ 80+ -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ Data.ProtoLens.Encoding.Bytes.getVarInt "fee_per_kw"+ loop+ (Lens.Family2.set (Data.ProtoLens.Field.field @"feePerKw") y x)+ 88+ -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (Prelude.fmap+ Prelude.fromIntegral+ Data.ProtoLens.Encoding.Bytes.getVarInt)+ "csv_delay"+ loop+ (Lens.Family2.set (Data.ProtoLens.Field.field @"csvDelay") y x)+ 96+ -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (Prelude.fmap+ Prelude.fromIntegral+ Data.ProtoLens.Encoding.Bytes.getVarInt)+ "max_accepted_htlcs"+ loop+ (Lens.Family2.set+ (Data.ProtoLens.Field.field @"maxAcceptedHtlcs") y x)+ 104+ -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (Prelude.fmap+ Prelude.fromIntegral+ Data.ProtoLens.Encoding.Bytes.getVarInt)+ "channel_flags"+ loop+ (Lens.Family2.set+ (Data.ProtoLens.Field.field @"channelFlags") y x)+ 112+ -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (Prelude.fmap+ Prelude.toEnum+ (Prelude.fmap+ Prelude.fromIntegral+ Data.ProtoLens.Encoding.Bytes.getVarInt))+ "commitment_type"+ loop+ (Lens.Family2.set+ (Data.ProtoLens.Field.field @"commitmentType") y x)+ wire+ -> do !y <- Data.ProtoLens.Encoding.Wire.parseTaggedValueFromWire+ wire+ loop+ (Lens.Family2.over+ Data.ProtoLens.unknownFields (\ !t -> (:) y t) x)+ in+ (Data.ProtoLens.Encoding.Bytes.<?>)+ (do loop Data.ProtoLens.defMessage) "ChannelAcceptRequest"+ buildMessage+ = \ _x+ -> (Data.Monoid.<>)+ (let+ _v+ = Lens.Family2.view (Data.ProtoLens.Field.field @"nodePubkey") _x+ in+ if (Prelude.==) _v Data.ProtoLens.fieldDefault then+ Data.Monoid.mempty+ else+ (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 10)+ ((\ bs+ -> (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt+ (Prelude.fromIntegral (Data.ByteString.length bs)))+ (Data.ProtoLens.Encoding.Bytes.putBytes bs))+ _v))+ ((Data.Monoid.<>)+ (let+ _v = Lens.Family2.view (Data.ProtoLens.Field.field @"chainHash") _x+ in+ if (Prelude.==) _v Data.ProtoLens.fieldDefault then+ Data.Monoid.mempty+ else+ (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 18)+ ((\ bs+ -> (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt+ (Prelude.fromIntegral (Data.ByteString.length bs)))+ (Data.ProtoLens.Encoding.Bytes.putBytes bs))+ _v))+ ((Data.Monoid.<>)+ (let+ _v+ = Lens.Family2.view+ (Data.ProtoLens.Field.field @"pendingChanId") _x+ in+ if (Prelude.==) _v Data.ProtoLens.fieldDefault then+ Data.Monoid.mempty+ else+ (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 26)+ ((\ bs+ -> (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt+ (Prelude.fromIntegral (Data.ByteString.length bs)))+ (Data.ProtoLens.Encoding.Bytes.putBytes bs))+ _v))+ ((Data.Monoid.<>)+ (let+ _v+ = Lens.Family2.view (Data.ProtoLens.Field.field @"fundingAmt") _x+ in+ if (Prelude.==) _v Data.ProtoLens.fieldDefault then+ Data.Monoid.mempty+ else+ (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 32)+ (Data.ProtoLens.Encoding.Bytes.putVarInt _v))+ ((Data.Monoid.<>)+ (let+ _v = Lens.Family2.view (Data.ProtoLens.Field.field @"pushAmt") _x+ in+ if (Prelude.==) _v Data.ProtoLens.fieldDefault then+ Data.Monoid.mempty+ else+ (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 40)+ (Data.ProtoLens.Encoding.Bytes.putVarInt _v))+ ((Data.Monoid.<>)+ (let+ _v = Lens.Family2.view (Data.ProtoLens.Field.field @"dustLimit") _x+ in+ if (Prelude.==) _v Data.ProtoLens.fieldDefault then+ Data.Monoid.mempty+ else+ (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 48)+ (Data.ProtoLens.Encoding.Bytes.putVarInt _v))+ ((Data.Monoid.<>)+ (let+ _v+ = Lens.Family2.view+ (Data.ProtoLens.Field.field @"maxValueInFlight") _x+ in+ if (Prelude.==) _v Data.ProtoLens.fieldDefault then+ Data.Monoid.mempty+ else+ (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 56)+ (Data.ProtoLens.Encoding.Bytes.putVarInt _v))+ ((Data.Monoid.<>)+ (let+ _v+ = Lens.Family2.view+ (Data.ProtoLens.Field.field @"channelReserve") _x+ in+ if (Prelude.==) _v Data.ProtoLens.fieldDefault then+ Data.Monoid.mempty+ else+ (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 64)+ (Data.ProtoLens.Encoding.Bytes.putVarInt _v))+ ((Data.Monoid.<>)+ (let+ _v+ = Lens.Family2.view+ (Data.ProtoLens.Field.field @"minHtlc") _x+ in+ if (Prelude.==) _v Data.ProtoLens.fieldDefault then+ Data.Monoid.mempty+ else+ (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 72)+ (Data.ProtoLens.Encoding.Bytes.putVarInt _v))+ ((Data.Monoid.<>)+ (let+ _v+ = Lens.Family2.view+ (Data.ProtoLens.Field.field @"feePerKw") _x+ in+ if (Prelude.==) _v Data.ProtoLens.fieldDefault then+ Data.Monoid.mempty+ else+ (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 80)+ (Data.ProtoLens.Encoding.Bytes.putVarInt _v))+ ((Data.Monoid.<>)+ (let+ _v+ = Lens.Family2.view+ (Data.ProtoLens.Field.field @"csvDelay") _x+ in+ if (Prelude.==) _v Data.ProtoLens.fieldDefault then+ Data.Monoid.mempty+ else+ (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 88)+ ((Prelude..)+ Data.ProtoLens.Encoding.Bytes.putVarInt+ Prelude.fromIntegral _v))+ ((Data.Monoid.<>)+ (let+ _v+ = Lens.Family2.view+ (Data.ProtoLens.Field.field+ @"maxAcceptedHtlcs")+ _x+ in+ if (Prelude.==) _v Data.ProtoLens.fieldDefault then+ Data.Monoid.mempty+ else+ (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 96)+ ((Prelude..)+ Data.ProtoLens.Encoding.Bytes.putVarInt+ Prelude.fromIntegral _v))+ ((Data.Monoid.<>)+ (let+ _v+ = Lens.Family2.view+ (Data.ProtoLens.Field.field+ @"channelFlags")+ _x+ in+ if (Prelude.==)+ _v Data.ProtoLens.fieldDefault then+ Data.Monoid.mempty+ else+ (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt+ 104)+ ((Prelude..)+ Data.ProtoLens.Encoding.Bytes.putVarInt+ Prelude.fromIntegral _v))+ ((Data.Monoid.<>)+ (let+ _v+ = Lens.Family2.view+ (Data.ProtoLens.Field.field+ @"commitmentType")+ _x+ in+ if (Prelude.==)+ _v Data.ProtoLens.fieldDefault then+ Data.Monoid.mempty+ else+ (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt+ 112)+ ((Prelude..)+ ((Prelude..)+ Data.ProtoLens.Encoding.Bytes.putVarInt+ Prelude.fromIntegral)+ Prelude.fromEnum _v))+ (Data.ProtoLens.Encoding.Wire.buildFieldSet+ (Lens.Family2.view+ Data.ProtoLens.unknownFields+ _x)))))))))))))))+instance Control.DeepSeq.NFData ChannelAcceptRequest where+ rnf+ = \ x__+ -> Control.DeepSeq.deepseq+ (_ChannelAcceptRequest'_unknownFields x__)+ (Control.DeepSeq.deepseq+ (_ChannelAcceptRequest'nodePubkey x__)+ (Control.DeepSeq.deepseq+ (_ChannelAcceptRequest'chainHash x__)+ (Control.DeepSeq.deepseq+ (_ChannelAcceptRequest'pendingChanId x__)+ (Control.DeepSeq.deepseq+ (_ChannelAcceptRequest'fundingAmt x__)+ (Control.DeepSeq.deepseq+ (_ChannelAcceptRequest'pushAmt x__)+ (Control.DeepSeq.deepseq+ (_ChannelAcceptRequest'dustLimit x__)+ (Control.DeepSeq.deepseq+ (_ChannelAcceptRequest'maxValueInFlight x__)+ (Control.DeepSeq.deepseq+ (_ChannelAcceptRequest'channelReserve x__)+ (Control.DeepSeq.deepseq+ (_ChannelAcceptRequest'minHtlc x__)+ (Control.DeepSeq.deepseq+ (_ChannelAcceptRequest'feePerKw x__)+ (Control.DeepSeq.deepseq+ (_ChannelAcceptRequest'csvDelay x__)+ (Control.DeepSeq.deepseq+ (_ChannelAcceptRequest'maxAcceptedHtlcs x__)+ (Control.DeepSeq.deepseq+ (_ChannelAcceptRequest'channelFlags x__)+ (Control.DeepSeq.deepseq+ (_ChannelAcceptRequest'commitmentType x__)+ ()))))))))))))))+{- | Fields :+ + * 'Proto.Lightning_Fields.accept' @:: Lens' ChannelAcceptResponse Prelude.Bool@+ * 'Proto.Lightning_Fields.pendingChanId' @:: Lens' ChannelAcceptResponse Data.ByteString.ByteString@+ * 'Proto.Lightning_Fields.error' @:: Lens' ChannelAcceptResponse Data.Text.Text@+ * 'Proto.Lightning_Fields.upfrontShutdown' @:: Lens' ChannelAcceptResponse Data.Text.Text@+ * 'Proto.Lightning_Fields.csvDelay' @:: Lens' ChannelAcceptResponse Data.Word.Word32@+ * 'Proto.Lightning_Fields.reserveSat' @:: Lens' ChannelAcceptResponse Data.Word.Word64@+ * 'Proto.Lightning_Fields.inFlightMaxMsat' @:: Lens' ChannelAcceptResponse Data.Word.Word64@+ * 'Proto.Lightning_Fields.maxHtlcCount' @:: Lens' ChannelAcceptResponse Data.Word.Word32@+ * 'Proto.Lightning_Fields.minHtlcIn' @:: Lens' ChannelAcceptResponse Data.Word.Word64@+ * 'Proto.Lightning_Fields.minAcceptDepth' @:: Lens' ChannelAcceptResponse Data.Word.Word32@ -}+data ChannelAcceptResponse+ = ChannelAcceptResponse'_constructor {_ChannelAcceptResponse'accept :: !Prelude.Bool,+ _ChannelAcceptResponse'pendingChanId :: !Data.ByteString.ByteString,+ _ChannelAcceptResponse'error :: !Data.Text.Text,+ _ChannelAcceptResponse'upfrontShutdown :: !Data.Text.Text,+ _ChannelAcceptResponse'csvDelay :: !Data.Word.Word32,+ _ChannelAcceptResponse'reserveSat :: !Data.Word.Word64,+ _ChannelAcceptResponse'inFlightMaxMsat :: !Data.Word.Word64,+ _ChannelAcceptResponse'maxHtlcCount :: !Data.Word.Word32,+ _ChannelAcceptResponse'minHtlcIn :: !Data.Word.Word64,+ _ChannelAcceptResponse'minAcceptDepth :: !Data.Word.Word32,+ _ChannelAcceptResponse'_unknownFields :: !Data.ProtoLens.FieldSet}+ deriving stock (Prelude.Eq, Prelude.Ord, GHC.Generics.Generic)+instance Prelude.Show ChannelAcceptResponse where+ showsPrec _ __x __s+ = Prelude.showChar+ '{'+ (Prelude.showString+ (Data.ProtoLens.showMessageShort __x) (Prelude.showChar '}' __s))+instance Text.PrettyPrint.GenericPretty.Out ChannelAcceptResponse+instance Data.ProtoLens.Field.HasField ChannelAcceptResponse "accept" Prelude.Bool where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _ChannelAcceptResponse'accept+ (\ x__ y__ -> x__ {_ChannelAcceptResponse'accept = y__}))+ Prelude.id+instance Data.ProtoLens.Field.HasField ChannelAcceptResponse "pendingChanId" Data.ByteString.ByteString where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _ChannelAcceptResponse'pendingChanId+ (\ x__ y__ -> x__ {_ChannelAcceptResponse'pendingChanId = y__}))+ Prelude.id+instance Data.ProtoLens.Field.HasField ChannelAcceptResponse "error" Data.Text.Text where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _ChannelAcceptResponse'error+ (\ x__ y__ -> x__ {_ChannelAcceptResponse'error = y__}))+ Prelude.id+instance Data.ProtoLens.Field.HasField ChannelAcceptResponse "upfrontShutdown" Data.Text.Text where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _ChannelAcceptResponse'upfrontShutdown+ (\ x__ y__ -> x__ {_ChannelAcceptResponse'upfrontShutdown = y__}))+ Prelude.id+instance Data.ProtoLens.Field.HasField ChannelAcceptResponse "csvDelay" Data.Word.Word32 where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _ChannelAcceptResponse'csvDelay+ (\ x__ y__ -> x__ {_ChannelAcceptResponse'csvDelay = y__}))+ Prelude.id+instance Data.ProtoLens.Field.HasField ChannelAcceptResponse "reserveSat" Data.Word.Word64 where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _ChannelAcceptResponse'reserveSat+ (\ x__ y__ -> x__ {_ChannelAcceptResponse'reserveSat = y__}))+ Prelude.id+instance Data.ProtoLens.Field.HasField ChannelAcceptResponse "inFlightMaxMsat" Data.Word.Word64 where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _ChannelAcceptResponse'inFlightMaxMsat+ (\ x__ y__ -> x__ {_ChannelAcceptResponse'inFlightMaxMsat = y__}))+ Prelude.id+instance Data.ProtoLens.Field.HasField ChannelAcceptResponse "maxHtlcCount" Data.Word.Word32 where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _ChannelAcceptResponse'maxHtlcCount+ (\ x__ y__ -> x__ {_ChannelAcceptResponse'maxHtlcCount = y__}))+ Prelude.id+instance Data.ProtoLens.Field.HasField ChannelAcceptResponse "minHtlcIn" Data.Word.Word64 where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _ChannelAcceptResponse'minHtlcIn+ (\ x__ y__ -> x__ {_ChannelAcceptResponse'minHtlcIn = y__}))+ Prelude.id+instance Data.ProtoLens.Field.HasField ChannelAcceptResponse "minAcceptDepth" Data.Word.Word32 where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _ChannelAcceptResponse'minAcceptDepth+ (\ x__ y__ -> x__ {_ChannelAcceptResponse'minAcceptDepth = y__}))+ Prelude.id+instance Data.ProtoLens.Message ChannelAcceptResponse where+ messageName _ = Data.Text.pack "lnrpc.ChannelAcceptResponse"+ packedMessageDescriptor _+ = "\n\+ \\NAKChannelAcceptResponse\DC2\SYN\n\+ \\ACKaccept\CAN\SOH \SOH(\bR\ACKaccept\DC2&\n\+ \\SIpending_chan_id\CAN\STX \SOH(\fR\rpendingChanId\DC2\DC4\n\+ \\ENQerror\CAN\ETX \SOH(\tR\ENQerror\DC2)\n\+ \\DLEupfront_shutdown\CAN\EOT \SOH(\tR\SIupfrontShutdown\DC2\ESC\n\+ \\tcsv_delay\CAN\ENQ \SOH(\rR\bcsvDelay\DC2\US\n\+ \\vreserve_sat\CAN\ACK \SOH(\EOTR\n\+ \reserveSat\DC2+\n\+ \\DC2in_flight_max_msat\CAN\a \SOH(\EOTR\SIinFlightMaxMsat\DC2$\n\+ \\SOmax_htlc_count\CAN\b \SOH(\rR\fmaxHtlcCount\DC2\RS\n\+ \\vmin_htlc_in\CAN\t \SOH(\EOTR\tminHtlcIn\DC2(\n\+ \\DLEmin_accept_depth\CAN\n\+ \ \SOH(\rR\SOminAcceptDepth"+ packedFileDescriptor _ = packedFileDescriptor+ fieldsByTag+ = let+ accept__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "accept"+ (Data.ProtoLens.ScalarField Data.ProtoLens.BoolField ::+ Data.ProtoLens.FieldTypeDescriptor Prelude.Bool)+ (Data.ProtoLens.PlainField+ Data.ProtoLens.Optional (Data.ProtoLens.Field.field @"accept")) ::+ Data.ProtoLens.FieldDescriptor ChannelAcceptResponse+ pendingChanId__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "pending_chan_id"+ (Data.ProtoLens.ScalarField Data.ProtoLens.BytesField ::+ Data.ProtoLens.FieldTypeDescriptor Data.ByteString.ByteString)+ (Data.ProtoLens.PlainField+ Data.ProtoLens.Optional+ (Data.ProtoLens.Field.field @"pendingChanId")) ::+ Data.ProtoLens.FieldDescriptor ChannelAcceptResponse+ error__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "error"+ (Data.ProtoLens.ScalarField Data.ProtoLens.StringField ::+ Data.ProtoLens.FieldTypeDescriptor Data.Text.Text)+ (Data.ProtoLens.PlainField+ Data.ProtoLens.Optional (Data.ProtoLens.Field.field @"error")) ::+ Data.ProtoLens.FieldDescriptor ChannelAcceptResponse+ upfrontShutdown__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "upfront_shutdown"+ (Data.ProtoLens.ScalarField Data.ProtoLens.StringField ::+ Data.ProtoLens.FieldTypeDescriptor Data.Text.Text)+ (Data.ProtoLens.PlainField+ Data.ProtoLens.Optional+ (Data.ProtoLens.Field.field @"upfrontShutdown")) ::+ Data.ProtoLens.FieldDescriptor ChannelAcceptResponse+ csvDelay__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "csv_delay"+ (Data.ProtoLens.ScalarField Data.ProtoLens.UInt32Field ::+ Data.ProtoLens.FieldTypeDescriptor Data.Word.Word32)+ (Data.ProtoLens.PlainField+ Data.ProtoLens.Optional+ (Data.ProtoLens.Field.field @"csvDelay")) ::+ Data.ProtoLens.FieldDescriptor ChannelAcceptResponse+ reserveSat__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "reserve_sat"+ (Data.ProtoLens.ScalarField Data.ProtoLens.UInt64Field ::+ Data.ProtoLens.FieldTypeDescriptor Data.Word.Word64)+ (Data.ProtoLens.PlainField+ Data.ProtoLens.Optional+ (Data.ProtoLens.Field.field @"reserveSat")) ::+ Data.ProtoLens.FieldDescriptor ChannelAcceptResponse+ inFlightMaxMsat__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "in_flight_max_msat"+ (Data.ProtoLens.ScalarField Data.ProtoLens.UInt64Field ::+ Data.ProtoLens.FieldTypeDescriptor Data.Word.Word64)+ (Data.ProtoLens.PlainField+ Data.ProtoLens.Optional+ (Data.ProtoLens.Field.field @"inFlightMaxMsat")) ::+ Data.ProtoLens.FieldDescriptor ChannelAcceptResponse+ maxHtlcCount__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "max_htlc_count"+ (Data.ProtoLens.ScalarField Data.ProtoLens.UInt32Field ::+ Data.ProtoLens.FieldTypeDescriptor Data.Word.Word32)+ (Data.ProtoLens.PlainField+ Data.ProtoLens.Optional+ (Data.ProtoLens.Field.field @"maxHtlcCount")) ::+ Data.ProtoLens.FieldDescriptor ChannelAcceptResponse+ minHtlcIn__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "min_htlc_in"+ (Data.ProtoLens.ScalarField Data.ProtoLens.UInt64Field ::+ Data.ProtoLens.FieldTypeDescriptor Data.Word.Word64)+ (Data.ProtoLens.PlainField+ Data.ProtoLens.Optional+ (Data.ProtoLens.Field.field @"minHtlcIn")) ::+ Data.ProtoLens.FieldDescriptor ChannelAcceptResponse+ minAcceptDepth__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "min_accept_depth"+ (Data.ProtoLens.ScalarField Data.ProtoLens.UInt32Field ::+ Data.ProtoLens.FieldTypeDescriptor Data.Word.Word32)+ (Data.ProtoLens.PlainField+ Data.ProtoLens.Optional+ (Data.ProtoLens.Field.field @"minAcceptDepth")) ::+ Data.ProtoLens.FieldDescriptor ChannelAcceptResponse+ in+ Data.Map.fromList+ [(Data.ProtoLens.Tag 1, accept__field_descriptor),+ (Data.ProtoLens.Tag 2, pendingChanId__field_descriptor),+ (Data.ProtoLens.Tag 3, error__field_descriptor),+ (Data.ProtoLens.Tag 4, upfrontShutdown__field_descriptor),+ (Data.ProtoLens.Tag 5, csvDelay__field_descriptor),+ (Data.ProtoLens.Tag 6, reserveSat__field_descriptor),+ (Data.ProtoLens.Tag 7, inFlightMaxMsat__field_descriptor),+ (Data.ProtoLens.Tag 8, maxHtlcCount__field_descriptor),+ (Data.ProtoLens.Tag 9, minHtlcIn__field_descriptor),+ (Data.ProtoLens.Tag 10, minAcceptDepth__field_descriptor)]+ unknownFields+ = Lens.Family2.Unchecked.lens+ _ChannelAcceptResponse'_unknownFields+ (\ x__ y__ -> x__ {_ChannelAcceptResponse'_unknownFields = y__})+ defMessage+ = ChannelAcceptResponse'_constructor+ {_ChannelAcceptResponse'accept = Data.ProtoLens.fieldDefault,+ _ChannelAcceptResponse'pendingChanId = Data.ProtoLens.fieldDefault,+ _ChannelAcceptResponse'error = Data.ProtoLens.fieldDefault,+ _ChannelAcceptResponse'upfrontShutdown = Data.ProtoLens.fieldDefault,+ _ChannelAcceptResponse'csvDelay = Data.ProtoLens.fieldDefault,+ _ChannelAcceptResponse'reserveSat = Data.ProtoLens.fieldDefault,+ _ChannelAcceptResponse'inFlightMaxMsat = Data.ProtoLens.fieldDefault,+ _ChannelAcceptResponse'maxHtlcCount = Data.ProtoLens.fieldDefault,+ _ChannelAcceptResponse'minHtlcIn = Data.ProtoLens.fieldDefault,+ _ChannelAcceptResponse'minAcceptDepth = Data.ProtoLens.fieldDefault,+ _ChannelAcceptResponse'_unknownFields = []}+ parseMessage+ = let+ loop ::+ ChannelAcceptResponse+ -> Data.ProtoLens.Encoding.Bytes.Parser ChannelAcceptResponse+ loop x+ = do end <- Data.ProtoLens.Encoding.Bytes.atEnd+ if end then+ do (let missing = []+ in+ if Prelude.null missing then+ Prelude.return ()+ else+ Prelude.fail+ ((Prelude.++)+ "Missing required fields: "+ (Prelude.show (missing :: [Prelude.String]))))+ Prelude.return+ (Lens.Family2.over+ Data.ProtoLens.unknownFields (\ !t -> Prelude.reverse t) x)+ else+ do tag <- Data.ProtoLens.Encoding.Bytes.getVarInt+ case tag of+ 8 -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (Prelude.fmap+ ((Prelude./=) 0) Data.ProtoLens.Encoding.Bytes.getVarInt)+ "accept"+ loop (Lens.Family2.set (Data.ProtoLens.Field.field @"accept") y x)+ 18+ -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (do len <- Data.ProtoLens.Encoding.Bytes.getVarInt+ Data.ProtoLens.Encoding.Bytes.getBytes+ (Prelude.fromIntegral len))+ "pending_chan_id"+ loop+ (Lens.Family2.set+ (Data.ProtoLens.Field.field @"pendingChanId") y x)+ 26+ -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (do value <- do len <- Data.ProtoLens.Encoding.Bytes.getVarInt+ Data.ProtoLens.Encoding.Bytes.getBytes+ (Prelude.fromIntegral len)+ Data.ProtoLens.Encoding.Bytes.runEither+ (case Data.Text.Encoding.decodeUtf8' value of+ (Prelude.Left err)+ -> Prelude.Left (Prelude.show err)+ (Prelude.Right r) -> Prelude.Right r))+ "error"+ loop (Lens.Family2.set (Data.ProtoLens.Field.field @"error") y x)+ 34+ -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (do value <- do len <- Data.ProtoLens.Encoding.Bytes.getVarInt+ Data.ProtoLens.Encoding.Bytes.getBytes+ (Prelude.fromIntegral len)+ Data.ProtoLens.Encoding.Bytes.runEither+ (case Data.Text.Encoding.decodeUtf8' value of+ (Prelude.Left err)+ -> Prelude.Left (Prelude.show err)+ (Prelude.Right r) -> Prelude.Right r))+ "upfront_shutdown"+ loop+ (Lens.Family2.set+ (Data.ProtoLens.Field.field @"upfrontShutdown") y x)+ 40+ -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (Prelude.fmap+ Prelude.fromIntegral+ Data.ProtoLens.Encoding.Bytes.getVarInt)+ "csv_delay"+ loop+ (Lens.Family2.set (Data.ProtoLens.Field.field @"csvDelay") y x)+ 48+ -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ Data.ProtoLens.Encoding.Bytes.getVarInt "reserve_sat"+ loop+ (Lens.Family2.set (Data.ProtoLens.Field.field @"reserveSat") y x)+ 56+ -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ Data.ProtoLens.Encoding.Bytes.getVarInt "in_flight_max_msat"+ loop+ (Lens.Family2.set+ (Data.ProtoLens.Field.field @"inFlightMaxMsat") y x)+ 64+ -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (Prelude.fmap+ Prelude.fromIntegral+ Data.ProtoLens.Encoding.Bytes.getVarInt)+ "max_htlc_count"+ loop+ (Lens.Family2.set+ (Data.ProtoLens.Field.field @"maxHtlcCount") y x)+ 72+ -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ Data.ProtoLens.Encoding.Bytes.getVarInt "min_htlc_in"+ loop+ (Lens.Family2.set (Data.ProtoLens.Field.field @"minHtlcIn") y x)+ 80+ -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (Prelude.fmap+ Prelude.fromIntegral+ Data.ProtoLens.Encoding.Bytes.getVarInt)+ "min_accept_depth"+ loop+ (Lens.Family2.set+ (Data.ProtoLens.Field.field @"minAcceptDepth") y x)+ wire+ -> do !y <- Data.ProtoLens.Encoding.Wire.parseTaggedValueFromWire+ wire+ loop+ (Lens.Family2.over+ Data.ProtoLens.unknownFields (\ !t -> (:) y t) x)+ in+ (Data.ProtoLens.Encoding.Bytes.<?>)+ (do loop Data.ProtoLens.defMessage) "ChannelAcceptResponse"+ buildMessage+ = \ _x+ -> (Data.Monoid.<>)+ (let+ _v = Lens.Family2.view (Data.ProtoLens.Field.field @"accept") _x+ in+ if (Prelude.==) _v Data.ProtoLens.fieldDefault then+ Data.Monoid.mempty+ else+ (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 8)+ ((Prelude..)+ Data.ProtoLens.Encoding.Bytes.putVarInt (\ b -> if b then 1 else 0)+ _v))+ ((Data.Monoid.<>)+ (let+ _v+ = Lens.Family2.view+ (Data.ProtoLens.Field.field @"pendingChanId") _x+ in+ if (Prelude.==) _v Data.ProtoLens.fieldDefault then+ Data.Monoid.mempty+ else+ (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 18)+ ((\ bs+ -> (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt+ (Prelude.fromIntegral (Data.ByteString.length bs)))+ (Data.ProtoLens.Encoding.Bytes.putBytes bs))+ _v))+ ((Data.Monoid.<>)+ (let+ _v = Lens.Family2.view (Data.ProtoLens.Field.field @"error") _x+ in+ if (Prelude.==) _v Data.ProtoLens.fieldDefault then+ Data.Monoid.mempty+ else+ (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 26)+ ((Prelude..)+ (\ bs+ -> (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt+ (Prelude.fromIntegral (Data.ByteString.length bs)))+ (Data.ProtoLens.Encoding.Bytes.putBytes bs))+ Data.Text.Encoding.encodeUtf8 _v))+ ((Data.Monoid.<>)+ (let+ _v+ = Lens.Family2.view+ (Data.ProtoLens.Field.field @"upfrontShutdown") _x+ in+ if (Prelude.==) _v Data.ProtoLens.fieldDefault then+ Data.Monoid.mempty+ else+ (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 34)+ ((Prelude..)+ (\ bs+ -> (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt+ (Prelude.fromIntegral (Data.ByteString.length bs)))+ (Data.ProtoLens.Encoding.Bytes.putBytes bs))+ Data.Text.Encoding.encodeUtf8 _v))+ ((Data.Monoid.<>)+ (let+ _v = Lens.Family2.view (Data.ProtoLens.Field.field @"csvDelay") _x+ in+ if (Prelude.==) _v Data.ProtoLens.fieldDefault then+ Data.Monoid.mempty+ else+ (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 40)+ ((Prelude..)+ Data.ProtoLens.Encoding.Bytes.putVarInt Prelude.fromIntegral+ _v))+ ((Data.Monoid.<>)+ (let+ _v+ = Lens.Family2.view (Data.ProtoLens.Field.field @"reserveSat") _x+ in+ if (Prelude.==) _v Data.ProtoLens.fieldDefault then+ Data.Monoid.mempty+ else+ (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 48)+ (Data.ProtoLens.Encoding.Bytes.putVarInt _v))+ ((Data.Monoid.<>)+ (let+ _v+ = Lens.Family2.view+ (Data.ProtoLens.Field.field @"inFlightMaxMsat") _x+ in+ if (Prelude.==) _v Data.ProtoLens.fieldDefault then+ Data.Monoid.mempty+ else+ (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 56)+ (Data.ProtoLens.Encoding.Bytes.putVarInt _v))+ ((Data.Monoid.<>)+ (let+ _v+ = Lens.Family2.view+ (Data.ProtoLens.Field.field @"maxHtlcCount") _x+ in+ if (Prelude.==) _v Data.ProtoLens.fieldDefault then+ Data.Monoid.mempty+ else+ (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 64)+ ((Prelude..)+ Data.ProtoLens.Encoding.Bytes.putVarInt+ Prelude.fromIntegral _v))+ ((Data.Monoid.<>)+ (let+ _v+ = Lens.Family2.view+ (Data.ProtoLens.Field.field @"minHtlcIn") _x+ in+ if (Prelude.==) _v Data.ProtoLens.fieldDefault then+ Data.Monoid.mempty+ else+ (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 72)+ (Data.ProtoLens.Encoding.Bytes.putVarInt _v))+ ((Data.Monoid.<>)+ (let+ _v+ = Lens.Family2.view+ (Data.ProtoLens.Field.field @"minAcceptDepth") _x+ in+ if (Prelude.==) _v Data.ProtoLens.fieldDefault then+ Data.Monoid.mempty+ else+ (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 80)+ ((Prelude..)+ Data.ProtoLens.Encoding.Bytes.putVarInt+ Prelude.fromIntegral _v))+ (Data.ProtoLens.Encoding.Wire.buildFieldSet+ (Lens.Family2.view+ Data.ProtoLens.unknownFields _x)))))))))))+instance Control.DeepSeq.NFData ChannelAcceptResponse where+ rnf+ = \ x__+ -> Control.DeepSeq.deepseq+ (_ChannelAcceptResponse'_unknownFields x__)+ (Control.DeepSeq.deepseq+ (_ChannelAcceptResponse'accept x__)+ (Control.DeepSeq.deepseq+ (_ChannelAcceptResponse'pendingChanId x__)+ (Control.DeepSeq.deepseq+ (_ChannelAcceptResponse'error x__)+ (Control.DeepSeq.deepseq+ (_ChannelAcceptResponse'upfrontShutdown x__)+ (Control.DeepSeq.deepseq+ (_ChannelAcceptResponse'csvDelay x__)+ (Control.DeepSeq.deepseq+ (_ChannelAcceptResponse'reserveSat x__)+ (Control.DeepSeq.deepseq+ (_ChannelAcceptResponse'inFlightMaxMsat x__)+ (Control.DeepSeq.deepseq+ (_ChannelAcceptResponse'maxHtlcCount x__)+ (Control.DeepSeq.deepseq+ (_ChannelAcceptResponse'minHtlcIn x__)+ (Control.DeepSeq.deepseq+ (_ChannelAcceptResponse'minAcceptDepth x__) ()))))))))))+{- | Fields :+ + * 'Proto.Lightning_Fields.closingTxid' @:: Lens' ChannelCloseUpdate Data.ByteString.ByteString@+ * 'Proto.Lightning_Fields.success' @:: Lens' ChannelCloseUpdate Prelude.Bool@ -}+data ChannelCloseUpdate+ = ChannelCloseUpdate'_constructor {_ChannelCloseUpdate'closingTxid :: !Data.ByteString.ByteString,+ _ChannelCloseUpdate'success :: !Prelude.Bool,+ _ChannelCloseUpdate'_unknownFields :: !Data.ProtoLens.FieldSet}+ deriving stock (Prelude.Eq, Prelude.Ord, GHC.Generics.Generic)+instance Prelude.Show ChannelCloseUpdate where+ showsPrec _ __x __s+ = Prelude.showChar+ '{'+ (Prelude.showString+ (Data.ProtoLens.showMessageShort __x) (Prelude.showChar '}' __s))+instance Text.PrettyPrint.GenericPretty.Out ChannelCloseUpdate+instance Data.ProtoLens.Field.HasField ChannelCloseUpdate "closingTxid" Data.ByteString.ByteString where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _ChannelCloseUpdate'closingTxid+ (\ x__ y__ -> x__ {_ChannelCloseUpdate'closingTxid = y__}))+ Prelude.id+instance Data.ProtoLens.Field.HasField ChannelCloseUpdate "success" Prelude.Bool where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _ChannelCloseUpdate'success+ (\ x__ y__ -> x__ {_ChannelCloseUpdate'success = y__}))+ Prelude.id+instance Data.ProtoLens.Message ChannelCloseUpdate where+ messageName _ = Data.Text.pack "lnrpc.ChannelCloseUpdate"+ packedMessageDescriptor _+ = "\n\+ \\DC2ChannelCloseUpdate\DC2!\n\+ \\fclosing_txid\CAN\SOH \SOH(\fR\vclosingTxid\DC2\CAN\n\+ \\asuccess\CAN\STX \SOH(\bR\asuccess"+ packedFileDescriptor _ = packedFileDescriptor+ fieldsByTag+ = let+ closingTxid__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "closing_txid"+ (Data.ProtoLens.ScalarField Data.ProtoLens.BytesField ::+ Data.ProtoLens.FieldTypeDescriptor Data.ByteString.ByteString)+ (Data.ProtoLens.PlainField+ Data.ProtoLens.Optional+ (Data.ProtoLens.Field.field @"closingTxid")) ::+ Data.ProtoLens.FieldDescriptor ChannelCloseUpdate+ success__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "success"+ (Data.ProtoLens.ScalarField Data.ProtoLens.BoolField ::+ Data.ProtoLens.FieldTypeDescriptor Prelude.Bool)+ (Data.ProtoLens.PlainField+ Data.ProtoLens.Optional (Data.ProtoLens.Field.field @"success")) ::+ Data.ProtoLens.FieldDescriptor ChannelCloseUpdate+ in+ Data.Map.fromList+ [(Data.ProtoLens.Tag 1, closingTxid__field_descriptor),+ (Data.ProtoLens.Tag 2, success__field_descriptor)]+ unknownFields+ = Lens.Family2.Unchecked.lens+ _ChannelCloseUpdate'_unknownFields+ (\ x__ y__ -> x__ {_ChannelCloseUpdate'_unknownFields = y__})+ defMessage+ = ChannelCloseUpdate'_constructor+ {_ChannelCloseUpdate'closingTxid = Data.ProtoLens.fieldDefault,+ _ChannelCloseUpdate'success = Data.ProtoLens.fieldDefault,+ _ChannelCloseUpdate'_unknownFields = []}+ parseMessage+ = let+ loop ::+ ChannelCloseUpdate+ -> Data.ProtoLens.Encoding.Bytes.Parser ChannelCloseUpdate+ loop x+ = do end <- Data.ProtoLens.Encoding.Bytes.atEnd+ if end then+ do (let missing = []+ in+ if Prelude.null missing then+ Prelude.return ()+ else+ Prelude.fail+ ((Prelude.++)+ "Missing required fields: "+ (Prelude.show (missing :: [Prelude.String]))))+ Prelude.return+ (Lens.Family2.over+ Data.ProtoLens.unknownFields (\ !t -> Prelude.reverse t) x)+ else+ do tag <- Data.ProtoLens.Encoding.Bytes.getVarInt+ case tag of+ 10+ -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (do len <- Data.ProtoLens.Encoding.Bytes.getVarInt+ Data.ProtoLens.Encoding.Bytes.getBytes+ (Prelude.fromIntegral len))+ "closing_txid"+ loop+ (Lens.Family2.set (Data.ProtoLens.Field.field @"closingTxid") y x)+ 16+ -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (Prelude.fmap+ ((Prelude./=) 0) Data.ProtoLens.Encoding.Bytes.getVarInt)+ "success"+ loop (Lens.Family2.set (Data.ProtoLens.Field.field @"success") y x)+ wire+ -> do !y <- Data.ProtoLens.Encoding.Wire.parseTaggedValueFromWire+ wire+ loop+ (Lens.Family2.over+ Data.ProtoLens.unknownFields (\ !t -> (:) y t) x)+ in+ (Data.ProtoLens.Encoding.Bytes.<?>)+ (do loop Data.ProtoLens.defMessage) "ChannelCloseUpdate"+ buildMessage+ = \ _x+ -> (Data.Monoid.<>)+ (let+ _v+ = Lens.Family2.view (Data.ProtoLens.Field.field @"closingTxid") _x+ in+ if (Prelude.==) _v Data.ProtoLens.fieldDefault then+ Data.Monoid.mempty+ else+ (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 10)+ ((\ bs+ -> (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt+ (Prelude.fromIntegral (Data.ByteString.length bs)))+ (Data.ProtoLens.Encoding.Bytes.putBytes bs))+ _v))+ ((Data.Monoid.<>)+ (let+ _v = Lens.Family2.view (Data.ProtoLens.Field.field @"success") _x+ in+ if (Prelude.==) _v Data.ProtoLens.fieldDefault then+ Data.Monoid.mempty+ else+ (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 16)+ ((Prelude..)+ Data.ProtoLens.Encoding.Bytes.putVarInt (\ b -> if b then 1 else 0)+ _v))+ (Data.ProtoLens.Encoding.Wire.buildFieldSet+ (Lens.Family2.view Data.ProtoLens.unknownFields _x)))+instance Control.DeepSeq.NFData ChannelCloseUpdate where+ rnf+ = \ x__+ -> Control.DeepSeq.deepseq+ (_ChannelCloseUpdate'_unknownFields x__)+ (Control.DeepSeq.deepseq+ (_ChannelCloseUpdate'closingTxid x__)+ (Control.DeepSeq.deepseq (_ChannelCloseUpdate'success x__) ()))+{- | Fields :+ + * 'Proto.Lightning_Fields.channelPoint' @:: Lens' ChannelOpenUpdate Proto.Lnrpc.Ln0.ChannelPoint@+ * 'Proto.Lightning_Fields.maybe'channelPoint' @:: Lens' ChannelOpenUpdate (Prelude.Maybe Proto.Lnrpc.Ln0.ChannelPoint)@ -}+data ChannelOpenUpdate+ = ChannelOpenUpdate'_constructor {_ChannelOpenUpdate'channelPoint :: !(Prelude.Maybe Proto.Lnrpc.Ln0.ChannelPoint),+ _ChannelOpenUpdate'_unknownFields :: !Data.ProtoLens.FieldSet}+ deriving stock (Prelude.Eq, Prelude.Ord, GHC.Generics.Generic)+instance Prelude.Show ChannelOpenUpdate where+ showsPrec _ __x __s+ = Prelude.showChar+ '{'+ (Prelude.showString+ (Data.ProtoLens.showMessageShort __x) (Prelude.showChar '}' __s))+instance Text.PrettyPrint.GenericPretty.Out ChannelOpenUpdate+instance Data.ProtoLens.Field.HasField ChannelOpenUpdate "channelPoint" Proto.Lnrpc.Ln0.ChannelPoint where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _ChannelOpenUpdate'channelPoint+ (\ x__ y__ -> x__ {_ChannelOpenUpdate'channelPoint = y__}))+ (Data.ProtoLens.maybeLens Data.ProtoLens.defMessage)+instance Data.ProtoLens.Field.HasField ChannelOpenUpdate "maybe'channelPoint" (Prelude.Maybe Proto.Lnrpc.Ln0.ChannelPoint) where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _ChannelOpenUpdate'channelPoint+ (\ x__ y__ -> x__ {_ChannelOpenUpdate'channelPoint = y__}))+ Prelude.id+instance Data.ProtoLens.Message ChannelOpenUpdate where+ messageName _ = Data.Text.pack "lnrpc.ChannelOpenUpdate"+ packedMessageDescriptor _+ = "\n\+ \\DC1ChannelOpenUpdate\DC28\n\+ \\rchannel_point\CAN\SOH \SOH(\v2\DC3.lnrpc.ChannelPointR\fchannelPoint"+ packedFileDescriptor _ = packedFileDescriptor+ fieldsByTag+ = let+ channelPoint__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "channel_point"+ (Data.ProtoLens.MessageField Data.ProtoLens.MessageType ::+ Data.ProtoLens.FieldTypeDescriptor Proto.Lnrpc.Ln0.ChannelPoint)+ (Data.ProtoLens.OptionalField+ (Data.ProtoLens.Field.field @"maybe'channelPoint")) ::+ Data.ProtoLens.FieldDescriptor ChannelOpenUpdate+ in+ Data.Map.fromList+ [(Data.ProtoLens.Tag 1, channelPoint__field_descriptor)]+ unknownFields+ = Lens.Family2.Unchecked.lens+ _ChannelOpenUpdate'_unknownFields+ (\ x__ y__ -> x__ {_ChannelOpenUpdate'_unknownFields = y__})+ defMessage+ = ChannelOpenUpdate'_constructor+ {_ChannelOpenUpdate'channelPoint = Prelude.Nothing,+ _ChannelOpenUpdate'_unknownFields = []}+ parseMessage+ = let+ loop ::+ ChannelOpenUpdate+ -> Data.ProtoLens.Encoding.Bytes.Parser ChannelOpenUpdate+ loop x+ = do end <- Data.ProtoLens.Encoding.Bytes.atEnd+ if end then+ do (let missing = []+ in+ if Prelude.null missing then+ Prelude.return ()+ else+ Prelude.fail+ ((Prelude.++)+ "Missing required fields: "+ (Prelude.show (missing :: [Prelude.String]))))+ Prelude.return+ (Lens.Family2.over+ Data.ProtoLens.unknownFields (\ !t -> Prelude.reverse t) x)+ else+ do tag <- Data.ProtoLens.Encoding.Bytes.getVarInt+ case tag of+ 10+ -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (do len <- Data.ProtoLens.Encoding.Bytes.getVarInt+ Data.ProtoLens.Encoding.Bytes.isolate+ (Prelude.fromIntegral len) Data.ProtoLens.parseMessage)+ "channel_point"+ loop+ (Lens.Family2.set+ (Data.ProtoLens.Field.field @"channelPoint") y x)+ wire+ -> do !y <- Data.ProtoLens.Encoding.Wire.parseTaggedValueFromWire+ wire+ loop+ (Lens.Family2.over+ Data.ProtoLens.unknownFields (\ !t -> (:) y t) x)+ in+ (Data.ProtoLens.Encoding.Bytes.<?>)+ (do loop Data.ProtoLens.defMessage) "ChannelOpenUpdate"+ buildMessage+ = \ _x+ -> (Data.Monoid.<>)+ (case+ Lens.Family2.view+ (Data.ProtoLens.Field.field @"maybe'channelPoint") _x+ of+ Prelude.Nothing -> Data.Monoid.mempty+ (Prelude.Just _v)+ -> (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 10)+ ((Prelude..)+ (\ bs+ -> (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt+ (Prelude.fromIntegral (Data.ByteString.length bs)))+ (Data.ProtoLens.Encoding.Bytes.putBytes bs))+ Data.ProtoLens.encodeMessage _v))+ (Data.ProtoLens.Encoding.Wire.buildFieldSet+ (Lens.Family2.view Data.ProtoLens.unknownFields _x))+instance Control.DeepSeq.NFData ChannelOpenUpdate where+ rnf+ = \ x__+ -> Control.DeepSeq.deepseq+ (_ChannelOpenUpdate'_unknownFields x__)+ (Control.DeepSeq.deepseq (_ChannelOpenUpdate'channelPoint x__) ())+{- | Fields :+ + * 'Proto.Lightning_Fields.channelPoint' @:: Lens' CloseChannelRequest Proto.Lnrpc.Ln0.ChannelPoint@+ * 'Proto.Lightning_Fields.maybe'channelPoint' @:: Lens' CloseChannelRequest (Prelude.Maybe Proto.Lnrpc.Ln0.ChannelPoint)@+ * 'Proto.Lightning_Fields.force' @:: Lens' CloseChannelRequest Prelude.Bool@+ * 'Proto.Lightning_Fields.targetConf' @:: Lens' CloseChannelRequest Data.Int.Int32@+ * 'Proto.Lightning_Fields.satPerByte' @:: Lens' CloseChannelRequest Data.Int.Int64@+ * 'Proto.Lightning_Fields.deliveryAddress' @:: Lens' CloseChannelRequest Data.Text.Text@+ * 'Proto.Lightning_Fields.satPerVbyte' @:: Lens' CloseChannelRequest Data.Word.Word64@ -}+data CloseChannelRequest+ = CloseChannelRequest'_constructor {_CloseChannelRequest'channelPoint :: !(Prelude.Maybe Proto.Lnrpc.Ln0.ChannelPoint),+ _CloseChannelRequest'force :: !Prelude.Bool,+ _CloseChannelRequest'targetConf :: !Data.Int.Int32,+ _CloseChannelRequest'satPerByte :: !Data.Int.Int64,+ _CloseChannelRequest'deliveryAddress :: !Data.Text.Text,+ _CloseChannelRequest'satPerVbyte :: !Data.Word.Word64,+ _CloseChannelRequest'_unknownFields :: !Data.ProtoLens.FieldSet}+ deriving stock (Prelude.Eq, Prelude.Ord, GHC.Generics.Generic)+instance Prelude.Show CloseChannelRequest where+ showsPrec _ __x __s+ = Prelude.showChar+ '{'+ (Prelude.showString+ (Data.ProtoLens.showMessageShort __x) (Prelude.showChar '}' __s))+instance Text.PrettyPrint.GenericPretty.Out CloseChannelRequest+instance Data.ProtoLens.Field.HasField CloseChannelRequest "channelPoint" Proto.Lnrpc.Ln0.ChannelPoint where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _CloseChannelRequest'channelPoint+ (\ x__ y__ -> x__ {_CloseChannelRequest'channelPoint = y__}))+ (Data.ProtoLens.maybeLens Data.ProtoLens.defMessage)+instance Data.ProtoLens.Field.HasField CloseChannelRequest "maybe'channelPoint" (Prelude.Maybe Proto.Lnrpc.Ln0.ChannelPoint) where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _CloseChannelRequest'channelPoint+ (\ x__ y__ -> x__ {_CloseChannelRequest'channelPoint = y__}))+ Prelude.id+instance Data.ProtoLens.Field.HasField CloseChannelRequest "force" Prelude.Bool where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _CloseChannelRequest'force+ (\ x__ y__ -> x__ {_CloseChannelRequest'force = y__}))+ Prelude.id+instance Data.ProtoLens.Field.HasField CloseChannelRequest "targetConf" Data.Int.Int32 where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _CloseChannelRequest'targetConf+ (\ x__ y__ -> x__ {_CloseChannelRequest'targetConf = y__}))+ Prelude.id+instance Data.ProtoLens.Field.HasField CloseChannelRequest "satPerByte" Data.Int.Int64 where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _CloseChannelRequest'satPerByte+ (\ x__ y__ -> x__ {_CloseChannelRequest'satPerByte = y__}))+ Prelude.id+instance Data.ProtoLens.Field.HasField CloseChannelRequest "deliveryAddress" Data.Text.Text where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _CloseChannelRequest'deliveryAddress+ (\ x__ y__ -> x__ {_CloseChannelRequest'deliveryAddress = y__}))+ Prelude.id+instance Data.ProtoLens.Field.HasField CloseChannelRequest "satPerVbyte" Data.Word.Word64 where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _CloseChannelRequest'satPerVbyte+ (\ x__ y__ -> x__ {_CloseChannelRequest'satPerVbyte = y__}))+ Prelude.id+instance Data.ProtoLens.Message CloseChannelRequest where+ messageName _ = Data.Text.pack "lnrpc.CloseChannelRequest"+ packedMessageDescriptor _+ = "\n\+ \\DC3CloseChannelRequest\DC28\n\+ \\rchannel_point\CAN\SOH \SOH(\v2\DC3.lnrpc.ChannelPointR\fchannelPoint\DC2\DC4\n\+ \\ENQforce\CAN\STX \SOH(\bR\ENQforce\DC2\US\n\+ \\vtarget_conf\CAN\ETX \SOH(\ENQR\n\+ \targetConf\DC2$\n\+ \\fsat_per_byte\CAN\EOT \SOH(\ETXR\n\+ \satPerByteB\STX\CAN\SOH\DC2)\n\+ \\DLEdelivery_address\CAN\ENQ \SOH(\tR\SIdeliveryAddress\DC2\"\n\+ \\rsat_per_vbyte\CAN\ACK \SOH(\EOTR\vsatPerVbyte"+ packedFileDescriptor _ = packedFileDescriptor+ fieldsByTag+ = let+ channelPoint__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "channel_point"+ (Data.ProtoLens.MessageField Data.ProtoLens.MessageType ::+ Data.ProtoLens.FieldTypeDescriptor Proto.Lnrpc.Ln0.ChannelPoint)+ (Data.ProtoLens.OptionalField+ (Data.ProtoLens.Field.field @"maybe'channelPoint")) ::+ Data.ProtoLens.FieldDescriptor CloseChannelRequest+ force__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "force"+ (Data.ProtoLens.ScalarField Data.ProtoLens.BoolField ::+ Data.ProtoLens.FieldTypeDescriptor Prelude.Bool)+ (Data.ProtoLens.PlainField+ Data.ProtoLens.Optional (Data.ProtoLens.Field.field @"force")) ::+ Data.ProtoLens.FieldDescriptor CloseChannelRequest+ targetConf__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "target_conf"+ (Data.ProtoLens.ScalarField Data.ProtoLens.Int32Field ::+ Data.ProtoLens.FieldTypeDescriptor Data.Int.Int32)+ (Data.ProtoLens.PlainField+ Data.ProtoLens.Optional+ (Data.ProtoLens.Field.field @"targetConf")) ::+ Data.ProtoLens.FieldDescriptor CloseChannelRequest+ satPerByte__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "sat_per_byte"+ (Data.ProtoLens.ScalarField Data.ProtoLens.Int64Field ::+ Data.ProtoLens.FieldTypeDescriptor Data.Int.Int64)+ (Data.ProtoLens.PlainField+ Data.ProtoLens.Optional+ (Data.ProtoLens.Field.field @"satPerByte")) ::+ Data.ProtoLens.FieldDescriptor CloseChannelRequest+ deliveryAddress__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "delivery_address"+ (Data.ProtoLens.ScalarField Data.ProtoLens.StringField ::+ Data.ProtoLens.FieldTypeDescriptor Data.Text.Text)+ (Data.ProtoLens.PlainField+ Data.ProtoLens.Optional+ (Data.ProtoLens.Field.field @"deliveryAddress")) ::+ Data.ProtoLens.FieldDescriptor CloseChannelRequest+ satPerVbyte__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "sat_per_vbyte"+ (Data.ProtoLens.ScalarField Data.ProtoLens.UInt64Field ::+ Data.ProtoLens.FieldTypeDescriptor Data.Word.Word64)+ (Data.ProtoLens.PlainField+ Data.ProtoLens.Optional+ (Data.ProtoLens.Field.field @"satPerVbyte")) ::+ Data.ProtoLens.FieldDescriptor CloseChannelRequest+ in+ Data.Map.fromList+ [(Data.ProtoLens.Tag 1, channelPoint__field_descriptor),+ (Data.ProtoLens.Tag 2, force__field_descriptor),+ (Data.ProtoLens.Tag 3, targetConf__field_descriptor),+ (Data.ProtoLens.Tag 4, satPerByte__field_descriptor),+ (Data.ProtoLens.Tag 5, deliveryAddress__field_descriptor),+ (Data.ProtoLens.Tag 6, satPerVbyte__field_descriptor)]+ unknownFields+ = Lens.Family2.Unchecked.lens+ _CloseChannelRequest'_unknownFields+ (\ x__ y__ -> x__ {_CloseChannelRequest'_unknownFields = y__})+ defMessage+ = CloseChannelRequest'_constructor+ {_CloseChannelRequest'channelPoint = Prelude.Nothing,+ _CloseChannelRequest'force = Data.ProtoLens.fieldDefault,+ _CloseChannelRequest'targetConf = Data.ProtoLens.fieldDefault,+ _CloseChannelRequest'satPerByte = Data.ProtoLens.fieldDefault,+ _CloseChannelRequest'deliveryAddress = Data.ProtoLens.fieldDefault,+ _CloseChannelRequest'satPerVbyte = Data.ProtoLens.fieldDefault,+ _CloseChannelRequest'_unknownFields = []}+ parseMessage+ = let+ loop ::+ CloseChannelRequest+ -> Data.ProtoLens.Encoding.Bytes.Parser CloseChannelRequest+ loop x+ = do end <- Data.ProtoLens.Encoding.Bytes.atEnd+ if end then+ do (let missing = []+ in+ if Prelude.null missing then+ Prelude.return ()+ else+ Prelude.fail+ ((Prelude.++)+ "Missing required fields: "+ (Prelude.show (missing :: [Prelude.String]))))+ Prelude.return+ (Lens.Family2.over+ Data.ProtoLens.unknownFields (\ !t -> Prelude.reverse t) x)+ else+ do tag <- Data.ProtoLens.Encoding.Bytes.getVarInt+ case tag of+ 10+ -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (do len <- Data.ProtoLens.Encoding.Bytes.getVarInt+ Data.ProtoLens.Encoding.Bytes.isolate+ (Prelude.fromIntegral len) Data.ProtoLens.parseMessage)+ "channel_point"+ loop+ (Lens.Family2.set+ (Data.ProtoLens.Field.field @"channelPoint") y x)+ 16+ -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (Prelude.fmap+ ((Prelude./=) 0) Data.ProtoLens.Encoding.Bytes.getVarInt)+ "force"+ loop (Lens.Family2.set (Data.ProtoLens.Field.field @"force") y x)+ 24+ -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (Prelude.fmap+ Prelude.fromIntegral+ Data.ProtoLens.Encoding.Bytes.getVarInt)+ "target_conf"+ loop+ (Lens.Family2.set (Data.ProtoLens.Field.field @"targetConf") y x)+ 32+ -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (Prelude.fmap+ Prelude.fromIntegral+ Data.ProtoLens.Encoding.Bytes.getVarInt)+ "sat_per_byte"+ loop+ (Lens.Family2.set (Data.ProtoLens.Field.field @"satPerByte") y x)+ 42+ -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (do value <- do len <- Data.ProtoLens.Encoding.Bytes.getVarInt+ Data.ProtoLens.Encoding.Bytes.getBytes+ (Prelude.fromIntegral len)+ Data.ProtoLens.Encoding.Bytes.runEither+ (case Data.Text.Encoding.decodeUtf8' value of+ (Prelude.Left err)+ -> Prelude.Left (Prelude.show err)+ (Prelude.Right r) -> Prelude.Right r))+ "delivery_address"+ loop+ (Lens.Family2.set+ (Data.ProtoLens.Field.field @"deliveryAddress") y x)+ 48+ -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ Data.ProtoLens.Encoding.Bytes.getVarInt "sat_per_vbyte"+ loop+ (Lens.Family2.set (Data.ProtoLens.Field.field @"satPerVbyte") y x)+ wire+ -> do !y <- Data.ProtoLens.Encoding.Wire.parseTaggedValueFromWire+ wire+ loop+ (Lens.Family2.over+ Data.ProtoLens.unknownFields (\ !t -> (:) y t) x)+ in+ (Data.ProtoLens.Encoding.Bytes.<?>)+ (do loop Data.ProtoLens.defMessage) "CloseChannelRequest"+ buildMessage+ = \ _x+ -> (Data.Monoid.<>)+ (case+ Lens.Family2.view+ (Data.ProtoLens.Field.field @"maybe'channelPoint") _x+ of+ Prelude.Nothing -> Data.Monoid.mempty+ (Prelude.Just _v)+ -> (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 10)+ ((Prelude..)+ (\ bs+ -> (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt+ (Prelude.fromIntegral (Data.ByteString.length bs)))+ (Data.ProtoLens.Encoding.Bytes.putBytes bs))+ Data.ProtoLens.encodeMessage _v))+ ((Data.Monoid.<>)+ (let+ _v = Lens.Family2.view (Data.ProtoLens.Field.field @"force") _x+ in+ if (Prelude.==) _v Data.ProtoLens.fieldDefault then+ Data.Monoid.mempty+ else+ (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 16)+ ((Prelude..)+ Data.ProtoLens.Encoding.Bytes.putVarInt (\ b -> if b then 1 else 0)+ _v))+ ((Data.Monoid.<>)+ (let+ _v+ = Lens.Family2.view (Data.ProtoLens.Field.field @"targetConf") _x+ in+ if (Prelude.==) _v Data.ProtoLens.fieldDefault then+ Data.Monoid.mempty+ else+ (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 24)+ ((Prelude..)+ Data.ProtoLens.Encoding.Bytes.putVarInt Prelude.fromIntegral _v))+ ((Data.Monoid.<>)+ (let+ _v+ = Lens.Family2.view (Data.ProtoLens.Field.field @"satPerByte") _x+ in+ if (Prelude.==) _v Data.ProtoLens.fieldDefault then+ Data.Monoid.mempty+ else+ (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 32)+ ((Prelude..)+ Data.ProtoLens.Encoding.Bytes.putVarInt Prelude.fromIntegral _v))+ ((Data.Monoid.<>)+ (let+ _v+ = Lens.Family2.view+ (Data.ProtoLens.Field.field @"deliveryAddress") _x+ in+ if (Prelude.==) _v Data.ProtoLens.fieldDefault then+ Data.Monoid.mempty+ else+ (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 42)+ ((Prelude..)+ (\ bs+ -> (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt+ (Prelude.fromIntegral (Data.ByteString.length bs)))+ (Data.ProtoLens.Encoding.Bytes.putBytes bs))+ Data.Text.Encoding.encodeUtf8 _v))+ ((Data.Monoid.<>)+ (let+ _v+ = Lens.Family2.view (Data.ProtoLens.Field.field @"satPerVbyte") _x+ in+ if (Prelude.==) _v Data.ProtoLens.fieldDefault then+ Data.Monoid.mempty+ else+ (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 48)+ (Data.ProtoLens.Encoding.Bytes.putVarInt _v))+ (Data.ProtoLens.Encoding.Wire.buildFieldSet+ (Lens.Family2.view Data.ProtoLens.unknownFields _x)))))))+instance Control.DeepSeq.NFData CloseChannelRequest where+ rnf+ = \ x__+ -> Control.DeepSeq.deepseq+ (_CloseChannelRequest'_unknownFields x__)+ (Control.DeepSeq.deepseq+ (_CloseChannelRequest'channelPoint x__)+ (Control.DeepSeq.deepseq+ (_CloseChannelRequest'force x__)+ (Control.DeepSeq.deepseq+ (_CloseChannelRequest'targetConf x__)+ (Control.DeepSeq.deepseq+ (_CloseChannelRequest'satPerByte x__)+ (Control.DeepSeq.deepseq+ (_CloseChannelRequest'deliveryAddress x__)+ (Control.DeepSeq.deepseq+ (_CloseChannelRequest'satPerVbyte x__) ()))))))+{- | Fields :+ + * 'Proto.Lightning_Fields.maybe'update' @:: Lens' CloseStatusUpdate (Prelude.Maybe CloseStatusUpdate'Update)@+ * 'Proto.Lightning_Fields.maybe'closePending' @:: Lens' CloseStatusUpdate (Prelude.Maybe Proto.Lnrpc.Ln0.PendingUpdate)@+ * 'Proto.Lightning_Fields.closePending' @:: Lens' CloseStatusUpdate Proto.Lnrpc.Ln0.PendingUpdate@+ * 'Proto.Lightning_Fields.maybe'chanClose' @:: Lens' CloseStatusUpdate (Prelude.Maybe ChannelCloseUpdate)@+ * 'Proto.Lightning_Fields.chanClose' @:: Lens' CloseStatusUpdate ChannelCloseUpdate@ -}+data CloseStatusUpdate+ = CloseStatusUpdate'_constructor {_CloseStatusUpdate'update :: !(Prelude.Maybe CloseStatusUpdate'Update),+ _CloseStatusUpdate'_unknownFields :: !Data.ProtoLens.FieldSet}+ deriving stock (Prelude.Eq, Prelude.Ord, GHC.Generics.Generic)+instance Prelude.Show CloseStatusUpdate where+ showsPrec _ __x __s+ = Prelude.showChar+ '{'+ (Prelude.showString+ (Data.ProtoLens.showMessageShort __x) (Prelude.showChar '}' __s))+instance Text.PrettyPrint.GenericPretty.Out CloseStatusUpdate+data CloseStatusUpdate'Update+ = CloseStatusUpdate'ClosePending !Proto.Lnrpc.Ln0.PendingUpdate |+ CloseStatusUpdate'ChanClose !ChannelCloseUpdate+ deriving stock (Prelude.Show,+ Prelude.Eq,+ Prelude.Ord,+ GHC.Generics.Generic)+instance Text.PrettyPrint.GenericPretty.Out CloseStatusUpdate'Update+instance Data.ProtoLens.Field.HasField CloseStatusUpdate "maybe'update" (Prelude.Maybe CloseStatusUpdate'Update) where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _CloseStatusUpdate'update+ (\ x__ y__ -> x__ {_CloseStatusUpdate'update = y__}))+ Prelude.id+instance Data.ProtoLens.Field.HasField CloseStatusUpdate "maybe'closePending" (Prelude.Maybe Proto.Lnrpc.Ln0.PendingUpdate) where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _CloseStatusUpdate'update+ (\ x__ y__ -> x__ {_CloseStatusUpdate'update = y__}))+ (Lens.Family2.Unchecked.lens+ (\ x__+ -> case x__ of+ (Prelude.Just (CloseStatusUpdate'ClosePending x__val))+ -> Prelude.Just x__val+ _otherwise -> Prelude.Nothing)+ (\ _ y__ -> Prelude.fmap CloseStatusUpdate'ClosePending y__))+instance Data.ProtoLens.Field.HasField CloseStatusUpdate "closePending" Proto.Lnrpc.Ln0.PendingUpdate where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _CloseStatusUpdate'update+ (\ x__ y__ -> x__ {_CloseStatusUpdate'update = y__}))+ ((Prelude..)+ (Lens.Family2.Unchecked.lens+ (\ x__+ -> case x__ of+ (Prelude.Just (CloseStatusUpdate'ClosePending x__val))+ -> Prelude.Just x__val+ _otherwise -> Prelude.Nothing)+ (\ _ y__ -> Prelude.fmap CloseStatusUpdate'ClosePending y__))+ (Data.ProtoLens.maybeLens Data.ProtoLens.defMessage))+instance Data.ProtoLens.Field.HasField CloseStatusUpdate "maybe'chanClose" (Prelude.Maybe ChannelCloseUpdate) where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _CloseStatusUpdate'update+ (\ x__ y__ -> x__ {_CloseStatusUpdate'update = y__}))+ (Lens.Family2.Unchecked.lens+ (\ x__+ -> case x__ of+ (Prelude.Just (CloseStatusUpdate'ChanClose x__val))+ -> Prelude.Just x__val+ _otherwise -> Prelude.Nothing)+ (\ _ y__ -> Prelude.fmap CloseStatusUpdate'ChanClose y__))+instance Data.ProtoLens.Field.HasField CloseStatusUpdate "chanClose" ChannelCloseUpdate where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _CloseStatusUpdate'update+ (\ x__ y__ -> x__ {_CloseStatusUpdate'update = y__}))+ ((Prelude..)+ (Lens.Family2.Unchecked.lens+ (\ x__+ -> case x__ of+ (Prelude.Just (CloseStatusUpdate'ChanClose x__val))+ -> Prelude.Just x__val+ _otherwise -> Prelude.Nothing)+ (\ _ y__ -> Prelude.fmap CloseStatusUpdate'ChanClose y__))+ (Data.ProtoLens.maybeLens Data.ProtoLens.defMessage))+instance Data.ProtoLens.Message CloseStatusUpdate where+ messageName _ = Data.Text.pack "lnrpc.CloseStatusUpdate"+ packedMessageDescriptor _+ = "\n\+ \\DC1CloseStatusUpdate\DC2;\n\+ \\rclose_pending\CAN\SOH \SOH(\v2\DC4.lnrpc.PendingUpdateH\NULR\fclosePending\DC2:\n\+ \\n\+ \chan_close\CAN\ETX \SOH(\v2\EM.lnrpc.ChannelCloseUpdateH\NULR\tchanCloseB\b\n\+ \\ACKupdate"+ packedFileDescriptor _ = packedFileDescriptor+ fieldsByTag+ = let+ closePending__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "close_pending"+ (Data.ProtoLens.MessageField Data.ProtoLens.MessageType ::+ Data.ProtoLens.FieldTypeDescriptor Proto.Lnrpc.Ln0.PendingUpdate)+ (Data.ProtoLens.OptionalField+ (Data.ProtoLens.Field.field @"maybe'closePending")) ::+ Data.ProtoLens.FieldDescriptor CloseStatusUpdate+ chanClose__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "chan_close"+ (Data.ProtoLens.MessageField Data.ProtoLens.MessageType ::+ Data.ProtoLens.FieldTypeDescriptor ChannelCloseUpdate)+ (Data.ProtoLens.OptionalField+ (Data.ProtoLens.Field.field @"maybe'chanClose")) ::+ Data.ProtoLens.FieldDescriptor CloseStatusUpdate+ in+ Data.Map.fromList+ [(Data.ProtoLens.Tag 1, closePending__field_descriptor),+ (Data.ProtoLens.Tag 3, chanClose__field_descriptor)]+ unknownFields+ = Lens.Family2.Unchecked.lens+ _CloseStatusUpdate'_unknownFields+ (\ x__ y__ -> x__ {_CloseStatusUpdate'_unknownFields = y__})+ defMessage+ = CloseStatusUpdate'_constructor+ {_CloseStatusUpdate'update = Prelude.Nothing,+ _CloseStatusUpdate'_unknownFields = []}+ parseMessage+ = let+ loop ::+ CloseStatusUpdate+ -> Data.ProtoLens.Encoding.Bytes.Parser CloseStatusUpdate+ loop x+ = do end <- Data.ProtoLens.Encoding.Bytes.atEnd+ if end then+ do (let missing = []+ in+ if Prelude.null missing then+ Prelude.return ()+ else+ Prelude.fail+ ((Prelude.++)+ "Missing required fields: "+ (Prelude.show (missing :: [Prelude.String]))))+ Prelude.return+ (Lens.Family2.over+ Data.ProtoLens.unknownFields (\ !t -> Prelude.reverse t) x)+ else+ do tag <- Data.ProtoLens.Encoding.Bytes.getVarInt+ case tag of+ 10+ -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (do len <- Data.ProtoLens.Encoding.Bytes.getVarInt+ Data.ProtoLens.Encoding.Bytes.isolate+ (Prelude.fromIntegral len) Data.ProtoLens.parseMessage)+ "close_pending"+ loop+ (Lens.Family2.set+ (Data.ProtoLens.Field.field @"closePending") y x)+ 26+ -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (do len <- Data.ProtoLens.Encoding.Bytes.getVarInt+ Data.ProtoLens.Encoding.Bytes.isolate+ (Prelude.fromIntegral len) Data.ProtoLens.parseMessage)+ "chan_close"+ loop+ (Lens.Family2.set (Data.ProtoLens.Field.field @"chanClose") y x)+ wire+ -> do !y <- Data.ProtoLens.Encoding.Wire.parseTaggedValueFromWire+ wire+ loop+ (Lens.Family2.over+ Data.ProtoLens.unknownFields (\ !t -> (:) y t) x)+ in+ (Data.ProtoLens.Encoding.Bytes.<?>)+ (do loop Data.ProtoLens.defMessage) "CloseStatusUpdate"+ buildMessage+ = \ _x+ -> (Data.Monoid.<>)+ (case+ Lens.Family2.view (Data.ProtoLens.Field.field @"maybe'update") _x+ of+ Prelude.Nothing -> Data.Monoid.mempty+ (Prelude.Just (CloseStatusUpdate'ClosePending v))+ -> (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 10)+ ((Prelude..)+ (\ bs+ -> (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt+ (Prelude.fromIntegral (Data.ByteString.length bs)))+ (Data.ProtoLens.Encoding.Bytes.putBytes bs))+ Data.ProtoLens.encodeMessage v)+ (Prelude.Just (CloseStatusUpdate'ChanClose v))+ -> (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 26)+ ((Prelude..)+ (\ bs+ -> (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt+ (Prelude.fromIntegral (Data.ByteString.length bs)))+ (Data.ProtoLens.Encoding.Bytes.putBytes bs))+ Data.ProtoLens.encodeMessage v))+ (Data.ProtoLens.Encoding.Wire.buildFieldSet+ (Lens.Family2.view Data.ProtoLens.unknownFields _x))+instance Control.DeepSeq.NFData CloseStatusUpdate where+ rnf+ = \ x__+ -> Control.DeepSeq.deepseq+ (_CloseStatusUpdate'_unknownFields x__)+ (Control.DeepSeq.deepseq (_CloseStatusUpdate'update x__) ())+instance Control.DeepSeq.NFData CloseStatusUpdate'Update where+ rnf (CloseStatusUpdate'ClosePending x__) = Control.DeepSeq.rnf x__+ rnf (CloseStatusUpdate'ChanClose x__) = Control.DeepSeq.rnf x__+_CloseStatusUpdate'ClosePending ::+ Data.ProtoLens.Prism.Prism' CloseStatusUpdate'Update Proto.Lnrpc.Ln0.PendingUpdate+_CloseStatusUpdate'ClosePending+ = Data.ProtoLens.Prism.prism'+ CloseStatusUpdate'ClosePending+ (\ p__+ -> case p__ of+ (CloseStatusUpdate'ClosePending p__val) -> Prelude.Just p__val+ _otherwise -> Prelude.Nothing)+_CloseStatusUpdate'ChanClose ::+ Data.ProtoLens.Prism.Prism' CloseStatusUpdate'Update ChannelCloseUpdate+_CloseStatusUpdate'ChanClose+ = Data.ProtoLens.Prism.prism'+ CloseStatusUpdate'ChanClose+ (\ p__+ -> case p__ of+ (CloseStatusUpdate'ChanClose p__val) -> Prelude.Just p__val+ _otherwise -> Prelude.Nothing)+{- | Fields :+ + * 'Proto.Lightning_Fields.cooperative' @:: Lens' ClosedChannelsRequest Prelude.Bool@+ * 'Proto.Lightning_Fields.localForce' @:: Lens' ClosedChannelsRequest Prelude.Bool@+ * 'Proto.Lightning_Fields.remoteForce' @:: Lens' ClosedChannelsRequest Prelude.Bool@+ * 'Proto.Lightning_Fields.breach' @:: Lens' ClosedChannelsRequest Prelude.Bool@+ * 'Proto.Lightning_Fields.fundingCanceled' @:: Lens' ClosedChannelsRequest Prelude.Bool@+ * 'Proto.Lightning_Fields.abandoned' @:: Lens' ClosedChannelsRequest Prelude.Bool@ -}+data ClosedChannelsRequest+ = ClosedChannelsRequest'_constructor {_ClosedChannelsRequest'cooperative :: !Prelude.Bool,+ _ClosedChannelsRequest'localForce :: !Prelude.Bool,+ _ClosedChannelsRequest'remoteForce :: !Prelude.Bool,+ _ClosedChannelsRequest'breach :: !Prelude.Bool,+ _ClosedChannelsRequest'fundingCanceled :: !Prelude.Bool,+ _ClosedChannelsRequest'abandoned :: !Prelude.Bool,+ _ClosedChannelsRequest'_unknownFields :: !Data.ProtoLens.FieldSet}+ deriving stock (Prelude.Eq, Prelude.Ord, GHC.Generics.Generic)+instance Prelude.Show ClosedChannelsRequest where+ showsPrec _ __x __s+ = Prelude.showChar+ '{'+ (Prelude.showString+ (Data.ProtoLens.showMessageShort __x) (Prelude.showChar '}' __s))+instance Text.PrettyPrint.GenericPretty.Out ClosedChannelsRequest+instance Data.ProtoLens.Field.HasField ClosedChannelsRequest "cooperative" Prelude.Bool where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _ClosedChannelsRequest'cooperative+ (\ x__ y__ -> x__ {_ClosedChannelsRequest'cooperative = y__}))+ Prelude.id+instance Data.ProtoLens.Field.HasField ClosedChannelsRequest "localForce" Prelude.Bool where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _ClosedChannelsRequest'localForce+ (\ x__ y__ -> x__ {_ClosedChannelsRequest'localForce = y__}))+ Prelude.id+instance Data.ProtoLens.Field.HasField ClosedChannelsRequest "remoteForce" Prelude.Bool where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _ClosedChannelsRequest'remoteForce+ (\ x__ y__ -> x__ {_ClosedChannelsRequest'remoteForce = y__}))+ Prelude.id+instance Data.ProtoLens.Field.HasField ClosedChannelsRequest "breach" Prelude.Bool where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _ClosedChannelsRequest'breach+ (\ x__ y__ -> x__ {_ClosedChannelsRequest'breach = y__}))+ Prelude.id+instance Data.ProtoLens.Field.HasField ClosedChannelsRequest "fundingCanceled" Prelude.Bool where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _ClosedChannelsRequest'fundingCanceled+ (\ x__ y__ -> x__ {_ClosedChannelsRequest'fundingCanceled = y__}))+ Prelude.id+instance Data.ProtoLens.Field.HasField ClosedChannelsRequest "abandoned" Prelude.Bool where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _ClosedChannelsRequest'abandoned+ (\ x__ y__ -> x__ {_ClosedChannelsRequest'abandoned = y__}))+ Prelude.id+instance Data.ProtoLens.Message ClosedChannelsRequest where+ messageName _ = Data.Text.pack "lnrpc.ClosedChannelsRequest"+ packedMessageDescriptor _+ = "\n\+ \\NAKClosedChannelsRequest\DC2 \n\+ \\vcooperative\CAN\SOH \SOH(\bR\vcooperative\DC2\US\n\+ \\vlocal_force\CAN\STX \SOH(\bR\n\+ \localForce\DC2!\n\+ \\fremote_force\CAN\ETX \SOH(\bR\vremoteForce\DC2\SYN\n\+ \\ACKbreach\CAN\EOT \SOH(\bR\ACKbreach\DC2)\n\+ \\DLEfunding_canceled\CAN\ENQ \SOH(\bR\SIfundingCanceled\DC2\FS\n\+ \\tabandoned\CAN\ACK \SOH(\bR\tabandoned"+ packedFileDescriptor _ = packedFileDescriptor+ fieldsByTag+ = let+ cooperative__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "cooperative"+ (Data.ProtoLens.ScalarField Data.ProtoLens.BoolField ::+ Data.ProtoLens.FieldTypeDescriptor Prelude.Bool)+ (Data.ProtoLens.PlainField+ Data.ProtoLens.Optional+ (Data.ProtoLens.Field.field @"cooperative")) ::+ Data.ProtoLens.FieldDescriptor ClosedChannelsRequest+ localForce__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "local_force"+ (Data.ProtoLens.ScalarField Data.ProtoLens.BoolField ::+ Data.ProtoLens.FieldTypeDescriptor Prelude.Bool)+ (Data.ProtoLens.PlainField+ Data.ProtoLens.Optional+ (Data.ProtoLens.Field.field @"localForce")) ::+ Data.ProtoLens.FieldDescriptor ClosedChannelsRequest+ remoteForce__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "remote_force"+ (Data.ProtoLens.ScalarField Data.ProtoLens.BoolField ::+ Data.ProtoLens.FieldTypeDescriptor Prelude.Bool)+ (Data.ProtoLens.PlainField+ Data.ProtoLens.Optional+ (Data.ProtoLens.Field.field @"remoteForce")) ::+ Data.ProtoLens.FieldDescriptor ClosedChannelsRequest+ breach__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "breach"+ (Data.ProtoLens.ScalarField Data.ProtoLens.BoolField ::+ Data.ProtoLens.FieldTypeDescriptor Prelude.Bool)+ (Data.ProtoLens.PlainField+ Data.ProtoLens.Optional (Data.ProtoLens.Field.field @"breach")) ::+ Data.ProtoLens.FieldDescriptor ClosedChannelsRequest+ fundingCanceled__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "funding_canceled"+ (Data.ProtoLens.ScalarField Data.ProtoLens.BoolField ::+ Data.ProtoLens.FieldTypeDescriptor Prelude.Bool)+ (Data.ProtoLens.PlainField+ Data.ProtoLens.Optional+ (Data.ProtoLens.Field.field @"fundingCanceled")) ::+ Data.ProtoLens.FieldDescriptor ClosedChannelsRequest+ abandoned__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "abandoned"+ (Data.ProtoLens.ScalarField Data.ProtoLens.BoolField ::+ Data.ProtoLens.FieldTypeDescriptor Prelude.Bool)+ (Data.ProtoLens.PlainField+ Data.ProtoLens.Optional+ (Data.ProtoLens.Field.field @"abandoned")) ::+ Data.ProtoLens.FieldDescriptor ClosedChannelsRequest+ in+ Data.Map.fromList+ [(Data.ProtoLens.Tag 1, cooperative__field_descriptor),+ (Data.ProtoLens.Tag 2, localForce__field_descriptor),+ (Data.ProtoLens.Tag 3, remoteForce__field_descriptor),+ (Data.ProtoLens.Tag 4, breach__field_descriptor),+ (Data.ProtoLens.Tag 5, fundingCanceled__field_descriptor),+ (Data.ProtoLens.Tag 6, abandoned__field_descriptor)]+ unknownFields+ = Lens.Family2.Unchecked.lens+ _ClosedChannelsRequest'_unknownFields+ (\ x__ y__ -> x__ {_ClosedChannelsRequest'_unknownFields = y__})+ defMessage+ = ClosedChannelsRequest'_constructor+ {_ClosedChannelsRequest'cooperative = Data.ProtoLens.fieldDefault,+ _ClosedChannelsRequest'localForce = Data.ProtoLens.fieldDefault,+ _ClosedChannelsRequest'remoteForce = Data.ProtoLens.fieldDefault,+ _ClosedChannelsRequest'breach = Data.ProtoLens.fieldDefault,+ _ClosedChannelsRequest'fundingCanceled = Data.ProtoLens.fieldDefault,+ _ClosedChannelsRequest'abandoned = Data.ProtoLens.fieldDefault,+ _ClosedChannelsRequest'_unknownFields = []}+ parseMessage+ = let+ loop ::+ ClosedChannelsRequest+ -> Data.ProtoLens.Encoding.Bytes.Parser ClosedChannelsRequest+ loop x+ = do end <- Data.ProtoLens.Encoding.Bytes.atEnd+ if end then+ do (let missing = []+ in+ if Prelude.null missing then+ Prelude.return ()+ else+ Prelude.fail+ ((Prelude.++)+ "Missing required fields: "+ (Prelude.show (missing :: [Prelude.String]))))+ Prelude.return+ (Lens.Family2.over+ Data.ProtoLens.unknownFields (\ !t -> Prelude.reverse t) x)+ else+ do tag <- Data.ProtoLens.Encoding.Bytes.getVarInt+ case tag of+ 8 -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (Prelude.fmap+ ((Prelude./=) 0) Data.ProtoLens.Encoding.Bytes.getVarInt)+ "cooperative"+ loop+ (Lens.Family2.set (Data.ProtoLens.Field.field @"cooperative") y x)+ 16+ -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (Prelude.fmap+ ((Prelude./=) 0) Data.ProtoLens.Encoding.Bytes.getVarInt)+ "local_force"+ loop+ (Lens.Family2.set (Data.ProtoLens.Field.field @"localForce") y x)+ 24+ -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (Prelude.fmap+ ((Prelude./=) 0) Data.ProtoLens.Encoding.Bytes.getVarInt)+ "remote_force"+ loop+ (Lens.Family2.set (Data.ProtoLens.Field.field @"remoteForce") y x)+ 32+ -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (Prelude.fmap+ ((Prelude./=) 0) Data.ProtoLens.Encoding.Bytes.getVarInt)+ "breach"+ loop (Lens.Family2.set (Data.ProtoLens.Field.field @"breach") y x)+ 40+ -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (Prelude.fmap+ ((Prelude./=) 0) Data.ProtoLens.Encoding.Bytes.getVarInt)+ "funding_canceled"+ loop+ (Lens.Family2.set+ (Data.ProtoLens.Field.field @"fundingCanceled") y x)+ 48+ -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (Prelude.fmap+ ((Prelude./=) 0) Data.ProtoLens.Encoding.Bytes.getVarInt)+ "abandoned"+ loop+ (Lens.Family2.set (Data.ProtoLens.Field.field @"abandoned") y x)+ wire+ -> do !y <- Data.ProtoLens.Encoding.Wire.parseTaggedValueFromWire+ wire+ loop+ (Lens.Family2.over+ Data.ProtoLens.unknownFields (\ !t -> (:) y t) x)+ in+ (Data.ProtoLens.Encoding.Bytes.<?>)+ (do loop Data.ProtoLens.defMessage) "ClosedChannelsRequest"+ buildMessage+ = \ _x+ -> (Data.Monoid.<>)+ (let+ _v+ = Lens.Family2.view (Data.ProtoLens.Field.field @"cooperative") _x+ in+ if (Prelude.==) _v Data.ProtoLens.fieldDefault then+ Data.Monoid.mempty+ else+ (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 8)+ ((Prelude..)+ Data.ProtoLens.Encoding.Bytes.putVarInt (\ b -> if b then 1 else 0)+ _v))+ ((Data.Monoid.<>)+ (let+ _v+ = Lens.Family2.view (Data.ProtoLens.Field.field @"localForce") _x+ in+ if (Prelude.==) _v Data.ProtoLens.fieldDefault then+ Data.Monoid.mempty+ else+ (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 16)+ ((Prelude..)+ Data.ProtoLens.Encoding.Bytes.putVarInt (\ b -> if b then 1 else 0)+ _v))+ ((Data.Monoid.<>)+ (let+ _v+ = Lens.Family2.view (Data.ProtoLens.Field.field @"remoteForce") _x+ in+ if (Prelude.==) _v Data.ProtoLens.fieldDefault then+ Data.Monoid.mempty+ else+ (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 24)+ ((Prelude..)+ Data.ProtoLens.Encoding.Bytes.putVarInt (\ b -> if b then 1 else 0)+ _v))+ ((Data.Monoid.<>)+ (let+ _v = Lens.Family2.view (Data.ProtoLens.Field.field @"breach") _x+ in+ if (Prelude.==) _v Data.ProtoLens.fieldDefault then+ Data.Monoid.mempty+ else+ (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 32)+ ((Prelude..)+ Data.ProtoLens.Encoding.Bytes.putVarInt+ (\ b -> if b then 1 else 0) _v))+ ((Data.Monoid.<>)+ (let+ _v+ = Lens.Family2.view+ (Data.ProtoLens.Field.field @"fundingCanceled") _x+ in+ if (Prelude.==) _v Data.ProtoLens.fieldDefault then+ Data.Monoid.mempty+ else+ (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 40)+ ((Prelude..)+ Data.ProtoLens.Encoding.Bytes.putVarInt+ (\ b -> if b then 1 else 0) _v))+ ((Data.Monoid.<>)+ (let+ _v = Lens.Family2.view (Data.ProtoLens.Field.field @"abandoned") _x+ in+ if (Prelude.==) _v Data.ProtoLens.fieldDefault then+ Data.Monoid.mempty+ else+ (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 48)+ ((Prelude..)+ Data.ProtoLens.Encoding.Bytes.putVarInt+ (\ b -> if b then 1 else 0) _v))+ (Data.ProtoLens.Encoding.Wire.buildFieldSet+ (Lens.Family2.view Data.ProtoLens.unknownFields _x)))))))+instance Control.DeepSeq.NFData ClosedChannelsRequest where+ rnf+ = \ x__+ -> Control.DeepSeq.deepseq+ (_ClosedChannelsRequest'_unknownFields x__)+ (Control.DeepSeq.deepseq+ (_ClosedChannelsRequest'cooperative x__)+ (Control.DeepSeq.deepseq+ (_ClosedChannelsRequest'localForce x__)+ (Control.DeepSeq.deepseq+ (_ClosedChannelsRequest'remoteForce x__)+ (Control.DeepSeq.deepseq+ (_ClosedChannelsRequest'breach x__)+ (Control.DeepSeq.deepseq+ (_ClosedChannelsRequest'fundingCanceled x__)+ (Control.DeepSeq.deepseq+ (_ClosedChannelsRequest'abandoned x__) ()))))))+{- | Fields :+ + * 'Proto.Lightning_Fields.channels' @:: Lens' ClosedChannelsResponse [Proto.Lnrpc.Ln0.ChannelCloseSummary]@+ * 'Proto.Lightning_Fields.vec'channels' @:: Lens' ClosedChannelsResponse (Data.Vector.Vector Proto.Lnrpc.Ln0.ChannelCloseSummary)@ -}+data ClosedChannelsResponse+ = ClosedChannelsResponse'_constructor {_ClosedChannelsResponse'channels :: !(Data.Vector.Vector Proto.Lnrpc.Ln0.ChannelCloseSummary),+ _ClosedChannelsResponse'_unknownFields :: !Data.ProtoLens.FieldSet}+ deriving stock (Prelude.Eq, Prelude.Ord, GHC.Generics.Generic)+instance Prelude.Show ClosedChannelsResponse where+ showsPrec _ __x __s+ = Prelude.showChar+ '{'+ (Prelude.showString+ (Data.ProtoLens.showMessageShort __x) (Prelude.showChar '}' __s))+instance Text.PrettyPrint.GenericPretty.Out ClosedChannelsResponse+instance Data.ProtoLens.Field.HasField ClosedChannelsResponse "channels" [Proto.Lnrpc.Ln0.ChannelCloseSummary] where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _ClosedChannelsResponse'channels+ (\ x__ y__ -> x__ {_ClosedChannelsResponse'channels = y__}))+ (Lens.Family2.Unchecked.lens+ Data.Vector.Generic.toList+ (\ _ y__ -> Data.Vector.Generic.fromList y__))+instance Data.ProtoLens.Field.HasField ClosedChannelsResponse "vec'channels" (Data.Vector.Vector Proto.Lnrpc.Ln0.ChannelCloseSummary) where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _ClosedChannelsResponse'channels+ (\ x__ y__ -> x__ {_ClosedChannelsResponse'channels = y__}))+ Prelude.id+instance Data.ProtoLens.Message ClosedChannelsResponse where+ messageName _ = Data.Text.pack "lnrpc.ClosedChannelsResponse"+ packedMessageDescriptor _+ = "\n\+ \\SYNClosedChannelsResponse\DC26\n\+ \\bchannels\CAN\SOH \ETX(\v2\SUB.lnrpc.ChannelCloseSummaryR\bchannels"+ packedFileDescriptor _ = packedFileDescriptor+ fieldsByTag+ = let+ channels__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "channels"+ (Data.ProtoLens.MessageField Data.ProtoLens.MessageType ::+ Data.ProtoLens.FieldTypeDescriptor Proto.Lnrpc.Ln0.ChannelCloseSummary)+ (Data.ProtoLens.RepeatedField+ Data.ProtoLens.Unpacked+ (Data.ProtoLens.Field.field @"channels")) ::+ Data.ProtoLens.FieldDescriptor ClosedChannelsResponse+ in+ Data.Map.fromList+ [(Data.ProtoLens.Tag 1, channels__field_descriptor)]+ unknownFields+ = Lens.Family2.Unchecked.lens+ _ClosedChannelsResponse'_unknownFields+ (\ x__ y__ -> x__ {_ClosedChannelsResponse'_unknownFields = y__})+ defMessage+ = ClosedChannelsResponse'_constructor+ {_ClosedChannelsResponse'channels = Data.Vector.Generic.empty,+ _ClosedChannelsResponse'_unknownFields = []}+ parseMessage+ = let+ loop ::+ ClosedChannelsResponse+ -> Data.ProtoLens.Encoding.Growing.Growing Data.Vector.Vector Data.ProtoLens.Encoding.Growing.RealWorld Proto.Lnrpc.Ln0.ChannelCloseSummary+ -> Data.ProtoLens.Encoding.Bytes.Parser ClosedChannelsResponse+ loop x mutable'channels+ = do end <- Data.ProtoLens.Encoding.Bytes.atEnd+ if end then+ do frozen'channels <- Data.ProtoLens.Encoding.Parser.Unsafe.unsafeLiftIO+ (Data.ProtoLens.Encoding.Growing.unsafeFreeze+ mutable'channels)+ (let missing = []+ in+ if Prelude.null missing then+ Prelude.return ()+ else+ Prelude.fail+ ((Prelude.++)+ "Missing required fields: "+ (Prelude.show (missing :: [Prelude.String]))))+ Prelude.return+ (Lens.Family2.over+ Data.ProtoLens.unknownFields (\ !t -> Prelude.reverse t)+ (Lens.Family2.set+ (Data.ProtoLens.Field.field @"vec'channels") frozen'channels x))+ else+ do tag <- Data.ProtoLens.Encoding.Bytes.getVarInt+ case tag of+ 10+ -> do !y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (do len <- Data.ProtoLens.Encoding.Bytes.getVarInt+ Data.ProtoLens.Encoding.Bytes.isolate+ (Prelude.fromIntegral len)+ Data.ProtoLens.parseMessage)+ "channels"+ v <- Data.ProtoLens.Encoding.Parser.Unsafe.unsafeLiftIO+ (Data.ProtoLens.Encoding.Growing.append mutable'channels y)+ loop x v+ wire+ -> do !y <- Data.ProtoLens.Encoding.Wire.parseTaggedValueFromWire+ wire+ loop+ (Lens.Family2.over+ Data.ProtoLens.unknownFields (\ !t -> (:) y t) x)+ mutable'channels+ in+ (Data.ProtoLens.Encoding.Bytes.<?>)+ (do mutable'channels <- Data.ProtoLens.Encoding.Parser.Unsafe.unsafeLiftIO+ Data.ProtoLens.Encoding.Growing.new+ loop Data.ProtoLens.defMessage mutable'channels)+ "ClosedChannelsResponse"+ buildMessage+ = \ _x+ -> (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.foldMapBuilder+ (\ _v+ -> (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 10)+ ((Prelude..)+ (\ bs+ -> (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt+ (Prelude.fromIntegral (Data.ByteString.length bs)))+ (Data.ProtoLens.Encoding.Bytes.putBytes bs))+ Data.ProtoLens.encodeMessage _v))+ (Lens.Family2.view+ (Data.ProtoLens.Field.field @"vec'channels") _x))+ (Data.ProtoLens.Encoding.Wire.buildFieldSet+ (Lens.Family2.view Data.ProtoLens.unknownFields _x))+instance Control.DeepSeq.NFData ClosedChannelsResponse where+ rnf+ = \ x__+ -> Control.DeepSeq.deepseq+ (_ClosedChannelsResponse'_unknownFields x__)+ (Control.DeepSeq.deepseq (_ClosedChannelsResponse'channels x__) ())+{- | Fields :+ + * 'Proto.Lightning_Fields.blockSha' @:: Lens' ConfirmationUpdate Data.ByteString.ByteString@+ * 'Proto.Lightning_Fields.blockHeight' @:: Lens' ConfirmationUpdate Data.Int.Int32@+ * 'Proto.Lightning_Fields.numConfsLeft' @:: Lens' ConfirmationUpdate Data.Word.Word32@ -}+data ConfirmationUpdate+ = ConfirmationUpdate'_constructor {_ConfirmationUpdate'blockSha :: !Data.ByteString.ByteString,+ _ConfirmationUpdate'blockHeight :: !Data.Int.Int32,+ _ConfirmationUpdate'numConfsLeft :: !Data.Word.Word32,+ _ConfirmationUpdate'_unknownFields :: !Data.ProtoLens.FieldSet}+ deriving stock (Prelude.Eq, Prelude.Ord, GHC.Generics.Generic)+instance Prelude.Show ConfirmationUpdate where+ showsPrec _ __x __s+ = Prelude.showChar+ '{'+ (Prelude.showString+ (Data.ProtoLens.showMessageShort __x) (Prelude.showChar '}' __s))+instance Text.PrettyPrint.GenericPretty.Out ConfirmationUpdate+instance Data.ProtoLens.Field.HasField ConfirmationUpdate "blockSha" Data.ByteString.ByteString where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _ConfirmationUpdate'blockSha+ (\ x__ y__ -> x__ {_ConfirmationUpdate'blockSha = y__}))+ Prelude.id+instance Data.ProtoLens.Field.HasField ConfirmationUpdate "blockHeight" Data.Int.Int32 where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _ConfirmationUpdate'blockHeight+ (\ x__ y__ -> x__ {_ConfirmationUpdate'blockHeight = y__}))+ Prelude.id+instance Data.ProtoLens.Field.HasField ConfirmationUpdate "numConfsLeft" Data.Word.Word32 where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _ConfirmationUpdate'numConfsLeft+ (\ x__ y__ -> x__ {_ConfirmationUpdate'numConfsLeft = y__}))+ Prelude.id+instance Data.ProtoLens.Message ConfirmationUpdate where+ messageName _ = Data.Text.pack "lnrpc.ConfirmationUpdate"+ packedMessageDescriptor _+ = "\n\+ \\DC2ConfirmationUpdate\DC2\ESC\n\+ \\tblock_sha\CAN\SOH \SOH(\fR\bblockSha\DC2!\n\+ \\fblock_height\CAN\STX \SOH(\ENQR\vblockHeight\DC2$\n\+ \\SOnum_confs_left\CAN\ETX \SOH(\rR\fnumConfsLeft"+ packedFileDescriptor _ = packedFileDescriptor+ fieldsByTag+ = let+ blockSha__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "block_sha"+ (Data.ProtoLens.ScalarField Data.ProtoLens.BytesField ::+ Data.ProtoLens.FieldTypeDescriptor Data.ByteString.ByteString)+ (Data.ProtoLens.PlainField+ Data.ProtoLens.Optional+ (Data.ProtoLens.Field.field @"blockSha")) ::+ Data.ProtoLens.FieldDescriptor ConfirmationUpdate+ blockHeight__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "block_height"+ (Data.ProtoLens.ScalarField Data.ProtoLens.Int32Field ::+ Data.ProtoLens.FieldTypeDescriptor Data.Int.Int32)+ (Data.ProtoLens.PlainField+ Data.ProtoLens.Optional+ (Data.ProtoLens.Field.field @"blockHeight")) ::+ Data.ProtoLens.FieldDescriptor ConfirmationUpdate+ numConfsLeft__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "num_confs_left"+ (Data.ProtoLens.ScalarField Data.ProtoLens.UInt32Field ::+ Data.ProtoLens.FieldTypeDescriptor Data.Word.Word32)+ (Data.ProtoLens.PlainField+ Data.ProtoLens.Optional+ (Data.ProtoLens.Field.field @"numConfsLeft")) ::+ Data.ProtoLens.FieldDescriptor ConfirmationUpdate+ in+ Data.Map.fromList+ [(Data.ProtoLens.Tag 1, blockSha__field_descriptor),+ (Data.ProtoLens.Tag 2, blockHeight__field_descriptor),+ (Data.ProtoLens.Tag 3, numConfsLeft__field_descriptor)]+ unknownFields+ = Lens.Family2.Unchecked.lens+ _ConfirmationUpdate'_unknownFields+ (\ x__ y__ -> x__ {_ConfirmationUpdate'_unknownFields = y__})+ defMessage+ = ConfirmationUpdate'_constructor+ {_ConfirmationUpdate'blockSha = Data.ProtoLens.fieldDefault,+ _ConfirmationUpdate'blockHeight = Data.ProtoLens.fieldDefault,+ _ConfirmationUpdate'numConfsLeft = Data.ProtoLens.fieldDefault,+ _ConfirmationUpdate'_unknownFields = []}+ parseMessage+ = let+ loop ::+ ConfirmationUpdate+ -> Data.ProtoLens.Encoding.Bytes.Parser ConfirmationUpdate+ loop x+ = do end <- Data.ProtoLens.Encoding.Bytes.atEnd+ if end then+ do (let missing = []+ in+ if Prelude.null missing then+ Prelude.return ()+ else+ Prelude.fail+ ((Prelude.++)+ "Missing required fields: "+ (Prelude.show (missing :: [Prelude.String]))))+ Prelude.return+ (Lens.Family2.over+ Data.ProtoLens.unknownFields (\ !t -> Prelude.reverse t) x)+ else+ do tag <- Data.ProtoLens.Encoding.Bytes.getVarInt+ case tag of+ 10+ -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (do len <- Data.ProtoLens.Encoding.Bytes.getVarInt+ Data.ProtoLens.Encoding.Bytes.getBytes+ (Prelude.fromIntegral len))+ "block_sha"+ loop+ (Lens.Family2.set (Data.ProtoLens.Field.field @"blockSha") y x)+ 16+ -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (Prelude.fmap+ Prelude.fromIntegral+ Data.ProtoLens.Encoding.Bytes.getVarInt)+ "block_height"+ loop+ (Lens.Family2.set (Data.ProtoLens.Field.field @"blockHeight") y x)+ 24+ -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (Prelude.fmap+ Prelude.fromIntegral+ Data.ProtoLens.Encoding.Bytes.getVarInt)+ "num_confs_left"+ loop+ (Lens.Family2.set+ (Data.ProtoLens.Field.field @"numConfsLeft") y x)+ wire+ -> do !y <- Data.ProtoLens.Encoding.Wire.parseTaggedValueFromWire+ wire+ loop+ (Lens.Family2.over+ Data.ProtoLens.unknownFields (\ !t -> (:) y t) x)+ in+ (Data.ProtoLens.Encoding.Bytes.<?>)+ (do loop Data.ProtoLens.defMessage) "ConfirmationUpdate"+ buildMessage+ = \ _x+ -> (Data.Monoid.<>)+ (let+ _v = Lens.Family2.view (Data.ProtoLens.Field.field @"blockSha") _x+ in+ if (Prelude.==) _v Data.ProtoLens.fieldDefault then+ Data.Monoid.mempty+ else+ (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 10)+ ((\ bs+ -> (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt+ (Prelude.fromIntegral (Data.ByteString.length bs)))+ (Data.ProtoLens.Encoding.Bytes.putBytes bs))+ _v))+ ((Data.Monoid.<>)+ (let+ _v+ = Lens.Family2.view (Data.ProtoLens.Field.field @"blockHeight") _x+ in+ if (Prelude.==) _v Data.ProtoLens.fieldDefault then+ Data.Monoid.mempty+ else+ (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 16)+ ((Prelude..)+ Data.ProtoLens.Encoding.Bytes.putVarInt Prelude.fromIntegral _v))+ ((Data.Monoid.<>)+ (let+ _v+ = Lens.Family2.view (Data.ProtoLens.Field.field @"numConfsLeft") _x+ in+ if (Prelude.==) _v Data.ProtoLens.fieldDefault then+ Data.Monoid.mempty+ else+ (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 24)+ ((Prelude..)+ Data.ProtoLens.Encoding.Bytes.putVarInt Prelude.fromIntegral _v))+ (Data.ProtoLens.Encoding.Wire.buildFieldSet+ (Lens.Family2.view Data.ProtoLens.unknownFields _x))))+instance Control.DeepSeq.NFData ConfirmationUpdate where+ rnf+ = \ x__+ -> Control.DeepSeq.deepseq+ (_ConfirmationUpdate'_unknownFields x__)+ (Control.DeepSeq.deepseq+ (_ConfirmationUpdate'blockSha x__)+ (Control.DeepSeq.deepseq+ (_ConfirmationUpdate'blockHeight x__)+ (Control.DeepSeq.deepseq+ (_ConfirmationUpdate'numConfsLeft x__) ())))+{- | Fields :+ + * 'Proto.Lightning_Fields.addr' @:: Lens' ConnectPeerRequest LightningAddress@+ * 'Proto.Lightning_Fields.maybe'addr' @:: Lens' ConnectPeerRequest (Prelude.Maybe LightningAddress)@+ * 'Proto.Lightning_Fields.perm' @:: Lens' ConnectPeerRequest Prelude.Bool@+ * 'Proto.Lightning_Fields.timeout' @:: Lens' ConnectPeerRequest Data.Word.Word64@ -}+data ConnectPeerRequest+ = ConnectPeerRequest'_constructor {_ConnectPeerRequest'addr :: !(Prelude.Maybe LightningAddress),+ _ConnectPeerRequest'perm :: !Prelude.Bool,+ _ConnectPeerRequest'timeout :: !Data.Word.Word64,+ _ConnectPeerRequest'_unknownFields :: !Data.ProtoLens.FieldSet}+ deriving stock (Prelude.Eq, Prelude.Ord, GHC.Generics.Generic)+instance Prelude.Show ConnectPeerRequest where+ showsPrec _ __x __s+ = Prelude.showChar+ '{'+ (Prelude.showString+ (Data.ProtoLens.showMessageShort __x) (Prelude.showChar '}' __s))+instance Text.PrettyPrint.GenericPretty.Out ConnectPeerRequest+instance Data.ProtoLens.Field.HasField ConnectPeerRequest "addr" LightningAddress where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _ConnectPeerRequest'addr+ (\ x__ y__ -> x__ {_ConnectPeerRequest'addr = y__}))+ (Data.ProtoLens.maybeLens Data.ProtoLens.defMessage)+instance Data.ProtoLens.Field.HasField ConnectPeerRequest "maybe'addr" (Prelude.Maybe LightningAddress) where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _ConnectPeerRequest'addr+ (\ x__ y__ -> x__ {_ConnectPeerRequest'addr = y__}))+ Prelude.id+instance Data.ProtoLens.Field.HasField ConnectPeerRequest "perm" Prelude.Bool where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _ConnectPeerRequest'perm+ (\ x__ y__ -> x__ {_ConnectPeerRequest'perm = y__}))+ Prelude.id+instance Data.ProtoLens.Field.HasField ConnectPeerRequest "timeout" Data.Word.Word64 where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _ConnectPeerRequest'timeout+ (\ x__ y__ -> x__ {_ConnectPeerRequest'timeout = y__}))+ Prelude.id+instance Data.ProtoLens.Message ConnectPeerRequest where+ messageName _ = Data.Text.pack "lnrpc.ConnectPeerRequest"+ packedMessageDescriptor _+ = "\n\+ \\DC2ConnectPeerRequest\DC2+\n\+ \\EOTaddr\CAN\SOH \SOH(\v2\ETB.lnrpc.LightningAddressR\EOTaddr\DC2\DC2\n\+ \\EOTperm\CAN\STX \SOH(\bR\EOTperm\DC2\CAN\n\+ \\atimeout\CAN\ETX \SOH(\EOTR\atimeout"+ packedFileDescriptor _ = packedFileDescriptor+ fieldsByTag+ = let+ addr__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "addr"+ (Data.ProtoLens.MessageField Data.ProtoLens.MessageType ::+ Data.ProtoLens.FieldTypeDescriptor LightningAddress)+ (Data.ProtoLens.OptionalField+ (Data.ProtoLens.Field.field @"maybe'addr")) ::+ Data.ProtoLens.FieldDescriptor ConnectPeerRequest+ perm__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "perm"+ (Data.ProtoLens.ScalarField Data.ProtoLens.BoolField ::+ Data.ProtoLens.FieldTypeDescriptor Prelude.Bool)+ (Data.ProtoLens.PlainField+ Data.ProtoLens.Optional (Data.ProtoLens.Field.field @"perm")) ::+ Data.ProtoLens.FieldDescriptor ConnectPeerRequest+ timeout__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "timeout"+ (Data.ProtoLens.ScalarField Data.ProtoLens.UInt64Field ::+ Data.ProtoLens.FieldTypeDescriptor Data.Word.Word64)+ (Data.ProtoLens.PlainField+ Data.ProtoLens.Optional (Data.ProtoLens.Field.field @"timeout")) ::+ Data.ProtoLens.FieldDescriptor ConnectPeerRequest+ in+ Data.Map.fromList+ [(Data.ProtoLens.Tag 1, addr__field_descriptor),+ (Data.ProtoLens.Tag 2, perm__field_descriptor),+ (Data.ProtoLens.Tag 3, timeout__field_descriptor)]+ unknownFields+ = Lens.Family2.Unchecked.lens+ _ConnectPeerRequest'_unknownFields+ (\ x__ y__ -> x__ {_ConnectPeerRequest'_unknownFields = y__})+ defMessage+ = ConnectPeerRequest'_constructor+ {_ConnectPeerRequest'addr = Prelude.Nothing,+ _ConnectPeerRequest'perm = Data.ProtoLens.fieldDefault,+ _ConnectPeerRequest'timeout = Data.ProtoLens.fieldDefault,+ _ConnectPeerRequest'_unknownFields = []}+ parseMessage+ = let+ loop ::+ ConnectPeerRequest+ -> Data.ProtoLens.Encoding.Bytes.Parser ConnectPeerRequest+ loop x+ = do end <- Data.ProtoLens.Encoding.Bytes.atEnd+ if end then+ do (let missing = []+ in+ if Prelude.null missing then+ Prelude.return ()+ else+ Prelude.fail+ ((Prelude.++)+ "Missing required fields: "+ (Prelude.show (missing :: [Prelude.String]))))+ Prelude.return+ (Lens.Family2.over+ Data.ProtoLens.unknownFields (\ !t -> Prelude.reverse t) x)+ else+ do tag <- Data.ProtoLens.Encoding.Bytes.getVarInt+ case tag of+ 10+ -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (do len <- Data.ProtoLens.Encoding.Bytes.getVarInt+ Data.ProtoLens.Encoding.Bytes.isolate+ (Prelude.fromIntegral len) Data.ProtoLens.parseMessage)+ "addr"+ loop (Lens.Family2.set (Data.ProtoLens.Field.field @"addr") y x)+ 16+ -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (Prelude.fmap+ ((Prelude./=) 0) Data.ProtoLens.Encoding.Bytes.getVarInt)+ "perm"+ loop (Lens.Family2.set (Data.ProtoLens.Field.field @"perm") y x)+ 24+ -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ Data.ProtoLens.Encoding.Bytes.getVarInt "timeout"+ loop (Lens.Family2.set (Data.ProtoLens.Field.field @"timeout") y x)+ wire+ -> do !y <- Data.ProtoLens.Encoding.Wire.parseTaggedValueFromWire+ wire+ loop+ (Lens.Family2.over+ Data.ProtoLens.unknownFields (\ !t -> (:) y t) x)+ in+ (Data.ProtoLens.Encoding.Bytes.<?>)+ (do loop Data.ProtoLens.defMessage) "ConnectPeerRequest"+ buildMessage+ = \ _x+ -> (Data.Monoid.<>)+ (case+ Lens.Family2.view (Data.ProtoLens.Field.field @"maybe'addr") _x+ of+ Prelude.Nothing -> Data.Monoid.mempty+ (Prelude.Just _v)+ -> (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 10)+ ((Prelude..)+ (\ bs+ -> (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt+ (Prelude.fromIntegral (Data.ByteString.length bs)))+ (Data.ProtoLens.Encoding.Bytes.putBytes bs))+ Data.ProtoLens.encodeMessage _v))+ ((Data.Monoid.<>)+ (let _v = Lens.Family2.view (Data.ProtoLens.Field.field @"perm") _x+ in+ if (Prelude.==) _v Data.ProtoLens.fieldDefault then+ Data.Monoid.mempty+ else+ (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 16)+ ((Prelude..)+ Data.ProtoLens.Encoding.Bytes.putVarInt (\ b -> if b then 1 else 0)+ _v))+ ((Data.Monoid.<>)+ (let+ _v = Lens.Family2.view (Data.ProtoLens.Field.field @"timeout") _x+ in+ if (Prelude.==) _v Data.ProtoLens.fieldDefault then+ Data.Monoid.mempty+ else+ (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 24)+ (Data.ProtoLens.Encoding.Bytes.putVarInt _v))+ (Data.ProtoLens.Encoding.Wire.buildFieldSet+ (Lens.Family2.view Data.ProtoLens.unknownFields _x))))+instance Control.DeepSeq.NFData ConnectPeerRequest where+ rnf+ = \ x__+ -> Control.DeepSeq.deepseq+ (_ConnectPeerRequest'_unknownFields x__)+ (Control.DeepSeq.deepseq+ (_ConnectPeerRequest'addr x__)+ (Control.DeepSeq.deepseq+ (_ConnectPeerRequest'perm x__)+ (Control.DeepSeq.deepseq (_ConnectPeerRequest'timeout x__) ())))+{- | Fields :+ -}+data ConnectPeerResponse+ = ConnectPeerResponse'_constructor {_ConnectPeerResponse'_unknownFields :: !Data.ProtoLens.FieldSet}+ deriving stock (Prelude.Eq, Prelude.Ord, GHC.Generics.Generic)+instance Prelude.Show ConnectPeerResponse where+ showsPrec _ __x __s+ = Prelude.showChar+ '{'+ (Prelude.showString+ (Data.ProtoLens.showMessageShort __x) (Prelude.showChar '}' __s))+instance Text.PrettyPrint.GenericPretty.Out ConnectPeerResponse+instance Data.ProtoLens.Message ConnectPeerResponse where+ messageName _ = Data.Text.pack "lnrpc.ConnectPeerResponse"+ packedMessageDescriptor _+ = "\n\+ \\DC3ConnectPeerResponse"+ packedFileDescriptor _ = packedFileDescriptor+ fieldsByTag = let in Data.Map.fromList []+ unknownFields+ = Lens.Family2.Unchecked.lens+ _ConnectPeerResponse'_unknownFields+ (\ x__ y__ -> x__ {_ConnectPeerResponse'_unknownFields = y__})+ defMessage+ = ConnectPeerResponse'_constructor+ {_ConnectPeerResponse'_unknownFields = []}+ parseMessage+ = let+ loop ::+ ConnectPeerResponse+ -> Data.ProtoLens.Encoding.Bytes.Parser ConnectPeerResponse+ loop x+ = do end <- Data.ProtoLens.Encoding.Bytes.atEnd+ if end then+ do (let missing = []+ in+ if Prelude.null missing then+ Prelude.return ()+ else+ Prelude.fail+ ((Prelude.++)+ "Missing required fields: "+ (Prelude.show (missing :: [Prelude.String]))))+ Prelude.return+ (Lens.Family2.over+ Data.ProtoLens.unknownFields (\ !t -> Prelude.reverse t) x)+ else+ do tag <- Data.ProtoLens.Encoding.Bytes.getVarInt+ case tag of {+ wire+ -> do !y <- Data.ProtoLens.Encoding.Wire.parseTaggedValueFromWire+ wire+ loop+ (Lens.Family2.over+ Data.ProtoLens.unknownFields (\ !t -> (:) y t) x) }+ in+ (Data.ProtoLens.Encoding.Bytes.<?>)+ (do loop Data.ProtoLens.defMessage) "ConnectPeerResponse"+ buildMessage+ = \ _x+ -> Data.ProtoLens.Encoding.Wire.buildFieldSet+ (Lens.Family2.view Data.ProtoLens.unknownFields _x)+instance Control.DeepSeq.NFData ConnectPeerResponse where+ rnf+ = \ x__+ -> Control.DeepSeq.deepseq+ (_ConnectPeerResponse'_unknownFields x__) ()+{- | Fields :+ + * 'Proto.Lightning_Fields.peer' @:: Lens' CustomMessage Data.ByteString.ByteString@+ * 'Proto.Lightning_Fields.type'' @:: Lens' CustomMessage Data.Word.Word32@+ * 'Proto.Lightning_Fields.data'' @:: Lens' CustomMessage Data.ByteString.ByteString@ -}+data CustomMessage+ = CustomMessage'_constructor {_CustomMessage'peer :: !Data.ByteString.ByteString,+ _CustomMessage'type' :: !Data.Word.Word32,+ _CustomMessage'data' :: !Data.ByteString.ByteString,+ _CustomMessage'_unknownFields :: !Data.ProtoLens.FieldSet}+ deriving stock (Prelude.Eq, Prelude.Ord, GHC.Generics.Generic)+instance Prelude.Show CustomMessage where+ showsPrec _ __x __s+ = Prelude.showChar+ '{'+ (Prelude.showString+ (Data.ProtoLens.showMessageShort __x) (Prelude.showChar '}' __s))+instance Text.PrettyPrint.GenericPretty.Out CustomMessage+instance Data.ProtoLens.Field.HasField CustomMessage "peer" Data.ByteString.ByteString where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _CustomMessage'peer (\ x__ y__ -> x__ {_CustomMessage'peer = y__}))+ Prelude.id+instance Data.ProtoLens.Field.HasField CustomMessage "type'" Data.Word.Word32 where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _CustomMessage'type'+ (\ x__ y__ -> x__ {_CustomMessage'type' = y__}))+ Prelude.id+instance Data.ProtoLens.Field.HasField CustomMessage "data'" Data.ByteString.ByteString where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _CustomMessage'data'+ (\ x__ y__ -> x__ {_CustomMessage'data' = y__}))+ Prelude.id+instance Data.ProtoLens.Message CustomMessage where+ messageName _ = Data.Text.pack "lnrpc.CustomMessage"+ packedMessageDescriptor _+ = "\n\+ \\rCustomMessage\DC2\DC2\n\+ \\EOTpeer\CAN\SOH \SOH(\fR\EOTpeer\DC2\DC2\n\+ \\EOTtype\CAN\STX \SOH(\rR\EOTtype\DC2\DC2\n\+ \\EOTdata\CAN\ETX \SOH(\fR\EOTdata"+ packedFileDescriptor _ = packedFileDescriptor+ fieldsByTag+ = let+ peer__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "peer"+ (Data.ProtoLens.ScalarField Data.ProtoLens.BytesField ::+ Data.ProtoLens.FieldTypeDescriptor Data.ByteString.ByteString)+ (Data.ProtoLens.PlainField+ Data.ProtoLens.Optional (Data.ProtoLens.Field.field @"peer")) ::+ Data.ProtoLens.FieldDescriptor CustomMessage+ type'__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "type"+ (Data.ProtoLens.ScalarField Data.ProtoLens.UInt32Field ::+ Data.ProtoLens.FieldTypeDescriptor Data.Word.Word32)+ (Data.ProtoLens.PlainField+ Data.ProtoLens.Optional (Data.ProtoLens.Field.field @"type'")) ::+ Data.ProtoLens.FieldDescriptor CustomMessage+ data'__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "data"+ (Data.ProtoLens.ScalarField Data.ProtoLens.BytesField ::+ Data.ProtoLens.FieldTypeDescriptor Data.ByteString.ByteString)+ (Data.ProtoLens.PlainField+ Data.ProtoLens.Optional (Data.ProtoLens.Field.field @"data'")) ::+ Data.ProtoLens.FieldDescriptor CustomMessage+ in+ Data.Map.fromList+ [(Data.ProtoLens.Tag 1, peer__field_descriptor),+ (Data.ProtoLens.Tag 2, type'__field_descriptor),+ (Data.ProtoLens.Tag 3, data'__field_descriptor)]+ unknownFields+ = Lens.Family2.Unchecked.lens+ _CustomMessage'_unknownFields+ (\ x__ y__ -> x__ {_CustomMessage'_unknownFields = y__})+ defMessage+ = CustomMessage'_constructor+ {_CustomMessage'peer = Data.ProtoLens.fieldDefault,+ _CustomMessage'type' = Data.ProtoLens.fieldDefault,+ _CustomMessage'data' = Data.ProtoLens.fieldDefault,+ _CustomMessage'_unknownFields = []}+ parseMessage+ = let+ loop ::+ CustomMessage -> Data.ProtoLens.Encoding.Bytes.Parser CustomMessage+ loop x+ = do end <- Data.ProtoLens.Encoding.Bytes.atEnd+ if end then+ do (let missing = []+ in+ if Prelude.null missing then+ Prelude.return ()+ else+ Prelude.fail+ ((Prelude.++)+ "Missing required fields: "+ (Prelude.show (missing :: [Prelude.String]))))+ Prelude.return+ (Lens.Family2.over+ Data.ProtoLens.unknownFields (\ !t -> Prelude.reverse t) x)+ else+ do tag <- Data.ProtoLens.Encoding.Bytes.getVarInt+ case tag of+ 10+ -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (do len <- Data.ProtoLens.Encoding.Bytes.getVarInt+ Data.ProtoLens.Encoding.Bytes.getBytes+ (Prelude.fromIntegral len))+ "peer"+ loop (Lens.Family2.set (Data.ProtoLens.Field.field @"peer") y x)+ 16+ -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (Prelude.fmap+ Prelude.fromIntegral+ Data.ProtoLens.Encoding.Bytes.getVarInt)+ "type"+ loop (Lens.Family2.set (Data.ProtoLens.Field.field @"type'") y x)+ 26+ -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (do len <- Data.ProtoLens.Encoding.Bytes.getVarInt+ Data.ProtoLens.Encoding.Bytes.getBytes+ (Prelude.fromIntegral len))+ "data"+ loop (Lens.Family2.set (Data.ProtoLens.Field.field @"data'") y x)+ wire+ -> do !y <- Data.ProtoLens.Encoding.Wire.parseTaggedValueFromWire+ wire+ loop+ (Lens.Family2.over+ Data.ProtoLens.unknownFields (\ !t -> (:) y t) x)+ in+ (Data.ProtoLens.Encoding.Bytes.<?>)+ (do loop Data.ProtoLens.defMessage) "CustomMessage"+ buildMessage+ = \ _x+ -> (Data.Monoid.<>)+ (let _v = Lens.Family2.view (Data.ProtoLens.Field.field @"peer") _x+ in+ if (Prelude.==) _v Data.ProtoLens.fieldDefault then+ Data.Monoid.mempty+ else+ (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 10)+ ((\ bs+ -> (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt+ (Prelude.fromIntegral (Data.ByteString.length bs)))+ (Data.ProtoLens.Encoding.Bytes.putBytes bs))+ _v))+ ((Data.Monoid.<>)+ (let+ _v = Lens.Family2.view (Data.ProtoLens.Field.field @"type'") _x+ in+ if (Prelude.==) _v Data.ProtoLens.fieldDefault then+ Data.Monoid.mempty+ else+ (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 16)+ ((Prelude..)+ Data.ProtoLens.Encoding.Bytes.putVarInt Prelude.fromIntegral _v))+ ((Data.Monoid.<>)+ (let+ _v = Lens.Family2.view (Data.ProtoLens.Field.field @"data'") _x+ in+ if (Prelude.==) _v Data.ProtoLens.fieldDefault then+ Data.Monoid.mempty+ else+ (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 26)+ ((\ bs+ -> (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt+ (Prelude.fromIntegral (Data.ByteString.length bs)))+ (Data.ProtoLens.Encoding.Bytes.putBytes bs))+ _v))+ (Data.ProtoLens.Encoding.Wire.buildFieldSet+ (Lens.Family2.view Data.ProtoLens.unknownFields _x))))+instance Control.DeepSeq.NFData CustomMessage where+ rnf+ = \ x__+ -> Control.DeepSeq.deepseq+ (_CustomMessage'_unknownFields x__)+ (Control.DeepSeq.deepseq+ (_CustomMessage'peer x__)+ (Control.DeepSeq.deepseq+ (_CustomMessage'type' x__)+ (Control.DeepSeq.deepseq (_CustomMessage'data' x__) ())))+{- | Fields :+ + * 'Proto.Lightning_Fields.pubKey' @:: Lens' DisconnectPeerRequest Data.Text.Text@ -}+data DisconnectPeerRequest+ = DisconnectPeerRequest'_constructor {_DisconnectPeerRequest'pubKey :: !Data.Text.Text,+ _DisconnectPeerRequest'_unknownFields :: !Data.ProtoLens.FieldSet}+ deriving stock (Prelude.Eq, Prelude.Ord, GHC.Generics.Generic)+instance Prelude.Show DisconnectPeerRequest where+ showsPrec _ __x __s+ = Prelude.showChar+ '{'+ (Prelude.showString+ (Data.ProtoLens.showMessageShort __x) (Prelude.showChar '}' __s))+instance Text.PrettyPrint.GenericPretty.Out DisconnectPeerRequest+instance Data.ProtoLens.Field.HasField DisconnectPeerRequest "pubKey" Data.Text.Text where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _DisconnectPeerRequest'pubKey+ (\ x__ y__ -> x__ {_DisconnectPeerRequest'pubKey = y__}))+ Prelude.id+instance Data.ProtoLens.Message DisconnectPeerRequest where+ messageName _ = Data.Text.pack "lnrpc.DisconnectPeerRequest"+ packedMessageDescriptor _+ = "\n\+ \\NAKDisconnectPeerRequest\DC2\ETB\n\+ \\apub_key\CAN\SOH \SOH(\tR\ACKpubKey"+ packedFileDescriptor _ = packedFileDescriptor+ fieldsByTag+ = let+ pubKey__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "pub_key"+ (Data.ProtoLens.ScalarField Data.ProtoLens.StringField ::+ Data.ProtoLens.FieldTypeDescriptor Data.Text.Text)+ (Data.ProtoLens.PlainField+ Data.ProtoLens.Optional (Data.ProtoLens.Field.field @"pubKey")) ::+ Data.ProtoLens.FieldDescriptor DisconnectPeerRequest+ in+ Data.Map.fromList+ [(Data.ProtoLens.Tag 1, pubKey__field_descriptor)]+ unknownFields+ = Lens.Family2.Unchecked.lens+ _DisconnectPeerRequest'_unknownFields+ (\ x__ y__ -> x__ {_DisconnectPeerRequest'_unknownFields = y__})+ defMessage+ = DisconnectPeerRequest'_constructor+ {_DisconnectPeerRequest'pubKey = Data.ProtoLens.fieldDefault,+ _DisconnectPeerRequest'_unknownFields = []}+ parseMessage+ = let+ loop ::+ DisconnectPeerRequest+ -> Data.ProtoLens.Encoding.Bytes.Parser DisconnectPeerRequest+ loop x+ = do end <- Data.ProtoLens.Encoding.Bytes.atEnd+ if end then+ do (let missing = []+ in+ if Prelude.null missing then+ Prelude.return ()+ else+ Prelude.fail+ ((Prelude.++)+ "Missing required fields: "+ (Prelude.show (missing :: [Prelude.String]))))+ Prelude.return+ (Lens.Family2.over+ Data.ProtoLens.unknownFields (\ !t -> Prelude.reverse t) x)+ else+ do tag <- Data.ProtoLens.Encoding.Bytes.getVarInt+ case tag of+ 10+ -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (do value <- do len <- Data.ProtoLens.Encoding.Bytes.getVarInt+ Data.ProtoLens.Encoding.Bytes.getBytes+ (Prelude.fromIntegral len)+ Data.ProtoLens.Encoding.Bytes.runEither+ (case Data.Text.Encoding.decodeUtf8' value of+ (Prelude.Left err)+ -> Prelude.Left (Prelude.show err)+ (Prelude.Right r) -> Prelude.Right r))+ "pub_key"+ loop (Lens.Family2.set (Data.ProtoLens.Field.field @"pubKey") y x)+ wire+ -> do !y <- Data.ProtoLens.Encoding.Wire.parseTaggedValueFromWire+ wire+ loop+ (Lens.Family2.over+ Data.ProtoLens.unknownFields (\ !t -> (:) y t) x)+ in+ (Data.ProtoLens.Encoding.Bytes.<?>)+ (do loop Data.ProtoLens.defMessage) "DisconnectPeerRequest"+ buildMessage+ = \ _x+ -> (Data.Monoid.<>)+ (let+ _v = Lens.Family2.view (Data.ProtoLens.Field.field @"pubKey") _x+ in+ if (Prelude.==) _v Data.ProtoLens.fieldDefault then+ Data.Monoid.mempty+ else+ (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 10)+ ((Prelude..)+ (\ bs+ -> (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt+ (Prelude.fromIntegral (Data.ByteString.length bs)))+ (Data.ProtoLens.Encoding.Bytes.putBytes bs))+ Data.Text.Encoding.encodeUtf8 _v))+ (Data.ProtoLens.Encoding.Wire.buildFieldSet+ (Lens.Family2.view Data.ProtoLens.unknownFields _x))+instance Control.DeepSeq.NFData DisconnectPeerRequest where+ rnf+ = \ x__+ -> Control.DeepSeq.deepseq+ (_DisconnectPeerRequest'_unknownFields x__)+ (Control.DeepSeq.deepseq (_DisconnectPeerRequest'pubKey x__) ())+{- | Fields :+ -}+data DisconnectPeerResponse+ = DisconnectPeerResponse'_constructor {_DisconnectPeerResponse'_unknownFields :: !Data.ProtoLens.FieldSet}+ deriving stock (Prelude.Eq, Prelude.Ord, GHC.Generics.Generic)+instance Prelude.Show DisconnectPeerResponse where+ showsPrec _ __x __s+ = Prelude.showChar+ '{'+ (Prelude.showString+ (Data.ProtoLens.showMessageShort __x) (Prelude.showChar '}' __s))+instance Text.PrettyPrint.GenericPretty.Out DisconnectPeerResponse+instance Data.ProtoLens.Message DisconnectPeerResponse where+ messageName _ = Data.Text.pack "lnrpc.DisconnectPeerResponse"+ packedMessageDescriptor _+ = "\n\+ \\SYNDisconnectPeerResponse"+ packedFileDescriptor _ = packedFileDescriptor+ fieldsByTag = let in Data.Map.fromList []+ unknownFields+ = Lens.Family2.Unchecked.lens+ _DisconnectPeerResponse'_unknownFields+ (\ x__ y__ -> x__ {_DisconnectPeerResponse'_unknownFields = y__})+ defMessage+ = DisconnectPeerResponse'_constructor+ {_DisconnectPeerResponse'_unknownFields = []}+ parseMessage+ = let+ loop ::+ DisconnectPeerResponse+ -> Data.ProtoLens.Encoding.Bytes.Parser DisconnectPeerResponse+ loop x+ = do end <- Data.ProtoLens.Encoding.Bytes.atEnd+ if end then+ do (let missing = []+ in+ if Prelude.null missing then+ Prelude.return ()+ else+ Prelude.fail+ ((Prelude.++)+ "Missing required fields: "+ (Prelude.show (missing :: [Prelude.String]))))+ Prelude.return+ (Lens.Family2.over+ Data.ProtoLens.unknownFields (\ !t -> Prelude.reverse t) x)+ else+ do tag <- Data.ProtoLens.Encoding.Bytes.getVarInt+ case tag of {+ wire+ -> do !y <- Data.ProtoLens.Encoding.Wire.parseTaggedValueFromWire+ wire+ loop+ (Lens.Family2.over+ Data.ProtoLens.unknownFields (\ !t -> (:) y t) x) }+ in+ (Data.ProtoLens.Encoding.Bytes.<?>)+ (do loop Data.ProtoLens.defMessage) "DisconnectPeerResponse"+ buildMessage+ = \ _x+ -> Data.ProtoLens.Encoding.Wire.buildFieldSet+ (Lens.Family2.view Data.ProtoLens.unknownFields _x)+instance Control.DeepSeq.NFData DisconnectPeerResponse where+ rnf+ = \ x__+ -> Control.DeepSeq.deepseq+ (_DisconnectPeerResponse'_unknownFields x__) ()+{- | Fields :+ + * 'Proto.Lightning_Fields.addrToAmount' @:: Lens' EstimateFeeRequest (Data.Map.Map Data.Text.Text Data.Int.Int64)@+ * 'Proto.Lightning_Fields.targetConf' @:: Lens' EstimateFeeRequest Data.Int.Int32@+ * 'Proto.Lightning_Fields.minConfs' @:: Lens' EstimateFeeRequest Data.Int.Int32@+ * 'Proto.Lightning_Fields.spendUnconfirmed' @:: Lens' EstimateFeeRequest Prelude.Bool@ -}+data EstimateFeeRequest+ = EstimateFeeRequest'_constructor {_EstimateFeeRequest'addrToAmount :: !(Data.Map.Map Data.Text.Text Data.Int.Int64),+ _EstimateFeeRequest'targetConf :: !Data.Int.Int32,+ _EstimateFeeRequest'minConfs :: !Data.Int.Int32,+ _EstimateFeeRequest'spendUnconfirmed :: !Prelude.Bool,+ _EstimateFeeRequest'_unknownFields :: !Data.ProtoLens.FieldSet}+ deriving stock (Prelude.Eq, Prelude.Ord, GHC.Generics.Generic)+instance Prelude.Show EstimateFeeRequest where+ showsPrec _ __x __s+ = Prelude.showChar+ '{'+ (Prelude.showString+ (Data.ProtoLens.showMessageShort __x) (Prelude.showChar '}' __s))+instance Text.PrettyPrint.GenericPretty.Out EstimateFeeRequest+instance Data.ProtoLens.Field.HasField EstimateFeeRequest "addrToAmount" (Data.Map.Map Data.Text.Text Data.Int.Int64) where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _EstimateFeeRequest'addrToAmount+ (\ x__ y__ -> x__ {_EstimateFeeRequest'addrToAmount = y__}))+ Prelude.id+instance Data.ProtoLens.Field.HasField EstimateFeeRequest "targetConf" Data.Int.Int32 where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _EstimateFeeRequest'targetConf+ (\ x__ y__ -> x__ {_EstimateFeeRequest'targetConf = y__}))+ Prelude.id+instance Data.ProtoLens.Field.HasField EstimateFeeRequest "minConfs" Data.Int.Int32 where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _EstimateFeeRequest'minConfs+ (\ x__ y__ -> x__ {_EstimateFeeRequest'minConfs = y__}))+ Prelude.id+instance Data.ProtoLens.Field.HasField EstimateFeeRequest "spendUnconfirmed" Prelude.Bool where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _EstimateFeeRequest'spendUnconfirmed+ (\ x__ y__ -> x__ {_EstimateFeeRequest'spendUnconfirmed = y__}))+ Prelude.id+instance Data.ProtoLens.Message EstimateFeeRequest where+ messageName _ = Data.Text.pack "lnrpc.EstimateFeeRequest"+ packedMessageDescriptor _+ = "\n\+ \\DC2EstimateFeeRequest\DC2O\n\+ \\fAddrToAmount\CAN\SOH \ETX(\v2+.lnrpc.EstimateFeeRequest.AddrToAmountEntryR\fAddrToAmount\DC2\US\n\+ \\vtarget_conf\CAN\STX \SOH(\ENQR\n\+ \targetConf\DC2\ESC\n\+ \\tmin_confs\CAN\ETX \SOH(\ENQR\bminConfs\DC2+\n\+ \\DC1spend_unconfirmed\CAN\EOT \SOH(\bR\DLEspendUnconfirmed\SUB?\n\+ \\DC1AddrToAmountEntry\DC2\DLE\n\+ \\ETXkey\CAN\SOH \SOH(\tR\ETXkey\DC2\DC4\n\+ \\ENQvalue\CAN\STX \SOH(\ETXR\ENQvalue:\STX8\SOH"+ packedFileDescriptor _ = packedFileDescriptor+ fieldsByTag+ = let+ addrToAmount__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "AddrToAmount"+ (Data.ProtoLens.MessageField Data.ProtoLens.MessageType ::+ Data.ProtoLens.FieldTypeDescriptor EstimateFeeRequest'AddrToAmountEntry)+ (Data.ProtoLens.MapField+ (Data.ProtoLens.Field.field @"key")+ (Data.ProtoLens.Field.field @"value")+ (Data.ProtoLens.Field.field @"addrToAmount")) ::+ Data.ProtoLens.FieldDescriptor EstimateFeeRequest+ targetConf__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "target_conf"+ (Data.ProtoLens.ScalarField Data.ProtoLens.Int32Field ::+ Data.ProtoLens.FieldTypeDescriptor Data.Int.Int32)+ (Data.ProtoLens.PlainField+ Data.ProtoLens.Optional+ (Data.ProtoLens.Field.field @"targetConf")) ::+ Data.ProtoLens.FieldDescriptor EstimateFeeRequest+ minConfs__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "min_confs"+ (Data.ProtoLens.ScalarField Data.ProtoLens.Int32Field ::+ Data.ProtoLens.FieldTypeDescriptor Data.Int.Int32)+ (Data.ProtoLens.PlainField+ Data.ProtoLens.Optional+ (Data.ProtoLens.Field.field @"minConfs")) ::+ Data.ProtoLens.FieldDescriptor EstimateFeeRequest+ spendUnconfirmed__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "spend_unconfirmed"+ (Data.ProtoLens.ScalarField Data.ProtoLens.BoolField ::+ Data.ProtoLens.FieldTypeDescriptor Prelude.Bool)+ (Data.ProtoLens.PlainField+ Data.ProtoLens.Optional+ (Data.ProtoLens.Field.field @"spendUnconfirmed")) ::+ Data.ProtoLens.FieldDescriptor EstimateFeeRequest+ in+ Data.Map.fromList+ [(Data.ProtoLens.Tag 1, addrToAmount__field_descriptor),+ (Data.ProtoLens.Tag 2, targetConf__field_descriptor),+ (Data.ProtoLens.Tag 3, minConfs__field_descriptor),+ (Data.ProtoLens.Tag 4, spendUnconfirmed__field_descriptor)]+ unknownFields+ = Lens.Family2.Unchecked.lens+ _EstimateFeeRequest'_unknownFields+ (\ x__ y__ -> x__ {_EstimateFeeRequest'_unknownFields = y__})+ defMessage+ = EstimateFeeRequest'_constructor+ {_EstimateFeeRequest'addrToAmount = Data.Map.empty,+ _EstimateFeeRequest'targetConf = Data.ProtoLens.fieldDefault,+ _EstimateFeeRequest'minConfs = Data.ProtoLens.fieldDefault,+ _EstimateFeeRequest'spendUnconfirmed = Data.ProtoLens.fieldDefault,+ _EstimateFeeRequest'_unknownFields = []}+ parseMessage+ = let+ loop ::+ EstimateFeeRequest+ -> Data.ProtoLens.Encoding.Bytes.Parser EstimateFeeRequest+ loop x+ = do end <- Data.ProtoLens.Encoding.Bytes.atEnd+ if end then+ do (let missing = []+ in+ if Prelude.null missing then+ Prelude.return ()+ else+ Prelude.fail+ ((Prelude.++)+ "Missing required fields: "+ (Prelude.show (missing :: [Prelude.String]))))+ Prelude.return+ (Lens.Family2.over+ Data.ProtoLens.unknownFields (\ !t -> Prelude.reverse t) x)+ else+ do tag <- Data.ProtoLens.Encoding.Bytes.getVarInt+ case tag of+ 10+ -> do !(entry :: EstimateFeeRequest'AddrToAmountEntry) <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (do len <- Data.ProtoLens.Encoding.Bytes.getVarInt+ Data.ProtoLens.Encoding.Bytes.isolate+ (Prelude.fromIntegral+ len)+ Data.ProtoLens.parseMessage)+ "AddrToAmount"+ (let+ key = Lens.Family2.view (Data.ProtoLens.Field.field @"key") entry+ value+ = Lens.Family2.view (Data.ProtoLens.Field.field @"value") entry+ in+ loop+ (Lens.Family2.over+ (Data.ProtoLens.Field.field @"addrToAmount")+ (\ !t -> Data.Map.insert key value t) x))+ 16+ -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (Prelude.fmap+ Prelude.fromIntegral+ Data.ProtoLens.Encoding.Bytes.getVarInt)+ "target_conf"+ loop+ (Lens.Family2.set (Data.ProtoLens.Field.field @"targetConf") y x)+ 24+ -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (Prelude.fmap+ Prelude.fromIntegral+ Data.ProtoLens.Encoding.Bytes.getVarInt)+ "min_confs"+ loop+ (Lens.Family2.set (Data.ProtoLens.Field.field @"minConfs") y x)+ 32+ -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (Prelude.fmap+ ((Prelude./=) 0) Data.ProtoLens.Encoding.Bytes.getVarInt)+ "spend_unconfirmed"+ loop+ (Lens.Family2.set+ (Data.ProtoLens.Field.field @"spendUnconfirmed") y x)+ wire+ -> do !y <- Data.ProtoLens.Encoding.Wire.parseTaggedValueFromWire+ wire+ loop+ (Lens.Family2.over+ Data.ProtoLens.unknownFields (\ !t -> (:) y t) x)+ in+ (Data.ProtoLens.Encoding.Bytes.<?>)+ (do loop Data.ProtoLens.defMessage) "EstimateFeeRequest"+ buildMessage+ = \ _x+ -> (Data.Monoid.<>)+ (Data.Monoid.mconcat+ (Prelude.map+ (\ _v+ -> (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 10)+ ((Prelude..)+ (\ bs+ -> (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt+ (Prelude.fromIntegral (Data.ByteString.length bs)))+ (Data.ProtoLens.Encoding.Bytes.putBytes bs))+ Data.ProtoLens.encodeMessage+ (Lens.Family2.set+ (Data.ProtoLens.Field.field @"key") (Prelude.fst _v)+ (Lens.Family2.set+ (Data.ProtoLens.Field.field @"value") (Prelude.snd _v)+ (Data.ProtoLens.defMessage ::+ EstimateFeeRequest'AddrToAmountEntry)))))+ (Data.Map.toList+ (Lens.Family2.view+ (Data.ProtoLens.Field.field @"addrToAmount") _x))))+ ((Data.Monoid.<>)+ (let+ _v+ = Lens.Family2.view (Data.ProtoLens.Field.field @"targetConf") _x+ in+ if (Prelude.==) _v Data.ProtoLens.fieldDefault then+ Data.Monoid.mempty+ else+ (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 16)+ ((Prelude..)+ Data.ProtoLens.Encoding.Bytes.putVarInt Prelude.fromIntegral _v))+ ((Data.Monoid.<>)+ (let+ _v = Lens.Family2.view (Data.ProtoLens.Field.field @"minConfs") _x+ in+ if (Prelude.==) _v Data.ProtoLens.fieldDefault then+ Data.Monoid.mempty+ else+ (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 24)+ ((Prelude..)+ Data.ProtoLens.Encoding.Bytes.putVarInt Prelude.fromIntegral _v))+ ((Data.Monoid.<>)+ (let+ _v+ = Lens.Family2.view+ (Data.ProtoLens.Field.field @"spendUnconfirmed") _x+ in+ if (Prelude.==) _v Data.ProtoLens.fieldDefault then+ Data.Monoid.mempty+ else+ (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 32)+ ((Prelude..)+ Data.ProtoLens.Encoding.Bytes.putVarInt+ (\ b -> if b then 1 else 0) _v))+ (Data.ProtoLens.Encoding.Wire.buildFieldSet+ (Lens.Family2.view Data.ProtoLens.unknownFields _x)))))+instance Control.DeepSeq.NFData EstimateFeeRequest where+ rnf+ = \ x__+ -> Control.DeepSeq.deepseq+ (_EstimateFeeRequest'_unknownFields x__)+ (Control.DeepSeq.deepseq+ (_EstimateFeeRequest'addrToAmount x__)+ (Control.DeepSeq.deepseq+ (_EstimateFeeRequest'targetConf x__)+ (Control.DeepSeq.deepseq+ (_EstimateFeeRequest'minConfs x__)+ (Control.DeepSeq.deepseq+ (_EstimateFeeRequest'spendUnconfirmed x__) ()))))+{- | Fields :+ + * 'Proto.Lightning_Fields.key' @:: Lens' EstimateFeeRequest'AddrToAmountEntry Data.Text.Text@+ * 'Proto.Lightning_Fields.value' @:: Lens' EstimateFeeRequest'AddrToAmountEntry Data.Int.Int64@ -}+data EstimateFeeRequest'AddrToAmountEntry+ = EstimateFeeRequest'AddrToAmountEntry'_constructor {_EstimateFeeRequest'AddrToAmountEntry'key :: !Data.Text.Text,+ _EstimateFeeRequest'AddrToAmountEntry'value :: !Data.Int.Int64,+ _EstimateFeeRequest'AddrToAmountEntry'_unknownFields :: !Data.ProtoLens.FieldSet}+ deriving stock (Prelude.Eq, Prelude.Ord, GHC.Generics.Generic)+instance Prelude.Show EstimateFeeRequest'AddrToAmountEntry where+ showsPrec _ __x __s+ = Prelude.showChar+ '{'+ (Prelude.showString+ (Data.ProtoLens.showMessageShort __x) (Prelude.showChar '}' __s))+instance Text.PrettyPrint.GenericPretty.Out EstimateFeeRequest'AddrToAmountEntry+instance Data.ProtoLens.Field.HasField EstimateFeeRequest'AddrToAmountEntry "key" Data.Text.Text where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _EstimateFeeRequest'AddrToAmountEntry'key+ (\ x__ y__+ -> x__ {_EstimateFeeRequest'AddrToAmountEntry'key = y__}))+ Prelude.id+instance Data.ProtoLens.Field.HasField EstimateFeeRequest'AddrToAmountEntry "value" Data.Int.Int64 where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _EstimateFeeRequest'AddrToAmountEntry'value+ (\ x__ y__+ -> x__ {_EstimateFeeRequest'AddrToAmountEntry'value = y__}))+ Prelude.id+instance Data.ProtoLens.Message EstimateFeeRequest'AddrToAmountEntry where+ messageName _+ = Data.Text.pack "lnrpc.EstimateFeeRequest.AddrToAmountEntry"+ packedMessageDescriptor _+ = "\n\+ \\DC1AddrToAmountEntry\DC2\DLE\n\+ \\ETXkey\CAN\SOH \SOH(\tR\ETXkey\DC2\DC4\n\+ \\ENQvalue\CAN\STX \SOH(\ETXR\ENQvalue:\STX8\SOH"+ packedFileDescriptor _ = packedFileDescriptor+ fieldsByTag+ = let+ key__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "key"+ (Data.ProtoLens.ScalarField Data.ProtoLens.StringField ::+ Data.ProtoLens.FieldTypeDescriptor Data.Text.Text)+ (Data.ProtoLens.PlainField+ Data.ProtoLens.Optional (Data.ProtoLens.Field.field @"key")) ::+ Data.ProtoLens.FieldDescriptor EstimateFeeRequest'AddrToAmountEntry+ value__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "value"+ (Data.ProtoLens.ScalarField Data.ProtoLens.Int64Field ::+ Data.ProtoLens.FieldTypeDescriptor Data.Int.Int64)+ (Data.ProtoLens.PlainField+ Data.ProtoLens.Optional (Data.ProtoLens.Field.field @"value")) ::+ Data.ProtoLens.FieldDescriptor EstimateFeeRequest'AddrToAmountEntry+ in+ Data.Map.fromList+ [(Data.ProtoLens.Tag 1, key__field_descriptor),+ (Data.ProtoLens.Tag 2, value__field_descriptor)]+ unknownFields+ = Lens.Family2.Unchecked.lens+ _EstimateFeeRequest'AddrToAmountEntry'_unknownFields+ (\ x__ y__+ -> x__+ {_EstimateFeeRequest'AddrToAmountEntry'_unknownFields = y__})+ defMessage+ = EstimateFeeRequest'AddrToAmountEntry'_constructor+ {_EstimateFeeRequest'AddrToAmountEntry'key = Data.ProtoLens.fieldDefault,+ _EstimateFeeRequest'AddrToAmountEntry'value = Data.ProtoLens.fieldDefault,+ _EstimateFeeRequest'AddrToAmountEntry'_unknownFields = []}+ parseMessage+ = let+ loop ::+ EstimateFeeRequest'AddrToAmountEntry+ -> Data.ProtoLens.Encoding.Bytes.Parser EstimateFeeRequest'AddrToAmountEntry+ loop x+ = do end <- Data.ProtoLens.Encoding.Bytes.atEnd+ if end then+ do (let missing = []+ in+ if Prelude.null missing then+ Prelude.return ()+ else+ Prelude.fail+ ((Prelude.++)+ "Missing required fields: "+ (Prelude.show (missing :: [Prelude.String]))))+ Prelude.return+ (Lens.Family2.over+ Data.ProtoLens.unknownFields (\ !t -> Prelude.reverse t) x)+ else+ do tag <- Data.ProtoLens.Encoding.Bytes.getVarInt+ case tag of+ 10+ -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (do value <- do len <- Data.ProtoLens.Encoding.Bytes.getVarInt+ Data.ProtoLens.Encoding.Bytes.getBytes+ (Prelude.fromIntegral len)+ Data.ProtoLens.Encoding.Bytes.runEither+ (case Data.Text.Encoding.decodeUtf8' value of+ (Prelude.Left err)+ -> Prelude.Left (Prelude.show err)+ (Prelude.Right r) -> Prelude.Right r))+ "key"+ loop (Lens.Family2.set (Data.ProtoLens.Field.field @"key") y x)+ 16+ -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (Prelude.fmap+ Prelude.fromIntegral+ Data.ProtoLens.Encoding.Bytes.getVarInt)+ "value"+ loop (Lens.Family2.set (Data.ProtoLens.Field.field @"value") y x)+ wire+ -> do !y <- Data.ProtoLens.Encoding.Wire.parseTaggedValueFromWire+ wire+ loop+ (Lens.Family2.over+ Data.ProtoLens.unknownFields (\ !t -> (:) y t) x)+ in+ (Data.ProtoLens.Encoding.Bytes.<?>)+ (do loop Data.ProtoLens.defMessage) "AddrToAmountEntry"+ buildMessage+ = \ _x+ -> (Data.Monoid.<>)+ (let _v = Lens.Family2.view (Data.ProtoLens.Field.field @"key") _x+ in+ if (Prelude.==) _v Data.ProtoLens.fieldDefault then+ Data.Monoid.mempty+ else+ (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 10)+ ((Prelude..)+ (\ bs+ -> (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt+ (Prelude.fromIntegral (Data.ByteString.length bs)))+ (Data.ProtoLens.Encoding.Bytes.putBytes bs))+ Data.Text.Encoding.encodeUtf8 _v))+ ((Data.Monoid.<>)+ (let+ _v = Lens.Family2.view (Data.ProtoLens.Field.field @"value") _x+ in+ if (Prelude.==) _v Data.ProtoLens.fieldDefault then+ Data.Monoid.mempty+ else+ (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 16)+ ((Prelude..)+ Data.ProtoLens.Encoding.Bytes.putVarInt Prelude.fromIntegral _v))+ (Data.ProtoLens.Encoding.Wire.buildFieldSet+ (Lens.Family2.view Data.ProtoLens.unknownFields _x)))+instance Control.DeepSeq.NFData EstimateFeeRequest'AddrToAmountEntry where+ rnf+ = \ x__+ -> Control.DeepSeq.deepseq+ (_EstimateFeeRequest'AddrToAmountEntry'_unknownFields x__)+ (Control.DeepSeq.deepseq+ (_EstimateFeeRequest'AddrToAmountEntry'key x__)+ (Control.DeepSeq.deepseq+ (_EstimateFeeRequest'AddrToAmountEntry'value x__) ()))+{- | Fields :+ + * 'Proto.Lightning_Fields.feeSat' @:: Lens' EstimateFeeResponse Data.Int.Int64@+ * 'Proto.Lightning_Fields.feerateSatPerByte' @:: Lens' EstimateFeeResponse Data.Int.Int64@+ * 'Proto.Lightning_Fields.satPerVbyte' @:: Lens' EstimateFeeResponse Data.Word.Word64@ -}+data EstimateFeeResponse+ = EstimateFeeResponse'_constructor {_EstimateFeeResponse'feeSat :: !Data.Int.Int64,+ _EstimateFeeResponse'feerateSatPerByte :: !Data.Int.Int64,+ _EstimateFeeResponse'satPerVbyte :: !Data.Word.Word64,+ _EstimateFeeResponse'_unknownFields :: !Data.ProtoLens.FieldSet}+ deriving stock (Prelude.Eq, Prelude.Ord, GHC.Generics.Generic)+instance Prelude.Show EstimateFeeResponse where+ showsPrec _ __x __s+ = Prelude.showChar+ '{'+ (Prelude.showString+ (Data.ProtoLens.showMessageShort __x) (Prelude.showChar '}' __s))+instance Text.PrettyPrint.GenericPretty.Out EstimateFeeResponse+instance Data.ProtoLens.Field.HasField EstimateFeeResponse "feeSat" Data.Int.Int64 where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _EstimateFeeResponse'feeSat+ (\ x__ y__ -> x__ {_EstimateFeeResponse'feeSat = y__}))+ Prelude.id+instance Data.ProtoLens.Field.HasField EstimateFeeResponse "feerateSatPerByte" Data.Int.Int64 where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _EstimateFeeResponse'feerateSatPerByte+ (\ x__ y__ -> x__ {_EstimateFeeResponse'feerateSatPerByte = y__}))+ Prelude.id+instance Data.ProtoLens.Field.HasField EstimateFeeResponse "satPerVbyte" Data.Word.Word64 where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _EstimateFeeResponse'satPerVbyte+ (\ x__ y__ -> x__ {_EstimateFeeResponse'satPerVbyte = y__}))+ Prelude.id+instance Data.ProtoLens.Message EstimateFeeResponse where+ messageName _ = Data.Text.pack "lnrpc.EstimateFeeResponse"+ packedMessageDescriptor _+ = "\n\+ \\DC3EstimateFeeResponse\DC2\ETB\n\+ \\afee_sat\CAN\SOH \SOH(\ETXR\ACKfeeSat\DC23\n\+ \\DC4feerate_sat_per_byte\CAN\STX \SOH(\ETXR\DC1feerateSatPerByteB\STX\CAN\SOH\DC2\"\n\+ \\rsat_per_vbyte\CAN\ETX \SOH(\EOTR\vsatPerVbyte"+ packedFileDescriptor _ = packedFileDescriptor+ fieldsByTag+ = let+ feeSat__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "fee_sat"+ (Data.ProtoLens.ScalarField Data.ProtoLens.Int64Field ::+ Data.ProtoLens.FieldTypeDescriptor Data.Int.Int64)+ (Data.ProtoLens.PlainField+ Data.ProtoLens.Optional (Data.ProtoLens.Field.field @"feeSat")) ::+ Data.ProtoLens.FieldDescriptor EstimateFeeResponse+ feerateSatPerByte__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "feerate_sat_per_byte"+ (Data.ProtoLens.ScalarField Data.ProtoLens.Int64Field ::+ Data.ProtoLens.FieldTypeDescriptor Data.Int.Int64)+ (Data.ProtoLens.PlainField+ Data.ProtoLens.Optional+ (Data.ProtoLens.Field.field @"feerateSatPerByte")) ::+ Data.ProtoLens.FieldDescriptor EstimateFeeResponse+ satPerVbyte__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "sat_per_vbyte"+ (Data.ProtoLens.ScalarField Data.ProtoLens.UInt64Field ::+ Data.ProtoLens.FieldTypeDescriptor Data.Word.Word64)+ (Data.ProtoLens.PlainField+ Data.ProtoLens.Optional+ (Data.ProtoLens.Field.field @"satPerVbyte")) ::+ Data.ProtoLens.FieldDescriptor EstimateFeeResponse+ in+ Data.Map.fromList+ [(Data.ProtoLens.Tag 1, feeSat__field_descriptor),+ (Data.ProtoLens.Tag 2, feerateSatPerByte__field_descriptor),+ (Data.ProtoLens.Tag 3, satPerVbyte__field_descriptor)]+ unknownFields+ = Lens.Family2.Unchecked.lens+ _EstimateFeeResponse'_unknownFields+ (\ x__ y__ -> x__ {_EstimateFeeResponse'_unknownFields = y__})+ defMessage+ = EstimateFeeResponse'_constructor+ {_EstimateFeeResponse'feeSat = Data.ProtoLens.fieldDefault,+ _EstimateFeeResponse'feerateSatPerByte = Data.ProtoLens.fieldDefault,+ _EstimateFeeResponse'satPerVbyte = Data.ProtoLens.fieldDefault,+ _EstimateFeeResponse'_unknownFields = []}+ parseMessage+ = let+ loop ::+ EstimateFeeResponse+ -> Data.ProtoLens.Encoding.Bytes.Parser EstimateFeeResponse+ loop x+ = do end <- Data.ProtoLens.Encoding.Bytes.atEnd+ if end then+ do (let missing = []+ in+ if Prelude.null missing then+ Prelude.return ()+ else+ Prelude.fail+ ((Prelude.++)+ "Missing required fields: "+ (Prelude.show (missing :: [Prelude.String]))))+ Prelude.return+ (Lens.Family2.over+ Data.ProtoLens.unknownFields (\ !t -> Prelude.reverse t) x)+ else+ do tag <- Data.ProtoLens.Encoding.Bytes.getVarInt+ case tag of+ 8 -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (Prelude.fmap+ Prelude.fromIntegral+ Data.ProtoLens.Encoding.Bytes.getVarInt)+ "fee_sat"+ loop (Lens.Family2.set (Data.ProtoLens.Field.field @"feeSat") y x)+ 16+ -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (Prelude.fmap+ Prelude.fromIntegral+ Data.ProtoLens.Encoding.Bytes.getVarInt)+ "feerate_sat_per_byte"+ loop+ (Lens.Family2.set+ (Data.ProtoLens.Field.field @"feerateSatPerByte") y x)+ 24+ -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ Data.ProtoLens.Encoding.Bytes.getVarInt "sat_per_vbyte"+ loop+ (Lens.Family2.set (Data.ProtoLens.Field.field @"satPerVbyte") y x)+ wire+ -> do !y <- Data.ProtoLens.Encoding.Wire.parseTaggedValueFromWire+ wire+ loop+ (Lens.Family2.over+ Data.ProtoLens.unknownFields (\ !t -> (:) y t) x)+ in+ (Data.ProtoLens.Encoding.Bytes.<?>)+ (do loop Data.ProtoLens.defMessage) "EstimateFeeResponse"+ buildMessage+ = \ _x+ -> (Data.Monoid.<>)+ (let+ _v = Lens.Family2.view (Data.ProtoLens.Field.field @"feeSat") _x+ in+ if (Prelude.==) _v Data.ProtoLens.fieldDefault then+ Data.Monoid.mempty+ else+ (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 8)+ ((Prelude..)+ Data.ProtoLens.Encoding.Bytes.putVarInt Prelude.fromIntegral _v))+ ((Data.Monoid.<>)+ (let+ _v+ = Lens.Family2.view+ (Data.ProtoLens.Field.field @"feerateSatPerByte") _x+ in+ if (Prelude.==) _v Data.ProtoLens.fieldDefault then+ Data.Monoid.mempty+ else+ (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 16)+ ((Prelude..)+ Data.ProtoLens.Encoding.Bytes.putVarInt Prelude.fromIntegral _v))+ ((Data.Monoid.<>)+ (let+ _v+ = Lens.Family2.view (Data.ProtoLens.Field.field @"satPerVbyte") _x+ in+ if (Prelude.==) _v Data.ProtoLens.fieldDefault then+ Data.Monoid.mempty+ else+ (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 24)+ (Data.ProtoLens.Encoding.Bytes.putVarInt _v))+ (Data.ProtoLens.Encoding.Wire.buildFieldSet+ (Lens.Family2.view Data.ProtoLens.unknownFields _x))))+instance Control.DeepSeq.NFData EstimateFeeResponse where+ rnf+ = \ x__+ -> Control.DeepSeq.deepseq+ (_EstimateFeeResponse'_unknownFields x__)+ (Control.DeepSeq.deepseq+ (_EstimateFeeResponse'feeSat x__)+ (Control.DeepSeq.deepseq+ (_EstimateFeeResponse'feerateSatPerByte x__)+ (Control.DeepSeq.deepseq+ (_EstimateFeeResponse'satPerVbyte x__) ())))+{- | Fields :+ -}+data GetInfoRequest+ = GetInfoRequest'_constructor {_GetInfoRequest'_unknownFields :: !Data.ProtoLens.FieldSet}+ deriving stock (Prelude.Eq, Prelude.Ord, GHC.Generics.Generic)+instance Prelude.Show GetInfoRequest where+ showsPrec _ __x __s+ = Prelude.showChar+ '{'+ (Prelude.showString+ (Data.ProtoLens.showMessageShort __x) (Prelude.showChar '}' __s))+instance Text.PrettyPrint.GenericPretty.Out GetInfoRequest+instance Data.ProtoLens.Message GetInfoRequest where+ messageName _ = Data.Text.pack "lnrpc.GetInfoRequest"+ packedMessageDescriptor _+ = "\n\+ \\SOGetInfoRequest"+ packedFileDescriptor _ = packedFileDescriptor+ fieldsByTag = let in Data.Map.fromList []+ unknownFields+ = Lens.Family2.Unchecked.lens+ _GetInfoRequest'_unknownFields+ (\ x__ y__ -> x__ {_GetInfoRequest'_unknownFields = y__})+ defMessage+ = GetInfoRequest'_constructor {_GetInfoRequest'_unknownFields = []}+ parseMessage+ = let+ loop ::+ GetInfoRequest+ -> Data.ProtoLens.Encoding.Bytes.Parser GetInfoRequest+ loop x+ = do end <- Data.ProtoLens.Encoding.Bytes.atEnd+ if end then+ do (let missing = []+ in+ if Prelude.null missing then+ Prelude.return ()+ else+ Prelude.fail+ ((Prelude.++)+ "Missing required fields: "+ (Prelude.show (missing :: [Prelude.String]))))+ Prelude.return+ (Lens.Family2.over+ Data.ProtoLens.unknownFields (\ !t -> Prelude.reverse t) x)+ else+ do tag <- Data.ProtoLens.Encoding.Bytes.getVarInt+ case tag of {+ wire+ -> do !y <- Data.ProtoLens.Encoding.Wire.parseTaggedValueFromWire+ wire+ loop+ (Lens.Family2.over+ Data.ProtoLens.unknownFields (\ !t -> (:) y t) x) }+ in+ (Data.ProtoLens.Encoding.Bytes.<?>)+ (do loop Data.ProtoLens.defMessage) "GetInfoRequest"+ buildMessage+ = \ _x+ -> Data.ProtoLens.Encoding.Wire.buildFieldSet+ (Lens.Family2.view Data.ProtoLens.unknownFields _x)+instance Control.DeepSeq.NFData GetInfoRequest where+ rnf+ = \ x__+ -> Control.DeepSeq.deepseq (_GetInfoRequest'_unknownFields x__) ()+{- | Fields :+ + * 'Proto.Lightning_Fields.version' @:: Lens' GetInfoResponse Data.Text.Text@+ * 'Proto.Lightning_Fields.commitHash' @:: Lens' GetInfoResponse Data.Text.Text@+ * 'Proto.Lightning_Fields.identityPubkey' @:: Lens' GetInfoResponse Data.Text.Text@+ * 'Proto.Lightning_Fields.alias' @:: Lens' GetInfoResponse Data.Text.Text@+ * 'Proto.Lightning_Fields.color' @:: Lens' GetInfoResponse Data.Text.Text@+ * 'Proto.Lightning_Fields.numPendingChannels' @:: Lens' GetInfoResponse Data.Word.Word32@+ * 'Proto.Lightning_Fields.numActiveChannels' @:: Lens' GetInfoResponse Data.Word.Word32@+ * 'Proto.Lightning_Fields.numInactiveChannels' @:: Lens' GetInfoResponse Data.Word.Word32@+ * 'Proto.Lightning_Fields.numPeers' @:: Lens' GetInfoResponse Data.Word.Word32@+ * 'Proto.Lightning_Fields.blockHeight' @:: Lens' GetInfoResponse Data.Word.Word32@+ * 'Proto.Lightning_Fields.blockHash' @:: Lens' GetInfoResponse Data.Text.Text@+ * 'Proto.Lightning_Fields.bestHeaderTimestamp' @:: Lens' GetInfoResponse Data.Int.Int64@+ * 'Proto.Lightning_Fields.syncedToChain' @:: Lens' GetInfoResponse Prelude.Bool@+ * 'Proto.Lightning_Fields.syncedToGraph' @:: Lens' GetInfoResponse Prelude.Bool@+ * 'Proto.Lightning_Fields.testnet' @:: Lens' GetInfoResponse Prelude.Bool@+ * 'Proto.Lightning_Fields.chains' @:: Lens' GetInfoResponse [Chain]@+ * 'Proto.Lightning_Fields.vec'chains' @:: Lens' GetInfoResponse (Data.Vector.Vector Chain)@+ * 'Proto.Lightning_Fields.uris' @:: Lens' GetInfoResponse [Data.Text.Text]@+ * 'Proto.Lightning_Fields.vec'uris' @:: Lens' GetInfoResponse (Data.Vector.Vector Data.Text.Text)@+ * 'Proto.Lightning_Fields.features' @:: Lens' GetInfoResponse (Data.Map.Map Data.Word.Word32 Proto.Lnrpc.Ln0.Feature)@ -}+data GetInfoResponse+ = GetInfoResponse'_constructor {_GetInfoResponse'version :: !Data.Text.Text,+ _GetInfoResponse'commitHash :: !Data.Text.Text,+ _GetInfoResponse'identityPubkey :: !Data.Text.Text,+ _GetInfoResponse'alias :: !Data.Text.Text,+ _GetInfoResponse'color :: !Data.Text.Text,+ _GetInfoResponse'numPendingChannels :: !Data.Word.Word32,+ _GetInfoResponse'numActiveChannels :: !Data.Word.Word32,+ _GetInfoResponse'numInactiveChannels :: !Data.Word.Word32,+ _GetInfoResponse'numPeers :: !Data.Word.Word32,+ _GetInfoResponse'blockHeight :: !Data.Word.Word32,+ _GetInfoResponse'blockHash :: !Data.Text.Text,+ _GetInfoResponse'bestHeaderTimestamp :: !Data.Int.Int64,+ _GetInfoResponse'syncedToChain :: !Prelude.Bool,+ _GetInfoResponse'syncedToGraph :: !Prelude.Bool,+ _GetInfoResponse'testnet :: !Prelude.Bool,+ _GetInfoResponse'chains :: !(Data.Vector.Vector Chain),+ _GetInfoResponse'uris :: !(Data.Vector.Vector Data.Text.Text),+ _GetInfoResponse'features :: !(Data.Map.Map Data.Word.Word32 Proto.Lnrpc.Ln0.Feature),+ _GetInfoResponse'_unknownFields :: !Data.ProtoLens.FieldSet}+ deriving stock (Prelude.Eq, Prelude.Ord, GHC.Generics.Generic)+instance Prelude.Show GetInfoResponse where+ showsPrec _ __x __s+ = Prelude.showChar+ '{'+ (Prelude.showString+ (Data.ProtoLens.showMessageShort __x) (Prelude.showChar '}' __s))+instance Text.PrettyPrint.GenericPretty.Out GetInfoResponse+instance Data.ProtoLens.Field.HasField GetInfoResponse "version" Data.Text.Text where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _GetInfoResponse'version+ (\ x__ y__ -> x__ {_GetInfoResponse'version = y__}))+ Prelude.id+instance Data.ProtoLens.Field.HasField GetInfoResponse "commitHash" Data.Text.Text where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _GetInfoResponse'commitHash+ (\ x__ y__ -> x__ {_GetInfoResponse'commitHash = y__}))+ Prelude.id+instance Data.ProtoLens.Field.HasField GetInfoResponse "identityPubkey" Data.Text.Text where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _GetInfoResponse'identityPubkey+ (\ x__ y__ -> x__ {_GetInfoResponse'identityPubkey = y__}))+ Prelude.id+instance Data.ProtoLens.Field.HasField GetInfoResponse "alias" Data.Text.Text where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _GetInfoResponse'alias+ (\ x__ y__ -> x__ {_GetInfoResponse'alias = y__}))+ Prelude.id+instance Data.ProtoLens.Field.HasField GetInfoResponse "color" Data.Text.Text where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _GetInfoResponse'color+ (\ x__ y__ -> x__ {_GetInfoResponse'color = y__}))+ Prelude.id+instance Data.ProtoLens.Field.HasField GetInfoResponse "numPendingChannels" Data.Word.Word32 where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _GetInfoResponse'numPendingChannels+ (\ x__ y__ -> x__ {_GetInfoResponse'numPendingChannels = y__}))+ Prelude.id+instance Data.ProtoLens.Field.HasField GetInfoResponse "numActiveChannels" Data.Word.Word32 where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _GetInfoResponse'numActiveChannels+ (\ x__ y__ -> x__ {_GetInfoResponse'numActiveChannels = y__}))+ Prelude.id+instance Data.ProtoLens.Field.HasField GetInfoResponse "numInactiveChannels" Data.Word.Word32 where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _GetInfoResponse'numInactiveChannels+ (\ x__ y__ -> x__ {_GetInfoResponse'numInactiveChannels = y__}))+ Prelude.id+instance Data.ProtoLens.Field.HasField GetInfoResponse "numPeers" Data.Word.Word32 where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _GetInfoResponse'numPeers+ (\ x__ y__ -> x__ {_GetInfoResponse'numPeers = y__}))+ Prelude.id+instance Data.ProtoLens.Field.HasField GetInfoResponse "blockHeight" Data.Word.Word32 where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _GetInfoResponse'blockHeight+ (\ x__ y__ -> x__ {_GetInfoResponse'blockHeight = y__}))+ Prelude.id+instance Data.ProtoLens.Field.HasField GetInfoResponse "blockHash" Data.Text.Text where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _GetInfoResponse'blockHash+ (\ x__ y__ -> x__ {_GetInfoResponse'blockHash = y__}))+ Prelude.id+instance Data.ProtoLens.Field.HasField GetInfoResponse "bestHeaderTimestamp" Data.Int.Int64 where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _GetInfoResponse'bestHeaderTimestamp+ (\ x__ y__ -> x__ {_GetInfoResponse'bestHeaderTimestamp = y__}))+ Prelude.id+instance Data.ProtoLens.Field.HasField GetInfoResponse "syncedToChain" Prelude.Bool where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _GetInfoResponse'syncedToChain+ (\ x__ y__ -> x__ {_GetInfoResponse'syncedToChain = y__}))+ Prelude.id+instance Data.ProtoLens.Field.HasField GetInfoResponse "syncedToGraph" Prelude.Bool where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _GetInfoResponse'syncedToGraph+ (\ x__ y__ -> x__ {_GetInfoResponse'syncedToGraph = y__}))+ Prelude.id+instance Data.ProtoLens.Field.HasField GetInfoResponse "testnet" Prelude.Bool where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _GetInfoResponse'testnet+ (\ x__ y__ -> x__ {_GetInfoResponse'testnet = y__}))+ Prelude.id+instance Data.ProtoLens.Field.HasField GetInfoResponse "chains" [Chain] where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _GetInfoResponse'chains+ (\ x__ y__ -> x__ {_GetInfoResponse'chains = y__}))+ (Lens.Family2.Unchecked.lens+ Data.Vector.Generic.toList+ (\ _ y__ -> Data.Vector.Generic.fromList y__))+instance Data.ProtoLens.Field.HasField GetInfoResponse "vec'chains" (Data.Vector.Vector Chain) where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _GetInfoResponse'chains+ (\ x__ y__ -> x__ {_GetInfoResponse'chains = y__}))+ Prelude.id+instance Data.ProtoLens.Field.HasField GetInfoResponse "uris" [Data.Text.Text] where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _GetInfoResponse'uris+ (\ x__ y__ -> x__ {_GetInfoResponse'uris = y__}))+ (Lens.Family2.Unchecked.lens+ Data.Vector.Generic.toList+ (\ _ y__ -> Data.Vector.Generic.fromList y__))+instance Data.ProtoLens.Field.HasField GetInfoResponse "vec'uris" (Data.Vector.Vector Data.Text.Text) where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _GetInfoResponse'uris+ (\ x__ y__ -> x__ {_GetInfoResponse'uris = y__}))+ Prelude.id+instance Data.ProtoLens.Field.HasField GetInfoResponse "features" (Data.Map.Map Data.Word.Word32 Proto.Lnrpc.Ln0.Feature) where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _GetInfoResponse'features+ (\ x__ y__ -> x__ {_GetInfoResponse'features = y__}))+ Prelude.id+instance Data.ProtoLens.Message GetInfoResponse where+ messageName _ = Data.Text.pack "lnrpc.GetInfoResponse"+ packedMessageDescriptor _+ = "\n\+ \\SIGetInfoResponse\DC2\CAN\n\+ \\aversion\CAN\SO \SOH(\tR\aversion\DC2\US\n\+ \\vcommit_hash\CAN\DC4 \SOH(\tR\n\+ \commitHash\DC2'\n\+ \\SIidentity_pubkey\CAN\SOH \SOH(\tR\SOidentityPubkey\DC2\DC4\n\+ \\ENQalias\CAN\STX \SOH(\tR\ENQalias\DC2\DC4\n\+ \\ENQcolor\CAN\DC1 \SOH(\tR\ENQcolor\DC20\n\+ \\DC4num_pending_channels\CAN\ETX \SOH(\rR\DC2numPendingChannels\DC2.\n\+ \\DC3num_active_channels\CAN\EOT \SOH(\rR\DC1numActiveChannels\DC22\n\+ \\NAKnum_inactive_channels\CAN\SI \SOH(\rR\DC3numInactiveChannels\DC2\ESC\n\+ \\tnum_peers\CAN\ENQ \SOH(\rR\bnumPeers\DC2!\n\+ \\fblock_height\CAN\ACK \SOH(\rR\vblockHeight\DC2\GS\n\+ \\n\+ \block_hash\CAN\b \SOH(\tR\tblockHash\DC22\n\+ \\NAKbest_header_timestamp\CAN\r \SOH(\ETXR\DC3bestHeaderTimestamp\DC2&\n\+ \\SIsynced_to_chain\CAN\t \SOH(\bR\rsyncedToChain\DC2&\n\+ \\SIsynced_to_graph\CAN\DC2 \SOH(\bR\rsyncedToGraph\DC2\FS\n\+ \\atestnet\CAN\n\+ \ \SOH(\bR\atestnetB\STX\CAN\SOH\DC2$\n\+ \\ACKchains\CAN\DLE \ETX(\v2\f.lnrpc.ChainR\ACKchains\DC2\DC2\n\+ \\EOTuris\CAN\f \ETX(\tR\EOTuris\DC2@\n\+ \\bfeatures\CAN\DC3 \ETX(\v2$.lnrpc.GetInfoResponse.FeaturesEntryR\bfeatures\SUBK\n\+ \\rFeaturesEntry\DC2\DLE\n\+ \\ETXkey\CAN\SOH \SOH(\rR\ETXkey\DC2$\n\+ \\ENQvalue\CAN\STX \SOH(\v2\SO.lnrpc.FeatureR\ENQvalue:\STX8\SOHJ\EOT\b\v\DLE\f"+ packedFileDescriptor _ = packedFileDescriptor+ fieldsByTag+ = let+ version__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "version"+ (Data.ProtoLens.ScalarField Data.ProtoLens.StringField ::+ Data.ProtoLens.FieldTypeDescriptor Data.Text.Text)+ (Data.ProtoLens.PlainField+ Data.ProtoLens.Optional (Data.ProtoLens.Field.field @"version")) ::+ Data.ProtoLens.FieldDescriptor GetInfoResponse+ commitHash__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "commit_hash"+ (Data.ProtoLens.ScalarField Data.ProtoLens.StringField ::+ Data.ProtoLens.FieldTypeDescriptor Data.Text.Text)+ (Data.ProtoLens.PlainField+ Data.ProtoLens.Optional+ (Data.ProtoLens.Field.field @"commitHash")) ::+ Data.ProtoLens.FieldDescriptor GetInfoResponse+ identityPubkey__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "identity_pubkey"+ (Data.ProtoLens.ScalarField Data.ProtoLens.StringField ::+ Data.ProtoLens.FieldTypeDescriptor Data.Text.Text)+ (Data.ProtoLens.PlainField+ Data.ProtoLens.Optional+ (Data.ProtoLens.Field.field @"identityPubkey")) ::+ Data.ProtoLens.FieldDescriptor GetInfoResponse+ alias__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "alias"+ (Data.ProtoLens.ScalarField Data.ProtoLens.StringField ::+ Data.ProtoLens.FieldTypeDescriptor Data.Text.Text)+ (Data.ProtoLens.PlainField+ Data.ProtoLens.Optional (Data.ProtoLens.Field.field @"alias")) ::+ Data.ProtoLens.FieldDescriptor GetInfoResponse+ color__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "color"+ (Data.ProtoLens.ScalarField Data.ProtoLens.StringField ::+ Data.ProtoLens.FieldTypeDescriptor Data.Text.Text)+ (Data.ProtoLens.PlainField+ Data.ProtoLens.Optional (Data.ProtoLens.Field.field @"color")) ::+ Data.ProtoLens.FieldDescriptor GetInfoResponse+ numPendingChannels__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "num_pending_channels"+ (Data.ProtoLens.ScalarField Data.ProtoLens.UInt32Field ::+ Data.ProtoLens.FieldTypeDescriptor Data.Word.Word32)+ (Data.ProtoLens.PlainField+ Data.ProtoLens.Optional+ (Data.ProtoLens.Field.field @"numPendingChannels")) ::+ Data.ProtoLens.FieldDescriptor GetInfoResponse+ numActiveChannels__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "num_active_channels"+ (Data.ProtoLens.ScalarField Data.ProtoLens.UInt32Field ::+ Data.ProtoLens.FieldTypeDescriptor Data.Word.Word32)+ (Data.ProtoLens.PlainField+ Data.ProtoLens.Optional+ (Data.ProtoLens.Field.field @"numActiveChannels")) ::+ Data.ProtoLens.FieldDescriptor GetInfoResponse+ numInactiveChannels__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "num_inactive_channels"+ (Data.ProtoLens.ScalarField Data.ProtoLens.UInt32Field ::+ Data.ProtoLens.FieldTypeDescriptor Data.Word.Word32)+ (Data.ProtoLens.PlainField+ Data.ProtoLens.Optional+ (Data.ProtoLens.Field.field @"numInactiveChannels")) ::+ Data.ProtoLens.FieldDescriptor GetInfoResponse+ numPeers__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "num_peers"+ (Data.ProtoLens.ScalarField Data.ProtoLens.UInt32Field ::+ Data.ProtoLens.FieldTypeDescriptor Data.Word.Word32)+ (Data.ProtoLens.PlainField+ Data.ProtoLens.Optional+ (Data.ProtoLens.Field.field @"numPeers")) ::+ Data.ProtoLens.FieldDescriptor GetInfoResponse+ blockHeight__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "block_height"+ (Data.ProtoLens.ScalarField Data.ProtoLens.UInt32Field ::+ Data.ProtoLens.FieldTypeDescriptor Data.Word.Word32)+ (Data.ProtoLens.PlainField+ Data.ProtoLens.Optional+ (Data.ProtoLens.Field.field @"blockHeight")) ::+ Data.ProtoLens.FieldDescriptor GetInfoResponse+ blockHash__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "block_hash"+ (Data.ProtoLens.ScalarField Data.ProtoLens.StringField ::+ Data.ProtoLens.FieldTypeDescriptor Data.Text.Text)+ (Data.ProtoLens.PlainField+ Data.ProtoLens.Optional+ (Data.ProtoLens.Field.field @"blockHash")) ::+ Data.ProtoLens.FieldDescriptor GetInfoResponse+ bestHeaderTimestamp__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "best_header_timestamp"+ (Data.ProtoLens.ScalarField Data.ProtoLens.Int64Field ::+ Data.ProtoLens.FieldTypeDescriptor Data.Int.Int64)+ (Data.ProtoLens.PlainField+ Data.ProtoLens.Optional+ (Data.ProtoLens.Field.field @"bestHeaderTimestamp")) ::+ Data.ProtoLens.FieldDescriptor GetInfoResponse+ syncedToChain__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "synced_to_chain"+ (Data.ProtoLens.ScalarField Data.ProtoLens.BoolField ::+ Data.ProtoLens.FieldTypeDescriptor Prelude.Bool)+ (Data.ProtoLens.PlainField+ Data.ProtoLens.Optional+ (Data.ProtoLens.Field.field @"syncedToChain")) ::+ Data.ProtoLens.FieldDescriptor GetInfoResponse+ syncedToGraph__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "synced_to_graph"+ (Data.ProtoLens.ScalarField Data.ProtoLens.BoolField ::+ Data.ProtoLens.FieldTypeDescriptor Prelude.Bool)+ (Data.ProtoLens.PlainField+ Data.ProtoLens.Optional+ (Data.ProtoLens.Field.field @"syncedToGraph")) ::+ Data.ProtoLens.FieldDescriptor GetInfoResponse+ testnet__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "testnet"+ (Data.ProtoLens.ScalarField Data.ProtoLens.BoolField ::+ Data.ProtoLens.FieldTypeDescriptor Prelude.Bool)+ (Data.ProtoLens.PlainField+ Data.ProtoLens.Optional (Data.ProtoLens.Field.field @"testnet")) ::+ Data.ProtoLens.FieldDescriptor GetInfoResponse+ chains__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "chains"+ (Data.ProtoLens.MessageField Data.ProtoLens.MessageType ::+ Data.ProtoLens.FieldTypeDescriptor Chain)+ (Data.ProtoLens.RepeatedField+ Data.ProtoLens.Unpacked (Data.ProtoLens.Field.field @"chains")) ::+ Data.ProtoLens.FieldDescriptor GetInfoResponse+ uris__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "uris"+ (Data.ProtoLens.ScalarField Data.ProtoLens.StringField ::+ Data.ProtoLens.FieldTypeDescriptor Data.Text.Text)+ (Data.ProtoLens.RepeatedField+ Data.ProtoLens.Unpacked (Data.ProtoLens.Field.field @"uris")) ::+ Data.ProtoLens.FieldDescriptor GetInfoResponse+ features__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "features"+ (Data.ProtoLens.MessageField Data.ProtoLens.MessageType ::+ Data.ProtoLens.FieldTypeDescriptor GetInfoResponse'FeaturesEntry)+ (Data.ProtoLens.MapField+ (Data.ProtoLens.Field.field @"key")+ (Data.ProtoLens.Field.field @"value")+ (Data.ProtoLens.Field.field @"features")) ::+ Data.ProtoLens.FieldDescriptor GetInfoResponse+ in+ Data.Map.fromList+ [(Data.ProtoLens.Tag 14, version__field_descriptor),+ (Data.ProtoLens.Tag 20, commitHash__field_descriptor),+ (Data.ProtoLens.Tag 1, identityPubkey__field_descriptor),+ (Data.ProtoLens.Tag 2, alias__field_descriptor),+ (Data.ProtoLens.Tag 17, color__field_descriptor),+ (Data.ProtoLens.Tag 3, numPendingChannels__field_descriptor),+ (Data.ProtoLens.Tag 4, numActiveChannels__field_descriptor),+ (Data.ProtoLens.Tag 15, numInactiveChannels__field_descriptor),+ (Data.ProtoLens.Tag 5, numPeers__field_descriptor),+ (Data.ProtoLens.Tag 6, blockHeight__field_descriptor),+ (Data.ProtoLens.Tag 8, blockHash__field_descriptor),+ (Data.ProtoLens.Tag 13, bestHeaderTimestamp__field_descriptor),+ (Data.ProtoLens.Tag 9, syncedToChain__field_descriptor),+ (Data.ProtoLens.Tag 18, syncedToGraph__field_descriptor),+ (Data.ProtoLens.Tag 10, testnet__field_descriptor),+ (Data.ProtoLens.Tag 16, chains__field_descriptor),+ (Data.ProtoLens.Tag 12, uris__field_descriptor),+ (Data.ProtoLens.Tag 19, features__field_descriptor)]+ unknownFields+ = Lens.Family2.Unchecked.lens+ _GetInfoResponse'_unknownFields+ (\ x__ y__ -> x__ {_GetInfoResponse'_unknownFields = y__})+ defMessage+ = GetInfoResponse'_constructor+ {_GetInfoResponse'version = Data.ProtoLens.fieldDefault,+ _GetInfoResponse'commitHash = Data.ProtoLens.fieldDefault,+ _GetInfoResponse'identityPubkey = Data.ProtoLens.fieldDefault,+ _GetInfoResponse'alias = Data.ProtoLens.fieldDefault,+ _GetInfoResponse'color = Data.ProtoLens.fieldDefault,+ _GetInfoResponse'numPendingChannels = Data.ProtoLens.fieldDefault,+ _GetInfoResponse'numActiveChannels = Data.ProtoLens.fieldDefault,+ _GetInfoResponse'numInactiveChannels = Data.ProtoLens.fieldDefault,+ _GetInfoResponse'numPeers = Data.ProtoLens.fieldDefault,+ _GetInfoResponse'blockHeight = Data.ProtoLens.fieldDefault,+ _GetInfoResponse'blockHash = Data.ProtoLens.fieldDefault,+ _GetInfoResponse'bestHeaderTimestamp = Data.ProtoLens.fieldDefault,+ _GetInfoResponse'syncedToChain = Data.ProtoLens.fieldDefault,+ _GetInfoResponse'syncedToGraph = Data.ProtoLens.fieldDefault,+ _GetInfoResponse'testnet = Data.ProtoLens.fieldDefault,+ _GetInfoResponse'chains = Data.Vector.Generic.empty,+ _GetInfoResponse'uris = Data.Vector.Generic.empty,+ _GetInfoResponse'features = Data.Map.empty,+ _GetInfoResponse'_unknownFields = []}+ parseMessage+ = let+ loop ::+ GetInfoResponse+ -> Data.ProtoLens.Encoding.Growing.Growing Data.Vector.Vector Data.ProtoLens.Encoding.Growing.RealWorld Chain+ -> Data.ProtoLens.Encoding.Growing.Growing Data.Vector.Vector Data.ProtoLens.Encoding.Growing.RealWorld Data.Text.Text+ -> Data.ProtoLens.Encoding.Bytes.Parser GetInfoResponse+ loop x mutable'chains mutable'uris+ = do end <- Data.ProtoLens.Encoding.Bytes.atEnd+ if end then+ do frozen'chains <- Data.ProtoLens.Encoding.Parser.Unsafe.unsafeLiftIO+ (Data.ProtoLens.Encoding.Growing.unsafeFreeze+ mutable'chains)+ frozen'uris <- Data.ProtoLens.Encoding.Parser.Unsafe.unsafeLiftIO+ (Data.ProtoLens.Encoding.Growing.unsafeFreeze mutable'uris)+ (let missing = []+ in+ if Prelude.null missing then+ Prelude.return ()+ else+ Prelude.fail+ ((Prelude.++)+ "Missing required fields: "+ (Prelude.show (missing :: [Prelude.String]))))+ Prelude.return+ (Lens.Family2.over+ Data.ProtoLens.unknownFields (\ !t -> Prelude.reverse t)+ (Lens.Family2.set+ (Data.ProtoLens.Field.field @"vec'chains") frozen'chains+ (Lens.Family2.set+ (Data.ProtoLens.Field.field @"vec'uris") frozen'uris x)))+ else+ do tag <- Data.ProtoLens.Encoding.Bytes.getVarInt+ case tag of+ 114+ -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (do value <- do len <- Data.ProtoLens.Encoding.Bytes.getVarInt+ Data.ProtoLens.Encoding.Bytes.getBytes+ (Prelude.fromIntegral len)+ Data.ProtoLens.Encoding.Bytes.runEither+ (case Data.Text.Encoding.decodeUtf8' value of+ (Prelude.Left err)+ -> Prelude.Left (Prelude.show err)+ (Prelude.Right r) -> Prelude.Right r))+ "version"+ loop+ (Lens.Family2.set (Data.ProtoLens.Field.field @"version") y x)+ mutable'chains mutable'uris+ 162+ -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (do value <- do len <- Data.ProtoLens.Encoding.Bytes.getVarInt+ Data.ProtoLens.Encoding.Bytes.getBytes+ (Prelude.fromIntegral len)+ Data.ProtoLens.Encoding.Bytes.runEither+ (case Data.Text.Encoding.decodeUtf8' value of+ (Prelude.Left err)+ -> Prelude.Left (Prelude.show err)+ (Prelude.Right r) -> Prelude.Right r))+ "commit_hash"+ loop+ (Lens.Family2.set (Data.ProtoLens.Field.field @"commitHash") y x)+ mutable'chains mutable'uris+ 10+ -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (do value <- do len <- Data.ProtoLens.Encoding.Bytes.getVarInt+ Data.ProtoLens.Encoding.Bytes.getBytes+ (Prelude.fromIntegral len)+ Data.ProtoLens.Encoding.Bytes.runEither+ (case Data.Text.Encoding.decodeUtf8' value of+ (Prelude.Left err)+ -> Prelude.Left (Prelude.show err)+ (Prelude.Right r) -> Prelude.Right r))+ "identity_pubkey"+ loop+ (Lens.Family2.set+ (Data.ProtoLens.Field.field @"identityPubkey") y x)+ mutable'chains mutable'uris+ 18+ -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (do value <- do len <- Data.ProtoLens.Encoding.Bytes.getVarInt+ Data.ProtoLens.Encoding.Bytes.getBytes+ (Prelude.fromIntegral len)+ Data.ProtoLens.Encoding.Bytes.runEither+ (case Data.Text.Encoding.decodeUtf8' value of+ (Prelude.Left err)+ -> Prelude.Left (Prelude.show err)+ (Prelude.Right r) -> Prelude.Right r))+ "alias"+ loop+ (Lens.Family2.set (Data.ProtoLens.Field.field @"alias") y x)+ mutable'chains mutable'uris+ 138+ -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (do value <- do len <- Data.ProtoLens.Encoding.Bytes.getVarInt+ Data.ProtoLens.Encoding.Bytes.getBytes+ (Prelude.fromIntegral len)+ Data.ProtoLens.Encoding.Bytes.runEither+ (case Data.Text.Encoding.decodeUtf8' value of+ (Prelude.Left err)+ -> Prelude.Left (Prelude.show err)+ (Prelude.Right r) -> Prelude.Right r))+ "color"+ loop+ (Lens.Family2.set (Data.ProtoLens.Field.field @"color") y x)+ mutable'chains mutable'uris+ 24+ -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (Prelude.fmap+ Prelude.fromIntegral+ Data.ProtoLens.Encoding.Bytes.getVarInt)+ "num_pending_channels"+ loop+ (Lens.Family2.set+ (Data.ProtoLens.Field.field @"numPendingChannels") y x)+ mutable'chains mutable'uris+ 32+ -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (Prelude.fmap+ Prelude.fromIntegral+ Data.ProtoLens.Encoding.Bytes.getVarInt)+ "num_active_channels"+ loop+ (Lens.Family2.set+ (Data.ProtoLens.Field.field @"numActiveChannels") y x)+ mutable'chains mutable'uris+ 120+ -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (Prelude.fmap+ Prelude.fromIntegral+ Data.ProtoLens.Encoding.Bytes.getVarInt)+ "num_inactive_channels"+ loop+ (Lens.Family2.set+ (Data.ProtoLens.Field.field @"numInactiveChannels") y x)+ mutable'chains mutable'uris+ 40+ -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (Prelude.fmap+ Prelude.fromIntegral+ Data.ProtoLens.Encoding.Bytes.getVarInt)+ "num_peers"+ loop+ (Lens.Family2.set (Data.ProtoLens.Field.field @"numPeers") y x)+ mutable'chains mutable'uris+ 48+ -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (Prelude.fmap+ Prelude.fromIntegral+ Data.ProtoLens.Encoding.Bytes.getVarInt)+ "block_height"+ loop+ (Lens.Family2.set (Data.ProtoLens.Field.field @"blockHeight") y x)+ mutable'chains mutable'uris+ 66+ -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (do value <- do len <- Data.ProtoLens.Encoding.Bytes.getVarInt+ Data.ProtoLens.Encoding.Bytes.getBytes+ (Prelude.fromIntegral len)+ Data.ProtoLens.Encoding.Bytes.runEither+ (case Data.Text.Encoding.decodeUtf8' value of+ (Prelude.Left err)+ -> Prelude.Left (Prelude.show err)+ (Prelude.Right r) -> Prelude.Right r))+ "block_hash"+ loop+ (Lens.Family2.set (Data.ProtoLens.Field.field @"blockHash") y x)+ mutable'chains mutable'uris+ 104+ -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (Prelude.fmap+ Prelude.fromIntegral+ Data.ProtoLens.Encoding.Bytes.getVarInt)+ "best_header_timestamp"+ loop+ (Lens.Family2.set+ (Data.ProtoLens.Field.field @"bestHeaderTimestamp") y x)+ mutable'chains mutable'uris+ 72+ -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (Prelude.fmap+ ((Prelude./=) 0) Data.ProtoLens.Encoding.Bytes.getVarInt)+ "synced_to_chain"+ loop+ (Lens.Family2.set+ (Data.ProtoLens.Field.field @"syncedToChain") y x)+ mutable'chains mutable'uris+ 144+ -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (Prelude.fmap+ ((Prelude./=) 0) Data.ProtoLens.Encoding.Bytes.getVarInt)+ "synced_to_graph"+ loop+ (Lens.Family2.set+ (Data.ProtoLens.Field.field @"syncedToGraph") y x)+ mutable'chains mutable'uris+ 80+ -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (Prelude.fmap+ ((Prelude./=) 0) Data.ProtoLens.Encoding.Bytes.getVarInt)+ "testnet"+ loop+ (Lens.Family2.set (Data.ProtoLens.Field.field @"testnet") y x)+ mutable'chains mutable'uris+ 130+ -> do !y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (do len <- Data.ProtoLens.Encoding.Bytes.getVarInt+ Data.ProtoLens.Encoding.Bytes.isolate+ (Prelude.fromIntegral len)+ Data.ProtoLens.parseMessage)+ "chains"+ v <- Data.ProtoLens.Encoding.Parser.Unsafe.unsafeLiftIO+ (Data.ProtoLens.Encoding.Growing.append mutable'chains y)+ loop x v mutable'uris+ 98+ -> do !y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (do value <- do len <- Data.ProtoLens.Encoding.Bytes.getVarInt+ Data.ProtoLens.Encoding.Bytes.getBytes+ (Prelude.fromIntegral len)+ Data.ProtoLens.Encoding.Bytes.runEither+ (case Data.Text.Encoding.decodeUtf8' value of+ (Prelude.Left err)+ -> Prelude.Left (Prelude.show err)+ (Prelude.Right r) -> Prelude.Right r))+ "uris"+ v <- Data.ProtoLens.Encoding.Parser.Unsafe.unsafeLiftIO+ (Data.ProtoLens.Encoding.Growing.append mutable'uris y)+ loop x mutable'chains v+ 154+ -> do !(entry :: GetInfoResponse'FeaturesEntry) <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (do len <- Data.ProtoLens.Encoding.Bytes.getVarInt+ Data.ProtoLens.Encoding.Bytes.isolate+ (Prelude.fromIntegral+ len)+ Data.ProtoLens.parseMessage)+ "features"+ (let+ key = Lens.Family2.view (Data.ProtoLens.Field.field @"key") entry+ value+ = Lens.Family2.view (Data.ProtoLens.Field.field @"value") entry+ in+ loop+ (Lens.Family2.over+ (Data.ProtoLens.Field.field @"features")+ (\ !t -> Data.Map.insert key value t) x)+ mutable'chains mutable'uris)+ wire+ -> do !y <- Data.ProtoLens.Encoding.Wire.parseTaggedValueFromWire+ wire+ loop+ (Lens.Family2.over+ Data.ProtoLens.unknownFields (\ !t -> (:) y t) x)+ mutable'chains mutable'uris+ in+ (Data.ProtoLens.Encoding.Bytes.<?>)+ (do mutable'chains <- Data.ProtoLens.Encoding.Parser.Unsafe.unsafeLiftIO+ Data.ProtoLens.Encoding.Growing.new+ mutable'uris <- Data.ProtoLens.Encoding.Parser.Unsafe.unsafeLiftIO+ Data.ProtoLens.Encoding.Growing.new+ loop Data.ProtoLens.defMessage mutable'chains mutable'uris)+ "GetInfoResponse"+ buildMessage+ = \ _x+ -> (Data.Monoid.<>)+ (let+ _v = Lens.Family2.view (Data.ProtoLens.Field.field @"version") _x+ in+ if (Prelude.==) _v Data.ProtoLens.fieldDefault then+ Data.Monoid.mempty+ else+ (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 114)+ ((Prelude..)+ (\ bs+ -> (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt+ (Prelude.fromIntegral (Data.ByteString.length bs)))+ (Data.ProtoLens.Encoding.Bytes.putBytes bs))+ Data.Text.Encoding.encodeUtf8 _v))+ ((Data.Monoid.<>)+ (let+ _v+ = Lens.Family2.view (Data.ProtoLens.Field.field @"commitHash") _x+ in+ if (Prelude.==) _v Data.ProtoLens.fieldDefault then+ Data.Monoid.mempty+ else+ (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 162)+ ((Prelude..)+ (\ bs+ -> (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt+ (Prelude.fromIntegral (Data.ByteString.length bs)))+ (Data.ProtoLens.Encoding.Bytes.putBytes bs))+ Data.Text.Encoding.encodeUtf8 _v))+ ((Data.Monoid.<>)+ (let+ _v+ = Lens.Family2.view+ (Data.ProtoLens.Field.field @"identityPubkey") _x+ in+ if (Prelude.==) _v Data.ProtoLens.fieldDefault then+ Data.Monoid.mempty+ else+ (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 10)+ ((Prelude..)+ (\ bs+ -> (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt+ (Prelude.fromIntegral (Data.ByteString.length bs)))+ (Data.ProtoLens.Encoding.Bytes.putBytes bs))+ Data.Text.Encoding.encodeUtf8 _v))+ ((Data.Monoid.<>)+ (let+ _v = Lens.Family2.view (Data.ProtoLens.Field.field @"alias") _x+ in+ if (Prelude.==) _v Data.ProtoLens.fieldDefault then+ Data.Monoid.mempty+ else+ (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 18)+ ((Prelude..)+ (\ bs+ -> (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt+ (Prelude.fromIntegral (Data.ByteString.length bs)))+ (Data.ProtoLens.Encoding.Bytes.putBytes bs))+ Data.Text.Encoding.encodeUtf8 _v))+ ((Data.Monoid.<>)+ (let+ _v = Lens.Family2.view (Data.ProtoLens.Field.field @"color") _x+ in+ if (Prelude.==) _v Data.ProtoLens.fieldDefault then+ Data.Monoid.mempty+ else+ (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 138)+ ((Prelude..)+ (\ bs+ -> (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt+ (Prelude.fromIntegral (Data.ByteString.length bs)))+ (Data.ProtoLens.Encoding.Bytes.putBytes bs))+ Data.Text.Encoding.encodeUtf8 _v))+ ((Data.Monoid.<>)+ (let+ _v+ = Lens.Family2.view+ (Data.ProtoLens.Field.field @"numPendingChannels") _x+ in+ if (Prelude.==) _v Data.ProtoLens.fieldDefault then+ Data.Monoid.mempty+ else+ (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 24)+ ((Prelude..)+ Data.ProtoLens.Encoding.Bytes.putVarInt Prelude.fromIntegral+ _v))+ ((Data.Monoid.<>)+ (let+ _v+ = Lens.Family2.view+ (Data.ProtoLens.Field.field @"numActiveChannels") _x+ in+ if (Prelude.==) _v Data.ProtoLens.fieldDefault then+ Data.Monoid.mempty+ else+ (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 32)+ ((Prelude..)+ Data.ProtoLens.Encoding.Bytes.putVarInt+ Prelude.fromIntegral _v))+ ((Data.Monoid.<>)+ (let+ _v+ = Lens.Family2.view+ (Data.ProtoLens.Field.field @"numInactiveChannels") _x+ in+ if (Prelude.==) _v Data.ProtoLens.fieldDefault then+ Data.Monoid.mempty+ else+ (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 120)+ ((Prelude..)+ Data.ProtoLens.Encoding.Bytes.putVarInt+ Prelude.fromIntegral _v))+ ((Data.Monoid.<>)+ (let+ _v+ = Lens.Family2.view+ (Data.ProtoLens.Field.field @"numPeers") _x+ in+ if (Prelude.==) _v Data.ProtoLens.fieldDefault then+ Data.Monoid.mempty+ else+ (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 40)+ ((Prelude..)+ Data.ProtoLens.Encoding.Bytes.putVarInt+ Prelude.fromIntegral _v))+ ((Data.Monoid.<>)+ (let+ _v+ = Lens.Family2.view+ (Data.ProtoLens.Field.field @"blockHeight") _x+ in+ if (Prelude.==) _v Data.ProtoLens.fieldDefault then+ Data.Monoid.mempty+ else+ (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 48)+ ((Prelude..)+ Data.ProtoLens.Encoding.Bytes.putVarInt+ Prelude.fromIntegral _v))+ ((Data.Monoid.<>)+ (let+ _v+ = Lens.Family2.view+ (Data.ProtoLens.Field.field @"blockHash") _x+ in+ if (Prelude.==) _v Data.ProtoLens.fieldDefault then+ Data.Monoid.mempty+ else+ (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 66)+ ((Prelude..)+ (\ bs+ -> (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt+ (Prelude.fromIntegral+ (Data.ByteString.length bs)))+ (Data.ProtoLens.Encoding.Bytes.putBytes+ bs))+ Data.Text.Encoding.encodeUtf8 _v))+ ((Data.Monoid.<>)+ (let+ _v+ = Lens.Family2.view+ (Data.ProtoLens.Field.field+ @"bestHeaderTimestamp")+ _x+ in+ if (Prelude.==) _v Data.ProtoLens.fieldDefault then+ Data.Monoid.mempty+ else+ (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 104)+ ((Prelude..)+ Data.ProtoLens.Encoding.Bytes.putVarInt+ Prelude.fromIntegral _v))+ ((Data.Monoid.<>)+ (let+ _v+ = Lens.Family2.view+ (Data.ProtoLens.Field.field+ @"syncedToChain")+ _x+ in+ if (Prelude.==)+ _v Data.ProtoLens.fieldDefault then+ Data.Monoid.mempty+ else+ (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt+ 72)+ ((Prelude..)+ Data.ProtoLens.Encoding.Bytes.putVarInt+ (\ b -> if b then 1 else 0) _v))+ ((Data.Monoid.<>)+ (let+ _v+ = Lens.Family2.view+ (Data.ProtoLens.Field.field+ @"syncedToGraph")+ _x+ in+ if (Prelude.==)+ _v Data.ProtoLens.fieldDefault then+ Data.Monoid.mempty+ else+ (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt+ 144)+ ((Prelude..)+ Data.ProtoLens.Encoding.Bytes.putVarInt+ (\ b -> if b then 1 else 0) _v))+ ((Data.Monoid.<>)+ (let+ _v+ = Lens.Family2.view+ (Data.ProtoLens.Field.field+ @"testnet")+ _x+ in+ if (Prelude.==)+ _v Data.ProtoLens.fieldDefault then+ Data.Monoid.mempty+ else+ (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt+ 80)+ ((Prelude..)+ Data.ProtoLens.Encoding.Bytes.putVarInt+ (\ b -> if b then 1 else 0) _v))+ ((Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.foldMapBuilder+ (\ _v+ -> (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt+ 130)+ ((Prelude..)+ (\ bs+ -> (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt+ (Prelude.fromIntegral+ (Data.ByteString.length+ bs)))+ (Data.ProtoLens.Encoding.Bytes.putBytes+ bs))+ Data.ProtoLens.encodeMessage+ _v))+ (Lens.Family2.view+ (Data.ProtoLens.Field.field+ @"vec'chains")+ _x))+ ((Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.foldMapBuilder+ (\ _v+ -> (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt+ 98)+ ((Prelude..)+ (\ bs+ -> (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt+ (Prelude.fromIntegral+ (Data.ByteString.length+ bs)))+ (Data.ProtoLens.Encoding.Bytes.putBytes+ bs))+ Data.Text.Encoding.encodeUtf8+ _v))+ (Lens.Family2.view+ (Data.ProtoLens.Field.field+ @"vec'uris")+ _x))+ ((Data.Monoid.<>)+ (Data.Monoid.mconcat+ (Prelude.map+ (\ _v+ -> (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt+ 154)+ ((Prelude..)+ (\ bs+ -> (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt+ (Prelude.fromIntegral+ (Data.ByteString.length+ bs)))+ (Data.ProtoLens.Encoding.Bytes.putBytes+ bs))+ Data.ProtoLens.encodeMessage+ (Lens.Family2.set+ (Data.ProtoLens.Field.field+ @"key")+ (Prelude.fst _v)+ (Lens.Family2.set+ (Data.ProtoLens.Field.field+ @"value")+ (Prelude.snd+ _v)+ (Data.ProtoLens.defMessage ::+ GetInfoResponse'FeaturesEntry)))))+ (Data.Map.toList+ (Lens.Family2.view+ (Data.ProtoLens.Field.field+ @"features")+ _x))))+ (Data.ProtoLens.Encoding.Wire.buildFieldSet+ (Lens.Family2.view+ Data.ProtoLens.unknownFields+ _x)))))))))))))))))))+instance Control.DeepSeq.NFData GetInfoResponse where+ rnf+ = \ x__+ -> Control.DeepSeq.deepseq+ (_GetInfoResponse'_unknownFields x__)+ (Control.DeepSeq.deepseq+ (_GetInfoResponse'version x__)+ (Control.DeepSeq.deepseq+ (_GetInfoResponse'commitHash x__)+ (Control.DeepSeq.deepseq+ (_GetInfoResponse'identityPubkey x__)+ (Control.DeepSeq.deepseq+ (_GetInfoResponse'alias x__)+ (Control.DeepSeq.deepseq+ (_GetInfoResponse'color x__)+ (Control.DeepSeq.deepseq+ (_GetInfoResponse'numPendingChannels x__)+ (Control.DeepSeq.deepseq+ (_GetInfoResponse'numActiveChannels x__)+ (Control.DeepSeq.deepseq+ (_GetInfoResponse'numInactiveChannels x__)+ (Control.DeepSeq.deepseq+ (_GetInfoResponse'numPeers x__)+ (Control.DeepSeq.deepseq+ (_GetInfoResponse'blockHeight x__)+ (Control.DeepSeq.deepseq+ (_GetInfoResponse'blockHash x__)+ (Control.DeepSeq.deepseq+ (_GetInfoResponse'bestHeaderTimestamp x__)+ (Control.DeepSeq.deepseq+ (_GetInfoResponse'syncedToChain x__)+ (Control.DeepSeq.deepseq+ (_GetInfoResponse'syncedToGraph x__)+ (Control.DeepSeq.deepseq+ (_GetInfoResponse'testnet x__)+ (Control.DeepSeq.deepseq+ (_GetInfoResponse'chains x__)+ (Control.DeepSeq.deepseq+ (_GetInfoResponse'uris x__)+ (Control.DeepSeq.deepseq+ (_GetInfoResponse'features x__)+ ()))))))))))))))))))+{- | Fields :+ + * 'Proto.Lightning_Fields.key' @:: Lens' GetInfoResponse'FeaturesEntry Data.Word.Word32@+ * 'Proto.Lightning_Fields.value' @:: Lens' GetInfoResponse'FeaturesEntry Proto.Lnrpc.Ln0.Feature@+ * 'Proto.Lightning_Fields.maybe'value' @:: Lens' GetInfoResponse'FeaturesEntry (Prelude.Maybe Proto.Lnrpc.Ln0.Feature)@ -}+data GetInfoResponse'FeaturesEntry+ = GetInfoResponse'FeaturesEntry'_constructor {_GetInfoResponse'FeaturesEntry'key :: !Data.Word.Word32,+ _GetInfoResponse'FeaturesEntry'value :: !(Prelude.Maybe Proto.Lnrpc.Ln0.Feature),+ _GetInfoResponse'FeaturesEntry'_unknownFields :: !Data.ProtoLens.FieldSet}+ deriving stock (Prelude.Eq, Prelude.Ord, GHC.Generics.Generic)+instance Prelude.Show GetInfoResponse'FeaturesEntry where+ showsPrec _ __x __s+ = Prelude.showChar+ '{'+ (Prelude.showString+ (Data.ProtoLens.showMessageShort __x) (Prelude.showChar '}' __s))+instance Text.PrettyPrint.GenericPretty.Out GetInfoResponse'FeaturesEntry+instance Data.ProtoLens.Field.HasField GetInfoResponse'FeaturesEntry "key" Data.Word.Word32 where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _GetInfoResponse'FeaturesEntry'key+ (\ x__ y__ -> x__ {_GetInfoResponse'FeaturesEntry'key = y__}))+ Prelude.id+instance Data.ProtoLens.Field.HasField GetInfoResponse'FeaturesEntry "value" Proto.Lnrpc.Ln0.Feature where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _GetInfoResponse'FeaturesEntry'value+ (\ x__ y__ -> x__ {_GetInfoResponse'FeaturesEntry'value = y__}))+ (Data.ProtoLens.maybeLens Data.ProtoLens.defMessage)+instance Data.ProtoLens.Field.HasField GetInfoResponse'FeaturesEntry "maybe'value" (Prelude.Maybe Proto.Lnrpc.Ln0.Feature) where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _GetInfoResponse'FeaturesEntry'value+ (\ x__ y__ -> x__ {_GetInfoResponse'FeaturesEntry'value = y__}))+ Prelude.id+instance Data.ProtoLens.Message GetInfoResponse'FeaturesEntry where+ messageName _+ = Data.Text.pack "lnrpc.GetInfoResponse.FeaturesEntry"+ packedMessageDescriptor _+ = "\n\+ \\rFeaturesEntry\DC2\DLE\n\+ \\ETXkey\CAN\SOH \SOH(\rR\ETXkey\DC2$\n\+ \\ENQvalue\CAN\STX \SOH(\v2\SO.lnrpc.FeatureR\ENQvalue:\STX8\SOH"+ packedFileDescriptor _ = packedFileDescriptor+ fieldsByTag+ = let+ key__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "key"+ (Data.ProtoLens.ScalarField Data.ProtoLens.UInt32Field ::+ Data.ProtoLens.FieldTypeDescriptor Data.Word.Word32)+ (Data.ProtoLens.PlainField+ Data.ProtoLens.Optional (Data.ProtoLens.Field.field @"key")) ::+ Data.ProtoLens.FieldDescriptor GetInfoResponse'FeaturesEntry+ value__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "value"+ (Data.ProtoLens.MessageField Data.ProtoLens.MessageType ::+ Data.ProtoLens.FieldTypeDescriptor Proto.Lnrpc.Ln0.Feature)+ (Data.ProtoLens.OptionalField+ (Data.ProtoLens.Field.field @"maybe'value")) ::+ Data.ProtoLens.FieldDescriptor GetInfoResponse'FeaturesEntry+ in+ Data.Map.fromList+ [(Data.ProtoLens.Tag 1, key__field_descriptor),+ (Data.ProtoLens.Tag 2, value__field_descriptor)]+ unknownFields+ = Lens.Family2.Unchecked.lens+ _GetInfoResponse'FeaturesEntry'_unknownFields+ (\ x__ y__+ -> x__ {_GetInfoResponse'FeaturesEntry'_unknownFields = y__})+ defMessage+ = GetInfoResponse'FeaturesEntry'_constructor+ {_GetInfoResponse'FeaturesEntry'key = Data.ProtoLens.fieldDefault,+ _GetInfoResponse'FeaturesEntry'value = Prelude.Nothing,+ _GetInfoResponse'FeaturesEntry'_unknownFields = []}+ parseMessage+ = let+ loop ::+ GetInfoResponse'FeaturesEntry+ -> Data.ProtoLens.Encoding.Bytes.Parser GetInfoResponse'FeaturesEntry+ loop x+ = do end <- Data.ProtoLens.Encoding.Bytes.atEnd+ if end then+ do (let missing = []+ in+ if Prelude.null missing then+ Prelude.return ()+ else+ Prelude.fail+ ((Prelude.++)+ "Missing required fields: "+ (Prelude.show (missing :: [Prelude.String]))))+ Prelude.return+ (Lens.Family2.over+ Data.ProtoLens.unknownFields (\ !t -> Prelude.reverse t) x)+ else+ do tag <- Data.ProtoLens.Encoding.Bytes.getVarInt+ case tag of+ 8 -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (Prelude.fmap+ Prelude.fromIntegral+ Data.ProtoLens.Encoding.Bytes.getVarInt)+ "key"+ loop (Lens.Family2.set (Data.ProtoLens.Field.field @"key") y x)+ 18+ -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (do len <- Data.ProtoLens.Encoding.Bytes.getVarInt+ Data.ProtoLens.Encoding.Bytes.isolate+ (Prelude.fromIntegral len) Data.ProtoLens.parseMessage)+ "value"+ loop (Lens.Family2.set (Data.ProtoLens.Field.field @"value") y x)+ wire+ -> do !y <- Data.ProtoLens.Encoding.Wire.parseTaggedValueFromWire+ wire+ loop+ (Lens.Family2.over+ Data.ProtoLens.unknownFields (\ !t -> (:) y t) x)+ in+ (Data.ProtoLens.Encoding.Bytes.<?>)+ (do loop Data.ProtoLens.defMessage) "FeaturesEntry"+ buildMessage+ = \ _x+ -> (Data.Monoid.<>)+ (let _v = Lens.Family2.view (Data.ProtoLens.Field.field @"key") _x+ in+ if (Prelude.==) _v Data.ProtoLens.fieldDefault then+ Data.Monoid.mempty+ else+ (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 8)+ ((Prelude..)+ Data.ProtoLens.Encoding.Bytes.putVarInt Prelude.fromIntegral _v))+ ((Data.Monoid.<>)+ (case+ Lens.Family2.view (Data.ProtoLens.Field.field @"maybe'value") _x+ of+ Prelude.Nothing -> Data.Monoid.mempty+ (Prelude.Just _v)+ -> (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 18)+ ((Prelude..)+ (\ bs+ -> (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt+ (Prelude.fromIntegral (Data.ByteString.length bs)))+ (Data.ProtoLens.Encoding.Bytes.putBytes bs))+ Data.ProtoLens.encodeMessage _v))+ (Data.ProtoLens.Encoding.Wire.buildFieldSet+ (Lens.Family2.view Data.ProtoLens.unknownFields _x)))+instance Control.DeepSeq.NFData GetInfoResponse'FeaturesEntry where+ rnf+ = \ x__+ -> Control.DeepSeq.deepseq+ (_GetInfoResponse'FeaturesEntry'_unknownFields x__)+ (Control.DeepSeq.deepseq+ (_GetInfoResponse'FeaturesEntry'key x__)+ (Control.DeepSeq.deepseq+ (_GetInfoResponse'FeaturesEntry'value x__) ()))+{- | Fields :+ -}+data GetRecoveryInfoRequest+ = GetRecoveryInfoRequest'_constructor {_GetRecoveryInfoRequest'_unknownFields :: !Data.ProtoLens.FieldSet}+ deriving stock (Prelude.Eq, Prelude.Ord, GHC.Generics.Generic)+instance Prelude.Show GetRecoveryInfoRequest where+ showsPrec _ __x __s+ = Prelude.showChar+ '{'+ (Prelude.showString+ (Data.ProtoLens.showMessageShort __x) (Prelude.showChar '}' __s))+instance Text.PrettyPrint.GenericPretty.Out GetRecoveryInfoRequest+instance Data.ProtoLens.Message GetRecoveryInfoRequest where+ messageName _ = Data.Text.pack "lnrpc.GetRecoveryInfoRequest"+ packedMessageDescriptor _+ = "\n\+ \\SYNGetRecoveryInfoRequest"+ packedFileDescriptor _ = packedFileDescriptor+ fieldsByTag = let in Data.Map.fromList []+ unknownFields+ = Lens.Family2.Unchecked.lens+ _GetRecoveryInfoRequest'_unknownFields+ (\ x__ y__ -> x__ {_GetRecoveryInfoRequest'_unknownFields = y__})+ defMessage+ = GetRecoveryInfoRequest'_constructor+ {_GetRecoveryInfoRequest'_unknownFields = []}+ parseMessage+ = let+ loop ::+ GetRecoveryInfoRequest+ -> Data.ProtoLens.Encoding.Bytes.Parser GetRecoveryInfoRequest+ loop x+ = do end <- Data.ProtoLens.Encoding.Bytes.atEnd+ if end then+ do (let missing = []+ in+ if Prelude.null missing then+ Prelude.return ()+ else+ Prelude.fail+ ((Prelude.++)+ "Missing required fields: "+ (Prelude.show (missing :: [Prelude.String]))))+ Prelude.return+ (Lens.Family2.over+ Data.ProtoLens.unknownFields (\ !t -> Prelude.reverse t) x)+ else+ do tag <- Data.ProtoLens.Encoding.Bytes.getVarInt+ case tag of {+ wire+ -> do !y <- Data.ProtoLens.Encoding.Wire.parseTaggedValueFromWire+ wire+ loop+ (Lens.Family2.over+ Data.ProtoLens.unknownFields (\ !t -> (:) y t) x) }+ in+ (Data.ProtoLens.Encoding.Bytes.<?>)+ (do loop Data.ProtoLens.defMessage) "GetRecoveryInfoRequest"+ buildMessage+ = \ _x+ -> Data.ProtoLens.Encoding.Wire.buildFieldSet+ (Lens.Family2.view Data.ProtoLens.unknownFields _x)+instance Control.DeepSeq.NFData GetRecoveryInfoRequest where+ rnf+ = \ x__+ -> Control.DeepSeq.deepseq+ (_GetRecoveryInfoRequest'_unknownFields x__) ()+{- | Fields :+ + * 'Proto.Lightning_Fields.recoveryMode' @:: Lens' GetRecoveryInfoResponse Prelude.Bool@+ * 'Proto.Lightning_Fields.recoveryFinished' @:: Lens' GetRecoveryInfoResponse Prelude.Bool@+ * 'Proto.Lightning_Fields.progress' @:: Lens' GetRecoveryInfoResponse Prelude.Double@ -}+data GetRecoveryInfoResponse+ = GetRecoveryInfoResponse'_constructor {_GetRecoveryInfoResponse'recoveryMode :: !Prelude.Bool,+ _GetRecoveryInfoResponse'recoveryFinished :: !Prelude.Bool,+ _GetRecoveryInfoResponse'progress :: !Prelude.Double,+ _GetRecoveryInfoResponse'_unknownFields :: !Data.ProtoLens.FieldSet}+ deriving stock (Prelude.Eq, Prelude.Ord, GHC.Generics.Generic)+instance Prelude.Show GetRecoveryInfoResponse where+ showsPrec _ __x __s+ = Prelude.showChar+ '{'+ (Prelude.showString+ (Data.ProtoLens.showMessageShort __x) (Prelude.showChar '}' __s))+instance Text.PrettyPrint.GenericPretty.Out GetRecoveryInfoResponse+instance Data.ProtoLens.Field.HasField GetRecoveryInfoResponse "recoveryMode" Prelude.Bool where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _GetRecoveryInfoResponse'recoveryMode+ (\ x__ y__ -> x__ {_GetRecoveryInfoResponse'recoveryMode = y__}))+ Prelude.id+instance Data.ProtoLens.Field.HasField GetRecoveryInfoResponse "recoveryFinished" Prelude.Bool where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _GetRecoveryInfoResponse'recoveryFinished+ (\ x__ y__+ -> x__ {_GetRecoveryInfoResponse'recoveryFinished = y__}))+ Prelude.id+instance Data.ProtoLens.Field.HasField GetRecoveryInfoResponse "progress" Prelude.Double where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _GetRecoveryInfoResponse'progress+ (\ x__ y__ -> x__ {_GetRecoveryInfoResponse'progress = y__}))+ Prelude.id+instance Data.ProtoLens.Message GetRecoveryInfoResponse where+ messageName _ = Data.Text.pack "lnrpc.GetRecoveryInfoResponse"+ packedMessageDescriptor _+ = "\n\+ \\ETBGetRecoveryInfoResponse\DC2#\n\+ \\rrecovery_mode\CAN\SOH \SOH(\bR\frecoveryMode\DC2+\n\+ \\DC1recovery_finished\CAN\STX \SOH(\bR\DLErecoveryFinished\DC2\SUB\n\+ \\bprogress\CAN\ETX \SOH(\SOHR\bprogress"+ packedFileDescriptor _ = packedFileDescriptor+ fieldsByTag+ = let+ recoveryMode__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "recovery_mode"+ (Data.ProtoLens.ScalarField Data.ProtoLens.BoolField ::+ Data.ProtoLens.FieldTypeDescriptor Prelude.Bool)+ (Data.ProtoLens.PlainField+ Data.ProtoLens.Optional+ (Data.ProtoLens.Field.field @"recoveryMode")) ::+ Data.ProtoLens.FieldDescriptor GetRecoveryInfoResponse+ recoveryFinished__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "recovery_finished"+ (Data.ProtoLens.ScalarField Data.ProtoLens.BoolField ::+ Data.ProtoLens.FieldTypeDescriptor Prelude.Bool)+ (Data.ProtoLens.PlainField+ Data.ProtoLens.Optional+ (Data.ProtoLens.Field.field @"recoveryFinished")) ::+ Data.ProtoLens.FieldDescriptor GetRecoveryInfoResponse+ progress__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "progress"+ (Data.ProtoLens.ScalarField Data.ProtoLens.DoubleField ::+ Data.ProtoLens.FieldTypeDescriptor Prelude.Double)+ (Data.ProtoLens.PlainField+ Data.ProtoLens.Optional+ (Data.ProtoLens.Field.field @"progress")) ::+ Data.ProtoLens.FieldDescriptor GetRecoveryInfoResponse+ in+ Data.Map.fromList+ [(Data.ProtoLens.Tag 1, recoveryMode__field_descriptor),+ (Data.ProtoLens.Tag 2, recoveryFinished__field_descriptor),+ (Data.ProtoLens.Tag 3, progress__field_descriptor)]+ unknownFields+ = Lens.Family2.Unchecked.lens+ _GetRecoveryInfoResponse'_unknownFields+ (\ x__ y__ -> x__ {_GetRecoveryInfoResponse'_unknownFields = y__})+ defMessage+ = GetRecoveryInfoResponse'_constructor+ {_GetRecoveryInfoResponse'recoveryMode = Data.ProtoLens.fieldDefault,+ _GetRecoveryInfoResponse'recoveryFinished = Data.ProtoLens.fieldDefault,+ _GetRecoveryInfoResponse'progress = Data.ProtoLens.fieldDefault,+ _GetRecoveryInfoResponse'_unknownFields = []}+ parseMessage+ = let+ loop ::+ GetRecoveryInfoResponse+ -> Data.ProtoLens.Encoding.Bytes.Parser GetRecoveryInfoResponse+ loop x+ = do end <- Data.ProtoLens.Encoding.Bytes.atEnd+ if end then+ do (let missing = []+ in+ if Prelude.null missing then+ Prelude.return ()+ else+ Prelude.fail+ ((Prelude.++)+ "Missing required fields: "+ (Prelude.show (missing :: [Prelude.String]))))+ Prelude.return+ (Lens.Family2.over+ Data.ProtoLens.unknownFields (\ !t -> Prelude.reverse t) x)+ else+ do tag <- Data.ProtoLens.Encoding.Bytes.getVarInt+ case tag of+ 8 -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (Prelude.fmap+ ((Prelude./=) 0) Data.ProtoLens.Encoding.Bytes.getVarInt)+ "recovery_mode"+ loop+ (Lens.Family2.set+ (Data.ProtoLens.Field.field @"recoveryMode") y x)+ 16+ -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (Prelude.fmap+ ((Prelude./=) 0) Data.ProtoLens.Encoding.Bytes.getVarInt)+ "recovery_finished"+ loop+ (Lens.Family2.set+ (Data.ProtoLens.Field.field @"recoveryFinished") y x)+ 25+ -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (Prelude.fmap+ Data.ProtoLens.Encoding.Bytes.wordToDouble+ Data.ProtoLens.Encoding.Bytes.getFixed64)+ "progress"+ loop+ (Lens.Family2.set (Data.ProtoLens.Field.field @"progress") y x)+ wire+ -> do !y <- Data.ProtoLens.Encoding.Wire.parseTaggedValueFromWire+ wire+ loop+ (Lens.Family2.over+ Data.ProtoLens.unknownFields (\ !t -> (:) y t) x)+ in+ (Data.ProtoLens.Encoding.Bytes.<?>)+ (do loop Data.ProtoLens.defMessage) "GetRecoveryInfoResponse"+ buildMessage+ = \ _x+ -> (Data.Monoid.<>)+ (let+ _v+ = Lens.Family2.view (Data.ProtoLens.Field.field @"recoveryMode") _x+ in+ if (Prelude.==) _v Data.ProtoLens.fieldDefault then+ Data.Monoid.mempty+ else+ (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 8)+ ((Prelude..)+ Data.ProtoLens.Encoding.Bytes.putVarInt (\ b -> if b then 1 else 0)+ _v))+ ((Data.Monoid.<>)+ (let+ _v+ = Lens.Family2.view+ (Data.ProtoLens.Field.field @"recoveryFinished") _x+ in+ if (Prelude.==) _v Data.ProtoLens.fieldDefault then+ Data.Monoid.mempty+ else+ (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 16)+ ((Prelude..)+ Data.ProtoLens.Encoding.Bytes.putVarInt (\ b -> if b then 1 else 0)+ _v))+ ((Data.Monoid.<>)+ (let+ _v = Lens.Family2.view (Data.ProtoLens.Field.field @"progress") _x+ in+ if (Prelude.==) _v Data.ProtoLens.fieldDefault then+ Data.Monoid.mempty+ else+ (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 25)+ ((Prelude..)+ Data.ProtoLens.Encoding.Bytes.putFixed64+ Data.ProtoLens.Encoding.Bytes.doubleToWord _v))+ (Data.ProtoLens.Encoding.Wire.buildFieldSet+ (Lens.Family2.view Data.ProtoLens.unknownFields _x))))+instance Control.DeepSeq.NFData GetRecoveryInfoResponse where+ rnf+ = \ x__+ -> Control.DeepSeq.deepseq+ (_GetRecoveryInfoResponse'_unknownFields x__)+ (Control.DeepSeq.deepseq+ (_GetRecoveryInfoResponse'recoveryMode x__)+ (Control.DeepSeq.deepseq+ (_GetRecoveryInfoResponse'recoveryFinished x__)+ (Control.DeepSeq.deepseq+ (_GetRecoveryInfoResponse'progress x__) ())))+{- | Fields :+ + * 'Proto.Lightning_Fields.startHeight' @:: Lens' GetTransactionsRequest Data.Int.Int32@+ * 'Proto.Lightning_Fields.endHeight' @:: Lens' GetTransactionsRequest Data.Int.Int32@+ * 'Proto.Lightning_Fields.account' @:: Lens' GetTransactionsRequest Data.Text.Text@ -}+data GetTransactionsRequest+ = GetTransactionsRequest'_constructor {_GetTransactionsRequest'startHeight :: !Data.Int.Int32,+ _GetTransactionsRequest'endHeight :: !Data.Int.Int32,+ _GetTransactionsRequest'account :: !Data.Text.Text,+ _GetTransactionsRequest'_unknownFields :: !Data.ProtoLens.FieldSet}+ deriving stock (Prelude.Eq, Prelude.Ord, GHC.Generics.Generic)+instance Prelude.Show GetTransactionsRequest where+ showsPrec _ __x __s+ = Prelude.showChar+ '{'+ (Prelude.showString+ (Data.ProtoLens.showMessageShort __x) (Prelude.showChar '}' __s))+instance Text.PrettyPrint.GenericPretty.Out GetTransactionsRequest+instance Data.ProtoLens.Field.HasField GetTransactionsRequest "startHeight" Data.Int.Int32 where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _GetTransactionsRequest'startHeight+ (\ x__ y__ -> x__ {_GetTransactionsRequest'startHeight = y__}))+ Prelude.id+instance Data.ProtoLens.Field.HasField GetTransactionsRequest "endHeight" Data.Int.Int32 where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _GetTransactionsRequest'endHeight+ (\ x__ y__ -> x__ {_GetTransactionsRequest'endHeight = y__}))+ Prelude.id+instance Data.ProtoLens.Field.HasField GetTransactionsRequest "account" Data.Text.Text where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _GetTransactionsRequest'account+ (\ x__ y__ -> x__ {_GetTransactionsRequest'account = y__}))+ Prelude.id+instance Data.ProtoLens.Message GetTransactionsRequest where+ messageName _ = Data.Text.pack "lnrpc.GetTransactionsRequest"+ packedMessageDescriptor _+ = "\n\+ \\SYNGetTransactionsRequest\DC2!\n\+ \\fstart_height\CAN\SOH \SOH(\ENQR\vstartHeight\DC2\GS\n\+ \\n\+ \end_height\CAN\STX \SOH(\ENQR\tendHeight\DC2\CAN\n\+ \\aaccount\CAN\ETX \SOH(\tR\aaccount"+ packedFileDescriptor _ = packedFileDescriptor+ fieldsByTag+ = let+ startHeight__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "start_height"+ (Data.ProtoLens.ScalarField Data.ProtoLens.Int32Field ::+ Data.ProtoLens.FieldTypeDescriptor Data.Int.Int32)+ (Data.ProtoLens.PlainField+ Data.ProtoLens.Optional+ (Data.ProtoLens.Field.field @"startHeight")) ::+ Data.ProtoLens.FieldDescriptor GetTransactionsRequest+ endHeight__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "end_height"+ (Data.ProtoLens.ScalarField Data.ProtoLens.Int32Field ::+ Data.ProtoLens.FieldTypeDescriptor Data.Int.Int32)+ (Data.ProtoLens.PlainField+ Data.ProtoLens.Optional+ (Data.ProtoLens.Field.field @"endHeight")) ::+ Data.ProtoLens.FieldDescriptor GetTransactionsRequest+ account__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "account"+ (Data.ProtoLens.ScalarField Data.ProtoLens.StringField ::+ Data.ProtoLens.FieldTypeDescriptor Data.Text.Text)+ (Data.ProtoLens.PlainField+ Data.ProtoLens.Optional (Data.ProtoLens.Field.field @"account")) ::+ Data.ProtoLens.FieldDescriptor GetTransactionsRequest+ in+ Data.Map.fromList+ [(Data.ProtoLens.Tag 1, startHeight__field_descriptor),+ (Data.ProtoLens.Tag 2, endHeight__field_descriptor),+ (Data.ProtoLens.Tag 3, account__field_descriptor)]+ unknownFields+ = Lens.Family2.Unchecked.lens+ _GetTransactionsRequest'_unknownFields+ (\ x__ y__ -> x__ {_GetTransactionsRequest'_unknownFields = y__})+ defMessage+ = GetTransactionsRequest'_constructor+ {_GetTransactionsRequest'startHeight = Data.ProtoLens.fieldDefault,+ _GetTransactionsRequest'endHeight = Data.ProtoLens.fieldDefault,+ _GetTransactionsRequest'account = Data.ProtoLens.fieldDefault,+ _GetTransactionsRequest'_unknownFields = []}+ parseMessage+ = let+ loop ::+ GetTransactionsRequest+ -> Data.ProtoLens.Encoding.Bytes.Parser GetTransactionsRequest+ loop x+ = do end <- Data.ProtoLens.Encoding.Bytes.atEnd+ if end then+ do (let missing = []+ in+ if Prelude.null missing then+ Prelude.return ()+ else+ Prelude.fail+ ((Prelude.++)+ "Missing required fields: "+ (Prelude.show (missing :: [Prelude.String]))))+ Prelude.return+ (Lens.Family2.over+ Data.ProtoLens.unknownFields (\ !t -> Prelude.reverse t) x)+ else+ do tag <- Data.ProtoLens.Encoding.Bytes.getVarInt+ case tag of+ 8 -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (Prelude.fmap+ Prelude.fromIntegral+ Data.ProtoLens.Encoding.Bytes.getVarInt)+ "start_height"+ loop+ (Lens.Family2.set (Data.ProtoLens.Field.field @"startHeight") y x)+ 16+ -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (Prelude.fmap+ Prelude.fromIntegral+ Data.ProtoLens.Encoding.Bytes.getVarInt)+ "end_height"+ loop+ (Lens.Family2.set (Data.ProtoLens.Field.field @"endHeight") y x)+ 26+ -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (do value <- do len <- Data.ProtoLens.Encoding.Bytes.getVarInt+ Data.ProtoLens.Encoding.Bytes.getBytes+ (Prelude.fromIntegral len)+ Data.ProtoLens.Encoding.Bytes.runEither+ (case Data.Text.Encoding.decodeUtf8' value of+ (Prelude.Left err)+ -> Prelude.Left (Prelude.show err)+ (Prelude.Right r) -> Prelude.Right r))+ "account"+ loop (Lens.Family2.set (Data.ProtoLens.Field.field @"account") y x)+ wire+ -> do !y <- Data.ProtoLens.Encoding.Wire.parseTaggedValueFromWire+ wire+ loop+ (Lens.Family2.over+ Data.ProtoLens.unknownFields (\ !t -> (:) y t) x)+ in+ (Data.ProtoLens.Encoding.Bytes.<?>)+ (do loop Data.ProtoLens.defMessage) "GetTransactionsRequest"+ buildMessage+ = \ _x+ -> (Data.Monoid.<>)+ (let+ _v+ = Lens.Family2.view (Data.ProtoLens.Field.field @"startHeight") _x+ in+ if (Prelude.==) _v Data.ProtoLens.fieldDefault then+ Data.Monoid.mempty+ else+ (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 8)+ ((Prelude..)+ Data.ProtoLens.Encoding.Bytes.putVarInt Prelude.fromIntegral _v))+ ((Data.Monoid.<>)+ (let+ _v = Lens.Family2.view (Data.ProtoLens.Field.field @"endHeight") _x+ in+ if (Prelude.==) _v Data.ProtoLens.fieldDefault then+ Data.Monoid.mempty+ else+ (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 16)+ ((Prelude..)+ Data.ProtoLens.Encoding.Bytes.putVarInt Prelude.fromIntegral _v))+ ((Data.Monoid.<>)+ (let+ _v = Lens.Family2.view (Data.ProtoLens.Field.field @"account") _x+ in+ if (Prelude.==) _v Data.ProtoLens.fieldDefault then+ Data.Monoid.mempty+ else+ (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 26)+ ((Prelude..)+ (\ bs+ -> (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt+ (Prelude.fromIntegral (Data.ByteString.length bs)))+ (Data.ProtoLens.Encoding.Bytes.putBytes bs))+ Data.Text.Encoding.encodeUtf8 _v))+ (Data.ProtoLens.Encoding.Wire.buildFieldSet+ (Lens.Family2.view Data.ProtoLens.unknownFields _x))))+instance Control.DeepSeq.NFData GetTransactionsRequest where+ rnf+ = \ x__+ -> Control.DeepSeq.deepseq+ (_GetTransactionsRequest'_unknownFields x__)+ (Control.DeepSeq.deepseq+ (_GetTransactionsRequest'startHeight x__)+ (Control.DeepSeq.deepseq+ (_GetTransactionsRequest'endHeight x__)+ (Control.DeepSeq.deepseq+ (_GetTransactionsRequest'account x__) ())))+{- | Fields :+ + * 'Proto.Lightning_Fields.pubkey' @:: Lens' LightningAddress Data.Text.Text@+ * 'Proto.Lightning_Fields.host' @:: Lens' LightningAddress Data.Text.Text@ -}+data LightningAddress+ = LightningAddress'_constructor {_LightningAddress'pubkey :: !Data.Text.Text,+ _LightningAddress'host :: !Data.Text.Text,+ _LightningAddress'_unknownFields :: !Data.ProtoLens.FieldSet}+ deriving stock (Prelude.Eq, Prelude.Ord, GHC.Generics.Generic)+instance Prelude.Show LightningAddress where+ showsPrec _ __x __s+ = Prelude.showChar+ '{'+ (Prelude.showString+ (Data.ProtoLens.showMessageShort __x) (Prelude.showChar '}' __s))+instance Text.PrettyPrint.GenericPretty.Out LightningAddress+instance Data.ProtoLens.Field.HasField LightningAddress "pubkey" Data.Text.Text where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _LightningAddress'pubkey+ (\ x__ y__ -> x__ {_LightningAddress'pubkey = y__}))+ Prelude.id+instance Data.ProtoLens.Field.HasField LightningAddress "host" Data.Text.Text where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _LightningAddress'host+ (\ x__ y__ -> x__ {_LightningAddress'host = y__}))+ Prelude.id+instance Data.ProtoLens.Message LightningAddress where+ messageName _ = Data.Text.pack "lnrpc.LightningAddress"+ packedMessageDescriptor _+ = "\n\+ \\DLELightningAddress\DC2\SYN\n\+ \\ACKpubkey\CAN\SOH \SOH(\tR\ACKpubkey\DC2\DC2\n\+ \\EOThost\CAN\STX \SOH(\tR\EOThost"+ packedFileDescriptor _ = packedFileDescriptor+ fieldsByTag+ = let+ pubkey__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "pubkey"+ (Data.ProtoLens.ScalarField Data.ProtoLens.StringField ::+ Data.ProtoLens.FieldTypeDescriptor Data.Text.Text)+ (Data.ProtoLens.PlainField+ Data.ProtoLens.Optional (Data.ProtoLens.Field.field @"pubkey")) ::+ Data.ProtoLens.FieldDescriptor LightningAddress+ host__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "host"+ (Data.ProtoLens.ScalarField Data.ProtoLens.StringField ::+ Data.ProtoLens.FieldTypeDescriptor Data.Text.Text)+ (Data.ProtoLens.PlainField+ Data.ProtoLens.Optional (Data.ProtoLens.Field.field @"host")) ::+ Data.ProtoLens.FieldDescriptor LightningAddress+ in+ Data.Map.fromList+ [(Data.ProtoLens.Tag 1, pubkey__field_descriptor),+ (Data.ProtoLens.Tag 2, host__field_descriptor)]+ unknownFields+ = Lens.Family2.Unchecked.lens+ _LightningAddress'_unknownFields+ (\ x__ y__ -> x__ {_LightningAddress'_unknownFields = y__})+ defMessage+ = LightningAddress'_constructor+ {_LightningAddress'pubkey = Data.ProtoLens.fieldDefault,+ _LightningAddress'host = Data.ProtoLens.fieldDefault,+ _LightningAddress'_unknownFields = []}+ parseMessage+ = let+ loop ::+ LightningAddress+ -> Data.ProtoLens.Encoding.Bytes.Parser LightningAddress+ loop x+ = do end <- Data.ProtoLens.Encoding.Bytes.atEnd+ if end then+ do (let missing = []+ in+ if Prelude.null missing then+ Prelude.return ()+ else+ Prelude.fail+ ((Prelude.++)+ "Missing required fields: "+ (Prelude.show (missing :: [Prelude.String]))))+ Prelude.return+ (Lens.Family2.over+ Data.ProtoLens.unknownFields (\ !t -> Prelude.reverse t) x)+ else+ do tag <- Data.ProtoLens.Encoding.Bytes.getVarInt+ case tag of+ 10+ -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (do value <- do len <- Data.ProtoLens.Encoding.Bytes.getVarInt+ Data.ProtoLens.Encoding.Bytes.getBytes+ (Prelude.fromIntegral len)+ Data.ProtoLens.Encoding.Bytes.runEither+ (case Data.Text.Encoding.decodeUtf8' value of+ (Prelude.Left err)+ -> Prelude.Left (Prelude.show err)+ (Prelude.Right r) -> Prelude.Right r))+ "pubkey"+ loop (Lens.Family2.set (Data.ProtoLens.Field.field @"pubkey") y x)+ 18+ -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (do value <- do len <- Data.ProtoLens.Encoding.Bytes.getVarInt+ Data.ProtoLens.Encoding.Bytes.getBytes+ (Prelude.fromIntegral len)+ Data.ProtoLens.Encoding.Bytes.runEither+ (case Data.Text.Encoding.decodeUtf8' value of+ (Prelude.Left err)+ -> Prelude.Left (Prelude.show err)+ (Prelude.Right r) -> Prelude.Right r))+ "host"+ loop (Lens.Family2.set (Data.ProtoLens.Field.field @"host") y x)+ wire+ -> do !y <- Data.ProtoLens.Encoding.Wire.parseTaggedValueFromWire+ wire+ loop+ (Lens.Family2.over+ Data.ProtoLens.unknownFields (\ !t -> (:) y t) x)+ in+ (Data.ProtoLens.Encoding.Bytes.<?>)+ (do loop Data.ProtoLens.defMessage) "LightningAddress"+ buildMessage+ = \ _x+ -> (Data.Monoid.<>)+ (let+ _v = Lens.Family2.view (Data.ProtoLens.Field.field @"pubkey") _x+ in+ if (Prelude.==) _v Data.ProtoLens.fieldDefault then+ Data.Monoid.mempty+ else+ (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 10)+ ((Prelude..)+ (\ bs+ -> (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt+ (Prelude.fromIntegral (Data.ByteString.length bs)))+ (Data.ProtoLens.Encoding.Bytes.putBytes bs))+ Data.Text.Encoding.encodeUtf8 _v))+ ((Data.Monoid.<>)+ (let _v = Lens.Family2.view (Data.ProtoLens.Field.field @"host") _x+ in+ if (Prelude.==) _v Data.ProtoLens.fieldDefault then+ Data.Monoid.mempty+ else+ (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 18)+ ((Prelude..)+ (\ bs+ -> (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt+ (Prelude.fromIntegral (Data.ByteString.length bs)))+ (Data.ProtoLens.Encoding.Bytes.putBytes bs))+ Data.Text.Encoding.encodeUtf8 _v))+ (Data.ProtoLens.Encoding.Wire.buildFieldSet+ (Lens.Family2.view Data.ProtoLens.unknownFields _x)))+instance Control.DeepSeq.NFData LightningAddress where+ rnf+ = \ x__+ -> Control.DeepSeq.deepseq+ (_LightningAddress'_unknownFields x__)+ (Control.DeepSeq.deepseq+ (_LightningAddress'pubkey x__)+ (Control.DeepSeq.deepseq (_LightningAddress'host x__) ()))+{- | Fields :+ + * 'Proto.Lightning_Fields.activeOnly' @:: Lens' ListChannelsRequest Prelude.Bool@+ * 'Proto.Lightning_Fields.inactiveOnly' @:: Lens' ListChannelsRequest Prelude.Bool@+ * 'Proto.Lightning_Fields.publicOnly' @:: Lens' ListChannelsRequest Prelude.Bool@+ * 'Proto.Lightning_Fields.privateOnly' @:: Lens' ListChannelsRequest Prelude.Bool@+ * 'Proto.Lightning_Fields.peer' @:: Lens' ListChannelsRequest Data.ByteString.ByteString@ -}+data ListChannelsRequest+ = ListChannelsRequest'_constructor {_ListChannelsRequest'activeOnly :: !Prelude.Bool,+ _ListChannelsRequest'inactiveOnly :: !Prelude.Bool,+ _ListChannelsRequest'publicOnly :: !Prelude.Bool,+ _ListChannelsRequest'privateOnly :: !Prelude.Bool,+ _ListChannelsRequest'peer :: !Data.ByteString.ByteString,+ _ListChannelsRequest'_unknownFields :: !Data.ProtoLens.FieldSet}+ deriving stock (Prelude.Eq, Prelude.Ord, GHC.Generics.Generic)+instance Prelude.Show ListChannelsRequest where+ showsPrec _ __x __s+ = Prelude.showChar+ '{'+ (Prelude.showString+ (Data.ProtoLens.showMessageShort __x) (Prelude.showChar '}' __s))+instance Text.PrettyPrint.GenericPretty.Out ListChannelsRequest+instance Data.ProtoLens.Field.HasField ListChannelsRequest "activeOnly" Prelude.Bool where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _ListChannelsRequest'activeOnly+ (\ x__ y__ -> x__ {_ListChannelsRequest'activeOnly = y__}))+ Prelude.id+instance Data.ProtoLens.Field.HasField ListChannelsRequest "inactiveOnly" Prelude.Bool where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _ListChannelsRequest'inactiveOnly+ (\ x__ y__ -> x__ {_ListChannelsRequest'inactiveOnly = y__}))+ Prelude.id+instance Data.ProtoLens.Field.HasField ListChannelsRequest "publicOnly" Prelude.Bool where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _ListChannelsRequest'publicOnly+ (\ x__ y__ -> x__ {_ListChannelsRequest'publicOnly = y__}))+ Prelude.id+instance Data.ProtoLens.Field.HasField ListChannelsRequest "privateOnly" Prelude.Bool where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _ListChannelsRequest'privateOnly+ (\ x__ y__ -> x__ {_ListChannelsRequest'privateOnly = y__}))+ Prelude.id+instance Data.ProtoLens.Field.HasField ListChannelsRequest "peer" Data.ByteString.ByteString where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _ListChannelsRequest'peer+ (\ x__ y__ -> x__ {_ListChannelsRequest'peer = y__}))+ Prelude.id+instance Data.ProtoLens.Message ListChannelsRequest where+ messageName _ = Data.Text.pack "lnrpc.ListChannelsRequest"+ packedMessageDescriptor _+ = "\n\+ \\DC3ListChannelsRequest\DC2\US\n\+ \\vactive_only\CAN\SOH \SOH(\bR\n\+ \activeOnly\DC2#\n\+ \\rinactive_only\CAN\STX \SOH(\bR\finactiveOnly\DC2\US\n\+ \\vpublic_only\CAN\ETX \SOH(\bR\n\+ \publicOnly\DC2!\n\+ \\fprivate_only\CAN\EOT \SOH(\bR\vprivateOnly\DC2\DC2\n\+ \\EOTpeer\CAN\ENQ \SOH(\fR\EOTpeer"+ packedFileDescriptor _ = packedFileDescriptor+ fieldsByTag+ = let+ activeOnly__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "active_only"+ (Data.ProtoLens.ScalarField Data.ProtoLens.BoolField ::+ Data.ProtoLens.FieldTypeDescriptor Prelude.Bool)+ (Data.ProtoLens.PlainField+ Data.ProtoLens.Optional+ (Data.ProtoLens.Field.field @"activeOnly")) ::+ Data.ProtoLens.FieldDescriptor ListChannelsRequest+ inactiveOnly__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "inactive_only"+ (Data.ProtoLens.ScalarField Data.ProtoLens.BoolField ::+ Data.ProtoLens.FieldTypeDescriptor Prelude.Bool)+ (Data.ProtoLens.PlainField+ Data.ProtoLens.Optional+ (Data.ProtoLens.Field.field @"inactiveOnly")) ::+ Data.ProtoLens.FieldDescriptor ListChannelsRequest+ publicOnly__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "public_only"+ (Data.ProtoLens.ScalarField Data.ProtoLens.BoolField ::+ Data.ProtoLens.FieldTypeDescriptor Prelude.Bool)+ (Data.ProtoLens.PlainField+ Data.ProtoLens.Optional+ (Data.ProtoLens.Field.field @"publicOnly")) ::+ Data.ProtoLens.FieldDescriptor ListChannelsRequest+ privateOnly__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "private_only"+ (Data.ProtoLens.ScalarField Data.ProtoLens.BoolField ::+ Data.ProtoLens.FieldTypeDescriptor Prelude.Bool)+ (Data.ProtoLens.PlainField+ Data.ProtoLens.Optional+ (Data.ProtoLens.Field.field @"privateOnly")) ::+ Data.ProtoLens.FieldDescriptor ListChannelsRequest+ peer__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "peer"+ (Data.ProtoLens.ScalarField Data.ProtoLens.BytesField ::+ Data.ProtoLens.FieldTypeDescriptor Data.ByteString.ByteString)+ (Data.ProtoLens.PlainField+ Data.ProtoLens.Optional (Data.ProtoLens.Field.field @"peer")) ::+ Data.ProtoLens.FieldDescriptor ListChannelsRequest+ in+ Data.Map.fromList+ [(Data.ProtoLens.Tag 1, activeOnly__field_descriptor),+ (Data.ProtoLens.Tag 2, inactiveOnly__field_descriptor),+ (Data.ProtoLens.Tag 3, publicOnly__field_descriptor),+ (Data.ProtoLens.Tag 4, privateOnly__field_descriptor),+ (Data.ProtoLens.Tag 5, peer__field_descriptor)]+ unknownFields+ = Lens.Family2.Unchecked.lens+ _ListChannelsRequest'_unknownFields+ (\ x__ y__ -> x__ {_ListChannelsRequest'_unknownFields = y__})+ defMessage+ = ListChannelsRequest'_constructor+ {_ListChannelsRequest'activeOnly = Data.ProtoLens.fieldDefault,+ _ListChannelsRequest'inactiveOnly = Data.ProtoLens.fieldDefault,+ _ListChannelsRequest'publicOnly = Data.ProtoLens.fieldDefault,+ _ListChannelsRequest'privateOnly = Data.ProtoLens.fieldDefault,+ _ListChannelsRequest'peer = Data.ProtoLens.fieldDefault,+ _ListChannelsRequest'_unknownFields = []}+ parseMessage+ = let+ loop ::+ ListChannelsRequest+ -> Data.ProtoLens.Encoding.Bytes.Parser ListChannelsRequest+ loop x+ = do end <- Data.ProtoLens.Encoding.Bytes.atEnd+ if end then+ do (let missing = []+ in+ if Prelude.null missing then+ Prelude.return ()+ else+ Prelude.fail+ ((Prelude.++)+ "Missing required fields: "+ (Prelude.show (missing :: [Prelude.String]))))+ Prelude.return+ (Lens.Family2.over+ Data.ProtoLens.unknownFields (\ !t -> Prelude.reverse t) x)+ else+ do tag <- Data.ProtoLens.Encoding.Bytes.getVarInt+ case tag of+ 8 -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (Prelude.fmap+ ((Prelude./=) 0) Data.ProtoLens.Encoding.Bytes.getVarInt)+ "active_only"+ loop+ (Lens.Family2.set (Data.ProtoLens.Field.field @"activeOnly") y x)+ 16+ -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (Prelude.fmap+ ((Prelude./=) 0) Data.ProtoLens.Encoding.Bytes.getVarInt)+ "inactive_only"+ loop+ (Lens.Family2.set+ (Data.ProtoLens.Field.field @"inactiveOnly") y x)+ 24+ -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (Prelude.fmap+ ((Prelude./=) 0) Data.ProtoLens.Encoding.Bytes.getVarInt)+ "public_only"+ loop+ (Lens.Family2.set (Data.ProtoLens.Field.field @"publicOnly") y x)+ 32+ -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (Prelude.fmap+ ((Prelude./=) 0) Data.ProtoLens.Encoding.Bytes.getVarInt)+ "private_only"+ loop+ (Lens.Family2.set (Data.ProtoLens.Field.field @"privateOnly") y x)+ 42+ -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (do len <- Data.ProtoLens.Encoding.Bytes.getVarInt+ Data.ProtoLens.Encoding.Bytes.getBytes+ (Prelude.fromIntegral len))+ "peer"+ loop (Lens.Family2.set (Data.ProtoLens.Field.field @"peer") y x)+ wire+ -> do !y <- Data.ProtoLens.Encoding.Wire.parseTaggedValueFromWire+ wire+ loop+ (Lens.Family2.over+ Data.ProtoLens.unknownFields (\ !t -> (:) y t) x)+ in+ (Data.ProtoLens.Encoding.Bytes.<?>)+ (do loop Data.ProtoLens.defMessage) "ListChannelsRequest"+ buildMessage+ = \ _x+ -> (Data.Monoid.<>)+ (let+ _v+ = Lens.Family2.view (Data.ProtoLens.Field.field @"activeOnly") _x+ in+ if (Prelude.==) _v Data.ProtoLens.fieldDefault then+ Data.Monoid.mempty+ else+ (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 8)+ ((Prelude..)+ Data.ProtoLens.Encoding.Bytes.putVarInt (\ b -> if b then 1 else 0)+ _v))+ ((Data.Monoid.<>)+ (let+ _v+ = Lens.Family2.view (Data.ProtoLens.Field.field @"inactiveOnly") _x+ in+ if (Prelude.==) _v Data.ProtoLens.fieldDefault then+ Data.Monoid.mempty+ else+ (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 16)+ ((Prelude..)+ Data.ProtoLens.Encoding.Bytes.putVarInt (\ b -> if b then 1 else 0)+ _v))+ ((Data.Monoid.<>)+ (let+ _v+ = Lens.Family2.view (Data.ProtoLens.Field.field @"publicOnly") _x+ in+ if (Prelude.==) _v Data.ProtoLens.fieldDefault then+ Data.Monoid.mempty+ else+ (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 24)+ ((Prelude..)+ Data.ProtoLens.Encoding.Bytes.putVarInt (\ b -> if b then 1 else 0)+ _v))+ ((Data.Monoid.<>)+ (let+ _v+ = Lens.Family2.view (Data.ProtoLens.Field.field @"privateOnly") _x+ in+ if (Prelude.==) _v Data.ProtoLens.fieldDefault then+ Data.Monoid.mempty+ else+ (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 32)+ ((Prelude..)+ Data.ProtoLens.Encoding.Bytes.putVarInt+ (\ b -> if b then 1 else 0) _v))+ ((Data.Monoid.<>)+ (let _v = Lens.Family2.view (Data.ProtoLens.Field.field @"peer") _x+ in+ if (Prelude.==) _v Data.ProtoLens.fieldDefault then+ Data.Monoid.mempty+ else+ (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 42)+ ((\ bs+ -> (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt+ (Prelude.fromIntegral (Data.ByteString.length bs)))+ (Data.ProtoLens.Encoding.Bytes.putBytes bs))+ _v))+ (Data.ProtoLens.Encoding.Wire.buildFieldSet+ (Lens.Family2.view Data.ProtoLens.unknownFields _x))))))+instance Control.DeepSeq.NFData ListChannelsRequest where+ rnf+ = \ x__+ -> Control.DeepSeq.deepseq+ (_ListChannelsRequest'_unknownFields x__)+ (Control.DeepSeq.deepseq+ (_ListChannelsRequest'activeOnly x__)+ (Control.DeepSeq.deepseq+ (_ListChannelsRequest'inactiveOnly x__)+ (Control.DeepSeq.deepseq+ (_ListChannelsRequest'publicOnly x__)+ (Control.DeepSeq.deepseq+ (_ListChannelsRequest'privateOnly x__)+ (Control.DeepSeq.deepseq (_ListChannelsRequest'peer x__) ())))))+{- | Fields :+ + * 'Proto.Lightning_Fields.channels' @:: Lens' ListChannelsResponse [Proto.Lnrpc.Ln0.Channel]@+ * 'Proto.Lightning_Fields.vec'channels' @:: Lens' ListChannelsResponse (Data.Vector.Vector Proto.Lnrpc.Ln0.Channel)@ -}+data ListChannelsResponse+ = ListChannelsResponse'_constructor {_ListChannelsResponse'channels :: !(Data.Vector.Vector Proto.Lnrpc.Ln0.Channel),+ _ListChannelsResponse'_unknownFields :: !Data.ProtoLens.FieldSet}+ deriving stock (Prelude.Eq, Prelude.Ord, GHC.Generics.Generic)+instance Prelude.Show ListChannelsResponse where+ showsPrec _ __x __s+ = Prelude.showChar+ '{'+ (Prelude.showString+ (Data.ProtoLens.showMessageShort __x) (Prelude.showChar '}' __s))+instance Text.PrettyPrint.GenericPretty.Out ListChannelsResponse+instance Data.ProtoLens.Field.HasField ListChannelsResponse "channels" [Proto.Lnrpc.Ln0.Channel] where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _ListChannelsResponse'channels+ (\ x__ y__ -> x__ {_ListChannelsResponse'channels = y__}))+ (Lens.Family2.Unchecked.lens+ Data.Vector.Generic.toList+ (\ _ y__ -> Data.Vector.Generic.fromList y__))+instance Data.ProtoLens.Field.HasField ListChannelsResponse "vec'channels" (Data.Vector.Vector Proto.Lnrpc.Ln0.Channel) where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _ListChannelsResponse'channels+ (\ x__ y__ -> x__ {_ListChannelsResponse'channels = y__}))+ Prelude.id+instance Data.ProtoLens.Message ListChannelsResponse where+ messageName _ = Data.Text.pack "lnrpc.ListChannelsResponse"+ packedMessageDescriptor _+ = "\n\+ \\DC4ListChannelsResponse\DC2*\n\+ \\bchannels\CAN\v \ETX(\v2\SO.lnrpc.ChannelR\bchannels"+ packedFileDescriptor _ = packedFileDescriptor+ fieldsByTag+ = let+ channels__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "channels"+ (Data.ProtoLens.MessageField Data.ProtoLens.MessageType ::+ Data.ProtoLens.FieldTypeDescriptor Proto.Lnrpc.Ln0.Channel)+ (Data.ProtoLens.RepeatedField+ Data.ProtoLens.Unpacked+ (Data.ProtoLens.Field.field @"channels")) ::+ Data.ProtoLens.FieldDescriptor ListChannelsResponse+ in+ Data.Map.fromList+ [(Data.ProtoLens.Tag 11, channels__field_descriptor)]+ unknownFields+ = Lens.Family2.Unchecked.lens+ _ListChannelsResponse'_unknownFields+ (\ x__ y__ -> x__ {_ListChannelsResponse'_unknownFields = y__})+ defMessage+ = ListChannelsResponse'_constructor+ {_ListChannelsResponse'channels = Data.Vector.Generic.empty,+ _ListChannelsResponse'_unknownFields = []}+ parseMessage+ = let+ loop ::+ ListChannelsResponse+ -> Data.ProtoLens.Encoding.Growing.Growing Data.Vector.Vector Data.ProtoLens.Encoding.Growing.RealWorld Proto.Lnrpc.Ln0.Channel+ -> Data.ProtoLens.Encoding.Bytes.Parser ListChannelsResponse+ loop x mutable'channels+ = do end <- Data.ProtoLens.Encoding.Bytes.atEnd+ if end then+ do frozen'channels <- Data.ProtoLens.Encoding.Parser.Unsafe.unsafeLiftIO+ (Data.ProtoLens.Encoding.Growing.unsafeFreeze+ mutable'channels)+ (let missing = []+ in+ if Prelude.null missing then+ Prelude.return ()+ else+ Prelude.fail+ ((Prelude.++)+ "Missing required fields: "+ (Prelude.show (missing :: [Prelude.String]))))+ Prelude.return+ (Lens.Family2.over+ Data.ProtoLens.unknownFields (\ !t -> Prelude.reverse t)+ (Lens.Family2.set+ (Data.ProtoLens.Field.field @"vec'channels") frozen'channels x))+ else+ do tag <- Data.ProtoLens.Encoding.Bytes.getVarInt+ case tag of+ 90+ -> do !y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (do len <- Data.ProtoLens.Encoding.Bytes.getVarInt+ Data.ProtoLens.Encoding.Bytes.isolate+ (Prelude.fromIntegral len)+ Data.ProtoLens.parseMessage)+ "channels"+ v <- Data.ProtoLens.Encoding.Parser.Unsafe.unsafeLiftIO+ (Data.ProtoLens.Encoding.Growing.append mutable'channels y)+ loop x v+ wire+ -> do !y <- Data.ProtoLens.Encoding.Wire.parseTaggedValueFromWire+ wire+ loop+ (Lens.Family2.over+ Data.ProtoLens.unknownFields (\ !t -> (:) y t) x)+ mutable'channels+ in+ (Data.ProtoLens.Encoding.Bytes.<?>)+ (do mutable'channels <- Data.ProtoLens.Encoding.Parser.Unsafe.unsafeLiftIO+ Data.ProtoLens.Encoding.Growing.new+ loop Data.ProtoLens.defMessage mutable'channels)+ "ListChannelsResponse"+ buildMessage+ = \ _x+ -> (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.foldMapBuilder+ (\ _v+ -> (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 90)+ ((Prelude..)+ (\ bs+ -> (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt+ (Prelude.fromIntegral (Data.ByteString.length bs)))+ (Data.ProtoLens.Encoding.Bytes.putBytes bs))+ Data.ProtoLens.encodeMessage _v))+ (Lens.Family2.view+ (Data.ProtoLens.Field.field @"vec'channels") _x))+ (Data.ProtoLens.Encoding.Wire.buildFieldSet+ (Lens.Family2.view Data.ProtoLens.unknownFields _x))+instance Control.DeepSeq.NFData ListChannelsResponse where+ rnf+ = \ x__+ -> Control.DeepSeq.deepseq+ (_ListChannelsResponse'_unknownFields x__)+ (Control.DeepSeq.deepseq (_ListChannelsResponse'channels x__) ())+{- | Fields :+ + * 'Proto.Lightning_Fields.latestError' @:: Lens' ListPeersRequest Prelude.Bool@ -}+data ListPeersRequest+ = ListPeersRequest'_constructor {_ListPeersRequest'latestError :: !Prelude.Bool,+ _ListPeersRequest'_unknownFields :: !Data.ProtoLens.FieldSet}+ deriving stock (Prelude.Eq, Prelude.Ord, GHC.Generics.Generic)+instance Prelude.Show ListPeersRequest where+ showsPrec _ __x __s+ = Prelude.showChar+ '{'+ (Prelude.showString+ (Data.ProtoLens.showMessageShort __x) (Prelude.showChar '}' __s))+instance Text.PrettyPrint.GenericPretty.Out ListPeersRequest+instance Data.ProtoLens.Field.HasField ListPeersRequest "latestError" Prelude.Bool where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _ListPeersRequest'latestError+ (\ x__ y__ -> x__ {_ListPeersRequest'latestError = y__}))+ Prelude.id+instance Data.ProtoLens.Message ListPeersRequest where+ messageName _ = Data.Text.pack "lnrpc.ListPeersRequest"+ packedMessageDescriptor _+ = "\n\+ \\DLEListPeersRequest\DC2!\n\+ \\flatest_error\CAN\SOH \SOH(\bR\vlatestError"+ packedFileDescriptor _ = packedFileDescriptor+ fieldsByTag+ = let+ latestError__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "latest_error"+ (Data.ProtoLens.ScalarField Data.ProtoLens.BoolField ::+ Data.ProtoLens.FieldTypeDescriptor Prelude.Bool)+ (Data.ProtoLens.PlainField+ Data.ProtoLens.Optional+ (Data.ProtoLens.Field.field @"latestError")) ::+ Data.ProtoLens.FieldDescriptor ListPeersRequest+ in+ Data.Map.fromList+ [(Data.ProtoLens.Tag 1, latestError__field_descriptor)]+ unknownFields+ = Lens.Family2.Unchecked.lens+ _ListPeersRequest'_unknownFields+ (\ x__ y__ -> x__ {_ListPeersRequest'_unknownFields = y__})+ defMessage+ = ListPeersRequest'_constructor+ {_ListPeersRequest'latestError = Data.ProtoLens.fieldDefault,+ _ListPeersRequest'_unknownFields = []}+ parseMessage+ = let+ loop ::+ ListPeersRequest+ -> Data.ProtoLens.Encoding.Bytes.Parser ListPeersRequest+ loop x+ = do end <- Data.ProtoLens.Encoding.Bytes.atEnd+ if end then+ do (let missing = []+ in+ if Prelude.null missing then+ Prelude.return ()+ else+ Prelude.fail+ ((Prelude.++)+ "Missing required fields: "+ (Prelude.show (missing :: [Prelude.String]))))+ Prelude.return+ (Lens.Family2.over+ Data.ProtoLens.unknownFields (\ !t -> Prelude.reverse t) x)+ else+ do tag <- Data.ProtoLens.Encoding.Bytes.getVarInt+ case tag of+ 8 -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (Prelude.fmap+ ((Prelude./=) 0) Data.ProtoLens.Encoding.Bytes.getVarInt)+ "latest_error"+ loop+ (Lens.Family2.set (Data.ProtoLens.Field.field @"latestError") y x)+ wire+ -> do !y <- Data.ProtoLens.Encoding.Wire.parseTaggedValueFromWire+ wire+ loop+ (Lens.Family2.over+ Data.ProtoLens.unknownFields (\ !t -> (:) y t) x)+ in+ (Data.ProtoLens.Encoding.Bytes.<?>)+ (do loop Data.ProtoLens.defMessage) "ListPeersRequest"+ buildMessage+ = \ _x+ -> (Data.Monoid.<>)+ (let+ _v+ = Lens.Family2.view (Data.ProtoLens.Field.field @"latestError") _x+ in+ if (Prelude.==) _v Data.ProtoLens.fieldDefault then+ Data.Monoid.mempty+ else+ (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 8)+ ((Prelude..)+ Data.ProtoLens.Encoding.Bytes.putVarInt (\ b -> if b then 1 else 0)+ _v))+ (Data.ProtoLens.Encoding.Wire.buildFieldSet+ (Lens.Family2.view Data.ProtoLens.unknownFields _x))+instance Control.DeepSeq.NFData ListPeersRequest where+ rnf+ = \ x__+ -> Control.DeepSeq.deepseq+ (_ListPeersRequest'_unknownFields x__)+ (Control.DeepSeq.deepseq (_ListPeersRequest'latestError x__) ())+{- | Fields :+ + * 'Proto.Lightning_Fields.peers' @:: Lens' ListPeersResponse [Peer]@+ * 'Proto.Lightning_Fields.vec'peers' @:: Lens' ListPeersResponse (Data.Vector.Vector Peer)@ -}+data ListPeersResponse+ = ListPeersResponse'_constructor {_ListPeersResponse'peers :: !(Data.Vector.Vector Peer),+ _ListPeersResponse'_unknownFields :: !Data.ProtoLens.FieldSet}+ deriving stock (Prelude.Eq, Prelude.Ord, GHC.Generics.Generic)+instance Prelude.Show ListPeersResponse where+ showsPrec _ __x __s+ = Prelude.showChar+ '{'+ (Prelude.showString+ (Data.ProtoLens.showMessageShort __x) (Prelude.showChar '}' __s))+instance Text.PrettyPrint.GenericPretty.Out ListPeersResponse+instance Data.ProtoLens.Field.HasField ListPeersResponse "peers" [Peer] where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _ListPeersResponse'peers+ (\ x__ y__ -> x__ {_ListPeersResponse'peers = y__}))+ (Lens.Family2.Unchecked.lens+ Data.Vector.Generic.toList+ (\ _ y__ -> Data.Vector.Generic.fromList y__))+instance Data.ProtoLens.Field.HasField ListPeersResponse "vec'peers" (Data.Vector.Vector Peer) where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _ListPeersResponse'peers+ (\ x__ y__ -> x__ {_ListPeersResponse'peers = y__}))+ Prelude.id+instance Data.ProtoLens.Message ListPeersResponse where+ messageName _ = Data.Text.pack "lnrpc.ListPeersResponse"+ packedMessageDescriptor _+ = "\n\+ \\DC1ListPeersResponse\DC2!\n\+ \\ENQpeers\CAN\SOH \ETX(\v2\v.lnrpc.PeerR\ENQpeers"+ packedFileDescriptor _ = packedFileDescriptor+ fieldsByTag+ = let+ peers__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "peers"+ (Data.ProtoLens.MessageField Data.ProtoLens.MessageType ::+ Data.ProtoLens.FieldTypeDescriptor Peer)+ (Data.ProtoLens.RepeatedField+ Data.ProtoLens.Unpacked (Data.ProtoLens.Field.field @"peers")) ::+ Data.ProtoLens.FieldDescriptor ListPeersResponse+ in+ Data.Map.fromList [(Data.ProtoLens.Tag 1, peers__field_descriptor)]+ unknownFields+ = Lens.Family2.Unchecked.lens+ _ListPeersResponse'_unknownFields+ (\ x__ y__ -> x__ {_ListPeersResponse'_unknownFields = y__})+ defMessage+ = ListPeersResponse'_constructor+ {_ListPeersResponse'peers = Data.Vector.Generic.empty,+ _ListPeersResponse'_unknownFields = []}+ parseMessage+ = let+ loop ::+ ListPeersResponse+ -> Data.ProtoLens.Encoding.Growing.Growing Data.Vector.Vector Data.ProtoLens.Encoding.Growing.RealWorld Peer+ -> Data.ProtoLens.Encoding.Bytes.Parser ListPeersResponse+ loop x mutable'peers+ = do end <- Data.ProtoLens.Encoding.Bytes.atEnd+ if end then+ do frozen'peers <- Data.ProtoLens.Encoding.Parser.Unsafe.unsafeLiftIO+ (Data.ProtoLens.Encoding.Growing.unsafeFreeze mutable'peers)+ (let missing = []+ in+ if Prelude.null missing then+ Prelude.return ()+ else+ Prelude.fail+ ((Prelude.++)+ "Missing required fields: "+ (Prelude.show (missing :: [Prelude.String]))))+ Prelude.return+ (Lens.Family2.over+ Data.ProtoLens.unknownFields (\ !t -> Prelude.reverse t)+ (Lens.Family2.set+ (Data.ProtoLens.Field.field @"vec'peers") frozen'peers x))+ else+ do tag <- Data.ProtoLens.Encoding.Bytes.getVarInt+ case tag of+ 10+ -> do !y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (do len <- Data.ProtoLens.Encoding.Bytes.getVarInt+ Data.ProtoLens.Encoding.Bytes.isolate+ (Prelude.fromIntegral len)+ Data.ProtoLens.parseMessage)+ "peers"+ v <- Data.ProtoLens.Encoding.Parser.Unsafe.unsafeLiftIO+ (Data.ProtoLens.Encoding.Growing.append mutable'peers y)+ loop x v+ wire+ -> do !y <- Data.ProtoLens.Encoding.Wire.parseTaggedValueFromWire+ wire+ loop+ (Lens.Family2.over+ Data.ProtoLens.unknownFields (\ !t -> (:) y t) x)+ mutable'peers+ in+ (Data.ProtoLens.Encoding.Bytes.<?>)+ (do mutable'peers <- Data.ProtoLens.Encoding.Parser.Unsafe.unsafeLiftIO+ Data.ProtoLens.Encoding.Growing.new+ loop Data.ProtoLens.defMessage mutable'peers)+ "ListPeersResponse"+ buildMessage+ = \ _x+ -> (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.foldMapBuilder+ (\ _v+ -> (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 10)+ ((Prelude..)+ (\ bs+ -> (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt+ (Prelude.fromIntegral (Data.ByteString.length bs)))+ (Data.ProtoLens.Encoding.Bytes.putBytes bs))+ Data.ProtoLens.encodeMessage _v))+ (Lens.Family2.view (Data.ProtoLens.Field.field @"vec'peers") _x))+ (Data.ProtoLens.Encoding.Wire.buildFieldSet+ (Lens.Family2.view Data.ProtoLens.unknownFields _x))+instance Control.DeepSeq.NFData ListPeersResponse where+ rnf+ = \ x__+ -> Control.DeepSeq.deepseq+ (_ListPeersResponse'_unknownFields x__)+ (Control.DeepSeq.deepseq (_ListPeersResponse'peers x__) ())+{- | Fields :+ + * 'Proto.Lightning_Fields.minConfs' @:: Lens' ListUnspentRequest Data.Int.Int32@+ * 'Proto.Lightning_Fields.maxConfs' @:: Lens' ListUnspentRequest Data.Int.Int32@+ * 'Proto.Lightning_Fields.account' @:: Lens' ListUnspentRequest Data.Text.Text@ -}+data ListUnspentRequest+ = ListUnspentRequest'_constructor {_ListUnspentRequest'minConfs :: !Data.Int.Int32,+ _ListUnspentRequest'maxConfs :: !Data.Int.Int32,+ _ListUnspentRequest'account :: !Data.Text.Text,+ _ListUnspentRequest'_unknownFields :: !Data.ProtoLens.FieldSet}+ deriving stock (Prelude.Eq, Prelude.Ord, GHC.Generics.Generic)+instance Prelude.Show ListUnspentRequest where+ showsPrec _ __x __s+ = Prelude.showChar+ '{'+ (Prelude.showString+ (Data.ProtoLens.showMessageShort __x) (Prelude.showChar '}' __s))+instance Text.PrettyPrint.GenericPretty.Out ListUnspentRequest+instance Data.ProtoLens.Field.HasField ListUnspentRequest "minConfs" Data.Int.Int32 where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _ListUnspentRequest'minConfs+ (\ x__ y__ -> x__ {_ListUnspentRequest'minConfs = y__}))+ Prelude.id+instance Data.ProtoLens.Field.HasField ListUnspentRequest "maxConfs" Data.Int.Int32 where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _ListUnspentRequest'maxConfs+ (\ x__ y__ -> x__ {_ListUnspentRequest'maxConfs = y__}))+ Prelude.id+instance Data.ProtoLens.Field.HasField ListUnspentRequest "account" Data.Text.Text where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _ListUnspentRequest'account+ (\ x__ y__ -> x__ {_ListUnspentRequest'account = y__}))+ Prelude.id+instance Data.ProtoLens.Message ListUnspentRequest where+ messageName _ = Data.Text.pack "lnrpc.ListUnspentRequest"+ packedMessageDescriptor _+ = "\n\+ \\DC2ListUnspentRequest\DC2\ESC\n\+ \\tmin_confs\CAN\SOH \SOH(\ENQR\bminConfs\DC2\ESC\n\+ \\tmax_confs\CAN\STX \SOH(\ENQR\bmaxConfs\DC2\CAN\n\+ \\aaccount\CAN\ETX \SOH(\tR\aaccount"+ packedFileDescriptor _ = packedFileDescriptor+ fieldsByTag+ = let+ minConfs__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "min_confs"+ (Data.ProtoLens.ScalarField Data.ProtoLens.Int32Field ::+ Data.ProtoLens.FieldTypeDescriptor Data.Int.Int32)+ (Data.ProtoLens.PlainField+ Data.ProtoLens.Optional+ (Data.ProtoLens.Field.field @"minConfs")) ::+ Data.ProtoLens.FieldDescriptor ListUnspentRequest+ maxConfs__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "max_confs"+ (Data.ProtoLens.ScalarField Data.ProtoLens.Int32Field ::+ Data.ProtoLens.FieldTypeDescriptor Data.Int.Int32)+ (Data.ProtoLens.PlainField+ Data.ProtoLens.Optional+ (Data.ProtoLens.Field.field @"maxConfs")) ::+ Data.ProtoLens.FieldDescriptor ListUnspentRequest+ account__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "account"+ (Data.ProtoLens.ScalarField Data.ProtoLens.StringField ::+ Data.ProtoLens.FieldTypeDescriptor Data.Text.Text)+ (Data.ProtoLens.PlainField+ Data.ProtoLens.Optional (Data.ProtoLens.Field.field @"account")) ::+ Data.ProtoLens.FieldDescriptor ListUnspentRequest+ in+ Data.Map.fromList+ [(Data.ProtoLens.Tag 1, minConfs__field_descriptor),+ (Data.ProtoLens.Tag 2, maxConfs__field_descriptor),+ (Data.ProtoLens.Tag 3, account__field_descriptor)]+ unknownFields+ = Lens.Family2.Unchecked.lens+ _ListUnspentRequest'_unknownFields+ (\ x__ y__ -> x__ {_ListUnspentRequest'_unknownFields = y__})+ defMessage+ = ListUnspentRequest'_constructor+ {_ListUnspentRequest'minConfs = Data.ProtoLens.fieldDefault,+ _ListUnspentRequest'maxConfs = Data.ProtoLens.fieldDefault,+ _ListUnspentRequest'account = Data.ProtoLens.fieldDefault,+ _ListUnspentRequest'_unknownFields = []}+ parseMessage+ = let+ loop ::+ ListUnspentRequest+ -> Data.ProtoLens.Encoding.Bytes.Parser ListUnspentRequest+ loop x+ = do end <- Data.ProtoLens.Encoding.Bytes.atEnd+ if end then+ do (let missing = []+ in+ if Prelude.null missing then+ Prelude.return ()+ else+ Prelude.fail+ ((Prelude.++)+ "Missing required fields: "+ (Prelude.show (missing :: [Prelude.String]))))+ Prelude.return+ (Lens.Family2.over+ Data.ProtoLens.unknownFields (\ !t -> Prelude.reverse t) x)+ else+ do tag <- Data.ProtoLens.Encoding.Bytes.getVarInt+ case tag of+ 8 -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (Prelude.fmap+ Prelude.fromIntegral+ Data.ProtoLens.Encoding.Bytes.getVarInt)+ "min_confs"+ loop+ (Lens.Family2.set (Data.ProtoLens.Field.field @"minConfs") y x)+ 16+ -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (Prelude.fmap+ Prelude.fromIntegral+ Data.ProtoLens.Encoding.Bytes.getVarInt)+ "max_confs"+ loop+ (Lens.Family2.set (Data.ProtoLens.Field.field @"maxConfs") y x)+ 26+ -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (do value <- do len <- Data.ProtoLens.Encoding.Bytes.getVarInt+ Data.ProtoLens.Encoding.Bytes.getBytes+ (Prelude.fromIntegral len)+ Data.ProtoLens.Encoding.Bytes.runEither+ (case Data.Text.Encoding.decodeUtf8' value of+ (Prelude.Left err)+ -> Prelude.Left (Prelude.show err)+ (Prelude.Right r) -> Prelude.Right r))+ "account"+ loop (Lens.Family2.set (Data.ProtoLens.Field.field @"account") y x)+ wire+ -> do !y <- Data.ProtoLens.Encoding.Wire.parseTaggedValueFromWire+ wire+ loop+ (Lens.Family2.over+ Data.ProtoLens.unknownFields (\ !t -> (:) y t) x)+ in+ (Data.ProtoLens.Encoding.Bytes.<?>)+ (do loop Data.ProtoLens.defMessage) "ListUnspentRequest"+ buildMessage+ = \ _x+ -> (Data.Monoid.<>)+ (let+ _v = Lens.Family2.view (Data.ProtoLens.Field.field @"minConfs") _x+ in+ if (Prelude.==) _v Data.ProtoLens.fieldDefault then+ Data.Monoid.mempty+ else+ (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 8)+ ((Prelude..)+ Data.ProtoLens.Encoding.Bytes.putVarInt Prelude.fromIntegral _v))+ ((Data.Monoid.<>)+ (let+ _v = Lens.Family2.view (Data.ProtoLens.Field.field @"maxConfs") _x+ in+ if (Prelude.==) _v Data.ProtoLens.fieldDefault then+ Data.Monoid.mempty+ else+ (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 16)+ ((Prelude..)+ Data.ProtoLens.Encoding.Bytes.putVarInt Prelude.fromIntegral _v))+ ((Data.Monoid.<>)+ (let+ _v = Lens.Family2.view (Data.ProtoLens.Field.field @"account") _x+ in+ if (Prelude.==) _v Data.ProtoLens.fieldDefault then+ Data.Monoid.mempty+ else+ (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 26)+ ((Prelude..)+ (\ bs+ -> (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt+ (Prelude.fromIntegral (Data.ByteString.length bs)))+ (Data.ProtoLens.Encoding.Bytes.putBytes bs))+ Data.Text.Encoding.encodeUtf8 _v))+ (Data.ProtoLens.Encoding.Wire.buildFieldSet+ (Lens.Family2.view Data.ProtoLens.unknownFields _x))))+instance Control.DeepSeq.NFData ListUnspentRequest where+ rnf+ = \ x__+ -> Control.DeepSeq.deepseq+ (_ListUnspentRequest'_unknownFields x__)+ (Control.DeepSeq.deepseq+ (_ListUnspentRequest'minConfs x__)+ (Control.DeepSeq.deepseq+ (_ListUnspentRequest'maxConfs x__)+ (Control.DeepSeq.deepseq (_ListUnspentRequest'account x__) ())))+{- | Fields :+ + * 'Proto.Lightning_Fields.utxos' @:: Lens' ListUnspentResponse [Utxo]@+ * 'Proto.Lightning_Fields.vec'utxos' @:: Lens' ListUnspentResponse (Data.Vector.Vector Utxo)@ -}+data ListUnspentResponse+ = ListUnspentResponse'_constructor {_ListUnspentResponse'utxos :: !(Data.Vector.Vector Utxo),+ _ListUnspentResponse'_unknownFields :: !Data.ProtoLens.FieldSet}+ deriving stock (Prelude.Eq, Prelude.Ord, GHC.Generics.Generic)+instance Prelude.Show ListUnspentResponse where+ showsPrec _ __x __s+ = Prelude.showChar+ '{'+ (Prelude.showString+ (Data.ProtoLens.showMessageShort __x) (Prelude.showChar '}' __s))+instance Text.PrettyPrint.GenericPretty.Out ListUnspentResponse+instance Data.ProtoLens.Field.HasField ListUnspentResponse "utxos" [Utxo] where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _ListUnspentResponse'utxos+ (\ x__ y__ -> x__ {_ListUnspentResponse'utxos = y__}))+ (Lens.Family2.Unchecked.lens+ Data.Vector.Generic.toList+ (\ _ y__ -> Data.Vector.Generic.fromList y__))+instance Data.ProtoLens.Field.HasField ListUnspentResponse "vec'utxos" (Data.Vector.Vector Utxo) where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _ListUnspentResponse'utxos+ (\ x__ y__ -> x__ {_ListUnspentResponse'utxos = y__}))+ Prelude.id+instance Data.ProtoLens.Message ListUnspentResponse where+ messageName _ = Data.Text.pack "lnrpc.ListUnspentResponse"+ packedMessageDescriptor _+ = "\n\+ \\DC3ListUnspentResponse\DC2!\n\+ \\ENQutxos\CAN\SOH \ETX(\v2\v.lnrpc.UtxoR\ENQutxos"+ packedFileDescriptor _ = packedFileDescriptor+ fieldsByTag+ = let+ utxos__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "utxos"+ (Data.ProtoLens.MessageField Data.ProtoLens.MessageType ::+ Data.ProtoLens.FieldTypeDescriptor Utxo)+ (Data.ProtoLens.RepeatedField+ Data.ProtoLens.Unpacked (Data.ProtoLens.Field.field @"utxos")) ::+ Data.ProtoLens.FieldDescriptor ListUnspentResponse+ in+ Data.Map.fromList [(Data.ProtoLens.Tag 1, utxos__field_descriptor)]+ unknownFields+ = Lens.Family2.Unchecked.lens+ _ListUnspentResponse'_unknownFields+ (\ x__ y__ -> x__ {_ListUnspentResponse'_unknownFields = y__})+ defMessage+ = ListUnspentResponse'_constructor+ {_ListUnspentResponse'utxos = Data.Vector.Generic.empty,+ _ListUnspentResponse'_unknownFields = []}+ parseMessage+ = let+ loop ::+ ListUnspentResponse+ -> Data.ProtoLens.Encoding.Growing.Growing Data.Vector.Vector Data.ProtoLens.Encoding.Growing.RealWorld Utxo+ -> Data.ProtoLens.Encoding.Bytes.Parser ListUnspentResponse+ loop x mutable'utxos+ = do end <- Data.ProtoLens.Encoding.Bytes.atEnd+ if end then+ do frozen'utxos <- Data.ProtoLens.Encoding.Parser.Unsafe.unsafeLiftIO+ (Data.ProtoLens.Encoding.Growing.unsafeFreeze mutable'utxos)+ (let missing = []+ in+ if Prelude.null missing then+ Prelude.return ()+ else+ Prelude.fail+ ((Prelude.++)+ "Missing required fields: "+ (Prelude.show (missing :: [Prelude.String]))))+ Prelude.return+ (Lens.Family2.over+ Data.ProtoLens.unknownFields (\ !t -> Prelude.reverse t)+ (Lens.Family2.set+ (Data.ProtoLens.Field.field @"vec'utxos") frozen'utxos x))+ else+ do tag <- Data.ProtoLens.Encoding.Bytes.getVarInt+ case tag of+ 10+ -> do !y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (do len <- Data.ProtoLens.Encoding.Bytes.getVarInt+ Data.ProtoLens.Encoding.Bytes.isolate+ (Prelude.fromIntegral len)+ Data.ProtoLens.parseMessage)+ "utxos"+ v <- Data.ProtoLens.Encoding.Parser.Unsafe.unsafeLiftIO+ (Data.ProtoLens.Encoding.Growing.append mutable'utxos y)+ loop x v+ wire+ -> do !y <- Data.ProtoLens.Encoding.Wire.parseTaggedValueFromWire+ wire+ loop+ (Lens.Family2.over+ Data.ProtoLens.unknownFields (\ !t -> (:) y t) x)+ mutable'utxos+ in+ (Data.ProtoLens.Encoding.Bytes.<?>)+ (do mutable'utxos <- Data.ProtoLens.Encoding.Parser.Unsafe.unsafeLiftIO+ Data.ProtoLens.Encoding.Growing.new+ loop Data.ProtoLens.defMessage mutable'utxos)+ "ListUnspentResponse"+ buildMessage+ = \ _x+ -> (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.foldMapBuilder+ (\ _v+ -> (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 10)+ ((Prelude..)+ (\ bs+ -> (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt+ (Prelude.fromIntegral (Data.ByteString.length bs)))+ (Data.ProtoLens.Encoding.Bytes.putBytes bs))+ Data.ProtoLens.encodeMessage _v))+ (Lens.Family2.view (Data.ProtoLens.Field.field @"vec'utxos") _x))+ (Data.ProtoLens.Encoding.Wire.buildFieldSet+ (Lens.Family2.view Data.ProtoLens.unknownFields _x))+instance Control.DeepSeq.NFData ListUnspentResponse where+ rnf+ = \ x__+ -> Control.DeepSeq.deepseq+ (_ListUnspentResponse'_unknownFields x__)+ (Control.DeepSeq.deepseq (_ListUnspentResponse'utxos x__) ())+{- | Fields :+ + * 'Proto.Lightning_Fields.type'' @:: Lens' NewAddressRequest AddressType@+ * 'Proto.Lightning_Fields.account' @:: Lens' NewAddressRequest Data.Text.Text@ -}+data NewAddressRequest+ = NewAddressRequest'_constructor {_NewAddressRequest'type' :: !AddressType,+ _NewAddressRequest'account :: !Data.Text.Text,+ _NewAddressRequest'_unknownFields :: !Data.ProtoLens.FieldSet}+ deriving stock (Prelude.Eq, Prelude.Ord, GHC.Generics.Generic)+instance Prelude.Show NewAddressRequest where+ showsPrec _ __x __s+ = Prelude.showChar+ '{'+ (Prelude.showString+ (Data.ProtoLens.showMessageShort __x) (Prelude.showChar '}' __s))+instance Text.PrettyPrint.GenericPretty.Out NewAddressRequest+instance Data.ProtoLens.Field.HasField NewAddressRequest "type'" AddressType where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _NewAddressRequest'type'+ (\ x__ y__ -> x__ {_NewAddressRequest'type' = y__}))+ Prelude.id+instance Data.ProtoLens.Field.HasField NewAddressRequest "account" Data.Text.Text where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _NewAddressRequest'account+ (\ x__ y__ -> x__ {_NewAddressRequest'account = y__}))+ Prelude.id+instance Data.ProtoLens.Message NewAddressRequest where+ messageName _ = Data.Text.pack "lnrpc.NewAddressRequest"+ packedMessageDescriptor _+ = "\n\+ \\DC1NewAddressRequest\DC2&\n\+ \\EOTtype\CAN\SOH \SOH(\SO2\DC2.lnrpc.AddressTypeR\EOTtype\DC2\CAN\n\+ \\aaccount\CAN\STX \SOH(\tR\aaccount"+ packedFileDescriptor _ = packedFileDescriptor+ fieldsByTag+ = let+ type'__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "type"+ (Data.ProtoLens.ScalarField Data.ProtoLens.EnumField ::+ Data.ProtoLens.FieldTypeDescriptor AddressType)+ (Data.ProtoLens.PlainField+ Data.ProtoLens.Optional (Data.ProtoLens.Field.field @"type'")) ::+ Data.ProtoLens.FieldDescriptor NewAddressRequest+ account__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "account"+ (Data.ProtoLens.ScalarField Data.ProtoLens.StringField ::+ Data.ProtoLens.FieldTypeDescriptor Data.Text.Text)+ (Data.ProtoLens.PlainField+ Data.ProtoLens.Optional (Data.ProtoLens.Field.field @"account")) ::+ Data.ProtoLens.FieldDescriptor NewAddressRequest+ in+ Data.Map.fromList+ [(Data.ProtoLens.Tag 1, type'__field_descriptor),+ (Data.ProtoLens.Tag 2, account__field_descriptor)]+ unknownFields+ = Lens.Family2.Unchecked.lens+ _NewAddressRequest'_unknownFields+ (\ x__ y__ -> x__ {_NewAddressRequest'_unknownFields = y__})+ defMessage+ = NewAddressRequest'_constructor+ {_NewAddressRequest'type' = Data.ProtoLens.fieldDefault,+ _NewAddressRequest'account = Data.ProtoLens.fieldDefault,+ _NewAddressRequest'_unknownFields = []}+ parseMessage+ = let+ loop ::+ NewAddressRequest+ -> Data.ProtoLens.Encoding.Bytes.Parser NewAddressRequest+ loop x+ = do end <- Data.ProtoLens.Encoding.Bytes.atEnd+ if end then+ do (let missing = []+ in+ if Prelude.null missing then+ Prelude.return ()+ else+ Prelude.fail+ ((Prelude.++)+ "Missing required fields: "+ (Prelude.show (missing :: [Prelude.String]))))+ Prelude.return+ (Lens.Family2.over+ Data.ProtoLens.unknownFields (\ !t -> Prelude.reverse t) x)+ else+ do tag <- Data.ProtoLens.Encoding.Bytes.getVarInt+ case tag of+ 8 -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (Prelude.fmap+ Prelude.toEnum+ (Prelude.fmap+ Prelude.fromIntegral+ Data.ProtoLens.Encoding.Bytes.getVarInt))+ "type"+ loop (Lens.Family2.set (Data.ProtoLens.Field.field @"type'") y x)+ 18+ -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (do value <- do len <- Data.ProtoLens.Encoding.Bytes.getVarInt+ Data.ProtoLens.Encoding.Bytes.getBytes+ (Prelude.fromIntegral len)+ Data.ProtoLens.Encoding.Bytes.runEither+ (case Data.Text.Encoding.decodeUtf8' value of+ (Prelude.Left err)+ -> Prelude.Left (Prelude.show err)+ (Prelude.Right r) -> Prelude.Right r))+ "account"+ loop (Lens.Family2.set (Data.ProtoLens.Field.field @"account") y x)+ wire+ -> do !y <- Data.ProtoLens.Encoding.Wire.parseTaggedValueFromWire+ wire+ loop+ (Lens.Family2.over+ Data.ProtoLens.unknownFields (\ !t -> (:) y t) x)+ in+ (Data.ProtoLens.Encoding.Bytes.<?>)+ (do loop Data.ProtoLens.defMessage) "NewAddressRequest"+ buildMessage+ = \ _x+ -> (Data.Monoid.<>)+ (let+ _v = Lens.Family2.view (Data.ProtoLens.Field.field @"type'") _x+ in+ if (Prelude.==) _v Data.ProtoLens.fieldDefault then+ Data.Monoid.mempty+ else+ (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 8)+ ((Prelude..)+ ((Prelude..)+ Data.ProtoLens.Encoding.Bytes.putVarInt Prelude.fromIntegral)+ Prelude.fromEnum _v))+ ((Data.Monoid.<>)+ (let+ _v = Lens.Family2.view (Data.ProtoLens.Field.field @"account") _x+ in+ if (Prelude.==) _v Data.ProtoLens.fieldDefault then+ Data.Monoid.mempty+ else+ (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 18)+ ((Prelude..)+ (\ bs+ -> (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt+ (Prelude.fromIntegral (Data.ByteString.length bs)))+ (Data.ProtoLens.Encoding.Bytes.putBytes bs))+ Data.Text.Encoding.encodeUtf8 _v))+ (Data.ProtoLens.Encoding.Wire.buildFieldSet+ (Lens.Family2.view Data.ProtoLens.unknownFields _x)))+instance Control.DeepSeq.NFData NewAddressRequest where+ rnf+ = \ x__+ -> Control.DeepSeq.deepseq+ (_NewAddressRequest'_unknownFields x__)+ (Control.DeepSeq.deepseq+ (_NewAddressRequest'type' x__)+ (Control.DeepSeq.deepseq (_NewAddressRequest'account x__) ()))+{- | Fields :+ + * 'Proto.Lightning_Fields.address' @:: Lens' NewAddressResponse Data.Text.Text@ -}+data NewAddressResponse+ = NewAddressResponse'_constructor {_NewAddressResponse'address :: !Data.Text.Text,+ _NewAddressResponse'_unknownFields :: !Data.ProtoLens.FieldSet}+ deriving stock (Prelude.Eq, Prelude.Ord, GHC.Generics.Generic)+instance Prelude.Show NewAddressResponse where+ showsPrec _ __x __s+ = Prelude.showChar+ '{'+ (Prelude.showString+ (Data.ProtoLens.showMessageShort __x) (Prelude.showChar '}' __s))+instance Text.PrettyPrint.GenericPretty.Out NewAddressResponse+instance Data.ProtoLens.Field.HasField NewAddressResponse "address" Data.Text.Text where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _NewAddressResponse'address+ (\ x__ y__ -> x__ {_NewAddressResponse'address = y__}))+ Prelude.id+instance Data.ProtoLens.Message NewAddressResponse where+ messageName _ = Data.Text.pack "lnrpc.NewAddressResponse"+ packedMessageDescriptor _+ = "\n\+ \\DC2NewAddressResponse\DC2\CAN\n\+ \\aaddress\CAN\SOH \SOH(\tR\aaddress"+ packedFileDescriptor _ = packedFileDescriptor+ fieldsByTag+ = let+ address__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "address"+ (Data.ProtoLens.ScalarField Data.ProtoLens.StringField ::+ Data.ProtoLens.FieldTypeDescriptor Data.Text.Text)+ (Data.ProtoLens.PlainField+ Data.ProtoLens.Optional (Data.ProtoLens.Field.field @"address")) ::+ Data.ProtoLens.FieldDescriptor NewAddressResponse+ in+ Data.Map.fromList+ [(Data.ProtoLens.Tag 1, address__field_descriptor)]+ unknownFields+ = Lens.Family2.Unchecked.lens+ _NewAddressResponse'_unknownFields+ (\ x__ y__ -> x__ {_NewAddressResponse'_unknownFields = y__})+ defMessage+ = NewAddressResponse'_constructor+ {_NewAddressResponse'address = Data.ProtoLens.fieldDefault,+ _NewAddressResponse'_unknownFields = []}+ parseMessage+ = let+ loop ::+ NewAddressResponse+ -> Data.ProtoLens.Encoding.Bytes.Parser NewAddressResponse+ loop x+ = do end <- Data.ProtoLens.Encoding.Bytes.atEnd+ if end then+ do (let missing = []+ in+ if Prelude.null missing then+ Prelude.return ()+ else+ Prelude.fail+ ((Prelude.++)+ "Missing required fields: "+ (Prelude.show (missing :: [Prelude.String]))))+ Prelude.return+ (Lens.Family2.over+ Data.ProtoLens.unknownFields (\ !t -> Prelude.reverse t) x)+ else+ do tag <- Data.ProtoLens.Encoding.Bytes.getVarInt+ case tag of+ 10+ -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (do value <- do len <- Data.ProtoLens.Encoding.Bytes.getVarInt+ Data.ProtoLens.Encoding.Bytes.getBytes+ (Prelude.fromIntegral len)+ Data.ProtoLens.Encoding.Bytes.runEither+ (case Data.Text.Encoding.decodeUtf8' value of+ (Prelude.Left err)+ -> Prelude.Left (Prelude.show err)+ (Prelude.Right r) -> Prelude.Right r))+ "address"+ loop (Lens.Family2.set (Data.ProtoLens.Field.field @"address") y x)+ wire+ -> do !y <- Data.ProtoLens.Encoding.Wire.parseTaggedValueFromWire+ wire+ loop+ (Lens.Family2.over+ Data.ProtoLens.unknownFields (\ !t -> (:) y t) x)+ in+ (Data.ProtoLens.Encoding.Bytes.<?>)+ (do loop Data.ProtoLens.defMessage) "NewAddressResponse"+ buildMessage+ = \ _x+ -> (Data.Monoid.<>)+ (let+ _v = Lens.Family2.view (Data.ProtoLens.Field.field @"address") _x+ in+ if (Prelude.==) _v Data.ProtoLens.fieldDefault then+ Data.Monoid.mempty+ else+ (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 10)+ ((Prelude..)+ (\ bs+ -> (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt+ (Prelude.fromIntegral (Data.ByteString.length bs)))+ (Data.ProtoLens.Encoding.Bytes.putBytes bs))+ Data.Text.Encoding.encodeUtf8 _v))+ (Data.ProtoLens.Encoding.Wire.buildFieldSet+ (Lens.Family2.view Data.ProtoLens.unknownFields _x))+instance Control.DeepSeq.NFData NewAddressResponse where+ rnf+ = \ x__+ -> Control.DeepSeq.deepseq+ (_NewAddressResponse'_unknownFields x__)+ (Control.DeepSeq.deepseq (_NewAddressResponse'address x__) ())+{- | Fields :+ + * 'Proto.Lightning_Fields.satPerVbyte' @:: Lens' OpenChannelRequest Data.Word.Word64@+ * 'Proto.Lightning_Fields.nodePubkey' @:: Lens' OpenChannelRequest Data.ByteString.ByteString@+ * 'Proto.Lightning_Fields.nodePubkeyString' @:: Lens' OpenChannelRequest Data.Text.Text@+ * 'Proto.Lightning_Fields.localFundingAmount' @:: Lens' OpenChannelRequest Data.Int.Int64@+ * 'Proto.Lightning_Fields.pushSat' @:: Lens' OpenChannelRequest Data.Int.Int64@+ * 'Proto.Lightning_Fields.targetConf' @:: Lens' OpenChannelRequest Data.Int.Int32@+ * 'Proto.Lightning_Fields.satPerByte' @:: Lens' OpenChannelRequest Data.Int.Int64@+ * 'Proto.Lightning_Fields.private' @:: Lens' OpenChannelRequest Prelude.Bool@+ * 'Proto.Lightning_Fields.minHtlcMsat' @:: Lens' OpenChannelRequest Data.Int.Int64@+ * 'Proto.Lightning_Fields.remoteCsvDelay' @:: Lens' OpenChannelRequest Data.Word.Word32@+ * 'Proto.Lightning_Fields.minConfs' @:: Lens' OpenChannelRequest Data.Int.Int32@+ * 'Proto.Lightning_Fields.spendUnconfirmed' @:: Lens' OpenChannelRequest Prelude.Bool@+ * 'Proto.Lightning_Fields.closeAddress' @:: Lens' OpenChannelRequest Data.Text.Text@+ * 'Proto.Lightning_Fields.fundingShim' @:: Lens' OpenChannelRequest Proto.Lnrpc.Ln0.FundingShim@+ * 'Proto.Lightning_Fields.maybe'fundingShim' @:: Lens' OpenChannelRequest (Prelude.Maybe Proto.Lnrpc.Ln0.FundingShim)@+ * 'Proto.Lightning_Fields.remoteMaxValueInFlightMsat' @:: Lens' OpenChannelRequest Data.Word.Word64@+ * 'Proto.Lightning_Fields.remoteMaxHtlcs' @:: Lens' OpenChannelRequest Data.Word.Word32@+ * 'Proto.Lightning_Fields.maxLocalCsv' @:: Lens' OpenChannelRequest Data.Word.Word32@+ * 'Proto.Lightning_Fields.commitmentType' @:: Lens' OpenChannelRequest Proto.Lnrpc.Ln0.CommitmentType@ -}+data OpenChannelRequest+ = OpenChannelRequest'_constructor {_OpenChannelRequest'satPerVbyte :: !Data.Word.Word64,+ _OpenChannelRequest'nodePubkey :: !Data.ByteString.ByteString,+ _OpenChannelRequest'nodePubkeyString :: !Data.Text.Text,+ _OpenChannelRequest'localFundingAmount :: !Data.Int.Int64,+ _OpenChannelRequest'pushSat :: !Data.Int.Int64,+ _OpenChannelRequest'targetConf :: !Data.Int.Int32,+ _OpenChannelRequest'satPerByte :: !Data.Int.Int64,+ _OpenChannelRequest'private :: !Prelude.Bool,+ _OpenChannelRequest'minHtlcMsat :: !Data.Int.Int64,+ _OpenChannelRequest'remoteCsvDelay :: !Data.Word.Word32,+ _OpenChannelRequest'minConfs :: !Data.Int.Int32,+ _OpenChannelRequest'spendUnconfirmed :: !Prelude.Bool,+ _OpenChannelRequest'closeAddress :: !Data.Text.Text,+ _OpenChannelRequest'fundingShim :: !(Prelude.Maybe Proto.Lnrpc.Ln0.FundingShim),+ _OpenChannelRequest'remoteMaxValueInFlightMsat :: !Data.Word.Word64,+ _OpenChannelRequest'remoteMaxHtlcs :: !Data.Word.Word32,+ _OpenChannelRequest'maxLocalCsv :: !Data.Word.Word32,+ _OpenChannelRequest'commitmentType :: !Proto.Lnrpc.Ln0.CommitmentType,+ _OpenChannelRequest'_unknownFields :: !Data.ProtoLens.FieldSet}+ deriving stock (Prelude.Eq, Prelude.Ord, GHC.Generics.Generic)+instance Prelude.Show OpenChannelRequest where+ showsPrec _ __x __s+ = Prelude.showChar+ '{'+ (Prelude.showString+ (Data.ProtoLens.showMessageShort __x) (Prelude.showChar '}' __s))+instance Text.PrettyPrint.GenericPretty.Out OpenChannelRequest+instance Data.ProtoLens.Field.HasField OpenChannelRequest "satPerVbyte" Data.Word.Word64 where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _OpenChannelRequest'satPerVbyte+ (\ x__ y__ -> x__ {_OpenChannelRequest'satPerVbyte = y__}))+ Prelude.id+instance Data.ProtoLens.Field.HasField OpenChannelRequest "nodePubkey" Data.ByteString.ByteString where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _OpenChannelRequest'nodePubkey+ (\ x__ y__ -> x__ {_OpenChannelRequest'nodePubkey = y__}))+ Prelude.id+instance Data.ProtoLens.Field.HasField OpenChannelRequest "nodePubkeyString" Data.Text.Text where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _OpenChannelRequest'nodePubkeyString+ (\ x__ y__ -> x__ {_OpenChannelRequest'nodePubkeyString = y__}))+ Prelude.id+instance Data.ProtoLens.Field.HasField OpenChannelRequest "localFundingAmount" Data.Int.Int64 where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _OpenChannelRequest'localFundingAmount+ (\ x__ y__ -> x__ {_OpenChannelRequest'localFundingAmount = y__}))+ Prelude.id+instance Data.ProtoLens.Field.HasField OpenChannelRequest "pushSat" Data.Int.Int64 where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _OpenChannelRequest'pushSat+ (\ x__ y__ -> x__ {_OpenChannelRequest'pushSat = y__}))+ Prelude.id+instance Data.ProtoLens.Field.HasField OpenChannelRequest "targetConf" Data.Int.Int32 where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _OpenChannelRequest'targetConf+ (\ x__ y__ -> x__ {_OpenChannelRequest'targetConf = y__}))+ Prelude.id+instance Data.ProtoLens.Field.HasField OpenChannelRequest "satPerByte" Data.Int.Int64 where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _OpenChannelRequest'satPerByte+ (\ x__ y__ -> x__ {_OpenChannelRequest'satPerByte = y__}))+ Prelude.id+instance Data.ProtoLens.Field.HasField OpenChannelRequest "private" Prelude.Bool where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _OpenChannelRequest'private+ (\ x__ y__ -> x__ {_OpenChannelRequest'private = y__}))+ Prelude.id+instance Data.ProtoLens.Field.HasField OpenChannelRequest "minHtlcMsat" Data.Int.Int64 where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _OpenChannelRequest'minHtlcMsat+ (\ x__ y__ -> x__ {_OpenChannelRequest'minHtlcMsat = y__}))+ Prelude.id+instance Data.ProtoLens.Field.HasField OpenChannelRequest "remoteCsvDelay" Data.Word.Word32 where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _OpenChannelRequest'remoteCsvDelay+ (\ x__ y__ -> x__ {_OpenChannelRequest'remoteCsvDelay = y__}))+ Prelude.id+instance Data.ProtoLens.Field.HasField OpenChannelRequest "minConfs" Data.Int.Int32 where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _OpenChannelRequest'minConfs+ (\ x__ y__ -> x__ {_OpenChannelRequest'minConfs = y__}))+ Prelude.id+instance Data.ProtoLens.Field.HasField OpenChannelRequest "spendUnconfirmed" Prelude.Bool where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _OpenChannelRequest'spendUnconfirmed+ (\ x__ y__ -> x__ {_OpenChannelRequest'spendUnconfirmed = y__}))+ Prelude.id+instance Data.ProtoLens.Field.HasField OpenChannelRequest "closeAddress" Data.Text.Text where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _OpenChannelRequest'closeAddress+ (\ x__ y__ -> x__ {_OpenChannelRequest'closeAddress = y__}))+ Prelude.id+instance Data.ProtoLens.Field.HasField OpenChannelRequest "fundingShim" Proto.Lnrpc.Ln0.FundingShim where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _OpenChannelRequest'fundingShim+ (\ x__ y__ -> x__ {_OpenChannelRequest'fundingShim = y__}))+ (Data.ProtoLens.maybeLens Data.ProtoLens.defMessage)+instance Data.ProtoLens.Field.HasField OpenChannelRequest "maybe'fundingShim" (Prelude.Maybe Proto.Lnrpc.Ln0.FundingShim) where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _OpenChannelRequest'fundingShim+ (\ x__ y__ -> x__ {_OpenChannelRequest'fundingShim = y__}))+ Prelude.id+instance Data.ProtoLens.Field.HasField OpenChannelRequest "remoteMaxValueInFlightMsat" Data.Word.Word64 where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _OpenChannelRequest'remoteMaxValueInFlightMsat+ (\ x__ y__+ -> x__ {_OpenChannelRequest'remoteMaxValueInFlightMsat = y__}))+ Prelude.id+instance Data.ProtoLens.Field.HasField OpenChannelRequest "remoteMaxHtlcs" Data.Word.Word32 where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _OpenChannelRequest'remoteMaxHtlcs+ (\ x__ y__ -> x__ {_OpenChannelRequest'remoteMaxHtlcs = y__}))+ Prelude.id+instance Data.ProtoLens.Field.HasField OpenChannelRequest "maxLocalCsv" Data.Word.Word32 where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _OpenChannelRequest'maxLocalCsv+ (\ x__ y__ -> x__ {_OpenChannelRequest'maxLocalCsv = y__}))+ Prelude.id+instance Data.ProtoLens.Field.HasField OpenChannelRequest "commitmentType" Proto.Lnrpc.Ln0.CommitmentType where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _OpenChannelRequest'commitmentType+ (\ x__ y__ -> x__ {_OpenChannelRequest'commitmentType = y__}))+ Prelude.id+instance Data.ProtoLens.Message OpenChannelRequest where+ messageName _ = Data.Text.pack "lnrpc.OpenChannelRequest"+ packedMessageDescriptor _+ = "\n\+ \\DC2OpenChannelRequest\DC2\"\n\+ \\rsat_per_vbyte\CAN\SOH \SOH(\EOTR\vsatPerVbyte\DC2\US\n\+ \\vnode_pubkey\CAN\STX \SOH(\fR\n\+ \nodePubkey\DC20\n\+ \\DC2node_pubkey_string\CAN\ETX \SOH(\tR\DLEnodePubkeyStringB\STX\CAN\SOH\DC20\n\+ \\DC4local_funding_amount\CAN\EOT \SOH(\ETXR\DC2localFundingAmount\DC2\EM\n\+ \\bpush_sat\CAN\ENQ \SOH(\ETXR\apushSat\DC2\US\n\+ \\vtarget_conf\CAN\ACK \SOH(\ENQR\n\+ \targetConf\DC2$\n\+ \\fsat_per_byte\CAN\a \SOH(\ETXR\n\+ \satPerByteB\STX\CAN\SOH\DC2\CAN\n\+ \\aprivate\CAN\b \SOH(\bR\aprivate\DC2\"\n\+ \\rmin_htlc_msat\CAN\t \SOH(\ETXR\vminHtlcMsat\DC2(\n\+ \\DLEremote_csv_delay\CAN\n\+ \ \SOH(\rR\SOremoteCsvDelay\DC2\ESC\n\+ \\tmin_confs\CAN\v \SOH(\ENQR\bminConfs\DC2+\n\+ \\DC1spend_unconfirmed\CAN\f \SOH(\bR\DLEspendUnconfirmed\DC2#\n\+ \\rclose_address\CAN\r \SOH(\tR\fcloseAddress\DC25\n\+ \\ffunding_shim\CAN\SO \SOH(\v2\DC2.lnrpc.FundingShimR\vfundingShim\DC2C\n\+ \\USremote_max_value_in_flight_msat\CAN\SI \SOH(\EOTR\SUBremoteMaxValueInFlightMsat\DC2(\n\+ \\DLEremote_max_htlcs\CAN\DLE \SOH(\rR\SOremoteMaxHtlcs\DC2\"\n\+ \\rmax_local_csv\CAN\DC1 \SOH(\rR\vmaxLocalCsv\DC2>\n\+ \\SIcommitment_type\CAN\DC2 \SOH(\SO2\NAK.lnrpc.CommitmentTypeR\SOcommitmentType"+ packedFileDescriptor _ = packedFileDescriptor+ fieldsByTag+ = let+ satPerVbyte__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "sat_per_vbyte"+ (Data.ProtoLens.ScalarField Data.ProtoLens.UInt64Field ::+ Data.ProtoLens.FieldTypeDescriptor Data.Word.Word64)+ (Data.ProtoLens.PlainField+ Data.ProtoLens.Optional+ (Data.ProtoLens.Field.field @"satPerVbyte")) ::+ Data.ProtoLens.FieldDescriptor OpenChannelRequest+ nodePubkey__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "node_pubkey"+ (Data.ProtoLens.ScalarField Data.ProtoLens.BytesField ::+ Data.ProtoLens.FieldTypeDescriptor Data.ByteString.ByteString)+ (Data.ProtoLens.PlainField+ Data.ProtoLens.Optional+ (Data.ProtoLens.Field.field @"nodePubkey")) ::+ Data.ProtoLens.FieldDescriptor OpenChannelRequest+ nodePubkeyString__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "node_pubkey_string"+ (Data.ProtoLens.ScalarField Data.ProtoLens.StringField ::+ Data.ProtoLens.FieldTypeDescriptor Data.Text.Text)+ (Data.ProtoLens.PlainField+ Data.ProtoLens.Optional+ (Data.ProtoLens.Field.field @"nodePubkeyString")) ::+ Data.ProtoLens.FieldDescriptor OpenChannelRequest+ localFundingAmount__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "local_funding_amount"+ (Data.ProtoLens.ScalarField Data.ProtoLens.Int64Field ::+ Data.ProtoLens.FieldTypeDescriptor Data.Int.Int64)+ (Data.ProtoLens.PlainField+ Data.ProtoLens.Optional+ (Data.ProtoLens.Field.field @"localFundingAmount")) ::+ Data.ProtoLens.FieldDescriptor OpenChannelRequest+ pushSat__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "push_sat"+ (Data.ProtoLens.ScalarField Data.ProtoLens.Int64Field ::+ Data.ProtoLens.FieldTypeDescriptor Data.Int.Int64)+ (Data.ProtoLens.PlainField+ Data.ProtoLens.Optional (Data.ProtoLens.Field.field @"pushSat")) ::+ Data.ProtoLens.FieldDescriptor OpenChannelRequest+ targetConf__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "target_conf"+ (Data.ProtoLens.ScalarField Data.ProtoLens.Int32Field ::+ Data.ProtoLens.FieldTypeDescriptor Data.Int.Int32)+ (Data.ProtoLens.PlainField+ Data.ProtoLens.Optional+ (Data.ProtoLens.Field.field @"targetConf")) ::+ Data.ProtoLens.FieldDescriptor OpenChannelRequest+ satPerByte__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "sat_per_byte"+ (Data.ProtoLens.ScalarField Data.ProtoLens.Int64Field ::+ Data.ProtoLens.FieldTypeDescriptor Data.Int.Int64)+ (Data.ProtoLens.PlainField+ Data.ProtoLens.Optional+ (Data.ProtoLens.Field.field @"satPerByte")) ::+ Data.ProtoLens.FieldDescriptor OpenChannelRequest+ private__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "private"+ (Data.ProtoLens.ScalarField Data.ProtoLens.BoolField ::+ Data.ProtoLens.FieldTypeDescriptor Prelude.Bool)+ (Data.ProtoLens.PlainField+ Data.ProtoLens.Optional (Data.ProtoLens.Field.field @"private")) ::+ Data.ProtoLens.FieldDescriptor OpenChannelRequest+ minHtlcMsat__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "min_htlc_msat"+ (Data.ProtoLens.ScalarField Data.ProtoLens.Int64Field ::+ Data.ProtoLens.FieldTypeDescriptor Data.Int.Int64)+ (Data.ProtoLens.PlainField+ Data.ProtoLens.Optional+ (Data.ProtoLens.Field.field @"minHtlcMsat")) ::+ Data.ProtoLens.FieldDescriptor OpenChannelRequest+ remoteCsvDelay__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "remote_csv_delay"+ (Data.ProtoLens.ScalarField Data.ProtoLens.UInt32Field ::+ Data.ProtoLens.FieldTypeDescriptor Data.Word.Word32)+ (Data.ProtoLens.PlainField+ Data.ProtoLens.Optional+ (Data.ProtoLens.Field.field @"remoteCsvDelay")) ::+ Data.ProtoLens.FieldDescriptor OpenChannelRequest+ minConfs__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "min_confs"+ (Data.ProtoLens.ScalarField Data.ProtoLens.Int32Field ::+ Data.ProtoLens.FieldTypeDescriptor Data.Int.Int32)+ (Data.ProtoLens.PlainField+ Data.ProtoLens.Optional+ (Data.ProtoLens.Field.field @"minConfs")) ::+ Data.ProtoLens.FieldDescriptor OpenChannelRequest+ spendUnconfirmed__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "spend_unconfirmed"+ (Data.ProtoLens.ScalarField Data.ProtoLens.BoolField ::+ Data.ProtoLens.FieldTypeDescriptor Prelude.Bool)+ (Data.ProtoLens.PlainField+ Data.ProtoLens.Optional+ (Data.ProtoLens.Field.field @"spendUnconfirmed")) ::+ Data.ProtoLens.FieldDescriptor OpenChannelRequest+ closeAddress__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "close_address"+ (Data.ProtoLens.ScalarField Data.ProtoLens.StringField ::+ Data.ProtoLens.FieldTypeDescriptor Data.Text.Text)+ (Data.ProtoLens.PlainField+ Data.ProtoLens.Optional+ (Data.ProtoLens.Field.field @"closeAddress")) ::+ Data.ProtoLens.FieldDescriptor OpenChannelRequest+ fundingShim__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "funding_shim"+ (Data.ProtoLens.MessageField Data.ProtoLens.MessageType ::+ Data.ProtoLens.FieldTypeDescriptor Proto.Lnrpc.Ln0.FundingShim)+ (Data.ProtoLens.OptionalField+ (Data.ProtoLens.Field.field @"maybe'fundingShim")) ::+ Data.ProtoLens.FieldDescriptor OpenChannelRequest+ remoteMaxValueInFlightMsat__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "remote_max_value_in_flight_msat"+ (Data.ProtoLens.ScalarField Data.ProtoLens.UInt64Field ::+ Data.ProtoLens.FieldTypeDescriptor Data.Word.Word64)+ (Data.ProtoLens.PlainField+ Data.ProtoLens.Optional+ (Data.ProtoLens.Field.field @"remoteMaxValueInFlightMsat")) ::+ Data.ProtoLens.FieldDescriptor OpenChannelRequest+ remoteMaxHtlcs__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "remote_max_htlcs"+ (Data.ProtoLens.ScalarField Data.ProtoLens.UInt32Field ::+ Data.ProtoLens.FieldTypeDescriptor Data.Word.Word32)+ (Data.ProtoLens.PlainField+ Data.ProtoLens.Optional+ (Data.ProtoLens.Field.field @"remoteMaxHtlcs")) ::+ Data.ProtoLens.FieldDescriptor OpenChannelRequest+ maxLocalCsv__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "max_local_csv"+ (Data.ProtoLens.ScalarField Data.ProtoLens.UInt32Field ::+ Data.ProtoLens.FieldTypeDescriptor Data.Word.Word32)+ (Data.ProtoLens.PlainField+ Data.ProtoLens.Optional+ (Data.ProtoLens.Field.field @"maxLocalCsv")) ::+ Data.ProtoLens.FieldDescriptor OpenChannelRequest+ commitmentType__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "commitment_type"+ (Data.ProtoLens.ScalarField Data.ProtoLens.EnumField ::+ Data.ProtoLens.FieldTypeDescriptor Proto.Lnrpc.Ln0.CommitmentType)+ (Data.ProtoLens.PlainField+ Data.ProtoLens.Optional+ (Data.ProtoLens.Field.field @"commitmentType")) ::+ Data.ProtoLens.FieldDescriptor OpenChannelRequest+ in+ Data.Map.fromList+ [(Data.ProtoLens.Tag 1, satPerVbyte__field_descriptor),+ (Data.ProtoLens.Tag 2, nodePubkey__field_descriptor),+ (Data.ProtoLens.Tag 3, nodePubkeyString__field_descriptor),+ (Data.ProtoLens.Tag 4, localFundingAmount__field_descriptor),+ (Data.ProtoLens.Tag 5, pushSat__field_descriptor),+ (Data.ProtoLens.Tag 6, targetConf__field_descriptor),+ (Data.ProtoLens.Tag 7, satPerByte__field_descriptor),+ (Data.ProtoLens.Tag 8, private__field_descriptor),+ (Data.ProtoLens.Tag 9, minHtlcMsat__field_descriptor),+ (Data.ProtoLens.Tag 10, remoteCsvDelay__field_descriptor),+ (Data.ProtoLens.Tag 11, minConfs__field_descriptor),+ (Data.ProtoLens.Tag 12, spendUnconfirmed__field_descriptor),+ (Data.ProtoLens.Tag 13, closeAddress__field_descriptor),+ (Data.ProtoLens.Tag 14, fundingShim__field_descriptor),+ (Data.ProtoLens.Tag 15, + remoteMaxValueInFlightMsat__field_descriptor),+ (Data.ProtoLens.Tag 16, remoteMaxHtlcs__field_descriptor),+ (Data.ProtoLens.Tag 17, maxLocalCsv__field_descriptor),+ (Data.ProtoLens.Tag 18, commitmentType__field_descriptor)]+ unknownFields+ = Lens.Family2.Unchecked.lens+ _OpenChannelRequest'_unknownFields+ (\ x__ y__ -> x__ {_OpenChannelRequest'_unknownFields = y__})+ defMessage+ = OpenChannelRequest'_constructor+ {_OpenChannelRequest'satPerVbyte = Data.ProtoLens.fieldDefault,+ _OpenChannelRequest'nodePubkey = Data.ProtoLens.fieldDefault,+ _OpenChannelRequest'nodePubkeyString = Data.ProtoLens.fieldDefault,+ _OpenChannelRequest'localFundingAmount = Data.ProtoLens.fieldDefault,+ _OpenChannelRequest'pushSat = Data.ProtoLens.fieldDefault,+ _OpenChannelRequest'targetConf = Data.ProtoLens.fieldDefault,+ _OpenChannelRequest'satPerByte = Data.ProtoLens.fieldDefault,+ _OpenChannelRequest'private = Data.ProtoLens.fieldDefault,+ _OpenChannelRequest'minHtlcMsat = Data.ProtoLens.fieldDefault,+ _OpenChannelRequest'remoteCsvDelay = Data.ProtoLens.fieldDefault,+ _OpenChannelRequest'minConfs = Data.ProtoLens.fieldDefault,+ _OpenChannelRequest'spendUnconfirmed = Data.ProtoLens.fieldDefault,+ _OpenChannelRequest'closeAddress = Data.ProtoLens.fieldDefault,+ _OpenChannelRequest'fundingShim = Prelude.Nothing,+ _OpenChannelRequest'remoteMaxValueInFlightMsat = Data.ProtoLens.fieldDefault,+ _OpenChannelRequest'remoteMaxHtlcs = Data.ProtoLens.fieldDefault,+ _OpenChannelRequest'maxLocalCsv = Data.ProtoLens.fieldDefault,+ _OpenChannelRequest'commitmentType = Data.ProtoLens.fieldDefault,+ _OpenChannelRequest'_unknownFields = []}+ parseMessage+ = let+ loop ::+ OpenChannelRequest+ -> Data.ProtoLens.Encoding.Bytes.Parser OpenChannelRequest+ loop x+ = do end <- Data.ProtoLens.Encoding.Bytes.atEnd+ if end then+ do (let missing = []+ in+ if Prelude.null missing then+ Prelude.return ()+ else+ Prelude.fail+ ((Prelude.++)+ "Missing required fields: "+ (Prelude.show (missing :: [Prelude.String]))))+ Prelude.return+ (Lens.Family2.over+ Data.ProtoLens.unknownFields (\ !t -> Prelude.reverse t) x)+ else+ do tag <- Data.ProtoLens.Encoding.Bytes.getVarInt+ case tag of+ 8 -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ Data.ProtoLens.Encoding.Bytes.getVarInt "sat_per_vbyte"+ loop+ (Lens.Family2.set (Data.ProtoLens.Field.field @"satPerVbyte") y x)+ 18+ -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (do len <- Data.ProtoLens.Encoding.Bytes.getVarInt+ Data.ProtoLens.Encoding.Bytes.getBytes+ (Prelude.fromIntegral len))+ "node_pubkey"+ loop+ (Lens.Family2.set (Data.ProtoLens.Field.field @"nodePubkey") y x)+ 26+ -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (do value <- do len <- Data.ProtoLens.Encoding.Bytes.getVarInt+ Data.ProtoLens.Encoding.Bytes.getBytes+ (Prelude.fromIntegral len)+ Data.ProtoLens.Encoding.Bytes.runEither+ (case Data.Text.Encoding.decodeUtf8' value of+ (Prelude.Left err)+ -> Prelude.Left (Prelude.show err)+ (Prelude.Right r) -> Prelude.Right r))+ "node_pubkey_string"+ loop+ (Lens.Family2.set+ (Data.ProtoLens.Field.field @"nodePubkeyString") y x)+ 32+ -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (Prelude.fmap+ Prelude.fromIntegral+ Data.ProtoLens.Encoding.Bytes.getVarInt)+ "local_funding_amount"+ loop+ (Lens.Family2.set+ (Data.ProtoLens.Field.field @"localFundingAmount") y x)+ 40+ -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (Prelude.fmap+ Prelude.fromIntegral+ Data.ProtoLens.Encoding.Bytes.getVarInt)+ "push_sat"+ loop (Lens.Family2.set (Data.ProtoLens.Field.field @"pushSat") y x)+ 48+ -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (Prelude.fmap+ Prelude.fromIntegral+ Data.ProtoLens.Encoding.Bytes.getVarInt)+ "target_conf"+ loop+ (Lens.Family2.set (Data.ProtoLens.Field.field @"targetConf") y x)+ 56+ -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (Prelude.fmap+ Prelude.fromIntegral+ Data.ProtoLens.Encoding.Bytes.getVarInt)+ "sat_per_byte"+ loop+ (Lens.Family2.set (Data.ProtoLens.Field.field @"satPerByte") y x)+ 64+ -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (Prelude.fmap+ ((Prelude./=) 0) Data.ProtoLens.Encoding.Bytes.getVarInt)+ "private"+ loop (Lens.Family2.set (Data.ProtoLens.Field.field @"private") y x)+ 72+ -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (Prelude.fmap+ Prelude.fromIntegral+ Data.ProtoLens.Encoding.Bytes.getVarInt)+ "min_htlc_msat"+ loop+ (Lens.Family2.set (Data.ProtoLens.Field.field @"minHtlcMsat") y x)+ 80+ -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (Prelude.fmap+ Prelude.fromIntegral+ Data.ProtoLens.Encoding.Bytes.getVarInt)+ "remote_csv_delay"+ loop+ (Lens.Family2.set+ (Data.ProtoLens.Field.field @"remoteCsvDelay") y x)+ 88+ -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (Prelude.fmap+ Prelude.fromIntegral+ Data.ProtoLens.Encoding.Bytes.getVarInt)+ "min_confs"+ loop+ (Lens.Family2.set (Data.ProtoLens.Field.field @"minConfs") y x)+ 96+ -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (Prelude.fmap+ ((Prelude./=) 0) Data.ProtoLens.Encoding.Bytes.getVarInt)+ "spend_unconfirmed"+ loop+ (Lens.Family2.set+ (Data.ProtoLens.Field.field @"spendUnconfirmed") y x)+ 106+ -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (do value <- do len <- Data.ProtoLens.Encoding.Bytes.getVarInt+ Data.ProtoLens.Encoding.Bytes.getBytes+ (Prelude.fromIntegral len)+ Data.ProtoLens.Encoding.Bytes.runEither+ (case Data.Text.Encoding.decodeUtf8' value of+ (Prelude.Left err)+ -> Prelude.Left (Prelude.show err)+ (Prelude.Right r) -> Prelude.Right r))+ "close_address"+ loop+ (Lens.Family2.set+ (Data.ProtoLens.Field.field @"closeAddress") y x)+ 114+ -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (do len <- Data.ProtoLens.Encoding.Bytes.getVarInt+ Data.ProtoLens.Encoding.Bytes.isolate+ (Prelude.fromIntegral len) Data.ProtoLens.parseMessage)+ "funding_shim"+ loop+ (Lens.Family2.set (Data.ProtoLens.Field.field @"fundingShim") y x)+ 120+ -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ Data.ProtoLens.Encoding.Bytes.getVarInt+ "remote_max_value_in_flight_msat"+ loop+ (Lens.Family2.set+ (Data.ProtoLens.Field.field @"remoteMaxValueInFlightMsat") y x)+ 128+ -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (Prelude.fmap+ Prelude.fromIntegral+ Data.ProtoLens.Encoding.Bytes.getVarInt)+ "remote_max_htlcs"+ loop+ (Lens.Family2.set+ (Data.ProtoLens.Field.field @"remoteMaxHtlcs") y x)+ 136+ -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (Prelude.fmap+ Prelude.fromIntegral+ Data.ProtoLens.Encoding.Bytes.getVarInt)+ "max_local_csv"+ loop+ (Lens.Family2.set (Data.ProtoLens.Field.field @"maxLocalCsv") y x)+ 144+ -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (Prelude.fmap+ Prelude.toEnum+ (Prelude.fmap+ Prelude.fromIntegral+ Data.ProtoLens.Encoding.Bytes.getVarInt))+ "commitment_type"+ loop+ (Lens.Family2.set+ (Data.ProtoLens.Field.field @"commitmentType") y x)+ wire+ -> do !y <- Data.ProtoLens.Encoding.Wire.parseTaggedValueFromWire+ wire+ loop+ (Lens.Family2.over+ Data.ProtoLens.unknownFields (\ !t -> (:) y t) x)+ in+ (Data.ProtoLens.Encoding.Bytes.<?>)+ (do loop Data.ProtoLens.defMessage) "OpenChannelRequest"+ buildMessage+ = \ _x+ -> (Data.Monoid.<>)+ (let+ _v+ = Lens.Family2.view (Data.ProtoLens.Field.field @"satPerVbyte") _x+ in+ if (Prelude.==) _v Data.ProtoLens.fieldDefault then+ Data.Monoid.mempty+ else+ (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 8)+ (Data.ProtoLens.Encoding.Bytes.putVarInt _v))+ ((Data.Monoid.<>)+ (let+ _v+ = Lens.Family2.view (Data.ProtoLens.Field.field @"nodePubkey") _x+ in+ if (Prelude.==) _v Data.ProtoLens.fieldDefault then+ Data.Monoid.mempty+ else+ (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 18)+ ((\ bs+ -> (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt+ (Prelude.fromIntegral (Data.ByteString.length bs)))+ (Data.ProtoLens.Encoding.Bytes.putBytes bs))+ _v))+ ((Data.Monoid.<>)+ (let+ _v+ = Lens.Family2.view+ (Data.ProtoLens.Field.field @"nodePubkeyString") _x+ in+ if (Prelude.==) _v Data.ProtoLens.fieldDefault then+ Data.Monoid.mempty+ else+ (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 26)+ ((Prelude..)+ (\ bs+ -> (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt+ (Prelude.fromIntegral (Data.ByteString.length bs)))+ (Data.ProtoLens.Encoding.Bytes.putBytes bs))+ Data.Text.Encoding.encodeUtf8 _v))+ ((Data.Monoid.<>)+ (let+ _v+ = Lens.Family2.view+ (Data.ProtoLens.Field.field @"localFundingAmount") _x+ in+ if (Prelude.==) _v Data.ProtoLens.fieldDefault then+ Data.Monoid.mempty+ else+ (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 32)+ ((Prelude..)+ Data.ProtoLens.Encoding.Bytes.putVarInt Prelude.fromIntegral _v))+ ((Data.Monoid.<>)+ (let+ _v = Lens.Family2.view (Data.ProtoLens.Field.field @"pushSat") _x+ in+ if (Prelude.==) _v Data.ProtoLens.fieldDefault then+ Data.Monoid.mempty+ else+ (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 40)+ ((Prelude..)+ Data.ProtoLens.Encoding.Bytes.putVarInt Prelude.fromIntegral+ _v))+ ((Data.Monoid.<>)+ (let+ _v+ = Lens.Family2.view (Data.ProtoLens.Field.field @"targetConf") _x+ in+ if (Prelude.==) _v Data.ProtoLens.fieldDefault then+ Data.Monoid.mempty+ else+ (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 48)+ ((Prelude..)+ Data.ProtoLens.Encoding.Bytes.putVarInt Prelude.fromIntegral+ _v))+ ((Data.Monoid.<>)+ (let+ _v+ = Lens.Family2.view+ (Data.ProtoLens.Field.field @"satPerByte") _x+ in+ if (Prelude.==) _v Data.ProtoLens.fieldDefault then+ Data.Monoid.mempty+ else+ (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 56)+ ((Prelude..)+ Data.ProtoLens.Encoding.Bytes.putVarInt+ Prelude.fromIntegral _v))+ ((Data.Monoid.<>)+ (let+ _v+ = Lens.Family2.view+ (Data.ProtoLens.Field.field @"private") _x+ in+ if (Prelude.==) _v Data.ProtoLens.fieldDefault then+ Data.Monoid.mempty+ else+ (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 64)+ ((Prelude..)+ Data.ProtoLens.Encoding.Bytes.putVarInt+ (\ b -> if b then 1 else 0) _v))+ ((Data.Monoid.<>)+ (let+ _v+ = Lens.Family2.view+ (Data.ProtoLens.Field.field @"minHtlcMsat") _x+ in+ if (Prelude.==) _v Data.ProtoLens.fieldDefault then+ Data.Monoid.mempty+ else+ (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 72)+ ((Prelude..)+ Data.ProtoLens.Encoding.Bytes.putVarInt+ Prelude.fromIntegral _v))+ ((Data.Monoid.<>)+ (let+ _v+ = Lens.Family2.view+ (Data.ProtoLens.Field.field @"remoteCsvDelay") _x+ in+ if (Prelude.==) _v Data.ProtoLens.fieldDefault then+ Data.Monoid.mempty+ else+ (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 80)+ ((Prelude..)+ Data.ProtoLens.Encoding.Bytes.putVarInt+ Prelude.fromIntegral _v))+ ((Data.Monoid.<>)+ (let+ _v+ = Lens.Family2.view+ (Data.ProtoLens.Field.field @"minConfs") _x+ in+ if (Prelude.==) _v Data.ProtoLens.fieldDefault then+ Data.Monoid.mempty+ else+ (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 88)+ ((Prelude..)+ Data.ProtoLens.Encoding.Bytes.putVarInt+ Prelude.fromIntegral _v))+ ((Data.Monoid.<>)+ (let+ _v+ = Lens.Family2.view+ (Data.ProtoLens.Field.field+ @"spendUnconfirmed")+ _x+ in+ if (Prelude.==) _v Data.ProtoLens.fieldDefault then+ Data.Monoid.mempty+ else+ (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 96)+ ((Prelude..)+ Data.ProtoLens.Encoding.Bytes.putVarInt+ (\ b -> if b then 1 else 0) _v))+ ((Data.Monoid.<>)+ (let+ _v+ = Lens.Family2.view+ (Data.ProtoLens.Field.field+ @"closeAddress")+ _x+ in+ if (Prelude.==)+ _v Data.ProtoLens.fieldDefault then+ Data.Monoid.mempty+ else+ (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt+ 106)+ ((Prelude..)+ (\ bs+ -> (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt+ (Prelude.fromIntegral+ (Data.ByteString.length+ bs)))+ (Data.ProtoLens.Encoding.Bytes.putBytes+ bs))+ Data.Text.Encoding.encodeUtf8 _v))+ ((Data.Monoid.<>)+ (case+ Lens.Family2.view+ (Data.ProtoLens.Field.field+ @"maybe'fundingShim")+ _x+ of+ Prelude.Nothing -> Data.Monoid.mempty+ (Prelude.Just _v)+ -> (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt+ 114)+ ((Prelude..)+ (\ bs+ -> (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt+ (Prelude.fromIntegral+ (Data.ByteString.length+ bs)))+ (Data.ProtoLens.Encoding.Bytes.putBytes+ bs))+ Data.ProtoLens.encodeMessage _v))+ ((Data.Monoid.<>)+ (let+ _v+ = Lens.Family2.view+ (Data.ProtoLens.Field.field+ @"remoteMaxValueInFlightMsat")+ _x+ in+ if (Prelude.==)+ _v Data.ProtoLens.fieldDefault then+ Data.Monoid.mempty+ else+ (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt+ 120)+ (Data.ProtoLens.Encoding.Bytes.putVarInt+ _v))+ ((Data.Monoid.<>)+ (let+ _v+ = Lens.Family2.view+ (Data.ProtoLens.Field.field+ @"remoteMaxHtlcs")+ _x+ in+ if (Prelude.==)+ _v+ Data.ProtoLens.fieldDefault then+ Data.Monoid.mempty+ else+ (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt+ 128)+ ((Prelude..)+ Data.ProtoLens.Encoding.Bytes.putVarInt+ Prelude.fromIntegral _v))+ ((Data.Monoid.<>)+ (let+ _v+ = Lens.Family2.view+ (Data.ProtoLens.Field.field+ @"maxLocalCsv")+ _x+ in+ if (Prelude.==)+ _v+ Data.ProtoLens.fieldDefault then+ Data.Monoid.mempty+ else+ (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt+ 136)+ ((Prelude..)+ Data.ProtoLens.Encoding.Bytes.putVarInt+ Prelude.fromIntegral _v))+ ((Data.Monoid.<>)+ (let+ _v+ = Lens.Family2.view+ (Data.ProtoLens.Field.field+ @"commitmentType")+ _x+ in+ if (Prelude.==)+ _v+ Data.ProtoLens.fieldDefault then+ Data.Monoid.mempty+ else+ (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt+ 144)+ ((Prelude..)+ ((Prelude..)+ Data.ProtoLens.Encoding.Bytes.putVarInt+ Prelude.fromIntegral)+ Prelude.fromEnum _v))+ (Data.ProtoLens.Encoding.Wire.buildFieldSet+ (Lens.Family2.view+ Data.ProtoLens.unknownFields+ _x)))))))))))))))))))+instance Control.DeepSeq.NFData OpenChannelRequest where+ rnf+ = \ x__+ -> Control.DeepSeq.deepseq+ (_OpenChannelRequest'_unknownFields x__)+ (Control.DeepSeq.deepseq+ (_OpenChannelRequest'satPerVbyte x__)+ (Control.DeepSeq.deepseq+ (_OpenChannelRequest'nodePubkey x__)+ (Control.DeepSeq.deepseq+ (_OpenChannelRequest'nodePubkeyString x__)+ (Control.DeepSeq.deepseq+ (_OpenChannelRequest'localFundingAmount x__)+ (Control.DeepSeq.deepseq+ (_OpenChannelRequest'pushSat x__)+ (Control.DeepSeq.deepseq+ (_OpenChannelRequest'targetConf x__)+ (Control.DeepSeq.deepseq+ (_OpenChannelRequest'satPerByte x__)+ (Control.DeepSeq.deepseq+ (_OpenChannelRequest'private x__)+ (Control.DeepSeq.deepseq+ (_OpenChannelRequest'minHtlcMsat x__)+ (Control.DeepSeq.deepseq+ (_OpenChannelRequest'remoteCsvDelay x__)+ (Control.DeepSeq.deepseq+ (_OpenChannelRequest'minConfs x__)+ (Control.DeepSeq.deepseq+ (_OpenChannelRequest'spendUnconfirmed x__)+ (Control.DeepSeq.deepseq+ (_OpenChannelRequest'closeAddress x__)+ (Control.DeepSeq.deepseq+ (_OpenChannelRequest'fundingShim x__)+ (Control.DeepSeq.deepseq+ (_OpenChannelRequest'remoteMaxValueInFlightMsat+ x__)+ (Control.DeepSeq.deepseq+ (_OpenChannelRequest'remoteMaxHtlcs+ x__)+ (Control.DeepSeq.deepseq+ (_OpenChannelRequest'maxLocalCsv+ x__)+ (Control.DeepSeq.deepseq+ (_OpenChannelRequest'commitmentType+ x__)+ ()))))))))))))))))))+{- | Fields :+ + * 'Proto.Lightning_Fields.pendingChanId' @:: Lens' OpenStatusUpdate Data.ByteString.ByteString@+ * 'Proto.Lightning_Fields.maybe'update' @:: Lens' OpenStatusUpdate (Prelude.Maybe OpenStatusUpdate'Update)@+ * 'Proto.Lightning_Fields.maybe'chanPending' @:: Lens' OpenStatusUpdate (Prelude.Maybe Proto.Lnrpc.Ln0.PendingUpdate)@+ * 'Proto.Lightning_Fields.chanPending' @:: Lens' OpenStatusUpdate Proto.Lnrpc.Ln0.PendingUpdate@+ * 'Proto.Lightning_Fields.maybe'chanOpen' @:: Lens' OpenStatusUpdate (Prelude.Maybe ChannelOpenUpdate)@+ * 'Proto.Lightning_Fields.chanOpen' @:: Lens' OpenStatusUpdate ChannelOpenUpdate@+ * 'Proto.Lightning_Fields.maybe'psbtFund' @:: Lens' OpenStatusUpdate (Prelude.Maybe ReadyForPsbtFunding)@+ * 'Proto.Lightning_Fields.psbtFund' @:: Lens' OpenStatusUpdate ReadyForPsbtFunding@ -}+data OpenStatusUpdate+ = OpenStatusUpdate'_constructor {_OpenStatusUpdate'pendingChanId :: !Data.ByteString.ByteString,+ _OpenStatusUpdate'update :: !(Prelude.Maybe OpenStatusUpdate'Update),+ _OpenStatusUpdate'_unknownFields :: !Data.ProtoLens.FieldSet}+ deriving stock (Prelude.Eq, Prelude.Ord, GHC.Generics.Generic)+instance Prelude.Show OpenStatusUpdate where+ showsPrec _ __x __s+ = Prelude.showChar+ '{'+ (Prelude.showString+ (Data.ProtoLens.showMessageShort __x) (Prelude.showChar '}' __s))+instance Text.PrettyPrint.GenericPretty.Out OpenStatusUpdate+data OpenStatusUpdate'Update+ = OpenStatusUpdate'ChanPending !Proto.Lnrpc.Ln0.PendingUpdate |+ OpenStatusUpdate'ChanOpen !ChannelOpenUpdate |+ OpenStatusUpdate'PsbtFund !ReadyForPsbtFunding+ deriving stock (Prelude.Show,+ Prelude.Eq,+ Prelude.Ord,+ GHC.Generics.Generic)+instance Text.PrettyPrint.GenericPretty.Out OpenStatusUpdate'Update+instance Data.ProtoLens.Field.HasField OpenStatusUpdate "pendingChanId" Data.ByteString.ByteString where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _OpenStatusUpdate'pendingChanId+ (\ x__ y__ -> x__ {_OpenStatusUpdate'pendingChanId = y__}))+ Prelude.id+instance Data.ProtoLens.Field.HasField OpenStatusUpdate "maybe'update" (Prelude.Maybe OpenStatusUpdate'Update) where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _OpenStatusUpdate'update+ (\ x__ y__ -> x__ {_OpenStatusUpdate'update = y__}))+ Prelude.id+instance Data.ProtoLens.Field.HasField OpenStatusUpdate "maybe'chanPending" (Prelude.Maybe Proto.Lnrpc.Ln0.PendingUpdate) where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _OpenStatusUpdate'update+ (\ x__ y__ -> x__ {_OpenStatusUpdate'update = y__}))+ (Lens.Family2.Unchecked.lens+ (\ x__+ -> case x__ of+ (Prelude.Just (OpenStatusUpdate'ChanPending x__val))+ -> Prelude.Just x__val+ _otherwise -> Prelude.Nothing)+ (\ _ y__ -> Prelude.fmap OpenStatusUpdate'ChanPending y__))+instance Data.ProtoLens.Field.HasField OpenStatusUpdate "chanPending" Proto.Lnrpc.Ln0.PendingUpdate where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _OpenStatusUpdate'update+ (\ x__ y__ -> x__ {_OpenStatusUpdate'update = y__}))+ ((Prelude..)+ (Lens.Family2.Unchecked.lens+ (\ x__+ -> case x__ of+ (Prelude.Just (OpenStatusUpdate'ChanPending x__val))+ -> Prelude.Just x__val+ _otherwise -> Prelude.Nothing)+ (\ _ y__ -> Prelude.fmap OpenStatusUpdate'ChanPending y__))+ (Data.ProtoLens.maybeLens Data.ProtoLens.defMessage))+instance Data.ProtoLens.Field.HasField OpenStatusUpdate "maybe'chanOpen" (Prelude.Maybe ChannelOpenUpdate) where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _OpenStatusUpdate'update+ (\ x__ y__ -> x__ {_OpenStatusUpdate'update = y__}))+ (Lens.Family2.Unchecked.lens+ (\ x__+ -> case x__ of+ (Prelude.Just (OpenStatusUpdate'ChanOpen x__val))+ -> Prelude.Just x__val+ _otherwise -> Prelude.Nothing)+ (\ _ y__ -> Prelude.fmap OpenStatusUpdate'ChanOpen y__))+instance Data.ProtoLens.Field.HasField OpenStatusUpdate "chanOpen" ChannelOpenUpdate where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _OpenStatusUpdate'update+ (\ x__ y__ -> x__ {_OpenStatusUpdate'update = y__}))+ ((Prelude..)+ (Lens.Family2.Unchecked.lens+ (\ x__+ -> case x__ of+ (Prelude.Just (OpenStatusUpdate'ChanOpen x__val))+ -> Prelude.Just x__val+ _otherwise -> Prelude.Nothing)+ (\ _ y__ -> Prelude.fmap OpenStatusUpdate'ChanOpen y__))+ (Data.ProtoLens.maybeLens Data.ProtoLens.defMessage))+instance Data.ProtoLens.Field.HasField OpenStatusUpdate "maybe'psbtFund" (Prelude.Maybe ReadyForPsbtFunding) where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _OpenStatusUpdate'update+ (\ x__ y__ -> x__ {_OpenStatusUpdate'update = y__}))+ (Lens.Family2.Unchecked.lens+ (\ x__+ -> case x__ of+ (Prelude.Just (OpenStatusUpdate'PsbtFund x__val))+ -> Prelude.Just x__val+ _otherwise -> Prelude.Nothing)+ (\ _ y__ -> Prelude.fmap OpenStatusUpdate'PsbtFund y__))+instance Data.ProtoLens.Field.HasField OpenStatusUpdate "psbtFund" ReadyForPsbtFunding where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _OpenStatusUpdate'update+ (\ x__ y__ -> x__ {_OpenStatusUpdate'update = y__}))+ ((Prelude..)+ (Lens.Family2.Unchecked.lens+ (\ x__+ -> case x__ of+ (Prelude.Just (OpenStatusUpdate'PsbtFund x__val))+ -> Prelude.Just x__val+ _otherwise -> Prelude.Nothing)+ (\ _ y__ -> Prelude.fmap OpenStatusUpdate'PsbtFund y__))+ (Data.ProtoLens.maybeLens Data.ProtoLens.defMessage))+instance Data.ProtoLens.Message OpenStatusUpdate where+ messageName _ = Data.Text.pack "lnrpc.OpenStatusUpdate"+ packedMessageDescriptor _+ = "\n\+ \\DLEOpenStatusUpdate\DC29\n\+ \\fchan_pending\CAN\SOH \SOH(\v2\DC4.lnrpc.PendingUpdateH\NULR\vchanPending\DC27\n\+ \\tchan_open\CAN\ETX \SOH(\v2\CAN.lnrpc.ChannelOpenUpdateH\NULR\bchanOpen\DC29\n\+ \\tpsbt_fund\CAN\ENQ \SOH(\v2\SUB.lnrpc.ReadyForPsbtFundingH\NULR\bpsbtFund\DC2&\n\+ \\SIpending_chan_id\CAN\EOT \SOH(\fR\rpendingChanIdB\b\n\+ \\ACKupdate"+ packedFileDescriptor _ = packedFileDescriptor+ fieldsByTag+ = let+ pendingChanId__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "pending_chan_id"+ (Data.ProtoLens.ScalarField Data.ProtoLens.BytesField ::+ Data.ProtoLens.FieldTypeDescriptor Data.ByteString.ByteString)+ (Data.ProtoLens.PlainField+ Data.ProtoLens.Optional+ (Data.ProtoLens.Field.field @"pendingChanId")) ::+ Data.ProtoLens.FieldDescriptor OpenStatusUpdate+ chanPending__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "chan_pending"+ (Data.ProtoLens.MessageField Data.ProtoLens.MessageType ::+ Data.ProtoLens.FieldTypeDescriptor Proto.Lnrpc.Ln0.PendingUpdate)+ (Data.ProtoLens.OptionalField+ (Data.ProtoLens.Field.field @"maybe'chanPending")) ::+ Data.ProtoLens.FieldDescriptor OpenStatusUpdate+ chanOpen__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "chan_open"+ (Data.ProtoLens.MessageField Data.ProtoLens.MessageType ::+ Data.ProtoLens.FieldTypeDescriptor ChannelOpenUpdate)+ (Data.ProtoLens.OptionalField+ (Data.ProtoLens.Field.field @"maybe'chanOpen")) ::+ Data.ProtoLens.FieldDescriptor OpenStatusUpdate+ psbtFund__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "psbt_fund"+ (Data.ProtoLens.MessageField Data.ProtoLens.MessageType ::+ Data.ProtoLens.FieldTypeDescriptor ReadyForPsbtFunding)+ (Data.ProtoLens.OptionalField+ (Data.ProtoLens.Field.field @"maybe'psbtFund")) ::+ Data.ProtoLens.FieldDescriptor OpenStatusUpdate+ in+ Data.Map.fromList+ [(Data.ProtoLens.Tag 4, pendingChanId__field_descriptor),+ (Data.ProtoLens.Tag 1, chanPending__field_descriptor),+ (Data.ProtoLens.Tag 3, chanOpen__field_descriptor),+ (Data.ProtoLens.Tag 5, psbtFund__field_descriptor)]+ unknownFields+ = Lens.Family2.Unchecked.lens+ _OpenStatusUpdate'_unknownFields+ (\ x__ y__ -> x__ {_OpenStatusUpdate'_unknownFields = y__})+ defMessage+ = OpenStatusUpdate'_constructor+ {_OpenStatusUpdate'pendingChanId = Data.ProtoLens.fieldDefault,+ _OpenStatusUpdate'update = Prelude.Nothing,+ _OpenStatusUpdate'_unknownFields = []}+ parseMessage+ = let+ loop ::+ OpenStatusUpdate+ -> Data.ProtoLens.Encoding.Bytes.Parser OpenStatusUpdate+ loop x+ = do end <- Data.ProtoLens.Encoding.Bytes.atEnd+ if end then+ do (let missing = []+ in+ if Prelude.null missing then+ Prelude.return ()+ else+ Prelude.fail+ ((Prelude.++)+ "Missing required fields: "+ (Prelude.show (missing :: [Prelude.String]))))+ Prelude.return+ (Lens.Family2.over+ Data.ProtoLens.unknownFields (\ !t -> Prelude.reverse t) x)+ else+ do tag <- Data.ProtoLens.Encoding.Bytes.getVarInt+ case tag of+ 34+ -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (do len <- Data.ProtoLens.Encoding.Bytes.getVarInt+ Data.ProtoLens.Encoding.Bytes.getBytes+ (Prelude.fromIntegral len))+ "pending_chan_id"+ loop+ (Lens.Family2.set+ (Data.ProtoLens.Field.field @"pendingChanId") y x)+ 10+ -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (do len <- Data.ProtoLens.Encoding.Bytes.getVarInt+ Data.ProtoLens.Encoding.Bytes.isolate+ (Prelude.fromIntegral len) Data.ProtoLens.parseMessage)+ "chan_pending"+ loop+ (Lens.Family2.set (Data.ProtoLens.Field.field @"chanPending") y x)+ 26+ -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (do len <- Data.ProtoLens.Encoding.Bytes.getVarInt+ Data.ProtoLens.Encoding.Bytes.isolate+ (Prelude.fromIntegral len) Data.ProtoLens.parseMessage)+ "chan_open"+ loop+ (Lens.Family2.set (Data.ProtoLens.Field.field @"chanOpen") y x)+ 42+ -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (do len <- Data.ProtoLens.Encoding.Bytes.getVarInt+ Data.ProtoLens.Encoding.Bytes.isolate+ (Prelude.fromIntegral len) Data.ProtoLens.parseMessage)+ "psbt_fund"+ loop+ (Lens.Family2.set (Data.ProtoLens.Field.field @"psbtFund") y x)+ wire+ -> do !y <- Data.ProtoLens.Encoding.Wire.parseTaggedValueFromWire+ wire+ loop+ (Lens.Family2.over+ Data.ProtoLens.unknownFields (\ !t -> (:) y t) x)+ in+ (Data.ProtoLens.Encoding.Bytes.<?>)+ (do loop Data.ProtoLens.defMessage) "OpenStatusUpdate"+ buildMessage+ = \ _x+ -> (Data.Monoid.<>)+ (let+ _v+ = Lens.Family2.view+ (Data.ProtoLens.Field.field @"pendingChanId") _x+ in+ if (Prelude.==) _v Data.ProtoLens.fieldDefault then+ Data.Monoid.mempty+ else+ (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 34)+ ((\ bs+ -> (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt+ (Prelude.fromIntegral (Data.ByteString.length bs)))+ (Data.ProtoLens.Encoding.Bytes.putBytes bs))+ _v))+ ((Data.Monoid.<>)+ (case+ Lens.Family2.view (Data.ProtoLens.Field.field @"maybe'update") _x+ of+ Prelude.Nothing -> Data.Monoid.mempty+ (Prelude.Just (OpenStatusUpdate'ChanPending v))+ -> (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 10)+ ((Prelude..)+ (\ bs+ -> (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt+ (Prelude.fromIntegral (Data.ByteString.length bs)))+ (Data.ProtoLens.Encoding.Bytes.putBytes bs))+ Data.ProtoLens.encodeMessage v)+ (Prelude.Just (OpenStatusUpdate'ChanOpen v))+ -> (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 26)+ ((Prelude..)+ (\ bs+ -> (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt+ (Prelude.fromIntegral (Data.ByteString.length bs)))+ (Data.ProtoLens.Encoding.Bytes.putBytes bs))+ Data.ProtoLens.encodeMessage v)+ (Prelude.Just (OpenStatusUpdate'PsbtFund v))+ -> (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 42)+ ((Prelude..)+ (\ bs+ -> (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt+ (Prelude.fromIntegral (Data.ByteString.length bs)))+ (Data.ProtoLens.Encoding.Bytes.putBytes bs))+ Data.ProtoLens.encodeMessage v))+ (Data.ProtoLens.Encoding.Wire.buildFieldSet+ (Lens.Family2.view Data.ProtoLens.unknownFields _x)))+instance Control.DeepSeq.NFData OpenStatusUpdate where+ rnf+ = \ x__+ -> Control.DeepSeq.deepseq+ (_OpenStatusUpdate'_unknownFields x__)+ (Control.DeepSeq.deepseq+ (_OpenStatusUpdate'pendingChanId x__)+ (Control.DeepSeq.deepseq (_OpenStatusUpdate'update x__) ()))+instance Control.DeepSeq.NFData OpenStatusUpdate'Update where+ rnf (OpenStatusUpdate'ChanPending x__) = Control.DeepSeq.rnf x__+ rnf (OpenStatusUpdate'ChanOpen x__) = Control.DeepSeq.rnf x__+ rnf (OpenStatusUpdate'PsbtFund x__) = Control.DeepSeq.rnf x__+_OpenStatusUpdate'ChanPending ::+ Data.ProtoLens.Prism.Prism' OpenStatusUpdate'Update Proto.Lnrpc.Ln0.PendingUpdate+_OpenStatusUpdate'ChanPending+ = Data.ProtoLens.Prism.prism'+ OpenStatusUpdate'ChanPending+ (\ p__+ -> case p__ of+ (OpenStatusUpdate'ChanPending p__val) -> Prelude.Just p__val+ _otherwise -> Prelude.Nothing)+_OpenStatusUpdate'ChanOpen ::+ Data.ProtoLens.Prism.Prism' OpenStatusUpdate'Update ChannelOpenUpdate+_OpenStatusUpdate'ChanOpen+ = Data.ProtoLens.Prism.prism'+ OpenStatusUpdate'ChanOpen+ (\ p__+ -> case p__ of+ (OpenStatusUpdate'ChanOpen p__val) -> Prelude.Just p__val+ _otherwise -> Prelude.Nothing)+_OpenStatusUpdate'PsbtFund ::+ Data.ProtoLens.Prism.Prism' OpenStatusUpdate'Update ReadyForPsbtFunding+_OpenStatusUpdate'PsbtFund+ = Data.ProtoLens.Prism.prism'+ OpenStatusUpdate'PsbtFund+ (\ p__+ -> case p__ of+ (OpenStatusUpdate'PsbtFund p__val) -> Prelude.Just p__val+ _otherwise -> Prelude.Nothing)+{- | Fields :+ + * 'Proto.Lightning_Fields.pubKey' @:: Lens' Peer Data.Text.Text@+ * 'Proto.Lightning_Fields.address' @:: Lens' Peer Data.Text.Text@+ * 'Proto.Lightning_Fields.bytesSent' @:: Lens' Peer Data.Word.Word64@+ * 'Proto.Lightning_Fields.bytesRecv' @:: Lens' Peer Data.Word.Word64@+ * 'Proto.Lightning_Fields.satSent' @:: Lens' Peer Data.Int.Int64@+ * 'Proto.Lightning_Fields.satRecv' @:: Lens' Peer Data.Int.Int64@+ * 'Proto.Lightning_Fields.inbound' @:: Lens' Peer Prelude.Bool@+ * 'Proto.Lightning_Fields.pingTime' @:: Lens' Peer Data.Int.Int64@+ * 'Proto.Lightning_Fields.syncType' @:: Lens' Peer Peer'SyncType@+ * 'Proto.Lightning_Fields.features' @:: Lens' Peer (Data.Map.Map Data.Word.Word32 Proto.Lnrpc.Ln0.Feature)@+ * 'Proto.Lightning_Fields.errors' @:: Lens' Peer [TimestampedError]@+ * 'Proto.Lightning_Fields.vec'errors' @:: Lens' Peer (Data.Vector.Vector TimestampedError)@+ * 'Proto.Lightning_Fields.flapCount' @:: Lens' Peer Data.Int.Int32@+ * 'Proto.Lightning_Fields.lastFlapNs' @:: Lens' Peer Data.Int.Int64@+ * 'Proto.Lightning_Fields.lastPingPayload' @:: Lens' Peer Data.ByteString.ByteString@ -}+data Peer+ = Peer'_constructor {_Peer'pubKey :: !Data.Text.Text,+ _Peer'address :: !Data.Text.Text,+ _Peer'bytesSent :: !Data.Word.Word64,+ _Peer'bytesRecv :: !Data.Word.Word64,+ _Peer'satSent :: !Data.Int.Int64,+ _Peer'satRecv :: !Data.Int.Int64,+ _Peer'inbound :: !Prelude.Bool,+ _Peer'pingTime :: !Data.Int.Int64,+ _Peer'syncType :: !Peer'SyncType,+ _Peer'features :: !(Data.Map.Map Data.Word.Word32 Proto.Lnrpc.Ln0.Feature),+ _Peer'errors :: !(Data.Vector.Vector TimestampedError),+ _Peer'flapCount :: !Data.Int.Int32,+ _Peer'lastFlapNs :: !Data.Int.Int64,+ _Peer'lastPingPayload :: !Data.ByteString.ByteString,+ _Peer'_unknownFields :: !Data.ProtoLens.FieldSet}+ deriving stock (Prelude.Eq, Prelude.Ord, GHC.Generics.Generic)+instance Prelude.Show Peer where+ showsPrec _ __x __s+ = Prelude.showChar+ '{'+ (Prelude.showString+ (Data.ProtoLens.showMessageShort __x) (Prelude.showChar '}' __s))+instance Text.PrettyPrint.GenericPretty.Out Peer+instance Data.ProtoLens.Field.HasField Peer "pubKey" Data.Text.Text where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _Peer'pubKey (\ x__ y__ -> x__ {_Peer'pubKey = y__}))+ Prelude.id+instance Data.ProtoLens.Field.HasField Peer "address" Data.Text.Text where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _Peer'address (\ x__ y__ -> x__ {_Peer'address = y__}))+ Prelude.id+instance Data.ProtoLens.Field.HasField Peer "bytesSent" Data.Word.Word64 where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _Peer'bytesSent (\ x__ y__ -> x__ {_Peer'bytesSent = y__}))+ Prelude.id+instance Data.ProtoLens.Field.HasField Peer "bytesRecv" Data.Word.Word64 where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _Peer'bytesRecv (\ x__ y__ -> x__ {_Peer'bytesRecv = y__}))+ Prelude.id+instance Data.ProtoLens.Field.HasField Peer "satSent" Data.Int.Int64 where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _Peer'satSent (\ x__ y__ -> x__ {_Peer'satSent = y__}))+ Prelude.id+instance Data.ProtoLens.Field.HasField Peer "satRecv" Data.Int.Int64 where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _Peer'satRecv (\ x__ y__ -> x__ {_Peer'satRecv = y__}))+ Prelude.id+instance Data.ProtoLens.Field.HasField Peer "inbound" Prelude.Bool where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _Peer'inbound (\ x__ y__ -> x__ {_Peer'inbound = y__}))+ Prelude.id+instance Data.ProtoLens.Field.HasField Peer "pingTime" Data.Int.Int64 where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _Peer'pingTime (\ x__ y__ -> x__ {_Peer'pingTime = y__}))+ Prelude.id+instance Data.ProtoLens.Field.HasField Peer "syncType" Peer'SyncType where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _Peer'syncType (\ x__ y__ -> x__ {_Peer'syncType = y__}))+ Prelude.id+instance Data.ProtoLens.Field.HasField Peer "features" (Data.Map.Map Data.Word.Word32 Proto.Lnrpc.Ln0.Feature) where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _Peer'features (\ x__ y__ -> x__ {_Peer'features = y__}))+ Prelude.id+instance Data.ProtoLens.Field.HasField Peer "errors" [TimestampedError] where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _Peer'errors (\ x__ y__ -> x__ {_Peer'errors = y__}))+ (Lens.Family2.Unchecked.lens+ Data.Vector.Generic.toList+ (\ _ y__ -> Data.Vector.Generic.fromList y__))+instance Data.ProtoLens.Field.HasField Peer "vec'errors" (Data.Vector.Vector TimestampedError) where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _Peer'errors (\ x__ y__ -> x__ {_Peer'errors = y__}))+ Prelude.id+instance Data.ProtoLens.Field.HasField Peer "flapCount" Data.Int.Int32 where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _Peer'flapCount (\ x__ y__ -> x__ {_Peer'flapCount = y__}))+ Prelude.id+instance Data.ProtoLens.Field.HasField Peer "lastFlapNs" Data.Int.Int64 where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _Peer'lastFlapNs (\ x__ y__ -> x__ {_Peer'lastFlapNs = y__}))+ Prelude.id+instance Data.ProtoLens.Field.HasField Peer "lastPingPayload" Data.ByteString.ByteString where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _Peer'lastPingPayload+ (\ x__ y__ -> x__ {_Peer'lastPingPayload = y__}))+ Prelude.id+instance Data.ProtoLens.Message Peer where+ messageName _ = Data.Text.pack "lnrpc.Peer"+ packedMessageDescriptor _+ = "\n\+ \\EOTPeer\DC2\ETB\n\+ \\apub_key\CAN\SOH \SOH(\tR\ACKpubKey\DC2\CAN\n\+ \\aaddress\CAN\ETX \SOH(\tR\aaddress\DC2\GS\n\+ \\n\+ \bytes_sent\CAN\EOT \SOH(\EOTR\tbytesSent\DC2\GS\n\+ \\n\+ \bytes_recv\CAN\ENQ \SOH(\EOTR\tbytesRecv\DC2\EM\n\+ \\bsat_sent\CAN\ACK \SOH(\ETXR\asatSent\DC2\EM\n\+ \\bsat_recv\CAN\a \SOH(\ETXR\asatRecv\DC2\CAN\n\+ \\ainbound\CAN\b \SOH(\bR\ainbound\DC2\ESC\n\+ \\tping_time\CAN\t \SOH(\ETXR\bpingTime\DC21\n\+ \\tsync_type\CAN\n\+ \ \SOH(\SO2\DC4.lnrpc.Peer.SyncTypeR\bsyncType\DC25\n\+ \\bfeatures\CAN\v \ETX(\v2\EM.lnrpc.Peer.FeaturesEntryR\bfeatures\DC2/\n\+ \\ACKerrors\CAN\f \ETX(\v2\ETB.lnrpc.TimestampedErrorR\ACKerrors\DC2\GS\n\+ \\n\+ \flap_count\CAN\r \SOH(\ENQR\tflapCount\DC2 \n\+ \\flast_flap_ns\CAN\SO \SOH(\ETXR\n\+ \lastFlapNs\DC2*\n\+ \\DC1last_ping_payload\CAN\SI \SOH(\fR\SIlastPingPayload\SUBK\n\+ \\rFeaturesEntry\DC2\DLE\n\+ \\ETXkey\CAN\SOH \SOH(\rR\ETXkey\DC2$\n\+ \\ENQvalue\CAN\STX \SOH(\v2\SO.lnrpc.FeatureR\ENQvalue:\STX8\SOH\"P\n\+ \\bSyncType\DC2\DLE\n\+ \\fUNKNOWN_SYNC\DLE\NUL\DC2\SI\n\+ \\vACTIVE_SYNC\DLE\SOH\DC2\DLE\n\+ \\fPASSIVE_SYNC\DLE\STX\DC2\SI\n\+ \\vPINNED_SYNC\DLE\ETX"+ packedFileDescriptor _ = packedFileDescriptor+ fieldsByTag+ = let+ pubKey__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "pub_key"+ (Data.ProtoLens.ScalarField Data.ProtoLens.StringField ::+ Data.ProtoLens.FieldTypeDescriptor Data.Text.Text)+ (Data.ProtoLens.PlainField+ Data.ProtoLens.Optional (Data.ProtoLens.Field.field @"pubKey")) ::+ Data.ProtoLens.FieldDescriptor Peer+ address__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "address"+ (Data.ProtoLens.ScalarField Data.ProtoLens.StringField ::+ Data.ProtoLens.FieldTypeDescriptor Data.Text.Text)+ (Data.ProtoLens.PlainField+ Data.ProtoLens.Optional (Data.ProtoLens.Field.field @"address")) ::+ Data.ProtoLens.FieldDescriptor Peer+ bytesSent__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "bytes_sent"+ (Data.ProtoLens.ScalarField Data.ProtoLens.UInt64Field ::+ Data.ProtoLens.FieldTypeDescriptor Data.Word.Word64)+ (Data.ProtoLens.PlainField+ Data.ProtoLens.Optional+ (Data.ProtoLens.Field.field @"bytesSent")) ::+ Data.ProtoLens.FieldDescriptor Peer+ bytesRecv__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "bytes_recv"+ (Data.ProtoLens.ScalarField Data.ProtoLens.UInt64Field ::+ Data.ProtoLens.FieldTypeDescriptor Data.Word.Word64)+ (Data.ProtoLens.PlainField+ Data.ProtoLens.Optional+ (Data.ProtoLens.Field.field @"bytesRecv")) ::+ Data.ProtoLens.FieldDescriptor Peer+ satSent__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "sat_sent"+ (Data.ProtoLens.ScalarField Data.ProtoLens.Int64Field ::+ Data.ProtoLens.FieldTypeDescriptor Data.Int.Int64)+ (Data.ProtoLens.PlainField+ Data.ProtoLens.Optional (Data.ProtoLens.Field.field @"satSent")) ::+ Data.ProtoLens.FieldDescriptor Peer+ satRecv__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "sat_recv"+ (Data.ProtoLens.ScalarField Data.ProtoLens.Int64Field ::+ Data.ProtoLens.FieldTypeDescriptor Data.Int.Int64)+ (Data.ProtoLens.PlainField+ Data.ProtoLens.Optional (Data.ProtoLens.Field.field @"satRecv")) ::+ Data.ProtoLens.FieldDescriptor Peer+ inbound__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "inbound"+ (Data.ProtoLens.ScalarField Data.ProtoLens.BoolField ::+ Data.ProtoLens.FieldTypeDescriptor Prelude.Bool)+ (Data.ProtoLens.PlainField+ Data.ProtoLens.Optional (Data.ProtoLens.Field.field @"inbound")) ::+ Data.ProtoLens.FieldDescriptor Peer+ pingTime__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "ping_time"+ (Data.ProtoLens.ScalarField Data.ProtoLens.Int64Field ::+ Data.ProtoLens.FieldTypeDescriptor Data.Int.Int64)+ (Data.ProtoLens.PlainField+ Data.ProtoLens.Optional+ (Data.ProtoLens.Field.field @"pingTime")) ::+ Data.ProtoLens.FieldDescriptor Peer+ syncType__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "sync_type"+ (Data.ProtoLens.ScalarField Data.ProtoLens.EnumField ::+ Data.ProtoLens.FieldTypeDescriptor Peer'SyncType)+ (Data.ProtoLens.PlainField+ Data.ProtoLens.Optional+ (Data.ProtoLens.Field.field @"syncType")) ::+ Data.ProtoLens.FieldDescriptor Peer+ features__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "features"+ (Data.ProtoLens.MessageField Data.ProtoLens.MessageType ::+ Data.ProtoLens.FieldTypeDescriptor Peer'FeaturesEntry)+ (Data.ProtoLens.MapField+ (Data.ProtoLens.Field.field @"key")+ (Data.ProtoLens.Field.field @"value")+ (Data.ProtoLens.Field.field @"features")) ::+ Data.ProtoLens.FieldDescriptor Peer+ errors__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "errors"+ (Data.ProtoLens.MessageField Data.ProtoLens.MessageType ::+ Data.ProtoLens.FieldTypeDescriptor TimestampedError)+ (Data.ProtoLens.RepeatedField+ Data.ProtoLens.Unpacked (Data.ProtoLens.Field.field @"errors")) ::+ Data.ProtoLens.FieldDescriptor Peer+ flapCount__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "flap_count"+ (Data.ProtoLens.ScalarField Data.ProtoLens.Int32Field ::+ Data.ProtoLens.FieldTypeDescriptor Data.Int.Int32)+ (Data.ProtoLens.PlainField+ Data.ProtoLens.Optional+ (Data.ProtoLens.Field.field @"flapCount")) ::+ Data.ProtoLens.FieldDescriptor Peer+ lastFlapNs__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "last_flap_ns"+ (Data.ProtoLens.ScalarField Data.ProtoLens.Int64Field ::+ Data.ProtoLens.FieldTypeDescriptor Data.Int.Int64)+ (Data.ProtoLens.PlainField+ Data.ProtoLens.Optional+ (Data.ProtoLens.Field.field @"lastFlapNs")) ::+ Data.ProtoLens.FieldDescriptor Peer+ lastPingPayload__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "last_ping_payload"+ (Data.ProtoLens.ScalarField Data.ProtoLens.BytesField ::+ Data.ProtoLens.FieldTypeDescriptor Data.ByteString.ByteString)+ (Data.ProtoLens.PlainField+ Data.ProtoLens.Optional+ (Data.ProtoLens.Field.field @"lastPingPayload")) ::+ Data.ProtoLens.FieldDescriptor Peer+ in+ Data.Map.fromList+ [(Data.ProtoLens.Tag 1, pubKey__field_descriptor),+ (Data.ProtoLens.Tag 3, address__field_descriptor),+ (Data.ProtoLens.Tag 4, bytesSent__field_descriptor),+ (Data.ProtoLens.Tag 5, bytesRecv__field_descriptor),+ (Data.ProtoLens.Tag 6, satSent__field_descriptor),+ (Data.ProtoLens.Tag 7, satRecv__field_descriptor),+ (Data.ProtoLens.Tag 8, inbound__field_descriptor),+ (Data.ProtoLens.Tag 9, pingTime__field_descriptor),+ (Data.ProtoLens.Tag 10, syncType__field_descriptor),+ (Data.ProtoLens.Tag 11, features__field_descriptor),+ (Data.ProtoLens.Tag 12, errors__field_descriptor),+ (Data.ProtoLens.Tag 13, flapCount__field_descriptor),+ (Data.ProtoLens.Tag 14, lastFlapNs__field_descriptor),+ (Data.ProtoLens.Tag 15, lastPingPayload__field_descriptor)]+ unknownFields+ = Lens.Family2.Unchecked.lens+ _Peer'_unknownFields+ (\ x__ y__ -> x__ {_Peer'_unknownFields = y__})+ defMessage+ = Peer'_constructor+ {_Peer'pubKey = Data.ProtoLens.fieldDefault,+ _Peer'address = Data.ProtoLens.fieldDefault,+ _Peer'bytesSent = Data.ProtoLens.fieldDefault,+ _Peer'bytesRecv = Data.ProtoLens.fieldDefault,+ _Peer'satSent = Data.ProtoLens.fieldDefault,+ _Peer'satRecv = Data.ProtoLens.fieldDefault,+ _Peer'inbound = Data.ProtoLens.fieldDefault,+ _Peer'pingTime = Data.ProtoLens.fieldDefault,+ _Peer'syncType = Data.ProtoLens.fieldDefault,+ _Peer'features = Data.Map.empty,+ _Peer'errors = Data.Vector.Generic.empty,+ _Peer'flapCount = Data.ProtoLens.fieldDefault,+ _Peer'lastFlapNs = Data.ProtoLens.fieldDefault,+ _Peer'lastPingPayload = Data.ProtoLens.fieldDefault,+ _Peer'_unknownFields = []}+ parseMessage+ = let+ loop ::+ Peer+ -> Data.ProtoLens.Encoding.Growing.Growing Data.Vector.Vector Data.ProtoLens.Encoding.Growing.RealWorld TimestampedError+ -> Data.ProtoLens.Encoding.Bytes.Parser Peer+ loop x mutable'errors+ = do end <- Data.ProtoLens.Encoding.Bytes.atEnd+ if end then+ do frozen'errors <- Data.ProtoLens.Encoding.Parser.Unsafe.unsafeLiftIO+ (Data.ProtoLens.Encoding.Growing.unsafeFreeze+ mutable'errors)+ (let missing = []+ in+ if Prelude.null missing then+ Prelude.return ()+ else+ Prelude.fail+ ((Prelude.++)+ "Missing required fields: "+ (Prelude.show (missing :: [Prelude.String]))))+ Prelude.return+ (Lens.Family2.over+ Data.ProtoLens.unknownFields (\ !t -> Prelude.reverse t)+ (Lens.Family2.set+ (Data.ProtoLens.Field.field @"vec'errors") frozen'errors x))+ else+ do tag <- Data.ProtoLens.Encoding.Bytes.getVarInt+ case tag of+ 10+ -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (do value <- do len <- Data.ProtoLens.Encoding.Bytes.getVarInt+ Data.ProtoLens.Encoding.Bytes.getBytes+ (Prelude.fromIntegral len)+ Data.ProtoLens.Encoding.Bytes.runEither+ (case Data.Text.Encoding.decodeUtf8' value of+ (Prelude.Left err)+ -> Prelude.Left (Prelude.show err)+ (Prelude.Right r) -> Prelude.Right r))+ "pub_key"+ loop+ (Lens.Family2.set (Data.ProtoLens.Field.field @"pubKey") y x)+ mutable'errors+ 26+ -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (do value <- do len <- Data.ProtoLens.Encoding.Bytes.getVarInt+ Data.ProtoLens.Encoding.Bytes.getBytes+ (Prelude.fromIntegral len)+ Data.ProtoLens.Encoding.Bytes.runEither+ (case Data.Text.Encoding.decodeUtf8' value of+ (Prelude.Left err)+ -> Prelude.Left (Prelude.show err)+ (Prelude.Right r) -> Prelude.Right r))+ "address"+ loop+ (Lens.Family2.set (Data.ProtoLens.Field.field @"address") y x)+ mutable'errors+ 32+ -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ Data.ProtoLens.Encoding.Bytes.getVarInt "bytes_sent"+ loop+ (Lens.Family2.set (Data.ProtoLens.Field.field @"bytesSent") y x)+ mutable'errors+ 40+ -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ Data.ProtoLens.Encoding.Bytes.getVarInt "bytes_recv"+ loop+ (Lens.Family2.set (Data.ProtoLens.Field.field @"bytesRecv") y x)+ mutable'errors+ 48+ -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (Prelude.fmap+ Prelude.fromIntegral+ Data.ProtoLens.Encoding.Bytes.getVarInt)+ "sat_sent"+ loop+ (Lens.Family2.set (Data.ProtoLens.Field.field @"satSent") y x)+ mutable'errors+ 56+ -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (Prelude.fmap+ Prelude.fromIntegral+ Data.ProtoLens.Encoding.Bytes.getVarInt)+ "sat_recv"+ loop+ (Lens.Family2.set (Data.ProtoLens.Field.field @"satRecv") y x)+ mutable'errors+ 64+ -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (Prelude.fmap+ ((Prelude./=) 0) Data.ProtoLens.Encoding.Bytes.getVarInt)+ "inbound"+ loop+ (Lens.Family2.set (Data.ProtoLens.Field.field @"inbound") y x)+ mutable'errors+ 72+ -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (Prelude.fmap+ Prelude.fromIntegral+ Data.ProtoLens.Encoding.Bytes.getVarInt)+ "ping_time"+ loop+ (Lens.Family2.set (Data.ProtoLens.Field.field @"pingTime") y x)+ mutable'errors+ 80+ -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (Prelude.fmap+ Prelude.toEnum+ (Prelude.fmap+ Prelude.fromIntegral+ Data.ProtoLens.Encoding.Bytes.getVarInt))+ "sync_type"+ loop+ (Lens.Family2.set (Data.ProtoLens.Field.field @"syncType") y x)+ mutable'errors+ 90+ -> do !(entry :: Peer'FeaturesEntry) <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (do len <- Data.ProtoLens.Encoding.Bytes.getVarInt+ Data.ProtoLens.Encoding.Bytes.isolate+ (Prelude.fromIntegral len)+ Data.ProtoLens.parseMessage)+ "features"+ (let+ key = Lens.Family2.view (Data.ProtoLens.Field.field @"key") entry+ value+ = Lens.Family2.view (Data.ProtoLens.Field.field @"value") entry+ in+ loop+ (Lens.Family2.over+ (Data.ProtoLens.Field.field @"features")+ (\ !t -> Data.Map.insert key value t) x)+ mutable'errors)+ 98+ -> do !y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (do len <- Data.ProtoLens.Encoding.Bytes.getVarInt+ Data.ProtoLens.Encoding.Bytes.isolate+ (Prelude.fromIntegral len)+ Data.ProtoLens.parseMessage)+ "errors"+ v <- Data.ProtoLens.Encoding.Parser.Unsafe.unsafeLiftIO+ (Data.ProtoLens.Encoding.Growing.append mutable'errors y)+ loop x v+ 104+ -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (Prelude.fmap+ Prelude.fromIntegral+ Data.ProtoLens.Encoding.Bytes.getVarInt)+ "flap_count"+ loop+ (Lens.Family2.set (Data.ProtoLens.Field.field @"flapCount") y x)+ mutable'errors+ 112+ -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (Prelude.fmap+ Prelude.fromIntegral+ Data.ProtoLens.Encoding.Bytes.getVarInt)+ "last_flap_ns"+ loop+ (Lens.Family2.set (Data.ProtoLens.Field.field @"lastFlapNs") y x)+ mutable'errors+ 122+ -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (do len <- Data.ProtoLens.Encoding.Bytes.getVarInt+ Data.ProtoLens.Encoding.Bytes.getBytes+ (Prelude.fromIntegral len))+ "last_ping_payload"+ loop+ (Lens.Family2.set+ (Data.ProtoLens.Field.field @"lastPingPayload") y x)+ mutable'errors+ wire+ -> do !y <- Data.ProtoLens.Encoding.Wire.parseTaggedValueFromWire+ wire+ loop+ (Lens.Family2.over+ Data.ProtoLens.unknownFields (\ !t -> (:) y t) x)+ mutable'errors+ in+ (Data.ProtoLens.Encoding.Bytes.<?>)+ (do mutable'errors <- Data.ProtoLens.Encoding.Parser.Unsafe.unsafeLiftIO+ Data.ProtoLens.Encoding.Growing.new+ loop Data.ProtoLens.defMessage mutable'errors)+ "Peer"+ buildMessage+ = \ _x+ -> (Data.Monoid.<>)+ (let+ _v = Lens.Family2.view (Data.ProtoLens.Field.field @"pubKey") _x+ in+ if (Prelude.==) _v Data.ProtoLens.fieldDefault then+ Data.Monoid.mempty+ else+ (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 10)+ ((Prelude..)+ (\ bs+ -> (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt+ (Prelude.fromIntegral (Data.ByteString.length bs)))+ (Data.ProtoLens.Encoding.Bytes.putBytes bs))+ Data.Text.Encoding.encodeUtf8 _v))+ ((Data.Monoid.<>)+ (let+ _v = Lens.Family2.view (Data.ProtoLens.Field.field @"address") _x+ in+ if (Prelude.==) _v Data.ProtoLens.fieldDefault then+ Data.Monoid.mempty+ else+ (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 26)+ ((Prelude..)+ (\ bs+ -> (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt+ (Prelude.fromIntegral (Data.ByteString.length bs)))+ (Data.ProtoLens.Encoding.Bytes.putBytes bs))+ Data.Text.Encoding.encodeUtf8 _v))+ ((Data.Monoid.<>)+ (let+ _v = Lens.Family2.view (Data.ProtoLens.Field.field @"bytesSent") _x+ in+ if (Prelude.==) _v Data.ProtoLens.fieldDefault then+ Data.Monoid.mempty+ else+ (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 32)+ (Data.ProtoLens.Encoding.Bytes.putVarInt _v))+ ((Data.Monoid.<>)+ (let+ _v = Lens.Family2.view (Data.ProtoLens.Field.field @"bytesRecv") _x+ in+ if (Prelude.==) _v Data.ProtoLens.fieldDefault then+ Data.Monoid.mempty+ else+ (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 40)+ (Data.ProtoLens.Encoding.Bytes.putVarInt _v))+ ((Data.Monoid.<>)+ (let+ _v = Lens.Family2.view (Data.ProtoLens.Field.field @"satSent") _x+ in+ if (Prelude.==) _v Data.ProtoLens.fieldDefault then+ Data.Monoid.mempty+ else+ (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 48)+ ((Prelude..)+ Data.ProtoLens.Encoding.Bytes.putVarInt Prelude.fromIntegral+ _v))+ ((Data.Monoid.<>)+ (let+ _v = Lens.Family2.view (Data.ProtoLens.Field.field @"satRecv") _x+ in+ if (Prelude.==) _v Data.ProtoLens.fieldDefault then+ Data.Monoid.mempty+ else+ (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 56)+ ((Prelude..)+ Data.ProtoLens.Encoding.Bytes.putVarInt Prelude.fromIntegral+ _v))+ ((Data.Monoid.<>)+ (let+ _v = Lens.Family2.view (Data.ProtoLens.Field.field @"inbound") _x+ in+ if (Prelude.==) _v Data.ProtoLens.fieldDefault then+ Data.Monoid.mempty+ else+ (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 64)+ ((Prelude..)+ Data.ProtoLens.Encoding.Bytes.putVarInt+ (\ b -> if b then 1 else 0) _v))+ ((Data.Monoid.<>)+ (let+ _v+ = Lens.Family2.view+ (Data.ProtoLens.Field.field @"pingTime") _x+ in+ if (Prelude.==) _v Data.ProtoLens.fieldDefault then+ Data.Monoid.mempty+ else+ (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 72)+ ((Prelude..)+ Data.ProtoLens.Encoding.Bytes.putVarInt+ Prelude.fromIntegral _v))+ ((Data.Monoid.<>)+ (let+ _v+ = Lens.Family2.view+ (Data.ProtoLens.Field.field @"syncType") _x+ in+ if (Prelude.==) _v Data.ProtoLens.fieldDefault then+ Data.Monoid.mempty+ else+ (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 80)+ ((Prelude..)+ ((Prelude..)+ Data.ProtoLens.Encoding.Bytes.putVarInt+ Prelude.fromIntegral)+ Prelude.fromEnum _v))+ ((Data.Monoid.<>)+ (Data.Monoid.mconcat+ (Prelude.map+ (\ _v+ -> (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 90)+ ((Prelude..)+ (\ bs+ -> (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt+ (Prelude.fromIntegral+ (Data.ByteString.length bs)))+ (Data.ProtoLens.Encoding.Bytes.putBytes+ bs))+ Data.ProtoLens.encodeMessage+ (Lens.Family2.set+ (Data.ProtoLens.Field.field @"key")+ (Prelude.fst _v)+ (Lens.Family2.set+ (Data.ProtoLens.Field.field @"value")+ (Prelude.snd _v)+ (Data.ProtoLens.defMessage ::+ Peer'FeaturesEntry)))))+ (Data.Map.toList+ (Lens.Family2.view+ (Data.ProtoLens.Field.field @"features") _x))))+ ((Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.foldMapBuilder+ (\ _v+ -> (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 98)+ ((Prelude..)+ (\ bs+ -> (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt+ (Prelude.fromIntegral+ (Data.ByteString.length bs)))+ (Data.ProtoLens.Encoding.Bytes.putBytes+ bs))+ Data.ProtoLens.encodeMessage _v))+ (Lens.Family2.view+ (Data.ProtoLens.Field.field @"vec'errors") _x))+ ((Data.Monoid.<>)+ (let+ _v+ = Lens.Family2.view+ (Data.ProtoLens.Field.field @"flapCount") _x+ in+ if (Prelude.==) _v Data.ProtoLens.fieldDefault then+ Data.Monoid.mempty+ else+ (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 104)+ ((Prelude..)+ Data.ProtoLens.Encoding.Bytes.putVarInt+ Prelude.fromIntegral _v))+ ((Data.Monoid.<>)+ (let+ _v+ = Lens.Family2.view+ (Data.ProtoLens.Field.field @"lastFlapNs")+ _x+ in+ if (Prelude.==)+ _v Data.ProtoLens.fieldDefault then+ Data.Monoid.mempty+ else+ (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt+ 112)+ ((Prelude..)+ Data.ProtoLens.Encoding.Bytes.putVarInt+ Prelude.fromIntegral _v))+ ((Data.Monoid.<>)+ (let+ _v+ = Lens.Family2.view+ (Data.ProtoLens.Field.field+ @"lastPingPayload")+ _x+ in+ if (Prelude.==)+ _v Data.ProtoLens.fieldDefault then+ Data.Monoid.mempty+ else+ (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt+ 122)+ ((\ bs+ -> (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt+ (Prelude.fromIntegral+ (Data.ByteString.length+ bs)))+ (Data.ProtoLens.Encoding.Bytes.putBytes+ bs))+ _v))+ (Data.ProtoLens.Encoding.Wire.buildFieldSet+ (Lens.Family2.view+ Data.ProtoLens.unknownFields+ _x)))))))))))))))+instance Control.DeepSeq.NFData Peer where+ rnf+ = \ x__+ -> Control.DeepSeq.deepseq+ (_Peer'_unknownFields x__)+ (Control.DeepSeq.deepseq+ (_Peer'pubKey x__)+ (Control.DeepSeq.deepseq+ (_Peer'address x__)+ (Control.DeepSeq.deepseq+ (_Peer'bytesSent x__)+ (Control.DeepSeq.deepseq+ (_Peer'bytesRecv x__)+ (Control.DeepSeq.deepseq+ (_Peer'satSent x__)+ (Control.DeepSeq.deepseq+ (_Peer'satRecv x__)+ (Control.DeepSeq.deepseq+ (_Peer'inbound x__)+ (Control.DeepSeq.deepseq+ (_Peer'pingTime x__)+ (Control.DeepSeq.deepseq+ (_Peer'syncType x__)+ (Control.DeepSeq.deepseq+ (_Peer'features x__)+ (Control.DeepSeq.deepseq+ (_Peer'errors x__)+ (Control.DeepSeq.deepseq+ (_Peer'flapCount x__)+ (Control.DeepSeq.deepseq+ (_Peer'lastFlapNs x__)+ (Control.DeepSeq.deepseq+ (_Peer'lastPingPayload x__) ()))))))))))))))+{- | Fields :+ + * 'Proto.Lightning_Fields.key' @:: Lens' Peer'FeaturesEntry Data.Word.Word32@+ * 'Proto.Lightning_Fields.value' @:: Lens' Peer'FeaturesEntry Proto.Lnrpc.Ln0.Feature@+ * 'Proto.Lightning_Fields.maybe'value' @:: Lens' Peer'FeaturesEntry (Prelude.Maybe Proto.Lnrpc.Ln0.Feature)@ -}+data Peer'FeaturesEntry+ = Peer'FeaturesEntry'_constructor {_Peer'FeaturesEntry'key :: !Data.Word.Word32,+ _Peer'FeaturesEntry'value :: !(Prelude.Maybe Proto.Lnrpc.Ln0.Feature),+ _Peer'FeaturesEntry'_unknownFields :: !Data.ProtoLens.FieldSet}+ deriving stock (Prelude.Eq, Prelude.Ord, GHC.Generics.Generic)+instance Prelude.Show Peer'FeaturesEntry where+ showsPrec _ __x __s+ = Prelude.showChar+ '{'+ (Prelude.showString+ (Data.ProtoLens.showMessageShort __x) (Prelude.showChar '}' __s))+instance Text.PrettyPrint.GenericPretty.Out Peer'FeaturesEntry+instance Data.ProtoLens.Field.HasField Peer'FeaturesEntry "key" Data.Word.Word32 where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _Peer'FeaturesEntry'key+ (\ x__ y__ -> x__ {_Peer'FeaturesEntry'key = y__}))+ Prelude.id+instance Data.ProtoLens.Field.HasField Peer'FeaturesEntry "value" Proto.Lnrpc.Ln0.Feature where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _Peer'FeaturesEntry'value+ (\ x__ y__ -> x__ {_Peer'FeaturesEntry'value = y__}))+ (Data.ProtoLens.maybeLens Data.ProtoLens.defMessage)+instance Data.ProtoLens.Field.HasField Peer'FeaturesEntry "maybe'value" (Prelude.Maybe Proto.Lnrpc.Ln0.Feature) where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _Peer'FeaturesEntry'value+ (\ x__ y__ -> x__ {_Peer'FeaturesEntry'value = y__}))+ Prelude.id+instance Data.ProtoLens.Message Peer'FeaturesEntry where+ messageName _ = Data.Text.pack "lnrpc.Peer.FeaturesEntry"+ packedMessageDescriptor _+ = "\n\+ \\rFeaturesEntry\DC2\DLE\n\+ \\ETXkey\CAN\SOH \SOH(\rR\ETXkey\DC2$\n\+ \\ENQvalue\CAN\STX \SOH(\v2\SO.lnrpc.FeatureR\ENQvalue:\STX8\SOH"+ packedFileDescriptor _ = packedFileDescriptor+ fieldsByTag+ = let+ key__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "key"+ (Data.ProtoLens.ScalarField Data.ProtoLens.UInt32Field ::+ Data.ProtoLens.FieldTypeDescriptor Data.Word.Word32)+ (Data.ProtoLens.PlainField+ Data.ProtoLens.Optional (Data.ProtoLens.Field.field @"key")) ::+ Data.ProtoLens.FieldDescriptor Peer'FeaturesEntry+ value__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "value"+ (Data.ProtoLens.MessageField Data.ProtoLens.MessageType ::+ Data.ProtoLens.FieldTypeDescriptor Proto.Lnrpc.Ln0.Feature)+ (Data.ProtoLens.OptionalField+ (Data.ProtoLens.Field.field @"maybe'value")) ::+ Data.ProtoLens.FieldDescriptor Peer'FeaturesEntry+ in+ Data.Map.fromList+ [(Data.ProtoLens.Tag 1, key__field_descriptor),+ (Data.ProtoLens.Tag 2, value__field_descriptor)]+ unknownFields+ = Lens.Family2.Unchecked.lens+ _Peer'FeaturesEntry'_unknownFields+ (\ x__ y__ -> x__ {_Peer'FeaturesEntry'_unknownFields = y__})+ defMessage+ = Peer'FeaturesEntry'_constructor+ {_Peer'FeaturesEntry'key = Data.ProtoLens.fieldDefault,+ _Peer'FeaturesEntry'value = Prelude.Nothing,+ _Peer'FeaturesEntry'_unknownFields = []}+ parseMessage+ = let+ loop ::+ Peer'FeaturesEntry+ -> Data.ProtoLens.Encoding.Bytes.Parser Peer'FeaturesEntry+ loop x+ = do end <- Data.ProtoLens.Encoding.Bytes.atEnd+ if end then+ do (let missing = []+ in+ if Prelude.null missing then+ Prelude.return ()+ else+ Prelude.fail+ ((Prelude.++)+ "Missing required fields: "+ (Prelude.show (missing :: [Prelude.String]))))+ Prelude.return+ (Lens.Family2.over+ Data.ProtoLens.unknownFields (\ !t -> Prelude.reverse t) x)+ else+ do tag <- Data.ProtoLens.Encoding.Bytes.getVarInt+ case tag of+ 8 -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (Prelude.fmap+ Prelude.fromIntegral+ Data.ProtoLens.Encoding.Bytes.getVarInt)+ "key"+ loop (Lens.Family2.set (Data.ProtoLens.Field.field @"key") y x)+ 18+ -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (do len <- Data.ProtoLens.Encoding.Bytes.getVarInt+ Data.ProtoLens.Encoding.Bytes.isolate+ (Prelude.fromIntegral len) Data.ProtoLens.parseMessage)+ "value"+ loop (Lens.Family2.set (Data.ProtoLens.Field.field @"value") y x)+ wire+ -> do !y <- Data.ProtoLens.Encoding.Wire.parseTaggedValueFromWire+ wire+ loop+ (Lens.Family2.over+ Data.ProtoLens.unknownFields (\ !t -> (:) y t) x)+ in+ (Data.ProtoLens.Encoding.Bytes.<?>)+ (do loop Data.ProtoLens.defMessage) "FeaturesEntry"+ buildMessage+ = \ _x+ -> (Data.Monoid.<>)+ (let _v = Lens.Family2.view (Data.ProtoLens.Field.field @"key") _x+ in+ if (Prelude.==) _v Data.ProtoLens.fieldDefault then+ Data.Monoid.mempty+ else+ (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 8)+ ((Prelude..)+ Data.ProtoLens.Encoding.Bytes.putVarInt Prelude.fromIntegral _v))+ ((Data.Monoid.<>)+ (case+ Lens.Family2.view (Data.ProtoLens.Field.field @"maybe'value") _x+ of+ Prelude.Nothing -> Data.Monoid.mempty+ (Prelude.Just _v)+ -> (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 18)+ ((Prelude..)+ (\ bs+ -> (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt+ (Prelude.fromIntegral (Data.ByteString.length bs)))+ (Data.ProtoLens.Encoding.Bytes.putBytes bs))+ Data.ProtoLens.encodeMessage _v))+ (Data.ProtoLens.Encoding.Wire.buildFieldSet+ (Lens.Family2.view Data.ProtoLens.unknownFields _x)))+instance Control.DeepSeq.NFData Peer'FeaturesEntry where+ rnf+ = \ x__+ -> Control.DeepSeq.deepseq+ (_Peer'FeaturesEntry'_unknownFields x__)+ (Control.DeepSeq.deepseq+ (_Peer'FeaturesEntry'key x__)+ (Control.DeepSeq.deepseq (_Peer'FeaturesEntry'value x__) ()))+newtype Peer'SyncType'UnrecognizedValue+ = Peer'SyncType'UnrecognizedValue Data.Int.Int32+ deriving stock (Prelude.Eq,+ Prelude.Ord,+ Prelude.Show,+ GHC.Generics.Generic)+instance Text.PrettyPrint.GenericPretty.Out Peer'SyncType'UnrecognizedValue+data Peer'SyncType+ = Peer'UNKNOWN_SYNC |+ Peer'ACTIVE_SYNC |+ Peer'PASSIVE_SYNC |+ Peer'PINNED_SYNC |+ Peer'SyncType'Unrecognized !Peer'SyncType'UnrecognizedValue+ deriving stock (Prelude.Show,+ Prelude.Eq,+ Prelude.Ord,+ GHC.Generics.Generic)+instance Data.ProtoLens.MessageEnum Peer'SyncType where+ maybeToEnum 0 = Prelude.Just Peer'UNKNOWN_SYNC+ maybeToEnum 1 = Prelude.Just Peer'ACTIVE_SYNC+ maybeToEnum 2 = Prelude.Just Peer'PASSIVE_SYNC+ maybeToEnum 3 = Prelude.Just Peer'PINNED_SYNC+ maybeToEnum k+ = Prelude.Just+ (Peer'SyncType'Unrecognized+ (Peer'SyncType'UnrecognizedValue (Prelude.fromIntegral k)))+ showEnum Peer'UNKNOWN_SYNC = "UNKNOWN_SYNC"+ showEnum Peer'ACTIVE_SYNC = "ACTIVE_SYNC"+ showEnum Peer'PASSIVE_SYNC = "PASSIVE_SYNC"+ showEnum Peer'PINNED_SYNC = "PINNED_SYNC"+ showEnum+ (Peer'SyncType'Unrecognized (Peer'SyncType'UnrecognizedValue k))+ = Prelude.show k+ readEnum k+ | (Prelude.==) k "UNKNOWN_SYNC" = Prelude.Just Peer'UNKNOWN_SYNC+ | (Prelude.==) k "ACTIVE_SYNC" = Prelude.Just Peer'ACTIVE_SYNC+ | (Prelude.==) k "PASSIVE_SYNC" = Prelude.Just Peer'PASSIVE_SYNC+ | (Prelude.==) k "PINNED_SYNC" = Prelude.Just Peer'PINNED_SYNC+ | Prelude.otherwise+ = (Prelude.>>=) (Text.Read.readMaybe k) Data.ProtoLens.maybeToEnum+instance Prelude.Bounded Peer'SyncType where+ minBound = Peer'UNKNOWN_SYNC+ maxBound = Peer'PINNED_SYNC+instance Prelude.Enum Peer'SyncType where+ toEnum k__+ = Prelude.maybe+ (Prelude.error+ ((Prelude.++)+ "toEnum: unknown value for enum SyncType: " (Prelude.show k__)))+ Prelude.id (Data.ProtoLens.maybeToEnum k__)+ fromEnum Peer'UNKNOWN_SYNC = 0+ fromEnum Peer'ACTIVE_SYNC = 1+ fromEnum Peer'PASSIVE_SYNC = 2+ fromEnum Peer'PINNED_SYNC = 3+ fromEnum+ (Peer'SyncType'Unrecognized (Peer'SyncType'UnrecognizedValue k))+ = Prelude.fromIntegral k+ succ Peer'PINNED_SYNC+ = Prelude.error+ "Peer'SyncType.succ: bad argument Peer'PINNED_SYNC. This value would be out of bounds."+ succ Peer'UNKNOWN_SYNC = Peer'ACTIVE_SYNC+ succ Peer'ACTIVE_SYNC = Peer'PASSIVE_SYNC+ succ Peer'PASSIVE_SYNC = Peer'PINNED_SYNC+ succ (Peer'SyncType'Unrecognized _)+ = Prelude.error+ "Peer'SyncType.succ: bad argument: unrecognized value"+ pred Peer'UNKNOWN_SYNC+ = Prelude.error+ "Peer'SyncType.pred: bad argument Peer'UNKNOWN_SYNC. This value would be out of bounds."+ pred Peer'ACTIVE_SYNC = Peer'UNKNOWN_SYNC+ pred Peer'PASSIVE_SYNC = Peer'ACTIVE_SYNC+ pred Peer'PINNED_SYNC = Peer'PASSIVE_SYNC+ pred (Peer'SyncType'Unrecognized _)+ = Prelude.error+ "Peer'SyncType.pred: bad argument: unrecognized value"+ enumFrom = Data.ProtoLens.Message.Enum.messageEnumFrom+ enumFromTo = Data.ProtoLens.Message.Enum.messageEnumFromTo+ enumFromThen = Data.ProtoLens.Message.Enum.messageEnumFromThen+ enumFromThenTo = Data.ProtoLens.Message.Enum.messageEnumFromThenTo+instance Data.ProtoLens.FieldDefault Peer'SyncType where+ fieldDefault = Peer'UNKNOWN_SYNC+instance Control.DeepSeq.NFData Peer'SyncType where+ rnf x__ = Prelude.seq x__ ()+instance Text.PrettyPrint.GenericPretty.Out Peer'SyncType+{- | Fields :+ + * 'Proto.Lightning_Fields.pubKey' @:: Lens' PeerEvent Data.Text.Text@+ * 'Proto.Lightning_Fields.type'' @:: Lens' PeerEvent PeerEvent'EventType@ -}+data PeerEvent+ = PeerEvent'_constructor {_PeerEvent'pubKey :: !Data.Text.Text,+ _PeerEvent'type' :: !PeerEvent'EventType,+ _PeerEvent'_unknownFields :: !Data.ProtoLens.FieldSet}+ deriving stock (Prelude.Eq, Prelude.Ord, GHC.Generics.Generic)+instance Prelude.Show PeerEvent where+ showsPrec _ __x __s+ = Prelude.showChar+ '{'+ (Prelude.showString+ (Data.ProtoLens.showMessageShort __x) (Prelude.showChar '}' __s))+instance Text.PrettyPrint.GenericPretty.Out PeerEvent+instance Data.ProtoLens.Field.HasField PeerEvent "pubKey" Data.Text.Text where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _PeerEvent'pubKey (\ x__ y__ -> x__ {_PeerEvent'pubKey = y__}))+ Prelude.id+instance Data.ProtoLens.Field.HasField PeerEvent "type'" PeerEvent'EventType where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _PeerEvent'type' (\ x__ y__ -> x__ {_PeerEvent'type' = y__}))+ Prelude.id+instance Data.ProtoLens.Message PeerEvent where+ messageName _ = Data.Text.pack "lnrpc.PeerEvent"+ packedMessageDescriptor _+ = "\n\+ \\tPeerEvent\DC2\ETB\n\+ \\apub_key\CAN\SOH \SOH(\tR\ACKpubKey\DC2.\n\+ \\EOTtype\CAN\STX \SOH(\SO2\SUB.lnrpc.PeerEvent.EventTypeR\EOTtype\".\n\+ \\tEventType\DC2\SI\n\+ \\vPEER_ONLINE\DLE\NUL\DC2\DLE\n\+ \\fPEER_OFFLINE\DLE\SOH"+ packedFileDescriptor _ = packedFileDescriptor+ fieldsByTag+ = let+ pubKey__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "pub_key"+ (Data.ProtoLens.ScalarField Data.ProtoLens.StringField ::+ Data.ProtoLens.FieldTypeDescriptor Data.Text.Text)+ (Data.ProtoLens.PlainField+ Data.ProtoLens.Optional (Data.ProtoLens.Field.field @"pubKey")) ::+ Data.ProtoLens.FieldDescriptor PeerEvent+ type'__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "type"+ (Data.ProtoLens.ScalarField Data.ProtoLens.EnumField ::+ Data.ProtoLens.FieldTypeDescriptor PeerEvent'EventType)+ (Data.ProtoLens.PlainField+ Data.ProtoLens.Optional (Data.ProtoLens.Field.field @"type'")) ::+ Data.ProtoLens.FieldDescriptor PeerEvent+ in+ Data.Map.fromList+ [(Data.ProtoLens.Tag 1, pubKey__field_descriptor),+ (Data.ProtoLens.Tag 2, type'__field_descriptor)]+ unknownFields+ = Lens.Family2.Unchecked.lens+ _PeerEvent'_unknownFields+ (\ x__ y__ -> x__ {_PeerEvent'_unknownFields = y__})+ defMessage+ = PeerEvent'_constructor+ {_PeerEvent'pubKey = Data.ProtoLens.fieldDefault,+ _PeerEvent'type' = Data.ProtoLens.fieldDefault,+ _PeerEvent'_unknownFields = []}+ parseMessage+ = let+ loop :: PeerEvent -> Data.ProtoLens.Encoding.Bytes.Parser PeerEvent+ loop x+ = do end <- Data.ProtoLens.Encoding.Bytes.atEnd+ if end then+ do (let missing = []+ in+ if Prelude.null missing then+ Prelude.return ()+ else+ Prelude.fail+ ((Prelude.++)+ "Missing required fields: "+ (Prelude.show (missing :: [Prelude.String]))))+ Prelude.return+ (Lens.Family2.over+ Data.ProtoLens.unknownFields (\ !t -> Prelude.reverse t) x)+ else+ do tag <- Data.ProtoLens.Encoding.Bytes.getVarInt+ case tag of+ 10+ -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (do value <- do len <- Data.ProtoLens.Encoding.Bytes.getVarInt+ Data.ProtoLens.Encoding.Bytes.getBytes+ (Prelude.fromIntegral len)+ Data.ProtoLens.Encoding.Bytes.runEither+ (case Data.Text.Encoding.decodeUtf8' value of+ (Prelude.Left err)+ -> Prelude.Left (Prelude.show err)+ (Prelude.Right r) -> Prelude.Right r))+ "pub_key"+ loop (Lens.Family2.set (Data.ProtoLens.Field.field @"pubKey") y x)+ 16+ -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (Prelude.fmap+ Prelude.toEnum+ (Prelude.fmap+ Prelude.fromIntegral+ Data.ProtoLens.Encoding.Bytes.getVarInt))+ "type"+ loop (Lens.Family2.set (Data.ProtoLens.Field.field @"type'") y x)+ wire+ -> do !y <- Data.ProtoLens.Encoding.Wire.parseTaggedValueFromWire+ wire+ loop+ (Lens.Family2.over+ Data.ProtoLens.unknownFields (\ !t -> (:) y t) x)+ in+ (Data.ProtoLens.Encoding.Bytes.<?>)+ (do loop Data.ProtoLens.defMessage) "PeerEvent"+ buildMessage+ = \ _x+ -> (Data.Monoid.<>)+ (let+ _v = Lens.Family2.view (Data.ProtoLens.Field.field @"pubKey") _x+ in+ if (Prelude.==) _v Data.ProtoLens.fieldDefault then+ Data.Monoid.mempty+ else+ (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 10)+ ((Prelude..)+ (\ bs+ -> (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt+ (Prelude.fromIntegral (Data.ByteString.length bs)))+ (Data.ProtoLens.Encoding.Bytes.putBytes bs))+ Data.Text.Encoding.encodeUtf8 _v))+ ((Data.Monoid.<>)+ (let+ _v = Lens.Family2.view (Data.ProtoLens.Field.field @"type'") _x+ in+ if (Prelude.==) _v Data.ProtoLens.fieldDefault then+ Data.Monoid.mempty+ else+ (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 16)+ ((Prelude..)+ ((Prelude..)+ Data.ProtoLens.Encoding.Bytes.putVarInt Prelude.fromIntegral)+ Prelude.fromEnum _v))+ (Data.ProtoLens.Encoding.Wire.buildFieldSet+ (Lens.Family2.view Data.ProtoLens.unknownFields _x)))+instance Control.DeepSeq.NFData PeerEvent where+ rnf+ = \ x__+ -> Control.DeepSeq.deepseq+ (_PeerEvent'_unknownFields x__)+ (Control.DeepSeq.deepseq+ (_PeerEvent'pubKey x__)+ (Control.DeepSeq.deepseq (_PeerEvent'type' x__) ()))+newtype PeerEvent'EventType'UnrecognizedValue+ = PeerEvent'EventType'UnrecognizedValue Data.Int.Int32+ deriving stock (Prelude.Eq,+ Prelude.Ord,+ Prelude.Show,+ GHC.Generics.Generic)+instance Text.PrettyPrint.GenericPretty.Out PeerEvent'EventType'UnrecognizedValue+data PeerEvent'EventType+ = PeerEvent'PEER_ONLINE |+ PeerEvent'PEER_OFFLINE |+ PeerEvent'EventType'Unrecognized !PeerEvent'EventType'UnrecognizedValue+ deriving stock (Prelude.Show,+ Prelude.Eq,+ Prelude.Ord,+ GHC.Generics.Generic)+instance Data.ProtoLens.MessageEnum PeerEvent'EventType where+ maybeToEnum 0 = Prelude.Just PeerEvent'PEER_ONLINE+ maybeToEnum 1 = Prelude.Just PeerEvent'PEER_OFFLINE+ maybeToEnum k+ = Prelude.Just+ (PeerEvent'EventType'Unrecognized+ (PeerEvent'EventType'UnrecognizedValue (Prelude.fromIntegral k)))+ showEnum PeerEvent'PEER_ONLINE = "PEER_ONLINE"+ showEnum PeerEvent'PEER_OFFLINE = "PEER_OFFLINE"+ showEnum+ (PeerEvent'EventType'Unrecognized (PeerEvent'EventType'UnrecognizedValue k))+ = Prelude.show k+ readEnum k+ | (Prelude.==) k "PEER_ONLINE" = Prelude.Just PeerEvent'PEER_ONLINE+ | (Prelude.==) k "PEER_OFFLINE"+ = Prelude.Just PeerEvent'PEER_OFFLINE+ | Prelude.otherwise+ = (Prelude.>>=) (Text.Read.readMaybe k) Data.ProtoLens.maybeToEnum+instance Prelude.Bounded PeerEvent'EventType where+ minBound = PeerEvent'PEER_ONLINE+ maxBound = PeerEvent'PEER_OFFLINE+instance Prelude.Enum PeerEvent'EventType where+ toEnum k__+ = Prelude.maybe+ (Prelude.error+ ((Prelude.++)+ "toEnum: unknown value for enum EventType: " (Prelude.show k__)))+ Prelude.id (Data.ProtoLens.maybeToEnum k__)+ fromEnum PeerEvent'PEER_ONLINE = 0+ fromEnum PeerEvent'PEER_OFFLINE = 1+ fromEnum+ (PeerEvent'EventType'Unrecognized (PeerEvent'EventType'UnrecognizedValue k))+ = Prelude.fromIntegral k+ succ PeerEvent'PEER_OFFLINE+ = Prelude.error+ "PeerEvent'EventType.succ: bad argument PeerEvent'PEER_OFFLINE. This value would be out of bounds."+ succ PeerEvent'PEER_ONLINE = PeerEvent'PEER_OFFLINE+ succ (PeerEvent'EventType'Unrecognized _)+ = Prelude.error+ "PeerEvent'EventType.succ: bad argument: unrecognized value"+ pred PeerEvent'PEER_ONLINE+ = Prelude.error+ "PeerEvent'EventType.pred: bad argument PeerEvent'PEER_ONLINE. This value would be out of bounds."+ pred PeerEvent'PEER_OFFLINE = PeerEvent'PEER_ONLINE+ pred (PeerEvent'EventType'Unrecognized _)+ = Prelude.error+ "PeerEvent'EventType.pred: bad argument: unrecognized value"+ enumFrom = Data.ProtoLens.Message.Enum.messageEnumFrom+ enumFromTo = Data.ProtoLens.Message.Enum.messageEnumFromTo+ enumFromThen = Data.ProtoLens.Message.Enum.messageEnumFromThen+ enumFromThenTo = Data.ProtoLens.Message.Enum.messageEnumFromThenTo+instance Data.ProtoLens.FieldDefault PeerEvent'EventType where+ fieldDefault = PeerEvent'PEER_ONLINE+instance Control.DeepSeq.NFData PeerEvent'EventType where+ rnf x__ = Prelude.seq x__ ()+instance Text.PrettyPrint.GenericPretty.Out PeerEvent'EventType+{- | Fields :+ -}+data PeerEventSubscription+ = PeerEventSubscription'_constructor {_PeerEventSubscription'_unknownFields :: !Data.ProtoLens.FieldSet}+ deriving stock (Prelude.Eq, Prelude.Ord, GHC.Generics.Generic)+instance Prelude.Show PeerEventSubscription where+ showsPrec _ __x __s+ = Prelude.showChar+ '{'+ (Prelude.showString+ (Data.ProtoLens.showMessageShort __x) (Prelude.showChar '}' __s))+instance Text.PrettyPrint.GenericPretty.Out PeerEventSubscription+instance Data.ProtoLens.Message PeerEventSubscription where+ messageName _ = Data.Text.pack "lnrpc.PeerEventSubscription"+ packedMessageDescriptor _+ = "\n\+ \\NAKPeerEventSubscription"+ packedFileDescriptor _ = packedFileDescriptor+ fieldsByTag = let in Data.Map.fromList []+ unknownFields+ = Lens.Family2.Unchecked.lens+ _PeerEventSubscription'_unknownFields+ (\ x__ y__ -> x__ {_PeerEventSubscription'_unknownFields = y__})+ defMessage+ = PeerEventSubscription'_constructor+ {_PeerEventSubscription'_unknownFields = []}+ parseMessage+ = let+ loop ::+ PeerEventSubscription+ -> Data.ProtoLens.Encoding.Bytes.Parser PeerEventSubscription+ loop x+ = do end <- Data.ProtoLens.Encoding.Bytes.atEnd+ if end then+ do (let missing = []+ in+ if Prelude.null missing then+ Prelude.return ()+ else+ Prelude.fail+ ((Prelude.++)+ "Missing required fields: "+ (Prelude.show (missing :: [Prelude.String]))))+ Prelude.return+ (Lens.Family2.over+ Data.ProtoLens.unknownFields (\ !t -> Prelude.reverse t) x)+ else+ do tag <- Data.ProtoLens.Encoding.Bytes.getVarInt+ case tag of {+ wire+ -> do !y <- Data.ProtoLens.Encoding.Wire.parseTaggedValueFromWire+ wire+ loop+ (Lens.Family2.over+ Data.ProtoLens.unknownFields (\ !t -> (:) y t) x) }+ in+ (Data.ProtoLens.Encoding.Bytes.<?>)+ (do loop Data.ProtoLens.defMessage) "PeerEventSubscription"+ buildMessage+ = \ _x+ -> Data.ProtoLens.Encoding.Wire.buildFieldSet+ (Lens.Family2.view Data.ProtoLens.unknownFields _x)+instance Control.DeepSeq.NFData PeerEventSubscription where+ rnf+ = \ x__+ -> Control.DeepSeq.deepseq+ (_PeerEventSubscription'_unknownFields x__) ()+{- | Fields :+ + * 'Proto.Lightning_Fields.fundingAddress' @:: Lens' ReadyForPsbtFunding Data.Text.Text@+ * 'Proto.Lightning_Fields.fundingAmount' @:: Lens' ReadyForPsbtFunding Data.Int.Int64@+ * 'Proto.Lightning_Fields.psbt' @:: Lens' ReadyForPsbtFunding Data.ByteString.ByteString@ -}+data ReadyForPsbtFunding+ = ReadyForPsbtFunding'_constructor {_ReadyForPsbtFunding'fundingAddress :: !Data.Text.Text,+ _ReadyForPsbtFunding'fundingAmount :: !Data.Int.Int64,+ _ReadyForPsbtFunding'psbt :: !Data.ByteString.ByteString,+ _ReadyForPsbtFunding'_unknownFields :: !Data.ProtoLens.FieldSet}+ deriving stock (Prelude.Eq, Prelude.Ord, GHC.Generics.Generic)+instance Prelude.Show ReadyForPsbtFunding where+ showsPrec _ __x __s+ = Prelude.showChar+ '{'+ (Prelude.showString+ (Data.ProtoLens.showMessageShort __x) (Prelude.showChar '}' __s))+instance Text.PrettyPrint.GenericPretty.Out ReadyForPsbtFunding+instance Data.ProtoLens.Field.HasField ReadyForPsbtFunding "fundingAddress" Data.Text.Text where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _ReadyForPsbtFunding'fundingAddress+ (\ x__ y__ -> x__ {_ReadyForPsbtFunding'fundingAddress = y__}))+ Prelude.id+instance Data.ProtoLens.Field.HasField ReadyForPsbtFunding "fundingAmount" Data.Int.Int64 where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _ReadyForPsbtFunding'fundingAmount+ (\ x__ y__ -> x__ {_ReadyForPsbtFunding'fundingAmount = y__}))+ Prelude.id+instance Data.ProtoLens.Field.HasField ReadyForPsbtFunding "psbt" Data.ByteString.ByteString where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _ReadyForPsbtFunding'psbt+ (\ x__ y__ -> x__ {_ReadyForPsbtFunding'psbt = y__}))+ Prelude.id+instance Data.ProtoLens.Message ReadyForPsbtFunding where+ messageName _ = Data.Text.pack "lnrpc.ReadyForPsbtFunding"+ packedMessageDescriptor _+ = "\n\+ \\DC3ReadyForPsbtFunding\DC2'\n\+ \\SIfunding_address\CAN\SOH \SOH(\tR\SOfundingAddress\DC2%\n\+ \\SOfunding_amount\CAN\STX \SOH(\ETXR\rfundingAmount\DC2\DC2\n\+ \\EOTpsbt\CAN\ETX \SOH(\fR\EOTpsbt"+ packedFileDescriptor _ = packedFileDescriptor+ fieldsByTag+ = let+ fundingAddress__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "funding_address"+ (Data.ProtoLens.ScalarField Data.ProtoLens.StringField ::+ Data.ProtoLens.FieldTypeDescriptor Data.Text.Text)+ (Data.ProtoLens.PlainField+ Data.ProtoLens.Optional+ (Data.ProtoLens.Field.field @"fundingAddress")) ::+ Data.ProtoLens.FieldDescriptor ReadyForPsbtFunding+ fundingAmount__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "funding_amount"+ (Data.ProtoLens.ScalarField Data.ProtoLens.Int64Field ::+ Data.ProtoLens.FieldTypeDescriptor Data.Int.Int64)+ (Data.ProtoLens.PlainField+ Data.ProtoLens.Optional+ (Data.ProtoLens.Field.field @"fundingAmount")) ::+ Data.ProtoLens.FieldDescriptor ReadyForPsbtFunding+ psbt__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "psbt"+ (Data.ProtoLens.ScalarField Data.ProtoLens.BytesField ::+ Data.ProtoLens.FieldTypeDescriptor Data.ByteString.ByteString)+ (Data.ProtoLens.PlainField+ Data.ProtoLens.Optional (Data.ProtoLens.Field.field @"psbt")) ::+ Data.ProtoLens.FieldDescriptor ReadyForPsbtFunding+ in+ Data.Map.fromList+ [(Data.ProtoLens.Tag 1, fundingAddress__field_descriptor),+ (Data.ProtoLens.Tag 2, fundingAmount__field_descriptor),+ (Data.ProtoLens.Tag 3, psbt__field_descriptor)]+ unknownFields+ = Lens.Family2.Unchecked.lens+ _ReadyForPsbtFunding'_unknownFields+ (\ x__ y__ -> x__ {_ReadyForPsbtFunding'_unknownFields = y__})+ defMessage+ = ReadyForPsbtFunding'_constructor+ {_ReadyForPsbtFunding'fundingAddress = Data.ProtoLens.fieldDefault,+ _ReadyForPsbtFunding'fundingAmount = Data.ProtoLens.fieldDefault,+ _ReadyForPsbtFunding'psbt = Data.ProtoLens.fieldDefault,+ _ReadyForPsbtFunding'_unknownFields = []}+ parseMessage+ = let+ loop ::+ ReadyForPsbtFunding+ -> Data.ProtoLens.Encoding.Bytes.Parser ReadyForPsbtFunding+ loop x+ = do end <- Data.ProtoLens.Encoding.Bytes.atEnd+ if end then+ do (let missing = []+ in+ if Prelude.null missing then+ Prelude.return ()+ else+ Prelude.fail+ ((Prelude.++)+ "Missing required fields: "+ (Prelude.show (missing :: [Prelude.String]))))+ Prelude.return+ (Lens.Family2.over+ Data.ProtoLens.unknownFields (\ !t -> Prelude.reverse t) x)+ else+ do tag <- Data.ProtoLens.Encoding.Bytes.getVarInt+ case tag of+ 10+ -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (do value <- do len <- Data.ProtoLens.Encoding.Bytes.getVarInt+ Data.ProtoLens.Encoding.Bytes.getBytes+ (Prelude.fromIntegral len)+ Data.ProtoLens.Encoding.Bytes.runEither+ (case Data.Text.Encoding.decodeUtf8' value of+ (Prelude.Left err)+ -> Prelude.Left (Prelude.show err)+ (Prelude.Right r) -> Prelude.Right r))+ "funding_address"+ loop+ (Lens.Family2.set+ (Data.ProtoLens.Field.field @"fundingAddress") y x)+ 16+ -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (Prelude.fmap+ Prelude.fromIntegral+ Data.ProtoLens.Encoding.Bytes.getVarInt)+ "funding_amount"+ loop+ (Lens.Family2.set+ (Data.ProtoLens.Field.field @"fundingAmount") y x)+ 26+ -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (do len <- Data.ProtoLens.Encoding.Bytes.getVarInt+ Data.ProtoLens.Encoding.Bytes.getBytes+ (Prelude.fromIntegral len))+ "psbt"+ loop (Lens.Family2.set (Data.ProtoLens.Field.field @"psbt") y x)+ wire+ -> do !y <- Data.ProtoLens.Encoding.Wire.parseTaggedValueFromWire+ wire+ loop+ (Lens.Family2.over+ Data.ProtoLens.unknownFields (\ !t -> (:) y t) x)+ in+ (Data.ProtoLens.Encoding.Bytes.<?>)+ (do loop Data.ProtoLens.defMessage) "ReadyForPsbtFunding"+ buildMessage+ = \ _x+ -> (Data.Monoid.<>)+ (let+ _v+ = Lens.Family2.view+ (Data.ProtoLens.Field.field @"fundingAddress") _x+ in+ if (Prelude.==) _v Data.ProtoLens.fieldDefault then+ Data.Monoid.mempty+ else+ (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 10)+ ((Prelude..)+ (\ bs+ -> (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt+ (Prelude.fromIntegral (Data.ByteString.length bs)))+ (Data.ProtoLens.Encoding.Bytes.putBytes bs))+ Data.Text.Encoding.encodeUtf8 _v))+ ((Data.Monoid.<>)+ (let+ _v+ = Lens.Family2.view+ (Data.ProtoLens.Field.field @"fundingAmount") _x+ in+ if (Prelude.==) _v Data.ProtoLens.fieldDefault then+ Data.Monoid.mempty+ else+ (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 16)+ ((Prelude..)+ Data.ProtoLens.Encoding.Bytes.putVarInt Prelude.fromIntegral _v))+ ((Data.Monoid.<>)+ (let _v = Lens.Family2.view (Data.ProtoLens.Field.field @"psbt") _x+ in+ if (Prelude.==) _v Data.ProtoLens.fieldDefault then+ Data.Monoid.mempty+ else+ (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 26)+ ((\ bs+ -> (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt+ (Prelude.fromIntegral (Data.ByteString.length bs)))+ (Data.ProtoLens.Encoding.Bytes.putBytes bs))+ _v))+ (Data.ProtoLens.Encoding.Wire.buildFieldSet+ (Lens.Family2.view Data.ProtoLens.unknownFields _x))))+instance Control.DeepSeq.NFData ReadyForPsbtFunding where+ rnf+ = \ x__+ -> Control.DeepSeq.deepseq+ (_ReadyForPsbtFunding'_unknownFields x__)+ (Control.DeepSeq.deepseq+ (_ReadyForPsbtFunding'fundingAddress x__)+ (Control.DeepSeq.deepseq+ (_ReadyForPsbtFunding'fundingAmount x__)+ (Control.DeepSeq.deepseq (_ReadyForPsbtFunding'psbt x__) ())))+{- | Fields :+ + * 'Proto.Lightning_Fields.addr' @:: Lens' SendCoinsRequest Data.Text.Text@+ * 'Proto.Lightning_Fields.amount' @:: Lens' SendCoinsRequest Data.Int.Int64@+ * 'Proto.Lightning_Fields.targetConf' @:: Lens' SendCoinsRequest Data.Int.Int32@+ * 'Proto.Lightning_Fields.satPerVbyte' @:: Lens' SendCoinsRequest Data.Word.Word64@+ * 'Proto.Lightning_Fields.satPerByte' @:: Lens' SendCoinsRequest Data.Int.Int64@+ * 'Proto.Lightning_Fields.sendAll' @:: Lens' SendCoinsRequest Prelude.Bool@+ * 'Proto.Lightning_Fields.label' @:: Lens' SendCoinsRequest Data.Text.Text@+ * 'Proto.Lightning_Fields.minConfs' @:: Lens' SendCoinsRequest Data.Int.Int32@+ * 'Proto.Lightning_Fields.spendUnconfirmed' @:: Lens' SendCoinsRequest Prelude.Bool@ -}+data SendCoinsRequest+ = SendCoinsRequest'_constructor {_SendCoinsRequest'addr :: !Data.Text.Text,+ _SendCoinsRequest'amount :: !Data.Int.Int64,+ _SendCoinsRequest'targetConf :: !Data.Int.Int32,+ _SendCoinsRequest'satPerVbyte :: !Data.Word.Word64,+ _SendCoinsRequest'satPerByte :: !Data.Int.Int64,+ _SendCoinsRequest'sendAll :: !Prelude.Bool,+ _SendCoinsRequest'label :: !Data.Text.Text,+ _SendCoinsRequest'minConfs :: !Data.Int.Int32,+ _SendCoinsRequest'spendUnconfirmed :: !Prelude.Bool,+ _SendCoinsRequest'_unknownFields :: !Data.ProtoLens.FieldSet}+ deriving stock (Prelude.Eq, Prelude.Ord, GHC.Generics.Generic)+instance Prelude.Show SendCoinsRequest where+ showsPrec _ __x __s+ = Prelude.showChar+ '{'+ (Prelude.showString+ (Data.ProtoLens.showMessageShort __x) (Prelude.showChar '}' __s))+instance Text.PrettyPrint.GenericPretty.Out SendCoinsRequest+instance Data.ProtoLens.Field.HasField SendCoinsRequest "addr" Data.Text.Text where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _SendCoinsRequest'addr+ (\ x__ y__ -> x__ {_SendCoinsRequest'addr = y__}))+ Prelude.id+instance Data.ProtoLens.Field.HasField SendCoinsRequest "amount" Data.Int.Int64 where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _SendCoinsRequest'amount+ (\ x__ y__ -> x__ {_SendCoinsRequest'amount = y__}))+ Prelude.id+instance Data.ProtoLens.Field.HasField SendCoinsRequest "targetConf" Data.Int.Int32 where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _SendCoinsRequest'targetConf+ (\ x__ y__ -> x__ {_SendCoinsRequest'targetConf = y__}))+ Prelude.id+instance Data.ProtoLens.Field.HasField SendCoinsRequest "satPerVbyte" Data.Word.Word64 where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _SendCoinsRequest'satPerVbyte+ (\ x__ y__ -> x__ {_SendCoinsRequest'satPerVbyte = y__}))+ Prelude.id+instance Data.ProtoLens.Field.HasField SendCoinsRequest "satPerByte" Data.Int.Int64 where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _SendCoinsRequest'satPerByte+ (\ x__ y__ -> x__ {_SendCoinsRequest'satPerByte = y__}))+ Prelude.id+instance Data.ProtoLens.Field.HasField SendCoinsRequest "sendAll" Prelude.Bool where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _SendCoinsRequest'sendAll+ (\ x__ y__ -> x__ {_SendCoinsRequest'sendAll = y__}))+ Prelude.id+instance Data.ProtoLens.Field.HasField SendCoinsRequest "label" Data.Text.Text where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _SendCoinsRequest'label+ (\ x__ y__ -> x__ {_SendCoinsRequest'label = y__}))+ Prelude.id+instance Data.ProtoLens.Field.HasField SendCoinsRequest "minConfs" Data.Int.Int32 where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _SendCoinsRequest'minConfs+ (\ x__ y__ -> x__ {_SendCoinsRequest'minConfs = y__}))+ Prelude.id+instance Data.ProtoLens.Field.HasField SendCoinsRequest "spendUnconfirmed" Prelude.Bool where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _SendCoinsRequest'spendUnconfirmed+ (\ x__ y__ -> x__ {_SendCoinsRequest'spendUnconfirmed = y__}))+ Prelude.id+instance Data.ProtoLens.Message SendCoinsRequest where+ messageName _ = Data.Text.pack "lnrpc.SendCoinsRequest"+ packedMessageDescriptor _+ = "\n\+ \\DLESendCoinsRequest\DC2\DC2\n\+ \\EOTaddr\CAN\SOH \SOH(\tR\EOTaddr\DC2\SYN\n\+ \\ACKamount\CAN\STX \SOH(\ETXR\ACKamount\DC2\US\n\+ \\vtarget_conf\CAN\ETX \SOH(\ENQR\n\+ \targetConf\DC2\"\n\+ \\rsat_per_vbyte\CAN\EOT \SOH(\EOTR\vsatPerVbyte\DC2$\n\+ \\fsat_per_byte\CAN\ENQ \SOH(\ETXR\n\+ \satPerByteB\STX\CAN\SOH\DC2\EM\n\+ \\bsend_all\CAN\ACK \SOH(\bR\asendAll\DC2\DC4\n\+ \\ENQlabel\CAN\a \SOH(\tR\ENQlabel\DC2\ESC\n\+ \\tmin_confs\CAN\b \SOH(\ENQR\bminConfs\DC2+\n\+ \\DC1spend_unconfirmed\CAN\t \SOH(\bR\DLEspendUnconfirmed"+ packedFileDescriptor _ = packedFileDescriptor+ fieldsByTag+ = let+ addr__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "addr"+ (Data.ProtoLens.ScalarField Data.ProtoLens.StringField ::+ Data.ProtoLens.FieldTypeDescriptor Data.Text.Text)+ (Data.ProtoLens.PlainField+ Data.ProtoLens.Optional (Data.ProtoLens.Field.field @"addr")) ::+ Data.ProtoLens.FieldDescriptor SendCoinsRequest+ amount__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "amount"+ (Data.ProtoLens.ScalarField Data.ProtoLens.Int64Field ::+ Data.ProtoLens.FieldTypeDescriptor Data.Int.Int64)+ (Data.ProtoLens.PlainField+ Data.ProtoLens.Optional (Data.ProtoLens.Field.field @"amount")) ::+ Data.ProtoLens.FieldDescriptor SendCoinsRequest+ targetConf__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "target_conf"+ (Data.ProtoLens.ScalarField Data.ProtoLens.Int32Field ::+ Data.ProtoLens.FieldTypeDescriptor Data.Int.Int32)+ (Data.ProtoLens.PlainField+ Data.ProtoLens.Optional+ (Data.ProtoLens.Field.field @"targetConf")) ::+ Data.ProtoLens.FieldDescriptor SendCoinsRequest+ satPerVbyte__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "sat_per_vbyte"+ (Data.ProtoLens.ScalarField Data.ProtoLens.UInt64Field ::+ Data.ProtoLens.FieldTypeDescriptor Data.Word.Word64)+ (Data.ProtoLens.PlainField+ Data.ProtoLens.Optional+ (Data.ProtoLens.Field.field @"satPerVbyte")) ::+ Data.ProtoLens.FieldDescriptor SendCoinsRequest+ satPerByte__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "sat_per_byte"+ (Data.ProtoLens.ScalarField Data.ProtoLens.Int64Field ::+ Data.ProtoLens.FieldTypeDescriptor Data.Int.Int64)+ (Data.ProtoLens.PlainField+ Data.ProtoLens.Optional+ (Data.ProtoLens.Field.field @"satPerByte")) ::+ Data.ProtoLens.FieldDescriptor SendCoinsRequest+ sendAll__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "send_all"+ (Data.ProtoLens.ScalarField Data.ProtoLens.BoolField ::+ Data.ProtoLens.FieldTypeDescriptor Prelude.Bool)+ (Data.ProtoLens.PlainField+ Data.ProtoLens.Optional (Data.ProtoLens.Field.field @"sendAll")) ::+ Data.ProtoLens.FieldDescriptor SendCoinsRequest+ label__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "label"+ (Data.ProtoLens.ScalarField Data.ProtoLens.StringField ::+ Data.ProtoLens.FieldTypeDescriptor Data.Text.Text)+ (Data.ProtoLens.PlainField+ Data.ProtoLens.Optional (Data.ProtoLens.Field.field @"label")) ::+ Data.ProtoLens.FieldDescriptor SendCoinsRequest+ minConfs__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "min_confs"+ (Data.ProtoLens.ScalarField Data.ProtoLens.Int32Field ::+ Data.ProtoLens.FieldTypeDescriptor Data.Int.Int32)+ (Data.ProtoLens.PlainField+ Data.ProtoLens.Optional+ (Data.ProtoLens.Field.field @"minConfs")) ::+ Data.ProtoLens.FieldDescriptor SendCoinsRequest+ spendUnconfirmed__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "spend_unconfirmed"+ (Data.ProtoLens.ScalarField Data.ProtoLens.BoolField ::+ Data.ProtoLens.FieldTypeDescriptor Prelude.Bool)+ (Data.ProtoLens.PlainField+ Data.ProtoLens.Optional+ (Data.ProtoLens.Field.field @"spendUnconfirmed")) ::+ Data.ProtoLens.FieldDescriptor SendCoinsRequest+ in+ Data.Map.fromList+ [(Data.ProtoLens.Tag 1, addr__field_descriptor),+ (Data.ProtoLens.Tag 2, amount__field_descriptor),+ (Data.ProtoLens.Tag 3, targetConf__field_descriptor),+ (Data.ProtoLens.Tag 4, satPerVbyte__field_descriptor),+ (Data.ProtoLens.Tag 5, satPerByte__field_descriptor),+ (Data.ProtoLens.Tag 6, sendAll__field_descriptor),+ (Data.ProtoLens.Tag 7, label__field_descriptor),+ (Data.ProtoLens.Tag 8, minConfs__field_descriptor),+ (Data.ProtoLens.Tag 9, spendUnconfirmed__field_descriptor)]+ unknownFields+ = Lens.Family2.Unchecked.lens+ _SendCoinsRequest'_unknownFields+ (\ x__ y__ -> x__ {_SendCoinsRequest'_unknownFields = y__})+ defMessage+ = SendCoinsRequest'_constructor+ {_SendCoinsRequest'addr = Data.ProtoLens.fieldDefault,+ _SendCoinsRequest'amount = Data.ProtoLens.fieldDefault,+ _SendCoinsRequest'targetConf = Data.ProtoLens.fieldDefault,+ _SendCoinsRequest'satPerVbyte = Data.ProtoLens.fieldDefault,+ _SendCoinsRequest'satPerByte = Data.ProtoLens.fieldDefault,+ _SendCoinsRequest'sendAll = Data.ProtoLens.fieldDefault,+ _SendCoinsRequest'label = Data.ProtoLens.fieldDefault,+ _SendCoinsRequest'minConfs = Data.ProtoLens.fieldDefault,+ _SendCoinsRequest'spendUnconfirmed = Data.ProtoLens.fieldDefault,+ _SendCoinsRequest'_unknownFields = []}+ parseMessage+ = let+ loop ::+ SendCoinsRequest+ -> Data.ProtoLens.Encoding.Bytes.Parser SendCoinsRequest+ loop x+ = do end <- Data.ProtoLens.Encoding.Bytes.atEnd+ if end then+ do (let missing = []+ in+ if Prelude.null missing then+ Prelude.return ()+ else+ Prelude.fail+ ((Prelude.++)+ "Missing required fields: "+ (Prelude.show (missing :: [Prelude.String]))))+ Prelude.return+ (Lens.Family2.over+ Data.ProtoLens.unknownFields (\ !t -> Prelude.reverse t) x)+ else+ do tag <- Data.ProtoLens.Encoding.Bytes.getVarInt+ case tag of+ 10+ -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (do value <- do len <- Data.ProtoLens.Encoding.Bytes.getVarInt+ Data.ProtoLens.Encoding.Bytes.getBytes+ (Prelude.fromIntegral len)+ Data.ProtoLens.Encoding.Bytes.runEither+ (case Data.Text.Encoding.decodeUtf8' value of+ (Prelude.Left err)+ -> Prelude.Left (Prelude.show err)+ (Prelude.Right r) -> Prelude.Right r))+ "addr"+ loop (Lens.Family2.set (Data.ProtoLens.Field.field @"addr") y x)+ 16+ -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (Prelude.fmap+ Prelude.fromIntegral+ Data.ProtoLens.Encoding.Bytes.getVarInt)+ "amount"+ loop (Lens.Family2.set (Data.ProtoLens.Field.field @"amount") y x)+ 24+ -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (Prelude.fmap+ Prelude.fromIntegral+ Data.ProtoLens.Encoding.Bytes.getVarInt)+ "target_conf"+ loop+ (Lens.Family2.set (Data.ProtoLens.Field.field @"targetConf") y x)+ 32+ -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ Data.ProtoLens.Encoding.Bytes.getVarInt "sat_per_vbyte"+ loop+ (Lens.Family2.set (Data.ProtoLens.Field.field @"satPerVbyte") y x)+ 40+ -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (Prelude.fmap+ Prelude.fromIntegral+ Data.ProtoLens.Encoding.Bytes.getVarInt)+ "sat_per_byte"+ loop+ (Lens.Family2.set (Data.ProtoLens.Field.field @"satPerByte") y x)+ 48+ -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (Prelude.fmap+ ((Prelude./=) 0) Data.ProtoLens.Encoding.Bytes.getVarInt)+ "send_all"+ loop (Lens.Family2.set (Data.ProtoLens.Field.field @"sendAll") y x)+ 58+ -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (do value <- do len <- Data.ProtoLens.Encoding.Bytes.getVarInt+ Data.ProtoLens.Encoding.Bytes.getBytes+ (Prelude.fromIntegral len)+ Data.ProtoLens.Encoding.Bytes.runEither+ (case Data.Text.Encoding.decodeUtf8' value of+ (Prelude.Left err)+ -> Prelude.Left (Prelude.show err)+ (Prelude.Right r) -> Prelude.Right r))+ "label"+ loop (Lens.Family2.set (Data.ProtoLens.Field.field @"label") y x)+ 64+ -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (Prelude.fmap+ Prelude.fromIntegral+ Data.ProtoLens.Encoding.Bytes.getVarInt)+ "min_confs"+ loop+ (Lens.Family2.set (Data.ProtoLens.Field.field @"minConfs") y x)+ 72+ -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (Prelude.fmap+ ((Prelude./=) 0) Data.ProtoLens.Encoding.Bytes.getVarInt)+ "spend_unconfirmed"+ loop+ (Lens.Family2.set+ (Data.ProtoLens.Field.field @"spendUnconfirmed") y x)+ wire+ -> do !y <- Data.ProtoLens.Encoding.Wire.parseTaggedValueFromWire+ wire+ loop+ (Lens.Family2.over+ Data.ProtoLens.unknownFields (\ !t -> (:) y t) x)+ in+ (Data.ProtoLens.Encoding.Bytes.<?>)+ (do loop Data.ProtoLens.defMessage) "SendCoinsRequest"+ buildMessage+ = \ _x+ -> (Data.Monoid.<>)+ (let _v = Lens.Family2.view (Data.ProtoLens.Field.field @"addr") _x+ in+ if (Prelude.==) _v Data.ProtoLens.fieldDefault then+ Data.Monoid.mempty+ else+ (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 10)+ ((Prelude..)+ (\ bs+ -> (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt+ (Prelude.fromIntegral (Data.ByteString.length bs)))+ (Data.ProtoLens.Encoding.Bytes.putBytes bs))+ Data.Text.Encoding.encodeUtf8 _v))+ ((Data.Monoid.<>)+ (let+ _v = Lens.Family2.view (Data.ProtoLens.Field.field @"amount") _x+ in+ if (Prelude.==) _v Data.ProtoLens.fieldDefault then+ Data.Monoid.mempty+ else+ (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 16)+ ((Prelude..)+ Data.ProtoLens.Encoding.Bytes.putVarInt Prelude.fromIntegral _v))+ ((Data.Monoid.<>)+ (let+ _v+ = Lens.Family2.view (Data.ProtoLens.Field.field @"targetConf") _x+ in+ if (Prelude.==) _v Data.ProtoLens.fieldDefault then+ Data.Monoid.mempty+ else+ (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 24)+ ((Prelude..)+ Data.ProtoLens.Encoding.Bytes.putVarInt Prelude.fromIntegral _v))+ ((Data.Monoid.<>)+ (let+ _v+ = Lens.Family2.view (Data.ProtoLens.Field.field @"satPerVbyte") _x+ in+ if (Prelude.==) _v Data.ProtoLens.fieldDefault then+ Data.Monoid.mempty+ else+ (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 32)+ (Data.ProtoLens.Encoding.Bytes.putVarInt _v))+ ((Data.Monoid.<>)+ (let+ _v+ = Lens.Family2.view (Data.ProtoLens.Field.field @"satPerByte") _x+ in+ if (Prelude.==) _v Data.ProtoLens.fieldDefault then+ Data.Monoid.mempty+ else+ (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 40)+ ((Prelude..)+ Data.ProtoLens.Encoding.Bytes.putVarInt Prelude.fromIntegral+ _v))+ ((Data.Monoid.<>)+ (let+ _v = Lens.Family2.view (Data.ProtoLens.Field.field @"sendAll") _x+ in+ if (Prelude.==) _v Data.ProtoLens.fieldDefault then+ Data.Monoid.mempty+ else+ (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 48)+ ((Prelude..)+ Data.ProtoLens.Encoding.Bytes.putVarInt+ (\ b -> if b then 1 else 0) _v))+ ((Data.Monoid.<>)+ (let+ _v = Lens.Family2.view (Data.ProtoLens.Field.field @"label") _x+ in+ if (Prelude.==) _v Data.ProtoLens.fieldDefault then+ Data.Monoid.mempty+ else+ (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 58)+ ((Prelude..)+ (\ bs+ -> (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt+ (Prelude.fromIntegral+ (Data.ByteString.length bs)))+ (Data.ProtoLens.Encoding.Bytes.putBytes bs))+ Data.Text.Encoding.encodeUtf8 _v))+ ((Data.Monoid.<>)+ (let+ _v+ = Lens.Family2.view+ (Data.ProtoLens.Field.field @"minConfs") _x+ in+ if (Prelude.==) _v Data.ProtoLens.fieldDefault then+ Data.Monoid.mempty+ else+ (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 64)+ ((Prelude..)+ Data.ProtoLens.Encoding.Bytes.putVarInt+ Prelude.fromIntegral _v))+ ((Data.Monoid.<>)+ (let+ _v+ = Lens.Family2.view+ (Data.ProtoLens.Field.field @"spendUnconfirmed") _x+ in+ if (Prelude.==) _v Data.ProtoLens.fieldDefault then+ Data.Monoid.mempty+ else+ (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 72)+ ((Prelude..)+ Data.ProtoLens.Encoding.Bytes.putVarInt+ (\ b -> if b then 1 else 0) _v))+ (Data.ProtoLens.Encoding.Wire.buildFieldSet+ (Lens.Family2.view Data.ProtoLens.unknownFields _x))))))))))+instance Control.DeepSeq.NFData SendCoinsRequest where+ rnf+ = \ x__+ -> Control.DeepSeq.deepseq+ (_SendCoinsRequest'_unknownFields x__)+ (Control.DeepSeq.deepseq+ (_SendCoinsRequest'addr x__)+ (Control.DeepSeq.deepseq+ (_SendCoinsRequest'amount x__)+ (Control.DeepSeq.deepseq+ (_SendCoinsRequest'targetConf x__)+ (Control.DeepSeq.deepseq+ (_SendCoinsRequest'satPerVbyte x__)+ (Control.DeepSeq.deepseq+ (_SendCoinsRequest'satPerByte x__)+ (Control.DeepSeq.deepseq+ (_SendCoinsRequest'sendAll x__)+ (Control.DeepSeq.deepseq+ (_SendCoinsRequest'label x__)+ (Control.DeepSeq.deepseq+ (_SendCoinsRequest'minConfs x__)+ (Control.DeepSeq.deepseq+ (_SendCoinsRequest'spendUnconfirmed x__) ())))))))))+{- | Fields :+ + * 'Proto.Lightning_Fields.txid' @:: Lens' SendCoinsResponse Data.Text.Text@ -}+data SendCoinsResponse+ = SendCoinsResponse'_constructor {_SendCoinsResponse'txid :: !Data.Text.Text,+ _SendCoinsResponse'_unknownFields :: !Data.ProtoLens.FieldSet}+ deriving stock (Prelude.Eq, Prelude.Ord, GHC.Generics.Generic)+instance Prelude.Show SendCoinsResponse where+ showsPrec _ __x __s+ = Prelude.showChar+ '{'+ (Prelude.showString+ (Data.ProtoLens.showMessageShort __x) (Prelude.showChar '}' __s))+instance Text.PrettyPrint.GenericPretty.Out SendCoinsResponse+instance Data.ProtoLens.Field.HasField SendCoinsResponse "txid" Data.Text.Text where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _SendCoinsResponse'txid+ (\ x__ y__ -> x__ {_SendCoinsResponse'txid = y__}))+ Prelude.id+instance Data.ProtoLens.Message SendCoinsResponse where+ messageName _ = Data.Text.pack "lnrpc.SendCoinsResponse"+ packedMessageDescriptor _+ = "\n\+ \\DC1SendCoinsResponse\DC2\DC2\n\+ \\EOTtxid\CAN\SOH \SOH(\tR\EOTtxid"+ packedFileDescriptor _ = packedFileDescriptor+ fieldsByTag+ = let+ txid__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "txid"+ (Data.ProtoLens.ScalarField Data.ProtoLens.StringField ::+ Data.ProtoLens.FieldTypeDescriptor Data.Text.Text)+ (Data.ProtoLens.PlainField+ Data.ProtoLens.Optional (Data.ProtoLens.Field.field @"txid")) ::+ Data.ProtoLens.FieldDescriptor SendCoinsResponse+ in+ Data.Map.fromList [(Data.ProtoLens.Tag 1, txid__field_descriptor)]+ unknownFields+ = Lens.Family2.Unchecked.lens+ _SendCoinsResponse'_unknownFields+ (\ x__ y__ -> x__ {_SendCoinsResponse'_unknownFields = y__})+ defMessage+ = SendCoinsResponse'_constructor+ {_SendCoinsResponse'txid = Data.ProtoLens.fieldDefault,+ _SendCoinsResponse'_unknownFields = []}+ parseMessage+ = let+ loop ::+ SendCoinsResponse+ -> Data.ProtoLens.Encoding.Bytes.Parser SendCoinsResponse+ loop x+ = do end <- Data.ProtoLens.Encoding.Bytes.atEnd+ if end then+ do (let missing = []+ in+ if Prelude.null missing then+ Prelude.return ()+ else+ Prelude.fail+ ((Prelude.++)+ "Missing required fields: "+ (Prelude.show (missing :: [Prelude.String]))))+ Prelude.return+ (Lens.Family2.over+ Data.ProtoLens.unknownFields (\ !t -> Prelude.reverse t) x)+ else+ do tag <- Data.ProtoLens.Encoding.Bytes.getVarInt+ case tag of+ 10+ -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (do value <- do len <- Data.ProtoLens.Encoding.Bytes.getVarInt+ Data.ProtoLens.Encoding.Bytes.getBytes+ (Prelude.fromIntegral len)+ Data.ProtoLens.Encoding.Bytes.runEither+ (case Data.Text.Encoding.decodeUtf8' value of+ (Prelude.Left err)+ -> Prelude.Left (Prelude.show err)+ (Prelude.Right r) -> Prelude.Right r))+ "txid"+ loop (Lens.Family2.set (Data.ProtoLens.Field.field @"txid") y x)+ wire+ -> do !y <- Data.ProtoLens.Encoding.Wire.parseTaggedValueFromWire+ wire+ loop+ (Lens.Family2.over+ Data.ProtoLens.unknownFields (\ !t -> (:) y t) x)+ in+ (Data.ProtoLens.Encoding.Bytes.<?>)+ (do loop Data.ProtoLens.defMessage) "SendCoinsResponse"+ buildMessage+ = \ _x+ -> (Data.Monoid.<>)+ (let _v = Lens.Family2.view (Data.ProtoLens.Field.field @"txid") _x+ in+ if (Prelude.==) _v Data.ProtoLens.fieldDefault then+ Data.Monoid.mempty+ else+ (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 10)+ ((Prelude..)+ (\ bs+ -> (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt+ (Prelude.fromIntegral (Data.ByteString.length bs)))+ (Data.ProtoLens.Encoding.Bytes.putBytes bs))+ Data.Text.Encoding.encodeUtf8 _v))+ (Data.ProtoLens.Encoding.Wire.buildFieldSet+ (Lens.Family2.view Data.ProtoLens.unknownFields _x))+instance Control.DeepSeq.NFData SendCoinsResponse where+ rnf+ = \ x__+ -> Control.DeepSeq.deepseq+ (_SendCoinsResponse'_unknownFields x__)+ (Control.DeepSeq.deepseq (_SendCoinsResponse'txid x__) ())+{- | Fields :+ + * 'Proto.Lightning_Fields.peer' @:: Lens' SendCustomMessageRequest Data.ByteString.ByteString@+ * 'Proto.Lightning_Fields.type'' @:: Lens' SendCustomMessageRequest Data.Word.Word32@+ * 'Proto.Lightning_Fields.data'' @:: Lens' SendCustomMessageRequest Data.ByteString.ByteString@ -}+data SendCustomMessageRequest+ = SendCustomMessageRequest'_constructor {_SendCustomMessageRequest'peer :: !Data.ByteString.ByteString,+ _SendCustomMessageRequest'type' :: !Data.Word.Word32,+ _SendCustomMessageRequest'data' :: !Data.ByteString.ByteString,+ _SendCustomMessageRequest'_unknownFields :: !Data.ProtoLens.FieldSet}+ deriving stock (Prelude.Eq, Prelude.Ord, GHC.Generics.Generic)+instance Prelude.Show SendCustomMessageRequest where+ showsPrec _ __x __s+ = Prelude.showChar+ '{'+ (Prelude.showString+ (Data.ProtoLens.showMessageShort __x) (Prelude.showChar '}' __s))+instance Text.PrettyPrint.GenericPretty.Out SendCustomMessageRequest+instance Data.ProtoLens.Field.HasField SendCustomMessageRequest "peer" Data.ByteString.ByteString where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _SendCustomMessageRequest'peer+ (\ x__ y__ -> x__ {_SendCustomMessageRequest'peer = y__}))+ Prelude.id+instance Data.ProtoLens.Field.HasField SendCustomMessageRequest "type'" Data.Word.Word32 where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _SendCustomMessageRequest'type'+ (\ x__ y__ -> x__ {_SendCustomMessageRequest'type' = y__}))+ Prelude.id+instance Data.ProtoLens.Field.HasField SendCustomMessageRequest "data'" Data.ByteString.ByteString where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _SendCustomMessageRequest'data'+ (\ x__ y__ -> x__ {_SendCustomMessageRequest'data' = y__}))+ Prelude.id+instance Data.ProtoLens.Message SendCustomMessageRequest where+ messageName _ = Data.Text.pack "lnrpc.SendCustomMessageRequest"+ packedMessageDescriptor _+ = "\n\+ \\CANSendCustomMessageRequest\DC2\DC2\n\+ \\EOTpeer\CAN\SOH \SOH(\fR\EOTpeer\DC2\DC2\n\+ \\EOTtype\CAN\STX \SOH(\rR\EOTtype\DC2\DC2\n\+ \\EOTdata\CAN\ETX \SOH(\fR\EOTdata"+ packedFileDescriptor _ = packedFileDescriptor+ fieldsByTag+ = let+ peer__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "peer"+ (Data.ProtoLens.ScalarField Data.ProtoLens.BytesField ::+ Data.ProtoLens.FieldTypeDescriptor Data.ByteString.ByteString)+ (Data.ProtoLens.PlainField+ Data.ProtoLens.Optional (Data.ProtoLens.Field.field @"peer")) ::+ Data.ProtoLens.FieldDescriptor SendCustomMessageRequest+ type'__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "type"+ (Data.ProtoLens.ScalarField Data.ProtoLens.UInt32Field ::+ Data.ProtoLens.FieldTypeDescriptor Data.Word.Word32)+ (Data.ProtoLens.PlainField+ Data.ProtoLens.Optional (Data.ProtoLens.Field.field @"type'")) ::+ Data.ProtoLens.FieldDescriptor SendCustomMessageRequest+ data'__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "data"+ (Data.ProtoLens.ScalarField Data.ProtoLens.BytesField ::+ Data.ProtoLens.FieldTypeDescriptor Data.ByteString.ByteString)+ (Data.ProtoLens.PlainField+ Data.ProtoLens.Optional (Data.ProtoLens.Field.field @"data'")) ::+ Data.ProtoLens.FieldDescriptor SendCustomMessageRequest+ in+ Data.Map.fromList+ [(Data.ProtoLens.Tag 1, peer__field_descriptor),+ (Data.ProtoLens.Tag 2, type'__field_descriptor),+ (Data.ProtoLens.Tag 3, data'__field_descriptor)]+ unknownFields+ = Lens.Family2.Unchecked.lens+ _SendCustomMessageRequest'_unknownFields+ (\ x__ y__ -> x__ {_SendCustomMessageRequest'_unknownFields = y__})+ defMessage+ = SendCustomMessageRequest'_constructor+ {_SendCustomMessageRequest'peer = Data.ProtoLens.fieldDefault,+ _SendCustomMessageRequest'type' = Data.ProtoLens.fieldDefault,+ _SendCustomMessageRequest'data' = Data.ProtoLens.fieldDefault,+ _SendCustomMessageRequest'_unknownFields = []}+ parseMessage+ = let+ loop ::+ SendCustomMessageRequest+ -> Data.ProtoLens.Encoding.Bytes.Parser SendCustomMessageRequest+ loop x+ = do end <- Data.ProtoLens.Encoding.Bytes.atEnd+ if end then+ do (let missing = []+ in+ if Prelude.null missing then+ Prelude.return ()+ else+ Prelude.fail+ ((Prelude.++)+ "Missing required fields: "+ (Prelude.show (missing :: [Prelude.String]))))+ Prelude.return+ (Lens.Family2.over+ Data.ProtoLens.unknownFields (\ !t -> Prelude.reverse t) x)+ else+ do tag <- Data.ProtoLens.Encoding.Bytes.getVarInt+ case tag of+ 10+ -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (do len <- Data.ProtoLens.Encoding.Bytes.getVarInt+ Data.ProtoLens.Encoding.Bytes.getBytes+ (Prelude.fromIntegral len))+ "peer"+ loop (Lens.Family2.set (Data.ProtoLens.Field.field @"peer") y x)+ 16+ -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (Prelude.fmap+ Prelude.fromIntegral+ Data.ProtoLens.Encoding.Bytes.getVarInt)+ "type"+ loop (Lens.Family2.set (Data.ProtoLens.Field.field @"type'") y x)+ 26+ -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (do len <- Data.ProtoLens.Encoding.Bytes.getVarInt+ Data.ProtoLens.Encoding.Bytes.getBytes+ (Prelude.fromIntegral len))+ "data"+ loop (Lens.Family2.set (Data.ProtoLens.Field.field @"data'") y x)+ wire+ -> do !y <- Data.ProtoLens.Encoding.Wire.parseTaggedValueFromWire+ wire+ loop+ (Lens.Family2.over+ Data.ProtoLens.unknownFields (\ !t -> (:) y t) x)+ in+ (Data.ProtoLens.Encoding.Bytes.<?>)+ (do loop Data.ProtoLens.defMessage) "SendCustomMessageRequest"+ buildMessage+ = \ _x+ -> (Data.Monoid.<>)+ (let _v = Lens.Family2.view (Data.ProtoLens.Field.field @"peer") _x+ in+ if (Prelude.==) _v Data.ProtoLens.fieldDefault then+ Data.Monoid.mempty+ else+ (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 10)+ ((\ bs+ -> (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt+ (Prelude.fromIntegral (Data.ByteString.length bs)))+ (Data.ProtoLens.Encoding.Bytes.putBytes bs))+ _v))+ ((Data.Monoid.<>)+ (let+ _v = Lens.Family2.view (Data.ProtoLens.Field.field @"type'") _x+ in+ if (Prelude.==) _v Data.ProtoLens.fieldDefault then+ Data.Monoid.mempty+ else+ (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 16)+ ((Prelude..)+ Data.ProtoLens.Encoding.Bytes.putVarInt Prelude.fromIntegral _v))+ ((Data.Monoid.<>)+ (let+ _v = Lens.Family2.view (Data.ProtoLens.Field.field @"data'") _x+ in+ if (Prelude.==) _v Data.ProtoLens.fieldDefault then+ Data.Monoid.mempty+ else+ (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 26)+ ((\ bs+ -> (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt+ (Prelude.fromIntegral (Data.ByteString.length bs)))+ (Data.ProtoLens.Encoding.Bytes.putBytes bs))+ _v))+ (Data.ProtoLens.Encoding.Wire.buildFieldSet+ (Lens.Family2.view Data.ProtoLens.unknownFields _x))))+instance Control.DeepSeq.NFData SendCustomMessageRequest where+ rnf+ = \ x__+ -> Control.DeepSeq.deepseq+ (_SendCustomMessageRequest'_unknownFields x__)+ (Control.DeepSeq.deepseq+ (_SendCustomMessageRequest'peer x__)+ (Control.DeepSeq.deepseq+ (_SendCustomMessageRequest'type' x__)+ (Control.DeepSeq.deepseq+ (_SendCustomMessageRequest'data' x__) ())))+{- | Fields :+ -}+data SendCustomMessageResponse+ = SendCustomMessageResponse'_constructor {_SendCustomMessageResponse'_unknownFields :: !Data.ProtoLens.FieldSet}+ deriving stock (Prelude.Eq, Prelude.Ord, GHC.Generics.Generic)+instance Prelude.Show SendCustomMessageResponse where+ showsPrec _ __x __s+ = Prelude.showChar+ '{'+ (Prelude.showString+ (Data.ProtoLens.showMessageShort __x) (Prelude.showChar '}' __s))+instance Text.PrettyPrint.GenericPretty.Out SendCustomMessageResponse+instance Data.ProtoLens.Message SendCustomMessageResponse where+ messageName _ = Data.Text.pack "lnrpc.SendCustomMessageResponse"+ packedMessageDescriptor _+ = "\n\+ \\EMSendCustomMessageResponse"+ packedFileDescriptor _ = packedFileDescriptor+ fieldsByTag = let in Data.Map.fromList []+ unknownFields+ = Lens.Family2.Unchecked.lens+ _SendCustomMessageResponse'_unknownFields+ (\ x__ y__+ -> x__ {_SendCustomMessageResponse'_unknownFields = y__})+ defMessage+ = SendCustomMessageResponse'_constructor+ {_SendCustomMessageResponse'_unknownFields = []}+ parseMessage+ = let+ loop ::+ SendCustomMessageResponse+ -> Data.ProtoLens.Encoding.Bytes.Parser SendCustomMessageResponse+ loop x+ = do end <- Data.ProtoLens.Encoding.Bytes.atEnd+ if end then+ do (let missing = []+ in+ if Prelude.null missing then+ Prelude.return ()+ else+ Prelude.fail+ ((Prelude.++)+ "Missing required fields: "+ (Prelude.show (missing :: [Prelude.String]))))+ Prelude.return+ (Lens.Family2.over+ Data.ProtoLens.unknownFields (\ !t -> Prelude.reverse t) x)+ else+ do tag <- Data.ProtoLens.Encoding.Bytes.getVarInt+ case tag of {+ wire+ -> do !y <- Data.ProtoLens.Encoding.Wire.parseTaggedValueFromWire+ wire+ loop+ (Lens.Family2.over+ Data.ProtoLens.unknownFields (\ !t -> (:) y t) x) }+ in+ (Data.ProtoLens.Encoding.Bytes.<?>)+ (do loop Data.ProtoLens.defMessage) "SendCustomMessageResponse"+ buildMessage+ = \ _x+ -> Data.ProtoLens.Encoding.Wire.buildFieldSet+ (Lens.Family2.view Data.ProtoLens.unknownFields _x)+instance Control.DeepSeq.NFData SendCustomMessageResponse where+ rnf+ = \ x__+ -> Control.DeepSeq.deepseq+ (_SendCustomMessageResponse'_unknownFields x__) ()+{- | Fields :+ + * 'Proto.Lightning_Fields.addrToAmount' @:: Lens' SendManyRequest (Data.Map.Map Data.Text.Text Data.Int.Int64)@+ * 'Proto.Lightning_Fields.targetConf' @:: Lens' SendManyRequest Data.Int.Int32@+ * 'Proto.Lightning_Fields.satPerVbyte' @:: Lens' SendManyRequest Data.Word.Word64@+ * 'Proto.Lightning_Fields.satPerByte' @:: Lens' SendManyRequest Data.Int.Int64@+ * 'Proto.Lightning_Fields.label' @:: Lens' SendManyRequest Data.Text.Text@+ * 'Proto.Lightning_Fields.minConfs' @:: Lens' SendManyRequest Data.Int.Int32@+ * 'Proto.Lightning_Fields.spendUnconfirmed' @:: Lens' SendManyRequest Prelude.Bool@ -}+data SendManyRequest+ = SendManyRequest'_constructor {_SendManyRequest'addrToAmount :: !(Data.Map.Map Data.Text.Text Data.Int.Int64),+ _SendManyRequest'targetConf :: !Data.Int.Int32,+ _SendManyRequest'satPerVbyte :: !Data.Word.Word64,+ _SendManyRequest'satPerByte :: !Data.Int.Int64,+ _SendManyRequest'label :: !Data.Text.Text,+ _SendManyRequest'minConfs :: !Data.Int.Int32,+ _SendManyRequest'spendUnconfirmed :: !Prelude.Bool,+ _SendManyRequest'_unknownFields :: !Data.ProtoLens.FieldSet}+ deriving stock (Prelude.Eq, Prelude.Ord, GHC.Generics.Generic)+instance Prelude.Show SendManyRequest where+ showsPrec _ __x __s+ = Prelude.showChar+ '{'+ (Prelude.showString+ (Data.ProtoLens.showMessageShort __x) (Prelude.showChar '}' __s))+instance Text.PrettyPrint.GenericPretty.Out SendManyRequest+instance Data.ProtoLens.Field.HasField SendManyRequest "addrToAmount" (Data.Map.Map Data.Text.Text Data.Int.Int64) where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _SendManyRequest'addrToAmount+ (\ x__ y__ -> x__ {_SendManyRequest'addrToAmount = y__}))+ Prelude.id+instance Data.ProtoLens.Field.HasField SendManyRequest "targetConf" Data.Int.Int32 where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _SendManyRequest'targetConf+ (\ x__ y__ -> x__ {_SendManyRequest'targetConf = y__}))+ Prelude.id+instance Data.ProtoLens.Field.HasField SendManyRequest "satPerVbyte" Data.Word.Word64 where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _SendManyRequest'satPerVbyte+ (\ x__ y__ -> x__ {_SendManyRequest'satPerVbyte = y__}))+ Prelude.id+instance Data.ProtoLens.Field.HasField SendManyRequest "satPerByte" Data.Int.Int64 where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _SendManyRequest'satPerByte+ (\ x__ y__ -> x__ {_SendManyRequest'satPerByte = y__}))+ Prelude.id+instance Data.ProtoLens.Field.HasField SendManyRequest "label" Data.Text.Text where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _SendManyRequest'label+ (\ x__ y__ -> x__ {_SendManyRequest'label = y__}))+ Prelude.id+instance Data.ProtoLens.Field.HasField SendManyRequest "minConfs" Data.Int.Int32 where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _SendManyRequest'minConfs+ (\ x__ y__ -> x__ {_SendManyRequest'minConfs = y__}))+ Prelude.id+instance Data.ProtoLens.Field.HasField SendManyRequest "spendUnconfirmed" Prelude.Bool where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _SendManyRequest'spendUnconfirmed+ (\ x__ y__ -> x__ {_SendManyRequest'spendUnconfirmed = y__}))+ Prelude.id+instance Data.ProtoLens.Message SendManyRequest where+ messageName _ = Data.Text.pack "lnrpc.SendManyRequest"+ packedMessageDescriptor _+ = "\n\+ \\SISendManyRequest\DC2L\n\+ \\fAddrToAmount\CAN\SOH \ETX(\v2(.lnrpc.SendManyRequest.AddrToAmountEntryR\fAddrToAmount\DC2\US\n\+ \\vtarget_conf\CAN\ETX \SOH(\ENQR\n\+ \targetConf\DC2\"\n\+ \\rsat_per_vbyte\CAN\EOT \SOH(\EOTR\vsatPerVbyte\DC2$\n\+ \\fsat_per_byte\CAN\ENQ \SOH(\ETXR\n\+ \satPerByteB\STX\CAN\SOH\DC2\DC4\n\+ \\ENQlabel\CAN\ACK \SOH(\tR\ENQlabel\DC2\ESC\n\+ \\tmin_confs\CAN\a \SOH(\ENQR\bminConfs\DC2+\n\+ \\DC1spend_unconfirmed\CAN\b \SOH(\bR\DLEspendUnconfirmed\SUB?\n\+ \\DC1AddrToAmountEntry\DC2\DLE\n\+ \\ETXkey\CAN\SOH \SOH(\tR\ETXkey\DC2\DC4\n\+ \\ENQvalue\CAN\STX \SOH(\ETXR\ENQvalue:\STX8\SOH"+ packedFileDescriptor _ = packedFileDescriptor+ fieldsByTag+ = let+ addrToAmount__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "AddrToAmount"+ (Data.ProtoLens.MessageField Data.ProtoLens.MessageType ::+ Data.ProtoLens.FieldTypeDescriptor SendManyRequest'AddrToAmountEntry)+ (Data.ProtoLens.MapField+ (Data.ProtoLens.Field.field @"key")+ (Data.ProtoLens.Field.field @"value")+ (Data.ProtoLens.Field.field @"addrToAmount")) ::+ Data.ProtoLens.FieldDescriptor SendManyRequest+ targetConf__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "target_conf"+ (Data.ProtoLens.ScalarField Data.ProtoLens.Int32Field ::+ Data.ProtoLens.FieldTypeDescriptor Data.Int.Int32)+ (Data.ProtoLens.PlainField+ Data.ProtoLens.Optional+ (Data.ProtoLens.Field.field @"targetConf")) ::+ Data.ProtoLens.FieldDescriptor SendManyRequest+ satPerVbyte__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "sat_per_vbyte"+ (Data.ProtoLens.ScalarField Data.ProtoLens.UInt64Field ::+ Data.ProtoLens.FieldTypeDescriptor Data.Word.Word64)+ (Data.ProtoLens.PlainField+ Data.ProtoLens.Optional+ (Data.ProtoLens.Field.field @"satPerVbyte")) ::+ Data.ProtoLens.FieldDescriptor SendManyRequest+ satPerByte__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "sat_per_byte"+ (Data.ProtoLens.ScalarField Data.ProtoLens.Int64Field ::+ Data.ProtoLens.FieldTypeDescriptor Data.Int.Int64)+ (Data.ProtoLens.PlainField+ Data.ProtoLens.Optional+ (Data.ProtoLens.Field.field @"satPerByte")) ::+ Data.ProtoLens.FieldDescriptor SendManyRequest+ label__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "label"+ (Data.ProtoLens.ScalarField Data.ProtoLens.StringField ::+ Data.ProtoLens.FieldTypeDescriptor Data.Text.Text)+ (Data.ProtoLens.PlainField+ Data.ProtoLens.Optional (Data.ProtoLens.Field.field @"label")) ::+ Data.ProtoLens.FieldDescriptor SendManyRequest+ minConfs__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "min_confs"+ (Data.ProtoLens.ScalarField Data.ProtoLens.Int32Field ::+ Data.ProtoLens.FieldTypeDescriptor Data.Int.Int32)+ (Data.ProtoLens.PlainField+ Data.ProtoLens.Optional+ (Data.ProtoLens.Field.field @"minConfs")) ::+ Data.ProtoLens.FieldDescriptor SendManyRequest+ spendUnconfirmed__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "spend_unconfirmed"+ (Data.ProtoLens.ScalarField Data.ProtoLens.BoolField ::+ Data.ProtoLens.FieldTypeDescriptor Prelude.Bool)+ (Data.ProtoLens.PlainField+ Data.ProtoLens.Optional+ (Data.ProtoLens.Field.field @"spendUnconfirmed")) ::+ Data.ProtoLens.FieldDescriptor SendManyRequest+ in+ Data.Map.fromList+ [(Data.ProtoLens.Tag 1, addrToAmount__field_descriptor),+ (Data.ProtoLens.Tag 3, targetConf__field_descriptor),+ (Data.ProtoLens.Tag 4, satPerVbyte__field_descriptor),+ (Data.ProtoLens.Tag 5, satPerByte__field_descriptor),+ (Data.ProtoLens.Tag 6, label__field_descriptor),+ (Data.ProtoLens.Tag 7, minConfs__field_descriptor),+ (Data.ProtoLens.Tag 8, spendUnconfirmed__field_descriptor)]+ unknownFields+ = Lens.Family2.Unchecked.lens+ _SendManyRequest'_unknownFields+ (\ x__ y__ -> x__ {_SendManyRequest'_unknownFields = y__})+ defMessage+ = SendManyRequest'_constructor+ {_SendManyRequest'addrToAmount = Data.Map.empty,+ _SendManyRequest'targetConf = Data.ProtoLens.fieldDefault,+ _SendManyRequest'satPerVbyte = Data.ProtoLens.fieldDefault,+ _SendManyRequest'satPerByte = Data.ProtoLens.fieldDefault,+ _SendManyRequest'label = Data.ProtoLens.fieldDefault,+ _SendManyRequest'minConfs = Data.ProtoLens.fieldDefault,+ _SendManyRequest'spendUnconfirmed = Data.ProtoLens.fieldDefault,+ _SendManyRequest'_unknownFields = []}+ parseMessage+ = let+ loop ::+ SendManyRequest+ -> Data.ProtoLens.Encoding.Bytes.Parser SendManyRequest+ loop x+ = do end <- Data.ProtoLens.Encoding.Bytes.atEnd+ if end then+ do (let missing = []+ in+ if Prelude.null missing then+ Prelude.return ()+ else+ Prelude.fail+ ((Prelude.++)+ "Missing required fields: "+ (Prelude.show (missing :: [Prelude.String]))))+ Prelude.return+ (Lens.Family2.over+ Data.ProtoLens.unknownFields (\ !t -> Prelude.reverse t) x)+ else+ do tag <- Data.ProtoLens.Encoding.Bytes.getVarInt+ case tag of+ 10+ -> do !(entry :: SendManyRequest'AddrToAmountEntry) <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (do len <- Data.ProtoLens.Encoding.Bytes.getVarInt+ Data.ProtoLens.Encoding.Bytes.isolate+ (Prelude.fromIntegral+ len)+ Data.ProtoLens.parseMessage)+ "AddrToAmount"+ (let+ key = Lens.Family2.view (Data.ProtoLens.Field.field @"key") entry+ value+ = Lens.Family2.view (Data.ProtoLens.Field.field @"value") entry+ in+ loop+ (Lens.Family2.over+ (Data.ProtoLens.Field.field @"addrToAmount")+ (\ !t -> Data.Map.insert key value t) x))+ 24+ -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (Prelude.fmap+ Prelude.fromIntegral+ Data.ProtoLens.Encoding.Bytes.getVarInt)+ "target_conf"+ loop+ (Lens.Family2.set (Data.ProtoLens.Field.field @"targetConf") y x)+ 32+ -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ Data.ProtoLens.Encoding.Bytes.getVarInt "sat_per_vbyte"+ loop+ (Lens.Family2.set (Data.ProtoLens.Field.field @"satPerVbyte") y x)+ 40+ -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (Prelude.fmap+ Prelude.fromIntegral+ Data.ProtoLens.Encoding.Bytes.getVarInt)+ "sat_per_byte"+ loop+ (Lens.Family2.set (Data.ProtoLens.Field.field @"satPerByte") y x)+ 50+ -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (do value <- do len <- Data.ProtoLens.Encoding.Bytes.getVarInt+ Data.ProtoLens.Encoding.Bytes.getBytes+ (Prelude.fromIntegral len)+ Data.ProtoLens.Encoding.Bytes.runEither+ (case Data.Text.Encoding.decodeUtf8' value of+ (Prelude.Left err)+ -> Prelude.Left (Prelude.show err)+ (Prelude.Right r) -> Prelude.Right r))+ "label"+ loop (Lens.Family2.set (Data.ProtoLens.Field.field @"label") y x)+ 56+ -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (Prelude.fmap+ Prelude.fromIntegral+ Data.ProtoLens.Encoding.Bytes.getVarInt)+ "min_confs"+ loop+ (Lens.Family2.set (Data.ProtoLens.Field.field @"minConfs") y x)+ 64+ -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (Prelude.fmap+ ((Prelude./=) 0) Data.ProtoLens.Encoding.Bytes.getVarInt)+ "spend_unconfirmed"+ loop+ (Lens.Family2.set+ (Data.ProtoLens.Field.field @"spendUnconfirmed") y x)+ wire+ -> do !y <- Data.ProtoLens.Encoding.Wire.parseTaggedValueFromWire+ wire+ loop+ (Lens.Family2.over+ Data.ProtoLens.unknownFields (\ !t -> (:) y t) x)+ in+ (Data.ProtoLens.Encoding.Bytes.<?>)+ (do loop Data.ProtoLens.defMessage) "SendManyRequest"+ buildMessage+ = \ _x+ -> (Data.Monoid.<>)+ (Data.Monoid.mconcat+ (Prelude.map+ (\ _v+ -> (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 10)+ ((Prelude..)+ (\ bs+ -> (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt+ (Prelude.fromIntegral (Data.ByteString.length bs)))+ (Data.ProtoLens.Encoding.Bytes.putBytes bs))+ Data.ProtoLens.encodeMessage+ (Lens.Family2.set+ (Data.ProtoLens.Field.field @"key") (Prelude.fst _v)+ (Lens.Family2.set+ (Data.ProtoLens.Field.field @"value") (Prelude.snd _v)+ (Data.ProtoLens.defMessage ::+ SendManyRequest'AddrToAmountEntry)))))+ (Data.Map.toList+ (Lens.Family2.view+ (Data.ProtoLens.Field.field @"addrToAmount") _x))))+ ((Data.Monoid.<>)+ (let+ _v+ = Lens.Family2.view (Data.ProtoLens.Field.field @"targetConf") _x+ in+ if (Prelude.==) _v Data.ProtoLens.fieldDefault then+ Data.Monoid.mempty+ else+ (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 24)+ ((Prelude..)+ Data.ProtoLens.Encoding.Bytes.putVarInt Prelude.fromIntegral _v))+ ((Data.Monoid.<>)+ (let+ _v+ = Lens.Family2.view (Data.ProtoLens.Field.field @"satPerVbyte") _x+ in+ if (Prelude.==) _v Data.ProtoLens.fieldDefault then+ Data.Monoid.mempty+ else+ (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 32)+ (Data.ProtoLens.Encoding.Bytes.putVarInt _v))+ ((Data.Monoid.<>)+ (let+ _v+ = Lens.Family2.view (Data.ProtoLens.Field.field @"satPerByte") _x+ in+ if (Prelude.==) _v Data.ProtoLens.fieldDefault then+ Data.Monoid.mempty+ else+ (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 40)+ ((Prelude..)+ Data.ProtoLens.Encoding.Bytes.putVarInt Prelude.fromIntegral _v))+ ((Data.Monoid.<>)+ (let+ _v = Lens.Family2.view (Data.ProtoLens.Field.field @"label") _x+ in+ if (Prelude.==) _v Data.ProtoLens.fieldDefault then+ Data.Monoid.mempty+ else+ (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 50)+ ((Prelude..)+ (\ bs+ -> (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt+ (Prelude.fromIntegral (Data.ByteString.length bs)))+ (Data.ProtoLens.Encoding.Bytes.putBytes bs))+ Data.Text.Encoding.encodeUtf8 _v))+ ((Data.Monoid.<>)+ (let+ _v = Lens.Family2.view (Data.ProtoLens.Field.field @"minConfs") _x+ in+ if (Prelude.==) _v Data.ProtoLens.fieldDefault then+ Data.Monoid.mempty+ else+ (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 56)+ ((Prelude..)+ Data.ProtoLens.Encoding.Bytes.putVarInt Prelude.fromIntegral+ _v))+ ((Data.Monoid.<>)+ (let+ _v+ = Lens.Family2.view+ (Data.ProtoLens.Field.field @"spendUnconfirmed") _x+ in+ if (Prelude.==) _v Data.ProtoLens.fieldDefault then+ Data.Monoid.mempty+ else+ (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 64)+ ((Prelude..)+ Data.ProtoLens.Encoding.Bytes.putVarInt+ (\ b -> if b then 1 else 0) _v))+ (Data.ProtoLens.Encoding.Wire.buildFieldSet+ (Lens.Family2.view Data.ProtoLens.unknownFields _x))))))))+instance Control.DeepSeq.NFData SendManyRequest where+ rnf+ = \ x__+ -> Control.DeepSeq.deepseq+ (_SendManyRequest'_unknownFields x__)+ (Control.DeepSeq.deepseq+ (_SendManyRequest'addrToAmount x__)+ (Control.DeepSeq.deepseq+ (_SendManyRequest'targetConf x__)+ (Control.DeepSeq.deepseq+ (_SendManyRequest'satPerVbyte x__)+ (Control.DeepSeq.deepseq+ (_SendManyRequest'satPerByte x__)+ (Control.DeepSeq.deepseq+ (_SendManyRequest'label x__)+ (Control.DeepSeq.deepseq+ (_SendManyRequest'minConfs x__)+ (Control.DeepSeq.deepseq+ (_SendManyRequest'spendUnconfirmed x__) ())))))))+{- | Fields :+ + * 'Proto.Lightning_Fields.key' @:: Lens' SendManyRequest'AddrToAmountEntry Data.Text.Text@+ * 'Proto.Lightning_Fields.value' @:: Lens' SendManyRequest'AddrToAmountEntry Data.Int.Int64@ -}+data SendManyRequest'AddrToAmountEntry+ = SendManyRequest'AddrToAmountEntry'_constructor {_SendManyRequest'AddrToAmountEntry'key :: !Data.Text.Text,+ _SendManyRequest'AddrToAmountEntry'value :: !Data.Int.Int64,+ _SendManyRequest'AddrToAmountEntry'_unknownFields :: !Data.ProtoLens.FieldSet}+ deriving stock (Prelude.Eq, Prelude.Ord, GHC.Generics.Generic)+instance Prelude.Show SendManyRequest'AddrToAmountEntry where+ showsPrec _ __x __s+ = Prelude.showChar+ '{'+ (Prelude.showString+ (Data.ProtoLens.showMessageShort __x) (Prelude.showChar '}' __s))+instance Text.PrettyPrint.GenericPretty.Out SendManyRequest'AddrToAmountEntry+instance Data.ProtoLens.Field.HasField SendManyRequest'AddrToAmountEntry "key" Data.Text.Text where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _SendManyRequest'AddrToAmountEntry'key+ (\ x__ y__ -> x__ {_SendManyRequest'AddrToAmountEntry'key = y__}))+ Prelude.id+instance Data.ProtoLens.Field.HasField SendManyRequest'AddrToAmountEntry "value" Data.Int.Int64 where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _SendManyRequest'AddrToAmountEntry'value+ (\ x__ y__+ -> x__ {_SendManyRequest'AddrToAmountEntry'value = y__}))+ Prelude.id+instance Data.ProtoLens.Message SendManyRequest'AddrToAmountEntry where+ messageName _+ = Data.Text.pack "lnrpc.SendManyRequest.AddrToAmountEntry"+ packedMessageDescriptor _+ = "\n\+ \\DC1AddrToAmountEntry\DC2\DLE\n\+ \\ETXkey\CAN\SOH \SOH(\tR\ETXkey\DC2\DC4\n\+ \\ENQvalue\CAN\STX \SOH(\ETXR\ENQvalue:\STX8\SOH"+ packedFileDescriptor _ = packedFileDescriptor+ fieldsByTag+ = let+ key__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "key"+ (Data.ProtoLens.ScalarField Data.ProtoLens.StringField ::+ Data.ProtoLens.FieldTypeDescriptor Data.Text.Text)+ (Data.ProtoLens.PlainField+ Data.ProtoLens.Optional (Data.ProtoLens.Field.field @"key")) ::+ Data.ProtoLens.FieldDescriptor SendManyRequest'AddrToAmountEntry+ value__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "value"+ (Data.ProtoLens.ScalarField Data.ProtoLens.Int64Field ::+ Data.ProtoLens.FieldTypeDescriptor Data.Int.Int64)+ (Data.ProtoLens.PlainField+ Data.ProtoLens.Optional (Data.ProtoLens.Field.field @"value")) ::+ Data.ProtoLens.FieldDescriptor SendManyRequest'AddrToAmountEntry+ in+ Data.Map.fromList+ [(Data.ProtoLens.Tag 1, key__field_descriptor),+ (Data.ProtoLens.Tag 2, value__field_descriptor)]+ unknownFields+ = Lens.Family2.Unchecked.lens+ _SendManyRequest'AddrToAmountEntry'_unknownFields+ (\ x__ y__+ -> x__ {_SendManyRequest'AddrToAmountEntry'_unknownFields = y__})+ defMessage+ = SendManyRequest'AddrToAmountEntry'_constructor+ {_SendManyRequest'AddrToAmountEntry'key = Data.ProtoLens.fieldDefault,+ _SendManyRequest'AddrToAmountEntry'value = Data.ProtoLens.fieldDefault,+ _SendManyRequest'AddrToAmountEntry'_unknownFields = []}+ parseMessage+ = let+ loop ::+ SendManyRequest'AddrToAmountEntry+ -> Data.ProtoLens.Encoding.Bytes.Parser SendManyRequest'AddrToAmountEntry+ loop x+ = do end <- Data.ProtoLens.Encoding.Bytes.atEnd+ if end then+ do (let missing = []+ in+ if Prelude.null missing then+ Prelude.return ()+ else+ Prelude.fail+ ((Prelude.++)+ "Missing required fields: "+ (Prelude.show (missing :: [Prelude.String]))))+ Prelude.return+ (Lens.Family2.over+ Data.ProtoLens.unknownFields (\ !t -> Prelude.reverse t) x)+ else+ do tag <- Data.ProtoLens.Encoding.Bytes.getVarInt+ case tag of+ 10+ -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (do value <- do len <- Data.ProtoLens.Encoding.Bytes.getVarInt+ Data.ProtoLens.Encoding.Bytes.getBytes+ (Prelude.fromIntegral len)+ Data.ProtoLens.Encoding.Bytes.runEither+ (case Data.Text.Encoding.decodeUtf8' value of+ (Prelude.Left err)+ -> Prelude.Left (Prelude.show err)+ (Prelude.Right r) -> Prelude.Right r))+ "key"+ loop (Lens.Family2.set (Data.ProtoLens.Field.field @"key") y x)+ 16+ -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (Prelude.fmap+ Prelude.fromIntegral+ Data.ProtoLens.Encoding.Bytes.getVarInt)+ "value"+ loop (Lens.Family2.set (Data.ProtoLens.Field.field @"value") y x)+ wire+ -> do !y <- Data.ProtoLens.Encoding.Wire.parseTaggedValueFromWire+ wire+ loop+ (Lens.Family2.over+ Data.ProtoLens.unknownFields (\ !t -> (:) y t) x)+ in+ (Data.ProtoLens.Encoding.Bytes.<?>)+ (do loop Data.ProtoLens.defMessage) "AddrToAmountEntry"+ buildMessage+ = \ _x+ -> (Data.Monoid.<>)+ (let _v = Lens.Family2.view (Data.ProtoLens.Field.field @"key") _x+ in+ if (Prelude.==) _v Data.ProtoLens.fieldDefault then+ Data.Monoid.mempty+ else+ (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 10)+ ((Prelude..)+ (\ bs+ -> (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt+ (Prelude.fromIntegral (Data.ByteString.length bs)))+ (Data.ProtoLens.Encoding.Bytes.putBytes bs))+ Data.Text.Encoding.encodeUtf8 _v))+ ((Data.Monoid.<>)+ (let+ _v = Lens.Family2.view (Data.ProtoLens.Field.field @"value") _x+ in+ if (Prelude.==) _v Data.ProtoLens.fieldDefault then+ Data.Monoid.mempty+ else+ (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 16)+ ((Prelude..)+ Data.ProtoLens.Encoding.Bytes.putVarInt Prelude.fromIntegral _v))+ (Data.ProtoLens.Encoding.Wire.buildFieldSet+ (Lens.Family2.view Data.ProtoLens.unknownFields _x)))+instance Control.DeepSeq.NFData SendManyRequest'AddrToAmountEntry where+ rnf+ = \ x__+ -> Control.DeepSeq.deepseq+ (_SendManyRequest'AddrToAmountEntry'_unknownFields x__)+ (Control.DeepSeq.deepseq+ (_SendManyRequest'AddrToAmountEntry'key x__)+ (Control.DeepSeq.deepseq+ (_SendManyRequest'AddrToAmountEntry'value x__) ()))+{- | Fields :+ + * 'Proto.Lightning_Fields.txid' @:: Lens' SendManyResponse Data.Text.Text@ -}+data SendManyResponse+ = SendManyResponse'_constructor {_SendManyResponse'txid :: !Data.Text.Text,+ _SendManyResponse'_unknownFields :: !Data.ProtoLens.FieldSet}+ deriving stock (Prelude.Eq, Prelude.Ord, GHC.Generics.Generic)+instance Prelude.Show SendManyResponse where+ showsPrec _ __x __s+ = Prelude.showChar+ '{'+ (Prelude.showString+ (Data.ProtoLens.showMessageShort __x) (Prelude.showChar '}' __s))+instance Text.PrettyPrint.GenericPretty.Out SendManyResponse+instance Data.ProtoLens.Field.HasField SendManyResponse "txid" Data.Text.Text where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _SendManyResponse'txid+ (\ x__ y__ -> x__ {_SendManyResponse'txid = y__}))+ Prelude.id+instance Data.ProtoLens.Message SendManyResponse where+ messageName _ = Data.Text.pack "lnrpc.SendManyResponse"+ packedMessageDescriptor _+ = "\n\+ \\DLESendManyResponse\DC2\DC2\n\+ \\EOTtxid\CAN\SOH \SOH(\tR\EOTtxid"+ packedFileDescriptor _ = packedFileDescriptor+ fieldsByTag+ = let+ txid__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "txid"+ (Data.ProtoLens.ScalarField Data.ProtoLens.StringField ::+ Data.ProtoLens.FieldTypeDescriptor Data.Text.Text)+ (Data.ProtoLens.PlainField+ Data.ProtoLens.Optional (Data.ProtoLens.Field.field @"txid")) ::+ Data.ProtoLens.FieldDescriptor SendManyResponse+ in+ Data.Map.fromList [(Data.ProtoLens.Tag 1, txid__field_descriptor)]+ unknownFields+ = Lens.Family2.Unchecked.lens+ _SendManyResponse'_unknownFields+ (\ x__ y__ -> x__ {_SendManyResponse'_unknownFields = y__})+ defMessage+ = SendManyResponse'_constructor+ {_SendManyResponse'txid = Data.ProtoLens.fieldDefault,+ _SendManyResponse'_unknownFields = []}+ parseMessage+ = let+ loop ::+ SendManyResponse+ -> Data.ProtoLens.Encoding.Bytes.Parser SendManyResponse+ loop x+ = do end <- Data.ProtoLens.Encoding.Bytes.atEnd+ if end then+ do (let missing = []+ in+ if Prelude.null missing then+ Prelude.return ()+ else+ Prelude.fail+ ((Prelude.++)+ "Missing required fields: "+ (Prelude.show (missing :: [Prelude.String]))))+ Prelude.return+ (Lens.Family2.over+ Data.ProtoLens.unknownFields (\ !t -> Prelude.reverse t) x)+ else+ do tag <- Data.ProtoLens.Encoding.Bytes.getVarInt+ case tag of+ 10+ -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (do value <- do len <- Data.ProtoLens.Encoding.Bytes.getVarInt+ Data.ProtoLens.Encoding.Bytes.getBytes+ (Prelude.fromIntegral len)+ Data.ProtoLens.Encoding.Bytes.runEither+ (case Data.Text.Encoding.decodeUtf8' value of+ (Prelude.Left err)+ -> Prelude.Left (Prelude.show err)+ (Prelude.Right r) -> Prelude.Right r))+ "txid"+ loop (Lens.Family2.set (Data.ProtoLens.Field.field @"txid") y x)+ wire+ -> do !y <- Data.ProtoLens.Encoding.Wire.parseTaggedValueFromWire+ wire+ loop+ (Lens.Family2.over+ Data.ProtoLens.unknownFields (\ !t -> (:) y t) x)+ in+ (Data.ProtoLens.Encoding.Bytes.<?>)+ (do loop Data.ProtoLens.defMessage) "SendManyResponse"+ buildMessage+ = \ _x+ -> (Data.Monoid.<>)+ (let _v = Lens.Family2.view (Data.ProtoLens.Field.field @"txid") _x+ in+ if (Prelude.==) _v Data.ProtoLens.fieldDefault then+ Data.Monoid.mempty+ else+ (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 10)+ ((Prelude..)+ (\ bs+ -> (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt+ (Prelude.fromIntegral (Data.ByteString.length bs)))+ (Data.ProtoLens.Encoding.Bytes.putBytes bs))+ Data.Text.Encoding.encodeUtf8 _v))+ (Data.ProtoLens.Encoding.Wire.buildFieldSet+ (Lens.Family2.view Data.ProtoLens.unknownFields _x))+instance Control.DeepSeq.NFData SendManyResponse where+ rnf+ = \ x__+ -> Control.DeepSeq.deepseq+ (_SendManyResponse'_unknownFields x__)+ (Control.DeepSeq.deepseq (_SendManyResponse'txid x__) ())+{- | Fields :+ + * 'Proto.Lightning_Fields.dest' @:: Lens' SendRequest Data.ByteString.ByteString@+ * 'Proto.Lightning_Fields.destString' @:: Lens' SendRequest Data.Text.Text@+ * 'Proto.Lightning_Fields.amt' @:: Lens' SendRequest Data.Int.Int64@+ * 'Proto.Lightning_Fields.amtMsat' @:: Lens' SendRequest Data.Int.Int64@+ * 'Proto.Lightning_Fields.paymentHash' @:: Lens' SendRequest Data.ByteString.ByteString@+ * 'Proto.Lightning_Fields.paymentHashString' @:: Lens' SendRequest Data.Text.Text@+ * 'Proto.Lightning_Fields.paymentRequest' @:: Lens' SendRequest Data.Text.Text@+ * 'Proto.Lightning_Fields.finalCltvDelta' @:: Lens' SendRequest Data.Int.Int32@+ * 'Proto.Lightning_Fields.feeLimit' @:: Lens' SendRequest Proto.Lnrpc.Ln0.FeeLimit@+ * 'Proto.Lightning_Fields.maybe'feeLimit' @:: Lens' SendRequest (Prelude.Maybe Proto.Lnrpc.Ln0.FeeLimit)@+ * 'Proto.Lightning_Fields.outgoingChanId' @:: Lens' SendRequest Data.Word.Word64@+ * 'Proto.Lightning_Fields.lastHopPubkey' @:: Lens' SendRequest Data.ByteString.ByteString@+ * 'Proto.Lightning_Fields.cltvLimit' @:: Lens' SendRequest Data.Word.Word32@+ * 'Proto.Lightning_Fields.destCustomRecords' @:: Lens' SendRequest (Data.Map.Map Data.Word.Word64 Data.ByteString.ByteString)@+ * 'Proto.Lightning_Fields.allowSelfPayment' @:: Lens' SendRequest Prelude.Bool@+ * 'Proto.Lightning_Fields.destFeatures' @:: Lens' SendRequest [Proto.Lnrpc.Ln0.FeatureBit]@+ * 'Proto.Lightning_Fields.vec'destFeatures' @:: Lens' SendRequest (Data.Vector.Vector Proto.Lnrpc.Ln0.FeatureBit)@+ * 'Proto.Lightning_Fields.paymentAddr' @:: Lens' SendRequest Data.ByteString.ByteString@ -}+data SendRequest+ = SendRequest'_constructor {_SendRequest'dest :: !Data.ByteString.ByteString,+ _SendRequest'destString :: !Data.Text.Text,+ _SendRequest'amt :: !Data.Int.Int64,+ _SendRequest'amtMsat :: !Data.Int.Int64,+ _SendRequest'paymentHash :: !Data.ByteString.ByteString,+ _SendRequest'paymentHashString :: !Data.Text.Text,+ _SendRequest'paymentRequest :: !Data.Text.Text,+ _SendRequest'finalCltvDelta :: !Data.Int.Int32,+ _SendRequest'feeLimit :: !(Prelude.Maybe Proto.Lnrpc.Ln0.FeeLimit),+ _SendRequest'outgoingChanId :: !Data.Word.Word64,+ _SendRequest'lastHopPubkey :: !Data.ByteString.ByteString,+ _SendRequest'cltvLimit :: !Data.Word.Word32,+ _SendRequest'destCustomRecords :: !(Data.Map.Map Data.Word.Word64 Data.ByteString.ByteString),+ _SendRequest'allowSelfPayment :: !Prelude.Bool,+ _SendRequest'destFeatures :: !(Data.Vector.Vector Proto.Lnrpc.Ln0.FeatureBit),+ _SendRequest'paymentAddr :: !Data.ByteString.ByteString,+ _SendRequest'_unknownFields :: !Data.ProtoLens.FieldSet}+ deriving stock (Prelude.Eq, Prelude.Ord, GHC.Generics.Generic)+instance Prelude.Show SendRequest where+ showsPrec _ __x __s+ = Prelude.showChar+ '{'+ (Prelude.showString+ (Data.ProtoLens.showMessageShort __x) (Prelude.showChar '}' __s))+instance Text.PrettyPrint.GenericPretty.Out SendRequest+instance Data.ProtoLens.Field.HasField SendRequest "dest" Data.ByteString.ByteString where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _SendRequest'dest (\ x__ y__ -> x__ {_SendRequest'dest = y__}))+ Prelude.id+instance Data.ProtoLens.Field.HasField SendRequest "destString" Data.Text.Text where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _SendRequest'destString+ (\ x__ y__ -> x__ {_SendRequest'destString = y__}))+ Prelude.id+instance Data.ProtoLens.Field.HasField SendRequest "amt" Data.Int.Int64 where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _SendRequest'amt (\ x__ y__ -> x__ {_SendRequest'amt = y__}))+ Prelude.id+instance Data.ProtoLens.Field.HasField SendRequest "amtMsat" Data.Int.Int64 where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _SendRequest'amtMsat+ (\ x__ y__ -> x__ {_SendRequest'amtMsat = y__}))+ Prelude.id+instance Data.ProtoLens.Field.HasField SendRequest "paymentHash" Data.ByteString.ByteString where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _SendRequest'paymentHash+ (\ x__ y__ -> x__ {_SendRequest'paymentHash = y__}))+ Prelude.id+instance Data.ProtoLens.Field.HasField SendRequest "paymentHashString" Data.Text.Text where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _SendRequest'paymentHashString+ (\ x__ y__ -> x__ {_SendRequest'paymentHashString = y__}))+ Prelude.id+instance Data.ProtoLens.Field.HasField SendRequest "paymentRequest" Data.Text.Text where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _SendRequest'paymentRequest+ (\ x__ y__ -> x__ {_SendRequest'paymentRequest = y__}))+ Prelude.id+instance Data.ProtoLens.Field.HasField SendRequest "finalCltvDelta" Data.Int.Int32 where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _SendRequest'finalCltvDelta+ (\ x__ y__ -> x__ {_SendRequest'finalCltvDelta = y__}))+ Prelude.id+instance Data.ProtoLens.Field.HasField SendRequest "feeLimit" Proto.Lnrpc.Ln0.FeeLimit where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _SendRequest'feeLimit+ (\ x__ y__ -> x__ {_SendRequest'feeLimit = y__}))+ (Data.ProtoLens.maybeLens Data.ProtoLens.defMessage)+instance Data.ProtoLens.Field.HasField SendRequest "maybe'feeLimit" (Prelude.Maybe Proto.Lnrpc.Ln0.FeeLimit) where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _SendRequest'feeLimit+ (\ x__ y__ -> x__ {_SendRequest'feeLimit = y__}))+ Prelude.id+instance Data.ProtoLens.Field.HasField SendRequest "outgoingChanId" Data.Word.Word64 where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _SendRequest'outgoingChanId+ (\ x__ y__ -> x__ {_SendRequest'outgoingChanId = y__}))+ Prelude.id+instance Data.ProtoLens.Field.HasField SendRequest "lastHopPubkey" Data.ByteString.ByteString where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _SendRequest'lastHopPubkey+ (\ x__ y__ -> x__ {_SendRequest'lastHopPubkey = y__}))+ Prelude.id+instance Data.ProtoLens.Field.HasField SendRequest "cltvLimit" Data.Word.Word32 where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _SendRequest'cltvLimit+ (\ x__ y__ -> x__ {_SendRequest'cltvLimit = y__}))+ Prelude.id+instance Data.ProtoLens.Field.HasField SendRequest "destCustomRecords" (Data.Map.Map Data.Word.Word64 Data.ByteString.ByteString) where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _SendRequest'destCustomRecords+ (\ x__ y__ -> x__ {_SendRequest'destCustomRecords = y__}))+ Prelude.id+instance Data.ProtoLens.Field.HasField SendRequest "allowSelfPayment" Prelude.Bool where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _SendRequest'allowSelfPayment+ (\ x__ y__ -> x__ {_SendRequest'allowSelfPayment = y__}))+ Prelude.id+instance Data.ProtoLens.Field.HasField SendRequest "destFeatures" [Proto.Lnrpc.Ln0.FeatureBit] where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _SendRequest'destFeatures+ (\ x__ y__ -> x__ {_SendRequest'destFeatures = y__}))+ (Lens.Family2.Unchecked.lens+ Data.Vector.Generic.toList+ (\ _ y__ -> Data.Vector.Generic.fromList y__))+instance Data.ProtoLens.Field.HasField SendRequest "vec'destFeatures" (Data.Vector.Vector Proto.Lnrpc.Ln0.FeatureBit) where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _SendRequest'destFeatures+ (\ x__ y__ -> x__ {_SendRequest'destFeatures = y__}))+ Prelude.id+instance Data.ProtoLens.Field.HasField SendRequest "paymentAddr" Data.ByteString.ByteString where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _SendRequest'paymentAddr+ (\ x__ y__ -> x__ {_SendRequest'paymentAddr = y__}))+ Prelude.id+instance Data.ProtoLens.Message SendRequest where+ messageName _ = Data.Text.pack "lnrpc.SendRequest"+ packedMessageDescriptor _+ = "\n\+ \\vSendRequest\DC2\DC2\n\+ \\EOTdest\CAN\SOH \SOH(\fR\EOTdest\DC2#\n\+ \\vdest_string\CAN\STX \SOH(\tR\n\+ \destStringB\STX\CAN\SOH\DC2\DLE\n\+ \\ETXamt\CAN\ETX \SOH(\ETXR\ETXamt\DC2\EM\n\+ \\bamt_msat\CAN\f \SOH(\ETXR\aamtMsat\DC2!\n\+ \\fpayment_hash\CAN\EOT \SOH(\fR\vpaymentHash\DC22\n\+ \\DC3payment_hash_string\CAN\ENQ \SOH(\tR\DC1paymentHashStringB\STX\CAN\SOH\DC2'\n\+ \\SIpayment_request\CAN\ACK \SOH(\tR\SOpaymentRequest\DC2(\n\+ \\DLEfinal_cltv_delta\CAN\a \SOH(\ENQR\SOfinalCltvDelta\DC2,\n\+ \\tfee_limit\CAN\b \SOH(\v2\SI.lnrpc.FeeLimitR\bfeeLimit\DC2,\n\+ \\DLEoutgoing_chan_id\CAN\t \SOH(\EOTR\SOoutgoingChanIdB\STX0\SOH\DC2&\n\+ \\SIlast_hop_pubkey\CAN\r \SOH(\fR\rlastHopPubkey\DC2\GS\n\+ \\n\+ \cltv_limit\CAN\n\+ \ \SOH(\rR\tcltvLimit\DC2Y\n\+ \\DC3dest_custom_records\CAN\v \ETX(\v2).lnrpc.SendRequest.DestCustomRecordsEntryR\DC1destCustomRecords\DC2,\n\+ \\DC2allow_self_payment\CAN\SO \SOH(\bR\DLEallowSelfPayment\DC26\n\+ \\rdest_features\CAN\SI \ETX(\SO2\DC1.lnrpc.FeatureBitR\fdestFeatures\DC2!\n\+ \\fpayment_addr\CAN\DLE \SOH(\fR\vpaymentAddr\SUBD\n\+ \\SYNDestCustomRecordsEntry\DC2\DLE\n\+ \\ETXkey\CAN\SOH \SOH(\EOTR\ETXkey\DC2\DC4\n\+ \\ENQvalue\CAN\STX \SOH(\fR\ENQvalue:\STX8\SOH"+ packedFileDescriptor _ = packedFileDescriptor+ fieldsByTag+ = let+ dest__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "dest"+ (Data.ProtoLens.ScalarField Data.ProtoLens.BytesField ::+ Data.ProtoLens.FieldTypeDescriptor Data.ByteString.ByteString)+ (Data.ProtoLens.PlainField+ Data.ProtoLens.Optional (Data.ProtoLens.Field.field @"dest")) ::+ Data.ProtoLens.FieldDescriptor SendRequest+ destString__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "dest_string"+ (Data.ProtoLens.ScalarField Data.ProtoLens.StringField ::+ Data.ProtoLens.FieldTypeDescriptor Data.Text.Text)+ (Data.ProtoLens.PlainField+ Data.ProtoLens.Optional+ (Data.ProtoLens.Field.field @"destString")) ::+ Data.ProtoLens.FieldDescriptor SendRequest+ amt__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "amt"+ (Data.ProtoLens.ScalarField Data.ProtoLens.Int64Field ::+ Data.ProtoLens.FieldTypeDescriptor Data.Int.Int64)+ (Data.ProtoLens.PlainField+ Data.ProtoLens.Optional (Data.ProtoLens.Field.field @"amt")) ::+ Data.ProtoLens.FieldDescriptor SendRequest+ amtMsat__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "amt_msat"+ (Data.ProtoLens.ScalarField Data.ProtoLens.Int64Field ::+ Data.ProtoLens.FieldTypeDescriptor Data.Int.Int64)+ (Data.ProtoLens.PlainField+ Data.ProtoLens.Optional (Data.ProtoLens.Field.field @"amtMsat")) ::+ Data.ProtoLens.FieldDescriptor SendRequest+ paymentHash__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "payment_hash"+ (Data.ProtoLens.ScalarField Data.ProtoLens.BytesField ::+ Data.ProtoLens.FieldTypeDescriptor Data.ByteString.ByteString)+ (Data.ProtoLens.PlainField+ Data.ProtoLens.Optional+ (Data.ProtoLens.Field.field @"paymentHash")) ::+ Data.ProtoLens.FieldDescriptor SendRequest+ paymentHashString__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "payment_hash_string"+ (Data.ProtoLens.ScalarField Data.ProtoLens.StringField ::+ Data.ProtoLens.FieldTypeDescriptor Data.Text.Text)+ (Data.ProtoLens.PlainField+ Data.ProtoLens.Optional+ (Data.ProtoLens.Field.field @"paymentHashString")) ::+ Data.ProtoLens.FieldDescriptor SendRequest+ paymentRequest__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "payment_request"+ (Data.ProtoLens.ScalarField Data.ProtoLens.StringField ::+ Data.ProtoLens.FieldTypeDescriptor Data.Text.Text)+ (Data.ProtoLens.PlainField+ Data.ProtoLens.Optional+ (Data.ProtoLens.Field.field @"paymentRequest")) ::+ Data.ProtoLens.FieldDescriptor SendRequest+ finalCltvDelta__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "final_cltv_delta"+ (Data.ProtoLens.ScalarField Data.ProtoLens.Int32Field ::+ Data.ProtoLens.FieldTypeDescriptor Data.Int.Int32)+ (Data.ProtoLens.PlainField+ Data.ProtoLens.Optional+ (Data.ProtoLens.Field.field @"finalCltvDelta")) ::+ Data.ProtoLens.FieldDescriptor SendRequest+ feeLimit__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "fee_limit"+ (Data.ProtoLens.MessageField Data.ProtoLens.MessageType ::+ Data.ProtoLens.FieldTypeDescriptor Proto.Lnrpc.Ln0.FeeLimit)+ (Data.ProtoLens.OptionalField+ (Data.ProtoLens.Field.field @"maybe'feeLimit")) ::+ Data.ProtoLens.FieldDescriptor SendRequest+ outgoingChanId__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "outgoing_chan_id"+ (Data.ProtoLens.ScalarField Data.ProtoLens.UInt64Field ::+ Data.ProtoLens.FieldTypeDescriptor Data.Word.Word64)+ (Data.ProtoLens.PlainField+ Data.ProtoLens.Optional+ (Data.ProtoLens.Field.field @"outgoingChanId")) ::+ Data.ProtoLens.FieldDescriptor SendRequest+ lastHopPubkey__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "last_hop_pubkey"+ (Data.ProtoLens.ScalarField Data.ProtoLens.BytesField ::+ Data.ProtoLens.FieldTypeDescriptor Data.ByteString.ByteString)+ (Data.ProtoLens.PlainField+ Data.ProtoLens.Optional+ (Data.ProtoLens.Field.field @"lastHopPubkey")) ::+ Data.ProtoLens.FieldDescriptor SendRequest+ cltvLimit__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "cltv_limit"+ (Data.ProtoLens.ScalarField Data.ProtoLens.UInt32Field ::+ Data.ProtoLens.FieldTypeDescriptor Data.Word.Word32)+ (Data.ProtoLens.PlainField+ Data.ProtoLens.Optional+ (Data.ProtoLens.Field.field @"cltvLimit")) ::+ Data.ProtoLens.FieldDescriptor SendRequest+ destCustomRecords__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "dest_custom_records"+ (Data.ProtoLens.MessageField Data.ProtoLens.MessageType ::+ Data.ProtoLens.FieldTypeDescriptor SendRequest'DestCustomRecordsEntry)+ (Data.ProtoLens.MapField+ (Data.ProtoLens.Field.field @"key")+ (Data.ProtoLens.Field.field @"value")+ (Data.ProtoLens.Field.field @"destCustomRecords")) ::+ Data.ProtoLens.FieldDescriptor SendRequest+ allowSelfPayment__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "allow_self_payment"+ (Data.ProtoLens.ScalarField Data.ProtoLens.BoolField ::+ Data.ProtoLens.FieldTypeDescriptor Prelude.Bool)+ (Data.ProtoLens.PlainField+ Data.ProtoLens.Optional+ (Data.ProtoLens.Field.field @"allowSelfPayment")) ::+ Data.ProtoLens.FieldDescriptor SendRequest+ destFeatures__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "dest_features"+ (Data.ProtoLens.ScalarField Data.ProtoLens.EnumField ::+ Data.ProtoLens.FieldTypeDescriptor Proto.Lnrpc.Ln0.FeatureBit)+ (Data.ProtoLens.RepeatedField+ Data.ProtoLens.Packed+ (Data.ProtoLens.Field.field @"destFeatures")) ::+ Data.ProtoLens.FieldDescriptor SendRequest+ paymentAddr__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "payment_addr"+ (Data.ProtoLens.ScalarField Data.ProtoLens.BytesField ::+ Data.ProtoLens.FieldTypeDescriptor Data.ByteString.ByteString)+ (Data.ProtoLens.PlainField+ Data.ProtoLens.Optional+ (Data.ProtoLens.Field.field @"paymentAddr")) ::+ Data.ProtoLens.FieldDescriptor SendRequest+ in+ Data.Map.fromList+ [(Data.ProtoLens.Tag 1, dest__field_descriptor),+ (Data.ProtoLens.Tag 2, destString__field_descriptor),+ (Data.ProtoLens.Tag 3, amt__field_descriptor),+ (Data.ProtoLens.Tag 12, amtMsat__field_descriptor),+ (Data.ProtoLens.Tag 4, paymentHash__field_descriptor),+ (Data.ProtoLens.Tag 5, paymentHashString__field_descriptor),+ (Data.ProtoLens.Tag 6, paymentRequest__field_descriptor),+ (Data.ProtoLens.Tag 7, finalCltvDelta__field_descriptor),+ (Data.ProtoLens.Tag 8, feeLimit__field_descriptor),+ (Data.ProtoLens.Tag 9, outgoingChanId__field_descriptor),+ (Data.ProtoLens.Tag 13, lastHopPubkey__field_descriptor),+ (Data.ProtoLens.Tag 10, cltvLimit__field_descriptor),+ (Data.ProtoLens.Tag 11, destCustomRecords__field_descriptor),+ (Data.ProtoLens.Tag 14, allowSelfPayment__field_descriptor),+ (Data.ProtoLens.Tag 15, destFeatures__field_descriptor),+ (Data.ProtoLens.Tag 16, paymentAddr__field_descriptor)]+ unknownFields+ = Lens.Family2.Unchecked.lens+ _SendRequest'_unknownFields+ (\ x__ y__ -> x__ {_SendRequest'_unknownFields = y__})+ defMessage+ = SendRequest'_constructor+ {_SendRequest'dest = Data.ProtoLens.fieldDefault,+ _SendRequest'destString = Data.ProtoLens.fieldDefault,+ _SendRequest'amt = Data.ProtoLens.fieldDefault,+ _SendRequest'amtMsat = Data.ProtoLens.fieldDefault,+ _SendRequest'paymentHash = Data.ProtoLens.fieldDefault,+ _SendRequest'paymentHashString = Data.ProtoLens.fieldDefault,+ _SendRequest'paymentRequest = Data.ProtoLens.fieldDefault,+ _SendRequest'finalCltvDelta = Data.ProtoLens.fieldDefault,+ _SendRequest'feeLimit = Prelude.Nothing,+ _SendRequest'outgoingChanId = Data.ProtoLens.fieldDefault,+ _SendRequest'lastHopPubkey = Data.ProtoLens.fieldDefault,+ _SendRequest'cltvLimit = Data.ProtoLens.fieldDefault,+ _SendRequest'destCustomRecords = Data.Map.empty,+ _SendRequest'allowSelfPayment = Data.ProtoLens.fieldDefault,+ _SendRequest'destFeatures = Data.Vector.Generic.empty,+ _SendRequest'paymentAddr = Data.ProtoLens.fieldDefault,+ _SendRequest'_unknownFields = []}+ parseMessage+ = let+ loop ::+ SendRequest+ -> Data.ProtoLens.Encoding.Growing.Growing Data.Vector.Vector Data.ProtoLens.Encoding.Growing.RealWorld Proto.Lnrpc.Ln0.FeatureBit+ -> Data.ProtoLens.Encoding.Bytes.Parser SendRequest+ loop x mutable'destFeatures+ = do end <- Data.ProtoLens.Encoding.Bytes.atEnd+ if end then+ do frozen'destFeatures <- Data.ProtoLens.Encoding.Parser.Unsafe.unsafeLiftIO+ (Data.ProtoLens.Encoding.Growing.unsafeFreeze+ mutable'destFeatures)+ (let missing = []+ in+ if Prelude.null missing then+ Prelude.return ()+ else+ Prelude.fail+ ((Prelude.++)+ "Missing required fields: "+ (Prelude.show (missing :: [Prelude.String]))))+ Prelude.return+ (Lens.Family2.over+ Data.ProtoLens.unknownFields (\ !t -> Prelude.reverse t)+ (Lens.Family2.set+ (Data.ProtoLens.Field.field @"vec'destFeatures")+ frozen'destFeatures x))+ else+ do tag <- Data.ProtoLens.Encoding.Bytes.getVarInt+ case tag of+ 10+ -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (do len <- Data.ProtoLens.Encoding.Bytes.getVarInt+ Data.ProtoLens.Encoding.Bytes.getBytes+ (Prelude.fromIntegral len))+ "dest"+ loop+ (Lens.Family2.set (Data.ProtoLens.Field.field @"dest") y x)+ mutable'destFeatures+ 18+ -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (do value <- do len <- Data.ProtoLens.Encoding.Bytes.getVarInt+ Data.ProtoLens.Encoding.Bytes.getBytes+ (Prelude.fromIntegral len)+ Data.ProtoLens.Encoding.Bytes.runEither+ (case Data.Text.Encoding.decodeUtf8' value of+ (Prelude.Left err)+ -> Prelude.Left (Prelude.show err)+ (Prelude.Right r) -> Prelude.Right r))+ "dest_string"+ loop+ (Lens.Family2.set (Data.ProtoLens.Field.field @"destString") y x)+ mutable'destFeatures+ 24+ -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (Prelude.fmap+ Prelude.fromIntegral+ Data.ProtoLens.Encoding.Bytes.getVarInt)+ "amt"+ loop+ (Lens.Family2.set (Data.ProtoLens.Field.field @"amt") y x)+ mutable'destFeatures+ 96+ -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (Prelude.fmap+ Prelude.fromIntegral+ Data.ProtoLens.Encoding.Bytes.getVarInt)+ "amt_msat"+ loop+ (Lens.Family2.set (Data.ProtoLens.Field.field @"amtMsat") y x)+ mutable'destFeatures+ 34+ -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (do len <- Data.ProtoLens.Encoding.Bytes.getVarInt+ Data.ProtoLens.Encoding.Bytes.getBytes+ (Prelude.fromIntegral len))+ "payment_hash"+ loop+ (Lens.Family2.set (Data.ProtoLens.Field.field @"paymentHash") y x)+ mutable'destFeatures+ 42+ -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (do value <- do len <- Data.ProtoLens.Encoding.Bytes.getVarInt+ Data.ProtoLens.Encoding.Bytes.getBytes+ (Prelude.fromIntegral len)+ Data.ProtoLens.Encoding.Bytes.runEither+ (case Data.Text.Encoding.decodeUtf8' value of+ (Prelude.Left err)+ -> Prelude.Left (Prelude.show err)+ (Prelude.Right r) -> Prelude.Right r))+ "payment_hash_string"+ loop+ (Lens.Family2.set+ (Data.ProtoLens.Field.field @"paymentHashString") y x)+ mutable'destFeatures+ 50+ -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (do value <- do len <- Data.ProtoLens.Encoding.Bytes.getVarInt+ Data.ProtoLens.Encoding.Bytes.getBytes+ (Prelude.fromIntegral len)+ Data.ProtoLens.Encoding.Bytes.runEither+ (case Data.Text.Encoding.decodeUtf8' value of+ (Prelude.Left err)+ -> Prelude.Left (Prelude.show err)+ (Prelude.Right r) -> Prelude.Right r))+ "payment_request"+ loop+ (Lens.Family2.set+ (Data.ProtoLens.Field.field @"paymentRequest") y x)+ mutable'destFeatures+ 56+ -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (Prelude.fmap+ Prelude.fromIntegral+ Data.ProtoLens.Encoding.Bytes.getVarInt)+ "final_cltv_delta"+ loop+ (Lens.Family2.set+ (Data.ProtoLens.Field.field @"finalCltvDelta") y x)+ mutable'destFeatures+ 66+ -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (do len <- Data.ProtoLens.Encoding.Bytes.getVarInt+ Data.ProtoLens.Encoding.Bytes.isolate+ (Prelude.fromIntegral len) Data.ProtoLens.parseMessage)+ "fee_limit"+ loop+ (Lens.Family2.set (Data.ProtoLens.Field.field @"feeLimit") y x)+ mutable'destFeatures+ 72+ -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ Data.ProtoLens.Encoding.Bytes.getVarInt "outgoing_chan_id"+ loop+ (Lens.Family2.set+ (Data.ProtoLens.Field.field @"outgoingChanId") y x)+ mutable'destFeatures+ 106+ -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (do len <- Data.ProtoLens.Encoding.Bytes.getVarInt+ Data.ProtoLens.Encoding.Bytes.getBytes+ (Prelude.fromIntegral len))+ "last_hop_pubkey"+ loop+ (Lens.Family2.set+ (Data.ProtoLens.Field.field @"lastHopPubkey") y x)+ mutable'destFeatures+ 80+ -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (Prelude.fmap+ Prelude.fromIntegral+ Data.ProtoLens.Encoding.Bytes.getVarInt)+ "cltv_limit"+ loop+ (Lens.Family2.set (Data.ProtoLens.Field.field @"cltvLimit") y x)+ mutable'destFeatures+ 90+ -> do !(entry :: SendRequest'DestCustomRecordsEntry) <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (do len <- Data.ProtoLens.Encoding.Bytes.getVarInt+ Data.ProtoLens.Encoding.Bytes.isolate+ (Prelude.fromIntegral+ len)+ Data.ProtoLens.parseMessage)+ "dest_custom_records"+ (let+ key = Lens.Family2.view (Data.ProtoLens.Field.field @"key") entry+ value+ = Lens.Family2.view (Data.ProtoLens.Field.field @"value") entry+ in+ loop+ (Lens.Family2.over+ (Data.ProtoLens.Field.field @"destCustomRecords")+ (\ !t -> Data.Map.insert key value t) x)+ mutable'destFeatures)+ 112+ -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (Prelude.fmap+ ((Prelude./=) 0) Data.ProtoLens.Encoding.Bytes.getVarInt)+ "allow_self_payment"+ loop+ (Lens.Family2.set+ (Data.ProtoLens.Field.field @"allowSelfPayment") y x)+ mutable'destFeatures+ 120+ -> do !y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (Prelude.fmap+ Prelude.toEnum+ (Prelude.fmap+ Prelude.fromIntegral+ Data.ProtoLens.Encoding.Bytes.getVarInt))+ "dest_features"+ v <- Data.ProtoLens.Encoding.Parser.Unsafe.unsafeLiftIO+ (Data.ProtoLens.Encoding.Growing.append+ mutable'destFeatures y)+ loop x v+ 122+ -> do y <- do len <- Data.ProtoLens.Encoding.Bytes.getVarInt+ Data.ProtoLens.Encoding.Bytes.isolate+ (Prelude.fromIntegral len)+ ((let+ ploop qs+ = do packedEnd <- Data.ProtoLens.Encoding.Bytes.atEnd+ if packedEnd then+ Prelude.return qs+ else+ do !q <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (Prelude.fmap+ Prelude.toEnum+ (Prelude.fmap+ Prelude.fromIntegral+ Data.ProtoLens.Encoding.Bytes.getVarInt))+ "dest_features"+ qs' <- Data.ProtoLens.Encoding.Parser.Unsafe.unsafeLiftIO+ (Data.ProtoLens.Encoding.Growing.append+ qs q)+ ploop qs'+ in ploop)+ mutable'destFeatures)+ loop x y+ 130+ -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (do len <- Data.ProtoLens.Encoding.Bytes.getVarInt+ Data.ProtoLens.Encoding.Bytes.getBytes+ (Prelude.fromIntegral len))+ "payment_addr"+ loop+ (Lens.Family2.set (Data.ProtoLens.Field.field @"paymentAddr") y x)+ mutable'destFeatures+ wire+ -> do !y <- Data.ProtoLens.Encoding.Wire.parseTaggedValueFromWire+ wire+ loop+ (Lens.Family2.over+ Data.ProtoLens.unknownFields (\ !t -> (:) y t) x)+ mutable'destFeatures+ in+ (Data.ProtoLens.Encoding.Bytes.<?>)+ (do mutable'destFeatures <- Data.ProtoLens.Encoding.Parser.Unsafe.unsafeLiftIO+ Data.ProtoLens.Encoding.Growing.new+ loop Data.ProtoLens.defMessage mutable'destFeatures)+ "SendRequest"+ buildMessage+ = \ _x+ -> (Data.Monoid.<>)+ (let _v = Lens.Family2.view (Data.ProtoLens.Field.field @"dest") _x+ in+ if (Prelude.==) _v Data.ProtoLens.fieldDefault then+ Data.Monoid.mempty+ else+ (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 10)+ ((\ bs+ -> (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt+ (Prelude.fromIntegral (Data.ByteString.length bs)))+ (Data.ProtoLens.Encoding.Bytes.putBytes bs))+ _v))+ ((Data.Monoid.<>)+ (let+ _v+ = Lens.Family2.view (Data.ProtoLens.Field.field @"destString") _x+ in+ if (Prelude.==) _v Data.ProtoLens.fieldDefault then+ Data.Monoid.mempty+ else+ (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 18)+ ((Prelude..)+ (\ bs+ -> (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt+ (Prelude.fromIntegral (Data.ByteString.length bs)))+ (Data.ProtoLens.Encoding.Bytes.putBytes bs))+ Data.Text.Encoding.encodeUtf8 _v))+ ((Data.Monoid.<>)+ (let _v = Lens.Family2.view (Data.ProtoLens.Field.field @"amt") _x+ in+ if (Prelude.==) _v Data.ProtoLens.fieldDefault then+ Data.Monoid.mempty+ else+ (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 24)+ ((Prelude..)+ Data.ProtoLens.Encoding.Bytes.putVarInt Prelude.fromIntegral _v))+ ((Data.Monoid.<>)+ (let+ _v = Lens.Family2.view (Data.ProtoLens.Field.field @"amtMsat") _x+ in+ if (Prelude.==) _v Data.ProtoLens.fieldDefault then+ Data.Monoid.mempty+ else+ (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 96)+ ((Prelude..)+ Data.ProtoLens.Encoding.Bytes.putVarInt Prelude.fromIntegral _v))+ ((Data.Monoid.<>)+ (let+ _v+ = Lens.Family2.view (Data.ProtoLens.Field.field @"paymentHash") _x+ in+ if (Prelude.==) _v Data.ProtoLens.fieldDefault then+ Data.Monoid.mempty+ else+ (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 34)+ ((\ bs+ -> (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt+ (Prelude.fromIntegral (Data.ByteString.length bs)))+ (Data.ProtoLens.Encoding.Bytes.putBytes bs))+ _v))+ ((Data.Monoid.<>)+ (let+ _v+ = Lens.Family2.view+ (Data.ProtoLens.Field.field @"paymentHashString") _x+ in+ if (Prelude.==) _v Data.ProtoLens.fieldDefault then+ Data.Monoid.mempty+ else+ (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 42)+ ((Prelude..)+ (\ bs+ -> (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt+ (Prelude.fromIntegral+ (Data.ByteString.length bs)))+ (Data.ProtoLens.Encoding.Bytes.putBytes bs))+ Data.Text.Encoding.encodeUtf8 _v))+ ((Data.Monoid.<>)+ (let+ _v+ = Lens.Family2.view+ (Data.ProtoLens.Field.field @"paymentRequest") _x+ in+ if (Prelude.==) _v Data.ProtoLens.fieldDefault then+ Data.Monoid.mempty+ else+ (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 50)+ ((Prelude..)+ (\ bs+ -> (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt+ (Prelude.fromIntegral+ (Data.ByteString.length bs)))+ (Data.ProtoLens.Encoding.Bytes.putBytes bs))+ Data.Text.Encoding.encodeUtf8 _v))+ ((Data.Monoid.<>)+ (let+ _v+ = Lens.Family2.view+ (Data.ProtoLens.Field.field @"finalCltvDelta") _x+ in+ if (Prelude.==) _v Data.ProtoLens.fieldDefault then+ Data.Monoid.mempty+ else+ (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 56)+ ((Prelude..)+ Data.ProtoLens.Encoding.Bytes.putVarInt+ Prelude.fromIntegral _v))+ ((Data.Monoid.<>)+ (case+ Lens.Family2.view+ (Data.ProtoLens.Field.field @"maybe'feeLimit") _x+ of+ Prelude.Nothing -> Data.Monoid.mempty+ (Prelude.Just _v)+ -> (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 66)+ ((Prelude..)+ (\ bs+ -> (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt+ (Prelude.fromIntegral+ (Data.ByteString.length bs)))+ (Data.ProtoLens.Encoding.Bytes.putBytes+ bs))+ Data.ProtoLens.encodeMessage _v))+ ((Data.Monoid.<>)+ (let+ _v+ = Lens.Family2.view+ (Data.ProtoLens.Field.field @"outgoingChanId") _x+ in+ if (Prelude.==) _v Data.ProtoLens.fieldDefault then+ Data.Monoid.mempty+ else+ (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 72)+ (Data.ProtoLens.Encoding.Bytes.putVarInt _v))+ ((Data.Monoid.<>)+ (let+ _v+ = Lens.Family2.view+ (Data.ProtoLens.Field.field @"lastHopPubkey") _x+ in+ if (Prelude.==) _v Data.ProtoLens.fieldDefault then+ Data.Monoid.mempty+ else+ (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 106)+ ((\ bs+ -> (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt+ (Prelude.fromIntegral+ (Data.ByteString.length bs)))+ (Data.ProtoLens.Encoding.Bytes.putBytes+ bs))+ _v))+ ((Data.Monoid.<>)+ (let+ _v+ = Lens.Family2.view+ (Data.ProtoLens.Field.field @"cltvLimit") _x+ in+ if (Prelude.==) _v Data.ProtoLens.fieldDefault then+ Data.Monoid.mempty+ else+ (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 80)+ ((Prelude..)+ Data.ProtoLens.Encoding.Bytes.putVarInt+ Prelude.fromIntegral _v))+ ((Data.Monoid.<>)+ (Data.Monoid.mconcat+ (Prelude.map+ (\ _v+ -> (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt+ 90)+ ((Prelude..)+ (\ bs+ -> (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt+ (Prelude.fromIntegral+ (Data.ByteString.length+ bs)))+ (Data.ProtoLens.Encoding.Bytes.putBytes+ bs))+ Data.ProtoLens.encodeMessage+ (Lens.Family2.set+ (Data.ProtoLens.Field.field+ @"key")+ (Prelude.fst _v)+ (Lens.Family2.set+ (Data.ProtoLens.Field.field+ @"value")+ (Prelude.snd _v)+ (Data.ProtoLens.defMessage ::+ SendRequest'DestCustomRecordsEntry)))))+ (Data.Map.toList+ (Lens.Family2.view+ (Data.ProtoLens.Field.field+ @"destCustomRecords")+ _x))))+ ((Data.Monoid.<>)+ (let+ _v+ = Lens.Family2.view+ (Data.ProtoLens.Field.field+ @"allowSelfPayment")+ _x+ in+ if (Prelude.==)+ _v Data.ProtoLens.fieldDefault then+ Data.Monoid.mempty+ else+ (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt+ 112)+ ((Prelude..)+ Data.ProtoLens.Encoding.Bytes.putVarInt+ (\ b -> if b then 1 else 0) _v))+ ((Data.Monoid.<>)+ (let+ p = Lens.Family2.view+ (Data.ProtoLens.Field.field+ @"vec'destFeatures")+ _x+ in+ if Data.Vector.Generic.null p then+ Data.Monoid.mempty+ else+ (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt+ 122)+ ((\ bs+ -> (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt+ (Prelude.fromIntegral+ (Data.ByteString.length+ bs)))+ (Data.ProtoLens.Encoding.Bytes.putBytes+ bs))+ (Data.ProtoLens.Encoding.Bytes.runBuilder+ (Data.ProtoLens.Encoding.Bytes.foldMapBuilder+ ((Prelude..)+ ((Prelude..)+ Data.ProtoLens.Encoding.Bytes.putVarInt+ Prelude.fromIntegral)+ Prelude.fromEnum)+ p))))+ ((Data.Monoid.<>)+ (let+ _v+ = Lens.Family2.view+ (Data.ProtoLens.Field.field+ @"paymentAddr")+ _x+ in+ if (Prelude.==)+ _v+ Data.ProtoLens.fieldDefault then+ Data.Monoid.mempty+ else+ (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt+ 130)+ ((\ bs+ -> (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt+ (Prelude.fromIntegral+ (Data.ByteString.length+ bs)))+ (Data.ProtoLens.Encoding.Bytes.putBytes+ bs))+ _v))+ (Data.ProtoLens.Encoding.Wire.buildFieldSet+ (Lens.Family2.view+ Data.ProtoLens.unknownFields+ _x)))))))))))))))))+instance Control.DeepSeq.NFData SendRequest where+ rnf+ = \ x__+ -> Control.DeepSeq.deepseq+ (_SendRequest'_unknownFields x__)+ (Control.DeepSeq.deepseq+ (_SendRequest'dest x__)+ (Control.DeepSeq.deepseq+ (_SendRequest'destString x__)+ (Control.DeepSeq.deepseq+ (_SendRequest'amt x__)+ (Control.DeepSeq.deepseq+ (_SendRequest'amtMsat x__)+ (Control.DeepSeq.deepseq+ (_SendRequest'paymentHash x__)+ (Control.DeepSeq.deepseq+ (_SendRequest'paymentHashString x__)+ (Control.DeepSeq.deepseq+ (_SendRequest'paymentRequest x__)+ (Control.DeepSeq.deepseq+ (_SendRequest'finalCltvDelta x__)+ (Control.DeepSeq.deepseq+ (_SendRequest'feeLimit x__)+ (Control.DeepSeq.deepseq+ (_SendRequest'outgoingChanId x__)+ (Control.DeepSeq.deepseq+ (_SendRequest'lastHopPubkey x__)+ (Control.DeepSeq.deepseq+ (_SendRequest'cltvLimit x__)+ (Control.DeepSeq.deepseq+ (_SendRequest'destCustomRecords x__)+ (Control.DeepSeq.deepseq+ (_SendRequest'allowSelfPayment x__)+ (Control.DeepSeq.deepseq+ (_SendRequest'destFeatures x__)+ (Control.DeepSeq.deepseq+ (_SendRequest'paymentAddr x__)+ ()))))))))))))))))+{- | Fields :+ + * 'Proto.Lightning_Fields.key' @:: Lens' SendRequest'DestCustomRecordsEntry Data.Word.Word64@+ * 'Proto.Lightning_Fields.value' @:: Lens' SendRequest'DestCustomRecordsEntry Data.ByteString.ByteString@ -}+data SendRequest'DestCustomRecordsEntry+ = SendRequest'DestCustomRecordsEntry'_constructor {_SendRequest'DestCustomRecordsEntry'key :: !Data.Word.Word64,+ _SendRequest'DestCustomRecordsEntry'value :: !Data.ByteString.ByteString,+ _SendRequest'DestCustomRecordsEntry'_unknownFields :: !Data.ProtoLens.FieldSet}+ deriving stock (Prelude.Eq, Prelude.Ord, GHC.Generics.Generic)+instance Prelude.Show SendRequest'DestCustomRecordsEntry where+ showsPrec _ __x __s+ = Prelude.showChar+ '{'+ (Prelude.showString+ (Data.ProtoLens.showMessageShort __x) (Prelude.showChar '}' __s))+instance Text.PrettyPrint.GenericPretty.Out SendRequest'DestCustomRecordsEntry+instance Data.ProtoLens.Field.HasField SendRequest'DestCustomRecordsEntry "key" Data.Word.Word64 where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _SendRequest'DestCustomRecordsEntry'key+ (\ x__ y__ -> x__ {_SendRequest'DestCustomRecordsEntry'key = y__}))+ Prelude.id+instance Data.ProtoLens.Field.HasField SendRequest'DestCustomRecordsEntry "value" Data.ByteString.ByteString where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _SendRequest'DestCustomRecordsEntry'value+ (\ x__ y__+ -> x__ {_SendRequest'DestCustomRecordsEntry'value = y__}))+ Prelude.id+instance Data.ProtoLens.Message SendRequest'DestCustomRecordsEntry where+ messageName _+ = Data.Text.pack "lnrpc.SendRequest.DestCustomRecordsEntry"+ packedMessageDescriptor _+ = "\n\+ \\SYNDestCustomRecordsEntry\DC2\DLE\n\+ \\ETXkey\CAN\SOH \SOH(\EOTR\ETXkey\DC2\DC4\n\+ \\ENQvalue\CAN\STX \SOH(\fR\ENQvalue:\STX8\SOH"+ packedFileDescriptor _ = packedFileDescriptor+ fieldsByTag+ = let+ key__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "key"+ (Data.ProtoLens.ScalarField Data.ProtoLens.UInt64Field ::+ Data.ProtoLens.FieldTypeDescriptor Data.Word.Word64)+ (Data.ProtoLens.PlainField+ Data.ProtoLens.Optional (Data.ProtoLens.Field.field @"key")) ::+ Data.ProtoLens.FieldDescriptor SendRequest'DestCustomRecordsEntry+ value__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "value"+ (Data.ProtoLens.ScalarField Data.ProtoLens.BytesField ::+ Data.ProtoLens.FieldTypeDescriptor Data.ByteString.ByteString)+ (Data.ProtoLens.PlainField+ Data.ProtoLens.Optional (Data.ProtoLens.Field.field @"value")) ::+ Data.ProtoLens.FieldDescriptor SendRequest'DestCustomRecordsEntry+ in+ Data.Map.fromList+ [(Data.ProtoLens.Tag 1, key__field_descriptor),+ (Data.ProtoLens.Tag 2, value__field_descriptor)]+ unknownFields+ = Lens.Family2.Unchecked.lens+ _SendRequest'DestCustomRecordsEntry'_unknownFields+ (\ x__ y__+ -> x__ {_SendRequest'DestCustomRecordsEntry'_unknownFields = y__})+ defMessage+ = SendRequest'DestCustomRecordsEntry'_constructor+ {_SendRequest'DestCustomRecordsEntry'key = Data.ProtoLens.fieldDefault,+ _SendRequest'DestCustomRecordsEntry'value = Data.ProtoLens.fieldDefault,+ _SendRequest'DestCustomRecordsEntry'_unknownFields = []}+ parseMessage+ = let+ loop ::+ SendRequest'DestCustomRecordsEntry+ -> Data.ProtoLens.Encoding.Bytes.Parser SendRequest'DestCustomRecordsEntry+ loop x+ = do end <- Data.ProtoLens.Encoding.Bytes.atEnd+ if end then+ do (let missing = []+ in+ if Prelude.null missing then+ Prelude.return ()+ else+ Prelude.fail+ ((Prelude.++)+ "Missing required fields: "+ (Prelude.show (missing :: [Prelude.String]))))+ Prelude.return+ (Lens.Family2.over+ Data.ProtoLens.unknownFields (\ !t -> Prelude.reverse t) x)+ else+ do tag <- Data.ProtoLens.Encoding.Bytes.getVarInt+ case tag of+ 8 -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ Data.ProtoLens.Encoding.Bytes.getVarInt "key"+ loop (Lens.Family2.set (Data.ProtoLens.Field.field @"key") y x)+ 18+ -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (do len <- Data.ProtoLens.Encoding.Bytes.getVarInt+ Data.ProtoLens.Encoding.Bytes.getBytes+ (Prelude.fromIntegral len))+ "value"+ loop (Lens.Family2.set (Data.ProtoLens.Field.field @"value") y x)+ wire+ -> do !y <- Data.ProtoLens.Encoding.Wire.parseTaggedValueFromWire+ wire+ loop+ (Lens.Family2.over+ Data.ProtoLens.unknownFields (\ !t -> (:) y t) x)+ in+ (Data.ProtoLens.Encoding.Bytes.<?>)+ (do loop Data.ProtoLens.defMessage) "DestCustomRecordsEntry"+ buildMessage+ = \ _x+ -> (Data.Monoid.<>)+ (let _v = Lens.Family2.view (Data.ProtoLens.Field.field @"key") _x+ in+ if (Prelude.==) _v Data.ProtoLens.fieldDefault then+ Data.Monoid.mempty+ else+ (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 8)+ (Data.ProtoLens.Encoding.Bytes.putVarInt _v))+ ((Data.Monoid.<>)+ (let+ _v = Lens.Family2.view (Data.ProtoLens.Field.field @"value") _x+ in+ if (Prelude.==) _v Data.ProtoLens.fieldDefault then+ Data.Monoid.mempty+ else+ (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 18)+ ((\ bs+ -> (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt+ (Prelude.fromIntegral (Data.ByteString.length bs)))+ (Data.ProtoLens.Encoding.Bytes.putBytes bs))+ _v))+ (Data.ProtoLens.Encoding.Wire.buildFieldSet+ (Lens.Family2.view Data.ProtoLens.unknownFields _x)))+instance Control.DeepSeq.NFData SendRequest'DestCustomRecordsEntry where+ rnf+ = \ x__+ -> Control.DeepSeq.deepseq+ (_SendRequest'DestCustomRecordsEntry'_unknownFields x__)+ (Control.DeepSeq.deepseq+ (_SendRequest'DestCustomRecordsEntry'key x__)+ (Control.DeepSeq.deepseq+ (_SendRequest'DestCustomRecordsEntry'value x__) ()))+{- | Fields :+ + * 'Proto.Lightning_Fields.paymentError' @:: Lens' SendResponse Data.Text.Text@+ * 'Proto.Lightning_Fields.paymentPreimage' @:: Lens' SendResponse Data.ByteString.ByteString@+ * 'Proto.Lightning_Fields.paymentRoute' @:: Lens' SendResponse Proto.Lnrpc.Ln0.Route@+ * 'Proto.Lightning_Fields.maybe'paymentRoute' @:: Lens' SendResponse (Prelude.Maybe Proto.Lnrpc.Ln0.Route)@+ * 'Proto.Lightning_Fields.paymentHash' @:: Lens' SendResponse Data.ByteString.ByteString@ -}+data SendResponse+ = SendResponse'_constructor {_SendResponse'paymentError :: !Data.Text.Text,+ _SendResponse'paymentPreimage :: !Data.ByteString.ByteString,+ _SendResponse'paymentRoute :: !(Prelude.Maybe Proto.Lnrpc.Ln0.Route),+ _SendResponse'paymentHash :: !Data.ByteString.ByteString,+ _SendResponse'_unknownFields :: !Data.ProtoLens.FieldSet}+ deriving stock (Prelude.Eq, Prelude.Ord, GHC.Generics.Generic)+instance Prelude.Show SendResponse where+ showsPrec _ __x __s+ = Prelude.showChar+ '{'+ (Prelude.showString+ (Data.ProtoLens.showMessageShort __x) (Prelude.showChar '}' __s))+instance Text.PrettyPrint.GenericPretty.Out SendResponse+instance Data.ProtoLens.Field.HasField SendResponse "paymentError" Data.Text.Text where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _SendResponse'paymentError+ (\ x__ y__ -> x__ {_SendResponse'paymentError = y__}))+ Prelude.id+instance Data.ProtoLens.Field.HasField SendResponse "paymentPreimage" Data.ByteString.ByteString where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _SendResponse'paymentPreimage+ (\ x__ y__ -> x__ {_SendResponse'paymentPreimage = y__}))+ Prelude.id+instance Data.ProtoLens.Field.HasField SendResponse "paymentRoute" Proto.Lnrpc.Ln0.Route where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _SendResponse'paymentRoute+ (\ x__ y__ -> x__ {_SendResponse'paymentRoute = y__}))+ (Data.ProtoLens.maybeLens Data.ProtoLens.defMessage)+instance Data.ProtoLens.Field.HasField SendResponse "maybe'paymentRoute" (Prelude.Maybe Proto.Lnrpc.Ln0.Route) where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _SendResponse'paymentRoute+ (\ x__ y__ -> x__ {_SendResponse'paymentRoute = y__}))+ Prelude.id+instance Data.ProtoLens.Field.HasField SendResponse "paymentHash" Data.ByteString.ByteString where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _SendResponse'paymentHash+ (\ x__ y__ -> x__ {_SendResponse'paymentHash = y__}))+ Prelude.id+instance Data.ProtoLens.Message SendResponse where+ messageName _ = Data.Text.pack "lnrpc.SendResponse"+ packedMessageDescriptor _+ = "\n\+ \\fSendResponse\DC2#\n\+ \\rpayment_error\CAN\SOH \SOH(\tR\fpaymentError\DC2)\n\+ \\DLEpayment_preimage\CAN\STX \SOH(\fR\SIpaymentPreimage\DC21\n\+ \\rpayment_route\CAN\ETX \SOH(\v2\f.lnrpc.RouteR\fpaymentRoute\DC2!\n\+ \\fpayment_hash\CAN\EOT \SOH(\fR\vpaymentHash"+ packedFileDescriptor _ = packedFileDescriptor+ fieldsByTag+ = let+ paymentError__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "payment_error"+ (Data.ProtoLens.ScalarField Data.ProtoLens.StringField ::+ Data.ProtoLens.FieldTypeDescriptor Data.Text.Text)+ (Data.ProtoLens.PlainField+ Data.ProtoLens.Optional+ (Data.ProtoLens.Field.field @"paymentError")) ::+ Data.ProtoLens.FieldDescriptor SendResponse+ paymentPreimage__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "payment_preimage"+ (Data.ProtoLens.ScalarField Data.ProtoLens.BytesField ::+ Data.ProtoLens.FieldTypeDescriptor Data.ByteString.ByteString)+ (Data.ProtoLens.PlainField+ Data.ProtoLens.Optional+ (Data.ProtoLens.Field.field @"paymentPreimage")) ::+ Data.ProtoLens.FieldDescriptor SendResponse+ paymentRoute__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "payment_route"+ (Data.ProtoLens.MessageField Data.ProtoLens.MessageType ::+ Data.ProtoLens.FieldTypeDescriptor Proto.Lnrpc.Ln0.Route)+ (Data.ProtoLens.OptionalField+ (Data.ProtoLens.Field.field @"maybe'paymentRoute")) ::+ Data.ProtoLens.FieldDescriptor SendResponse+ paymentHash__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "payment_hash"+ (Data.ProtoLens.ScalarField Data.ProtoLens.BytesField ::+ Data.ProtoLens.FieldTypeDescriptor Data.ByteString.ByteString)+ (Data.ProtoLens.PlainField+ Data.ProtoLens.Optional+ (Data.ProtoLens.Field.field @"paymentHash")) ::+ Data.ProtoLens.FieldDescriptor SendResponse+ in+ Data.Map.fromList+ [(Data.ProtoLens.Tag 1, paymentError__field_descriptor),+ (Data.ProtoLens.Tag 2, paymentPreimage__field_descriptor),+ (Data.ProtoLens.Tag 3, paymentRoute__field_descriptor),+ (Data.ProtoLens.Tag 4, paymentHash__field_descriptor)]+ unknownFields+ = Lens.Family2.Unchecked.lens+ _SendResponse'_unknownFields+ (\ x__ y__ -> x__ {_SendResponse'_unknownFields = y__})+ defMessage+ = SendResponse'_constructor+ {_SendResponse'paymentError = Data.ProtoLens.fieldDefault,+ _SendResponse'paymentPreimage = Data.ProtoLens.fieldDefault,+ _SendResponse'paymentRoute = Prelude.Nothing,+ _SendResponse'paymentHash = Data.ProtoLens.fieldDefault,+ _SendResponse'_unknownFields = []}+ parseMessage+ = let+ loop ::+ SendResponse -> Data.ProtoLens.Encoding.Bytes.Parser SendResponse+ loop x+ = do end <- Data.ProtoLens.Encoding.Bytes.atEnd+ if end then+ do (let missing = []+ in+ if Prelude.null missing then+ Prelude.return ()+ else+ Prelude.fail+ ((Prelude.++)+ "Missing required fields: "+ (Prelude.show (missing :: [Prelude.String]))))+ Prelude.return+ (Lens.Family2.over+ Data.ProtoLens.unknownFields (\ !t -> Prelude.reverse t) x)+ else+ do tag <- Data.ProtoLens.Encoding.Bytes.getVarInt+ case tag of+ 10+ -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (do value <- do len <- Data.ProtoLens.Encoding.Bytes.getVarInt+ Data.ProtoLens.Encoding.Bytes.getBytes+ (Prelude.fromIntegral len)+ Data.ProtoLens.Encoding.Bytes.runEither+ (case Data.Text.Encoding.decodeUtf8' value of+ (Prelude.Left err)+ -> Prelude.Left (Prelude.show err)+ (Prelude.Right r) -> Prelude.Right r))+ "payment_error"+ loop+ (Lens.Family2.set+ (Data.ProtoLens.Field.field @"paymentError") y x)+ 18+ -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (do len <- Data.ProtoLens.Encoding.Bytes.getVarInt+ Data.ProtoLens.Encoding.Bytes.getBytes+ (Prelude.fromIntegral len))+ "payment_preimage"+ loop+ (Lens.Family2.set+ (Data.ProtoLens.Field.field @"paymentPreimage") y x)+ 26+ -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (do len <- Data.ProtoLens.Encoding.Bytes.getVarInt+ Data.ProtoLens.Encoding.Bytes.isolate+ (Prelude.fromIntegral len) Data.ProtoLens.parseMessage)+ "payment_route"+ loop+ (Lens.Family2.set+ (Data.ProtoLens.Field.field @"paymentRoute") y x)+ 34+ -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (do len <- Data.ProtoLens.Encoding.Bytes.getVarInt+ Data.ProtoLens.Encoding.Bytes.getBytes+ (Prelude.fromIntegral len))+ "payment_hash"+ loop+ (Lens.Family2.set (Data.ProtoLens.Field.field @"paymentHash") y x)+ wire+ -> do !y <- Data.ProtoLens.Encoding.Wire.parseTaggedValueFromWire+ wire+ loop+ (Lens.Family2.over+ Data.ProtoLens.unknownFields (\ !t -> (:) y t) x)+ in+ (Data.ProtoLens.Encoding.Bytes.<?>)+ (do loop Data.ProtoLens.defMessage) "SendResponse"+ buildMessage+ = \ _x+ -> (Data.Monoid.<>)+ (let+ _v+ = Lens.Family2.view (Data.ProtoLens.Field.field @"paymentError") _x+ in+ if (Prelude.==) _v Data.ProtoLens.fieldDefault then+ Data.Monoid.mempty+ else+ (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 10)+ ((Prelude..)+ (\ bs+ -> (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt+ (Prelude.fromIntegral (Data.ByteString.length bs)))+ (Data.ProtoLens.Encoding.Bytes.putBytes bs))+ Data.Text.Encoding.encodeUtf8 _v))+ ((Data.Monoid.<>)+ (let+ _v+ = Lens.Family2.view+ (Data.ProtoLens.Field.field @"paymentPreimage") _x+ in+ if (Prelude.==) _v Data.ProtoLens.fieldDefault then+ Data.Monoid.mempty+ else+ (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 18)+ ((\ bs+ -> (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt+ (Prelude.fromIntegral (Data.ByteString.length bs)))+ (Data.ProtoLens.Encoding.Bytes.putBytes bs))+ _v))+ ((Data.Monoid.<>)+ (case+ Lens.Family2.view+ (Data.ProtoLens.Field.field @"maybe'paymentRoute") _x+ of+ Prelude.Nothing -> Data.Monoid.mempty+ (Prelude.Just _v)+ -> (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 26)+ ((Prelude..)+ (\ bs+ -> (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt+ (Prelude.fromIntegral (Data.ByteString.length bs)))+ (Data.ProtoLens.Encoding.Bytes.putBytes bs))+ Data.ProtoLens.encodeMessage _v))+ ((Data.Monoid.<>)+ (let+ _v+ = Lens.Family2.view (Data.ProtoLens.Field.field @"paymentHash") _x+ in+ if (Prelude.==) _v Data.ProtoLens.fieldDefault then+ Data.Monoid.mempty+ else+ (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 34)+ ((\ bs+ -> (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt+ (Prelude.fromIntegral (Data.ByteString.length bs)))+ (Data.ProtoLens.Encoding.Bytes.putBytes bs))+ _v))+ (Data.ProtoLens.Encoding.Wire.buildFieldSet+ (Lens.Family2.view Data.ProtoLens.unknownFields _x)))))+instance Control.DeepSeq.NFData SendResponse where+ rnf+ = \ x__+ -> Control.DeepSeq.deepseq+ (_SendResponse'_unknownFields x__)+ (Control.DeepSeq.deepseq+ (_SendResponse'paymentError x__)+ (Control.DeepSeq.deepseq+ (_SendResponse'paymentPreimage x__)+ (Control.DeepSeq.deepseq+ (_SendResponse'paymentRoute x__)+ (Control.DeepSeq.deepseq (_SendResponse'paymentHash x__) ()))))+{- | Fields :+ + * 'Proto.Lightning_Fields.paymentHash' @:: Lens' SendToRouteRequest Data.ByteString.ByteString@+ * 'Proto.Lightning_Fields.paymentHashString' @:: Lens' SendToRouteRequest Data.Text.Text@+ * 'Proto.Lightning_Fields.route' @:: Lens' SendToRouteRequest Proto.Lnrpc.Ln0.Route@+ * 'Proto.Lightning_Fields.maybe'route' @:: Lens' SendToRouteRequest (Prelude.Maybe Proto.Lnrpc.Ln0.Route)@ -}+data SendToRouteRequest+ = SendToRouteRequest'_constructor {_SendToRouteRequest'paymentHash :: !Data.ByteString.ByteString,+ _SendToRouteRequest'paymentHashString :: !Data.Text.Text,+ _SendToRouteRequest'route :: !(Prelude.Maybe Proto.Lnrpc.Ln0.Route),+ _SendToRouteRequest'_unknownFields :: !Data.ProtoLens.FieldSet}+ deriving stock (Prelude.Eq, Prelude.Ord, GHC.Generics.Generic)+instance Prelude.Show SendToRouteRequest where+ showsPrec _ __x __s+ = Prelude.showChar+ '{'+ (Prelude.showString+ (Data.ProtoLens.showMessageShort __x) (Prelude.showChar '}' __s))+instance Text.PrettyPrint.GenericPretty.Out SendToRouteRequest+instance Data.ProtoLens.Field.HasField SendToRouteRequest "paymentHash" Data.ByteString.ByteString where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _SendToRouteRequest'paymentHash+ (\ x__ y__ -> x__ {_SendToRouteRequest'paymentHash = y__}))+ Prelude.id+instance Data.ProtoLens.Field.HasField SendToRouteRequest "paymentHashString" Data.Text.Text where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _SendToRouteRequest'paymentHashString+ (\ x__ y__ -> x__ {_SendToRouteRequest'paymentHashString = y__}))+ Prelude.id+instance Data.ProtoLens.Field.HasField SendToRouteRequest "route" Proto.Lnrpc.Ln0.Route where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _SendToRouteRequest'route+ (\ x__ y__ -> x__ {_SendToRouteRequest'route = y__}))+ (Data.ProtoLens.maybeLens Data.ProtoLens.defMessage)+instance Data.ProtoLens.Field.HasField SendToRouteRequest "maybe'route" (Prelude.Maybe Proto.Lnrpc.Ln0.Route) where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _SendToRouteRequest'route+ (\ x__ y__ -> x__ {_SendToRouteRequest'route = y__}))+ Prelude.id+instance Data.ProtoLens.Message SendToRouteRequest where+ messageName _ = Data.Text.pack "lnrpc.SendToRouteRequest"+ packedMessageDescriptor _+ = "\n\+ \\DC2SendToRouteRequest\DC2!\n\+ \\fpayment_hash\CAN\SOH \SOH(\fR\vpaymentHash\DC22\n\+ \\DC3payment_hash_string\CAN\STX \SOH(\tR\DC1paymentHashStringB\STX\CAN\SOH\DC2\"\n\+ \\ENQroute\CAN\EOT \SOH(\v2\f.lnrpc.RouteR\ENQrouteJ\EOT\b\ETX\DLE\EOT"+ packedFileDescriptor _ = packedFileDescriptor+ fieldsByTag+ = let+ paymentHash__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "payment_hash"+ (Data.ProtoLens.ScalarField Data.ProtoLens.BytesField ::+ Data.ProtoLens.FieldTypeDescriptor Data.ByteString.ByteString)+ (Data.ProtoLens.PlainField+ Data.ProtoLens.Optional+ (Data.ProtoLens.Field.field @"paymentHash")) ::+ Data.ProtoLens.FieldDescriptor SendToRouteRequest+ paymentHashString__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "payment_hash_string"+ (Data.ProtoLens.ScalarField Data.ProtoLens.StringField ::+ Data.ProtoLens.FieldTypeDescriptor Data.Text.Text)+ (Data.ProtoLens.PlainField+ Data.ProtoLens.Optional+ (Data.ProtoLens.Field.field @"paymentHashString")) ::+ Data.ProtoLens.FieldDescriptor SendToRouteRequest+ route__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "route"+ (Data.ProtoLens.MessageField Data.ProtoLens.MessageType ::+ Data.ProtoLens.FieldTypeDescriptor Proto.Lnrpc.Ln0.Route)+ (Data.ProtoLens.OptionalField+ (Data.ProtoLens.Field.field @"maybe'route")) ::+ Data.ProtoLens.FieldDescriptor SendToRouteRequest+ in+ Data.Map.fromList+ [(Data.ProtoLens.Tag 1, paymentHash__field_descriptor),+ (Data.ProtoLens.Tag 2, paymentHashString__field_descriptor),+ (Data.ProtoLens.Tag 4, route__field_descriptor)]+ unknownFields+ = Lens.Family2.Unchecked.lens+ _SendToRouteRequest'_unknownFields+ (\ x__ y__ -> x__ {_SendToRouteRequest'_unknownFields = y__})+ defMessage+ = SendToRouteRequest'_constructor+ {_SendToRouteRequest'paymentHash = Data.ProtoLens.fieldDefault,+ _SendToRouteRequest'paymentHashString = Data.ProtoLens.fieldDefault,+ _SendToRouteRequest'route = Prelude.Nothing,+ _SendToRouteRequest'_unknownFields = []}+ parseMessage+ = let+ loop ::+ SendToRouteRequest+ -> Data.ProtoLens.Encoding.Bytes.Parser SendToRouteRequest+ loop x+ = do end <- Data.ProtoLens.Encoding.Bytes.atEnd+ if end then+ do (let missing = []+ in+ if Prelude.null missing then+ Prelude.return ()+ else+ Prelude.fail+ ((Prelude.++)+ "Missing required fields: "+ (Prelude.show (missing :: [Prelude.String]))))+ Prelude.return+ (Lens.Family2.over+ Data.ProtoLens.unknownFields (\ !t -> Prelude.reverse t) x)+ else+ do tag <- Data.ProtoLens.Encoding.Bytes.getVarInt+ case tag of+ 10+ -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (do len <- Data.ProtoLens.Encoding.Bytes.getVarInt+ Data.ProtoLens.Encoding.Bytes.getBytes+ (Prelude.fromIntegral len))+ "payment_hash"+ loop+ (Lens.Family2.set (Data.ProtoLens.Field.field @"paymentHash") y x)+ 18+ -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (do value <- do len <- Data.ProtoLens.Encoding.Bytes.getVarInt+ Data.ProtoLens.Encoding.Bytes.getBytes+ (Prelude.fromIntegral len)+ Data.ProtoLens.Encoding.Bytes.runEither+ (case Data.Text.Encoding.decodeUtf8' value of+ (Prelude.Left err)+ -> Prelude.Left (Prelude.show err)+ (Prelude.Right r) -> Prelude.Right r))+ "payment_hash_string"+ loop+ (Lens.Family2.set+ (Data.ProtoLens.Field.field @"paymentHashString") y x)+ 34+ -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (do len <- Data.ProtoLens.Encoding.Bytes.getVarInt+ Data.ProtoLens.Encoding.Bytes.isolate+ (Prelude.fromIntegral len) Data.ProtoLens.parseMessage)+ "route"+ loop (Lens.Family2.set (Data.ProtoLens.Field.field @"route") y x)+ wire+ -> do !y <- Data.ProtoLens.Encoding.Wire.parseTaggedValueFromWire+ wire+ loop+ (Lens.Family2.over+ Data.ProtoLens.unknownFields (\ !t -> (:) y t) x)+ in+ (Data.ProtoLens.Encoding.Bytes.<?>)+ (do loop Data.ProtoLens.defMessage) "SendToRouteRequest"+ buildMessage+ = \ _x+ -> (Data.Monoid.<>)+ (let+ _v+ = Lens.Family2.view (Data.ProtoLens.Field.field @"paymentHash") _x+ in+ if (Prelude.==) _v Data.ProtoLens.fieldDefault then+ Data.Monoid.mempty+ else+ (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 10)+ ((\ bs+ -> (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt+ (Prelude.fromIntegral (Data.ByteString.length bs)))+ (Data.ProtoLens.Encoding.Bytes.putBytes bs))+ _v))+ ((Data.Monoid.<>)+ (let+ _v+ = Lens.Family2.view+ (Data.ProtoLens.Field.field @"paymentHashString") _x+ in+ if (Prelude.==) _v Data.ProtoLens.fieldDefault then+ Data.Monoid.mempty+ else+ (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 18)+ ((Prelude..)+ (\ bs+ -> (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt+ (Prelude.fromIntegral (Data.ByteString.length bs)))+ (Data.ProtoLens.Encoding.Bytes.putBytes bs))+ Data.Text.Encoding.encodeUtf8 _v))+ ((Data.Monoid.<>)+ (case+ Lens.Family2.view (Data.ProtoLens.Field.field @"maybe'route") _x+ of+ Prelude.Nothing -> Data.Monoid.mempty+ (Prelude.Just _v)+ -> (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 34)+ ((Prelude..)+ (\ bs+ -> (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt+ (Prelude.fromIntegral (Data.ByteString.length bs)))+ (Data.ProtoLens.Encoding.Bytes.putBytes bs))+ Data.ProtoLens.encodeMessage _v))+ (Data.ProtoLens.Encoding.Wire.buildFieldSet+ (Lens.Family2.view Data.ProtoLens.unknownFields _x))))+instance Control.DeepSeq.NFData SendToRouteRequest where+ rnf+ = \ x__+ -> Control.DeepSeq.deepseq+ (_SendToRouteRequest'_unknownFields x__)+ (Control.DeepSeq.deepseq+ (_SendToRouteRequest'paymentHash x__)+ (Control.DeepSeq.deepseq+ (_SendToRouteRequest'paymentHashString x__)+ (Control.DeepSeq.deepseq (_SendToRouteRequest'route x__) ())))+{- | Fields :+ + * 'Proto.Lightning_Fields.msg' @:: Lens' SignMessageRequest Data.ByteString.ByteString@+ * 'Proto.Lightning_Fields.singleHash' @:: Lens' SignMessageRequest Prelude.Bool@ -}+data SignMessageRequest+ = SignMessageRequest'_constructor {_SignMessageRequest'msg :: !Data.ByteString.ByteString,+ _SignMessageRequest'singleHash :: !Prelude.Bool,+ _SignMessageRequest'_unknownFields :: !Data.ProtoLens.FieldSet}+ deriving stock (Prelude.Eq, Prelude.Ord, GHC.Generics.Generic)+instance Prelude.Show SignMessageRequest where+ showsPrec _ __x __s+ = Prelude.showChar+ '{'+ (Prelude.showString+ (Data.ProtoLens.showMessageShort __x) (Prelude.showChar '}' __s))+instance Text.PrettyPrint.GenericPretty.Out SignMessageRequest+instance Data.ProtoLens.Field.HasField SignMessageRequest "msg" Data.ByteString.ByteString where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _SignMessageRequest'msg+ (\ x__ y__ -> x__ {_SignMessageRequest'msg = y__}))+ Prelude.id+instance Data.ProtoLens.Field.HasField SignMessageRequest "singleHash" Prelude.Bool where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _SignMessageRequest'singleHash+ (\ x__ y__ -> x__ {_SignMessageRequest'singleHash = y__}))+ Prelude.id+instance Data.ProtoLens.Message SignMessageRequest where+ messageName _ = Data.Text.pack "lnrpc.SignMessageRequest"+ packedMessageDescriptor _+ = "\n\+ \\DC2SignMessageRequest\DC2\DLE\n\+ \\ETXmsg\CAN\SOH \SOH(\fR\ETXmsg\DC2\US\n\+ \\vsingle_hash\CAN\STX \SOH(\bR\n\+ \singleHash"+ packedFileDescriptor _ = packedFileDescriptor+ fieldsByTag+ = let+ msg__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "msg"+ (Data.ProtoLens.ScalarField Data.ProtoLens.BytesField ::+ Data.ProtoLens.FieldTypeDescriptor Data.ByteString.ByteString)+ (Data.ProtoLens.PlainField+ Data.ProtoLens.Optional (Data.ProtoLens.Field.field @"msg")) ::+ Data.ProtoLens.FieldDescriptor SignMessageRequest+ singleHash__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "single_hash"+ (Data.ProtoLens.ScalarField Data.ProtoLens.BoolField ::+ Data.ProtoLens.FieldTypeDescriptor Prelude.Bool)+ (Data.ProtoLens.PlainField+ Data.ProtoLens.Optional+ (Data.ProtoLens.Field.field @"singleHash")) ::+ Data.ProtoLens.FieldDescriptor SignMessageRequest+ in+ Data.Map.fromList+ [(Data.ProtoLens.Tag 1, msg__field_descriptor),+ (Data.ProtoLens.Tag 2, singleHash__field_descriptor)]+ unknownFields+ = Lens.Family2.Unchecked.lens+ _SignMessageRequest'_unknownFields+ (\ x__ y__ -> x__ {_SignMessageRequest'_unknownFields = y__})+ defMessage+ = SignMessageRequest'_constructor+ {_SignMessageRequest'msg = Data.ProtoLens.fieldDefault,+ _SignMessageRequest'singleHash = Data.ProtoLens.fieldDefault,+ _SignMessageRequest'_unknownFields = []}+ parseMessage+ = let+ loop ::+ SignMessageRequest+ -> Data.ProtoLens.Encoding.Bytes.Parser SignMessageRequest+ loop x+ = do end <- Data.ProtoLens.Encoding.Bytes.atEnd+ if end then+ do (let missing = []+ in+ if Prelude.null missing then+ Prelude.return ()+ else+ Prelude.fail+ ((Prelude.++)+ "Missing required fields: "+ (Prelude.show (missing :: [Prelude.String]))))+ Prelude.return+ (Lens.Family2.over+ Data.ProtoLens.unknownFields (\ !t -> Prelude.reverse t) x)+ else+ do tag <- Data.ProtoLens.Encoding.Bytes.getVarInt+ case tag of+ 10+ -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (do len <- Data.ProtoLens.Encoding.Bytes.getVarInt+ Data.ProtoLens.Encoding.Bytes.getBytes+ (Prelude.fromIntegral len))+ "msg"+ loop (Lens.Family2.set (Data.ProtoLens.Field.field @"msg") y x)+ 16+ -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (Prelude.fmap+ ((Prelude./=) 0) Data.ProtoLens.Encoding.Bytes.getVarInt)+ "single_hash"+ loop+ (Lens.Family2.set (Data.ProtoLens.Field.field @"singleHash") y x)+ wire+ -> do !y <- Data.ProtoLens.Encoding.Wire.parseTaggedValueFromWire+ wire+ loop+ (Lens.Family2.over+ Data.ProtoLens.unknownFields (\ !t -> (:) y t) x)+ in+ (Data.ProtoLens.Encoding.Bytes.<?>)+ (do loop Data.ProtoLens.defMessage) "SignMessageRequest"+ buildMessage+ = \ _x+ -> (Data.Monoid.<>)+ (let _v = Lens.Family2.view (Data.ProtoLens.Field.field @"msg") _x+ in+ if (Prelude.==) _v Data.ProtoLens.fieldDefault then+ Data.Monoid.mempty+ else+ (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 10)+ ((\ bs+ -> (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt+ (Prelude.fromIntegral (Data.ByteString.length bs)))+ (Data.ProtoLens.Encoding.Bytes.putBytes bs))+ _v))+ ((Data.Monoid.<>)+ (let+ _v+ = Lens.Family2.view (Data.ProtoLens.Field.field @"singleHash") _x+ in+ if (Prelude.==) _v Data.ProtoLens.fieldDefault then+ Data.Monoid.mempty+ else+ (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 16)+ ((Prelude..)+ Data.ProtoLens.Encoding.Bytes.putVarInt (\ b -> if b then 1 else 0)+ _v))+ (Data.ProtoLens.Encoding.Wire.buildFieldSet+ (Lens.Family2.view Data.ProtoLens.unknownFields _x)))+instance Control.DeepSeq.NFData SignMessageRequest where+ rnf+ = \ x__+ -> Control.DeepSeq.deepseq+ (_SignMessageRequest'_unknownFields x__)+ (Control.DeepSeq.deepseq+ (_SignMessageRequest'msg x__)+ (Control.DeepSeq.deepseq (_SignMessageRequest'singleHash x__) ()))+{- | Fields :+ + * 'Proto.Lightning_Fields.signature' @:: Lens' SignMessageResponse Data.Text.Text@ -}+data SignMessageResponse+ = SignMessageResponse'_constructor {_SignMessageResponse'signature :: !Data.Text.Text,+ _SignMessageResponse'_unknownFields :: !Data.ProtoLens.FieldSet}+ deriving stock (Prelude.Eq, Prelude.Ord, GHC.Generics.Generic)+instance Prelude.Show SignMessageResponse where+ showsPrec _ __x __s+ = Prelude.showChar+ '{'+ (Prelude.showString+ (Data.ProtoLens.showMessageShort __x) (Prelude.showChar '}' __s))+instance Text.PrettyPrint.GenericPretty.Out SignMessageResponse+instance Data.ProtoLens.Field.HasField SignMessageResponse "signature" Data.Text.Text where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _SignMessageResponse'signature+ (\ x__ y__ -> x__ {_SignMessageResponse'signature = y__}))+ Prelude.id+instance Data.ProtoLens.Message SignMessageResponse where+ messageName _ = Data.Text.pack "lnrpc.SignMessageResponse"+ packedMessageDescriptor _+ = "\n\+ \\DC3SignMessageResponse\DC2\FS\n\+ \\tsignature\CAN\SOH \SOH(\tR\tsignature"+ packedFileDescriptor _ = packedFileDescriptor+ fieldsByTag+ = let+ signature__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "signature"+ (Data.ProtoLens.ScalarField Data.ProtoLens.StringField ::+ Data.ProtoLens.FieldTypeDescriptor Data.Text.Text)+ (Data.ProtoLens.PlainField+ Data.ProtoLens.Optional+ (Data.ProtoLens.Field.field @"signature")) ::+ Data.ProtoLens.FieldDescriptor SignMessageResponse+ in+ Data.Map.fromList+ [(Data.ProtoLens.Tag 1, signature__field_descriptor)]+ unknownFields+ = Lens.Family2.Unchecked.lens+ _SignMessageResponse'_unknownFields+ (\ x__ y__ -> x__ {_SignMessageResponse'_unknownFields = y__})+ defMessage+ = SignMessageResponse'_constructor+ {_SignMessageResponse'signature = Data.ProtoLens.fieldDefault,+ _SignMessageResponse'_unknownFields = []}+ parseMessage+ = let+ loop ::+ SignMessageResponse+ -> Data.ProtoLens.Encoding.Bytes.Parser SignMessageResponse+ loop x+ = do end <- Data.ProtoLens.Encoding.Bytes.atEnd+ if end then+ do (let missing = []+ in+ if Prelude.null missing then+ Prelude.return ()+ else+ Prelude.fail+ ((Prelude.++)+ "Missing required fields: "+ (Prelude.show (missing :: [Prelude.String]))))+ Prelude.return+ (Lens.Family2.over+ Data.ProtoLens.unknownFields (\ !t -> Prelude.reverse t) x)+ else+ do tag <- Data.ProtoLens.Encoding.Bytes.getVarInt+ case tag of+ 10+ -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (do value <- do len <- Data.ProtoLens.Encoding.Bytes.getVarInt+ Data.ProtoLens.Encoding.Bytes.getBytes+ (Prelude.fromIntegral len)+ Data.ProtoLens.Encoding.Bytes.runEither+ (case Data.Text.Encoding.decodeUtf8' value of+ (Prelude.Left err)+ -> Prelude.Left (Prelude.show err)+ (Prelude.Right r) -> Prelude.Right r))+ "signature"+ loop+ (Lens.Family2.set (Data.ProtoLens.Field.field @"signature") y x)+ wire+ -> do !y <- Data.ProtoLens.Encoding.Wire.parseTaggedValueFromWire+ wire+ loop+ (Lens.Family2.over+ Data.ProtoLens.unknownFields (\ !t -> (:) y t) x)+ in+ (Data.ProtoLens.Encoding.Bytes.<?>)+ (do loop Data.ProtoLens.defMessage) "SignMessageResponse"+ buildMessage+ = \ _x+ -> (Data.Monoid.<>)+ (let+ _v = Lens.Family2.view (Data.ProtoLens.Field.field @"signature") _x+ in+ if (Prelude.==) _v Data.ProtoLens.fieldDefault then+ Data.Monoid.mempty+ else+ (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 10)+ ((Prelude..)+ (\ bs+ -> (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt+ (Prelude.fromIntegral (Data.ByteString.length bs)))+ (Data.ProtoLens.Encoding.Bytes.putBytes bs))+ Data.Text.Encoding.encodeUtf8 _v))+ (Data.ProtoLens.Encoding.Wire.buildFieldSet+ (Lens.Family2.view Data.ProtoLens.unknownFields _x))+instance Control.DeepSeq.NFData SignMessageResponse where+ rnf+ = \ x__+ -> Control.DeepSeq.deepseq+ (_SignMessageResponse'_unknownFields x__)+ (Control.DeepSeq.deepseq (_SignMessageResponse'signature x__) ())+{- | Fields :+ -}+data SubscribeCustomMessagesRequest+ = SubscribeCustomMessagesRequest'_constructor {_SubscribeCustomMessagesRequest'_unknownFields :: !Data.ProtoLens.FieldSet}+ deriving stock (Prelude.Eq, Prelude.Ord, GHC.Generics.Generic)+instance Prelude.Show SubscribeCustomMessagesRequest where+ showsPrec _ __x __s+ = Prelude.showChar+ '{'+ (Prelude.showString+ (Data.ProtoLens.showMessageShort __x) (Prelude.showChar '}' __s))+instance Text.PrettyPrint.GenericPretty.Out SubscribeCustomMessagesRequest+instance Data.ProtoLens.Message SubscribeCustomMessagesRequest where+ messageName _+ = Data.Text.pack "lnrpc.SubscribeCustomMessagesRequest"+ packedMessageDescriptor _+ = "\n\+ \\RSSubscribeCustomMessagesRequest"+ packedFileDescriptor _ = packedFileDescriptor+ fieldsByTag = let in Data.Map.fromList []+ unknownFields+ = Lens.Family2.Unchecked.lens+ _SubscribeCustomMessagesRequest'_unknownFields+ (\ x__ y__+ -> x__ {_SubscribeCustomMessagesRequest'_unknownFields = y__})+ defMessage+ = SubscribeCustomMessagesRequest'_constructor+ {_SubscribeCustomMessagesRequest'_unknownFields = []}+ parseMessage+ = let+ loop ::+ SubscribeCustomMessagesRequest+ -> Data.ProtoLens.Encoding.Bytes.Parser SubscribeCustomMessagesRequest+ loop x+ = do end <- Data.ProtoLens.Encoding.Bytes.atEnd+ if end then+ do (let missing = []+ in+ if Prelude.null missing then+ Prelude.return ()+ else+ Prelude.fail+ ((Prelude.++)+ "Missing required fields: "+ (Prelude.show (missing :: [Prelude.String]))))+ Prelude.return+ (Lens.Family2.over+ Data.ProtoLens.unknownFields (\ !t -> Prelude.reverse t) x)+ else+ do tag <- Data.ProtoLens.Encoding.Bytes.getVarInt+ case tag of {+ wire+ -> do !y <- Data.ProtoLens.Encoding.Wire.parseTaggedValueFromWire+ wire+ loop+ (Lens.Family2.over+ Data.ProtoLens.unknownFields (\ !t -> (:) y t) x) }+ in+ (Data.ProtoLens.Encoding.Bytes.<?>)+ (do loop Data.ProtoLens.defMessage)+ "SubscribeCustomMessagesRequest"+ buildMessage+ = \ _x+ -> Data.ProtoLens.Encoding.Wire.buildFieldSet+ (Lens.Family2.view Data.ProtoLens.unknownFields _x)+instance Control.DeepSeq.NFData SubscribeCustomMessagesRequest where+ rnf+ = \ x__+ -> Control.DeepSeq.deepseq+ (_SubscribeCustomMessagesRequest'_unknownFields x__) ()+{- | Fields :+ + * 'Proto.Lightning_Fields.timestamp' @:: Lens' TimestampedError Data.Word.Word64@+ * 'Proto.Lightning_Fields.error' @:: Lens' TimestampedError Data.Text.Text@ -}+data TimestampedError+ = TimestampedError'_constructor {_TimestampedError'timestamp :: !Data.Word.Word64,+ _TimestampedError'error :: !Data.Text.Text,+ _TimestampedError'_unknownFields :: !Data.ProtoLens.FieldSet}+ deriving stock (Prelude.Eq, Prelude.Ord, GHC.Generics.Generic)+instance Prelude.Show TimestampedError where+ showsPrec _ __x __s+ = Prelude.showChar+ '{'+ (Prelude.showString+ (Data.ProtoLens.showMessageShort __x) (Prelude.showChar '}' __s))+instance Text.PrettyPrint.GenericPretty.Out TimestampedError+instance Data.ProtoLens.Field.HasField TimestampedError "timestamp" Data.Word.Word64 where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _TimestampedError'timestamp+ (\ x__ y__ -> x__ {_TimestampedError'timestamp = y__}))+ Prelude.id+instance Data.ProtoLens.Field.HasField TimestampedError "error" Data.Text.Text where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _TimestampedError'error+ (\ x__ y__ -> x__ {_TimestampedError'error = y__}))+ Prelude.id+instance Data.ProtoLens.Message TimestampedError where+ messageName _ = Data.Text.pack "lnrpc.TimestampedError"+ packedMessageDescriptor _+ = "\n\+ \\DLETimestampedError\DC2\FS\n\+ \\ttimestamp\CAN\SOH \SOH(\EOTR\ttimestamp\DC2\DC4\n\+ \\ENQerror\CAN\STX \SOH(\tR\ENQerror"+ packedFileDescriptor _ = packedFileDescriptor+ fieldsByTag+ = let+ timestamp__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "timestamp"+ (Data.ProtoLens.ScalarField Data.ProtoLens.UInt64Field ::+ Data.ProtoLens.FieldTypeDescriptor Data.Word.Word64)+ (Data.ProtoLens.PlainField+ Data.ProtoLens.Optional+ (Data.ProtoLens.Field.field @"timestamp")) ::+ Data.ProtoLens.FieldDescriptor TimestampedError+ error__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "error"+ (Data.ProtoLens.ScalarField Data.ProtoLens.StringField ::+ Data.ProtoLens.FieldTypeDescriptor Data.Text.Text)+ (Data.ProtoLens.PlainField+ Data.ProtoLens.Optional (Data.ProtoLens.Field.field @"error")) ::+ Data.ProtoLens.FieldDescriptor TimestampedError+ in+ Data.Map.fromList+ [(Data.ProtoLens.Tag 1, timestamp__field_descriptor),+ (Data.ProtoLens.Tag 2, error__field_descriptor)]+ unknownFields+ = Lens.Family2.Unchecked.lens+ _TimestampedError'_unknownFields+ (\ x__ y__ -> x__ {_TimestampedError'_unknownFields = y__})+ defMessage+ = TimestampedError'_constructor+ {_TimestampedError'timestamp = Data.ProtoLens.fieldDefault,+ _TimestampedError'error = Data.ProtoLens.fieldDefault,+ _TimestampedError'_unknownFields = []}+ parseMessage+ = let+ loop ::+ TimestampedError+ -> Data.ProtoLens.Encoding.Bytes.Parser TimestampedError+ loop x+ = do end <- Data.ProtoLens.Encoding.Bytes.atEnd+ if end then+ do (let missing = []+ in+ if Prelude.null missing then+ Prelude.return ()+ else+ Prelude.fail+ ((Prelude.++)+ "Missing required fields: "+ (Prelude.show (missing :: [Prelude.String]))))+ Prelude.return+ (Lens.Family2.over+ Data.ProtoLens.unknownFields (\ !t -> Prelude.reverse t) x)+ else+ do tag <- Data.ProtoLens.Encoding.Bytes.getVarInt+ case tag of+ 8 -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ Data.ProtoLens.Encoding.Bytes.getVarInt "timestamp"+ loop+ (Lens.Family2.set (Data.ProtoLens.Field.field @"timestamp") y x)+ 18+ -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (do value <- do len <- Data.ProtoLens.Encoding.Bytes.getVarInt+ Data.ProtoLens.Encoding.Bytes.getBytes+ (Prelude.fromIntegral len)+ Data.ProtoLens.Encoding.Bytes.runEither+ (case Data.Text.Encoding.decodeUtf8' value of+ (Prelude.Left err)+ -> Prelude.Left (Prelude.show err)+ (Prelude.Right r) -> Prelude.Right r))+ "error"+ loop (Lens.Family2.set (Data.ProtoLens.Field.field @"error") y x)+ wire+ -> do !y <- Data.ProtoLens.Encoding.Wire.parseTaggedValueFromWire+ wire+ loop+ (Lens.Family2.over+ Data.ProtoLens.unknownFields (\ !t -> (:) y t) x)+ in+ (Data.ProtoLens.Encoding.Bytes.<?>)+ (do loop Data.ProtoLens.defMessage) "TimestampedError"+ buildMessage+ = \ _x+ -> (Data.Monoid.<>)+ (let+ _v = Lens.Family2.view (Data.ProtoLens.Field.field @"timestamp") _x+ in+ if (Prelude.==) _v Data.ProtoLens.fieldDefault then+ Data.Monoid.mempty+ else+ (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 8)+ (Data.ProtoLens.Encoding.Bytes.putVarInt _v))+ ((Data.Monoid.<>)+ (let+ _v = Lens.Family2.view (Data.ProtoLens.Field.field @"error") _x+ in+ if (Prelude.==) _v Data.ProtoLens.fieldDefault then+ Data.Monoid.mempty+ else+ (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 18)+ ((Prelude..)+ (\ bs+ -> (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt+ (Prelude.fromIntegral (Data.ByteString.length bs)))+ (Data.ProtoLens.Encoding.Bytes.putBytes bs))+ Data.Text.Encoding.encodeUtf8 _v))+ (Data.ProtoLens.Encoding.Wire.buildFieldSet+ (Lens.Family2.view Data.ProtoLens.unknownFields _x)))+instance Control.DeepSeq.NFData TimestampedError where+ rnf+ = \ x__+ -> Control.DeepSeq.deepseq+ (_TimestampedError'_unknownFields x__)+ (Control.DeepSeq.deepseq+ (_TimestampedError'timestamp x__)+ (Control.DeepSeq.deepseq (_TimestampedError'error x__) ()))+{- | Fields :+ + * 'Proto.Lightning_Fields.txHash' @:: Lens' Transaction Data.Text.Text@+ * 'Proto.Lightning_Fields.amount' @:: Lens' Transaction Data.Int.Int64@+ * 'Proto.Lightning_Fields.numConfirmations' @:: Lens' Transaction Data.Int.Int32@+ * 'Proto.Lightning_Fields.blockHash' @:: Lens' Transaction Data.Text.Text@+ * 'Proto.Lightning_Fields.blockHeight' @:: Lens' Transaction Data.Int.Int32@+ * 'Proto.Lightning_Fields.timeStamp' @:: Lens' Transaction Data.Int.Int64@+ * 'Proto.Lightning_Fields.totalFees' @:: Lens' Transaction Data.Int.Int64@+ * 'Proto.Lightning_Fields.destAddresses' @:: Lens' Transaction [Data.Text.Text]@+ * 'Proto.Lightning_Fields.vec'destAddresses' @:: Lens' Transaction (Data.Vector.Vector Data.Text.Text)@+ * 'Proto.Lightning_Fields.rawTxHex' @:: Lens' Transaction Data.Text.Text@+ * 'Proto.Lightning_Fields.label' @:: Lens' Transaction Data.Text.Text@ -}+data Transaction+ = Transaction'_constructor {_Transaction'txHash :: !Data.Text.Text,+ _Transaction'amount :: !Data.Int.Int64,+ _Transaction'numConfirmations :: !Data.Int.Int32,+ _Transaction'blockHash :: !Data.Text.Text,+ _Transaction'blockHeight :: !Data.Int.Int32,+ _Transaction'timeStamp :: !Data.Int.Int64,+ _Transaction'totalFees :: !Data.Int.Int64,+ _Transaction'destAddresses :: !(Data.Vector.Vector Data.Text.Text),+ _Transaction'rawTxHex :: !Data.Text.Text,+ _Transaction'label :: !Data.Text.Text,+ _Transaction'_unknownFields :: !Data.ProtoLens.FieldSet}+ deriving stock (Prelude.Eq, Prelude.Ord, GHC.Generics.Generic)+instance Prelude.Show Transaction where+ showsPrec _ __x __s+ = Prelude.showChar+ '{'+ (Prelude.showString+ (Data.ProtoLens.showMessageShort __x) (Prelude.showChar '}' __s))+instance Text.PrettyPrint.GenericPretty.Out Transaction+instance Data.ProtoLens.Field.HasField Transaction "txHash" Data.Text.Text where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _Transaction'txHash (\ x__ y__ -> x__ {_Transaction'txHash = y__}))+ Prelude.id+instance Data.ProtoLens.Field.HasField Transaction "amount" Data.Int.Int64 where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _Transaction'amount (\ x__ y__ -> x__ {_Transaction'amount = y__}))+ Prelude.id+instance Data.ProtoLens.Field.HasField Transaction "numConfirmations" Data.Int.Int32 where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _Transaction'numConfirmations+ (\ x__ y__ -> x__ {_Transaction'numConfirmations = y__}))+ Prelude.id+instance Data.ProtoLens.Field.HasField Transaction "blockHash" Data.Text.Text where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _Transaction'blockHash+ (\ x__ y__ -> x__ {_Transaction'blockHash = y__}))+ Prelude.id+instance Data.ProtoLens.Field.HasField Transaction "blockHeight" Data.Int.Int32 where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _Transaction'blockHeight+ (\ x__ y__ -> x__ {_Transaction'blockHeight = y__}))+ Prelude.id+instance Data.ProtoLens.Field.HasField Transaction "timeStamp" Data.Int.Int64 where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _Transaction'timeStamp+ (\ x__ y__ -> x__ {_Transaction'timeStamp = y__}))+ Prelude.id+instance Data.ProtoLens.Field.HasField Transaction "totalFees" Data.Int.Int64 where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _Transaction'totalFees+ (\ x__ y__ -> x__ {_Transaction'totalFees = y__}))+ Prelude.id+instance Data.ProtoLens.Field.HasField Transaction "destAddresses" [Data.Text.Text] where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _Transaction'destAddresses+ (\ x__ y__ -> x__ {_Transaction'destAddresses = y__}))+ (Lens.Family2.Unchecked.lens+ Data.Vector.Generic.toList+ (\ _ y__ -> Data.Vector.Generic.fromList y__))+instance Data.ProtoLens.Field.HasField Transaction "vec'destAddresses" (Data.Vector.Vector Data.Text.Text) where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _Transaction'destAddresses+ (\ x__ y__ -> x__ {_Transaction'destAddresses = y__}))+ Prelude.id+instance Data.ProtoLens.Field.HasField Transaction "rawTxHex" Data.Text.Text where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _Transaction'rawTxHex+ (\ x__ y__ -> x__ {_Transaction'rawTxHex = y__}))+ Prelude.id+instance Data.ProtoLens.Field.HasField Transaction "label" Data.Text.Text where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _Transaction'label (\ x__ y__ -> x__ {_Transaction'label = y__}))+ Prelude.id+instance Data.ProtoLens.Message Transaction where+ messageName _ = Data.Text.pack "lnrpc.Transaction"+ packedMessageDescriptor _+ = "\n\+ \\vTransaction\DC2\ETB\n\+ \\atx_hash\CAN\SOH \SOH(\tR\ACKtxHash\DC2\SYN\n\+ \\ACKamount\CAN\STX \SOH(\ETXR\ACKamount\DC2+\n\+ \\DC1num_confirmations\CAN\ETX \SOH(\ENQR\DLEnumConfirmations\DC2\GS\n\+ \\n\+ \block_hash\CAN\EOT \SOH(\tR\tblockHash\DC2!\n\+ \\fblock_height\CAN\ENQ \SOH(\ENQR\vblockHeight\DC2\GS\n\+ \\n\+ \time_stamp\CAN\ACK \SOH(\ETXR\ttimeStamp\DC2\GS\n\+ \\n\+ \total_fees\CAN\a \SOH(\ETXR\ttotalFees\DC2%\n\+ \\SOdest_addresses\CAN\b \ETX(\tR\rdestAddresses\DC2\FS\n\+ \\n\+ \raw_tx_hex\CAN\t \SOH(\tR\brawTxHex\DC2\DC4\n\+ \\ENQlabel\CAN\n\+ \ \SOH(\tR\ENQlabel"+ packedFileDescriptor _ = packedFileDescriptor+ fieldsByTag+ = let+ txHash__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "tx_hash"+ (Data.ProtoLens.ScalarField Data.ProtoLens.StringField ::+ Data.ProtoLens.FieldTypeDescriptor Data.Text.Text)+ (Data.ProtoLens.PlainField+ Data.ProtoLens.Optional (Data.ProtoLens.Field.field @"txHash")) ::+ Data.ProtoLens.FieldDescriptor Transaction+ amount__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "amount"+ (Data.ProtoLens.ScalarField Data.ProtoLens.Int64Field ::+ Data.ProtoLens.FieldTypeDescriptor Data.Int.Int64)+ (Data.ProtoLens.PlainField+ Data.ProtoLens.Optional (Data.ProtoLens.Field.field @"amount")) ::+ Data.ProtoLens.FieldDescriptor Transaction+ numConfirmations__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "num_confirmations"+ (Data.ProtoLens.ScalarField Data.ProtoLens.Int32Field ::+ Data.ProtoLens.FieldTypeDescriptor Data.Int.Int32)+ (Data.ProtoLens.PlainField+ Data.ProtoLens.Optional+ (Data.ProtoLens.Field.field @"numConfirmations")) ::+ Data.ProtoLens.FieldDescriptor Transaction+ blockHash__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "block_hash"+ (Data.ProtoLens.ScalarField Data.ProtoLens.StringField ::+ Data.ProtoLens.FieldTypeDescriptor Data.Text.Text)+ (Data.ProtoLens.PlainField+ Data.ProtoLens.Optional+ (Data.ProtoLens.Field.field @"blockHash")) ::+ Data.ProtoLens.FieldDescriptor Transaction+ blockHeight__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "block_height"+ (Data.ProtoLens.ScalarField Data.ProtoLens.Int32Field ::+ Data.ProtoLens.FieldTypeDescriptor Data.Int.Int32)+ (Data.ProtoLens.PlainField+ Data.ProtoLens.Optional+ (Data.ProtoLens.Field.field @"blockHeight")) ::+ Data.ProtoLens.FieldDescriptor Transaction+ timeStamp__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "time_stamp"+ (Data.ProtoLens.ScalarField Data.ProtoLens.Int64Field ::+ Data.ProtoLens.FieldTypeDescriptor Data.Int.Int64)+ (Data.ProtoLens.PlainField+ Data.ProtoLens.Optional+ (Data.ProtoLens.Field.field @"timeStamp")) ::+ Data.ProtoLens.FieldDescriptor Transaction+ totalFees__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "total_fees"+ (Data.ProtoLens.ScalarField Data.ProtoLens.Int64Field ::+ Data.ProtoLens.FieldTypeDescriptor Data.Int.Int64)+ (Data.ProtoLens.PlainField+ Data.ProtoLens.Optional+ (Data.ProtoLens.Field.field @"totalFees")) ::+ Data.ProtoLens.FieldDescriptor Transaction+ destAddresses__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "dest_addresses"+ (Data.ProtoLens.ScalarField Data.ProtoLens.StringField ::+ Data.ProtoLens.FieldTypeDescriptor Data.Text.Text)+ (Data.ProtoLens.RepeatedField+ Data.ProtoLens.Unpacked+ (Data.ProtoLens.Field.field @"destAddresses")) ::+ Data.ProtoLens.FieldDescriptor Transaction+ rawTxHex__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "raw_tx_hex"+ (Data.ProtoLens.ScalarField Data.ProtoLens.StringField ::+ Data.ProtoLens.FieldTypeDescriptor Data.Text.Text)+ (Data.ProtoLens.PlainField+ Data.ProtoLens.Optional+ (Data.ProtoLens.Field.field @"rawTxHex")) ::+ Data.ProtoLens.FieldDescriptor Transaction+ label__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "label"+ (Data.ProtoLens.ScalarField Data.ProtoLens.StringField ::+ Data.ProtoLens.FieldTypeDescriptor Data.Text.Text)+ (Data.ProtoLens.PlainField+ Data.ProtoLens.Optional (Data.ProtoLens.Field.field @"label")) ::+ Data.ProtoLens.FieldDescriptor Transaction+ in+ Data.Map.fromList+ [(Data.ProtoLens.Tag 1, txHash__field_descriptor),+ (Data.ProtoLens.Tag 2, amount__field_descriptor),+ (Data.ProtoLens.Tag 3, numConfirmations__field_descriptor),+ (Data.ProtoLens.Tag 4, blockHash__field_descriptor),+ (Data.ProtoLens.Tag 5, blockHeight__field_descriptor),+ (Data.ProtoLens.Tag 6, timeStamp__field_descriptor),+ (Data.ProtoLens.Tag 7, totalFees__field_descriptor),+ (Data.ProtoLens.Tag 8, destAddresses__field_descriptor),+ (Data.ProtoLens.Tag 9, rawTxHex__field_descriptor),+ (Data.ProtoLens.Tag 10, label__field_descriptor)]+ unknownFields+ = Lens.Family2.Unchecked.lens+ _Transaction'_unknownFields+ (\ x__ y__ -> x__ {_Transaction'_unknownFields = y__})+ defMessage+ = Transaction'_constructor+ {_Transaction'txHash = Data.ProtoLens.fieldDefault,+ _Transaction'amount = Data.ProtoLens.fieldDefault,+ _Transaction'numConfirmations = Data.ProtoLens.fieldDefault,+ _Transaction'blockHash = Data.ProtoLens.fieldDefault,+ _Transaction'blockHeight = Data.ProtoLens.fieldDefault,+ _Transaction'timeStamp = Data.ProtoLens.fieldDefault,+ _Transaction'totalFees = Data.ProtoLens.fieldDefault,+ _Transaction'destAddresses = Data.Vector.Generic.empty,+ _Transaction'rawTxHex = Data.ProtoLens.fieldDefault,+ _Transaction'label = Data.ProtoLens.fieldDefault,+ _Transaction'_unknownFields = []}+ parseMessage+ = let+ loop ::+ Transaction+ -> Data.ProtoLens.Encoding.Growing.Growing Data.Vector.Vector Data.ProtoLens.Encoding.Growing.RealWorld Data.Text.Text+ -> Data.ProtoLens.Encoding.Bytes.Parser Transaction+ loop x mutable'destAddresses+ = do end <- Data.ProtoLens.Encoding.Bytes.atEnd+ if end then+ do frozen'destAddresses <- Data.ProtoLens.Encoding.Parser.Unsafe.unsafeLiftIO+ (Data.ProtoLens.Encoding.Growing.unsafeFreeze+ mutable'destAddresses)+ (let missing = []+ in+ if Prelude.null missing then+ Prelude.return ()+ else+ Prelude.fail+ ((Prelude.++)+ "Missing required fields: "+ (Prelude.show (missing :: [Prelude.String]))))+ Prelude.return+ (Lens.Family2.over+ Data.ProtoLens.unknownFields (\ !t -> Prelude.reverse t)+ (Lens.Family2.set+ (Data.ProtoLens.Field.field @"vec'destAddresses")+ frozen'destAddresses x))+ else+ do tag <- Data.ProtoLens.Encoding.Bytes.getVarInt+ case tag of+ 10+ -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (do value <- do len <- Data.ProtoLens.Encoding.Bytes.getVarInt+ Data.ProtoLens.Encoding.Bytes.getBytes+ (Prelude.fromIntegral len)+ Data.ProtoLens.Encoding.Bytes.runEither+ (case Data.Text.Encoding.decodeUtf8' value of+ (Prelude.Left err)+ -> Prelude.Left (Prelude.show err)+ (Prelude.Right r) -> Prelude.Right r))+ "tx_hash"+ loop+ (Lens.Family2.set (Data.ProtoLens.Field.field @"txHash") y x)+ mutable'destAddresses+ 16+ -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (Prelude.fmap+ Prelude.fromIntegral+ Data.ProtoLens.Encoding.Bytes.getVarInt)+ "amount"+ loop+ (Lens.Family2.set (Data.ProtoLens.Field.field @"amount") y x)+ mutable'destAddresses+ 24+ -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (Prelude.fmap+ Prelude.fromIntegral+ Data.ProtoLens.Encoding.Bytes.getVarInt)+ "num_confirmations"+ loop+ (Lens.Family2.set+ (Data.ProtoLens.Field.field @"numConfirmations") y x)+ mutable'destAddresses+ 34+ -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (do value <- do len <- Data.ProtoLens.Encoding.Bytes.getVarInt+ Data.ProtoLens.Encoding.Bytes.getBytes+ (Prelude.fromIntegral len)+ Data.ProtoLens.Encoding.Bytes.runEither+ (case Data.Text.Encoding.decodeUtf8' value of+ (Prelude.Left err)+ -> Prelude.Left (Prelude.show err)+ (Prelude.Right r) -> Prelude.Right r))+ "block_hash"+ loop+ (Lens.Family2.set (Data.ProtoLens.Field.field @"blockHash") y x)+ mutable'destAddresses+ 40+ -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (Prelude.fmap+ Prelude.fromIntegral+ Data.ProtoLens.Encoding.Bytes.getVarInt)+ "block_height"+ loop+ (Lens.Family2.set (Data.ProtoLens.Field.field @"blockHeight") y x)+ mutable'destAddresses+ 48+ -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (Prelude.fmap+ Prelude.fromIntegral+ Data.ProtoLens.Encoding.Bytes.getVarInt)+ "time_stamp"+ loop+ (Lens.Family2.set (Data.ProtoLens.Field.field @"timeStamp") y x)+ mutable'destAddresses+ 56+ -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (Prelude.fmap+ Prelude.fromIntegral+ Data.ProtoLens.Encoding.Bytes.getVarInt)+ "total_fees"+ loop+ (Lens.Family2.set (Data.ProtoLens.Field.field @"totalFees") y x)+ mutable'destAddresses+ 66+ -> do !y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (do value <- do len <- Data.ProtoLens.Encoding.Bytes.getVarInt+ Data.ProtoLens.Encoding.Bytes.getBytes+ (Prelude.fromIntegral len)+ Data.ProtoLens.Encoding.Bytes.runEither+ (case Data.Text.Encoding.decodeUtf8' value of+ (Prelude.Left err)+ -> Prelude.Left (Prelude.show err)+ (Prelude.Right r) -> Prelude.Right r))+ "dest_addresses"+ v <- Data.ProtoLens.Encoding.Parser.Unsafe.unsafeLiftIO+ (Data.ProtoLens.Encoding.Growing.append+ mutable'destAddresses y)+ loop x v+ 74+ -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (do value <- do len <- Data.ProtoLens.Encoding.Bytes.getVarInt+ Data.ProtoLens.Encoding.Bytes.getBytes+ (Prelude.fromIntegral len)+ Data.ProtoLens.Encoding.Bytes.runEither+ (case Data.Text.Encoding.decodeUtf8' value of+ (Prelude.Left err)+ -> Prelude.Left (Prelude.show err)+ (Prelude.Right r) -> Prelude.Right r))+ "raw_tx_hex"+ loop+ (Lens.Family2.set (Data.ProtoLens.Field.field @"rawTxHex") y x)+ mutable'destAddresses+ 82+ -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (do value <- do len <- Data.ProtoLens.Encoding.Bytes.getVarInt+ Data.ProtoLens.Encoding.Bytes.getBytes+ (Prelude.fromIntegral len)+ Data.ProtoLens.Encoding.Bytes.runEither+ (case Data.Text.Encoding.decodeUtf8' value of+ (Prelude.Left err)+ -> Prelude.Left (Prelude.show err)+ (Prelude.Right r) -> Prelude.Right r))+ "label"+ loop+ (Lens.Family2.set (Data.ProtoLens.Field.field @"label") y x)+ mutable'destAddresses+ wire+ -> do !y <- Data.ProtoLens.Encoding.Wire.parseTaggedValueFromWire+ wire+ loop+ (Lens.Family2.over+ Data.ProtoLens.unknownFields (\ !t -> (:) y t) x)+ mutable'destAddresses+ in+ (Data.ProtoLens.Encoding.Bytes.<?>)+ (do mutable'destAddresses <- Data.ProtoLens.Encoding.Parser.Unsafe.unsafeLiftIO+ Data.ProtoLens.Encoding.Growing.new+ loop Data.ProtoLens.defMessage mutable'destAddresses)+ "Transaction"+ buildMessage+ = \ _x+ -> (Data.Monoid.<>)+ (let+ _v = Lens.Family2.view (Data.ProtoLens.Field.field @"txHash") _x+ in+ if (Prelude.==) _v Data.ProtoLens.fieldDefault then+ Data.Monoid.mempty+ else+ (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 10)+ ((Prelude..)+ (\ bs+ -> (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt+ (Prelude.fromIntegral (Data.ByteString.length bs)))+ (Data.ProtoLens.Encoding.Bytes.putBytes bs))+ Data.Text.Encoding.encodeUtf8 _v))+ ((Data.Monoid.<>)+ (let+ _v = Lens.Family2.view (Data.ProtoLens.Field.field @"amount") _x+ in+ if (Prelude.==) _v Data.ProtoLens.fieldDefault then+ Data.Monoid.mempty+ else+ (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 16)+ ((Prelude..)+ Data.ProtoLens.Encoding.Bytes.putVarInt Prelude.fromIntegral _v))+ ((Data.Monoid.<>)+ (let+ _v+ = Lens.Family2.view+ (Data.ProtoLens.Field.field @"numConfirmations") _x+ in+ if (Prelude.==) _v Data.ProtoLens.fieldDefault then+ Data.Monoid.mempty+ else+ (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 24)+ ((Prelude..)+ Data.ProtoLens.Encoding.Bytes.putVarInt Prelude.fromIntegral _v))+ ((Data.Monoid.<>)+ (let+ _v = Lens.Family2.view (Data.ProtoLens.Field.field @"blockHash") _x+ in+ if (Prelude.==) _v Data.ProtoLens.fieldDefault then+ Data.Monoid.mempty+ else+ (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 34)+ ((Prelude..)+ (\ bs+ -> (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt+ (Prelude.fromIntegral (Data.ByteString.length bs)))+ (Data.ProtoLens.Encoding.Bytes.putBytes bs))+ Data.Text.Encoding.encodeUtf8 _v))+ ((Data.Monoid.<>)+ (let+ _v+ = Lens.Family2.view (Data.ProtoLens.Field.field @"blockHeight") _x+ in+ if (Prelude.==) _v Data.ProtoLens.fieldDefault then+ Data.Monoid.mempty+ else+ (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 40)+ ((Prelude..)+ Data.ProtoLens.Encoding.Bytes.putVarInt Prelude.fromIntegral+ _v))+ ((Data.Monoid.<>)+ (let+ _v = Lens.Family2.view (Data.ProtoLens.Field.field @"timeStamp") _x+ in+ if (Prelude.==) _v Data.ProtoLens.fieldDefault then+ Data.Monoid.mempty+ else+ (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 48)+ ((Prelude..)+ Data.ProtoLens.Encoding.Bytes.putVarInt Prelude.fromIntegral+ _v))+ ((Data.Monoid.<>)+ (let+ _v+ = Lens.Family2.view (Data.ProtoLens.Field.field @"totalFees") _x+ in+ if (Prelude.==) _v Data.ProtoLens.fieldDefault then+ Data.Monoid.mempty+ else+ (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 56)+ ((Prelude..)+ Data.ProtoLens.Encoding.Bytes.putVarInt+ Prelude.fromIntegral _v))+ ((Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.foldMapBuilder+ (\ _v+ -> (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 66)+ ((Prelude..)+ (\ bs+ -> (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt+ (Prelude.fromIntegral+ (Data.ByteString.length bs)))+ (Data.ProtoLens.Encoding.Bytes.putBytes bs))+ Data.Text.Encoding.encodeUtf8 _v))+ (Lens.Family2.view+ (Data.ProtoLens.Field.field @"vec'destAddresses") _x))+ ((Data.Monoid.<>)+ (let+ _v+ = Lens.Family2.view+ (Data.ProtoLens.Field.field @"rawTxHex") _x+ in+ if (Prelude.==) _v Data.ProtoLens.fieldDefault then+ Data.Monoid.mempty+ else+ (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 74)+ ((Prelude..)+ (\ bs+ -> (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt+ (Prelude.fromIntegral+ (Data.ByteString.length bs)))+ (Data.ProtoLens.Encoding.Bytes.putBytes+ bs))+ Data.Text.Encoding.encodeUtf8 _v))+ ((Data.Monoid.<>)+ (let+ _v+ = Lens.Family2.view+ (Data.ProtoLens.Field.field @"label") _x+ in+ if (Prelude.==) _v Data.ProtoLens.fieldDefault then+ Data.Monoid.mempty+ else+ (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 82)+ ((Prelude..)+ (\ bs+ -> (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt+ (Prelude.fromIntegral+ (Data.ByteString.length bs)))+ (Data.ProtoLens.Encoding.Bytes.putBytes+ bs))+ Data.Text.Encoding.encodeUtf8 _v))+ (Data.ProtoLens.Encoding.Wire.buildFieldSet+ (Lens.Family2.view+ Data.ProtoLens.unknownFields _x)))))))))))+instance Control.DeepSeq.NFData Transaction where+ rnf+ = \ x__+ -> Control.DeepSeq.deepseq+ (_Transaction'_unknownFields x__)+ (Control.DeepSeq.deepseq+ (_Transaction'txHash x__)+ (Control.DeepSeq.deepseq+ (_Transaction'amount x__)+ (Control.DeepSeq.deepseq+ (_Transaction'numConfirmations x__)+ (Control.DeepSeq.deepseq+ (_Transaction'blockHash x__)+ (Control.DeepSeq.deepseq+ (_Transaction'blockHeight x__)+ (Control.DeepSeq.deepseq+ (_Transaction'timeStamp x__)+ (Control.DeepSeq.deepseq+ (_Transaction'totalFees x__)+ (Control.DeepSeq.deepseq+ (_Transaction'destAddresses x__)+ (Control.DeepSeq.deepseq+ (_Transaction'rawTxHex x__)+ (Control.DeepSeq.deepseq+ (_Transaction'label x__) ()))))))))))+{- | Fields :+ + * 'Proto.Lightning_Fields.transactions' @:: Lens' TransactionDetails [Transaction]@+ * 'Proto.Lightning_Fields.vec'transactions' @:: Lens' TransactionDetails (Data.Vector.Vector Transaction)@ -}+data TransactionDetails+ = TransactionDetails'_constructor {_TransactionDetails'transactions :: !(Data.Vector.Vector Transaction),+ _TransactionDetails'_unknownFields :: !Data.ProtoLens.FieldSet}+ deriving stock (Prelude.Eq, Prelude.Ord, GHC.Generics.Generic)+instance Prelude.Show TransactionDetails where+ showsPrec _ __x __s+ = Prelude.showChar+ '{'+ (Prelude.showString+ (Data.ProtoLens.showMessageShort __x) (Prelude.showChar '}' __s))+instance Text.PrettyPrint.GenericPretty.Out TransactionDetails+instance Data.ProtoLens.Field.HasField TransactionDetails "transactions" [Transaction] where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _TransactionDetails'transactions+ (\ x__ y__ -> x__ {_TransactionDetails'transactions = y__}))+ (Lens.Family2.Unchecked.lens+ Data.Vector.Generic.toList+ (\ _ y__ -> Data.Vector.Generic.fromList y__))+instance Data.ProtoLens.Field.HasField TransactionDetails "vec'transactions" (Data.Vector.Vector Transaction) where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _TransactionDetails'transactions+ (\ x__ y__ -> x__ {_TransactionDetails'transactions = y__}))+ Prelude.id+instance Data.ProtoLens.Message TransactionDetails where+ messageName _ = Data.Text.pack "lnrpc.TransactionDetails"+ packedMessageDescriptor _+ = "\n\+ \\DC2TransactionDetails\DC26\n\+ \\ftransactions\CAN\SOH \ETX(\v2\DC2.lnrpc.TransactionR\ftransactions"+ packedFileDescriptor _ = packedFileDescriptor+ fieldsByTag+ = let+ transactions__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "transactions"+ (Data.ProtoLens.MessageField Data.ProtoLens.MessageType ::+ Data.ProtoLens.FieldTypeDescriptor Transaction)+ (Data.ProtoLens.RepeatedField+ Data.ProtoLens.Unpacked+ (Data.ProtoLens.Field.field @"transactions")) ::+ Data.ProtoLens.FieldDescriptor TransactionDetails+ in+ Data.Map.fromList+ [(Data.ProtoLens.Tag 1, transactions__field_descriptor)]+ unknownFields+ = Lens.Family2.Unchecked.lens+ _TransactionDetails'_unknownFields+ (\ x__ y__ -> x__ {_TransactionDetails'_unknownFields = y__})+ defMessage+ = TransactionDetails'_constructor+ {_TransactionDetails'transactions = Data.Vector.Generic.empty,+ _TransactionDetails'_unknownFields = []}+ parseMessage+ = let+ loop ::+ TransactionDetails+ -> Data.ProtoLens.Encoding.Growing.Growing Data.Vector.Vector Data.ProtoLens.Encoding.Growing.RealWorld Transaction+ -> Data.ProtoLens.Encoding.Bytes.Parser TransactionDetails+ loop x mutable'transactions+ = do end <- Data.ProtoLens.Encoding.Bytes.atEnd+ if end then+ do frozen'transactions <- Data.ProtoLens.Encoding.Parser.Unsafe.unsafeLiftIO+ (Data.ProtoLens.Encoding.Growing.unsafeFreeze+ mutable'transactions)+ (let missing = []+ in+ if Prelude.null missing then+ Prelude.return ()+ else+ Prelude.fail+ ((Prelude.++)+ "Missing required fields: "+ (Prelude.show (missing :: [Prelude.String]))))+ Prelude.return+ (Lens.Family2.over+ Data.ProtoLens.unknownFields (\ !t -> Prelude.reverse t)+ (Lens.Family2.set+ (Data.ProtoLens.Field.field @"vec'transactions")+ frozen'transactions x))+ else+ do tag <- Data.ProtoLens.Encoding.Bytes.getVarInt+ case tag of+ 10+ -> do !y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (do len <- Data.ProtoLens.Encoding.Bytes.getVarInt+ Data.ProtoLens.Encoding.Bytes.isolate+ (Prelude.fromIntegral len)+ Data.ProtoLens.parseMessage)+ "transactions"+ v <- Data.ProtoLens.Encoding.Parser.Unsafe.unsafeLiftIO+ (Data.ProtoLens.Encoding.Growing.append+ mutable'transactions y)+ loop x v+ wire+ -> do !y <- Data.ProtoLens.Encoding.Wire.parseTaggedValueFromWire+ wire+ loop+ (Lens.Family2.over+ Data.ProtoLens.unknownFields (\ !t -> (:) y t) x)+ mutable'transactions+ in+ (Data.ProtoLens.Encoding.Bytes.<?>)+ (do mutable'transactions <- Data.ProtoLens.Encoding.Parser.Unsafe.unsafeLiftIO+ Data.ProtoLens.Encoding.Growing.new+ loop Data.ProtoLens.defMessage mutable'transactions)+ "TransactionDetails"+ buildMessage+ = \ _x+ -> (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.foldMapBuilder+ (\ _v+ -> (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 10)+ ((Prelude..)+ (\ bs+ -> (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt+ (Prelude.fromIntegral (Data.ByteString.length bs)))+ (Data.ProtoLens.Encoding.Bytes.putBytes bs))+ Data.ProtoLens.encodeMessage _v))+ (Lens.Family2.view+ (Data.ProtoLens.Field.field @"vec'transactions") _x))+ (Data.ProtoLens.Encoding.Wire.buildFieldSet+ (Lens.Family2.view Data.ProtoLens.unknownFields _x))+instance Control.DeepSeq.NFData TransactionDetails where+ rnf+ = \ x__+ -> Control.DeepSeq.deepseq+ (_TransactionDetails'_unknownFields x__)+ (Control.DeepSeq.deepseq (_TransactionDetails'transactions x__) ())+{- | Fields :+ + * 'Proto.Lightning_Fields.addressType' @:: Lens' Utxo AddressType@+ * 'Proto.Lightning_Fields.address' @:: Lens' Utxo Data.Text.Text@+ * 'Proto.Lightning_Fields.amountSat' @:: Lens' Utxo Data.Int.Int64@+ * 'Proto.Lightning_Fields.pkScript' @:: Lens' Utxo Data.Text.Text@+ * 'Proto.Lightning_Fields.outpoint' @:: Lens' Utxo Proto.Lnrpc.Ln0.OutPoint@+ * 'Proto.Lightning_Fields.maybe'outpoint' @:: Lens' Utxo (Prelude.Maybe Proto.Lnrpc.Ln0.OutPoint)@+ * 'Proto.Lightning_Fields.confirmations' @:: Lens' Utxo Data.Int.Int64@ -}+data Utxo+ = Utxo'_constructor {_Utxo'addressType :: !AddressType,+ _Utxo'address :: !Data.Text.Text,+ _Utxo'amountSat :: !Data.Int.Int64,+ _Utxo'pkScript :: !Data.Text.Text,+ _Utxo'outpoint :: !(Prelude.Maybe Proto.Lnrpc.Ln0.OutPoint),+ _Utxo'confirmations :: !Data.Int.Int64,+ _Utxo'_unknownFields :: !Data.ProtoLens.FieldSet}+ deriving stock (Prelude.Eq, Prelude.Ord, GHC.Generics.Generic)+instance Prelude.Show Utxo where+ showsPrec _ __x __s+ = Prelude.showChar+ '{'+ (Prelude.showString+ (Data.ProtoLens.showMessageShort __x) (Prelude.showChar '}' __s))+instance Text.PrettyPrint.GenericPretty.Out Utxo+instance Data.ProtoLens.Field.HasField Utxo "addressType" AddressType where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _Utxo'addressType (\ x__ y__ -> x__ {_Utxo'addressType = y__}))+ Prelude.id+instance Data.ProtoLens.Field.HasField Utxo "address" Data.Text.Text where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _Utxo'address (\ x__ y__ -> x__ {_Utxo'address = y__}))+ Prelude.id+instance Data.ProtoLens.Field.HasField Utxo "amountSat" Data.Int.Int64 where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _Utxo'amountSat (\ x__ y__ -> x__ {_Utxo'amountSat = y__}))+ Prelude.id+instance Data.ProtoLens.Field.HasField Utxo "pkScript" Data.Text.Text where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _Utxo'pkScript (\ x__ y__ -> x__ {_Utxo'pkScript = y__}))+ Prelude.id+instance Data.ProtoLens.Field.HasField Utxo "outpoint" Proto.Lnrpc.Ln0.OutPoint where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _Utxo'outpoint (\ x__ y__ -> x__ {_Utxo'outpoint = y__}))+ (Data.ProtoLens.maybeLens Data.ProtoLens.defMessage)+instance Data.ProtoLens.Field.HasField Utxo "maybe'outpoint" (Prelude.Maybe Proto.Lnrpc.Ln0.OutPoint) where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _Utxo'outpoint (\ x__ y__ -> x__ {_Utxo'outpoint = y__}))+ Prelude.id+instance Data.ProtoLens.Field.HasField Utxo "confirmations" Data.Int.Int64 where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _Utxo'confirmations (\ x__ y__ -> x__ {_Utxo'confirmations = y__}))+ Prelude.id+instance Data.ProtoLens.Message Utxo where+ messageName _ = Data.Text.pack "lnrpc.Utxo"+ packedMessageDescriptor _+ = "\n\+ \\EOTUtxo\DC25\n\+ \\faddress_type\CAN\SOH \SOH(\SO2\DC2.lnrpc.AddressTypeR\vaddressType\DC2\CAN\n\+ \\aaddress\CAN\STX \SOH(\tR\aaddress\DC2\GS\n\+ \\n\+ \amount_sat\CAN\ETX \SOH(\ETXR\tamountSat\DC2\ESC\n\+ \\tpk_script\CAN\EOT \SOH(\tR\bpkScript\DC2+\n\+ \\boutpoint\CAN\ENQ \SOH(\v2\SI.lnrpc.OutPointR\boutpoint\DC2$\n\+ \\rconfirmations\CAN\ACK \SOH(\ETXR\rconfirmations"+ packedFileDescriptor _ = packedFileDescriptor+ fieldsByTag+ = let+ addressType__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "address_type"+ (Data.ProtoLens.ScalarField Data.ProtoLens.EnumField ::+ Data.ProtoLens.FieldTypeDescriptor AddressType)+ (Data.ProtoLens.PlainField+ Data.ProtoLens.Optional+ (Data.ProtoLens.Field.field @"addressType")) ::+ Data.ProtoLens.FieldDescriptor Utxo+ address__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "address"+ (Data.ProtoLens.ScalarField Data.ProtoLens.StringField ::+ Data.ProtoLens.FieldTypeDescriptor Data.Text.Text)+ (Data.ProtoLens.PlainField+ Data.ProtoLens.Optional (Data.ProtoLens.Field.field @"address")) ::+ Data.ProtoLens.FieldDescriptor Utxo+ amountSat__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "amount_sat"+ (Data.ProtoLens.ScalarField Data.ProtoLens.Int64Field ::+ Data.ProtoLens.FieldTypeDescriptor Data.Int.Int64)+ (Data.ProtoLens.PlainField+ Data.ProtoLens.Optional+ (Data.ProtoLens.Field.field @"amountSat")) ::+ Data.ProtoLens.FieldDescriptor Utxo+ pkScript__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "pk_script"+ (Data.ProtoLens.ScalarField Data.ProtoLens.StringField ::+ Data.ProtoLens.FieldTypeDescriptor Data.Text.Text)+ (Data.ProtoLens.PlainField+ Data.ProtoLens.Optional+ (Data.ProtoLens.Field.field @"pkScript")) ::+ Data.ProtoLens.FieldDescriptor Utxo+ outpoint__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "outpoint"+ (Data.ProtoLens.MessageField Data.ProtoLens.MessageType ::+ Data.ProtoLens.FieldTypeDescriptor Proto.Lnrpc.Ln0.OutPoint)+ (Data.ProtoLens.OptionalField+ (Data.ProtoLens.Field.field @"maybe'outpoint")) ::+ Data.ProtoLens.FieldDescriptor Utxo+ confirmations__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "confirmations"+ (Data.ProtoLens.ScalarField Data.ProtoLens.Int64Field ::+ Data.ProtoLens.FieldTypeDescriptor Data.Int.Int64)+ (Data.ProtoLens.PlainField+ Data.ProtoLens.Optional+ (Data.ProtoLens.Field.field @"confirmations")) ::+ Data.ProtoLens.FieldDescriptor Utxo+ in+ Data.Map.fromList+ [(Data.ProtoLens.Tag 1, addressType__field_descriptor),+ (Data.ProtoLens.Tag 2, address__field_descriptor),+ (Data.ProtoLens.Tag 3, amountSat__field_descriptor),+ (Data.ProtoLens.Tag 4, pkScript__field_descriptor),+ (Data.ProtoLens.Tag 5, outpoint__field_descriptor),+ (Data.ProtoLens.Tag 6, confirmations__field_descriptor)]+ unknownFields+ = Lens.Family2.Unchecked.lens+ _Utxo'_unknownFields+ (\ x__ y__ -> x__ {_Utxo'_unknownFields = y__})+ defMessage+ = Utxo'_constructor+ {_Utxo'addressType = Data.ProtoLens.fieldDefault,+ _Utxo'address = Data.ProtoLens.fieldDefault,+ _Utxo'amountSat = Data.ProtoLens.fieldDefault,+ _Utxo'pkScript = Data.ProtoLens.fieldDefault,+ _Utxo'outpoint = Prelude.Nothing,+ _Utxo'confirmations = Data.ProtoLens.fieldDefault,+ _Utxo'_unknownFields = []}+ parseMessage+ = let+ loop :: Utxo -> Data.ProtoLens.Encoding.Bytes.Parser Utxo+ loop x+ = do end <- Data.ProtoLens.Encoding.Bytes.atEnd+ if end then+ do (let missing = []+ in+ if Prelude.null missing then+ Prelude.return ()+ else+ Prelude.fail+ ((Prelude.++)+ "Missing required fields: "+ (Prelude.show (missing :: [Prelude.String]))))+ Prelude.return+ (Lens.Family2.over+ Data.ProtoLens.unknownFields (\ !t -> Prelude.reverse t) x)+ else+ do tag <- Data.ProtoLens.Encoding.Bytes.getVarInt+ case tag of+ 8 -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (Prelude.fmap+ Prelude.toEnum+ (Prelude.fmap+ Prelude.fromIntegral+ Data.ProtoLens.Encoding.Bytes.getVarInt))+ "address_type"+ loop+ (Lens.Family2.set (Data.ProtoLens.Field.field @"addressType") y x)+ 18+ -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (do value <- do len <- Data.ProtoLens.Encoding.Bytes.getVarInt+ Data.ProtoLens.Encoding.Bytes.getBytes+ (Prelude.fromIntegral len)+ Data.ProtoLens.Encoding.Bytes.runEither+ (case Data.Text.Encoding.decodeUtf8' value of+ (Prelude.Left err)+ -> Prelude.Left (Prelude.show err)+ (Prelude.Right r) -> Prelude.Right r))+ "address"+ loop (Lens.Family2.set (Data.ProtoLens.Field.field @"address") y x)+ 24+ -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (Prelude.fmap+ Prelude.fromIntegral+ Data.ProtoLens.Encoding.Bytes.getVarInt)+ "amount_sat"+ loop+ (Lens.Family2.set (Data.ProtoLens.Field.field @"amountSat") y x)+ 34+ -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (do value <- do len <- Data.ProtoLens.Encoding.Bytes.getVarInt+ Data.ProtoLens.Encoding.Bytes.getBytes+ (Prelude.fromIntegral len)+ Data.ProtoLens.Encoding.Bytes.runEither+ (case Data.Text.Encoding.decodeUtf8' value of+ (Prelude.Left err)+ -> Prelude.Left (Prelude.show err)+ (Prelude.Right r) -> Prelude.Right r))+ "pk_script"+ loop+ (Lens.Family2.set (Data.ProtoLens.Field.field @"pkScript") y x)+ 42+ -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (do len <- Data.ProtoLens.Encoding.Bytes.getVarInt+ Data.ProtoLens.Encoding.Bytes.isolate+ (Prelude.fromIntegral len) Data.ProtoLens.parseMessage)+ "outpoint"+ loop+ (Lens.Family2.set (Data.ProtoLens.Field.field @"outpoint") y x)+ 48+ -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (Prelude.fmap+ Prelude.fromIntegral+ Data.ProtoLens.Encoding.Bytes.getVarInt)+ "confirmations"+ loop+ (Lens.Family2.set+ (Data.ProtoLens.Field.field @"confirmations") y x)+ wire+ -> do !y <- Data.ProtoLens.Encoding.Wire.parseTaggedValueFromWire+ wire+ loop+ (Lens.Family2.over+ Data.ProtoLens.unknownFields (\ !t -> (:) y t) x)+ in+ (Data.ProtoLens.Encoding.Bytes.<?>)+ (do loop Data.ProtoLens.defMessage) "Utxo"+ buildMessage+ = \ _x+ -> (Data.Monoid.<>)+ (let+ _v+ = Lens.Family2.view (Data.ProtoLens.Field.field @"addressType") _x+ in+ if (Prelude.==) _v Data.ProtoLens.fieldDefault then+ Data.Monoid.mempty+ else+ (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 8)+ ((Prelude..)+ ((Prelude..)+ Data.ProtoLens.Encoding.Bytes.putVarInt Prelude.fromIntegral)+ Prelude.fromEnum _v))+ ((Data.Monoid.<>)+ (let+ _v = Lens.Family2.view (Data.ProtoLens.Field.field @"address") _x+ in+ if (Prelude.==) _v Data.ProtoLens.fieldDefault then+ Data.Monoid.mempty+ else+ (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 18)+ ((Prelude..)+ (\ bs+ -> (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt+ (Prelude.fromIntegral (Data.ByteString.length bs)))+ (Data.ProtoLens.Encoding.Bytes.putBytes bs))+ Data.Text.Encoding.encodeUtf8 _v))+ ((Data.Monoid.<>)+ (let+ _v = Lens.Family2.view (Data.ProtoLens.Field.field @"amountSat") _x+ in+ if (Prelude.==) _v Data.ProtoLens.fieldDefault then+ Data.Monoid.mempty+ else+ (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 24)+ ((Prelude..)+ Data.ProtoLens.Encoding.Bytes.putVarInt Prelude.fromIntegral _v))+ ((Data.Monoid.<>)+ (let+ _v = Lens.Family2.view (Data.ProtoLens.Field.field @"pkScript") _x+ in+ if (Prelude.==) _v Data.ProtoLens.fieldDefault then+ Data.Monoid.mempty+ else+ (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 34)+ ((Prelude..)+ (\ bs+ -> (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt+ (Prelude.fromIntegral (Data.ByteString.length bs)))+ (Data.ProtoLens.Encoding.Bytes.putBytes bs))+ Data.Text.Encoding.encodeUtf8 _v))+ ((Data.Monoid.<>)+ (case+ Lens.Family2.view (Data.ProtoLens.Field.field @"maybe'outpoint") _x+ of+ Prelude.Nothing -> Data.Monoid.mempty+ (Prelude.Just _v)+ -> (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 42)+ ((Prelude..)+ (\ bs+ -> (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt+ (Prelude.fromIntegral (Data.ByteString.length bs)))+ (Data.ProtoLens.Encoding.Bytes.putBytes bs))+ Data.ProtoLens.encodeMessage _v))+ ((Data.Monoid.<>)+ (let+ _v+ = Lens.Family2.view+ (Data.ProtoLens.Field.field @"confirmations") _x+ in+ if (Prelude.==) _v Data.ProtoLens.fieldDefault then+ Data.Monoid.mempty+ else+ (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 48)+ ((Prelude..)+ Data.ProtoLens.Encoding.Bytes.putVarInt Prelude.fromIntegral+ _v))+ (Data.ProtoLens.Encoding.Wire.buildFieldSet+ (Lens.Family2.view Data.ProtoLens.unknownFields _x)))))))+instance Control.DeepSeq.NFData Utxo where+ rnf+ = \ x__+ -> Control.DeepSeq.deepseq+ (_Utxo'_unknownFields x__)+ (Control.DeepSeq.deepseq+ (_Utxo'addressType x__)+ (Control.DeepSeq.deepseq+ (_Utxo'address x__)+ (Control.DeepSeq.deepseq+ (_Utxo'amountSat x__)+ (Control.DeepSeq.deepseq+ (_Utxo'pkScript x__)+ (Control.DeepSeq.deepseq+ (_Utxo'outpoint x__)+ (Control.DeepSeq.deepseq (_Utxo'confirmations x__) ()))))))+{- | Fields :+ + * 'Proto.Lightning_Fields.msg' @:: Lens' VerifyMessageRequest Data.ByteString.ByteString@+ * 'Proto.Lightning_Fields.signature' @:: Lens' VerifyMessageRequest Data.Text.Text@ -}+data VerifyMessageRequest+ = VerifyMessageRequest'_constructor {_VerifyMessageRequest'msg :: !Data.ByteString.ByteString,+ _VerifyMessageRequest'signature :: !Data.Text.Text,+ _VerifyMessageRequest'_unknownFields :: !Data.ProtoLens.FieldSet}+ deriving stock (Prelude.Eq, Prelude.Ord, GHC.Generics.Generic)+instance Prelude.Show VerifyMessageRequest where+ showsPrec _ __x __s+ = Prelude.showChar+ '{'+ (Prelude.showString+ (Data.ProtoLens.showMessageShort __x) (Prelude.showChar '}' __s))+instance Text.PrettyPrint.GenericPretty.Out VerifyMessageRequest+instance Data.ProtoLens.Field.HasField VerifyMessageRequest "msg" Data.ByteString.ByteString where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _VerifyMessageRequest'msg+ (\ x__ y__ -> x__ {_VerifyMessageRequest'msg = y__}))+ Prelude.id+instance Data.ProtoLens.Field.HasField VerifyMessageRequest "signature" Data.Text.Text where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _VerifyMessageRequest'signature+ (\ x__ y__ -> x__ {_VerifyMessageRequest'signature = y__}))+ Prelude.id+instance Data.ProtoLens.Message VerifyMessageRequest where+ messageName _ = Data.Text.pack "lnrpc.VerifyMessageRequest"+ packedMessageDescriptor _+ = "\n\+ \\DC4VerifyMessageRequest\DC2\DLE\n\+ \\ETXmsg\CAN\SOH \SOH(\fR\ETXmsg\DC2\FS\n\+ \\tsignature\CAN\STX \SOH(\tR\tsignature"+ packedFileDescriptor _ = packedFileDescriptor+ fieldsByTag+ = let+ msg__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "msg"+ (Data.ProtoLens.ScalarField Data.ProtoLens.BytesField ::+ Data.ProtoLens.FieldTypeDescriptor Data.ByteString.ByteString)+ (Data.ProtoLens.PlainField+ Data.ProtoLens.Optional (Data.ProtoLens.Field.field @"msg")) ::+ Data.ProtoLens.FieldDescriptor VerifyMessageRequest+ signature__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "signature"+ (Data.ProtoLens.ScalarField Data.ProtoLens.StringField ::+ Data.ProtoLens.FieldTypeDescriptor Data.Text.Text)+ (Data.ProtoLens.PlainField+ Data.ProtoLens.Optional+ (Data.ProtoLens.Field.field @"signature")) ::+ Data.ProtoLens.FieldDescriptor VerifyMessageRequest+ in+ Data.Map.fromList+ [(Data.ProtoLens.Tag 1, msg__field_descriptor),+ (Data.ProtoLens.Tag 2, signature__field_descriptor)]+ unknownFields+ = Lens.Family2.Unchecked.lens+ _VerifyMessageRequest'_unknownFields+ (\ x__ y__ -> x__ {_VerifyMessageRequest'_unknownFields = y__})+ defMessage+ = VerifyMessageRequest'_constructor+ {_VerifyMessageRequest'msg = Data.ProtoLens.fieldDefault,+ _VerifyMessageRequest'signature = Data.ProtoLens.fieldDefault,+ _VerifyMessageRequest'_unknownFields = []}+ parseMessage+ = let+ loop ::+ VerifyMessageRequest+ -> Data.ProtoLens.Encoding.Bytes.Parser VerifyMessageRequest+ loop x+ = do end <- Data.ProtoLens.Encoding.Bytes.atEnd+ if end then+ do (let missing = []+ in+ if Prelude.null missing then+ Prelude.return ()+ else+ Prelude.fail+ ((Prelude.++)+ "Missing required fields: "+ (Prelude.show (missing :: [Prelude.String]))))+ Prelude.return+ (Lens.Family2.over+ Data.ProtoLens.unknownFields (\ !t -> Prelude.reverse t) x)+ else+ do tag <- Data.ProtoLens.Encoding.Bytes.getVarInt+ case tag of+ 10+ -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (do len <- Data.ProtoLens.Encoding.Bytes.getVarInt+ Data.ProtoLens.Encoding.Bytes.getBytes+ (Prelude.fromIntegral len))+ "msg"+ loop (Lens.Family2.set (Data.ProtoLens.Field.field @"msg") y x)+ 18+ -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (do value <- do len <- Data.ProtoLens.Encoding.Bytes.getVarInt+ Data.ProtoLens.Encoding.Bytes.getBytes+ (Prelude.fromIntegral len)+ Data.ProtoLens.Encoding.Bytes.runEither+ (case Data.Text.Encoding.decodeUtf8' value of+ (Prelude.Left err)+ -> Prelude.Left (Prelude.show err)+ (Prelude.Right r) -> Prelude.Right r))+ "signature"+ loop+ (Lens.Family2.set (Data.ProtoLens.Field.field @"signature") y x)+ wire+ -> do !y <- Data.ProtoLens.Encoding.Wire.parseTaggedValueFromWire+ wire+ loop+ (Lens.Family2.over+ Data.ProtoLens.unknownFields (\ !t -> (:) y t) x)+ in+ (Data.ProtoLens.Encoding.Bytes.<?>)+ (do loop Data.ProtoLens.defMessage) "VerifyMessageRequest"+ buildMessage+ = \ _x+ -> (Data.Monoid.<>)+ (let _v = Lens.Family2.view (Data.ProtoLens.Field.field @"msg") _x+ in+ if (Prelude.==) _v Data.ProtoLens.fieldDefault then+ Data.Monoid.mempty+ else+ (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 10)+ ((\ bs+ -> (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt+ (Prelude.fromIntegral (Data.ByteString.length bs)))+ (Data.ProtoLens.Encoding.Bytes.putBytes bs))+ _v))+ ((Data.Monoid.<>)+ (let+ _v = Lens.Family2.view (Data.ProtoLens.Field.field @"signature") _x+ in+ if (Prelude.==) _v Data.ProtoLens.fieldDefault then+ Data.Monoid.mempty+ else+ (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 18)+ ((Prelude..)+ (\ bs+ -> (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt+ (Prelude.fromIntegral (Data.ByteString.length bs)))+ (Data.ProtoLens.Encoding.Bytes.putBytes bs))+ Data.Text.Encoding.encodeUtf8 _v))+ (Data.ProtoLens.Encoding.Wire.buildFieldSet+ (Lens.Family2.view Data.ProtoLens.unknownFields _x)))+instance Control.DeepSeq.NFData VerifyMessageRequest where+ rnf+ = \ x__+ -> Control.DeepSeq.deepseq+ (_VerifyMessageRequest'_unknownFields x__)+ (Control.DeepSeq.deepseq+ (_VerifyMessageRequest'msg x__)+ (Control.DeepSeq.deepseq (_VerifyMessageRequest'signature x__) ()))+{- | Fields :+ + * 'Proto.Lightning_Fields.valid' @:: Lens' VerifyMessageResponse Prelude.Bool@+ * 'Proto.Lightning_Fields.pubkey' @:: Lens' VerifyMessageResponse Data.Text.Text@ -}+data VerifyMessageResponse+ = VerifyMessageResponse'_constructor {_VerifyMessageResponse'valid :: !Prelude.Bool,+ _VerifyMessageResponse'pubkey :: !Data.Text.Text,+ _VerifyMessageResponse'_unknownFields :: !Data.ProtoLens.FieldSet}+ deriving stock (Prelude.Eq, Prelude.Ord, GHC.Generics.Generic)+instance Prelude.Show VerifyMessageResponse where+ showsPrec _ __x __s+ = Prelude.showChar+ '{'+ (Prelude.showString+ (Data.ProtoLens.showMessageShort __x) (Prelude.showChar '}' __s))+instance Text.PrettyPrint.GenericPretty.Out VerifyMessageResponse+instance Data.ProtoLens.Field.HasField VerifyMessageResponse "valid" Prelude.Bool where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _VerifyMessageResponse'valid+ (\ x__ y__ -> x__ {_VerifyMessageResponse'valid = y__}))+ Prelude.id+instance Data.ProtoLens.Field.HasField VerifyMessageResponse "pubkey" Data.Text.Text where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _VerifyMessageResponse'pubkey+ (\ x__ y__ -> x__ {_VerifyMessageResponse'pubkey = y__}))+ Prelude.id+instance Data.ProtoLens.Message VerifyMessageResponse where+ messageName _ = Data.Text.pack "lnrpc.VerifyMessageResponse"+ packedMessageDescriptor _+ = "\n\+ \\NAKVerifyMessageResponse\DC2\DC4\n\+ \\ENQvalid\CAN\SOH \SOH(\bR\ENQvalid\DC2\SYN\n\+ \\ACKpubkey\CAN\STX \SOH(\tR\ACKpubkey"+ packedFileDescriptor _ = packedFileDescriptor+ fieldsByTag+ = let+ valid__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "valid"+ (Data.ProtoLens.ScalarField Data.ProtoLens.BoolField ::+ Data.ProtoLens.FieldTypeDescriptor Prelude.Bool)+ (Data.ProtoLens.PlainField+ Data.ProtoLens.Optional (Data.ProtoLens.Field.field @"valid")) ::+ Data.ProtoLens.FieldDescriptor VerifyMessageResponse+ pubkey__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "pubkey"+ (Data.ProtoLens.ScalarField Data.ProtoLens.StringField ::+ Data.ProtoLens.FieldTypeDescriptor Data.Text.Text)+ (Data.ProtoLens.PlainField+ Data.ProtoLens.Optional (Data.ProtoLens.Field.field @"pubkey")) ::+ Data.ProtoLens.FieldDescriptor VerifyMessageResponse+ in+ Data.Map.fromList+ [(Data.ProtoLens.Tag 1, valid__field_descriptor),+ (Data.ProtoLens.Tag 2, pubkey__field_descriptor)]+ unknownFields+ = Lens.Family2.Unchecked.lens+ _VerifyMessageResponse'_unknownFields+ (\ x__ y__ -> x__ {_VerifyMessageResponse'_unknownFields = y__})+ defMessage+ = VerifyMessageResponse'_constructor+ {_VerifyMessageResponse'valid = Data.ProtoLens.fieldDefault,+ _VerifyMessageResponse'pubkey = Data.ProtoLens.fieldDefault,+ _VerifyMessageResponse'_unknownFields = []}+ parseMessage+ = let+ loop ::+ VerifyMessageResponse+ -> Data.ProtoLens.Encoding.Bytes.Parser VerifyMessageResponse+ loop x+ = do end <- Data.ProtoLens.Encoding.Bytes.atEnd+ if end then+ do (let missing = []+ in+ if Prelude.null missing then+ Prelude.return ()+ else+ Prelude.fail+ ((Prelude.++)+ "Missing required fields: "+ (Prelude.show (missing :: [Prelude.String]))))+ Prelude.return+ (Lens.Family2.over+ Data.ProtoLens.unknownFields (\ !t -> Prelude.reverse t) x)+ else+ do tag <- Data.ProtoLens.Encoding.Bytes.getVarInt+ case tag of+ 8 -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (Prelude.fmap+ ((Prelude./=) 0) Data.ProtoLens.Encoding.Bytes.getVarInt)+ "valid"+ loop (Lens.Family2.set (Data.ProtoLens.Field.field @"valid") y x)+ 18+ -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (do value <- do len <- Data.ProtoLens.Encoding.Bytes.getVarInt+ Data.ProtoLens.Encoding.Bytes.getBytes+ (Prelude.fromIntegral len)+ Data.ProtoLens.Encoding.Bytes.runEither+ (case Data.Text.Encoding.decodeUtf8' value of+ (Prelude.Left err)+ -> Prelude.Left (Prelude.show err)+ (Prelude.Right r) -> Prelude.Right r))+ "pubkey"+ loop (Lens.Family2.set (Data.ProtoLens.Field.field @"pubkey") y x)+ wire+ -> do !y <- Data.ProtoLens.Encoding.Wire.parseTaggedValueFromWire+ wire+ loop+ (Lens.Family2.over+ Data.ProtoLens.unknownFields (\ !t -> (:) y t) x)+ in+ (Data.ProtoLens.Encoding.Bytes.<?>)+ (do loop Data.ProtoLens.defMessage) "VerifyMessageResponse"+ buildMessage+ = \ _x+ -> (Data.Monoid.<>)+ (let+ _v = Lens.Family2.view (Data.ProtoLens.Field.field @"valid") _x+ in+ if (Prelude.==) _v Data.ProtoLens.fieldDefault then+ Data.Monoid.mempty+ else+ (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 8)+ ((Prelude..)+ Data.ProtoLens.Encoding.Bytes.putVarInt (\ b -> if b then 1 else 0)+ _v))+ ((Data.Monoid.<>)+ (let+ _v = Lens.Family2.view (Data.ProtoLens.Field.field @"pubkey") _x+ in+ if (Prelude.==) _v Data.ProtoLens.fieldDefault then+ Data.Monoid.mempty+ else+ (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 18)+ ((Prelude..)+ (\ bs+ -> (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt+ (Prelude.fromIntegral (Data.ByteString.length bs)))+ (Data.ProtoLens.Encoding.Bytes.putBytes bs))+ Data.Text.Encoding.encodeUtf8 _v))+ (Data.ProtoLens.Encoding.Wire.buildFieldSet+ (Lens.Family2.view Data.ProtoLens.unknownFields _x)))+instance Control.DeepSeq.NFData VerifyMessageResponse where+ rnf+ = \ x__+ -> Control.DeepSeq.deepseq+ (_VerifyMessageResponse'_unknownFields x__)+ (Control.DeepSeq.deepseq+ (_VerifyMessageResponse'valid x__)+ (Control.DeepSeq.deepseq (_VerifyMessageResponse'pubkey x__) ()))+data Lightning = Lightning {}+instance Data.ProtoLens.Service.Types.Service Lightning where+ type ServiceName Lightning = "Lightning"+ type ServicePackage Lightning = "lnrpc"+ type ServiceMethods Lightning = '["abandonChannel",+ "addInvoice",+ "bakeMacaroon",+ "batchOpenChannel",+ "channelAcceptor",+ "channelBalance",+ "checkMacaroonPermissions",+ "closeChannel",+ "closedChannels",+ "connectPeer",+ "debugLevel",+ "decodePayReq",+ "deleteAllPayments",+ "deleteMacaroonID",+ "deletePayment",+ "describeGraph",+ "disconnectPeer",+ "estimateFee",+ "exportAllChannelBackups",+ "exportChannelBackup",+ "feeReport",+ "forwardingHistory",+ "fundingStateStep",+ "getChanInfo",+ "getInfo",+ "getNetworkInfo",+ "getNodeInfo",+ "getNodeMetrics",+ "getRecoveryInfo",+ "getTransactions",+ "listChannels",+ "listInvoices",+ "listMacaroonIDs",+ "listPayments",+ "listPeers",+ "listPermissions",+ "listUnspent",+ "lookupInvoice",+ "newAddress",+ "openChannel",+ "openChannelSync",+ "pendingChannels",+ "queryRoutes",+ "registerRPCMiddleware",+ "restoreChannelBackups",+ "sendCoins",+ "sendCustomMessage",+ "sendMany",+ "sendPayment",+ "sendPaymentSync",+ "sendToRoute",+ "sendToRouteSync",+ "signMessage",+ "stopDaemon",+ "subscribeChannelBackups",+ "subscribeChannelEvents",+ "subscribeChannelGraph",+ "subscribeCustomMessages",+ "subscribeInvoices",+ "subscribePeerEvents",+ "subscribeTransactions",+ "updateChannelPolicy",+ "verifyChanBackup",+ "verifyMessage",+ "walletBalance"]+ packedServiceDescriptor _+ = "\n\+ \\tLightning\DC2J\n\+ \\rWalletBalance\DC2\ESC.lnrpc.WalletBalanceRequest\SUB\FS.lnrpc.WalletBalanceResponse\DC2M\n\+ \\SOChannelBalance\DC2\FS.lnrpc.ChannelBalanceRequest\SUB\GS.lnrpc.ChannelBalanceResponse\DC2K\n\+ \\SIGetTransactions\DC2\GS.lnrpc.GetTransactionsRequest\SUB\EM.lnrpc.TransactionDetails\DC2D\n\+ \\vEstimateFee\DC2\EM.lnrpc.EstimateFeeRequest\SUB\SUB.lnrpc.EstimateFeeResponse\DC2>\n\+ \\tSendCoins\DC2\ETB.lnrpc.SendCoinsRequest\SUB\CAN.lnrpc.SendCoinsResponse\DC2D\n\+ \\vListUnspent\DC2\EM.lnrpc.ListUnspentRequest\SUB\SUB.lnrpc.ListUnspentResponse\DC2L\n\+ \\NAKSubscribeTransactions\DC2\GS.lnrpc.GetTransactionsRequest\SUB\DC2.lnrpc.Transaction0\SOH\DC2;\n\+ \\bSendMany\DC2\SYN.lnrpc.SendManyRequest\SUB\ETB.lnrpc.SendManyResponse\DC2A\n\+ \\n\+ \NewAddress\DC2\CAN.lnrpc.NewAddressRequest\SUB\EM.lnrpc.NewAddressResponse\DC2D\n\+ \\vSignMessage\DC2\EM.lnrpc.SignMessageRequest\SUB\SUB.lnrpc.SignMessageResponse\DC2J\n\+ \\rVerifyMessage\DC2\ESC.lnrpc.VerifyMessageRequest\SUB\FS.lnrpc.VerifyMessageResponse\DC2D\n\+ \\vConnectPeer\DC2\EM.lnrpc.ConnectPeerRequest\SUB\SUB.lnrpc.ConnectPeerResponse\DC2M\n\+ \\SODisconnectPeer\DC2\FS.lnrpc.DisconnectPeerRequest\SUB\GS.lnrpc.DisconnectPeerResponse\DC2>\n\+ \\tListPeers\DC2\ETB.lnrpc.ListPeersRequest\SUB\CAN.lnrpc.ListPeersResponse\DC2G\n\+ \\DC3SubscribePeerEvents\DC2\FS.lnrpc.PeerEventSubscription\SUB\DLE.lnrpc.PeerEvent0\SOH\DC28\n\+ \\aGetInfo\DC2\NAK.lnrpc.GetInfoRequest\SUB\SYN.lnrpc.GetInfoResponse\DC2P\n\+ \\SIGetRecoveryInfo\DC2\GS.lnrpc.GetRecoveryInfoRequest\SUB\RS.lnrpc.GetRecoveryInfoResponse\DC2P\n\+ \\SIPendingChannels\DC2\GS.lnrpc.PendingChannelsRequest\SUB\RS.lnrpc.PendingChannelsResponse\DC2G\n\+ \\fListChannels\DC2\SUB.lnrpc.ListChannelsRequest\SUB\ESC.lnrpc.ListChannelsResponse\DC2V\n\+ \\SYNSubscribeChannelEvents\DC2\US.lnrpc.ChannelEventSubscription\SUB\EM.lnrpc.ChannelEventUpdate0\SOH\DC2M\n\+ \\SOClosedChannels\DC2\FS.lnrpc.ClosedChannelsRequest\SUB\GS.lnrpc.ClosedChannelsResponse\DC2A\n\+ \\SIOpenChannelSync\DC2\EM.lnrpc.OpenChannelRequest\SUB\DC3.lnrpc.ChannelPoint\DC2C\n\+ \\vOpenChannel\DC2\EM.lnrpc.OpenChannelRequest\SUB\ETB.lnrpc.OpenStatusUpdate0\SOH\DC2S\n\+ \\DLEBatchOpenChannel\DC2\RS.lnrpc.BatchOpenChannelRequest\SUB\US.lnrpc.BatchOpenChannelResponse\DC2L\n\+ \\DLEFundingStateStep\DC2\ESC.lnrpc.FundingTransitionMsg\SUB\ESC.lnrpc.FundingStateStepResp\DC2P\n\+ \\SIChannelAcceptor\DC2\FS.lnrpc.ChannelAcceptResponse\SUB\ESC.lnrpc.ChannelAcceptRequest(\SOH0\SOH\DC2F\n\+ \\fCloseChannel\DC2\SUB.lnrpc.CloseChannelRequest\SUB\CAN.lnrpc.CloseStatusUpdate0\SOH\DC2M\n\+ \\SOAbandonChannel\DC2\FS.lnrpc.AbandonChannelRequest\SUB\GS.lnrpc.AbandonChannelResponse\DC2?\n\+ \\vSendPayment\DC2\DC2.lnrpc.SendRequest\SUB\DC3.lnrpc.SendResponse\"\ETX\136\STX\SOH(\SOH0\SOH\DC2:\n\+ \\SISendPaymentSync\DC2\DC2.lnrpc.SendRequest\SUB\DC3.lnrpc.SendResponse\DC2F\n\+ \\vSendToRoute\DC2\EM.lnrpc.SendToRouteRequest\SUB\DC3.lnrpc.SendResponse\"\ETX\136\STX\SOH(\SOH0\SOH\DC2A\n\+ \\SISendToRouteSync\DC2\EM.lnrpc.SendToRouteRequest\SUB\DC3.lnrpc.SendResponse\DC27\n\+ \\n\+ \AddInvoice\DC2\SO.lnrpc.Invoice\SUB\EM.lnrpc.AddInvoiceResponse\DC2E\n\+ \\fListInvoices\DC2\EM.lnrpc.ListInvoiceRequest\SUB\SUB.lnrpc.ListInvoiceResponse\DC23\n\+ \\rLookupInvoice\DC2\DC2.lnrpc.PaymentHash\SUB\SO.lnrpc.Invoice\DC2A\n\+ \\DC1SubscribeInvoices\DC2\SUB.lnrpc.InvoiceSubscription\SUB\SO.lnrpc.Invoice0\SOH\DC22\n\+ \\fDecodePayReq\DC2\DC3.lnrpc.PayReqString\SUB\r.lnrpc.PayReq\DC2G\n\+ \\fListPayments\DC2\SUB.lnrpc.ListPaymentsRequest\SUB\ESC.lnrpc.ListPaymentsResponse\DC2J\n\+ \\rDeletePayment\DC2\ESC.lnrpc.DeletePaymentRequest\SUB\FS.lnrpc.DeletePaymentResponse\DC2V\n\+ \\DC1DeleteAllPayments\DC2\US.lnrpc.DeleteAllPaymentsRequest\SUB .lnrpc.DeleteAllPaymentsResponse\DC2@\n\+ \\rDescribeGraph\DC2\SUB.lnrpc.ChannelGraphRequest\SUB\DC3.lnrpc.ChannelGraph\DC2G\n\+ \\SOGetNodeMetrics\DC2\EM.lnrpc.NodeMetricsRequest\SUB\SUB.lnrpc.NodeMetricsResponse\DC29\n\+ \\vGetChanInfo\DC2\SYN.lnrpc.ChanInfoRequest\SUB\DC2.lnrpc.ChannelEdge\DC26\n\+ \\vGetNodeInfo\DC2\SYN.lnrpc.NodeInfoRequest\SUB\SI.lnrpc.NodeInfo\DC2D\n\+ \\vQueryRoutes\DC2\EM.lnrpc.QueryRoutesRequest\SUB\SUB.lnrpc.QueryRoutesResponse\DC2?\n\+ \\SOGetNetworkInfo\DC2\EM.lnrpc.NetworkInfoRequest\SUB\DC2.lnrpc.NetworkInfo\DC25\n\+ \\n\+ \StopDaemon\DC2\DC2.lnrpc.StopRequest\SUB\DC3.lnrpc.StopResponse\DC2W\n\+ \\NAKSubscribeChannelGraph\DC2 .lnrpc.GraphTopologySubscription\SUB\SUB.lnrpc.GraphTopologyUpdate0\SOH\DC2A\n\+ \\n\+ \DebugLevel\DC2\CAN.lnrpc.DebugLevelRequest\SUB\EM.lnrpc.DebugLevelResponse\DC2>\n\+ \\tFeeReport\DC2\ETB.lnrpc.FeeReportRequest\SUB\CAN.lnrpc.FeeReportResponse\DC2N\n\+ \\DC3UpdateChannelPolicy\DC2\SUB.lnrpc.PolicyUpdateRequest\SUB\ESC.lnrpc.PolicyUpdateResponse\DC2V\n\+ \\DC1ForwardingHistory\DC2\US.lnrpc.ForwardingHistoryRequest\SUB .lnrpc.ForwardingHistoryResponse\DC2N\n\+ \\DC3ExportChannelBackup\DC2!.lnrpc.ExportChannelBackupRequest\SUB\DC4.lnrpc.ChannelBackup\DC2T\n\+ \\ETBExportAllChannelBackups\DC2\RS.lnrpc.ChanBackupExportRequest\SUB\EM.lnrpc.ChanBackupSnapshot\DC2N\n\+ \\DLEVerifyChanBackup\DC2\EM.lnrpc.ChanBackupSnapshot\SUB\US.lnrpc.VerifyChanBackupResponse\DC2V\n\+ \\NAKRestoreChannelBackups\DC2\US.lnrpc.RestoreChanBackupRequest\SUB\FS.lnrpc.RestoreBackupResponse\DC2X\n\+ \\ETBSubscribeChannelBackups\DC2 .lnrpc.ChannelBackupSubscription\SUB\EM.lnrpc.ChanBackupSnapshot0\SOH\DC2G\n\+ \\fBakeMacaroon\DC2\SUB.lnrpc.BakeMacaroonRequest\SUB\ESC.lnrpc.BakeMacaroonResponse\DC2P\n\+ \\SIListMacaroonIDs\DC2\GS.lnrpc.ListMacaroonIDsRequest\SUB\RS.lnrpc.ListMacaroonIDsResponse\DC2S\n\+ \\DLEDeleteMacaroonID\DC2\RS.lnrpc.DeleteMacaroonIDRequest\SUB\US.lnrpc.DeleteMacaroonIDResponse\DC2P\n\+ \\SIListPermissions\DC2\GS.lnrpc.ListPermissionsRequest\SUB\RS.lnrpc.ListPermissionsResponse\DC2S\n\+ \\CANCheckMacaroonPermissions\DC2\SUB.lnrpc.CheckMacPermRequest\SUB\ESC.lnrpc.CheckMacPermResponse\DC2V\n\+ \\NAKRegisterRPCMiddleware\DC2\FS.lnrpc.RPCMiddlewareResponse\SUB\ESC.lnrpc.RPCMiddlewareRequest(\SOH0\SOH\DC2V\n\+ \\DC1SendCustomMessage\DC2\US.lnrpc.SendCustomMessageRequest\SUB .lnrpc.SendCustomMessageResponse\DC2X\n\+ \\ETBSubscribeCustomMessages\DC2%.lnrpc.SubscribeCustomMessagesRequest\SUB\DC4.lnrpc.CustomMessage0\SOH"+instance Data.ProtoLens.Service.Types.HasMethodImpl Lightning "walletBalance" where+ type MethodName Lightning "walletBalance" = "WalletBalance"+ type MethodInput Lightning "walletBalance" = Proto.Lnrpc.Ln0.WalletBalanceRequest+ type MethodOutput Lightning "walletBalance" = Proto.Lnrpc.Ln0.WalletBalanceResponse+ type MethodStreamingType Lightning "walletBalance" = 'Data.ProtoLens.Service.Types.NonStreaming+instance Data.ProtoLens.Service.Types.HasMethodImpl Lightning "channelBalance" where+ type MethodName Lightning "channelBalance" = "ChannelBalance"+ type MethodInput Lightning "channelBalance" = Proto.Lnrpc.Ln0.ChannelBalanceRequest+ type MethodOutput Lightning "channelBalance" = Proto.Lnrpc.Ln0.ChannelBalanceResponse+ type MethodStreamingType Lightning "channelBalance" = 'Data.ProtoLens.Service.Types.NonStreaming+instance Data.ProtoLens.Service.Types.HasMethodImpl Lightning "getTransactions" where+ type MethodName Lightning "getTransactions" = "GetTransactions"+ type MethodInput Lightning "getTransactions" = GetTransactionsRequest+ type MethodOutput Lightning "getTransactions" = TransactionDetails+ type MethodStreamingType Lightning "getTransactions" = 'Data.ProtoLens.Service.Types.NonStreaming+instance Data.ProtoLens.Service.Types.HasMethodImpl Lightning "estimateFee" where+ type MethodName Lightning "estimateFee" = "EstimateFee"+ type MethodInput Lightning "estimateFee" = EstimateFeeRequest+ type MethodOutput Lightning "estimateFee" = EstimateFeeResponse+ type MethodStreamingType Lightning "estimateFee" = 'Data.ProtoLens.Service.Types.NonStreaming+instance Data.ProtoLens.Service.Types.HasMethodImpl Lightning "sendCoins" where+ type MethodName Lightning "sendCoins" = "SendCoins"+ type MethodInput Lightning "sendCoins" = SendCoinsRequest+ type MethodOutput Lightning "sendCoins" = SendCoinsResponse+ type MethodStreamingType Lightning "sendCoins" = 'Data.ProtoLens.Service.Types.NonStreaming+instance Data.ProtoLens.Service.Types.HasMethodImpl Lightning "listUnspent" where+ type MethodName Lightning "listUnspent" = "ListUnspent"+ type MethodInput Lightning "listUnspent" = ListUnspentRequest+ type MethodOutput Lightning "listUnspent" = ListUnspentResponse+ type MethodStreamingType Lightning "listUnspent" = 'Data.ProtoLens.Service.Types.NonStreaming+instance Data.ProtoLens.Service.Types.HasMethodImpl Lightning "subscribeTransactions" where+ type MethodName Lightning "subscribeTransactions" = "SubscribeTransactions"+ type MethodInput Lightning "subscribeTransactions" = GetTransactionsRequest+ type MethodOutput Lightning "subscribeTransactions" = Transaction+ type MethodStreamingType Lightning "subscribeTransactions" = 'Data.ProtoLens.Service.Types.ServerStreaming+instance Data.ProtoLens.Service.Types.HasMethodImpl Lightning "sendMany" where+ type MethodName Lightning "sendMany" = "SendMany"+ type MethodInput Lightning "sendMany" = SendManyRequest+ type MethodOutput Lightning "sendMany" = SendManyResponse+ type MethodStreamingType Lightning "sendMany" = 'Data.ProtoLens.Service.Types.NonStreaming+instance Data.ProtoLens.Service.Types.HasMethodImpl Lightning "newAddress" where+ type MethodName Lightning "newAddress" = "NewAddress"+ type MethodInput Lightning "newAddress" = NewAddressRequest+ type MethodOutput Lightning "newAddress" = NewAddressResponse+ type MethodStreamingType Lightning "newAddress" = 'Data.ProtoLens.Service.Types.NonStreaming+instance Data.ProtoLens.Service.Types.HasMethodImpl Lightning "signMessage" where+ type MethodName Lightning "signMessage" = "SignMessage"+ type MethodInput Lightning "signMessage" = SignMessageRequest+ type MethodOutput Lightning "signMessage" = SignMessageResponse+ type MethodStreamingType Lightning "signMessage" = 'Data.ProtoLens.Service.Types.NonStreaming+instance Data.ProtoLens.Service.Types.HasMethodImpl Lightning "verifyMessage" where+ type MethodName Lightning "verifyMessage" = "VerifyMessage"+ type MethodInput Lightning "verifyMessage" = VerifyMessageRequest+ type MethodOutput Lightning "verifyMessage" = VerifyMessageResponse+ type MethodStreamingType Lightning "verifyMessage" = 'Data.ProtoLens.Service.Types.NonStreaming+instance Data.ProtoLens.Service.Types.HasMethodImpl Lightning "connectPeer" where+ type MethodName Lightning "connectPeer" = "ConnectPeer"+ type MethodInput Lightning "connectPeer" = ConnectPeerRequest+ type MethodOutput Lightning "connectPeer" = ConnectPeerResponse+ type MethodStreamingType Lightning "connectPeer" = 'Data.ProtoLens.Service.Types.NonStreaming+instance Data.ProtoLens.Service.Types.HasMethodImpl Lightning "disconnectPeer" where+ type MethodName Lightning "disconnectPeer" = "DisconnectPeer"+ type MethodInput Lightning "disconnectPeer" = DisconnectPeerRequest+ type MethodOutput Lightning "disconnectPeer" = DisconnectPeerResponse+ type MethodStreamingType Lightning "disconnectPeer" = 'Data.ProtoLens.Service.Types.NonStreaming+instance Data.ProtoLens.Service.Types.HasMethodImpl Lightning "listPeers" where+ type MethodName Lightning "listPeers" = "ListPeers"+ type MethodInput Lightning "listPeers" = ListPeersRequest+ type MethodOutput Lightning "listPeers" = ListPeersResponse+ type MethodStreamingType Lightning "listPeers" = 'Data.ProtoLens.Service.Types.NonStreaming+instance Data.ProtoLens.Service.Types.HasMethodImpl Lightning "subscribePeerEvents" where+ type MethodName Lightning "subscribePeerEvents" = "SubscribePeerEvents"+ type MethodInput Lightning "subscribePeerEvents" = PeerEventSubscription+ type MethodOutput Lightning "subscribePeerEvents" = PeerEvent+ type MethodStreamingType Lightning "subscribePeerEvents" = 'Data.ProtoLens.Service.Types.ServerStreaming+instance Data.ProtoLens.Service.Types.HasMethodImpl Lightning "getInfo" where+ type MethodName Lightning "getInfo" = "GetInfo"+ type MethodInput Lightning "getInfo" = GetInfoRequest+ type MethodOutput Lightning "getInfo" = GetInfoResponse+ type MethodStreamingType Lightning "getInfo" = 'Data.ProtoLens.Service.Types.NonStreaming+instance Data.ProtoLens.Service.Types.HasMethodImpl Lightning "getRecoveryInfo" where+ type MethodName Lightning "getRecoveryInfo" = "GetRecoveryInfo"+ type MethodInput Lightning "getRecoveryInfo" = GetRecoveryInfoRequest+ type MethodOutput Lightning "getRecoveryInfo" = GetRecoveryInfoResponse+ type MethodStreamingType Lightning "getRecoveryInfo" = 'Data.ProtoLens.Service.Types.NonStreaming+instance Data.ProtoLens.Service.Types.HasMethodImpl Lightning "pendingChannels" where+ type MethodName Lightning "pendingChannels" = "PendingChannels"+ type MethodInput Lightning "pendingChannels" = Proto.Lnrpc.Ln0.PendingChannelsRequest+ type MethodOutput Lightning "pendingChannels" = Proto.Lnrpc.Ln0.PendingChannelsResponse+ type MethodStreamingType Lightning "pendingChannels" = 'Data.ProtoLens.Service.Types.NonStreaming+instance Data.ProtoLens.Service.Types.HasMethodImpl Lightning "listChannels" where+ type MethodName Lightning "listChannels" = "ListChannels"+ type MethodInput Lightning "listChannels" = ListChannelsRequest+ type MethodOutput Lightning "listChannels" = ListChannelsResponse+ type MethodStreamingType Lightning "listChannels" = 'Data.ProtoLens.Service.Types.NonStreaming+instance Data.ProtoLens.Service.Types.HasMethodImpl Lightning "subscribeChannelEvents" where+ type MethodName Lightning "subscribeChannelEvents" = "SubscribeChannelEvents"+ type MethodInput Lightning "subscribeChannelEvents" = Proto.Lnrpc.Ln0.ChannelEventSubscription+ type MethodOutput Lightning "subscribeChannelEvents" = Proto.Lnrpc.Ln0.ChannelEventUpdate+ type MethodStreamingType Lightning "subscribeChannelEvents" = 'Data.ProtoLens.Service.Types.ServerStreaming+instance Data.ProtoLens.Service.Types.HasMethodImpl Lightning "closedChannels" where+ type MethodName Lightning "closedChannels" = "ClosedChannels"+ type MethodInput Lightning "closedChannels" = ClosedChannelsRequest+ type MethodOutput Lightning "closedChannels" = ClosedChannelsResponse+ type MethodStreamingType Lightning "closedChannels" = 'Data.ProtoLens.Service.Types.NonStreaming+instance Data.ProtoLens.Service.Types.HasMethodImpl Lightning "openChannelSync" where+ type MethodName Lightning "openChannelSync" = "OpenChannelSync"+ type MethodInput Lightning "openChannelSync" = OpenChannelRequest+ type MethodOutput Lightning "openChannelSync" = Proto.Lnrpc.Ln0.ChannelPoint+ type MethodStreamingType Lightning "openChannelSync" = 'Data.ProtoLens.Service.Types.NonStreaming+instance Data.ProtoLens.Service.Types.HasMethodImpl Lightning "openChannel" where+ type MethodName Lightning "openChannel" = "OpenChannel"+ type MethodInput Lightning "openChannel" = OpenChannelRequest+ type MethodOutput Lightning "openChannel" = OpenStatusUpdate+ type MethodStreamingType Lightning "openChannel" = 'Data.ProtoLens.Service.Types.ServerStreaming+instance Data.ProtoLens.Service.Types.HasMethodImpl Lightning "batchOpenChannel" where+ type MethodName Lightning "batchOpenChannel" = "BatchOpenChannel"+ type MethodInput Lightning "batchOpenChannel" = BatchOpenChannelRequest+ type MethodOutput Lightning "batchOpenChannel" = BatchOpenChannelResponse+ type MethodStreamingType Lightning "batchOpenChannel" = 'Data.ProtoLens.Service.Types.NonStreaming+instance Data.ProtoLens.Service.Types.HasMethodImpl Lightning "fundingStateStep" where+ type MethodName Lightning "fundingStateStep" = "FundingStateStep"+ type MethodInput Lightning "fundingStateStep" = Proto.Lnrpc.Ln0.FundingTransitionMsg+ type MethodOutput Lightning "fundingStateStep" = Proto.Lnrpc.Ln0.FundingStateStepResp+ type MethodStreamingType Lightning "fundingStateStep" = 'Data.ProtoLens.Service.Types.NonStreaming+instance Data.ProtoLens.Service.Types.HasMethodImpl Lightning "channelAcceptor" where+ type MethodName Lightning "channelAcceptor" = "ChannelAcceptor"+ type MethodInput Lightning "channelAcceptor" = ChannelAcceptResponse+ type MethodOutput Lightning "channelAcceptor" = ChannelAcceptRequest+ type MethodStreamingType Lightning "channelAcceptor" = 'Data.ProtoLens.Service.Types.BiDiStreaming+instance Data.ProtoLens.Service.Types.HasMethodImpl Lightning "closeChannel" where+ type MethodName Lightning "closeChannel" = "CloseChannel"+ type MethodInput Lightning "closeChannel" = CloseChannelRequest+ type MethodOutput Lightning "closeChannel" = CloseStatusUpdate+ type MethodStreamingType Lightning "closeChannel" = 'Data.ProtoLens.Service.Types.ServerStreaming+instance Data.ProtoLens.Service.Types.HasMethodImpl Lightning "abandonChannel" where+ type MethodName Lightning "abandonChannel" = "AbandonChannel"+ type MethodInput Lightning "abandonChannel" = Proto.Lnrpc.Ln1.AbandonChannelRequest+ type MethodOutput Lightning "abandonChannel" = Proto.Lnrpc.Ln1.AbandonChannelResponse+ type MethodStreamingType Lightning "abandonChannel" = 'Data.ProtoLens.Service.Types.NonStreaming+instance Data.ProtoLens.Service.Types.HasMethodImpl Lightning "sendPayment" where+ type MethodName Lightning "sendPayment" = "SendPayment"+ type MethodInput Lightning "sendPayment" = SendRequest+ type MethodOutput Lightning "sendPayment" = SendResponse+ type MethodStreamingType Lightning "sendPayment" = 'Data.ProtoLens.Service.Types.BiDiStreaming+instance Data.ProtoLens.Service.Types.HasMethodImpl Lightning "sendPaymentSync" where+ type MethodName Lightning "sendPaymentSync" = "SendPaymentSync"+ type MethodInput Lightning "sendPaymentSync" = SendRequest+ type MethodOutput Lightning "sendPaymentSync" = SendResponse+ type MethodStreamingType Lightning "sendPaymentSync" = 'Data.ProtoLens.Service.Types.NonStreaming+instance Data.ProtoLens.Service.Types.HasMethodImpl Lightning "sendToRoute" where+ type MethodName Lightning "sendToRoute" = "SendToRoute"+ type MethodInput Lightning "sendToRoute" = SendToRouteRequest+ type MethodOutput Lightning "sendToRoute" = SendResponse+ type MethodStreamingType Lightning "sendToRoute" = 'Data.ProtoLens.Service.Types.BiDiStreaming+instance Data.ProtoLens.Service.Types.HasMethodImpl Lightning "sendToRouteSync" where+ type MethodName Lightning "sendToRouteSync" = "SendToRouteSync"+ type MethodInput Lightning "sendToRouteSync" = SendToRouteRequest+ type MethodOutput Lightning "sendToRouteSync" = SendResponse+ type MethodStreamingType Lightning "sendToRouteSync" = 'Data.ProtoLens.Service.Types.NonStreaming+instance Data.ProtoLens.Service.Types.HasMethodImpl Lightning "addInvoice" where+ type MethodName Lightning "addInvoice" = "AddInvoice"+ type MethodInput Lightning "addInvoice" = Proto.Lnrpc.Ln1.Invoice+ type MethodOutput Lightning "addInvoice" = Proto.Lnrpc.Ln1.AddInvoiceResponse+ type MethodStreamingType Lightning "addInvoice" = 'Data.ProtoLens.Service.Types.NonStreaming+instance Data.ProtoLens.Service.Types.HasMethodImpl Lightning "listInvoices" where+ type MethodName Lightning "listInvoices" = "ListInvoices"+ type MethodInput Lightning "listInvoices" = Proto.Lnrpc.Ln1.ListInvoiceRequest+ type MethodOutput Lightning "listInvoices" = Proto.Lnrpc.Ln1.ListInvoiceResponse+ type MethodStreamingType Lightning "listInvoices" = 'Data.ProtoLens.Service.Types.NonStreaming+instance Data.ProtoLens.Service.Types.HasMethodImpl Lightning "lookupInvoice" where+ type MethodName Lightning "lookupInvoice" = "LookupInvoice"+ type MethodInput Lightning "lookupInvoice" = Proto.Lnrpc.Ln1.PaymentHash+ type MethodOutput Lightning "lookupInvoice" = Proto.Lnrpc.Ln1.Invoice+ type MethodStreamingType Lightning "lookupInvoice" = 'Data.ProtoLens.Service.Types.NonStreaming+instance Data.ProtoLens.Service.Types.HasMethodImpl Lightning "subscribeInvoices" where+ type MethodName Lightning "subscribeInvoices" = "SubscribeInvoices"+ type MethodInput Lightning "subscribeInvoices" = Proto.Lnrpc.Ln1.InvoiceSubscription+ type MethodOutput Lightning "subscribeInvoices" = Proto.Lnrpc.Ln1.Invoice+ type MethodStreamingType Lightning "subscribeInvoices" = 'Data.ProtoLens.Service.Types.ServerStreaming+instance Data.ProtoLens.Service.Types.HasMethodImpl Lightning "decodePayReq" where+ type MethodName Lightning "decodePayReq" = "DecodePayReq"+ type MethodInput Lightning "decodePayReq" = Proto.Lnrpc.Ln1.PayReqString+ type MethodOutput Lightning "decodePayReq" = Proto.Lnrpc.Ln1.PayReq+ type MethodStreamingType Lightning "decodePayReq" = 'Data.ProtoLens.Service.Types.NonStreaming+instance Data.ProtoLens.Service.Types.HasMethodImpl Lightning "listPayments" where+ type MethodName Lightning "listPayments" = "ListPayments"+ type MethodInput Lightning "listPayments" = Proto.Lnrpc.Ln1.ListPaymentsRequest+ type MethodOutput Lightning "listPayments" = Proto.Lnrpc.Ln1.ListPaymentsResponse+ type MethodStreamingType Lightning "listPayments" = 'Data.ProtoLens.Service.Types.NonStreaming+instance Data.ProtoLens.Service.Types.HasMethodImpl Lightning "deletePayment" where+ type MethodName Lightning "deletePayment" = "DeletePayment"+ type MethodInput Lightning "deletePayment" = Proto.Lnrpc.Ln1.DeletePaymentRequest+ type MethodOutput Lightning "deletePayment" = Proto.Lnrpc.Ln1.DeletePaymentResponse+ type MethodStreamingType Lightning "deletePayment" = 'Data.ProtoLens.Service.Types.NonStreaming+instance Data.ProtoLens.Service.Types.HasMethodImpl Lightning "deleteAllPayments" where+ type MethodName Lightning "deleteAllPayments" = "DeleteAllPayments"+ type MethodInput Lightning "deleteAllPayments" = Proto.Lnrpc.Ln1.DeleteAllPaymentsRequest+ type MethodOutput Lightning "deleteAllPayments" = Proto.Lnrpc.Ln1.DeleteAllPaymentsResponse+ type MethodStreamingType Lightning "deleteAllPayments" = 'Data.ProtoLens.Service.Types.NonStreaming+instance Data.ProtoLens.Service.Types.HasMethodImpl Lightning "describeGraph" where+ type MethodName Lightning "describeGraph" = "DescribeGraph"+ type MethodInput Lightning "describeGraph" = Proto.Lnrpc.Ln0.ChannelGraphRequest+ type MethodOutput Lightning "describeGraph" = Proto.Lnrpc.Ln0.ChannelGraph+ type MethodStreamingType Lightning "describeGraph" = 'Data.ProtoLens.Service.Types.NonStreaming+instance Data.ProtoLens.Service.Types.HasMethodImpl Lightning "getNodeMetrics" where+ type MethodName Lightning "getNodeMetrics" = "GetNodeMetrics"+ type MethodInput Lightning "getNodeMetrics" = Proto.Lnrpc.Ln0.NodeMetricsRequest+ type MethodOutput Lightning "getNodeMetrics" = Proto.Lnrpc.Ln0.NodeMetricsResponse+ type MethodStreamingType Lightning "getNodeMetrics" = 'Data.ProtoLens.Service.Types.NonStreaming+instance Data.ProtoLens.Service.Types.HasMethodImpl Lightning "getChanInfo" where+ type MethodName Lightning "getChanInfo" = "GetChanInfo"+ type MethodInput Lightning "getChanInfo" = Proto.Lnrpc.Ln0.ChanInfoRequest+ type MethodOutput Lightning "getChanInfo" = Proto.Lnrpc.Ln0.ChannelEdge+ type MethodStreamingType Lightning "getChanInfo" = 'Data.ProtoLens.Service.Types.NonStreaming+instance Data.ProtoLens.Service.Types.HasMethodImpl Lightning "getNodeInfo" where+ type MethodName Lightning "getNodeInfo" = "GetNodeInfo"+ type MethodInput Lightning "getNodeInfo" = Proto.Lnrpc.Ln0.NodeInfoRequest+ type MethodOutput Lightning "getNodeInfo" = Proto.Lnrpc.Ln0.NodeInfo+ type MethodStreamingType Lightning "getNodeInfo" = 'Data.ProtoLens.Service.Types.NonStreaming+instance Data.ProtoLens.Service.Types.HasMethodImpl Lightning "queryRoutes" where+ type MethodName Lightning "queryRoutes" = "QueryRoutes"+ type MethodInput Lightning "queryRoutes" = Proto.Lnrpc.Ln0.QueryRoutesRequest+ type MethodOutput Lightning "queryRoutes" = Proto.Lnrpc.Ln0.QueryRoutesResponse+ type MethodStreamingType Lightning "queryRoutes" = 'Data.ProtoLens.Service.Types.NonStreaming+instance Data.ProtoLens.Service.Types.HasMethodImpl Lightning "getNetworkInfo" where+ type MethodName Lightning "getNetworkInfo" = "GetNetworkInfo"+ type MethodInput Lightning "getNetworkInfo" = Proto.Lnrpc.Ln0.NetworkInfoRequest+ type MethodOutput Lightning "getNetworkInfo" = Proto.Lnrpc.Ln0.NetworkInfo+ type MethodStreamingType Lightning "getNetworkInfo" = 'Data.ProtoLens.Service.Types.NonStreaming+instance Data.ProtoLens.Service.Types.HasMethodImpl Lightning "stopDaemon" where+ type MethodName Lightning "stopDaemon" = "StopDaemon"+ type MethodInput Lightning "stopDaemon" = Proto.Lnrpc.Ln0.StopRequest+ type MethodOutput Lightning "stopDaemon" = Proto.Lnrpc.Ln0.StopResponse+ type MethodStreamingType Lightning "stopDaemon" = 'Data.ProtoLens.Service.Types.NonStreaming+instance Data.ProtoLens.Service.Types.HasMethodImpl Lightning "subscribeChannelGraph" where+ type MethodName Lightning "subscribeChannelGraph" = "SubscribeChannelGraph"+ type MethodInput Lightning "subscribeChannelGraph" = Proto.Lnrpc.Ln0.GraphTopologySubscription+ type MethodOutput Lightning "subscribeChannelGraph" = Proto.Lnrpc.Ln0.GraphTopologyUpdate+ type MethodStreamingType Lightning "subscribeChannelGraph" = 'Data.ProtoLens.Service.Types.ServerStreaming+instance Data.ProtoLens.Service.Types.HasMethodImpl Lightning "debugLevel" where+ type MethodName Lightning "debugLevel" = "DebugLevel"+ type MethodInput Lightning "debugLevel" = Proto.Lnrpc.Ln1.DebugLevelRequest+ type MethodOutput Lightning "debugLevel" = Proto.Lnrpc.Ln1.DebugLevelResponse+ type MethodStreamingType Lightning "debugLevel" = 'Data.ProtoLens.Service.Types.NonStreaming+instance Data.ProtoLens.Service.Types.HasMethodImpl Lightning "feeReport" where+ type MethodName Lightning "feeReport" = "FeeReport"+ type MethodInput Lightning "feeReport" = Proto.Lnrpc.Ln1.FeeReportRequest+ type MethodOutput Lightning "feeReport" = Proto.Lnrpc.Ln1.FeeReportResponse+ type MethodStreamingType Lightning "feeReport" = 'Data.ProtoLens.Service.Types.NonStreaming+instance Data.ProtoLens.Service.Types.HasMethodImpl Lightning "updateChannelPolicy" where+ type MethodName Lightning "updateChannelPolicy" = "UpdateChannelPolicy"+ type MethodInput Lightning "updateChannelPolicy" = Proto.Lnrpc.Ln1.PolicyUpdateRequest+ type MethodOutput Lightning "updateChannelPolicy" = Proto.Lnrpc.Ln1.PolicyUpdateResponse+ type MethodStreamingType Lightning "updateChannelPolicy" = 'Data.ProtoLens.Service.Types.NonStreaming+instance Data.ProtoLens.Service.Types.HasMethodImpl Lightning "forwardingHistory" where+ type MethodName Lightning "forwardingHistory" = "ForwardingHistory"+ type MethodInput Lightning "forwardingHistory" = Proto.Lnrpc.Ln1.ForwardingHistoryRequest+ type MethodOutput Lightning "forwardingHistory" = Proto.Lnrpc.Ln1.ForwardingHistoryResponse+ type MethodStreamingType Lightning "forwardingHistory" = 'Data.ProtoLens.Service.Types.NonStreaming+instance Data.ProtoLens.Service.Types.HasMethodImpl Lightning "exportChannelBackup" where+ type MethodName Lightning "exportChannelBackup" = "ExportChannelBackup"+ type MethodInput Lightning "exportChannelBackup" = Proto.Lnrpc.Ln1.ExportChannelBackupRequest+ type MethodOutput Lightning "exportChannelBackup" = Proto.Lnrpc.Ln1.ChannelBackup+ type MethodStreamingType Lightning "exportChannelBackup" = 'Data.ProtoLens.Service.Types.NonStreaming+instance Data.ProtoLens.Service.Types.HasMethodImpl Lightning "exportAllChannelBackups" where+ type MethodName Lightning "exportAllChannelBackups" = "ExportAllChannelBackups"+ type MethodInput Lightning "exportAllChannelBackups" = Proto.Lnrpc.Ln1.ChanBackupExportRequest+ type MethodOutput Lightning "exportAllChannelBackups" = Proto.Lnrpc.Ln1.ChanBackupSnapshot+ type MethodStreamingType Lightning "exportAllChannelBackups" = 'Data.ProtoLens.Service.Types.NonStreaming+instance Data.ProtoLens.Service.Types.HasMethodImpl Lightning "verifyChanBackup" where+ type MethodName Lightning "verifyChanBackup" = "VerifyChanBackup"+ type MethodInput Lightning "verifyChanBackup" = Proto.Lnrpc.Ln1.ChanBackupSnapshot+ type MethodOutput Lightning "verifyChanBackup" = Proto.Lnrpc.Ln1.VerifyChanBackupResponse+ type MethodStreamingType Lightning "verifyChanBackup" = 'Data.ProtoLens.Service.Types.NonStreaming+instance Data.ProtoLens.Service.Types.HasMethodImpl Lightning "restoreChannelBackups" where+ type MethodName Lightning "restoreChannelBackups" = "RestoreChannelBackups"+ type MethodInput Lightning "restoreChannelBackups" = Proto.Lnrpc.Ln1.RestoreChanBackupRequest+ type MethodOutput Lightning "restoreChannelBackups" = Proto.Lnrpc.Ln1.RestoreBackupResponse+ type MethodStreamingType Lightning "restoreChannelBackups" = 'Data.ProtoLens.Service.Types.NonStreaming+instance Data.ProtoLens.Service.Types.HasMethodImpl Lightning "subscribeChannelBackups" where+ type MethodName Lightning "subscribeChannelBackups" = "SubscribeChannelBackups"+ type MethodInput Lightning "subscribeChannelBackups" = Proto.Lnrpc.Ln1.ChannelBackupSubscription+ type MethodOutput Lightning "subscribeChannelBackups" = Proto.Lnrpc.Ln1.ChanBackupSnapshot+ type MethodStreamingType Lightning "subscribeChannelBackups" = 'Data.ProtoLens.Service.Types.ServerStreaming+instance Data.ProtoLens.Service.Types.HasMethodImpl Lightning "bakeMacaroon" where+ type MethodName Lightning "bakeMacaroon" = "BakeMacaroon"+ type MethodInput Lightning "bakeMacaroon" = Proto.Lnrpc.Ln1.BakeMacaroonRequest+ type MethodOutput Lightning "bakeMacaroon" = Proto.Lnrpc.Ln1.BakeMacaroonResponse+ type MethodStreamingType Lightning "bakeMacaroon" = 'Data.ProtoLens.Service.Types.NonStreaming+instance Data.ProtoLens.Service.Types.HasMethodImpl Lightning "listMacaroonIDs" where+ type MethodName Lightning "listMacaroonIDs" = "ListMacaroonIDs"+ type MethodInput Lightning "listMacaroonIDs" = Proto.Lnrpc.Ln1.ListMacaroonIDsRequest+ type MethodOutput Lightning "listMacaroonIDs" = Proto.Lnrpc.Ln1.ListMacaroonIDsResponse+ type MethodStreamingType Lightning "listMacaroonIDs" = 'Data.ProtoLens.Service.Types.NonStreaming+instance Data.ProtoLens.Service.Types.HasMethodImpl Lightning "deleteMacaroonID" where+ type MethodName Lightning "deleteMacaroonID" = "DeleteMacaroonID"+ type MethodInput Lightning "deleteMacaroonID" = Proto.Lnrpc.Ln1.DeleteMacaroonIDRequest+ type MethodOutput Lightning "deleteMacaroonID" = Proto.Lnrpc.Ln1.DeleteMacaroonIDResponse+ type MethodStreamingType Lightning "deleteMacaroonID" = 'Data.ProtoLens.Service.Types.NonStreaming+instance Data.ProtoLens.Service.Types.HasMethodImpl Lightning "listPermissions" where+ type MethodName Lightning "listPermissions" = "ListPermissions"+ type MethodInput Lightning "listPermissions" = Proto.Lnrpc.Ln1.ListPermissionsRequest+ type MethodOutput Lightning "listPermissions" = Proto.Lnrpc.Ln1.ListPermissionsResponse+ type MethodStreamingType Lightning "listPermissions" = 'Data.ProtoLens.Service.Types.NonStreaming+instance Data.ProtoLens.Service.Types.HasMethodImpl Lightning "checkMacaroonPermissions" where+ type MethodName Lightning "checkMacaroonPermissions" = "CheckMacaroonPermissions"+ type MethodInput Lightning "checkMacaroonPermissions" = Proto.Lnrpc.Ln1.CheckMacPermRequest+ type MethodOutput Lightning "checkMacaroonPermissions" = Proto.Lnrpc.Ln1.CheckMacPermResponse+ type MethodStreamingType Lightning "checkMacaroonPermissions" = 'Data.ProtoLens.Service.Types.NonStreaming+instance Data.ProtoLens.Service.Types.HasMethodImpl Lightning "registerRPCMiddleware" where+ type MethodName Lightning "registerRPCMiddleware" = "RegisterRPCMiddleware"+ type MethodInput Lightning "registerRPCMiddleware" = Proto.Lnrpc.Ln1.RPCMiddlewareResponse+ type MethodOutput Lightning "registerRPCMiddleware" = Proto.Lnrpc.Ln1.RPCMiddlewareRequest+ type MethodStreamingType Lightning "registerRPCMiddleware" = 'Data.ProtoLens.Service.Types.BiDiStreaming+instance Data.ProtoLens.Service.Types.HasMethodImpl Lightning "sendCustomMessage" where+ type MethodName Lightning "sendCustomMessage" = "SendCustomMessage"+ type MethodInput Lightning "sendCustomMessage" = SendCustomMessageRequest+ type MethodOutput Lightning "sendCustomMessage" = SendCustomMessageResponse+ type MethodStreamingType Lightning "sendCustomMessage" = 'Data.ProtoLens.Service.Types.NonStreaming+instance Data.ProtoLens.Service.Types.HasMethodImpl Lightning "subscribeCustomMessages" where+ type MethodName Lightning "subscribeCustomMessages" = "SubscribeCustomMessages"+ type MethodInput Lightning "subscribeCustomMessages" = SubscribeCustomMessagesRequest+ type MethodOutput Lightning "subscribeCustomMessages" = CustomMessage+ type MethodStreamingType Lightning "subscribeCustomMessages" = 'Data.ProtoLens.Service.Types.ServerStreaming+packedFileDescriptor :: Data.ByteString.ByteString+packedFileDescriptor+ = "\n\+ \\SIlightning.proto\DC2\ENQlnrpc\SUB\SIlnrpc/ln0.proto\SUB\SIlnrpc/ln1.proto\" \n\+ \\RSSubscribeCustomMessagesRequest\"K\n\+ \\rCustomMessage\DC2\DC2\n\+ \\EOTpeer\CAN\SOH \SOH(\fR\EOTpeer\DC2\DC2\n\+ \\EOTtype\CAN\STX \SOH(\rR\EOTtype\DC2\DC2\n\+ \\EOTdata\CAN\ETX \SOH(\fR\EOTdata\"V\n\+ \\CANSendCustomMessageRequest\DC2\DC2\n\+ \\EOTpeer\CAN\SOH \SOH(\fR\EOTpeer\DC2\DC2\n\+ \\EOTtype\CAN\STX \SOH(\rR\EOTtype\DC2\DC2\n\+ \\EOTdata\CAN\ETX \SOH(\fR\EOTdata\"\ESC\n\+ \\EMSendCustomMessageResponse\"\230\SOH\n\+ \\EOTUtxo\DC25\n\+ \\faddress_type\CAN\SOH \SOH(\SO2\DC2.lnrpc.AddressTypeR\vaddressType\DC2\CAN\n\+ \\aaddress\CAN\STX \SOH(\tR\aaddress\DC2\GS\n\+ \\n\+ \amount_sat\CAN\ETX \SOH(\ETXR\tamountSat\DC2\ESC\n\+ \\tpk_script\CAN\EOT \SOH(\tR\bpkScript\DC2+\n\+ \\boutpoint\CAN\ENQ \SOH(\v2\SI.lnrpc.OutPointR\boutpoint\DC2$\n\+ \\rconfirmations\CAN\ACK \SOH(\ETXR\rconfirmations\"\198\STX\n\+ \\vTransaction\DC2\ETB\n\+ \\atx_hash\CAN\SOH \SOH(\tR\ACKtxHash\DC2\SYN\n\+ \\ACKamount\CAN\STX \SOH(\ETXR\ACKamount\DC2+\n\+ \\DC1num_confirmations\CAN\ETX \SOH(\ENQR\DLEnumConfirmations\DC2\GS\n\+ \\n\+ \block_hash\CAN\EOT \SOH(\tR\tblockHash\DC2!\n\+ \\fblock_height\CAN\ENQ \SOH(\ENQR\vblockHeight\DC2\GS\n\+ \\n\+ \time_stamp\CAN\ACK \SOH(\ETXR\ttimeStamp\DC2\GS\n\+ \\n\+ \total_fees\CAN\a \SOH(\ETXR\ttotalFees\DC2%\n\+ \\SOdest_addresses\CAN\b \ETX(\tR\rdestAddresses\DC2\FS\n\+ \\n\+ \raw_tx_hex\CAN\t \SOH(\tR\brawTxHex\DC2\DC4\n\+ \\ENQlabel\CAN\n\+ \ \SOH(\tR\ENQlabel\"t\n\+ \\SYNGetTransactionsRequest\DC2!\n\+ \\fstart_height\CAN\SOH \SOH(\ENQR\vstartHeight\DC2\GS\n\+ \\n\+ \end_height\CAN\STX \SOH(\ENQR\tendHeight\DC2\CAN\n\+ \\aaccount\CAN\ETX \SOH(\tR\aaccount\"L\n\+ \\DC2TransactionDetails\DC26\n\+ \\ftransactions\CAN\SOH \ETX(\v2\DC2.lnrpc.TransactionR\ftransactions\"\234\ENQ\n\+ \\vSendRequest\DC2\DC2\n\+ \\EOTdest\CAN\SOH \SOH(\fR\EOTdest\DC2#\n\+ \\vdest_string\CAN\STX \SOH(\tR\n\+ \destStringB\STX\CAN\SOH\DC2\DLE\n\+ \\ETXamt\CAN\ETX \SOH(\ETXR\ETXamt\DC2\EM\n\+ \\bamt_msat\CAN\f \SOH(\ETXR\aamtMsat\DC2!\n\+ \\fpayment_hash\CAN\EOT \SOH(\fR\vpaymentHash\DC22\n\+ \\DC3payment_hash_string\CAN\ENQ \SOH(\tR\DC1paymentHashStringB\STX\CAN\SOH\DC2'\n\+ \\SIpayment_request\CAN\ACK \SOH(\tR\SOpaymentRequest\DC2(\n\+ \\DLEfinal_cltv_delta\CAN\a \SOH(\ENQR\SOfinalCltvDelta\DC2,\n\+ \\tfee_limit\CAN\b \SOH(\v2\SI.lnrpc.FeeLimitR\bfeeLimit\DC2,\n\+ \\DLEoutgoing_chan_id\CAN\t \SOH(\EOTR\SOoutgoingChanIdB\STX0\SOH\DC2&\n\+ \\SIlast_hop_pubkey\CAN\r \SOH(\fR\rlastHopPubkey\DC2\GS\n\+ \\n\+ \cltv_limit\CAN\n\+ \ \SOH(\rR\tcltvLimit\DC2Y\n\+ \\DC3dest_custom_records\CAN\v \ETX(\v2).lnrpc.SendRequest.DestCustomRecordsEntryR\DC1destCustomRecords\DC2,\n\+ \\DC2allow_self_payment\CAN\SO \SOH(\bR\DLEallowSelfPayment\DC26\n\+ \\rdest_features\CAN\SI \ETX(\SO2\DC1.lnrpc.FeatureBitR\fdestFeatures\DC2!\n\+ \\fpayment_addr\CAN\DLE \SOH(\fR\vpaymentAddr\SUBD\n\+ \\SYNDestCustomRecordsEntry\DC2\DLE\n\+ \\ETXkey\CAN\SOH \SOH(\EOTR\ETXkey\DC2\DC4\n\+ \\ENQvalue\CAN\STX \SOH(\fR\ENQvalue:\STX8\SOH\"\180\SOH\n\+ \\fSendResponse\DC2#\n\+ \\rpayment_error\CAN\SOH \SOH(\tR\fpaymentError\DC2)\n\+ \\DLEpayment_preimage\CAN\STX \SOH(\fR\SIpaymentPreimage\DC21\n\+ \\rpayment_route\CAN\ETX \SOH(\v2\f.lnrpc.RouteR\fpaymentRoute\DC2!\n\+ \\fpayment_hash\CAN\EOT \SOH(\fR\vpaymentHash\"\149\SOH\n\+ \\DC2SendToRouteRequest\DC2!\n\+ \\fpayment_hash\CAN\SOH \SOH(\fR\vpaymentHash\DC22\n\+ \\DC3payment_hash_string\CAN\STX \SOH(\tR\DC1paymentHashStringB\STX\CAN\SOH\DC2\"\n\+ \\ENQroute\CAN\EOT \SOH(\v2\f.lnrpc.RouteR\ENQrouteJ\EOT\b\ETX\DLE\EOT\"\154\EOT\n\+ \\DC4ChannelAcceptRequest\DC2\US\n\+ \\vnode_pubkey\CAN\SOH \SOH(\fR\n\+ \nodePubkey\DC2\GS\n\+ \\n\+ \chain_hash\CAN\STX \SOH(\fR\tchainHash\DC2&\n\+ \\SIpending_chan_id\CAN\ETX \SOH(\fR\rpendingChanId\DC2\US\n\+ \\vfunding_amt\CAN\EOT \SOH(\EOTR\n\+ \fundingAmt\DC2\EM\n\+ \\bpush_amt\CAN\ENQ \SOH(\EOTR\apushAmt\DC2\GS\n\+ \\n\+ \dust_limit\CAN\ACK \SOH(\EOTR\tdustLimit\DC2-\n\+ \\DC3max_value_in_flight\CAN\a \SOH(\EOTR\DLEmaxValueInFlight\DC2'\n\+ \\SIchannel_reserve\CAN\b \SOH(\EOTR\SOchannelReserve\DC2\EM\n\+ \\bmin_htlc\CAN\t \SOH(\EOTR\aminHtlc\DC2\FS\n\+ \\n\+ \fee_per_kw\CAN\n\+ \ \SOH(\EOTR\bfeePerKw\DC2\ESC\n\+ \\tcsv_delay\CAN\v \SOH(\rR\bcsvDelay\DC2,\n\+ \\DC2max_accepted_htlcs\CAN\f \SOH(\rR\DLEmaxAcceptedHtlcs\DC2#\n\+ \\rchannel_flags\CAN\r \SOH(\rR\fchannelFlags\DC2>\n\+ \\SIcommitment_type\CAN\SO \SOH(\SO2\NAK.lnrpc.CommitmentTypeR\SOcommitmentType\"\243\STX\n\+ \\NAKChannelAcceptResponse\DC2\SYN\n\+ \\ACKaccept\CAN\SOH \SOH(\bR\ACKaccept\DC2&\n\+ \\SIpending_chan_id\CAN\STX \SOH(\fR\rpendingChanId\DC2\DC4\n\+ \\ENQerror\CAN\ETX \SOH(\tR\ENQerror\DC2)\n\+ \\DLEupfront_shutdown\CAN\EOT \SOH(\tR\SIupfrontShutdown\DC2\ESC\n\+ \\tcsv_delay\CAN\ENQ \SOH(\rR\bcsvDelay\DC2\US\n\+ \\vreserve_sat\CAN\ACK \SOH(\EOTR\n\+ \reserveSat\DC2+\n\+ \\DC2in_flight_max_msat\CAN\a \SOH(\EOTR\SIinFlightMaxMsat\DC2$\n\+ \\SOmax_htlc_count\CAN\b \SOH(\rR\fmaxHtlcCount\DC2\RS\n\+ \\vmin_htlc_in\CAN\t \SOH(\EOTR\tminHtlcIn\DC2(\n\+ \\DLEmin_accept_depth\CAN\n\+ \ \SOH(\rR\SOminAcceptDepth\">\n\+ \\DLELightningAddress\DC2\SYN\n\+ \\ACKpubkey\CAN\SOH \SOH(\tR\ACKpubkey\DC2\DC2\n\+ \\EOThost\CAN\STX \SOH(\tR\EOThost\"\145\STX\n\+ \\DC2EstimateFeeRequest\DC2O\n\+ \\fAddrToAmount\CAN\SOH \ETX(\v2+.lnrpc.EstimateFeeRequest.AddrToAmountEntryR\fAddrToAmount\DC2\US\n\+ \\vtarget_conf\CAN\STX \SOH(\ENQR\n\+ \targetConf\DC2\ESC\n\+ \\tmin_confs\CAN\ETX \SOH(\ENQR\bminConfs\DC2+\n\+ \\DC1spend_unconfirmed\CAN\EOT \SOH(\bR\DLEspendUnconfirmed\SUB?\n\+ \\DC1AddrToAmountEntry\DC2\DLE\n\+ \\ETXkey\CAN\SOH \SOH(\tR\ETXkey\DC2\DC4\n\+ \\ENQvalue\CAN\STX \SOH(\ETXR\ENQvalue:\STX8\SOH\"\135\SOH\n\+ \\DC3EstimateFeeResponse\DC2\ETB\n\+ \\afee_sat\CAN\SOH \SOH(\ETXR\ACKfeeSat\DC23\n\+ \\DC4feerate_sat_per_byte\CAN\STX \SOH(\ETXR\DC1feerateSatPerByteB\STX\CAN\SOH\DC2\"\n\+ \\rsat_per_vbyte\CAN\ETX \SOH(\EOTR\vsatPerVbyte\"\235\STX\n\+ \\SISendManyRequest\DC2L\n\+ \\fAddrToAmount\CAN\SOH \ETX(\v2(.lnrpc.SendManyRequest.AddrToAmountEntryR\fAddrToAmount\DC2\US\n\+ \\vtarget_conf\CAN\ETX \SOH(\ENQR\n\+ \targetConf\DC2\"\n\+ \\rsat_per_vbyte\CAN\EOT \SOH(\EOTR\vsatPerVbyte\DC2$\n\+ \\fsat_per_byte\CAN\ENQ \SOH(\ETXR\n\+ \satPerByteB\STX\CAN\SOH\DC2\DC4\n\+ \\ENQlabel\CAN\ACK \SOH(\tR\ENQlabel\DC2\ESC\n\+ \\tmin_confs\CAN\a \SOH(\ENQR\bminConfs\DC2+\n\+ \\DC1spend_unconfirmed\CAN\b \SOH(\bR\DLEspendUnconfirmed\SUB?\n\+ \\DC1AddrToAmountEntry\DC2\DLE\n\+ \\ETXkey\CAN\SOH \SOH(\tR\ETXkey\DC2\DC4\n\+ \\ENQvalue\CAN\STX \SOH(\ETXR\ENQvalue:\STX8\SOH\"&\n\+ \\DLESendManyResponse\DC2\DC2\n\+ \\EOTtxid\CAN\SOH \SOH(\tR\EOTtxid\"\164\STX\n\+ \\DLESendCoinsRequest\DC2\DC2\n\+ \\EOTaddr\CAN\SOH \SOH(\tR\EOTaddr\DC2\SYN\n\+ \\ACKamount\CAN\STX \SOH(\ETXR\ACKamount\DC2\US\n\+ \\vtarget_conf\CAN\ETX \SOH(\ENQR\n\+ \targetConf\DC2\"\n\+ \\rsat_per_vbyte\CAN\EOT \SOH(\EOTR\vsatPerVbyte\DC2$\n\+ \\fsat_per_byte\CAN\ENQ \SOH(\ETXR\n\+ \satPerByteB\STX\CAN\SOH\DC2\EM\n\+ \\bsend_all\CAN\ACK \SOH(\bR\asendAll\DC2\DC4\n\+ \\ENQlabel\CAN\a \SOH(\tR\ENQlabel\DC2\ESC\n\+ \\tmin_confs\CAN\b \SOH(\ENQR\bminConfs\DC2+\n\+ \\DC1spend_unconfirmed\CAN\t \SOH(\bR\DLEspendUnconfirmed\"'\n\+ \\DC1SendCoinsResponse\DC2\DC2\n\+ \\EOTtxid\CAN\SOH \SOH(\tR\EOTtxid\"h\n\+ \\DC2ListUnspentRequest\DC2\ESC\n\+ \\tmin_confs\CAN\SOH \SOH(\ENQR\bminConfs\DC2\ESC\n\+ \\tmax_confs\CAN\STX \SOH(\ENQR\bmaxConfs\DC2\CAN\n\+ \\aaccount\CAN\ETX \SOH(\tR\aaccount\"8\n\+ \\DC3ListUnspentResponse\DC2!\n\+ \\ENQutxos\CAN\SOH \ETX(\v2\v.lnrpc.UtxoR\ENQutxos\"U\n\+ \\DC1NewAddressRequest\DC2&\n\+ \\EOTtype\CAN\SOH \SOH(\SO2\DC2.lnrpc.AddressTypeR\EOTtype\DC2\CAN\n\+ \\aaccount\CAN\STX \SOH(\tR\aaccount\".\n\+ \\DC2NewAddressResponse\DC2\CAN\n\+ \\aaddress\CAN\SOH \SOH(\tR\aaddress\"G\n\+ \\DC2SignMessageRequest\DC2\DLE\n\+ \\ETXmsg\CAN\SOH \SOH(\fR\ETXmsg\DC2\US\n\+ \\vsingle_hash\CAN\STX \SOH(\bR\n\+ \singleHash\"3\n\+ \\DC3SignMessageResponse\DC2\FS\n\+ \\tsignature\CAN\SOH \SOH(\tR\tsignature\"F\n\+ \\DC4VerifyMessageRequest\DC2\DLE\n\+ \\ETXmsg\CAN\SOH \SOH(\fR\ETXmsg\DC2\FS\n\+ \\tsignature\CAN\STX \SOH(\tR\tsignature\"E\n\+ \\NAKVerifyMessageResponse\DC2\DC4\n\+ \\ENQvalid\CAN\SOH \SOH(\bR\ENQvalid\DC2\SYN\n\+ \\ACKpubkey\CAN\STX \SOH(\tR\ACKpubkey\"o\n\+ \\DC2ConnectPeerRequest\DC2+\n\+ \\EOTaddr\CAN\SOH \SOH(\v2\ETB.lnrpc.LightningAddressR\EOTaddr\DC2\DC2\n\+ \\EOTperm\CAN\STX \SOH(\bR\EOTperm\DC2\CAN\n\+ \\atimeout\CAN\ETX \SOH(\EOTR\atimeout\"\NAK\n\+ \\DC3ConnectPeerResponse\"0\n\+ \\NAKDisconnectPeerRequest\DC2\ETB\n\+ \\apub_key\CAN\SOH \SOH(\tR\ACKpubKey\"\CAN\n\+ \\SYNDisconnectPeerResponse\"\179\SOH\n\+ \\DC3ListChannelsRequest\DC2\US\n\+ \\vactive_only\CAN\SOH \SOH(\bR\n\+ \activeOnly\DC2#\n\+ \\rinactive_only\CAN\STX \SOH(\bR\finactiveOnly\DC2\US\n\+ \\vpublic_only\CAN\ETX \SOH(\bR\n\+ \publicOnly\DC2!\n\+ \\fprivate_only\CAN\EOT \SOH(\bR\vprivateOnly\DC2\DC2\n\+ \\EOTpeer\CAN\ENQ \SOH(\fR\EOTpeer\"B\n\+ \\DC4ListChannelsResponse\DC2*\n\+ \\bchannels\CAN\v \ETX(\v2\SO.lnrpc.ChannelR\bchannels\"\222\SOH\n\+ \\NAKClosedChannelsRequest\DC2 \n\+ \\vcooperative\CAN\SOH \SOH(\bR\vcooperative\DC2\US\n\+ \\vlocal_force\CAN\STX \SOH(\bR\n\+ \localForce\DC2!\n\+ \\fremote_force\CAN\ETX \SOH(\bR\vremoteForce\DC2\SYN\n\+ \\ACKbreach\CAN\EOT \SOH(\bR\ACKbreach\DC2)\n\+ \\DLEfunding_canceled\CAN\ENQ \SOH(\bR\SIfundingCanceled\DC2\FS\n\+ \\tabandoned\CAN\ACK \SOH(\bR\tabandoned\"P\n\+ \\SYNClosedChannelsResponse\DC26\n\+ \\bchannels\CAN\SOH \ETX(\v2\SUB.lnrpc.ChannelCloseSummaryR\bchannels\"\139\ENQ\n\+ \\EOTPeer\DC2\ETB\n\+ \\apub_key\CAN\SOH \SOH(\tR\ACKpubKey\DC2\CAN\n\+ \\aaddress\CAN\ETX \SOH(\tR\aaddress\DC2\GS\n\+ \\n\+ \bytes_sent\CAN\EOT \SOH(\EOTR\tbytesSent\DC2\GS\n\+ \\n\+ \bytes_recv\CAN\ENQ \SOH(\EOTR\tbytesRecv\DC2\EM\n\+ \\bsat_sent\CAN\ACK \SOH(\ETXR\asatSent\DC2\EM\n\+ \\bsat_recv\CAN\a \SOH(\ETXR\asatRecv\DC2\CAN\n\+ \\ainbound\CAN\b \SOH(\bR\ainbound\DC2\ESC\n\+ \\tping_time\CAN\t \SOH(\ETXR\bpingTime\DC21\n\+ \\tsync_type\CAN\n\+ \ \SOH(\SO2\DC4.lnrpc.Peer.SyncTypeR\bsyncType\DC25\n\+ \\bfeatures\CAN\v \ETX(\v2\EM.lnrpc.Peer.FeaturesEntryR\bfeatures\DC2/\n\+ \\ACKerrors\CAN\f \ETX(\v2\ETB.lnrpc.TimestampedErrorR\ACKerrors\DC2\GS\n\+ \\n\+ \flap_count\CAN\r \SOH(\ENQR\tflapCount\DC2 \n\+ \\flast_flap_ns\CAN\SO \SOH(\ETXR\n\+ \lastFlapNs\DC2*\n\+ \\DC1last_ping_payload\CAN\SI \SOH(\fR\SIlastPingPayload\SUBK\n\+ \\rFeaturesEntry\DC2\DLE\n\+ \\ETXkey\CAN\SOH \SOH(\rR\ETXkey\DC2$\n\+ \\ENQvalue\CAN\STX \SOH(\v2\SO.lnrpc.FeatureR\ENQvalue:\STX8\SOH\"P\n\+ \\bSyncType\DC2\DLE\n\+ \\fUNKNOWN_SYNC\DLE\NUL\DC2\SI\n\+ \\vACTIVE_SYNC\DLE\SOH\DC2\DLE\n\+ \\fPASSIVE_SYNC\DLE\STX\DC2\SI\n\+ \\vPINNED_SYNC\DLE\ETX\"F\n\+ \\DLETimestampedError\DC2\FS\n\+ \\ttimestamp\CAN\SOH \SOH(\EOTR\ttimestamp\DC2\DC4\n\+ \\ENQerror\CAN\STX \SOH(\tR\ENQerror\"5\n\+ \\DLEListPeersRequest\DC2!\n\+ \\flatest_error\CAN\SOH \SOH(\bR\vlatestError\"6\n\+ \\DC1ListPeersResponse\DC2!\n\+ \\ENQpeers\CAN\SOH \ETX(\v2\v.lnrpc.PeerR\ENQpeers\"\ETB\n\+ \\NAKPeerEventSubscription\"\132\SOH\n\+ \\tPeerEvent\DC2\ETB\n\+ \\apub_key\CAN\SOH \SOH(\tR\ACKpubKey\DC2.\n\+ \\EOTtype\CAN\STX \SOH(\SO2\SUB.lnrpc.PeerEvent.EventTypeR\EOTtype\".\n\+ \\tEventType\DC2\SI\n\+ \\vPEER_ONLINE\DLE\NUL\DC2\DLE\n\+ \\fPEER_OFFLINE\DLE\SOH\"\DLE\n\+ \\SOGetInfoRequest\"\135\ACK\n\+ \\SIGetInfoResponse\DC2\CAN\n\+ \\aversion\CAN\SO \SOH(\tR\aversion\DC2\US\n\+ \\vcommit_hash\CAN\DC4 \SOH(\tR\n\+ \commitHash\DC2'\n\+ \\SIidentity_pubkey\CAN\SOH \SOH(\tR\SOidentityPubkey\DC2\DC4\n\+ \\ENQalias\CAN\STX \SOH(\tR\ENQalias\DC2\DC4\n\+ \\ENQcolor\CAN\DC1 \SOH(\tR\ENQcolor\DC20\n\+ \\DC4num_pending_channels\CAN\ETX \SOH(\rR\DC2numPendingChannels\DC2.\n\+ \\DC3num_active_channels\CAN\EOT \SOH(\rR\DC1numActiveChannels\DC22\n\+ \\NAKnum_inactive_channels\CAN\SI \SOH(\rR\DC3numInactiveChannels\DC2\ESC\n\+ \\tnum_peers\CAN\ENQ \SOH(\rR\bnumPeers\DC2!\n\+ \\fblock_height\CAN\ACK \SOH(\rR\vblockHeight\DC2\GS\n\+ \\n\+ \block_hash\CAN\b \SOH(\tR\tblockHash\DC22\n\+ \\NAKbest_header_timestamp\CAN\r \SOH(\ETXR\DC3bestHeaderTimestamp\DC2&\n\+ \\SIsynced_to_chain\CAN\t \SOH(\bR\rsyncedToChain\DC2&\n\+ \\SIsynced_to_graph\CAN\DC2 \SOH(\bR\rsyncedToGraph\DC2\FS\n\+ \\atestnet\CAN\n\+ \ \SOH(\bR\atestnetB\STX\CAN\SOH\DC2$\n\+ \\ACKchains\CAN\DLE \ETX(\v2\f.lnrpc.ChainR\ACKchains\DC2\DC2\n\+ \\EOTuris\CAN\f \ETX(\tR\EOTuris\DC2@\n\+ \\bfeatures\CAN\DC3 \ETX(\v2$.lnrpc.GetInfoResponse.FeaturesEntryR\bfeatures\SUBK\n\+ \\rFeaturesEntry\DC2\DLE\n\+ \\ETXkey\CAN\SOH \SOH(\rR\ETXkey\DC2$\n\+ \\ENQvalue\CAN\STX \SOH(\v2\SO.lnrpc.FeatureR\ENQvalue:\STX8\SOHJ\EOT\b\v\DLE\f\"\CAN\n\+ \\SYNGetRecoveryInfoRequest\"\135\SOH\n\+ \\ETBGetRecoveryInfoResponse\DC2#\n\+ \\rrecovery_mode\CAN\SOH \SOH(\bR\frecoveryMode\DC2+\n\+ \\DC1recovery_finished\CAN\STX \SOH(\bR\DLErecoveryFinished\DC2\SUB\n\+ \\bprogress\CAN\ETX \SOH(\SOHR\bprogress\"7\n\+ \\ENQChain\DC2\DC4\n\+ \\ENQchain\CAN\SOH \SOH(\tR\ENQchain\DC2\CAN\n\+ \\anetwork\CAN\STX \SOH(\tR\anetwork\"z\n\+ \\DC2ConfirmationUpdate\DC2\ESC\n\+ \\tblock_sha\CAN\SOH \SOH(\fR\bblockSha\DC2!\n\+ \\fblock_height\CAN\STX \SOH(\ENQR\vblockHeight\DC2$\n\+ \\SOnum_confs_left\CAN\ETX \SOH(\rR\fnumConfsLeft\"M\n\+ \\DC1ChannelOpenUpdate\DC28\n\+ \\rchannel_point\CAN\SOH \SOH(\v2\DC3.lnrpc.ChannelPointR\fchannelPoint\"Q\n\+ \\DC2ChannelCloseUpdate\DC2!\n\+ \\fclosing_txid\CAN\SOH \SOH(\fR\vclosingTxid\DC2\CAN\n\+ \\asuccess\CAN\STX \SOH(\bR\asuccess\"\251\SOH\n\+ \\DC3CloseChannelRequest\DC28\n\+ \\rchannel_point\CAN\SOH \SOH(\v2\DC3.lnrpc.ChannelPointR\fchannelPoint\DC2\DC4\n\+ \\ENQforce\CAN\STX \SOH(\bR\ENQforce\DC2\US\n\+ \\vtarget_conf\CAN\ETX \SOH(\ENQR\n\+ \targetConf\DC2$\n\+ \\fsat_per_byte\CAN\EOT \SOH(\ETXR\n\+ \satPerByteB\STX\CAN\SOH\DC2)\n\+ \\DLEdelivery_address\CAN\ENQ \SOH(\tR\SIdeliveryAddress\DC2\"\n\+ \\rsat_per_vbyte\CAN\ACK \SOH(\EOTR\vsatPerVbyte\"\150\SOH\n\+ \\DC1CloseStatusUpdate\DC2;\n\+ \\rclose_pending\CAN\SOH \SOH(\v2\DC4.lnrpc.PendingUpdateH\NULR\fclosePending\DC2:\n\+ \\n\+ \chan_close\CAN\ETX \SOH(\v2\EM.lnrpc.ChannelCloseUpdateH\NULR\tchanCloseB\b\n\+ \\ACKupdate\"y\n\+ \\DC3ReadyForPsbtFunding\DC2'\n\+ \\SIfunding_address\CAN\SOH \SOH(\tR\SOfundingAddress\DC2%\n\+ \\SOfunding_amount\CAN\STX \SOH(\ETXR\rfundingAmount\DC2\DC2\n\+ \\EOTpsbt\CAN\ETX \SOH(\fR\EOTpsbt\"\243\SOH\n\+ \\ETBBatchOpenChannelRequest\DC23\n\+ \\bchannels\CAN\SOH \ETX(\v2\ETB.lnrpc.BatchOpenChannelR\bchannels\DC2\US\n\+ \\vtarget_conf\CAN\STX \SOH(\ENQR\n\+ \targetConf\DC2\"\n\+ \\rsat_per_vbyte\CAN\ETX \SOH(\ETXR\vsatPerVbyte\DC2\ESC\n\+ \\tmin_confs\CAN\EOT \SOH(\ENQR\bminConfs\DC2+\n\+ \\DC1spend_unconfirmed\CAN\ENQ \SOH(\bR\DLEspendUnconfirmed\DC2\DC4\n\+ \\ENQlabel\CAN\ACK \SOH(\tR\ENQlabel\"\245\STX\n\+ \\DLEBatchOpenChannel\DC2\US\n\+ \\vnode_pubkey\CAN\SOH \SOH(\fR\n\+ \nodePubkey\DC20\n\+ \\DC4local_funding_amount\CAN\STX \SOH(\ETXR\DC2localFundingAmount\DC2\EM\n\+ \\bpush_sat\CAN\ETX \SOH(\ETXR\apushSat\DC2\CAN\n\+ \\aprivate\CAN\EOT \SOH(\bR\aprivate\DC2\"\n\+ \\rmin_htlc_msat\CAN\ENQ \SOH(\ETXR\vminHtlcMsat\DC2(\n\+ \\DLEremote_csv_delay\CAN\ACK \SOH(\rR\SOremoteCsvDelay\DC2#\n\+ \\rclose_address\CAN\a \SOH(\tR\fcloseAddress\DC2&\n\+ \\SIpending_chan_id\CAN\b \SOH(\fR\rpendingChanId\DC2>\n\+ \\SIcommitment_type\CAN\t \SOH(\SO2\NAK.lnrpc.CommitmentTypeR\SOcommitmentType\"[\n\+ \\CANBatchOpenChannelResponse\DC2?\n\+ \\DLEpending_channels\CAN\SOH \ETX(\v2\DC4.lnrpc.PendingUpdateR\SIpendingChannels\"\128\ACK\n\+ \\DC2OpenChannelRequest\DC2\"\n\+ \\rsat_per_vbyte\CAN\SOH \SOH(\EOTR\vsatPerVbyte\DC2\US\n\+ \\vnode_pubkey\CAN\STX \SOH(\fR\n\+ \nodePubkey\DC20\n\+ \\DC2node_pubkey_string\CAN\ETX \SOH(\tR\DLEnodePubkeyStringB\STX\CAN\SOH\DC20\n\+ \\DC4local_funding_amount\CAN\EOT \SOH(\ETXR\DC2localFundingAmount\DC2\EM\n\+ \\bpush_sat\CAN\ENQ \SOH(\ETXR\apushSat\DC2\US\n\+ \\vtarget_conf\CAN\ACK \SOH(\ENQR\n\+ \targetConf\DC2$\n\+ \\fsat_per_byte\CAN\a \SOH(\ETXR\n\+ \satPerByteB\STX\CAN\SOH\DC2\CAN\n\+ \\aprivate\CAN\b \SOH(\bR\aprivate\DC2\"\n\+ \\rmin_htlc_msat\CAN\t \SOH(\ETXR\vminHtlcMsat\DC2(\n\+ \\DLEremote_csv_delay\CAN\n\+ \ \SOH(\rR\SOremoteCsvDelay\DC2\ESC\n\+ \\tmin_confs\CAN\v \SOH(\ENQR\bminConfs\DC2+\n\+ \\DC1spend_unconfirmed\CAN\f \SOH(\bR\DLEspendUnconfirmed\DC2#\n\+ \\rclose_address\CAN\r \SOH(\tR\fcloseAddress\DC25\n\+ \\ffunding_shim\CAN\SO \SOH(\v2\DC2.lnrpc.FundingShimR\vfundingShim\DC2C\n\+ \\USremote_max_value_in_flight_msat\CAN\SI \SOH(\EOTR\SUBremoteMaxValueInFlightMsat\DC2(\n\+ \\DLEremote_max_htlcs\CAN\DLE \SOH(\rR\SOremoteMaxHtlcs\DC2\"\n\+ \\rmax_local_csv\CAN\DC1 \SOH(\rR\vmaxLocalCsv\DC2>\n\+ \\SIcommitment_type\CAN\DC2 \SOH(\SO2\NAK.lnrpc.CommitmentTypeR\SOcommitmentType\"\243\SOH\n\+ \\DLEOpenStatusUpdate\DC29\n\+ \\fchan_pending\CAN\SOH \SOH(\v2\DC4.lnrpc.PendingUpdateH\NULR\vchanPending\DC27\n\+ \\tchan_open\CAN\ETX \SOH(\v2\CAN.lnrpc.ChannelOpenUpdateH\NULR\bchanOpen\DC29\n\+ \\tpsbt_fund\CAN\ENQ \SOH(\v2\SUB.lnrpc.ReadyForPsbtFundingH\NULR\bpsbtFund\DC2&\n\+ \\SIpending_chan_id\CAN\EOT \SOH(\fR\rpendingChanIdB\b\n\+ \\ACKupdate*}\n\+ \\vAddressType\DC2\ETB\n\+ \\DC3WITNESS_PUBKEY_HASH\DLE\NUL\DC2\SYN\n\+ \\DC2NESTED_PUBKEY_HASH\DLE\SOH\DC2\RS\n\+ \\SUBUNUSED_WITNESS_PUBKEY_HASH\DLE\STX\DC2\GS\n\+ \\EMUNUSED_NESTED_PUBKEY_HASH\DLE\ETX2\201%\n\+ \\tLightning\DC2J\n\+ \\rWalletBalance\DC2\ESC.lnrpc.WalletBalanceRequest\SUB\FS.lnrpc.WalletBalanceResponse\DC2M\n\+ \\SOChannelBalance\DC2\FS.lnrpc.ChannelBalanceRequest\SUB\GS.lnrpc.ChannelBalanceResponse\DC2K\n\+ \\SIGetTransactions\DC2\GS.lnrpc.GetTransactionsRequest\SUB\EM.lnrpc.TransactionDetails\DC2D\n\+ \\vEstimateFee\DC2\EM.lnrpc.EstimateFeeRequest\SUB\SUB.lnrpc.EstimateFeeResponse\DC2>\n\+ \\tSendCoins\DC2\ETB.lnrpc.SendCoinsRequest\SUB\CAN.lnrpc.SendCoinsResponse\DC2D\n\+ \\vListUnspent\DC2\EM.lnrpc.ListUnspentRequest\SUB\SUB.lnrpc.ListUnspentResponse\DC2L\n\+ \\NAKSubscribeTransactions\DC2\GS.lnrpc.GetTransactionsRequest\SUB\DC2.lnrpc.Transaction0\SOH\DC2;\n\+ \\bSendMany\DC2\SYN.lnrpc.SendManyRequest\SUB\ETB.lnrpc.SendManyResponse\DC2A\n\+ \\n\+ \NewAddress\DC2\CAN.lnrpc.NewAddressRequest\SUB\EM.lnrpc.NewAddressResponse\DC2D\n\+ \\vSignMessage\DC2\EM.lnrpc.SignMessageRequest\SUB\SUB.lnrpc.SignMessageResponse\DC2J\n\+ \\rVerifyMessage\DC2\ESC.lnrpc.VerifyMessageRequest\SUB\FS.lnrpc.VerifyMessageResponse\DC2D\n\+ \\vConnectPeer\DC2\EM.lnrpc.ConnectPeerRequest\SUB\SUB.lnrpc.ConnectPeerResponse\DC2M\n\+ \\SODisconnectPeer\DC2\FS.lnrpc.DisconnectPeerRequest\SUB\GS.lnrpc.DisconnectPeerResponse\DC2>\n\+ \\tListPeers\DC2\ETB.lnrpc.ListPeersRequest\SUB\CAN.lnrpc.ListPeersResponse\DC2G\n\+ \\DC3SubscribePeerEvents\DC2\FS.lnrpc.PeerEventSubscription\SUB\DLE.lnrpc.PeerEvent0\SOH\DC28\n\+ \\aGetInfo\DC2\NAK.lnrpc.GetInfoRequest\SUB\SYN.lnrpc.GetInfoResponse\DC2P\n\+ \\SIGetRecoveryInfo\DC2\GS.lnrpc.GetRecoveryInfoRequest\SUB\RS.lnrpc.GetRecoveryInfoResponse\DC2P\n\+ \\SIPendingChannels\DC2\GS.lnrpc.PendingChannelsRequest\SUB\RS.lnrpc.PendingChannelsResponse\DC2G\n\+ \\fListChannels\DC2\SUB.lnrpc.ListChannelsRequest\SUB\ESC.lnrpc.ListChannelsResponse\DC2V\n\+ \\SYNSubscribeChannelEvents\DC2\US.lnrpc.ChannelEventSubscription\SUB\EM.lnrpc.ChannelEventUpdate0\SOH\DC2M\n\+ \\SOClosedChannels\DC2\FS.lnrpc.ClosedChannelsRequest\SUB\GS.lnrpc.ClosedChannelsResponse\DC2A\n\+ \\SIOpenChannelSync\DC2\EM.lnrpc.OpenChannelRequest\SUB\DC3.lnrpc.ChannelPoint\DC2C\n\+ \\vOpenChannel\DC2\EM.lnrpc.OpenChannelRequest\SUB\ETB.lnrpc.OpenStatusUpdate0\SOH\DC2S\n\+ \\DLEBatchOpenChannel\DC2\RS.lnrpc.BatchOpenChannelRequest\SUB\US.lnrpc.BatchOpenChannelResponse\DC2L\n\+ \\DLEFundingStateStep\DC2\ESC.lnrpc.FundingTransitionMsg\SUB\ESC.lnrpc.FundingStateStepResp\DC2P\n\+ \\SIChannelAcceptor\DC2\FS.lnrpc.ChannelAcceptResponse\SUB\ESC.lnrpc.ChannelAcceptRequest(\SOH0\SOH\DC2F\n\+ \\fCloseChannel\DC2\SUB.lnrpc.CloseChannelRequest\SUB\CAN.lnrpc.CloseStatusUpdate0\SOH\DC2M\n\+ \\SOAbandonChannel\DC2\FS.lnrpc.AbandonChannelRequest\SUB\GS.lnrpc.AbandonChannelResponse\DC2?\n\+ \\vSendPayment\DC2\DC2.lnrpc.SendRequest\SUB\DC3.lnrpc.SendResponse\"\ETX\136\STX\SOH(\SOH0\SOH\DC2:\n\+ \\SISendPaymentSync\DC2\DC2.lnrpc.SendRequest\SUB\DC3.lnrpc.SendResponse\DC2F\n\+ \\vSendToRoute\DC2\EM.lnrpc.SendToRouteRequest\SUB\DC3.lnrpc.SendResponse\"\ETX\136\STX\SOH(\SOH0\SOH\DC2A\n\+ \\SISendToRouteSync\DC2\EM.lnrpc.SendToRouteRequest\SUB\DC3.lnrpc.SendResponse\DC27\n\+ \\n\+ \AddInvoice\DC2\SO.lnrpc.Invoice\SUB\EM.lnrpc.AddInvoiceResponse\DC2E\n\+ \\fListInvoices\DC2\EM.lnrpc.ListInvoiceRequest\SUB\SUB.lnrpc.ListInvoiceResponse\DC23\n\+ \\rLookupInvoice\DC2\DC2.lnrpc.PaymentHash\SUB\SO.lnrpc.Invoice\DC2A\n\+ \\DC1SubscribeInvoices\DC2\SUB.lnrpc.InvoiceSubscription\SUB\SO.lnrpc.Invoice0\SOH\DC22\n\+ \\fDecodePayReq\DC2\DC3.lnrpc.PayReqString\SUB\r.lnrpc.PayReq\DC2G\n\+ \\fListPayments\DC2\SUB.lnrpc.ListPaymentsRequest\SUB\ESC.lnrpc.ListPaymentsResponse\DC2J\n\+ \\rDeletePayment\DC2\ESC.lnrpc.DeletePaymentRequest\SUB\FS.lnrpc.DeletePaymentResponse\DC2V\n\+ \\DC1DeleteAllPayments\DC2\US.lnrpc.DeleteAllPaymentsRequest\SUB .lnrpc.DeleteAllPaymentsResponse\DC2@\n\+ \\rDescribeGraph\DC2\SUB.lnrpc.ChannelGraphRequest\SUB\DC3.lnrpc.ChannelGraph\DC2G\n\+ \\SOGetNodeMetrics\DC2\EM.lnrpc.NodeMetricsRequest\SUB\SUB.lnrpc.NodeMetricsResponse\DC29\n\+ \\vGetChanInfo\DC2\SYN.lnrpc.ChanInfoRequest\SUB\DC2.lnrpc.ChannelEdge\DC26\n\+ \\vGetNodeInfo\DC2\SYN.lnrpc.NodeInfoRequest\SUB\SI.lnrpc.NodeInfo\DC2D\n\+ \\vQueryRoutes\DC2\EM.lnrpc.QueryRoutesRequest\SUB\SUB.lnrpc.QueryRoutesResponse\DC2?\n\+ \\SOGetNetworkInfo\DC2\EM.lnrpc.NetworkInfoRequest\SUB\DC2.lnrpc.NetworkInfo\DC25\n\+ \\n\+ \StopDaemon\DC2\DC2.lnrpc.StopRequest\SUB\DC3.lnrpc.StopResponse\DC2W\n\+ \\NAKSubscribeChannelGraph\DC2 .lnrpc.GraphTopologySubscription\SUB\SUB.lnrpc.GraphTopologyUpdate0\SOH\DC2A\n\+ \\n\+ \DebugLevel\DC2\CAN.lnrpc.DebugLevelRequest\SUB\EM.lnrpc.DebugLevelResponse\DC2>\n\+ \\tFeeReport\DC2\ETB.lnrpc.FeeReportRequest\SUB\CAN.lnrpc.FeeReportResponse\DC2N\n\+ \\DC3UpdateChannelPolicy\DC2\SUB.lnrpc.PolicyUpdateRequest\SUB\ESC.lnrpc.PolicyUpdateResponse\DC2V\n\+ \\DC1ForwardingHistory\DC2\US.lnrpc.ForwardingHistoryRequest\SUB .lnrpc.ForwardingHistoryResponse\DC2N\n\+ \\DC3ExportChannelBackup\DC2!.lnrpc.ExportChannelBackupRequest\SUB\DC4.lnrpc.ChannelBackup\DC2T\n\+ \\ETBExportAllChannelBackups\DC2\RS.lnrpc.ChanBackupExportRequest\SUB\EM.lnrpc.ChanBackupSnapshot\DC2N\n\+ \\DLEVerifyChanBackup\DC2\EM.lnrpc.ChanBackupSnapshot\SUB\US.lnrpc.VerifyChanBackupResponse\DC2V\n\+ \\NAKRestoreChannelBackups\DC2\US.lnrpc.RestoreChanBackupRequest\SUB\FS.lnrpc.RestoreBackupResponse\DC2X\n\+ \\ETBSubscribeChannelBackups\DC2 .lnrpc.ChannelBackupSubscription\SUB\EM.lnrpc.ChanBackupSnapshot0\SOH\DC2G\n\+ \\fBakeMacaroon\DC2\SUB.lnrpc.BakeMacaroonRequest\SUB\ESC.lnrpc.BakeMacaroonResponse\DC2P\n\+ \\SIListMacaroonIDs\DC2\GS.lnrpc.ListMacaroonIDsRequest\SUB\RS.lnrpc.ListMacaroonIDsResponse\DC2S\n\+ \\DLEDeleteMacaroonID\DC2\RS.lnrpc.DeleteMacaroonIDRequest\SUB\US.lnrpc.DeleteMacaroonIDResponse\DC2P\n\+ \\SIListPermissions\DC2\GS.lnrpc.ListPermissionsRequest\SUB\RS.lnrpc.ListPermissionsResponse\DC2S\n\+ \\CANCheckMacaroonPermissions\DC2\SUB.lnrpc.CheckMacPermRequest\SUB\ESC.lnrpc.CheckMacPermResponse\DC2V\n\+ \\NAKRegisterRPCMiddleware\DC2\FS.lnrpc.RPCMiddlewareResponse\SUB\ESC.lnrpc.RPCMiddlewareRequest(\SOH0\SOH\DC2V\n\+ \\DC1SendCustomMessage\DC2\US.lnrpc.SendCustomMessageRequest\SUB .lnrpc.SendCustomMessageResponse\DC2X\n\+ \\ETBSubscribeCustomMessages\DC2%.lnrpc.SubscribeCustomMessagesRequest\SUB\DC4.lnrpc.CustomMessage0\SOHB'Z%github.com/lightningnetwork/lnd/lnrpcJ\217\201\ETX\n\+ \\a\DC2\ENQ\NUL\NUL\247\f\SOH\n\+ \\b\n\+ \\SOH\f\DC2\ETX\NUL\NUL\DC2\n\+ \\t\n\+ \\STX\ETX\NUL\DC2\ETX\STX\NUL\EM\n\+ \\t\n\+ \\STX\ETX\SOH\DC2\ETX\ETX\NUL\EM\n\+ \\b\n\+ \\SOH\STX\DC2\ETX\ENQ\NUL\SO\n\+ \\b\n\+ \\SOH\b\DC2\ETX\a\NUL<\n\+ \\t\n\+ \\STX\b\v\DC2\ETX\a\NUL<\n\+ \\228\ENQ\n\+ \\STX\ACK\NUL\DC2\ENQ\FS\NUL\191\EOT\SOH\SUB1 Lightning is the main RPC server of the daemon.\n\+ \2\163\ENQ\n\+ \ Comments in this file will be directly parsed into the API\n\+ \ Documentation as descriptions of the associated method, message, or field.\n\+ \ These descriptions should go right above the definition of the object, and\n\+ \ can be in either block or // comment format.\n\+ \\n\+ \ An RPC method can be matched to an lncli command by placing a line in the\n\+ \ beginning of the description in exactly the following format:\n\+ \ lncli: `methodname`\n\+ \\n\+ \ Failure to specify the exact name of the command will cause documentation\n\+ \ generation to fail.\n\+ \\n\+ \ More information on how exactly the gRPC documentation is generated from\n\+ \ this proto file can be found here:\n\+ \ https://github.com/lightninglabs/lightning-api\n\+ \\n\+ \\n\+ \\n\+ \\ETX\ACK\NUL\SOH\DC2\ETX\FS\b\DC1\n\+ \\205\SOH\n\+ \\EOT\ACK\NUL\STX\NUL\DC2\ETX\"\EOTM\SUB\191\SOH lncli: `walletbalance`\n\+ \WalletBalance returns total unspent outputs(confirmed and unconfirmed), all\n\+ \confirmed unspent outputs and all unconfirmed unspent outputs under control\n\+ \of the wallet.\n\+ \\n\+ \\f\n\+ \\ENQ\ACK\NUL\STX\NUL\SOH\DC2\ETX\"\b\NAK\n\+ \\f\n\+ \\ENQ\ACK\NUL\STX\NUL\STX\DC2\ETX\"\ETB+\n\+ \\f\n\+ \\ENQ\ACK\NUL\STX\NUL\ETX\DC2\ETX\"6K\n\+ \\203\SOH\n\+ \\EOT\ACK\NUL\STX\SOH\DC2\ETX)\EOTP\SUB\189\SOH lncli: `channelbalance`\n\+ \ChannelBalance returns a report on the total funds across all open channels,\n\+ \categorized in local/remote, pending local/remote and unsettled local/remote\n\+ \balances.\n\+ \\n\+ \\f\n\+ \\ENQ\ACK\NUL\STX\SOH\SOH\DC2\ETX)\b\SYN\n\+ \\f\n\+ \\ENQ\ACK\NUL\STX\SOH\STX\DC2\ETX)\CAN-\n\+ \\f\n\+ \\ENQ\ACK\NUL\STX\SOH\ETX\DC2\ETX)8N\n\+ \\130\SOH\n\+ \\EOT\ACK\NUL\STX\STX\DC2\ETX/\EOTN\SUBu lncli: `listchaintxns`\n\+ \GetTransactions returns a list describing all the known transactions\n\+ \relevant to the wallet.\n\+ \\n\+ \\f\n\+ \\ENQ\ACK\NUL\STX\STX\SOH\DC2\ETX/\b\ETB\n\+ \\f\n\+ \\ENQ\ACK\NUL\STX\STX\STX\DC2\ETX/\EM/\n\+ \\f\n\+ \\ENQ\ACK\NUL\STX\STX\ETX\DC2\ETX/:L\n\+ \\159\ETX\n\+ \\EOT\ACK\NUL\STX\ETX\DC2\ETX:\EOTG\SUB\145\ETX lncli: `estimatefee`\n\+ \EstimateFee asks the chain backend to estimate the fee rate and total fees\n\+ \for a transaction that pays to multiple specified outputs.\n\+ \\n\+ \When using REST, the `AddrToAmount` map type can be set by appending\n\+ \`&AddrToAmount[<address>]=<amount_to_send>` to the URL. Unfortunately this\n\+ \map type doesn't appear in the REST API documentation because of a bug in\n\+ \the grpc-gateway library.\n\+ \\n\+ \\f\n\+ \\ENQ\ACK\NUL\STX\ETX\SOH\DC2\ETX:\b\DC3\n\+ \\f\n\+ \\ENQ\ACK\NUL\STX\ETX\STX\DC2\ETX:\NAK'\n\+ \\f\n\+ \\ENQ\ACK\NUL\STX\ETX\ETX\DC2\ETX:2E\n\+ \\211\STX\n\+ \\EOT\ACK\NUL\STX\EOT\DC2\ETXC\EOTA\SUB\197\STX lncli: `sendcoins`\n\+ \SendCoins executes a request to send coins to a particular address. Unlike\n\+ \SendMany, this RPC call only allows creating a single output at a time. If\n\+ \neither target_conf, or sat_per_vbyte are set, then the internal wallet will\n\+ \consult its fee model to determine a fee for the default confirmation\n\+ \target.\n\+ \\n\+ \\f\n\+ \\ENQ\ACK\NUL\STX\EOT\SOH\DC2\ETXC\b\DC1\n\+ \\f\n\+ \\ENQ\ACK\NUL\STX\EOT\STX\DC2\ETXC\DC3#\n\+ \\f\n\+ \\ENQ\ACK\NUL\STX\EOT\ETX\DC2\ETXC.?\n\+ \\222\SOH\n\+ \\EOT\ACK\NUL\STX\ENQ\DC2\ETXK\EOTG\SUB\208\SOH lncli: `listunspent`\n\+ \Deprecated, use walletrpc.ListUnspent instead.\n\+ \\n\+ \ListUnspent returns a list of all utxos spendable by the wallet with a\n\+ \number of confirmations between the specified minimum and maximum.\n\+ \\n\+ \\f\n\+ \\ENQ\ACK\NUL\STX\ENQ\SOH\DC2\ETXK\b\DC3\n\+ \\f\n\+ \\ENQ\ACK\NUL\STX\ENQ\STX\DC2\ETXK\NAK'\n\+ \\f\n\+ \\ENQ\ACK\NUL\STX\ENQ\ETX\DC2\ETXK2E\n\+ \\182\SOH\n\+ \\EOT\ACK\NUL\STX\ACK\DC2\EOTR\EOTS%\SUB\167\SOH\n\+ \SubscribeTransactions creates a uni-directional stream from the server to\n\+ \the client in which any newly discovered transactions relevant to the\n\+ \wallet are sent over.\n\+ \\n\+ \\f\n\+ \\ENQ\ACK\NUL\STX\ACK\SOH\DC2\ETXR\b\GS\n\+ \\f\n\+ \\ENQ\ACK\NUL\STX\ACK\STX\DC2\ETXR\US5\n\+ \\f\n\+ \\ENQ\ACK\NUL\STX\ACK\ACK\DC2\ETXS\DC1\ETB\n\+ \\f\n\+ \\ENQ\ACK\NUL\STX\ACK\ETX\DC2\ETXS\CAN#\n\+ \\161\STX\n\+ \\EOT\ACK\NUL\STX\a\DC2\ETX[\EOT>\SUB\147\STX lncli: `sendmany`\n\+ \SendMany handles a request for a transaction that creates multiple specified\n\+ \outputs in parallel. If neither target_conf, or sat_per_vbyte are set, then\n\+ \the internal wallet will consult its fee model to determine a fee for the\n\+ \default confirmation target.\n\+ \\n\+ \\f\n\+ \\ENQ\ACK\NUL\STX\a\SOH\DC2\ETX[\b\DLE\n\+ \\f\n\+ \\ENQ\ACK\NUL\STX\a\STX\DC2\ETX[\DC2!\n\+ \\f\n\+ \\ENQ\ACK\NUL\STX\a\ETX\DC2\ETX[,<\n\+ \f\n\+ \\EOT\ACK\NUL\STX\b\DC2\ETX`\EOTD\SUBY lncli: `newaddress`\n\+ \NewAddress creates a new address under control of the local wallet.\n\+ \\n\+ \\f\n\+ \\ENQ\ACK\NUL\STX\b\SOH\DC2\ETX`\b\DC2\n\+ \\f\n\+ \\ENQ\ACK\NUL\STX\b\STX\DC2\ETX`\DC4%\n\+ \\f\n\+ \\ENQ\ACK\NUL\STX\b\ETX\DC2\ETX`0B\n\+ \\249\SOH\n\+ \\EOT\ACK\NUL\STX\t\DC2\ETXg\EOTG\SUB\235\SOH lncli: `signmessage`\n\+ \SignMessage signs a message with this node's private key. The returned\n\+ \signature string is `zbase32` encoded and pubkey recoverable, meaning that\n\+ \only the message digest and signature are needed for verification.\n\+ \\n\+ \\f\n\+ \\ENQ\ACK\NUL\STX\t\SOH\DC2\ETXg\b\DC3\n\+ \\f\n\+ \\ENQ\ACK\NUL\STX\t\STX\DC2\ETXg\NAK'\n\+ \\f\n\+ \\ENQ\ACK\NUL\STX\t\ETX\DC2\ETXg2E\n\+ \\189\STX\n\+ \\EOT\ACK\NUL\STX\n\+ \\DC2\ETXo\EOTM\SUB\175\STX lncli: `verifymessage`\n\+ \VerifyMessage verifies a signature over a msg. The signature must be\n\+ \zbase32 encoded and signed by an active node in the resident node's\n\+ \channel database. In addition to returning the validity of the signature,\n\+ \VerifyMessage also returns the recovered pubkey from the signature.\n\+ \\n\+ \\f\n\+ \\ENQ\ACK\NUL\STX\n\+ \\SOH\DC2\ETXo\b\NAK\n\+ \\f\n\+ \\ENQ\ACK\NUL\STX\n\+ \\STX\DC2\ETXo\ETB+\n\+ \\f\n\+ \\ENQ\ACK\NUL\STX\n\+ \\ETX\DC2\ETXo6K\n\+ \\233\SOH\n\+ \\EOT\ACK\NUL\STX\v\DC2\ETXv\EOTG\SUB\219\SOH lncli: `connect`\n\+ \ConnectPeer attempts to establish a connection to a remote peer. This is at\n\+ \the networking level, and is used for communication between nodes. This is\n\+ \distinct from establishing a channel with a peer.\n\+ \\n\+ \\f\n\+ \\ENQ\ACK\NUL\STX\v\SOH\DC2\ETXv\b\DC3\n\+ \\f\n\+ \\ENQ\ACK\NUL\STX\v\STX\DC2\ETXv\NAK'\n\+ \\f\n\+ \\ENQ\ACK\NUL\STX\v\ETX\DC2\ETXv2E\n\+ \\251\SOH\n\+ \\EOT\ACK\NUL\STX\f\DC2\ETX}\EOTP\SUB\237\SOH lncli: `disconnect`\n\+ \DisconnectPeer attempts to disconnect one peer from another identified by a\n\+ \given pubKey. In the case that we currently have a pending or active channel\n\+ \with the target peer, then this action will be not be allowed.\n\+ \\n\+ \\f\n\+ \\ENQ\ACK\NUL\STX\f\SOH\DC2\ETX}\b\SYN\n\+ \\f\n\+ \\ENQ\ACK\NUL\STX\f\STX\DC2\ETX}\CAN-\n\+ \\f\n\+ \\ENQ\ACK\NUL\STX\f\ETX\DC2\ETX}8N\n\+ \e\n\+ \\EOT\ACK\NUL\STX\r\DC2\EOT\130\SOH\EOTA\SUBW lncli: `listpeers`\n\+ \ListPeers returns a verbose listing of all currently active peers.\n\+ \\n\+ \\r\n\+ \\ENQ\ACK\NUL\STX\r\SOH\DC2\EOT\130\SOH\b\DC1\n\+ \\r\n\+ \\ENQ\ACK\NUL\STX\r\STX\DC2\EOT\130\SOH\DC3#\n\+ \\r\n\+ \\ENQ\ACK\NUL\STX\r\ETX\DC2\EOT\130\SOH.?\n\+ \\212\SOH\n\+ \\EOT\ACK\NUL\STX\SO\DC2\EOT\137\SOH\EOTO\SUB\197\SOH\n\+ \SubscribePeerEvents creates a uni-directional stream from the server to\n\+ \the client in which any events relevant to the state of peers are sent\n\+ \over. Events include peers going online and offline.\n\+ \\n\+ \\r\n\+ \\ENQ\ACK\NUL\STX\SO\SOH\DC2\EOT\137\SOH\b\ESC\n\+ \\r\n\+ \\ENQ\ACK\NUL\STX\SO\STX\DC2\EOT\137\SOH\GS2\n\+ \\r\n\+ \\ENQ\ACK\NUL\STX\SO\ACK\DC2\EOT\137\SOH=C\n\+ \\r\n\+ \\ENQ\ACK\NUL\STX\SO\ETX\DC2\EOT\137\SOHDM\n\+ \\233\SOH\n\+ \\EOT\ACK\NUL\STX\SI\DC2\EOT\144\SOH\EOT;\SUB\218\SOH lncli: `getinfo`\n\+ \GetInfo returns general information concerning the lightning node including\n\+ \it's identity pubkey, alias, the chains it is connected to, and information\n\+ \concerning the number of open+pending channels.\n\+ \\n\+ \\r\n\+ \\ENQ\ACK\NUL\STX\SI\SOH\DC2\EOT\144\SOH\b\SI\n\+ \\r\n\+ \\ENQ\ACK\NUL\STX\SI\STX\DC2\EOT\144\SOH\DC1\US\n\+ \\r\n\+ \\ENQ\ACK\NUL\STX\SI\ETX\DC2\EOT\144\SOH*9\n\+ \\216\SOH\n\+ \\EOT\ACK\NUL\STX\DLE\DC2\ACK\151\SOH\EOT\152\SOH*\SUB\199\SOH* lncli: `getrecoveryinfo`\n\+ \GetRecoveryInfo returns information concerning the recovery mode including\n\+ \whether it's in a recovery mode, whether the recovery is finished, and the\n\+ \progress made so far.\n\+ \\n\+ \\r\n\+ \\ENQ\ACK\NUL\STX\DLE\SOH\DC2\EOT\151\SOH\b\ETB\n\+ \\r\n\+ \\ENQ\ACK\NUL\STX\DLE\STX\DC2\EOT\151\SOH\EM/\n\+ \\r\n\+ \\ENQ\ACK\NUL\STX\DLE\ETX\DC2\EOT\152\SOH\DC1(\n\+ \\255\STX\n\+ \\EOT\ACK\NUL\STX\DC1\DC2\ACK\161\SOH\EOT\162\SOH*\SUB\191\STX lncli: `pendingchannels`\n\+ \PendingChannels returns a list of all the channels that are currently\n\+ \considered \"pending\". A channel is pending if it has finished the funding\n\+ \workflow and is waiting for confirmations for the funding txn, or is in the\n\+ \process of closure, either initiated cooperatively or non-cooperatively.\n\+ \2- TODO(roasbeef): merge with below with bool?\n\+ \\n\+ \\r\n\+ \\ENQ\ACK\NUL\STX\DC1\SOH\DC2\EOT\161\SOH\b\ETB\n\+ \\r\n\+ \\ENQ\ACK\NUL\STX\DC1\STX\DC2\EOT\161\SOH\EM/\n\+ \\r\n\+ \\ENQ\ACK\NUL\STX\DC1\ETX\DC2\EOT\162\SOH\DC1(\n\+ \\133\SOH\n\+ \\EOT\ACK\NUL\STX\DC2\DC2\EOT\168\SOH\EOTJ\SUBw lncli: `listchannels`\n\+ \ListChannels returns a description of all the open channels that this node\n\+ \is a participant in.\n\+ \\n\+ \\r\n\+ \\ENQ\ACK\NUL\STX\DC2\SOH\DC2\EOT\168\SOH\b\DC4\n\+ \\r\n\+ \\ENQ\ACK\NUL\STX\DC2\STX\DC2\EOT\168\SOH\SYN)\n\+ \\r\n\+ \\ENQ\ACK\NUL\STX\DC2\ETX\DC2\EOT\168\SOH4H\n\+ \\254\SOH\n\+ \\EOT\ACK\NUL\STX\DC3\DC2\ACK\176\SOH\EOT\177\SOH,\SUB\237\SOH\n\+ \SubscribeChannelEvents creates a uni-directional stream from the server to\n\+ \the client in which any updates relevant to the state of the channels are\n\+ \sent over. Events include new active channels, inactive channels, and closed\n\+ \channels.\n\+ \\n\+ \\r\n\+ \\ENQ\ACK\NUL\STX\DC3\SOH\DC2\EOT\176\SOH\b\RS\n\+ \\r\n\+ \\ENQ\ACK\NUL\STX\DC3\STX\DC2\EOT\176\SOH 8\n\+ \\r\n\+ \\ENQ\ACK\NUL\STX\DC3\ACK\DC2\EOT\177\SOH\DC1\ETB\n\+ \\r\n\+ \\ENQ\ACK\NUL\STX\DC3\ETX\DC2\EOT\177\SOH\CAN*\n\+ \\140\SOH\n\+ \\EOT\ACK\NUL\STX\DC4\DC2\EOT\183\SOH\EOTP\SUB~ lncli: `closedchannels`\n\+ \ClosedChannels returns a description of all the closed channels that\n\+ \this node was a participant in.\n\+ \\n\+ \\r\n\+ \\ENQ\ACK\NUL\STX\DC4\SOH\DC2\EOT\183\SOH\b\SYN\n\+ \\r\n\+ \\ENQ\ACK\NUL\STX\DC4\STX\DC2\EOT\183\SOH\CAN-\n\+ \\r\n\+ \\ENQ\ACK\NUL\STX\DC4\ETX\DC2\EOT\183\SOH8N\n\+ \\249\SOH\n\+ \\EOT\ACK\NUL\STX\NAK\DC2\EOT\191\SOH\EOTD\SUB\234\SOH\n\+ \OpenChannelSync is a synchronous version of the OpenChannel RPC call. This\n\+ \call is meant to be consumed by clients to the REST proxy. As with all\n\+ \other sync calls, all byte slices are intended to be populated as hex\n\+ \encoded strings.\n\+ \\n\+ \\r\n\+ \\ENQ\ACK\NUL\STX\NAK\SOH\DC2\EOT\191\SOH\b\ETB\n\+ \\r\n\+ \\ENQ\ACK\NUL\STX\NAK\STX\DC2\EOT\191\SOH\EM+\n\+ \\r\n\+ \\ENQ\ACK\NUL\STX\NAK\ETX\DC2\EOT\191\SOH6B\n\+ \\219\EOT\n\+ \\EOT\ACK\NUL\STX\SYN\DC2\EOT\203\SOH\EOTK\SUB\204\EOT lncli: `openchannel`\n\+ \OpenChannel attempts to open a singly funded channel specified in the\n\+ \request to a remote peer. Users are able to specify a target number of\n\+ \blocks that the funding transaction should be confirmed in, or a manual fee\n\+ \rate to us for the funding transaction. If neither are specified, then a\n\+ \lax block confirmation target is used. Each OpenStatusUpdate will return\n\+ \the pending channel ID of the in-progress channel. Depending on the\n\+ \arguments specified in the OpenChannelRequest, this pending channel ID can\n\+ \then be used to manually progress the channel funding flow.\n\+ \\n\+ \\r\n\+ \\ENQ\ACK\NUL\STX\SYN\SOH\DC2\EOT\203\SOH\b\DC3\n\+ \\r\n\+ \\ENQ\ACK\NUL\STX\SYN\STX\DC2\EOT\203\SOH\NAK'\n\+ \\r\n\+ \\ENQ\ACK\NUL\STX\SYN\ACK\DC2\EOT\203\SOH28\n\+ \\r\n\+ \\ENQ\ACK\NUL\STX\SYN\ETX\DC2\EOT\203\SOH9I\n\+ \\240\STX\n\+ \\EOT\ACK\NUL\STX\ETB\DC2\ACK\212\SOH\EOT\213\SOH+\SUB\223\STX lncli: `batchopenchannel`\n\+ \BatchOpenChannel attempts to open multiple single-funded channels in a\n\+ \single transaction in an atomic way. This means either all channel open\n\+ \requests succeed at once or all attempts are aborted if any of them fail.\n\+ \This is the safer variant of using PSBTs to manually fund a batch of\n\+ \channels through the OpenChannel RPC.\n\+ \\n\+ \\r\n\+ \\ENQ\ACK\NUL\STX\ETB\SOH\DC2\EOT\212\SOH\b\CAN\n\+ \\r\n\+ \\ENQ\ACK\NUL\STX\ETB\STX\DC2\EOT\212\SOH\SUB1\n\+ \\r\n\+ \\ENQ\ACK\NUL\STX\ETB\ETX\DC2\EOT\213\SOH\DC1)\n\+ \\184\EOT\n\+ \\EOT\ACK\NUL\STX\CAN\DC2\EOT\225\SOH\EOTO\SUB\169\EOT\n\+ \FundingStateStep is an advanced funding related call that allows the caller\n\+ \to either execute some preparatory steps for a funding workflow, or\n\+ \manually progress a funding workflow. The primary way a funding flow is\n\+ \identified is via its pending channel ID. As an example, this method can be\n\+ \used to specify that we're expecting a funding flow for a particular\n\+ \pending channel ID, for which we need to use specific parameters.\n\+ \Alternatively, this can be used to interactively drive PSBT signing for\n\+ \funding for partially complete funding transactions.\n\+ \\n\+ \\r\n\+ \\ENQ\ACK\NUL\STX\CAN\SOH\DC2\EOT\225\SOH\b\CAN\n\+ \\r\n\+ \\ENQ\ACK\NUL\STX\CAN\STX\DC2\EOT\225\SOH\SUB.\n\+ \\r\n\+ \\ENQ\ACK\NUL\STX\CAN\ETX\DC2\EOT\225\SOH9M\n\+ \\221\STX\n\+ \\EOT\ACK\NUL\STX\EM\DC2\ACK\234\SOH\EOT\235\SOH.\SUB\204\STX\n\+ \ChannelAcceptor dispatches a bi-directional streaming RPC in which\n\+ \OpenChannel requests are sent to the client and the client responds with\n\+ \a boolean that tells LND whether or not to accept the channel. This allows\n\+ \node operators to specify their own criteria for accepting inbound channels\n\+ \through a single persistent connection.\n\+ \\n\+ \\r\n\+ \\ENQ\ACK\NUL\STX\EM\SOH\DC2\EOT\234\SOH\b\ETB\n\+ \\r\n\+ \\ENQ\ACK\NUL\STX\EM\ENQ\DC2\EOT\234\SOH\EM\US\n\+ \\r\n\+ \\ENQ\ACK\NUL\STX\EM\STX\DC2\EOT\234\SOH 5\n\+ \\r\n\+ \\ENQ\ACK\NUL\STX\EM\ACK\DC2\EOT\235\SOH\DC1\ETB\n\+ \\r\n\+ \\ENQ\ACK\NUL\STX\EM\ETX\DC2\EOT\235\SOH\CAN,\n\+ \\155\EOT\n\+ \\EOT\ACK\NUL\STX\SUB\DC2\EOT\246\SOH\EOTN\SUB\140\EOT lncli: `closechannel`\n\+ \CloseChannel attempts to close an active channel identified by its channel\n\+ \outpoint (ChannelPoint). The actions of this method can additionally be\n\+ \augmented to attempt a force close after a timeout period in the case of an\n\+ \inactive peer. If a non-force close (cooperative closure) is requested,\n\+ \then the user can specify either a target number of blocks until the\n\+ \closure transaction is confirmed, or a manual fee rate. If neither are\n\+ \specified, then a default lax, block confirmation target is used.\n\+ \\n\+ \\r\n\+ \\ENQ\ACK\NUL\STX\SUB\SOH\DC2\EOT\246\SOH\b\DC4\n\+ \\r\n\+ \\ENQ\ACK\NUL\STX\SUB\STX\DC2\EOT\246\SOH\SYN)\n\+ \\r\n\+ \\ENQ\ACK\NUL\STX\SUB\ACK\DC2\EOT\246\SOH4:\n\+ \\r\n\+ \\ENQ\ACK\NUL\STX\SUB\ETX\DC2\EOT\246\SOH;L\n\+ \\164\ETX\n\+ \\EOT\ACK\NUL\STX\ESC\DC2\EOT\128\STX\EOTP\SUB\149\ETX lncli: `abandonchannel`\n\+ \AbandonChannel removes all channel state from the database except for a\n\+ \close summary. This method can be used to get rid of permanently unusable\n\+ \channels due to bugs fixed in newer versions of lnd. This method can also be\n\+ \used to remove externally funded channels where the funding transaction was\n\+ \never broadcast. Only available for non-externally funded channels in dev\n\+ \build.\n\+ \\n\+ \\r\n\+ \\ENQ\ACK\NUL\STX\ESC\SOH\DC2\EOT\128\STX\b\SYN\n\+ \\r\n\+ \\ENQ\ACK\NUL\STX\ESC\STX\DC2\EOT\128\STX\CAN-\n\+ \\r\n\+ \\ENQ\ACK\NUL\STX\ESC\ETX\DC2\EOT\128\STX8N\n\+ \\234\STX\n\+ \\EOT\ACK\NUL\STX\FS\DC2\ACK\137\STX\EOT\139\STX\ENQ\SUB\217\STX lncli: `sendpayment`\n\+ \Deprecated, use routerrpc.SendPaymentV2. SendPayment dispatches a\n\+ \bi-directional streaming RPC for sending payments through the Lightning\n\+ \Network. A single RPC invocation creates a persistent bi-directional\n\+ \stream allowing clients to rapidly send payments through the Lightning\n\+ \Network with a single persistent connection.\n\+ \\n\+ \\r\n\+ \\ENQ\ACK\NUL\STX\FS\SOH\DC2\EOT\137\STX\b\DC3\n\+ \\r\n\+ \\ENQ\ACK\NUL\STX\FS\ENQ\DC2\EOT\137\STX\NAK\ESC\n\+ \\r\n\+ \\ENQ\ACK\NUL\STX\FS\STX\DC2\EOT\137\STX\FS'\n\+ \\r\n\+ \\ENQ\ACK\NUL\STX\FS\ACK\DC2\EOT\137\STX28\n\+ \\r\n\+ \\ENQ\ACK\NUL\STX\FS\ETX\DC2\EOT\137\STX9E\n\+ \\r\n\+ \\ENQ\ACK\NUL\STX\FS\EOT\DC2\EOT\138\STX\b!\n\+ \\SO\n\+ \\ACK\ACK\NUL\STX\FS\EOT!\DC2\EOT\138\STX\b!\n\+ \\147\STX\n\+ \\EOT\ACK\NUL\STX\GS\DC2\EOT\147\STX\EOT=\SUB\132\STX\n\+ \SendPaymentSync is the synchronous non-streaming version of SendPayment.\n\+ \This RPC is intended to be consumed by clients of the REST proxy.\n\+ \Additionally, this RPC expects the destination's public key and the payment\n\+ \hash (if any) to be encoded as hex strings.\n\+ \\n\+ \\r\n\+ \\ENQ\ACK\NUL\STX\GS\SOH\DC2\EOT\147\STX\b\ETB\n\+ \\r\n\+ \\ENQ\ACK\NUL\STX\GS\STX\DC2\EOT\147\STX\EM$\n\+ \\r\n\+ \\ENQ\ACK\NUL\STX\GS\ETX\DC2\EOT\147\STX/;\n\+ \\208\STX\n\+ \\EOT\ACK\NUL\STX\RS\DC2\ACK\156\STX\EOT\158\STX\ENQ\SUB\191\STX lncli: `sendtoroute`\n\+ \Deprecated, use routerrpc.SendToRouteV2. SendToRoute is a bi-directional\n\+ \streaming RPC for sending payment through the Lightning Network. This\n\+ \method differs from SendPayment in that it allows users to specify a full\n\+ \route manually. This can be used for things like rebalancing, and atomic\n\+ \swaps.\n\+ \\n\+ \\r\n\+ \\ENQ\ACK\NUL\STX\RS\SOH\DC2\EOT\156\STX\b\DC3\n\+ \\r\n\+ \\ENQ\ACK\NUL\STX\RS\ENQ\DC2\EOT\156\STX\NAK\ESC\n\+ \\r\n\+ \\ENQ\ACK\NUL\STX\RS\STX\DC2\EOT\156\STX\FS.\n\+ \\r\n\+ \\ENQ\ACK\NUL\STX\RS\ACK\DC2\EOT\156\STX9?\n\+ \\r\n\+ \\ENQ\ACK\NUL\STX\RS\ETX\DC2\EOT\156\STX@L\n\+ \\r\n\+ \\ENQ\ACK\NUL\STX\RS\EOT\DC2\EOT\157\STX\b!\n\+ \\SO\n\+ \\ACK\ACK\NUL\STX\RS\EOT!\DC2\EOT\157\STX\b!\n\+ \\130\SOH\n\+ \\EOT\ACK\NUL\STX\US\DC2\EOT\164\STX\EOTD\SUBt\n\+ \SendToRouteSync is a synchronous version of SendToRoute. It Will block\n\+ \until the payment either fails or succeeds.\n\+ \\n\+ \\r\n\+ \\ENQ\ACK\NUL\STX\US\SOH\DC2\EOT\164\STX\b\ETB\n\+ \\r\n\+ \\ENQ\ACK\NUL\STX\US\STX\DC2\EOT\164\STX\EM+\n\+ \\r\n\+ \\ENQ\ACK\NUL\STX\US\ETX\DC2\EOT\164\STX6B\n\+ \\202\SOH\n\+ \\EOT\ACK\NUL\STX \DC2\EOT\171\STX\EOT:\SUB\187\SOH lncli: `addinvoice`\n\+ \AddInvoice attempts to add a new invoice to the invoice database. Any\n\+ \duplicated invoices are rejected, therefore all invoices *must* have a\n\+ \unique payment preimage.\n\+ \\n\+ \\r\n\+ \\ENQ\ACK\NUL\STX \SOH\DC2\EOT\171\STX\b\DC2\n\+ \\r\n\+ \\ENQ\ACK\NUL\STX \STX\DC2\EOT\171\STX\DC4\ESC\n\+ \\r\n\+ \\ENQ\ACK\NUL\STX \ETX\DC2\EOT\171\STX&8\n\+ \\172\EOT\n\+ \\EOT\ACK\NUL\STX!\DC2\EOT\182\STX\EOTH\SUB\157\EOT lncli: `listinvoices`\n\+ \ListInvoices returns a list of all the invoices currently stored within the\n\+ \database. Any active debug invoices are ignored. It has full support for\n\+ \paginated responses, allowing users to query for specific invoices through\n\+ \their add_index. This can be done by using either the first_index_offset or\n\+ \last_index_offset fields included in the response as the index_offset of the\n\+ \next request. By default, the first 100 invoices created will be returned.\n\+ \Backwards pagination is also supported through the Reversed flag.\n\+ \\n\+ \\r\n\+ \\ENQ\ACK\NUL\STX!\SOH\DC2\EOT\182\STX\b\DC4\n\+ \\r\n\+ \\ENQ\ACK\NUL\STX!\STX\DC2\EOT\182\STX\SYN(\n\+ \\r\n\+ \\ENQ\ACK\NUL\STX!\ETX\DC2\EOT\182\STX3F\n\+ \\197\SOH\n\+ \\EOT\ACK\NUL\STX\"\DC2\EOT\189\STX\EOT6\SUB\182\SOH lncli: `lookupinvoice`\n\+ \LookupInvoice attempts to look up an invoice according to its payment hash.\n\+ \The passed payment hash *must* be exactly 32 bytes, if not, an error is\n\+ \returned.\n\+ \\n\+ \\r\n\+ \\ENQ\ACK\NUL\STX\"\SOH\DC2\EOT\189\STX\b\NAK\n\+ \\r\n\+ \\ENQ\ACK\NUL\STX\"\STX\DC2\EOT\189\STX\ETB\"\n\+ \\r\n\+ \\ENQ\ACK\NUL\STX\"\ETX\DC2\EOT\189\STX-4\n\+ \\247\EOT\n\+ \\EOT\ACK\NUL\STX#\DC2\EOT\202\STX\EOTI\SUB\232\EOT\n\+ \SubscribeInvoices returns a uni-directional stream (server -> client) for\n\+ \notifying the client of newly added/settled invoices. The caller can\n\+ \optionally specify the add_index and/or the settle_index. If the add_index\n\+ \is specified, then we'll first start by sending add invoice events for all\n\+ \invoices with an add_index greater than the specified value. If the\n\+ \settle_index is specified, the next, we'll send out all settle events for\n\+ \invoices with a settle_index greater than the specified value. One or both\n\+ \of these fields can be set. If no fields are set, then we'll only send out\n\+ \the latest add/settle events.\n\+ \\n\+ \\r\n\+ \\ENQ\ACK\NUL\STX#\SOH\DC2\EOT\202\STX\b\EM\n\+ \\r\n\+ \\ENQ\ACK\NUL\STX#\STX\DC2\EOT\202\STX\ESC.\n\+ \\r\n\+ \\ENQ\ACK\NUL\STX#\ACK\DC2\EOT\202\STX9?\n\+ \\r\n\+ \\ENQ\ACK\NUL\STX#\ETX\DC2\EOT\202\STX@G\n\+ \\201\SOH\n\+ \\EOT\ACK\NUL\STX$\DC2\EOT\209\STX\EOT5\SUB\186\SOH lncli: `decodepayreq`\n\+ \DecodePayReq takes an encoded payment request string and attempts to decode\n\+ \it, returning a full description of the conditions encoded within the\n\+ \payment request.\n\+ \\n\+ \\r\n\+ \\ENQ\ACK\NUL\STX$\SOH\DC2\EOT\209\STX\b\DC4\n\+ \\r\n\+ \\ENQ\ACK\NUL\STX$\STX\DC2\EOT\209\STX\SYN\"\n\+ \\r\n\+ \\ENQ\ACK\NUL\STX$\ETX\DC2\EOT\209\STX-3\n\+ \[\n\+ \\EOT\ACK\NUL\STX%\DC2\EOT\214\STX\EOTJ\SUBM lncli: `listpayments`\n\+ \ListPayments returns a list of all outgoing payments.\n\+ \\n\+ \\r\n\+ \\ENQ\ACK\NUL\STX%\SOH\DC2\EOT\214\STX\b\DC4\n\+ \\r\n\+ \\ENQ\ACK\NUL\STX%\STX\DC2\EOT\214\STX\SYN)\n\+ \\r\n\+ \\ENQ\ACK\NUL\STX%\ETX\DC2\EOT\214\STX4H\n\+ \\157\SOH\n\+ \\EOT\ACK\NUL\STX&\DC2\EOT\220\STX\EOTM\SUB\142\SOH\n\+ \DeletePayment deletes an outgoing payment from DB. Note that it will not\n\+ \attempt to delete an In-Flight payment, since that would be unsafe.\n\+ \\n\+ \\r\n\+ \\ENQ\ACK\NUL\STX&\SOH\DC2\EOT\220\STX\b\NAK\n\+ \\r\n\+ \\ENQ\ACK\NUL\STX&\STX\DC2\EOT\220\STX\ETB+\n\+ \\r\n\+ \\ENQ\ACK\NUL\STX&\ETX\DC2\EOT\220\STX6K\n\+ \\163\SOH\n\+ \\EOT\ACK\NUL\STX'\DC2\ACK\226\STX\EOT\227\STX,\SUB\146\SOH\n\+ \DeleteAllPayments deletes all outgoing payments from DB. Note that it will\n\+ \not attempt to delete In-Flight payments, since that would be unsafe.\n\+ \\n\+ \\r\n\+ \\ENQ\ACK\NUL\STX'\SOH\DC2\EOT\226\STX\b\EM\n\+ \\r\n\+ \\ENQ\ACK\NUL\STX'\STX\DC2\EOT\226\STX\ESC3\n\+ \\r\n\+ \\ENQ\ACK\NUL\STX'\ETX\DC2\EOT\227\STX\DC1*\n\+ \\175\ETX\n\+ \\EOT\ACK\NUL\STX(\DC2\EOT\237\STX\EOTC\SUB\160\ETX lncli: `describegraph`\n\+ \DescribeGraph returns a description of the latest graph state from the\n\+ \point of view of the node. The graph information is partitioned into two\n\+ \components: all the nodes/vertexes, and all the edges that connect the\n\+ \vertexes themselves. As this is a directed graph, the edges also contain\n\+ \the node directional specific routing policy which includes: the time lock\n\+ \delta, fee information, etc.\n\+ \\n\+ \\r\n\+ \\ENQ\ACK\NUL\STX(\SOH\DC2\EOT\237\STX\b\NAK\n\+ \\r\n\+ \\ENQ\ACK\NUL\STX(\STX\DC2\EOT\237\STX\ETB*\n\+ \\r\n\+ \\ENQ\ACK\NUL\STX(\ETX\DC2\EOT\237\STX5A\n\+ \\186\SOH\n\+ \\EOT\ACK\NUL\STX)\DC2\EOT\243\STX\EOTJ\SUB\171\SOH lncli: `getnodemetrics`\n\+ \GetNodeMetrics returns node metrics calculated from the graph. Currently\n\+ \the only supported metric is betweenness centrality of individual nodes.\n\+ \\n\+ \\r\n\+ \\ENQ\ACK\NUL\STX)\SOH\DC2\EOT\243\STX\b\SYN\n\+ \\r\n\+ \\ENQ\ACK\NUL\STX)\STX\DC2\EOT\243\STX\CAN*\n\+ \\r\n\+ \\ENQ\ACK\NUL\STX)\ETX\DC2\EOT\243\STX5H\n\+ \\139\STX\n\+ \\EOT\ACK\NUL\STX*\DC2\EOT\251\STX\EOT<\SUB\252\SOH lncli: `getchaninfo`\n\+ \GetChanInfo returns the latest authenticated network announcement for the\n\+ \given channel identified by its channel ID: an 8-byte integer which\n\+ \uniquely identifies the location of transaction's funding output within the\n\+ \blockchain.\n\+ \\n\+ \\r\n\+ \\ENQ\ACK\NUL\STX*\SOH\DC2\EOT\251\STX\b\DC3\n\+ \\r\n\+ \\ENQ\ACK\NUL\STX*\STX\DC2\EOT\251\STX\NAK$\n\+ \\r\n\+ \\ENQ\ACK\NUL\STX*\ETX\DC2\EOT\251\STX/:\n\+ \\183\SOH\n\+ \\EOT\ACK\NUL\STX+\DC2\EOT\129\ETX\EOT9\SUB\168\SOH lncli: `getnodeinfo`\n\+ \GetNodeInfo returns the latest advertised, aggregated, and authenticated\n\+ \channel information for the specified node identified by its public key.\n\+ \\n\+ \\r\n\+ \\ENQ\ACK\NUL\STX+\SOH\DC2\EOT\129\ETX\b\DC3\n\+ \\r\n\+ \\ENQ\ACK\NUL\STX+\STX\DC2\EOT\129\ETX\NAK$\n\+ \\r\n\+ \\ENQ\ACK\NUL\STX+\ETX\DC2\EOT\129\ETX/7\n\+ \\160\ENQ\n\+ \\EOT\ACK\NUL\STX,\DC2\EOT\143\ETX\EOTG\SUB\145\ENQ lncli: `queryroutes`\n\+ \QueryRoutes attempts to query the daemon's Channel Router for a possible\n\+ \route to a target destination capable of carrying a specific amount of\n\+ \satoshis. The returned route contains the full details required to craft and\n\+ \send an HTLC, also including the necessary information that should be\n\+ \present within the Sphinx packet encapsulated within the HTLC.\n\+ \\n\+ \When using REST, the `dest_custom_records` map type can be set by appending\n\+ \`&dest_custom_records[<record_number>]=<record_data_base64_url_encoded>`\n\+ \to the URL. Unfortunately this map type doesn't appear in the REST API\n\+ \documentation because of a bug in the grpc-gateway library.\n\+ \\n\+ \\r\n\+ \\ENQ\ACK\NUL\STX,\SOH\DC2\EOT\143\ETX\b\DC3\n\+ \\r\n\+ \\ENQ\ACK\NUL\STX,\STX\DC2\EOT\143\ETX\NAK'\n\+ \\r\n\+ \\ENQ\ACK\NUL\STX,\ETX\DC2\EOT\143\ETX2E\n\+ \\146\SOH\n\+ \\EOT\ACK\NUL\STX-\DC2\EOT\149\ETX\EOTB\SUB\131\SOH lncli: `getnetworkinfo`\n\+ \GetNetworkInfo returns some basic stats about the known channel graph from\n\+ \the point of view of the node.\n\+ \\n\+ \\r\n\+ \\ENQ\ACK\NUL\STX-\SOH\DC2\EOT\149\ETX\b\SYN\n\+ \\r\n\+ \\ENQ\ACK\NUL\STX-\STX\DC2\EOT\149\ETX\CAN*\n\+ \\r\n\+ \\ENQ\ACK\NUL\STX-\ETX\DC2\EOT\149\ETX5@\n\+ \\141\SOH\n\+ \\EOT\ACK\NUL\STX.\DC2\EOT\155\ETX\EOT8\SUB\DEL lncli: `stop`\n\+ \StopDaemon will send a shutdown request to the interrupt handler, triggering\n\+ \a graceful shutdown of the daemon.\n\+ \\n\+ \\r\n\+ \\ENQ\ACK\NUL\STX.\SOH\DC2\EOT\155\ETX\b\DC2\n\+ \\r\n\+ \\ENQ\ACK\NUL\STX.\STX\DC2\EOT\155\ETX\DC4\US\n\+ \\r\n\+ \\ENQ\ACK\NUL\STX.\ETX\DC2\EOT\155\ETX*6\n\+ \\180\ETX\n\+ \\EOT\ACK\NUL\STX/\DC2\ACK\165\ETX\EOT\166\ETX-\SUB\163\ETX\n\+ \SubscribeChannelGraph launches a streaming RPC that allows the caller to\n\+ \receive notifications upon any changes to the channel graph topology from\n\+ \the point of view of the responding node. Events notified include: new\n\+ \nodes coming online, nodes updating their authenticated attributes, new\n\+ \channels being advertised, updates in the routing policy for a directional\n\+ \channel edge, and when channels are closed on-chain.\n\+ \\n\+ \\r\n\+ \\ENQ\ACK\NUL\STX/\SOH\DC2\EOT\165\ETX\b\GS\n\+ \\r\n\+ \\ENQ\ACK\NUL\STX/\STX\DC2\EOT\165\ETX\US8\n\+ \\r\n\+ \\ENQ\ACK\NUL\STX/\ACK\DC2\EOT\166\ETX\DC1\ETB\n\+ \\r\n\+ \\ENQ\ACK\NUL\STX/\ETX\DC2\EOT\166\ETX\CAN+\n\+ \\139\STX\n\+ \\EOT\ACK\NUL\STX0\DC2\EOT\174\ETX\EOTD\SUB\252\SOH lncli: `debuglevel`\n\+ \DebugLevel allows a caller to programmatically set the logging verbosity of\n\+ \lnd. The logging can be targeted according to a coarse daemon-wide logging\n\+ \level, or in a granular fashion to specify the logging for a target\n\+ \sub-system.\n\+ \\n\+ \\r\n\+ \\ENQ\ACK\NUL\STX0\SOH\DC2\EOT\174\ETX\b\DC2\n\+ \\r\n\+ \\ENQ\ACK\NUL\STX0\STX\DC2\EOT\174\ETX\DC4%\n\+ \\r\n\+ \\ENQ\ACK\NUL\STX0\ETX\DC2\EOT\174\ETX0B\n\+ \\165\SOH\n\+ \\EOT\ACK\NUL\STX1\DC2\EOT\180\ETX\EOTA\SUB\150\SOH lncli: `feereport`\n\+ \FeeReport allows the caller to obtain a report detailing the current fee\n\+ \schedule enforced by the node globally for each channel.\n\+ \\n\+ \\r\n\+ \\ENQ\ACK\NUL\STX1\SOH\DC2\EOT\180\ETX\b\DC1\n\+ \\r\n\+ \\ENQ\ACK\NUL\STX1\STX\DC2\EOT\180\ETX\DC3#\n\+ \\r\n\+ \\ENQ\ACK\NUL\STX1\ETX\DC2\EOT\180\ETX.?\n\+ \\182\SOH\n\+ \\EOT\ACK\NUL\STX2\DC2\ACK\186\ETX\EOT\187\ETX'\SUB\165\SOH lncli: `updatechanpolicy`\n\+ \UpdateChannelPolicy allows the caller to update the fee schedule and\n\+ \channel policies for all channels globally, or a particular channel.\n\+ \\n\+ \\r\n\+ \\ENQ\ACK\NUL\STX2\SOH\DC2\EOT\186\ETX\b\ESC\n\+ \\r\n\+ \\ENQ\ACK\NUL\STX2\STX\DC2\EOT\186\ETX\GS0\n\+ \\r\n\+ \\ENQ\ACK\NUL\STX2\ETX\DC2\EOT\187\ETX\DC1%\n\+ \\133\ACK\n\+ \\EOT\ACK\NUL\STX3\DC2\ACK\202\ETX\EOT\203\ETX,\SUB\244\ENQ lncli: `fwdinghistory`\n\+ \ForwardingHistory allows the caller to query the htlcswitch for a record of\n\+ \all HTLCs forwarded within the target time range, and integer offset\n\+ \within that time range, for a maximum number of events. If no maximum number\n\+ \of events is specified, up to 100 events will be returned. If no time-range\n\+ \is specified, then events will be returned in the order that they occured.\n\+ \\n\+ \A list of forwarding events are returned. The size of each forwarding event\n\+ \is 40 bytes, and the max message size able to be returned in gRPC is 4 MiB.\n\+ \As a result each message can only contain 50k entries. Each response has\n\+ \the index offset of the last entry. The index offset can be provided to the\n\+ \request to allow the caller to skip a series of records.\n\+ \\n\+ \\r\n\+ \\ENQ\ACK\NUL\STX3\SOH\DC2\EOT\202\ETX\b\EM\n\+ \\r\n\+ \\ENQ\ACK\NUL\STX3\STX\DC2\EOT\202\ETX\ESC3\n\+ \\r\n\+ \\ENQ\ACK\NUL\STX3\ETX\DC2\EOT\203\ETX\DC1*\n\+ \\178\ETX\n\+ \\EOT\ACK\NUL\STX4\DC2\ACK\213\ETX\EOT\214\ETX \SUB\161\ETX lncli: `exportchanbackup`\n\+ \ExportChannelBackup attempts to return an encrypted static channel backup\n\+ \for the target channel identified by it channel point. The backup is\n\+ \encrypted with a key generated from the aezeed seed of the user. The\n\+ \returned backup can either be restored using the RestoreChannelBackup\n\+ \method once lnd is running, or via the InitWallet and UnlockWallet methods\n\+ \from the WalletUnlocker service.\n\+ \\n\+ \\r\n\+ \\ENQ\ACK\NUL\STX4\SOH\DC2\EOT\213\ETX\b\ESC\n\+ \\r\n\+ \\ENQ\ACK\NUL\STX4\STX\DC2\EOT\213\ETX\GS7\n\+ \\r\n\+ \\ENQ\ACK\NUL\STX4\ETX\DC2\EOT\214\ETX\DC1\RS\n\+ \\202\STX\n\+ \\EOT\ACK\NUL\STX5\DC2\ACK\223\ETX\EOT\224\ETX%\SUB\185\STX\n\+ \ExportAllChannelBackups returns static channel backups for all existing\n\+ \channels known to lnd. A set of regular singular static channel backups for\n\+ \each channel are returned. Additionally, a multi-channel backup is returned\n\+ \as well, which contains a single encrypted blob containing the backups of\n\+ \each channel.\n\+ \\n\+ \\r\n\+ \\ENQ\ACK\NUL\STX5\SOH\DC2\EOT\223\ETX\b\US\n\+ \\r\n\+ \\ENQ\ACK\NUL\STX5\STX\DC2\EOT\223\ETX!8\n\+ \\r\n\+ \\ENQ\ACK\NUL\STX5\ETX\DC2\EOT\224\ETX\DC1#\n\+ \\212\SOH\n\+ \\EOT\ACK\NUL\STX6\DC2\ACK\231\ETX\EOT\232\ETX+\SUB\195\SOH\n\+ \VerifyChanBackup allows a caller to verify the integrity of a channel backup\n\+ \snapshot. This method will accept either a packed Single or a packed Multi.\n\+ \Specifying both will result in an error.\n\+ \\n\+ \\r\n\+ \\ENQ\ACK\NUL\STX6\SOH\DC2\EOT\231\ETX\b\CAN\n\+ \\r\n\+ \\ENQ\ACK\NUL\STX6\STX\DC2\EOT\231\ETX\SUB,\n\+ \\r\n\+ \\ENQ\ACK\NUL\STX6\ETX\DC2\EOT\232\ETX\DC1)\n\+ \\207\STX\n\+ \\EOT\ACK\NUL\STX7\DC2\ACK\240\ETX\EOT\241\ETX(\SUB\190\STX lncli: `restorechanbackup`\n\+ \RestoreChannelBackups accepts a set of singular channel backups, or a\n\+ \single encrypted multi-chan backup and attempts to recover any funds\n\+ \remaining within the channel. If we are able to unpack the backup, then the\n\+ \new channel will be shown under listchannels, as well as pending channels.\n\+ \\n\+ \\r\n\+ \\ENQ\ACK\NUL\STX7\SOH\DC2\EOT\240\ETX\b\GS\n\+ \\r\n\+ \\ENQ\ACK\NUL\STX7\STX\DC2\EOT\240\ETX\US7\n\+ \\r\n\+ \\ENQ\ACK\NUL\STX7\ETX\DC2\EOT\241\ETX\DC1&\n\+ \\223\ETX\n\+ \\EOT\ACK\NUL\STX8\DC2\ACK\252\ETX\EOT\253\ETX,\SUB\206\ETX\n\+ \SubscribeChannelBackups allows a client to sub-subscribe to the most up to\n\+ \date information concerning the state of all channel backups. Each time a\n\+ \new channel is added, we return the new set of channels, along with a\n\+ \multi-chan backup containing the backup info for all channels. Each time a\n\+ \channel is closed, we send a new update, which contains new new chan back\n\+ \ups, but the updated set of encrypted multi-chan backups with the closed\n\+ \channel(s) removed.\n\+ \\n\+ \\r\n\+ \\ENQ\ACK\NUL\STX8\SOH\DC2\EOT\252\ETX\b\US\n\+ \\r\n\+ \\ENQ\ACK\NUL\STX8\STX\DC2\EOT\252\ETX!:\n\+ \\r\n\+ \\ENQ\ACK\NUL\STX8\ACK\DC2\EOT\253\ETX\DC1\ETB\n\+ \\r\n\+ \\ENQ\ACK\NUL\STX8\ETX\DC2\EOT\253\ETX\CAN*\n\+ \\194\SOH\n\+ \\EOT\ACK\NUL\STX9\DC2\EOT\132\EOT\EOTJ\SUB\179\SOH lncli: `bakemacaroon`\n\+ \BakeMacaroon allows the creation of a new macaroon with custom read and\n\+ \write permissions. No first-party caveats are added since this can be done\n\+ \offline.\n\+ \\n\+ \\r\n\+ \\ENQ\ACK\NUL\STX9\SOH\DC2\EOT\132\EOT\b\DC4\n\+ \\r\n\+ \\ENQ\ACK\NUL\STX9\STX\DC2\EOT\132\EOT\SYN)\n\+ \\r\n\+ \\ENQ\ACK\NUL\STX9\ETX\DC2\EOT\132\EOT4H\n\+ \d\n\+ \\EOT\ACK\NUL\STX:\DC2\ACK\137\EOT\EOT\138\EOT*\SUBT lncli: `listmacaroonids`\n\+ \ListMacaroonIDs returns all root key IDs that are in use.\n\+ \\n\+ \\r\n\+ \\ENQ\ACK\NUL\STX:\SOH\DC2\EOT\137\EOT\b\ETB\n\+ \\r\n\+ \\ENQ\ACK\NUL\STX:\STX\DC2\EOT\137\EOT\EM/\n\+ \\r\n\+ \\ENQ\ACK\NUL\STX:\ETX\DC2\EOT\138\EOT\DC1(\n\+ \\147\SOH\n\+ \\EOT\ACK\NUL\STX;\DC2\ACK\144\EOT\EOT\145\EOT+\SUB\130\SOH lncli: `deletemacaroonid`\n\+ \DeleteMacaroonID deletes the specified macaroon ID and invalidates all\n\+ \macaroons derived from that ID.\n\+ \\n\+ \\r\n\+ \\ENQ\ACK\NUL\STX;\SOH\DC2\EOT\144\EOT\b\CAN\n\+ \\r\n\+ \\ENQ\ACK\NUL\STX;\STX\DC2\EOT\144\EOT\SUB1\n\+ \\r\n\+ \\ENQ\ACK\NUL\STX;\ETX\DC2\EOT\145\EOT\DC1)\n\+ \\140\SOH\n\+ \\EOT\ACK\NUL\STX<\DC2\ACK\151\EOT\EOT\152\EOT*\SUB| lncli: `listpermissions`\n\+ \ListPermissions lists all RPC method URIs and their required macaroon\n\+ \permissions to access them.\n\+ \\n\+ \\r\n\+ \\ENQ\ACK\NUL\STX<\SOH\DC2\EOT\151\EOT\b\ETB\n\+ \\r\n\+ \\ENQ\ACK\NUL\STX<\STX\DC2\EOT\151\EOT\EM/\n\+ \\r\n\+ \\ENQ\ACK\NUL\STX<\ETX\DC2\EOT\152\EOT\DC1(\n\+ \\188\SOH\n\+ \\EOT\ACK\NUL\STX=\DC2\ACK\159\EOT\EOT\160\EOT'\SUB\171\SOH\n\+ \CheckMacaroonPermissions checks whether a request follows the constraints\n\+ \imposed on the macaroon and that the macaroon is authorized to follow the\n\+ \provided permissions.\n\+ \\n\+ \\r\n\+ \\ENQ\ACK\NUL\STX=\SOH\DC2\EOT\159\EOT\b \n\+ \\r\n\+ \\ENQ\ACK\NUL\STX=\STX\DC2\EOT\159\EOT\"5\n\+ \\r\n\+ \\ENQ\ACK\NUL\STX=\ETX\DC2\EOT\160\EOT\DC1%\n\+ \\139\a\n\+ \\EOT\ACK\NUL\STX>\DC2\ACK\176\EOT\EOT\177\EOT.\SUB\250\ACK\n\+ \RegisterRPCMiddleware adds a new gRPC middleware to the interceptor chain. A\n\+ \gRPC middleware is software component external to lnd that aims to add\n\+ \additional business logic to lnd by observing/intercepting/validating\n\+ \incoming gRPC client requests and (if needed) replacing/overwriting outgoing\n\+ \messages before they're sent to the client. When registering the middleware\n\+ \must identify itself and indicate what custom macaroon caveats it wants to\n\+ \be responsible for. Only requests that contain a macaroon with that specific\n\+ \custom caveat are then sent to the middleware for inspection. The other\n\+ \option is to register for the read-only mode in which all requests/responses\n\+ \are forwarded for interception to the middleware but the middleware is not\n\+ \allowed to modify any responses. As a security measure, _no_ middleware can\n\+ \modify responses for requests made with _unencumbered_ macaroons!\n\+ \\n\+ \\r\n\+ \\ENQ\ACK\NUL\STX>\SOH\DC2\EOT\176\EOT\b\GS\n\+ \\r\n\+ \\ENQ\ACK\NUL\STX>\ENQ\DC2\EOT\176\EOT\US%\n\+ \\r\n\+ \\ENQ\ACK\NUL\STX>\STX\DC2\EOT\176\EOT&;\n\+ \\r\n\+ \\ENQ\ACK\NUL\STX>\ACK\DC2\EOT\177\EOT\DC1\ETB\n\+ \\r\n\+ \\ENQ\ACK\NUL\STX>\ETX\DC2\EOT\177\EOT\CAN,\n\+ \T\n\+ \\EOT\ACK\NUL\STX?\DC2\ACK\182\EOT\EOT\183\EOT,\SUBD lncli: `sendcustom`\n\+ \SendCustomMessage sends a custom peer message.\n\+ \\n\+ \\r\n\+ \\ENQ\ACK\NUL\STX?\SOH\DC2\EOT\182\EOT\b\EM\n\+ \\r\n\+ \\ENQ\ACK\NUL\STX?\STX\DC2\EOT\182\EOT\ESC3\n\+ \\r\n\+ \\ENQ\ACK\NUL\STX?\ETX\DC2\EOT\183\EOT\DC1*\n\+ \{\n\+ \\EOT\ACK\NUL\STX@\DC2\ACK\189\EOT\EOT\190\EOT'\SUBk lncli: `subscribecustom`\n\+ \SubscribeCustomMessages subscribes to a stream of incoming custom peer\n\+ \messages.\n\+ \\n\+ \\r\n\+ \\ENQ\ACK\NUL\STX@\SOH\DC2\EOT\189\EOT\b\US\n\+ \\r\n\+ \\ENQ\ACK\NUL\STX@\STX\DC2\EOT\189\EOT!?\n\+ \\r\n\+ \\ENQ\ACK\NUL\STX@\ACK\DC2\EOT\190\EOT\DC1\ETB\n\+ \\r\n\+ \\ENQ\ACK\NUL\STX@\ETX\DC2\EOT\190\EOT\CAN%\n\+ \\f\n\+ \\STX\EOT\NUL\DC2\ACK\193\EOT\NUL\194\EOT\SOH\n\+ \\v\n\+ \\ETX\EOT\NUL\SOH\DC2\EOT\193\EOT\b&\n\+ \\f\n\+ \\STX\EOT\SOH\DC2\ACK\196\EOT\NUL\205\EOT\SOH\n\+ \\v\n\+ \\ETX\EOT\SOH\SOH\DC2\EOT\196\EOT\b\NAK\n\+ \6\n\+ \\EOT\EOT\SOH\STX\NUL\DC2\EOT\198\EOT\EOT\DC3\SUB( Peer from which the message originates\n\+ \\n\+ \\r\n\+ \\ENQ\EOT\SOH\STX\NUL\ENQ\DC2\EOT\198\EOT\EOT\t\n\+ \\r\n\+ \\ENQ\EOT\SOH\STX\NUL\SOH\DC2\EOT\198\EOT\n\+ \\SO\n\+ \\r\n\+ \\ENQ\EOT\SOH\STX\NUL\ETX\DC2\EOT\198\EOT\DC1\DC2\n\+ \P\n\+ \\EOT\EOT\SOH\STX\SOH\DC2\EOT\201\EOT\EOT\DC4\SUBB Message type. This value will be in the custom range (>= 32768).\n\+ \\n\+ \\r\n\+ \\ENQ\EOT\SOH\STX\SOH\ENQ\DC2\EOT\201\EOT\EOT\n\+ \\n\+ \\r\n\+ \\ENQ\EOT\SOH\STX\SOH\SOH\DC2\EOT\201\EOT\v\SI\n\+ \\r\n\+ \\ENQ\EOT\SOH\STX\SOH\ETX\DC2\EOT\201\EOT\DC2\DC3\n\+ \ \n\+ \\EOT\EOT\SOH\STX\STX\DC2\EOT\204\EOT\EOT\DC3\SUB\DC2 Raw message data\n\+ \\n\+ \\r\n\+ \\ENQ\EOT\SOH\STX\STX\ENQ\DC2\EOT\204\EOT\EOT\t\n\+ \\r\n\+ \\ENQ\EOT\SOH\STX\STX\SOH\DC2\EOT\204\EOT\n\+ \\SO\n\+ \\r\n\+ \\ENQ\EOT\SOH\STX\STX\ETX\DC2\EOT\204\EOT\DC1\DC2\n\+ \\f\n\+ \\STX\EOT\STX\DC2\ACK\207\EOT\NUL\216\EOT\SOH\n\+ \\v\n\+ \\ETX\EOT\STX\SOH\DC2\EOT\207\EOT\b \n\+ \+\n\+ \\EOT\EOT\STX\STX\NUL\DC2\EOT\209\EOT\EOT\DC3\SUB\GS Peer to send the message to\n\+ \\n\+ \\r\n\+ \\ENQ\EOT\STX\STX\NUL\ENQ\DC2\EOT\209\EOT\EOT\t\n\+ \\r\n\+ \\ENQ\EOT\STX\STX\NUL\SOH\DC2\EOT\209\EOT\n\+ \\SO\n\+ \\r\n\+ \\ENQ\EOT\STX\STX\NUL\ETX\DC2\EOT\209\EOT\DC1\DC2\n\+ \T\n\+ \\EOT\EOT\STX\STX\SOH\DC2\EOT\212\EOT\EOT\DC4\SUBF Message type. This value needs to be in the custom range (>= 32768).\n\+ \\n\+ \\r\n\+ \\ENQ\EOT\STX\STX\SOH\ENQ\DC2\EOT\212\EOT\EOT\n\+ \\n\+ \\r\n\+ \\ENQ\EOT\STX\STX\SOH\SOH\DC2\EOT\212\EOT\v\SI\n\+ \\r\n\+ \\ENQ\EOT\STX\STX\SOH\ETX\DC2\EOT\212\EOT\DC2\DC3\n\+ \!\n\+ \\EOT\EOT\STX\STX\STX\DC2\EOT\215\EOT\EOT\DC3\SUB\DC3 Raw message data.\n\+ \\n\+ \\r\n\+ \\ENQ\EOT\STX\STX\STX\ENQ\DC2\EOT\215\EOT\EOT\t\n\+ \\r\n\+ \\ENQ\EOT\STX\STX\STX\SOH\DC2\EOT\215\EOT\n\+ \\SO\n\+ \\r\n\+ \\ENQ\EOT\STX\STX\STX\ETX\DC2\EOT\215\EOT\DC1\DC2\n\+ \\f\n\+ \\STX\EOT\ETX\DC2\ACK\218\EOT\NUL\219\EOT\SOH\n\+ \\v\n\+ \\ETX\EOT\ETX\SOH\DC2\EOT\218\EOT\b!\n\+ \\f\n\+ \\STX\EOT\EOT\DC2\ACK\221\EOT\NUL\239\EOT\SOH\n\+ \\v\n\+ \\ETX\EOT\EOT\SOH\DC2\EOT\221\EOT\b\f\n\+ \#\n\+ \\EOT\EOT\EOT\STX\NUL\DC2\EOT\223\EOT\EOT!\SUB\NAK The type of address\n\+ \\n\+ \\r\n\+ \\ENQ\EOT\EOT\STX\NUL\ACK\DC2\EOT\223\EOT\EOT\SI\n\+ \\r\n\+ \\ENQ\EOT\EOT\STX\NUL\SOH\DC2\EOT\223\EOT\DLE\FS\n\+ \\r\n\+ \\ENQ\EOT\EOT\STX\NUL\ETX\DC2\EOT\223\EOT\US \n\+ \\ESC\n\+ \\EOT\EOT\EOT\STX\SOH\DC2\EOT\226\EOT\EOT\ETB\SUB\r The address\n\+ \\n\+ \\r\n\+ \\ENQ\EOT\EOT\STX\SOH\ENQ\DC2\EOT\226\EOT\EOT\n\+ \\n\+ \\r\n\+ \\ENQ\EOT\EOT\STX\SOH\SOH\DC2\EOT\226\EOT\v\DC2\n\+ \\r\n\+ \\ENQ\EOT\EOT\STX\SOH\ETX\DC2\EOT\226\EOT\NAK\SYN\n\+ \9\n\+ \\EOT\EOT\EOT\STX\STX\DC2\EOT\229\EOT\EOT\EM\SUB+ The value of the unspent coin in satoshis\n\+ \\n\+ \\r\n\+ \\ENQ\EOT\EOT\STX\STX\ENQ\DC2\EOT\229\EOT\EOT\t\n\+ \\r\n\+ \\ENQ\EOT\EOT\STX\STX\SOH\DC2\EOT\229\EOT\n\+ \\DC4\n\+ \\r\n\+ \\ENQ\EOT\EOT\STX\STX\ETX\DC2\EOT\229\EOT\ETB\CAN\n\+ \#\n\+ \\EOT\EOT\EOT\STX\ETX\DC2\EOT\232\EOT\EOT\EM\SUB\NAK The pkscript in hex\n\+ \\n\+ \\r\n\+ \\ENQ\EOT\EOT\STX\ETX\ENQ\DC2\EOT\232\EOT\EOT\n\+ \\n\+ \\r\n\+ \\ENQ\EOT\EOT\STX\ETX\SOH\DC2\EOT\232\EOT\v\DC4\n\+ \\r\n\+ \\ENQ\EOT\EOT\STX\ETX\ETX\DC2\EOT\232\EOT\ETB\CAN\n\+ \-\n\+ \\EOT\EOT\EOT\STX\EOT\DC2\EOT\235\EOT\EOT\SUB\SUB\US The outpoint in format txid:n\n\+ \\n\+ \\r\n\+ \\ENQ\EOT\EOT\STX\EOT\ACK\DC2\EOT\235\EOT\EOT\f\n\+ \\r\n\+ \\ENQ\EOT\EOT\STX\EOT\SOH\DC2\EOT\235\EOT\r\NAK\n\+ \\r\n\+ \\ENQ\EOT\EOT\STX\EOT\ETX\DC2\EOT\235\EOT\CAN\EM\n\+ \8\n\+ \\EOT\EOT\EOT\STX\ENQ\DC2\EOT\238\EOT\EOT\FS\SUB* The number of confirmations for the Utxo\n\+ \\n\+ \\r\n\+ \\ENQ\EOT\EOT\STX\ENQ\ENQ\DC2\EOT\238\EOT\EOT\t\n\+ \\r\n\+ \\ENQ\EOT\EOT\STX\ENQ\SOH\DC2\EOT\238\EOT\n\+ \\ETB\n\+ \\r\n\+ \\ENQ\EOT\EOT\STX\ENQ\ETX\DC2\EOT\238\EOT\SUB\ESC\n\+ \\f\n\+ \\STX\EOT\ENQ\DC2\ACK\241\EOT\NUL\143\ENQ\SOH\n\+ \\v\n\+ \\ETX\EOT\ENQ\SOH\DC2\EOT\241\EOT\b\DC3\n\+ \$\n\+ \\EOT\EOT\ENQ\STX\NUL\DC2\EOT\243\EOT\EOT\ETB\SUB\SYN The transaction hash\n\+ \\n\+ \\r\n\+ \\ENQ\EOT\ENQ\STX\NUL\ENQ\DC2\EOT\243\EOT\EOT\n\+ \\n\+ \\r\n\+ \\ENQ\EOT\ENQ\STX\NUL\SOH\DC2\EOT\243\EOT\v\DC2\n\+ \\r\n\+ \\ENQ\EOT\ENQ\STX\NUL\ETX\DC2\EOT\243\EOT\NAK\SYN\n\+ \?\n\+ \\EOT\EOT\ENQ\STX\SOH\DC2\EOT\246\EOT\EOT\NAK\SUB1 The transaction amount, denominated in satoshis\n\+ \\n\+ \\r\n\+ \\ENQ\EOT\ENQ\STX\SOH\ENQ\DC2\EOT\246\EOT\EOT\t\n\+ \\r\n\+ \\ENQ\EOT\ENQ\STX\SOH\SOH\DC2\EOT\246\EOT\n\+ \\DLE\n\+ \\r\n\+ \\ENQ\EOT\ENQ\STX\SOH\ETX\DC2\EOT\246\EOT\DC3\DC4\n\+ \+\n\+ \\EOT\EOT\ENQ\STX\STX\DC2\EOT\249\EOT\EOT \SUB\GS The number of confirmations\n\+ \\n\+ \\r\n\+ \\ENQ\EOT\ENQ\STX\STX\ENQ\DC2\EOT\249\EOT\EOT\t\n\+ \\r\n\+ \\ENQ\EOT\ENQ\STX\STX\SOH\DC2\EOT\249\EOT\n\+ \\ESC\n\+ \\r\n\+ \\ENQ\EOT\ENQ\STX\STX\ETX\DC2\EOT\249\EOT\RS\US\n\+ \F\n\+ \\EOT\EOT\ENQ\STX\ETX\DC2\EOT\252\EOT\EOT\SUB\SUB8 The hash of the block this transaction was included in\n\+ \\n\+ \\r\n\+ \\ENQ\EOT\ENQ\STX\ETX\ENQ\DC2\EOT\252\EOT\EOT\n\+ \\n\+ \\r\n\+ \\ENQ\EOT\ENQ\STX\ETX\SOH\DC2\EOT\252\EOT\v\NAK\n\+ \\r\n\+ \\ENQ\EOT\ENQ\STX\ETX\ETX\DC2\EOT\252\EOT\CAN\EM\n\+ \H\n\+ \\EOT\EOT\ENQ\STX\EOT\DC2\EOT\255\EOT\EOT\ESC\SUB: The height of the block this transaction was included in\n\+ \\n\+ \\r\n\+ \\ENQ\EOT\ENQ\STX\EOT\ENQ\DC2\EOT\255\EOT\EOT\t\n\+ \\r\n\+ \\ENQ\EOT\ENQ\STX\EOT\SOH\DC2\EOT\255\EOT\n\+ \\SYN\n\+ \\r\n\+ \\ENQ\EOT\ENQ\STX\EOT\ETX\DC2\EOT\255\EOT\EM\SUB\n\+ \-\n\+ \\EOT\EOT\ENQ\STX\ENQ\DC2\EOT\130\ENQ\EOT\EM\SUB\US Timestamp of this transaction\n\+ \\n\+ \\r\n\+ \\ENQ\EOT\ENQ\STX\ENQ\ENQ\DC2\EOT\130\ENQ\EOT\t\n\+ \\r\n\+ \\ENQ\EOT\ENQ\STX\ENQ\SOH\DC2\EOT\130\ENQ\n\+ \\DC4\n\+ \\r\n\+ \\ENQ\EOT\ENQ\STX\ENQ\ETX\DC2\EOT\130\ENQ\ETB\CAN\n\+ \.\n\+ \\EOT\EOT\ENQ\STX\ACK\DC2\EOT\133\ENQ\EOT\EM\SUB Fees paid for this transaction\n\+ \\n\+ \\r\n\+ \\ENQ\EOT\ENQ\STX\ACK\ENQ\DC2\EOT\133\ENQ\EOT\t\n\+ \\r\n\+ \\ENQ\EOT\ENQ\STX\ACK\SOH\DC2\EOT\133\ENQ\n\+ \\DC4\n\+ \\r\n\+ \\ENQ\EOT\ENQ\STX\ACK\ETX\DC2\EOT\133\ENQ\ETB\CAN\n\+ \B\n\+ \\EOT\EOT\ENQ\STX\a\DC2\EOT\136\ENQ\EOT'\SUB4 Addresses that received funds for this transaction\n\+ \\n\+ \\r\n\+ \\ENQ\EOT\ENQ\STX\a\EOT\DC2\EOT\136\ENQ\EOT\f\n\+ \\r\n\+ \\ENQ\EOT\ENQ\STX\a\ENQ\DC2\EOT\136\ENQ\r\DC3\n\+ \\r\n\+ \\ENQ\EOT\ENQ\STX\a\SOH\DC2\EOT\136\ENQ\DC4\"\n\+ \\r\n\+ \\ENQ\EOT\ENQ\STX\a\ETX\DC2\EOT\136\ENQ%&\n\+ \(\n\+ \\EOT\EOT\ENQ\STX\b\DC2\EOT\139\ENQ\EOT\SUB\SUB\SUB The raw transaction hex.\n\+ \\n\+ \\r\n\+ \\ENQ\EOT\ENQ\STX\b\ENQ\DC2\EOT\139\ENQ\EOT\n\+ \\n\+ \\r\n\+ \\ENQ\EOT\ENQ\STX\b\SOH\DC2\EOT\139\ENQ\v\NAK\n\+ \\r\n\+ \\ENQ\EOT\ENQ\STX\b\ETX\DC2\EOT\139\ENQ\CAN\EM\n\+ \I\n\+ \\EOT\EOT\ENQ\STX\t\DC2\EOT\142\ENQ\EOT\SYN\SUB; A label that was optionally set on transaction broadcast.\n\+ \\n\+ \\r\n\+ \\ENQ\EOT\ENQ\STX\t\ENQ\DC2\EOT\142\ENQ\EOT\n\+ \\n\+ \\r\n\+ \\ENQ\EOT\ENQ\STX\t\SOH\DC2\EOT\142\ENQ\v\DLE\n\+ \\r\n\+ \\ENQ\EOT\ENQ\STX\t\ETX\DC2\EOT\142\ENQ\DC3\NAK\n\+ \\f\n\+ \\STX\EOT\ACK\DC2\ACK\144\ENQ\NUL\162\ENQ\SOH\n\+ \\v\n\+ \\ETX\EOT\ACK\SOH\DC2\EOT\144\ENQ\b\RS\n\+ \\151\SOH\n\+ \\EOT\EOT\ACK\STX\NUL\DC2\EOT\149\ENQ\EOT\ESC\SUB\136\SOH\n\+ \The height from which to list transactions, inclusive. If this value is\n\+ \greater than end_height, transactions will be read in reverse.\n\+ \\n\+ \\r\n\+ \\ENQ\EOT\ACK\STX\NUL\ENQ\DC2\EOT\149\ENQ\EOT\t\n\+ \\r\n\+ \\ENQ\EOT\ACK\STX\NUL\SOH\DC2\EOT\149\ENQ\n\+ \\SYN\n\+ \\r\n\+ \\ENQ\EOT\ACK\STX\NUL\ETX\DC2\EOT\149\ENQ\EM\SUB\n\+ \\188\STX\n\+ \\EOT\EOT\ACK\STX\SOH\DC2\EOT\158\ENQ\EOT\EM\SUB\173\STX\n\+ \The height until which to list transactions, inclusive. To include\n\+ \unconfirmed transactions, this value should be set to -1, which will\n\+ \return transactions from start_height until the current chain tip and\n\+ \unconfirmed transactions. If no end_height is provided, the call will\n\+ \default to this option.\n\+ \\n\+ \\r\n\+ \\ENQ\EOT\ACK\STX\SOH\ENQ\DC2\EOT\158\ENQ\EOT\t\n\+ \\r\n\+ \\ENQ\EOT\ACK\STX\SOH\SOH\DC2\EOT\158\ENQ\n\+ \\DC4\n\+ \\r\n\+ \\ENQ\EOT\ACK\STX\SOH\ETX\DC2\EOT\158\ENQ\ETB\CAN\n\+ \W\n\+ \\EOT\EOT\ACK\STX\STX\DC2\EOT\161\ENQ\EOT\ETB\SUBI An optional filter to only include transactions relevant to an account.\n\+ \\n\+ \\r\n\+ \\ENQ\EOT\ACK\STX\STX\ENQ\DC2\EOT\161\ENQ\EOT\n\+ \\n\+ \\r\n\+ \\ENQ\EOT\ACK\STX\STX\SOH\DC2\EOT\161\ENQ\v\DC2\n\+ \\r\n\+ \\ENQ\EOT\ACK\STX\STX\ETX\DC2\EOT\161\ENQ\NAK\SYN\n\+ \\f\n\+ \\STX\EOT\a\DC2\ACK\164\ENQ\NUL\167\ENQ\SOH\n\+ \\v\n\+ \\ETX\EOT\a\SOH\DC2\EOT\164\ENQ\b\SUB\n\+ \@\n\+ \\EOT\EOT\a\STX\NUL\DC2\EOT\166\ENQ\EOT*\SUB2 The list of transactions relevant to the wallet.\n\+ \\n\+ \\r\n\+ \\ENQ\EOT\a\STX\NUL\EOT\DC2\EOT\166\ENQ\EOT\f\n\+ \\r\n\+ \\ENQ\EOT\a\STX\NUL\ACK\DC2\EOT\166\ENQ\r\CAN\n\+ \\r\n\+ \\ENQ\EOT\a\STX\NUL\SOH\DC2\EOT\166\ENQ\EM%\n\+ \\r\n\+ \\ENQ\EOT\a\STX\NUL\ETX\DC2\EOT\166\ENQ()\n\+ \\f\n\+ \\STX\EOT\b\DC2\ACK\169\ENQ\NUL\144\ACK\SOH\n\+ \\v\n\+ \\ETX\EOT\b\SOH\DC2\EOT\169\ENQ\b\DC3\n\+ \t\n\+ \\EOT\EOT\b\STX\NUL\DC2\EOT\174\ENQ\EOT\DC3\SUBf\n\+ \The identity pubkey of the payment recipient. When using REST, this field\n\+ \must be encoded as base64.\n\+ \\n\+ \\r\n\+ \\ENQ\EOT\b\STX\NUL\ENQ\DC2\EOT\174\ENQ\EOT\t\n\+ \\r\n\+ \\ENQ\EOT\b\STX\NUL\SOH\DC2\EOT\174\ENQ\n\+ \\SO\n\+ \\r\n\+ \\ENQ\EOT\b\STX\NUL\ETX\DC2\EOT\174\ENQ\DC1\DC2\n\+ \\153\SOH\n\+ \\EOT\EOT\b\STX\SOH\DC2\EOT\180\ENQ\EOT/\SUB\138\SOH\n\+ \The hex-encoded identity pubkey of the payment recipient. Deprecated now\n\+ \that the REST gateway supports base64 encoding of bytes fields.\n\+ \\n\+ \\r\n\+ \\ENQ\EOT\b\STX\SOH\ENQ\DC2\EOT\180\ENQ\EOT\n\+ \\n\+ \\r\n\+ \\ENQ\EOT\b\STX\SOH\SOH\DC2\EOT\180\ENQ\v\SYN\n\+ \\r\n\+ \\ENQ\EOT\b\STX\SOH\ETX\DC2\EOT\180\ENQ\EM\SUB\n\+ \\r\n\+ \\ENQ\EOT\b\STX\SOH\b\DC2\EOT\180\ENQ\ESC.\n\+ \\SO\n\+ \\ACK\EOT\b\STX\SOH\b\ETX\DC2\EOT\180\ENQ\FS-\n\+ \n\n\+ \\EOT\EOT\b\STX\STX\DC2\EOT\187\ENQ\EOT\DC2\SUB`\n\+ \The amount to send expressed in satoshis.\n\+ \\n\+ \The fields amt and amt_msat are mutually exclusive.\n\+ \\n\+ \\r\n\+ \\ENQ\EOT\b\STX\STX\ENQ\DC2\EOT\187\ENQ\EOT\t\n\+ \\r\n\+ \\ENQ\EOT\b\STX\STX\SOH\DC2\EOT\187\ENQ\n\+ \\r\n\+ \\r\n\+ \\ENQ\EOT\b\STX\STX\ETX\DC2\EOT\187\ENQ\DLE\DC1\n\+ \s\n\+ \\EOT\EOT\b\STX\ETX\DC2\EOT\194\ENQ\EOT\CAN\SUBe\n\+ \The amount to send expressed in millisatoshis.\n\+ \\n\+ \The fields amt and amt_msat are mutually exclusive.\n\+ \\n\+ \\r\n\+ \\ENQ\EOT\b\STX\ETX\ENQ\DC2\EOT\194\ENQ\EOT\t\n\+ \\r\n\+ \\ENQ\EOT\b\STX\ETX\SOH\DC2\EOT\194\ENQ\n\+ \\DC2\n\+ \\r\n\+ \\ENQ\EOT\b\STX\ETX\ETX\DC2\EOT\194\ENQ\NAK\ETB\n\+ \q\n\+ \\EOT\EOT\b\STX\EOT\DC2\EOT\200\ENQ\EOT\ESC\SUBc\n\+ \The hash to use within the payment's HTLC. When using REST, this field\n\+ \must be encoded as base64.\n\+ \\n\+ \\r\n\+ \\ENQ\EOT\b\STX\EOT\ENQ\DC2\EOT\200\ENQ\EOT\t\n\+ \\r\n\+ \\ENQ\EOT\b\STX\EOT\SOH\DC2\EOT\200\ENQ\n\+ \\SYN\n\+ \\r\n\+ \\ENQ\EOT\b\STX\EOT\ETX\DC2\EOT\200\ENQ\EM\SUB\n\+ \\150\SOH\n\+ \\EOT\EOT\b\STX\ENQ\DC2\EOT\206\ENQ\EOT7\SUB\135\SOH\n\+ \The hex-encoded hash to use within the payment's HTLC. Deprecated now\n\+ \that the REST gateway supports base64 encoding of bytes fields.\n\+ \\n\+ \\r\n\+ \\ENQ\EOT\b\STX\ENQ\ENQ\DC2\EOT\206\ENQ\EOT\n\+ \\n\+ \\r\n\+ \\ENQ\EOT\b\STX\ENQ\SOH\DC2\EOT\206\ENQ\v\RS\n\+ \\r\n\+ \\ENQ\EOT\b\STX\ENQ\ETX\DC2\EOT\206\ENQ!\"\n\+ \\r\n\+ \\ENQ\EOT\b\STX\ENQ\b\DC2\EOT\206\ENQ#6\n\+ \\SO\n\+ \\ACK\EOT\b\STX\ENQ\b\ETX\DC2\EOT\206\ENQ$5\n\+ \\188\SOH\n\+ \\EOT\EOT\b\STX\ACK\DC2\EOT\213\ENQ\EOT\US\SUB\173\SOH\n\+ \A bare-bones invoice for a payment within the Lightning Network. With the\n\+ \details of the invoice, the sender has all the data necessary to send a\n\+ \payment to the recipient.\n\+ \\n\+ \\r\n\+ \\ENQ\EOT\b\STX\ACK\ENQ\DC2\EOT\213\ENQ\EOT\n\+ \\n\+ \\r\n\+ \\ENQ\EOT\b\STX\ACK\SOH\DC2\EOT\213\ENQ\v\SUB\n\+ \\r\n\+ \\ENQ\EOT\b\STX\ACK\ETX\DC2\EOT\213\ENQ\GS\RS\n\+ \q\n\+ \\EOT\EOT\b\STX\a\DC2\EOT\219\ENQ\EOT\US\SUBc\n\+ \The CLTV delta from the current height that should be used to set the\n\+ \timelock for the final hop.\n\+ \\n\+ \\r\n\+ \\ENQ\EOT\b\STX\a\ENQ\DC2\EOT\219\ENQ\EOT\t\n\+ \\r\n\+ \\ENQ\EOT\b\STX\a\SOH\DC2\EOT\219\ENQ\n\+ \\SUB\n\+ \\r\n\+ \\ENQ\EOT\b\STX\a\ETX\DC2\EOT\219\ENQ\GS\RS\n\+ \\130\STX\n\+ \\EOT\EOT\b\STX\b\DC2\EOT\227\ENQ\EOT\ESC\SUB\243\SOH\n\+ \The maximum number of satoshis that will be paid as a fee of the payment.\n\+ \This value can be represented either as a percentage of the amount being\n\+ \sent, or as a fixed amount of the maximum fee the user is willing the pay to\n\+ \send the payment.\n\+ \\n\+ \\r\n\+ \\ENQ\EOT\b\STX\b\ACK\DC2\EOT\227\ENQ\EOT\f\n\+ \\r\n\+ \\ENQ\EOT\b\STX\b\SOH\DC2\EOT\227\ENQ\r\SYN\n\+ \\r\n\+ \\ENQ\EOT\b\STX\b\ETX\DC2\EOT\227\ENQ\EM\SUB\n\+ \t\n\+ \\EOT\EOT\b\STX\t\DC2\EOT\233\ENQ\EOT5\SUBf\n\+ \The channel id of the channel that must be taken to the first hop. If zero,\n\+ \any channel may be used.\n\+ \\n\+ \\r\n\+ \\ENQ\EOT\b\STX\t\ENQ\DC2\EOT\233\ENQ\EOT\n\+ \\n\+ \\r\n\+ \\ENQ\EOT\b\STX\t\SOH\DC2\EOT\233\ENQ\v\ESC\n\+ \\r\n\+ \\ENQ\EOT\b\STX\t\ETX\DC2\EOT\233\ENQ\RS\US\n\+ \\r\n\+ \\ENQ\EOT\b\STX\t\b\DC2\EOT\233\ENQ 4\n\+ \\SO\n\+ \\ACK\EOT\b\STX\t\b\ACK\DC2\EOT\233\ENQ!3\n\+ \W\n\+ \\EOT\EOT\b\STX\n\+ \\DC2\EOT\238\ENQ\EOT\US\SUBI\n\+ \The pubkey of the last hop of the route. If empty, any hop may be used.\n\+ \\n\+ \\r\n\+ \\ENQ\EOT\b\STX\n\+ \\ENQ\DC2\EOT\238\ENQ\EOT\t\n\+ \\r\n\+ \\ENQ\EOT\b\STX\n\+ \\SOH\DC2\EOT\238\ENQ\n\+ \\EM\n\+ \\r\n\+ \\ENQ\EOT\b\STX\n\+ \\ETX\DC2\EOT\238\ENQ\FS\RS\n\+ \\185\SOH\n\+ \\EOT\EOT\b\STX\v\DC2\EOT\245\ENQ\EOT\ESC\SUB\170\SOH\n\+ \An optional maximum total time lock for the route. This should not exceed\n\+ \lnd's `--max-cltv-expiry` setting. If zero, then the value of\n\+ \`--max-cltv-expiry` is enforced.\n\+ \\n\+ \\r\n\+ \\ENQ\EOT\b\STX\v\ENQ\DC2\EOT\245\ENQ\EOT\n\+ \\n\+ \\r\n\+ \\ENQ\EOT\b\STX\v\SOH\DC2\EOT\245\ENQ\v\NAK\n\+ \\r\n\+ \\ENQ\EOT\b\STX\v\ETX\DC2\EOT\245\ENQ\CAN\SUB\n\+ \\204\STX\n\+ \\EOT\EOT\b\STX\f\DC2\EOT\254\ENQ\EOT0\SUB\189\STX\n\+ \An optional field that can be used to pass an arbitrary set of TLV records\n\+ \to a peer which understands the new records. This can be used to pass\n\+ \application specific data during the payment attempt. Record types are\n\+ \required to be in the custom range >= 65536. When using REST, the values\n\+ \must be encoded as base64.\n\+ \\n\+ \\r\n\+ \\ENQ\EOT\b\STX\f\ACK\DC2\EOT\254\ENQ\EOT\SYN\n\+ \\r\n\+ \\ENQ\EOT\b\STX\f\SOH\DC2\EOT\254\ENQ\ETB*\n\+ \\r\n\+ \\ENQ\EOT\b\STX\f\ETX\DC2\EOT\254\ENQ-/\n\+ \@\n\+ \\EOT\EOT\b\STX\r\DC2\EOT\129\ACK\EOT!\SUB2 If set, circular payments to self are permitted.\n\+ \\n\+ \\r\n\+ \\ENQ\EOT\b\STX\r\ENQ\DC2\EOT\129\ACK\EOT\b\n\+ \\r\n\+ \\ENQ\EOT\b\STX\r\SOH\DC2\EOT\129\ACK\t\ESC\n\+ \\r\n\+ \\ENQ\EOT\b\STX\r\ETX\DC2\EOT\129\ACK\RS \n\+ \\195\STX\n\+ \\EOT\EOT\b\STX\SO\DC2\EOT\138\ACK\EOT+\SUB\180\STX\n\+ \Features assumed to be supported by the final node. All transitive feature\n\+ \dependencies must also be set properly. For a given feature bit pair, either\n\+ \optional or remote may be set, but not both. If this field is nil or empty,\n\+ \the router will try to load destination features from the graph as a\n\+ \fallback.\n\+ \\n\+ \\r\n\+ \\ENQ\EOT\b\STX\SO\EOT\DC2\EOT\138\ACK\EOT\f\n\+ \\r\n\+ \\ENQ\EOT\b\STX\SO\ACK\DC2\EOT\138\ACK\r\ETB\n\+ \\r\n\+ \\ENQ\EOT\b\STX\SO\SOH\DC2\EOT\138\ACK\CAN%\n\+ \\r\n\+ \\ENQ\EOT\b\STX\SO\ETX\DC2\EOT\138\ACK(*\n\+ \=\n\+ \\EOT\EOT\b\STX\SI\DC2\EOT\143\ACK\EOT\FS\SUB/\n\+ \The payment address of the generated invoice.\n\+ \\n\+ \\r\n\+ \\ENQ\EOT\b\STX\SI\ENQ\DC2\EOT\143\ACK\EOT\t\n\+ \\r\n\+ \\ENQ\EOT\b\STX\SI\SOH\DC2\EOT\143\ACK\n\+ \\SYN\n\+ \\r\n\+ \\ENQ\EOT\b\STX\SI\ETX\DC2\EOT\143\ACK\EM\ESC\n\+ \\f\n\+ \\STX\EOT\t\DC2\ACK\146\ACK\NUL\151\ACK\SOH\n\+ \\v\n\+ \\ETX\EOT\t\SOH\DC2\EOT\146\ACK\b\DC4\n\+ \\f\n\+ \\EOT\EOT\t\STX\NUL\DC2\EOT\147\ACK\EOT\GS\n\+ \\r\n\+ \\ENQ\EOT\t\STX\NUL\ENQ\DC2\EOT\147\ACK\EOT\n\+ \\n\+ \\r\n\+ \\ENQ\EOT\t\STX\NUL\SOH\DC2\EOT\147\ACK\v\CAN\n\+ \\r\n\+ \\ENQ\EOT\t\STX\NUL\ETX\DC2\EOT\147\ACK\ESC\FS\n\+ \\f\n\+ \\EOT\EOT\t\STX\SOH\DC2\EOT\148\ACK\EOT\US\n\+ \\r\n\+ \\ENQ\EOT\t\STX\SOH\ENQ\DC2\EOT\148\ACK\EOT\t\n\+ \\r\n\+ \\ENQ\EOT\t\STX\SOH\SOH\DC2\EOT\148\ACK\n\+ \\SUB\n\+ \\r\n\+ \\ENQ\EOT\t\STX\SOH\ETX\DC2\EOT\148\ACK\GS\RS\n\+ \\f\n\+ \\EOT\EOT\t\STX\STX\DC2\EOT\149\ACK\EOT\FS\n\+ \\r\n\+ \\ENQ\EOT\t\STX\STX\ACK\DC2\EOT\149\ACK\EOT\t\n\+ \\r\n\+ \\ENQ\EOT\t\STX\STX\SOH\DC2\EOT\149\ACK\n\+ \\ETB\n\+ \\r\n\+ \\ENQ\EOT\t\STX\STX\ETX\DC2\EOT\149\ACK\SUB\ESC\n\+ \\f\n\+ \\EOT\EOT\t\STX\ETX\DC2\EOT\150\ACK\EOT\ESC\n\+ \\r\n\+ \\ENQ\EOT\t\STX\ETX\ENQ\DC2\EOT\150\ACK\EOT\t\n\+ \\r\n\+ \\ENQ\EOT\t\STX\ETX\SOH\DC2\EOT\150\ACK\n\+ \\SYN\n\+ \\r\n\+ \\ENQ\EOT\t\STX\ETX\ETX\DC2\EOT\150\ACK\EM\SUB\n\+ \\f\n\+ \\STX\EOT\n\+ \\DC2\ACK\153\ACK\NUL\170\ACK\SOH\n\+ \\v\n\+ \\ETX\EOT\n\+ \\SOH\DC2\EOT\153\ACK\b\SUB\n\+ \l\n\+ \\EOT\EOT\n\+ \\STX\NUL\DC2\EOT\158\ACK\EOT\ESC\SUB^\n\+ \The payment hash to use for the HTLC. When using REST, this field must be\n\+ \encoded as base64.\n\+ \\n\+ \\r\n\+ \\ENQ\EOT\n\+ \\STX\NUL\ENQ\DC2\EOT\158\ACK\EOT\t\n\+ \\r\n\+ \\ENQ\EOT\n\+ \\STX\NUL\SOH\DC2\EOT\158\ACK\n\+ \\SYN\n\+ \\r\n\+ \\ENQ\EOT\n\+ \\STX\NUL\ETX\DC2\EOT\158\ACK\EM\SUB\n\+ \\157\SOH\n\+ \\EOT\EOT\n\+ \\STX\SOH\DC2\EOT\164\ACK\EOT7\SUB\142\SOH\n\+ \An optional hex-encoded payment hash to be used for the HTLC. Deprecated now\n\+ \that the REST gateway supports base64 encoding of bytes fields.\n\+ \\n\+ \\r\n\+ \\ENQ\EOT\n\+ \\STX\SOH\ENQ\DC2\EOT\164\ACK\EOT\n\+ \\n\+ \\r\n\+ \\ENQ\EOT\n\+ \\STX\SOH\SOH\DC2\EOT\164\ACK\v\RS\n\+ \\r\n\+ \\ENQ\EOT\n\+ \\STX\SOH\ETX\DC2\EOT\164\ACK!\"\n\+ \\r\n\+ \\ENQ\EOT\n\+ \\STX\SOH\b\DC2\EOT\164\ACK#6\n\+ \\SO\n\+ \\ACK\EOT\n\+ \\STX\SOH\b\ETX\DC2\EOT\164\ACK$5\n\+ \\v\n\+ \\ETX\EOT\n\+ \\t\DC2\EOT\166\ACK\EOT\SI\n\+ \\f\n\+ \\EOT\EOT\n\+ \\t\NUL\DC2\EOT\166\ACK\r\SO\n\+ \\r\n\+ \\ENQ\EOT\n\+ \\t\NUL\SOH\DC2\EOT\166\ACK\r\SO\n\+ \\r\n\+ \\ENQ\EOT\n\+ \\t\NUL\STX\DC2\EOT\166\ACK\r\SO\n\+ \M\n\+ \\EOT\EOT\n\+ \\STX\STX\DC2\EOT\169\ACK\EOT\DC4\SUB? Route that should be used to attempt to complete the payment.\n\+ \\n\+ \\r\n\+ \\ENQ\EOT\n\+ \\STX\STX\ACK\DC2\EOT\169\ACK\EOT\t\n\+ \\r\n\+ \\ENQ\EOT\n\+ \\STX\STX\SOH\DC2\EOT\169\ACK\n\+ \\SI\n\+ \\r\n\+ \\ENQ\EOT\n\+ \\STX\STX\ETX\DC2\EOT\169\ACK\DC2\DC3\n\+ \\f\n\+ \\STX\EOT\v\DC2\ACK\172\ACK\NUL\222\ACK\SOH\n\+ \\v\n\+ \\ETX\EOT\v\SOH\DC2\EOT\172\ACK\b\FS\n\+ \N\n\+ \\EOT\EOT\v\STX\NUL\DC2\EOT\174\ACK\EOT\SUB\SUB@ The pubkey of the node that wishes to open an inbound channel.\n\+ \\n\+ \\r\n\+ \\ENQ\EOT\v\STX\NUL\ENQ\DC2\EOT\174\ACK\EOT\t\n\+ \\r\n\+ \\ENQ\EOT\v\STX\NUL\SOH\DC2\EOT\174\ACK\n\+ \\NAK\n\+ \\r\n\+ \\ENQ\EOT\v\STX\NUL\ETX\DC2\EOT\174\ACK\CAN\EM\n\+ \S\n\+ \\EOT\EOT\v\STX\SOH\DC2\EOT\177\ACK\EOT\EM\SUBE The hash of the genesis block that the proposed channel resides in.\n\+ \\n\+ \\r\n\+ \\ENQ\EOT\v\STX\SOH\ENQ\DC2\EOT\177\ACK\EOT\t\n\+ \\r\n\+ \\ENQ\EOT\v\STX\SOH\SOH\DC2\EOT\177\ACK\n\+ \\DC4\n\+ \\r\n\+ \\ENQ\EOT\v\STX\SOH\ETX\DC2\EOT\177\ACK\ETB\CAN\n\+ \'\n\+ \\EOT\EOT\v\STX\STX\DC2\EOT\180\ACK\EOT\RS\SUB\EM The pending channel id.\n\+ \\n\+ \\r\n\+ \\ENQ\EOT\v\STX\STX\ENQ\DC2\EOT\180\ACK\EOT\t\n\+ \\r\n\+ \\ENQ\EOT\v\STX\STX\SOH\DC2\EOT\180\ACK\n\+ \\EM\n\+ \\r\n\+ \\ENQ\EOT\v\STX\STX\ETX\DC2\EOT\180\ACK\FS\GS\n\+ \\\\n\+ \\EOT\EOT\v\STX\ETX\DC2\EOT\184\ACK\EOT\ESC\SUBN The funding amount in satoshis that initiator wishes to use in the\n\+ \ channel.\n\+ \\n\+ \\r\n\+ \\ENQ\EOT\v\STX\ETX\ENQ\DC2\EOT\184\ACK\EOT\n\+ \\n\+ \\r\n\+ \\ENQ\EOT\v\STX\ETX\SOH\DC2\EOT\184\ACK\v\SYN\n\+ \\r\n\+ \\ENQ\EOT\v\STX\ETX\ETX\DC2\EOT\184\ACK\EM\SUB\n\+ \I\n\+ \\EOT\EOT\v\STX\EOT\DC2\EOT\187\ACK\EOT\CAN\SUB; The push amount of the proposed channel in millisatoshis.\n\+ \\n\+ \\r\n\+ \\ENQ\EOT\v\STX\EOT\ENQ\DC2\EOT\187\ACK\EOT\n\+ \\n\+ \\r\n\+ \\ENQ\EOT\v\STX\EOT\SOH\DC2\EOT\187\ACK\v\DC3\n\+ \\r\n\+ \\ENQ\EOT\v\STX\EOT\ETX\DC2\EOT\187\ACK\SYN\ETB\n\+ \@\n\+ \\EOT\EOT\v\STX\ENQ\DC2\EOT\190\ACK\EOT\SUB\SUB2 The dust limit of the initiator's commitment tx.\n\+ \\n\+ \\r\n\+ \\ENQ\EOT\v\STX\ENQ\ENQ\DC2\EOT\190\ACK\EOT\n\+ \\n\+ \\r\n\+ \\ENQ\EOT\v\STX\ENQ\SOH\DC2\EOT\190\ACK\v\NAK\n\+ \\r\n\+ \\ENQ\EOT\v\STX\ENQ\ETX\DC2\EOT\190\ACK\CAN\EM\n\+ \b\n\+ \\EOT\EOT\v\STX\ACK\DC2\EOT\194\ACK\EOT#\SUBT The maximum amount of coins in millisatoshis that can be pending in this\n\+ \ channel.\n\+ \\n\+ \\r\n\+ \\ENQ\EOT\v\STX\ACK\ENQ\DC2\EOT\194\ACK\EOT\n\+ \\n\+ \\r\n\+ \\ENQ\EOT\v\STX\ACK\SOH\DC2\EOT\194\ACK\v\RS\n\+ \\r\n\+ \\ENQ\EOT\v\STX\ACK\ETX\DC2\EOT\194\ACK!\"\n\+ \_\n\+ \\EOT\EOT\v\STX\a\DC2\EOT\198\ACK\EOT\US\SUBQ The minimum amount of satoshis the initiator requires us to have at all\n\+ \ times.\n\+ \\n\+ \\r\n\+ \\ENQ\EOT\v\STX\a\ENQ\DC2\EOT\198\ACK\EOT\n\+ \\n\+ \\r\n\+ \\ENQ\EOT\v\STX\a\SOH\DC2\EOT\198\ACK\v\SUB\n\+ \\r\n\+ \\ENQ\EOT\v\STX\a\ETX\DC2\EOT\198\ACK\GS\RS\n\+ \R\n\+ \\EOT\EOT\v\STX\b\DC2\EOT\201\ACK\EOT\CAN\SUBD The smallest HTLC in millisatoshis that the initiator will accept.\n\+ \\n\+ \\r\n\+ \\ENQ\EOT\v\STX\b\ENQ\DC2\EOT\201\ACK\EOT\n\+ \\n\+ \\r\n\+ \\ENQ\EOT\v\STX\b\SOH\DC2\EOT\201\ACK\v\DC3\n\+ \\r\n\+ \\ENQ\EOT\v\STX\b\ETX\DC2\EOT\201\ACK\SYN\ETB\n\+ \c\n\+ \\EOT\EOT\v\STX\t\DC2\EOT\205\ACK\EOT\ESC\SUBU The initial fee rate that the initiator suggests for both commitment\n\+ \ transactions.\n\+ \\n\+ \\r\n\+ \\ENQ\EOT\v\STX\t\ENQ\DC2\EOT\205\ACK\EOT\n\+ \\n\+ \\r\n\+ \\ENQ\EOT\v\STX\t\SOH\DC2\EOT\205\ACK\v\NAK\n\+ \\r\n\+ \\ENQ\EOT\v\STX\t\ETX\DC2\EOT\205\ACK\CAN\SUB\n\+ \\129\SOH\n\+ \\EOT\EOT\v\STX\n\+ \\DC2\EOT\211\ACK\EOT\SUB\SUBs\n\+ \The number of blocks to use for the relative time lock in the pay-to-self\n\+ \output of both commitment transactions.\n\+ \\n\+ \\r\n\+ \\ENQ\EOT\v\STX\n\+ \\ENQ\DC2\EOT\211\ACK\EOT\n\+ \\n\+ \\r\n\+ \\ENQ\EOT\v\STX\n\+ \\SOH\DC2\EOT\211\ACK\v\DC4\n\+ \\r\n\+ \\ENQ\EOT\v\STX\n\+ \\ETX\DC2\EOT\211\ACK\ETB\EM\n\+ \S\n\+ \\EOT\EOT\v\STX\v\DC2\EOT\214\ACK\EOT#\SUBE The total number of incoming HTLC's that the initiator will accept.\n\+ \\n\+ \\r\n\+ \\ENQ\EOT\v\STX\v\ENQ\DC2\EOT\214\ACK\EOT\n\+ \\n\+ \\r\n\+ \\ENQ\EOT\v\STX\v\SOH\DC2\EOT\214\ACK\v\GS\n\+ \\r\n\+ \\ENQ\EOT\v\STX\v\ETX\DC2\EOT\214\ACK \"\n\+ \[\n\+ \\EOT\EOT\v\STX\f\DC2\EOT\218\ACK\EOT\RS\SUBM A bit-field which the initiator uses to specify proposed channel\n\+ \ behavior.\n\+ \\n\+ \\r\n\+ \\ENQ\EOT\v\STX\f\ENQ\DC2\EOT\218\ACK\EOT\n\+ \\n\+ \\r\n\+ \\ENQ\EOT\v\STX\f\SOH\DC2\EOT\218\ACK\v\CAN\n\+ \\r\n\+ \\ENQ\EOT\v\STX\f\ETX\DC2\EOT\218\ACK\ESC\GS\n\+ \Y\n\+ \\EOT\EOT\v\STX\r\DC2\EOT\221\ACK\EOT(\SUBK The commitment type the initiator wishes to use for the proposed channel.\n\+ \\n\+ \\r\n\+ \\ENQ\EOT\v\STX\r\ACK\DC2\EOT\221\ACK\EOT\DC2\n\+ \\r\n\+ \\ENQ\EOT\v\STX\r\SOH\DC2\EOT\221\ACK\DC3\"\n\+ \\r\n\+ \\ENQ\EOT\v\STX\r\ETX\DC2\EOT\221\ACK%'\n\+ \\f\n\+ \\STX\EOT\f\DC2\ACK\224\ACK\NUL\154\a\SOH\n\+ \\v\n\+ \\ETX\EOT\f\SOH\DC2\EOT\224\ACK\b\GS\n\+ \>\n\+ \\EOT\EOT\f\STX\NUL\DC2\EOT\226\ACK\EOT\DC4\SUB0 Whether or not the client accepts the channel.\n\+ \\n\+ \\r\n\+ \\ENQ\EOT\f\STX\NUL\ENQ\DC2\EOT\226\ACK\EOT\b\n\+ \\r\n\+ \\ENQ\EOT\f\STX\NUL\SOH\DC2\EOT\226\ACK\t\SI\n\+ \\r\n\+ \\ENQ\EOT\f\STX\NUL\ETX\DC2\EOT\226\ACK\DC2\DC3\n\+ \F\n\+ \\EOT\EOT\f\STX\SOH\DC2\EOT\229\ACK\EOT\RS\SUB8 The pending channel id to which this response applies.\n\+ \\n\+ \\r\n\+ \\ENQ\EOT\f\STX\SOH\ENQ\DC2\EOT\229\ACK\EOT\t\n\+ \\r\n\+ \\ENQ\EOT\f\STX\SOH\SOH\DC2\EOT\229\ACK\n\+ \\EM\n\+ \\r\n\+ \\ENQ\EOT\f\STX\SOH\ETX\DC2\EOT\229\ACK\FS\GS\n\+ \\138\ETX\n\+ \\EOT\EOT\f\STX\STX\DC2\EOT\239\ACK\EOT\NAK\SUB\251\STX\n\+ \An optional error to send the initiating party to indicate why the channel\n\+ \was rejected. This field *should not* contain sensitive information, it will\n\+ \be sent to the initiating party. This field should only be set if accept is\n\+ \false, the channel will be rejected if an error is set with accept=true\n\+ \because the meaning of this response is ambiguous. Limited to 500\n\+ \characters.\n\+ \\n\+ \\r\n\+ \\ENQ\EOT\f\STX\STX\ENQ\DC2\EOT\239\ACK\EOT\n\+ \\n\+ \\r\n\+ \\ENQ\EOT\f\STX\STX\SOH\DC2\EOT\239\ACK\v\DLE\n\+ \\r\n\+ \\ENQ\EOT\f\STX\STX\ETX\DC2\EOT\239\ACK\DC3\DC4\n\+ \\140\STX\n\+ \\EOT\EOT\f\STX\ETX\DC2\EOT\247\ACK\EOT \SUB\253\SOH\n\+ \The upfront shutdown address to use if the initiating peer supports option\n\+ \upfront shutdown script (see ListPeers for the features supported). Note\n\+ \that the channel open will fail if this value is set for a peer that does\n\+ \not support this feature bit.\n\+ \\n\+ \\r\n\+ \\ENQ\EOT\f\STX\ETX\ENQ\DC2\EOT\247\ACK\EOT\n\+ \\n\+ \\r\n\+ \\ENQ\EOT\f\STX\ETX\SOH\DC2\EOT\247\ACK\v\ESC\n\+ \\r\n\+ \\ENQ\EOT\f\STX\ETX\ETX\DC2\EOT\247\ACK\RS\US\n\+ \O\n\+ \\EOT\EOT\f\STX\EOT\DC2\EOT\252\ACK\EOT\EM\SUBA\n\+ \The csv delay (in blocks) that we require for the remote party.\n\+ \\n\+ \\r\n\+ \\ENQ\EOT\f\STX\EOT\ENQ\DC2\EOT\252\ACK\EOT\n\+ \\n\+ \\r\n\+ \\ENQ\EOT\f\STX\EOT\SOH\DC2\EOT\252\ACK\v\DC4\n\+ \\r\n\+ \\ENQ\EOT\f\STX\EOT\ETX\DC2\EOT\252\ACK\ETB\CAN\n\+ \\187\STX\n\+ \\EOT\EOT\f\STX\ENQ\DC2\EOT\132\a\EOT\ESC\SUB\172\STX\n\+ \The reserve amount in satoshis that we require the remote peer to adhere to.\n\+ \We require that the remote peer always have some reserve amount allocated to\n\+ \them so that there is always a disincentive to broadcast old state (if they\n\+ \hold 0 sats on their side of the channel, there is nothing to lose).\n\+ \\n\+ \\r\n\+ \\ENQ\EOT\f\STX\ENQ\ENQ\DC2\EOT\132\a\EOT\n\+ \\n\+ \\r\n\+ \\ENQ\EOT\f\STX\ENQ\SOH\DC2\EOT\132\a\v\SYN\n\+ \\r\n\+ \\ENQ\EOT\f\STX\ENQ\ETX\DC2\EOT\132\a\EM\SUB\n\+ \x\n\+ \\EOT\EOT\f\STX\ACK\DC2\EOT\138\a\EOT\"\SUBj\n\+ \The maximum amount of funds in millisatoshis that we allow the remote peer\n\+ \to have in outstanding htlcs.\n\+ \\n\+ \\r\n\+ \\ENQ\EOT\f\STX\ACK\ENQ\DC2\EOT\138\a\EOT\n\+ \\n\+ \\r\n\+ \\ENQ\EOT\f\STX\ACK\SOH\DC2\EOT\138\a\v\GS\n\+ \\r\n\+ \\ENQ\EOT\f\STX\ACK\ETX\DC2\EOT\138\a !\n\+ \N\n\+ \\EOT\EOT\f\STX\a\DC2\EOT\143\a\EOT\RS\SUB@\n\+ \The maximum number of htlcs that the remote peer can offer us.\n\+ \\n\+ \\r\n\+ \\ENQ\EOT\f\STX\a\ENQ\DC2\EOT\143\a\EOT\n\+ \\n\+ \\r\n\+ \\ENQ\EOT\f\STX\a\SOH\DC2\EOT\143\a\v\EM\n\+ \\r\n\+ \\ENQ\EOT\f\STX\a\ETX\DC2\EOT\143\a\FS\GS\n\+ \U\n\+ \\EOT\EOT\f\STX\b\DC2\EOT\148\a\EOT\ESC\SUBG\n\+ \The minimum value in millisatoshis for incoming htlcs on the channel.\n\+ \\n\+ \\r\n\+ \\ENQ\EOT\f\STX\b\ENQ\DC2\EOT\148\a\EOT\n\+ \\n\+ \\r\n\+ \\ENQ\EOT\f\STX\b\SOH\DC2\EOT\148\a\v\SYN\n\+ \\r\n\+ \\ENQ\EOT\f\STX\b\ETX\DC2\EOT\148\a\EM\SUB\n\+ \[\n\+ \\EOT\EOT\f\STX\t\DC2\EOT\153\a\EOT!\SUBM\n\+ \The number of confirmations we require before we consider the channel open.\n\+ \\n\+ \\r\n\+ \\ENQ\EOT\f\STX\t\ENQ\DC2\EOT\153\a\EOT\n\+ \\n\+ \\r\n\+ \\ENQ\EOT\f\STX\t\SOH\DC2\EOT\153\a\v\ESC\n\+ \\r\n\+ \\ENQ\EOT\f\STX\t\ETX\DC2\EOT\153\a\RS \n\+ \\f\n\+ \\STX\EOT\r\DC2\ACK\156\a\NUL\163\a\SOH\n\+ \\v\n\+ \\ETX\EOT\r\SOH\DC2\EOT\156\a\b\CAN\n\+ \9\n\+ \\EOT\EOT\r\STX\NUL\DC2\EOT\158\a\EOT\SYN\SUB+ The identity pubkey of the Lightning node\n\+ \\n\+ \\r\n\+ \\ENQ\EOT\r\STX\NUL\ENQ\DC2\EOT\158\a\EOT\n\+ \\n\+ \\r\n\+ \\ENQ\EOT\r\STX\NUL\SOH\DC2\EOT\158\a\v\DC1\n\+ \\r\n\+ \\ENQ\EOT\r\STX\NUL\ETX\DC2\EOT\158\a\DC4\NAK\n\+ \i\n\+ \\EOT\EOT\r\STX\SOH\DC2\EOT\162\a\EOT\DC4\SUB[ The network location of the lightning node, e.g. `69.69.69.69:1337` or\n\+ \ `localhost:10011`\n\+ \\n\+ \\r\n\+ \\ENQ\EOT\r\STX\SOH\ENQ\DC2\EOT\162\a\EOT\n\+ \\n\+ \\r\n\+ \\ENQ\EOT\r\STX\SOH\SOH\DC2\EOT\162\a\v\SI\n\+ \\r\n\+ \\ENQ\EOT\r\STX\SOH\ETX\DC2\EOT\162\a\DC2\DC3\n\+ \\f\n\+ \\STX\EOT\SO\DC2\ACK\165\a\NUL\179\a\SOH\n\+ \\v\n\+ \\ETX\EOT\SO\SOH\DC2\EOT\165\a\b\SUB\n\+ \F\n\+ \\EOT\EOT\SO\STX\NUL\DC2\EOT\167\a\EOT(\SUB8 The map from addresses to amounts for the transaction.\n\+ \\n\+ \\r\n\+ \\ENQ\EOT\SO\STX\NUL\ACK\DC2\EOT\167\a\EOT\SYN\n\+ \\r\n\+ \\ENQ\EOT\SO\STX\NUL\SOH\DC2\EOT\167\a\ETB#\n\+ \\r\n\+ \\ENQ\EOT\SO\STX\NUL\ETX\DC2\EOT\167\a&'\n\+ \Z\n\+ \\EOT\EOT\SO\STX\SOH\DC2\EOT\171\a\EOT\SUB\SUBL The target number of blocks that this transaction should be confirmed\n\+ \ by.\n\+ \\n\+ \\r\n\+ \\ENQ\EOT\SO\STX\SOH\ENQ\DC2\EOT\171\a\EOT\t\n\+ \\r\n\+ \\ENQ\EOT\SO\STX\SOH\SOH\DC2\EOT\171\a\n\+ \\NAK\n\+ \\r\n\+ \\ENQ\EOT\SO\STX\SOH\ETX\DC2\EOT\171\a\CAN\EM\n\+ \t\n\+ \\EOT\EOT\SO\STX\STX\DC2\EOT\175\a\EOT\CAN\SUBf The minimum number of confirmations each one of your outputs used for\n\+ \ the transaction must satisfy.\n\+ \\n\+ \\r\n\+ \\ENQ\EOT\SO\STX\STX\ENQ\DC2\EOT\175\a\EOT\t\n\+ \\r\n\+ \\ENQ\EOT\SO\STX\STX\SOH\DC2\EOT\175\a\n\+ \\DC3\n\+ \\r\n\+ \\ENQ\EOT\SO\STX\STX\ETX\DC2\EOT\175\a\SYN\ETB\n\+ \Y\n\+ \\EOT\EOT\SO\STX\ETX\DC2\EOT\178\a\EOT\US\SUBK Whether unconfirmed outputs should be used as inputs for the transaction.\n\+ \\n\+ \\r\n\+ \\ENQ\EOT\SO\STX\ETX\ENQ\DC2\EOT\178\a\EOT\b\n\+ \\r\n\+ \\ENQ\EOT\SO\STX\ETX\SOH\DC2\EOT\178\a\t\SUB\n\+ \\r\n\+ \\ENQ\EOT\SO\STX\ETX\ETX\DC2\EOT\178\a\GS\RS\n\+ \\f\n\+ \\STX\EOT\SI\DC2\ACK\181\a\NUL\191\a\SOH\n\+ \\v\n\+ \\ETX\EOT\SI\SOH\DC2\EOT\181\a\b\ESC\n\+ \*\n\+ \\EOT\EOT\SI\STX\NUL\DC2\EOT\183\a\EOT\SYN\SUB\FS The total fee in satoshis.\n\+ \\n\+ \\r\n\+ \\ENQ\EOT\SI\STX\NUL\ENQ\DC2\EOT\183\a\EOT\t\n\+ \\r\n\+ \\ENQ\EOT\SI\STX\NUL\SOH\DC2\EOT\183\a\n\+ \\DC1\n\+ \\r\n\+ \\ENQ\EOT\SI\STX\NUL\ETX\DC2\EOT\183\a\DC4\NAK\n\+ \N\n\+ \\EOT\EOT\SI\STX\SOH\DC2\EOT\187\a\EOT7\SUB@ Deprecated, use sat_per_vbyte.\n\+ \ The fee rate in satoshi/vbyte.\n\+ \\n\+ \\r\n\+ \\ENQ\EOT\SI\STX\SOH\ENQ\DC2\EOT\187\a\EOT\t\n\+ \\r\n\+ \\ENQ\EOT\SI\STX\SOH\SOH\DC2\EOT\187\a\n\+ \\RS\n\+ \\r\n\+ \\ENQ\EOT\SI\STX\SOH\ETX\DC2\EOT\187\a!\"\n\+ \\r\n\+ \\ENQ\EOT\SI\STX\SOH\b\DC2\EOT\187\a#6\n\+ \\SO\n\+ \\ACK\EOT\SI\STX\SOH\b\ETX\DC2\EOT\187\a$5\n\+ \.\n\+ \\EOT\EOT\SI\STX\STX\DC2\EOT\190\a\EOT\GS\SUB The fee rate in satoshi/vbyte.\n\+ \\n\+ \\r\n\+ \\ENQ\EOT\SI\STX\STX\ENQ\DC2\EOT\190\a\EOT\n\+ \\n\+ \\r\n\+ \\ENQ\EOT\SI\STX\STX\SOH\DC2\EOT\190\a\v\CAN\n\+ \\r\n\+ \\ENQ\EOT\SI\STX\STX\ETX\DC2\EOT\190\a\ESC\FS\n\+ \\f\n\+ \\STX\EOT\DLE\DC2\ACK\193\a\NUL\219\a\SOH\n\+ \\v\n\+ \\ETX\EOT\DLE\SOH\DC2\EOT\193\a\b\ETB\n\+ \1\n\+ \\EOT\EOT\DLE\STX\NUL\DC2\EOT\195\a\EOT(\SUB# The map from addresses to amounts\n\+ \\n\+ \\r\n\+ \\ENQ\EOT\DLE\STX\NUL\ACK\DC2\EOT\195\a\EOT\SYN\n\+ \\r\n\+ \\ENQ\EOT\DLE\STX\NUL\SOH\DC2\EOT\195\a\ETB#\n\+ \\r\n\+ \\ENQ\EOT\DLE\STX\NUL\ETX\DC2\EOT\195\a&'\n\+ \Z\n\+ \\EOT\EOT\DLE\STX\SOH\DC2\EOT\199\a\EOT\SUB\SUBL The target number of blocks that this transaction should be confirmed\n\+ \ by.\n\+ \\n\+ \\r\n\+ \\ENQ\EOT\DLE\STX\SOH\ENQ\DC2\EOT\199\a\EOT\t\n\+ \\r\n\+ \\ENQ\EOT\DLE\STX\SOH\SOH\DC2\EOT\199\a\n\+ \\NAK\n\+ \\r\n\+ \\ENQ\EOT\DLE\STX\SOH\ETX\DC2\EOT\199\a\CAN\EM\n\+ \f\n\+ \\EOT\EOT\DLE\STX\STX\DC2\EOT\203\a\EOT\GS\SUBX A manual fee rate set in sat/vbyte that should be used when crafting the\n\+ \ transaction.\n\+ \\n\+ \\r\n\+ \\ENQ\EOT\DLE\STX\STX\ENQ\DC2\EOT\203\a\EOT\n\+ \\n\+ \\r\n\+ \\ENQ\EOT\DLE\STX\STX\SOH\DC2\EOT\203\a\v\CAN\n\+ \\r\n\+ \\ENQ\EOT\DLE\STX\STX\ETX\DC2\EOT\203\a\ESC\FS\n\+ \\134\SOH\n\+ \\EOT\EOT\DLE\STX\ETX\DC2\EOT\208\a\EOT/\SUBx Deprecated, use sat_per_vbyte.\n\+ \ A manual fee rate set in sat/vbyte that should be used when crafting the\n\+ \ transaction.\n\+ \\n\+ \\r\n\+ \\ENQ\EOT\DLE\STX\ETX\ENQ\DC2\EOT\208\a\EOT\t\n\+ \\r\n\+ \\ENQ\EOT\DLE\STX\ETX\SOH\DC2\EOT\208\a\n\+ \\SYN\n\+ \\r\n\+ \\ENQ\EOT\DLE\STX\ETX\ETX\DC2\EOT\208\a\EM\SUB\n\+ \\r\n\+ \\ENQ\EOT\DLE\STX\ETX\b\DC2\EOT\208\a\ESC.\n\+ \\SO\n\+ \\ACK\EOT\DLE\STX\ETX\b\ETX\DC2\EOT\208\a\FS-\n\+ \Q\n\+ \\EOT\EOT\DLE\STX\EOT\DC2\EOT\211\a\EOT\NAK\SUBC An optional label for the transaction, limited to 500 characters.\n\+ \\n\+ \\r\n\+ \\ENQ\EOT\DLE\STX\EOT\ENQ\DC2\EOT\211\a\EOT\n\+ \\n\+ \\r\n\+ \\ENQ\EOT\DLE\STX\EOT\SOH\DC2\EOT\211\a\v\DLE\n\+ \\r\n\+ \\ENQ\EOT\DLE\STX\EOT\ETX\DC2\EOT\211\a\DC3\DC4\n\+ \t\n\+ \\EOT\EOT\DLE\STX\ENQ\DC2\EOT\215\a\EOT\CAN\SUBf The minimum number of confirmations each one of your outputs used for\n\+ \ the transaction must satisfy.\n\+ \\n\+ \\r\n\+ \\ENQ\EOT\DLE\STX\ENQ\ENQ\DC2\EOT\215\a\EOT\t\n\+ \\r\n\+ \\ENQ\EOT\DLE\STX\ENQ\SOH\DC2\EOT\215\a\n\+ \\DC3\n\+ \\r\n\+ \\ENQ\EOT\DLE\STX\ENQ\ETX\DC2\EOT\215\a\SYN\ETB\n\+ \Y\n\+ \\EOT\EOT\DLE\STX\ACK\DC2\EOT\218\a\EOT\US\SUBK Whether unconfirmed outputs should be used as inputs for the transaction.\n\+ \\n\+ \\r\n\+ \\ENQ\EOT\DLE\STX\ACK\ENQ\DC2\EOT\218\a\EOT\b\n\+ \\r\n\+ \\ENQ\EOT\DLE\STX\ACK\SOH\DC2\EOT\218\a\t\SUB\n\+ \\r\n\+ \\ENQ\EOT\DLE\STX\ACK\ETX\DC2\EOT\218\a\GS\RS\n\+ \\f\n\+ \\STX\EOT\DC1\DC2\ACK\220\a\NUL\223\a\SOH\n\+ \\v\n\+ \\ETX\EOT\DC1\SOH\DC2\EOT\220\a\b\CAN\n\+ \)\n\+ \\EOT\EOT\DC1\STX\NUL\DC2\EOT\222\a\EOT\DC4\SUB\ESC The id of the transaction\n\+ \\n\+ \\r\n\+ \\ENQ\EOT\DC1\STX\NUL\ENQ\DC2\EOT\222\a\EOT\n\+ \\n\+ \\r\n\+ \\ENQ\EOT\DC1\STX\NUL\SOH\DC2\EOT\222\a\v\SI\n\+ \\r\n\+ \\ENQ\EOT\DC1\STX\NUL\ETX\DC2\EOT\222\a\DC2\DC3\n\+ \\f\n\+ \\STX\EOT\DC2\DC2\ACK\225\a\NUL\133\b\SOH\n\+ \\v\n\+ \\ETX\EOT\DC2\SOH\DC2\EOT\225\a\b\CAN\n\+ \,\n\+ \\EOT\EOT\DC2\STX\NUL\DC2\EOT\227\a\EOT\DC4\SUB\RS The address to send coins to\n\+ \\n\+ \\r\n\+ \\ENQ\EOT\DC2\STX\NUL\ENQ\DC2\EOT\227\a\EOT\n\+ \\n\+ \\r\n\+ \\ENQ\EOT\DC2\STX\NUL\SOH\DC2\EOT\227\a\v\SI\n\+ \\r\n\+ \\ENQ\EOT\DC2\STX\NUL\ETX\DC2\EOT\227\a\DC2\DC3\n\+ \.\n\+ \\EOT\EOT\DC2\STX\SOH\DC2\EOT\230\a\EOT\NAK\SUB The amount in satoshis to send\n\+ \\n\+ \\r\n\+ \\ENQ\EOT\DC2\STX\SOH\ENQ\DC2\EOT\230\a\EOT\t\n\+ \\r\n\+ \\ENQ\EOT\DC2\STX\SOH\SOH\DC2\EOT\230\a\n\+ \\DLE\n\+ \\r\n\+ \\ENQ\EOT\DC2\STX\SOH\ETX\DC2\EOT\230\a\DC3\DC4\n\+ \Z\n\+ \\EOT\EOT\DC2\STX\STX\DC2\EOT\234\a\EOT\SUB\SUBL The target number of blocks that this transaction should be confirmed\n\+ \ by.\n\+ \\n\+ \\r\n\+ \\ENQ\EOT\DC2\STX\STX\ENQ\DC2\EOT\234\a\EOT\t\n\+ \\r\n\+ \\ENQ\EOT\DC2\STX\STX\SOH\DC2\EOT\234\a\n\+ \\NAK\n\+ \\r\n\+ \\ENQ\EOT\DC2\STX\STX\ETX\DC2\EOT\234\a\CAN\EM\n\+ \f\n\+ \\EOT\EOT\DC2\STX\ETX\DC2\EOT\238\a\EOT\GS\SUBX A manual fee rate set in sat/vbyte that should be used when crafting the\n\+ \ transaction.\n\+ \\n\+ \\r\n\+ \\ENQ\EOT\DC2\STX\ETX\ENQ\DC2\EOT\238\a\EOT\n\+ \\n\+ \\r\n\+ \\ENQ\EOT\DC2\STX\ETX\SOH\DC2\EOT\238\a\v\CAN\n\+ \\r\n\+ \\ENQ\EOT\DC2\STX\ETX\ETX\DC2\EOT\238\a\ESC\FS\n\+ \\134\SOH\n\+ \\EOT\EOT\DC2\STX\EOT\DC2\EOT\243\a\EOT/\SUBx Deprecated, use sat_per_vbyte.\n\+ \ A manual fee rate set in sat/vbyte that should be used when crafting the\n\+ \ transaction.\n\+ \\n\+ \\r\n\+ \\ENQ\EOT\DC2\STX\EOT\ENQ\DC2\EOT\243\a\EOT\t\n\+ \\r\n\+ \\ENQ\EOT\DC2\STX\EOT\SOH\DC2\EOT\243\a\n\+ \\SYN\n\+ \\r\n\+ \\ENQ\EOT\DC2\STX\EOT\ETX\DC2\EOT\243\a\EM\SUB\n\+ \\r\n\+ \\ENQ\EOT\DC2\STX\EOT\b\DC2\EOT\243\a\ESC.\n\+ \\SO\n\+ \\ACK\EOT\DC2\STX\EOT\b\ETX\DC2\EOT\243\a\FS-\n\+ \\169\SOH\n\+ \\EOT\EOT\DC2\STX\ENQ\DC2\EOT\250\a\EOT\SYN\SUB\154\SOH\n\+ \If set, then the amount field will be ignored, and lnd will attempt to\n\+ \send all the coins under control of the internal wallet to the specified\n\+ \address.\n\+ \\n\+ \\r\n\+ \\ENQ\EOT\DC2\STX\ENQ\ENQ\DC2\EOT\250\a\EOT\b\n\+ \\r\n\+ \\ENQ\EOT\DC2\STX\ENQ\SOH\DC2\EOT\250\a\t\DC1\n\+ \\r\n\+ \\ENQ\EOT\DC2\STX\ENQ\ETX\DC2\EOT\250\a\DC4\NAK\n\+ \Q\n\+ \\EOT\EOT\DC2\STX\ACK\DC2\EOT\253\a\EOT\NAK\SUBC An optional label for the transaction, limited to 500 characters.\n\+ \\n\+ \\r\n\+ \\ENQ\EOT\DC2\STX\ACK\ENQ\DC2\EOT\253\a\EOT\n\+ \\n\+ \\r\n\+ \\ENQ\EOT\DC2\STX\ACK\SOH\DC2\EOT\253\a\v\DLE\n\+ \\r\n\+ \\ENQ\EOT\DC2\STX\ACK\ETX\DC2\EOT\253\a\DC3\DC4\n\+ \t\n\+ \\EOT\EOT\DC2\STX\a\DC2\EOT\129\b\EOT\CAN\SUBf The minimum number of confirmations each one of your outputs used for\n\+ \ the transaction must satisfy.\n\+ \\n\+ \\r\n\+ \\ENQ\EOT\DC2\STX\a\ENQ\DC2\EOT\129\b\EOT\t\n\+ \\r\n\+ \\ENQ\EOT\DC2\STX\a\SOH\DC2\EOT\129\b\n\+ \\DC3\n\+ \\r\n\+ \\ENQ\EOT\DC2\STX\a\ETX\DC2\EOT\129\b\SYN\ETB\n\+ \Y\n\+ \\EOT\EOT\DC2\STX\b\DC2\EOT\132\b\EOT\US\SUBK Whether unconfirmed outputs should be used as inputs for the transaction.\n\+ \\n\+ \\r\n\+ \\ENQ\EOT\DC2\STX\b\ENQ\DC2\EOT\132\b\EOT\b\n\+ \\r\n\+ \\ENQ\EOT\DC2\STX\b\SOH\DC2\EOT\132\b\t\SUB\n\+ \\r\n\+ \\ENQ\EOT\DC2\STX\b\ETX\DC2\EOT\132\b\GS\RS\n\+ \\f\n\+ \\STX\EOT\DC3\DC2\ACK\134\b\NUL\137\b\SOH\n\+ \\v\n\+ \\ETX\EOT\DC3\SOH\DC2\EOT\134\b\b\EM\n\+ \5\n\+ \\EOT\EOT\DC3\STX\NUL\DC2\EOT\136\b\EOT\DC4\SUB' The transaction ID of the transaction\n\+ \\n\+ \\r\n\+ \\ENQ\EOT\DC3\STX\NUL\ENQ\DC2\EOT\136\b\EOT\n\+ \\n\+ \\r\n\+ \\ENQ\EOT\DC3\STX\NUL\SOH\DC2\EOT\136\b\v\SI\n\+ \\r\n\+ \\ENQ\EOT\DC3\STX\NUL\ETX\DC2\EOT\136\b\DC2\DC3\n\+ \\f\n\+ \\STX\EOT\DC4\DC2\ACK\139\b\NUL\148\b\SOH\n\+ \\v\n\+ \\ETX\EOT\DC4\SOH\DC2\EOT\139\b\b\SUB\n\+ \C\n\+ \\EOT\EOT\DC4\STX\NUL\DC2\EOT\141\b\EOT\CAN\SUB5 The minimum number of confirmations to be included.\n\+ \\n\+ \\r\n\+ \\ENQ\EOT\DC4\STX\NUL\ENQ\DC2\EOT\141\b\EOT\t\n\+ \\r\n\+ \\ENQ\EOT\DC4\STX\NUL\SOH\DC2\EOT\141\b\n\+ \\DC3\n\+ \\r\n\+ \\ENQ\EOT\DC4\STX\NUL\ETX\DC2\EOT\141\b\SYN\ETB\n\+ \C\n\+ \\EOT\EOT\DC4\STX\SOH\DC2\EOT\144\b\EOT\CAN\SUB5 The maximum number of confirmations to be included.\n\+ \\n\+ \\r\n\+ \\ENQ\EOT\DC4\STX\SOH\ENQ\DC2\EOT\144\b\EOT\t\n\+ \\r\n\+ \\ENQ\EOT\DC4\STX\SOH\SOH\DC2\EOT\144\b\n\+ \\DC3\n\+ \\r\n\+ \\ENQ\EOT\DC4\STX\SOH\ETX\DC2\EOT\144\b\SYN\ETB\n\+ \S\n\+ \\EOT\EOT\DC4\STX\STX\DC2\EOT\147\b\EOT\ETB\SUBE An optional filter to only include outputs belonging to an account.\n\+ \\n\+ \\r\n\+ \\ENQ\EOT\DC4\STX\STX\ENQ\DC2\EOT\147\b\EOT\n\+ \\n\+ \\r\n\+ \\ENQ\EOT\DC4\STX\STX\SOH\DC2\EOT\147\b\v\DC2\n\+ \\r\n\+ \\ENQ\EOT\DC4\STX\STX\ETX\DC2\EOT\147\b\NAK\SYN\n\+ \\f\n\+ \\STX\EOT\NAK\DC2\ACK\149\b\NUL\152\b\SOH\n\+ \\v\n\+ \\ETX\EOT\NAK\SOH\DC2\EOT\149\b\b\ESC\n\+ \\US\n\+ \\EOT\EOT\NAK\STX\NUL\DC2\EOT\151\b\EOT\FS\SUB\DC1 A list of utxos\n\+ \\n\+ \\r\n\+ \\ENQ\EOT\NAK\STX\NUL\EOT\DC2\EOT\151\b\EOT\f\n\+ \\r\n\+ \\ENQ\EOT\NAK\STX\NUL\ACK\DC2\EOT\151\b\r\DC1\n\+ \\r\n\+ \\ENQ\EOT\NAK\STX\NUL\SOH\DC2\EOT\151\b\DC2\ETB\n\+ \\r\n\+ \\ENQ\EOT\NAK\STX\NUL\ETX\DC2\EOT\151\b\SUB\ESC\n\+ \\182\SOH\n\+ \\STX\ENQ\NUL\DC2\ACK\160\b\NUL\165\b\SOH\SUB\167\SOH\n\+ \`AddressType` has to be one of:\n\+ \\n\+ \- `p2wkh`: Pay to witness key hash (`WITNESS_PUBKEY_HASH` = 0)\n\+ \- `np2wkh`: Pay to nested witness key hash (`NESTED_PUBKEY_HASH` = 1)\n\+ \\n\+ \\v\n\+ \\ETX\ENQ\NUL\SOH\DC2\EOT\160\b\ENQ\DLE\n\+ \\f\n\+ \\EOT\ENQ\NUL\STX\NUL\DC2\EOT\161\b\EOT\FS\n\+ \\r\n\+ \\ENQ\ENQ\NUL\STX\NUL\SOH\DC2\EOT\161\b\EOT\ETB\n\+ \\r\n\+ \\ENQ\ENQ\NUL\STX\NUL\STX\DC2\EOT\161\b\SUB\ESC\n\+ \\f\n\+ \\EOT\ENQ\NUL\STX\SOH\DC2\EOT\162\b\EOT\ESC\n\+ \\r\n\+ \\ENQ\ENQ\NUL\STX\SOH\SOH\DC2\EOT\162\b\EOT\SYN\n\+ \\r\n\+ \\ENQ\ENQ\NUL\STX\SOH\STX\DC2\EOT\162\b\EM\SUB\n\+ \\f\n\+ \\EOT\ENQ\NUL\STX\STX\DC2\EOT\163\b\EOT#\n\+ \\r\n\+ \\ENQ\ENQ\NUL\STX\STX\SOH\DC2\EOT\163\b\EOT\RS\n\+ \\r\n\+ \\ENQ\ENQ\NUL\STX\STX\STX\DC2\EOT\163\b!\"\n\+ \\f\n\+ \\EOT\ENQ\NUL\STX\ETX\DC2\EOT\164\b\EOT\"\n\+ \\r\n\+ \\ENQ\ENQ\NUL\STX\ETX\SOH\DC2\EOT\164\b\EOT\GS\n\+ \\r\n\+ \\ENQ\ENQ\NUL\STX\ETX\STX\DC2\EOT\164\b !\n\+ \\f\n\+ \\STX\EOT\SYN\DC2\ACK\167\b\NUL\176\b\SOH\n\+ \\v\n\+ \\ETX\EOT\SYN\SOH\DC2\EOT\167\b\b\EM\n\+ \0\n\+ \\EOT\EOT\SYN\STX\NUL\DC2\EOT\169\b\EOT\EM\SUB\" The type of address to generate.\n\+ \\n\+ \\r\n\+ \\ENQ\EOT\SYN\STX\NUL\ACK\DC2\EOT\169\b\EOT\SI\n\+ \\r\n\+ \\ENQ\EOT\SYN\STX\NUL\SOH\DC2\EOT\169\b\DLE\DC4\n\+ \\r\n\+ \\ENQ\EOT\SYN\STX\NUL\ETX\DC2\EOT\169\b\ETB\CAN\n\+ \t\n\+ \\EOT\EOT\SYN\STX\SOH\DC2\EOT\175\b\EOT\ETB\SUBf\n\+ \The name of the account to generate a new address for. If empty, the\n\+ \default wallet account is used.\n\+ \\n\+ \\r\n\+ \\ENQ\EOT\SYN\STX\SOH\ENQ\DC2\EOT\175\b\EOT\n\+ \\n\+ \\r\n\+ \\ENQ\EOT\SYN\STX\SOH\SOH\DC2\EOT\175\b\v\DC2\n\+ \\r\n\+ \\ENQ\EOT\SYN\STX\SOH\ETX\DC2\EOT\175\b\NAK\SYN\n\+ \\f\n\+ \\STX\EOT\ETB\DC2\ACK\177\b\NUL\180\b\SOH\n\+ \\v\n\+ \\ETX\EOT\ETB\SOH\DC2\EOT\177\b\b\SUB\n\+ \2\n\+ \\EOT\EOT\ETB\STX\NUL\DC2\EOT\179\b\EOT\ETB\SUB$ The newly generated wallet address\n\+ \\n\+ \\r\n\+ \\ENQ\EOT\ETB\STX\NUL\ENQ\DC2\EOT\179\b\EOT\n\+ \\n\+ \\r\n\+ \\ENQ\EOT\ETB\STX\NUL\SOH\DC2\EOT\179\b\v\DC2\n\+ \\r\n\+ \\ENQ\EOT\ETB\STX\NUL\ETX\DC2\EOT\179\b\NAK\SYN\n\+ \\f\n\+ \\STX\EOT\CAN\DC2\ACK\182\b\NUL\194\b\SOH\n\+ \\v\n\+ \\ETX\EOT\CAN\SOH\DC2\EOT\182\b\b\SUB\n\+ \`\n\+ \\EOT\EOT\CAN\STX\NUL\DC2\EOT\187\b\EOT\DC2\SUBR\n\+ \The message to be signed. When using REST, this field must be encoded as\n\+ \base64.\n\+ \\n\+ \\r\n\+ \\ENQ\EOT\CAN\STX\NUL\ENQ\DC2\EOT\187\b\EOT\t\n\+ \\r\n\+ \\ENQ\EOT\CAN\STX\NUL\SOH\DC2\EOT\187\b\n\+ \\r\n\+ \\r\n\+ \\ENQ\EOT\CAN\STX\NUL\ETX\DC2\EOT\187\b\DLE\DC1\n\+ \\130\SOH\n\+ \\EOT\EOT\CAN\STX\SOH\DC2\EOT\193\b\EOT\EM\SUBt\n\+ \Instead of the default double-SHA256 hashing of the message before signing,\n\+ \only use one round of hashing instead.\n\+ \\n\+ \\r\n\+ \\ENQ\EOT\CAN\STX\SOH\ENQ\DC2\EOT\193\b\EOT\b\n\+ \\r\n\+ \\ENQ\EOT\CAN\STX\SOH\SOH\DC2\EOT\193\b\t\DC4\n\+ \\r\n\+ \\ENQ\EOT\CAN\STX\SOH\ETX\DC2\EOT\193\b\ETB\CAN\n\+ \\f\n\+ \\STX\EOT\EM\DC2\ACK\195\b\NUL\198\b\SOH\n\+ \\v\n\+ \\ETX\EOT\EM\SOH\DC2\EOT\195\b\b\ESC\n\+ \3\n\+ \\EOT\EOT\EM\STX\NUL\DC2\EOT\197\b\EOT\EM\SUB% The signature for the given message\n\+ \\n\+ \\r\n\+ \\ENQ\EOT\EM\STX\NUL\ENQ\DC2\EOT\197\b\EOT\n\+ \\n\+ \\r\n\+ \\ENQ\EOT\EM\STX\NUL\SOH\DC2\EOT\197\b\v\DC4\n\+ \\r\n\+ \\ENQ\EOT\EM\STX\NUL\ETX\DC2\EOT\197\b\ETB\CAN\n\+ \\f\n\+ \\STX\EOT\SUB\DC2\ACK\200\b\NUL\209\b\SOH\n\+ \\v\n\+ \\ETX\EOT\SUB\SOH\DC2\EOT\200\b\b\FS\n\+ \~\n\+ \\EOT\EOT\SUB\STX\NUL\DC2\EOT\205\b\EOT\DC2\SUBp\n\+ \The message over which the signature is to be verified. When using REST,\n\+ \this field must be encoded as base64.\n\+ \\n\+ \\r\n\+ \\ENQ\EOT\SUB\STX\NUL\ENQ\DC2\EOT\205\b\EOT\t\n\+ \\r\n\+ \\ENQ\EOT\SUB\STX\NUL\SOH\DC2\EOT\205\b\n\+ \\r\n\+ \\r\n\+ \\ENQ\EOT\SUB\STX\NUL\ETX\DC2\EOT\205\b\DLE\DC1\n\+ \C\n\+ \\EOT\EOT\SUB\STX\SOH\DC2\EOT\208\b\EOT\EM\SUB5 The signature to be verified over the given message\n\+ \\n\+ \\r\n\+ \\ENQ\EOT\SUB\STX\SOH\ENQ\DC2\EOT\208\b\EOT\n\+ \\n\+ \\r\n\+ \\ENQ\EOT\SUB\STX\SOH\SOH\DC2\EOT\208\b\v\DC4\n\+ \\r\n\+ \\ENQ\EOT\SUB\STX\SOH\ETX\DC2\EOT\208\b\ETB\CAN\n\+ \\f\n\+ \\STX\EOT\ESC\DC2\ACK\210\b\NUL\216\b\SOH\n\+ \\v\n\+ \\ETX\EOT\ESC\SOH\DC2\EOT\210\b\b\GS\n\+ \F\n\+ \\EOT\EOT\ESC\STX\NUL\DC2\EOT\212\b\EOT\DC3\SUB8 Whether the signature was valid over the given message\n\+ \\n\+ \\r\n\+ \\ENQ\EOT\ESC\STX\NUL\ENQ\DC2\EOT\212\b\EOT\b\n\+ \\r\n\+ \\ENQ\EOT\ESC\STX\NUL\SOH\DC2\EOT\212\b\t\SO\n\+ \\r\n\+ \\ENQ\EOT\ESC\STX\NUL\ETX\DC2\EOT\212\b\DC1\DC2\n\+ \7\n\+ \\EOT\EOT\ESC\STX\SOH\DC2\EOT\215\b\EOT\SYN\SUB) The pubkey recovered from the signature\n\+ \\n\+ \\r\n\+ \\ENQ\EOT\ESC\STX\SOH\ENQ\DC2\EOT\215\b\EOT\n\+ \\n\+ \\r\n\+ \\ENQ\EOT\ESC\STX\SOH\SOH\DC2\EOT\215\b\v\DC1\n\+ \\r\n\+ \\ENQ\EOT\ESC\STX\SOH\ETX\DC2\EOT\215\b\DC4\NAK\n\+ \\f\n\+ \\STX\EOT\FS\DC2\ACK\218\b\NUL\231\b\SOH\n\+ \\v\n\+ \\ETX\EOT\FS\SOH\DC2\EOT\218\b\b\SUB\n\+ \L\n\+ \\EOT\EOT\FS\STX\NUL\DC2\EOT\220\b\EOT\RS\SUB> Lightning address of the peer, in the format `<pubkey>@host`\n\+ \\n\+ \\r\n\+ \\ENQ\EOT\FS\STX\NUL\ACK\DC2\EOT\220\b\EOT\DC4\n\+ \\r\n\+ \\ENQ\EOT\FS\STX\NUL\SOH\DC2\EOT\220\b\NAK\EM\n\+ \\r\n\+ \\ENQ\EOT\FS\STX\NUL\ETX\DC2\EOT\220\b\FS\GS\n\+ \\133\SOH\n\+ \\EOT\EOT\FS\STX\SOH\DC2\EOT\224\b\EOT\DC2\SUBw If set, the daemon will attempt to persistently connect to the target\n\+ \ peer. Otherwise, the call will be synchronous. \n\+ \\r\n\+ \\ENQ\EOT\FS\STX\SOH\ENQ\DC2\EOT\224\b\EOT\b\n\+ \\r\n\+ \\ENQ\EOT\FS\STX\SOH\SOH\DC2\EOT\224\b\t\r\n\+ \\r\n\+ \\ENQ\EOT\FS\STX\SOH\ETX\DC2\EOT\224\b\DLE\DC1\n\+ \k\n\+ \\EOT\EOT\FS\STX\STX\DC2\EOT\230\b\EOT\ETB\SUB]\n\+ \The connection timeout value (in seconds) for this request. It won't affect\n\+ \other requests.\n\+ \\n\+ \\r\n\+ \\ENQ\EOT\FS\STX\STX\ENQ\DC2\EOT\230\b\EOT\n\+ \\n\+ \\r\n\+ \\ENQ\EOT\FS\STX\STX\SOH\DC2\EOT\230\b\v\DC2\n\+ \\r\n\+ \\ENQ\EOT\FS\STX\STX\ETX\DC2\EOT\230\b\NAK\SYN\n\+ \\f\n\+ \\STX\EOT\GS\DC2\ACK\232\b\NUL\233\b\SOH\n\+ \\v\n\+ \\ETX\EOT\GS\SOH\DC2\EOT\232\b\b\ESC\n\+ \\f\n\+ \\STX\EOT\RS\DC2\ACK\235\b\NUL\238\b\SOH\n\+ \\v\n\+ \\ETX\EOT\RS\SOH\DC2\EOT\235\b\b\GS\n\+ \9\n\+ \\EOT\EOT\RS\STX\NUL\DC2\EOT\237\b\EOT\ETB\SUB+ The pubkey of the node to disconnect from\n\+ \\n\+ \\r\n\+ \\ENQ\EOT\RS\STX\NUL\ENQ\DC2\EOT\237\b\EOT\n\+ \\n\+ \\r\n\+ \\ENQ\EOT\RS\STX\NUL\SOH\DC2\EOT\237\b\v\DC2\n\+ \\r\n\+ \\ENQ\EOT\RS\STX\NUL\ETX\DC2\EOT\237\b\NAK\SYN\n\+ \\f\n\+ \\STX\EOT\US\DC2\ACK\239\b\NUL\240\b\SOH\n\+ \\v\n\+ \\ETX\EOT\US\SOH\DC2\EOT\239\b\b\RS\n\+ \\f\n\+ \\STX\EOT \DC2\ACK\242\b\NUL\253\b\SOH\n\+ \\v\n\+ \\ETX\EOT \SOH\DC2\EOT\242\b\b\ESC\n\+ \\f\n\+ \\EOT\EOT \STX\NUL\DC2\EOT\243\b\EOT\EM\n\+ \\r\n\+ \\ENQ\EOT \STX\NUL\ENQ\DC2\EOT\243\b\EOT\b\n\+ \\r\n\+ \\ENQ\EOT \STX\NUL\SOH\DC2\EOT\243\b\t\DC4\n\+ \\r\n\+ \\ENQ\EOT \STX\NUL\ETX\DC2\EOT\243\b\ETB\CAN\n\+ \\f\n\+ \\EOT\EOT \STX\SOH\DC2\EOT\244\b\EOT\ESC\n\+ \\r\n\+ \\ENQ\EOT \STX\SOH\ENQ\DC2\EOT\244\b\EOT\b\n\+ \\r\n\+ \\ENQ\EOT \STX\SOH\SOH\DC2\EOT\244\b\t\SYN\n\+ \\r\n\+ \\ENQ\EOT \STX\SOH\ETX\DC2\EOT\244\b\EM\SUB\n\+ \\f\n\+ \\EOT\EOT \STX\STX\DC2\EOT\245\b\EOT\EM\n\+ \\r\n\+ \\ENQ\EOT \STX\STX\ENQ\DC2\EOT\245\b\EOT\b\n\+ \\r\n\+ \\ENQ\EOT \STX\STX\SOH\DC2\EOT\245\b\t\DC4\n\+ \\r\n\+ \\ENQ\EOT \STX\STX\ETX\DC2\EOT\245\b\ETB\CAN\n\+ \\f\n\+ \\EOT\EOT \STX\ETX\DC2\EOT\246\b\EOT\SUB\n\+ \\r\n\+ \\ENQ\EOT \STX\ETX\ENQ\DC2\EOT\246\b\EOT\b\n\+ \\r\n\+ \\ENQ\EOT \STX\ETX\SOH\DC2\EOT\246\b\t\NAK\n\+ \\r\n\+ \\ENQ\EOT \STX\ETX\ETX\DC2\EOT\246\b\CAN\EM\n\+ \\DEL\n\+ \\EOT\EOT \STX\EOT\DC2\EOT\252\b\EOT\DC3\SUBq\n\+ \Filters the response for channels with a target peer's pubkey. If peer is\n\+ \empty, all channels will be returned.\n\+ \\n\+ \\r\n\+ \\ENQ\EOT \STX\EOT\ENQ\DC2\EOT\252\b\EOT\t\n\+ \\r\n\+ \\ENQ\EOT \STX\EOT\SOH\DC2\EOT\252\b\n\+ \\SO\n\+ \\r\n\+ \\ENQ\EOT \STX\EOT\ETX\DC2\EOT\252\b\DC1\DC2\n\+ \\f\n\+ \\STX\EOT!\DC2\ACK\254\b\NUL\129\t\SOH\n\+ \\v\n\+ \\ETX\EOT!\SOH\DC2\EOT\254\b\b\FS\n\+ \+\n\+ \\EOT\EOT!\STX\NUL\DC2\EOT\128\t\EOT#\SUB\GS The list of active channels\n\+ \\n\+ \\r\n\+ \\ENQ\EOT!\STX\NUL\EOT\DC2\EOT\128\t\EOT\f\n\+ \\r\n\+ \\ENQ\EOT!\STX\NUL\ACK\DC2\EOT\128\t\r\DC4\n\+ \\r\n\+ \\ENQ\EOT!\STX\NUL\SOH\DC2\EOT\128\t\NAK\GS\n\+ \\r\n\+ \\ENQ\EOT!\STX\NUL\ETX\DC2\EOT\128\t \"\n\+ \\f\n\+ \\STX\EOT\"\DC2\ACK\131\t\NUL\138\t\SOH\n\+ \\v\n\+ \\ETX\EOT\"\SOH\DC2\EOT\131\t\b\GS\n\+ \\f\n\+ \\EOT\EOT\"\STX\NUL\DC2\EOT\132\t\EOT\EM\n\+ \\r\n\+ \\ENQ\EOT\"\STX\NUL\ENQ\DC2\EOT\132\t\EOT\b\n\+ \\r\n\+ \\ENQ\EOT\"\STX\NUL\SOH\DC2\EOT\132\t\t\DC4\n\+ \\r\n\+ \\ENQ\EOT\"\STX\NUL\ETX\DC2\EOT\132\t\ETB\CAN\n\+ \\f\n\+ \\EOT\EOT\"\STX\SOH\DC2\EOT\133\t\EOT\EM\n\+ \\r\n\+ \\ENQ\EOT\"\STX\SOH\ENQ\DC2\EOT\133\t\EOT\b\n\+ \\r\n\+ \\ENQ\EOT\"\STX\SOH\SOH\DC2\EOT\133\t\t\DC4\n\+ \\r\n\+ \\ENQ\EOT\"\STX\SOH\ETX\DC2\EOT\133\t\ETB\CAN\n\+ \\f\n\+ \\EOT\EOT\"\STX\STX\DC2\EOT\134\t\EOT\SUB\n\+ \\r\n\+ \\ENQ\EOT\"\STX\STX\ENQ\DC2\EOT\134\t\EOT\b\n\+ \\r\n\+ \\ENQ\EOT\"\STX\STX\SOH\DC2\EOT\134\t\t\NAK\n\+ \\r\n\+ \\ENQ\EOT\"\STX\STX\ETX\DC2\EOT\134\t\CAN\EM\n\+ \\f\n\+ \\EOT\EOT\"\STX\ETX\DC2\EOT\135\t\EOT\DC4\n\+ \\r\n\+ \\ENQ\EOT\"\STX\ETX\ENQ\DC2\EOT\135\t\EOT\b\n\+ \\r\n\+ \\ENQ\EOT\"\STX\ETX\SOH\DC2\EOT\135\t\t\SI\n\+ \\r\n\+ \\ENQ\EOT\"\STX\ETX\ETX\DC2\EOT\135\t\DC2\DC3\n\+ \\f\n\+ \\EOT\EOT\"\STX\EOT\DC2\EOT\136\t\EOT\RS\n\+ \\r\n\+ \\ENQ\EOT\"\STX\EOT\ENQ\DC2\EOT\136\t\EOT\b\n\+ \\r\n\+ \\ENQ\EOT\"\STX\EOT\SOH\DC2\EOT\136\t\t\EM\n\+ \\r\n\+ \\ENQ\EOT\"\STX\EOT\ETX\DC2\EOT\136\t\FS\GS\n\+ \\f\n\+ \\EOT\EOT\"\STX\ENQ\DC2\EOT\137\t\EOT\ETB\n\+ \\r\n\+ \\ENQ\EOT\"\STX\ENQ\ENQ\DC2\EOT\137\t\EOT\b\n\+ \\r\n\+ \\ENQ\EOT\"\STX\ENQ\SOH\DC2\EOT\137\t\t\DC2\n\+ \\r\n\+ \\ENQ\EOT\"\STX\ENQ\ETX\DC2\EOT\137\t\NAK\SYN\n\+ \\f\n\+ \\STX\EOT#\DC2\ACK\140\t\NUL\142\t\SOH\n\+ \\v\n\+ \\ETX\EOT#\SOH\DC2\EOT\140\t\b\RS\n\+ \\f\n\+ \\EOT\EOT#\STX\NUL\DC2\EOT\141\t\EOT.\n\+ \\r\n\+ \\ENQ\EOT#\STX\NUL\EOT\DC2\EOT\141\t\EOT\f\n\+ \\r\n\+ \\ENQ\EOT#\STX\NUL\ACK\DC2\EOT\141\t\r \n\+ \\r\n\+ \\ENQ\EOT#\STX\NUL\SOH\DC2\EOT\141\t!)\n\+ \\r\n\+ \\ENQ\EOT#\STX\NUL\ETX\DC2\EOT\141\t,-\n\+ \\f\n\+ \\STX\EOT$\DC2\ACK\144\t\NUL\224\t\SOH\n\+ \\v\n\+ \\ETX\EOT$\SOH\DC2\EOT\144\t\b\f\n\+ \/\n\+ \\EOT\EOT$\STX\NUL\DC2\EOT\146\t\EOT\ETB\SUB! The identity pubkey of the peer\n\+ \\n\+ \\r\n\+ \\ENQ\EOT$\STX\NUL\ENQ\DC2\EOT\146\t\EOT\n\+ \\n\+ \\r\n\+ \\ENQ\EOT$\STX\NUL\SOH\DC2\EOT\146\t\v\DC2\n\+ \\r\n\+ \\ENQ\EOT$\STX\NUL\ETX\DC2\EOT\146\t\NAK\SYN\n\+ \A\n\+ \\EOT\EOT$\STX\SOH\DC2\EOT\149\t\EOT\ETB\SUB3 Network address of the peer; eg `127.0.0.1:10011`\n\+ \\n\+ \\r\n\+ \\ENQ\EOT$\STX\SOH\ENQ\DC2\EOT\149\t\EOT\n\+ \\n\+ \\r\n\+ \\ENQ\EOT$\STX\SOH\SOH\DC2\EOT\149\t\v\DC2\n\+ \\r\n\+ \\ENQ\EOT$\STX\SOH\ETX\DC2\EOT\149\t\NAK\SYN\n\+ \6\n\+ \\EOT\EOT$\STX\STX\DC2\EOT\152\t\EOT\SUB\SUB( Bytes of data transmitted to this peer\n\+ \\n\+ \\r\n\+ \\ENQ\EOT$\STX\STX\ENQ\DC2\EOT\152\t\EOT\n\+ \\n\+ \\r\n\+ \\ENQ\EOT$\STX\STX\SOH\DC2\EOT\152\t\v\NAK\n\+ \\r\n\+ \\ENQ\EOT$\STX\STX\ETX\DC2\EOT\152\t\CAN\EM\n\+ \8\n\+ \\EOT\EOT$\STX\ETX\DC2\EOT\155\t\EOT\SUB\SUB* Bytes of data transmitted from this peer\n\+ \\n\+ \\r\n\+ \\ENQ\EOT$\STX\ETX\ENQ\DC2\EOT\155\t\EOT\n\+ \\n\+ \\r\n\+ \\ENQ\EOT$\STX\ETX\SOH\DC2\EOT\155\t\v\NAK\n\+ \\r\n\+ \\ENQ\EOT$\STX\ETX\ETX\DC2\EOT\155\t\CAN\EM\n\+ \*\n\+ \\EOT\EOT$\STX\EOT\DC2\EOT\158\t\EOT\ETB\SUB\FS Satoshis sent to this peer\n\+ \\n\+ \\r\n\+ \\ENQ\EOT$\STX\EOT\ENQ\DC2\EOT\158\t\EOT\t\n\+ \\r\n\+ \\ENQ\EOT$\STX\EOT\SOH\DC2\EOT\158\t\n\+ \\DC2\n\+ \\r\n\+ \\ENQ\EOT$\STX\EOT\ETX\DC2\EOT\158\t\NAK\SYN\n\+ \0\n\+ \\EOT\EOT$\STX\ENQ\DC2\EOT\161\t\EOT\ETB\SUB\" Satoshis received from this peer\n\+ \\n\+ \\r\n\+ \\ENQ\EOT$\STX\ENQ\ENQ\DC2\EOT\161\t\EOT\t\n\+ \\r\n\+ \\ENQ\EOT$\STX\ENQ\SOH\DC2\EOT\161\t\n\+ \\DC2\n\+ \\r\n\+ \\ENQ\EOT$\STX\ENQ\ETX\DC2\EOT\161\t\NAK\SYN\n\+ \N\n\+ \\EOT\EOT$\STX\ACK\DC2\EOT\164\t\EOT\NAK\SUB@ A channel is inbound if the counterparty initiated the channel\n\+ \\n\+ \\r\n\+ \\ENQ\EOT$\STX\ACK\ENQ\DC2\EOT\164\t\EOT\b\n\+ \\r\n\+ \\ENQ\EOT$\STX\ACK\SOH\DC2\EOT\164\t\t\DLE\n\+ \\r\n\+ \\ENQ\EOT$\STX\ACK\ETX\DC2\EOT\164\t\DC3\DC4\n\+ \&\n\+ \\EOT\EOT$\STX\a\DC2\EOT\167\t\EOT\CAN\SUB\CAN Ping time to this peer\n\+ \\n\+ \\r\n\+ \\ENQ\EOT$\STX\a\ENQ\DC2\EOT\167\t\EOT\t\n\+ \\r\n\+ \\ENQ\EOT$\STX\a\SOH\DC2\EOT\167\t\n\+ \\DC3\n\+ \\r\n\+ \\ENQ\EOT$\STX\a\ETX\DC2\EOT\167\t\SYN\ETB\n\+ \\SO\n\+ \\EOT\EOT$\EOT\NUL\DC2\ACK\169\t\EOT\189\t\ENQ\n\+ \\r\n\+ \\ENQ\EOT$\EOT\NUL\SOH\DC2\EOT\169\t\t\DC1\n\+ \P\n\+ \\ACK\EOT$\EOT\NUL\STX\NUL\DC2\EOT\173\t\b\EM\SUB@\n\+ \Denotes that we cannot determine the peer's current sync type.\n\+ \\n\+ \\SI\n\+ \\a\EOT$\EOT\NUL\STX\NUL\SOH\DC2\EOT\173\t\b\DC4\n\+ \\SI\n\+ \\a\EOT$\EOT\NUL\STX\NUL\STX\DC2\EOT\173\t\ETB\CAN\n\+ \Y\n\+ \\ACK\EOT$\EOT\NUL\STX\SOH\DC2\EOT\178\t\b\CAN\SUBI\n\+ \Denotes that we are actively receiving new graph updates from the peer.\n\+ \\n\+ \\SI\n\+ \\a\EOT$\EOT\NUL\STX\SOH\SOH\DC2\EOT\178\t\b\DC3\n\+ \\SI\n\+ \\a\EOT$\EOT\NUL\STX\SOH\STX\DC2\EOT\178\t\SYN\ETB\n\+ \T\n\+ \\ACK\EOT$\EOT\NUL\STX\STX\DC2\EOT\183\t\b\EM\SUBD\n\+ \Denotes that we are not receiving new graph updates from the peer.\n\+ \\n\+ \\SI\n\+ \\a\EOT$\EOT\NUL\STX\STX\SOH\DC2\EOT\183\t\b\DC4\n\+ \\SI\n\+ \\a\EOT$\EOT\NUL\STX\STX\STX\DC2\EOT\183\t\ETB\CAN\n\+ \G\n\+ \\ACK\EOT$\EOT\NUL\STX\ETX\DC2\EOT\188\t\b\CAN\SUB7\n\+ \Denotes that this peer is pinned into an active sync.\n\+ \\n\+ \\SI\n\+ \\a\EOT$\EOT\NUL\STX\ETX\SOH\DC2\EOT\188\t\b\DC3\n\+ \\SI\n\+ \\a\EOT$\EOT\NUL\STX\ETX\STX\DC2\EOT\188\t\SYN\ETB\n\+ \L\n\+ \\EOT\EOT$\STX\b\DC2\EOT\192\t\EOT\FS\SUB> The type of sync we are currently performing with this peer.\n\+ \\n\+ \\r\n\+ \\ENQ\EOT$\STX\b\ACK\DC2\EOT\192\t\EOT\f\n\+ \\r\n\+ \\ENQ\EOT$\STX\b\SOH\DC2\EOT\192\t\r\SYN\n\+ \\r\n\+ \\ENQ\EOT$\STX\b\ETX\DC2\EOT\192\t\EM\ESC\n\+ \M\n\+ \\EOT\EOT$\STX\t\DC2\EOT\195\t\EOT'\SUB? Features advertised by the remote peer in their init message.\n\+ \\n\+ \\r\n\+ \\ENQ\EOT$\STX\t\ACK\DC2\EOT\195\t\EOT\CAN\n\+ \\r\n\+ \\ENQ\EOT$\STX\t\SOH\DC2\EOT\195\t\EM!\n\+ \\r\n\+ \\ENQ\EOT$\STX\t\ETX\DC2\EOT\195\t$&\n\+ \\217\STX\n\+ \\EOT\EOT$\STX\n\+ \\DC2\EOT\204\t\EOT*\SUB\202\STX\n\+ \The latest errors received from our peer with timestamps, limited to the 10\n\+ \most recent errors. These errors are tracked across peer connections, but\n\+ \are not persisted across lnd restarts. Note that these errors are only\n\+ \stored for peers that we have channels open with, to prevent peers from\n\+ \spamming us with errors at no cost.\n\+ \\n\+ \\r\n\+ \\ENQ\EOT$\STX\n\+ \\EOT\DC2\EOT\204\t\EOT\f\n\+ \\r\n\+ \\ENQ\EOT$\STX\n\+ \\ACK\DC2\EOT\204\t\r\GS\n\+ \\r\n\+ \\ENQ\EOT$\STX\n\+ \\SOH\DC2\EOT\204\t\RS$\n\+ \\r\n\+ \\ENQ\EOT$\STX\n\+ \\ETX\DC2\EOT\204\t')\n\+ \\140\STX\n\+ \\EOT\EOT$\STX\v\DC2\EOT\212\t\EOT\SUB\SUB\253\SOH\n\+ \The number of times we have recorded this peer going offline or coming\n\+ \online, recorded across restarts. Note that this value is decreased over\n\+ \time if the peer has not recently flapped, so that we can forgive peers\n\+ \with historically high flap counts.\n\+ \\n\+ \\r\n\+ \\ENQ\EOT$\STX\v\ENQ\DC2\EOT\212\t\EOT\t\n\+ \\r\n\+ \\ENQ\EOT$\STX\v\SOH\DC2\EOT\212\t\n\+ \\DC4\n\+ \\r\n\+ \\ENQ\EOT$\STX\v\ETX\DC2\EOT\212\t\ETB\EM\n\+ \\143\SOH\n\+ \\EOT\EOT$\STX\f\DC2\EOT\218\t\EOT\FS\SUB\128\SOH\n\+ \The timestamp of the last flap we observed for this peer. If this value is\n\+ \zero, we have not observed any flaps for this peer.\n\+ \\n\+ \\r\n\+ \\ENQ\EOT$\STX\f\ENQ\DC2\EOT\218\t\EOT\t\n\+ \\r\n\+ \\ENQ\EOT$\STX\f\SOH\DC2\EOT\218\t\n\+ \\SYN\n\+ \\r\n\+ \\ENQ\EOT$\STX\f\ETX\DC2\EOT\218\t\EM\ESC\n\+ \>\n\+ \\EOT\EOT$\STX\r\DC2\EOT\223\t\EOT!\SUB0\n\+ \The last ping payload the peer has sent to us.\n\+ \\n\+ \\r\n\+ \\ENQ\EOT$\STX\r\ENQ\DC2\EOT\223\t\EOT\t\n\+ \\r\n\+ \\ENQ\EOT$\STX\r\SOH\DC2\EOT\223\t\n\+ \\ESC\n\+ \\r\n\+ \\ENQ\EOT$\STX\r\ETX\DC2\EOT\223\t\RS \n\+ \\f\n\+ \\STX\EOT%\DC2\ACK\226\t\NUL\232\t\SOH\n\+ \\v\n\+ \\ETX\EOT%\SOH\DC2\EOT\226\t\b\CAN\n\+ \F\n\+ \\EOT\EOT%\STX\NUL\DC2\EOT\228\t\EOT\EM\SUB8 The unix timestamp in seconds when the error occurred.\n\+ \\n\+ \\r\n\+ \\ENQ\EOT%\STX\NUL\ENQ\DC2\EOT\228\t\EOT\n\+ \\n\+ \\r\n\+ \\ENQ\EOT%\STX\NUL\SOH\DC2\EOT\228\t\v\DC4\n\+ \\r\n\+ \\ENQ\EOT%\STX\NUL\ETX\DC2\EOT\228\t\ETB\CAN\n\+ \H\n\+ \\EOT\EOT%\STX\SOH\DC2\EOT\231\t\EOT\NAK\SUB: The string representation of the error sent by our peer.\n\+ \\n\+ \\r\n\+ \\ENQ\EOT%\STX\SOH\ENQ\DC2\EOT\231\t\EOT\n\+ \\n\+ \\r\n\+ \\ENQ\EOT%\STX\SOH\SOH\DC2\EOT\231\t\v\DLE\n\+ \\r\n\+ \\ENQ\EOT%\STX\SOH\ETX\DC2\EOT\231\t\DC3\DC4\n\+ \\f\n\+ \\STX\EOT&\DC2\ACK\234\t\NUL\241\t\SOH\n\+ \\v\n\+ \\ETX\EOT&\SOH\DC2\EOT\234\t\b\CAN\n\+ \\173\SOH\n\+ \\EOT\EOT&\STX\NUL\DC2\EOT\240\t\EOT\SUB\SUB\158\SOH\n\+ \If true, only the last error that our peer sent us will be returned with\n\+ \the peer's information, rather than the full set of historic errors we have\n\+ \stored.\n\+ \\n\+ \\r\n\+ \\ENQ\EOT&\STX\NUL\ENQ\DC2\EOT\240\t\EOT\b\n\+ \\r\n\+ \\ENQ\EOT&\STX\NUL\SOH\DC2\EOT\240\t\t\NAK\n\+ \\r\n\+ \\ENQ\EOT&\STX\NUL\ETX\DC2\EOT\240\t\CAN\EM\n\+ \\f\n\+ \\STX\EOT'\DC2\ACK\242\t\NUL\245\t\SOH\n\+ \\v\n\+ \\ETX\EOT'\SOH\DC2\EOT\242\t\b\EM\n\+ \5\n\+ \\EOT\EOT'\STX\NUL\DC2\EOT\244\t\EOT\FS\SUB' The list of currently connected peers\n\+ \\n\+ \\r\n\+ \\ENQ\EOT'\STX\NUL\EOT\DC2\EOT\244\t\EOT\f\n\+ \\r\n\+ \\ENQ\EOT'\STX\NUL\ACK\DC2\EOT\244\t\r\DC1\n\+ \\r\n\+ \\ENQ\EOT'\STX\NUL\SOH\DC2\EOT\244\t\DC2\ETB\n\+ \\r\n\+ \\ENQ\EOT'\STX\NUL\ETX\DC2\EOT\244\t\SUB\ESC\n\+ \\f\n\+ \\STX\EOT(\DC2\ACK\247\t\NUL\248\t\SOH\n\+ \\v\n\+ \\ETX\EOT(\SOH\DC2\EOT\247\t\b\GS\n\+ \\f\n\+ \\STX\EOT)\DC2\ACK\250\t\NUL\132\n\+ \\SOH\n\+ \\v\n\+ \\ETX\EOT)\SOH\DC2\EOT\250\t\b\DC1\n\+ \0\n\+ \\EOT\EOT)\STX\NUL\DC2\EOT\252\t\EOT\ETB\SUB\" The identity pubkey of the peer.\n\+ \\n\+ \\r\n\+ \\ENQ\EOT)\STX\NUL\ENQ\DC2\EOT\252\t\EOT\n\+ \\n\+ \\r\n\+ \\ENQ\EOT)\STX\NUL\SOH\DC2\EOT\252\t\v\DC2\n\+ \\r\n\+ \\ENQ\EOT)\STX\NUL\ETX\DC2\EOT\252\t\NAK\SYN\n\+ \\SO\n\+ \\EOT\EOT)\EOT\NUL\DC2\ACK\254\t\EOT\129\n\+ \\ENQ\n\+ \\r\n\+ \\ENQ\EOT)\EOT\NUL\SOH\DC2\EOT\254\t\t\DC2\n\+ \\SO\n\+ \\ACK\EOT)\EOT\NUL\STX\NUL\DC2\EOT\255\t\b\CAN\n\+ \\SI\n\+ \\a\EOT)\EOT\NUL\STX\NUL\SOH\DC2\EOT\255\t\b\DC3\n\+ \\SI\n\+ \\a\EOT)\EOT\NUL\STX\NUL\STX\DC2\EOT\255\t\SYN\ETB\n\+ \\SO\n\+ \\ACK\EOT)\EOT\NUL\STX\SOH\DC2\EOT\128\n\+ \\b\EM\n\+ \\SI\n\+ \\a\EOT)\EOT\NUL\STX\SOH\SOH\DC2\EOT\128\n\+ \\b\DC4\n\+ \\SI\n\+ \\a\EOT)\EOT\NUL\STX\SOH\STX\DC2\EOT\128\n\+ \\ETB\CAN\n\+ \\f\n\+ \\EOT\EOT)\STX\SOH\DC2\EOT\131\n\+ \\EOT\ETB\n\+ \\r\n\+ \\ENQ\EOT)\STX\SOH\ACK\DC2\EOT\131\n\+ \\EOT\r\n\+ \\r\n\+ \\ENQ\EOT)\STX\SOH\SOH\DC2\EOT\131\n\+ \\SO\DC2\n\+ \\r\n\+ \\ENQ\EOT)\STX\SOH\ETX\DC2\EOT\131\n\+ \\NAK\SYN\n\+ \\f\n\+ \\STX\EOT*\DC2\ACK\134\n\+ \\NUL\135\n\+ \\SOH\n\+ \\v\n\+ \\ETX\EOT*\SOH\DC2\EOT\134\n\+ \\b\SYN\n\+ \\f\n\+ \\STX\EOT+\DC2\ACK\136\n\+ \\NUL\198\n\+ \\SOH\n\+ \\v\n\+ \\ETX\EOT+\SOH\DC2\EOT\136\n\+ \\b\ETB\n\+ \I\n\+ \\EOT\EOT+\STX\NUL\DC2\EOT\138\n\+ \\EOT\CAN\SUB; The version of the LND software that the node is running.\n\+ \\n\+ \\r\n\+ \\ENQ\EOT+\STX\NUL\ENQ\DC2\EOT\138\n\+ \\EOT\n\+ \\n\+ \\r\n\+ \\ENQ\EOT+\STX\NUL\SOH\DC2\EOT\138\n\+ \\v\DC2\n\+ \\r\n\+ \\ENQ\EOT+\STX\NUL\ETX\DC2\EOT\138\n\+ \\NAK\ETB\n\+ \F\n\+ \\EOT\EOT+\STX\SOH\DC2\EOT\141\n\+ \\EOT\FS\SUB8 The SHA1 commit hash that the daemon is compiled with.\n\+ \\n\+ \\r\n\+ \\ENQ\EOT+\STX\SOH\ENQ\DC2\EOT\141\n\+ \\EOT\n\+ \\n\+ \\r\n\+ \\ENQ\EOT+\STX\SOH\SOH\DC2\EOT\141\n\+ \\v\SYN\n\+ \\r\n\+ \\ENQ\EOT+\STX\SOH\ETX\DC2\EOT\141\n\+ \\EM\ESC\n\+ \8\n\+ \\EOT\EOT+\STX\STX\DC2\EOT\144\n\+ \\EOT\US\SUB* The identity pubkey of the current node.\n\+ \\n\+ \\r\n\+ \\ENQ\EOT+\STX\STX\ENQ\DC2\EOT\144\n\+ \\EOT\n\+ \\n\+ \\r\n\+ \\ENQ\EOT+\STX\STX\SOH\DC2\EOT\144\n\+ \\v\SUB\n\+ \\r\n\+ \\ENQ\EOT+\STX\STX\ETX\DC2\EOT\144\n\+ \\GS\RS\n\+ \H\n\+ \\EOT\EOT+\STX\ETX\DC2\EOT\147\n\+ \\EOT\NAK\SUB: If applicable, the alias of the current node, e.g. \"bob\"\n\+ \\n\+ \\r\n\+ \\ENQ\EOT+\STX\ETX\ENQ\DC2\EOT\147\n\+ \\EOT\n\+ \\n\+ \\r\n\+ \\ENQ\EOT+\STX\ETX\SOH\DC2\EOT\147\n\+ \\v\DLE\n\+ \\r\n\+ \\ENQ\EOT+\STX\ETX\ETX\DC2\EOT\147\n\+ \\DC3\DC4\n\+ \@\n\+ \\EOT\EOT+\STX\EOT\DC2\EOT\150\n\+ \\EOT\SYN\SUB2 The color of the current node in hex code format\n\+ \\n\+ \\r\n\+ \\ENQ\EOT+\STX\EOT\ENQ\DC2\EOT\150\n\+ \\EOT\n\+ \\n\+ \\r\n\+ \\ENQ\EOT+\STX\EOT\SOH\DC2\EOT\150\n\+ \\v\DLE\n\+ \\r\n\+ \\ENQ\EOT+\STX\EOT\ETX\DC2\EOT\150\n\+ \\DC3\NAK\n\+ \*\n\+ \\EOT\EOT+\STX\ENQ\DC2\EOT\153\n\+ \\EOT$\SUB\FS Number of pending channels\n\+ \\n\+ \\r\n\+ \\ENQ\EOT+\STX\ENQ\ENQ\DC2\EOT\153\n\+ \\EOT\n\+ \\n\+ \\r\n\+ \\ENQ\EOT+\STX\ENQ\SOH\DC2\EOT\153\n\+ \\v\US\n\+ \\r\n\+ \\ENQ\EOT+\STX\ENQ\ETX\DC2\EOT\153\n\+ \\"#\n\+ \)\n\+ \\EOT\EOT+\STX\ACK\DC2\EOT\156\n\+ \\EOT#\SUB\ESC Number of active channels\n\+ \\n\+ \\r\n\+ \\ENQ\EOT+\STX\ACK\ENQ\DC2\EOT\156\n\+ \\EOT\n\+ \\n\+ \\r\n\+ \\ENQ\EOT+\STX\ACK\SOH\DC2\EOT\156\n\+ \\v\RS\n\+ \\r\n\+ \\ENQ\EOT+\STX\ACK\ETX\DC2\EOT\156\n\+ \!\"\n\+ \+\n\+ \\EOT\EOT+\STX\a\DC2\EOT\159\n\+ \\EOT&\SUB\GS Number of inactive channels\n\+ \\n\+ \\r\n\+ \\ENQ\EOT+\STX\a\ENQ\DC2\EOT\159\n\+ \\EOT\n\+ \\n\+ \\r\n\+ \\ENQ\EOT+\STX\a\SOH\DC2\EOT\159\n\+ \\v \n\+ \\r\n\+ \\ENQ\EOT+\STX\a\ETX\DC2\EOT\159\n\+ \#%\n\+ \\US\n\+ \\EOT\EOT+\STX\b\DC2\EOT\162\n\+ \\EOT\EM\SUB\DC1 Number of peers\n\+ \\n\+ \\r\n\+ \\ENQ\EOT+\STX\b\ENQ\DC2\EOT\162\n\+ \\EOT\n\+ \\n\+ \\r\n\+ \\ENQ\EOT+\STX\b\SOH\DC2\EOT\162\n\+ \\v\DC4\n\+ \\r\n\+ \\ENQ\EOT+\STX\b\ETX\DC2\EOT\162\n\+ \\ETB\CAN\n\+ \G\n\+ \\EOT\EOT+\STX\t\DC2\EOT\165\n\+ \\EOT\FS\SUB9 The node's current view of the height of the best block\n\+ \\n\+ \\r\n\+ \\ENQ\EOT+\STX\t\ENQ\DC2\EOT\165\n\+ \\EOT\n\+ \\n\+ \\r\n\+ \\ENQ\EOT+\STX\t\SOH\DC2\EOT\165\n\+ \\v\ETB\n\+ \\r\n\+ \\ENQ\EOT+\STX\t\ETX\DC2\EOT\165\n\+ \\SUB\ESC\n\+ \E\n\+ \\EOT\EOT+\STX\n\+ \\DC2\EOT\168\n\+ \\EOT\SUB\SUB7 The node's current view of the hash of the best block\n\+ \\n\+ \\r\n\+ \\ENQ\EOT+\STX\n\+ \\ENQ\DC2\EOT\168\n\+ \\EOT\n\+ \\n\+ \\r\n\+ \\ENQ\EOT+\STX\n\+ \\SOH\DC2\EOT\168\n\+ \\v\NAK\n\+ \\r\n\+ \\ENQ\EOT+\STX\n\+ \\ETX\DC2\EOT\168\n\+ \\CAN\EM\n\+ \?\n\+ \\EOT\EOT+\STX\v\DC2\EOT\171\n\+ \\EOT%\SUB1 Timestamp of the block best known to the wallet\n\+ \\n\+ \\r\n\+ \\ENQ\EOT+\STX\v\ENQ\DC2\EOT\171\n\+ \\EOT\t\n\+ \\r\n\+ \\ENQ\EOT+\STX\v\SOH\DC2\EOT\171\n\+ \\n\+ \\US\n\+ \\r\n\+ \\ENQ\EOT+\STX\v\ETX\DC2\EOT\171\n\+ \\"$\n\+ \E\n\+ \\EOT\EOT+\STX\f\DC2\EOT\174\n\+ \\EOT\GS\SUB7 Whether the wallet's view is synced to the main chain\n\+ \\n\+ \\r\n\+ \\ENQ\EOT+\STX\f\ENQ\DC2\EOT\174\n\+ \\EOT\b\n\+ \\r\n\+ \\ENQ\EOT+\STX\f\SOH\DC2\EOT\174\n\+ \\t\CAN\n\+ \\r\n\+ \\ENQ\EOT+\STX\f\ETX\DC2\EOT\174\n\+ \\ESC\FS\n\+ \S\n\+ \\EOT\EOT+\STX\r\DC2\EOT\177\n\+ \\EOT\RS\SUBE Whether we consider ourselves synced with the public channel graph.\n\+ \\n\+ \\r\n\+ \\ENQ\EOT+\STX\r\ENQ\DC2\EOT\177\n\+ \\EOT\b\n\+ \\r\n\+ \\ENQ\EOT+\STX\r\SOH\DC2\EOT\177\n\+ \\t\CAN\n\+ \\r\n\+ \\ENQ\EOT+\STX\r\ETX\DC2\EOT\177\n\+ \\ESC\GS\n\+ \\135\SOH\n\+ \\EOT\EOT+\STX\SO\DC2\EOT\183\n\+ \\EOT*\SUBy\n\+ \Whether the current node is connected to testnet. This field is\n\+ \deprecated and the network field should be used instead\n\+ \\n\+ \\r\n\+ \\ENQ\EOT+\STX\SO\ENQ\DC2\EOT\183\n\+ \\EOT\b\n\+ \\r\n\+ \\ENQ\EOT+\STX\SO\SOH\DC2\EOT\183\n\+ \\t\DLE\n\+ \\r\n\+ \\ENQ\EOT+\STX\SO\ETX\DC2\EOT\183\n\+ \\DC3\NAK\n\+ \\r\n\+ \\ENQ\EOT+\STX\SO\b\DC2\EOT\183\n\+ \\SYN)\n\+ \\SO\n\+ \\ACK\EOT+\STX\SO\b\ETX\DC2\EOT\183\n\+ \\ETB(\n\+ \\v\n\+ \\ETX\EOT+\t\DC2\EOT\185\n\+ \\EOT\DLE\n\+ \\f\n\+ \\EOT\EOT+\t\NUL\DC2\EOT\185\n\+ \\r\SI\n\+ \\r\n\+ \\ENQ\EOT+\t\NUL\SOH\DC2\EOT\185\n\+ \\r\SI\n\+ \\r\n\+ \\ENQ\EOT+\t\NUL\STX\DC2\EOT\185\n\+ \\r\SI\n\+ \@\n\+ \\EOT\EOT+\STX\SI\DC2\EOT\188\n\+ \\EOT\US\SUB2 A list of active chains the node is connected to\n\+ \\n\+ \\r\n\+ \\ENQ\EOT+\STX\SI\EOT\DC2\EOT\188\n\+ \\EOT\f\n\+ \\r\n\+ \\ENQ\EOT+\STX\SI\ACK\DC2\EOT\188\n\+ \\r\DC2\n\+ \\r\n\+ \\ENQ\EOT+\STX\SI\SOH\DC2\EOT\188\n\+ \\DC3\EM\n\+ \\r\n\+ \\ENQ\EOT+\STX\SI\ETX\DC2\EOT\188\n\+ \\FS\RS\n\+ \-\n\+ \\EOT\EOT+\STX\DLE\DC2\EOT\191\n\+ \\EOT\RS\SUB\US The URIs of the current node.\n\+ \\n\+ \\r\n\+ \\ENQ\EOT+\STX\DLE\EOT\DC2\EOT\191\n\+ \\EOT\f\n\+ \\r\n\+ \\ENQ\EOT+\STX\DLE\ENQ\DC2\EOT\191\n\+ \\r\DC3\n\+ \\r\n\+ \\ENQ\EOT+\STX\DLE\SOH\DC2\EOT\191\n\+ \\DC4\CAN\n\+ \\r\n\+ \\ENQ\EOT+\STX\DLE\ETX\DC2\EOT\191\n\+ \\ESC\GS\n\+ \k\n\+ \\EOT\EOT+\STX\DC1\DC2\EOT\197\n\+ \\EOT'\SUB]\n\+ \Features that our node has advertised in our init message, node\n\+ \announcements and invoices.\n\+ \\n\+ \\r\n\+ \\ENQ\EOT+\STX\DC1\ACK\DC2\EOT\197\n\+ \\EOT\CAN\n\+ \\r\n\+ \\ENQ\EOT+\STX\DC1\SOH\DC2\EOT\197\n\+ \\EM!\n\+ \\r\n\+ \\ENQ\EOT+\STX\DC1\ETX\DC2\EOT\197\n\+ \$&\n\+ \\f\n\+ \\STX\EOT,\DC2\ACK\200\n\+ \\NUL\201\n\+ \\SOH\n\+ \\v\n\+ \\ETX\EOT,\SOH\DC2\EOT\200\n\+ \\b\RS\n\+ \\f\n\+ \\STX\EOT-\DC2\ACK\202\n\+ \\NUL\211\n\+ \\SOH\n\+ \\v\n\+ \\ETX\EOT-\SOH\DC2\EOT\202\n\+ \\b\US\n\+ \6\n\+ \\EOT\EOT-\STX\NUL\DC2\EOT\204\n\+ \\EOT\ESC\SUB( Whether the wallet is in recovery mode\n\+ \\n\+ \\r\n\+ \\ENQ\EOT-\STX\NUL\ENQ\DC2\EOT\204\n\+ \\EOT\b\n\+ \\r\n\+ \\ENQ\EOT-\STX\NUL\SOH\DC2\EOT\204\n\+ \\t\SYN\n\+ \\r\n\+ \\ENQ\EOT-\STX\NUL\ETX\DC2\EOT\204\n\+ \\EM\SUB\n\+ \@\n\+ \\EOT\EOT-\STX\SOH\DC2\EOT\207\n\+ \\EOT\US\SUB2 Whether the wallet recovery progress is finished\n\+ \\n\+ \\r\n\+ \\ENQ\EOT-\STX\SOH\ENQ\DC2\EOT\207\n\+ \\EOT\b\n\+ \\r\n\+ \\ENQ\EOT-\STX\SOH\SOH\DC2\EOT\207\n\+ \\t\SUB\n\+ \\r\n\+ \\ENQ\EOT-\STX\SOH\ETX\DC2\EOT\207\n\+ \\GS\RS\n\+ \;\n\+ \\EOT\EOT-\STX\STX\DC2\EOT\210\n\+ \\EOT\CAN\SUB- The recovery progress, ranging from 0 to 1.\n\+ \\n\+ \\r\n\+ \\ENQ\EOT-\STX\STX\ENQ\DC2\EOT\210\n\+ \\EOT\n\+ \\n\+ \\r\n\+ \\ENQ\EOT-\STX\STX\SOH\DC2\EOT\210\n\+ \\v\DC3\n\+ \\r\n\+ \\ENQ\EOT-\STX\STX\ETX\DC2\EOT\210\n\+ \\SYN\ETB\n\+ \\f\n\+ \\STX\EOT.\DC2\ACK\213\n\+ \\NUL\219\n\+ \\SOH\n\+ \\v\n\+ \\ETX\EOT.\SOH\DC2\EOT\213\n\+ \\b\r\n\+ \D\n\+ \\EOT\EOT.\STX\NUL\DC2\EOT\215\n\+ \\EOT\NAK\SUB6 The blockchain the node is on (eg bitcoin, litecoin)\n\+ \\n\+ \\r\n\+ \\ENQ\EOT.\STX\NUL\ENQ\DC2\EOT\215\n\+ \\EOT\n\+ \\n\+ \\r\n\+ \\ENQ\EOT.\STX\NUL\SOH\DC2\EOT\215\n\+ \\v\DLE\n\+ \\r\n\+ \\ENQ\EOT.\STX\NUL\ETX\DC2\EOT\215\n\+ \\DC3\DC4\n\+ \I\n\+ \\EOT\EOT.\STX\SOH\DC2\EOT\218\n\+ \\EOT\ETB\SUB; The network the node is on (eg regtest, testnet, mainnet)\n\+ \\n\+ \\r\n\+ \\ENQ\EOT.\STX\SOH\ENQ\DC2\EOT\218\n\+ \\EOT\n\+ \\n\+ \\r\n\+ \\ENQ\EOT.\STX\SOH\SOH\DC2\EOT\218\n\+ \\v\DC2\n\+ \\r\n\+ \\ENQ\EOT.\STX\SOH\ETX\DC2\EOT\218\n\+ \\NAK\SYN\n\+ \\f\n\+ \\STX\EOT/\DC2\ACK\221\n\+ \\NUL\226\n\+ \\SOH\n\+ \\v\n\+ \\ETX\EOT/\SOH\DC2\EOT\221\n\+ \\b\SUB\n\+ \\f\n\+ \\EOT\EOT/\STX\NUL\DC2\EOT\222\n\+ \\EOT\CAN\n\+ \\r\n\+ \\ENQ\EOT/\STX\NUL\ENQ\DC2\EOT\222\n\+ \\EOT\t\n\+ \\r\n\+ \\ENQ\EOT/\STX\NUL\SOH\DC2\EOT\222\n\+ \\n\+ \\DC3\n\+ \\r\n\+ \\ENQ\EOT/\STX\NUL\ETX\DC2\EOT\222\n\+ \\SYN\ETB\n\+ \\f\n\+ \\EOT\EOT/\STX\SOH\DC2\EOT\223\n\+ \\EOT\ESC\n\+ \\r\n\+ \\ENQ\EOT/\STX\SOH\ENQ\DC2\EOT\223\n\+ \\EOT\t\n\+ \\r\n\+ \\ENQ\EOT/\STX\SOH\SOH\DC2\EOT\223\n\+ \\n\+ \\SYN\n\+ \\r\n\+ \\ENQ\EOT/\STX\SOH\ETX\DC2\EOT\223\n\+ \\EM\SUB\n\+ \\f\n\+ \\EOT\EOT/\STX\STX\DC2\EOT\225\n\+ \\EOT\RS\n\+ \\r\n\+ \\ENQ\EOT/\STX\STX\ENQ\DC2\EOT\225\n\+ \\EOT\n\+ \\n\+ \\r\n\+ \\ENQ\EOT/\STX\STX\SOH\DC2\EOT\225\n\+ \\v\EM\n\+ \\r\n\+ \\ENQ\EOT/\STX\STX\ETX\DC2\EOT\225\n\+ \\FS\GS\n\+ \\f\n\+ \\STX\EOT0\DC2\ACK\228\n\+ \\NUL\230\n\+ \\SOH\n\+ \\v\n\+ \\ETX\EOT0\SOH\DC2\EOT\228\n\+ \\b\EM\n\+ \\f\n\+ \\EOT\EOT0\STX\NUL\DC2\EOT\229\n\+ \\EOT#\n\+ \\r\n\+ \\ENQ\EOT0\STX\NUL\ACK\DC2\EOT\229\n\+ \\EOT\DLE\n\+ \\r\n\+ \\ENQ\EOT0\STX\NUL\SOH\DC2\EOT\229\n\+ \\DC1\RS\n\+ \\r\n\+ \\ENQ\EOT0\STX\NUL\ETX\DC2\EOT\229\n\+ \!\"\n\+ \\f\n\+ \\STX\EOT1\DC2\ACK\232\n\+ \\NUL\236\n\+ \\SOH\n\+ \\v\n\+ \\ETX\EOT1\SOH\DC2\EOT\232\n\+ \\b\SUB\n\+ \\f\n\+ \\EOT\EOT1\STX\NUL\DC2\EOT\233\n\+ \\EOT\ESC\n\+ \\r\n\+ \\ENQ\EOT1\STX\NUL\ENQ\DC2\EOT\233\n\+ \\EOT\t\n\+ \\r\n\+ \\ENQ\EOT1\STX\NUL\SOH\DC2\EOT\233\n\+ \\n\+ \\SYN\n\+ \\r\n\+ \\ENQ\EOT1\STX\NUL\ETX\DC2\EOT\233\n\+ \\EM\SUB\n\+ \\f\n\+ \\EOT\EOT1\STX\SOH\DC2\EOT\235\n\+ \\EOT\NAK\n\+ \\r\n\+ \\ENQ\EOT1\STX\SOH\ENQ\DC2\EOT\235\n\+ \\EOT\b\n\+ \\r\n\+ \\ENQ\EOT1\STX\SOH\SOH\DC2\EOT\235\n\+ \\t\DLE\n\+ \\r\n\+ \\ENQ\EOT1\STX\SOH\ETX\DC2\EOT\235\n\+ \\DC3\DC4\n\+ \\f\n\+ \\STX\EOT2\DC2\ACK\238\n\+ \\NUL\142\v\SOH\n\+ \\v\n\+ \\ETX\EOT2\SOH\DC2\EOT\238\n\+ \\b\ESC\n\+ \\179\SOH\n\+ \\EOT\EOT2\STX\NUL\DC2\EOT\244\n\+ \\EOT#\SUB\164\SOH\n\+ \The outpoint (txid:index) of the funding transaction. With this value, Bob\n\+ \will be able to generate a signature for Alice's version of the commitment\n\+ \transaction.\n\+ \\n\+ \\r\n\+ \\ENQ\EOT2\STX\NUL\ACK\DC2\EOT\244\n\+ \\EOT\DLE\n\+ \\r\n\+ \\ENQ\EOT2\STX\NUL\SOH\DC2\EOT\244\n\+ \\DC1\RS\n\+ \\r\n\+ \\ENQ\EOT2\STX\NUL\ETX\DC2\EOT\244\n\+ \!\"\n\+ \\144\SOH\n\+ \\EOT\EOT2\STX\SOH\DC2\EOT\248\n\+ \\EOT\DC3\SUB\129\SOH If true, then the channel will be closed forcibly. This means the\n\+ \ current commitment transaction will be signed and broadcast.\n\+ \\n\+ \\r\n\+ \\ENQ\EOT2\STX\SOH\ENQ\DC2\EOT\248\n\+ \\EOT\b\n\+ \\r\n\+ \\ENQ\EOT2\STX\SOH\SOH\DC2\EOT\248\n\+ \\t\SO\n\+ \\r\n\+ \\ENQ\EOT2\STX\SOH\ETX\DC2\EOT\248\n\+ \\DC1\DC2\n\+ \a\n\+ \\EOT\EOT2\STX\STX\DC2\EOT\252\n\+ \\EOT\SUB\SUBS The target number of blocks that the closure transaction should be\n\+ \ confirmed by.\n\+ \\n\+ \\r\n\+ \\ENQ\EOT2\STX\STX\ENQ\DC2\EOT\252\n\+ \\EOT\t\n\+ \\r\n\+ \\ENQ\EOT2\STX\STX\SOH\DC2\EOT\252\n\+ \\n\+ \\NAK\n\+ \\r\n\+ \\ENQ\EOT2\STX\STX\ETX\DC2\EOT\252\n\+ \\CAN\EM\n\+ \\143\SOH\n\+ \\EOT\EOT2\STX\ETX\DC2\EOT\129\v\EOT/\SUB\128\SOH Deprecated, use sat_per_vbyte.\n\+ \ A manual fee rate set in sat/vbyte that should be used when crafting the\n\+ \ closure transaction.\n\+ \\n\+ \\r\n\+ \\ENQ\EOT2\STX\ETX\ENQ\DC2\EOT\129\v\EOT\t\n\+ \\r\n\+ \\ENQ\EOT2\STX\ETX\SOH\DC2\EOT\129\v\n\+ \\SYN\n\+ \\r\n\+ \\ENQ\EOT2\STX\ETX\ETX\DC2\EOT\129\v\EM\SUB\n\+ \\r\n\+ \\ENQ\EOT2\STX\ETX\b\DC2\EOT\129\v\ESC.\n\+ \\SO\n\+ \\ACK\EOT2\STX\ETX\b\ETX\DC2\EOT\129\v\FS-\n\+ \\140\STX\n\+ \\EOT\EOT2\STX\EOT\DC2\EOT\137\v\EOT \SUB\253\SOH\n\+ \An optional address to send funds to in the case of a cooperative close.\n\+ \If the channel was opened with an upfront shutdown script and this field\n\+ \is set, the request to close will fail because the channel must pay out\n\+ \to the upfront shutdown addresss.\n\+ \\n\+ \\r\n\+ \\ENQ\EOT2\STX\EOT\ENQ\DC2\EOT\137\v\EOT\n\+ \\n\+ \\r\n\+ \\ENQ\EOT2\STX\EOT\SOH\DC2\EOT\137\v\v\ESC\n\+ \\r\n\+ \\ENQ\EOT2\STX\EOT\ETX\DC2\EOT\137\v\RS\US\n\+ \n\n\+ \\EOT\EOT2\STX\ENQ\DC2\EOT\141\v\EOT\GS\SUB` A manual fee rate set in sat/vbyte that should be used when crafting the\n\+ \ closure transaction.\n\+ \\n\+ \\r\n\+ \\ENQ\EOT2\STX\ENQ\ENQ\DC2\EOT\141\v\EOT\n\+ \\n\+ \\r\n\+ \\ENQ\EOT2\STX\ENQ\SOH\DC2\EOT\141\v\v\CAN\n\+ \\r\n\+ \\ENQ\EOT2\STX\ENQ\ETX\DC2\EOT\141\v\ESC\FS\n\+ \\f\n\+ \\STX\EOT3\DC2\ACK\144\v\NUL\149\v\SOH\n\+ \\v\n\+ \\ETX\EOT3\SOH\DC2\EOT\144\v\b\EM\n\+ \\SO\n\+ \\EOT\EOT3\b\NUL\DC2\ACK\145\v\EOT\148\v\ENQ\n\+ \\r\n\+ \\ENQ\EOT3\b\NUL\SOH\DC2\EOT\145\v\n\+ \\DLE\n\+ \\f\n\+ \\EOT\EOT3\STX\NUL\DC2\EOT\146\v\b(\n\+ \\r\n\+ \\ENQ\EOT3\STX\NUL\ACK\DC2\EOT\146\v\b\NAK\n\+ \\r\n\+ \\ENQ\EOT3\STX\NUL\SOH\DC2\EOT\146\v\SYN#\n\+ \\r\n\+ \\ENQ\EOT3\STX\NUL\ETX\DC2\EOT\146\v&'\n\+ \\f\n\+ \\EOT\EOT3\STX\SOH\DC2\EOT\147\v\b*\n\+ \\r\n\+ \\ENQ\EOT3\STX\SOH\ACK\DC2\EOT\147\v\b\SUB\n\+ \\r\n\+ \\ENQ\EOT3\STX\SOH\SOH\DC2\EOT\147\v\ESC%\n\+ \\r\n\+ \\ENQ\EOT3\STX\SOH\ETX\DC2\EOT\147\v()\n\+ \\f\n\+ \\STX\EOT4\DC2\ACK\151\v\NUL\171\v\SOH\n\+ \\v\n\+ \\ETX\EOT4\SOH\DC2\EOT\151\v\b\ESC\n\+ \\138\SOH\n\+ \\EOT\EOT4\STX\NUL\DC2\EOT\156\v\EOT\US\SUB|\n\+ \The P2WSH address of the channel funding multisig address that the below\n\+ \specified amount in satoshis needs to be sent to.\n\+ \\n\+ \\r\n\+ \\ENQ\EOT4\STX\NUL\ENQ\DC2\EOT\156\v\EOT\n\+ \\n\+ \\r\n\+ \\ENQ\EOT4\STX\NUL\SOH\DC2\EOT\156\v\v\SUB\n\+ \\r\n\+ \\ENQ\EOT4\STX\NUL\ETX\DC2\EOT\156\v\GS\RS\n\+ \t\n\+ \\EOT\EOT4\STX\SOH\DC2\EOT\162\v\EOT\GS\SUBf\n\+ \The exact amount in satoshis that needs to be sent to the above address to\n\+ \fund the pending channel.\n\+ \\n\+ \\r\n\+ \\ENQ\EOT4\STX\SOH\ENQ\DC2\EOT\162\v\EOT\t\n\+ \\r\n\+ \\ENQ\EOT4\STX\SOH\SOH\DC2\EOT\162\v\n\+ \\CAN\n\+ \\r\n\+ \\ENQ\EOT4\STX\SOH\ETX\DC2\EOT\162\v\ESC\FS\n\+ \\252\SOH\n\+ \\EOT\EOT4\STX\STX\DC2\EOT\170\v\EOT\DC3\SUB\237\SOH\n\+ \A raw PSBT that contains the pending channel output. If a base PSBT was\n\+ \provided in the PsbtShim, this is the base PSBT with one additional output.\n\+ \If no base PSBT was specified, this is an otherwise empty PSBT with exactly\n\+ \one output.\n\+ \\n\+ \\r\n\+ \\ENQ\EOT4\STX\STX\ENQ\DC2\EOT\170\v\EOT\t\n\+ \\r\n\+ \\ENQ\EOT4\STX\STX\SOH\DC2\EOT\170\v\n\+ \\SO\n\+ \\r\n\+ \\ENQ\EOT4\STX\STX\ETX\DC2\EOT\170\v\DC1\DC2\n\+ \\f\n\+ \\STX\EOT5\DC2\ACK\173\v\NUL\195\v\SOH\n\+ \\v\n\+ \\ETX\EOT5\SOH\DC2\EOT\173\v\b\US\n\+ \-\n\+ \\EOT\EOT5\STX\NUL\DC2\EOT\175\v\EOT+\SUB\US The list of channels to open.\n\+ \\n\+ \\r\n\+ \\ENQ\EOT5\STX\NUL\EOT\DC2\EOT\175\v\EOT\f\n\+ \\r\n\+ \\ENQ\EOT5\STX\NUL\ACK\DC2\EOT\175\v\r\GS\n\+ \\r\n\+ \\ENQ\EOT5\STX\NUL\SOH\DC2\EOT\175\v\RS&\n\+ \\r\n\+ \\ENQ\EOT5\STX\NUL\ETX\DC2\EOT\175\v)*\n\+ \a\n\+ \\EOT\EOT5\STX\SOH\DC2\EOT\179\v\EOT\SUB\SUBS The target number of blocks that the funding transaction should be\n\+ \ confirmed by.\n\+ \\n\+ \\r\n\+ \\ENQ\EOT5\STX\SOH\ENQ\DC2\EOT\179\v\EOT\t\n\+ \\r\n\+ \\ENQ\EOT5\STX\SOH\SOH\DC2\EOT\179\v\n\+ \\NAK\n\+ \\r\n\+ \\ENQ\EOT5\STX\SOH\ETX\DC2\EOT\179\v\CAN\EM\n\+ \n\n\+ \\EOT\EOT5\STX\STX\DC2\EOT\183\v\EOT\FS\SUB` A manual fee rate set in sat/vByte that should be used when crafting the\n\+ \ funding transaction.\n\+ \\n\+ \\r\n\+ \\ENQ\EOT5\STX\STX\ENQ\DC2\EOT\183\v\EOT\t\n\+ \\r\n\+ \\ENQ\EOT5\STX\STX\SOH\DC2\EOT\183\v\n\+ \\ETB\n\+ \\r\n\+ \\ENQ\EOT5\STX\STX\ETX\DC2\EOT\183\v\SUB\ESC\n\+ \|\n\+ \\EOT\EOT5\STX\ETX\DC2\EOT\187\v\EOT\CAN\SUBn The minimum number of confirmations each one of your outputs used for\n\+ \ the funding transaction must satisfy.\n\+ \\n\+ \\r\n\+ \\ENQ\EOT5\STX\ETX\ENQ\DC2\EOT\187\v\EOT\t\n\+ \\r\n\+ \\ENQ\EOT5\STX\ETX\SOH\DC2\EOT\187\v\n\+ \\DC3\n\+ \\r\n\+ \\ENQ\EOT5\STX\ETX\ETX\DC2\EOT\187\v\SYN\ETB\n\+ \b\n\+ \\EOT\EOT5\STX\EOT\DC2\EOT\191\v\EOT\US\SUBT Whether unconfirmed outputs should be used as inputs for the funding\n\+ \ transaction.\n\+ \\n\+ \\r\n\+ \\ENQ\EOT5\STX\EOT\ENQ\DC2\EOT\191\v\EOT\b\n\+ \\r\n\+ \\ENQ\EOT5\STX\EOT\SOH\DC2\EOT\191\v\t\SUB\n\+ \\r\n\+ \\ENQ\EOT5\STX\EOT\ETX\DC2\EOT\191\v\GS\RS\n\+ \W\n\+ \\EOT\EOT5\STX\ENQ\DC2\EOT\194\v\EOT\NAK\SUBI An optional label for the batch transaction, limited to 500 characters.\n\+ \\n\+ \\r\n\+ \\ENQ\EOT5\STX\ENQ\ENQ\DC2\EOT\194\v\EOT\n\+ \\n\+ \\r\n\+ \\ENQ\EOT5\STX\ENQ\SOH\DC2\EOT\194\v\v\DLE\n\+ \\r\n\+ \\ENQ\EOT5\STX\ENQ\ETX\DC2\EOT\194\v\DC3\DC4\n\+ \\f\n\+ \\STX\EOT6\DC2\ACK\197\v\NUL\245\v\SOH\n\+ \\v\n\+ \\ETX\EOT6\SOH\DC2\EOT\197\v\b\CAN\n\+ \v\n\+ \\EOT\EOT6\STX\NUL\DC2\EOT\200\v\EOT\SUB\SUBh The pubkey of the node to open a channel with. When using REST, this\n\+ \ field must be encoded as base64.\n\+ \\n\+ \\r\n\+ \\ENQ\EOT6\STX\NUL\ENQ\DC2\EOT\200\v\EOT\t\n\+ \\r\n\+ \\ENQ\EOT6\STX\NUL\SOH\DC2\EOT\200\v\n\+ \\NAK\n\+ \\r\n\+ \\ENQ\EOT6\STX\NUL\ETX\DC2\EOT\200\v\CAN\EM\n\+ \O\n\+ \\EOT\EOT6\STX\SOH\DC2\EOT\203\v\EOT#\SUBA The number of satoshis the wallet should commit to the channel.\n\+ \\n\+ \\r\n\+ \\ENQ\EOT6\STX\SOH\ENQ\DC2\EOT\203\v\EOT\t\n\+ \\r\n\+ \\ENQ\EOT6\STX\SOH\SOH\DC2\EOT\203\v\n\+ \\RS\n\+ \\r\n\+ \\ENQ\EOT6\STX\SOH\ETX\DC2\EOT\203\v!\"\n\+ \k\n\+ \\EOT\EOT6\STX\STX\DC2\EOT\207\v\EOT\ETB\SUB] The number of satoshis to push to the remote side as part of the initial\n\+ \ commitment state.\n\+ \\n\+ \\r\n\+ \\ENQ\EOT6\STX\STX\ENQ\DC2\EOT\207\v\EOT\t\n\+ \\r\n\+ \\ENQ\EOT6\STX\STX\SOH\DC2\EOT\207\v\n\+ \\DC2\n\+ \\r\n\+ \\ENQ\EOT6\STX\STX\ETX\DC2\EOT\207\v\NAK\SYN\n\+ \^\n\+ \\EOT\EOT6\STX\ETX\DC2\EOT\211\v\EOT\NAK\SUBP Whether this channel should be private, not announced to the greater\n\+ \ network.\n\+ \\n\+ \\r\n\+ \\ENQ\EOT6\STX\ETX\ENQ\DC2\EOT\211\v\EOT\b\n\+ \\r\n\+ \\ENQ\EOT6\STX\ETX\SOH\DC2\EOT\211\v\t\DLE\n\+ \\r\n\+ \\ENQ\EOT6\STX\ETX\ETX\DC2\EOT\211\v\DC3\DC4\n\+ \e\n\+ \\EOT\EOT6\STX\EOT\DC2\EOT\215\v\EOT\FS\SUBW The minimum value in millisatoshi we will require for incoming HTLCs on\n\+ \ the channel.\n\+ \\n\+ \\r\n\+ \\ENQ\EOT6\STX\EOT\ENQ\DC2\EOT\215\v\EOT\t\n\+ \\r\n\+ \\ENQ\EOT6\STX\EOT\SOH\DC2\EOT\215\v\n\+ \\ETB\n\+ \\r\n\+ \\ENQ\EOT6\STX\EOT\ETX\DC2\EOT\215\v\SUB\ESC\n\+ \\153\SOH\n\+ \\EOT\EOT6\STX\ENQ\DC2\EOT\219\v\EOT \SUB\138\SOH The delay we require on the remote's commitment transaction. If this is\n\+ \ not set, it will be scaled automatically with the channel size.\n\+ \\n\+ \\r\n\+ \\ENQ\EOT6\STX\ENQ\ENQ\DC2\EOT\219\v\EOT\n\+ \\n\+ \\r\n\+ \\ENQ\EOT6\STX\ENQ\SOH\DC2\EOT\219\v\v\ESC\n\+ \\r\n\+ \\ENQ\EOT6\STX\ENQ\ETX\DC2\EOT\219\v\RS\US\n\+ \\197\ETX\n\+ \\EOT\EOT6\STX\ACK\DC2\EOT\231\v\EOT\GS\SUB\182\ETX\n\+ \Close address is an optional address which specifies the address to which\n\+ \funds should be paid out to upon cooperative close. This field may only be\n\+ \set if the peer supports the option upfront feature bit (call listpeers\n\+ \to check). The remote peer will only accept cooperative closes to this\n\+ \address if it is set.\n\+ \\n\+ \Note: If this value is set on channel creation, you will *not* be able to\n\+ \cooperatively close out to a different address.\n\+ \\n\+ \\r\n\+ \\ENQ\EOT6\STX\ACK\ENQ\DC2\EOT\231\v\EOT\n\+ \\n\+ \\r\n\+ \\ENQ\EOT6\STX\ACK\SOH\DC2\EOT\231\v\v\CAN\n\+ \\r\n\+ \\ENQ\EOT6\STX\ACK\ETX\DC2\EOT\231\v\ESC\FS\n\+ \\172\SOH\n\+ \\EOT\EOT6\STX\a\DC2\EOT\238\v\EOT\RS\SUB\157\SOH\n\+ \An optional, unique identifier of 32 random bytes that will be used as the\n\+ \pending channel ID to identify the channel while it is in the pre-pending\n\+ \state.\n\+ \\n\+ \\r\n\+ \\ENQ\EOT6\STX\a\ENQ\DC2\EOT\238\v\EOT\t\n\+ \\r\n\+ \\ENQ\EOT6\STX\a\SOH\DC2\EOT\238\v\n\+ \\EM\n\+ \\r\n\+ \\ENQ\EOT6\STX\a\ETX\DC2\EOT\238\v\FS\GS\n\+ \\145\SOH\n\+ \\EOT\EOT6\STX\b\DC2\EOT\244\v\EOT'\SUB\130\SOH\n\+ \The explicit commitment type to use. Note this field will only be used if\n\+ \the remote peer supports explicit channel negotiation.\n\+ \\n\+ \\r\n\+ \\ENQ\EOT6\STX\b\ACK\DC2\EOT\244\v\EOT\DC2\n\+ \\r\n\+ \\ENQ\EOT6\STX\b\SOH\DC2\EOT\244\v\DC3\"\n\+ \\r\n\+ \\ENQ\EOT6\STX\b\ETX\DC2\EOT\244\v%&\n\+ \\f\n\+ \\STX\EOT7\DC2\ACK\247\v\NUL\249\v\SOH\n\+ \\v\n\+ \\ETX\EOT7\SOH\DC2\EOT\247\v\b \n\+ \\f\n\+ \\EOT\EOT7\STX\NUL\DC2\EOT\248\v\EOT0\n\+ \\r\n\+ \\ENQ\EOT7\STX\NUL\EOT\DC2\EOT\248\v\EOT\f\n\+ \\r\n\+ \\ENQ\EOT7\STX\NUL\ACK\DC2\EOT\248\v\r\SUB\n\+ \\r\n\+ \\ENQ\EOT7\STX\NUL\SOH\DC2\EOT\248\v\ESC+\n\+ \\r\n\+ \\ENQ\EOT7\STX\NUL\ETX\DC2\EOT\248\v./\n\+ \\f\n\+ \\STX\EOT8\DC2\ACK\251\v\NUL\220\f\SOH\n\+ \\v\n\+ \\ETX\EOT8\SOH\DC2\EOT\251\v\b\SUB\n\+ \n\n\+ \\EOT\EOT8\STX\NUL\DC2\EOT\254\v\EOT\GS\SUB` A manual fee rate set in sat/vbyte that should be used when crafting the\n\+ \ funding transaction.\n\+ \\n\+ \\r\n\+ \\ENQ\EOT8\STX\NUL\ENQ\DC2\EOT\254\v\EOT\n\+ \\n\+ \\r\n\+ \\ENQ\EOT8\STX\NUL\SOH\DC2\EOT\254\v\v\CAN\n\+ \\r\n\+ \\ENQ\EOT8\STX\NUL\ETX\DC2\EOT\254\v\ESC\FS\n\+ \u\n\+ \\EOT\EOT8\STX\SOH\DC2\EOT\132\f\EOT\SUB\SUBg\n\+ \The pubkey of the node to open a channel with. When using REST, this field\n\+ \must be encoded as base64.\n\+ \\n\+ \\r\n\+ \\ENQ\EOT8\STX\SOH\ENQ\DC2\EOT\132\f\EOT\t\n\+ \\r\n\+ \\ENQ\EOT8\STX\SOH\SOH\DC2\EOT\132\f\n\+ \\NAK\n\+ \\r\n\+ \\ENQ\EOT8\STX\SOH\ETX\DC2\EOT\132\f\CAN\EM\n\+ \\154\SOH\n\+ \\EOT\EOT8\STX\STX\DC2\EOT\138\f\EOT6\SUB\139\SOH\n\+ \The hex encoded pubkey of the node to open a channel with. Deprecated now\n\+ \that the REST gateway supports base64 encoding of bytes fields.\n\+ \\n\+ \\r\n\+ \\ENQ\EOT8\STX\STX\ENQ\DC2\EOT\138\f\EOT\n\+ \\n\+ \\r\n\+ \\ENQ\EOT8\STX\STX\SOH\DC2\EOT\138\f\v\GS\n\+ \\r\n\+ \\ENQ\EOT8\STX\STX\ETX\DC2\EOT\138\f !\n\+ \\r\n\+ \\ENQ\EOT8\STX\STX\b\DC2\EOT\138\f\"5\n\+ \\SO\n\+ \\ACK\EOT8\STX\STX\b\ETX\DC2\EOT\138\f#4\n\+ \N\n\+ \\EOT\EOT8\STX\ETX\DC2\EOT\141\f\EOT#\SUB@ The number of satoshis the wallet should commit to the channel\n\+ \\n\+ \\r\n\+ \\ENQ\EOT8\STX\ETX\ENQ\DC2\EOT\141\f\EOT\t\n\+ \\r\n\+ \\ENQ\EOT8\STX\ETX\SOH\DC2\EOT\141\f\n\+ \\RS\n\+ \\r\n\+ \\ENQ\EOT8\STX\ETX\ETX\DC2\EOT\141\f!\"\n\+ \j\n\+ \\EOT\EOT8\STX\EOT\DC2\EOT\145\f\EOT\ETB\SUB\\ The number of satoshis to push to the remote side as part of the initial\n\+ \ commitment state\n\+ \\n\+ \\r\n\+ \\ENQ\EOT8\STX\EOT\ENQ\DC2\EOT\145\f\EOT\t\n\+ \\r\n\+ \\ENQ\EOT8\STX\EOT\SOH\DC2\EOT\145\f\n\+ \\DC2\n\+ \\r\n\+ \\ENQ\EOT8\STX\EOT\ETX\DC2\EOT\145\f\NAK\SYN\n\+ \a\n\+ \\EOT\EOT8\STX\ENQ\DC2\EOT\149\f\EOT\SUB\SUBS The target number of blocks that the funding transaction should be\n\+ \ confirmed by.\n\+ \\n\+ \\r\n\+ \\ENQ\EOT8\STX\ENQ\ENQ\DC2\EOT\149\f\EOT\t\n\+ \\r\n\+ \\ENQ\EOT8\STX\ENQ\SOH\DC2\EOT\149\f\n\+ \\NAK\n\+ \\r\n\+ \\ENQ\EOT8\STX\ENQ\ETX\DC2\EOT\149\f\CAN\EM\n\+ \\143\SOH\n\+ \\EOT\EOT8\STX\ACK\DC2\EOT\154\f\EOT/\SUB\128\SOH Deprecated, use sat_per_vbyte.\n\+ \ A manual fee rate set in sat/vbyte that should be used when crafting the\n\+ \ funding transaction.\n\+ \\n\+ \\r\n\+ \\ENQ\EOT8\STX\ACK\ENQ\DC2\EOT\154\f\EOT\t\n\+ \\r\n\+ \\ENQ\EOT8\STX\ACK\SOH\DC2\EOT\154\f\n\+ \\SYN\n\+ \\r\n\+ \\ENQ\EOT8\STX\ACK\ETX\DC2\EOT\154\f\EM\SUB\n\+ \\r\n\+ \\ENQ\EOT8\STX\ACK\b\DC2\EOT\154\f\ESC.\n\+ \\SO\n\+ \\ACK\EOT8\STX\ACK\b\ETX\DC2\EOT\154\f\FS-\n\+ \^\n\+ \\EOT\EOT8\STX\a\DC2\EOT\158\f\EOT\NAK\SUBP Whether this channel should be private, not announced to the greater\n\+ \ network.\n\+ \\n\+ \\r\n\+ \\ENQ\EOT8\STX\a\ENQ\DC2\EOT\158\f\EOT\b\n\+ \\r\n\+ \\ENQ\EOT8\STX\a\SOH\DC2\EOT\158\f\t\DLE\n\+ \\r\n\+ \\ENQ\EOT8\STX\a\ETX\DC2\EOT\158\f\DC3\DC4\n\+ \e\n\+ \\EOT\EOT8\STX\b\DC2\EOT\162\f\EOT\FS\SUBW The minimum value in millisatoshi we will require for incoming HTLCs on\n\+ \ the channel.\n\+ \\n\+ \\r\n\+ \\ENQ\EOT8\STX\b\ENQ\DC2\EOT\162\f\EOT\t\n\+ \\r\n\+ \\ENQ\EOT8\STX\b\SOH\DC2\EOT\162\f\n\+ \\ETB\n\+ \\r\n\+ \\ENQ\EOT8\STX\b\ETX\DC2\EOT\162\f\SUB\ESC\n\+ \\153\SOH\n\+ \\EOT\EOT8\STX\t\DC2\EOT\166\f\EOT!\SUB\138\SOH The delay we require on the remote's commitment transaction. If this is\n\+ \ not set, it will be scaled automatically with the channel size.\n\+ \\n\+ \\r\n\+ \\ENQ\EOT8\STX\t\ENQ\DC2\EOT\166\f\EOT\n\+ \\n\+ \\r\n\+ \\ENQ\EOT8\STX\t\SOH\DC2\EOT\166\f\v\ESC\n\+ \\r\n\+ \\ENQ\EOT8\STX\t\ETX\DC2\EOT\166\f\RS \n\+ \|\n\+ \\EOT\EOT8\STX\n\+ \\DC2\EOT\170\f\EOT\EM\SUBn The minimum number of confirmations each one of your outputs used for\n\+ \ the funding transaction must satisfy.\n\+ \\n\+ \\r\n\+ \\ENQ\EOT8\STX\n\+ \\ENQ\DC2\EOT\170\f\EOT\t\n\+ \\r\n\+ \\ENQ\EOT8\STX\n\+ \\SOH\DC2\EOT\170\f\n\+ \\DC3\n\+ \\r\n\+ \\ENQ\EOT8\STX\n\+ \\ETX\DC2\EOT\170\f\SYN\CAN\n\+ \b\n\+ \\EOT\EOT8\STX\v\DC2\EOT\174\f\EOT \SUBT Whether unconfirmed outputs should be used as inputs for the funding\n\+ \ transaction.\n\+ \\n\+ \\r\n\+ \\ENQ\EOT8\STX\v\ENQ\DC2\EOT\174\f\EOT\b\n\+ \\r\n\+ \\ENQ\EOT8\STX\v\SOH\DC2\EOT\174\f\t\SUB\n\+ \\r\n\+ \\ENQ\EOT8\STX\v\ETX\DC2\EOT\174\f\GS\US\n\+ \\197\ETX\n\+ \\EOT\EOT8\STX\f\DC2\EOT\186\f\EOT\RS\SUB\182\ETX\n\+ \Close address is an optional address which specifies the address to which\n\+ \funds should be paid out to upon cooperative close. This field may only be\n\+ \set if the peer supports the option upfront feature bit (call listpeers\n\+ \to check). The remote peer will only accept cooperative closes to this\n\+ \address if it is set.\n\+ \\n\+ \Note: If this value is set on channel creation, you will *not* be able to\n\+ \cooperatively close out to a different address.\n\+ \\n\+ \\r\n\+ \\ENQ\EOT8\STX\f\ENQ\DC2\EOT\186\f\EOT\n\+ \\n\+ \\r\n\+ \\ENQ\EOT8\STX\f\SOH\DC2\EOT\186\f\v\CAN\n\+ \\r\n\+ \\ENQ\EOT8\STX\f\ETX\DC2\EOT\186\f\ESC\GS\n\+ \\236\STX\n\+ \\EOT\EOT8\STX\r\DC2\EOT\195\f\EOT\"\SUB\221\STX\n\+ \Funding shims are an optional argument that allow the caller to intercept\n\+ \certain funding functionality. For example, a shim can be provided to use a\n\+ \particular key for the commitment key (ideally cold) rather than use one\n\+ \that is generated by the wallet as normal, or signal that signing will be\n\+ \carried out in an interactive manner (PSBT based).\n\+ \\n\+ \\r\n\+ \\ENQ\EOT8\STX\r\ACK\DC2\EOT\195\f\EOT\SI\n\+ \\r\n\+ \\ENQ\EOT8\STX\r\SOH\DC2\EOT\195\f\DLE\FS\n\+ \\r\n\+ \\ENQ\EOT8\STX\r\ETX\DC2\EOT\195\f\US!\n\+ \\136\SOH\n\+ \\EOT\EOT8\STX\SO\DC2\EOT\201\f\EOT0\SUBz\n\+ \The maximum amount of coins in millisatoshi that can be pending within\n\+ \the channel. It only applies to the remote party.\n\+ \\n\+ \\r\n\+ \\ENQ\EOT8\STX\SO\ENQ\DC2\EOT\201\f\EOT\n\+ \\n\+ \\r\n\+ \\ENQ\EOT8\STX\SO\SOH\DC2\EOT\201\f\v*\n\+ \\r\n\+ \\ENQ\EOT8\STX\SO\ETX\DC2\EOT\201\f-/\n\+ \{\n\+ \\EOT\EOT8\STX\SI\DC2\EOT\207\f\EOT!\SUBm\n\+ \The maximum number of concurrent HTLCs we will allow the remote party to add\n\+ \to the commitment transaction.\n\+ \\n\+ \\r\n\+ \\ENQ\EOT8\STX\SI\ENQ\DC2\EOT\207\f\EOT\n\+ \\n\+ \\r\n\+ \\ENQ\EOT8\STX\SI\SOH\DC2\EOT\207\f\v\ESC\n\+ \\r\n\+ \\ENQ\EOT8\STX\SI\ETX\DC2\EOT\207\f\RS \n\+ \h\n\+ \\EOT\EOT8\STX\DLE\DC2\EOT\213\f\EOT\RS\SUBZ\n\+ \Max local csv is the maximum csv delay we will allow for our own commitment\n\+ \transaction.\n\+ \\n\+ \\r\n\+ \\ENQ\EOT8\STX\DLE\ENQ\DC2\EOT\213\f\EOT\n\+ \\n\+ \\r\n\+ \\ENQ\EOT8\STX\DLE\SOH\DC2\EOT\213\f\v\CAN\n\+ \\r\n\+ \\ENQ\EOT8\STX\DLE\ETX\DC2\EOT\213\f\ESC\GS\n\+ \\145\SOH\n\+ \\EOT\EOT8\STX\DC1\DC2\EOT\219\f\EOT(\SUB\130\SOH\n\+ \The explicit commitment type to use. Note this field will only be used if\n\+ \the remote peer supports explicit channel negotiation.\n\+ \\n\+ \\r\n\+ \\ENQ\EOT8\STX\DC1\ACK\DC2\EOT\219\f\EOT\DC2\n\+ \\r\n\+ \\ENQ\EOT8\STX\DC1\SOH\DC2\EOT\219\f\DC3\"\n\+ \\r\n\+ \\ENQ\EOT8\STX\DC1\ETX\DC2\EOT\219\f%'\n\+ \\f\n\+ \\STX\EOT9\DC2\ACK\221\f\NUL\247\f\SOH\n\+ \\v\n\+ \\ETX\EOT9\SOH\DC2\EOT\221\f\b\CAN\n\+ \\SO\n\+ \\EOT\EOT9\b\NUL\DC2\ACK\222\f\EOT\240\f\ENQ\n\+ \\r\n\+ \\ENQ\EOT9\b\NUL\SOH\DC2\EOT\222\f\n\+ \\DLE\n\+ \g\n\+ \\EOT\EOT9\STX\NUL\DC2\EOT\227\f\b'\SUBY\n\+ \Signals that the channel is now fully negotiated and the funding\n\+ \transaction published.\n\+ \\n\+ \\r\n\+ \\ENQ\EOT9\STX\NUL\ACK\DC2\EOT\227\f\b\NAK\n\+ \\r\n\+ \\ENQ\EOT9\STX\NUL\SOH\DC2\EOT\227\f\SYN\"\n\+ \\r\n\+ \\ENQ\EOT9\STX\NUL\ETX\DC2\EOT\227\f%&\n\+ \\141\SOH\n\+ \\EOT\EOT9\STX\SOH\DC2\EOT\233\f\b(\SUB\DEL\n\+ \Signals that the channel's funding transaction has now reached the\n\+ \required number of confirmations on chain and can be used.\n\+ \\n\+ \\r\n\+ \\ENQ\EOT9\STX\SOH\ACK\DC2\EOT\233\f\b\EM\n\+ \\r\n\+ \\ENQ\EOT9\STX\SOH\SOH\DC2\EOT\233\f\SUB#\n\+ \\r\n\+ \\ENQ\EOT9\STX\SOH\ETX\DC2\EOT\233\f&'\n\+ \\149\SOH\n\+ \\EOT\EOT9\STX\STX\DC2\EOT\239\f\b*\SUB\134\SOH\n\+ \Signals that the funding process has been suspended and the construction\n\+ \of a PSBT that funds the channel PK script is now required.\n\+ \\n\+ \\r\n\+ \\ENQ\EOT9\STX\STX\ACK\DC2\EOT\239\f\b\ESC\n\+ \\r\n\+ \\ENQ\EOT9\STX\STX\SOH\DC2\EOT\239\f\FS%\n\+ \\r\n\+ \\ENQ\EOT9\STX\STX\ETX\DC2\EOT\239\f()\n\+ \\156\SOH\n\+ \\EOT\EOT9\STX\ETX\DC2\EOT\246\f\EOT\RS\SUB\141\SOH\n\+ \The pending channel ID of the created channel. This value may be used to\n\+ \further the funding flow manually via the FundingStateStep method.\n\+ \\n\+ \\r\n\+ \\ENQ\EOT9\STX\ETX\ENQ\DC2\EOT\246\f\EOT\t\n\+ \\r\n\+ \\ENQ\EOT9\STX\ETX\SOH\DC2\EOT\246\f\n\+ \\EM\n\+ \\r\n\+ \\ENQ\EOT9\STX\ETX\ETX\DC2\EOT\246\f\FS\GSb\ACKproto3"
@@ -0,0 +1,1107 @@+{- This file was auto-generated from lightning.proto by the proto-lens-protoc program. -}+{-# LANGUAGE ScopedTypeVariables, DataKinds, TypeFamilies, UndecidableInstances, GeneralizedNewtypeDeriving, MultiParamTypeClasses, FlexibleContexts, FlexibleInstances, PatternSynonyms, MagicHash, NoImplicitPrelude, BangPatterns, TypeApplications, OverloadedStrings, DerivingStrategies, DeriveGeneric#-}+{-# OPTIONS_GHC -Wno-unused-imports#-}+{-# OPTIONS_GHC -Wno-duplicate-exports#-}+{-# OPTIONS_GHC -Wno-dodgy-exports#-}+module Proto.Lightning_Fields where+import qualified Data.ProtoLens.Runtime.Prelude as Prelude+import qualified Data.ProtoLens.Runtime.Data.Int as Data.Int+import qualified Data.ProtoLens.Runtime.Data.Monoid as Data.Monoid+import qualified Data.ProtoLens.Runtime.Data.Word as Data.Word+import qualified Data.ProtoLens.Runtime.Data.ProtoLens as Data.ProtoLens+import qualified Data.ProtoLens.Runtime.Data.ProtoLens.Encoding.Bytes as Data.ProtoLens.Encoding.Bytes+import qualified Data.ProtoLens.Runtime.Data.ProtoLens.Encoding.Growing as Data.ProtoLens.Encoding.Growing+import qualified Data.ProtoLens.Runtime.Data.ProtoLens.Encoding.Parser.Unsafe as Data.ProtoLens.Encoding.Parser.Unsafe+import qualified Data.ProtoLens.Runtime.Data.ProtoLens.Encoding.Wire as Data.ProtoLens.Encoding.Wire+import qualified Data.ProtoLens.Runtime.Data.ProtoLens.Field as Data.ProtoLens.Field+import qualified Data.ProtoLens.Runtime.Data.ProtoLens.Message.Enum as Data.ProtoLens.Message.Enum+import qualified Data.ProtoLens.Runtime.Data.ProtoLens.Service.Types as Data.ProtoLens.Service.Types+import qualified Data.ProtoLens.Runtime.Lens.Family2 as Lens.Family2+import qualified Data.ProtoLens.Runtime.Lens.Family2.Unchecked as Lens.Family2.Unchecked+import qualified Data.ProtoLens.Runtime.Data.Text as Data.Text+import qualified Data.ProtoLens.Runtime.Data.Map as Data.Map+import qualified Data.ProtoLens.Runtime.Data.ByteString as Data.ByteString+import qualified Data.ProtoLens.Runtime.Data.ByteString.Char8 as Data.ByteString.Char8+import qualified Data.ProtoLens.Runtime.Data.Text.Encoding as Data.Text.Encoding+import qualified Data.ProtoLens.Runtime.Data.Vector as Data.Vector+import qualified Data.ProtoLens.Runtime.Data.Vector.Generic as Data.Vector.Generic+import qualified Data.ProtoLens.Runtime.Data.Vector.Unboxed as Data.Vector.Unboxed+import qualified Data.ProtoLens.Runtime.Text.Read as Text.Read+import qualified Proto.Lnrpc.Ln0+import qualified Proto.Lnrpc.Ln1+abandoned ::+ forall f s a.+ (Prelude.Functor f,+ Data.ProtoLens.Field.HasField s "abandoned" a) =>+ Lens.Family2.LensLike' f s a+abandoned = Data.ProtoLens.Field.field @"abandoned"+accept ::+ forall f s a.+ (Prelude.Functor f, Data.ProtoLens.Field.HasField s "accept" a) =>+ Lens.Family2.LensLike' f s a+accept = Data.ProtoLens.Field.field @"accept"+account ::+ forall f s a.+ (Prelude.Functor f, Data.ProtoLens.Field.HasField s "account" a) =>+ Lens.Family2.LensLike' f s a+account = Data.ProtoLens.Field.field @"account"+activeOnly ::+ forall f s a.+ (Prelude.Functor f,+ Data.ProtoLens.Field.HasField s "activeOnly" a) =>+ Lens.Family2.LensLike' f s a+activeOnly = Data.ProtoLens.Field.field @"activeOnly"+addr ::+ forall f s a.+ (Prelude.Functor f, Data.ProtoLens.Field.HasField s "addr" a) =>+ Lens.Family2.LensLike' f s a+addr = Data.ProtoLens.Field.field @"addr"+addrToAmount ::+ forall f s a.+ (Prelude.Functor f,+ Data.ProtoLens.Field.HasField s "addrToAmount" a) =>+ Lens.Family2.LensLike' f s a+addrToAmount = Data.ProtoLens.Field.field @"addrToAmount"+address ::+ forall f s a.+ (Prelude.Functor f, Data.ProtoLens.Field.HasField s "address" a) =>+ Lens.Family2.LensLike' f s a+address = Data.ProtoLens.Field.field @"address"+addressType ::+ forall f s a.+ (Prelude.Functor f,+ Data.ProtoLens.Field.HasField s "addressType" a) =>+ Lens.Family2.LensLike' f s a+addressType = Data.ProtoLens.Field.field @"addressType"+alias ::+ forall f s a.+ (Prelude.Functor f, Data.ProtoLens.Field.HasField s "alias" a) =>+ Lens.Family2.LensLike' f s a+alias = Data.ProtoLens.Field.field @"alias"+allowSelfPayment ::+ forall f s a.+ (Prelude.Functor f,+ Data.ProtoLens.Field.HasField s "allowSelfPayment" a) =>+ Lens.Family2.LensLike' f s a+allowSelfPayment = Data.ProtoLens.Field.field @"allowSelfPayment"+amount ::+ forall f s a.+ (Prelude.Functor f, Data.ProtoLens.Field.HasField s "amount" a) =>+ Lens.Family2.LensLike' f s a+amount = Data.ProtoLens.Field.field @"amount"+amountSat ::+ forall f s a.+ (Prelude.Functor f,+ Data.ProtoLens.Field.HasField s "amountSat" a) =>+ Lens.Family2.LensLike' f s a+amountSat = Data.ProtoLens.Field.field @"amountSat"+amt ::+ forall f s a.+ (Prelude.Functor f, Data.ProtoLens.Field.HasField s "amt" a) =>+ Lens.Family2.LensLike' f s a+amt = Data.ProtoLens.Field.field @"amt"+amtMsat ::+ forall f s a.+ (Prelude.Functor f, Data.ProtoLens.Field.HasField s "amtMsat" a) =>+ Lens.Family2.LensLike' f s a+amtMsat = Data.ProtoLens.Field.field @"amtMsat"+bestHeaderTimestamp ::+ forall f s a.+ (Prelude.Functor f,+ Data.ProtoLens.Field.HasField s "bestHeaderTimestamp" a) =>+ Lens.Family2.LensLike' f s a+bestHeaderTimestamp+ = Data.ProtoLens.Field.field @"bestHeaderTimestamp"+blockHash ::+ forall f s a.+ (Prelude.Functor f,+ Data.ProtoLens.Field.HasField s "blockHash" a) =>+ Lens.Family2.LensLike' f s a+blockHash = Data.ProtoLens.Field.field @"blockHash"+blockHeight ::+ forall f s a.+ (Prelude.Functor f,+ Data.ProtoLens.Field.HasField s "blockHeight" a) =>+ Lens.Family2.LensLike' f s a+blockHeight = Data.ProtoLens.Field.field @"blockHeight"+blockSha ::+ forall f s a.+ (Prelude.Functor f,+ Data.ProtoLens.Field.HasField s "blockSha" a) =>+ Lens.Family2.LensLike' f s a+blockSha = Data.ProtoLens.Field.field @"blockSha"+breach ::+ forall f s a.+ (Prelude.Functor f, Data.ProtoLens.Field.HasField s "breach" a) =>+ Lens.Family2.LensLike' f s a+breach = Data.ProtoLens.Field.field @"breach"+bytesRecv ::+ forall f s a.+ (Prelude.Functor f,+ Data.ProtoLens.Field.HasField s "bytesRecv" a) =>+ Lens.Family2.LensLike' f s a+bytesRecv = Data.ProtoLens.Field.field @"bytesRecv"+bytesSent ::+ forall f s a.+ (Prelude.Functor f,+ Data.ProtoLens.Field.HasField s "bytesSent" a) =>+ Lens.Family2.LensLike' f s a+bytesSent = Data.ProtoLens.Field.field @"bytesSent"+chain ::+ forall f s a.+ (Prelude.Functor f, Data.ProtoLens.Field.HasField s "chain" a) =>+ Lens.Family2.LensLike' f s a+chain = Data.ProtoLens.Field.field @"chain"+chainHash ::+ forall f s a.+ (Prelude.Functor f,+ Data.ProtoLens.Field.HasField s "chainHash" a) =>+ Lens.Family2.LensLike' f s a+chainHash = Data.ProtoLens.Field.field @"chainHash"+chains ::+ forall f s a.+ (Prelude.Functor f, Data.ProtoLens.Field.HasField s "chains" a) =>+ Lens.Family2.LensLike' f s a+chains = Data.ProtoLens.Field.field @"chains"+chanClose ::+ forall f s a.+ (Prelude.Functor f,+ Data.ProtoLens.Field.HasField s "chanClose" a) =>+ Lens.Family2.LensLike' f s a+chanClose = Data.ProtoLens.Field.field @"chanClose"+chanOpen ::+ forall f s a.+ (Prelude.Functor f,+ Data.ProtoLens.Field.HasField s "chanOpen" a) =>+ Lens.Family2.LensLike' f s a+chanOpen = Data.ProtoLens.Field.field @"chanOpen"+chanPending ::+ forall f s a.+ (Prelude.Functor f,+ Data.ProtoLens.Field.HasField s "chanPending" a) =>+ Lens.Family2.LensLike' f s a+chanPending = Data.ProtoLens.Field.field @"chanPending"+channelFlags ::+ forall f s a.+ (Prelude.Functor f,+ Data.ProtoLens.Field.HasField s "channelFlags" a) =>+ Lens.Family2.LensLike' f s a+channelFlags = Data.ProtoLens.Field.field @"channelFlags"+channelPoint ::+ forall f s a.+ (Prelude.Functor f,+ Data.ProtoLens.Field.HasField s "channelPoint" a) =>+ Lens.Family2.LensLike' f s a+channelPoint = Data.ProtoLens.Field.field @"channelPoint"+channelReserve ::+ forall f s a.+ (Prelude.Functor f,+ Data.ProtoLens.Field.HasField s "channelReserve" a) =>+ Lens.Family2.LensLike' f s a+channelReserve = Data.ProtoLens.Field.field @"channelReserve"+channels ::+ forall f s a.+ (Prelude.Functor f,+ Data.ProtoLens.Field.HasField s "channels" a) =>+ Lens.Family2.LensLike' f s a+channels = Data.ProtoLens.Field.field @"channels"+closeAddress ::+ forall f s a.+ (Prelude.Functor f,+ Data.ProtoLens.Field.HasField s "closeAddress" a) =>+ Lens.Family2.LensLike' f s a+closeAddress = Data.ProtoLens.Field.field @"closeAddress"+closePending ::+ forall f s a.+ (Prelude.Functor f,+ Data.ProtoLens.Field.HasField s "closePending" a) =>+ Lens.Family2.LensLike' f s a+closePending = Data.ProtoLens.Field.field @"closePending"+closingTxid ::+ forall f s a.+ (Prelude.Functor f,+ Data.ProtoLens.Field.HasField s "closingTxid" a) =>+ Lens.Family2.LensLike' f s a+closingTxid = Data.ProtoLens.Field.field @"closingTxid"+cltvLimit ::+ forall f s a.+ (Prelude.Functor f,+ Data.ProtoLens.Field.HasField s "cltvLimit" a) =>+ Lens.Family2.LensLike' f s a+cltvLimit = Data.ProtoLens.Field.field @"cltvLimit"+color ::+ forall f s a.+ (Prelude.Functor f, Data.ProtoLens.Field.HasField s "color" a) =>+ Lens.Family2.LensLike' f s a+color = Data.ProtoLens.Field.field @"color"+commitHash ::+ forall f s a.+ (Prelude.Functor f,+ Data.ProtoLens.Field.HasField s "commitHash" a) =>+ Lens.Family2.LensLike' f s a+commitHash = Data.ProtoLens.Field.field @"commitHash"+commitmentType ::+ forall f s a.+ (Prelude.Functor f,+ Data.ProtoLens.Field.HasField s "commitmentType" a) =>+ Lens.Family2.LensLike' f s a+commitmentType = Data.ProtoLens.Field.field @"commitmentType"+confirmations ::+ forall f s a.+ (Prelude.Functor f,+ Data.ProtoLens.Field.HasField s "confirmations" a) =>+ Lens.Family2.LensLike' f s a+confirmations = Data.ProtoLens.Field.field @"confirmations"+cooperative ::+ forall f s a.+ (Prelude.Functor f,+ Data.ProtoLens.Field.HasField s "cooperative" a) =>+ Lens.Family2.LensLike' f s a+cooperative = Data.ProtoLens.Field.field @"cooperative"+csvDelay ::+ forall f s a.+ (Prelude.Functor f,+ Data.ProtoLens.Field.HasField s "csvDelay" a) =>+ Lens.Family2.LensLike' f s a+csvDelay = Data.ProtoLens.Field.field @"csvDelay"+data' ::+ forall f s a.+ (Prelude.Functor f, Data.ProtoLens.Field.HasField s "data'" a) =>+ Lens.Family2.LensLike' f s a+data' = Data.ProtoLens.Field.field @"data'"+deliveryAddress ::+ forall f s a.+ (Prelude.Functor f,+ Data.ProtoLens.Field.HasField s "deliveryAddress" a) =>+ Lens.Family2.LensLike' f s a+deliveryAddress = Data.ProtoLens.Field.field @"deliveryAddress"+dest ::+ forall f s a.+ (Prelude.Functor f, Data.ProtoLens.Field.HasField s "dest" a) =>+ Lens.Family2.LensLike' f s a+dest = Data.ProtoLens.Field.field @"dest"+destAddresses ::+ forall f s a.+ (Prelude.Functor f,+ Data.ProtoLens.Field.HasField s "destAddresses" a) =>+ Lens.Family2.LensLike' f s a+destAddresses = Data.ProtoLens.Field.field @"destAddresses"+destCustomRecords ::+ forall f s a.+ (Prelude.Functor f,+ Data.ProtoLens.Field.HasField s "destCustomRecords" a) =>+ Lens.Family2.LensLike' f s a+destCustomRecords = Data.ProtoLens.Field.field @"destCustomRecords"+destFeatures ::+ forall f s a.+ (Prelude.Functor f,+ Data.ProtoLens.Field.HasField s "destFeatures" a) =>+ Lens.Family2.LensLike' f s a+destFeatures = Data.ProtoLens.Field.field @"destFeatures"+destString ::+ forall f s a.+ (Prelude.Functor f,+ Data.ProtoLens.Field.HasField s "destString" a) =>+ Lens.Family2.LensLike' f s a+destString = Data.ProtoLens.Field.field @"destString"+dustLimit ::+ forall f s a.+ (Prelude.Functor f,+ Data.ProtoLens.Field.HasField s "dustLimit" a) =>+ Lens.Family2.LensLike' f s a+dustLimit = Data.ProtoLens.Field.field @"dustLimit"+endHeight ::+ forall f s a.+ (Prelude.Functor f,+ Data.ProtoLens.Field.HasField s "endHeight" a) =>+ Lens.Family2.LensLike' f s a+endHeight = Data.ProtoLens.Field.field @"endHeight"+error ::+ forall f s a.+ (Prelude.Functor f, Data.ProtoLens.Field.HasField s "error" a) =>+ Lens.Family2.LensLike' f s a+error = Data.ProtoLens.Field.field @"error"+errors ::+ forall f s a.+ (Prelude.Functor f, Data.ProtoLens.Field.HasField s "errors" a) =>+ Lens.Family2.LensLike' f s a+errors = Data.ProtoLens.Field.field @"errors"+features ::+ forall f s a.+ (Prelude.Functor f,+ Data.ProtoLens.Field.HasField s "features" a) =>+ Lens.Family2.LensLike' f s a+features = Data.ProtoLens.Field.field @"features"+feeLimit ::+ forall f s a.+ (Prelude.Functor f,+ Data.ProtoLens.Field.HasField s "feeLimit" a) =>+ Lens.Family2.LensLike' f s a+feeLimit = Data.ProtoLens.Field.field @"feeLimit"+feePerKw ::+ forall f s a.+ (Prelude.Functor f,+ Data.ProtoLens.Field.HasField s "feePerKw" a) =>+ Lens.Family2.LensLike' f s a+feePerKw = Data.ProtoLens.Field.field @"feePerKw"+feeSat ::+ forall f s a.+ (Prelude.Functor f, Data.ProtoLens.Field.HasField s "feeSat" a) =>+ Lens.Family2.LensLike' f s a+feeSat = Data.ProtoLens.Field.field @"feeSat"+feerateSatPerByte ::+ forall f s a.+ (Prelude.Functor f,+ Data.ProtoLens.Field.HasField s "feerateSatPerByte" a) =>+ Lens.Family2.LensLike' f s a+feerateSatPerByte = Data.ProtoLens.Field.field @"feerateSatPerByte"+finalCltvDelta ::+ forall f s a.+ (Prelude.Functor f,+ Data.ProtoLens.Field.HasField s "finalCltvDelta" a) =>+ Lens.Family2.LensLike' f s a+finalCltvDelta = Data.ProtoLens.Field.field @"finalCltvDelta"+flapCount ::+ forall f s a.+ (Prelude.Functor f,+ Data.ProtoLens.Field.HasField s "flapCount" a) =>+ Lens.Family2.LensLike' f s a+flapCount = Data.ProtoLens.Field.field @"flapCount"+force ::+ forall f s a.+ (Prelude.Functor f, Data.ProtoLens.Field.HasField s "force" a) =>+ Lens.Family2.LensLike' f s a+force = Data.ProtoLens.Field.field @"force"+fundingAddress ::+ forall f s a.+ (Prelude.Functor f,+ Data.ProtoLens.Field.HasField s "fundingAddress" a) =>+ Lens.Family2.LensLike' f s a+fundingAddress = Data.ProtoLens.Field.field @"fundingAddress"+fundingAmount ::+ forall f s a.+ (Prelude.Functor f,+ Data.ProtoLens.Field.HasField s "fundingAmount" a) =>+ Lens.Family2.LensLike' f s a+fundingAmount = Data.ProtoLens.Field.field @"fundingAmount"+fundingAmt ::+ forall f s a.+ (Prelude.Functor f,+ Data.ProtoLens.Field.HasField s "fundingAmt" a) =>+ Lens.Family2.LensLike' f s a+fundingAmt = Data.ProtoLens.Field.field @"fundingAmt"+fundingCanceled ::+ forall f s a.+ (Prelude.Functor f,+ Data.ProtoLens.Field.HasField s "fundingCanceled" a) =>+ Lens.Family2.LensLike' f s a+fundingCanceled = Data.ProtoLens.Field.field @"fundingCanceled"+fundingShim ::+ forall f s a.+ (Prelude.Functor f,+ Data.ProtoLens.Field.HasField s "fundingShim" a) =>+ Lens.Family2.LensLike' f s a+fundingShim = Data.ProtoLens.Field.field @"fundingShim"+host ::+ forall f s a.+ (Prelude.Functor f, Data.ProtoLens.Field.HasField s "host" a) =>+ Lens.Family2.LensLike' f s a+host = Data.ProtoLens.Field.field @"host"+identityPubkey ::+ forall f s a.+ (Prelude.Functor f,+ Data.ProtoLens.Field.HasField s "identityPubkey" a) =>+ Lens.Family2.LensLike' f s a+identityPubkey = Data.ProtoLens.Field.field @"identityPubkey"+inFlightMaxMsat ::+ forall f s a.+ (Prelude.Functor f,+ Data.ProtoLens.Field.HasField s "inFlightMaxMsat" a) =>+ Lens.Family2.LensLike' f s a+inFlightMaxMsat = Data.ProtoLens.Field.field @"inFlightMaxMsat"+inactiveOnly ::+ forall f s a.+ (Prelude.Functor f,+ Data.ProtoLens.Field.HasField s "inactiveOnly" a) =>+ Lens.Family2.LensLike' f s a+inactiveOnly = Data.ProtoLens.Field.field @"inactiveOnly"+inbound ::+ forall f s a.+ (Prelude.Functor f, Data.ProtoLens.Field.HasField s "inbound" a) =>+ Lens.Family2.LensLike' f s a+inbound = Data.ProtoLens.Field.field @"inbound"+key ::+ forall f s a.+ (Prelude.Functor f, Data.ProtoLens.Field.HasField s "key" a) =>+ Lens.Family2.LensLike' f s a+key = Data.ProtoLens.Field.field @"key"+label ::+ forall f s a.+ (Prelude.Functor f, Data.ProtoLens.Field.HasField s "label" a) =>+ Lens.Family2.LensLike' f s a+label = Data.ProtoLens.Field.field @"label"+lastFlapNs ::+ forall f s a.+ (Prelude.Functor f,+ Data.ProtoLens.Field.HasField s "lastFlapNs" a) =>+ Lens.Family2.LensLike' f s a+lastFlapNs = Data.ProtoLens.Field.field @"lastFlapNs"+lastHopPubkey ::+ forall f s a.+ (Prelude.Functor f,+ Data.ProtoLens.Field.HasField s "lastHopPubkey" a) =>+ Lens.Family2.LensLike' f s a+lastHopPubkey = Data.ProtoLens.Field.field @"lastHopPubkey"+lastPingPayload ::+ forall f s a.+ (Prelude.Functor f,+ Data.ProtoLens.Field.HasField s "lastPingPayload" a) =>+ Lens.Family2.LensLike' f s a+lastPingPayload = Data.ProtoLens.Field.field @"lastPingPayload"+latestError ::+ forall f s a.+ (Prelude.Functor f,+ Data.ProtoLens.Field.HasField s "latestError" a) =>+ Lens.Family2.LensLike' f s a+latestError = Data.ProtoLens.Field.field @"latestError"+localForce ::+ forall f s a.+ (Prelude.Functor f,+ Data.ProtoLens.Field.HasField s "localForce" a) =>+ Lens.Family2.LensLike' f s a+localForce = Data.ProtoLens.Field.field @"localForce"+localFundingAmount ::+ forall f s a.+ (Prelude.Functor f,+ Data.ProtoLens.Field.HasField s "localFundingAmount" a) =>+ Lens.Family2.LensLike' f s a+localFundingAmount+ = Data.ProtoLens.Field.field @"localFundingAmount"+maxAcceptedHtlcs ::+ forall f s a.+ (Prelude.Functor f,+ Data.ProtoLens.Field.HasField s "maxAcceptedHtlcs" a) =>+ Lens.Family2.LensLike' f s a+maxAcceptedHtlcs = Data.ProtoLens.Field.field @"maxAcceptedHtlcs"+maxConfs ::+ forall f s a.+ (Prelude.Functor f,+ Data.ProtoLens.Field.HasField s "maxConfs" a) =>+ Lens.Family2.LensLike' f s a+maxConfs = Data.ProtoLens.Field.field @"maxConfs"+maxHtlcCount ::+ forall f s a.+ (Prelude.Functor f,+ Data.ProtoLens.Field.HasField s "maxHtlcCount" a) =>+ Lens.Family2.LensLike' f s a+maxHtlcCount = Data.ProtoLens.Field.field @"maxHtlcCount"+maxLocalCsv ::+ forall f s a.+ (Prelude.Functor f,+ Data.ProtoLens.Field.HasField s "maxLocalCsv" a) =>+ Lens.Family2.LensLike' f s a+maxLocalCsv = Data.ProtoLens.Field.field @"maxLocalCsv"+maxValueInFlight ::+ forall f s a.+ (Prelude.Functor f,+ Data.ProtoLens.Field.HasField s "maxValueInFlight" a) =>+ Lens.Family2.LensLike' f s a+maxValueInFlight = Data.ProtoLens.Field.field @"maxValueInFlight"+maybe'addr ::+ forall f s a.+ (Prelude.Functor f,+ Data.ProtoLens.Field.HasField s "maybe'addr" a) =>+ Lens.Family2.LensLike' f s a+maybe'addr = Data.ProtoLens.Field.field @"maybe'addr"+maybe'chanClose ::+ forall f s a.+ (Prelude.Functor f,+ Data.ProtoLens.Field.HasField s "maybe'chanClose" a) =>+ Lens.Family2.LensLike' f s a+maybe'chanClose = Data.ProtoLens.Field.field @"maybe'chanClose"+maybe'chanOpen ::+ forall f s a.+ (Prelude.Functor f,+ Data.ProtoLens.Field.HasField s "maybe'chanOpen" a) =>+ Lens.Family2.LensLike' f s a+maybe'chanOpen = Data.ProtoLens.Field.field @"maybe'chanOpen"+maybe'chanPending ::+ forall f s a.+ (Prelude.Functor f,+ Data.ProtoLens.Field.HasField s "maybe'chanPending" a) =>+ Lens.Family2.LensLike' f s a+maybe'chanPending = Data.ProtoLens.Field.field @"maybe'chanPending"+maybe'channelPoint ::+ forall f s a.+ (Prelude.Functor f,+ Data.ProtoLens.Field.HasField s "maybe'channelPoint" a) =>+ Lens.Family2.LensLike' f s a+maybe'channelPoint+ = Data.ProtoLens.Field.field @"maybe'channelPoint"+maybe'closePending ::+ forall f s a.+ (Prelude.Functor f,+ Data.ProtoLens.Field.HasField s "maybe'closePending" a) =>+ Lens.Family2.LensLike' f s a+maybe'closePending+ = Data.ProtoLens.Field.field @"maybe'closePending"+maybe'feeLimit ::+ forall f s a.+ (Prelude.Functor f,+ Data.ProtoLens.Field.HasField s "maybe'feeLimit" a) =>+ Lens.Family2.LensLike' f s a+maybe'feeLimit = Data.ProtoLens.Field.field @"maybe'feeLimit"+maybe'fundingShim ::+ forall f s a.+ (Prelude.Functor f,+ Data.ProtoLens.Field.HasField s "maybe'fundingShim" a) =>+ Lens.Family2.LensLike' f s a+maybe'fundingShim = Data.ProtoLens.Field.field @"maybe'fundingShim"+maybe'outpoint ::+ forall f s a.+ (Prelude.Functor f,+ Data.ProtoLens.Field.HasField s "maybe'outpoint" a) =>+ Lens.Family2.LensLike' f s a+maybe'outpoint = Data.ProtoLens.Field.field @"maybe'outpoint"+maybe'paymentRoute ::+ forall f s a.+ (Prelude.Functor f,+ Data.ProtoLens.Field.HasField s "maybe'paymentRoute" a) =>+ Lens.Family2.LensLike' f s a+maybe'paymentRoute+ = Data.ProtoLens.Field.field @"maybe'paymentRoute"+maybe'psbtFund ::+ forall f s a.+ (Prelude.Functor f,+ Data.ProtoLens.Field.HasField s "maybe'psbtFund" a) =>+ Lens.Family2.LensLike' f s a+maybe'psbtFund = Data.ProtoLens.Field.field @"maybe'psbtFund"+maybe'route ::+ forall f s a.+ (Prelude.Functor f,+ Data.ProtoLens.Field.HasField s "maybe'route" a) =>+ Lens.Family2.LensLike' f s a+maybe'route = Data.ProtoLens.Field.field @"maybe'route"+maybe'update ::+ forall f s a.+ (Prelude.Functor f,+ Data.ProtoLens.Field.HasField s "maybe'update" a) =>+ Lens.Family2.LensLike' f s a+maybe'update = Data.ProtoLens.Field.field @"maybe'update"+maybe'value ::+ forall f s a.+ (Prelude.Functor f,+ Data.ProtoLens.Field.HasField s "maybe'value" a) =>+ Lens.Family2.LensLike' f s a+maybe'value = Data.ProtoLens.Field.field @"maybe'value"+minAcceptDepth ::+ forall f s a.+ (Prelude.Functor f,+ Data.ProtoLens.Field.HasField s "minAcceptDepth" a) =>+ Lens.Family2.LensLike' f s a+minAcceptDepth = Data.ProtoLens.Field.field @"minAcceptDepth"+minConfs ::+ forall f s a.+ (Prelude.Functor f,+ Data.ProtoLens.Field.HasField s "minConfs" a) =>+ Lens.Family2.LensLike' f s a+minConfs = Data.ProtoLens.Field.field @"minConfs"+minHtlc ::+ forall f s a.+ (Prelude.Functor f, Data.ProtoLens.Field.HasField s "minHtlc" a) =>+ Lens.Family2.LensLike' f s a+minHtlc = Data.ProtoLens.Field.field @"minHtlc"+minHtlcIn ::+ forall f s a.+ (Prelude.Functor f,+ Data.ProtoLens.Field.HasField s "minHtlcIn" a) =>+ Lens.Family2.LensLike' f s a+minHtlcIn = Data.ProtoLens.Field.field @"minHtlcIn"+minHtlcMsat ::+ forall f s a.+ (Prelude.Functor f,+ Data.ProtoLens.Field.HasField s "minHtlcMsat" a) =>+ Lens.Family2.LensLike' f s a+minHtlcMsat = Data.ProtoLens.Field.field @"minHtlcMsat"+msg ::+ forall f s a.+ (Prelude.Functor f, Data.ProtoLens.Field.HasField s "msg" a) =>+ Lens.Family2.LensLike' f s a+msg = Data.ProtoLens.Field.field @"msg"+network ::+ forall f s a.+ (Prelude.Functor f, Data.ProtoLens.Field.HasField s "network" a) =>+ Lens.Family2.LensLike' f s a+network = Data.ProtoLens.Field.field @"network"+nodePubkey ::+ forall f s a.+ (Prelude.Functor f,+ Data.ProtoLens.Field.HasField s "nodePubkey" a) =>+ Lens.Family2.LensLike' f s a+nodePubkey = Data.ProtoLens.Field.field @"nodePubkey"+nodePubkeyString ::+ forall f s a.+ (Prelude.Functor f,+ Data.ProtoLens.Field.HasField s "nodePubkeyString" a) =>+ Lens.Family2.LensLike' f s a+nodePubkeyString = Data.ProtoLens.Field.field @"nodePubkeyString"+numActiveChannels ::+ forall f s a.+ (Prelude.Functor f,+ Data.ProtoLens.Field.HasField s "numActiveChannels" a) =>+ Lens.Family2.LensLike' f s a+numActiveChannels = Data.ProtoLens.Field.field @"numActiveChannels"+numConfirmations ::+ forall f s a.+ (Prelude.Functor f,+ Data.ProtoLens.Field.HasField s "numConfirmations" a) =>+ Lens.Family2.LensLike' f s a+numConfirmations = Data.ProtoLens.Field.field @"numConfirmations"+numConfsLeft ::+ forall f s a.+ (Prelude.Functor f,+ Data.ProtoLens.Field.HasField s "numConfsLeft" a) =>+ Lens.Family2.LensLike' f s a+numConfsLeft = Data.ProtoLens.Field.field @"numConfsLeft"+numInactiveChannels ::+ forall f s a.+ (Prelude.Functor f,+ Data.ProtoLens.Field.HasField s "numInactiveChannels" a) =>+ Lens.Family2.LensLike' f s a+numInactiveChannels+ = Data.ProtoLens.Field.field @"numInactiveChannels"+numPeers ::+ forall f s a.+ (Prelude.Functor f,+ Data.ProtoLens.Field.HasField s "numPeers" a) =>+ Lens.Family2.LensLike' f s a+numPeers = Data.ProtoLens.Field.field @"numPeers"+numPendingChannels ::+ forall f s a.+ (Prelude.Functor f,+ Data.ProtoLens.Field.HasField s "numPendingChannels" a) =>+ Lens.Family2.LensLike' f s a+numPendingChannels+ = Data.ProtoLens.Field.field @"numPendingChannels"+outgoingChanId ::+ forall f s a.+ (Prelude.Functor f,+ Data.ProtoLens.Field.HasField s "outgoingChanId" a) =>+ Lens.Family2.LensLike' f s a+outgoingChanId = Data.ProtoLens.Field.field @"outgoingChanId"+outpoint ::+ forall f s a.+ (Prelude.Functor f,+ Data.ProtoLens.Field.HasField s "outpoint" a) =>+ Lens.Family2.LensLike' f s a+outpoint = Data.ProtoLens.Field.field @"outpoint"+paymentAddr ::+ forall f s a.+ (Prelude.Functor f,+ Data.ProtoLens.Field.HasField s "paymentAddr" a) =>+ Lens.Family2.LensLike' f s a+paymentAddr = Data.ProtoLens.Field.field @"paymentAddr"+paymentError ::+ forall f s a.+ (Prelude.Functor f,+ Data.ProtoLens.Field.HasField s "paymentError" a) =>+ Lens.Family2.LensLike' f s a+paymentError = Data.ProtoLens.Field.field @"paymentError"+paymentHash ::+ forall f s a.+ (Prelude.Functor f,+ Data.ProtoLens.Field.HasField s "paymentHash" a) =>+ Lens.Family2.LensLike' f s a+paymentHash = Data.ProtoLens.Field.field @"paymentHash"+paymentHashString ::+ forall f s a.+ (Prelude.Functor f,+ Data.ProtoLens.Field.HasField s "paymentHashString" a) =>+ Lens.Family2.LensLike' f s a+paymentHashString = Data.ProtoLens.Field.field @"paymentHashString"+paymentPreimage ::+ forall f s a.+ (Prelude.Functor f,+ Data.ProtoLens.Field.HasField s "paymentPreimage" a) =>+ Lens.Family2.LensLike' f s a+paymentPreimage = Data.ProtoLens.Field.field @"paymentPreimage"+paymentRequest ::+ forall f s a.+ (Prelude.Functor f,+ Data.ProtoLens.Field.HasField s "paymentRequest" a) =>+ Lens.Family2.LensLike' f s a+paymentRequest = Data.ProtoLens.Field.field @"paymentRequest"+paymentRoute ::+ forall f s a.+ (Prelude.Functor f,+ Data.ProtoLens.Field.HasField s "paymentRoute" a) =>+ Lens.Family2.LensLike' f s a+paymentRoute = Data.ProtoLens.Field.field @"paymentRoute"+peer ::+ forall f s a.+ (Prelude.Functor f, Data.ProtoLens.Field.HasField s "peer" a) =>+ Lens.Family2.LensLike' f s a+peer = Data.ProtoLens.Field.field @"peer"+peers ::+ forall f s a.+ (Prelude.Functor f, Data.ProtoLens.Field.HasField s "peers" a) =>+ Lens.Family2.LensLike' f s a+peers = Data.ProtoLens.Field.field @"peers"+pendingChanId ::+ forall f s a.+ (Prelude.Functor f,+ Data.ProtoLens.Field.HasField s "pendingChanId" a) =>+ Lens.Family2.LensLike' f s a+pendingChanId = Data.ProtoLens.Field.field @"pendingChanId"+pendingChannels ::+ forall f s a.+ (Prelude.Functor f,+ Data.ProtoLens.Field.HasField s "pendingChannels" a) =>+ Lens.Family2.LensLike' f s a+pendingChannels = Data.ProtoLens.Field.field @"pendingChannels"+perm ::+ forall f s a.+ (Prelude.Functor f, Data.ProtoLens.Field.HasField s "perm" a) =>+ Lens.Family2.LensLike' f s a+perm = Data.ProtoLens.Field.field @"perm"+pingTime ::+ forall f s a.+ (Prelude.Functor f,+ Data.ProtoLens.Field.HasField s "pingTime" a) =>+ Lens.Family2.LensLike' f s a+pingTime = Data.ProtoLens.Field.field @"pingTime"+pkScript ::+ forall f s a.+ (Prelude.Functor f,+ Data.ProtoLens.Field.HasField s "pkScript" a) =>+ Lens.Family2.LensLike' f s a+pkScript = Data.ProtoLens.Field.field @"pkScript"+private ::+ forall f s a.+ (Prelude.Functor f, Data.ProtoLens.Field.HasField s "private" a) =>+ Lens.Family2.LensLike' f s a+private = Data.ProtoLens.Field.field @"private"+privateOnly ::+ forall f s a.+ (Prelude.Functor f,+ Data.ProtoLens.Field.HasField s "privateOnly" a) =>+ Lens.Family2.LensLike' f s a+privateOnly = Data.ProtoLens.Field.field @"privateOnly"+progress ::+ forall f s a.+ (Prelude.Functor f,+ Data.ProtoLens.Field.HasField s "progress" a) =>+ Lens.Family2.LensLike' f s a+progress = Data.ProtoLens.Field.field @"progress"+psbt ::+ forall f s a.+ (Prelude.Functor f, Data.ProtoLens.Field.HasField s "psbt" a) =>+ Lens.Family2.LensLike' f s a+psbt = Data.ProtoLens.Field.field @"psbt"+psbtFund ::+ forall f s a.+ (Prelude.Functor f,+ Data.ProtoLens.Field.HasField s "psbtFund" a) =>+ Lens.Family2.LensLike' f s a+psbtFund = Data.ProtoLens.Field.field @"psbtFund"+pubKey ::+ forall f s a.+ (Prelude.Functor f, Data.ProtoLens.Field.HasField s "pubKey" a) =>+ Lens.Family2.LensLike' f s a+pubKey = Data.ProtoLens.Field.field @"pubKey"+pubkey ::+ forall f s a.+ (Prelude.Functor f, Data.ProtoLens.Field.HasField s "pubkey" a) =>+ Lens.Family2.LensLike' f s a+pubkey = Data.ProtoLens.Field.field @"pubkey"+publicOnly ::+ forall f s a.+ (Prelude.Functor f,+ Data.ProtoLens.Field.HasField s "publicOnly" a) =>+ Lens.Family2.LensLike' f s a+publicOnly = Data.ProtoLens.Field.field @"publicOnly"+pushAmt ::+ forall f s a.+ (Prelude.Functor f, Data.ProtoLens.Field.HasField s "pushAmt" a) =>+ Lens.Family2.LensLike' f s a+pushAmt = Data.ProtoLens.Field.field @"pushAmt"+pushSat ::+ forall f s a.+ (Prelude.Functor f, Data.ProtoLens.Field.HasField s "pushSat" a) =>+ Lens.Family2.LensLike' f s a+pushSat = Data.ProtoLens.Field.field @"pushSat"+rawTxHex ::+ forall f s a.+ (Prelude.Functor f,+ Data.ProtoLens.Field.HasField s "rawTxHex" a) =>+ Lens.Family2.LensLike' f s a+rawTxHex = Data.ProtoLens.Field.field @"rawTxHex"+recoveryFinished ::+ forall f s a.+ (Prelude.Functor f,+ Data.ProtoLens.Field.HasField s "recoveryFinished" a) =>+ Lens.Family2.LensLike' f s a+recoveryFinished = Data.ProtoLens.Field.field @"recoveryFinished"+recoveryMode ::+ forall f s a.+ (Prelude.Functor f,+ Data.ProtoLens.Field.HasField s "recoveryMode" a) =>+ Lens.Family2.LensLike' f s a+recoveryMode = Data.ProtoLens.Field.field @"recoveryMode"+remoteCsvDelay ::+ forall f s a.+ (Prelude.Functor f,+ Data.ProtoLens.Field.HasField s "remoteCsvDelay" a) =>+ Lens.Family2.LensLike' f s a+remoteCsvDelay = Data.ProtoLens.Field.field @"remoteCsvDelay"+remoteForce ::+ forall f s a.+ (Prelude.Functor f,+ Data.ProtoLens.Field.HasField s "remoteForce" a) =>+ Lens.Family2.LensLike' f s a+remoteForce = Data.ProtoLens.Field.field @"remoteForce"+remoteMaxHtlcs ::+ forall f s a.+ (Prelude.Functor f,+ Data.ProtoLens.Field.HasField s "remoteMaxHtlcs" a) =>+ Lens.Family2.LensLike' f s a+remoteMaxHtlcs = Data.ProtoLens.Field.field @"remoteMaxHtlcs"+remoteMaxValueInFlightMsat ::+ forall f s a.+ (Prelude.Functor f,+ Data.ProtoLens.Field.HasField s "remoteMaxValueInFlightMsat" a) =>+ Lens.Family2.LensLike' f s a+remoteMaxValueInFlightMsat+ = Data.ProtoLens.Field.field @"remoteMaxValueInFlightMsat"+reserveSat ::+ forall f s a.+ (Prelude.Functor f,+ Data.ProtoLens.Field.HasField s "reserveSat" a) =>+ Lens.Family2.LensLike' f s a+reserveSat = Data.ProtoLens.Field.field @"reserveSat"+route ::+ forall f s a.+ (Prelude.Functor f, Data.ProtoLens.Field.HasField s "route" a) =>+ Lens.Family2.LensLike' f s a+route = Data.ProtoLens.Field.field @"route"+satPerByte ::+ forall f s a.+ (Prelude.Functor f,+ Data.ProtoLens.Field.HasField s "satPerByte" a) =>+ Lens.Family2.LensLike' f s a+satPerByte = Data.ProtoLens.Field.field @"satPerByte"+satPerVbyte ::+ forall f s a.+ (Prelude.Functor f,+ Data.ProtoLens.Field.HasField s "satPerVbyte" a) =>+ Lens.Family2.LensLike' f s a+satPerVbyte = Data.ProtoLens.Field.field @"satPerVbyte"+satRecv ::+ forall f s a.+ (Prelude.Functor f, Data.ProtoLens.Field.HasField s "satRecv" a) =>+ Lens.Family2.LensLike' f s a+satRecv = Data.ProtoLens.Field.field @"satRecv"+satSent ::+ forall f s a.+ (Prelude.Functor f, Data.ProtoLens.Field.HasField s "satSent" a) =>+ Lens.Family2.LensLike' f s a+satSent = Data.ProtoLens.Field.field @"satSent"+sendAll ::+ forall f s a.+ (Prelude.Functor f, Data.ProtoLens.Field.HasField s "sendAll" a) =>+ Lens.Family2.LensLike' f s a+sendAll = Data.ProtoLens.Field.field @"sendAll"+signature ::+ forall f s a.+ (Prelude.Functor f,+ Data.ProtoLens.Field.HasField s "signature" a) =>+ Lens.Family2.LensLike' f s a+signature = Data.ProtoLens.Field.field @"signature"+singleHash ::+ forall f s a.+ (Prelude.Functor f,+ Data.ProtoLens.Field.HasField s "singleHash" a) =>+ Lens.Family2.LensLike' f s a+singleHash = Data.ProtoLens.Field.field @"singleHash"+spendUnconfirmed ::+ forall f s a.+ (Prelude.Functor f,+ Data.ProtoLens.Field.HasField s "spendUnconfirmed" a) =>+ Lens.Family2.LensLike' f s a+spendUnconfirmed = Data.ProtoLens.Field.field @"spendUnconfirmed"+startHeight ::+ forall f s a.+ (Prelude.Functor f,+ Data.ProtoLens.Field.HasField s "startHeight" a) =>+ Lens.Family2.LensLike' f s a+startHeight = Data.ProtoLens.Field.field @"startHeight"+success ::+ forall f s a.+ (Prelude.Functor f, Data.ProtoLens.Field.HasField s "success" a) =>+ Lens.Family2.LensLike' f s a+success = Data.ProtoLens.Field.field @"success"+syncType ::+ forall f s a.+ (Prelude.Functor f,+ Data.ProtoLens.Field.HasField s "syncType" a) =>+ Lens.Family2.LensLike' f s a+syncType = Data.ProtoLens.Field.field @"syncType"+syncedToChain ::+ forall f s a.+ (Prelude.Functor f,+ Data.ProtoLens.Field.HasField s "syncedToChain" a) =>+ Lens.Family2.LensLike' f s a+syncedToChain = Data.ProtoLens.Field.field @"syncedToChain"+syncedToGraph ::+ forall f s a.+ (Prelude.Functor f,+ Data.ProtoLens.Field.HasField s "syncedToGraph" a) =>+ Lens.Family2.LensLike' f s a+syncedToGraph = Data.ProtoLens.Field.field @"syncedToGraph"+targetConf ::+ forall f s a.+ (Prelude.Functor f,+ Data.ProtoLens.Field.HasField s "targetConf" a) =>+ Lens.Family2.LensLike' f s a+targetConf = Data.ProtoLens.Field.field @"targetConf"+testnet ::+ forall f s a.+ (Prelude.Functor f, Data.ProtoLens.Field.HasField s "testnet" a) =>+ Lens.Family2.LensLike' f s a+testnet = Data.ProtoLens.Field.field @"testnet"+timeStamp ::+ forall f s a.+ (Prelude.Functor f,+ Data.ProtoLens.Field.HasField s "timeStamp" a) =>+ Lens.Family2.LensLike' f s a+timeStamp = Data.ProtoLens.Field.field @"timeStamp"+timeout ::+ forall f s a.+ (Prelude.Functor f, Data.ProtoLens.Field.HasField s "timeout" a) =>+ Lens.Family2.LensLike' f s a+timeout = Data.ProtoLens.Field.field @"timeout"+timestamp ::+ forall f s a.+ (Prelude.Functor f,+ Data.ProtoLens.Field.HasField s "timestamp" a) =>+ Lens.Family2.LensLike' f s a+timestamp = Data.ProtoLens.Field.field @"timestamp"+totalFees ::+ forall f s a.+ (Prelude.Functor f,+ Data.ProtoLens.Field.HasField s "totalFees" a) =>+ Lens.Family2.LensLike' f s a+totalFees = Data.ProtoLens.Field.field @"totalFees"+transactions ::+ forall f s a.+ (Prelude.Functor f,+ Data.ProtoLens.Field.HasField s "transactions" a) =>+ Lens.Family2.LensLike' f s a+transactions = Data.ProtoLens.Field.field @"transactions"+txHash ::+ forall f s a.+ (Prelude.Functor f, Data.ProtoLens.Field.HasField s "txHash" a) =>+ Lens.Family2.LensLike' f s a+txHash = Data.ProtoLens.Field.field @"txHash"+txid ::+ forall f s a.+ (Prelude.Functor f, Data.ProtoLens.Field.HasField s "txid" a) =>+ Lens.Family2.LensLike' f s a+txid = Data.ProtoLens.Field.field @"txid"+type' ::+ forall f s a.+ (Prelude.Functor f, Data.ProtoLens.Field.HasField s "type'" a) =>+ Lens.Family2.LensLike' f s a+type' = Data.ProtoLens.Field.field @"type'"+upfrontShutdown ::+ forall f s a.+ (Prelude.Functor f,+ Data.ProtoLens.Field.HasField s "upfrontShutdown" a) =>+ Lens.Family2.LensLike' f s a+upfrontShutdown = Data.ProtoLens.Field.field @"upfrontShutdown"+uris ::+ forall f s a.+ (Prelude.Functor f, Data.ProtoLens.Field.HasField s "uris" a) =>+ Lens.Family2.LensLike' f s a+uris = Data.ProtoLens.Field.field @"uris"+utxos ::+ forall f s a.+ (Prelude.Functor f, Data.ProtoLens.Field.HasField s "utxos" a) =>+ Lens.Family2.LensLike' f s a+utxos = Data.ProtoLens.Field.field @"utxos"+valid ::+ forall f s a.+ (Prelude.Functor f, Data.ProtoLens.Field.HasField s "valid" a) =>+ Lens.Family2.LensLike' f s a+valid = Data.ProtoLens.Field.field @"valid"+value ::+ forall f s a.+ (Prelude.Functor f, Data.ProtoLens.Field.HasField s "value" a) =>+ Lens.Family2.LensLike' f s a+value = Data.ProtoLens.Field.field @"value"+vec'chains ::+ forall f s a.+ (Prelude.Functor f,+ Data.ProtoLens.Field.HasField s "vec'chains" a) =>+ Lens.Family2.LensLike' f s a+vec'chains = Data.ProtoLens.Field.field @"vec'chains"+vec'channels ::+ forall f s a.+ (Prelude.Functor f,+ Data.ProtoLens.Field.HasField s "vec'channels" a) =>+ Lens.Family2.LensLike' f s a+vec'channels = Data.ProtoLens.Field.field @"vec'channels"+vec'destAddresses ::+ forall f s a.+ (Prelude.Functor f,+ Data.ProtoLens.Field.HasField s "vec'destAddresses" a) =>+ Lens.Family2.LensLike' f s a+vec'destAddresses = Data.ProtoLens.Field.field @"vec'destAddresses"+vec'destFeatures ::+ forall f s a.+ (Prelude.Functor f,+ Data.ProtoLens.Field.HasField s "vec'destFeatures" a) =>+ Lens.Family2.LensLike' f s a+vec'destFeatures = Data.ProtoLens.Field.field @"vec'destFeatures"+vec'errors ::+ forall f s a.+ (Prelude.Functor f,+ Data.ProtoLens.Field.HasField s "vec'errors" a) =>+ Lens.Family2.LensLike' f s a+vec'errors = Data.ProtoLens.Field.field @"vec'errors"+vec'peers ::+ forall f s a.+ (Prelude.Functor f,+ Data.ProtoLens.Field.HasField s "vec'peers" a) =>+ Lens.Family2.LensLike' f s a+vec'peers = Data.ProtoLens.Field.field @"vec'peers"+vec'pendingChannels ::+ forall f s a.+ (Prelude.Functor f,+ Data.ProtoLens.Field.HasField s "vec'pendingChannels" a) =>+ Lens.Family2.LensLike' f s a+vec'pendingChannels+ = Data.ProtoLens.Field.field @"vec'pendingChannels"+vec'transactions ::+ forall f s a.+ (Prelude.Functor f,+ Data.ProtoLens.Field.HasField s "vec'transactions" a) =>+ Lens.Family2.LensLike' f s a+vec'transactions = Data.ProtoLens.Field.field @"vec'transactions"+vec'uris ::+ forall f s a.+ (Prelude.Functor f,+ Data.ProtoLens.Field.HasField s "vec'uris" a) =>+ Lens.Family2.LensLike' f s a+vec'uris = Data.ProtoLens.Field.field @"vec'uris"+vec'utxos ::+ forall f s a.+ (Prelude.Functor f,+ Data.ProtoLens.Field.HasField s "vec'utxos" a) =>+ Lens.Family2.LensLike' f s a+vec'utxos = Data.ProtoLens.Field.field @"vec'utxos"+version ::+ forall f s a.+ (Prelude.Functor f, Data.ProtoLens.Field.HasField s "version" a) =>+ Lens.Family2.LensLike' f s a+version = Data.ProtoLens.Field.field @"version"
@@ -0,0 +1,256 @@+{- This file was auto-generated from lnclipb/lncli.proto by the proto-lens-protoc program. -}+{-# LANGUAGE ScopedTypeVariables, DataKinds, TypeFamilies, UndecidableInstances, GeneralizedNewtypeDeriving, MultiParamTypeClasses, FlexibleContexts, FlexibleInstances, PatternSynonyms, MagicHash, NoImplicitPrelude, BangPatterns, TypeApplications, OverloadedStrings, DerivingStrategies, DeriveGeneric#-}+{-# OPTIONS_GHC -Wno-unused-imports#-}+{-# OPTIONS_GHC -Wno-duplicate-exports#-}+{-# OPTIONS_GHC -Wno-dodgy-exports#-}+module Proto.Lnclipb.Lncli (+ VersionResponse()+ ) where+import qualified Data.ProtoLens.Runtime.Control.DeepSeq as Control.DeepSeq+import qualified Data.ProtoLens.Runtime.Data.ProtoLens.Prism as Data.ProtoLens.Prism+import qualified Text.PrettyPrint.GenericPretty.Instance+import qualified GHC.Generics+import qualified Text.PrettyPrint.GenericPretty+import qualified Data.ProtoLens.Runtime.Prelude as Prelude+import qualified Data.ProtoLens.Runtime.Data.Int as Data.Int+import qualified Data.ProtoLens.Runtime.Data.Monoid as Data.Monoid+import qualified Data.ProtoLens.Runtime.Data.Word as Data.Word+import qualified Data.ProtoLens.Runtime.Data.ProtoLens as Data.ProtoLens+import qualified Data.ProtoLens.Runtime.Data.ProtoLens.Encoding.Bytes as Data.ProtoLens.Encoding.Bytes+import qualified Data.ProtoLens.Runtime.Data.ProtoLens.Encoding.Growing as Data.ProtoLens.Encoding.Growing+import qualified Data.ProtoLens.Runtime.Data.ProtoLens.Encoding.Parser.Unsafe as Data.ProtoLens.Encoding.Parser.Unsafe+import qualified Data.ProtoLens.Runtime.Data.ProtoLens.Encoding.Wire as Data.ProtoLens.Encoding.Wire+import qualified Data.ProtoLens.Runtime.Data.ProtoLens.Field as Data.ProtoLens.Field+import qualified Data.ProtoLens.Runtime.Data.ProtoLens.Message.Enum as Data.ProtoLens.Message.Enum+import qualified Data.ProtoLens.Runtime.Data.ProtoLens.Service.Types as Data.ProtoLens.Service.Types+import qualified Data.ProtoLens.Runtime.Lens.Family2 as Lens.Family2+import qualified Data.ProtoLens.Runtime.Lens.Family2.Unchecked as Lens.Family2.Unchecked+import qualified Data.ProtoLens.Runtime.Data.Text as Data.Text+import qualified Data.ProtoLens.Runtime.Data.Map as Data.Map+import qualified Data.ProtoLens.Runtime.Data.ByteString as Data.ByteString+import qualified Data.ProtoLens.Runtime.Data.ByteString.Char8 as Data.ByteString.Char8+import qualified Data.ProtoLens.Runtime.Data.Text.Encoding as Data.Text.Encoding+import qualified Data.ProtoLens.Runtime.Data.Vector as Data.Vector+import qualified Data.ProtoLens.Runtime.Data.Vector.Generic as Data.Vector.Generic+import qualified Data.ProtoLens.Runtime.Data.Vector.Unboxed as Data.Vector.Unboxed+import qualified Data.ProtoLens.Runtime.Text.Read as Text.Read+import qualified Proto.Verrpc.Verrpc+{- | Fields :+ + * 'Proto.Lnclipb.Lncli_Fields.lncli' @:: Lens' VersionResponse Proto.Verrpc.Verrpc.Version@+ * 'Proto.Lnclipb.Lncli_Fields.maybe'lncli' @:: Lens' VersionResponse (Prelude.Maybe Proto.Verrpc.Verrpc.Version)@+ * 'Proto.Lnclipb.Lncli_Fields.lnd' @:: Lens' VersionResponse Proto.Verrpc.Verrpc.Version@+ * 'Proto.Lnclipb.Lncli_Fields.maybe'lnd' @:: Lens' VersionResponse (Prelude.Maybe Proto.Verrpc.Verrpc.Version)@ -}+data VersionResponse+ = VersionResponse'_constructor {_VersionResponse'lncli :: !(Prelude.Maybe Proto.Verrpc.Verrpc.Version),+ _VersionResponse'lnd :: !(Prelude.Maybe Proto.Verrpc.Verrpc.Version),+ _VersionResponse'_unknownFields :: !Data.ProtoLens.FieldSet}+ deriving stock (Prelude.Eq, Prelude.Ord, GHC.Generics.Generic)+instance Prelude.Show VersionResponse where+ showsPrec _ __x __s+ = Prelude.showChar+ '{'+ (Prelude.showString+ (Data.ProtoLens.showMessageShort __x) (Prelude.showChar '}' __s))+instance Text.PrettyPrint.GenericPretty.Out VersionResponse+instance Data.ProtoLens.Field.HasField VersionResponse "lncli" Proto.Verrpc.Verrpc.Version where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _VersionResponse'lncli+ (\ x__ y__ -> x__ {_VersionResponse'lncli = y__}))+ (Data.ProtoLens.maybeLens Data.ProtoLens.defMessage)+instance Data.ProtoLens.Field.HasField VersionResponse "maybe'lncli" (Prelude.Maybe Proto.Verrpc.Verrpc.Version) where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _VersionResponse'lncli+ (\ x__ y__ -> x__ {_VersionResponse'lncli = y__}))+ Prelude.id+instance Data.ProtoLens.Field.HasField VersionResponse "lnd" Proto.Verrpc.Verrpc.Version where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _VersionResponse'lnd+ (\ x__ y__ -> x__ {_VersionResponse'lnd = y__}))+ (Data.ProtoLens.maybeLens Data.ProtoLens.defMessage)+instance Data.ProtoLens.Field.HasField VersionResponse "maybe'lnd" (Prelude.Maybe Proto.Verrpc.Verrpc.Version) where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _VersionResponse'lnd+ (\ x__ y__ -> x__ {_VersionResponse'lnd = y__}))+ Prelude.id+instance Data.ProtoLens.Message VersionResponse where+ messageName _ = Data.Text.pack "lnclipb.VersionResponse"+ packedMessageDescriptor _+ = "\n\+ \\SIVersionResponse\DC2%\n\+ \\ENQlncli\CAN\SOH \SOH(\v2\SI.verrpc.VersionR\ENQlncli\DC2!\n\+ \\ETXlnd\CAN\STX \SOH(\v2\SI.verrpc.VersionR\ETXlnd"+ packedFileDescriptor _ = packedFileDescriptor+ fieldsByTag+ = let+ lncli__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "lncli"+ (Data.ProtoLens.MessageField Data.ProtoLens.MessageType ::+ Data.ProtoLens.FieldTypeDescriptor Proto.Verrpc.Verrpc.Version)+ (Data.ProtoLens.OptionalField+ (Data.ProtoLens.Field.field @"maybe'lncli")) ::+ Data.ProtoLens.FieldDescriptor VersionResponse+ lnd__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "lnd"+ (Data.ProtoLens.MessageField Data.ProtoLens.MessageType ::+ Data.ProtoLens.FieldTypeDescriptor Proto.Verrpc.Verrpc.Version)+ (Data.ProtoLens.OptionalField+ (Data.ProtoLens.Field.field @"maybe'lnd")) ::+ Data.ProtoLens.FieldDescriptor VersionResponse+ in+ Data.Map.fromList+ [(Data.ProtoLens.Tag 1, lncli__field_descriptor),+ (Data.ProtoLens.Tag 2, lnd__field_descriptor)]+ unknownFields+ = Lens.Family2.Unchecked.lens+ _VersionResponse'_unknownFields+ (\ x__ y__ -> x__ {_VersionResponse'_unknownFields = y__})+ defMessage+ = VersionResponse'_constructor+ {_VersionResponse'lncli = Prelude.Nothing,+ _VersionResponse'lnd = Prelude.Nothing,+ _VersionResponse'_unknownFields = []}+ parseMessage+ = let+ loop ::+ VersionResponse+ -> Data.ProtoLens.Encoding.Bytes.Parser VersionResponse+ loop x+ = do end <- Data.ProtoLens.Encoding.Bytes.atEnd+ if end then+ do (let missing = []+ in+ if Prelude.null missing then+ Prelude.return ()+ else+ Prelude.fail+ ((Prelude.++)+ "Missing required fields: "+ (Prelude.show (missing :: [Prelude.String]))))+ Prelude.return+ (Lens.Family2.over+ Data.ProtoLens.unknownFields (\ !t -> Prelude.reverse t) x)+ else+ do tag <- Data.ProtoLens.Encoding.Bytes.getVarInt+ case tag of+ 10+ -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (do len <- Data.ProtoLens.Encoding.Bytes.getVarInt+ Data.ProtoLens.Encoding.Bytes.isolate+ (Prelude.fromIntegral len) Data.ProtoLens.parseMessage)+ "lncli"+ loop (Lens.Family2.set (Data.ProtoLens.Field.field @"lncli") y x)+ 18+ -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (do len <- Data.ProtoLens.Encoding.Bytes.getVarInt+ Data.ProtoLens.Encoding.Bytes.isolate+ (Prelude.fromIntegral len) Data.ProtoLens.parseMessage)+ "lnd"+ loop (Lens.Family2.set (Data.ProtoLens.Field.field @"lnd") y x)+ wire+ -> do !y <- Data.ProtoLens.Encoding.Wire.parseTaggedValueFromWire+ wire+ loop+ (Lens.Family2.over+ Data.ProtoLens.unknownFields (\ !t -> (:) y t) x)+ in+ (Data.ProtoLens.Encoding.Bytes.<?>)+ (do loop Data.ProtoLens.defMessage) "VersionResponse"+ buildMessage+ = \ _x+ -> (Data.Monoid.<>)+ (case+ Lens.Family2.view (Data.ProtoLens.Field.field @"maybe'lncli") _x+ of+ Prelude.Nothing -> Data.Monoid.mempty+ (Prelude.Just _v)+ -> (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 10)+ ((Prelude..)+ (\ bs+ -> (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt+ (Prelude.fromIntegral (Data.ByteString.length bs)))+ (Data.ProtoLens.Encoding.Bytes.putBytes bs))+ Data.ProtoLens.encodeMessage _v))+ ((Data.Monoid.<>)+ (case+ Lens.Family2.view (Data.ProtoLens.Field.field @"maybe'lnd") _x+ of+ Prelude.Nothing -> Data.Monoid.mempty+ (Prelude.Just _v)+ -> (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 18)+ ((Prelude..)+ (\ bs+ -> (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt+ (Prelude.fromIntegral (Data.ByteString.length bs)))+ (Data.ProtoLens.Encoding.Bytes.putBytes bs))+ Data.ProtoLens.encodeMessage _v))+ (Data.ProtoLens.Encoding.Wire.buildFieldSet+ (Lens.Family2.view Data.ProtoLens.unknownFields _x)))+instance Control.DeepSeq.NFData VersionResponse where+ rnf+ = \ x__+ -> Control.DeepSeq.deepseq+ (_VersionResponse'_unknownFields x__)+ (Control.DeepSeq.deepseq+ (_VersionResponse'lncli x__)+ (Control.DeepSeq.deepseq (_VersionResponse'lnd x__) ()))+packedFileDescriptor :: Data.ByteString.ByteString+packedFileDescriptor+ = "\n\+ \\DC3lnclipb/lncli.proto\DC2\alnclipb\SUB\DC3verrpc/verrpc.proto\"[\n\+ \\SIVersionResponse\DC2%\n\+ \\ENQlncli\CAN\SOH \SOH(\v2\SI.verrpc.VersionR\ENQlncli\DC2!\n\+ \\ETXlnd\CAN\STX \SOH(\v2\SI.verrpc.VersionR\ETXlndB/Z-github.com/lightningnetwork/lnd/lnrpc/lnclipbJ\140\STX\n\+ \\ACK\DC2\EOT\NUL\NUL\SO\STX\n\+ \\b\n\+ \\SOH\f\DC2\ETX\NUL\NUL\DC2\n\+ \\t\n\+ \\STX\ETX\NUL\DC2\ETX\STX\NUL\GS\n\+ \\b\n\+ \\SOH\STX\DC2\ETX\EOT\NUL\DLE\n\+ \\b\n\+ \\SOH\b\DC2\ETX\ACK\NULD\n\+ \\t\n\+ \\STX\b\v\DC2\ETX\ACK\NULD\n\+ \\n\+ \\n\+ \\STX\EOT\NUL\DC2\EOT\b\NUL\SO\SOH\n\+ \\n\+ \\n\+ \\ETX\EOT\NUL\SOH\DC2\ETX\b\b\ETB\n\+ \1\n\+ \\EOT\EOT\NUL\STX\NUL\DC2\ETX\n\+ \\EOT\GS\SUB$ The version information for lncli.\n\+ \\n\+ \\f\n\+ \\ENQ\EOT\NUL\STX\NUL\ACK\DC2\ETX\n\+ \\EOT\DC2\n\+ \\f\n\+ \\ENQ\EOT\NUL\STX\NUL\SOH\DC2\ETX\n\+ \\DC3\CAN\n\+ \\f\n\+ \\ENQ\EOT\NUL\STX\NUL\ETX\DC2\ETX\n\+ \\ESC\FS\n\+ \/\n\+ \\EOT\EOT\NUL\STX\SOH\DC2\ETX\r\EOT\ESC\SUB\" The version information for lnd.\n\+ \\n\+ \\f\n\+ \\ENQ\EOT\NUL\STX\SOH\ACK\DC2\ETX\r\EOT\DC2\n\+ \\f\n\+ \\ENQ\EOT\NUL\STX\SOH\SOH\DC2\ETX\r\DC3\SYN\n\+ \\f\n\+ \\ENQ\EOT\NUL\STX\SOH\ETX\DC2\ETX\r\EM\SUBb\ACKproto3"
@@ -0,0 +1,52 @@+{- This file was auto-generated from lnclipb/lncli.proto by the proto-lens-protoc program. -}+{-# LANGUAGE ScopedTypeVariables, DataKinds, TypeFamilies, UndecidableInstances, GeneralizedNewtypeDeriving, MultiParamTypeClasses, FlexibleContexts, FlexibleInstances, PatternSynonyms, MagicHash, NoImplicitPrelude, BangPatterns, TypeApplications, OverloadedStrings, DerivingStrategies, DeriveGeneric#-}+{-# OPTIONS_GHC -Wno-unused-imports#-}+{-# OPTIONS_GHC -Wno-duplicate-exports#-}+{-# OPTIONS_GHC -Wno-dodgy-exports#-}+module Proto.Lnclipb.Lncli_Fields where+import qualified Data.ProtoLens.Runtime.Prelude as Prelude+import qualified Data.ProtoLens.Runtime.Data.Int as Data.Int+import qualified Data.ProtoLens.Runtime.Data.Monoid as Data.Monoid+import qualified Data.ProtoLens.Runtime.Data.Word as Data.Word+import qualified Data.ProtoLens.Runtime.Data.ProtoLens as Data.ProtoLens+import qualified Data.ProtoLens.Runtime.Data.ProtoLens.Encoding.Bytes as Data.ProtoLens.Encoding.Bytes+import qualified Data.ProtoLens.Runtime.Data.ProtoLens.Encoding.Growing as Data.ProtoLens.Encoding.Growing+import qualified Data.ProtoLens.Runtime.Data.ProtoLens.Encoding.Parser.Unsafe as Data.ProtoLens.Encoding.Parser.Unsafe+import qualified Data.ProtoLens.Runtime.Data.ProtoLens.Encoding.Wire as Data.ProtoLens.Encoding.Wire+import qualified Data.ProtoLens.Runtime.Data.ProtoLens.Field as Data.ProtoLens.Field+import qualified Data.ProtoLens.Runtime.Data.ProtoLens.Message.Enum as Data.ProtoLens.Message.Enum+import qualified Data.ProtoLens.Runtime.Data.ProtoLens.Service.Types as Data.ProtoLens.Service.Types+import qualified Data.ProtoLens.Runtime.Lens.Family2 as Lens.Family2+import qualified Data.ProtoLens.Runtime.Lens.Family2.Unchecked as Lens.Family2.Unchecked+import qualified Data.ProtoLens.Runtime.Data.Text as Data.Text+import qualified Data.ProtoLens.Runtime.Data.Map as Data.Map+import qualified Data.ProtoLens.Runtime.Data.ByteString as Data.ByteString+import qualified Data.ProtoLens.Runtime.Data.ByteString.Char8 as Data.ByteString.Char8+import qualified Data.ProtoLens.Runtime.Data.Text.Encoding as Data.Text.Encoding+import qualified Data.ProtoLens.Runtime.Data.Vector as Data.Vector+import qualified Data.ProtoLens.Runtime.Data.Vector.Generic as Data.Vector.Generic+import qualified Data.ProtoLens.Runtime.Data.Vector.Unboxed as Data.Vector.Unboxed+import qualified Data.ProtoLens.Runtime.Text.Read as Text.Read+import qualified Proto.Verrpc.Verrpc+lncli ::+ forall f s a.+ (Prelude.Functor f, Data.ProtoLens.Field.HasField s "lncli" a) =>+ Lens.Family2.LensLike' f s a+lncli = Data.ProtoLens.Field.field @"lncli"+lnd ::+ forall f s a.+ (Prelude.Functor f, Data.ProtoLens.Field.HasField s "lnd" a) =>+ Lens.Family2.LensLike' f s a+lnd = Data.ProtoLens.Field.field @"lnd"+maybe'lncli ::+ forall f s a.+ (Prelude.Functor f,+ Data.ProtoLens.Field.HasField s "maybe'lncli" a) =>+ Lens.Family2.LensLike' f s a+maybe'lncli = Data.ProtoLens.Field.field @"maybe'lncli"+maybe'lnd ::+ forall f s a.+ (Prelude.Functor f,+ Data.ProtoLens.Field.HasField s "maybe'lnd" a) =>+ Lens.Family2.LensLike' f s a+maybe'lnd = Data.ProtoLens.Field.field @"maybe'lnd"
file too large to diff
@@ -1,3320 +0,0 @@-{- This file was auto-generated from lnd_grpc.proto by the proto-lens-protoc program. -}-{-# LANGUAGE ScopedTypeVariables, DataKinds, TypeFamilies, UndecidableInstances, GeneralizedNewtypeDeriving, MultiParamTypeClasses, FlexibleContexts, FlexibleInstances, PatternSynonyms, MagicHash, NoImplicitPrelude, DataKinds, BangPatterns, TypeApplications, OverloadedStrings, DerivingStrategies#-}-{-# OPTIONS_GHC -Wno-unused-imports#-}-{-# OPTIONS_GHC -Wno-duplicate-exports#-}-{-# OPTIONS_GHC -Wno-dodgy-exports#-}-module Proto.LndGrpc_Fields where-import qualified Data.ProtoLens.Runtime.Prelude as Prelude-import qualified Data.ProtoLens.Runtime.Data.Int as Data.Int-import qualified Data.ProtoLens.Runtime.Data.Monoid as Data.Monoid-import qualified Data.ProtoLens.Runtime.Data.Word as Data.Word-import qualified Data.ProtoLens.Runtime.Data.ProtoLens as Data.ProtoLens-import qualified Data.ProtoLens.Runtime.Data.ProtoLens.Encoding.Bytes as Data.ProtoLens.Encoding.Bytes-import qualified Data.ProtoLens.Runtime.Data.ProtoLens.Encoding.Growing as Data.ProtoLens.Encoding.Growing-import qualified Data.ProtoLens.Runtime.Data.ProtoLens.Encoding.Parser.Unsafe as Data.ProtoLens.Encoding.Parser.Unsafe-import qualified Data.ProtoLens.Runtime.Data.ProtoLens.Encoding.Wire as Data.ProtoLens.Encoding.Wire-import qualified Data.ProtoLens.Runtime.Data.ProtoLens.Field as Data.ProtoLens.Field-import qualified Data.ProtoLens.Runtime.Data.ProtoLens.Message.Enum as Data.ProtoLens.Message.Enum-import qualified Data.ProtoLens.Runtime.Data.ProtoLens.Service.Types as Data.ProtoLens.Service.Types-import qualified Data.ProtoLens.Runtime.Lens.Family2 as Lens.Family2-import qualified Data.ProtoLens.Runtime.Lens.Family2.Unchecked as Lens.Family2.Unchecked-import qualified Data.ProtoLens.Runtime.Data.Text as Data.Text-import qualified Data.ProtoLens.Runtime.Data.Map as Data.Map-import qualified Data.ProtoLens.Runtime.Data.ByteString as Data.ByteString-import qualified Data.ProtoLens.Runtime.Data.ByteString.Char8 as Data.ByteString.Char8-import qualified Data.ProtoLens.Runtime.Data.Text.Encoding as Data.Text.Encoding-import qualified Data.ProtoLens.Runtime.Data.Vector as Data.Vector-import qualified Data.ProtoLens.Runtime.Data.Vector.Generic as Data.Vector.Generic-import qualified Data.ProtoLens.Runtime.Data.Vector.Unboxed as Data.Vector.Unboxed-import qualified Data.ProtoLens.Runtime.Text.Read as Text.Read-abandoned ::- forall f s a.- (Prelude.Functor f,- Data.ProtoLens.Field.HasField s "abandoned" a) =>- Lens.Family2.LensLike' f s a-abandoned = Data.ProtoLens.Field.field @"abandoned"-accept ::- forall f s a.- (Prelude.Functor f, Data.ProtoLens.Field.HasField s "accept" a) =>- Lens.Family2.LensLike' f s a-accept = Data.ProtoLens.Field.field @"accept"-acceptHeight ::- forall f s a.- (Prelude.Functor f,- Data.ProtoLens.Field.HasField s "acceptHeight" a) =>- Lens.Family2.LensLike' f s a-acceptHeight = Data.ProtoLens.Field.field @"acceptHeight"-acceptTime ::- forall f s a.- (Prelude.Functor f,- Data.ProtoLens.Field.HasField s "acceptTime" a) =>- Lens.Family2.LensLike' f s a-acceptTime = Data.ProtoLens.Field.field @"acceptTime"-account ::- forall f s a.- (Prelude.Functor f, Data.ProtoLens.Field.HasField s "account" a) =>- Lens.Family2.LensLike' f s a-account = Data.ProtoLens.Field.field @"account"-accountBalance ::- forall f s a.- (Prelude.Functor f,- Data.ProtoLens.Field.HasField s "accountBalance" a) =>- Lens.Family2.LensLike' f s a-accountBalance = Data.ProtoLens.Field.field @"accountBalance"-action ::- forall f s a.- (Prelude.Functor f, Data.ProtoLens.Field.HasField s "action" a) =>- Lens.Family2.LensLike' f s a-action = Data.ProtoLens.Field.field @"action"-actions ::- forall f s a.- (Prelude.Functor f, Data.ProtoLens.Field.HasField s "actions" a) =>- Lens.Family2.LensLike' f s a-actions = Data.ProtoLens.Field.field @"actions"-active ::- forall f s a.- (Prelude.Functor f, Data.ProtoLens.Field.HasField s "active" a) =>- Lens.Family2.LensLike' f s a-active = Data.ProtoLens.Field.field @"active"-activeChannel ::- forall f s a.- (Prelude.Functor f,- Data.ProtoLens.Field.HasField s "activeChannel" a) =>- Lens.Family2.LensLike' f s a-activeChannel = Data.ProtoLens.Field.field @"activeChannel"-activeOnly ::- forall f s a.- (Prelude.Functor f,- Data.ProtoLens.Field.HasField s "activeOnly" a) =>- Lens.Family2.LensLike' f s a-activeOnly = Data.ProtoLens.Field.field @"activeOnly"-addIndex ::- forall f s a.- (Prelude.Functor f,- Data.ProtoLens.Field.HasField s "addIndex" a) =>- Lens.Family2.LensLike' f s a-addIndex = Data.ProtoLens.Field.field @"addIndex"-addr ::- forall f s a.- (Prelude.Functor f, Data.ProtoLens.Field.HasField s "addr" a) =>- Lens.Family2.LensLike' f s a-addr = Data.ProtoLens.Field.field @"addr"-addrToAmount ::- forall f s a.- (Prelude.Functor f,- Data.ProtoLens.Field.HasField s "addrToAmount" a) =>- Lens.Family2.LensLike' f s a-addrToAmount = Data.ProtoLens.Field.field @"addrToAmount"-address ::- forall f s a.- (Prelude.Functor f, Data.ProtoLens.Field.HasField s "address" a) =>- Lens.Family2.LensLike' f s a-address = Data.ProtoLens.Field.field @"address"-addressType ::- forall f s a.- (Prelude.Functor f,- Data.ProtoLens.Field.HasField s "addressType" a) =>- Lens.Family2.LensLike' f s a-addressType = Data.ProtoLens.Field.field @"addressType"-addresses ::- forall f s a.- (Prelude.Functor f,- Data.ProtoLens.Field.HasField s "addresses" a) =>- Lens.Family2.LensLike' f s a-addresses = Data.ProtoLens.Field.field @"addresses"-advertisingNode ::- forall f s a.- (Prelude.Functor f,- Data.ProtoLens.Field.HasField s "advertisingNode" a) =>- Lens.Family2.LensLike' f s a-advertisingNode = Data.ProtoLens.Field.field @"advertisingNode"-alias ::- forall f s a.- (Prelude.Functor f, Data.ProtoLens.Field.HasField s "alias" a) =>- Lens.Family2.LensLike' f s a-alias = Data.ProtoLens.Field.field @"alias"-allowSelfPayment ::- forall f s a.- (Prelude.Functor f,- Data.ProtoLens.Field.HasField s "allowSelfPayment" a) =>- Lens.Family2.LensLike' f s a-allowSelfPayment = Data.ProtoLens.Field.field @"allowSelfPayment"-amount ::- forall f s a.- (Prelude.Functor f, Data.ProtoLens.Field.HasField s "amount" a) =>- Lens.Family2.LensLike' f s a-amount = Data.ProtoLens.Field.field @"amount"-amountSat ::- forall f s a.- (Prelude.Functor f,- Data.ProtoLens.Field.HasField s "amountSat" a) =>- Lens.Family2.LensLike' f s a-amountSat = Data.ProtoLens.Field.field @"amountSat"-amp ::- forall f s a.- (Prelude.Functor f, Data.ProtoLens.Field.HasField s "amp" a) =>- Lens.Family2.LensLike' f s a-amp = Data.ProtoLens.Field.field @"amp"-ampRecord ::- forall f s a.- (Prelude.Functor f,- Data.ProtoLens.Field.HasField s "ampRecord" a) =>- Lens.Family2.LensLike' f s a-ampRecord = Data.ProtoLens.Field.field @"ampRecord"-amt ::- forall f s a.- (Prelude.Functor f, Data.ProtoLens.Field.HasField s "amt" a) =>- Lens.Family2.LensLike' f s a-amt = Data.ProtoLens.Field.field @"amt"-amtIn ::- forall f s a.- (Prelude.Functor f, Data.ProtoLens.Field.HasField s "amtIn" a) =>- Lens.Family2.LensLike' f s a-amtIn = Data.ProtoLens.Field.field @"amtIn"-amtInMsat ::- forall f s a.- (Prelude.Functor f,- Data.ProtoLens.Field.HasField s "amtInMsat" a) =>- Lens.Family2.LensLike' f s a-amtInMsat = Data.ProtoLens.Field.field @"amtInMsat"-amtMsat ::- forall f s a.- (Prelude.Functor f, Data.ProtoLens.Field.HasField s "amtMsat" a) =>- Lens.Family2.LensLike' f s a-amtMsat = Data.ProtoLens.Field.field @"amtMsat"-amtOut ::- forall f s a.- (Prelude.Functor f, Data.ProtoLens.Field.HasField s "amtOut" a) =>- Lens.Family2.LensLike' f s a-amtOut = Data.ProtoLens.Field.field @"amtOut"-amtOutMsat ::- forall f s a.- (Prelude.Functor f,- Data.ProtoLens.Field.HasField s "amtOutMsat" a) =>- Lens.Family2.LensLike' f s a-amtOutMsat = Data.ProtoLens.Field.field @"amtOutMsat"-amtPaid ::- forall f s a.- (Prelude.Functor f, Data.ProtoLens.Field.HasField s "amtPaid" a) =>- Lens.Family2.LensLike' f s a-amtPaid = Data.ProtoLens.Field.field @"amtPaid"-amtPaidMsat ::- forall f s a.- (Prelude.Functor f,- Data.ProtoLens.Field.HasField s "amtPaidMsat" a) =>- Lens.Family2.LensLike' f s a-amtPaidMsat = Data.ProtoLens.Field.field @"amtPaidMsat"-amtPaidSat ::- forall f s a.- (Prelude.Functor f,- Data.ProtoLens.Field.HasField s "amtPaidSat" a) =>- Lens.Family2.LensLike' f s a-amtPaidSat = Data.ProtoLens.Field.field @"amtPaidSat"-amtToForward ::- forall f s a.- (Prelude.Functor f,- Data.ProtoLens.Field.HasField s "amtToForward" a) =>- Lens.Family2.LensLike' f s a-amtToForward = Data.ProtoLens.Field.field @"amtToForward"-amtToForwardMsat ::- forall f s a.- (Prelude.Functor f,- Data.ProtoLens.Field.HasField s "amtToForwardMsat" a) =>- Lens.Family2.LensLike' f s a-amtToForwardMsat = Data.ProtoLens.Field.field @"amtToForwardMsat"-anchor ::- forall f s a.- (Prelude.Functor f, Data.ProtoLens.Field.HasField s "anchor" a) =>- Lens.Family2.LensLike' f s a-anchor = Data.ProtoLens.Field.field @"anchor"-attemptId ::- forall f s a.- (Prelude.Functor f,- Data.ProtoLens.Field.HasField s "attemptId" a) =>- Lens.Family2.LensLike' f s a-attemptId = Data.ProtoLens.Field.field @"attemptId"-attemptTimeNs ::- forall f s a.- (Prelude.Functor f,- Data.ProtoLens.Field.HasField s "attemptTimeNs" a) =>- Lens.Family2.LensLike' f s a-attemptTimeNs = Data.ProtoLens.Field.field @"attemptTimeNs"-avgChannelSize ::- forall f s a.- (Prelude.Functor f,- Data.ProtoLens.Field.HasField s "avgChannelSize" a) =>- Lens.Family2.LensLike' f s a-avgChannelSize = Data.ProtoLens.Field.field @"avgChannelSize"-avgOutDegree ::- forall f s a.- (Prelude.Functor f,- Data.ProtoLens.Field.HasField s "avgOutDegree" a) =>- Lens.Family2.LensLike' f s a-avgOutDegree = Data.ProtoLens.Field.field @"avgOutDegree"-balance ::- forall f s a.- (Prelude.Functor f, Data.ProtoLens.Field.HasField s "balance" a) =>- Lens.Family2.LensLike' f s a-balance = Data.ProtoLens.Field.field @"balance"-baseFee ::- forall f s a.- (Prelude.Functor f, Data.ProtoLens.Field.HasField s "baseFee" a) =>- Lens.Family2.LensLike' f s a-baseFee = Data.ProtoLens.Field.field @"baseFee"-baseFeeMsat ::- forall f s a.- (Prelude.Functor f,- Data.ProtoLens.Field.HasField s "baseFeeMsat" a) =>- Lens.Family2.LensLike' f s a-baseFeeMsat = Data.ProtoLens.Field.field @"baseFeeMsat"-basePsbt ::- forall f s a.- (Prelude.Functor f,- Data.ProtoLens.Field.HasField s "basePsbt" a) =>- Lens.Family2.LensLike' f s a-basePsbt = Data.ProtoLens.Field.field @"basePsbt"-bestHeaderTimestamp ::- forall f s a.- (Prelude.Functor f,- Data.ProtoLens.Field.HasField s "bestHeaderTimestamp" a) =>- Lens.Family2.LensLike' f s a-bestHeaderTimestamp- = Data.ProtoLens.Field.field @"bestHeaderTimestamp"-betweennessCentrality ::- forall f s a.- (Prelude.Functor f,- Data.ProtoLens.Field.HasField s "betweennessCentrality" a) =>- Lens.Family2.LensLike' f s a-betweennessCentrality- = Data.ProtoLens.Field.field @"betweennessCentrality"-blockHash ::- forall f s a.- (Prelude.Functor f,- Data.ProtoLens.Field.HasField s "blockHash" a) =>- Lens.Family2.LensLike' f s a-blockHash = Data.ProtoLens.Field.field @"blockHash"-blockHeight ::- forall f s a.- (Prelude.Functor f,- Data.ProtoLens.Field.HasField s "blockHeight" a) =>- Lens.Family2.LensLike' f s a-blockHeight = Data.ProtoLens.Field.field @"blockHeight"-blockSha ::- forall f s a.- (Prelude.Functor f,- Data.ProtoLens.Field.HasField s "blockSha" a) =>- Lens.Family2.LensLike' f s a-blockSha = Data.ProtoLens.Field.field @"blockSha"-blocksTilMaturity ::- forall f s a.- (Prelude.Functor f,- Data.ProtoLens.Field.HasField s "blocksTilMaturity" a) =>- Lens.Family2.LensLike' f s a-blocksTilMaturity = Data.ProtoLens.Field.field @"blocksTilMaturity"-breach ::- forall f s a.- (Prelude.Functor f, Data.ProtoLens.Field.HasField s "breach" a) =>- Lens.Family2.LensLike' f s a-breach = Data.ProtoLens.Field.field @"breach"-bytesRecv ::- forall f s a.- (Prelude.Functor f,- Data.ProtoLens.Field.HasField s "bytesRecv" a) =>- Lens.Family2.LensLike' f s a-bytesRecv = Data.ProtoLens.Field.field @"bytesRecv"-bytesSent ::- forall f s a.- (Prelude.Functor f,- Data.ProtoLens.Field.HasField s "bytesSent" a) =>- Lens.Family2.LensLike' f s a-bytesSent = Data.ProtoLens.Field.field @"bytesSent"-capacity ::- forall f s a.- (Prelude.Functor f,- Data.ProtoLens.Field.HasField s "capacity" a) =>- Lens.Family2.LensLike' f s a-capacity = Data.ProtoLens.Field.field @"capacity"-chain ::- forall f s a.- (Prelude.Functor f, Data.ProtoLens.Field.HasField s "chain" a) =>- Lens.Family2.LensLike' f s a-chain = Data.ProtoLens.Field.field @"chain"-chainHash ::- forall f s a.- (Prelude.Functor f,- Data.ProtoLens.Field.HasField s "chainHash" a) =>- Lens.Family2.LensLike' f s a-chainHash = Data.ProtoLens.Field.field @"chainHash"-chains ::- forall f s a.- (Prelude.Functor f, Data.ProtoLens.Field.HasField s "chains" a) =>- Lens.Family2.LensLike' f s a-chains = Data.ProtoLens.Field.field @"chains"-chanBackup ::- forall f s a.- (Prelude.Functor f,- Data.ProtoLens.Field.HasField s "chanBackup" a) =>- Lens.Family2.LensLike' f s a-chanBackup = Data.ProtoLens.Field.field @"chanBackup"-chanBackups ::- forall f s a.- (Prelude.Functor f,- Data.ProtoLens.Field.HasField s "chanBackups" a) =>- Lens.Family2.LensLike' f s a-chanBackups = Data.ProtoLens.Field.field @"chanBackups"-chanCapacity ::- forall f s a.- (Prelude.Functor f,- Data.ProtoLens.Field.HasField s "chanCapacity" a) =>- Lens.Family2.LensLike' f s a-chanCapacity = Data.ProtoLens.Field.field @"chanCapacity"-chanClose ::- forall f s a.- (Prelude.Functor f,- Data.ProtoLens.Field.HasField s "chanClose" a) =>- Lens.Family2.LensLike' f s a-chanClose = Data.ProtoLens.Field.field @"chanClose"-chanId ::- forall f s a.- (Prelude.Functor f, Data.ProtoLens.Field.HasField s "chanId" a) =>- Lens.Family2.LensLike' f s a-chanId = Data.ProtoLens.Field.field @"chanId"-chanIdIn ::- forall f s a.- (Prelude.Functor f,- Data.ProtoLens.Field.HasField s "chanIdIn" a) =>- Lens.Family2.LensLike' f s a-chanIdIn = Data.ProtoLens.Field.field @"chanIdIn"-chanIdOut ::- forall f s a.- (Prelude.Functor f,- Data.ProtoLens.Field.HasField s "chanIdOut" a) =>- Lens.Family2.LensLike' f s a-chanIdOut = Data.ProtoLens.Field.field @"chanIdOut"-chanOpen ::- forall f s a.- (Prelude.Functor f,- Data.ProtoLens.Field.HasField s "chanOpen" a) =>- Lens.Family2.LensLike' f s a-chanOpen = Data.ProtoLens.Field.field @"chanOpen"-chanPending ::- forall f s a.- (Prelude.Functor f,- Data.ProtoLens.Field.HasField s "chanPending" a) =>- Lens.Family2.LensLike' f s a-chanPending = Data.ProtoLens.Field.field @"chanPending"-chanPoint ::- forall f s a.- (Prelude.Functor f,- Data.ProtoLens.Field.HasField s "chanPoint" a) =>- Lens.Family2.LensLike' f s a-chanPoint = Data.ProtoLens.Field.field @"chanPoint"-chanPointShim ::- forall f s a.- (Prelude.Functor f,- Data.ProtoLens.Field.HasField s "chanPointShim" a) =>- Lens.Family2.LensLike' f s a-chanPointShim = Data.ProtoLens.Field.field @"chanPointShim"-chanPoints ::- forall f s a.- (Prelude.Functor f,- Data.ProtoLens.Field.HasField s "chanPoints" a) =>- Lens.Family2.LensLike' f s a-chanPoints = Data.ProtoLens.Field.field @"chanPoints"-chanReserveSat ::- forall f s a.- (Prelude.Functor f,- Data.ProtoLens.Field.HasField s "chanReserveSat" a) =>- Lens.Family2.LensLike' f s a-chanReserveSat = Data.ProtoLens.Field.field @"chanReserveSat"-chanStatusFlags ::- forall f s a.- (Prelude.Functor f,- Data.ProtoLens.Field.HasField s "chanStatusFlags" a) =>- Lens.Family2.LensLike' f s a-chanStatusFlags = Data.ProtoLens.Field.field @"chanStatusFlags"-channel ::- forall f s a.- (Prelude.Functor f, Data.ProtoLens.Field.HasField s "channel" a) =>- Lens.Family2.LensLike' f s a-channel = Data.ProtoLens.Field.field @"channel"-channelFees ::- forall f s a.- (Prelude.Functor f,- Data.ProtoLens.Field.HasField s "channelFees" a) =>- Lens.Family2.LensLike' f s a-channelFees = Data.ProtoLens.Field.field @"channelFees"-channelFlags ::- forall f s a.- (Prelude.Functor f,- Data.ProtoLens.Field.HasField s "channelFlags" a) =>- Lens.Family2.LensLike' f s a-channelFlags = Data.ProtoLens.Field.field @"channelFlags"-channelId ::- forall f s a.- (Prelude.Functor f,- Data.ProtoLens.Field.HasField s "channelId" a) =>- Lens.Family2.LensLike' f s a-channelId = Data.ProtoLens.Field.field @"channelId"-channelPoint ::- forall f s a.- (Prelude.Functor f,- Data.ProtoLens.Field.HasField s "channelPoint" a) =>- Lens.Family2.LensLike' f s a-channelPoint = Data.ProtoLens.Field.field @"channelPoint"-channelReserve ::- forall f s a.- (Prelude.Functor f,- Data.ProtoLens.Field.HasField s "channelReserve" a) =>- Lens.Family2.LensLike' f s a-channelReserve = Data.ProtoLens.Field.field @"channelReserve"-channelUpdate ::- forall f s a.- (Prelude.Functor f,- Data.ProtoLens.Field.HasField s "channelUpdate" a) =>- Lens.Family2.LensLike' f s a-channelUpdate = Data.ProtoLens.Field.field @"channelUpdate"-channelUpdates ::- forall f s a.- (Prelude.Functor f,- Data.ProtoLens.Field.HasField s "channelUpdates" a) =>- Lens.Family2.LensLike' f s a-channelUpdates = Data.ProtoLens.Field.field @"channelUpdates"-channels ::- forall f s a.- (Prelude.Functor f,- Data.ProtoLens.Field.HasField s "channels" a) =>- Lens.Family2.LensLike' f s a-channels = Data.ProtoLens.Field.field @"channels"-childIndex ::- forall f s a.- (Prelude.Functor f,- Data.ProtoLens.Field.HasField s "childIndex" a) =>- Lens.Family2.LensLike' f s a-childIndex = Data.ProtoLens.Field.field @"childIndex"-closeAddress ::- forall f s a.- (Prelude.Functor f,- Data.ProtoLens.Field.HasField s "closeAddress" a) =>- Lens.Family2.LensLike' f s a-closeAddress = Data.ProtoLens.Field.field @"closeAddress"-closeHeight ::- forall f s a.- (Prelude.Functor f,- Data.ProtoLens.Field.HasField s "closeHeight" a) =>- Lens.Family2.LensLike' f s a-closeHeight = Data.ProtoLens.Field.field @"closeHeight"-closeInitiator ::- forall f s a.- (Prelude.Functor f,- Data.ProtoLens.Field.HasField s "closeInitiator" a) =>- Lens.Family2.LensLike' f s a-closeInitiator = Data.ProtoLens.Field.field @"closeInitiator"-closePending ::- forall f s a.- (Prelude.Functor f,- Data.ProtoLens.Field.HasField s "closePending" a) =>- Lens.Family2.LensLike' f s a-closePending = Data.ProtoLens.Field.field @"closePending"-closeType ::- forall f s a.- (Prelude.Functor f,- Data.ProtoLens.Field.HasField s "closeType" a) =>- Lens.Family2.LensLike' f s a-closeType = Data.ProtoLens.Field.field @"closeType"-closedChannel ::- forall f s a.- (Prelude.Functor f,- Data.ProtoLens.Field.HasField s "closedChannel" a) =>- Lens.Family2.LensLike' f s a-closedChannel = Data.ProtoLens.Field.field @"closedChannel"-closedChans ::- forall f s a.- (Prelude.Functor f,- Data.ProtoLens.Field.HasField s "closedChans" a) =>- Lens.Family2.LensLike' f s a-closedChans = Data.ProtoLens.Field.field @"closedChans"-closedHeight ::- forall f s a.- (Prelude.Functor f,- Data.ProtoLens.Field.HasField s "closedHeight" a) =>- Lens.Family2.LensLike' f s a-closedHeight = Data.ProtoLens.Field.field @"closedHeight"-closingTxHash ::- forall f s a.- (Prelude.Functor f,- Data.ProtoLens.Field.HasField s "closingTxHash" a) =>- Lens.Family2.LensLike' f s a-closingTxHash = Data.ProtoLens.Field.field @"closingTxHash"-closingTxid ::- forall f s a.- (Prelude.Functor f,- Data.ProtoLens.Field.HasField s "closingTxid" a) =>- Lens.Family2.LensLike' f s a-closingTxid = Data.ProtoLens.Field.field @"closingTxid"-cltvExpiry ::- forall f s a.- (Prelude.Functor f,- Data.ProtoLens.Field.HasField s "cltvExpiry" a) =>- Lens.Family2.LensLike' f s a-cltvExpiry = Data.ProtoLens.Field.field @"cltvExpiry"-cltvExpiryDelta ::- forall f s a.- (Prelude.Functor f,- Data.ProtoLens.Field.HasField s "cltvExpiryDelta" a) =>- Lens.Family2.LensLike' f s a-cltvExpiryDelta = Data.ProtoLens.Field.field @"cltvExpiryDelta"-cltvLimit ::- forall f s a.- (Prelude.Functor f,- Data.ProtoLens.Field.HasField s "cltvLimit" a) =>- Lens.Family2.LensLike' f s a-cltvLimit = Data.ProtoLens.Field.field @"cltvLimit"-code ::- forall f s a.- (Prelude.Functor f, Data.ProtoLens.Field.HasField s "code" a) =>- Lens.Family2.LensLike' f s a-code = Data.ProtoLens.Field.field @"code"-color ::- forall f s a.- (Prelude.Functor f, Data.ProtoLens.Field.HasField s "color" a) =>- Lens.Family2.LensLike' f s a-color = Data.ProtoLens.Field.field @"color"-commitFee ::- forall f s a.- (Prelude.Functor f,- Data.ProtoLens.Field.HasField s "commitFee" a) =>- Lens.Family2.LensLike' f s a-commitFee = Data.ProtoLens.Field.field @"commitFee"-commitHash ::- forall f s a.- (Prelude.Functor f,- Data.ProtoLens.Field.HasField s "commitHash" a) =>- Lens.Family2.LensLike' f s a-commitHash = Data.ProtoLens.Field.field @"commitHash"-commitWeight ::- forall f s a.- (Prelude.Functor f,- Data.ProtoLens.Field.HasField s "commitWeight" a) =>- Lens.Family2.LensLike' f s a-commitWeight = Data.ProtoLens.Field.field @"commitWeight"-commitmentType ::- forall f s a.- (Prelude.Functor f,- Data.ProtoLens.Field.HasField s "commitmentType" a) =>- Lens.Family2.LensLike' f s a-commitmentType = Data.ProtoLens.Field.field @"commitmentType"-commitments ::- forall f s a.- (Prelude.Functor f,- Data.ProtoLens.Field.HasField s "commitments" a) =>- Lens.Family2.LensLike' f s a-commitments = Data.ProtoLens.Field.field @"commitments"-confirmationHeight ::- forall f s a.- (Prelude.Functor f,- Data.ProtoLens.Field.HasField s "confirmationHeight" a) =>- Lens.Family2.LensLike' f s a-confirmationHeight- = Data.ProtoLens.Field.field @"confirmationHeight"-confirmations ::- forall f s a.- (Prelude.Functor f,- Data.ProtoLens.Field.HasField s "confirmations" a) =>- Lens.Family2.LensLike' f s a-confirmations = Data.ProtoLens.Field.field @"confirmations"-confirmedBalance ::- forall f s a.- (Prelude.Functor f,- Data.ProtoLens.Field.HasField s "confirmedBalance" a) =>- Lens.Family2.LensLike' f s a-confirmedBalance = Data.ProtoLens.Field.field @"confirmedBalance"-connectingNode ::- forall f s a.- (Prelude.Functor f,- Data.ProtoLens.Field.HasField s "connectingNode" a) =>- Lens.Family2.LensLike' f s a-connectingNode = Data.ProtoLens.Field.field @"connectingNode"-cooperative ::- forall f s a.- (Prelude.Functor f,- Data.ProtoLens.Field.HasField s "cooperative" a) =>- Lens.Family2.LensLike' f s a-cooperative = Data.ProtoLens.Field.field @"cooperative"-creationDate ::- forall f s a.- (Prelude.Functor f,- Data.ProtoLens.Field.HasField s "creationDate" a) =>- Lens.Family2.LensLike' f s a-creationDate = Data.ProtoLens.Field.field @"creationDate"-creationTimeNs ::- forall f s a.- (Prelude.Functor f,- Data.ProtoLens.Field.HasField s "creationTimeNs" a) =>- Lens.Family2.LensLike' f s a-creationTimeNs = Data.ProtoLens.Field.field @"creationTimeNs"-csvDelay ::- forall f s a.- (Prelude.Functor f,- Data.ProtoLens.Field.HasField s "csvDelay" a) =>- Lens.Family2.LensLike' f s a-csvDelay = Data.ProtoLens.Field.field @"csvDelay"-customRecords ::- forall f s a.- (Prelude.Functor f,- Data.ProtoLens.Field.HasField s "customRecords" a) =>- Lens.Family2.LensLike' f s a-customRecords = Data.ProtoLens.Field.field @"customRecords"-dayFeeSum ::- forall f s a.- (Prelude.Functor f,- Data.ProtoLens.Field.HasField s "dayFeeSum" a) =>- Lens.Family2.LensLike' f s a-dayFeeSum = Data.ProtoLens.Field.field @"dayFeeSum"-deleted ::- forall f s a.- (Prelude.Functor f, Data.ProtoLens.Field.HasField s "deleted" a) =>- Lens.Family2.LensLike' f s a-deleted = Data.ProtoLens.Field.field @"deleted"-deliveryAddress ::- forall f s a.- (Prelude.Functor f,- Data.ProtoLens.Field.HasField s "deliveryAddress" a) =>- Lens.Family2.LensLike' f s a-deliveryAddress = Data.ProtoLens.Field.field @"deliveryAddress"-description ::- forall f s a.- (Prelude.Functor f,- Data.ProtoLens.Field.HasField s "description" a) =>- Lens.Family2.LensLike' f s a-description = Data.ProtoLens.Field.field @"description"-descriptionHash ::- forall f s a.- (Prelude.Functor f,- Data.ProtoLens.Field.HasField s "descriptionHash" a) =>- Lens.Family2.LensLike' f s a-descriptionHash = Data.ProtoLens.Field.field @"descriptionHash"-dest ::- forall f s a.- (Prelude.Functor f, Data.ProtoLens.Field.HasField s "dest" a) =>- Lens.Family2.LensLike' f s a-dest = Data.ProtoLens.Field.field @"dest"-destAddresses ::- forall f s a.- (Prelude.Functor f,- Data.ProtoLens.Field.HasField s "destAddresses" a) =>- Lens.Family2.LensLike' f s a-destAddresses = Data.ProtoLens.Field.field @"destAddresses"-destCustomRecords ::- forall f s a.- (Prelude.Functor f,- Data.ProtoLens.Field.HasField s "destCustomRecords" a) =>- Lens.Family2.LensLike' f s a-destCustomRecords = Data.ProtoLens.Field.field @"destCustomRecords"-destFeatures ::- forall f s a.- (Prelude.Functor f,- Data.ProtoLens.Field.HasField s "destFeatures" a) =>- Lens.Family2.LensLike' f s a-destFeatures = Data.ProtoLens.Field.field @"destFeatures"-destString ::- forall f s a.- (Prelude.Functor f,- Data.ProtoLens.Field.HasField s "destString" a) =>- Lens.Family2.LensLike' f s a-destString = Data.ProtoLens.Field.field @"destString"-destination ::- forall f s a.- (Prelude.Functor f,- Data.ProtoLens.Field.HasField s "destination" a) =>- Lens.Family2.LensLike' f s a-destination = Data.ProtoLens.Field.field @"destination"-directionReverse ::- forall f s a.- (Prelude.Functor f,- Data.ProtoLens.Field.HasField s "directionReverse" a) =>- Lens.Family2.LensLike' f s a-directionReverse = Data.ProtoLens.Field.field @"directionReverse"-disabled ::- forall f s a.- (Prelude.Functor f,- Data.ProtoLens.Field.HasField s "disabled" a) =>- Lens.Family2.LensLike' f s a-disabled = Data.ProtoLens.Field.field @"disabled"-dustLimit ::- forall f s a.- (Prelude.Functor f,- Data.ProtoLens.Field.HasField s "dustLimit" a) =>- Lens.Family2.LensLike' f s a-dustLimit = Data.ProtoLens.Field.field @"dustLimit"-dustLimitSat ::- forall f s a.- (Prelude.Functor f,- Data.ProtoLens.Field.HasField s "dustLimitSat" a) =>- Lens.Family2.LensLike' f s a-dustLimitSat = Data.ProtoLens.Field.field @"dustLimitSat"-edges ::- forall f s a.- (Prelude.Functor f, Data.ProtoLens.Field.HasField s "edges" a) =>- Lens.Family2.LensLike' f s a-edges = Data.ProtoLens.Field.field @"edges"-endHeight ::- forall f s a.- (Prelude.Functor f,- Data.ProtoLens.Field.HasField s "endHeight" a) =>- Lens.Family2.LensLike' f s a-endHeight = Data.ProtoLens.Field.field @"endHeight"-endTime ::- forall f s a.- (Prelude.Functor f, Data.ProtoLens.Field.HasField s "endTime" a) =>- Lens.Family2.LensLike' f s a-endTime = Data.ProtoLens.Field.field @"endTime"-entity ::- forall f s a.- (Prelude.Functor f, Data.ProtoLens.Field.HasField s "entity" a) =>- Lens.Family2.LensLike' f s a-entity = Data.ProtoLens.Field.field @"entity"-error ::- forall f s a.- (Prelude.Functor f, Data.ProtoLens.Field.HasField s "error" a) =>- Lens.Family2.LensLike' f s a-error = Data.ProtoLens.Field.field @"error"-errors ::- forall f s a.- (Prelude.Functor f, Data.ProtoLens.Field.HasField s "errors" a) =>- Lens.Family2.LensLike' f s a-errors = Data.ProtoLens.Field.field @"errors"-expirationHeight ::- forall f s a.- (Prelude.Functor f,- Data.ProtoLens.Field.HasField s "expirationHeight" a) =>- Lens.Family2.LensLike' f s a-expirationHeight = Data.ProtoLens.Field.field @"expirationHeight"-expiry ::- forall f s a.- (Prelude.Functor f, Data.ProtoLens.Field.HasField s "expiry" a) =>- Lens.Family2.LensLike' f s a-expiry = Data.ProtoLens.Field.field @"expiry"-expiryHeight ::- forall f s a.- (Prelude.Functor f,- Data.ProtoLens.Field.HasField s "expiryHeight" a) =>- Lens.Family2.LensLike' f s a-expiryHeight = Data.ProtoLens.Field.field @"expiryHeight"-extraOpaqueData ::- forall f s a.- (Prelude.Functor f,- Data.ProtoLens.Field.HasField s "extraOpaqueData" a) =>- Lens.Family2.LensLike' f s a-extraOpaqueData = Data.ProtoLens.Field.field @"extraOpaqueData"-failedHtlcsOnly ::- forall f s a.- (Prelude.Functor f,- Data.ProtoLens.Field.HasField s "failedHtlcsOnly" a) =>- Lens.Family2.LensLike' f s a-failedHtlcsOnly = Data.ProtoLens.Field.field @"failedHtlcsOnly"-failedPaymentsOnly ::- forall f s a.- (Prelude.Functor f,- Data.ProtoLens.Field.HasField s "failedPaymentsOnly" a) =>- Lens.Family2.LensLike' f s a-failedPaymentsOnly- = Data.ProtoLens.Field.field @"failedPaymentsOnly"-failure ::- forall f s a.- (Prelude.Functor f, Data.ProtoLens.Field.HasField s "failure" a) =>- Lens.Family2.LensLike' f s a-failure = Data.ProtoLens.Field.field @"failure"-failureReason ::- forall f s a.- (Prelude.Functor f,- Data.ProtoLens.Field.HasField s "failureReason" a) =>- Lens.Family2.LensLike' f s a-failureReason = Data.ProtoLens.Field.field @"failureReason"-failureSourceIndex ::- forall f s a.- (Prelude.Functor f,- Data.ProtoLens.Field.HasField s "failureSourceIndex" a) =>- Lens.Family2.LensLike' f s a-failureSourceIndex- = Data.ProtoLens.Field.field @"failureSourceIndex"-fallbackAddr ::- forall f s a.- (Prelude.Functor f,- Data.ProtoLens.Field.HasField s "fallbackAddr" a) =>- Lens.Family2.LensLike' f s a-fallbackAddr = Data.ProtoLens.Field.field @"fallbackAddr"-features ::- forall f s a.- (Prelude.Functor f,- Data.ProtoLens.Field.HasField s "features" a) =>- Lens.Family2.LensLike' f s a-features = Data.ProtoLens.Field.field @"features"-fee ::- forall f s a.- (Prelude.Functor f, Data.ProtoLens.Field.HasField s "fee" a) =>- Lens.Family2.LensLike' f s a-fee = Data.ProtoLens.Field.field @"fee"-feeBaseMsat ::- forall f s a.- (Prelude.Functor f,- Data.ProtoLens.Field.HasField s "feeBaseMsat" a) =>- Lens.Family2.LensLike' f s a-feeBaseMsat = Data.ProtoLens.Field.field @"feeBaseMsat"-feeLimit ::- forall f s a.- (Prelude.Functor f,- Data.ProtoLens.Field.HasField s "feeLimit" a) =>- Lens.Family2.LensLike' f s a-feeLimit = Data.ProtoLens.Field.field @"feeLimit"-feeMsat ::- forall f s a.- (Prelude.Functor f, Data.ProtoLens.Field.HasField s "feeMsat" a) =>- Lens.Family2.LensLike' f s a-feeMsat = Data.ProtoLens.Field.field @"feeMsat"-feePerKw ::- forall f s a.- (Prelude.Functor f,- Data.ProtoLens.Field.HasField s "feePerKw" a) =>- Lens.Family2.LensLike' f s a-feePerKw = Data.ProtoLens.Field.field @"feePerKw"-feePerMil ::- forall f s a.- (Prelude.Functor f,- Data.ProtoLens.Field.HasField s "feePerMil" a) =>- Lens.Family2.LensLike' f s a-feePerMil = Data.ProtoLens.Field.field @"feePerMil"-feeProportionalMillionths ::- forall f s a.- (Prelude.Functor f,- Data.ProtoLens.Field.HasField s "feeProportionalMillionths" a) =>- Lens.Family2.LensLike' f s a-feeProportionalMillionths- = Data.ProtoLens.Field.field @"feeProportionalMillionths"-feeRate ::- forall f s a.- (Prelude.Functor f, Data.ProtoLens.Field.HasField s "feeRate" a) =>- Lens.Family2.LensLike' f s a-feeRate = Data.ProtoLens.Field.field @"feeRate"-feeRateMilliMsat ::- forall f s a.- (Prelude.Functor f,- Data.ProtoLens.Field.HasField s "feeRateMilliMsat" a) =>- Lens.Family2.LensLike' f s a-feeRateMilliMsat = Data.ProtoLens.Field.field @"feeRateMilliMsat"-feeSat ::- forall f s a.- (Prelude.Functor f, Data.ProtoLens.Field.HasField s "feeSat" a) =>- Lens.Family2.LensLike' f s a-feeSat = Data.ProtoLens.Field.field @"feeSat"-feerateSatPerByte ::- forall f s a.- (Prelude.Functor f,- Data.ProtoLens.Field.HasField s "feerateSatPerByte" a) =>- Lens.Family2.LensLike' f s a-feerateSatPerByte = Data.ProtoLens.Field.field @"feerateSatPerByte"-finalCltvDelta ::- forall f s a.- (Prelude.Functor f,- Data.ProtoLens.Field.HasField s "finalCltvDelta" a) =>- Lens.Family2.LensLike' f s a-finalCltvDelta = Data.ProtoLens.Field.field @"finalCltvDelta"-finalRawTx ::- forall f s a.- (Prelude.Functor f,- Data.ProtoLens.Field.HasField s "finalRawTx" a) =>- Lens.Family2.LensLike' f s a-finalRawTx = Data.ProtoLens.Field.field @"finalRawTx"-firstIndexOffset ::- forall f s a.- (Prelude.Functor f,- Data.ProtoLens.Field.HasField s "firstIndexOffset" a) =>- Lens.Family2.LensLike' f s a-firstIndexOffset = Data.ProtoLens.Field.field @"firstIndexOffset"-fixed ::- forall f s a.- (Prelude.Functor f, Data.ProtoLens.Field.HasField s "fixed" a) =>- Lens.Family2.LensLike' f s a-fixed = Data.ProtoLens.Field.field @"fixed"-fixedMsat ::- forall f s a.- (Prelude.Functor f,- Data.ProtoLens.Field.HasField s "fixedMsat" a) =>- Lens.Family2.LensLike' f s a-fixedMsat = Data.ProtoLens.Field.field @"fixedMsat"-flags ::- forall f s a.- (Prelude.Functor f, Data.ProtoLens.Field.HasField s "flags" a) =>- Lens.Family2.LensLike' f s a-flags = Data.ProtoLens.Field.field @"flags"-flapCount ::- forall f s a.- (Prelude.Functor f,- Data.ProtoLens.Field.HasField s "flapCount" a) =>- Lens.Family2.LensLike' f s a-flapCount = Data.ProtoLens.Field.field @"flapCount"-force ::- forall f s a.- (Prelude.Functor f, Data.ProtoLens.Field.HasField s "force" a) =>- Lens.Family2.LensLike' f s a-force = Data.ProtoLens.Field.field @"force"-forwardingChannel ::- forall f s a.- (Prelude.Functor f,- Data.ProtoLens.Field.HasField s "forwardingChannel" a) =>- Lens.Family2.LensLike' f s a-forwardingChannel = Data.ProtoLens.Field.field @"forwardingChannel"-forwardingEvents ::- forall f s a.- (Prelude.Functor f,- Data.ProtoLens.Field.HasField s "forwardingEvents" a) =>- Lens.Family2.LensLike' f s a-forwardingEvents = Data.ProtoLens.Field.field @"forwardingEvents"-forwardingHtlcIndex ::- forall f s a.- (Prelude.Functor f,- Data.ProtoLens.Field.HasField s "forwardingHtlcIndex" a) =>- Lens.Family2.LensLike' f s a-forwardingHtlcIndex- = Data.ProtoLens.Field.field @"forwardingHtlcIndex"-from ::- forall f s a.- (Prelude.Functor f, Data.ProtoLens.Field.HasField s "from" a) =>- Lens.Family2.LensLike' f s a-from = Data.ProtoLens.Field.field @"from"-fundedPsbt ::- forall f s a.- (Prelude.Functor f,- Data.ProtoLens.Field.HasField s "fundedPsbt" a) =>- Lens.Family2.LensLike' f s a-fundedPsbt = Data.ProtoLens.Field.field @"fundedPsbt"-fundingAddress ::- forall f s a.- (Prelude.Functor f,- Data.ProtoLens.Field.HasField s "fundingAddress" a) =>- Lens.Family2.LensLike' f s a-fundingAddress = Data.ProtoLens.Field.field @"fundingAddress"-fundingAmount ::- forall f s a.- (Prelude.Functor f,- Data.ProtoLens.Field.HasField s "fundingAmount" a) =>- Lens.Family2.LensLike' f s a-fundingAmount = Data.ProtoLens.Field.field @"fundingAmount"-fundingAmt ::- forall f s a.- (Prelude.Functor f,- Data.ProtoLens.Field.HasField s "fundingAmt" a) =>- Lens.Family2.LensLike' f s a-fundingAmt = Data.ProtoLens.Field.field @"fundingAmt"-fundingCanceled ::- forall f s a.- (Prelude.Functor f,- Data.ProtoLens.Field.HasField s "fundingCanceled" a) =>- Lens.Family2.LensLike' f s a-fundingCanceled = Data.ProtoLens.Field.field @"fundingCanceled"-fundingShim ::- forall f s a.- (Prelude.Functor f,- Data.ProtoLens.Field.HasField s "fundingShim" a) =>- Lens.Family2.LensLike' f s a-fundingShim = Data.ProtoLens.Field.field @"fundingShim"-fundingTxidBytes ::- forall f s a.- (Prelude.Functor f,- Data.ProtoLens.Field.HasField s "fundingTxidBytes" a) =>- Lens.Family2.LensLike' f s a-fundingTxidBytes = Data.ProtoLens.Field.field @"fundingTxidBytes"-fundingTxidStr ::- forall f s a.- (Prelude.Functor f,- Data.ProtoLens.Field.HasField s "fundingTxidStr" a) =>- Lens.Family2.LensLike' f s a-fundingTxidStr = Data.ProtoLens.Field.field @"fundingTxidStr"-global ::- forall f s a.- (Prelude.Functor f, Data.ProtoLens.Field.HasField s "global" a) =>- Lens.Family2.LensLike' f s a-global = Data.ProtoLens.Field.field @"global"-globalFeatures ::- forall f s a.- (Prelude.Functor f,- Data.ProtoLens.Field.HasField s "globalFeatures" a) =>- Lens.Family2.LensLike' f s a-globalFeatures = Data.ProtoLens.Field.field @"globalFeatures"-graphDiameter ::- forall f s a.- (Prelude.Functor f,- Data.ProtoLens.Field.HasField s "graphDiameter" a) =>- Lens.Family2.LensLike' f s a-graphDiameter = Data.ProtoLens.Field.field @"graphDiameter"-hash ::- forall f s a.- (Prelude.Functor f, Data.ProtoLens.Field.HasField s "hash" a) =>- Lens.Family2.LensLike' f s a-hash = Data.ProtoLens.Field.field @"hash"-hashLock ::- forall f s a.- (Prelude.Functor f,- Data.ProtoLens.Field.HasField s "hashLock" a) =>- Lens.Family2.LensLike' f s a-hashLock = Data.ProtoLens.Field.field @"hashLock"-height ::- forall f s a.- (Prelude.Functor f, Data.ProtoLens.Field.HasField s "height" a) =>- Lens.Family2.LensLike' f s a-height = Data.ProtoLens.Field.field @"height"-hopHints ::- forall f s a.- (Prelude.Functor f,- Data.ProtoLens.Field.HasField s "hopHints" a) =>- Lens.Family2.LensLike' f s a-hopHints = Data.ProtoLens.Field.field @"hopHints"-hops ::- forall f s a.- (Prelude.Functor f, Data.ProtoLens.Field.HasField s "hops" a) =>- Lens.Family2.LensLike' f s a-hops = Data.ProtoLens.Field.field @"hops"-host ::- forall f s a.- (Prelude.Functor f, Data.ProtoLens.Field.HasField s "host" a) =>- Lens.Family2.LensLike' f s a-host = Data.ProtoLens.Field.field @"host"-htlcIndex ::- forall f s a.- (Prelude.Functor f,- Data.ProtoLens.Field.HasField s "htlcIndex" a) =>- Lens.Family2.LensLike' f s a-htlcIndex = Data.ProtoLens.Field.field @"htlcIndex"-htlcMaximumMsat ::- forall f s a.- (Prelude.Functor f,- Data.ProtoLens.Field.HasField s "htlcMaximumMsat" a) =>- Lens.Family2.LensLike' f s a-htlcMaximumMsat = Data.ProtoLens.Field.field @"htlcMaximumMsat"-htlcMinimumMsat ::- forall f s a.- (Prelude.Functor f,- Data.ProtoLens.Field.HasField s "htlcMinimumMsat" a) =>- Lens.Family2.LensLike' f s a-htlcMinimumMsat = Data.ProtoLens.Field.field @"htlcMinimumMsat"-htlcMsat ::- forall f s a.- (Prelude.Functor f,- Data.ProtoLens.Field.HasField s "htlcMsat" a) =>- Lens.Family2.LensLike' f s a-htlcMsat = Data.ProtoLens.Field.field @"htlcMsat"-htlcs ::- forall f s a.- (Prelude.Functor f, Data.ProtoLens.Field.HasField s "htlcs" a) =>- Lens.Family2.LensLike' f s a-htlcs = Data.ProtoLens.Field.field @"htlcs"-iKnowWhatIAmDoing ::- forall f s a.- (Prelude.Functor f,- Data.ProtoLens.Field.HasField s "iKnowWhatIAmDoing" a) =>- Lens.Family2.LensLike' f s a-iKnowWhatIAmDoing = Data.ProtoLens.Field.field @"iKnowWhatIAmDoing"-identityKey ::- forall f s a.- (Prelude.Functor f,- Data.ProtoLens.Field.HasField s "identityKey" a) =>- Lens.Family2.LensLike' f s a-identityKey = Data.ProtoLens.Field.field @"identityKey"-identityPubkey ::- forall f s a.- (Prelude.Functor f,- Data.ProtoLens.Field.HasField s "identityPubkey" a) =>- Lens.Family2.LensLike' f s a-identityPubkey = Data.ProtoLens.Field.field @"identityPubkey"-ignoredEdges ::- forall f s a.- (Prelude.Functor f,- Data.ProtoLens.Field.HasField s "ignoredEdges" a) =>- Lens.Family2.LensLike' f s a-ignoredEdges = Data.ProtoLens.Field.field @"ignoredEdges"-ignoredNodes ::- forall f s a.- (Prelude.Functor f,- Data.ProtoLens.Field.HasField s "ignoredNodes" a) =>- Lens.Family2.LensLike' f s a-ignoredNodes = Data.ProtoLens.Field.field @"ignoredNodes"-ignoredPairs ::- forall f s a.- (Prelude.Functor f,- Data.ProtoLens.Field.HasField s "ignoredPairs" a) =>- Lens.Family2.LensLike' f s a-ignoredPairs = Data.ProtoLens.Field.field @"ignoredPairs"-inFlightMaxMsat ::- forall f s a.- (Prelude.Functor f,- Data.ProtoLens.Field.HasField s "inFlightMaxMsat" a) =>- Lens.Family2.LensLike' f s a-inFlightMaxMsat = Data.ProtoLens.Field.field @"inFlightMaxMsat"-inactiveChannel ::- forall f s a.- (Prelude.Functor f,- Data.ProtoLens.Field.HasField s "inactiveChannel" a) =>- Lens.Family2.LensLike' f s a-inactiveChannel = Data.ProtoLens.Field.field @"inactiveChannel"-inactiveOnly ::- forall f s a.- (Prelude.Functor f,- Data.ProtoLens.Field.HasField s "inactiveOnly" a) =>- Lens.Family2.LensLike' f s a-inactiveOnly = Data.ProtoLens.Field.field @"inactiveOnly"-inbound ::- forall f s a.- (Prelude.Functor f, Data.ProtoLens.Field.HasField s "inbound" a) =>- Lens.Family2.LensLike' f s a-inbound = Data.ProtoLens.Field.field @"inbound"-includeChannels ::- forall f s a.- (Prelude.Functor f,- Data.ProtoLens.Field.HasField s "includeChannels" a) =>- Lens.Family2.LensLike' f s a-includeChannels = Data.ProtoLens.Field.field @"includeChannels"-includeIncomplete ::- forall f s a.- (Prelude.Functor f,- Data.ProtoLens.Field.HasField s "includeIncomplete" a) =>- Lens.Family2.LensLike' f s a-includeIncomplete = Data.ProtoLens.Field.field @"includeIncomplete"-includeUnannounced ::- forall f s a.- (Prelude.Functor f,- Data.ProtoLens.Field.HasField s "includeUnannounced" a) =>- Lens.Family2.LensLike' f s a-includeUnannounced- = Data.ProtoLens.Field.field @"includeUnannounced"-incoming ::- forall f s a.- (Prelude.Functor f,- Data.ProtoLens.Field.HasField s "incoming" a) =>- Lens.Family2.LensLike' f s a-incoming = Data.ProtoLens.Field.field @"incoming"-indexOffset ::- forall f s a.- (Prelude.Functor f,- Data.ProtoLens.Field.HasField s "indexOffset" a) =>- Lens.Family2.LensLike' f s a-indexOffset = Data.ProtoLens.Field.field @"indexOffset"-initiator ::- forall f s a.- (Prelude.Functor f,- Data.ProtoLens.Field.HasField s "initiator" a) =>- Lens.Family2.LensLike' f s a-initiator = Data.ProtoLens.Field.field @"initiator"-invoices ::- forall f s a.- (Prelude.Functor f,- Data.ProtoLens.Field.HasField s "invoices" a) =>- Lens.Family2.LensLike' f s a-invoices = Data.ProtoLens.Field.field @"invoices"-isAmp ::- forall f s a.- (Prelude.Functor f, Data.ProtoLens.Field.HasField s "isAmp" a) =>- Lens.Family2.LensLike' f s a-isAmp = Data.ProtoLens.Field.field @"isAmp"-isKeysend ::- forall f s a.- (Prelude.Functor f,- Data.ProtoLens.Field.HasField s "isKeysend" a) =>- Lens.Family2.LensLike' f s a-isKeysend = Data.ProtoLens.Field.field @"isKeysend"-isKnown ::- forall f s a.- (Prelude.Functor f, Data.ProtoLens.Field.HasField s "isKnown" a) =>- Lens.Family2.LensLike' f s a-isKnown = Data.ProtoLens.Field.field @"isKnown"-isRequired ::- forall f s a.- (Prelude.Functor f,- Data.ProtoLens.Field.HasField s "isRequired" a) =>- Lens.Family2.LensLike' f s a-isRequired = Data.ProtoLens.Field.field @"isRequired"-key ::- forall f s a.- (Prelude.Functor f, Data.ProtoLens.Field.HasField s "key" a) =>- Lens.Family2.LensLike' f s a-key = Data.ProtoLens.Field.field @"key"-keyFamily ::- forall f s a.- (Prelude.Functor f,- Data.ProtoLens.Field.HasField s "keyFamily" a) =>- Lens.Family2.LensLike' f s a-keyFamily = Data.ProtoLens.Field.field @"keyFamily"-keyIndex ::- forall f s a.- (Prelude.Functor f,- Data.ProtoLens.Field.HasField s "keyIndex" a) =>- Lens.Family2.LensLike' f s a-keyIndex = Data.ProtoLens.Field.field @"keyIndex"-keyLoc ::- forall f s a.- (Prelude.Functor f, Data.ProtoLens.Field.HasField s "keyLoc" a) =>- Lens.Family2.LensLike' f s a-keyLoc = Data.ProtoLens.Field.field @"keyLoc"-label ::- forall f s a.- (Prelude.Functor f, Data.ProtoLens.Field.HasField s "label" a) =>- Lens.Family2.LensLike' f s a-label = Data.ProtoLens.Field.field @"label"-lastFlapNs ::- forall f s a.- (Prelude.Functor f,- Data.ProtoLens.Field.HasField s "lastFlapNs" a) =>- Lens.Family2.LensLike' f s a-lastFlapNs = Data.ProtoLens.Field.field @"lastFlapNs"-lastHopPubkey ::- forall f s a.- (Prelude.Functor f,- Data.ProtoLens.Field.HasField s "lastHopPubkey" a) =>- Lens.Family2.LensLike' f s a-lastHopPubkey = Data.ProtoLens.Field.field @"lastHopPubkey"-lastIndexOffset ::- forall f s a.- (Prelude.Functor f,- Data.ProtoLens.Field.HasField s "lastIndexOffset" a) =>- Lens.Family2.LensLike' f s a-lastIndexOffset = Data.ProtoLens.Field.field @"lastIndexOffset"-lastOffsetIndex ::- forall f s a.- (Prelude.Functor f,- Data.ProtoLens.Field.HasField s "lastOffsetIndex" a) =>- Lens.Family2.LensLike' f s a-lastOffsetIndex = Data.ProtoLens.Field.field @"lastOffsetIndex"-lastUpdate ::- forall f s a.- (Prelude.Functor f,- Data.ProtoLens.Field.HasField s "lastUpdate" a) =>- Lens.Family2.LensLike' f s a-lastUpdate = Data.ProtoLens.Field.field @"lastUpdate"-latestError ::- forall f s a.- (Prelude.Functor f,- Data.ProtoLens.Field.HasField s "latestError" a) =>- Lens.Family2.LensLike' f s a-latestError = Data.ProtoLens.Field.field @"latestError"-levelSpec ::- forall f s a.- (Prelude.Functor f,- Data.ProtoLens.Field.HasField s "levelSpec" a) =>- Lens.Family2.LensLike' f s a-levelSpec = Data.ProtoLens.Field.field @"levelSpec"-lifetime ::- forall f s a.- (Prelude.Functor f,- Data.ProtoLens.Field.HasField s "lifetime" a) =>- Lens.Family2.LensLike' f s a-lifetime = Data.ProtoLens.Field.field @"lifetime"-limboBalance ::- forall f s a.- (Prelude.Functor f,- Data.ProtoLens.Field.HasField s "limboBalance" a) =>- Lens.Family2.LensLike' f s a-limboBalance = Data.ProtoLens.Field.field @"limboBalance"-localBalance ::- forall f s a.- (Prelude.Functor f,- Data.ProtoLens.Field.HasField s "localBalance" a) =>- Lens.Family2.LensLike' f s a-localBalance = Data.ProtoLens.Field.field @"localBalance"-localChanReserveSat ::- forall f s a.- (Prelude.Functor f,- Data.ProtoLens.Field.HasField s "localChanReserveSat" a) =>- Lens.Family2.LensLike' f s a-localChanReserveSat- = Data.ProtoLens.Field.field @"localChanReserveSat"-localCommitFeeSat ::- forall f s a.- (Prelude.Functor f,- Data.ProtoLens.Field.HasField s "localCommitFeeSat" a) =>- Lens.Family2.LensLike' f s a-localCommitFeeSat = Data.ProtoLens.Field.field @"localCommitFeeSat"-localConstraints ::- forall f s a.- (Prelude.Functor f,- Data.ProtoLens.Field.HasField s "localConstraints" a) =>- Lens.Family2.LensLike' f s a-localConstraints = Data.ProtoLens.Field.field @"localConstraints"-localForce ::- forall f s a.- (Prelude.Functor f,- Data.ProtoLens.Field.HasField s "localForce" a) =>- Lens.Family2.LensLike' f s a-localForce = Data.ProtoLens.Field.field @"localForce"-localFundingAmount ::- forall f s a.- (Prelude.Functor f,- Data.ProtoLens.Field.HasField s "localFundingAmount" a) =>- Lens.Family2.LensLike' f s a-localFundingAmount- = Data.ProtoLens.Field.field @"localFundingAmount"-localKey ::- forall f s a.- (Prelude.Functor f,- Data.ProtoLens.Field.HasField s "localKey" a) =>- Lens.Family2.LensLike' f s a-localKey = Data.ProtoLens.Field.field @"localKey"-localTxid ::- forall f s a.- (Prelude.Functor f,- Data.ProtoLens.Field.HasField s "localTxid" a) =>- Lens.Family2.LensLike' f s a-localTxid = Data.ProtoLens.Field.field @"localTxid"-macaroon ::- forall f s a.- (Prelude.Functor f,- Data.ProtoLens.Field.HasField s "macaroon" a) =>- Lens.Family2.LensLike' f s a-macaroon = Data.ProtoLens.Field.field @"macaroon"-maturityHeight ::- forall f s a.- (Prelude.Functor f,- Data.ProtoLens.Field.HasField s "maturityHeight" a) =>- Lens.Family2.LensLike' f s a-maturityHeight = Data.ProtoLens.Field.field @"maturityHeight"-maxAcceptedHtlcs ::- forall f s a.- (Prelude.Functor f,- Data.ProtoLens.Field.HasField s "maxAcceptedHtlcs" a) =>- Lens.Family2.LensLike' f s a-maxAcceptedHtlcs = Data.ProtoLens.Field.field @"maxAcceptedHtlcs"-maxChannelSize ::- forall f s a.- (Prelude.Functor f,- Data.ProtoLens.Field.HasField s "maxChannelSize" a) =>- Lens.Family2.LensLike' f s a-maxChannelSize = Data.ProtoLens.Field.field @"maxChannelSize"-maxConfs ::- forall f s a.- (Prelude.Functor f,- Data.ProtoLens.Field.HasField s "maxConfs" a) =>- Lens.Family2.LensLike' f s a-maxConfs = Data.ProtoLens.Field.field @"maxConfs"-maxHtlcCount ::- forall f s a.- (Prelude.Functor f,- Data.ProtoLens.Field.HasField s "maxHtlcCount" a) =>- Lens.Family2.LensLike' f s a-maxHtlcCount = Data.ProtoLens.Field.field @"maxHtlcCount"-maxHtlcMsat ::- forall f s a.- (Prelude.Functor f,- Data.ProtoLens.Field.HasField s "maxHtlcMsat" a) =>- Lens.Family2.LensLike' f s a-maxHtlcMsat = Data.ProtoLens.Field.field @"maxHtlcMsat"-maxLocalCsv ::- forall f s a.- (Prelude.Functor f,- Data.ProtoLens.Field.HasField s "maxLocalCsv" a) =>- Lens.Family2.LensLike' f s a-maxLocalCsv = Data.ProtoLens.Field.field @"maxLocalCsv"-maxOutDegree ::- forall f s a.- (Prelude.Functor f,- Data.ProtoLens.Field.HasField s "maxOutDegree" a) =>- Lens.Family2.LensLike' f s a-maxOutDegree = Data.ProtoLens.Field.field @"maxOutDegree"-maxPayments ::- forall f s a.- (Prelude.Functor f,- Data.ProtoLens.Field.HasField s "maxPayments" a) =>- Lens.Family2.LensLike' f s a-maxPayments = Data.ProtoLens.Field.field @"maxPayments"-maxPendingAmtMsat ::- forall f s a.- (Prelude.Functor f,- Data.ProtoLens.Field.HasField s "maxPendingAmtMsat" a) =>- Lens.Family2.LensLike' f s a-maxPendingAmtMsat = Data.ProtoLens.Field.field @"maxPendingAmtMsat"-maxValueInFlight ::- forall f s a.- (Prelude.Functor f,- Data.ProtoLens.Field.HasField s "maxValueInFlight" a) =>- Lens.Family2.LensLike' f s a-maxValueInFlight = Data.ProtoLens.Field.field @"maxValueInFlight"-maybe'activeChannel ::- forall f s a.- (Prelude.Functor f,- Data.ProtoLens.Field.HasField s "maybe'activeChannel" a) =>- Lens.Family2.LensLike' f s a-maybe'activeChannel- = Data.ProtoLens.Field.field @"maybe'activeChannel"-maybe'addr ::- forall f s a.- (Prelude.Functor f,- Data.ProtoLens.Field.HasField s "maybe'addr" a) =>- Lens.Family2.LensLike' f s a-maybe'addr = Data.ProtoLens.Field.field @"maybe'addr"-maybe'amp ::- forall f s a.- (Prelude.Functor f,- Data.ProtoLens.Field.HasField s "maybe'amp" a) =>- Lens.Family2.LensLike' f s a-maybe'amp = Data.ProtoLens.Field.field @"maybe'amp"-maybe'ampRecord ::- forall f s a.- (Prelude.Functor f,- Data.ProtoLens.Field.HasField s "maybe'ampRecord" a) =>- Lens.Family2.LensLike' f s a-maybe'ampRecord = Data.ProtoLens.Field.field @"maybe'ampRecord"-maybe'backup ::- forall f s a.- (Prelude.Functor f,- Data.ProtoLens.Field.HasField s "maybe'backup" a) =>- Lens.Family2.LensLike' f s a-maybe'backup = Data.ProtoLens.Field.field @"maybe'backup"-maybe'chanBackups ::- forall f s a.- (Prelude.Functor f,- Data.ProtoLens.Field.HasField s "maybe'chanBackups" a) =>- Lens.Family2.LensLike' f s a-maybe'chanBackups = Data.ProtoLens.Field.field @"maybe'chanBackups"-maybe'chanClose ::- forall f s a.- (Prelude.Functor f,- Data.ProtoLens.Field.HasField s "maybe'chanClose" a) =>- Lens.Family2.LensLike' f s a-maybe'chanClose = Data.ProtoLens.Field.field @"maybe'chanClose"-maybe'chanOpen ::- forall f s a.- (Prelude.Functor f,- Data.ProtoLens.Field.HasField s "maybe'chanOpen" a) =>- Lens.Family2.LensLike' f s a-maybe'chanOpen = Data.ProtoLens.Field.field @"maybe'chanOpen"-maybe'chanPending ::- forall f s a.- (Prelude.Functor f,- Data.ProtoLens.Field.HasField s "maybe'chanPending" a) =>- Lens.Family2.LensLike' f s a-maybe'chanPending = Data.ProtoLens.Field.field @"maybe'chanPending"-maybe'chanPoint ::- forall f s a.- (Prelude.Functor f,- Data.ProtoLens.Field.HasField s "maybe'chanPoint" a) =>- Lens.Family2.LensLike' f s a-maybe'chanPoint = Data.ProtoLens.Field.field @"maybe'chanPoint"-maybe'chanPointShim ::- forall f s a.- (Prelude.Functor f,- Data.ProtoLens.Field.HasField s "maybe'chanPointShim" a) =>- Lens.Family2.LensLike' f s a-maybe'chanPointShim- = Data.ProtoLens.Field.field @"maybe'chanPointShim"-maybe'channel ::- forall f s a.- (Prelude.Functor f,- Data.ProtoLens.Field.HasField s "maybe'channel" a) =>- Lens.Family2.LensLike' f s a-maybe'channel = Data.ProtoLens.Field.field @"maybe'channel"-maybe'channelPoint ::- forall f s a.- (Prelude.Functor f,- Data.ProtoLens.Field.HasField s "maybe'channelPoint" a) =>- Lens.Family2.LensLike' f s a-maybe'channelPoint- = Data.ProtoLens.Field.field @"maybe'channelPoint"-maybe'channelUpdate ::- forall f s a.- (Prelude.Functor f,- Data.ProtoLens.Field.HasField s "maybe'channelUpdate" a) =>- Lens.Family2.LensLike' f s a-maybe'channelUpdate- = Data.ProtoLens.Field.field @"maybe'channelUpdate"-maybe'closePending ::- forall f s a.- (Prelude.Functor f,- Data.ProtoLens.Field.HasField s "maybe'closePending" a) =>- Lens.Family2.LensLike' f s a-maybe'closePending- = Data.ProtoLens.Field.field @"maybe'closePending"-maybe'closedChannel ::- forall f s a.- (Prelude.Functor f,- Data.ProtoLens.Field.HasField s "maybe'closedChannel" a) =>- Lens.Family2.LensLike' f s a-maybe'closedChannel- = Data.ProtoLens.Field.field @"maybe'closedChannel"-maybe'commitments ::- forall f s a.- (Prelude.Functor f,- Data.ProtoLens.Field.HasField s "maybe'commitments" a) =>- Lens.Family2.LensLike' f s a-maybe'commitments = Data.ProtoLens.Field.field @"maybe'commitments"-maybe'failure ::- forall f s a.- (Prelude.Functor f,- Data.ProtoLens.Field.HasField s "maybe'failure" a) =>- Lens.Family2.LensLike' f s a-maybe'failure = Data.ProtoLens.Field.field @"maybe'failure"-maybe'feeLimit ::- forall f s a.- (Prelude.Functor f,- Data.ProtoLens.Field.HasField s "maybe'feeLimit" a) =>- Lens.Family2.LensLike' f s a-maybe'feeLimit = Data.ProtoLens.Field.field @"maybe'feeLimit"-maybe'fixed ::- forall f s a.- (Prelude.Functor f,- Data.ProtoLens.Field.HasField s "maybe'fixed" a) =>- Lens.Family2.LensLike' f s a-maybe'fixed = Data.ProtoLens.Field.field @"maybe'fixed"-maybe'fixedMsat ::- forall f s a.- (Prelude.Functor f,- Data.ProtoLens.Field.HasField s "maybe'fixedMsat" a) =>- Lens.Family2.LensLike' f s a-maybe'fixedMsat = Data.ProtoLens.Field.field @"maybe'fixedMsat"-maybe'fundingShim ::- forall f s a.- (Prelude.Functor f,- Data.ProtoLens.Field.HasField s "maybe'fundingShim" a) =>- Lens.Family2.LensLike' f s a-maybe'fundingShim = Data.ProtoLens.Field.field @"maybe'fundingShim"-maybe'fundingTxid ::- forall f s a.- (Prelude.Functor f,- Data.ProtoLens.Field.HasField s "maybe'fundingTxid" a) =>- Lens.Family2.LensLike' f s a-maybe'fundingTxid = Data.ProtoLens.Field.field @"maybe'fundingTxid"-maybe'fundingTxidBytes ::- forall f s a.- (Prelude.Functor f,- Data.ProtoLens.Field.HasField s "maybe'fundingTxidBytes" a) =>- Lens.Family2.LensLike' f s a-maybe'fundingTxidBytes- = Data.ProtoLens.Field.field @"maybe'fundingTxidBytes"-maybe'fundingTxidStr ::- forall f s a.- (Prelude.Functor f,- Data.ProtoLens.Field.HasField s "maybe'fundingTxidStr" a) =>- Lens.Family2.LensLike' f s a-maybe'fundingTxidStr- = Data.ProtoLens.Field.field @"maybe'fundingTxidStr"-maybe'global ::- forall f s a.- (Prelude.Functor f,- Data.ProtoLens.Field.HasField s "maybe'global" a) =>- Lens.Family2.LensLike' f s a-maybe'global = Data.ProtoLens.Field.field @"maybe'global"-maybe'inactiveChannel ::- forall f s a.- (Prelude.Functor f,- Data.ProtoLens.Field.HasField s "maybe'inactiveChannel" a) =>- Lens.Family2.LensLike' f s a-maybe'inactiveChannel- = Data.ProtoLens.Field.field @"maybe'inactiveChannel"-maybe'keyLoc ::- forall f s a.- (Prelude.Functor f,- Data.ProtoLens.Field.HasField s "maybe'keyLoc" a) =>- Lens.Family2.LensLike' f s a-maybe'keyLoc = Data.ProtoLens.Field.field @"maybe'keyLoc"-maybe'limit ::- forall f s a.- (Prelude.Functor f,- Data.ProtoLens.Field.HasField s "maybe'limit" a) =>- Lens.Family2.LensLike' f s a-maybe'limit = Data.ProtoLens.Field.field @"maybe'limit"-maybe'localBalance ::- forall f s a.- (Prelude.Functor f,- Data.ProtoLens.Field.HasField s "maybe'localBalance" a) =>- Lens.Family2.LensLike' f s a-maybe'localBalance- = Data.ProtoLens.Field.field @"maybe'localBalance"-maybe'localConstraints ::- forall f s a.- (Prelude.Functor f,- Data.ProtoLens.Field.HasField s "maybe'localConstraints" a) =>- Lens.Family2.LensLike' f s a-maybe'localConstraints- = Data.ProtoLens.Field.field @"maybe'localConstraints"-maybe'localKey ::- forall f s a.- (Prelude.Functor f,- Data.ProtoLens.Field.HasField s "maybe'localKey" a) =>- Lens.Family2.LensLike' f s a-maybe'localKey = Data.ProtoLens.Field.field @"maybe'localKey"-maybe'mppRecord ::- forall f s a.- (Prelude.Functor f,- Data.ProtoLens.Field.HasField s "maybe'mppRecord" a) =>- Lens.Family2.LensLike' f s a-maybe'mppRecord = Data.ProtoLens.Field.field @"maybe'mppRecord"-maybe'multiChanBackup ::- forall f s a.- (Prelude.Functor f,- Data.ProtoLens.Field.HasField s "maybe'multiChanBackup" a) =>- Lens.Family2.LensLike' f s a-maybe'multiChanBackup- = Data.ProtoLens.Field.field @"maybe'multiChanBackup"-maybe'node ::- forall f s a.- (Prelude.Functor f,- Data.ProtoLens.Field.HasField s "maybe'node" a) =>- Lens.Family2.LensLike' f s a-maybe'node = Data.ProtoLens.Field.field @"maybe'node"-maybe'node1Policy ::- forall f s a.- (Prelude.Functor f,- Data.ProtoLens.Field.HasField s "maybe'node1Policy" a) =>- Lens.Family2.LensLike' f s a-maybe'node1Policy = Data.ProtoLens.Field.field @"maybe'node1Policy"-maybe'node2Policy ::- forall f s a.- (Prelude.Functor f,- Data.ProtoLens.Field.HasField s "maybe'node2Policy" a) =>- Lens.Family2.LensLike' f s a-maybe'node2Policy = Data.ProtoLens.Field.field @"maybe'node2Policy"-maybe'openChannel ::- forall f s a.- (Prelude.Functor f,- Data.ProtoLens.Field.HasField s "maybe'openChannel" a) =>- Lens.Family2.LensLike' f s a-maybe'openChannel = Data.ProtoLens.Field.field @"maybe'openChannel"-maybe'outpoint ::- forall f s a.- (Prelude.Functor f,- Data.ProtoLens.Field.HasField s "maybe'outpoint" a) =>- Lens.Family2.LensLike' f s a-maybe'outpoint = Data.ProtoLens.Field.field @"maybe'outpoint"-maybe'paymentRoute ::- forall f s a.- (Prelude.Functor f,- Data.ProtoLens.Field.HasField s "maybe'paymentRoute" a) =>- Lens.Family2.LensLike' f s a-maybe'paymentRoute- = Data.ProtoLens.Field.field @"maybe'paymentRoute"-maybe'pendingOpenChannel ::- forall f s a.- (Prelude.Functor f,- Data.ProtoLens.Field.HasField s "maybe'pendingOpenChannel" a) =>- Lens.Family2.LensLike' f s a-maybe'pendingOpenChannel- = Data.ProtoLens.Field.field @"maybe'pendingOpenChannel"-maybe'pendingOpenLocalBalance ::- forall f s a.- (Prelude.Functor f,- Data.ProtoLens.Field.HasField s "maybe'pendingOpenLocalBalance" a) =>- Lens.Family2.LensLike' f s a-maybe'pendingOpenLocalBalance- = Data.ProtoLens.Field.field @"maybe'pendingOpenLocalBalance"-maybe'pendingOpenRemoteBalance ::- forall f s a.- (Prelude.Functor f,- Data.ProtoLens.Field.HasField s "maybe'pendingOpenRemoteBalance" a) =>- Lens.Family2.LensLike' f s a-maybe'pendingOpenRemoteBalance- = Data.ProtoLens.Field.field @"maybe'pendingOpenRemoteBalance"-maybe'percent ::- forall f s a.- (Prelude.Functor f,- Data.ProtoLens.Field.HasField s "maybe'percent" a) =>- Lens.Family2.LensLike' f s a-maybe'percent = Data.ProtoLens.Field.field @"maybe'percent"-maybe'psbtFinalize ::- forall f s a.- (Prelude.Functor f,- Data.ProtoLens.Field.HasField s "maybe'psbtFinalize" a) =>- Lens.Family2.LensLike' f s a-maybe'psbtFinalize- = Data.ProtoLens.Field.field @"maybe'psbtFinalize"-maybe'psbtFund ::- forall f s a.- (Prelude.Functor f,- Data.ProtoLens.Field.HasField s "maybe'psbtFund" a) =>- Lens.Family2.LensLike' f s a-maybe'psbtFund = Data.ProtoLens.Field.field @"maybe'psbtFund"-maybe'psbtShim ::- forall f s a.- (Prelude.Functor f,- Data.ProtoLens.Field.HasField s "maybe'psbtShim" a) =>- Lens.Family2.LensLike' f s a-maybe'psbtShim = Data.ProtoLens.Field.field @"maybe'psbtShim"-maybe'psbtVerify ::- forall f s a.- (Prelude.Functor f,- Data.ProtoLens.Field.HasField s "maybe'psbtVerify" a) =>- Lens.Family2.LensLike' f s a-maybe'psbtVerify = Data.ProtoLens.Field.field @"maybe'psbtVerify"-maybe'remoteBalance ::- forall f s a.- (Prelude.Functor f,- Data.ProtoLens.Field.HasField s "maybe'remoteBalance" a) =>- Lens.Family2.LensLike' f s a-maybe'remoteBalance- = Data.ProtoLens.Field.field @"maybe'remoteBalance"-maybe'remoteConstraints ::- forall f s a.- (Prelude.Functor f,- Data.ProtoLens.Field.HasField s "maybe'remoteConstraints" a) =>- Lens.Family2.LensLike' f s a-maybe'remoteConstraints- = Data.ProtoLens.Field.field @"maybe'remoteConstraints"-maybe'route ::- forall f s a.- (Prelude.Functor f,- Data.ProtoLens.Field.HasField s "maybe'route" a) =>- Lens.Family2.LensLike' f s a-maybe'route = Data.ProtoLens.Field.field @"maybe'route"-maybe'routingPolicy ::- forall f s a.- (Prelude.Functor f,- Data.ProtoLens.Field.HasField s "maybe'routingPolicy" a) =>- Lens.Family2.LensLike' f s a-maybe'routingPolicy- = Data.ProtoLens.Field.field @"maybe'routingPolicy"-maybe'scope ::- forall f s a.- (Prelude.Functor f,- Data.ProtoLens.Field.HasField s "maybe'scope" a) =>- Lens.Family2.LensLike' f s a-maybe'scope = Data.ProtoLens.Field.field @"maybe'scope"-maybe'shim ::- forall f s a.- (Prelude.Functor f,- Data.ProtoLens.Field.HasField s "maybe'shim" a) =>- Lens.Family2.LensLike' f s a-maybe'shim = Data.ProtoLens.Field.field @"maybe'shim"-maybe'shimCancel ::- forall f s a.- (Prelude.Functor f,- Data.ProtoLens.Field.HasField s "maybe'shimCancel" a) =>- Lens.Family2.LensLike' f s a-maybe'shimCancel = Data.ProtoLens.Field.field @"maybe'shimCancel"-maybe'shimRegister ::- forall f s a.- (Prelude.Functor f,- Data.ProtoLens.Field.HasField s "maybe'shimRegister" a) =>- Lens.Family2.LensLike' f s a-maybe'shimRegister- = Data.ProtoLens.Field.field @"maybe'shimRegister"-maybe'singleChanBackups ::- forall f s a.- (Prelude.Functor f,- Data.ProtoLens.Field.HasField s "maybe'singleChanBackups" a) =>- Lens.Family2.LensLike' f s a-maybe'singleChanBackups- = Data.ProtoLens.Field.field @"maybe'singleChanBackups"-maybe'trigger ::- forall f s a.- (Prelude.Functor f,- Data.ProtoLens.Field.HasField s "maybe'trigger" a) =>- Lens.Family2.LensLike' f s a-maybe'trigger = Data.ProtoLens.Field.field @"maybe'trigger"-maybe'unsettledLocalBalance ::- forall f s a.- (Prelude.Functor f,- Data.ProtoLens.Field.HasField s "maybe'unsettledLocalBalance" a) =>- Lens.Family2.LensLike' f s a-maybe'unsettledLocalBalance- = Data.ProtoLens.Field.field @"maybe'unsettledLocalBalance"-maybe'unsettledRemoteBalance ::- forall f s a.- (Prelude.Functor f,- Data.ProtoLens.Field.HasField s "maybe'unsettledRemoteBalance" a) =>- Lens.Family2.LensLike' f s a-maybe'unsettledRemoteBalance- = Data.ProtoLens.Field.field @"maybe'unsettledRemoteBalance"-maybe'update ::- forall f s a.- (Prelude.Functor f,- Data.ProtoLens.Field.HasField s "maybe'update" a) =>- Lens.Family2.LensLike' f s a-maybe'update = Data.ProtoLens.Field.field @"maybe'update"-maybe'value ::- forall f s a.- (Prelude.Functor f,- Data.ProtoLens.Field.HasField s "maybe'value" a) =>- Lens.Family2.LensLike' f s a-maybe'value = Data.ProtoLens.Field.field @"maybe'value"-medianChannelSizeSat ::- forall f s a.- (Prelude.Functor f,- Data.ProtoLens.Field.HasField s "medianChannelSizeSat" a) =>- Lens.Family2.LensLike' f s a-medianChannelSizeSat- = Data.ProtoLens.Field.field @"medianChannelSizeSat"-memo ::- forall f s a.- (Prelude.Functor f, Data.ProtoLens.Field.HasField s "memo" a) =>- Lens.Family2.LensLike' f s a-memo = Data.ProtoLens.Field.field @"memo"-messageFlags ::- forall f s a.- (Prelude.Functor f,- Data.ProtoLens.Field.HasField s "messageFlags" a) =>- Lens.Family2.LensLike' f s a-messageFlags = Data.ProtoLens.Field.field @"messageFlags"-methodPermissions ::- forall f s a.- (Prelude.Functor f,- Data.ProtoLens.Field.HasField s "methodPermissions" a) =>- Lens.Family2.LensLike' f s a-methodPermissions = Data.ProtoLens.Field.field @"methodPermissions"-minAcceptDepth ::- forall f s a.- (Prelude.Functor f,- Data.ProtoLens.Field.HasField s "minAcceptDepth" a) =>- Lens.Family2.LensLike' f s a-minAcceptDepth = Data.ProtoLens.Field.field @"minAcceptDepth"-minChannelSize ::- forall f s a.- (Prelude.Functor f,- Data.ProtoLens.Field.HasField s "minChannelSize" a) =>- Lens.Family2.LensLike' f s a-minChannelSize = Data.ProtoLens.Field.field @"minChannelSize"-minConfs ::- forall f s a.- (Prelude.Functor f,- Data.ProtoLens.Field.HasField s "minConfs" a) =>- Lens.Family2.LensLike' f s a-minConfs = Data.ProtoLens.Field.field @"minConfs"-minHtlc ::- forall f s a.- (Prelude.Functor f, Data.ProtoLens.Field.HasField s "minHtlc" a) =>- Lens.Family2.LensLike' f s a-minHtlc = Data.ProtoLens.Field.field @"minHtlc"-minHtlcIn ::- forall f s a.- (Prelude.Functor f,- Data.ProtoLens.Field.HasField s "minHtlcIn" a) =>- Lens.Family2.LensLike' f s a-minHtlcIn = Data.ProtoLens.Field.field @"minHtlcIn"-minHtlcMsat ::- forall f s a.- (Prelude.Functor f,- Data.ProtoLens.Field.HasField s "minHtlcMsat" a) =>- Lens.Family2.LensLike' f s a-minHtlcMsat = Data.ProtoLens.Field.field @"minHtlcMsat"-minHtlcMsatSpecified ::- forall f s a.- (Prelude.Functor f,- Data.ProtoLens.Field.HasField s "minHtlcMsatSpecified" a) =>- Lens.Family2.LensLike' f s a-minHtlcMsatSpecified- = Data.ProtoLens.Field.field @"minHtlcMsatSpecified"-monthFeeSum ::- forall f s a.- (Prelude.Functor f,- Data.ProtoLens.Field.HasField s "monthFeeSum" a) =>- Lens.Family2.LensLike' f s a-monthFeeSum = Data.ProtoLens.Field.field @"monthFeeSum"-mppRecord ::- forall f s a.- (Prelude.Functor f,- Data.ProtoLens.Field.HasField s "mppRecord" a) =>- Lens.Family2.LensLike' f s a-mppRecord = Data.ProtoLens.Field.field @"mppRecord"-mppTotalAmtMsat ::- forall f s a.- (Prelude.Functor f,- Data.ProtoLens.Field.HasField s "mppTotalAmtMsat" a) =>- Lens.Family2.LensLike' f s a-mppTotalAmtMsat = Data.ProtoLens.Field.field @"mppTotalAmtMsat"-msat ::- forall f s a.- (Prelude.Functor f, Data.ProtoLens.Field.HasField s "msat" a) =>- Lens.Family2.LensLike' f s a-msat = Data.ProtoLens.Field.field @"msat"-msg ::- forall f s a.- (Prelude.Functor f, Data.ProtoLens.Field.HasField s "msg" a) =>- Lens.Family2.LensLike' f s a-msg = Data.ProtoLens.Field.field @"msg"-multiChanBackup ::- forall f s a.- (Prelude.Functor f,- Data.ProtoLens.Field.HasField s "multiChanBackup" a) =>- Lens.Family2.LensLike' f s a-multiChanBackup = Data.ProtoLens.Field.field @"multiChanBackup"-name ::- forall f s a.- (Prelude.Functor f, Data.ProtoLens.Field.HasField s "name" a) =>- Lens.Family2.LensLike' f s a-name = Data.ProtoLens.Field.field @"name"-network ::- forall f s a.- (Prelude.Functor f, Data.ProtoLens.Field.HasField s "network" a) =>- Lens.Family2.LensLike' f s a-network = Data.ProtoLens.Field.field @"network"-noPublish ::- forall f s a.- (Prelude.Functor f,- Data.ProtoLens.Field.HasField s "noPublish" a) =>- Lens.Family2.LensLike' f s a-noPublish = Data.ProtoLens.Field.field @"noPublish"-node ::- forall f s a.- (Prelude.Functor f, Data.ProtoLens.Field.HasField s "node" a) =>- Lens.Family2.LensLike' f s a-node = Data.ProtoLens.Field.field @"node"-node1Policy ::- forall f s a.- (Prelude.Functor f,- Data.ProtoLens.Field.HasField s "node1Policy" a) =>- Lens.Family2.LensLike' f s a-node1Policy = Data.ProtoLens.Field.field @"node1Policy"-node1Pub ::- forall f s a.- (Prelude.Functor f,- Data.ProtoLens.Field.HasField s "node1Pub" a) =>- Lens.Family2.LensLike' f s a-node1Pub = Data.ProtoLens.Field.field @"node1Pub"-node2Policy ::- forall f s a.- (Prelude.Functor f,- Data.ProtoLens.Field.HasField s "node2Policy" a) =>- Lens.Family2.LensLike' f s a-node2Policy = Data.ProtoLens.Field.field @"node2Policy"-node2Pub ::- forall f s a.- (Prelude.Functor f,- Data.ProtoLens.Field.HasField s "node2Pub" a) =>- Lens.Family2.LensLike' f s a-node2Pub = Data.ProtoLens.Field.field @"node2Pub"-nodeAddresses ::- forall f s a.- (Prelude.Functor f,- Data.ProtoLens.Field.HasField s "nodeAddresses" a) =>- Lens.Family2.LensLike' f s a-nodeAddresses = Data.ProtoLens.Field.field @"nodeAddresses"-nodeId ::- forall f s a.- (Prelude.Functor f, Data.ProtoLens.Field.HasField s "nodeId" a) =>- Lens.Family2.LensLike' f s a-nodeId = Data.ProtoLens.Field.field @"nodeId"-nodePubkey ::- forall f s a.- (Prelude.Functor f,- Data.ProtoLens.Field.HasField s "nodePubkey" a) =>- Lens.Family2.LensLike' f s a-nodePubkey = Data.ProtoLens.Field.field @"nodePubkey"-nodePubkeyString ::- forall f s a.- (Prelude.Functor f,- Data.ProtoLens.Field.HasField s "nodePubkeyString" a) =>- Lens.Family2.LensLike' f s a-nodePubkeyString = Data.ProtoLens.Field.field @"nodePubkeyString"-nodeUpdates ::- forall f s a.- (Prelude.Functor f,- Data.ProtoLens.Field.HasField s "nodeUpdates" a) =>- Lens.Family2.LensLike' f s a-nodeUpdates = Data.ProtoLens.Field.field @"nodeUpdates"-nodes ::- forall f s a.- (Prelude.Functor f, Data.ProtoLens.Field.HasField s "nodes" a) =>- Lens.Family2.LensLike' f s a-nodes = Data.ProtoLens.Field.field @"nodes"-nonce ::- forall f s a.- (Prelude.Functor f, Data.ProtoLens.Field.HasField s "nonce" a) =>- Lens.Family2.LensLike' f s a-nonce = Data.ProtoLens.Field.field @"nonce"-normalizedValue ::- forall f s a.- (Prelude.Functor f,- Data.ProtoLens.Field.HasField s "normalizedValue" a) =>- Lens.Family2.LensLike' f s a-normalizedValue = Data.ProtoLens.Field.field @"normalizedValue"-numActiveChannels ::- forall f s a.- (Prelude.Functor f,- Data.ProtoLens.Field.HasField s "numActiveChannels" a) =>- Lens.Family2.LensLike' f s a-numActiveChannels = Data.ProtoLens.Field.field @"numActiveChannels"-numChannels ::- forall f s a.- (Prelude.Functor f,- Data.ProtoLens.Field.HasField s "numChannels" a) =>- Lens.Family2.LensLike' f s a-numChannels = Data.ProtoLens.Field.field @"numChannels"-numConfirmations ::- forall f s a.- (Prelude.Functor f,- Data.ProtoLens.Field.HasField s "numConfirmations" a) =>- Lens.Family2.LensLike' f s a-numConfirmations = Data.ProtoLens.Field.field @"numConfirmations"-numConfsLeft ::- forall f s a.- (Prelude.Functor f,- Data.ProtoLens.Field.HasField s "numConfsLeft" a) =>- Lens.Family2.LensLike' f s a-numConfsLeft = Data.ProtoLens.Field.field @"numConfsLeft"-numInactiveChannels ::- forall f s a.- (Prelude.Functor f,- Data.ProtoLens.Field.HasField s "numInactiveChannels" a) =>- Lens.Family2.LensLike' f s a-numInactiveChannels- = Data.ProtoLens.Field.field @"numInactiveChannels"-numMaxEvents ::- forall f s a.- (Prelude.Functor f,- Data.ProtoLens.Field.HasField s "numMaxEvents" a) =>- Lens.Family2.LensLike' f s a-numMaxEvents = Data.ProtoLens.Field.field @"numMaxEvents"-numMaxInvoices ::- forall f s a.- (Prelude.Functor f,- Data.ProtoLens.Field.HasField s "numMaxInvoices" a) =>- Lens.Family2.LensLike' f s a-numMaxInvoices = Data.ProtoLens.Field.field @"numMaxInvoices"-numMsat ::- forall f s a.- (Prelude.Functor f, Data.ProtoLens.Field.HasField s "numMsat" a) =>- Lens.Family2.LensLike' f s a-numMsat = Data.ProtoLens.Field.field @"numMsat"-numNodes ::- forall f s a.- (Prelude.Functor f,- Data.ProtoLens.Field.HasField s "numNodes" a) =>- Lens.Family2.LensLike' f s a-numNodes = Data.ProtoLens.Field.field @"numNodes"-numPeers ::- forall f s a.- (Prelude.Functor f,- Data.ProtoLens.Field.HasField s "numPeers" a) =>- Lens.Family2.LensLike' f s a-numPeers = Data.ProtoLens.Field.field @"numPeers"-numPendingChannels ::- forall f s a.- (Prelude.Functor f,- Data.ProtoLens.Field.HasField s "numPendingChannels" a) =>- Lens.Family2.LensLike' f s a-numPendingChannels- = Data.ProtoLens.Field.field @"numPendingChannels"-numSatoshis ::- forall f s a.- (Prelude.Functor f,- Data.ProtoLens.Field.HasField s "numSatoshis" a) =>- Lens.Family2.LensLike' f s a-numSatoshis = Data.ProtoLens.Field.field @"numSatoshis"-numUpdates ::- forall f s a.- (Prelude.Functor f,- Data.ProtoLens.Field.HasField s "numUpdates" a) =>- Lens.Family2.LensLike' f s a-numUpdates = Data.ProtoLens.Field.field @"numUpdates"-numZombieChans ::- forall f s a.- (Prelude.Functor f,- Data.ProtoLens.Field.HasField s "numZombieChans" a) =>- Lens.Family2.LensLike' f s a-numZombieChans = Data.ProtoLens.Field.field @"numZombieChans"-onionSha256 ::- forall f s a.- (Prelude.Functor f,- Data.ProtoLens.Field.HasField s "onionSha256" a) =>- Lens.Family2.LensLike' f s a-onionSha256 = Data.ProtoLens.Field.field @"onionSha256"-openChannel ::- forall f s a.- (Prelude.Functor f,- Data.ProtoLens.Field.HasField s "openChannel" a) =>- Lens.Family2.LensLike' f s a-openChannel = Data.ProtoLens.Field.field @"openChannel"-openInitiator ::- forall f s a.- (Prelude.Functor f,- Data.ProtoLens.Field.HasField s "openInitiator" a) =>- Lens.Family2.LensLike' f s a-openInitiator = Data.ProtoLens.Field.field @"openInitiator"-ops ::- forall f s a.- (Prelude.Functor f, Data.ProtoLens.Field.HasField s "ops" a) =>- Lens.Family2.LensLike' f s a-ops = Data.ProtoLens.Field.field @"ops"-outcome ::- forall f s a.- (Prelude.Functor f, Data.ProtoLens.Field.HasField s "outcome" a) =>- Lens.Family2.LensLike' f s a-outcome = Data.ProtoLens.Field.field @"outcome"-outgoingChanId ::- forall f s a.- (Prelude.Functor f,- Data.ProtoLens.Field.HasField s "outgoingChanId" a) =>- Lens.Family2.LensLike' f s a-outgoingChanId = Data.ProtoLens.Field.field @"outgoingChanId"-outpoint ::- forall f s a.- (Prelude.Functor f,- Data.ProtoLens.Field.HasField s "outpoint" a) =>- Lens.Family2.LensLike' f s a-outpoint = Data.ProtoLens.Field.field @"outpoint"-outputIndex ::- forall f s a.- (Prelude.Functor f,- Data.ProtoLens.Field.HasField s "outputIndex" a) =>- Lens.Family2.LensLike' f s a-outputIndex = Data.ProtoLens.Field.field @"outputIndex"-payReq ::- forall f s a.- (Prelude.Functor f, Data.ProtoLens.Field.HasField s "payReq" a) =>- Lens.Family2.LensLike' f s a-payReq = Data.ProtoLens.Field.field @"payReq"-paymentAddr ::- forall f s a.- (Prelude.Functor f,- Data.ProtoLens.Field.HasField s "paymentAddr" a) =>- Lens.Family2.LensLike' f s a-paymentAddr = Data.ProtoLens.Field.field @"paymentAddr"-paymentError ::- forall f s a.- (Prelude.Functor f,- Data.ProtoLens.Field.HasField s "paymentError" a) =>- Lens.Family2.LensLike' f s a-paymentError = Data.ProtoLens.Field.field @"paymentError"-paymentHash ::- forall f s a.- (Prelude.Functor f,- Data.ProtoLens.Field.HasField s "paymentHash" a) =>- Lens.Family2.LensLike' f s a-paymentHash = Data.ProtoLens.Field.field @"paymentHash"-paymentHashString ::- forall f s a.- (Prelude.Functor f,- Data.ProtoLens.Field.HasField s "paymentHashString" a) =>- Lens.Family2.LensLike' f s a-paymentHashString = Data.ProtoLens.Field.field @"paymentHashString"-paymentIndex ::- forall f s a.- (Prelude.Functor f,- Data.ProtoLens.Field.HasField s "paymentIndex" a) =>- Lens.Family2.LensLike' f s a-paymentIndex = Data.ProtoLens.Field.field @"paymentIndex"-paymentPreimage ::- forall f s a.- (Prelude.Functor f,- Data.ProtoLens.Field.HasField s "paymentPreimage" a) =>- Lens.Family2.LensLike' f s a-paymentPreimage = Data.ProtoLens.Field.field @"paymentPreimage"-paymentRequest ::- forall f s a.- (Prelude.Functor f,- Data.ProtoLens.Field.HasField s "paymentRequest" a) =>- Lens.Family2.LensLike' f s a-paymentRequest = Data.ProtoLens.Field.field @"paymentRequest"-paymentRoute ::- forall f s a.- (Prelude.Functor f,- Data.ProtoLens.Field.HasField s "paymentRoute" a) =>- Lens.Family2.LensLike' f s a-paymentRoute = Data.ProtoLens.Field.field @"paymentRoute"-payments ::- forall f s a.- (Prelude.Functor f,- Data.ProtoLens.Field.HasField s "payments" a) =>- Lens.Family2.LensLike' f s a-payments = Data.ProtoLens.Field.field @"payments"-peer ::- forall f s a.- (Prelude.Functor f, Data.ProtoLens.Field.HasField s "peer" a) =>- Lens.Family2.LensLike' f s a-peer = Data.ProtoLens.Field.field @"peer"-peers ::- forall f s a.- (Prelude.Functor f, Data.ProtoLens.Field.HasField s "peers" a) =>- Lens.Family2.LensLike' f s a-peers = Data.ProtoLens.Field.field @"peers"-pendingChanId ::- forall f s a.- (Prelude.Functor f,- Data.ProtoLens.Field.HasField s "pendingChanId" a) =>- Lens.Family2.LensLike' f s a-pendingChanId = Data.ProtoLens.Field.field @"pendingChanId"-pendingClosingChannels ::- forall f s a.- (Prelude.Functor f,- Data.ProtoLens.Field.HasField s "pendingClosingChannels" a) =>- Lens.Family2.LensLike' f s a-pendingClosingChannels- = Data.ProtoLens.Field.field @"pendingClosingChannels"-pendingForceClosingChannels ::- forall f s a.- (Prelude.Functor f,- Data.ProtoLens.Field.HasField s "pendingForceClosingChannels" a) =>- Lens.Family2.LensLike' f s a-pendingForceClosingChannels- = Data.ProtoLens.Field.field @"pendingForceClosingChannels"-pendingFundingShimOnly ::- forall f s a.- (Prelude.Functor f,- Data.ProtoLens.Field.HasField s "pendingFundingShimOnly" a) =>- Lens.Family2.LensLike' f s a-pendingFundingShimOnly- = Data.ProtoLens.Field.field @"pendingFundingShimOnly"-pendingHtlcs ::- forall f s a.- (Prelude.Functor f,- Data.ProtoLens.Field.HasField s "pendingHtlcs" a) =>- Lens.Family2.LensLike' f s a-pendingHtlcs = Data.ProtoLens.Field.field @"pendingHtlcs"-pendingOnly ::- forall f s a.- (Prelude.Functor f,- Data.ProtoLens.Field.HasField s "pendingOnly" a) =>- Lens.Family2.LensLike' f s a-pendingOnly = Data.ProtoLens.Field.field @"pendingOnly"-pendingOpenBalance ::- forall f s a.- (Prelude.Functor f,- Data.ProtoLens.Field.HasField s "pendingOpenBalance" a) =>- Lens.Family2.LensLike' f s a-pendingOpenBalance- = Data.ProtoLens.Field.field @"pendingOpenBalance"-pendingOpenChannel ::- forall f s a.- (Prelude.Functor f,- Data.ProtoLens.Field.HasField s "pendingOpenChannel" a) =>- Lens.Family2.LensLike' f s a-pendingOpenChannel- = Data.ProtoLens.Field.field @"pendingOpenChannel"-pendingOpenChannels ::- forall f s a.- (Prelude.Functor f,- Data.ProtoLens.Field.HasField s "pendingOpenChannels" a) =>- Lens.Family2.LensLike' f s a-pendingOpenChannels- = Data.ProtoLens.Field.field @"pendingOpenChannels"-pendingOpenLocalBalance ::- forall f s a.- (Prelude.Functor f,- Data.ProtoLens.Field.HasField s "pendingOpenLocalBalance" a) =>- Lens.Family2.LensLike' f s a-pendingOpenLocalBalance- = Data.ProtoLens.Field.field @"pendingOpenLocalBalance"-pendingOpenRemoteBalance ::- forall f s a.- (Prelude.Functor f,- Data.ProtoLens.Field.HasField s "pendingOpenRemoteBalance" a) =>- Lens.Family2.LensLike' f s a-pendingOpenRemoteBalance- = Data.ProtoLens.Field.field @"pendingOpenRemoteBalance"-percent ::- forall f s a.- (Prelude.Functor f, Data.ProtoLens.Field.HasField s "percent" a) =>- Lens.Family2.LensLike' f s a-percent = Data.ProtoLens.Field.field @"percent"-perm ::- forall f s a.- (Prelude.Functor f, Data.ProtoLens.Field.HasField s "perm" a) =>- Lens.Family2.LensLike' f s a-perm = Data.ProtoLens.Field.field @"perm"-permissions ::- forall f s a.- (Prelude.Functor f,- Data.ProtoLens.Field.HasField s "permissions" a) =>- Lens.Family2.LensLike' f s a-permissions = Data.ProtoLens.Field.field @"permissions"-pingTime ::- forall f s a.- (Prelude.Functor f,- Data.ProtoLens.Field.HasField s "pingTime" a) =>- Lens.Family2.LensLike' f s a-pingTime = Data.ProtoLens.Field.field @"pingTime"-pkScript ::- forall f s a.- (Prelude.Functor f,- Data.ProtoLens.Field.HasField s "pkScript" a) =>- Lens.Family2.LensLike' f s a-pkScript = Data.ProtoLens.Field.field @"pkScript"-preimage ::- forall f s a.- (Prelude.Functor f,- Data.ProtoLens.Field.HasField s "preimage" a) =>- Lens.Family2.LensLike' f s a-preimage = Data.ProtoLens.Field.field @"preimage"-private ::- forall f s a.- (Prelude.Functor f, Data.ProtoLens.Field.HasField s "private" a) =>- Lens.Family2.LensLike' f s a-private = Data.ProtoLens.Field.field @"private"-privateOnly ::- forall f s a.- (Prelude.Functor f,- Data.ProtoLens.Field.HasField s "privateOnly" a) =>- Lens.Family2.LensLike' f s a-privateOnly = Data.ProtoLens.Field.field @"privateOnly"-progress ::- forall f s a.- (Prelude.Functor f,- Data.ProtoLens.Field.HasField s "progress" a) =>- Lens.Family2.LensLike' f s a-progress = Data.ProtoLens.Field.field @"progress"-psbt ::- forall f s a.- (Prelude.Functor f, Data.ProtoLens.Field.HasField s "psbt" a) =>- Lens.Family2.LensLike' f s a-psbt = Data.ProtoLens.Field.field @"psbt"-psbtFinalize ::- forall f s a.- (Prelude.Functor f,- Data.ProtoLens.Field.HasField s "psbtFinalize" a) =>- Lens.Family2.LensLike' f s a-psbtFinalize = Data.ProtoLens.Field.field @"psbtFinalize"-psbtFund ::- forall f s a.- (Prelude.Functor f,- Data.ProtoLens.Field.HasField s "psbtFund" a) =>- Lens.Family2.LensLike' f s a-psbtFund = Data.ProtoLens.Field.field @"psbtFund"-psbtShim ::- forall f s a.- (Prelude.Functor f,- Data.ProtoLens.Field.HasField s "psbtShim" a) =>- Lens.Family2.LensLike' f s a-psbtShim = Data.ProtoLens.Field.field @"psbtShim"-psbtVerify ::- forall f s a.- (Prelude.Functor f,- Data.ProtoLens.Field.HasField s "psbtVerify" a) =>- Lens.Family2.LensLike' f s a-psbtVerify = Data.ProtoLens.Field.field @"psbtVerify"-pubKey ::- forall f s a.- (Prelude.Functor f, Data.ProtoLens.Field.HasField s "pubKey" a) =>- Lens.Family2.LensLike' f s a-pubKey = Data.ProtoLens.Field.field @"pubKey"-pubkey ::- forall f s a.- (Prelude.Functor f, Data.ProtoLens.Field.HasField s "pubkey" a) =>- Lens.Family2.LensLike' f s a-pubkey = Data.ProtoLens.Field.field @"pubkey"-publicOnly ::- forall f s a.- (Prelude.Functor f,- Data.ProtoLens.Field.HasField s "publicOnly" a) =>- Lens.Family2.LensLike' f s a-publicOnly = Data.ProtoLens.Field.field @"publicOnly"-pushAmountSat ::- forall f s a.- (Prelude.Functor f,- Data.ProtoLens.Field.HasField s "pushAmountSat" a) =>- Lens.Family2.LensLike' f s a-pushAmountSat = Data.ProtoLens.Field.field @"pushAmountSat"-pushAmt ::- forall f s a.- (Prelude.Functor f, Data.ProtoLens.Field.HasField s "pushAmt" a) =>- Lens.Family2.LensLike' f s a-pushAmt = Data.ProtoLens.Field.field @"pushAmt"-pushSat ::- forall f s a.- (Prelude.Functor f, Data.ProtoLens.Field.HasField s "pushSat" a) =>- Lens.Family2.LensLike' f s a-pushSat = Data.ProtoLens.Field.field @"pushSat"-rHash ::- forall f s a.- (Prelude.Functor f, Data.ProtoLens.Field.HasField s "rHash" a) =>- Lens.Family2.LensLike' f s a-rHash = Data.ProtoLens.Field.field @"rHash"-rHashStr ::- forall f s a.- (Prelude.Functor f,- Data.ProtoLens.Field.HasField s "rHashStr" a) =>- Lens.Family2.LensLike' f s a-rHashStr = Data.ProtoLens.Field.field @"rHashStr"-rPreimage ::- forall f s a.- (Prelude.Functor f,- Data.ProtoLens.Field.HasField s "rPreimage" a) =>- Lens.Family2.LensLike' f s a-rPreimage = Data.ProtoLens.Field.field @"rPreimage"-rawKeyBytes ::- forall f s a.- (Prelude.Functor f,- Data.ProtoLens.Field.HasField s "rawKeyBytes" a) =>- Lens.Family2.LensLike' f s a-rawKeyBytes = Data.ProtoLens.Field.field @"rawKeyBytes"-rawTxHex ::- forall f s a.- (Prelude.Functor f,- Data.ProtoLens.Field.HasField s "rawTxHex" a) =>- Lens.Family2.LensLike' f s a-rawTxHex = Data.ProtoLens.Field.field @"rawTxHex"-recoveredBalance ::- forall f s a.- (Prelude.Functor f,- Data.ProtoLens.Field.HasField s "recoveredBalance" a) =>- Lens.Family2.LensLike' f s a-recoveredBalance = Data.ProtoLens.Field.field @"recoveredBalance"-recoveryFinished ::- forall f s a.- (Prelude.Functor f,- Data.ProtoLens.Field.HasField s "recoveryFinished" a) =>- Lens.Family2.LensLike' f s a-recoveryFinished = Data.ProtoLens.Field.field @"recoveryFinished"-recoveryMode ::- forall f s a.- (Prelude.Functor f,- Data.ProtoLens.Field.HasField s "recoveryMode" a) =>- Lens.Family2.LensLike' f s a-recoveryMode = Data.ProtoLens.Field.field @"recoveryMode"-remoteBalance ::- forall f s a.- (Prelude.Functor f,- Data.ProtoLens.Field.HasField s "remoteBalance" a) =>- Lens.Family2.LensLike' f s a-remoteBalance = Data.ProtoLens.Field.field @"remoteBalance"-remoteChanReserveSat ::- forall f s a.- (Prelude.Functor f,- Data.ProtoLens.Field.HasField s "remoteChanReserveSat" a) =>- Lens.Family2.LensLike' f s a-remoteChanReserveSat- = Data.ProtoLens.Field.field @"remoteChanReserveSat"-remoteCommitFeeSat ::- forall f s a.- (Prelude.Functor f,- Data.ProtoLens.Field.HasField s "remoteCommitFeeSat" a) =>- Lens.Family2.LensLike' f s a-remoteCommitFeeSat- = Data.ProtoLens.Field.field @"remoteCommitFeeSat"-remoteConstraints ::- forall f s a.- (Prelude.Functor f,- Data.ProtoLens.Field.HasField s "remoteConstraints" a) =>- Lens.Family2.LensLike' f s a-remoteConstraints = Data.ProtoLens.Field.field @"remoteConstraints"-remoteCsvDelay ::- forall f s a.- (Prelude.Functor f,- Data.ProtoLens.Field.HasField s "remoteCsvDelay" a) =>- Lens.Family2.LensLike' f s a-remoteCsvDelay = Data.ProtoLens.Field.field @"remoteCsvDelay"-remoteForce ::- forall f s a.- (Prelude.Functor f,- Data.ProtoLens.Field.HasField s "remoteForce" a) =>- Lens.Family2.LensLike' f s a-remoteForce = Data.ProtoLens.Field.field @"remoteForce"-remoteKey ::- forall f s a.- (Prelude.Functor f,- Data.ProtoLens.Field.HasField s "remoteKey" a) =>- Lens.Family2.LensLike' f s a-remoteKey = Data.ProtoLens.Field.field @"remoteKey"-remoteMaxHtlcs ::- forall f s a.- (Prelude.Functor f,- Data.ProtoLens.Field.HasField s "remoteMaxHtlcs" a) =>- Lens.Family2.LensLike' f s a-remoteMaxHtlcs = Data.ProtoLens.Field.field @"remoteMaxHtlcs"-remoteMaxValueInFlightMsat ::- forall f s a.- (Prelude.Functor f,- Data.ProtoLens.Field.HasField s "remoteMaxValueInFlightMsat" a) =>- Lens.Family2.LensLike' f s a-remoteMaxValueInFlightMsat- = Data.ProtoLens.Field.field @"remoteMaxValueInFlightMsat"-remoteNodePub ::- forall f s a.- (Prelude.Functor f,- Data.ProtoLens.Field.HasField s "remoteNodePub" a) =>- Lens.Family2.LensLike' f s a-remoteNodePub = Data.ProtoLens.Field.field @"remoteNodePub"-remotePendingCommitFeeSat ::- forall f s a.- (Prelude.Functor f,- Data.ProtoLens.Field.HasField s "remotePendingCommitFeeSat" a) =>- Lens.Family2.LensLike' f s a-remotePendingCommitFeeSat- = Data.ProtoLens.Field.field @"remotePendingCommitFeeSat"-remotePendingTxid ::- forall f s a.- (Prelude.Functor f,- Data.ProtoLens.Field.HasField s "remotePendingTxid" a) =>- Lens.Family2.LensLike' f s a-remotePendingTxid = Data.ProtoLens.Field.field @"remotePendingTxid"-remotePubkey ::- forall f s a.- (Prelude.Functor f,- Data.ProtoLens.Field.HasField s "remotePubkey" a) =>- Lens.Family2.LensLike' f s a-remotePubkey = Data.ProtoLens.Field.field @"remotePubkey"-remoteTxid ::- forall f s a.- (Prelude.Functor f,- Data.ProtoLens.Field.HasField s "remoteTxid" a) =>- Lens.Family2.LensLike' f s a-remoteTxid = Data.ProtoLens.Field.field @"remoteTxid"-reserveSat ::- forall f s a.- (Prelude.Functor f,- Data.ProtoLens.Field.HasField s "reserveSat" a) =>- Lens.Family2.LensLike' f s a-reserveSat = Data.ProtoLens.Field.field @"reserveSat"-resolutionType ::- forall f s a.- (Prelude.Functor f,- Data.ProtoLens.Field.HasField s "resolutionType" a) =>- Lens.Family2.LensLike' f s a-resolutionType = Data.ProtoLens.Field.field @"resolutionType"-resolutions ::- forall f s a.- (Prelude.Functor f,- Data.ProtoLens.Field.HasField s "resolutions" a) =>- Lens.Family2.LensLike' f s a-resolutions = Data.ProtoLens.Field.field @"resolutions"-resolveTime ::- forall f s a.- (Prelude.Functor f,- Data.ProtoLens.Field.HasField s "resolveTime" a) =>- Lens.Family2.LensLike' f s a-resolveTime = Data.ProtoLens.Field.field @"resolveTime"-resolveTimeNs ::- forall f s a.- (Prelude.Functor f,- Data.ProtoLens.Field.HasField s "resolveTimeNs" a) =>- Lens.Family2.LensLike' f s a-resolveTimeNs = Data.ProtoLens.Field.field @"resolveTimeNs"-reversed ::- forall f s a.- (Prelude.Functor f,- Data.ProtoLens.Field.HasField s "reversed" a) =>- Lens.Family2.LensLike' f s a-reversed = Data.ProtoLens.Field.field @"reversed"-rootKeyId ::- forall f s a.- (Prelude.Functor f,- Data.ProtoLens.Field.HasField s "rootKeyId" a) =>- Lens.Family2.LensLike' f s a-rootKeyId = Data.ProtoLens.Field.field @"rootKeyId"-rootKeyIds ::- forall f s a.- (Prelude.Functor f,- Data.ProtoLens.Field.HasField s "rootKeyIds" a) =>- Lens.Family2.LensLike' f s a-rootKeyIds = Data.ProtoLens.Field.field @"rootKeyIds"-rootShare ::- forall f s a.- (Prelude.Functor f,- Data.ProtoLens.Field.HasField s "rootShare" a) =>- Lens.Family2.LensLike' f s a-rootShare = Data.ProtoLens.Field.field @"rootShare"-route ::- forall f s a.- (Prelude.Functor f, Data.ProtoLens.Field.HasField s "route" a) =>- Lens.Family2.LensLike' f s a-route = Data.ProtoLens.Field.field @"route"-routeHints ::- forall f s a.- (Prelude.Functor f,- Data.ProtoLens.Field.HasField s "routeHints" a) =>- Lens.Family2.LensLike' f s a-routeHints = Data.ProtoLens.Field.field @"routeHints"-routes ::- forall f s a.- (Prelude.Functor f, Data.ProtoLens.Field.HasField s "routes" a) =>- Lens.Family2.LensLike' f s a-routes = Data.ProtoLens.Field.field @"routes"-routingPolicy ::- forall f s a.- (Prelude.Functor f,- Data.ProtoLens.Field.HasField s "routingPolicy" a) =>- Lens.Family2.LensLike' f s a-routingPolicy = Data.ProtoLens.Field.field @"routingPolicy"-sat ::- forall f s a.- (Prelude.Functor f, Data.ProtoLens.Field.HasField s "sat" a) =>- Lens.Family2.LensLike' f s a-sat = Data.ProtoLens.Field.field @"sat"-satPerByte ::- forall f s a.- (Prelude.Functor f,- Data.ProtoLens.Field.HasField s "satPerByte" a) =>- Lens.Family2.LensLike' f s a-satPerByte = Data.ProtoLens.Field.field @"satPerByte"-satPerVbyte ::- forall f s a.- (Prelude.Functor f,- Data.ProtoLens.Field.HasField s "satPerVbyte" a) =>- Lens.Family2.LensLike' f s a-satPerVbyte = Data.ProtoLens.Field.field @"satPerVbyte"-satRecv ::- forall f s a.- (Prelude.Functor f, Data.ProtoLens.Field.HasField s "satRecv" a) =>- Lens.Family2.LensLike' f s a-satRecv = Data.ProtoLens.Field.field @"satRecv"-satSent ::- forall f s a.- (Prelude.Functor f, Data.ProtoLens.Field.HasField s "satSent" a) =>- Lens.Family2.LensLike' f s a-satSent = Data.ProtoLens.Field.field @"satSent"-sendAll ::- forall f s a.- (Prelude.Functor f, Data.ProtoLens.Field.HasField s "sendAll" a) =>- Lens.Family2.LensLike' f s a-sendAll = Data.ProtoLens.Field.field @"sendAll"-setId ::- forall f s a.- (Prelude.Functor f, Data.ProtoLens.Field.HasField s "setId" a) =>- Lens.Family2.LensLike' f s a-setId = Data.ProtoLens.Field.field @"setId"-settleDate ::- forall f s a.- (Prelude.Functor f,- Data.ProtoLens.Field.HasField s "settleDate" a) =>- Lens.Family2.LensLike' f s a-settleDate = Data.ProtoLens.Field.field @"settleDate"-settleIndex ::- forall f s a.- (Prelude.Functor f,- Data.ProtoLens.Field.HasField s "settleIndex" a) =>- Lens.Family2.LensLike' f s a-settleIndex = Data.ProtoLens.Field.field @"settleIndex"-settled ::- forall f s a.- (Prelude.Functor f, Data.ProtoLens.Field.HasField s "settled" a) =>- Lens.Family2.LensLike' f s a-settled = Data.ProtoLens.Field.field @"settled"-settledBalance ::- forall f s a.- (Prelude.Functor f,- Data.ProtoLens.Field.HasField s "settledBalance" a) =>- Lens.Family2.LensLike' f s a-settledBalance = Data.ProtoLens.Field.field @"settledBalance"-shimCancel ::- forall f s a.- (Prelude.Functor f,- Data.ProtoLens.Field.HasField s "shimCancel" a) =>- Lens.Family2.LensLike' f s a-shimCancel = Data.ProtoLens.Field.field @"shimCancel"-shimRegister ::- forall f s a.- (Prelude.Functor f,- Data.ProtoLens.Field.HasField s "shimRegister" a) =>- Lens.Family2.LensLike' f s a-shimRegister = Data.ProtoLens.Field.field @"shimRegister"-show ::- forall f s a.- (Prelude.Functor f, Data.ProtoLens.Field.HasField s "show" a) =>- Lens.Family2.LensLike' f s a-show = Data.ProtoLens.Field.field @"show"-signature ::- forall f s a.- (Prelude.Functor f,- Data.ProtoLens.Field.HasField s "signature" a) =>- Lens.Family2.LensLike' f s a-signature = Data.ProtoLens.Field.field @"signature"-signedPsbt ::- forall f s a.- (Prelude.Functor f,- Data.ProtoLens.Field.HasField s "signedPsbt" a) =>- Lens.Family2.LensLike' f s a-signedPsbt = Data.ProtoLens.Field.field @"signedPsbt"-singleChanBackups ::- forall f s a.- (Prelude.Functor f,- Data.ProtoLens.Field.HasField s "singleChanBackups" a) =>- Lens.Family2.LensLike' f s a-singleChanBackups = Data.ProtoLens.Field.field @"singleChanBackups"-sourcePubKey ::- forall f s a.- (Prelude.Functor f,- Data.ProtoLens.Field.HasField s "sourcePubKey" a) =>- Lens.Family2.LensLike' f s a-sourcePubKey = Data.ProtoLens.Field.field @"sourcePubKey"-spendUnconfirmed ::- forall f s a.- (Prelude.Functor f,- Data.ProtoLens.Field.HasField s "spendUnconfirmed" a) =>- Lens.Family2.LensLike' f s a-spendUnconfirmed = Data.ProtoLens.Field.field @"spendUnconfirmed"-stage ::- forall f s a.- (Prelude.Functor f, Data.ProtoLens.Field.HasField s "stage" a) =>- Lens.Family2.LensLike' f s a-stage = Data.ProtoLens.Field.field @"stage"-startHeight ::- forall f s a.- (Prelude.Functor f,- Data.ProtoLens.Field.HasField s "startHeight" a) =>- Lens.Family2.LensLike' f s a-startHeight = Data.ProtoLens.Field.field @"startHeight"-startTime ::- forall f s a.- (Prelude.Functor f,- Data.ProtoLens.Field.HasField s "startTime" a) =>- Lens.Family2.LensLike' f s a-startTime = Data.ProtoLens.Field.field @"startTime"-state ::- forall f s a.- (Prelude.Functor f, Data.ProtoLens.Field.HasField s "state" a) =>- Lens.Family2.LensLike' f s a-state = Data.ProtoLens.Field.field @"state"-staticRemoteKey ::- forall f s a.- (Prelude.Functor f,- Data.ProtoLens.Field.HasField s "staticRemoteKey" a) =>- Lens.Family2.LensLike' f s a-staticRemoteKey = Data.ProtoLens.Field.field @"staticRemoteKey"-status ::- forall f s a.- (Prelude.Functor f, Data.ProtoLens.Field.HasField s "status" a) =>- Lens.Family2.LensLike' f s a-status = Data.ProtoLens.Field.field @"status"-storageId ::- forall f s a.- (Prelude.Functor f,- Data.ProtoLens.Field.HasField s "storageId" a) =>- Lens.Family2.LensLike' f s a-storageId = Data.ProtoLens.Field.field @"storageId"-subSystems ::- forall f s a.- (Prelude.Functor f,- Data.ProtoLens.Field.HasField s "subSystems" a) =>- Lens.Family2.LensLike' f s a-subSystems = Data.ProtoLens.Field.field @"subSystems"-success ::- forall f s a.- (Prelude.Functor f, Data.ProtoLens.Field.HasField s "success" a) =>- Lens.Family2.LensLike' f s a-success = Data.ProtoLens.Field.field @"success"-successProb ::- forall f s a.- (Prelude.Functor f,- Data.ProtoLens.Field.HasField s "successProb" a) =>- Lens.Family2.LensLike' f s a-successProb = Data.ProtoLens.Field.field @"successProb"-sweepTxid ::- forall f s a.- (Prelude.Functor f,- Data.ProtoLens.Field.HasField s "sweepTxid" a) =>- Lens.Family2.LensLike' f s a-sweepTxid = Data.ProtoLens.Field.field @"sweepTxid"-syncType ::- forall f s a.- (Prelude.Functor f,- Data.ProtoLens.Field.HasField s "syncType" a) =>- Lens.Family2.LensLike' f s a-syncType = Data.ProtoLens.Field.field @"syncType"-syncedToChain ::- forall f s a.- (Prelude.Functor f,- Data.ProtoLens.Field.HasField s "syncedToChain" a) =>- Lens.Family2.LensLike' f s a-syncedToChain = Data.ProtoLens.Field.field @"syncedToChain"-syncedToGraph ::- forall f s a.- (Prelude.Functor f,- Data.ProtoLens.Field.HasField s "syncedToGraph" a) =>- Lens.Family2.LensLike' f s a-syncedToGraph = Data.ProtoLens.Field.field @"syncedToGraph"-targetConf ::- forall f s a.- (Prelude.Functor f,- Data.ProtoLens.Field.HasField s "targetConf" a) =>- Lens.Family2.LensLike' f s a-targetConf = Data.ProtoLens.Field.field @"targetConf"-testnet ::- forall f s a.- (Prelude.Functor f, Data.ProtoLens.Field.HasField s "testnet" a) =>- Lens.Family2.LensLike' f s a-testnet = Data.ProtoLens.Field.field @"testnet"-thawHeight ::- forall f s a.- (Prelude.Functor f,- Data.ProtoLens.Field.HasField s "thawHeight" a) =>- Lens.Family2.LensLike' f s a-thawHeight = Data.ProtoLens.Field.field @"thawHeight"-timeLockDelta ::- forall f s a.- (Prelude.Functor f,- Data.ProtoLens.Field.HasField s "timeLockDelta" a) =>- Lens.Family2.LensLike' f s a-timeLockDelta = Data.ProtoLens.Field.field @"timeLockDelta"-timeLockedBalance ::- forall f s a.- (Prelude.Functor f,- Data.ProtoLens.Field.HasField s "timeLockedBalance" a) =>- Lens.Family2.LensLike' f s a-timeLockedBalance = Data.ProtoLens.Field.field @"timeLockedBalance"-timeStamp ::- forall f s a.- (Prelude.Functor f,- Data.ProtoLens.Field.HasField s "timeStamp" a) =>- Lens.Family2.LensLike' f s a-timeStamp = Data.ProtoLens.Field.field @"timeStamp"-timeout ::- forall f s a.- (Prelude.Functor f, Data.ProtoLens.Field.HasField s "timeout" a) =>- Lens.Family2.LensLike' f s a-timeout = Data.ProtoLens.Field.field @"timeout"-timestamp ::- forall f s a.- (Prelude.Functor f,- Data.ProtoLens.Field.HasField s "timestamp" a) =>- Lens.Family2.LensLike' f s a-timestamp = Data.ProtoLens.Field.field @"timestamp"-timestampNs ::- forall f s a.- (Prelude.Functor f,- Data.ProtoLens.Field.HasField s "timestampNs" a) =>- Lens.Family2.LensLike' f s a-timestampNs = Data.ProtoLens.Field.field @"timestampNs"-tlvPayload ::- forall f s a.- (Prelude.Functor f,- Data.ProtoLens.Field.HasField s "tlvPayload" a) =>- Lens.Family2.LensLike' f s a-tlvPayload = Data.ProtoLens.Field.field @"tlvPayload"-to ::- forall f s a.- (Prelude.Functor f, Data.ProtoLens.Field.HasField s "to" a) =>- Lens.Family2.LensLike' f s a-to = Data.ProtoLens.Field.field @"to"-totalAmt ::- forall f s a.- (Prelude.Functor f,- Data.ProtoLens.Field.HasField s "totalAmt" a) =>- Lens.Family2.LensLike' f s a-totalAmt = Data.ProtoLens.Field.field @"totalAmt"-totalAmtMsat ::- forall f s a.- (Prelude.Functor f,- Data.ProtoLens.Field.HasField s "totalAmtMsat" a) =>- Lens.Family2.LensLike' f s a-totalAmtMsat = Data.ProtoLens.Field.field @"totalAmtMsat"-totalBalance ::- forall f s a.- (Prelude.Functor f,- Data.ProtoLens.Field.HasField s "totalBalance" a) =>- Lens.Family2.LensLike' f s a-totalBalance = Data.ProtoLens.Field.field @"totalBalance"-totalCapacity ::- forall f s a.- (Prelude.Functor f,- Data.ProtoLens.Field.HasField s "totalCapacity" a) =>- Lens.Family2.LensLike' f s a-totalCapacity = Data.ProtoLens.Field.field @"totalCapacity"-totalFees ::- forall f s a.- (Prelude.Functor f,- Data.ProtoLens.Field.HasField s "totalFees" a) =>- Lens.Family2.LensLike' f s a-totalFees = Data.ProtoLens.Field.field @"totalFees"-totalFeesMsat ::- forall f s a.- (Prelude.Functor f,- Data.ProtoLens.Field.HasField s "totalFeesMsat" a) =>- Lens.Family2.LensLike' f s a-totalFeesMsat = Data.ProtoLens.Field.field @"totalFeesMsat"-totalLimboBalance ::- forall f s a.- (Prelude.Functor f,- Data.ProtoLens.Field.HasField s "totalLimboBalance" a) =>- Lens.Family2.LensLike' f s a-totalLimboBalance = Data.ProtoLens.Field.field @"totalLimboBalance"-totalNetworkCapacity ::- forall f s a.- (Prelude.Functor f,- Data.ProtoLens.Field.HasField s "totalNetworkCapacity" a) =>- Lens.Family2.LensLike' f s a-totalNetworkCapacity- = Data.ProtoLens.Field.field @"totalNetworkCapacity"-totalSatoshisReceived ::- forall f s a.- (Prelude.Functor f,- Data.ProtoLens.Field.HasField s "totalSatoshisReceived" a) =>- Lens.Family2.LensLike' f s a-totalSatoshisReceived- = Data.ProtoLens.Field.field @"totalSatoshisReceived"-totalSatoshisSent ::- forall f s a.- (Prelude.Functor f,- Data.ProtoLens.Field.HasField s "totalSatoshisSent" a) =>- Lens.Family2.LensLike' f s a-totalSatoshisSent = Data.ProtoLens.Field.field @"totalSatoshisSent"-totalTimeLock ::- forall f s a.- (Prelude.Functor f,- Data.ProtoLens.Field.HasField s "totalTimeLock" a) =>- Lens.Family2.LensLike' f s a-totalTimeLock = Data.ProtoLens.Field.field @"totalTimeLock"-transactions ::- forall f s a.- (Prelude.Functor f,- Data.ProtoLens.Field.HasField s "transactions" a) =>- Lens.Family2.LensLike' f s a-transactions = Data.ProtoLens.Field.field @"transactions"-txHash ::- forall f s a.- (Prelude.Functor f, Data.ProtoLens.Field.HasField s "txHash" a) =>- Lens.Family2.LensLike' f s a-txHash = Data.ProtoLens.Field.field @"txHash"-txid ::- forall f s a.- (Prelude.Functor f, Data.ProtoLens.Field.HasField s "txid" a) =>- Lens.Family2.LensLike' f s a-txid = Data.ProtoLens.Field.field @"txid"-txidBytes ::- forall f s a.- (Prelude.Functor f,- Data.ProtoLens.Field.HasField s "txidBytes" a) =>- Lens.Family2.LensLike' f s a-txidBytes = Data.ProtoLens.Field.field @"txidBytes"-txidStr ::- forall f s a.- (Prelude.Functor f, Data.ProtoLens.Field.HasField s "txidStr" a) =>- Lens.Family2.LensLike' f s a-txidStr = Data.ProtoLens.Field.field @"txidStr"-type' ::- forall f s a.- (Prelude.Functor f, Data.ProtoLens.Field.HasField s "type'" a) =>- Lens.Family2.LensLike' f s a-type' = Data.ProtoLens.Field.field @"type'"-types ::- forall f s a.- (Prelude.Functor f, Data.ProtoLens.Field.HasField s "types" a) =>- Lens.Family2.LensLike' f s a-types = Data.ProtoLens.Field.field @"types"-unconfirmedBalance ::- forall f s a.- (Prelude.Functor f,- Data.ProtoLens.Field.HasField s "unconfirmedBalance" a) =>- Lens.Family2.LensLike' f s a-unconfirmedBalance- = Data.ProtoLens.Field.field @"unconfirmedBalance"-unsettledBalance ::- forall f s a.- (Prelude.Functor f,- Data.ProtoLens.Field.HasField s "unsettledBalance" a) =>- Lens.Family2.LensLike' f s a-unsettledBalance = Data.ProtoLens.Field.field @"unsettledBalance"-unsettledLocalBalance ::- forall f s a.- (Prelude.Functor f,- Data.ProtoLens.Field.HasField s "unsettledLocalBalance" a) =>- Lens.Family2.LensLike' f s a-unsettledLocalBalance- = Data.ProtoLens.Field.field @"unsettledLocalBalance"-unsettledRemoteBalance ::- forall f s a.- (Prelude.Functor f,- Data.ProtoLens.Field.HasField s "unsettledRemoteBalance" a) =>- Lens.Family2.LensLike' f s a-unsettledRemoteBalance- = Data.ProtoLens.Field.field @"unsettledRemoteBalance"-upfrontShutdown ::- forall f s a.- (Prelude.Functor f,- Data.ProtoLens.Field.HasField s "upfrontShutdown" a) =>- Lens.Family2.LensLike' f s a-upfrontShutdown = Data.ProtoLens.Field.field @"upfrontShutdown"-uptime ::- forall f s a.- (Prelude.Functor f, Data.ProtoLens.Field.HasField s "uptime" a) =>- Lens.Family2.LensLike' f s a-uptime = Data.ProtoLens.Field.field @"uptime"-uris ::- forall f s a.- (Prelude.Functor f, Data.ProtoLens.Field.HasField s "uris" a) =>- Lens.Family2.LensLike' f s a-uris = Data.ProtoLens.Field.field @"uris"-useMissionControl ::- forall f s a.- (Prelude.Functor f,- Data.ProtoLens.Field.HasField s "useMissionControl" a) =>- Lens.Family2.LensLike' f s a-useMissionControl = Data.ProtoLens.Field.field @"useMissionControl"-utxos ::- forall f s a.- (Prelude.Functor f, Data.ProtoLens.Field.HasField s "utxos" a) =>- Lens.Family2.LensLike' f s a-utxos = Data.ProtoLens.Field.field @"utxos"-valid ::- forall f s a.- (Prelude.Functor f, Data.ProtoLens.Field.HasField s "valid" a) =>- Lens.Family2.LensLike' f s a-valid = Data.ProtoLens.Field.field @"valid"-value ::- forall f s a.- (Prelude.Functor f, Data.ProtoLens.Field.HasField s "value" a) =>- Lens.Family2.LensLike' f s a-value = Data.ProtoLens.Field.field @"value"-valueMsat ::- forall f s a.- (Prelude.Functor f,- Data.ProtoLens.Field.HasField s "valueMsat" a) =>- Lens.Family2.LensLike' f s a-valueMsat = Data.ProtoLens.Field.field @"valueMsat"-valueSat ::- forall f s a.- (Prelude.Functor f,- Data.ProtoLens.Field.HasField s "valueSat" a) =>- Lens.Family2.LensLike' f s a-valueSat = Data.ProtoLens.Field.field @"valueSat"-vec'actions ::- forall f s a.- (Prelude.Functor f,- Data.ProtoLens.Field.HasField s "vec'actions" a) =>- Lens.Family2.LensLike' f s a-vec'actions = Data.ProtoLens.Field.field @"vec'actions"-vec'addresses ::- forall f s a.- (Prelude.Functor f,- Data.ProtoLens.Field.HasField s "vec'addresses" a) =>- Lens.Family2.LensLike' f s a-vec'addresses = Data.ProtoLens.Field.field @"vec'addresses"-vec'chains ::- forall f s a.- (Prelude.Functor f,- Data.ProtoLens.Field.HasField s "vec'chains" a) =>- Lens.Family2.LensLike' f s a-vec'chains = Data.ProtoLens.Field.field @"vec'chains"-vec'chanBackups ::- forall f s a.- (Prelude.Functor f,- Data.ProtoLens.Field.HasField s "vec'chanBackups" a) =>- Lens.Family2.LensLike' f s a-vec'chanBackups = Data.ProtoLens.Field.field @"vec'chanBackups"-vec'chanPoints ::- forall f s a.- (Prelude.Functor f,- Data.ProtoLens.Field.HasField s "vec'chanPoints" a) =>- Lens.Family2.LensLike' f s a-vec'chanPoints = Data.ProtoLens.Field.field @"vec'chanPoints"-vec'channelFees ::- forall f s a.- (Prelude.Functor f,- Data.ProtoLens.Field.HasField s "vec'channelFees" a) =>- Lens.Family2.LensLike' f s a-vec'channelFees = Data.ProtoLens.Field.field @"vec'channelFees"-vec'channelUpdates ::- forall f s a.- (Prelude.Functor f,- Data.ProtoLens.Field.HasField s "vec'channelUpdates" a) =>- Lens.Family2.LensLike' f s a-vec'channelUpdates- = Data.ProtoLens.Field.field @"vec'channelUpdates"-vec'channels ::- forall f s a.- (Prelude.Functor f,- Data.ProtoLens.Field.HasField s "vec'channels" a) =>- Lens.Family2.LensLike' f s a-vec'channels = Data.ProtoLens.Field.field @"vec'channels"-vec'closedChans ::- forall f s a.- (Prelude.Functor f,- Data.ProtoLens.Field.HasField s "vec'closedChans" a) =>- Lens.Family2.LensLike' f s a-vec'closedChans = Data.ProtoLens.Field.field @"vec'closedChans"-vec'destAddresses ::- forall f s a.- (Prelude.Functor f,- Data.ProtoLens.Field.HasField s "vec'destAddresses" a) =>- Lens.Family2.LensLike' f s a-vec'destAddresses = Data.ProtoLens.Field.field @"vec'destAddresses"-vec'destFeatures ::- forall f s a.- (Prelude.Functor f,- Data.ProtoLens.Field.HasField s "vec'destFeatures" a) =>- Lens.Family2.LensLike' f s a-vec'destFeatures = Data.ProtoLens.Field.field @"vec'destFeatures"-vec'edges ::- forall f s a.- (Prelude.Functor f,- Data.ProtoLens.Field.HasField s "vec'edges" a) =>- Lens.Family2.LensLike' f s a-vec'edges = Data.ProtoLens.Field.field @"vec'edges"-vec'errors ::- forall f s a.- (Prelude.Functor f,- Data.ProtoLens.Field.HasField s "vec'errors" a) =>- Lens.Family2.LensLike' f s a-vec'errors = Data.ProtoLens.Field.field @"vec'errors"-vec'forwardingEvents ::- forall f s a.- (Prelude.Functor f,- Data.ProtoLens.Field.HasField s "vec'forwardingEvents" a) =>- Lens.Family2.LensLike' f s a-vec'forwardingEvents- = Data.ProtoLens.Field.field @"vec'forwardingEvents"-vec'hopHints ::- forall f s a.- (Prelude.Functor f,- Data.ProtoLens.Field.HasField s "vec'hopHints" a) =>- Lens.Family2.LensLike' f s a-vec'hopHints = Data.ProtoLens.Field.field @"vec'hopHints"-vec'hops ::- forall f s a.- (Prelude.Functor f,- Data.ProtoLens.Field.HasField s "vec'hops" a) =>- Lens.Family2.LensLike' f s a-vec'hops = Data.ProtoLens.Field.field @"vec'hops"-vec'htlcs ::- forall f s a.- (Prelude.Functor f,- Data.ProtoLens.Field.HasField s "vec'htlcs" a) =>- Lens.Family2.LensLike' f s a-vec'htlcs = Data.ProtoLens.Field.field @"vec'htlcs"-vec'ignoredEdges ::- forall f s a.- (Prelude.Functor f,- Data.ProtoLens.Field.HasField s "vec'ignoredEdges" a) =>- Lens.Family2.LensLike' f s a-vec'ignoredEdges = Data.ProtoLens.Field.field @"vec'ignoredEdges"-vec'ignoredNodes ::- forall f s a.- (Prelude.Functor f,- Data.ProtoLens.Field.HasField s "vec'ignoredNodes" a) =>- Lens.Family2.LensLike' f s a-vec'ignoredNodes = Data.ProtoLens.Field.field @"vec'ignoredNodes"-vec'ignoredPairs ::- forall f s a.- (Prelude.Functor f,- Data.ProtoLens.Field.HasField s "vec'ignoredPairs" a) =>- Lens.Family2.LensLike' f s a-vec'ignoredPairs = Data.ProtoLens.Field.field @"vec'ignoredPairs"-vec'invoices ::- forall f s a.- (Prelude.Functor f,- Data.ProtoLens.Field.HasField s "vec'invoices" a) =>- Lens.Family2.LensLike' f s a-vec'invoices = Data.ProtoLens.Field.field @"vec'invoices"-vec'nodeAddresses ::- forall f s a.- (Prelude.Functor f,- Data.ProtoLens.Field.HasField s "vec'nodeAddresses" a) =>- Lens.Family2.LensLike' f s a-vec'nodeAddresses = Data.ProtoLens.Field.field @"vec'nodeAddresses"-vec'nodeUpdates ::- forall f s a.- (Prelude.Functor f,- Data.ProtoLens.Field.HasField s "vec'nodeUpdates" a) =>- Lens.Family2.LensLike' f s a-vec'nodeUpdates = Data.ProtoLens.Field.field @"vec'nodeUpdates"-vec'nodes ::- forall f s a.- (Prelude.Functor f,- Data.ProtoLens.Field.HasField s "vec'nodes" a) =>- Lens.Family2.LensLike' f s a-vec'nodes = Data.ProtoLens.Field.field @"vec'nodes"-vec'ops ::- forall f s a.- (Prelude.Functor f, Data.ProtoLens.Field.HasField s "vec'ops" a) =>- Lens.Family2.LensLike' f s a-vec'ops = Data.ProtoLens.Field.field @"vec'ops"-vec'payments ::- forall f s a.- (Prelude.Functor f,- Data.ProtoLens.Field.HasField s "vec'payments" a) =>- Lens.Family2.LensLike' f s a-vec'payments = Data.ProtoLens.Field.field @"vec'payments"-vec'peers ::- forall f s a.- (Prelude.Functor f,- Data.ProtoLens.Field.HasField s "vec'peers" a) =>- Lens.Family2.LensLike' f s a-vec'peers = Data.ProtoLens.Field.field @"vec'peers"-vec'pendingClosingChannels ::- forall f s a.- (Prelude.Functor f,- Data.ProtoLens.Field.HasField s "vec'pendingClosingChannels" a) =>- Lens.Family2.LensLike' f s a-vec'pendingClosingChannels- = Data.ProtoLens.Field.field @"vec'pendingClosingChannels"-vec'pendingForceClosingChannels ::- forall f s a.- (Prelude.Functor f,- Data.ProtoLens.Field.HasField s "vec'pendingForceClosingChannels" a) =>- Lens.Family2.LensLike' f s a-vec'pendingForceClosingChannels- = Data.ProtoLens.Field.field @"vec'pendingForceClosingChannels"-vec'pendingHtlcs ::- forall f s a.- (Prelude.Functor f,- Data.ProtoLens.Field.HasField s "vec'pendingHtlcs" a) =>- Lens.Family2.LensLike' f s a-vec'pendingHtlcs = Data.ProtoLens.Field.field @"vec'pendingHtlcs"-vec'pendingOpenChannels ::- forall f s a.- (Prelude.Functor f,- Data.ProtoLens.Field.HasField s "vec'pendingOpenChannels" a) =>- Lens.Family2.LensLike' f s a-vec'pendingOpenChannels- = Data.ProtoLens.Field.field @"vec'pendingOpenChannels"-vec'permissions ::- forall f s a.- (Prelude.Functor f,- Data.ProtoLens.Field.HasField s "vec'permissions" a) =>- Lens.Family2.LensLike' f s a-vec'permissions = Data.ProtoLens.Field.field @"vec'permissions"-vec'resolutions ::- forall f s a.- (Prelude.Functor f,- Data.ProtoLens.Field.HasField s "vec'resolutions" a) =>- Lens.Family2.LensLike' f s a-vec'resolutions = Data.ProtoLens.Field.field @"vec'resolutions"-vec'rootKeyIds ::- forall f s a.- (Prelude.Functor f,- Data.ProtoLens.Field.HasField s "vec'rootKeyIds" a) =>- Lens.Family2.LensLike' f s a-vec'rootKeyIds = Data.ProtoLens.Field.field @"vec'rootKeyIds"-vec'routeHints ::- forall f s a.- (Prelude.Functor f,- Data.ProtoLens.Field.HasField s "vec'routeHints" a) =>- Lens.Family2.LensLike' f s a-vec'routeHints = Data.ProtoLens.Field.field @"vec'routeHints"-vec'routes ::- forall f s a.- (Prelude.Functor f,- Data.ProtoLens.Field.HasField s "vec'routes" a) =>- Lens.Family2.LensLike' f s a-vec'routes = Data.ProtoLens.Field.field @"vec'routes"-vec'transactions ::- forall f s a.- (Prelude.Functor f,- Data.ProtoLens.Field.HasField s "vec'transactions" a) =>- Lens.Family2.LensLike' f s a-vec'transactions = Data.ProtoLens.Field.field @"vec'transactions"-vec'types ::- forall f s a.- (Prelude.Functor f,- Data.ProtoLens.Field.HasField s "vec'types" a) =>- Lens.Family2.LensLike' f s a-vec'types = Data.ProtoLens.Field.field @"vec'types"-vec'uris ::- forall f s a.- (Prelude.Functor f,- Data.ProtoLens.Field.HasField s "vec'uris" a) =>- Lens.Family2.LensLike' f s a-vec'uris = Data.ProtoLens.Field.field @"vec'uris"-vec'utxos ::- forall f s a.- (Prelude.Functor f,- Data.ProtoLens.Field.HasField s "vec'utxos" a) =>- Lens.Family2.LensLike' f s a-vec'utxos = Data.ProtoLens.Field.field @"vec'utxos"-vec'waitingCloseChannels ::- forall f s a.- (Prelude.Functor f,- Data.ProtoLens.Field.HasField s "vec'waitingCloseChannels" a) =>- Lens.Family2.LensLike' f s a-vec'waitingCloseChannels- = Data.ProtoLens.Field.field @"vec'waitingCloseChannels"-version ::- forall f s a.- (Prelude.Functor f, Data.ProtoLens.Field.HasField s "version" a) =>- Lens.Family2.LensLike' f s a-version = Data.ProtoLens.Field.field @"version"-waitingCloseChannels ::- forall f s a.- (Prelude.Functor f,- Data.ProtoLens.Field.HasField s "waitingCloseChannels" a) =>- Lens.Family2.LensLike' f s a-waitingCloseChannels- = Data.ProtoLens.Field.field @"waitingCloseChannels"-weekFeeSum ::- forall f s a.- (Prelude.Functor f,- Data.ProtoLens.Field.HasField s "weekFeeSum" a) =>- Lens.Family2.LensLike' f s a-weekFeeSum = Data.ProtoLens.Field.field @"weekFeeSum"
@@ -0,0 +1,26453 @@+{- This file was auto-generated from lnrpc/ln0.proto by the proto-lens-protoc program. -}+{-# LANGUAGE ScopedTypeVariables, DataKinds, TypeFamilies, UndecidableInstances, GeneralizedNewtypeDeriving, MultiParamTypeClasses, FlexibleContexts, FlexibleInstances, PatternSynonyms, MagicHash, NoImplicitPrelude, BangPatterns, TypeApplications, OverloadedStrings, DerivingStrategies, DeriveGeneric#-}+{-# OPTIONS_GHC -Wno-unused-imports#-}+{-# OPTIONS_GHC -Wno-duplicate-exports#-}+{-# OPTIONS_GHC -Wno-dodgy-exports#-}+module Proto.Lnrpc.Ln0 (+ AMPRecord(), Amount(), ChanInfoRequest(), ChanPointShim(),+ Channel(), ChannelBalanceRequest(), ChannelBalanceResponse(),+ ChannelCloseSummary(), ChannelCloseSummary'ClosureType(..),+ ChannelCloseSummary'ClosureType(),+ ChannelCloseSummary'ClosureType'UnrecognizedValue,+ ChannelConstraints(), ChannelEdge(), ChannelEdgeUpdate(),+ ChannelEventSubscription(), ChannelEventUpdate(),+ ChannelEventUpdate'Channel(..), _ChannelEventUpdate'OpenChannel,+ _ChannelEventUpdate'ClosedChannel,+ _ChannelEventUpdate'ActiveChannel,+ _ChannelEventUpdate'InactiveChannel,+ _ChannelEventUpdate'PendingOpenChannel,+ _ChannelEventUpdate'FullyResolvedChannel,+ ChannelEventUpdate'UpdateType(..), ChannelEventUpdate'UpdateType(),+ ChannelEventUpdate'UpdateType'UnrecognizedValue, ChannelGraph(),+ ChannelGraphRequest(), ChannelPoint(),+ ChannelPoint'FundingTxid(..), _ChannelPoint'FundingTxidBytes,+ _ChannelPoint'FundingTxidStr, ClosedChannelUpdate(),+ CommitmentType(..), CommitmentType(),+ CommitmentType'UnrecognizedValue, EdgeLocator(), Feature(),+ FeatureBit(..), FeatureBit(), FeatureBit'UnrecognizedValue,+ FeeLimit(), FeeLimit'Limit(..), _FeeLimit'Fixed,+ _FeeLimit'FixedMsat, _FeeLimit'Percent, FloatMetric(),+ FundingPsbtFinalize(), FundingPsbtVerify(), FundingShim(),+ FundingShim'Shim(..), _FundingShim'ChanPointShim,+ _FundingShim'PsbtShim, FundingShimCancel(), FundingStateStepResp(),+ FundingTransitionMsg(), FundingTransitionMsg'Trigger(..),+ _FundingTransitionMsg'ShimRegister,+ _FundingTransitionMsg'ShimCancel, _FundingTransitionMsg'PsbtVerify,+ _FundingTransitionMsg'PsbtFinalize, GraphTopologySubscription(),+ GraphTopologyUpdate(), HTLC(), Hop(), Hop'CustomRecordsEntry(),+ HopHint(), Initiator(..), Initiator(), Initiator'UnrecognizedValue,+ KeyDescriptor(), KeyLocator(), LightningNode(),+ LightningNode'FeaturesEntry(), MPPRecord(), NetworkInfo(),+ NetworkInfoRequest(), NodeAddress(), NodeInfo(), NodeInfoRequest(),+ NodeMetricType(..), NodeMetricType(),+ NodeMetricType'UnrecognizedValue, NodeMetricsRequest(),+ NodeMetricsResponse(),+ NodeMetricsResponse'BetweennessCentralityEntry(), NodePair(),+ NodeUpdate(), NodeUpdate'FeaturesEntry(), OutPoint(),+ PendingChannelsRequest(), PendingChannelsResponse(),+ PendingChannelsResponse'ClosedChannel(),+ PendingChannelsResponse'Commitments(),+ PendingChannelsResponse'ForceClosedChannel(),+ PendingChannelsResponse'ForceClosedChannel'AnchorState(..),+ PendingChannelsResponse'ForceClosedChannel'AnchorState(),+ PendingChannelsResponse'ForceClosedChannel'AnchorState'UnrecognizedValue,+ PendingChannelsResponse'PendingChannel(),+ PendingChannelsResponse'PendingOpenChannel(),+ PendingChannelsResponse'WaitingCloseChannel(), PendingHTLC(),+ PendingUpdate(), PsbtShim(), QueryRoutesRequest(),+ QueryRoutesRequest'DestCustomRecordsEntry(), QueryRoutesResponse(),+ Resolution(), ResolutionOutcome(..), ResolutionOutcome(),+ ResolutionOutcome'UnrecognizedValue, ResolutionType(..),+ ResolutionType(), ResolutionType'UnrecognizedValue, Route(),+ RouteHint(), RoutingPolicy(), StopRequest(), StopResponse(),+ WalletAccountBalance(), WalletBalanceRequest(),+ WalletBalanceResponse(),+ WalletBalanceResponse'AccountBalanceEntry()+ ) where+import qualified Data.ProtoLens.Runtime.Control.DeepSeq as Control.DeepSeq+import qualified Data.ProtoLens.Runtime.Data.ProtoLens.Prism as Data.ProtoLens.Prism+import qualified Text.PrettyPrint.GenericPretty.Instance+import qualified GHC.Generics+import qualified Text.PrettyPrint.GenericPretty+import qualified Data.ProtoLens.Runtime.Prelude as Prelude+import qualified Data.ProtoLens.Runtime.Data.Int as Data.Int+import qualified Data.ProtoLens.Runtime.Data.Monoid as Data.Monoid+import qualified Data.ProtoLens.Runtime.Data.Word as Data.Word+import qualified Data.ProtoLens.Runtime.Data.ProtoLens as Data.ProtoLens+import qualified Data.ProtoLens.Runtime.Data.ProtoLens.Encoding.Bytes as Data.ProtoLens.Encoding.Bytes+import qualified Data.ProtoLens.Runtime.Data.ProtoLens.Encoding.Growing as Data.ProtoLens.Encoding.Growing+import qualified Data.ProtoLens.Runtime.Data.ProtoLens.Encoding.Parser.Unsafe as Data.ProtoLens.Encoding.Parser.Unsafe+import qualified Data.ProtoLens.Runtime.Data.ProtoLens.Encoding.Wire as Data.ProtoLens.Encoding.Wire+import qualified Data.ProtoLens.Runtime.Data.ProtoLens.Field as Data.ProtoLens.Field+import qualified Data.ProtoLens.Runtime.Data.ProtoLens.Message.Enum as Data.ProtoLens.Message.Enum+import qualified Data.ProtoLens.Runtime.Data.ProtoLens.Service.Types as Data.ProtoLens.Service.Types+import qualified Data.ProtoLens.Runtime.Lens.Family2 as Lens.Family2+import qualified Data.ProtoLens.Runtime.Lens.Family2.Unchecked as Lens.Family2.Unchecked+import qualified Data.ProtoLens.Runtime.Data.Text as Data.Text+import qualified Data.ProtoLens.Runtime.Data.Map as Data.Map+import qualified Data.ProtoLens.Runtime.Data.ByteString as Data.ByteString+import qualified Data.ProtoLens.Runtime.Data.ByteString.Char8 as Data.ByteString.Char8+import qualified Data.ProtoLens.Runtime.Data.Text.Encoding as Data.Text.Encoding+import qualified Data.ProtoLens.Runtime.Data.Vector as Data.Vector+import qualified Data.ProtoLens.Runtime.Data.Vector.Generic as Data.Vector.Generic+import qualified Data.ProtoLens.Runtime.Data.Vector.Unboxed as Data.Vector.Unboxed+import qualified Data.ProtoLens.Runtime.Text.Read as Text.Read+{- | Fields :+ + * 'Proto.Lnrpc.Ln0_Fields.rootShare' @:: Lens' AMPRecord Data.ByteString.ByteString@+ * 'Proto.Lnrpc.Ln0_Fields.setId' @:: Lens' AMPRecord Data.ByteString.ByteString@+ * 'Proto.Lnrpc.Ln0_Fields.childIndex' @:: Lens' AMPRecord Data.Word.Word32@ -}+data AMPRecord+ = AMPRecord'_constructor {_AMPRecord'rootShare :: !Data.ByteString.ByteString,+ _AMPRecord'setId :: !Data.ByteString.ByteString,+ _AMPRecord'childIndex :: !Data.Word.Word32,+ _AMPRecord'_unknownFields :: !Data.ProtoLens.FieldSet}+ deriving stock (Prelude.Eq, Prelude.Ord, GHC.Generics.Generic)+instance Prelude.Show AMPRecord where+ showsPrec _ __x __s+ = Prelude.showChar+ '{'+ (Prelude.showString+ (Data.ProtoLens.showMessageShort __x) (Prelude.showChar '}' __s))+instance Text.PrettyPrint.GenericPretty.Out AMPRecord+instance Data.ProtoLens.Field.HasField AMPRecord "rootShare" Data.ByteString.ByteString where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _AMPRecord'rootShare+ (\ x__ y__ -> x__ {_AMPRecord'rootShare = y__}))+ Prelude.id+instance Data.ProtoLens.Field.HasField AMPRecord "setId" Data.ByteString.ByteString where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _AMPRecord'setId (\ x__ y__ -> x__ {_AMPRecord'setId = y__}))+ Prelude.id+instance Data.ProtoLens.Field.HasField AMPRecord "childIndex" Data.Word.Word32 where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _AMPRecord'childIndex+ (\ x__ y__ -> x__ {_AMPRecord'childIndex = y__}))+ Prelude.id+instance Data.ProtoLens.Message AMPRecord where+ messageName _ = Data.Text.pack "lnrpc.AMPRecord"+ packedMessageDescriptor _+ = "\n\+ \\tAMPRecord\DC2\GS\n\+ \\n\+ \root_share\CAN\SOH \SOH(\fR\trootShare\DC2\NAK\n\+ \\ACKset_id\CAN\STX \SOH(\fR\ENQsetId\DC2\US\n\+ \\vchild_index\CAN\ETX \SOH(\rR\n\+ \childIndex"+ packedFileDescriptor _ = packedFileDescriptor+ fieldsByTag+ = let+ rootShare__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "root_share"+ (Data.ProtoLens.ScalarField Data.ProtoLens.BytesField ::+ Data.ProtoLens.FieldTypeDescriptor Data.ByteString.ByteString)+ (Data.ProtoLens.PlainField+ Data.ProtoLens.Optional+ (Data.ProtoLens.Field.field @"rootShare")) ::+ Data.ProtoLens.FieldDescriptor AMPRecord+ setId__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "set_id"+ (Data.ProtoLens.ScalarField Data.ProtoLens.BytesField ::+ Data.ProtoLens.FieldTypeDescriptor Data.ByteString.ByteString)+ (Data.ProtoLens.PlainField+ Data.ProtoLens.Optional (Data.ProtoLens.Field.field @"setId")) ::+ Data.ProtoLens.FieldDescriptor AMPRecord+ childIndex__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "child_index"+ (Data.ProtoLens.ScalarField Data.ProtoLens.UInt32Field ::+ Data.ProtoLens.FieldTypeDescriptor Data.Word.Word32)+ (Data.ProtoLens.PlainField+ Data.ProtoLens.Optional+ (Data.ProtoLens.Field.field @"childIndex")) ::+ Data.ProtoLens.FieldDescriptor AMPRecord+ in+ Data.Map.fromList+ [(Data.ProtoLens.Tag 1, rootShare__field_descriptor),+ (Data.ProtoLens.Tag 2, setId__field_descriptor),+ (Data.ProtoLens.Tag 3, childIndex__field_descriptor)]+ unknownFields+ = Lens.Family2.Unchecked.lens+ _AMPRecord'_unknownFields+ (\ x__ y__ -> x__ {_AMPRecord'_unknownFields = y__})+ defMessage+ = AMPRecord'_constructor+ {_AMPRecord'rootShare = Data.ProtoLens.fieldDefault,+ _AMPRecord'setId = Data.ProtoLens.fieldDefault,+ _AMPRecord'childIndex = Data.ProtoLens.fieldDefault,+ _AMPRecord'_unknownFields = []}+ parseMessage+ = let+ loop :: AMPRecord -> Data.ProtoLens.Encoding.Bytes.Parser AMPRecord+ loop x+ = do end <- Data.ProtoLens.Encoding.Bytes.atEnd+ if end then+ do (let missing = []+ in+ if Prelude.null missing then+ Prelude.return ()+ else+ Prelude.fail+ ((Prelude.++)+ "Missing required fields: "+ (Prelude.show (missing :: [Prelude.String]))))+ Prelude.return+ (Lens.Family2.over+ Data.ProtoLens.unknownFields (\ !t -> Prelude.reverse t) x)+ else+ do tag <- Data.ProtoLens.Encoding.Bytes.getVarInt+ case tag of+ 10+ -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (do len <- Data.ProtoLens.Encoding.Bytes.getVarInt+ Data.ProtoLens.Encoding.Bytes.getBytes+ (Prelude.fromIntegral len))+ "root_share"+ loop+ (Lens.Family2.set (Data.ProtoLens.Field.field @"rootShare") y x)+ 18+ -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (do len <- Data.ProtoLens.Encoding.Bytes.getVarInt+ Data.ProtoLens.Encoding.Bytes.getBytes+ (Prelude.fromIntegral len))+ "set_id"+ loop (Lens.Family2.set (Data.ProtoLens.Field.field @"setId") y x)+ 24+ -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (Prelude.fmap+ Prelude.fromIntegral+ Data.ProtoLens.Encoding.Bytes.getVarInt)+ "child_index"+ loop+ (Lens.Family2.set (Data.ProtoLens.Field.field @"childIndex") y x)+ wire+ -> do !y <- Data.ProtoLens.Encoding.Wire.parseTaggedValueFromWire+ wire+ loop+ (Lens.Family2.over+ Data.ProtoLens.unknownFields (\ !t -> (:) y t) x)+ in+ (Data.ProtoLens.Encoding.Bytes.<?>)+ (do loop Data.ProtoLens.defMessage) "AMPRecord"+ buildMessage+ = \ _x+ -> (Data.Monoid.<>)+ (let+ _v = Lens.Family2.view (Data.ProtoLens.Field.field @"rootShare") _x+ in+ if (Prelude.==) _v Data.ProtoLens.fieldDefault then+ Data.Monoid.mempty+ else+ (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 10)+ ((\ bs+ -> (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt+ (Prelude.fromIntegral (Data.ByteString.length bs)))+ (Data.ProtoLens.Encoding.Bytes.putBytes bs))+ _v))+ ((Data.Monoid.<>)+ (let+ _v = Lens.Family2.view (Data.ProtoLens.Field.field @"setId") _x+ in+ if (Prelude.==) _v Data.ProtoLens.fieldDefault then+ Data.Monoid.mempty+ else+ (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 18)+ ((\ bs+ -> (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt+ (Prelude.fromIntegral (Data.ByteString.length bs)))+ (Data.ProtoLens.Encoding.Bytes.putBytes bs))+ _v))+ ((Data.Monoid.<>)+ (let+ _v+ = Lens.Family2.view (Data.ProtoLens.Field.field @"childIndex") _x+ in+ if (Prelude.==) _v Data.ProtoLens.fieldDefault then+ Data.Monoid.mempty+ else+ (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 24)+ ((Prelude..)+ Data.ProtoLens.Encoding.Bytes.putVarInt Prelude.fromIntegral _v))+ (Data.ProtoLens.Encoding.Wire.buildFieldSet+ (Lens.Family2.view Data.ProtoLens.unknownFields _x))))+instance Control.DeepSeq.NFData AMPRecord where+ rnf+ = \ x__+ -> Control.DeepSeq.deepseq+ (_AMPRecord'_unknownFields x__)+ (Control.DeepSeq.deepseq+ (_AMPRecord'rootShare x__)+ (Control.DeepSeq.deepseq+ (_AMPRecord'setId x__)+ (Control.DeepSeq.deepseq (_AMPRecord'childIndex x__) ())))+{- | Fields :+ + * 'Proto.Lnrpc.Ln0_Fields.sat' @:: Lens' Amount Data.Word.Word64@+ * 'Proto.Lnrpc.Ln0_Fields.msat' @:: Lens' Amount Data.Word.Word64@ -}+data Amount+ = Amount'_constructor {_Amount'sat :: !Data.Word.Word64,+ _Amount'msat :: !Data.Word.Word64,+ _Amount'_unknownFields :: !Data.ProtoLens.FieldSet}+ deriving stock (Prelude.Eq, Prelude.Ord, GHC.Generics.Generic)+instance Prelude.Show Amount where+ showsPrec _ __x __s+ = Prelude.showChar+ '{'+ (Prelude.showString+ (Data.ProtoLens.showMessageShort __x) (Prelude.showChar '}' __s))+instance Text.PrettyPrint.GenericPretty.Out Amount+instance Data.ProtoLens.Field.HasField Amount "sat" Data.Word.Word64 where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _Amount'sat (\ x__ y__ -> x__ {_Amount'sat = y__}))+ Prelude.id+instance Data.ProtoLens.Field.HasField Amount "msat" Data.Word.Word64 where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _Amount'msat (\ x__ y__ -> x__ {_Amount'msat = y__}))+ Prelude.id+instance Data.ProtoLens.Message Amount where+ messageName _ = Data.Text.pack "lnrpc.Amount"+ packedMessageDescriptor _+ = "\n\+ \\ACKAmount\DC2\DLE\n\+ \\ETXsat\CAN\SOH \SOH(\EOTR\ETXsat\DC2\DC2\n\+ \\EOTmsat\CAN\STX \SOH(\EOTR\EOTmsat"+ packedFileDescriptor _ = packedFileDescriptor+ fieldsByTag+ = let+ sat__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "sat"+ (Data.ProtoLens.ScalarField Data.ProtoLens.UInt64Field ::+ Data.ProtoLens.FieldTypeDescriptor Data.Word.Word64)+ (Data.ProtoLens.PlainField+ Data.ProtoLens.Optional (Data.ProtoLens.Field.field @"sat")) ::+ Data.ProtoLens.FieldDescriptor Amount+ msat__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "msat"+ (Data.ProtoLens.ScalarField Data.ProtoLens.UInt64Field ::+ Data.ProtoLens.FieldTypeDescriptor Data.Word.Word64)+ (Data.ProtoLens.PlainField+ Data.ProtoLens.Optional (Data.ProtoLens.Field.field @"msat")) ::+ Data.ProtoLens.FieldDescriptor Amount+ in+ Data.Map.fromList+ [(Data.ProtoLens.Tag 1, sat__field_descriptor),+ (Data.ProtoLens.Tag 2, msat__field_descriptor)]+ unknownFields+ = Lens.Family2.Unchecked.lens+ _Amount'_unknownFields+ (\ x__ y__ -> x__ {_Amount'_unknownFields = y__})+ defMessage+ = Amount'_constructor+ {_Amount'sat = Data.ProtoLens.fieldDefault,+ _Amount'msat = Data.ProtoLens.fieldDefault,+ _Amount'_unknownFields = []}+ parseMessage+ = let+ loop :: Amount -> Data.ProtoLens.Encoding.Bytes.Parser Amount+ loop x+ = do end <- Data.ProtoLens.Encoding.Bytes.atEnd+ if end then+ do (let missing = []+ in+ if Prelude.null missing then+ Prelude.return ()+ else+ Prelude.fail+ ((Prelude.++)+ "Missing required fields: "+ (Prelude.show (missing :: [Prelude.String]))))+ Prelude.return+ (Lens.Family2.over+ Data.ProtoLens.unknownFields (\ !t -> Prelude.reverse t) x)+ else+ do tag <- Data.ProtoLens.Encoding.Bytes.getVarInt+ case tag of+ 8 -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ Data.ProtoLens.Encoding.Bytes.getVarInt "sat"+ loop (Lens.Family2.set (Data.ProtoLens.Field.field @"sat") y x)+ 16+ -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ Data.ProtoLens.Encoding.Bytes.getVarInt "msat"+ loop (Lens.Family2.set (Data.ProtoLens.Field.field @"msat") y x)+ wire+ -> do !y <- Data.ProtoLens.Encoding.Wire.parseTaggedValueFromWire+ wire+ loop+ (Lens.Family2.over+ Data.ProtoLens.unknownFields (\ !t -> (:) y t) x)+ in+ (Data.ProtoLens.Encoding.Bytes.<?>)+ (do loop Data.ProtoLens.defMessage) "Amount"+ buildMessage+ = \ _x+ -> (Data.Monoid.<>)+ (let _v = Lens.Family2.view (Data.ProtoLens.Field.field @"sat") _x+ in+ if (Prelude.==) _v Data.ProtoLens.fieldDefault then+ Data.Monoid.mempty+ else+ (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 8)+ (Data.ProtoLens.Encoding.Bytes.putVarInt _v))+ ((Data.Monoid.<>)+ (let _v = Lens.Family2.view (Data.ProtoLens.Field.field @"msat") _x+ in+ if (Prelude.==) _v Data.ProtoLens.fieldDefault then+ Data.Monoid.mempty+ else+ (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 16)+ (Data.ProtoLens.Encoding.Bytes.putVarInt _v))+ (Data.ProtoLens.Encoding.Wire.buildFieldSet+ (Lens.Family2.view Data.ProtoLens.unknownFields _x)))+instance Control.DeepSeq.NFData Amount where+ rnf+ = \ x__+ -> Control.DeepSeq.deepseq+ (_Amount'_unknownFields x__)+ (Control.DeepSeq.deepseq+ (_Amount'sat x__) (Control.DeepSeq.deepseq (_Amount'msat x__) ()))+{- | Fields :+ + * 'Proto.Lnrpc.Ln0_Fields.chanId' @:: Lens' ChanInfoRequest Data.Word.Word64@ -}+data ChanInfoRequest+ = ChanInfoRequest'_constructor {_ChanInfoRequest'chanId :: !Data.Word.Word64,+ _ChanInfoRequest'_unknownFields :: !Data.ProtoLens.FieldSet}+ deriving stock (Prelude.Eq, Prelude.Ord, GHC.Generics.Generic)+instance Prelude.Show ChanInfoRequest where+ showsPrec _ __x __s+ = Prelude.showChar+ '{'+ (Prelude.showString+ (Data.ProtoLens.showMessageShort __x) (Prelude.showChar '}' __s))+instance Text.PrettyPrint.GenericPretty.Out ChanInfoRequest+instance Data.ProtoLens.Field.HasField ChanInfoRequest "chanId" Data.Word.Word64 where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _ChanInfoRequest'chanId+ (\ x__ y__ -> x__ {_ChanInfoRequest'chanId = y__}))+ Prelude.id+instance Data.ProtoLens.Message ChanInfoRequest where+ messageName _ = Data.Text.pack "lnrpc.ChanInfoRequest"+ packedMessageDescriptor _+ = "\n\+ \\SIChanInfoRequest\DC2\ESC\n\+ \\achan_id\CAN\SOH \SOH(\EOTR\ACKchanIdB\STX0\SOH"+ packedFileDescriptor _ = packedFileDescriptor+ fieldsByTag+ = let+ chanId__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "chan_id"+ (Data.ProtoLens.ScalarField Data.ProtoLens.UInt64Field ::+ Data.ProtoLens.FieldTypeDescriptor Data.Word.Word64)+ (Data.ProtoLens.PlainField+ Data.ProtoLens.Optional (Data.ProtoLens.Field.field @"chanId")) ::+ Data.ProtoLens.FieldDescriptor ChanInfoRequest+ in+ Data.Map.fromList+ [(Data.ProtoLens.Tag 1, chanId__field_descriptor)]+ unknownFields+ = Lens.Family2.Unchecked.lens+ _ChanInfoRequest'_unknownFields+ (\ x__ y__ -> x__ {_ChanInfoRequest'_unknownFields = y__})+ defMessage+ = ChanInfoRequest'_constructor+ {_ChanInfoRequest'chanId = Data.ProtoLens.fieldDefault,+ _ChanInfoRequest'_unknownFields = []}+ parseMessage+ = let+ loop ::+ ChanInfoRequest+ -> Data.ProtoLens.Encoding.Bytes.Parser ChanInfoRequest+ loop x+ = do end <- Data.ProtoLens.Encoding.Bytes.atEnd+ if end then+ do (let missing = []+ in+ if Prelude.null missing then+ Prelude.return ()+ else+ Prelude.fail+ ((Prelude.++)+ "Missing required fields: "+ (Prelude.show (missing :: [Prelude.String]))))+ Prelude.return+ (Lens.Family2.over+ Data.ProtoLens.unknownFields (\ !t -> Prelude.reverse t) x)+ else+ do tag <- Data.ProtoLens.Encoding.Bytes.getVarInt+ case tag of+ 8 -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ Data.ProtoLens.Encoding.Bytes.getVarInt "chan_id"+ loop (Lens.Family2.set (Data.ProtoLens.Field.field @"chanId") y x)+ wire+ -> do !y <- Data.ProtoLens.Encoding.Wire.parseTaggedValueFromWire+ wire+ loop+ (Lens.Family2.over+ Data.ProtoLens.unknownFields (\ !t -> (:) y t) x)+ in+ (Data.ProtoLens.Encoding.Bytes.<?>)+ (do loop Data.ProtoLens.defMessage) "ChanInfoRequest"+ buildMessage+ = \ _x+ -> (Data.Monoid.<>)+ (let+ _v = Lens.Family2.view (Data.ProtoLens.Field.field @"chanId") _x+ in+ if (Prelude.==) _v Data.ProtoLens.fieldDefault then+ Data.Monoid.mempty+ else+ (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 8)+ (Data.ProtoLens.Encoding.Bytes.putVarInt _v))+ (Data.ProtoLens.Encoding.Wire.buildFieldSet+ (Lens.Family2.view Data.ProtoLens.unknownFields _x))+instance Control.DeepSeq.NFData ChanInfoRequest where+ rnf+ = \ x__+ -> Control.DeepSeq.deepseq+ (_ChanInfoRequest'_unknownFields x__)+ (Control.DeepSeq.deepseq (_ChanInfoRequest'chanId x__) ())+{- | Fields :+ + * 'Proto.Lnrpc.Ln0_Fields.amt' @:: Lens' ChanPointShim Data.Int.Int64@+ * 'Proto.Lnrpc.Ln0_Fields.chanPoint' @:: Lens' ChanPointShim ChannelPoint@+ * 'Proto.Lnrpc.Ln0_Fields.maybe'chanPoint' @:: Lens' ChanPointShim (Prelude.Maybe ChannelPoint)@+ * 'Proto.Lnrpc.Ln0_Fields.localKey' @:: Lens' ChanPointShim KeyDescriptor@+ * 'Proto.Lnrpc.Ln0_Fields.maybe'localKey' @:: Lens' ChanPointShim (Prelude.Maybe KeyDescriptor)@+ * 'Proto.Lnrpc.Ln0_Fields.remoteKey' @:: Lens' ChanPointShim Data.ByteString.ByteString@+ * 'Proto.Lnrpc.Ln0_Fields.pendingChanId' @:: Lens' ChanPointShim Data.ByteString.ByteString@+ * 'Proto.Lnrpc.Ln0_Fields.thawHeight' @:: Lens' ChanPointShim Data.Word.Word32@ -}+data ChanPointShim+ = ChanPointShim'_constructor {_ChanPointShim'amt :: !Data.Int.Int64,+ _ChanPointShim'chanPoint :: !(Prelude.Maybe ChannelPoint),+ _ChanPointShim'localKey :: !(Prelude.Maybe KeyDescriptor),+ _ChanPointShim'remoteKey :: !Data.ByteString.ByteString,+ _ChanPointShim'pendingChanId :: !Data.ByteString.ByteString,+ _ChanPointShim'thawHeight :: !Data.Word.Word32,+ _ChanPointShim'_unknownFields :: !Data.ProtoLens.FieldSet}+ deriving stock (Prelude.Eq, Prelude.Ord, GHC.Generics.Generic)+instance Prelude.Show ChanPointShim where+ showsPrec _ __x __s+ = Prelude.showChar+ '{'+ (Prelude.showString+ (Data.ProtoLens.showMessageShort __x) (Prelude.showChar '}' __s))+instance Text.PrettyPrint.GenericPretty.Out ChanPointShim+instance Data.ProtoLens.Field.HasField ChanPointShim "amt" Data.Int.Int64 where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _ChanPointShim'amt (\ x__ y__ -> x__ {_ChanPointShim'amt = y__}))+ Prelude.id+instance Data.ProtoLens.Field.HasField ChanPointShim "chanPoint" ChannelPoint where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _ChanPointShim'chanPoint+ (\ x__ y__ -> x__ {_ChanPointShim'chanPoint = y__}))+ (Data.ProtoLens.maybeLens Data.ProtoLens.defMessage)+instance Data.ProtoLens.Field.HasField ChanPointShim "maybe'chanPoint" (Prelude.Maybe ChannelPoint) where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _ChanPointShim'chanPoint+ (\ x__ y__ -> x__ {_ChanPointShim'chanPoint = y__}))+ Prelude.id+instance Data.ProtoLens.Field.HasField ChanPointShim "localKey" KeyDescriptor where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _ChanPointShim'localKey+ (\ x__ y__ -> x__ {_ChanPointShim'localKey = y__}))+ (Data.ProtoLens.maybeLens Data.ProtoLens.defMessage)+instance Data.ProtoLens.Field.HasField ChanPointShim "maybe'localKey" (Prelude.Maybe KeyDescriptor) where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _ChanPointShim'localKey+ (\ x__ y__ -> x__ {_ChanPointShim'localKey = y__}))+ Prelude.id+instance Data.ProtoLens.Field.HasField ChanPointShim "remoteKey" Data.ByteString.ByteString where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _ChanPointShim'remoteKey+ (\ x__ y__ -> x__ {_ChanPointShim'remoteKey = y__}))+ Prelude.id+instance Data.ProtoLens.Field.HasField ChanPointShim "pendingChanId" Data.ByteString.ByteString where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _ChanPointShim'pendingChanId+ (\ x__ y__ -> x__ {_ChanPointShim'pendingChanId = y__}))+ Prelude.id+instance Data.ProtoLens.Field.HasField ChanPointShim "thawHeight" Data.Word.Word32 where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _ChanPointShim'thawHeight+ (\ x__ y__ -> x__ {_ChanPointShim'thawHeight = y__}))+ Prelude.id+instance Data.ProtoLens.Message ChanPointShim where+ messageName _ = Data.Text.pack "lnrpc.ChanPointShim"+ packedMessageDescriptor _+ = "\n\+ \\rChanPointShim\DC2\DLE\n\+ \\ETXamt\CAN\SOH \SOH(\ETXR\ETXamt\DC22\n\+ \\n\+ \chan_point\CAN\STX \SOH(\v2\DC3.lnrpc.ChannelPointR\tchanPoint\DC21\n\+ \\tlocal_key\CAN\ETX \SOH(\v2\DC4.lnrpc.KeyDescriptorR\blocalKey\DC2\GS\n\+ \\n\+ \remote_key\CAN\EOT \SOH(\fR\tremoteKey\DC2&\n\+ \\SIpending_chan_id\CAN\ENQ \SOH(\fR\rpendingChanId\DC2\US\n\+ \\vthaw_height\CAN\ACK \SOH(\rR\n\+ \thawHeight"+ packedFileDescriptor _ = packedFileDescriptor+ fieldsByTag+ = let+ amt__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "amt"+ (Data.ProtoLens.ScalarField Data.ProtoLens.Int64Field ::+ Data.ProtoLens.FieldTypeDescriptor Data.Int.Int64)+ (Data.ProtoLens.PlainField+ Data.ProtoLens.Optional (Data.ProtoLens.Field.field @"amt")) ::+ Data.ProtoLens.FieldDescriptor ChanPointShim+ chanPoint__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "chan_point"+ (Data.ProtoLens.MessageField Data.ProtoLens.MessageType ::+ Data.ProtoLens.FieldTypeDescriptor ChannelPoint)+ (Data.ProtoLens.OptionalField+ (Data.ProtoLens.Field.field @"maybe'chanPoint")) ::+ Data.ProtoLens.FieldDescriptor ChanPointShim+ localKey__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "local_key"+ (Data.ProtoLens.MessageField Data.ProtoLens.MessageType ::+ Data.ProtoLens.FieldTypeDescriptor KeyDescriptor)+ (Data.ProtoLens.OptionalField+ (Data.ProtoLens.Field.field @"maybe'localKey")) ::+ Data.ProtoLens.FieldDescriptor ChanPointShim+ remoteKey__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "remote_key"+ (Data.ProtoLens.ScalarField Data.ProtoLens.BytesField ::+ Data.ProtoLens.FieldTypeDescriptor Data.ByteString.ByteString)+ (Data.ProtoLens.PlainField+ Data.ProtoLens.Optional+ (Data.ProtoLens.Field.field @"remoteKey")) ::+ Data.ProtoLens.FieldDescriptor ChanPointShim+ pendingChanId__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "pending_chan_id"+ (Data.ProtoLens.ScalarField Data.ProtoLens.BytesField ::+ Data.ProtoLens.FieldTypeDescriptor Data.ByteString.ByteString)+ (Data.ProtoLens.PlainField+ Data.ProtoLens.Optional+ (Data.ProtoLens.Field.field @"pendingChanId")) ::+ Data.ProtoLens.FieldDescriptor ChanPointShim+ thawHeight__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "thaw_height"+ (Data.ProtoLens.ScalarField Data.ProtoLens.UInt32Field ::+ Data.ProtoLens.FieldTypeDescriptor Data.Word.Word32)+ (Data.ProtoLens.PlainField+ Data.ProtoLens.Optional+ (Data.ProtoLens.Field.field @"thawHeight")) ::+ Data.ProtoLens.FieldDescriptor ChanPointShim+ in+ Data.Map.fromList+ [(Data.ProtoLens.Tag 1, amt__field_descriptor),+ (Data.ProtoLens.Tag 2, chanPoint__field_descriptor),+ (Data.ProtoLens.Tag 3, localKey__field_descriptor),+ (Data.ProtoLens.Tag 4, remoteKey__field_descriptor),+ (Data.ProtoLens.Tag 5, pendingChanId__field_descriptor),+ (Data.ProtoLens.Tag 6, thawHeight__field_descriptor)]+ unknownFields+ = Lens.Family2.Unchecked.lens+ _ChanPointShim'_unknownFields+ (\ x__ y__ -> x__ {_ChanPointShim'_unknownFields = y__})+ defMessage+ = ChanPointShim'_constructor+ {_ChanPointShim'amt = Data.ProtoLens.fieldDefault,+ _ChanPointShim'chanPoint = Prelude.Nothing,+ _ChanPointShim'localKey = Prelude.Nothing,+ _ChanPointShim'remoteKey = Data.ProtoLens.fieldDefault,+ _ChanPointShim'pendingChanId = Data.ProtoLens.fieldDefault,+ _ChanPointShim'thawHeight = Data.ProtoLens.fieldDefault,+ _ChanPointShim'_unknownFields = []}+ parseMessage+ = let+ loop ::+ ChanPointShim -> Data.ProtoLens.Encoding.Bytes.Parser ChanPointShim+ loop x+ = do end <- Data.ProtoLens.Encoding.Bytes.atEnd+ if end then+ do (let missing = []+ in+ if Prelude.null missing then+ Prelude.return ()+ else+ Prelude.fail+ ((Prelude.++)+ "Missing required fields: "+ (Prelude.show (missing :: [Prelude.String]))))+ Prelude.return+ (Lens.Family2.over+ Data.ProtoLens.unknownFields (\ !t -> Prelude.reverse t) x)+ else+ do tag <- Data.ProtoLens.Encoding.Bytes.getVarInt+ case tag of+ 8 -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (Prelude.fmap+ Prelude.fromIntegral+ Data.ProtoLens.Encoding.Bytes.getVarInt)+ "amt"+ loop (Lens.Family2.set (Data.ProtoLens.Field.field @"amt") y x)+ 18+ -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (do len <- Data.ProtoLens.Encoding.Bytes.getVarInt+ Data.ProtoLens.Encoding.Bytes.isolate+ (Prelude.fromIntegral len) Data.ProtoLens.parseMessage)+ "chan_point"+ loop+ (Lens.Family2.set (Data.ProtoLens.Field.field @"chanPoint") y x)+ 26+ -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (do len <- Data.ProtoLens.Encoding.Bytes.getVarInt+ Data.ProtoLens.Encoding.Bytes.isolate+ (Prelude.fromIntegral len) Data.ProtoLens.parseMessage)+ "local_key"+ loop+ (Lens.Family2.set (Data.ProtoLens.Field.field @"localKey") y x)+ 34+ -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (do len <- Data.ProtoLens.Encoding.Bytes.getVarInt+ Data.ProtoLens.Encoding.Bytes.getBytes+ (Prelude.fromIntegral len))+ "remote_key"+ loop+ (Lens.Family2.set (Data.ProtoLens.Field.field @"remoteKey") y x)+ 42+ -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (do len <- Data.ProtoLens.Encoding.Bytes.getVarInt+ Data.ProtoLens.Encoding.Bytes.getBytes+ (Prelude.fromIntegral len))+ "pending_chan_id"+ loop+ (Lens.Family2.set+ (Data.ProtoLens.Field.field @"pendingChanId") y x)+ 48+ -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (Prelude.fmap+ Prelude.fromIntegral+ Data.ProtoLens.Encoding.Bytes.getVarInt)+ "thaw_height"+ loop+ (Lens.Family2.set (Data.ProtoLens.Field.field @"thawHeight") y x)+ wire+ -> do !y <- Data.ProtoLens.Encoding.Wire.parseTaggedValueFromWire+ wire+ loop+ (Lens.Family2.over+ Data.ProtoLens.unknownFields (\ !t -> (:) y t) x)+ in+ (Data.ProtoLens.Encoding.Bytes.<?>)+ (do loop Data.ProtoLens.defMessage) "ChanPointShim"+ buildMessage+ = \ _x+ -> (Data.Monoid.<>)+ (let _v = Lens.Family2.view (Data.ProtoLens.Field.field @"amt") _x+ in+ if (Prelude.==) _v Data.ProtoLens.fieldDefault then+ Data.Monoid.mempty+ else+ (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 8)+ ((Prelude..)+ Data.ProtoLens.Encoding.Bytes.putVarInt Prelude.fromIntegral _v))+ ((Data.Monoid.<>)+ (case+ Lens.Family2.view+ (Data.ProtoLens.Field.field @"maybe'chanPoint") _x+ of+ Prelude.Nothing -> Data.Monoid.mempty+ (Prelude.Just _v)+ -> (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 18)+ ((Prelude..)+ (\ bs+ -> (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt+ (Prelude.fromIntegral (Data.ByteString.length bs)))+ (Data.ProtoLens.Encoding.Bytes.putBytes bs))+ Data.ProtoLens.encodeMessage _v))+ ((Data.Monoid.<>)+ (case+ Lens.Family2.view (Data.ProtoLens.Field.field @"maybe'localKey") _x+ of+ Prelude.Nothing -> Data.Monoid.mempty+ (Prelude.Just _v)+ -> (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 26)+ ((Prelude..)+ (\ bs+ -> (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt+ (Prelude.fromIntegral (Data.ByteString.length bs)))+ (Data.ProtoLens.Encoding.Bytes.putBytes bs))+ Data.ProtoLens.encodeMessage _v))+ ((Data.Monoid.<>)+ (let+ _v = Lens.Family2.view (Data.ProtoLens.Field.field @"remoteKey") _x+ in+ if (Prelude.==) _v Data.ProtoLens.fieldDefault then+ Data.Monoid.mempty+ else+ (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 34)+ ((\ bs+ -> (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt+ (Prelude.fromIntegral (Data.ByteString.length bs)))+ (Data.ProtoLens.Encoding.Bytes.putBytes bs))+ _v))+ ((Data.Monoid.<>)+ (let+ _v+ = Lens.Family2.view+ (Data.ProtoLens.Field.field @"pendingChanId") _x+ in+ if (Prelude.==) _v Data.ProtoLens.fieldDefault then+ Data.Monoid.mempty+ else+ (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 42)+ ((\ bs+ -> (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt+ (Prelude.fromIntegral (Data.ByteString.length bs)))+ (Data.ProtoLens.Encoding.Bytes.putBytes bs))+ _v))+ ((Data.Monoid.<>)+ (let+ _v+ = Lens.Family2.view (Data.ProtoLens.Field.field @"thawHeight") _x+ in+ if (Prelude.==) _v Data.ProtoLens.fieldDefault then+ Data.Monoid.mempty+ else+ (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 48)+ ((Prelude..)+ Data.ProtoLens.Encoding.Bytes.putVarInt Prelude.fromIntegral+ _v))+ (Data.ProtoLens.Encoding.Wire.buildFieldSet+ (Lens.Family2.view Data.ProtoLens.unknownFields _x)))))))+instance Control.DeepSeq.NFData ChanPointShim where+ rnf+ = \ x__+ -> Control.DeepSeq.deepseq+ (_ChanPointShim'_unknownFields x__)+ (Control.DeepSeq.deepseq+ (_ChanPointShim'amt x__)+ (Control.DeepSeq.deepseq+ (_ChanPointShim'chanPoint x__)+ (Control.DeepSeq.deepseq+ (_ChanPointShim'localKey x__)+ (Control.DeepSeq.deepseq+ (_ChanPointShim'remoteKey x__)+ (Control.DeepSeq.deepseq+ (_ChanPointShim'pendingChanId x__)+ (Control.DeepSeq.deepseq (_ChanPointShim'thawHeight x__) ()))))))+{- | Fields :+ + * 'Proto.Lnrpc.Ln0_Fields.active' @:: Lens' Channel Prelude.Bool@+ * 'Proto.Lnrpc.Ln0_Fields.remotePubkey' @:: Lens' Channel Data.Text.Text@+ * 'Proto.Lnrpc.Ln0_Fields.channelPoint' @:: Lens' Channel Data.Text.Text@+ * 'Proto.Lnrpc.Ln0_Fields.chanId' @:: Lens' Channel Data.Word.Word64@+ * 'Proto.Lnrpc.Ln0_Fields.capacity' @:: Lens' Channel Data.Int.Int64@+ * 'Proto.Lnrpc.Ln0_Fields.localBalance' @:: Lens' Channel Data.Int.Int64@+ * 'Proto.Lnrpc.Ln0_Fields.remoteBalance' @:: Lens' Channel Data.Int.Int64@+ * 'Proto.Lnrpc.Ln0_Fields.commitFee' @:: Lens' Channel Data.Int.Int64@+ * 'Proto.Lnrpc.Ln0_Fields.commitWeight' @:: Lens' Channel Data.Int.Int64@+ * 'Proto.Lnrpc.Ln0_Fields.feePerKw' @:: Lens' Channel Data.Int.Int64@+ * 'Proto.Lnrpc.Ln0_Fields.unsettledBalance' @:: Lens' Channel Data.Int.Int64@+ * 'Proto.Lnrpc.Ln0_Fields.totalSatoshisSent' @:: Lens' Channel Data.Int.Int64@+ * 'Proto.Lnrpc.Ln0_Fields.totalSatoshisReceived' @:: Lens' Channel Data.Int.Int64@+ * 'Proto.Lnrpc.Ln0_Fields.numUpdates' @:: Lens' Channel Data.Word.Word64@+ * 'Proto.Lnrpc.Ln0_Fields.pendingHtlcs' @:: Lens' Channel [HTLC]@+ * 'Proto.Lnrpc.Ln0_Fields.vec'pendingHtlcs' @:: Lens' Channel (Data.Vector.Vector HTLC)@+ * 'Proto.Lnrpc.Ln0_Fields.csvDelay' @:: Lens' Channel Data.Word.Word32@+ * 'Proto.Lnrpc.Ln0_Fields.private' @:: Lens' Channel Prelude.Bool@+ * 'Proto.Lnrpc.Ln0_Fields.initiator' @:: Lens' Channel Prelude.Bool@+ * 'Proto.Lnrpc.Ln0_Fields.chanStatusFlags' @:: Lens' Channel Data.Text.Text@+ * 'Proto.Lnrpc.Ln0_Fields.localChanReserveSat' @:: Lens' Channel Data.Int.Int64@+ * 'Proto.Lnrpc.Ln0_Fields.remoteChanReserveSat' @:: Lens' Channel Data.Int.Int64@+ * 'Proto.Lnrpc.Ln0_Fields.staticRemoteKey' @:: Lens' Channel Prelude.Bool@+ * 'Proto.Lnrpc.Ln0_Fields.commitmentType' @:: Lens' Channel CommitmentType@+ * 'Proto.Lnrpc.Ln0_Fields.lifetime' @:: Lens' Channel Data.Int.Int64@+ * 'Proto.Lnrpc.Ln0_Fields.uptime' @:: Lens' Channel Data.Int.Int64@+ * 'Proto.Lnrpc.Ln0_Fields.closeAddress' @:: Lens' Channel Data.Text.Text@+ * 'Proto.Lnrpc.Ln0_Fields.pushAmountSat' @:: Lens' Channel Data.Word.Word64@+ * 'Proto.Lnrpc.Ln0_Fields.thawHeight' @:: Lens' Channel Data.Word.Word32@+ * 'Proto.Lnrpc.Ln0_Fields.localConstraints' @:: Lens' Channel ChannelConstraints@+ * 'Proto.Lnrpc.Ln0_Fields.maybe'localConstraints' @:: Lens' Channel (Prelude.Maybe ChannelConstraints)@+ * 'Proto.Lnrpc.Ln0_Fields.remoteConstraints' @:: Lens' Channel ChannelConstraints@+ * 'Proto.Lnrpc.Ln0_Fields.maybe'remoteConstraints' @:: Lens' Channel (Prelude.Maybe ChannelConstraints)@ -}+data Channel+ = Channel'_constructor {_Channel'active :: !Prelude.Bool,+ _Channel'remotePubkey :: !Data.Text.Text,+ _Channel'channelPoint :: !Data.Text.Text,+ _Channel'chanId :: !Data.Word.Word64,+ _Channel'capacity :: !Data.Int.Int64,+ _Channel'localBalance :: !Data.Int.Int64,+ _Channel'remoteBalance :: !Data.Int.Int64,+ _Channel'commitFee :: !Data.Int.Int64,+ _Channel'commitWeight :: !Data.Int.Int64,+ _Channel'feePerKw :: !Data.Int.Int64,+ _Channel'unsettledBalance :: !Data.Int.Int64,+ _Channel'totalSatoshisSent :: !Data.Int.Int64,+ _Channel'totalSatoshisReceived :: !Data.Int.Int64,+ _Channel'numUpdates :: !Data.Word.Word64,+ _Channel'pendingHtlcs :: !(Data.Vector.Vector HTLC),+ _Channel'csvDelay :: !Data.Word.Word32,+ _Channel'private :: !Prelude.Bool,+ _Channel'initiator :: !Prelude.Bool,+ _Channel'chanStatusFlags :: !Data.Text.Text,+ _Channel'localChanReserveSat :: !Data.Int.Int64,+ _Channel'remoteChanReserveSat :: !Data.Int.Int64,+ _Channel'staticRemoteKey :: !Prelude.Bool,+ _Channel'commitmentType :: !CommitmentType,+ _Channel'lifetime :: !Data.Int.Int64,+ _Channel'uptime :: !Data.Int.Int64,+ _Channel'closeAddress :: !Data.Text.Text,+ _Channel'pushAmountSat :: !Data.Word.Word64,+ _Channel'thawHeight :: !Data.Word.Word32,+ _Channel'localConstraints :: !(Prelude.Maybe ChannelConstraints),+ _Channel'remoteConstraints :: !(Prelude.Maybe ChannelConstraints),+ _Channel'_unknownFields :: !Data.ProtoLens.FieldSet}+ deriving stock (Prelude.Eq, Prelude.Ord, GHC.Generics.Generic)+instance Prelude.Show Channel where+ showsPrec _ __x __s+ = Prelude.showChar+ '{'+ (Prelude.showString+ (Data.ProtoLens.showMessageShort __x) (Prelude.showChar '}' __s))+instance Text.PrettyPrint.GenericPretty.Out Channel+instance Data.ProtoLens.Field.HasField Channel "active" Prelude.Bool where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _Channel'active (\ x__ y__ -> x__ {_Channel'active = y__}))+ Prelude.id+instance Data.ProtoLens.Field.HasField Channel "remotePubkey" Data.Text.Text where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _Channel'remotePubkey+ (\ x__ y__ -> x__ {_Channel'remotePubkey = y__}))+ Prelude.id+instance Data.ProtoLens.Field.HasField Channel "channelPoint" Data.Text.Text where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _Channel'channelPoint+ (\ x__ y__ -> x__ {_Channel'channelPoint = y__}))+ Prelude.id+instance Data.ProtoLens.Field.HasField Channel "chanId" Data.Word.Word64 where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _Channel'chanId (\ x__ y__ -> x__ {_Channel'chanId = y__}))+ Prelude.id+instance Data.ProtoLens.Field.HasField Channel "capacity" Data.Int.Int64 where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _Channel'capacity (\ x__ y__ -> x__ {_Channel'capacity = y__}))+ Prelude.id+instance Data.ProtoLens.Field.HasField Channel "localBalance" Data.Int.Int64 where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _Channel'localBalance+ (\ x__ y__ -> x__ {_Channel'localBalance = y__}))+ Prelude.id+instance Data.ProtoLens.Field.HasField Channel "remoteBalance" Data.Int.Int64 where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _Channel'remoteBalance+ (\ x__ y__ -> x__ {_Channel'remoteBalance = y__}))+ Prelude.id+instance Data.ProtoLens.Field.HasField Channel "commitFee" Data.Int.Int64 where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _Channel'commitFee (\ x__ y__ -> x__ {_Channel'commitFee = y__}))+ Prelude.id+instance Data.ProtoLens.Field.HasField Channel "commitWeight" Data.Int.Int64 where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _Channel'commitWeight+ (\ x__ y__ -> x__ {_Channel'commitWeight = y__}))+ Prelude.id+instance Data.ProtoLens.Field.HasField Channel "feePerKw" Data.Int.Int64 where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _Channel'feePerKw (\ x__ y__ -> x__ {_Channel'feePerKw = y__}))+ Prelude.id+instance Data.ProtoLens.Field.HasField Channel "unsettledBalance" Data.Int.Int64 where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _Channel'unsettledBalance+ (\ x__ y__ -> x__ {_Channel'unsettledBalance = y__}))+ Prelude.id+instance Data.ProtoLens.Field.HasField Channel "totalSatoshisSent" Data.Int.Int64 where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _Channel'totalSatoshisSent+ (\ x__ y__ -> x__ {_Channel'totalSatoshisSent = y__}))+ Prelude.id+instance Data.ProtoLens.Field.HasField Channel "totalSatoshisReceived" Data.Int.Int64 where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _Channel'totalSatoshisReceived+ (\ x__ y__ -> x__ {_Channel'totalSatoshisReceived = y__}))+ Prelude.id+instance Data.ProtoLens.Field.HasField Channel "numUpdates" Data.Word.Word64 where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _Channel'numUpdates (\ x__ y__ -> x__ {_Channel'numUpdates = y__}))+ Prelude.id+instance Data.ProtoLens.Field.HasField Channel "pendingHtlcs" [HTLC] where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _Channel'pendingHtlcs+ (\ x__ y__ -> x__ {_Channel'pendingHtlcs = y__}))+ (Lens.Family2.Unchecked.lens+ Data.Vector.Generic.toList+ (\ _ y__ -> Data.Vector.Generic.fromList y__))+instance Data.ProtoLens.Field.HasField Channel "vec'pendingHtlcs" (Data.Vector.Vector HTLC) where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _Channel'pendingHtlcs+ (\ x__ y__ -> x__ {_Channel'pendingHtlcs = y__}))+ Prelude.id+instance Data.ProtoLens.Field.HasField Channel "csvDelay" Data.Word.Word32 where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _Channel'csvDelay (\ x__ y__ -> x__ {_Channel'csvDelay = y__}))+ Prelude.id+instance Data.ProtoLens.Field.HasField Channel "private" Prelude.Bool where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _Channel'private (\ x__ y__ -> x__ {_Channel'private = y__}))+ Prelude.id+instance Data.ProtoLens.Field.HasField Channel "initiator" Prelude.Bool where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _Channel'initiator (\ x__ y__ -> x__ {_Channel'initiator = y__}))+ Prelude.id+instance Data.ProtoLens.Field.HasField Channel "chanStatusFlags" Data.Text.Text where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _Channel'chanStatusFlags+ (\ x__ y__ -> x__ {_Channel'chanStatusFlags = y__}))+ Prelude.id+instance Data.ProtoLens.Field.HasField Channel "localChanReserveSat" Data.Int.Int64 where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _Channel'localChanReserveSat+ (\ x__ y__ -> x__ {_Channel'localChanReserveSat = y__}))+ Prelude.id+instance Data.ProtoLens.Field.HasField Channel "remoteChanReserveSat" Data.Int.Int64 where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _Channel'remoteChanReserveSat+ (\ x__ y__ -> x__ {_Channel'remoteChanReserveSat = y__}))+ Prelude.id+instance Data.ProtoLens.Field.HasField Channel "staticRemoteKey" Prelude.Bool where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _Channel'staticRemoteKey+ (\ x__ y__ -> x__ {_Channel'staticRemoteKey = y__}))+ Prelude.id+instance Data.ProtoLens.Field.HasField Channel "commitmentType" CommitmentType where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _Channel'commitmentType+ (\ x__ y__ -> x__ {_Channel'commitmentType = y__}))+ Prelude.id+instance Data.ProtoLens.Field.HasField Channel "lifetime" Data.Int.Int64 where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _Channel'lifetime (\ x__ y__ -> x__ {_Channel'lifetime = y__}))+ Prelude.id+instance Data.ProtoLens.Field.HasField Channel "uptime" Data.Int.Int64 where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _Channel'uptime (\ x__ y__ -> x__ {_Channel'uptime = y__}))+ Prelude.id+instance Data.ProtoLens.Field.HasField Channel "closeAddress" Data.Text.Text where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _Channel'closeAddress+ (\ x__ y__ -> x__ {_Channel'closeAddress = y__}))+ Prelude.id+instance Data.ProtoLens.Field.HasField Channel "pushAmountSat" Data.Word.Word64 where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _Channel'pushAmountSat+ (\ x__ y__ -> x__ {_Channel'pushAmountSat = y__}))+ Prelude.id+instance Data.ProtoLens.Field.HasField Channel "thawHeight" Data.Word.Word32 where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _Channel'thawHeight (\ x__ y__ -> x__ {_Channel'thawHeight = y__}))+ Prelude.id+instance Data.ProtoLens.Field.HasField Channel "localConstraints" ChannelConstraints where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _Channel'localConstraints+ (\ x__ y__ -> x__ {_Channel'localConstraints = y__}))+ (Data.ProtoLens.maybeLens Data.ProtoLens.defMessage)+instance Data.ProtoLens.Field.HasField Channel "maybe'localConstraints" (Prelude.Maybe ChannelConstraints) where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _Channel'localConstraints+ (\ x__ y__ -> x__ {_Channel'localConstraints = y__}))+ Prelude.id+instance Data.ProtoLens.Field.HasField Channel "remoteConstraints" ChannelConstraints where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _Channel'remoteConstraints+ (\ x__ y__ -> x__ {_Channel'remoteConstraints = y__}))+ (Data.ProtoLens.maybeLens Data.ProtoLens.defMessage)+instance Data.ProtoLens.Field.HasField Channel "maybe'remoteConstraints" (Prelude.Maybe ChannelConstraints) where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _Channel'remoteConstraints+ (\ x__ y__ -> x__ {_Channel'remoteConstraints = y__}))+ Prelude.id+instance Data.ProtoLens.Message Channel where+ messageName _ = Data.Text.pack "lnrpc.Channel"+ packedMessageDescriptor _+ = "\n\+ \\aChannel\DC2\SYN\n\+ \\ACKactive\CAN\SOH \SOH(\bR\ACKactive\DC2#\n\+ \\rremote_pubkey\CAN\STX \SOH(\tR\fremotePubkey\DC2#\n\+ \\rchannel_point\CAN\ETX \SOH(\tR\fchannelPoint\DC2\ESC\n\+ \\achan_id\CAN\EOT \SOH(\EOTR\ACKchanIdB\STX0\SOH\DC2\SUB\n\+ \\bcapacity\CAN\ENQ \SOH(\ETXR\bcapacity\DC2#\n\+ \\rlocal_balance\CAN\ACK \SOH(\ETXR\flocalBalance\DC2%\n\+ \\SOremote_balance\CAN\a \SOH(\ETXR\rremoteBalance\DC2\GS\n\+ \\n\+ \commit_fee\CAN\b \SOH(\ETXR\tcommitFee\DC2#\n\+ \\rcommit_weight\CAN\t \SOH(\ETXR\fcommitWeight\DC2\FS\n\+ \\n\+ \fee_per_kw\CAN\n\+ \ \SOH(\ETXR\bfeePerKw\DC2+\n\+ \\DC1unsettled_balance\CAN\v \SOH(\ETXR\DLEunsettledBalance\DC2.\n\+ \\DC3total_satoshis_sent\CAN\f \SOH(\ETXR\DC1totalSatoshisSent\DC26\n\+ \\ETBtotal_satoshis_received\CAN\r \SOH(\ETXR\NAKtotalSatoshisReceived\DC2\US\n\+ \\vnum_updates\CAN\SO \SOH(\EOTR\n\+ \numUpdates\DC20\n\+ \\rpending_htlcs\CAN\SI \ETX(\v2\v.lnrpc.HTLCR\fpendingHtlcs\DC2\US\n\+ \\tcsv_delay\CAN\DLE \SOH(\rR\bcsvDelayB\STX\CAN\SOH\DC2\CAN\n\+ \\aprivate\CAN\DC1 \SOH(\bR\aprivate\DC2\FS\n\+ \\tinitiator\CAN\DC2 \SOH(\bR\tinitiator\DC2*\n\+ \\DC1chan_status_flags\CAN\DC3 \SOH(\tR\SIchanStatusFlags\DC27\n\+ \\SYNlocal_chan_reserve_sat\CAN\DC4 \SOH(\ETXR\DC3localChanReserveSatB\STX\CAN\SOH\DC29\n\+ \\ETBremote_chan_reserve_sat\CAN\NAK \SOH(\ETXR\DC4remoteChanReserveSatB\STX\CAN\SOH\DC2.\n\+ \\DC1static_remote_key\CAN\SYN \SOH(\bR\SIstaticRemoteKeyB\STX\CAN\SOH\DC2>\n\+ \\SIcommitment_type\CAN\SUB \SOH(\SO2\NAK.lnrpc.CommitmentTypeR\SOcommitmentType\DC2\SUB\n\+ \\blifetime\CAN\ETB \SOH(\ETXR\blifetime\DC2\SYN\n\+ \\ACKuptime\CAN\CAN \SOH(\ETXR\ACKuptime\DC2#\n\+ \\rclose_address\CAN\EM \SOH(\tR\fcloseAddress\DC2&\n\+ \\SIpush_amount_sat\CAN\ESC \SOH(\EOTR\rpushAmountSat\DC2\US\n\+ \\vthaw_height\CAN\FS \SOH(\rR\n\+ \thawHeight\DC2F\n\+ \\DC1local_constraints\CAN\GS \SOH(\v2\EM.lnrpc.ChannelConstraintsR\DLElocalConstraints\DC2H\n\+ \\DC2remote_constraints\CAN\RS \SOH(\v2\EM.lnrpc.ChannelConstraintsR\DC1remoteConstraints"+ packedFileDescriptor _ = packedFileDescriptor+ fieldsByTag+ = let+ active__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "active"+ (Data.ProtoLens.ScalarField Data.ProtoLens.BoolField ::+ Data.ProtoLens.FieldTypeDescriptor Prelude.Bool)+ (Data.ProtoLens.PlainField+ Data.ProtoLens.Optional (Data.ProtoLens.Field.field @"active")) ::+ Data.ProtoLens.FieldDescriptor Channel+ remotePubkey__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "remote_pubkey"+ (Data.ProtoLens.ScalarField Data.ProtoLens.StringField ::+ Data.ProtoLens.FieldTypeDescriptor Data.Text.Text)+ (Data.ProtoLens.PlainField+ Data.ProtoLens.Optional+ (Data.ProtoLens.Field.field @"remotePubkey")) ::+ Data.ProtoLens.FieldDescriptor Channel+ channelPoint__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "channel_point"+ (Data.ProtoLens.ScalarField Data.ProtoLens.StringField ::+ Data.ProtoLens.FieldTypeDescriptor Data.Text.Text)+ (Data.ProtoLens.PlainField+ Data.ProtoLens.Optional+ (Data.ProtoLens.Field.field @"channelPoint")) ::+ Data.ProtoLens.FieldDescriptor Channel+ chanId__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "chan_id"+ (Data.ProtoLens.ScalarField Data.ProtoLens.UInt64Field ::+ Data.ProtoLens.FieldTypeDescriptor Data.Word.Word64)+ (Data.ProtoLens.PlainField+ Data.ProtoLens.Optional (Data.ProtoLens.Field.field @"chanId")) ::+ Data.ProtoLens.FieldDescriptor Channel+ capacity__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "capacity"+ (Data.ProtoLens.ScalarField Data.ProtoLens.Int64Field ::+ Data.ProtoLens.FieldTypeDescriptor Data.Int.Int64)+ (Data.ProtoLens.PlainField+ Data.ProtoLens.Optional+ (Data.ProtoLens.Field.field @"capacity")) ::+ Data.ProtoLens.FieldDescriptor Channel+ localBalance__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "local_balance"+ (Data.ProtoLens.ScalarField Data.ProtoLens.Int64Field ::+ Data.ProtoLens.FieldTypeDescriptor Data.Int.Int64)+ (Data.ProtoLens.PlainField+ Data.ProtoLens.Optional+ (Data.ProtoLens.Field.field @"localBalance")) ::+ Data.ProtoLens.FieldDescriptor Channel+ remoteBalance__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "remote_balance"+ (Data.ProtoLens.ScalarField Data.ProtoLens.Int64Field ::+ Data.ProtoLens.FieldTypeDescriptor Data.Int.Int64)+ (Data.ProtoLens.PlainField+ Data.ProtoLens.Optional+ (Data.ProtoLens.Field.field @"remoteBalance")) ::+ Data.ProtoLens.FieldDescriptor Channel+ commitFee__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "commit_fee"+ (Data.ProtoLens.ScalarField Data.ProtoLens.Int64Field ::+ Data.ProtoLens.FieldTypeDescriptor Data.Int.Int64)+ (Data.ProtoLens.PlainField+ Data.ProtoLens.Optional+ (Data.ProtoLens.Field.field @"commitFee")) ::+ Data.ProtoLens.FieldDescriptor Channel+ commitWeight__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "commit_weight"+ (Data.ProtoLens.ScalarField Data.ProtoLens.Int64Field ::+ Data.ProtoLens.FieldTypeDescriptor Data.Int.Int64)+ (Data.ProtoLens.PlainField+ Data.ProtoLens.Optional+ (Data.ProtoLens.Field.field @"commitWeight")) ::+ Data.ProtoLens.FieldDescriptor Channel+ feePerKw__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "fee_per_kw"+ (Data.ProtoLens.ScalarField Data.ProtoLens.Int64Field ::+ Data.ProtoLens.FieldTypeDescriptor Data.Int.Int64)+ (Data.ProtoLens.PlainField+ Data.ProtoLens.Optional+ (Data.ProtoLens.Field.field @"feePerKw")) ::+ Data.ProtoLens.FieldDescriptor Channel+ unsettledBalance__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "unsettled_balance"+ (Data.ProtoLens.ScalarField Data.ProtoLens.Int64Field ::+ Data.ProtoLens.FieldTypeDescriptor Data.Int.Int64)+ (Data.ProtoLens.PlainField+ Data.ProtoLens.Optional+ (Data.ProtoLens.Field.field @"unsettledBalance")) ::+ Data.ProtoLens.FieldDescriptor Channel+ totalSatoshisSent__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "total_satoshis_sent"+ (Data.ProtoLens.ScalarField Data.ProtoLens.Int64Field ::+ Data.ProtoLens.FieldTypeDescriptor Data.Int.Int64)+ (Data.ProtoLens.PlainField+ Data.ProtoLens.Optional+ (Data.ProtoLens.Field.field @"totalSatoshisSent")) ::+ Data.ProtoLens.FieldDescriptor Channel+ totalSatoshisReceived__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "total_satoshis_received"+ (Data.ProtoLens.ScalarField Data.ProtoLens.Int64Field ::+ Data.ProtoLens.FieldTypeDescriptor Data.Int.Int64)+ (Data.ProtoLens.PlainField+ Data.ProtoLens.Optional+ (Data.ProtoLens.Field.field @"totalSatoshisReceived")) ::+ Data.ProtoLens.FieldDescriptor Channel+ numUpdates__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "num_updates"+ (Data.ProtoLens.ScalarField Data.ProtoLens.UInt64Field ::+ Data.ProtoLens.FieldTypeDescriptor Data.Word.Word64)+ (Data.ProtoLens.PlainField+ Data.ProtoLens.Optional+ (Data.ProtoLens.Field.field @"numUpdates")) ::+ Data.ProtoLens.FieldDescriptor Channel+ pendingHtlcs__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "pending_htlcs"+ (Data.ProtoLens.MessageField Data.ProtoLens.MessageType ::+ Data.ProtoLens.FieldTypeDescriptor HTLC)+ (Data.ProtoLens.RepeatedField+ Data.ProtoLens.Unpacked+ (Data.ProtoLens.Field.field @"pendingHtlcs")) ::+ Data.ProtoLens.FieldDescriptor Channel+ csvDelay__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "csv_delay"+ (Data.ProtoLens.ScalarField Data.ProtoLens.UInt32Field ::+ Data.ProtoLens.FieldTypeDescriptor Data.Word.Word32)+ (Data.ProtoLens.PlainField+ Data.ProtoLens.Optional+ (Data.ProtoLens.Field.field @"csvDelay")) ::+ Data.ProtoLens.FieldDescriptor Channel+ private__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "private"+ (Data.ProtoLens.ScalarField Data.ProtoLens.BoolField ::+ Data.ProtoLens.FieldTypeDescriptor Prelude.Bool)+ (Data.ProtoLens.PlainField+ Data.ProtoLens.Optional (Data.ProtoLens.Field.field @"private")) ::+ Data.ProtoLens.FieldDescriptor Channel+ initiator__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "initiator"+ (Data.ProtoLens.ScalarField Data.ProtoLens.BoolField ::+ Data.ProtoLens.FieldTypeDescriptor Prelude.Bool)+ (Data.ProtoLens.PlainField+ Data.ProtoLens.Optional+ (Data.ProtoLens.Field.field @"initiator")) ::+ Data.ProtoLens.FieldDescriptor Channel+ chanStatusFlags__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "chan_status_flags"+ (Data.ProtoLens.ScalarField Data.ProtoLens.StringField ::+ Data.ProtoLens.FieldTypeDescriptor Data.Text.Text)+ (Data.ProtoLens.PlainField+ Data.ProtoLens.Optional+ (Data.ProtoLens.Field.field @"chanStatusFlags")) ::+ Data.ProtoLens.FieldDescriptor Channel+ localChanReserveSat__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "local_chan_reserve_sat"+ (Data.ProtoLens.ScalarField Data.ProtoLens.Int64Field ::+ Data.ProtoLens.FieldTypeDescriptor Data.Int.Int64)+ (Data.ProtoLens.PlainField+ Data.ProtoLens.Optional+ (Data.ProtoLens.Field.field @"localChanReserveSat")) ::+ Data.ProtoLens.FieldDescriptor Channel+ remoteChanReserveSat__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "remote_chan_reserve_sat"+ (Data.ProtoLens.ScalarField Data.ProtoLens.Int64Field ::+ Data.ProtoLens.FieldTypeDescriptor Data.Int.Int64)+ (Data.ProtoLens.PlainField+ Data.ProtoLens.Optional+ (Data.ProtoLens.Field.field @"remoteChanReserveSat")) ::+ Data.ProtoLens.FieldDescriptor Channel+ staticRemoteKey__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "static_remote_key"+ (Data.ProtoLens.ScalarField Data.ProtoLens.BoolField ::+ Data.ProtoLens.FieldTypeDescriptor Prelude.Bool)+ (Data.ProtoLens.PlainField+ Data.ProtoLens.Optional+ (Data.ProtoLens.Field.field @"staticRemoteKey")) ::+ Data.ProtoLens.FieldDescriptor Channel+ commitmentType__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "commitment_type"+ (Data.ProtoLens.ScalarField Data.ProtoLens.EnumField ::+ Data.ProtoLens.FieldTypeDescriptor CommitmentType)+ (Data.ProtoLens.PlainField+ Data.ProtoLens.Optional+ (Data.ProtoLens.Field.field @"commitmentType")) ::+ Data.ProtoLens.FieldDescriptor Channel+ lifetime__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "lifetime"+ (Data.ProtoLens.ScalarField Data.ProtoLens.Int64Field ::+ Data.ProtoLens.FieldTypeDescriptor Data.Int.Int64)+ (Data.ProtoLens.PlainField+ Data.ProtoLens.Optional+ (Data.ProtoLens.Field.field @"lifetime")) ::+ Data.ProtoLens.FieldDescriptor Channel+ uptime__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "uptime"+ (Data.ProtoLens.ScalarField Data.ProtoLens.Int64Field ::+ Data.ProtoLens.FieldTypeDescriptor Data.Int.Int64)+ (Data.ProtoLens.PlainField+ Data.ProtoLens.Optional (Data.ProtoLens.Field.field @"uptime")) ::+ Data.ProtoLens.FieldDescriptor Channel+ closeAddress__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "close_address"+ (Data.ProtoLens.ScalarField Data.ProtoLens.StringField ::+ Data.ProtoLens.FieldTypeDescriptor Data.Text.Text)+ (Data.ProtoLens.PlainField+ Data.ProtoLens.Optional+ (Data.ProtoLens.Field.field @"closeAddress")) ::+ Data.ProtoLens.FieldDescriptor Channel+ pushAmountSat__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "push_amount_sat"+ (Data.ProtoLens.ScalarField Data.ProtoLens.UInt64Field ::+ Data.ProtoLens.FieldTypeDescriptor Data.Word.Word64)+ (Data.ProtoLens.PlainField+ Data.ProtoLens.Optional+ (Data.ProtoLens.Field.field @"pushAmountSat")) ::+ Data.ProtoLens.FieldDescriptor Channel+ thawHeight__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "thaw_height"+ (Data.ProtoLens.ScalarField Data.ProtoLens.UInt32Field ::+ Data.ProtoLens.FieldTypeDescriptor Data.Word.Word32)+ (Data.ProtoLens.PlainField+ Data.ProtoLens.Optional+ (Data.ProtoLens.Field.field @"thawHeight")) ::+ Data.ProtoLens.FieldDescriptor Channel+ localConstraints__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "local_constraints"+ (Data.ProtoLens.MessageField Data.ProtoLens.MessageType ::+ Data.ProtoLens.FieldTypeDescriptor ChannelConstraints)+ (Data.ProtoLens.OptionalField+ (Data.ProtoLens.Field.field @"maybe'localConstraints")) ::+ Data.ProtoLens.FieldDescriptor Channel+ remoteConstraints__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "remote_constraints"+ (Data.ProtoLens.MessageField Data.ProtoLens.MessageType ::+ Data.ProtoLens.FieldTypeDescriptor ChannelConstraints)+ (Data.ProtoLens.OptionalField+ (Data.ProtoLens.Field.field @"maybe'remoteConstraints")) ::+ Data.ProtoLens.FieldDescriptor Channel+ in+ Data.Map.fromList+ [(Data.ProtoLens.Tag 1, active__field_descriptor),+ (Data.ProtoLens.Tag 2, remotePubkey__field_descriptor),+ (Data.ProtoLens.Tag 3, channelPoint__field_descriptor),+ (Data.ProtoLens.Tag 4, chanId__field_descriptor),+ (Data.ProtoLens.Tag 5, capacity__field_descriptor),+ (Data.ProtoLens.Tag 6, localBalance__field_descriptor),+ (Data.ProtoLens.Tag 7, remoteBalance__field_descriptor),+ (Data.ProtoLens.Tag 8, commitFee__field_descriptor),+ (Data.ProtoLens.Tag 9, commitWeight__field_descriptor),+ (Data.ProtoLens.Tag 10, feePerKw__field_descriptor),+ (Data.ProtoLens.Tag 11, unsettledBalance__field_descriptor),+ (Data.ProtoLens.Tag 12, totalSatoshisSent__field_descriptor),+ (Data.ProtoLens.Tag 13, totalSatoshisReceived__field_descriptor),+ (Data.ProtoLens.Tag 14, numUpdates__field_descriptor),+ (Data.ProtoLens.Tag 15, pendingHtlcs__field_descriptor),+ (Data.ProtoLens.Tag 16, csvDelay__field_descriptor),+ (Data.ProtoLens.Tag 17, private__field_descriptor),+ (Data.ProtoLens.Tag 18, initiator__field_descriptor),+ (Data.ProtoLens.Tag 19, chanStatusFlags__field_descriptor),+ (Data.ProtoLens.Tag 20, localChanReserveSat__field_descriptor),+ (Data.ProtoLens.Tag 21, remoteChanReserveSat__field_descriptor),+ (Data.ProtoLens.Tag 22, staticRemoteKey__field_descriptor),+ (Data.ProtoLens.Tag 26, commitmentType__field_descriptor),+ (Data.ProtoLens.Tag 23, lifetime__field_descriptor),+ (Data.ProtoLens.Tag 24, uptime__field_descriptor),+ (Data.ProtoLens.Tag 25, closeAddress__field_descriptor),+ (Data.ProtoLens.Tag 27, pushAmountSat__field_descriptor),+ (Data.ProtoLens.Tag 28, thawHeight__field_descriptor),+ (Data.ProtoLens.Tag 29, localConstraints__field_descriptor),+ (Data.ProtoLens.Tag 30, remoteConstraints__field_descriptor)]+ unknownFields+ = Lens.Family2.Unchecked.lens+ _Channel'_unknownFields+ (\ x__ y__ -> x__ {_Channel'_unknownFields = y__})+ defMessage+ = Channel'_constructor+ {_Channel'active = Data.ProtoLens.fieldDefault,+ _Channel'remotePubkey = Data.ProtoLens.fieldDefault,+ _Channel'channelPoint = Data.ProtoLens.fieldDefault,+ _Channel'chanId = Data.ProtoLens.fieldDefault,+ _Channel'capacity = Data.ProtoLens.fieldDefault,+ _Channel'localBalance = Data.ProtoLens.fieldDefault,+ _Channel'remoteBalance = Data.ProtoLens.fieldDefault,+ _Channel'commitFee = Data.ProtoLens.fieldDefault,+ _Channel'commitWeight = Data.ProtoLens.fieldDefault,+ _Channel'feePerKw = Data.ProtoLens.fieldDefault,+ _Channel'unsettledBalance = Data.ProtoLens.fieldDefault,+ _Channel'totalSatoshisSent = Data.ProtoLens.fieldDefault,+ _Channel'totalSatoshisReceived = Data.ProtoLens.fieldDefault,+ _Channel'numUpdates = Data.ProtoLens.fieldDefault,+ _Channel'pendingHtlcs = Data.Vector.Generic.empty,+ _Channel'csvDelay = Data.ProtoLens.fieldDefault,+ _Channel'private = Data.ProtoLens.fieldDefault,+ _Channel'initiator = Data.ProtoLens.fieldDefault,+ _Channel'chanStatusFlags = Data.ProtoLens.fieldDefault,+ _Channel'localChanReserveSat = Data.ProtoLens.fieldDefault,+ _Channel'remoteChanReserveSat = Data.ProtoLens.fieldDefault,+ _Channel'staticRemoteKey = Data.ProtoLens.fieldDefault,+ _Channel'commitmentType = Data.ProtoLens.fieldDefault,+ _Channel'lifetime = Data.ProtoLens.fieldDefault,+ _Channel'uptime = Data.ProtoLens.fieldDefault,+ _Channel'closeAddress = Data.ProtoLens.fieldDefault,+ _Channel'pushAmountSat = Data.ProtoLens.fieldDefault,+ _Channel'thawHeight = Data.ProtoLens.fieldDefault,+ _Channel'localConstraints = Prelude.Nothing,+ _Channel'remoteConstraints = Prelude.Nothing,+ _Channel'_unknownFields = []}+ parseMessage+ = let+ loop ::+ Channel+ -> Data.ProtoLens.Encoding.Growing.Growing Data.Vector.Vector Data.ProtoLens.Encoding.Growing.RealWorld HTLC+ -> Data.ProtoLens.Encoding.Bytes.Parser Channel+ loop x mutable'pendingHtlcs+ = do end <- Data.ProtoLens.Encoding.Bytes.atEnd+ if end then+ do frozen'pendingHtlcs <- Data.ProtoLens.Encoding.Parser.Unsafe.unsafeLiftIO+ (Data.ProtoLens.Encoding.Growing.unsafeFreeze+ mutable'pendingHtlcs)+ (let missing = []+ in+ if Prelude.null missing then+ Prelude.return ()+ else+ Prelude.fail+ ((Prelude.++)+ "Missing required fields: "+ (Prelude.show (missing :: [Prelude.String]))))+ Prelude.return+ (Lens.Family2.over+ Data.ProtoLens.unknownFields (\ !t -> Prelude.reverse t)+ (Lens.Family2.set+ (Data.ProtoLens.Field.field @"vec'pendingHtlcs")+ frozen'pendingHtlcs x))+ else+ do tag <- Data.ProtoLens.Encoding.Bytes.getVarInt+ case tag of+ 8 -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (Prelude.fmap+ ((Prelude./=) 0) Data.ProtoLens.Encoding.Bytes.getVarInt)+ "active"+ loop+ (Lens.Family2.set (Data.ProtoLens.Field.field @"active") y x)+ mutable'pendingHtlcs+ 18+ -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (do value <- do len <- Data.ProtoLens.Encoding.Bytes.getVarInt+ Data.ProtoLens.Encoding.Bytes.getBytes+ (Prelude.fromIntegral len)+ Data.ProtoLens.Encoding.Bytes.runEither+ (case Data.Text.Encoding.decodeUtf8' value of+ (Prelude.Left err)+ -> Prelude.Left (Prelude.show err)+ (Prelude.Right r) -> Prelude.Right r))+ "remote_pubkey"+ loop+ (Lens.Family2.set+ (Data.ProtoLens.Field.field @"remotePubkey") y x)+ mutable'pendingHtlcs+ 26+ -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (do value <- do len <- Data.ProtoLens.Encoding.Bytes.getVarInt+ Data.ProtoLens.Encoding.Bytes.getBytes+ (Prelude.fromIntegral len)+ Data.ProtoLens.Encoding.Bytes.runEither+ (case Data.Text.Encoding.decodeUtf8' value of+ (Prelude.Left err)+ -> Prelude.Left (Prelude.show err)+ (Prelude.Right r) -> Prelude.Right r))+ "channel_point"+ loop+ (Lens.Family2.set+ (Data.ProtoLens.Field.field @"channelPoint") y x)+ mutable'pendingHtlcs+ 32+ -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ Data.ProtoLens.Encoding.Bytes.getVarInt "chan_id"+ loop+ (Lens.Family2.set (Data.ProtoLens.Field.field @"chanId") y x)+ mutable'pendingHtlcs+ 40+ -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (Prelude.fmap+ Prelude.fromIntegral+ Data.ProtoLens.Encoding.Bytes.getVarInt)+ "capacity"+ loop+ (Lens.Family2.set (Data.ProtoLens.Field.field @"capacity") y x)+ mutable'pendingHtlcs+ 48+ -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (Prelude.fmap+ Prelude.fromIntegral+ Data.ProtoLens.Encoding.Bytes.getVarInt)+ "local_balance"+ loop+ (Lens.Family2.set+ (Data.ProtoLens.Field.field @"localBalance") y x)+ mutable'pendingHtlcs+ 56+ -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (Prelude.fmap+ Prelude.fromIntegral+ Data.ProtoLens.Encoding.Bytes.getVarInt)+ "remote_balance"+ loop+ (Lens.Family2.set+ (Data.ProtoLens.Field.field @"remoteBalance") y x)+ mutable'pendingHtlcs+ 64+ -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (Prelude.fmap+ Prelude.fromIntegral+ Data.ProtoLens.Encoding.Bytes.getVarInt)+ "commit_fee"+ loop+ (Lens.Family2.set (Data.ProtoLens.Field.field @"commitFee") y x)+ mutable'pendingHtlcs+ 72+ -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (Prelude.fmap+ Prelude.fromIntegral+ Data.ProtoLens.Encoding.Bytes.getVarInt)+ "commit_weight"+ loop+ (Lens.Family2.set+ (Data.ProtoLens.Field.field @"commitWeight") y x)+ mutable'pendingHtlcs+ 80+ -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (Prelude.fmap+ Prelude.fromIntegral+ Data.ProtoLens.Encoding.Bytes.getVarInt)+ "fee_per_kw"+ loop+ (Lens.Family2.set (Data.ProtoLens.Field.field @"feePerKw") y x)+ mutable'pendingHtlcs+ 88+ -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (Prelude.fmap+ Prelude.fromIntegral+ Data.ProtoLens.Encoding.Bytes.getVarInt)+ "unsettled_balance"+ loop+ (Lens.Family2.set+ (Data.ProtoLens.Field.field @"unsettledBalance") y x)+ mutable'pendingHtlcs+ 96+ -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (Prelude.fmap+ Prelude.fromIntegral+ Data.ProtoLens.Encoding.Bytes.getVarInt)+ "total_satoshis_sent"+ loop+ (Lens.Family2.set+ (Data.ProtoLens.Field.field @"totalSatoshisSent") y x)+ mutable'pendingHtlcs+ 104+ -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (Prelude.fmap+ Prelude.fromIntegral+ Data.ProtoLens.Encoding.Bytes.getVarInt)+ "total_satoshis_received"+ loop+ (Lens.Family2.set+ (Data.ProtoLens.Field.field @"totalSatoshisReceived") y x)+ mutable'pendingHtlcs+ 112+ -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ Data.ProtoLens.Encoding.Bytes.getVarInt "num_updates"+ loop+ (Lens.Family2.set (Data.ProtoLens.Field.field @"numUpdates") y x)+ mutable'pendingHtlcs+ 122+ -> do !y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (do len <- Data.ProtoLens.Encoding.Bytes.getVarInt+ Data.ProtoLens.Encoding.Bytes.isolate+ (Prelude.fromIntegral len)+ Data.ProtoLens.parseMessage)+ "pending_htlcs"+ v <- Data.ProtoLens.Encoding.Parser.Unsafe.unsafeLiftIO+ (Data.ProtoLens.Encoding.Growing.append+ mutable'pendingHtlcs y)+ loop x v+ 128+ -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (Prelude.fmap+ Prelude.fromIntegral+ Data.ProtoLens.Encoding.Bytes.getVarInt)+ "csv_delay"+ loop+ (Lens.Family2.set (Data.ProtoLens.Field.field @"csvDelay") y x)+ mutable'pendingHtlcs+ 136+ -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (Prelude.fmap+ ((Prelude./=) 0) Data.ProtoLens.Encoding.Bytes.getVarInt)+ "private"+ loop+ (Lens.Family2.set (Data.ProtoLens.Field.field @"private") y x)+ mutable'pendingHtlcs+ 144+ -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (Prelude.fmap+ ((Prelude./=) 0) Data.ProtoLens.Encoding.Bytes.getVarInt)+ "initiator"+ loop+ (Lens.Family2.set (Data.ProtoLens.Field.field @"initiator") y x)+ mutable'pendingHtlcs+ 154+ -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (do value <- do len <- Data.ProtoLens.Encoding.Bytes.getVarInt+ Data.ProtoLens.Encoding.Bytes.getBytes+ (Prelude.fromIntegral len)+ Data.ProtoLens.Encoding.Bytes.runEither+ (case Data.Text.Encoding.decodeUtf8' value of+ (Prelude.Left err)+ -> Prelude.Left (Prelude.show err)+ (Prelude.Right r) -> Prelude.Right r))+ "chan_status_flags"+ loop+ (Lens.Family2.set+ (Data.ProtoLens.Field.field @"chanStatusFlags") y x)+ mutable'pendingHtlcs+ 160+ -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (Prelude.fmap+ Prelude.fromIntegral+ Data.ProtoLens.Encoding.Bytes.getVarInt)+ "local_chan_reserve_sat"+ loop+ (Lens.Family2.set+ (Data.ProtoLens.Field.field @"localChanReserveSat") y x)+ mutable'pendingHtlcs+ 168+ -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (Prelude.fmap+ Prelude.fromIntegral+ Data.ProtoLens.Encoding.Bytes.getVarInt)+ "remote_chan_reserve_sat"+ loop+ (Lens.Family2.set+ (Data.ProtoLens.Field.field @"remoteChanReserveSat") y x)+ mutable'pendingHtlcs+ 176+ -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (Prelude.fmap+ ((Prelude./=) 0) Data.ProtoLens.Encoding.Bytes.getVarInt)+ "static_remote_key"+ loop+ (Lens.Family2.set+ (Data.ProtoLens.Field.field @"staticRemoteKey") y x)+ mutable'pendingHtlcs+ 208+ -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (Prelude.fmap+ Prelude.toEnum+ (Prelude.fmap+ Prelude.fromIntegral+ Data.ProtoLens.Encoding.Bytes.getVarInt))+ "commitment_type"+ loop+ (Lens.Family2.set+ (Data.ProtoLens.Field.field @"commitmentType") y x)+ mutable'pendingHtlcs+ 184+ -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (Prelude.fmap+ Prelude.fromIntegral+ Data.ProtoLens.Encoding.Bytes.getVarInt)+ "lifetime"+ loop+ (Lens.Family2.set (Data.ProtoLens.Field.field @"lifetime") y x)+ mutable'pendingHtlcs+ 192+ -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (Prelude.fmap+ Prelude.fromIntegral+ Data.ProtoLens.Encoding.Bytes.getVarInt)+ "uptime"+ loop+ (Lens.Family2.set (Data.ProtoLens.Field.field @"uptime") y x)+ mutable'pendingHtlcs+ 202+ -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (do value <- do len <- Data.ProtoLens.Encoding.Bytes.getVarInt+ Data.ProtoLens.Encoding.Bytes.getBytes+ (Prelude.fromIntegral len)+ Data.ProtoLens.Encoding.Bytes.runEither+ (case Data.Text.Encoding.decodeUtf8' value of+ (Prelude.Left err)+ -> Prelude.Left (Prelude.show err)+ (Prelude.Right r) -> Prelude.Right r))+ "close_address"+ loop+ (Lens.Family2.set+ (Data.ProtoLens.Field.field @"closeAddress") y x)+ mutable'pendingHtlcs+ 216+ -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ Data.ProtoLens.Encoding.Bytes.getVarInt "push_amount_sat"+ loop+ (Lens.Family2.set+ (Data.ProtoLens.Field.field @"pushAmountSat") y x)+ mutable'pendingHtlcs+ 224+ -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (Prelude.fmap+ Prelude.fromIntegral+ Data.ProtoLens.Encoding.Bytes.getVarInt)+ "thaw_height"+ loop+ (Lens.Family2.set (Data.ProtoLens.Field.field @"thawHeight") y x)+ mutable'pendingHtlcs+ 234+ -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (do len <- Data.ProtoLens.Encoding.Bytes.getVarInt+ Data.ProtoLens.Encoding.Bytes.isolate+ (Prelude.fromIntegral len) Data.ProtoLens.parseMessage)+ "local_constraints"+ loop+ (Lens.Family2.set+ (Data.ProtoLens.Field.field @"localConstraints") y x)+ mutable'pendingHtlcs+ 242+ -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (do len <- Data.ProtoLens.Encoding.Bytes.getVarInt+ Data.ProtoLens.Encoding.Bytes.isolate+ (Prelude.fromIntegral len) Data.ProtoLens.parseMessage)+ "remote_constraints"+ loop+ (Lens.Family2.set+ (Data.ProtoLens.Field.field @"remoteConstraints") y x)+ mutable'pendingHtlcs+ wire+ -> do !y <- Data.ProtoLens.Encoding.Wire.parseTaggedValueFromWire+ wire+ loop+ (Lens.Family2.over+ Data.ProtoLens.unknownFields (\ !t -> (:) y t) x)+ mutable'pendingHtlcs+ in+ (Data.ProtoLens.Encoding.Bytes.<?>)+ (do mutable'pendingHtlcs <- Data.ProtoLens.Encoding.Parser.Unsafe.unsafeLiftIO+ Data.ProtoLens.Encoding.Growing.new+ loop Data.ProtoLens.defMessage mutable'pendingHtlcs)+ "Channel"+ buildMessage+ = \ _x+ -> (Data.Monoid.<>)+ (let+ _v = Lens.Family2.view (Data.ProtoLens.Field.field @"active") _x+ in+ if (Prelude.==) _v Data.ProtoLens.fieldDefault then+ Data.Monoid.mempty+ else+ (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 8)+ ((Prelude..)+ Data.ProtoLens.Encoding.Bytes.putVarInt (\ b -> if b then 1 else 0)+ _v))+ ((Data.Monoid.<>)+ (let+ _v+ = Lens.Family2.view (Data.ProtoLens.Field.field @"remotePubkey") _x+ in+ if (Prelude.==) _v Data.ProtoLens.fieldDefault then+ Data.Monoid.mempty+ else+ (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 18)+ ((Prelude..)+ (\ bs+ -> (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt+ (Prelude.fromIntegral (Data.ByteString.length bs)))+ (Data.ProtoLens.Encoding.Bytes.putBytes bs))+ Data.Text.Encoding.encodeUtf8 _v))+ ((Data.Monoid.<>)+ (let+ _v+ = Lens.Family2.view (Data.ProtoLens.Field.field @"channelPoint") _x+ in+ if (Prelude.==) _v Data.ProtoLens.fieldDefault then+ Data.Monoid.mempty+ else+ (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 26)+ ((Prelude..)+ (\ bs+ -> (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt+ (Prelude.fromIntegral (Data.ByteString.length bs)))+ (Data.ProtoLens.Encoding.Bytes.putBytes bs))+ Data.Text.Encoding.encodeUtf8 _v))+ ((Data.Monoid.<>)+ (let+ _v = Lens.Family2.view (Data.ProtoLens.Field.field @"chanId") _x+ in+ if (Prelude.==) _v Data.ProtoLens.fieldDefault then+ Data.Monoid.mempty+ else+ (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 32)+ (Data.ProtoLens.Encoding.Bytes.putVarInt _v))+ ((Data.Monoid.<>)+ (let+ _v = Lens.Family2.view (Data.ProtoLens.Field.field @"capacity") _x+ in+ if (Prelude.==) _v Data.ProtoLens.fieldDefault then+ Data.Monoid.mempty+ else+ (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 40)+ ((Prelude..)+ Data.ProtoLens.Encoding.Bytes.putVarInt Prelude.fromIntegral+ _v))+ ((Data.Monoid.<>)+ (let+ _v+ = Lens.Family2.view (Data.ProtoLens.Field.field @"localBalance") _x+ in+ if (Prelude.==) _v Data.ProtoLens.fieldDefault then+ Data.Monoid.mempty+ else+ (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 48)+ ((Prelude..)+ Data.ProtoLens.Encoding.Bytes.putVarInt Prelude.fromIntegral+ _v))+ ((Data.Monoid.<>)+ (let+ _v+ = Lens.Family2.view+ (Data.ProtoLens.Field.field @"remoteBalance") _x+ in+ if (Prelude.==) _v Data.ProtoLens.fieldDefault then+ Data.Monoid.mempty+ else+ (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 56)+ ((Prelude..)+ Data.ProtoLens.Encoding.Bytes.putVarInt+ Prelude.fromIntegral _v))+ ((Data.Monoid.<>)+ (let+ _v+ = Lens.Family2.view+ (Data.ProtoLens.Field.field @"commitFee") _x+ in+ if (Prelude.==) _v Data.ProtoLens.fieldDefault then+ Data.Monoid.mempty+ else+ (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 64)+ ((Prelude..)+ Data.ProtoLens.Encoding.Bytes.putVarInt+ Prelude.fromIntegral _v))+ ((Data.Monoid.<>)+ (let+ _v+ = Lens.Family2.view+ (Data.ProtoLens.Field.field @"commitWeight") _x+ in+ if (Prelude.==) _v Data.ProtoLens.fieldDefault then+ Data.Monoid.mempty+ else+ (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 72)+ ((Prelude..)+ Data.ProtoLens.Encoding.Bytes.putVarInt+ Prelude.fromIntegral _v))+ ((Data.Monoid.<>)+ (let+ _v+ = Lens.Family2.view+ (Data.ProtoLens.Field.field @"feePerKw") _x+ in+ if (Prelude.==) _v Data.ProtoLens.fieldDefault then+ Data.Monoid.mempty+ else+ (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 80)+ ((Prelude..)+ Data.ProtoLens.Encoding.Bytes.putVarInt+ Prelude.fromIntegral _v))+ ((Data.Monoid.<>)+ (let+ _v+ = Lens.Family2.view+ (Data.ProtoLens.Field.field @"unsettledBalance")+ _x+ in+ if (Prelude.==) _v Data.ProtoLens.fieldDefault then+ Data.Monoid.mempty+ else+ (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 88)+ ((Prelude..)+ Data.ProtoLens.Encoding.Bytes.putVarInt+ Prelude.fromIntegral _v))+ ((Data.Monoid.<>)+ (let+ _v+ = Lens.Family2.view+ (Data.ProtoLens.Field.field+ @"totalSatoshisSent")+ _x+ in+ if (Prelude.==) _v Data.ProtoLens.fieldDefault then+ Data.Monoid.mempty+ else+ (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 96)+ ((Prelude..)+ Data.ProtoLens.Encoding.Bytes.putVarInt+ Prelude.fromIntegral _v))+ ((Data.Monoid.<>)+ (let+ _v+ = Lens.Family2.view+ (Data.ProtoLens.Field.field+ @"totalSatoshisReceived")+ _x+ in+ if (Prelude.==)+ _v Data.ProtoLens.fieldDefault then+ Data.Monoid.mempty+ else+ (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt+ 104)+ ((Prelude..)+ Data.ProtoLens.Encoding.Bytes.putVarInt+ Prelude.fromIntegral _v))+ ((Data.Monoid.<>)+ (let+ _v+ = Lens.Family2.view+ (Data.ProtoLens.Field.field+ @"numUpdates")+ _x+ in+ if (Prelude.==)+ _v Data.ProtoLens.fieldDefault then+ Data.Monoid.mempty+ else+ (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt+ 112)+ (Data.ProtoLens.Encoding.Bytes.putVarInt+ _v))+ ((Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.foldMapBuilder+ (\ _v+ -> (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt+ 122)+ ((Prelude..)+ (\ bs+ -> (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt+ (Prelude.fromIntegral+ (Data.ByteString.length+ bs)))+ (Data.ProtoLens.Encoding.Bytes.putBytes+ bs))+ Data.ProtoLens.encodeMessage+ _v))+ (Lens.Family2.view+ (Data.ProtoLens.Field.field+ @"vec'pendingHtlcs")+ _x))+ ((Data.Monoid.<>)+ (let+ _v+ = Lens.Family2.view+ (Data.ProtoLens.Field.field+ @"csvDelay")+ _x+ in+ if (Prelude.==)+ _v+ Data.ProtoLens.fieldDefault then+ Data.Monoid.mempty+ else+ (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt+ 128)+ ((Prelude..)+ Data.ProtoLens.Encoding.Bytes.putVarInt+ Prelude.fromIntegral _v))+ ((Data.Monoid.<>)+ (let+ _v+ = Lens.Family2.view+ (Data.ProtoLens.Field.field+ @"private")+ _x+ in+ if (Prelude.==)+ _v+ Data.ProtoLens.fieldDefault then+ Data.Monoid.mempty+ else+ (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt+ 136)+ ((Prelude..)+ Data.ProtoLens.Encoding.Bytes.putVarInt+ (\ b -> if b then 1 else 0)+ _v))+ ((Data.Monoid.<>)+ (let+ _v+ = Lens.Family2.view+ (Data.ProtoLens.Field.field+ @"initiator")+ _x+ in+ if (Prelude.==)+ _v+ Data.ProtoLens.fieldDefault then+ Data.Monoid.mempty+ else+ (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt+ 144)+ ((Prelude..)+ Data.ProtoLens.Encoding.Bytes.putVarInt+ (\ b+ -> if b then+ 1+ else+ 0)+ _v))+ ((Data.Monoid.<>)+ (let+ _v+ = Lens.Family2.view+ (Data.ProtoLens.Field.field+ @"chanStatusFlags")+ _x+ in+ if (Prelude.==)+ _v+ Data.ProtoLens.fieldDefault then+ Data.Monoid.mempty+ else+ (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt+ 154)+ ((Prelude..)+ (\ bs+ -> (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt+ (Prelude.fromIntegral+ (Data.ByteString.length+ bs)))+ (Data.ProtoLens.Encoding.Bytes.putBytes+ bs))+ Data.Text.Encoding.encodeUtf8+ _v))+ ((Data.Monoid.<>)+ (let+ _v+ = Lens.Family2.view+ (Data.ProtoLens.Field.field+ @"localChanReserveSat")+ _x+ in+ if (Prelude.==)+ _v+ Data.ProtoLens.fieldDefault then+ Data.Monoid.mempty+ else+ (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt+ 160)+ ((Prelude..)+ Data.ProtoLens.Encoding.Bytes.putVarInt+ Prelude.fromIntegral+ _v))+ ((Data.Monoid.<>)+ (let+ _v+ = Lens.Family2.view+ (Data.ProtoLens.Field.field+ @"remoteChanReserveSat")+ _x+ in+ if (Prelude.==)+ _v+ Data.ProtoLens.fieldDefault then+ Data.Monoid.mempty+ else+ (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt+ 168)+ ((Prelude..)+ Data.ProtoLens.Encoding.Bytes.putVarInt+ Prelude.fromIntegral+ _v))+ ((Data.Monoid.<>)+ (let+ _v+ = Lens.Family2.view+ (Data.ProtoLens.Field.field+ @"staticRemoteKey")+ _x+ in+ if (Prelude.==)+ _v+ Data.ProtoLens.fieldDefault then+ Data.Monoid.mempty+ else+ (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt+ 176)+ ((Prelude..)+ Data.ProtoLens.Encoding.Bytes.putVarInt+ (\ b+ -> if b then+ 1+ else+ 0)+ _v))+ ((Data.Monoid.<>)+ (let+ _v+ = Lens.Family2.view+ (Data.ProtoLens.Field.field+ @"commitmentType")+ _x+ in+ if (Prelude.==)+ _v+ Data.ProtoLens.fieldDefault then+ Data.Monoid.mempty+ else+ (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt+ 208)+ ((Prelude..)+ ((Prelude..)+ Data.ProtoLens.Encoding.Bytes.putVarInt+ Prelude.fromIntegral)+ Prelude.fromEnum+ _v))+ ((Data.Monoid.<>)+ (let+ _v+ = Lens.Family2.view+ (Data.ProtoLens.Field.field+ @"lifetime")+ _x+ in+ if (Prelude.==)+ _v+ Data.ProtoLens.fieldDefault then+ Data.Monoid.mempty+ else+ (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt+ 184)+ ((Prelude..)+ Data.ProtoLens.Encoding.Bytes.putVarInt+ Prelude.fromIntegral+ _v))+ ((Data.Monoid.<>)+ (let+ _v+ = Lens.Family2.view+ (Data.ProtoLens.Field.field+ @"uptime")+ _x+ in+ if (Prelude.==)+ _v+ Data.ProtoLens.fieldDefault then+ Data.Monoid.mempty+ else+ (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt+ 192)+ ((Prelude..)+ Data.ProtoLens.Encoding.Bytes.putVarInt+ Prelude.fromIntegral+ _v))+ ((Data.Monoid.<>)+ (let+ _v+ = Lens.Family2.view+ (Data.ProtoLens.Field.field+ @"closeAddress")+ _x+ in+ if (Prelude.==)+ _v+ Data.ProtoLens.fieldDefault then+ Data.Monoid.mempty+ else+ (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt+ 202)+ ((Prelude..)+ (\ bs+ -> (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt+ (Prelude.fromIntegral+ (Data.ByteString.length+ bs)))+ (Data.ProtoLens.Encoding.Bytes.putBytes+ bs))+ Data.Text.Encoding.encodeUtf8+ _v))+ ((Data.Monoid.<>)+ (let+ _v+ = Lens.Family2.view+ (Data.ProtoLens.Field.field+ @"pushAmountSat")+ _x+ in+ if (Prelude.==)+ _v+ Data.ProtoLens.fieldDefault then+ Data.Monoid.mempty+ else+ (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt+ 216)+ (Data.ProtoLens.Encoding.Bytes.putVarInt+ _v))+ ((Data.Monoid.<>)+ (let+ _v+ = Lens.Family2.view+ (Data.ProtoLens.Field.field+ @"thawHeight")+ _x+ in+ if (Prelude.==)+ _v+ Data.ProtoLens.fieldDefault then+ Data.Monoid.mempty+ else+ (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt+ 224)+ ((Prelude..)+ Data.ProtoLens.Encoding.Bytes.putVarInt+ Prelude.fromIntegral+ _v))+ ((Data.Monoid.<>)+ (case+ Lens.Family2.view+ (Data.ProtoLens.Field.field+ @"maybe'localConstraints")+ _x+ of+ Prelude.Nothing+ -> Data.Monoid.mempty+ (Prelude.Just _v)+ -> (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt+ 234)+ ((Prelude..)+ (\ bs+ -> (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt+ (Prelude.fromIntegral+ (Data.ByteString.length+ bs)))+ (Data.ProtoLens.Encoding.Bytes.putBytes+ bs))+ Data.ProtoLens.encodeMessage+ _v))+ ((Data.Monoid.<>)+ (case+ Lens.Family2.view+ (Data.ProtoLens.Field.field+ @"maybe'remoteConstraints")+ _x+ of+ Prelude.Nothing+ -> Data.Monoid.mempty+ (Prelude.Just _v)+ -> (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt+ 242)+ ((Prelude..)+ (\ bs+ -> (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt+ (Prelude.fromIntegral+ (Data.ByteString.length+ bs)))+ (Data.ProtoLens.Encoding.Bytes.putBytes+ bs))+ Data.ProtoLens.encodeMessage+ _v))+ (Data.ProtoLens.Encoding.Wire.buildFieldSet+ (Lens.Family2.view+ Data.ProtoLens.unknownFields+ _x)))))))))))))))))))))))))))))))+instance Control.DeepSeq.NFData Channel where+ rnf+ = \ x__+ -> Control.DeepSeq.deepseq+ (_Channel'_unknownFields x__)+ (Control.DeepSeq.deepseq+ (_Channel'active x__)+ (Control.DeepSeq.deepseq+ (_Channel'remotePubkey x__)+ (Control.DeepSeq.deepseq+ (_Channel'channelPoint x__)+ (Control.DeepSeq.deepseq+ (_Channel'chanId x__)+ (Control.DeepSeq.deepseq+ (_Channel'capacity x__)+ (Control.DeepSeq.deepseq+ (_Channel'localBalance x__)+ (Control.DeepSeq.deepseq+ (_Channel'remoteBalance x__)+ (Control.DeepSeq.deepseq+ (_Channel'commitFee x__)+ (Control.DeepSeq.deepseq+ (_Channel'commitWeight x__)+ (Control.DeepSeq.deepseq+ (_Channel'feePerKw x__)+ (Control.DeepSeq.deepseq+ (_Channel'unsettledBalance x__)+ (Control.DeepSeq.deepseq+ (_Channel'totalSatoshisSent x__)+ (Control.DeepSeq.deepseq+ (_Channel'totalSatoshisReceived x__)+ (Control.DeepSeq.deepseq+ (_Channel'numUpdates x__)+ (Control.DeepSeq.deepseq+ (_Channel'pendingHtlcs x__)+ (Control.DeepSeq.deepseq+ (_Channel'csvDelay x__)+ (Control.DeepSeq.deepseq+ (_Channel'private x__)+ (Control.DeepSeq.deepseq+ (_Channel'initiator x__)+ (Control.DeepSeq.deepseq+ (_Channel'chanStatusFlags x__)+ (Control.DeepSeq.deepseq+ (_Channel'localChanReserveSat+ x__)+ (Control.DeepSeq.deepseq+ (_Channel'remoteChanReserveSat+ x__)+ (Control.DeepSeq.deepseq+ (_Channel'staticRemoteKey+ x__)+ (Control.DeepSeq.deepseq+ (_Channel'commitmentType+ x__)+ (Control.DeepSeq.deepseq+ (_Channel'lifetime+ x__)+ (Control.DeepSeq.deepseq+ (_Channel'uptime+ x__)+ (Control.DeepSeq.deepseq+ (_Channel'closeAddress+ x__)+ (Control.DeepSeq.deepseq+ (_Channel'pushAmountSat+ x__)+ (Control.DeepSeq.deepseq+ (_Channel'thawHeight+ x__)+ (Control.DeepSeq.deepseq+ (_Channel'localConstraints+ x__)+ (Control.DeepSeq.deepseq+ (_Channel'remoteConstraints+ x__)+ ()))))))))))))))))))))))))))))))+{- | Fields :+ -}+data ChannelBalanceRequest+ = ChannelBalanceRequest'_constructor {_ChannelBalanceRequest'_unknownFields :: !Data.ProtoLens.FieldSet}+ deriving stock (Prelude.Eq, Prelude.Ord, GHC.Generics.Generic)+instance Prelude.Show ChannelBalanceRequest where+ showsPrec _ __x __s+ = Prelude.showChar+ '{'+ (Prelude.showString+ (Data.ProtoLens.showMessageShort __x) (Prelude.showChar '}' __s))+instance Text.PrettyPrint.GenericPretty.Out ChannelBalanceRequest+instance Data.ProtoLens.Message ChannelBalanceRequest where+ messageName _ = Data.Text.pack "lnrpc.ChannelBalanceRequest"+ packedMessageDescriptor _+ = "\n\+ \\NAKChannelBalanceRequest"+ packedFileDescriptor _ = packedFileDescriptor+ fieldsByTag = let in Data.Map.fromList []+ unknownFields+ = Lens.Family2.Unchecked.lens+ _ChannelBalanceRequest'_unknownFields+ (\ x__ y__ -> x__ {_ChannelBalanceRequest'_unknownFields = y__})+ defMessage+ = ChannelBalanceRequest'_constructor+ {_ChannelBalanceRequest'_unknownFields = []}+ parseMessage+ = let+ loop ::+ ChannelBalanceRequest+ -> Data.ProtoLens.Encoding.Bytes.Parser ChannelBalanceRequest+ loop x+ = do end <- Data.ProtoLens.Encoding.Bytes.atEnd+ if end then+ do (let missing = []+ in+ if Prelude.null missing then+ Prelude.return ()+ else+ Prelude.fail+ ((Prelude.++)+ "Missing required fields: "+ (Prelude.show (missing :: [Prelude.String]))))+ Prelude.return+ (Lens.Family2.over+ Data.ProtoLens.unknownFields (\ !t -> Prelude.reverse t) x)+ else+ do tag <- Data.ProtoLens.Encoding.Bytes.getVarInt+ case tag of {+ wire+ -> do !y <- Data.ProtoLens.Encoding.Wire.parseTaggedValueFromWire+ wire+ loop+ (Lens.Family2.over+ Data.ProtoLens.unknownFields (\ !t -> (:) y t) x) }+ in+ (Data.ProtoLens.Encoding.Bytes.<?>)+ (do loop Data.ProtoLens.defMessage) "ChannelBalanceRequest"+ buildMessage+ = \ _x+ -> Data.ProtoLens.Encoding.Wire.buildFieldSet+ (Lens.Family2.view Data.ProtoLens.unknownFields _x)+instance Control.DeepSeq.NFData ChannelBalanceRequest where+ rnf+ = \ x__+ -> Control.DeepSeq.deepseq+ (_ChannelBalanceRequest'_unknownFields x__) ()+{- | Fields :+ + * 'Proto.Lnrpc.Ln0_Fields.balance' @:: Lens' ChannelBalanceResponse Data.Int.Int64@+ * 'Proto.Lnrpc.Ln0_Fields.pendingOpenBalance' @:: Lens' ChannelBalanceResponse Data.Int.Int64@+ * 'Proto.Lnrpc.Ln0_Fields.localBalance' @:: Lens' ChannelBalanceResponse Amount@+ * 'Proto.Lnrpc.Ln0_Fields.maybe'localBalance' @:: Lens' ChannelBalanceResponse (Prelude.Maybe Amount)@+ * 'Proto.Lnrpc.Ln0_Fields.remoteBalance' @:: Lens' ChannelBalanceResponse Amount@+ * 'Proto.Lnrpc.Ln0_Fields.maybe'remoteBalance' @:: Lens' ChannelBalanceResponse (Prelude.Maybe Amount)@+ * 'Proto.Lnrpc.Ln0_Fields.unsettledLocalBalance' @:: Lens' ChannelBalanceResponse Amount@+ * 'Proto.Lnrpc.Ln0_Fields.maybe'unsettledLocalBalance' @:: Lens' ChannelBalanceResponse (Prelude.Maybe Amount)@+ * 'Proto.Lnrpc.Ln0_Fields.unsettledRemoteBalance' @:: Lens' ChannelBalanceResponse Amount@+ * 'Proto.Lnrpc.Ln0_Fields.maybe'unsettledRemoteBalance' @:: Lens' ChannelBalanceResponse (Prelude.Maybe Amount)@+ * 'Proto.Lnrpc.Ln0_Fields.pendingOpenLocalBalance' @:: Lens' ChannelBalanceResponse Amount@+ * 'Proto.Lnrpc.Ln0_Fields.maybe'pendingOpenLocalBalance' @:: Lens' ChannelBalanceResponse (Prelude.Maybe Amount)@+ * 'Proto.Lnrpc.Ln0_Fields.pendingOpenRemoteBalance' @:: Lens' ChannelBalanceResponse Amount@+ * 'Proto.Lnrpc.Ln0_Fields.maybe'pendingOpenRemoteBalance' @:: Lens' ChannelBalanceResponse (Prelude.Maybe Amount)@ -}+data ChannelBalanceResponse+ = ChannelBalanceResponse'_constructor {_ChannelBalanceResponse'balance :: !Data.Int.Int64,+ _ChannelBalanceResponse'pendingOpenBalance :: !Data.Int.Int64,+ _ChannelBalanceResponse'localBalance :: !(Prelude.Maybe Amount),+ _ChannelBalanceResponse'remoteBalance :: !(Prelude.Maybe Amount),+ _ChannelBalanceResponse'unsettledLocalBalance :: !(Prelude.Maybe Amount),+ _ChannelBalanceResponse'unsettledRemoteBalance :: !(Prelude.Maybe Amount),+ _ChannelBalanceResponse'pendingOpenLocalBalance :: !(Prelude.Maybe Amount),+ _ChannelBalanceResponse'pendingOpenRemoteBalance :: !(Prelude.Maybe Amount),+ _ChannelBalanceResponse'_unknownFields :: !Data.ProtoLens.FieldSet}+ deriving stock (Prelude.Eq, Prelude.Ord, GHC.Generics.Generic)+instance Prelude.Show ChannelBalanceResponse where+ showsPrec _ __x __s+ = Prelude.showChar+ '{'+ (Prelude.showString+ (Data.ProtoLens.showMessageShort __x) (Prelude.showChar '}' __s))+instance Text.PrettyPrint.GenericPretty.Out ChannelBalanceResponse+instance Data.ProtoLens.Field.HasField ChannelBalanceResponse "balance" Data.Int.Int64 where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _ChannelBalanceResponse'balance+ (\ x__ y__ -> x__ {_ChannelBalanceResponse'balance = y__}))+ Prelude.id+instance Data.ProtoLens.Field.HasField ChannelBalanceResponse "pendingOpenBalance" Data.Int.Int64 where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _ChannelBalanceResponse'pendingOpenBalance+ (\ x__ y__+ -> x__ {_ChannelBalanceResponse'pendingOpenBalance = y__}))+ Prelude.id+instance Data.ProtoLens.Field.HasField ChannelBalanceResponse "localBalance" Amount where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _ChannelBalanceResponse'localBalance+ (\ x__ y__ -> x__ {_ChannelBalanceResponse'localBalance = y__}))+ (Data.ProtoLens.maybeLens Data.ProtoLens.defMessage)+instance Data.ProtoLens.Field.HasField ChannelBalanceResponse "maybe'localBalance" (Prelude.Maybe Amount) where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _ChannelBalanceResponse'localBalance+ (\ x__ y__ -> x__ {_ChannelBalanceResponse'localBalance = y__}))+ Prelude.id+instance Data.ProtoLens.Field.HasField ChannelBalanceResponse "remoteBalance" Amount where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _ChannelBalanceResponse'remoteBalance+ (\ x__ y__ -> x__ {_ChannelBalanceResponse'remoteBalance = y__}))+ (Data.ProtoLens.maybeLens Data.ProtoLens.defMessage)+instance Data.ProtoLens.Field.HasField ChannelBalanceResponse "maybe'remoteBalance" (Prelude.Maybe Amount) where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _ChannelBalanceResponse'remoteBalance+ (\ x__ y__ -> x__ {_ChannelBalanceResponse'remoteBalance = y__}))+ Prelude.id+instance Data.ProtoLens.Field.HasField ChannelBalanceResponse "unsettledLocalBalance" Amount where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _ChannelBalanceResponse'unsettledLocalBalance+ (\ x__ y__+ -> x__ {_ChannelBalanceResponse'unsettledLocalBalance = y__}))+ (Data.ProtoLens.maybeLens Data.ProtoLens.defMessage)+instance Data.ProtoLens.Field.HasField ChannelBalanceResponse "maybe'unsettledLocalBalance" (Prelude.Maybe Amount) where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _ChannelBalanceResponse'unsettledLocalBalance+ (\ x__ y__+ -> x__ {_ChannelBalanceResponse'unsettledLocalBalance = y__}))+ Prelude.id+instance Data.ProtoLens.Field.HasField ChannelBalanceResponse "unsettledRemoteBalance" Amount where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _ChannelBalanceResponse'unsettledRemoteBalance+ (\ x__ y__+ -> x__ {_ChannelBalanceResponse'unsettledRemoteBalance = y__}))+ (Data.ProtoLens.maybeLens Data.ProtoLens.defMessage)+instance Data.ProtoLens.Field.HasField ChannelBalanceResponse "maybe'unsettledRemoteBalance" (Prelude.Maybe Amount) where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _ChannelBalanceResponse'unsettledRemoteBalance+ (\ x__ y__+ -> x__ {_ChannelBalanceResponse'unsettledRemoteBalance = y__}))+ Prelude.id+instance Data.ProtoLens.Field.HasField ChannelBalanceResponse "pendingOpenLocalBalance" Amount where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _ChannelBalanceResponse'pendingOpenLocalBalance+ (\ x__ y__+ -> x__ {_ChannelBalanceResponse'pendingOpenLocalBalance = y__}))+ (Data.ProtoLens.maybeLens Data.ProtoLens.defMessage)+instance Data.ProtoLens.Field.HasField ChannelBalanceResponse "maybe'pendingOpenLocalBalance" (Prelude.Maybe Amount) where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _ChannelBalanceResponse'pendingOpenLocalBalance+ (\ x__ y__+ -> x__ {_ChannelBalanceResponse'pendingOpenLocalBalance = y__}))+ Prelude.id+instance Data.ProtoLens.Field.HasField ChannelBalanceResponse "pendingOpenRemoteBalance" Amount where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _ChannelBalanceResponse'pendingOpenRemoteBalance+ (\ x__ y__+ -> x__ {_ChannelBalanceResponse'pendingOpenRemoteBalance = y__}))+ (Data.ProtoLens.maybeLens Data.ProtoLens.defMessage)+instance Data.ProtoLens.Field.HasField ChannelBalanceResponse "maybe'pendingOpenRemoteBalance" (Prelude.Maybe Amount) where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _ChannelBalanceResponse'pendingOpenRemoteBalance+ (\ x__ y__+ -> x__ {_ChannelBalanceResponse'pendingOpenRemoteBalance = y__}))+ Prelude.id+instance Data.ProtoLens.Message ChannelBalanceResponse where+ messageName _ = Data.Text.pack "lnrpc.ChannelBalanceResponse"+ packedMessageDescriptor _+ = "\n\+ \\SYNChannelBalanceResponse\DC2\FS\n\+ \\abalance\CAN\SOH \SOH(\ETXR\abalanceB\STX\CAN\SOH\DC24\n\+ \\DC4pending_open_balance\CAN\STX \SOH(\ETXR\DC2pendingOpenBalanceB\STX\CAN\SOH\DC22\n\+ \\rlocal_balance\CAN\ETX \SOH(\v2\r.lnrpc.AmountR\flocalBalance\DC24\n\+ \\SOremote_balance\CAN\EOT \SOH(\v2\r.lnrpc.AmountR\rremoteBalance\DC2E\n\+ \\ETBunsettled_local_balance\CAN\ENQ \SOH(\v2\r.lnrpc.AmountR\NAKunsettledLocalBalance\DC2G\n\+ \\CANunsettled_remote_balance\CAN\ACK \SOH(\v2\r.lnrpc.AmountR\SYNunsettledRemoteBalance\DC2J\n\+ \\SUBpending_open_local_balance\CAN\a \SOH(\v2\r.lnrpc.AmountR\ETBpendingOpenLocalBalance\DC2L\n\+ \\ESCpending_open_remote_balance\CAN\b \SOH(\v2\r.lnrpc.AmountR\CANpendingOpenRemoteBalance"+ packedFileDescriptor _ = packedFileDescriptor+ fieldsByTag+ = let+ balance__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "balance"+ (Data.ProtoLens.ScalarField Data.ProtoLens.Int64Field ::+ Data.ProtoLens.FieldTypeDescriptor Data.Int.Int64)+ (Data.ProtoLens.PlainField+ Data.ProtoLens.Optional (Data.ProtoLens.Field.field @"balance")) ::+ Data.ProtoLens.FieldDescriptor ChannelBalanceResponse+ pendingOpenBalance__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "pending_open_balance"+ (Data.ProtoLens.ScalarField Data.ProtoLens.Int64Field ::+ Data.ProtoLens.FieldTypeDescriptor Data.Int.Int64)+ (Data.ProtoLens.PlainField+ Data.ProtoLens.Optional+ (Data.ProtoLens.Field.field @"pendingOpenBalance")) ::+ Data.ProtoLens.FieldDescriptor ChannelBalanceResponse+ localBalance__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "local_balance"+ (Data.ProtoLens.MessageField Data.ProtoLens.MessageType ::+ Data.ProtoLens.FieldTypeDescriptor Amount)+ (Data.ProtoLens.OptionalField+ (Data.ProtoLens.Field.field @"maybe'localBalance")) ::+ Data.ProtoLens.FieldDescriptor ChannelBalanceResponse+ remoteBalance__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "remote_balance"+ (Data.ProtoLens.MessageField Data.ProtoLens.MessageType ::+ Data.ProtoLens.FieldTypeDescriptor Amount)+ (Data.ProtoLens.OptionalField+ (Data.ProtoLens.Field.field @"maybe'remoteBalance")) ::+ Data.ProtoLens.FieldDescriptor ChannelBalanceResponse+ unsettledLocalBalance__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "unsettled_local_balance"+ (Data.ProtoLens.MessageField Data.ProtoLens.MessageType ::+ Data.ProtoLens.FieldTypeDescriptor Amount)+ (Data.ProtoLens.OptionalField+ (Data.ProtoLens.Field.field @"maybe'unsettledLocalBalance")) ::+ Data.ProtoLens.FieldDescriptor ChannelBalanceResponse+ unsettledRemoteBalance__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "unsettled_remote_balance"+ (Data.ProtoLens.MessageField Data.ProtoLens.MessageType ::+ Data.ProtoLens.FieldTypeDescriptor Amount)+ (Data.ProtoLens.OptionalField+ (Data.ProtoLens.Field.field @"maybe'unsettledRemoteBalance")) ::+ Data.ProtoLens.FieldDescriptor ChannelBalanceResponse+ pendingOpenLocalBalance__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "pending_open_local_balance"+ (Data.ProtoLens.MessageField Data.ProtoLens.MessageType ::+ Data.ProtoLens.FieldTypeDescriptor Amount)+ (Data.ProtoLens.OptionalField+ (Data.ProtoLens.Field.field @"maybe'pendingOpenLocalBalance")) ::+ Data.ProtoLens.FieldDescriptor ChannelBalanceResponse+ pendingOpenRemoteBalance__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "pending_open_remote_balance"+ (Data.ProtoLens.MessageField Data.ProtoLens.MessageType ::+ Data.ProtoLens.FieldTypeDescriptor Amount)+ (Data.ProtoLens.OptionalField+ (Data.ProtoLens.Field.field @"maybe'pendingOpenRemoteBalance")) ::+ Data.ProtoLens.FieldDescriptor ChannelBalanceResponse+ in+ Data.Map.fromList+ [(Data.ProtoLens.Tag 1, balance__field_descriptor),+ (Data.ProtoLens.Tag 2, pendingOpenBalance__field_descriptor),+ (Data.ProtoLens.Tag 3, localBalance__field_descriptor),+ (Data.ProtoLens.Tag 4, remoteBalance__field_descriptor),+ (Data.ProtoLens.Tag 5, unsettledLocalBalance__field_descriptor),+ (Data.ProtoLens.Tag 6, unsettledRemoteBalance__field_descriptor),+ (Data.ProtoLens.Tag 7, pendingOpenLocalBalance__field_descriptor),+ (Data.ProtoLens.Tag 8, pendingOpenRemoteBalance__field_descriptor)]+ unknownFields+ = Lens.Family2.Unchecked.lens+ _ChannelBalanceResponse'_unknownFields+ (\ x__ y__ -> x__ {_ChannelBalanceResponse'_unknownFields = y__})+ defMessage+ = ChannelBalanceResponse'_constructor+ {_ChannelBalanceResponse'balance = Data.ProtoLens.fieldDefault,+ _ChannelBalanceResponse'pendingOpenBalance = Data.ProtoLens.fieldDefault,+ _ChannelBalanceResponse'localBalance = Prelude.Nothing,+ _ChannelBalanceResponse'remoteBalance = Prelude.Nothing,+ _ChannelBalanceResponse'unsettledLocalBalance = Prelude.Nothing,+ _ChannelBalanceResponse'unsettledRemoteBalance = Prelude.Nothing,+ _ChannelBalanceResponse'pendingOpenLocalBalance = Prelude.Nothing,+ _ChannelBalanceResponse'pendingOpenRemoteBalance = Prelude.Nothing,+ _ChannelBalanceResponse'_unknownFields = []}+ parseMessage+ = let+ loop ::+ ChannelBalanceResponse+ -> Data.ProtoLens.Encoding.Bytes.Parser ChannelBalanceResponse+ loop x+ = do end <- Data.ProtoLens.Encoding.Bytes.atEnd+ if end then+ do (let missing = []+ in+ if Prelude.null missing then+ Prelude.return ()+ else+ Prelude.fail+ ((Prelude.++)+ "Missing required fields: "+ (Prelude.show (missing :: [Prelude.String]))))+ Prelude.return+ (Lens.Family2.over+ Data.ProtoLens.unknownFields (\ !t -> Prelude.reverse t) x)+ else+ do tag <- Data.ProtoLens.Encoding.Bytes.getVarInt+ case tag of+ 8 -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (Prelude.fmap+ Prelude.fromIntegral+ Data.ProtoLens.Encoding.Bytes.getVarInt)+ "balance"+ loop (Lens.Family2.set (Data.ProtoLens.Field.field @"balance") y x)+ 16+ -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (Prelude.fmap+ Prelude.fromIntegral+ Data.ProtoLens.Encoding.Bytes.getVarInt)+ "pending_open_balance"+ loop+ (Lens.Family2.set+ (Data.ProtoLens.Field.field @"pendingOpenBalance") y x)+ 26+ -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (do len <- Data.ProtoLens.Encoding.Bytes.getVarInt+ Data.ProtoLens.Encoding.Bytes.isolate+ (Prelude.fromIntegral len) Data.ProtoLens.parseMessage)+ "local_balance"+ loop+ (Lens.Family2.set+ (Data.ProtoLens.Field.field @"localBalance") y x)+ 34+ -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (do len <- Data.ProtoLens.Encoding.Bytes.getVarInt+ Data.ProtoLens.Encoding.Bytes.isolate+ (Prelude.fromIntegral len) Data.ProtoLens.parseMessage)+ "remote_balance"+ loop+ (Lens.Family2.set+ (Data.ProtoLens.Field.field @"remoteBalance") y x)+ 42+ -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (do len <- Data.ProtoLens.Encoding.Bytes.getVarInt+ Data.ProtoLens.Encoding.Bytes.isolate+ (Prelude.fromIntegral len) Data.ProtoLens.parseMessage)+ "unsettled_local_balance"+ loop+ (Lens.Family2.set+ (Data.ProtoLens.Field.field @"unsettledLocalBalance") y x)+ 50+ -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (do len <- Data.ProtoLens.Encoding.Bytes.getVarInt+ Data.ProtoLens.Encoding.Bytes.isolate+ (Prelude.fromIntegral len) Data.ProtoLens.parseMessage)+ "unsettled_remote_balance"+ loop+ (Lens.Family2.set+ (Data.ProtoLens.Field.field @"unsettledRemoteBalance") y x)+ 58+ -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (do len <- Data.ProtoLens.Encoding.Bytes.getVarInt+ Data.ProtoLens.Encoding.Bytes.isolate+ (Prelude.fromIntegral len) Data.ProtoLens.parseMessage)+ "pending_open_local_balance"+ loop+ (Lens.Family2.set+ (Data.ProtoLens.Field.field @"pendingOpenLocalBalance") y x)+ 66+ -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (do len <- Data.ProtoLens.Encoding.Bytes.getVarInt+ Data.ProtoLens.Encoding.Bytes.isolate+ (Prelude.fromIntegral len) Data.ProtoLens.parseMessage)+ "pending_open_remote_balance"+ loop+ (Lens.Family2.set+ (Data.ProtoLens.Field.field @"pendingOpenRemoteBalance") y x)+ wire+ -> do !y <- Data.ProtoLens.Encoding.Wire.parseTaggedValueFromWire+ wire+ loop+ (Lens.Family2.over+ Data.ProtoLens.unknownFields (\ !t -> (:) y t) x)+ in+ (Data.ProtoLens.Encoding.Bytes.<?>)+ (do loop Data.ProtoLens.defMessage) "ChannelBalanceResponse"+ buildMessage+ = \ _x+ -> (Data.Monoid.<>)+ (let+ _v = Lens.Family2.view (Data.ProtoLens.Field.field @"balance") _x+ in+ if (Prelude.==) _v Data.ProtoLens.fieldDefault then+ Data.Monoid.mempty+ else+ (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 8)+ ((Prelude..)+ Data.ProtoLens.Encoding.Bytes.putVarInt Prelude.fromIntegral _v))+ ((Data.Monoid.<>)+ (let+ _v+ = Lens.Family2.view+ (Data.ProtoLens.Field.field @"pendingOpenBalance") _x+ in+ if (Prelude.==) _v Data.ProtoLens.fieldDefault then+ Data.Monoid.mempty+ else+ (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 16)+ ((Prelude..)+ Data.ProtoLens.Encoding.Bytes.putVarInt Prelude.fromIntegral _v))+ ((Data.Monoid.<>)+ (case+ Lens.Family2.view+ (Data.ProtoLens.Field.field @"maybe'localBalance") _x+ of+ Prelude.Nothing -> Data.Monoid.mempty+ (Prelude.Just _v)+ -> (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 26)+ ((Prelude..)+ (\ bs+ -> (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt+ (Prelude.fromIntegral (Data.ByteString.length bs)))+ (Data.ProtoLens.Encoding.Bytes.putBytes bs))+ Data.ProtoLens.encodeMessage _v))+ ((Data.Monoid.<>)+ (case+ Lens.Family2.view+ (Data.ProtoLens.Field.field @"maybe'remoteBalance") _x+ of+ Prelude.Nothing -> Data.Monoid.mempty+ (Prelude.Just _v)+ -> (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 34)+ ((Prelude..)+ (\ bs+ -> (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt+ (Prelude.fromIntegral (Data.ByteString.length bs)))+ (Data.ProtoLens.Encoding.Bytes.putBytes bs))+ Data.ProtoLens.encodeMessage _v))+ ((Data.Monoid.<>)+ (case+ Lens.Family2.view+ (Data.ProtoLens.Field.field @"maybe'unsettledLocalBalance") _x+ of+ Prelude.Nothing -> Data.Monoid.mempty+ (Prelude.Just _v)+ -> (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 42)+ ((Prelude..)+ (\ bs+ -> (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt+ (Prelude.fromIntegral (Data.ByteString.length bs)))+ (Data.ProtoLens.Encoding.Bytes.putBytes bs))+ Data.ProtoLens.encodeMessage _v))+ ((Data.Monoid.<>)+ (case+ Lens.Family2.view+ (Data.ProtoLens.Field.field @"maybe'unsettledRemoteBalance") _x+ of+ Prelude.Nothing -> Data.Monoid.mempty+ (Prelude.Just _v)+ -> (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 50)+ ((Prelude..)+ (\ bs+ -> (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt+ (Prelude.fromIntegral+ (Data.ByteString.length bs)))+ (Data.ProtoLens.Encoding.Bytes.putBytes bs))+ Data.ProtoLens.encodeMessage _v))+ ((Data.Monoid.<>)+ (case+ Lens.Family2.view+ (Data.ProtoLens.Field.field @"maybe'pendingOpenLocalBalance")+ _x+ of+ Prelude.Nothing -> Data.Monoid.mempty+ (Prelude.Just _v)+ -> (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 58)+ ((Prelude..)+ (\ bs+ -> (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt+ (Prelude.fromIntegral+ (Data.ByteString.length bs)))+ (Data.ProtoLens.Encoding.Bytes.putBytes bs))+ Data.ProtoLens.encodeMessage _v))+ ((Data.Monoid.<>)+ (case+ Lens.Family2.view+ (Data.ProtoLens.Field.field+ @"maybe'pendingOpenRemoteBalance")+ _x+ of+ Prelude.Nothing -> Data.Monoid.mempty+ (Prelude.Just _v)+ -> (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 66)+ ((Prelude..)+ (\ bs+ -> (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt+ (Prelude.fromIntegral+ (Data.ByteString.length bs)))+ (Data.ProtoLens.Encoding.Bytes.putBytes bs))+ Data.ProtoLens.encodeMessage _v))+ (Data.ProtoLens.Encoding.Wire.buildFieldSet+ (Lens.Family2.view Data.ProtoLens.unknownFields _x)))))))))+instance Control.DeepSeq.NFData ChannelBalanceResponse where+ rnf+ = \ x__+ -> Control.DeepSeq.deepseq+ (_ChannelBalanceResponse'_unknownFields x__)+ (Control.DeepSeq.deepseq+ (_ChannelBalanceResponse'balance x__)+ (Control.DeepSeq.deepseq+ (_ChannelBalanceResponse'pendingOpenBalance x__)+ (Control.DeepSeq.deepseq+ (_ChannelBalanceResponse'localBalance x__)+ (Control.DeepSeq.deepseq+ (_ChannelBalanceResponse'remoteBalance x__)+ (Control.DeepSeq.deepseq+ (_ChannelBalanceResponse'unsettledLocalBalance x__)+ (Control.DeepSeq.deepseq+ (_ChannelBalanceResponse'unsettledRemoteBalance x__)+ (Control.DeepSeq.deepseq+ (_ChannelBalanceResponse'pendingOpenLocalBalance x__)+ (Control.DeepSeq.deepseq+ (_ChannelBalanceResponse'pendingOpenRemoteBalance x__)+ ()))))))))+{- | Fields :+ + * 'Proto.Lnrpc.Ln0_Fields.channelPoint' @:: Lens' ChannelCloseSummary Data.Text.Text@+ * 'Proto.Lnrpc.Ln0_Fields.chanId' @:: Lens' ChannelCloseSummary Data.Word.Word64@+ * 'Proto.Lnrpc.Ln0_Fields.chainHash' @:: Lens' ChannelCloseSummary Data.Text.Text@+ * 'Proto.Lnrpc.Ln0_Fields.closingTxHash' @:: Lens' ChannelCloseSummary Data.Text.Text@+ * 'Proto.Lnrpc.Ln0_Fields.remotePubkey' @:: Lens' ChannelCloseSummary Data.Text.Text@+ * 'Proto.Lnrpc.Ln0_Fields.capacity' @:: Lens' ChannelCloseSummary Data.Int.Int64@+ * 'Proto.Lnrpc.Ln0_Fields.closeHeight' @:: Lens' ChannelCloseSummary Data.Word.Word32@+ * 'Proto.Lnrpc.Ln0_Fields.settledBalance' @:: Lens' ChannelCloseSummary Data.Int.Int64@+ * 'Proto.Lnrpc.Ln0_Fields.timeLockedBalance' @:: Lens' ChannelCloseSummary Data.Int.Int64@+ * 'Proto.Lnrpc.Ln0_Fields.closeType' @:: Lens' ChannelCloseSummary ChannelCloseSummary'ClosureType@+ * 'Proto.Lnrpc.Ln0_Fields.openInitiator' @:: Lens' ChannelCloseSummary Initiator@+ * 'Proto.Lnrpc.Ln0_Fields.closeInitiator' @:: Lens' ChannelCloseSummary Initiator@+ * 'Proto.Lnrpc.Ln0_Fields.resolutions' @:: Lens' ChannelCloseSummary [Resolution]@+ * 'Proto.Lnrpc.Ln0_Fields.vec'resolutions' @:: Lens' ChannelCloseSummary (Data.Vector.Vector Resolution)@ -}+data ChannelCloseSummary+ = ChannelCloseSummary'_constructor {_ChannelCloseSummary'channelPoint :: !Data.Text.Text,+ _ChannelCloseSummary'chanId :: !Data.Word.Word64,+ _ChannelCloseSummary'chainHash :: !Data.Text.Text,+ _ChannelCloseSummary'closingTxHash :: !Data.Text.Text,+ _ChannelCloseSummary'remotePubkey :: !Data.Text.Text,+ _ChannelCloseSummary'capacity :: !Data.Int.Int64,+ _ChannelCloseSummary'closeHeight :: !Data.Word.Word32,+ _ChannelCloseSummary'settledBalance :: !Data.Int.Int64,+ _ChannelCloseSummary'timeLockedBalance :: !Data.Int.Int64,+ _ChannelCloseSummary'closeType :: !ChannelCloseSummary'ClosureType,+ _ChannelCloseSummary'openInitiator :: !Initiator,+ _ChannelCloseSummary'closeInitiator :: !Initiator,+ _ChannelCloseSummary'resolutions :: !(Data.Vector.Vector Resolution),+ _ChannelCloseSummary'_unknownFields :: !Data.ProtoLens.FieldSet}+ deriving stock (Prelude.Eq, Prelude.Ord, GHC.Generics.Generic)+instance Prelude.Show ChannelCloseSummary where+ showsPrec _ __x __s+ = Prelude.showChar+ '{'+ (Prelude.showString+ (Data.ProtoLens.showMessageShort __x) (Prelude.showChar '}' __s))+instance Text.PrettyPrint.GenericPretty.Out ChannelCloseSummary+instance Data.ProtoLens.Field.HasField ChannelCloseSummary "channelPoint" Data.Text.Text where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _ChannelCloseSummary'channelPoint+ (\ x__ y__ -> x__ {_ChannelCloseSummary'channelPoint = y__}))+ Prelude.id+instance Data.ProtoLens.Field.HasField ChannelCloseSummary "chanId" Data.Word.Word64 where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _ChannelCloseSummary'chanId+ (\ x__ y__ -> x__ {_ChannelCloseSummary'chanId = y__}))+ Prelude.id+instance Data.ProtoLens.Field.HasField ChannelCloseSummary "chainHash" Data.Text.Text where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _ChannelCloseSummary'chainHash+ (\ x__ y__ -> x__ {_ChannelCloseSummary'chainHash = y__}))+ Prelude.id+instance Data.ProtoLens.Field.HasField ChannelCloseSummary "closingTxHash" Data.Text.Text where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _ChannelCloseSummary'closingTxHash+ (\ x__ y__ -> x__ {_ChannelCloseSummary'closingTxHash = y__}))+ Prelude.id+instance Data.ProtoLens.Field.HasField ChannelCloseSummary "remotePubkey" Data.Text.Text where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _ChannelCloseSummary'remotePubkey+ (\ x__ y__ -> x__ {_ChannelCloseSummary'remotePubkey = y__}))+ Prelude.id+instance Data.ProtoLens.Field.HasField ChannelCloseSummary "capacity" Data.Int.Int64 where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _ChannelCloseSummary'capacity+ (\ x__ y__ -> x__ {_ChannelCloseSummary'capacity = y__}))+ Prelude.id+instance Data.ProtoLens.Field.HasField ChannelCloseSummary "closeHeight" Data.Word.Word32 where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _ChannelCloseSummary'closeHeight+ (\ x__ y__ -> x__ {_ChannelCloseSummary'closeHeight = y__}))+ Prelude.id+instance Data.ProtoLens.Field.HasField ChannelCloseSummary "settledBalance" Data.Int.Int64 where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _ChannelCloseSummary'settledBalance+ (\ x__ y__ -> x__ {_ChannelCloseSummary'settledBalance = y__}))+ Prelude.id+instance Data.ProtoLens.Field.HasField ChannelCloseSummary "timeLockedBalance" Data.Int.Int64 where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _ChannelCloseSummary'timeLockedBalance+ (\ x__ y__ -> x__ {_ChannelCloseSummary'timeLockedBalance = y__}))+ Prelude.id+instance Data.ProtoLens.Field.HasField ChannelCloseSummary "closeType" ChannelCloseSummary'ClosureType where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _ChannelCloseSummary'closeType+ (\ x__ y__ -> x__ {_ChannelCloseSummary'closeType = y__}))+ Prelude.id+instance Data.ProtoLens.Field.HasField ChannelCloseSummary "openInitiator" Initiator where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _ChannelCloseSummary'openInitiator+ (\ x__ y__ -> x__ {_ChannelCloseSummary'openInitiator = y__}))+ Prelude.id+instance Data.ProtoLens.Field.HasField ChannelCloseSummary "closeInitiator" Initiator where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _ChannelCloseSummary'closeInitiator+ (\ x__ y__ -> x__ {_ChannelCloseSummary'closeInitiator = y__}))+ Prelude.id+instance Data.ProtoLens.Field.HasField ChannelCloseSummary "resolutions" [Resolution] where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _ChannelCloseSummary'resolutions+ (\ x__ y__ -> x__ {_ChannelCloseSummary'resolutions = y__}))+ (Lens.Family2.Unchecked.lens+ Data.Vector.Generic.toList+ (\ _ y__ -> Data.Vector.Generic.fromList y__))+instance Data.ProtoLens.Field.HasField ChannelCloseSummary "vec'resolutions" (Data.Vector.Vector Resolution) where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _ChannelCloseSummary'resolutions+ (\ x__ y__ -> x__ {_ChannelCloseSummary'resolutions = y__}))+ Prelude.id+instance Data.ProtoLens.Message ChannelCloseSummary where+ messageName _ = Data.Text.pack "lnrpc.ChannelCloseSummary"+ packedMessageDescriptor _+ = "\n\+ \\DC3ChannelCloseSummary\DC2#\n\+ \\rchannel_point\CAN\SOH \SOH(\tR\fchannelPoint\DC2\ESC\n\+ \\achan_id\CAN\STX \SOH(\EOTR\ACKchanIdB\STX0\SOH\DC2\GS\n\+ \\n\+ \chain_hash\CAN\ETX \SOH(\tR\tchainHash\DC2&\n\+ \\SIclosing_tx_hash\CAN\EOT \SOH(\tR\rclosingTxHash\DC2#\n\+ \\rremote_pubkey\CAN\ENQ \SOH(\tR\fremotePubkey\DC2\SUB\n\+ \\bcapacity\CAN\ACK \SOH(\ETXR\bcapacity\DC2!\n\+ \\fclose_height\CAN\a \SOH(\rR\vcloseHeight\DC2'\n\+ \\SIsettled_balance\CAN\b \SOH(\ETXR\SOsettledBalance\DC2.\n\+ \\DC3time_locked_balance\CAN\t \SOH(\ETXR\DC1timeLockedBalance\DC2E\n\+ \\n\+ \close_type\CAN\n\+ \ \SOH(\SO2&.lnrpc.ChannelCloseSummary.ClosureTypeR\tcloseType\DC27\n\+ \\SOopen_initiator\CAN\v \SOH(\SO2\DLE.lnrpc.InitiatorR\ropenInitiator\DC29\n\+ \\SIclose_initiator\CAN\f \SOH(\SO2\DLE.lnrpc.InitiatorR\SOcloseInitiator\DC23\n\+ \\vresolutions\CAN\r \ETX(\v2\DC1.lnrpc.ResolutionR\vresolutions\"\138\SOH\n\+ \\vClosureType\DC2\NAK\n\+ \\DC1COOPERATIVE_CLOSE\DLE\NUL\DC2\NAK\n\+ \\DC1LOCAL_FORCE_CLOSE\DLE\SOH\DC2\SYN\n\+ \\DC2REMOTE_FORCE_CLOSE\DLE\STX\DC2\DLE\n\+ \\fBREACH_CLOSE\DLE\ETX\DC2\DC4\n\+ \\DLEFUNDING_CANCELED\DLE\EOT\DC2\r\n\+ \\tABANDONED\DLE\ENQ"+ packedFileDescriptor _ = packedFileDescriptor+ fieldsByTag+ = let+ channelPoint__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "channel_point"+ (Data.ProtoLens.ScalarField Data.ProtoLens.StringField ::+ Data.ProtoLens.FieldTypeDescriptor Data.Text.Text)+ (Data.ProtoLens.PlainField+ Data.ProtoLens.Optional+ (Data.ProtoLens.Field.field @"channelPoint")) ::+ Data.ProtoLens.FieldDescriptor ChannelCloseSummary+ chanId__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "chan_id"+ (Data.ProtoLens.ScalarField Data.ProtoLens.UInt64Field ::+ Data.ProtoLens.FieldTypeDescriptor Data.Word.Word64)+ (Data.ProtoLens.PlainField+ Data.ProtoLens.Optional (Data.ProtoLens.Field.field @"chanId")) ::+ Data.ProtoLens.FieldDescriptor ChannelCloseSummary+ chainHash__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "chain_hash"+ (Data.ProtoLens.ScalarField Data.ProtoLens.StringField ::+ Data.ProtoLens.FieldTypeDescriptor Data.Text.Text)+ (Data.ProtoLens.PlainField+ Data.ProtoLens.Optional+ (Data.ProtoLens.Field.field @"chainHash")) ::+ Data.ProtoLens.FieldDescriptor ChannelCloseSummary+ closingTxHash__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "closing_tx_hash"+ (Data.ProtoLens.ScalarField Data.ProtoLens.StringField ::+ Data.ProtoLens.FieldTypeDescriptor Data.Text.Text)+ (Data.ProtoLens.PlainField+ Data.ProtoLens.Optional+ (Data.ProtoLens.Field.field @"closingTxHash")) ::+ Data.ProtoLens.FieldDescriptor ChannelCloseSummary+ remotePubkey__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "remote_pubkey"+ (Data.ProtoLens.ScalarField Data.ProtoLens.StringField ::+ Data.ProtoLens.FieldTypeDescriptor Data.Text.Text)+ (Data.ProtoLens.PlainField+ Data.ProtoLens.Optional+ (Data.ProtoLens.Field.field @"remotePubkey")) ::+ Data.ProtoLens.FieldDescriptor ChannelCloseSummary+ capacity__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "capacity"+ (Data.ProtoLens.ScalarField Data.ProtoLens.Int64Field ::+ Data.ProtoLens.FieldTypeDescriptor Data.Int.Int64)+ (Data.ProtoLens.PlainField+ Data.ProtoLens.Optional+ (Data.ProtoLens.Field.field @"capacity")) ::+ Data.ProtoLens.FieldDescriptor ChannelCloseSummary+ closeHeight__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "close_height"+ (Data.ProtoLens.ScalarField Data.ProtoLens.UInt32Field ::+ Data.ProtoLens.FieldTypeDescriptor Data.Word.Word32)+ (Data.ProtoLens.PlainField+ Data.ProtoLens.Optional+ (Data.ProtoLens.Field.field @"closeHeight")) ::+ Data.ProtoLens.FieldDescriptor ChannelCloseSummary+ settledBalance__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "settled_balance"+ (Data.ProtoLens.ScalarField Data.ProtoLens.Int64Field ::+ Data.ProtoLens.FieldTypeDescriptor Data.Int.Int64)+ (Data.ProtoLens.PlainField+ Data.ProtoLens.Optional+ (Data.ProtoLens.Field.field @"settledBalance")) ::+ Data.ProtoLens.FieldDescriptor ChannelCloseSummary+ timeLockedBalance__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "time_locked_balance"+ (Data.ProtoLens.ScalarField Data.ProtoLens.Int64Field ::+ Data.ProtoLens.FieldTypeDescriptor Data.Int.Int64)+ (Data.ProtoLens.PlainField+ Data.ProtoLens.Optional+ (Data.ProtoLens.Field.field @"timeLockedBalance")) ::+ Data.ProtoLens.FieldDescriptor ChannelCloseSummary+ closeType__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "close_type"+ (Data.ProtoLens.ScalarField Data.ProtoLens.EnumField ::+ Data.ProtoLens.FieldTypeDescriptor ChannelCloseSummary'ClosureType)+ (Data.ProtoLens.PlainField+ Data.ProtoLens.Optional+ (Data.ProtoLens.Field.field @"closeType")) ::+ Data.ProtoLens.FieldDescriptor ChannelCloseSummary+ openInitiator__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "open_initiator"+ (Data.ProtoLens.ScalarField Data.ProtoLens.EnumField ::+ Data.ProtoLens.FieldTypeDescriptor Initiator)+ (Data.ProtoLens.PlainField+ Data.ProtoLens.Optional+ (Data.ProtoLens.Field.field @"openInitiator")) ::+ Data.ProtoLens.FieldDescriptor ChannelCloseSummary+ closeInitiator__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "close_initiator"+ (Data.ProtoLens.ScalarField Data.ProtoLens.EnumField ::+ Data.ProtoLens.FieldTypeDescriptor Initiator)+ (Data.ProtoLens.PlainField+ Data.ProtoLens.Optional+ (Data.ProtoLens.Field.field @"closeInitiator")) ::+ Data.ProtoLens.FieldDescriptor ChannelCloseSummary+ resolutions__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "resolutions"+ (Data.ProtoLens.MessageField Data.ProtoLens.MessageType ::+ Data.ProtoLens.FieldTypeDescriptor Resolution)+ (Data.ProtoLens.RepeatedField+ Data.ProtoLens.Unpacked+ (Data.ProtoLens.Field.field @"resolutions")) ::+ Data.ProtoLens.FieldDescriptor ChannelCloseSummary+ in+ Data.Map.fromList+ [(Data.ProtoLens.Tag 1, channelPoint__field_descriptor),+ (Data.ProtoLens.Tag 2, chanId__field_descriptor),+ (Data.ProtoLens.Tag 3, chainHash__field_descriptor),+ (Data.ProtoLens.Tag 4, closingTxHash__field_descriptor),+ (Data.ProtoLens.Tag 5, remotePubkey__field_descriptor),+ (Data.ProtoLens.Tag 6, capacity__field_descriptor),+ (Data.ProtoLens.Tag 7, closeHeight__field_descriptor),+ (Data.ProtoLens.Tag 8, settledBalance__field_descriptor),+ (Data.ProtoLens.Tag 9, timeLockedBalance__field_descriptor),+ (Data.ProtoLens.Tag 10, closeType__field_descriptor),+ (Data.ProtoLens.Tag 11, openInitiator__field_descriptor),+ (Data.ProtoLens.Tag 12, closeInitiator__field_descriptor),+ (Data.ProtoLens.Tag 13, resolutions__field_descriptor)]+ unknownFields+ = Lens.Family2.Unchecked.lens+ _ChannelCloseSummary'_unknownFields+ (\ x__ y__ -> x__ {_ChannelCloseSummary'_unknownFields = y__})+ defMessage+ = ChannelCloseSummary'_constructor+ {_ChannelCloseSummary'channelPoint = Data.ProtoLens.fieldDefault,+ _ChannelCloseSummary'chanId = Data.ProtoLens.fieldDefault,+ _ChannelCloseSummary'chainHash = Data.ProtoLens.fieldDefault,+ _ChannelCloseSummary'closingTxHash = Data.ProtoLens.fieldDefault,+ _ChannelCloseSummary'remotePubkey = Data.ProtoLens.fieldDefault,+ _ChannelCloseSummary'capacity = Data.ProtoLens.fieldDefault,+ _ChannelCloseSummary'closeHeight = Data.ProtoLens.fieldDefault,+ _ChannelCloseSummary'settledBalance = Data.ProtoLens.fieldDefault,+ _ChannelCloseSummary'timeLockedBalance = Data.ProtoLens.fieldDefault,+ _ChannelCloseSummary'closeType = Data.ProtoLens.fieldDefault,+ _ChannelCloseSummary'openInitiator = Data.ProtoLens.fieldDefault,+ _ChannelCloseSummary'closeInitiator = Data.ProtoLens.fieldDefault,+ _ChannelCloseSummary'resolutions = Data.Vector.Generic.empty,+ _ChannelCloseSummary'_unknownFields = []}+ parseMessage+ = let+ loop ::+ ChannelCloseSummary+ -> Data.ProtoLens.Encoding.Growing.Growing Data.Vector.Vector Data.ProtoLens.Encoding.Growing.RealWorld Resolution+ -> Data.ProtoLens.Encoding.Bytes.Parser ChannelCloseSummary+ loop x mutable'resolutions+ = do end <- Data.ProtoLens.Encoding.Bytes.atEnd+ if end then+ do frozen'resolutions <- Data.ProtoLens.Encoding.Parser.Unsafe.unsafeLiftIO+ (Data.ProtoLens.Encoding.Growing.unsafeFreeze+ mutable'resolutions)+ (let missing = []+ in+ if Prelude.null missing then+ Prelude.return ()+ else+ Prelude.fail+ ((Prelude.++)+ "Missing required fields: "+ (Prelude.show (missing :: [Prelude.String]))))+ Prelude.return+ (Lens.Family2.over+ Data.ProtoLens.unknownFields (\ !t -> Prelude.reverse t)+ (Lens.Family2.set+ (Data.ProtoLens.Field.field @"vec'resolutions") frozen'resolutions+ x))+ else+ do tag <- Data.ProtoLens.Encoding.Bytes.getVarInt+ case tag of+ 10+ -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (do value <- do len <- Data.ProtoLens.Encoding.Bytes.getVarInt+ Data.ProtoLens.Encoding.Bytes.getBytes+ (Prelude.fromIntegral len)+ Data.ProtoLens.Encoding.Bytes.runEither+ (case Data.Text.Encoding.decodeUtf8' value of+ (Prelude.Left err)+ -> Prelude.Left (Prelude.show err)+ (Prelude.Right r) -> Prelude.Right r))+ "channel_point"+ loop+ (Lens.Family2.set+ (Data.ProtoLens.Field.field @"channelPoint") y x)+ mutable'resolutions+ 16+ -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ Data.ProtoLens.Encoding.Bytes.getVarInt "chan_id"+ loop+ (Lens.Family2.set (Data.ProtoLens.Field.field @"chanId") y x)+ mutable'resolutions+ 26+ -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (do value <- do len <- Data.ProtoLens.Encoding.Bytes.getVarInt+ Data.ProtoLens.Encoding.Bytes.getBytes+ (Prelude.fromIntegral len)+ Data.ProtoLens.Encoding.Bytes.runEither+ (case Data.Text.Encoding.decodeUtf8' value of+ (Prelude.Left err)+ -> Prelude.Left (Prelude.show err)+ (Prelude.Right r) -> Prelude.Right r))+ "chain_hash"+ loop+ (Lens.Family2.set (Data.ProtoLens.Field.field @"chainHash") y x)+ mutable'resolutions+ 34+ -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (do value <- do len <- Data.ProtoLens.Encoding.Bytes.getVarInt+ Data.ProtoLens.Encoding.Bytes.getBytes+ (Prelude.fromIntegral len)+ Data.ProtoLens.Encoding.Bytes.runEither+ (case Data.Text.Encoding.decodeUtf8' value of+ (Prelude.Left err)+ -> Prelude.Left (Prelude.show err)+ (Prelude.Right r) -> Prelude.Right r))+ "closing_tx_hash"+ loop+ (Lens.Family2.set+ (Data.ProtoLens.Field.field @"closingTxHash") y x)+ mutable'resolutions+ 42+ -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (do value <- do len <- Data.ProtoLens.Encoding.Bytes.getVarInt+ Data.ProtoLens.Encoding.Bytes.getBytes+ (Prelude.fromIntegral len)+ Data.ProtoLens.Encoding.Bytes.runEither+ (case Data.Text.Encoding.decodeUtf8' value of+ (Prelude.Left err)+ -> Prelude.Left (Prelude.show err)+ (Prelude.Right r) -> Prelude.Right r))+ "remote_pubkey"+ loop+ (Lens.Family2.set+ (Data.ProtoLens.Field.field @"remotePubkey") y x)+ mutable'resolutions+ 48+ -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (Prelude.fmap+ Prelude.fromIntegral+ Data.ProtoLens.Encoding.Bytes.getVarInt)+ "capacity"+ loop+ (Lens.Family2.set (Data.ProtoLens.Field.field @"capacity") y x)+ mutable'resolutions+ 56+ -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (Prelude.fmap+ Prelude.fromIntegral+ Data.ProtoLens.Encoding.Bytes.getVarInt)+ "close_height"+ loop+ (Lens.Family2.set (Data.ProtoLens.Field.field @"closeHeight") y x)+ mutable'resolutions+ 64+ -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (Prelude.fmap+ Prelude.fromIntegral+ Data.ProtoLens.Encoding.Bytes.getVarInt)+ "settled_balance"+ loop+ (Lens.Family2.set+ (Data.ProtoLens.Field.field @"settledBalance") y x)+ mutable'resolutions+ 72+ -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (Prelude.fmap+ Prelude.fromIntegral+ Data.ProtoLens.Encoding.Bytes.getVarInt)+ "time_locked_balance"+ loop+ (Lens.Family2.set+ (Data.ProtoLens.Field.field @"timeLockedBalance") y x)+ mutable'resolutions+ 80+ -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (Prelude.fmap+ Prelude.toEnum+ (Prelude.fmap+ Prelude.fromIntegral+ Data.ProtoLens.Encoding.Bytes.getVarInt))+ "close_type"+ loop+ (Lens.Family2.set (Data.ProtoLens.Field.field @"closeType") y x)+ mutable'resolutions+ 88+ -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (Prelude.fmap+ Prelude.toEnum+ (Prelude.fmap+ Prelude.fromIntegral+ Data.ProtoLens.Encoding.Bytes.getVarInt))+ "open_initiator"+ loop+ (Lens.Family2.set+ (Data.ProtoLens.Field.field @"openInitiator") y x)+ mutable'resolutions+ 96+ -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (Prelude.fmap+ Prelude.toEnum+ (Prelude.fmap+ Prelude.fromIntegral+ Data.ProtoLens.Encoding.Bytes.getVarInt))+ "close_initiator"+ loop+ (Lens.Family2.set+ (Data.ProtoLens.Field.field @"closeInitiator") y x)+ mutable'resolutions+ 106+ -> do !y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (do len <- Data.ProtoLens.Encoding.Bytes.getVarInt+ Data.ProtoLens.Encoding.Bytes.isolate+ (Prelude.fromIntegral len)+ Data.ProtoLens.parseMessage)+ "resolutions"+ v <- Data.ProtoLens.Encoding.Parser.Unsafe.unsafeLiftIO+ (Data.ProtoLens.Encoding.Growing.append+ mutable'resolutions y)+ loop x v+ wire+ -> do !y <- Data.ProtoLens.Encoding.Wire.parseTaggedValueFromWire+ wire+ loop+ (Lens.Family2.over+ Data.ProtoLens.unknownFields (\ !t -> (:) y t) x)+ mutable'resolutions+ in+ (Data.ProtoLens.Encoding.Bytes.<?>)+ (do mutable'resolutions <- Data.ProtoLens.Encoding.Parser.Unsafe.unsafeLiftIO+ Data.ProtoLens.Encoding.Growing.new+ loop Data.ProtoLens.defMessage mutable'resolutions)+ "ChannelCloseSummary"+ buildMessage+ = \ _x+ -> (Data.Monoid.<>)+ (let+ _v+ = Lens.Family2.view (Data.ProtoLens.Field.field @"channelPoint") _x+ in+ if (Prelude.==) _v Data.ProtoLens.fieldDefault then+ Data.Monoid.mempty+ else+ (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 10)+ ((Prelude..)+ (\ bs+ -> (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt+ (Prelude.fromIntegral (Data.ByteString.length bs)))+ (Data.ProtoLens.Encoding.Bytes.putBytes bs))+ Data.Text.Encoding.encodeUtf8 _v))+ ((Data.Monoid.<>)+ (let+ _v = Lens.Family2.view (Data.ProtoLens.Field.field @"chanId") _x+ in+ if (Prelude.==) _v Data.ProtoLens.fieldDefault then+ Data.Monoid.mempty+ else+ (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 16)+ (Data.ProtoLens.Encoding.Bytes.putVarInt _v))+ ((Data.Monoid.<>)+ (let+ _v = Lens.Family2.view (Data.ProtoLens.Field.field @"chainHash") _x+ in+ if (Prelude.==) _v Data.ProtoLens.fieldDefault then+ Data.Monoid.mempty+ else+ (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 26)+ ((Prelude..)+ (\ bs+ -> (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt+ (Prelude.fromIntegral (Data.ByteString.length bs)))+ (Data.ProtoLens.Encoding.Bytes.putBytes bs))+ Data.Text.Encoding.encodeUtf8 _v))+ ((Data.Monoid.<>)+ (let+ _v+ = Lens.Family2.view+ (Data.ProtoLens.Field.field @"closingTxHash") _x+ in+ if (Prelude.==) _v Data.ProtoLens.fieldDefault then+ Data.Monoid.mempty+ else+ (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 34)+ ((Prelude..)+ (\ bs+ -> (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt+ (Prelude.fromIntegral (Data.ByteString.length bs)))+ (Data.ProtoLens.Encoding.Bytes.putBytes bs))+ Data.Text.Encoding.encodeUtf8 _v))+ ((Data.Monoid.<>)+ (let+ _v+ = Lens.Family2.view (Data.ProtoLens.Field.field @"remotePubkey") _x+ in+ if (Prelude.==) _v Data.ProtoLens.fieldDefault then+ Data.Monoid.mempty+ else+ (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 42)+ ((Prelude..)+ (\ bs+ -> (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt+ (Prelude.fromIntegral (Data.ByteString.length bs)))+ (Data.ProtoLens.Encoding.Bytes.putBytes bs))+ Data.Text.Encoding.encodeUtf8 _v))+ ((Data.Monoid.<>)+ (let+ _v = Lens.Family2.view (Data.ProtoLens.Field.field @"capacity") _x+ in+ if (Prelude.==) _v Data.ProtoLens.fieldDefault then+ Data.Monoid.mempty+ else+ (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 48)+ ((Prelude..)+ Data.ProtoLens.Encoding.Bytes.putVarInt Prelude.fromIntegral+ _v))+ ((Data.Monoid.<>)+ (let+ _v+ = Lens.Family2.view+ (Data.ProtoLens.Field.field @"closeHeight") _x+ in+ if (Prelude.==) _v Data.ProtoLens.fieldDefault then+ Data.Monoid.mempty+ else+ (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 56)+ ((Prelude..)+ Data.ProtoLens.Encoding.Bytes.putVarInt+ Prelude.fromIntegral _v))+ ((Data.Monoid.<>)+ (let+ _v+ = Lens.Family2.view+ (Data.ProtoLens.Field.field @"settledBalance") _x+ in+ if (Prelude.==) _v Data.ProtoLens.fieldDefault then+ Data.Monoid.mempty+ else+ (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 64)+ ((Prelude..)+ Data.ProtoLens.Encoding.Bytes.putVarInt+ Prelude.fromIntegral _v))+ ((Data.Monoid.<>)+ (let+ _v+ = Lens.Family2.view+ (Data.ProtoLens.Field.field @"timeLockedBalance") _x+ in+ if (Prelude.==) _v Data.ProtoLens.fieldDefault then+ Data.Monoid.mempty+ else+ (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 72)+ ((Prelude..)+ Data.ProtoLens.Encoding.Bytes.putVarInt+ Prelude.fromIntegral _v))+ ((Data.Monoid.<>)+ (let+ _v+ = Lens.Family2.view+ (Data.ProtoLens.Field.field @"closeType") _x+ in+ if (Prelude.==) _v Data.ProtoLens.fieldDefault then+ Data.Monoid.mempty+ else+ (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 80)+ ((Prelude..)+ ((Prelude..)+ Data.ProtoLens.Encoding.Bytes.putVarInt+ Prelude.fromIntegral)+ Prelude.fromEnum _v))+ ((Data.Monoid.<>)+ (let+ _v+ = Lens.Family2.view+ (Data.ProtoLens.Field.field @"openInitiator") _x+ in+ if (Prelude.==) _v Data.ProtoLens.fieldDefault then+ Data.Monoid.mempty+ else+ (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 88)+ ((Prelude..)+ ((Prelude..)+ Data.ProtoLens.Encoding.Bytes.putVarInt+ Prelude.fromIntegral)+ Prelude.fromEnum _v))+ ((Data.Monoid.<>)+ (let+ _v+ = Lens.Family2.view+ (Data.ProtoLens.Field.field+ @"closeInitiator")+ _x+ in+ if (Prelude.==) _v Data.ProtoLens.fieldDefault then+ Data.Monoid.mempty+ else+ (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 96)+ ((Prelude..)+ ((Prelude..)+ Data.ProtoLens.Encoding.Bytes.putVarInt+ Prelude.fromIntegral)+ Prelude.fromEnum _v))+ ((Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.foldMapBuilder+ (\ _v+ -> (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt+ 106)+ ((Prelude..)+ (\ bs+ -> (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt+ (Prelude.fromIntegral+ (Data.ByteString.length+ bs)))+ (Data.ProtoLens.Encoding.Bytes.putBytes+ bs))+ Data.ProtoLens.encodeMessage _v))+ (Lens.Family2.view+ (Data.ProtoLens.Field.field+ @"vec'resolutions")+ _x))+ (Data.ProtoLens.Encoding.Wire.buildFieldSet+ (Lens.Family2.view+ Data.ProtoLens.unknownFields _x))))))))))))))+instance Control.DeepSeq.NFData ChannelCloseSummary where+ rnf+ = \ x__+ -> Control.DeepSeq.deepseq+ (_ChannelCloseSummary'_unknownFields x__)+ (Control.DeepSeq.deepseq+ (_ChannelCloseSummary'channelPoint x__)+ (Control.DeepSeq.deepseq+ (_ChannelCloseSummary'chanId x__)+ (Control.DeepSeq.deepseq+ (_ChannelCloseSummary'chainHash x__)+ (Control.DeepSeq.deepseq+ (_ChannelCloseSummary'closingTxHash x__)+ (Control.DeepSeq.deepseq+ (_ChannelCloseSummary'remotePubkey x__)+ (Control.DeepSeq.deepseq+ (_ChannelCloseSummary'capacity x__)+ (Control.DeepSeq.deepseq+ (_ChannelCloseSummary'closeHeight x__)+ (Control.DeepSeq.deepseq+ (_ChannelCloseSummary'settledBalance x__)+ (Control.DeepSeq.deepseq+ (_ChannelCloseSummary'timeLockedBalance x__)+ (Control.DeepSeq.deepseq+ (_ChannelCloseSummary'closeType x__)+ (Control.DeepSeq.deepseq+ (_ChannelCloseSummary'openInitiator x__)+ (Control.DeepSeq.deepseq+ (_ChannelCloseSummary'closeInitiator x__)+ (Control.DeepSeq.deepseq+ (_ChannelCloseSummary'resolutions x__)+ ())))))))))))))+newtype ChannelCloseSummary'ClosureType'UnrecognizedValue+ = ChannelCloseSummary'ClosureType'UnrecognizedValue Data.Int.Int32+ deriving stock (Prelude.Eq,+ Prelude.Ord,+ Prelude.Show,+ GHC.Generics.Generic)+instance Text.PrettyPrint.GenericPretty.Out ChannelCloseSummary'ClosureType'UnrecognizedValue+data ChannelCloseSummary'ClosureType+ = ChannelCloseSummary'COOPERATIVE_CLOSE |+ ChannelCloseSummary'LOCAL_FORCE_CLOSE |+ ChannelCloseSummary'REMOTE_FORCE_CLOSE |+ ChannelCloseSummary'BREACH_CLOSE |+ ChannelCloseSummary'FUNDING_CANCELED |+ ChannelCloseSummary'ABANDONED |+ ChannelCloseSummary'ClosureType'Unrecognized !ChannelCloseSummary'ClosureType'UnrecognizedValue+ deriving stock (Prelude.Show,+ Prelude.Eq,+ Prelude.Ord,+ GHC.Generics.Generic)+instance Data.ProtoLens.MessageEnum ChannelCloseSummary'ClosureType where+ maybeToEnum 0 = Prelude.Just ChannelCloseSummary'COOPERATIVE_CLOSE+ maybeToEnum 1 = Prelude.Just ChannelCloseSummary'LOCAL_FORCE_CLOSE+ maybeToEnum 2 = Prelude.Just ChannelCloseSummary'REMOTE_FORCE_CLOSE+ maybeToEnum 3 = Prelude.Just ChannelCloseSummary'BREACH_CLOSE+ maybeToEnum 4 = Prelude.Just ChannelCloseSummary'FUNDING_CANCELED+ maybeToEnum 5 = Prelude.Just ChannelCloseSummary'ABANDONED+ maybeToEnum k+ = Prelude.Just+ (ChannelCloseSummary'ClosureType'Unrecognized+ (ChannelCloseSummary'ClosureType'UnrecognizedValue+ (Prelude.fromIntegral k)))+ showEnum ChannelCloseSummary'COOPERATIVE_CLOSE+ = "COOPERATIVE_CLOSE"+ showEnum ChannelCloseSummary'LOCAL_FORCE_CLOSE+ = "LOCAL_FORCE_CLOSE"+ showEnum ChannelCloseSummary'REMOTE_FORCE_CLOSE+ = "REMOTE_FORCE_CLOSE"+ showEnum ChannelCloseSummary'BREACH_CLOSE = "BREACH_CLOSE"+ showEnum ChannelCloseSummary'FUNDING_CANCELED = "FUNDING_CANCELED"+ showEnum ChannelCloseSummary'ABANDONED = "ABANDONED"+ showEnum+ (ChannelCloseSummary'ClosureType'Unrecognized (ChannelCloseSummary'ClosureType'UnrecognizedValue k))+ = Prelude.show k+ readEnum k+ | (Prelude.==) k "COOPERATIVE_CLOSE"+ = Prelude.Just ChannelCloseSummary'COOPERATIVE_CLOSE+ | (Prelude.==) k "LOCAL_FORCE_CLOSE"+ = Prelude.Just ChannelCloseSummary'LOCAL_FORCE_CLOSE+ | (Prelude.==) k "REMOTE_FORCE_CLOSE"+ = Prelude.Just ChannelCloseSummary'REMOTE_FORCE_CLOSE+ | (Prelude.==) k "BREACH_CLOSE"+ = Prelude.Just ChannelCloseSummary'BREACH_CLOSE+ | (Prelude.==) k "FUNDING_CANCELED"+ = Prelude.Just ChannelCloseSummary'FUNDING_CANCELED+ | (Prelude.==) k "ABANDONED"+ = Prelude.Just ChannelCloseSummary'ABANDONED+ | Prelude.otherwise+ = (Prelude.>>=) (Text.Read.readMaybe k) Data.ProtoLens.maybeToEnum+instance Prelude.Bounded ChannelCloseSummary'ClosureType where+ minBound = ChannelCloseSummary'COOPERATIVE_CLOSE+ maxBound = ChannelCloseSummary'ABANDONED+instance Prelude.Enum ChannelCloseSummary'ClosureType where+ toEnum k__+ = Prelude.maybe+ (Prelude.error+ ((Prelude.++)+ "toEnum: unknown value for enum ClosureType: " (Prelude.show k__)))+ Prelude.id (Data.ProtoLens.maybeToEnum k__)+ fromEnum ChannelCloseSummary'COOPERATIVE_CLOSE = 0+ fromEnum ChannelCloseSummary'LOCAL_FORCE_CLOSE = 1+ fromEnum ChannelCloseSummary'REMOTE_FORCE_CLOSE = 2+ fromEnum ChannelCloseSummary'BREACH_CLOSE = 3+ fromEnum ChannelCloseSummary'FUNDING_CANCELED = 4+ fromEnum ChannelCloseSummary'ABANDONED = 5+ fromEnum+ (ChannelCloseSummary'ClosureType'Unrecognized (ChannelCloseSummary'ClosureType'UnrecognizedValue k))+ = Prelude.fromIntegral k+ succ ChannelCloseSummary'ABANDONED+ = Prelude.error+ "ChannelCloseSummary'ClosureType.succ: bad argument ChannelCloseSummary'ABANDONED. This value would be out of bounds."+ succ ChannelCloseSummary'COOPERATIVE_CLOSE+ = ChannelCloseSummary'LOCAL_FORCE_CLOSE+ succ ChannelCloseSummary'LOCAL_FORCE_CLOSE+ = ChannelCloseSummary'REMOTE_FORCE_CLOSE+ succ ChannelCloseSummary'REMOTE_FORCE_CLOSE+ = ChannelCloseSummary'BREACH_CLOSE+ succ ChannelCloseSummary'BREACH_CLOSE+ = ChannelCloseSummary'FUNDING_CANCELED+ succ ChannelCloseSummary'FUNDING_CANCELED+ = ChannelCloseSummary'ABANDONED+ succ (ChannelCloseSummary'ClosureType'Unrecognized _)+ = Prelude.error+ "ChannelCloseSummary'ClosureType.succ: bad argument: unrecognized value"+ pred ChannelCloseSummary'COOPERATIVE_CLOSE+ = Prelude.error+ "ChannelCloseSummary'ClosureType.pred: bad argument ChannelCloseSummary'COOPERATIVE_CLOSE. This value would be out of bounds."+ pred ChannelCloseSummary'LOCAL_FORCE_CLOSE+ = ChannelCloseSummary'COOPERATIVE_CLOSE+ pred ChannelCloseSummary'REMOTE_FORCE_CLOSE+ = ChannelCloseSummary'LOCAL_FORCE_CLOSE+ pred ChannelCloseSummary'BREACH_CLOSE+ = ChannelCloseSummary'REMOTE_FORCE_CLOSE+ pred ChannelCloseSummary'FUNDING_CANCELED+ = ChannelCloseSummary'BREACH_CLOSE+ pred ChannelCloseSummary'ABANDONED+ = ChannelCloseSummary'FUNDING_CANCELED+ pred (ChannelCloseSummary'ClosureType'Unrecognized _)+ = Prelude.error+ "ChannelCloseSummary'ClosureType.pred: bad argument: unrecognized value"+ enumFrom = Data.ProtoLens.Message.Enum.messageEnumFrom+ enumFromTo = Data.ProtoLens.Message.Enum.messageEnumFromTo+ enumFromThen = Data.ProtoLens.Message.Enum.messageEnumFromThen+ enumFromThenTo = Data.ProtoLens.Message.Enum.messageEnumFromThenTo+instance Data.ProtoLens.FieldDefault ChannelCloseSummary'ClosureType where+ fieldDefault = ChannelCloseSummary'COOPERATIVE_CLOSE+instance Control.DeepSeq.NFData ChannelCloseSummary'ClosureType where+ rnf x__ = Prelude.seq x__ ()+instance Text.PrettyPrint.GenericPretty.Out ChannelCloseSummary'ClosureType+{- | Fields :+ + * 'Proto.Lnrpc.Ln0_Fields.csvDelay' @:: Lens' ChannelConstraints Data.Word.Word32@+ * 'Proto.Lnrpc.Ln0_Fields.chanReserveSat' @:: Lens' ChannelConstraints Data.Word.Word64@+ * 'Proto.Lnrpc.Ln0_Fields.dustLimitSat' @:: Lens' ChannelConstraints Data.Word.Word64@+ * 'Proto.Lnrpc.Ln0_Fields.maxPendingAmtMsat' @:: Lens' ChannelConstraints Data.Word.Word64@+ * 'Proto.Lnrpc.Ln0_Fields.minHtlcMsat' @:: Lens' ChannelConstraints Data.Word.Word64@+ * 'Proto.Lnrpc.Ln0_Fields.maxAcceptedHtlcs' @:: Lens' ChannelConstraints Data.Word.Word32@ -}+data ChannelConstraints+ = ChannelConstraints'_constructor {_ChannelConstraints'csvDelay :: !Data.Word.Word32,+ _ChannelConstraints'chanReserveSat :: !Data.Word.Word64,+ _ChannelConstraints'dustLimitSat :: !Data.Word.Word64,+ _ChannelConstraints'maxPendingAmtMsat :: !Data.Word.Word64,+ _ChannelConstraints'minHtlcMsat :: !Data.Word.Word64,+ _ChannelConstraints'maxAcceptedHtlcs :: !Data.Word.Word32,+ _ChannelConstraints'_unknownFields :: !Data.ProtoLens.FieldSet}+ deriving stock (Prelude.Eq, Prelude.Ord, GHC.Generics.Generic)+instance Prelude.Show ChannelConstraints where+ showsPrec _ __x __s+ = Prelude.showChar+ '{'+ (Prelude.showString+ (Data.ProtoLens.showMessageShort __x) (Prelude.showChar '}' __s))+instance Text.PrettyPrint.GenericPretty.Out ChannelConstraints+instance Data.ProtoLens.Field.HasField ChannelConstraints "csvDelay" Data.Word.Word32 where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _ChannelConstraints'csvDelay+ (\ x__ y__ -> x__ {_ChannelConstraints'csvDelay = y__}))+ Prelude.id+instance Data.ProtoLens.Field.HasField ChannelConstraints "chanReserveSat" Data.Word.Word64 where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _ChannelConstraints'chanReserveSat+ (\ x__ y__ -> x__ {_ChannelConstraints'chanReserveSat = y__}))+ Prelude.id+instance Data.ProtoLens.Field.HasField ChannelConstraints "dustLimitSat" Data.Word.Word64 where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _ChannelConstraints'dustLimitSat+ (\ x__ y__ -> x__ {_ChannelConstraints'dustLimitSat = y__}))+ Prelude.id+instance Data.ProtoLens.Field.HasField ChannelConstraints "maxPendingAmtMsat" Data.Word.Word64 where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _ChannelConstraints'maxPendingAmtMsat+ (\ x__ y__ -> x__ {_ChannelConstraints'maxPendingAmtMsat = y__}))+ Prelude.id+instance Data.ProtoLens.Field.HasField ChannelConstraints "minHtlcMsat" Data.Word.Word64 where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _ChannelConstraints'minHtlcMsat+ (\ x__ y__ -> x__ {_ChannelConstraints'minHtlcMsat = y__}))+ Prelude.id+instance Data.ProtoLens.Field.HasField ChannelConstraints "maxAcceptedHtlcs" Data.Word.Word32 where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _ChannelConstraints'maxAcceptedHtlcs+ (\ x__ y__ -> x__ {_ChannelConstraints'maxAcceptedHtlcs = y__}))+ Prelude.id+instance Data.ProtoLens.Message ChannelConstraints where+ messageName _ = Data.Text.pack "lnrpc.ChannelConstraints"+ packedMessageDescriptor _+ = "\n\+ \\DC2ChannelConstraints\DC2\ESC\n\+ \\tcsv_delay\CAN\SOH \SOH(\rR\bcsvDelay\DC2(\n\+ \\DLEchan_reserve_sat\CAN\STX \SOH(\EOTR\SOchanReserveSat\DC2$\n\+ \\SOdust_limit_sat\CAN\ETX \SOH(\EOTR\fdustLimitSat\DC2/\n\+ \\DC4max_pending_amt_msat\CAN\EOT \SOH(\EOTR\DC1maxPendingAmtMsat\DC2\"\n\+ \\rmin_htlc_msat\CAN\ENQ \SOH(\EOTR\vminHtlcMsat\DC2,\n\+ \\DC2max_accepted_htlcs\CAN\ACK \SOH(\rR\DLEmaxAcceptedHtlcs"+ packedFileDescriptor _ = packedFileDescriptor+ fieldsByTag+ = let+ csvDelay__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "csv_delay"+ (Data.ProtoLens.ScalarField Data.ProtoLens.UInt32Field ::+ Data.ProtoLens.FieldTypeDescriptor Data.Word.Word32)+ (Data.ProtoLens.PlainField+ Data.ProtoLens.Optional+ (Data.ProtoLens.Field.field @"csvDelay")) ::+ Data.ProtoLens.FieldDescriptor ChannelConstraints+ chanReserveSat__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "chan_reserve_sat"+ (Data.ProtoLens.ScalarField Data.ProtoLens.UInt64Field ::+ Data.ProtoLens.FieldTypeDescriptor Data.Word.Word64)+ (Data.ProtoLens.PlainField+ Data.ProtoLens.Optional+ (Data.ProtoLens.Field.field @"chanReserveSat")) ::+ Data.ProtoLens.FieldDescriptor ChannelConstraints+ dustLimitSat__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "dust_limit_sat"+ (Data.ProtoLens.ScalarField Data.ProtoLens.UInt64Field ::+ Data.ProtoLens.FieldTypeDescriptor Data.Word.Word64)+ (Data.ProtoLens.PlainField+ Data.ProtoLens.Optional+ (Data.ProtoLens.Field.field @"dustLimitSat")) ::+ Data.ProtoLens.FieldDescriptor ChannelConstraints+ maxPendingAmtMsat__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "max_pending_amt_msat"+ (Data.ProtoLens.ScalarField Data.ProtoLens.UInt64Field ::+ Data.ProtoLens.FieldTypeDescriptor Data.Word.Word64)+ (Data.ProtoLens.PlainField+ Data.ProtoLens.Optional+ (Data.ProtoLens.Field.field @"maxPendingAmtMsat")) ::+ Data.ProtoLens.FieldDescriptor ChannelConstraints+ minHtlcMsat__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "min_htlc_msat"+ (Data.ProtoLens.ScalarField Data.ProtoLens.UInt64Field ::+ Data.ProtoLens.FieldTypeDescriptor Data.Word.Word64)+ (Data.ProtoLens.PlainField+ Data.ProtoLens.Optional+ (Data.ProtoLens.Field.field @"minHtlcMsat")) ::+ Data.ProtoLens.FieldDescriptor ChannelConstraints+ maxAcceptedHtlcs__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "max_accepted_htlcs"+ (Data.ProtoLens.ScalarField Data.ProtoLens.UInt32Field ::+ Data.ProtoLens.FieldTypeDescriptor Data.Word.Word32)+ (Data.ProtoLens.PlainField+ Data.ProtoLens.Optional+ (Data.ProtoLens.Field.field @"maxAcceptedHtlcs")) ::+ Data.ProtoLens.FieldDescriptor ChannelConstraints+ in+ Data.Map.fromList+ [(Data.ProtoLens.Tag 1, csvDelay__field_descriptor),+ (Data.ProtoLens.Tag 2, chanReserveSat__field_descriptor),+ (Data.ProtoLens.Tag 3, dustLimitSat__field_descriptor),+ (Data.ProtoLens.Tag 4, maxPendingAmtMsat__field_descriptor),+ (Data.ProtoLens.Tag 5, minHtlcMsat__field_descriptor),+ (Data.ProtoLens.Tag 6, maxAcceptedHtlcs__field_descriptor)]+ unknownFields+ = Lens.Family2.Unchecked.lens+ _ChannelConstraints'_unknownFields+ (\ x__ y__ -> x__ {_ChannelConstraints'_unknownFields = y__})+ defMessage+ = ChannelConstraints'_constructor+ {_ChannelConstraints'csvDelay = Data.ProtoLens.fieldDefault,+ _ChannelConstraints'chanReserveSat = Data.ProtoLens.fieldDefault,+ _ChannelConstraints'dustLimitSat = Data.ProtoLens.fieldDefault,+ _ChannelConstraints'maxPendingAmtMsat = Data.ProtoLens.fieldDefault,+ _ChannelConstraints'minHtlcMsat = Data.ProtoLens.fieldDefault,+ _ChannelConstraints'maxAcceptedHtlcs = Data.ProtoLens.fieldDefault,+ _ChannelConstraints'_unknownFields = []}+ parseMessage+ = let+ loop ::+ ChannelConstraints+ -> Data.ProtoLens.Encoding.Bytes.Parser ChannelConstraints+ loop x+ = do end <- Data.ProtoLens.Encoding.Bytes.atEnd+ if end then+ do (let missing = []+ in+ if Prelude.null missing then+ Prelude.return ()+ else+ Prelude.fail+ ((Prelude.++)+ "Missing required fields: "+ (Prelude.show (missing :: [Prelude.String]))))+ Prelude.return+ (Lens.Family2.over+ Data.ProtoLens.unknownFields (\ !t -> Prelude.reverse t) x)+ else+ do tag <- Data.ProtoLens.Encoding.Bytes.getVarInt+ case tag of+ 8 -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (Prelude.fmap+ Prelude.fromIntegral+ Data.ProtoLens.Encoding.Bytes.getVarInt)+ "csv_delay"+ loop+ (Lens.Family2.set (Data.ProtoLens.Field.field @"csvDelay") y x)+ 16+ -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ Data.ProtoLens.Encoding.Bytes.getVarInt "chan_reserve_sat"+ loop+ (Lens.Family2.set+ (Data.ProtoLens.Field.field @"chanReserveSat") y x)+ 24+ -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ Data.ProtoLens.Encoding.Bytes.getVarInt "dust_limit_sat"+ loop+ (Lens.Family2.set+ (Data.ProtoLens.Field.field @"dustLimitSat") y x)+ 32+ -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ Data.ProtoLens.Encoding.Bytes.getVarInt+ "max_pending_amt_msat"+ loop+ (Lens.Family2.set+ (Data.ProtoLens.Field.field @"maxPendingAmtMsat") y x)+ 40+ -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ Data.ProtoLens.Encoding.Bytes.getVarInt "min_htlc_msat"+ loop+ (Lens.Family2.set (Data.ProtoLens.Field.field @"minHtlcMsat") y x)+ 48+ -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (Prelude.fmap+ Prelude.fromIntegral+ Data.ProtoLens.Encoding.Bytes.getVarInt)+ "max_accepted_htlcs"+ loop+ (Lens.Family2.set+ (Data.ProtoLens.Field.field @"maxAcceptedHtlcs") y x)+ wire+ -> do !y <- Data.ProtoLens.Encoding.Wire.parseTaggedValueFromWire+ wire+ loop+ (Lens.Family2.over+ Data.ProtoLens.unknownFields (\ !t -> (:) y t) x)+ in+ (Data.ProtoLens.Encoding.Bytes.<?>)+ (do loop Data.ProtoLens.defMessage) "ChannelConstraints"+ buildMessage+ = \ _x+ -> (Data.Monoid.<>)+ (let+ _v = Lens.Family2.view (Data.ProtoLens.Field.field @"csvDelay") _x+ in+ if (Prelude.==) _v Data.ProtoLens.fieldDefault then+ Data.Monoid.mempty+ else+ (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 8)+ ((Prelude..)+ Data.ProtoLens.Encoding.Bytes.putVarInt Prelude.fromIntegral _v))+ ((Data.Monoid.<>)+ (let+ _v+ = Lens.Family2.view+ (Data.ProtoLens.Field.field @"chanReserveSat") _x+ in+ if (Prelude.==) _v Data.ProtoLens.fieldDefault then+ Data.Monoid.mempty+ else+ (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 16)+ (Data.ProtoLens.Encoding.Bytes.putVarInt _v))+ ((Data.Monoid.<>)+ (let+ _v+ = Lens.Family2.view (Data.ProtoLens.Field.field @"dustLimitSat") _x+ in+ if (Prelude.==) _v Data.ProtoLens.fieldDefault then+ Data.Monoid.mempty+ else+ (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 24)+ (Data.ProtoLens.Encoding.Bytes.putVarInt _v))+ ((Data.Monoid.<>)+ (let+ _v+ = Lens.Family2.view+ (Data.ProtoLens.Field.field @"maxPendingAmtMsat") _x+ in+ if (Prelude.==) _v Data.ProtoLens.fieldDefault then+ Data.Monoid.mempty+ else+ (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 32)+ (Data.ProtoLens.Encoding.Bytes.putVarInt _v))+ ((Data.Monoid.<>)+ (let+ _v+ = Lens.Family2.view (Data.ProtoLens.Field.field @"minHtlcMsat") _x+ in+ if (Prelude.==) _v Data.ProtoLens.fieldDefault then+ Data.Monoid.mempty+ else+ (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 40)+ (Data.ProtoLens.Encoding.Bytes.putVarInt _v))+ ((Data.Monoid.<>)+ (let+ _v+ = Lens.Family2.view+ (Data.ProtoLens.Field.field @"maxAcceptedHtlcs") _x+ in+ if (Prelude.==) _v Data.ProtoLens.fieldDefault then+ Data.Monoid.mempty+ else+ (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 48)+ ((Prelude..)+ Data.ProtoLens.Encoding.Bytes.putVarInt Prelude.fromIntegral+ _v))+ (Data.ProtoLens.Encoding.Wire.buildFieldSet+ (Lens.Family2.view Data.ProtoLens.unknownFields _x)))))))+instance Control.DeepSeq.NFData ChannelConstraints where+ rnf+ = \ x__+ -> Control.DeepSeq.deepseq+ (_ChannelConstraints'_unknownFields x__)+ (Control.DeepSeq.deepseq+ (_ChannelConstraints'csvDelay x__)+ (Control.DeepSeq.deepseq+ (_ChannelConstraints'chanReserveSat x__)+ (Control.DeepSeq.deepseq+ (_ChannelConstraints'dustLimitSat x__)+ (Control.DeepSeq.deepseq+ (_ChannelConstraints'maxPendingAmtMsat x__)+ (Control.DeepSeq.deepseq+ (_ChannelConstraints'minHtlcMsat x__)+ (Control.DeepSeq.deepseq+ (_ChannelConstraints'maxAcceptedHtlcs x__) ()))))))+{- | Fields :+ + * 'Proto.Lnrpc.Ln0_Fields.channelId' @:: Lens' ChannelEdge Data.Word.Word64@+ * 'Proto.Lnrpc.Ln0_Fields.chanPoint' @:: Lens' ChannelEdge Data.Text.Text@+ * 'Proto.Lnrpc.Ln0_Fields.lastUpdate' @:: Lens' ChannelEdge Data.Word.Word32@+ * 'Proto.Lnrpc.Ln0_Fields.node1Pub' @:: Lens' ChannelEdge Data.Text.Text@+ * 'Proto.Lnrpc.Ln0_Fields.node2Pub' @:: Lens' ChannelEdge Data.Text.Text@+ * 'Proto.Lnrpc.Ln0_Fields.capacity' @:: Lens' ChannelEdge Data.Int.Int64@+ * 'Proto.Lnrpc.Ln0_Fields.node1Policy' @:: Lens' ChannelEdge RoutingPolicy@+ * 'Proto.Lnrpc.Ln0_Fields.maybe'node1Policy' @:: Lens' ChannelEdge (Prelude.Maybe RoutingPolicy)@+ * 'Proto.Lnrpc.Ln0_Fields.node2Policy' @:: Lens' ChannelEdge RoutingPolicy@+ * 'Proto.Lnrpc.Ln0_Fields.maybe'node2Policy' @:: Lens' ChannelEdge (Prelude.Maybe RoutingPolicy)@ -}+data ChannelEdge+ = ChannelEdge'_constructor {_ChannelEdge'channelId :: !Data.Word.Word64,+ _ChannelEdge'chanPoint :: !Data.Text.Text,+ _ChannelEdge'lastUpdate :: !Data.Word.Word32,+ _ChannelEdge'node1Pub :: !Data.Text.Text,+ _ChannelEdge'node2Pub :: !Data.Text.Text,+ _ChannelEdge'capacity :: !Data.Int.Int64,+ _ChannelEdge'node1Policy :: !(Prelude.Maybe RoutingPolicy),+ _ChannelEdge'node2Policy :: !(Prelude.Maybe RoutingPolicy),+ _ChannelEdge'_unknownFields :: !Data.ProtoLens.FieldSet}+ deriving stock (Prelude.Eq, Prelude.Ord, GHC.Generics.Generic)+instance Prelude.Show ChannelEdge where+ showsPrec _ __x __s+ = Prelude.showChar+ '{'+ (Prelude.showString+ (Data.ProtoLens.showMessageShort __x) (Prelude.showChar '}' __s))+instance Text.PrettyPrint.GenericPretty.Out ChannelEdge+instance Data.ProtoLens.Field.HasField ChannelEdge "channelId" Data.Word.Word64 where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _ChannelEdge'channelId+ (\ x__ y__ -> x__ {_ChannelEdge'channelId = y__}))+ Prelude.id+instance Data.ProtoLens.Field.HasField ChannelEdge "chanPoint" Data.Text.Text where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _ChannelEdge'chanPoint+ (\ x__ y__ -> x__ {_ChannelEdge'chanPoint = y__}))+ Prelude.id+instance Data.ProtoLens.Field.HasField ChannelEdge "lastUpdate" Data.Word.Word32 where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _ChannelEdge'lastUpdate+ (\ x__ y__ -> x__ {_ChannelEdge'lastUpdate = y__}))+ Prelude.id+instance Data.ProtoLens.Field.HasField ChannelEdge "node1Pub" Data.Text.Text where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _ChannelEdge'node1Pub+ (\ x__ y__ -> x__ {_ChannelEdge'node1Pub = y__}))+ Prelude.id+instance Data.ProtoLens.Field.HasField ChannelEdge "node2Pub" Data.Text.Text where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _ChannelEdge'node2Pub+ (\ x__ y__ -> x__ {_ChannelEdge'node2Pub = y__}))+ Prelude.id+instance Data.ProtoLens.Field.HasField ChannelEdge "capacity" Data.Int.Int64 where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _ChannelEdge'capacity+ (\ x__ y__ -> x__ {_ChannelEdge'capacity = y__}))+ Prelude.id+instance Data.ProtoLens.Field.HasField ChannelEdge "node1Policy" RoutingPolicy where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _ChannelEdge'node1Policy+ (\ x__ y__ -> x__ {_ChannelEdge'node1Policy = y__}))+ (Data.ProtoLens.maybeLens Data.ProtoLens.defMessage)+instance Data.ProtoLens.Field.HasField ChannelEdge "maybe'node1Policy" (Prelude.Maybe RoutingPolicy) where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _ChannelEdge'node1Policy+ (\ x__ y__ -> x__ {_ChannelEdge'node1Policy = y__}))+ Prelude.id+instance Data.ProtoLens.Field.HasField ChannelEdge "node2Policy" RoutingPolicy where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _ChannelEdge'node2Policy+ (\ x__ y__ -> x__ {_ChannelEdge'node2Policy = y__}))+ (Data.ProtoLens.maybeLens Data.ProtoLens.defMessage)+instance Data.ProtoLens.Field.HasField ChannelEdge "maybe'node2Policy" (Prelude.Maybe RoutingPolicy) where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _ChannelEdge'node2Policy+ (\ x__ y__ -> x__ {_ChannelEdge'node2Policy = y__}))+ Prelude.id+instance Data.ProtoLens.Message ChannelEdge where+ messageName _ = Data.Text.pack "lnrpc.ChannelEdge"+ packedMessageDescriptor _+ = "\n\+ \\vChannelEdge\DC2!\n\+ \\n\+ \channel_id\CAN\SOH \SOH(\EOTR\tchannelIdB\STX0\SOH\DC2\GS\n\+ \\n\+ \chan_point\CAN\STX \SOH(\tR\tchanPoint\DC2#\n\+ \\vlast_update\CAN\ETX \SOH(\rR\n\+ \lastUpdateB\STX\CAN\SOH\DC2\ESC\n\+ \\tnode1_pub\CAN\EOT \SOH(\tR\bnode1Pub\DC2\ESC\n\+ \\tnode2_pub\CAN\ENQ \SOH(\tR\bnode2Pub\DC2\SUB\n\+ \\bcapacity\CAN\ACK \SOH(\ETXR\bcapacity\DC27\n\+ \\fnode1_policy\CAN\a \SOH(\v2\DC4.lnrpc.RoutingPolicyR\vnode1Policy\DC27\n\+ \\fnode2_policy\CAN\b \SOH(\v2\DC4.lnrpc.RoutingPolicyR\vnode2Policy"+ packedFileDescriptor _ = packedFileDescriptor+ fieldsByTag+ = let+ channelId__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "channel_id"+ (Data.ProtoLens.ScalarField Data.ProtoLens.UInt64Field ::+ Data.ProtoLens.FieldTypeDescriptor Data.Word.Word64)+ (Data.ProtoLens.PlainField+ Data.ProtoLens.Optional+ (Data.ProtoLens.Field.field @"channelId")) ::+ Data.ProtoLens.FieldDescriptor ChannelEdge+ chanPoint__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "chan_point"+ (Data.ProtoLens.ScalarField Data.ProtoLens.StringField ::+ Data.ProtoLens.FieldTypeDescriptor Data.Text.Text)+ (Data.ProtoLens.PlainField+ Data.ProtoLens.Optional+ (Data.ProtoLens.Field.field @"chanPoint")) ::+ Data.ProtoLens.FieldDescriptor ChannelEdge+ lastUpdate__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "last_update"+ (Data.ProtoLens.ScalarField Data.ProtoLens.UInt32Field ::+ Data.ProtoLens.FieldTypeDescriptor Data.Word.Word32)+ (Data.ProtoLens.PlainField+ Data.ProtoLens.Optional+ (Data.ProtoLens.Field.field @"lastUpdate")) ::+ Data.ProtoLens.FieldDescriptor ChannelEdge+ node1Pub__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "node1_pub"+ (Data.ProtoLens.ScalarField Data.ProtoLens.StringField ::+ Data.ProtoLens.FieldTypeDescriptor Data.Text.Text)+ (Data.ProtoLens.PlainField+ Data.ProtoLens.Optional+ (Data.ProtoLens.Field.field @"node1Pub")) ::+ Data.ProtoLens.FieldDescriptor ChannelEdge+ node2Pub__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "node2_pub"+ (Data.ProtoLens.ScalarField Data.ProtoLens.StringField ::+ Data.ProtoLens.FieldTypeDescriptor Data.Text.Text)+ (Data.ProtoLens.PlainField+ Data.ProtoLens.Optional+ (Data.ProtoLens.Field.field @"node2Pub")) ::+ Data.ProtoLens.FieldDescriptor ChannelEdge+ capacity__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "capacity"+ (Data.ProtoLens.ScalarField Data.ProtoLens.Int64Field ::+ Data.ProtoLens.FieldTypeDescriptor Data.Int.Int64)+ (Data.ProtoLens.PlainField+ Data.ProtoLens.Optional+ (Data.ProtoLens.Field.field @"capacity")) ::+ Data.ProtoLens.FieldDescriptor ChannelEdge+ node1Policy__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "node1_policy"+ (Data.ProtoLens.MessageField Data.ProtoLens.MessageType ::+ Data.ProtoLens.FieldTypeDescriptor RoutingPolicy)+ (Data.ProtoLens.OptionalField+ (Data.ProtoLens.Field.field @"maybe'node1Policy")) ::+ Data.ProtoLens.FieldDescriptor ChannelEdge+ node2Policy__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "node2_policy"+ (Data.ProtoLens.MessageField Data.ProtoLens.MessageType ::+ Data.ProtoLens.FieldTypeDescriptor RoutingPolicy)+ (Data.ProtoLens.OptionalField+ (Data.ProtoLens.Field.field @"maybe'node2Policy")) ::+ Data.ProtoLens.FieldDescriptor ChannelEdge+ in+ Data.Map.fromList+ [(Data.ProtoLens.Tag 1, channelId__field_descriptor),+ (Data.ProtoLens.Tag 2, chanPoint__field_descriptor),+ (Data.ProtoLens.Tag 3, lastUpdate__field_descriptor),+ (Data.ProtoLens.Tag 4, node1Pub__field_descriptor),+ (Data.ProtoLens.Tag 5, node2Pub__field_descriptor),+ (Data.ProtoLens.Tag 6, capacity__field_descriptor),+ (Data.ProtoLens.Tag 7, node1Policy__field_descriptor),+ (Data.ProtoLens.Tag 8, node2Policy__field_descriptor)]+ unknownFields+ = Lens.Family2.Unchecked.lens+ _ChannelEdge'_unknownFields+ (\ x__ y__ -> x__ {_ChannelEdge'_unknownFields = y__})+ defMessage+ = ChannelEdge'_constructor+ {_ChannelEdge'channelId = Data.ProtoLens.fieldDefault,+ _ChannelEdge'chanPoint = Data.ProtoLens.fieldDefault,+ _ChannelEdge'lastUpdate = Data.ProtoLens.fieldDefault,+ _ChannelEdge'node1Pub = Data.ProtoLens.fieldDefault,+ _ChannelEdge'node2Pub = Data.ProtoLens.fieldDefault,+ _ChannelEdge'capacity = Data.ProtoLens.fieldDefault,+ _ChannelEdge'node1Policy = Prelude.Nothing,+ _ChannelEdge'node2Policy = Prelude.Nothing,+ _ChannelEdge'_unknownFields = []}+ parseMessage+ = let+ loop ::+ ChannelEdge -> Data.ProtoLens.Encoding.Bytes.Parser ChannelEdge+ loop x+ = do end <- Data.ProtoLens.Encoding.Bytes.atEnd+ if end then+ do (let missing = []+ in+ if Prelude.null missing then+ Prelude.return ()+ else+ Prelude.fail+ ((Prelude.++)+ "Missing required fields: "+ (Prelude.show (missing :: [Prelude.String]))))+ Prelude.return+ (Lens.Family2.over+ Data.ProtoLens.unknownFields (\ !t -> Prelude.reverse t) x)+ else+ do tag <- Data.ProtoLens.Encoding.Bytes.getVarInt+ case tag of+ 8 -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ Data.ProtoLens.Encoding.Bytes.getVarInt "channel_id"+ loop+ (Lens.Family2.set (Data.ProtoLens.Field.field @"channelId") y x)+ 18+ -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (do value <- do len <- Data.ProtoLens.Encoding.Bytes.getVarInt+ Data.ProtoLens.Encoding.Bytes.getBytes+ (Prelude.fromIntegral len)+ Data.ProtoLens.Encoding.Bytes.runEither+ (case Data.Text.Encoding.decodeUtf8' value of+ (Prelude.Left err)+ -> Prelude.Left (Prelude.show err)+ (Prelude.Right r) -> Prelude.Right r))+ "chan_point"+ loop+ (Lens.Family2.set (Data.ProtoLens.Field.field @"chanPoint") y x)+ 24+ -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (Prelude.fmap+ Prelude.fromIntegral+ Data.ProtoLens.Encoding.Bytes.getVarInt)+ "last_update"+ loop+ (Lens.Family2.set (Data.ProtoLens.Field.field @"lastUpdate") y x)+ 34+ -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (do value <- do len <- Data.ProtoLens.Encoding.Bytes.getVarInt+ Data.ProtoLens.Encoding.Bytes.getBytes+ (Prelude.fromIntegral len)+ Data.ProtoLens.Encoding.Bytes.runEither+ (case Data.Text.Encoding.decodeUtf8' value of+ (Prelude.Left err)+ -> Prelude.Left (Prelude.show err)+ (Prelude.Right r) -> Prelude.Right r))+ "node1_pub"+ loop+ (Lens.Family2.set (Data.ProtoLens.Field.field @"node1Pub") y x)+ 42+ -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (do value <- do len <- Data.ProtoLens.Encoding.Bytes.getVarInt+ Data.ProtoLens.Encoding.Bytes.getBytes+ (Prelude.fromIntegral len)+ Data.ProtoLens.Encoding.Bytes.runEither+ (case Data.Text.Encoding.decodeUtf8' value of+ (Prelude.Left err)+ -> Prelude.Left (Prelude.show err)+ (Prelude.Right r) -> Prelude.Right r))+ "node2_pub"+ loop+ (Lens.Family2.set (Data.ProtoLens.Field.field @"node2Pub") y x)+ 48+ -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (Prelude.fmap+ Prelude.fromIntegral+ Data.ProtoLens.Encoding.Bytes.getVarInt)+ "capacity"+ loop+ (Lens.Family2.set (Data.ProtoLens.Field.field @"capacity") y x)+ 58+ -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (do len <- Data.ProtoLens.Encoding.Bytes.getVarInt+ Data.ProtoLens.Encoding.Bytes.isolate+ (Prelude.fromIntegral len) Data.ProtoLens.parseMessage)+ "node1_policy"+ loop+ (Lens.Family2.set (Data.ProtoLens.Field.field @"node1Policy") y x)+ 66+ -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (do len <- Data.ProtoLens.Encoding.Bytes.getVarInt+ Data.ProtoLens.Encoding.Bytes.isolate+ (Prelude.fromIntegral len) Data.ProtoLens.parseMessage)+ "node2_policy"+ loop+ (Lens.Family2.set (Data.ProtoLens.Field.field @"node2Policy") y x)+ wire+ -> do !y <- Data.ProtoLens.Encoding.Wire.parseTaggedValueFromWire+ wire+ loop+ (Lens.Family2.over+ Data.ProtoLens.unknownFields (\ !t -> (:) y t) x)+ in+ (Data.ProtoLens.Encoding.Bytes.<?>)+ (do loop Data.ProtoLens.defMessage) "ChannelEdge"+ buildMessage+ = \ _x+ -> (Data.Monoid.<>)+ (let+ _v = Lens.Family2.view (Data.ProtoLens.Field.field @"channelId") _x+ in+ if (Prelude.==) _v Data.ProtoLens.fieldDefault then+ Data.Monoid.mempty+ else+ (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 8)+ (Data.ProtoLens.Encoding.Bytes.putVarInt _v))+ ((Data.Monoid.<>)+ (let+ _v = Lens.Family2.view (Data.ProtoLens.Field.field @"chanPoint") _x+ in+ if (Prelude.==) _v Data.ProtoLens.fieldDefault then+ Data.Monoid.mempty+ else+ (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 18)+ ((Prelude..)+ (\ bs+ -> (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt+ (Prelude.fromIntegral (Data.ByteString.length bs)))+ (Data.ProtoLens.Encoding.Bytes.putBytes bs))+ Data.Text.Encoding.encodeUtf8 _v))+ ((Data.Monoid.<>)+ (let+ _v+ = Lens.Family2.view (Data.ProtoLens.Field.field @"lastUpdate") _x+ in+ if (Prelude.==) _v Data.ProtoLens.fieldDefault then+ Data.Monoid.mempty+ else+ (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 24)+ ((Prelude..)+ Data.ProtoLens.Encoding.Bytes.putVarInt Prelude.fromIntegral _v))+ ((Data.Monoid.<>)+ (let+ _v = Lens.Family2.view (Data.ProtoLens.Field.field @"node1Pub") _x+ in+ if (Prelude.==) _v Data.ProtoLens.fieldDefault then+ Data.Monoid.mempty+ else+ (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 34)+ ((Prelude..)+ (\ bs+ -> (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt+ (Prelude.fromIntegral (Data.ByteString.length bs)))+ (Data.ProtoLens.Encoding.Bytes.putBytes bs))+ Data.Text.Encoding.encodeUtf8 _v))+ ((Data.Monoid.<>)+ (let+ _v = Lens.Family2.view (Data.ProtoLens.Field.field @"node2Pub") _x+ in+ if (Prelude.==) _v Data.ProtoLens.fieldDefault then+ Data.Monoid.mempty+ else+ (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 42)+ ((Prelude..)+ (\ bs+ -> (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt+ (Prelude.fromIntegral (Data.ByteString.length bs)))+ (Data.ProtoLens.Encoding.Bytes.putBytes bs))+ Data.Text.Encoding.encodeUtf8 _v))+ ((Data.Monoid.<>)+ (let+ _v = Lens.Family2.view (Data.ProtoLens.Field.field @"capacity") _x+ in+ if (Prelude.==) _v Data.ProtoLens.fieldDefault then+ Data.Monoid.mempty+ else+ (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 48)+ ((Prelude..)+ Data.ProtoLens.Encoding.Bytes.putVarInt Prelude.fromIntegral+ _v))+ ((Data.Monoid.<>)+ (case+ Lens.Family2.view+ (Data.ProtoLens.Field.field @"maybe'node1Policy") _x+ of+ Prelude.Nothing -> Data.Monoid.mempty+ (Prelude.Just _v)+ -> (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 58)+ ((Prelude..)+ (\ bs+ -> (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt+ (Prelude.fromIntegral+ (Data.ByteString.length bs)))+ (Data.ProtoLens.Encoding.Bytes.putBytes bs))+ Data.ProtoLens.encodeMessage _v))+ ((Data.Monoid.<>)+ (case+ Lens.Family2.view+ (Data.ProtoLens.Field.field @"maybe'node2Policy") _x+ of+ Prelude.Nothing -> Data.Monoid.mempty+ (Prelude.Just _v)+ -> (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 66)+ ((Prelude..)+ (\ bs+ -> (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt+ (Prelude.fromIntegral+ (Data.ByteString.length bs)))+ (Data.ProtoLens.Encoding.Bytes.putBytes bs))+ Data.ProtoLens.encodeMessage _v))+ (Data.ProtoLens.Encoding.Wire.buildFieldSet+ (Lens.Family2.view Data.ProtoLens.unknownFields _x)))))))))+instance Control.DeepSeq.NFData ChannelEdge where+ rnf+ = \ x__+ -> Control.DeepSeq.deepseq+ (_ChannelEdge'_unknownFields x__)+ (Control.DeepSeq.deepseq+ (_ChannelEdge'channelId x__)+ (Control.DeepSeq.deepseq+ (_ChannelEdge'chanPoint x__)+ (Control.DeepSeq.deepseq+ (_ChannelEdge'lastUpdate x__)+ (Control.DeepSeq.deepseq+ (_ChannelEdge'node1Pub x__)+ (Control.DeepSeq.deepseq+ (_ChannelEdge'node2Pub x__)+ (Control.DeepSeq.deepseq+ (_ChannelEdge'capacity x__)+ (Control.DeepSeq.deepseq+ (_ChannelEdge'node1Policy x__)+ (Control.DeepSeq.deepseq (_ChannelEdge'node2Policy x__) ()))))))))+{- | Fields :+ + * 'Proto.Lnrpc.Ln0_Fields.chanId' @:: Lens' ChannelEdgeUpdate Data.Word.Word64@+ * 'Proto.Lnrpc.Ln0_Fields.chanPoint' @:: Lens' ChannelEdgeUpdate ChannelPoint@+ * 'Proto.Lnrpc.Ln0_Fields.maybe'chanPoint' @:: Lens' ChannelEdgeUpdate (Prelude.Maybe ChannelPoint)@+ * 'Proto.Lnrpc.Ln0_Fields.capacity' @:: Lens' ChannelEdgeUpdate Data.Int.Int64@+ * 'Proto.Lnrpc.Ln0_Fields.routingPolicy' @:: Lens' ChannelEdgeUpdate RoutingPolicy@+ * 'Proto.Lnrpc.Ln0_Fields.maybe'routingPolicy' @:: Lens' ChannelEdgeUpdate (Prelude.Maybe RoutingPolicy)@+ * 'Proto.Lnrpc.Ln0_Fields.advertisingNode' @:: Lens' ChannelEdgeUpdate Data.Text.Text@+ * 'Proto.Lnrpc.Ln0_Fields.connectingNode' @:: Lens' ChannelEdgeUpdate Data.Text.Text@ -}+data ChannelEdgeUpdate+ = ChannelEdgeUpdate'_constructor {_ChannelEdgeUpdate'chanId :: !Data.Word.Word64,+ _ChannelEdgeUpdate'chanPoint :: !(Prelude.Maybe ChannelPoint),+ _ChannelEdgeUpdate'capacity :: !Data.Int.Int64,+ _ChannelEdgeUpdate'routingPolicy :: !(Prelude.Maybe RoutingPolicy),+ _ChannelEdgeUpdate'advertisingNode :: !Data.Text.Text,+ _ChannelEdgeUpdate'connectingNode :: !Data.Text.Text,+ _ChannelEdgeUpdate'_unknownFields :: !Data.ProtoLens.FieldSet}+ deriving stock (Prelude.Eq, Prelude.Ord, GHC.Generics.Generic)+instance Prelude.Show ChannelEdgeUpdate where+ showsPrec _ __x __s+ = Prelude.showChar+ '{'+ (Prelude.showString+ (Data.ProtoLens.showMessageShort __x) (Prelude.showChar '}' __s))+instance Text.PrettyPrint.GenericPretty.Out ChannelEdgeUpdate+instance Data.ProtoLens.Field.HasField ChannelEdgeUpdate "chanId" Data.Word.Word64 where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _ChannelEdgeUpdate'chanId+ (\ x__ y__ -> x__ {_ChannelEdgeUpdate'chanId = y__}))+ Prelude.id+instance Data.ProtoLens.Field.HasField ChannelEdgeUpdate "chanPoint" ChannelPoint where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _ChannelEdgeUpdate'chanPoint+ (\ x__ y__ -> x__ {_ChannelEdgeUpdate'chanPoint = y__}))+ (Data.ProtoLens.maybeLens Data.ProtoLens.defMessage)+instance Data.ProtoLens.Field.HasField ChannelEdgeUpdate "maybe'chanPoint" (Prelude.Maybe ChannelPoint) where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _ChannelEdgeUpdate'chanPoint+ (\ x__ y__ -> x__ {_ChannelEdgeUpdate'chanPoint = y__}))+ Prelude.id+instance Data.ProtoLens.Field.HasField ChannelEdgeUpdate "capacity" Data.Int.Int64 where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _ChannelEdgeUpdate'capacity+ (\ x__ y__ -> x__ {_ChannelEdgeUpdate'capacity = y__}))+ Prelude.id+instance Data.ProtoLens.Field.HasField ChannelEdgeUpdate "routingPolicy" RoutingPolicy where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _ChannelEdgeUpdate'routingPolicy+ (\ x__ y__ -> x__ {_ChannelEdgeUpdate'routingPolicy = y__}))+ (Data.ProtoLens.maybeLens Data.ProtoLens.defMessage)+instance Data.ProtoLens.Field.HasField ChannelEdgeUpdate "maybe'routingPolicy" (Prelude.Maybe RoutingPolicy) where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _ChannelEdgeUpdate'routingPolicy+ (\ x__ y__ -> x__ {_ChannelEdgeUpdate'routingPolicy = y__}))+ Prelude.id+instance Data.ProtoLens.Field.HasField ChannelEdgeUpdate "advertisingNode" Data.Text.Text where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _ChannelEdgeUpdate'advertisingNode+ (\ x__ y__ -> x__ {_ChannelEdgeUpdate'advertisingNode = y__}))+ Prelude.id+instance Data.ProtoLens.Field.HasField ChannelEdgeUpdate "connectingNode" Data.Text.Text where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _ChannelEdgeUpdate'connectingNode+ (\ x__ y__ -> x__ {_ChannelEdgeUpdate'connectingNode = y__}))+ Prelude.id+instance Data.ProtoLens.Message ChannelEdgeUpdate where+ messageName _ = Data.Text.pack "lnrpc.ChannelEdgeUpdate"+ packedMessageDescriptor _+ = "\n\+ \\DC1ChannelEdgeUpdate\DC2\ESC\n\+ \\achan_id\CAN\SOH \SOH(\EOTR\ACKchanIdB\STX0\SOH\DC22\n\+ \\n\+ \chan_point\CAN\STX \SOH(\v2\DC3.lnrpc.ChannelPointR\tchanPoint\DC2\SUB\n\+ \\bcapacity\CAN\ETX \SOH(\ETXR\bcapacity\DC2;\n\+ \\SOrouting_policy\CAN\EOT \SOH(\v2\DC4.lnrpc.RoutingPolicyR\rroutingPolicy\DC2)\n\+ \\DLEadvertising_node\CAN\ENQ \SOH(\tR\SIadvertisingNode\DC2'\n\+ \\SIconnecting_node\CAN\ACK \SOH(\tR\SOconnectingNode"+ packedFileDescriptor _ = packedFileDescriptor+ fieldsByTag+ = let+ chanId__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "chan_id"+ (Data.ProtoLens.ScalarField Data.ProtoLens.UInt64Field ::+ Data.ProtoLens.FieldTypeDescriptor Data.Word.Word64)+ (Data.ProtoLens.PlainField+ Data.ProtoLens.Optional (Data.ProtoLens.Field.field @"chanId")) ::+ Data.ProtoLens.FieldDescriptor ChannelEdgeUpdate+ chanPoint__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "chan_point"+ (Data.ProtoLens.MessageField Data.ProtoLens.MessageType ::+ Data.ProtoLens.FieldTypeDescriptor ChannelPoint)+ (Data.ProtoLens.OptionalField+ (Data.ProtoLens.Field.field @"maybe'chanPoint")) ::+ Data.ProtoLens.FieldDescriptor ChannelEdgeUpdate+ capacity__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "capacity"+ (Data.ProtoLens.ScalarField Data.ProtoLens.Int64Field ::+ Data.ProtoLens.FieldTypeDescriptor Data.Int.Int64)+ (Data.ProtoLens.PlainField+ Data.ProtoLens.Optional+ (Data.ProtoLens.Field.field @"capacity")) ::+ Data.ProtoLens.FieldDescriptor ChannelEdgeUpdate+ routingPolicy__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "routing_policy"+ (Data.ProtoLens.MessageField Data.ProtoLens.MessageType ::+ Data.ProtoLens.FieldTypeDescriptor RoutingPolicy)+ (Data.ProtoLens.OptionalField+ (Data.ProtoLens.Field.field @"maybe'routingPolicy")) ::+ Data.ProtoLens.FieldDescriptor ChannelEdgeUpdate+ advertisingNode__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "advertising_node"+ (Data.ProtoLens.ScalarField Data.ProtoLens.StringField ::+ Data.ProtoLens.FieldTypeDescriptor Data.Text.Text)+ (Data.ProtoLens.PlainField+ Data.ProtoLens.Optional+ (Data.ProtoLens.Field.field @"advertisingNode")) ::+ Data.ProtoLens.FieldDescriptor ChannelEdgeUpdate+ connectingNode__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "connecting_node"+ (Data.ProtoLens.ScalarField Data.ProtoLens.StringField ::+ Data.ProtoLens.FieldTypeDescriptor Data.Text.Text)+ (Data.ProtoLens.PlainField+ Data.ProtoLens.Optional+ (Data.ProtoLens.Field.field @"connectingNode")) ::+ Data.ProtoLens.FieldDescriptor ChannelEdgeUpdate+ in+ Data.Map.fromList+ [(Data.ProtoLens.Tag 1, chanId__field_descriptor),+ (Data.ProtoLens.Tag 2, chanPoint__field_descriptor),+ (Data.ProtoLens.Tag 3, capacity__field_descriptor),+ (Data.ProtoLens.Tag 4, routingPolicy__field_descriptor),+ (Data.ProtoLens.Tag 5, advertisingNode__field_descriptor),+ (Data.ProtoLens.Tag 6, connectingNode__field_descriptor)]+ unknownFields+ = Lens.Family2.Unchecked.lens+ _ChannelEdgeUpdate'_unknownFields+ (\ x__ y__ -> x__ {_ChannelEdgeUpdate'_unknownFields = y__})+ defMessage+ = ChannelEdgeUpdate'_constructor+ {_ChannelEdgeUpdate'chanId = Data.ProtoLens.fieldDefault,+ _ChannelEdgeUpdate'chanPoint = Prelude.Nothing,+ _ChannelEdgeUpdate'capacity = Data.ProtoLens.fieldDefault,+ _ChannelEdgeUpdate'routingPolicy = Prelude.Nothing,+ _ChannelEdgeUpdate'advertisingNode = Data.ProtoLens.fieldDefault,+ _ChannelEdgeUpdate'connectingNode = Data.ProtoLens.fieldDefault,+ _ChannelEdgeUpdate'_unknownFields = []}+ parseMessage+ = let+ loop ::+ ChannelEdgeUpdate+ -> Data.ProtoLens.Encoding.Bytes.Parser ChannelEdgeUpdate+ loop x+ = do end <- Data.ProtoLens.Encoding.Bytes.atEnd+ if end then+ do (let missing = []+ in+ if Prelude.null missing then+ Prelude.return ()+ else+ Prelude.fail+ ((Prelude.++)+ "Missing required fields: "+ (Prelude.show (missing :: [Prelude.String]))))+ Prelude.return+ (Lens.Family2.over+ Data.ProtoLens.unknownFields (\ !t -> Prelude.reverse t) x)+ else+ do tag <- Data.ProtoLens.Encoding.Bytes.getVarInt+ case tag of+ 8 -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ Data.ProtoLens.Encoding.Bytes.getVarInt "chan_id"+ loop (Lens.Family2.set (Data.ProtoLens.Field.field @"chanId") y x)+ 18+ -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (do len <- Data.ProtoLens.Encoding.Bytes.getVarInt+ Data.ProtoLens.Encoding.Bytes.isolate+ (Prelude.fromIntegral len) Data.ProtoLens.parseMessage)+ "chan_point"+ loop+ (Lens.Family2.set (Data.ProtoLens.Field.field @"chanPoint") y x)+ 24+ -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (Prelude.fmap+ Prelude.fromIntegral+ Data.ProtoLens.Encoding.Bytes.getVarInt)+ "capacity"+ loop+ (Lens.Family2.set (Data.ProtoLens.Field.field @"capacity") y x)+ 34+ -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (do len <- Data.ProtoLens.Encoding.Bytes.getVarInt+ Data.ProtoLens.Encoding.Bytes.isolate+ (Prelude.fromIntegral len) Data.ProtoLens.parseMessage)+ "routing_policy"+ loop+ (Lens.Family2.set+ (Data.ProtoLens.Field.field @"routingPolicy") y x)+ 42+ -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (do value <- do len <- Data.ProtoLens.Encoding.Bytes.getVarInt+ Data.ProtoLens.Encoding.Bytes.getBytes+ (Prelude.fromIntegral len)+ Data.ProtoLens.Encoding.Bytes.runEither+ (case Data.Text.Encoding.decodeUtf8' value of+ (Prelude.Left err)+ -> Prelude.Left (Prelude.show err)+ (Prelude.Right r) -> Prelude.Right r))+ "advertising_node"+ loop+ (Lens.Family2.set+ (Data.ProtoLens.Field.field @"advertisingNode") y x)+ 50+ -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (do value <- do len <- Data.ProtoLens.Encoding.Bytes.getVarInt+ Data.ProtoLens.Encoding.Bytes.getBytes+ (Prelude.fromIntegral len)+ Data.ProtoLens.Encoding.Bytes.runEither+ (case Data.Text.Encoding.decodeUtf8' value of+ (Prelude.Left err)+ -> Prelude.Left (Prelude.show err)+ (Prelude.Right r) -> Prelude.Right r))+ "connecting_node"+ loop+ (Lens.Family2.set+ (Data.ProtoLens.Field.field @"connectingNode") y x)+ wire+ -> do !y <- Data.ProtoLens.Encoding.Wire.parseTaggedValueFromWire+ wire+ loop+ (Lens.Family2.over+ Data.ProtoLens.unknownFields (\ !t -> (:) y t) x)+ in+ (Data.ProtoLens.Encoding.Bytes.<?>)+ (do loop Data.ProtoLens.defMessage) "ChannelEdgeUpdate"+ buildMessage+ = \ _x+ -> (Data.Monoid.<>)+ (let+ _v = Lens.Family2.view (Data.ProtoLens.Field.field @"chanId") _x+ in+ if (Prelude.==) _v Data.ProtoLens.fieldDefault then+ Data.Monoid.mempty+ else+ (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 8)+ (Data.ProtoLens.Encoding.Bytes.putVarInt _v))+ ((Data.Monoid.<>)+ (case+ Lens.Family2.view+ (Data.ProtoLens.Field.field @"maybe'chanPoint") _x+ of+ Prelude.Nothing -> Data.Monoid.mempty+ (Prelude.Just _v)+ -> (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 18)+ ((Prelude..)+ (\ bs+ -> (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt+ (Prelude.fromIntegral (Data.ByteString.length bs)))+ (Data.ProtoLens.Encoding.Bytes.putBytes bs))+ Data.ProtoLens.encodeMessage _v))+ ((Data.Monoid.<>)+ (let+ _v = Lens.Family2.view (Data.ProtoLens.Field.field @"capacity") _x+ in+ if (Prelude.==) _v Data.ProtoLens.fieldDefault then+ Data.Monoid.mempty+ else+ (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 24)+ ((Prelude..)+ Data.ProtoLens.Encoding.Bytes.putVarInt Prelude.fromIntegral _v))+ ((Data.Monoid.<>)+ (case+ Lens.Family2.view+ (Data.ProtoLens.Field.field @"maybe'routingPolicy") _x+ of+ Prelude.Nothing -> Data.Monoid.mempty+ (Prelude.Just _v)+ -> (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 34)+ ((Prelude..)+ (\ bs+ -> (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt+ (Prelude.fromIntegral (Data.ByteString.length bs)))+ (Data.ProtoLens.Encoding.Bytes.putBytes bs))+ Data.ProtoLens.encodeMessage _v))+ ((Data.Monoid.<>)+ (let+ _v+ = Lens.Family2.view+ (Data.ProtoLens.Field.field @"advertisingNode") _x+ in+ if (Prelude.==) _v Data.ProtoLens.fieldDefault then+ Data.Monoid.mempty+ else+ (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 42)+ ((Prelude..)+ (\ bs+ -> (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt+ (Prelude.fromIntegral (Data.ByteString.length bs)))+ (Data.ProtoLens.Encoding.Bytes.putBytes bs))+ Data.Text.Encoding.encodeUtf8 _v))+ ((Data.Monoid.<>)+ (let+ _v+ = Lens.Family2.view+ (Data.ProtoLens.Field.field @"connectingNode") _x+ in+ if (Prelude.==) _v Data.ProtoLens.fieldDefault then+ Data.Monoid.mempty+ else+ (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 50)+ ((Prelude..)+ (\ bs+ -> (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt+ (Prelude.fromIntegral+ (Data.ByteString.length bs)))+ (Data.ProtoLens.Encoding.Bytes.putBytes bs))+ Data.Text.Encoding.encodeUtf8 _v))+ (Data.ProtoLens.Encoding.Wire.buildFieldSet+ (Lens.Family2.view Data.ProtoLens.unknownFields _x)))))))+instance Control.DeepSeq.NFData ChannelEdgeUpdate where+ rnf+ = \ x__+ -> Control.DeepSeq.deepseq+ (_ChannelEdgeUpdate'_unknownFields x__)+ (Control.DeepSeq.deepseq+ (_ChannelEdgeUpdate'chanId x__)+ (Control.DeepSeq.deepseq+ (_ChannelEdgeUpdate'chanPoint x__)+ (Control.DeepSeq.deepseq+ (_ChannelEdgeUpdate'capacity x__)+ (Control.DeepSeq.deepseq+ (_ChannelEdgeUpdate'routingPolicy x__)+ (Control.DeepSeq.deepseq+ (_ChannelEdgeUpdate'advertisingNode x__)+ (Control.DeepSeq.deepseq+ (_ChannelEdgeUpdate'connectingNode x__) ()))))))+{- | Fields :+ -}+data ChannelEventSubscription+ = ChannelEventSubscription'_constructor {_ChannelEventSubscription'_unknownFields :: !Data.ProtoLens.FieldSet}+ deriving stock (Prelude.Eq, Prelude.Ord, GHC.Generics.Generic)+instance Prelude.Show ChannelEventSubscription where+ showsPrec _ __x __s+ = Prelude.showChar+ '{'+ (Prelude.showString+ (Data.ProtoLens.showMessageShort __x) (Prelude.showChar '}' __s))+instance Text.PrettyPrint.GenericPretty.Out ChannelEventSubscription+instance Data.ProtoLens.Message ChannelEventSubscription where+ messageName _ = Data.Text.pack "lnrpc.ChannelEventSubscription"+ packedMessageDescriptor _+ = "\n\+ \\CANChannelEventSubscription"+ packedFileDescriptor _ = packedFileDescriptor+ fieldsByTag = let in Data.Map.fromList []+ unknownFields+ = Lens.Family2.Unchecked.lens+ _ChannelEventSubscription'_unknownFields+ (\ x__ y__ -> x__ {_ChannelEventSubscription'_unknownFields = y__})+ defMessage+ = ChannelEventSubscription'_constructor+ {_ChannelEventSubscription'_unknownFields = []}+ parseMessage+ = let+ loop ::+ ChannelEventSubscription+ -> Data.ProtoLens.Encoding.Bytes.Parser ChannelEventSubscription+ loop x+ = do end <- Data.ProtoLens.Encoding.Bytes.atEnd+ if end then+ do (let missing = []+ in+ if Prelude.null missing then+ Prelude.return ()+ else+ Prelude.fail+ ((Prelude.++)+ "Missing required fields: "+ (Prelude.show (missing :: [Prelude.String]))))+ Prelude.return+ (Lens.Family2.over+ Data.ProtoLens.unknownFields (\ !t -> Prelude.reverse t) x)+ else+ do tag <- Data.ProtoLens.Encoding.Bytes.getVarInt+ case tag of {+ wire+ -> do !y <- Data.ProtoLens.Encoding.Wire.parseTaggedValueFromWire+ wire+ loop+ (Lens.Family2.over+ Data.ProtoLens.unknownFields (\ !t -> (:) y t) x) }+ in+ (Data.ProtoLens.Encoding.Bytes.<?>)+ (do loop Data.ProtoLens.defMessage) "ChannelEventSubscription"+ buildMessage+ = \ _x+ -> Data.ProtoLens.Encoding.Wire.buildFieldSet+ (Lens.Family2.view Data.ProtoLens.unknownFields _x)+instance Control.DeepSeq.NFData ChannelEventSubscription where+ rnf+ = \ x__+ -> Control.DeepSeq.deepseq+ (_ChannelEventSubscription'_unknownFields x__) ()+{- | Fields :+ + * 'Proto.Lnrpc.Ln0_Fields.type'' @:: Lens' ChannelEventUpdate ChannelEventUpdate'UpdateType@+ * 'Proto.Lnrpc.Ln0_Fields.maybe'channel' @:: Lens' ChannelEventUpdate (Prelude.Maybe ChannelEventUpdate'Channel)@+ * 'Proto.Lnrpc.Ln0_Fields.maybe'openChannel' @:: Lens' ChannelEventUpdate (Prelude.Maybe Channel)@+ * 'Proto.Lnrpc.Ln0_Fields.openChannel' @:: Lens' ChannelEventUpdate Channel@+ * 'Proto.Lnrpc.Ln0_Fields.maybe'closedChannel' @:: Lens' ChannelEventUpdate (Prelude.Maybe ChannelCloseSummary)@+ * 'Proto.Lnrpc.Ln0_Fields.closedChannel' @:: Lens' ChannelEventUpdate ChannelCloseSummary@+ * 'Proto.Lnrpc.Ln0_Fields.maybe'activeChannel' @:: Lens' ChannelEventUpdate (Prelude.Maybe ChannelPoint)@+ * 'Proto.Lnrpc.Ln0_Fields.activeChannel' @:: Lens' ChannelEventUpdate ChannelPoint@+ * 'Proto.Lnrpc.Ln0_Fields.maybe'inactiveChannel' @:: Lens' ChannelEventUpdate (Prelude.Maybe ChannelPoint)@+ * 'Proto.Lnrpc.Ln0_Fields.inactiveChannel' @:: Lens' ChannelEventUpdate ChannelPoint@+ * 'Proto.Lnrpc.Ln0_Fields.maybe'pendingOpenChannel' @:: Lens' ChannelEventUpdate (Prelude.Maybe PendingUpdate)@+ * 'Proto.Lnrpc.Ln0_Fields.pendingOpenChannel' @:: Lens' ChannelEventUpdate PendingUpdate@+ * 'Proto.Lnrpc.Ln0_Fields.maybe'fullyResolvedChannel' @:: Lens' ChannelEventUpdate (Prelude.Maybe ChannelPoint)@+ * 'Proto.Lnrpc.Ln0_Fields.fullyResolvedChannel' @:: Lens' ChannelEventUpdate ChannelPoint@ -}+data ChannelEventUpdate+ = ChannelEventUpdate'_constructor {_ChannelEventUpdate'type' :: !ChannelEventUpdate'UpdateType,+ _ChannelEventUpdate'channel :: !(Prelude.Maybe ChannelEventUpdate'Channel),+ _ChannelEventUpdate'_unknownFields :: !Data.ProtoLens.FieldSet}+ deriving stock (Prelude.Eq, Prelude.Ord, GHC.Generics.Generic)+instance Prelude.Show ChannelEventUpdate where+ showsPrec _ __x __s+ = Prelude.showChar+ '{'+ (Prelude.showString+ (Data.ProtoLens.showMessageShort __x) (Prelude.showChar '}' __s))+instance Text.PrettyPrint.GenericPretty.Out ChannelEventUpdate+data ChannelEventUpdate'Channel+ = ChannelEventUpdate'OpenChannel !Channel |+ ChannelEventUpdate'ClosedChannel !ChannelCloseSummary |+ ChannelEventUpdate'ActiveChannel !ChannelPoint |+ ChannelEventUpdate'InactiveChannel !ChannelPoint |+ ChannelEventUpdate'PendingOpenChannel !PendingUpdate |+ ChannelEventUpdate'FullyResolvedChannel !ChannelPoint+ deriving stock (Prelude.Show,+ Prelude.Eq,+ Prelude.Ord,+ GHC.Generics.Generic)+instance Text.PrettyPrint.GenericPretty.Out ChannelEventUpdate'Channel+instance Data.ProtoLens.Field.HasField ChannelEventUpdate "type'" ChannelEventUpdate'UpdateType where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _ChannelEventUpdate'type'+ (\ x__ y__ -> x__ {_ChannelEventUpdate'type' = y__}))+ Prelude.id+instance Data.ProtoLens.Field.HasField ChannelEventUpdate "maybe'channel" (Prelude.Maybe ChannelEventUpdate'Channel) where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _ChannelEventUpdate'channel+ (\ x__ y__ -> x__ {_ChannelEventUpdate'channel = y__}))+ Prelude.id+instance Data.ProtoLens.Field.HasField ChannelEventUpdate "maybe'openChannel" (Prelude.Maybe Channel) where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _ChannelEventUpdate'channel+ (\ x__ y__ -> x__ {_ChannelEventUpdate'channel = y__}))+ (Lens.Family2.Unchecked.lens+ (\ x__+ -> case x__ of+ (Prelude.Just (ChannelEventUpdate'OpenChannel x__val))+ -> Prelude.Just x__val+ _otherwise -> Prelude.Nothing)+ (\ _ y__ -> Prelude.fmap ChannelEventUpdate'OpenChannel y__))+instance Data.ProtoLens.Field.HasField ChannelEventUpdate "openChannel" Channel where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _ChannelEventUpdate'channel+ (\ x__ y__ -> x__ {_ChannelEventUpdate'channel = y__}))+ ((Prelude..)+ (Lens.Family2.Unchecked.lens+ (\ x__+ -> case x__ of+ (Prelude.Just (ChannelEventUpdate'OpenChannel x__val))+ -> Prelude.Just x__val+ _otherwise -> Prelude.Nothing)+ (\ _ y__ -> Prelude.fmap ChannelEventUpdate'OpenChannel y__))+ (Data.ProtoLens.maybeLens Data.ProtoLens.defMessage))+instance Data.ProtoLens.Field.HasField ChannelEventUpdate "maybe'closedChannel" (Prelude.Maybe ChannelCloseSummary) where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _ChannelEventUpdate'channel+ (\ x__ y__ -> x__ {_ChannelEventUpdate'channel = y__}))+ (Lens.Family2.Unchecked.lens+ (\ x__+ -> case x__ of+ (Prelude.Just (ChannelEventUpdate'ClosedChannel x__val))+ -> Prelude.Just x__val+ _otherwise -> Prelude.Nothing)+ (\ _ y__ -> Prelude.fmap ChannelEventUpdate'ClosedChannel y__))+instance Data.ProtoLens.Field.HasField ChannelEventUpdate "closedChannel" ChannelCloseSummary where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _ChannelEventUpdate'channel+ (\ x__ y__ -> x__ {_ChannelEventUpdate'channel = y__}))+ ((Prelude..)+ (Lens.Family2.Unchecked.lens+ (\ x__+ -> case x__ of+ (Prelude.Just (ChannelEventUpdate'ClosedChannel x__val))+ -> Prelude.Just x__val+ _otherwise -> Prelude.Nothing)+ (\ _ y__ -> Prelude.fmap ChannelEventUpdate'ClosedChannel y__))+ (Data.ProtoLens.maybeLens Data.ProtoLens.defMessage))+instance Data.ProtoLens.Field.HasField ChannelEventUpdate "maybe'activeChannel" (Prelude.Maybe ChannelPoint) where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _ChannelEventUpdate'channel+ (\ x__ y__ -> x__ {_ChannelEventUpdate'channel = y__}))+ (Lens.Family2.Unchecked.lens+ (\ x__+ -> case x__ of+ (Prelude.Just (ChannelEventUpdate'ActiveChannel x__val))+ -> Prelude.Just x__val+ _otherwise -> Prelude.Nothing)+ (\ _ y__ -> Prelude.fmap ChannelEventUpdate'ActiveChannel y__))+instance Data.ProtoLens.Field.HasField ChannelEventUpdate "activeChannel" ChannelPoint where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _ChannelEventUpdate'channel+ (\ x__ y__ -> x__ {_ChannelEventUpdate'channel = y__}))+ ((Prelude..)+ (Lens.Family2.Unchecked.lens+ (\ x__+ -> case x__ of+ (Prelude.Just (ChannelEventUpdate'ActiveChannel x__val))+ -> Prelude.Just x__val+ _otherwise -> Prelude.Nothing)+ (\ _ y__ -> Prelude.fmap ChannelEventUpdate'ActiveChannel y__))+ (Data.ProtoLens.maybeLens Data.ProtoLens.defMessage))+instance Data.ProtoLens.Field.HasField ChannelEventUpdate "maybe'inactiveChannel" (Prelude.Maybe ChannelPoint) where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _ChannelEventUpdate'channel+ (\ x__ y__ -> x__ {_ChannelEventUpdate'channel = y__}))+ (Lens.Family2.Unchecked.lens+ (\ x__+ -> case x__ of+ (Prelude.Just (ChannelEventUpdate'InactiveChannel x__val))+ -> Prelude.Just x__val+ _otherwise -> Prelude.Nothing)+ (\ _ y__ -> Prelude.fmap ChannelEventUpdate'InactiveChannel y__))+instance Data.ProtoLens.Field.HasField ChannelEventUpdate "inactiveChannel" ChannelPoint where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _ChannelEventUpdate'channel+ (\ x__ y__ -> x__ {_ChannelEventUpdate'channel = y__}))+ ((Prelude..)+ (Lens.Family2.Unchecked.lens+ (\ x__+ -> case x__ of+ (Prelude.Just (ChannelEventUpdate'InactiveChannel x__val))+ -> Prelude.Just x__val+ _otherwise -> Prelude.Nothing)+ (\ _ y__ -> Prelude.fmap ChannelEventUpdate'InactiveChannel y__))+ (Data.ProtoLens.maybeLens Data.ProtoLens.defMessage))+instance Data.ProtoLens.Field.HasField ChannelEventUpdate "maybe'pendingOpenChannel" (Prelude.Maybe PendingUpdate) where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _ChannelEventUpdate'channel+ (\ x__ y__ -> x__ {_ChannelEventUpdate'channel = y__}))+ (Lens.Family2.Unchecked.lens+ (\ x__+ -> case x__ of+ (Prelude.Just (ChannelEventUpdate'PendingOpenChannel x__val))+ -> Prelude.Just x__val+ _otherwise -> Prelude.Nothing)+ (\ _ y__+ -> Prelude.fmap ChannelEventUpdate'PendingOpenChannel y__))+instance Data.ProtoLens.Field.HasField ChannelEventUpdate "pendingOpenChannel" PendingUpdate where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _ChannelEventUpdate'channel+ (\ x__ y__ -> x__ {_ChannelEventUpdate'channel = y__}))+ ((Prelude..)+ (Lens.Family2.Unchecked.lens+ (\ x__+ -> case x__ of+ (Prelude.Just (ChannelEventUpdate'PendingOpenChannel x__val))+ -> Prelude.Just x__val+ _otherwise -> Prelude.Nothing)+ (\ _ y__+ -> Prelude.fmap ChannelEventUpdate'PendingOpenChannel y__))+ (Data.ProtoLens.maybeLens Data.ProtoLens.defMessage))+instance Data.ProtoLens.Field.HasField ChannelEventUpdate "maybe'fullyResolvedChannel" (Prelude.Maybe ChannelPoint) where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _ChannelEventUpdate'channel+ (\ x__ y__ -> x__ {_ChannelEventUpdate'channel = y__}))+ (Lens.Family2.Unchecked.lens+ (\ x__+ -> case x__ of+ (Prelude.Just (ChannelEventUpdate'FullyResolvedChannel x__val))+ -> Prelude.Just x__val+ _otherwise -> Prelude.Nothing)+ (\ _ y__+ -> Prelude.fmap ChannelEventUpdate'FullyResolvedChannel y__))+instance Data.ProtoLens.Field.HasField ChannelEventUpdate "fullyResolvedChannel" ChannelPoint where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _ChannelEventUpdate'channel+ (\ x__ y__ -> x__ {_ChannelEventUpdate'channel = y__}))+ ((Prelude..)+ (Lens.Family2.Unchecked.lens+ (\ x__+ -> case x__ of+ (Prelude.Just (ChannelEventUpdate'FullyResolvedChannel x__val))+ -> Prelude.Just x__val+ _otherwise -> Prelude.Nothing)+ (\ _ y__+ -> Prelude.fmap ChannelEventUpdate'FullyResolvedChannel y__))+ (Data.ProtoLens.maybeLens Data.ProtoLens.defMessage))+instance Data.ProtoLens.Message ChannelEventUpdate where+ messageName _ = Data.Text.pack "lnrpc.ChannelEventUpdate"+ packedMessageDescriptor _+ = "\n\+ \\DC2ChannelEventUpdate\DC23\n\+ \\fopen_channel\CAN\SOH \SOH(\v2\SO.lnrpc.ChannelH\NULR\vopenChannel\DC2C\n\+ \\SOclosed_channel\CAN\STX \SOH(\v2\SUB.lnrpc.ChannelCloseSummaryH\NULR\rclosedChannel\DC2<\n\+ \\SOactive_channel\CAN\ETX \SOH(\v2\DC3.lnrpc.ChannelPointH\NULR\ractiveChannel\DC2@\n\+ \\DLEinactive_channel\CAN\EOT \SOH(\v2\DC3.lnrpc.ChannelPointH\NULR\SIinactiveChannel\DC2H\n\+ \\DC4pending_open_channel\CAN\ACK \SOH(\v2\DC4.lnrpc.PendingUpdateH\NULR\DC2pendingOpenChannel\DC2K\n\+ \\SYNfully_resolved_channel\CAN\a \SOH(\v2\DC3.lnrpc.ChannelPointH\NULR\DC4fullyResolvedChannel\DC28\n\+ \\EOTtype\CAN\ENQ \SOH(\SO2$.lnrpc.ChannelEventUpdate.UpdateTypeR\EOTtype\"\146\SOH\n\+ \\n\+ \UpdateType\DC2\DLE\n\+ \\fOPEN_CHANNEL\DLE\NUL\DC2\DC2\n\+ \\SOCLOSED_CHANNEL\DLE\SOH\DC2\DC2\n\+ \\SOACTIVE_CHANNEL\DLE\STX\DC2\DC4\n\+ \\DLEINACTIVE_CHANNEL\DLE\ETX\DC2\CAN\n\+ \\DC4PENDING_OPEN_CHANNEL\DLE\EOT\DC2\SUB\n\+ \\SYNFULLY_RESOLVED_CHANNEL\DLE\ENQB\t\n\+ \\achannel"+ packedFileDescriptor _ = packedFileDescriptor+ fieldsByTag+ = let+ type'__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "type"+ (Data.ProtoLens.ScalarField Data.ProtoLens.EnumField ::+ Data.ProtoLens.FieldTypeDescriptor ChannelEventUpdate'UpdateType)+ (Data.ProtoLens.PlainField+ Data.ProtoLens.Optional (Data.ProtoLens.Field.field @"type'")) ::+ Data.ProtoLens.FieldDescriptor ChannelEventUpdate+ openChannel__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "open_channel"+ (Data.ProtoLens.MessageField Data.ProtoLens.MessageType ::+ Data.ProtoLens.FieldTypeDescriptor Channel)+ (Data.ProtoLens.OptionalField+ (Data.ProtoLens.Field.field @"maybe'openChannel")) ::+ Data.ProtoLens.FieldDescriptor ChannelEventUpdate+ closedChannel__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "closed_channel"+ (Data.ProtoLens.MessageField Data.ProtoLens.MessageType ::+ Data.ProtoLens.FieldTypeDescriptor ChannelCloseSummary)+ (Data.ProtoLens.OptionalField+ (Data.ProtoLens.Field.field @"maybe'closedChannel")) ::+ Data.ProtoLens.FieldDescriptor ChannelEventUpdate+ activeChannel__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "active_channel"+ (Data.ProtoLens.MessageField Data.ProtoLens.MessageType ::+ Data.ProtoLens.FieldTypeDescriptor ChannelPoint)+ (Data.ProtoLens.OptionalField+ (Data.ProtoLens.Field.field @"maybe'activeChannel")) ::+ Data.ProtoLens.FieldDescriptor ChannelEventUpdate+ inactiveChannel__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "inactive_channel"+ (Data.ProtoLens.MessageField Data.ProtoLens.MessageType ::+ Data.ProtoLens.FieldTypeDescriptor ChannelPoint)+ (Data.ProtoLens.OptionalField+ (Data.ProtoLens.Field.field @"maybe'inactiveChannel")) ::+ Data.ProtoLens.FieldDescriptor ChannelEventUpdate+ pendingOpenChannel__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "pending_open_channel"+ (Data.ProtoLens.MessageField Data.ProtoLens.MessageType ::+ Data.ProtoLens.FieldTypeDescriptor PendingUpdate)+ (Data.ProtoLens.OptionalField+ (Data.ProtoLens.Field.field @"maybe'pendingOpenChannel")) ::+ Data.ProtoLens.FieldDescriptor ChannelEventUpdate+ fullyResolvedChannel__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "fully_resolved_channel"+ (Data.ProtoLens.MessageField Data.ProtoLens.MessageType ::+ Data.ProtoLens.FieldTypeDescriptor ChannelPoint)+ (Data.ProtoLens.OptionalField+ (Data.ProtoLens.Field.field @"maybe'fullyResolvedChannel")) ::+ Data.ProtoLens.FieldDescriptor ChannelEventUpdate+ in+ Data.Map.fromList+ [(Data.ProtoLens.Tag 5, type'__field_descriptor),+ (Data.ProtoLens.Tag 1, openChannel__field_descriptor),+ (Data.ProtoLens.Tag 2, closedChannel__field_descriptor),+ (Data.ProtoLens.Tag 3, activeChannel__field_descriptor),+ (Data.ProtoLens.Tag 4, inactiveChannel__field_descriptor),+ (Data.ProtoLens.Tag 6, pendingOpenChannel__field_descriptor),+ (Data.ProtoLens.Tag 7, fullyResolvedChannel__field_descriptor)]+ unknownFields+ = Lens.Family2.Unchecked.lens+ _ChannelEventUpdate'_unknownFields+ (\ x__ y__ -> x__ {_ChannelEventUpdate'_unknownFields = y__})+ defMessage+ = ChannelEventUpdate'_constructor+ {_ChannelEventUpdate'type' = Data.ProtoLens.fieldDefault,+ _ChannelEventUpdate'channel = Prelude.Nothing,+ _ChannelEventUpdate'_unknownFields = []}+ parseMessage+ = let+ loop ::+ ChannelEventUpdate+ -> Data.ProtoLens.Encoding.Bytes.Parser ChannelEventUpdate+ loop x+ = do end <- Data.ProtoLens.Encoding.Bytes.atEnd+ if end then+ do (let missing = []+ in+ if Prelude.null missing then+ Prelude.return ()+ else+ Prelude.fail+ ((Prelude.++)+ "Missing required fields: "+ (Prelude.show (missing :: [Prelude.String]))))+ Prelude.return+ (Lens.Family2.over+ Data.ProtoLens.unknownFields (\ !t -> Prelude.reverse t) x)+ else+ do tag <- Data.ProtoLens.Encoding.Bytes.getVarInt+ case tag of+ 40+ -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (Prelude.fmap+ Prelude.toEnum+ (Prelude.fmap+ Prelude.fromIntegral+ Data.ProtoLens.Encoding.Bytes.getVarInt))+ "type"+ loop (Lens.Family2.set (Data.ProtoLens.Field.field @"type'") y x)+ 10+ -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (do len <- Data.ProtoLens.Encoding.Bytes.getVarInt+ Data.ProtoLens.Encoding.Bytes.isolate+ (Prelude.fromIntegral len) Data.ProtoLens.parseMessage)+ "open_channel"+ loop+ (Lens.Family2.set (Data.ProtoLens.Field.field @"openChannel") y x)+ 18+ -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (do len <- Data.ProtoLens.Encoding.Bytes.getVarInt+ Data.ProtoLens.Encoding.Bytes.isolate+ (Prelude.fromIntegral len) Data.ProtoLens.parseMessage)+ "closed_channel"+ loop+ (Lens.Family2.set+ (Data.ProtoLens.Field.field @"closedChannel") y x)+ 26+ -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (do len <- Data.ProtoLens.Encoding.Bytes.getVarInt+ Data.ProtoLens.Encoding.Bytes.isolate+ (Prelude.fromIntegral len) Data.ProtoLens.parseMessage)+ "active_channel"+ loop+ (Lens.Family2.set+ (Data.ProtoLens.Field.field @"activeChannel") y x)+ 34+ -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (do len <- Data.ProtoLens.Encoding.Bytes.getVarInt+ Data.ProtoLens.Encoding.Bytes.isolate+ (Prelude.fromIntegral len) Data.ProtoLens.parseMessage)+ "inactive_channel"+ loop+ (Lens.Family2.set+ (Data.ProtoLens.Field.field @"inactiveChannel") y x)+ 50+ -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (do len <- Data.ProtoLens.Encoding.Bytes.getVarInt+ Data.ProtoLens.Encoding.Bytes.isolate+ (Prelude.fromIntegral len) Data.ProtoLens.parseMessage)+ "pending_open_channel"+ loop+ (Lens.Family2.set+ (Data.ProtoLens.Field.field @"pendingOpenChannel") y x)+ 58+ -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (do len <- Data.ProtoLens.Encoding.Bytes.getVarInt+ Data.ProtoLens.Encoding.Bytes.isolate+ (Prelude.fromIntegral len) Data.ProtoLens.parseMessage)+ "fully_resolved_channel"+ loop+ (Lens.Family2.set+ (Data.ProtoLens.Field.field @"fullyResolvedChannel") y x)+ wire+ -> do !y <- Data.ProtoLens.Encoding.Wire.parseTaggedValueFromWire+ wire+ loop+ (Lens.Family2.over+ Data.ProtoLens.unknownFields (\ !t -> (:) y t) x)+ in+ (Data.ProtoLens.Encoding.Bytes.<?>)+ (do loop Data.ProtoLens.defMessage) "ChannelEventUpdate"+ buildMessage+ = \ _x+ -> (Data.Monoid.<>)+ (let+ _v = Lens.Family2.view (Data.ProtoLens.Field.field @"type'") _x+ in+ if (Prelude.==) _v Data.ProtoLens.fieldDefault then+ Data.Monoid.mempty+ else+ (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 40)+ ((Prelude..)+ ((Prelude..)+ Data.ProtoLens.Encoding.Bytes.putVarInt Prelude.fromIntegral)+ Prelude.fromEnum _v))+ ((Data.Monoid.<>)+ (case+ Lens.Family2.view (Data.ProtoLens.Field.field @"maybe'channel") _x+ of+ Prelude.Nothing -> Data.Monoid.mempty+ (Prelude.Just (ChannelEventUpdate'OpenChannel v))+ -> (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 10)+ ((Prelude..)+ (\ bs+ -> (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt+ (Prelude.fromIntegral (Data.ByteString.length bs)))+ (Data.ProtoLens.Encoding.Bytes.putBytes bs))+ Data.ProtoLens.encodeMessage v)+ (Prelude.Just (ChannelEventUpdate'ClosedChannel v))+ -> (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 18)+ ((Prelude..)+ (\ bs+ -> (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt+ (Prelude.fromIntegral (Data.ByteString.length bs)))+ (Data.ProtoLens.Encoding.Bytes.putBytes bs))+ Data.ProtoLens.encodeMessage v)+ (Prelude.Just (ChannelEventUpdate'ActiveChannel v))+ -> (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 26)+ ((Prelude..)+ (\ bs+ -> (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt+ (Prelude.fromIntegral (Data.ByteString.length bs)))+ (Data.ProtoLens.Encoding.Bytes.putBytes bs))+ Data.ProtoLens.encodeMessage v)+ (Prelude.Just (ChannelEventUpdate'InactiveChannel v))+ -> (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 34)+ ((Prelude..)+ (\ bs+ -> (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt+ (Prelude.fromIntegral (Data.ByteString.length bs)))+ (Data.ProtoLens.Encoding.Bytes.putBytes bs))+ Data.ProtoLens.encodeMessage v)+ (Prelude.Just (ChannelEventUpdate'PendingOpenChannel v))+ -> (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 50)+ ((Prelude..)+ (\ bs+ -> (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt+ (Prelude.fromIntegral (Data.ByteString.length bs)))+ (Data.ProtoLens.Encoding.Bytes.putBytes bs))+ Data.ProtoLens.encodeMessage v)+ (Prelude.Just (ChannelEventUpdate'FullyResolvedChannel v))+ -> (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 58)+ ((Prelude..)+ (\ bs+ -> (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt+ (Prelude.fromIntegral (Data.ByteString.length bs)))+ (Data.ProtoLens.Encoding.Bytes.putBytes bs))+ Data.ProtoLens.encodeMessage v))+ (Data.ProtoLens.Encoding.Wire.buildFieldSet+ (Lens.Family2.view Data.ProtoLens.unknownFields _x)))+instance Control.DeepSeq.NFData ChannelEventUpdate where+ rnf+ = \ x__+ -> Control.DeepSeq.deepseq+ (_ChannelEventUpdate'_unknownFields x__)+ (Control.DeepSeq.deepseq+ (_ChannelEventUpdate'type' x__)+ (Control.DeepSeq.deepseq (_ChannelEventUpdate'channel x__) ()))+instance Control.DeepSeq.NFData ChannelEventUpdate'Channel where+ rnf (ChannelEventUpdate'OpenChannel x__) = Control.DeepSeq.rnf x__+ rnf (ChannelEventUpdate'ClosedChannel x__)+ = Control.DeepSeq.rnf x__+ rnf (ChannelEventUpdate'ActiveChannel x__)+ = Control.DeepSeq.rnf x__+ rnf (ChannelEventUpdate'InactiveChannel x__)+ = Control.DeepSeq.rnf x__+ rnf (ChannelEventUpdate'PendingOpenChannel x__)+ = Control.DeepSeq.rnf x__+ rnf (ChannelEventUpdate'FullyResolvedChannel x__)+ = Control.DeepSeq.rnf x__+_ChannelEventUpdate'OpenChannel ::+ Data.ProtoLens.Prism.Prism' ChannelEventUpdate'Channel Channel+_ChannelEventUpdate'OpenChannel+ = Data.ProtoLens.Prism.prism'+ ChannelEventUpdate'OpenChannel+ (\ p__+ -> case p__ of+ (ChannelEventUpdate'OpenChannel p__val) -> Prelude.Just p__val+ _otherwise -> Prelude.Nothing)+_ChannelEventUpdate'ClosedChannel ::+ Data.ProtoLens.Prism.Prism' ChannelEventUpdate'Channel ChannelCloseSummary+_ChannelEventUpdate'ClosedChannel+ = Data.ProtoLens.Prism.prism'+ ChannelEventUpdate'ClosedChannel+ (\ p__+ -> case p__ of+ (ChannelEventUpdate'ClosedChannel p__val) -> Prelude.Just p__val+ _otherwise -> Prelude.Nothing)+_ChannelEventUpdate'ActiveChannel ::+ Data.ProtoLens.Prism.Prism' ChannelEventUpdate'Channel ChannelPoint+_ChannelEventUpdate'ActiveChannel+ = Data.ProtoLens.Prism.prism'+ ChannelEventUpdate'ActiveChannel+ (\ p__+ -> case p__ of+ (ChannelEventUpdate'ActiveChannel p__val) -> Prelude.Just p__val+ _otherwise -> Prelude.Nothing)+_ChannelEventUpdate'InactiveChannel ::+ Data.ProtoLens.Prism.Prism' ChannelEventUpdate'Channel ChannelPoint+_ChannelEventUpdate'InactiveChannel+ = Data.ProtoLens.Prism.prism'+ ChannelEventUpdate'InactiveChannel+ (\ p__+ -> case p__ of+ (ChannelEventUpdate'InactiveChannel p__val) -> Prelude.Just p__val+ _otherwise -> Prelude.Nothing)+_ChannelEventUpdate'PendingOpenChannel ::+ Data.ProtoLens.Prism.Prism' ChannelEventUpdate'Channel PendingUpdate+_ChannelEventUpdate'PendingOpenChannel+ = Data.ProtoLens.Prism.prism'+ ChannelEventUpdate'PendingOpenChannel+ (\ p__+ -> case p__ of+ (ChannelEventUpdate'PendingOpenChannel p__val)+ -> Prelude.Just p__val+ _otherwise -> Prelude.Nothing)+_ChannelEventUpdate'FullyResolvedChannel ::+ Data.ProtoLens.Prism.Prism' ChannelEventUpdate'Channel ChannelPoint+_ChannelEventUpdate'FullyResolvedChannel+ = Data.ProtoLens.Prism.prism'+ ChannelEventUpdate'FullyResolvedChannel+ (\ p__+ -> case p__ of+ (ChannelEventUpdate'FullyResolvedChannel p__val)+ -> Prelude.Just p__val+ _otherwise -> Prelude.Nothing)+newtype ChannelEventUpdate'UpdateType'UnrecognizedValue+ = ChannelEventUpdate'UpdateType'UnrecognizedValue Data.Int.Int32+ deriving stock (Prelude.Eq,+ Prelude.Ord,+ Prelude.Show,+ GHC.Generics.Generic)+instance Text.PrettyPrint.GenericPretty.Out ChannelEventUpdate'UpdateType'UnrecognizedValue+data ChannelEventUpdate'UpdateType+ = ChannelEventUpdate'OPEN_CHANNEL |+ ChannelEventUpdate'CLOSED_CHANNEL |+ ChannelEventUpdate'ACTIVE_CHANNEL |+ ChannelEventUpdate'INACTIVE_CHANNEL |+ ChannelEventUpdate'PENDING_OPEN_CHANNEL |+ ChannelEventUpdate'FULLY_RESOLVED_CHANNEL |+ ChannelEventUpdate'UpdateType'Unrecognized !ChannelEventUpdate'UpdateType'UnrecognizedValue+ deriving stock (Prelude.Show,+ Prelude.Eq,+ Prelude.Ord,+ GHC.Generics.Generic)+instance Data.ProtoLens.MessageEnum ChannelEventUpdate'UpdateType where+ maybeToEnum 0 = Prelude.Just ChannelEventUpdate'OPEN_CHANNEL+ maybeToEnum 1 = Prelude.Just ChannelEventUpdate'CLOSED_CHANNEL+ maybeToEnum 2 = Prelude.Just ChannelEventUpdate'ACTIVE_CHANNEL+ maybeToEnum 3 = Prelude.Just ChannelEventUpdate'INACTIVE_CHANNEL+ maybeToEnum 4+ = Prelude.Just ChannelEventUpdate'PENDING_OPEN_CHANNEL+ maybeToEnum 5+ = Prelude.Just ChannelEventUpdate'FULLY_RESOLVED_CHANNEL+ maybeToEnum k+ = Prelude.Just+ (ChannelEventUpdate'UpdateType'Unrecognized+ (ChannelEventUpdate'UpdateType'UnrecognizedValue+ (Prelude.fromIntegral k)))+ showEnum ChannelEventUpdate'OPEN_CHANNEL = "OPEN_CHANNEL"+ showEnum ChannelEventUpdate'CLOSED_CHANNEL = "CLOSED_CHANNEL"+ showEnum ChannelEventUpdate'ACTIVE_CHANNEL = "ACTIVE_CHANNEL"+ showEnum ChannelEventUpdate'INACTIVE_CHANNEL = "INACTIVE_CHANNEL"+ showEnum ChannelEventUpdate'PENDING_OPEN_CHANNEL+ = "PENDING_OPEN_CHANNEL"+ showEnum ChannelEventUpdate'FULLY_RESOLVED_CHANNEL+ = "FULLY_RESOLVED_CHANNEL"+ showEnum+ (ChannelEventUpdate'UpdateType'Unrecognized (ChannelEventUpdate'UpdateType'UnrecognizedValue k))+ = Prelude.show k+ readEnum k+ | (Prelude.==) k "OPEN_CHANNEL"+ = Prelude.Just ChannelEventUpdate'OPEN_CHANNEL+ | (Prelude.==) k "CLOSED_CHANNEL"+ = Prelude.Just ChannelEventUpdate'CLOSED_CHANNEL+ | (Prelude.==) k "ACTIVE_CHANNEL"+ = Prelude.Just ChannelEventUpdate'ACTIVE_CHANNEL+ | (Prelude.==) k "INACTIVE_CHANNEL"+ = Prelude.Just ChannelEventUpdate'INACTIVE_CHANNEL+ | (Prelude.==) k "PENDING_OPEN_CHANNEL"+ = Prelude.Just ChannelEventUpdate'PENDING_OPEN_CHANNEL+ | (Prelude.==) k "FULLY_RESOLVED_CHANNEL"+ = Prelude.Just ChannelEventUpdate'FULLY_RESOLVED_CHANNEL+ | Prelude.otherwise+ = (Prelude.>>=) (Text.Read.readMaybe k) Data.ProtoLens.maybeToEnum+instance Prelude.Bounded ChannelEventUpdate'UpdateType where+ minBound = ChannelEventUpdate'OPEN_CHANNEL+ maxBound = ChannelEventUpdate'FULLY_RESOLVED_CHANNEL+instance Prelude.Enum ChannelEventUpdate'UpdateType where+ toEnum k__+ = Prelude.maybe+ (Prelude.error+ ((Prelude.++)+ "toEnum: unknown value for enum UpdateType: " (Prelude.show k__)))+ Prelude.id (Data.ProtoLens.maybeToEnum k__)+ fromEnum ChannelEventUpdate'OPEN_CHANNEL = 0+ fromEnum ChannelEventUpdate'CLOSED_CHANNEL = 1+ fromEnum ChannelEventUpdate'ACTIVE_CHANNEL = 2+ fromEnum ChannelEventUpdate'INACTIVE_CHANNEL = 3+ fromEnum ChannelEventUpdate'PENDING_OPEN_CHANNEL = 4+ fromEnum ChannelEventUpdate'FULLY_RESOLVED_CHANNEL = 5+ fromEnum+ (ChannelEventUpdate'UpdateType'Unrecognized (ChannelEventUpdate'UpdateType'UnrecognizedValue k))+ = Prelude.fromIntegral k+ succ ChannelEventUpdate'FULLY_RESOLVED_CHANNEL+ = Prelude.error+ "ChannelEventUpdate'UpdateType.succ: bad argument ChannelEventUpdate'FULLY_RESOLVED_CHANNEL. This value would be out of bounds."+ succ ChannelEventUpdate'OPEN_CHANNEL+ = ChannelEventUpdate'CLOSED_CHANNEL+ succ ChannelEventUpdate'CLOSED_CHANNEL+ = ChannelEventUpdate'ACTIVE_CHANNEL+ succ ChannelEventUpdate'ACTIVE_CHANNEL+ = ChannelEventUpdate'INACTIVE_CHANNEL+ succ ChannelEventUpdate'INACTIVE_CHANNEL+ = ChannelEventUpdate'PENDING_OPEN_CHANNEL+ succ ChannelEventUpdate'PENDING_OPEN_CHANNEL+ = ChannelEventUpdate'FULLY_RESOLVED_CHANNEL+ succ (ChannelEventUpdate'UpdateType'Unrecognized _)+ = Prelude.error+ "ChannelEventUpdate'UpdateType.succ: bad argument: unrecognized value"+ pred ChannelEventUpdate'OPEN_CHANNEL+ = Prelude.error+ "ChannelEventUpdate'UpdateType.pred: bad argument ChannelEventUpdate'OPEN_CHANNEL. This value would be out of bounds."+ pred ChannelEventUpdate'CLOSED_CHANNEL+ = ChannelEventUpdate'OPEN_CHANNEL+ pred ChannelEventUpdate'ACTIVE_CHANNEL+ = ChannelEventUpdate'CLOSED_CHANNEL+ pred ChannelEventUpdate'INACTIVE_CHANNEL+ = ChannelEventUpdate'ACTIVE_CHANNEL+ pred ChannelEventUpdate'PENDING_OPEN_CHANNEL+ = ChannelEventUpdate'INACTIVE_CHANNEL+ pred ChannelEventUpdate'FULLY_RESOLVED_CHANNEL+ = ChannelEventUpdate'PENDING_OPEN_CHANNEL+ pred (ChannelEventUpdate'UpdateType'Unrecognized _)+ = Prelude.error+ "ChannelEventUpdate'UpdateType.pred: bad argument: unrecognized value"+ enumFrom = Data.ProtoLens.Message.Enum.messageEnumFrom+ enumFromTo = Data.ProtoLens.Message.Enum.messageEnumFromTo+ enumFromThen = Data.ProtoLens.Message.Enum.messageEnumFromThen+ enumFromThenTo = Data.ProtoLens.Message.Enum.messageEnumFromThenTo+instance Data.ProtoLens.FieldDefault ChannelEventUpdate'UpdateType where+ fieldDefault = ChannelEventUpdate'OPEN_CHANNEL+instance Control.DeepSeq.NFData ChannelEventUpdate'UpdateType where+ rnf x__ = Prelude.seq x__ ()+instance Text.PrettyPrint.GenericPretty.Out ChannelEventUpdate'UpdateType+{- | Fields :+ + * 'Proto.Lnrpc.Ln0_Fields.nodes' @:: Lens' ChannelGraph [LightningNode]@+ * 'Proto.Lnrpc.Ln0_Fields.vec'nodes' @:: Lens' ChannelGraph (Data.Vector.Vector LightningNode)@+ * 'Proto.Lnrpc.Ln0_Fields.edges' @:: Lens' ChannelGraph [ChannelEdge]@+ * 'Proto.Lnrpc.Ln0_Fields.vec'edges' @:: Lens' ChannelGraph (Data.Vector.Vector ChannelEdge)@ -}+data ChannelGraph+ = ChannelGraph'_constructor {_ChannelGraph'nodes :: !(Data.Vector.Vector LightningNode),+ _ChannelGraph'edges :: !(Data.Vector.Vector ChannelEdge),+ _ChannelGraph'_unknownFields :: !Data.ProtoLens.FieldSet}+ deriving stock (Prelude.Eq, Prelude.Ord, GHC.Generics.Generic)+instance Prelude.Show ChannelGraph where+ showsPrec _ __x __s+ = Prelude.showChar+ '{'+ (Prelude.showString+ (Data.ProtoLens.showMessageShort __x) (Prelude.showChar '}' __s))+instance Text.PrettyPrint.GenericPretty.Out ChannelGraph+instance Data.ProtoLens.Field.HasField ChannelGraph "nodes" [LightningNode] where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _ChannelGraph'nodes (\ x__ y__ -> x__ {_ChannelGraph'nodes = y__}))+ (Lens.Family2.Unchecked.lens+ Data.Vector.Generic.toList+ (\ _ y__ -> Data.Vector.Generic.fromList y__))+instance Data.ProtoLens.Field.HasField ChannelGraph "vec'nodes" (Data.Vector.Vector LightningNode) where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _ChannelGraph'nodes (\ x__ y__ -> x__ {_ChannelGraph'nodes = y__}))+ Prelude.id+instance Data.ProtoLens.Field.HasField ChannelGraph "edges" [ChannelEdge] where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _ChannelGraph'edges (\ x__ y__ -> x__ {_ChannelGraph'edges = y__}))+ (Lens.Family2.Unchecked.lens+ Data.Vector.Generic.toList+ (\ _ y__ -> Data.Vector.Generic.fromList y__))+instance Data.ProtoLens.Field.HasField ChannelGraph "vec'edges" (Data.Vector.Vector ChannelEdge) where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _ChannelGraph'edges (\ x__ y__ -> x__ {_ChannelGraph'edges = y__}))+ Prelude.id+instance Data.ProtoLens.Message ChannelGraph where+ messageName _ = Data.Text.pack "lnrpc.ChannelGraph"+ packedMessageDescriptor _+ = "\n\+ \\fChannelGraph\DC2*\n\+ \\ENQnodes\CAN\SOH \ETX(\v2\DC4.lnrpc.LightningNodeR\ENQnodes\DC2(\n\+ \\ENQedges\CAN\STX \ETX(\v2\DC2.lnrpc.ChannelEdgeR\ENQedges"+ packedFileDescriptor _ = packedFileDescriptor+ fieldsByTag+ = let+ nodes__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "nodes"+ (Data.ProtoLens.MessageField Data.ProtoLens.MessageType ::+ Data.ProtoLens.FieldTypeDescriptor LightningNode)+ (Data.ProtoLens.RepeatedField+ Data.ProtoLens.Unpacked (Data.ProtoLens.Field.field @"nodes")) ::+ Data.ProtoLens.FieldDescriptor ChannelGraph+ edges__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "edges"+ (Data.ProtoLens.MessageField Data.ProtoLens.MessageType ::+ Data.ProtoLens.FieldTypeDescriptor ChannelEdge)+ (Data.ProtoLens.RepeatedField+ Data.ProtoLens.Unpacked (Data.ProtoLens.Field.field @"edges")) ::+ Data.ProtoLens.FieldDescriptor ChannelGraph+ in+ Data.Map.fromList+ [(Data.ProtoLens.Tag 1, nodes__field_descriptor),+ (Data.ProtoLens.Tag 2, edges__field_descriptor)]+ unknownFields+ = Lens.Family2.Unchecked.lens+ _ChannelGraph'_unknownFields+ (\ x__ y__ -> x__ {_ChannelGraph'_unknownFields = y__})+ defMessage+ = ChannelGraph'_constructor+ {_ChannelGraph'nodes = Data.Vector.Generic.empty,+ _ChannelGraph'edges = Data.Vector.Generic.empty,+ _ChannelGraph'_unknownFields = []}+ parseMessage+ = let+ loop ::+ ChannelGraph+ -> Data.ProtoLens.Encoding.Growing.Growing Data.Vector.Vector Data.ProtoLens.Encoding.Growing.RealWorld ChannelEdge+ -> Data.ProtoLens.Encoding.Growing.Growing Data.Vector.Vector Data.ProtoLens.Encoding.Growing.RealWorld LightningNode+ -> Data.ProtoLens.Encoding.Bytes.Parser ChannelGraph+ loop x mutable'edges mutable'nodes+ = do end <- Data.ProtoLens.Encoding.Bytes.atEnd+ if end then+ do frozen'edges <- Data.ProtoLens.Encoding.Parser.Unsafe.unsafeLiftIO+ (Data.ProtoLens.Encoding.Growing.unsafeFreeze mutable'edges)+ frozen'nodes <- Data.ProtoLens.Encoding.Parser.Unsafe.unsafeLiftIO+ (Data.ProtoLens.Encoding.Growing.unsafeFreeze mutable'nodes)+ (let missing = []+ in+ if Prelude.null missing then+ Prelude.return ()+ else+ Prelude.fail+ ((Prelude.++)+ "Missing required fields: "+ (Prelude.show (missing :: [Prelude.String]))))+ Prelude.return+ (Lens.Family2.over+ Data.ProtoLens.unknownFields (\ !t -> Prelude.reverse t)+ (Lens.Family2.set+ (Data.ProtoLens.Field.field @"vec'edges") frozen'edges+ (Lens.Family2.set+ (Data.ProtoLens.Field.field @"vec'nodes") frozen'nodes x)))+ else+ do tag <- Data.ProtoLens.Encoding.Bytes.getVarInt+ case tag of+ 10+ -> do !y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (do len <- Data.ProtoLens.Encoding.Bytes.getVarInt+ Data.ProtoLens.Encoding.Bytes.isolate+ (Prelude.fromIntegral len)+ Data.ProtoLens.parseMessage)+ "nodes"+ v <- Data.ProtoLens.Encoding.Parser.Unsafe.unsafeLiftIO+ (Data.ProtoLens.Encoding.Growing.append mutable'nodes y)+ loop x mutable'edges v+ 18+ -> do !y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (do len <- Data.ProtoLens.Encoding.Bytes.getVarInt+ Data.ProtoLens.Encoding.Bytes.isolate+ (Prelude.fromIntegral len)+ Data.ProtoLens.parseMessage)+ "edges"+ v <- Data.ProtoLens.Encoding.Parser.Unsafe.unsafeLiftIO+ (Data.ProtoLens.Encoding.Growing.append mutable'edges y)+ loop x v mutable'nodes+ wire+ -> do !y <- Data.ProtoLens.Encoding.Wire.parseTaggedValueFromWire+ wire+ loop+ (Lens.Family2.over+ Data.ProtoLens.unknownFields (\ !t -> (:) y t) x)+ mutable'edges mutable'nodes+ in+ (Data.ProtoLens.Encoding.Bytes.<?>)+ (do mutable'edges <- Data.ProtoLens.Encoding.Parser.Unsafe.unsafeLiftIO+ Data.ProtoLens.Encoding.Growing.new+ mutable'nodes <- Data.ProtoLens.Encoding.Parser.Unsafe.unsafeLiftIO+ Data.ProtoLens.Encoding.Growing.new+ loop Data.ProtoLens.defMessage mutable'edges mutable'nodes)+ "ChannelGraph"+ buildMessage+ = \ _x+ -> (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.foldMapBuilder+ (\ _v+ -> (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 10)+ ((Prelude..)+ (\ bs+ -> (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt+ (Prelude.fromIntegral (Data.ByteString.length bs)))+ (Data.ProtoLens.Encoding.Bytes.putBytes bs))+ Data.ProtoLens.encodeMessage _v))+ (Lens.Family2.view (Data.ProtoLens.Field.field @"vec'nodes") _x))+ ((Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.foldMapBuilder+ (\ _v+ -> (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 18)+ ((Prelude..)+ (\ bs+ -> (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt+ (Prelude.fromIntegral (Data.ByteString.length bs)))+ (Data.ProtoLens.Encoding.Bytes.putBytes bs))+ Data.ProtoLens.encodeMessage _v))+ (Lens.Family2.view (Data.ProtoLens.Field.field @"vec'edges") _x))+ (Data.ProtoLens.Encoding.Wire.buildFieldSet+ (Lens.Family2.view Data.ProtoLens.unknownFields _x)))+instance Control.DeepSeq.NFData ChannelGraph where+ rnf+ = \ x__+ -> Control.DeepSeq.deepseq+ (_ChannelGraph'_unknownFields x__)+ (Control.DeepSeq.deepseq+ (_ChannelGraph'nodes x__)+ (Control.DeepSeq.deepseq (_ChannelGraph'edges x__) ()))+{- | Fields :+ + * 'Proto.Lnrpc.Ln0_Fields.includeUnannounced' @:: Lens' ChannelGraphRequest Prelude.Bool@ -}+data ChannelGraphRequest+ = ChannelGraphRequest'_constructor {_ChannelGraphRequest'includeUnannounced :: !Prelude.Bool,+ _ChannelGraphRequest'_unknownFields :: !Data.ProtoLens.FieldSet}+ deriving stock (Prelude.Eq, Prelude.Ord, GHC.Generics.Generic)+instance Prelude.Show ChannelGraphRequest where+ showsPrec _ __x __s+ = Prelude.showChar+ '{'+ (Prelude.showString+ (Data.ProtoLens.showMessageShort __x) (Prelude.showChar '}' __s))+instance Text.PrettyPrint.GenericPretty.Out ChannelGraphRequest+instance Data.ProtoLens.Field.HasField ChannelGraphRequest "includeUnannounced" Prelude.Bool where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _ChannelGraphRequest'includeUnannounced+ (\ x__ y__ -> x__ {_ChannelGraphRequest'includeUnannounced = y__}))+ Prelude.id+instance Data.ProtoLens.Message ChannelGraphRequest where+ messageName _ = Data.Text.pack "lnrpc.ChannelGraphRequest"+ packedMessageDescriptor _+ = "\n\+ \\DC3ChannelGraphRequest\DC2/\n\+ \\DC3include_unannounced\CAN\SOH \SOH(\bR\DC2includeUnannounced"+ packedFileDescriptor _ = packedFileDescriptor+ fieldsByTag+ = let+ includeUnannounced__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "include_unannounced"+ (Data.ProtoLens.ScalarField Data.ProtoLens.BoolField ::+ Data.ProtoLens.FieldTypeDescriptor Prelude.Bool)+ (Data.ProtoLens.PlainField+ Data.ProtoLens.Optional+ (Data.ProtoLens.Field.field @"includeUnannounced")) ::+ Data.ProtoLens.FieldDescriptor ChannelGraphRequest+ in+ Data.Map.fromList+ [(Data.ProtoLens.Tag 1, includeUnannounced__field_descriptor)]+ unknownFields+ = Lens.Family2.Unchecked.lens+ _ChannelGraphRequest'_unknownFields+ (\ x__ y__ -> x__ {_ChannelGraphRequest'_unknownFields = y__})+ defMessage+ = ChannelGraphRequest'_constructor+ {_ChannelGraphRequest'includeUnannounced = Data.ProtoLens.fieldDefault,+ _ChannelGraphRequest'_unknownFields = []}+ parseMessage+ = let+ loop ::+ ChannelGraphRequest+ -> Data.ProtoLens.Encoding.Bytes.Parser ChannelGraphRequest+ loop x+ = do end <- Data.ProtoLens.Encoding.Bytes.atEnd+ if end then+ do (let missing = []+ in+ if Prelude.null missing then+ Prelude.return ()+ else+ Prelude.fail+ ((Prelude.++)+ "Missing required fields: "+ (Prelude.show (missing :: [Prelude.String]))))+ Prelude.return+ (Lens.Family2.over+ Data.ProtoLens.unknownFields (\ !t -> Prelude.reverse t) x)+ else+ do tag <- Data.ProtoLens.Encoding.Bytes.getVarInt+ case tag of+ 8 -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (Prelude.fmap+ ((Prelude./=) 0) Data.ProtoLens.Encoding.Bytes.getVarInt)+ "include_unannounced"+ loop+ (Lens.Family2.set+ (Data.ProtoLens.Field.field @"includeUnannounced") y x)+ wire+ -> do !y <- Data.ProtoLens.Encoding.Wire.parseTaggedValueFromWire+ wire+ loop+ (Lens.Family2.over+ Data.ProtoLens.unknownFields (\ !t -> (:) y t) x)+ in+ (Data.ProtoLens.Encoding.Bytes.<?>)+ (do loop Data.ProtoLens.defMessage) "ChannelGraphRequest"+ buildMessage+ = \ _x+ -> (Data.Monoid.<>)+ (let+ _v+ = Lens.Family2.view+ (Data.ProtoLens.Field.field @"includeUnannounced") _x+ in+ if (Prelude.==) _v Data.ProtoLens.fieldDefault then+ Data.Monoid.mempty+ else+ (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 8)+ ((Prelude..)+ Data.ProtoLens.Encoding.Bytes.putVarInt (\ b -> if b then 1 else 0)+ _v))+ (Data.ProtoLens.Encoding.Wire.buildFieldSet+ (Lens.Family2.view Data.ProtoLens.unknownFields _x))+instance Control.DeepSeq.NFData ChannelGraphRequest where+ rnf+ = \ x__+ -> Control.DeepSeq.deepseq+ (_ChannelGraphRequest'_unknownFields x__)+ (Control.DeepSeq.deepseq+ (_ChannelGraphRequest'includeUnannounced x__) ())+{- | Fields :+ + * 'Proto.Lnrpc.Ln0_Fields.outputIndex' @:: Lens' ChannelPoint Data.Word.Word32@+ * 'Proto.Lnrpc.Ln0_Fields.maybe'fundingTxid' @:: Lens' ChannelPoint (Prelude.Maybe ChannelPoint'FundingTxid)@+ * 'Proto.Lnrpc.Ln0_Fields.maybe'fundingTxidBytes' @:: Lens' ChannelPoint (Prelude.Maybe Data.ByteString.ByteString)@+ * 'Proto.Lnrpc.Ln0_Fields.fundingTxidBytes' @:: Lens' ChannelPoint Data.ByteString.ByteString@+ * 'Proto.Lnrpc.Ln0_Fields.maybe'fundingTxidStr' @:: Lens' ChannelPoint (Prelude.Maybe Data.Text.Text)@+ * 'Proto.Lnrpc.Ln0_Fields.fundingTxidStr' @:: Lens' ChannelPoint Data.Text.Text@ -}+data ChannelPoint+ = ChannelPoint'_constructor {_ChannelPoint'outputIndex :: !Data.Word.Word32,+ _ChannelPoint'fundingTxid :: !(Prelude.Maybe ChannelPoint'FundingTxid),+ _ChannelPoint'_unknownFields :: !Data.ProtoLens.FieldSet}+ deriving stock (Prelude.Eq, Prelude.Ord, GHC.Generics.Generic)+instance Prelude.Show ChannelPoint where+ showsPrec _ __x __s+ = Prelude.showChar+ '{'+ (Prelude.showString+ (Data.ProtoLens.showMessageShort __x) (Prelude.showChar '}' __s))+instance Text.PrettyPrint.GenericPretty.Out ChannelPoint+data ChannelPoint'FundingTxid+ = ChannelPoint'FundingTxidBytes !Data.ByteString.ByteString |+ ChannelPoint'FundingTxidStr !Data.Text.Text+ deriving stock (Prelude.Show,+ Prelude.Eq,+ Prelude.Ord,+ GHC.Generics.Generic)+instance Text.PrettyPrint.GenericPretty.Out ChannelPoint'FundingTxid+instance Data.ProtoLens.Field.HasField ChannelPoint "outputIndex" Data.Word.Word32 where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _ChannelPoint'outputIndex+ (\ x__ y__ -> x__ {_ChannelPoint'outputIndex = y__}))+ Prelude.id+instance Data.ProtoLens.Field.HasField ChannelPoint "maybe'fundingTxid" (Prelude.Maybe ChannelPoint'FundingTxid) where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _ChannelPoint'fundingTxid+ (\ x__ y__ -> x__ {_ChannelPoint'fundingTxid = y__}))+ Prelude.id+instance Data.ProtoLens.Field.HasField ChannelPoint "maybe'fundingTxidBytes" (Prelude.Maybe Data.ByteString.ByteString) where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _ChannelPoint'fundingTxid+ (\ x__ y__ -> x__ {_ChannelPoint'fundingTxid = y__}))+ (Lens.Family2.Unchecked.lens+ (\ x__+ -> case x__ of+ (Prelude.Just (ChannelPoint'FundingTxidBytes x__val))+ -> Prelude.Just x__val+ _otherwise -> Prelude.Nothing)+ (\ _ y__ -> Prelude.fmap ChannelPoint'FundingTxidBytes y__))+instance Data.ProtoLens.Field.HasField ChannelPoint "fundingTxidBytes" Data.ByteString.ByteString where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _ChannelPoint'fundingTxid+ (\ x__ y__ -> x__ {_ChannelPoint'fundingTxid = y__}))+ ((Prelude..)+ (Lens.Family2.Unchecked.lens+ (\ x__+ -> case x__ of+ (Prelude.Just (ChannelPoint'FundingTxidBytes x__val))+ -> Prelude.Just x__val+ _otherwise -> Prelude.Nothing)+ (\ _ y__ -> Prelude.fmap ChannelPoint'FundingTxidBytes y__))+ (Data.ProtoLens.maybeLens Data.ProtoLens.fieldDefault))+instance Data.ProtoLens.Field.HasField ChannelPoint "maybe'fundingTxidStr" (Prelude.Maybe Data.Text.Text) where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _ChannelPoint'fundingTxid+ (\ x__ y__ -> x__ {_ChannelPoint'fundingTxid = y__}))+ (Lens.Family2.Unchecked.lens+ (\ x__+ -> case x__ of+ (Prelude.Just (ChannelPoint'FundingTxidStr x__val))+ -> Prelude.Just x__val+ _otherwise -> Prelude.Nothing)+ (\ _ y__ -> Prelude.fmap ChannelPoint'FundingTxidStr y__))+instance Data.ProtoLens.Field.HasField ChannelPoint "fundingTxidStr" Data.Text.Text where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _ChannelPoint'fundingTxid+ (\ x__ y__ -> x__ {_ChannelPoint'fundingTxid = y__}))+ ((Prelude..)+ (Lens.Family2.Unchecked.lens+ (\ x__+ -> case x__ of+ (Prelude.Just (ChannelPoint'FundingTxidStr x__val))+ -> Prelude.Just x__val+ _otherwise -> Prelude.Nothing)+ (\ _ y__ -> Prelude.fmap ChannelPoint'FundingTxidStr y__))+ (Data.ProtoLens.maybeLens Data.ProtoLens.fieldDefault))+instance Data.ProtoLens.Message ChannelPoint where+ messageName _ = Data.Text.pack "lnrpc.ChannelPoint"+ packedMessageDescriptor _+ = "\n\+ \\fChannelPoint\DC2.\n\+ \\DC2funding_txid_bytes\CAN\SOH \SOH(\fH\NULR\DLEfundingTxidBytes\DC2*\n\+ \\DLEfunding_txid_str\CAN\STX \SOH(\tH\NULR\SOfundingTxidStr\DC2!\n\+ \\foutput_index\CAN\ETX \SOH(\rR\voutputIndexB\SO\n\+ \\ffunding_txid"+ packedFileDescriptor _ = packedFileDescriptor+ fieldsByTag+ = let+ outputIndex__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "output_index"+ (Data.ProtoLens.ScalarField Data.ProtoLens.UInt32Field ::+ Data.ProtoLens.FieldTypeDescriptor Data.Word.Word32)+ (Data.ProtoLens.PlainField+ Data.ProtoLens.Optional+ (Data.ProtoLens.Field.field @"outputIndex")) ::+ Data.ProtoLens.FieldDescriptor ChannelPoint+ fundingTxidBytes__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "funding_txid_bytes"+ (Data.ProtoLens.ScalarField Data.ProtoLens.BytesField ::+ Data.ProtoLens.FieldTypeDescriptor Data.ByteString.ByteString)+ (Data.ProtoLens.OptionalField+ (Data.ProtoLens.Field.field @"maybe'fundingTxidBytes")) ::+ Data.ProtoLens.FieldDescriptor ChannelPoint+ fundingTxidStr__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "funding_txid_str"+ (Data.ProtoLens.ScalarField Data.ProtoLens.StringField ::+ Data.ProtoLens.FieldTypeDescriptor Data.Text.Text)+ (Data.ProtoLens.OptionalField+ (Data.ProtoLens.Field.field @"maybe'fundingTxidStr")) ::+ Data.ProtoLens.FieldDescriptor ChannelPoint+ in+ Data.Map.fromList+ [(Data.ProtoLens.Tag 3, outputIndex__field_descriptor),+ (Data.ProtoLens.Tag 1, fundingTxidBytes__field_descriptor),+ (Data.ProtoLens.Tag 2, fundingTxidStr__field_descriptor)]+ unknownFields+ = Lens.Family2.Unchecked.lens+ _ChannelPoint'_unknownFields+ (\ x__ y__ -> x__ {_ChannelPoint'_unknownFields = y__})+ defMessage+ = ChannelPoint'_constructor+ {_ChannelPoint'outputIndex = Data.ProtoLens.fieldDefault,+ _ChannelPoint'fundingTxid = Prelude.Nothing,+ _ChannelPoint'_unknownFields = []}+ parseMessage+ = let+ loop ::+ ChannelPoint -> Data.ProtoLens.Encoding.Bytes.Parser ChannelPoint+ loop x+ = do end <- Data.ProtoLens.Encoding.Bytes.atEnd+ if end then+ do (let missing = []+ in+ if Prelude.null missing then+ Prelude.return ()+ else+ Prelude.fail+ ((Prelude.++)+ "Missing required fields: "+ (Prelude.show (missing :: [Prelude.String]))))+ Prelude.return+ (Lens.Family2.over+ Data.ProtoLens.unknownFields (\ !t -> Prelude.reverse t) x)+ else+ do tag <- Data.ProtoLens.Encoding.Bytes.getVarInt+ case tag of+ 24+ -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (Prelude.fmap+ Prelude.fromIntegral+ Data.ProtoLens.Encoding.Bytes.getVarInt)+ "output_index"+ loop+ (Lens.Family2.set (Data.ProtoLens.Field.field @"outputIndex") y x)+ 10+ -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (do len <- Data.ProtoLens.Encoding.Bytes.getVarInt+ Data.ProtoLens.Encoding.Bytes.getBytes+ (Prelude.fromIntegral len))+ "funding_txid_bytes"+ loop+ (Lens.Family2.set+ (Data.ProtoLens.Field.field @"fundingTxidBytes") y x)+ 18+ -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (do value <- do len <- Data.ProtoLens.Encoding.Bytes.getVarInt+ Data.ProtoLens.Encoding.Bytes.getBytes+ (Prelude.fromIntegral len)+ Data.ProtoLens.Encoding.Bytes.runEither+ (case Data.Text.Encoding.decodeUtf8' value of+ (Prelude.Left err)+ -> Prelude.Left (Prelude.show err)+ (Prelude.Right r) -> Prelude.Right r))+ "funding_txid_str"+ loop+ (Lens.Family2.set+ (Data.ProtoLens.Field.field @"fundingTxidStr") y x)+ wire+ -> do !y <- Data.ProtoLens.Encoding.Wire.parseTaggedValueFromWire+ wire+ loop+ (Lens.Family2.over+ Data.ProtoLens.unknownFields (\ !t -> (:) y t) x)+ in+ (Data.ProtoLens.Encoding.Bytes.<?>)+ (do loop Data.ProtoLens.defMessage) "ChannelPoint"+ buildMessage+ = \ _x+ -> (Data.Monoid.<>)+ (let+ _v+ = Lens.Family2.view (Data.ProtoLens.Field.field @"outputIndex") _x+ in+ if (Prelude.==) _v Data.ProtoLens.fieldDefault then+ Data.Monoid.mempty+ else+ (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 24)+ ((Prelude..)+ Data.ProtoLens.Encoding.Bytes.putVarInt Prelude.fromIntegral _v))+ ((Data.Monoid.<>)+ (case+ Lens.Family2.view+ (Data.ProtoLens.Field.field @"maybe'fundingTxid") _x+ of+ Prelude.Nothing -> Data.Monoid.mempty+ (Prelude.Just (ChannelPoint'FundingTxidBytes v))+ -> (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 10)+ ((\ bs+ -> (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt+ (Prelude.fromIntegral (Data.ByteString.length bs)))+ (Data.ProtoLens.Encoding.Bytes.putBytes bs))+ v)+ (Prelude.Just (ChannelPoint'FundingTxidStr v))+ -> (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 18)+ ((Prelude..)+ (\ bs+ -> (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt+ (Prelude.fromIntegral (Data.ByteString.length bs)))+ (Data.ProtoLens.Encoding.Bytes.putBytes bs))+ Data.Text.Encoding.encodeUtf8 v))+ (Data.ProtoLens.Encoding.Wire.buildFieldSet+ (Lens.Family2.view Data.ProtoLens.unknownFields _x)))+instance Control.DeepSeq.NFData ChannelPoint where+ rnf+ = \ x__+ -> Control.DeepSeq.deepseq+ (_ChannelPoint'_unknownFields x__)+ (Control.DeepSeq.deepseq+ (_ChannelPoint'outputIndex x__)+ (Control.DeepSeq.deepseq (_ChannelPoint'fundingTxid x__) ()))+instance Control.DeepSeq.NFData ChannelPoint'FundingTxid where+ rnf (ChannelPoint'FundingTxidBytes x__) = Control.DeepSeq.rnf x__+ rnf (ChannelPoint'FundingTxidStr x__) = Control.DeepSeq.rnf x__+_ChannelPoint'FundingTxidBytes ::+ Data.ProtoLens.Prism.Prism' ChannelPoint'FundingTxid Data.ByteString.ByteString+_ChannelPoint'FundingTxidBytes+ = Data.ProtoLens.Prism.prism'+ ChannelPoint'FundingTxidBytes+ (\ p__+ -> case p__ of+ (ChannelPoint'FundingTxidBytes p__val) -> Prelude.Just p__val+ _otherwise -> Prelude.Nothing)+_ChannelPoint'FundingTxidStr ::+ Data.ProtoLens.Prism.Prism' ChannelPoint'FundingTxid Data.Text.Text+_ChannelPoint'FundingTxidStr+ = Data.ProtoLens.Prism.prism'+ ChannelPoint'FundingTxidStr+ (\ p__+ -> case p__ of+ (ChannelPoint'FundingTxidStr p__val) -> Prelude.Just p__val+ _otherwise -> Prelude.Nothing)+{- | Fields :+ + * 'Proto.Lnrpc.Ln0_Fields.chanId' @:: Lens' ClosedChannelUpdate Data.Word.Word64@+ * 'Proto.Lnrpc.Ln0_Fields.capacity' @:: Lens' ClosedChannelUpdate Data.Int.Int64@+ * 'Proto.Lnrpc.Ln0_Fields.closedHeight' @:: Lens' ClosedChannelUpdate Data.Word.Word32@+ * 'Proto.Lnrpc.Ln0_Fields.chanPoint' @:: Lens' ClosedChannelUpdate ChannelPoint@+ * 'Proto.Lnrpc.Ln0_Fields.maybe'chanPoint' @:: Lens' ClosedChannelUpdate (Prelude.Maybe ChannelPoint)@ -}+data ClosedChannelUpdate+ = ClosedChannelUpdate'_constructor {_ClosedChannelUpdate'chanId :: !Data.Word.Word64,+ _ClosedChannelUpdate'capacity :: !Data.Int.Int64,+ _ClosedChannelUpdate'closedHeight :: !Data.Word.Word32,+ _ClosedChannelUpdate'chanPoint :: !(Prelude.Maybe ChannelPoint),+ _ClosedChannelUpdate'_unknownFields :: !Data.ProtoLens.FieldSet}+ deriving stock (Prelude.Eq, Prelude.Ord, GHC.Generics.Generic)+instance Prelude.Show ClosedChannelUpdate where+ showsPrec _ __x __s+ = Prelude.showChar+ '{'+ (Prelude.showString+ (Data.ProtoLens.showMessageShort __x) (Prelude.showChar '}' __s))+instance Text.PrettyPrint.GenericPretty.Out ClosedChannelUpdate+instance Data.ProtoLens.Field.HasField ClosedChannelUpdate "chanId" Data.Word.Word64 where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _ClosedChannelUpdate'chanId+ (\ x__ y__ -> x__ {_ClosedChannelUpdate'chanId = y__}))+ Prelude.id+instance Data.ProtoLens.Field.HasField ClosedChannelUpdate "capacity" Data.Int.Int64 where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _ClosedChannelUpdate'capacity+ (\ x__ y__ -> x__ {_ClosedChannelUpdate'capacity = y__}))+ Prelude.id+instance Data.ProtoLens.Field.HasField ClosedChannelUpdate "closedHeight" Data.Word.Word32 where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _ClosedChannelUpdate'closedHeight+ (\ x__ y__ -> x__ {_ClosedChannelUpdate'closedHeight = y__}))+ Prelude.id+instance Data.ProtoLens.Field.HasField ClosedChannelUpdate "chanPoint" ChannelPoint where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _ClosedChannelUpdate'chanPoint+ (\ x__ y__ -> x__ {_ClosedChannelUpdate'chanPoint = y__}))+ (Data.ProtoLens.maybeLens Data.ProtoLens.defMessage)+instance Data.ProtoLens.Field.HasField ClosedChannelUpdate "maybe'chanPoint" (Prelude.Maybe ChannelPoint) where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _ClosedChannelUpdate'chanPoint+ (\ x__ y__ -> x__ {_ClosedChannelUpdate'chanPoint = y__}))+ Prelude.id+instance Data.ProtoLens.Message ClosedChannelUpdate where+ messageName _ = Data.Text.pack "lnrpc.ClosedChannelUpdate"+ packedMessageDescriptor _+ = "\n\+ \\DC3ClosedChannelUpdate\DC2\ESC\n\+ \\achan_id\CAN\SOH \SOH(\EOTR\ACKchanIdB\STX0\SOH\DC2\SUB\n\+ \\bcapacity\CAN\STX \SOH(\ETXR\bcapacity\DC2#\n\+ \\rclosed_height\CAN\ETX \SOH(\rR\fclosedHeight\DC22\n\+ \\n\+ \chan_point\CAN\EOT \SOH(\v2\DC3.lnrpc.ChannelPointR\tchanPoint"+ packedFileDescriptor _ = packedFileDescriptor+ fieldsByTag+ = let+ chanId__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "chan_id"+ (Data.ProtoLens.ScalarField Data.ProtoLens.UInt64Field ::+ Data.ProtoLens.FieldTypeDescriptor Data.Word.Word64)+ (Data.ProtoLens.PlainField+ Data.ProtoLens.Optional (Data.ProtoLens.Field.field @"chanId")) ::+ Data.ProtoLens.FieldDescriptor ClosedChannelUpdate+ capacity__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "capacity"+ (Data.ProtoLens.ScalarField Data.ProtoLens.Int64Field ::+ Data.ProtoLens.FieldTypeDescriptor Data.Int.Int64)+ (Data.ProtoLens.PlainField+ Data.ProtoLens.Optional+ (Data.ProtoLens.Field.field @"capacity")) ::+ Data.ProtoLens.FieldDescriptor ClosedChannelUpdate+ closedHeight__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "closed_height"+ (Data.ProtoLens.ScalarField Data.ProtoLens.UInt32Field ::+ Data.ProtoLens.FieldTypeDescriptor Data.Word.Word32)+ (Data.ProtoLens.PlainField+ Data.ProtoLens.Optional+ (Data.ProtoLens.Field.field @"closedHeight")) ::+ Data.ProtoLens.FieldDescriptor ClosedChannelUpdate+ chanPoint__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "chan_point"+ (Data.ProtoLens.MessageField Data.ProtoLens.MessageType ::+ Data.ProtoLens.FieldTypeDescriptor ChannelPoint)+ (Data.ProtoLens.OptionalField+ (Data.ProtoLens.Field.field @"maybe'chanPoint")) ::+ Data.ProtoLens.FieldDescriptor ClosedChannelUpdate+ in+ Data.Map.fromList+ [(Data.ProtoLens.Tag 1, chanId__field_descriptor),+ (Data.ProtoLens.Tag 2, capacity__field_descriptor),+ (Data.ProtoLens.Tag 3, closedHeight__field_descriptor),+ (Data.ProtoLens.Tag 4, chanPoint__field_descriptor)]+ unknownFields+ = Lens.Family2.Unchecked.lens+ _ClosedChannelUpdate'_unknownFields+ (\ x__ y__ -> x__ {_ClosedChannelUpdate'_unknownFields = y__})+ defMessage+ = ClosedChannelUpdate'_constructor+ {_ClosedChannelUpdate'chanId = Data.ProtoLens.fieldDefault,+ _ClosedChannelUpdate'capacity = Data.ProtoLens.fieldDefault,+ _ClosedChannelUpdate'closedHeight = Data.ProtoLens.fieldDefault,+ _ClosedChannelUpdate'chanPoint = Prelude.Nothing,+ _ClosedChannelUpdate'_unknownFields = []}+ parseMessage+ = let+ loop ::+ ClosedChannelUpdate+ -> Data.ProtoLens.Encoding.Bytes.Parser ClosedChannelUpdate+ loop x+ = do end <- Data.ProtoLens.Encoding.Bytes.atEnd+ if end then+ do (let missing = []+ in+ if Prelude.null missing then+ Prelude.return ()+ else+ Prelude.fail+ ((Prelude.++)+ "Missing required fields: "+ (Prelude.show (missing :: [Prelude.String]))))+ Prelude.return+ (Lens.Family2.over+ Data.ProtoLens.unknownFields (\ !t -> Prelude.reverse t) x)+ else+ do tag <- Data.ProtoLens.Encoding.Bytes.getVarInt+ case tag of+ 8 -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ Data.ProtoLens.Encoding.Bytes.getVarInt "chan_id"+ loop (Lens.Family2.set (Data.ProtoLens.Field.field @"chanId") y x)+ 16+ -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (Prelude.fmap+ Prelude.fromIntegral+ Data.ProtoLens.Encoding.Bytes.getVarInt)+ "capacity"+ loop+ (Lens.Family2.set (Data.ProtoLens.Field.field @"capacity") y x)+ 24+ -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (Prelude.fmap+ Prelude.fromIntegral+ Data.ProtoLens.Encoding.Bytes.getVarInt)+ "closed_height"+ loop+ (Lens.Family2.set+ (Data.ProtoLens.Field.field @"closedHeight") y x)+ 34+ -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (do len <- Data.ProtoLens.Encoding.Bytes.getVarInt+ Data.ProtoLens.Encoding.Bytes.isolate+ (Prelude.fromIntegral len) Data.ProtoLens.parseMessage)+ "chan_point"+ loop+ (Lens.Family2.set (Data.ProtoLens.Field.field @"chanPoint") y x)+ wire+ -> do !y <- Data.ProtoLens.Encoding.Wire.parseTaggedValueFromWire+ wire+ loop+ (Lens.Family2.over+ Data.ProtoLens.unknownFields (\ !t -> (:) y t) x)+ in+ (Data.ProtoLens.Encoding.Bytes.<?>)+ (do loop Data.ProtoLens.defMessage) "ClosedChannelUpdate"+ buildMessage+ = \ _x+ -> (Data.Monoid.<>)+ (let+ _v = Lens.Family2.view (Data.ProtoLens.Field.field @"chanId") _x+ in+ if (Prelude.==) _v Data.ProtoLens.fieldDefault then+ Data.Monoid.mempty+ else+ (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 8)+ (Data.ProtoLens.Encoding.Bytes.putVarInt _v))+ ((Data.Monoid.<>)+ (let+ _v = Lens.Family2.view (Data.ProtoLens.Field.field @"capacity") _x+ in+ if (Prelude.==) _v Data.ProtoLens.fieldDefault then+ Data.Monoid.mempty+ else+ (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 16)+ ((Prelude..)+ Data.ProtoLens.Encoding.Bytes.putVarInt Prelude.fromIntegral _v))+ ((Data.Monoid.<>)+ (let+ _v+ = Lens.Family2.view (Data.ProtoLens.Field.field @"closedHeight") _x+ in+ if (Prelude.==) _v Data.ProtoLens.fieldDefault then+ Data.Monoid.mempty+ else+ (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 24)+ ((Prelude..)+ Data.ProtoLens.Encoding.Bytes.putVarInt Prelude.fromIntegral _v))+ ((Data.Monoid.<>)+ (case+ Lens.Family2.view+ (Data.ProtoLens.Field.field @"maybe'chanPoint") _x+ of+ Prelude.Nothing -> Data.Monoid.mempty+ (Prelude.Just _v)+ -> (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 34)+ ((Prelude..)+ (\ bs+ -> (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt+ (Prelude.fromIntegral (Data.ByteString.length bs)))+ (Data.ProtoLens.Encoding.Bytes.putBytes bs))+ Data.ProtoLens.encodeMessage _v))+ (Data.ProtoLens.Encoding.Wire.buildFieldSet+ (Lens.Family2.view Data.ProtoLens.unknownFields _x)))))+instance Control.DeepSeq.NFData ClosedChannelUpdate where+ rnf+ = \ x__+ -> Control.DeepSeq.deepseq+ (_ClosedChannelUpdate'_unknownFields x__)+ (Control.DeepSeq.deepseq+ (_ClosedChannelUpdate'chanId x__)+ (Control.DeepSeq.deepseq+ (_ClosedChannelUpdate'capacity x__)+ (Control.DeepSeq.deepseq+ (_ClosedChannelUpdate'closedHeight x__)+ (Control.DeepSeq.deepseq+ (_ClosedChannelUpdate'chanPoint x__) ()))))+newtype CommitmentType'UnrecognizedValue+ = CommitmentType'UnrecognizedValue Data.Int.Int32+ deriving stock (Prelude.Eq,+ Prelude.Ord,+ Prelude.Show,+ GHC.Generics.Generic)+instance Text.PrettyPrint.GenericPretty.Out CommitmentType'UnrecognizedValue+data CommitmentType+ = UNKNOWN_COMMITMENT_TYPE |+ LEGACY |+ STATIC_REMOTE_KEY |+ ANCHORS |+ SCRIPT_ENFORCED_LEASE |+ CommitmentType'Unrecognized !CommitmentType'UnrecognizedValue+ deriving stock (Prelude.Show,+ Prelude.Eq,+ Prelude.Ord,+ GHC.Generics.Generic)+instance Data.ProtoLens.MessageEnum CommitmentType where+ maybeToEnum 0 = Prelude.Just UNKNOWN_COMMITMENT_TYPE+ maybeToEnum 1 = Prelude.Just LEGACY+ maybeToEnum 2 = Prelude.Just STATIC_REMOTE_KEY+ maybeToEnum 3 = Prelude.Just ANCHORS+ maybeToEnum 4 = Prelude.Just SCRIPT_ENFORCED_LEASE+ maybeToEnum k+ = Prelude.Just+ (CommitmentType'Unrecognized+ (CommitmentType'UnrecognizedValue (Prelude.fromIntegral k)))+ showEnum UNKNOWN_COMMITMENT_TYPE = "UNKNOWN_COMMITMENT_TYPE"+ showEnum LEGACY = "LEGACY"+ showEnum STATIC_REMOTE_KEY = "STATIC_REMOTE_KEY"+ showEnum ANCHORS = "ANCHORS"+ showEnum SCRIPT_ENFORCED_LEASE = "SCRIPT_ENFORCED_LEASE"+ showEnum+ (CommitmentType'Unrecognized (CommitmentType'UnrecognizedValue k))+ = Prelude.show k+ readEnum k+ | (Prelude.==) k "UNKNOWN_COMMITMENT_TYPE"+ = Prelude.Just UNKNOWN_COMMITMENT_TYPE+ | (Prelude.==) k "LEGACY" = Prelude.Just LEGACY+ | (Prelude.==) k "STATIC_REMOTE_KEY"+ = Prelude.Just STATIC_REMOTE_KEY+ | (Prelude.==) k "ANCHORS" = Prelude.Just ANCHORS+ | (Prelude.==) k "SCRIPT_ENFORCED_LEASE"+ = Prelude.Just SCRIPT_ENFORCED_LEASE+ | Prelude.otherwise+ = (Prelude.>>=) (Text.Read.readMaybe k) Data.ProtoLens.maybeToEnum+instance Prelude.Bounded CommitmentType where+ minBound = UNKNOWN_COMMITMENT_TYPE+ maxBound = SCRIPT_ENFORCED_LEASE+instance Prelude.Enum CommitmentType where+ toEnum k__+ = Prelude.maybe+ (Prelude.error+ ((Prelude.++)+ "toEnum: unknown value for enum CommitmentType: "+ (Prelude.show k__)))+ Prelude.id (Data.ProtoLens.maybeToEnum k__)+ fromEnum UNKNOWN_COMMITMENT_TYPE = 0+ fromEnum LEGACY = 1+ fromEnum STATIC_REMOTE_KEY = 2+ fromEnum ANCHORS = 3+ fromEnum SCRIPT_ENFORCED_LEASE = 4+ fromEnum+ (CommitmentType'Unrecognized (CommitmentType'UnrecognizedValue k))+ = Prelude.fromIntegral k+ succ SCRIPT_ENFORCED_LEASE+ = Prelude.error+ "CommitmentType.succ: bad argument SCRIPT_ENFORCED_LEASE. This value would be out of bounds."+ succ UNKNOWN_COMMITMENT_TYPE = LEGACY+ succ LEGACY = STATIC_REMOTE_KEY+ succ STATIC_REMOTE_KEY = ANCHORS+ succ ANCHORS = SCRIPT_ENFORCED_LEASE+ succ (CommitmentType'Unrecognized _)+ = Prelude.error+ "CommitmentType.succ: bad argument: unrecognized value"+ pred UNKNOWN_COMMITMENT_TYPE+ = Prelude.error+ "CommitmentType.pred: bad argument UNKNOWN_COMMITMENT_TYPE. This value would be out of bounds."+ pred LEGACY = UNKNOWN_COMMITMENT_TYPE+ pred STATIC_REMOTE_KEY = LEGACY+ pred ANCHORS = STATIC_REMOTE_KEY+ pred SCRIPT_ENFORCED_LEASE = ANCHORS+ pred (CommitmentType'Unrecognized _)+ = Prelude.error+ "CommitmentType.pred: bad argument: unrecognized value"+ enumFrom = Data.ProtoLens.Message.Enum.messageEnumFrom+ enumFromTo = Data.ProtoLens.Message.Enum.messageEnumFromTo+ enumFromThen = Data.ProtoLens.Message.Enum.messageEnumFromThen+ enumFromThenTo = Data.ProtoLens.Message.Enum.messageEnumFromThenTo+instance Data.ProtoLens.FieldDefault CommitmentType where+ fieldDefault = UNKNOWN_COMMITMENT_TYPE+instance Control.DeepSeq.NFData CommitmentType where+ rnf x__ = Prelude.seq x__ ()+instance Text.PrettyPrint.GenericPretty.Out CommitmentType+{- | Fields :+ + * 'Proto.Lnrpc.Ln0_Fields.channelId' @:: Lens' EdgeLocator Data.Word.Word64@+ * 'Proto.Lnrpc.Ln0_Fields.directionReverse' @:: Lens' EdgeLocator Prelude.Bool@ -}+data EdgeLocator+ = EdgeLocator'_constructor {_EdgeLocator'channelId :: !Data.Word.Word64,+ _EdgeLocator'directionReverse :: !Prelude.Bool,+ _EdgeLocator'_unknownFields :: !Data.ProtoLens.FieldSet}+ deriving stock (Prelude.Eq, Prelude.Ord, GHC.Generics.Generic)+instance Prelude.Show EdgeLocator where+ showsPrec _ __x __s+ = Prelude.showChar+ '{'+ (Prelude.showString+ (Data.ProtoLens.showMessageShort __x) (Prelude.showChar '}' __s))+instance Text.PrettyPrint.GenericPretty.Out EdgeLocator+instance Data.ProtoLens.Field.HasField EdgeLocator "channelId" Data.Word.Word64 where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _EdgeLocator'channelId+ (\ x__ y__ -> x__ {_EdgeLocator'channelId = y__}))+ Prelude.id+instance Data.ProtoLens.Field.HasField EdgeLocator "directionReverse" Prelude.Bool where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _EdgeLocator'directionReverse+ (\ x__ y__ -> x__ {_EdgeLocator'directionReverse = y__}))+ Prelude.id+instance Data.ProtoLens.Message EdgeLocator where+ messageName _ = Data.Text.pack "lnrpc.EdgeLocator"+ packedMessageDescriptor _+ = "\n\+ \\vEdgeLocator\DC2!\n\+ \\n\+ \channel_id\CAN\SOH \SOH(\EOTR\tchannelIdB\STX0\SOH\DC2+\n\+ \\DC1direction_reverse\CAN\STX \SOH(\bR\DLEdirectionReverse"+ packedFileDescriptor _ = packedFileDescriptor+ fieldsByTag+ = let+ channelId__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "channel_id"+ (Data.ProtoLens.ScalarField Data.ProtoLens.UInt64Field ::+ Data.ProtoLens.FieldTypeDescriptor Data.Word.Word64)+ (Data.ProtoLens.PlainField+ Data.ProtoLens.Optional+ (Data.ProtoLens.Field.field @"channelId")) ::+ Data.ProtoLens.FieldDescriptor EdgeLocator+ directionReverse__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "direction_reverse"+ (Data.ProtoLens.ScalarField Data.ProtoLens.BoolField ::+ Data.ProtoLens.FieldTypeDescriptor Prelude.Bool)+ (Data.ProtoLens.PlainField+ Data.ProtoLens.Optional+ (Data.ProtoLens.Field.field @"directionReverse")) ::+ Data.ProtoLens.FieldDescriptor EdgeLocator+ in+ Data.Map.fromList+ [(Data.ProtoLens.Tag 1, channelId__field_descriptor),+ (Data.ProtoLens.Tag 2, directionReverse__field_descriptor)]+ unknownFields+ = Lens.Family2.Unchecked.lens+ _EdgeLocator'_unknownFields+ (\ x__ y__ -> x__ {_EdgeLocator'_unknownFields = y__})+ defMessage+ = EdgeLocator'_constructor+ {_EdgeLocator'channelId = Data.ProtoLens.fieldDefault,+ _EdgeLocator'directionReverse = Data.ProtoLens.fieldDefault,+ _EdgeLocator'_unknownFields = []}+ parseMessage+ = let+ loop ::+ EdgeLocator -> Data.ProtoLens.Encoding.Bytes.Parser EdgeLocator+ loop x+ = do end <- Data.ProtoLens.Encoding.Bytes.atEnd+ if end then+ do (let missing = []+ in+ if Prelude.null missing then+ Prelude.return ()+ else+ Prelude.fail+ ((Prelude.++)+ "Missing required fields: "+ (Prelude.show (missing :: [Prelude.String]))))+ Prelude.return+ (Lens.Family2.over+ Data.ProtoLens.unknownFields (\ !t -> Prelude.reverse t) x)+ else+ do tag <- Data.ProtoLens.Encoding.Bytes.getVarInt+ case tag of+ 8 -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ Data.ProtoLens.Encoding.Bytes.getVarInt "channel_id"+ loop+ (Lens.Family2.set (Data.ProtoLens.Field.field @"channelId") y x)+ 16+ -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (Prelude.fmap+ ((Prelude./=) 0) Data.ProtoLens.Encoding.Bytes.getVarInt)+ "direction_reverse"+ loop+ (Lens.Family2.set+ (Data.ProtoLens.Field.field @"directionReverse") y x)+ wire+ -> do !y <- Data.ProtoLens.Encoding.Wire.parseTaggedValueFromWire+ wire+ loop+ (Lens.Family2.over+ Data.ProtoLens.unknownFields (\ !t -> (:) y t) x)+ in+ (Data.ProtoLens.Encoding.Bytes.<?>)+ (do loop Data.ProtoLens.defMessage) "EdgeLocator"+ buildMessage+ = \ _x+ -> (Data.Monoid.<>)+ (let+ _v = Lens.Family2.view (Data.ProtoLens.Field.field @"channelId") _x+ in+ if (Prelude.==) _v Data.ProtoLens.fieldDefault then+ Data.Monoid.mempty+ else+ (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 8)+ (Data.ProtoLens.Encoding.Bytes.putVarInt _v))+ ((Data.Monoid.<>)+ (let+ _v+ = Lens.Family2.view+ (Data.ProtoLens.Field.field @"directionReverse") _x+ in+ if (Prelude.==) _v Data.ProtoLens.fieldDefault then+ Data.Monoid.mempty+ else+ (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 16)+ ((Prelude..)+ Data.ProtoLens.Encoding.Bytes.putVarInt (\ b -> if b then 1 else 0)+ _v))+ (Data.ProtoLens.Encoding.Wire.buildFieldSet+ (Lens.Family2.view Data.ProtoLens.unknownFields _x)))+instance Control.DeepSeq.NFData EdgeLocator where+ rnf+ = \ x__+ -> Control.DeepSeq.deepseq+ (_EdgeLocator'_unknownFields x__)+ (Control.DeepSeq.deepseq+ (_EdgeLocator'channelId x__)+ (Control.DeepSeq.deepseq (_EdgeLocator'directionReverse x__) ()))+{- | Fields :+ + * 'Proto.Lnrpc.Ln0_Fields.name' @:: Lens' Feature Data.Text.Text@+ * 'Proto.Lnrpc.Ln0_Fields.isRequired' @:: Lens' Feature Prelude.Bool@+ * 'Proto.Lnrpc.Ln0_Fields.isKnown' @:: Lens' Feature Prelude.Bool@ -}+data Feature+ = Feature'_constructor {_Feature'name :: !Data.Text.Text,+ _Feature'isRequired :: !Prelude.Bool,+ _Feature'isKnown :: !Prelude.Bool,+ _Feature'_unknownFields :: !Data.ProtoLens.FieldSet}+ deriving stock (Prelude.Eq, Prelude.Ord, GHC.Generics.Generic)+instance Prelude.Show Feature where+ showsPrec _ __x __s+ = Prelude.showChar+ '{'+ (Prelude.showString+ (Data.ProtoLens.showMessageShort __x) (Prelude.showChar '}' __s))+instance Text.PrettyPrint.GenericPretty.Out Feature+instance Data.ProtoLens.Field.HasField Feature "name" Data.Text.Text where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _Feature'name (\ x__ y__ -> x__ {_Feature'name = y__}))+ Prelude.id+instance Data.ProtoLens.Field.HasField Feature "isRequired" Prelude.Bool where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _Feature'isRequired (\ x__ y__ -> x__ {_Feature'isRequired = y__}))+ Prelude.id+instance Data.ProtoLens.Field.HasField Feature "isKnown" Prelude.Bool where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _Feature'isKnown (\ x__ y__ -> x__ {_Feature'isKnown = y__}))+ Prelude.id+instance Data.ProtoLens.Message Feature where+ messageName _ = Data.Text.pack "lnrpc.Feature"+ packedMessageDescriptor _+ = "\n\+ \\aFeature\DC2\DC2\n\+ \\EOTname\CAN\STX \SOH(\tR\EOTname\DC2\US\n\+ \\vis_required\CAN\ETX \SOH(\bR\n\+ \isRequired\DC2\EM\n\+ \\bis_known\CAN\EOT \SOH(\bR\aisKnown"+ packedFileDescriptor _ = packedFileDescriptor+ fieldsByTag+ = let+ name__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "name"+ (Data.ProtoLens.ScalarField Data.ProtoLens.StringField ::+ Data.ProtoLens.FieldTypeDescriptor Data.Text.Text)+ (Data.ProtoLens.PlainField+ Data.ProtoLens.Optional (Data.ProtoLens.Field.field @"name")) ::+ Data.ProtoLens.FieldDescriptor Feature+ isRequired__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "is_required"+ (Data.ProtoLens.ScalarField Data.ProtoLens.BoolField ::+ Data.ProtoLens.FieldTypeDescriptor Prelude.Bool)+ (Data.ProtoLens.PlainField+ Data.ProtoLens.Optional+ (Data.ProtoLens.Field.field @"isRequired")) ::+ Data.ProtoLens.FieldDescriptor Feature+ isKnown__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "is_known"+ (Data.ProtoLens.ScalarField Data.ProtoLens.BoolField ::+ Data.ProtoLens.FieldTypeDescriptor Prelude.Bool)+ (Data.ProtoLens.PlainField+ Data.ProtoLens.Optional (Data.ProtoLens.Field.field @"isKnown")) ::+ Data.ProtoLens.FieldDescriptor Feature+ in+ Data.Map.fromList+ [(Data.ProtoLens.Tag 2, name__field_descriptor),+ (Data.ProtoLens.Tag 3, isRequired__field_descriptor),+ (Data.ProtoLens.Tag 4, isKnown__field_descriptor)]+ unknownFields+ = Lens.Family2.Unchecked.lens+ _Feature'_unknownFields+ (\ x__ y__ -> x__ {_Feature'_unknownFields = y__})+ defMessage+ = Feature'_constructor+ {_Feature'name = Data.ProtoLens.fieldDefault,+ _Feature'isRequired = Data.ProtoLens.fieldDefault,+ _Feature'isKnown = Data.ProtoLens.fieldDefault,+ _Feature'_unknownFields = []}+ parseMessage+ = let+ loop :: Feature -> Data.ProtoLens.Encoding.Bytes.Parser Feature+ loop x+ = do end <- Data.ProtoLens.Encoding.Bytes.atEnd+ if end then+ do (let missing = []+ in+ if Prelude.null missing then+ Prelude.return ()+ else+ Prelude.fail+ ((Prelude.++)+ "Missing required fields: "+ (Prelude.show (missing :: [Prelude.String]))))+ Prelude.return+ (Lens.Family2.over+ Data.ProtoLens.unknownFields (\ !t -> Prelude.reverse t) x)+ else+ do tag <- Data.ProtoLens.Encoding.Bytes.getVarInt+ case tag of+ 18+ -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (do value <- do len <- Data.ProtoLens.Encoding.Bytes.getVarInt+ Data.ProtoLens.Encoding.Bytes.getBytes+ (Prelude.fromIntegral len)+ Data.ProtoLens.Encoding.Bytes.runEither+ (case Data.Text.Encoding.decodeUtf8' value of+ (Prelude.Left err)+ -> Prelude.Left (Prelude.show err)+ (Prelude.Right r) -> Prelude.Right r))+ "name"+ loop (Lens.Family2.set (Data.ProtoLens.Field.field @"name") y x)+ 24+ -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (Prelude.fmap+ ((Prelude./=) 0) Data.ProtoLens.Encoding.Bytes.getVarInt)+ "is_required"+ loop+ (Lens.Family2.set (Data.ProtoLens.Field.field @"isRequired") y x)+ 32+ -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (Prelude.fmap+ ((Prelude./=) 0) Data.ProtoLens.Encoding.Bytes.getVarInt)+ "is_known"+ loop (Lens.Family2.set (Data.ProtoLens.Field.field @"isKnown") y x)+ wire+ -> do !y <- Data.ProtoLens.Encoding.Wire.parseTaggedValueFromWire+ wire+ loop+ (Lens.Family2.over+ Data.ProtoLens.unknownFields (\ !t -> (:) y t) x)+ in+ (Data.ProtoLens.Encoding.Bytes.<?>)+ (do loop Data.ProtoLens.defMessage) "Feature"+ buildMessage+ = \ _x+ -> (Data.Monoid.<>)+ (let _v = Lens.Family2.view (Data.ProtoLens.Field.field @"name") _x+ in+ if (Prelude.==) _v Data.ProtoLens.fieldDefault then+ Data.Monoid.mempty+ else+ (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 18)+ ((Prelude..)+ (\ bs+ -> (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt+ (Prelude.fromIntegral (Data.ByteString.length bs)))+ (Data.ProtoLens.Encoding.Bytes.putBytes bs))+ Data.Text.Encoding.encodeUtf8 _v))+ ((Data.Monoid.<>)+ (let+ _v+ = Lens.Family2.view (Data.ProtoLens.Field.field @"isRequired") _x+ in+ if (Prelude.==) _v Data.ProtoLens.fieldDefault then+ Data.Monoid.mempty+ else+ (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 24)+ ((Prelude..)+ Data.ProtoLens.Encoding.Bytes.putVarInt (\ b -> if b then 1 else 0)+ _v))+ ((Data.Monoid.<>)+ (let+ _v = Lens.Family2.view (Data.ProtoLens.Field.field @"isKnown") _x+ in+ if (Prelude.==) _v Data.ProtoLens.fieldDefault then+ Data.Monoid.mempty+ else+ (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 32)+ ((Prelude..)+ Data.ProtoLens.Encoding.Bytes.putVarInt (\ b -> if b then 1 else 0)+ _v))+ (Data.ProtoLens.Encoding.Wire.buildFieldSet+ (Lens.Family2.view Data.ProtoLens.unknownFields _x))))+instance Control.DeepSeq.NFData Feature where+ rnf+ = \ x__+ -> Control.DeepSeq.deepseq+ (_Feature'_unknownFields x__)+ (Control.DeepSeq.deepseq+ (_Feature'name x__)+ (Control.DeepSeq.deepseq+ (_Feature'isRequired x__)+ (Control.DeepSeq.deepseq (_Feature'isKnown x__) ())))+newtype FeatureBit'UnrecognizedValue+ = FeatureBit'UnrecognizedValue Data.Int.Int32+ deriving stock (Prelude.Eq,+ Prelude.Ord,+ Prelude.Show,+ GHC.Generics.Generic)+instance Text.PrettyPrint.GenericPretty.Out FeatureBit'UnrecognizedValue+data FeatureBit+ = DATALOSS_PROTECT_REQ |+ DATALOSS_PROTECT_OPT |+ INITIAL_ROUING_SYNC |+ UPFRONT_SHUTDOWN_SCRIPT_REQ |+ UPFRONT_SHUTDOWN_SCRIPT_OPT |+ GOSSIP_QUERIES_REQ |+ GOSSIP_QUERIES_OPT |+ TLV_ONION_REQ |+ TLV_ONION_OPT |+ EXT_GOSSIP_QUERIES_REQ |+ EXT_GOSSIP_QUERIES_OPT |+ STATIC_REMOTE_KEY_REQ |+ STATIC_REMOTE_KEY_OPT |+ PAYMENT_ADDR_REQ |+ PAYMENT_ADDR_OPT |+ MPP_REQ |+ MPP_OPT |+ WUMBO_CHANNELS_REQ |+ WUMBO_CHANNELS_OPT |+ ANCHORS_REQ |+ ANCHORS_OPT |+ ANCHORS_ZERO_FEE_HTLC_REQ |+ ANCHORS_ZERO_FEE_HTLC_OPT |+ AMP_REQ |+ AMP_OPT |+ FeatureBit'Unrecognized !FeatureBit'UnrecognizedValue+ deriving stock (Prelude.Show,+ Prelude.Eq,+ Prelude.Ord,+ GHC.Generics.Generic)+instance Data.ProtoLens.MessageEnum FeatureBit where+ maybeToEnum 0 = Prelude.Just DATALOSS_PROTECT_REQ+ maybeToEnum 1 = Prelude.Just DATALOSS_PROTECT_OPT+ maybeToEnum 3 = Prelude.Just INITIAL_ROUING_SYNC+ maybeToEnum 4 = Prelude.Just UPFRONT_SHUTDOWN_SCRIPT_REQ+ maybeToEnum 5 = Prelude.Just UPFRONT_SHUTDOWN_SCRIPT_OPT+ maybeToEnum 6 = Prelude.Just GOSSIP_QUERIES_REQ+ maybeToEnum 7 = Prelude.Just GOSSIP_QUERIES_OPT+ maybeToEnum 8 = Prelude.Just TLV_ONION_REQ+ maybeToEnum 9 = Prelude.Just TLV_ONION_OPT+ maybeToEnum 10 = Prelude.Just EXT_GOSSIP_QUERIES_REQ+ maybeToEnum 11 = Prelude.Just EXT_GOSSIP_QUERIES_OPT+ maybeToEnum 12 = Prelude.Just STATIC_REMOTE_KEY_REQ+ maybeToEnum 13 = Prelude.Just STATIC_REMOTE_KEY_OPT+ maybeToEnum 14 = Prelude.Just PAYMENT_ADDR_REQ+ maybeToEnum 15 = Prelude.Just PAYMENT_ADDR_OPT+ maybeToEnum 16 = Prelude.Just MPP_REQ+ maybeToEnum 17 = Prelude.Just MPP_OPT+ maybeToEnum 18 = Prelude.Just WUMBO_CHANNELS_REQ+ maybeToEnum 19 = Prelude.Just WUMBO_CHANNELS_OPT+ maybeToEnum 20 = Prelude.Just ANCHORS_REQ+ maybeToEnum 21 = Prelude.Just ANCHORS_OPT+ maybeToEnum 22 = Prelude.Just ANCHORS_ZERO_FEE_HTLC_REQ+ maybeToEnum 23 = Prelude.Just ANCHORS_ZERO_FEE_HTLC_OPT+ maybeToEnum 30 = Prelude.Just AMP_REQ+ maybeToEnum 31 = Prelude.Just AMP_OPT+ maybeToEnum k+ = Prelude.Just+ (FeatureBit'Unrecognized+ (FeatureBit'UnrecognizedValue (Prelude.fromIntegral k)))+ showEnum DATALOSS_PROTECT_REQ = "DATALOSS_PROTECT_REQ"+ showEnum DATALOSS_PROTECT_OPT = "DATALOSS_PROTECT_OPT"+ showEnum INITIAL_ROUING_SYNC = "INITIAL_ROUING_SYNC"+ showEnum UPFRONT_SHUTDOWN_SCRIPT_REQ+ = "UPFRONT_SHUTDOWN_SCRIPT_REQ"+ showEnum UPFRONT_SHUTDOWN_SCRIPT_OPT+ = "UPFRONT_SHUTDOWN_SCRIPT_OPT"+ showEnum GOSSIP_QUERIES_REQ = "GOSSIP_QUERIES_REQ"+ showEnum GOSSIP_QUERIES_OPT = "GOSSIP_QUERIES_OPT"+ showEnum TLV_ONION_REQ = "TLV_ONION_REQ"+ showEnum TLV_ONION_OPT = "TLV_ONION_OPT"+ showEnum EXT_GOSSIP_QUERIES_REQ = "EXT_GOSSIP_QUERIES_REQ"+ showEnum EXT_GOSSIP_QUERIES_OPT = "EXT_GOSSIP_QUERIES_OPT"+ showEnum STATIC_REMOTE_KEY_REQ = "STATIC_REMOTE_KEY_REQ"+ showEnum STATIC_REMOTE_KEY_OPT = "STATIC_REMOTE_KEY_OPT"+ showEnum PAYMENT_ADDR_REQ = "PAYMENT_ADDR_REQ"+ showEnum PAYMENT_ADDR_OPT = "PAYMENT_ADDR_OPT"+ showEnum MPP_REQ = "MPP_REQ"+ showEnum MPP_OPT = "MPP_OPT"+ showEnum WUMBO_CHANNELS_REQ = "WUMBO_CHANNELS_REQ"+ showEnum WUMBO_CHANNELS_OPT = "WUMBO_CHANNELS_OPT"+ showEnum ANCHORS_REQ = "ANCHORS_REQ"+ showEnum ANCHORS_OPT = "ANCHORS_OPT"+ showEnum ANCHORS_ZERO_FEE_HTLC_REQ = "ANCHORS_ZERO_FEE_HTLC_REQ"+ showEnum ANCHORS_ZERO_FEE_HTLC_OPT = "ANCHORS_ZERO_FEE_HTLC_OPT"+ showEnum AMP_REQ = "AMP_REQ"+ showEnum AMP_OPT = "AMP_OPT"+ showEnum (FeatureBit'Unrecognized (FeatureBit'UnrecognizedValue k))+ = Prelude.show k+ readEnum k+ | (Prelude.==) k "DATALOSS_PROTECT_REQ"+ = Prelude.Just DATALOSS_PROTECT_REQ+ | (Prelude.==) k "DATALOSS_PROTECT_OPT"+ = Prelude.Just DATALOSS_PROTECT_OPT+ | (Prelude.==) k "INITIAL_ROUING_SYNC"+ = Prelude.Just INITIAL_ROUING_SYNC+ | (Prelude.==) k "UPFRONT_SHUTDOWN_SCRIPT_REQ"+ = Prelude.Just UPFRONT_SHUTDOWN_SCRIPT_REQ+ | (Prelude.==) k "UPFRONT_SHUTDOWN_SCRIPT_OPT"+ = Prelude.Just UPFRONT_SHUTDOWN_SCRIPT_OPT+ | (Prelude.==) k "GOSSIP_QUERIES_REQ"+ = Prelude.Just GOSSIP_QUERIES_REQ+ | (Prelude.==) k "GOSSIP_QUERIES_OPT"+ = Prelude.Just GOSSIP_QUERIES_OPT+ | (Prelude.==) k "TLV_ONION_REQ" = Prelude.Just TLV_ONION_REQ+ | (Prelude.==) k "TLV_ONION_OPT" = Prelude.Just TLV_ONION_OPT+ | (Prelude.==) k "EXT_GOSSIP_QUERIES_REQ"+ = Prelude.Just EXT_GOSSIP_QUERIES_REQ+ | (Prelude.==) k "EXT_GOSSIP_QUERIES_OPT"+ = Prelude.Just EXT_GOSSIP_QUERIES_OPT+ | (Prelude.==) k "STATIC_REMOTE_KEY_REQ"+ = Prelude.Just STATIC_REMOTE_KEY_REQ+ | (Prelude.==) k "STATIC_REMOTE_KEY_OPT"+ = Prelude.Just STATIC_REMOTE_KEY_OPT+ | (Prelude.==) k "PAYMENT_ADDR_REQ" = Prelude.Just PAYMENT_ADDR_REQ+ | (Prelude.==) k "PAYMENT_ADDR_OPT" = Prelude.Just PAYMENT_ADDR_OPT+ | (Prelude.==) k "MPP_REQ" = Prelude.Just MPP_REQ+ | (Prelude.==) k "MPP_OPT" = Prelude.Just MPP_OPT+ | (Prelude.==) k "WUMBO_CHANNELS_REQ"+ = Prelude.Just WUMBO_CHANNELS_REQ+ | (Prelude.==) k "WUMBO_CHANNELS_OPT"+ = Prelude.Just WUMBO_CHANNELS_OPT+ | (Prelude.==) k "ANCHORS_REQ" = Prelude.Just ANCHORS_REQ+ | (Prelude.==) k "ANCHORS_OPT" = Prelude.Just ANCHORS_OPT+ | (Prelude.==) k "ANCHORS_ZERO_FEE_HTLC_REQ"+ = Prelude.Just ANCHORS_ZERO_FEE_HTLC_REQ+ | (Prelude.==) k "ANCHORS_ZERO_FEE_HTLC_OPT"+ = Prelude.Just ANCHORS_ZERO_FEE_HTLC_OPT+ | (Prelude.==) k "AMP_REQ" = Prelude.Just AMP_REQ+ | (Prelude.==) k "AMP_OPT" = Prelude.Just AMP_OPT+ | Prelude.otherwise+ = (Prelude.>>=) (Text.Read.readMaybe k) Data.ProtoLens.maybeToEnum+instance Prelude.Bounded FeatureBit where+ minBound = DATALOSS_PROTECT_REQ+ maxBound = AMP_OPT+instance Prelude.Enum FeatureBit where+ toEnum k__+ = Prelude.maybe+ (Prelude.error+ ((Prelude.++)+ "toEnum: unknown value for enum FeatureBit: " (Prelude.show k__)))+ Prelude.id (Data.ProtoLens.maybeToEnum k__)+ fromEnum DATALOSS_PROTECT_REQ = 0+ fromEnum DATALOSS_PROTECT_OPT = 1+ fromEnum INITIAL_ROUING_SYNC = 3+ fromEnum UPFRONT_SHUTDOWN_SCRIPT_REQ = 4+ fromEnum UPFRONT_SHUTDOWN_SCRIPT_OPT = 5+ fromEnum GOSSIP_QUERIES_REQ = 6+ fromEnum GOSSIP_QUERIES_OPT = 7+ fromEnum TLV_ONION_REQ = 8+ fromEnum TLV_ONION_OPT = 9+ fromEnum EXT_GOSSIP_QUERIES_REQ = 10+ fromEnum EXT_GOSSIP_QUERIES_OPT = 11+ fromEnum STATIC_REMOTE_KEY_REQ = 12+ fromEnum STATIC_REMOTE_KEY_OPT = 13+ fromEnum PAYMENT_ADDR_REQ = 14+ fromEnum PAYMENT_ADDR_OPT = 15+ fromEnum MPP_REQ = 16+ fromEnum MPP_OPT = 17+ fromEnum WUMBO_CHANNELS_REQ = 18+ fromEnum WUMBO_CHANNELS_OPT = 19+ fromEnum ANCHORS_REQ = 20+ fromEnum ANCHORS_OPT = 21+ fromEnum ANCHORS_ZERO_FEE_HTLC_REQ = 22+ fromEnum ANCHORS_ZERO_FEE_HTLC_OPT = 23+ fromEnum AMP_REQ = 30+ fromEnum AMP_OPT = 31+ fromEnum (FeatureBit'Unrecognized (FeatureBit'UnrecognizedValue k))+ = Prelude.fromIntegral k+ succ AMP_OPT+ = Prelude.error+ "FeatureBit.succ: bad argument AMP_OPT. This value would be out of bounds."+ succ DATALOSS_PROTECT_REQ = DATALOSS_PROTECT_OPT+ succ DATALOSS_PROTECT_OPT = INITIAL_ROUING_SYNC+ succ INITIAL_ROUING_SYNC = UPFRONT_SHUTDOWN_SCRIPT_REQ+ succ UPFRONT_SHUTDOWN_SCRIPT_REQ = UPFRONT_SHUTDOWN_SCRIPT_OPT+ succ UPFRONT_SHUTDOWN_SCRIPT_OPT = GOSSIP_QUERIES_REQ+ succ GOSSIP_QUERIES_REQ = GOSSIP_QUERIES_OPT+ succ GOSSIP_QUERIES_OPT = TLV_ONION_REQ+ succ TLV_ONION_REQ = TLV_ONION_OPT+ succ TLV_ONION_OPT = EXT_GOSSIP_QUERIES_REQ+ succ EXT_GOSSIP_QUERIES_REQ = EXT_GOSSIP_QUERIES_OPT+ succ EXT_GOSSIP_QUERIES_OPT = STATIC_REMOTE_KEY_REQ+ succ STATIC_REMOTE_KEY_REQ = STATIC_REMOTE_KEY_OPT+ succ STATIC_REMOTE_KEY_OPT = PAYMENT_ADDR_REQ+ succ PAYMENT_ADDR_REQ = PAYMENT_ADDR_OPT+ succ PAYMENT_ADDR_OPT = MPP_REQ+ succ MPP_REQ = MPP_OPT+ succ MPP_OPT = WUMBO_CHANNELS_REQ+ succ WUMBO_CHANNELS_REQ = WUMBO_CHANNELS_OPT+ succ WUMBO_CHANNELS_OPT = ANCHORS_REQ+ succ ANCHORS_REQ = ANCHORS_OPT+ succ ANCHORS_OPT = ANCHORS_ZERO_FEE_HTLC_REQ+ succ ANCHORS_ZERO_FEE_HTLC_REQ = ANCHORS_ZERO_FEE_HTLC_OPT+ succ ANCHORS_ZERO_FEE_HTLC_OPT = AMP_REQ+ succ AMP_REQ = AMP_OPT+ succ (FeatureBit'Unrecognized _)+ = Prelude.error "FeatureBit.succ: bad argument: unrecognized value"+ pred DATALOSS_PROTECT_REQ+ = Prelude.error+ "FeatureBit.pred: bad argument DATALOSS_PROTECT_REQ. This value would be out of bounds."+ pred DATALOSS_PROTECT_OPT = DATALOSS_PROTECT_REQ+ pred INITIAL_ROUING_SYNC = DATALOSS_PROTECT_OPT+ pred UPFRONT_SHUTDOWN_SCRIPT_REQ = INITIAL_ROUING_SYNC+ pred UPFRONT_SHUTDOWN_SCRIPT_OPT = UPFRONT_SHUTDOWN_SCRIPT_REQ+ pred GOSSIP_QUERIES_REQ = UPFRONT_SHUTDOWN_SCRIPT_OPT+ pred GOSSIP_QUERIES_OPT = GOSSIP_QUERIES_REQ+ pred TLV_ONION_REQ = GOSSIP_QUERIES_OPT+ pred TLV_ONION_OPT = TLV_ONION_REQ+ pred EXT_GOSSIP_QUERIES_REQ = TLV_ONION_OPT+ pred EXT_GOSSIP_QUERIES_OPT = EXT_GOSSIP_QUERIES_REQ+ pred STATIC_REMOTE_KEY_REQ = EXT_GOSSIP_QUERIES_OPT+ pred STATIC_REMOTE_KEY_OPT = STATIC_REMOTE_KEY_REQ+ pred PAYMENT_ADDR_REQ = STATIC_REMOTE_KEY_OPT+ pred PAYMENT_ADDR_OPT = PAYMENT_ADDR_REQ+ pred MPP_REQ = PAYMENT_ADDR_OPT+ pred MPP_OPT = MPP_REQ+ pred WUMBO_CHANNELS_REQ = MPP_OPT+ pred WUMBO_CHANNELS_OPT = WUMBO_CHANNELS_REQ+ pred ANCHORS_REQ = WUMBO_CHANNELS_OPT+ pred ANCHORS_OPT = ANCHORS_REQ+ pred ANCHORS_ZERO_FEE_HTLC_REQ = ANCHORS_OPT+ pred ANCHORS_ZERO_FEE_HTLC_OPT = ANCHORS_ZERO_FEE_HTLC_REQ+ pred AMP_REQ = ANCHORS_ZERO_FEE_HTLC_OPT+ pred AMP_OPT = AMP_REQ+ pred (FeatureBit'Unrecognized _)+ = Prelude.error "FeatureBit.pred: bad argument: unrecognized value"+ enumFrom = Data.ProtoLens.Message.Enum.messageEnumFrom+ enumFromTo = Data.ProtoLens.Message.Enum.messageEnumFromTo+ enumFromThen = Data.ProtoLens.Message.Enum.messageEnumFromThen+ enumFromThenTo = Data.ProtoLens.Message.Enum.messageEnumFromThenTo+instance Data.ProtoLens.FieldDefault FeatureBit where+ fieldDefault = DATALOSS_PROTECT_REQ+instance Control.DeepSeq.NFData FeatureBit where+ rnf x__ = Prelude.seq x__ ()+instance Text.PrettyPrint.GenericPretty.Out FeatureBit+{- | Fields :+ + * 'Proto.Lnrpc.Ln0_Fields.maybe'limit' @:: Lens' FeeLimit (Prelude.Maybe FeeLimit'Limit)@+ * 'Proto.Lnrpc.Ln0_Fields.maybe'fixed' @:: Lens' FeeLimit (Prelude.Maybe Data.Int.Int64)@+ * 'Proto.Lnrpc.Ln0_Fields.fixed' @:: Lens' FeeLimit Data.Int.Int64@+ * 'Proto.Lnrpc.Ln0_Fields.maybe'fixedMsat' @:: Lens' FeeLimit (Prelude.Maybe Data.Int.Int64)@+ * 'Proto.Lnrpc.Ln0_Fields.fixedMsat' @:: Lens' FeeLimit Data.Int.Int64@+ * 'Proto.Lnrpc.Ln0_Fields.maybe'percent' @:: Lens' FeeLimit (Prelude.Maybe Data.Int.Int64)@+ * 'Proto.Lnrpc.Ln0_Fields.percent' @:: Lens' FeeLimit Data.Int.Int64@ -}+data FeeLimit+ = FeeLimit'_constructor {_FeeLimit'limit :: !(Prelude.Maybe FeeLimit'Limit),+ _FeeLimit'_unknownFields :: !Data.ProtoLens.FieldSet}+ deriving stock (Prelude.Eq, Prelude.Ord, GHC.Generics.Generic)+instance Prelude.Show FeeLimit where+ showsPrec _ __x __s+ = Prelude.showChar+ '{'+ (Prelude.showString+ (Data.ProtoLens.showMessageShort __x) (Prelude.showChar '}' __s))+instance Text.PrettyPrint.GenericPretty.Out FeeLimit+data FeeLimit'Limit+ = FeeLimit'Fixed !Data.Int.Int64 |+ FeeLimit'FixedMsat !Data.Int.Int64 |+ FeeLimit'Percent !Data.Int.Int64+ deriving stock (Prelude.Show,+ Prelude.Eq,+ Prelude.Ord,+ GHC.Generics.Generic)+instance Text.PrettyPrint.GenericPretty.Out FeeLimit'Limit+instance Data.ProtoLens.Field.HasField FeeLimit "maybe'limit" (Prelude.Maybe FeeLimit'Limit) where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _FeeLimit'limit (\ x__ y__ -> x__ {_FeeLimit'limit = y__}))+ Prelude.id+instance Data.ProtoLens.Field.HasField FeeLimit "maybe'fixed" (Prelude.Maybe Data.Int.Int64) where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _FeeLimit'limit (\ x__ y__ -> x__ {_FeeLimit'limit = y__}))+ (Lens.Family2.Unchecked.lens+ (\ x__+ -> case x__ of+ (Prelude.Just (FeeLimit'Fixed x__val)) -> Prelude.Just x__val+ _otherwise -> Prelude.Nothing)+ (\ _ y__ -> Prelude.fmap FeeLimit'Fixed y__))+instance Data.ProtoLens.Field.HasField FeeLimit "fixed" Data.Int.Int64 where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _FeeLimit'limit (\ x__ y__ -> x__ {_FeeLimit'limit = y__}))+ ((Prelude..)+ (Lens.Family2.Unchecked.lens+ (\ x__+ -> case x__ of+ (Prelude.Just (FeeLimit'Fixed x__val)) -> Prelude.Just x__val+ _otherwise -> Prelude.Nothing)+ (\ _ y__ -> Prelude.fmap FeeLimit'Fixed y__))+ (Data.ProtoLens.maybeLens Data.ProtoLens.fieldDefault))+instance Data.ProtoLens.Field.HasField FeeLimit "maybe'fixedMsat" (Prelude.Maybe Data.Int.Int64) where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _FeeLimit'limit (\ x__ y__ -> x__ {_FeeLimit'limit = y__}))+ (Lens.Family2.Unchecked.lens+ (\ x__+ -> case x__ of+ (Prelude.Just (FeeLimit'FixedMsat x__val)) -> Prelude.Just x__val+ _otherwise -> Prelude.Nothing)+ (\ _ y__ -> Prelude.fmap FeeLimit'FixedMsat y__))+instance Data.ProtoLens.Field.HasField FeeLimit "fixedMsat" Data.Int.Int64 where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _FeeLimit'limit (\ x__ y__ -> x__ {_FeeLimit'limit = y__}))+ ((Prelude..)+ (Lens.Family2.Unchecked.lens+ (\ x__+ -> case x__ of+ (Prelude.Just (FeeLimit'FixedMsat x__val)) -> Prelude.Just x__val+ _otherwise -> Prelude.Nothing)+ (\ _ y__ -> Prelude.fmap FeeLimit'FixedMsat y__))+ (Data.ProtoLens.maybeLens Data.ProtoLens.fieldDefault))+instance Data.ProtoLens.Field.HasField FeeLimit "maybe'percent" (Prelude.Maybe Data.Int.Int64) where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _FeeLimit'limit (\ x__ y__ -> x__ {_FeeLimit'limit = y__}))+ (Lens.Family2.Unchecked.lens+ (\ x__+ -> case x__ of+ (Prelude.Just (FeeLimit'Percent x__val)) -> Prelude.Just x__val+ _otherwise -> Prelude.Nothing)+ (\ _ y__ -> Prelude.fmap FeeLimit'Percent y__))+instance Data.ProtoLens.Field.HasField FeeLimit "percent" Data.Int.Int64 where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _FeeLimit'limit (\ x__ y__ -> x__ {_FeeLimit'limit = y__}))+ ((Prelude..)+ (Lens.Family2.Unchecked.lens+ (\ x__+ -> case x__ of+ (Prelude.Just (FeeLimit'Percent x__val)) -> Prelude.Just x__val+ _otherwise -> Prelude.Nothing)+ (\ _ y__ -> Prelude.fmap FeeLimit'Percent y__))+ (Data.ProtoLens.maybeLens Data.ProtoLens.fieldDefault))+instance Data.ProtoLens.Message FeeLimit where+ messageName _ = Data.Text.pack "lnrpc.FeeLimit"+ packedMessageDescriptor _+ = "\n\+ \\bFeeLimit\DC2\SYN\n\+ \\ENQfixed\CAN\SOH \SOH(\ETXH\NULR\ENQfixed\DC2\US\n\+ \\n\+ \fixed_msat\CAN\ETX \SOH(\ETXH\NULR\tfixedMsat\DC2\SUB\n\+ \\apercent\CAN\STX \SOH(\ETXH\NULR\apercentB\a\n\+ \\ENQlimit"+ packedFileDescriptor _ = packedFileDescriptor+ fieldsByTag+ = let+ fixed__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "fixed"+ (Data.ProtoLens.ScalarField Data.ProtoLens.Int64Field ::+ Data.ProtoLens.FieldTypeDescriptor Data.Int.Int64)+ (Data.ProtoLens.OptionalField+ (Data.ProtoLens.Field.field @"maybe'fixed")) ::+ Data.ProtoLens.FieldDescriptor FeeLimit+ fixedMsat__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "fixed_msat"+ (Data.ProtoLens.ScalarField Data.ProtoLens.Int64Field ::+ Data.ProtoLens.FieldTypeDescriptor Data.Int.Int64)+ (Data.ProtoLens.OptionalField+ (Data.ProtoLens.Field.field @"maybe'fixedMsat")) ::+ Data.ProtoLens.FieldDescriptor FeeLimit+ percent__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "percent"+ (Data.ProtoLens.ScalarField Data.ProtoLens.Int64Field ::+ Data.ProtoLens.FieldTypeDescriptor Data.Int.Int64)+ (Data.ProtoLens.OptionalField+ (Data.ProtoLens.Field.field @"maybe'percent")) ::+ Data.ProtoLens.FieldDescriptor FeeLimit+ in+ Data.Map.fromList+ [(Data.ProtoLens.Tag 1, fixed__field_descriptor),+ (Data.ProtoLens.Tag 3, fixedMsat__field_descriptor),+ (Data.ProtoLens.Tag 2, percent__field_descriptor)]+ unknownFields+ = Lens.Family2.Unchecked.lens+ _FeeLimit'_unknownFields+ (\ x__ y__ -> x__ {_FeeLimit'_unknownFields = y__})+ defMessage+ = FeeLimit'_constructor+ {_FeeLimit'limit = Prelude.Nothing, _FeeLimit'_unknownFields = []}+ parseMessage+ = let+ loop :: FeeLimit -> Data.ProtoLens.Encoding.Bytes.Parser FeeLimit+ loop x+ = do end <- Data.ProtoLens.Encoding.Bytes.atEnd+ if end then+ do (let missing = []+ in+ if Prelude.null missing then+ Prelude.return ()+ else+ Prelude.fail+ ((Prelude.++)+ "Missing required fields: "+ (Prelude.show (missing :: [Prelude.String]))))+ Prelude.return+ (Lens.Family2.over+ Data.ProtoLens.unknownFields (\ !t -> Prelude.reverse t) x)+ else+ do tag <- Data.ProtoLens.Encoding.Bytes.getVarInt+ case tag of+ 8 -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (Prelude.fmap+ Prelude.fromIntegral+ Data.ProtoLens.Encoding.Bytes.getVarInt)+ "fixed"+ loop (Lens.Family2.set (Data.ProtoLens.Field.field @"fixed") y x)+ 24+ -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (Prelude.fmap+ Prelude.fromIntegral+ Data.ProtoLens.Encoding.Bytes.getVarInt)+ "fixed_msat"+ loop+ (Lens.Family2.set (Data.ProtoLens.Field.field @"fixedMsat") y x)+ 16+ -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (Prelude.fmap+ Prelude.fromIntegral+ Data.ProtoLens.Encoding.Bytes.getVarInt)+ "percent"+ loop (Lens.Family2.set (Data.ProtoLens.Field.field @"percent") y x)+ wire+ -> do !y <- Data.ProtoLens.Encoding.Wire.parseTaggedValueFromWire+ wire+ loop+ (Lens.Family2.over+ Data.ProtoLens.unknownFields (\ !t -> (:) y t) x)+ in+ (Data.ProtoLens.Encoding.Bytes.<?>)+ (do loop Data.ProtoLens.defMessage) "FeeLimit"+ buildMessage+ = \ _x+ -> (Data.Monoid.<>)+ (case+ Lens.Family2.view (Data.ProtoLens.Field.field @"maybe'limit") _x+ of+ Prelude.Nothing -> Data.Monoid.mempty+ (Prelude.Just (FeeLimit'Fixed v))+ -> (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 8)+ ((Prelude..)+ Data.ProtoLens.Encoding.Bytes.putVarInt Prelude.fromIntegral v)+ (Prelude.Just (FeeLimit'FixedMsat v))+ -> (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 24)+ ((Prelude..)+ Data.ProtoLens.Encoding.Bytes.putVarInt Prelude.fromIntegral v)+ (Prelude.Just (FeeLimit'Percent v))+ -> (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 16)+ ((Prelude..)+ Data.ProtoLens.Encoding.Bytes.putVarInt Prelude.fromIntegral v))+ (Data.ProtoLens.Encoding.Wire.buildFieldSet+ (Lens.Family2.view Data.ProtoLens.unknownFields _x))+instance Control.DeepSeq.NFData FeeLimit where+ rnf+ = \ x__+ -> Control.DeepSeq.deepseq+ (_FeeLimit'_unknownFields x__)+ (Control.DeepSeq.deepseq (_FeeLimit'limit x__) ())+instance Control.DeepSeq.NFData FeeLimit'Limit where+ rnf (FeeLimit'Fixed x__) = Control.DeepSeq.rnf x__+ rnf (FeeLimit'FixedMsat x__) = Control.DeepSeq.rnf x__+ rnf (FeeLimit'Percent x__) = Control.DeepSeq.rnf x__+_FeeLimit'Fixed ::+ Data.ProtoLens.Prism.Prism' FeeLimit'Limit Data.Int.Int64+_FeeLimit'Fixed+ = Data.ProtoLens.Prism.prism'+ FeeLimit'Fixed+ (\ p__+ -> case p__ of+ (FeeLimit'Fixed p__val) -> Prelude.Just p__val+ _otherwise -> Prelude.Nothing)+_FeeLimit'FixedMsat ::+ Data.ProtoLens.Prism.Prism' FeeLimit'Limit Data.Int.Int64+_FeeLimit'FixedMsat+ = Data.ProtoLens.Prism.prism'+ FeeLimit'FixedMsat+ (\ p__+ -> case p__ of+ (FeeLimit'FixedMsat p__val) -> Prelude.Just p__val+ _otherwise -> Prelude.Nothing)+_FeeLimit'Percent ::+ Data.ProtoLens.Prism.Prism' FeeLimit'Limit Data.Int.Int64+_FeeLimit'Percent+ = Data.ProtoLens.Prism.prism'+ FeeLimit'Percent+ (\ p__+ -> case p__ of+ (FeeLimit'Percent p__val) -> Prelude.Just p__val+ _otherwise -> Prelude.Nothing)+{- | Fields :+ + * 'Proto.Lnrpc.Ln0_Fields.value' @:: Lens' FloatMetric Prelude.Double@+ * 'Proto.Lnrpc.Ln0_Fields.normalizedValue' @:: Lens' FloatMetric Prelude.Double@ -}+data FloatMetric+ = FloatMetric'_constructor {_FloatMetric'value :: !Prelude.Double,+ _FloatMetric'normalizedValue :: !Prelude.Double,+ _FloatMetric'_unknownFields :: !Data.ProtoLens.FieldSet}+ deriving stock (Prelude.Eq, Prelude.Ord, GHC.Generics.Generic)+instance Prelude.Show FloatMetric where+ showsPrec _ __x __s+ = Prelude.showChar+ '{'+ (Prelude.showString+ (Data.ProtoLens.showMessageShort __x) (Prelude.showChar '}' __s))+instance Text.PrettyPrint.GenericPretty.Out FloatMetric+instance Data.ProtoLens.Field.HasField FloatMetric "value" Prelude.Double where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _FloatMetric'value (\ x__ y__ -> x__ {_FloatMetric'value = y__}))+ Prelude.id+instance Data.ProtoLens.Field.HasField FloatMetric "normalizedValue" Prelude.Double where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _FloatMetric'normalizedValue+ (\ x__ y__ -> x__ {_FloatMetric'normalizedValue = y__}))+ Prelude.id+instance Data.ProtoLens.Message FloatMetric where+ messageName _ = Data.Text.pack "lnrpc.FloatMetric"+ packedMessageDescriptor _+ = "\n\+ \\vFloatMetric\DC2\DC4\n\+ \\ENQvalue\CAN\SOH \SOH(\SOHR\ENQvalue\DC2)\n\+ \\DLEnormalized_value\CAN\STX \SOH(\SOHR\SInormalizedValue"+ packedFileDescriptor _ = packedFileDescriptor+ fieldsByTag+ = let+ value__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "value"+ (Data.ProtoLens.ScalarField Data.ProtoLens.DoubleField ::+ Data.ProtoLens.FieldTypeDescriptor Prelude.Double)+ (Data.ProtoLens.PlainField+ Data.ProtoLens.Optional (Data.ProtoLens.Field.field @"value")) ::+ Data.ProtoLens.FieldDescriptor FloatMetric+ normalizedValue__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "normalized_value"+ (Data.ProtoLens.ScalarField Data.ProtoLens.DoubleField ::+ Data.ProtoLens.FieldTypeDescriptor Prelude.Double)+ (Data.ProtoLens.PlainField+ Data.ProtoLens.Optional+ (Data.ProtoLens.Field.field @"normalizedValue")) ::+ Data.ProtoLens.FieldDescriptor FloatMetric+ in+ Data.Map.fromList+ [(Data.ProtoLens.Tag 1, value__field_descriptor),+ (Data.ProtoLens.Tag 2, normalizedValue__field_descriptor)]+ unknownFields+ = Lens.Family2.Unchecked.lens+ _FloatMetric'_unknownFields+ (\ x__ y__ -> x__ {_FloatMetric'_unknownFields = y__})+ defMessage+ = FloatMetric'_constructor+ {_FloatMetric'value = Data.ProtoLens.fieldDefault,+ _FloatMetric'normalizedValue = Data.ProtoLens.fieldDefault,+ _FloatMetric'_unknownFields = []}+ parseMessage+ = let+ loop ::+ FloatMetric -> Data.ProtoLens.Encoding.Bytes.Parser FloatMetric+ loop x+ = do end <- Data.ProtoLens.Encoding.Bytes.atEnd+ if end then+ do (let missing = []+ in+ if Prelude.null missing then+ Prelude.return ()+ else+ Prelude.fail+ ((Prelude.++)+ "Missing required fields: "+ (Prelude.show (missing :: [Prelude.String]))))+ Prelude.return+ (Lens.Family2.over+ Data.ProtoLens.unknownFields (\ !t -> Prelude.reverse t) x)+ else+ do tag <- Data.ProtoLens.Encoding.Bytes.getVarInt+ case tag of+ 9 -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (Prelude.fmap+ Data.ProtoLens.Encoding.Bytes.wordToDouble+ Data.ProtoLens.Encoding.Bytes.getFixed64)+ "value"+ loop (Lens.Family2.set (Data.ProtoLens.Field.field @"value") y x)+ 17+ -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (Prelude.fmap+ Data.ProtoLens.Encoding.Bytes.wordToDouble+ Data.ProtoLens.Encoding.Bytes.getFixed64)+ "normalized_value"+ loop+ (Lens.Family2.set+ (Data.ProtoLens.Field.field @"normalizedValue") y x)+ wire+ -> do !y <- Data.ProtoLens.Encoding.Wire.parseTaggedValueFromWire+ wire+ loop+ (Lens.Family2.over+ Data.ProtoLens.unknownFields (\ !t -> (:) y t) x)+ in+ (Data.ProtoLens.Encoding.Bytes.<?>)+ (do loop Data.ProtoLens.defMessage) "FloatMetric"+ buildMessage+ = \ _x+ -> (Data.Monoid.<>)+ (let+ _v = Lens.Family2.view (Data.ProtoLens.Field.field @"value") _x+ in+ if (Prelude.==) _v Data.ProtoLens.fieldDefault then+ Data.Monoid.mempty+ else+ (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 9)+ ((Prelude..)+ Data.ProtoLens.Encoding.Bytes.putFixed64+ Data.ProtoLens.Encoding.Bytes.doubleToWord _v))+ ((Data.Monoid.<>)+ (let+ _v+ = Lens.Family2.view+ (Data.ProtoLens.Field.field @"normalizedValue") _x+ in+ if (Prelude.==) _v Data.ProtoLens.fieldDefault then+ Data.Monoid.mempty+ else+ (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 17)+ ((Prelude..)+ Data.ProtoLens.Encoding.Bytes.putFixed64+ Data.ProtoLens.Encoding.Bytes.doubleToWord _v))+ (Data.ProtoLens.Encoding.Wire.buildFieldSet+ (Lens.Family2.view Data.ProtoLens.unknownFields _x)))+instance Control.DeepSeq.NFData FloatMetric where+ rnf+ = \ x__+ -> Control.DeepSeq.deepseq+ (_FloatMetric'_unknownFields x__)+ (Control.DeepSeq.deepseq+ (_FloatMetric'value x__)+ (Control.DeepSeq.deepseq (_FloatMetric'normalizedValue x__) ()))+{- | Fields :+ + * 'Proto.Lnrpc.Ln0_Fields.signedPsbt' @:: Lens' FundingPsbtFinalize Data.ByteString.ByteString@+ * 'Proto.Lnrpc.Ln0_Fields.pendingChanId' @:: Lens' FundingPsbtFinalize Data.ByteString.ByteString@+ * 'Proto.Lnrpc.Ln0_Fields.finalRawTx' @:: Lens' FundingPsbtFinalize Data.ByteString.ByteString@ -}+data FundingPsbtFinalize+ = FundingPsbtFinalize'_constructor {_FundingPsbtFinalize'signedPsbt :: !Data.ByteString.ByteString,+ _FundingPsbtFinalize'pendingChanId :: !Data.ByteString.ByteString,+ _FundingPsbtFinalize'finalRawTx :: !Data.ByteString.ByteString,+ _FundingPsbtFinalize'_unknownFields :: !Data.ProtoLens.FieldSet}+ deriving stock (Prelude.Eq, Prelude.Ord, GHC.Generics.Generic)+instance Prelude.Show FundingPsbtFinalize where+ showsPrec _ __x __s+ = Prelude.showChar+ '{'+ (Prelude.showString+ (Data.ProtoLens.showMessageShort __x) (Prelude.showChar '}' __s))+instance Text.PrettyPrint.GenericPretty.Out FundingPsbtFinalize+instance Data.ProtoLens.Field.HasField FundingPsbtFinalize "signedPsbt" Data.ByteString.ByteString where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _FundingPsbtFinalize'signedPsbt+ (\ x__ y__ -> x__ {_FundingPsbtFinalize'signedPsbt = y__}))+ Prelude.id+instance Data.ProtoLens.Field.HasField FundingPsbtFinalize "pendingChanId" Data.ByteString.ByteString where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _FundingPsbtFinalize'pendingChanId+ (\ x__ y__ -> x__ {_FundingPsbtFinalize'pendingChanId = y__}))+ Prelude.id+instance Data.ProtoLens.Field.HasField FundingPsbtFinalize "finalRawTx" Data.ByteString.ByteString where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _FundingPsbtFinalize'finalRawTx+ (\ x__ y__ -> x__ {_FundingPsbtFinalize'finalRawTx = y__}))+ Prelude.id+instance Data.ProtoLens.Message FundingPsbtFinalize where+ messageName _ = Data.Text.pack "lnrpc.FundingPsbtFinalize"+ packedMessageDescriptor _+ = "\n\+ \\DC3FundingPsbtFinalize\DC2\US\n\+ \\vsigned_psbt\CAN\SOH \SOH(\fR\n\+ \signedPsbt\DC2&\n\+ \\SIpending_chan_id\CAN\STX \SOH(\fR\rpendingChanId\DC2 \n\+ \\ffinal_raw_tx\CAN\ETX \SOH(\fR\n\+ \finalRawTx"+ packedFileDescriptor _ = packedFileDescriptor+ fieldsByTag+ = let+ signedPsbt__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "signed_psbt"+ (Data.ProtoLens.ScalarField Data.ProtoLens.BytesField ::+ Data.ProtoLens.FieldTypeDescriptor Data.ByteString.ByteString)+ (Data.ProtoLens.PlainField+ Data.ProtoLens.Optional+ (Data.ProtoLens.Field.field @"signedPsbt")) ::+ Data.ProtoLens.FieldDescriptor FundingPsbtFinalize+ pendingChanId__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "pending_chan_id"+ (Data.ProtoLens.ScalarField Data.ProtoLens.BytesField ::+ Data.ProtoLens.FieldTypeDescriptor Data.ByteString.ByteString)+ (Data.ProtoLens.PlainField+ Data.ProtoLens.Optional+ (Data.ProtoLens.Field.field @"pendingChanId")) ::+ Data.ProtoLens.FieldDescriptor FundingPsbtFinalize+ finalRawTx__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "final_raw_tx"+ (Data.ProtoLens.ScalarField Data.ProtoLens.BytesField ::+ Data.ProtoLens.FieldTypeDescriptor Data.ByteString.ByteString)+ (Data.ProtoLens.PlainField+ Data.ProtoLens.Optional+ (Data.ProtoLens.Field.field @"finalRawTx")) ::+ Data.ProtoLens.FieldDescriptor FundingPsbtFinalize+ in+ Data.Map.fromList+ [(Data.ProtoLens.Tag 1, signedPsbt__field_descriptor),+ (Data.ProtoLens.Tag 2, pendingChanId__field_descriptor),+ (Data.ProtoLens.Tag 3, finalRawTx__field_descriptor)]+ unknownFields+ = Lens.Family2.Unchecked.lens+ _FundingPsbtFinalize'_unknownFields+ (\ x__ y__ -> x__ {_FundingPsbtFinalize'_unknownFields = y__})+ defMessage+ = FundingPsbtFinalize'_constructor+ {_FundingPsbtFinalize'signedPsbt = Data.ProtoLens.fieldDefault,+ _FundingPsbtFinalize'pendingChanId = Data.ProtoLens.fieldDefault,+ _FundingPsbtFinalize'finalRawTx = Data.ProtoLens.fieldDefault,+ _FundingPsbtFinalize'_unknownFields = []}+ parseMessage+ = let+ loop ::+ FundingPsbtFinalize+ -> Data.ProtoLens.Encoding.Bytes.Parser FundingPsbtFinalize+ loop x+ = do end <- Data.ProtoLens.Encoding.Bytes.atEnd+ if end then+ do (let missing = []+ in+ if Prelude.null missing then+ Prelude.return ()+ else+ Prelude.fail+ ((Prelude.++)+ "Missing required fields: "+ (Prelude.show (missing :: [Prelude.String]))))+ Prelude.return+ (Lens.Family2.over+ Data.ProtoLens.unknownFields (\ !t -> Prelude.reverse t) x)+ else+ do tag <- Data.ProtoLens.Encoding.Bytes.getVarInt+ case tag of+ 10+ -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (do len <- Data.ProtoLens.Encoding.Bytes.getVarInt+ Data.ProtoLens.Encoding.Bytes.getBytes+ (Prelude.fromIntegral len))+ "signed_psbt"+ loop+ (Lens.Family2.set (Data.ProtoLens.Field.field @"signedPsbt") y x)+ 18+ -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (do len <- Data.ProtoLens.Encoding.Bytes.getVarInt+ Data.ProtoLens.Encoding.Bytes.getBytes+ (Prelude.fromIntegral len))+ "pending_chan_id"+ loop+ (Lens.Family2.set+ (Data.ProtoLens.Field.field @"pendingChanId") y x)+ 26+ -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (do len <- Data.ProtoLens.Encoding.Bytes.getVarInt+ Data.ProtoLens.Encoding.Bytes.getBytes+ (Prelude.fromIntegral len))+ "final_raw_tx"+ loop+ (Lens.Family2.set (Data.ProtoLens.Field.field @"finalRawTx") y x)+ wire+ -> do !y <- Data.ProtoLens.Encoding.Wire.parseTaggedValueFromWire+ wire+ loop+ (Lens.Family2.over+ Data.ProtoLens.unknownFields (\ !t -> (:) y t) x)+ in+ (Data.ProtoLens.Encoding.Bytes.<?>)+ (do loop Data.ProtoLens.defMessage) "FundingPsbtFinalize"+ buildMessage+ = \ _x+ -> (Data.Monoid.<>)+ (let+ _v+ = Lens.Family2.view (Data.ProtoLens.Field.field @"signedPsbt") _x+ in+ if (Prelude.==) _v Data.ProtoLens.fieldDefault then+ Data.Monoid.mempty+ else+ (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 10)+ ((\ bs+ -> (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt+ (Prelude.fromIntegral (Data.ByteString.length bs)))+ (Data.ProtoLens.Encoding.Bytes.putBytes bs))+ _v))+ ((Data.Monoid.<>)+ (let+ _v+ = Lens.Family2.view+ (Data.ProtoLens.Field.field @"pendingChanId") _x+ in+ if (Prelude.==) _v Data.ProtoLens.fieldDefault then+ Data.Monoid.mempty+ else+ (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 18)+ ((\ bs+ -> (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt+ (Prelude.fromIntegral (Data.ByteString.length bs)))+ (Data.ProtoLens.Encoding.Bytes.putBytes bs))+ _v))+ ((Data.Monoid.<>)+ (let+ _v+ = Lens.Family2.view (Data.ProtoLens.Field.field @"finalRawTx") _x+ in+ if (Prelude.==) _v Data.ProtoLens.fieldDefault then+ Data.Monoid.mempty+ else+ (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 26)+ ((\ bs+ -> (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt+ (Prelude.fromIntegral (Data.ByteString.length bs)))+ (Data.ProtoLens.Encoding.Bytes.putBytes bs))+ _v))+ (Data.ProtoLens.Encoding.Wire.buildFieldSet+ (Lens.Family2.view Data.ProtoLens.unknownFields _x))))+instance Control.DeepSeq.NFData FundingPsbtFinalize where+ rnf+ = \ x__+ -> Control.DeepSeq.deepseq+ (_FundingPsbtFinalize'_unknownFields x__)+ (Control.DeepSeq.deepseq+ (_FundingPsbtFinalize'signedPsbt x__)+ (Control.DeepSeq.deepseq+ (_FundingPsbtFinalize'pendingChanId x__)+ (Control.DeepSeq.deepseq+ (_FundingPsbtFinalize'finalRawTx x__) ())))+{- | Fields :+ + * 'Proto.Lnrpc.Ln0_Fields.fundedPsbt' @:: Lens' FundingPsbtVerify Data.ByteString.ByteString@+ * 'Proto.Lnrpc.Ln0_Fields.pendingChanId' @:: Lens' FundingPsbtVerify Data.ByteString.ByteString@+ * 'Proto.Lnrpc.Ln0_Fields.skipFinalize' @:: Lens' FundingPsbtVerify Prelude.Bool@ -}+data FundingPsbtVerify+ = FundingPsbtVerify'_constructor {_FundingPsbtVerify'fundedPsbt :: !Data.ByteString.ByteString,+ _FundingPsbtVerify'pendingChanId :: !Data.ByteString.ByteString,+ _FundingPsbtVerify'skipFinalize :: !Prelude.Bool,+ _FundingPsbtVerify'_unknownFields :: !Data.ProtoLens.FieldSet}+ deriving stock (Prelude.Eq, Prelude.Ord, GHC.Generics.Generic)+instance Prelude.Show FundingPsbtVerify where+ showsPrec _ __x __s+ = Prelude.showChar+ '{'+ (Prelude.showString+ (Data.ProtoLens.showMessageShort __x) (Prelude.showChar '}' __s))+instance Text.PrettyPrint.GenericPretty.Out FundingPsbtVerify+instance Data.ProtoLens.Field.HasField FundingPsbtVerify "fundedPsbt" Data.ByteString.ByteString where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _FundingPsbtVerify'fundedPsbt+ (\ x__ y__ -> x__ {_FundingPsbtVerify'fundedPsbt = y__}))+ Prelude.id+instance Data.ProtoLens.Field.HasField FundingPsbtVerify "pendingChanId" Data.ByteString.ByteString where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _FundingPsbtVerify'pendingChanId+ (\ x__ y__ -> x__ {_FundingPsbtVerify'pendingChanId = y__}))+ Prelude.id+instance Data.ProtoLens.Field.HasField FundingPsbtVerify "skipFinalize" Prelude.Bool where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _FundingPsbtVerify'skipFinalize+ (\ x__ y__ -> x__ {_FundingPsbtVerify'skipFinalize = y__}))+ Prelude.id+instance Data.ProtoLens.Message FundingPsbtVerify where+ messageName _ = Data.Text.pack "lnrpc.FundingPsbtVerify"+ packedMessageDescriptor _+ = "\n\+ \\DC1FundingPsbtVerify\DC2\US\n\+ \\vfunded_psbt\CAN\SOH \SOH(\fR\n\+ \fundedPsbt\DC2&\n\+ \\SIpending_chan_id\CAN\STX \SOH(\fR\rpendingChanId\DC2#\n\+ \\rskip_finalize\CAN\ETX \SOH(\bR\fskipFinalize"+ packedFileDescriptor _ = packedFileDescriptor+ fieldsByTag+ = let+ fundedPsbt__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "funded_psbt"+ (Data.ProtoLens.ScalarField Data.ProtoLens.BytesField ::+ Data.ProtoLens.FieldTypeDescriptor Data.ByteString.ByteString)+ (Data.ProtoLens.PlainField+ Data.ProtoLens.Optional+ (Data.ProtoLens.Field.field @"fundedPsbt")) ::+ Data.ProtoLens.FieldDescriptor FundingPsbtVerify+ pendingChanId__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "pending_chan_id"+ (Data.ProtoLens.ScalarField Data.ProtoLens.BytesField ::+ Data.ProtoLens.FieldTypeDescriptor Data.ByteString.ByteString)+ (Data.ProtoLens.PlainField+ Data.ProtoLens.Optional+ (Data.ProtoLens.Field.field @"pendingChanId")) ::+ Data.ProtoLens.FieldDescriptor FundingPsbtVerify+ skipFinalize__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "skip_finalize"+ (Data.ProtoLens.ScalarField Data.ProtoLens.BoolField ::+ Data.ProtoLens.FieldTypeDescriptor Prelude.Bool)+ (Data.ProtoLens.PlainField+ Data.ProtoLens.Optional+ (Data.ProtoLens.Field.field @"skipFinalize")) ::+ Data.ProtoLens.FieldDescriptor FundingPsbtVerify+ in+ Data.Map.fromList+ [(Data.ProtoLens.Tag 1, fundedPsbt__field_descriptor),+ (Data.ProtoLens.Tag 2, pendingChanId__field_descriptor),+ (Data.ProtoLens.Tag 3, skipFinalize__field_descriptor)]+ unknownFields+ = Lens.Family2.Unchecked.lens+ _FundingPsbtVerify'_unknownFields+ (\ x__ y__ -> x__ {_FundingPsbtVerify'_unknownFields = y__})+ defMessage+ = FundingPsbtVerify'_constructor+ {_FundingPsbtVerify'fundedPsbt = Data.ProtoLens.fieldDefault,+ _FundingPsbtVerify'pendingChanId = Data.ProtoLens.fieldDefault,+ _FundingPsbtVerify'skipFinalize = Data.ProtoLens.fieldDefault,+ _FundingPsbtVerify'_unknownFields = []}+ parseMessage+ = let+ loop ::+ FundingPsbtVerify+ -> Data.ProtoLens.Encoding.Bytes.Parser FundingPsbtVerify+ loop x+ = do end <- Data.ProtoLens.Encoding.Bytes.atEnd+ if end then+ do (let missing = []+ in+ if Prelude.null missing then+ Prelude.return ()+ else+ Prelude.fail+ ((Prelude.++)+ "Missing required fields: "+ (Prelude.show (missing :: [Prelude.String]))))+ Prelude.return+ (Lens.Family2.over+ Data.ProtoLens.unknownFields (\ !t -> Prelude.reverse t) x)+ else+ do tag <- Data.ProtoLens.Encoding.Bytes.getVarInt+ case tag of+ 10+ -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (do len <- Data.ProtoLens.Encoding.Bytes.getVarInt+ Data.ProtoLens.Encoding.Bytes.getBytes+ (Prelude.fromIntegral len))+ "funded_psbt"+ loop+ (Lens.Family2.set (Data.ProtoLens.Field.field @"fundedPsbt") y x)+ 18+ -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (do len <- Data.ProtoLens.Encoding.Bytes.getVarInt+ Data.ProtoLens.Encoding.Bytes.getBytes+ (Prelude.fromIntegral len))+ "pending_chan_id"+ loop+ (Lens.Family2.set+ (Data.ProtoLens.Field.field @"pendingChanId") y x)+ 24+ -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (Prelude.fmap+ ((Prelude./=) 0) Data.ProtoLens.Encoding.Bytes.getVarInt)+ "skip_finalize"+ loop+ (Lens.Family2.set+ (Data.ProtoLens.Field.field @"skipFinalize") y x)+ wire+ -> do !y <- Data.ProtoLens.Encoding.Wire.parseTaggedValueFromWire+ wire+ loop+ (Lens.Family2.over+ Data.ProtoLens.unknownFields (\ !t -> (:) y t) x)+ in+ (Data.ProtoLens.Encoding.Bytes.<?>)+ (do loop Data.ProtoLens.defMessage) "FundingPsbtVerify"+ buildMessage+ = \ _x+ -> (Data.Monoid.<>)+ (let+ _v+ = Lens.Family2.view (Data.ProtoLens.Field.field @"fundedPsbt") _x+ in+ if (Prelude.==) _v Data.ProtoLens.fieldDefault then+ Data.Monoid.mempty+ else+ (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 10)+ ((\ bs+ -> (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt+ (Prelude.fromIntegral (Data.ByteString.length bs)))+ (Data.ProtoLens.Encoding.Bytes.putBytes bs))+ _v))+ ((Data.Monoid.<>)+ (let+ _v+ = Lens.Family2.view+ (Data.ProtoLens.Field.field @"pendingChanId") _x+ in+ if (Prelude.==) _v Data.ProtoLens.fieldDefault then+ Data.Monoid.mempty+ else+ (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 18)+ ((\ bs+ -> (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt+ (Prelude.fromIntegral (Data.ByteString.length bs)))+ (Data.ProtoLens.Encoding.Bytes.putBytes bs))+ _v))+ ((Data.Monoid.<>)+ (let+ _v+ = Lens.Family2.view (Data.ProtoLens.Field.field @"skipFinalize") _x+ in+ if (Prelude.==) _v Data.ProtoLens.fieldDefault then+ Data.Monoid.mempty+ else+ (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 24)+ ((Prelude..)+ Data.ProtoLens.Encoding.Bytes.putVarInt (\ b -> if b then 1 else 0)+ _v))+ (Data.ProtoLens.Encoding.Wire.buildFieldSet+ (Lens.Family2.view Data.ProtoLens.unknownFields _x))))+instance Control.DeepSeq.NFData FundingPsbtVerify where+ rnf+ = \ x__+ -> Control.DeepSeq.deepseq+ (_FundingPsbtVerify'_unknownFields x__)+ (Control.DeepSeq.deepseq+ (_FundingPsbtVerify'fundedPsbt x__)+ (Control.DeepSeq.deepseq+ (_FundingPsbtVerify'pendingChanId x__)+ (Control.DeepSeq.deepseq+ (_FundingPsbtVerify'skipFinalize x__) ())))+{- | Fields :+ + * 'Proto.Lnrpc.Ln0_Fields.maybe'shim' @:: Lens' FundingShim (Prelude.Maybe FundingShim'Shim)@+ * 'Proto.Lnrpc.Ln0_Fields.maybe'chanPointShim' @:: Lens' FundingShim (Prelude.Maybe ChanPointShim)@+ * 'Proto.Lnrpc.Ln0_Fields.chanPointShim' @:: Lens' FundingShim ChanPointShim@+ * 'Proto.Lnrpc.Ln0_Fields.maybe'psbtShim' @:: Lens' FundingShim (Prelude.Maybe PsbtShim)@+ * 'Proto.Lnrpc.Ln0_Fields.psbtShim' @:: Lens' FundingShim PsbtShim@ -}+data FundingShim+ = FundingShim'_constructor {_FundingShim'shim :: !(Prelude.Maybe FundingShim'Shim),+ _FundingShim'_unknownFields :: !Data.ProtoLens.FieldSet}+ deriving stock (Prelude.Eq, Prelude.Ord, GHC.Generics.Generic)+instance Prelude.Show FundingShim where+ showsPrec _ __x __s+ = Prelude.showChar+ '{'+ (Prelude.showString+ (Data.ProtoLens.showMessageShort __x) (Prelude.showChar '}' __s))+instance Text.PrettyPrint.GenericPretty.Out FundingShim+data FundingShim'Shim+ = FundingShim'ChanPointShim !ChanPointShim |+ FundingShim'PsbtShim !PsbtShim+ deriving stock (Prelude.Show,+ Prelude.Eq,+ Prelude.Ord,+ GHC.Generics.Generic)+instance Text.PrettyPrint.GenericPretty.Out FundingShim'Shim+instance Data.ProtoLens.Field.HasField FundingShim "maybe'shim" (Prelude.Maybe FundingShim'Shim) where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _FundingShim'shim (\ x__ y__ -> x__ {_FundingShim'shim = y__}))+ Prelude.id+instance Data.ProtoLens.Field.HasField FundingShim "maybe'chanPointShim" (Prelude.Maybe ChanPointShim) where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _FundingShim'shim (\ x__ y__ -> x__ {_FundingShim'shim = y__}))+ (Lens.Family2.Unchecked.lens+ (\ x__+ -> case x__ of+ (Prelude.Just (FundingShim'ChanPointShim x__val))+ -> Prelude.Just x__val+ _otherwise -> Prelude.Nothing)+ (\ _ y__ -> Prelude.fmap FundingShim'ChanPointShim y__))+instance Data.ProtoLens.Field.HasField FundingShim "chanPointShim" ChanPointShim where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _FundingShim'shim (\ x__ y__ -> x__ {_FundingShim'shim = y__}))+ ((Prelude..)+ (Lens.Family2.Unchecked.lens+ (\ x__+ -> case x__ of+ (Prelude.Just (FundingShim'ChanPointShim x__val))+ -> Prelude.Just x__val+ _otherwise -> Prelude.Nothing)+ (\ _ y__ -> Prelude.fmap FundingShim'ChanPointShim y__))+ (Data.ProtoLens.maybeLens Data.ProtoLens.defMessage))+instance Data.ProtoLens.Field.HasField FundingShim "maybe'psbtShim" (Prelude.Maybe PsbtShim) where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _FundingShim'shim (\ x__ y__ -> x__ {_FundingShim'shim = y__}))+ (Lens.Family2.Unchecked.lens+ (\ x__+ -> case x__ of+ (Prelude.Just (FundingShim'PsbtShim x__val)) -> Prelude.Just x__val+ _otherwise -> Prelude.Nothing)+ (\ _ y__ -> Prelude.fmap FundingShim'PsbtShim y__))+instance Data.ProtoLens.Field.HasField FundingShim "psbtShim" PsbtShim where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _FundingShim'shim (\ x__ y__ -> x__ {_FundingShim'shim = y__}))+ ((Prelude..)+ (Lens.Family2.Unchecked.lens+ (\ x__+ -> case x__ of+ (Prelude.Just (FundingShim'PsbtShim x__val)) -> Prelude.Just x__val+ _otherwise -> Prelude.Nothing)+ (\ _ y__ -> Prelude.fmap FundingShim'PsbtShim y__))+ (Data.ProtoLens.maybeLens Data.ProtoLens.defMessage))+instance Data.ProtoLens.Message FundingShim where+ messageName _ = Data.Text.pack "lnrpc.FundingShim"+ packedMessageDescriptor _+ = "\n\+ \\vFundingShim\DC2>\n\+ \\SIchan_point_shim\CAN\SOH \SOH(\v2\DC4.lnrpc.ChanPointShimH\NULR\rchanPointShim\DC2.\n\+ \\tpsbt_shim\CAN\STX \SOH(\v2\SI.lnrpc.PsbtShimH\NULR\bpsbtShimB\ACK\n\+ \\EOTshim"+ packedFileDescriptor _ = packedFileDescriptor+ fieldsByTag+ = let+ chanPointShim__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "chan_point_shim"+ (Data.ProtoLens.MessageField Data.ProtoLens.MessageType ::+ Data.ProtoLens.FieldTypeDescriptor ChanPointShim)+ (Data.ProtoLens.OptionalField+ (Data.ProtoLens.Field.field @"maybe'chanPointShim")) ::+ Data.ProtoLens.FieldDescriptor FundingShim+ psbtShim__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "psbt_shim"+ (Data.ProtoLens.MessageField Data.ProtoLens.MessageType ::+ Data.ProtoLens.FieldTypeDescriptor PsbtShim)+ (Data.ProtoLens.OptionalField+ (Data.ProtoLens.Field.field @"maybe'psbtShim")) ::+ Data.ProtoLens.FieldDescriptor FundingShim+ in+ Data.Map.fromList+ [(Data.ProtoLens.Tag 1, chanPointShim__field_descriptor),+ (Data.ProtoLens.Tag 2, psbtShim__field_descriptor)]+ unknownFields+ = Lens.Family2.Unchecked.lens+ _FundingShim'_unknownFields+ (\ x__ y__ -> x__ {_FundingShim'_unknownFields = y__})+ defMessage+ = FundingShim'_constructor+ {_FundingShim'shim = Prelude.Nothing,+ _FundingShim'_unknownFields = []}+ parseMessage+ = let+ loop ::+ FundingShim -> Data.ProtoLens.Encoding.Bytes.Parser FundingShim+ loop x+ = do end <- Data.ProtoLens.Encoding.Bytes.atEnd+ if end then+ do (let missing = []+ in+ if Prelude.null missing then+ Prelude.return ()+ else+ Prelude.fail+ ((Prelude.++)+ "Missing required fields: "+ (Prelude.show (missing :: [Prelude.String]))))+ Prelude.return+ (Lens.Family2.over+ Data.ProtoLens.unknownFields (\ !t -> Prelude.reverse t) x)+ else+ do tag <- Data.ProtoLens.Encoding.Bytes.getVarInt+ case tag of+ 10+ -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (do len <- Data.ProtoLens.Encoding.Bytes.getVarInt+ Data.ProtoLens.Encoding.Bytes.isolate+ (Prelude.fromIntegral len) Data.ProtoLens.parseMessage)+ "chan_point_shim"+ loop+ (Lens.Family2.set+ (Data.ProtoLens.Field.field @"chanPointShim") y x)+ 18+ -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (do len <- Data.ProtoLens.Encoding.Bytes.getVarInt+ Data.ProtoLens.Encoding.Bytes.isolate+ (Prelude.fromIntegral len) Data.ProtoLens.parseMessage)+ "psbt_shim"+ loop+ (Lens.Family2.set (Data.ProtoLens.Field.field @"psbtShim") y x)+ wire+ -> do !y <- Data.ProtoLens.Encoding.Wire.parseTaggedValueFromWire+ wire+ loop+ (Lens.Family2.over+ Data.ProtoLens.unknownFields (\ !t -> (:) y t) x)+ in+ (Data.ProtoLens.Encoding.Bytes.<?>)+ (do loop Data.ProtoLens.defMessage) "FundingShim"+ buildMessage+ = \ _x+ -> (Data.Monoid.<>)+ (case+ Lens.Family2.view (Data.ProtoLens.Field.field @"maybe'shim") _x+ of+ Prelude.Nothing -> Data.Monoid.mempty+ (Prelude.Just (FundingShim'ChanPointShim v))+ -> (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 10)+ ((Prelude..)+ (\ bs+ -> (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt+ (Prelude.fromIntegral (Data.ByteString.length bs)))+ (Data.ProtoLens.Encoding.Bytes.putBytes bs))+ Data.ProtoLens.encodeMessage v)+ (Prelude.Just (FundingShim'PsbtShim v))+ -> (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 18)+ ((Prelude..)+ (\ bs+ -> (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt+ (Prelude.fromIntegral (Data.ByteString.length bs)))+ (Data.ProtoLens.Encoding.Bytes.putBytes bs))+ Data.ProtoLens.encodeMessage v))+ (Data.ProtoLens.Encoding.Wire.buildFieldSet+ (Lens.Family2.view Data.ProtoLens.unknownFields _x))+instance Control.DeepSeq.NFData FundingShim where+ rnf+ = \ x__+ -> Control.DeepSeq.deepseq+ (_FundingShim'_unknownFields x__)+ (Control.DeepSeq.deepseq (_FundingShim'shim x__) ())+instance Control.DeepSeq.NFData FundingShim'Shim where+ rnf (FundingShim'ChanPointShim x__) = Control.DeepSeq.rnf x__+ rnf (FundingShim'PsbtShim x__) = Control.DeepSeq.rnf x__+_FundingShim'ChanPointShim ::+ Data.ProtoLens.Prism.Prism' FundingShim'Shim ChanPointShim+_FundingShim'ChanPointShim+ = Data.ProtoLens.Prism.prism'+ FundingShim'ChanPointShim+ (\ p__+ -> case p__ of+ (FundingShim'ChanPointShim p__val) -> Prelude.Just p__val+ _otherwise -> Prelude.Nothing)+_FundingShim'PsbtShim ::+ Data.ProtoLens.Prism.Prism' FundingShim'Shim PsbtShim+_FundingShim'PsbtShim+ = Data.ProtoLens.Prism.prism'+ FundingShim'PsbtShim+ (\ p__+ -> case p__ of+ (FundingShim'PsbtShim p__val) -> Prelude.Just p__val+ _otherwise -> Prelude.Nothing)+{- | Fields :+ + * 'Proto.Lnrpc.Ln0_Fields.pendingChanId' @:: Lens' FundingShimCancel Data.ByteString.ByteString@ -}+data FundingShimCancel+ = FundingShimCancel'_constructor {_FundingShimCancel'pendingChanId :: !Data.ByteString.ByteString,+ _FundingShimCancel'_unknownFields :: !Data.ProtoLens.FieldSet}+ deriving stock (Prelude.Eq, Prelude.Ord, GHC.Generics.Generic)+instance Prelude.Show FundingShimCancel where+ showsPrec _ __x __s+ = Prelude.showChar+ '{'+ (Prelude.showString+ (Data.ProtoLens.showMessageShort __x) (Prelude.showChar '}' __s))+instance Text.PrettyPrint.GenericPretty.Out FundingShimCancel+instance Data.ProtoLens.Field.HasField FundingShimCancel "pendingChanId" Data.ByteString.ByteString where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _FundingShimCancel'pendingChanId+ (\ x__ y__ -> x__ {_FundingShimCancel'pendingChanId = y__}))+ Prelude.id+instance Data.ProtoLens.Message FundingShimCancel where+ messageName _ = Data.Text.pack "lnrpc.FundingShimCancel"+ packedMessageDescriptor _+ = "\n\+ \\DC1FundingShimCancel\DC2&\n\+ \\SIpending_chan_id\CAN\SOH \SOH(\fR\rpendingChanId"+ packedFileDescriptor _ = packedFileDescriptor+ fieldsByTag+ = let+ pendingChanId__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "pending_chan_id"+ (Data.ProtoLens.ScalarField Data.ProtoLens.BytesField ::+ Data.ProtoLens.FieldTypeDescriptor Data.ByteString.ByteString)+ (Data.ProtoLens.PlainField+ Data.ProtoLens.Optional+ (Data.ProtoLens.Field.field @"pendingChanId")) ::+ Data.ProtoLens.FieldDescriptor FundingShimCancel+ in+ Data.Map.fromList+ [(Data.ProtoLens.Tag 1, pendingChanId__field_descriptor)]+ unknownFields+ = Lens.Family2.Unchecked.lens+ _FundingShimCancel'_unknownFields+ (\ x__ y__ -> x__ {_FundingShimCancel'_unknownFields = y__})+ defMessage+ = FundingShimCancel'_constructor+ {_FundingShimCancel'pendingChanId = Data.ProtoLens.fieldDefault,+ _FundingShimCancel'_unknownFields = []}+ parseMessage+ = let+ loop ::+ FundingShimCancel+ -> Data.ProtoLens.Encoding.Bytes.Parser FundingShimCancel+ loop x+ = do end <- Data.ProtoLens.Encoding.Bytes.atEnd+ if end then+ do (let missing = []+ in+ if Prelude.null missing then+ Prelude.return ()+ else+ Prelude.fail+ ((Prelude.++)+ "Missing required fields: "+ (Prelude.show (missing :: [Prelude.String]))))+ Prelude.return+ (Lens.Family2.over+ Data.ProtoLens.unknownFields (\ !t -> Prelude.reverse t) x)+ else+ do tag <- Data.ProtoLens.Encoding.Bytes.getVarInt+ case tag of+ 10+ -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (do len <- Data.ProtoLens.Encoding.Bytes.getVarInt+ Data.ProtoLens.Encoding.Bytes.getBytes+ (Prelude.fromIntegral len))+ "pending_chan_id"+ loop+ (Lens.Family2.set+ (Data.ProtoLens.Field.field @"pendingChanId") y x)+ wire+ -> do !y <- Data.ProtoLens.Encoding.Wire.parseTaggedValueFromWire+ wire+ loop+ (Lens.Family2.over+ Data.ProtoLens.unknownFields (\ !t -> (:) y t) x)+ in+ (Data.ProtoLens.Encoding.Bytes.<?>)+ (do loop Data.ProtoLens.defMessage) "FundingShimCancel"+ buildMessage+ = \ _x+ -> (Data.Monoid.<>)+ (let+ _v+ = Lens.Family2.view+ (Data.ProtoLens.Field.field @"pendingChanId") _x+ in+ if (Prelude.==) _v Data.ProtoLens.fieldDefault then+ Data.Monoid.mempty+ else+ (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 10)+ ((\ bs+ -> (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt+ (Prelude.fromIntegral (Data.ByteString.length bs)))+ (Data.ProtoLens.Encoding.Bytes.putBytes bs))+ _v))+ (Data.ProtoLens.Encoding.Wire.buildFieldSet+ (Lens.Family2.view Data.ProtoLens.unknownFields _x))+instance Control.DeepSeq.NFData FundingShimCancel where+ rnf+ = \ x__+ -> Control.DeepSeq.deepseq+ (_FundingShimCancel'_unknownFields x__)+ (Control.DeepSeq.deepseq (_FundingShimCancel'pendingChanId x__) ())+{- | Fields :+ -}+data FundingStateStepResp+ = FundingStateStepResp'_constructor {_FundingStateStepResp'_unknownFields :: !Data.ProtoLens.FieldSet}+ deriving stock (Prelude.Eq, Prelude.Ord, GHC.Generics.Generic)+instance Prelude.Show FundingStateStepResp where+ showsPrec _ __x __s+ = Prelude.showChar+ '{'+ (Prelude.showString+ (Data.ProtoLens.showMessageShort __x) (Prelude.showChar '}' __s))+instance Text.PrettyPrint.GenericPretty.Out FundingStateStepResp+instance Data.ProtoLens.Message FundingStateStepResp where+ messageName _ = Data.Text.pack "lnrpc.FundingStateStepResp"+ packedMessageDescriptor _+ = "\n\+ \\DC4FundingStateStepResp"+ packedFileDescriptor _ = packedFileDescriptor+ fieldsByTag = let in Data.Map.fromList []+ unknownFields+ = Lens.Family2.Unchecked.lens+ _FundingStateStepResp'_unknownFields+ (\ x__ y__ -> x__ {_FundingStateStepResp'_unknownFields = y__})+ defMessage+ = FundingStateStepResp'_constructor+ {_FundingStateStepResp'_unknownFields = []}+ parseMessage+ = let+ loop ::+ FundingStateStepResp+ -> Data.ProtoLens.Encoding.Bytes.Parser FundingStateStepResp+ loop x+ = do end <- Data.ProtoLens.Encoding.Bytes.atEnd+ if end then+ do (let missing = []+ in+ if Prelude.null missing then+ Prelude.return ()+ else+ Prelude.fail+ ((Prelude.++)+ "Missing required fields: "+ (Prelude.show (missing :: [Prelude.String]))))+ Prelude.return+ (Lens.Family2.over+ Data.ProtoLens.unknownFields (\ !t -> Prelude.reverse t) x)+ else+ do tag <- Data.ProtoLens.Encoding.Bytes.getVarInt+ case tag of {+ wire+ -> do !y <- Data.ProtoLens.Encoding.Wire.parseTaggedValueFromWire+ wire+ loop+ (Lens.Family2.over+ Data.ProtoLens.unknownFields (\ !t -> (:) y t) x) }+ in+ (Data.ProtoLens.Encoding.Bytes.<?>)+ (do loop Data.ProtoLens.defMessage) "FundingStateStepResp"+ buildMessage+ = \ _x+ -> Data.ProtoLens.Encoding.Wire.buildFieldSet+ (Lens.Family2.view Data.ProtoLens.unknownFields _x)+instance Control.DeepSeq.NFData FundingStateStepResp where+ rnf+ = \ x__+ -> Control.DeepSeq.deepseq+ (_FundingStateStepResp'_unknownFields x__) ()+{- | Fields :+ + * 'Proto.Lnrpc.Ln0_Fields.maybe'trigger' @:: Lens' FundingTransitionMsg (Prelude.Maybe FundingTransitionMsg'Trigger)@+ * 'Proto.Lnrpc.Ln0_Fields.maybe'shimRegister' @:: Lens' FundingTransitionMsg (Prelude.Maybe FundingShim)@+ * 'Proto.Lnrpc.Ln0_Fields.shimRegister' @:: Lens' FundingTransitionMsg FundingShim@+ * 'Proto.Lnrpc.Ln0_Fields.maybe'shimCancel' @:: Lens' FundingTransitionMsg (Prelude.Maybe FundingShimCancel)@+ * 'Proto.Lnrpc.Ln0_Fields.shimCancel' @:: Lens' FundingTransitionMsg FundingShimCancel@+ * 'Proto.Lnrpc.Ln0_Fields.maybe'psbtVerify' @:: Lens' FundingTransitionMsg (Prelude.Maybe FundingPsbtVerify)@+ * 'Proto.Lnrpc.Ln0_Fields.psbtVerify' @:: Lens' FundingTransitionMsg FundingPsbtVerify@+ * 'Proto.Lnrpc.Ln0_Fields.maybe'psbtFinalize' @:: Lens' FundingTransitionMsg (Prelude.Maybe FundingPsbtFinalize)@+ * 'Proto.Lnrpc.Ln0_Fields.psbtFinalize' @:: Lens' FundingTransitionMsg FundingPsbtFinalize@ -}+data FundingTransitionMsg+ = FundingTransitionMsg'_constructor {_FundingTransitionMsg'trigger :: !(Prelude.Maybe FundingTransitionMsg'Trigger),+ _FundingTransitionMsg'_unknownFields :: !Data.ProtoLens.FieldSet}+ deriving stock (Prelude.Eq, Prelude.Ord, GHC.Generics.Generic)+instance Prelude.Show FundingTransitionMsg where+ showsPrec _ __x __s+ = Prelude.showChar+ '{'+ (Prelude.showString+ (Data.ProtoLens.showMessageShort __x) (Prelude.showChar '}' __s))+instance Text.PrettyPrint.GenericPretty.Out FundingTransitionMsg+data FundingTransitionMsg'Trigger+ = FundingTransitionMsg'ShimRegister !FundingShim |+ FundingTransitionMsg'ShimCancel !FundingShimCancel |+ FundingTransitionMsg'PsbtVerify !FundingPsbtVerify |+ FundingTransitionMsg'PsbtFinalize !FundingPsbtFinalize+ deriving stock (Prelude.Show,+ Prelude.Eq,+ Prelude.Ord,+ GHC.Generics.Generic)+instance Text.PrettyPrint.GenericPretty.Out FundingTransitionMsg'Trigger+instance Data.ProtoLens.Field.HasField FundingTransitionMsg "maybe'trigger" (Prelude.Maybe FundingTransitionMsg'Trigger) where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _FundingTransitionMsg'trigger+ (\ x__ y__ -> x__ {_FundingTransitionMsg'trigger = y__}))+ Prelude.id+instance Data.ProtoLens.Field.HasField FundingTransitionMsg "maybe'shimRegister" (Prelude.Maybe FundingShim) where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _FundingTransitionMsg'trigger+ (\ x__ y__ -> x__ {_FundingTransitionMsg'trigger = y__}))+ (Lens.Family2.Unchecked.lens+ (\ x__+ -> case x__ of+ (Prelude.Just (FundingTransitionMsg'ShimRegister x__val))+ -> Prelude.Just x__val+ _otherwise -> Prelude.Nothing)+ (\ _ y__ -> Prelude.fmap FundingTransitionMsg'ShimRegister y__))+instance Data.ProtoLens.Field.HasField FundingTransitionMsg "shimRegister" FundingShim where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _FundingTransitionMsg'trigger+ (\ x__ y__ -> x__ {_FundingTransitionMsg'trigger = y__}))+ ((Prelude..)+ (Lens.Family2.Unchecked.lens+ (\ x__+ -> case x__ of+ (Prelude.Just (FundingTransitionMsg'ShimRegister x__val))+ -> Prelude.Just x__val+ _otherwise -> Prelude.Nothing)+ (\ _ y__ -> Prelude.fmap FundingTransitionMsg'ShimRegister y__))+ (Data.ProtoLens.maybeLens Data.ProtoLens.defMessage))+instance Data.ProtoLens.Field.HasField FundingTransitionMsg "maybe'shimCancel" (Prelude.Maybe FundingShimCancel) where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _FundingTransitionMsg'trigger+ (\ x__ y__ -> x__ {_FundingTransitionMsg'trigger = y__}))+ (Lens.Family2.Unchecked.lens+ (\ x__+ -> case x__ of+ (Prelude.Just (FundingTransitionMsg'ShimCancel x__val))+ -> Prelude.Just x__val+ _otherwise -> Prelude.Nothing)+ (\ _ y__ -> Prelude.fmap FundingTransitionMsg'ShimCancel y__))+instance Data.ProtoLens.Field.HasField FundingTransitionMsg "shimCancel" FundingShimCancel where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _FundingTransitionMsg'trigger+ (\ x__ y__ -> x__ {_FundingTransitionMsg'trigger = y__}))+ ((Prelude..)+ (Lens.Family2.Unchecked.lens+ (\ x__+ -> case x__ of+ (Prelude.Just (FundingTransitionMsg'ShimCancel x__val))+ -> Prelude.Just x__val+ _otherwise -> Prelude.Nothing)+ (\ _ y__ -> Prelude.fmap FundingTransitionMsg'ShimCancel y__))+ (Data.ProtoLens.maybeLens Data.ProtoLens.defMessage))+instance Data.ProtoLens.Field.HasField FundingTransitionMsg "maybe'psbtVerify" (Prelude.Maybe FundingPsbtVerify) where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _FundingTransitionMsg'trigger+ (\ x__ y__ -> x__ {_FundingTransitionMsg'trigger = y__}))+ (Lens.Family2.Unchecked.lens+ (\ x__+ -> case x__ of+ (Prelude.Just (FundingTransitionMsg'PsbtVerify x__val))+ -> Prelude.Just x__val+ _otherwise -> Prelude.Nothing)+ (\ _ y__ -> Prelude.fmap FundingTransitionMsg'PsbtVerify y__))+instance Data.ProtoLens.Field.HasField FundingTransitionMsg "psbtVerify" FundingPsbtVerify where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _FundingTransitionMsg'trigger+ (\ x__ y__ -> x__ {_FundingTransitionMsg'trigger = y__}))+ ((Prelude..)+ (Lens.Family2.Unchecked.lens+ (\ x__+ -> case x__ of+ (Prelude.Just (FundingTransitionMsg'PsbtVerify x__val))+ -> Prelude.Just x__val+ _otherwise -> Prelude.Nothing)+ (\ _ y__ -> Prelude.fmap FundingTransitionMsg'PsbtVerify y__))+ (Data.ProtoLens.maybeLens Data.ProtoLens.defMessage))+instance Data.ProtoLens.Field.HasField FundingTransitionMsg "maybe'psbtFinalize" (Prelude.Maybe FundingPsbtFinalize) where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _FundingTransitionMsg'trigger+ (\ x__ y__ -> x__ {_FundingTransitionMsg'trigger = y__}))+ (Lens.Family2.Unchecked.lens+ (\ x__+ -> case x__ of+ (Prelude.Just (FundingTransitionMsg'PsbtFinalize x__val))+ -> Prelude.Just x__val+ _otherwise -> Prelude.Nothing)+ (\ _ y__ -> Prelude.fmap FundingTransitionMsg'PsbtFinalize y__))+instance Data.ProtoLens.Field.HasField FundingTransitionMsg "psbtFinalize" FundingPsbtFinalize where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _FundingTransitionMsg'trigger+ (\ x__ y__ -> x__ {_FundingTransitionMsg'trigger = y__}))+ ((Prelude..)+ (Lens.Family2.Unchecked.lens+ (\ x__+ -> case x__ of+ (Prelude.Just (FundingTransitionMsg'PsbtFinalize x__val))+ -> Prelude.Just x__val+ _otherwise -> Prelude.Nothing)+ (\ _ y__ -> Prelude.fmap FundingTransitionMsg'PsbtFinalize y__))+ (Data.ProtoLens.maybeLens Data.ProtoLens.defMessage))+instance Data.ProtoLens.Message FundingTransitionMsg where+ messageName _ = Data.Text.pack "lnrpc.FundingTransitionMsg"+ packedMessageDescriptor _+ = "\n\+ \\DC4FundingTransitionMsg\DC29\n\+ \\rshim_register\CAN\SOH \SOH(\v2\DC2.lnrpc.FundingShimH\NULR\fshimRegister\DC2;\n\+ \\vshim_cancel\CAN\STX \SOH(\v2\CAN.lnrpc.FundingShimCancelH\NULR\n\+ \shimCancel\DC2;\n\+ \\vpsbt_verify\CAN\ETX \SOH(\v2\CAN.lnrpc.FundingPsbtVerifyH\NULR\n\+ \psbtVerify\DC2A\n\+ \\rpsbt_finalize\CAN\EOT \SOH(\v2\SUB.lnrpc.FundingPsbtFinalizeH\NULR\fpsbtFinalizeB\t\n\+ \\atrigger"+ packedFileDescriptor _ = packedFileDescriptor+ fieldsByTag+ = let+ shimRegister__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "shim_register"+ (Data.ProtoLens.MessageField Data.ProtoLens.MessageType ::+ Data.ProtoLens.FieldTypeDescriptor FundingShim)+ (Data.ProtoLens.OptionalField+ (Data.ProtoLens.Field.field @"maybe'shimRegister")) ::+ Data.ProtoLens.FieldDescriptor FundingTransitionMsg+ shimCancel__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "shim_cancel"+ (Data.ProtoLens.MessageField Data.ProtoLens.MessageType ::+ Data.ProtoLens.FieldTypeDescriptor FundingShimCancel)+ (Data.ProtoLens.OptionalField+ (Data.ProtoLens.Field.field @"maybe'shimCancel")) ::+ Data.ProtoLens.FieldDescriptor FundingTransitionMsg+ psbtVerify__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "psbt_verify"+ (Data.ProtoLens.MessageField Data.ProtoLens.MessageType ::+ Data.ProtoLens.FieldTypeDescriptor FundingPsbtVerify)+ (Data.ProtoLens.OptionalField+ (Data.ProtoLens.Field.field @"maybe'psbtVerify")) ::+ Data.ProtoLens.FieldDescriptor FundingTransitionMsg+ psbtFinalize__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "psbt_finalize"+ (Data.ProtoLens.MessageField Data.ProtoLens.MessageType ::+ Data.ProtoLens.FieldTypeDescriptor FundingPsbtFinalize)+ (Data.ProtoLens.OptionalField+ (Data.ProtoLens.Field.field @"maybe'psbtFinalize")) ::+ Data.ProtoLens.FieldDescriptor FundingTransitionMsg+ in+ Data.Map.fromList+ [(Data.ProtoLens.Tag 1, shimRegister__field_descriptor),+ (Data.ProtoLens.Tag 2, shimCancel__field_descriptor),+ (Data.ProtoLens.Tag 3, psbtVerify__field_descriptor),+ (Data.ProtoLens.Tag 4, psbtFinalize__field_descriptor)]+ unknownFields+ = Lens.Family2.Unchecked.lens+ _FundingTransitionMsg'_unknownFields+ (\ x__ y__ -> x__ {_FundingTransitionMsg'_unknownFields = y__})+ defMessage+ = FundingTransitionMsg'_constructor+ {_FundingTransitionMsg'trigger = Prelude.Nothing,+ _FundingTransitionMsg'_unknownFields = []}+ parseMessage+ = let+ loop ::+ FundingTransitionMsg+ -> Data.ProtoLens.Encoding.Bytes.Parser FundingTransitionMsg+ loop x+ = do end <- Data.ProtoLens.Encoding.Bytes.atEnd+ if end then+ do (let missing = []+ in+ if Prelude.null missing then+ Prelude.return ()+ else+ Prelude.fail+ ((Prelude.++)+ "Missing required fields: "+ (Prelude.show (missing :: [Prelude.String]))))+ Prelude.return+ (Lens.Family2.over+ Data.ProtoLens.unknownFields (\ !t -> Prelude.reverse t) x)+ else+ do tag <- Data.ProtoLens.Encoding.Bytes.getVarInt+ case tag of+ 10+ -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (do len <- Data.ProtoLens.Encoding.Bytes.getVarInt+ Data.ProtoLens.Encoding.Bytes.isolate+ (Prelude.fromIntegral len) Data.ProtoLens.parseMessage)+ "shim_register"+ loop+ (Lens.Family2.set+ (Data.ProtoLens.Field.field @"shimRegister") y x)+ 18+ -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (do len <- Data.ProtoLens.Encoding.Bytes.getVarInt+ Data.ProtoLens.Encoding.Bytes.isolate+ (Prelude.fromIntegral len) Data.ProtoLens.parseMessage)+ "shim_cancel"+ loop+ (Lens.Family2.set (Data.ProtoLens.Field.field @"shimCancel") y x)+ 26+ -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (do len <- Data.ProtoLens.Encoding.Bytes.getVarInt+ Data.ProtoLens.Encoding.Bytes.isolate+ (Prelude.fromIntegral len) Data.ProtoLens.parseMessage)+ "psbt_verify"+ loop+ (Lens.Family2.set (Data.ProtoLens.Field.field @"psbtVerify") y x)+ 34+ -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (do len <- Data.ProtoLens.Encoding.Bytes.getVarInt+ Data.ProtoLens.Encoding.Bytes.isolate+ (Prelude.fromIntegral len) Data.ProtoLens.parseMessage)+ "psbt_finalize"+ loop+ (Lens.Family2.set+ (Data.ProtoLens.Field.field @"psbtFinalize") y x)+ wire+ -> do !y <- Data.ProtoLens.Encoding.Wire.parseTaggedValueFromWire+ wire+ loop+ (Lens.Family2.over+ Data.ProtoLens.unknownFields (\ !t -> (:) y t) x)+ in+ (Data.ProtoLens.Encoding.Bytes.<?>)+ (do loop Data.ProtoLens.defMessage) "FundingTransitionMsg"+ buildMessage+ = \ _x+ -> (Data.Monoid.<>)+ (case+ Lens.Family2.view (Data.ProtoLens.Field.field @"maybe'trigger") _x+ of+ Prelude.Nothing -> Data.Monoid.mempty+ (Prelude.Just (FundingTransitionMsg'ShimRegister v))+ -> (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 10)+ ((Prelude..)+ (\ bs+ -> (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt+ (Prelude.fromIntegral (Data.ByteString.length bs)))+ (Data.ProtoLens.Encoding.Bytes.putBytes bs))+ Data.ProtoLens.encodeMessage v)+ (Prelude.Just (FundingTransitionMsg'ShimCancel v))+ -> (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 18)+ ((Prelude..)+ (\ bs+ -> (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt+ (Prelude.fromIntegral (Data.ByteString.length bs)))+ (Data.ProtoLens.Encoding.Bytes.putBytes bs))+ Data.ProtoLens.encodeMessage v)+ (Prelude.Just (FundingTransitionMsg'PsbtVerify v))+ -> (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 26)+ ((Prelude..)+ (\ bs+ -> (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt+ (Prelude.fromIntegral (Data.ByteString.length bs)))+ (Data.ProtoLens.Encoding.Bytes.putBytes bs))+ Data.ProtoLens.encodeMessage v)+ (Prelude.Just (FundingTransitionMsg'PsbtFinalize v))+ -> (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 34)+ ((Prelude..)+ (\ bs+ -> (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt+ (Prelude.fromIntegral (Data.ByteString.length bs)))+ (Data.ProtoLens.Encoding.Bytes.putBytes bs))+ Data.ProtoLens.encodeMessage v))+ (Data.ProtoLens.Encoding.Wire.buildFieldSet+ (Lens.Family2.view Data.ProtoLens.unknownFields _x))+instance Control.DeepSeq.NFData FundingTransitionMsg where+ rnf+ = \ x__+ -> Control.DeepSeq.deepseq+ (_FundingTransitionMsg'_unknownFields x__)+ (Control.DeepSeq.deepseq (_FundingTransitionMsg'trigger x__) ())+instance Control.DeepSeq.NFData FundingTransitionMsg'Trigger where+ rnf (FundingTransitionMsg'ShimRegister x__)+ = Control.DeepSeq.rnf x__+ rnf (FundingTransitionMsg'ShimCancel x__) = Control.DeepSeq.rnf x__+ rnf (FundingTransitionMsg'PsbtVerify x__) = Control.DeepSeq.rnf x__+ rnf (FundingTransitionMsg'PsbtFinalize x__)+ = Control.DeepSeq.rnf x__+_FundingTransitionMsg'ShimRegister ::+ Data.ProtoLens.Prism.Prism' FundingTransitionMsg'Trigger FundingShim+_FundingTransitionMsg'ShimRegister+ = Data.ProtoLens.Prism.prism'+ FundingTransitionMsg'ShimRegister+ (\ p__+ -> case p__ of+ (FundingTransitionMsg'ShimRegister p__val) -> Prelude.Just p__val+ _otherwise -> Prelude.Nothing)+_FundingTransitionMsg'ShimCancel ::+ Data.ProtoLens.Prism.Prism' FundingTransitionMsg'Trigger FundingShimCancel+_FundingTransitionMsg'ShimCancel+ = Data.ProtoLens.Prism.prism'+ FundingTransitionMsg'ShimCancel+ (\ p__+ -> case p__ of+ (FundingTransitionMsg'ShimCancel p__val) -> Prelude.Just p__val+ _otherwise -> Prelude.Nothing)+_FundingTransitionMsg'PsbtVerify ::+ Data.ProtoLens.Prism.Prism' FundingTransitionMsg'Trigger FundingPsbtVerify+_FundingTransitionMsg'PsbtVerify+ = Data.ProtoLens.Prism.prism'+ FundingTransitionMsg'PsbtVerify+ (\ p__+ -> case p__ of+ (FundingTransitionMsg'PsbtVerify p__val) -> Prelude.Just p__val+ _otherwise -> Prelude.Nothing)+_FundingTransitionMsg'PsbtFinalize ::+ Data.ProtoLens.Prism.Prism' FundingTransitionMsg'Trigger FundingPsbtFinalize+_FundingTransitionMsg'PsbtFinalize+ = Data.ProtoLens.Prism.prism'+ FundingTransitionMsg'PsbtFinalize+ (\ p__+ -> case p__ of+ (FundingTransitionMsg'PsbtFinalize p__val) -> Prelude.Just p__val+ _otherwise -> Prelude.Nothing)+{- | Fields :+ -}+data GraphTopologySubscription+ = GraphTopologySubscription'_constructor {_GraphTopologySubscription'_unknownFields :: !Data.ProtoLens.FieldSet}+ deriving stock (Prelude.Eq, Prelude.Ord, GHC.Generics.Generic)+instance Prelude.Show GraphTopologySubscription where+ showsPrec _ __x __s+ = Prelude.showChar+ '{'+ (Prelude.showString+ (Data.ProtoLens.showMessageShort __x) (Prelude.showChar '}' __s))+instance Text.PrettyPrint.GenericPretty.Out GraphTopologySubscription+instance Data.ProtoLens.Message GraphTopologySubscription where+ messageName _ = Data.Text.pack "lnrpc.GraphTopologySubscription"+ packedMessageDescriptor _+ = "\n\+ \\EMGraphTopologySubscription"+ packedFileDescriptor _ = packedFileDescriptor+ fieldsByTag = let in Data.Map.fromList []+ unknownFields+ = Lens.Family2.Unchecked.lens+ _GraphTopologySubscription'_unknownFields+ (\ x__ y__+ -> x__ {_GraphTopologySubscription'_unknownFields = y__})+ defMessage+ = GraphTopologySubscription'_constructor+ {_GraphTopologySubscription'_unknownFields = []}+ parseMessage+ = let+ loop ::+ GraphTopologySubscription+ -> Data.ProtoLens.Encoding.Bytes.Parser GraphTopologySubscription+ loop x+ = do end <- Data.ProtoLens.Encoding.Bytes.atEnd+ if end then+ do (let missing = []+ in+ if Prelude.null missing then+ Prelude.return ()+ else+ Prelude.fail+ ((Prelude.++)+ "Missing required fields: "+ (Prelude.show (missing :: [Prelude.String]))))+ Prelude.return+ (Lens.Family2.over+ Data.ProtoLens.unknownFields (\ !t -> Prelude.reverse t) x)+ else+ do tag <- Data.ProtoLens.Encoding.Bytes.getVarInt+ case tag of {+ wire+ -> do !y <- Data.ProtoLens.Encoding.Wire.parseTaggedValueFromWire+ wire+ loop+ (Lens.Family2.over+ Data.ProtoLens.unknownFields (\ !t -> (:) y t) x) }+ in+ (Data.ProtoLens.Encoding.Bytes.<?>)+ (do loop Data.ProtoLens.defMessage) "GraphTopologySubscription"+ buildMessage+ = \ _x+ -> Data.ProtoLens.Encoding.Wire.buildFieldSet+ (Lens.Family2.view Data.ProtoLens.unknownFields _x)+instance Control.DeepSeq.NFData GraphTopologySubscription where+ rnf+ = \ x__+ -> Control.DeepSeq.deepseq+ (_GraphTopologySubscription'_unknownFields x__) ()+{- | Fields :+ + * 'Proto.Lnrpc.Ln0_Fields.nodeUpdates' @:: Lens' GraphTopologyUpdate [NodeUpdate]@+ * 'Proto.Lnrpc.Ln0_Fields.vec'nodeUpdates' @:: Lens' GraphTopologyUpdate (Data.Vector.Vector NodeUpdate)@+ * 'Proto.Lnrpc.Ln0_Fields.channelUpdates' @:: Lens' GraphTopologyUpdate [ChannelEdgeUpdate]@+ * 'Proto.Lnrpc.Ln0_Fields.vec'channelUpdates' @:: Lens' GraphTopologyUpdate (Data.Vector.Vector ChannelEdgeUpdate)@+ * 'Proto.Lnrpc.Ln0_Fields.closedChans' @:: Lens' GraphTopologyUpdate [ClosedChannelUpdate]@+ * 'Proto.Lnrpc.Ln0_Fields.vec'closedChans' @:: Lens' GraphTopologyUpdate (Data.Vector.Vector ClosedChannelUpdate)@ -}+data GraphTopologyUpdate+ = GraphTopologyUpdate'_constructor {_GraphTopologyUpdate'nodeUpdates :: !(Data.Vector.Vector NodeUpdate),+ _GraphTopologyUpdate'channelUpdates :: !(Data.Vector.Vector ChannelEdgeUpdate),+ _GraphTopologyUpdate'closedChans :: !(Data.Vector.Vector ClosedChannelUpdate),+ _GraphTopologyUpdate'_unknownFields :: !Data.ProtoLens.FieldSet}+ deriving stock (Prelude.Eq, Prelude.Ord, GHC.Generics.Generic)+instance Prelude.Show GraphTopologyUpdate where+ showsPrec _ __x __s+ = Prelude.showChar+ '{'+ (Prelude.showString+ (Data.ProtoLens.showMessageShort __x) (Prelude.showChar '}' __s))+instance Text.PrettyPrint.GenericPretty.Out GraphTopologyUpdate+instance Data.ProtoLens.Field.HasField GraphTopologyUpdate "nodeUpdates" [NodeUpdate] where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _GraphTopologyUpdate'nodeUpdates+ (\ x__ y__ -> x__ {_GraphTopologyUpdate'nodeUpdates = y__}))+ (Lens.Family2.Unchecked.lens+ Data.Vector.Generic.toList+ (\ _ y__ -> Data.Vector.Generic.fromList y__))+instance Data.ProtoLens.Field.HasField GraphTopologyUpdate "vec'nodeUpdates" (Data.Vector.Vector NodeUpdate) where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _GraphTopologyUpdate'nodeUpdates+ (\ x__ y__ -> x__ {_GraphTopologyUpdate'nodeUpdates = y__}))+ Prelude.id+instance Data.ProtoLens.Field.HasField GraphTopologyUpdate "channelUpdates" [ChannelEdgeUpdate] where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _GraphTopologyUpdate'channelUpdates+ (\ x__ y__ -> x__ {_GraphTopologyUpdate'channelUpdates = y__}))+ (Lens.Family2.Unchecked.lens+ Data.Vector.Generic.toList+ (\ _ y__ -> Data.Vector.Generic.fromList y__))+instance Data.ProtoLens.Field.HasField GraphTopologyUpdate "vec'channelUpdates" (Data.Vector.Vector ChannelEdgeUpdate) where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _GraphTopologyUpdate'channelUpdates+ (\ x__ y__ -> x__ {_GraphTopologyUpdate'channelUpdates = y__}))+ Prelude.id+instance Data.ProtoLens.Field.HasField GraphTopologyUpdate "closedChans" [ClosedChannelUpdate] where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _GraphTopologyUpdate'closedChans+ (\ x__ y__ -> x__ {_GraphTopologyUpdate'closedChans = y__}))+ (Lens.Family2.Unchecked.lens+ Data.Vector.Generic.toList+ (\ _ y__ -> Data.Vector.Generic.fromList y__))+instance Data.ProtoLens.Field.HasField GraphTopologyUpdate "vec'closedChans" (Data.Vector.Vector ClosedChannelUpdate) where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _GraphTopologyUpdate'closedChans+ (\ x__ y__ -> x__ {_GraphTopologyUpdate'closedChans = y__}))+ Prelude.id+instance Data.ProtoLens.Message GraphTopologyUpdate where+ messageName _ = Data.Text.pack "lnrpc.GraphTopologyUpdate"+ packedMessageDescriptor _+ = "\n\+ \\DC3GraphTopologyUpdate\DC24\n\+ \\fnode_updates\CAN\SOH \ETX(\v2\DC1.lnrpc.NodeUpdateR\vnodeUpdates\DC2A\n\+ \\SIchannel_updates\CAN\STX \ETX(\v2\CAN.lnrpc.ChannelEdgeUpdateR\SOchannelUpdates\DC2=\n\+ \\fclosed_chans\CAN\ETX \ETX(\v2\SUB.lnrpc.ClosedChannelUpdateR\vclosedChans"+ packedFileDescriptor _ = packedFileDescriptor+ fieldsByTag+ = let+ nodeUpdates__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "node_updates"+ (Data.ProtoLens.MessageField Data.ProtoLens.MessageType ::+ Data.ProtoLens.FieldTypeDescriptor NodeUpdate)+ (Data.ProtoLens.RepeatedField+ Data.ProtoLens.Unpacked+ (Data.ProtoLens.Field.field @"nodeUpdates")) ::+ Data.ProtoLens.FieldDescriptor GraphTopologyUpdate+ channelUpdates__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "channel_updates"+ (Data.ProtoLens.MessageField Data.ProtoLens.MessageType ::+ Data.ProtoLens.FieldTypeDescriptor ChannelEdgeUpdate)+ (Data.ProtoLens.RepeatedField+ Data.ProtoLens.Unpacked+ (Data.ProtoLens.Field.field @"channelUpdates")) ::+ Data.ProtoLens.FieldDescriptor GraphTopologyUpdate+ closedChans__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "closed_chans"+ (Data.ProtoLens.MessageField Data.ProtoLens.MessageType ::+ Data.ProtoLens.FieldTypeDescriptor ClosedChannelUpdate)+ (Data.ProtoLens.RepeatedField+ Data.ProtoLens.Unpacked+ (Data.ProtoLens.Field.field @"closedChans")) ::+ Data.ProtoLens.FieldDescriptor GraphTopologyUpdate+ in+ Data.Map.fromList+ [(Data.ProtoLens.Tag 1, nodeUpdates__field_descriptor),+ (Data.ProtoLens.Tag 2, channelUpdates__field_descriptor),+ (Data.ProtoLens.Tag 3, closedChans__field_descriptor)]+ unknownFields+ = Lens.Family2.Unchecked.lens+ _GraphTopologyUpdate'_unknownFields+ (\ x__ y__ -> x__ {_GraphTopologyUpdate'_unknownFields = y__})+ defMessage+ = GraphTopologyUpdate'_constructor+ {_GraphTopologyUpdate'nodeUpdates = Data.Vector.Generic.empty,+ _GraphTopologyUpdate'channelUpdates = Data.Vector.Generic.empty,+ _GraphTopologyUpdate'closedChans = Data.Vector.Generic.empty,+ _GraphTopologyUpdate'_unknownFields = []}+ parseMessage+ = let+ loop ::+ GraphTopologyUpdate+ -> Data.ProtoLens.Encoding.Growing.Growing Data.Vector.Vector Data.ProtoLens.Encoding.Growing.RealWorld ChannelEdgeUpdate+ -> Data.ProtoLens.Encoding.Growing.Growing Data.Vector.Vector Data.ProtoLens.Encoding.Growing.RealWorld ClosedChannelUpdate+ -> Data.ProtoLens.Encoding.Growing.Growing Data.Vector.Vector Data.ProtoLens.Encoding.Growing.RealWorld NodeUpdate+ -> Data.ProtoLens.Encoding.Bytes.Parser GraphTopologyUpdate+ loop+ x+ mutable'channelUpdates+ mutable'closedChans+ mutable'nodeUpdates+ = do end <- Data.ProtoLens.Encoding.Bytes.atEnd+ if end then+ do frozen'channelUpdates <- Data.ProtoLens.Encoding.Parser.Unsafe.unsafeLiftIO+ (Data.ProtoLens.Encoding.Growing.unsafeFreeze+ mutable'channelUpdates)+ frozen'closedChans <- Data.ProtoLens.Encoding.Parser.Unsafe.unsafeLiftIO+ (Data.ProtoLens.Encoding.Growing.unsafeFreeze+ mutable'closedChans)+ frozen'nodeUpdates <- Data.ProtoLens.Encoding.Parser.Unsafe.unsafeLiftIO+ (Data.ProtoLens.Encoding.Growing.unsafeFreeze+ mutable'nodeUpdates)+ (let missing = []+ in+ if Prelude.null missing then+ Prelude.return ()+ else+ Prelude.fail+ ((Prelude.++)+ "Missing required fields: "+ (Prelude.show (missing :: [Prelude.String]))))+ Prelude.return+ (Lens.Family2.over+ Data.ProtoLens.unknownFields (\ !t -> Prelude.reverse t)+ (Lens.Family2.set+ (Data.ProtoLens.Field.field @"vec'channelUpdates")+ frozen'channelUpdates+ (Lens.Family2.set+ (Data.ProtoLens.Field.field @"vec'closedChans") frozen'closedChans+ (Lens.Family2.set+ (Data.ProtoLens.Field.field @"vec'nodeUpdates")+ frozen'nodeUpdates x))))+ else+ do tag <- Data.ProtoLens.Encoding.Bytes.getVarInt+ case tag of+ 10+ -> do !y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (do len <- Data.ProtoLens.Encoding.Bytes.getVarInt+ Data.ProtoLens.Encoding.Bytes.isolate+ (Prelude.fromIntegral len)+ Data.ProtoLens.parseMessage)+ "node_updates"+ v <- Data.ProtoLens.Encoding.Parser.Unsafe.unsafeLiftIO+ (Data.ProtoLens.Encoding.Growing.append+ mutable'nodeUpdates y)+ loop x mutable'channelUpdates mutable'closedChans v+ 18+ -> do !y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (do len <- Data.ProtoLens.Encoding.Bytes.getVarInt+ Data.ProtoLens.Encoding.Bytes.isolate+ (Prelude.fromIntegral len)+ Data.ProtoLens.parseMessage)+ "channel_updates"+ v <- Data.ProtoLens.Encoding.Parser.Unsafe.unsafeLiftIO+ (Data.ProtoLens.Encoding.Growing.append+ mutable'channelUpdates y)+ loop x v mutable'closedChans mutable'nodeUpdates+ 26+ -> do !y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (do len <- Data.ProtoLens.Encoding.Bytes.getVarInt+ Data.ProtoLens.Encoding.Bytes.isolate+ (Prelude.fromIntegral len)+ Data.ProtoLens.parseMessage)+ "closed_chans"+ v <- Data.ProtoLens.Encoding.Parser.Unsafe.unsafeLiftIO+ (Data.ProtoLens.Encoding.Growing.append+ mutable'closedChans y)+ loop x mutable'channelUpdates v mutable'nodeUpdates+ wire+ -> do !y <- Data.ProtoLens.Encoding.Wire.parseTaggedValueFromWire+ wire+ loop+ (Lens.Family2.over+ Data.ProtoLens.unknownFields (\ !t -> (:) y t) x)+ mutable'channelUpdates mutable'closedChans mutable'nodeUpdates+ in+ (Data.ProtoLens.Encoding.Bytes.<?>)+ (do mutable'channelUpdates <- Data.ProtoLens.Encoding.Parser.Unsafe.unsafeLiftIO+ Data.ProtoLens.Encoding.Growing.new+ mutable'closedChans <- Data.ProtoLens.Encoding.Parser.Unsafe.unsafeLiftIO+ Data.ProtoLens.Encoding.Growing.new+ mutable'nodeUpdates <- Data.ProtoLens.Encoding.Parser.Unsafe.unsafeLiftIO+ Data.ProtoLens.Encoding.Growing.new+ loop+ Data.ProtoLens.defMessage mutable'channelUpdates+ mutable'closedChans mutable'nodeUpdates)+ "GraphTopologyUpdate"+ buildMessage+ = \ _x+ -> (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.foldMapBuilder+ (\ _v+ -> (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 10)+ ((Prelude..)+ (\ bs+ -> (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt+ (Prelude.fromIntegral (Data.ByteString.length bs)))+ (Data.ProtoLens.Encoding.Bytes.putBytes bs))+ Data.ProtoLens.encodeMessage _v))+ (Lens.Family2.view+ (Data.ProtoLens.Field.field @"vec'nodeUpdates") _x))+ ((Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.foldMapBuilder+ (\ _v+ -> (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 18)+ ((Prelude..)+ (\ bs+ -> (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt+ (Prelude.fromIntegral (Data.ByteString.length bs)))+ (Data.ProtoLens.Encoding.Bytes.putBytes bs))+ Data.ProtoLens.encodeMessage _v))+ (Lens.Family2.view+ (Data.ProtoLens.Field.field @"vec'channelUpdates") _x))+ ((Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.foldMapBuilder+ (\ _v+ -> (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 26)+ ((Prelude..)+ (\ bs+ -> (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt+ (Prelude.fromIntegral (Data.ByteString.length bs)))+ (Data.ProtoLens.Encoding.Bytes.putBytes bs))+ Data.ProtoLens.encodeMessage _v))+ (Lens.Family2.view+ (Data.ProtoLens.Field.field @"vec'closedChans") _x))+ (Data.ProtoLens.Encoding.Wire.buildFieldSet+ (Lens.Family2.view Data.ProtoLens.unknownFields _x))))+instance Control.DeepSeq.NFData GraphTopologyUpdate where+ rnf+ = \ x__+ -> Control.DeepSeq.deepseq+ (_GraphTopologyUpdate'_unknownFields x__)+ (Control.DeepSeq.deepseq+ (_GraphTopologyUpdate'nodeUpdates x__)+ (Control.DeepSeq.deepseq+ (_GraphTopologyUpdate'channelUpdates x__)+ (Control.DeepSeq.deepseq+ (_GraphTopologyUpdate'closedChans x__) ())))+{- | Fields :+ + * 'Proto.Lnrpc.Ln0_Fields.incoming' @:: Lens' HTLC Prelude.Bool@+ * 'Proto.Lnrpc.Ln0_Fields.amount' @:: Lens' HTLC Data.Int.Int64@+ * 'Proto.Lnrpc.Ln0_Fields.hashLock' @:: Lens' HTLC Data.ByteString.ByteString@+ * 'Proto.Lnrpc.Ln0_Fields.expirationHeight' @:: Lens' HTLC Data.Word.Word32@+ * 'Proto.Lnrpc.Ln0_Fields.htlcIndex' @:: Lens' HTLC Data.Word.Word64@+ * 'Proto.Lnrpc.Ln0_Fields.forwardingChannel' @:: Lens' HTLC Data.Word.Word64@+ * 'Proto.Lnrpc.Ln0_Fields.forwardingHtlcIndex' @:: Lens' HTLC Data.Word.Word64@ -}+data HTLC+ = HTLC'_constructor {_HTLC'incoming :: !Prelude.Bool,+ _HTLC'amount :: !Data.Int.Int64,+ _HTLC'hashLock :: !Data.ByteString.ByteString,+ _HTLC'expirationHeight :: !Data.Word.Word32,+ _HTLC'htlcIndex :: !Data.Word.Word64,+ _HTLC'forwardingChannel :: !Data.Word.Word64,+ _HTLC'forwardingHtlcIndex :: !Data.Word.Word64,+ _HTLC'_unknownFields :: !Data.ProtoLens.FieldSet}+ deriving stock (Prelude.Eq, Prelude.Ord, GHC.Generics.Generic)+instance Prelude.Show HTLC where+ showsPrec _ __x __s+ = Prelude.showChar+ '{'+ (Prelude.showString+ (Data.ProtoLens.showMessageShort __x) (Prelude.showChar '}' __s))+instance Text.PrettyPrint.GenericPretty.Out HTLC+instance Data.ProtoLens.Field.HasField HTLC "incoming" Prelude.Bool where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _HTLC'incoming (\ x__ y__ -> x__ {_HTLC'incoming = y__}))+ Prelude.id+instance Data.ProtoLens.Field.HasField HTLC "amount" Data.Int.Int64 where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _HTLC'amount (\ x__ y__ -> x__ {_HTLC'amount = y__}))+ Prelude.id+instance Data.ProtoLens.Field.HasField HTLC "hashLock" Data.ByteString.ByteString where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _HTLC'hashLock (\ x__ y__ -> x__ {_HTLC'hashLock = y__}))+ Prelude.id+instance Data.ProtoLens.Field.HasField HTLC "expirationHeight" Data.Word.Word32 where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _HTLC'expirationHeight+ (\ x__ y__ -> x__ {_HTLC'expirationHeight = y__}))+ Prelude.id+instance Data.ProtoLens.Field.HasField HTLC "htlcIndex" Data.Word.Word64 where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _HTLC'htlcIndex (\ x__ y__ -> x__ {_HTLC'htlcIndex = y__}))+ Prelude.id+instance Data.ProtoLens.Field.HasField HTLC "forwardingChannel" Data.Word.Word64 where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _HTLC'forwardingChannel+ (\ x__ y__ -> x__ {_HTLC'forwardingChannel = y__}))+ Prelude.id+instance Data.ProtoLens.Field.HasField HTLC "forwardingHtlcIndex" Data.Word.Word64 where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _HTLC'forwardingHtlcIndex+ (\ x__ y__ -> x__ {_HTLC'forwardingHtlcIndex = y__}))+ Prelude.id+instance Data.ProtoLens.Message HTLC where+ messageName _ = Data.Text.pack "lnrpc.HTLC"+ packedMessageDescriptor _+ = "\n\+ \\EOTHTLC\DC2\SUB\n\+ \\bincoming\CAN\SOH \SOH(\bR\bincoming\DC2\SYN\n\+ \\ACKamount\CAN\STX \SOH(\ETXR\ACKamount\DC2\ESC\n\+ \\thash_lock\CAN\ETX \SOH(\fR\bhashLock\DC2+\n\+ \\DC1expiration_height\CAN\EOT \SOH(\rR\DLEexpirationHeight\DC2\GS\n\+ \\n\+ \htlc_index\CAN\ENQ \SOH(\EOTR\thtlcIndex\DC2-\n\+ \\DC2forwarding_channel\CAN\ACK \SOH(\EOTR\DC1forwardingChannel\DC22\n\+ \\NAKforwarding_htlc_index\CAN\a \SOH(\EOTR\DC3forwardingHtlcIndex"+ packedFileDescriptor _ = packedFileDescriptor+ fieldsByTag+ = let+ incoming__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "incoming"+ (Data.ProtoLens.ScalarField Data.ProtoLens.BoolField ::+ Data.ProtoLens.FieldTypeDescriptor Prelude.Bool)+ (Data.ProtoLens.PlainField+ Data.ProtoLens.Optional+ (Data.ProtoLens.Field.field @"incoming")) ::+ Data.ProtoLens.FieldDescriptor HTLC+ amount__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "amount"+ (Data.ProtoLens.ScalarField Data.ProtoLens.Int64Field ::+ Data.ProtoLens.FieldTypeDescriptor Data.Int.Int64)+ (Data.ProtoLens.PlainField+ Data.ProtoLens.Optional (Data.ProtoLens.Field.field @"amount")) ::+ Data.ProtoLens.FieldDescriptor HTLC+ hashLock__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "hash_lock"+ (Data.ProtoLens.ScalarField Data.ProtoLens.BytesField ::+ Data.ProtoLens.FieldTypeDescriptor Data.ByteString.ByteString)+ (Data.ProtoLens.PlainField+ Data.ProtoLens.Optional+ (Data.ProtoLens.Field.field @"hashLock")) ::+ Data.ProtoLens.FieldDescriptor HTLC+ expirationHeight__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "expiration_height"+ (Data.ProtoLens.ScalarField Data.ProtoLens.UInt32Field ::+ Data.ProtoLens.FieldTypeDescriptor Data.Word.Word32)+ (Data.ProtoLens.PlainField+ Data.ProtoLens.Optional+ (Data.ProtoLens.Field.field @"expirationHeight")) ::+ Data.ProtoLens.FieldDescriptor HTLC+ htlcIndex__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "htlc_index"+ (Data.ProtoLens.ScalarField Data.ProtoLens.UInt64Field ::+ Data.ProtoLens.FieldTypeDescriptor Data.Word.Word64)+ (Data.ProtoLens.PlainField+ Data.ProtoLens.Optional+ (Data.ProtoLens.Field.field @"htlcIndex")) ::+ Data.ProtoLens.FieldDescriptor HTLC+ forwardingChannel__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "forwarding_channel"+ (Data.ProtoLens.ScalarField Data.ProtoLens.UInt64Field ::+ Data.ProtoLens.FieldTypeDescriptor Data.Word.Word64)+ (Data.ProtoLens.PlainField+ Data.ProtoLens.Optional+ (Data.ProtoLens.Field.field @"forwardingChannel")) ::+ Data.ProtoLens.FieldDescriptor HTLC+ forwardingHtlcIndex__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "forwarding_htlc_index"+ (Data.ProtoLens.ScalarField Data.ProtoLens.UInt64Field ::+ Data.ProtoLens.FieldTypeDescriptor Data.Word.Word64)+ (Data.ProtoLens.PlainField+ Data.ProtoLens.Optional+ (Data.ProtoLens.Field.field @"forwardingHtlcIndex")) ::+ Data.ProtoLens.FieldDescriptor HTLC+ in+ Data.Map.fromList+ [(Data.ProtoLens.Tag 1, incoming__field_descriptor),+ (Data.ProtoLens.Tag 2, amount__field_descriptor),+ (Data.ProtoLens.Tag 3, hashLock__field_descriptor),+ (Data.ProtoLens.Tag 4, expirationHeight__field_descriptor),+ (Data.ProtoLens.Tag 5, htlcIndex__field_descriptor),+ (Data.ProtoLens.Tag 6, forwardingChannel__field_descriptor),+ (Data.ProtoLens.Tag 7, forwardingHtlcIndex__field_descriptor)]+ unknownFields+ = Lens.Family2.Unchecked.lens+ _HTLC'_unknownFields+ (\ x__ y__ -> x__ {_HTLC'_unknownFields = y__})+ defMessage+ = HTLC'_constructor+ {_HTLC'incoming = Data.ProtoLens.fieldDefault,+ _HTLC'amount = Data.ProtoLens.fieldDefault,+ _HTLC'hashLock = Data.ProtoLens.fieldDefault,+ _HTLC'expirationHeight = Data.ProtoLens.fieldDefault,+ _HTLC'htlcIndex = Data.ProtoLens.fieldDefault,+ _HTLC'forwardingChannel = Data.ProtoLens.fieldDefault,+ _HTLC'forwardingHtlcIndex = Data.ProtoLens.fieldDefault,+ _HTLC'_unknownFields = []}+ parseMessage+ = let+ loop :: HTLC -> Data.ProtoLens.Encoding.Bytes.Parser HTLC+ loop x+ = do end <- Data.ProtoLens.Encoding.Bytes.atEnd+ if end then+ do (let missing = []+ in+ if Prelude.null missing then+ Prelude.return ()+ else+ Prelude.fail+ ((Prelude.++)+ "Missing required fields: "+ (Prelude.show (missing :: [Prelude.String]))))+ Prelude.return+ (Lens.Family2.over+ Data.ProtoLens.unknownFields (\ !t -> Prelude.reverse t) x)+ else+ do tag <- Data.ProtoLens.Encoding.Bytes.getVarInt+ case tag of+ 8 -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (Prelude.fmap+ ((Prelude./=) 0) Data.ProtoLens.Encoding.Bytes.getVarInt)+ "incoming"+ loop+ (Lens.Family2.set (Data.ProtoLens.Field.field @"incoming") y x)+ 16+ -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (Prelude.fmap+ Prelude.fromIntegral+ Data.ProtoLens.Encoding.Bytes.getVarInt)+ "amount"+ loop (Lens.Family2.set (Data.ProtoLens.Field.field @"amount") y x)+ 26+ -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (do len <- Data.ProtoLens.Encoding.Bytes.getVarInt+ Data.ProtoLens.Encoding.Bytes.getBytes+ (Prelude.fromIntegral len))+ "hash_lock"+ loop+ (Lens.Family2.set (Data.ProtoLens.Field.field @"hashLock") y x)+ 32+ -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (Prelude.fmap+ Prelude.fromIntegral+ Data.ProtoLens.Encoding.Bytes.getVarInt)+ "expiration_height"+ loop+ (Lens.Family2.set+ (Data.ProtoLens.Field.field @"expirationHeight") y x)+ 40+ -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ Data.ProtoLens.Encoding.Bytes.getVarInt "htlc_index"+ loop+ (Lens.Family2.set (Data.ProtoLens.Field.field @"htlcIndex") y x)+ 48+ -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ Data.ProtoLens.Encoding.Bytes.getVarInt "forwarding_channel"+ loop+ (Lens.Family2.set+ (Data.ProtoLens.Field.field @"forwardingChannel") y x)+ 56+ -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ Data.ProtoLens.Encoding.Bytes.getVarInt+ "forwarding_htlc_index"+ loop+ (Lens.Family2.set+ (Data.ProtoLens.Field.field @"forwardingHtlcIndex") y x)+ wire+ -> do !y <- Data.ProtoLens.Encoding.Wire.parseTaggedValueFromWire+ wire+ loop+ (Lens.Family2.over+ Data.ProtoLens.unknownFields (\ !t -> (:) y t) x)+ in+ (Data.ProtoLens.Encoding.Bytes.<?>)+ (do loop Data.ProtoLens.defMessage) "HTLC"+ buildMessage+ = \ _x+ -> (Data.Monoid.<>)+ (let+ _v = Lens.Family2.view (Data.ProtoLens.Field.field @"incoming") _x+ in+ if (Prelude.==) _v Data.ProtoLens.fieldDefault then+ Data.Monoid.mempty+ else+ (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 8)+ ((Prelude..)+ Data.ProtoLens.Encoding.Bytes.putVarInt (\ b -> if b then 1 else 0)+ _v))+ ((Data.Monoid.<>)+ (let+ _v = Lens.Family2.view (Data.ProtoLens.Field.field @"amount") _x+ in+ if (Prelude.==) _v Data.ProtoLens.fieldDefault then+ Data.Monoid.mempty+ else+ (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 16)+ ((Prelude..)+ Data.ProtoLens.Encoding.Bytes.putVarInt Prelude.fromIntegral _v))+ ((Data.Monoid.<>)+ (let+ _v = Lens.Family2.view (Data.ProtoLens.Field.field @"hashLock") _x+ in+ if (Prelude.==) _v Data.ProtoLens.fieldDefault then+ Data.Monoid.mempty+ else+ (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 26)+ ((\ bs+ -> (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt+ (Prelude.fromIntegral (Data.ByteString.length bs)))+ (Data.ProtoLens.Encoding.Bytes.putBytes bs))+ _v))+ ((Data.Monoid.<>)+ (let+ _v+ = Lens.Family2.view+ (Data.ProtoLens.Field.field @"expirationHeight") _x+ in+ if (Prelude.==) _v Data.ProtoLens.fieldDefault then+ Data.Monoid.mempty+ else+ (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 32)+ ((Prelude..)+ Data.ProtoLens.Encoding.Bytes.putVarInt Prelude.fromIntegral _v))+ ((Data.Monoid.<>)+ (let+ _v = Lens.Family2.view (Data.ProtoLens.Field.field @"htlcIndex") _x+ in+ if (Prelude.==) _v Data.ProtoLens.fieldDefault then+ Data.Monoid.mempty+ else+ (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 40)+ (Data.ProtoLens.Encoding.Bytes.putVarInt _v))+ ((Data.Monoid.<>)+ (let+ _v+ = Lens.Family2.view+ (Data.ProtoLens.Field.field @"forwardingChannel") _x+ in+ if (Prelude.==) _v Data.ProtoLens.fieldDefault then+ Data.Monoid.mempty+ else+ (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 48)+ (Data.ProtoLens.Encoding.Bytes.putVarInt _v))+ ((Data.Monoid.<>)+ (let+ _v+ = Lens.Family2.view+ (Data.ProtoLens.Field.field @"forwardingHtlcIndex") _x+ in+ if (Prelude.==) _v Data.ProtoLens.fieldDefault then+ Data.Monoid.mempty+ else+ (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 56)+ (Data.ProtoLens.Encoding.Bytes.putVarInt _v))+ (Data.ProtoLens.Encoding.Wire.buildFieldSet+ (Lens.Family2.view Data.ProtoLens.unknownFields _x))))))))+instance Control.DeepSeq.NFData HTLC where+ rnf+ = \ x__+ -> Control.DeepSeq.deepseq+ (_HTLC'_unknownFields x__)+ (Control.DeepSeq.deepseq+ (_HTLC'incoming x__)+ (Control.DeepSeq.deepseq+ (_HTLC'amount x__)+ (Control.DeepSeq.deepseq+ (_HTLC'hashLock x__)+ (Control.DeepSeq.deepseq+ (_HTLC'expirationHeight x__)+ (Control.DeepSeq.deepseq+ (_HTLC'htlcIndex x__)+ (Control.DeepSeq.deepseq+ (_HTLC'forwardingChannel x__)+ (Control.DeepSeq.deepseq (_HTLC'forwardingHtlcIndex x__) ())))))))+{- | Fields :+ + * 'Proto.Lnrpc.Ln0_Fields.chanId' @:: Lens' Hop Data.Word.Word64@+ * 'Proto.Lnrpc.Ln0_Fields.chanCapacity' @:: Lens' Hop Data.Int.Int64@+ * 'Proto.Lnrpc.Ln0_Fields.amtToForward' @:: Lens' Hop Data.Int.Int64@+ * 'Proto.Lnrpc.Ln0_Fields.fee' @:: Lens' Hop Data.Int.Int64@+ * 'Proto.Lnrpc.Ln0_Fields.expiry' @:: Lens' Hop Data.Word.Word32@+ * 'Proto.Lnrpc.Ln0_Fields.amtToForwardMsat' @:: Lens' Hop Data.Int.Int64@+ * 'Proto.Lnrpc.Ln0_Fields.feeMsat' @:: Lens' Hop Data.Int.Int64@+ * 'Proto.Lnrpc.Ln0_Fields.pubKey' @:: Lens' Hop Data.Text.Text@+ * 'Proto.Lnrpc.Ln0_Fields.tlvPayload' @:: Lens' Hop Prelude.Bool@+ * 'Proto.Lnrpc.Ln0_Fields.mppRecord' @:: Lens' Hop MPPRecord@+ * 'Proto.Lnrpc.Ln0_Fields.maybe'mppRecord' @:: Lens' Hop (Prelude.Maybe MPPRecord)@+ * 'Proto.Lnrpc.Ln0_Fields.ampRecord' @:: Lens' Hop AMPRecord@+ * 'Proto.Lnrpc.Ln0_Fields.maybe'ampRecord' @:: Lens' Hop (Prelude.Maybe AMPRecord)@+ * 'Proto.Lnrpc.Ln0_Fields.customRecords' @:: Lens' Hop (Data.Map.Map Data.Word.Word64 Data.ByteString.ByteString)@ -}+data Hop+ = Hop'_constructor {_Hop'chanId :: !Data.Word.Word64,+ _Hop'chanCapacity :: !Data.Int.Int64,+ _Hop'amtToForward :: !Data.Int.Int64,+ _Hop'fee :: !Data.Int.Int64,+ _Hop'expiry :: !Data.Word.Word32,+ _Hop'amtToForwardMsat :: !Data.Int.Int64,+ _Hop'feeMsat :: !Data.Int.Int64,+ _Hop'pubKey :: !Data.Text.Text,+ _Hop'tlvPayload :: !Prelude.Bool,+ _Hop'mppRecord :: !(Prelude.Maybe MPPRecord),+ _Hop'ampRecord :: !(Prelude.Maybe AMPRecord),+ _Hop'customRecords :: !(Data.Map.Map Data.Word.Word64 Data.ByteString.ByteString),+ _Hop'_unknownFields :: !Data.ProtoLens.FieldSet}+ deriving stock (Prelude.Eq, Prelude.Ord, GHC.Generics.Generic)+instance Prelude.Show Hop where+ showsPrec _ __x __s+ = Prelude.showChar+ '{'+ (Prelude.showString+ (Data.ProtoLens.showMessageShort __x) (Prelude.showChar '}' __s))+instance Text.PrettyPrint.GenericPretty.Out Hop+instance Data.ProtoLens.Field.HasField Hop "chanId" Data.Word.Word64 where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _Hop'chanId (\ x__ y__ -> x__ {_Hop'chanId = y__}))+ Prelude.id+instance Data.ProtoLens.Field.HasField Hop "chanCapacity" Data.Int.Int64 where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _Hop'chanCapacity (\ x__ y__ -> x__ {_Hop'chanCapacity = y__}))+ Prelude.id+instance Data.ProtoLens.Field.HasField Hop "amtToForward" Data.Int.Int64 where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _Hop'amtToForward (\ x__ y__ -> x__ {_Hop'amtToForward = y__}))+ Prelude.id+instance Data.ProtoLens.Field.HasField Hop "fee" Data.Int.Int64 where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _Hop'fee (\ x__ y__ -> x__ {_Hop'fee = y__}))+ Prelude.id+instance Data.ProtoLens.Field.HasField Hop "expiry" Data.Word.Word32 where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _Hop'expiry (\ x__ y__ -> x__ {_Hop'expiry = y__}))+ Prelude.id+instance Data.ProtoLens.Field.HasField Hop "amtToForwardMsat" Data.Int.Int64 where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _Hop'amtToForwardMsat+ (\ x__ y__ -> x__ {_Hop'amtToForwardMsat = y__}))+ Prelude.id+instance Data.ProtoLens.Field.HasField Hop "feeMsat" Data.Int.Int64 where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _Hop'feeMsat (\ x__ y__ -> x__ {_Hop'feeMsat = y__}))+ Prelude.id+instance Data.ProtoLens.Field.HasField Hop "pubKey" Data.Text.Text where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _Hop'pubKey (\ x__ y__ -> x__ {_Hop'pubKey = y__}))+ Prelude.id+instance Data.ProtoLens.Field.HasField Hop "tlvPayload" Prelude.Bool where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _Hop'tlvPayload (\ x__ y__ -> x__ {_Hop'tlvPayload = y__}))+ Prelude.id+instance Data.ProtoLens.Field.HasField Hop "mppRecord" MPPRecord where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _Hop'mppRecord (\ x__ y__ -> x__ {_Hop'mppRecord = y__}))+ (Data.ProtoLens.maybeLens Data.ProtoLens.defMessage)+instance Data.ProtoLens.Field.HasField Hop "maybe'mppRecord" (Prelude.Maybe MPPRecord) where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _Hop'mppRecord (\ x__ y__ -> x__ {_Hop'mppRecord = y__}))+ Prelude.id+instance Data.ProtoLens.Field.HasField Hop "ampRecord" AMPRecord where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _Hop'ampRecord (\ x__ y__ -> x__ {_Hop'ampRecord = y__}))+ (Data.ProtoLens.maybeLens Data.ProtoLens.defMessage)+instance Data.ProtoLens.Field.HasField Hop "maybe'ampRecord" (Prelude.Maybe AMPRecord) where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _Hop'ampRecord (\ x__ y__ -> x__ {_Hop'ampRecord = y__}))+ Prelude.id+instance Data.ProtoLens.Field.HasField Hop "customRecords" (Data.Map.Map Data.Word.Word64 Data.ByteString.ByteString) where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _Hop'customRecords (\ x__ y__ -> x__ {_Hop'customRecords = y__}))+ Prelude.id+instance Data.ProtoLens.Message Hop where+ messageName _ = Data.Text.pack "lnrpc.Hop"+ packedMessageDescriptor _+ = "\n\+ \\ETXHop\DC2\ESC\n\+ \\achan_id\CAN\SOH \SOH(\EOTR\ACKchanIdB\STX0\SOH\DC2'\n\+ \\rchan_capacity\CAN\STX \SOH(\ETXR\fchanCapacityB\STX\CAN\SOH\DC2(\n\+ \\SOamt_to_forward\CAN\ETX \SOH(\ETXR\famtToForwardB\STX\CAN\SOH\DC2\DC4\n\+ \\ETXfee\CAN\EOT \SOH(\ETXR\ETXfeeB\STX\CAN\SOH\DC2\SYN\n\+ \\ACKexpiry\CAN\ENQ \SOH(\rR\ACKexpiry\DC2-\n\+ \\DC3amt_to_forward_msat\CAN\ACK \SOH(\ETXR\DLEamtToForwardMsat\DC2\EM\n\+ \\bfee_msat\CAN\a \SOH(\ETXR\afeeMsat\DC2\ETB\n\+ \\apub_key\CAN\b \SOH(\tR\ACKpubKey\DC2\US\n\+ \\vtlv_payload\CAN\t \SOH(\bR\n\+ \tlvPayload\DC2/\n\+ \\n\+ \mpp_record\CAN\n\+ \ \SOH(\v2\DLE.lnrpc.MPPRecordR\tmppRecord\DC2/\n\+ \\n\+ \amp_record\CAN\f \SOH(\v2\DLE.lnrpc.AMPRecordR\tampRecord\DC2D\n\+ \\SOcustom_records\CAN\v \ETX(\v2\GS.lnrpc.Hop.CustomRecordsEntryR\rcustomRecords\SUB@\n\+ \\DC2CustomRecordsEntry\DC2\DLE\n\+ \\ETXkey\CAN\SOH \SOH(\EOTR\ETXkey\DC2\DC4\n\+ \\ENQvalue\CAN\STX \SOH(\fR\ENQvalue:\STX8\SOH"+ packedFileDescriptor _ = packedFileDescriptor+ fieldsByTag+ = let+ chanId__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "chan_id"+ (Data.ProtoLens.ScalarField Data.ProtoLens.UInt64Field ::+ Data.ProtoLens.FieldTypeDescriptor Data.Word.Word64)+ (Data.ProtoLens.PlainField+ Data.ProtoLens.Optional (Data.ProtoLens.Field.field @"chanId")) ::+ Data.ProtoLens.FieldDescriptor Hop+ chanCapacity__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "chan_capacity"+ (Data.ProtoLens.ScalarField Data.ProtoLens.Int64Field ::+ Data.ProtoLens.FieldTypeDescriptor Data.Int.Int64)+ (Data.ProtoLens.PlainField+ Data.ProtoLens.Optional+ (Data.ProtoLens.Field.field @"chanCapacity")) ::+ Data.ProtoLens.FieldDescriptor Hop+ amtToForward__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "amt_to_forward"+ (Data.ProtoLens.ScalarField Data.ProtoLens.Int64Field ::+ Data.ProtoLens.FieldTypeDescriptor Data.Int.Int64)+ (Data.ProtoLens.PlainField+ Data.ProtoLens.Optional+ (Data.ProtoLens.Field.field @"amtToForward")) ::+ Data.ProtoLens.FieldDescriptor Hop+ fee__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "fee"+ (Data.ProtoLens.ScalarField Data.ProtoLens.Int64Field ::+ Data.ProtoLens.FieldTypeDescriptor Data.Int.Int64)+ (Data.ProtoLens.PlainField+ Data.ProtoLens.Optional (Data.ProtoLens.Field.field @"fee")) ::+ Data.ProtoLens.FieldDescriptor Hop+ expiry__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "expiry"+ (Data.ProtoLens.ScalarField Data.ProtoLens.UInt32Field ::+ Data.ProtoLens.FieldTypeDescriptor Data.Word.Word32)+ (Data.ProtoLens.PlainField+ Data.ProtoLens.Optional (Data.ProtoLens.Field.field @"expiry")) ::+ Data.ProtoLens.FieldDescriptor Hop+ amtToForwardMsat__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "amt_to_forward_msat"+ (Data.ProtoLens.ScalarField Data.ProtoLens.Int64Field ::+ Data.ProtoLens.FieldTypeDescriptor Data.Int.Int64)+ (Data.ProtoLens.PlainField+ Data.ProtoLens.Optional+ (Data.ProtoLens.Field.field @"amtToForwardMsat")) ::+ Data.ProtoLens.FieldDescriptor Hop+ feeMsat__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "fee_msat"+ (Data.ProtoLens.ScalarField Data.ProtoLens.Int64Field ::+ Data.ProtoLens.FieldTypeDescriptor Data.Int.Int64)+ (Data.ProtoLens.PlainField+ Data.ProtoLens.Optional (Data.ProtoLens.Field.field @"feeMsat")) ::+ Data.ProtoLens.FieldDescriptor Hop+ pubKey__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "pub_key"+ (Data.ProtoLens.ScalarField Data.ProtoLens.StringField ::+ Data.ProtoLens.FieldTypeDescriptor Data.Text.Text)+ (Data.ProtoLens.PlainField+ Data.ProtoLens.Optional (Data.ProtoLens.Field.field @"pubKey")) ::+ Data.ProtoLens.FieldDescriptor Hop+ tlvPayload__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "tlv_payload"+ (Data.ProtoLens.ScalarField Data.ProtoLens.BoolField ::+ Data.ProtoLens.FieldTypeDescriptor Prelude.Bool)+ (Data.ProtoLens.PlainField+ Data.ProtoLens.Optional+ (Data.ProtoLens.Field.field @"tlvPayload")) ::+ Data.ProtoLens.FieldDescriptor Hop+ mppRecord__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "mpp_record"+ (Data.ProtoLens.MessageField Data.ProtoLens.MessageType ::+ Data.ProtoLens.FieldTypeDescriptor MPPRecord)+ (Data.ProtoLens.OptionalField+ (Data.ProtoLens.Field.field @"maybe'mppRecord")) ::+ Data.ProtoLens.FieldDescriptor Hop+ ampRecord__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "amp_record"+ (Data.ProtoLens.MessageField Data.ProtoLens.MessageType ::+ Data.ProtoLens.FieldTypeDescriptor AMPRecord)+ (Data.ProtoLens.OptionalField+ (Data.ProtoLens.Field.field @"maybe'ampRecord")) ::+ Data.ProtoLens.FieldDescriptor Hop+ customRecords__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "custom_records"+ (Data.ProtoLens.MessageField Data.ProtoLens.MessageType ::+ Data.ProtoLens.FieldTypeDescriptor Hop'CustomRecordsEntry)+ (Data.ProtoLens.MapField+ (Data.ProtoLens.Field.field @"key")+ (Data.ProtoLens.Field.field @"value")+ (Data.ProtoLens.Field.field @"customRecords")) ::+ Data.ProtoLens.FieldDescriptor Hop+ in+ Data.Map.fromList+ [(Data.ProtoLens.Tag 1, chanId__field_descriptor),+ (Data.ProtoLens.Tag 2, chanCapacity__field_descriptor),+ (Data.ProtoLens.Tag 3, amtToForward__field_descriptor),+ (Data.ProtoLens.Tag 4, fee__field_descriptor),+ (Data.ProtoLens.Tag 5, expiry__field_descriptor),+ (Data.ProtoLens.Tag 6, amtToForwardMsat__field_descriptor),+ (Data.ProtoLens.Tag 7, feeMsat__field_descriptor),+ (Data.ProtoLens.Tag 8, pubKey__field_descriptor),+ (Data.ProtoLens.Tag 9, tlvPayload__field_descriptor),+ (Data.ProtoLens.Tag 10, mppRecord__field_descriptor),+ (Data.ProtoLens.Tag 12, ampRecord__field_descriptor),+ (Data.ProtoLens.Tag 11, customRecords__field_descriptor)]+ unknownFields+ = Lens.Family2.Unchecked.lens+ _Hop'_unknownFields (\ x__ y__ -> x__ {_Hop'_unknownFields = y__})+ defMessage+ = Hop'_constructor+ {_Hop'chanId = Data.ProtoLens.fieldDefault,+ _Hop'chanCapacity = Data.ProtoLens.fieldDefault,+ _Hop'amtToForward = Data.ProtoLens.fieldDefault,+ _Hop'fee = Data.ProtoLens.fieldDefault,+ _Hop'expiry = Data.ProtoLens.fieldDefault,+ _Hop'amtToForwardMsat = Data.ProtoLens.fieldDefault,+ _Hop'feeMsat = Data.ProtoLens.fieldDefault,+ _Hop'pubKey = Data.ProtoLens.fieldDefault,+ _Hop'tlvPayload = Data.ProtoLens.fieldDefault,+ _Hop'mppRecord = Prelude.Nothing, _Hop'ampRecord = Prelude.Nothing,+ _Hop'customRecords = Data.Map.empty, _Hop'_unknownFields = []}+ parseMessage+ = let+ loop :: Hop -> Data.ProtoLens.Encoding.Bytes.Parser Hop+ loop x+ = do end <- Data.ProtoLens.Encoding.Bytes.atEnd+ if end then+ do (let missing = []+ in+ if Prelude.null missing then+ Prelude.return ()+ else+ Prelude.fail+ ((Prelude.++)+ "Missing required fields: "+ (Prelude.show (missing :: [Prelude.String]))))+ Prelude.return+ (Lens.Family2.over+ Data.ProtoLens.unknownFields (\ !t -> Prelude.reverse t) x)+ else+ do tag <- Data.ProtoLens.Encoding.Bytes.getVarInt+ case tag of+ 8 -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ Data.ProtoLens.Encoding.Bytes.getVarInt "chan_id"+ loop (Lens.Family2.set (Data.ProtoLens.Field.field @"chanId") y x)+ 16+ -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (Prelude.fmap+ Prelude.fromIntegral+ Data.ProtoLens.Encoding.Bytes.getVarInt)+ "chan_capacity"+ loop+ (Lens.Family2.set+ (Data.ProtoLens.Field.field @"chanCapacity") y x)+ 24+ -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (Prelude.fmap+ Prelude.fromIntegral+ Data.ProtoLens.Encoding.Bytes.getVarInt)+ "amt_to_forward"+ loop+ (Lens.Family2.set+ (Data.ProtoLens.Field.field @"amtToForward") y x)+ 32+ -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (Prelude.fmap+ Prelude.fromIntegral+ Data.ProtoLens.Encoding.Bytes.getVarInt)+ "fee"+ loop (Lens.Family2.set (Data.ProtoLens.Field.field @"fee") y x)+ 40+ -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (Prelude.fmap+ Prelude.fromIntegral+ Data.ProtoLens.Encoding.Bytes.getVarInt)+ "expiry"+ loop (Lens.Family2.set (Data.ProtoLens.Field.field @"expiry") y x)+ 48+ -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (Prelude.fmap+ Prelude.fromIntegral+ Data.ProtoLens.Encoding.Bytes.getVarInt)+ "amt_to_forward_msat"+ loop+ (Lens.Family2.set+ (Data.ProtoLens.Field.field @"amtToForwardMsat") y x)+ 56+ -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (Prelude.fmap+ Prelude.fromIntegral+ Data.ProtoLens.Encoding.Bytes.getVarInt)+ "fee_msat"+ loop (Lens.Family2.set (Data.ProtoLens.Field.field @"feeMsat") y x)+ 66+ -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (do value <- do len <- Data.ProtoLens.Encoding.Bytes.getVarInt+ Data.ProtoLens.Encoding.Bytes.getBytes+ (Prelude.fromIntegral len)+ Data.ProtoLens.Encoding.Bytes.runEither+ (case Data.Text.Encoding.decodeUtf8' value of+ (Prelude.Left err)+ -> Prelude.Left (Prelude.show err)+ (Prelude.Right r) -> Prelude.Right r))+ "pub_key"+ loop (Lens.Family2.set (Data.ProtoLens.Field.field @"pubKey") y x)+ 72+ -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (Prelude.fmap+ ((Prelude./=) 0) Data.ProtoLens.Encoding.Bytes.getVarInt)+ "tlv_payload"+ loop+ (Lens.Family2.set (Data.ProtoLens.Field.field @"tlvPayload") y x)+ 82+ -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (do len <- Data.ProtoLens.Encoding.Bytes.getVarInt+ Data.ProtoLens.Encoding.Bytes.isolate+ (Prelude.fromIntegral len) Data.ProtoLens.parseMessage)+ "mpp_record"+ loop+ (Lens.Family2.set (Data.ProtoLens.Field.field @"mppRecord") y x)+ 98+ -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (do len <- Data.ProtoLens.Encoding.Bytes.getVarInt+ Data.ProtoLens.Encoding.Bytes.isolate+ (Prelude.fromIntegral len) Data.ProtoLens.parseMessage)+ "amp_record"+ loop+ (Lens.Family2.set (Data.ProtoLens.Field.field @"ampRecord") y x)+ 90+ -> do !(entry :: Hop'CustomRecordsEntry) <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (do len <- Data.ProtoLens.Encoding.Bytes.getVarInt+ Data.ProtoLens.Encoding.Bytes.isolate+ (Prelude.fromIntegral+ len)+ Data.ProtoLens.parseMessage)+ "custom_records"+ (let+ key = Lens.Family2.view (Data.ProtoLens.Field.field @"key") entry+ value+ = Lens.Family2.view (Data.ProtoLens.Field.field @"value") entry+ in+ loop+ (Lens.Family2.over+ (Data.ProtoLens.Field.field @"customRecords")+ (\ !t -> Data.Map.insert key value t) x))+ wire+ -> do !y <- Data.ProtoLens.Encoding.Wire.parseTaggedValueFromWire+ wire+ loop+ (Lens.Family2.over+ Data.ProtoLens.unknownFields (\ !t -> (:) y t) x)+ in+ (Data.ProtoLens.Encoding.Bytes.<?>)+ (do loop Data.ProtoLens.defMessage) "Hop"+ buildMessage+ = \ _x+ -> (Data.Monoid.<>)+ (let+ _v = Lens.Family2.view (Data.ProtoLens.Field.field @"chanId") _x+ in+ if (Prelude.==) _v Data.ProtoLens.fieldDefault then+ Data.Monoid.mempty+ else+ (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 8)+ (Data.ProtoLens.Encoding.Bytes.putVarInt _v))+ ((Data.Monoid.<>)+ (let+ _v+ = Lens.Family2.view (Data.ProtoLens.Field.field @"chanCapacity") _x+ in+ if (Prelude.==) _v Data.ProtoLens.fieldDefault then+ Data.Monoid.mempty+ else+ (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 16)+ ((Prelude..)+ Data.ProtoLens.Encoding.Bytes.putVarInt Prelude.fromIntegral _v))+ ((Data.Monoid.<>)+ (let+ _v+ = Lens.Family2.view (Data.ProtoLens.Field.field @"amtToForward") _x+ in+ if (Prelude.==) _v Data.ProtoLens.fieldDefault then+ Data.Monoid.mempty+ else+ (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 24)+ ((Prelude..)+ Data.ProtoLens.Encoding.Bytes.putVarInt Prelude.fromIntegral _v))+ ((Data.Monoid.<>)+ (let _v = Lens.Family2.view (Data.ProtoLens.Field.field @"fee") _x+ in+ if (Prelude.==) _v Data.ProtoLens.fieldDefault then+ Data.Monoid.mempty+ else+ (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 32)+ ((Prelude..)+ Data.ProtoLens.Encoding.Bytes.putVarInt Prelude.fromIntegral _v))+ ((Data.Monoid.<>)+ (let+ _v = Lens.Family2.view (Data.ProtoLens.Field.field @"expiry") _x+ in+ if (Prelude.==) _v Data.ProtoLens.fieldDefault then+ Data.Monoid.mempty+ else+ (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 40)+ ((Prelude..)+ Data.ProtoLens.Encoding.Bytes.putVarInt Prelude.fromIntegral+ _v))+ ((Data.Monoid.<>)+ (let+ _v+ = Lens.Family2.view+ (Data.ProtoLens.Field.field @"amtToForwardMsat") _x+ in+ if (Prelude.==) _v Data.ProtoLens.fieldDefault then+ Data.Monoid.mempty+ else+ (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 48)+ ((Prelude..)+ Data.ProtoLens.Encoding.Bytes.putVarInt Prelude.fromIntegral+ _v))+ ((Data.Monoid.<>)+ (let+ _v = Lens.Family2.view (Data.ProtoLens.Field.field @"feeMsat") _x+ in+ if (Prelude.==) _v Data.ProtoLens.fieldDefault then+ Data.Monoid.mempty+ else+ (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 56)+ ((Prelude..)+ Data.ProtoLens.Encoding.Bytes.putVarInt+ Prelude.fromIntegral _v))+ ((Data.Monoid.<>)+ (let+ _v+ = Lens.Family2.view (Data.ProtoLens.Field.field @"pubKey") _x+ in+ if (Prelude.==) _v Data.ProtoLens.fieldDefault then+ Data.Monoid.mempty+ else+ (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 66)+ ((Prelude..)+ (\ bs+ -> (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt+ (Prelude.fromIntegral+ (Data.ByteString.length bs)))+ (Data.ProtoLens.Encoding.Bytes.putBytes bs))+ Data.Text.Encoding.encodeUtf8 _v))+ ((Data.Monoid.<>)+ (let+ _v+ = Lens.Family2.view+ (Data.ProtoLens.Field.field @"tlvPayload") _x+ in+ if (Prelude.==) _v Data.ProtoLens.fieldDefault then+ Data.Monoid.mempty+ else+ (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 72)+ ((Prelude..)+ Data.ProtoLens.Encoding.Bytes.putVarInt+ (\ b -> if b then 1 else 0) _v))+ ((Data.Monoid.<>)+ (case+ Lens.Family2.view+ (Data.ProtoLens.Field.field @"maybe'mppRecord") _x+ of+ Prelude.Nothing -> Data.Monoid.mempty+ (Prelude.Just _v)+ -> (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 82)+ ((Prelude..)+ (\ bs+ -> (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt+ (Prelude.fromIntegral+ (Data.ByteString.length bs)))+ (Data.ProtoLens.Encoding.Bytes.putBytes+ bs))+ Data.ProtoLens.encodeMessage _v))+ ((Data.Monoid.<>)+ (case+ Lens.Family2.view+ (Data.ProtoLens.Field.field @"maybe'ampRecord") _x+ of+ Prelude.Nothing -> Data.Monoid.mempty+ (Prelude.Just _v)+ -> (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 98)+ ((Prelude..)+ (\ bs+ -> (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt+ (Prelude.fromIntegral+ (Data.ByteString.length bs)))+ (Data.ProtoLens.Encoding.Bytes.putBytes+ bs))+ Data.ProtoLens.encodeMessage _v))+ ((Data.Monoid.<>)+ (Data.Monoid.mconcat+ (Prelude.map+ (\ _v+ -> (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt+ 90)+ ((Prelude..)+ (\ bs+ -> (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt+ (Prelude.fromIntegral+ (Data.ByteString.length+ bs)))+ (Data.ProtoLens.Encoding.Bytes.putBytes+ bs))+ Data.ProtoLens.encodeMessage+ (Lens.Family2.set+ (Data.ProtoLens.Field.field+ @"key")+ (Prelude.fst _v)+ (Lens.Family2.set+ (Data.ProtoLens.Field.field+ @"value")+ (Prelude.snd _v)+ (Data.ProtoLens.defMessage ::+ Hop'CustomRecordsEntry)))))+ (Data.Map.toList+ (Lens.Family2.view+ (Data.ProtoLens.Field.field+ @"customRecords")+ _x))))+ (Data.ProtoLens.Encoding.Wire.buildFieldSet+ (Lens.Family2.view+ Data.ProtoLens.unknownFields _x)))))))))))))+instance Control.DeepSeq.NFData Hop where+ rnf+ = \ x__+ -> Control.DeepSeq.deepseq+ (_Hop'_unknownFields x__)+ (Control.DeepSeq.deepseq+ (_Hop'chanId x__)+ (Control.DeepSeq.deepseq+ (_Hop'chanCapacity x__)+ (Control.DeepSeq.deepseq+ (_Hop'amtToForward x__)+ (Control.DeepSeq.deepseq+ (_Hop'fee x__)+ (Control.DeepSeq.deepseq+ (_Hop'expiry x__)+ (Control.DeepSeq.deepseq+ (_Hop'amtToForwardMsat x__)+ (Control.DeepSeq.deepseq+ (_Hop'feeMsat x__)+ (Control.DeepSeq.deepseq+ (_Hop'pubKey x__)+ (Control.DeepSeq.deepseq+ (_Hop'tlvPayload x__)+ (Control.DeepSeq.deepseq+ (_Hop'mppRecord x__)+ (Control.DeepSeq.deepseq+ (_Hop'ampRecord x__)+ (Control.DeepSeq.deepseq+ (_Hop'customRecords x__) ()))))))))))))+{- | Fields :+ + * 'Proto.Lnrpc.Ln0_Fields.key' @:: Lens' Hop'CustomRecordsEntry Data.Word.Word64@+ * 'Proto.Lnrpc.Ln0_Fields.value' @:: Lens' Hop'CustomRecordsEntry Data.ByteString.ByteString@ -}+data Hop'CustomRecordsEntry+ = Hop'CustomRecordsEntry'_constructor {_Hop'CustomRecordsEntry'key :: !Data.Word.Word64,+ _Hop'CustomRecordsEntry'value :: !Data.ByteString.ByteString,+ _Hop'CustomRecordsEntry'_unknownFields :: !Data.ProtoLens.FieldSet}+ deriving stock (Prelude.Eq, Prelude.Ord, GHC.Generics.Generic)+instance Prelude.Show Hop'CustomRecordsEntry where+ showsPrec _ __x __s+ = Prelude.showChar+ '{'+ (Prelude.showString+ (Data.ProtoLens.showMessageShort __x) (Prelude.showChar '}' __s))+instance Text.PrettyPrint.GenericPretty.Out Hop'CustomRecordsEntry+instance Data.ProtoLens.Field.HasField Hop'CustomRecordsEntry "key" Data.Word.Word64 where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _Hop'CustomRecordsEntry'key+ (\ x__ y__ -> x__ {_Hop'CustomRecordsEntry'key = y__}))+ Prelude.id+instance Data.ProtoLens.Field.HasField Hop'CustomRecordsEntry "value" Data.ByteString.ByteString where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _Hop'CustomRecordsEntry'value+ (\ x__ y__ -> x__ {_Hop'CustomRecordsEntry'value = y__}))+ Prelude.id+instance Data.ProtoLens.Message Hop'CustomRecordsEntry where+ messageName _ = Data.Text.pack "lnrpc.Hop.CustomRecordsEntry"+ packedMessageDescriptor _+ = "\n\+ \\DC2CustomRecordsEntry\DC2\DLE\n\+ \\ETXkey\CAN\SOH \SOH(\EOTR\ETXkey\DC2\DC4\n\+ \\ENQvalue\CAN\STX \SOH(\fR\ENQvalue:\STX8\SOH"+ packedFileDescriptor _ = packedFileDescriptor+ fieldsByTag+ = let+ key__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "key"+ (Data.ProtoLens.ScalarField Data.ProtoLens.UInt64Field ::+ Data.ProtoLens.FieldTypeDescriptor Data.Word.Word64)+ (Data.ProtoLens.PlainField+ Data.ProtoLens.Optional (Data.ProtoLens.Field.field @"key")) ::+ Data.ProtoLens.FieldDescriptor Hop'CustomRecordsEntry+ value__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "value"+ (Data.ProtoLens.ScalarField Data.ProtoLens.BytesField ::+ Data.ProtoLens.FieldTypeDescriptor Data.ByteString.ByteString)+ (Data.ProtoLens.PlainField+ Data.ProtoLens.Optional (Data.ProtoLens.Field.field @"value")) ::+ Data.ProtoLens.FieldDescriptor Hop'CustomRecordsEntry+ in+ Data.Map.fromList+ [(Data.ProtoLens.Tag 1, key__field_descriptor),+ (Data.ProtoLens.Tag 2, value__field_descriptor)]+ unknownFields+ = Lens.Family2.Unchecked.lens+ _Hop'CustomRecordsEntry'_unknownFields+ (\ x__ y__ -> x__ {_Hop'CustomRecordsEntry'_unknownFields = y__})+ defMessage+ = Hop'CustomRecordsEntry'_constructor+ {_Hop'CustomRecordsEntry'key = Data.ProtoLens.fieldDefault,+ _Hop'CustomRecordsEntry'value = Data.ProtoLens.fieldDefault,+ _Hop'CustomRecordsEntry'_unknownFields = []}+ parseMessage+ = let+ loop ::+ Hop'CustomRecordsEntry+ -> Data.ProtoLens.Encoding.Bytes.Parser Hop'CustomRecordsEntry+ loop x+ = do end <- Data.ProtoLens.Encoding.Bytes.atEnd+ if end then+ do (let missing = []+ in+ if Prelude.null missing then+ Prelude.return ()+ else+ Prelude.fail+ ((Prelude.++)+ "Missing required fields: "+ (Prelude.show (missing :: [Prelude.String]))))+ Prelude.return+ (Lens.Family2.over+ Data.ProtoLens.unknownFields (\ !t -> Prelude.reverse t) x)+ else+ do tag <- Data.ProtoLens.Encoding.Bytes.getVarInt+ case tag of+ 8 -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ Data.ProtoLens.Encoding.Bytes.getVarInt "key"+ loop (Lens.Family2.set (Data.ProtoLens.Field.field @"key") y x)+ 18+ -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (do len <- Data.ProtoLens.Encoding.Bytes.getVarInt+ Data.ProtoLens.Encoding.Bytes.getBytes+ (Prelude.fromIntegral len))+ "value"+ loop (Lens.Family2.set (Data.ProtoLens.Field.field @"value") y x)+ wire+ -> do !y <- Data.ProtoLens.Encoding.Wire.parseTaggedValueFromWire+ wire+ loop+ (Lens.Family2.over+ Data.ProtoLens.unknownFields (\ !t -> (:) y t) x)+ in+ (Data.ProtoLens.Encoding.Bytes.<?>)+ (do loop Data.ProtoLens.defMessage) "CustomRecordsEntry"+ buildMessage+ = \ _x+ -> (Data.Monoid.<>)+ (let _v = Lens.Family2.view (Data.ProtoLens.Field.field @"key") _x+ in+ if (Prelude.==) _v Data.ProtoLens.fieldDefault then+ Data.Monoid.mempty+ else+ (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 8)+ (Data.ProtoLens.Encoding.Bytes.putVarInt _v))+ ((Data.Monoid.<>)+ (let+ _v = Lens.Family2.view (Data.ProtoLens.Field.field @"value") _x+ in+ if (Prelude.==) _v Data.ProtoLens.fieldDefault then+ Data.Monoid.mempty+ else+ (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 18)+ ((\ bs+ -> (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt+ (Prelude.fromIntegral (Data.ByteString.length bs)))+ (Data.ProtoLens.Encoding.Bytes.putBytes bs))+ _v))+ (Data.ProtoLens.Encoding.Wire.buildFieldSet+ (Lens.Family2.view Data.ProtoLens.unknownFields _x)))+instance Control.DeepSeq.NFData Hop'CustomRecordsEntry where+ rnf+ = \ x__+ -> Control.DeepSeq.deepseq+ (_Hop'CustomRecordsEntry'_unknownFields x__)+ (Control.DeepSeq.deepseq+ (_Hop'CustomRecordsEntry'key x__)+ (Control.DeepSeq.deepseq (_Hop'CustomRecordsEntry'value x__) ()))+{- | Fields :+ + * 'Proto.Lnrpc.Ln0_Fields.nodeId' @:: Lens' HopHint Data.Text.Text@+ * 'Proto.Lnrpc.Ln0_Fields.chanId' @:: Lens' HopHint Data.Word.Word64@+ * 'Proto.Lnrpc.Ln0_Fields.feeBaseMsat' @:: Lens' HopHint Data.Word.Word32@+ * 'Proto.Lnrpc.Ln0_Fields.feeProportionalMillionths' @:: Lens' HopHint Data.Word.Word32@+ * 'Proto.Lnrpc.Ln0_Fields.cltvExpiryDelta' @:: Lens' HopHint Data.Word.Word32@ -}+data HopHint+ = HopHint'_constructor {_HopHint'nodeId :: !Data.Text.Text,+ _HopHint'chanId :: !Data.Word.Word64,+ _HopHint'feeBaseMsat :: !Data.Word.Word32,+ _HopHint'feeProportionalMillionths :: !Data.Word.Word32,+ _HopHint'cltvExpiryDelta :: !Data.Word.Word32,+ _HopHint'_unknownFields :: !Data.ProtoLens.FieldSet}+ deriving stock (Prelude.Eq, Prelude.Ord, GHC.Generics.Generic)+instance Prelude.Show HopHint where+ showsPrec _ __x __s+ = Prelude.showChar+ '{'+ (Prelude.showString+ (Data.ProtoLens.showMessageShort __x) (Prelude.showChar '}' __s))+instance Text.PrettyPrint.GenericPretty.Out HopHint+instance Data.ProtoLens.Field.HasField HopHint "nodeId" Data.Text.Text where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _HopHint'nodeId (\ x__ y__ -> x__ {_HopHint'nodeId = y__}))+ Prelude.id+instance Data.ProtoLens.Field.HasField HopHint "chanId" Data.Word.Word64 where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _HopHint'chanId (\ x__ y__ -> x__ {_HopHint'chanId = y__}))+ Prelude.id+instance Data.ProtoLens.Field.HasField HopHint "feeBaseMsat" Data.Word.Word32 where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _HopHint'feeBaseMsat+ (\ x__ y__ -> x__ {_HopHint'feeBaseMsat = y__}))+ Prelude.id+instance Data.ProtoLens.Field.HasField HopHint "feeProportionalMillionths" Data.Word.Word32 where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _HopHint'feeProportionalMillionths+ (\ x__ y__ -> x__ {_HopHint'feeProportionalMillionths = y__}))+ Prelude.id+instance Data.ProtoLens.Field.HasField HopHint "cltvExpiryDelta" Data.Word.Word32 where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _HopHint'cltvExpiryDelta+ (\ x__ y__ -> x__ {_HopHint'cltvExpiryDelta = y__}))+ Prelude.id+instance Data.ProtoLens.Message HopHint where+ messageName _ = Data.Text.pack "lnrpc.HopHint"+ packedMessageDescriptor _+ = "\n\+ \\aHopHint\DC2\ETB\n\+ \\anode_id\CAN\SOH \SOH(\tR\ACKnodeId\DC2\ESC\n\+ \\achan_id\CAN\STX \SOH(\EOTR\ACKchanIdB\STX0\SOH\DC2\"\n\+ \\rfee_base_msat\CAN\ETX \SOH(\rR\vfeeBaseMsat\DC2>\n\+ \\ESCfee_proportional_millionths\CAN\EOT \SOH(\rR\EMfeeProportionalMillionths\DC2*\n\+ \\DC1cltv_expiry_delta\CAN\ENQ \SOH(\rR\SIcltvExpiryDelta"+ packedFileDescriptor _ = packedFileDescriptor+ fieldsByTag+ = let+ nodeId__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "node_id"+ (Data.ProtoLens.ScalarField Data.ProtoLens.StringField ::+ Data.ProtoLens.FieldTypeDescriptor Data.Text.Text)+ (Data.ProtoLens.PlainField+ Data.ProtoLens.Optional (Data.ProtoLens.Field.field @"nodeId")) ::+ Data.ProtoLens.FieldDescriptor HopHint+ chanId__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "chan_id"+ (Data.ProtoLens.ScalarField Data.ProtoLens.UInt64Field ::+ Data.ProtoLens.FieldTypeDescriptor Data.Word.Word64)+ (Data.ProtoLens.PlainField+ Data.ProtoLens.Optional (Data.ProtoLens.Field.field @"chanId")) ::+ Data.ProtoLens.FieldDescriptor HopHint+ feeBaseMsat__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "fee_base_msat"+ (Data.ProtoLens.ScalarField Data.ProtoLens.UInt32Field ::+ Data.ProtoLens.FieldTypeDescriptor Data.Word.Word32)+ (Data.ProtoLens.PlainField+ Data.ProtoLens.Optional+ (Data.ProtoLens.Field.field @"feeBaseMsat")) ::+ Data.ProtoLens.FieldDescriptor HopHint+ feeProportionalMillionths__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "fee_proportional_millionths"+ (Data.ProtoLens.ScalarField Data.ProtoLens.UInt32Field ::+ Data.ProtoLens.FieldTypeDescriptor Data.Word.Word32)+ (Data.ProtoLens.PlainField+ Data.ProtoLens.Optional+ (Data.ProtoLens.Field.field @"feeProportionalMillionths")) ::+ Data.ProtoLens.FieldDescriptor HopHint+ cltvExpiryDelta__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "cltv_expiry_delta"+ (Data.ProtoLens.ScalarField Data.ProtoLens.UInt32Field ::+ Data.ProtoLens.FieldTypeDescriptor Data.Word.Word32)+ (Data.ProtoLens.PlainField+ Data.ProtoLens.Optional+ (Data.ProtoLens.Field.field @"cltvExpiryDelta")) ::+ Data.ProtoLens.FieldDescriptor HopHint+ in+ Data.Map.fromList+ [(Data.ProtoLens.Tag 1, nodeId__field_descriptor),+ (Data.ProtoLens.Tag 2, chanId__field_descriptor),+ (Data.ProtoLens.Tag 3, feeBaseMsat__field_descriptor),+ (Data.ProtoLens.Tag 4, + feeProportionalMillionths__field_descriptor),+ (Data.ProtoLens.Tag 5, cltvExpiryDelta__field_descriptor)]+ unknownFields+ = Lens.Family2.Unchecked.lens+ _HopHint'_unknownFields+ (\ x__ y__ -> x__ {_HopHint'_unknownFields = y__})+ defMessage+ = HopHint'_constructor+ {_HopHint'nodeId = Data.ProtoLens.fieldDefault,+ _HopHint'chanId = Data.ProtoLens.fieldDefault,+ _HopHint'feeBaseMsat = Data.ProtoLens.fieldDefault,+ _HopHint'feeProportionalMillionths = Data.ProtoLens.fieldDefault,+ _HopHint'cltvExpiryDelta = Data.ProtoLens.fieldDefault,+ _HopHint'_unknownFields = []}+ parseMessage+ = let+ loop :: HopHint -> Data.ProtoLens.Encoding.Bytes.Parser HopHint+ loop x+ = do end <- Data.ProtoLens.Encoding.Bytes.atEnd+ if end then+ do (let missing = []+ in+ if Prelude.null missing then+ Prelude.return ()+ else+ Prelude.fail+ ((Prelude.++)+ "Missing required fields: "+ (Prelude.show (missing :: [Prelude.String]))))+ Prelude.return+ (Lens.Family2.over+ Data.ProtoLens.unknownFields (\ !t -> Prelude.reverse t) x)+ else+ do tag <- Data.ProtoLens.Encoding.Bytes.getVarInt+ case tag of+ 10+ -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (do value <- do len <- Data.ProtoLens.Encoding.Bytes.getVarInt+ Data.ProtoLens.Encoding.Bytes.getBytes+ (Prelude.fromIntegral len)+ Data.ProtoLens.Encoding.Bytes.runEither+ (case Data.Text.Encoding.decodeUtf8' value of+ (Prelude.Left err)+ -> Prelude.Left (Prelude.show err)+ (Prelude.Right r) -> Prelude.Right r))+ "node_id"+ loop (Lens.Family2.set (Data.ProtoLens.Field.field @"nodeId") y x)+ 16+ -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ Data.ProtoLens.Encoding.Bytes.getVarInt "chan_id"+ loop (Lens.Family2.set (Data.ProtoLens.Field.field @"chanId") y x)+ 24+ -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (Prelude.fmap+ Prelude.fromIntegral+ Data.ProtoLens.Encoding.Bytes.getVarInt)+ "fee_base_msat"+ loop+ (Lens.Family2.set (Data.ProtoLens.Field.field @"feeBaseMsat") y x)+ 32+ -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (Prelude.fmap+ Prelude.fromIntegral+ Data.ProtoLens.Encoding.Bytes.getVarInt)+ "fee_proportional_millionths"+ loop+ (Lens.Family2.set+ (Data.ProtoLens.Field.field @"feeProportionalMillionths") y x)+ 40+ -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (Prelude.fmap+ Prelude.fromIntegral+ Data.ProtoLens.Encoding.Bytes.getVarInt)+ "cltv_expiry_delta"+ loop+ (Lens.Family2.set+ (Data.ProtoLens.Field.field @"cltvExpiryDelta") y x)+ wire+ -> do !y <- Data.ProtoLens.Encoding.Wire.parseTaggedValueFromWire+ wire+ loop+ (Lens.Family2.over+ Data.ProtoLens.unknownFields (\ !t -> (:) y t) x)+ in+ (Data.ProtoLens.Encoding.Bytes.<?>)+ (do loop Data.ProtoLens.defMessage) "HopHint"+ buildMessage+ = \ _x+ -> (Data.Monoid.<>)+ (let+ _v = Lens.Family2.view (Data.ProtoLens.Field.field @"nodeId") _x+ in+ if (Prelude.==) _v Data.ProtoLens.fieldDefault then+ Data.Monoid.mempty+ else+ (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 10)+ ((Prelude..)+ (\ bs+ -> (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt+ (Prelude.fromIntegral (Data.ByteString.length bs)))+ (Data.ProtoLens.Encoding.Bytes.putBytes bs))+ Data.Text.Encoding.encodeUtf8 _v))+ ((Data.Monoid.<>)+ (let+ _v = Lens.Family2.view (Data.ProtoLens.Field.field @"chanId") _x+ in+ if (Prelude.==) _v Data.ProtoLens.fieldDefault then+ Data.Monoid.mempty+ else+ (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 16)+ (Data.ProtoLens.Encoding.Bytes.putVarInt _v))+ ((Data.Monoid.<>)+ (let+ _v+ = Lens.Family2.view (Data.ProtoLens.Field.field @"feeBaseMsat") _x+ in+ if (Prelude.==) _v Data.ProtoLens.fieldDefault then+ Data.Monoid.mempty+ else+ (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 24)+ ((Prelude..)+ Data.ProtoLens.Encoding.Bytes.putVarInt Prelude.fromIntegral _v))+ ((Data.Monoid.<>)+ (let+ _v+ = Lens.Family2.view+ (Data.ProtoLens.Field.field @"feeProportionalMillionths") _x+ in+ if (Prelude.==) _v Data.ProtoLens.fieldDefault then+ Data.Monoid.mempty+ else+ (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 32)+ ((Prelude..)+ Data.ProtoLens.Encoding.Bytes.putVarInt Prelude.fromIntegral _v))+ ((Data.Monoid.<>)+ (let+ _v+ = Lens.Family2.view+ (Data.ProtoLens.Field.field @"cltvExpiryDelta") _x+ in+ if (Prelude.==) _v Data.ProtoLens.fieldDefault then+ Data.Monoid.mempty+ else+ (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 40)+ ((Prelude..)+ Data.ProtoLens.Encoding.Bytes.putVarInt Prelude.fromIntegral+ _v))+ (Data.ProtoLens.Encoding.Wire.buildFieldSet+ (Lens.Family2.view Data.ProtoLens.unknownFields _x))))))+instance Control.DeepSeq.NFData HopHint where+ rnf+ = \ x__+ -> Control.DeepSeq.deepseq+ (_HopHint'_unknownFields x__)+ (Control.DeepSeq.deepseq+ (_HopHint'nodeId x__)+ (Control.DeepSeq.deepseq+ (_HopHint'chanId x__)+ (Control.DeepSeq.deepseq+ (_HopHint'feeBaseMsat x__)+ (Control.DeepSeq.deepseq+ (_HopHint'feeProportionalMillionths x__)+ (Control.DeepSeq.deepseq (_HopHint'cltvExpiryDelta x__) ())))))+newtype Initiator'UnrecognizedValue+ = Initiator'UnrecognizedValue Data.Int.Int32+ deriving stock (Prelude.Eq,+ Prelude.Ord,+ Prelude.Show,+ GHC.Generics.Generic)+instance Text.PrettyPrint.GenericPretty.Out Initiator'UnrecognizedValue+data Initiator+ = INITIATOR_UNKNOWN |+ INITIATOR_LOCAL |+ INITIATOR_REMOTE |+ INITIATOR_BOTH |+ Initiator'Unrecognized !Initiator'UnrecognizedValue+ deriving stock (Prelude.Show,+ Prelude.Eq,+ Prelude.Ord,+ GHC.Generics.Generic)+instance Data.ProtoLens.MessageEnum Initiator where+ maybeToEnum 0 = Prelude.Just INITIATOR_UNKNOWN+ maybeToEnum 1 = Prelude.Just INITIATOR_LOCAL+ maybeToEnum 2 = Prelude.Just INITIATOR_REMOTE+ maybeToEnum 3 = Prelude.Just INITIATOR_BOTH+ maybeToEnum k+ = Prelude.Just+ (Initiator'Unrecognized+ (Initiator'UnrecognizedValue (Prelude.fromIntegral k)))+ showEnum INITIATOR_UNKNOWN = "INITIATOR_UNKNOWN"+ showEnum INITIATOR_LOCAL = "INITIATOR_LOCAL"+ showEnum INITIATOR_REMOTE = "INITIATOR_REMOTE"+ showEnum INITIATOR_BOTH = "INITIATOR_BOTH"+ showEnum (Initiator'Unrecognized (Initiator'UnrecognizedValue k))+ = Prelude.show k+ readEnum k+ | (Prelude.==) k "INITIATOR_UNKNOWN"+ = Prelude.Just INITIATOR_UNKNOWN+ | (Prelude.==) k "INITIATOR_LOCAL" = Prelude.Just INITIATOR_LOCAL+ | (Prelude.==) k "INITIATOR_REMOTE" = Prelude.Just INITIATOR_REMOTE+ | (Prelude.==) k "INITIATOR_BOTH" = Prelude.Just INITIATOR_BOTH+ | Prelude.otherwise+ = (Prelude.>>=) (Text.Read.readMaybe k) Data.ProtoLens.maybeToEnum+instance Prelude.Bounded Initiator where+ minBound = INITIATOR_UNKNOWN+ maxBound = INITIATOR_BOTH+instance Prelude.Enum Initiator where+ toEnum k__+ = Prelude.maybe+ (Prelude.error+ ((Prelude.++)+ "toEnum: unknown value for enum Initiator: " (Prelude.show k__)))+ Prelude.id (Data.ProtoLens.maybeToEnum k__)+ fromEnum INITIATOR_UNKNOWN = 0+ fromEnum INITIATOR_LOCAL = 1+ fromEnum INITIATOR_REMOTE = 2+ fromEnum INITIATOR_BOTH = 3+ fromEnum (Initiator'Unrecognized (Initiator'UnrecognizedValue k))+ = Prelude.fromIntegral k+ succ INITIATOR_BOTH+ = Prelude.error+ "Initiator.succ: bad argument INITIATOR_BOTH. This value would be out of bounds."+ succ INITIATOR_UNKNOWN = INITIATOR_LOCAL+ succ INITIATOR_LOCAL = INITIATOR_REMOTE+ succ INITIATOR_REMOTE = INITIATOR_BOTH+ succ (Initiator'Unrecognized _)+ = Prelude.error "Initiator.succ: bad argument: unrecognized value"+ pred INITIATOR_UNKNOWN+ = Prelude.error+ "Initiator.pred: bad argument INITIATOR_UNKNOWN. This value would be out of bounds."+ pred INITIATOR_LOCAL = INITIATOR_UNKNOWN+ pred INITIATOR_REMOTE = INITIATOR_LOCAL+ pred INITIATOR_BOTH = INITIATOR_REMOTE+ pred (Initiator'Unrecognized _)+ = Prelude.error "Initiator.pred: bad argument: unrecognized value"+ enumFrom = Data.ProtoLens.Message.Enum.messageEnumFrom+ enumFromTo = Data.ProtoLens.Message.Enum.messageEnumFromTo+ enumFromThen = Data.ProtoLens.Message.Enum.messageEnumFromThen+ enumFromThenTo = Data.ProtoLens.Message.Enum.messageEnumFromThenTo+instance Data.ProtoLens.FieldDefault Initiator where+ fieldDefault = INITIATOR_UNKNOWN+instance Control.DeepSeq.NFData Initiator where+ rnf x__ = Prelude.seq x__ ()+instance Text.PrettyPrint.GenericPretty.Out Initiator+{- | Fields :+ + * 'Proto.Lnrpc.Ln0_Fields.rawKeyBytes' @:: Lens' KeyDescriptor Data.ByteString.ByteString@+ * 'Proto.Lnrpc.Ln0_Fields.keyLoc' @:: Lens' KeyDescriptor KeyLocator@+ * 'Proto.Lnrpc.Ln0_Fields.maybe'keyLoc' @:: Lens' KeyDescriptor (Prelude.Maybe KeyLocator)@ -}+data KeyDescriptor+ = KeyDescriptor'_constructor {_KeyDescriptor'rawKeyBytes :: !Data.ByteString.ByteString,+ _KeyDescriptor'keyLoc :: !(Prelude.Maybe KeyLocator),+ _KeyDescriptor'_unknownFields :: !Data.ProtoLens.FieldSet}+ deriving stock (Prelude.Eq, Prelude.Ord, GHC.Generics.Generic)+instance Prelude.Show KeyDescriptor where+ showsPrec _ __x __s+ = Prelude.showChar+ '{'+ (Prelude.showString+ (Data.ProtoLens.showMessageShort __x) (Prelude.showChar '}' __s))+instance Text.PrettyPrint.GenericPretty.Out KeyDescriptor+instance Data.ProtoLens.Field.HasField KeyDescriptor "rawKeyBytes" Data.ByteString.ByteString where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _KeyDescriptor'rawKeyBytes+ (\ x__ y__ -> x__ {_KeyDescriptor'rawKeyBytes = y__}))+ Prelude.id+instance Data.ProtoLens.Field.HasField KeyDescriptor "keyLoc" KeyLocator where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _KeyDescriptor'keyLoc+ (\ x__ y__ -> x__ {_KeyDescriptor'keyLoc = y__}))+ (Data.ProtoLens.maybeLens Data.ProtoLens.defMessage)+instance Data.ProtoLens.Field.HasField KeyDescriptor "maybe'keyLoc" (Prelude.Maybe KeyLocator) where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _KeyDescriptor'keyLoc+ (\ x__ y__ -> x__ {_KeyDescriptor'keyLoc = y__}))+ Prelude.id+instance Data.ProtoLens.Message KeyDescriptor where+ messageName _ = Data.Text.pack "lnrpc.KeyDescriptor"+ packedMessageDescriptor _+ = "\n\+ \\rKeyDescriptor\DC2\"\n\+ \\rraw_key_bytes\CAN\SOH \SOH(\fR\vrawKeyBytes\DC2*\n\+ \\akey_loc\CAN\STX \SOH(\v2\DC1.lnrpc.KeyLocatorR\ACKkeyLoc"+ packedFileDescriptor _ = packedFileDescriptor+ fieldsByTag+ = let+ rawKeyBytes__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "raw_key_bytes"+ (Data.ProtoLens.ScalarField Data.ProtoLens.BytesField ::+ Data.ProtoLens.FieldTypeDescriptor Data.ByteString.ByteString)+ (Data.ProtoLens.PlainField+ Data.ProtoLens.Optional+ (Data.ProtoLens.Field.field @"rawKeyBytes")) ::+ Data.ProtoLens.FieldDescriptor KeyDescriptor+ keyLoc__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "key_loc"+ (Data.ProtoLens.MessageField Data.ProtoLens.MessageType ::+ Data.ProtoLens.FieldTypeDescriptor KeyLocator)+ (Data.ProtoLens.OptionalField+ (Data.ProtoLens.Field.field @"maybe'keyLoc")) ::+ Data.ProtoLens.FieldDescriptor KeyDescriptor+ in+ Data.Map.fromList+ [(Data.ProtoLens.Tag 1, rawKeyBytes__field_descriptor),+ (Data.ProtoLens.Tag 2, keyLoc__field_descriptor)]+ unknownFields+ = Lens.Family2.Unchecked.lens+ _KeyDescriptor'_unknownFields+ (\ x__ y__ -> x__ {_KeyDescriptor'_unknownFields = y__})+ defMessage+ = KeyDescriptor'_constructor+ {_KeyDescriptor'rawKeyBytes = Data.ProtoLens.fieldDefault,+ _KeyDescriptor'keyLoc = Prelude.Nothing,+ _KeyDescriptor'_unknownFields = []}+ parseMessage+ = let+ loop ::+ KeyDescriptor -> Data.ProtoLens.Encoding.Bytes.Parser KeyDescriptor+ loop x+ = do end <- Data.ProtoLens.Encoding.Bytes.atEnd+ if end then+ do (let missing = []+ in+ if Prelude.null missing then+ Prelude.return ()+ else+ Prelude.fail+ ((Prelude.++)+ "Missing required fields: "+ (Prelude.show (missing :: [Prelude.String]))))+ Prelude.return+ (Lens.Family2.over+ Data.ProtoLens.unknownFields (\ !t -> Prelude.reverse t) x)+ else+ do tag <- Data.ProtoLens.Encoding.Bytes.getVarInt+ case tag of+ 10+ -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (do len <- Data.ProtoLens.Encoding.Bytes.getVarInt+ Data.ProtoLens.Encoding.Bytes.getBytes+ (Prelude.fromIntegral len))+ "raw_key_bytes"+ loop+ (Lens.Family2.set (Data.ProtoLens.Field.field @"rawKeyBytes") y x)+ 18+ -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (do len <- Data.ProtoLens.Encoding.Bytes.getVarInt+ Data.ProtoLens.Encoding.Bytes.isolate+ (Prelude.fromIntegral len) Data.ProtoLens.parseMessage)+ "key_loc"+ loop (Lens.Family2.set (Data.ProtoLens.Field.field @"keyLoc") y x)+ wire+ -> do !y <- Data.ProtoLens.Encoding.Wire.parseTaggedValueFromWire+ wire+ loop+ (Lens.Family2.over+ Data.ProtoLens.unknownFields (\ !t -> (:) y t) x)+ in+ (Data.ProtoLens.Encoding.Bytes.<?>)+ (do loop Data.ProtoLens.defMessage) "KeyDescriptor"+ buildMessage+ = \ _x+ -> (Data.Monoid.<>)+ (let+ _v+ = Lens.Family2.view (Data.ProtoLens.Field.field @"rawKeyBytes") _x+ in+ if (Prelude.==) _v Data.ProtoLens.fieldDefault then+ Data.Monoid.mempty+ else+ (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 10)+ ((\ bs+ -> (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt+ (Prelude.fromIntegral (Data.ByteString.length bs)))+ (Data.ProtoLens.Encoding.Bytes.putBytes bs))+ _v))+ ((Data.Monoid.<>)+ (case+ Lens.Family2.view (Data.ProtoLens.Field.field @"maybe'keyLoc") _x+ of+ Prelude.Nothing -> Data.Monoid.mempty+ (Prelude.Just _v)+ -> (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 18)+ ((Prelude..)+ (\ bs+ -> (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt+ (Prelude.fromIntegral (Data.ByteString.length bs)))+ (Data.ProtoLens.Encoding.Bytes.putBytes bs))+ Data.ProtoLens.encodeMessage _v))+ (Data.ProtoLens.Encoding.Wire.buildFieldSet+ (Lens.Family2.view Data.ProtoLens.unknownFields _x)))+instance Control.DeepSeq.NFData KeyDescriptor where+ rnf+ = \ x__+ -> Control.DeepSeq.deepseq+ (_KeyDescriptor'_unknownFields x__)+ (Control.DeepSeq.deepseq+ (_KeyDescriptor'rawKeyBytes x__)+ (Control.DeepSeq.deepseq (_KeyDescriptor'keyLoc x__) ()))+{- | Fields :+ + * 'Proto.Lnrpc.Ln0_Fields.keyFamily' @:: Lens' KeyLocator Data.Int.Int32@+ * 'Proto.Lnrpc.Ln0_Fields.keyIndex' @:: Lens' KeyLocator Data.Int.Int32@ -}+data KeyLocator+ = KeyLocator'_constructor {_KeyLocator'keyFamily :: !Data.Int.Int32,+ _KeyLocator'keyIndex :: !Data.Int.Int32,+ _KeyLocator'_unknownFields :: !Data.ProtoLens.FieldSet}+ deriving stock (Prelude.Eq, Prelude.Ord, GHC.Generics.Generic)+instance Prelude.Show KeyLocator where+ showsPrec _ __x __s+ = Prelude.showChar+ '{'+ (Prelude.showString+ (Data.ProtoLens.showMessageShort __x) (Prelude.showChar '}' __s))+instance Text.PrettyPrint.GenericPretty.Out KeyLocator+instance Data.ProtoLens.Field.HasField KeyLocator "keyFamily" Data.Int.Int32 where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _KeyLocator'keyFamily+ (\ x__ y__ -> x__ {_KeyLocator'keyFamily = y__}))+ Prelude.id+instance Data.ProtoLens.Field.HasField KeyLocator "keyIndex" Data.Int.Int32 where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _KeyLocator'keyIndex+ (\ x__ y__ -> x__ {_KeyLocator'keyIndex = y__}))+ Prelude.id+instance Data.ProtoLens.Message KeyLocator where+ messageName _ = Data.Text.pack "lnrpc.KeyLocator"+ packedMessageDescriptor _+ = "\n\+ \\n\+ \KeyLocator\DC2\GS\n\+ \\n\+ \key_family\CAN\SOH \SOH(\ENQR\tkeyFamily\DC2\ESC\n\+ \\tkey_index\CAN\STX \SOH(\ENQR\bkeyIndex"+ packedFileDescriptor _ = packedFileDescriptor+ fieldsByTag+ = let+ keyFamily__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "key_family"+ (Data.ProtoLens.ScalarField Data.ProtoLens.Int32Field ::+ Data.ProtoLens.FieldTypeDescriptor Data.Int.Int32)+ (Data.ProtoLens.PlainField+ Data.ProtoLens.Optional+ (Data.ProtoLens.Field.field @"keyFamily")) ::+ Data.ProtoLens.FieldDescriptor KeyLocator+ keyIndex__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "key_index"+ (Data.ProtoLens.ScalarField Data.ProtoLens.Int32Field ::+ Data.ProtoLens.FieldTypeDescriptor Data.Int.Int32)+ (Data.ProtoLens.PlainField+ Data.ProtoLens.Optional+ (Data.ProtoLens.Field.field @"keyIndex")) ::+ Data.ProtoLens.FieldDescriptor KeyLocator+ in+ Data.Map.fromList+ [(Data.ProtoLens.Tag 1, keyFamily__field_descriptor),+ (Data.ProtoLens.Tag 2, keyIndex__field_descriptor)]+ unknownFields+ = Lens.Family2.Unchecked.lens+ _KeyLocator'_unknownFields+ (\ x__ y__ -> x__ {_KeyLocator'_unknownFields = y__})+ defMessage+ = KeyLocator'_constructor+ {_KeyLocator'keyFamily = Data.ProtoLens.fieldDefault,+ _KeyLocator'keyIndex = Data.ProtoLens.fieldDefault,+ _KeyLocator'_unknownFields = []}+ parseMessage+ = let+ loop ::+ KeyLocator -> Data.ProtoLens.Encoding.Bytes.Parser KeyLocator+ loop x+ = do end <- Data.ProtoLens.Encoding.Bytes.atEnd+ if end then+ do (let missing = []+ in+ if Prelude.null missing then+ Prelude.return ()+ else+ Prelude.fail+ ((Prelude.++)+ "Missing required fields: "+ (Prelude.show (missing :: [Prelude.String]))))+ Prelude.return+ (Lens.Family2.over+ Data.ProtoLens.unknownFields (\ !t -> Prelude.reverse t) x)+ else+ do tag <- Data.ProtoLens.Encoding.Bytes.getVarInt+ case tag of+ 8 -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (Prelude.fmap+ Prelude.fromIntegral+ Data.ProtoLens.Encoding.Bytes.getVarInt)+ "key_family"+ loop+ (Lens.Family2.set (Data.ProtoLens.Field.field @"keyFamily") y x)+ 16+ -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (Prelude.fmap+ Prelude.fromIntegral+ Data.ProtoLens.Encoding.Bytes.getVarInt)+ "key_index"+ loop+ (Lens.Family2.set (Data.ProtoLens.Field.field @"keyIndex") y x)+ wire+ -> do !y <- Data.ProtoLens.Encoding.Wire.parseTaggedValueFromWire+ wire+ loop+ (Lens.Family2.over+ Data.ProtoLens.unknownFields (\ !t -> (:) y t) x)+ in+ (Data.ProtoLens.Encoding.Bytes.<?>)+ (do loop Data.ProtoLens.defMessage) "KeyLocator"+ buildMessage+ = \ _x+ -> (Data.Monoid.<>)+ (let+ _v = Lens.Family2.view (Data.ProtoLens.Field.field @"keyFamily") _x+ in+ if (Prelude.==) _v Data.ProtoLens.fieldDefault then+ Data.Monoid.mempty+ else+ (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 8)+ ((Prelude..)+ Data.ProtoLens.Encoding.Bytes.putVarInt Prelude.fromIntegral _v))+ ((Data.Monoid.<>)+ (let+ _v = Lens.Family2.view (Data.ProtoLens.Field.field @"keyIndex") _x+ in+ if (Prelude.==) _v Data.ProtoLens.fieldDefault then+ Data.Monoid.mempty+ else+ (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 16)+ ((Prelude..)+ Data.ProtoLens.Encoding.Bytes.putVarInt Prelude.fromIntegral _v))+ (Data.ProtoLens.Encoding.Wire.buildFieldSet+ (Lens.Family2.view Data.ProtoLens.unknownFields _x)))+instance Control.DeepSeq.NFData KeyLocator where+ rnf+ = \ x__+ -> Control.DeepSeq.deepseq+ (_KeyLocator'_unknownFields x__)+ (Control.DeepSeq.deepseq+ (_KeyLocator'keyFamily x__)+ (Control.DeepSeq.deepseq (_KeyLocator'keyIndex x__) ()))+{- | Fields :+ + * 'Proto.Lnrpc.Ln0_Fields.lastUpdate' @:: Lens' LightningNode Data.Word.Word32@+ * 'Proto.Lnrpc.Ln0_Fields.pubKey' @:: Lens' LightningNode Data.Text.Text@+ * 'Proto.Lnrpc.Ln0_Fields.alias' @:: Lens' LightningNode Data.Text.Text@+ * 'Proto.Lnrpc.Ln0_Fields.addresses' @:: Lens' LightningNode [NodeAddress]@+ * 'Proto.Lnrpc.Ln0_Fields.vec'addresses' @:: Lens' LightningNode (Data.Vector.Vector NodeAddress)@+ * 'Proto.Lnrpc.Ln0_Fields.color' @:: Lens' LightningNode Data.Text.Text@+ * 'Proto.Lnrpc.Ln0_Fields.features' @:: Lens' LightningNode (Data.Map.Map Data.Word.Word32 Feature)@ -}+data LightningNode+ = LightningNode'_constructor {_LightningNode'lastUpdate :: !Data.Word.Word32,+ _LightningNode'pubKey :: !Data.Text.Text,+ _LightningNode'alias :: !Data.Text.Text,+ _LightningNode'addresses :: !(Data.Vector.Vector NodeAddress),+ _LightningNode'color :: !Data.Text.Text,+ _LightningNode'features :: !(Data.Map.Map Data.Word.Word32 Feature),+ _LightningNode'_unknownFields :: !Data.ProtoLens.FieldSet}+ deriving stock (Prelude.Eq, Prelude.Ord, GHC.Generics.Generic)+instance Prelude.Show LightningNode where+ showsPrec _ __x __s+ = Prelude.showChar+ '{'+ (Prelude.showString+ (Data.ProtoLens.showMessageShort __x) (Prelude.showChar '}' __s))+instance Text.PrettyPrint.GenericPretty.Out LightningNode+instance Data.ProtoLens.Field.HasField LightningNode "lastUpdate" Data.Word.Word32 where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _LightningNode'lastUpdate+ (\ x__ y__ -> x__ {_LightningNode'lastUpdate = y__}))+ Prelude.id+instance Data.ProtoLens.Field.HasField LightningNode "pubKey" Data.Text.Text where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _LightningNode'pubKey+ (\ x__ y__ -> x__ {_LightningNode'pubKey = y__}))+ Prelude.id+instance Data.ProtoLens.Field.HasField LightningNode "alias" Data.Text.Text where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _LightningNode'alias+ (\ x__ y__ -> x__ {_LightningNode'alias = y__}))+ Prelude.id+instance Data.ProtoLens.Field.HasField LightningNode "addresses" [NodeAddress] where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _LightningNode'addresses+ (\ x__ y__ -> x__ {_LightningNode'addresses = y__}))+ (Lens.Family2.Unchecked.lens+ Data.Vector.Generic.toList+ (\ _ y__ -> Data.Vector.Generic.fromList y__))+instance Data.ProtoLens.Field.HasField LightningNode "vec'addresses" (Data.Vector.Vector NodeAddress) where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _LightningNode'addresses+ (\ x__ y__ -> x__ {_LightningNode'addresses = y__}))+ Prelude.id+instance Data.ProtoLens.Field.HasField LightningNode "color" Data.Text.Text where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _LightningNode'color+ (\ x__ y__ -> x__ {_LightningNode'color = y__}))+ Prelude.id+instance Data.ProtoLens.Field.HasField LightningNode "features" (Data.Map.Map Data.Word.Word32 Feature) where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _LightningNode'features+ (\ x__ y__ -> x__ {_LightningNode'features = y__}))+ Prelude.id+instance Data.ProtoLens.Message LightningNode where+ messageName _ = Data.Text.pack "lnrpc.LightningNode"+ packedMessageDescriptor _+ = "\n\+ \\rLightningNode\DC2\US\n\+ \\vlast_update\CAN\SOH \SOH(\rR\n\+ \lastUpdate\DC2\ETB\n\+ \\apub_key\CAN\STX \SOH(\tR\ACKpubKey\DC2\DC4\n\+ \\ENQalias\CAN\ETX \SOH(\tR\ENQalias\DC20\n\+ \\taddresses\CAN\EOT \ETX(\v2\DC2.lnrpc.NodeAddressR\taddresses\DC2\DC4\n\+ \\ENQcolor\CAN\ENQ \SOH(\tR\ENQcolor\DC2>\n\+ \\bfeatures\CAN\ACK \ETX(\v2\".lnrpc.LightningNode.FeaturesEntryR\bfeatures\SUBK\n\+ \\rFeaturesEntry\DC2\DLE\n\+ \\ETXkey\CAN\SOH \SOH(\rR\ETXkey\DC2$\n\+ \\ENQvalue\CAN\STX \SOH(\v2\SO.lnrpc.FeatureR\ENQvalue:\STX8\SOH"+ packedFileDescriptor _ = packedFileDescriptor+ fieldsByTag+ = let+ lastUpdate__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "last_update"+ (Data.ProtoLens.ScalarField Data.ProtoLens.UInt32Field ::+ Data.ProtoLens.FieldTypeDescriptor Data.Word.Word32)+ (Data.ProtoLens.PlainField+ Data.ProtoLens.Optional+ (Data.ProtoLens.Field.field @"lastUpdate")) ::+ Data.ProtoLens.FieldDescriptor LightningNode+ pubKey__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "pub_key"+ (Data.ProtoLens.ScalarField Data.ProtoLens.StringField ::+ Data.ProtoLens.FieldTypeDescriptor Data.Text.Text)+ (Data.ProtoLens.PlainField+ Data.ProtoLens.Optional (Data.ProtoLens.Field.field @"pubKey")) ::+ Data.ProtoLens.FieldDescriptor LightningNode+ alias__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "alias"+ (Data.ProtoLens.ScalarField Data.ProtoLens.StringField ::+ Data.ProtoLens.FieldTypeDescriptor Data.Text.Text)+ (Data.ProtoLens.PlainField+ Data.ProtoLens.Optional (Data.ProtoLens.Field.field @"alias")) ::+ Data.ProtoLens.FieldDescriptor LightningNode+ addresses__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "addresses"+ (Data.ProtoLens.MessageField Data.ProtoLens.MessageType ::+ Data.ProtoLens.FieldTypeDescriptor NodeAddress)+ (Data.ProtoLens.RepeatedField+ Data.ProtoLens.Unpacked+ (Data.ProtoLens.Field.field @"addresses")) ::+ Data.ProtoLens.FieldDescriptor LightningNode+ color__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "color"+ (Data.ProtoLens.ScalarField Data.ProtoLens.StringField ::+ Data.ProtoLens.FieldTypeDescriptor Data.Text.Text)+ (Data.ProtoLens.PlainField+ Data.ProtoLens.Optional (Data.ProtoLens.Field.field @"color")) ::+ Data.ProtoLens.FieldDescriptor LightningNode+ features__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "features"+ (Data.ProtoLens.MessageField Data.ProtoLens.MessageType ::+ Data.ProtoLens.FieldTypeDescriptor LightningNode'FeaturesEntry)+ (Data.ProtoLens.MapField+ (Data.ProtoLens.Field.field @"key")+ (Data.ProtoLens.Field.field @"value")+ (Data.ProtoLens.Field.field @"features")) ::+ Data.ProtoLens.FieldDescriptor LightningNode+ in+ Data.Map.fromList+ [(Data.ProtoLens.Tag 1, lastUpdate__field_descriptor),+ (Data.ProtoLens.Tag 2, pubKey__field_descriptor),+ (Data.ProtoLens.Tag 3, alias__field_descriptor),+ (Data.ProtoLens.Tag 4, addresses__field_descriptor),+ (Data.ProtoLens.Tag 5, color__field_descriptor),+ (Data.ProtoLens.Tag 6, features__field_descriptor)]+ unknownFields+ = Lens.Family2.Unchecked.lens+ _LightningNode'_unknownFields+ (\ x__ y__ -> x__ {_LightningNode'_unknownFields = y__})+ defMessage+ = LightningNode'_constructor+ {_LightningNode'lastUpdate = Data.ProtoLens.fieldDefault,+ _LightningNode'pubKey = Data.ProtoLens.fieldDefault,+ _LightningNode'alias = Data.ProtoLens.fieldDefault,+ _LightningNode'addresses = Data.Vector.Generic.empty,+ _LightningNode'color = Data.ProtoLens.fieldDefault,+ _LightningNode'features = Data.Map.empty,+ _LightningNode'_unknownFields = []}+ parseMessage+ = let+ loop ::+ LightningNode+ -> Data.ProtoLens.Encoding.Growing.Growing Data.Vector.Vector Data.ProtoLens.Encoding.Growing.RealWorld NodeAddress+ -> Data.ProtoLens.Encoding.Bytes.Parser LightningNode+ loop x mutable'addresses+ = do end <- Data.ProtoLens.Encoding.Bytes.atEnd+ if end then+ do frozen'addresses <- Data.ProtoLens.Encoding.Parser.Unsafe.unsafeLiftIO+ (Data.ProtoLens.Encoding.Growing.unsafeFreeze+ mutable'addresses)+ (let missing = []+ in+ if Prelude.null missing then+ Prelude.return ()+ else+ Prelude.fail+ ((Prelude.++)+ "Missing required fields: "+ (Prelude.show (missing :: [Prelude.String]))))+ Prelude.return+ (Lens.Family2.over+ Data.ProtoLens.unknownFields (\ !t -> Prelude.reverse t)+ (Lens.Family2.set+ (Data.ProtoLens.Field.field @"vec'addresses") frozen'addresses x))+ else+ do tag <- Data.ProtoLens.Encoding.Bytes.getVarInt+ case tag of+ 8 -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (Prelude.fmap+ Prelude.fromIntegral+ Data.ProtoLens.Encoding.Bytes.getVarInt)+ "last_update"+ loop+ (Lens.Family2.set (Data.ProtoLens.Field.field @"lastUpdate") y x)+ mutable'addresses+ 18+ -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (do value <- do len <- Data.ProtoLens.Encoding.Bytes.getVarInt+ Data.ProtoLens.Encoding.Bytes.getBytes+ (Prelude.fromIntegral len)+ Data.ProtoLens.Encoding.Bytes.runEither+ (case Data.Text.Encoding.decodeUtf8' value of+ (Prelude.Left err)+ -> Prelude.Left (Prelude.show err)+ (Prelude.Right r) -> Prelude.Right r))+ "pub_key"+ loop+ (Lens.Family2.set (Data.ProtoLens.Field.field @"pubKey") y x)+ mutable'addresses+ 26+ -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (do value <- do len <- Data.ProtoLens.Encoding.Bytes.getVarInt+ Data.ProtoLens.Encoding.Bytes.getBytes+ (Prelude.fromIntegral len)+ Data.ProtoLens.Encoding.Bytes.runEither+ (case Data.Text.Encoding.decodeUtf8' value of+ (Prelude.Left err)+ -> Prelude.Left (Prelude.show err)+ (Prelude.Right r) -> Prelude.Right r))+ "alias"+ loop+ (Lens.Family2.set (Data.ProtoLens.Field.field @"alias") y x)+ mutable'addresses+ 34+ -> do !y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (do len <- Data.ProtoLens.Encoding.Bytes.getVarInt+ Data.ProtoLens.Encoding.Bytes.isolate+ (Prelude.fromIntegral len)+ Data.ProtoLens.parseMessage)+ "addresses"+ v <- Data.ProtoLens.Encoding.Parser.Unsafe.unsafeLiftIO+ (Data.ProtoLens.Encoding.Growing.append mutable'addresses y)+ loop x v+ 42+ -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (do value <- do len <- Data.ProtoLens.Encoding.Bytes.getVarInt+ Data.ProtoLens.Encoding.Bytes.getBytes+ (Prelude.fromIntegral len)+ Data.ProtoLens.Encoding.Bytes.runEither+ (case Data.Text.Encoding.decodeUtf8' value of+ (Prelude.Left err)+ -> Prelude.Left (Prelude.show err)+ (Prelude.Right r) -> Prelude.Right r))+ "color"+ loop+ (Lens.Family2.set (Data.ProtoLens.Field.field @"color") y x)+ mutable'addresses+ 50+ -> do !(entry :: LightningNode'FeaturesEntry) <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (do len <- Data.ProtoLens.Encoding.Bytes.getVarInt+ Data.ProtoLens.Encoding.Bytes.isolate+ (Prelude.fromIntegral+ len)+ Data.ProtoLens.parseMessage)+ "features"+ (let+ key = Lens.Family2.view (Data.ProtoLens.Field.field @"key") entry+ value+ = Lens.Family2.view (Data.ProtoLens.Field.field @"value") entry+ in+ loop+ (Lens.Family2.over+ (Data.ProtoLens.Field.field @"features")+ (\ !t -> Data.Map.insert key value t) x)+ mutable'addresses)+ wire+ -> do !y <- Data.ProtoLens.Encoding.Wire.parseTaggedValueFromWire+ wire+ loop+ (Lens.Family2.over+ Data.ProtoLens.unknownFields (\ !t -> (:) y t) x)+ mutable'addresses+ in+ (Data.ProtoLens.Encoding.Bytes.<?>)+ (do mutable'addresses <- Data.ProtoLens.Encoding.Parser.Unsafe.unsafeLiftIO+ Data.ProtoLens.Encoding.Growing.new+ loop Data.ProtoLens.defMessage mutable'addresses)+ "LightningNode"+ buildMessage+ = \ _x+ -> (Data.Monoid.<>)+ (let+ _v+ = Lens.Family2.view (Data.ProtoLens.Field.field @"lastUpdate") _x+ in+ if (Prelude.==) _v Data.ProtoLens.fieldDefault then+ Data.Monoid.mempty+ else+ (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 8)+ ((Prelude..)+ Data.ProtoLens.Encoding.Bytes.putVarInt Prelude.fromIntegral _v))+ ((Data.Monoid.<>)+ (let+ _v = Lens.Family2.view (Data.ProtoLens.Field.field @"pubKey") _x+ in+ if (Prelude.==) _v Data.ProtoLens.fieldDefault then+ Data.Monoid.mempty+ else+ (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 18)+ ((Prelude..)+ (\ bs+ -> (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt+ (Prelude.fromIntegral (Data.ByteString.length bs)))+ (Data.ProtoLens.Encoding.Bytes.putBytes bs))+ Data.Text.Encoding.encodeUtf8 _v))+ ((Data.Monoid.<>)+ (let+ _v = Lens.Family2.view (Data.ProtoLens.Field.field @"alias") _x+ in+ if (Prelude.==) _v Data.ProtoLens.fieldDefault then+ Data.Monoid.mempty+ else+ (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 26)+ ((Prelude..)+ (\ bs+ -> (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt+ (Prelude.fromIntegral (Data.ByteString.length bs)))+ (Data.ProtoLens.Encoding.Bytes.putBytes bs))+ Data.Text.Encoding.encodeUtf8 _v))+ ((Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.foldMapBuilder+ (\ _v+ -> (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 34)+ ((Prelude..)+ (\ bs+ -> (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt+ (Prelude.fromIntegral (Data.ByteString.length bs)))+ (Data.ProtoLens.Encoding.Bytes.putBytes bs))+ Data.ProtoLens.encodeMessage _v))+ (Lens.Family2.view+ (Data.ProtoLens.Field.field @"vec'addresses") _x))+ ((Data.Monoid.<>)+ (let+ _v = Lens.Family2.view (Data.ProtoLens.Field.field @"color") _x+ in+ if (Prelude.==) _v Data.ProtoLens.fieldDefault then+ Data.Monoid.mempty+ else+ (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 42)+ ((Prelude..)+ (\ bs+ -> (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt+ (Prelude.fromIntegral (Data.ByteString.length bs)))+ (Data.ProtoLens.Encoding.Bytes.putBytes bs))+ Data.Text.Encoding.encodeUtf8 _v))+ ((Data.Monoid.<>)+ (Data.Monoid.mconcat+ (Prelude.map+ (\ _v+ -> (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 50)+ ((Prelude..)+ (\ bs+ -> (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt+ (Prelude.fromIntegral+ (Data.ByteString.length bs)))+ (Data.ProtoLens.Encoding.Bytes.putBytes bs))+ Data.ProtoLens.encodeMessage+ (Lens.Family2.set+ (Data.ProtoLens.Field.field @"key") (Prelude.fst _v)+ (Lens.Family2.set+ (Data.ProtoLens.Field.field @"value")+ (Prelude.snd _v)+ (Data.ProtoLens.defMessage ::+ LightningNode'FeaturesEntry)))))+ (Data.Map.toList+ (Lens.Family2.view+ (Data.ProtoLens.Field.field @"features") _x))))+ (Data.ProtoLens.Encoding.Wire.buildFieldSet+ (Lens.Family2.view Data.ProtoLens.unknownFields _x)))))))+instance Control.DeepSeq.NFData LightningNode where+ rnf+ = \ x__+ -> Control.DeepSeq.deepseq+ (_LightningNode'_unknownFields x__)+ (Control.DeepSeq.deepseq+ (_LightningNode'lastUpdate x__)+ (Control.DeepSeq.deepseq+ (_LightningNode'pubKey x__)+ (Control.DeepSeq.deepseq+ (_LightningNode'alias x__)+ (Control.DeepSeq.deepseq+ (_LightningNode'addresses x__)+ (Control.DeepSeq.deepseq+ (_LightningNode'color x__)+ (Control.DeepSeq.deepseq (_LightningNode'features x__) ()))))))+{- | Fields :+ + * 'Proto.Lnrpc.Ln0_Fields.key' @:: Lens' LightningNode'FeaturesEntry Data.Word.Word32@+ * 'Proto.Lnrpc.Ln0_Fields.value' @:: Lens' LightningNode'FeaturesEntry Feature@+ * 'Proto.Lnrpc.Ln0_Fields.maybe'value' @:: Lens' LightningNode'FeaturesEntry (Prelude.Maybe Feature)@ -}+data LightningNode'FeaturesEntry+ = LightningNode'FeaturesEntry'_constructor {_LightningNode'FeaturesEntry'key :: !Data.Word.Word32,+ _LightningNode'FeaturesEntry'value :: !(Prelude.Maybe Feature),+ _LightningNode'FeaturesEntry'_unknownFields :: !Data.ProtoLens.FieldSet}+ deriving stock (Prelude.Eq, Prelude.Ord, GHC.Generics.Generic)+instance Prelude.Show LightningNode'FeaturesEntry where+ showsPrec _ __x __s+ = Prelude.showChar+ '{'+ (Prelude.showString+ (Data.ProtoLens.showMessageShort __x) (Prelude.showChar '}' __s))+instance Text.PrettyPrint.GenericPretty.Out LightningNode'FeaturesEntry+instance Data.ProtoLens.Field.HasField LightningNode'FeaturesEntry "key" Data.Word.Word32 where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _LightningNode'FeaturesEntry'key+ (\ x__ y__ -> x__ {_LightningNode'FeaturesEntry'key = y__}))+ Prelude.id+instance Data.ProtoLens.Field.HasField LightningNode'FeaturesEntry "value" Feature where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _LightningNode'FeaturesEntry'value+ (\ x__ y__ -> x__ {_LightningNode'FeaturesEntry'value = y__}))+ (Data.ProtoLens.maybeLens Data.ProtoLens.defMessage)+instance Data.ProtoLens.Field.HasField LightningNode'FeaturesEntry "maybe'value" (Prelude.Maybe Feature) where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _LightningNode'FeaturesEntry'value+ (\ x__ y__ -> x__ {_LightningNode'FeaturesEntry'value = y__}))+ Prelude.id+instance Data.ProtoLens.Message LightningNode'FeaturesEntry where+ messageName _ = Data.Text.pack "lnrpc.LightningNode.FeaturesEntry"+ packedMessageDescriptor _+ = "\n\+ \\rFeaturesEntry\DC2\DLE\n\+ \\ETXkey\CAN\SOH \SOH(\rR\ETXkey\DC2$\n\+ \\ENQvalue\CAN\STX \SOH(\v2\SO.lnrpc.FeatureR\ENQvalue:\STX8\SOH"+ packedFileDescriptor _ = packedFileDescriptor+ fieldsByTag+ = let+ key__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "key"+ (Data.ProtoLens.ScalarField Data.ProtoLens.UInt32Field ::+ Data.ProtoLens.FieldTypeDescriptor Data.Word.Word32)+ (Data.ProtoLens.PlainField+ Data.ProtoLens.Optional (Data.ProtoLens.Field.field @"key")) ::+ Data.ProtoLens.FieldDescriptor LightningNode'FeaturesEntry+ value__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "value"+ (Data.ProtoLens.MessageField Data.ProtoLens.MessageType ::+ Data.ProtoLens.FieldTypeDescriptor Feature)+ (Data.ProtoLens.OptionalField+ (Data.ProtoLens.Field.field @"maybe'value")) ::+ Data.ProtoLens.FieldDescriptor LightningNode'FeaturesEntry+ in+ Data.Map.fromList+ [(Data.ProtoLens.Tag 1, key__field_descriptor),+ (Data.ProtoLens.Tag 2, value__field_descriptor)]+ unknownFields+ = Lens.Family2.Unchecked.lens+ _LightningNode'FeaturesEntry'_unknownFields+ (\ x__ y__+ -> x__ {_LightningNode'FeaturesEntry'_unknownFields = y__})+ defMessage+ = LightningNode'FeaturesEntry'_constructor+ {_LightningNode'FeaturesEntry'key = Data.ProtoLens.fieldDefault,+ _LightningNode'FeaturesEntry'value = Prelude.Nothing,+ _LightningNode'FeaturesEntry'_unknownFields = []}+ parseMessage+ = let+ loop ::+ LightningNode'FeaturesEntry+ -> Data.ProtoLens.Encoding.Bytes.Parser LightningNode'FeaturesEntry+ loop x+ = do end <- Data.ProtoLens.Encoding.Bytes.atEnd+ if end then+ do (let missing = []+ in+ if Prelude.null missing then+ Prelude.return ()+ else+ Prelude.fail+ ((Prelude.++)+ "Missing required fields: "+ (Prelude.show (missing :: [Prelude.String]))))+ Prelude.return+ (Lens.Family2.over+ Data.ProtoLens.unknownFields (\ !t -> Prelude.reverse t) x)+ else+ do tag <- Data.ProtoLens.Encoding.Bytes.getVarInt+ case tag of+ 8 -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (Prelude.fmap+ Prelude.fromIntegral+ Data.ProtoLens.Encoding.Bytes.getVarInt)+ "key"+ loop (Lens.Family2.set (Data.ProtoLens.Field.field @"key") y x)+ 18+ -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (do len <- Data.ProtoLens.Encoding.Bytes.getVarInt+ Data.ProtoLens.Encoding.Bytes.isolate+ (Prelude.fromIntegral len) Data.ProtoLens.parseMessage)+ "value"+ loop (Lens.Family2.set (Data.ProtoLens.Field.field @"value") y x)+ wire+ -> do !y <- Data.ProtoLens.Encoding.Wire.parseTaggedValueFromWire+ wire+ loop+ (Lens.Family2.over+ Data.ProtoLens.unknownFields (\ !t -> (:) y t) x)+ in+ (Data.ProtoLens.Encoding.Bytes.<?>)+ (do loop Data.ProtoLens.defMessage) "FeaturesEntry"+ buildMessage+ = \ _x+ -> (Data.Monoid.<>)+ (let _v = Lens.Family2.view (Data.ProtoLens.Field.field @"key") _x+ in+ if (Prelude.==) _v Data.ProtoLens.fieldDefault then+ Data.Monoid.mempty+ else+ (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 8)+ ((Prelude..)+ Data.ProtoLens.Encoding.Bytes.putVarInt Prelude.fromIntegral _v))+ ((Data.Monoid.<>)+ (case+ Lens.Family2.view (Data.ProtoLens.Field.field @"maybe'value") _x+ of+ Prelude.Nothing -> Data.Monoid.mempty+ (Prelude.Just _v)+ -> (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 18)+ ((Prelude..)+ (\ bs+ -> (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt+ (Prelude.fromIntegral (Data.ByteString.length bs)))+ (Data.ProtoLens.Encoding.Bytes.putBytes bs))+ Data.ProtoLens.encodeMessage _v))+ (Data.ProtoLens.Encoding.Wire.buildFieldSet+ (Lens.Family2.view Data.ProtoLens.unknownFields _x)))+instance Control.DeepSeq.NFData LightningNode'FeaturesEntry where+ rnf+ = \ x__+ -> Control.DeepSeq.deepseq+ (_LightningNode'FeaturesEntry'_unknownFields x__)+ (Control.DeepSeq.deepseq+ (_LightningNode'FeaturesEntry'key x__)+ (Control.DeepSeq.deepseq+ (_LightningNode'FeaturesEntry'value x__) ()))+{- | Fields :+ + * 'Proto.Lnrpc.Ln0_Fields.paymentAddr' @:: Lens' MPPRecord Data.ByteString.ByteString@+ * 'Proto.Lnrpc.Ln0_Fields.totalAmtMsat' @:: Lens' MPPRecord Data.Int.Int64@ -}+data MPPRecord+ = MPPRecord'_constructor {_MPPRecord'paymentAddr :: !Data.ByteString.ByteString,+ _MPPRecord'totalAmtMsat :: !Data.Int.Int64,+ _MPPRecord'_unknownFields :: !Data.ProtoLens.FieldSet}+ deriving stock (Prelude.Eq, Prelude.Ord, GHC.Generics.Generic)+instance Prelude.Show MPPRecord where+ showsPrec _ __x __s+ = Prelude.showChar+ '{'+ (Prelude.showString+ (Data.ProtoLens.showMessageShort __x) (Prelude.showChar '}' __s))+instance Text.PrettyPrint.GenericPretty.Out MPPRecord+instance Data.ProtoLens.Field.HasField MPPRecord "paymentAddr" Data.ByteString.ByteString where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _MPPRecord'paymentAddr+ (\ x__ y__ -> x__ {_MPPRecord'paymentAddr = y__}))+ Prelude.id+instance Data.ProtoLens.Field.HasField MPPRecord "totalAmtMsat" Data.Int.Int64 where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _MPPRecord'totalAmtMsat+ (\ x__ y__ -> x__ {_MPPRecord'totalAmtMsat = y__}))+ Prelude.id+instance Data.ProtoLens.Message MPPRecord where+ messageName _ = Data.Text.pack "lnrpc.MPPRecord"+ packedMessageDescriptor _+ = "\n\+ \\tMPPRecord\DC2!\n\+ \\fpayment_addr\CAN\v \SOH(\fR\vpaymentAddr\DC2$\n\+ \\SOtotal_amt_msat\CAN\n\+ \ \SOH(\ETXR\ftotalAmtMsat"+ packedFileDescriptor _ = packedFileDescriptor+ fieldsByTag+ = let+ paymentAddr__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "payment_addr"+ (Data.ProtoLens.ScalarField Data.ProtoLens.BytesField ::+ Data.ProtoLens.FieldTypeDescriptor Data.ByteString.ByteString)+ (Data.ProtoLens.PlainField+ Data.ProtoLens.Optional+ (Data.ProtoLens.Field.field @"paymentAddr")) ::+ Data.ProtoLens.FieldDescriptor MPPRecord+ totalAmtMsat__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "total_amt_msat"+ (Data.ProtoLens.ScalarField Data.ProtoLens.Int64Field ::+ Data.ProtoLens.FieldTypeDescriptor Data.Int.Int64)+ (Data.ProtoLens.PlainField+ Data.ProtoLens.Optional+ (Data.ProtoLens.Field.field @"totalAmtMsat")) ::+ Data.ProtoLens.FieldDescriptor MPPRecord+ in+ Data.Map.fromList+ [(Data.ProtoLens.Tag 11, paymentAddr__field_descriptor),+ (Data.ProtoLens.Tag 10, totalAmtMsat__field_descriptor)]+ unknownFields+ = Lens.Family2.Unchecked.lens+ _MPPRecord'_unknownFields+ (\ x__ y__ -> x__ {_MPPRecord'_unknownFields = y__})+ defMessage+ = MPPRecord'_constructor+ {_MPPRecord'paymentAddr = Data.ProtoLens.fieldDefault,+ _MPPRecord'totalAmtMsat = Data.ProtoLens.fieldDefault,+ _MPPRecord'_unknownFields = []}+ parseMessage+ = let+ loop :: MPPRecord -> Data.ProtoLens.Encoding.Bytes.Parser MPPRecord+ loop x+ = do end <- Data.ProtoLens.Encoding.Bytes.atEnd+ if end then+ do (let missing = []+ in+ if Prelude.null missing then+ Prelude.return ()+ else+ Prelude.fail+ ((Prelude.++)+ "Missing required fields: "+ (Prelude.show (missing :: [Prelude.String]))))+ Prelude.return+ (Lens.Family2.over+ Data.ProtoLens.unknownFields (\ !t -> Prelude.reverse t) x)+ else+ do tag <- Data.ProtoLens.Encoding.Bytes.getVarInt+ case tag of+ 90+ -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (do len <- Data.ProtoLens.Encoding.Bytes.getVarInt+ Data.ProtoLens.Encoding.Bytes.getBytes+ (Prelude.fromIntegral len))+ "payment_addr"+ loop+ (Lens.Family2.set (Data.ProtoLens.Field.field @"paymentAddr") y x)+ 80+ -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (Prelude.fmap+ Prelude.fromIntegral+ Data.ProtoLens.Encoding.Bytes.getVarInt)+ "total_amt_msat"+ loop+ (Lens.Family2.set+ (Data.ProtoLens.Field.field @"totalAmtMsat") y x)+ wire+ -> do !y <- Data.ProtoLens.Encoding.Wire.parseTaggedValueFromWire+ wire+ loop+ (Lens.Family2.over+ Data.ProtoLens.unknownFields (\ !t -> (:) y t) x)+ in+ (Data.ProtoLens.Encoding.Bytes.<?>)+ (do loop Data.ProtoLens.defMessage) "MPPRecord"+ buildMessage+ = \ _x+ -> (Data.Monoid.<>)+ (let+ _v+ = Lens.Family2.view (Data.ProtoLens.Field.field @"paymentAddr") _x+ in+ if (Prelude.==) _v Data.ProtoLens.fieldDefault then+ Data.Monoid.mempty+ else+ (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 90)+ ((\ bs+ -> (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt+ (Prelude.fromIntegral (Data.ByteString.length bs)))+ (Data.ProtoLens.Encoding.Bytes.putBytes bs))+ _v))+ ((Data.Monoid.<>)+ (let+ _v+ = Lens.Family2.view (Data.ProtoLens.Field.field @"totalAmtMsat") _x+ in+ if (Prelude.==) _v Data.ProtoLens.fieldDefault then+ Data.Monoid.mempty+ else+ (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 80)+ ((Prelude..)+ Data.ProtoLens.Encoding.Bytes.putVarInt Prelude.fromIntegral _v))+ (Data.ProtoLens.Encoding.Wire.buildFieldSet+ (Lens.Family2.view Data.ProtoLens.unknownFields _x)))+instance Control.DeepSeq.NFData MPPRecord where+ rnf+ = \ x__+ -> Control.DeepSeq.deepseq+ (_MPPRecord'_unknownFields x__)+ (Control.DeepSeq.deepseq+ (_MPPRecord'paymentAddr x__)+ (Control.DeepSeq.deepseq (_MPPRecord'totalAmtMsat x__) ()))+{- | Fields :+ + * 'Proto.Lnrpc.Ln0_Fields.graphDiameter' @:: Lens' NetworkInfo Data.Word.Word32@+ * 'Proto.Lnrpc.Ln0_Fields.avgOutDegree' @:: Lens' NetworkInfo Prelude.Double@+ * 'Proto.Lnrpc.Ln0_Fields.maxOutDegree' @:: Lens' NetworkInfo Data.Word.Word32@+ * 'Proto.Lnrpc.Ln0_Fields.numNodes' @:: Lens' NetworkInfo Data.Word.Word32@+ * 'Proto.Lnrpc.Ln0_Fields.numChannels' @:: Lens' NetworkInfo Data.Word.Word32@+ * 'Proto.Lnrpc.Ln0_Fields.totalNetworkCapacity' @:: Lens' NetworkInfo Data.Int.Int64@+ * 'Proto.Lnrpc.Ln0_Fields.avgChannelSize' @:: Lens' NetworkInfo Prelude.Double@+ * 'Proto.Lnrpc.Ln0_Fields.minChannelSize' @:: Lens' NetworkInfo Data.Int.Int64@+ * 'Proto.Lnrpc.Ln0_Fields.maxChannelSize' @:: Lens' NetworkInfo Data.Int.Int64@+ * 'Proto.Lnrpc.Ln0_Fields.medianChannelSizeSat' @:: Lens' NetworkInfo Data.Int.Int64@+ * 'Proto.Lnrpc.Ln0_Fields.numZombieChans' @:: Lens' NetworkInfo Data.Word.Word64@ -}+data NetworkInfo+ = NetworkInfo'_constructor {_NetworkInfo'graphDiameter :: !Data.Word.Word32,+ _NetworkInfo'avgOutDegree :: !Prelude.Double,+ _NetworkInfo'maxOutDegree :: !Data.Word.Word32,+ _NetworkInfo'numNodes :: !Data.Word.Word32,+ _NetworkInfo'numChannels :: !Data.Word.Word32,+ _NetworkInfo'totalNetworkCapacity :: !Data.Int.Int64,+ _NetworkInfo'avgChannelSize :: !Prelude.Double,+ _NetworkInfo'minChannelSize :: !Data.Int.Int64,+ _NetworkInfo'maxChannelSize :: !Data.Int.Int64,+ _NetworkInfo'medianChannelSizeSat :: !Data.Int.Int64,+ _NetworkInfo'numZombieChans :: !Data.Word.Word64,+ _NetworkInfo'_unknownFields :: !Data.ProtoLens.FieldSet}+ deriving stock (Prelude.Eq, Prelude.Ord, GHC.Generics.Generic)+instance Prelude.Show NetworkInfo where+ showsPrec _ __x __s+ = Prelude.showChar+ '{'+ (Prelude.showString+ (Data.ProtoLens.showMessageShort __x) (Prelude.showChar '}' __s))+instance Text.PrettyPrint.GenericPretty.Out NetworkInfo+instance Data.ProtoLens.Field.HasField NetworkInfo "graphDiameter" Data.Word.Word32 where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _NetworkInfo'graphDiameter+ (\ x__ y__ -> x__ {_NetworkInfo'graphDiameter = y__}))+ Prelude.id+instance Data.ProtoLens.Field.HasField NetworkInfo "avgOutDegree" Prelude.Double where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _NetworkInfo'avgOutDegree+ (\ x__ y__ -> x__ {_NetworkInfo'avgOutDegree = y__}))+ Prelude.id+instance Data.ProtoLens.Field.HasField NetworkInfo "maxOutDegree" Data.Word.Word32 where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _NetworkInfo'maxOutDegree+ (\ x__ y__ -> x__ {_NetworkInfo'maxOutDegree = y__}))+ Prelude.id+instance Data.ProtoLens.Field.HasField NetworkInfo "numNodes" Data.Word.Word32 where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _NetworkInfo'numNodes+ (\ x__ y__ -> x__ {_NetworkInfo'numNodes = y__}))+ Prelude.id+instance Data.ProtoLens.Field.HasField NetworkInfo "numChannels" Data.Word.Word32 where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _NetworkInfo'numChannels+ (\ x__ y__ -> x__ {_NetworkInfo'numChannels = y__}))+ Prelude.id+instance Data.ProtoLens.Field.HasField NetworkInfo "totalNetworkCapacity" Data.Int.Int64 where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _NetworkInfo'totalNetworkCapacity+ (\ x__ y__ -> x__ {_NetworkInfo'totalNetworkCapacity = y__}))+ Prelude.id+instance Data.ProtoLens.Field.HasField NetworkInfo "avgChannelSize" Prelude.Double where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _NetworkInfo'avgChannelSize+ (\ x__ y__ -> x__ {_NetworkInfo'avgChannelSize = y__}))+ Prelude.id+instance Data.ProtoLens.Field.HasField NetworkInfo "minChannelSize" Data.Int.Int64 where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _NetworkInfo'minChannelSize+ (\ x__ y__ -> x__ {_NetworkInfo'minChannelSize = y__}))+ Prelude.id+instance Data.ProtoLens.Field.HasField NetworkInfo "maxChannelSize" Data.Int.Int64 where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _NetworkInfo'maxChannelSize+ (\ x__ y__ -> x__ {_NetworkInfo'maxChannelSize = y__}))+ Prelude.id+instance Data.ProtoLens.Field.HasField NetworkInfo "medianChannelSizeSat" Data.Int.Int64 where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _NetworkInfo'medianChannelSizeSat+ (\ x__ y__ -> x__ {_NetworkInfo'medianChannelSizeSat = y__}))+ Prelude.id+instance Data.ProtoLens.Field.HasField NetworkInfo "numZombieChans" Data.Word.Word64 where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _NetworkInfo'numZombieChans+ (\ x__ y__ -> x__ {_NetworkInfo'numZombieChans = y__}))+ Prelude.id+instance Data.ProtoLens.Message NetworkInfo where+ messageName _ = Data.Text.pack "lnrpc.NetworkInfo"+ packedMessageDescriptor _+ = "\n\+ \\vNetworkInfo\DC2%\n\+ \\SOgraph_diameter\CAN\SOH \SOH(\rR\rgraphDiameter\DC2$\n\+ \\SOavg_out_degree\CAN\STX \SOH(\SOHR\favgOutDegree\DC2$\n\+ \\SOmax_out_degree\CAN\ETX \SOH(\rR\fmaxOutDegree\DC2\ESC\n\+ \\tnum_nodes\CAN\EOT \SOH(\rR\bnumNodes\DC2!\n\+ \\fnum_channels\CAN\ENQ \SOH(\rR\vnumChannels\DC24\n\+ \\SYNtotal_network_capacity\CAN\ACK \SOH(\ETXR\DC4totalNetworkCapacity\DC2(\n\+ \\DLEavg_channel_size\CAN\a \SOH(\SOHR\SOavgChannelSize\DC2(\n\+ \\DLEmin_channel_size\CAN\b \SOH(\ETXR\SOminChannelSize\DC2(\n\+ \\DLEmax_channel_size\CAN\t \SOH(\ETXR\SOmaxChannelSize\DC25\n\+ \\ETBmedian_channel_size_sat\CAN\n\+ \ \SOH(\ETXR\DC4medianChannelSizeSat\DC2(\n\+ \\DLEnum_zombie_chans\CAN\v \SOH(\EOTR\SOnumZombieChans"+ packedFileDescriptor _ = packedFileDescriptor+ fieldsByTag+ = let+ graphDiameter__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "graph_diameter"+ (Data.ProtoLens.ScalarField Data.ProtoLens.UInt32Field ::+ Data.ProtoLens.FieldTypeDescriptor Data.Word.Word32)+ (Data.ProtoLens.PlainField+ Data.ProtoLens.Optional+ (Data.ProtoLens.Field.field @"graphDiameter")) ::+ Data.ProtoLens.FieldDescriptor NetworkInfo+ avgOutDegree__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "avg_out_degree"+ (Data.ProtoLens.ScalarField Data.ProtoLens.DoubleField ::+ Data.ProtoLens.FieldTypeDescriptor Prelude.Double)+ (Data.ProtoLens.PlainField+ Data.ProtoLens.Optional+ (Data.ProtoLens.Field.field @"avgOutDegree")) ::+ Data.ProtoLens.FieldDescriptor NetworkInfo+ maxOutDegree__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "max_out_degree"+ (Data.ProtoLens.ScalarField Data.ProtoLens.UInt32Field ::+ Data.ProtoLens.FieldTypeDescriptor Data.Word.Word32)+ (Data.ProtoLens.PlainField+ Data.ProtoLens.Optional+ (Data.ProtoLens.Field.field @"maxOutDegree")) ::+ Data.ProtoLens.FieldDescriptor NetworkInfo+ numNodes__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "num_nodes"+ (Data.ProtoLens.ScalarField Data.ProtoLens.UInt32Field ::+ Data.ProtoLens.FieldTypeDescriptor Data.Word.Word32)+ (Data.ProtoLens.PlainField+ Data.ProtoLens.Optional+ (Data.ProtoLens.Field.field @"numNodes")) ::+ Data.ProtoLens.FieldDescriptor NetworkInfo+ numChannels__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "num_channels"+ (Data.ProtoLens.ScalarField Data.ProtoLens.UInt32Field ::+ Data.ProtoLens.FieldTypeDescriptor Data.Word.Word32)+ (Data.ProtoLens.PlainField+ Data.ProtoLens.Optional+ (Data.ProtoLens.Field.field @"numChannels")) ::+ Data.ProtoLens.FieldDescriptor NetworkInfo+ totalNetworkCapacity__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "total_network_capacity"+ (Data.ProtoLens.ScalarField Data.ProtoLens.Int64Field ::+ Data.ProtoLens.FieldTypeDescriptor Data.Int.Int64)+ (Data.ProtoLens.PlainField+ Data.ProtoLens.Optional+ (Data.ProtoLens.Field.field @"totalNetworkCapacity")) ::+ Data.ProtoLens.FieldDescriptor NetworkInfo+ avgChannelSize__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "avg_channel_size"+ (Data.ProtoLens.ScalarField Data.ProtoLens.DoubleField ::+ Data.ProtoLens.FieldTypeDescriptor Prelude.Double)+ (Data.ProtoLens.PlainField+ Data.ProtoLens.Optional+ (Data.ProtoLens.Field.field @"avgChannelSize")) ::+ Data.ProtoLens.FieldDescriptor NetworkInfo+ minChannelSize__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "min_channel_size"+ (Data.ProtoLens.ScalarField Data.ProtoLens.Int64Field ::+ Data.ProtoLens.FieldTypeDescriptor Data.Int.Int64)+ (Data.ProtoLens.PlainField+ Data.ProtoLens.Optional+ (Data.ProtoLens.Field.field @"minChannelSize")) ::+ Data.ProtoLens.FieldDescriptor NetworkInfo+ maxChannelSize__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "max_channel_size"+ (Data.ProtoLens.ScalarField Data.ProtoLens.Int64Field ::+ Data.ProtoLens.FieldTypeDescriptor Data.Int.Int64)+ (Data.ProtoLens.PlainField+ Data.ProtoLens.Optional+ (Data.ProtoLens.Field.field @"maxChannelSize")) ::+ Data.ProtoLens.FieldDescriptor NetworkInfo+ medianChannelSizeSat__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "median_channel_size_sat"+ (Data.ProtoLens.ScalarField Data.ProtoLens.Int64Field ::+ Data.ProtoLens.FieldTypeDescriptor Data.Int.Int64)+ (Data.ProtoLens.PlainField+ Data.ProtoLens.Optional+ (Data.ProtoLens.Field.field @"medianChannelSizeSat")) ::+ Data.ProtoLens.FieldDescriptor NetworkInfo+ numZombieChans__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "num_zombie_chans"+ (Data.ProtoLens.ScalarField Data.ProtoLens.UInt64Field ::+ Data.ProtoLens.FieldTypeDescriptor Data.Word.Word64)+ (Data.ProtoLens.PlainField+ Data.ProtoLens.Optional+ (Data.ProtoLens.Field.field @"numZombieChans")) ::+ Data.ProtoLens.FieldDescriptor NetworkInfo+ in+ Data.Map.fromList+ [(Data.ProtoLens.Tag 1, graphDiameter__field_descriptor),+ (Data.ProtoLens.Tag 2, avgOutDegree__field_descriptor),+ (Data.ProtoLens.Tag 3, maxOutDegree__field_descriptor),+ (Data.ProtoLens.Tag 4, numNodes__field_descriptor),+ (Data.ProtoLens.Tag 5, numChannels__field_descriptor),+ (Data.ProtoLens.Tag 6, totalNetworkCapacity__field_descriptor),+ (Data.ProtoLens.Tag 7, avgChannelSize__field_descriptor),+ (Data.ProtoLens.Tag 8, minChannelSize__field_descriptor),+ (Data.ProtoLens.Tag 9, maxChannelSize__field_descriptor),+ (Data.ProtoLens.Tag 10, medianChannelSizeSat__field_descriptor),+ (Data.ProtoLens.Tag 11, numZombieChans__field_descriptor)]+ unknownFields+ = Lens.Family2.Unchecked.lens+ _NetworkInfo'_unknownFields+ (\ x__ y__ -> x__ {_NetworkInfo'_unknownFields = y__})+ defMessage+ = NetworkInfo'_constructor+ {_NetworkInfo'graphDiameter = Data.ProtoLens.fieldDefault,+ _NetworkInfo'avgOutDegree = Data.ProtoLens.fieldDefault,+ _NetworkInfo'maxOutDegree = Data.ProtoLens.fieldDefault,+ _NetworkInfo'numNodes = Data.ProtoLens.fieldDefault,+ _NetworkInfo'numChannels = Data.ProtoLens.fieldDefault,+ _NetworkInfo'totalNetworkCapacity = Data.ProtoLens.fieldDefault,+ _NetworkInfo'avgChannelSize = Data.ProtoLens.fieldDefault,+ _NetworkInfo'minChannelSize = Data.ProtoLens.fieldDefault,+ _NetworkInfo'maxChannelSize = Data.ProtoLens.fieldDefault,+ _NetworkInfo'medianChannelSizeSat = Data.ProtoLens.fieldDefault,+ _NetworkInfo'numZombieChans = Data.ProtoLens.fieldDefault,+ _NetworkInfo'_unknownFields = []}+ parseMessage+ = let+ loop ::+ NetworkInfo -> Data.ProtoLens.Encoding.Bytes.Parser NetworkInfo+ loop x+ = do end <- Data.ProtoLens.Encoding.Bytes.atEnd+ if end then+ do (let missing = []+ in+ if Prelude.null missing then+ Prelude.return ()+ else+ Prelude.fail+ ((Prelude.++)+ "Missing required fields: "+ (Prelude.show (missing :: [Prelude.String]))))+ Prelude.return+ (Lens.Family2.over+ Data.ProtoLens.unknownFields (\ !t -> Prelude.reverse t) x)+ else+ do tag <- Data.ProtoLens.Encoding.Bytes.getVarInt+ case tag of+ 8 -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (Prelude.fmap+ Prelude.fromIntegral+ Data.ProtoLens.Encoding.Bytes.getVarInt)+ "graph_diameter"+ loop+ (Lens.Family2.set+ (Data.ProtoLens.Field.field @"graphDiameter") y x)+ 17+ -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (Prelude.fmap+ Data.ProtoLens.Encoding.Bytes.wordToDouble+ Data.ProtoLens.Encoding.Bytes.getFixed64)+ "avg_out_degree"+ loop+ (Lens.Family2.set+ (Data.ProtoLens.Field.field @"avgOutDegree") y x)+ 24+ -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (Prelude.fmap+ Prelude.fromIntegral+ Data.ProtoLens.Encoding.Bytes.getVarInt)+ "max_out_degree"+ loop+ (Lens.Family2.set+ (Data.ProtoLens.Field.field @"maxOutDegree") y x)+ 32+ -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (Prelude.fmap+ Prelude.fromIntegral+ Data.ProtoLens.Encoding.Bytes.getVarInt)+ "num_nodes"+ loop+ (Lens.Family2.set (Data.ProtoLens.Field.field @"numNodes") y x)+ 40+ -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (Prelude.fmap+ Prelude.fromIntegral+ Data.ProtoLens.Encoding.Bytes.getVarInt)+ "num_channels"+ loop+ (Lens.Family2.set (Data.ProtoLens.Field.field @"numChannels") y x)+ 48+ -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (Prelude.fmap+ Prelude.fromIntegral+ Data.ProtoLens.Encoding.Bytes.getVarInt)+ "total_network_capacity"+ loop+ (Lens.Family2.set+ (Data.ProtoLens.Field.field @"totalNetworkCapacity") y x)+ 57+ -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (Prelude.fmap+ Data.ProtoLens.Encoding.Bytes.wordToDouble+ Data.ProtoLens.Encoding.Bytes.getFixed64)+ "avg_channel_size"+ loop+ (Lens.Family2.set+ (Data.ProtoLens.Field.field @"avgChannelSize") y x)+ 64+ -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (Prelude.fmap+ Prelude.fromIntegral+ Data.ProtoLens.Encoding.Bytes.getVarInt)+ "min_channel_size"+ loop+ (Lens.Family2.set+ (Data.ProtoLens.Field.field @"minChannelSize") y x)+ 72+ -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (Prelude.fmap+ Prelude.fromIntegral+ Data.ProtoLens.Encoding.Bytes.getVarInt)+ "max_channel_size"+ loop+ (Lens.Family2.set+ (Data.ProtoLens.Field.field @"maxChannelSize") y x)+ 80+ -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (Prelude.fmap+ Prelude.fromIntegral+ Data.ProtoLens.Encoding.Bytes.getVarInt)+ "median_channel_size_sat"+ loop+ (Lens.Family2.set+ (Data.ProtoLens.Field.field @"medianChannelSizeSat") y x)+ 88+ -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ Data.ProtoLens.Encoding.Bytes.getVarInt "num_zombie_chans"+ loop+ (Lens.Family2.set+ (Data.ProtoLens.Field.field @"numZombieChans") y x)+ wire+ -> do !y <- Data.ProtoLens.Encoding.Wire.parseTaggedValueFromWire+ wire+ loop+ (Lens.Family2.over+ Data.ProtoLens.unknownFields (\ !t -> (:) y t) x)+ in+ (Data.ProtoLens.Encoding.Bytes.<?>)+ (do loop Data.ProtoLens.defMessage) "NetworkInfo"+ buildMessage+ = \ _x+ -> (Data.Monoid.<>)+ (let+ _v+ = Lens.Family2.view+ (Data.ProtoLens.Field.field @"graphDiameter") _x+ in+ if (Prelude.==) _v Data.ProtoLens.fieldDefault then+ Data.Monoid.mempty+ else+ (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 8)+ ((Prelude..)+ Data.ProtoLens.Encoding.Bytes.putVarInt Prelude.fromIntegral _v))+ ((Data.Monoid.<>)+ (let+ _v+ = Lens.Family2.view (Data.ProtoLens.Field.field @"avgOutDegree") _x+ in+ if (Prelude.==) _v Data.ProtoLens.fieldDefault then+ Data.Monoid.mempty+ else+ (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 17)+ ((Prelude..)+ Data.ProtoLens.Encoding.Bytes.putFixed64+ Data.ProtoLens.Encoding.Bytes.doubleToWord _v))+ ((Data.Monoid.<>)+ (let+ _v+ = Lens.Family2.view (Data.ProtoLens.Field.field @"maxOutDegree") _x+ in+ if (Prelude.==) _v Data.ProtoLens.fieldDefault then+ Data.Monoid.mempty+ else+ (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 24)+ ((Prelude..)+ Data.ProtoLens.Encoding.Bytes.putVarInt Prelude.fromIntegral _v))+ ((Data.Monoid.<>)+ (let+ _v = Lens.Family2.view (Data.ProtoLens.Field.field @"numNodes") _x+ in+ if (Prelude.==) _v Data.ProtoLens.fieldDefault then+ Data.Monoid.mempty+ else+ (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 32)+ ((Prelude..)+ Data.ProtoLens.Encoding.Bytes.putVarInt Prelude.fromIntegral _v))+ ((Data.Monoid.<>)+ (let+ _v+ = Lens.Family2.view (Data.ProtoLens.Field.field @"numChannels") _x+ in+ if (Prelude.==) _v Data.ProtoLens.fieldDefault then+ Data.Monoid.mempty+ else+ (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 40)+ ((Prelude..)+ Data.ProtoLens.Encoding.Bytes.putVarInt Prelude.fromIntegral+ _v))+ ((Data.Monoid.<>)+ (let+ _v+ = Lens.Family2.view+ (Data.ProtoLens.Field.field @"totalNetworkCapacity") _x+ in+ if (Prelude.==) _v Data.ProtoLens.fieldDefault then+ Data.Monoid.mempty+ else+ (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 48)+ ((Prelude..)+ Data.ProtoLens.Encoding.Bytes.putVarInt Prelude.fromIntegral+ _v))+ ((Data.Monoid.<>)+ (let+ _v+ = Lens.Family2.view+ (Data.ProtoLens.Field.field @"avgChannelSize") _x+ in+ if (Prelude.==) _v Data.ProtoLens.fieldDefault then+ Data.Monoid.mempty+ else+ (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 57)+ ((Prelude..)+ Data.ProtoLens.Encoding.Bytes.putFixed64+ Data.ProtoLens.Encoding.Bytes.doubleToWord _v))+ ((Data.Monoid.<>)+ (let+ _v+ = Lens.Family2.view+ (Data.ProtoLens.Field.field @"minChannelSize") _x+ in+ if (Prelude.==) _v Data.ProtoLens.fieldDefault then+ Data.Monoid.mempty+ else+ (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 64)+ ((Prelude..)+ Data.ProtoLens.Encoding.Bytes.putVarInt+ Prelude.fromIntegral _v))+ ((Data.Monoid.<>)+ (let+ _v+ = Lens.Family2.view+ (Data.ProtoLens.Field.field @"maxChannelSize") _x+ in+ if (Prelude.==) _v Data.ProtoLens.fieldDefault then+ Data.Monoid.mempty+ else+ (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 72)+ ((Prelude..)+ Data.ProtoLens.Encoding.Bytes.putVarInt+ Prelude.fromIntegral _v))+ ((Data.Monoid.<>)+ (let+ _v+ = Lens.Family2.view+ (Data.ProtoLens.Field.field+ @"medianChannelSizeSat")+ _x+ in+ if (Prelude.==) _v Data.ProtoLens.fieldDefault then+ Data.Monoid.mempty+ else+ (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 80)+ ((Prelude..)+ Data.ProtoLens.Encoding.Bytes.putVarInt+ Prelude.fromIntegral _v))+ ((Data.Monoid.<>)+ (let+ _v+ = Lens.Family2.view+ (Data.ProtoLens.Field.field @"numZombieChans")+ _x+ in+ if (Prelude.==) _v Data.ProtoLens.fieldDefault then+ Data.Monoid.mempty+ else+ (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 88)+ (Data.ProtoLens.Encoding.Bytes.putVarInt _v))+ (Data.ProtoLens.Encoding.Wire.buildFieldSet+ (Lens.Family2.view+ Data.ProtoLens.unknownFields _x))))))))))))+instance Control.DeepSeq.NFData NetworkInfo where+ rnf+ = \ x__+ -> Control.DeepSeq.deepseq+ (_NetworkInfo'_unknownFields x__)+ (Control.DeepSeq.deepseq+ (_NetworkInfo'graphDiameter x__)+ (Control.DeepSeq.deepseq+ (_NetworkInfo'avgOutDegree x__)+ (Control.DeepSeq.deepseq+ (_NetworkInfo'maxOutDegree x__)+ (Control.DeepSeq.deepseq+ (_NetworkInfo'numNodes x__)+ (Control.DeepSeq.deepseq+ (_NetworkInfo'numChannels x__)+ (Control.DeepSeq.deepseq+ (_NetworkInfo'totalNetworkCapacity x__)+ (Control.DeepSeq.deepseq+ (_NetworkInfo'avgChannelSize x__)+ (Control.DeepSeq.deepseq+ (_NetworkInfo'minChannelSize x__)+ (Control.DeepSeq.deepseq+ (_NetworkInfo'maxChannelSize x__)+ (Control.DeepSeq.deepseq+ (_NetworkInfo'medianChannelSizeSat x__)+ (Control.DeepSeq.deepseq+ (_NetworkInfo'numZombieChans x__) ())))))))))))+{- | Fields :+ -}+data NetworkInfoRequest+ = NetworkInfoRequest'_constructor {_NetworkInfoRequest'_unknownFields :: !Data.ProtoLens.FieldSet}+ deriving stock (Prelude.Eq, Prelude.Ord, GHC.Generics.Generic)+instance Prelude.Show NetworkInfoRequest where+ showsPrec _ __x __s+ = Prelude.showChar+ '{'+ (Prelude.showString+ (Data.ProtoLens.showMessageShort __x) (Prelude.showChar '}' __s))+instance Text.PrettyPrint.GenericPretty.Out NetworkInfoRequest+instance Data.ProtoLens.Message NetworkInfoRequest where+ messageName _ = Data.Text.pack "lnrpc.NetworkInfoRequest"+ packedMessageDescriptor _+ = "\n\+ \\DC2NetworkInfoRequest"+ packedFileDescriptor _ = packedFileDescriptor+ fieldsByTag = let in Data.Map.fromList []+ unknownFields+ = Lens.Family2.Unchecked.lens+ _NetworkInfoRequest'_unknownFields+ (\ x__ y__ -> x__ {_NetworkInfoRequest'_unknownFields = y__})+ defMessage+ = NetworkInfoRequest'_constructor+ {_NetworkInfoRequest'_unknownFields = []}+ parseMessage+ = let+ loop ::+ NetworkInfoRequest+ -> Data.ProtoLens.Encoding.Bytes.Parser NetworkInfoRequest+ loop x+ = do end <- Data.ProtoLens.Encoding.Bytes.atEnd+ if end then+ do (let missing = []+ in+ if Prelude.null missing then+ Prelude.return ()+ else+ Prelude.fail+ ((Prelude.++)+ "Missing required fields: "+ (Prelude.show (missing :: [Prelude.String]))))+ Prelude.return+ (Lens.Family2.over+ Data.ProtoLens.unknownFields (\ !t -> Prelude.reverse t) x)+ else+ do tag <- Data.ProtoLens.Encoding.Bytes.getVarInt+ case tag of {+ wire+ -> do !y <- Data.ProtoLens.Encoding.Wire.parseTaggedValueFromWire+ wire+ loop+ (Lens.Family2.over+ Data.ProtoLens.unknownFields (\ !t -> (:) y t) x) }+ in+ (Data.ProtoLens.Encoding.Bytes.<?>)+ (do loop Data.ProtoLens.defMessage) "NetworkInfoRequest"+ buildMessage+ = \ _x+ -> Data.ProtoLens.Encoding.Wire.buildFieldSet+ (Lens.Family2.view Data.ProtoLens.unknownFields _x)+instance Control.DeepSeq.NFData NetworkInfoRequest where+ rnf+ = \ x__+ -> Control.DeepSeq.deepseq+ (_NetworkInfoRequest'_unknownFields x__) ()+{- | Fields :+ + * 'Proto.Lnrpc.Ln0_Fields.network' @:: Lens' NodeAddress Data.Text.Text@+ * 'Proto.Lnrpc.Ln0_Fields.addr' @:: Lens' NodeAddress Data.Text.Text@ -}+data NodeAddress+ = NodeAddress'_constructor {_NodeAddress'network :: !Data.Text.Text,+ _NodeAddress'addr :: !Data.Text.Text,+ _NodeAddress'_unknownFields :: !Data.ProtoLens.FieldSet}+ deriving stock (Prelude.Eq, Prelude.Ord, GHC.Generics.Generic)+instance Prelude.Show NodeAddress where+ showsPrec _ __x __s+ = Prelude.showChar+ '{'+ (Prelude.showString+ (Data.ProtoLens.showMessageShort __x) (Prelude.showChar '}' __s))+instance Text.PrettyPrint.GenericPretty.Out NodeAddress+instance Data.ProtoLens.Field.HasField NodeAddress "network" Data.Text.Text where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _NodeAddress'network+ (\ x__ y__ -> x__ {_NodeAddress'network = y__}))+ Prelude.id+instance Data.ProtoLens.Field.HasField NodeAddress "addr" Data.Text.Text where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _NodeAddress'addr (\ x__ y__ -> x__ {_NodeAddress'addr = y__}))+ Prelude.id+instance Data.ProtoLens.Message NodeAddress where+ messageName _ = Data.Text.pack "lnrpc.NodeAddress"+ packedMessageDescriptor _+ = "\n\+ \\vNodeAddress\DC2\CAN\n\+ \\anetwork\CAN\SOH \SOH(\tR\anetwork\DC2\DC2\n\+ \\EOTaddr\CAN\STX \SOH(\tR\EOTaddr"+ packedFileDescriptor _ = packedFileDescriptor+ fieldsByTag+ = let+ network__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "network"+ (Data.ProtoLens.ScalarField Data.ProtoLens.StringField ::+ Data.ProtoLens.FieldTypeDescriptor Data.Text.Text)+ (Data.ProtoLens.PlainField+ Data.ProtoLens.Optional (Data.ProtoLens.Field.field @"network")) ::+ Data.ProtoLens.FieldDescriptor NodeAddress+ addr__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "addr"+ (Data.ProtoLens.ScalarField Data.ProtoLens.StringField ::+ Data.ProtoLens.FieldTypeDescriptor Data.Text.Text)+ (Data.ProtoLens.PlainField+ Data.ProtoLens.Optional (Data.ProtoLens.Field.field @"addr")) ::+ Data.ProtoLens.FieldDescriptor NodeAddress+ in+ Data.Map.fromList+ [(Data.ProtoLens.Tag 1, network__field_descriptor),+ (Data.ProtoLens.Tag 2, addr__field_descriptor)]+ unknownFields+ = Lens.Family2.Unchecked.lens+ _NodeAddress'_unknownFields+ (\ x__ y__ -> x__ {_NodeAddress'_unknownFields = y__})+ defMessage+ = NodeAddress'_constructor+ {_NodeAddress'network = Data.ProtoLens.fieldDefault,+ _NodeAddress'addr = Data.ProtoLens.fieldDefault,+ _NodeAddress'_unknownFields = []}+ parseMessage+ = let+ loop ::+ NodeAddress -> Data.ProtoLens.Encoding.Bytes.Parser NodeAddress+ loop x+ = do end <- Data.ProtoLens.Encoding.Bytes.atEnd+ if end then+ do (let missing = []+ in+ if Prelude.null missing then+ Prelude.return ()+ else+ Prelude.fail+ ((Prelude.++)+ "Missing required fields: "+ (Prelude.show (missing :: [Prelude.String]))))+ Prelude.return+ (Lens.Family2.over+ Data.ProtoLens.unknownFields (\ !t -> Prelude.reverse t) x)+ else+ do tag <- Data.ProtoLens.Encoding.Bytes.getVarInt+ case tag of+ 10+ -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (do value <- do len <- Data.ProtoLens.Encoding.Bytes.getVarInt+ Data.ProtoLens.Encoding.Bytes.getBytes+ (Prelude.fromIntegral len)+ Data.ProtoLens.Encoding.Bytes.runEither+ (case Data.Text.Encoding.decodeUtf8' value of+ (Prelude.Left err)+ -> Prelude.Left (Prelude.show err)+ (Prelude.Right r) -> Prelude.Right r))+ "network"+ loop (Lens.Family2.set (Data.ProtoLens.Field.field @"network") y x)+ 18+ -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (do value <- do len <- Data.ProtoLens.Encoding.Bytes.getVarInt+ Data.ProtoLens.Encoding.Bytes.getBytes+ (Prelude.fromIntegral len)+ Data.ProtoLens.Encoding.Bytes.runEither+ (case Data.Text.Encoding.decodeUtf8' value of+ (Prelude.Left err)+ -> Prelude.Left (Prelude.show err)+ (Prelude.Right r) -> Prelude.Right r))+ "addr"+ loop (Lens.Family2.set (Data.ProtoLens.Field.field @"addr") y x)+ wire+ -> do !y <- Data.ProtoLens.Encoding.Wire.parseTaggedValueFromWire+ wire+ loop+ (Lens.Family2.over+ Data.ProtoLens.unknownFields (\ !t -> (:) y t) x)+ in+ (Data.ProtoLens.Encoding.Bytes.<?>)+ (do loop Data.ProtoLens.defMessage) "NodeAddress"+ buildMessage+ = \ _x+ -> (Data.Monoid.<>)+ (let+ _v = Lens.Family2.view (Data.ProtoLens.Field.field @"network") _x+ in+ if (Prelude.==) _v Data.ProtoLens.fieldDefault then+ Data.Monoid.mempty+ else+ (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 10)+ ((Prelude..)+ (\ bs+ -> (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt+ (Prelude.fromIntegral (Data.ByteString.length bs)))+ (Data.ProtoLens.Encoding.Bytes.putBytes bs))+ Data.Text.Encoding.encodeUtf8 _v))+ ((Data.Monoid.<>)+ (let _v = Lens.Family2.view (Data.ProtoLens.Field.field @"addr") _x+ in+ if (Prelude.==) _v Data.ProtoLens.fieldDefault then+ Data.Monoid.mempty+ else+ (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 18)+ ((Prelude..)+ (\ bs+ -> (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt+ (Prelude.fromIntegral (Data.ByteString.length bs)))+ (Data.ProtoLens.Encoding.Bytes.putBytes bs))+ Data.Text.Encoding.encodeUtf8 _v))+ (Data.ProtoLens.Encoding.Wire.buildFieldSet+ (Lens.Family2.view Data.ProtoLens.unknownFields _x)))+instance Control.DeepSeq.NFData NodeAddress where+ rnf+ = \ x__+ -> Control.DeepSeq.deepseq+ (_NodeAddress'_unknownFields x__)+ (Control.DeepSeq.deepseq+ (_NodeAddress'network x__)+ (Control.DeepSeq.deepseq (_NodeAddress'addr x__) ()))+{- | Fields :+ + * 'Proto.Lnrpc.Ln0_Fields.node' @:: Lens' NodeInfo LightningNode@+ * 'Proto.Lnrpc.Ln0_Fields.maybe'node' @:: Lens' NodeInfo (Prelude.Maybe LightningNode)@+ * 'Proto.Lnrpc.Ln0_Fields.numChannels' @:: Lens' NodeInfo Data.Word.Word32@+ * 'Proto.Lnrpc.Ln0_Fields.totalCapacity' @:: Lens' NodeInfo Data.Int.Int64@+ * 'Proto.Lnrpc.Ln0_Fields.channels' @:: Lens' NodeInfo [ChannelEdge]@+ * 'Proto.Lnrpc.Ln0_Fields.vec'channels' @:: Lens' NodeInfo (Data.Vector.Vector ChannelEdge)@ -}+data NodeInfo+ = NodeInfo'_constructor {_NodeInfo'node :: !(Prelude.Maybe LightningNode),+ _NodeInfo'numChannels :: !Data.Word.Word32,+ _NodeInfo'totalCapacity :: !Data.Int.Int64,+ _NodeInfo'channels :: !(Data.Vector.Vector ChannelEdge),+ _NodeInfo'_unknownFields :: !Data.ProtoLens.FieldSet}+ deriving stock (Prelude.Eq, Prelude.Ord, GHC.Generics.Generic)+instance Prelude.Show NodeInfo where+ showsPrec _ __x __s+ = Prelude.showChar+ '{'+ (Prelude.showString+ (Data.ProtoLens.showMessageShort __x) (Prelude.showChar '}' __s))+instance Text.PrettyPrint.GenericPretty.Out NodeInfo+instance Data.ProtoLens.Field.HasField NodeInfo "node" LightningNode where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _NodeInfo'node (\ x__ y__ -> x__ {_NodeInfo'node = y__}))+ (Data.ProtoLens.maybeLens Data.ProtoLens.defMessage)+instance Data.ProtoLens.Field.HasField NodeInfo "maybe'node" (Prelude.Maybe LightningNode) where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _NodeInfo'node (\ x__ y__ -> x__ {_NodeInfo'node = y__}))+ Prelude.id+instance Data.ProtoLens.Field.HasField NodeInfo "numChannels" Data.Word.Word32 where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _NodeInfo'numChannels+ (\ x__ y__ -> x__ {_NodeInfo'numChannels = y__}))+ Prelude.id+instance Data.ProtoLens.Field.HasField NodeInfo "totalCapacity" Data.Int.Int64 where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _NodeInfo'totalCapacity+ (\ x__ y__ -> x__ {_NodeInfo'totalCapacity = y__}))+ Prelude.id+instance Data.ProtoLens.Field.HasField NodeInfo "channels" [ChannelEdge] where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _NodeInfo'channels (\ x__ y__ -> x__ {_NodeInfo'channels = y__}))+ (Lens.Family2.Unchecked.lens+ Data.Vector.Generic.toList+ (\ _ y__ -> Data.Vector.Generic.fromList y__))+instance Data.ProtoLens.Field.HasField NodeInfo "vec'channels" (Data.Vector.Vector ChannelEdge) where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _NodeInfo'channels (\ x__ y__ -> x__ {_NodeInfo'channels = y__}))+ Prelude.id+instance Data.ProtoLens.Message NodeInfo where+ messageName _ = Data.Text.pack "lnrpc.NodeInfo"+ packedMessageDescriptor _+ = "\n\+ \\bNodeInfo\DC2(\n\+ \\EOTnode\CAN\SOH \SOH(\v2\DC4.lnrpc.LightningNodeR\EOTnode\DC2!\n\+ \\fnum_channels\CAN\STX \SOH(\rR\vnumChannels\DC2%\n\+ \\SOtotal_capacity\CAN\ETX \SOH(\ETXR\rtotalCapacity\DC2.\n\+ \\bchannels\CAN\EOT \ETX(\v2\DC2.lnrpc.ChannelEdgeR\bchannels"+ packedFileDescriptor _ = packedFileDescriptor+ fieldsByTag+ = let+ node__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "node"+ (Data.ProtoLens.MessageField Data.ProtoLens.MessageType ::+ Data.ProtoLens.FieldTypeDescriptor LightningNode)+ (Data.ProtoLens.OptionalField+ (Data.ProtoLens.Field.field @"maybe'node")) ::+ Data.ProtoLens.FieldDescriptor NodeInfo+ numChannels__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "num_channels"+ (Data.ProtoLens.ScalarField Data.ProtoLens.UInt32Field ::+ Data.ProtoLens.FieldTypeDescriptor Data.Word.Word32)+ (Data.ProtoLens.PlainField+ Data.ProtoLens.Optional+ (Data.ProtoLens.Field.field @"numChannels")) ::+ Data.ProtoLens.FieldDescriptor NodeInfo+ totalCapacity__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "total_capacity"+ (Data.ProtoLens.ScalarField Data.ProtoLens.Int64Field ::+ Data.ProtoLens.FieldTypeDescriptor Data.Int.Int64)+ (Data.ProtoLens.PlainField+ Data.ProtoLens.Optional+ (Data.ProtoLens.Field.field @"totalCapacity")) ::+ Data.ProtoLens.FieldDescriptor NodeInfo+ channels__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "channels"+ (Data.ProtoLens.MessageField Data.ProtoLens.MessageType ::+ Data.ProtoLens.FieldTypeDescriptor ChannelEdge)+ (Data.ProtoLens.RepeatedField+ Data.ProtoLens.Unpacked+ (Data.ProtoLens.Field.field @"channels")) ::+ Data.ProtoLens.FieldDescriptor NodeInfo+ in+ Data.Map.fromList+ [(Data.ProtoLens.Tag 1, node__field_descriptor),+ (Data.ProtoLens.Tag 2, numChannels__field_descriptor),+ (Data.ProtoLens.Tag 3, totalCapacity__field_descriptor),+ (Data.ProtoLens.Tag 4, channels__field_descriptor)]+ unknownFields+ = Lens.Family2.Unchecked.lens+ _NodeInfo'_unknownFields+ (\ x__ y__ -> x__ {_NodeInfo'_unknownFields = y__})+ defMessage+ = NodeInfo'_constructor+ {_NodeInfo'node = Prelude.Nothing,+ _NodeInfo'numChannels = Data.ProtoLens.fieldDefault,+ _NodeInfo'totalCapacity = Data.ProtoLens.fieldDefault,+ _NodeInfo'channels = Data.Vector.Generic.empty,+ _NodeInfo'_unknownFields = []}+ parseMessage+ = let+ loop ::+ NodeInfo+ -> Data.ProtoLens.Encoding.Growing.Growing Data.Vector.Vector Data.ProtoLens.Encoding.Growing.RealWorld ChannelEdge+ -> Data.ProtoLens.Encoding.Bytes.Parser NodeInfo+ loop x mutable'channels+ = do end <- Data.ProtoLens.Encoding.Bytes.atEnd+ if end then+ do frozen'channels <- Data.ProtoLens.Encoding.Parser.Unsafe.unsafeLiftIO+ (Data.ProtoLens.Encoding.Growing.unsafeFreeze+ mutable'channels)+ (let missing = []+ in+ if Prelude.null missing then+ Prelude.return ()+ else+ Prelude.fail+ ((Prelude.++)+ "Missing required fields: "+ (Prelude.show (missing :: [Prelude.String]))))+ Prelude.return+ (Lens.Family2.over+ Data.ProtoLens.unknownFields (\ !t -> Prelude.reverse t)+ (Lens.Family2.set+ (Data.ProtoLens.Field.field @"vec'channels") frozen'channels x))+ else+ do tag <- Data.ProtoLens.Encoding.Bytes.getVarInt+ case tag of+ 10+ -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (do len <- Data.ProtoLens.Encoding.Bytes.getVarInt+ Data.ProtoLens.Encoding.Bytes.isolate+ (Prelude.fromIntegral len) Data.ProtoLens.parseMessage)+ "node"+ loop+ (Lens.Family2.set (Data.ProtoLens.Field.field @"node") y x)+ mutable'channels+ 16+ -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (Prelude.fmap+ Prelude.fromIntegral+ Data.ProtoLens.Encoding.Bytes.getVarInt)+ "num_channels"+ loop+ (Lens.Family2.set (Data.ProtoLens.Field.field @"numChannels") y x)+ mutable'channels+ 24+ -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (Prelude.fmap+ Prelude.fromIntegral+ Data.ProtoLens.Encoding.Bytes.getVarInt)+ "total_capacity"+ loop+ (Lens.Family2.set+ (Data.ProtoLens.Field.field @"totalCapacity") y x)+ mutable'channels+ 34+ -> do !y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (do len <- Data.ProtoLens.Encoding.Bytes.getVarInt+ Data.ProtoLens.Encoding.Bytes.isolate+ (Prelude.fromIntegral len)+ Data.ProtoLens.parseMessage)+ "channels"+ v <- Data.ProtoLens.Encoding.Parser.Unsafe.unsafeLiftIO+ (Data.ProtoLens.Encoding.Growing.append mutable'channels y)+ loop x v+ wire+ -> do !y <- Data.ProtoLens.Encoding.Wire.parseTaggedValueFromWire+ wire+ loop+ (Lens.Family2.over+ Data.ProtoLens.unknownFields (\ !t -> (:) y t) x)+ mutable'channels+ in+ (Data.ProtoLens.Encoding.Bytes.<?>)+ (do mutable'channels <- Data.ProtoLens.Encoding.Parser.Unsafe.unsafeLiftIO+ Data.ProtoLens.Encoding.Growing.new+ loop Data.ProtoLens.defMessage mutable'channels)+ "NodeInfo"+ buildMessage+ = \ _x+ -> (Data.Monoid.<>)+ (case+ Lens.Family2.view (Data.ProtoLens.Field.field @"maybe'node") _x+ of+ Prelude.Nothing -> Data.Monoid.mempty+ (Prelude.Just _v)+ -> (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 10)+ ((Prelude..)+ (\ bs+ -> (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt+ (Prelude.fromIntegral (Data.ByteString.length bs)))+ (Data.ProtoLens.Encoding.Bytes.putBytes bs))+ Data.ProtoLens.encodeMessage _v))+ ((Data.Monoid.<>)+ (let+ _v+ = Lens.Family2.view (Data.ProtoLens.Field.field @"numChannels") _x+ in+ if (Prelude.==) _v Data.ProtoLens.fieldDefault then+ Data.Monoid.mempty+ else+ (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 16)+ ((Prelude..)+ Data.ProtoLens.Encoding.Bytes.putVarInt Prelude.fromIntegral _v))+ ((Data.Monoid.<>)+ (let+ _v+ = Lens.Family2.view+ (Data.ProtoLens.Field.field @"totalCapacity") _x+ in+ if (Prelude.==) _v Data.ProtoLens.fieldDefault then+ Data.Monoid.mempty+ else+ (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 24)+ ((Prelude..)+ Data.ProtoLens.Encoding.Bytes.putVarInt Prelude.fromIntegral _v))+ ((Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.foldMapBuilder+ (\ _v+ -> (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 34)+ ((Prelude..)+ (\ bs+ -> (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt+ (Prelude.fromIntegral (Data.ByteString.length bs)))+ (Data.ProtoLens.Encoding.Bytes.putBytes bs))+ Data.ProtoLens.encodeMessage _v))+ (Lens.Family2.view+ (Data.ProtoLens.Field.field @"vec'channels") _x))+ (Data.ProtoLens.Encoding.Wire.buildFieldSet+ (Lens.Family2.view Data.ProtoLens.unknownFields _x)))))+instance Control.DeepSeq.NFData NodeInfo where+ rnf+ = \ x__+ -> Control.DeepSeq.deepseq+ (_NodeInfo'_unknownFields x__)+ (Control.DeepSeq.deepseq+ (_NodeInfo'node x__)+ (Control.DeepSeq.deepseq+ (_NodeInfo'numChannels x__)+ (Control.DeepSeq.deepseq+ (_NodeInfo'totalCapacity x__)+ (Control.DeepSeq.deepseq (_NodeInfo'channels x__) ()))))+{- | Fields :+ + * 'Proto.Lnrpc.Ln0_Fields.pubKey' @:: Lens' NodeInfoRequest Data.Text.Text@+ * 'Proto.Lnrpc.Ln0_Fields.includeChannels' @:: Lens' NodeInfoRequest Prelude.Bool@ -}+data NodeInfoRequest+ = NodeInfoRequest'_constructor {_NodeInfoRequest'pubKey :: !Data.Text.Text,+ _NodeInfoRequest'includeChannels :: !Prelude.Bool,+ _NodeInfoRequest'_unknownFields :: !Data.ProtoLens.FieldSet}+ deriving stock (Prelude.Eq, Prelude.Ord, GHC.Generics.Generic)+instance Prelude.Show NodeInfoRequest where+ showsPrec _ __x __s+ = Prelude.showChar+ '{'+ (Prelude.showString+ (Data.ProtoLens.showMessageShort __x) (Prelude.showChar '}' __s))+instance Text.PrettyPrint.GenericPretty.Out NodeInfoRequest+instance Data.ProtoLens.Field.HasField NodeInfoRequest "pubKey" Data.Text.Text where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _NodeInfoRequest'pubKey+ (\ x__ y__ -> x__ {_NodeInfoRequest'pubKey = y__}))+ Prelude.id+instance Data.ProtoLens.Field.HasField NodeInfoRequest "includeChannels" Prelude.Bool where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _NodeInfoRequest'includeChannels+ (\ x__ y__ -> x__ {_NodeInfoRequest'includeChannels = y__}))+ Prelude.id+instance Data.ProtoLens.Message NodeInfoRequest where+ messageName _ = Data.Text.pack "lnrpc.NodeInfoRequest"+ packedMessageDescriptor _+ = "\n\+ \\SINodeInfoRequest\DC2\ETB\n\+ \\apub_key\CAN\SOH \SOH(\tR\ACKpubKey\DC2)\n\+ \\DLEinclude_channels\CAN\STX \SOH(\bR\SIincludeChannels"+ packedFileDescriptor _ = packedFileDescriptor+ fieldsByTag+ = let+ pubKey__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "pub_key"+ (Data.ProtoLens.ScalarField Data.ProtoLens.StringField ::+ Data.ProtoLens.FieldTypeDescriptor Data.Text.Text)+ (Data.ProtoLens.PlainField+ Data.ProtoLens.Optional (Data.ProtoLens.Field.field @"pubKey")) ::+ Data.ProtoLens.FieldDescriptor NodeInfoRequest+ includeChannels__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "include_channels"+ (Data.ProtoLens.ScalarField Data.ProtoLens.BoolField ::+ Data.ProtoLens.FieldTypeDescriptor Prelude.Bool)+ (Data.ProtoLens.PlainField+ Data.ProtoLens.Optional+ (Data.ProtoLens.Field.field @"includeChannels")) ::+ Data.ProtoLens.FieldDescriptor NodeInfoRequest+ in+ Data.Map.fromList+ [(Data.ProtoLens.Tag 1, pubKey__field_descriptor),+ (Data.ProtoLens.Tag 2, includeChannels__field_descriptor)]+ unknownFields+ = Lens.Family2.Unchecked.lens+ _NodeInfoRequest'_unknownFields+ (\ x__ y__ -> x__ {_NodeInfoRequest'_unknownFields = y__})+ defMessage+ = NodeInfoRequest'_constructor+ {_NodeInfoRequest'pubKey = Data.ProtoLens.fieldDefault,+ _NodeInfoRequest'includeChannels = Data.ProtoLens.fieldDefault,+ _NodeInfoRequest'_unknownFields = []}+ parseMessage+ = let+ loop ::+ NodeInfoRequest+ -> Data.ProtoLens.Encoding.Bytes.Parser NodeInfoRequest+ loop x+ = do end <- Data.ProtoLens.Encoding.Bytes.atEnd+ if end then+ do (let missing = []+ in+ if Prelude.null missing then+ Prelude.return ()+ else+ Prelude.fail+ ((Prelude.++)+ "Missing required fields: "+ (Prelude.show (missing :: [Prelude.String]))))+ Prelude.return+ (Lens.Family2.over+ Data.ProtoLens.unknownFields (\ !t -> Prelude.reverse t) x)+ else+ do tag <- Data.ProtoLens.Encoding.Bytes.getVarInt+ case tag of+ 10+ -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (do value <- do len <- Data.ProtoLens.Encoding.Bytes.getVarInt+ Data.ProtoLens.Encoding.Bytes.getBytes+ (Prelude.fromIntegral len)+ Data.ProtoLens.Encoding.Bytes.runEither+ (case Data.Text.Encoding.decodeUtf8' value of+ (Prelude.Left err)+ -> Prelude.Left (Prelude.show err)+ (Prelude.Right r) -> Prelude.Right r))+ "pub_key"+ loop (Lens.Family2.set (Data.ProtoLens.Field.field @"pubKey") y x)+ 16+ -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (Prelude.fmap+ ((Prelude./=) 0) Data.ProtoLens.Encoding.Bytes.getVarInt)+ "include_channels"+ loop+ (Lens.Family2.set+ (Data.ProtoLens.Field.field @"includeChannels") y x)+ wire+ -> do !y <- Data.ProtoLens.Encoding.Wire.parseTaggedValueFromWire+ wire+ loop+ (Lens.Family2.over+ Data.ProtoLens.unknownFields (\ !t -> (:) y t) x)+ in+ (Data.ProtoLens.Encoding.Bytes.<?>)+ (do loop Data.ProtoLens.defMessage) "NodeInfoRequest"+ buildMessage+ = \ _x+ -> (Data.Monoid.<>)+ (let+ _v = Lens.Family2.view (Data.ProtoLens.Field.field @"pubKey") _x+ in+ if (Prelude.==) _v Data.ProtoLens.fieldDefault then+ Data.Monoid.mempty+ else+ (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 10)+ ((Prelude..)+ (\ bs+ -> (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt+ (Prelude.fromIntegral (Data.ByteString.length bs)))+ (Data.ProtoLens.Encoding.Bytes.putBytes bs))+ Data.Text.Encoding.encodeUtf8 _v))+ ((Data.Monoid.<>)+ (let+ _v+ = Lens.Family2.view+ (Data.ProtoLens.Field.field @"includeChannels") _x+ in+ if (Prelude.==) _v Data.ProtoLens.fieldDefault then+ Data.Monoid.mempty+ else+ (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 16)+ ((Prelude..)+ Data.ProtoLens.Encoding.Bytes.putVarInt (\ b -> if b then 1 else 0)+ _v))+ (Data.ProtoLens.Encoding.Wire.buildFieldSet+ (Lens.Family2.view Data.ProtoLens.unknownFields _x)))+instance Control.DeepSeq.NFData NodeInfoRequest where+ rnf+ = \ x__+ -> Control.DeepSeq.deepseq+ (_NodeInfoRequest'_unknownFields x__)+ (Control.DeepSeq.deepseq+ (_NodeInfoRequest'pubKey x__)+ (Control.DeepSeq.deepseq+ (_NodeInfoRequest'includeChannels x__) ()))+newtype NodeMetricType'UnrecognizedValue+ = NodeMetricType'UnrecognizedValue Data.Int.Int32+ deriving stock (Prelude.Eq,+ Prelude.Ord,+ Prelude.Show,+ GHC.Generics.Generic)+instance Text.PrettyPrint.GenericPretty.Out NodeMetricType'UnrecognizedValue+data NodeMetricType+ = UNKNOWN |+ BETWEENNESS_CENTRALITY |+ NodeMetricType'Unrecognized !NodeMetricType'UnrecognizedValue+ deriving stock (Prelude.Show,+ Prelude.Eq,+ Prelude.Ord,+ GHC.Generics.Generic)+instance Data.ProtoLens.MessageEnum NodeMetricType where+ maybeToEnum 0 = Prelude.Just UNKNOWN+ maybeToEnum 1 = Prelude.Just BETWEENNESS_CENTRALITY+ maybeToEnum k+ = Prelude.Just+ (NodeMetricType'Unrecognized+ (NodeMetricType'UnrecognizedValue (Prelude.fromIntegral k)))+ showEnum UNKNOWN = "UNKNOWN"+ showEnum BETWEENNESS_CENTRALITY = "BETWEENNESS_CENTRALITY"+ showEnum+ (NodeMetricType'Unrecognized (NodeMetricType'UnrecognizedValue k))+ = Prelude.show k+ readEnum k+ | (Prelude.==) k "UNKNOWN" = Prelude.Just UNKNOWN+ | (Prelude.==) k "BETWEENNESS_CENTRALITY"+ = Prelude.Just BETWEENNESS_CENTRALITY+ | Prelude.otherwise+ = (Prelude.>>=) (Text.Read.readMaybe k) Data.ProtoLens.maybeToEnum+instance Prelude.Bounded NodeMetricType where+ minBound = UNKNOWN+ maxBound = BETWEENNESS_CENTRALITY+instance Prelude.Enum NodeMetricType where+ toEnum k__+ = Prelude.maybe+ (Prelude.error+ ((Prelude.++)+ "toEnum: unknown value for enum NodeMetricType: "+ (Prelude.show k__)))+ Prelude.id (Data.ProtoLens.maybeToEnum k__)+ fromEnum UNKNOWN = 0+ fromEnum BETWEENNESS_CENTRALITY = 1+ fromEnum+ (NodeMetricType'Unrecognized (NodeMetricType'UnrecognizedValue k))+ = Prelude.fromIntegral k+ succ BETWEENNESS_CENTRALITY+ = Prelude.error+ "NodeMetricType.succ: bad argument BETWEENNESS_CENTRALITY. This value would be out of bounds."+ succ UNKNOWN = BETWEENNESS_CENTRALITY+ succ (NodeMetricType'Unrecognized _)+ = Prelude.error+ "NodeMetricType.succ: bad argument: unrecognized value"+ pred UNKNOWN+ = Prelude.error+ "NodeMetricType.pred: bad argument UNKNOWN. This value would be out of bounds."+ pred BETWEENNESS_CENTRALITY = UNKNOWN+ pred (NodeMetricType'Unrecognized _)+ = Prelude.error+ "NodeMetricType.pred: bad argument: unrecognized value"+ enumFrom = Data.ProtoLens.Message.Enum.messageEnumFrom+ enumFromTo = Data.ProtoLens.Message.Enum.messageEnumFromTo+ enumFromThen = Data.ProtoLens.Message.Enum.messageEnumFromThen+ enumFromThenTo = Data.ProtoLens.Message.Enum.messageEnumFromThenTo+instance Data.ProtoLens.FieldDefault NodeMetricType where+ fieldDefault = UNKNOWN+instance Control.DeepSeq.NFData NodeMetricType where+ rnf x__ = Prelude.seq x__ ()+instance Text.PrettyPrint.GenericPretty.Out NodeMetricType+{- | Fields :+ + * 'Proto.Lnrpc.Ln0_Fields.types' @:: Lens' NodeMetricsRequest [NodeMetricType]@+ * 'Proto.Lnrpc.Ln0_Fields.vec'types' @:: Lens' NodeMetricsRequest (Data.Vector.Vector NodeMetricType)@ -}+data NodeMetricsRequest+ = NodeMetricsRequest'_constructor {_NodeMetricsRequest'types :: !(Data.Vector.Vector NodeMetricType),+ _NodeMetricsRequest'_unknownFields :: !Data.ProtoLens.FieldSet}+ deriving stock (Prelude.Eq, Prelude.Ord, GHC.Generics.Generic)+instance Prelude.Show NodeMetricsRequest where+ showsPrec _ __x __s+ = Prelude.showChar+ '{'+ (Prelude.showString+ (Data.ProtoLens.showMessageShort __x) (Prelude.showChar '}' __s))+instance Text.PrettyPrint.GenericPretty.Out NodeMetricsRequest+instance Data.ProtoLens.Field.HasField NodeMetricsRequest "types" [NodeMetricType] where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _NodeMetricsRequest'types+ (\ x__ y__ -> x__ {_NodeMetricsRequest'types = y__}))+ (Lens.Family2.Unchecked.lens+ Data.Vector.Generic.toList+ (\ _ y__ -> Data.Vector.Generic.fromList y__))+instance Data.ProtoLens.Field.HasField NodeMetricsRequest "vec'types" (Data.Vector.Vector NodeMetricType) where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _NodeMetricsRequest'types+ (\ x__ y__ -> x__ {_NodeMetricsRequest'types = y__}))+ Prelude.id+instance Data.ProtoLens.Message NodeMetricsRequest where+ messageName _ = Data.Text.pack "lnrpc.NodeMetricsRequest"+ packedMessageDescriptor _+ = "\n\+ \\DC2NodeMetricsRequest\DC2+\n\+ \\ENQtypes\CAN\SOH \ETX(\SO2\NAK.lnrpc.NodeMetricTypeR\ENQtypes"+ packedFileDescriptor _ = packedFileDescriptor+ fieldsByTag+ = let+ types__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "types"+ (Data.ProtoLens.ScalarField Data.ProtoLens.EnumField ::+ Data.ProtoLens.FieldTypeDescriptor NodeMetricType)+ (Data.ProtoLens.RepeatedField+ Data.ProtoLens.Packed (Data.ProtoLens.Field.field @"types")) ::+ Data.ProtoLens.FieldDescriptor NodeMetricsRequest+ in+ Data.Map.fromList [(Data.ProtoLens.Tag 1, types__field_descriptor)]+ unknownFields+ = Lens.Family2.Unchecked.lens+ _NodeMetricsRequest'_unknownFields+ (\ x__ y__ -> x__ {_NodeMetricsRequest'_unknownFields = y__})+ defMessage+ = NodeMetricsRequest'_constructor+ {_NodeMetricsRequest'types = Data.Vector.Generic.empty,+ _NodeMetricsRequest'_unknownFields = []}+ parseMessage+ = let+ loop ::+ NodeMetricsRequest+ -> Data.ProtoLens.Encoding.Growing.Growing Data.Vector.Vector Data.ProtoLens.Encoding.Growing.RealWorld NodeMetricType+ -> Data.ProtoLens.Encoding.Bytes.Parser NodeMetricsRequest+ loop x mutable'types+ = do end <- Data.ProtoLens.Encoding.Bytes.atEnd+ if end then+ do frozen'types <- Data.ProtoLens.Encoding.Parser.Unsafe.unsafeLiftIO+ (Data.ProtoLens.Encoding.Growing.unsafeFreeze mutable'types)+ (let missing = []+ in+ if Prelude.null missing then+ Prelude.return ()+ else+ Prelude.fail+ ((Prelude.++)+ "Missing required fields: "+ (Prelude.show (missing :: [Prelude.String]))))+ Prelude.return+ (Lens.Family2.over+ Data.ProtoLens.unknownFields (\ !t -> Prelude.reverse t)+ (Lens.Family2.set+ (Data.ProtoLens.Field.field @"vec'types") frozen'types x))+ else+ do tag <- Data.ProtoLens.Encoding.Bytes.getVarInt+ case tag of+ 8 -> do !y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (Prelude.fmap+ Prelude.toEnum+ (Prelude.fmap+ Prelude.fromIntegral+ Data.ProtoLens.Encoding.Bytes.getVarInt))+ "types"+ v <- Data.ProtoLens.Encoding.Parser.Unsafe.unsafeLiftIO+ (Data.ProtoLens.Encoding.Growing.append mutable'types y)+ loop x v+ 10+ -> do y <- do len <- Data.ProtoLens.Encoding.Bytes.getVarInt+ Data.ProtoLens.Encoding.Bytes.isolate+ (Prelude.fromIntegral len)+ ((let+ ploop qs+ = do packedEnd <- Data.ProtoLens.Encoding.Bytes.atEnd+ if packedEnd then+ Prelude.return qs+ else+ do !q <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (Prelude.fmap+ Prelude.toEnum+ (Prelude.fmap+ Prelude.fromIntegral+ Data.ProtoLens.Encoding.Bytes.getVarInt))+ "types"+ qs' <- Data.ProtoLens.Encoding.Parser.Unsafe.unsafeLiftIO+ (Data.ProtoLens.Encoding.Growing.append+ qs q)+ ploop qs'+ in ploop)+ mutable'types)+ loop x y+ wire+ -> do !y <- Data.ProtoLens.Encoding.Wire.parseTaggedValueFromWire+ wire+ loop+ (Lens.Family2.over+ Data.ProtoLens.unknownFields (\ !t -> (:) y t) x)+ mutable'types+ in+ (Data.ProtoLens.Encoding.Bytes.<?>)+ (do mutable'types <- Data.ProtoLens.Encoding.Parser.Unsafe.unsafeLiftIO+ Data.ProtoLens.Encoding.Growing.new+ loop Data.ProtoLens.defMessage mutable'types)+ "NodeMetricsRequest"+ buildMessage+ = \ _x+ -> (Data.Monoid.<>)+ (let+ p = Lens.Family2.view (Data.ProtoLens.Field.field @"vec'types") _x+ in+ if Data.Vector.Generic.null p then+ Data.Monoid.mempty+ else+ (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 10)+ ((\ bs+ -> (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt+ (Prelude.fromIntegral (Data.ByteString.length bs)))+ (Data.ProtoLens.Encoding.Bytes.putBytes bs))+ (Data.ProtoLens.Encoding.Bytes.runBuilder+ (Data.ProtoLens.Encoding.Bytes.foldMapBuilder+ ((Prelude..)+ ((Prelude..)+ Data.ProtoLens.Encoding.Bytes.putVarInt Prelude.fromIntegral)+ Prelude.fromEnum)+ p))))+ (Data.ProtoLens.Encoding.Wire.buildFieldSet+ (Lens.Family2.view Data.ProtoLens.unknownFields _x))+instance Control.DeepSeq.NFData NodeMetricsRequest where+ rnf+ = \ x__+ -> Control.DeepSeq.deepseq+ (_NodeMetricsRequest'_unknownFields x__)+ (Control.DeepSeq.deepseq (_NodeMetricsRequest'types x__) ())+{- | Fields :+ + * 'Proto.Lnrpc.Ln0_Fields.betweennessCentrality' @:: Lens' NodeMetricsResponse (Data.Map.Map Data.Text.Text FloatMetric)@ -}+data NodeMetricsResponse+ = NodeMetricsResponse'_constructor {_NodeMetricsResponse'betweennessCentrality :: !(Data.Map.Map Data.Text.Text FloatMetric),+ _NodeMetricsResponse'_unknownFields :: !Data.ProtoLens.FieldSet}+ deriving stock (Prelude.Eq, Prelude.Ord, GHC.Generics.Generic)+instance Prelude.Show NodeMetricsResponse where+ showsPrec _ __x __s+ = Prelude.showChar+ '{'+ (Prelude.showString+ (Data.ProtoLens.showMessageShort __x) (Prelude.showChar '}' __s))+instance Text.PrettyPrint.GenericPretty.Out NodeMetricsResponse+instance Data.ProtoLens.Field.HasField NodeMetricsResponse "betweennessCentrality" (Data.Map.Map Data.Text.Text FloatMetric) where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _NodeMetricsResponse'betweennessCentrality+ (\ x__ y__+ -> x__ {_NodeMetricsResponse'betweennessCentrality = y__}))+ Prelude.id+instance Data.ProtoLens.Message NodeMetricsResponse where+ messageName _ = Data.Text.pack "lnrpc.NodeMetricsResponse"+ packedMessageDescriptor _+ = "\n\+ \\DC3NodeMetricsResponse\DC2l\n\+ \\SYNbetweenness_centrality\CAN\SOH \ETX(\v25.lnrpc.NodeMetricsResponse.BetweennessCentralityEntryR\NAKbetweennessCentrality\SUB\\\n\+ \\SUBBetweennessCentralityEntry\DC2\DLE\n\+ \\ETXkey\CAN\SOH \SOH(\tR\ETXkey\DC2(\n\+ \\ENQvalue\CAN\STX \SOH(\v2\DC2.lnrpc.FloatMetricR\ENQvalue:\STX8\SOH"+ packedFileDescriptor _ = packedFileDescriptor+ fieldsByTag+ = let+ betweennessCentrality__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "betweenness_centrality"+ (Data.ProtoLens.MessageField Data.ProtoLens.MessageType ::+ Data.ProtoLens.FieldTypeDescriptor NodeMetricsResponse'BetweennessCentralityEntry)+ (Data.ProtoLens.MapField+ (Data.ProtoLens.Field.field @"key")+ (Data.ProtoLens.Field.field @"value")+ (Data.ProtoLens.Field.field @"betweennessCentrality")) ::+ Data.ProtoLens.FieldDescriptor NodeMetricsResponse+ in+ Data.Map.fromList+ [(Data.ProtoLens.Tag 1, betweennessCentrality__field_descriptor)]+ unknownFields+ = Lens.Family2.Unchecked.lens+ _NodeMetricsResponse'_unknownFields+ (\ x__ y__ -> x__ {_NodeMetricsResponse'_unknownFields = y__})+ defMessage+ = NodeMetricsResponse'_constructor+ {_NodeMetricsResponse'betweennessCentrality = Data.Map.empty,+ _NodeMetricsResponse'_unknownFields = []}+ parseMessage+ = let+ loop ::+ NodeMetricsResponse+ -> Data.ProtoLens.Encoding.Bytes.Parser NodeMetricsResponse+ loop x+ = do end <- Data.ProtoLens.Encoding.Bytes.atEnd+ if end then+ do (let missing = []+ in+ if Prelude.null missing then+ Prelude.return ()+ else+ Prelude.fail+ ((Prelude.++)+ "Missing required fields: "+ (Prelude.show (missing :: [Prelude.String]))))+ Prelude.return+ (Lens.Family2.over+ Data.ProtoLens.unknownFields (\ !t -> Prelude.reverse t) x)+ else+ do tag <- Data.ProtoLens.Encoding.Bytes.getVarInt+ case tag of+ 10+ -> do !(entry :: NodeMetricsResponse'BetweennessCentralityEntry) <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (do len <- Data.ProtoLens.Encoding.Bytes.getVarInt+ Data.ProtoLens.Encoding.Bytes.isolate+ (Prelude.fromIntegral+ len)+ Data.ProtoLens.parseMessage)+ "betweenness_centrality"+ (let+ key = Lens.Family2.view (Data.ProtoLens.Field.field @"key") entry+ value+ = Lens.Family2.view (Data.ProtoLens.Field.field @"value") entry+ in+ loop+ (Lens.Family2.over+ (Data.ProtoLens.Field.field @"betweennessCentrality")+ (\ !t -> Data.Map.insert key value t) x))+ wire+ -> do !y <- Data.ProtoLens.Encoding.Wire.parseTaggedValueFromWire+ wire+ loop+ (Lens.Family2.over+ Data.ProtoLens.unknownFields (\ !t -> (:) y t) x)+ in+ (Data.ProtoLens.Encoding.Bytes.<?>)+ (do loop Data.ProtoLens.defMessage) "NodeMetricsResponse"+ buildMessage+ = \ _x+ -> (Data.Monoid.<>)+ (Data.Monoid.mconcat+ (Prelude.map+ (\ _v+ -> (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 10)+ ((Prelude..)+ (\ bs+ -> (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt+ (Prelude.fromIntegral (Data.ByteString.length bs)))+ (Data.ProtoLens.Encoding.Bytes.putBytes bs))+ Data.ProtoLens.encodeMessage+ (Lens.Family2.set+ (Data.ProtoLens.Field.field @"key") (Prelude.fst _v)+ (Lens.Family2.set+ (Data.ProtoLens.Field.field @"value") (Prelude.snd _v)+ (Data.ProtoLens.defMessage ::+ NodeMetricsResponse'BetweennessCentralityEntry)))))+ (Data.Map.toList+ (Lens.Family2.view+ (Data.ProtoLens.Field.field @"betweennessCentrality") _x))))+ (Data.ProtoLens.Encoding.Wire.buildFieldSet+ (Lens.Family2.view Data.ProtoLens.unknownFields _x))+instance Control.DeepSeq.NFData NodeMetricsResponse where+ rnf+ = \ x__+ -> Control.DeepSeq.deepseq+ (_NodeMetricsResponse'_unknownFields x__)+ (Control.DeepSeq.deepseq+ (_NodeMetricsResponse'betweennessCentrality x__) ())+{- | Fields :+ + * 'Proto.Lnrpc.Ln0_Fields.key' @:: Lens' NodeMetricsResponse'BetweennessCentralityEntry Data.Text.Text@+ * 'Proto.Lnrpc.Ln0_Fields.value' @:: Lens' NodeMetricsResponse'BetweennessCentralityEntry FloatMetric@+ * 'Proto.Lnrpc.Ln0_Fields.maybe'value' @:: Lens' NodeMetricsResponse'BetweennessCentralityEntry (Prelude.Maybe FloatMetric)@ -}+data NodeMetricsResponse'BetweennessCentralityEntry+ = NodeMetricsResponse'BetweennessCentralityEntry'_constructor {_NodeMetricsResponse'BetweennessCentralityEntry'key :: !Data.Text.Text,+ _NodeMetricsResponse'BetweennessCentralityEntry'value :: !(Prelude.Maybe FloatMetric),+ _NodeMetricsResponse'BetweennessCentralityEntry'_unknownFields :: !Data.ProtoLens.FieldSet}+ deriving stock (Prelude.Eq, Prelude.Ord, GHC.Generics.Generic)+instance Prelude.Show NodeMetricsResponse'BetweennessCentralityEntry where+ showsPrec _ __x __s+ = Prelude.showChar+ '{'+ (Prelude.showString+ (Data.ProtoLens.showMessageShort __x) (Prelude.showChar '}' __s))+instance Text.PrettyPrint.GenericPretty.Out NodeMetricsResponse'BetweennessCentralityEntry+instance Data.ProtoLens.Field.HasField NodeMetricsResponse'BetweennessCentralityEntry "key" Data.Text.Text where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _NodeMetricsResponse'BetweennessCentralityEntry'key+ (\ x__ y__+ -> x__+ {_NodeMetricsResponse'BetweennessCentralityEntry'key = y__}))+ Prelude.id+instance Data.ProtoLens.Field.HasField NodeMetricsResponse'BetweennessCentralityEntry "value" FloatMetric where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _NodeMetricsResponse'BetweennessCentralityEntry'value+ (\ x__ y__+ -> x__+ {_NodeMetricsResponse'BetweennessCentralityEntry'value = y__}))+ (Data.ProtoLens.maybeLens Data.ProtoLens.defMessage)+instance Data.ProtoLens.Field.HasField NodeMetricsResponse'BetweennessCentralityEntry "maybe'value" (Prelude.Maybe FloatMetric) where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _NodeMetricsResponse'BetweennessCentralityEntry'value+ (\ x__ y__+ -> x__+ {_NodeMetricsResponse'BetweennessCentralityEntry'value = y__}))+ Prelude.id+instance Data.ProtoLens.Message NodeMetricsResponse'BetweennessCentralityEntry where+ messageName _+ = Data.Text.pack+ "lnrpc.NodeMetricsResponse.BetweennessCentralityEntry"+ packedMessageDescriptor _+ = "\n\+ \\SUBBetweennessCentralityEntry\DC2\DLE\n\+ \\ETXkey\CAN\SOH \SOH(\tR\ETXkey\DC2(\n\+ \\ENQvalue\CAN\STX \SOH(\v2\DC2.lnrpc.FloatMetricR\ENQvalue:\STX8\SOH"+ packedFileDescriptor _ = packedFileDescriptor+ fieldsByTag+ = let+ key__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "key"+ (Data.ProtoLens.ScalarField Data.ProtoLens.StringField ::+ Data.ProtoLens.FieldTypeDescriptor Data.Text.Text)+ (Data.ProtoLens.PlainField+ Data.ProtoLens.Optional (Data.ProtoLens.Field.field @"key")) ::+ Data.ProtoLens.FieldDescriptor NodeMetricsResponse'BetweennessCentralityEntry+ value__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "value"+ (Data.ProtoLens.MessageField Data.ProtoLens.MessageType ::+ Data.ProtoLens.FieldTypeDescriptor FloatMetric)+ (Data.ProtoLens.OptionalField+ (Data.ProtoLens.Field.field @"maybe'value")) ::+ Data.ProtoLens.FieldDescriptor NodeMetricsResponse'BetweennessCentralityEntry+ in+ Data.Map.fromList+ [(Data.ProtoLens.Tag 1, key__field_descriptor),+ (Data.ProtoLens.Tag 2, value__field_descriptor)]+ unknownFields+ = Lens.Family2.Unchecked.lens+ _NodeMetricsResponse'BetweennessCentralityEntry'_unknownFields+ (\ x__ y__+ -> x__+ {_NodeMetricsResponse'BetweennessCentralityEntry'_unknownFields = y__})+ defMessage+ = NodeMetricsResponse'BetweennessCentralityEntry'_constructor+ {_NodeMetricsResponse'BetweennessCentralityEntry'key = Data.ProtoLens.fieldDefault,+ _NodeMetricsResponse'BetweennessCentralityEntry'value = Prelude.Nothing,+ _NodeMetricsResponse'BetweennessCentralityEntry'_unknownFields = []}+ parseMessage+ = let+ loop ::+ NodeMetricsResponse'BetweennessCentralityEntry+ -> Data.ProtoLens.Encoding.Bytes.Parser NodeMetricsResponse'BetweennessCentralityEntry+ loop x+ = do end <- Data.ProtoLens.Encoding.Bytes.atEnd+ if end then+ do (let missing = []+ in+ if Prelude.null missing then+ Prelude.return ()+ else+ Prelude.fail+ ((Prelude.++)+ "Missing required fields: "+ (Prelude.show (missing :: [Prelude.String]))))+ Prelude.return+ (Lens.Family2.over+ Data.ProtoLens.unknownFields (\ !t -> Prelude.reverse t) x)+ else+ do tag <- Data.ProtoLens.Encoding.Bytes.getVarInt+ case tag of+ 10+ -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (do value <- do len <- Data.ProtoLens.Encoding.Bytes.getVarInt+ Data.ProtoLens.Encoding.Bytes.getBytes+ (Prelude.fromIntegral len)+ Data.ProtoLens.Encoding.Bytes.runEither+ (case Data.Text.Encoding.decodeUtf8' value of+ (Prelude.Left err)+ -> Prelude.Left (Prelude.show err)+ (Prelude.Right r) -> Prelude.Right r))+ "key"+ loop (Lens.Family2.set (Data.ProtoLens.Field.field @"key") y x)+ 18+ -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (do len <- Data.ProtoLens.Encoding.Bytes.getVarInt+ Data.ProtoLens.Encoding.Bytes.isolate+ (Prelude.fromIntegral len) Data.ProtoLens.parseMessage)+ "value"+ loop (Lens.Family2.set (Data.ProtoLens.Field.field @"value") y x)+ wire+ -> do !y <- Data.ProtoLens.Encoding.Wire.parseTaggedValueFromWire+ wire+ loop+ (Lens.Family2.over+ Data.ProtoLens.unknownFields (\ !t -> (:) y t) x)+ in+ (Data.ProtoLens.Encoding.Bytes.<?>)+ (do loop Data.ProtoLens.defMessage) "BetweennessCentralityEntry"+ buildMessage+ = \ _x+ -> (Data.Monoid.<>)+ (let _v = Lens.Family2.view (Data.ProtoLens.Field.field @"key") _x+ in+ if (Prelude.==) _v Data.ProtoLens.fieldDefault then+ Data.Monoid.mempty+ else+ (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 10)+ ((Prelude..)+ (\ bs+ -> (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt+ (Prelude.fromIntegral (Data.ByteString.length bs)))+ (Data.ProtoLens.Encoding.Bytes.putBytes bs))+ Data.Text.Encoding.encodeUtf8 _v))+ ((Data.Monoid.<>)+ (case+ Lens.Family2.view (Data.ProtoLens.Field.field @"maybe'value") _x+ of+ Prelude.Nothing -> Data.Monoid.mempty+ (Prelude.Just _v)+ -> (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 18)+ ((Prelude..)+ (\ bs+ -> (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt+ (Prelude.fromIntegral (Data.ByteString.length bs)))+ (Data.ProtoLens.Encoding.Bytes.putBytes bs))+ Data.ProtoLens.encodeMessage _v))+ (Data.ProtoLens.Encoding.Wire.buildFieldSet+ (Lens.Family2.view Data.ProtoLens.unknownFields _x)))+instance Control.DeepSeq.NFData NodeMetricsResponse'BetweennessCentralityEntry where+ rnf+ = \ x__+ -> Control.DeepSeq.deepseq+ (_NodeMetricsResponse'BetweennessCentralityEntry'_unknownFields+ x__)+ (Control.DeepSeq.deepseq+ (_NodeMetricsResponse'BetweennessCentralityEntry'key x__)+ (Control.DeepSeq.deepseq+ (_NodeMetricsResponse'BetweennessCentralityEntry'value x__) ()))+{- | Fields :+ + * 'Proto.Lnrpc.Ln0_Fields.from' @:: Lens' NodePair Data.ByteString.ByteString@+ * 'Proto.Lnrpc.Ln0_Fields.to' @:: Lens' NodePair Data.ByteString.ByteString@ -}+data NodePair+ = NodePair'_constructor {_NodePair'from :: !Data.ByteString.ByteString,+ _NodePair'to :: !Data.ByteString.ByteString,+ _NodePair'_unknownFields :: !Data.ProtoLens.FieldSet}+ deriving stock (Prelude.Eq, Prelude.Ord, GHC.Generics.Generic)+instance Prelude.Show NodePair where+ showsPrec _ __x __s+ = Prelude.showChar+ '{'+ (Prelude.showString+ (Data.ProtoLens.showMessageShort __x) (Prelude.showChar '}' __s))+instance Text.PrettyPrint.GenericPretty.Out NodePair+instance Data.ProtoLens.Field.HasField NodePair "from" Data.ByteString.ByteString where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _NodePair'from (\ x__ y__ -> x__ {_NodePair'from = y__}))+ Prelude.id+instance Data.ProtoLens.Field.HasField NodePair "to" Data.ByteString.ByteString where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _NodePair'to (\ x__ y__ -> x__ {_NodePair'to = y__}))+ Prelude.id+instance Data.ProtoLens.Message NodePair where+ messageName _ = Data.Text.pack "lnrpc.NodePair"+ packedMessageDescriptor _+ = "\n\+ \\bNodePair\DC2\DC2\n\+ \\EOTfrom\CAN\SOH \SOH(\fR\EOTfrom\DC2\SO\n\+ \\STXto\CAN\STX \SOH(\fR\STXto"+ packedFileDescriptor _ = packedFileDescriptor+ fieldsByTag+ = let+ from__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "from"+ (Data.ProtoLens.ScalarField Data.ProtoLens.BytesField ::+ Data.ProtoLens.FieldTypeDescriptor Data.ByteString.ByteString)+ (Data.ProtoLens.PlainField+ Data.ProtoLens.Optional (Data.ProtoLens.Field.field @"from")) ::+ Data.ProtoLens.FieldDescriptor NodePair+ to__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "to"+ (Data.ProtoLens.ScalarField Data.ProtoLens.BytesField ::+ Data.ProtoLens.FieldTypeDescriptor Data.ByteString.ByteString)+ (Data.ProtoLens.PlainField+ Data.ProtoLens.Optional (Data.ProtoLens.Field.field @"to")) ::+ Data.ProtoLens.FieldDescriptor NodePair+ in+ Data.Map.fromList+ [(Data.ProtoLens.Tag 1, from__field_descriptor),+ (Data.ProtoLens.Tag 2, to__field_descriptor)]+ unknownFields+ = Lens.Family2.Unchecked.lens+ _NodePair'_unknownFields+ (\ x__ y__ -> x__ {_NodePair'_unknownFields = y__})+ defMessage+ = NodePair'_constructor+ {_NodePair'from = Data.ProtoLens.fieldDefault,+ _NodePair'to = Data.ProtoLens.fieldDefault,+ _NodePair'_unknownFields = []}+ parseMessage+ = let+ loop :: NodePair -> Data.ProtoLens.Encoding.Bytes.Parser NodePair+ loop x+ = do end <- Data.ProtoLens.Encoding.Bytes.atEnd+ if end then+ do (let missing = []+ in+ if Prelude.null missing then+ Prelude.return ()+ else+ Prelude.fail+ ((Prelude.++)+ "Missing required fields: "+ (Prelude.show (missing :: [Prelude.String]))))+ Prelude.return+ (Lens.Family2.over+ Data.ProtoLens.unknownFields (\ !t -> Prelude.reverse t) x)+ else+ do tag <- Data.ProtoLens.Encoding.Bytes.getVarInt+ case tag of+ 10+ -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (do len <- Data.ProtoLens.Encoding.Bytes.getVarInt+ Data.ProtoLens.Encoding.Bytes.getBytes+ (Prelude.fromIntegral len))+ "from"+ loop (Lens.Family2.set (Data.ProtoLens.Field.field @"from") y x)+ 18+ -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (do len <- Data.ProtoLens.Encoding.Bytes.getVarInt+ Data.ProtoLens.Encoding.Bytes.getBytes+ (Prelude.fromIntegral len))+ "to"+ loop (Lens.Family2.set (Data.ProtoLens.Field.field @"to") y x)+ wire+ -> do !y <- Data.ProtoLens.Encoding.Wire.parseTaggedValueFromWire+ wire+ loop+ (Lens.Family2.over+ Data.ProtoLens.unknownFields (\ !t -> (:) y t) x)+ in+ (Data.ProtoLens.Encoding.Bytes.<?>)+ (do loop Data.ProtoLens.defMessage) "NodePair"+ buildMessage+ = \ _x+ -> (Data.Monoid.<>)+ (let _v = Lens.Family2.view (Data.ProtoLens.Field.field @"from") _x+ in+ if (Prelude.==) _v Data.ProtoLens.fieldDefault then+ Data.Monoid.mempty+ else+ (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 10)+ ((\ bs+ -> (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt+ (Prelude.fromIntegral (Data.ByteString.length bs)))+ (Data.ProtoLens.Encoding.Bytes.putBytes bs))+ _v))+ ((Data.Monoid.<>)+ (let _v = Lens.Family2.view (Data.ProtoLens.Field.field @"to") _x+ in+ if (Prelude.==) _v Data.ProtoLens.fieldDefault then+ Data.Monoid.mempty+ else+ (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 18)+ ((\ bs+ -> (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt+ (Prelude.fromIntegral (Data.ByteString.length bs)))+ (Data.ProtoLens.Encoding.Bytes.putBytes bs))+ _v))+ (Data.ProtoLens.Encoding.Wire.buildFieldSet+ (Lens.Family2.view Data.ProtoLens.unknownFields _x)))+instance Control.DeepSeq.NFData NodePair where+ rnf+ = \ x__+ -> Control.DeepSeq.deepseq+ (_NodePair'_unknownFields x__)+ (Control.DeepSeq.deepseq+ (_NodePair'from x__)+ (Control.DeepSeq.deepseq (_NodePair'to x__) ()))+{- | Fields :+ + * 'Proto.Lnrpc.Ln0_Fields.addresses' @:: Lens' NodeUpdate [Data.Text.Text]@+ * 'Proto.Lnrpc.Ln0_Fields.vec'addresses' @:: Lens' NodeUpdate (Data.Vector.Vector Data.Text.Text)@+ * 'Proto.Lnrpc.Ln0_Fields.identityKey' @:: Lens' NodeUpdate Data.Text.Text@+ * 'Proto.Lnrpc.Ln0_Fields.globalFeatures' @:: Lens' NodeUpdate Data.ByteString.ByteString@+ * 'Proto.Lnrpc.Ln0_Fields.alias' @:: Lens' NodeUpdate Data.Text.Text@+ * 'Proto.Lnrpc.Ln0_Fields.color' @:: Lens' NodeUpdate Data.Text.Text@+ * 'Proto.Lnrpc.Ln0_Fields.nodeAddresses' @:: Lens' NodeUpdate [NodeAddress]@+ * 'Proto.Lnrpc.Ln0_Fields.vec'nodeAddresses' @:: Lens' NodeUpdate (Data.Vector.Vector NodeAddress)@+ * 'Proto.Lnrpc.Ln0_Fields.features' @:: Lens' NodeUpdate (Data.Map.Map Data.Word.Word32 Feature)@ -}+data NodeUpdate+ = NodeUpdate'_constructor {_NodeUpdate'addresses :: !(Data.Vector.Vector Data.Text.Text),+ _NodeUpdate'identityKey :: !Data.Text.Text,+ _NodeUpdate'globalFeatures :: !Data.ByteString.ByteString,+ _NodeUpdate'alias :: !Data.Text.Text,+ _NodeUpdate'color :: !Data.Text.Text,+ _NodeUpdate'nodeAddresses :: !(Data.Vector.Vector NodeAddress),+ _NodeUpdate'features :: !(Data.Map.Map Data.Word.Word32 Feature),+ _NodeUpdate'_unknownFields :: !Data.ProtoLens.FieldSet}+ deriving stock (Prelude.Eq, Prelude.Ord, GHC.Generics.Generic)+instance Prelude.Show NodeUpdate where+ showsPrec _ __x __s+ = Prelude.showChar+ '{'+ (Prelude.showString+ (Data.ProtoLens.showMessageShort __x) (Prelude.showChar '}' __s))+instance Text.PrettyPrint.GenericPretty.Out NodeUpdate+instance Data.ProtoLens.Field.HasField NodeUpdate "addresses" [Data.Text.Text] where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _NodeUpdate'addresses+ (\ x__ y__ -> x__ {_NodeUpdate'addresses = y__}))+ (Lens.Family2.Unchecked.lens+ Data.Vector.Generic.toList+ (\ _ y__ -> Data.Vector.Generic.fromList y__))+instance Data.ProtoLens.Field.HasField NodeUpdate "vec'addresses" (Data.Vector.Vector Data.Text.Text) where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _NodeUpdate'addresses+ (\ x__ y__ -> x__ {_NodeUpdate'addresses = y__}))+ Prelude.id+instance Data.ProtoLens.Field.HasField NodeUpdate "identityKey" Data.Text.Text where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _NodeUpdate'identityKey+ (\ x__ y__ -> x__ {_NodeUpdate'identityKey = y__}))+ Prelude.id+instance Data.ProtoLens.Field.HasField NodeUpdate "globalFeatures" Data.ByteString.ByteString where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _NodeUpdate'globalFeatures+ (\ x__ y__ -> x__ {_NodeUpdate'globalFeatures = y__}))+ Prelude.id+instance Data.ProtoLens.Field.HasField NodeUpdate "alias" Data.Text.Text where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _NodeUpdate'alias (\ x__ y__ -> x__ {_NodeUpdate'alias = y__}))+ Prelude.id+instance Data.ProtoLens.Field.HasField NodeUpdate "color" Data.Text.Text where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _NodeUpdate'color (\ x__ y__ -> x__ {_NodeUpdate'color = y__}))+ Prelude.id+instance Data.ProtoLens.Field.HasField NodeUpdate "nodeAddresses" [NodeAddress] where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _NodeUpdate'nodeAddresses+ (\ x__ y__ -> x__ {_NodeUpdate'nodeAddresses = y__}))+ (Lens.Family2.Unchecked.lens+ Data.Vector.Generic.toList+ (\ _ y__ -> Data.Vector.Generic.fromList y__))+instance Data.ProtoLens.Field.HasField NodeUpdate "vec'nodeAddresses" (Data.Vector.Vector NodeAddress) where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _NodeUpdate'nodeAddresses+ (\ x__ y__ -> x__ {_NodeUpdate'nodeAddresses = y__}))+ Prelude.id+instance Data.ProtoLens.Field.HasField NodeUpdate "features" (Data.Map.Map Data.Word.Word32 Feature) where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _NodeUpdate'features+ (\ x__ y__ -> x__ {_NodeUpdate'features = y__}))+ Prelude.id+instance Data.ProtoLens.Message NodeUpdate where+ messageName _ = Data.Text.pack "lnrpc.NodeUpdate"+ packedMessageDescriptor _+ = "\n\+ \\n\+ \NodeUpdate\DC2 \n\+ \\taddresses\CAN\SOH \ETX(\tR\taddressesB\STX\CAN\SOH\DC2!\n\+ \\fidentity_key\CAN\STX \SOH(\tR\videntityKey\DC2+\n\+ \\SIglobal_features\CAN\ETX \SOH(\fR\SOglobalFeaturesB\STX\CAN\SOH\DC2\DC4\n\+ \\ENQalias\CAN\EOT \SOH(\tR\ENQalias\DC2\DC4\n\+ \\ENQcolor\CAN\ENQ \SOH(\tR\ENQcolor\DC29\n\+ \\SOnode_addresses\CAN\a \ETX(\v2\DC2.lnrpc.NodeAddressR\rnodeAddresses\DC2;\n\+ \\bfeatures\CAN\ACK \ETX(\v2\US.lnrpc.NodeUpdate.FeaturesEntryR\bfeatures\SUBK\n\+ \\rFeaturesEntry\DC2\DLE\n\+ \\ETXkey\CAN\SOH \SOH(\rR\ETXkey\DC2$\n\+ \\ENQvalue\CAN\STX \SOH(\v2\SO.lnrpc.FeatureR\ENQvalue:\STX8\SOH"+ packedFileDescriptor _ = packedFileDescriptor+ fieldsByTag+ = let+ addresses__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "addresses"+ (Data.ProtoLens.ScalarField Data.ProtoLens.StringField ::+ Data.ProtoLens.FieldTypeDescriptor Data.Text.Text)+ (Data.ProtoLens.RepeatedField+ Data.ProtoLens.Unpacked+ (Data.ProtoLens.Field.field @"addresses")) ::+ Data.ProtoLens.FieldDescriptor NodeUpdate+ identityKey__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "identity_key"+ (Data.ProtoLens.ScalarField Data.ProtoLens.StringField ::+ Data.ProtoLens.FieldTypeDescriptor Data.Text.Text)+ (Data.ProtoLens.PlainField+ Data.ProtoLens.Optional+ (Data.ProtoLens.Field.field @"identityKey")) ::+ Data.ProtoLens.FieldDescriptor NodeUpdate+ globalFeatures__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "global_features"+ (Data.ProtoLens.ScalarField Data.ProtoLens.BytesField ::+ Data.ProtoLens.FieldTypeDescriptor Data.ByteString.ByteString)+ (Data.ProtoLens.PlainField+ Data.ProtoLens.Optional+ (Data.ProtoLens.Field.field @"globalFeatures")) ::+ Data.ProtoLens.FieldDescriptor NodeUpdate+ alias__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "alias"+ (Data.ProtoLens.ScalarField Data.ProtoLens.StringField ::+ Data.ProtoLens.FieldTypeDescriptor Data.Text.Text)+ (Data.ProtoLens.PlainField+ Data.ProtoLens.Optional (Data.ProtoLens.Field.field @"alias")) ::+ Data.ProtoLens.FieldDescriptor NodeUpdate+ color__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "color"+ (Data.ProtoLens.ScalarField Data.ProtoLens.StringField ::+ Data.ProtoLens.FieldTypeDescriptor Data.Text.Text)+ (Data.ProtoLens.PlainField+ Data.ProtoLens.Optional (Data.ProtoLens.Field.field @"color")) ::+ Data.ProtoLens.FieldDescriptor NodeUpdate+ nodeAddresses__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "node_addresses"+ (Data.ProtoLens.MessageField Data.ProtoLens.MessageType ::+ Data.ProtoLens.FieldTypeDescriptor NodeAddress)+ (Data.ProtoLens.RepeatedField+ Data.ProtoLens.Unpacked+ (Data.ProtoLens.Field.field @"nodeAddresses")) ::+ Data.ProtoLens.FieldDescriptor NodeUpdate+ features__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "features"+ (Data.ProtoLens.MessageField Data.ProtoLens.MessageType ::+ Data.ProtoLens.FieldTypeDescriptor NodeUpdate'FeaturesEntry)+ (Data.ProtoLens.MapField+ (Data.ProtoLens.Field.field @"key")+ (Data.ProtoLens.Field.field @"value")+ (Data.ProtoLens.Field.field @"features")) ::+ Data.ProtoLens.FieldDescriptor NodeUpdate+ in+ Data.Map.fromList+ [(Data.ProtoLens.Tag 1, addresses__field_descriptor),+ (Data.ProtoLens.Tag 2, identityKey__field_descriptor),+ (Data.ProtoLens.Tag 3, globalFeatures__field_descriptor),+ (Data.ProtoLens.Tag 4, alias__field_descriptor),+ (Data.ProtoLens.Tag 5, color__field_descriptor),+ (Data.ProtoLens.Tag 7, nodeAddresses__field_descriptor),+ (Data.ProtoLens.Tag 6, features__field_descriptor)]+ unknownFields+ = Lens.Family2.Unchecked.lens+ _NodeUpdate'_unknownFields+ (\ x__ y__ -> x__ {_NodeUpdate'_unknownFields = y__})+ defMessage+ = NodeUpdate'_constructor+ {_NodeUpdate'addresses = Data.Vector.Generic.empty,+ _NodeUpdate'identityKey = Data.ProtoLens.fieldDefault,+ _NodeUpdate'globalFeatures = Data.ProtoLens.fieldDefault,+ _NodeUpdate'alias = Data.ProtoLens.fieldDefault,+ _NodeUpdate'color = Data.ProtoLens.fieldDefault,+ _NodeUpdate'nodeAddresses = Data.Vector.Generic.empty,+ _NodeUpdate'features = Data.Map.empty,+ _NodeUpdate'_unknownFields = []}+ parseMessage+ = let+ loop ::+ NodeUpdate+ -> Data.ProtoLens.Encoding.Growing.Growing Data.Vector.Vector Data.ProtoLens.Encoding.Growing.RealWorld Data.Text.Text+ -> Data.ProtoLens.Encoding.Growing.Growing Data.Vector.Vector Data.ProtoLens.Encoding.Growing.RealWorld NodeAddress+ -> Data.ProtoLens.Encoding.Bytes.Parser NodeUpdate+ loop x mutable'addresses mutable'nodeAddresses+ = do end <- Data.ProtoLens.Encoding.Bytes.atEnd+ if end then+ do frozen'addresses <- Data.ProtoLens.Encoding.Parser.Unsafe.unsafeLiftIO+ (Data.ProtoLens.Encoding.Growing.unsafeFreeze+ mutable'addresses)+ frozen'nodeAddresses <- Data.ProtoLens.Encoding.Parser.Unsafe.unsafeLiftIO+ (Data.ProtoLens.Encoding.Growing.unsafeFreeze+ mutable'nodeAddresses)+ (let missing = []+ in+ if Prelude.null missing then+ Prelude.return ()+ else+ Prelude.fail+ ((Prelude.++)+ "Missing required fields: "+ (Prelude.show (missing :: [Prelude.String]))))+ Prelude.return+ (Lens.Family2.over+ Data.ProtoLens.unknownFields (\ !t -> Prelude.reverse t)+ (Lens.Family2.set+ (Data.ProtoLens.Field.field @"vec'addresses") frozen'addresses+ (Lens.Family2.set+ (Data.ProtoLens.Field.field @"vec'nodeAddresses")+ frozen'nodeAddresses x)))+ else+ do tag <- Data.ProtoLens.Encoding.Bytes.getVarInt+ case tag of+ 10+ -> do !y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (do value <- do len <- Data.ProtoLens.Encoding.Bytes.getVarInt+ Data.ProtoLens.Encoding.Bytes.getBytes+ (Prelude.fromIntegral len)+ Data.ProtoLens.Encoding.Bytes.runEither+ (case Data.Text.Encoding.decodeUtf8' value of+ (Prelude.Left err)+ -> Prelude.Left (Prelude.show err)+ (Prelude.Right r) -> Prelude.Right r))+ "addresses"+ v <- Data.ProtoLens.Encoding.Parser.Unsafe.unsafeLiftIO+ (Data.ProtoLens.Encoding.Growing.append mutable'addresses y)+ loop x v mutable'nodeAddresses+ 18+ -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (do value <- do len <- Data.ProtoLens.Encoding.Bytes.getVarInt+ Data.ProtoLens.Encoding.Bytes.getBytes+ (Prelude.fromIntegral len)+ Data.ProtoLens.Encoding.Bytes.runEither+ (case Data.Text.Encoding.decodeUtf8' value of+ (Prelude.Left err)+ -> Prelude.Left (Prelude.show err)+ (Prelude.Right r) -> Prelude.Right r))+ "identity_key"+ loop+ (Lens.Family2.set (Data.ProtoLens.Field.field @"identityKey") y x)+ mutable'addresses mutable'nodeAddresses+ 26+ -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (do len <- Data.ProtoLens.Encoding.Bytes.getVarInt+ Data.ProtoLens.Encoding.Bytes.getBytes+ (Prelude.fromIntegral len))+ "global_features"+ loop+ (Lens.Family2.set+ (Data.ProtoLens.Field.field @"globalFeatures") y x)+ mutable'addresses mutable'nodeAddresses+ 34+ -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (do value <- do len <- Data.ProtoLens.Encoding.Bytes.getVarInt+ Data.ProtoLens.Encoding.Bytes.getBytes+ (Prelude.fromIntegral len)+ Data.ProtoLens.Encoding.Bytes.runEither+ (case Data.Text.Encoding.decodeUtf8' value of+ (Prelude.Left err)+ -> Prelude.Left (Prelude.show err)+ (Prelude.Right r) -> Prelude.Right r))+ "alias"+ loop+ (Lens.Family2.set (Data.ProtoLens.Field.field @"alias") y x)+ mutable'addresses mutable'nodeAddresses+ 42+ -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (do value <- do len <- Data.ProtoLens.Encoding.Bytes.getVarInt+ Data.ProtoLens.Encoding.Bytes.getBytes+ (Prelude.fromIntegral len)+ Data.ProtoLens.Encoding.Bytes.runEither+ (case Data.Text.Encoding.decodeUtf8' value of+ (Prelude.Left err)+ -> Prelude.Left (Prelude.show err)+ (Prelude.Right r) -> Prelude.Right r))+ "color"+ loop+ (Lens.Family2.set (Data.ProtoLens.Field.field @"color") y x)+ mutable'addresses mutable'nodeAddresses+ 58+ -> do !y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (do len <- Data.ProtoLens.Encoding.Bytes.getVarInt+ Data.ProtoLens.Encoding.Bytes.isolate+ (Prelude.fromIntegral len)+ Data.ProtoLens.parseMessage)+ "node_addresses"+ v <- Data.ProtoLens.Encoding.Parser.Unsafe.unsafeLiftIO+ (Data.ProtoLens.Encoding.Growing.append+ mutable'nodeAddresses y)+ loop x mutable'addresses v+ 50+ -> do !(entry :: NodeUpdate'FeaturesEntry) <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (do len <- Data.ProtoLens.Encoding.Bytes.getVarInt+ Data.ProtoLens.Encoding.Bytes.isolate+ (Prelude.fromIntegral+ len)+ Data.ProtoLens.parseMessage)+ "features"+ (let+ key = Lens.Family2.view (Data.ProtoLens.Field.field @"key") entry+ value+ = Lens.Family2.view (Data.ProtoLens.Field.field @"value") entry+ in+ loop+ (Lens.Family2.over+ (Data.ProtoLens.Field.field @"features")+ (\ !t -> Data.Map.insert key value t) x)+ mutable'addresses mutable'nodeAddresses)+ wire+ -> do !y <- Data.ProtoLens.Encoding.Wire.parseTaggedValueFromWire+ wire+ loop+ (Lens.Family2.over+ Data.ProtoLens.unknownFields (\ !t -> (:) y t) x)+ mutable'addresses mutable'nodeAddresses+ in+ (Data.ProtoLens.Encoding.Bytes.<?>)+ (do mutable'addresses <- Data.ProtoLens.Encoding.Parser.Unsafe.unsafeLiftIO+ Data.ProtoLens.Encoding.Growing.new+ mutable'nodeAddresses <- Data.ProtoLens.Encoding.Parser.Unsafe.unsafeLiftIO+ Data.ProtoLens.Encoding.Growing.new+ loop+ Data.ProtoLens.defMessage mutable'addresses mutable'nodeAddresses)+ "NodeUpdate"+ buildMessage+ = \ _x+ -> (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.foldMapBuilder+ (\ _v+ -> (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 10)+ ((Prelude..)+ (\ bs+ -> (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt+ (Prelude.fromIntegral (Data.ByteString.length bs)))+ (Data.ProtoLens.Encoding.Bytes.putBytes bs))+ Data.Text.Encoding.encodeUtf8 _v))+ (Lens.Family2.view+ (Data.ProtoLens.Field.field @"vec'addresses") _x))+ ((Data.Monoid.<>)+ (let+ _v+ = Lens.Family2.view (Data.ProtoLens.Field.field @"identityKey") _x+ in+ if (Prelude.==) _v Data.ProtoLens.fieldDefault then+ Data.Monoid.mempty+ else+ (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 18)+ ((Prelude..)+ (\ bs+ -> (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt+ (Prelude.fromIntegral (Data.ByteString.length bs)))+ (Data.ProtoLens.Encoding.Bytes.putBytes bs))+ Data.Text.Encoding.encodeUtf8 _v))+ ((Data.Monoid.<>)+ (let+ _v+ = Lens.Family2.view+ (Data.ProtoLens.Field.field @"globalFeatures") _x+ in+ if (Prelude.==) _v Data.ProtoLens.fieldDefault then+ Data.Monoid.mempty+ else+ (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 26)+ ((\ bs+ -> (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt+ (Prelude.fromIntegral (Data.ByteString.length bs)))+ (Data.ProtoLens.Encoding.Bytes.putBytes bs))+ _v))+ ((Data.Monoid.<>)+ (let+ _v = Lens.Family2.view (Data.ProtoLens.Field.field @"alias") _x+ in+ if (Prelude.==) _v Data.ProtoLens.fieldDefault then+ Data.Monoid.mempty+ else+ (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 34)+ ((Prelude..)+ (\ bs+ -> (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt+ (Prelude.fromIntegral (Data.ByteString.length bs)))+ (Data.ProtoLens.Encoding.Bytes.putBytes bs))+ Data.Text.Encoding.encodeUtf8 _v))+ ((Data.Monoid.<>)+ (let+ _v = Lens.Family2.view (Data.ProtoLens.Field.field @"color") _x+ in+ if (Prelude.==) _v Data.ProtoLens.fieldDefault then+ Data.Monoid.mempty+ else+ (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 42)+ ((Prelude..)+ (\ bs+ -> (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt+ (Prelude.fromIntegral (Data.ByteString.length bs)))+ (Data.ProtoLens.Encoding.Bytes.putBytes bs))+ Data.Text.Encoding.encodeUtf8 _v))+ ((Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.foldMapBuilder+ (\ _v+ -> (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 58)+ ((Prelude..)+ (\ bs+ -> (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt+ (Prelude.fromIntegral+ (Data.ByteString.length bs)))+ (Data.ProtoLens.Encoding.Bytes.putBytes bs))+ Data.ProtoLens.encodeMessage _v))+ (Lens.Family2.view+ (Data.ProtoLens.Field.field @"vec'nodeAddresses") _x))+ ((Data.Monoid.<>)+ (Data.Monoid.mconcat+ (Prelude.map+ (\ _v+ -> (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 50)+ ((Prelude..)+ (\ bs+ -> (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt+ (Prelude.fromIntegral+ (Data.ByteString.length bs)))+ (Data.ProtoLens.Encoding.Bytes.putBytes bs))+ Data.ProtoLens.encodeMessage+ (Lens.Family2.set+ (Data.ProtoLens.Field.field @"key")+ (Prelude.fst _v)+ (Lens.Family2.set+ (Data.ProtoLens.Field.field @"value")+ (Prelude.snd _v)+ (Data.ProtoLens.defMessage ::+ NodeUpdate'FeaturesEntry)))))+ (Data.Map.toList+ (Lens.Family2.view+ (Data.ProtoLens.Field.field @"features") _x))))+ (Data.ProtoLens.Encoding.Wire.buildFieldSet+ (Lens.Family2.view Data.ProtoLens.unknownFields _x))))))))+instance Control.DeepSeq.NFData NodeUpdate where+ rnf+ = \ x__+ -> Control.DeepSeq.deepseq+ (_NodeUpdate'_unknownFields x__)+ (Control.DeepSeq.deepseq+ (_NodeUpdate'addresses x__)+ (Control.DeepSeq.deepseq+ (_NodeUpdate'identityKey x__)+ (Control.DeepSeq.deepseq+ (_NodeUpdate'globalFeatures x__)+ (Control.DeepSeq.deepseq+ (_NodeUpdate'alias x__)+ (Control.DeepSeq.deepseq+ (_NodeUpdate'color x__)+ (Control.DeepSeq.deepseq+ (_NodeUpdate'nodeAddresses x__)+ (Control.DeepSeq.deepseq (_NodeUpdate'features x__) ())))))))+{- | Fields :+ + * 'Proto.Lnrpc.Ln0_Fields.key' @:: Lens' NodeUpdate'FeaturesEntry Data.Word.Word32@+ * 'Proto.Lnrpc.Ln0_Fields.value' @:: Lens' NodeUpdate'FeaturesEntry Feature@+ * 'Proto.Lnrpc.Ln0_Fields.maybe'value' @:: Lens' NodeUpdate'FeaturesEntry (Prelude.Maybe Feature)@ -}+data NodeUpdate'FeaturesEntry+ = NodeUpdate'FeaturesEntry'_constructor {_NodeUpdate'FeaturesEntry'key :: !Data.Word.Word32,+ _NodeUpdate'FeaturesEntry'value :: !(Prelude.Maybe Feature),+ _NodeUpdate'FeaturesEntry'_unknownFields :: !Data.ProtoLens.FieldSet}+ deriving stock (Prelude.Eq, Prelude.Ord, GHC.Generics.Generic)+instance Prelude.Show NodeUpdate'FeaturesEntry where+ showsPrec _ __x __s+ = Prelude.showChar+ '{'+ (Prelude.showString+ (Data.ProtoLens.showMessageShort __x) (Prelude.showChar '}' __s))+instance Text.PrettyPrint.GenericPretty.Out NodeUpdate'FeaturesEntry+instance Data.ProtoLens.Field.HasField NodeUpdate'FeaturesEntry "key" Data.Word.Word32 where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _NodeUpdate'FeaturesEntry'key+ (\ x__ y__ -> x__ {_NodeUpdate'FeaturesEntry'key = y__}))+ Prelude.id+instance Data.ProtoLens.Field.HasField NodeUpdate'FeaturesEntry "value" Feature where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _NodeUpdate'FeaturesEntry'value+ (\ x__ y__ -> x__ {_NodeUpdate'FeaturesEntry'value = y__}))+ (Data.ProtoLens.maybeLens Data.ProtoLens.defMessage)+instance Data.ProtoLens.Field.HasField NodeUpdate'FeaturesEntry "maybe'value" (Prelude.Maybe Feature) where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _NodeUpdate'FeaturesEntry'value+ (\ x__ y__ -> x__ {_NodeUpdate'FeaturesEntry'value = y__}))+ Prelude.id+instance Data.ProtoLens.Message NodeUpdate'FeaturesEntry where+ messageName _ = Data.Text.pack "lnrpc.NodeUpdate.FeaturesEntry"+ packedMessageDescriptor _+ = "\n\+ \\rFeaturesEntry\DC2\DLE\n\+ \\ETXkey\CAN\SOH \SOH(\rR\ETXkey\DC2$\n\+ \\ENQvalue\CAN\STX \SOH(\v2\SO.lnrpc.FeatureR\ENQvalue:\STX8\SOH"+ packedFileDescriptor _ = packedFileDescriptor+ fieldsByTag+ = let+ key__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "key"+ (Data.ProtoLens.ScalarField Data.ProtoLens.UInt32Field ::+ Data.ProtoLens.FieldTypeDescriptor Data.Word.Word32)+ (Data.ProtoLens.PlainField+ Data.ProtoLens.Optional (Data.ProtoLens.Field.field @"key")) ::+ Data.ProtoLens.FieldDescriptor NodeUpdate'FeaturesEntry+ value__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "value"+ (Data.ProtoLens.MessageField Data.ProtoLens.MessageType ::+ Data.ProtoLens.FieldTypeDescriptor Feature)+ (Data.ProtoLens.OptionalField+ (Data.ProtoLens.Field.field @"maybe'value")) ::+ Data.ProtoLens.FieldDescriptor NodeUpdate'FeaturesEntry+ in+ Data.Map.fromList+ [(Data.ProtoLens.Tag 1, key__field_descriptor),+ (Data.ProtoLens.Tag 2, value__field_descriptor)]+ unknownFields+ = Lens.Family2.Unchecked.lens+ _NodeUpdate'FeaturesEntry'_unknownFields+ (\ x__ y__ -> x__ {_NodeUpdate'FeaturesEntry'_unknownFields = y__})+ defMessage+ = NodeUpdate'FeaturesEntry'_constructor+ {_NodeUpdate'FeaturesEntry'key = Data.ProtoLens.fieldDefault,+ _NodeUpdate'FeaturesEntry'value = Prelude.Nothing,+ _NodeUpdate'FeaturesEntry'_unknownFields = []}+ parseMessage+ = let+ loop ::+ NodeUpdate'FeaturesEntry+ -> Data.ProtoLens.Encoding.Bytes.Parser NodeUpdate'FeaturesEntry+ loop x+ = do end <- Data.ProtoLens.Encoding.Bytes.atEnd+ if end then+ do (let missing = []+ in+ if Prelude.null missing then+ Prelude.return ()+ else+ Prelude.fail+ ((Prelude.++)+ "Missing required fields: "+ (Prelude.show (missing :: [Prelude.String]))))+ Prelude.return+ (Lens.Family2.over+ Data.ProtoLens.unknownFields (\ !t -> Prelude.reverse t) x)+ else+ do tag <- Data.ProtoLens.Encoding.Bytes.getVarInt+ case tag of+ 8 -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (Prelude.fmap+ Prelude.fromIntegral+ Data.ProtoLens.Encoding.Bytes.getVarInt)+ "key"+ loop (Lens.Family2.set (Data.ProtoLens.Field.field @"key") y x)+ 18+ -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (do len <- Data.ProtoLens.Encoding.Bytes.getVarInt+ Data.ProtoLens.Encoding.Bytes.isolate+ (Prelude.fromIntegral len) Data.ProtoLens.parseMessage)+ "value"+ loop (Lens.Family2.set (Data.ProtoLens.Field.field @"value") y x)+ wire+ -> do !y <- Data.ProtoLens.Encoding.Wire.parseTaggedValueFromWire+ wire+ loop+ (Lens.Family2.over+ Data.ProtoLens.unknownFields (\ !t -> (:) y t) x)+ in+ (Data.ProtoLens.Encoding.Bytes.<?>)+ (do loop Data.ProtoLens.defMessage) "FeaturesEntry"+ buildMessage+ = \ _x+ -> (Data.Monoid.<>)+ (let _v = Lens.Family2.view (Data.ProtoLens.Field.field @"key") _x+ in+ if (Prelude.==) _v Data.ProtoLens.fieldDefault then+ Data.Monoid.mempty+ else+ (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 8)+ ((Prelude..)+ Data.ProtoLens.Encoding.Bytes.putVarInt Prelude.fromIntegral _v))+ ((Data.Monoid.<>)+ (case+ Lens.Family2.view (Data.ProtoLens.Field.field @"maybe'value") _x+ of+ Prelude.Nothing -> Data.Monoid.mempty+ (Prelude.Just _v)+ -> (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 18)+ ((Prelude..)+ (\ bs+ -> (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt+ (Prelude.fromIntegral (Data.ByteString.length bs)))+ (Data.ProtoLens.Encoding.Bytes.putBytes bs))+ Data.ProtoLens.encodeMessage _v))+ (Data.ProtoLens.Encoding.Wire.buildFieldSet+ (Lens.Family2.view Data.ProtoLens.unknownFields _x)))+instance Control.DeepSeq.NFData NodeUpdate'FeaturesEntry where+ rnf+ = \ x__+ -> Control.DeepSeq.deepseq+ (_NodeUpdate'FeaturesEntry'_unknownFields x__)+ (Control.DeepSeq.deepseq+ (_NodeUpdate'FeaturesEntry'key x__)+ (Control.DeepSeq.deepseq (_NodeUpdate'FeaturesEntry'value x__) ()))+{- | Fields :+ + * 'Proto.Lnrpc.Ln0_Fields.txidBytes' @:: Lens' OutPoint Data.ByteString.ByteString@+ * 'Proto.Lnrpc.Ln0_Fields.txidStr' @:: Lens' OutPoint Data.Text.Text@+ * 'Proto.Lnrpc.Ln0_Fields.outputIndex' @:: Lens' OutPoint Data.Word.Word32@ -}+data OutPoint+ = OutPoint'_constructor {_OutPoint'txidBytes :: !Data.ByteString.ByteString,+ _OutPoint'txidStr :: !Data.Text.Text,+ _OutPoint'outputIndex :: !Data.Word.Word32,+ _OutPoint'_unknownFields :: !Data.ProtoLens.FieldSet}+ deriving stock (Prelude.Eq, Prelude.Ord, GHC.Generics.Generic)+instance Prelude.Show OutPoint where+ showsPrec _ __x __s+ = Prelude.showChar+ '{'+ (Prelude.showString+ (Data.ProtoLens.showMessageShort __x) (Prelude.showChar '}' __s))+instance Text.PrettyPrint.GenericPretty.Out OutPoint+instance Data.ProtoLens.Field.HasField OutPoint "txidBytes" Data.ByteString.ByteString where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _OutPoint'txidBytes (\ x__ y__ -> x__ {_OutPoint'txidBytes = y__}))+ Prelude.id+instance Data.ProtoLens.Field.HasField OutPoint "txidStr" Data.Text.Text where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _OutPoint'txidStr (\ x__ y__ -> x__ {_OutPoint'txidStr = y__}))+ Prelude.id+instance Data.ProtoLens.Field.HasField OutPoint "outputIndex" Data.Word.Word32 where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _OutPoint'outputIndex+ (\ x__ y__ -> x__ {_OutPoint'outputIndex = y__}))+ Prelude.id+instance Data.ProtoLens.Message OutPoint where+ messageName _ = Data.Text.pack "lnrpc.OutPoint"+ packedMessageDescriptor _+ = "\n\+ \\bOutPoint\DC2\GS\n\+ \\n\+ \txid_bytes\CAN\SOH \SOH(\fR\ttxidBytes\DC2\EM\n\+ \\btxid_str\CAN\STX \SOH(\tR\atxidStr\DC2!\n\+ \\foutput_index\CAN\ETX \SOH(\rR\voutputIndex"+ packedFileDescriptor _ = packedFileDescriptor+ fieldsByTag+ = let+ txidBytes__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "txid_bytes"+ (Data.ProtoLens.ScalarField Data.ProtoLens.BytesField ::+ Data.ProtoLens.FieldTypeDescriptor Data.ByteString.ByteString)+ (Data.ProtoLens.PlainField+ Data.ProtoLens.Optional+ (Data.ProtoLens.Field.field @"txidBytes")) ::+ Data.ProtoLens.FieldDescriptor OutPoint+ txidStr__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "txid_str"+ (Data.ProtoLens.ScalarField Data.ProtoLens.StringField ::+ Data.ProtoLens.FieldTypeDescriptor Data.Text.Text)+ (Data.ProtoLens.PlainField+ Data.ProtoLens.Optional (Data.ProtoLens.Field.field @"txidStr")) ::+ Data.ProtoLens.FieldDescriptor OutPoint+ outputIndex__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "output_index"+ (Data.ProtoLens.ScalarField Data.ProtoLens.UInt32Field ::+ Data.ProtoLens.FieldTypeDescriptor Data.Word.Word32)+ (Data.ProtoLens.PlainField+ Data.ProtoLens.Optional+ (Data.ProtoLens.Field.field @"outputIndex")) ::+ Data.ProtoLens.FieldDescriptor OutPoint+ in+ Data.Map.fromList+ [(Data.ProtoLens.Tag 1, txidBytes__field_descriptor),+ (Data.ProtoLens.Tag 2, txidStr__field_descriptor),+ (Data.ProtoLens.Tag 3, outputIndex__field_descriptor)]+ unknownFields+ = Lens.Family2.Unchecked.lens+ _OutPoint'_unknownFields+ (\ x__ y__ -> x__ {_OutPoint'_unknownFields = y__})+ defMessage+ = OutPoint'_constructor+ {_OutPoint'txidBytes = Data.ProtoLens.fieldDefault,+ _OutPoint'txidStr = Data.ProtoLens.fieldDefault,+ _OutPoint'outputIndex = Data.ProtoLens.fieldDefault,+ _OutPoint'_unknownFields = []}+ parseMessage+ = let+ loop :: OutPoint -> Data.ProtoLens.Encoding.Bytes.Parser OutPoint+ loop x+ = do end <- Data.ProtoLens.Encoding.Bytes.atEnd+ if end then+ do (let missing = []+ in+ if Prelude.null missing then+ Prelude.return ()+ else+ Prelude.fail+ ((Prelude.++)+ "Missing required fields: "+ (Prelude.show (missing :: [Prelude.String]))))+ Prelude.return+ (Lens.Family2.over+ Data.ProtoLens.unknownFields (\ !t -> Prelude.reverse t) x)+ else+ do tag <- Data.ProtoLens.Encoding.Bytes.getVarInt+ case tag of+ 10+ -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (do len <- Data.ProtoLens.Encoding.Bytes.getVarInt+ Data.ProtoLens.Encoding.Bytes.getBytes+ (Prelude.fromIntegral len))+ "txid_bytes"+ loop+ (Lens.Family2.set (Data.ProtoLens.Field.field @"txidBytes") y x)+ 18+ -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (do value <- do len <- Data.ProtoLens.Encoding.Bytes.getVarInt+ Data.ProtoLens.Encoding.Bytes.getBytes+ (Prelude.fromIntegral len)+ Data.ProtoLens.Encoding.Bytes.runEither+ (case Data.Text.Encoding.decodeUtf8' value of+ (Prelude.Left err)+ -> Prelude.Left (Prelude.show err)+ (Prelude.Right r) -> Prelude.Right r))+ "txid_str"+ loop (Lens.Family2.set (Data.ProtoLens.Field.field @"txidStr") y x)+ 24+ -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (Prelude.fmap+ Prelude.fromIntegral+ Data.ProtoLens.Encoding.Bytes.getVarInt)+ "output_index"+ loop+ (Lens.Family2.set (Data.ProtoLens.Field.field @"outputIndex") y x)+ wire+ -> do !y <- Data.ProtoLens.Encoding.Wire.parseTaggedValueFromWire+ wire+ loop+ (Lens.Family2.over+ Data.ProtoLens.unknownFields (\ !t -> (:) y t) x)+ in+ (Data.ProtoLens.Encoding.Bytes.<?>)+ (do loop Data.ProtoLens.defMessage) "OutPoint"+ buildMessage+ = \ _x+ -> (Data.Monoid.<>)+ (let+ _v = Lens.Family2.view (Data.ProtoLens.Field.field @"txidBytes") _x+ in+ if (Prelude.==) _v Data.ProtoLens.fieldDefault then+ Data.Monoid.mempty+ else+ (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 10)+ ((\ bs+ -> (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt+ (Prelude.fromIntegral (Data.ByteString.length bs)))+ (Data.ProtoLens.Encoding.Bytes.putBytes bs))+ _v))+ ((Data.Monoid.<>)+ (let+ _v = Lens.Family2.view (Data.ProtoLens.Field.field @"txidStr") _x+ in+ if (Prelude.==) _v Data.ProtoLens.fieldDefault then+ Data.Monoid.mempty+ else+ (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 18)+ ((Prelude..)+ (\ bs+ -> (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt+ (Prelude.fromIntegral (Data.ByteString.length bs)))+ (Data.ProtoLens.Encoding.Bytes.putBytes bs))+ Data.Text.Encoding.encodeUtf8 _v))+ ((Data.Monoid.<>)+ (let+ _v+ = Lens.Family2.view (Data.ProtoLens.Field.field @"outputIndex") _x+ in+ if (Prelude.==) _v Data.ProtoLens.fieldDefault then+ Data.Monoid.mempty+ else+ (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 24)+ ((Prelude..)+ Data.ProtoLens.Encoding.Bytes.putVarInt Prelude.fromIntegral _v))+ (Data.ProtoLens.Encoding.Wire.buildFieldSet+ (Lens.Family2.view Data.ProtoLens.unknownFields _x))))+instance Control.DeepSeq.NFData OutPoint where+ rnf+ = \ x__+ -> Control.DeepSeq.deepseq+ (_OutPoint'_unknownFields x__)+ (Control.DeepSeq.deepseq+ (_OutPoint'txidBytes x__)+ (Control.DeepSeq.deepseq+ (_OutPoint'txidStr x__)+ (Control.DeepSeq.deepseq (_OutPoint'outputIndex x__) ())))+{- | Fields :+ -}+data PendingChannelsRequest+ = PendingChannelsRequest'_constructor {_PendingChannelsRequest'_unknownFields :: !Data.ProtoLens.FieldSet}+ deriving stock (Prelude.Eq, Prelude.Ord, GHC.Generics.Generic)+instance Prelude.Show PendingChannelsRequest where+ showsPrec _ __x __s+ = Prelude.showChar+ '{'+ (Prelude.showString+ (Data.ProtoLens.showMessageShort __x) (Prelude.showChar '}' __s))+instance Text.PrettyPrint.GenericPretty.Out PendingChannelsRequest+instance Data.ProtoLens.Message PendingChannelsRequest where+ messageName _ = Data.Text.pack "lnrpc.PendingChannelsRequest"+ packedMessageDescriptor _+ = "\n\+ \\SYNPendingChannelsRequest"+ packedFileDescriptor _ = packedFileDescriptor+ fieldsByTag = let in Data.Map.fromList []+ unknownFields+ = Lens.Family2.Unchecked.lens+ _PendingChannelsRequest'_unknownFields+ (\ x__ y__ -> x__ {_PendingChannelsRequest'_unknownFields = y__})+ defMessage+ = PendingChannelsRequest'_constructor+ {_PendingChannelsRequest'_unknownFields = []}+ parseMessage+ = let+ loop ::+ PendingChannelsRequest+ -> Data.ProtoLens.Encoding.Bytes.Parser PendingChannelsRequest+ loop x+ = do end <- Data.ProtoLens.Encoding.Bytes.atEnd+ if end then+ do (let missing = []+ in+ if Prelude.null missing then+ Prelude.return ()+ else+ Prelude.fail+ ((Prelude.++)+ "Missing required fields: "+ (Prelude.show (missing :: [Prelude.String]))))+ Prelude.return+ (Lens.Family2.over+ Data.ProtoLens.unknownFields (\ !t -> Prelude.reverse t) x)+ else+ do tag <- Data.ProtoLens.Encoding.Bytes.getVarInt+ case tag of {+ wire+ -> do !y <- Data.ProtoLens.Encoding.Wire.parseTaggedValueFromWire+ wire+ loop+ (Lens.Family2.over+ Data.ProtoLens.unknownFields (\ !t -> (:) y t) x) }+ in+ (Data.ProtoLens.Encoding.Bytes.<?>)+ (do loop Data.ProtoLens.defMessage) "PendingChannelsRequest"+ buildMessage+ = \ _x+ -> Data.ProtoLens.Encoding.Wire.buildFieldSet+ (Lens.Family2.view Data.ProtoLens.unknownFields _x)+instance Control.DeepSeq.NFData PendingChannelsRequest where+ rnf+ = \ x__+ -> Control.DeepSeq.deepseq+ (_PendingChannelsRequest'_unknownFields x__) ()+{- | Fields :+ + * 'Proto.Lnrpc.Ln0_Fields.totalLimboBalance' @:: Lens' PendingChannelsResponse Data.Int.Int64@+ * 'Proto.Lnrpc.Ln0_Fields.pendingOpenChannels' @:: Lens' PendingChannelsResponse [PendingChannelsResponse'PendingOpenChannel]@+ * 'Proto.Lnrpc.Ln0_Fields.vec'pendingOpenChannels' @:: Lens' PendingChannelsResponse (Data.Vector.Vector PendingChannelsResponse'PendingOpenChannel)@+ * 'Proto.Lnrpc.Ln0_Fields.pendingClosingChannels' @:: Lens' PendingChannelsResponse [PendingChannelsResponse'ClosedChannel]@+ * 'Proto.Lnrpc.Ln0_Fields.vec'pendingClosingChannels' @:: Lens' PendingChannelsResponse (Data.Vector.Vector PendingChannelsResponse'ClosedChannel)@+ * 'Proto.Lnrpc.Ln0_Fields.pendingForceClosingChannels' @:: Lens' PendingChannelsResponse [PendingChannelsResponse'ForceClosedChannel]@+ * 'Proto.Lnrpc.Ln0_Fields.vec'pendingForceClosingChannels' @:: Lens' PendingChannelsResponse (Data.Vector.Vector PendingChannelsResponse'ForceClosedChannel)@+ * 'Proto.Lnrpc.Ln0_Fields.waitingCloseChannels' @:: Lens' PendingChannelsResponse [PendingChannelsResponse'WaitingCloseChannel]@+ * 'Proto.Lnrpc.Ln0_Fields.vec'waitingCloseChannels' @:: Lens' PendingChannelsResponse (Data.Vector.Vector PendingChannelsResponse'WaitingCloseChannel)@ -}+data PendingChannelsResponse+ = PendingChannelsResponse'_constructor {_PendingChannelsResponse'totalLimboBalance :: !Data.Int.Int64,+ _PendingChannelsResponse'pendingOpenChannels :: !(Data.Vector.Vector PendingChannelsResponse'PendingOpenChannel),+ _PendingChannelsResponse'pendingClosingChannels :: !(Data.Vector.Vector PendingChannelsResponse'ClosedChannel),+ _PendingChannelsResponse'pendingForceClosingChannels :: !(Data.Vector.Vector PendingChannelsResponse'ForceClosedChannel),+ _PendingChannelsResponse'waitingCloseChannels :: !(Data.Vector.Vector PendingChannelsResponse'WaitingCloseChannel),+ _PendingChannelsResponse'_unknownFields :: !Data.ProtoLens.FieldSet}+ deriving stock (Prelude.Eq, Prelude.Ord, GHC.Generics.Generic)+instance Prelude.Show PendingChannelsResponse where+ showsPrec _ __x __s+ = Prelude.showChar+ '{'+ (Prelude.showString+ (Data.ProtoLens.showMessageShort __x) (Prelude.showChar '}' __s))+instance Text.PrettyPrint.GenericPretty.Out PendingChannelsResponse+instance Data.ProtoLens.Field.HasField PendingChannelsResponse "totalLimboBalance" Data.Int.Int64 where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _PendingChannelsResponse'totalLimboBalance+ (\ x__ y__+ -> x__ {_PendingChannelsResponse'totalLimboBalance = y__}))+ Prelude.id+instance Data.ProtoLens.Field.HasField PendingChannelsResponse "pendingOpenChannels" [PendingChannelsResponse'PendingOpenChannel] where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _PendingChannelsResponse'pendingOpenChannels+ (\ x__ y__+ -> x__ {_PendingChannelsResponse'pendingOpenChannels = y__}))+ (Lens.Family2.Unchecked.lens+ Data.Vector.Generic.toList+ (\ _ y__ -> Data.Vector.Generic.fromList y__))+instance Data.ProtoLens.Field.HasField PendingChannelsResponse "vec'pendingOpenChannels" (Data.Vector.Vector PendingChannelsResponse'PendingOpenChannel) where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _PendingChannelsResponse'pendingOpenChannels+ (\ x__ y__+ -> x__ {_PendingChannelsResponse'pendingOpenChannels = y__}))+ Prelude.id+instance Data.ProtoLens.Field.HasField PendingChannelsResponse "pendingClosingChannels" [PendingChannelsResponse'ClosedChannel] where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _PendingChannelsResponse'pendingClosingChannels+ (\ x__ y__+ -> x__ {_PendingChannelsResponse'pendingClosingChannels = y__}))+ (Lens.Family2.Unchecked.lens+ Data.Vector.Generic.toList+ (\ _ y__ -> Data.Vector.Generic.fromList y__))+instance Data.ProtoLens.Field.HasField PendingChannelsResponse "vec'pendingClosingChannels" (Data.Vector.Vector PendingChannelsResponse'ClosedChannel) where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _PendingChannelsResponse'pendingClosingChannels+ (\ x__ y__+ -> x__ {_PendingChannelsResponse'pendingClosingChannels = y__}))+ Prelude.id+instance Data.ProtoLens.Field.HasField PendingChannelsResponse "pendingForceClosingChannels" [PendingChannelsResponse'ForceClosedChannel] where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _PendingChannelsResponse'pendingForceClosingChannels+ (\ x__ y__+ -> x__+ {_PendingChannelsResponse'pendingForceClosingChannels = y__}))+ (Lens.Family2.Unchecked.lens+ Data.Vector.Generic.toList+ (\ _ y__ -> Data.Vector.Generic.fromList y__))+instance Data.ProtoLens.Field.HasField PendingChannelsResponse "vec'pendingForceClosingChannels" (Data.Vector.Vector PendingChannelsResponse'ForceClosedChannel) where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _PendingChannelsResponse'pendingForceClosingChannels+ (\ x__ y__+ -> x__+ {_PendingChannelsResponse'pendingForceClosingChannels = y__}))+ Prelude.id+instance Data.ProtoLens.Field.HasField PendingChannelsResponse "waitingCloseChannels" [PendingChannelsResponse'WaitingCloseChannel] where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _PendingChannelsResponse'waitingCloseChannels+ (\ x__ y__+ -> x__ {_PendingChannelsResponse'waitingCloseChannels = y__}))+ (Lens.Family2.Unchecked.lens+ Data.Vector.Generic.toList+ (\ _ y__ -> Data.Vector.Generic.fromList y__))+instance Data.ProtoLens.Field.HasField PendingChannelsResponse "vec'waitingCloseChannels" (Data.Vector.Vector PendingChannelsResponse'WaitingCloseChannel) where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _PendingChannelsResponse'waitingCloseChannels+ (\ x__ y__+ -> x__ {_PendingChannelsResponse'waitingCloseChannels = y__}))+ Prelude.id+instance Data.ProtoLens.Message PendingChannelsResponse where+ messageName _ = Data.Text.pack "lnrpc.PendingChannelsResponse"+ packedMessageDescriptor _+ = "\n\+ \\ETBPendingChannelsResponse\DC2.\n\+ \\DC3total_limbo_balance\CAN\SOH \SOH(\ETXR\DC1totalLimboBalance\DC2e\n\+ \\NAKpending_open_channels\CAN\STX \ETX(\v21.lnrpc.PendingChannelsResponse.PendingOpenChannelR\DC3pendingOpenChannels\DC2j\n\+ \\CANpending_closing_channels\CAN\ETX \ETX(\v2,.lnrpc.PendingChannelsResponse.ClosedChannelR\SYNpendingClosingChannelsB\STX\CAN\SOH\DC2v\n\+ \\RSpending_force_closing_channels\CAN\EOT \ETX(\v21.lnrpc.PendingChannelsResponse.ForceClosedChannelR\ESCpendingForceClosingChannels\DC2h\n\+ \\SYNwaiting_close_channels\CAN\ENQ \ETX(\v22.lnrpc.PendingChannelsResponse.WaitingCloseChannelR\DC4waitingCloseChannels\SUB\217\ETX\n\+ \\SOPendingChannel\DC2&\n\+ \\SIremote_node_pub\CAN\SOH \SOH(\tR\rremoteNodePub\DC2#\n\+ \\rchannel_point\CAN\STX \SOH(\tR\fchannelPoint\DC2\SUB\n\+ \\bcapacity\CAN\ETX \SOH(\ETXR\bcapacity\DC2#\n\+ \\rlocal_balance\CAN\EOT \SOH(\ETXR\flocalBalance\DC2%\n\+ \\SOremote_balance\CAN\ENQ \SOH(\ETXR\rremoteBalance\DC23\n\+ \\SYNlocal_chan_reserve_sat\CAN\ACK \SOH(\ETXR\DC3localChanReserveSat\DC25\n\+ \\ETBremote_chan_reserve_sat\CAN\a \SOH(\ETXR\DC4remoteChanReserveSat\DC2.\n\+ \\tinitiator\CAN\b \SOH(\SO2\DLE.lnrpc.InitiatorR\tinitiator\DC2>\n\+ \\SIcommitment_type\CAN\t \SOH(\SO2\NAK.lnrpc.CommitmentTypeR\SOcommitmentType\DC26\n\+ \\ETBnum_forwarding_packages\CAN\n\+ \ \SOH(\ETXR\NAKnumForwardingPackages\SUB\240\SOH\n\+ \\DC2PendingOpenChannel\DC2G\n\+ \\achannel\CAN\SOH \SOH(\v2-.lnrpc.PendingChannelsResponse.PendingChannelR\achannel\DC2/\n\+ \\DC3confirmation_height\CAN\STX \SOH(\rR\DC2confirmationHeight\DC2\GS\n\+ \\n\+ \commit_fee\CAN\EOT \SOH(\ETXR\tcommitFee\DC2#\n\+ \\rcommit_weight\CAN\ENQ \SOH(\ETXR\fcommitWeight\DC2\FS\n\+ \\n\+ \fee_per_kw\CAN\ACK \SOH(\ETXR\bfeePerKw\SUB\209\SOH\n\+ \\DC3WaitingCloseChannel\DC2G\n\+ \\achannel\CAN\SOH \SOH(\v2-.lnrpc.PendingChannelsResponse.PendingChannelR\achannel\DC2#\n\+ \\rlimbo_balance\CAN\STX \SOH(\ETXR\flimboBalance\DC2L\n\+ \\vcommitments\CAN\ETX \SOH(\v2*.lnrpc.PendingChannelsResponse.CommitmentsR\vcommitments\SUB\163\STX\n\+ \\vCommitments\DC2\GS\n\+ \\n\+ \local_txid\CAN\SOH \SOH(\tR\tlocalTxid\DC2\US\n\+ \\vremote_txid\CAN\STX \SOH(\tR\n\+ \remoteTxid\DC2.\n\+ \\DC3remote_pending_txid\CAN\ETX \SOH(\tR\DC1remotePendingTxid\DC2/\n\+ \\DC4local_commit_fee_sat\CAN\EOT \SOH(\EOTR\DC1localCommitFeeSat\DC21\n\+ \\NAKremote_commit_fee_sat\CAN\ENQ \SOH(\EOTR\DC2remoteCommitFeeSat\DC2@\n\+ \\GSremote_pending_commit_fee_sat\CAN\ACK \SOH(\EOTR\EMremotePendingCommitFeeSat\SUB{\n\+ \\rClosedChannel\DC2G\n\+ \\achannel\CAN\SOH \SOH(\v2-.lnrpc.PendingChannelsResponse.PendingChannelR\achannel\DC2!\n\+ \\fclosing_txid\CAN\STX \SOH(\tR\vclosingTxid\SUB\238\ETX\n\+ \\DC2ForceClosedChannel\DC2G\n\+ \\achannel\CAN\SOH \SOH(\v2-.lnrpc.PendingChannelsResponse.PendingChannelR\achannel\DC2!\n\+ \\fclosing_txid\CAN\STX \SOH(\tR\vclosingTxid\DC2#\n\+ \\rlimbo_balance\CAN\ETX \SOH(\ETXR\flimboBalance\DC2'\n\+ \\SImaturity_height\CAN\EOT \SOH(\rR\SOmaturityHeight\DC2.\n\+ \\DC3blocks_til_maturity\CAN\ENQ \SOH(\ENQR\DC1blocksTilMaturity\DC2+\n\+ \\DC1recovered_balance\CAN\ACK \SOH(\ETXR\DLErecoveredBalance\DC27\n\+ \\rpending_htlcs\CAN\b \ETX(\v2\DC2.lnrpc.PendingHTLCR\fpendingHtlcs\DC2U\n\+ \\ACKanchor\CAN\t \SOH(\SO2=.lnrpc.PendingChannelsResponse.ForceClosedChannel.AnchorStateR\ACKanchor\"1\n\+ \\vAnchorState\DC2\t\n\+ \\ENQLIMBO\DLE\NUL\DC2\r\n\+ \\tRECOVERED\DLE\SOH\DC2\b\n\+ \\EOTLOST\DLE\STX"+ packedFileDescriptor _ = packedFileDescriptor+ fieldsByTag+ = let+ totalLimboBalance__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "total_limbo_balance"+ (Data.ProtoLens.ScalarField Data.ProtoLens.Int64Field ::+ Data.ProtoLens.FieldTypeDescriptor Data.Int.Int64)+ (Data.ProtoLens.PlainField+ Data.ProtoLens.Optional+ (Data.ProtoLens.Field.field @"totalLimboBalance")) ::+ Data.ProtoLens.FieldDescriptor PendingChannelsResponse+ pendingOpenChannels__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "pending_open_channels"+ (Data.ProtoLens.MessageField Data.ProtoLens.MessageType ::+ Data.ProtoLens.FieldTypeDescriptor PendingChannelsResponse'PendingOpenChannel)+ (Data.ProtoLens.RepeatedField+ Data.ProtoLens.Unpacked+ (Data.ProtoLens.Field.field @"pendingOpenChannels")) ::+ Data.ProtoLens.FieldDescriptor PendingChannelsResponse+ pendingClosingChannels__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "pending_closing_channels"+ (Data.ProtoLens.MessageField Data.ProtoLens.MessageType ::+ Data.ProtoLens.FieldTypeDescriptor PendingChannelsResponse'ClosedChannel)+ (Data.ProtoLens.RepeatedField+ Data.ProtoLens.Unpacked+ (Data.ProtoLens.Field.field @"pendingClosingChannels")) ::+ Data.ProtoLens.FieldDescriptor PendingChannelsResponse+ pendingForceClosingChannels__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "pending_force_closing_channels"+ (Data.ProtoLens.MessageField Data.ProtoLens.MessageType ::+ Data.ProtoLens.FieldTypeDescriptor PendingChannelsResponse'ForceClosedChannel)+ (Data.ProtoLens.RepeatedField+ Data.ProtoLens.Unpacked+ (Data.ProtoLens.Field.field @"pendingForceClosingChannels")) ::+ Data.ProtoLens.FieldDescriptor PendingChannelsResponse+ waitingCloseChannels__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "waiting_close_channels"+ (Data.ProtoLens.MessageField Data.ProtoLens.MessageType ::+ Data.ProtoLens.FieldTypeDescriptor PendingChannelsResponse'WaitingCloseChannel)+ (Data.ProtoLens.RepeatedField+ Data.ProtoLens.Unpacked+ (Data.ProtoLens.Field.field @"waitingCloseChannels")) ::+ Data.ProtoLens.FieldDescriptor PendingChannelsResponse+ in+ Data.Map.fromList+ [(Data.ProtoLens.Tag 1, totalLimboBalance__field_descriptor),+ (Data.ProtoLens.Tag 2, pendingOpenChannels__field_descriptor),+ (Data.ProtoLens.Tag 3, pendingClosingChannels__field_descriptor),+ (Data.ProtoLens.Tag 4, + pendingForceClosingChannels__field_descriptor),+ (Data.ProtoLens.Tag 5, waitingCloseChannels__field_descriptor)]+ unknownFields+ = Lens.Family2.Unchecked.lens+ _PendingChannelsResponse'_unknownFields+ (\ x__ y__ -> x__ {_PendingChannelsResponse'_unknownFields = y__})+ defMessage+ = PendingChannelsResponse'_constructor+ {_PendingChannelsResponse'totalLimboBalance = Data.ProtoLens.fieldDefault,+ _PendingChannelsResponse'pendingOpenChannels = Data.Vector.Generic.empty,+ _PendingChannelsResponse'pendingClosingChannels = Data.Vector.Generic.empty,+ _PendingChannelsResponse'pendingForceClosingChannels = Data.Vector.Generic.empty,+ _PendingChannelsResponse'waitingCloseChannels = Data.Vector.Generic.empty,+ _PendingChannelsResponse'_unknownFields = []}+ parseMessage+ = let+ loop ::+ PendingChannelsResponse+ -> Data.ProtoLens.Encoding.Growing.Growing Data.Vector.Vector Data.ProtoLens.Encoding.Growing.RealWorld PendingChannelsResponse'ClosedChannel+ -> Data.ProtoLens.Encoding.Growing.Growing Data.Vector.Vector Data.ProtoLens.Encoding.Growing.RealWorld PendingChannelsResponse'ForceClosedChannel+ -> Data.ProtoLens.Encoding.Growing.Growing Data.Vector.Vector Data.ProtoLens.Encoding.Growing.RealWorld PendingChannelsResponse'PendingOpenChannel+ -> Data.ProtoLens.Encoding.Growing.Growing Data.Vector.Vector Data.ProtoLens.Encoding.Growing.RealWorld PendingChannelsResponse'WaitingCloseChannel+ -> Data.ProtoLens.Encoding.Bytes.Parser PendingChannelsResponse+ loop+ x+ mutable'pendingClosingChannels+ mutable'pendingForceClosingChannels+ mutable'pendingOpenChannels+ mutable'waitingCloseChannels+ = do end <- Data.ProtoLens.Encoding.Bytes.atEnd+ if end then+ do frozen'pendingClosingChannels <- Data.ProtoLens.Encoding.Parser.Unsafe.unsafeLiftIO+ (Data.ProtoLens.Encoding.Growing.unsafeFreeze+ mutable'pendingClosingChannels)+ frozen'pendingForceClosingChannels <- Data.ProtoLens.Encoding.Parser.Unsafe.unsafeLiftIO+ (Data.ProtoLens.Encoding.Growing.unsafeFreeze+ mutable'pendingForceClosingChannels)+ frozen'pendingOpenChannels <- Data.ProtoLens.Encoding.Parser.Unsafe.unsafeLiftIO+ (Data.ProtoLens.Encoding.Growing.unsafeFreeze+ mutable'pendingOpenChannels)+ frozen'waitingCloseChannels <- Data.ProtoLens.Encoding.Parser.Unsafe.unsafeLiftIO+ (Data.ProtoLens.Encoding.Growing.unsafeFreeze+ mutable'waitingCloseChannels)+ (let missing = []+ in+ if Prelude.null missing then+ Prelude.return ()+ else+ Prelude.fail+ ((Prelude.++)+ "Missing required fields: "+ (Prelude.show (missing :: [Prelude.String]))))+ Prelude.return+ (Lens.Family2.over+ Data.ProtoLens.unknownFields (\ !t -> Prelude.reverse t)+ (Lens.Family2.set+ (Data.ProtoLens.Field.field @"vec'pendingClosingChannels")+ frozen'pendingClosingChannels+ (Lens.Family2.set+ (Data.ProtoLens.Field.field @"vec'pendingForceClosingChannels")+ frozen'pendingForceClosingChannels+ (Lens.Family2.set+ (Data.ProtoLens.Field.field @"vec'pendingOpenChannels")+ frozen'pendingOpenChannels+ (Lens.Family2.set+ (Data.ProtoLens.Field.field @"vec'waitingCloseChannels")+ frozen'waitingCloseChannels x)))))+ else+ do tag <- Data.ProtoLens.Encoding.Bytes.getVarInt+ case tag of+ 8 -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (Prelude.fmap+ Prelude.fromIntegral+ Data.ProtoLens.Encoding.Bytes.getVarInt)+ "total_limbo_balance"+ loop+ (Lens.Family2.set+ (Data.ProtoLens.Field.field @"totalLimboBalance") y x)+ mutable'pendingClosingChannels mutable'pendingForceClosingChannels+ mutable'pendingOpenChannels mutable'waitingCloseChannels+ 18+ -> do !y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (do len <- Data.ProtoLens.Encoding.Bytes.getVarInt+ Data.ProtoLens.Encoding.Bytes.isolate+ (Prelude.fromIntegral len)+ Data.ProtoLens.parseMessage)+ "pending_open_channels"+ v <- Data.ProtoLens.Encoding.Parser.Unsafe.unsafeLiftIO+ (Data.ProtoLens.Encoding.Growing.append+ mutable'pendingOpenChannels y)+ loop+ x mutable'pendingClosingChannels+ mutable'pendingForceClosingChannels v mutable'waitingCloseChannels+ 26+ -> do !y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (do len <- Data.ProtoLens.Encoding.Bytes.getVarInt+ Data.ProtoLens.Encoding.Bytes.isolate+ (Prelude.fromIntegral len)+ Data.ProtoLens.parseMessage)+ "pending_closing_channels"+ v <- Data.ProtoLens.Encoding.Parser.Unsafe.unsafeLiftIO+ (Data.ProtoLens.Encoding.Growing.append+ mutable'pendingClosingChannels y)+ loop+ x v mutable'pendingForceClosingChannels+ mutable'pendingOpenChannels mutable'waitingCloseChannels+ 34+ -> do !y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (do len <- Data.ProtoLens.Encoding.Bytes.getVarInt+ Data.ProtoLens.Encoding.Bytes.isolate+ (Prelude.fromIntegral len)+ Data.ProtoLens.parseMessage)+ "pending_force_closing_channels"+ v <- Data.ProtoLens.Encoding.Parser.Unsafe.unsafeLiftIO+ (Data.ProtoLens.Encoding.Growing.append+ mutable'pendingForceClosingChannels y)+ loop+ x mutable'pendingClosingChannels v mutable'pendingOpenChannels+ mutable'waitingCloseChannels+ 42+ -> do !y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (do len <- Data.ProtoLens.Encoding.Bytes.getVarInt+ Data.ProtoLens.Encoding.Bytes.isolate+ (Prelude.fromIntegral len)+ Data.ProtoLens.parseMessage)+ "waiting_close_channels"+ v <- Data.ProtoLens.Encoding.Parser.Unsafe.unsafeLiftIO+ (Data.ProtoLens.Encoding.Growing.append+ mutable'waitingCloseChannels y)+ loop+ x mutable'pendingClosingChannels+ mutable'pendingForceClosingChannels mutable'pendingOpenChannels v+ wire+ -> do !y <- Data.ProtoLens.Encoding.Wire.parseTaggedValueFromWire+ wire+ loop+ (Lens.Family2.over+ Data.ProtoLens.unknownFields (\ !t -> (:) y t) x)+ mutable'pendingClosingChannels mutable'pendingForceClosingChannels+ mutable'pendingOpenChannels mutable'waitingCloseChannels+ in+ (Data.ProtoLens.Encoding.Bytes.<?>)+ (do mutable'pendingClosingChannels <- Data.ProtoLens.Encoding.Parser.Unsafe.unsafeLiftIO+ Data.ProtoLens.Encoding.Growing.new+ mutable'pendingForceClosingChannels <- Data.ProtoLens.Encoding.Parser.Unsafe.unsafeLiftIO+ Data.ProtoLens.Encoding.Growing.new+ mutable'pendingOpenChannels <- Data.ProtoLens.Encoding.Parser.Unsafe.unsafeLiftIO+ Data.ProtoLens.Encoding.Growing.new+ mutable'waitingCloseChannels <- Data.ProtoLens.Encoding.Parser.Unsafe.unsafeLiftIO+ Data.ProtoLens.Encoding.Growing.new+ loop+ Data.ProtoLens.defMessage mutable'pendingClosingChannels+ mutable'pendingForceClosingChannels mutable'pendingOpenChannels+ mutable'waitingCloseChannels)+ "PendingChannelsResponse"+ buildMessage+ = \ _x+ -> (Data.Monoid.<>)+ (let+ _v+ = Lens.Family2.view+ (Data.ProtoLens.Field.field @"totalLimboBalance") _x+ in+ if (Prelude.==) _v Data.ProtoLens.fieldDefault then+ Data.Monoid.mempty+ else+ (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 8)+ ((Prelude..)+ Data.ProtoLens.Encoding.Bytes.putVarInt Prelude.fromIntegral _v))+ ((Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.foldMapBuilder+ (\ _v+ -> (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 18)+ ((Prelude..)+ (\ bs+ -> (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt+ (Prelude.fromIntegral (Data.ByteString.length bs)))+ (Data.ProtoLens.Encoding.Bytes.putBytes bs))+ Data.ProtoLens.encodeMessage _v))+ (Lens.Family2.view+ (Data.ProtoLens.Field.field @"vec'pendingOpenChannels") _x))+ ((Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.foldMapBuilder+ (\ _v+ -> (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 26)+ ((Prelude..)+ (\ bs+ -> (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt+ (Prelude.fromIntegral (Data.ByteString.length bs)))+ (Data.ProtoLens.Encoding.Bytes.putBytes bs))+ Data.ProtoLens.encodeMessage _v))+ (Lens.Family2.view+ (Data.ProtoLens.Field.field @"vec'pendingClosingChannels") _x))+ ((Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.foldMapBuilder+ (\ _v+ -> (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 34)+ ((Prelude..)+ (\ bs+ -> (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt+ (Prelude.fromIntegral (Data.ByteString.length bs)))+ (Data.ProtoLens.Encoding.Bytes.putBytes bs))+ Data.ProtoLens.encodeMessage _v))+ (Lens.Family2.view+ (Data.ProtoLens.Field.field @"vec'pendingForceClosingChannels")+ _x))+ ((Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.foldMapBuilder+ (\ _v+ -> (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 42)+ ((Prelude..)+ (\ bs+ -> (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt+ (Prelude.fromIntegral+ (Data.ByteString.length bs)))+ (Data.ProtoLens.Encoding.Bytes.putBytes bs))+ Data.ProtoLens.encodeMessage _v))+ (Lens.Family2.view+ (Data.ProtoLens.Field.field @"vec'waitingCloseChannels") _x))+ (Data.ProtoLens.Encoding.Wire.buildFieldSet+ (Lens.Family2.view Data.ProtoLens.unknownFields _x))))))+instance Control.DeepSeq.NFData PendingChannelsResponse where+ rnf+ = \ x__+ -> Control.DeepSeq.deepseq+ (_PendingChannelsResponse'_unknownFields x__)+ (Control.DeepSeq.deepseq+ (_PendingChannelsResponse'totalLimboBalance x__)+ (Control.DeepSeq.deepseq+ (_PendingChannelsResponse'pendingOpenChannels x__)+ (Control.DeepSeq.deepseq+ (_PendingChannelsResponse'pendingClosingChannels x__)+ (Control.DeepSeq.deepseq+ (_PendingChannelsResponse'pendingForceClosingChannels x__)+ (Control.DeepSeq.deepseq+ (_PendingChannelsResponse'waitingCloseChannels x__) ())))))+{- | Fields :+ + * 'Proto.Lnrpc.Ln0_Fields.channel' @:: Lens' PendingChannelsResponse'ClosedChannel PendingChannelsResponse'PendingChannel@+ * 'Proto.Lnrpc.Ln0_Fields.maybe'channel' @:: Lens' PendingChannelsResponse'ClosedChannel (Prelude.Maybe PendingChannelsResponse'PendingChannel)@+ * 'Proto.Lnrpc.Ln0_Fields.closingTxid' @:: Lens' PendingChannelsResponse'ClosedChannel Data.Text.Text@ -}+data PendingChannelsResponse'ClosedChannel+ = PendingChannelsResponse'ClosedChannel'_constructor {_PendingChannelsResponse'ClosedChannel'channel :: !(Prelude.Maybe PendingChannelsResponse'PendingChannel),+ _PendingChannelsResponse'ClosedChannel'closingTxid :: !Data.Text.Text,+ _PendingChannelsResponse'ClosedChannel'_unknownFields :: !Data.ProtoLens.FieldSet}+ deriving stock (Prelude.Eq, Prelude.Ord, GHC.Generics.Generic)+instance Prelude.Show PendingChannelsResponse'ClosedChannel where+ showsPrec _ __x __s+ = Prelude.showChar+ '{'+ (Prelude.showString+ (Data.ProtoLens.showMessageShort __x) (Prelude.showChar '}' __s))+instance Text.PrettyPrint.GenericPretty.Out PendingChannelsResponse'ClosedChannel+instance Data.ProtoLens.Field.HasField PendingChannelsResponse'ClosedChannel "channel" PendingChannelsResponse'PendingChannel where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _PendingChannelsResponse'ClosedChannel'channel+ (\ x__ y__+ -> x__ {_PendingChannelsResponse'ClosedChannel'channel = y__}))+ (Data.ProtoLens.maybeLens Data.ProtoLens.defMessage)+instance Data.ProtoLens.Field.HasField PendingChannelsResponse'ClosedChannel "maybe'channel" (Prelude.Maybe PendingChannelsResponse'PendingChannel) where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _PendingChannelsResponse'ClosedChannel'channel+ (\ x__ y__+ -> x__ {_PendingChannelsResponse'ClosedChannel'channel = y__}))+ Prelude.id+instance Data.ProtoLens.Field.HasField PendingChannelsResponse'ClosedChannel "closingTxid" Data.Text.Text where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _PendingChannelsResponse'ClosedChannel'closingTxid+ (\ x__ y__+ -> x__ {_PendingChannelsResponse'ClosedChannel'closingTxid = y__}))+ Prelude.id+instance Data.ProtoLens.Message PendingChannelsResponse'ClosedChannel where+ messageName _+ = Data.Text.pack "lnrpc.PendingChannelsResponse.ClosedChannel"+ packedMessageDescriptor _+ = "\n\+ \\rClosedChannel\DC2G\n\+ \\achannel\CAN\SOH \SOH(\v2-.lnrpc.PendingChannelsResponse.PendingChannelR\achannel\DC2!\n\+ \\fclosing_txid\CAN\STX \SOH(\tR\vclosingTxid"+ packedFileDescriptor _ = packedFileDescriptor+ fieldsByTag+ = let+ channel__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "channel"+ (Data.ProtoLens.MessageField Data.ProtoLens.MessageType ::+ Data.ProtoLens.FieldTypeDescriptor PendingChannelsResponse'PendingChannel)+ (Data.ProtoLens.OptionalField+ (Data.ProtoLens.Field.field @"maybe'channel")) ::+ Data.ProtoLens.FieldDescriptor PendingChannelsResponse'ClosedChannel+ closingTxid__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "closing_txid"+ (Data.ProtoLens.ScalarField Data.ProtoLens.StringField ::+ Data.ProtoLens.FieldTypeDescriptor Data.Text.Text)+ (Data.ProtoLens.PlainField+ Data.ProtoLens.Optional+ (Data.ProtoLens.Field.field @"closingTxid")) ::+ Data.ProtoLens.FieldDescriptor PendingChannelsResponse'ClosedChannel+ in+ Data.Map.fromList+ [(Data.ProtoLens.Tag 1, channel__field_descriptor),+ (Data.ProtoLens.Tag 2, closingTxid__field_descriptor)]+ unknownFields+ = Lens.Family2.Unchecked.lens+ _PendingChannelsResponse'ClosedChannel'_unknownFields+ (\ x__ y__+ -> x__+ {_PendingChannelsResponse'ClosedChannel'_unknownFields = y__})+ defMessage+ = PendingChannelsResponse'ClosedChannel'_constructor+ {_PendingChannelsResponse'ClosedChannel'channel = Prelude.Nothing,+ _PendingChannelsResponse'ClosedChannel'closingTxid = Data.ProtoLens.fieldDefault,+ _PendingChannelsResponse'ClosedChannel'_unknownFields = []}+ parseMessage+ = let+ loop ::+ PendingChannelsResponse'ClosedChannel+ -> Data.ProtoLens.Encoding.Bytes.Parser PendingChannelsResponse'ClosedChannel+ loop x+ = do end <- Data.ProtoLens.Encoding.Bytes.atEnd+ if end then+ do (let missing = []+ in+ if Prelude.null missing then+ Prelude.return ()+ else+ Prelude.fail+ ((Prelude.++)+ "Missing required fields: "+ (Prelude.show (missing :: [Prelude.String]))))+ Prelude.return+ (Lens.Family2.over+ Data.ProtoLens.unknownFields (\ !t -> Prelude.reverse t) x)+ else+ do tag <- Data.ProtoLens.Encoding.Bytes.getVarInt+ case tag of+ 10+ -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (do len <- Data.ProtoLens.Encoding.Bytes.getVarInt+ Data.ProtoLens.Encoding.Bytes.isolate+ (Prelude.fromIntegral len) Data.ProtoLens.parseMessage)+ "channel"+ loop (Lens.Family2.set (Data.ProtoLens.Field.field @"channel") y x)+ 18+ -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (do value <- do len <- Data.ProtoLens.Encoding.Bytes.getVarInt+ Data.ProtoLens.Encoding.Bytes.getBytes+ (Prelude.fromIntegral len)+ Data.ProtoLens.Encoding.Bytes.runEither+ (case Data.Text.Encoding.decodeUtf8' value of+ (Prelude.Left err)+ -> Prelude.Left (Prelude.show err)+ (Prelude.Right r) -> Prelude.Right r))+ "closing_txid"+ loop+ (Lens.Family2.set (Data.ProtoLens.Field.field @"closingTxid") y x)+ wire+ -> do !y <- Data.ProtoLens.Encoding.Wire.parseTaggedValueFromWire+ wire+ loop+ (Lens.Family2.over+ Data.ProtoLens.unknownFields (\ !t -> (:) y t) x)+ in+ (Data.ProtoLens.Encoding.Bytes.<?>)+ (do loop Data.ProtoLens.defMessage) "ClosedChannel"+ buildMessage+ = \ _x+ -> (Data.Monoid.<>)+ (case+ Lens.Family2.view (Data.ProtoLens.Field.field @"maybe'channel") _x+ of+ Prelude.Nothing -> Data.Monoid.mempty+ (Prelude.Just _v)+ -> (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 10)+ ((Prelude..)+ (\ bs+ -> (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt+ (Prelude.fromIntegral (Data.ByteString.length bs)))+ (Data.ProtoLens.Encoding.Bytes.putBytes bs))+ Data.ProtoLens.encodeMessage _v))+ ((Data.Monoid.<>)+ (let+ _v+ = Lens.Family2.view (Data.ProtoLens.Field.field @"closingTxid") _x+ in+ if (Prelude.==) _v Data.ProtoLens.fieldDefault then+ Data.Monoid.mempty+ else+ (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 18)+ ((Prelude..)+ (\ bs+ -> (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt+ (Prelude.fromIntegral (Data.ByteString.length bs)))+ (Data.ProtoLens.Encoding.Bytes.putBytes bs))+ Data.Text.Encoding.encodeUtf8 _v))+ (Data.ProtoLens.Encoding.Wire.buildFieldSet+ (Lens.Family2.view Data.ProtoLens.unknownFields _x)))+instance Control.DeepSeq.NFData PendingChannelsResponse'ClosedChannel where+ rnf+ = \ x__+ -> Control.DeepSeq.deepseq+ (_PendingChannelsResponse'ClosedChannel'_unknownFields x__)+ (Control.DeepSeq.deepseq+ (_PendingChannelsResponse'ClosedChannel'channel x__)+ (Control.DeepSeq.deepseq+ (_PendingChannelsResponse'ClosedChannel'closingTxid x__) ()))+{- | Fields :+ + * 'Proto.Lnrpc.Ln0_Fields.localTxid' @:: Lens' PendingChannelsResponse'Commitments Data.Text.Text@+ * 'Proto.Lnrpc.Ln0_Fields.remoteTxid' @:: Lens' PendingChannelsResponse'Commitments Data.Text.Text@+ * 'Proto.Lnrpc.Ln0_Fields.remotePendingTxid' @:: Lens' PendingChannelsResponse'Commitments Data.Text.Text@+ * 'Proto.Lnrpc.Ln0_Fields.localCommitFeeSat' @:: Lens' PendingChannelsResponse'Commitments Data.Word.Word64@+ * 'Proto.Lnrpc.Ln0_Fields.remoteCommitFeeSat' @:: Lens' PendingChannelsResponse'Commitments Data.Word.Word64@+ * 'Proto.Lnrpc.Ln0_Fields.remotePendingCommitFeeSat' @:: Lens' PendingChannelsResponse'Commitments Data.Word.Word64@ -}+data PendingChannelsResponse'Commitments+ = PendingChannelsResponse'Commitments'_constructor {_PendingChannelsResponse'Commitments'localTxid :: !Data.Text.Text,+ _PendingChannelsResponse'Commitments'remoteTxid :: !Data.Text.Text,+ _PendingChannelsResponse'Commitments'remotePendingTxid :: !Data.Text.Text,+ _PendingChannelsResponse'Commitments'localCommitFeeSat :: !Data.Word.Word64,+ _PendingChannelsResponse'Commitments'remoteCommitFeeSat :: !Data.Word.Word64,+ _PendingChannelsResponse'Commitments'remotePendingCommitFeeSat :: !Data.Word.Word64,+ _PendingChannelsResponse'Commitments'_unknownFields :: !Data.ProtoLens.FieldSet}+ deriving stock (Prelude.Eq, Prelude.Ord, GHC.Generics.Generic)+instance Prelude.Show PendingChannelsResponse'Commitments where+ showsPrec _ __x __s+ = Prelude.showChar+ '{'+ (Prelude.showString+ (Data.ProtoLens.showMessageShort __x) (Prelude.showChar '}' __s))+instance Text.PrettyPrint.GenericPretty.Out PendingChannelsResponse'Commitments+instance Data.ProtoLens.Field.HasField PendingChannelsResponse'Commitments "localTxid" Data.Text.Text where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _PendingChannelsResponse'Commitments'localTxid+ (\ x__ y__+ -> x__ {_PendingChannelsResponse'Commitments'localTxid = y__}))+ Prelude.id+instance Data.ProtoLens.Field.HasField PendingChannelsResponse'Commitments "remoteTxid" Data.Text.Text where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _PendingChannelsResponse'Commitments'remoteTxid+ (\ x__ y__+ -> x__ {_PendingChannelsResponse'Commitments'remoteTxid = y__}))+ Prelude.id+instance Data.ProtoLens.Field.HasField PendingChannelsResponse'Commitments "remotePendingTxid" Data.Text.Text where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _PendingChannelsResponse'Commitments'remotePendingTxid+ (\ x__ y__+ -> x__+ {_PendingChannelsResponse'Commitments'remotePendingTxid = y__}))+ Prelude.id+instance Data.ProtoLens.Field.HasField PendingChannelsResponse'Commitments "localCommitFeeSat" Data.Word.Word64 where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _PendingChannelsResponse'Commitments'localCommitFeeSat+ (\ x__ y__+ -> x__+ {_PendingChannelsResponse'Commitments'localCommitFeeSat = y__}))+ Prelude.id+instance Data.ProtoLens.Field.HasField PendingChannelsResponse'Commitments "remoteCommitFeeSat" Data.Word.Word64 where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _PendingChannelsResponse'Commitments'remoteCommitFeeSat+ (\ x__ y__+ -> x__+ {_PendingChannelsResponse'Commitments'remoteCommitFeeSat = y__}))+ Prelude.id+instance Data.ProtoLens.Field.HasField PendingChannelsResponse'Commitments "remotePendingCommitFeeSat" Data.Word.Word64 where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _PendingChannelsResponse'Commitments'remotePendingCommitFeeSat+ (\ x__ y__+ -> x__+ {_PendingChannelsResponse'Commitments'remotePendingCommitFeeSat = y__}))+ Prelude.id+instance Data.ProtoLens.Message PendingChannelsResponse'Commitments where+ messageName _+ = Data.Text.pack "lnrpc.PendingChannelsResponse.Commitments"+ packedMessageDescriptor _+ = "\n\+ \\vCommitments\DC2\GS\n\+ \\n\+ \local_txid\CAN\SOH \SOH(\tR\tlocalTxid\DC2\US\n\+ \\vremote_txid\CAN\STX \SOH(\tR\n\+ \remoteTxid\DC2.\n\+ \\DC3remote_pending_txid\CAN\ETX \SOH(\tR\DC1remotePendingTxid\DC2/\n\+ \\DC4local_commit_fee_sat\CAN\EOT \SOH(\EOTR\DC1localCommitFeeSat\DC21\n\+ \\NAKremote_commit_fee_sat\CAN\ENQ \SOH(\EOTR\DC2remoteCommitFeeSat\DC2@\n\+ \\GSremote_pending_commit_fee_sat\CAN\ACK \SOH(\EOTR\EMremotePendingCommitFeeSat"+ packedFileDescriptor _ = packedFileDescriptor+ fieldsByTag+ = let+ localTxid__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "local_txid"+ (Data.ProtoLens.ScalarField Data.ProtoLens.StringField ::+ Data.ProtoLens.FieldTypeDescriptor Data.Text.Text)+ (Data.ProtoLens.PlainField+ Data.ProtoLens.Optional+ (Data.ProtoLens.Field.field @"localTxid")) ::+ Data.ProtoLens.FieldDescriptor PendingChannelsResponse'Commitments+ remoteTxid__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "remote_txid"+ (Data.ProtoLens.ScalarField Data.ProtoLens.StringField ::+ Data.ProtoLens.FieldTypeDescriptor Data.Text.Text)+ (Data.ProtoLens.PlainField+ Data.ProtoLens.Optional+ (Data.ProtoLens.Field.field @"remoteTxid")) ::+ Data.ProtoLens.FieldDescriptor PendingChannelsResponse'Commitments+ remotePendingTxid__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "remote_pending_txid"+ (Data.ProtoLens.ScalarField Data.ProtoLens.StringField ::+ Data.ProtoLens.FieldTypeDescriptor Data.Text.Text)+ (Data.ProtoLens.PlainField+ Data.ProtoLens.Optional+ (Data.ProtoLens.Field.field @"remotePendingTxid")) ::+ Data.ProtoLens.FieldDescriptor PendingChannelsResponse'Commitments+ localCommitFeeSat__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "local_commit_fee_sat"+ (Data.ProtoLens.ScalarField Data.ProtoLens.UInt64Field ::+ Data.ProtoLens.FieldTypeDescriptor Data.Word.Word64)+ (Data.ProtoLens.PlainField+ Data.ProtoLens.Optional+ (Data.ProtoLens.Field.field @"localCommitFeeSat")) ::+ Data.ProtoLens.FieldDescriptor PendingChannelsResponse'Commitments+ remoteCommitFeeSat__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "remote_commit_fee_sat"+ (Data.ProtoLens.ScalarField Data.ProtoLens.UInt64Field ::+ Data.ProtoLens.FieldTypeDescriptor Data.Word.Word64)+ (Data.ProtoLens.PlainField+ Data.ProtoLens.Optional+ (Data.ProtoLens.Field.field @"remoteCommitFeeSat")) ::+ Data.ProtoLens.FieldDescriptor PendingChannelsResponse'Commitments+ remotePendingCommitFeeSat__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "remote_pending_commit_fee_sat"+ (Data.ProtoLens.ScalarField Data.ProtoLens.UInt64Field ::+ Data.ProtoLens.FieldTypeDescriptor Data.Word.Word64)+ (Data.ProtoLens.PlainField+ Data.ProtoLens.Optional+ (Data.ProtoLens.Field.field @"remotePendingCommitFeeSat")) ::+ Data.ProtoLens.FieldDescriptor PendingChannelsResponse'Commitments+ in+ Data.Map.fromList+ [(Data.ProtoLens.Tag 1, localTxid__field_descriptor),+ (Data.ProtoLens.Tag 2, remoteTxid__field_descriptor),+ (Data.ProtoLens.Tag 3, remotePendingTxid__field_descriptor),+ (Data.ProtoLens.Tag 4, localCommitFeeSat__field_descriptor),+ (Data.ProtoLens.Tag 5, remoteCommitFeeSat__field_descriptor),+ (Data.ProtoLens.Tag 6, + remotePendingCommitFeeSat__field_descriptor)]+ unknownFields+ = Lens.Family2.Unchecked.lens+ _PendingChannelsResponse'Commitments'_unknownFields+ (\ x__ y__+ -> x__ {_PendingChannelsResponse'Commitments'_unknownFields = y__})+ defMessage+ = PendingChannelsResponse'Commitments'_constructor+ {_PendingChannelsResponse'Commitments'localTxid = Data.ProtoLens.fieldDefault,+ _PendingChannelsResponse'Commitments'remoteTxid = Data.ProtoLens.fieldDefault,+ _PendingChannelsResponse'Commitments'remotePendingTxid = Data.ProtoLens.fieldDefault,+ _PendingChannelsResponse'Commitments'localCommitFeeSat = Data.ProtoLens.fieldDefault,+ _PendingChannelsResponse'Commitments'remoteCommitFeeSat = Data.ProtoLens.fieldDefault,+ _PendingChannelsResponse'Commitments'remotePendingCommitFeeSat = Data.ProtoLens.fieldDefault,+ _PendingChannelsResponse'Commitments'_unknownFields = []}+ parseMessage+ = let+ loop ::+ PendingChannelsResponse'Commitments+ -> Data.ProtoLens.Encoding.Bytes.Parser PendingChannelsResponse'Commitments+ loop x+ = do end <- Data.ProtoLens.Encoding.Bytes.atEnd+ if end then+ do (let missing = []+ in+ if Prelude.null missing then+ Prelude.return ()+ else+ Prelude.fail+ ((Prelude.++)+ "Missing required fields: "+ (Prelude.show (missing :: [Prelude.String]))))+ Prelude.return+ (Lens.Family2.over+ Data.ProtoLens.unknownFields (\ !t -> Prelude.reverse t) x)+ else+ do tag <- Data.ProtoLens.Encoding.Bytes.getVarInt+ case tag of+ 10+ -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (do value <- do len <- Data.ProtoLens.Encoding.Bytes.getVarInt+ Data.ProtoLens.Encoding.Bytes.getBytes+ (Prelude.fromIntegral len)+ Data.ProtoLens.Encoding.Bytes.runEither+ (case Data.Text.Encoding.decodeUtf8' value of+ (Prelude.Left err)+ -> Prelude.Left (Prelude.show err)+ (Prelude.Right r) -> Prelude.Right r))+ "local_txid"+ loop+ (Lens.Family2.set (Data.ProtoLens.Field.field @"localTxid") y x)+ 18+ -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (do value <- do len <- Data.ProtoLens.Encoding.Bytes.getVarInt+ Data.ProtoLens.Encoding.Bytes.getBytes+ (Prelude.fromIntegral len)+ Data.ProtoLens.Encoding.Bytes.runEither+ (case Data.Text.Encoding.decodeUtf8' value of+ (Prelude.Left err)+ -> Prelude.Left (Prelude.show err)+ (Prelude.Right r) -> Prelude.Right r))+ "remote_txid"+ loop+ (Lens.Family2.set (Data.ProtoLens.Field.field @"remoteTxid") y x)+ 26+ -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (do value <- do len <- Data.ProtoLens.Encoding.Bytes.getVarInt+ Data.ProtoLens.Encoding.Bytes.getBytes+ (Prelude.fromIntegral len)+ Data.ProtoLens.Encoding.Bytes.runEither+ (case Data.Text.Encoding.decodeUtf8' value of+ (Prelude.Left err)+ -> Prelude.Left (Prelude.show err)+ (Prelude.Right r) -> Prelude.Right r))+ "remote_pending_txid"+ loop+ (Lens.Family2.set+ (Data.ProtoLens.Field.field @"remotePendingTxid") y x)+ 32+ -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ Data.ProtoLens.Encoding.Bytes.getVarInt+ "local_commit_fee_sat"+ loop+ (Lens.Family2.set+ (Data.ProtoLens.Field.field @"localCommitFeeSat") y x)+ 40+ -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ Data.ProtoLens.Encoding.Bytes.getVarInt+ "remote_commit_fee_sat"+ loop+ (Lens.Family2.set+ (Data.ProtoLens.Field.field @"remoteCommitFeeSat") y x)+ 48+ -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ Data.ProtoLens.Encoding.Bytes.getVarInt+ "remote_pending_commit_fee_sat"+ loop+ (Lens.Family2.set+ (Data.ProtoLens.Field.field @"remotePendingCommitFeeSat") y x)+ wire+ -> do !y <- Data.ProtoLens.Encoding.Wire.parseTaggedValueFromWire+ wire+ loop+ (Lens.Family2.over+ Data.ProtoLens.unknownFields (\ !t -> (:) y t) x)+ in+ (Data.ProtoLens.Encoding.Bytes.<?>)+ (do loop Data.ProtoLens.defMessage) "Commitments"+ buildMessage+ = \ _x+ -> (Data.Monoid.<>)+ (let+ _v = Lens.Family2.view (Data.ProtoLens.Field.field @"localTxid") _x+ in+ if (Prelude.==) _v Data.ProtoLens.fieldDefault then+ Data.Monoid.mempty+ else+ (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 10)+ ((Prelude..)+ (\ bs+ -> (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt+ (Prelude.fromIntegral (Data.ByteString.length bs)))+ (Data.ProtoLens.Encoding.Bytes.putBytes bs))+ Data.Text.Encoding.encodeUtf8 _v))+ ((Data.Monoid.<>)+ (let+ _v+ = Lens.Family2.view (Data.ProtoLens.Field.field @"remoteTxid") _x+ in+ if (Prelude.==) _v Data.ProtoLens.fieldDefault then+ Data.Monoid.mempty+ else+ (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 18)+ ((Prelude..)+ (\ bs+ -> (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt+ (Prelude.fromIntegral (Data.ByteString.length bs)))+ (Data.ProtoLens.Encoding.Bytes.putBytes bs))+ Data.Text.Encoding.encodeUtf8 _v))+ ((Data.Monoid.<>)+ (let+ _v+ = Lens.Family2.view+ (Data.ProtoLens.Field.field @"remotePendingTxid") _x+ in+ if (Prelude.==) _v Data.ProtoLens.fieldDefault then+ Data.Monoid.mempty+ else+ (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 26)+ ((Prelude..)+ (\ bs+ -> (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt+ (Prelude.fromIntegral (Data.ByteString.length bs)))+ (Data.ProtoLens.Encoding.Bytes.putBytes bs))+ Data.Text.Encoding.encodeUtf8 _v))+ ((Data.Monoid.<>)+ (let+ _v+ = Lens.Family2.view+ (Data.ProtoLens.Field.field @"localCommitFeeSat") _x+ in+ if (Prelude.==) _v Data.ProtoLens.fieldDefault then+ Data.Monoid.mempty+ else+ (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 32)+ (Data.ProtoLens.Encoding.Bytes.putVarInt _v))+ ((Data.Monoid.<>)+ (let+ _v+ = Lens.Family2.view+ (Data.ProtoLens.Field.field @"remoteCommitFeeSat") _x+ in+ if (Prelude.==) _v Data.ProtoLens.fieldDefault then+ Data.Monoid.mempty+ else+ (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 40)+ (Data.ProtoLens.Encoding.Bytes.putVarInt _v))+ ((Data.Monoid.<>)+ (let+ _v+ = Lens.Family2.view+ (Data.ProtoLens.Field.field @"remotePendingCommitFeeSat") _x+ in+ if (Prelude.==) _v Data.ProtoLens.fieldDefault then+ Data.Monoid.mempty+ else+ (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 48)+ (Data.ProtoLens.Encoding.Bytes.putVarInt _v))+ (Data.ProtoLens.Encoding.Wire.buildFieldSet+ (Lens.Family2.view Data.ProtoLens.unknownFields _x)))))))+instance Control.DeepSeq.NFData PendingChannelsResponse'Commitments where+ rnf+ = \ x__+ -> Control.DeepSeq.deepseq+ (_PendingChannelsResponse'Commitments'_unknownFields x__)+ (Control.DeepSeq.deepseq+ (_PendingChannelsResponse'Commitments'localTxid x__)+ (Control.DeepSeq.deepseq+ (_PendingChannelsResponse'Commitments'remoteTxid x__)+ (Control.DeepSeq.deepseq+ (_PendingChannelsResponse'Commitments'remotePendingTxid x__)+ (Control.DeepSeq.deepseq+ (_PendingChannelsResponse'Commitments'localCommitFeeSat x__)+ (Control.DeepSeq.deepseq+ (_PendingChannelsResponse'Commitments'remoteCommitFeeSat x__)+ (Control.DeepSeq.deepseq+ (_PendingChannelsResponse'Commitments'remotePendingCommitFeeSat+ x__)+ ()))))))+{- | Fields :+ + * 'Proto.Lnrpc.Ln0_Fields.channel' @:: Lens' PendingChannelsResponse'ForceClosedChannel PendingChannelsResponse'PendingChannel@+ * 'Proto.Lnrpc.Ln0_Fields.maybe'channel' @:: Lens' PendingChannelsResponse'ForceClosedChannel (Prelude.Maybe PendingChannelsResponse'PendingChannel)@+ * 'Proto.Lnrpc.Ln0_Fields.closingTxid' @:: Lens' PendingChannelsResponse'ForceClosedChannel Data.Text.Text@+ * 'Proto.Lnrpc.Ln0_Fields.limboBalance' @:: Lens' PendingChannelsResponse'ForceClosedChannel Data.Int.Int64@+ * 'Proto.Lnrpc.Ln0_Fields.maturityHeight' @:: Lens' PendingChannelsResponse'ForceClosedChannel Data.Word.Word32@+ * 'Proto.Lnrpc.Ln0_Fields.blocksTilMaturity' @:: Lens' PendingChannelsResponse'ForceClosedChannel Data.Int.Int32@+ * 'Proto.Lnrpc.Ln0_Fields.recoveredBalance' @:: Lens' PendingChannelsResponse'ForceClosedChannel Data.Int.Int64@+ * 'Proto.Lnrpc.Ln0_Fields.pendingHtlcs' @:: Lens' PendingChannelsResponse'ForceClosedChannel [PendingHTLC]@+ * 'Proto.Lnrpc.Ln0_Fields.vec'pendingHtlcs' @:: Lens' PendingChannelsResponse'ForceClosedChannel (Data.Vector.Vector PendingHTLC)@+ * 'Proto.Lnrpc.Ln0_Fields.anchor' @:: Lens' PendingChannelsResponse'ForceClosedChannel PendingChannelsResponse'ForceClosedChannel'AnchorState@ -}+data PendingChannelsResponse'ForceClosedChannel+ = PendingChannelsResponse'ForceClosedChannel'_constructor {_PendingChannelsResponse'ForceClosedChannel'channel :: !(Prelude.Maybe PendingChannelsResponse'PendingChannel),+ _PendingChannelsResponse'ForceClosedChannel'closingTxid :: !Data.Text.Text,+ _PendingChannelsResponse'ForceClosedChannel'limboBalance :: !Data.Int.Int64,+ _PendingChannelsResponse'ForceClosedChannel'maturityHeight :: !Data.Word.Word32,+ _PendingChannelsResponse'ForceClosedChannel'blocksTilMaturity :: !Data.Int.Int32,+ _PendingChannelsResponse'ForceClosedChannel'recoveredBalance :: !Data.Int.Int64,+ _PendingChannelsResponse'ForceClosedChannel'pendingHtlcs :: !(Data.Vector.Vector PendingHTLC),+ _PendingChannelsResponse'ForceClosedChannel'anchor :: !PendingChannelsResponse'ForceClosedChannel'AnchorState,+ _PendingChannelsResponse'ForceClosedChannel'_unknownFields :: !Data.ProtoLens.FieldSet}+ deriving stock (Prelude.Eq, Prelude.Ord, GHC.Generics.Generic)+instance Prelude.Show PendingChannelsResponse'ForceClosedChannel where+ showsPrec _ __x __s+ = Prelude.showChar+ '{'+ (Prelude.showString+ (Data.ProtoLens.showMessageShort __x) (Prelude.showChar '}' __s))+instance Text.PrettyPrint.GenericPretty.Out PendingChannelsResponse'ForceClosedChannel+instance Data.ProtoLens.Field.HasField PendingChannelsResponse'ForceClosedChannel "channel" PendingChannelsResponse'PendingChannel where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _PendingChannelsResponse'ForceClosedChannel'channel+ (\ x__ y__+ -> x__+ {_PendingChannelsResponse'ForceClosedChannel'channel = y__}))+ (Data.ProtoLens.maybeLens Data.ProtoLens.defMessage)+instance Data.ProtoLens.Field.HasField PendingChannelsResponse'ForceClosedChannel "maybe'channel" (Prelude.Maybe PendingChannelsResponse'PendingChannel) where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _PendingChannelsResponse'ForceClosedChannel'channel+ (\ x__ y__+ -> x__+ {_PendingChannelsResponse'ForceClosedChannel'channel = y__}))+ Prelude.id+instance Data.ProtoLens.Field.HasField PendingChannelsResponse'ForceClosedChannel "closingTxid" Data.Text.Text where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _PendingChannelsResponse'ForceClosedChannel'closingTxid+ (\ x__ y__+ -> x__+ {_PendingChannelsResponse'ForceClosedChannel'closingTxid = y__}))+ Prelude.id+instance Data.ProtoLens.Field.HasField PendingChannelsResponse'ForceClosedChannel "limboBalance" Data.Int.Int64 where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _PendingChannelsResponse'ForceClosedChannel'limboBalance+ (\ x__ y__+ -> x__+ {_PendingChannelsResponse'ForceClosedChannel'limboBalance = y__}))+ Prelude.id+instance Data.ProtoLens.Field.HasField PendingChannelsResponse'ForceClosedChannel "maturityHeight" Data.Word.Word32 where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _PendingChannelsResponse'ForceClosedChannel'maturityHeight+ (\ x__ y__+ -> x__+ {_PendingChannelsResponse'ForceClosedChannel'maturityHeight = y__}))+ Prelude.id+instance Data.ProtoLens.Field.HasField PendingChannelsResponse'ForceClosedChannel "blocksTilMaturity" Data.Int.Int32 where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _PendingChannelsResponse'ForceClosedChannel'blocksTilMaturity+ (\ x__ y__+ -> x__+ {_PendingChannelsResponse'ForceClosedChannel'blocksTilMaturity = y__}))+ Prelude.id+instance Data.ProtoLens.Field.HasField PendingChannelsResponse'ForceClosedChannel "recoveredBalance" Data.Int.Int64 where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _PendingChannelsResponse'ForceClosedChannel'recoveredBalance+ (\ x__ y__+ -> x__+ {_PendingChannelsResponse'ForceClosedChannel'recoveredBalance = y__}))+ Prelude.id+instance Data.ProtoLens.Field.HasField PendingChannelsResponse'ForceClosedChannel "pendingHtlcs" [PendingHTLC] where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _PendingChannelsResponse'ForceClosedChannel'pendingHtlcs+ (\ x__ y__+ -> x__+ {_PendingChannelsResponse'ForceClosedChannel'pendingHtlcs = y__}))+ (Lens.Family2.Unchecked.lens+ Data.Vector.Generic.toList+ (\ _ y__ -> Data.Vector.Generic.fromList y__))+instance Data.ProtoLens.Field.HasField PendingChannelsResponse'ForceClosedChannel "vec'pendingHtlcs" (Data.Vector.Vector PendingHTLC) where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _PendingChannelsResponse'ForceClosedChannel'pendingHtlcs+ (\ x__ y__+ -> x__+ {_PendingChannelsResponse'ForceClosedChannel'pendingHtlcs = y__}))+ Prelude.id+instance Data.ProtoLens.Field.HasField PendingChannelsResponse'ForceClosedChannel "anchor" PendingChannelsResponse'ForceClosedChannel'AnchorState where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _PendingChannelsResponse'ForceClosedChannel'anchor+ (\ x__ y__+ -> x__ {_PendingChannelsResponse'ForceClosedChannel'anchor = y__}))+ Prelude.id+instance Data.ProtoLens.Message PendingChannelsResponse'ForceClosedChannel where+ messageName _+ = Data.Text.pack "lnrpc.PendingChannelsResponse.ForceClosedChannel"+ packedMessageDescriptor _+ = "\n\+ \\DC2ForceClosedChannel\DC2G\n\+ \\achannel\CAN\SOH \SOH(\v2-.lnrpc.PendingChannelsResponse.PendingChannelR\achannel\DC2!\n\+ \\fclosing_txid\CAN\STX \SOH(\tR\vclosingTxid\DC2#\n\+ \\rlimbo_balance\CAN\ETX \SOH(\ETXR\flimboBalance\DC2'\n\+ \\SImaturity_height\CAN\EOT \SOH(\rR\SOmaturityHeight\DC2.\n\+ \\DC3blocks_til_maturity\CAN\ENQ \SOH(\ENQR\DC1blocksTilMaturity\DC2+\n\+ \\DC1recovered_balance\CAN\ACK \SOH(\ETXR\DLErecoveredBalance\DC27\n\+ \\rpending_htlcs\CAN\b \ETX(\v2\DC2.lnrpc.PendingHTLCR\fpendingHtlcs\DC2U\n\+ \\ACKanchor\CAN\t \SOH(\SO2=.lnrpc.PendingChannelsResponse.ForceClosedChannel.AnchorStateR\ACKanchor\"1\n\+ \\vAnchorState\DC2\t\n\+ \\ENQLIMBO\DLE\NUL\DC2\r\n\+ \\tRECOVERED\DLE\SOH\DC2\b\n\+ \\EOTLOST\DLE\STX"+ packedFileDescriptor _ = packedFileDescriptor+ fieldsByTag+ = let+ channel__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "channel"+ (Data.ProtoLens.MessageField Data.ProtoLens.MessageType ::+ Data.ProtoLens.FieldTypeDescriptor PendingChannelsResponse'PendingChannel)+ (Data.ProtoLens.OptionalField+ (Data.ProtoLens.Field.field @"maybe'channel")) ::+ Data.ProtoLens.FieldDescriptor PendingChannelsResponse'ForceClosedChannel+ closingTxid__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "closing_txid"+ (Data.ProtoLens.ScalarField Data.ProtoLens.StringField ::+ Data.ProtoLens.FieldTypeDescriptor Data.Text.Text)+ (Data.ProtoLens.PlainField+ Data.ProtoLens.Optional+ (Data.ProtoLens.Field.field @"closingTxid")) ::+ Data.ProtoLens.FieldDescriptor PendingChannelsResponse'ForceClosedChannel+ limboBalance__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "limbo_balance"+ (Data.ProtoLens.ScalarField Data.ProtoLens.Int64Field ::+ Data.ProtoLens.FieldTypeDescriptor Data.Int.Int64)+ (Data.ProtoLens.PlainField+ Data.ProtoLens.Optional+ (Data.ProtoLens.Field.field @"limboBalance")) ::+ Data.ProtoLens.FieldDescriptor PendingChannelsResponse'ForceClosedChannel+ maturityHeight__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "maturity_height"+ (Data.ProtoLens.ScalarField Data.ProtoLens.UInt32Field ::+ Data.ProtoLens.FieldTypeDescriptor Data.Word.Word32)+ (Data.ProtoLens.PlainField+ Data.ProtoLens.Optional+ (Data.ProtoLens.Field.field @"maturityHeight")) ::+ Data.ProtoLens.FieldDescriptor PendingChannelsResponse'ForceClosedChannel+ blocksTilMaturity__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "blocks_til_maturity"+ (Data.ProtoLens.ScalarField Data.ProtoLens.Int32Field ::+ Data.ProtoLens.FieldTypeDescriptor Data.Int.Int32)+ (Data.ProtoLens.PlainField+ Data.ProtoLens.Optional+ (Data.ProtoLens.Field.field @"blocksTilMaturity")) ::+ Data.ProtoLens.FieldDescriptor PendingChannelsResponse'ForceClosedChannel+ recoveredBalance__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "recovered_balance"+ (Data.ProtoLens.ScalarField Data.ProtoLens.Int64Field ::+ Data.ProtoLens.FieldTypeDescriptor Data.Int.Int64)+ (Data.ProtoLens.PlainField+ Data.ProtoLens.Optional+ (Data.ProtoLens.Field.field @"recoveredBalance")) ::+ Data.ProtoLens.FieldDescriptor PendingChannelsResponse'ForceClosedChannel+ pendingHtlcs__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "pending_htlcs"+ (Data.ProtoLens.MessageField Data.ProtoLens.MessageType ::+ Data.ProtoLens.FieldTypeDescriptor PendingHTLC)+ (Data.ProtoLens.RepeatedField+ Data.ProtoLens.Unpacked+ (Data.ProtoLens.Field.field @"pendingHtlcs")) ::+ Data.ProtoLens.FieldDescriptor PendingChannelsResponse'ForceClosedChannel+ anchor__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "anchor"+ (Data.ProtoLens.ScalarField Data.ProtoLens.EnumField ::+ Data.ProtoLens.FieldTypeDescriptor PendingChannelsResponse'ForceClosedChannel'AnchorState)+ (Data.ProtoLens.PlainField+ Data.ProtoLens.Optional (Data.ProtoLens.Field.field @"anchor")) ::+ Data.ProtoLens.FieldDescriptor PendingChannelsResponse'ForceClosedChannel+ in+ Data.Map.fromList+ [(Data.ProtoLens.Tag 1, channel__field_descriptor),+ (Data.ProtoLens.Tag 2, closingTxid__field_descriptor),+ (Data.ProtoLens.Tag 3, limboBalance__field_descriptor),+ (Data.ProtoLens.Tag 4, maturityHeight__field_descriptor),+ (Data.ProtoLens.Tag 5, blocksTilMaturity__field_descriptor),+ (Data.ProtoLens.Tag 6, recoveredBalance__field_descriptor),+ (Data.ProtoLens.Tag 8, pendingHtlcs__field_descriptor),+ (Data.ProtoLens.Tag 9, anchor__field_descriptor)]+ unknownFields+ = Lens.Family2.Unchecked.lens+ _PendingChannelsResponse'ForceClosedChannel'_unknownFields+ (\ x__ y__+ -> x__+ {_PendingChannelsResponse'ForceClosedChannel'_unknownFields = y__})+ defMessage+ = PendingChannelsResponse'ForceClosedChannel'_constructor+ {_PendingChannelsResponse'ForceClosedChannel'channel = Prelude.Nothing,+ _PendingChannelsResponse'ForceClosedChannel'closingTxid = Data.ProtoLens.fieldDefault,+ _PendingChannelsResponse'ForceClosedChannel'limboBalance = Data.ProtoLens.fieldDefault,+ _PendingChannelsResponse'ForceClosedChannel'maturityHeight = Data.ProtoLens.fieldDefault,+ _PendingChannelsResponse'ForceClosedChannel'blocksTilMaturity = Data.ProtoLens.fieldDefault,+ _PendingChannelsResponse'ForceClosedChannel'recoveredBalance = Data.ProtoLens.fieldDefault,+ _PendingChannelsResponse'ForceClosedChannel'pendingHtlcs = Data.Vector.Generic.empty,+ _PendingChannelsResponse'ForceClosedChannel'anchor = Data.ProtoLens.fieldDefault,+ _PendingChannelsResponse'ForceClosedChannel'_unknownFields = []}+ parseMessage+ = let+ loop ::+ PendingChannelsResponse'ForceClosedChannel+ -> Data.ProtoLens.Encoding.Growing.Growing Data.Vector.Vector Data.ProtoLens.Encoding.Growing.RealWorld PendingHTLC+ -> Data.ProtoLens.Encoding.Bytes.Parser PendingChannelsResponse'ForceClosedChannel+ loop x mutable'pendingHtlcs+ = do end <- Data.ProtoLens.Encoding.Bytes.atEnd+ if end then+ do frozen'pendingHtlcs <- Data.ProtoLens.Encoding.Parser.Unsafe.unsafeLiftIO+ (Data.ProtoLens.Encoding.Growing.unsafeFreeze+ mutable'pendingHtlcs)+ (let missing = []+ in+ if Prelude.null missing then+ Prelude.return ()+ else+ Prelude.fail+ ((Prelude.++)+ "Missing required fields: "+ (Prelude.show (missing :: [Prelude.String]))))+ Prelude.return+ (Lens.Family2.over+ Data.ProtoLens.unknownFields (\ !t -> Prelude.reverse t)+ (Lens.Family2.set+ (Data.ProtoLens.Field.field @"vec'pendingHtlcs")+ frozen'pendingHtlcs x))+ else+ do tag <- Data.ProtoLens.Encoding.Bytes.getVarInt+ case tag of+ 10+ -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (do len <- Data.ProtoLens.Encoding.Bytes.getVarInt+ Data.ProtoLens.Encoding.Bytes.isolate+ (Prelude.fromIntegral len) Data.ProtoLens.parseMessage)+ "channel"+ loop+ (Lens.Family2.set (Data.ProtoLens.Field.field @"channel") y x)+ mutable'pendingHtlcs+ 18+ -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (do value <- do len <- Data.ProtoLens.Encoding.Bytes.getVarInt+ Data.ProtoLens.Encoding.Bytes.getBytes+ (Prelude.fromIntegral len)+ Data.ProtoLens.Encoding.Bytes.runEither+ (case Data.Text.Encoding.decodeUtf8' value of+ (Prelude.Left err)+ -> Prelude.Left (Prelude.show err)+ (Prelude.Right r) -> Prelude.Right r))+ "closing_txid"+ loop+ (Lens.Family2.set (Data.ProtoLens.Field.field @"closingTxid") y x)+ mutable'pendingHtlcs+ 24+ -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (Prelude.fmap+ Prelude.fromIntegral+ Data.ProtoLens.Encoding.Bytes.getVarInt)+ "limbo_balance"+ loop+ (Lens.Family2.set+ (Data.ProtoLens.Field.field @"limboBalance") y x)+ mutable'pendingHtlcs+ 32+ -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (Prelude.fmap+ Prelude.fromIntegral+ Data.ProtoLens.Encoding.Bytes.getVarInt)+ "maturity_height"+ loop+ (Lens.Family2.set+ (Data.ProtoLens.Field.field @"maturityHeight") y x)+ mutable'pendingHtlcs+ 40+ -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (Prelude.fmap+ Prelude.fromIntegral+ Data.ProtoLens.Encoding.Bytes.getVarInt)+ "blocks_til_maturity"+ loop+ (Lens.Family2.set+ (Data.ProtoLens.Field.field @"blocksTilMaturity") y x)+ mutable'pendingHtlcs+ 48+ -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (Prelude.fmap+ Prelude.fromIntegral+ Data.ProtoLens.Encoding.Bytes.getVarInt)+ "recovered_balance"+ loop+ (Lens.Family2.set+ (Data.ProtoLens.Field.field @"recoveredBalance") y x)+ mutable'pendingHtlcs+ 66+ -> do !y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (do len <- Data.ProtoLens.Encoding.Bytes.getVarInt+ Data.ProtoLens.Encoding.Bytes.isolate+ (Prelude.fromIntegral len)+ Data.ProtoLens.parseMessage)+ "pending_htlcs"+ v <- Data.ProtoLens.Encoding.Parser.Unsafe.unsafeLiftIO+ (Data.ProtoLens.Encoding.Growing.append+ mutable'pendingHtlcs y)+ loop x v+ 72+ -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (Prelude.fmap+ Prelude.toEnum+ (Prelude.fmap+ Prelude.fromIntegral+ Data.ProtoLens.Encoding.Bytes.getVarInt))+ "anchor"+ loop+ (Lens.Family2.set (Data.ProtoLens.Field.field @"anchor") y x)+ mutable'pendingHtlcs+ wire+ -> do !y <- Data.ProtoLens.Encoding.Wire.parseTaggedValueFromWire+ wire+ loop+ (Lens.Family2.over+ Data.ProtoLens.unknownFields (\ !t -> (:) y t) x)+ mutable'pendingHtlcs+ in+ (Data.ProtoLens.Encoding.Bytes.<?>)+ (do mutable'pendingHtlcs <- Data.ProtoLens.Encoding.Parser.Unsafe.unsafeLiftIO+ Data.ProtoLens.Encoding.Growing.new+ loop Data.ProtoLens.defMessage mutable'pendingHtlcs)+ "ForceClosedChannel"+ buildMessage+ = \ _x+ -> (Data.Monoid.<>)+ (case+ Lens.Family2.view (Data.ProtoLens.Field.field @"maybe'channel") _x+ of+ Prelude.Nothing -> Data.Monoid.mempty+ (Prelude.Just _v)+ -> (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 10)+ ((Prelude..)+ (\ bs+ -> (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt+ (Prelude.fromIntegral (Data.ByteString.length bs)))+ (Data.ProtoLens.Encoding.Bytes.putBytes bs))+ Data.ProtoLens.encodeMessage _v))+ ((Data.Monoid.<>)+ (let+ _v+ = Lens.Family2.view (Data.ProtoLens.Field.field @"closingTxid") _x+ in+ if (Prelude.==) _v Data.ProtoLens.fieldDefault then+ Data.Monoid.mempty+ else+ (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 18)+ ((Prelude..)+ (\ bs+ -> (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt+ (Prelude.fromIntegral (Data.ByteString.length bs)))+ (Data.ProtoLens.Encoding.Bytes.putBytes bs))+ Data.Text.Encoding.encodeUtf8 _v))+ ((Data.Monoid.<>)+ (let+ _v+ = Lens.Family2.view (Data.ProtoLens.Field.field @"limboBalance") _x+ in+ if (Prelude.==) _v Data.ProtoLens.fieldDefault then+ Data.Monoid.mempty+ else+ (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 24)+ ((Prelude..)+ Data.ProtoLens.Encoding.Bytes.putVarInt Prelude.fromIntegral _v))+ ((Data.Monoid.<>)+ (let+ _v+ = Lens.Family2.view+ (Data.ProtoLens.Field.field @"maturityHeight") _x+ in+ if (Prelude.==) _v Data.ProtoLens.fieldDefault then+ Data.Monoid.mempty+ else+ (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 32)+ ((Prelude..)+ Data.ProtoLens.Encoding.Bytes.putVarInt Prelude.fromIntegral _v))+ ((Data.Monoid.<>)+ (let+ _v+ = Lens.Family2.view+ (Data.ProtoLens.Field.field @"blocksTilMaturity") _x+ in+ if (Prelude.==) _v Data.ProtoLens.fieldDefault then+ Data.Monoid.mempty+ else+ (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 40)+ ((Prelude..)+ Data.ProtoLens.Encoding.Bytes.putVarInt Prelude.fromIntegral+ _v))+ ((Data.Monoid.<>)+ (let+ _v+ = Lens.Family2.view+ (Data.ProtoLens.Field.field @"recoveredBalance") _x+ in+ if (Prelude.==) _v Data.ProtoLens.fieldDefault then+ Data.Monoid.mempty+ else+ (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 48)+ ((Prelude..)+ Data.ProtoLens.Encoding.Bytes.putVarInt Prelude.fromIntegral+ _v))+ ((Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.foldMapBuilder+ (\ _v+ -> (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 66)+ ((Prelude..)+ (\ bs+ -> (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt+ (Prelude.fromIntegral+ (Data.ByteString.length bs)))+ (Data.ProtoLens.Encoding.Bytes.putBytes bs))+ Data.ProtoLens.encodeMessage _v))+ (Lens.Family2.view+ (Data.ProtoLens.Field.field @"vec'pendingHtlcs") _x))+ ((Data.Monoid.<>)+ (let+ _v+ = Lens.Family2.view (Data.ProtoLens.Field.field @"anchor") _x+ in+ if (Prelude.==) _v Data.ProtoLens.fieldDefault then+ Data.Monoid.mempty+ else+ (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 72)+ ((Prelude..)+ ((Prelude..)+ Data.ProtoLens.Encoding.Bytes.putVarInt+ Prelude.fromIntegral)+ Prelude.fromEnum _v))+ (Data.ProtoLens.Encoding.Wire.buildFieldSet+ (Lens.Family2.view Data.ProtoLens.unknownFields _x)))))))))+instance Control.DeepSeq.NFData PendingChannelsResponse'ForceClosedChannel where+ rnf+ = \ x__+ -> Control.DeepSeq.deepseq+ (_PendingChannelsResponse'ForceClosedChannel'_unknownFields x__)+ (Control.DeepSeq.deepseq+ (_PendingChannelsResponse'ForceClosedChannel'channel x__)+ (Control.DeepSeq.deepseq+ (_PendingChannelsResponse'ForceClosedChannel'closingTxid x__)+ (Control.DeepSeq.deepseq+ (_PendingChannelsResponse'ForceClosedChannel'limboBalance x__)+ (Control.DeepSeq.deepseq+ (_PendingChannelsResponse'ForceClosedChannel'maturityHeight x__)+ (Control.DeepSeq.deepseq+ (_PendingChannelsResponse'ForceClosedChannel'blocksTilMaturity x__)+ (Control.DeepSeq.deepseq+ (_PendingChannelsResponse'ForceClosedChannel'recoveredBalance x__)+ (Control.DeepSeq.deepseq+ (_PendingChannelsResponse'ForceClosedChannel'pendingHtlcs x__)+ (Control.DeepSeq.deepseq+ (_PendingChannelsResponse'ForceClosedChannel'anchor x__)+ ()))))))))+newtype PendingChannelsResponse'ForceClosedChannel'AnchorState'UnrecognizedValue+ = PendingChannelsResponse'ForceClosedChannel'AnchorState'UnrecognizedValue Data.Int.Int32+ deriving stock (Prelude.Eq,+ Prelude.Ord,+ Prelude.Show,+ GHC.Generics.Generic)+instance Text.PrettyPrint.GenericPretty.Out PendingChannelsResponse'ForceClosedChannel'AnchorState'UnrecognizedValue+data PendingChannelsResponse'ForceClosedChannel'AnchorState+ = PendingChannelsResponse'ForceClosedChannel'LIMBO |+ PendingChannelsResponse'ForceClosedChannel'RECOVERED |+ PendingChannelsResponse'ForceClosedChannel'LOST |+ PendingChannelsResponse'ForceClosedChannel'AnchorState'Unrecognized !PendingChannelsResponse'ForceClosedChannel'AnchorState'UnrecognizedValue+ deriving stock (Prelude.Show,+ Prelude.Eq,+ Prelude.Ord,+ GHC.Generics.Generic)+instance Data.ProtoLens.MessageEnum PendingChannelsResponse'ForceClosedChannel'AnchorState where+ maybeToEnum 0+ = Prelude.Just PendingChannelsResponse'ForceClosedChannel'LIMBO+ maybeToEnum 1+ = Prelude.Just PendingChannelsResponse'ForceClosedChannel'RECOVERED+ maybeToEnum 2+ = Prelude.Just PendingChannelsResponse'ForceClosedChannel'LOST+ maybeToEnum k+ = Prelude.Just+ (PendingChannelsResponse'ForceClosedChannel'AnchorState'Unrecognized+ (PendingChannelsResponse'ForceClosedChannel'AnchorState'UnrecognizedValue+ (Prelude.fromIntegral k)))+ showEnum PendingChannelsResponse'ForceClosedChannel'LIMBO = "LIMBO"+ showEnum PendingChannelsResponse'ForceClosedChannel'RECOVERED+ = "RECOVERED"+ showEnum PendingChannelsResponse'ForceClosedChannel'LOST = "LOST"+ showEnum+ (PendingChannelsResponse'ForceClosedChannel'AnchorState'Unrecognized (PendingChannelsResponse'ForceClosedChannel'AnchorState'UnrecognizedValue k))+ = Prelude.show k+ readEnum k+ | (Prelude.==) k "LIMBO"+ = Prelude.Just PendingChannelsResponse'ForceClosedChannel'LIMBO+ | (Prelude.==) k "RECOVERED"+ = Prelude.Just PendingChannelsResponse'ForceClosedChannel'RECOVERED+ | (Prelude.==) k "LOST"+ = Prelude.Just PendingChannelsResponse'ForceClosedChannel'LOST+ | Prelude.otherwise+ = (Prelude.>>=) (Text.Read.readMaybe k) Data.ProtoLens.maybeToEnum+instance Prelude.Bounded PendingChannelsResponse'ForceClosedChannel'AnchorState where+ minBound = PendingChannelsResponse'ForceClosedChannel'LIMBO+ maxBound = PendingChannelsResponse'ForceClosedChannel'LOST+instance Prelude.Enum PendingChannelsResponse'ForceClosedChannel'AnchorState where+ toEnum k__+ = Prelude.maybe+ (Prelude.error+ ((Prelude.++)+ "toEnum: unknown value for enum AnchorState: " (Prelude.show k__)))+ Prelude.id (Data.ProtoLens.maybeToEnum k__)+ fromEnum PendingChannelsResponse'ForceClosedChannel'LIMBO = 0+ fromEnum PendingChannelsResponse'ForceClosedChannel'RECOVERED = 1+ fromEnum PendingChannelsResponse'ForceClosedChannel'LOST = 2+ fromEnum+ (PendingChannelsResponse'ForceClosedChannel'AnchorState'Unrecognized (PendingChannelsResponse'ForceClosedChannel'AnchorState'UnrecognizedValue k))+ = Prelude.fromIntegral k+ succ PendingChannelsResponse'ForceClosedChannel'LOST+ = Prelude.error+ "PendingChannelsResponse'ForceClosedChannel'AnchorState.succ: bad argument PendingChannelsResponse'ForceClosedChannel'LOST. This value would be out of bounds."+ succ PendingChannelsResponse'ForceClosedChannel'LIMBO+ = PendingChannelsResponse'ForceClosedChannel'RECOVERED+ succ PendingChannelsResponse'ForceClosedChannel'RECOVERED+ = PendingChannelsResponse'ForceClosedChannel'LOST+ succ+ (PendingChannelsResponse'ForceClosedChannel'AnchorState'Unrecognized _)+ = Prelude.error+ "PendingChannelsResponse'ForceClosedChannel'AnchorState.succ: bad argument: unrecognized value"+ pred PendingChannelsResponse'ForceClosedChannel'LIMBO+ = Prelude.error+ "PendingChannelsResponse'ForceClosedChannel'AnchorState.pred: bad argument PendingChannelsResponse'ForceClosedChannel'LIMBO. This value would be out of bounds."+ pred PendingChannelsResponse'ForceClosedChannel'RECOVERED+ = PendingChannelsResponse'ForceClosedChannel'LIMBO+ pred PendingChannelsResponse'ForceClosedChannel'LOST+ = PendingChannelsResponse'ForceClosedChannel'RECOVERED+ pred+ (PendingChannelsResponse'ForceClosedChannel'AnchorState'Unrecognized _)+ = Prelude.error+ "PendingChannelsResponse'ForceClosedChannel'AnchorState.pred: bad argument: unrecognized value"+ enumFrom = Data.ProtoLens.Message.Enum.messageEnumFrom+ enumFromTo = Data.ProtoLens.Message.Enum.messageEnumFromTo+ enumFromThen = Data.ProtoLens.Message.Enum.messageEnumFromThen+ enumFromThenTo = Data.ProtoLens.Message.Enum.messageEnumFromThenTo+instance Data.ProtoLens.FieldDefault PendingChannelsResponse'ForceClosedChannel'AnchorState where+ fieldDefault = PendingChannelsResponse'ForceClosedChannel'LIMBO+instance Control.DeepSeq.NFData PendingChannelsResponse'ForceClosedChannel'AnchorState where+ rnf x__ = Prelude.seq x__ ()+instance Text.PrettyPrint.GenericPretty.Out PendingChannelsResponse'ForceClosedChannel'AnchorState+{- | Fields :+ + * 'Proto.Lnrpc.Ln0_Fields.remoteNodePub' @:: Lens' PendingChannelsResponse'PendingChannel Data.Text.Text@+ * 'Proto.Lnrpc.Ln0_Fields.channelPoint' @:: Lens' PendingChannelsResponse'PendingChannel Data.Text.Text@+ * 'Proto.Lnrpc.Ln0_Fields.capacity' @:: Lens' PendingChannelsResponse'PendingChannel Data.Int.Int64@+ * 'Proto.Lnrpc.Ln0_Fields.localBalance' @:: Lens' PendingChannelsResponse'PendingChannel Data.Int.Int64@+ * 'Proto.Lnrpc.Ln0_Fields.remoteBalance' @:: Lens' PendingChannelsResponse'PendingChannel Data.Int.Int64@+ * 'Proto.Lnrpc.Ln0_Fields.localChanReserveSat' @:: Lens' PendingChannelsResponse'PendingChannel Data.Int.Int64@+ * 'Proto.Lnrpc.Ln0_Fields.remoteChanReserveSat' @:: Lens' PendingChannelsResponse'PendingChannel Data.Int.Int64@+ * 'Proto.Lnrpc.Ln0_Fields.initiator' @:: Lens' PendingChannelsResponse'PendingChannel Initiator@+ * 'Proto.Lnrpc.Ln0_Fields.commitmentType' @:: Lens' PendingChannelsResponse'PendingChannel CommitmentType@+ * 'Proto.Lnrpc.Ln0_Fields.numForwardingPackages' @:: Lens' PendingChannelsResponse'PendingChannel Data.Int.Int64@ -}+data PendingChannelsResponse'PendingChannel+ = PendingChannelsResponse'PendingChannel'_constructor {_PendingChannelsResponse'PendingChannel'remoteNodePub :: !Data.Text.Text,+ _PendingChannelsResponse'PendingChannel'channelPoint :: !Data.Text.Text,+ _PendingChannelsResponse'PendingChannel'capacity :: !Data.Int.Int64,+ _PendingChannelsResponse'PendingChannel'localBalance :: !Data.Int.Int64,+ _PendingChannelsResponse'PendingChannel'remoteBalance :: !Data.Int.Int64,+ _PendingChannelsResponse'PendingChannel'localChanReserveSat :: !Data.Int.Int64,+ _PendingChannelsResponse'PendingChannel'remoteChanReserveSat :: !Data.Int.Int64,+ _PendingChannelsResponse'PendingChannel'initiator :: !Initiator,+ _PendingChannelsResponse'PendingChannel'commitmentType :: !CommitmentType,+ _PendingChannelsResponse'PendingChannel'numForwardingPackages :: !Data.Int.Int64,+ _PendingChannelsResponse'PendingChannel'_unknownFields :: !Data.ProtoLens.FieldSet}+ deriving stock (Prelude.Eq, Prelude.Ord, GHC.Generics.Generic)+instance Prelude.Show PendingChannelsResponse'PendingChannel where+ showsPrec _ __x __s+ = Prelude.showChar+ '{'+ (Prelude.showString+ (Data.ProtoLens.showMessageShort __x) (Prelude.showChar '}' __s))+instance Text.PrettyPrint.GenericPretty.Out PendingChannelsResponse'PendingChannel+instance Data.ProtoLens.Field.HasField PendingChannelsResponse'PendingChannel "remoteNodePub" Data.Text.Text where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _PendingChannelsResponse'PendingChannel'remoteNodePub+ (\ x__ y__+ -> x__+ {_PendingChannelsResponse'PendingChannel'remoteNodePub = y__}))+ Prelude.id+instance Data.ProtoLens.Field.HasField PendingChannelsResponse'PendingChannel "channelPoint" Data.Text.Text where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _PendingChannelsResponse'PendingChannel'channelPoint+ (\ x__ y__+ -> x__+ {_PendingChannelsResponse'PendingChannel'channelPoint = y__}))+ Prelude.id+instance Data.ProtoLens.Field.HasField PendingChannelsResponse'PendingChannel "capacity" Data.Int.Int64 where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _PendingChannelsResponse'PendingChannel'capacity+ (\ x__ y__+ -> x__ {_PendingChannelsResponse'PendingChannel'capacity = y__}))+ Prelude.id+instance Data.ProtoLens.Field.HasField PendingChannelsResponse'PendingChannel "localBalance" Data.Int.Int64 where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _PendingChannelsResponse'PendingChannel'localBalance+ (\ x__ y__+ -> x__+ {_PendingChannelsResponse'PendingChannel'localBalance = y__}))+ Prelude.id+instance Data.ProtoLens.Field.HasField PendingChannelsResponse'PendingChannel "remoteBalance" Data.Int.Int64 where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _PendingChannelsResponse'PendingChannel'remoteBalance+ (\ x__ y__+ -> x__+ {_PendingChannelsResponse'PendingChannel'remoteBalance = y__}))+ Prelude.id+instance Data.ProtoLens.Field.HasField PendingChannelsResponse'PendingChannel "localChanReserveSat" Data.Int.Int64 where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _PendingChannelsResponse'PendingChannel'localChanReserveSat+ (\ x__ y__+ -> x__+ {_PendingChannelsResponse'PendingChannel'localChanReserveSat = y__}))+ Prelude.id+instance Data.ProtoLens.Field.HasField PendingChannelsResponse'PendingChannel "remoteChanReserveSat" Data.Int.Int64 where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _PendingChannelsResponse'PendingChannel'remoteChanReserveSat+ (\ x__ y__+ -> x__+ {_PendingChannelsResponse'PendingChannel'remoteChanReserveSat = y__}))+ Prelude.id+instance Data.ProtoLens.Field.HasField PendingChannelsResponse'PendingChannel "initiator" Initiator where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _PendingChannelsResponse'PendingChannel'initiator+ (\ x__ y__+ -> x__ {_PendingChannelsResponse'PendingChannel'initiator = y__}))+ Prelude.id+instance Data.ProtoLens.Field.HasField PendingChannelsResponse'PendingChannel "commitmentType" CommitmentType where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _PendingChannelsResponse'PendingChannel'commitmentType+ (\ x__ y__+ -> x__+ {_PendingChannelsResponse'PendingChannel'commitmentType = y__}))+ Prelude.id+instance Data.ProtoLens.Field.HasField PendingChannelsResponse'PendingChannel "numForwardingPackages" Data.Int.Int64 where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _PendingChannelsResponse'PendingChannel'numForwardingPackages+ (\ x__ y__+ -> x__+ {_PendingChannelsResponse'PendingChannel'numForwardingPackages = y__}))+ Prelude.id+instance Data.ProtoLens.Message PendingChannelsResponse'PendingChannel where+ messageName _+ = Data.Text.pack "lnrpc.PendingChannelsResponse.PendingChannel"+ packedMessageDescriptor _+ = "\n\+ \\SOPendingChannel\DC2&\n\+ \\SIremote_node_pub\CAN\SOH \SOH(\tR\rremoteNodePub\DC2#\n\+ \\rchannel_point\CAN\STX \SOH(\tR\fchannelPoint\DC2\SUB\n\+ \\bcapacity\CAN\ETX \SOH(\ETXR\bcapacity\DC2#\n\+ \\rlocal_balance\CAN\EOT \SOH(\ETXR\flocalBalance\DC2%\n\+ \\SOremote_balance\CAN\ENQ \SOH(\ETXR\rremoteBalance\DC23\n\+ \\SYNlocal_chan_reserve_sat\CAN\ACK \SOH(\ETXR\DC3localChanReserveSat\DC25\n\+ \\ETBremote_chan_reserve_sat\CAN\a \SOH(\ETXR\DC4remoteChanReserveSat\DC2.\n\+ \\tinitiator\CAN\b \SOH(\SO2\DLE.lnrpc.InitiatorR\tinitiator\DC2>\n\+ \\SIcommitment_type\CAN\t \SOH(\SO2\NAK.lnrpc.CommitmentTypeR\SOcommitmentType\DC26\n\+ \\ETBnum_forwarding_packages\CAN\n\+ \ \SOH(\ETXR\NAKnumForwardingPackages"+ packedFileDescriptor _ = packedFileDescriptor+ fieldsByTag+ = let+ remoteNodePub__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "remote_node_pub"+ (Data.ProtoLens.ScalarField Data.ProtoLens.StringField ::+ Data.ProtoLens.FieldTypeDescriptor Data.Text.Text)+ (Data.ProtoLens.PlainField+ Data.ProtoLens.Optional+ (Data.ProtoLens.Field.field @"remoteNodePub")) ::+ Data.ProtoLens.FieldDescriptor PendingChannelsResponse'PendingChannel+ channelPoint__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "channel_point"+ (Data.ProtoLens.ScalarField Data.ProtoLens.StringField ::+ Data.ProtoLens.FieldTypeDescriptor Data.Text.Text)+ (Data.ProtoLens.PlainField+ Data.ProtoLens.Optional+ (Data.ProtoLens.Field.field @"channelPoint")) ::+ Data.ProtoLens.FieldDescriptor PendingChannelsResponse'PendingChannel+ capacity__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "capacity"+ (Data.ProtoLens.ScalarField Data.ProtoLens.Int64Field ::+ Data.ProtoLens.FieldTypeDescriptor Data.Int.Int64)+ (Data.ProtoLens.PlainField+ Data.ProtoLens.Optional+ (Data.ProtoLens.Field.field @"capacity")) ::+ Data.ProtoLens.FieldDescriptor PendingChannelsResponse'PendingChannel+ localBalance__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "local_balance"+ (Data.ProtoLens.ScalarField Data.ProtoLens.Int64Field ::+ Data.ProtoLens.FieldTypeDescriptor Data.Int.Int64)+ (Data.ProtoLens.PlainField+ Data.ProtoLens.Optional+ (Data.ProtoLens.Field.field @"localBalance")) ::+ Data.ProtoLens.FieldDescriptor PendingChannelsResponse'PendingChannel+ remoteBalance__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "remote_balance"+ (Data.ProtoLens.ScalarField Data.ProtoLens.Int64Field ::+ Data.ProtoLens.FieldTypeDescriptor Data.Int.Int64)+ (Data.ProtoLens.PlainField+ Data.ProtoLens.Optional+ (Data.ProtoLens.Field.field @"remoteBalance")) ::+ Data.ProtoLens.FieldDescriptor PendingChannelsResponse'PendingChannel+ localChanReserveSat__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "local_chan_reserve_sat"+ (Data.ProtoLens.ScalarField Data.ProtoLens.Int64Field ::+ Data.ProtoLens.FieldTypeDescriptor Data.Int.Int64)+ (Data.ProtoLens.PlainField+ Data.ProtoLens.Optional+ (Data.ProtoLens.Field.field @"localChanReserveSat")) ::+ Data.ProtoLens.FieldDescriptor PendingChannelsResponse'PendingChannel+ remoteChanReserveSat__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "remote_chan_reserve_sat"+ (Data.ProtoLens.ScalarField Data.ProtoLens.Int64Field ::+ Data.ProtoLens.FieldTypeDescriptor Data.Int.Int64)+ (Data.ProtoLens.PlainField+ Data.ProtoLens.Optional+ (Data.ProtoLens.Field.field @"remoteChanReserveSat")) ::+ Data.ProtoLens.FieldDescriptor PendingChannelsResponse'PendingChannel+ initiator__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "initiator"+ (Data.ProtoLens.ScalarField Data.ProtoLens.EnumField ::+ Data.ProtoLens.FieldTypeDescriptor Initiator)+ (Data.ProtoLens.PlainField+ Data.ProtoLens.Optional+ (Data.ProtoLens.Field.field @"initiator")) ::+ Data.ProtoLens.FieldDescriptor PendingChannelsResponse'PendingChannel+ commitmentType__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "commitment_type"+ (Data.ProtoLens.ScalarField Data.ProtoLens.EnumField ::+ Data.ProtoLens.FieldTypeDescriptor CommitmentType)+ (Data.ProtoLens.PlainField+ Data.ProtoLens.Optional+ (Data.ProtoLens.Field.field @"commitmentType")) ::+ Data.ProtoLens.FieldDescriptor PendingChannelsResponse'PendingChannel+ numForwardingPackages__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "num_forwarding_packages"+ (Data.ProtoLens.ScalarField Data.ProtoLens.Int64Field ::+ Data.ProtoLens.FieldTypeDescriptor Data.Int.Int64)+ (Data.ProtoLens.PlainField+ Data.ProtoLens.Optional+ (Data.ProtoLens.Field.field @"numForwardingPackages")) ::+ Data.ProtoLens.FieldDescriptor PendingChannelsResponse'PendingChannel+ in+ Data.Map.fromList+ [(Data.ProtoLens.Tag 1, remoteNodePub__field_descriptor),+ (Data.ProtoLens.Tag 2, channelPoint__field_descriptor),+ (Data.ProtoLens.Tag 3, capacity__field_descriptor),+ (Data.ProtoLens.Tag 4, localBalance__field_descriptor),+ (Data.ProtoLens.Tag 5, remoteBalance__field_descriptor),+ (Data.ProtoLens.Tag 6, localChanReserveSat__field_descriptor),+ (Data.ProtoLens.Tag 7, remoteChanReserveSat__field_descriptor),+ (Data.ProtoLens.Tag 8, initiator__field_descriptor),+ (Data.ProtoLens.Tag 9, commitmentType__field_descriptor),+ (Data.ProtoLens.Tag 10, numForwardingPackages__field_descriptor)]+ unknownFields+ = Lens.Family2.Unchecked.lens+ _PendingChannelsResponse'PendingChannel'_unknownFields+ (\ x__ y__+ -> x__+ {_PendingChannelsResponse'PendingChannel'_unknownFields = y__})+ defMessage+ = PendingChannelsResponse'PendingChannel'_constructor+ {_PendingChannelsResponse'PendingChannel'remoteNodePub = Data.ProtoLens.fieldDefault,+ _PendingChannelsResponse'PendingChannel'channelPoint = Data.ProtoLens.fieldDefault,+ _PendingChannelsResponse'PendingChannel'capacity = Data.ProtoLens.fieldDefault,+ _PendingChannelsResponse'PendingChannel'localBalance = Data.ProtoLens.fieldDefault,+ _PendingChannelsResponse'PendingChannel'remoteBalance = Data.ProtoLens.fieldDefault,+ _PendingChannelsResponse'PendingChannel'localChanReserveSat = Data.ProtoLens.fieldDefault,+ _PendingChannelsResponse'PendingChannel'remoteChanReserveSat = Data.ProtoLens.fieldDefault,+ _PendingChannelsResponse'PendingChannel'initiator = Data.ProtoLens.fieldDefault,+ _PendingChannelsResponse'PendingChannel'commitmentType = Data.ProtoLens.fieldDefault,+ _PendingChannelsResponse'PendingChannel'numForwardingPackages = Data.ProtoLens.fieldDefault,+ _PendingChannelsResponse'PendingChannel'_unknownFields = []}+ parseMessage+ = let+ loop ::+ PendingChannelsResponse'PendingChannel+ -> Data.ProtoLens.Encoding.Bytes.Parser PendingChannelsResponse'PendingChannel+ loop x+ = do end <- Data.ProtoLens.Encoding.Bytes.atEnd+ if end then+ do (let missing = []+ in+ if Prelude.null missing then+ Prelude.return ()+ else+ Prelude.fail+ ((Prelude.++)+ "Missing required fields: "+ (Prelude.show (missing :: [Prelude.String]))))+ Prelude.return+ (Lens.Family2.over+ Data.ProtoLens.unknownFields (\ !t -> Prelude.reverse t) x)+ else+ do tag <- Data.ProtoLens.Encoding.Bytes.getVarInt+ case tag of+ 10+ -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (do value <- do len <- Data.ProtoLens.Encoding.Bytes.getVarInt+ Data.ProtoLens.Encoding.Bytes.getBytes+ (Prelude.fromIntegral len)+ Data.ProtoLens.Encoding.Bytes.runEither+ (case Data.Text.Encoding.decodeUtf8' value of+ (Prelude.Left err)+ -> Prelude.Left (Prelude.show err)+ (Prelude.Right r) -> Prelude.Right r))+ "remote_node_pub"+ loop+ (Lens.Family2.set+ (Data.ProtoLens.Field.field @"remoteNodePub") y x)+ 18+ -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (do value <- do len <- Data.ProtoLens.Encoding.Bytes.getVarInt+ Data.ProtoLens.Encoding.Bytes.getBytes+ (Prelude.fromIntegral len)+ Data.ProtoLens.Encoding.Bytes.runEither+ (case Data.Text.Encoding.decodeUtf8' value of+ (Prelude.Left err)+ -> Prelude.Left (Prelude.show err)+ (Prelude.Right r) -> Prelude.Right r))+ "channel_point"+ loop+ (Lens.Family2.set+ (Data.ProtoLens.Field.field @"channelPoint") y x)+ 24+ -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (Prelude.fmap+ Prelude.fromIntegral+ Data.ProtoLens.Encoding.Bytes.getVarInt)+ "capacity"+ loop+ (Lens.Family2.set (Data.ProtoLens.Field.field @"capacity") y x)+ 32+ -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (Prelude.fmap+ Prelude.fromIntegral+ Data.ProtoLens.Encoding.Bytes.getVarInt)+ "local_balance"+ loop+ (Lens.Family2.set+ (Data.ProtoLens.Field.field @"localBalance") y x)+ 40+ -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (Prelude.fmap+ Prelude.fromIntegral+ Data.ProtoLens.Encoding.Bytes.getVarInt)+ "remote_balance"+ loop+ (Lens.Family2.set+ (Data.ProtoLens.Field.field @"remoteBalance") y x)+ 48+ -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (Prelude.fmap+ Prelude.fromIntegral+ Data.ProtoLens.Encoding.Bytes.getVarInt)+ "local_chan_reserve_sat"+ loop+ (Lens.Family2.set+ (Data.ProtoLens.Field.field @"localChanReserveSat") y x)+ 56+ -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (Prelude.fmap+ Prelude.fromIntegral+ Data.ProtoLens.Encoding.Bytes.getVarInt)+ "remote_chan_reserve_sat"+ loop+ (Lens.Family2.set+ (Data.ProtoLens.Field.field @"remoteChanReserveSat") y x)+ 64+ -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (Prelude.fmap+ Prelude.toEnum+ (Prelude.fmap+ Prelude.fromIntegral+ Data.ProtoLens.Encoding.Bytes.getVarInt))+ "initiator"+ loop+ (Lens.Family2.set (Data.ProtoLens.Field.field @"initiator") y x)+ 72+ -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (Prelude.fmap+ Prelude.toEnum+ (Prelude.fmap+ Prelude.fromIntegral+ Data.ProtoLens.Encoding.Bytes.getVarInt))+ "commitment_type"+ loop+ (Lens.Family2.set+ (Data.ProtoLens.Field.field @"commitmentType") y x)+ 80+ -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (Prelude.fmap+ Prelude.fromIntegral+ Data.ProtoLens.Encoding.Bytes.getVarInt)+ "num_forwarding_packages"+ loop+ (Lens.Family2.set+ (Data.ProtoLens.Field.field @"numForwardingPackages") y x)+ wire+ -> do !y <- Data.ProtoLens.Encoding.Wire.parseTaggedValueFromWire+ wire+ loop+ (Lens.Family2.over+ Data.ProtoLens.unknownFields (\ !t -> (:) y t) x)+ in+ (Data.ProtoLens.Encoding.Bytes.<?>)+ (do loop Data.ProtoLens.defMessage) "PendingChannel"+ buildMessage+ = \ _x+ -> (Data.Monoid.<>)+ (let+ _v+ = Lens.Family2.view+ (Data.ProtoLens.Field.field @"remoteNodePub") _x+ in+ if (Prelude.==) _v Data.ProtoLens.fieldDefault then+ Data.Monoid.mempty+ else+ (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 10)+ ((Prelude..)+ (\ bs+ -> (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt+ (Prelude.fromIntegral (Data.ByteString.length bs)))+ (Data.ProtoLens.Encoding.Bytes.putBytes bs))+ Data.Text.Encoding.encodeUtf8 _v))+ ((Data.Monoid.<>)+ (let+ _v+ = Lens.Family2.view (Data.ProtoLens.Field.field @"channelPoint") _x+ in+ if (Prelude.==) _v Data.ProtoLens.fieldDefault then+ Data.Monoid.mempty+ else+ (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 18)+ ((Prelude..)+ (\ bs+ -> (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt+ (Prelude.fromIntegral (Data.ByteString.length bs)))+ (Data.ProtoLens.Encoding.Bytes.putBytes bs))+ Data.Text.Encoding.encodeUtf8 _v))+ ((Data.Monoid.<>)+ (let+ _v = Lens.Family2.view (Data.ProtoLens.Field.field @"capacity") _x+ in+ if (Prelude.==) _v Data.ProtoLens.fieldDefault then+ Data.Monoid.mempty+ else+ (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 24)+ ((Prelude..)+ Data.ProtoLens.Encoding.Bytes.putVarInt Prelude.fromIntegral _v))+ ((Data.Monoid.<>)+ (let+ _v+ = Lens.Family2.view (Data.ProtoLens.Field.field @"localBalance") _x+ in+ if (Prelude.==) _v Data.ProtoLens.fieldDefault then+ Data.Monoid.mempty+ else+ (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 32)+ ((Prelude..)+ Data.ProtoLens.Encoding.Bytes.putVarInt Prelude.fromIntegral _v))+ ((Data.Monoid.<>)+ (let+ _v+ = Lens.Family2.view+ (Data.ProtoLens.Field.field @"remoteBalance") _x+ in+ if (Prelude.==) _v Data.ProtoLens.fieldDefault then+ Data.Monoid.mempty+ else+ (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 40)+ ((Prelude..)+ Data.ProtoLens.Encoding.Bytes.putVarInt Prelude.fromIntegral+ _v))+ ((Data.Monoid.<>)+ (let+ _v+ = Lens.Family2.view+ (Data.ProtoLens.Field.field @"localChanReserveSat") _x+ in+ if (Prelude.==) _v Data.ProtoLens.fieldDefault then+ Data.Monoid.mempty+ else+ (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 48)+ ((Prelude..)+ Data.ProtoLens.Encoding.Bytes.putVarInt Prelude.fromIntegral+ _v))+ ((Data.Monoid.<>)+ (let+ _v+ = Lens.Family2.view+ (Data.ProtoLens.Field.field @"remoteChanReserveSat") _x+ in+ if (Prelude.==) _v Data.ProtoLens.fieldDefault then+ Data.Monoid.mempty+ else+ (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 56)+ ((Prelude..)+ Data.ProtoLens.Encoding.Bytes.putVarInt+ Prelude.fromIntegral _v))+ ((Data.Monoid.<>)+ (let+ _v+ = Lens.Family2.view+ (Data.ProtoLens.Field.field @"initiator") _x+ in+ if (Prelude.==) _v Data.ProtoLens.fieldDefault then+ Data.Monoid.mempty+ else+ (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 64)+ ((Prelude..)+ ((Prelude..)+ Data.ProtoLens.Encoding.Bytes.putVarInt+ Prelude.fromIntegral)+ Prelude.fromEnum _v))+ ((Data.Monoid.<>)+ (let+ _v+ = Lens.Family2.view+ (Data.ProtoLens.Field.field @"commitmentType") _x+ in+ if (Prelude.==) _v Data.ProtoLens.fieldDefault then+ Data.Monoid.mempty+ else+ (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 72)+ ((Prelude..)+ ((Prelude..)+ Data.ProtoLens.Encoding.Bytes.putVarInt+ Prelude.fromIntegral)+ Prelude.fromEnum _v))+ ((Data.Monoid.<>)+ (let+ _v+ = Lens.Family2.view+ (Data.ProtoLens.Field.field+ @"numForwardingPackages")+ _x+ in+ if (Prelude.==) _v Data.ProtoLens.fieldDefault then+ Data.Monoid.mempty+ else+ (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 80)+ ((Prelude..)+ Data.ProtoLens.Encoding.Bytes.putVarInt+ Prelude.fromIntegral _v))+ (Data.ProtoLens.Encoding.Wire.buildFieldSet+ (Lens.Family2.view+ Data.ProtoLens.unknownFields _x)))))))))))+instance Control.DeepSeq.NFData PendingChannelsResponse'PendingChannel where+ rnf+ = \ x__+ -> Control.DeepSeq.deepseq+ (_PendingChannelsResponse'PendingChannel'_unknownFields x__)+ (Control.DeepSeq.deepseq+ (_PendingChannelsResponse'PendingChannel'remoteNodePub x__)+ (Control.DeepSeq.deepseq+ (_PendingChannelsResponse'PendingChannel'channelPoint x__)+ (Control.DeepSeq.deepseq+ (_PendingChannelsResponse'PendingChannel'capacity x__)+ (Control.DeepSeq.deepseq+ (_PendingChannelsResponse'PendingChannel'localBalance x__)+ (Control.DeepSeq.deepseq+ (_PendingChannelsResponse'PendingChannel'remoteBalance x__)+ (Control.DeepSeq.deepseq+ (_PendingChannelsResponse'PendingChannel'localChanReserveSat x__)+ (Control.DeepSeq.deepseq+ (_PendingChannelsResponse'PendingChannel'remoteChanReserveSat x__)+ (Control.DeepSeq.deepseq+ (_PendingChannelsResponse'PendingChannel'initiator x__)+ (Control.DeepSeq.deepseq+ (_PendingChannelsResponse'PendingChannel'commitmentType x__)+ (Control.DeepSeq.deepseq+ (_PendingChannelsResponse'PendingChannel'numForwardingPackages+ x__)+ ()))))))))))+{- | Fields :+ + * 'Proto.Lnrpc.Ln0_Fields.channel' @:: Lens' PendingChannelsResponse'PendingOpenChannel PendingChannelsResponse'PendingChannel@+ * 'Proto.Lnrpc.Ln0_Fields.maybe'channel' @:: Lens' PendingChannelsResponse'PendingOpenChannel (Prelude.Maybe PendingChannelsResponse'PendingChannel)@+ * 'Proto.Lnrpc.Ln0_Fields.confirmationHeight' @:: Lens' PendingChannelsResponse'PendingOpenChannel Data.Word.Word32@+ * 'Proto.Lnrpc.Ln0_Fields.commitFee' @:: Lens' PendingChannelsResponse'PendingOpenChannel Data.Int.Int64@+ * 'Proto.Lnrpc.Ln0_Fields.commitWeight' @:: Lens' PendingChannelsResponse'PendingOpenChannel Data.Int.Int64@+ * 'Proto.Lnrpc.Ln0_Fields.feePerKw' @:: Lens' PendingChannelsResponse'PendingOpenChannel Data.Int.Int64@ -}+data PendingChannelsResponse'PendingOpenChannel+ = PendingChannelsResponse'PendingOpenChannel'_constructor {_PendingChannelsResponse'PendingOpenChannel'channel :: !(Prelude.Maybe PendingChannelsResponse'PendingChannel),+ _PendingChannelsResponse'PendingOpenChannel'confirmationHeight :: !Data.Word.Word32,+ _PendingChannelsResponse'PendingOpenChannel'commitFee :: !Data.Int.Int64,+ _PendingChannelsResponse'PendingOpenChannel'commitWeight :: !Data.Int.Int64,+ _PendingChannelsResponse'PendingOpenChannel'feePerKw :: !Data.Int.Int64,+ _PendingChannelsResponse'PendingOpenChannel'_unknownFields :: !Data.ProtoLens.FieldSet}+ deriving stock (Prelude.Eq, Prelude.Ord, GHC.Generics.Generic)+instance Prelude.Show PendingChannelsResponse'PendingOpenChannel where+ showsPrec _ __x __s+ = Prelude.showChar+ '{'+ (Prelude.showString+ (Data.ProtoLens.showMessageShort __x) (Prelude.showChar '}' __s))+instance Text.PrettyPrint.GenericPretty.Out PendingChannelsResponse'PendingOpenChannel+instance Data.ProtoLens.Field.HasField PendingChannelsResponse'PendingOpenChannel "channel" PendingChannelsResponse'PendingChannel where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _PendingChannelsResponse'PendingOpenChannel'channel+ (\ x__ y__+ -> x__+ {_PendingChannelsResponse'PendingOpenChannel'channel = y__}))+ (Data.ProtoLens.maybeLens Data.ProtoLens.defMessage)+instance Data.ProtoLens.Field.HasField PendingChannelsResponse'PendingOpenChannel "maybe'channel" (Prelude.Maybe PendingChannelsResponse'PendingChannel) where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _PendingChannelsResponse'PendingOpenChannel'channel+ (\ x__ y__+ -> x__+ {_PendingChannelsResponse'PendingOpenChannel'channel = y__}))+ Prelude.id+instance Data.ProtoLens.Field.HasField PendingChannelsResponse'PendingOpenChannel "confirmationHeight" Data.Word.Word32 where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _PendingChannelsResponse'PendingOpenChannel'confirmationHeight+ (\ x__ y__+ -> x__+ {_PendingChannelsResponse'PendingOpenChannel'confirmationHeight = y__}))+ Prelude.id+instance Data.ProtoLens.Field.HasField PendingChannelsResponse'PendingOpenChannel "commitFee" Data.Int.Int64 where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _PendingChannelsResponse'PendingOpenChannel'commitFee+ (\ x__ y__+ -> x__+ {_PendingChannelsResponse'PendingOpenChannel'commitFee = y__}))+ Prelude.id+instance Data.ProtoLens.Field.HasField PendingChannelsResponse'PendingOpenChannel "commitWeight" Data.Int.Int64 where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _PendingChannelsResponse'PendingOpenChannel'commitWeight+ (\ x__ y__+ -> x__+ {_PendingChannelsResponse'PendingOpenChannel'commitWeight = y__}))+ Prelude.id+instance Data.ProtoLens.Field.HasField PendingChannelsResponse'PendingOpenChannel "feePerKw" Data.Int.Int64 where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _PendingChannelsResponse'PendingOpenChannel'feePerKw+ (\ x__ y__+ -> x__+ {_PendingChannelsResponse'PendingOpenChannel'feePerKw = y__}))+ Prelude.id+instance Data.ProtoLens.Message PendingChannelsResponse'PendingOpenChannel where+ messageName _+ = Data.Text.pack "lnrpc.PendingChannelsResponse.PendingOpenChannel"+ packedMessageDescriptor _+ = "\n\+ \\DC2PendingOpenChannel\DC2G\n\+ \\achannel\CAN\SOH \SOH(\v2-.lnrpc.PendingChannelsResponse.PendingChannelR\achannel\DC2/\n\+ \\DC3confirmation_height\CAN\STX \SOH(\rR\DC2confirmationHeight\DC2\GS\n\+ \\n\+ \commit_fee\CAN\EOT \SOH(\ETXR\tcommitFee\DC2#\n\+ \\rcommit_weight\CAN\ENQ \SOH(\ETXR\fcommitWeight\DC2\FS\n\+ \\n\+ \fee_per_kw\CAN\ACK \SOH(\ETXR\bfeePerKw"+ packedFileDescriptor _ = packedFileDescriptor+ fieldsByTag+ = let+ channel__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "channel"+ (Data.ProtoLens.MessageField Data.ProtoLens.MessageType ::+ Data.ProtoLens.FieldTypeDescriptor PendingChannelsResponse'PendingChannel)+ (Data.ProtoLens.OptionalField+ (Data.ProtoLens.Field.field @"maybe'channel")) ::+ Data.ProtoLens.FieldDescriptor PendingChannelsResponse'PendingOpenChannel+ confirmationHeight__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "confirmation_height"+ (Data.ProtoLens.ScalarField Data.ProtoLens.UInt32Field ::+ Data.ProtoLens.FieldTypeDescriptor Data.Word.Word32)+ (Data.ProtoLens.PlainField+ Data.ProtoLens.Optional+ (Data.ProtoLens.Field.field @"confirmationHeight")) ::+ Data.ProtoLens.FieldDescriptor PendingChannelsResponse'PendingOpenChannel+ commitFee__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "commit_fee"+ (Data.ProtoLens.ScalarField Data.ProtoLens.Int64Field ::+ Data.ProtoLens.FieldTypeDescriptor Data.Int.Int64)+ (Data.ProtoLens.PlainField+ Data.ProtoLens.Optional+ (Data.ProtoLens.Field.field @"commitFee")) ::+ Data.ProtoLens.FieldDescriptor PendingChannelsResponse'PendingOpenChannel+ commitWeight__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "commit_weight"+ (Data.ProtoLens.ScalarField Data.ProtoLens.Int64Field ::+ Data.ProtoLens.FieldTypeDescriptor Data.Int.Int64)+ (Data.ProtoLens.PlainField+ Data.ProtoLens.Optional+ (Data.ProtoLens.Field.field @"commitWeight")) ::+ Data.ProtoLens.FieldDescriptor PendingChannelsResponse'PendingOpenChannel+ feePerKw__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "fee_per_kw"+ (Data.ProtoLens.ScalarField Data.ProtoLens.Int64Field ::+ Data.ProtoLens.FieldTypeDescriptor Data.Int.Int64)+ (Data.ProtoLens.PlainField+ Data.ProtoLens.Optional+ (Data.ProtoLens.Field.field @"feePerKw")) ::+ Data.ProtoLens.FieldDescriptor PendingChannelsResponse'PendingOpenChannel+ in+ Data.Map.fromList+ [(Data.ProtoLens.Tag 1, channel__field_descriptor),+ (Data.ProtoLens.Tag 2, confirmationHeight__field_descriptor),+ (Data.ProtoLens.Tag 4, commitFee__field_descriptor),+ (Data.ProtoLens.Tag 5, commitWeight__field_descriptor),+ (Data.ProtoLens.Tag 6, feePerKw__field_descriptor)]+ unknownFields+ = Lens.Family2.Unchecked.lens+ _PendingChannelsResponse'PendingOpenChannel'_unknownFields+ (\ x__ y__+ -> x__+ {_PendingChannelsResponse'PendingOpenChannel'_unknownFields = y__})+ defMessage+ = PendingChannelsResponse'PendingOpenChannel'_constructor+ {_PendingChannelsResponse'PendingOpenChannel'channel = Prelude.Nothing,+ _PendingChannelsResponse'PendingOpenChannel'confirmationHeight = Data.ProtoLens.fieldDefault,+ _PendingChannelsResponse'PendingOpenChannel'commitFee = Data.ProtoLens.fieldDefault,+ _PendingChannelsResponse'PendingOpenChannel'commitWeight = Data.ProtoLens.fieldDefault,+ _PendingChannelsResponse'PendingOpenChannel'feePerKw = Data.ProtoLens.fieldDefault,+ _PendingChannelsResponse'PendingOpenChannel'_unknownFields = []}+ parseMessage+ = let+ loop ::+ PendingChannelsResponse'PendingOpenChannel+ -> Data.ProtoLens.Encoding.Bytes.Parser PendingChannelsResponse'PendingOpenChannel+ loop x+ = do end <- Data.ProtoLens.Encoding.Bytes.atEnd+ if end then+ do (let missing = []+ in+ if Prelude.null missing then+ Prelude.return ()+ else+ Prelude.fail+ ((Prelude.++)+ "Missing required fields: "+ (Prelude.show (missing :: [Prelude.String]))))+ Prelude.return+ (Lens.Family2.over+ Data.ProtoLens.unknownFields (\ !t -> Prelude.reverse t) x)+ else+ do tag <- Data.ProtoLens.Encoding.Bytes.getVarInt+ case tag of+ 10+ -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (do len <- Data.ProtoLens.Encoding.Bytes.getVarInt+ Data.ProtoLens.Encoding.Bytes.isolate+ (Prelude.fromIntegral len) Data.ProtoLens.parseMessage)+ "channel"+ loop (Lens.Family2.set (Data.ProtoLens.Field.field @"channel") y x)+ 16+ -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (Prelude.fmap+ Prelude.fromIntegral+ Data.ProtoLens.Encoding.Bytes.getVarInt)+ "confirmation_height"+ loop+ (Lens.Family2.set+ (Data.ProtoLens.Field.field @"confirmationHeight") y x)+ 32+ -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (Prelude.fmap+ Prelude.fromIntegral+ Data.ProtoLens.Encoding.Bytes.getVarInt)+ "commit_fee"+ loop+ (Lens.Family2.set (Data.ProtoLens.Field.field @"commitFee") y x)+ 40+ -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (Prelude.fmap+ Prelude.fromIntegral+ Data.ProtoLens.Encoding.Bytes.getVarInt)+ "commit_weight"+ loop+ (Lens.Family2.set+ (Data.ProtoLens.Field.field @"commitWeight") y x)+ 48+ -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (Prelude.fmap+ Prelude.fromIntegral+ Data.ProtoLens.Encoding.Bytes.getVarInt)+ "fee_per_kw"+ loop+ (Lens.Family2.set (Data.ProtoLens.Field.field @"feePerKw") y x)+ wire+ -> do !y <- Data.ProtoLens.Encoding.Wire.parseTaggedValueFromWire+ wire+ loop+ (Lens.Family2.over+ Data.ProtoLens.unknownFields (\ !t -> (:) y t) x)+ in+ (Data.ProtoLens.Encoding.Bytes.<?>)+ (do loop Data.ProtoLens.defMessage) "PendingOpenChannel"+ buildMessage+ = \ _x+ -> (Data.Monoid.<>)+ (case+ Lens.Family2.view (Data.ProtoLens.Field.field @"maybe'channel") _x+ of+ Prelude.Nothing -> Data.Monoid.mempty+ (Prelude.Just _v)+ -> (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 10)+ ((Prelude..)+ (\ bs+ -> (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt+ (Prelude.fromIntegral (Data.ByteString.length bs)))+ (Data.ProtoLens.Encoding.Bytes.putBytes bs))+ Data.ProtoLens.encodeMessage _v))+ ((Data.Monoid.<>)+ (let+ _v+ = Lens.Family2.view+ (Data.ProtoLens.Field.field @"confirmationHeight") _x+ in+ if (Prelude.==) _v Data.ProtoLens.fieldDefault then+ Data.Monoid.mempty+ else+ (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 16)+ ((Prelude..)+ Data.ProtoLens.Encoding.Bytes.putVarInt Prelude.fromIntegral _v))+ ((Data.Monoid.<>)+ (let+ _v = Lens.Family2.view (Data.ProtoLens.Field.field @"commitFee") _x+ in+ if (Prelude.==) _v Data.ProtoLens.fieldDefault then+ Data.Monoid.mempty+ else+ (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 32)+ ((Prelude..)+ Data.ProtoLens.Encoding.Bytes.putVarInt Prelude.fromIntegral _v))+ ((Data.Monoid.<>)+ (let+ _v+ = Lens.Family2.view (Data.ProtoLens.Field.field @"commitWeight") _x+ in+ if (Prelude.==) _v Data.ProtoLens.fieldDefault then+ Data.Monoid.mempty+ else+ (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 40)+ ((Prelude..)+ Data.ProtoLens.Encoding.Bytes.putVarInt Prelude.fromIntegral _v))+ ((Data.Monoid.<>)+ (let+ _v = Lens.Family2.view (Data.ProtoLens.Field.field @"feePerKw") _x+ in+ if (Prelude.==) _v Data.ProtoLens.fieldDefault then+ Data.Monoid.mempty+ else+ (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 48)+ ((Prelude..)+ Data.ProtoLens.Encoding.Bytes.putVarInt Prelude.fromIntegral+ _v))+ (Data.ProtoLens.Encoding.Wire.buildFieldSet+ (Lens.Family2.view Data.ProtoLens.unknownFields _x))))))+instance Control.DeepSeq.NFData PendingChannelsResponse'PendingOpenChannel where+ rnf+ = \ x__+ -> Control.DeepSeq.deepseq+ (_PendingChannelsResponse'PendingOpenChannel'_unknownFields x__)+ (Control.DeepSeq.deepseq+ (_PendingChannelsResponse'PendingOpenChannel'channel x__)+ (Control.DeepSeq.deepseq+ (_PendingChannelsResponse'PendingOpenChannel'confirmationHeight+ x__)+ (Control.DeepSeq.deepseq+ (_PendingChannelsResponse'PendingOpenChannel'commitFee x__)+ (Control.DeepSeq.deepseq+ (_PendingChannelsResponse'PendingOpenChannel'commitWeight x__)+ (Control.DeepSeq.deepseq+ (_PendingChannelsResponse'PendingOpenChannel'feePerKw x__) ())))))+{- | Fields :+ + * 'Proto.Lnrpc.Ln0_Fields.channel' @:: Lens' PendingChannelsResponse'WaitingCloseChannel PendingChannelsResponse'PendingChannel@+ * 'Proto.Lnrpc.Ln0_Fields.maybe'channel' @:: Lens' PendingChannelsResponse'WaitingCloseChannel (Prelude.Maybe PendingChannelsResponse'PendingChannel)@+ * 'Proto.Lnrpc.Ln0_Fields.limboBalance' @:: Lens' PendingChannelsResponse'WaitingCloseChannel Data.Int.Int64@+ * 'Proto.Lnrpc.Ln0_Fields.commitments' @:: Lens' PendingChannelsResponse'WaitingCloseChannel PendingChannelsResponse'Commitments@+ * 'Proto.Lnrpc.Ln0_Fields.maybe'commitments' @:: Lens' PendingChannelsResponse'WaitingCloseChannel (Prelude.Maybe PendingChannelsResponse'Commitments)@ -}+data PendingChannelsResponse'WaitingCloseChannel+ = PendingChannelsResponse'WaitingCloseChannel'_constructor {_PendingChannelsResponse'WaitingCloseChannel'channel :: !(Prelude.Maybe PendingChannelsResponse'PendingChannel),+ _PendingChannelsResponse'WaitingCloseChannel'limboBalance :: !Data.Int.Int64,+ _PendingChannelsResponse'WaitingCloseChannel'commitments :: !(Prelude.Maybe PendingChannelsResponse'Commitments),+ _PendingChannelsResponse'WaitingCloseChannel'_unknownFields :: !Data.ProtoLens.FieldSet}+ deriving stock (Prelude.Eq, Prelude.Ord, GHC.Generics.Generic)+instance Prelude.Show PendingChannelsResponse'WaitingCloseChannel where+ showsPrec _ __x __s+ = Prelude.showChar+ '{'+ (Prelude.showString+ (Data.ProtoLens.showMessageShort __x) (Prelude.showChar '}' __s))+instance Text.PrettyPrint.GenericPretty.Out PendingChannelsResponse'WaitingCloseChannel+instance Data.ProtoLens.Field.HasField PendingChannelsResponse'WaitingCloseChannel "channel" PendingChannelsResponse'PendingChannel where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _PendingChannelsResponse'WaitingCloseChannel'channel+ (\ x__ y__+ -> x__+ {_PendingChannelsResponse'WaitingCloseChannel'channel = y__}))+ (Data.ProtoLens.maybeLens Data.ProtoLens.defMessage)+instance Data.ProtoLens.Field.HasField PendingChannelsResponse'WaitingCloseChannel "maybe'channel" (Prelude.Maybe PendingChannelsResponse'PendingChannel) where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _PendingChannelsResponse'WaitingCloseChannel'channel+ (\ x__ y__+ -> x__+ {_PendingChannelsResponse'WaitingCloseChannel'channel = y__}))+ Prelude.id+instance Data.ProtoLens.Field.HasField PendingChannelsResponse'WaitingCloseChannel "limboBalance" Data.Int.Int64 where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _PendingChannelsResponse'WaitingCloseChannel'limboBalance+ (\ x__ y__+ -> x__+ {_PendingChannelsResponse'WaitingCloseChannel'limboBalance = y__}))+ Prelude.id+instance Data.ProtoLens.Field.HasField PendingChannelsResponse'WaitingCloseChannel "commitments" PendingChannelsResponse'Commitments where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _PendingChannelsResponse'WaitingCloseChannel'commitments+ (\ x__ y__+ -> x__+ {_PendingChannelsResponse'WaitingCloseChannel'commitments = y__}))+ (Data.ProtoLens.maybeLens Data.ProtoLens.defMessage)+instance Data.ProtoLens.Field.HasField PendingChannelsResponse'WaitingCloseChannel "maybe'commitments" (Prelude.Maybe PendingChannelsResponse'Commitments) where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _PendingChannelsResponse'WaitingCloseChannel'commitments+ (\ x__ y__+ -> x__+ {_PendingChannelsResponse'WaitingCloseChannel'commitments = y__}))+ Prelude.id+instance Data.ProtoLens.Message PendingChannelsResponse'WaitingCloseChannel where+ messageName _+ = Data.Text.pack+ "lnrpc.PendingChannelsResponse.WaitingCloseChannel"+ packedMessageDescriptor _+ = "\n\+ \\DC3WaitingCloseChannel\DC2G\n\+ \\achannel\CAN\SOH \SOH(\v2-.lnrpc.PendingChannelsResponse.PendingChannelR\achannel\DC2#\n\+ \\rlimbo_balance\CAN\STX \SOH(\ETXR\flimboBalance\DC2L\n\+ \\vcommitments\CAN\ETX \SOH(\v2*.lnrpc.PendingChannelsResponse.CommitmentsR\vcommitments"+ packedFileDescriptor _ = packedFileDescriptor+ fieldsByTag+ = let+ channel__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "channel"+ (Data.ProtoLens.MessageField Data.ProtoLens.MessageType ::+ Data.ProtoLens.FieldTypeDescriptor PendingChannelsResponse'PendingChannel)+ (Data.ProtoLens.OptionalField+ (Data.ProtoLens.Field.field @"maybe'channel")) ::+ Data.ProtoLens.FieldDescriptor PendingChannelsResponse'WaitingCloseChannel+ limboBalance__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "limbo_balance"+ (Data.ProtoLens.ScalarField Data.ProtoLens.Int64Field ::+ Data.ProtoLens.FieldTypeDescriptor Data.Int.Int64)+ (Data.ProtoLens.PlainField+ Data.ProtoLens.Optional+ (Data.ProtoLens.Field.field @"limboBalance")) ::+ Data.ProtoLens.FieldDescriptor PendingChannelsResponse'WaitingCloseChannel+ commitments__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "commitments"+ (Data.ProtoLens.MessageField Data.ProtoLens.MessageType ::+ Data.ProtoLens.FieldTypeDescriptor PendingChannelsResponse'Commitments)+ (Data.ProtoLens.OptionalField+ (Data.ProtoLens.Field.field @"maybe'commitments")) ::+ Data.ProtoLens.FieldDescriptor PendingChannelsResponse'WaitingCloseChannel+ in+ Data.Map.fromList+ [(Data.ProtoLens.Tag 1, channel__field_descriptor),+ (Data.ProtoLens.Tag 2, limboBalance__field_descriptor),+ (Data.ProtoLens.Tag 3, commitments__field_descriptor)]+ unknownFields+ = Lens.Family2.Unchecked.lens+ _PendingChannelsResponse'WaitingCloseChannel'_unknownFields+ (\ x__ y__+ -> x__+ {_PendingChannelsResponse'WaitingCloseChannel'_unknownFields = y__})+ defMessage+ = PendingChannelsResponse'WaitingCloseChannel'_constructor+ {_PendingChannelsResponse'WaitingCloseChannel'channel = Prelude.Nothing,+ _PendingChannelsResponse'WaitingCloseChannel'limboBalance = Data.ProtoLens.fieldDefault,+ _PendingChannelsResponse'WaitingCloseChannel'commitments = Prelude.Nothing,+ _PendingChannelsResponse'WaitingCloseChannel'_unknownFields = []}+ parseMessage+ = let+ loop ::+ PendingChannelsResponse'WaitingCloseChannel+ -> Data.ProtoLens.Encoding.Bytes.Parser PendingChannelsResponse'WaitingCloseChannel+ loop x+ = do end <- Data.ProtoLens.Encoding.Bytes.atEnd+ if end then+ do (let missing = []+ in+ if Prelude.null missing then+ Prelude.return ()+ else+ Prelude.fail+ ((Prelude.++)+ "Missing required fields: "+ (Prelude.show (missing :: [Prelude.String]))))+ Prelude.return+ (Lens.Family2.over+ Data.ProtoLens.unknownFields (\ !t -> Prelude.reverse t) x)+ else+ do tag <- Data.ProtoLens.Encoding.Bytes.getVarInt+ case tag of+ 10+ -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (do len <- Data.ProtoLens.Encoding.Bytes.getVarInt+ Data.ProtoLens.Encoding.Bytes.isolate+ (Prelude.fromIntegral len) Data.ProtoLens.parseMessage)+ "channel"+ loop (Lens.Family2.set (Data.ProtoLens.Field.field @"channel") y x)+ 16+ -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (Prelude.fmap+ Prelude.fromIntegral+ Data.ProtoLens.Encoding.Bytes.getVarInt)+ "limbo_balance"+ loop+ (Lens.Family2.set+ (Data.ProtoLens.Field.field @"limboBalance") y x)+ 26+ -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (do len <- Data.ProtoLens.Encoding.Bytes.getVarInt+ Data.ProtoLens.Encoding.Bytes.isolate+ (Prelude.fromIntegral len) Data.ProtoLens.parseMessage)+ "commitments"+ loop+ (Lens.Family2.set (Data.ProtoLens.Field.field @"commitments") y x)+ wire+ -> do !y <- Data.ProtoLens.Encoding.Wire.parseTaggedValueFromWire+ wire+ loop+ (Lens.Family2.over+ Data.ProtoLens.unknownFields (\ !t -> (:) y t) x)+ in+ (Data.ProtoLens.Encoding.Bytes.<?>)+ (do loop Data.ProtoLens.defMessage) "WaitingCloseChannel"+ buildMessage+ = \ _x+ -> (Data.Monoid.<>)+ (case+ Lens.Family2.view (Data.ProtoLens.Field.field @"maybe'channel") _x+ of+ Prelude.Nothing -> Data.Monoid.mempty+ (Prelude.Just _v)+ -> (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 10)+ ((Prelude..)+ (\ bs+ -> (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt+ (Prelude.fromIntegral (Data.ByteString.length bs)))+ (Data.ProtoLens.Encoding.Bytes.putBytes bs))+ Data.ProtoLens.encodeMessage _v))+ ((Data.Monoid.<>)+ (let+ _v+ = Lens.Family2.view (Data.ProtoLens.Field.field @"limboBalance") _x+ in+ if (Prelude.==) _v Data.ProtoLens.fieldDefault then+ Data.Monoid.mempty+ else+ (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 16)+ ((Prelude..)+ Data.ProtoLens.Encoding.Bytes.putVarInt Prelude.fromIntegral _v))+ ((Data.Monoid.<>)+ (case+ Lens.Family2.view+ (Data.ProtoLens.Field.field @"maybe'commitments") _x+ of+ Prelude.Nothing -> Data.Monoid.mempty+ (Prelude.Just _v)+ -> (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 26)+ ((Prelude..)+ (\ bs+ -> (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt+ (Prelude.fromIntegral (Data.ByteString.length bs)))+ (Data.ProtoLens.Encoding.Bytes.putBytes bs))+ Data.ProtoLens.encodeMessage _v))+ (Data.ProtoLens.Encoding.Wire.buildFieldSet+ (Lens.Family2.view Data.ProtoLens.unknownFields _x))))+instance Control.DeepSeq.NFData PendingChannelsResponse'WaitingCloseChannel where+ rnf+ = \ x__+ -> Control.DeepSeq.deepseq+ (_PendingChannelsResponse'WaitingCloseChannel'_unknownFields x__)+ (Control.DeepSeq.deepseq+ (_PendingChannelsResponse'WaitingCloseChannel'channel x__)+ (Control.DeepSeq.deepseq+ (_PendingChannelsResponse'WaitingCloseChannel'limboBalance x__)+ (Control.DeepSeq.deepseq+ (_PendingChannelsResponse'WaitingCloseChannel'commitments x__)+ ())))+{- | Fields :+ + * 'Proto.Lnrpc.Ln0_Fields.incoming' @:: Lens' PendingHTLC Prelude.Bool@+ * 'Proto.Lnrpc.Ln0_Fields.amount' @:: Lens' PendingHTLC Data.Int.Int64@+ * 'Proto.Lnrpc.Ln0_Fields.outpoint' @:: Lens' PendingHTLC Data.Text.Text@+ * 'Proto.Lnrpc.Ln0_Fields.maturityHeight' @:: Lens' PendingHTLC Data.Word.Word32@+ * 'Proto.Lnrpc.Ln0_Fields.blocksTilMaturity' @:: Lens' PendingHTLC Data.Int.Int32@+ * 'Proto.Lnrpc.Ln0_Fields.stage' @:: Lens' PendingHTLC Data.Word.Word32@ -}+data PendingHTLC+ = PendingHTLC'_constructor {_PendingHTLC'incoming :: !Prelude.Bool,+ _PendingHTLC'amount :: !Data.Int.Int64,+ _PendingHTLC'outpoint :: !Data.Text.Text,+ _PendingHTLC'maturityHeight :: !Data.Word.Word32,+ _PendingHTLC'blocksTilMaturity :: !Data.Int.Int32,+ _PendingHTLC'stage :: !Data.Word.Word32,+ _PendingHTLC'_unknownFields :: !Data.ProtoLens.FieldSet}+ deriving stock (Prelude.Eq, Prelude.Ord, GHC.Generics.Generic)+instance Prelude.Show PendingHTLC where+ showsPrec _ __x __s+ = Prelude.showChar+ '{'+ (Prelude.showString+ (Data.ProtoLens.showMessageShort __x) (Prelude.showChar '}' __s))+instance Text.PrettyPrint.GenericPretty.Out PendingHTLC+instance Data.ProtoLens.Field.HasField PendingHTLC "incoming" Prelude.Bool where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _PendingHTLC'incoming+ (\ x__ y__ -> x__ {_PendingHTLC'incoming = y__}))+ Prelude.id+instance Data.ProtoLens.Field.HasField PendingHTLC "amount" Data.Int.Int64 where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _PendingHTLC'amount (\ x__ y__ -> x__ {_PendingHTLC'amount = y__}))+ Prelude.id+instance Data.ProtoLens.Field.HasField PendingHTLC "outpoint" Data.Text.Text where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _PendingHTLC'outpoint+ (\ x__ y__ -> x__ {_PendingHTLC'outpoint = y__}))+ Prelude.id+instance Data.ProtoLens.Field.HasField PendingHTLC "maturityHeight" Data.Word.Word32 where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _PendingHTLC'maturityHeight+ (\ x__ y__ -> x__ {_PendingHTLC'maturityHeight = y__}))+ Prelude.id+instance Data.ProtoLens.Field.HasField PendingHTLC "blocksTilMaturity" Data.Int.Int32 where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _PendingHTLC'blocksTilMaturity+ (\ x__ y__ -> x__ {_PendingHTLC'blocksTilMaturity = y__}))+ Prelude.id+instance Data.ProtoLens.Field.HasField PendingHTLC "stage" Data.Word.Word32 where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _PendingHTLC'stage (\ x__ y__ -> x__ {_PendingHTLC'stage = y__}))+ Prelude.id+instance Data.ProtoLens.Message PendingHTLC where+ messageName _ = Data.Text.pack "lnrpc.PendingHTLC"+ packedMessageDescriptor _+ = "\n\+ \\vPendingHTLC\DC2\SUB\n\+ \\bincoming\CAN\SOH \SOH(\bR\bincoming\DC2\SYN\n\+ \\ACKamount\CAN\STX \SOH(\ETXR\ACKamount\DC2\SUB\n\+ \\boutpoint\CAN\ETX \SOH(\tR\boutpoint\DC2'\n\+ \\SImaturity_height\CAN\EOT \SOH(\rR\SOmaturityHeight\DC2.\n\+ \\DC3blocks_til_maturity\CAN\ENQ \SOH(\ENQR\DC1blocksTilMaturity\DC2\DC4\n\+ \\ENQstage\CAN\ACK \SOH(\rR\ENQstage"+ packedFileDescriptor _ = packedFileDescriptor+ fieldsByTag+ = let+ incoming__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "incoming"+ (Data.ProtoLens.ScalarField Data.ProtoLens.BoolField ::+ Data.ProtoLens.FieldTypeDescriptor Prelude.Bool)+ (Data.ProtoLens.PlainField+ Data.ProtoLens.Optional+ (Data.ProtoLens.Field.field @"incoming")) ::+ Data.ProtoLens.FieldDescriptor PendingHTLC+ amount__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "amount"+ (Data.ProtoLens.ScalarField Data.ProtoLens.Int64Field ::+ Data.ProtoLens.FieldTypeDescriptor Data.Int.Int64)+ (Data.ProtoLens.PlainField+ Data.ProtoLens.Optional (Data.ProtoLens.Field.field @"amount")) ::+ Data.ProtoLens.FieldDescriptor PendingHTLC+ outpoint__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "outpoint"+ (Data.ProtoLens.ScalarField Data.ProtoLens.StringField ::+ Data.ProtoLens.FieldTypeDescriptor Data.Text.Text)+ (Data.ProtoLens.PlainField+ Data.ProtoLens.Optional+ (Data.ProtoLens.Field.field @"outpoint")) ::+ Data.ProtoLens.FieldDescriptor PendingHTLC+ maturityHeight__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "maturity_height"+ (Data.ProtoLens.ScalarField Data.ProtoLens.UInt32Field ::+ Data.ProtoLens.FieldTypeDescriptor Data.Word.Word32)+ (Data.ProtoLens.PlainField+ Data.ProtoLens.Optional+ (Data.ProtoLens.Field.field @"maturityHeight")) ::+ Data.ProtoLens.FieldDescriptor PendingHTLC+ blocksTilMaturity__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "blocks_til_maturity"+ (Data.ProtoLens.ScalarField Data.ProtoLens.Int32Field ::+ Data.ProtoLens.FieldTypeDescriptor Data.Int.Int32)+ (Data.ProtoLens.PlainField+ Data.ProtoLens.Optional+ (Data.ProtoLens.Field.field @"blocksTilMaturity")) ::+ Data.ProtoLens.FieldDescriptor PendingHTLC+ stage__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "stage"+ (Data.ProtoLens.ScalarField Data.ProtoLens.UInt32Field ::+ Data.ProtoLens.FieldTypeDescriptor Data.Word.Word32)+ (Data.ProtoLens.PlainField+ Data.ProtoLens.Optional (Data.ProtoLens.Field.field @"stage")) ::+ Data.ProtoLens.FieldDescriptor PendingHTLC+ in+ Data.Map.fromList+ [(Data.ProtoLens.Tag 1, incoming__field_descriptor),+ (Data.ProtoLens.Tag 2, amount__field_descriptor),+ (Data.ProtoLens.Tag 3, outpoint__field_descriptor),+ (Data.ProtoLens.Tag 4, maturityHeight__field_descriptor),+ (Data.ProtoLens.Tag 5, blocksTilMaturity__field_descriptor),+ (Data.ProtoLens.Tag 6, stage__field_descriptor)]+ unknownFields+ = Lens.Family2.Unchecked.lens+ _PendingHTLC'_unknownFields+ (\ x__ y__ -> x__ {_PendingHTLC'_unknownFields = y__})+ defMessage+ = PendingHTLC'_constructor+ {_PendingHTLC'incoming = Data.ProtoLens.fieldDefault,+ _PendingHTLC'amount = Data.ProtoLens.fieldDefault,+ _PendingHTLC'outpoint = Data.ProtoLens.fieldDefault,+ _PendingHTLC'maturityHeight = Data.ProtoLens.fieldDefault,+ _PendingHTLC'blocksTilMaturity = Data.ProtoLens.fieldDefault,+ _PendingHTLC'stage = Data.ProtoLens.fieldDefault,+ _PendingHTLC'_unknownFields = []}+ parseMessage+ = let+ loop ::+ PendingHTLC -> Data.ProtoLens.Encoding.Bytes.Parser PendingHTLC+ loop x+ = do end <- Data.ProtoLens.Encoding.Bytes.atEnd+ if end then+ do (let missing = []+ in+ if Prelude.null missing then+ Prelude.return ()+ else+ Prelude.fail+ ((Prelude.++)+ "Missing required fields: "+ (Prelude.show (missing :: [Prelude.String]))))+ Prelude.return+ (Lens.Family2.over+ Data.ProtoLens.unknownFields (\ !t -> Prelude.reverse t) x)+ else+ do tag <- Data.ProtoLens.Encoding.Bytes.getVarInt+ case tag of+ 8 -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (Prelude.fmap+ ((Prelude./=) 0) Data.ProtoLens.Encoding.Bytes.getVarInt)+ "incoming"+ loop+ (Lens.Family2.set (Data.ProtoLens.Field.field @"incoming") y x)+ 16+ -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (Prelude.fmap+ Prelude.fromIntegral+ Data.ProtoLens.Encoding.Bytes.getVarInt)+ "amount"+ loop (Lens.Family2.set (Data.ProtoLens.Field.field @"amount") y x)+ 26+ -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (do value <- do len <- Data.ProtoLens.Encoding.Bytes.getVarInt+ Data.ProtoLens.Encoding.Bytes.getBytes+ (Prelude.fromIntegral len)+ Data.ProtoLens.Encoding.Bytes.runEither+ (case Data.Text.Encoding.decodeUtf8' value of+ (Prelude.Left err)+ -> Prelude.Left (Prelude.show err)+ (Prelude.Right r) -> Prelude.Right r))+ "outpoint"+ loop+ (Lens.Family2.set (Data.ProtoLens.Field.field @"outpoint") y x)+ 32+ -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (Prelude.fmap+ Prelude.fromIntegral+ Data.ProtoLens.Encoding.Bytes.getVarInt)+ "maturity_height"+ loop+ (Lens.Family2.set+ (Data.ProtoLens.Field.field @"maturityHeight") y x)+ 40+ -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (Prelude.fmap+ Prelude.fromIntegral+ Data.ProtoLens.Encoding.Bytes.getVarInt)+ "blocks_til_maturity"+ loop+ (Lens.Family2.set+ (Data.ProtoLens.Field.field @"blocksTilMaturity") y x)+ 48+ -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (Prelude.fmap+ Prelude.fromIntegral+ Data.ProtoLens.Encoding.Bytes.getVarInt)+ "stage"+ loop (Lens.Family2.set (Data.ProtoLens.Field.field @"stage") y x)+ wire+ -> do !y <- Data.ProtoLens.Encoding.Wire.parseTaggedValueFromWire+ wire+ loop+ (Lens.Family2.over+ Data.ProtoLens.unknownFields (\ !t -> (:) y t) x)+ in+ (Data.ProtoLens.Encoding.Bytes.<?>)+ (do loop Data.ProtoLens.defMessage) "PendingHTLC"+ buildMessage+ = \ _x+ -> (Data.Monoid.<>)+ (let+ _v = Lens.Family2.view (Data.ProtoLens.Field.field @"incoming") _x+ in+ if (Prelude.==) _v Data.ProtoLens.fieldDefault then+ Data.Monoid.mempty+ else+ (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 8)+ ((Prelude..)+ Data.ProtoLens.Encoding.Bytes.putVarInt (\ b -> if b then 1 else 0)+ _v))+ ((Data.Monoid.<>)+ (let+ _v = Lens.Family2.view (Data.ProtoLens.Field.field @"amount") _x+ in+ if (Prelude.==) _v Data.ProtoLens.fieldDefault then+ Data.Monoid.mempty+ else+ (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 16)+ ((Prelude..)+ Data.ProtoLens.Encoding.Bytes.putVarInt Prelude.fromIntegral _v))+ ((Data.Monoid.<>)+ (let+ _v = Lens.Family2.view (Data.ProtoLens.Field.field @"outpoint") _x+ in+ if (Prelude.==) _v Data.ProtoLens.fieldDefault then+ Data.Monoid.mempty+ else+ (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 26)+ ((Prelude..)+ (\ bs+ -> (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt+ (Prelude.fromIntegral (Data.ByteString.length bs)))+ (Data.ProtoLens.Encoding.Bytes.putBytes bs))+ Data.Text.Encoding.encodeUtf8 _v))+ ((Data.Monoid.<>)+ (let+ _v+ = Lens.Family2.view+ (Data.ProtoLens.Field.field @"maturityHeight") _x+ in+ if (Prelude.==) _v Data.ProtoLens.fieldDefault then+ Data.Monoid.mempty+ else+ (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 32)+ ((Prelude..)+ Data.ProtoLens.Encoding.Bytes.putVarInt Prelude.fromIntegral _v))+ ((Data.Monoid.<>)+ (let+ _v+ = Lens.Family2.view+ (Data.ProtoLens.Field.field @"blocksTilMaturity") _x+ in+ if (Prelude.==) _v Data.ProtoLens.fieldDefault then+ Data.Monoid.mempty+ else+ (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 40)+ ((Prelude..)+ Data.ProtoLens.Encoding.Bytes.putVarInt Prelude.fromIntegral+ _v))+ ((Data.Monoid.<>)+ (let+ _v = Lens.Family2.view (Data.ProtoLens.Field.field @"stage") _x+ in+ if (Prelude.==) _v Data.ProtoLens.fieldDefault then+ Data.Monoid.mempty+ else+ (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 48)+ ((Prelude..)+ Data.ProtoLens.Encoding.Bytes.putVarInt Prelude.fromIntegral+ _v))+ (Data.ProtoLens.Encoding.Wire.buildFieldSet+ (Lens.Family2.view Data.ProtoLens.unknownFields _x)))))))+instance Control.DeepSeq.NFData PendingHTLC where+ rnf+ = \ x__+ -> Control.DeepSeq.deepseq+ (_PendingHTLC'_unknownFields x__)+ (Control.DeepSeq.deepseq+ (_PendingHTLC'incoming x__)+ (Control.DeepSeq.deepseq+ (_PendingHTLC'amount x__)+ (Control.DeepSeq.deepseq+ (_PendingHTLC'outpoint x__)+ (Control.DeepSeq.deepseq+ (_PendingHTLC'maturityHeight x__)+ (Control.DeepSeq.deepseq+ (_PendingHTLC'blocksTilMaturity x__)+ (Control.DeepSeq.deepseq (_PendingHTLC'stage x__) ()))))))+{- | Fields :+ + * 'Proto.Lnrpc.Ln0_Fields.txid' @:: Lens' PendingUpdate Data.ByteString.ByteString@+ * 'Proto.Lnrpc.Ln0_Fields.outputIndex' @:: Lens' PendingUpdate Data.Word.Word32@ -}+data PendingUpdate+ = PendingUpdate'_constructor {_PendingUpdate'txid :: !Data.ByteString.ByteString,+ _PendingUpdate'outputIndex :: !Data.Word.Word32,+ _PendingUpdate'_unknownFields :: !Data.ProtoLens.FieldSet}+ deriving stock (Prelude.Eq, Prelude.Ord, GHC.Generics.Generic)+instance Prelude.Show PendingUpdate where+ showsPrec _ __x __s+ = Prelude.showChar+ '{'+ (Prelude.showString+ (Data.ProtoLens.showMessageShort __x) (Prelude.showChar '}' __s))+instance Text.PrettyPrint.GenericPretty.Out PendingUpdate+instance Data.ProtoLens.Field.HasField PendingUpdate "txid" Data.ByteString.ByteString where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _PendingUpdate'txid (\ x__ y__ -> x__ {_PendingUpdate'txid = y__}))+ Prelude.id+instance Data.ProtoLens.Field.HasField PendingUpdate "outputIndex" Data.Word.Word32 where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _PendingUpdate'outputIndex+ (\ x__ y__ -> x__ {_PendingUpdate'outputIndex = y__}))+ Prelude.id+instance Data.ProtoLens.Message PendingUpdate where+ messageName _ = Data.Text.pack "lnrpc.PendingUpdate"+ packedMessageDescriptor _+ = "\n\+ \\rPendingUpdate\DC2\DC2\n\+ \\EOTtxid\CAN\SOH \SOH(\fR\EOTtxid\DC2!\n\+ \\foutput_index\CAN\STX \SOH(\rR\voutputIndex"+ packedFileDescriptor _ = packedFileDescriptor+ fieldsByTag+ = let+ txid__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "txid"+ (Data.ProtoLens.ScalarField Data.ProtoLens.BytesField ::+ Data.ProtoLens.FieldTypeDescriptor Data.ByteString.ByteString)+ (Data.ProtoLens.PlainField+ Data.ProtoLens.Optional (Data.ProtoLens.Field.field @"txid")) ::+ Data.ProtoLens.FieldDescriptor PendingUpdate+ outputIndex__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "output_index"+ (Data.ProtoLens.ScalarField Data.ProtoLens.UInt32Field ::+ Data.ProtoLens.FieldTypeDescriptor Data.Word.Word32)+ (Data.ProtoLens.PlainField+ Data.ProtoLens.Optional+ (Data.ProtoLens.Field.field @"outputIndex")) ::+ Data.ProtoLens.FieldDescriptor PendingUpdate+ in+ Data.Map.fromList+ [(Data.ProtoLens.Tag 1, txid__field_descriptor),+ (Data.ProtoLens.Tag 2, outputIndex__field_descriptor)]+ unknownFields+ = Lens.Family2.Unchecked.lens+ _PendingUpdate'_unknownFields+ (\ x__ y__ -> x__ {_PendingUpdate'_unknownFields = y__})+ defMessage+ = PendingUpdate'_constructor+ {_PendingUpdate'txid = Data.ProtoLens.fieldDefault,+ _PendingUpdate'outputIndex = Data.ProtoLens.fieldDefault,+ _PendingUpdate'_unknownFields = []}+ parseMessage+ = let+ loop ::+ PendingUpdate -> Data.ProtoLens.Encoding.Bytes.Parser PendingUpdate+ loop x+ = do end <- Data.ProtoLens.Encoding.Bytes.atEnd+ if end then+ do (let missing = []+ in+ if Prelude.null missing then+ Prelude.return ()+ else+ Prelude.fail+ ((Prelude.++)+ "Missing required fields: "+ (Prelude.show (missing :: [Prelude.String]))))+ Prelude.return+ (Lens.Family2.over+ Data.ProtoLens.unknownFields (\ !t -> Prelude.reverse t) x)+ else+ do tag <- Data.ProtoLens.Encoding.Bytes.getVarInt+ case tag of+ 10+ -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (do len <- Data.ProtoLens.Encoding.Bytes.getVarInt+ Data.ProtoLens.Encoding.Bytes.getBytes+ (Prelude.fromIntegral len))+ "txid"+ loop (Lens.Family2.set (Data.ProtoLens.Field.field @"txid") y x)+ 16+ -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (Prelude.fmap+ Prelude.fromIntegral+ Data.ProtoLens.Encoding.Bytes.getVarInt)+ "output_index"+ loop+ (Lens.Family2.set (Data.ProtoLens.Field.field @"outputIndex") y x)+ wire+ -> do !y <- Data.ProtoLens.Encoding.Wire.parseTaggedValueFromWire+ wire+ loop+ (Lens.Family2.over+ Data.ProtoLens.unknownFields (\ !t -> (:) y t) x)+ in+ (Data.ProtoLens.Encoding.Bytes.<?>)+ (do loop Data.ProtoLens.defMessage) "PendingUpdate"+ buildMessage+ = \ _x+ -> (Data.Monoid.<>)+ (let _v = Lens.Family2.view (Data.ProtoLens.Field.field @"txid") _x+ in+ if (Prelude.==) _v Data.ProtoLens.fieldDefault then+ Data.Monoid.mempty+ else+ (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 10)+ ((\ bs+ -> (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt+ (Prelude.fromIntegral (Data.ByteString.length bs)))+ (Data.ProtoLens.Encoding.Bytes.putBytes bs))+ _v))+ ((Data.Monoid.<>)+ (let+ _v+ = Lens.Family2.view (Data.ProtoLens.Field.field @"outputIndex") _x+ in+ if (Prelude.==) _v Data.ProtoLens.fieldDefault then+ Data.Monoid.mempty+ else+ (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 16)+ ((Prelude..)+ Data.ProtoLens.Encoding.Bytes.putVarInt Prelude.fromIntegral _v))+ (Data.ProtoLens.Encoding.Wire.buildFieldSet+ (Lens.Family2.view Data.ProtoLens.unknownFields _x)))+instance Control.DeepSeq.NFData PendingUpdate where+ rnf+ = \ x__+ -> Control.DeepSeq.deepseq+ (_PendingUpdate'_unknownFields x__)+ (Control.DeepSeq.deepseq+ (_PendingUpdate'txid x__)+ (Control.DeepSeq.deepseq (_PendingUpdate'outputIndex x__) ()))+{- | Fields :+ + * 'Proto.Lnrpc.Ln0_Fields.pendingChanId' @:: Lens' PsbtShim Data.ByteString.ByteString@+ * 'Proto.Lnrpc.Ln0_Fields.basePsbt' @:: Lens' PsbtShim Data.ByteString.ByteString@+ * 'Proto.Lnrpc.Ln0_Fields.noPublish' @:: Lens' PsbtShim Prelude.Bool@ -}+data PsbtShim+ = PsbtShim'_constructor {_PsbtShim'pendingChanId :: !Data.ByteString.ByteString,+ _PsbtShim'basePsbt :: !Data.ByteString.ByteString,+ _PsbtShim'noPublish :: !Prelude.Bool,+ _PsbtShim'_unknownFields :: !Data.ProtoLens.FieldSet}+ deriving stock (Prelude.Eq, Prelude.Ord, GHC.Generics.Generic)+instance Prelude.Show PsbtShim where+ showsPrec _ __x __s+ = Prelude.showChar+ '{'+ (Prelude.showString+ (Data.ProtoLens.showMessageShort __x) (Prelude.showChar '}' __s))+instance Text.PrettyPrint.GenericPretty.Out PsbtShim+instance Data.ProtoLens.Field.HasField PsbtShim "pendingChanId" Data.ByteString.ByteString where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _PsbtShim'pendingChanId+ (\ x__ y__ -> x__ {_PsbtShim'pendingChanId = y__}))+ Prelude.id+instance Data.ProtoLens.Field.HasField PsbtShim "basePsbt" Data.ByteString.ByteString where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _PsbtShim'basePsbt (\ x__ y__ -> x__ {_PsbtShim'basePsbt = y__}))+ Prelude.id+instance Data.ProtoLens.Field.HasField PsbtShim "noPublish" Prelude.Bool where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _PsbtShim'noPublish (\ x__ y__ -> x__ {_PsbtShim'noPublish = y__}))+ Prelude.id+instance Data.ProtoLens.Message PsbtShim where+ messageName _ = Data.Text.pack "lnrpc.PsbtShim"+ packedMessageDescriptor _+ = "\n\+ \\bPsbtShim\DC2&\n\+ \\SIpending_chan_id\CAN\SOH \SOH(\fR\rpendingChanId\DC2\ESC\n\+ \\tbase_psbt\CAN\STX \SOH(\fR\bbasePsbt\DC2\GS\n\+ \\n\+ \no_publish\CAN\ETX \SOH(\bR\tnoPublish"+ packedFileDescriptor _ = packedFileDescriptor+ fieldsByTag+ = let+ pendingChanId__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "pending_chan_id"+ (Data.ProtoLens.ScalarField Data.ProtoLens.BytesField ::+ Data.ProtoLens.FieldTypeDescriptor Data.ByteString.ByteString)+ (Data.ProtoLens.PlainField+ Data.ProtoLens.Optional+ (Data.ProtoLens.Field.field @"pendingChanId")) ::+ Data.ProtoLens.FieldDescriptor PsbtShim+ basePsbt__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "base_psbt"+ (Data.ProtoLens.ScalarField Data.ProtoLens.BytesField ::+ Data.ProtoLens.FieldTypeDescriptor Data.ByteString.ByteString)+ (Data.ProtoLens.PlainField+ Data.ProtoLens.Optional+ (Data.ProtoLens.Field.field @"basePsbt")) ::+ Data.ProtoLens.FieldDescriptor PsbtShim+ noPublish__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "no_publish"+ (Data.ProtoLens.ScalarField Data.ProtoLens.BoolField ::+ Data.ProtoLens.FieldTypeDescriptor Prelude.Bool)+ (Data.ProtoLens.PlainField+ Data.ProtoLens.Optional+ (Data.ProtoLens.Field.field @"noPublish")) ::+ Data.ProtoLens.FieldDescriptor PsbtShim+ in+ Data.Map.fromList+ [(Data.ProtoLens.Tag 1, pendingChanId__field_descriptor),+ (Data.ProtoLens.Tag 2, basePsbt__field_descriptor),+ (Data.ProtoLens.Tag 3, noPublish__field_descriptor)]+ unknownFields+ = Lens.Family2.Unchecked.lens+ _PsbtShim'_unknownFields+ (\ x__ y__ -> x__ {_PsbtShim'_unknownFields = y__})+ defMessage+ = PsbtShim'_constructor+ {_PsbtShim'pendingChanId = Data.ProtoLens.fieldDefault,+ _PsbtShim'basePsbt = Data.ProtoLens.fieldDefault,+ _PsbtShim'noPublish = Data.ProtoLens.fieldDefault,+ _PsbtShim'_unknownFields = []}+ parseMessage+ = let+ loop :: PsbtShim -> Data.ProtoLens.Encoding.Bytes.Parser PsbtShim+ loop x+ = do end <- Data.ProtoLens.Encoding.Bytes.atEnd+ if end then+ do (let missing = []+ in+ if Prelude.null missing then+ Prelude.return ()+ else+ Prelude.fail+ ((Prelude.++)+ "Missing required fields: "+ (Prelude.show (missing :: [Prelude.String]))))+ Prelude.return+ (Lens.Family2.over+ Data.ProtoLens.unknownFields (\ !t -> Prelude.reverse t) x)+ else+ do tag <- Data.ProtoLens.Encoding.Bytes.getVarInt+ case tag of+ 10+ -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (do len <- Data.ProtoLens.Encoding.Bytes.getVarInt+ Data.ProtoLens.Encoding.Bytes.getBytes+ (Prelude.fromIntegral len))+ "pending_chan_id"+ loop+ (Lens.Family2.set+ (Data.ProtoLens.Field.field @"pendingChanId") y x)+ 18+ -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (do len <- Data.ProtoLens.Encoding.Bytes.getVarInt+ Data.ProtoLens.Encoding.Bytes.getBytes+ (Prelude.fromIntegral len))+ "base_psbt"+ loop+ (Lens.Family2.set (Data.ProtoLens.Field.field @"basePsbt") y x)+ 24+ -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (Prelude.fmap+ ((Prelude./=) 0) Data.ProtoLens.Encoding.Bytes.getVarInt)+ "no_publish"+ loop+ (Lens.Family2.set (Data.ProtoLens.Field.field @"noPublish") y x)+ wire+ -> do !y <- Data.ProtoLens.Encoding.Wire.parseTaggedValueFromWire+ wire+ loop+ (Lens.Family2.over+ Data.ProtoLens.unknownFields (\ !t -> (:) y t) x)+ in+ (Data.ProtoLens.Encoding.Bytes.<?>)+ (do loop Data.ProtoLens.defMessage) "PsbtShim"+ buildMessage+ = \ _x+ -> (Data.Monoid.<>)+ (let+ _v+ = Lens.Family2.view+ (Data.ProtoLens.Field.field @"pendingChanId") _x+ in+ if (Prelude.==) _v Data.ProtoLens.fieldDefault then+ Data.Monoid.mempty+ else+ (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 10)+ ((\ bs+ -> (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt+ (Prelude.fromIntegral (Data.ByteString.length bs)))+ (Data.ProtoLens.Encoding.Bytes.putBytes bs))+ _v))+ ((Data.Monoid.<>)+ (let+ _v = Lens.Family2.view (Data.ProtoLens.Field.field @"basePsbt") _x+ in+ if (Prelude.==) _v Data.ProtoLens.fieldDefault then+ Data.Monoid.mempty+ else+ (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 18)+ ((\ bs+ -> (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt+ (Prelude.fromIntegral (Data.ByteString.length bs)))+ (Data.ProtoLens.Encoding.Bytes.putBytes bs))+ _v))+ ((Data.Monoid.<>)+ (let+ _v = Lens.Family2.view (Data.ProtoLens.Field.field @"noPublish") _x+ in+ if (Prelude.==) _v Data.ProtoLens.fieldDefault then+ Data.Monoid.mempty+ else+ (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 24)+ ((Prelude..)+ Data.ProtoLens.Encoding.Bytes.putVarInt (\ b -> if b then 1 else 0)+ _v))+ (Data.ProtoLens.Encoding.Wire.buildFieldSet+ (Lens.Family2.view Data.ProtoLens.unknownFields _x))))+instance Control.DeepSeq.NFData PsbtShim where+ rnf+ = \ x__+ -> Control.DeepSeq.deepseq+ (_PsbtShim'_unknownFields x__)+ (Control.DeepSeq.deepseq+ (_PsbtShim'pendingChanId x__)+ (Control.DeepSeq.deepseq+ (_PsbtShim'basePsbt x__)+ (Control.DeepSeq.deepseq (_PsbtShim'noPublish x__) ())))+{- | Fields :+ + * 'Proto.Lnrpc.Ln0_Fields.pubKey' @:: Lens' QueryRoutesRequest Data.Text.Text@+ * 'Proto.Lnrpc.Ln0_Fields.amt' @:: Lens' QueryRoutesRequest Data.Int.Int64@+ * 'Proto.Lnrpc.Ln0_Fields.amtMsat' @:: Lens' QueryRoutesRequest Data.Int.Int64@+ * 'Proto.Lnrpc.Ln0_Fields.finalCltvDelta' @:: Lens' QueryRoutesRequest Data.Int.Int32@+ * 'Proto.Lnrpc.Ln0_Fields.feeLimit' @:: Lens' QueryRoutesRequest FeeLimit@+ * 'Proto.Lnrpc.Ln0_Fields.maybe'feeLimit' @:: Lens' QueryRoutesRequest (Prelude.Maybe FeeLimit)@+ * 'Proto.Lnrpc.Ln0_Fields.ignoredNodes' @:: Lens' QueryRoutesRequest [Data.ByteString.ByteString]@+ * 'Proto.Lnrpc.Ln0_Fields.vec'ignoredNodes' @:: Lens' QueryRoutesRequest (Data.Vector.Vector Data.ByteString.ByteString)@+ * 'Proto.Lnrpc.Ln0_Fields.ignoredEdges' @:: Lens' QueryRoutesRequest [EdgeLocator]@+ * 'Proto.Lnrpc.Ln0_Fields.vec'ignoredEdges' @:: Lens' QueryRoutesRequest (Data.Vector.Vector EdgeLocator)@+ * 'Proto.Lnrpc.Ln0_Fields.sourcePubKey' @:: Lens' QueryRoutesRequest Data.Text.Text@+ * 'Proto.Lnrpc.Ln0_Fields.useMissionControl' @:: Lens' QueryRoutesRequest Prelude.Bool@+ * 'Proto.Lnrpc.Ln0_Fields.ignoredPairs' @:: Lens' QueryRoutesRequest [NodePair]@+ * 'Proto.Lnrpc.Ln0_Fields.vec'ignoredPairs' @:: Lens' QueryRoutesRequest (Data.Vector.Vector NodePair)@+ * 'Proto.Lnrpc.Ln0_Fields.cltvLimit' @:: Lens' QueryRoutesRequest Data.Word.Word32@+ * 'Proto.Lnrpc.Ln0_Fields.destCustomRecords' @:: Lens' QueryRoutesRequest (Data.Map.Map Data.Word.Word64 Data.ByteString.ByteString)@+ * 'Proto.Lnrpc.Ln0_Fields.outgoingChanId' @:: Lens' QueryRoutesRequest Data.Word.Word64@+ * 'Proto.Lnrpc.Ln0_Fields.lastHopPubkey' @:: Lens' QueryRoutesRequest Data.ByteString.ByteString@+ * 'Proto.Lnrpc.Ln0_Fields.routeHints' @:: Lens' QueryRoutesRequest [RouteHint]@+ * 'Proto.Lnrpc.Ln0_Fields.vec'routeHints' @:: Lens' QueryRoutesRequest (Data.Vector.Vector RouteHint)@+ * 'Proto.Lnrpc.Ln0_Fields.destFeatures' @:: Lens' QueryRoutesRequest [FeatureBit]@+ * 'Proto.Lnrpc.Ln0_Fields.vec'destFeatures' @:: Lens' QueryRoutesRequest (Data.Vector.Vector FeatureBit)@ -}+data QueryRoutesRequest+ = QueryRoutesRequest'_constructor {_QueryRoutesRequest'pubKey :: !Data.Text.Text,+ _QueryRoutesRequest'amt :: !Data.Int.Int64,+ _QueryRoutesRequest'amtMsat :: !Data.Int.Int64,+ _QueryRoutesRequest'finalCltvDelta :: !Data.Int.Int32,+ _QueryRoutesRequest'feeLimit :: !(Prelude.Maybe FeeLimit),+ _QueryRoutesRequest'ignoredNodes :: !(Data.Vector.Vector Data.ByteString.ByteString),+ _QueryRoutesRequest'ignoredEdges :: !(Data.Vector.Vector EdgeLocator),+ _QueryRoutesRequest'sourcePubKey :: !Data.Text.Text,+ _QueryRoutesRequest'useMissionControl :: !Prelude.Bool,+ _QueryRoutesRequest'ignoredPairs :: !(Data.Vector.Vector NodePair),+ _QueryRoutesRequest'cltvLimit :: !Data.Word.Word32,+ _QueryRoutesRequest'destCustomRecords :: !(Data.Map.Map Data.Word.Word64 Data.ByteString.ByteString),+ _QueryRoutesRequest'outgoingChanId :: !Data.Word.Word64,+ _QueryRoutesRequest'lastHopPubkey :: !Data.ByteString.ByteString,+ _QueryRoutesRequest'routeHints :: !(Data.Vector.Vector RouteHint),+ _QueryRoutesRequest'destFeatures :: !(Data.Vector.Vector FeatureBit),+ _QueryRoutesRequest'_unknownFields :: !Data.ProtoLens.FieldSet}+ deriving stock (Prelude.Eq, Prelude.Ord, GHC.Generics.Generic)+instance Prelude.Show QueryRoutesRequest where+ showsPrec _ __x __s+ = Prelude.showChar+ '{'+ (Prelude.showString+ (Data.ProtoLens.showMessageShort __x) (Prelude.showChar '}' __s))+instance Text.PrettyPrint.GenericPretty.Out QueryRoutesRequest+instance Data.ProtoLens.Field.HasField QueryRoutesRequest "pubKey" Data.Text.Text where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _QueryRoutesRequest'pubKey+ (\ x__ y__ -> x__ {_QueryRoutesRequest'pubKey = y__}))+ Prelude.id+instance Data.ProtoLens.Field.HasField QueryRoutesRequest "amt" Data.Int.Int64 where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _QueryRoutesRequest'amt+ (\ x__ y__ -> x__ {_QueryRoutesRequest'amt = y__}))+ Prelude.id+instance Data.ProtoLens.Field.HasField QueryRoutesRequest "amtMsat" Data.Int.Int64 where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _QueryRoutesRequest'amtMsat+ (\ x__ y__ -> x__ {_QueryRoutesRequest'amtMsat = y__}))+ Prelude.id+instance Data.ProtoLens.Field.HasField QueryRoutesRequest "finalCltvDelta" Data.Int.Int32 where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _QueryRoutesRequest'finalCltvDelta+ (\ x__ y__ -> x__ {_QueryRoutesRequest'finalCltvDelta = y__}))+ Prelude.id+instance Data.ProtoLens.Field.HasField QueryRoutesRequest "feeLimit" FeeLimit where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _QueryRoutesRequest'feeLimit+ (\ x__ y__ -> x__ {_QueryRoutesRequest'feeLimit = y__}))+ (Data.ProtoLens.maybeLens Data.ProtoLens.defMessage)+instance Data.ProtoLens.Field.HasField QueryRoutesRequest "maybe'feeLimit" (Prelude.Maybe FeeLimit) where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _QueryRoutesRequest'feeLimit+ (\ x__ y__ -> x__ {_QueryRoutesRequest'feeLimit = y__}))+ Prelude.id+instance Data.ProtoLens.Field.HasField QueryRoutesRequest "ignoredNodes" [Data.ByteString.ByteString] where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _QueryRoutesRequest'ignoredNodes+ (\ x__ y__ -> x__ {_QueryRoutesRequest'ignoredNodes = y__}))+ (Lens.Family2.Unchecked.lens+ Data.Vector.Generic.toList+ (\ _ y__ -> Data.Vector.Generic.fromList y__))+instance Data.ProtoLens.Field.HasField QueryRoutesRequest "vec'ignoredNodes" (Data.Vector.Vector Data.ByteString.ByteString) where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _QueryRoutesRequest'ignoredNodes+ (\ x__ y__ -> x__ {_QueryRoutesRequest'ignoredNodes = y__}))+ Prelude.id+instance Data.ProtoLens.Field.HasField QueryRoutesRequest "ignoredEdges" [EdgeLocator] where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _QueryRoutesRequest'ignoredEdges+ (\ x__ y__ -> x__ {_QueryRoutesRequest'ignoredEdges = y__}))+ (Lens.Family2.Unchecked.lens+ Data.Vector.Generic.toList+ (\ _ y__ -> Data.Vector.Generic.fromList y__))+instance Data.ProtoLens.Field.HasField QueryRoutesRequest "vec'ignoredEdges" (Data.Vector.Vector EdgeLocator) where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _QueryRoutesRequest'ignoredEdges+ (\ x__ y__ -> x__ {_QueryRoutesRequest'ignoredEdges = y__}))+ Prelude.id+instance Data.ProtoLens.Field.HasField QueryRoutesRequest "sourcePubKey" Data.Text.Text where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _QueryRoutesRequest'sourcePubKey+ (\ x__ y__ -> x__ {_QueryRoutesRequest'sourcePubKey = y__}))+ Prelude.id+instance Data.ProtoLens.Field.HasField QueryRoutesRequest "useMissionControl" Prelude.Bool where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _QueryRoutesRequest'useMissionControl+ (\ x__ y__ -> x__ {_QueryRoutesRequest'useMissionControl = y__}))+ Prelude.id+instance Data.ProtoLens.Field.HasField QueryRoutesRequest "ignoredPairs" [NodePair] where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _QueryRoutesRequest'ignoredPairs+ (\ x__ y__ -> x__ {_QueryRoutesRequest'ignoredPairs = y__}))+ (Lens.Family2.Unchecked.lens+ Data.Vector.Generic.toList+ (\ _ y__ -> Data.Vector.Generic.fromList y__))+instance Data.ProtoLens.Field.HasField QueryRoutesRequest "vec'ignoredPairs" (Data.Vector.Vector NodePair) where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _QueryRoutesRequest'ignoredPairs+ (\ x__ y__ -> x__ {_QueryRoutesRequest'ignoredPairs = y__}))+ Prelude.id+instance Data.ProtoLens.Field.HasField QueryRoutesRequest "cltvLimit" Data.Word.Word32 where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _QueryRoutesRequest'cltvLimit+ (\ x__ y__ -> x__ {_QueryRoutesRequest'cltvLimit = y__}))+ Prelude.id+instance Data.ProtoLens.Field.HasField QueryRoutesRequest "destCustomRecords" (Data.Map.Map Data.Word.Word64 Data.ByteString.ByteString) where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _QueryRoutesRequest'destCustomRecords+ (\ x__ y__ -> x__ {_QueryRoutesRequest'destCustomRecords = y__}))+ Prelude.id+instance Data.ProtoLens.Field.HasField QueryRoutesRequest "outgoingChanId" Data.Word.Word64 where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _QueryRoutesRequest'outgoingChanId+ (\ x__ y__ -> x__ {_QueryRoutesRequest'outgoingChanId = y__}))+ Prelude.id+instance Data.ProtoLens.Field.HasField QueryRoutesRequest "lastHopPubkey" Data.ByteString.ByteString where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _QueryRoutesRequest'lastHopPubkey+ (\ x__ y__ -> x__ {_QueryRoutesRequest'lastHopPubkey = y__}))+ Prelude.id+instance Data.ProtoLens.Field.HasField QueryRoutesRequest "routeHints" [RouteHint] where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _QueryRoutesRequest'routeHints+ (\ x__ y__ -> x__ {_QueryRoutesRequest'routeHints = y__}))+ (Lens.Family2.Unchecked.lens+ Data.Vector.Generic.toList+ (\ _ y__ -> Data.Vector.Generic.fromList y__))+instance Data.ProtoLens.Field.HasField QueryRoutesRequest "vec'routeHints" (Data.Vector.Vector RouteHint) where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _QueryRoutesRequest'routeHints+ (\ x__ y__ -> x__ {_QueryRoutesRequest'routeHints = y__}))+ Prelude.id+instance Data.ProtoLens.Field.HasField QueryRoutesRequest "destFeatures" [FeatureBit] where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _QueryRoutesRequest'destFeatures+ (\ x__ y__ -> x__ {_QueryRoutesRequest'destFeatures = y__}))+ (Lens.Family2.Unchecked.lens+ Data.Vector.Generic.toList+ (\ _ y__ -> Data.Vector.Generic.fromList y__))+instance Data.ProtoLens.Field.HasField QueryRoutesRequest "vec'destFeatures" (Data.Vector.Vector FeatureBit) where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _QueryRoutesRequest'destFeatures+ (\ x__ y__ -> x__ {_QueryRoutesRequest'destFeatures = y__}))+ Prelude.id+instance Data.ProtoLens.Message QueryRoutesRequest where+ messageName _ = Data.Text.pack "lnrpc.QueryRoutesRequest"+ packedMessageDescriptor _+ = "\n\+ \\DC2QueryRoutesRequest\DC2\ETB\n\+ \\apub_key\CAN\SOH \SOH(\tR\ACKpubKey\DC2\DLE\n\+ \\ETXamt\CAN\STX \SOH(\ETXR\ETXamt\DC2\EM\n\+ \\bamt_msat\CAN\f \SOH(\ETXR\aamtMsat\DC2(\n\+ \\DLEfinal_cltv_delta\CAN\EOT \SOH(\ENQR\SOfinalCltvDelta\DC2,\n\+ \\tfee_limit\CAN\ENQ \SOH(\v2\SI.lnrpc.FeeLimitR\bfeeLimit\DC2#\n\+ \\rignored_nodes\CAN\ACK \ETX(\fR\fignoredNodes\DC2;\n\+ \\rignored_edges\CAN\a \ETX(\v2\DC2.lnrpc.EdgeLocatorR\fignoredEdgesB\STX\CAN\SOH\DC2$\n\+ \\SOsource_pub_key\CAN\b \SOH(\tR\fsourcePubKey\DC2.\n\+ \\DC3use_mission_control\CAN\t \SOH(\bR\DC1useMissionControl\DC24\n\+ \\rignored_pairs\CAN\n\+ \ \ETX(\v2\SI.lnrpc.NodePairR\fignoredPairs\DC2\GS\n\+ \\n\+ \cltv_limit\CAN\v \SOH(\rR\tcltvLimit\DC2`\n\+ \\DC3dest_custom_records\CAN\r \ETX(\v20.lnrpc.QueryRoutesRequest.DestCustomRecordsEntryR\DC1destCustomRecords\DC2,\n\+ \\DLEoutgoing_chan_id\CAN\SO \SOH(\EOTR\SOoutgoingChanIdB\STX0\SOH\DC2&\n\+ \\SIlast_hop_pubkey\CAN\SI \SOH(\fR\rlastHopPubkey\DC21\n\+ \\vroute_hints\CAN\DLE \ETX(\v2\DLE.lnrpc.RouteHintR\n\+ \routeHints\DC26\n\+ \\rdest_features\CAN\DC1 \ETX(\SO2\DC1.lnrpc.FeatureBitR\fdestFeatures\SUBD\n\+ \\SYNDestCustomRecordsEntry\DC2\DLE\n\+ \\ETXkey\CAN\SOH \SOH(\EOTR\ETXkey\DC2\DC4\n\+ \\ENQvalue\CAN\STX \SOH(\fR\ENQvalue:\STX8\SOHJ\EOT\b\ETX\DLE\EOT"+ packedFileDescriptor _ = packedFileDescriptor+ fieldsByTag+ = let+ pubKey__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "pub_key"+ (Data.ProtoLens.ScalarField Data.ProtoLens.StringField ::+ Data.ProtoLens.FieldTypeDescriptor Data.Text.Text)+ (Data.ProtoLens.PlainField+ Data.ProtoLens.Optional (Data.ProtoLens.Field.field @"pubKey")) ::+ Data.ProtoLens.FieldDescriptor QueryRoutesRequest+ amt__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "amt"+ (Data.ProtoLens.ScalarField Data.ProtoLens.Int64Field ::+ Data.ProtoLens.FieldTypeDescriptor Data.Int.Int64)+ (Data.ProtoLens.PlainField+ Data.ProtoLens.Optional (Data.ProtoLens.Field.field @"amt")) ::+ Data.ProtoLens.FieldDescriptor QueryRoutesRequest+ amtMsat__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "amt_msat"+ (Data.ProtoLens.ScalarField Data.ProtoLens.Int64Field ::+ Data.ProtoLens.FieldTypeDescriptor Data.Int.Int64)+ (Data.ProtoLens.PlainField+ Data.ProtoLens.Optional (Data.ProtoLens.Field.field @"amtMsat")) ::+ Data.ProtoLens.FieldDescriptor QueryRoutesRequest+ finalCltvDelta__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "final_cltv_delta"+ (Data.ProtoLens.ScalarField Data.ProtoLens.Int32Field ::+ Data.ProtoLens.FieldTypeDescriptor Data.Int.Int32)+ (Data.ProtoLens.PlainField+ Data.ProtoLens.Optional+ (Data.ProtoLens.Field.field @"finalCltvDelta")) ::+ Data.ProtoLens.FieldDescriptor QueryRoutesRequest+ feeLimit__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "fee_limit"+ (Data.ProtoLens.MessageField Data.ProtoLens.MessageType ::+ Data.ProtoLens.FieldTypeDescriptor FeeLimit)+ (Data.ProtoLens.OptionalField+ (Data.ProtoLens.Field.field @"maybe'feeLimit")) ::+ Data.ProtoLens.FieldDescriptor QueryRoutesRequest+ ignoredNodes__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "ignored_nodes"+ (Data.ProtoLens.ScalarField Data.ProtoLens.BytesField ::+ Data.ProtoLens.FieldTypeDescriptor Data.ByteString.ByteString)+ (Data.ProtoLens.RepeatedField+ Data.ProtoLens.Unpacked+ (Data.ProtoLens.Field.field @"ignoredNodes")) ::+ Data.ProtoLens.FieldDescriptor QueryRoutesRequest+ ignoredEdges__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "ignored_edges"+ (Data.ProtoLens.MessageField Data.ProtoLens.MessageType ::+ Data.ProtoLens.FieldTypeDescriptor EdgeLocator)+ (Data.ProtoLens.RepeatedField+ Data.ProtoLens.Unpacked+ (Data.ProtoLens.Field.field @"ignoredEdges")) ::+ Data.ProtoLens.FieldDescriptor QueryRoutesRequest+ sourcePubKey__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "source_pub_key"+ (Data.ProtoLens.ScalarField Data.ProtoLens.StringField ::+ Data.ProtoLens.FieldTypeDescriptor Data.Text.Text)+ (Data.ProtoLens.PlainField+ Data.ProtoLens.Optional+ (Data.ProtoLens.Field.field @"sourcePubKey")) ::+ Data.ProtoLens.FieldDescriptor QueryRoutesRequest+ useMissionControl__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "use_mission_control"+ (Data.ProtoLens.ScalarField Data.ProtoLens.BoolField ::+ Data.ProtoLens.FieldTypeDescriptor Prelude.Bool)+ (Data.ProtoLens.PlainField+ Data.ProtoLens.Optional+ (Data.ProtoLens.Field.field @"useMissionControl")) ::+ Data.ProtoLens.FieldDescriptor QueryRoutesRequest+ ignoredPairs__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "ignored_pairs"+ (Data.ProtoLens.MessageField Data.ProtoLens.MessageType ::+ Data.ProtoLens.FieldTypeDescriptor NodePair)+ (Data.ProtoLens.RepeatedField+ Data.ProtoLens.Unpacked+ (Data.ProtoLens.Field.field @"ignoredPairs")) ::+ Data.ProtoLens.FieldDescriptor QueryRoutesRequest+ cltvLimit__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "cltv_limit"+ (Data.ProtoLens.ScalarField Data.ProtoLens.UInt32Field ::+ Data.ProtoLens.FieldTypeDescriptor Data.Word.Word32)+ (Data.ProtoLens.PlainField+ Data.ProtoLens.Optional+ (Data.ProtoLens.Field.field @"cltvLimit")) ::+ Data.ProtoLens.FieldDescriptor QueryRoutesRequest+ destCustomRecords__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "dest_custom_records"+ (Data.ProtoLens.MessageField Data.ProtoLens.MessageType ::+ Data.ProtoLens.FieldTypeDescriptor QueryRoutesRequest'DestCustomRecordsEntry)+ (Data.ProtoLens.MapField+ (Data.ProtoLens.Field.field @"key")+ (Data.ProtoLens.Field.field @"value")+ (Data.ProtoLens.Field.field @"destCustomRecords")) ::+ Data.ProtoLens.FieldDescriptor QueryRoutesRequest+ outgoingChanId__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "outgoing_chan_id"+ (Data.ProtoLens.ScalarField Data.ProtoLens.UInt64Field ::+ Data.ProtoLens.FieldTypeDescriptor Data.Word.Word64)+ (Data.ProtoLens.PlainField+ Data.ProtoLens.Optional+ (Data.ProtoLens.Field.field @"outgoingChanId")) ::+ Data.ProtoLens.FieldDescriptor QueryRoutesRequest+ lastHopPubkey__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "last_hop_pubkey"+ (Data.ProtoLens.ScalarField Data.ProtoLens.BytesField ::+ Data.ProtoLens.FieldTypeDescriptor Data.ByteString.ByteString)+ (Data.ProtoLens.PlainField+ Data.ProtoLens.Optional+ (Data.ProtoLens.Field.field @"lastHopPubkey")) ::+ Data.ProtoLens.FieldDescriptor QueryRoutesRequest+ routeHints__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "route_hints"+ (Data.ProtoLens.MessageField Data.ProtoLens.MessageType ::+ Data.ProtoLens.FieldTypeDescriptor RouteHint)+ (Data.ProtoLens.RepeatedField+ Data.ProtoLens.Unpacked+ (Data.ProtoLens.Field.field @"routeHints")) ::+ Data.ProtoLens.FieldDescriptor QueryRoutesRequest+ destFeatures__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "dest_features"+ (Data.ProtoLens.ScalarField Data.ProtoLens.EnumField ::+ Data.ProtoLens.FieldTypeDescriptor FeatureBit)+ (Data.ProtoLens.RepeatedField+ Data.ProtoLens.Packed+ (Data.ProtoLens.Field.field @"destFeatures")) ::+ Data.ProtoLens.FieldDescriptor QueryRoutesRequest+ in+ Data.Map.fromList+ [(Data.ProtoLens.Tag 1, pubKey__field_descriptor),+ (Data.ProtoLens.Tag 2, amt__field_descriptor),+ (Data.ProtoLens.Tag 12, amtMsat__field_descriptor),+ (Data.ProtoLens.Tag 4, finalCltvDelta__field_descriptor),+ (Data.ProtoLens.Tag 5, feeLimit__field_descriptor),+ (Data.ProtoLens.Tag 6, ignoredNodes__field_descriptor),+ (Data.ProtoLens.Tag 7, ignoredEdges__field_descriptor),+ (Data.ProtoLens.Tag 8, sourcePubKey__field_descriptor),+ (Data.ProtoLens.Tag 9, useMissionControl__field_descriptor),+ (Data.ProtoLens.Tag 10, ignoredPairs__field_descriptor),+ (Data.ProtoLens.Tag 11, cltvLimit__field_descriptor),+ (Data.ProtoLens.Tag 13, destCustomRecords__field_descriptor),+ (Data.ProtoLens.Tag 14, outgoingChanId__field_descriptor),+ (Data.ProtoLens.Tag 15, lastHopPubkey__field_descriptor),+ (Data.ProtoLens.Tag 16, routeHints__field_descriptor),+ (Data.ProtoLens.Tag 17, destFeatures__field_descriptor)]+ unknownFields+ = Lens.Family2.Unchecked.lens+ _QueryRoutesRequest'_unknownFields+ (\ x__ y__ -> x__ {_QueryRoutesRequest'_unknownFields = y__})+ defMessage+ = QueryRoutesRequest'_constructor+ {_QueryRoutesRequest'pubKey = Data.ProtoLens.fieldDefault,+ _QueryRoutesRequest'amt = Data.ProtoLens.fieldDefault,+ _QueryRoutesRequest'amtMsat = Data.ProtoLens.fieldDefault,+ _QueryRoutesRequest'finalCltvDelta = Data.ProtoLens.fieldDefault,+ _QueryRoutesRequest'feeLimit = Prelude.Nothing,+ _QueryRoutesRequest'ignoredNodes = Data.Vector.Generic.empty,+ _QueryRoutesRequest'ignoredEdges = Data.Vector.Generic.empty,+ _QueryRoutesRequest'sourcePubKey = Data.ProtoLens.fieldDefault,+ _QueryRoutesRequest'useMissionControl = Data.ProtoLens.fieldDefault,+ _QueryRoutesRequest'ignoredPairs = Data.Vector.Generic.empty,+ _QueryRoutesRequest'cltvLimit = Data.ProtoLens.fieldDefault,+ _QueryRoutesRequest'destCustomRecords = Data.Map.empty,+ _QueryRoutesRequest'outgoingChanId = Data.ProtoLens.fieldDefault,+ _QueryRoutesRequest'lastHopPubkey = Data.ProtoLens.fieldDefault,+ _QueryRoutesRequest'routeHints = Data.Vector.Generic.empty,+ _QueryRoutesRequest'destFeatures = Data.Vector.Generic.empty,+ _QueryRoutesRequest'_unknownFields = []}+ parseMessage+ = let+ loop ::+ QueryRoutesRequest+ -> Data.ProtoLens.Encoding.Growing.Growing Data.Vector.Vector Data.ProtoLens.Encoding.Growing.RealWorld FeatureBit+ -> Data.ProtoLens.Encoding.Growing.Growing Data.Vector.Vector Data.ProtoLens.Encoding.Growing.RealWorld EdgeLocator+ -> Data.ProtoLens.Encoding.Growing.Growing Data.Vector.Vector Data.ProtoLens.Encoding.Growing.RealWorld Data.ByteString.ByteString+ -> Data.ProtoLens.Encoding.Growing.Growing Data.Vector.Vector Data.ProtoLens.Encoding.Growing.RealWorld NodePair+ -> Data.ProtoLens.Encoding.Growing.Growing Data.Vector.Vector Data.ProtoLens.Encoding.Growing.RealWorld RouteHint+ -> Data.ProtoLens.Encoding.Bytes.Parser QueryRoutesRequest+ loop+ x+ mutable'destFeatures+ mutable'ignoredEdges+ mutable'ignoredNodes+ mutable'ignoredPairs+ mutable'routeHints+ = do end <- Data.ProtoLens.Encoding.Bytes.atEnd+ if end then+ do frozen'destFeatures <- Data.ProtoLens.Encoding.Parser.Unsafe.unsafeLiftIO+ (Data.ProtoLens.Encoding.Growing.unsafeFreeze+ mutable'destFeatures)+ frozen'ignoredEdges <- Data.ProtoLens.Encoding.Parser.Unsafe.unsafeLiftIO+ (Data.ProtoLens.Encoding.Growing.unsafeFreeze+ mutable'ignoredEdges)+ frozen'ignoredNodes <- Data.ProtoLens.Encoding.Parser.Unsafe.unsafeLiftIO+ (Data.ProtoLens.Encoding.Growing.unsafeFreeze+ mutable'ignoredNodes)+ frozen'ignoredPairs <- Data.ProtoLens.Encoding.Parser.Unsafe.unsafeLiftIO+ (Data.ProtoLens.Encoding.Growing.unsafeFreeze+ mutable'ignoredPairs)+ frozen'routeHints <- Data.ProtoLens.Encoding.Parser.Unsafe.unsafeLiftIO+ (Data.ProtoLens.Encoding.Growing.unsafeFreeze+ mutable'routeHints)+ (let missing = []+ in+ if Prelude.null missing then+ Prelude.return ()+ else+ Prelude.fail+ ((Prelude.++)+ "Missing required fields: "+ (Prelude.show (missing :: [Prelude.String]))))+ Prelude.return+ (Lens.Family2.over+ Data.ProtoLens.unknownFields (\ !t -> Prelude.reverse t)+ (Lens.Family2.set+ (Data.ProtoLens.Field.field @"vec'destFeatures")+ frozen'destFeatures+ (Lens.Family2.set+ (Data.ProtoLens.Field.field @"vec'ignoredEdges")+ frozen'ignoredEdges+ (Lens.Family2.set+ (Data.ProtoLens.Field.field @"vec'ignoredNodes")+ frozen'ignoredNodes+ (Lens.Family2.set+ (Data.ProtoLens.Field.field @"vec'ignoredPairs")+ frozen'ignoredPairs+ (Lens.Family2.set+ (Data.ProtoLens.Field.field @"vec'routeHints")+ frozen'routeHints x))))))+ else+ do tag <- Data.ProtoLens.Encoding.Bytes.getVarInt+ case tag of+ 10+ -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (do value <- do len <- Data.ProtoLens.Encoding.Bytes.getVarInt+ Data.ProtoLens.Encoding.Bytes.getBytes+ (Prelude.fromIntegral len)+ Data.ProtoLens.Encoding.Bytes.runEither+ (case Data.Text.Encoding.decodeUtf8' value of+ (Prelude.Left err)+ -> Prelude.Left (Prelude.show err)+ (Prelude.Right r) -> Prelude.Right r))+ "pub_key"+ loop+ (Lens.Family2.set (Data.ProtoLens.Field.field @"pubKey") y x)+ mutable'destFeatures mutable'ignoredEdges mutable'ignoredNodes+ mutable'ignoredPairs mutable'routeHints+ 16+ -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (Prelude.fmap+ Prelude.fromIntegral+ Data.ProtoLens.Encoding.Bytes.getVarInt)+ "amt"+ loop+ (Lens.Family2.set (Data.ProtoLens.Field.field @"amt") y x)+ mutable'destFeatures mutable'ignoredEdges mutable'ignoredNodes+ mutable'ignoredPairs mutable'routeHints+ 96+ -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (Prelude.fmap+ Prelude.fromIntegral+ Data.ProtoLens.Encoding.Bytes.getVarInt)+ "amt_msat"+ loop+ (Lens.Family2.set (Data.ProtoLens.Field.field @"amtMsat") y x)+ mutable'destFeatures mutable'ignoredEdges mutable'ignoredNodes+ mutable'ignoredPairs mutable'routeHints+ 32+ -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (Prelude.fmap+ Prelude.fromIntegral+ Data.ProtoLens.Encoding.Bytes.getVarInt)+ "final_cltv_delta"+ loop+ (Lens.Family2.set+ (Data.ProtoLens.Field.field @"finalCltvDelta") y x)+ mutable'destFeatures mutable'ignoredEdges mutable'ignoredNodes+ mutable'ignoredPairs mutable'routeHints+ 42+ -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (do len <- Data.ProtoLens.Encoding.Bytes.getVarInt+ Data.ProtoLens.Encoding.Bytes.isolate+ (Prelude.fromIntegral len) Data.ProtoLens.parseMessage)+ "fee_limit"+ loop+ (Lens.Family2.set (Data.ProtoLens.Field.field @"feeLimit") y x)+ mutable'destFeatures mutable'ignoredEdges mutable'ignoredNodes+ mutable'ignoredPairs mutable'routeHints+ 50+ -> do !y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (do len <- Data.ProtoLens.Encoding.Bytes.getVarInt+ Data.ProtoLens.Encoding.Bytes.getBytes+ (Prelude.fromIntegral len))+ "ignored_nodes"+ v <- Data.ProtoLens.Encoding.Parser.Unsafe.unsafeLiftIO+ (Data.ProtoLens.Encoding.Growing.append+ mutable'ignoredNodes y)+ loop+ x mutable'destFeatures mutable'ignoredEdges v mutable'ignoredPairs+ mutable'routeHints+ 58+ -> do !y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (do len <- Data.ProtoLens.Encoding.Bytes.getVarInt+ Data.ProtoLens.Encoding.Bytes.isolate+ (Prelude.fromIntegral len)+ Data.ProtoLens.parseMessage)+ "ignored_edges"+ v <- Data.ProtoLens.Encoding.Parser.Unsafe.unsafeLiftIO+ (Data.ProtoLens.Encoding.Growing.append+ mutable'ignoredEdges y)+ loop+ x mutable'destFeatures v mutable'ignoredNodes mutable'ignoredPairs+ mutable'routeHints+ 66+ -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (do value <- do len <- Data.ProtoLens.Encoding.Bytes.getVarInt+ Data.ProtoLens.Encoding.Bytes.getBytes+ (Prelude.fromIntegral len)+ Data.ProtoLens.Encoding.Bytes.runEither+ (case Data.Text.Encoding.decodeUtf8' value of+ (Prelude.Left err)+ -> Prelude.Left (Prelude.show err)+ (Prelude.Right r) -> Prelude.Right r))+ "source_pub_key"+ loop+ (Lens.Family2.set+ (Data.ProtoLens.Field.field @"sourcePubKey") y x)+ mutable'destFeatures mutable'ignoredEdges mutable'ignoredNodes+ mutable'ignoredPairs mutable'routeHints+ 72+ -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (Prelude.fmap+ ((Prelude./=) 0) Data.ProtoLens.Encoding.Bytes.getVarInt)+ "use_mission_control"+ loop+ (Lens.Family2.set+ (Data.ProtoLens.Field.field @"useMissionControl") y x)+ mutable'destFeatures mutable'ignoredEdges mutable'ignoredNodes+ mutable'ignoredPairs mutable'routeHints+ 82+ -> do !y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (do len <- Data.ProtoLens.Encoding.Bytes.getVarInt+ Data.ProtoLens.Encoding.Bytes.isolate+ (Prelude.fromIntegral len)+ Data.ProtoLens.parseMessage)+ "ignored_pairs"+ v <- Data.ProtoLens.Encoding.Parser.Unsafe.unsafeLiftIO+ (Data.ProtoLens.Encoding.Growing.append+ mutable'ignoredPairs y)+ loop+ x mutable'destFeatures mutable'ignoredEdges mutable'ignoredNodes v+ mutable'routeHints+ 88+ -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (Prelude.fmap+ Prelude.fromIntegral+ Data.ProtoLens.Encoding.Bytes.getVarInt)+ "cltv_limit"+ loop+ (Lens.Family2.set (Data.ProtoLens.Field.field @"cltvLimit") y x)+ mutable'destFeatures mutable'ignoredEdges mutable'ignoredNodes+ mutable'ignoredPairs mutable'routeHints+ 106+ -> do !(entry :: QueryRoutesRequest'DestCustomRecordsEntry) <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (do len <- Data.ProtoLens.Encoding.Bytes.getVarInt+ Data.ProtoLens.Encoding.Bytes.isolate+ (Prelude.fromIntegral+ len)+ Data.ProtoLens.parseMessage)+ "dest_custom_records"+ (let+ key = Lens.Family2.view (Data.ProtoLens.Field.field @"key") entry+ value+ = Lens.Family2.view (Data.ProtoLens.Field.field @"value") entry+ in+ loop+ (Lens.Family2.over+ (Data.ProtoLens.Field.field @"destCustomRecords")+ (\ !t -> Data.Map.insert key value t) x)+ mutable'destFeatures mutable'ignoredEdges mutable'ignoredNodes+ mutable'ignoredPairs mutable'routeHints)+ 112+ -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ Data.ProtoLens.Encoding.Bytes.getVarInt "outgoing_chan_id"+ loop+ (Lens.Family2.set+ (Data.ProtoLens.Field.field @"outgoingChanId") y x)+ mutable'destFeatures mutable'ignoredEdges mutable'ignoredNodes+ mutable'ignoredPairs mutable'routeHints+ 122+ -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (do len <- Data.ProtoLens.Encoding.Bytes.getVarInt+ Data.ProtoLens.Encoding.Bytes.getBytes+ (Prelude.fromIntegral len))+ "last_hop_pubkey"+ loop+ (Lens.Family2.set+ (Data.ProtoLens.Field.field @"lastHopPubkey") y x)+ mutable'destFeatures mutable'ignoredEdges mutable'ignoredNodes+ mutable'ignoredPairs mutable'routeHints+ 130+ -> do !y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (do len <- Data.ProtoLens.Encoding.Bytes.getVarInt+ Data.ProtoLens.Encoding.Bytes.isolate+ (Prelude.fromIntegral len)+ Data.ProtoLens.parseMessage)+ "route_hints"+ v <- Data.ProtoLens.Encoding.Parser.Unsafe.unsafeLiftIO+ (Data.ProtoLens.Encoding.Growing.append mutable'routeHints y)+ loop+ x mutable'destFeatures mutable'ignoredEdges mutable'ignoredNodes+ mutable'ignoredPairs v+ 136+ -> do !y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (Prelude.fmap+ Prelude.toEnum+ (Prelude.fmap+ Prelude.fromIntegral+ Data.ProtoLens.Encoding.Bytes.getVarInt))+ "dest_features"+ v <- Data.ProtoLens.Encoding.Parser.Unsafe.unsafeLiftIO+ (Data.ProtoLens.Encoding.Growing.append+ mutable'destFeatures y)+ loop+ x v mutable'ignoredEdges mutable'ignoredNodes mutable'ignoredPairs+ mutable'routeHints+ 138+ -> do y <- do len <- Data.ProtoLens.Encoding.Bytes.getVarInt+ Data.ProtoLens.Encoding.Bytes.isolate+ (Prelude.fromIntegral len)+ ((let+ ploop qs+ = do packedEnd <- Data.ProtoLens.Encoding.Bytes.atEnd+ if packedEnd then+ Prelude.return qs+ else+ do !q <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (Prelude.fmap+ Prelude.toEnum+ (Prelude.fmap+ Prelude.fromIntegral+ Data.ProtoLens.Encoding.Bytes.getVarInt))+ "dest_features"+ qs' <- Data.ProtoLens.Encoding.Parser.Unsafe.unsafeLiftIO+ (Data.ProtoLens.Encoding.Growing.append+ qs q)+ ploop qs'+ in ploop)+ mutable'destFeatures)+ loop+ x y mutable'ignoredEdges mutable'ignoredNodes mutable'ignoredPairs+ mutable'routeHints+ wire+ -> do !y <- Data.ProtoLens.Encoding.Wire.parseTaggedValueFromWire+ wire+ loop+ (Lens.Family2.over+ Data.ProtoLens.unknownFields (\ !t -> (:) y t) x)+ mutable'destFeatures mutable'ignoredEdges mutable'ignoredNodes+ mutable'ignoredPairs mutable'routeHints+ in+ (Data.ProtoLens.Encoding.Bytes.<?>)+ (do mutable'destFeatures <- Data.ProtoLens.Encoding.Parser.Unsafe.unsafeLiftIO+ Data.ProtoLens.Encoding.Growing.new+ mutable'ignoredEdges <- Data.ProtoLens.Encoding.Parser.Unsafe.unsafeLiftIO+ Data.ProtoLens.Encoding.Growing.new+ mutable'ignoredNodes <- Data.ProtoLens.Encoding.Parser.Unsafe.unsafeLiftIO+ Data.ProtoLens.Encoding.Growing.new+ mutable'ignoredPairs <- Data.ProtoLens.Encoding.Parser.Unsafe.unsafeLiftIO+ Data.ProtoLens.Encoding.Growing.new+ mutable'routeHints <- Data.ProtoLens.Encoding.Parser.Unsafe.unsafeLiftIO+ Data.ProtoLens.Encoding.Growing.new+ loop+ Data.ProtoLens.defMessage mutable'destFeatures mutable'ignoredEdges+ mutable'ignoredNodes mutable'ignoredPairs mutable'routeHints)+ "QueryRoutesRequest"+ buildMessage+ = \ _x+ -> (Data.Monoid.<>)+ (let+ _v = Lens.Family2.view (Data.ProtoLens.Field.field @"pubKey") _x+ in+ if (Prelude.==) _v Data.ProtoLens.fieldDefault then+ Data.Monoid.mempty+ else+ (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 10)+ ((Prelude..)+ (\ bs+ -> (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt+ (Prelude.fromIntegral (Data.ByteString.length bs)))+ (Data.ProtoLens.Encoding.Bytes.putBytes bs))+ Data.Text.Encoding.encodeUtf8 _v))+ ((Data.Monoid.<>)+ (let _v = Lens.Family2.view (Data.ProtoLens.Field.field @"amt") _x+ in+ if (Prelude.==) _v Data.ProtoLens.fieldDefault then+ Data.Monoid.mempty+ else+ (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 16)+ ((Prelude..)+ Data.ProtoLens.Encoding.Bytes.putVarInt Prelude.fromIntegral _v))+ ((Data.Monoid.<>)+ (let+ _v = Lens.Family2.view (Data.ProtoLens.Field.field @"amtMsat") _x+ in+ if (Prelude.==) _v Data.ProtoLens.fieldDefault then+ Data.Monoid.mempty+ else+ (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 96)+ ((Prelude..)+ Data.ProtoLens.Encoding.Bytes.putVarInt Prelude.fromIntegral _v))+ ((Data.Monoid.<>)+ (let+ _v+ = Lens.Family2.view+ (Data.ProtoLens.Field.field @"finalCltvDelta") _x+ in+ if (Prelude.==) _v Data.ProtoLens.fieldDefault then+ Data.Monoid.mempty+ else+ (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 32)+ ((Prelude..)+ Data.ProtoLens.Encoding.Bytes.putVarInt Prelude.fromIntegral _v))+ ((Data.Monoid.<>)+ (case+ Lens.Family2.view (Data.ProtoLens.Field.field @"maybe'feeLimit") _x+ of+ Prelude.Nothing -> Data.Monoid.mempty+ (Prelude.Just _v)+ -> (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 42)+ ((Prelude..)+ (\ bs+ -> (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt+ (Prelude.fromIntegral (Data.ByteString.length bs)))+ (Data.ProtoLens.Encoding.Bytes.putBytes bs))+ Data.ProtoLens.encodeMessage _v))+ ((Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.foldMapBuilder+ (\ _v+ -> (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 50)+ ((\ bs+ -> (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt+ (Prelude.fromIntegral+ (Data.ByteString.length bs)))+ (Data.ProtoLens.Encoding.Bytes.putBytes bs))+ _v))+ (Lens.Family2.view+ (Data.ProtoLens.Field.field @"vec'ignoredNodes") _x))+ ((Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.foldMapBuilder+ (\ _v+ -> (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 58)+ ((Prelude..)+ (\ bs+ -> (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt+ (Prelude.fromIntegral+ (Data.ByteString.length bs)))+ (Data.ProtoLens.Encoding.Bytes.putBytes bs))+ Data.ProtoLens.encodeMessage _v))+ (Lens.Family2.view+ (Data.ProtoLens.Field.field @"vec'ignoredEdges") _x))+ ((Data.Monoid.<>)+ (let+ _v+ = Lens.Family2.view+ (Data.ProtoLens.Field.field @"sourcePubKey") _x+ in+ if (Prelude.==) _v Data.ProtoLens.fieldDefault then+ Data.Monoid.mempty+ else+ (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 66)+ ((Prelude..)+ (\ bs+ -> (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt+ (Prelude.fromIntegral+ (Data.ByteString.length bs)))+ (Data.ProtoLens.Encoding.Bytes.putBytes bs))+ Data.Text.Encoding.encodeUtf8 _v))+ ((Data.Monoid.<>)+ (let+ _v+ = Lens.Family2.view+ (Data.ProtoLens.Field.field @"useMissionControl") _x+ in+ if (Prelude.==) _v Data.ProtoLens.fieldDefault then+ Data.Monoid.mempty+ else+ (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 72)+ ((Prelude..)+ Data.ProtoLens.Encoding.Bytes.putVarInt+ (\ b -> if b then 1 else 0) _v))+ ((Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.foldMapBuilder+ (\ _v+ -> (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 82)+ ((Prelude..)+ (\ bs+ -> (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt+ (Prelude.fromIntegral+ (Data.ByteString.length bs)))+ (Data.ProtoLens.Encoding.Bytes.putBytes+ bs))+ Data.ProtoLens.encodeMessage _v))+ (Lens.Family2.view+ (Data.ProtoLens.Field.field @"vec'ignoredPairs") _x))+ ((Data.Monoid.<>)+ (let+ _v+ = Lens.Family2.view+ (Data.ProtoLens.Field.field @"cltvLimit") _x+ in+ if (Prelude.==) _v Data.ProtoLens.fieldDefault then+ Data.Monoid.mempty+ else+ (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 88)+ ((Prelude..)+ Data.ProtoLens.Encoding.Bytes.putVarInt+ Prelude.fromIntegral _v))+ ((Data.Monoid.<>)+ (Data.Monoid.mconcat+ (Prelude.map+ (\ _v+ -> (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt+ 106)+ ((Prelude..)+ (\ bs+ -> (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt+ (Prelude.fromIntegral+ (Data.ByteString.length+ bs)))+ (Data.ProtoLens.Encoding.Bytes.putBytes+ bs))+ Data.ProtoLens.encodeMessage+ (Lens.Family2.set+ (Data.ProtoLens.Field.field+ @"key")+ (Prelude.fst _v)+ (Lens.Family2.set+ (Data.ProtoLens.Field.field+ @"value")+ (Prelude.snd _v)+ (Data.ProtoLens.defMessage ::+ QueryRoutesRequest'DestCustomRecordsEntry)))))+ (Data.Map.toList+ (Lens.Family2.view+ (Data.ProtoLens.Field.field+ @"destCustomRecords")+ _x))))+ ((Data.Monoid.<>)+ (let+ _v+ = Lens.Family2.view+ (Data.ProtoLens.Field.field+ @"outgoingChanId")+ _x+ in+ if (Prelude.==)+ _v Data.ProtoLens.fieldDefault then+ Data.Monoid.mempty+ else+ (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt+ 112)+ (Data.ProtoLens.Encoding.Bytes.putVarInt+ _v))+ ((Data.Monoid.<>)+ (let+ _v+ = Lens.Family2.view+ (Data.ProtoLens.Field.field+ @"lastHopPubkey")+ _x+ in+ if (Prelude.==)+ _v Data.ProtoLens.fieldDefault then+ Data.Monoid.mempty+ else+ (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt+ 122)+ ((\ bs+ -> (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt+ (Prelude.fromIntegral+ (Data.ByteString.length+ bs)))+ (Data.ProtoLens.Encoding.Bytes.putBytes+ bs))+ _v))+ ((Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.foldMapBuilder+ (\ _v+ -> (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt+ 130)+ ((Prelude..)+ (\ bs+ -> (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt+ (Prelude.fromIntegral+ (Data.ByteString.length+ bs)))+ (Data.ProtoLens.Encoding.Bytes.putBytes+ bs))+ Data.ProtoLens.encodeMessage+ _v))+ (Lens.Family2.view+ (Data.ProtoLens.Field.field+ @"vec'routeHints")+ _x))+ ((Data.Monoid.<>)+ (let+ p = Lens.Family2.view+ (Data.ProtoLens.Field.field+ @"vec'destFeatures")+ _x+ in+ if Data.Vector.Generic.null p then+ Data.Monoid.mempty+ else+ (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt+ 138)+ ((\ bs+ -> (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt+ (Prelude.fromIntegral+ (Data.ByteString.length+ bs)))+ (Data.ProtoLens.Encoding.Bytes.putBytes+ bs))+ (Data.ProtoLens.Encoding.Bytes.runBuilder+ (Data.ProtoLens.Encoding.Bytes.foldMapBuilder+ ((Prelude..)+ ((Prelude..)+ Data.ProtoLens.Encoding.Bytes.putVarInt+ Prelude.fromIntegral)+ Prelude.fromEnum)+ p))))+ (Data.ProtoLens.Encoding.Wire.buildFieldSet+ (Lens.Family2.view+ Data.ProtoLens.unknownFields+ _x)))))))))))))))))+instance Control.DeepSeq.NFData QueryRoutesRequest where+ rnf+ = \ x__+ -> Control.DeepSeq.deepseq+ (_QueryRoutesRequest'_unknownFields x__)+ (Control.DeepSeq.deepseq+ (_QueryRoutesRequest'pubKey x__)+ (Control.DeepSeq.deepseq+ (_QueryRoutesRequest'amt x__)+ (Control.DeepSeq.deepseq+ (_QueryRoutesRequest'amtMsat x__)+ (Control.DeepSeq.deepseq+ (_QueryRoutesRequest'finalCltvDelta x__)+ (Control.DeepSeq.deepseq+ (_QueryRoutesRequest'feeLimit x__)+ (Control.DeepSeq.deepseq+ (_QueryRoutesRequest'ignoredNodes x__)+ (Control.DeepSeq.deepseq+ (_QueryRoutesRequest'ignoredEdges x__)+ (Control.DeepSeq.deepseq+ (_QueryRoutesRequest'sourcePubKey x__)+ (Control.DeepSeq.deepseq+ (_QueryRoutesRequest'useMissionControl x__)+ (Control.DeepSeq.deepseq+ (_QueryRoutesRequest'ignoredPairs x__)+ (Control.DeepSeq.deepseq+ (_QueryRoutesRequest'cltvLimit x__)+ (Control.DeepSeq.deepseq+ (_QueryRoutesRequest'destCustomRecords x__)+ (Control.DeepSeq.deepseq+ (_QueryRoutesRequest'outgoingChanId x__)+ (Control.DeepSeq.deepseq+ (_QueryRoutesRequest'lastHopPubkey x__)+ (Control.DeepSeq.deepseq+ (_QueryRoutesRequest'routeHints x__)+ (Control.DeepSeq.deepseq+ (_QueryRoutesRequest'destFeatures x__)+ ()))))))))))))))))+{- | Fields :+ + * 'Proto.Lnrpc.Ln0_Fields.key' @:: Lens' QueryRoutesRequest'DestCustomRecordsEntry Data.Word.Word64@+ * 'Proto.Lnrpc.Ln0_Fields.value' @:: Lens' QueryRoutesRequest'DestCustomRecordsEntry Data.ByteString.ByteString@ -}+data QueryRoutesRequest'DestCustomRecordsEntry+ = QueryRoutesRequest'DestCustomRecordsEntry'_constructor {_QueryRoutesRequest'DestCustomRecordsEntry'key :: !Data.Word.Word64,+ _QueryRoutesRequest'DestCustomRecordsEntry'value :: !Data.ByteString.ByteString,+ _QueryRoutesRequest'DestCustomRecordsEntry'_unknownFields :: !Data.ProtoLens.FieldSet}+ deriving stock (Prelude.Eq, Prelude.Ord, GHC.Generics.Generic)+instance Prelude.Show QueryRoutesRequest'DestCustomRecordsEntry where+ showsPrec _ __x __s+ = Prelude.showChar+ '{'+ (Prelude.showString+ (Data.ProtoLens.showMessageShort __x) (Prelude.showChar '}' __s))+instance Text.PrettyPrint.GenericPretty.Out QueryRoutesRequest'DestCustomRecordsEntry+instance Data.ProtoLens.Field.HasField QueryRoutesRequest'DestCustomRecordsEntry "key" Data.Word.Word64 where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _QueryRoutesRequest'DestCustomRecordsEntry'key+ (\ x__ y__+ -> x__ {_QueryRoutesRequest'DestCustomRecordsEntry'key = y__}))+ Prelude.id+instance Data.ProtoLens.Field.HasField QueryRoutesRequest'DestCustomRecordsEntry "value" Data.ByteString.ByteString where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _QueryRoutesRequest'DestCustomRecordsEntry'value+ (\ x__ y__+ -> x__ {_QueryRoutesRequest'DestCustomRecordsEntry'value = y__}))+ Prelude.id+instance Data.ProtoLens.Message QueryRoutesRequest'DestCustomRecordsEntry where+ messageName _+ = Data.Text.pack "lnrpc.QueryRoutesRequest.DestCustomRecordsEntry"+ packedMessageDescriptor _+ = "\n\+ \\SYNDestCustomRecordsEntry\DC2\DLE\n\+ \\ETXkey\CAN\SOH \SOH(\EOTR\ETXkey\DC2\DC4\n\+ \\ENQvalue\CAN\STX \SOH(\fR\ENQvalue:\STX8\SOH"+ packedFileDescriptor _ = packedFileDescriptor+ fieldsByTag+ = let+ key__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "key"+ (Data.ProtoLens.ScalarField Data.ProtoLens.UInt64Field ::+ Data.ProtoLens.FieldTypeDescriptor Data.Word.Word64)+ (Data.ProtoLens.PlainField+ Data.ProtoLens.Optional (Data.ProtoLens.Field.field @"key")) ::+ Data.ProtoLens.FieldDescriptor QueryRoutesRequest'DestCustomRecordsEntry+ value__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "value"+ (Data.ProtoLens.ScalarField Data.ProtoLens.BytesField ::+ Data.ProtoLens.FieldTypeDescriptor Data.ByteString.ByteString)+ (Data.ProtoLens.PlainField+ Data.ProtoLens.Optional (Data.ProtoLens.Field.field @"value")) ::+ Data.ProtoLens.FieldDescriptor QueryRoutesRequest'DestCustomRecordsEntry+ in+ Data.Map.fromList+ [(Data.ProtoLens.Tag 1, key__field_descriptor),+ (Data.ProtoLens.Tag 2, value__field_descriptor)]+ unknownFields+ = Lens.Family2.Unchecked.lens+ _QueryRoutesRequest'DestCustomRecordsEntry'_unknownFields+ (\ x__ y__+ -> x__+ {_QueryRoutesRequest'DestCustomRecordsEntry'_unknownFields = y__})+ defMessage+ = QueryRoutesRequest'DestCustomRecordsEntry'_constructor+ {_QueryRoutesRequest'DestCustomRecordsEntry'key = Data.ProtoLens.fieldDefault,+ _QueryRoutesRequest'DestCustomRecordsEntry'value = Data.ProtoLens.fieldDefault,+ _QueryRoutesRequest'DestCustomRecordsEntry'_unknownFields = []}+ parseMessage+ = let+ loop ::+ QueryRoutesRequest'DestCustomRecordsEntry+ -> Data.ProtoLens.Encoding.Bytes.Parser QueryRoutesRequest'DestCustomRecordsEntry+ loop x+ = do end <- Data.ProtoLens.Encoding.Bytes.atEnd+ if end then+ do (let missing = []+ in+ if Prelude.null missing then+ Prelude.return ()+ else+ Prelude.fail+ ((Prelude.++)+ "Missing required fields: "+ (Prelude.show (missing :: [Prelude.String]))))+ Prelude.return+ (Lens.Family2.over+ Data.ProtoLens.unknownFields (\ !t -> Prelude.reverse t) x)+ else+ do tag <- Data.ProtoLens.Encoding.Bytes.getVarInt+ case tag of+ 8 -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ Data.ProtoLens.Encoding.Bytes.getVarInt "key"+ loop (Lens.Family2.set (Data.ProtoLens.Field.field @"key") y x)+ 18+ -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (do len <- Data.ProtoLens.Encoding.Bytes.getVarInt+ Data.ProtoLens.Encoding.Bytes.getBytes+ (Prelude.fromIntegral len))+ "value"+ loop (Lens.Family2.set (Data.ProtoLens.Field.field @"value") y x)+ wire+ -> do !y <- Data.ProtoLens.Encoding.Wire.parseTaggedValueFromWire+ wire+ loop+ (Lens.Family2.over+ Data.ProtoLens.unknownFields (\ !t -> (:) y t) x)+ in+ (Data.ProtoLens.Encoding.Bytes.<?>)+ (do loop Data.ProtoLens.defMessage) "DestCustomRecordsEntry"+ buildMessage+ = \ _x+ -> (Data.Monoid.<>)+ (let _v = Lens.Family2.view (Data.ProtoLens.Field.field @"key") _x+ in+ if (Prelude.==) _v Data.ProtoLens.fieldDefault then+ Data.Monoid.mempty+ else+ (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 8)+ (Data.ProtoLens.Encoding.Bytes.putVarInt _v))+ ((Data.Monoid.<>)+ (let+ _v = Lens.Family2.view (Data.ProtoLens.Field.field @"value") _x+ in+ if (Prelude.==) _v Data.ProtoLens.fieldDefault then+ Data.Monoid.mempty+ else+ (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 18)+ ((\ bs+ -> (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt+ (Prelude.fromIntegral (Data.ByteString.length bs)))+ (Data.ProtoLens.Encoding.Bytes.putBytes bs))+ _v))+ (Data.ProtoLens.Encoding.Wire.buildFieldSet+ (Lens.Family2.view Data.ProtoLens.unknownFields _x)))+instance Control.DeepSeq.NFData QueryRoutesRequest'DestCustomRecordsEntry where+ rnf+ = \ x__+ -> Control.DeepSeq.deepseq+ (_QueryRoutesRequest'DestCustomRecordsEntry'_unknownFields x__)+ (Control.DeepSeq.deepseq+ (_QueryRoutesRequest'DestCustomRecordsEntry'key x__)+ (Control.DeepSeq.deepseq+ (_QueryRoutesRequest'DestCustomRecordsEntry'value x__) ()))+{- | Fields :+ + * 'Proto.Lnrpc.Ln0_Fields.routes' @:: Lens' QueryRoutesResponse [Route]@+ * 'Proto.Lnrpc.Ln0_Fields.vec'routes' @:: Lens' QueryRoutesResponse (Data.Vector.Vector Route)@+ * 'Proto.Lnrpc.Ln0_Fields.successProb' @:: Lens' QueryRoutesResponse Prelude.Double@ -}+data QueryRoutesResponse+ = QueryRoutesResponse'_constructor {_QueryRoutesResponse'routes :: !(Data.Vector.Vector Route),+ _QueryRoutesResponse'successProb :: !Prelude.Double,+ _QueryRoutesResponse'_unknownFields :: !Data.ProtoLens.FieldSet}+ deriving stock (Prelude.Eq, Prelude.Ord, GHC.Generics.Generic)+instance Prelude.Show QueryRoutesResponse where+ showsPrec _ __x __s+ = Prelude.showChar+ '{'+ (Prelude.showString+ (Data.ProtoLens.showMessageShort __x) (Prelude.showChar '}' __s))+instance Text.PrettyPrint.GenericPretty.Out QueryRoutesResponse+instance Data.ProtoLens.Field.HasField QueryRoutesResponse "routes" [Route] where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _QueryRoutesResponse'routes+ (\ x__ y__ -> x__ {_QueryRoutesResponse'routes = y__}))+ (Lens.Family2.Unchecked.lens+ Data.Vector.Generic.toList+ (\ _ y__ -> Data.Vector.Generic.fromList y__))+instance Data.ProtoLens.Field.HasField QueryRoutesResponse "vec'routes" (Data.Vector.Vector Route) where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _QueryRoutesResponse'routes+ (\ x__ y__ -> x__ {_QueryRoutesResponse'routes = y__}))+ Prelude.id+instance Data.ProtoLens.Field.HasField QueryRoutesResponse "successProb" Prelude.Double where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _QueryRoutesResponse'successProb+ (\ x__ y__ -> x__ {_QueryRoutesResponse'successProb = y__}))+ Prelude.id+instance Data.ProtoLens.Message QueryRoutesResponse where+ messageName _ = Data.Text.pack "lnrpc.QueryRoutesResponse"+ packedMessageDescriptor _+ = "\n\+ \\DC3QueryRoutesResponse\DC2$\n\+ \\ACKroutes\CAN\SOH \ETX(\v2\f.lnrpc.RouteR\ACKroutes\DC2!\n\+ \\fsuccess_prob\CAN\STX \SOH(\SOHR\vsuccessProb"+ packedFileDescriptor _ = packedFileDescriptor+ fieldsByTag+ = let+ routes__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "routes"+ (Data.ProtoLens.MessageField Data.ProtoLens.MessageType ::+ Data.ProtoLens.FieldTypeDescriptor Route)+ (Data.ProtoLens.RepeatedField+ Data.ProtoLens.Unpacked (Data.ProtoLens.Field.field @"routes")) ::+ Data.ProtoLens.FieldDescriptor QueryRoutesResponse+ successProb__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "success_prob"+ (Data.ProtoLens.ScalarField Data.ProtoLens.DoubleField ::+ Data.ProtoLens.FieldTypeDescriptor Prelude.Double)+ (Data.ProtoLens.PlainField+ Data.ProtoLens.Optional+ (Data.ProtoLens.Field.field @"successProb")) ::+ Data.ProtoLens.FieldDescriptor QueryRoutesResponse+ in+ Data.Map.fromList+ [(Data.ProtoLens.Tag 1, routes__field_descriptor),+ (Data.ProtoLens.Tag 2, successProb__field_descriptor)]+ unknownFields+ = Lens.Family2.Unchecked.lens+ _QueryRoutesResponse'_unknownFields+ (\ x__ y__ -> x__ {_QueryRoutesResponse'_unknownFields = y__})+ defMessage+ = QueryRoutesResponse'_constructor+ {_QueryRoutesResponse'routes = Data.Vector.Generic.empty,+ _QueryRoutesResponse'successProb = Data.ProtoLens.fieldDefault,+ _QueryRoutesResponse'_unknownFields = []}+ parseMessage+ = let+ loop ::+ QueryRoutesResponse+ -> Data.ProtoLens.Encoding.Growing.Growing Data.Vector.Vector Data.ProtoLens.Encoding.Growing.RealWorld Route+ -> Data.ProtoLens.Encoding.Bytes.Parser QueryRoutesResponse+ loop x mutable'routes+ = do end <- Data.ProtoLens.Encoding.Bytes.atEnd+ if end then+ do frozen'routes <- Data.ProtoLens.Encoding.Parser.Unsafe.unsafeLiftIO+ (Data.ProtoLens.Encoding.Growing.unsafeFreeze+ mutable'routes)+ (let missing = []+ in+ if Prelude.null missing then+ Prelude.return ()+ else+ Prelude.fail+ ((Prelude.++)+ "Missing required fields: "+ (Prelude.show (missing :: [Prelude.String]))))+ Prelude.return+ (Lens.Family2.over+ Data.ProtoLens.unknownFields (\ !t -> Prelude.reverse t)+ (Lens.Family2.set+ (Data.ProtoLens.Field.field @"vec'routes") frozen'routes x))+ else+ do tag <- Data.ProtoLens.Encoding.Bytes.getVarInt+ case tag of+ 10+ -> do !y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (do len <- Data.ProtoLens.Encoding.Bytes.getVarInt+ Data.ProtoLens.Encoding.Bytes.isolate+ (Prelude.fromIntegral len)+ Data.ProtoLens.parseMessage)+ "routes"+ v <- Data.ProtoLens.Encoding.Parser.Unsafe.unsafeLiftIO+ (Data.ProtoLens.Encoding.Growing.append mutable'routes y)+ loop x v+ 17+ -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (Prelude.fmap+ Data.ProtoLens.Encoding.Bytes.wordToDouble+ Data.ProtoLens.Encoding.Bytes.getFixed64)+ "success_prob"+ loop+ (Lens.Family2.set (Data.ProtoLens.Field.field @"successProb") y x)+ mutable'routes+ wire+ -> do !y <- Data.ProtoLens.Encoding.Wire.parseTaggedValueFromWire+ wire+ loop+ (Lens.Family2.over+ Data.ProtoLens.unknownFields (\ !t -> (:) y t) x)+ mutable'routes+ in+ (Data.ProtoLens.Encoding.Bytes.<?>)+ (do mutable'routes <- Data.ProtoLens.Encoding.Parser.Unsafe.unsafeLiftIO+ Data.ProtoLens.Encoding.Growing.new+ loop Data.ProtoLens.defMessage mutable'routes)+ "QueryRoutesResponse"+ buildMessage+ = \ _x+ -> (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.foldMapBuilder+ (\ _v+ -> (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 10)+ ((Prelude..)+ (\ bs+ -> (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt+ (Prelude.fromIntegral (Data.ByteString.length bs)))+ (Data.ProtoLens.Encoding.Bytes.putBytes bs))+ Data.ProtoLens.encodeMessage _v))+ (Lens.Family2.view (Data.ProtoLens.Field.field @"vec'routes") _x))+ ((Data.Monoid.<>)+ (let+ _v+ = Lens.Family2.view (Data.ProtoLens.Field.field @"successProb") _x+ in+ if (Prelude.==) _v Data.ProtoLens.fieldDefault then+ Data.Monoid.mempty+ else+ (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 17)+ ((Prelude..)+ Data.ProtoLens.Encoding.Bytes.putFixed64+ Data.ProtoLens.Encoding.Bytes.doubleToWord _v))+ (Data.ProtoLens.Encoding.Wire.buildFieldSet+ (Lens.Family2.view Data.ProtoLens.unknownFields _x)))+instance Control.DeepSeq.NFData QueryRoutesResponse where+ rnf+ = \ x__+ -> Control.DeepSeq.deepseq+ (_QueryRoutesResponse'_unknownFields x__)+ (Control.DeepSeq.deepseq+ (_QueryRoutesResponse'routes x__)+ (Control.DeepSeq.deepseq+ (_QueryRoutesResponse'successProb x__) ()))+{- | Fields :+ + * 'Proto.Lnrpc.Ln0_Fields.resolutionType' @:: Lens' Resolution ResolutionType@+ * 'Proto.Lnrpc.Ln0_Fields.outcome' @:: Lens' Resolution ResolutionOutcome@+ * 'Proto.Lnrpc.Ln0_Fields.outpoint' @:: Lens' Resolution OutPoint@+ * 'Proto.Lnrpc.Ln0_Fields.maybe'outpoint' @:: Lens' Resolution (Prelude.Maybe OutPoint)@+ * 'Proto.Lnrpc.Ln0_Fields.amountSat' @:: Lens' Resolution Data.Word.Word64@+ * 'Proto.Lnrpc.Ln0_Fields.sweepTxid' @:: Lens' Resolution Data.Text.Text@ -}+data Resolution+ = Resolution'_constructor {_Resolution'resolutionType :: !ResolutionType,+ _Resolution'outcome :: !ResolutionOutcome,+ _Resolution'outpoint :: !(Prelude.Maybe OutPoint),+ _Resolution'amountSat :: !Data.Word.Word64,+ _Resolution'sweepTxid :: !Data.Text.Text,+ _Resolution'_unknownFields :: !Data.ProtoLens.FieldSet}+ deriving stock (Prelude.Eq, Prelude.Ord, GHC.Generics.Generic)+instance Prelude.Show Resolution where+ showsPrec _ __x __s+ = Prelude.showChar+ '{'+ (Prelude.showString+ (Data.ProtoLens.showMessageShort __x) (Prelude.showChar '}' __s))+instance Text.PrettyPrint.GenericPretty.Out Resolution+instance Data.ProtoLens.Field.HasField Resolution "resolutionType" ResolutionType where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _Resolution'resolutionType+ (\ x__ y__ -> x__ {_Resolution'resolutionType = y__}))+ Prelude.id+instance Data.ProtoLens.Field.HasField Resolution "outcome" ResolutionOutcome where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _Resolution'outcome (\ x__ y__ -> x__ {_Resolution'outcome = y__}))+ Prelude.id+instance Data.ProtoLens.Field.HasField Resolution "outpoint" OutPoint where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _Resolution'outpoint+ (\ x__ y__ -> x__ {_Resolution'outpoint = y__}))+ (Data.ProtoLens.maybeLens Data.ProtoLens.defMessage)+instance Data.ProtoLens.Field.HasField Resolution "maybe'outpoint" (Prelude.Maybe OutPoint) where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _Resolution'outpoint+ (\ x__ y__ -> x__ {_Resolution'outpoint = y__}))+ Prelude.id+instance Data.ProtoLens.Field.HasField Resolution "amountSat" Data.Word.Word64 where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _Resolution'amountSat+ (\ x__ y__ -> x__ {_Resolution'amountSat = y__}))+ Prelude.id+instance Data.ProtoLens.Field.HasField Resolution "sweepTxid" Data.Text.Text where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _Resolution'sweepTxid+ (\ x__ y__ -> x__ {_Resolution'sweepTxid = y__}))+ Prelude.id+instance Data.ProtoLens.Message Resolution where+ messageName _ = Data.Text.pack "lnrpc.Resolution"+ packedMessageDescriptor _+ = "\n\+ \\n\+ \Resolution\DC2>\n\+ \\SIresolution_type\CAN\SOH \SOH(\SO2\NAK.lnrpc.ResolutionTypeR\SOresolutionType\DC22\n\+ \\aoutcome\CAN\STX \SOH(\SO2\CAN.lnrpc.ResolutionOutcomeR\aoutcome\DC2+\n\+ \\boutpoint\CAN\ETX \SOH(\v2\SI.lnrpc.OutPointR\boutpoint\DC2\GS\n\+ \\n\+ \amount_sat\CAN\EOT \SOH(\EOTR\tamountSat\DC2\GS\n\+ \\n\+ \sweep_txid\CAN\ENQ \SOH(\tR\tsweepTxid"+ packedFileDescriptor _ = packedFileDescriptor+ fieldsByTag+ = let+ resolutionType__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "resolution_type"+ (Data.ProtoLens.ScalarField Data.ProtoLens.EnumField ::+ Data.ProtoLens.FieldTypeDescriptor ResolutionType)+ (Data.ProtoLens.PlainField+ Data.ProtoLens.Optional+ (Data.ProtoLens.Field.field @"resolutionType")) ::+ Data.ProtoLens.FieldDescriptor Resolution+ outcome__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "outcome"+ (Data.ProtoLens.ScalarField Data.ProtoLens.EnumField ::+ Data.ProtoLens.FieldTypeDescriptor ResolutionOutcome)+ (Data.ProtoLens.PlainField+ Data.ProtoLens.Optional (Data.ProtoLens.Field.field @"outcome")) ::+ Data.ProtoLens.FieldDescriptor Resolution+ outpoint__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "outpoint"+ (Data.ProtoLens.MessageField Data.ProtoLens.MessageType ::+ Data.ProtoLens.FieldTypeDescriptor OutPoint)+ (Data.ProtoLens.OptionalField+ (Data.ProtoLens.Field.field @"maybe'outpoint")) ::+ Data.ProtoLens.FieldDescriptor Resolution+ amountSat__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "amount_sat"+ (Data.ProtoLens.ScalarField Data.ProtoLens.UInt64Field ::+ Data.ProtoLens.FieldTypeDescriptor Data.Word.Word64)+ (Data.ProtoLens.PlainField+ Data.ProtoLens.Optional+ (Data.ProtoLens.Field.field @"amountSat")) ::+ Data.ProtoLens.FieldDescriptor Resolution+ sweepTxid__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "sweep_txid"+ (Data.ProtoLens.ScalarField Data.ProtoLens.StringField ::+ Data.ProtoLens.FieldTypeDescriptor Data.Text.Text)+ (Data.ProtoLens.PlainField+ Data.ProtoLens.Optional+ (Data.ProtoLens.Field.field @"sweepTxid")) ::+ Data.ProtoLens.FieldDescriptor Resolution+ in+ Data.Map.fromList+ [(Data.ProtoLens.Tag 1, resolutionType__field_descriptor),+ (Data.ProtoLens.Tag 2, outcome__field_descriptor),+ (Data.ProtoLens.Tag 3, outpoint__field_descriptor),+ (Data.ProtoLens.Tag 4, amountSat__field_descriptor),+ (Data.ProtoLens.Tag 5, sweepTxid__field_descriptor)]+ unknownFields+ = Lens.Family2.Unchecked.lens+ _Resolution'_unknownFields+ (\ x__ y__ -> x__ {_Resolution'_unknownFields = y__})+ defMessage+ = Resolution'_constructor+ {_Resolution'resolutionType = Data.ProtoLens.fieldDefault,+ _Resolution'outcome = Data.ProtoLens.fieldDefault,+ _Resolution'outpoint = Prelude.Nothing,+ _Resolution'amountSat = Data.ProtoLens.fieldDefault,+ _Resolution'sweepTxid = Data.ProtoLens.fieldDefault,+ _Resolution'_unknownFields = []}+ parseMessage+ = let+ loop ::+ Resolution -> Data.ProtoLens.Encoding.Bytes.Parser Resolution+ loop x+ = do end <- Data.ProtoLens.Encoding.Bytes.atEnd+ if end then+ do (let missing = []+ in+ if Prelude.null missing then+ Prelude.return ()+ else+ Prelude.fail+ ((Prelude.++)+ "Missing required fields: "+ (Prelude.show (missing :: [Prelude.String]))))+ Prelude.return+ (Lens.Family2.over+ Data.ProtoLens.unknownFields (\ !t -> Prelude.reverse t) x)+ else+ do tag <- Data.ProtoLens.Encoding.Bytes.getVarInt+ case tag of+ 8 -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (Prelude.fmap+ Prelude.toEnum+ (Prelude.fmap+ Prelude.fromIntegral+ Data.ProtoLens.Encoding.Bytes.getVarInt))+ "resolution_type"+ loop+ (Lens.Family2.set+ (Data.ProtoLens.Field.field @"resolutionType") y x)+ 16+ -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (Prelude.fmap+ Prelude.toEnum+ (Prelude.fmap+ Prelude.fromIntegral+ Data.ProtoLens.Encoding.Bytes.getVarInt))+ "outcome"+ loop (Lens.Family2.set (Data.ProtoLens.Field.field @"outcome") y x)+ 26+ -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (do len <- Data.ProtoLens.Encoding.Bytes.getVarInt+ Data.ProtoLens.Encoding.Bytes.isolate+ (Prelude.fromIntegral len) Data.ProtoLens.parseMessage)+ "outpoint"+ loop+ (Lens.Family2.set (Data.ProtoLens.Field.field @"outpoint") y x)+ 32+ -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ Data.ProtoLens.Encoding.Bytes.getVarInt "amount_sat"+ loop+ (Lens.Family2.set (Data.ProtoLens.Field.field @"amountSat") y x)+ 42+ -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (do value <- do len <- Data.ProtoLens.Encoding.Bytes.getVarInt+ Data.ProtoLens.Encoding.Bytes.getBytes+ (Prelude.fromIntegral len)+ Data.ProtoLens.Encoding.Bytes.runEither+ (case Data.Text.Encoding.decodeUtf8' value of+ (Prelude.Left err)+ -> Prelude.Left (Prelude.show err)+ (Prelude.Right r) -> Prelude.Right r))+ "sweep_txid"+ loop+ (Lens.Family2.set (Data.ProtoLens.Field.field @"sweepTxid") y x)+ wire+ -> do !y <- Data.ProtoLens.Encoding.Wire.parseTaggedValueFromWire+ wire+ loop+ (Lens.Family2.over+ Data.ProtoLens.unknownFields (\ !t -> (:) y t) x)+ in+ (Data.ProtoLens.Encoding.Bytes.<?>)+ (do loop Data.ProtoLens.defMessage) "Resolution"+ buildMessage+ = \ _x+ -> (Data.Monoid.<>)+ (let+ _v+ = Lens.Family2.view+ (Data.ProtoLens.Field.field @"resolutionType") _x+ in+ if (Prelude.==) _v Data.ProtoLens.fieldDefault then+ Data.Monoid.mempty+ else+ (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 8)+ ((Prelude..)+ ((Prelude..)+ Data.ProtoLens.Encoding.Bytes.putVarInt Prelude.fromIntegral)+ Prelude.fromEnum _v))+ ((Data.Monoid.<>)+ (let+ _v = Lens.Family2.view (Data.ProtoLens.Field.field @"outcome") _x+ in+ if (Prelude.==) _v Data.ProtoLens.fieldDefault then+ Data.Monoid.mempty+ else+ (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 16)+ ((Prelude..)+ ((Prelude..)+ Data.ProtoLens.Encoding.Bytes.putVarInt Prelude.fromIntegral)+ Prelude.fromEnum _v))+ ((Data.Monoid.<>)+ (case+ Lens.Family2.view (Data.ProtoLens.Field.field @"maybe'outpoint") _x+ of+ Prelude.Nothing -> Data.Monoid.mempty+ (Prelude.Just _v)+ -> (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 26)+ ((Prelude..)+ (\ bs+ -> (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt+ (Prelude.fromIntegral (Data.ByteString.length bs)))+ (Data.ProtoLens.Encoding.Bytes.putBytes bs))+ Data.ProtoLens.encodeMessage _v))+ ((Data.Monoid.<>)+ (let+ _v = Lens.Family2.view (Data.ProtoLens.Field.field @"amountSat") _x+ in+ if (Prelude.==) _v Data.ProtoLens.fieldDefault then+ Data.Monoid.mempty+ else+ (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 32)+ (Data.ProtoLens.Encoding.Bytes.putVarInt _v))+ ((Data.Monoid.<>)+ (let+ _v = Lens.Family2.view (Data.ProtoLens.Field.field @"sweepTxid") _x+ in+ if (Prelude.==) _v Data.ProtoLens.fieldDefault then+ Data.Monoid.mempty+ else+ (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 42)+ ((Prelude..)+ (\ bs+ -> (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt+ (Prelude.fromIntegral (Data.ByteString.length bs)))+ (Data.ProtoLens.Encoding.Bytes.putBytes bs))+ Data.Text.Encoding.encodeUtf8 _v))+ (Data.ProtoLens.Encoding.Wire.buildFieldSet+ (Lens.Family2.view Data.ProtoLens.unknownFields _x))))))+instance Control.DeepSeq.NFData Resolution where+ rnf+ = \ x__+ -> Control.DeepSeq.deepseq+ (_Resolution'_unknownFields x__)+ (Control.DeepSeq.deepseq+ (_Resolution'resolutionType x__)+ (Control.DeepSeq.deepseq+ (_Resolution'outcome x__)+ (Control.DeepSeq.deepseq+ (_Resolution'outpoint x__)+ (Control.DeepSeq.deepseq+ (_Resolution'amountSat x__)+ (Control.DeepSeq.deepseq (_Resolution'sweepTxid x__) ())))))+newtype ResolutionOutcome'UnrecognizedValue+ = ResolutionOutcome'UnrecognizedValue Data.Int.Int32+ deriving stock (Prelude.Eq,+ Prelude.Ord,+ Prelude.Show,+ GHC.Generics.Generic)+instance Text.PrettyPrint.GenericPretty.Out ResolutionOutcome'UnrecognizedValue+data ResolutionOutcome+ = OUTCOME_UNKNOWN |+ CLAIMED |+ UNCLAIMED |+ ABANDONED |+ FIRST_STAGE |+ TIMEOUT |+ ResolutionOutcome'Unrecognized !ResolutionOutcome'UnrecognizedValue+ deriving stock (Prelude.Show,+ Prelude.Eq,+ Prelude.Ord,+ GHC.Generics.Generic)+instance Data.ProtoLens.MessageEnum ResolutionOutcome where+ maybeToEnum 0 = Prelude.Just OUTCOME_UNKNOWN+ maybeToEnum 1 = Prelude.Just CLAIMED+ maybeToEnum 2 = Prelude.Just UNCLAIMED+ maybeToEnum 3 = Prelude.Just ABANDONED+ maybeToEnum 4 = Prelude.Just FIRST_STAGE+ maybeToEnum 5 = Prelude.Just TIMEOUT+ maybeToEnum k+ = Prelude.Just+ (ResolutionOutcome'Unrecognized+ (ResolutionOutcome'UnrecognizedValue (Prelude.fromIntegral k)))+ showEnum OUTCOME_UNKNOWN = "OUTCOME_UNKNOWN"+ showEnum CLAIMED = "CLAIMED"+ showEnum UNCLAIMED = "UNCLAIMED"+ showEnum ABANDONED = "ABANDONED"+ showEnum FIRST_STAGE = "FIRST_STAGE"+ showEnum TIMEOUT = "TIMEOUT"+ showEnum+ (ResolutionOutcome'Unrecognized (ResolutionOutcome'UnrecognizedValue k))+ = Prelude.show k+ readEnum k+ | (Prelude.==) k "OUTCOME_UNKNOWN" = Prelude.Just OUTCOME_UNKNOWN+ | (Prelude.==) k "CLAIMED" = Prelude.Just CLAIMED+ | (Prelude.==) k "UNCLAIMED" = Prelude.Just UNCLAIMED+ | (Prelude.==) k "ABANDONED" = Prelude.Just ABANDONED+ | (Prelude.==) k "FIRST_STAGE" = Prelude.Just FIRST_STAGE+ | (Prelude.==) k "TIMEOUT" = Prelude.Just TIMEOUT+ | Prelude.otherwise+ = (Prelude.>>=) (Text.Read.readMaybe k) Data.ProtoLens.maybeToEnum+instance Prelude.Bounded ResolutionOutcome where+ minBound = OUTCOME_UNKNOWN+ maxBound = TIMEOUT+instance Prelude.Enum ResolutionOutcome where+ toEnum k__+ = Prelude.maybe+ (Prelude.error+ ((Prelude.++)+ "toEnum: unknown value for enum ResolutionOutcome: "+ (Prelude.show k__)))+ Prelude.id (Data.ProtoLens.maybeToEnum k__)+ fromEnum OUTCOME_UNKNOWN = 0+ fromEnum CLAIMED = 1+ fromEnum UNCLAIMED = 2+ fromEnum ABANDONED = 3+ fromEnum FIRST_STAGE = 4+ fromEnum TIMEOUT = 5+ fromEnum+ (ResolutionOutcome'Unrecognized (ResolutionOutcome'UnrecognizedValue k))+ = Prelude.fromIntegral k+ succ TIMEOUT+ = Prelude.error+ "ResolutionOutcome.succ: bad argument TIMEOUT. This value would be out of bounds."+ succ OUTCOME_UNKNOWN = CLAIMED+ succ CLAIMED = UNCLAIMED+ succ UNCLAIMED = ABANDONED+ succ ABANDONED = FIRST_STAGE+ succ FIRST_STAGE = TIMEOUT+ succ (ResolutionOutcome'Unrecognized _)+ = Prelude.error+ "ResolutionOutcome.succ: bad argument: unrecognized value"+ pred OUTCOME_UNKNOWN+ = Prelude.error+ "ResolutionOutcome.pred: bad argument OUTCOME_UNKNOWN. This value would be out of bounds."+ pred CLAIMED = OUTCOME_UNKNOWN+ pred UNCLAIMED = CLAIMED+ pred ABANDONED = UNCLAIMED+ pred FIRST_STAGE = ABANDONED+ pred TIMEOUT = FIRST_STAGE+ pred (ResolutionOutcome'Unrecognized _)+ = Prelude.error+ "ResolutionOutcome.pred: bad argument: unrecognized value"+ enumFrom = Data.ProtoLens.Message.Enum.messageEnumFrom+ enumFromTo = Data.ProtoLens.Message.Enum.messageEnumFromTo+ enumFromThen = Data.ProtoLens.Message.Enum.messageEnumFromThen+ enumFromThenTo = Data.ProtoLens.Message.Enum.messageEnumFromThenTo+instance Data.ProtoLens.FieldDefault ResolutionOutcome where+ fieldDefault = OUTCOME_UNKNOWN+instance Control.DeepSeq.NFData ResolutionOutcome where+ rnf x__ = Prelude.seq x__ ()+instance Text.PrettyPrint.GenericPretty.Out ResolutionOutcome+newtype ResolutionType'UnrecognizedValue+ = ResolutionType'UnrecognizedValue Data.Int.Int32+ deriving stock (Prelude.Eq,+ Prelude.Ord,+ Prelude.Show,+ GHC.Generics.Generic)+instance Text.PrettyPrint.GenericPretty.Out ResolutionType'UnrecognizedValue+data ResolutionType+ = TYPE_UNKNOWN |+ ANCHOR |+ INCOMING_HTLC |+ OUTGOING_HTLC |+ COMMIT |+ ResolutionType'Unrecognized !ResolutionType'UnrecognizedValue+ deriving stock (Prelude.Show,+ Prelude.Eq,+ Prelude.Ord,+ GHC.Generics.Generic)+instance Data.ProtoLens.MessageEnum ResolutionType where+ maybeToEnum 0 = Prelude.Just TYPE_UNKNOWN+ maybeToEnum 1 = Prelude.Just ANCHOR+ maybeToEnum 2 = Prelude.Just INCOMING_HTLC+ maybeToEnum 3 = Prelude.Just OUTGOING_HTLC+ maybeToEnum 4 = Prelude.Just COMMIT+ maybeToEnum k+ = Prelude.Just+ (ResolutionType'Unrecognized+ (ResolutionType'UnrecognizedValue (Prelude.fromIntegral k)))+ showEnum TYPE_UNKNOWN = "TYPE_UNKNOWN"+ showEnum ANCHOR = "ANCHOR"+ showEnum INCOMING_HTLC = "INCOMING_HTLC"+ showEnum OUTGOING_HTLC = "OUTGOING_HTLC"+ showEnum COMMIT = "COMMIT"+ showEnum+ (ResolutionType'Unrecognized (ResolutionType'UnrecognizedValue k))+ = Prelude.show k+ readEnum k+ | (Prelude.==) k "TYPE_UNKNOWN" = Prelude.Just TYPE_UNKNOWN+ | (Prelude.==) k "ANCHOR" = Prelude.Just ANCHOR+ | (Prelude.==) k "INCOMING_HTLC" = Prelude.Just INCOMING_HTLC+ | (Prelude.==) k "OUTGOING_HTLC" = Prelude.Just OUTGOING_HTLC+ | (Prelude.==) k "COMMIT" = Prelude.Just COMMIT+ | Prelude.otherwise+ = (Prelude.>>=) (Text.Read.readMaybe k) Data.ProtoLens.maybeToEnum+instance Prelude.Bounded ResolutionType where+ minBound = TYPE_UNKNOWN+ maxBound = COMMIT+instance Prelude.Enum ResolutionType where+ toEnum k__+ = Prelude.maybe+ (Prelude.error+ ((Prelude.++)+ "toEnum: unknown value for enum ResolutionType: "+ (Prelude.show k__)))+ Prelude.id (Data.ProtoLens.maybeToEnum k__)+ fromEnum TYPE_UNKNOWN = 0+ fromEnum ANCHOR = 1+ fromEnum INCOMING_HTLC = 2+ fromEnum OUTGOING_HTLC = 3+ fromEnum COMMIT = 4+ fromEnum+ (ResolutionType'Unrecognized (ResolutionType'UnrecognizedValue k))+ = Prelude.fromIntegral k+ succ COMMIT+ = Prelude.error+ "ResolutionType.succ: bad argument COMMIT. This value would be out of bounds."+ succ TYPE_UNKNOWN = ANCHOR+ succ ANCHOR = INCOMING_HTLC+ succ INCOMING_HTLC = OUTGOING_HTLC+ succ OUTGOING_HTLC = COMMIT+ succ (ResolutionType'Unrecognized _)+ = Prelude.error+ "ResolutionType.succ: bad argument: unrecognized value"+ pred TYPE_UNKNOWN+ = Prelude.error+ "ResolutionType.pred: bad argument TYPE_UNKNOWN. This value would be out of bounds."+ pred ANCHOR = TYPE_UNKNOWN+ pred INCOMING_HTLC = ANCHOR+ pred OUTGOING_HTLC = INCOMING_HTLC+ pred COMMIT = OUTGOING_HTLC+ pred (ResolutionType'Unrecognized _)+ = Prelude.error+ "ResolutionType.pred: bad argument: unrecognized value"+ enumFrom = Data.ProtoLens.Message.Enum.messageEnumFrom+ enumFromTo = Data.ProtoLens.Message.Enum.messageEnumFromTo+ enumFromThen = Data.ProtoLens.Message.Enum.messageEnumFromThen+ enumFromThenTo = Data.ProtoLens.Message.Enum.messageEnumFromThenTo+instance Data.ProtoLens.FieldDefault ResolutionType where+ fieldDefault = TYPE_UNKNOWN+instance Control.DeepSeq.NFData ResolutionType where+ rnf x__ = Prelude.seq x__ ()+instance Text.PrettyPrint.GenericPretty.Out ResolutionType+{- | Fields :+ + * 'Proto.Lnrpc.Ln0_Fields.totalTimeLock' @:: Lens' Route Data.Word.Word32@+ * 'Proto.Lnrpc.Ln0_Fields.totalFees' @:: Lens' Route Data.Int.Int64@+ * 'Proto.Lnrpc.Ln0_Fields.totalAmt' @:: Lens' Route Data.Int.Int64@+ * 'Proto.Lnrpc.Ln0_Fields.hops' @:: Lens' Route [Hop]@+ * 'Proto.Lnrpc.Ln0_Fields.vec'hops' @:: Lens' Route (Data.Vector.Vector Hop)@+ * 'Proto.Lnrpc.Ln0_Fields.totalFeesMsat' @:: Lens' Route Data.Int.Int64@+ * 'Proto.Lnrpc.Ln0_Fields.totalAmtMsat' @:: Lens' Route Data.Int.Int64@ -}+data Route+ = Route'_constructor {_Route'totalTimeLock :: !Data.Word.Word32,+ _Route'totalFees :: !Data.Int.Int64,+ _Route'totalAmt :: !Data.Int.Int64,+ _Route'hops :: !(Data.Vector.Vector Hop),+ _Route'totalFeesMsat :: !Data.Int.Int64,+ _Route'totalAmtMsat :: !Data.Int.Int64,+ _Route'_unknownFields :: !Data.ProtoLens.FieldSet}+ deriving stock (Prelude.Eq, Prelude.Ord, GHC.Generics.Generic)+instance Prelude.Show Route where+ showsPrec _ __x __s+ = Prelude.showChar+ '{'+ (Prelude.showString+ (Data.ProtoLens.showMessageShort __x) (Prelude.showChar '}' __s))+instance Text.PrettyPrint.GenericPretty.Out Route+instance Data.ProtoLens.Field.HasField Route "totalTimeLock" Data.Word.Word32 where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _Route'totalTimeLock+ (\ x__ y__ -> x__ {_Route'totalTimeLock = y__}))+ Prelude.id+instance Data.ProtoLens.Field.HasField Route "totalFees" Data.Int.Int64 where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _Route'totalFees (\ x__ y__ -> x__ {_Route'totalFees = y__}))+ Prelude.id+instance Data.ProtoLens.Field.HasField Route "totalAmt" Data.Int.Int64 where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _Route'totalAmt (\ x__ y__ -> x__ {_Route'totalAmt = y__}))+ Prelude.id+instance Data.ProtoLens.Field.HasField Route "hops" [Hop] where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _Route'hops (\ x__ y__ -> x__ {_Route'hops = y__}))+ (Lens.Family2.Unchecked.lens+ Data.Vector.Generic.toList+ (\ _ y__ -> Data.Vector.Generic.fromList y__))+instance Data.ProtoLens.Field.HasField Route "vec'hops" (Data.Vector.Vector Hop) where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _Route'hops (\ x__ y__ -> x__ {_Route'hops = y__}))+ Prelude.id+instance Data.ProtoLens.Field.HasField Route "totalFeesMsat" Data.Int.Int64 where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _Route'totalFeesMsat+ (\ x__ y__ -> x__ {_Route'totalFeesMsat = y__}))+ Prelude.id+instance Data.ProtoLens.Field.HasField Route "totalAmtMsat" Data.Int.Int64 where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _Route'totalAmtMsat (\ x__ y__ -> x__ {_Route'totalAmtMsat = y__}))+ Prelude.id+instance Data.ProtoLens.Message Route where+ messageName _ = Data.Text.pack "lnrpc.Route"+ packedMessageDescriptor _+ = "\n\+ \\ENQRoute\DC2&\n\+ \\SItotal_time_lock\CAN\SOH \SOH(\rR\rtotalTimeLock\DC2!\n\+ \\n\+ \total_fees\CAN\STX \SOH(\ETXR\ttotalFeesB\STX\CAN\SOH\DC2\US\n\+ \\ttotal_amt\CAN\ETX \SOH(\ETXR\btotalAmtB\STX\CAN\SOH\DC2\RS\n\+ \\EOThops\CAN\EOT \ETX(\v2\n\+ \.lnrpc.HopR\EOThops\DC2&\n\+ \\SItotal_fees_msat\CAN\ENQ \SOH(\ETXR\rtotalFeesMsat\DC2$\n\+ \\SOtotal_amt_msat\CAN\ACK \SOH(\ETXR\ftotalAmtMsat"+ packedFileDescriptor _ = packedFileDescriptor+ fieldsByTag+ = let+ totalTimeLock__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "total_time_lock"+ (Data.ProtoLens.ScalarField Data.ProtoLens.UInt32Field ::+ Data.ProtoLens.FieldTypeDescriptor Data.Word.Word32)+ (Data.ProtoLens.PlainField+ Data.ProtoLens.Optional+ (Data.ProtoLens.Field.field @"totalTimeLock")) ::+ Data.ProtoLens.FieldDescriptor Route+ totalFees__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "total_fees"+ (Data.ProtoLens.ScalarField Data.ProtoLens.Int64Field ::+ Data.ProtoLens.FieldTypeDescriptor Data.Int.Int64)+ (Data.ProtoLens.PlainField+ Data.ProtoLens.Optional+ (Data.ProtoLens.Field.field @"totalFees")) ::+ Data.ProtoLens.FieldDescriptor Route+ totalAmt__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "total_amt"+ (Data.ProtoLens.ScalarField Data.ProtoLens.Int64Field ::+ Data.ProtoLens.FieldTypeDescriptor Data.Int.Int64)+ (Data.ProtoLens.PlainField+ Data.ProtoLens.Optional+ (Data.ProtoLens.Field.field @"totalAmt")) ::+ Data.ProtoLens.FieldDescriptor Route+ hops__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "hops"+ (Data.ProtoLens.MessageField Data.ProtoLens.MessageType ::+ Data.ProtoLens.FieldTypeDescriptor Hop)+ (Data.ProtoLens.RepeatedField+ Data.ProtoLens.Unpacked (Data.ProtoLens.Field.field @"hops")) ::+ Data.ProtoLens.FieldDescriptor Route+ totalFeesMsat__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "total_fees_msat"+ (Data.ProtoLens.ScalarField Data.ProtoLens.Int64Field ::+ Data.ProtoLens.FieldTypeDescriptor Data.Int.Int64)+ (Data.ProtoLens.PlainField+ Data.ProtoLens.Optional+ (Data.ProtoLens.Field.field @"totalFeesMsat")) ::+ Data.ProtoLens.FieldDescriptor Route+ totalAmtMsat__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "total_amt_msat"+ (Data.ProtoLens.ScalarField Data.ProtoLens.Int64Field ::+ Data.ProtoLens.FieldTypeDescriptor Data.Int.Int64)+ (Data.ProtoLens.PlainField+ Data.ProtoLens.Optional+ (Data.ProtoLens.Field.field @"totalAmtMsat")) ::+ Data.ProtoLens.FieldDescriptor Route+ in+ Data.Map.fromList+ [(Data.ProtoLens.Tag 1, totalTimeLock__field_descriptor),+ (Data.ProtoLens.Tag 2, totalFees__field_descriptor),+ (Data.ProtoLens.Tag 3, totalAmt__field_descriptor),+ (Data.ProtoLens.Tag 4, hops__field_descriptor),+ (Data.ProtoLens.Tag 5, totalFeesMsat__field_descriptor),+ (Data.ProtoLens.Tag 6, totalAmtMsat__field_descriptor)]+ unknownFields+ = Lens.Family2.Unchecked.lens+ _Route'_unknownFields+ (\ x__ y__ -> x__ {_Route'_unknownFields = y__})+ defMessage+ = Route'_constructor+ {_Route'totalTimeLock = Data.ProtoLens.fieldDefault,+ _Route'totalFees = Data.ProtoLens.fieldDefault,+ _Route'totalAmt = Data.ProtoLens.fieldDefault,+ _Route'hops = Data.Vector.Generic.empty,+ _Route'totalFeesMsat = Data.ProtoLens.fieldDefault,+ _Route'totalAmtMsat = Data.ProtoLens.fieldDefault,+ _Route'_unknownFields = []}+ parseMessage+ = let+ loop ::+ Route+ -> Data.ProtoLens.Encoding.Growing.Growing Data.Vector.Vector Data.ProtoLens.Encoding.Growing.RealWorld Hop+ -> Data.ProtoLens.Encoding.Bytes.Parser Route+ loop x mutable'hops+ = do end <- Data.ProtoLens.Encoding.Bytes.atEnd+ if end then+ do frozen'hops <- Data.ProtoLens.Encoding.Parser.Unsafe.unsafeLiftIO+ (Data.ProtoLens.Encoding.Growing.unsafeFreeze mutable'hops)+ (let missing = []+ in+ if Prelude.null missing then+ Prelude.return ()+ else+ Prelude.fail+ ((Prelude.++)+ "Missing required fields: "+ (Prelude.show (missing :: [Prelude.String]))))+ Prelude.return+ (Lens.Family2.over+ Data.ProtoLens.unknownFields (\ !t -> Prelude.reverse t)+ (Lens.Family2.set+ (Data.ProtoLens.Field.field @"vec'hops") frozen'hops x))+ else+ do tag <- Data.ProtoLens.Encoding.Bytes.getVarInt+ case tag of+ 8 -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (Prelude.fmap+ Prelude.fromIntegral+ Data.ProtoLens.Encoding.Bytes.getVarInt)+ "total_time_lock"+ loop+ (Lens.Family2.set+ (Data.ProtoLens.Field.field @"totalTimeLock") y x)+ mutable'hops+ 16+ -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (Prelude.fmap+ Prelude.fromIntegral+ Data.ProtoLens.Encoding.Bytes.getVarInt)+ "total_fees"+ loop+ (Lens.Family2.set (Data.ProtoLens.Field.field @"totalFees") y x)+ mutable'hops+ 24+ -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (Prelude.fmap+ Prelude.fromIntegral+ Data.ProtoLens.Encoding.Bytes.getVarInt)+ "total_amt"+ loop+ (Lens.Family2.set (Data.ProtoLens.Field.field @"totalAmt") y x)+ mutable'hops+ 34+ -> do !y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (do len <- Data.ProtoLens.Encoding.Bytes.getVarInt+ Data.ProtoLens.Encoding.Bytes.isolate+ (Prelude.fromIntegral len)+ Data.ProtoLens.parseMessage)+ "hops"+ v <- Data.ProtoLens.Encoding.Parser.Unsafe.unsafeLiftIO+ (Data.ProtoLens.Encoding.Growing.append mutable'hops y)+ loop x v+ 40+ -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (Prelude.fmap+ Prelude.fromIntegral+ Data.ProtoLens.Encoding.Bytes.getVarInt)+ "total_fees_msat"+ loop+ (Lens.Family2.set+ (Data.ProtoLens.Field.field @"totalFeesMsat") y x)+ mutable'hops+ 48+ -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (Prelude.fmap+ Prelude.fromIntegral+ Data.ProtoLens.Encoding.Bytes.getVarInt)+ "total_amt_msat"+ loop+ (Lens.Family2.set+ (Data.ProtoLens.Field.field @"totalAmtMsat") y x)+ mutable'hops+ wire+ -> do !y <- Data.ProtoLens.Encoding.Wire.parseTaggedValueFromWire+ wire+ loop+ (Lens.Family2.over+ Data.ProtoLens.unknownFields (\ !t -> (:) y t) x)+ mutable'hops+ in+ (Data.ProtoLens.Encoding.Bytes.<?>)+ (do mutable'hops <- Data.ProtoLens.Encoding.Parser.Unsafe.unsafeLiftIO+ Data.ProtoLens.Encoding.Growing.new+ loop Data.ProtoLens.defMessage mutable'hops)+ "Route"+ buildMessage+ = \ _x+ -> (Data.Monoid.<>)+ (let+ _v+ = Lens.Family2.view+ (Data.ProtoLens.Field.field @"totalTimeLock") _x+ in+ if (Prelude.==) _v Data.ProtoLens.fieldDefault then+ Data.Monoid.mempty+ else+ (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 8)+ ((Prelude..)+ Data.ProtoLens.Encoding.Bytes.putVarInt Prelude.fromIntegral _v))+ ((Data.Monoid.<>)+ (let+ _v = Lens.Family2.view (Data.ProtoLens.Field.field @"totalFees") _x+ in+ if (Prelude.==) _v Data.ProtoLens.fieldDefault then+ Data.Monoid.mempty+ else+ (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 16)+ ((Prelude..)+ Data.ProtoLens.Encoding.Bytes.putVarInt Prelude.fromIntegral _v))+ ((Data.Monoid.<>)+ (let+ _v = Lens.Family2.view (Data.ProtoLens.Field.field @"totalAmt") _x+ in+ if (Prelude.==) _v Data.ProtoLens.fieldDefault then+ Data.Monoid.mempty+ else+ (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 24)+ ((Prelude..)+ Data.ProtoLens.Encoding.Bytes.putVarInt Prelude.fromIntegral _v))+ ((Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.foldMapBuilder+ (\ _v+ -> (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 34)+ ((Prelude..)+ (\ bs+ -> (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt+ (Prelude.fromIntegral (Data.ByteString.length bs)))+ (Data.ProtoLens.Encoding.Bytes.putBytes bs))+ Data.ProtoLens.encodeMessage _v))+ (Lens.Family2.view (Data.ProtoLens.Field.field @"vec'hops") _x))+ ((Data.Monoid.<>)+ (let+ _v+ = Lens.Family2.view+ (Data.ProtoLens.Field.field @"totalFeesMsat") _x+ in+ if (Prelude.==) _v Data.ProtoLens.fieldDefault then+ Data.Monoid.mempty+ else+ (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 40)+ ((Prelude..)+ Data.ProtoLens.Encoding.Bytes.putVarInt Prelude.fromIntegral+ _v))+ ((Data.Monoid.<>)+ (let+ _v+ = Lens.Family2.view (Data.ProtoLens.Field.field @"totalAmtMsat") _x+ in+ if (Prelude.==) _v Data.ProtoLens.fieldDefault then+ Data.Monoid.mempty+ else+ (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 48)+ ((Prelude..)+ Data.ProtoLens.Encoding.Bytes.putVarInt Prelude.fromIntegral+ _v))+ (Data.ProtoLens.Encoding.Wire.buildFieldSet+ (Lens.Family2.view Data.ProtoLens.unknownFields _x)))))))+instance Control.DeepSeq.NFData Route where+ rnf+ = \ x__+ -> Control.DeepSeq.deepseq+ (_Route'_unknownFields x__)+ (Control.DeepSeq.deepseq+ (_Route'totalTimeLock x__)+ (Control.DeepSeq.deepseq+ (_Route'totalFees x__)+ (Control.DeepSeq.deepseq+ (_Route'totalAmt x__)+ (Control.DeepSeq.deepseq+ (_Route'hops x__)+ (Control.DeepSeq.deepseq+ (_Route'totalFeesMsat x__)+ (Control.DeepSeq.deepseq (_Route'totalAmtMsat x__) ()))))))+{- | Fields :+ + * 'Proto.Lnrpc.Ln0_Fields.hopHints' @:: Lens' RouteHint [HopHint]@+ * 'Proto.Lnrpc.Ln0_Fields.vec'hopHints' @:: Lens' RouteHint (Data.Vector.Vector HopHint)@ -}+data RouteHint+ = RouteHint'_constructor {_RouteHint'hopHints :: !(Data.Vector.Vector HopHint),+ _RouteHint'_unknownFields :: !Data.ProtoLens.FieldSet}+ deriving stock (Prelude.Eq, Prelude.Ord, GHC.Generics.Generic)+instance Prelude.Show RouteHint where+ showsPrec _ __x __s+ = Prelude.showChar+ '{'+ (Prelude.showString+ (Data.ProtoLens.showMessageShort __x) (Prelude.showChar '}' __s))+instance Text.PrettyPrint.GenericPretty.Out RouteHint+instance Data.ProtoLens.Field.HasField RouteHint "hopHints" [HopHint] where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _RouteHint'hopHints (\ x__ y__ -> x__ {_RouteHint'hopHints = y__}))+ (Lens.Family2.Unchecked.lens+ Data.Vector.Generic.toList+ (\ _ y__ -> Data.Vector.Generic.fromList y__))+instance Data.ProtoLens.Field.HasField RouteHint "vec'hopHints" (Data.Vector.Vector HopHint) where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _RouteHint'hopHints (\ x__ y__ -> x__ {_RouteHint'hopHints = y__}))+ Prelude.id+instance Data.ProtoLens.Message RouteHint where+ messageName _ = Data.Text.pack "lnrpc.RouteHint"+ packedMessageDescriptor _+ = "\n\+ \\tRouteHint\DC2+\n\+ \\thop_hints\CAN\SOH \ETX(\v2\SO.lnrpc.HopHintR\bhopHints"+ packedFileDescriptor _ = packedFileDescriptor+ fieldsByTag+ = let+ hopHints__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "hop_hints"+ (Data.ProtoLens.MessageField Data.ProtoLens.MessageType ::+ Data.ProtoLens.FieldTypeDescriptor HopHint)+ (Data.ProtoLens.RepeatedField+ Data.ProtoLens.Unpacked+ (Data.ProtoLens.Field.field @"hopHints")) ::+ Data.ProtoLens.FieldDescriptor RouteHint+ in+ Data.Map.fromList+ [(Data.ProtoLens.Tag 1, hopHints__field_descriptor)]+ unknownFields+ = Lens.Family2.Unchecked.lens+ _RouteHint'_unknownFields+ (\ x__ y__ -> x__ {_RouteHint'_unknownFields = y__})+ defMessage+ = RouteHint'_constructor+ {_RouteHint'hopHints = Data.Vector.Generic.empty,+ _RouteHint'_unknownFields = []}+ parseMessage+ = let+ loop ::+ RouteHint+ -> Data.ProtoLens.Encoding.Growing.Growing Data.Vector.Vector Data.ProtoLens.Encoding.Growing.RealWorld HopHint+ -> Data.ProtoLens.Encoding.Bytes.Parser RouteHint+ loop x mutable'hopHints+ = do end <- Data.ProtoLens.Encoding.Bytes.atEnd+ if end then+ do frozen'hopHints <- Data.ProtoLens.Encoding.Parser.Unsafe.unsafeLiftIO+ (Data.ProtoLens.Encoding.Growing.unsafeFreeze+ mutable'hopHints)+ (let missing = []+ in+ if Prelude.null missing then+ Prelude.return ()+ else+ Prelude.fail+ ((Prelude.++)+ "Missing required fields: "+ (Prelude.show (missing :: [Prelude.String]))))+ Prelude.return+ (Lens.Family2.over+ Data.ProtoLens.unknownFields (\ !t -> Prelude.reverse t)+ (Lens.Family2.set+ (Data.ProtoLens.Field.field @"vec'hopHints") frozen'hopHints x))+ else+ do tag <- Data.ProtoLens.Encoding.Bytes.getVarInt+ case tag of+ 10+ -> do !y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (do len <- Data.ProtoLens.Encoding.Bytes.getVarInt+ Data.ProtoLens.Encoding.Bytes.isolate+ (Prelude.fromIntegral len)+ Data.ProtoLens.parseMessage)+ "hop_hints"+ v <- Data.ProtoLens.Encoding.Parser.Unsafe.unsafeLiftIO+ (Data.ProtoLens.Encoding.Growing.append mutable'hopHints y)+ loop x v+ wire+ -> do !y <- Data.ProtoLens.Encoding.Wire.parseTaggedValueFromWire+ wire+ loop+ (Lens.Family2.over+ Data.ProtoLens.unknownFields (\ !t -> (:) y t) x)+ mutable'hopHints+ in+ (Data.ProtoLens.Encoding.Bytes.<?>)+ (do mutable'hopHints <- Data.ProtoLens.Encoding.Parser.Unsafe.unsafeLiftIO+ Data.ProtoLens.Encoding.Growing.new+ loop Data.ProtoLens.defMessage mutable'hopHints)+ "RouteHint"+ buildMessage+ = \ _x+ -> (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.foldMapBuilder+ (\ _v+ -> (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 10)+ ((Prelude..)+ (\ bs+ -> (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt+ (Prelude.fromIntegral (Data.ByteString.length bs)))+ (Data.ProtoLens.Encoding.Bytes.putBytes bs))+ Data.ProtoLens.encodeMessage _v))+ (Lens.Family2.view+ (Data.ProtoLens.Field.field @"vec'hopHints") _x))+ (Data.ProtoLens.Encoding.Wire.buildFieldSet+ (Lens.Family2.view Data.ProtoLens.unknownFields _x))+instance Control.DeepSeq.NFData RouteHint where+ rnf+ = \ x__+ -> Control.DeepSeq.deepseq+ (_RouteHint'_unknownFields x__)+ (Control.DeepSeq.deepseq (_RouteHint'hopHints x__) ())+{- | Fields :+ + * 'Proto.Lnrpc.Ln0_Fields.timeLockDelta' @:: Lens' RoutingPolicy Data.Word.Word32@+ * 'Proto.Lnrpc.Ln0_Fields.minHtlc' @:: Lens' RoutingPolicy Data.Int.Int64@+ * 'Proto.Lnrpc.Ln0_Fields.feeBaseMsat' @:: Lens' RoutingPolicy Data.Int.Int64@+ * 'Proto.Lnrpc.Ln0_Fields.feeRateMilliMsat' @:: Lens' RoutingPolicy Data.Int.Int64@+ * 'Proto.Lnrpc.Ln0_Fields.disabled' @:: Lens' RoutingPolicy Prelude.Bool@+ * 'Proto.Lnrpc.Ln0_Fields.maxHtlcMsat' @:: Lens' RoutingPolicy Data.Word.Word64@+ * 'Proto.Lnrpc.Ln0_Fields.lastUpdate' @:: Lens' RoutingPolicy Data.Word.Word32@ -}+data RoutingPolicy+ = RoutingPolicy'_constructor {_RoutingPolicy'timeLockDelta :: !Data.Word.Word32,+ _RoutingPolicy'minHtlc :: !Data.Int.Int64,+ _RoutingPolicy'feeBaseMsat :: !Data.Int.Int64,+ _RoutingPolicy'feeRateMilliMsat :: !Data.Int.Int64,+ _RoutingPolicy'disabled :: !Prelude.Bool,+ _RoutingPolicy'maxHtlcMsat :: !Data.Word.Word64,+ _RoutingPolicy'lastUpdate :: !Data.Word.Word32,+ _RoutingPolicy'_unknownFields :: !Data.ProtoLens.FieldSet}+ deriving stock (Prelude.Eq, Prelude.Ord, GHC.Generics.Generic)+instance Prelude.Show RoutingPolicy where+ showsPrec _ __x __s+ = Prelude.showChar+ '{'+ (Prelude.showString+ (Data.ProtoLens.showMessageShort __x) (Prelude.showChar '}' __s))+instance Text.PrettyPrint.GenericPretty.Out RoutingPolicy+instance Data.ProtoLens.Field.HasField RoutingPolicy "timeLockDelta" Data.Word.Word32 where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _RoutingPolicy'timeLockDelta+ (\ x__ y__ -> x__ {_RoutingPolicy'timeLockDelta = y__}))+ Prelude.id+instance Data.ProtoLens.Field.HasField RoutingPolicy "minHtlc" Data.Int.Int64 where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _RoutingPolicy'minHtlc+ (\ x__ y__ -> x__ {_RoutingPolicy'minHtlc = y__}))+ Prelude.id+instance Data.ProtoLens.Field.HasField RoutingPolicy "feeBaseMsat" Data.Int.Int64 where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _RoutingPolicy'feeBaseMsat+ (\ x__ y__ -> x__ {_RoutingPolicy'feeBaseMsat = y__}))+ Prelude.id+instance Data.ProtoLens.Field.HasField RoutingPolicy "feeRateMilliMsat" Data.Int.Int64 where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _RoutingPolicy'feeRateMilliMsat+ (\ x__ y__ -> x__ {_RoutingPolicy'feeRateMilliMsat = y__}))+ Prelude.id+instance Data.ProtoLens.Field.HasField RoutingPolicy "disabled" Prelude.Bool where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _RoutingPolicy'disabled+ (\ x__ y__ -> x__ {_RoutingPolicy'disabled = y__}))+ Prelude.id+instance Data.ProtoLens.Field.HasField RoutingPolicy "maxHtlcMsat" Data.Word.Word64 where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _RoutingPolicy'maxHtlcMsat+ (\ x__ y__ -> x__ {_RoutingPolicy'maxHtlcMsat = y__}))+ Prelude.id+instance Data.ProtoLens.Field.HasField RoutingPolicy "lastUpdate" Data.Word.Word32 where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _RoutingPolicy'lastUpdate+ (\ x__ y__ -> x__ {_RoutingPolicy'lastUpdate = y__}))+ Prelude.id+instance Data.ProtoLens.Message RoutingPolicy where+ messageName _ = Data.Text.pack "lnrpc.RoutingPolicy"+ packedMessageDescriptor _+ = "\n\+ \\rRoutingPolicy\DC2&\n\+ \\SItime_lock_delta\CAN\SOH \SOH(\rR\rtimeLockDelta\DC2\EM\n\+ \\bmin_htlc\CAN\STX \SOH(\ETXR\aminHtlc\DC2\"\n\+ \\rfee_base_msat\CAN\ETX \SOH(\ETXR\vfeeBaseMsat\DC2-\n\+ \\DC3fee_rate_milli_msat\CAN\EOT \SOH(\ETXR\DLEfeeRateMilliMsat\DC2\SUB\n\+ \\bdisabled\CAN\ENQ \SOH(\bR\bdisabled\DC2\"\n\+ \\rmax_htlc_msat\CAN\ACK \SOH(\EOTR\vmaxHtlcMsat\DC2\US\n\+ \\vlast_update\CAN\a \SOH(\rR\n\+ \lastUpdate"+ packedFileDescriptor _ = packedFileDescriptor+ fieldsByTag+ = let+ timeLockDelta__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "time_lock_delta"+ (Data.ProtoLens.ScalarField Data.ProtoLens.UInt32Field ::+ Data.ProtoLens.FieldTypeDescriptor Data.Word.Word32)+ (Data.ProtoLens.PlainField+ Data.ProtoLens.Optional+ (Data.ProtoLens.Field.field @"timeLockDelta")) ::+ Data.ProtoLens.FieldDescriptor RoutingPolicy+ minHtlc__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "min_htlc"+ (Data.ProtoLens.ScalarField Data.ProtoLens.Int64Field ::+ Data.ProtoLens.FieldTypeDescriptor Data.Int.Int64)+ (Data.ProtoLens.PlainField+ Data.ProtoLens.Optional (Data.ProtoLens.Field.field @"minHtlc")) ::+ Data.ProtoLens.FieldDescriptor RoutingPolicy+ feeBaseMsat__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "fee_base_msat"+ (Data.ProtoLens.ScalarField Data.ProtoLens.Int64Field ::+ Data.ProtoLens.FieldTypeDescriptor Data.Int.Int64)+ (Data.ProtoLens.PlainField+ Data.ProtoLens.Optional+ (Data.ProtoLens.Field.field @"feeBaseMsat")) ::+ Data.ProtoLens.FieldDescriptor RoutingPolicy+ feeRateMilliMsat__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "fee_rate_milli_msat"+ (Data.ProtoLens.ScalarField Data.ProtoLens.Int64Field ::+ Data.ProtoLens.FieldTypeDescriptor Data.Int.Int64)+ (Data.ProtoLens.PlainField+ Data.ProtoLens.Optional+ (Data.ProtoLens.Field.field @"feeRateMilliMsat")) ::+ Data.ProtoLens.FieldDescriptor RoutingPolicy+ disabled__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "disabled"+ (Data.ProtoLens.ScalarField Data.ProtoLens.BoolField ::+ Data.ProtoLens.FieldTypeDescriptor Prelude.Bool)+ (Data.ProtoLens.PlainField+ Data.ProtoLens.Optional+ (Data.ProtoLens.Field.field @"disabled")) ::+ Data.ProtoLens.FieldDescriptor RoutingPolicy+ maxHtlcMsat__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "max_htlc_msat"+ (Data.ProtoLens.ScalarField Data.ProtoLens.UInt64Field ::+ Data.ProtoLens.FieldTypeDescriptor Data.Word.Word64)+ (Data.ProtoLens.PlainField+ Data.ProtoLens.Optional+ (Data.ProtoLens.Field.field @"maxHtlcMsat")) ::+ Data.ProtoLens.FieldDescriptor RoutingPolicy+ lastUpdate__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "last_update"+ (Data.ProtoLens.ScalarField Data.ProtoLens.UInt32Field ::+ Data.ProtoLens.FieldTypeDescriptor Data.Word.Word32)+ (Data.ProtoLens.PlainField+ Data.ProtoLens.Optional+ (Data.ProtoLens.Field.field @"lastUpdate")) ::+ Data.ProtoLens.FieldDescriptor RoutingPolicy+ in+ Data.Map.fromList+ [(Data.ProtoLens.Tag 1, timeLockDelta__field_descriptor),+ (Data.ProtoLens.Tag 2, minHtlc__field_descriptor),+ (Data.ProtoLens.Tag 3, feeBaseMsat__field_descriptor),+ (Data.ProtoLens.Tag 4, feeRateMilliMsat__field_descriptor),+ (Data.ProtoLens.Tag 5, disabled__field_descriptor),+ (Data.ProtoLens.Tag 6, maxHtlcMsat__field_descriptor),+ (Data.ProtoLens.Tag 7, lastUpdate__field_descriptor)]+ unknownFields+ = Lens.Family2.Unchecked.lens+ _RoutingPolicy'_unknownFields+ (\ x__ y__ -> x__ {_RoutingPolicy'_unknownFields = y__})+ defMessage+ = RoutingPolicy'_constructor+ {_RoutingPolicy'timeLockDelta = Data.ProtoLens.fieldDefault,+ _RoutingPolicy'minHtlc = Data.ProtoLens.fieldDefault,+ _RoutingPolicy'feeBaseMsat = Data.ProtoLens.fieldDefault,+ _RoutingPolicy'feeRateMilliMsat = Data.ProtoLens.fieldDefault,+ _RoutingPolicy'disabled = Data.ProtoLens.fieldDefault,+ _RoutingPolicy'maxHtlcMsat = Data.ProtoLens.fieldDefault,+ _RoutingPolicy'lastUpdate = Data.ProtoLens.fieldDefault,+ _RoutingPolicy'_unknownFields = []}+ parseMessage+ = let+ loop ::+ RoutingPolicy -> Data.ProtoLens.Encoding.Bytes.Parser RoutingPolicy+ loop x+ = do end <- Data.ProtoLens.Encoding.Bytes.atEnd+ if end then+ do (let missing = []+ in+ if Prelude.null missing then+ Prelude.return ()+ else+ Prelude.fail+ ((Prelude.++)+ "Missing required fields: "+ (Prelude.show (missing :: [Prelude.String]))))+ Prelude.return+ (Lens.Family2.over+ Data.ProtoLens.unknownFields (\ !t -> Prelude.reverse t) x)+ else+ do tag <- Data.ProtoLens.Encoding.Bytes.getVarInt+ case tag of+ 8 -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (Prelude.fmap+ Prelude.fromIntegral+ Data.ProtoLens.Encoding.Bytes.getVarInt)+ "time_lock_delta"+ loop+ (Lens.Family2.set+ (Data.ProtoLens.Field.field @"timeLockDelta") y x)+ 16+ -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (Prelude.fmap+ Prelude.fromIntegral+ Data.ProtoLens.Encoding.Bytes.getVarInt)+ "min_htlc"+ loop (Lens.Family2.set (Data.ProtoLens.Field.field @"minHtlc") y x)+ 24+ -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (Prelude.fmap+ Prelude.fromIntegral+ Data.ProtoLens.Encoding.Bytes.getVarInt)+ "fee_base_msat"+ loop+ (Lens.Family2.set (Data.ProtoLens.Field.field @"feeBaseMsat") y x)+ 32+ -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (Prelude.fmap+ Prelude.fromIntegral+ Data.ProtoLens.Encoding.Bytes.getVarInt)+ "fee_rate_milli_msat"+ loop+ (Lens.Family2.set+ (Data.ProtoLens.Field.field @"feeRateMilliMsat") y x)+ 40+ -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (Prelude.fmap+ ((Prelude./=) 0) Data.ProtoLens.Encoding.Bytes.getVarInt)+ "disabled"+ loop+ (Lens.Family2.set (Data.ProtoLens.Field.field @"disabled") y x)+ 48+ -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ Data.ProtoLens.Encoding.Bytes.getVarInt "max_htlc_msat"+ loop+ (Lens.Family2.set (Data.ProtoLens.Field.field @"maxHtlcMsat") y x)+ 56+ -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (Prelude.fmap+ Prelude.fromIntegral+ Data.ProtoLens.Encoding.Bytes.getVarInt)+ "last_update"+ loop+ (Lens.Family2.set (Data.ProtoLens.Field.field @"lastUpdate") y x)+ wire+ -> do !y <- Data.ProtoLens.Encoding.Wire.parseTaggedValueFromWire+ wire+ loop+ (Lens.Family2.over+ Data.ProtoLens.unknownFields (\ !t -> (:) y t) x)+ in+ (Data.ProtoLens.Encoding.Bytes.<?>)+ (do loop Data.ProtoLens.defMessage) "RoutingPolicy"+ buildMessage+ = \ _x+ -> (Data.Monoid.<>)+ (let+ _v+ = Lens.Family2.view+ (Data.ProtoLens.Field.field @"timeLockDelta") _x+ in+ if (Prelude.==) _v Data.ProtoLens.fieldDefault then+ Data.Monoid.mempty+ else+ (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 8)+ ((Prelude..)+ Data.ProtoLens.Encoding.Bytes.putVarInt Prelude.fromIntegral _v))+ ((Data.Monoid.<>)+ (let+ _v = Lens.Family2.view (Data.ProtoLens.Field.field @"minHtlc") _x+ in+ if (Prelude.==) _v Data.ProtoLens.fieldDefault then+ Data.Monoid.mempty+ else+ (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 16)+ ((Prelude..)+ Data.ProtoLens.Encoding.Bytes.putVarInt Prelude.fromIntegral _v))+ ((Data.Monoid.<>)+ (let+ _v+ = Lens.Family2.view (Data.ProtoLens.Field.field @"feeBaseMsat") _x+ in+ if (Prelude.==) _v Data.ProtoLens.fieldDefault then+ Data.Monoid.mempty+ else+ (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 24)+ ((Prelude..)+ Data.ProtoLens.Encoding.Bytes.putVarInt Prelude.fromIntegral _v))+ ((Data.Monoid.<>)+ (let+ _v+ = Lens.Family2.view+ (Data.ProtoLens.Field.field @"feeRateMilliMsat") _x+ in+ if (Prelude.==) _v Data.ProtoLens.fieldDefault then+ Data.Monoid.mempty+ else+ (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 32)+ ((Prelude..)+ Data.ProtoLens.Encoding.Bytes.putVarInt Prelude.fromIntegral _v))+ ((Data.Monoid.<>)+ (let+ _v = Lens.Family2.view (Data.ProtoLens.Field.field @"disabled") _x+ in+ if (Prelude.==) _v Data.ProtoLens.fieldDefault then+ Data.Monoid.mempty+ else+ (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 40)+ ((Prelude..)+ Data.ProtoLens.Encoding.Bytes.putVarInt+ (\ b -> if b then 1 else 0) _v))+ ((Data.Monoid.<>)+ (let+ _v+ = Lens.Family2.view (Data.ProtoLens.Field.field @"maxHtlcMsat") _x+ in+ if (Prelude.==) _v Data.ProtoLens.fieldDefault then+ Data.Monoid.mempty+ else+ (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 48)+ (Data.ProtoLens.Encoding.Bytes.putVarInt _v))+ ((Data.Monoid.<>)+ (let+ _v+ = Lens.Family2.view+ (Data.ProtoLens.Field.field @"lastUpdate") _x+ in+ if (Prelude.==) _v Data.ProtoLens.fieldDefault then+ Data.Monoid.mempty+ else+ (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 56)+ ((Prelude..)+ Data.ProtoLens.Encoding.Bytes.putVarInt+ Prelude.fromIntegral _v))+ (Data.ProtoLens.Encoding.Wire.buildFieldSet+ (Lens.Family2.view Data.ProtoLens.unknownFields _x))))))))+instance Control.DeepSeq.NFData RoutingPolicy where+ rnf+ = \ x__+ -> Control.DeepSeq.deepseq+ (_RoutingPolicy'_unknownFields x__)+ (Control.DeepSeq.deepseq+ (_RoutingPolicy'timeLockDelta x__)+ (Control.DeepSeq.deepseq+ (_RoutingPolicy'minHtlc x__)+ (Control.DeepSeq.deepseq+ (_RoutingPolicy'feeBaseMsat x__)+ (Control.DeepSeq.deepseq+ (_RoutingPolicy'feeRateMilliMsat x__)+ (Control.DeepSeq.deepseq+ (_RoutingPolicy'disabled x__)+ (Control.DeepSeq.deepseq+ (_RoutingPolicy'maxHtlcMsat x__)+ (Control.DeepSeq.deepseq (_RoutingPolicy'lastUpdate x__) ())))))))+{- | Fields :+ -}+data StopRequest+ = StopRequest'_constructor {_StopRequest'_unknownFields :: !Data.ProtoLens.FieldSet}+ deriving stock (Prelude.Eq, Prelude.Ord, GHC.Generics.Generic)+instance Prelude.Show StopRequest where+ showsPrec _ __x __s+ = Prelude.showChar+ '{'+ (Prelude.showString+ (Data.ProtoLens.showMessageShort __x) (Prelude.showChar '}' __s))+instance Text.PrettyPrint.GenericPretty.Out StopRequest+instance Data.ProtoLens.Message StopRequest where+ messageName _ = Data.Text.pack "lnrpc.StopRequest"+ packedMessageDescriptor _+ = "\n\+ \\vStopRequest"+ packedFileDescriptor _ = packedFileDescriptor+ fieldsByTag = let in Data.Map.fromList []+ unknownFields+ = Lens.Family2.Unchecked.lens+ _StopRequest'_unknownFields+ (\ x__ y__ -> x__ {_StopRequest'_unknownFields = y__})+ defMessage+ = StopRequest'_constructor {_StopRequest'_unknownFields = []}+ parseMessage+ = let+ loop ::+ StopRequest -> Data.ProtoLens.Encoding.Bytes.Parser StopRequest+ loop x+ = do end <- Data.ProtoLens.Encoding.Bytes.atEnd+ if end then+ do (let missing = []+ in+ if Prelude.null missing then+ Prelude.return ()+ else+ Prelude.fail+ ((Prelude.++)+ "Missing required fields: "+ (Prelude.show (missing :: [Prelude.String]))))+ Prelude.return+ (Lens.Family2.over+ Data.ProtoLens.unknownFields (\ !t -> Prelude.reverse t) x)+ else+ do tag <- Data.ProtoLens.Encoding.Bytes.getVarInt+ case tag of {+ wire+ -> do !y <- Data.ProtoLens.Encoding.Wire.parseTaggedValueFromWire+ wire+ loop+ (Lens.Family2.over+ Data.ProtoLens.unknownFields (\ !t -> (:) y t) x) }+ in+ (Data.ProtoLens.Encoding.Bytes.<?>)+ (do loop Data.ProtoLens.defMessage) "StopRequest"+ buildMessage+ = \ _x+ -> Data.ProtoLens.Encoding.Wire.buildFieldSet+ (Lens.Family2.view Data.ProtoLens.unknownFields _x)+instance Control.DeepSeq.NFData StopRequest where+ rnf+ = \ x__+ -> Control.DeepSeq.deepseq (_StopRequest'_unknownFields x__) ()+{- | Fields :+ -}+data StopResponse+ = StopResponse'_constructor {_StopResponse'_unknownFields :: !Data.ProtoLens.FieldSet}+ deriving stock (Prelude.Eq, Prelude.Ord, GHC.Generics.Generic)+instance Prelude.Show StopResponse where+ showsPrec _ __x __s+ = Prelude.showChar+ '{'+ (Prelude.showString+ (Data.ProtoLens.showMessageShort __x) (Prelude.showChar '}' __s))+instance Text.PrettyPrint.GenericPretty.Out StopResponse+instance Data.ProtoLens.Message StopResponse where+ messageName _ = Data.Text.pack "lnrpc.StopResponse"+ packedMessageDescriptor _+ = "\n\+ \\fStopResponse"+ packedFileDescriptor _ = packedFileDescriptor+ fieldsByTag = let in Data.Map.fromList []+ unknownFields+ = Lens.Family2.Unchecked.lens+ _StopResponse'_unknownFields+ (\ x__ y__ -> x__ {_StopResponse'_unknownFields = y__})+ defMessage+ = StopResponse'_constructor {_StopResponse'_unknownFields = []}+ parseMessage+ = let+ loop ::+ StopResponse -> Data.ProtoLens.Encoding.Bytes.Parser StopResponse+ loop x+ = do end <- Data.ProtoLens.Encoding.Bytes.atEnd+ if end then+ do (let missing = []+ in+ if Prelude.null missing then+ Prelude.return ()+ else+ Prelude.fail+ ((Prelude.++)+ "Missing required fields: "+ (Prelude.show (missing :: [Prelude.String]))))+ Prelude.return+ (Lens.Family2.over+ Data.ProtoLens.unknownFields (\ !t -> Prelude.reverse t) x)+ else+ do tag <- Data.ProtoLens.Encoding.Bytes.getVarInt+ case tag of {+ wire+ -> do !y <- Data.ProtoLens.Encoding.Wire.parseTaggedValueFromWire+ wire+ loop+ (Lens.Family2.over+ Data.ProtoLens.unknownFields (\ !t -> (:) y t) x) }+ in+ (Data.ProtoLens.Encoding.Bytes.<?>)+ (do loop Data.ProtoLens.defMessage) "StopResponse"+ buildMessage+ = \ _x+ -> Data.ProtoLens.Encoding.Wire.buildFieldSet+ (Lens.Family2.view Data.ProtoLens.unknownFields _x)+instance Control.DeepSeq.NFData StopResponse where+ rnf+ = \ x__+ -> Control.DeepSeq.deepseq (_StopResponse'_unknownFields x__) ()+{- | Fields :+ + * 'Proto.Lnrpc.Ln0_Fields.confirmedBalance' @:: Lens' WalletAccountBalance Data.Int.Int64@+ * 'Proto.Lnrpc.Ln0_Fields.unconfirmedBalance' @:: Lens' WalletAccountBalance Data.Int.Int64@ -}+data WalletAccountBalance+ = WalletAccountBalance'_constructor {_WalletAccountBalance'confirmedBalance :: !Data.Int.Int64,+ _WalletAccountBalance'unconfirmedBalance :: !Data.Int.Int64,+ _WalletAccountBalance'_unknownFields :: !Data.ProtoLens.FieldSet}+ deriving stock (Prelude.Eq, Prelude.Ord, GHC.Generics.Generic)+instance Prelude.Show WalletAccountBalance where+ showsPrec _ __x __s+ = Prelude.showChar+ '{'+ (Prelude.showString+ (Data.ProtoLens.showMessageShort __x) (Prelude.showChar '}' __s))+instance Text.PrettyPrint.GenericPretty.Out WalletAccountBalance+instance Data.ProtoLens.Field.HasField WalletAccountBalance "confirmedBalance" Data.Int.Int64 where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _WalletAccountBalance'confirmedBalance+ (\ x__ y__ -> x__ {_WalletAccountBalance'confirmedBalance = y__}))+ Prelude.id+instance Data.ProtoLens.Field.HasField WalletAccountBalance "unconfirmedBalance" Data.Int.Int64 where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _WalletAccountBalance'unconfirmedBalance+ (\ x__ y__+ -> x__ {_WalletAccountBalance'unconfirmedBalance = y__}))+ Prelude.id+instance Data.ProtoLens.Message WalletAccountBalance where+ messageName _ = Data.Text.pack "lnrpc.WalletAccountBalance"+ packedMessageDescriptor _+ = "\n\+ \\DC4WalletAccountBalance\DC2+\n\+ \\DC1confirmed_balance\CAN\SOH \SOH(\ETXR\DLEconfirmedBalance\DC2/\n\+ \\DC3unconfirmed_balance\CAN\STX \SOH(\ETXR\DC2unconfirmedBalance"+ packedFileDescriptor _ = packedFileDescriptor+ fieldsByTag+ = let+ confirmedBalance__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "confirmed_balance"+ (Data.ProtoLens.ScalarField Data.ProtoLens.Int64Field ::+ Data.ProtoLens.FieldTypeDescriptor Data.Int.Int64)+ (Data.ProtoLens.PlainField+ Data.ProtoLens.Optional+ (Data.ProtoLens.Field.field @"confirmedBalance")) ::+ Data.ProtoLens.FieldDescriptor WalletAccountBalance+ unconfirmedBalance__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "unconfirmed_balance"+ (Data.ProtoLens.ScalarField Data.ProtoLens.Int64Field ::+ Data.ProtoLens.FieldTypeDescriptor Data.Int.Int64)+ (Data.ProtoLens.PlainField+ Data.ProtoLens.Optional+ (Data.ProtoLens.Field.field @"unconfirmedBalance")) ::+ Data.ProtoLens.FieldDescriptor WalletAccountBalance+ in+ Data.Map.fromList+ [(Data.ProtoLens.Tag 1, confirmedBalance__field_descriptor),+ (Data.ProtoLens.Tag 2, unconfirmedBalance__field_descriptor)]+ unknownFields+ = Lens.Family2.Unchecked.lens+ _WalletAccountBalance'_unknownFields+ (\ x__ y__ -> x__ {_WalletAccountBalance'_unknownFields = y__})+ defMessage+ = WalletAccountBalance'_constructor+ {_WalletAccountBalance'confirmedBalance = Data.ProtoLens.fieldDefault,+ _WalletAccountBalance'unconfirmedBalance = Data.ProtoLens.fieldDefault,+ _WalletAccountBalance'_unknownFields = []}+ parseMessage+ = let+ loop ::+ WalletAccountBalance+ -> Data.ProtoLens.Encoding.Bytes.Parser WalletAccountBalance+ loop x+ = do end <- Data.ProtoLens.Encoding.Bytes.atEnd+ if end then+ do (let missing = []+ in+ if Prelude.null missing then+ Prelude.return ()+ else+ Prelude.fail+ ((Prelude.++)+ "Missing required fields: "+ (Prelude.show (missing :: [Prelude.String]))))+ Prelude.return+ (Lens.Family2.over+ Data.ProtoLens.unknownFields (\ !t -> Prelude.reverse t) x)+ else+ do tag <- Data.ProtoLens.Encoding.Bytes.getVarInt+ case tag of+ 8 -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (Prelude.fmap+ Prelude.fromIntegral+ Data.ProtoLens.Encoding.Bytes.getVarInt)+ "confirmed_balance"+ loop+ (Lens.Family2.set+ (Data.ProtoLens.Field.field @"confirmedBalance") y x)+ 16+ -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (Prelude.fmap+ Prelude.fromIntegral+ Data.ProtoLens.Encoding.Bytes.getVarInt)+ "unconfirmed_balance"+ loop+ (Lens.Family2.set+ (Data.ProtoLens.Field.field @"unconfirmedBalance") y x)+ wire+ -> do !y <- Data.ProtoLens.Encoding.Wire.parseTaggedValueFromWire+ wire+ loop+ (Lens.Family2.over+ Data.ProtoLens.unknownFields (\ !t -> (:) y t) x)+ in+ (Data.ProtoLens.Encoding.Bytes.<?>)+ (do loop Data.ProtoLens.defMessage) "WalletAccountBalance"+ buildMessage+ = \ _x+ -> (Data.Monoid.<>)+ (let+ _v+ = Lens.Family2.view+ (Data.ProtoLens.Field.field @"confirmedBalance") _x+ in+ if (Prelude.==) _v Data.ProtoLens.fieldDefault then+ Data.Monoid.mempty+ else+ (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 8)+ ((Prelude..)+ Data.ProtoLens.Encoding.Bytes.putVarInt Prelude.fromIntegral _v))+ ((Data.Monoid.<>)+ (let+ _v+ = Lens.Family2.view+ (Data.ProtoLens.Field.field @"unconfirmedBalance") _x+ in+ if (Prelude.==) _v Data.ProtoLens.fieldDefault then+ Data.Monoid.mempty+ else+ (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 16)+ ((Prelude..)+ Data.ProtoLens.Encoding.Bytes.putVarInt Prelude.fromIntegral _v))+ (Data.ProtoLens.Encoding.Wire.buildFieldSet+ (Lens.Family2.view Data.ProtoLens.unknownFields _x)))+instance Control.DeepSeq.NFData WalletAccountBalance where+ rnf+ = \ x__+ -> Control.DeepSeq.deepseq+ (_WalletAccountBalance'_unknownFields x__)+ (Control.DeepSeq.deepseq+ (_WalletAccountBalance'confirmedBalance x__)+ (Control.DeepSeq.deepseq+ (_WalletAccountBalance'unconfirmedBalance x__) ()))+{- | Fields :+ -}+data WalletBalanceRequest+ = WalletBalanceRequest'_constructor {_WalletBalanceRequest'_unknownFields :: !Data.ProtoLens.FieldSet}+ deriving stock (Prelude.Eq, Prelude.Ord, GHC.Generics.Generic)+instance Prelude.Show WalletBalanceRequest where+ showsPrec _ __x __s+ = Prelude.showChar+ '{'+ (Prelude.showString+ (Data.ProtoLens.showMessageShort __x) (Prelude.showChar '}' __s))+instance Text.PrettyPrint.GenericPretty.Out WalletBalanceRequest+instance Data.ProtoLens.Message WalletBalanceRequest where+ messageName _ = Data.Text.pack "lnrpc.WalletBalanceRequest"+ packedMessageDescriptor _+ = "\n\+ \\DC4WalletBalanceRequest"+ packedFileDescriptor _ = packedFileDescriptor+ fieldsByTag = let in Data.Map.fromList []+ unknownFields+ = Lens.Family2.Unchecked.lens+ _WalletBalanceRequest'_unknownFields+ (\ x__ y__ -> x__ {_WalletBalanceRequest'_unknownFields = y__})+ defMessage+ = WalletBalanceRequest'_constructor+ {_WalletBalanceRequest'_unknownFields = []}+ parseMessage+ = let+ loop ::+ WalletBalanceRequest+ -> Data.ProtoLens.Encoding.Bytes.Parser WalletBalanceRequest+ loop x+ = do end <- Data.ProtoLens.Encoding.Bytes.atEnd+ if end then+ do (let missing = []+ in+ if Prelude.null missing then+ Prelude.return ()+ else+ Prelude.fail+ ((Prelude.++)+ "Missing required fields: "+ (Prelude.show (missing :: [Prelude.String]))))+ Prelude.return+ (Lens.Family2.over+ Data.ProtoLens.unknownFields (\ !t -> Prelude.reverse t) x)+ else+ do tag <- Data.ProtoLens.Encoding.Bytes.getVarInt+ case tag of {+ wire+ -> do !y <- Data.ProtoLens.Encoding.Wire.parseTaggedValueFromWire+ wire+ loop+ (Lens.Family2.over+ Data.ProtoLens.unknownFields (\ !t -> (:) y t) x) }+ in+ (Data.ProtoLens.Encoding.Bytes.<?>)+ (do loop Data.ProtoLens.defMessage) "WalletBalanceRequest"+ buildMessage+ = \ _x+ -> Data.ProtoLens.Encoding.Wire.buildFieldSet+ (Lens.Family2.view Data.ProtoLens.unknownFields _x)+instance Control.DeepSeq.NFData WalletBalanceRequest where+ rnf+ = \ x__+ -> Control.DeepSeq.deepseq+ (_WalletBalanceRequest'_unknownFields x__) ()+{- | Fields :+ + * 'Proto.Lnrpc.Ln0_Fields.totalBalance' @:: Lens' WalletBalanceResponse Data.Int.Int64@+ * 'Proto.Lnrpc.Ln0_Fields.confirmedBalance' @:: Lens' WalletBalanceResponse Data.Int.Int64@+ * 'Proto.Lnrpc.Ln0_Fields.unconfirmedBalance' @:: Lens' WalletBalanceResponse Data.Int.Int64@+ * 'Proto.Lnrpc.Ln0_Fields.accountBalance' @:: Lens' WalletBalanceResponse (Data.Map.Map Data.Text.Text WalletAccountBalance)@ -}+data WalletBalanceResponse+ = WalletBalanceResponse'_constructor {_WalletBalanceResponse'totalBalance :: !Data.Int.Int64,+ _WalletBalanceResponse'confirmedBalance :: !Data.Int.Int64,+ _WalletBalanceResponse'unconfirmedBalance :: !Data.Int.Int64,+ _WalletBalanceResponse'accountBalance :: !(Data.Map.Map Data.Text.Text WalletAccountBalance),+ _WalletBalanceResponse'_unknownFields :: !Data.ProtoLens.FieldSet}+ deriving stock (Prelude.Eq, Prelude.Ord, GHC.Generics.Generic)+instance Prelude.Show WalletBalanceResponse where+ showsPrec _ __x __s+ = Prelude.showChar+ '{'+ (Prelude.showString+ (Data.ProtoLens.showMessageShort __x) (Prelude.showChar '}' __s))+instance Text.PrettyPrint.GenericPretty.Out WalletBalanceResponse+instance Data.ProtoLens.Field.HasField WalletBalanceResponse "totalBalance" Data.Int.Int64 where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _WalletBalanceResponse'totalBalance+ (\ x__ y__ -> x__ {_WalletBalanceResponse'totalBalance = y__}))+ Prelude.id+instance Data.ProtoLens.Field.HasField WalletBalanceResponse "confirmedBalance" Data.Int.Int64 where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _WalletBalanceResponse'confirmedBalance+ (\ x__ y__ -> x__ {_WalletBalanceResponse'confirmedBalance = y__}))+ Prelude.id+instance Data.ProtoLens.Field.HasField WalletBalanceResponse "unconfirmedBalance" Data.Int.Int64 where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _WalletBalanceResponse'unconfirmedBalance+ (\ x__ y__+ -> x__ {_WalletBalanceResponse'unconfirmedBalance = y__}))+ Prelude.id+instance Data.ProtoLens.Field.HasField WalletBalanceResponse "accountBalance" (Data.Map.Map Data.Text.Text WalletAccountBalance) where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _WalletBalanceResponse'accountBalance+ (\ x__ y__ -> x__ {_WalletBalanceResponse'accountBalance = y__}))+ Prelude.id+instance Data.ProtoLens.Message WalletBalanceResponse where+ messageName _ = Data.Text.pack "lnrpc.WalletBalanceResponse"+ packedMessageDescriptor _+ = "\n\+ \\NAKWalletBalanceResponse\DC2#\n\+ \\rtotal_balance\CAN\SOH \SOH(\ETXR\ftotalBalance\DC2+\n\+ \\DC1confirmed_balance\CAN\STX \SOH(\ETXR\DLEconfirmedBalance\DC2/\n\+ \\DC3unconfirmed_balance\CAN\ETX \SOH(\ETXR\DC2unconfirmedBalance\DC2Y\n\+ \\SIaccount_balance\CAN\EOT \ETX(\v20.lnrpc.WalletBalanceResponse.AccountBalanceEntryR\SOaccountBalance\SUB^\n\+ \\DC3AccountBalanceEntry\DC2\DLE\n\+ \\ETXkey\CAN\SOH \SOH(\tR\ETXkey\DC21\n\+ \\ENQvalue\CAN\STX \SOH(\v2\ESC.lnrpc.WalletAccountBalanceR\ENQvalue:\STX8\SOH"+ packedFileDescriptor _ = packedFileDescriptor+ fieldsByTag+ = let+ totalBalance__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "total_balance"+ (Data.ProtoLens.ScalarField Data.ProtoLens.Int64Field ::+ Data.ProtoLens.FieldTypeDescriptor Data.Int.Int64)+ (Data.ProtoLens.PlainField+ Data.ProtoLens.Optional+ (Data.ProtoLens.Field.field @"totalBalance")) ::+ Data.ProtoLens.FieldDescriptor WalletBalanceResponse+ confirmedBalance__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "confirmed_balance"+ (Data.ProtoLens.ScalarField Data.ProtoLens.Int64Field ::+ Data.ProtoLens.FieldTypeDescriptor Data.Int.Int64)+ (Data.ProtoLens.PlainField+ Data.ProtoLens.Optional+ (Data.ProtoLens.Field.field @"confirmedBalance")) ::+ Data.ProtoLens.FieldDescriptor WalletBalanceResponse+ unconfirmedBalance__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "unconfirmed_balance"+ (Data.ProtoLens.ScalarField Data.ProtoLens.Int64Field ::+ Data.ProtoLens.FieldTypeDescriptor Data.Int.Int64)+ (Data.ProtoLens.PlainField+ Data.ProtoLens.Optional+ (Data.ProtoLens.Field.field @"unconfirmedBalance")) ::+ Data.ProtoLens.FieldDescriptor WalletBalanceResponse+ accountBalance__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "account_balance"+ (Data.ProtoLens.MessageField Data.ProtoLens.MessageType ::+ Data.ProtoLens.FieldTypeDescriptor WalletBalanceResponse'AccountBalanceEntry)+ (Data.ProtoLens.MapField+ (Data.ProtoLens.Field.field @"key")+ (Data.ProtoLens.Field.field @"value")+ (Data.ProtoLens.Field.field @"accountBalance")) ::+ Data.ProtoLens.FieldDescriptor WalletBalanceResponse+ in+ Data.Map.fromList+ [(Data.ProtoLens.Tag 1, totalBalance__field_descriptor),+ (Data.ProtoLens.Tag 2, confirmedBalance__field_descriptor),+ (Data.ProtoLens.Tag 3, unconfirmedBalance__field_descriptor),+ (Data.ProtoLens.Tag 4, accountBalance__field_descriptor)]+ unknownFields+ = Lens.Family2.Unchecked.lens+ _WalletBalanceResponse'_unknownFields+ (\ x__ y__ -> x__ {_WalletBalanceResponse'_unknownFields = y__})+ defMessage+ = WalletBalanceResponse'_constructor+ {_WalletBalanceResponse'totalBalance = Data.ProtoLens.fieldDefault,+ _WalletBalanceResponse'confirmedBalance = Data.ProtoLens.fieldDefault,+ _WalletBalanceResponse'unconfirmedBalance = Data.ProtoLens.fieldDefault,+ _WalletBalanceResponse'accountBalance = Data.Map.empty,+ _WalletBalanceResponse'_unknownFields = []}+ parseMessage+ = let+ loop ::+ WalletBalanceResponse+ -> Data.ProtoLens.Encoding.Bytes.Parser WalletBalanceResponse+ loop x+ = do end <- Data.ProtoLens.Encoding.Bytes.atEnd+ if end then+ do (let missing = []+ in+ if Prelude.null missing then+ Prelude.return ()+ else+ Prelude.fail+ ((Prelude.++)+ "Missing required fields: "+ (Prelude.show (missing :: [Prelude.String]))))+ Prelude.return+ (Lens.Family2.over+ Data.ProtoLens.unknownFields (\ !t -> Prelude.reverse t) x)+ else+ do tag <- Data.ProtoLens.Encoding.Bytes.getVarInt+ case tag of+ 8 -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (Prelude.fmap+ Prelude.fromIntegral+ Data.ProtoLens.Encoding.Bytes.getVarInt)+ "total_balance"+ loop+ (Lens.Family2.set+ (Data.ProtoLens.Field.field @"totalBalance") y x)+ 16+ -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (Prelude.fmap+ Prelude.fromIntegral+ Data.ProtoLens.Encoding.Bytes.getVarInt)+ "confirmed_balance"+ loop+ (Lens.Family2.set+ (Data.ProtoLens.Field.field @"confirmedBalance") y x)+ 24+ -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (Prelude.fmap+ Prelude.fromIntegral+ Data.ProtoLens.Encoding.Bytes.getVarInt)+ "unconfirmed_balance"+ loop+ (Lens.Family2.set+ (Data.ProtoLens.Field.field @"unconfirmedBalance") y x)+ 34+ -> do !(entry :: WalletBalanceResponse'AccountBalanceEntry) <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (do len <- Data.ProtoLens.Encoding.Bytes.getVarInt+ Data.ProtoLens.Encoding.Bytes.isolate+ (Prelude.fromIntegral+ len)+ Data.ProtoLens.parseMessage)+ "account_balance"+ (let+ key = Lens.Family2.view (Data.ProtoLens.Field.field @"key") entry+ value+ = Lens.Family2.view (Data.ProtoLens.Field.field @"value") entry+ in+ loop+ (Lens.Family2.over+ (Data.ProtoLens.Field.field @"accountBalance")+ (\ !t -> Data.Map.insert key value t) x))+ wire+ -> do !y <- Data.ProtoLens.Encoding.Wire.parseTaggedValueFromWire+ wire+ loop+ (Lens.Family2.over+ Data.ProtoLens.unknownFields (\ !t -> (:) y t) x)+ in+ (Data.ProtoLens.Encoding.Bytes.<?>)+ (do loop Data.ProtoLens.defMessage) "WalletBalanceResponse"+ buildMessage+ = \ _x+ -> (Data.Monoid.<>)+ (let+ _v+ = Lens.Family2.view (Data.ProtoLens.Field.field @"totalBalance") _x+ in+ if (Prelude.==) _v Data.ProtoLens.fieldDefault then+ Data.Monoid.mempty+ else+ (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 8)+ ((Prelude..)+ Data.ProtoLens.Encoding.Bytes.putVarInt Prelude.fromIntegral _v))+ ((Data.Monoid.<>)+ (let+ _v+ = Lens.Family2.view+ (Data.ProtoLens.Field.field @"confirmedBalance") _x+ in+ if (Prelude.==) _v Data.ProtoLens.fieldDefault then+ Data.Monoid.mempty+ else+ (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 16)+ ((Prelude..)+ Data.ProtoLens.Encoding.Bytes.putVarInt Prelude.fromIntegral _v))+ ((Data.Monoid.<>)+ (let+ _v+ = Lens.Family2.view+ (Data.ProtoLens.Field.field @"unconfirmedBalance") _x+ in+ if (Prelude.==) _v Data.ProtoLens.fieldDefault then+ Data.Monoid.mempty+ else+ (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 24)+ ((Prelude..)+ Data.ProtoLens.Encoding.Bytes.putVarInt Prelude.fromIntegral _v))+ ((Data.Monoid.<>)+ (Data.Monoid.mconcat+ (Prelude.map+ (\ _v+ -> (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 34)+ ((Prelude..)+ (\ bs+ -> (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt+ (Prelude.fromIntegral+ (Data.ByteString.length bs)))+ (Data.ProtoLens.Encoding.Bytes.putBytes bs))+ Data.ProtoLens.encodeMessage+ (Lens.Family2.set+ (Data.ProtoLens.Field.field @"key") (Prelude.fst _v)+ (Lens.Family2.set+ (Data.ProtoLens.Field.field @"value") (Prelude.snd _v)+ (Data.ProtoLens.defMessage ::+ WalletBalanceResponse'AccountBalanceEntry)))))+ (Data.Map.toList+ (Lens.Family2.view+ (Data.ProtoLens.Field.field @"accountBalance") _x))))+ (Data.ProtoLens.Encoding.Wire.buildFieldSet+ (Lens.Family2.view Data.ProtoLens.unknownFields _x)))))+instance Control.DeepSeq.NFData WalletBalanceResponse where+ rnf+ = \ x__+ -> Control.DeepSeq.deepseq+ (_WalletBalanceResponse'_unknownFields x__)+ (Control.DeepSeq.deepseq+ (_WalletBalanceResponse'totalBalance x__)+ (Control.DeepSeq.deepseq+ (_WalletBalanceResponse'confirmedBalance x__)+ (Control.DeepSeq.deepseq+ (_WalletBalanceResponse'unconfirmedBalance x__)+ (Control.DeepSeq.deepseq+ (_WalletBalanceResponse'accountBalance x__) ()))))+{- | Fields :+ + * 'Proto.Lnrpc.Ln0_Fields.key' @:: Lens' WalletBalanceResponse'AccountBalanceEntry Data.Text.Text@+ * 'Proto.Lnrpc.Ln0_Fields.value' @:: Lens' WalletBalanceResponse'AccountBalanceEntry WalletAccountBalance@+ * 'Proto.Lnrpc.Ln0_Fields.maybe'value' @:: Lens' WalletBalanceResponse'AccountBalanceEntry (Prelude.Maybe WalletAccountBalance)@ -}+data WalletBalanceResponse'AccountBalanceEntry+ = WalletBalanceResponse'AccountBalanceEntry'_constructor {_WalletBalanceResponse'AccountBalanceEntry'key :: !Data.Text.Text,+ _WalletBalanceResponse'AccountBalanceEntry'value :: !(Prelude.Maybe WalletAccountBalance),+ _WalletBalanceResponse'AccountBalanceEntry'_unknownFields :: !Data.ProtoLens.FieldSet}+ deriving stock (Prelude.Eq, Prelude.Ord, GHC.Generics.Generic)+instance Prelude.Show WalletBalanceResponse'AccountBalanceEntry where+ showsPrec _ __x __s+ = Prelude.showChar+ '{'+ (Prelude.showString+ (Data.ProtoLens.showMessageShort __x) (Prelude.showChar '}' __s))+instance Text.PrettyPrint.GenericPretty.Out WalletBalanceResponse'AccountBalanceEntry+instance Data.ProtoLens.Field.HasField WalletBalanceResponse'AccountBalanceEntry "key" Data.Text.Text where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _WalletBalanceResponse'AccountBalanceEntry'key+ (\ x__ y__+ -> x__ {_WalletBalanceResponse'AccountBalanceEntry'key = y__}))+ Prelude.id+instance Data.ProtoLens.Field.HasField WalletBalanceResponse'AccountBalanceEntry "value" WalletAccountBalance where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _WalletBalanceResponse'AccountBalanceEntry'value+ (\ x__ y__+ -> x__ {_WalletBalanceResponse'AccountBalanceEntry'value = y__}))+ (Data.ProtoLens.maybeLens Data.ProtoLens.defMessage)+instance Data.ProtoLens.Field.HasField WalletBalanceResponse'AccountBalanceEntry "maybe'value" (Prelude.Maybe WalletAccountBalance) where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _WalletBalanceResponse'AccountBalanceEntry'value+ (\ x__ y__+ -> x__ {_WalletBalanceResponse'AccountBalanceEntry'value = y__}))+ Prelude.id+instance Data.ProtoLens.Message WalletBalanceResponse'AccountBalanceEntry where+ messageName _+ = Data.Text.pack "lnrpc.WalletBalanceResponse.AccountBalanceEntry"+ packedMessageDescriptor _+ = "\n\+ \\DC3AccountBalanceEntry\DC2\DLE\n\+ \\ETXkey\CAN\SOH \SOH(\tR\ETXkey\DC21\n\+ \\ENQvalue\CAN\STX \SOH(\v2\ESC.lnrpc.WalletAccountBalanceR\ENQvalue:\STX8\SOH"+ packedFileDescriptor _ = packedFileDescriptor+ fieldsByTag+ = let+ key__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "key"+ (Data.ProtoLens.ScalarField Data.ProtoLens.StringField ::+ Data.ProtoLens.FieldTypeDescriptor Data.Text.Text)+ (Data.ProtoLens.PlainField+ Data.ProtoLens.Optional (Data.ProtoLens.Field.field @"key")) ::+ Data.ProtoLens.FieldDescriptor WalletBalanceResponse'AccountBalanceEntry+ value__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "value"+ (Data.ProtoLens.MessageField Data.ProtoLens.MessageType ::+ Data.ProtoLens.FieldTypeDescriptor WalletAccountBalance)+ (Data.ProtoLens.OptionalField+ (Data.ProtoLens.Field.field @"maybe'value")) ::+ Data.ProtoLens.FieldDescriptor WalletBalanceResponse'AccountBalanceEntry+ in+ Data.Map.fromList+ [(Data.ProtoLens.Tag 1, key__field_descriptor),+ (Data.ProtoLens.Tag 2, value__field_descriptor)]+ unknownFields+ = Lens.Family2.Unchecked.lens+ _WalletBalanceResponse'AccountBalanceEntry'_unknownFields+ (\ x__ y__+ -> x__+ {_WalletBalanceResponse'AccountBalanceEntry'_unknownFields = y__})+ defMessage+ = WalletBalanceResponse'AccountBalanceEntry'_constructor+ {_WalletBalanceResponse'AccountBalanceEntry'key = Data.ProtoLens.fieldDefault,+ _WalletBalanceResponse'AccountBalanceEntry'value = Prelude.Nothing,+ _WalletBalanceResponse'AccountBalanceEntry'_unknownFields = []}+ parseMessage+ = let+ loop ::+ WalletBalanceResponse'AccountBalanceEntry+ -> Data.ProtoLens.Encoding.Bytes.Parser WalletBalanceResponse'AccountBalanceEntry+ loop x+ = do end <- Data.ProtoLens.Encoding.Bytes.atEnd+ if end then+ do (let missing = []+ in+ if Prelude.null missing then+ Prelude.return ()+ else+ Prelude.fail+ ((Prelude.++)+ "Missing required fields: "+ (Prelude.show (missing :: [Prelude.String]))))+ Prelude.return+ (Lens.Family2.over+ Data.ProtoLens.unknownFields (\ !t -> Prelude.reverse t) x)+ else+ do tag <- Data.ProtoLens.Encoding.Bytes.getVarInt+ case tag of+ 10+ -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (do value <- do len <- Data.ProtoLens.Encoding.Bytes.getVarInt+ Data.ProtoLens.Encoding.Bytes.getBytes+ (Prelude.fromIntegral len)+ Data.ProtoLens.Encoding.Bytes.runEither+ (case Data.Text.Encoding.decodeUtf8' value of+ (Prelude.Left err)+ -> Prelude.Left (Prelude.show err)+ (Prelude.Right r) -> Prelude.Right r))+ "key"+ loop (Lens.Family2.set (Data.ProtoLens.Field.field @"key") y x)+ 18+ -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (do len <- Data.ProtoLens.Encoding.Bytes.getVarInt+ Data.ProtoLens.Encoding.Bytes.isolate+ (Prelude.fromIntegral len) Data.ProtoLens.parseMessage)+ "value"+ loop (Lens.Family2.set (Data.ProtoLens.Field.field @"value") y x)+ wire+ -> do !y <- Data.ProtoLens.Encoding.Wire.parseTaggedValueFromWire+ wire+ loop+ (Lens.Family2.over+ Data.ProtoLens.unknownFields (\ !t -> (:) y t) x)+ in+ (Data.ProtoLens.Encoding.Bytes.<?>)+ (do loop Data.ProtoLens.defMessage) "AccountBalanceEntry"+ buildMessage+ = \ _x+ -> (Data.Monoid.<>)+ (let _v = Lens.Family2.view (Data.ProtoLens.Field.field @"key") _x+ in+ if (Prelude.==) _v Data.ProtoLens.fieldDefault then+ Data.Monoid.mempty+ else+ (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 10)+ ((Prelude..)+ (\ bs+ -> (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt+ (Prelude.fromIntegral (Data.ByteString.length bs)))+ (Data.ProtoLens.Encoding.Bytes.putBytes bs))+ Data.Text.Encoding.encodeUtf8 _v))+ ((Data.Monoid.<>)+ (case+ Lens.Family2.view (Data.ProtoLens.Field.field @"maybe'value") _x+ of+ Prelude.Nothing -> Data.Monoid.mempty+ (Prelude.Just _v)+ -> (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 18)+ ((Prelude..)+ (\ bs+ -> (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt+ (Prelude.fromIntegral (Data.ByteString.length bs)))+ (Data.ProtoLens.Encoding.Bytes.putBytes bs))+ Data.ProtoLens.encodeMessage _v))+ (Data.ProtoLens.Encoding.Wire.buildFieldSet+ (Lens.Family2.view Data.ProtoLens.unknownFields _x)))+instance Control.DeepSeq.NFData WalletBalanceResponse'AccountBalanceEntry where+ rnf+ = \ x__+ -> Control.DeepSeq.deepseq+ (_WalletBalanceResponse'AccountBalanceEntry'_unknownFields x__)+ (Control.DeepSeq.deepseq+ (_WalletBalanceResponse'AccountBalanceEntry'key x__)+ (Control.DeepSeq.deepseq+ (_WalletBalanceResponse'AccountBalanceEntry'value x__) ()))+packedFileDescriptor :: Data.ByteString.ByteString+packedFileDescriptor+ = "\n\+ \\SIlnrpc/ln0.proto\DC2\ENQlnrpc\"Y\n\+ \\aFeature\DC2\DC2\n\+ \\EOTname\CAN\STX \SOH(\tR\EOTname\DC2\US\n\+ \\vis_required\CAN\ETX \SOH(\bR\n\+ \isRequired\DC2\EM\n\+ \\bis_known\CAN\EOT \SOH(\bR\aisKnown\"8\n\+ \\tRouteHint\DC2+\n\+ \\thop_hints\CAN\SOH \ETX(\v2\SO.lnrpc.HopHintR\bhopHints\"\207\SOH\n\+ \\aHopHint\DC2\ETB\n\+ \\anode_id\CAN\SOH \SOH(\tR\ACKnodeId\DC2\ESC\n\+ \\achan_id\CAN\STX \SOH(\EOTR\ACKchanIdB\STX0\SOH\DC2\"\n\+ \\rfee_base_msat\CAN\ETX \SOH(\rR\vfeeBaseMsat\DC2>\n\+ \\ESCfee_proportional_millionths\CAN\EOT \SOH(\rR\EMfeeProportionalMillionths\DC2*\n\+ \\DC1cltv_expiry_delta\CAN\ENQ \SOH(\rR\SIcltvExpiryDelta\"\157\SOH\n\+ \\fChannelPoint\DC2.\n\+ \\DC2funding_txid_bytes\CAN\SOH \SOH(\fH\NULR\DLEfundingTxidBytes\DC2*\n\+ \\DLEfunding_txid_str\CAN\STX \SOH(\tH\NULR\SOfundingTxidStr\DC2!\n\+ \\foutput_index\CAN\ETX \SOH(\rR\voutputIndexB\SO\n\+ \\ffunding_txid\"g\n\+ \\bOutPoint\DC2\GS\n\+ \\n\+ \txid_bytes\CAN\SOH \SOH(\fR\ttxidBytes\DC2\EM\n\+ \\btxid_str\CAN\STX \SOH(\tR\atxidStr\DC2!\n\+ \\foutput_index\CAN\ETX \SOH(\rR\voutputIndex\"\132\STX\n\+ \\DC2ChannelConstraints\DC2\ESC\n\+ \\tcsv_delay\CAN\SOH \SOH(\rR\bcsvDelay\DC2(\n\+ \\DLEchan_reserve_sat\CAN\STX \SOH(\EOTR\SOchanReserveSat\DC2$\n\+ \\SOdust_limit_sat\CAN\ETX \SOH(\EOTR\fdustLimitSat\DC2/\n\+ \\DC4max_pending_amt_msat\CAN\EOT \SOH(\EOTR\DC1maxPendingAmtMsat\DC2\"\n\+ \\rmin_htlc_msat\CAN\ENQ \SOH(\EOTR\vminHtlcMsat\DC2,\n\+ \\DC2max_accepted_htlcs\CAN\ACK \SOH(\rR\DLEmaxAcceptedHtlcs\"\215\t\n\+ \\aChannel\DC2\SYN\n\+ \\ACKactive\CAN\SOH \SOH(\bR\ACKactive\DC2#\n\+ \\rremote_pubkey\CAN\STX \SOH(\tR\fremotePubkey\DC2#\n\+ \\rchannel_point\CAN\ETX \SOH(\tR\fchannelPoint\DC2\ESC\n\+ \\achan_id\CAN\EOT \SOH(\EOTR\ACKchanIdB\STX0\SOH\DC2\SUB\n\+ \\bcapacity\CAN\ENQ \SOH(\ETXR\bcapacity\DC2#\n\+ \\rlocal_balance\CAN\ACK \SOH(\ETXR\flocalBalance\DC2%\n\+ \\SOremote_balance\CAN\a \SOH(\ETXR\rremoteBalance\DC2\GS\n\+ \\n\+ \commit_fee\CAN\b \SOH(\ETXR\tcommitFee\DC2#\n\+ \\rcommit_weight\CAN\t \SOH(\ETXR\fcommitWeight\DC2\FS\n\+ \\n\+ \fee_per_kw\CAN\n\+ \ \SOH(\ETXR\bfeePerKw\DC2+\n\+ \\DC1unsettled_balance\CAN\v \SOH(\ETXR\DLEunsettledBalance\DC2.\n\+ \\DC3total_satoshis_sent\CAN\f \SOH(\ETXR\DC1totalSatoshisSent\DC26\n\+ \\ETBtotal_satoshis_received\CAN\r \SOH(\ETXR\NAKtotalSatoshisReceived\DC2\US\n\+ \\vnum_updates\CAN\SO \SOH(\EOTR\n\+ \numUpdates\DC20\n\+ \\rpending_htlcs\CAN\SI \ETX(\v2\v.lnrpc.HTLCR\fpendingHtlcs\DC2\US\n\+ \\tcsv_delay\CAN\DLE \SOH(\rR\bcsvDelayB\STX\CAN\SOH\DC2\CAN\n\+ \\aprivate\CAN\DC1 \SOH(\bR\aprivate\DC2\FS\n\+ \\tinitiator\CAN\DC2 \SOH(\bR\tinitiator\DC2*\n\+ \\DC1chan_status_flags\CAN\DC3 \SOH(\tR\SIchanStatusFlags\DC27\n\+ \\SYNlocal_chan_reserve_sat\CAN\DC4 \SOH(\ETXR\DC3localChanReserveSatB\STX\CAN\SOH\DC29\n\+ \\ETBremote_chan_reserve_sat\CAN\NAK \SOH(\ETXR\DC4remoteChanReserveSatB\STX\CAN\SOH\DC2.\n\+ \\DC1static_remote_key\CAN\SYN \SOH(\bR\SIstaticRemoteKeyB\STX\CAN\SOH\DC2>\n\+ \\SIcommitment_type\CAN\SUB \SOH(\SO2\NAK.lnrpc.CommitmentTypeR\SOcommitmentType\DC2\SUB\n\+ \\blifetime\CAN\ETB \SOH(\ETXR\blifetime\DC2\SYN\n\+ \\ACKuptime\CAN\CAN \SOH(\ETXR\ACKuptime\DC2#\n\+ \\rclose_address\CAN\EM \SOH(\tR\fcloseAddress\DC2&\n\+ \\SIpush_amount_sat\CAN\ESC \SOH(\EOTR\rpushAmountSat\DC2\US\n\+ \\vthaw_height\CAN\FS \SOH(\rR\n\+ \thawHeight\DC2F\n\+ \\DC1local_constraints\CAN\GS \SOH(\v2\EM.lnrpc.ChannelConstraintsR\DLElocalConstraints\DC2H\n\+ \\DC2remote_constraints\CAN\RS \SOH(\v2\EM.lnrpc.ChannelConstraintsR\DC1remoteConstraints\"\216\ENQ\n\+ \\DC3ChannelCloseSummary\DC2#\n\+ \\rchannel_point\CAN\SOH \SOH(\tR\fchannelPoint\DC2\ESC\n\+ \\achan_id\CAN\STX \SOH(\EOTR\ACKchanIdB\STX0\SOH\DC2\GS\n\+ \\n\+ \chain_hash\CAN\ETX \SOH(\tR\tchainHash\DC2&\n\+ \\SIclosing_tx_hash\CAN\EOT \SOH(\tR\rclosingTxHash\DC2#\n\+ \\rremote_pubkey\CAN\ENQ \SOH(\tR\fremotePubkey\DC2\SUB\n\+ \\bcapacity\CAN\ACK \SOH(\ETXR\bcapacity\DC2!\n\+ \\fclose_height\CAN\a \SOH(\rR\vcloseHeight\DC2'\n\+ \\SIsettled_balance\CAN\b \SOH(\ETXR\SOsettledBalance\DC2.\n\+ \\DC3time_locked_balance\CAN\t \SOH(\ETXR\DC1timeLockedBalance\DC2E\n\+ \\n\+ \close_type\CAN\n\+ \ \SOH(\SO2&.lnrpc.ChannelCloseSummary.ClosureTypeR\tcloseType\DC27\n\+ \\SOopen_initiator\CAN\v \SOH(\SO2\DLE.lnrpc.InitiatorR\ropenInitiator\DC29\n\+ \\SIclose_initiator\CAN\f \SOH(\SO2\DLE.lnrpc.InitiatorR\SOcloseInitiator\DC23\n\+ \\vresolutions\CAN\r \ETX(\v2\DC1.lnrpc.ResolutionR\vresolutions\"\138\SOH\n\+ \\vClosureType\DC2\NAK\n\+ \\DC1COOPERATIVE_CLOSE\DLE\NUL\DC2\NAK\n\+ \\DC1LOCAL_FORCE_CLOSE\DLE\SOH\DC2\SYN\n\+ \\DC2REMOTE_FORCE_CLOSE\DLE\STX\DC2\DLE\n\+ \\fBREACH_CLOSE\DLE\ETX\DC2\DC4\n\+ \\DLEFUNDING_CANCELED\DLE\EOT\DC2\r\n\+ \\tABANDONED\DLE\ENQ\"F\n\+ \\rPendingUpdate\DC2\DC2\n\+ \\EOTtxid\CAN\SOH \SOH(\fR\EOTtxid\DC2!\n\+ \\foutput_index\CAN\STX \SOH(\rR\voutputIndex\"\235\SOH\n\+ \\n\+ \Resolution\DC2>\n\+ \\SIresolution_type\CAN\SOH \SOH(\SO2\NAK.lnrpc.ResolutionTypeR\SOresolutionType\DC22\n\+ \\aoutcome\CAN\STX \SOH(\SO2\CAN.lnrpc.ResolutionOutcomeR\aoutcome\DC2+\n\+ \\boutpoint\CAN\ETX \SOH(\v2\SI.lnrpc.OutPointR\boutpoint\DC2\GS\n\+ \\n\+ \amount_sat\CAN\EOT \SOH(\EOTR\tamountSat\DC2\GS\n\+ \\n\+ \sweep_txid\CAN\ENQ \SOH(\tR\tsweepTxid\"h\n\+ \\bFeeLimit\DC2\SYN\n\+ \\ENQfixed\CAN\SOH \SOH(\ETXH\NULR\ENQfixed\DC2\US\n\+ \\n\+ \fixed_msat\CAN\ETX \SOH(\ETXH\NULR\tfixedMsat\DC2\SUB\n\+ \\apercent\CAN\STX \SOH(\ETXH\NULR\apercentB\a\n\+ \\ENQlimit\"\134\STX\n\+ \\EOTHTLC\DC2\SUB\n\+ \\bincoming\CAN\SOH \SOH(\bR\bincoming\DC2\SYN\n\+ \\ACKamount\CAN\STX \SOH(\ETXR\ACKamount\DC2\ESC\n\+ \\thash_lock\CAN\ETX \SOH(\fR\bhashLock\DC2+\n\+ \\DC1expiration_height\CAN\EOT \SOH(\rR\DLEexpirationHeight\DC2\GS\n\+ \\n\+ \htlc_index\CAN\ENQ \SOH(\EOTR\thtlcIndex\DC2-\n\+ \\DC2forwarding_channel\CAN\ACK \SOH(\EOTR\DC1forwardingChannel\DC22\n\+ \\NAKforwarding_htlc_index\CAN\a \SOH(\EOTR\DC3forwardingHtlcIndex\"H\n\+ \\n\+ \KeyLocator\DC2\GS\n\+ \\n\+ \key_family\CAN\SOH \SOH(\ENQR\tkeyFamily\DC2\ESC\n\+ \\tkey_index\CAN\STX \SOH(\ENQR\bkeyIndex\"_\n\+ \\rKeyDescriptor\DC2\"\n\+ \\rraw_key_bytes\CAN\SOH \SOH(\fR\vrawKeyBytes\DC2*\n\+ \\akey_loc\CAN\STX \SOH(\v2\DC1.lnrpc.KeyLocatorR\ACKkeyLoc\"\240\SOH\n\+ \\rChanPointShim\DC2\DLE\n\+ \\ETXamt\CAN\SOH \SOH(\ETXR\ETXamt\DC22\n\+ \\n\+ \chan_point\CAN\STX \SOH(\v2\DC3.lnrpc.ChannelPointR\tchanPoint\DC21\n\+ \\tlocal_key\CAN\ETX \SOH(\v2\DC4.lnrpc.KeyDescriptorR\blocalKey\DC2\GS\n\+ \\n\+ \remote_key\CAN\EOT \SOH(\fR\tremoteKey\DC2&\n\+ \\SIpending_chan_id\CAN\ENQ \SOH(\fR\rpendingChanId\DC2\US\n\+ \\vthaw_height\CAN\ACK \SOH(\rR\n\+ \thawHeight\"n\n\+ \\bPsbtShim\DC2&\n\+ \\SIpending_chan_id\CAN\SOH \SOH(\fR\rpendingChanId\DC2\ESC\n\+ \\tbase_psbt\CAN\STX \SOH(\fR\bbasePsbt\DC2\GS\n\+ \\n\+ \no_publish\CAN\ETX \SOH(\bR\tnoPublish\"\133\SOH\n\+ \\vFundingShim\DC2>\n\+ \\SIchan_point_shim\CAN\SOH \SOH(\v2\DC4.lnrpc.ChanPointShimH\NULR\rchanPointShim\DC2.\n\+ \\tpsbt_shim\CAN\STX \SOH(\v2\SI.lnrpc.PsbtShimH\NULR\bpsbtShimB\ACK\n\+ \\EOTshim\";\n\+ \\DC1FundingShimCancel\DC2&\n\+ \\SIpending_chan_id\CAN\SOH \SOH(\fR\rpendingChanId\"\129\SOH\n\+ \\DC1FundingPsbtVerify\DC2\US\n\+ \\vfunded_psbt\CAN\SOH \SOH(\fR\n\+ \fundedPsbt\DC2&\n\+ \\SIpending_chan_id\CAN\STX \SOH(\fR\rpendingChanId\DC2#\n\+ \\rskip_finalize\CAN\ETX \SOH(\bR\fskipFinalize\"\128\SOH\n\+ \\DC3FundingPsbtFinalize\DC2\US\n\+ \\vsigned_psbt\CAN\SOH \SOH(\fR\n\+ \signedPsbt\DC2&\n\+ \\SIpending_chan_id\CAN\STX \SOH(\fR\rpendingChanId\DC2 \n\+ \\ffinal_raw_tx\CAN\ETX \SOH(\fR\n\+ \finalRawTx\"\153\STX\n\+ \\DC4FundingTransitionMsg\DC29\n\+ \\rshim_register\CAN\SOH \SOH(\v2\DC2.lnrpc.FundingShimH\NULR\fshimRegister\DC2;\n\+ \\vshim_cancel\CAN\STX \SOH(\v2\CAN.lnrpc.FundingShimCancelH\NULR\n\+ \shimCancel\DC2;\n\+ \\vpsbt_verify\CAN\ETX \SOH(\v2\CAN.lnrpc.FundingPsbtVerifyH\NULR\n\+ \psbtVerify\DC2A\n\+ \\rpsbt_finalize\CAN\EOT \SOH(\v2\SUB.lnrpc.FundingPsbtFinalizeH\NULR\fpsbtFinalizeB\t\n\+ \\atrigger\"\SYN\n\+ \\DC4FundingStateStepResp\"\204\SOH\n\+ \\vPendingHTLC\DC2\SUB\n\+ \\bincoming\CAN\SOH \SOH(\bR\bincoming\DC2\SYN\n\+ \\ACKamount\CAN\STX \SOH(\ETXR\ACKamount\DC2\SUB\n\+ \\boutpoint\CAN\ETX \SOH(\tR\boutpoint\DC2'\n\+ \\SImaturity_height\CAN\EOT \SOH(\rR\SOmaturityHeight\DC2.\n\+ \\DC3blocks_til_maturity\CAN\ENQ \SOH(\ENQR\DC1blocksTilMaturity\DC2\DC4\n\+ \\ENQstage\CAN\ACK \SOH(\rR\ENQstage\"\CAN\n\+ \\SYNPendingChannelsRequest\"\181\DC2\n\+ \\ETBPendingChannelsResponse\DC2.\n\+ \\DC3total_limbo_balance\CAN\SOH \SOH(\ETXR\DC1totalLimboBalance\DC2e\n\+ \\NAKpending_open_channels\CAN\STX \ETX(\v21.lnrpc.PendingChannelsResponse.PendingOpenChannelR\DC3pendingOpenChannels\DC2j\n\+ \\CANpending_closing_channels\CAN\ETX \ETX(\v2,.lnrpc.PendingChannelsResponse.ClosedChannelR\SYNpendingClosingChannelsB\STX\CAN\SOH\DC2v\n\+ \\RSpending_force_closing_channels\CAN\EOT \ETX(\v21.lnrpc.PendingChannelsResponse.ForceClosedChannelR\ESCpendingForceClosingChannels\DC2h\n\+ \\SYNwaiting_close_channels\CAN\ENQ \ETX(\v22.lnrpc.PendingChannelsResponse.WaitingCloseChannelR\DC4waitingCloseChannels\SUB\217\ETX\n\+ \\SOPendingChannel\DC2&\n\+ \\SIremote_node_pub\CAN\SOH \SOH(\tR\rremoteNodePub\DC2#\n\+ \\rchannel_point\CAN\STX \SOH(\tR\fchannelPoint\DC2\SUB\n\+ \\bcapacity\CAN\ETX \SOH(\ETXR\bcapacity\DC2#\n\+ \\rlocal_balance\CAN\EOT \SOH(\ETXR\flocalBalance\DC2%\n\+ \\SOremote_balance\CAN\ENQ \SOH(\ETXR\rremoteBalance\DC23\n\+ \\SYNlocal_chan_reserve_sat\CAN\ACK \SOH(\ETXR\DC3localChanReserveSat\DC25\n\+ \\ETBremote_chan_reserve_sat\CAN\a \SOH(\ETXR\DC4remoteChanReserveSat\DC2.\n\+ \\tinitiator\CAN\b \SOH(\SO2\DLE.lnrpc.InitiatorR\tinitiator\DC2>\n\+ \\SIcommitment_type\CAN\t \SOH(\SO2\NAK.lnrpc.CommitmentTypeR\SOcommitmentType\DC26\n\+ \\ETBnum_forwarding_packages\CAN\n\+ \ \SOH(\ETXR\NAKnumForwardingPackages\SUB\240\SOH\n\+ \\DC2PendingOpenChannel\DC2G\n\+ \\achannel\CAN\SOH \SOH(\v2-.lnrpc.PendingChannelsResponse.PendingChannelR\achannel\DC2/\n\+ \\DC3confirmation_height\CAN\STX \SOH(\rR\DC2confirmationHeight\DC2\GS\n\+ \\n\+ \commit_fee\CAN\EOT \SOH(\ETXR\tcommitFee\DC2#\n\+ \\rcommit_weight\CAN\ENQ \SOH(\ETXR\fcommitWeight\DC2\FS\n\+ \\n\+ \fee_per_kw\CAN\ACK \SOH(\ETXR\bfeePerKw\SUB\209\SOH\n\+ \\DC3WaitingCloseChannel\DC2G\n\+ \\achannel\CAN\SOH \SOH(\v2-.lnrpc.PendingChannelsResponse.PendingChannelR\achannel\DC2#\n\+ \\rlimbo_balance\CAN\STX \SOH(\ETXR\flimboBalance\DC2L\n\+ \\vcommitments\CAN\ETX \SOH(\v2*.lnrpc.PendingChannelsResponse.CommitmentsR\vcommitments\SUB\163\STX\n\+ \\vCommitments\DC2\GS\n\+ \\n\+ \local_txid\CAN\SOH \SOH(\tR\tlocalTxid\DC2\US\n\+ \\vremote_txid\CAN\STX \SOH(\tR\n\+ \remoteTxid\DC2.\n\+ \\DC3remote_pending_txid\CAN\ETX \SOH(\tR\DC1remotePendingTxid\DC2/\n\+ \\DC4local_commit_fee_sat\CAN\EOT \SOH(\EOTR\DC1localCommitFeeSat\DC21\n\+ \\NAKremote_commit_fee_sat\CAN\ENQ \SOH(\EOTR\DC2remoteCommitFeeSat\DC2@\n\+ \\GSremote_pending_commit_fee_sat\CAN\ACK \SOH(\EOTR\EMremotePendingCommitFeeSat\SUB{\n\+ \\rClosedChannel\DC2G\n\+ \\achannel\CAN\SOH \SOH(\v2-.lnrpc.PendingChannelsResponse.PendingChannelR\achannel\DC2!\n\+ \\fclosing_txid\CAN\STX \SOH(\tR\vclosingTxid\SUB\238\ETX\n\+ \\DC2ForceClosedChannel\DC2G\n\+ \\achannel\CAN\SOH \SOH(\v2-.lnrpc.PendingChannelsResponse.PendingChannelR\achannel\DC2!\n\+ \\fclosing_txid\CAN\STX \SOH(\tR\vclosingTxid\DC2#\n\+ \\rlimbo_balance\CAN\ETX \SOH(\ETXR\flimboBalance\DC2'\n\+ \\SImaturity_height\CAN\EOT \SOH(\rR\SOmaturityHeight\DC2.\n\+ \\DC3blocks_til_maturity\CAN\ENQ \SOH(\ENQR\DC1blocksTilMaturity\DC2+\n\+ \\DC1recovered_balance\CAN\ACK \SOH(\ETXR\DLErecoveredBalance\DC27\n\+ \\rpending_htlcs\CAN\b \ETX(\v2\DC2.lnrpc.PendingHTLCR\fpendingHtlcs\DC2U\n\+ \\ACKanchor\CAN\t \SOH(\SO2=.lnrpc.PendingChannelsResponse.ForceClosedChannel.AnchorStateR\ACKanchor\"1\n\+ \\vAnchorState\DC2\t\n\+ \\ENQLIMBO\DLE\NUL\DC2\r\n\+ \\tRECOVERED\DLE\SOH\DC2\b\n\+ \\EOTLOST\DLE\STX\"\SUB\n\+ \\CANChannelEventSubscription\"\255\EOT\n\+ \\DC2ChannelEventUpdate\DC23\n\+ \\fopen_channel\CAN\SOH \SOH(\v2\SO.lnrpc.ChannelH\NULR\vopenChannel\DC2C\n\+ \\SOclosed_channel\CAN\STX \SOH(\v2\SUB.lnrpc.ChannelCloseSummaryH\NULR\rclosedChannel\DC2<\n\+ \\SOactive_channel\CAN\ETX \SOH(\v2\DC3.lnrpc.ChannelPointH\NULR\ractiveChannel\DC2@\n\+ \\DLEinactive_channel\CAN\EOT \SOH(\v2\DC3.lnrpc.ChannelPointH\NULR\SIinactiveChannel\DC2H\n\+ \\DC4pending_open_channel\CAN\ACK \SOH(\v2\DC4.lnrpc.PendingUpdateH\NULR\DC2pendingOpenChannel\DC2K\n\+ \\SYNfully_resolved_channel\CAN\a \SOH(\v2\DC3.lnrpc.ChannelPointH\NULR\DC4fullyResolvedChannel\DC28\n\+ \\EOTtype\CAN\ENQ \SOH(\SO2$.lnrpc.ChannelEventUpdate.UpdateTypeR\EOTtype\"\146\SOH\n\+ \\n\+ \UpdateType\DC2\DLE\n\+ \\fOPEN_CHANNEL\DLE\NUL\DC2\DC2\n\+ \\SOCLOSED_CHANNEL\DLE\SOH\DC2\DC2\n\+ \\SOACTIVE_CHANNEL\DLE\STX\DC2\DC4\n\+ \\DLEINACTIVE_CHANNEL\DLE\ETX\DC2\CAN\n\+ \\DC4PENDING_OPEN_CHANNEL\DLE\EOT\DC2\SUB\n\+ \\SYNFULLY_RESOLVED_CHANNEL\DLE\ENQB\t\n\+ \\achannel\"t\n\+ \\DC4WalletAccountBalance\DC2+\n\+ \\DC1confirmed_balance\CAN\SOH \SOH(\ETXR\DLEconfirmedBalance\DC2/\n\+ \\DC3unconfirmed_balance\CAN\STX \SOH(\ETXR\DC2unconfirmedBalance\"\SYN\n\+ \\DC4WalletBalanceRequest\"\213\STX\n\+ \\NAKWalletBalanceResponse\DC2#\n\+ \\rtotal_balance\CAN\SOH \SOH(\ETXR\ftotalBalance\DC2+\n\+ \\DC1confirmed_balance\CAN\STX \SOH(\ETXR\DLEconfirmedBalance\DC2/\n\+ \\DC3unconfirmed_balance\CAN\ETX \SOH(\ETXR\DC2unconfirmedBalance\DC2Y\n\+ \\SIaccount_balance\CAN\EOT \ETX(\v20.lnrpc.WalletBalanceResponse.AccountBalanceEntryR\SOaccountBalance\SUB^\n\+ \\DC3AccountBalanceEntry\DC2\DLE\n\+ \\ETXkey\CAN\SOH \SOH(\tR\ETXkey\DC21\n\+ \\ENQvalue\CAN\STX \SOH(\v2\ESC.lnrpc.WalletAccountBalanceR\ENQvalue:\STX8\SOH\".\n\+ \\ACKAmount\DC2\DLE\n\+ \\ETXsat\CAN\SOH \SOH(\EOTR\ETXsat\DC2\DC2\n\+ \\EOTmsat\CAN\STX \SOH(\EOTR\EOTmsat\"\ETB\n\+ \\NAKChannelBalanceRequest\"\128\EOT\n\+ \\SYNChannelBalanceResponse\DC2\FS\n\+ \\abalance\CAN\SOH \SOH(\ETXR\abalanceB\STX\CAN\SOH\DC24\n\+ \\DC4pending_open_balance\CAN\STX \SOH(\ETXR\DC2pendingOpenBalanceB\STX\CAN\SOH\DC22\n\+ \\rlocal_balance\CAN\ETX \SOH(\v2\r.lnrpc.AmountR\flocalBalance\DC24\n\+ \\SOremote_balance\CAN\EOT \SOH(\v2\r.lnrpc.AmountR\rremoteBalance\DC2E\n\+ \\ETBunsettled_local_balance\CAN\ENQ \SOH(\v2\r.lnrpc.AmountR\NAKunsettledLocalBalance\DC2G\n\+ \\CANunsettled_remote_balance\CAN\ACK \SOH(\v2\r.lnrpc.AmountR\SYNunsettledRemoteBalance\DC2J\n\+ \\SUBpending_open_local_balance\CAN\a \SOH(\v2\r.lnrpc.AmountR\ETBpendingOpenLocalBalance\DC2L\n\+ \\ESCpending_open_remote_balance\CAN\b \SOH(\v2\r.lnrpc.AmountR\CANpendingOpenRemoteBalance\"\174\ACK\n\+ \\DC2QueryRoutesRequest\DC2\ETB\n\+ \\apub_key\CAN\SOH \SOH(\tR\ACKpubKey\DC2\DLE\n\+ \\ETXamt\CAN\STX \SOH(\ETXR\ETXamt\DC2\EM\n\+ \\bamt_msat\CAN\f \SOH(\ETXR\aamtMsat\DC2(\n\+ \\DLEfinal_cltv_delta\CAN\EOT \SOH(\ENQR\SOfinalCltvDelta\DC2,\n\+ \\tfee_limit\CAN\ENQ \SOH(\v2\SI.lnrpc.FeeLimitR\bfeeLimit\DC2#\n\+ \\rignored_nodes\CAN\ACK \ETX(\fR\fignoredNodes\DC2;\n\+ \\rignored_edges\CAN\a \ETX(\v2\DC2.lnrpc.EdgeLocatorR\fignoredEdgesB\STX\CAN\SOH\DC2$\n\+ \\SOsource_pub_key\CAN\b \SOH(\tR\fsourcePubKey\DC2.\n\+ \\DC3use_mission_control\CAN\t \SOH(\bR\DC1useMissionControl\DC24\n\+ \\rignored_pairs\CAN\n\+ \ \ETX(\v2\SI.lnrpc.NodePairR\fignoredPairs\DC2\GS\n\+ \\n\+ \cltv_limit\CAN\v \SOH(\rR\tcltvLimit\DC2`\n\+ \\DC3dest_custom_records\CAN\r \ETX(\v20.lnrpc.QueryRoutesRequest.DestCustomRecordsEntryR\DC1destCustomRecords\DC2,\n\+ \\DLEoutgoing_chan_id\CAN\SO \SOH(\EOTR\SOoutgoingChanIdB\STX0\SOH\DC2&\n\+ \\SIlast_hop_pubkey\CAN\SI \SOH(\fR\rlastHopPubkey\DC21\n\+ \\vroute_hints\CAN\DLE \ETX(\v2\DLE.lnrpc.RouteHintR\n\+ \routeHints\DC26\n\+ \\rdest_features\CAN\DC1 \ETX(\SO2\DC1.lnrpc.FeatureBitR\fdestFeatures\SUBD\n\+ \\SYNDestCustomRecordsEntry\DC2\DLE\n\+ \\ETXkey\CAN\SOH \SOH(\EOTR\ETXkey\DC2\DC4\n\+ \\ENQvalue\CAN\STX \SOH(\fR\ENQvalue:\STX8\SOHJ\EOT\b\ETX\DLE\EOT\".\n\+ \\bNodePair\DC2\DC2\n\+ \\EOTfrom\CAN\SOH \SOH(\fR\EOTfrom\DC2\SO\n\+ \\STXto\CAN\STX \SOH(\fR\STXto\"]\n\+ \\vEdgeLocator\DC2!\n\+ \\n\+ \channel_id\CAN\SOH \SOH(\EOTR\tchannelIdB\STX0\SOH\DC2+\n\+ \\DC1direction_reverse\CAN\STX \SOH(\bR\DLEdirectionReverse\"^\n\+ \\DC3QueryRoutesResponse\DC2$\n\+ \\ACKroutes\CAN\SOH \ETX(\v2\f.lnrpc.RouteR\ACKroutes\DC2!\n\+ \\fsuccess_prob\CAN\STX \SOH(\SOHR\vsuccessProb\"\145\EOT\n\+ \\ETXHop\DC2\ESC\n\+ \\achan_id\CAN\SOH \SOH(\EOTR\ACKchanIdB\STX0\SOH\DC2'\n\+ \\rchan_capacity\CAN\STX \SOH(\ETXR\fchanCapacityB\STX\CAN\SOH\DC2(\n\+ \\SOamt_to_forward\CAN\ETX \SOH(\ETXR\famtToForwardB\STX\CAN\SOH\DC2\DC4\n\+ \\ETXfee\CAN\EOT \SOH(\ETXR\ETXfeeB\STX\CAN\SOH\DC2\SYN\n\+ \\ACKexpiry\CAN\ENQ \SOH(\rR\ACKexpiry\DC2-\n\+ \\DC3amt_to_forward_msat\CAN\ACK \SOH(\ETXR\DLEamtToForwardMsat\DC2\EM\n\+ \\bfee_msat\CAN\a \SOH(\ETXR\afeeMsat\DC2\ETB\n\+ \\apub_key\CAN\b \SOH(\tR\ACKpubKey\DC2\US\n\+ \\vtlv_payload\CAN\t \SOH(\bR\n\+ \tlvPayload\DC2/\n\+ \\n\+ \mpp_record\CAN\n\+ \ \SOH(\v2\DLE.lnrpc.MPPRecordR\tmppRecord\DC2/\n\+ \\n\+ \amp_record\CAN\f \SOH(\v2\DLE.lnrpc.AMPRecordR\tampRecord\DC2D\n\+ \\SOcustom_records\CAN\v \ETX(\v2\GS.lnrpc.Hop.CustomRecordsEntryR\rcustomRecords\SUB@\n\+ \\DC2CustomRecordsEntry\DC2\DLE\n\+ \\ETXkey\CAN\SOH \SOH(\EOTR\ETXkey\DC2\DC4\n\+ \\ENQvalue\CAN\STX \SOH(\fR\ENQvalue:\STX8\SOH\"T\n\+ \\tMPPRecord\DC2!\n\+ \\fpayment_addr\CAN\v \SOH(\fR\vpaymentAddr\DC2$\n\+ \\SOtotal_amt_msat\CAN\n\+ \ \SOH(\ETXR\ftotalAmtMsat\"b\n\+ \\tAMPRecord\DC2\GS\n\+ \\n\+ \root_share\CAN\SOH \SOH(\fR\trootShare\DC2\NAK\n\+ \\ACKset_id\CAN\STX \SOH(\fR\ENQsetId\DC2\US\n\+ \\vchild_index\CAN\ETX \SOH(\rR\n\+ \childIndex\"\225\SOH\n\+ \\ENQRoute\DC2&\n\+ \\SItotal_time_lock\CAN\SOH \SOH(\rR\rtotalTimeLock\DC2!\n\+ \\n\+ \total_fees\CAN\STX \SOH(\ETXR\ttotalFeesB\STX\CAN\SOH\DC2\US\n\+ \\ttotal_amt\CAN\ETX \SOH(\ETXR\btotalAmtB\STX\CAN\SOH\DC2\RS\n\+ \\EOThops\CAN\EOT \ETX(\v2\n\+ \.lnrpc.HopR\EOThops\DC2&\n\+ \\SItotal_fees_msat\CAN\ENQ \SOH(\ETXR\rtotalFeesMsat\DC2$\n\+ \\SOtotal_amt_msat\CAN\ACK \SOH(\ETXR\ftotalAmtMsat\"U\n\+ \\SINodeInfoRequest\DC2\ETB\n\+ \\apub_key\CAN\SOH \SOH(\tR\ACKpubKey\DC2)\n\+ \\DLEinclude_channels\CAN\STX \SOH(\bR\SIincludeChannels\"\174\SOH\n\+ \\bNodeInfo\DC2(\n\+ \\EOTnode\CAN\SOH \SOH(\v2\DC4.lnrpc.LightningNodeR\EOTnode\DC2!\n\+ \\fnum_channels\CAN\STX \SOH(\rR\vnumChannels\DC2%\n\+ \\SOtotal_capacity\CAN\ETX \SOH(\ETXR\rtotalCapacity\DC2.\n\+ \\bchannels\CAN\EOT \ETX(\v2\DC2.lnrpc.ChannelEdgeR\bchannels\"\180\STX\n\+ \\rLightningNode\DC2\US\n\+ \\vlast_update\CAN\SOH \SOH(\rR\n\+ \lastUpdate\DC2\ETB\n\+ \\apub_key\CAN\STX \SOH(\tR\ACKpubKey\DC2\DC4\n\+ \\ENQalias\CAN\ETX \SOH(\tR\ENQalias\DC20\n\+ \\taddresses\CAN\EOT \ETX(\v2\DC2.lnrpc.NodeAddressR\taddresses\DC2\DC4\n\+ \\ENQcolor\CAN\ENQ \SOH(\tR\ENQcolor\DC2>\n\+ \\bfeatures\CAN\ACK \ETX(\v2\".lnrpc.LightningNode.FeaturesEntryR\bfeatures\SUBK\n\+ \\rFeaturesEntry\DC2\DLE\n\+ \\ETXkey\CAN\SOH \SOH(\rR\ETXkey\DC2$\n\+ \\ENQvalue\CAN\STX \SOH(\v2\SO.lnrpc.FeatureR\ENQvalue:\STX8\SOH\";\n\+ \\vNodeAddress\DC2\CAN\n\+ \\anetwork\CAN\SOH \SOH(\tR\anetwork\DC2\DC2\n\+ \\EOTaddr\CAN\STX \SOH(\tR\EOTaddr\"\134\STX\n\+ \\rRoutingPolicy\DC2&\n\+ \\SItime_lock_delta\CAN\SOH \SOH(\rR\rtimeLockDelta\DC2\EM\n\+ \\bmin_htlc\CAN\STX \SOH(\ETXR\aminHtlc\DC2\"\n\+ \\rfee_base_msat\CAN\ETX \SOH(\ETXR\vfeeBaseMsat\DC2-\n\+ \\DC3fee_rate_milli_msat\CAN\EOT \SOH(\ETXR\DLEfeeRateMilliMsat\DC2\SUB\n\+ \\bdisabled\CAN\ENQ \SOH(\bR\bdisabled\DC2\"\n\+ \\rmax_htlc_msat\CAN\ACK \SOH(\EOTR\vmaxHtlcMsat\DC2\US\n\+ \\vlast_update\CAN\a \SOH(\rR\n\+ \lastUpdate\"\188\STX\n\+ \\vChannelEdge\DC2!\n\+ \\n\+ \channel_id\CAN\SOH \SOH(\EOTR\tchannelIdB\STX0\SOH\DC2\GS\n\+ \\n\+ \chan_point\CAN\STX \SOH(\tR\tchanPoint\DC2#\n\+ \\vlast_update\CAN\ETX \SOH(\rR\n\+ \lastUpdateB\STX\CAN\SOH\DC2\ESC\n\+ \\tnode1_pub\CAN\EOT \SOH(\tR\bnode1Pub\DC2\ESC\n\+ \\tnode2_pub\CAN\ENQ \SOH(\tR\bnode2Pub\DC2\SUB\n\+ \\bcapacity\CAN\ACK \SOH(\ETXR\bcapacity\DC27\n\+ \\fnode1_policy\CAN\a \SOH(\v2\DC4.lnrpc.RoutingPolicyR\vnode1Policy\DC27\n\+ \\fnode2_policy\CAN\b \SOH(\v2\DC4.lnrpc.RoutingPolicyR\vnode2Policy\"F\n\+ \\DC3ChannelGraphRequest\DC2/\n\+ \\DC3include_unannounced\CAN\SOH \SOH(\bR\DC2includeUnannounced\"d\n\+ \\fChannelGraph\DC2*\n\+ \\ENQnodes\CAN\SOH \ETX(\v2\DC4.lnrpc.LightningNodeR\ENQnodes\DC2(\n\+ \\ENQedges\CAN\STX \ETX(\v2\DC2.lnrpc.ChannelEdgeR\ENQedges\"A\n\+ \\DC2NodeMetricsRequest\DC2+\n\+ \\ENQtypes\CAN\SOH \ETX(\SO2\NAK.lnrpc.NodeMetricTypeR\ENQtypes\"\225\SOH\n\+ \\DC3NodeMetricsResponse\DC2l\n\+ \\SYNbetweenness_centrality\CAN\SOH \ETX(\v25.lnrpc.NodeMetricsResponse.BetweennessCentralityEntryR\NAKbetweennessCentrality\SUB\\\n\+ \\SUBBetweennessCentralityEntry\DC2\DLE\n\+ \\ETXkey\CAN\SOH \SOH(\tR\ETXkey\DC2(\n\+ \\ENQvalue\CAN\STX \SOH(\v2\DC2.lnrpc.FloatMetricR\ENQvalue:\STX8\SOH\"N\n\+ \\vFloatMetric\DC2\DC4\n\+ \\ENQvalue\CAN\SOH \SOH(\SOHR\ENQvalue\DC2)\n\+ \\DLEnormalized_value\CAN\STX \SOH(\SOHR\SInormalizedValue\".\n\+ \\SIChanInfoRequest\DC2\ESC\n\+ \\achan_id\CAN\SOH \SOH(\EOTR\ACKchanIdB\STX0\SOH\"\DC4\n\+ \\DC2NetworkInfoRequest\"\213\ETX\n\+ \\vNetworkInfo\DC2%\n\+ \\SOgraph_diameter\CAN\SOH \SOH(\rR\rgraphDiameter\DC2$\n\+ \\SOavg_out_degree\CAN\STX \SOH(\SOHR\favgOutDegree\DC2$\n\+ \\SOmax_out_degree\CAN\ETX \SOH(\rR\fmaxOutDegree\DC2\ESC\n\+ \\tnum_nodes\CAN\EOT \SOH(\rR\bnumNodes\DC2!\n\+ \\fnum_channels\CAN\ENQ \SOH(\rR\vnumChannels\DC24\n\+ \\SYNtotal_network_capacity\CAN\ACK \SOH(\ETXR\DC4totalNetworkCapacity\DC2(\n\+ \\DLEavg_channel_size\CAN\a \SOH(\SOHR\SOavgChannelSize\DC2(\n\+ \\DLEmin_channel_size\CAN\b \SOH(\ETXR\SOminChannelSize\DC2(\n\+ \\DLEmax_channel_size\CAN\t \SOH(\ETXR\SOmaxChannelSize\DC25\n\+ \\ETBmedian_channel_size_sat\CAN\n\+ \ \SOH(\ETXR\DC4medianChannelSizeSat\DC2(\n\+ \\DLEnum_zombie_chans\CAN\v \SOH(\EOTR\SOnumZombieChans\"\r\n\+ \\vStopRequest\"\SO\n\+ \\fStopResponse\"\ESC\n\+ \\EMGraphTopologySubscription\"\205\SOH\n\+ \\DC3GraphTopologyUpdate\DC24\n\+ \\fnode_updates\CAN\SOH \ETX(\v2\DC1.lnrpc.NodeUpdateR\vnodeUpdates\DC2A\n\+ \\SIchannel_updates\CAN\STX \ETX(\v2\CAN.lnrpc.ChannelEdgeUpdateR\SOchannelUpdates\DC2=\n\+ \\fclosed_chans\CAN\ETX \ETX(\v2\SUB.lnrpc.ClosedChannelUpdateR\vclosedChans\"\239\STX\n\+ \\n\+ \NodeUpdate\DC2 \n\+ \\taddresses\CAN\SOH \ETX(\tR\taddressesB\STX\CAN\SOH\DC2!\n\+ \\fidentity_key\CAN\STX \SOH(\tR\videntityKey\DC2+\n\+ \\SIglobal_features\CAN\ETX \SOH(\fR\SOglobalFeaturesB\STX\CAN\SOH\DC2\DC4\n\+ \\ENQalias\CAN\EOT \SOH(\tR\ENQalias\DC2\DC4\n\+ \\ENQcolor\CAN\ENQ \SOH(\tR\ENQcolor\DC29\n\+ \\SOnode_addresses\CAN\a \ETX(\v2\DC2.lnrpc.NodeAddressR\rnodeAddresses\DC2;\n\+ \\bfeatures\CAN\ACK \ETX(\v2\US.lnrpc.NodeUpdate.FeaturesEntryR\bfeatures\SUBK\n\+ \\rFeaturesEntry\DC2\DLE\n\+ \\ETXkey\CAN\SOH \SOH(\rR\ETXkey\DC2$\n\+ \\ENQvalue\CAN\STX \SOH(\v2\SO.lnrpc.FeatureR\ENQvalue:\STX8\SOH\"\145\STX\n\+ \\DC1ChannelEdgeUpdate\DC2\ESC\n\+ \\achan_id\CAN\SOH \SOH(\EOTR\ACKchanIdB\STX0\SOH\DC22\n\+ \\n\+ \chan_point\CAN\STX \SOH(\v2\DC3.lnrpc.ChannelPointR\tchanPoint\DC2\SUB\n\+ \\bcapacity\CAN\ETX \SOH(\ETXR\bcapacity\DC2;\n\+ \\SOrouting_policy\CAN\EOT \SOH(\v2\DC4.lnrpc.RoutingPolicyR\rroutingPolicy\DC2)\n\+ \\DLEadvertising_node\CAN\ENQ \SOH(\tR\SIadvertisingNode\DC2'\n\+ \\SIconnecting_node\CAN\ACK \SOH(\tR\SOconnectingNode\"\167\SOH\n\+ \\DC3ClosedChannelUpdate\DC2\ESC\n\+ \\achan_id\CAN\SOH \SOH(\EOTR\ACKchanIdB\STX0\SOH\DC2\SUB\n\+ \\bcapacity\CAN\STX \SOH(\ETXR\bcapacity\DC2#\n\+ \\rclosed_height\CAN\ETX \SOH(\rR\fclosedHeight\DC22\n\+ \\n\+ \chan_point\CAN\EOT \SOH(\v2\DC3.lnrpc.ChannelPointR\tchanPoint*\207\EOT\n\+ \\n\+ \FeatureBit\DC2\CAN\n\+ \\DC4DATALOSS_PROTECT_REQ\DLE\NUL\DC2\CAN\n\+ \\DC4DATALOSS_PROTECT_OPT\DLE\SOH\DC2\ETB\n\+ \\DC3INITIAL_ROUING_SYNC\DLE\ETX\DC2\US\n\+ \\ESCUPFRONT_SHUTDOWN_SCRIPT_REQ\DLE\EOT\DC2\US\n\+ \\ESCUPFRONT_SHUTDOWN_SCRIPT_OPT\DLE\ENQ\DC2\SYN\n\+ \\DC2GOSSIP_QUERIES_REQ\DLE\ACK\DC2\SYN\n\+ \\DC2GOSSIP_QUERIES_OPT\DLE\a\DC2\DC1\n\+ \\rTLV_ONION_REQ\DLE\b\DC2\DC1\n\+ \\rTLV_ONION_OPT\DLE\t\DC2\SUB\n\+ \\SYNEXT_GOSSIP_QUERIES_REQ\DLE\n\+ \\DC2\SUB\n\+ \\SYNEXT_GOSSIP_QUERIES_OPT\DLE\v\DC2\EM\n\+ \\NAKSTATIC_REMOTE_KEY_REQ\DLE\f\DC2\EM\n\+ \\NAKSTATIC_REMOTE_KEY_OPT\DLE\r\DC2\DC4\n\+ \\DLEPAYMENT_ADDR_REQ\DLE\SO\DC2\DC4\n\+ \\DLEPAYMENT_ADDR_OPT\DLE\SI\DC2\v\n\+ \\aMPP_REQ\DLE\DLE\DC2\v\n\+ \\aMPP_OPT\DLE\DC1\DC2\SYN\n\+ \\DC2WUMBO_CHANNELS_REQ\DLE\DC2\DC2\SYN\n\+ \\DC2WUMBO_CHANNELS_OPT\DLE\DC3\DC2\SI\n\+ \\vANCHORS_REQ\DLE\DC4\DC2\SI\n\+ \\vANCHORS_OPT\DLE\NAK\DC2\GS\n\+ \\EMANCHORS_ZERO_FEE_HTLC_REQ\DLE\SYN\DC2\GS\n\+ \\EMANCHORS_ZERO_FEE_HTLC_OPT\DLE\ETB\DC2\v\n\+ \\aAMP_REQ\DLE\RS\DC2\v\n\+ \\aAMP_OPT\DLE\US*a\n\+ \\tInitiator\DC2\NAK\n\+ \\DC1INITIATOR_UNKNOWN\DLE\NUL\DC2\DC3\n\+ \\SIINITIATOR_LOCAL\DLE\SOH\DC2\DC4\n\+ \\DLEINITIATOR_REMOTE\DLE\STX\DC2\DC2\n\+ \\SOINITIATOR_BOTH\DLE\ETX*x\n\+ \\SOCommitmentType\DC2\ESC\n\+ \\ETBUNKNOWN_COMMITMENT_TYPE\DLE\NUL\DC2\n\+ \\n\+ \\ACKLEGACY\DLE\SOH\DC2\NAK\n\+ \\DC1STATIC_REMOTE_KEY\DLE\STX\DC2\v\n\+ \\aANCHORS\DLE\ETX\DC2\EM\n\+ \\NAKSCRIPT_ENFORCED_LEASE\DLE\EOT*`\n\+ \\SOResolutionType\DC2\DLE\n\+ \\fTYPE_UNKNOWN\DLE\NUL\DC2\n\+ \\n\+ \\ACKANCHOR\DLE\SOH\DC2\DC1\n\+ \\rINCOMING_HTLC\DLE\STX\DC2\DC1\n\+ \\rOUTGOING_HTLC\DLE\ETX\DC2\n\+ \\n\+ \\ACKCOMMIT\DLE\EOT*q\n\+ \\DC1ResolutionOutcome\DC2\DC3\n\+ \\SIOUTCOME_UNKNOWN\DLE\NUL\DC2\v\n\+ \\aCLAIMED\DLE\SOH\DC2\r\n\+ \\tUNCLAIMED\DLE\STX\DC2\r\n\+ \\tABANDONED\DLE\ETX\DC2\SI\n\+ \\vFIRST_STAGE\DLE\EOT\DC2\v\n\+ \\aTIMEOUT\DLE\ENQ*9\n\+ \\SONodeMetricType\DC2\v\n\+ \\aUNKNOWN\DLE\NUL\DC2\SUB\n\+ \\SYNBETWEENNESS_CENTRALITY\DLE\SOHB'Z%github.com/lightningnetwork/lnd/lnrpcJ\232\133\ETX\n\+ \\a\DC2\ENQ\NUL\NUL\178\v\SOH\n\+ \\b\n\+ \\SOH\f\DC2\ETX\NUL\NUL\DC2\n\+ \\b\n\+ \\SOH\STX\DC2\ETX\STX\NUL\SO\n\+ \\b\n\+ \\SOH\b\DC2\ETX\EOT\NUL<\n\+ \\t\n\+ \\STX\b\v\DC2\ETX\EOT\NUL<\n\+ \\RS\n\+ \\STX\EOT\NUL\DC2\EOT\n\+ \\NUL\SO\SOH2\DC2\n\+ \ LowLevel stuff\n\+ \\n\+ \\n\+ \\n\+ \\n\+ \\ETX\EOT\NUL\SOH\DC2\ETX\n\+ \\b\SI\n\+ \\v\n\+ \\EOT\EOT\NUL\STX\NUL\DC2\ETX\v\EOT\DC4\n\+ \\f\n\+ \\ENQ\EOT\NUL\STX\NUL\ENQ\DC2\ETX\v\EOT\n\+ \\n\+ \\f\n\+ \\ENQ\EOT\NUL\STX\NUL\SOH\DC2\ETX\v\v\SI\n\+ \\f\n\+ \\ENQ\EOT\NUL\STX\NUL\ETX\DC2\ETX\v\DC2\DC3\n\+ \\v\n\+ \\EOT\EOT\NUL\STX\SOH\DC2\ETX\f\EOT\EM\n\+ \\f\n\+ \\ENQ\EOT\NUL\STX\SOH\ENQ\DC2\ETX\f\EOT\b\n\+ \\f\n\+ \\ENQ\EOT\NUL\STX\SOH\SOH\DC2\ETX\f\t\DC4\n\+ \\f\n\+ \\ENQ\EOT\NUL\STX\SOH\ETX\DC2\ETX\f\ETB\CAN\n\+ \\v\n\+ \\EOT\EOT\NUL\STX\STX\DC2\ETX\r\EOT\SYN\n\+ \\f\n\+ \\ENQ\EOT\NUL\STX\STX\ENQ\DC2\ETX\r\EOT\b\n\+ \\f\n\+ \\ENQ\EOT\NUL\STX\STX\SOH\DC2\ETX\r\t\DC1\n\+ \\f\n\+ \\ENQ\EOT\NUL\STX\STX\ETX\DC2\ETX\r\DC4\NAK\n\+ \\n\+ \\n\+ \\STX\ENQ\NUL\DC2\EOT\DLE\NUL*\SOH\n\+ \\n\+ \\n\+ \\ETX\ENQ\NUL\SOH\DC2\ETX\DLE\ENQ\SI\n\+ \\v\n\+ \\EOT\ENQ\NUL\STX\NUL\DC2\ETX\DC1\EOT\GS\n\+ \\f\n\+ \\ENQ\ENQ\NUL\STX\NUL\SOH\DC2\ETX\DC1\EOT\CAN\n\+ \\f\n\+ \\ENQ\ENQ\NUL\STX\NUL\STX\DC2\ETX\DC1\ESC\FS\n\+ \\v\n\+ \\EOT\ENQ\NUL\STX\SOH\DC2\ETX\DC2\EOT\GS\n\+ \\f\n\+ \\ENQ\ENQ\NUL\STX\SOH\SOH\DC2\ETX\DC2\EOT\CAN\n\+ \\f\n\+ \\ENQ\ENQ\NUL\STX\SOH\STX\DC2\ETX\DC2\ESC\FS\n\+ \\v\n\+ \\EOT\ENQ\NUL\STX\STX\DC2\ETX\DC3\EOT\FS\n\+ \\f\n\+ \\ENQ\ENQ\NUL\STX\STX\SOH\DC2\ETX\DC3\EOT\ETB\n\+ \\f\n\+ \\ENQ\ENQ\NUL\STX\STX\STX\DC2\ETX\DC3\SUB\ESC\n\+ \\v\n\+ \\EOT\ENQ\NUL\STX\ETX\DC2\ETX\DC4\EOT$\n\+ \\f\n\+ \\ENQ\ENQ\NUL\STX\ETX\SOH\DC2\ETX\DC4\EOT\US\n\+ \\f\n\+ \\ENQ\ENQ\NUL\STX\ETX\STX\DC2\ETX\DC4\"#\n\+ \\v\n\+ \\EOT\ENQ\NUL\STX\EOT\DC2\ETX\NAK\EOT$\n\+ \\f\n\+ \\ENQ\ENQ\NUL\STX\EOT\SOH\DC2\ETX\NAK\EOT\US\n\+ \\f\n\+ \\ENQ\ENQ\NUL\STX\EOT\STX\DC2\ETX\NAK\"#\n\+ \\v\n\+ \\EOT\ENQ\NUL\STX\ENQ\DC2\ETX\SYN\EOT\ESC\n\+ \\f\n\+ \\ENQ\ENQ\NUL\STX\ENQ\SOH\DC2\ETX\SYN\EOT\SYN\n\+ \\f\n\+ \\ENQ\ENQ\NUL\STX\ENQ\STX\DC2\ETX\SYN\EM\SUB\n\+ \\v\n\+ \\EOT\ENQ\NUL\STX\ACK\DC2\ETX\ETB\EOT\ESC\n\+ \\f\n\+ \\ENQ\ENQ\NUL\STX\ACK\SOH\DC2\ETX\ETB\EOT\SYN\n\+ \\f\n\+ \\ENQ\ENQ\NUL\STX\ACK\STX\DC2\ETX\ETB\EM\SUB\n\+ \\v\n\+ \\EOT\ENQ\NUL\STX\a\DC2\ETX\CAN\EOT\SYN\n\+ \\f\n\+ \\ENQ\ENQ\NUL\STX\a\SOH\DC2\ETX\CAN\EOT\DC1\n\+ \\f\n\+ \\ENQ\ENQ\NUL\STX\a\STX\DC2\ETX\CAN\DC4\NAK\n\+ \\v\n\+ \\EOT\ENQ\NUL\STX\b\DC2\ETX\EM\EOT\SYN\n\+ \\f\n\+ \\ENQ\ENQ\NUL\STX\b\SOH\DC2\ETX\EM\EOT\DC1\n\+ \\f\n\+ \\ENQ\ENQ\NUL\STX\b\STX\DC2\ETX\EM\DC4\NAK\n\+ \\v\n\+ \\EOT\ENQ\NUL\STX\t\DC2\ETX\SUB\EOT \n\+ \\f\n\+ \\ENQ\ENQ\NUL\STX\t\SOH\DC2\ETX\SUB\EOT\SUB\n\+ \\f\n\+ \\ENQ\ENQ\NUL\STX\t\STX\DC2\ETX\SUB\GS\US\n\+ \\v\n\+ \\EOT\ENQ\NUL\STX\n\+ \\DC2\ETX\ESC\EOT \n\+ \\f\n\+ \\ENQ\ENQ\NUL\STX\n\+ \\SOH\DC2\ETX\ESC\EOT\SUB\n\+ \\f\n\+ \\ENQ\ENQ\NUL\STX\n\+ \\STX\DC2\ETX\ESC\GS\US\n\+ \\v\n\+ \\EOT\ENQ\NUL\STX\v\DC2\ETX\FS\EOT\US\n\+ \\f\n\+ \\ENQ\ENQ\NUL\STX\v\SOH\DC2\ETX\FS\EOT\EM\n\+ \\f\n\+ \\ENQ\ENQ\NUL\STX\v\STX\DC2\ETX\FS\FS\RS\n\+ \\v\n\+ \\EOT\ENQ\NUL\STX\f\DC2\ETX\GS\EOT\US\n\+ \\f\n\+ \\ENQ\ENQ\NUL\STX\f\SOH\DC2\ETX\GS\EOT\EM\n\+ \\f\n\+ \\ENQ\ENQ\NUL\STX\f\STX\DC2\ETX\GS\FS\RS\n\+ \\v\n\+ \\EOT\ENQ\NUL\STX\r\DC2\ETX\RS\EOT\SUB\n\+ \\f\n\+ \\ENQ\ENQ\NUL\STX\r\SOH\DC2\ETX\RS\EOT\DC4\n\+ \\f\n\+ \\ENQ\ENQ\NUL\STX\r\STX\DC2\ETX\RS\ETB\EM\n\+ \\v\n\+ \\EOT\ENQ\NUL\STX\SO\DC2\ETX\US\EOT\SUB\n\+ \\f\n\+ \\ENQ\ENQ\NUL\STX\SO\SOH\DC2\ETX\US\EOT\DC4\n\+ \\f\n\+ \\ENQ\ENQ\NUL\STX\SO\STX\DC2\ETX\US\ETB\EM\n\+ \\v\n\+ \\EOT\ENQ\NUL\STX\SI\DC2\ETX \EOT\DC1\n\+ \\f\n\+ \\ENQ\ENQ\NUL\STX\SI\SOH\DC2\ETX \EOT\v\n\+ \\f\n\+ \\ENQ\ENQ\NUL\STX\SI\STX\DC2\ETX \SO\DLE\n\+ \\v\n\+ \\EOT\ENQ\NUL\STX\DLE\DC2\ETX!\EOT\DC1\n\+ \\f\n\+ \\ENQ\ENQ\NUL\STX\DLE\SOH\DC2\ETX!\EOT\v\n\+ \\f\n\+ \\ENQ\ENQ\NUL\STX\DLE\STX\DC2\ETX!\SO\DLE\n\+ \\v\n\+ \\EOT\ENQ\NUL\STX\DC1\DC2\ETX\"\EOT\FS\n\+ \\f\n\+ \\ENQ\ENQ\NUL\STX\DC1\SOH\DC2\ETX\"\EOT\SYN\n\+ \\f\n\+ \\ENQ\ENQ\NUL\STX\DC1\STX\DC2\ETX\"\EM\ESC\n\+ \\v\n\+ \\EOT\ENQ\NUL\STX\DC2\DC2\ETX#\EOT\FS\n\+ \\f\n\+ \\ENQ\ENQ\NUL\STX\DC2\SOH\DC2\ETX#\EOT\SYN\n\+ \\f\n\+ \\ENQ\ENQ\NUL\STX\DC2\STX\DC2\ETX#\EM\ESC\n\+ \\v\n\+ \\EOT\ENQ\NUL\STX\DC3\DC2\ETX$\EOT\NAK\n\+ \\f\n\+ \\ENQ\ENQ\NUL\STX\DC3\SOH\DC2\ETX$\EOT\SI\n\+ \\f\n\+ \\ENQ\ENQ\NUL\STX\DC3\STX\DC2\ETX$\DC2\DC4\n\+ \\v\n\+ \\EOT\ENQ\NUL\STX\DC4\DC2\ETX%\EOT\NAK\n\+ \\f\n\+ \\ENQ\ENQ\NUL\STX\DC4\SOH\DC2\ETX%\EOT\SI\n\+ \\f\n\+ \\ENQ\ENQ\NUL\STX\DC4\STX\DC2\ETX%\DC2\DC4\n\+ \\v\n\+ \\EOT\ENQ\NUL\STX\NAK\DC2\ETX&\EOT#\n\+ \\f\n\+ \\ENQ\ENQ\NUL\STX\NAK\SOH\DC2\ETX&\EOT\GS\n\+ \\f\n\+ \\ENQ\ENQ\NUL\STX\NAK\STX\DC2\ETX& \"\n\+ \\v\n\+ \\EOT\ENQ\NUL\STX\SYN\DC2\ETX'\EOT#\n\+ \\f\n\+ \\ENQ\ENQ\NUL\STX\SYN\SOH\DC2\ETX'\EOT\GS\n\+ \\f\n\+ \\ENQ\ENQ\NUL\STX\SYN\STX\DC2\ETX' \"\n\+ \\v\n\+ \\EOT\ENQ\NUL\STX\ETB\DC2\ETX(\EOT\DC1\n\+ \\f\n\+ \\ENQ\ENQ\NUL\STX\ETB\SOH\DC2\ETX(\EOT\v\n\+ \\f\n\+ \\ENQ\ENQ\NUL\STX\ETB\STX\DC2\ETX(\SO\DLE\n\+ \\v\n\+ \\EOT\ENQ\NUL\STX\CAN\DC2\ETX)\EOT\DC1\n\+ \\f\n\+ \\ENQ\ENQ\NUL\STX\CAN\SOH\DC2\ETX)\EOT\v\n\+ \\f\n\+ \\ENQ\ENQ\NUL\STX\CAN\STX\DC2\ETX)\SO\DLE\n\+ \\n\+ \\n\+ \\STX\EOT\SOH\DC2\EOT,\NUL2\SOH\n\+ \\n\+ \\n\+ \\ETX\EOT\SOH\SOH\DC2\ETX,\b\DC1\n\+ \l\n\+ \\EOT\EOT\SOH\STX\NUL\DC2\ETX1\EOT#\SUB_\n\+ \A list of hop hints that when chained together can assist in reaching a\n\+ \specific destination.\n\+ \\n\+ \\f\n\+ \\ENQ\EOT\SOH\STX\NUL\EOT\DC2\ETX1\EOT\f\n\+ \\f\n\+ \\ENQ\EOT\SOH\STX\NUL\ACK\DC2\ETX1\r\DC4\n\+ \\f\n\+ \\ENQ\EOT\SOH\STX\NUL\SOH\DC2\ETX1\NAK\RS\n\+ \\f\n\+ \\ENQ\EOT\SOH\STX\NUL\ETX\DC2\ETX1!\"\n\+ \\n\+ \\n\+ \\STX\EOT\STX\DC2\EOT4\NULF\SOH\n\+ \\n\+ \\n\+ \\ETX\EOT\STX\SOH\DC2\ETX4\b\SI\n\+ \F\n\+ \\EOT\EOT\STX\STX\NUL\DC2\ETX6\EOT\ETB\SUB9 The public key of the node at the start of the channel.\n\+ \\n\+ \\f\n\+ \\ENQ\EOT\STX\STX\NUL\ENQ\DC2\ETX6\EOT\n\+ \\n\+ \\f\n\+ \\ENQ\EOT\STX\STX\NUL\SOH\DC2\ETX6\v\DC2\n\+ \\f\n\+ \\ENQ\EOT\STX\STX\NUL\ETX\DC2\ETX6\NAK\SYN\n\+ \4\n\+ \\EOT\EOT\STX\STX\SOH\DC2\ETX9\EOT,\SUB' The unique identifier of the channel.\n\+ \\n\+ \\f\n\+ \\ENQ\EOT\STX\STX\SOH\ENQ\DC2\ETX9\EOT\n\+ \\n\+ \\f\n\+ \\ENQ\EOT\STX\STX\SOH\SOH\DC2\ETX9\v\DC2\n\+ \\f\n\+ \\ENQ\EOT\STX\STX\SOH\ETX\DC2\ETX9\NAK\SYN\n\+ \\f\n\+ \\ENQ\EOT\STX\STX\SOH\b\DC2\ETX9\ETB+\n\+ \\r\n\+ \\ACK\EOT\STX\STX\SOH\b\ACK\DC2\ETX9\CAN*\n\+ \H\n\+ \\EOT\EOT\STX\STX\STX\DC2\ETX<\EOT\GS\SUB; The base fee of the channel denominated in millisatoshis.\n\+ \\n\+ \\f\n\+ \\ENQ\EOT\STX\STX\STX\ENQ\DC2\ETX<\EOT\n\+ \\n\+ \\f\n\+ \\ENQ\EOT\STX\STX\STX\SOH\DC2\ETX<\v\CAN\n\+ \\f\n\+ \\ENQ\EOT\STX\STX\STX\ETX\DC2\ETX<\ESC\FS\n\+ \t\n\+ \\EOT\EOT\STX\STX\ETX\DC2\ETXB\EOT+\SUBg\n\+ \The fee rate of the channel for sending one satoshi across it denominated in\n\+ \millionths of a satoshi.\n\+ \\n\+ \\f\n\+ \\ENQ\EOT\STX\STX\ETX\ENQ\DC2\ETXB\EOT\n\+ \\n\+ \\f\n\+ \\ENQ\EOT\STX\STX\ETX\SOH\DC2\ETXB\v&\n\+ \\f\n\+ \\ENQ\EOT\STX\STX\ETX\ETX\DC2\ETXB)*\n\+ \2\n\+ \\EOT\EOT\STX\STX\EOT\DC2\ETXE\EOT!\SUB% The time-lock delta of the channel.\n\+ \\n\+ \\f\n\+ \\ENQ\EOT\STX\STX\EOT\ENQ\DC2\ETXE\EOT\n\+ \\n\+ \\f\n\+ \\ENQ\EOT\STX\STX\EOT\SOH\DC2\ETXE\v\FS\n\+ \\f\n\+ \\ENQ\EOT\STX\STX\EOT\ETX\DC2\ETXE\US \n\+ \\n\+ \\n\+ \\STX\EOT\ETX\DC2\EOTH\NULY\SOH\n\+ \\n\+ \\n\+ \\ETX\EOT\ETX\SOH\DC2\ETXH\b\DC4\n\+ \\f\n\+ \\EOT\EOT\ETX\b\NUL\DC2\EOTI\EOTU\ENQ\n\+ \\f\n\+ \\ENQ\EOT\ETX\b\NUL\SOH\DC2\ETXI\n\+ \\SYN\n\+ \f\n\+ \\EOT\EOT\ETX\STX\NUL\DC2\ETXN\b%\SUBY\n\+ \Txid of the funding transaction. When using REST, this field must be\n\+ \encoded as base64.\n\+ \\n\+ \\f\n\+ \\ENQ\EOT\ETX\STX\NUL\ENQ\DC2\ETXN\b\r\n\+ \\f\n\+ \\ENQ\EOT\ETX\STX\NUL\SOH\DC2\ETXN\SO \n\+ \\f\n\+ \\ENQ\EOT\ETX\STX\NUL\ETX\DC2\ETXN#$\n\+ \a\n\+ \\EOT\EOT\ETX\STX\SOH\DC2\ETXT\b$\SUBT\n\+ \Hex-encoded string representing the byte-reversed hash of the funding\n\+ \transaction.\n\+ \\n\+ \\f\n\+ \\ENQ\EOT\ETX\STX\SOH\ENQ\DC2\ETXT\b\SO\n\+ \\f\n\+ \\ENQ\EOT\ETX\STX\SOH\SOH\DC2\ETXT\SI\US\n\+ \\f\n\+ \\ENQ\EOT\ETX\STX\SOH\ETX\DC2\ETXT\"#\n\+ \A\n\+ \\EOT\EOT\ETX\STX\STX\DC2\ETXX\EOT\FS\SUB4 The index of the output of the funding transaction\n\+ \\n\+ \\f\n\+ \\ENQ\EOT\ETX\STX\STX\ENQ\DC2\ETXX\EOT\n\+ \\n\+ \\f\n\+ \\ENQ\EOT\ETX\STX\STX\SOH\DC2\ETXX\v\ETB\n\+ \\f\n\+ \\ENQ\EOT\ETX\STX\STX\ETX\DC2\ETXX\SUB\ESC\n\+ \\n\+ \\n\+ \\STX\EOT\EOT\DC2\EOT[\NULd\SOH\n\+ \\n\+ \\n\+ \\ETX\EOT\EOT\SOH\DC2\ETX[\b\DLE\n\+ \9\n\+ \\EOT\EOT\EOT\STX\NUL\DC2\ETX]\EOT\EM\SUB, Raw bytes representing the transaction id.\n\+ \\n\+ \\f\n\+ \\ENQ\EOT\EOT\STX\NUL\ENQ\DC2\ETX]\EOT\t\n\+ \\f\n\+ \\ENQ\EOT\EOT\STX\NUL\SOH\DC2\ETX]\n\+ \\DC4\n\+ \\f\n\+ \\ENQ\EOT\EOT\STX\NUL\ETX\DC2\ETX]\ETB\CAN\n\+ \L\n\+ \\EOT\EOT\EOT\STX\SOH\DC2\ETX`\EOT\CAN\SUB? Reversed, hex-encoded string representing the transaction id.\n\+ \\n\+ \\f\n\+ \\ENQ\EOT\EOT\STX\SOH\ENQ\DC2\ETX`\EOT\n\+ \\n\+ \\f\n\+ \\ENQ\EOT\EOT\STX\SOH\SOH\DC2\ETX`\v\DC3\n\+ \\f\n\+ \\ENQ\EOT\EOT\STX\SOH\ETX\DC2\ETX`\SYN\ETB\n\+ \:\n\+ \\EOT\EOT\EOT\STX\STX\DC2\ETXc\EOT\FS\SUB- The index of the output on the transaction.\n\+ \\n\+ \\f\n\+ \\ENQ\EOT\EOT\STX\STX\ENQ\DC2\ETXc\EOT\n\+ \\n\+ \\f\n\+ \\ENQ\EOT\EOT\STX\STX\SOH\DC2\ETXc\v\ETB\n\+ \\f\n\+ \\ENQ\EOT\EOT\STX\STX\ETX\DC2\ETXc\SUB\ESC\n\+ \\n\+ \\n\+ \\STX\ENQ\SOH\DC2\EOTf\NULk\SOH\n\+ \\n\+ \\n\+ \\ETX\ENQ\SOH\SOH\DC2\ETXf\ENQ\SO\n\+ \\v\n\+ \\EOT\ENQ\SOH\STX\NUL\DC2\ETXg\EOT\SUB\n\+ \\f\n\+ \\ENQ\ENQ\SOH\STX\NUL\SOH\DC2\ETXg\EOT\NAK\n\+ \\f\n\+ \\ENQ\ENQ\SOH\STX\NUL\STX\DC2\ETXg\CAN\EM\n\+ \\v\n\+ \\EOT\ENQ\SOH\STX\SOH\DC2\ETXh\EOT\CAN\n\+ \\f\n\+ \\ENQ\ENQ\SOH\STX\SOH\SOH\DC2\ETXh\EOT\DC3\n\+ \\f\n\+ \\ENQ\ENQ\SOH\STX\SOH\STX\DC2\ETXh\SYN\ETB\n\+ \\v\n\+ \\EOT\ENQ\SOH\STX\STX\DC2\ETXi\EOT\EM\n\+ \\f\n\+ \\ENQ\ENQ\SOH\STX\STX\SOH\DC2\ETXi\EOT\DC4\n\+ \\f\n\+ \\ENQ\ENQ\SOH\STX\STX\STX\DC2\ETXi\ETB\CAN\n\+ \\v\n\+ \\EOT\ENQ\SOH\STX\ETX\DC2\ETXj\EOT\ETB\n\+ \\f\n\+ \\ENQ\ENQ\SOH\STX\ETX\SOH\DC2\ETXj\EOT\DC2\n\+ \\f\n\+ \\ENQ\ENQ\SOH\STX\ETX\STX\DC2\ETXj\NAK\SYN\n\+ \\v\n\+ \\STX\ENQ\STX\DC2\ENQm\NUL\144\SOH\SOH\n\+ \\n\+ \\n\+ \\ETX\ENQ\STX\SOH\DC2\ETXm\ENQ\DC3\n\+ \L\n\+ \\EOT\ENQ\STX\STX\NUL\DC2\ETXq\EOT \SUB?\n\+ \Returned when the commitment type isn't known or unavailable.\n\+ \\n\+ \\f\n\+ \\ENQ\ENQ\STX\STX\NUL\SOH\DC2\ETXq\EOT\ESC\n\+ \\f\n\+ \\ENQ\ENQ\STX\STX\NUL\STX\DC2\ETXq\RS\US\n\+ \Z\n\+ \\EOT\ENQ\STX\STX\SOH\DC2\ETXw\EOT\SI\SUBM\n\+ \A channel using the legacy commitment format having tweaked to_remote\n\+ \keys.\n\+ \\n\+ \\f\n\+ \\ENQ\ENQ\STX\STX\SOH\SOH\DC2\ETXw\EOT\n\+ \\n\+ \\f\n\+ \\ENQ\ENQ\STX\STX\SOH\STX\DC2\ETXw\r\SO\n\+ \\245\SOH\n\+ \\EOT\ENQ\STX\STX\STX\DC2\ETX\DEL\EOT\SUB\SUB\231\SOH\n\+ \A channel that uses the modern commitment format where the key in the\n\+ \output of the remote party does not change each state. This makes back\n\+ \up and recovery easier as when the channel is closed, the funds go\n\+ \directly to that key.\n\+ \\n\+ \\f\n\+ \\ENQ\ENQ\STX\STX\STX\SOH\DC2\ETX\DEL\EOT\NAK\n\+ \\f\n\+ \\ENQ\ENQ\STX\STX\STX\STX\DC2\ETX\DEL\CAN\EM\n\+ \\173\SOH\n\+ \\EOT\ENQ\STX\STX\ETX\DC2\EOT\134\SOH\EOT\DLE\SUB\158\SOH\n\+ \A channel that uses a commitment format that has anchor outputs on the\n\+ \commitments, allowing fee bumping after a force close transaction has\n\+ \been broadcast.\n\+ \\n\+ \\r\n\+ \\ENQ\ENQ\STX\STX\ETX\SOH\DC2\EOT\134\SOH\EOT\v\n\+ \\r\n\+ \\ENQ\ENQ\STX\STX\ETX\STX\DC2\EOT\134\SOH\SO\SI\n\+ \\217\STX\n\+ \\EOT\ENQ\STX\STX\EOT\DC2\EOT\143\SOH\EOT\RS\SUB\202\STX\n\+ \A channel that uses a commitment type that builds upon the anchors\n\+ \commitment format, but in addition requires a CLTV clause to spend outputs\n\+ \paying to the channel initiator. This is intended for use on leased channels\n\+ \to guarantee that the channel initiator has no incentives to close a leased\n\+ \channel before its maturity date.\n\+ \\n\+ \\r\n\+ \\ENQ\ENQ\STX\STX\EOT\SOH\DC2\EOT\143\SOH\EOT\EM\n\+ \\r\n\+ \\ENQ\ENQ\STX\STX\EOT\STX\DC2\EOT\143\SOH\FS\GS\n\+ \\f\n\+ \\STX\EOT\ENQ\DC2\ACK\146\SOH\NUL\168\SOH\SOH\n\+ \\v\n\+ \\ETX\EOT\ENQ\SOH\DC2\EOT\146\SOH\b\SUB\n\+ \\166\SOH\n\+ \\EOT\EOT\ENQ\STX\NUL\DC2\EOT\151\SOH\EOT\EM\SUB\151\SOH\n\+ \The CSV delay expressed in relative blocks. If the channel is force closed,\n\+ \we will need to wait for this many blocks before we can regain our funds.\n\+ \\n\+ \\r\n\+ \\ENQ\EOT\ENQ\STX\NUL\ENQ\DC2\EOT\151\SOH\EOT\n\+ \\n\+ \\r\n\+ \\ENQ\EOT\ENQ\STX\NUL\SOH\DC2\EOT\151\SOH\v\DC4\n\+ \\r\n\+ \\ENQ\EOT\ENQ\STX\NUL\ETX\DC2\EOT\151\SOH\ETB\CAN\n\+ \U\n\+ \\EOT\EOT\ENQ\STX\SOH\DC2\EOT\154\SOH\EOT \SUBG The minimum satoshis this node is required to reserve in its balance.\n\+ \\n\+ \\r\n\+ \\ENQ\EOT\ENQ\STX\SOH\ENQ\DC2\EOT\154\SOH\EOT\n\+ \\n\+ \\r\n\+ \\ENQ\EOT\ENQ\STX\SOH\SOH\DC2\EOT\154\SOH\v\ESC\n\+ \\r\n\+ \\ENQ\EOT\ENQ\STX\SOH\ETX\DC2\EOT\154\SOH\RS\US\n\+ \N\n\+ \\EOT\EOT\ENQ\STX\STX\DC2\EOT\157\SOH\EOT\RS\SUB@ The dust limit (in satoshis) of the initiator's commitment tx.\n\+ \\n\+ \\r\n\+ \\ENQ\EOT\ENQ\STX\STX\ENQ\DC2\EOT\157\SOH\EOT\n\+ \\n\+ \\r\n\+ \\ENQ\EOT\ENQ\STX\STX\SOH\DC2\EOT\157\SOH\v\EM\n\+ \\r\n\+ \\ENQ\EOT\ENQ\STX\STX\ETX\DC2\EOT\157\SOH\FS\GS\n\+ \b\n\+ \\EOT\EOT\ENQ\STX\ETX\DC2\EOT\161\SOH\EOT$\SUBT The maximum amount of coins in millisatoshis that can be pending in this\n\+ \ channel.\n\+ \\n\+ \\r\n\+ \\ENQ\EOT\ENQ\STX\ETX\ENQ\DC2\EOT\161\SOH\EOT\n\+ \\n\+ \\r\n\+ \\ENQ\EOT\ENQ\STX\ETX\SOH\DC2\EOT\161\SOH\v\US\n\+ \\r\n\+ \\ENQ\EOT\ENQ\STX\ETX\ETX\DC2\EOT\161\SOH\"#\n\+ \R\n\+ \\EOT\EOT\ENQ\STX\EOT\DC2\EOT\164\SOH\EOT\GS\SUBD The smallest HTLC in millisatoshis that the initiator will accept.\n\+ \\n\+ \\r\n\+ \\ENQ\EOT\ENQ\STX\EOT\ENQ\DC2\EOT\164\SOH\EOT\n\+ \\n\+ \\r\n\+ \\ENQ\EOT\ENQ\STX\EOT\SOH\DC2\EOT\164\SOH\v\CAN\n\+ \\r\n\+ \\ENQ\EOT\ENQ\STX\EOT\ETX\DC2\EOT\164\SOH\ESC\FS\n\+ \S\n\+ \\EOT\EOT\ENQ\STX\ENQ\DC2\EOT\167\SOH\EOT\"\SUBE The total number of incoming HTLC's that the initiator will accept.\n\+ \\n\+ \\r\n\+ \\ENQ\EOT\ENQ\STX\ENQ\ENQ\DC2\EOT\167\SOH\EOT\n\+ \\n\+ \\r\n\+ \\ENQ\EOT\ENQ\STX\ENQ\SOH\DC2\EOT\167\SOH\v\GS\n\+ \\r\n\+ \\ENQ\EOT\ENQ\STX\ENQ\ETX\DC2\EOT\167\SOH !\n\+ \\f\n\+ \\STX\EOT\ACK\DC2\ACK\170\SOH\NUL\193\STX\SOH\n\+ \\v\n\+ \\ETX\EOT\ACK\SOH\DC2\EOT\170\SOH\b\SI\n\+ \5\n\+ \\EOT\EOT\ACK\STX\NUL\DC2\EOT\172\SOH\EOT\DC4\SUB' Whether this channel is active or not\n\+ \\n\+ \\r\n\+ \\ENQ\EOT\ACK\STX\NUL\ENQ\DC2\EOT\172\SOH\EOT\b\n\+ \\r\n\+ \\ENQ\EOT\ACK\STX\NUL\SOH\DC2\EOT\172\SOH\t\SI\n\+ \\r\n\+ \\ENQ\EOT\ACK\STX\NUL\ETX\DC2\EOT\172\SOH\DC2\DC3\n\+ \6\n\+ \\EOT\EOT\ACK\STX\SOH\DC2\EOT\175\SOH\EOT\GS\SUB( The identity pubkey of the remote node\n\+ \\n\+ \\r\n\+ \\ENQ\EOT\ACK\STX\SOH\ENQ\DC2\EOT\175\SOH\EOT\n\+ \\n\+ \\r\n\+ \\ENQ\EOT\ACK\STX\SOH\SOH\DC2\EOT\175\SOH\v\CAN\n\+ \\r\n\+ \\ENQ\EOT\ACK\STX\SOH\ETX\DC2\EOT\175\SOH\ESC\FS\n\+ \\179\SOH\n\+ \\EOT\EOT\ACK\STX\STX\DC2\EOT\182\SOH\EOT\GS\SUB\164\SOH\n\+ \The outpoint (txid:index) of the funding transaction. With this value, Bob\n\+ \will be able to generate a signature for Alice's version of the commitment\n\+ \transaction.\n\+ \\n\+ \\r\n\+ \\ENQ\EOT\ACK\STX\STX\ENQ\DC2\EOT\182\SOH\EOT\n\+ \\n\+ \\r\n\+ \\ENQ\EOT\ACK\STX\STX\SOH\DC2\EOT\182\SOH\v\CAN\n\+ \\r\n\+ \\ENQ\EOT\ACK\STX\STX\ETX\DC2\EOT\182\SOH\ESC\FS\n\+ \\193\SOH\n\+ \\EOT\EOT\ACK\STX\ETX\DC2\EOT\189\SOH\EOT,\SUB\178\SOH\n\+ \The unique channel ID for the channel. The first 3 bytes are the block\n\+ \height, the next 3 the index within the block, and the last 2 bytes are the\n\+ \output index for the channel.\n\+ \\n\+ \\r\n\+ \\ENQ\EOT\ACK\STX\ETX\ENQ\DC2\EOT\189\SOH\EOT\n\+ \\n\+ \\r\n\+ \\ENQ\EOT\ACK\STX\ETX\SOH\DC2\EOT\189\SOH\v\DC2\n\+ \\r\n\+ \\ENQ\EOT\ACK\STX\ETX\ETX\DC2\EOT\189\SOH\NAK\SYN\n\+ \\r\n\+ \\ENQ\EOT\ACK\STX\ETX\b\DC2\EOT\189\SOH\ETB+\n\+ \\SO\n\+ \\ACK\EOT\ACK\STX\ETX\b\ACK\DC2\EOT\189\SOH\CAN*\n\+ \>\n\+ \\EOT\EOT\ACK\STX\EOT\DC2\EOT\192\SOH\EOT\ETB\SUB0 The total amount of funds held in this channel\n\+ \\n\+ \\r\n\+ \\ENQ\EOT\ACK\STX\EOT\ENQ\DC2\EOT\192\SOH\EOT\t\n\+ \\r\n\+ \\ENQ\EOT\ACK\STX\EOT\SOH\DC2\EOT\192\SOH\n\+ \\DC2\n\+ \\r\n\+ \\ENQ\EOT\ACK\STX\EOT\ETX\DC2\EOT\192\SOH\NAK\SYN\n\+ \;\n\+ \\EOT\EOT\ACK\STX\ENQ\DC2\EOT\195\SOH\EOT\FS\SUB- This node's current balance in this channel\n\+ \\n\+ \\r\n\+ \\ENQ\EOT\ACK\STX\ENQ\ENQ\DC2\EOT\195\SOH\EOT\t\n\+ \\r\n\+ \\ENQ\EOT\ACK\STX\ENQ\SOH\DC2\EOT\195\SOH\n\+ \\ETB\n\+ \\r\n\+ \\ENQ\EOT\ACK\STX\ENQ\ETX\DC2\EOT\195\SOH\SUB\ESC\n\+ \B\n\+ \\EOT\EOT\ACK\STX\ACK\DC2\EOT\198\SOH\EOT\GS\SUB4 The counterparty's current balance in this channel\n\+ \\n\+ \\r\n\+ \\ENQ\EOT\ACK\STX\ACK\ENQ\DC2\EOT\198\SOH\EOT\t\n\+ \\r\n\+ \\ENQ\EOT\ACK\STX\ACK\SOH\DC2\EOT\198\SOH\n\+ \\CAN\n\+ \\r\n\+ \\ENQ\EOT\ACK\STX\ACK\ETX\DC2\EOT\198\SOH\ESC\FS\n\+ \\172\STX\n\+ \\EOT\EOT\ACK\STX\a\DC2\EOT\206\SOH\EOT\EM\SUB\157\STX\n\+ \The amount calculated to be paid in fees for the current set of commitment\n\+ \transactions. The fee amount is persisted with the channel in order to\n\+ \allow the fee amount to be removed and recalculated with each channel state\n\+ \update, including updates that happen after a system restart.\n\+ \\n\+ \\r\n\+ \\ENQ\EOT\ACK\STX\a\ENQ\DC2\EOT\206\SOH\EOT\t\n\+ \\r\n\+ \\ENQ\EOT\ACK\STX\a\SOH\DC2\EOT\206\SOH\n\+ \\DC4\n\+ \\r\n\+ \\ENQ\EOT\ACK\STX\a\ETX\DC2\EOT\206\SOH\ETB\CAN\n\+ \8\n\+ \\EOT\EOT\ACK\STX\b\DC2\EOT\209\SOH\EOT\FS\SUB* The weight of the commitment transaction\n\+ \\n\+ \\r\n\+ \\ENQ\EOT\ACK\STX\b\ENQ\DC2\EOT\209\SOH\EOT\t\n\+ \\r\n\+ \\ENQ\EOT\ACK\STX\b\SOH\DC2\EOT\209\SOH\n\+ \\ETB\n\+ \\r\n\+ \\ENQ\EOT\ACK\STX\b\ETX\DC2\EOT\209\SOH\SUB\ESC\n\+ \\225\SOH\n\+ \\EOT\EOT\ACK\STX\t\DC2\EOT\216\SOH\EOT\SUB\SUB\210\SOH\n\+ \The required number of satoshis per kilo-weight that the requester will pay\n\+ \at all times, for both the funding transaction and commitment transaction.\n\+ \This value can later be updated once the channel is open.\n\+ \\n\+ \\r\n\+ \\ENQ\EOT\ACK\STX\t\ENQ\DC2\EOT\216\SOH\EOT\t\n\+ \\r\n\+ \\ENQ\EOT\ACK\STX\t\SOH\DC2\EOT\216\SOH\n\+ \\DC4\n\+ \\r\n\+ \\ENQ\EOT\ACK\STX\t\ETX\DC2\EOT\216\SOH\ETB\EM\n\+ \5\n\+ \\EOT\EOT\ACK\STX\n\+ \\DC2\EOT\219\SOH\EOT!\SUB' The unsettled balance in this channel\n\+ \\n\+ \\r\n\+ \\ENQ\EOT\ACK\STX\n\+ \\ENQ\DC2\EOT\219\SOH\EOT\t\n\+ \\r\n\+ \\ENQ\EOT\ACK\STX\n\+ \\SOH\DC2\EOT\219\SOH\n\+ \\ESC\n\+ \\r\n\+ \\ENQ\EOT\ACK\STX\n\+ \\ETX\DC2\EOT\219\SOH\RS \n\+ \L\n\+ \\EOT\EOT\ACK\STX\v\DC2\EOT\224\SOH\EOT#\SUB>\n\+ \The total number of satoshis we've sent within this channel.\n\+ \\n\+ \\r\n\+ \\ENQ\EOT\ACK\STX\v\ENQ\DC2\EOT\224\SOH\EOT\t\n\+ \\r\n\+ \\ENQ\EOT\ACK\STX\v\SOH\DC2\EOT\224\SOH\n\+ \\GS\n\+ \\r\n\+ \\ENQ\EOT\ACK\STX\v\ETX\DC2\EOT\224\SOH \"\n\+ \P\n\+ \\EOT\EOT\ACK\STX\f\DC2\EOT\229\SOH\EOT'\SUBB\n\+ \The total number of satoshis we've received within this channel.\n\+ \\n\+ \\r\n\+ \\ENQ\EOT\ACK\STX\f\ENQ\DC2\EOT\229\SOH\EOT\t\n\+ \\r\n\+ \\ENQ\EOT\ACK\STX\f\SOH\DC2\EOT\229\SOH\n\+ \!\n\+ \\r\n\+ \\ENQ\EOT\ACK\STX\f\ETX\DC2\EOT\229\SOH$&\n\+ \J\n\+ \\EOT\EOT\ACK\STX\r\DC2\EOT\234\SOH\EOT\FS\SUB<\n\+ \The total number of updates conducted within this channel.\n\+ \\n\+ \\r\n\+ \\ENQ\EOT\ACK\STX\r\ENQ\DC2\EOT\234\SOH\EOT\n\+ \\n\+ \\r\n\+ \\ENQ\EOT\ACK\STX\r\SOH\DC2\EOT\234\SOH\v\SYN\n\+ \\r\n\+ \\ENQ\EOT\ACK\STX\r\ETX\DC2\EOT\234\SOH\EM\ESC\n\+ \Y\n\+ \\EOT\EOT\ACK\STX\SO\DC2\EOT\239\SOH\EOT%\SUBK\n\+ \The list of active, uncleared HTLCs currently pending within the channel.\n\+ \\n\+ \\r\n\+ \\ENQ\EOT\ACK\STX\SO\EOT\DC2\EOT\239\SOH\EOT\f\n\+ \\r\n\+ \\ENQ\EOT\ACK\STX\SO\ACK\DC2\EOT\239\SOH\r\DC1\n\+ \\r\n\+ \\ENQ\EOT\ACK\STX\SO\SOH\DC2\EOT\239\SOH\DC2\US\n\+ \\r\n\+ \\ENQ\EOT\ACK\STX\SO\ETX\DC2\EOT\239\SOH\"$\n\+ \\178\SOH\n\+ \\EOT\EOT\ACK\STX\SI\DC2\EOT\246\SOH\EOT.\SUB\163\SOH\n\+ \Deprecated. The CSV delay expressed in relative blocks. If the channel is\n\+ \force closed, we will need to wait for this many blocks before we can regain\n\+ \our funds.\n\+ \\n\+ \\r\n\+ \\ENQ\EOT\ACK\STX\SI\ENQ\DC2\EOT\246\SOH\EOT\n\+ \\n\+ \\r\n\+ \\ENQ\EOT\ACK\STX\SI\SOH\DC2\EOT\246\SOH\v\DC4\n\+ \\r\n\+ \\ENQ\EOT\ACK\STX\SI\ETX\DC2\EOT\246\SOH\ETB\EM\n\+ \\r\n\+ \\ENQ\EOT\ACK\STX\SI\b\DC2\EOT\246\SOH\SUB-\n\+ \\SO\n\+ \\ACK\EOT\ACK\STX\SI\b\ETX\DC2\EOT\246\SOH\ESC,\n\+ \I\n\+ \\EOT\EOT\ACK\STX\DLE\DC2\EOT\249\SOH\EOT\SYN\SUB; Whether this channel is advertised to the network or not.\n\+ \\n\+ \\r\n\+ \\ENQ\EOT\ACK\STX\DLE\ENQ\DC2\EOT\249\SOH\EOT\b\n\+ \\r\n\+ \\ENQ\EOT\ACK\STX\DLE\SOH\DC2\EOT\249\SOH\t\DLE\n\+ \\r\n\+ \\ENQ\EOT\ACK\STX\DLE\ETX\DC2\EOT\249\SOH\DC3\NAK\n\+ \B\n\+ \\EOT\EOT\ACK\STX\DC1\DC2\EOT\252\SOH\EOT\CAN\SUB4 True if we were the ones that created the channel.\n\+ \\n\+ \\r\n\+ \\ENQ\EOT\ACK\STX\DC1\ENQ\DC2\EOT\252\SOH\EOT\b\n\+ \\r\n\+ \\ENQ\EOT\ACK\STX\DC1\SOH\DC2\EOT\252\SOH\t\DC2\n\+ \\r\n\+ \\ENQ\EOT\ACK\STX\DC1\ETX\DC2\EOT\252\SOH\NAK\ETB\n\+ \H\n\+ \\EOT\EOT\ACK\STX\DC2\DC2\EOT\255\SOH\EOT\"\SUB: A set of flags showing the current state of the channel.\n\+ \\n\+ \\r\n\+ \\ENQ\EOT\ACK\STX\DC2\ENQ\DC2\EOT\255\SOH\EOT\n\+ \\n\+ \\r\n\+ \\ENQ\EOT\ACK\STX\DC2\SOH\DC2\EOT\255\SOH\v\FS\n\+ \\r\n\+ \\ENQ\EOT\ACK\STX\DC2\ETX\DC2\EOT\255\SOH\US!\n\+ \b\n\+ \\EOT\EOT\ACK\STX\DC3\DC2\EOT\131\STX\EOT:\SUBT Deprecated. The minimum satoshis this node is required to reserve in its\n\+ \ balance.\n\+ \\n\+ \\r\n\+ \\ENQ\EOT\ACK\STX\DC3\ENQ\DC2\EOT\131\STX\EOT\t\n\+ \\r\n\+ \\ENQ\EOT\ACK\STX\DC3\SOH\DC2\EOT\131\STX\n\+ \ \n\+ \\r\n\+ \\ENQ\EOT\ACK\STX\DC3\ETX\DC2\EOT\131\STX#%\n\+ \\r\n\+ \\ENQ\EOT\ACK\STX\DC3\b\DC2\EOT\131\STX&9\n\+ \\SO\n\+ \\ACK\EOT\ACK\STX\DC3\b\ETX\DC2\EOT\131\STX'8\n\+ \f\n\+ \\EOT\EOT\ACK\STX\DC4\DC2\EOT\137\STX\EOT;\SUBX\n\+ \Deprecated. The minimum satoshis the other node is required to reserve in\n\+ \its balance.\n\+ \\n\+ \\r\n\+ \\ENQ\EOT\ACK\STX\DC4\ENQ\DC2\EOT\137\STX\EOT\t\n\+ \\r\n\+ \\ENQ\EOT\ACK\STX\DC4\SOH\DC2\EOT\137\STX\n\+ \!\n\+ \\r\n\+ \\ENQ\EOT\ACK\STX\DC4\ETX\DC2\EOT\137\STX$&\n\+ \\r\n\+ \\ENQ\EOT\ACK\STX\DC4\b\DC2\EOT\137\STX':\n\+ \\SO\n\+ \\ACK\EOT\ACK\STX\DC4\b\ETX\DC2\EOT\137\STX(9\n\+ \0\n\+ \\EOT\EOT\ACK\STX\NAK\DC2\EOT\140\STX\EOT4\SUB\" Deprecated. Use commitment_type.\n\+ \\n\+ \\r\n\+ \\ENQ\EOT\ACK\STX\NAK\ENQ\DC2\EOT\140\STX\EOT\b\n\+ \\r\n\+ \\ENQ\EOT\ACK\STX\NAK\SOH\DC2\EOT\140\STX\t\SUB\n\+ \\r\n\+ \\ENQ\EOT\ACK\STX\NAK\ETX\DC2\EOT\140\STX\GS\US\n\+ \\r\n\+ \\ENQ\EOT\ACK\STX\NAK\b\DC2\EOT\140\STX 3\n\+ \\SO\n\+ \\ACK\EOT\ACK\STX\NAK\b\ETX\DC2\EOT\140\STX!2\n\+ \9\n\+ \\EOT\EOT\ACK\STX\SYN\DC2\EOT\143\STX\EOT(\SUB+ The commitment type used by this channel.\n\+ \\n\+ \\r\n\+ \\ENQ\EOT\ACK\STX\SYN\ACK\DC2\EOT\143\STX\EOT\DC2\n\+ \\r\n\+ \\ENQ\EOT\ACK\STX\SYN\SOH\DC2\EOT\143\STX\DC3\"\n\+ \\r\n\+ \\ENQ\EOT\ACK\STX\SYN\ETX\DC2\EOT\143\STX%'\n\+ \\216\SOH\n\+ \\EOT\EOT\ACK\STX\ETB\DC2\EOT\150\STX\EOT\CAN\SUB\201\SOH\n\+ \The number of seconds that the channel has been monitored by the channel\n\+ \scoring system. Scores are currently not persisted, so this value may be\n\+ \less than the lifetime of the channel [EXPERIMENTAL].\n\+ \\n\+ \\r\n\+ \\ENQ\EOT\ACK\STX\ETB\ENQ\DC2\EOT\150\STX\EOT\t\n\+ \\r\n\+ \\ENQ\EOT\ACK\STX\ETB\SOH\DC2\EOT\150\STX\n\+ \\DC2\n\+ \\r\n\+ \\ENQ\EOT\ACK\STX\ETB\ETX\DC2\EOT\150\STX\NAK\ETB\n\+ \\172\SOH\n\+ \\EOT\EOT\ACK\STX\CAN\DC2\EOT\157\STX\EOT\SYN\SUB\157\SOH\n\+ \The number of seconds that the remote peer has been observed as being online\n\+ \by the channel scoring system over the lifetime of the channel\n\+ \[EXPERIMENTAL].\n\+ \\n\+ \\r\n\+ \\ENQ\EOT\ACK\STX\CAN\ENQ\DC2\EOT\157\STX\EOT\t\n\+ \\r\n\+ \\ENQ\EOT\ACK\STX\CAN\SOH\DC2\EOT\157\STX\n\+ \\DLE\n\+ \\r\n\+ \\ENQ\EOT\ACK\STX\CAN\ETX\DC2\EOT\157\STX\DC3\NAK\n\+ \\247\STX\n\+ \\EOT\EOT\ACK\STX\EM\DC2\EOT\166\STX\EOT\RS\SUB\232\STX\n\+ \Close address is the address that we will enforce payout to on cooperative\n\+ \close if the channel was opened utilizing option upfront shutdown. This\n\+ \value can be set on channel open by setting close_address in an open channel\n\+ \request. If this value is not set, you can still choose a payout address by\n\+ \cooperatively closing with the delivery_address field set.\n\+ \\n\+ \\r\n\+ \\ENQ\EOT\ACK\STX\EM\ENQ\DC2\EOT\166\STX\EOT\n\+ \\n\+ \\r\n\+ \\ENQ\EOT\ACK\STX\EM\SOH\DC2\EOT\166\STX\v\CAN\n\+ \\r\n\+ \\ENQ\EOT\ACK\STX\EM\ETX\DC2\EOT\166\STX\ESC\GS\n\+ \\206\STX\n\+ \\EOT\EOT\ACK\STX\SUB\DC2\EOT\175\STX\EOT \SUB\191\STX\n\+ \The amount that the initiator of the channel optionally pushed to the remote\n\+ \party on channel open. This amount will be zero if the channel initiator did\n\+ \not push any funds to the remote peer. If the initiator field is true, we\n\+ \pushed this amount to our peer, if it is false, the remote peer pushed this\n\+ \amount to us.\n\+ \\n\+ \\r\n\+ \\ENQ\EOT\ACK\STX\SUB\ENQ\DC2\EOT\175\STX\EOT\n\+ \\n\+ \\r\n\+ \\ENQ\EOT\ACK\STX\SUB\SOH\DC2\EOT\175\STX\v\SUB\n\+ \\r\n\+ \\ENQ\EOT\ACK\STX\SUB\ETX\DC2\EOT\175\STX\GS\US\n\+ \\243\ETX\n\+ \\EOT\EOT\ACK\STX\ESC\DC2\EOT\186\STX\EOT\FS\SUB\228\ETX\n\+ \This uint32 indicates if this channel is to be considered 'frozen'. A\n\+ \frozen channel doest not allow a cooperative channel close by the\n\+ \initiator. The thaw_height is the height that this restriction stops\n\+ \applying to the channel. This field is optional, not setting it or using a\n\+ \value of zero will mean the channel has no additional restrictions. The\n\+ \height can be interpreted in two ways: as a relative height if the value is\n\+ \less than 500,000, or as an absolute height otherwise.\n\+ \\n\+ \\r\n\+ \\ENQ\EOT\ACK\STX\ESC\ENQ\DC2\EOT\186\STX\EOT\n\+ \\n\+ \\r\n\+ \\ENQ\EOT\ACK\STX\ESC\SOH\DC2\EOT\186\STX\v\SYN\n\+ \\r\n\+ \\ENQ\EOT\ACK\STX\ESC\ETX\DC2\EOT\186\STX\EM\ESC\n\+ \4\n\+ \\EOT\EOT\ACK\STX\FS\DC2\EOT\189\STX\EOT.\SUB& List constraints for the local node.\n\+ \\n\+ \\r\n\+ \\ENQ\EOT\ACK\STX\FS\ACK\DC2\EOT\189\STX\EOT\SYN\n\+ \\r\n\+ \\ENQ\EOT\ACK\STX\FS\SOH\DC2\EOT\189\STX\ETB(\n\+ \\r\n\+ \\ENQ\EOT\ACK\STX\FS\ETX\DC2\EOT\189\STX+-\n\+ \5\n\+ \\EOT\EOT\ACK\STX\GS\DC2\EOT\192\STX\EOT/\SUB' List constraints for the remote node.\n\+ \\n\+ \\r\n\+ \\ENQ\EOT\ACK\STX\GS\ACK\DC2\EOT\192\STX\EOT\SYN\n\+ \\r\n\+ \\ENQ\EOT\ACK\STX\GS\SOH\DC2\EOT\192\STX\ETB)\n\+ \\r\n\+ \\ENQ\EOT\ACK\STX\GS\ETX\DC2\EOT\192\STX,.\n\+ \\f\n\+ \\STX\EOT\a\DC2\ACK\195\STX\NUL\252\STX\SOH\n\+ \\v\n\+ \\ETX\EOT\a\SOH\DC2\EOT\195\STX\b\ESC\n\+ \E\n\+ \\EOT\EOT\a\STX\NUL\DC2\EOT\197\STX\EOT\GS\SUB7 The outpoint (txid:index) of the funding transaction.\n\+ \\n\+ \\r\n\+ \\ENQ\EOT\a\STX\NUL\ENQ\DC2\EOT\197\STX\EOT\n\+ \\n\+ \\r\n\+ \\ENQ\EOT\a\STX\NUL\SOH\DC2\EOT\197\STX\v\CAN\n\+ \\r\n\+ \\ENQ\EOT\a\STX\NUL\ETX\DC2\EOT\197\STX\ESC\FS\n\+ \7\n\+ \\EOT\EOT\a\STX\SOH\DC2\EOT\200\STX\EOT,\SUB) The unique channel ID for the channel.\n\+ \\n\+ \\r\n\+ \\ENQ\EOT\a\STX\SOH\ENQ\DC2\EOT\200\STX\EOT\n\+ \\n\+ \\r\n\+ \\ENQ\EOT\a\STX\SOH\SOH\DC2\EOT\200\STX\v\DC2\n\+ \\r\n\+ \\ENQ\EOT\a\STX\SOH\ETX\DC2\EOT\200\STX\NAK\SYN\n\+ \\r\n\+ \\ENQ\EOT\a\STX\SOH\b\DC2\EOT\200\STX\ETB+\n\+ \\SO\n\+ \\ACK\EOT\a\STX\SOH\b\ACK\DC2\EOT\200\STX\CAN*\n\+ \O\n\+ \\EOT\EOT\a\STX\STX\DC2\EOT\203\STX\EOT\SUB\SUBA The hash of the genesis block that this channel resides within.\n\+ \\n\+ \\r\n\+ \\ENQ\EOT\a\STX\STX\ENQ\DC2\EOT\203\STX\EOT\n\+ \\n\+ \\r\n\+ \\ENQ\EOT\a\STX\STX\SOH\DC2\EOT\203\STX\v\NAK\n\+ \\r\n\+ \\ENQ\EOT\a\STX\STX\ETX\DC2\EOT\203\STX\CAN\EM\n\+ \Q\n\+ \\EOT\EOT\a\STX\ETX\DC2\EOT\206\STX\EOT\US\SUBC The txid of the transaction which ultimately closed this channel.\n\+ \\n\+ \\r\n\+ \\ENQ\EOT\a\STX\ETX\ENQ\DC2\EOT\206\STX\EOT\n\+ \\n\+ \\r\n\+ \\ENQ\EOT\a\STX\ETX\SOH\DC2\EOT\206\STX\v\SUB\n\+ \\r\n\+ \\ENQ\EOT\a\STX\ETX\ETX\DC2\EOT\206\STX\GS\RS\n\+ \R\n\+ \\EOT\EOT\a\STX\EOT\DC2\EOT\209\STX\EOT\GS\SUBD Public key of the remote peer that we formerly had a channel with.\n\+ \\n\+ \\r\n\+ \\ENQ\EOT\a\STX\EOT\ENQ\DC2\EOT\209\STX\EOT\n\+ \\n\+ \\r\n\+ \\ENQ\EOT\a\STX\EOT\SOH\DC2\EOT\209\STX\v\CAN\n\+ \\r\n\+ \\ENQ\EOT\a\STX\EOT\ETX\DC2\EOT\209\STX\ESC\FS\n\+ \.\n\+ \\EOT\EOT\a\STX\ENQ\DC2\EOT\212\STX\EOT\ETB\SUB Total capacity of the channel.\n\+ \\n\+ \\r\n\+ \\ENQ\EOT\a\STX\ENQ\ENQ\DC2\EOT\212\STX\EOT\t\n\+ \\r\n\+ \\ENQ\EOT\a\STX\ENQ\SOH\DC2\EOT\212\STX\n\+ \\DC2\n\+ \\r\n\+ \\ENQ\EOT\a\STX\ENQ\ETX\DC2\EOT\212\STX\NAK\SYN\n\+ \B\n\+ \\EOT\EOT\a\STX\ACK\DC2\EOT\215\STX\EOT\FS\SUB4 Height at which the funding transaction was spent.\n\+ \\n\+ \\r\n\+ \\ENQ\EOT\a\STX\ACK\ENQ\DC2\EOT\215\STX\EOT\n\+ \\n\+ \\r\n\+ \\ENQ\EOT\a\STX\ACK\SOH\DC2\EOT\215\STX\v\ETB\n\+ \\r\n\+ \\ENQ\EOT\a\STX\ACK\ETX\DC2\EOT\215\STX\SUB\ESC\n\+ \>\n\+ \\EOT\EOT\a\STX\a\DC2\EOT\218\STX\EOT\RS\SUB0 Settled balance at the time of channel closure\n\+ \\n\+ \\r\n\+ \\ENQ\EOT\a\STX\a\ENQ\DC2\EOT\218\STX\EOT\t\n\+ \\r\n\+ \\ENQ\EOT\a\STX\a\SOH\DC2\EOT\218\STX\n\+ \\EM\n\+ \\r\n\+ \\ENQ\EOT\a\STX\a\ETX\DC2\EOT\218\STX\FS\GS\n\+ \U\n\+ \\EOT\EOT\a\STX\b\DC2\EOT\221\STX\EOT\"\SUBG The sum of all the time-locked outputs at the time of channel closure\n\+ \\n\+ \\r\n\+ \\ENQ\EOT\a\STX\b\ENQ\DC2\EOT\221\STX\EOT\t\n\+ \\r\n\+ \\ENQ\EOT\a\STX\b\SOH\DC2\EOT\221\STX\n\+ \\GS\n\+ \\r\n\+ \\ENQ\EOT\a\STX\b\ETX\DC2\EOT\221\STX !\n\+ \\SO\n\+ \\EOT\EOT\a\EOT\NUL\DC2\ACK\223\STX\EOT\230\STX\ENQ\n\+ \\r\n\+ \\ENQ\EOT\a\EOT\NUL\SOH\DC2\EOT\223\STX\t\DC4\n\+ \\SO\n\+ \\ACK\EOT\a\EOT\NUL\STX\NUL\DC2\EOT\224\STX\b\RS\n\+ \\SI\n\+ \\a\EOT\a\EOT\NUL\STX\NUL\SOH\DC2\EOT\224\STX\b\EM\n\+ \\SI\n\+ \\a\EOT\a\EOT\NUL\STX\NUL\STX\DC2\EOT\224\STX\FS\GS\n\+ \\SO\n\+ \\ACK\EOT\a\EOT\NUL\STX\SOH\DC2\EOT\225\STX\b\RS\n\+ \\SI\n\+ \\a\EOT\a\EOT\NUL\STX\SOH\SOH\DC2\EOT\225\STX\b\EM\n\+ \\SI\n\+ \\a\EOT\a\EOT\NUL\STX\SOH\STX\DC2\EOT\225\STX\FS\GS\n\+ \\SO\n\+ \\ACK\EOT\a\EOT\NUL\STX\STX\DC2\EOT\226\STX\b\US\n\+ \\SI\n\+ \\a\EOT\a\EOT\NUL\STX\STX\SOH\DC2\EOT\226\STX\b\SUB\n\+ \\SI\n\+ \\a\EOT\a\EOT\NUL\STX\STX\STX\DC2\EOT\226\STX\GS\RS\n\+ \\SO\n\+ \\ACK\EOT\a\EOT\NUL\STX\ETX\DC2\EOT\227\STX\b\EM\n\+ \\SI\n\+ \\a\EOT\a\EOT\NUL\STX\ETX\SOH\DC2\EOT\227\STX\b\DC4\n\+ \\SI\n\+ \\a\EOT\a\EOT\NUL\STX\ETX\STX\DC2\EOT\227\STX\ETB\CAN\n\+ \\SO\n\+ \\ACK\EOT\a\EOT\NUL\STX\EOT\DC2\EOT\228\STX\b\GS\n\+ \\SI\n\+ \\a\EOT\a\EOT\NUL\STX\EOT\SOH\DC2\EOT\228\STX\b\CAN\n\+ \\SI\n\+ \\a\EOT\a\EOT\NUL\STX\EOT\STX\DC2\EOT\228\STX\ESC\FS\n\+ \\SO\n\+ \\ACK\EOT\a\EOT\NUL\STX\ENQ\DC2\EOT\229\STX\b\SYN\n\+ \\SI\n\+ \\a\EOT\a\EOT\NUL\STX\ENQ\SOH\DC2\EOT\229\STX\b\DC1\n\+ \\SI\n\+ \\a\EOT\a\EOT\NUL\STX\ENQ\STX\DC2\EOT\229\STX\DC4\NAK\n\+ \6\n\+ \\EOT\EOT\a\STX\t\DC2\EOT\233\STX\EOT \SUB( Details on how the channel was closed.\n\+ \\n\+ \\r\n\+ \\ENQ\EOT\a\STX\t\ACK\DC2\EOT\233\STX\EOT\SI\n\+ \\r\n\+ \\ENQ\EOT\a\STX\t\SOH\DC2\EOT\233\STX\DLE\SUB\n\+ \\r\n\+ \\ENQ\EOT\a\STX\t\ETX\DC2\EOT\233\STX\GS\US\n\+ \\208\SOH\n\+ \\EOT\EOT\a\STX\n\+ \\DC2\EOT\240\STX\EOT\"\SUB\193\SOH\n\+ \Open initiator is the party that initiated opening the channel. Note that\n\+ \this value may be unknown if the channel was closed before we migrated to\n\+ \store open channel information after close.\n\+ \\n\+ \\r\n\+ \\ENQ\EOT\a\STX\n\+ \\ACK\DC2\EOT\240\STX\EOT\r\n\+ \\r\n\+ \\ENQ\EOT\a\STX\n\+ \\SOH\DC2\EOT\240\STX\SO\FS\n\+ \\r\n\+ \\ENQ\EOT\a\STX\n\+ \\ETX\DC2\EOT\240\STX\US!\n\+ \\132\ETX\n\+ \\EOT\EOT\a\STX\v\DC2\EOT\249\STX\EOT#\SUB\245\STX\n\+ \Close initiator indicates which party initiated the close. This value will\n\+ \be unknown for channels that were cooperatively closed before we started\n\+ \tracking cooperative close initiators. Note that this indicates which party\n\+ \initiated a close, and it is possible for both to initiate cooperative or\n\+ \force closes, although only one party's close will be confirmed on chain.\n\+ \\n\+ \\r\n\+ \\ENQ\EOT\a\STX\v\ACK\DC2\EOT\249\STX\EOT\r\n\+ \\r\n\+ \\ENQ\EOT\a\STX\v\SOH\DC2\EOT\249\STX\SO\GS\n\+ \\r\n\+ \\ENQ\EOT\a\STX\v\ETX\DC2\EOT\249\STX \"\n\+ \\f\n\+ \\EOT\EOT\a\STX\f\DC2\EOT\251\STX\EOT)\n\+ \\r\n\+ \\ENQ\EOT\a\STX\f\EOT\DC2\EOT\251\STX\EOT\f\n\+ \\r\n\+ \\ENQ\EOT\a\STX\f\ACK\DC2\EOT\251\STX\r\ETB\n\+ \\r\n\+ \\ENQ\EOT\a\STX\f\SOH\DC2\EOT\251\STX\CAN#\n\+ \\r\n\+ \\ENQ\EOT\a\STX\f\ETX\DC2\EOT\251\STX&(\n\+ \\f\n\+ \\STX\EOT\b\DC2\ACK\254\STX\NUL\129\ETX\SOH\n\+ \\v\n\+ \\ETX\EOT\b\SOH\DC2\EOT\254\STX\b\NAK\n\+ \\f\n\+ \\EOT\EOT\b\STX\NUL\DC2\EOT\255\STX\EOT\DC3\n\+ \\r\n\+ \\ENQ\EOT\b\STX\NUL\ENQ\DC2\EOT\255\STX\EOT\t\n\+ \\r\n\+ \\ENQ\EOT\b\STX\NUL\SOH\DC2\EOT\255\STX\n\+ \\SO\n\+ \\r\n\+ \\ENQ\EOT\b\STX\NUL\ETX\DC2\EOT\255\STX\DC1\DC2\n\+ \\f\n\+ \\EOT\EOT\b\STX\SOH\DC2\EOT\128\ETX\EOT\FS\n\+ \\r\n\+ \\ENQ\EOT\b\STX\SOH\ENQ\DC2\EOT\128\ETX\EOT\n\+ \\n\+ \\r\n\+ \\ENQ\EOT\b\STX\SOH\SOH\DC2\EOT\128\ETX\v\ETB\n\+ \\r\n\+ \\ENQ\EOT\b\STX\SOH\ETX\DC2\EOT\128\ETX\SUB\ESC\n\+ \\f\n\+ \\STX\ENQ\ETX\DC2\ACK\131\ETX\NUL\153\ETX\SOH\n\+ \\v\n\+ \\ETX\ENQ\ETX\SOH\DC2\EOT\131\ETX\ENQ\DC3\n\+ \\f\n\+ \\EOT\ENQ\ETX\STX\NUL\DC2\EOT\132\ETX\EOT\NAK\n\+ \\r\n\+ \\ENQ\ENQ\ETX\STX\NUL\SOH\DC2\EOT\132\ETX\EOT\DLE\n\+ \\r\n\+ \\ENQ\ENQ\ETX\STX\NUL\STX\DC2\EOT\132\ETX\DC3\DC4\n\+ \-\n\+ \\EOT\ENQ\ETX\STX\SOH\DC2\EOT\135\ETX\EOT\SI\SUB\US We resolved an anchor output.\n\+ \\n\+ \\r\n\+ \\ENQ\ENQ\ETX\STX\SOH\SOH\DC2\EOT\135\ETX\EOT\n\+ \\n\+ \\r\n\+ \\ENQ\ENQ\ETX\STX\SOH\STX\DC2\EOT\135\ETX\r\SO\n\+ \\189\SOH\n\+ \\EOT\ENQ\ETX\STX\STX\DC2\EOT\142\ETX\EOT\SYN\SUB\174\SOH\n\+ \We are resolving an incoming htlc on chain. This if this htlc is\n\+ \claimed, we swept the incoming htlc with the preimage. If it is timed\n\+ \out, our peer swept the timeout path.\n\+ \\n\+ \\r\n\+ \\ENQ\ENQ\ETX\STX\STX\SOH\DC2\EOT\142\ETX\EOT\DC1\n\+ \\r\n\+ \\ENQ\ENQ\ETX\STX\STX\STX\DC2\EOT\142\ETX\DC4\NAK\n\+ \\191\SOH\n\+ \\EOT\ENQ\ETX\STX\ETX\DC2\EOT\149\ETX\EOT\SYN\SUB\176\SOH\n\+ \We are resolving an outgoing htlc on chain. If this htlc is claimed,\n\+ \the remote party swept the htlc with the preimage. If it is timed out,\n\+ \we swept it with the timeout path.\n\+ \\n\+ \\r\n\+ \\ENQ\ENQ\ETX\STX\ETX\SOH\DC2\EOT\149\ETX\EOT\DC1\n\+ \\r\n\+ \\ENQ\ENQ\ETX\STX\ETX\STX\DC2\EOT\149\ETX\DC4\NAK\n\+ \T\n\+ \\EOT\ENQ\ETX\STX\EOT\DC2\EOT\152\ETX\EOT\SI\SUBF We force closed and need to sweep our time locked commitment output.\n\+ \\n\+ \\r\n\+ \\ENQ\ENQ\ETX\STX\EOT\SOH\DC2\EOT\152\ETX\EOT\n\+ \\n\+ \\r\n\+ \\ENQ\ENQ\ETX\STX\EOT\STX\DC2\EOT\152\ETX\r\SO\n\+ \\f\n\+ \\STX\ENQ\EOT\DC2\ACK\155\ETX\NUL\182\ETX\SOH\n\+ \\v\n\+ \\ETX\ENQ\EOT\SOH\DC2\EOT\155\ETX\ENQ\SYN\n\+ \ \n\+ \\EOT\ENQ\EOT\STX\NUL\DC2\EOT\157\ETX\EOT\CAN\SUB\DC2 Outcome unknown.\n\+ \\n\+ \\r\n\+ \\ENQ\ENQ\EOT\STX\NUL\SOH\DC2\EOT\157\ETX\EOT\DC3\n\+ \\r\n\+ \\ENQ\ENQ\EOT\STX\NUL\STX\DC2\EOT\157\ETX\SYN\ETB\n\+ \/\n\+ \\EOT\ENQ\EOT\STX\SOH\DC2\EOT\160\ETX\EOT\DLE\SUB! An output was claimed on chain.\n\+ \\n\+ \\r\n\+ \\ENQ\ENQ\EOT\STX\SOH\SOH\DC2\EOT\160\ETX\EOT\v\n\+ \\r\n\+ \\ENQ\ENQ\EOT\STX\SOH\STX\DC2\EOT\160\ETX\SO\SI\n\+ \6\n\+ \\EOT\ENQ\EOT\STX\STX\DC2\EOT\163\ETX\EOT\DC2\SUB( An output was left unclaimed on chain.\n\+ \\n\+ \\r\n\+ \\ENQ\ENQ\EOT\STX\STX\SOH\DC2\EOT\163\ETX\EOT\r\n\+ \\r\n\+ \\ENQ\ENQ\EOT\STX\STX\STX\DC2\EOT\163\ETX\DLE\DC1\n\+ \\232\SOH\n\+ \\EOT\ENQ\EOT\STX\ETX\DC2\EOT\171\ETX\EOT\DC2\SUB\217\SOH\n\+ \ResolverOutcomeAbandoned indicates that an output that we did not\n\+ \claim on chain, for example an anchor that we did not sweep and a\n\+ \third party claimed on chain, or a htlc that we could not decode\n\+ \so left unclaimed.\n\+ \\n\+ \\r\n\+ \\ENQ\ENQ\EOT\STX\ETX\SOH\DC2\EOT\171\ETX\EOT\r\n\+ \\r\n\+ \\ENQ\ENQ\EOT\STX\ETX\STX\DC2\EOT\171\ETX\DLE\DC1\n\+ \\197\SOH\n\+ \\EOT\ENQ\EOT\STX\EOT\DC2\EOT\178\ETX\EOT\DC4\SUB\182\SOH\n\+ \If we force closed our channel, our htlcs need to be claimed in two\n\+ \stages. This outcome represents the broadcast of a timeout or success\n\+ \transaction for this two stage htlc claim.\n\+ \\n\+ \\r\n\+ \\ENQ\ENQ\EOT\STX\EOT\SOH\DC2\EOT\178\ETX\EOT\SI\n\+ \\r\n\+ \\ENQ\ENQ\EOT\STX\EOT\STX\DC2\EOT\178\ETX\DC2\DC3\n\+ \.\n\+ \\EOT\ENQ\EOT\STX\ENQ\DC2\EOT\181\ETX\EOT\DLE\SUB A htlc was timed out on chain.\n\+ \\n\+ \\r\n\+ \\ENQ\ENQ\EOT\STX\ENQ\SOH\DC2\EOT\181\ETX\EOT\v\n\+ \\r\n\+ \\ENQ\ENQ\EOT\STX\ENQ\STX\DC2\EOT\181\ETX\SO\SI\n\+ \\f\n\+ \\STX\EOT\t\DC2\ACK\184\ETX\NUL\200\ETX\SOH\n\+ \\v\n\+ \\ETX\EOT\t\SOH\DC2\EOT\184\ETX\b\DC2\n\+ \4\n\+ \\EOT\EOT\t\STX\NUL\DC2\EOT\186\ETX\EOT'\SUB& The type of output we are resolving.\n\+ \\n\+ \\r\n\+ \\ENQ\EOT\t\STX\NUL\ACK\DC2\EOT\186\ETX\EOT\DC2\n\+ \\r\n\+ \\ENQ\EOT\t\STX\NUL\SOH\DC2\EOT\186\ETX\DC3\"\n\+ \\r\n\+ \\ENQ\EOT\t\STX\NUL\ETX\DC2\EOT\186\ETX%&\n\+ \N\n\+ \\EOT\EOT\t\STX\SOH\DC2\EOT\189\ETX\EOT\"\SUB@ The outcome of our on chain action that resolved the outpoint.\n\+ \\n\+ \\r\n\+ \\ENQ\EOT\t\STX\SOH\ACK\DC2\EOT\189\ETX\EOT\NAK\n\+ \\r\n\+ \\ENQ\EOT\t\STX\SOH\SOH\DC2\EOT\189\ETX\SYN\GS\n\+ \\r\n\+ \\ENQ\EOT\t\STX\SOH\ETX\DC2\EOT\189\ETX !\n\+ \>\n\+ \\EOT\EOT\t\STX\STX\DC2\EOT\192\ETX\EOT\SUB\SUB0 The outpoint that was spent by the resolution.\n\+ \\n\+ \\r\n\+ \\ENQ\EOT\t\STX\STX\ACK\DC2\EOT\192\ETX\EOT\f\n\+ \\r\n\+ \\ENQ\EOT\t\STX\STX\SOH\DC2\EOT\192\ETX\r\NAK\n\+ \\r\n\+ \\ENQ\EOT\t\STX\STX\ETX\DC2\EOT\192\ETX\CAN\EM\n\+ \>\n\+ \\EOT\EOT\t\STX\ETX\DC2\EOT\195\ETX\EOT\SUB\SUB0 The amount that was claimed by the resolution.\n\+ \\n\+ \\r\n\+ \\ENQ\EOT\t\STX\ETX\ENQ\DC2\EOT\195\ETX\EOT\n\+ \\n\+ \\r\n\+ \\ENQ\EOT\t\STX\ETX\SOH\DC2\EOT\195\ETX\v\NAK\n\+ \\r\n\+ \\ENQ\EOT\t\STX\ETX\ETX\DC2\EOT\195\ETX\CAN\EM\n\+ \_\n\+ \\EOT\EOT\t\STX\EOT\DC2\EOT\199\ETX\EOT\SUB\SUBQ The hex-encoded transaction ID of the sweep transaction that spent the\n\+ \ output.\n\+ \\n\+ \\r\n\+ \\ENQ\EOT\t\STX\EOT\ENQ\DC2\EOT\199\ETX\EOT\n\+ \\n\+ \\r\n\+ \\ENQ\EOT\t\STX\EOT\SOH\DC2\EOT\199\ETX\v\NAK\n\+ \\r\n\+ \\ENQ\EOT\t\STX\EOT\ETX\DC2\EOT\199\ETX\CAN\EM\n\+ \\f\n\+ \\STX\EOT\n\+ \\DC2\ACK\202\ETX\NUL\221\ETX\SOH\n\+ \\v\n\+ \\ETX\EOT\n\+ \\SOH\DC2\EOT\202\ETX\b\DLE\n\+ \\SO\n\+ \\EOT\EOT\n\+ \\b\NUL\DC2\ACK\203\ETX\EOT\220\ETX\ENQ\n\+ \\r\n\+ \\ENQ\EOT\n\+ \\b\NUL\SOH\DC2\EOT\203\ETX\n\+ \\SI\n\+ \\DEL\n\+ \\EOT\EOT\n\+ \\STX\NUL\DC2\EOT\209\ETX\b\CAN\SUBq\n\+ \The fee limit expressed as a fixed amount of satoshis.\n\+ \\n\+ \The fields fixed and fixed_msat are mutually exclusive.\n\+ \\n\+ \\r\n\+ \\ENQ\EOT\n\+ \\STX\NUL\ENQ\DC2\EOT\209\ETX\b\r\n\+ \\r\n\+ \\ENQ\EOT\n\+ \\STX\NUL\SOH\DC2\EOT\209\ETX\SO\DC3\n\+ \\r\n\+ \\ENQ\EOT\n\+ \\STX\NUL\ETX\DC2\EOT\209\ETX\SYN\ETB\n\+ \\132\SOH\n\+ \\EOT\EOT\n\+ \\STX\SOH\DC2\EOT\216\ETX\b\GS\SUBv\n\+ \The fee limit expressed as a fixed amount of millisatoshis.\n\+ \\n\+ \The fields fixed and fixed_msat are mutually exclusive.\n\+ \\n\+ \\r\n\+ \\ENQ\EOT\n\+ \\STX\SOH\ENQ\DC2\EOT\216\ETX\b\r\n\+ \\r\n\+ \\ENQ\EOT\n\+ \\STX\SOH\SOH\DC2\EOT\216\ETX\SO\CAN\n\+ \\r\n\+ \\ENQ\EOT\n\+ \\STX\SOH\ETX\DC2\EOT\216\ETX\ESC\FS\n\+ \N\n\+ \\EOT\EOT\n\+ \\STX\STX\DC2\EOT\219\ETX\b\SUB\SUB@ The fee limit expressed as a percentage of the payment amount.\n\+ \\n\+ \\r\n\+ \\ENQ\EOT\n\+ \\STX\STX\ENQ\DC2\EOT\219\ETX\b\r\n\+ \\r\n\+ \\ENQ\EOT\n\+ \\STX\STX\SOH\DC2\EOT\219\ETX\SO\NAK\n\+ \\r\n\+ \\ENQ\EOT\n\+ \\STX\STX\ETX\DC2\EOT\219\ETX\CAN\EM\n\+ \\f\n\+ \\STX\EOT\v\DC2\ACK\223\ETX\NUL\243\ETX\SOH\n\+ \\v\n\+ \\ETX\EOT\v\SOH\DC2\EOT\223\ETX\b\f\n\+ \\f\n\+ \\EOT\EOT\v\STX\NUL\DC2\EOT\224\ETX\EOT\SYN\n\+ \\r\n\+ \\ENQ\EOT\v\STX\NUL\ENQ\DC2\EOT\224\ETX\EOT\b\n\+ \\r\n\+ \\ENQ\EOT\v\STX\NUL\SOH\DC2\EOT\224\ETX\t\DC1\n\+ \\r\n\+ \\ENQ\EOT\v\STX\NUL\ETX\DC2\EOT\224\ETX\DC4\NAK\n\+ \\f\n\+ \\EOT\EOT\v\STX\SOH\DC2\EOT\225\ETX\EOT\NAK\n\+ \\r\n\+ \\ENQ\EOT\v\STX\SOH\ENQ\DC2\EOT\225\ETX\EOT\t\n\+ \\r\n\+ \\ENQ\EOT\v\STX\SOH\SOH\DC2\EOT\225\ETX\n\+ \\DLE\n\+ \\r\n\+ \\ENQ\EOT\v\STX\SOH\ETX\DC2\EOT\225\ETX\DC3\DC4\n\+ \\f\n\+ \\EOT\EOT\v\STX\STX\DC2\EOT\226\ETX\EOT\CAN\n\+ \\r\n\+ \\ENQ\EOT\v\STX\STX\ENQ\DC2\EOT\226\ETX\EOT\t\n\+ \\r\n\+ \\ENQ\EOT\v\STX\STX\SOH\DC2\EOT\226\ETX\n\+ \\DC3\n\+ \\r\n\+ \\ENQ\EOT\v\STX\STX\ETX\DC2\EOT\226\ETX\SYN\ETB\n\+ \\f\n\+ \\EOT\EOT\v\STX\ETX\DC2\EOT\227\ETX\EOT!\n\+ \\r\n\+ \\ENQ\EOT\v\STX\ETX\ENQ\DC2\EOT\227\ETX\EOT\n\+ \\n\+ \\r\n\+ \\ENQ\EOT\v\STX\ETX\SOH\DC2\EOT\227\ETX\v\FS\n\+ \\r\n\+ \\ENQ\EOT\v\STX\ETX\ETX\DC2\EOT\227\ETX\US \n\+ \:\n\+ \\EOT\EOT\v\STX\EOT\DC2\EOT\230\ETX\EOT\SUB\SUB, Index identifying the htlc on the channel.\n\+ \\n\+ \\r\n\+ \\ENQ\EOT\v\STX\EOT\ENQ\DC2\EOT\230\ETX\EOT\n\+ \\n\+ \\r\n\+ \\ENQ\EOT\v\STX\EOT\SOH\DC2\EOT\230\ETX\v\NAK\n\+ \\r\n\+ \\ENQ\EOT\v\STX\EOT\ETX\DC2\EOT\230\ETX\CAN\EM\n\+ \\204\ETX\n\+ \\EOT\EOT\v\STX\ENQ\DC2\EOT\239\ETX\EOT\"\SUB\189\ETX If this HTLC is involved in a forwarding operation, this field indicates\n\+ \ the forwarding channel. For an outgoing htlc, it is the incoming channel.\n\+ \ For an incoming htlc, it is the outgoing channel. When the htlc\n\+ \ originates from this node or this node is the final destination,\n\+ \ forwarding_channel will be zero. The forwarding channel will also be zero\n\+ \ for htlcs that need to be forwarded but don't have a forwarding decision\n\+ \ persisted yet.\n\+ \\n\+ \\r\n\+ \\ENQ\EOT\v\STX\ENQ\ENQ\DC2\EOT\239\ETX\EOT\n\+ \\n\+ \\r\n\+ \\ENQ\EOT\v\STX\ENQ\SOH\DC2\EOT\239\ETX\v\GS\n\+ \\r\n\+ \\ENQ\EOT\v\STX\ENQ\ETX\DC2\EOT\239\ETX !\n\+ \E\n\+ \\EOT\EOT\v\STX\ACK\DC2\EOT\242\ETX\EOT%\SUB7 Index identifying the htlc on the forwarding channel.\n\+ \\n\+ \\r\n\+ \\ENQ\EOT\v\STX\ACK\ENQ\DC2\EOT\242\ETX\EOT\n\+ \\n\+ \\r\n\+ \\ENQ\EOT\v\STX\ACK\SOH\DC2\EOT\242\ETX\v \n\+ \\r\n\+ \\ENQ\EOT\v\STX\ACK\ETX\DC2\EOT\242\ETX#$\n\+ \!\n\+ \\STX\EOT\f\DC2\ACK\249\ETX\NUL\255\ETX\SOH2\DC3\n\+ \ HighLevel stuff\n\+ \\n\+ \\n\+ \\v\n\+ \\ETX\EOT\f\SOH\DC2\EOT\249\ETX\b\DC2\n\+ \3\n\+ \\EOT\EOT\f\STX\NUL\DC2\EOT\251\ETX\EOT\EM\SUB% The family of key being identified.\n\+ \\n\+ \\r\n\+ \\ENQ\EOT\f\STX\NUL\ENQ\DC2\EOT\251\ETX\EOT\t\n\+ \\r\n\+ \\ENQ\EOT\f\STX\NUL\SOH\DC2\EOT\251\ETX\n\+ \\DC4\n\+ \\r\n\+ \\ENQ\EOT\f\STX\NUL\ETX\DC2\EOT\251\ETX\ETB\CAN\n\+ \>\n\+ \\EOT\EOT\f\STX\SOH\DC2\EOT\254\ETX\EOT\CAN\SUB0 The precise index of the key being identified.\n\+ \\n\+ \\r\n\+ \\ENQ\EOT\f\STX\SOH\ENQ\DC2\EOT\254\ETX\EOT\t\n\+ \\r\n\+ \\ENQ\EOT\f\STX\SOH\SOH\DC2\EOT\254\ETX\n\+ \\DC3\n\+ \\r\n\+ \\ENQ\EOT\f\STX\SOH\ETX\DC2\EOT\254\ETX\SYN\ETB\n\+ \\f\n\+ \\STX\EOT\r\DC2\ACK\129\EOT\NUL\139\EOT\SOH\n\+ \\v\n\+ \\ETX\EOT\r\SOH\DC2\EOT\129\EOT\b\NAK\n\+ \:\n\+ \\EOT\EOT\r\STX\NUL\DC2\EOT\133\EOT\EOT\FS\SUB,\n\+ \The raw bytes of the key being identified.\n\+ \\n\+ \\r\n\+ \\ENQ\EOT\r\STX\NUL\ENQ\DC2\EOT\133\EOT\EOT\t\n\+ \\r\n\+ \\ENQ\EOT\r\STX\NUL\SOH\DC2\EOT\133\EOT\n\+ \\ETB\n\+ \\r\n\+ \\ENQ\EOT\r\STX\NUL\ETX\DC2\EOT\133\EOT\SUB\ESC\n\+ \M\n\+ \\EOT\EOT\r\STX\SOH\DC2\EOT\138\EOT\EOT\ESC\SUB?\n\+ \The key locator that identifies which key to use for signing.\n\+ \\n\+ \\r\n\+ \\ENQ\EOT\r\STX\SOH\ACK\DC2\EOT\138\EOT\EOT\SO\n\+ \\r\n\+ \\ENQ\EOT\r\STX\SOH\SOH\DC2\EOT\138\EOT\SI\SYN\n\+ \\r\n\+ \\ENQ\EOT\r\STX\SOH\ETX\DC2\EOT\138\EOT\EM\SUB\n\+ \\f\n\+ \\STX\EOT\SO\DC2\ACK\141\EOT\NUL\173\EOT\SOH\n\+ \\v\n\+ \\ETX\EOT\SO\SOH\DC2\EOT\141\EOT\b\NAK\n\+ \l\n\+ \\EOT\EOT\SO\STX\NUL\DC2\EOT\146\EOT\EOT\DC2\SUB^\n\+ \The size of the pre-crafted output to be used as the channel point for this\n\+ \channel funding.\n\+ \\n\+ \\r\n\+ \\ENQ\EOT\SO\STX\NUL\ENQ\DC2\EOT\146\EOT\EOT\t\n\+ \\r\n\+ \\ENQ\EOT\SO\STX\NUL\SOH\DC2\EOT\146\EOT\n\+ \\r\n\+ \\r\n\+ \\ENQ\EOT\SO\STX\NUL\ETX\DC2\EOT\146\EOT\DLE\DC1\n\+ \X\n\+ \\EOT\EOT\SO\STX\SOH\DC2\EOT\149\EOT\EOT \SUBJ The target channel point to refrence in created commitment transactions.\n\+ \\n\+ \\r\n\+ \\ENQ\EOT\SO\STX\SOH\ACK\DC2\EOT\149\EOT\EOT\DLE\n\+ \\r\n\+ \\ENQ\EOT\SO\STX\SOH\SOH\DC2\EOT\149\EOT\DC1\ESC\n\+ \\r\n\+ \\ENQ\EOT\SO\STX\SOH\ETX\DC2\EOT\149\EOT\RS\US\n\+ \H\n\+ \\EOT\EOT\SO\STX\STX\DC2\EOT\152\EOT\EOT \SUB: Our local key to use when creating the multi-sig output.\n\+ \\n\+ \\r\n\+ \\ENQ\EOT\SO\STX\STX\ACK\DC2\EOT\152\EOT\EOT\DC1\n\+ \\r\n\+ \\ENQ\EOT\SO\STX\STX\SOH\DC2\EOT\152\EOT\DC2\ESC\n\+ \\r\n\+ \\ENQ\EOT\SO\STX\STX\ETX\DC2\EOT\152\EOT\RS\US\n\+ \V\n\+ \\EOT\EOT\SO\STX\ETX\DC2\EOT\155\EOT\EOT\EM\SUBH The key of the remote party to use when creating the multi-sig output.\n\+ \\n\+ \\r\n\+ \\ENQ\EOT\SO\STX\ETX\ENQ\DC2\EOT\155\EOT\EOT\t\n\+ \\r\n\+ \\ENQ\EOT\SO\STX\ETX\SOH\DC2\EOT\155\EOT\n\+ \\DC4\n\+ \\r\n\+ \\ENQ\EOT\SO\STX\ETX\ETX\DC2\EOT\155\EOT\ETB\CAN\n\+ \\250\SOH\n\+ \\EOT\EOT\SO\STX\EOT\DC2\EOT\163\EOT\EOT\RS\SUB\235\SOH\n\+ \If non-zero, then this will be used as the pending channel ID on the wire\n\+ \protocol to initate the funding request. This is an optional field, and\n\+ \should only be set if the responder is already expecting a specific pending\n\+ \channel ID.\n\+ \\n\+ \\r\n\+ \\ENQ\EOT\SO\STX\EOT\ENQ\DC2\EOT\163\EOT\EOT\t\n\+ \\r\n\+ \\ENQ\EOT\SO\STX\EOT\SOH\DC2\EOT\163\EOT\n\+ \\EM\n\+ \\r\n\+ \\ENQ\EOT\SO\STX\EOT\ETX\DC2\EOT\163\EOT\FS\GS\n\+ \\252\STX\n\+ \\EOT\EOT\SO\STX\ENQ\DC2\EOT\172\EOT\EOT\ESC\SUB\237\STX\n\+ \This uint32 indicates if this channel is to be considered 'frozen'. A frozen\n\+ \channel does not allow a cooperative channel close by the initiator. The\n\+ \thaw_height is the height that this restriction stops applying to the\n\+ \channel. The height can be interpreted in two ways: as a relative height if\n\+ \the value is less than 500,000, or as an absolute height otherwise.\n\+ \\n\+ \\r\n\+ \\ENQ\EOT\SO\STX\ENQ\ENQ\DC2\EOT\172\EOT\EOT\n\+ \\n\+ \\r\n\+ \\ENQ\EOT\SO\STX\ENQ\SOH\DC2\EOT\172\EOT\v\SYN\n\+ \\r\n\+ \\ENQ\EOT\SO\STX\ENQ\ETX\DC2\EOT\172\EOT\EM\SUB\n\+ \\f\n\+ \\STX\EOT\SI\DC2\ACK\175\EOT\NUL\198\EOT\SOH\n\+ \\v\n\+ \\ETX\EOT\SI\SOH\DC2\EOT\175\EOT\b\DLE\n\+ \\217\SOH\n\+ \\EOT\EOT\SI\STX\NUL\DC2\EOT\181\EOT\EOT\RS\SUB\202\SOH\n\+ \A unique identifier of 32 random bytes that will be used as the pending\n\+ \channel ID to identify the PSBT state machine when interacting with it and\n\+ \on the wire protocol to initiate the funding request.\n\+ \\n\+ \\r\n\+ \\ENQ\EOT\SI\STX\NUL\ENQ\DC2\EOT\181\EOT\EOT\t\n\+ \\r\n\+ \\ENQ\EOT\SI\STX\NUL\SOH\DC2\EOT\181\EOT\n\+ \\EM\n\+ \\r\n\+ \\ENQ\EOT\SI\STX\NUL\ETX\DC2\EOT\181\EOT\FS\GS\n\+ \\137\SOH\n\+ \\EOT\EOT\SI\STX\SOH\DC2\EOT\187\EOT\EOT\CAN\SUB{\n\+ \An optional base PSBT the new channel output will be added to. If this is\n\+ \non-empty, it must be a binary serialized PSBT.\n\+ \\n\+ \\r\n\+ \\ENQ\EOT\SI\STX\SOH\ENQ\DC2\EOT\187\EOT\EOT\t\n\+ \\r\n\+ \\ENQ\EOT\SI\STX\SOH\SOH\DC2\EOT\187\EOT\n\+ \\DC3\n\+ \\r\n\+ \\ENQ\EOT\SI\STX\SOH\ETX\DC2\EOT\187\EOT\SYN\ETB\n\+ \\197\ETX\n\+ \\EOT\EOT\SI\STX\STX\DC2\EOT\197\EOT\EOT\CAN\SUB\182\ETX\n\+ \If a channel should be part of a batch (multiple channel openings in one\n\+ \transaction), it can be dangerous if the whole batch transaction is\n\+ \published too early before all channel opening negotiations are completed.\n\+ \This flag prevents this particular channel from broadcasting the transaction\n\+ \after the negotiation with the remote peer. In a batch of channel openings\n\+ \this flag should be set to true for every channel but the very last.\n\+ \\n\+ \\r\n\+ \\ENQ\EOT\SI\STX\STX\ENQ\DC2\EOT\197\EOT\EOT\b\n\+ \\r\n\+ \\ENQ\EOT\SI\STX\STX\SOH\DC2\EOT\197\EOT\t\DC3\n\+ \\r\n\+ \\ENQ\EOT\SI\STX\STX\ETX\DC2\EOT\197\EOT\SYN\ETB\n\+ \\f\n\+ \\STX\EOT\DLE\DC2\ACK\200\EOT\NUL\214\EOT\SOH\n\+ \\v\n\+ \\ETX\EOT\DLE\SOH\DC2\EOT\200\EOT\b\DC3\n\+ \\SO\n\+ \\EOT\EOT\DLE\b\NUL\DC2\ACK\201\EOT\EOT\213\EOT\ENQ\n\+ \\r\n\+ \\ENQ\EOT\DLE\b\NUL\SOH\DC2\EOT\201\EOT\n\+ \\SO\n\+ \\149\SOH\n\+ \\EOT\EOT\DLE\STX\NUL\DC2\EOT\206\EOT\b*\SUB\134\SOH\n\+ \A channel shim where the channel point was fully constructed outside\n\+ \of lnd's wallet and the transaction might already be published.\n\+ \\n\+ \\r\n\+ \\ENQ\EOT\DLE\STX\NUL\ACK\DC2\EOT\206\EOT\b\NAK\n\+ \\r\n\+ \\ENQ\EOT\DLE\STX\NUL\SOH\DC2\EOT\206\EOT\SYN%\n\+ \\r\n\+ \\ENQ\EOT\DLE\STX\NUL\ETX\DC2\EOT\206\EOT()\n\+ \a\n\+ \\EOT\EOT\DLE\STX\SOH\DC2\EOT\212\EOT\b\US\SUBS\n\+ \A channel shim that uses a PSBT to fund and sign the channel funding\n\+ \transaction.\n\+ \\n\+ \\r\n\+ \\ENQ\EOT\DLE\STX\SOH\ACK\DC2\EOT\212\EOT\b\DLE\n\+ \\r\n\+ \\ENQ\EOT\DLE\STX\SOH\SOH\DC2\EOT\212\EOT\DC1\SUB\n\+ \\r\n\+ \\ENQ\EOT\DLE\STX\SOH\ETX\DC2\EOT\212\EOT\GS\RS\n\+ \\f\n\+ \\STX\EOT\DC1\DC2\ACK\216\EOT\NUL\219\EOT\SOH\n\+ \\v\n\+ \\ETX\EOT\DC1\SOH\DC2\EOT\216\EOT\b\EM\n\+ \U\n\+ \\EOT\EOT\DC1\STX\NUL\DC2\EOT\218\EOT\EOT\RS\SUBG The pending channel ID of the channel to cancel the funding shim for.\n\+ \\n\+ \\r\n\+ \\ENQ\EOT\DC1\STX\NUL\ENQ\DC2\EOT\218\EOT\EOT\t\n\+ \\r\n\+ \\ENQ\EOT\DC1\STX\NUL\SOH\DC2\EOT\218\EOT\n\+ \\EM\n\+ \\r\n\+ \\ENQ\EOT\DC1\STX\NUL\ETX\DC2\EOT\218\EOT\FS\GS\n\+ \\f\n\+ \\STX\EOT\DC2\DC2\ACK\221\EOT\NUL\245\EOT\SOH\n\+ \\v\n\+ \\ETX\EOT\DC2\SOH\DC2\EOT\221\EOT\b\EM\n\+ \\170\SOH\n\+ \\EOT\EOT\DC2\STX\NUL\DC2\EOT\227\EOT\EOT\SUB\SUB\155\SOH\n\+ \The funded but not yet signed PSBT that sends the exact channel capacity\n\+ \amount to the PK script returned in the open channel message in a previous\n\+ \step.\n\+ \\n\+ \\r\n\+ \\ENQ\EOT\DC2\STX\NUL\ENQ\DC2\EOT\227\EOT\EOT\t\n\+ \\r\n\+ \\ENQ\EOT\DC2\STX\NUL\SOH\DC2\EOT\227\EOT\n\+ \\NAK\n\+ \\r\n\+ \\ENQ\EOT\DC2\STX\NUL\ETX\DC2\EOT\227\EOT\CAN\EM\n\+ \J\n\+ \\EOT\EOT\DC2\STX\SOH\DC2\EOT\230\EOT\EOT\RS\SUB< The pending channel ID of the channel to get the PSBT for.\n\+ \\n\+ \\r\n\+ \\ENQ\EOT\DC2\STX\SOH\ENQ\DC2\EOT\230\EOT\EOT\t\n\+ \\r\n\+ \\ENQ\EOT\DC2\STX\SOH\SOH\DC2\EOT\230\EOT\n\+ \\EM\n\+ \\r\n\+ \\ENQ\EOT\DC2\STX\SOH\ETX\DC2\EOT\230\EOT\FS\GS\n\+ \\215\ENQ\n\+ \\EOT\EOT\DC2\STX\STX\DC2\EOT\244\EOT\EOT\ESC\SUB\200\ENQ\n\+ \Can only be used if the no_publish flag was set to true in the OpenChannel\n\+ \call meaning that the caller is solely responsible for publishing the final\n\+ \funding transaction. If skip_finalize is set to true then lnd will not wait\n\+ \for a FundingPsbtFinalize state step and instead assumes that a transaction\n\+ \with the same TXID as the passed in PSBT will eventually confirm.\n\+ \IT IS ABSOLUTELY IMPERATIVE that the TXID of the transaction that is\n\+ \eventually published does have the _same TXID_ as the verified PSBT. That\n\+ \means no inputs or outputs can change, only signatures can be added. If the\n\+ \TXID changes between this call and the publish step then the channel will\n\+ \never be created and the funds will be in limbo.\n\+ \\n\+ \\r\n\+ \\ENQ\EOT\DC2\STX\STX\ENQ\DC2\EOT\244\EOT\EOT\b\n\+ \\r\n\+ \\ENQ\EOT\DC2\STX\STX\SOH\DC2\EOT\244\EOT\t\SYN\n\+ \\r\n\+ \\ENQ\EOT\DC2\STX\STX\ETX\DC2\EOT\244\EOT\EM\SUB\n\+ \\f\n\+ \\STX\EOT\DC3\DC2\ACK\247\EOT\NUL\136\ENQ\SOH\n\+ \\v\n\+ \\ETX\EOT\DC3\SOH\DC2\EOT\247\EOT\b\ESC\n\+ \\227\SOH\n\+ \\EOT\EOT\DC3\STX\NUL\DC2\EOT\253\EOT\EOT\SUB\SUB\212\SOH\n\+ \The funded PSBT that contains all witness data to send the exact channel\n\+ \capacity amount to the PK script returned in the open channel message in a\n\+ \previous step. Cannot be set at the same time as final_raw_tx.\n\+ \\n\+ \\r\n\+ \\ENQ\EOT\DC3\STX\NUL\ENQ\DC2\EOT\253\EOT\EOT\t\n\+ \\r\n\+ \\ENQ\EOT\DC3\STX\NUL\SOH\DC2\EOT\253\EOT\n\+ \\NAK\n\+ \\r\n\+ \\ENQ\EOT\DC3\STX\NUL\ETX\DC2\EOT\253\EOT\CAN\EM\n\+ \J\n\+ \\EOT\EOT\DC3\STX\SOH\DC2\EOT\128\ENQ\EOT\RS\SUB< The pending channel ID of the channel to get the PSBT for.\n\+ \\n\+ \\r\n\+ \\ENQ\EOT\DC3\STX\SOH\ENQ\DC2\EOT\128\ENQ\EOT\t\n\+ \\r\n\+ \\ENQ\EOT\DC3\STX\SOH\SOH\DC2\EOT\128\ENQ\n\+ \\EM\n\+ \\r\n\+ \\ENQ\EOT\DC3\STX\SOH\ETX\DC2\EOT\128\ENQ\FS\GS\n\+ \\193\SOH\n\+ \\EOT\EOT\DC3\STX\STX\DC2\EOT\135\ENQ\EOT\ESC\SUB\178\SOH\n\+ \As an alternative to the signed PSBT with all witness data, the final raw\n\+ \wire format transaction can also be specified directly. Cannot be set at the\n\+ \same time as signed_psbt.\n\+ \\n\+ \\r\n\+ \\ENQ\EOT\DC3\STX\STX\ENQ\DC2\EOT\135\ENQ\EOT\t\n\+ \\r\n\+ \\ENQ\EOT\DC3\STX\STX\SOH\DC2\EOT\135\ENQ\n\+ \\SYN\n\+ \\r\n\+ \\ENQ\EOT\DC3\STX\STX\ETX\DC2\EOT\135\ENQ\EM\SUB\n\+ \\f\n\+ \\STX\EOT\DC4\DC2\ACK\138\ENQ\NUL\165\ENQ\SOH\n\+ \\v\n\+ \\ETX\EOT\DC4\SOH\DC2\EOT\138\ENQ\b\FS\n\+ \\SO\n\+ \\EOT\EOT\DC4\b\NUL\DC2\ACK\139\ENQ\EOT\164\ENQ\ENQ\n\+ \\r\n\+ \\ENQ\EOT\DC4\b\NUL\SOH\DC2\EOT\139\ENQ\n\+ \\DC1\n\+ \\194\SOH\n\+ \\EOT\EOT\DC4\STX\NUL\DC2\EOT\145\ENQ\b&\SUB\179\SOH\n\+ \The funding shim to register. This should be used before any\n\+ \channel funding has began by the remote party, as it is intended as a\n\+ \preparatory step for the full channel funding.\n\+ \\n\+ \\r\n\+ \\ENQ\EOT\DC4\STX\NUL\ACK\DC2\EOT\145\ENQ\b\DC3\n\+ \\r\n\+ \\ENQ\EOT\DC4\STX\NUL\SOH\DC2\EOT\145\ENQ\DC4!\n\+ \\r\n\+ \\ENQ\EOT\DC4\STX\NUL\ETX\DC2\EOT\145\ENQ$%\n\+ \C\n\+ \\EOT\EOT\DC4\STX\SOH\DC2\EOT\148\ENQ\b*\SUB5 Used to cancel an existing registered funding shim.\n\+ \\n\+ \\r\n\+ \\ENQ\EOT\DC4\STX\SOH\ACK\DC2\EOT\148\ENQ\b\EM\n\+ \\r\n\+ \\ENQ\EOT\DC4\STX\SOH\SOH\DC2\EOT\148\ENQ\SUB%\n\+ \\r\n\+ \\ENQ\EOT\DC4\STX\SOH\ETX\DC2\EOT\148\ENQ()\n\+ \\181\SOH\n\+ \\EOT\EOT\DC4\STX\STX\DC2\EOT\155\ENQ\b*\SUB\166\SOH\n\+ \Used to continue a funding flow that was initiated to be executed\n\+ \through a PSBT. This step verifies that the PSBT contains the correct\n\+ \outputs to fund the channel.\n\+ \\n\+ \\r\n\+ \\ENQ\EOT\DC4\STX\STX\ACK\DC2\EOT\155\ENQ\b\EM\n\+ \\r\n\+ \\ENQ\EOT\DC4\STX\STX\SOH\DC2\EOT\155\ENQ\SUB%\n\+ \\r\n\+ \\ENQ\EOT\DC4\STX\STX\ETX\DC2\EOT\155\ENQ()\n\+ \\238\SOH\n\+ \\EOT\EOT\DC4\STX\ETX\DC2\EOT\163\ENQ\b.\SUB\223\SOH\n\+ \Used to continue a funding flow that was initiated to be executed\n\+ \through a PSBT. This step finalizes the funded and signed PSBT, finishes\n\+ \negotiation with the peer and finally publishes the resulting funding\n\+ \transaction.\n\+ \\n\+ \\r\n\+ \\ENQ\EOT\DC4\STX\ETX\ACK\DC2\EOT\163\ENQ\b\ESC\n\+ \\r\n\+ \\ENQ\EOT\DC4\STX\ETX\SOH\DC2\EOT\163\ENQ\FS)\n\+ \\r\n\+ \\ENQ\EOT\DC4\STX\ETX\ETX\DC2\EOT\163\ENQ,-\n\+ \\f\n\+ \\STX\EOT\NAK\DC2\ACK\167\ENQ\NUL\168\ENQ\SOH\n\+ \\v\n\+ \\ETX\EOT\NAK\SOH\DC2\EOT\167\ENQ\b\FS\n\+ \\f\n\+ \\STX\EOT\SYN\DC2\ACK\170\ENQ\NUL\192\ENQ\SOH\n\+ \\v\n\+ \\ETX\EOT\SYN\SOH\DC2\EOT\170\ENQ\b\DC3\n\+ \G\n\+ \\EOT\EOT\SYN\STX\NUL\DC2\EOT\172\ENQ\EOT\SYN\SUB9 The direction within the channel that the htlc was sent\n\+ \\n\+ \\r\n\+ \\ENQ\EOT\SYN\STX\NUL\ENQ\DC2\EOT\172\ENQ\EOT\b\n\+ \\r\n\+ \\ENQ\EOT\SYN\STX\NUL\SOH\DC2\EOT\172\ENQ\t\DC1\n\+ \\r\n\+ \\ENQ\EOT\SYN\STX\NUL\ETX\DC2\EOT\172\ENQ\DC4\NAK\n\+ \+\n\+ \\EOT\EOT\SYN\STX\SOH\DC2\EOT\175\ENQ\EOT\NAK\SUB\GS The total value of the htlc\n\+ \\n\+ \\r\n\+ \\ENQ\EOT\SYN\STX\SOH\ENQ\DC2\EOT\175\ENQ\EOT\t\n\+ \\r\n\+ \\ENQ\EOT\SYN\STX\SOH\SOH\DC2\EOT\175\ENQ\n\+ \\DLE\n\+ \\r\n\+ \\ENQ\EOT\SYN\STX\SOH\ETX\DC2\EOT\175\ENQ\DC3\DC4\n\+ \F\n\+ \\EOT\EOT\SYN\STX\STX\DC2\EOT\178\ENQ\EOT\CAN\SUB8 The final output to be swept back to the user's wallet\n\+ \\n\+ \\r\n\+ \\ENQ\EOT\SYN\STX\STX\ENQ\DC2\EOT\178\ENQ\EOT\n\+ \\n\+ \\r\n\+ \\ENQ\EOT\SYN\STX\STX\SOH\DC2\EOT\178\ENQ\v\DC3\n\+ \\r\n\+ \\ENQ\EOT\SYN\STX\STX\ETX\DC2\EOT\178\ENQ\SYN\ETB\n\+ \M\n\+ \\EOT\EOT\SYN\STX\ETX\DC2\EOT\181\ENQ\EOT\US\SUB? The next block height at which we can spend the current stage\n\+ \\n\+ \\r\n\+ \\ENQ\EOT\SYN\STX\ETX\ENQ\DC2\EOT\181\ENQ\EOT\n\+ \\n\+ \\r\n\+ \\ENQ\EOT\SYN\STX\ETX\SOH\DC2\EOT\181\ENQ\v\SUB\n\+ \\r\n\+ \\ENQ\EOT\SYN\STX\ETX\ETX\DC2\EOT\181\ENQ\GS\RS\n\+ \\161\SOH\n\+ \\EOT\EOT\SYN\STX\EOT\DC2\EOT\188\ENQ\EOT\"\SUB\146\SOH\n\+ \The number of blocks remaining until the current stage can be swept.\n\+ \Negative values indicate how many blocks have passed since becoming\n\+ \mature.\n\+ \\n\+ \\r\n\+ \\ENQ\EOT\SYN\STX\EOT\ENQ\DC2\EOT\188\ENQ\EOT\t\n\+ \\r\n\+ \\ENQ\EOT\SYN\STX\EOT\SOH\DC2\EOT\188\ENQ\n\+ \\GS\n\+ \\r\n\+ \\ENQ\EOT\SYN\STX\EOT\ETX\DC2\EOT\188\ENQ !\n\+ \V\n\+ \\EOT\EOT\SYN\STX\ENQ\DC2\EOT\191\ENQ\EOT\NAK\SUBH Indicates whether the htlc is in its first or second stage of recovery\n\+ \\n\+ \\r\n\+ \\ENQ\EOT\SYN\STX\ENQ\ENQ\DC2\EOT\191\ENQ\EOT\n\+ \\n\+ \\r\n\+ \\ENQ\EOT\SYN\STX\ENQ\SOH\DC2\EOT\191\ENQ\v\DLE\n\+ \\r\n\+ \\ENQ\EOT\SYN\STX\ENQ\ETX\DC2\EOT\191\ENQ\DC3\DC4\n\+ \\f\n\+ \\STX\EOT\ETB\DC2\ACK\194\ENQ\NUL\195\ENQ\SOH\n\+ \\v\n\+ \\ETX\EOT\ETB\SOH\DC2\EOT\194\ENQ\b\RS\n\+ \\f\n\+ \\STX\EOT\CAN\DC2\ACK\196\ENQ\NUL\228\ACK\SOH\n\+ \\v\n\+ \\ETX\EOT\CAN\SOH\DC2\EOT\196\ENQ\b\US\n\+ \\SO\n\+ \\EOT\EOT\CAN\ETX\NUL\DC2\ACK\197\ENQ\EOT\224\ENQ\ENQ\n\+ \\r\n\+ \\ENQ\EOT\CAN\ETX\NUL\SOH\DC2\EOT\197\ENQ\f\SUB\n\+ \\SO\n\+ \\ACK\EOT\CAN\ETX\NUL\STX\NUL\DC2\EOT\198\ENQ\b#\n\+ \\SI\n\+ \\a\EOT\CAN\ETX\NUL\STX\NUL\ENQ\DC2\EOT\198\ENQ\b\SO\n\+ \\SI\n\+ \\a\EOT\CAN\ETX\NUL\STX\NUL\SOH\DC2\EOT\198\ENQ\SI\RS\n\+ \\SI\n\+ \\a\EOT\CAN\ETX\NUL\STX\NUL\ETX\DC2\EOT\198\ENQ!\"\n\+ \\SO\n\+ \\ACK\EOT\CAN\ETX\NUL\STX\SOH\DC2\EOT\199\ENQ\b!\n\+ \\SI\n\+ \\a\EOT\CAN\ETX\NUL\STX\SOH\ENQ\DC2\EOT\199\ENQ\b\SO\n\+ \\SI\n\+ \\a\EOT\CAN\ETX\NUL\STX\SOH\SOH\DC2\EOT\199\ENQ\SI\FS\n\+ \\SI\n\+ \\a\EOT\CAN\ETX\NUL\STX\SOH\ETX\DC2\EOT\199\ENQ\US \n\+ \\SO\n\+ \\ACK\EOT\CAN\ETX\NUL\STX\STX\DC2\EOT\201\ENQ\b\ESC\n\+ \\SI\n\+ \\a\EOT\CAN\ETX\NUL\STX\STX\ENQ\DC2\EOT\201\ENQ\b\r\n\+ \\SI\n\+ \\a\EOT\CAN\ETX\NUL\STX\STX\SOH\DC2\EOT\201\ENQ\SO\SYN\n\+ \\SI\n\+ \\a\EOT\CAN\ETX\NUL\STX\STX\ETX\DC2\EOT\201\ENQ\EM\SUB\n\+ \\SO\n\+ \\ACK\EOT\CAN\ETX\NUL\STX\ETX\DC2\EOT\203\ENQ\b \n\+ \\SI\n\+ \\a\EOT\CAN\ETX\NUL\STX\ETX\ENQ\DC2\EOT\203\ENQ\b\r\n\+ \\SI\n\+ \\a\EOT\CAN\ETX\NUL\STX\ETX\SOH\DC2\EOT\203\ENQ\SO\ESC\n\+ \\SI\n\+ \\a\EOT\CAN\ETX\NUL\STX\ETX\ETX\DC2\EOT\203\ENQ\RS\US\n\+ \\SO\n\+ \\ACK\EOT\CAN\ETX\NUL\STX\EOT\DC2\EOT\204\ENQ\b!\n\+ \\SI\n\+ \\a\EOT\CAN\ETX\NUL\STX\EOT\ENQ\DC2\EOT\204\ENQ\b\r\n\+ \\SI\n\+ \\a\EOT\CAN\ETX\NUL\STX\EOT\SOH\DC2\EOT\204\ENQ\SO\FS\n\+ \\SI\n\+ \\a\EOT\CAN\ETX\NUL\STX\EOT\ETX\DC2\EOT\204\ENQ\US \n\+ \X\n\+ \\ACK\EOT\CAN\ETX\NUL\STX\ENQ\DC2\EOT\208\ENQ\b)\SUBH The minimum satoshis this node is required to reserve in its\n\+ \ balance.\n\+ \\n\+ \\SI\n\+ \\a\EOT\CAN\ETX\NUL\STX\ENQ\ENQ\DC2\EOT\208\ENQ\b\r\n\+ \\SI\n\+ \\a\EOT\CAN\ETX\NUL\STX\ENQ\SOH\DC2\EOT\208\ENQ\SO$\n\+ \\SI\n\+ \\a\EOT\CAN\ETX\NUL\STX\ENQ\ETX\DC2\EOT\208\ENQ'(\n\+ \\\\n\+ \\ACK\EOT\CAN\ETX\NUL\STX\ACK\DC2\EOT\214\ENQ\b*\SUBL\n\+ \The minimum satoshis the other node is required to reserve in its\n\+ \balance.\n\+ \\n\+ \\SI\n\+ \\a\EOT\CAN\ETX\NUL\STX\ACK\ENQ\DC2\EOT\214\ENQ\b\r\n\+ \\SI\n\+ \\a\EOT\CAN\ETX\NUL\STX\ACK\SOH\DC2\EOT\214\ENQ\SO%\n\+ \\SI\n\+ \\a\EOT\CAN\ETX\NUL\STX\ACK\ETX\DC2\EOT\214\ENQ()\n\+ \?\n\+ \\ACK\EOT\CAN\ETX\NUL\STX\a\DC2\EOT\217\ENQ\b \SUB/ The party that initiated opening the channel.\n\+ \\n\+ \\SI\n\+ \\a\EOT\CAN\ETX\NUL\STX\a\ACK\DC2\EOT\217\ENQ\b\DC1\n\+ \\SI\n\+ \\a\EOT\CAN\ETX\NUL\STX\a\SOH\DC2\EOT\217\ENQ\DC2\ESC\n\+ \\SI\n\+ \\a\EOT\CAN\ETX\NUL\STX\a\ETX\DC2\EOT\217\ENQ\RS\US\n\+ \;\n\+ \\ACK\EOT\CAN\ETX\NUL\STX\b\DC2\EOT\220\ENQ\b+\SUB+ The commitment type used by this channel.\n\+ \\n\+ \\SI\n\+ \\a\EOT\CAN\ETX\NUL\STX\b\ACK\DC2\EOT\220\ENQ\b\SYN\n\+ \\SI\n\+ \\a\EOT\CAN\ETX\NUL\STX\b\SOH\DC2\EOT\220\ENQ\ETB&\n\+ \\SI\n\+ \\a\EOT\CAN\ETX\NUL\STX\b\ETX\DC2\EOT\220\ENQ)*\n\+ \N\n\+ \\ACK\EOT\CAN\ETX\NUL\STX\t\DC2\EOT\223\ENQ\b+\SUB> Total number of forwarding packages created in this channel.\n\+ \\n\+ \\SI\n\+ \\a\EOT\CAN\ETX\NUL\STX\t\ENQ\DC2\EOT\223\ENQ\b\r\n\+ \\SI\n\+ \\a\EOT\CAN\ETX\NUL\STX\t\SOH\DC2\EOT\223\ENQ\SO%\n\+ \\SI\n\+ \\a\EOT\CAN\ETX\NUL\STX\t\ETX\DC2\EOT\223\ENQ(*\n\+ \\SO\n\+ \\EOT\EOT\CAN\ETX\SOH\DC2\ACK\226\ENQ\EOT\251\ENQ\ENQ\n\+ \\r\n\+ \\ENQ\EOT\CAN\ETX\SOH\SOH\DC2\EOT\226\ENQ\f\RS\n\+ \%\n\+ \\ACK\EOT\CAN\ETX\SOH\STX\NUL\DC2\EOT\228\ENQ\b#\SUB\NAK The pending channel\n\+ \\n\+ \\SI\n\+ \\a\EOT\CAN\ETX\SOH\STX\NUL\ACK\DC2\EOT\228\ENQ\b\SYN\n\+ \\SI\n\+ \\a\EOT\CAN\ETX\SOH\STX\NUL\SOH\DC2\EOT\228\ENQ\ETB\RS\n\+ \\SI\n\+ \\a\EOT\CAN\ETX\SOH\STX\NUL\ETX\DC2\EOT\228\ENQ!\"\n\+ \D\n\+ \\ACK\EOT\CAN\ETX\SOH\STX\SOH\DC2\EOT\231\ENQ\b'\SUB4 The height at which this channel will be confirmed\n\+ \\n\+ \\SI\n\+ \\a\EOT\CAN\ETX\SOH\STX\SOH\ENQ\DC2\EOT\231\ENQ\b\SO\n\+ \\SI\n\+ \\a\EOT\CAN\ETX\SOH\STX\SOH\SOH\DC2\EOT\231\ENQ\SI\"\n\+ \\SI\n\+ \\a\EOT\CAN\ETX\SOH\STX\SOH\ETX\DC2\EOT\231\ENQ%&\n\+ \\174\STX\n\+ \\ACK\EOT\CAN\ETX\SOH\STX\STX\DC2\EOT\240\ENQ\b\GS\SUB\157\STX\n\+ \The amount calculated to be paid in fees for the current set of\n\+ \commitment transactions. The fee amount is persisted with the channel\n\+ \in order to allow the fee amount to be removed and recalculated with\n\+ \each channel state update, including updates that happen after a system\n\+ \restart.\n\+ \\n\+ \\SI\n\+ \\a\EOT\CAN\ETX\SOH\STX\STX\ENQ\DC2\EOT\240\ENQ\b\r\n\+ \\SI\n\+ \\a\EOT\CAN\ETX\SOH\STX\STX\SOH\DC2\EOT\240\ENQ\SO\CAN\n\+ \\SI\n\+ \\a\EOT\CAN\ETX\SOH\STX\STX\ETX\DC2\EOT\240\ENQ\ESC\FS\n\+ \:\n\+ \\ACK\EOT\CAN\ETX\SOH\STX\ETX\DC2\EOT\243\ENQ\b \SUB* The weight of the commitment transaction\n\+ \\n\+ \\SI\n\+ \\a\EOT\CAN\ETX\SOH\STX\ETX\ENQ\DC2\EOT\243\ENQ\b\r\n\+ \\SI\n\+ \\a\EOT\CAN\ETX\SOH\STX\ETX\SOH\DC2\EOT\243\ENQ\SO\ESC\n\+ \\SI\n\+ \\a\EOT\CAN\ETX\SOH\STX\ETX\ETX\DC2\EOT\243\ENQ\RS\US\n\+ \\227\SOH\n\+ \\ACK\EOT\CAN\ETX\SOH\STX\EOT\DC2\EOT\250\ENQ\b\GS\SUB\210\SOH\n\+ \The required number of satoshis per kilo-weight that the requester will\n\+ \pay at all times, for both the funding transaction and commitment\n\+ \transaction. This value can later be updated once the channel is open.\n\+ \\n\+ \\SI\n\+ \\a\EOT\CAN\ETX\SOH\STX\EOT\ENQ\DC2\EOT\250\ENQ\b\r\n\+ \\SI\n\+ \\a\EOT\CAN\ETX\SOH\STX\EOT\SOH\DC2\EOT\250\ENQ\SO\CAN\n\+ \\SI\n\+ \\a\EOT\CAN\ETX\SOH\STX\EOT\ETX\DC2\EOT\250\ENQ\ESC\FS\n\+ \\SO\n\+ \\EOT\EOT\CAN\ETX\STX\DC2\ACK\253\ENQ\EOT\137\ACK\ENQ\n\+ \\r\n\+ \\ENQ\EOT\CAN\ETX\STX\SOH\DC2\EOT\253\ENQ\f\US\n\+ \G\n\+ \\ACK\EOT\CAN\ETX\STX\STX\NUL\DC2\EOT\255\ENQ\b#\SUB7 The pending channel waiting for closing tx to confirm\n\+ \\n\+ \\SI\n\+ \\a\EOT\CAN\ETX\STX\STX\NUL\ACK\DC2\EOT\255\ENQ\b\SYN\n\+ \\SI\n\+ \\a\EOT\CAN\ETX\STX\STX\NUL\SOH\DC2\EOT\255\ENQ\ETB\RS\n\+ \\SI\n\+ \\a\EOT\CAN\ETX\STX\STX\NUL\ETX\DC2\EOT\255\ENQ!\"\n\+ \D\n\+ \\ACK\EOT\CAN\ETX\STX\STX\SOH\DC2\EOT\130\ACK\b \SUB4 The balance in satoshis encumbered in this channel\n\+ \\n\+ \\SI\n\+ \\a\EOT\CAN\ETX\STX\STX\SOH\ENQ\DC2\EOT\130\ACK\b\r\n\+ \\SI\n\+ \\a\EOT\CAN\ETX\STX\STX\SOH\SOH\DC2\EOT\130\ACK\SO\ESC\n\+ \\SI\n\+ \\a\EOT\CAN\ETX\STX\STX\SOH\ETX\DC2\EOT\130\ACK\RS\US\n\+ \b\n\+ \\ACK\EOT\CAN\ETX\STX\STX\STX\DC2\EOT\136\ACK\b$\SUBR\n\+ \A list of valid commitment transactions. Any of these can confirm at\n\+ \this point.\n\+ \\n\+ \\SI\n\+ \\a\EOT\CAN\ETX\STX\STX\STX\ACK\DC2\EOT\136\ACK\b\DC3\n\+ \\SI\n\+ \\a\EOT\CAN\ETX\STX\STX\STX\SOH\DC2\EOT\136\ACK\DC4\US\n\+ \\SI\n\+ \\a\EOT\CAN\ETX\STX\STX\STX\ETX\DC2\EOT\136\ACK\"#\n\+ \\SO\n\+ \\EOT\EOT\CAN\ETX\ETX\DC2\ACK\139\ACK\EOT\166\ACK\ENQ\n\+ \\r\n\+ \\ENQ\EOT\CAN\ETX\ETX\SOH\DC2\EOT\139\ACK\f\ETB\n\+ \A\n\+ \\ACK\EOT\CAN\ETX\ETX\STX\NUL\DC2\EOT\141\ACK\b\RS\SUB1 Hash of the local version of the commitment tx.\n\+ \\n\+ \\SI\n\+ \\a\EOT\CAN\ETX\ETX\STX\NUL\ENQ\DC2\EOT\141\ACK\b\SO\n\+ \\SI\n\+ \\a\EOT\CAN\ETX\ETX\STX\NUL\SOH\DC2\EOT\141\ACK\SI\EM\n\+ \\SI\n\+ \\a\EOT\CAN\ETX\ETX\STX\NUL\ETX\DC2\EOT\141\ACK\FS\GS\n\+ \B\n\+ \\ACK\EOT\CAN\ETX\ETX\STX\SOH\DC2\EOT\144\ACK\b\US\SUB2 Hash of the remote version of the commitment tx.\n\+ \\n\+ \\SI\n\+ \\a\EOT\CAN\ETX\ETX\STX\SOH\ENQ\DC2\EOT\144\ACK\b\SO\n\+ \\SI\n\+ \\a\EOT\CAN\ETX\ETX\STX\SOH\SOH\DC2\EOT\144\ACK\SI\SUB\n\+ \\SI\n\+ \\a\EOT\CAN\ETX\ETX\STX\SOH\ETX\DC2\EOT\144\ACK\GS\RS\n\+ \J\n\+ \\ACK\EOT\CAN\ETX\ETX\STX\STX\DC2\EOT\147\ACK\b'\SUB: Hash of the remote pending version of the commitment tx.\n\+ \\n\+ \\SI\n\+ \\a\EOT\CAN\ETX\ETX\STX\STX\ENQ\DC2\EOT\147\ACK\b\SO\n\+ \\SI\n\+ \\a\EOT\CAN\ETX\ETX\STX\STX\SOH\DC2\EOT\147\ACK\SI\"\n\+ \\SI\n\+ \\a\EOT\CAN\ETX\ETX\STX\STX\ETX\DC2\EOT\147\ACK%&\n\+ \`\n\+ \\ACK\EOT\CAN\ETX\ETX\STX\ETX\DC2\EOT\153\ACK\b(\SUBP\n\+ \The amount in satoshis calculated to be paid in fees for the local\n\+ \commitment.\n\+ \\n\+ \\SI\n\+ \\a\EOT\CAN\ETX\ETX\STX\ETX\ENQ\DC2\EOT\153\ACK\b\SO\n\+ \\SI\n\+ \\a\EOT\CAN\ETX\ETX\STX\ETX\SOH\DC2\EOT\153\ACK\SI#\n\+ \\SI\n\+ \\a\EOT\CAN\ETX\ETX\STX\ETX\ETX\DC2\EOT\153\ACK&'\n\+ \a\n\+ \\ACK\EOT\CAN\ETX\ETX\STX\EOT\DC2\EOT\159\ACK\b)\SUBQ\n\+ \The amount in satoshis calculated to be paid in fees for the remote\n\+ \commitment.\n\+ \\n\+ \\SI\n\+ \\a\EOT\CAN\ETX\ETX\STX\EOT\ENQ\DC2\EOT\159\ACK\b\SO\n\+ \\SI\n\+ \\a\EOT\CAN\ETX\ETX\STX\EOT\SOH\DC2\EOT\159\ACK\SI$\n\+ \\SI\n\+ \\a\EOT\CAN\ETX\ETX\STX\EOT\ETX\DC2\EOT\159\ACK'(\n\+ \i\n\+ \\ACK\EOT\CAN\ETX\ETX\STX\ENQ\DC2\EOT\165\ACK\b1\SUBY\n\+ \The amount in satoshis calculated to be paid in fees for the remote\n\+ \pending commitment.\n\+ \\n\+ \\SI\n\+ \\a\EOT\CAN\ETX\ETX\STX\ENQ\ENQ\DC2\EOT\165\ACK\b\SO\n\+ \\SI\n\+ \\a\EOT\CAN\ETX\ETX\STX\ENQ\SOH\DC2\EOT\165\ACK\SI,\n\+ \\SI\n\+ \\a\EOT\CAN\ETX\ETX\STX\ENQ\ETX\DC2\EOT\165\ACK/0\n\+ \\SO\n\+ \\EOT\EOT\CAN\ETX\EOT\DC2\ACK\168\ACK\EOT\174\ACK\ENQ\n\+ \\r\n\+ \\ENQ\EOT\CAN\ETX\EOT\SOH\DC2\EOT\168\ACK\f\EM\n\+ \2\n\+ \\ACK\EOT\CAN\ETX\EOT\STX\NUL\DC2\EOT\170\ACK\b#\SUB\" The pending channel to be closed\n\+ \\n\+ \\SI\n\+ \\a\EOT\CAN\ETX\EOT\STX\NUL\ACK\DC2\EOT\170\ACK\b\SYN\n\+ \\SI\n\+ \\a\EOT\CAN\ETX\EOT\STX\NUL\SOH\DC2\EOT\170\ACK\ETB\RS\n\+ \\SI\n\+ \\a\EOT\CAN\ETX\EOT\STX\NUL\ETX\DC2\EOT\170\ACK!\"\n\+ \?\n\+ \\ACK\EOT\CAN\ETX\EOT\STX\SOH\DC2\EOT\173\ACK\b \SUB/ The transaction id of the closing transaction\n\+ \\n\+ \\SI\n\+ \\a\EOT\CAN\ETX\EOT\STX\SOH\ENQ\DC2\EOT\173\ACK\b\SO\n\+ \\SI\n\+ \\a\EOT\CAN\ETX\EOT\STX\SOH\SOH\DC2\EOT\173\ACK\SI\ESC\n\+ \\SI\n\+ \\a\EOT\CAN\ETX\EOT\STX\SOH\ETX\DC2\EOT\173\ACK\RS\US\n\+ \\SO\n\+ \\EOT\EOT\CAN\ETX\ENQ\DC2\ACK\176\ACK\EOT\208\ACK\ENQ\n\+ \\r\n\+ \\ENQ\EOT\CAN\ETX\ENQ\SOH\DC2\EOT\176\ACK\f\RS\n\+ \8\n\+ \\ACK\EOT\CAN\ETX\ENQ\STX\NUL\DC2\EOT\178\ACK\b#\SUB( The pending channel to be force closed\n\+ \\n\+ \\SI\n\+ \\a\EOT\CAN\ETX\ENQ\STX\NUL\ACK\DC2\EOT\178\ACK\b\SYN\n\+ \\SI\n\+ \\a\EOT\CAN\ETX\ENQ\STX\NUL\SOH\DC2\EOT\178\ACK\ETB\RS\n\+ \\SI\n\+ \\a\EOT\CAN\ETX\ENQ\STX\NUL\ETX\DC2\EOT\178\ACK!\"\n\+ \?\n\+ \\ACK\EOT\CAN\ETX\ENQ\STX\SOH\DC2\EOT\181\ACK\b \SUB/ The transaction id of the closing transaction\n\+ \\n\+ \\SI\n\+ \\a\EOT\CAN\ETX\ENQ\STX\SOH\ENQ\DC2\EOT\181\ACK\b\SO\n\+ \\SI\n\+ \\a\EOT\CAN\ETX\ENQ\STX\SOH\SOH\DC2\EOT\181\ACK\SI\ESC\n\+ \\SI\n\+ \\a\EOT\CAN\ETX\ENQ\STX\SOH\ETX\DC2\EOT\181\ACK\RS\US\n\+ \L\n\+ \\ACK\EOT\CAN\ETX\ENQ\STX\STX\DC2\EOT\184\ACK\b \SUB< The balance in satoshis encumbered in this pending channel\n\+ \\n\+ \\SI\n\+ \\a\EOT\CAN\ETX\ENQ\STX\STX\ENQ\DC2\EOT\184\ACK\b\r\n\+ \\SI\n\+ \\a\EOT\CAN\ETX\ENQ\STX\STX\SOH\DC2\EOT\184\ACK\SO\ESC\n\+ \\SI\n\+ \\a\EOT\CAN\ETX\ENQ\STX\STX\ETX\DC2\EOT\184\ACK\RS\US\n\+ \H\n\+ \\ACK\EOT\CAN\ETX\ENQ\STX\ETX\DC2\EOT\187\ACK\b#\SUB8 The height at which funds can be swept into the wallet\n\+ \\n\+ \\SI\n\+ \\a\EOT\CAN\ETX\ENQ\STX\ETX\ENQ\DC2\EOT\187\ACK\b\SO\n\+ \\SI\n\+ \\a\EOT\CAN\ETX\ENQ\STX\ETX\SOH\DC2\EOT\187\ACK\SI\RS\n\+ \\SI\n\+ \\a\EOT\CAN\ETX\ENQ\STX\ETX\ETX\DC2\EOT\187\ACK!\"\n\+ \\158\SOH\n\+ \\ACK\EOT\CAN\ETX\ENQ\STX\EOT\DC2\EOT\194\ACK\b&\SUB\141\SOH\n\+ \Remaining # of blocks until the commitment output can be swept.\n\+ \Negative values indicate how many blocks have passed since becoming\n\+ \mature.\n\+ \\n\+ \\SI\n\+ \\a\EOT\CAN\ETX\ENQ\STX\EOT\ENQ\DC2\EOT\194\ACK\b\r\n\+ \\SI\n\+ \\a\EOT\CAN\ETX\ENQ\STX\EOT\SOH\DC2\EOT\194\ACK\SO!\n\+ \\SI\n\+ \\a\EOT\CAN\ETX\ENQ\STX\EOT\ETX\DC2\EOT\194\ACK$%\n\+ \S\n\+ \\ACK\EOT\CAN\ETX\ENQ\STX\ENQ\DC2\EOT\197\ACK\b$\SUBC The total value of funds successfully recovered from this channel\n\+ \\n\+ \\SI\n\+ \\a\EOT\CAN\ETX\ENQ\STX\ENQ\ENQ\DC2\EOT\197\ACK\b\r\n\+ \\SI\n\+ \\a\EOT\CAN\ETX\ENQ\STX\ENQ\SOH\DC2\EOT\197\ACK\SO\US\n\+ \\SI\n\+ \\a\EOT\CAN\ETX\ENQ\STX\ENQ\ETX\DC2\EOT\197\ACK\"#\n\+ \\SO\n\+ \\ACK\EOT\CAN\ETX\ENQ\STX\ACK\DC2\EOT\199\ACK\b/\n\+ \\SI\n\+ \\a\EOT\CAN\ETX\ENQ\STX\ACK\EOT\DC2\EOT\199\ACK\b\DLE\n\+ \\SI\n\+ \\a\EOT\CAN\ETX\ENQ\STX\ACK\ACK\DC2\EOT\199\ACK\DC1\FS\n\+ \\SI\n\+ \\a\EOT\CAN\ETX\ENQ\STX\ACK\SOH\DC2\EOT\199\ACK\GS*\n\+ \\SI\n\+ \\a\EOT\CAN\ETX\ENQ\STX\ACK\ETX\DC2\EOT\199\ACK-.\n\+ \\DLE\n\+ \\ACK\EOT\CAN\ETX\ENQ\EOT\NUL\DC2\ACK\201\ACK\b\205\ACK\t\n\+ \\SI\n\+ \\a\EOT\CAN\ETX\ENQ\EOT\NUL\SOH\DC2\EOT\201\ACK\r\CAN\n\+ \\DLE\n\+ \\b\EOT\CAN\ETX\ENQ\EOT\NUL\STX\NUL\DC2\EOT\202\ACK\f\SYN\n\+ \\DC1\n\+ \\t\EOT\CAN\ETX\ENQ\EOT\NUL\STX\NUL\SOH\DC2\EOT\202\ACK\f\DC1\n\+ \\DC1\n\+ \\t\EOT\CAN\ETX\ENQ\EOT\NUL\STX\NUL\STX\DC2\EOT\202\ACK\DC4\NAK\n\+ \\DLE\n\+ \\b\EOT\CAN\ETX\ENQ\EOT\NUL\STX\SOH\DC2\EOT\203\ACK\f\SUB\n\+ \\DC1\n\+ \\t\EOT\CAN\ETX\ENQ\EOT\NUL\STX\SOH\SOH\DC2\EOT\203\ACK\f\NAK\n\+ \\DC1\n\+ \\t\EOT\CAN\ETX\ENQ\EOT\NUL\STX\SOH\STX\DC2\EOT\203\ACK\CAN\EM\n\+ \\DLE\n\+ \\b\EOT\CAN\ETX\ENQ\EOT\NUL\STX\STX\DC2\EOT\204\ACK\f\NAK\n\+ \\DC1\n\+ \\t\EOT\CAN\ETX\ENQ\EOT\NUL\STX\STX\SOH\DC2\EOT\204\ACK\f\DLE\n\+ \\DC1\n\+ \\t\EOT\CAN\ETX\ENQ\EOT\NUL\STX\STX\STX\DC2\EOT\204\ACK\DC3\DC4\n\+ \\SO\n\+ \\ACK\EOT\CAN\ETX\ENQ\STX\a\DC2\EOT\207\ACK\b\US\n\+ \\SI\n\+ \\a\EOT\CAN\ETX\ENQ\STX\a\ACK\DC2\EOT\207\ACK\b\DC3\n\+ \\SI\n\+ \\a\EOT\CAN\ETX\ENQ\STX\a\SOH\DC2\EOT\207\ACK\DC4\SUB\n\+ \\SI\n\+ \\a\EOT\CAN\ETX\ENQ\STX\a\ETX\DC2\EOT\207\ACK\GS\RS\n\+ \F\n\+ \\EOT\EOT\CAN\STX\NUL\DC2\EOT\211\ACK\EOT\"\SUB8 The balance in satoshis encumbered in pending channels\n\+ \\n\+ \\r\n\+ \\ENQ\EOT\CAN\STX\NUL\ENQ\DC2\EOT\211\ACK\EOT\t\n\+ \\r\n\+ \\ENQ\EOT\CAN\STX\NUL\SOH\DC2\EOT\211\ACK\n\+ \\GS\n\+ \\r\n\+ \\ENQ\EOT\CAN\STX\NUL\ETX\DC2\EOT\211\ACK !\n\+ \(\n\+ \\EOT\EOT\CAN\STX\SOH\DC2\EOT\214\ACK\EOT:\SUB\SUB Channels pending opening\n\+ \\n\+ \\r\n\+ \\ENQ\EOT\CAN\STX\SOH\EOT\DC2\EOT\214\ACK\EOT\f\n\+ \\r\n\+ \\ENQ\EOT\CAN\STX\SOH\ACK\DC2\EOT\214\ACK\r\US\n\+ \\r\n\+ \\ENQ\EOT\CAN\STX\SOH\SOH\DC2\EOT\214\ACK 5\n\+ \\r\n\+ \\ENQ\EOT\CAN\STX\SOH\ETX\DC2\EOT\214\ACK89\n\+ \\209\SOH\n\+ \\EOT\EOT\CAN\STX\STX\DC2\EOT\221\ACK\EOTL\SUB\194\SOH\n\+ \Deprecated: Channels pending closing previously contained cooperatively\n\+ \closed channels with a single confirmation. These channels are now\n\+ \considered closed from the time we see them on chain.\n\+ \\n\+ \\r\n\+ \\ENQ\EOT\CAN\STX\STX\EOT\DC2\EOT\221\ACK\EOT\f\n\+ \\r\n\+ \\ENQ\EOT\CAN\STX\STX\ACK\DC2\EOT\221\ACK\r\SUB\n\+ \\r\n\+ \\ENQ\EOT\CAN\STX\STX\SOH\DC2\EOT\221\ACK\ESC3\n\+ \\r\n\+ \\ENQ\EOT\CAN\STX\STX\ETX\DC2\EOT\221\ACK67\n\+ \\r\n\+ \\ENQ\EOT\CAN\STX\STX\b\DC2\EOT\221\ACK8K\n\+ \\SO\n\+ \\ACK\EOT\CAN\STX\STX\b\ETX\DC2\EOT\221\ACK9J\n\+ \.\n\+ \\EOT\EOT\CAN\STX\ETX\DC2\EOT\224\ACK\EOTC\SUB Channels pending force closing\n\+ \\n\+ \\r\n\+ \\ENQ\EOT\CAN\STX\ETX\EOT\DC2\EOT\224\ACK\EOT\f\n\+ \\r\n\+ \\ENQ\EOT\CAN\STX\ETX\ACK\DC2\EOT\224\ACK\r\US\n\+ \\r\n\+ \\ENQ\EOT\CAN\STX\ETX\SOH\DC2\EOT\224\ACK >\n\+ \\r\n\+ \\ENQ\EOT\CAN\STX\ETX\ETX\DC2\EOT\224\ACKAB\n\+ \:\n\+ \\EOT\EOT\CAN\STX\EOT\DC2\EOT\227\ACK\EOT<\SUB, Channels waiting for closing tx to confirm\n\+ \\n\+ \\r\n\+ \\ENQ\EOT\CAN\STX\EOT\EOT\DC2\EOT\227\ACK\EOT\f\n\+ \\r\n\+ \\ENQ\EOT\CAN\STX\EOT\ACK\DC2\EOT\227\ACK\r \n\+ \\r\n\+ \\ENQ\EOT\CAN\STX\EOT\SOH\DC2\EOT\227\ACK!7\n\+ \\r\n\+ \\ENQ\EOT\CAN\STX\EOT\ETX\DC2\EOT\227\ACK:;\n\+ \\f\n\+ \\STX\EOT\EM\DC2\ACK\230\ACK\NUL\231\ACK\SOH\n\+ \\v\n\+ \\ETX\EOT\EM\SOH\DC2\EOT\230\ACK\b \n\+ \\f\n\+ \\STX\EOT\SUB\DC2\ACK\233\ACK\NUL\253\ACK\SOH\n\+ \\v\n\+ \\ETX\EOT\SUB\SOH\DC2\EOT\233\ACK\b\SUB\n\+ \\SO\n\+ \\EOT\EOT\SUB\b\NUL\DC2\ACK\234\ACK\EOT\241\ACK\ENQ\n\+ \\r\n\+ \\ENQ\EOT\SUB\b\NUL\SOH\DC2\EOT\234\ACK\n\+ \\DC1\n\+ \\f\n\+ \\EOT\EOT\SUB\STX\NUL\DC2\EOT\235\ACK\b!\n\+ \\r\n\+ \\ENQ\EOT\SUB\STX\NUL\ACK\DC2\EOT\235\ACK\b\SI\n\+ \\r\n\+ \\ENQ\EOT\SUB\STX\NUL\SOH\DC2\EOT\235\ACK\DLE\FS\n\+ \\r\n\+ \\ENQ\EOT\SUB\STX\NUL\ETX\DC2\EOT\235\ACK\US \n\+ \\f\n\+ \\EOT\EOT\SUB\STX\SOH\DC2\EOT\236\ACK\b/\n\+ \\r\n\+ \\ENQ\EOT\SUB\STX\SOH\ACK\DC2\EOT\236\ACK\b\ESC\n\+ \\r\n\+ \\ENQ\EOT\SUB\STX\SOH\SOH\DC2\EOT\236\ACK\FS*\n\+ \\r\n\+ \\ENQ\EOT\SUB\STX\SOH\ETX\DC2\EOT\236\ACK-.\n\+ \\f\n\+ \\EOT\EOT\SUB\STX\STX\DC2\EOT\237\ACK\b(\n\+ \\r\n\+ \\ENQ\EOT\SUB\STX\STX\ACK\DC2\EOT\237\ACK\b\DC4\n\+ \\r\n\+ \\ENQ\EOT\SUB\STX\STX\SOH\DC2\EOT\237\ACK\NAK#\n\+ \\r\n\+ \\ENQ\EOT\SUB\STX\STX\ETX\DC2\EOT\237\ACK&'\n\+ \\f\n\+ \\EOT\EOT\SUB\STX\ETX\DC2\EOT\238\ACK\b*\n\+ \\r\n\+ \\ENQ\EOT\SUB\STX\ETX\ACK\DC2\EOT\238\ACK\b\DC4\n\+ \\r\n\+ \\ENQ\EOT\SUB\STX\ETX\SOH\DC2\EOT\238\ACK\NAK%\n\+ \\r\n\+ \\ENQ\EOT\SUB\STX\ETX\ETX\DC2\EOT\238\ACK()\n\+ \\f\n\+ \\EOT\EOT\SUB\STX\EOT\DC2\EOT\239\ACK\b/\n\+ \\r\n\+ \\ENQ\EOT\SUB\STX\EOT\ACK\DC2\EOT\239\ACK\b\NAK\n\+ \\r\n\+ \\ENQ\EOT\SUB\STX\EOT\SOH\DC2\EOT\239\ACK\SYN*\n\+ \\r\n\+ \\ENQ\EOT\SUB\STX\EOT\ETX\DC2\EOT\239\ACK-.\n\+ \\f\n\+ \\EOT\EOT\SUB\STX\ENQ\DC2\EOT\240\ACK\b0\n\+ \\r\n\+ \\ENQ\EOT\SUB\STX\ENQ\ACK\DC2\EOT\240\ACK\b\DC4\n\+ \\r\n\+ \\ENQ\EOT\SUB\STX\ENQ\SOH\DC2\EOT\240\ACK\NAK+\n\+ \\r\n\+ \\ENQ\EOT\SUB\STX\ENQ\ETX\DC2\EOT\240\ACK./\n\+ \\SO\n\+ \\EOT\EOT\SUB\EOT\NUL\DC2\ACK\243\ACK\EOT\250\ACK\ENQ\n\+ \\r\n\+ \\ENQ\EOT\SUB\EOT\NUL\SOH\DC2\EOT\243\ACK\t\DC3\n\+ \\SO\n\+ \\ACK\EOT\SUB\EOT\NUL\STX\NUL\DC2\EOT\244\ACK\b\EM\n\+ \\SI\n\+ \\a\EOT\SUB\EOT\NUL\STX\NUL\SOH\DC2\EOT\244\ACK\b\DC4\n\+ \\SI\n\+ \\a\EOT\SUB\EOT\NUL\STX\NUL\STX\DC2\EOT\244\ACK\ETB\CAN\n\+ \\SO\n\+ \\ACK\EOT\SUB\EOT\NUL\STX\SOH\DC2\EOT\245\ACK\b\ESC\n\+ \\SI\n\+ \\a\EOT\SUB\EOT\NUL\STX\SOH\SOH\DC2\EOT\245\ACK\b\SYN\n\+ \\SI\n\+ \\a\EOT\SUB\EOT\NUL\STX\SOH\STX\DC2\EOT\245\ACK\EM\SUB\n\+ \\SO\n\+ \\ACK\EOT\SUB\EOT\NUL\STX\STX\DC2\EOT\246\ACK\b\ESC\n\+ \\SI\n\+ \\a\EOT\SUB\EOT\NUL\STX\STX\SOH\DC2\EOT\246\ACK\b\SYN\n\+ \\SI\n\+ \\a\EOT\SUB\EOT\NUL\STX\STX\STX\DC2\EOT\246\ACK\EM\SUB\n\+ \\SO\n\+ \\ACK\EOT\SUB\EOT\NUL\STX\ETX\DC2\EOT\247\ACK\b\GS\n\+ \\SI\n\+ \\a\EOT\SUB\EOT\NUL\STX\ETX\SOH\DC2\EOT\247\ACK\b\CAN\n\+ \\SI\n\+ \\a\EOT\SUB\EOT\NUL\STX\ETX\STX\DC2\EOT\247\ACK\ESC\FS\n\+ \\SO\n\+ \\ACK\EOT\SUB\EOT\NUL\STX\EOT\DC2\EOT\248\ACK\b!\n\+ \\SI\n\+ \\a\EOT\SUB\EOT\NUL\STX\EOT\SOH\DC2\EOT\248\ACK\b\FS\n\+ \\SI\n\+ \\a\EOT\SUB\EOT\NUL\STX\EOT\STX\DC2\EOT\248\ACK\US \n\+ \\SO\n\+ \\ACK\EOT\SUB\EOT\NUL\STX\ENQ\DC2\EOT\249\ACK\b#\n\+ \\SI\n\+ \\a\EOT\SUB\EOT\NUL\STX\ENQ\SOH\DC2\EOT\249\ACK\b\RS\n\+ \\SI\n\+ \\a\EOT\SUB\EOT\NUL\STX\ENQ\STX\DC2\EOT\249\ACK!\"\n\+ \\f\n\+ \\EOT\EOT\SUB\STX\ACK\DC2\EOT\252\ACK\EOT\CAN\n\+ \\r\n\+ \\ENQ\EOT\SUB\STX\ACK\ACK\DC2\EOT\252\ACK\EOT\SO\n\+ \\r\n\+ \\ENQ\EOT\SUB\STX\ACK\SOH\DC2\EOT\252\ACK\SI\DC3\n\+ \\r\n\+ \\ENQ\EOT\SUB\STX\ACK\ETX\DC2\EOT\252\ACK\SYN\ETB\n\+ \\f\n\+ \\STX\EOT\ESC\DC2\ACK\255\ACK\NUL\133\a\SOH\n\+ \\v\n\+ \\ETX\EOT\ESC\SOH\DC2\EOT\255\ACK\b\FS\n\+ \O\n\+ \\EOT\EOT\ESC\STX\NUL\DC2\EOT\129\a\EOT \SUBA The confirmed balance of the account (with >= 1 confirmations).\n\+ \\n\+ \\r\n\+ \\ENQ\EOT\ESC\STX\NUL\ENQ\DC2\EOT\129\a\EOT\t\n\+ \\r\n\+ \\ENQ\EOT\ESC\STX\NUL\SOH\DC2\EOT\129\a\n\+ \\ESC\n\+ \\r\n\+ \\ENQ\EOT\ESC\STX\NUL\ETX\DC2\EOT\129\a\RS\US\n\+ \N\n\+ \\EOT\EOT\ESC\STX\SOH\DC2\EOT\132\a\EOT\"\SUB@ The unconfirmed balance of the account (with 0 confirmations).\n\+ \\n\+ \\r\n\+ \\ENQ\EOT\ESC\STX\SOH\ENQ\DC2\EOT\132\a\EOT\t\n\+ \\r\n\+ \\ENQ\EOT\ESC\STX\SOH\SOH\DC2\EOT\132\a\n\+ \\GS\n\+ \\r\n\+ \\ENQ\EOT\ESC\STX\SOH\ETX\DC2\EOT\132\a !\n\+ \\f\n\+ \\STX\EOT\FS\DC2\ACK\135\a\NUL\136\a\SOH\n\+ \\v\n\+ \\ETX\EOT\FS\SOH\DC2\EOT\135\a\b\FS\n\+ \\f\n\+ \\STX\EOT\GS\DC2\ACK\138\a\NUL\150\a\SOH\n\+ \\v\n\+ \\ETX\EOT\GS\SOH\DC2\EOT\138\a\b\GS\n\+ \)\n\+ \\EOT\EOT\GS\STX\NUL\DC2\EOT\140\a\EOT\FS\SUB\ESC The balance of the wallet\n\+ \\n\+ \\r\n\+ \\ENQ\EOT\GS\STX\NUL\ENQ\DC2\EOT\140\a\EOT\t\n\+ \\r\n\+ \\ENQ\EOT\GS\STX\NUL\SOH\DC2\EOT\140\a\n\+ \\ETB\n\+ \\r\n\+ \\ENQ\EOT\GS\STX\NUL\ETX\DC2\EOT\140\a\SUB\ESC\n\+ \J\n\+ \\EOT\EOT\GS\STX\SOH\DC2\EOT\143\a\EOT \SUB< The confirmed balance of a wallet(with >= 1 confirmations)\n\+ \\n\+ \\r\n\+ \\ENQ\EOT\GS\STX\SOH\ENQ\DC2\EOT\143\a\EOT\t\n\+ \\r\n\+ \\ENQ\EOT\GS\STX\SOH\SOH\DC2\EOT\143\a\n\+ \\ESC\n\+ \\r\n\+ \\ENQ\EOT\GS\STX\SOH\ETX\DC2\EOT\143\a\RS\US\n\+ \I\n\+ \\EOT\EOT\GS\STX\STX\DC2\EOT\146\a\EOT\"\SUB; The unconfirmed balance of a wallet(with 0 confirmations)\n\+ \\n\+ \\r\n\+ \\ENQ\EOT\GS\STX\STX\ENQ\DC2\EOT\146\a\EOT\t\n\+ \\r\n\+ \\ENQ\EOT\GS\STX\STX\SOH\DC2\EOT\146\a\n\+ \\GS\n\+ \\r\n\+ \\ENQ\EOT\GS\STX\STX\ETX\DC2\EOT\146\a !\n\+ \G\n\+ \\EOT\EOT\GS\STX\ETX\DC2\EOT\149\a\EOT:\SUB9 A mapping of each wallet account's name to its balance.\n\+ \\n\+ \\r\n\+ \\ENQ\EOT\GS\STX\ETX\ACK\DC2\EOT\149\a\EOT%\n\+ \\r\n\+ \\ENQ\EOT\GS\STX\ETX\SOH\DC2\EOT\149\a&5\n\+ \\r\n\+ \\ENQ\EOT\GS\STX\ETX\ETX\DC2\EOT\149\a89\n\+ \\f\n\+ \\STX\EOT\RS\DC2\ACK\152\a\NUL\158\a\SOH\n\+ \\v\n\+ \\ETX\EOT\RS\SOH\DC2\EOT\152\a\b\SO\n\+ \.\n\+ \\EOT\EOT\RS\STX\NUL\DC2\EOT\154\a\EOT\DC3\SUB Value denominated in satoshis.\n\+ \\n\+ \\r\n\+ \\ENQ\EOT\RS\STX\NUL\ENQ\DC2\EOT\154\a\EOT\n\+ \\n\+ \\r\n\+ \\ENQ\EOT\RS\STX\NUL\SOH\DC2\EOT\154\a\v\SO\n\+ \\r\n\+ \\ENQ\EOT\RS\STX\NUL\ETX\DC2\EOT\154\a\DC1\DC2\n\+ \4\n\+ \\EOT\EOT\RS\STX\SOH\DC2\EOT\157\a\EOT\DC4\SUB& Value denominated in milli-satoshis.\n\+ \\n\+ \\r\n\+ \\ENQ\EOT\RS\STX\SOH\ENQ\DC2\EOT\157\a\EOT\n\+ \\n\+ \\r\n\+ \\ENQ\EOT\RS\STX\SOH\SOH\DC2\EOT\157\a\v\SI\n\+ \\r\n\+ \\ENQ\EOT\RS\STX\SOH\ETX\DC2\EOT\157\a\DC2\DC3\n\+ \\f\n\+ \\STX\EOT\US\DC2\ACK\160\a\NUL\161\a\SOH\n\+ \\v\n\+ \\ETX\EOT\US\SOH\DC2\EOT\160\a\b\GS\n\+ \\f\n\+ \\STX\EOT \DC2\ACK\162\a\NUL\186\a\SOH\n\+ \\v\n\+ \\ETX\EOT \SOH\DC2\EOT\162\a\b\RS\n\+ \L\n\+ \\EOT\EOT \STX\NUL\DC2\EOT\164\a\EOT*\SUB> Deprecated. Sum of channels balances denominated in satoshis\n\+ \\n\+ \\r\n\+ \\ENQ\EOT \STX\NUL\ENQ\DC2\EOT\164\a\EOT\t\n\+ \\r\n\+ \\ENQ\EOT \STX\NUL\SOH\DC2\EOT\164\a\n\+ \\DC1\n\+ \\r\n\+ \\ENQ\EOT \STX\NUL\ETX\DC2\EOT\164\a\DC4\NAK\n\+ \\r\n\+ \\ENQ\EOT \STX\NUL\b\DC2\EOT\164\a\SYN)\n\+ \\SO\n\+ \\ACK\EOT \STX\NUL\b\ETX\DC2\EOT\164\a\ETB(\n\+ \T\n\+ \\EOT\EOT \STX\SOH\DC2\EOT\167\a\EOT7\SUBF Deprecated. Sum of channels pending balances denominated in satoshis\n\+ \\n\+ \\r\n\+ \\ENQ\EOT \STX\SOH\ENQ\DC2\EOT\167\a\EOT\t\n\+ \\r\n\+ \\ENQ\EOT \STX\SOH\SOH\DC2\EOT\167\a\n\+ \\RS\n\+ \\r\n\+ \\ENQ\EOT \STX\SOH\ETX\DC2\EOT\167\a!\"\n\+ \\r\n\+ \\ENQ\EOT \STX\SOH\b\DC2\EOT\167\a#6\n\+ \\SO\n\+ \\ACK\EOT \STX\SOH\b\ETX\DC2\EOT\167\a$5\n\+ \/\n\+ \\EOT\EOT \STX\STX\DC2\EOT\170\a\EOT\GS\SUB! Sum of channels local balances.\n\+ \\n\+ \\r\n\+ \\ENQ\EOT \STX\STX\ACK\DC2\EOT\170\a\EOT\n\+ \\n\+ \\r\n\+ \\ENQ\EOT \STX\STX\SOH\DC2\EOT\170\a\v\CAN\n\+ \\r\n\+ \\ENQ\EOT \STX\STX\ETX\DC2\EOT\170\a\ESC\FS\n\+ \0\n\+ \\EOT\EOT \STX\ETX\DC2\EOT\173\a\EOT\RS\SUB\" Sum of channels remote balances.\n\+ \\n\+ \\r\n\+ \\ENQ\EOT \STX\ETX\ACK\DC2\EOT\173\a\EOT\n\+ \\n\+ \\r\n\+ \\ENQ\EOT \STX\ETX\SOH\DC2\EOT\173\a\v\EM\n\+ \\r\n\+ \\ENQ\EOT \STX\ETX\ETX\DC2\EOT\173\a\FS\GS\n\+ \9\n\+ \\EOT\EOT \STX\EOT\DC2\EOT\176\a\EOT'\SUB+ Sum of channels local unsettled balances.\n\+ \\n\+ \\r\n\+ \\ENQ\EOT \STX\EOT\ACK\DC2\EOT\176\a\EOT\n\+ \\n\+ \\r\n\+ \\ENQ\EOT \STX\EOT\SOH\DC2\EOT\176\a\v\"\n\+ \\r\n\+ \\ENQ\EOT \STX\EOT\ETX\DC2\EOT\176\a%&\n\+ \:\n\+ \\EOT\EOT \STX\ENQ\DC2\EOT\179\a\EOT(\SUB, Sum of channels remote unsettled balances.\n\+ \\n\+ \\r\n\+ \\ENQ\EOT \STX\ENQ\ACK\DC2\EOT\179\a\EOT\n\+ \\n\+ \\r\n\+ \\ENQ\EOT \STX\ENQ\SOH\DC2\EOT\179\a\v#\n\+ \\r\n\+ \\ENQ\EOT \STX\ENQ\ETX\DC2\EOT\179\a&'\n\+ \7\n\+ \\EOT\EOT \STX\ACK\DC2\EOT\182\a\EOT*\SUB) Sum of channels pending local balances.\n\+ \\n\+ \\r\n\+ \\ENQ\EOT \STX\ACK\ACK\DC2\EOT\182\a\EOT\n\+ \\n\+ \\r\n\+ \\ENQ\EOT \STX\ACK\SOH\DC2\EOT\182\a\v%\n\+ \\r\n\+ \\ENQ\EOT \STX\ACK\ETX\DC2\EOT\182\a()\n\+ \8\n\+ \\EOT\EOT \STX\a\DC2\EOT\185\a\EOT+\SUB* Sum of channels pending remote balances.\n\+ \\n\+ \\r\n\+ \\ENQ\EOT \STX\a\ACK\DC2\EOT\185\a\EOT\n\+ \\n\+ \\r\n\+ \\ENQ\EOT \STX\a\SOH\DC2\EOT\185\a\v&\n\+ \\r\n\+ \\ENQ\EOT \STX\a\ETX\DC2\EOT\185\a)*\n\+ \\f\n\+ \\STX\EOT!\DC2\ACK\188\a\NUL\166\b\SOH\n\+ \\v\n\+ \\ETX\EOT!\SOH\DC2\EOT\188\a\b\SUB\n\+ \N\n\+ \\EOT\EOT!\STX\NUL\DC2\EOT\190\a\EOT\ETB\SUB@ The 33-byte hex-encoded public key for the payment destination\n\+ \\n\+ \\r\n\+ \\ENQ\EOT!\STX\NUL\ENQ\DC2\EOT\190\a\EOT\n\+ \\n\+ \\r\n\+ \\ENQ\EOT!\STX\NUL\SOH\DC2\EOT\190\a\v\DC2\n\+ \\r\n\+ \\ENQ\EOT!\STX\NUL\ETX\DC2\EOT\190\a\NAK\SYN\n\+ \n\n\+ \\EOT\EOT!\STX\SOH\DC2\EOT\197\a\EOT\DC2\SUB`\n\+ \The amount to send expressed in satoshis.\n\+ \\n\+ \The fields amt and amt_msat are mutually exclusive.\n\+ \\n\+ \\r\n\+ \\ENQ\EOT!\STX\SOH\ENQ\DC2\EOT\197\a\EOT\t\n\+ \\r\n\+ \\ENQ\EOT!\STX\SOH\SOH\DC2\EOT\197\a\n\+ \\r\n\+ \\r\n\+ \\ENQ\EOT!\STX\SOH\ETX\DC2\EOT\197\a\DLE\DC1\n\+ \s\n\+ \\EOT\EOT!\STX\STX\DC2\EOT\204\a\EOT\CAN\SUBe\n\+ \The amount to send expressed in millisatoshis.\n\+ \\n\+ \The fields amt and amt_msat are mutually exclusive.\n\+ \\n\+ \\r\n\+ \\ENQ\EOT!\STX\STX\ENQ\DC2\EOT\204\a\EOT\t\n\+ \\r\n\+ \\ENQ\EOT!\STX\STX\SOH\DC2\EOT\204\a\n\+ \\DC2\n\+ \\r\n\+ \\ENQ\EOT!\STX\STX\ETX\DC2\EOT\204\a\NAK\ETB\n\+ \\v\n\+ \\ETX\EOT!\t\DC2\EOT\206\a\EOT\SI\n\+ \\f\n\+ \\EOT\EOT!\t\NUL\DC2\EOT\206\a\r\SO\n\+ \\r\n\+ \\ENQ\EOT!\t\NUL\SOH\DC2\EOT\206\a\r\SO\n\+ \\r\n\+ \\ENQ\EOT!\t\NUL\STX\DC2\EOT\206\a\r\SO\n\+ \\245\STX\n\+ \\EOT\EOT!\STX\ETX\DC2\EOT\215\a\EOT\US\SUB\230\STX\n\+ \An optional CLTV delta from the current height that should be used for the\n\+ \timelock of the final hop. Note that unlike SendPayment, QueryRoutes does\n\+ \not add any additional block padding on top of final_ctlv_delta. This\n\+ \padding of a few blocks needs to be added manually or otherwise failures may\n\+ \happen when a block comes in while the payment is in flight.\n\+ \\n\+ \\r\n\+ \\ENQ\EOT!\STX\ETX\ENQ\DC2\EOT\215\a\EOT\t\n\+ \\r\n\+ \\ENQ\EOT!\STX\ETX\SOH\DC2\EOT\215\a\n\+ \\SUB\n\+ \\r\n\+ \\ENQ\EOT!\STX\ETX\ETX\DC2\EOT\215\a\GS\RS\n\+ \\130\STX\n\+ \\EOT\EOT!\STX\EOT\DC2\EOT\223\a\EOT\ESC\SUB\243\SOH\n\+ \The maximum number of satoshis that will be paid as a fee of the payment.\n\+ \This value can be represented either as a percentage of the amount being\n\+ \sent, or as a fixed amount of the maximum fee the user is willing the pay to\n\+ \send the payment.\n\+ \\n\+ \\r\n\+ \\ENQ\EOT!\STX\EOT\ACK\DC2\EOT\223\a\EOT\f\n\+ \\r\n\+ \\ENQ\EOT!\STX\EOT\SOH\DC2\EOT\223\a\r\SYN\n\+ \\r\n\+ \\ENQ\EOT!\STX\EOT\ETX\DC2\EOT\223\a\EM\SUB\n\+ \w\n\+ \\EOT\EOT!\STX\ENQ\DC2\EOT\229\a\EOT%\SUBi\n\+ \A list of nodes to ignore during path finding. When using REST, these fields\n\+ \must be encoded as base64.\n\+ \\n\+ \\r\n\+ \\ENQ\EOT!\STX\ENQ\EOT\DC2\EOT\229\a\EOT\f\n\+ \\r\n\+ \\ENQ\EOT!\STX\ENQ\ENQ\DC2\EOT\229\a\r\DC2\n\+ \\r\n\+ \\ENQ\EOT!\STX\ENQ\SOH\DC2\EOT\229\a\DC3 \n\+ \\r\n\+ \\ENQ\EOT!\STX\ENQ\ETX\DC2\EOT\229\a#$\n\+ \J\n\+ \\EOT\EOT!\STX\ACK\DC2\EOT\234\a\EOT?\SUB<\n\+ \Deprecated. A list of edges to ignore during path finding.\n\+ \\n\+ \\r\n\+ \\ENQ\EOT!\STX\ACK\EOT\DC2\EOT\234\a\EOT\f\n\+ \\r\n\+ \\ENQ\EOT!\STX\ACK\ACK\DC2\EOT\234\a\r\CAN\n\+ \\r\n\+ \\ENQ\EOT!\STX\ACK\SOH\DC2\EOT\234\a\EM&\n\+ \\r\n\+ \\ENQ\EOT!\STX\ACK\ETX\DC2\EOT\234\a)*\n\+ \\r\n\+ \\ENQ\EOT!\STX\ACK\b\DC2\EOT\234\a+>\n\+ \\SO\n\+ \\ACK\EOT!\STX\ACK\b\ETX\DC2\EOT\234\a,=\n\+ \j\n\+ \\EOT\EOT!\STX\a\DC2\EOT\240\a\EOT\RS\SUB\\\n\+ \The source node where the request route should originated from. If empty,\n\+ \self is assumed.\n\+ \\n\+ \\r\n\+ \\ENQ\EOT!\STX\a\ENQ\DC2\EOT\240\a\EOT\n\+ \\n\+ \\r\n\+ \\ENQ\EOT!\STX\a\SOH\DC2\EOT\240\a\v\EM\n\+ \\r\n\+ \\ENQ\EOT!\STX\a\ETX\DC2\EOT\240\a\FS\GS\n\+ \n\n\+ \\EOT\EOT!\STX\b\DC2\EOT\246\a\EOT!\SUB`\n\+ \If set to true, edge probabilities from mission control will be used to get\n\+ \the optimal route.\n\+ \\n\+ \\r\n\+ \\ENQ\EOT!\STX\b\ENQ\DC2\EOT\246\a\EOT\b\n\+ \\r\n\+ \\ENQ\EOT!\STX\b\SOH\DC2\EOT\246\a\t\FS\n\+ \\r\n\+ \\ENQ\EOT!\STX\b\ETX\DC2\EOT\246\a\US \n\+ \W\n\+ \\EOT\EOT!\STX\t\DC2\EOT\251\a\EOT)\SUBI\n\+ \A list of directed node pairs that will be ignored during path finding.\n\+ \\n\+ \\r\n\+ \\ENQ\EOT!\STX\t\EOT\DC2\EOT\251\a\EOT\f\n\+ \\r\n\+ \\ENQ\EOT!\STX\t\ACK\DC2\EOT\251\a\r\NAK\n\+ \\r\n\+ \\ENQ\EOT!\STX\t\SOH\DC2\EOT\251\a\SYN#\n\+ \\r\n\+ \\ENQ\EOT!\STX\t\ETX\DC2\EOT\251\a&(\n\+ \\231\SOH\n\+ \\EOT\EOT!\STX\n\+ \\DC2\EOT\130\b\EOT\ESC\SUB\216\SOH\n\+ \An optional maximum total time lock for the route. If the source is empty or\n\+ \ourselves, this should not exceed lnd's `--max-cltv-expiry` setting. If\n\+ \zero, then the value of `--max-cltv-expiry` is used as the limit.\n\+ \\n\+ \\r\n\+ \\ENQ\EOT!\STX\n\+ \\ENQ\DC2\EOT\130\b\EOT\n\+ \\n\+ \\r\n\+ \\ENQ\EOT!\STX\n\+ \\SOH\DC2\EOT\130\b\v\NAK\n\+ \\r\n\+ \\ENQ\EOT!\STX\n\+ \\ETX\DC2\EOT\130\b\CAN\SUB\n\+ \\162\ETX\n\+ \\EOT\EOT!\STX\v\DC2\EOT\140\b\EOT0\SUB\147\ETX\n\+ \An optional field that can be used to pass an arbitrary set of TLV records\n\+ \to a peer which understands the new records. This can be used to pass\n\+ \application specific data during the payment attempt. If the destination\n\+ \does not support the specified records, an error will be returned.\n\+ \Record types are required to be in the custom range >= 65536. When using\n\+ \REST, the values must be encoded as base64.\n\+ \\n\+ \\r\n\+ \\ENQ\EOT!\STX\v\ACK\DC2\EOT\140\b\EOT\SYN\n\+ \\r\n\+ \\ENQ\EOT!\STX\v\SOH\DC2\EOT\140\b\ETB*\n\+ \\r\n\+ \\ENQ\EOT!\STX\v\ETX\DC2\EOT\140\b-/\n\+ \t\n\+ \\EOT\EOT!\STX\f\DC2\EOT\146\b\EOT6\SUBf\n\+ \The channel id of the channel that must be taken to the first hop. If zero,\n\+ \any channel may be used.\n\+ \\n\+ \\r\n\+ \\ENQ\EOT!\STX\f\ENQ\DC2\EOT\146\b\EOT\n\+ \\n\+ \\r\n\+ \\ENQ\EOT!\STX\f\SOH\DC2\EOT\146\b\v\ESC\n\+ \\r\n\+ \\ENQ\EOT!\STX\f\ETX\DC2\EOT\146\b\RS \n\+ \\r\n\+ \\ENQ\EOT!\STX\f\b\DC2\EOT\146\b!5\n\+ \\SO\n\+ \\ACK\EOT!\STX\f\b\ACK\DC2\EOT\146\b\"4\n\+ \W\n\+ \\EOT\EOT!\STX\r\DC2\EOT\151\b\EOT\US\SUBI\n\+ \The pubkey of the last hop of the route. If empty, any hop may be used.\n\+ \\n\+ \\r\n\+ \\ENQ\EOT!\STX\r\ENQ\DC2\EOT\151\b\EOT\t\n\+ \\r\n\+ \\ENQ\EOT!\STX\r\SOH\DC2\EOT\151\b\n\+ \\EM\n\+ \\r\n\+ \\ENQ\EOT!\STX\r\ETX\DC2\EOT\151\b\FS\RS\n\+ \W\n\+ \\EOT\EOT!\STX\SO\DC2\EOT\156\b\EOT.\SUBI\n\+ \Optional route hints to reach the destination through private channels.\n\+ \\n\+ \\r\n\+ \\ENQ\EOT!\STX\SO\EOT\DC2\EOT\156\b\EOT\f\n\+ \\r\n\+ \\ENQ\EOT!\STX\SO\ACK\DC2\EOT\156\b\r\FS\n\+ \\r\n\+ \\ENQ\EOT!\STX\SO\SOH\DC2\EOT\156\b\GS(\n\+ \\r\n\+ \\ENQ\EOT!\STX\SO\ETX\DC2\EOT\156\b+-\n\+ \\195\STX\n\+ \\EOT\EOT!\STX\SI\DC2\EOT\165\b\EOT1\SUB\180\STX\n\+ \Features assumed to be supported by the final node. All transitive feature\n\+ \dependencies must also be set properly. For a given feature bit pair, either\n\+ \optional or remote may be set, but not both. If this field is nil or empty,\n\+ \the router will try to load destination features from the graph as a\n\+ \fallback.\n\+ \\n\+ \\r\n\+ \\ENQ\EOT!\STX\SI\EOT\DC2\EOT\165\b\EOT\f\n\+ \\r\n\+ \\ENQ\EOT!\STX\SI\ACK\DC2\EOT\165\b\r\GS\n\+ \\r\n\+ \\ENQ\EOT!\STX\SI\SOH\DC2\EOT\165\b\RS+\n\+ \\r\n\+ \\ENQ\EOT!\STX\SI\ETX\DC2\EOT\165\b.0\n\+ \\f\n\+ \\STX\EOT\"\DC2\ACK\168\b\NUL\180\b\SOH\n\+ \\v\n\+ \\ETX\EOT\"\SOH\DC2\EOT\168\b\b\DLE\n\+ \d\n\+ \\EOT\EOT\"\STX\NUL\DC2\EOT\173\b\EOT\DC3\SUBV\n\+ \The sending node of the pair. When using REST, this field must be encoded as\n\+ \base64.\n\+ \\n\+ \\r\n\+ \\ENQ\EOT\"\STX\NUL\ENQ\DC2\EOT\173\b\EOT\t\n\+ \\r\n\+ \\ENQ\EOT\"\STX\NUL\SOH\DC2\EOT\173\b\n\+ \\SO\n\+ \\r\n\+ \\ENQ\EOT\"\STX\NUL\ETX\DC2\EOT\173\b\DC1\DC2\n\+ \f\n\+ \\EOT\EOT\"\STX\SOH\DC2\EOT\179\b\EOT\DC1\SUBX\n\+ \The receiving node of the pair. When using REST, this field must be encoded\n\+ \as base64.\n\+ \\n\+ \\r\n\+ \\ENQ\EOT\"\STX\SOH\ENQ\DC2\EOT\179\b\EOT\t\n\+ \\r\n\+ \\ENQ\EOT\"\STX\SOH\SOH\DC2\EOT\179\b\n\+ \\f\n\+ \\r\n\+ \\ENQ\EOT\"\STX\SOH\ETX\DC2\EOT\179\b\SI\DLE\n\+ \\f\n\+ \\STX\EOT#\DC2\ACK\182\b\NUL\193\b\SOH\n\+ \\v\n\+ \\ETX\EOT#\SOH\DC2\EOT\182\b\b\DC3\n\+ \2\n\+ \\EOT\EOT#\STX\NUL\DC2\EOT\184\b\EOT/\SUB$ The short channel id of this edge.\n\+ \\n\+ \\r\n\+ \\ENQ\EOT#\STX\NUL\ENQ\DC2\EOT\184\b\EOT\n\+ \\n\+ \\r\n\+ \\ENQ\EOT#\STX\NUL\SOH\DC2\EOT\184\b\v\NAK\n\+ \\r\n\+ \\ENQ\EOT#\STX\NUL\ETX\DC2\EOT\184\b\CAN\EM\n\+ \\r\n\+ \\ENQ\EOT#\STX\NUL\b\DC2\EOT\184\b\SUB.\n\+ \\SO\n\+ \\ACK\EOT#\STX\NUL\b\ACK\DC2\EOT\184\b\ESC-\n\+ \\149\STX\n\+ \\EOT\EOT#\STX\SOH\DC2\EOT\192\b\EOT\US\SUB\134\STX\n\+ \The direction of this edge. If direction_reverse is false, the direction\n\+ \of this edge is from the channel endpoint with the lexicographically smaller\n\+ \pub key to the endpoint with the larger pub key. If direction_reverse is\n\+ \is true, the edge goes the other way.\n\+ \\n\+ \\r\n\+ \\ENQ\EOT#\STX\SOH\ENQ\DC2\EOT\192\b\EOT\b\n\+ \\r\n\+ \\ENQ\EOT#\STX\SOH\SOH\DC2\EOT\192\b\t\SUB\n\+ \\r\n\+ \\ENQ\EOT#\STX\SOH\ETX\DC2\EOT\192\b\GS\RS\n\+ \\f\n\+ \\STX\EOT$\DC2\ACK\195\b\NUL\207\b\SOH\n\+ \\v\n\+ \\ETX\EOT$\SOH\DC2\EOT\195\b\b\ESC\n\+ \\137\SOH\n\+ \\EOT\EOT$\STX\NUL\DC2\EOT\200\b\EOT\RS\SUB{\n\+ \The route that results from the path finding operation. This is still a\n\+ \repeated field to retain backwards compatibility.\n\+ \\n\+ \\r\n\+ \\ENQ\EOT$\STX\NUL\EOT\DC2\EOT\200\b\EOT\f\n\+ \\r\n\+ \\ENQ\EOT$\STX\NUL\ACK\DC2\EOT\200\b\r\DC2\n\+ \\r\n\+ \\ENQ\EOT$\STX\NUL\SOH\DC2\EOT\200\b\DC3\EM\n\+ \\r\n\+ \\ENQ\EOT$\STX\NUL\ETX\DC2\EOT\200\b\FS\GS\n\+ \x\n\+ \\EOT\EOT$\STX\SOH\DC2\EOT\206\b\EOT\FS\SUBj\n\+ \The success probability of the returned route based on the current mission\n\+ \control state. [EXPERIMENTAL]\n\+ \\n\+ \\r\n\+ \\ENQ\EOT$\STX\SOH\ENQ\DC2\EOT\206\b\EOT\n\+ \\n\+ \\r\n\+ \\ENQ\EOT$\STX\SOH\SOH\DC2\EOT\206\b\v\ETB\n\+ \\r\n\+ \\ENQ\EOT$\STX\SOH\ETX\DC2\EOT\206\b\SUB\ESC\n\+ \\f\n\+ \\STX\EOT%\DC2\ACK\209\b\NUL\132\t\SOH\n\+ \\v\n\+ \\ETX\EOT%\SOH\DC2\EOT\209\b\b\v\n\+ \\193\SOH\n\+ \\EOT\EOT%\STX\NUL\DC2\EOT\215\b\EOT,\SUB\178\SOH\n\+ \The unique channel ID for the channel. The first 3 bytes are the block\n\+ \height, the next 3 the index within the block, and the last 2 bytes are the\n\+ \output index for the channel.\n\+ \\n\+ \\r\n\+ \\ENQ\EOT%\STX\NUL\ENQ\DC2\EOT\215\b\EOT\n\+ \\n\+ \\r\n\+ \\ENQ\EOT%\STX\NUL\SOH\DC2\EOT\215\b\v\DC2\n\+ \\r\n\+ \\ENQ\EOT%\STX\NUL\ETX\DC2\EOT\215\b\NAK\SYN\n\+ \\r\n\+ \\ENQ\EOT%\STX\NUL\b\DC2\EOT\215\b\ETB+\n\+ \\SO\n\+ \\ACK\EOT%\STX\NUL\b\ACK\DC2\EOT\215\b\CAN*\n\+ \\f\n\+ \\EOT\EOT%\STX\SOH\DC2\EOT\216\b\EOT0\n\+ \\r\n\+ \\ENQ\EOT%\STX\SOH\ENQ\DC2\EOT\216\b\EOT\t\n\+ \\r\n\+ \\ENQ\EOT%\STX\SOH\SOH\DC2\EOT\216\b\n\+ \\ETB\n\+ \\r\n\+ \\ENQ\EOT%\STX\SOH\ETX\DC2\EOT\216\b\SUB\ESC\n\+ \\r\n\+ \\ENQ\EOT%\STX\SOH\b\DC2\EOT\216\b\FS/\n\+ \\SO\n\+ \\ACK\EOT%\STX\SOH\b\ETX\DC2\EOT\216\b\GS.\n\+ \\f\n\+ \\EOT\EOT%\STX\STX\DC2\EOT\217\b\EOT1\n\+ \\r\n\+ \\ENQ\EOT%\STX\STX\ENQ\DC2\EOT\217\b\EOT\t\n\+ \\r\n\+ \\ENQ\EOT%\STX\STX\SOH\DC2\EOT\217\b\n\+ \\CAN\n\+ \\r\n\+ \\ENQ\EOT%\STX\STX\ETX\DC2\EOT\217\b\ESC\FS\n\+ \\r\n\+ \\ENQ\EOT%\STX\STX\b\DC2\EOT\217\b\GS0\n\+ \\SO\n\+ \\ACK\EOT%\STX\STX\b\ETX\DC2\EOT\217\b\RS/\n\+ \\f\n\+ \\EOT\EOT%\STX\ETX\DC2\EOT\218\b\EOT&\n\+ \\r\n\+ \\ENQ\EOT%\STX\ETX\ENQ\DC2\EOT\218\b\EOT\t\n\+ \\r\n\+ \\ENQ\EOT%\STX\ETX\SOH\DC2\EOT\218\b\n\+ \\r\n\+ \\r\n\+ \\ENQ\EOT%\STX\ETX\ETX\DC2\EOT\218\b\DLE\DC1\n\+ \\r\n\+ \\ENQ\EOT%\STX\ETX\b\DC2\EOT\218\b\DC2%\n\+ \\SO\n\+ \\ACK\EOT%\STX\ETX\b\ETX\DC2\EOT\218\b\DC3$\n\+ \\f\n\+ \\EOT\EOT%\STX\EOT\DC2\EOT\219\b\EOT\SYN\n\+ \\r\n\+ \\ENQ\EOT%\STX\EOT\ENQ\DC2\EOT\219\b\EOT\n\+ \\n\+ \\r\n\+ \\ENQ\EOT%\STX\EOT\SOH\DC2\EOT\219\b\v\DC1\n\+ \\r\n\+ \\ENQ\EOT%\STX\EOT\ETX\DC2\EOT\219\b\DC4\NAK\n\+ \\f\n\+ \\EOT\EOT%\STX\ENQ\DC2\EOT\220\b\EOT\"\n\+ \\r\n\+ \\ENQ\EOT%\STX\ENQ\ENQ\DC2\EOT\220\b\EOT\t\n\+ \\r\n\+ \\ENQ\EOT%\STX\ENQ\SOH\DC2\EOT\220\b\n\+ \\GS\n\+ \\r\n\+ \\ENQ\EOT%\STX\ENQ\ETX\DC2\EOT\220\b !\n\+ \\f\n\+ \\EOT\EOT%\STX\ACK\DC2\EOT\221\b\EOT\ETB\n\+ \\r\n\+ \\ENQ\EOT%\STX\ACK\ENQ\DC2\EOT\221\b\EOT\t\n\+ \\r\n\+ \\ENQ\EOT%\STX\ACK\SOH\DC2\EOT\221\b\n\+ \\DC2\n\+ \\r\n\+ \\ENQ\EOT%\STX\ACK\ETX\DC2\EOT\221\b\NAK\SYN\n\+ \\155\SOH\n\+ \\EOT\EOT%\STX\a\DC2\EOT\227\b\EOT\ETB\SUB\140\SOH\n\+ \An optional public key of the hop. If the public key is given, the payment\n\+ \can be executed without relying on a copy of the channel graph.\n\+ \\n\+ \\r\n\+ \\ENQ\EOT%\STX\a\ENQ\DC2\EOT\227\b\EOT\n\+ \\n\+ \\r\n\+ \\ENQ\EOT%\STX\a\SOH\DC2\EOT\227\b\v\DC2\n\+ \\r\n\+ \\ENQ\EOT%\STX\a\ETX\DC2\EOT\227\b\NAK\SYN\n\+ \\230\SOH\n\+ \\EOT\EOT%\STX\b\DC2\EOT\234\b\EOT\EM\SUB\215\SOH\n\+ \If set to true, then this hop will be encoded using the new variable length\n\+ \TLV format. Note that if any custom tlv_records below are specified, then\n\+ \this field MUST be set to true for them to be encoded properly.\n\+ \\n\+ \\r\n\+ \\ENQ\EOT%\STX\b\ENQ\DC2\EOT\234\b\EOT\b\n\+ \\r\n\+ \\ENQ\EOT%\STX\b\SOH\DC2\EOT\234\b\t\DC4\n\+ \\r\n\+ \\ENQ\EOT%\STX\b\ETX\DC2\EOT\234\b\ETB\CAN\n\+ \\154\STX\n\+ \\EOT\EOT%\STX\t\DC2\EOT\242\b\EOT\RS\SUB\139\STX\n\+ \An optional TLV record that signals the use of an MPP payment. If present,\n\+ \the receiver will enforce that the same mpp_record is included in the final\n\+ \hop payload of all non-zero payments in the HTLC set. If empty, a regular\n\+ \single-shot payment is or was attempted.\n\+ \\n\+ \\r\n\+ \\ENQ\EOT%\STX\t\ACK\DC2\EOT\242\b\EOT\r\n\+ \\r\n\+ \\ENQ\EOT%\STX\t\SOH\DC2\EOT\242\b\SO\CAN\n\+ \\r\n\+ \\ENQ\EOT%\STX\t\ETX\DC2\EOT\242\b\ESC\GS\n\+ \\142\ETX\n\+ \\EOT\EOT%\STX\n\+ \\DC2\EOT\252\b\EOT\RS\SUB\255\STX\n\+ \An optional TLV record that signals the use of an AMP payment. If present,\n\+ \the receiver will treat all received payments including the same\n\+ \(payment_addr, set_id) pair as being part of one logical payment. The\n\+ \payment will be settled by XORing the root_share's together and deriving the\n\+ \child hashes and preimages according to BOLT XX. Must be used in conjunction\n\+ \with mpp_record.\n\+ \\n\+ \\r\n\+ \\ENQ\EOT%\STX\n\+ \\ACK\DC2\EOT\252\b\EOT\r\n\+ \\r\n\+ \\ENQ\EOT%\STX\n\+ \\SOH\DC2\EOT\252\b\SO\CAN\n\+ \\r\n\+ \\ENQ\EOT%\STX\n\+ \\ETX\DC2\EOT\252\b\ESC\GS\n\+ \\210\SOH\n\+ \\EOT\EOT%\STX\v\DC2\EOT\131\t\EOT+\SUB\195\SOH\n\+ \An optional set of key-value TLV records. This is useful within the context\n\+ \of the SendToRoute call as it allows callers to specify arbitrary K-V pairs\n\+ \to drop off at each hop within the onion.\n\+ \\n\+ \\r\n\+ \\ENQ\EOT%\STX\v\ACK\DC2\EOT\131\t\EOT\SYN\n\+ \\r\n\+ \\ENQ\EOT%\STX\v\SOH\DC2\EOT\131\t\ETB%\n\+ \\r\n\+ \\ENQ\EOT%\STX\v\ETX\DC2\EOT\131\t(*\n\+ \\f\n\+ \\STX\EOT&\DC2\ACK\134\t\NUL\150\t\SOH\n\+ \\v\n\+ \\ETX\EOT&\SOH\DC2\EOT\134\t\b\DC1\n\+ \\168\STX\n\+ \\EOT\EOT&\STX\NUL\DC2\EOT\141\t\EOT\FS\SUB\153\STX\n\+ \A unique, random identifier used to authenticate the sender as the intended\n\+ \payer of a multi-path payment. The payment_addr must be the same for all\n\+ \subpayments, and match the payment_addr provided in the receiver's invoice.\n\+ \The same payment_addr must be used on all subpayments.\n\+ \\n\+ \\r\n\+ \\ENQ\EOT&\STX\NUL\ENQ\DC2\EOT\141\t\EOT\t\n\+ \\r\n\+ \\ENQ\EOT&\STX\NUL\SOH\DC2\EOT\141\t\n\+ \\SYN\n\+ \\r\n\+ \\ENQ\EOT&\STX\NUL\ETX\DC2\EOT\141\t\EM\ESC\n\+ \\147\STX\n\+ \\EOT\EOT&\STX\SOH\DC2\EOT\149\t\EOT\RS\SUB\132\STX\n\+ \The total amount in milli-satoshis being sent as part of a larger multi-path\n\+ \payment. The caller is responsible for ensuring subpayments to the same node\n\+ \and payment_hash sum exactly to total_amt_msat. The same\n\+ \total_amt_msat must be used on all subpayments.\n\+ \\n\+ \\r\n\+ \\ENQ\EOT&\STX\SOH\ENQ\DC2\EOT\149\t\EOT\t\n\+ \\r\n\+ \\ENQ\EOT&\STX\SOH\SOH\DC2\EOT\149\t\n\+ \\CAN\n\+ \\r\n\+ \\ENQ\EOT&\STX\SOH\ETX\DC2\EOT\149\t\ESC\GS\n\+ \\f\n\+ \\STX\EOT'\DC2\ACK\152\t\NUL\158\t\SOH\n\+ \\v\n\+ \\ETX\EOT'\SOH\DC2\EOT\152\t\b\DC1\n\+ \\f\n\+ \\EOT\EOT'\STX\NUL\DC2\EOT\153\t\EOT\EM\n\+ \\r\n\+ \\ENQ\EOT'\STX\NUL\ENQ\DC2\EOT\153\t\EOT\t\n\+ \\r\n\+ \\ENQ\EOT'\STX\NUL\SOH\DC2\EOT\153\t\n\+ \\DC4\n\+ \\r\n\+ \\ENQ\EOT'\STX\NUL\ETX\DC2\EOT\153\t\ETB\CAN\n\+ \\f\n\+ \\EOT\EOT'\STX\SOH\DC2\EOT\155\t\EOT\NAK\n\+ \\r\n\+ \\ENQ\EOT'\STX\SOH\ENQ\DC2\EOT\155\t\EOT\t\n\+ \\r\n\+ \\ENQ\EOT'\STX\SOH\SOH\DC2\EOT\155\t\n\+ \\DLE\n\+ \\r\n\+ \\ENQ\EOT'\STX\SOH\ETX\DC2\EOT\155\t\DC3\DC4\n\+ \\f\n\+ \\EOT\EOT'\STX\STX\DC2\EOT\157\t\EOT\ESC\n\+ \\r\n\+ \\ENQ\EOT'\STX\STX\ENQ\DC2\EOT\157\t\EOT\n\+ \\n\+ \\r\n\+ \\ENQ\EOT'\STX\STX\SOH\DC2\EOT\157\t\v\SYN\n\+ \\r\n\+ \\ENQ\EOT'\STX\STX\ETX\DC2\EOT\157\t\EM\SUB\n\+ \\255\STX\n\+ \\STX\EOT(\DC2\ACK\167\t\NUL\206\t\SOH\SUB\240\STX\n\+ \A path through the channel graph which runs over one or more channels in\n\+ \succession. This struct carries all the information required to craft the\n\+ \Sphinx onion packet, and send the payment along the first hop in the path. A\n\+ \route is only selected as valid if all the channels have sufficient capacity to\n\+ \carry the initial payment amount after fees are accounted for.\n\+ \\n\+ \\v\n\+ \\ETX\EOT(\SOH\DC2\EOT\167\t\b\r\n\+ \\185\STX\n\+ \\EOT\EOT(\STX\NUL\DC2\EOT\174\t\EOT\US\SUB\170\STX\n\+ \The cumulative (final) time lock across the entire route. This is the CLTV\n\+ \value that should be extended to the first hop in the route. All other hops\n\+ \will decrement the time-lock as advertised, leaving enough time for all\n\+ \hops to wait for or present the payment preimage to complete the payment.\n\+ \\n\+ \\r\n\+ \\ENQ\EOT(\STX\NUL\ENQ\DC2\EOT\174\t\EOT\n\+ \\n\+ \\r\n\+ \\ENQ\EOT(\STX\NUL\SOH\DC2\EOT\174\t\v\SUB\n\+ \\r\n\+ \\ENQ\EOT(\STX\NUL\ETX\DC2\EOT\174\t\GS\RS\n\+ \\179\SOH\n\+ \\EOT\EOT(\STX\SOH\DC2\EOT\181\t\EOT-\SUB\164\SOH\n\+ \The sum of the fees paid at each hop within the final route. In the case\n\+ \of a one-hop payment, this value will be zero as we don't need to pay a fee\n\+ \to ourselves.\n\+ \\n\+ \\r\n\+ \\ENQ\EOT(\STX\SOH\ENQ\DC2\EOT\181\t\EOT\t\n\+ \\r\n\+ \\ENQ\EOT(\STX\SOH\SOH\DC2\EOT\181\t\n\+ \\DC4\n\+ \\r\n\+ \\ENQ\EOT(\STX\SOH\ETX\DC2\EOT\181\t\ETB\CAN\n\+ \\r\n\+ \\ENQ\EOT(\STX\SOH\b\DC2\EOT\181\t\EM,\n\+ \\SO\n\+ \\ACK\EOT(\STX\SOH\b\ETX\DC2\EOT\181\t\SUB+\n\+ \\216\STX\n\+ \\EOT\EOT(\STX\STX\DC2\EOT\190\t\EOT,\SUB\201\STX\n\+ \The total amount of funds required to complete a payment over this route.\n\+ \This value includes the cumulative fees at each hop. As a result, the HTLC\n\+ \extended to the first-hop in the route will need to have at least this many\n\+ \satoshis, otherwise the route will fail at an intermediate node due to an\n\+ \insufficient amount of fees.\n\+ \\n\+ \\r\n\+ \\ENQ\EOT(\STX\STX\ENQ\DC2\EOT\190\t\EOT\t\n\+ \\r\n\+ \\ENQ\EOT(\STX\STX\SOH\DC2\EOT\190\t\n\+ \\DC3\n\+ \\r\n\+ \\ENQ\EOT(\STX\STX\ETX\DC2\EOT\190\t\SYN\ETB\n\+ \\r\n\+ \\ENQ\EOT(\STX\STX\b\DC2\EOT\190\t\CAN+\n\+ \\SO\n\+ \\ACK\EOT(\STX\STX\b\ETX\DC2\EOT\190\t\EM*\n\+ \X\n\+ \\EOT\EOT(\STX\ETX\DC2\EOT\195\t\EOT\SUB\SUBJ\n\+ \Contains details concerning the specific forwarding details at each hop.\n\+ \\n\+ \\r\n\+ \\ENQ\EOT(\STX\ETX\EOT\DC2\EOT\195\t\EOT\f\n\+ \\r\n\+ \\ENQ\EOT(\STX\ETX\ACK\DC2\EOT\195\t\r\DLE\n\+ \\r\n\+ \\ENQ\EOT(\STX\ETX\SOH\DC2\EOT\195\t\DC1\NAK\n\+ \\r\n\+ \\ENQ\EOT(\STX\ETX\ETX\DC2\EOT\195\t\CAN\EM\n\+ \0\n\+ \\EOT\EOT(\STX\EOT\DC2\EOT\200\t\EOT\RS\SUB\"\n\+ \The total fees in millisatoshis.\n\+ \\n\+ \\r\n\+ \\ENQ\EOT(\STX\EOT\ENQ\DC2\EOT\200\t\EOT\t\n\+ \\r\n\+ \\ENQ\EOT(\STX\EOT\SOH\DC2\EOT\200\t\n\+ \\EM\n\+ \\r\n\+ \\ENQ\EOT(\STX\EOT\ETX\DC2\EOT\200\t\FS\GS\n\+ \2\n\+ \\EOT\EOT(\STX\ENQ\DC2\EOT\205\t\EOT\GS\SUB$\n\+ \The total amount in millisatoshis.\n\+ \\n\+ \\r\n\+ \\ENQ\EOT(\STX\ENQ\ENQ\DC2\EOT\205\t\EOT\t\n\+ \\r\n\+ \\ENQ\EOT(\STX\ENQ\SOH\DC2\EOT\205\t\n\+ \\CAN\n\+ \\r\n\+ \\ENQ\EOT(\STX\ENQ\ETX\DC2\EOT\205\t\ESC\FS\n\+ \\f\n\+ \\STX\EOT)\DC2\ACK\208\t\NUL\214\t\SOH\n\+ \\v\n\+ \\ETX\EOT)\SOH\DC2\EOT\208\t\b\ETB\n\+ \L\n\+ \\EOT\EOT)\STX\NUL\DC2\EOT\210\t\EOT\ETB\SUB> The 33-byte hex-encoded compressed public of the target node\n\+ \\n\+ \\r\n\+ \\ENQ\EOT)\STX\NUL\ENQ\DC2\EOT\210\t\EOT\n\+ \\n\+ \\r\n\+ \\ENQ\EOT)\STX\NUL\SOH\DC2\EOT\210\t\v\DC2\n\+ \\r\n\+ \\ENQ\EOT)\STX\NUL\ETX\DC2\EOT\210\t\NAK\SYN\n\+ \R\n\+ \\EOT\EOT)\STX\SOH\DC2\EOT\213\t\EOT\RS\SUBD If true, will include all known channels associated with the node.\n\+ \\n\+ \\r\n\+ \\ENQ\EOT)\STX\SOH\ENQ\DC2\EOT\213\t\EOT\b\n\+ \\r\n\+ \\ENQ\EOT)\STX\SOH\SOH\DC2\EOT\213\t\t\EM\n\+ \\r\n\+ \\ENQ\EOT)\STX\SOH\ETX\DC2\EOT\213\t\FS\GS\n\+ \\f\n\+ \\STX\EOT*\DC2\ACK\216\t\NUL\233\t\SOH\n\+ \\v\n\+ \\ETX\EOT*\SOH\DC2\EOT\216\t\b\DLE\n\+ \\255\SOH\n\+ \\EOT\EOT*\STX\NUL\DC2\EOT\223\t\EOT\ESC\SUB\240\SOH\n\+ \An individual vertex/node within the channel graph. A node is\n\+ \connected to other nodes by one or more channel edges emanating from it. As\n\+ \the graph is directed, a node will also have an incoming edge attached to\n\+ \it for each outgoing edge.\n\+ \\n\+ \\r\n\+ \\ENQ\EOT*\STX\NUL\ACK\DC2\EOT\223\t\EOT\DC1\n\+ \\r\n\+ \\ENQ\EOT*\STX\NUL\SOH\DC2\EOT\223\t\DC2\SYN\n\+ \\r\n\+ \\ENQ\EOT*\STX\NUL\ETX\DC2\EOT\223\t\EM\SUB\n\+ \:\n\+ \\EOT\EOT*\STX\SOH\DC2\EOT\226\t\EOT\FS\SUB, The total number of channels for the node.\n\+ \\n\+ \\r\n\+ \\ENQ\EOT*\STX\SOH\ENQ\DC2\EOT\226\t\EOT\n\+ \\n\+ \\r\n\+ \\ENQ\EOT*\STX\SOH\SOH\DC2\EOT\226\t\v\ETB\n\+ \\r\n\+ \\ENQ\EOT*\STX\SOH\ETX\DC2\EOT\226\t\SUB\ESC\n\+ \W\n\+ \\EOT\EOT*\STX\STX\DC2\EOT\229\t\EOT\GS\SUBI The sum of all channels capacity for the node, denominated in satoshis.\n\+ \\n\+ \\r\n\+ \\ENQ\EOT*\STX\STX\ENQ\DC2\EOT\229\t\EOT\t\n\+ \\r\n\+ \\ENQ\EOT*\STX\STX\SOH\DC2\EOT\229\t\n\+ \\CAN\n\+ \\r\n\+ \\ENQ\EOT*\STX\STX\ETX\DC2\EOT\229\t\ESC\FS\n\+ \;\n\+ \\EOT\EOT*\STX\ETX\DC2\EOT\232\t\EOT&\SUB- A list of all public channels for the node.\n\+ \\n\+ \\r\n\+ \\ENQ\EOT*\STX\ETX\EOT\DC2\EOT\232\t\EOT\f\n\+ \\r\n\+ \\ENQ\EOT*\STX\ETX\ACK\DC2\EOT\232\t\r\CAN\n\+ \\r\n\+ \\ENQ\EOT*\STX\ETX\SOH\DC2\EOT\232\t\EM!\n\+ \\r\n\+ \\ENQ\EOT*\STX\ETX\ETX\DC2\EOT\232\t$%\n\+ \\255\SOH\n\+ \\STX\EOT+\DC2\ACK\241\t\NUL\248\t\SOH\SUB\240\SOH\n\+ \An individual vertex/node within the channel graph. A node is\n\+ \connected to other nodes by one or more channel edges emanating from it. As the\n\+ \graph is directed, a node will also have an incoming edge attached to it for\n\+ \each outgoing edge.\n\+ \\n\+ \\v\n\+ \\ETX\EOT+\SOH\DC2\EOT\241\t\b\NAK\n\+ \\f\n\+ \\EOT\EOT+\STX\NUL\DC2\EOT\242\t\EOT\ESC\n\+ \\r\n\+ \\ENQ\EOT+\STX\NUL\ENQ\DC2\EOT\242\t\EOT\n\+ \\n\+ \\r\n\+ \\ENQ\EOT+\STX\NUL\SOH\DC2\EOT\242\t\v\SYN\n\+ \\r\n\+ \\ENQ\EOT+\STX\NUL\ETX\DC2\EOT\242\t\EM\SUB\n\+ \\f\n\+ \\EOT\EOT+\STX\SOH\DC2\EOT\243\t\EOT\ETB\n\+ \\r\n\+ \\ENQ\EOT+\STX\SOH\ENQ\DC2\EOT\243\t\EOT\n\+ \\n\+ \\r\n\+ \\ENQ\EOT+\STX\SOH\SOH\DC2\EOT\243\t\v\DC2\n\+ \\r\n\+ \\ENQ\EOT+\STX\SOH\ETX\DC2\EOT\243\t\NAK\SYN\n\+ \\f\n\+ \\EOT\EOT+\STX\STX\DC2\EOT\244\t\EOT\NAK\n\+ \\r\n\+ \\ENQ\EOT+\STX\STX\ENQ\DC2\EOT\244\t\EOT\n\+ \\n\+ \\r\n\+ \\ENQ\EOT+\STX\STX\SOH\DC2\EOT\244\t\v\DLE\n\+ \\r\n\+ \\ENQ\EOT+\STX\STX\ETX\DC2\EOT\244\t\DC3\DC4\n\+ \\f\n\+ \\EOT\EOT+\STX\ETX\DC2\EOT\245\t\EOT'\n\+ \\r\n\+ \\ENQ\EOT+\STX\ETX\EOT\DC2\EOT\245\t\EOT\f\n\+ \\r\n\+ \\ENQ\EOT+\STX\ETX\ACK\DC2\EOT\245\t\r\CAN\n\+ \\r\n\+ \\ENQ\EOT+\STX\ETX\SOH\DC2\EOT\245\t\EM\"\n\+ \\r\n\+ \\ENQ\EOT+\STX\ETX\ETX\DC2\EOT\245\t%&\n\+ \\f\n\+ \\EOT\EOT+\STX\EOT\DC2\EOT\246\t\EOT\NAK\n\+ \\r\n\+ \\ENQ\EOT+\STX\EOT\ENQ\DC2\EOT\246\t\EOT\n\+ \\n\+ \\r\n\+ \\ENQ\EOT+\STX\EOT\SOH\DC2\EOT\246\t\v\DLE\n\+ \\r\n\+ \\ENQ\EOT+\STX\EOT\ETX\DC2\EOT\246\t\DC3\DC4\n\+ \\f\n\+ \\EOT\EOT+\STX\ENQ\DC2\EOT\247\t\EOT&\n\+ \\r\n\+ \\ENQ\EOT+\STX\ENQ\ACK\DC2\EOT\247\t\EOT\CAN\n\+ \\r\n\+ \\ENQ\EOT+\STX\ENQ\SOH\DC2\EOT\247\t\EM!\n\+ \\r\n\+ \\ENQ\EOT+\STX\ENQ\ETX\DC2\EOT\247\t$%\n\+ \\f\n\+ \\STX\EOT,\DC2\ACK\250\t\NUL\253\t\SOH\n\+ \\v\n\+ \\ETX\EOT,\SOH\DC2\EOT\250\t\b\DC3\n\+ \\f\n\+ \\EOT\EOT,\STX\NUL\DC2\EOT\251\t\EOT\ETB\n\+ \\r\n\+ \\ENQ\EOT,\STX\NUL\ENQ\DC2\EOT\251\t\EOT\n\+ \\n\+ \\r\n\+ \\ENQ\EOT,\STX\NUL\SOH\DC2\EOT\251\t\v\DC2\n\+ \\r\n\+ \\ENQ\EOT,\STX\NUL\ETX\DC2\EOT\251\t\NAK\SYN\n\+ \\f\n\+ \\EOT\EOT,\STX\SOH\DC2\EOT\252\t\EOT\DC4\n\+ \\r\n\+ \\ENQ\EOT,\STX\SOH\ENQ\DC2\EOT\252\t\EOT\n\+ \\n\+ \\r\n\+ \\ENQ\EOT,\STX\SOH\SOH\DC2\EOT\252\t\v\SI\n\+ \\r\n\+ \\ENQ\EOT,\STX\SOH\ETX\DC2\EOT\252\t\DC2\DC3\n\+ \\f\n\+ \\STX\EOT-\DC2\ACK\255\t\NUL\135\n\+ \\SOH\n\+ \\v\n\+ \\ETX\EOT-\SOH\DC2\EOT\255\t\b\NAK\n\+ \\f\n\+ \\EOT\EOT-\STX\NUL\DC2\EOT\128\n\+ \\EOT\US\n\+ \\r\n\+ \\ENQ\EOT-\STX\NUL\ENQ\DC2\EOT\128\n\+ \\EOT\n\+ \\n\+ \\r\n\+ \\ENQ\EOT-\STX\NUL\SOH\DC2\EOT\128\n\+ \\v\SUB\n\+ \\r\n\+ \\ENQ\EOT-\STX\NUL\ETX\DC2\EOT\128\n\+ \\GS\RS\n\+ \\f\n\+ \\EOT\EOT-\STX\SOH\DC2\EOT\129\n\+ \\EOT\ETB\n\+ \\r\n\+ \\ENQ\EOT-\STX\SOH\ENQ\DC2\EOT\129\n\+ \\EOT\t\n\+ \\r\n\+ \\ENQ\EOT-\STX\SOH\SOH\DC2\EOT\129\n\+ \\n\+ \\DC2\n\+ \\r\n\+ \\ENQ\EOT-\STX\SOH\ETX\DC2\EOT\129\n\+ \\NAK\SYN\n\+ \\f\n\+ \\EOT\EOT-\STX\STX\DC2\EOT\130\n\+ \\EOT\FS\n\+ \\r\n\+ \\ENQ\EOT-\STX\STX\ENQ\DC2\EOT\130\n\+ \\EOT\t\n\+ \\r\n\+ \\ENQ\EOT-\STX\STX\SOH\DC2\EOT\130\n\+ \\n\+ \\ETB\n\+ \\r\n\+ \\ENQ\EOT-\STX\STX\ETX\DC2\EOT\130\n\+ \\SUB\ESC\n\+ \\f\n\+ \\EOT\EOT-\STX\ETX\DC2\EOT\131\n\+ \\EOT\"\n\+ \\r\n\+ \\ENQ\EOT-\STX\ETX\ENQ\DC2\EOT\131\n\+ \\EOT\t\n\+ \\r\n\+ \\ENQ\EOT-\STX\ETX\SOH\DC2\EOT\131\n\+ \\n\+ \\GS\n\+ \\r\n\+ \\ENQ\EOT-\STX\ETX\ETX\DC2\EOT\131\n\+ \ !\n\+ \\f\n\+ \\EOT\EOT-\STX\EOT\DC2\EOT\132\n\+ \\EOT\SYN\n\+ \\r\n\+ \\ENQ\EOT-\STX\EOT\ENQ\DC2\EOT\132\n\+ \\EOT\b\n\+ \\r\n\+ \\ENQ\EOT-\STX\EOT\SOH\DC2\EOT\132\n\+ \\t\DC1\n\+ \\r\n\+ \\ENQ\EOT-\STX\EOT\ETX\DC2\EOT\132\n\+ \\DC4\NAK\n\+ \\f\n\+ \\EOT\EOT-\STX\ENQ\DC2\EOT\133\n\+ \\EOT\GS\n\+ \\r\n\+ \\ENQ\EOT-\STX\ENQ\ENQ\DC2\EOT\133\n\+ \\EOT\n\+ \\n\+ \\r\n\+ \\ENQ\EOT-\STX\ENQ\SOH\DC2\EOT\133\n\+ \\v\CAN\n\+ \\r\n\+ \\ENQ\EOT-\STX\ENQ\ETX\DC2\EOT\133\n\+ \\ESC\FS\n\+ \\f\n\+ \\EOT\EOT-\STX\ACK\DC2\EOT\134\n\+ \\EOT\ESC\n\+ \\r\n\+ \\ENQ\EOT-\STX\ACK\ENQ\DC2\EOT\134\n\+ \\EOT\n\+ \\n\+ \\r\n\+ \\ENQ\EOT-\STX\ACK\SOH\DC2\EOT\134\n\+ \\v\SYN\n\+ \\r\n\+ \\ENQ\EOT-\STX\ACK\ETX\DC2\EOT\134\n\+ \\EM\SUB\n\+ \\251\STX\n\+ \\STX\EOT.\DC2\ACK\144\n\+ \\NUL\162\n\+ \\SOH\SUB\236\STX\n\+ \A fully authenticated channel along with all its unique attributes.\n\+ \Once an authenticated channel announcement has been processed on the network,\n\+ \then an instance of ChannelEdgeInfo encapsulating the channels attributes is\n\+ \stored. The other portions relevant to routing policy of a channel are stored\n\+ \within a ChannelEdgePolicy for each direction of the channel.\n\+ \\n\+ \\v\n\+ \\ETX\EOT.\SOH\DC2\EOT\144\n\+ \\b\DC3\n\+ \\193\SOH\n\+ \\EOT\EOT.\STX\NUL\DC2\EOT\150\n\+ \\EOT/\SUB\178\SOH\n\+ \The unique channel ID for the channel. The first 3 bytes are the block\n\+ \height, the next 3 the index within the block, and the last 2 bytes are the\n\+ \output index for the channel.\n\+ \\n\+ \\r\n\+ \\ENQ\EOT.\STX\NUL\ENQ\DC2\EOT\150\n\+ \\EOT\n\+ \\n\+ \\r\n\+ \\ENQ\EOT.\STX\NUL\SOH\DC2\EOT\150\n\+ \\v\NAK\n\+ \\r\n\+ \\ENQ\EOT.\STX\NUL\ETX\DC2\EOT\150\n\+ \\CAN\EM\n\+ \\r\n\+ \\ENQ\EOT.\STX\NUL\b\DC2\EOT\150\n\+ \\SUB.\n\+ \\SO\n\+ \\ACK\EOT.\STX\NUL\b\ACK\DC2\EOT\150\n\+ \\ESC-\n\+ \\f\n\+ \\EOT\EOT.\STX\SOH\DC2\EOT\151\n\+ \\EOT\SUB\n\+ \\r\n\+ \\ENQ\EOT.\STX\SOH\ENQ\DC2\EOT\151\n\+ \\EOT\n\+ \\n\+ \\r\n\+ \\ENQ\EOT.\STX\SOH\SOH\DC2\EOT\151\n\+ \\v\NAK\n\+ \\r\n\+ \\ENQ\EOT.\STX\SOH\ETX\DC2\EOT\151\n\+ \\CAN\EM\n\+ \\f\n\+ \\EOT\EOT.\STX\STX\DC2\EOT\153\n\+ \\EOT/\n\+ \\r\n\+ \\ENQ\EOT.\STX\STX\ENQ\DC2\EOT\153\n\+ \\EOT\n\+ \\n\+ \\r\n\+ \\ENQ\EOT.\STX\STX\SOH\DC2\EOT\153\n\+ \\v\SYN\n\+ \\r\n\+ \\ENQ\EOT.\STX\STX\ETX\DC2\EOT\153\n\+ \\EM\SUB\n\+ \\r\n\+ \\ENQ\EOT.\STX\STX\b\DC2\EOT\153\n\+ \\ESC.\n\+ \\SO\n\+ \\ACK\EOT.\STX\STX\b\ETX\DC2\EOT\153\n\+ \\FS-\n\+ \\f\n\+ \\EOT\EOT.\STX\ETX\DC2\EOT\155\n\+ \\EOT\EM\n\+ \\r\n\+ \\ENQ\EOT.\STX\ETX\ENQ\DC2\EOT\155\n\+ \\EOT\n\+ \\n\+ \\r\n\+ \\ENQ\EOT.\STX\ETX\SOH\DC2\EOT\155\n\+ \\v\DC4\n\+ \\r\n\+ \\ENQ\EOT.\STX\ETX\ETX\DC2\EOT\155\n\+ \\ETB\CAN\n\+ \\f\n\+ \\EOT\EOT.\STX\EOT\DC2\EOT\156\n\+ \\EOT\EM\n\+ \\r\n\+ \\ENQ\EOT.\STX\EOT\ENQ\DC2\EOT\156\n\+ \\EOT\n\+ \\n\+ \\r\n\+ \\ENQ\EOT.\STX\EOT\SOH\DC2\EOT\156\n\+ \\v\DC4\n\+ \\r\n\+ \\ENQ\EOT.\STX\EOT\ETX\DC2\EOT\156\n\+ \\ETB\CAN\n\+ \\f\n\+ \\EOT\EOT.\STX\ENQ\DC2\EOT\158\n\+ \\EOT\ETB\n\+ \\r\n\+ \\ENQ\EOT.\STX\ENQ\ENQ\DC2\EOT\158\n\+ \\EOT\t\n\+ \\r\n\+ \\ENQ\EOT.\STX\ENQ\SOH\DC2\EOT\158\n\+ \\n\+ \\DC2\n\+ \\r\n\+ \\ENQ\EOT.\STX\ENQ\ETX\DC2\EOT\158\n\+ \\NAK\SYN\n\+ \\f\n\+ \\EOT\EOT.\STX\ACK\DC2\EOT\160\n\+ \\EOT#\n\+ \\r\n\+ \\ENQ\EOT.\STX\ACK\ACK\DC2\EOT\160\n\+ \\EOT\DC1\n\+ \\r\n\+ \\ENQ\EOT.\STX\ACK\SOH\DC2\EOT\160\n\+ \\DC2\RS\n\+ \\r\n\+ \\ENQ\EOT.\STX\ACK\ETX\DC2\EOT\160\n\+ \!\"\n\+ \\f\n\+ \\EOT\EOT.\STX\a\DC2\EOT\161\n\+ \\EOT#\n\+ \\r\n\+ \\ENQ\EOT.\STX\a\ACK\DC2\EOT\161\n\+ \\EOT\DC1\n\+ \\r\n\+ \\ENQ\EOT.\STX\a\SOH\DC2\EOT\161\n\+ \\DC2\RS\n\+ \\r\n\+ \\ENQ\EOT.\STX\a\ETX\DC2\EOT\161\n\+ \!\"\n\+ \\f\n\+ \\STX\EOT/\DC2\ACK\164\n\+ \\NUL\171\n\+ \\SOH\n\+ \\v\n\+ \\ETX\EOT/\SOH\DC2\EOT\164\n\+ \\b\ESC\n\+ \\236\SOH\n\+ \\EOT\EOT/\STX\NUL\DC2\EOT\170\n\+ \\EOT!\SUB\221\SOH\n\+ \Whether unannounced channels are included in the response or not. If set,\n\+ \unannounced channels are included. Unannounced channels are both private\n\+ \channels, and public channels that are not yet announced to the network.\n\+ \\n\+ \\r\n\+ \\ENQ\EOT/\STX\NUL\ENQ\DC2\EOT\170\n\+ \\EOT\b\n\+ \\r\n\+ \\ENQ\EOT/\STX\NUL\SOH\DC2\EOT\170\n\+ \\t\FS\n\+ \\r\n\+ \\ENQ\EOT/\STX\NUL\ETX\DC2\EOT\170\n\+ \\US \n\+ \E\n\+ \\STX\EOT0\DC2\ACK\174\n\+ \\NUL\180\n\+ \\SOH\SUB7 Returns a new instance of the directed channel graph.\n\+ \\n\+ \\v\n\+ \\ETX\EOT0\SOH\DC2\EOT\174\n\+ \\b\DC4\n\+ \B\n\+ \\EOT\EOT0\STX\NUL\DC2\EOT\176\n\+ \\EOT%\SUB4 The list of `LightningNode`s in this channel graph\n\+ \\n\+ \\r\n\+ \\ENQ\EOT0\STX\NUL\EOT\DC2\EOT\176\n\+ \\EOT\f\n\+ \\r\n\+ \\ENQ\EOT0\STX\NUL\ACK\DC2\EOT\176\n\+ \\r\SUB\n\+ \\r\n\+ \\ENQ\EOT0\STX\NUL\SOH\DC2\EOT\176\n\+ \\ESC \n\+ \\r\n\+ \\ENQ\EOT0\STX\NUL\ETX\DC2\EOT\176\n\+ \#$\n\+ \@\n\+ \\EOT\EOT0\STX\SOH\DC2\EOT\179\n\+ \\EOT#\SUB2 The list of `ChannelEdge`s in this channel graph\n\+ \\n\+ \\r\n\+ \\ENQ\EOT0\STX\SOH\EOT\DC2\EOT\179\n\+ \\EOT\f\n\+ \\r\n\+ \\ENQ\EOT0\STX\SOH\ACK\DC2\EOT\179\n\+ \\r\CAN\n\+ \\r\n\+ \\ENQ\EOT0\STX\SOH\SOH\DC2\EOT\179\n\+ \\EM\RS\n\+ \\r\n\+ \\ENQ\EOT0\STX\SOH\ETX\DC2\EOT\179\n\+ \!\"\n\+ \\f\n\+ \\STX\ENQ\ENQ\DC2\ACK\182\n\+ \\NUL\185\n\+ \\SOH\n\+ \\v\n\+ \\ETX\ENQ\ENQ\SOH\DC2\EOT\182\n\+ \\ENQ\DC3\n\+ \\f\n\+ \\EOT\ENQ\ENQ\STX\NUL\DC2\EOT\183\n\+ \\EOT\DLE\n\+ \\r\n\+ \\ENQ\ENQ\ENQ\STX\NUL\SOH\DC2\EOT\183\n\+ \\EOT\v\n\+ \\r\n\+ \\ENQ\ENQ\ENQ\STX\NUL\STX\DC2\EOT\183\n\+ \\SO\SI\n\+ \\f\n\+ \\EOT\ENQ\ENQ\STX\SOH\DC2\EOT\184\n\+ \\EOT\US\n\+ \\r\n\+ \\ENQ\ENQ\ENQ\STX\SOH\SOH\DC2\EOT\184\n\+ \\EOT\SUB\n\+ \\r\n\+ \\ENQ\ENQ\ENQ\STX\SOH\STX\DC2\EOT\184\n\+ \\GS\RS\n\+ \\f\n\+ \\STX\EOT1\DC2\ACK\187\n\+ \\NUL\190\n\+ \\SOH\n\+ \\v\n\+ \\ETX\EOT1\SOH\DC2\EOT\187\n\+ \\b\SUB\n\+ \+\n\+ \\EOT\EOT1\STX\NUL\DC2\EOT\189\n\+ \\EOT&\SUB\GS The requested node metrics.\n\+ \\n\+ \\r\n\+ \\ENQ\EOT1\STX\NUL\EOT\DC2\EOT\189\n\+ \\EOT\f\n\+ \\r\n\+ \\ENQ\EOT1\STX\NUL\ACK\DC2\EOT\189\n\+ \\r\ESC\n\+ \\r\n\+ \\ENQ\EOT1\STX\NUL\SOH\DC2\EOT\189\n\+ \\FS!\n\+ \\r\n\+ \\ENQ\EOT1\STX\NUL\ETX\DC2\EOT\189\n\+ \$%\n\+ \\f\n\+ \\STX\EOT2\DC2\ACK\192\n\+ \\NUL\201\n\+ \\SOH\n\+ \\v\n\+ \\ETX\EOT2\SOH\DC2\EOT\192\n\+ \\b\ESC\n\+ \\180\STX\n\+ \\EOT\EOT2\STX\NUL\DC2\EOT\200\n\+ \\EOT8\SUB\165\STX\n\+ \Betweenness centrality is the sum of the ratio of shortest paths that pass\n\+ \through the node for each pair of nodes in the graph (not counting paths\n\+ \starting or ending at this node).\n\+ \Map of node pubkey to betweenness centrality of the node. Normalized\n\+ \values are in the [0,1] closed interval.\n\+ \\n\+ \\r\n\+ \\ENQ\EOT2\STX\NUL\ACK\DC2\EOT\200\n\+ \\EOT\FS\n\+ \\r\n\+ \\ENQ\EOT2\STX\NUL\SOH\DC2\EOT\200\n\+ \\GS3\n\+ \\r\n\+ \\ENQ\EOT2\STX\NUL\ETX\DC2\EOT\200\n\+ \67\n\+ \\f\n\+ \\STX\EOT3\DC2\ACK\203\n\+ \\NUL\209\n\+ \\SOH\n\+ \\v\n\+ \\ETX\EOT3\SOH\DC2\EOT\203\n\+ \\b\DC3\n\+ \&\n\+ \\EOT\EOT3\STX\NUL\DC2\EOT\205\n\+ \\EOT\NAK\SUB\CAN Arbitrary float value.\n\+ \\n\+ \\r\n\+ \\ENQ\EOT3\STX\NUL\ENQ\DC2\EOT\205\n\+ \\EOT\n\+ \\n\+ \\r\n\+ \\ENQ\EOT3\STX\NUL\SOH\DC2\EOT\205\n\+ \\v\DLE\n\+ \\r\n\+ \\ENQ\EOT3\STX\NUL\ETX\DC2\EOT\205\n\+ \\DC3\DC4\n\+ \8\n\+ \\EOT\EOT3\STX\SOH\DC2\EOT\208\n\+ \\EOT \SUB* The value normalized to [0,1] or [-1,1].\n\+ \\n\+ \\r\n\+ \\ENQ\EOT3\STX\SOH\ENQ\DC2\EOT\208\n\+ \\EOT\n\+ \\n\+ \\r\n\+ \\ENQ\EOT3\STX\SOH\SOH\DC2\EOT\208\n\+ \\v\ESC\n\+ \\r\n\+ \\ENQ\EOT3\STX\SOH\ETX\DC2\EOT\208\n\+ \\RS\US\n\+ \\f\n\+ \\STX\EOT4\DC2\ACK\211\n\+ \\NUL\218\n\+ \\SOH\n\+ \\v\n\+ \\ETX\EOT4\SOH\DC2\EOT\211\n\+ \\b\ETB\n\+ \\193\SOH\n\+ \\EOT\EOT4\STX\NUL\DC2\EOT\217\n\+ \\EOT,\SUB\178\SOH\n\+ \The unique channel ID for the channel. The first 3 bytes are the block\n\+ \height, the next 3 the index within the block, and the last 2 bytes are the\n\+ \output index for the channel.\n\+ \\n\+ \\r\n\+ \\ENQ\EOT4\STX\NUL\ENQ\DC2\EOT\217\n\+ \\EOT\n\+ \\n\+ \\r\n\+ \\ENQ\EOT4\STX\NUL\SOH\DC2\EOT\217\n\+ \\v\DC2\n\+ \\r\n\+ \\ENQ\EOT4\STX\NUL\ETX\DC2\EOT\217\n\+ \\NAK\SYN\n\+ \\r\n\+ \\ENQ\EOT4\STX\NUL\b\DC2\EOT\217\n\+ \\ETB+\n\+ \\SO\n\+ \\ACK\EOT4\STX\NUL\b\ACK\DC2\EOT\217\n\+ \\CAN*\n\+ \\f\n\+ \\STX\EOT5\DC2\ACK\220\n\+ \\NUL\221\n\+ \\SOH\n\+ \\v\n\+ \\ETX\EOT5\SOH\DC2\EOT\220\n\+ \\b\SUB\n\+ \\f\n\+ \\STX\EOT6\DC2\ACK\222\n\+ \\NUL\242\n\+ \\SOH\n\+ \\v\n\+ \\ETX\EOT6\SOH\DC2\EOT\222\n\+ \\b\DC3\n\+ \\f\n\+ \\EOT\EOT6\STX\NUL\DC2\EOT\223\n\+ \\EOT\RS\n\+ \\r\n\+ \\ENQ\EOT6\STX\NUL\ENQ\DC2\EOT\223\n\+ \\EOT\n\+ \\n\+ \\r\n\+ \\ENQ\EOT6\STX\NUL\SOH\DC2\EOT\223\n\+ \\v\EM\n\+ \\r\n\+ \\ENQ\EOT6\STX\NUL\ETX\DC2\EOT\223\n\+ \\FS\GS\n\+ \\f\n\+ \\EOT\EOT6\STX\SOH\DC2\EOT\224\n\+ \\EOT\RS\n\+ \\r\n\+ \\ENQ\EOT6\STX\SOH\ENQ\DC2\EOT\224\n\+ \\EOT\n\+ \\n\+ \\r\n\+ \\ENQ\EOT6\STX\SOH\SOH\DC2\EOT\224\n\+ \\v\EM\n\+ \\r\n\+ \\ENQ\EOT6\STX\SOH\ETX\DC2\EOT\224\n\+ \\FS\GS\n\+ \\f\n\+ \\EOT\EOT6\STX\STX\DC2\EOT\225\n\+ \\EOT\RS\n\+ \\r\n\+ \\ENQ\EOT6\STX\STX\ENQ\DC2\EOT\225\n\+ \\EOT\n\+ \\n\+ \\r\n\+ \\ENQ\EOT6\STX\STX\SOH\DC2\EOT\225\n\+ \\v\EM\n\+ \\r\n\+ \\ENQ\EOT6\STX\STX\ETX\DC2\EOT\225\n\+ \\FS\GS\n\+ \\f\n\+ \\EOT\EOT6\STX\ETX\DC2\EOT\227\n\+ \\EOT\EM\n\+ \\r\n\+ \\ENQ\EOT6\STX\ETX\ENQ\DC2\EOT\227\n\+ \\EOT\n\+ \\n\+ \\r\n\+ \\ENQ\EOT6\STX\ETX\SOH\DC2\EOT\227\n\+ \\v\DC4\n\+ \\r\n\+ \\ENQ\EOT6\STX\ETX\ETX\DC2\EOT\227\n\+ \\ETB\CAN\n\+ \\f\n\+ \\EOT\EOT6\STX\EOT\DC2\EOT\228\n\+ \\EOT\FS\n\+ \\r\n\+ \\ENQ\EOT6\STX\EOT\ENQ\DC2\EOT\228\n\+ \\EOT\n\+ \\n\+ \\r\n\+ \\ENQ\EOT6\STX\EOT\SOH\DC2\EOT\228\n\+ \\v\ETB\n\+ \\r\n\+ \\ENQ\EOT6\STX\EOT\ETX\DC2\EOT\228\n\+ \\SUB\ESC\n\+ \\f\n\+ \\EOT\EOT6\STX\ENQ\DC2\EOT\230\n\+ \\EOT%\n\+ \\r\n\+ \\ENQ\EOT6\STX\ENQ\ENQ\DC2\EOT\230\n\+ \\EOT\t\n\+ \\r\n\+ \\ENQ\EOT6\STX\ENQ\SOH\DC2\EOT\230\n\+ \\n\+ \ \n\+ \\r\n\+ \\ENQ\EOT6\STX\ENQ\ETX\DC2\EOT\230\n\+ \#$\n\+ \\f\n\+ \\EOT\EOT6\STX\ACK\DC2\EOT\232\n\+ \\EOT \n\+ \\r\n\+ \\ENQ\EOT6\STX\ACK\ENQ\DC2\EOT\232\n\+ \\EOT\n\+ \\n\+ \\r\n\+ \\ENQ\EOT6\STX\ACK\SOH\DC2\EOT\232\n\+ \\v\ESC\n\+ \\r\n\+ \\ENQ\EOT6\STX\ACK\ETX\DC2\EOT\232\n\+ \\RS\US\n\+ \\f\n\+ \\EOT\EOT6\STX\a\DC2\EOT\233\n\+ \\EOT\US\n\+ \\r\n\+ \\ENQ\EOT6\STX\a\ENQ\DC2\EOT\233\n\+ \\EOT\t\n\+ \\r\n\+ \\ENQ\EOT6\STX\a\SOH\DC2\EOT\233\n\+ \\n\+ \\SUB\n\+ \\r\n\+ \\ENQ\EOT6\STX\a\ETX\DC2\EOT\233\n\+ \\GS\RS\n\+ \\f\n\+ \\EOT\EOT6\STX\b\DC2\EOT\234\n\+ \\EOT\US\n\+ \\r\n\+ \\ENQ\EOT6\STX\b\ENQ\DC2\EOT\234\n\+ \\EOT\t\n\+ \\r\n\+ \\ENQ\EOT6\STX\b\SOH\DC2\EOT\234\n\+ \\n\+ \\SUB\n\+ \\r\n\+ \\ENQ\EOT6\STX\b\ETX\DC2\EOT\234\n\+ \\GS\RS\n\+ \\f\n\+ \\EOT\EOT6\STX\t\DC2\EOT\235\n\+ \\EOT'\n\+ \\r\n\+ \\ENQ\EOT6\STX\t\ENQ\DC2\EOT\235\n\+ \\EOT\t\n\+ \\r\n\+ \\ENQ\EOT6\STX\t\SOH\DC2\EOT\235\n\+ \\n\+ \!\n\+ \\r\n\+ \\ENQ\EOT6\STX\t\ETX\DC2\EOT\235\n\+ \$&\n\+ \6\n\+ \\EOT\EOT6\STX\n\+ \\DC2\EOT\238\n\+ \\EOT!\SUB( The number of edges marked as zombies.\n\+ \\n\+ \\r\n\+ \\ENQ\EOT6\STX\n\+ \\ENQ\DC2\EOT\238\n\+ \\EOT\n\+ \\n\+ \\r\n\+ \\ENQ\EOT6\STX\n\+ \\SOH\DC2\EOT\238\n\+ \\v\ESC\n\+ \\r\n\+ \\ENQ\EOT6\STX\n\+ \\ETX\DC2\EOT\238\n\+ \\RS \n\+ \\f\n\+ \\STX\EOT7\DC2\ACK\244\n\+ \\NUL\245\n\+ \\SOH\n\+ \\v\n\+ \\ETX\EOT7\SOH\DC2\EOT\244\n\+ \\b\DC3\n\+ \\f\n\+ \\STX\EOT8\DC2\ACK\246\n\+ \\NUL\247\n\+ \\SOH\n\+ \\v\n\+ \\ETX\EOT8\SOH\DC2\EOT\246\n\+ \\b\DC4\n\+ \\f\n\+ \\STX\EOT9\DC2\ACK\249\n\+ \\NUL\250\n\+ \\SOH\n\+ \\v\n\+ \\ETX\EOT9\SOH\DC2\EOT\249\n\+ \\b!\n\+ \\f\n\+ \\STX\EOT:\DC2\ACK\251\n\+ \\NUL\255\n\+ \\SOH\n\+ \\v\n\+ \\ETX\EOT:\SOH\DC2\EOT\251\n\+ \\b\ESC\n\+ \\f\n\+ \\EOT\EOT:\STX\NUL\DC2\EOT\252\n\+ \\EOT)\n\+ \\r\n\+ \\ENQ\EOT:\STX\NUL\EOT\DC2\EOT\252\n\+ \\EOT\f\n\+ \\r\n\+ \\ENQ\EOT:\STX\NUL\ACK\DC2\EOT\252\n\+ \\r\ETB\n\+ \\r\n\+ \\ENQ\EOT:\STX\NUL\SOH\DC2\EOT\252\n\+ \\CAN$\n\+ \\r\n\+ \\ENQ\EOT:\STX\NUL\ETX\DC2\EOT\252\n\+ \'(\n\+ \\f\n\+ \\EOT\EOT:\STX\SOH\DC2\EOT\253\n\+ \\EOT3\n\+ \\r\n\+ \\ENQ\EOT:\STX\SOH\EOT\DC2\EOT\253\n\+ \\EOT\f\n\+ \\r\n\+ \\ENQ\EOT:\STX\SOH\ACK\DC2\EOT\253\n\+ \\r\RS\n\+ \\r\n\+ \\ENQ\EOT:\STX\SOH\SOH\DC2\EOT\253\n\+ \\US.\n\+ \\r\n\+ \\ENQ\EOT:\STX\SOH\ETX\DC2\EOT\253\n\+ \12\n\+ \\f\n\+ \\EOT\EOT:\STX\STX\DC2\EOT\254\n\+ \\EOT2\n\+ \\r\n\+ \\ENQ\EOT:\STX\STX\EOT\DC2\EOT\254\n\+ \\EOT\f\n\+ \\r\n\+ \\ENQ\EOT:\STX\STX\ACK\DC2\EOT\254\n\+ \\r \n\+ \\r\n\+ \\ENQ\EOT:\STX\STX\SOH\DC2\EOT\254\n\+ \!-\n\+ \\r\n\+ \\ENQ\EOT:\STX\STX\ETX\DC2\EOT\254\n\+ \01\n\+ \\f\n\+ \\STX\EOT;\DC2\ACK\128\v\NUL\150\v\SOH\n\+ \\v\n\+ \\ETX\EOT;\SOH\DC2\EOT\128\v\b\DC2\n\+ \/\n\+ \\EOT\EOT;\STX\NUL\DC2\EOT\132\v\EOT6\SUB!\n\+ \Deprecated, use node_addresses.\n\+ \\n\+ \\r\n\+ \\ENQ\EOT;\STX\NUL\EOT\DC2\EOT\132\v\EOT\f\n\+ \\r\n\+ \\ENQ\EOT;\STX\NUL\ENQ\DC2\EOT\132\v\r\DC3\n\+ \\r\n\+ \\ENQ\EOT;\STX\NUL\SOH\DC2\EOT\132\v\DC4\GS\n\+ \\r\n\+ \\ENQ\EOT;\STX\NUL\ETX\DC2\EOT\132\v !\n\+ \\r\n\+ \\ENQ\EOT;\STX\NUL\b\DC2\EOT\132\v\"5\n\+ \\SO\n\+ \\ACK\EOT;\STX\NUL\b\ETX\DC2\EOT\132\v#4\n\+ \\f\n\+ \\EOT\EOT;\STX\SOH\DC2\EOT\134\v\EOT\FS\n\+ \\r\n\+ \\ENQ\EOT;\STX\SOH\ENQ\DC2\EOT\134\v\EOT\n\+ \\n\+ \\r\n\+ \\ENQ\EOT;\STX\SOH\SOH\DC2\EOT\134\v\v\ETB\n\+ \\r\n\+ \\ENQ\EOT;\STX\SOH\ETX\DC2\EOT\134\v\SUB\ESC\n\+ \)\n\+ \\EOT\EOT;\STX\STX\DC2\EOT\139\v\EOT2\SUB\ESC\n\+ \Deprecated, use features.\n\+ \\n\+ \\r\n\+ \\ENQ\EOT;\STX\STX\ENQ\DC2\EOT\139\v\EOT\t\n\+ \\r\n\+ \\ENQ\EOT;\STX\STX\SOH\DC2\EOT\139\v\n\+ \\EM\n\+ \\r\n\+ \\ENQ\EOT;\STX\STX\ETX\DC2\EOT\139\v\FS\GS\n\+ \\r\n\+ \\ENQ\EOT;\STX\STX\b\DC2\EOT\139\v\RS1\n\+ \\SO\n\+ \\ACK\EOT;\STX\STX\b\ETX\DC2\EOT\139\v\US0\n\+ \\f\n\+ \\EOT\EOT;\STX\ETX\DC2\EOT\141\v\EOT\NAK\n\+ \\r\n\+ \\ENQ\EOT;\STX\ETX\ENQ\DC2\EOT\141\v\EOT\n\+ \\n\+ \\r\n\+ \\ENQ\EOT;\STX\ETX\SOH\DC2\EOT\141\v\v\DLE\n\+ \\r\n\+ \\ENQ\EOT;\STX\ETX\ETX\DC2\EOT\141\v\DC3\DC4\n\+ \\f\n\+ \\EOT\EOT;\STX\EOT\DC2\EOT\142\v\EOT\NAK\n\+ \\r\n\+ \\ENQ\EOT;\STX\EOT\ENQ\DC2\EOT\142\v\EOT\n\+ \\n\+ \\r\n\+ \\ENQ\EOT;\STX\EOT\SOH\DC2\EOT\142\v\v\DLE\n\+ \\r\n\+ \\ENQ\EOT;\STX\EOT\ETX\DC2\EOT\142\v\DC3\DC4\n\+ \\f\n\+ \\EOT\EOT;\STX\ENQ\DC2\EOT\143\v\EOT,\n\+ \\r\n\+ \\ENQ\EOT;\STX\ENQ\EOT\DC2\EOT\143\v\EOT\f\n\+ \\r\n\+ \\ENQ\EOT;\STX\ENQ\ACK\DC2\EOT\143\v\r\CAN\n\+ \\r\n\+ \\ENQ\EOT;\STX\ENQ\SOH\DC2\EOT\143\v\EM'\n\+ \\r\n\+ \\ENQ\EOT;\STX\ENQ\ETX\DC2\EOT\143\v*+\n\+ \k\n\+ \\EOT\EOT;\STX\ACK\DC2\EOT\149\v\EOT&\SUB]\n\+ \Features that the node has advertised in the init message, node\n\+ \announcements and invoices.\n\+ \\n\+ \\r\n\+ \\ENQ\EOT;\STX\ACK\ACK\DC2\EOT\149\v\EOT\CAN\n\+ \\r\n\+ \\ENQ\EOT;\STX\ACK\SOH\DC2\EOT\149\v\EM!\n\+ \\r\n\+ \\ENQ\EOT;\STX\ACK\ETX\DC2\EOT\149\v$%\n\+ \\f\n\+ \\STX\EOT<\DC2\ACK\151\v\NUL\167\v\SOH\n\+ \\v\n\+ \\ETX\EOT<\SOH\DC2\EOT\151\v\b\EM\n\+ \\193\SOH\n\+ \\EOT\EOT<\STX\NUL\DC2\EOT\157\v\EOT,\SUB\178\SOH\n\+ \The unique channel ID for the channel. The first 3 bytes are the block\n\+ \height, the next 3 the index within the block, and the last 2 bytes are the\n\+ \output index for the channel.\n\+ \\n\+ \\r\n\+ \\ENQ\EOT<\STX\NUL\ENQ\DC2\EOT\157\v\EOT\n\+ \\n\+ \\r\n\+ \\ENQ\EOT<\STX\NUL\SOH\DC2\EOT\157\v\v\DC2\n\+ \\r\n\+ \\ENQ\EOT<\STX\NUL\ETX\DC2\EOT\157\v\NAK\SYN\n\+ \\r\n\+ \\ENQ\EOT<\STX\NUL\b\DC2\EOT\157\v\ETB+\n\+ \\SO\n\+ \\ACK\EOT<\STX\NUL\b\ACK\DC2\EOT\157\v\CAN*\n\+ \\f\n\+ \\EOT\EOT<\STX\SOH\DC2\EOT\159\v\EOT \n\+ \\r\n\+ \\ENQ\EOT<\STX\SOH\ACK\DC2\EOT\159\v\EOT\DLE\n\+ \\r\n\+ \\ENQ\EOT<\STX\SOH\SOH\DC2\EOT\159\v\DC1\ESC\n\+ \\r\n\+ \\ENQ\EOT<\STX\SOH\ETX\DC2\EOT\159\v\RS\US\n\+ \\f\n\+ \\EOT\EOT<\STX\STX\DC2\EOT\161\v\EOT\ETB\n\+ \\r\n\+ \\ENQ\EOT<\STX\STX\ENQ\DC2\EOT\161\v\EOT\t\n\+ \\r\n\+ \\ENQ\EOT<\STX\STX\SOH\DC2\EOT\161\v\n\+ \\DC2\n\+ \\r\n\+ \\ENQ\EOT<\STX\STX\ETX\DC2\EOT\161\v\NAK\SYN\n\+ \\f\n\+ \\EOT\EOT<\STX\ETX\DC2\EOT\163\v\EOT%\n\+ \\r\n\+ \\ENQ\EOT<\STX\ETX\ACK\DC2\EOT\163\v\EOT\DC1\n\+ \\r\n\+ \\ENQ\EOT<\STX\ETX\SOH\DC2\EOT\163\v\DC2 \n\+ \\r\n\+ \\ENQ\EOT<\STX\ETX\ETX\DC2\EOT\163\v#$\n\+ \\f\n\+ \\EOT\EOT<\STX\EOT\DC2\EOT\165\v\EOT \n\+ \\r\n\+ \\ENQ\EOT<\STX\EOT\ENQ\DC2\EOT\165\v\EOT\n\+ \\n\+ \\r\n\+ \\ENQ\EOT<\STX\EOT\SOH\DC2\EOT\165\v\v\ESC\n\+ \\r\n\+ \\ENQ\EOT<\STX\EOT\ETX\DC2\EOT\165\v\RS\US\n\+ \\f\n\+ \\EOT\EOT<\STX\ENQ\DC2\EOT\166\v\EOT\US\n\+ \\r\n\+ \\ENQ\EOT<\STX\ENQ\ENQ\DC2\EOT\166\v\EOT\n\+ \\n\+ \\r\n\+ \\ENQ\EOT<\STX\ENQ\SOH\DC2\EOT\166\v\v\SUB\n\+ \\r\n\+ \\ENQ\EOT<\STX\ENQ\ETX\DC2\EOT\166\v\GS\RS\n\+ \\f\n\+ \\STX\EOT=\DC2\ACK\168\v\NUL\178\v\SOH\n\+ \\v\n\+ \\ETX\EOT=\SOH\DC2\EOT\168\v\b\ESC\n\+ \\193\SOH\n\+ \\EOT\EOT=\STX\NUL\DC2\EOT\174\v\EOT,\SUB\178\SOH\n\+ \The unique channel ID for the channel. The first 3 bytes are the block\n\+ \height, the next 3 the index within the block, and the last 2 bytes are the\n\+ \output index for the channel.\n\+ \\n\+ \\r\n\+ \\ENQ\EOT=\STX\NUL\ENQ\DC2\EOT\174\v\EOT\n\+ \\n\+ \\r\n\+ \\ENQ\EOT=\STX\NUL\SOH\DC2\EOT\174\v\v\DC2\n\+ \\r\n\+ \\ENQ\EOT=\STX\NUL\ETX\DC2\EOT\174\v\NAK\SYN\n\+ \\r\n\+ \\ENQ\EOT=\STX\NUL\b\DC2\EOT\174\v\ETB+\n\+ \\SO\n\+ \\ACK\EOT=\STX\NUL\b\ACK\DC2\EOT\174\v\CAN*\n\+ \\f\n\+ \\EOT\EOT=\STX\SOH\DC2\EOT\175\v\EOT\ETB\n\+ \\r\n\+ \\ENQ\EOT=\STX\SOH\ENQ\DC2\EOT\175\v\EOT\t\n\+ \\r\n\+ \\ENQ\EOT=\STX\SOH\SOH\DC2\EOT\175\v\n\+ \\DC2\n\+ \\r\n\+ \\ENQ\EOT=\STX\SOH\ETX\DC2\EOT\175\v\NAK\SYN\n\+ \\f\n\+ \\EOT\EOT=\STX\STX\DC2\EOT\176\v\EOT\GS\n\+ \\r\n\+ \\ENQ\EOT=\STX\STX\ENQ\DC2\EOT\176\v\EOT\n\+ \\n\+ \\r\n\+ \\ENQ\EOT=\STX\STX\SOH\DC2\EOT\176\v\v\CAN\n\+ \\r\n\+ \\ENQ\EOT=\STX\STX\ETX\DC2\EOT\176\v\ESC\FS\n\+ \\f\n\+ \\EOT\EOT=\STX\ETX\DC2\EOT\177\v\EOT \n\+ \\r\n\+ \\ENQ\EOT=\STX\ETX\ACK\DC2\EOT\177\v\EOT\DLE\n\+ \\r\n\+ \\ENQ\EOT=\STX\ETX\SOH\DC2\EOT\177\v\DC1\ESC\n\+ \\r\n\+ \\ENQ\EOT=\STX\ETX\ETX\DC2\EOT\177\v\RS\USb\ACKproto3"
@@ -0,0 +1,1787 @@+{- This file was auto-generated from lnrpc/ln0.proto by the proto-lens-protoc program. -}+{-# LANGUAGE ScopedTypeVariables, DataKinds, TypeFamilies, UndecidableInstances, GeneralizedNewtypeDeriving, MultiParamTypeClasses, FlexibleContexts, FlexibleInstances, PatternSynonyms, MagicHash, NoImplicitPrelude, BangPatterns, TypeApplications, OverloadedStrings, DerivingStrategies, DeriveGeneric#-}+{-# OPTIONS_GHC -Wno-unused-imports#-}+{-# OPTIONS_GHC -Wno-duplicate-exports#-}+{-# OPTIONS_GHC -Wno-dodgy-exports#-}+module Proto.Lnrpc.Ln0_Fields where+import qualified Data.ProtoLens.Runtime.Prelude as Prelude+import qualified Data.ProtoLens.Runtime.Data.Int as Data.Int+import qualified Data.ProtoLens.Runtime.Data.Monoid as Data.Monoid+import qualified Data.ProtoLens.Runtime.Data.Word as Data.Word+import qualified Data.ProtoLens.Runtime.Data.ProtoLens as Data.ProtoLens+import qualified Data.ProtoLens.Runtime.Data.ProtoLens.Encoding.Bytes as Data.ProtoLens.Encoding.Bytes+import qualified Data.ProtoLens.Runtime.Data.ProtoLens.Encoding.Growing as Data.ProtoLens.Encoding.Growing+import qualified Data.ProtoLens.Runtime.Data.ProtoLens.Encoding.Parser.Unsafe as Data.ProtoLens.Encoding.Parser.Unsafe+import qualified Data.ProtoLens.Runtime.Data.ProtoLens.Encoding.Wire as Data.ProtoLens.Encoding.Wire+import qualified Data.ProtoLens.Runtime.Data.ProtoLens.Field as Data.ProtoLens.Field+import qualified Data.ProtoLens.Runtime.Data.ProtoLens.Message.Enum as Data.ProtoLens.Message.Enum+import qualified Data.ProtoLens.Runtime.Data.ProtoLens.Service.Types as Data.ProtoLens.Service.Types+import qualified Data.ProtoLens.Runtime.Lens.Family2 as Lens.Family2+import qualified Data.ProtoLens.Runtime.Lens.Family2.Unchecked as Lens.Family2.Unchecked+import qualified Data.ProtoLens.Runtime.Data.Text as Data.Text+import qualified Data.ProtoLens.Runtime.Data.Map as Data.Map+import qualified Data.ProtoLens.Runtime.Data.ByteString as Data.ByteString+import qualified Data.ProtoLens.Runtime.Data.ByteString.Char8 as Data.ByteString.Char8+import qualified Data.ProtoLens.Runtime.Data.Text.Encoding as Data.Text.Encoding+import qualified Data.ProtoLens.Runtime.Data.Vector as Data.Vector+import qualified Data.ProtoLens.Runtime.Data.Vector.Generic as Data.Vector.Generic+import qualified Data.ProtoLens.Runtime.Data.Vector.Unboxed as Data.Vector.Unboxed+import qualified Data.ProtoLens.Runtime.Text.Read as Text.Read+accountBalance ::+ forall f s a.+ (Prelude.Functor f,+ Data.ProtoLens.Field.HasField s "accountBalance" a) =>+ Lens.Family2.LensLike' f s a+accountBalance = Data.ProtoLens.Field.field @"accountBalance"+active ::+ forall f s a.+ (Prelude.Functor f, Data.ProtoLens.Field.HasField s "active" a) =>+ Lens.Family2.LensLike' f s a+active = Data.ProtoLens.Field.field @"active"+activeChannel ::+ forall f s a.+ (Prelude.Functor f,+ Data.ProtoLens.Field.HasField s "activeChannel" a) =>+ Lens.Family2.LensLike' f s a+activeChannel = Data.ProtoLens.Field.field @"activeChannel"+addr ::+ forall f s a.+ (Prelude.Functor f, Data.ProtoLens.Field.HasField s "addr" a) =>+ Lens.Family2.LensLike' f s a+addr = Data.ProtoLens.Field.field @"addr"+addresses ::+ forall f s a.+ (Prelude.Functor f,+ Data.ProtoLens.Field.HasField s "addresses" a) =>+ Lens.Family2.LensLike' f s a+addresses = Data.ProtoLens.Field.field @"addresses"+advertisingNode ::+ forall f s a.+ (Prelude.Functor f,+ Data.ProtoLens.Field.HasField s "advertisingNode" a) =>+ Lens.Family2.LensLike' f s a+advertisingNode = Data.ProtoLens.Field.field @"advertisingNode"+alias ::+ forall f s a.+ (Prelude.Functor f, Data.ProtoLens.Field.HasField s "alias" a) =>+ Lens.Family2.LensLike' f s a+alias = Data.ProtoLens.Field.field @"alias"+amount ::+ forall f s a.+ (Prelude.Functor f, Data.ProtoLens.Field.HasField s "amount" a) =>+ Lens.Family2.LensLike' f s a+amount = Data.ProtoLens.Field.field @"amount"+amountSat ::+ forall f s a.+ (Prelude.Functor f,+ Data.ProtoLens.Field.HasField s "amountSat" a) =>+ Lens.Family2.LensLike' f s a+amountSat = Data.ProtoLens.Field.field @"amountSat"+ampRecord ::+ forall f s a.+ (Prelude.Functor f,+ Data.ProtoLens.Field.HasField s "ampRecord" a) =>+ Lens.Family2.LensLike' f s a+ampRecord = Data.ProtoLens.Field.field @"ampRecord"+amt ::+ forall f s a.+ (Prelude.Functor f, Data.ProtoLens.Field.HasField s "amt" a) =>+ Lens.Family2.LensLike' f s a+amt = Data.ProtoLens.Field.field @"amt"+amtMsat ::+ forall f s a.+ (Prelude.Functor f, Data.ProtoLens.Field.HasField s "amtMsat" a) =>+ Lens.Family2.LensLike' f s a+amtMsat = Data.ProtoLens.Field.field @"amtMsat"+amtToForward ::+ forall f s a.+ (Prelude.Functor f,+ Data.ProtoLens.Field.HasField s "amtToForward" a) =>+ Lens.Family2.LensLike' f s a+amtToForward = Data.ProtoLens.Field.field @"amtToForward"+amtToForwardMsat ::+ forall f s a.+ (Prelude.Functor f,+ Data.ProtoLens.Field.HasField s "amtToForwardMsat" a) =>+ Lens.Family2.LensLike' f s a+amtToForwardMsat = Data.ProtoLens.Field.field @"amtToForwardMsat"+anchor ::+ forall f s a.+ (Prelude.Functor f, Data.ProtoLens.Field.HasField s "anchor" a) =>+ Lens.Family2.LensLike' f s a+anchor = Data.ProtoLens.Field.field @"anchor"+avgChannelSize ::+ forall f s a.+ (Prelude.Functor f,+ Data.ProtoLens.Field.HasField s "avgChannelSize" a) =>+ Lens.Family2.LensLike' f s a+avgChannelSize = Data.ProtoLens.Field.field @"avgChannelSize"+avgOutDegree ::+ forall f s a.+ (Prelude.Functor f,+ Data.ProtoLens.Field.HasField s "avgOutDegree" a) =>+ Lens.Family2.LensLike' f s a+avgOutDegree = Data.ProtoLens.Field.field @"avgOutDegree"+balance ::+ forall f s a.+ (Prelude.Functor f, Data.ProtoLens.Field.HasField s "balance" a) =>+ Lens.Family2.LensLike' f s a+balance = Data.ProtoLens.Field.field @"balance"+basePsbt ::+ forall f s a.+ (Prelude.Functor f,+ Data.ProtoLens.Field.HasField s "basePsbt" a) =>+ Lens.Family2.LensLike' f s a+basePsbt = Data.ProtoLens.Field.field @"basePsbt"+betweennessCentrality ::+ forall f s a.+ (Prelude.Functor f,+ Data.ProtoLens.Field.HasField s "betweennessCentrality" a) =>+ Lens.Family2.LensLike' f s a+betweennessCentrality+ = Data.ProtoLens.Field.field @"betweennessCentrality"+blocksTilMaturity ::+ forall f s a.+ (Prelude.Functor f,+ Data.ProtoLens.Field.HasField s "blocksTilMaturity" a) =>+ Lens.Family2.LensLike' f s a+blocksTilMaturity = Data.ProtoLens.Field.field @"blocksTilMaturity"+capacity ::+ forall f s a.+ (Prelude.Functor f,+ Data.ProtoLens.Field.HasField s "capacity" a) =>+ Lens.Family2.LensLike' f s a+capacity = Data.ProtoLens.Field.field @"capacity"+chainHash ::+ forall f s a.+ (Prelude.Functor f,+ Data.ProtoLens.Field.HasField s "chainHash" a) =>+ Lens.Family2.LensLike' f s a+chainHash = Data.ProtoLens.Field.field @"chainHash"+chanCapacity ::+ forall f s a.+ (Prelude.Functor f,+ Data.ProtoLens.Field.HasField s "chanCapacity" a) =>+ Lens.Family2.LensLike' f s a+chanCapacity = Data.ProtoLens.Field.field @"chanCapacity"+chanId ::+ forall f s a.+ (Prelude.Functor f, Data.ProtoLens.Field.HasField s "chanId" a) =>+ Lens.Family2.LensLike' f s a+chanId = Data.ProtoLens.Field.field @"chanId"+chanPoint ::+ forall f s a.+ (Prelude.Functor f,+ Data.ProtoLens.Field.HasField s "chanPoint" a) =>+ Lens.Family2.LensLike' f s a+chanPoint = Data.ProtoLens.Field.field @"chanPoint"+chanPointShim ::+ forall f s a.+ (Prelude.Functor f,+ Data.ProtoLens.Field.HasField s "chanPointShim" a) =>+ Lens.Family2.LensLike' f s a+chanPointShim = Data.ProtoLens.Field.field @"chanPointShim"+chanReserveSat ::+ forall f s a.+ (Prelude.Functor f,+ Data.ProtoLens.Field.HasField s "chanReserveSat" a) =>+ Lens.Family2.LensLike' f s a+chanReserveSat = Data.ProtoLens.Field.field @"chanReserveSat"+chanStatusFlags ::+ forall f s a.+ (Prelude.Functor f,+ Data.ProtoLens.Field.HasField s "chanStatusFlags" a) =>+ Lens.Family2.LensLike' f s a+chanStatusFlags = Data.ProtoLens.Field.field @"chanStatusFlags"+channel ::+ forall f s a.+ (Prelude.Functor f, Data.ProtoLens.Field.HasField s "channel" a) =>+ Lens.Family2.LensLike' f s a+channel = Data.ProtoLens.Field.field @"channel"+channelId ::+ forall f s a.+ (Prelude.Functor f,+ Data.ProtoLens.Field.HasField s "channelId" a) =>+ Lens.Family2.LensLike' f s a+channelId = Data.ProtoLens.Field.field @"channelId"+channelPoint ::+ forall f s a.+ (Prelude.Functor f,+ Data.ProtoLens.Field.HasField s "channelPoint" a) =>+ Lens.Family2.LensLike' f s a+channelPoint = Data.ProtoLens.Field.field @"channelPoint"+channelUpdates ::+ forall f s a.+ (Prelude.Functor f,+ Data.ProtoLens.Field.HasField s "channelUpdates" a) =>+ Lens.Family2.LensLike' f s a+channelUpdates = Data.ProtoLens.Field.field @"channelUpdates"+channels ::+ forall f s a.+ (Prelude.Functor f,+ Data.ProtoLens.Field.HasField s "channels" a) =>+ Lens.Family2.LensLike' f s a+channels = Data.ProtoLens.Field.field @"channels"+childIndex ::+ forall f s a.+ (Prelude.Functor f,+ Data.ProtoLens.Field.HasField s "childIndex" a) =>+ Lens.Family2.LensLike' f s a+childIndex = Data.ProtoLens.Field.field @"childIndex"+closeAddress ::+ forall f s a.+ (Prelude.Functor f,+ Data.ProtoLens.Field.HasField s "closeAddress" a) =>+ Lens.Family2.LensLike' f s a+closeAddress = Data.ProtoLens.Field.field @"closeAddress"+closeHeight ::+ forall f s a.+ (Prelude.Functor f,+ Data.ProtoLens.Field.HasField s "closeHeight" a) =>+ Lens.Family2.LensLike' f s a+closeHeight = Data.ProtoLens.Field.field @"closeHeight"+closeInitiator ::+ forall f s a.+ (Prelude.Functor f,+ Data.ProtoLens.Field.HasField s "closeInitiator" a) =>+ Lens.Family2.LensLike' f s a+closeInitiator = Data.ProtoLens.Field.field @"closeInitiator"+closeType ::+ forall f s a.+ (Prelude.Functor f,+ Data.ProtoLens.Field.HasField s "closeType" a) =>+ Lens.Family2.LensLike' f s a+closeType = Data.ProtoLens.Field.field @"closeType"+closedChannel ::+ forall f s a.+ (Prelude.Functor f,+ Data.ProtoLens.Field.HasField s "closedChannel" a) =>+ Lens.Family2.LensLike' f s a+closedChannel = Data.ProtoLens.Field.field @"closedChannel"+closedChans ::+ forall f s a.+ (Prelude.Functor f,+ Data.ProtoLens.Field.HasField s "closedChans" a) =>+ Lens.Family2.LensLike' f s a+closedChans = Data.ProtoLens.Field.field @"closedChans"+closedHeight ::+ forall f s a.+ (Prelude.Functor f,+ Data.ProtoLens.Field.HasField s "closedHeight" a) =>+ Lens.Family2.LensLike' f s a+closedHeight = Data.ProtoLens.Field.field @"closedHeight"+closingTxHash ::+ forall f s a.+ (Prelude.Functor f,+ Data.ProtoLens.Field.HasField s "closingTxHash" a) =>+ Lens.Family2.LensLike' f s a+closingTxHash = Data.ProtoLens.Field.field @"closingTxHash"+closingTxid ::+ forall f s a.+ (Prelude.Functor f,+ Data.ProtoLens.Field.HasField s "closingTxid" a) =>+ Lens.Family2.LensLike' f s a+closingTxid = Data.ProtoLens.Field.field @"closingTxid"+cltvExpiryDelta ::+ forall f s a.+ (Prelude.Functor f,+ Data.ProtoLens.Field.HasField s "cltvExpiryDelta" a) =>+ Lens.Family2.LensLike' f s a+cltvExpiryDelta = Data.ProtoLens.Field.field @"cltvExpiryDelta"+cltvLimit ::+ forall f s a.+ (Prelude.Functor f,+ Data.ProtoLens.Field.HasField s "cltvLimit" a) =>+ Lens.Family2.LensLike' f s a+cltvLimit = Data.ProtoLens.Field.field @"cltvLimit"+color ::+ forall f s a.+ (Prelude.Functor f, Data.ProtoLens.Field.HasField s "color" a) =>+ Lens.Family2.LensLike' f s a+color = Data.ProtoLens.Field.field @"color"+commitFee ::+ forall f s a.+ (Prelude.Functor f,+ Data.ProtoLens.Field.HasField s "commitFee" a) =>+ Lens.Family2.LensLike' f s a+commitFee = Data.ProtoLens.Field.field @"commitFee"+commitWeight ::+ forall f s a.+ (Prelude.Functor f,+ Data.ProtoLens.Field.HasField s "commitWeight" a) =>+ Lens.Family2.LensLike' f s a+commitWeight = Data.ProtoLens.Field.field @"commitWeight"+commitmentType ::+ forall f s a.+ (Prelude.Functor f,+ Data.ProtoLens.Field.HasField s "commitmentType" a) =>+ Lens.Family2.LensLike' f s a+commitmentType = Data.ProtoLens.Field.field @"commitmentType"+commitments ::+ forall f s a.+ (Prelude.Functor f,+ Data.ProtoLens.Field.HasField s "commitments" a) =>+ Lens.Family2.LensLike' f s a+commitments = Data.ProtoLens.Field.field @"commitments"+confirmationHeight ::+ forall f s a.+ (Prelude.Functor f,+ Data.ProtoLens.Field.HasField s "confirmationHeight" a) =>+ Lens.Family2.LensLike' f s a+confirmationHeight+ = Data.ProtoLens.Field.field @"confirmationHeight"+confirmedBalance ::+ forall f s a.+ (Prelude.Functor f,+ Data.ProtoLens.Field.HasField s "confirmedBalance" a) =>+ Lens.Family2.LensLike' f s a+confirmedBalance = Data.ProtoLens.Field.field @"confirmedBalance"+connectingNode ::+ forall f s a.+ (Prelude.Functor f,+ Data.ProtoLens.Field.HasField s "connectingNode" a) =>+ Lens.Family2.LensLike' f s a+connectingNode = Data.ProtoLens.Field.field @"connectingNode"+csvDelay ::+ forall f s a.+ (Prelude.Functor f,+ Data.ProtoLens.Field.HasField s "csvDelay" a) =>+ Lens.Family2.LensLike' f s a+csvDelay = Data.ProtoLens.Field.field @"csvDelay"+customRecords ::+ forall f s a.+ (Prelude.Functor f,+ Data.ProtoLens.Field.HasField s "customRecords" a) =>+ Lens.Family2.LensLike' f s a+customRecords = Data.ProtoLens.Field.field @"customRecords"+destCustomRecords ::+ forall f s a.+ (Prelude.Functor f,+ Data.ProtoLens.Field.HasField s "destCustomRecords" a) =>+ Lens.Family2.LensLike' f s a+destCustomRecords = Data.ProtoLens.Field.field @"destCustomRecords"+destFeatures ::+ forall f s a.+ (Prelude.Functor f,+ Data.ProtoLens.Field.HasField s "destFeatures" a) =>+ Lens.Family2.LensLike' f s a+destFeatures = Data.ProtoLens.Field.field @"destFeatures"+directionReverse ::+ forall f s a.+ (Prelude.Functor f,+ Data.ProtoLens.Field.HasField s "directionReverse" a) =>+ Lens.Family2.LensLike' f s a+directionReverse = Data.ProtoLens.Field.field @"directionReverse"+disabled ::+ forall f s a.+ (Prelude.Functor f,+ Data.ProtoLens.Field.HasField s "disabled" a) =>+ Lens.Family2.LensLike' f s a+disabled = Data.ProtoLens.Field.field @"disabled"+dustLimitSat ::+ forall f s a.+ (Prelude.Functor f,+ Data.ProtoLens.Field.HasField s "dustLimitSat" a) =>+ Lens.Family2.LensLike' f s a+dustLimitSat = Data.ProtoLens.Field.field @"dustLimitSat"+edges ::+ forall f s a.+ (Prelude.Functor f, Data.ProtoLens.Field.HasField s "edges" a) =>+ Lens.Family2.LensLike' f s a+edges = Data.ProtoLens.Field.field @"edges"+expirationHeight ::+ forall f s a.+ (Prelude.Functor f,+ Data.ProtoLens.Field.HasField s "expirationHeight" a) =>+ Lens.Family2.LensLike' f s a+expirationHeight = Data.ProtoLens.Field.field @"expirationHeight"+expiry ::+ forall f s a.+ (Prelude.Functor f, Data.ProtoLens.Field.HasField s "expiry" a) =>+ Lens.Family2.LensLike' f s a+expiry = Data.ProtoLens.Field.field @"expiry"+features ::+ forall f s a.+ (Prelude.Functor f,+ Data.ProtoLens.Field.HasField s "features" a) =>+ Lens.Family2.LensLike' f s a+features = Data.ProtoLens.Field.field @"features"+fee ::+ forall f s a.+ (Prelude.Functor f, Data.ProtoLens.Field.HasField s "fee" a) =>+ Lens.Family2.LensLike' f s a+fee = Data.ProtoLens.Field.field @"fee"+feeBaseMsat ::+ forall f s a.+ (Prelude.Functor f,+ Data.ProtoLens.Field.HasField s "feeBaseMsat" a) =>+ Lens.Family2.LensLike' f s a+feeBaseMsat = Data.ProtoLens.Field.field @"feeBaseMsat"+feeLimit ::+ forall f s a.+ (Prelude.Functor f,+ Data.ProtoLens.Field.HasField s "feeLimit" a) =>+ Lens.Family2.LensLike' f s a+feeLimit = Data.ProtoLens.Field.field @"feeLimit"+feeMsat ::+ forall f s a.+ (Prelude.Functor f, Data.ProtoLens.Field.HasField s "feeMsat" a) =>+ Lens.Family2.LensLike' f s a+feeMsat = Data.ProtoLens.Field.field @"feeMsat"+feePerKw ::+ forall f s a.+ (Prelude.Functor f,+ Data.ProtoLens.Field.HasField s "feePerKw" a) =>+ Lens.Family2.LensLike' f s a+feePerKw = Data.ProtoLens.Field.field @"feePerKw"+feeProportionalMillionths ::+ forall f s a.+ (Prelude.Functor f,+ Data.ProtoLens.Field.HasField s "feeProportionalMillionths" a) =>+ Lens.Family2.LensLike' f s a+feeProportionalMillionths+ = Data.ProtoLens.Field.field @"feeProportionalMillionths"+feeRateMilliMsat ::+ forall f s a.+ (Prelude.Functor f,+ Data.ProtoLens.Field.HasField s "feeRateMilliMsat" a) =>+ Lens.Family2.LensLike' f s a+feeRateMilliMsat = Data.ProtoLens.Field.field @"feeRateMilliMsat"+finalCltvDelta ::+ forall f s a.+ (Prelude.Functor f,+ Data.ProtoLens.Field.HasField s "finalCltvDelta" a) =>+ Lens.Family2.LensLike' f s a+finalCltvDelta = Data.ProtoLens.Field.field @"finalCltvDelta"+finalRawTx ::+ forall f s a.+ (Prelude.Functor f,+ Data.ProtoLens.Field.HasField s "finalRawTx" a) =>+ Lens.Family2.LensLike' f s a+finalRawTx = Data.ProtoLens.Field.field @"finalRawTx"+fixed ::+ forall f s a.+ (Prelude.Functor f, Data.ProtoLens.Field.HasField s "fixed" a) =>+ Lens.Family2.LensLike' f s a+fixed = Data.ProtoLens.Field.field @"fixed"+fixedMsat ::+ forall f s a.+ (Prelude.Functor f,+ Data.ProtoLens.Field.HasField s "fixedMsat" a) =>+ Lens.Family2.LensLike' f s a+fixedMsat = Data.ProtoLens.Field.field @"fixedMsat"+forwardingChannel ::+ forall f s a.+ (Prelude.Functor f,+ Data.ProtoLens.Field.HasField s "forwardingChannel" a) =>+ Lens.Family2.LensLike' f s a+forwardingChannel = Data.ProtoLens.Field.field @"forwardingChannel"+forwardingHtlcIndex ::+ forall f s a.+ (Prelude.Functor f,+ Data.ProtoLens.Field.HasField s "forwardingHtlcIndex" a) =>+ Lens.Family2.LensLike' f s a+forwardingHtlcIndex+ = Data.ProtoLens.Field.field @"forwardingHtlcIndex"+from ::+ forall f s a.+ (Prelude.Functor f, Data.ProtoLens.Field.HasField s "from" a) =>+ Lens.Family2.LensLike' f s a+from = Data.ProtoLens.Field.field @"from"+fullyResolvedChannel ::+ forall f s a.+ (Prelude.Functor f,+ Data.ProtoLens.Field.HasField s "fullyResolvedChannel" a) =>+ Lens.Family2.LensLike' f s a+fullyResolvedChannel+ = Data.ProtoLens.Field.field @"fullyResolvedChannel"+fundedPsbt ::+ forall f s a.+ (Prelude.Functor f,+ Data.ProtoLens.Field.HasField s "fundedPsbt" a) =>+ Lens.Family2.LensLike' f s a+fundedPsbt = Data.ProtoLens.Field.field @"fundedPsbt"+fundingTxidBytes ::+ forall f s a.+ (Prelude.Functor f,+ Data.ProtoLens.Field.HasField s "fundingTxidBytes" a) =>+ Lens.Family2.LensLike' f s a+fundingTxidBytes = Data.ProtoLens.Field.field @"fundingTxidBytes"+fundingTxidStr ::+ forall f s a.+ (Prelude.Functor f,+ Data.ProtoLens.Field.HasField s "fundingTxidStr" a) =>+ Lens.Family2.LensLike' f s a+fundingTxidStr = Data.ProtoLens.Field.field @"fundingTxidStr"+globalFeatures ::+ forall f s a.+ (Prelude.Functor f,+ Data.ProtoLens.Field.HasField s "globalFeatures" a) =>+ Lens.Family2.LensLike' f s a+globalFeatures = Data.ProtoLens.Field.field @"globalFeatures"+graphDiameter ::+ forall f s a.+ (Prelude.Functor f,+ Data.ProtoLens.Field.HasField s "graphDiameter" a) =>+ Lens.Family2.LensLike' f s a+graphDiameter = Data.ProtoLens.Field.field @"graphDiameter"+hashLock ::+ forall f s a.+ (Prelude.Functor f,+ Data.ProtoLens.Field.HasField s "hashLock" a) =>+ Lens.Family2.LensLike' f s a+hashLock = Data.ProtoLens.Field.field @"hashLock"+hopHints ::+ forall f s a.+ (Prelude.Functor f,+ Data.ProtoLens.Field.HasField s "hopHints" a) =>+ Lens.Family2.LensLike' f s a+hopHints = Data.ProtoLens.Field.field @"hopHints"+hops ::+ forall f s a.+ (Prelude.Functor f, Data.ProtoLens.Field.HasField s "hops" a) =>+ Lens.Family2.LensLike' f s a+hops = Data.ProtoLens.Field.field @"hops"+htlcIndex ::+ forall f s a.+ (Prelude.Functor f,+ Data.ProtoLens.Field.HasField s "htlcIndex" a) =>+ Lens.Family2.LensLike' f s a+htlcIndex = Data.ProtoLens.Field.field @"htlcIndex"+identityKey ::+ forall f s a.+ (Prelude.Functor f,+ Data.ProtoLens.Field.HasField s "identityKey" a) =>+ Lens.Family2.LensLike' f s a+identityKey = Data.ProtoLens.Field.field @"identityKey"+ignoredEdges ::+ forall f s a.+ (Prelude.Functor f,+ Data.ProtoLens.Field.HasField s "ignoredEdges" a) =>+ Lens.Family2.LensLike' f s a+ignoredEdges = Data.ProtoLens.Field.field @"ignoredEdges"+ignoredNodes ::+ forall f s a.+ (Prelude.Functor f,+ Data.ProtoLens.Field.HasField s "ignoredNodes" a) =>+ Lens.Family2.LensLike' f s a+ignoredNodes = Data.ProtoLens.Field.field @"ignoredNodes"+ignoredPairs ::+ forall f s a.+ (Prelude.Functor f,+ Data.ProtoLens.Field.HasField s "ignoredPairs" a) =>+ Lens.Family2.LensLike' f s a+ignoredPairs = Data.ProtoLens.Field.field @"ignoredPairs"+inactiveChannel ::+ forall f s a.+ (Prelude.Functor f,+ Data.ProtoLens.Field.HasField s "inactiveChannel" a) =>+ Lens.Family2.LensLike' f s a+inactiveChannel = Data.ProtoLens.Field.field @"inactiveChannel"+includeChannels ::+ forall f s a.+ (Prelude.Functor f,+ Data.ProtoLens.Field.HasField s "includeChannels" a) =>+ Lens.Family2.LensLike' f s a+includeChannels = Data.ProtoLens.Field.field @"includeChannels"+includeUnannounced ::+ forall f s a.+ (Prelude.Functor f,+ Data.ProtoLens.Field.HasField s "includeUnannounced" a) =>+ Lens.Family2.LensLike' f s a+includeUnannounced+ = Data.ProtoLens.Field.field @"includeUnannounced"+incoming ::+ forall f s a.+ (Prelude.Functor f,+ Data.ProtoLens.Field.HasField s "incoming" a) =>+ Lens.Family2.LensLike' f s a+incoming = Data.ProtoLens.Field.field @"incoming"+initiator ::+ forall f s a.+ (Prelude.Functor f,+ Data.ProtoLens.Field.HasField s "initiator" a) =>+ Lens.Family2.LensLike' f s a+initiator = Data.ProtoLens.Field.field @"initiator"+isKnown ::+ forall f s a.+ (Prelude.Functor f, Data.ProtoLens.Field.HasField s "isKnown" a) =>+ Lens.Family2.LensLike' f s a+isKnown = Data.ProtoLens.Field.field @"isKnown"+isRequired ::+ forall f s a.+ (Prelude.Functor f,+ Data.ProtoLens.Field.HasField s "isRequired" a) =>+ Lens.Family2.LensLike' f s a+isRequired = Data.ProtoLens.Field.field @"isRequired"+key ::+ forall f s a.+ (Prelude.Functor f, Data.ProtoLens.Field.HasField s "key" a) =>+ Lens.Family2.LensLike' f s a+key = Data.ProtoLens.Field.field @"key"+keyFamily ::+ forall f s a.+ (Prelude.Functor f,+ Data.ProtoLens.Field.HasField s "keyFamily" a) =>+ Lens.Family2.LensLike' f s a+keyFamily = Data.ProtoLens.Field.field @"keyFamily"+keyIndex ::+ forall f s a.+ (Prelude.Functor f,+ Data.ProtoLens.Field.HasField s "keyIndex" a) =>+ Lens.Family2.LensLike' f s a+keyIndex = Data.ProtoLens.Field.field @"keyIndex"+keyLoc ::+ forall f s a.+ (Prelude.Functor f, Data.ProtoLens.Field.HasField s "keyLoc" a) =>+ Lens.Family2.LensLike' f s a+keyLoc = Data.ProtoLens.Field.field @"keyLoc"+lastHopPubkey ::+ forall f s a.+ (Prelude.Functor f,+ Data.ProtoLens.Field.HasField s "lastHopPubkey" a) =>+ Lens.Family2.LensLike' f s a+lastHopPubkey = Data.ProtoLens.Field.field @"lastHopPubkey"+lastUpdate ::+ forall f s a.+ (Prelude.Functor f,+ Data.ProtoLens.Field.HasField s "lastUpdate" a) =>+ Lens.Family2.LensLike' f s a+lastUpdate = Data.ProtoLens.Field.field @"lastUpdate"+lifetime ::+ forall f s a.+ (Prelude.Functor f,+ Data.ProtoLens.Field.HasField s "lifetime" a) =>+ Lens.Family2.LensLike' f s a+lifetime = Data.ProtoLens.Field.field @"lifetime"+limboBalance ::+ forall f s a.+ (Prelude.Functor f,+ Data.ProtoLens.Field.HasField s "limboBalance" a) =>+ Lens.Family2.LensLike' f s a+limboBalance = Data.ProtoLens.Field.field @"limboBalance"+localBalance ::+ forall f s a.+ (Prelude.Functor f,+ Data.ProtoLens.Field.HasField s "localBalance" a) =>+ Lens.Family2.LensLike' f s a+localBalance = Data.ProtoLens.Field.field @"localBalance"+localChanReserveSat ::+ forall f s a.+ (Prelude.Functor f,+ Data.ProtoLens.Field.HasField s "localChanReserveSat" a) =>+ Lens.Family2.LensLike' f s a+localChanReserveSat+ = Data.ProtoLens.Field.field @"localChanReserveSat"+localCommitFeeSat ::+ forall f s a.+ (Prelude.Functor f,+ Data.ProtoLens.Field.HasField s "localCommitFeeSat" a) =>+ Lens.Family2.LensLike' f s a+localCommitFeeSat = Data.ProtoLens.Field.field @"localCommitFeeSat"+localConstraints ::+ forall f s a.+ (Prelude.Functor f,+ Data.ProtoLens.Field.HasField s "localConstraints" a) =>+ Lens.Family2.LensLike' f s a+localConstraints = Data.ProtoLens.Field.field @"localConstraints"+localKey ::+ forall f s a.+ (Prelude.Functor f,+ Data.ProtoLens.Field.HasField s "localKey" a) =>+ Lens.Family2.LensLike' f s a+localKey = Data.ProtoLens.Field.field @"localKey"+localTxid ::+ forall f s a.+ (Prelude.Functor f,+ Data.ProtoLens.Field.HasField s "localTxid" a) =>+ Lens.Family2.LensLike' f s a+localTxid = Data.ProtoLens.Field.field @"localTxid"+maturityHeight ::+ forall f s a.+ (Prelude.Functor f,+ Data.ProtoLens.Field.HasField s "maturityHeight" a) =>+ Lens.Family2.LensLike' f s a+maturityHeight = Data.ProtoLens.Field.field @"maturityHeight"+maxAcceptedHtlcs ::+ forall f s a.+ (Prelude.Functor f,+ Data.ProtoLens.Field.HasField s "maxAcceptedHtlcs" a) =>+ Lens.Family2.LensLike' f s a+maxAcceptedHtlcs = Data.ProtoLens.Field.field @"maxAcceptedHtlcs"+maxChannelSize ::+ forall f s a.+ (Prelude.Functor f,+ Data.ProtoLens.Field.HasField s "maxChannelSize" a) =>+ Lens.Family2.LensLike' f s a+maxChannelSize = Data.ProtoLens.Field.field @"maxChannelSize"+maxHtlcMsat ::+ forall f s a.+ (Prelude.Functor f,+ Data.ProtoLens.Field.HasField s "maxHtlcMsat" a) =>+ Lens.Family2.LensLike' f s a+maxHtlcMsat = Data.ProtoLens.Field.field @"maxHtlcMsat"+maxOutDegree ::+ forall f s a.+ (Prelude.Functor f,+ Data.ProtoLens.Field.HasField s "maxOutDegree" a) =>+ Lens.Family2.LensLike' f s a+maxOutDegree = Data.ProtoLens.Field.field @"maxOutDegree"+maxPendingAmtMsat ::+ forall f s a.+ (Prelude.Functor f,+ Data.ProtoLens.Field.HasField s "maxPendingAmtMsat" a) =>+ Lens.Family2.LensLike' f s a+maxPendingAmtMsat = Data.ProtoLens.Field.field @"maxPendingAmtMsat"+maybe'activeChannel ::+ forall f s a.+ (Prelude.Functor f,+ Data.ProtoLens.Field.HasField s "maybe'activeChannel" a) =>+ Lens.Family2.LensLike' f s a+maybe'activeChannel+ = Data.ProtoLens.Field.field @"maybe'activeChannel"+maybe'ampRecord ::+ forall f s a.+ (Prelude.Functor f,+ Data.ProtoLens.Field.HasField s "maybe'ampRecord" a) =>+ Lens.Family2.LensLike' f s a+maybe'ampRecord = Data.ProtoLens.Field.field @"maybe'ampRecord"+maybe'chanPoint ::+ forall f s a.+ (Prelude.Functor f,+ Data.ProtoLens.Field.HasField s "maybe'chanPoint" a) =>+ Lens.Family2.LensLike' f s a+maybe'chanPoint = Data.ProtoLens.Field.field @"maybe'chanPoint"+maybe'chanPointShim ::+ forall f s a.+ (Prelude.Functor f,+ Data.ProtoLens.Field.HasField s "maybe'chanPointShim" a) =>+ Lens.Family2.LensLike' f s a+maybe'chanPointShim+ = Data.ProtoLens.Field.field @"maybe'chanPointShim"+maybe'channel ::+ forall f s a.+ (Prelude.Functor f,+ Data.ProtoLens.Field.HasField s "maybe'channel" a) =>+ Lens.Family2.LensLike' f s a+maybe'channel = Data.ProtoLens.Field.field @"maybe'channel"+maybe'closedChannel ::+ forall f s a.+ (Prelude.Functor f,+ Data.ProtoLens.Field.HasField s "maybe'closedChannel" a) =>+ Lens.Family2.LensLike' f s a+maybe'closedChannel+ = Data.ProtoLens.Field.field @"maybe'closedChannel"+maybe'commitments ::+ forall f s a.+ (Prelude.Functor f,+ Data.ProtoLens.Field.HasField s "maybe'commitments" a) =>+ Lens.Family2.LensLike' f s a+maybe'commitments = Data.ProtoLens.Field.field @"maybe'commitments"+maybe'feeLimit ::+ forall f s a.+ (Prelude.Functor f,+ Data.ProtoLens.Field.HasField s "maybe'feeLimit" a) =>+ Lens.Family2.LensLike' f s a+maybe'feeLimit = Data.ProtoLens.Field.field @"maybe'feeLimit"+maybe'fixed ::+ forall f s a.+ (Prelude.Functor f,+ Data.ProtoLens.Field.HasField s "maybe'fixed" a) =>+ Lens.Family2.LensLike' f s a+maybe'fixed = Data.ProtoLens.Field.field @"maybe'fixed"+maybe'fixedMsat ::+ forall f s a.+ (Prelude.Functor f,+ Data.ProtoLens.Field.HasField s "maybe'fixedMsat" a) =>+ Lens.Family2.LensLike' f s a+maybe'fixedMsat = Data.ProtoLens.Field.field @"maybe'fixedMsat"+maybe'fullyResolvedChannel ::+ forall f s a.+ (Prelude.Functor f,+ Data.ProtoLens.Field.HasField s "maybe'fullyResolvedChannel" a) =>+ Lens.Family2.LensLike' f s a+maybe'fullyResolvedChannel+ = Data.ProtoLens.Field.field @"maybe'fullyResolvedChannel"+maybe'fundingTxid ::+ forall f s a.+ (Prelude.Functor f,+ Data.ProtoLens.Field.HasField s "maybe'fundingTxid" a) =>+ Lens.Family2.LensLike' f s a+maybe'fundingTxid = Data.ProtoLens.Field.field @"maybe'fundingTxid"+maybe'fundingTxidBytes ::+ forall f s a.+ (Prelude.Functor f,+ Data.ProtoLens.Field.HasField s "maybe'fundingTxidBytes" a) =>+ Lens.Family2.LensLike' f s a+maybe'fundingTxidBytes+ = Data.ProtoLens.Field.field @"maybe'fundingTxidBytes"+maybe'fundingTxidStr ::+ forall f s a.+ (Prelude.Functor f,+ Data.ProtoLens.Field.HasField s "maybe'fundingTxidStr" a) =>+ Lens.Family2.LensLike' f s a+maybe'fundingTxidStr+ = Data.ProtoLens.Field.field @"maybe'fundingTxidStr"+maybe'inactiveChannel ::+ forall f s a.+ (Prelude.Functor f,+ Data.ProtoLens.Field.HasField s "maybe'inactiveChannel" a) =>+ Lens.Family2.LensLike' f s a+maybe'inactiveChannel+ = Data.ProtoLens.Field.field @"maybe'inactiveChannel"+maybe'keyLoc ::+ forall f s a.+ (Prelude.Functor f,+ Data.ProtoLens.Field.HasField s "maybe'keyLoc" a) =>+ Lens.Family2.LensLike' f s a+maybe'keyLoc = Data.ProtoLens.Field.field @"maybe'keyLoc"+maybe'limit ::+ forall f s a.+ (Prelude.Functor f,+ Data.ProtoLens.Field.HasField s "maybe'limit" a) =>+ Lens.Family2.LensLike' f s a+maybe'limit = Data.ProtoLens.Field.field @"maybe'limit"+maybe'localBalance ::+ forall f s a.+ (Prelude.Functor f,+ Data.ProtoLens.Field.HasField s "maybe'localBalance" a) =>+ Lens.Family2.LensLike' f s a+maybe'localBalance+ = Data.ProtoLens.Field.field @"maybe'localBalance"+maybe'localConstraints ::+ forall f s a.+ (Prelude.Functor f,+ Data.ProtoLens.Field.HasField s "maybe'localConstraints" a) =>+ Lens.Family2.LensLike' f s a+maybe'localConstraints+ = Data.ProtoLens.Field.field @"maybe'localConstraints"+maybe'localKey ::+ forall f s a.+ (Prelude.Functor f,+ Data.ProtoLens.Field.HasField s "maybe'localKey" a) =>+ Lens.Family2.LensLike' f s a+maybe'localKey = Data.ProtoLens.Field.field @"maybe'localKey"+maybe'mppRecord ::+ forall f s a.+ (Prelude.Functor f,+ Data.ProtoLens.Field.HasField s "maybe'mppRecord" a) =>+ Lens.Family2.LensLike' f s a+maybe'mppRecord = Data.ProtoLens.Field.field @"maybe'mppRecord"+maybe'node ::+ forall f s a.+ (Prelude.Functor f,+ Data.ProtoLens.Field.HasField s "maybe'node" a) =>+ Lens.Family2.LensLike' f s a+maybe'node = Data.ProtoLens.Field.field @"maybe'node"+maybe'node1Policy ::+ forall f s a.+ (Prelude.Functor f,+ Data.ProtoLens.Field.HasField s "maybe'node1Policy" a) =>+ Lens.Family2.LensLike' f s a+maybe'node1Policy = Data.ProtoLens.Field.field @"maybe'node1Policy"+maybe'node2Policy ::+ forall f s a.+ (Prelude.Functor f,+ Data.ProtoLens.Field.HasField s "maybe'node2Policy" a) =>+ Lens.Family2.LensLike' f s a+maybe'node2Policy = Data.ProtoLens.Field.field @"maybe'node2Policy"+maybe'openChannel ::+ forall f s a.+ (Prelude.Functor f,+ Data.ProtoLens.Field.HasField s "maybe'openChannel" a) =>+ Lens.Family2.LensLike' f s a+maybe'openChannel = Data.ProtoLens.Field.field @"maybe'openChannel"+maybe'outpoint ::+ forall f s a.+ (Prelude.Functor f,+ Data.ProtoLens.Field.HasField s "maybe'outpoint" a) =>+ Lens.Family2.LensLike' f s a+maybe'outpoint = Data.ProtoLens.Field.field @"maybe'outpoint"+maybe'pendingOpenChannel ::+ forall f s a.+ (Prelude.Functor f,+ Data.ProtoLens.Field.HasField s "maybe'pendingOpenChannel" a) =>+ Lens.Family2.LensLike' f s a+maybe'pendingOpenChannel+ = Data.ProtoLens.Field.field @"maybe'pendingOpenChannel"+maybe'pendingOpenLocalBalance ::+ forall f s a.+ (Prelude.Functor f,+ Data.ProtoLens.Field.HasField s "maybe'pendingOpenLocalBalance" a) =>+ Lens.Family2.LensLike' f s a+maybe'pendingOpenLocalBalance+ = Data.ProtoLens.Field.field @"maybe'pendingOpenLocalBalance"+maybe'pendingOpenRemoteBalance ::+ forall f s a.+ (Prelude.Functor f,+ Data.ProtoLens.Field.HasField s "maybe'pendingOpenRemoteBalance" a) =>+ Lens.Family2.LensLike' f s a+maybe'pendingOpenRemoteBalance+ = Data.ProtoLens.Field.field @"maybe'pendingOpenRemoteBalance"+maybe'percent ::+ forall f s a.+ (Prelude.Functor f,+ Data.ProtoLens.Field.HasField s "maybe'percent" a) =>+ Lens.Family2.LensLike' f s a+maybe'percent = Data.ProtoLens.Field.field @"maybe'percent"+maybe'psbtFinalize ::+ forall f s a.+ (Prelude.Functor f,+ Data.ProtoLens.Field.HasField s "maybe'psbtFinalize" a) =>+ Lens.Family2.LensLike' f s a+maybe'psbtFinalize+ = Data.ProtoLens.Field.field @"maybe'psbtFinalize"+maybe'psbtShim ::+ forall f s a.+ (Prelude.Functor f,+ Data.ProtoLens.Field.HasField s "maybe'psbtShim" a) =>+ Lens.Family2.LensLike' f s a+maybe'psbtShim = Data.ProtoLens.Field.field @"maybe'psbtShim"+maybe'psbtVerify ::+ forall f s a.+ (Prelude.Functor f,+ Data.ProtoLens.Field.HasField s "maybe'psbtVerify" a) =>+ Lens.Family2.LensLike' f s a+maybe'psbtVerify = Data.ProtoLens.Field.field @"maybe'psbtVerify"+maybe'remoteBalance ::+ forall f s a.+ (Prelude.Functor f,+ Data.ProtoLens.Field.HasField s "maybe'remoteBalance" a) =>+ Lens.Family2.LensLike' f s a+maybe'remoteBalance+ = Data.ProtoLens.Field.field @"maybe'remoteBalance"+maybe'remoteConstraints ::+ forall f s a.+ (Prelude.Functor f,+ Data.ProtoLens.Field.HasField s "maybe'remoteConstraints" a) =>+ Lens.Family2.LensLike' f s a+maybe'remoteConstraints+ = Data.ProtoLens.Field.field @"maybe'remoteConstraints"+maybe'routingPolicy ::+ forall f s a.+ (Prelude.Functor f,+ Data.ProtoLens.Field.HasField s "maybe'routingPolicy" a) =>+ Lens.Family2.LensLike' f s a+maybe'routingPolicy+ = Data.ProtoLens.Field.field @"maybe'routingPolicy"+maybe'shim ::+ forall f s a.+ (Prelude.Functor f,+ Data.ProtoLens.Field.HasField s "maybe'shim" a) =>+ Lens.Family2.LensLike' f s a+maybe'shim = Data.ProtoLens.Field.field @"maybe'shim"+maybe'shimCancel ::+ forall f s a.+ (Prelude.Functor f,+ Data.ProtoLens.Field.HasField s "maybe'shimCancel" a) =>+ Lens.Family2.LensLike' f s a+maybe'shimCancel = Data.ProtoLens.Field.field @"maybe'shimCancel"+maybe'shimRegister ::+ forall f s a.+ (Prelude.Functor f,+ Data.ProtoLens.Field.HasField s "maybe'shimRegister" a) =>+ Lens.Family2.LensLike' f s a+maybe'shimRegister+ = Data.ProtoLens.Field.field @"maybe'shimRegister"+maybe'trigger ::+ forall f s a.+ (Prelude.Functor f,+ Data.ProtoLens.Field.HasField s "maybe'trigger" a) =>+ Lens.Family2.LensLike' f s a+maybe'trigger = Data.ProtoLens.Field.field @"maybe'trigger"+maybe'unsettledLocalBalance ::+ forall f s a.+ (Prelude.Functor f,+ Data.ProtoLens.Field.HasField s "maybe'unsettledLocalBalance" a) =>+ Lens.Family2.LensLike' f s a+maybe'unsettledLocalBalance+ = Data.ProtoLens.Field.field @"maybe'unsettledLocalBalance"+maybe'unsettledRemoteBalance ::+ forall f s a.+ (Prelude.Functor f,+ Data.ProtoLens.Field.HasField s "maybe'unsettledRemoteBalance" a) =>+ Lens.Family2.LensLike' f s a+maybe'unsettledRemoteBalance+ = Data.ProtoLens.Field.field @"maybe'unsettledRemoteBalance"+maybe'value ::+ forall f s a.+ (Prelude.Functor f,+ Data.ProtoLens.Field.HasField s "maybe'value" a) =>+ Lens.Family2.LensLike' f s a+maybe'value = Data.ProtoLens.Field.field @"maybe'value"+medianChannelSizeSat ::+ forall f s a.+ (Prelude.Functor f,+ Data.ProtoLens.Field.HasField s "medianChannelSizeSat" a) =>+ Lens.Family2.LensLike' f s a+medianChannelSizeSat+ = Data.ProtoLens.Field.field @"medianChannelSizeSat"+minChannelSize ::+ forall f s a.+ (Prelude.Functor f,+ Data.ProtoLens.Field.HasField s "minChannelSize" a) =>+ Lens.Family2.LensLike' f s a+minChannelSize = Data.ProtoLens.Field.field @"minChannelSize"+minHtlc ::+ forall f s a.+ (Prelude.Functor f, Data.ProtoLens.Field.HasField s "minHtlc" a) =>+ Lens.Family2.LensLike' f s a+minHtlc = Data.ProtoLens.Field.field @"minHtlc"+minHtlcMsat ::+ forall f s a.+ (Prelude.Functor f,+ Data.ProtoLens.Field.HasField s "minHtlcMsat" a) =>+ Lens.Family2.LensLike' f s a+minHtlcMsat = Data.ProtoLens.Field.field @"minHtlcMsat"+mppRecord ::+ forall f s a.+ (Prelude.Functor f,+ Data.ProtoLens.Field.HasField s "mppRecord" a) =>+ Lens.Family2.LensLike' f s a+mppRecord = Data.ProtoLens.Field.field @"mppRecord"+msat ::+ forall f s a.+ (Prelude.Functor f, Data.ProtoLens.Field.HasField s "msat" a) =>+ Lens.Family2.LensLike' f s a+msat = Data.ProtoLens.Field.field @"msat"+name ::+ forall f s a.+ (Prelude.Functor f, Data.ProtoLens.Field.HasField s "name" a) =>+ Lens.Family2.LensLike' f s a+name = Data.ProtoLens.Field.field @"name"+network ::+ forall f s a.+ (Prelude.Functor f, Data.ProtoLens.Field.HasField s "network" a) =>+ Lens.Family2.LensLike' f s a+network = Data.ProtoLens.Field.field @"network"+noPublish ::+ forall f s a.+ (Prelude.Functor f,+ Data.ProtoLens.Field.HasField s "noPublish" a) =>+ Lens.Family2.LensLike' f s a+noPublish = Data.ProtoLens.Field.field @"noPublish"+node ::+ forall f s a.+ (Prelude.Functor f, Data.ProtoLens.Field.HasField s "node" a) =>+ Lens.Family2.LensLike' f s a+node = Data.ProtoLens.Field.field @"node"+node1Policy ::+ forall f s a.+ (Prelude.Functor f,+ Data.ProtoLens.Field.HasField s "node1Policy" a) =>+ Lens.Family2.LensLike' f s a+node1Policy = Data.ProtoLens.Field.field @"node1Policy"+node1Pub ::+ forall f s a.+ (Prelude.Functor f,+ Data.ProtoLens.Field.HasField s "node1Pub" a) =>+ Lens.Family2.LensLike' f s a+node1Pub = Data.ProtoLens.Field.field @"node1Pub"+node2Policy ::+ forall f s a.+ (Prelude.Functor f,+ Data.ProtoLens.Field.HasField s "node2Policy" a) =>+ Lens.Family2.LensLike' f s a+node2Policy = Data.ProtoLens.Field.field @"node2Policy"+node2Pub ::+ forall f s a.+ (Prelude.Functor f,+ Data.ProtoLens.Field.HasField s "node2Pub" a) =>+ Lens.Family2.LensLike' f s a+node2Pub = Data.ProtoLens.Field.field @"node2Pub"+nodeAddresses ::+ forall f s a.+ (Prelude.Functor f,+ Data.ProtoLens.Field.HasField s "nodeAddresses" a) =>+ Lens.Family2.LensLike' f s a+nodeAddresses = Data.ProtoLens.Field.field @"nodeAddresses"+nodeId ::+ forall f s a.+ (Prelude.Functor f, Data.ProtoLens.Field.HasField s "nodeId" a) =>+ Lens.Family2.LensLike' f s a+nodeId = Data.ProtoLens.Field.field @"nodeId"+nodeUpdates ::+ forall f s a.+ (Prelude.Functor f,+ Data.ProtoLens.Field.HasField s "nodeUpdates" a) =>+ Lens.Family2.LensLike' f s a+nodeUpdates = Data.ProtoLens.Field.field @"nodeUpdates"+nodes ::+ forall f s a.+ (Prelude.Functor f, Data.ProtoLens.Field.HasField s "nodes" a) =>+ Lens.Family2.LensLike' f s a+nodes = Data.ProtoLens.Field.field @"nodes"+normalizedValue ::+ forall f s a.+ (Prelude.Functor f,+ Data.ProtoLens.Field.HasField s "normalizedValue" a) =>+ Lens.Family2.LensLike' f s a+normalizedValue = Data.ProtoLens.Field.field @"normalizedValue"+numChannels ::+ forall f s a.+ (Prelude.Functor f,+ Data.ProtoLens.Field.HasField s "numChannels" a) =>+ Lens.Family2.LensLike' f s a+numChannels = Data.ProtoLens.Field.field @"numChannels"+numForwardingPackages ::+ forall f s a.+ (Prelude.Functor f,+ Data.ProtoLens.Field.HasField s "numForwardingPackages" a) =>+ Lens.Family2.LensLike' f s a+numForwardingPackages+ = Data.ProtoLens.Field.field @"numForwardingPackages"+numNodes ::+ forall f s a.+ (Prelude.Functor f,+ Data.ProtoLens.Field.HasField s "numNodes" a) =>+ Lens.Family2.LensLike' f s a+numNodes = Data.ProtoLens.Field.field @"numNodes"+numUpdates ::+ forall f s a.+ (Prelude.Functor f,+ Data.ProtoLens.Field.HasField s "numUpdates" a) =>+ Lens.Family2.LensLike' f s a+numUpdates = Data.ProtoLens.Field.field @"numUpdates"+numZombieChans ::+ forall f s a.+ (Prelude.Functor f,+ Data.ProtoLens.Field.HasField s "numZombieChans" a) =>+ Lens.Family2.LensLike' f s a+numZombieChans = Data.ProtoLens.Field.field @"numZombieChans"+openChannel ::+ forall f s a.+ (Prelude.Functor f,+ Data.ProtoLens.Field.HasField s "openChannel" a) =>+ Lens.Family2.LensLike' f s a+openChannel = Data.ProtoLens.Field.field @"openChannel"+openInitiator ::+ forall f s a.+ (Prelude.Functor f,+ Data.ProtoLens.Field.HasField s "openInitiator" a) =>+ Lens.Family2.LensLike' f s a+openInitiator = Data.ProtoLens.Field.field @"openInitiator"+outcome ::+ forall f s a.+ (Prelude.Functor f, Data.ProtoLens.Field.HasField s "outcome" a) =>+ Lens.Family2.LensLike' f s a+outcome = Data.ProtoLens.Field.field @"outcome"+outgoingChanId ::+ forall f s a.+ (Prelude.Functor f,+ Data.ProtoLens.Field.HasField s "outgoingChanId" a) =>+ Lens.Family2.LensLike' f s a+outgoingChanId = Data.ProtoLens.Field.field @"outgoingChanId"+outpoint ::+ forall f s a.+ (Prelude.Functor f,+ Data.ProtoLens.Field.HasField s "outpoint" a) =>+ Lens.Family2.LensLike' f s a+outpoint = Data.ProtoLens.Field.field @"outpoint"+outputIndex ::+ forall f s a.+ (Prelude.Functor f,+ Data.ProtoLens.Field.HasField s "outputIndex" a) =>+ Lens.Family2.LensLike' f s a+outputIndex = Data.ProtoLens.Field.field @"outputIndex"+paymentAddr ::+ forall f s a.+ (Prelude.Functor f,+ Data.ProtoLens.Field.HasField s "paymentAddr" a) =>+ Lens.Family2.LensLike' f s a+paymentAddr = Data.ProtoLens.Field.field @"paymentAddr"+pendingChanId ::+ forall f s a.+ (Prelude.Functor f,+ Data.ProtoLens.Field.HasField s "pendingChanId" a) =>+ Lens.Family2.LensLike' f s a+pendingChanId = Data.ProtoLens.Field.field @"pendingChanId"+pendingClosingChannels ::+ forall f s a.+ (Prelude.Functor f,+ Data.ProtoLens.Field.HasField s "pendingClosingChannels" a) =>+ Lens.Family2.LensLike' f s a+pendingClosingChannels+ = Data.ProtoLens.Field.field @"pendingClosingChannels"+pendingForceClosingChannels ::+ forall f s a.+ (Prelude.Functor f,+ Data.ProtoLens.Field.HasField s "pendingForceClosingChannels" a) =>+ Lens.Family2.LensLike' f s a+pendingForceClosingChannels+ = Data.ProtoLens.Field.field @"pendingForceClosingChannels"+pendingHtlcs ::+ forall f s a.+ (Prelude.Functor f,+ Data.ProtoLens.Field.HasField s "pendingHtlcs" a) =>+ Lens.Family2.LensLike' f s a+pendingHtlcs = Data.ProtoLens.Field.field @"pendingHtlcs"+pendingOpenBalance ::+ forall f s a.+ (Prelude.Functor f,+ Data.ProtoLens.Field.HasField s "pendingOpenBalance" a) =>+ Lens.Family2.LensLike' f s a+pendingOpenBalance+ = Data.ProtoLens.Field.field @"pendingOpenBalance"+pendingOpenChannel ::+ forall f s a.+ (Prelude.Functor f,+ Data.ProtoLens.Field.HasField s "pendingOpenChannel" a) =>+ Lens.Family2.LensLike' f s a+pendingOpenChannel+ = Data.ProtoLens.Field.field @"pendingOpenChannel"+pendingOpenChannels ::+ forall f s a.+ (Prelude.Functor f,+ Data.ProtoLens.Field.HasField s "pendingOpenChannels" a) =>+ Lens.Family2.LensLike' f s a+pendingOpenChannels+ = Data.ProtoLens.Field.field @"pendingOpenChannels"+pendingOpenLocalBalance ::+ forall f s a.+ (Prelude.Functor f,+ Data.ProtoLens.Field.HasField s "pendingOpenLocalBalance" a) =>+ Lens.Family2.LensLike' f s a+pendingOpenLocalBalance+ = Data.ProtoLens.Field.field @"pendingOpenLocalBalance"+pendingOpenRemoteBalance ::+ forall f s a.+ (Prelude.Functor f,+ Data.ProtoLens.Field.HasField s "pendingOpenRemoteBalance" a) =>+ Lens.Family2.LensLike' f s a+pendingOpenRemoteBalance+ = Data.ProtoLens.Field.field @"pendingOpenRemoteBalance"+percent ::+ forall f s a.+ (Prelude.Functor f, Data.ProtoLens.Field.HasField s "percent" a) =>+ Lens.Family2.LensLike' f s a+percent = Data.ProtoLens.Field.field @"percent"+private ::+ forall f s a.+ (Prelude.Functor f, Data.ProtoLens.Field.HasField s "private" a) =>+ Lens.Family2.LensLike' f s a+private = Data.ProtoLens.Field.field @"private"+psbtFinalize ::+ forall f s a.+ (Prelude.Functor f,+ Data.ProtoLens.Field.HasField s "psbtFinalize" a) =>+ Lens.Family2.LensLike' f s a+psbtFinalize = Data.ProtoLens.Field.field @"psbtFinalize"+psbtShim ::+ forall f s a.+ (Prelude.Functor f,+ Data.ProtoLens.Field.HasField s "psbtShim" a) =>+ Lens.Family2.LensLike' f s a+psbtShim = Data.ProtoLens.Field.field @"psbtShim"+psbtVerify ::+ forall f s a.+ (Prelude.Functor f,+ Data.ProtoLens.Field.HasField s "psbtVerify" a) =>+ Lens.Family2.LensLike' f s a+psbtVerify = Data.ProtoLens.Field.field @"psbtVerify"+pubKey ::+ forall f s a.+ (Prelude.Functor f, Data.ProtoLens.Field.HasField s "pubKey" a) =>+ Lens.Family2.LensLike' f s a+pubKey = Data.ProtoLens.Field.field @"pubKey"+pushAmountSat ::+ forall f s a.+ (Prelude.Functor f,+ Data.ProtoLens.Field.HasField s "pushAmountSat" a) =>+ Lens.Family2.LensLike' f s a+pushAmountSat = Data.ProtoLens.Field.field @"pushAmountSat"+rawKeyBytes ::+ forall f s a.+ (Prelude.Functor f,+ Data.ProtoLens.Field.HasField s "rawKeyBytes" a) =>+ Lens.Family2.LensLike' f s a+rawKeyBytes = Data.ProtoLens.Field.field @"rawKeyBytes"+recoveredBalance ::+ forall f s a.+ (Prelude.Functor f,+ Data.ProtoLens.Field.HasField s "recoveredBalance" a) =>+ Lens.Family2.LensLike' f s a+recoveredBalance = Data.ProtoLens.Field.field @"recoveredBalance"+remoteBalance ::+ forall f s a.+ (Prelude.Functor f,+ Data.ProtoLens.Field.HasField s "remoteBalance" a) =>+ Lens.Family2.LensLike' f s a+remoteBalance = Data.ProtoLens.Field.field @"remoteBalance"+remoteChanReserveSat ::+ forall f s a.+ (Prelude.Functor f,+ Data.ProtoLens.Field.HasField s "remoteChanReserveSat" a) =>+ Lens.Family2.LensLike' f s a+remoteChanReserveSat+ = Data.ProtoLens.Field.field @"remoteChanReserveSat"+remoteCommitFeeSat ::+ forall f s a.+ (Prelude.Functor f,+ Data.ProtoLens.Field.HasField s "remoteCommitFeeSat" a) =>+ Lens.Family2.LensLike' f s a+remoteCommitFeeSat+ = Data.ProtoLens.Field.field @"remoteCommitFeeSat"+remoteConstraints ::+ forall f s a.+ (Prelude.Functor f,+ Data.ProtoLens.Field.HasField s "remoteConstraints" a) =>+ Lens.Family2.LensLike' f s a+remoteConstraints = Data.ProtoLens.Field.field @"remoteConstraints"+remoteKey ::+ forall f s a.+ (Prelude.Functor f,+ Data.ProtoLens.Field.HasField s "remoteKey" a) =>+ Lens.Family2.LensLike' f s a+remoteKey = Data.ProtoLens.Field.field @"remoteKey"+remoteNodePub ::+ forall f s a.+ (Prelude.Functor f,+ Data.ProtoLens.Field.HasField s "remoteNodePub" a) =>+ Lens.Family2.LensLike' f s a+remoteNodePub = Data.ProtoLens.Field.field @"remoteNodePub"+remotePendingCommitFeeSat ::+ forall f s a.+ (Prelude.Functor f,+ Data.ProtoLens.Field.HasField s "remotePendingCommitFeeSat" a) =>+ Lens.Family2.LensLike' f s a+remotePendingCommitFeeSat+ = Data.ProtoLens.Field.field @"remotePendingCommitFeeSat"+remotePendingTxid ::+ forall f s a.+ (Prelude.Functor f,+ Data.ProtoLens.Field.HasField s "remotePendingTxid" a) =>+ Lens.Family2.LensLike' f s a+remotePendingTxid = Data.ProtoLens.Field.field @"remotePendingTxid"+remotePubkey ::+ forall f s a.+ (Prelude.Functor f,+ Data.ProtoLens.Field.HasField s "remotePubkey" a) =>+ Lens.Family2.LensLike' f s a+remotePubkey = Data.ProtoLens.Field.field @"remotePubkey"+remoteTxid ::+ forall f s a.+ (Prelude.Functor f,+ Data.ProtoLens.Field.HasField s "remoteTxid" a) =>+ Lens.Family2.LensLike' f s a+remoteTxid = Data.ProtoLens.Field.field @"remoteTxid"+resolutionType ::+ forall f s a.+ (Prelude.Functor f,+ Data.ProtoLens.Field.HasField s "resolutionType" a) =>+ Lens.Family2.LensLike' f s a+resolutionType = Data.ProtoLens.Field.field @"resolutionType"+resolutions ::+ forall f s a.+ (Prelude.Functor f,+ Data.ProtoLens.Field.HasField s "resolutions" a) =>+ Lens.Family2.LensLike' f s a+resolutions = Data.ProtoLens.Field.field @"resolutions"+rootShare ::+ forall f s a.+ (Prelude.Functor f,+ Data.ProtoLens.Field.HasField s "rootShare" a) =>+ Lens.Family2.LensLike' f s a+rootShare = Data.ProtoLens.Field.field @"rootShare"+routeHints ::+ forall f s a.+ (Prelude.Functor f,+ Data.ProtoLens.Field.HasField s "routeHints" a) =>+ Lens.Family2.LensLike' f s a+routeHints = Data.ProtoLens.Field.field @"routeHints"+routes ::+ forall f s a.+ (Prelude.Functor f, Data.ProtoLens.Field.HasField s "routes" a) =>+ Lens.Family2.LensLike' f s a+routes = Data.ProtoLens.Field.field @"routes"+routingPolicy ::+ forall f s a.+ (Prelude.Functor f,+ Data.ProtoLens.Field.HasField s "routingPolicy" a) =>+ Lens.Family2.LensLike' f s a+routingPolicy = Data.ProtoLens.Field.field @"routingPolicy"+sat ::+ forall f s a.+ (Prelude.Functor f, Data.ProtoLens.Field.HasField s "sat" a) =>+ Lens.Family2.LensLike' f s a+sat = Data.ProtoLens.Field.field @"sat"+setId ::+ forall f s a.+ (Prelude.Functor f, Data.ProtoLens.Field.HasField s "setId" a) =>+ Lens.Family2.LensLike' f s a+setId = Data.ProtoLens.Field.field @"setId"+settledBalance ::+ forall f s a.+ (Prelude.Functor f,+ Data.ProtoLens.Field.HasField s "settledBalance" a) =>+ Lens.Family2.LensLike' f s a+settledBalance = Data.ProtoLens.Field.field @"settledBalance"+shimCancel ::+ forall f s a.+ (Prelude.Functor f,+ Data.ProtoLens.Field.HasField s "shimCancel" a) =>+ Lens.Family2.LensLike' f s a+shimCancel = Data.ProtoLens.Field.field @"shimCancel"+shimRegister ::+ forall f s a.+ (Prelude.Functor f,+ Data.ProtoLens.Field.HasField s "shimRegister" a) =>+ Lens.Family2.LensLike' f s a+shimRegister = Data.ProtoLens.Field.field @"shimRegister"+signedPsbt ::+ forall f s a.+ (Prelude.Functor f,+ Data.ProtoLens.Field.HasField s "signedPsbt" a) =>+ Lens.Family2.LensLike' f s a+signedPsbt = Data.ProtoLens.Field.field @"signedPsbt"+skipFinalize ::+ forall f s a.+ (Prelude.Functor f,+ Data.ProtoLens.Field.HasField s "skipFinalize" a) =>+ Lens.Family2.LensLike' f s a+skipFinalize = Data.ProtoLens.Field.field @"skipFinalize"+sourcePubKey ::+ forall f s a.+ (Prelude.Functor f,+ Data.ProtoLens.Field.HasField s "sourcePubKey" a) =>+ Lens.Family2.LensLike' f s a+sourcePubKey = Data.ProtoLens.Field.field @"sourcePubKey"+stage ::+ forall f s a.+ (Prelude.Functor f, Data.ProtoLens.Field.HasField s "stage" a) =>+ Lens.Family2.LensLike' f s a+stage = Data.ProtoLens.Field.field @"stage"+staticRemoteKey ::+ forall f s a.+ (Prelude.Functor f,+ Data.ProtoLens.Field.HasField s "staticRemoteKey" a) =>+ Lens.Family2.LensLike' f s a+staticRemoteKey = Data.ProtoLens.Field.field @"staticRemoteKey"+successProb ::+ forall f s a.+ (Prelude.Functor f,+ Data.ProtoLens.Field.HasField s "successProb" a) =>+ Lens.Family2.LensLike' f s a+successProb = Data.ProtoLens.Field.field @"successProb"+sweepTxid ::+ forall f s a.+ (Prelude.Functor f,+ Data.ProtoLens.Field.HasField s "sweepTxid" a) =>+ Lens.Family2.LensLike' f s a+sweepTxid = Data.ProtoLens.Field.field @"sweepTxid"+thawHeight ::+ forall f s a.+ (Prelude.Functor f,+ Data.ProtoLens.Field.HasField s "thawHeight" a) =>+ Lens.Family2.LensLike' f s a+thawHeight = Data.ProtoLens.Field.field @"thawHeight"+timeLockDelta ::+ forall f s a.+ (Prelude.Functor f,+ Data.ProtoLens.Field.HasField s "timeLockDelta" a) =>+ Lens.Family2.LensLike' f s a+timeLockDelta = Data.ProtoLens.Field.field @"timeLockDelta"+timeLockedBalance ::+ forall f s a.+ (Prelude.Functor f,+ Data.ProtoLens.Field.HasField s "timeLockedBalance" a) =>+ Lens.Family2.LensLike' f s a+timeLockedBalance = Data.ProtoLens.Field.field @"timeLockedBalance"+tlvPayload ::+ forall f s a.+ (Prelude.Functor f,+ Data.ProtoLens.Field.HasField s "tlvPayload" a) =>+ Lens.Family2.LensLike' f s a+tlvPayload = Data.ProtoLens.Field.field @"tlvPayload"+to ::+ forall f s a.+ (Prelude.Functor f, Data.ProtoLens.Field.HasField s "to" a) =>+ Lens.Family2.LensLike' f s a+to = Data.ProtoLens.Field.field @"to"+totalAmt ::+ forall f s a.+ (Prelude.Functor f,+ Data.ProtoLens.Field.HasField s "totalAmt" a) =>+ Lens.Family2.LensLike' f s a+totalAmt = Data.ProtoLens.Field.field @"totalAmt"+totalAmtMsat ::+ forall f s a.+ (Prelude.Functor f,+ Data.ProtoLens.Field.HasField s "totalAmtMsat" a) =>+ Lens.Family2.LensLike' f s a+totalAmtMsat = Data.ProtoLens.Field.field @"totalAmtMsat"+totalBalance ::+ forall f s a.+ (Prelude.Functor f,+ Data.ProtoLens.Field.HasField s "totalBalance" a) =>+ Lens.Family2.LensLike' f s a+totalBalance = Data.ProtoLens.Field.field @"totalBalance"+totalCapacity ::+ forall f s a.+ (Prelude.Functor f,+ Data.ProtoLens.Field.HasField s "totalCapacity" a) =>+ Lens.Family2.LensLike' f s a+totalCapacity = Data.ProtoLens.Field.field @"totalCapacity"+totalFees ::+ forall f s a.+ (Prelude.Functor f,+ Data.ProtoLens.Field.HasField s "totalFees" a) =>+ Lens.Family2.LensLike' f s a+totalFees = Data.ProtoLens.Field.field @"totalFees"+totalFeesMsat ::+ forall f s a.+ (Prelude.Functor f,+ Data.ProtoLens.Field.HasField s "totalFeesMsat" a) =>+ Lens.Family2.LensLike' f s a+totalFeesMsat = Data.ProtoLens.Field.field @"totalFeesMsat"+totalLimboBalance ::+ forall f s a.+ (Prelude.Functor f,+ Data.ProtoLens.Field.HasField s "totalLimboBalance" a) =>+ Lens.Family2.LensLike' f s a+totalLimboBalance = Data.ProtoLens.Field.field @"totalLimboBalance"+totalNetworkCapacity ::+ forall f s a.+ (Prelude.Functor f,+ Data.ProtoLens.Field.HasField s "totalNetworkCapacity" a) =>+ Lens.Family2.LensLike' f s a+totalNetworkCapacity+ = Data.ProtoLens.Field.field @"totalNetworkCapacity"+totalSatoshisReceived ::+ forall f s a.+ (Prelude.Functor f,+ Data.ProtoLens.Field.HasField s "totalSatoshisReceived" a) =>+ Lens.Family2.LensLike' f s a+totalSatoshisReceived+ = Data.ProtoLens.Field.field @"totalSatoshisReceived"+totalSatoshisSent ::+ forall f s a.+ (Prelude.Functor f,+ Data.ProtoLens.Field.HasField s "totalSatoshisSent" a) =>+ Lens.Family2.LensLike' f s a+totalSatoshisSent = Data.ProtoLens.Field.field @"totalSatoshisSent"+totalTimeLock ::+ forall f s a.+ (Prelude.Functor f,+ Data.ProtoLens.Field.HasField s "totalTimeLock" a) =>+ Lens.Family2.LensLike' f s a+totalTimeLock = Data.ProtoLens.Field.field @"totalTimeLock"+txid ::+ forall f s a.+ (Prelude.Functor f, Data.ProtoLens.Field.HasField s "txid" a) =>+ Lens.Family2.LensLike' f s a+txid = Data.ProtoLens.Field.field @"txid"+txidBytes ::+ forall f s a.+ (Prelude.Functor f,+ Data.ProtoLens.Field.HasField s "txidBytes" a) =>+ Lens.Family2.LensLike' f s a+txidBytes = Data.ProtoLens.Field.field @"txidBytes"+txidStr ::+ forall f s a.+ (Prelude.Functor f, Data.ProtoLens.Field.HasField s "txidStr" a) =>+ Lens.Family2.LensLike' f s a+txidStr = Data.ProtoLens.Field.field @"txidStr"+type' ::+ forall f s a.+ (Prelude.Functor f, Data.ProtoLens.Field.HasField s "type'" a) =>+ Lens.Family2.LensLike' f s a+type' = Data.ProtoLens.Field.field @"type'"+types ::+ forall f s a.+ (Prelude.Functor f, Data.ProtoLens.Field.HasField s "types" a) =>+ Lens.Family2.LensLike' f s a+types = Data.ProtoLens.Field.field @"types"+unconfirmedBalance ::+ forall f s a.+ (Prelude.Functor f,+ Data.ProtoLens.Field.HasField s "unconfirmedBalance" a) =>+ Lens.Family2.LensLike' f s a+unconfirmedBalance+ = Data.ProtoLens.Field.field @"unconfirmedBalance"+unsettledBalance ::+ forall f s a.+ (Prelude.Functor f,+ Data.ProtoLens.Field.HasField s "unsettledBalance" a) =>+ Lens.Family2.LensLike' f s a+unsettledBalance = Data.ProtoLens.Field.field @"unsettledBalance"+unsettledLocalBalance ::+ forall f s a.+ (Prelude.Functor f,+ Data.ProtoLens.Field.HasField s "unsettledLocalBalance" a) =>+ Lens.Family2.LensLike' f s a+unsettledLocalBalance+ = Data.ProtoLens.Field.field @"unsettledLocalBalance"+unsettledRemoteBalance ::+ forall f s a.+ (Prelude.Functor f,+ Data.ProtoLens.Field.HasField s "unsettledRemoteBalance" a) =>+ Lens.Family2.LensLike' f s a+unsettledRemoteBalance+ = Data.ProtoLens.Field.field @"unsettledRemoteBalance"+uptime ::+ forall f s a.+ (Prelude.Functor f, Data.ProtoLens.Field.HasField s "uptime" a) =>+ Lens.Family2.LensLike' f s a+uptime = Data.ProtoLens.Field.field @"uptime"+useMissionControl ::+ forall f s a.+ (Prelude.Functor f,+ Data.ProtoLens.Field.HasField s "useMissionControl" a) =>+ Lens.Family2.LensLike' f s a+useMissionControl = Data.ProtoLens.Field.field @"useMissionControl"+value ::+ forall f s a.+ (Prelude.Functor f, Data.ProtoLens.Field.HasField s "value" a) =>+ Lens.Family2.LensLike' f s a+value = Data.ProtoLens.Field.field @"value"+vec'addresses ::+ forall f s a.+ (Prelude.Functor f,+ Data.ProtoLens.Field.HasField s "vec'addresses" a) =>+ Lens.Family2.LensLike' f s a+vec'addresses = Data.ProtoLens.Field.field @"vec'addresses"+vec'channelUpdates ::+ forall f s a.+ (Prelude.Functor f,+ Data.ProtoLens.Field.HasField s "vec'channelUpdates" a) =>+ Lens.Family2.LensLike' f s a+vec'channelUpdates+ = Data.ProtoLens.Field.field @"vec'channelUpdates"+vec'channels ::+ forall f s a.+ (Prelude.Functor f,+ Data.ProtoLens.Field.HasField s "vec'channels" a) =>+ Lens.Family2.LensLike' f s a+vec'channels = Data.ProtoLens.Field.field @"vec'channels"+vec'closedChans ::+ forall f s a.+ (Prelude.Functor f,+ Data.ProtoLens.Field.HasField s "vec'closedChans" a) =>+ Lens.Family2.LensLike' f s a+vec'closedChans = Data.ProtoLens.Field.field @"vec'closedChans"+vec'destFeatures ::+ forall f s a.+ (Prelude.Functor f,+ Data.ProtoLens.Field.HasField s "vec'destFeatures" a) =>+ Lens.Family2.LensLike' f s a+vec'destFeatures = Data.ProtoLens.Field.field @"vec'destFeatures"+vec'edges ::+ forall f s a.+ (Prelude.Functor f,+ Data.ProtoLens.Field.HasField s "vec'edges" a) =>+ Lens.Family2.LensLike' f s a+vec'edges = Data.ProtoLens.Field.field @"vec'edges"+vec'hopHints ::+ forall f s a.+ (Prelude.Functor f,+ Data.ProtoLens.Field.HasField s "vec'hopHints" a) =>+ Lens.Family2.LensLike' f s a+vec'hopHints = Data.ProtoLens.Field.field @"vec'hopHints"+vec'hops ::+ forall f s a.+ (Prelude.Functor f,+ Data.ProtoLens.Field.HasField s "vec'hops" a) =>+ Lens.Family2.LensLike' f s a+vec'hops = Data.ProtoLens.Field.field @"vec'hops"+vec'ignoredEdges ::+ forall f s a.+ (Prelude.Functor f,+ Data.ProtoLens.Field.HasField s "vec'ignoredEdges" a) =>+ Lens.Family2.LensLike' f s a+vec'ignoredEdges = Data.ProtoLens.Field.field @"vec'ignoredEdges"+vec'ignoredNodes ::+ forall f s a.+ (Prelude.Functor f,+ Data.ProtoLens.Field.HasField s "vec'ignoredNodes" a) =>+ Lens.Family2.LensLike' f s a+vec'ignoredNodes = Data.ProtoLens.Field.field @"vec'ignoredNodes"+vec'ignoredPairs ::+ forall f s a.+ (Prelude.Functor f,+ Data.ProtoLens.Field.HasField s "vec'ignoredPairs" a) =>+ Lens.Family2.LensLike' f s a+vec'ignoredPairs = Data.ProtoLens.Field.field @"vec'ignoredPairs"+vec'nodeAddresses ::+ forall f s a.+ (Prelude.Functor f,+ Data.ProtoLens.Field.HasField s "vec'nodeAddresses" a) =>+ Lens.Family2.LensLike' f s a+vec'nodeAddresses = Data.ProtoLens.Field.field @"vec'nodeAddresses"+vec'nodeUpdates ::+ forall f s a.+ (Prelude.Functor f,+ Data.ProtoLens.Field.HasField s "vec'nodeUpdates" a) =>+ Lens.Family2.LensLike' f s a+vec'nodeUpdates = Data.ProtoLens.Field.field @"vec'nodeUpdates"+vec'nodes ::+ forall f s a.+ (Prelude.Functor f,+ Data.ProtoLens.Field.HasField s "vec'nodes" a) =>+ Lens.Family2.LensLike' f s a+vec'nodes = Data.ProtoLens.Field.field @"vec'nodes"+vec'pendingClosingChannels ::+ forall f s a.+ (Prelude.Functor f,+ Data.ProtoLens.Field.HasField s "vec'pendingClosingChannels" a) =>+ Lens.Family2.LensLike' f s a+vec'pendingClosingChannels+ = Data.ProtoLens.Field.field @"vec'pendingClosingChannels"+vec'pendingForceClosingChannels ::+ forall f s a.+ (Prelude.Functor f,+ Data.ProtoLens.Field.HasField s "vec'pendingForceClosingChannels" a) =>+ Lens.Family2.LensLike' f s a+vec'pendingForceClosingChannels+ = Data.ProtoLens.Field.field @"vec'pendingForceClosingChannels"+vec'pendingHtlcs ::+ forall f s a.+ (Prelude.Functor f,+ Data.ProtoLens.Field.HasField s "vec'pendingHtlcs" a) =>+ Lens.Family2.LensLike' f s a+vec'pendingHtlcs = Data.ProtoLens.Field.field @"vec'pendingHtlcs"+vec'pendingOpenChannels ::+ forall f s a.+ (Prelude.Functor f,+ Data.ProtoLens.Field.HasField s "vec'pendingOpenChannels" a) =>+ Lens.Family2.LensLike' f s a+vec'pendingOpenChannels+ = Data.ProtoLens.Field.field @"vec'pendingOpenChannels"+vec'resolutions ::+ forall f s a.+ (Prelude.Functor f,+ Data.ProtoLens.Field.HasField s "vec'resolutions" a) =>+ Lens.Family2.LensLike' f s a+vec'resolutions = Data.ProtoLens.Field.field @"vec'resolutions"+vec'routeHints ::+ forall f s a.+ (Prelude.Functor f,+ Data.ProtoLens.Field.HasField s "vec'routeHints" a) =>+ Lens.Family2.LensLike' f s a+vec'routeHints = Data.ProtoLens.Field.field @"vec'routeHints"+vec'routes ::+ forall f s a.+ (Prelude.Functor f,+ Data.ProtoLens.Field.HasField s "vec'routes" a) =>+ Lens.Family2.LensLike' f s a+vec'routes = Data.ProtoLens.Field.field @"vec'routes"+vec'types ::+ forall f s a.+ (Prelude.Functor f,+ Data.ProtoLens.Field.HasField s "vec'types" a) =>+ Lens.Family2.LensLike' f s a+vec'types = Data.ProtoLens.Field.field @"vec'types"+vec'waitingCloseChannels ::+ forall f s a.+ (Prelude.Functor f,+ Data.ProtoLens.Field.HasField s "vec'waitingCloseChannels" a) =>+ Lens.Family2.LensLike' f s a+vec'waitingCloseChannels+ = Data.ProtoLens.Field.field @"vec'waitingCloseChannels"+waitingCloseChannels ::+ forall f s a.+ (Prelude.Functor f,+ Data.ProtoLens.Field.HasField s "waitingCloseChannels" a) =>+ Lens.Family2.LensLike' f s a+waitingCloseChannels+ = Data.ProtoLens.Field.field @"waitingCloseChannels"
@@ -0,0 +1,21126 @@+{- This file was auto-generated from lnrpc/ln1.proto by the proto-lens-protoc program. -}+{-# LANGUAGE ScopedTypeVariables, DataKinds, TypeFamilies, UndecidableInstances, GeneralizedNewtypeDeriving, MultiParamTypeClasses, FlexibleContexts, FlexibleInstances, PatternSynonyms, MagicHash, NoImplicitPrelude, BangPatterns, TypeApplications, OverloadedStrings, DerivingStrategies, DeriveGeneric#-}+{-# OPTIONS_GHC -Wno-unused-imports#-}+{-# OPTIONS_GHC -Wno-duplicate-exports#-}+{-# OPTIONS_GHC -Wno-dodgy-exports#-}+module Proto.Lnrpc.Ln1 (+ AMP(), AMPInvoiceState(), AbandonChannelRequest(),+ AbandonChannelResponse(), AddInvoiceResponse(),+ BakeMacaroonRequest(), BakeMacaroonResponse(),+ ChanBackupExportRequest(), ChanBackupSnapshot(), ChannelBackup(),+ ChannelBackupSubscription(), ChannelBackups(), ChannelFeeReport(),+ ChannelUpdate(), CheckMacPermRequest(), CheckMacPermResponse(),+ DebugLevelRequest(), DebugLevelResponse(),+ DeleteAllPaymentsRequest(), DeleteAllPaymentsResponse(),+ DeleteMacaroonIDRequest(), DeleteMacaroonIDResponse(),+ DeletePaymentRequest(), DeletePaymentResponse(),+ ExportChannelBackupRequest(), FailedUpdate(), Failure(),+ Failure'FailureCode(..), Failure'FailureCode(),+ Failure'FailureCode'UnrecognizedValue, FeeReportRequest(),+ FeeReportResponse(), ForwardingEvent(), ForwardingHistoryRequest(),+ ForwardingHistoryResponse(), HTLCAttempt(),+ HTLCAttempt'HTLCStatus(..), HTLCAttempt'HTLCStatus(),+ HTLCAttempt'HTLCStatus'UnrecognizedValue, InterceptFeedback(),+ Invoice(), Invoice'AmpInvoiceStateEntry(), Invoice'FeaturesEntry(),+ Invoice'InvoiceState(..), Invoice'InvoiceState(),+ Invoice'InvoiceState'UnrecognizedValue, InvoiceHTLC(),+ InvoiceHTLC'CustomRecordsEntry(), InvoiceHTLCState(..),+ InvoiceHTLCState(), InvoiceHTLCState'UnrecognizedValue,+ InvoiceSubscription(), ListInvoiceRequest(), ListInvoiceResponse(),+ ListMacaroonIDsRequest(), ListMacaroonIDsResponse(),+ ListPaymentsRequest(), ListPaymentsResponse(),+ ListPermissionsRequest(), ListPermissionsResponse(),+ ListPermissionsResponse'MethodPermissionsEntry(), MacaroonId(),+ MacaroonPermission(), MacaroonPermissionList(),+ MiddlewareRegistration(), MultiChanBackup(), Op(), PayReq(),+ PayReq'FeaturesEntry(), PayReqString(), Payment(),+ Payment'PaymentStatus(..), Payment'PaymentStatus(),+ Payment'PaymentStatus'UnrecognizedValue, PaymentFailureReason(..),+ PaymentFailureReason(), PaymentFailureReason'UnrecognizedValue,+ PaymentHash(), PolicyUpdateRequest(),+ PolicyUpdateRequest'Scope(..), _PolicyUpdateRequest'Global,+ _PolicyUpdateRequest'ChanPoint, PolicyUpdateResponse(),+ RPCMessage(), RPCMiddlewareRequest(),+ RPCMiddlewareRequest'InterceptType(..),+ _RPCMiddlewareRequest'StreamAuth, _RPCMiddlewareRequest'Request,+ _RPCMiddlewareRequest'Response, RPCMiddlewareResponse(),+ RPCMiddlewareResponse'MiddlewareMessage(..),+ _RPCMiddlewareResponse'Register, _RPCMiddlewareResponse'Feedback,+ RestoreBackupResponse(), RestoreChanBackupRequest(),+ RestoreChanBackupRequest'Backup(..),+ _RestoreChanBackupRequest'ChanBackups,+ _RestoreChanBackupRequest'MultiChanBackup, SetID(), StreamAuth(),+ UpdateFailure(..), UpdateFailure(),+ UpdateFailure'UnrecognizedValue, VerifyChanBackupResponse()+ ) where+import qualified Data.ProtoLens.Runtime.Control.DeepSeq as Control.DeepSeq+import qualified Data.ProtoLens.Runtime.Data.ProtoLens.Prism as Data.ProtoLens.Prism+import qualified Text.PrettyPrint.GenericPretty.Instance+import qualified GHC.Generics+import qualified Text.PrettyPrint.GenericPretty+import qualified Data.ProtoLens.Runtime.Prelude as Prelude+import qualified Data.ProtoLens.Runtime.Data.Int as Data.Int+import qualified Data.ProtoLens.Runtime.Data.Monoid as Data.Monoid+import qualified Data.ProtoLens.Runtime.Data.Word as Data.Word+import qualified Data.ProtoLens.Runtime.Data.ProtoLens as Data.ProtoLens+import qualified Data.ProtoLens.Runtime.Data.ProtoLens.Encoding.Bytes as Data.ProtoLens.Encoding.Bytes+import qualified Data.ProtoLens.Runtime.Data.ProtoLens.Encoding.Growing as Data.ProtoLens.Encoding.Growing+import qualified Data.ProtoLens.Runtime.Data.ProtoLens.Encoding.Parser.Unsafe as Data.ProtoLens.Encoding.Parser.Unsafe+import qualified Data.ProtoLens.Runtime.Data.ProtoLens.Encoding.Wire as Data.ProtoLens.Encoding.Wire+import qualified Data.ProtoLens.Runtime.Data.ProtoLens.Field as Data.ProtoLens.Field+import qualified Data.ProtoLens.Runtime.Data.ProtoLens.Message.Enum as Data.ProtoLens.Message.Enum+import qualified Data.ProtoLens.Runtime.Data.ProtoLens.Service.Types as Data.ProtoLens.Service.Types+import qualified Data.ProtoLens.Runtime.Lens.Family2 as Lens.Family2+import qualified Data.ProtoLens.Runtime.Lens.Family2.Unchecked as Lens.Family2.Unchecked+import qualified Data.ProtoLens.Runtime.Data.Text as Data.Text+import qualified Data.ProtoLens.Runtime.Data.Map as Data.Map+import qualified Data.ProtoLens.Runtime.Data.ByteString as Data.ByteString+import qualified Data.ProtoLens.Runtime.Data.ByteString.Char8 as Data.ByteString.Char8+import qualified Data.ProtoLens.Runtime.Data.Text.Encoding as Data.Text.Encoding+import qualified Data.ProtoLens.Runtime.Data.Vector as Data.Vector+import qualified Data.ProtoLens.Runtime.Data.Vector.Generic as Data.Vector.Generic+import qualified Data.ProtoLens.Runtime.Data.Vector.Unboxed as Data.Vector.Unboxed+import qualified Data.ProtoLens.Runtime.Text.Read as Text.Read+import qualified Proto.Lnrpc.Ln0+{- | Fields :+ + * 'Proto.Lnrpc.Ln1_Fields.rootShare' @:: Lens' AMP Data.ByteString.ByteString@+ * 'Proto.Lnrpc.Ln1_Fields.setId' @:: Lens' AMP Data.ByteString.ByteString@+ * 'Proto.Lnrpc.Ln1_Fields.childIndex' @:: Lens' AMP Data.Word.Word32@+ * 'Proto.Lnrpc.Ln1_Fields.hash' @:: Lens' AMP Data.ByteString.ByteString@+ * 'Proto.Lnrpc.Ln1_Fields.preimage' @:: Lens' AMP Data.ByteString.ByteString@ -}+data AMP+ = AMP'_constructor {_AMP'rootShare :: !Data.ByteString.ByteString,+ _AMP'setId :: !Data.ByteString.ByteString,+ _AMP'childIndex :: !Data.Word.Word32,+ _AMP'hash :: !Data.ByteString.ByteString,+ _AMP'preimage :: !Data.ByteString.ByteString,+ _AMP'_unknownFields :: !Data.ProtoLens.FieldSet}+ deriving stock (Prelude.Eq, Prelude.Ord, GHC.Generics.Generic)+instance Prelude.Show AMP where+ showsPrec _ __x __s+ = Prelude.showChar+ '{'+ (Prelude.showString+ (Data.ProtoLens.showMessageShort __x) (Prelude.showChar '}' __s))+instance Text.PrettyPrint.GenericPretty.Out AMP+instance Data.ProtoLens.Field.HasField AMP "rootShare" Data.ByteString.ByteString where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _AMP'rootShare (\ x__ y__ -> x__ {_AMP'rootShare = y__}))+ Prelude.id+instance Data.ProtoLens.Field.HasField AMP "setId" Data.ByteString.ByteString where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _AMP'setId (\ x__ y__ -> x__ {_AMP'setId = y__}))+ Prelude.id+instance Data.ProtoLens.Field.HasField AMP "childIndex" Data.Word.Word32 where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _AMP'childIndex (\ x__ y__ -> x__ {_AMP'childIndex = y__}))+ Prelude.id+instance Data.ProtoLens.Field.HasField AMP "hash" Data.ByteString.ByteString where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _AMP'hash (\ x__ y__ -> x__ {_AMP'hash = y__}))+ Prelude.id+instance Data.ProtoLens.Field.HasField AMP "preimage" Data.ByteString.ByteString where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _AMP'preimage (\ x__ y__ -> x__ {_AMP'preimage = y__}))+ Prelude.id+instance Data.ProtoLens.Message AMP where+ messageName _ = Data.Text.pack "lnrpc.AMP"+ packedMessageDescriptor _+ = "\n\+ \\ETXAMP\DC2\GS\n\+ \\n\+ \root_share\CAN\SOH \SOH(\fR\trootShare\DC2\NAK\n\+ \\ACKset_id\CAN\STX \SOH(\fR\ENQsetId\DC2\US\n\+ \\vchild_index\CAN\ETX \SOH(\rR\n\+ \childIndex\DC2\DC2\n\+ \\EOThash\CAN\EOT \SOH(\fR\EOThash\DC2\SUB\n\+ \\bpreimage\CAN\ENQ \SOH(\fR\bpreimage"+ packedFileDescriptor _ = packedFileDescriptor+ fieldsByTag+ = let+ rootShare__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "root_share"+ (Data.ProtoLens.ScalarField Data.ProtoLens.BytesField ::+ Data.ProtoLens.FieldTypeDescriptor Data.ByteString.ByteString)+ (Data.ProtoLens.PlainField+ Data.ProtoLens.Optional+ (Data.ProtoLens.Field.field @"rootShare")) ::+ Data.ProtoLens.FieldDescriptor AMP+ setId__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "set_id"+ (Data.ProtoLens.ScalarField Data.ProtoLens.BytesField ::+ Data.ProtoLens.FieldTypeDescriptor Data.ByteString.ByteString)+ (Data.ProtoLens.PlainField+ Data.ProtoLens.Optional (Data.ProtoLens.Field.field @"setId")) ::+ Data.ProtoLens.FieldDescriptor AMP+ childIndex__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "child_index"+ (Data.ProtoLens.ScalarField Data.ProtoLens.UInt32Field ::+ Data.ProtoLens.FieldTypeDescriptor Data.Word.Word32)+ (Data.ProtoLens.PlainField+ Data.ProtoLens.Optional+ (Data.ProtoLens.Field.field @"childIndex")) ::+ Data.ProtoLens.FieldDescriptor AMP+ hash__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "hash"+ (Data.ProtoLens.ScalarField Data.ProtoLens.BytesField ::+ Data.ProtoLens.FieldTypeDescriptor Data.ByteString.ByteString)+ (Data.ProtoLens.PlainField+ Data.ProtoLens.Optional (Data.ProtoLens.Field.field @"hash")) ::+ Data.ProtoLens.FieldDescriptor AMP+ preimage__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "preimage"+ (Data.ProtoLens.ScalarField Data.ProtoLens.BytesField ::+ Data.ProtoLens.FieldTypeDescriptor Data.ByteString.ByteString)+ (Data.ProtoLens.PlainField+ Data.ProtoLens.Optional+ (Data.ProtoLens.Field.field @"preimage")) ::+ Data.ProtoLens.FieldDescriptor AMP+ in+ Data.Map.fromList+ [(Data.ProtoLens.Tag 1, rootShare__field_descriptor),+ (Data.ProtoLens.Tag 2, setId__field_descriptor),+ (Data.ProtoLens.Tag 3, childIndex__field_descriptor),+ (Data.ProtoLens.Tag 4, hash__field_descriptor),+ (Data.ProtoLens.Tag 5, preimage__field_descriptor)]+ unknownFields+ = Lens.Family2.Unchecked.lens+ _AMP'_unknownFields (\ x__ y__ -> x__ {_AMP'_unknownFields = y__})+ defMessage+ = AMP'_constructor+ {_AMP'rootShare = Data.ProtoLens.fieldDefault,+ _AMP'setId = Data.ProtoLens.fieldDefault,+ _AMP'childIndex = Data.ProtoLens.fieldDefault,+ _AMP'hash = Data.ProtoLens.fieldDefault,+ _AMP'preimage = Data.ProtoLens.fieldDefault,+ _AMP'_unknownFields = []}+ parseMessage+ = let+ loop :: AMP -> Data.ProtoLens.Encoding.Bytes.Parser AMP+ loop x+ = do end <- Data.ProtoLens.Encoding.Bytes.atEnd+ if end then+ do (let missing = []+ in+ if Prelude.null missing then+ Prelude.return ()+ else+ Prelude.fail+ ((Prelude.++)+ "Missing required fields: "+ (Prelude.show (missing :: [Prelude.String]))))+ Prelude.return+ (Lens.Family2.over+ Data.ProtoLens.unknownFields (\ !t -> Prelude.reverse t) x)+ else+ do tag <- Data.ProtoLens.Encoding.Bytes.getVarInt+ case tag of+ 10+ -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (do len <- Data.ProtoLens.Encoding.Bytes.getVarInt+ Data.ProtoLens.Encoding.Bytes.getBytes+ (Prelude.fromIntegral len))+ "root_share"+ loop+ (Lens.Family2.set (Data.ProtoLens.Field.field @"rootShare") y x)+ 18+ -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (do len <- Data.ProtoLens.Encoding.Bytes.getVarInt+ Data.ProtoLens.Encoding.Bytes.getBytes+ (Prelude.fromIntegral len))+ "set_id"+ loop (Lens.Family2.set (Data.ProtoLens.Field.field @"setId") y x)+ 24+ -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (Prelude.fmap+ Prelude.fromIntegral+ Data.ProtoLens.Encoding.Bytes.getVarInt)+ "child_index"+ loop+ (Lens.Family2.set (Data.ProtoLens.Field.field @"childIndex") y x)+ 34+ -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (do len <- Data.ProtoLens.Encoding.Bytes.getVarInt+ Data.ProtoLens.Encoding.Bytes.getBytes+ (Prelude.fromIntegral len))+ "hash"+ loop (Lens.Family2.set (Data.ProtoLens.Field.field @"hash") y x)+ 42+ -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (do len <- Data.ProtoLens.Encoding.Bytes.getVarInt+ Data.ProtoLens.Encoding.Bytes.getBytes+ (Prelude.fromIntegral len))+ "preimage"+ loop+ (Lens.Family2.set (Data.ProtoLens.Field.field @"preimage") y x)+ wire+ -> do !y <- Data.ProtoLens.Encoding.Wire.parseTaggedValueFromWire+ wire+ loop+ (Lens.Family2.over+ Data.ProtoLens.unknownFields (\ !t -> (:) y t) x)+ in+ (Data.ProtoLens.Encoding.Bytes.<?>)+ (do loop Data.ProtoLens.defMessage) "AMP"+ buildMessage+ = \ _x+ -> (Data.Monoid.<>)+ (let+ _v = Lens.Family2.view (Data.ProtoLens.Field.field @"rootShare") _x+ in+ if (Prelude.==) _v Data.ProtoLens.fieldDefault then+ Data.Monoid.mempty+ else+ (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 10)+ ((\ bs+ -> (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt+ (Prelude.fromIntegral (Data.ByteString.length bs)))+ (Data.ProtoLens.Encoding.Bytes.putBytes bs))+ _v))+ ((Data.Monoid.<>)+ (let+ _v = Lens.Family2.view (Data.ProtoLens.Field.field @"setId") _x+ in+ if (Prelude.==) _v Data.ProtoLens.fieldDefault then+ Data.Monoid.mempty+ else+ (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 18)+ ((\ bs+ -> (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt+ (Prelude.fromIntegral (Data.ByteString.length bs)))+ (Data.ProtoLens.Encoding.Bytes.putBytes bs))+ _v))+ ((Data.Monoid.<>)+ (let+ _v+ = Lens.Family2.view (Data.ProtoLens.Field.field @"childIndex") _x+ in+ if (Prelude.==) _v Data.ProtoLens.fieldDefault then+ Data.Monoid.mempty+ else+ (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 24)+ ((Prelude..)+ Data.ProtoLens.Encoding.Bytes.putVarInt Prelude.fromIntegral _v))+ ((Data.Monoid.<>)+ (let _v = Lens.Family2.view (Data.ProtoLens.Field.field @"hash") _x+ in+ if (Prelude.==) _v Data.ProtoLens.fieldDefault then+ Data.Monoid.mempty+ else+ (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 34)+ ((\ bs+ -> (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt+ (Prelude.fromIntegral (Data.ByteString.length bs)))+ (Data.ProtoLens.Encoding.Bytes.putBytes bs))+ _v))+ ((Data.Monoid.<>)+ (let+ _v = Lens.Family2.view (Data.ProtoLens.Field.field @"preimage") _x+ in+ if (Prelude.==) _v Data.ProtoLens.fieldDefault then+ Data.Monoid.mempty+ else+ (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 42)+ ((\ bs+ -> (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt+ (Prelude.fromIntegral (Data.ByteString.length bs)))+ (Data.ProtoLens.Encoding.Bytes.putBytes bs))+ _v))+ (Data.ProtoLens.Encoding.Wire.buildFieldSet+ (Lens.Family2.view Data.ProtoLens.unknownFields _x))))))+instance Control.DeepSeq.NFData AMP where+ rnf+ = \ x__+ -> Control.DeepSeq.deepseq+ (_AMP'_unknownFields x__)+ (Control.DeepSeq.deepseq+ (_AMP'rootShare x__)+ (Control.DeepSeq.deepseq+ (_AMP'setId x__)+ (Control.DeepSeq.deepseq+ (_AMP'childIndex x__)+ (Control.DeepSeq.deepseq+ (_AMP'hash x__)+ (Control.DeepSeq.deepseq (_AMP'preimage x__) ())))))+{- | Fields :+ + * 'Proto.Lnrpc.Ln1_Fields.state' @:: Lens' AMPInvoiceState InvoiceHTLCState@+ * 'Proto.Lnrpc.Ln1_Fields.settleIndex' @:: Lens' AMPInvoiceState Data.Word.Word64@+ * 'Proto.Lnrpc.Ln1_Fields.settleTime' @:: Lens' AMPInvoiceState Data.Int.Int64@+ * 'Proto.Lnrpc.Ln1_Fields.amtPaidMsat' @:: Lens' AMPInvoiceState Data.Int.Int64@ -}+data AMPInvoiceState+ = AMPInvoiceState'_constructor {_AMPInvoiceState'state :: !InvoiceHTLCState,+ _AMPInvoiceState'settleIndex :: !Data.Word.Word64,+ _AMPInvoiceState'settleTime :: !Data.Int.Int64,+ _AMPInvoiceState'amtPaidMsat :: !Data.Int.Int64,+ _AMPInvoiceState'_unknownFields :: !Data.ProtoLens.FieldSet}+ deriving stock (Prelude.Eq, Prelude.Ord, GHC.Generics.Generic)+instance Prelude.Show AMPInvoiceState where+ showsPrec _ __x __s+ = Prelude.showChar+ '{'+ (Prelude.showString+ (Data.ProtoLens.showMessageShort __x) (Prelude.showChar '}' __s))+instance Text.PrettyPrint.GenericPretty.Out AMPInvoiceState+instance Data.ProtoLens.Field.HasField AMPInvoiceState "state" InvoiceHTLCState where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _AMPInvoiceState'state+ (\ x__ y__ -> x__ {_AMPInvoiceState'state = y__}))+ Prelude.id+instance Data.ProtoLens.Field.HasField AMPInvoiceState "settleIndex" Data.Word.Word64 where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _AMPInvoiceState'settleIndex+ (\ x__ y__ -> x__ {_AMPInvoiceState'settleIndex = y__}))+ Prelude.id+instance Data.ProtoLens.Field.HasField AMPInvoiceState "settleTime" Data.Int.Int64 where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _AMPInvoiceState'settleTime+ (\ x__ y__ -> x__ {_AMPInvoiceState'settleTime = y__}))+ Prelude.id+instance Data.ProtoLens.Field.HasField AMPInvoiceState "amtPaidMsat" Data.Int.Int64 where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _AMPInvoiceState'amtPaidMsat+ (\ x__ y__ -> x__ {_AMPInvoiceState'amtPaidMsat = y__}))+ Prelude.id+instance Data.ProtoLens.Message AMPInvoiceState where+ messageName _ = Data.Text.pack "lnrpc.AMPInvoiceState"+ packedMessageDescriptor _+ = "\n\+ \\SIAMPInvoiceState\DC2-\n\+ \\ENQstate\CAN\SOH \SOH(\SO2\ETB.lnrpc.InvoiceHTLCStateR\ENQstate\DC2!\n\+ \\fsettle_index\CAN\STX \SOH(\EOTR\vsettleIndex\DC2\US\n\+ \\vsettle_time\CAN\ETX \SOH(\ETXR\n\+ \settleTime\DC2\"\n\+ \\ramt_paid_msat\CAN\ENQ \SOH(\ETXR\vamtPaidMsat"+ packedFileDescriptor _ = packedFileDescriptor+ fieldsByTag+ = let+ state__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "state"+ (Data.ProtoLens.ScalarField Data.ProtoLens.EnumField ::+ Data.ProtoLens.FieldTypeDescriptor InvoiceHTLCState)+ (Data.ProtoLens.PlainField+ Data.ProtoLens.Optional (Data.ProtoLens.Field.field @"state")) ::+ Data.ProtoLens.FieldDescriptor AMPInvoiceState+ settleIndex__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "settle_index"+ (Data.ProtoLens.ScalarField Data.ProtoLens.UInt64Field ::+ Data.ProtoLens.FieldTypeDescriptor Data.Word.Word64)+ (Data.ProtoLens.PlainField+ Data.ProtoLens.Optional+ (Data.ProtoLens.Field.field @"settleIndex")) ::+ Data.ProtoLens.FieldDescriptor AMPInvoiceState+ settleTime__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "settle_time"+ (Data.ProtoLens.ScalarField Data.ProtoLens.Int64Field ::+ Data.ProtoLens.FieldTypeDescriptor Data.Int.Int64)+ (Data.ProtoLens.PlainField+ Data.ProtoLens.Optional+ (Data.ProtoLens.Field.field @"settleTime")) ::+ Data.ProtoLens.FieldDescriptor AMPInvoiceState+ amtPaidMsat__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "amt_paid_msat"+ (Data.ProtoLens.ScalarField Data.ProtoLens.Int64Field ::+ Data.ProtoLens.FieldTypeDescriptor Data.Int.Int64)+ (Data.ProtoLens.PlainField+ Data.ProtoLens.Optional+ (Data.ProtoLens.Field.field @"amtPaidMsat")) ::+ Data.ProtoLens.FieldDescriptor AMPInvoiceState+ in+ Data.Map.fromList+ [(Data.ProtoLens.Tag 1, state__field_descriptor),+ (Data.ProtoLens.Tag 2, settleIndex__field_descriptor),+ (Data.ProtoLens.Tag 3, settleTime__field_descriptor),+ (Data.ProtoLens.Tag 5, amtPaidMsat__field_descriptor)]+ unknownFields+ = Lens.Family2.Unchecked.lens+ _AMPInvoiceState'_unknownFields+ (\ x__ y__ -> x__ {_AMPInvoiceState'_unknownFields = y__})+ defMessage+ = AMPInvoiceState'_constructor+ {_AMPInvoiceState'state = Data.ProtoLens.fieldDefault,+ _AMPInvoiceState'settleIndex = Data.ProtoLens.fieldDefault,+ _AMPInvoiceState'settleTime = Data.ProtoLens.fieldDefault,+ _AMPInvoiceState'amtPaidMsat = Data.ProtoLens.fieldDefault,+ _AMPInvoiceState'_unknownFields = []}+ parseMessage+ = let+ loop ::+ AMPInvoiceState+ -> Data.ProtoLens.Encoding.Bytes.Parser AMPInvoiceState+ loop x+ = do end <- Data.ProtoLens.Encoding.Bytes.atEnd+ if end then+ do (let missing = []+ in+ if Prelude.null missing then+ Prelude.return ()+ else+ Prelude.fail+ ((Prelude.++)+ "Missing required fields: "+ (Prelude.show (missing :: [Prelude.String]))))+ Prelude.return+ (Lens.Family2.over+ Data.ProtoLens.unknownFields (\ !t -> Prelude.reverse t) x)+ else+ do tag <- Data.ProtoLens.Encoding.Bytes.getVarInt+ case tag of+ 8 -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (Prelude.fmap+ Prelude.toEnum+ (Prelude.fmap+ Prelude.fromIntegral+ Data.ProtoLens.Encoding.Bytes.getVarInt))+ "state"+ loop (Lens.Family2.set (Data.ProtoLens.Field.field @"state") y x)+ 16+ -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ Data.ProtoLens.Encoding.Bytes.getVarInt "settle_index"+ loop+ (Lens.Family2.set (Data.ProtoLens.Field.field @"settleIndex") y x)+ 24+ -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (Prelude.fmap+ Prelude.fromIntegral+ Data.ProtoLens.Encoding.Bytes.getVarInt)+ "settle_time"+ loop+ (Lens.Family2.set (Data.ProtoLens.Field.field @"settleTime") y x)+ 40+ -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (Prelude.fmap+ Prelude.fromIntegral+ Data.ProtoLens.Encoding.Bytes.getVarInt)+ "amt_paid_msat"+ loop+ (Lens.Family2.set (Data.ProtoLens.Field.field @"amtPaidMsat") y x)+ wire+ -> do !y <- Data.ProtoLens.Encoding.Wire.parseTaggedValueFromWire+ wire+ loop+ (Lens.Family2.over+ Data.ProtoLens.unknownFields (\ !t -> (:) y t) x)+ in+ (Data.ProtoLens.Encoding.Bytes.<?>)+ (do loop Data.ProtoLens.defMessage) "AMPInvoiceState"+ buildMessage+ = \ _x+ -> (Data.Monoid.<>)+ (let+ _v = Lens.Family2.view (Data.ProtoLens.Field.field @"state") _x+ in+ if (Prelude.==) _v Data.ProtoLens.fieldDefault then+ Data.Monoid.mempty+ else+ (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 8)+ ((Prelude..)+ ((Prelude..)+ Data.ProtoLens.Encoding.Bytes.putVarInt Prelude.fromIntegral)+ Prelude.fromEnum _v))+ ((Data.Monoid.<>)+ (let+ _v+ = Lens.Family2.view (Data.ProtoLens.Field.field @"settleIndex") _x+ in+ if (Prelude.==) _v Data.ProtoLens.fieldDefault then+ Data.Monoid.mempty+ else+ (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 16)+ (Data.ProtoLens.Encoding.Bytes.putVarInt _v))+ ((Data.Monoid.<>)+ (let+ _v+ = Lens.Family2.view (Data.ProtoLens.Field.field @"settleTime") _x+ in+ if (Prelude.==) _v Data.ProtoLens.fieldDefault then+ Data.Monoid.mempty+ else+ (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 24)+ ((Prelude..)+ Data.ProtoLens.Encoding.Bytes.putVarInt Prelude.fromIntegral _v))+ ((Data.Monoid.<>)+ (let+ _v+ = Lens.Family2.view (Data.ProtoLens.Field.field @"amtPaidMsat") _x+ in+ if (Prelude.==) _v Data.ProtoLens.fieldDefault then+ Data.Monoid.mempty+ else+ (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 40)+ ((Prelude..)+ Data.ProtoLens.Encoding.Bytes.putVarInt Prelude.fromIntegral _v))+ (Data.ProtoLens.Encoding.Wire.buildFieldSet+ (Lens.Family2.view Data.ProtoLens.unknownFields _x)))))+instance Control.DeepSeq.NFData AMPInvoiceState where+ rnf+ = \ x__+ -> Control.DeepSeq.deepseq+ (_AMPInvoiceState'_unknownFields x__)+ (Control.DeepSeq.deepseq+ (_AMPInvoiceState'state x__)+ (Control.DeepSeq.deepseq+ (_AMPInvoiceState'settleIndex x__)+ (Control.DeepSeq.deepseq+ (_AMPInvoiceState'settleTime x__)+ (Control.DeepSeq.deepseq (_AMPInvoiceState'amtPaidMsat x__) ()))))+{- | Fields :+ + * 'Proto.Lnrpc.Ln1_Fields.channelPoint' @:: Lens' AbandonChannelRequest Proto.Lnrpc.Ln0.ChannelPoint@+ * 'Proto.Lnrpc.Ln1_Fields.maybe'channelPoint' @:: Lens' AbandonChannelRequest (Prelude.Maybe Proto.Lnrpc.Ln0.ChannelPoint)@+ * 'Proto.Lnrpc.Ln1_Fields.pendingFundingShimOnly' @:: Lens' AbandonChannelRequest Prelude.Bool@+ * 'Proto.Lnrpc.Ln1_Fields.iKnowWhatIAmDoing' @:: Lens' AbandonChannelRequest Prelude.Bool@ -}+data AbandonChannelRequest+ = AbandonChannelRequest'_constructor {_AbandonChannelRequest'channelPoint :: !(Prelude.Maybe Proto.Lnrpc.Ln0.ChannelPoint),+ _AbandonChannelRequest'pendingFundingShimOnly :: !Prelude.Bool,+ _AbandonChannelRequest'iKnowWhatIAmDoing :: !Prelude.Bool,+ _AbandonChannelRequest'_unknownFields :: !Data.ProtoLens.FieldSet}+ deriving stock (Prelude.Eq, Prelude.Ord, GHC.Generics.Generic)+instance Prelude.Show AbandonChannelRequest where+ showsPrec _ __x __s+ = Prelude.showChar+ '{'+ (Prelude.showString+ (Data.ProtoLens.showMessageShort __x) (Prelude.showChar '}' __s))+instance Text.PrettyPrint.GenericPretty.Out AbandonChannelRequest+instance Data.ProtoLens.Field.HasField AbandonChannelRequest "channelPoint" Proto.Lnrpc.Ln0.ChannelPoint where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _AbandonChannelRequest'channelPoint+ (\ x__ y__ -> x__ {_AbandonChannelRequest'channelPoint = y__}))+ (Data.ProtoLens.maybeLens Data.ProtoLens.defMessage)+instance Data.ProtoLens.Field.HasField AbandonChannelRequest "maybe'channelPoint" (Prelude.Maybe Proto.Lnrpc.Ln0.ChannelPoint) where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _AbandonChannelRequest'channelPoint+ (\ x__ y__ -> x__ {_AbandonChannelRequest'channelPoint = y__}))+ Prelude.id+instance Data.ProtoLens.Field.HasField AbandonChannelRequest "pendingFundingShimOnly" Prelude.Bool where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _AbandonChannelRequest'pendingFundingShimOnly+ (\ x__ y__+ -> x__ {_AbandonChannelRequest'pendingFundingShimOnly = y__}))+ Prelude.id+instance Data.ProtoLens.Field.HasField AbandonChannelRequest "iKnowWhatIAmDoing" Prelude.Bool where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _AbandonChannelRequest'iKnowWhatIAmDoing+ (\ x__ y__+ -> x__ {_AbandonChannelRequest'iKnowWhatIAmDoing = y__}))+ Prelude.id+instance Data.ProtoLens.Message AbandonChannelRequest where+ messageName _ = Data.Text.pack "lnrpc.AbandonChannelRequest"+ packedMessageDescriptor _+ = "\n\+ \\NAKAbandonChannelRequest\DC28\n\+ \\rchannel_point\CAN\SOH \SOH(\v2\DC3.lnrpc.ChannelPointR\fchannelPoint\DC29\n\+ \\EMpending_funding_shim_only\CAN\STX \SOH(\bR\SYNpendingFundingShimOnly\DC21\n\+ \\SYNi_know_what_i_am_doing\CAN\ETX \SOH(\bR\DC1iKnowWhatIAmDoing"+ packedFileDescriptor _ = packedFileDescriptor+ fieldsByTag+ = let+ channelPoint__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "channel_point"+ (Data.ProtoLens.MessageField Data.ProtoLens.MessageType ::+ Data.ProtoLens.FieldTypeDescriptor Proto.Lnrpc.Ln0.ChannelPoint)+ (Data.ProtoLens.OptionalField+ (Data.ProtoLens.Field.field @"maybe'channelPoint")) ::+ Data.ProtoLens.FieldDescriptor AbandonChannelRequest+ pendingFundingShimOnly__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "pending_funding_shim_only"+ (Data.ProtoLens.ScalarField Data.ProtoLens.BoolField ::+ Data.ProtoLens.FieldTypeDescriptor Prelude.Bool)+ (Data.ProtoLens.PlainField+ Data.ProtoLens.Optional+ (Data.ProtoLens.Field.field @"pendingFundingShimOnly")) ::+ Data.ProtoLens.FieldDescriptor AbandonChannelRequest+ iKnowWhatIAmDoing__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "i_know_what_i_am_doing"+ (Data.ProtoLens.ScalarField Data.ProtoLens.BoolField ::+ Data.ProtoLens.FieldTypeDescriptor Prelude.Bool)+ (Data.ProtoLens.PlainField+ Data.ProtoLens.Optional+ (Data.ProtoLens.Field.field @"iKnowWhatIAmDoing")) ::+ Data.ProtoLens.FieldDescriptor AbandonChannelRequest+ in+ Data.Map.fromList+ [(Data.ProtoLens.Tag 1, channelPoint__field_descriptor),+ (Data.ProtoLens.Tag 2, pendingFundingShimOnly__field_descriptor),+ (Data.ProtoLens.Tag 3, iKnowWhatIAmDoing__field_descriptor)]+ unknownFields+ = Lens.Family2.Unchecked.lens+ _AbandonChannelRequest'_unknownFields+ (\ x__ y__ -> x__ {_AbandonChannelRequest'_unknownFields = y__})+ defMessage+ = AbandonChannelRequest'_constructor+ {_AbandonChannelRequest'channelPoint = Prelude.Nothing,+ _AbandonChannelRequest'pendingFundingShimOnly = Data.ProtoLens.fieldDefault,+ _AbandonChannelRequest'iKnowWhatIAmDoing = Data.ProtoLens.fieldDefault,+ _AbandonChannelRequest'_unknownFields = []}+ parseMessage+ = let+ loop ::+ AbandonChannelRequest+ -> Data.ProtoLens.Encoding.Bytes.Parser AbandonChannelRequest+ loop x+ = do end <- Data.ProtoLens.Encoding.Bytes.atEnd+ if end then+ do (let missing = []+ in+ if Prelude.null missing then+ Prelude.return ()+ else+ Prelude.fail+ ((Prelude.++)+ "Missing required fields: "+ (Prelude.show (missing :: [Prelude.String]))))+ Prelude.return+ (Lens.Family2.over+ Data.ProtoLens.unknownFields (\ !t -> Prelude.reverse t) x)+ else+ do tag <- Data.ProtoLens.Encoding.Bytes.getVarInt+ case tag of+ 10+ -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (do len <- Data.ProtoLens.Encoding.Bytes.getVarInt+ Data.ProtoLens.Encoding.Bytes.isolate+ (Prelude.fromIntegral len) Data.ProtoLens.parseMessage)+ "channel_point"+ loop+ (Lens.Family2.set+ (Data.ProtoLens.Field.field @"channelPoint") y x)+ 16+ -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (Prelude.fmap+ ((Prelude./=) 0) Data.ProtoLens.Encoding.Bytes.getVarInt)+ "pending_funding_shim_only"+ loop+ (Lens.Family2.set+ (Data.ProtoLens.Field.field @"pendingFundingShimOnly") y x)+ 24+ -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (Prelude.fmap+ ((Prelude./=) 0) Data.ProtoLens.Encoding.Bytes.getVarInt)+ "i_know_what_i_am_doing"+ loop+ (Lens.Family2.set+ (Data.ProtoLens.Field.field @"iKnowWhatIAmDoing") y x)+ wire+ -> do !y <- Data.ProtoLens.Encoding.Wire.parseTaggedValueFromWire+ wire+ loop+ (Lens.Family2.over+ Data.ProtoLens.unknownFields (\ !t -> (:) y t) x)+ in+ (Data.ProtoLens.Encoding.Bytes.<?>)+ (do loop Data.ProtoLens.defMessage) "AbandonChannelRequest"+ buildMessage+ = \ _x+ -> (Data.Monoid.<>)+ (case+ Lens.Family2.view+ (Data.ProtoLens.Field.field @"maybe'channelPoint") _x+ of+ Prelude.Nothing -> Data.Monoid.mempty+ (Prelude.Just _v)+ -> (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 10)+ ((Prelude..)+ (\ bs+ -> (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt+ (Prelude.fromIntegral (Data.ByteString.length bs)))+ (Data.ProtoLens.Encoding.Bytes.putBytes bs))+ Data.ProtoLens.encodeMessage _v))+ ((Data.Monoid.<>)+ (let+ _v+ = Lens.Family2.view+ (Data.ProtoLens.Field.field @"pendingFundingShimOnly") _x+ in+ if (Prelude.==) _v Data.ProtoLens.fieldDefault then+ Data.Monoid.mempty+ else+ (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 16)+ ((Prelude..)+ Data.ProtoLens.Encoding.Bytes.putVarInt (\ b -> if b then 1 else 0)+ _v))+ ((Data.Monoid.<>)+ (let+ _v+ = Lens.Family2.view+ (Data.ProtoLens.Field.field @"iKnowWhatIAmDoing") _x+ in+ if (Prelude.==) _v Data.ProtoLens.fieldDefault then+ Data.Monoid.mempty+ else+ (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 24)+ ((Prelude..)+ Data.ProtoLens.Encoding.Bytes.putVarInt (\ b -> if b then 1 else 0)+ _v))+ (Data.ProtoLens.Encoding.Wire.buildFieldSet+ (Lens.Family2.view Data.ProtoLens.unknownFields _x))))+instance Control.DeepSeq.NFData AbandonChannelRequest where+ rnf+ = \ x__+ -> Control.DeepSeq.deepseq+ (_AbandonChannelRequest'_unknownFields x__)+ (Control.DeepSeq.deepseq+ (_AbandonChannelRequest'channelPoint x__)+ (Control.DeepSeq.deepseq+ (_AbandonChannelRequest'pendingFundingShimOnly x__)+ (Control.DeepSeq.deepseq+ (_AbandonChannelRequest'iKnowWhatIAmDoing x__) ())))+{- | Fields :+ -}+data AbandonChannelResponse+ = AbandonChannelResponse'_constructor {_AbandonChannelResponse'_unknownFields :: !Data.ProtoLens.FieldSet}+ deriving stock (Prelude.Eq, Prelude.Ord, GHC.Generics.Generic)+instance Prelude.Show AbandonChannelResponse where+ showsPrec _ __x __s+ = Prelude.showChar+ '{'+ (Prelude.showString+ (Data.ProtoLens.showMessageShort __x) (Prelude.showChar '}' __s))+instance Text.PrettyPrint.GenericPretty.Out AbandonChannelResponse+instance Data.ProtoLens.Message AbandonChannelResponse where+ messageName _ = Data.Text.pack "lnrpc.AbandonChannelResponse"+ packedMessageDescriptor _+ = "\n\+ \\SYNAbandonChannelResponse"+ packedFileDescriptor _ = packedFileDescriptor+ fieldsByTag = let in Data.Map.fromList []+ unknownFields+ = Lens.Family2.Unchecked.lens+ _AbandonChannelResponse'_unknownFields+ (\ x__ y__ -> x__ {_AbandonChannelResponse'_unknownFields = y__})+ defMessage+ = AbandonChannelResponse'_constructor+ {_AbandonChannelResponse'_unknownFields = []}+ parseMessage+ = let+ loop ::+ AbandonChannelResponse+ -> Data.ProtoLens.Encoding.Bytes.Parser AbandonChannelResponse+ loop x+ = do end <- Data.ProtoLens.Encoding.Bytes.atEnd+ if end then+ do (let missing = []+ in+ if Prelude.null missing then+ Prelude.return ()+ else+ Prelude.fail+ ((Prelude.++)+ "Missing required fields: "+ (Prelude.show (missing :: [Prelude.String]))))+ Prelude.return+ (Lens.Family2.over+ Data.ProtoLens.unknownFields (\ !t -> Prelude.reverse t) x)+ else+ do tag <- Data.ProtoLens.Encoding.Bytes.getVarInt+ case tag of {+ wire+ -> do !y <- Data.ProtoLens.Encoding.Wire.parseTaggedValueFromWire+ wire+ loop+ (Lens.Family2.over+ Data.ProtoLens.unknownFields (\ !t -> (:) y t) x) }+ in+ (Data.ProtoLens.Encoding.Bytes.<?>)+ (do loop Data.ProtoLens.defMessage) "AbandonChannelResponse"+ buildMessage+ = \ _x+ -> Data.ProtoLens.Encoding.Wire.buildFieldSet+ (Lens.Family2.view Data.ProtoLens.unknownFields _x)+instance Control.DeepSeq.NFData AbandonChannelResponse where+ rnf+ = \ x__+ -> Control.DeepSeq.deepseq+ (_AbandonChannelResponse'_unknownFields x__) ()+{- | Fields :+ + * 'Proto.Lnrpc.Ln1_Fields.rHash' @:: Lens' AddInvoiceResponse Data.ByteString.ByteString@+ * 'Proto.Lnrpc.Ln1_Fields.paymentRequest' @:: Lens' AddInvoiceResponse Data.Text.Text@+ * 'Proto.Lnrpc.Ln1_Fields.addIndex' @:: Lens' AddInvoiceResponse Data.Word.Word64@+ * 'Proto.Lnrpc.Ln1_Fields.paymentAddr' @:: Lens' AddInvoiceResponse Data.ByteString.ByteString@ -}+data AddInvoiceResponse+ = AddInvoiceResponse'_constructor {_AddInvoiceResponse'rHash :: !Data.ByteString.ByteString,+ _AddInvoiceResponse'paymentRequest :: !Data.Text.Text,+ _AddInvoiceResponse'addIndex :: !Data.Word.Word64,+ _AddInvoiceResponse'paymentAddr :: !Data.ByteString.ByteString,+ _AddInvoiceResponse'_unknownFields :: !Data.ProtoLens.FieldSet}+ deriving stock (Prelude.Eq, Prelude.Ord, GHC.Generics.Generic)+instance Prelude.Show AddInvoiceResponse where+ showsPrec _ __x __s+ = Prelude.showChar+ '{'+ (Prelude.showString+ (Data.ProtoLens.showMessageShort __x) (Prelude.showChar '}' __s))+instance Text.PrettyPrint.GenericPretty.Out AddInvoiceResponse+instance Data.ProtoLens.Field.HasField AddInvoiceResponse "rHash" Data.ByteString.ByteString where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _AddInvoiceResponse'rHash+ (\ x__ y__ -> x__ {_AddInvoiceResponse'rHash = y__}))+ Prelude.id+instance Data.ProtoLens.Field.HasField AddInvoiceResponse "paymentRequest" Data.Text.Text where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _AddInvoiceResponse'paymentRequest+ (\ x__ y__ -> x__ {_AddInvoiceResponse'paymentRequest = y__}))+ Prelude.id+instance Data.ProtoLens.Field.HasField AddInvoiceResponse "addIndex" Data.Word.Word64 where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _AddInvoiceResponse'addIndex+ (\ x__ y__ -> x__ {_AddInvoiceResponse'addIndex = y__}))+ Prelude.id+instance Data.ProtoLens.Field.HasField AddInvoiceResponse "paymentAddr" Data.ByteString.ByteString where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _AddInvoiceResponse'paymentAddr+ (\ x__ y__ -> x__ {_AddInvoiceResponse'paymentAddr = y__}))+ Prelude.id+instance Data.ProtoLens.Message AddInvoiceResponse where+ messageName _ = Data.Text.pack "lnrpc.AddInvoiceResponse"+ packedMessageDescriptor _+ = "\n\+ \\DC2AddInvoiceResponse\DC2\NAK\n\+ \\ACKr_hash\CAN\SOH \SOH(\fR\ENQrHash\DC2'\n\+ \\SIpayment_request\CAN\STX \SOH(\tR\SOpaymentRequest\DC2\ESC\n\+ \\tadd_index\CAN\DLE \SOH(\EOTR\baddIndex\DC2!\n\+ \\fpayment_addr\CAN\DC1 \SOH(\fR\vpaymentAddr"+ packedFileDescriptor _ = packedFileDescriptor+ fieldsByTag+ = let+ rHash__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "r_hash"+ (Data.ProtoLens.ScalarField Data.ProtoLens.BytesField ::+ Data.ProtoLens.FieldTypeDescriptor Data.ByteString.ByteString)+ (Data.ProtoLens.PlainField+ Data.ProtoLens.Optional (Data.ProtoLens.Field.field @"rHash")) ::+ Data.ProtoLens.FieldDescriptor AddInvoiceResponse+ paymentRequest__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "payment_request"+ (Data.ProtoLens.ScalarField Data.ProtoLens.StringField ::+ Data.ProtoLens.FieldTypeDescriptor Data.Text.Text)+ (Data.ProtoLens.PlainField+ Data.ProtoLens.Optional+ (Data.ProtoLens.Field.field @"paymentRequest")) ::+ Data.ProtoLens.FieldDescriptor AddInvoiceResponse+ addIndex__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "add_index"+ (Data.ProtoLens.ScalarField Data.ProtoLens.UInt64Field ::+ Data.ProtoLens.FieldTypeDescriptor Data.Word.Word64)+ (Data.ProtoLens.PlainField+ Data.ProtoLens.Optional+ (Data.ProtoLens.Field.field @"addIndex")) ::+ Data.ProtoLens.FieldDescriptor AddInvoiceResponse+ paymentAddr__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "payment_addr"+ (Data.ProtoLens.ScalarField Data.ProtoLens.BytesField ::+ Data.ProtoLens.FieldTypeDescriptor Data.ByteString.ByteString)+ (Data.ProtoLens.PlainField+ Data.ProtoLens.Optional+ (Data.ProtoLens.Field.field @"paymentAddr")) ::+ Data.ProtoLens.FieldDescriptor AddInvoiceResponse+ in+ Data.Map.fromList+ [(Data.ProtoLens.Tag 1, rHash__field_descriptor),+ (Data.ProtoLens.Tag 2, paymentRequest__field_descriptor),+ (Data.ProtoLens.Tag 16, addIndex__field_descriptor),+ (Data.ProtoLens.Tag 17, paymentAddr__field_descriptor)]+ unknownFields+ = Lens.Family2.Unchecked.lens+ _AddInvoiceResponse'_unknownFields+ (\ x__ y__ -> x__ {_AddInvoiceResponse'_unknownFields = y__})+ defMessage+ = AddInvoiceResponse'_constructor+ {_AddInvoiceResponse'rHash = Data.ProtoLens.fieldDefault,+ _AddInvoiceResponse'paymentRequest = Data.ProtoLens.fieldDefault,+ _AddInvoiceResponse'addIndex = Data.ProtoLens.fieldDefault,+ _AddInvoiceResponse'paymentAddr = Data.ProtoLens.fieldDefault,+ _AddInvoiceResponse'_unknownFields = []}+ parseMessage+ = let+ loop ::+ AddInvoiceResponse+ -> Data.ProtoLens.Encoding.Bytes.Parser AddInvoiceResponse+ loop x+ = do end <- Data.ProtoLens.Encoding.Bytes.atEnd+ if end then+ do (let missing = []+ in+ if Prelude.null missing then+ Prelude.return ()+ else+ Prelude.fail+ ((Prelude.++)+ "Missing required fields: "+ (Prelude.show (missing :: [Prelude.String]))))+ Prelude.return+ (Lens.Family2.over+ Data.ProtoLens.unknownFields (\ !t -> Prelude.reverse t) x)+ else+ do tag <- Data.ProtoLens.Encoding.Bytes.getVarInt+ case tag of+ 10+ -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (do len <- Data.ProtoLens.Encoding.Bytes.getVarInt+ Data.ProtoLens.Encoding.Bytes.getBytes+ (Prelude.fromIntegral len))+ "r_hash"+ loop (Lens.Family2.set (Data.ProtoLens.Field.field @"rHash") y x)+ 18+ -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (do value <- do len <- Data.ProtoLens.Encoding.Bytes.getVarInt+ Data.ProtoLens.Encoding.Bytes.getBytes+ (Prelude.fromIntegral len)+ Data.ProtoLens.Encoding.Bytes.runEither+ (case Data.Text.Encoding.decodeUtf8' value of+ (Prelude.Left err)+ -> Prelude.Left (Prelude.show err)+ (Prelude.Right r) -> Prelude.Right r))+ "payment_request"+ loop+ (Lens.Family2.set+ (Data.ProtoLens.Field.field @"paymentRequest") y x)+ 128+ -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ Data.ProtoLens.Encoding.Bytes.getVarInt "add_index"+ loop+ (Lens.Family2.set (Data.ProtoLens.Field.field @"addIndex") y x)+ 138+ -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (do len <- Data.ProtoLens.Encoding.Bytes.getVarInt+ Data.ProtoLens.Encoding.Bytes.getBytes+ (Prelude.fromIntegral len))+ "payment_addr"+ loop+ (Lens.Family2.set (Data.ProtoLens.Field.field @"paymentAddr") y x)+ wire+ -> do !y <- Data.ProtoLens.Encoding.Wire.parseTaggedValueFromWire+ wire+ loop+ (Lens.Family2.over+ Data.ProtoLens.unknownFields (\ !t -> (:) y t) x)+ in+ (Data.ProtoLens.Encoding.Bytes.<?>)+ (do loop Data.ProtoLens.defMessage) "AddInvoiceResponse"+ buildMessage+ = \ _x+ -> (Data.Monoid.<>)+ (let+ _v = Lens.Family2.view (Data.ProtoLens.Field.field @"rHash") _x+ in+ if (Prelude.==) _v Data.ProtoLens.fieldDefault then+ Data.Monoid.mempty+ else+ (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 10)+ ((\ bs+ -> (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt+ (Prelude.fromIntegral (Data.ByteString.length bs)))+ (Data.ProtoLens.Encoding.Bytes.putBytes bs))+ _v))+ ((Data.Monoid.<>)+ (let+ _v+ = Lens.Family2.view+ (Data.ProtoLens.Field.field @"paymentRequest") _x+ in+ if (Prelude.==) _v Data.ProtoLens.fieldDefault then+ Data.Monoid.mempty+ else+ (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 18)+ ((Prelude..)+ (\ bs+ -> (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt+ (Prelude.fromIntegral (Data.ByteString.length bs)))+ (Data.ProtoLens.Encoding.Bytes.putBytes bs))+ Data.Text.Encoding.encodeUtf8 _v))+ ((Data.Monoid.<>)+ (let+ _v = Lens.Family2.view (Data.ProtoLens.Field.field @"addIndex") _x+ in+ if (Prelude.==) _v Data.ProtoLens.fieldDefault then+ Data.Monoid.mempty+ else+ (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 128)+ (Data.ProtoLens.Encoding.Bytes.putVarInt _v))+ ((Data.Monoid.<>)+ (let+ _v+ = Lens.Family2.view (Data.ProtoLens.Field.field @"paymentAddr") _x+ in+ if (Prelude.==) _v Data.ProtoLens.fieldDefault then+ Data.Monoid.mempty+ else+ (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 138)+ ((\ bs+ -> (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt+ (Prelude.fromIntegral (Data.ByteString.length bs)))+ (Data.ProtoLens.Encoding.Bytes.putBytes bs))+ _v))+ (Data.ProtoLens.Encoding.Wire.buildFieldSet+ (Lens.Family2.view Data.ProtoLens.unknownFields _x)))))+instance Control.DeepSeq.NFData AddInvoiceResponse where+ rnf+ = \ x__+ -> Control.DeepSeq.deepseq+ (_AddInvoiceResponse'_unknownFields x__)+ (Control.DeepSeq.deepseq+ (_AddInvoiceResponse'rHash x__)+ (Control.DeepSeq.deepseq+ (_AddInvoiceResponse'paymentRequest x__)+ (Control.DeepSeq.deepseq+ (_AddInvoiceResponse'addIndex x__)+ (Control.DeepSeq.deepseq+ (_AddInvoiceResponse'paymentAddr x__) ()))))+{- | Fields :+ + * 'Proto.Lnrpc.Ln1_Fields.permissions' @:: Lens' BakeMacaroonRequest [MacaroonPermission]@+ * 'Proto.Lnrpc.Ln1_Fields.vec'permissions' @:: Lens' BakeMacaroonRequest (Data.Vector.Vector MacaroonPermission)@+ * 'Proto.Lnrpc.Ln1_Fields.rootKeyId' @:: Lens' BakeMacaroonRequest Data.Word.Word64@+ * 'Proto.Lnrpc.Ln1_Fields.allowExternalPermissions' @:: Lens' BakeMacaroonRequest Prelude.Bool@ -}+data BakeMacaroonRequest+ = BakeMacaroonRequest'_constructor {_BakeMacaroonRequest'permissions :: !(Data.Vector.Vector MacaroonPermission),+ _BakeMacaroonRequest'rootKeyId :: !Data.Word.Word64,+ _BakeMacaroonRequest'allowExternalPermissions :: !Prelude.Bool,+ _BakeMacaroonRequest'_unknownFields :: !Data.ProtoLens.FieldSet}+ deriving stock (Prelude.Eq, Prelude.Ord, GHC.Generics.Generic)+instance Prelude.Show BakeMacaroonRequest where+ showsPrec _ __x __s+ = Prelude.showChar+ '{'+ (Prelude.showString+ (Data.ProtoLens.showMessageShort __x) (Prelude.showChar '}' __s))+instance Text.PrettyPrint.GenericPretty.Out BakeMacaroonRequest+instance Data.ProtoLens.Field.HasField BakeMacaroonRequest "permissions" [MacaroonPermission] where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _BakeMacaroonRequest'permissions+ (\ x__ y__ -> x__ {_BakeMacaroonRequest'permissions = y__}))+ (Lens.Family2.Unchecked.lens+ Data.Vector.Generic.toList+ (\ _ y__ -> Data.Vector.Generic.fromList y__))+instance Data.ProtoLens.Field.HasField BakeMacaroonRequest "vec'permissions" (Data.Vector.Vector MacaroonPermission) where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _BakeMacaroonRequest'permissions+ (\ x__ y__ -> x__ {_BakeMacaroonRequest'permissions = y__}))+ Prelude.id+instance Data.ProtoLens.Field.HasField BakeMacaroonRequest "rootKeyId" Data.Word.Word64 where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _BakeMacaroonRequest'rootKeyId+ (\ x__ y__ -> x__ {_BakeMacaroonRequest'rootKeyId = y__}))+ Prelude.id+instance Data.ProtoLens.Field.HasField BakeMacaroonRequest "allowExternalPermissions" Prelude.Bool where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _BakeMacaroonRequest'allowExternalPermissions+ (\ x__ y__+ -> x__ {_BakeMacaroonRequest'allowExternalPermissions = y__}))+ Prelude.id+instance Data.ProtoLens.Message BakeMacaroonRequest where+ messageName _ = Data.Text.pack "lnrpc.BakeMacaroonRequest"+ packedMessageDescriptor _+ = "\n\+ \\DC3BakeMacaroonRequest\DC2;\n\+ \\vpermissions\CAN\SOH \ETX(\v2\EM.lnrpc.MacaroonPermissionR\vpermissions\DC2\RS\n\+ \\vroot_key_id\CAN\STX \SOH(\EOTR\trootKeyId\DC2<\n\+ \\SUBallow_external_permissions\CAN\ETX \SOH(\bR\CANallowExternalPermissions"+ packedFileDescriptor _ = packedFileDescriptor+ fieldsByTag+ = let+ permissions__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "permissions"+ (Data.ProtoLens.MessageField Data.ProtoLens.MessageType ::+ Data.ProtoLens.FieldTypeDescriptor MacaroonPermission)+ (Data.ProtoLens.RepeatedField+ Data.ProtoLens.Unpacked+ (Data.ProtoLens.Field.field @"permissions")) ::+ Data.ProtoLens.FieldDescriptor BakeMacaroonRequest+ rootKeyId__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "root_key_id"+ (Data.ProtoLens.ScalarField Data.ProtoLens.UInt64Field ::+ Data.ProtoLens.FieldTypeDescriptor Data.Word.Word64)+ (Data.ProtoLens.PlainField+ Data.ProtoLens.Optional+ (Data.ProtoLens.Field.field @"rootKeyId")) ::+ Data.ProtoLens.FieldDescriptor BakeMacaroonRequest+ allowExternalPermissions__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "allow_external_permissions"+ (Data.ProtoLens.ScalarField Data.ProtoLens.BoolField ::+ Data.ProtoLens.FieldTypeDescriptor Prelude.Bool)+ (Data.ProtoLens.PlainField+ Data.ProtoLens.Optional+ (Data.ProtoLens.Field.field @"allowExternalPermissions")) ::+ Data.ProtoLens.FieldDescriptor BakeMacaroonRequest+ in+ Data.Map.fromList+ [(Data.ProtoLens.Tag 1, permissions__field_descriptor),+ (Data.ProtoLens.Tag 2, rootKeyId__field_descriptor),+ (Data.ProtoLens.Tag 3, allowExternalPermissions__field_descriptor)]+ unknownFields+ = Lens.Family2.Unchecked.lens+ _BakeMacaroonRequest'_unknownFields+ (\ x__ y__ -> x__ {_BakeMacaroonRequest'_unknownFields = y__})+ defMessage+ = BakeMacaroonRequest'_constructor+ {_BakeMacaroonRequest'permissions = Data.Vector.Generic.empty,+ _BakeMacaroonRequest'rootKeyId = Data.ProtoLens.fieldDefault,+ _BakeMacaroonRequest'allowExternalPermissions = Data.ProtoLens.fieldDefault,+ _BakeMacaroonRequest'_unknownFields = []}+ parseMessage+ = let+ loop ::+ BakeMacaroonRequest+ -> Data.ProtoLens.Encoding.Growing.Growing Data.Vector.Vector Data.ProtoLens.Encoding.Growing.RealWorld MacaroonPermission+ -> Data.ProtoLens.Encoding.Bytes.Parser BakeMacaroonRequest+ loop x mutable'permissions+ = do end <- Data.ProtoLens.Encoding.Bytes.atEnd+ if end then+ do frozen'permissions <- Data.ProtoLens.Encoding.Parser.Unsafe.unsafeLiftIO+ (Data.ProtoLens.Encoding.Growing.unsafeFreeze+ mutable'permissions)+ (let missing = []+ in+ if Prelude.null missing then+ Prelude.return ()+ else+ Prelude.fail+ ((Prelude.++)+ "Missing required fields: "+ (Prelude.show (missing :: [Prelude.String]))))+ Prelude.return+ (Lens.Family2.over+ Data.ProtoLens.unknownFields (\ !t -> Prelude.reverse t)+ (Lens.Family2.set+ (Data.ProtoLens.Field.field @"vec'permissions") frozen'permissions+ x))+ else+ do tag <- Data.ProtoLens.Encoding.Bytes.getVarInt+ case tag of+ 10+ -> do !y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (do len <- Data.ProtoLens.Encoding.Bytes.getVarInt+ Data.ProtoLens.Encoding.Bytes.isolate+ (Prelude.fromIntegral len)+ Data.ProtoLens.parseMessage)+ "permissions"+ v <- Data.ProtoLens.Encoding.Parser.Unsafe.unsafeLiftIO+ (Data.ProtoLens.Encoding.Growing.append+ mutable'permissions y)+ loop x v+ 16+ -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ Data.ProtoLens.Encoding.Bytes.getVarInt "root_key_id"+ loop+ (Lens.Family2.set (Data.ProtoLens.Field.field @"rootKeyId") y x)+ mutable'permissions+ 24+ -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (Prelude.fmap+ ((Prelude./=) 0) Data.ProtoLens.Encoding.Bytes.getVarInt)+ "allow_external_permissions"+ loop+ (Lens.Family2.set+ (Data.ProtoLens.Field.field @"allowExternalPermissions") y x)+ mutable'permissions+ wire+ -> do !y <- Data.ProtoLens.Encoding.Wire.parseTaggedValueFromWire+ wire+ loop+ (Lens.Family2.over+ Data.ProtoLens.unknownFields (\ !t -> (:) y t) x)+ mutable'permissions+ in+ (Data.ProtoLens.Encoding.Bytes.<?>)+ (do mutable'permissions <- Data.ProtoLens.Encoding.Parser.Unsafe.unsafeLiftIO+ Data.ProtoLens.Encoding.Growing.new+ loop Data.ProtoLens.defMessage mutable'permissions)+ "BakeMacaroonRequest"+ buildMessage+ = \ _x+ -> (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.foldMapBuilder+ (\ _v+ -> (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 10)+ ((Prelude..)+ (\ bs+ -> (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt+ (Prelude.fromIntegral (Data.ByteString.length bs)))+ (Data.ProtoLens.Encoding.Bytes.putBytes bs))+ Data.ProtoLens.encodeMessage _v))+ (Lens.Family2.view+ (Data.ProtoLens.Field.field @"vec'permissions") _x))+ ((Data.Monoid.<>)+ (let+ _v = Lens.Family2.view (Data.ProtoLens.Field.field @"rootKeyId") _x+ in+ if (Prelude.==) _v Data.ProtoLens.fieldDefault then+ Data.Monoid.mempty+ else+ (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 16)+ (Data.ProtoLens.Encoding.Bytes.putVarInt _v))+ ((Data.Monoid.<>)+ (let+ _v+ = Lens.Family2.view+ (Data.ProtoLens.Field.field @"allowExternalPermissions") _x+ in+ if (Prelude.==) _v Data.ProtoLens.fieldDefault then+ Data.Monoid.mempty+ else+ (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 24)+ ((Prelude..)+ Data.ProtoLens.Encoding.Bytes.putVarInt (\ b -> if b then 1 else 0)+ _v))+ (Data.ProtoLens.Encoding.Wire.buildFieldSet+ (Lens.Family2.view Data.ProtoLens.unknownFields _x))))+instance Control.DeepSeq.NFData BakeMacaroonRequest where+ rnf+ = \ x__+ -> Control.DeepSeq.deepseq+ (_BakeMacaroonRequest'_unknownFields x__)+ (Control.DeepSeq.deepseq+ (_BakeMacaroonRequest'permissions x__)+ (Control.DeepSeq.deepseq+ (_BakeMacaroonRequest'rootKeyId x__)+ (Control.DeepSeq.deepseq+ (_BakeMacaroonRequest'allowExternalPermissions x__) ())))+{- | Fields :+ + * 'Proto.Lnrpc.Ln1_Fields.macaroon' @:: Lens' BakeMacaroonResponse Data.Text.Text@ -}+data BakeMacaroonResponse+ = BakeMacaroonResponse'_constructor {_BakeMacaroonResponse'macaroon :: !Data.Text.Text,+ _BakeMacaroonResponse'_unknownFields :: !Data.ProtoLens.FieldSet}+ deriving stock (Prelude.Eq, Prelude.Ord, GHC.Generics.Generic)+instance Prelude.Show BakeMacaroonResponse where+ showsPrec _ __x __s+ = Prelude.showChar+ '{'+ (Prelude.showString+ (Data.ProtoLens.showMessageShort __x) (Prelude.showChar '}' __s))+instance Text.PrettyPrint.GenericPretty.Out BakeMacaroonResponse+instance Data.ProtoLens.Field.HasField BakeMacaroonResponse "macaroon" Data.Text.Text where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _BakeMacaroonResponse'macaroon+ (\ x__ y__ -> x__ {_BakeMacaroonResponse'macaroon = y__}))+ Prelude.id+instance Data.ProtoLens.Message BakeMacaroonResponse where+ messageName _ = Data.Text.pack "lnrpc.BakeMacaroonResponse"+ packedMessageDescriptor _+ = "\n\+ \\DC4BakeMacaroonResponse\DC2\SUB\n\+ \\bmacaroon\CAN\SOH \SOH(\tR\bmacaroon"+ packedFileDescriptor _ = packedFileDescriptor+ fieldsByTag+ = let+ macaroon__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "macaroon"+ (Data.ProtoLens.ScalarField Data.ProtoLens.StringField ::+ Data.ProtoLens.FieldTypeDescriptor Data.Text.Text)+ (Data.ProtoLens.PlainField+ Data.ProtoLens.Optional+ (Data.ProtoLens.Field.field @"macaroon")) ::+ Data.ProtoLens.FieldDescriptor BakeMacaroonResponse+ in+ Data.Map.fromList+ [(Data.ProtoLens.Tag 1, macaroon__field_descriptor)]+ unknownFields+ = Lens.Family2.Unchecked.lens+ _BakeMacaroonResponse'_unknownFields+ (\ x__ y__ -> x__ {_BakeMacaroonResponse'_unknownFields = y__})+ defMessage+ = BakeMacaroonResponse'_constructor+ {_BakeMacaroonResponse'macaroon = Data.ProtoLens.fieldDefault,+ _BakeMacaroonResponse'_unknownFields = []}+ parseMessage+ = let+ loop ::+ BakeMacaroonResponse+ -> Data.ProtoLens.Encoding.Bytes.Parser BakeMacaroonResponse+ loop x+ = do end <- Data.ProtoLens.Encoding.Bytes.atEnd+ if end then+ do (let missing = []+ in+ if Prelude.null missing then+ Prelude.return ()+ else+ Prelude.fail+ ((Prelude.++)+ "Missing required fields: "+ (Prelude.show (missing :: [Prelude.String]))))+ Prelude.return+ (Lens.Family2.over+ Data.ProtoLens.unknownFields (\ !t -> Prelude.reverse t) x)+ else+ do tag <- Data.ProtoLens.Encoding.Bytes.getVarInt+ case tag of+ 10+ -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (do value <- do len <- Data.ProtoLens.Encoding.Bytes.getVarInt+ Data.ProtoLens.Encoding.Bytes.getBytes+ (Prelude.fromIntegral len)+ Data.ProtoLens.Encoding.Bytes.runEither+ (case Data.Text.Encoding.decodeUtf8' value of+ (Prelude.Left err)+ -> Prelude.Left (Prelude.show err)+ (Prelude.Right r) -> Prelude.Right r))+ "macaroon"+ loop+ (Lens.Family2.set (Data.ProtoLens.Field.field @"macaroon") y x)+ wire+ -> do !y <- Data.ProtoLens.Encoding.Wire.parseTaggedValueFromWire+ wire+ loop+ (Lens.Family2.over+ Data.ProtoLens.unknownFields (\ !t -> (:) y t) x)+ in+ (Data.ProtoLens.Encoding.Bytes.<?>)+ (do loop Data.ProtoLens.defMessage) "BakeMacaroonResponse"+ buildMessage+ = \ _x+ -> (Data.Monoid.<>)+ (let+ _v = Lens.Family2.view (Data.ProtoLens.Field.field @"macaroon") _x+ in+ if (Prelude.==) _v Data.ProtoLens.fieldDefault then+ Data.Monoid.mempty+ else+ (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 10)+ ((Prelude..)+ (\ bs+ -> (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt+ (Prelude.fromIntegral (Data.ByteString.length bs)))+ (Data.ProtoLens.Encoding.Bytes.putBytes bs))+ Data.Text.Encoding.encodeUtf8 _v))+ (Data.ProtoLens.Encoding.Wire.buildFieldSet+ (Lens.Family2.view Data.ProtoLens.unknownFields _x))+instance Control.DeepSeq.NFData BakeMacaroonResponse where+ rnf+ = \ x__+ -> Control.DeepSeq.deepseq+ (_BakeMacaroonResponse'_unknownFields x__)+ (Control.DeepSeq.deepseq (_BakeMacaroonResponse'macaroon x__) ())+{- | Fields :+ -}+data ChanBackupExportRequest+ = ChanBackupExportRequest'_constructor {_ChanBackupExportRequest'_unknownFields :: !Data.ProtoLens.FieldSet}+ deriving stock (Prelude.Eq, Prelude.Ord, GHC.Generics.Generic)+instance Prelude.Show ChanBackupExportRequest where+ showsPrec _ __x __s+ = Prelude.showChar+ '{'+ (Prelude.showString+ (Data.ProtoLens.showMessageShort __x) (Prelude.showChar '}' __s))+instance Text.PrettyPrint.GenericPretty.Out ChanBackupExportRequest+instance Data.ProtoLens.Message ChanBackupExportRequest where+ messageName _ = Data.Text.pack "lnrpc.ChanBackupExportRequest"+ packedMessageDescriptor _+ = "\n\+ \\ETBChanBackupExportRequest"+ packedFileDescriptor _ = packedFileDescriptor+ fieldsByTag = let in Data.Map.fromList []+ unknownFields+ = Lens.Family2.Unchecked.lens+ _ChanBackupExportRequest'_unknownFields+ (\ x__ y__ -> x__ {_ChanBackupExportRequest'_unknownFields = y__})+ defMessage+ = ChanBackupExportRequest'_constructor+ {_ChanBackupExportRequest'_unknownFields = []}+ parseMessage+ = let+ loop ::+ ChanBackupExportRequest+ -> Data.ProtoLens.Encoding.Bytes.Parser ChanBackupExportRequest+ loop x+ = do end <- Data.ProtoLens.Encoding.Bytes.atEnd+ if end then+ do (let missing = []+ in+ if Prelude.null missing then+ Prelude.return ()+ else+ Prelude.fail+ ((Prelude.++)+ "Missing required fields: "+ (Prelude.show (missing :: [Prelude.String]))))+ Prelude.return+ (Lens.Family2.over+ Data.ProtoLens.unknownFields (\ !t -> Prelude.reverse t) x)+ else+ do tag <- Data.ProtoLens.Encoding.Bytes.getVarInt+ case tag of {+ wire+ -> do !y <- Data.ProtoLens.Encoding.Wire.parseTaggedValueFromWire+ wire+ loop+ (Lens.Family2.over+ Data.ProtoLens.unknownFields (\ !t -> (:) y t) x) }+ in+ (Data.ProtoLens.Encoding.Bytes.<?>)+ (do loop Data.ProtoLens.defMessage) "ChanBackupExportRequest"+ buildMessage+ = \ _x+ -> Data.ProtoLens.Encoding.Wire.buildFieldSet+ (Lens.Family2.view Data.ProtoLens.unknownFields _x)+instance Control.DeepSeq.NFData ChanBackupExportRequest where+ rnf+ = \ x__+ -> Control.DeepSeq.deepseq+ (_ChanBackupExportRequest'_unknownFields x__) ()+{- | Fields :+ + * 'Proto.Lnrpc.Ln1_Fields.singleChanBackups' @:: Lens' ChanBackupSnapshot ChannelBackups@+ * 'Proto.Lnrpc.Ln1_Fields.maybe'singleChanBackups' @:: Lens' ChanBackupSnapshot (Prelude.Maybe ChannelBackups)@+ * 'Proto.Lnrpc.Ln1_Fields.multiChanBackup' @:: Lens' ChanBackupSnapshot MultiChanBackup@+ * 'Proto.Lnrpc.Ln1_Fields.maybe'multiChanBackup' @:: Lens' ChanBackupSnapshot (Prelude.Maybe MultiChanBackup)@ -}+data ChanBackupSnapshot+ = ChanBackupSnapshot'_constructor {_ChanBackupSnapshot'singleChanBackups :: !(Prelude.Maybe ChannelBackups),+ _ChanBackupSnapshot'multiChanBackup :: !(Prelude.Maybe MultiChanBackup),+ _ChanBackupSnapshot'_unknownFields :: !Data.ProtoLens.FieldSet}+ deriving stock (Prelude.Eq, Prelude.Ord, GHC.Generics.Generic)+instance Prelude.Show ChanBackupSnapshot where+ showsPrec _ __x __s+ = Prelude.showChar+ '{'+ (Prelude.showString+ (Data.ProtoLens.showMessageShort __x) (Prelude.showChar '}' __s))+instance Text.PrettyPrint.GenericPretty.Out ChanBackupSnapshot+instance Data.ProtoLens.Field.HasField ChanBackupSnapshot "singleChanBackups" ChannelBackups where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _ChanBackupSnapshot'singleChanBackups+ (\ x__ y__ -> x__ {_ChanBackupSnapshot'singleChanBackups = y__}))+ (Data.ProtoLens.maybeLens Data.ProtoLens.defMessage)+instance Data.ProtoLens.Field.HasField ChanBackupSnapshot "maybe'singleChanBackups" (Prelude.Maybe ChannelBackups) where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _ChanBackupSnapshot'singleChanBackups+ (\ x__ y__ -> x__ {_ChanBackupSnapshot'singleChanBackups = y__}))+ Prelude.id+instance Data.ProtoLens.Field.HasField ChanBackupSnapshot "multiChanBackup" MultiChanBackup where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _ChanBackupSnapshot'multiChanBackup+ (\ x__ y__ -> x__ {_ChanBackupSnapshot'multiChanBackup = y__}))+ (Data.ProtoLens.maybeLens Data.ProtoLens.defMessage)+instance Data.ProtoLens.Field.HasField ChanBackupSnapshot "maybe'multiChanBackup" (Prelude.Maybe MultiChanBackup) where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _ChanBackupSnapshot'multiChanBackup+ (\ x__ y__ -> x__ {_ChanBackupSnapshot'multiChanBackup = y__}))+ Prelude.id+instance Data.ProtoLens.Message ChanBackupSnapshot where+ messageName _ = Data.Text.pack "lnrpc.ChanBackupSnapshot"+ packedMessageDescriptor _+ = "\n\+ \\DC2ChanBackupSnapshot\DC2E\n\+ \\DC3single_chan_backups\CAN\SOH \SOH(\v2\NAK.lnrpc.ChannelBackupsR\DC1singleChanBackups\DC2B\n\+ \\DC1multi_chan_backup\CAN\STX \SOH(\v2\SYN.lnrpc.MultiChanBackupR\SImultiChanBackup"+ packedFileDescriptor _ = packedFileDescriptor+ fieldsByTag+ = let+ singleChanBackups__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "single_chan_backups"+ (Data.ProtoLens.MessageField Data.ProtoLens.MessageType ::+ Data.ProtoLens.FieldTypeDescriptor ChannelBackups)+ (Data.ProtoLens.OptionalField+ (Data.ProtoLens.Field.field @"maybe'singleChanBackups")) ::+ Data.ProtoLens.FieldDescriptor ChanBackupSnapshot+ multiChanBackup__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "multi_chan_backup"+ (Data.ProtoLens.MessageField Data.ProtoLens.MessageType ::+ Data.ProtoLens.FieldTypeDescriptor MultiChanBackup)+ (Data.ProtoLens.OptionalField+ (Data.ProtoLens.Field.field @"maybe'multiChanBackup")) ::+ Data.ProtoLens.FieldDescriptor ChanBackupSnapshot+ in+ Data.Map.fromList+ [(Data.ProtoLens.Tag 1, singleChanBackups__field_descriptor),+ (Data.ProtoLens.Tag 2, multiChanBackup__field_descriptor)]+ unknownFields+ = Lens.Family2.Unchecked.lens+ _ChanBackupSnapshot'_unknownFields+ (\ x__ y__ -> x__ {_ChanBackupSnapshot'_unknownFields = y__})+ defMessage+ = ChanBackupSnapshot'_constructor+ {_ChanBackupSnapshot'singleChanBackups = Prelude.Nothing,+ _ChanBackupSnapshot'multiChanBackup = Prelude.Nothing,+ _ChanBackupSnapshot'_unknownFields = []}+ parseMessage+ = let+ loop ::+ ChanBackupSnapshot+ -> Data.ProtoLens.Encoding.Bytes.Parser ChanBackupSnapshot+ loop x+ = do end <- Data.ProtoLens.Encoding.Bytes.atEnd+ if end then+ do (let missing = []+ in+ if Prelude.null missing then+ Prelude.return ()+ else+ Prelude.fail+ ((Prelude.++)+ "Missing required fields: "+ (Prelude.show (missing :: [Prelude.String]))))+ Prelude.return+ (Lens.Family2.over+ Data.ProtoLens.unknownFields (\ !t -> Prelude.reverse t) x)+ else+ do tag <- Data.ProtoLens.Encoding.Bytes.getVarInt+ case tag of+ 10+ -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (do len <- Data.ProtoLens.Encoding.Bytes.getVarInt+ Data.ProtoLens.Encoding.Bytes.isolate+ (Prelude.fromIntegral len) Data.ProtoLens.parseMessage)+ "single_chan_backups"+ loop+ (Lens.Family2.set+ (Data.ProtoLens.Field.field @"singleChanBackups") y x)+ 18+ -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (do len <- Data.ProtoLens.Encoding.Bytes.getVarInt+ Data.ProtoLens.Encoding.Bytes.isolate+ (Prelude.fromIntegral len) Data.ProtoLens.parseMessage)+ "multi_chan_backup"+ loop+ (Lens.Family2.set+ (Data.ProtoLens.Field.field @"multiChanBackup") y x)+ wire+ -> do !y <- Data.ProtoLens.Encoding.Wire.parseTaggedValueFromWire+ wire+ loop+ (Lens.Family2.over+ Data.ProtoLens.unknownFields (\ !t -> (:) y t) x)+ in+ (Data.ProtoLens.Encoding.Bytes.<?>)+ (do loop Data.ProtoLens.defMessage) "ChanBackupSnapshot"+ buildMessage+ = \ _x+ -> (Data.Monoid.<>)+ (case+ Lens.Family2.view+ (Data.ProtoLens.Field.field @"maybe'singleChanBackups") _x+ of+ Prelude.Nothing -> Data.Monoid.mempty+ (Prelude.Just _v)+ -> (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 10)+ ((Prelude..)+ (\ bs+ -> (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt+ (Prelude.fromIntegral (Data.ByteString.length bs)))+ (Data.ProtoLens.Encoding.Bytes.putBytes bs))+ Data.ProtoLens.encodeMessage _v))+ ((Data.Monoid.<>)+ (case+ Lens.Family2.view+ (Data.ProtoLens.Field.field @"maybe'multiChanBackup") _x+ of+ Prelude.Nothing -> Data.Monoid.mempty+ (Prelude.Just _v)+ -> (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 18)+ ((Prelude..)+ (\ bs+ -> (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt+ (Prelude.fromIntegral (Data.ByteString.length bs)))+ (Data.ProtoLens.Encoding.Bytes.putBytes bs))+ Data.ProtoLens.encodeMessage _v))+ (Data.ProtoLens.Encoding.Wire.buildFieldSet+ (Lens.Family2.view Data.ProtoLens.unknownFields _x)))+instance Control.DeepSeq.NFData ChanBackupSnapshot where+ rnf+ = \ x__+ -> Control.DeepSeq.deepseq+ (_ChanBackupSnapshot'_unknownFields x__)+ (Control.DeepSeq.deepseq+ (_ChanBackupSnapshot'singleChanBackups x__)+ (Control.DeepSeq.deepseq+ (_ChanBackupSnapshot'multiChanBackup x__) ()))+{- | Fields :+ + * 'Proto.Lnrpc.Ln1_Fields.chanPoint' @:: Lens' ChannelBackup Proto.Lnrpc.Ln0.ChannelPoint@+ * 'Proto.Lnrpc.Ln1_Fields.maybe'chanPoint' @:: Lens' ChannelBackup (Prelude.Maybe Proto.Lnrpc.Ln0.ChannelPoint)@+ * 'Proto.Lnrpc.Ln1_Fields.chanBackup' @:: Lens' ChannelBackup Data.ByteString.ByteString@ -}+data ChannelBackup+ = ChannelBackup'_constructor {_ChannelBackup'chanPoint :: !(Prelude.Maybe Proto.Lnrpc.Ln0.ChannelPoint),+ _ChannelBackup'chanBackup :: !Data.ByteString.ByteString,+ _ChannelBackup'_unknownFields :: !Data.ProtoLens.FieldSet}+ deriving stock (Prelude.Eq, Prelude.Ord, GHC.Generics.Generic)+instance Prelude.Show ChannelBackup where+ showsPrec _ __x __s+ = Prelude.showChar+ '{'+ (Prelude.showString+ (Data.ProtoLens.showMessageShort __x) (Prelude.showChar '}' __s))+instance Text.PrettyPrint.GenericPretty.Out ChannelBackup+instance Data.ProtoLens.Field.HasField ChannelBackup "chanPoint" Proto.Lnrpc.Ln0.ChannelPoint where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _ChannelBackup'chanPoint+ (\ x__ y__ -> x__ {_ChannelBackup'chanPoint = y__}))+ (Data.ProtoLens.maybeLens Data.ProtoLens.defMessage)+instance Data.ProtoLens.Field.HasField ChannelBackup "maybe'chanPoint" (Prelude.Maybe Proto.Lnrpc.Ln0.ChannelPoint) where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _ChannelBackup'chanPoint+ (\ x__ y__ -> x__ {_ChannelBackup'chanPoint = y__}))+ Prelude.id+instance Data.ProtoLens.Field.HasField ChannelBackup "chanBackup" Data.ByteString.ByteString where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _ChannelBackup'chanBackup+ (\ x__ y__ -> x__ {_ChannelBackup'chanBackup = y__}))+ Prelude.id+instance Data.ProtoLens.Message ChannelBackup where+ messageName _ = Data.Text.pack "lnrpc.ChannelBackup"+ packedMessageDescriptor _+ = "\n\+ \\rChannelBackup\DC22\n\+ \\n\+ \chan_point\CAN\SOH \SOH(\v2\DC3.lnrpc.ChannelPointR\tchanPoint\DC2\US\n\+ \\vchan_backup\CAN\STX \SOH(\fR\n\+ \chanBackup"+ packedFileDescriptor _ = packedFileDescriptor+ fieldsByTag+ = let+ chanPoint__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "chan_point"+ (Data.ProtoLens.MessageField Data.ProtoLens.MessageType ::+ Data.ProtoLens.FieldTypeDescriptor Proto.Lnrpc.Ln0.ChannelPoint)+ (Data.ProtoLens.OptionalField+ (Data.ProtoLens.Field.field @"maybe'chanPoint")) ::+ Data.ProtoLens.FieldDescriptor ChannelBackup+ chanBackup__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "chan_backup"+ (Data.ProtoLens.ScalarField Data.ProtoLens.BytesField ::+ Data.ProtoLens.FieldTypeDescriptor Data.ByteString.ByteString)+ (Data.ProtoLens.PlainField+ Data.ProtoLens.Optional+ (Data.ProtoLens.Field.field @"chanBackup")) ::+ Data.ProtoLens.FieldDescriptor ChannelBackup+ in+ Data.Map.fromList+ [(Data.ProtoLens.Tag 1, chanPoint__field_descriptor),+ (Data.ProtoLens.Tag 2, chanBackup__field_descriptor)]+ unknownFields+ = Lens.Family2.Unchecked.lens+ _ChannelBackup'_unknownFields+ (\ x__ y__ -> x__ {_ChannelBackup'_unknownFields = y__})+ defMessage+ = ChannelBackup'_constructor+ {_ChannelBackup'chanPoint = Prelude.Nothing,+ _ChannelBackup'chanBackup = Data.ProtoLens.fieldDefault,+ _ChannelBackup'_unknownFields = []}+ parseMessage+ = let+ loop ::+ ChannelBackup -> Data.ProtoLens.Encoding.Bytes.Parser ChannelBackup+ loop x+ = do end <- Data.ProtoLens.Encoding.Bytes.atEnd+ if end then+ do (let missing = []+ in+ if Prelude.null missing then+ Prelude.return ()+ else+ Prelude.fail+ ((Prelude.++)+ "Missing required fields: "+ (Prelude.show (missing :: [Prelude.String]))))+ Prelude.return+ (Lens.Family2.over+ Data.ProtoLens.unknownFields (\ !t -> Prelude.reverse t) x)+ else+ do tag <- Data.ProtoLens.Encoding.Bytes.getVarInt+ case tag of+ 10+ -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (do len <- Data.ProtoLens.Encoding.Bytes.getVarInt+ Data.ProtoLens.Encoding.Bytes.isolate+ (Prelude.fromIntegral len) Data.ProtoLens.parseMessage)+ "chan_point"+ loop+ (Lens.Family2.set (Data.ProtoLens.Field.field @"chanPoint") y x)+ 18+ -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (do len <- Data.ProtoLens.Encoding.Bytes.getVarInt+ Data.ProtoLens.Encoding.Bytes.getBytes+ (Prelude.fromIntegral len))+ "chan_backup"+ loop+ (Lens.Family2.set (Data.ProtoLens.Field.field @"chanBackup") y x)+ wire+ -> do !y <- Data.ProtoLens.Encoding.Wire.parseTaggedValueFromWire+ wire+ loop+ (Lens.Family2.over+ Data.ProtoLens.unknownFields (\ !t -> (:) y t) x)+ in+ (Data.ProtoLens.Encoding.Bytes.<?>)+ (do loop Data.ProtoLens.defMessage) "ChannelBackup"+ buildMessage+ = \ _x+ -> (Data.Monoid.<>)+ (case+ Lens.Family2.view+ (Data.ProtoLens.Field.field @"maybe'chanPoint") _x+ of+ Prelude.Nothing -> Data.Monoid.mempty+ (Prelude.Just _v)+ -> (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 10)+ ((Prelude..)+ (\ bs+ -> (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt+ (Prelude.fromIntegral (Data.ByteString.length bs)))+ (Data.ProtoLens.Encoding.Bytes.putBytes bs))+ Data.ProtoLens.encodeMessage _v))+ ((Data.Monoid.<>)+ (let+ _v+ = Lens.Family2.view (Data.ProtoLens.Field.field @"chanBackup") _x+ in+ if (Prelude.==) _v Data.ProtoLens.fieldDefault then+ Data.Monoid.mempty+ else+ (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 18)+ ((\ bs+ -> (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt+ (Prelude.fromIntegral (Data.ByteString.length bs)))+ (Data.ProtoLens.Encoding.Bytes.putBytes bs))+ _v))+ (Data.ProtoLens.Encoding.Wire.buildFieldSet+ (Lens.Family2.view Data.ProtoLens.unknownFields _x)))+instance Control.DeepSeq.NFData ChannelBackup where+ rnf+ = \ x__+ -> Control.DeepSeq.deepseq+ (_ChannelBackup'_unknownFields x__)+ (Control.DeepSeq.deepseq+ (_ChannelBackup'chanPoint x__)+ (Control.DeepSeq.deepseq (_ChannelBackup'chanBackup x__) ()))+{- | Fields :+ -}+data ChannelBackupSubscription+ = ChannelBackupSubscription'_constructor {_ChannelBackupSubscription'_unknownFields :: !Data.ProtoLens.FieldSet}+ deriving stock (Prelude.Eq, Prelude.Ord, GHC.Generics.Generic)+instance Prelude.Show ChannelBackupSubscription where+ showsPrec _ __x __s+ = Prelude.showChar+ '{'+ (Prelude.showString+ (Data.ProtoLens.showMessageShort __x) (Prelude.showChar '}' __s))+instance Text.PrettyPrint.GenericPretty.Out ChannelBackupSubscription+instance Data.ProtoLens.Message ChannelBackupSubscription where+ messageName _ = Data.Text.pack "lnrpc.ChannelBackupSubscription"+ packedMessageDescriptor _+ = "\n\+ \\EMChannelBackupSubscription"+ packedFileDescriptor _ = packedFileDescriptor+ fieldsByTag = let in Data.Map.fromList []+ unknownFields+ = Lens.Family2.Unchecked.lens+ _ChannelBackupSubscription'_unknownFields+ (\ x__ y__+ -> x__ {_ChannelBackupSubscription'_unknownFields = y__})+ defMessage+ = ChannelBackupSubscription'_constructor+ {_ChannelBackupSubscription'_unknownFields = []}+ parseMessage+ = let+ loop ::+ ChannelBackupSubscription+ -> Data.ProtoLens.Encoding.Bytes.Parser ChannelBackupSubscription+ loop x+ = do end <- Data.ProtoLens.Encoding.Bytes.atEnd+ if end then+ do (let missing = []+ in+ if Prelude.null missing then+ Prelude.return ()+ else+ Prelude.fail+ ((Prelude.++)+ "Missing required fields: "+ (Prelude.show (missing :: [Prelude.String]))))+ Prelude.return+ (Lens.Family2.over+ Data.ProtoLens.unknownFields (\ !t -> Prelude.reverse t) x)+ else+ do tag <- Data.ProtoLens.Encoding.Bytes.getVarInt+ case tag of {+ wire+ -> do !y <- Data.ProtoLens.Encoding.Wire.parseTaggedValueFromWire+ wire+ loop+ (Lens.Family2.over+ Data.ProtoLens.unknownFields (\ !t -> (:) y t) x) }+ in+ (Data.ProtoLens.Encoding.Bytes.<?>)+ (do loop Data.ProtoLens.defMessage) "ChannelBackupSubscription"+ buildMessage+ = \ _x+ -> Data.ProtoLens.Encoding.Wire.buildFieldSet+ (Lens.Family2.view Data.ProtoLens.unknownFields _x)+instance Control.DeepSeq.NFData ChannelBackupSubscription where+ rnf+ = \ x__+ -> Control.DeepSeq.deepseq+ (_ChannelBackupSubscription'_unknownFields x__) ()+{- | Fields :+ + * 'Proto.Lnrpc.Ln1_Fields.chanBackups' @:: Lens' ChannelBackups [ChannelBackup]@+ * 'Proto.Lnrpc.Ln1_Fields.vec'chanBackups' @:: Lens' ChannelBackups (Data.Vector.Vector ChannelBackup)@ -}+data ChannelBackups+ = ChannelBackups'_constructor {_ChannelBackups'chanBackups :: !(Data.Vector.Vector ChannelBackup),+ _ChannelBackups'_unknownFields :: !Data.ProtoLens.FieldSet}+ deriving stock (Prelude.Eq, Prelude.Ord, GHC.Generics.Generic)+instance Prelude.Show ChannelBackups where+ showsPrec _ __x __s+ = Prelude.showChar+ '{'+ (Prelude.showString+ (Data.ProtoLens.showMessageShort __x) (Prelude.showChar '}' __s))+instance Text.PrettyPrint.GenericPretty.Out ChannelBackups+instance Data.ProtoLens.Field.HasField ChannelBackups "chanBackups" [ChannelBackup] where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _ChannelBackups'chanBackups+ (\ x__ y__ -> x__ {_ChannelBackups'chanBackups = y__}))+ (Lens.Family2.Unchecked.lens+ Data.Vector.Generic.toList+ (\ _ y__ -> Data.Vector.Generic.fromList y__))+instance Data.ProtoLens.Field.HasField ChannelBackups "vec'chanBackups" (Data.Vector.Vector ChannelBackup) where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _ChannelBackups'chanBackups+ (\ x__ y__ -> x__ {_ChannelBackups'chanBackups = y__}))+ Prelude.id+instance Data.ProtoLens.Message ChannelBackups where+ messageName _ = Data.Text.pack "lnrpc.ChannelBackups"+ packedMessageDescriptor _+ = "\n\+ \\SOChannelBackups\DC27\n\+ \\fchan_backups\CAN\SOH \ETX(\v2\DC4.lnrpc.ChannelBackupR\vchanBackups"+ packedFileDescriptor _ = packedFileDescriptor+ fieldsByTag+ = let+ chanBackups__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "chan_backups"+ (Data.ProtoLens.MessageField Data.ProtoLens.MessageType ::+ Data.ProtoLens.FieldTypeDescriptor ChannelBackup)+ (Data.ProtoLens.RepeatedField+ Data.ProtoLens.Unpacked+ (Data.ProtoLens.Field.field @"chanBackups")) ::+ Data.ProtoLens.FieldDescriptor ChannelBackups+ in+ Data.Map.fromList+ [(Data.ProtoLens.Tag 1, chanBackups__field_descriptor)]+ unknownFields+ = Lens.Family2.Unchecked.lens+ _ChannelBackups'_unknownFields+ (\ x__ y__ -> x__ {_ChannelBackups'_unknownFields = y__})+ defMessage+ = ChannelBackups'_constructor+ {_ChannelBackups'chanBackups = Data.Vector.Generic.empty,+ _ChannelBackups'_unknownFields = []}+ parseMessage+ = let+ loop ::+ ChannelBackups+ -> Data.ProtoLens.Encoding.Growing.Growing Data.Vector.Vector Data.ProtoLens.Encoding.Growing.RealWorld ChannelBackup+ -> Data.ProtoLens.Encoding.Bytes.Parser ChannelBackups+ loop x mutable'chanBackups+ = do end <- Data.ProtoLens.Encoding.Bytes.atEnd+ if end then+ do frozen'chanBackups <- Data.ProtoLens.Encoding.Parser.Unsafe.unsafeLiftIO+ (Data.ProtoLens.Encoding.Growing.unsafeFreeze+ mutable'chanBackups)+ (let missing = []+ in+ if Prelude.null missing then+ Prelude.return ()+ else+ Prelude.fail+ ((Prelude.++)+ "Missing required fields: "+ (Prelude.show (missing :: [Prelude.String]))))+ Prelude.return+ (Lens.Family2.over+ Data.ProtoLens.unknownFields (\ !t -> Prelude.reverse t)+ (Lens.Family2.set+ (Data.ProtoLens.Field.field @"vec'chanBackups") frozen'chanBackups+ x))+ else+ do tag <- Data.ProtoLens.Encoding.Bytes.getVarInt+ case tag of+ 10+ -> do !y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (do len <- Data.ProtoLens.Encoding.Bytes.getVarInt+ Data.ProtoLens.Encoding.Bytes.isolate+ (Prelude.fromIntegral len)+ Data.ProtoLens.parseMessage)+ "chan_backups"+ v <- Data.ProtoLens.Encoding.Parser.Unsafe.unsafeLiftIO+ (Data.ProtoLens.Encoding.Growing.append+ mutable'chanBackups y)+ loop x v+ wire+ -> do !y <- Data.ProtoLens.Encoding.Wire.parseTaggedValueFromWire+ wire+ loop+ (Lens.Family2.over+ Data.ProtoLens.unknownFields (\ !t -> (:) y t) x)+ mutable'chanBackups+ in+ (Data.ProtoLens.Encoding.Bytes.<?>)+ (do mutable'chanBackups <- Data.ProtoLens.Encoding.Parser.Unsafe.unsafeLiftIO+ Data.ProtoLens.Encoding.Growing.new+ loop Data.ProtoLens.defMessage mutable'chanBackups)+ "ChannelBackups"+ buildMessage+ = \ _x+ -> (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.foldMapBuilder+ (\ _v+ -> (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 10)+ ((Prelude..)+ (\ bs+ -> (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt+ (Prelude.fromIntegral (Data.ByteString.length bs)))+ (Data.ProtoLens.Encoding.Bytes.putBytes bs))+ Data.ProtoLens.encodeMessage _v))+ (Lens.Family2.view+ (Data.ProtoLens.Field.field @"vec'chanBackups") _x))+ (Data.ProtoLens.Encoding.Wire.buildFieldSet+ (Lens.Family2.view Data.ProtoLens.unknownFields _x))+instance Control.DeepSeq.NFData ChannelBackups where+ rnf+ = \ x__+ -> Control.DeepSeq.deepseq+ (_ChannelBackups'_unknownFields x__)+ (Control.DeepSeq.deepseq (_ChannelBackups'chanBackups x__) ())+{- | Fields :+ + * 'Proto.Lnrpc.Ln1_Fields.chanId' @:: Lens' ChannelFeeReport Data.Word.Word64@+ * 'Proto.Lnrpc.Ln1_Fields.channelPoint' @:: Lens' ChannelFeeReport Data.Text.Text@+ * 'Proto.Lnrpc.Ln1_Fields.baseFeeMsat' @:: Lens' ChannelFeeReport Data.Int.Int64@+ * 'Proto.Lnrpc.Ln1_Fields.feePerMil' @:: Lens' ChannelFeeReport Data.Int.Int64@+ * 'Proto.Lnrpc.Ln1_Fields.feeRate' @:: Lens' ChannelFeeReport Prelude.Double@ -}+data ChannelFeeReport+ = ChannelFeeReport'_constructor {_ChannelFeeReport'chanId :: !Data.Word.Word64,+ _ChannelFeeReport'channelPoint :: !Data.Text.Text,+ _ChannelFeeReport'baseFeeMsat :: !Data.Int.Int64,+ _ChannelFeeReport'feePerMil :: !Data.Int.Int64,+ _ChannelFeeReport'feeRate :: !Prelude.Double,+ _ChannelFeeReport'_unknownFields :: !Data.ProtoLens.FieldSet}+ deriving stock (Prelude.Eq, Prelude.Ord, GHC.Generics.Generic)+instance Prelude.Show ChannelFeeReport where+ showsPrec _ __x __s+ = Prelude.showChar+ '{'+ (Prelude.showString+ (Data.ProtoLens.showMessageShort __x) (Prelude.showChar '}' __s))+instance Text.PrettyPrint.GenericPretty.Out ChannelFeeReport+instance Data.ProtoLens.Field.HasField ChannelFeeReport "chanId" Data.Word.Word64 where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _ChannelFeeReport'chanId+ (\ x__ y__ -> x__ {_ChannelFeeReport'chanId = y__}))+ Prelude.id+instance Data.ProtoLens.Field.HasField ChannelFeeReport "channelPoint" Data.Text.Text where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _ChannelFeeReport'channelPoint+ (\ x__ y__ -> x__ {_ChannelFeeReport'channelPoint = y__}))+ Prelude.id+instance Data.ProtoLens.Field.HasField ChannelFeeReport "baseFeeMsat" Data.Int.Int64 where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _ChannelFeeReport'baseFeeMsat+ (\ x__ y__ -> x__ {_ChannelFeeReport'baseFeeMsat = y__}))+ Prelude.id+instance Data.ProtoLens.Field.HasField ChannelFeeReport "feePerMil" Data.Int.Int64 where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _ChannelFeeReport'feePerMil+ (\ x__ y__ -> x__ {_ChannelFeeReport'feePerMil = y__}))+ Prelude.id+instance Data.ProtoLens.Field.HasField ChannelFeeReport "feeRate" Prelude.Double where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _ChannelFeeReport'feeRate+ (\ x__ y__ -> x__ {_ChannelFeeReport'feeRate = y__}))+ Prelude.id+instance Data.ProtoLens.Message ChannelFeeReport where+ messageName _ = Data.Text.pack "lnrpc.ChannelFeeReport"+ packedMessageDescriptor _+ = "\n\+ \\DLEChannelFeeReport\DC2\ESC\n\+ \\achan_id\CAN\ENQ \SOH(\EOTR\ACKchanIdB\STX0\SOH\DC2#\n\+ \\rchannel_point\CAN\SOH \SOH(\tR\fchannelPoint\DC2\"\n\+ \\rbase_fee_msat\CAN\STX \SOH(\ETXR\vbaseFeeMsat\DC2\RS\n\+ \\vfee_per_mil\CAN\ETX \SOH(\ETXR\tfeePerMil\DC2\EM\n\+ \\bfee_rate\CAN\EOT \SOH(\SOHR\afeeRate"+ packedFileDescriptor _ = packedFileDescriptor+ fieldsByTag+ = let+ chanId__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "chan_id"+ (Data.ProtoLens.ScalarField Data.ProtoLens.UInt64Field ::+ Data.ProtoLens.FieldTypeDescriptor Data.Word.Word64)+ (Data.ProtoLens.PlainField+ Data.ProtoLens.Optional (Data.ProtoLens.Field.field @"chanId")) ::+ Data.ProtoLens.FieldDescriptor ChannelFeeReport+ channelPoint__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "channel_point"+ (Data.ProtoLens.ScalarField Data.ProtoLens.StringField ::+ Data.ProtoLens.FieldTypeDescriptor Data.Text.Text)+ (Data.ProtoLens.PlainField+ Data.ProtoLens.Optional+ (Data.ProtoLens.Field.field @"channelPoint")) ::+ Data.ProtoLens.FieldDescriptor ChannelFeeReport+ baseFeeMsat__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "base_fee_msat"+ (Data.ProtoLens.ScalarField Data.ProtoLens.Int64Field ::+ Data.ProtoLens.FieldTypeDescriptor Data.Int.Int64)+ (Data.ProtoLens.PlainField+ Data.ProtoLens.Optional+ (Data.ProtoLens.Field.field @"baseFeeMsat")) ::+ Data.ProtoLens.FieldDescriptor ChannelFeeReport+ feePerMil__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "fee_per_mil"+ (Data.ProtoLens.ScalarField Data.ProtoLens.Int64Field ::+ Data.ProtoLens.FieldTypeDescriptor Data.Int.Int64)+ (Data.ProtoLens.PlainField+ Data.ProtoLens.Optional+ (Data.ProtoLens.Field.field @"feePerMil")) ::+ Data.ProtoLens.FieldDescriptor ChannelFeeReport+ feeRate__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "fee_rate"+ (Data.ProtoLens.ScalarField Data.ProtoLens.DoubleField ::+ Data.ProtoLens.FieldTypeDescriptor Prelude.Double)+ (Data.ProtoLens.PlainField+ Data.ProtoLens.Optional (Data.ProtoLens.Field.field @"feeRate")) ::+ Data.ProtoLens.FieldDescriptor ChannelFeeReport+ in+ Data.Map.fromList+ [(Data.ProtoLens.Tag 5, chanId__field_descriptor),+ (Data.ProtoLens.Tag 1, channelPoint__field_descriptor),+ (Data.ProtoLens.Tag 2, baseFeeMsat__field_descriptor),+ (Data.ProtoLens.Tag 3, feePerMil__field_descriptor),+ (Data.ProtoLens.Tag 4, feeRate__field_descriptor)]+ unknownFields+ = Lens.Family2.Unchecked.lens+ _ChannelFeeReport'_unknownFields+ (\ x__ y__ -> x__ {_ChannelFeeReport'_unknownFields = y__})+ defMessage+ = ChannelFeeReport'_constructor+ {_ChannelFeeReport'chanId = Data.ProtoLens.fieldDefault,+ _ChannelFeeReport'channelPoint = Data.ProtoLens.fieldDefault,+ _ChannelFeeReport'baseFeeMsat = Data.ProtoLens.fieldDefault,+ _ChannelFeeReport'feePerMil = Data.ProtoLens.fieldDefault,+ _ChannelFeeReport'feeRate = Data.ProtoLens.fieldDefault,+ _ChannelFeeReport'_unknownFields = []}+ parseMessage+ = let+ loop ::+ ChannelFeeReport+ -> Data.ProtoLens.Encoding.Bytes.Parser ChannelFeeReport+ loop x+ = do end <- Data.ProtoLens.Encoding.Bytes.atEnd+ if end then+ do (let missing = []+ in+ if Prelude.null missing then+ Prelude.return ()+ else+ Prelude.fail+ ((Prelude.++)+ "Missing required fields: "+ (Prelude.show (missing :: [Prelude.String]))))+ Prelude.return+ (Lens.Family2.over+ Data.ProtoLens.unknownFields (\ !t -> Prelude.reverse t) x)+ else+ do tag <- Data.ProtoLens.Encoding.Bytes.getVarInt+ case tag of+ 40+ -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ Data.ProtoLens.Encoding.Bytes.getVarInt "chan_id"+ loop (Lens.Family2.set (Data.ProtoLens.Field.field @"chanId") y x)+ 10+ -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (do value <- do len <- Data.ProtoLens.Encoding.Bytes.getVarInt+ Data.ProtoLens.Encoding.Bytes.getBytes+ (Prelude.fromIntegral len)+ Data.ProtoLens.Encoding.Bytes.runEither+ (case Data.Text.Encoding.decodeUtf8' value of+ (Prelude.Left err)+ -> Prelude.Left (Prelude.show err)+ (Prelude.Right r) -> Prelude.Right r))+ "channel_point"+ loop+ (Lens.Family2.set+ (Data.ProtoLens.Field.field @"channelPoint") y x)+ 16+ -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (Prelude.fmap+ Prelude.fromIntegral+ Data.ProtoLens.Encoding.Bytes.getVarInt)+ "base_fee_msat"+ loop+ (Lens.Family2.set (Data.ProtoLens.Field.field @"baseFeeMsat") y x)+ 24+ -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (Prelude.fmap+ Prelude.fromIntegral+ Data.ProtoLens.Encoding.Bytes.getVarInt)+ "fee_per_mil"+ loop+ (Lens.Family2.set (Data.ProtoLens.Field.field @"feePerMil") y x)+ 33+ -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (Prelude.fmap+ Data.ProtoLens.Encoding.Bytes.wordToDouble+ Data.ProtoLens.Encoding.Bytes.getFixed64)+ "fee_rate"+ loop (Lens.Family2.set (Data.ProtoLens.Field.field @"feeRate") y x)+ wire+ -> do !y <- Data.ProtoLens.Encoding.Wire.parseTaggedValueFromWire+ wire+ loop+ (Lens.Family2.over+ Data.ProtoLens.unknownFields (\ !t -> (:) y t) x)+ in+ (Data.ProtoLens.Encoding.Bytes.<?>)+ (do loop Data.ProtoLens.defMessage) "ChannelFeeReport"+ buildMessage+ = \ _x+ -> (Data.Monoid.<>)+ (let+ _v = Lens.Family2.view (Data.ProtoLens.Field.field @"chanId") _x+ in+ if (Prelude.==) _v Data.ProtoLens.fieldDefault then+ Data.Monoid.mempty+ else+ (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 40)+ (Data.ProtoLens.Encoding.Bytes.putVarInt _v))+ ((Data.Monoid.<>)+ (let+ _v+ = Lens.Family2.view (Data.ProtoLens.Field.field @"channelPoint") _x+ in+ if (Prelude.==) _v Data.ProtoLens.fieldDefault then+ Data.Monoid.mempty+ else+ (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 10)+ ((Prelude..)+ (\ bs+ -> (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt+ (Prelude.fromIntegral (Data.ByteString.length bs)))+ (Data.ProtoLens.Encoding.Bytes.putBytes bs))+ Data.Text.Encoding.encodeUtf8 _v))+ ((Data.Monoid.<>)+ (let+ _v+ = Lens.Family2.view (Data.ProtoLens.Field.field @"baseFeeMsat") _x+ in+ if (Prelude.==) _v Data.ProtoLens.fieldDefault then+ Data.Monoid.mempty+ else+ (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 16)+ ((Prelude..)+ Data.ProtoLens.Encoding.Bytes.putVarInt Prelude.fromIntegral _v))+ ((Data.Monoid.<>)+ (let+ _v = Lens.Family2.view (Data.ProtoLens.Field.field @"feePerMil") _x+ in+ if (Prelude.==) _v Data.ProtoLens.fieldDefault then+ Data.Monoid.mempty+ else+ (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 24)+ ((Prelude..)+ Data.ProtoLens.Encoding.Bytes.putVarInt Prelude.fromIntegral _v))+ ((Data.Monoid.<>)+ (let+ _v = Lens.Family2.view (Data.ProtoLens.Field.field @"feeRate") _x+ in+ if (Prelude.==) _v Data.ProtoLens.fieldDefault then+ Data.Monoid.mempty+ else+ (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 33)+ ((Prelude..)+ Data.ProtoLens.Encoding.Bytes.putFixed64+ Data.ProtoLens.Encoding.Bytes.doubleToWord _v))+ (Data.ProtoLens.Encoding.Wire.buildFieldSet+ (Lens.Family2.view Data.ProtoLens.unknownFields _x))))))+instance Control.DeepSeq.NFData ChannelFeeReport where+ rnf+ = \ x__+ -> Control.DeepSeq.deepseq+ (_ChannelFeeReport'_unknownFields x__)+ (Control.DeepSeq.deepseq+ (_ChannelFeeReport'chanId x__)+ (Control.DeepSeq.deepseq+ (_ChannelFeeReport'channelPoint x__)+ (Control.DeepSeq.deepseq+ (_ChannelFeeReport'baseFeeMsat x__)+ (Control.DeepSeq.deepseq+ (_ChannelFeeReport'feePerMil x__)+ (Control.DeepSeq.deepseq (_ChannelFeeReport'feeRate x__) ())))))+{- | Fields :+ + * 'Proto.Lnrpc.Ln1_Fields.signature' @:: Lens' ChannelUpdate Data.ByteString.ByteString@+ * 'Proto.Lnrpc.Ln1_Fields.chainHash' @:: Lens' ChannelUpdate Data.ByteString.ByteString@+ * 'Proto.Lnrpc.Ln1_Fields.chanId' @:: Lens' ChannelUpdate Data.Word.Word64@+ * 'Proto.Lnrpc.Ln1_Fields.timestamp' @:: Lens' ChannelUpdate Data.Word.Word32@+ * 'Proto.Lnrpc.Ln1_Fields.messageFlags' @:: Lens' ChannelUpdate Data.Word.Word32@+ * 'Proto.Lnrpc.Ln1_Fields.channelFlags' @:: Lens' ChannelUpdate Data.Word.Word32@+ * 'Proto.Lnrpc.Ln1_Fields.timeLockDelta' @:: Lens' ChannelUpdate Data.Word.Word32@+ * 'Proto.Lnrpc.Ln1_Fields.htlcMinimumMsat' @:: Lens' ChannelUpdate Data.Word.Word64@+ * 'Proto.Lnrpc.Ln1_Fields.baseFee' @:: Lens' ChannelUpdate Data.Word.Word32@+ * 'Proto.Lnrpc.Ln1_Fields.feeRate' @:: Lens' ChannelUpdate Data.Word.Word32@+ * 'Proto.Lnrpc.Ln1_Fields.htlcMaximumMsat' @:: Lens' ChannelUpdate Data.Word.Word64@+ * 'Proto.Lnrpc.Ln1_Fields.extraOpaqueData' @:: Lens' ChannelUpdate Data.ByteString.ByteString@ -}+data ChannelUpdate+ = ChannelUpdate'_constructor {_ChannelUpdate'signature :: !Data.ByteString.ByteString,+ _ChannelUpdate'chainHash :: !Data.ByteString.ByteString,+ _ChannelUpdate'chanId :: !Data.Word.Word64,+ _ChannelUpdate'timestamp :: !Data.Word.Word32,+ _ChannelUpdate'messageFlags :: !Data.Word.Word32,+ _ChannelUpdate'channelFlags :: !Data.Word.Word32,+ _ChannelUpdate'timeLockDelta :: !Data.Word.Word32,+ _ChannelUpdate'htlcMinimumMsat :: !Data.Word.Word64,+ _ChannelUpdate'baseFee :: !Data.Word.Word32,+ _ChannelUpdate'feeRate :: !Data.Word.Word32,+ _ChannelUpdate'htlcMaximumMsat :: !Data.Word.Word64,+ _ChannelUpdate'extraOpaqueData :: !Data.ByteString.ByteString,+ _ChannelUpdate'_unknownFields :: !Data.ProtoLens.FieldSet}+ deriving stock (Prelude.Eq, Prelude.Ord, GHC.Generics.Generic)+instance Prelude.Show ChannelUpdate where+ showsPrec _ __x __s+ = Prelude.showChar+ '{'+ (Prelude.showString+ (Data.ProtoLens.showMessageShort __x) (Prelude.showChar '}' __s))+instance Text.PrettyPrint.GenericPretty.Out ChannelUpdate+instance Data.ProtoLens.Field.HasField ChannelUpdate "signature" Data.ByteString.ByteString where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _ChannelUpdate'signature+ (\ x__ y__ -> x__ {_ChannelUpdate'signature = y__}))+ Prelude.id+instance Data.ProtoLens.Field.HasField ChannelUpdate "chainHash" Data.ByteString.ByteString where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _ChannelUpdate'chainHash+ (\ x__ y__ -> x__ {_ChannelUpdate'chainHash = y__}))+ Prelude.id+instance Data.ProtoLens.Field.HasField ChannelUpdate "chanId" Data.Word.Word64 where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _ChannelUpdate'chanId+ (\ x__ y__ -> x__ {_ChannelUpdate'chanId = y__}))+ Prelude.id+instance Data.ProtoLens.Field.HasField ChannelUpdate "timestamp" Data.Word.Word32 where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _ChannelUpdate'timestamp+ (\ x__ y__ -> x__ {_ChannelUpdate'timestamp = y__}))+ Prelude.id+instance Data.ProtoLens.Field.HasField ChannelUpdate "messageFlags" Data.Word.Word32 where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _ChannelUpdate'messageFlags+ (\ x__ y__ -> x__ {_ChannelUpdate'messageFlags = y__}))+ Prelude.id+instance Data.ProtoLens.Field.HasField ChannelUpdate "channelFlags" Data.Word.Word32 where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _ChannelUpdate'channelFlags+ (\ x__ y__ -> x__ {_ChannelUpdate'channelFlags = y__}))+ Prelude.id+instance Data.ProtoLens.Field.HasField ChannelUpdate "timeLockDelta" Data.Word.Word32 where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _ChannelUpdate'timeLockDelta+ (\ x__ y__ -> x__ {_ChannelUpdate'timeLockDelta = y__}))+ Prelude.id+instance Data.ProtoLens.Field.HasField ChannelUpdate "htlcMinimumMsat" Data.Word.Word64 where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _ChannelUpdate'htlcMinimumMsat+ (\ x__ y__ -> x__ {_ChannelUpdate'htlcMinimumMsat = y__}))+ Prelude.id+instance Data.ProtoLens.Field.HasField ChannelUpdate "baseFee" Data.Word.Word32 where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _ChannelUpdate'baseFee+ (\ x__ y__ -> x__ {_ChannelUpdate'baseFee = y__}))+ Prelude.id+instance Data.ProtoLens.Field.HasField ChannelUpdate "feeRate" Data.Word.Word32 where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _ChannelUpdate'feeRate+ (\ x__ y__ -> x__ {_ChannelUpdate'feeRate = y__}))+ Prelude.id+instance Data.ProtoLens.Field.HasField ChannelUpdate "htlcMaximumMsat" Data.Word.Word64 where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _ChannelUpdate'htlcMaximumMsat+ (\ x__ y__ -> x__ {_ChannelUpdate'htlcMaximumMsat = y__}))+ Prelude.id+instance Data.ProtoLens.Field.HasField ChannelUpdate "extraOpaqueData" Data.ByteString.ByteString where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _ChannelUpdate'extraOpaqueData+ (\ x__ y__ -> x__ {_ChannelUpdate'extraOpaqueData = y__}))+ Prelude.id+instance Data.ProtoLens.Message ChannelUpdate where+ messageName _ = Data.Text.pack "lnrpc.ChannelUpdate"+ packedMessageDescriptor _+ = "\n\+ \\rChannelUpdate\DC2\FS\n\+ \\tsignature\CAN\SOH \SOH(\fR\tsignature\DC2\GS\n\+ \\n\+ \chain_hash\CAN\STX \SOH(\fR\tchainHash\DC2\ESC\n\+ \\achan_id\CAN\ETX \SOH(\EOTR\ACKchanIdB\STX0\SOH\DC2\FS\n\+ \\ttimestamp\CAN\EOT \SOH(\rR\ttimestamp\DC2#\n\+ \\rmessage_flags\CAN\n\+ \ \SOH(\rR\fmessageFlags\DC2#\n\+ \\rchannel_flags\CAN\ENQ \SOH(\rR\fchannelFlags\DC2&\n\+ \\SItime_lock_delta\CAN\ACK \SOH(\rR\rtimeLockDelta\DC2*\n\+ \\DC1htlc_minimum_msat\CAN\a \SOH(\EOTR\SIhtlcMinimumMsat\DC2\EM\n\+ \\bbase_fee\CAN\b \SOH(\rR\abaseFee\DC2\EM\n\+ \\bfee_rate\CAN\t \SOH(\rR\afeeRate\DC2*\n\+ \\DC1htlc_maximum_msat\CAN\v \SOH(\EOTR\SIhtlcMaximumMsat\DC2*\n\+ \\DC1extra_opaque_data\CAN\f \SOH(\fR\SIextraOpaqueData"+ packedFileDescriptor _ = packedFileDescriptor+ fieldsByTag+ = let+ signature__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "signature"+ (Data.ProtoLens.ScalarField Data.ProtoLens.BytesField ::+ Data.ProtoLens.FieldTypeDescriptor Data.ByteString.ByteString)+ (Data.ProtoLens.PlainField+ Data.ProtoLens.Optional+ (Data.ProtoLens.Field.field @"signature")) ::+ Data.ProtoLens.FieldDescriptor ChannelUpdate+ chainHash__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "chain_hash"+ (Data.ProtoLens.ScalarField Data.ProtoLens.BytesField ::+ Data.ProtoLens.FieldTypeDescriptor Data.ByteString.ByteString)+ (Data.ProtoLens.PlainField+ Data.ProtoLens.Optional+ (Data.ProtoLens.Field.field @"chainHash")) ::+ Data.ProtoLens.FieldDescriptor ChannelUpdate+ chanId__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "chan_id"+ (Data.ProtoLens.ScalarField Data.ProtoLens.UInt64Field ::+ Data.ProtoLens.FieldTypeDescriptor Data.Word.Word64)+ (Data.ProtoLens.PlainField+ Data.ProtoLens.Optional (Data.ProtoLens.Field.field @"chanId")) ::+ Data.ProtoLens.FieldDescriptor ChannelUpdate+ timestamp__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "timestamp"+ (Data.ProtoLens.ScalarField Data.ProtoLens.UInt32Field ::+ Data.ProtoLens.FieldTypeDescriptor Data.Word.Word32)+ (Data.ProtoLens.PlainField+ Data.ProtoLens.Optional+ (Data.ProtoLens.Field.field @"timestamp")) ::+ Data.ProtoLens.FieldDescriptor ChannelUpdate+ messageFlags__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "message_flags"+ (Data.ProtoLens.ScalarField Data.ProtoLens.UInt32Field ::+ Data.ProtoLens.FieldTypeDescriptor Data.Word.Word32)+ (Data.ProtoLens.PlainField+ Data.ProtoLens.Optional+ (Data.ProtoLens.Field.field @"messageFlags")) ::+ Data.ProtoLens.FieldDescriptor ChannelUpdate+ channelFlags__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "channel_flags"+ (Data.ProtoLens.ScalarField Data.ProtoLens.UInt32Field ::+ Data.ProtoLens.FieldTypeDescriptor Data.Word.Word32)+ (Data.ProtoLens.PlainField+ Data.ProtoLens.Optional+ (Data.ProtoLens.Field.field @"channelFlags")) ::+ Data.ProtoLens.FieldDescriptor ChannelUpdate+ timeLockDelta__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "time_lock_delta"+ (Data.ProtoLens.ScalarField Data.ProtoLens.UInt32Field ::+ Data.ProtoLens.FieldTypeDescriptor Data.Word.Word32)+ (Data.ProtoLens.PlainField+ Data.ProtoLens.Optional+ (Data.ProtoLens.Field.field @"timeLockDelta")) ::+ Data.ProtoLens.FieldDescriptor ChannelUpdate+ htlcMinimumMsat__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "htlc_minimum_msat"+ (Data.ProtoLens.ScalarField Data.ProtoLens.UInt64Field ::+ Data.ProtoLens.FieldTypeDescriptor Data.Word.Word64)+ (Data.ProtoLens.PlainField+ Data.ProtoLens.Optional+ (Data.ProtoLens.Field.field @"htlcMinimumMsat")) ::+ Data.ProtoLens.FieldDescriptor ChannelUpdate+ baseFee__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "base_fee"+ (Data.ProtoLens.ScalarField Data.ProtoLens.UInt32Field ::+ Data.ProtoLens.FieldTypeDescriptor Data.Word.Word32)+ (Data.ProtoLens.PlainField+ Data.ProtoLens.Optional (Data.ProtoLens.Field.field @"baseFee")) ::+ Data.ProtoLens.FieldDescriptor ChannelUpdate+ feeRate__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "fee_rate"+ (Data.ProtoLens.ScalarField Data.ProtoLens.UInt32Field ::+ Data.ProtoLens.FieldTypeDescriptor Data.Word.Word32)+ (Data.ProtoLens.PlainField+ Data.ProtoLens.Optional (Data.ProtoLens.Field.field @"feeRate")) ::+ Data.ProtoLens.FieldDescriptor ChannelUpdate+ htlcMaximumMsat__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "htlc_maximum_msat"+ (Data.ProtoLens.ScalarField Data.ProtoLens.UInt64Field ::+ Data.ProtoLens.FieldTypeDescriptor Data.Word.Word64)+ (Data.ProtoLens.PlainField+ Data.ProtoLens.Optional+ (Data.ProtoLens.Field.field @"htlcMaximumMsat")) ::+ Data.ProtoLens.FieldDescriptor ChannelUpdate+ extraOpaqueData__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "extra_opaque_data"+ (Data.ProtoLens.ScalarField Data.ProtoLens.BytesField ::+ Data.ProtoLens.FieldTypeDescriptor Data.ByteString.ByteString)+ (Data.ProtoLens.PlainField+ Data.ProtoLens.Optional+ (Data.ProtoLens.Field.field @"extraOpaqueData")) ::+ Data.ProtoLens.FieldDescriptor ChannelUpdate+ in+ Data.Map.fromList+ [(Data.ProtoLens.Tag 1, signature__field_descriptor),+ (Data.ProtoLens.Tag 2, chainHash__field_descriptor),+ (Data.ProtoLens.Tag 3, chanId__field_descriptor),+ (Data.ProtoLens.Tag 4, timestamp__field_descriptor),+ (Data.ProtoLens.Tag 10, messageFlags__field_descriptor),+ (Data.ProtoLens.Tag 5, channelFlags__field_descriptor),+ (Data.ProtoLens.Tag 6, timeLockDelta__field_descriptor),+ (Data.ProtoLens.Tag 7, htlcMinimumMsat__field_descriptor),+ (Data.ProtoLens.Tag 8, baseFee__field_descriptor),+ (Data.ProtoLens.Tag 9, feeRate__field_descriptor),+ (Data.ProtoLens.Tag 11, htlcMaximumMsat__field_descriptor),+ (Data.ProtoLens.Tag 12, extraOpaqueData__field_descriptor)]+ unknownFields+ = Lens.Family2.Unchecked.lens+ _ChannelUpdate'_unknownFields+ (\ x__ y__ -> x__ {_ChannelUpdate'_unknownFields = y__})+ defMessage+ = ChannelUpdate'_constructor+ {_ChannelUpdate'signature = Data.ProtoLens.fieldDefault,+ _ChannelUpdate'chainHash = Data.ProtoLens.fieldDefault,+ _ChannelUpdate'chanId = Data.ProtoLens.fieldDefault,+ _ChannelUpdate'timestamp = Data.ProtoLens.fieldDefault,+ _ChannelUpdate'messageFlags = Data.ProtoLens.fieldDefault,+ _ChannelUpdate'channelFlags = Data.ProtoLens.fieldDefault,+ _ChannelUpdate'timeLockDelta = Data.ProtoLens.fieldDefault,+ _ChannelUpdate'htlcMinimumMsat = Data.ProtoLens.fieldDefault,+ _ChannelUpdate'baseFee = Data.ProtoLens.fieldDefault,+ _ChannelUpdate'feeRate = Data.ProtoLens.fieldDefault,+ _ChannelUpdate'htlcMaximumMsat = Data.ProtoLens.fieldDefault,+ _ChannelUpdate'extraOpaqueData = Data.ProtoLens.fieldDefault,+ _ChannelUpdate'_unknownFields = []}+ parseMessage+ = let+ loop ::+ ChannelUpdate -> Data.ProtoLens.Encoding.Bytes.Parser ChannelUpdate+ loop x+ = do end <- Data.ProtoLens.Encoding.Bytes.atEnd+ if end then+ do (let missing = []+ in+ if Prelude.null missing then+ Prelude.return ()+ else+ Prelude.fail+ ((Prelude.++)+ "Missing required fields: "+ (Prelude.show (missing :: [Prelude.String]))))+ Prelude.return+ (Lens.Family2.over+ Data.ProtoLens.unknownFields (\ !t -> Prelude.reverse t) x)+ else+ do tag <- Data.ProtoLens.Encoding.Bytes.getVarInt+ case tag of+ 10+ -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (do len <- Data.ProtoLens.Encoding.Bytes.getVarInt+ Data.ProtoLens.Encoding.Bytes.getBytes+ (Prelude.fromIntegral len))+ "signature"+ loop+ (Lens.Family2.set (Data.ProtoLens.Field.field @"signature") y x)+ 18+ -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (do len <- Data.ProtoLens.Encoding.Bytes.getVarInt+ Data.ProtoLens.Encoding.Bytes.getBytes+ (Prelude.fromIntegral len))+ "chain_hash"+ loop+ (Lens.Family2.set (Data.ProtoLens.Field.field @"chainHash") y x)+ 24+ -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ Data.ProtoLens.Encoding.Bytes.getVarInt "chan_id"+ loop (Lens.Family2.set (Data.ProtoLens.Field.field @"chanId") y x)+ 32+ -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (Prelude.fmap+ Prelude.fromIntegral+ Data.ProtoLens.Encoding.Bytes.getVarInt)+ "timestamp"+ loop+ (Lens.Family2.set (Data.ProtoLens.Field.field @"timestamp") y x)+ 80+ -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (Prelude.fmap+ Prelude.fromIntegral+ Data.ProtoLens.Encoding.Bytes.getVarInt)+ "message_flags"+ loop+ (Lens.Family2.set+ (Data.ProtoLens.Field.field @"messageFlags") y x)+ 40+ -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (Prelude.fmap+ Prelude.fromIntegral+ Data.ProtoLens.Encoding.Bytes.getVarInt)+ "channel_flags"+ loop+ (Lens.Family2.set+ (Data.ProtoLens.Field.field @"channelFlags") y x)+ 48+ -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (Prelude.fmap+ Prelude.fromIntegral+ Data.ProtoLens.Encoding.Bytes.getVarInt)+ "time_lock_delta"+ loop+ (Lens.Family2.set+ (Data.ProtoLens.Field.field @"timeLockDelta") y x)+ 56+ -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ Data.ProtoLens.Encoding.Bytes.getVarInt "htlc_minimum_msat"+ loop+ (Lens.Family2.set+ (Data.ProtoLens.Field.field @"htlcMinimumMsat") y x)+ 64+ -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (Prelude.fmap+ Prelude.fromIntegral+ Data.ProtoLens.Encoding.Bytes.getVarInt)+ "base_fee"+ loop (Lens.Family2.set (Data.ProtoLens.Field.field @"baseFee") y x)+ 72+ -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (Prelude.fmap+ Prelude.fromIntegral+ Data.ProtoLens.Encoding.Bytes.getVarInt)+ "fee_rate"+ loop (Lens.Family2.set (Data.ProtoLens.Field.field @"feeRate") y x)+ 88+ -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ Data.ProtoLens.Encoding.Bytes.getVarInt "htlc_maximum_msat"+ loop+ (Lens.Family2.set+ (Data.ProtoLens.Field.field @"htlcMaximumMsat") y x)+ 98+ -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (do len <- Data.ProtoLens.Encoding.Bytes.getVarInt+ Data.ProtoLens.Encoding.Bytes.getBytes+ (Prelude.fromIntegral len))+ "extra_opaque_data"+ loop+ (Lens.Family2.set+ (Data.ProtoLens.Field.field @"extraOpaqueData") y x)+ wire+ -> do !y <- Data.ProtoLens.Encoding.Wire.parseTaggedValueFromWire+ wire+ loop+ (Lens.Family2.over+ Data.ProtoLens.unknownFields (\ !t -> (:) y t) x)+ in+ (Data.ProtoLens.Encoding.Bytes.<?>)+ (do loop Data.ProtoLens.defMessage) "ChannelUpdate"+ buildMessage+ = \ _x+ -> (Data.Monoid.<>)+ (let+ _v = Lens.Family2.view (Data.ProtoLens.Field.field @"signature") _x+ in+ if (Prelude.==) _v Data.ProtoLens.fieldDefault then+ Data.Monoid.mempty+ else+ (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 10)+ ((\ bs+ -> (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt+ (Prelude.fromIntegral (Data.ByteString.length bs)))+ (Data.ProtoLens.Encoding.Bytes.putBytes bs))+ _v))+ ((Data.Monoid.<>)+ (let+ _v = Lens.Family2.view (Data.ProtoLens.Field.field @"chainHash") _x+ in+ if (Prelude.==) _v Data.ProtoLens.fieldDefault then+ Data.Monoid.mempty+ else+ (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 18)+ ((\ bs+ -> (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt+ (Prelude.fromIntegral (Data.ByteString.length bs)))+ (Data.ProtoLens.Encoding.Bytes.putBytes bs))+ _v))+ ((Data.Monoid.<>)+ (let+ _v = Lens.Family2.view (Data.ProtoLens.Field.field @"chanId") _x+ in+ if (Prelude.==) _v Data.ProtoLens.fieldDefault then+ Data.Monoid.mempty+ else+ (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 24)+ (Data.ProtoLens.Encoding.Bytes.putVarInt _v))+ ((Data.Monoid.<>)+ (let+ _v = Lens.Family2.view (Data.ProtoLens.Field.field @"timestamp") _x+ in+ if (Prelude.==) _v Data.ProtoLens.fieldDefault then+ Data.Monoid.mempty+ else+ (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 32)+ ((Prelude..)+ Data.ProtoLens.Encoding.Bytes.putVarInt Prelude.fromIntegral _v))+ ((Data.Monoid.<>)+ (let+ _v+ = Lens.Family2.view (Data.ProtoLens.Field.field @"messageFlags") _x+ in+ if (Prelude.==) _v Data.ProtoLens.fieldDefault then+ Data.Monoid.mempty+ else+ (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 80)+ ((Prelude..)+ Data.ProtoLens.Encoding.Bytes.putVarInt Prelude.fromIntegral+ _v))+ ((Data.Monoid.<>)+ (let+ _v+ = Lens.Family2.view (Data.ProtoLens.Field.field @"channelFlags") _x+ in+ if (Prelude.==) _v Data.ProtoLens.fieldDefault then+ Data.Monoid.mempty+ else+ (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 40)+ ((Prelude..)+ Data.ProtoLens.Encoding.Bytes.putVarInt Prelude.fromIntegral+ _v))+ ((Data.Monoid.<>)+ (let+ _v+ = Lens.Family2.view+ (Data.ProtoLens.Field.field @"timeLockDelta") _x+ in+ if (Prelude.==) _v Data.ProtoLens.fieldDefault then+ Data.Monoid.mempty+ else+ (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 48)+ ((Prelude..)+ Data.ProtoLens.Encoding.Bytes.putVarInt+ Prelude.fromIntegral _v))+ ((Data.Monoid.<>)+ (let+ _v+ = Lens.Family2.view+ (Data.ProtoLens.Field.field @"htlcMinimumMsat") _x+ in+ if (Prelude.==) _v Data.ProtoLens.fieldDefault then+ Data.Monoid.mempty+ else+ (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 56)+ (Data.ProtoLens.Encoding.Bytes.putVarInt _v))+ ((Data.Monoid.<>)+ (let+ _v+ = Lens.Family2.view+ (Data.ProtoLens.Field.field @"baseFee") _x+ in+ if (Prelude.==) _v Data.ProtoLens.fieldDefault then+ Data.Monoid.mempty+ else+ (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 64)+ ((Prelude..)+ Data.ProtoLens.Encoding.Bytes.putVarInt+ Prelude.fromIntegral _v))+ ((Data.Monoid.<>)+ (let+ _v+ = Lens.Family2.view+ (Data.ProtoLens.Field.field @"feeRate") _x+ in+ if (Prelude.==) _v Data.ProtoLens.fieldDefault then+ Data.Monoid.mempty+ else+ (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 72)+ ((Prelude..)+ Data.ProtoLens.Encoding.Bytes.putVarInt+ Prelude.fromIntegral _v))+ ((Data.Monoid.<>)+ (let+ _v+ = Lens.Family2.view+ (Data.ProtoLens.Field.field @"htlcMaximumMsat")+ _x+ in+ if (Prelude.==) _v Data.ProtoLens.fieldDefault then+ Data.Monoid.mempty+ else+ (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 88)+ (Data.ProtoLens.Encoding.Bytes.putVarInt _v))+ ((Data.Monoid.<>)+ (let+ _v+ = Lens.Family2.view+ (Data.ProtoLens.Field.field+ @"extraOpaqueData")+ _x+ in+ if (Prelude.==) _v Data.ProtoLens.fieldDefault then+ Data.Monoid.mempty+ else+ (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 98)+ ((\ bs+ -> (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt+ (Prelude.fromIntegral+ (Data.ByteString.length bs)))+ (Data.ProtoLens.Encoding.Bytes.putBytes+ bs))+ _v))+ (Data.ProtoLens.Encoding.Wire.buildFieldSet+ (Lens.Family2.view+ Data.ProtoLens.unknownFields _x)))))))))))))+instance Control.DeepSeq.NFData ChannelUpdate where+ rnf+ = \ x__+ -> Control.DeepSeq.deepseq+ (_ChannelUpdate'_unknownFields x__)+ (Control.DeepSeq.deepseq+ (_ChannelUpdate'signature x__)+ (Control.DeepSeq.deepseq+ (_ChannelUpdate'chainHash x__)+ (Control.DeepSeq.deepseq+ (_ChannelUpdate'chanId x__)+ (Control.DeepSeq.deepseq+ (_ChannelUpdate'timestamp x__)+ (Control.DeepSeq.deepseq+ (_ChannelUpdate'messageFlags x__)+ (Control.DeepSeq.deepseq+ (_ChannelUpdate'channelFlags x__)+ (Control.DeepSeq.deepseq+ (_ChannelUpdate'timeLockDelta x__)+ (Control.DeepSeq.deepseq+ (_ChannelUpdate'htlcMinimumMsat x__)+ (Control.DeepSeq.deepseq+ (_ChannelUpdate'baseFee x__)+ (Control.DeepSeq.deepseq+ (_ChannelUpdate'feeRate x__)+ (Control.DeepSeq.deepseq+ (_ChannelUpdate'htlcMaximumMsat x__)+ (Control.DeepSeq.deepseq+ (_ChannelUpdate'extraOpaqueData x__) ()))))))))))))+{- | Fields :+ + * 'Proto.Lnrpc.Ln1_Fields.macaroon' @:: Lens' CheckMacPermRequest Data.ByteString.ByteString@+ * 'Proto.Lnrpc.Ln1_Fields.permissions' @:: Lens' CheckMacPermRequest [MacaroonPermission]@+ * 'Proto.Lnrpc.Ln1_Fields.vec'permissions' @:: Lens' CheckMacPermRequest (Data.Vector.Vector MacaroonPermission)@+ * 'Proto.Lnrpc.Ln1_Fields.fullMethod' @:: Lens' CheckMacPermRequest Data.Text.Text@ -}+data CheckMacPermRequest+ = CheckMacPermRequest'_constructor {_CheckMacPermRequest'macaroon :: !Data.ByteString.ByteString,+ _CheckMacPermRequest'permissions :: !(Data.Vector.Vector MacaroonPermission),+ _CheckMacPermRequest'fullMethod :: !Data.Text.Text,+ _CheckMacPermRequest'_unknownFields :: !Data.ProtoLens.FieldSet}+ deriving stock (Prelude.Eq, Prelude.Ord, GHC.Generics.Generic)+instance Prelude.Show CheckMacPermRequest where+ showsPrec _ __x __s+ = Prelude.showChar+ '{'+ (Prelude.showString+ (Data.ProtoLens.showMessageShort __x) (Prelude.showChar '}' __s))+instance Text.PrettyPrint.GenericPretty.Out CheckMacPermRequest+instance Data.ProtoLens.Field.HasField CheckMacPermRequest "macaroon" Data.ByteString.ByteString where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _CheckMacPermRequest'macaroon+ (\ x__ y__ -> x__ {_CheckMacPermRequest'macaroon = y__}))+ Prelude.id+instance Data.ProtoLens.Field.HasField CheckMacPermRequest "permissions" [MacaroonPermission] where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _CheckMacPermRequest'permissions+ (\ x__ y__ -> x__ {_CheckMacPermRequest'permissions = y__}))+ (Lens.Family2.Unchecked.lens+ Data.Vector.Generic.toList+ (\ _ y__ -> Data.Vector.Generic.fromList y__))+instance Data.ProtoLens.Field.HasField CheckMacPermRequest "vec'permissions" (Data.Vector.Vector MacaroonPermission) where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _CheckMacPermRequest'permissions+ (\ x__ y__ -> x__ {_CheckMacPermRequest'permissions = y__}))+ Prelude.id+instance Data.ProtoLens.Field.HasField CheckMacPermRequest "fullMethod" Data.Text.Text where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _CheckMacPermRequest'fullMethod+ (\ x__ y__ -> x__ {_CheckMacPermRequest'fullMethod = y__}))+ Prelude.id+instance Data.ProtoLens.Message CheckMacPermRequest where+ messageName _ = Data.Text.pack "lnrpc.CheckMacPermRequest"+ packedMessageDescriptor _+ = "\n\+ \\DC3CheckMacPermRequest\DC2\SUB\n\+ \\bmacaroon\CAN\SOH \SOH(\fR\bmacaroon\DC2;\n\+ \\vpermissions\CAN\STX \ETX(\v2\EM.lnrpc.MacaroonPermissionR\vpermissions\DC2\RS\n\+ \\n\+ \fullMethod\CAN\ETX \SOH(\tR\n\+ \fullMethod"+ packedFileDescriptor _ = packedFileDescriptor+ fieldsByTag+ = let+ macaroon__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "macaroon"+ (Data.ProtoLens.ScalarField Data.ProtoLens.BytesField ::+ Data.ProtoLens.FieldTypeDescriptor Data.ByteString.ByteString)+ (Data.ProtoLens.PlainField+ Data.ProtoLens.Optional+ (Data.ProtoLens.Field.field @"macaroon")) ::+ Data.ProtoLens.FieldDescriptor CheckMacPermRequest+ permissions__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "permissions"+ (Data.ProtoLens.MessageField Data.ProtoLens.MessageType ::+ Data.ProtoLens.FieldTypeDescriptor MacaroonPermission)+ (Data.ProtoLens.RepeatedField+ Data.ProtoLens.Unpacked+ (Data.ProtoLens.Field.field @"permissions")) ::+ Data.ProtoLens.FieldDescriptor CheckMacPermRequest+ fullMethod__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "fullMethod"+ (Data.ProtoLens.ScalarField Data.ProtoLens.StringField ::+ Data.ProtoLens.FieldTypeDescriptor Data.Text.Text)+ (Data.ProtoLens.PlainField+ Data.ProtoLens.Optional+ (Data.ProtoLens.Field.field @"fullMethod")) ::+ Data.ProtoLens.FieldDescriptor CheckMacPermRequest+ in+ Data.Map.fromList+ [(Data.ProtoLens.Tag 1, macaroon__field_descriptor),+ (Data.ProtoLens.Tag 2, permissions__field_descriptor),+ (Data.ProtoLens.Tag 3, fullMethod__field_descriptor)]+ unknownFields+ = Lens.Family2.Unchecked.lens+ _CheckMacPermRequest'_unknownFields+ (\ x__ y__ -> x__ {_CheckMacPermRequest'_unknownFields = y__})+ defMessage+ = CheckMacPermRequest'_constructor+ {_CheckMacPermRequest'macaroon = Data.ProtoLens.fieldDefault,+ _CheckMacPermRequest'permissions = Data.Vector.Generic.empty,+ _CheckMacPermRequest'fullMethod = Data.ProtoLens.fieldDefault,+ _CheckMacPermRequest'_unknownFields = []}+ parseMessage+ = let+ loop ::+ CheckMacPermRequest+ -> Data.ProtoLens.Encoding.Growing.Growing Data.Vector.Vector Data.ProtoLens.Encoding.Growing.RealWorld MacaroonPermission+ -> Data.ProtoLens.Encoding.Bytes.Parser CheckMacPermRequest+ loop x mutable'permissions+ = do end <- Data.ProtoLens.Encoding.Bytes.atEnd+ if end then+ do frozen'permissions <- Data.ProtoLens.Encoding.Parser.Unsafe.unsafeLiftIO+ (Data.ProtoLens.Encoding.Growing.unsafeFreeze+ mutable'permissions)+ (let missing = []+ in+ if Prelude.null missing then+ Prelude.return ()+ else+ Prelude.fail+ ((Prelude.++)+ "Missing required fields: "+ (Prelude.show (missing :: [Prelude.String]))))+ Prelude.return+ (Lens.Family2.over+ Data.ProtoLens.unknownFields (\ !t -> Prelude.reverse t)+ (Lens.Family2.set+ (Data.ProtoLens.Field.field @"vec'permissions") frozen'permissions+ x))+ else+ do tag <- Data.ProtoLens.Encoding.Bytes.getVarInt+ case tag of+ 10+ -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (do len <- Data.ProtoLens.Encoding.Bytes.getVarInt+ Data.ProtoLens.Encoding.Bytes.getBytes+ (Prelude.fromIntegral len))+ "macaroon"+ loop+ (Lens.Family2.set (Data.ProtoLens.Field.field @"macaroon") y x)+ mutable'permissions+ 18+ -> do !y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (do len <- Data.ProtoLens.Encoding.Bytes.getVarInt+ Data.ProtoLens.Encoding.Bytes.isolate+ (Prelude.fromIntegral len)+ Data.ProtoLens.parseMessage)+ "permissions"+ v <- Data.ProtoLens.Encoding.Parser.Unsafe.unsafeLiftIO+ (Data.ProtoLens.Encoding.Growing.append+ mutable'permissions y)+ loop x v+ 26+ -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (do value <- do len <- Data.ProtoLens.Encoding.Bytes.getVarInt+ Data.ProtoLens.Encoding.Bytes.getBytes+ (Prelude.fromIntegral len)+ Data.ProtoLens.Encoding.Bytes.runEither+ (case Data.Text.Encoding.decodeUtf8' value of+ (Prelude.Left err)+ -> Prelude.Left (Prelude.show err)+ (Prelude.Right r) -> Prelude.Right r))+ "fullMethod"+ loop+ (Lens.Family2.set (Data.ProtoLens.Field.field @"fullMethod") y x)+ mutable'permissions+ wire+ -> do !y <- Data.ProtoLens.Encoding.Wire.parseTaggedValueFromWire+ wire+ loop+ (Lens.Family2.over+ Data.ProtoLens.unknownFields (\ !t -> (:) y t) x)+ mutable'permissions+ in+ (Data.ProtoLens.Encoding.Bytes.<?>)+ (do mutable'permissions <- Data.ProtoLens.Encoding.Parser.Unsafe.unsafeLiftIO+ Data.ProtoLens.Encoding.Growing.new+ loop Data.ProtoLens.defMessage mutable'permissions)+ "CheckMacPermRequest"+ buildMessage+ = \ _x+ -> (Data.Monoid.<>)+ (let+ _v = Lens.Family2.view (Data.ProtoLens.Field.field @"macaroon") _x+ in+ if (Prelude.==) _v Data.ProtoLens.fieldDefault then+ Data.Monoid.mempty+ else+ (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 10)+ ((\ bs+ -> (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt+ (Prelude.fromIntegral (Data.ByteString.length bs)))+ (Data.ProtoLens.Encoding.Bytes.putBytes bs))+ _v))+ ((Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.foldMapBuilder+ (\ _v+ -> (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 18)+ ((Prelude..)+ (\ bs+ -> (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt+ (Prelude.fromIntegral (Data.ByteString.length bs)))+ (Data.ProtoLens.Encoding.Bytes.putBytes bs))+ Data.ProtoLens.encodeMessage _v))+ (Lens.Family2.view+ (Data.ProtoLens.Field.field @"vec'permissions") _x))+ ((Data.Monoid.<>)+ (let+ _v+ = Lens.Family2.view (Data.ProtoLens.Field.field @"fullMethod") _x+ in+ if (Prelude.==) _v Data.ProtoLens.fieldDefault then+ Data.Monoid.mempty+ else+ (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 26)+ ((Prelude..)+ (\ bs+ -> (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt+ (Prelude.fromIntegral (Data.ByteString.length bs)))+ (Data.ProtoLens.Encoding.Bytes.putBytes bs))+ Data.Text.Encoding.encodeUtf8 _v))+ (Data.ProtoLens.Encoding.Wire.buildFieldSet+ (Lens.Family2.view Data.ProtoLens.unknownFields _x))))+instance Control.DeepSeq.NFData CheckMacPermRequest where+ rnf+ = \ x__+ -> Control.DeepSeq.deepseq+ (_CheckMacPermRequest'_unknownFields x__)+ (Control.DeepSeq.deepseq+ (_CheckMacPermRequest'macaroon x__)+ (Control.DeepSeq.deepseq+ (_CheckMacPermRequest'permissions x__)+ (Control.DeepSeq.deepseq+ (_CheckMacPermRequest'fullMethod x__) ())))+{- | Fields :+ + * 'Proto.Lnrpc.Ln1_Fields.valid' @:: Lens' CheckMacPermResponse Prelude.Bool@ -}+data CheckMacPermResponse+ = CheckMacPermResponse'_constructor {_CheckMacPermResponse'valid :: !Prelude.Bool,+ _CheckMacPermResponse'_unknownFields :: !Data.ProtoLens.FieldSet}+ deriving stock (Prelude.Eq, Prelude.Ord, GHC.Generics.Generic)+instance Prelude.Show CheckMacPermResponse where+ showsPrec _ __x __s+ = Prelude.showChar+ '{'+ (Prelude.showString+ (Data.ProtoLens.showMessageShort __x) (Prelude.showChar '}' __s))+instance Text.PrettyPrint.GenericPretty.Out CheckMacPermResponse+instance Data.ProtoLens.Field.HasField CheckMacPermResponse "valid" Prelude.Bool where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _CheckMacPermResponse'valid+ (\ x__ y__ -> x__ {_CheckMacPermResponse'valid = y__}))+ Prelude.id+instance Data.ProtoLens.Message CheckMacPermResponse where+ messageName _ = Data.Text.pack "lnrpc.CheckMacPermResponse"+ packedMessageDescriptor _+ = "\n\+ \\DC4CheckMacPermResponse\DC2\DC4\n\+ \\ENQvalid\CAN\SOH \SOH(\bR\ENQvalid"+ packedFileDescriptor _ = packedFileDescriptor+ fieldsByTag+ = let+ valid__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "valid"+ (Data.ProtoLens.ScalarField Data.ProtoLens.BoolField ::+ Data.ProtoLens.FieldTypeDescriptor Prelude.Bool)+ (Data.ProtoLens.PlainField+ Data.ProtoLens.Optional (Data.ProtoLens.Field.field @"valid")) ::+ Data.ProtoLens.FieldDescriptor CheckMacPermResponse+ in+ Data.Map.fromList [(Data.ProtoLens.Tag 1, valid__field_descriptor)]+ unknownFields+ = Lens.Family2.Unchecked.lens+ _CheckMacPermResponse'_unknownFields+ (\ x__ y__ -> x__ {_CheckMacPermResponse'_unknownFields = y__})+ defMessage+ = CheckMacPermResponse'_constructor+ {_CheckMacPermResponse'valid = Data.ProtoLens.fieldDefault,+ _CheckMacPermResponse'_unknownFields = []}+ parseMessage+ = let+ loop ::+ CheckMacPermResponse+ -> Data.ProtoLens.Encoding.Bytes.Parser CheckMacPermResponse+ loop x+ = do end <- Data.ProtoLens.Encoding.Bytes.atEnd+ if end then+ do (let missing = []+ in+ if Prelude.null missing then+ Prelude.return ()+ else+ Prelude.fail+ ((Prelude.++)+ "Missing required fields: "+ (Prelude.show (missing :: [Prelude.String]))))+ Prelude.return+ (Lens.Family2.over+ Data.ProtoLens.unknownFields (\ !t -> Prelude.reverse t) x)+ else+ do tag <- Data.ProtoLens.Encoding.Bytes.getVarInt+ case tag of+ 8 -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (Prelude.fmap+ ((Prelude./=) 0) Data.ProtoLens.Encoding.Bytes.getVarInt)+ "valid"+ loop (Lens.Family2.set (Data.ProtoLens.Field.field @"valid") y x)+ wire+ -> do !y <- Data.ProtoLens.Encoding.Wire.parseTaggedValueFromWire+ wire+ loop+ (Lens.Family2.over+ Data.ProtoLens.unknownFields (\ !t -> (:) y t) x)+ in+ (Data.ProtoLens.Encoding.Bytes.<?>)+ (do loop Data.ProtoLens.defMessage) "CheckMacPermResponse"+ buildMessage+ = \ _x+ -> (Data.Monoid.<>)+ (let+ _v = Lens.Family2.view (Data.ProtoLens.Field.field @"valid") _x+ in+ if (Prelude.==) _v Data.ProtoLens.fieldDefault then+ Data.Monoid.mempty+ else+ (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 8)+ ((Prelude..)+ Data.ProtoLens.Encoding.Bytes.putVarInt (\ b -> if b then 1 else 0)+ _v))+ (Data.ProtoLens.Encoding.Wire.buildFieldSet+ (Lens.Family2.view Data.ProtoLens.unknownFields _x))+instance Control.DeepSeq.NFData CheckMacPermResponse where+ rnf+ = \ x__+ -> Control.DeepSeq.deepseq+ (_CheckMacPermResponse'_unknownFields x__)+ (Control.DeepSeq.deepseq (_CheckMacPermResponse'valid x__) ())+{- | Fields :+ + * 'Proto.Lnrpc.Ln1_Fields.show' @:: Lens' DebugLevelRequest Prelude.Bool@+ * 'Proto.Lnrpc.Ln1_Fields.levelSpec' @:: Lens' DebugLevelRequest Data.Text.Text@ -}+data DebugLevelRequest+ = DebugLevelRequest'_constructor {_DebugLevelRequest'show :: !Prelude.Bool,+ _DebugLevelRequest'levelSpec :: !Data.Text.Text,+ _DebugLevelRequest'_unknownFields :: !Data.ProtoLens.FieldSet}+ deriving stock (Prelude.Eq, Prelude.Ord, GHC.Generics.Generic)+instance Prelude.Show DebugLevelRequest where+ showsPrec _ __x __s+ = Prelude.showChar+ '{'+ (Prelude.showString+ (Data.ProtoLens.showMessageShort __x) (Prelude.showChar '}' __s))+instance Text.PrettyPrint.GenericPretty.Out DebugLevelRequest+instance Data.ProtoLens.Field.HasField DebugLevelRequest "show" Prelude.Bool where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _DebugLevelRequest'show+ (\ x__ y__ -> x__ {_DebugLevelRequest'show = y__}))+ Prelude.id+instance Data.ProtoLens.Field.HasField DebugLevelRequest "levelSpec" Data.Text.Text where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _DebugLevelRequest'levelSpec+ (\ x__ y__ -> x__ {_DebugLevelRequest'levelSpec = y__}))+ Prelude.id+instance Data.ProtoLens.Message DebugLevelRequest where+ messageName _ = Data.Text.pack "lnrpc.DebugLevelRequest"+ packedMessageDescriptor _+ = "\n\+ \\DC1DebugLevelRequest\DC2\DC2\n\+ \\EOTshow\CAN\SOH \SOH(\bR\EOTshow\DC2\GS\n\+ \\n\+ \level_spec\CAN\STX \SOH(\tR\tlevelSpec"+ packedFileDescriptor _ = packedFileDescriptor+ fieldsByTag+ = let+ show__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "show"+ (Data.ProtoLens.ScalarField Data.ProtoLens.BoolField ::+ Data.ProtoLens.FieldTypeDescriptor Prelude.Bool)+ (Data.ProtoLens.PlainField+ Data.ProtoLens.Optional (Data.ProtoLens.Field.field @"show")) ::+ Data.ProtoLens.FieldDescriptor DebugLevelRequest+ levelSpec__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "level_spec"+ (Data.ProtoLens.ScalarField Data.ProtoLens.StringField ::+ Data.ProtoLens.FieldTypeDescriptor Data.Text.Text)+ (Data.ProtoLens.PlainField+ Data.ProtoLens.Optional+ (Data.ProtoLens.Field.field @"levelSpec")) ::+ Data.ProtoLens.FieldDescriptor DebugLevelRequest+ in+ Data.Map.fromList+ [(Data.ProtoLens.Tag 1, show__field_descriptor),+ (Data.ProtoLens.Tag 2, levelSpec__field_descriptor)]+ unknownFields+ = Lens.Family2.Unchecked.lens+ _DebugLevelRequest'_unknownFields+ (\ x__ y__ -> x__ {_DebugLevelRequest'_unknownFields = y__})+ defMessage+ = DebugLevelRequest'_constructor+ {_DebugLevelRequest'show = Data.ProtoLens.fieldDefault,+ _DebugLevelRequest'levelSpec = Data.ProtoLens.fieldDefault,+ _DebugLevelRequest'_unknownFields = []}+ parseMessage+ = let+ loop ::+ DebugLevelRequest+ -> Data.ProtoLens.Encoding.Bytes.Parser DebugLevelRequest+ loop x+ = do end <- Data.ProtoLens.Encoding.Bytes.atEnd+ if end then+ do (let missing = []+ in+ if Prelude.null missing then+ Prelude.return ()+ else+ Prelude.fail+ ((Prelude.++)+ "Missing required fields: "+ (Prelude.show (missing :: [Prelude.String]))))+ Prelude.return+ (Lens.Family2.over+ Data.ProtoLens.unknownFields (\ !t -> Prelude.reverse t) x)+ else+ do tag <- Data.ProtoLens.Encoding.Bytes.getVarInt+ case tag of+ 8 -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (Prelude.fmap+ ((Prelude./=) 0) Data.ProtoLens.Encoding.Bytes.getVarInt)+ "show"+ loop (Lens.Family2.set (Data.ProtoLens.Field.field @"show") y x)+ 18+ -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (do value <- do len <- Data.ProtoLens.Encoding.Bytes.getVarInt+ Data.ProtoLens.Encoding.Bytes.getBytes+ (Prelude.fromIntegral len)+ Data.ProtoLens.Encoding.Bytes.runEither+ (case Data.Text.Encoding.decodeUtf8' value of+ (Prelude.Left err)+ -> Prelude.Left (Prelude.show err)+ (Prelude.Right r) -> Prelude.Right r))+ "level_spec"+ loop+ (Lens.Family2.set (Data.ProtoLens.Field.field @"levelSpec") y x)+ wire+ -> do !y <- Data.ProtoLens.Encoding.Wire.parseTaggedValueFromWire+ wire+ loop+ (Lens.Family2.over+ Data.ProtoLens.unknownFields (\ !t -> (:) y t) x)+ in+ (Data.ProtoLens.Encoding.Bytes.<?>)+ (do loop Data.ProtoLens.defMessage) "DebugLevelRequest"+ buildMessage+ = \ _x+ -> (Data.Monoid.<>)+ (let _v = Lens.Family2.view (Data.ProtoLens.Field.field @"show") _x+ in+ if (Prelude.==) _v Data.ProtoLens.fieldDefault then+ Data.Monoid.mempty+ else+ (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 8)+ ((Prelude..)+ Data.ProtoLens.Encoding.Bytes.putVarInt (\ b -> if b then 1 else 0)+ _v))+ ((Data.Monoid.<>)+ (let+ _v = Lens.Family2.view (Data.ProtoLens.Field.field @"levelSpec") _x+ in+ if (Prelude.==) _v Data.ProtoLens.fieldDefault then+ Data.Monoid.mempty+ else+ (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 18)+ ((Prelude..)+ (\ bs+ -> (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt+ (Prelude.fromIntegral (Data.ByteString.length bs)))+ (Data.ProtoLens.Encoding.Bytes.putBytes bs))+ Data.Text.Encoding.encodeUtf8 _v))+ (Data.ProtoLens.Encoding.Wire.buildFieldSet+ (Lens.Family2.view Data.ProtoLens.unknownFields _x)))+instance Control.DeepSeq.NFData DebugLevelRequest where+ rnf+ = \ x__+ -> Control.DeepSeq.deepseq+ (_DebugLevelRequest'_unknownFields x__)+ (Control.DeepSeq.deepseq+ (_DebugLevelRequest'show x__)+ (Control.DeepSeq.deepseq (_DebugLevelRequest'levelSpec x__) ()))+{- | Fields :+ + * 'Proto.Lnrpc.Ln1_Fields.subSystems' @:: Lens' DebugLevelResponse Data.Text.Text@ -}+data DebugLevelResponse+ = DebugLevelResponse'_constructor {_DebugLevelResponse'subSystems :: !Data.Text.Text,+ _DebugLevelResponse'_unknownFields :: !Data.ProtoLens.FieldSet}+ deriving stock (Prelude.Eq, Prelude.Ord, GHC.Generics.Generic)+instance Prelude.Show DebugLevelResponse where+ showsPrec _ __x __s+ = Prelude.showChar+ '{'+ (Prelude.showString+ (Data.ProtoLens.showMessageShort __x) (Prelude.showChar '}' __s))+instance Text.PrettyPrint.GenericPretty.Out DebugLevelResponse+instance Data.ProtoLens.Field.HasField DebugLevelResponse "subSystems" Data.Text.Text where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _DebugLevelResponse'subSystems+ (\ x__ y__ -> x__ {_DebugLevelResponse'subSystems = y__}))+ Prelude.id+instance Data.ProtoLens.Message DebugLevelResponse where+ messageName _ = Data.Text.pack "lnrpc.DebugLevelResponse"+ packedMessageDescriptor _+ = "\n\+ \\DC2DebugLevelResponse\DC2\US\n\+ \\vsub_systems\CAN\SOH \SOH(\tR\n\+ \subSystems"+ packedFileDescriptor _ = packedFileDescriptor+ fieldsByTag+ = let+ subSystems__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "sub_systems"+ (Data.ProtoLens.ScalarField Data.ProtoLens.StringField ::+ Data.ProtoLens.FieldTypeDescriptor Data.Text.Text)+ (Data.ProtoLens.PlainField+ Data.ProtoLens.Optional+ (Data.ProtoLens.Field.field @"subSystems")) ::+ Data.ProtoLens.FieldDescriptor DebugLevelResponse+ in+ Data.Map.fromList+ [(Data.ProtoLens.Tag 1, subSystems__field_descriptor)]+ unknownFields+ = Lens.Family2.Unchecked.lens+ _DebugLevelResponse'_unknownFields+ (\ x__ y__ -> x__ {_DebugLevelResponse'_unknownFields = y__})+ defMessage+ = DebugLevelResponse'_constructor+ {_DebugLevelResponse'subSystems = Data.ProtoLens.fieldDefault,+ _DebugLevelResponse'_unknownFields = []}+ parseMessage+ = let+ loop ::+ DebugLevelResponse+ -> Data.ProtoLens.Encoding.Bytes.Parser DebugLevelResponse+ loop x+ = do end <- Data.ProtoLens.Encoding.Bytes.atEnd+ if end then+ do (let missing = []+ in+ if Prelude.null missing then+ Prelude.return ()+ else+ Prelude.fail+ ((Prelude.++)+ "Missing required fields: "+ (Prelude.show (missing :: [Prelude.String]))))+ Prelude.return+ (Lens.Family2.over+ Data.ProtoLens.unknownFields (\ !t -> Prelude.reverse t) x)+ else+ do tag <- Data.ProtoLens.Encoding.Bytes.getVarInt+ case tag of+ 10+ -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (do value <- do len <- Data.ProtoLens.Encoding.Bytes.getVarInt+ Data.ProtoLens.Encoding.Bytes.getBytes+ (Prelude.fromIntegral len)+ Data.ProtoLens.Encoding.Bytes.runEither+ (case Data.Text.Encoding.decodeUtf8' value of+ (Prelude.Left err)+ -> Prelude.Left (Prelude.show err)+ (Prelude.Right r) -> Prelude.Right r))+ "sub_systems"+ loop+ (Lens.Family2.set (Data.ProtoLens.Field.field @"subSystems") y x)+ wire+ -> do !y <- Data.ProtoLens.Encoding.Wire.parseTaggedValueFromWire+ wire+ loop+ (Lens.Family2.over+ Data.ProtoLens.unknownFields (\ !t -> (:) y t) x)+ in+ (Data.ProtoLens.Encoding.Bytes.<?>)+ (do loop Data.ProtoLens.defMessage) "DebugLevelResponse"+ buildMessage+ = \ _x+ -> (Data.Monoid.<>)+ (let+ _v+ = Lens.Family2.view (Data.ProtoLens.Field.field @"subSystems") _x+ in+ if (Prelude.==) _v Data.ProtoLens.fieldDefault then+ Data.Monoid.mempty+ else+ (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 10)+ ((Prelude..)+ (\ bs+ -> (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt+ (Prelude.fromIntegral (Data.ByteString.length bs)))+ (Data.ProtoLens.Encoding.Bytes.putBytes bs))+ Data.Text.Encoding.encodeUtf8 _v))+ (Data.ProtoLens.Encoding.Wire.buildFieldSet+ (Lens.Family2.view Data.ProtoLens.unknownFields _x))+instance Control.DeepSeq.NFData DebugLevelResponse where+ rnf+ = \ x__+ -> Control.DeepSeq.deepseq+ (_DebugLevelResponse'_unknownFields x__)+ (Control.DeepSeq.deepseq (_DebugLevelResponse'subSystems x__) ())+{- | Fields :+ + * 'Proto.Lnrpc.Ln1_Fields.failedPaymentsOnly' @:: Lens' DeleteAllPaymentsRequest Prelude.Bool@+ * 'Proto.Lnrpc.Ln1_Fields.failedHtlcsOnly' @:: Lens' DeleteAllPaymentsRequest Prelude.Bool@ -}+data DeleteAllPaymentsRequest+ = DeleteAllPaymentsRequest'_constructor {_DeleteAllPaymentsRequest'failedPaymentsOnly :: !Prelude.Bool,+ _DeleteAllPaymentsRequest'failedHtlcsOnly :: !Prelude.Bool,+ _DeleteAllPaymentsRequest'_unknownFields :: !Data.ProtoLens.FieldSet}+ deriving stock (Prelude.Eq, Prelude.Ord, GHC.Generics.Generic)+instance Prelude.Show DeleteAllPaymentsRequest where+ showsPrec _ __x __s+ = Prelude.showChar+ '{'+ (Prelude.showString+ (Data.ProtoLens.showMessageShort __x) (Prelude.showChar '}' __s))+instance Text.PrettyPrint.GenericPretty.Out DeleteAllPaymentsRequest+instance Data.ProtoLens.Field.HasField DeleteAllPaymentsRequest "failedPaymentsOnly" Prelude.Bool where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _DeleteAllPaymentsRequest'failedPaymentsOnly+ (\ x__ y__+ -> x__ {_DeleteAllPaymentsRequest'failedPaymentsOnly = y__}))+ Prelude.id+instance Data.ProtoLens.Field.HasField DeleteAllPaymentsRequest "failedHtlcsOnly" Prelude.Bool where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _DeleteAllPaymentsRequest'failedHtlcsOnly+ (\ x__ y__+ -> x__ {_DeleteAllPaymentsRequest'failedHtlcsOnly = y__}))+ Prelude.id+instance Data.ProtoLens.Message DeleteAllPaymentsRequest where+ messageName _ = Data.Text.pack "lnrpc.DeleteAllPaymentsRequest"+ packedMessageDescriptor _+ = "\n\+ \\CANDeleteAllPaymentsRequest\DC20\n\+ \\DC4failed_payments_only\CAN\SOH \SOH(\bR\DC2failedPaymentsOnly\DC2*\n\+ \\DC1failed_htlcs_only\CAN\STX \SOH(\bR\SIfailedHtlcsOnly"+ packedFileDescriptor _ = packedFileDescriptor+ fieldsByTag+ = let+ failedPaymentsOnly__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "failed_payments_only"+ (Data.ProtoLens.ScalarField Data.ProtoLens.BoolField ::+ Data.ProtoLens.FieldTypeDescriptor Prelude.Bool)+ (Data.ProtoLens.PlainField+ Data.ProtoLens.Optional+ (Data.ProtoLens.Field.field @"failedPaymentsOnly")) ::+ Data.ProtoLens.FieldDescriptor DeleteAllPaymentsRequest+ failedHtlcsOnly__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "failed_htlcs_only"+ (Data.ProtoLens.ScalarField Data.ProtoLens.BoolField ::+ Data.ProtoLens.FieldTypeDescriptor Prelude.Bool)+ (Data.ProtoLens.PlainField+ Data.ProtoLens.Optional+ (Data.ProtoLens.Field.field @"failedHtlcsOnly")) ::+ Data.ProtoLens.FieldDescriptor DeleteAllPaymentsRequest+ in+ Data.Map.fromList+ [(Data.ProtoLens.Tag 1, failedPaymentsOnly__field_descriptor),+ (Data.ProtoLens.Tag 2, failedHtlcsOnly__field_descriptor)]+ unknownFields+ = Lens.Family2.Unchecked.lens+ _DeleteAllPaymentsRequest'_unknownFields+ (\ x__ y__ -> x__ {_DeleteAllPaymentsRequest'_unknownFields = y__})+ defMessage+ = DeleteAllPaymentsRequest'_constructor+ {_DeleteAllPaymentsRequest'failedPaymentsOnly = Data.ProtoLens.fieldDefault,+ _DeleteAllPaymentsRequest'failedHtlcsOnly = Data.ProtoLens.fieldDefault,+ _DeleteAllPaymentsRequest'_unknownFields = []}+ parseMessage+ = let+ loop ::+ DeleteAllPaymentsRequest+ -> Data.ProtoLens.Encoding.Bytes.Parser DeleteAllPaymentsRequest+ loop x+ = do end <- Data.ProtoLens.Encoding.Bytes.atEnd+ if end then+ do (let missing = []+ in+ if Prelude.null missing then+ Prelude.return ()+ else+ Prelude.fail+ ((Prelude.++)+ "Missing required fields: "+ (Prelude.show (missing :: [Prelude.String]))))+ Prelude.return+ (Lens.Family2.over+ Data.ProtoLens.unknownFields (\ !t -> Prelude.reverse t) x)+ else+ do tag <- Data.ProtoLens.Encoding.Bytes.getVarInt+ case tag of+ 8 -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (Prelude.fmap+ ((Prelude./=) 0) Data.ProtoLens.Encoding.Bytes.getVarInt)+ "failed_payments_only"+ loop+ (Lens.Family2.set+ (Data.ProtoLens.Field.field @"failedPaymentsOnly") y x)+ 16+ -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (Prelude.fmap+ ((Prelude./=) 0) Data.ProtoLens.Encoding.Bytes.getVarInt)+ "failed_htlcs_only"+ loop+ (Lens.Family2.set+ (Data.ProtoLens.Field.field @"failedHtlcsOnly") y x)+ wire+ -> do !y <- Data.ProtoLens.Encoding.Wire.parseTaggedValueFromWire+ wire+ loop+ (Lens.Family2.over+ Data.ProtoLens.unknownFields (\ !t -> (:) y t) x)+ in+ (Data.ProtoLens.Encoding.Bytes.<?>)+ (do loop Data.ProtoLens.defMessage) "DeleteAllPaymentsRequest"+ buildMessage+ = \ _x+ -> (Data.Monoid.<>)+ (let+ _v+ = Lens.Family2.view+ (Data.ProtoLens.Field.field @"failedPaymentsOnly") _x+ in+ if (Prelude.==) _v Data.ProtoLens.fieldDefault then+ Data.Monoid.mempty+ else+ (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 8)+ ((Prelude..)+ Data.ProtoLens.Encoding.Bytes.putVarInt (\ b -> if b then 1 else 0)+ _v))+ ((Data.Monoid.<>)+ (let+ _v+ = Lens.Family2.view+ (Data.ProtoLens.Field.field @"failedHtlcsOnly") _x+ in+ if (Prelude.==) _v Data.ProtoLens.fieldDefault then+ Data.Monoid.mempty+ else+ (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 16)+ ((Prelude..)+ Data.ProtoLens.Encoding.Bytes.putVarInt (\ b -> if b then 1 else 0)+ _v))+ (Data.ProtoLens.Encoding.Wire.buildFieldSet+ (Lens.Family2.view Data.ProtoLens.unknownFields _x)))+instance Control.DeepSeq.NFData DeleteAllPaymentsRequest where+ rnf+ = \ x__+ -> Control.DeepSeq.deepseq+ (_DeleteAllPaymentsRequest'_unknownFields x__)+ (Control.DeepSeq.deepseq+ (_DeleteAllPaymentsRequest'failedPaymentsOnly x__)+ (Control.DeepSeq.deepseq+ (_DeleteAllPaymentsRequest'failedHtlcsOnly x__) ()))+{- | Fields :+ -}+data DeleteAllPaymentsResponse+ = DeleteAllPaymentsResponse'_constructor {_DeleteAllPaymentsResponse'_unknownFields :: !Data.ProtoLens.FieldSet}+ deriving stock (Prelude.Eq, Prelude.Ord, GHC.Generics.Generic)+instance Prelude.Show DeleteAllPaymentsResponse where+ showsPrec _ __x __s+ = Prelude.showChar+ '{'+ (Prelude.showString+ (Data.ProtoLens.showMessageShort __x) (Prelude.showChar '}' __s))+instance Text.PrettyPrint.GenericPretty.Out DeleteAllPaymentsResponse+instance Data.ProtoLens.Message DeleteAllPaymentsResponse where+ messageName _ = Data.Text.pack "lnrpc.DeleteAllPaymentsResponse"+ packedMessageDescriptor _+ = "\n\+ \\EMDeleteAllPaymentsResponse"+ packedFileDescriptor _ = packedFileDescriptor+ fieldsByTag = let in Data.Map.fromList []+ unknownFields+ = Lens.Family2.Unchecked.lens+ _DeleteAllPaymentsResponse'_unknownFields+ (\ x__ y__+ -> x__ {_DeleteAllPaymentsResponse'_unknownFields = y__})+ defMessage+ = DeleteAllPaymentsResponse'_constructor+ {_DeleteAllPaymentsResponse'_unknownFields = []}+ parseMessage+ = let+ loop ::+ DeleteAllPaymentsResponse+ -> Data.ProtoLens.Encoding.Bytes.Parser DeleteAllPaymentsResponse+ loop x+ = do end <- Data.ProtoLens.Encoding.Bytes.atEnd+ if end then+ do (let missing = []+ in+ if Prelude.null missing then+ Prelude.return ()+ else+ Prelude.fail+ ((Prelude.++)+ "Missing required fields: "+ (Prelude.show (missing :: [Prelude.String]))))+ Prelude.return+ (Lens.Family2.over+ Data.ProtoLens.unknownFields (\ !t -> Prelude.reverse t) x)+ else+ do tag <- Data.ProtoLens.Encoding.Bytes.getVarInt+ case tag of {+ wire+ -> do !y <- Data.ProtoLens.Encoding.Wire.parseTaggedValueFromWire+ wire+ loop+ (Lens.Family2.over+ Data.ProtoLens.unknownFields (\ !t -> (:) y t) x) }+ in+ (Data.ProtoLens.Encoding.Bytes.<?>)+ (do loop Data.ProtoLens.defMessage) "DeleteAllPaymentsResponse"+ buildMessage+ = \ _x+ -> Data.ProtoLens.Encoding.Wire.buildFieldSet+ (Lens.Family2.view Data.ProtoLens.unknownFields _x)+instance Control.DeepSeq.NFData DeleteAllPaymentsResponse where+ rnf+ = \ x__+ -> Control.DeepSeq.deepseq+ (_DeleteAllPaymentsResponse'_unknownFields x__) ()+{- | Fields :+ + * 'Proto.Lnrpc.Ln1_Fields.rootKeyId' @:: Lens' DeleteMacaroonIDRequest Data.Word.Word64@ -}+data DeleteMacaroonIDRequest+ = DeleteMacaroonIDRequest'_constructor {_DeleteMacaroonIDRequest'rootKeyId :: !Data.Word.Word64,+ _DeleteMacaroonIDRequest'_unknownFields :: !Data.ProtoLens.FieldSet}+ deriving stock (Prelude.Eq, Prelude.Ord, GHC.Generics.Generic)+instance Prelude.Show DeleteMacaroonIDRequest where+ showsPrec _ __x __s+ = Prelude.showChar+ '{'+ (Prelude.showString+ (Data.ProtoLens.showMessageShort __x) (Prelude.showChar '}' __s))+instance Text.PrettyPrint.GenericPretty.Out DeleteMacaroonIDRequest+instance Data.ProtoLens.Field.HasField DeleteMacaroonIDRequest "rootKeyId" Data.Word.Word64 where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _DeleteMacaroonIDRequest'rootKeyId+ (\ x__ y__ -> x__ {_DeleteMacaroonIDRequest'rootKeyId = y__}))+ Prelude.id+instance Data.ProtoLens.Message DeleteMacaroonIDRequest where+ messageName _ = Data.Text.pack "lnrpc.DeleteMacaroonIDRequest"+ packedMessageDescriptor _+ = "\n\+ \\ETBDeleteMacaroonIDRequest\DC2\RS\n\+ \\vroot_key_id\CAN\SOH \SOH(\EOTR\trootKeyId"+ packedFileDescriptor _ = packedFileDescriptor+ fieldsByTag+ = let+ rootKeyId__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "root_key_id"+ (Data.ProtoLens.ScalarField Data.ProtoLens.UInt64Field ::+ Data.ProtoLens.FieldTypeDescriptor Data.Word.Word64)+ (Data.ProtoLens.PlainField+ Data.ProtoLens.Optional+ (Data.ProtoLens.Field.field @"rootKeyId")) ::+ Data.ProtoLens.FieldDescriptor DeleteMacaroonIDRequest+ in+ Data.Map.fromList+ [(Data.ProtoLens.Tag 1, rootKeyId__field_descriptor)]+ unknownFields+ = Lens.Family2.Unchecked.lens+ _DeleteMacaroonIDRequest'_unknownFields+ (\ x__ y__ -> x__ {_DeleteMacaroonIDRequest'_unknownFields = y__})+ defMessage+ = DeleteMacaroonIDRequest'_constructor+ {_DeleteMacaroonIDRequest'rootKeyId = Data.ProtoLens.fieldDefault,+ _DeleteMacaroonIDRequest'_unknownFields = []}+ parseMessage+ = let+ loop ::+ DeleteMacaroonIDRequest+ -> Data.ProtoLens.Encoding.Bytes.Parser DeleteMacaroonIDRequest+ loop x+ = do end <- Data.ProtoLens.Encoding.Bytes.atEnd+ if end then+ do (let missing = []+ in+ if Prelude.null missing then+ Prelude.return ()+ else+ Prelude.fail+ ((Prelude.++)+ "Missing required fields: "+ (Prelude.show (missing :: [Prelude.String]))))+ Prelude.return+ (Lens.Family2.over+ Data.ProtoLens.unknownFields (\ !t -> Prelude.reverse t) x)+ else+ do tag <- Data.ProtoLens.Encoding.Bytes.getVarInt+ case tag of+ 8 -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ Data.ProtoLens.Encoding.Bytes.getVarInt "root_key_id"+ loop+ (Lens.Family2.set (Data.ProtoLens.Field.field @"rootKeyId") y x)+ wire+ -> do !y <- Data.ProtoLens.Encoding.Wire.parseTaggedValueFromWire+ wire+ loop+ (Lens.Family2.over+ Data.ProtoLens.unknownFields (\ !t -> (:) y t) x)+ in+ (Data.ProtoLens.Encoding.Bytes.<?>)+ (do loop Data.ProtoLens.defMessage) "DeleteMacaroonIDRequest"+ buildMessage+ = \ _x+ -> (Data.Monoid.<>)+ (let+ _v = Lens.Family2.view (Data.ProtoLens.Field.field @"rootKeyId") _x+ in+ if (Prelude.==) _v Data.ProtoLens.fieldDefault then+ Data.Monoid.mempty+ else+ (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 8)+ (Data.ProtoLens.Encoding.Bytes.putVarInt _v))+ (Data.ProtoLens.Encoding.Wire.buildFieldSet+ (Lens.Family2.view Data.ProtoLens.unknownFields _x))+instance Control.DeepSeq.NFData DeleteMacaroonIDRequest where+ rnf+ = \ x__+ -> Control.DeepSeq.deepseq+ (_DeleteMacaroonIDRequest'_unknownFields x__)+ (Control.DeepSeq.deepseq+ (_DeleteMacaroonIDRequest'rootKeyId x__) ())+{- | Fields :+ + * 'Proto.Lnrpc.Ln1_Fields.deleted' @:: Lens' DeleteMacaroonIDResponse Prelude.Bool@ -}+data DeleteMacaroonIDResponse+ = DeleteMacaroonIDResponse'_constructor {_DeleteMacaroonIDResponse'deleted :: !Prelude.Bool,+ _DeleteMacaroonIDResponse'_unknownFields :: !Data.ProtoLens.FieldSet}+ deriving stock (Prelude.Eq, Prelude.Ord, GHC.Generics.Generic)+instance Prelude.Show DeleteMacaroonIDResponse where+ showsPrec _ __x __s+ = Prelude.showChar+ '{'+ (Prelude.showString+ (Data.ProtoLens.showMessageShort __x) (Prelude.showChar '}' __s))+instance Text.PrettyPrint.GenericPretty.Out DeleteMacaroonIDResponse+instance Data.ProtoLens.Field.HasField DeleteMacaroonIDResponse "deleted" Prelude.Bool where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _DeleteMacaroonIDResponse'deleted+ (\ x__ y__ -> x__ {_DeleteMacaroonIDResponse'deleted = y__}))+ Prelude.id+instance Data.ProtoLens.Message DeleteMacaroonIDResponse where+ messageName _ = Data.Text.pack "lnrpc.DeleteMacaroonIDResponse"+ packedMessageDescriptor _+ = "\n\+ \\CANDeleteMacaroonIDResponse\DC2\CAN\n\+ \\adeleted\CAN\SOH \SOH(\bR\adeleted"+ packedFileDescriptor _ = packedFileDescriptor+ fieldsByTag+ = let+ deleted__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "deleted"+ (Data.ProtoLens.ScalarField Data.ProtoLens.BoolField ::+ Data.ProtoLens.FieldTypeDescriptor Prelude.Bool)+ (Data.ProtoLens.PlainField+ Data.ProtoLens.Optional (Data.ProtoLens.Field.field @"deleted")) ::+ Data.ProtoLens.FieldDescriptor DeleteMacaroonIDResponse+ in+ Data.Map.fromList+ [(Data.ProtoLens.Tag 1, deleted__field_descriptor)]+ unknownFields+ = Lens.Family2.Unchecked.lens+ _DeleteMacaroonIDResponse'_unknownFields+ (\ x__ y__ -> x__ {_DeleteMacaroonIDResponse'_unknownFields = y__})+ defMessage+ = DeleteMacaroonIDResponse'_constructor+ {_DeleteMacaroonIDResponse'deleted = Data.ProtoLens.fieldDefault,+ _DeleteMacaroonIDResponse'_unknownFields = []}+ parseMessage+ = let+ loop ::+ DeleteMacaroonIDResponse+ -> Data.ProtoLens.Encoding.Bytes.Parser DeleteMacaroonIDResponse+ loop x+ = do end <- Data.ProtoLens.Encoding.Bytes.atEnd+ if end then+ do (let missing = []+ in+ if Prelude.null missing then+ Prelude.return ()+ else+ Prelude.fail+ ((Prelude.++)+ "Missing required fields: "+ (Prelude.show (missing :: [Prelude.String]))))+ Prelude.return+ (Lens.Family2.over+ Data.ProtoLens.unknownFields (\ !t -> Prelude.reverse t) x)+ else+ do tag <- Data.ProtoLens.Encoding.Bytes.getVarInt+ case tag of+ 8 -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (Prelude.fmap+ ((Prelude./=) 0) Data.ProtoLens.Encoding.Bytes.getVarInt)+ "deleted"+ loop (Lens.Family2.set (Data.ProtoLens.Field.field @"deleted") y x)+ wire+ -> do !y <- Data.ProtoLens.Encoding.Wire.parseTaggedValueFromWire+ wire+ loop+ (Lens.Family2.over+ Data.ProtoLens.unknownFields (\ !t -> (:) y t) x)+ in+ (Data.ProtoLens.Encoding.Bytes.<?>)+ (do loop Data.ProtoLens.defMessage) "DeleteMacaroonIDResponse"+ buildMessage+ = \ _x+ -> (Data.Monoid.<>)+ (let+ _v = Lens.Family2.view (Data.ProtoLens.Field.field @"deleted") _x+ in+ if (Prelude.==) _v Data.ProtoLens.fieldDefault then+ Data.Monoid.mempty+ else+ (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 8)+ ((Prelude..)+ Data.ProtoLens.Encoding.Bytes.putVarInt (\ b -> if b then 1 else 0)+ _v))+ (Data.ProtoLens.Encoding.Wire.buildFieldSet+ (Lens.Family2.view Data.ProtoLens.unknownFields _x))+instance Control.DeepSeq.NFData DeleteMacaroonIDResponse where+ rnf+ = \ x__+ -> Control.DeepSeq.deepseq+ (_DeleteMacaroonIDResponse'_unknownFields x__)+ (Control.DeepSeq.deepseq+ (_DeleteMacaroonIDResponse'deleted x__) ())+{- | Fields :+ + * 'Proto.Lnrpc.Ln1_Fields.paymentHash' @:: Lens' DeletePaymentRequest Data.ByteString.ByteString@+ * 'Proto.Lnrpc.Ln1_Fields.failedHtlcsOnly' @:: Lens' DeletePaymentRequest Prelude.Bool@ -}+data DeletePaymentRequest+ = DeletePaymentRequest'_constructor {_DeletePaymentRequest'paymentHash :: !Data.ByteString.ByteString,+ _DeletePaymentRequest'failedHtlcsOnly :: !Prelude.Bool,+ _DeletePaymentRequest'_unknownFields :: !Data.ProtoLens.FieldSet}+ deriving stock (Prelude.Eq, Prelude.Ord, GHC.Generics.Generic)+instance Prelude.Show DeletePaymentRequest where+ showsPrec _ __x __s+ = Prelude.showChar+ '{'+ (Prelude.showString+ (Data.ProtoLens.showMessageShort __x) (Prelude.showChar '}' __s))+instance Text.PrettyPrint.GenericPretty.Out DeletePaymentRequest+instance Data.ProtoLens.Field.HasField DeletePaymentRequest "paymentHash" Data.ByteString.ByteString where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _DeletePaymentRequest'paymentHash+ (\ x__ y__ -> x__ {_DeletePaymentRequest'paymentHash = y__}))+ Prelude.id+instance Data.ProtoLens.Field.HasField DeletePaymentRequest "failedHtlcsOnly" Prelude.Bool where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _DeletePaymentRequest'failedHtlcsOnly+ (\ x__ y__ -> x__ {_DeletePaymentRequest'failedHtlcsOnly = y__}))+ Prelude.id+instance Data.ProtoLens.Message DeletePaymentRequest where+ messageName _ = Data.Text.pack "lnrpc.DeletePaymentRequest"+ packedMessageDescriptor _+ = "\n\+ \\DC4DeletePaymentRequest\DC2!\n\+ \\fpayment_hash\CAN\SOH \SOH(\fR\vpaymentHash\DC2*\n\+ \\DC1failed_htlcs_only\CAN\STX \SOH(\bR\SIfailedHtlcsOnly"+ packedFileDescriptor _ = packedFileDescriptor+ fieldsByTag+ = let+ paymentHash__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "payment_hash"+ (Data.ProtoLens.ScalarField Data.ProtoLens.BytesField ::+ Data.ProtoLens.FieldTypeDescriptor Data.ByteString.ByteString)+ (Data.ProtoLens.PlainField+ Data.ProtoLens.Optional+ (Data.ProtoLens.Field.field @"paymentHash")) ::+ Data.ProtoLens.FieldDescriptor DeletePaymentRequest+ failedHtlcsOnly__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "failed_htlcs_only"+ (Data.ProtoLens.ScalarField Data.ProtoLens.BoolField ::+ Data.ProtoLens.FieldTypeDescriptor Prelude.Bool)+ (Data.ProtoLens.PlainField+ Data.ProtoLens.Optional+ (Data.ProtoLens.Field.field @"failedHtlcsOnly")) ::+ Data.ProtoLens.FieldDescriptor DeletePaymentRequest+ in+ Data.Map.fromList+ [(Data.ProtoLens.Tag 1, paymentHash__field_descriptor),+ (Data.ProtoLens.Tag 2, failedHtlcsOnly__field_descriptor)]+ unknownFields+ = Lens.Family2.Unchecked.lens+ _DeletePaymentRequest'_unknownFields+ (\ x__ y__ -> x__ {_DeletePaymentRequest'_unknownFields = y__})+ defMessage+ = DeletePaymentRequest'_constructor+ {_DeletePaymentRequest'paymentHash = Data.ProtoLens.fieldDefault,+ _DeletePaymentRequest'failedHtlcsOnly = Data.ProtoLens.fieldDefault,+ _DeletePaymentRequest'_unknownFields = []}+ parseMessage+ = let+ loop ::+ DeletePaymentRequest+ -> Data.ProtoLens.Encoding.Bytes.Parser DeletePaymentRequest+ loop x+ = do end <- Data.ProtoLens.Encoding.Bytes.atEnd+ if end then+ do (let missing = []+ in+ if Prelude.null missing then+ Prelude.return ()+ else+ Prelude.fail+ ((Prelude.++)+ "Missing required fields: "+ (Prelude.show (missing :: [Prelude.String]))))+ Prelude.return+ (Lens.Family2.over+ Data.ProtoLens.unknownFields (\ !t -> Prelude.reverse t) x)+ else+ do tag <- Data.ProtoLens.Encoding.Bytes.getVarInt+ case tag of+ 10+ -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (do len <- Data.ProtoLens.Encoding.Bytes.getVarInt+ Data.ProtoLens.Encoding.Bytes.getBytes+ (Prelude.fromIntegral len))+ "payment_hash"+ loop+ (Lens.Family2.set (Data.ProtoLens.Field.field @"paymentHash") y x)+ 16+ -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (Prelude.fmap+ ((Prelude./=) 0) Data.ProtoLens.Encoding.Bytes.getVarInt)+ "failed_htlcs_only"+ loop+ (Lens.Family2.set+ (Data.ProtoLens.Field.field @"failedHtlcsOnly") y x)+ wire+ -> do !y <- Data.ProtoLens.Encoding.Wire.parseTaggedValueFromWire+ wire+ loop+ (Lens.Family2.over+ Data.ProtoLens.unknownFields (\ !t -> (:) y t) x)+ in+ (Data.ProtoLens.Encoding.Bytes.<?>)+ (do loop Data.ProtoLens.defMessage) "DeletePaymentRequest"+ buildMessage+ = \ _x+ -> (Data.Monoid.<>)+ (let+ _v+ = Lens.Family2.view (Data.ProtoLens.Field.field @"paymentHash") _x+ in+ if (Prelude.==) _v Data.ProtoLens.fieldDefault then+ Data.Monoid.mempty+ else+ (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 10)+ ((\ bs+ -> (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt+ (Prelude.fromIntegral (Data.ByteString.length bs)))+ (Data.ProtoLens.Encoding.Bytes.putBytes bs))+ _v))+ ((Data.Monoid.<>)+ (let+ _v+ = Lens.Family2.view+ (Data.ProtoLens.Field.field @"failedHtlcsOnly") _x+ in+ if (Prelude.==) _v Data.ProtoLens.fieldDefault then+ Data.Monoid.mempty+ else+ (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 16)+ ((Prelude..)+ Data.ProtoLens.Encoding.Bytes.putVarInt (\ b -> if b then 1 else 0)+ _v))+ (Data.ProtoLens.Encoding.Wire.buildFieldSet+ (Lens.Family2.view Data.ProtoLens.unknownFields _x)))+instance Control.DeepSeq.NFData DeletePaymentRequest where+ rnf+ = \ x__+ -> Control.DeepSeq.deepseq+ (_DeletePaymentRequest'_unknownFields x__)+ (Control.DeepSeq.deepseq+ (_DeletePaymentRequest'paymentHash x__)+ (Control.DeepSeq.deepseq+ (_DeletePaymentRequest'failedHtlcsOnly x__) ()))+{- | Fields :+ -}+data DeletePaymentResponse+ = DeletePaymentResponse'_constructor {_DeletePaymentResponse'_unknownFields :: !Data.ProtoLens.FieldSet}+ deriving stock (Prelude.Eq, Prelude.Ord, GHC.Generics.Generic)+instance Prelude.Show DeletePaymentResponse where+ showsPrec _ __x __s+ = Prelude.showChar+ '{'+ (Prelude.showString+ (Data.ProtoLens.showMessageShort __x) (Prelude.showChar '}' __s))+instance Text.PrettyPrint.GenericPretty.Out DeletePaymentResponse+instance Data.ProtoLens.Message DeletePaymentResponse where+ messageName _ = Data.Text.pack "lnrpc.DeletePaymentResponse"+ packedMessageDescriptor _+ = "\n\+ \\NAKDeletePaymentResponse"+ packedFileDescriptor _ = packedFileDescriptor+ fieldsByTag = let in Data.Map.fromList []+ unknownFields+ = Lens.Family2.Unchecked.lens+ _DeletePaymentResponse'_unknownFields+ (\ x__ y__ -> x__ {_DeletePaymentResponse'_unknownFields = y__})+ defMessage+ = DeletePaymentResponse'_constructor+ {_DeletePaymentResponse'_unknownFields = []}+ parseMessage+ = let+ loop ::+ DeletePaymentResponse+ -> Data.ProtoLens.Encoding.Bytes.Parser DeletePaymentResponse+ loop x+ = do end <- Data.ProtoLens.Encoding.Bytes.atEnd+ if end then+ do (let missing = []+ in+ if Prelude.null missing then+ Prelude.return ()+ else+ Prelude.fail+ ((Prelude.++)+ "Missing required fields: "+ (Prelude.show (missing :: [Prelude.String]))))+ Prelude.return+ (Lens.Family2.over+ Data.ProtoLens.unknownFields (\ !t -> Prelude.reverse t) x)+ else+ do tag <- Data.ProtoLens.Encoding.Bytes.getVarInt+ case tag of {+ wire+ -> do !y <- Data.ProtoLens.Encoding.Wire.parseTaggedValueFromWire+ wire+ loop+ (Lens.Family2.over+ Data.ProtoLens.unknownFields (\ !t -> (:) y t) x) }+ in+ (Data.ProtoLens.Encoding.Bytes.<?>)+ (do loop Data.ProtoLens.defMessage) "DeletePaymentResponse"+ buildMessage+ = \ _x+ -> Data.ProtoLens.Encoding.Wire.buildFieldSet+ (Lens.Family2.view Data.ProtoLens.unknownFields _x)+instance Control.DeepSeq.NFData DeletePaymentResponse where+ rnf+ = \ x__+ -> Control.DeepSeq.deepseq+ (_DeletePaymentResponse'_unknownFields x__) ()+{- | Fields :+ + * 'Proto.Lnrpc.Ln1_Fields.chanPoint' @:: Lens' ExportChannelBackupRequest Proto.Lnrpc.Ln0.ChannelPoint@+ * 'Proto.Lnrpc.Ln1_Fields.maybe'chanPoint' @:: Lens' ExportChannelBackupRequest (Prelude.Maybe Proto.Lnrpc.Ln0.ChannelPoint)@ -}+data ExportChannelBackupRequest+ = ExportChannelBackupRequest'_constructor {_ExportChannelBackupRequest'chanPoint :: !(Prelude.Maybe Proto.Lnrpc.Ln0.ChannelPoint),+ _ExportChannelBackupRequest'_unknownFields :: !Data.ProtoLens.FieldSet}+ deriving stock (Prelude.Eq, Prelude.Ord, GHC.Generics.Generic)+instance Prelude.Show ExportChannelBackupRequest where+ showsPrec _ __x __s+ = Prelude.showChar+ '{'+ (Prelude.showString+ (Data.ProtoLens.showMessageShort __x) (Prelude.showChar '}' __s))+instance Text.PrettyPrint.GenericPretty.Out ExportChannelBackupRequest+instance Data.ProtoLens.Field.HasField ExportChannelBackupRequest "chanPoint" Proto.Lnrpc.Ln0.ChannelPoint where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _ExportChannelBackupRequest'chanPoint+ (\ x__ y__ -> x__ {_ExportChannelBackupRequest'chanPoint = y__}))+ (Data.ProtoLens.maybeLens Data.ProtoLens.defMessage)+instance Data.ProtoLens.Field.HasField ExportChannelBackupRequest "maybe'chanPoint" (Prelude.Maybe Proto.Lnrpc.Ln0.ChannelPoint) where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _ExportChannelBackupRequest'chanPoint+ (\ x__ y__ -> x__ {_ExportChannelBackupRequest'chanPoint = y__}))+ Prelude.id+instance Data.ProtoLens.Message ExportChannelBackupRequest where+ messageName _ = Data.Text.pack "lnrpc.ExportChannelBackupRequest"+ packedMessageDescriptor _+ = "\n\+ \\SUBExportChannelBackupRequest\DC22\n\+ \\n\+ \chan_point\CAN\SOH \SOH(\v2\DC3.lnrpc.ChannelPointR\tchanPoint"+ packedFileDescriptor _ = packedFileDescriptor+ fieldsByTag+ = let+ chanPoint__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "chan_point"+ (Data.ProtoLens.MessageField Data.ProtoLens.MessageType ::+ Data.ProtoLens.FieldTypeDescriptor Proto.Lnrpc.Ln0.ChannelPoint)+ (Data.ProtoLens.OptionalField+ (Data.ProtoLens.Field.field @"maybe'chanPoint")) ::+ Data.ProtoLens.FieldDescriptor ExportChannelBackupRequest+ in+ Data.Map.fromList+ [(Data.ProtoLens.Tag 1, chanPoint__field_descriptor)]+ unknownFields+ = Lens.Family2.Unchecked.lens+ _ExportChannelBackupRequest'_unknownFields+ (\ x__ y__+ -> x__ {_ExportChannelBackupRequest'_unknownFields = y__})+ defMessage+ = ExportChannelBackupRequest'_constructor+ {_ExportChannelBackupRequest'chanPoint = Prelude.Nothing,+ _ExportChannelBackupRequest'_unknownFields = []}+ parseMessage+ = let+ loop ::+ ExportChannelBackupRequest+ -> Data.ProtoLens.Encoding.Bytes.Parser ExportChannelBackupRequest+ loop x+ = do end <- Data.ProtoLens.Encoding.Bytes.atEnd+ if end then+ do (let missing = []+ in+ if Prelude.null missing then+ Prelude.return ()+ else+ Prelude.fail+ ((Prelude.++)+ "Missing required fields: "+ (Prelude.show (missing :: [Prelude.String]))))+ Prelude.return+ (Lens.Family2.over+ Data.ProtoLens.unknownFields (\ !t -> Prelude.reverse t) x)+ else+ do tag <- Data.ProtoLens.Encoding.Bytes.getVarInt+ case tag of+ 10+ -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (do len <- Data.ProtoLens.Encoding.Bytes.getVarInt+ Data.ProtoLens.Encoding.Bytes.isolate+ (Prelude.fromIntegral len) Data.ProtoLens.parseMessage)+ "chan_point"+ loop+ (Lens.Family2.set (Data.ProtoLens.Field.field @"chanPoint") y x)+ wire+ -> do !y <- Data.ProtoLens.Encoding.Wire.parseTaggedValueFromWire+ wire+ loop+ (Lens.Family2.over+ Data.ProtoLens.unknownFields (\ !t -> (:) y t) x)+ in+ (Data.ProtoLens.Encoding.Bytes.<?>)+ (do loop Data.ProtoLens.defMessage) "ExportChannelBackupRequest"+ buildMessage+ = \ _x+ -> (Data.Monoid.<>)+ (case+ Lens.Family2.view+ (Data.ProtoLens.Field.field @"maybe'chanPoint") _x+ of+ Prelude.Nothing -> Data.Monoid.mempty+ (Prelude.Just _v)+ -> (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 10)+ ((Prelude..)+ (\ bs+ -> (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt+ (Prelude.fromIntegral (Data.ByteString.length bs)))+ (Data.ProtoLens.Encoding.Bytes.putBytes bs))+ Data.ProtoLens.encodeMessage _v))+ (Data.ProtoLens.Encoding.Wire.buildFieldSet+ (Lens.Family2.view Data.ProtoLens.unknownFields _x))+instance Control.DeepSeq.NFData ExportChannelBackupRequest where+ rnf+ = \ x__+ -> Control.DeepSeq.deepseq+ (_ExportChannelBackupRequest'_unknownFields x__)+ (Control.DeepSeq.deepseq+ (_ExportChannelBackupRequest'chanPoint x__) ())+{- | Fields :+ + * 'Proto.Lnrpc.Ln1_Fields.outpoint' @:: Lens' FailedUpdate Proto.Lnrpc.Ln0.OutPoint@+ * 'Proto.Lnrpc.Ln1_Fields.maybe'outpoint' @:: Lens' FailedUpdate (Prelude.Maybe Proto.Lnrpc.Ln0.OutPoint)@+ * 'Proto.Lnrpc.Ln1_Fields.reason' @:: Lens' FailedUpdate UpdateFailure@+ * 'Proto.Lnrpc.Ln1_Fields.updateError' @:: Lens' FailedUpdate Data.Text.Text@ -}+data FailedUpdate+ = FailedUpdate'_constructor {_FailedUpdate'outpoint :: !(Prelude.Maybe Proto.Lnrpc.Ln0.OutPoint),+ _FailedUpdate'reason :: !UpdateFailure,+ _FailedUpdate'updateError :: !Data.Text.Text,+ _FailedUpdate'_unknownFields :: !Data.ProtoLens.FieldSet}+ deriving stock (Prelude.Eq, Prelude.Ord, GHC.Generics.Generic)+instance Prelude.Show FailedUpdate where+ showsPrec _ __x __s+ = Prelude.showChar+ '{'+ (Prelude.showString+ (Data.ProtoLens.showMessageShort __x) (Prelude.showChar '}' __s))+instance Text.PrettyPrint.GenericPretty.Out FailedUpdate+instance Data.ProtoLens.Field.HasField FailedUpdate "outpoint" Proto.Lnrpc.Ln0.OutPoint where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _FailedUpdate'outpoint+ (\ x__ y__ -> x__ {_FailedUpdate'outpoint = y__}))+ (Data.ProtoLens.maybeLens Data.ProtoLens.defMessage)+instance Data.ProtoLens.Field.HasField FailedUpdate "maybe'outpoint" (Prelude.Maybe Proto.Lnrpc.Ln0.OutPoint) where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _FailedUpdate'outpoint+ (\ x__ y__ -> x__ {_FailedUpdate'outpoint = y__}))+ Prelude.id+instance Data.ProtoLens.Field.HasField FailedUpdate "reason" UpdateFailure where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _FailedUpdate'reason+ (\ x__ y__ -> x__ {_FailedUpdate'reason = y__}))+ Prelude.id+instance Data.ProtoLens.Field.HasField FailedUpdate "updateError" Data.Text.Text where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _FailedUpdate'updateError+ (\ x__ y__ -> x__ {_FailedUpdate'updateError = y__}))+ Prelude.id+instance Data.ProtoLens.Message FailedUpdate where+ messageName _ = Data.Text.pack "lnrpc.FailedUpdate"+ packedMessageDescriptor _+ = "\n\+ \\fFailedUpdate\DC2+\n\+ \\boutpoint\CAN\SOH \SOH(\v2\SI.lnrpc.OutPointR\boutpoint\DC2,\n\+ \\ACKreason\CAN\STX \SOH(\SO2\DC4.lnrpc.UpdateFailureR\ACKreason\DC2!\n\+ \\fupdate_error\CAN\ETX \SOH(\tR\vupdateError"+ packedFileDescriptor _ = packedFileDescriptor+ fieldsByTag+ = let+ outpoint__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "outpoint"+ (Data.ProtoLens.MessageField Data.ProtoLens.MessageType ::+ Data.ProtoLens.FieldTypeDescriptor Proto.Lnrpc.Ln0.OutPoint)+ (Data.ProtoLens.OptionalField+ (Data.ProtoLens.Field.field @"maybe'outpoint")) ::+ Data.ProtoLens.FieldDescriptor FailedUpdate+ reason__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "reason"+ (Data.ProtoLens.ScalarField Data.ProtoLens.EnumField ::+ Data.ProtoLens.FieldTypeDescriptor UpdateFailure)+ (Data.ProtoLens.PlainField+ Data.ProtoLens.Optional (Data.ProtoLens.Field.field @"reason")) ::+ Data.ProtoLens.FieldDescriptor FailedUpdate+ updateError__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "update_error"+ (Data.ProtoLens.ScalarField Data.ProtoLens.StringField ::+ Data.ProtoLens.FieldTypeDescriptor Data.Text.Text)+ (Data.ProtoLens.PlainField+ Data.ProtoLens.Optional+ (Data.ProtoLens.Field.field @"updateError")) ::+ Data.ProtoLens.FieldDescriptor FailedUpdate+ in+ Data.Map.fromList+ [(Data.ProtoLens.Tag 1, outpoint__field_descriptor),+ (Data.ProtoLens.Tag 2, reason__field_descriptor),+ (Data.ProtoLens.Tag 3, updateError__field_descriptor)]+ unknownFields+ = Lens.Family2.Unchecked.lens+ _FailedUpdate'_unknownFields+ (\ x__ y__ -> x__ {_FailedUpdate'_unknownFields = y__})+ defMessage+ = FailedUpdate'_constructor+ {_FailedUpdate'outpoint = Prelude.Nothing,+ _FailedUpdate'reason = Data.ProtoLens.fieldDefault,+ _FailedUpdate'updateError = Data.ProtoLens.fieldDefault,+ _FailedUpdate'_unknownFields = []}+ parseMessage+ = let+ loop ::+ FailedUpdate -> Data.ProtoLens.Encoding.Bytes.Parser FailedUpdate+ loop x+ = do end <- Data.ProtoLens.Encoding.Bytes.atEnd+ if end then+ do (let missing = []+ in+ if Prelude.null missing then+ Prelude.return ()+ else+ Prelude.fail+ ((Prelude.++)+ "Missing required fields: "+ (Prelude.show (missing :: [Prelude.String]))))+ Prelude.return+ (Lens.Family2.over+ Data.ProtoLens.unknownFields (\ !t -> Prelude.reverse t) x)+ else+ do tag <- Data.ProtoLens.Encoding.Bytes.getVarInt+ case tag of+ 10+ -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (do len <- Data.ProtoLens.Encoding.Bytes.getVarInt+ Data.ProtoLens.Encoding.Bytes.isolate+ (Prelude.fromIntegral len) Data.ProtoLens.parseMessage)+ "outpoint"+ loop+ (Lens.Family2.set (Data.ProtoLens.Field.field @"outpoint") y x)+ 16+ -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (Prelude.fmap+ Prelude.toEnum+ (Prelude.fmap+ Prelude.fromIntegral+ Data.ProtoLens.Encoding.Bytes.getVarInt))+ "reason"+ loop (Lens.Family2.set (Data.ProtoLens.Field.field @"reason") y x)+ 26+ -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (do value <- do len <- Data.ProtoLens.Encoding.Bytes.getVarInt+ Data.ProtoLens.Encoding.Bytes.getBytes+ (Prelude.fromIntegral len)+ Data.ProtoLens.Encoding.Bytes.runEither+ (case Data.Text.Encoding.decodeUtf8' value of+ (Prelude.Left err)+ -> Prelude.Left (Prelude.show err)+ (Prelude.Right r) -> Prelude.Right r))+ "update_error"+ loop+ (Lens.Family2.set (Data.ProtoLens.Field.field @"updateError") y x)+ wire+ -> do !y <- Data.ProtoLens.Encoding.Wire.parseTaggedValueFromWire+ wire+ loop+ (Lens.Family2.over+ Data.ProtoLens.unknownFields (\ !t -> (:) y t) x)+ in+ (Data.ProtoLens.Encoding.Bytes.<?>)+ (do loop Data.ProtoLens.defMessage) "FailedUpdate"+ buildMessage+ = \ _x+ -> (Data.Monoid.<>)+ (case+ Lens.Family2.view (Data.ProtoLens.Field.field @"maybe'outpoint") _x+ of+ Prelude.Nothing -> Data.Monoid.mempty+ (Prelude.Just _v)+ -> (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 10)+ ((Prelude..)+ (\ bs+ -> (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt+ (Prelude.fromIntegral (Data.ByteString.length bs)))+ (Data.ProtoLens.Encoding.Bytes.putBytes bs))+ Data.ProtoLens.encodeMessage _v))+ ((Data.Monoid.<>)+ (let+ _v = Lens.Family2.view (Data.ProtoLens.Field.field @"reason") _x+ in+ if (Prelude.==) _v Data.ProtoLens.fieldDefault then+ Data.Monoid.mempty+ else+ (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 16)+ ((Prelude..)+ ((Prelude..)+ Data.ProtoLens.Encoding.Bytes.putVarInt Prelude.fromIntegral)+ Prelude.fromEnum _v))+ ((Data.Monoid.<>)+ (let+ _v+ = Lens.Family2.view (Data.ProtoLens.Field.field @"updateError") _x+ in+ if (Prelude.==) _v Data.ProtoLens.fieldDefault then+ Data.Monoid.mempty+ else+ (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 26)+ ((Prelude..)+ (\ bs+ -> (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt+ (Prelude.fromIntegral (Data.ByteString.length bs)))+ (Data.ProtoLens.Encoding.Bytes.putBytes bs))+ Data.Text.Encoding.encodeUtf8 _v))+ (Data.ProtoLens.Encoding.Wire.buildFieldSet+ (Lens.Family2.view Data.ProtoLens.unknownFields _x))))+instance Control.DeepSeq.NFData FailedUpdate where+ rnf+ = \ x__+ -> Control.DeepSeq.deepseq+ (_FailedUpdate'_unknownFields x__)+ (Control.DeepSeq.deepseq+ (_FailedUpdate'outpoint x__)+ (Control.DeepSeq.deepseq+ (_FailedUpdate'reason x__)+ (Control.DeepSeq.deepseq (_FailedUpdate'updateError x__) ())))+{- | Fields :+ + * 'Proto.Lnrpc.Ln1_Fields.code' @:: Lens' Failure Failure'FailureCode@+ * 'Proto.Lnrpc.Ln1_Fields.channelUpdate' @:: Lens' Failure ChannelUpdate@+ * 'Proto.Lnrpc.Ln1_Fields.maybe'channelUpdate' @:: Lens' Failure (Prelude.Maybe ChannelUpdate)@+ * 'Proto.Lnrpc.Ln1_Fields.htlcMsat' @:: Lens' Failure Data.Word.Word64@+ * 'Proto.Lnrpc.Ln1_Fields.onionSha256' @:: Lens' Failure Data.ByteString.ByteString@+ * 'Proto.Lnrpc.Ln1_Fields.cltvExpiry' @:: Lens' Failure Data.Word.Word32@+ * 'Proto.Lnrpc.Ln1_Fields.flags' @:: Lens' Failure Data.Word.Word32@+ * 'Proto.Lnrpc.Ln1_Fields.failureSourceIndex' @:: Lens' Failure Data.Word.Word32@+ * 'Proto.Lnrpc.Ln1_Fields.height' @:: Lens' Failure Data.Word.Word32@ -}+data Failure+ = Failure'_constructor {_Failure'code :: !Failure'FailureCode,+ _Failure'channelUpdate :: !(Prelude.Maybe ChannelUpdate),+ _Failure'htlcMsat :: !Data.Word.Word64,+ _Failure'onionSha256 :: !Data.ByteString.ByteString,+ _Failure'cltvExpiry :: !Data.Word.Word32,+ _Failure'flags :: !Data.Word.Word32,+ _Failure'failureSourceIndex :: !Data.Word.Word32,+ _Failure'height :: !Data.Word.Word32,+ _Failure'_unknownFields :: !Data.ProtoLens.FieldSet}+ deriving stock (Prelude.Eq, Prelude.Ord, GHC.Generics.Generic)+instance Prelude.Show Failure where+ showsPrec _ __x __s+ = Prelude.showChar+ '{'+ (Prelude.showString+ (Data.ProtoLens.showMessageShort __x) (Prelude.showChar '}' __s))+instance Text.PrettyPrint.GenericPretty.Out Failure+instance Data.ProtoLens.Field.HasField Failure "code" Failure'FailureCode where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _Failure'code (\ x__ y__ -> x__ {_Failure'code = y__}))+ Prelude.id+instance Data.ProtoLens.Field.HasField Failure "channelUpdate" ChannelUpdate where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _Failure'channelUpdate+ (\ x__ y__ -> x__ {_Failure'channelUpdate = y__}))+ (Data.ProtoLens.maybeLens Data.ProtoLens.defMessage)+instance Data.ProtoLens.Field.HasField Failure "maybe'channelUpdate" (Prelude.Maybe ChannelUpdate) where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _Failure'channelUpdate+ (\ x__ y__ -> x__ {_Failure'channelUpdate = y__}))+ Prelude.id+instance Data.ProtoLens.Field.HasField Failure "htlcMsat" Data.Word.Word64 where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _Failure'htlcMsat (\ x__ y__ -> x__ {_Failure'htlcMsat = y__}))+ Prelude.id+instance Data.ProtoLens.Field.HasField Failure "onionSha256" Data.ByteString.ByteString where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _Failure'onionSha256+ (\ x__ y__ -> x__ {_Failure'onionSha256 = y__}))+ Prelude.id+instance Data.ProtoLens.Field.HasField Failure "cltvExpiry" Data.Word.Word32 where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _Failure'cltvExpiry (\ x__ y__ -> x__ {_Failure'cltvExpiry = y__}))+ Prelude.id+instance Data.ProtoLens.Field.HasField Failure "flags" Data.Word.Word32 where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _Failure'flags (\ x__ y__ -> x__ {_Failure'flags = y__}))+ Prelude.id+instance Data.ProtoLens.Field.HasField Failure "failureSourceIndex" Data.Word.Word32 where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _Failure'failureSourceIndex+ (\ x__ y__ -> x__ {_Failure'failureSourceIndex = y__}))+ Prelude.id+instance Data.ProtoLens.Field.HasField Failure "height" Data.Word.Word32 where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _Failure'height (\ x__ y__ -> x__ {_Failure'height = y__}))+ Prelude.id+instance Data.ProtoLens.Message Failure where+ messageName _ = Data.Text.pack "lnrpc.Failure"+ packedMessageDescriptor _+ = "\n\+ \\aFailure\DC2.\n\+ \\EOTcode\CAN\SOH \SOH(\SO2\SUB.lnrpc.Failure.FailureCodeR\EOTcode\DC2;\n\+ \\SOchannel_update\CAN\ETX \SOH(\v2\DC4.lnrpc.ChannelUpdateR\rchannelUpdate\DC2\ESC\n\+ \\thtlc_msat\CAN\EOT \SOH(\EOTR\bhtlcMsat\DC2\"\n\+ \\ronion_sha_256\CAN\ENQ \SOH(\fR\vonionSha256\DC2\US\n\+ \\vcltv_expiry\CAN\ACK \SOH(\rR\n\+ \cltvExpiry\DC2\DC4\n\+ \\ENQflags\CAN\a \SOH(\rR\ENQflags\DC20\n\+ \\DC4failure_source_index\CAN\b \SOH(\rR\DC2failureSourceIndex\DC2\SYN\n\+ \\ACKheight\CAN\t \SOH(\rR\ACKheight\"\239\ENQ\n\+ \\vFailureCode\DC2\f\n\+ \\bRESERVED\DLE\NUL\DC2(\n\+ \$INCORRECT_OR_UNKNOWN_PAYMENT_DETAILS\DLE\SOH\DC2\FS\n\+ \\CANINCORRECT_PAYMENT_AMOUNT\DLE\STX\DC2\US\n\+ \\ESCFINAL_INCORRECT_CLTV_EXPIRY\DLE\ETX\DC2\US\n\+ \\ESCFINAL_INCORRECT_HTLC_AMOUNT\DLE\EOT\DC2\EM\n\+ \\NAKFINAL_EXPIRY_TOO_SOON\DLE\ENQ\DC2\DC1\n\+ \\rINVALID_REALM\DLE\ACK\DC2\DC3\n\+ \\SIEXPIRY_TOO_SOON\DLE\a\DC2\EM\n\+ \\NAKINVALID_ONION_VERSION\DLE\b\DC2\SYN\n\+ \\DC2INVALID_ONION_HMAC\DLE\t\DC2\NAK\n\+ \\DC1INVALID_ONION_KEY\DLE\n\+ \\DC2\CAN\n\+ \\DC4AMOUNT_BELOW_MINIMUM\DLE\v\DC2\DC4\n\+ \\DLEFEE_INSUFFICIENT\DLE\f\DC2\EM\n\+ \\NAKINCORRECT_CLTV_EXPIRY\DLE\r\DC2\DC4\n\+ \\DLECHANNEL_DISABLED\DLE\SO\DC2\GS\n\+ \\EMTEMPORARY_CHANNEL_FAILURE\DLE\SI\DC2!\n\+ \\GSREQUIRED_NODE_FEATURE_MISSING\DLE\DLE\DC2$\n\+ \ REQUIRED_CHANNEL_FEATURE_MISSING\DLE\DC1\DC2\NAK\n\+ \\DC1UNKNOWN_NEXT_PEER\DLE\DC2\DC2\SUB\n\+ \\SYNTEMPORARY_NODE_FAILURE\DLE\DC3\DC2\SUB\n\+ \\SYNPERMANENT_NODE_FAILURE\DLE\DC4\DC2\GS\n\+ \\EMPERMANENT_CHANNEL_FAILURE\DLE\NAK\DC2\DC2\n\+ \\SOEXPIRY_TOO_FAR\DLE\SYN\DC2\SI\n\+ \\vMPP_TIMEOUT\DLE\ETB\DC2\EM\n\+ \\NAKINVALID_ONION_PAYLOAD\DLE\CAN\DC2\NAK\n\+ \\DLEINTERNAL_FAILURE\DLE\229\a\DC2\DC4\n\+ \\SIUNKNOWN_FAILURE\DLE\230\a\DC2\ETB\n\+ \\DC2UNREADABLE_FAILURE\DLE\231\aJ\EOT\b\STX\DLE\ETX"+ packedFileDescriptor _ = packedFileDescriptor+ fieldsByTag+ = let+ code__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "code"+ (Data.ProtoLens.ScalarField Data.ProtoLens.EnumField ::+ Data.ProtoLens.FieldTypeDescriptor Failure'FailureCode)+ (Data.ProtoLens.PlainField+ Data.ProtoLens.Optional (Data.ProtoLens.Field.field @"code")) ::+ Data.ProtoLens.FieldDescriptor Failure+ channelUpdate__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "channel_update"+ (Data.ProtoLens.MessageField Data.ProtoLens.MessageType ::+ Data.ProtoLens.FieldTypeDescriptor ChannelUpdate)+ (Data.ProtoLens.OptionalField+ (Data.ProtoLens.Field.field @"maybe'channelUpdate")) ::+ Data.ProtoLens.FieldDescriptor Failure+ htlcMsat__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "htlc_msat"+ (Data.ProtoLens.ScalarField Data.ProtoLens.UInt64Field ::+ Data.ProtoLens.FieldTypeDescriptor Data.Word.Word64)+ (Data.ProtoLens.PlainField+ Data.ProtoLens.Optional+ (Data.ProtoLens.Field.field @"htlcMsat")) ::+ Data.ProtoLens.FieldDescriptor Failure+ onionSha256__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "onion_sha_256"+ (Data.ProtoLens.ScalarField Data.ProtoLens.BytesField ::+ Data.ProtoLens.FieldTypeDescriptor Data.ByteString.ByteString)+ (Data.ProtoLens.PlainField+ Data.ProtoLens.Optional+ (Data.ProtoLens.Field.field @"onionSha256")) ::+ Data.ProtoLens.FieldDescriptor Failure+ cltvExpiry__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "cltv_expiry"+ (Data.ProtoLens.ScalarField Data.ProtoLens.UInt32Field ::+ Data.ProtoLens.FieldTypeDescriptor Data.Word.Word32)+ (Data.ProtoLens.PlainField+ Data.ProtoLens.Optional+ (Data.ProtoLens.Field.field @"cltvExpiry")) ::+ Data.ProtoLens.FieldDescriptor Failure+ flags__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "flags"+ (Data.ProtoLens.ScalarField Data.ProtoLens.UInt32Field ::+ Data.ProtoLens.FieldTypeDescriptor Data.Word.Word32)+ (Data.ProtoLens.PlainField+ Data.ProtoLens.Optional (Data.ProtoLens.Field.field @"flags")) ::+ Data.ProtoLens.FieldDescriptor Failure+ failureSourceIndex__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "failure_source_index"+ (Data.ProtoLens.ScalarField Data.ProtoLens.UInt32Field ::+ Data.ProtoLens.FieldTypeDescriptor Data.Word.Word32)+ (Data.ProtoLens.PlainField+ Data.ProtoLens.Optional+ (Data.ProtoLens.Field.field @"failureSourceIndex")) ::+ Data.ProtoLens.FieldDescriptor Failure+ height__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "height"+ (Data.ProtoLens.ScalarField Data.ProtoLens.UInt32Field ::+ Data.ProtoLens.FieldTypeDescriptor Data.Word.Word32)+ (Data.ProtoLens.PlainField+ Data.ProtoLens.Optional (Data.ProtoLens.Field.field @"height")) ::+ Data.ProtoLens.FieldDescriptor Failure+ in+ Data.Map.fromList+ [(Data.ProtoLens.Tag 1, code__field_descriptor),+ (Data.ProtoLens.Tag 3, channelUpdate__field_descriptor),+ (Data.ProtoLens.Tag 4, htlcMsat__field_descriptor),+ (Data.ProtoLens.Tag 5, onionSha256__field_descriptor),+ (Data.ProtoLens.Tag 6, cltvExpiry__field_descriptor),+ (Data.ProtoLens.Tag 7, flags__field_descriptor),+ (Data.ProtoLens.Tag 8, failureSourceIndex__field_descriptor),+ (Data.ProtoLens.Tag 9, height__field_descriptor)]+ unknownFields+ = Lens.Family2.Unchecked.lens+ _Failure'_unknownFields+ (\ x__ y__ -> x__ {_Failure'_unknownFields = y__})+ defMessage+ = Failure'_constructor+ {_Failure'code = Data.ProtoLens.fieldDefault,+ _Failure'channelUpdate = Prelude.Nothing,+ _Failure'htlcMsat = Data.ProtoLens.fieldDefault,+ _Failure'onionSha256 = Data.ProtoLens.fieldDefault,+ _Failure'cltvExpiry = Data.ProtoLens.fieldDefault,+ _Failure'flags = Data.ProtoLens.fieldDefault,+ _Failure'failureSourceIndex = Data.ProtoLens.fieldDefault,+ _Failure'height = Data.ProtoLens.fieldDefault,+ _Failure'_unknownFields = []}+ parseMessage+ = let+ loop :: Failure -> Data.ProtoLens.Encoding.Bytes.Parser Failure+ loop x+ = do end <- Data.ProtoLens.Encoding.Bytes.atEnd+ if end then+ do (let missing = []+ in+ if Prelude.null missing then+ Prelude.return ()+ else+ Prelude.fail+ ((Prelude.++)+ "Missing required fields: "+ (Prelude.show (missing :: [Prelude.String]))))+ Prelude.return+ (Lens.Family2.over+ Data.ProtoLens.unknownFields (\ !t -> Prelude.reverse t) x)+ else+ do tag <- Data.ProtoLens.Encoding.Bytes.getVarInt+ case tag of+ 8 -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (Prelude.fmap+ Prelude.toEnum+ (Prelude.fmap+ Prelude.fromIntegral+ Data.ProtoLens.Encoding.Bytes.getVarInt))+ "code"+ loop (Lens.Family2.set (Data.ProtoLens.Field.field @"code") y x)+ 26+ -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (do len <- Data.ProtoLens.Encoding.Bytes.getVarInt+ Data.ProtoLens.Encoding.Bytes.isolate+ (Prelude.fromIntegral len) Data.ProtoLens.parseMessage)+ "channel_update"+ loop+ (Lens.Family2.set+ (Data.ProtoLens.Field.field @"channelUpdate") y x)+ 32+ -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ Data.ProtoLens.Encoding.Bytes.getVarInt "htlc_msat"+ loop+ (Lens.Family2.set (Data.ProtoLens.Field.field @"htlcMsat") y x)+ 42+ -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (do len <- Data.ProtoLens.Encoding.Bytes.getVarInt+ Data.ProtoLens.Encoding.Bytes.getBytes+ (Prelude.fromIntegral len))+ "onion_sha_256"+ loop+ (Lens.Family2.set (Data.ProtoLens.Field.field @"onionSha256") y x)+ 48+ -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (Prelude.fmap+ Prelude.fromIntegral+ Data.ProtoLens.Encoding.Bytes.getVarInt)+ "cltv_expiry"+ loop+ (Lens.Family2.set (Data.ProtoLens.Field.field @"cltvExpiry") y x)+ 56+ -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (Prelude.fmap+ Prelude.fromIntegral+ Data.ProtoLens.Encoding.Bytes.getVarInt)+ "flags"+ loop (Lens.Family2.set (Data.ProtoLens.Field.field @"flags") y x)+ 64+ -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (Prelude.fmap+ Prelude.fromIntegral+ Data.ProtoLens.Encoding.Bytes.getVarInt)+ "failure_source_index"+ loop+ (Lens.Family2.set+ (Data.ProtoLens.Field.field @"failureSourceIndex") y x)+ 72+ -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (Prelude.fmap+ Prelude.fromIntegral+ Data.ProtoLens.Encoding.Bytes.getVarInt)+ "height"+ loop (Lens.Family2.set (Data.ProtoLens.Field.field @"height") y x)+ wire+ -> do !y <- Data.ProtoLens.Encoding.Wire.parseTaggedValueFromWire+ wire+ loop+ (Lens.Family2.over+ Data.ProtoLens.unknownFields (\ !t -> (:) y t) x)+ in+ (Data.ProtoLens.Encoding.Bytes.<?>)+ (do loop Data.ProtoLens.defMessage) "Failure"+ buildMessage+ = \ _x+ -> (Data.Monoid.<>)+ (let _v = Lens.Family2.view (Data.ProtoLens.Field.field @"code") _x+ in+ if (Prelude.==) _v Data.ProtoLens.fieldDefault then+ Data.Monoid.mempty+ else+ (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 8)+ ((Prelude..)+ ((Prelude..)+ Data.ProtoLens.Encoding.Bytes.putVarInt Prelude.fromIntegral)+ Prelude.fromEnum _v))+ ((Data.Monoid.<>)+ (case+ Lens.Family2.view+ (Data.ProtoLens.Field.field @"maybe'channelUpdate") _x+ of+ Prelude.Nothing -> Data.Monoid.mempty+ (Prelude.Just _v)+ -> (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 26)+ ((Prelude..)+ (\ bs+ -> (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt+ (Prelude.fromIntegral (Data.ByteString.length bs)))+ (Data.ProtoLens.Encoding.Bytes.putBytes bs))+ Data.ProtoLens.encodeMessage _v))+ ((Data.Monoid.<>)+ (let+ _v = Lens.Family2.view (Data.ProtoLens.Field.field @"htlcMsat") _x+ in+ if (Prelude.==) _v Data.ProtoLens.fieldDefault then+ Data.Monoid.mempty+ else+ (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 32)+ (Data.ProtoLens.Encoding.Bytes.putVarInt _v))+ ((Data.Monoid.<>)+ (let+ _v+ = Lens.Family2.view (Data.ProtoLens.Field.field @"onionSha256") _x+ in+ if (Prelude.==) _v Data.ProtoLens.fieldDefault then+ Data.Monoid.mempty+ else+ (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 42)+ ((\ bs+ -> (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt+ (Prelude.fromIntegral (Data.ByteString.length bs)))+ (Data.ProtoLens.Encoding.Bytes.putBytes bs))+ _v))+ ((Data.Monoid.<>)+ (let+ _v+ = Lens.Family2.view (Data.ProtoLens.Field.field @"cltvExpiry") _x+ in+ if (Prelude.==) _v Data.ProtoLens.fieldDefault then+ Data.Monoid.mempty+ else+ (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 48)+ ((Prelude..)+ Data.ProtoLens.Encoding.Bytes.putVarInt Prelude.fromIntegral+ _v))+ ((Data.Monoid.<>)+ (let+ _v = Lens.Family2.view (Data.ProtoLens.Field.field @"flags") _x+ in+ if (Prelude.==) _v Data.ProtoLens.fieldDefault then+ Data.Monoid.mempty+ else+ (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 56)+ ((Prelude..)+ Data.ProtoLens.Encoding.Bytes.putVarInt Prelude.fromIntegral+ _v))+ ((Data.Monoid.<>)+ (let+ _v+ = Lens.Family2.view+ (Data.ProtoLens.Field.field @"failureSourceIndex") _x+ in+ if (Prelude.==) _v Data.ProtoLens.fieldDefault then+ Data.Monoid.mempty+ else+ (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 64)+ ((Prelude..)+ Data.ProtoLens.Encoding.Bytes.putVarInt+ Prelude.fromIntegral _v))+ ((Data.Monoid.<>)+ (let+ _v+ = Lens.Family2.view (Data.ProtoLens.Field.field @"height") _x+ in+ if (Prelude.==) _v Data.ProtoLens.fieldDefault then+ Data.Monoid.mempty+ else+ (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 72)+ ((Prelude..)+ Data.ProtoLens.Encoding.Bytes.putVarInt+ Prelude.fromIntegral _v))+ (Data.ProtoLens.Encoding.Wire.buildFieldSet+ (Lens.Family2.view Data.ProtoLens.unknownFields _x)))))))))+instance Control.DeepSeq.NFData Failure where+ rnf+ = \ x__+ -> Control.DeepSeq.deepseq+ (_Failure'_unknownFields x__)+ (Control.DeepSeq.deepseq+ (_Failure'code x__)+ (Control.DeepSeq.deepseq+ (_Failure'channelUpdate x__)+ (Control.DeepSeq.deepseq+ (_Failure'htlcMsat x__)+ (Control.DeepSeq.deepseq+ (_Failure'onionSha256 x__)+ (Control.DeepSeq.deepseq+ (_Failure'cltvExpiry x__)+ (Control.DeepSeq.deepseq+ (_Failure'flags x__)+ (Control.DeepSeq.deepseq+ (_Failure'failureSourceIndex x__)+ (Control.DeepSeq.deepseq (_Failure'height x__) ()))))))))+newtype Failure'FailureCode'UnrecognizedValue+ = Failure'FailureCode'UnrecognizedValue Data.Int.Int32+ deriving stock (Prelude.Eq,+ Prelude.Ord,+ Prelude.Show,+ GHC.Generics.Generic)+instance Text.PrettyPrint.GenericPretty.Out Failure'FailureCode'UnrecognizedValue+data Failure'FailureCode+ = Failure'RESERVED |+ Failure'INCORRECT_OR_UNKNOWN_PAYMENT_DETAILS |+ Failure'INCORRECT_PAYMENT_AMOUNT |+ Failure'FINAL_INCORRECT_CLTV_EXPIRY |+ Failure'FINAL_INCORRECT_HTLC_AMOUNT |+ Failure'FINAL_EXPIRY_TOO_SOON |+ Failure'INVALID_REALM |+ Failure'EXPIRY_TOO_SOON |+ Failure'INVALID_ONION_VERSION |+ Failure'INVALID_ONION_HMAC |+ Failure'INVALID_ONION_KEY |+ Failure'AMOUNT_BELOW_MINIMUM |+ Failure'FEE_INSUFFICIENT |+ Failure'INCORRECT_CLTV_EXPIRY |+ Failure'CHANNEL_DISABLED |+ Failure'TEMPORARY_CHANNEL_FAILURE |+ Failure'REQUIRED_NODE_FEATURE_MISSING |+ Failure'REQUIRED_CHANNEL_FEATURE_MISSING |+ Failure'UNKNOWN_NEXT_PEER |+ Failure'TEMPORARY_NODE_FAILURE |+ Failure'PERMANENT_NODE_FAILURE |+ Failure'PERMANENT_CHANNEL_FAILURE |+ Failure'EXPIRY_TOO_FAR |+ Failure'MPP_TIMEOUT |+ Failure'INVALID_ONION_PAYLOAD |+ Failure'INTERNAL_FAILURE |+ Failure'UNKNOWN_FAILURE |+ Failure'UNREADABLE_FAILURE |+ Failure'FailureCode'Unrecognized !Failure'FailureCode'UnrecognizedValue+ deriving stock (Prelude.Show,+ Prelude.Eq,+ Prelude.Ord,+ GHC.Generics.Generic)+instance Data.ProtoLens.MessageEnum Failure'FailureCode where+ maybeToEnum 0 = Prelude.Just Failure'RESERVED+ maybeToEnum 1+ = Prelude.Just Failure'INCORRECT_OR_UNKNOWN_PAYMENT_DETAILS+ maybeToEnum 2 = Prelude.Just Failure'INCORRECT_PAYMENT_AMOUNT+ maybeToEnum 3 = Prelude.Just Failure'FINAL_INCORRECT_CLTV_EXPIRY+ maybeToEnum 4 = Prelude.Just Failure'FINAL_INCORRECT_HTLC_AMOUNT+ maybeToEnum 5 = Prelude.Just Failure'FINAL_EXPIRY_TOO_SOON+ maybeToEnum 6 = Prelude.Just Failure'INVALID_REALM+ maybeToEnum 7 = Prelude.Just Failure'EXPIRY_TOO_SOON+ maybeToEnum 8 = Prelude.Just Failure'INVALID_ONION_VERSION+ maybeToEnum 9 = Prelude.Just Failure'INVALID_ONION_HMAC+ maybeToEnum 10 = Prelude.Just Failure'INVALID_ONION_KEY+ maybeToEnum 11 = Prelude.Just Failure'AMOUNT_BELOW_MINIMUM+ maybeToEnum 12 = Prelude.Just Failure'FEE_INSUFFICIENT+ maybeToEnum 13 = Prelude.Just Failure'INCORRECT_CLTV_EXPIRY+ maybeToEnum 14 = Prelude.Just Failure'CHANNEL_DISABLED+ maybeToEnum 15 = Prelude.Just Failure'TEMPORARY_CHANNEL_FAILURE+ maybeToEnum 16 = Prelude.Just Failure'REQUIRED_NODE_FEATURE_MISSING+ maybeToEnum 17+ = Prelude.Just Failure'REQUIRED_CHANNEL_FEATURE_MISSING+ maybeToEnum 18 = Prelude.Just Failure'UNKNOWN_NEXT_PEER+ maybeToEnum 19 = Prelude.Just Failure'TEMPORARY_NODE_FAILURE+ maybeToEnum 20 = Prelude.Just Failure'PERMANENT_NODE_FAILURE+ maybeToEnum 21 = Prelude.Just Failure'PERMANENT_CHANNEL_FAILURE+ maybeToEnum 22 = Prelude.Just Failure'EXPIRY_TOO_FAR+ maybeToEnum 23 = Prelude.Just Failure'MPP_TIMEOUT+ maybeToEnum 24 = Prelude.Just Failure'INVALID_ONION_PAYLOAD+ maybeToEnum 997 = Prelude.Just Failure'INTERNAL_FAILURE+ maybeToEnum 998 = Prelude.Just Failure'UNKNOWN_FAILURE+ maybeToEnum 999 = Prelude.Just Failure'UNREADABLE_FAILURE+ maybeToEnum k+ = Prelude.Just+ (Failure'FailureCode'Unrecognized+ (Failure'FailureCode'UnrecognizedValue (Prelude.fromIntegral k)))+ showEnum Failure'RESERVED = "RESERVED"+ showEnum Failure'INCORRECT_OR_UNKNOWN_PAYMENT_DETAILS+ = "INCORRECT_OR_UNKNOWN_PAYMENT_DETAILS"+ showEnum Failure'INCORRECT_PAYMENT_AMOUNT+ = "INCORRECT_PAYMENT_AMOUNT"+ showEnum Failure'FINAL_INCORRECT_CLTV_EXPIRY+ = "FINAL_INCORRECT_CLTV_EXPIRY"+ showEnum Failure'FINAL_INCORRECT_HTLC_AMOUNT+ = "FINAL_INCORRECT_HTLC_AMOUNT"+ showEnum Failure'FINAL_EXPIRY_TOO_SOON = "FINAL_EXPIRY_TOO_SOON"+ showEnum Failure'INVALID_REALM = "INVALID_REALM"+ showEnum Failure'EXPIRY_TOO_SOON = "EXPIRY_TOO_SOON"+ showEnum Failure'INVALID_ONION_VERSION = "INVALID_ONION_VERSION"+ showEnum Failure'INVALID_ONION_HMAC = "INVALID_ONION_HMAC"+ showEnum Failure'INVALID_ONION_KEY = "INVALID_ONION_KEY"+ showEnum Failure'AMOUNT_BELOW_MINIMUM = "AMOUNT_BELOW_MINIMUM"+ showEnum Failure'FEE_INSUFFICIENT = "FEE_INSUFFICIENT"+ showEnum Failure'INCORRECT_CLTV_EXPIRY = "INCORRECT_CLTV_EXPIRY"+ showEnum Failure'CHANNEL_DISABLED = "CHANNEL_DISABLED"+ showEnum Failure'TEMPORARY_CHANNEL_FAILURE+ = "TEMPORARY_CHANNEL_FAILURE"+ showEnum Failure'REQUIRED_NODE_FEATURE_MISSING+ = "REQUIRED_NODE_FEATURE_MISSING"+ showEnum Failure'REQUIRED_CHANNEL_FEATURE_MISSING+ = "REQUIRED_CHANNEL_FEATURE_MISSING"+ showEnum Failure'UNKNOWN_NEXT_PEER = "UNKNOWN_NEXT_PEER"+ showEnum Failure'TEMPORARY_NODE_FAILURE = "TEMPORARY_NODE_FAILURE"+ showEnum Failure'PERMANENT_NODE_FAILURE = "PERMANENT_NODE_FAILURE"+ showEnum Failure'PERMANENT_CHANNEL_FAILURE+ = "PERMANENT_CHANNEL_FAILURE"+ showEnum Failure'EXPIRY_TOO_FAR = "EXPIRY_TOO_FAR"+ showEnum Failure'MPP_TIMEOUT = "MPP_TIMEOUT"+ showEnum Failure'INVALID_ONION_PAYLOAD = "INVALID_ONION_PAYLOAD"+ showEnum Failure'INTERNAL_FAILURE = "INTERNAL_FAILURE"+ showEnum Failure'UNKNOWN_FAILURE = "UNKNOWN_FAILURE"+ showEnum Failure'UNREADABLE_FAILURE = "UNREADABLE_FAILURE"+ showEnum+ (Failure'FailureCode'Unrecognized (Failure'FailureCode'UnrecognizedValue k))+ = Prelude.show k+ readEnum k+ | (Prelude.==) k "RESERVED" = Prelude.Just Failure'RESERVED+ | (Prelude.==) k "INCORRECT_OR_UNKNOWN_PAYMENT_DETAILS"+ = Prelude.Just Failure'INCORRECT_OR_UNKNOWN_PAYMENT_DETAILS+ | (Prelude.==) k "INCORRECT_PAYMENT_AMOUNT"+ = Prelude.Just Failure'INCORRECT_PAYMENT_AMOUNT+ | (Prelude.==) k "FINAL_INCORRECT_CLTV_EXPIRY"+ = Prelude.Just Failure'FINAL_INCORRECT_CLTV_EXPIRY+ | (Prelude.==) k "FINAL_INCORRECT_HTLC_AMOUNT"+ = Prelude.Just Failure'FINAL_INCORRECT_HTLC_AMOUNT+ | (Prelude.==) k "FINAL_EXPIRY_TOO_SOON"+ = Prelude.Just Failure'FINAL_EXPIRY_TOO_SOON+ | (Prelude.==) k "INVALID_REALM"+ = Prelude.Just Failure'INVALID_REALM+ | (Prelude.==) k "EXPIRY_TOO_SOON"+ = Prelude.Just Failure'EXPIRY_TOO_SOON+ | (Prelude.==) k "INVALID_ONION_VERSION"+ = Prelude.Just Failure'INVALID_ONION_VERSION+ | (Prelude.==) k "INVALID_ONION_HMAC"+ = Prelude.Just Failure'INVALID_ONION_HMAC+ | (Prelude.==) k "INVALID_ONION_KEY"+ = Prelude.Just Failure'INVALID_ONION_KEY+ | (Prelude.==) k "AMOUNT_BELOW_MINIMUM"+ = Prelude.Just Failure'AMOUNT_BELOW_MINIMUM+ | (Prelude.==) k "FEE_INSUFFICIENT"+ = Prelude.Just Failure'FEE_INSUFFICIENT+ | (Prelude.==) k "INCORRECT_CLTV_EXPIRY"+ = Prelude.Just Failure'INCORRECT_CLTV_EXPIRY+ | (Prelude.==) k "CHANNEL_DISABLED"+ = Prelude.Just Failure'CHANNEL_DISABLED+ | (Prelude.==) k "TEMPORARY_CHANNEL_FAILURE"+ = Prelude.Just Failure'TEMPORARY_CHANNEL_FAILURE+ | (Prelude.==) k "REQUIRED_NODE_FEATURE_MISSING"+ = Prelude.Just Failure'REQUIRED_NODE_FEATURE_MISSING+ | (Prelude.==) k "REQUIRED_CHANNEL_FEATURE_MISSING"+ = Prelude.Just Failure'REQUIRED_CHANNEL_FEATURE_MISSING+ | (Prelude.==) k "UNKNOWN_NEXT_PEER"+ = Prelude.Just Failure'UNKNOWN_NEXT_PEER+ | (Prelude.==) k "TEMPORARY_NODE_FAILURE"+ = Prelude.Just Failure'TEMPORARY_NODE_FAILURE+ | (Prelude.==) k "PERMANENT_NODE_FAILURE"+ = Prelude.Just Failure'PERMANENT_NODE_FAILURE+ | (Prelude.==) k "PERMANENT_CHANNEL_FAILURE"+ = Prelude.Just Failure'PERMANENT_CHANNEL_FAILURE+ | (Prelude.==) k "EXPIRY_TOO_FAR"+ = Prelude.Just Failure'EXPIRY_TOO_FAR+ | (Prelude.==) k "MPP_TIMEOUT" = Prelude.Just Failure'MPP_TIMEOUT+ | (Prelude.==) k "INVALID_ONION_PAYLOAD"+ = Prelude.Just Failure'INVALID_ONION_PAYLOAD+ | (Prelude.==) k "INTERNAL_FAILURE"+ = Prelude.Just Failure'INTERNAL_FAILURE+ | (Prelude.==) k "UNKNOWN_FAILURE"+ = Prelude.Just Failure'UNKNOWN_FAILURE+ | (Prelude.==) k "UNREADABLE_FAILURE"+ = Prelude.Just Failure'UNREADABLE_FAILURE+ | Prelude.otherwise+ = (Prelude.>>=) (Text.Read.readMaybe k) Data.ProtoLens.maybeToEnum+instance Prelude.Bounded Failure'FailureCode where+ minBound = Failure'RESERVED+ maxBound = Failure'UNREADABLE_FAILURE+instance Prelude.Enum Failure'FailureCode where+ toEnum k__+ = Prelude.maybe+ (Prelude.error+ ((Prelude.++)+ "toEnum: unknown value for enum FailureCode: " (Prelude.show k__)))+ Prelude.id (Data.ProtoLens.maybeToEnum k__)+ fromEnum Failure'RESERVED = 0+ fromEnum Failure'INCORRECT_OR_UNKNOWN_PAYMENT_DETAILS = 1+ fromEnum Failure'INCORRECT_PAYMENT_AMOUNT = 2+ fromEnum Failure'FINAL_INCORRECT_CLTV_EXPIRY = 3+ fromEnum Failure'FINAL_INCORRECT_HTLC_AMOUNT = 4+ fromEnum Failure'FINAL_EXPIRY_TOO_SOON = 5+ fromEnum Failure'INVALID_REALM = 6+ fromEnum Failure'EXPIRY_TOO_SOON = 7+ fromEnum Failure'INVALID_ONION_VERSION = 8+ fromEnum Failure'INVALID_ONION_HMAC = 9+ fromEnum Failure'INVALID_ONION_KEY = 10+ fromEnum Failure'AMOUNT_BELOW_MINIMUM = 11+ fromEnum Failure'FEE_INSUFFICIENT = 12+ fromEnum Failure'INCORRECT_CLTV_EXPIRY = 13+ fromEnum Failure'CHANNEL_DISABLED = 14+ fromEnum Failure'TEMPORARY_CHANNEL_FAILURE = 15+ fromEnum Failure'REQUIRED_NODE_FEATURE_MISSING = 16+ fromEnum Failure'REQUIRED_CHANNEL_FEATURE_MISSING = 17+ fromEnum Failure'UNKNOWN_NEXT_PEER = 18+ fromEnum Failure'TEMPORARY_NODE_FAILURE = 19+ fromEnum Failure'PERMANENT_NODE_FAILURE = 20+ fromEnum Failure'PERMANENT_CHANNEL_FAILURE = 21+ fromEnum Failure'EXPIRY_TOO_FAR = 22+ fromEnum Failure'MPP_TIMEOUT = 23+ fromEnum Failure'INVALID_ONION_PAYLOAD = 24+ fromEnum Failure'INTERNAL_FAILURE = 997+ fromEnum Failure'UNKNOWN_FAILURE = 998+ fromEnum Failure'UNREADABLE_FAILURE = 999+ fromEnum+ (Failure'FailureCode'Unrecognized (Failure'FailureCode'UnrecognizedValue k))+ = Prelude.fromIntegral k+ succ Failure'UNREADABLE_FAILURE+ = Prelude.error+ "Failure'FailureCode.succ: bad argument Failure'UNREADABLE_FAILURE. This value would be out of bounds."+ succ Failure'RESERVED+ = Failure'INCORRECT_OR_UNKNOWN_PAYMENT_DETAILS+ succ Failure'INCORRECT_OR_UNKNOWN_PAYMENT_DETAILS+ = Failure'INCORRECT_PAYMENT_AMOUNT+ succ Failure'INCORRECT_PAYMENT_AMOUNT+ = Failure'FINAL_INCORRECT_CLTV_EXPIRY+ succ Failure'FINAL_INCORRECT_CLTV_EXPIRY+ = Failure'FINAL_INCORRECT_HTLC_AMOUNT+ succ Failure'FINAL_INCORRECT_HTLC_AMOUNT+ = Failure'FINAL_EXPIRY_TOO_SOON+ succ Failure'FINAL_EXPIRY_TOO_SOON = Failure'INVALID_REALM+ succ Failure'INVALID_REALM = Failure'EXPIRY_TOO_SOON+ succ Failure'EXPIRY_TOO_SOON = Failure'INVALID_ONION_VERSION+ succ Failure'INVALID_ONION_VERSION = Failure'INVALID_ONION_HMAC+ succ Failure'INVALID_ONION_HMAC = Failure'INVALID_ONION_KEY+ succ Failure'INVALID_ONION_KEY = Failure'AMOUNT_BELOW_MINIMUM+ succ Failure'AMOUNT_BELOW_MINIMUM = Failure'FEE_INSUFFICIENT+ succ Failure'FEE_INSUFFICIENT = Failure'INCORRECT_CLTV_EXPIRY+ succ Failure'INCORRECT_CLTV_EXPIRY = Failure'CHANNEL_DISABLED+ succ Failure'CHANNEL_DISABLED = Failure'TEMPORARY_CHANNEL_FAILURE+ succ Failure'TEMPORARY_CHANNEL_FAILURE+ = Failure'REQUIRED_NODE_FEATURE_MISSING+ succ Failure'REQUIRED_NODE_FEATURE_MISSING+ = Failure'REQUIRED_CHANNEL_FEATURE_MISSING+ succ Failure'REQUIRED_CHANNEL_FEATURE_MISSING+ = Failure'UNKNOWN_NEXT_PEER+ succ Failure'UNKNOWN_NEXT_PEER = Failure'TEMPORARY_NODE_FAILURE+ succ Failure'TEMPORARY_NODE_FAILURE+ = Failure'PERMANENT_NODE_FAILURE+ succ Failure'PERMANENT_NODE_FAILURE+ = Failure'PERMANENT_CHANNEL_FAILURE+ succ Failure'PERMANENT_CHANNEL_FAILURE = Failure'EXPIRY_TOO_FAR+ succ Failure'EXPIRY_TOO_FAR = Failure'MPP_TIMEOUT+ succ Failure'MPP_TIMEOUT = Failure'INVALID_ONION_PAYLOAD+ succ Failure'INVALID_ONION_PAYLOAD = Failure'INTERNAL_FAILURE+ succ Failure'INTERNAL_FAILURE = Failure'UNKNOWN_FAILURE+ succ Failure'UNKNOWN_FAILURE = Failure'UNREADABLE_FAILURE+ succ (Failure'FailureCode'Unrecognized _)+ = Prelude.error+ "Failure'FailureCode.succ: bad argument: unrecognized value"+ pred Failure'RESERVED+ = Prelude.error+ "Failure'FailureCode.pred: bad argument Failure'RESERVED. This value would be out of bounds."+ pred Failure'INCORRECT_OR_UNKNOWN_PAYMENT_DETAILS+ = Failure'RESERVED+ pred Failure'INCORRECT_PAYMENT_AMOUNT+ = Failure'INCORRECT_OR_UNKNOWN_PAYMENT_DETAILS+ pred Failure'FINAL_INCORRECT_CLTV_EXPIRY+ = Failure'INCORRECT_PAYMENT_AMOUNT+ pred Failure'FINAL_INCORRECT_HTLC_AMOUNT+ = Failure'FINAL_INCORRECT_CLTV_EXPIRY+ pred Failure'FINAL_EXPIRY_TOO_SOON+ = Failure'FINAL_INCORRECT_HTLC_AMOUNT+ pred Failure'INVALID_REALM = Failure'FINAL_EXPIRY_TOO_SOON+ pred Failure'EXPIRY_TOO_SOON = Failure'INVALID_REALM+ pred Failure'INVALID_ONION_VERSION = Failure'EXPIRY_TOO_SOON+ pred Failure'INVALID_ONION_HMAC = Failure'INVALID_ONION_VERSION+ pred Failure'INVALID_ONION_KEY = Failure'INVALID_ONION_HMAC+ pred Failure'AMOUNT_BELOW_MINIMUM = Failure'INVALID_ONION_KEY+ pred Failure'FEE_INSUFFICIENT = Failure'AMOUNT_BELOW_MINIMUM+ pred Failure'INCORRECT_CLTV_EXPIRY = Failure'FEE_INSUFFICIENT+ pred Failure'CHANNEL_DISABLED = Failure'INCORRECT_CLTV_EXPIRY+ pred Failure'TEMPORARY_CHANNEL_FAILURE = Failure'CHANNEL_DISABLED+ pred Failure'REQUIRED_NODE_FEATURE_MISSING+ = Failure'TEMPORARY_CHANNEL_FAILURE+ pred Failure'REQUIRED_CHANNEL_FEATURE_MISSING+ = Failure'REQUIRED_NODE_FEATURE_MISSING+ pred Failure'UNKNOWN_NEXT_PEER+ = Failure'REQUIRED_CHANNEL_FEATURE_MISSING+ pred Failure'TEMPORARY_NODE_FAILURE = Failure'UNKNOWN_NEXT_PEER+ pred Failure'PERMANENT_NODE_FAILURE+ = Failure'TEMPORARY_NODE_FAILURE+ pred Failure'PERMANENT_CHANNEL_FAILURE+ = Failure'PERMANENT_NODE_FAILURE+ pred Failure'EXPIRY_TOO_FAR = Failure'PERMANENT_CHANNEL_FAILURE+ pred Failure'MPP_TIMEOUT = Failure'EXPIRY_TOO_FAR+ pred Failure'INVALID_ONION_PAYLOAD = Failure'MPP_TIMEOUT+ pred Failure'INTERNAL_FAILURE = Failure'INVALID_ONION_PAYLOAD+ pred Failure'UNKNOWN_FAILURE = Failure'INTERNAL_FAILURE+ pred Failure'UNREADABLE_FAILURE = Failure'UNKNOWN_FAILURE+ pred (Failure'FailureCode'Unrecognized _)+ = Prelude.error+ "Failure'FailureCode.pred: bad argument: unrecognized value"+ enumFrom = Data.ProtoLens.Message.Enum.messageEnumFrom+ enumFromTo = Data.ProtoLens.Message.Enum.messageEnumFromTo+ enumFromThen = Data.ProtoLens.Message.Enum.messageEnumFromThen+ enumFromThenTo = Data.ProtoLens.Message.Enum.messageEnumFromThenTo+instance Data.ProtoLens.FieldDefault Failure'FailureCode where+ fieldDefault = Failure'RESERVED+instance Control.DeepSeq.NFData Failure'FailureCode where+ rnf x__ = Prelude.seq x__ ()+instance Text.PrettyPrint.GenericPretty.Out Failure'FailureCode+{- | Fields :+ -}+data FeeReportRequest+ = FeeReportRequest'_constructor {_FeeReportRequest'_unknownFields :: !Data.ProtoLens.FieldSet}+ deriving stock (Prelude.Eq, Prelude.Ord, GHC.Generics.Generic)+instance Prelude.Show FeeReportRequest where+ showsPrec _ __x __s+ = Prelude.showChar+ '{'+ (Prelude.showString+ (Data.ProtoLens.showMessageShort __x) (Prelude.showChar '}' __s))+instance Text.PrettyPrint.GenericPretty.Out FeeReportRequest+instance Data.ProtoLens.Message FeeReportRequest where+ messageName _ = Data.Text.pack "lnrpc.FeeReportRequest"+ packedMessageDescriptor _+ = "\n\+ \\DLEFeeReportRequest"+ packedFileDescriptor _ = packedFileDescriptor+ fieldsByTag = let in Data.Map.fromList []+ unknownFields+ = Lens.Family2.Unchecked.lens+ _FeeReportRequest'_unknownFields+ (\ x__ y__ -> x__ {_FeeReportRequest'_unknownFields = y__})+ defMessage+ = FeeReportRequest'_constructor+ {_FeeReportRequest'_unknownFields = []}+ parseMessage+ = let+ loop ::+ FeeReportRequest+ -> Data.ProtoLens.Encoding.Bytes.Parser FeeReportRequest+ loop x+ = do end <- Data.ProtoLens.Encoding.Bytes.atEnd+ if end then+ do (let missing = []+ in+ if Prelude.null missing then+ Prelude.return ()+ else+ Prelude.fail+ ((Prelude.++)+ "Missing required fields: "+ (Prelude.show (missing :: [Prelude.String]))))+ Prelude.return+ (Lens.Family2.over+ Data.ProtoLens.unknownFields (\ !t -> Prelude.reverse t) x)+ else+ do tag <- Data.ProtoLens.Encoding.Bytes.getVarInt+ case tag of {+ wire+ -> do !y <- Data.ProtoLens.Encoding.Wire.parseTaggedValueFromWire+ wire+ loop+ (Lens.Family2.over+ Data.ProtoLens.unknownFields (\ !t -> (:) y t) x) }+ in+ (Data.ProtoLens.Encoding.Bytes.<?>)+ (do loop Data.ProtoLens.defMessage) "FeeReportRequest"+ buildMessage+ = \ _x+ -> Data.ProtoLens.Encoding.Wire.buildFieldSet+ (Lens.Family2.view Data.ProtoLens.unknownFields _x)+instance Control.DeepSeq.NFData FeeReportRequest where+ rnf+ = \ x__+ -> Control.DeepSeq.deepseq+ (_FeeReportRequest'_unknownFields x__) ()+{- | Fields :+ + * 'Proto.Lnrpc.Ln1_Fields.channelFees' @:: Lens' FeeReportResponse [ChannelFeeReport]@+ * 'Proto.Lnrpc.Ln1_Fields.vec'channelFees' @:: Lens' FeeReportResponse (Data.Vector.Vector ChannelFeeReport)@+ * 'Proto.Lnrpc.Ln1_Fields.dayFeeSum' @:: Lens' FeeReportResponse Data.Word.Word64@+ * 'Proto.Lnrpc.Ln1_Fields.weekFeeSum' @:: Lens' FeeReportResponse Data.Word.Word64@+ * 'Proto.Lnrpc.Ln1_Fields.monthFeeSum' @:: Lens' FeeReportResponse Data.Word.Word64@ -}+data FeeReportResponse+ = FeeReportResponse'_constructor {_FeeReportResponse'channelFees :: !(Data.Vector.Vector ChannelFeeReport),+ _FeeReportResponse'dayFeeSum :: !Data.Word.Word64,+ _FeeReportResponse'weekFeeSum :: !Data.Word.Word64,+ _FeeReportResponse'monthFeeSum :: !Data.Word.Word64,+ _FeeReportResponse'_unknownFields :: !Data.ProtoLens.FieldSet}+ deriving stock (Prelude.Eq, Prelude.Ord, GHC.Generics.Generic)+instance Prelude.Show FeeReportResponse where+ showsPrec _ __x __s+ = Prelude.showChar+ '{'+ (Prelude.showString+ (Data.ProtoLens.showMessageShort __x) (Prelude.showChar '}' __s))+instance Text.PrettyPrint.GenericPretty.Out FeeReportResponse+instance Data.ProtoLens.Field.HasField FeeReportResponse "channelFees" [ChannelFeeReport] where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _FeeReportResponse'channelFees+ (\ x__ y__ -> x__ {_FeeReportResponse'channelFees = y__}))+ (Lens.Family2.Unchecked.lens+ Data.Vector.Generic.toList+ (\ _ y__ -> Data.Vector.Generic.fromList y__))+instance Data.ProtoLens.Field.HasField FeeReportResponse "vec'channelFees" (Data.Vector.Vector ChannelFeeReport) where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _FeeReportResponse'channelFees+ (\ x__ y__ -> x__ {_FeeReportResponse'channelFees = y__}))+ Prelude.id+instance Data.ProtoLens.Field.HasField FeeReportResponse "dayFeeSum" Data.Word.Word64 where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _FeeReportResponse'dayFeeSum+ (\ x__ y__ -> x__ {_FeeReportResponse'dayFeeSum = y__}))+ Prelude.id+instance Data.ProtoLens.Field.HasField FeeReportResponse "weekFeeSum" Data.Word.Word64 where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _FeeReportResponse'weekFeeSum+ (\ x__ y__ -> x__ {_FeeReportResponse'weekFeeSum = y__}))+ Prelude.id+instance Data.ProtoLens.Field.HasField FeeReportResponse "monthFeeSum" Data.Word.Word64 where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _FeeReportResponse'monthFeeSum+ (\ x__ y__ -> x__ {_FeeReportResponse'monthFeeSum = y__}))+ Prelude.id+instance Data.ProtoLens.Message FeeReportResponse where+ messageName _ = Data.Text.pack "lnrpc.FeeReportResponse"+ packedMessageDescriptor _+ = "\n\+ \\DC1FeeReportResponse\DC2:\n\+ \\fchannel_fees\CAN\SOH \ETX(\v2\ETB.lnrpc.ChannelFeeReportR\vchannelFees\DC2\RS\n\+ \\vday_fee_sum\CAN\STX \SOH(\EOTR\tdayFeeSum\DC2 \n\+ \\fweek_fee_sum\CAN\ETX \SOH(\EOTR\n\+ \weekFeeSum\DC2\"\n\+ \\rmonth_fee_sum\CAN\EOT \SOH(\EOTR\vmonthFeeSum"+ packedFileDescriptor _ = packedFileDescriptor+ fieldsByTag+ = let+ channelFees__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "channel_fees"+ (Data.ProtoLens.MessageField Data.ProtoLens.MessageType ::+ Data.ProtoLens.FieldTypeDescriptor ChannelFeeReport)+ (Data.ProtoLens.RepeatedField+ Data.ProtoLens.Unpacked+ (Data.ProtoLens.Field.field @"channelFees")) ::+ Data.ProtoLens.FieldDescriptor FeeReportResponse+ dayFeeSum__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "day_fee_sum"+ (Data.ProtoLens.ScalarField Data.ProtoLens.UInt64Field ::+ Data.ProtoLens.FieldTypeDescriptor Data.Word.Word64)+ (Data.ProtoLens.PlainField+ Data.ProtoLens.Optional+ (Data.ProtoLens.Field.field @"dayFeeSum")) ::+ Data.ProtoLens.FieldDescriptor FeeReportResponse+ weekFeeSum__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "week_fee_sum"+ (Data.ProtoLens.ScalarField Data.ProtoLens.UInt64Field ::+ Data.ProtoLens.FieldTypeDescriptor Data.Word.Word64)+ (Data.ProtoLens.PlainField+ Data.ProtoLens.Optional+ (Data.ProtoLens.Field.field @"weekFeeSum")) ::+ Data.ProtoLens.FieldDescriptor FeeReportResponse+ monthFeeSum__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "month_fee_sum"+ (Data.ProtoLens.ScalarField Data.ProtoLens.UInt64Field ::+ Data.ProtoLens.FieldTypeDescriptor Data.Word.Word64)+ (Data.ProtoLens.PlainField+ Data.ProtoLens.Optional+ (Data.ProtoLens.Field.field @"monthFeeSum")) ::+ Data.ProtoLens.FieldDescriptor FeeReportResponse+ in+ Data.Map.fromList+ [(Data.ProtoLens.Tag 1, channelFees__field_descriptor),+ (Data.ProtoLens.Tag 2, dayFeeSum__field_descriptor),+ (Data.ProtoLens.Tag 3, weekFeeSum__field_descriptor),+ (Data.ProtoLens.Tag 4, monthFeeSum__field_descriptor)]+ unknownFields+ = Lens.Family2.Unchecked.lens+ _FeeReportResponse'_unknownFields+ (\ x__ y__ -> x__ {_FeeReportResponse'_unknownFields = y__})+ defMessage+ = FeeReportResponse'_constructor+ {_FeeReportResponse'channelFees = Data.Vector.Generic.empty,+ _FeeReportResponse'dayFeeSum = Data.ProtoLens.fieldDefault,+ _FeeReportResponse'weekFeeSum = Data.ProtoLens.fieldDefault,+ _FeeReportResponse'monthFeeSum = Data.ProtoLens.fieldDefault,+ _FeeReportResponse'_unknownFields = []}+ parseMessage+ = let+ loop ::+ FeeReportResponse+ -> Data.ProtoLens.Encoding.Growing.Growing Data.Vector.Vector Data.ProtoLens.Encoding.Growing.RealWorld ChannelFeeReport+ -> Data.ProtoLens.Encoding.Bytes.Parser FeeReportResponse+ loop x mutable'channelFees+ = do end <- Data.ProtoLens.Encoding.Bytes.atEnd+ if end then+ do frozen'channelFees <- Data.ProtoLens.Encoding.Parser.Unsafe.unsafeLiftIO+ (Data.ProtoLens.Encoding.Growing.unsafeFreeze+ mutable'channelFees)+ (let missing = []+ in+ if Prelude.null missing then+ Prelude.return ()+ else+ Prelude.fail+ ((Prelude.++)+ "Missing required fields: "+ (Prelude.show (missing :: [Prelude.String]))))+ Prelude.return+ (Lens.Family2.over+ Data.ProtoLens.unknownFields (\ !t -> Prelude.reverse t)+ (Lens.Family2.set+ (Data.ProtoLens.Field.field @"vec'channelFees") frozen'channelFees+ x))+ else+ do tag <- Data.ProtoLens.Encoding.Bytes.getVarInt+ case tag of+ 10+ -> do !y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (do len <- Data.ProtoLens.Encoding.Bytes.getVarInt+ Data.ProtoLens.Encoding.Bytes.isolate+ (Prelude.fromIntegral len)+ Data.ProtoLens.parseMessage)+ "channel_fees"+ v <- Data.ProtoLens.Encoding.Parser.Unsafe.unsafeLiftIO+ (Data.ProtoLens.Encoding.Growing.append+ mutable'channelFees y)+ loop x v+ 16+ -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ Data.ProtoLens.Encoding.Bytes.getVarInt "day_fee_sum"+ loop+ (Lens.Family2.set (Data.ProtoLens.Field.field @"dayFeeSum") y x)+ mutable'channelFees+ 24+ -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ Data.ProtoLens.Encoding.Bytes.getVarInt "week_fee_sum"+ loop+ (Lens.Family2.set (Data.ProtoLens.Field.field @"weekFeeSum") y x)+ mutable'channelFees+ 32+ -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ Data.ProtoLens.Encoding.Bytes.getVarInt "month_fee_sum"+ loop+ (Lens.Family2.set (Data.ProtoLens.Field.field @"monthFeeSum") y x)+ mutable'channelFees+ wire+ -> do !y <- Data.ProtoLens.Encoding.Wire.parseTaggedValueFromWire+ wire+ loop+ (Lens.Family2.over+ Data.ProtoLens.unknownFields (\ !t -> (:) y t) x)+ mutable'channelFees+ in+ (Data.ProtoLens.Encoding.Bytes.<?>)+ (do mutable'channelFees <- Data.ProtoLens.Encoding.Parser.Unsafe.unsafeLiftIO+ Data.ProtoLens.Encoding.Growing.new+ loop Data.ProtoLens.defMessage mutable'channelFees)+ "FeeReportResponse"+ buildMessage+ = \ _x+ -> (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.foldMapBuilder+ (\ _v+ -> (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 10)+ ((Prelude..)+ (\ bs+ -> (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt+ (Prelude.fromIntegral (Data.ByteString.length bs)))+ (Data.ProtoLens.Encoding.Bytes.putBytes bs))+ Data.ProtoLens.encodeMessage _v))+ (Lens.Family2.view+ (Data.ProtoLens.Field.field @"vec'channelFees") _x))+ ((Data.Monoid.<>)+ (let+ _v = Lens.Family2.view (Data.ProtoLens.Field.field @"dayFeeSum") _x+ in+ if (Prelude.==) _v Data.ProtoLens.fieldDefault then+ Data.Monoid.mempty+ else+ (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 16)+ (Data.ProtoLens.Encoding.Bytes.putVarInt _v))+ ((Data.Monoid.<>)+ (let+ _v+ = Lens.Family2.view (Data.ProtoLens.Field.field @"weekFeeSum") _x+ in+ if (Prelude.==) _v Data.ProtoLens.fieldDefault then+ Data.Monoid.mempty+ else+ (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 24)+ (Data.ProtoLens.Encoding.Bytes.putVarInt _v))+ ((Data.Monoid.<>)+ (let+ _v+ = Lens.Family2.view (Data.ProtoLens.Field.field @"monthFeeSum") _x+ in+ if (Prelude.==) _v Data.ProtoLens.fieldDefault then+ Data.Monoid.mempty+ else+ (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 32)+ (Data.ProtoLens.Encoding.Bytes.putVarInt _v))+ (Data.ProtoLens.Encoding.Wire.buildFieldSet+ (Lens.Family2.view Data.ProtoLens.unknownFields _x)))))+instance Control.DeepSeq.NFData FeeReportResponse where+ rnf+ = \ x__+ -> Control.DeepSeq.deepseq+ (_FeeReportResponse'_unknownFields x__)+ (Control.DeepSeq.deepseq+ (_FeeReportResponse'channelFees x__)+ (Control.DeepSeq.deepseq+ (_FeeReportResponse'dayFeeSum x__)+ (Control.DeepSeq.deepseq+ (_FeeReportResponse'weekFeeSum x__)+ (Control.DeepSeq.deepseq+ (_FeeReportResponse'monthFeeSum x__) ()))))+{- | Fields :+ + * 'Proto.Lnrpc.Ln1_Fields.timestamp' @:: Lens' ForwardingEvent Data.Word.Word64@+ * 'Proto.Lnrpc.Ln1_Fields.chanIdIn' @:: Lens' ForwardingEvent Data.Word.Word64@+ * 'Proto.Lnrpc.Ln1_Fields.chanIdOut' @:: Lens' ForwardingEvent Data.Word.Word64@+ * 'Proto.Lnrpc.Ln1_Fields.amtIn' @:: Lens' ForwardingEvent Data.Word.Word64@+ * 'Proto.Lnrpc.Ln1_Fields.amtOut' @:: Lens' ForwardingEvent Data.Word.Word64@+ * 'Proto.Lnrpc.Ln1_Fields.fee' @:: Lens' ForwardingEvent Data.Word.Word64@+ * 'Proto.Lnrpc.Ln1_Fields.feeMsat' @:: Lens' ForwardingEvent Data.Word.Word64@+ * 'Proto.Lnrpc.Ln1_Fields.amtInMsat' @:: Lens' ForwardingEvent Data.Word.Word64@+ * 'Proto.Lnrpc.Ln1_Fields.amtOutMsat' @:: Lens' ForwardingEvent Data.Word.Word64@+ * 'Proto.Lnrpc.Ln1_Fields.timestampNs' @:: Lens' ForwardingEvent Data.Word.Word64@ -}+data ForwardingEvent+ = ForwardingEvent'_constructor {_ForwardingEvent'timestamp :: !Data.Word.Word64,+ _ForwardingEvent'chanIdIn :: !Data.Word.Word64,+ _ForwardingEvent'chanIdOut :: !Data.Word.Word64,+ _ForwardingEvent'amtIn :: !Data.Word.Word64,+ _ForwardingEvent'amtOut :: !Data.Word.Word64,+ _ForwardingEvent'fee :: !Data.Word.Word64,+ _ForwardingEvent'feeMsat :: !Data.Word.Word64,+ _ForwardingEvent'amtInMsat :: !Data.Word.Word64,+ _ForwardingEvent'amtOutMsat :: !Data.Word.Word64,+ _ForwardingEvent'timestampNs :: !Data.Word.Word64,+ _ForwardingEvent'_unknownFields :: !Data.ProtoLens.FieldSet}+ deriving stock (Prelude.Eq, Prelude.Ord, GHC.Generics.Generic)+instance Prelude.Show ForwardingEvent where+ showsPrec _ __x __s+ = Prelude.showChar+ '{'+ (Prelude.showString+ (Data.ProtoLens.showMessageShort __x) (Prelude.showChar '}' __s))+instance Text.PrettyPrint.GenericPretty.Out ForwardingEvent+instance Data.ProtoLens.Field.HasField ForwardingEvent "timestamp" Data.Word.Word64 where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _ForwardingEvent'timestamp+ (\ x__ y__ -> x__ {_ForwardingEvent'timestamp = y__}))+ Prelude.id+instance Data.ProtoLens.Field.HasField ForwardingEvent "chanIdIn" Data.Word.Word64 where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _ForwardingEvent'chanIdIn+ (\ x__ y__ -> x__ {_ForwardingEvent'chanIdIn = y__}))+ Prelude.id+instance Data.ProtoLens.Field.HasField ForwardingEvent "chanIdOut" Data.Word.Word64 where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _ForwardingEvent'chanIdOut+ (\ x__ y__ -> x__ {_ForwardingEvent'chanIdOut = y__}))+ Prelude.id+instance Data.ProtoLens.Field.HasField ForwardingEvent "amtIn" Data.Word.Word64 where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _ForwardingEvent'amtIn+ (\ x__ y__ -> x__ {_ForwardingEvent'amtIn = y__}))+ Prelude.id+instance Data.ProtoLens.Field.HasField ForwardingEvent "amtOut" Data.Word.Word64 where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _ForwardingEvent'amtOut+ (\ x__ y__ -> x__ {_ForwardingEvent'amtOut = y__}))+ Prelude.id+instance Data.ProtoLens.Field.HasField ForwardingEvent "fee" Data.Word.Word64 where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _ForwardingEvent'fee+ (\ x__ y__ -> x__ {_ForwardingEvent'fee = y__}))+ Prelude.id+instance Data.ProtoLens.Field.HasField ForwardingEvent "feeMsat" Data.Word.Word64 where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _ForwardingEvent'feeMsat+ (\ x__ y__ -> x__ {_ForwardingEvent'feeMsat = y__}))+ Prelude.id+instance Data.ProtoLens.Field.HasField ForwardingEvent "amtInMsat" Data.Word.Word64 where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _ForwardingEvent'amtInMsat+ (\ x__ y__ -> x__ {_ForwardingEvent'amtInMsat = y__}))+ Prelude.id+instance Data.ProtoLens.Field.HasField ForwardingEvent "amtOutMsat" Data.Word.Word64 where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _ForwardingEvent'amtOutMsat+ (\ x__ y__ -> x__ {_ForwardingEvent'amtOutMsat = y__}))+ Prelude.id+instance Data.ProtoLens.Field.HasField ForwardingEvent "timestampNs" Data.Word.Word64 where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _ForwardingEvent'timestampNs+ (\ x__ y__ -> x__ {_ForwardingEvent'timestampNs = y__}))+ Prelude.id+instance Data.ProtoLens.Message ForwardingEvent where+ messageName _ = Data.Text.pack "lnrpc.ForwardingEvent"+ packedMessageDescriptor _+ = "\n\+ \\SIForwardingEvent\DC2 \n\+ \\ttimestamp\CAN\SOH \SOH(\EOTR\ttimestampB\STX\CAN\SOH\DC2 \n\+ \\n\+ \chan_id_in\CAN\STX \SOH(\EOTR\bchanIdInB\STX0\SOH\DC2\"\n\+ \\vchan_id_out\CAN\EOT \SOH(\EOTR\tchanIdOutB\STX0\SOH\DC2\NAK\n\+ \\ACKamt_in\CAN\ENQ \SOH(\EOTR\ENQamtIn\DC2\ETB\n\+ \\aamt_out\CAN\ACK \SOH(\EOTR\ACKamtOut\DC2\DLE\n\+ \\ETXfee\CAN\a \SOH(\EOTR\ETXfee\DC2\EM\n\+ \\bfee_msat\CAN\b \SOH(\EOTR\afeeMsat\DC2\RS\n\+ \\vamt_in_msat\CAN\t \SOH(\EOTR\tamtInMsat\DC2 \n\+ \\famt_out_msat\CAN\n\+ \ \SOH(\EOTR\n\+ \amtOutMsat\DC2!\n\+ \\ftimestamp_ns\CAN\v \SOH(\EOTR\vtimestampNs"+ packedFileDescriptor _ = packedFileDescriptor+ fieldsByTag+ = let+ timestamp__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "timestamp"+ (Data.ProtoLens.ScalarField Data.ProtoLens.UInt64Field ::+ Data.ProtoLens.FieldTypeDescriptor Data.Word.Word64)+ (Data.ProtoLens.PlainField+ Data.ProtoLens.Optional+ (Data.ProtoLens.Field.field @"timestamp")) ::+ Data.ProtoLens.FieldDescriptor ForwardingEvent+ chanIdIn__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "chan_id_in"+ (Data.ProtoLens.ScalarField Data.ProtoLens.UInt64Field ::+ Data.ProtoLens.FieldTypeDescriptor Data.Word.Word64)+ (Data.ProtoLens.PlainField+ Data.ProtoLens.Optional+ (Data.ProtoLens.Field.field @"chanIdIn")) ::+ Data.ProtoLens.FieldDescriptor ForwardingEvent+ chanIdOut__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "chan_id_out"+ (Data.ProtoLens.ScalarField Data.ProtoLens.UInt64Field ::+ Data.ProtoLens.FieldTypeDescriptor Data.Word.Word64)+ (Data.ProtoLens.PlainField+ Data.ProtoLens.Optional+ (Data.ProtoLens.Field.field @"chanIdOut")) ::+ Data.ProtoLens.FieldDescriptor ForwardingEvent+ amtIn__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "amt_in"+ (Data.ProtoLens.ScalarField Data.ProtoLens.UInt64Field ::+ Data.ProtoLens.FieldTypeDescriptor Data.Word.Word64)+ (Data.ProtoLens.PlainField+ Data.ProtoLens.Optional (Data.ProtoLens.Field.field @"amtIn")) ::+ Data.ProtoLens.FieldDescriptor ForwardingEvent+ amtOut__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "amt_out"+ (Data.ProtoLens.ScalarField Data.ProtoLens.UInt64Field ::+ Data.ProtoLens.FieldTypeDescriptor Data.Word.Word64)+ (Data.ProtoLens.PlainField+ Data.ProtoLens.Optional (Data.ProtoLens.Field.field @"amtOut")) ::+ Data.ProtoLens.FieldDescriptor ForwardingEvent+ fee__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "fee"+ (Data.ProtoLens.ScalarField Data.ProtoLens.UInt64Field ::+ Data.ProtoLens.FieldTypeDescriptor Data.Word.Word64)+ (Data.ProtoLens.PlainField+ Data.ProtoLens.Optional (Data.ProtoLens.Field.field @"fee")) ::+ Data.ProtoLens.FieldDescriptor ForwardingEvent+ feeMsat__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "fee_msat"+ (Data.ProtoLens.ScalarField Data.ProtoLens.UInt64Field ::+ Data.ProtoLens.FieldTypeDescriptor Data.Word.Word64)+ (Data.ProtoLens.PlainField+ Data.ProtoLens.Optional (Data.ProtoLens.Field.field @"feeMsat")) ::+ Data.ProtoLens.FieldDescriptor ForwardingEvent+ amtInMsat__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "amt_in_msat"+ (Data.ProtoLens.ScalarField Data.ProtoLens.UInt64Field ::+ Data.ProtoLens.FieldTypeDescriptor Data.Word.Word64)+ (Data.ProtoLens.PlainField+ Data.ProtoLens.Optional+ (Data.ProtoLens.Field.field @"amtInMsat")) ::+ Data.ProtoLens.FieldDescriptor ForwardingEvent+ amtOutMsat__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "amt_out_msat"+ (Data.ProtoLens.ScalarField Data.ProtoLens.UInt64Field ::+ Data.ProtoLens.FieldTypeDescriptor Data.Word.Word64)+ (Data.ProtoLens.PlainField+ Data.ProtoLens.Optional+ (Data.ProtoLens.Field.field @"amtOutMsat")) ::+ Data.ProtoLens.FieldDescriptor ForwardingEvent+ timestampNs__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "timestamp_ns"+ (Data.ProtoLens.ScalarField Data.ProtoLens.UInt64Field ::+ Data.ProtoLens.FieldTypeDescriptor Data.Word.Word64)+ (Data.ProtoLens.PlainField+ Data.ProtoLens.Optional+ (Data.ProtoLens.Field.field @"timestampNs")) ::+ Data.ProtoLens.FieldDescriptor ForwardingEvent+ in+ Data.Map.fromList+ [(Data.ProtoLens.Tag 1, timestamp__field_descriptor),+ (Data.ProtoLens.Tag 2, chanIdIn__field_descriptor),+ (Data.ProtoLens.Tag 4, chanIdOut__field_descriptor),+ (Data.ProtoLens.Tag 5, amtIn__field_descriptor),+ (Data.ProtoLens.Tag 6, amtOut__field_descriptor),+ (Data.ProtoLens.Tag 7, fee__field_descriptor),+ (Data.ProtoLens.Tag 8, feeMsat__field_descriptor),+ (Data.ProtoLens.Tag 9, amtInMsat__field_descriptor),+ (Data.ProtoLens.Tag 10, amtOutMsat__field_descriptor),+ (Data.ProtoLens.Tag 11, timestampNs__field_descriptor)]+ unknownFields+ = Lens.Family2.Unchecked.lens+ _ForwardingEvent'_unknownFields+ (\ x__ y__ -> x__ {_ForwardingEvent'_unknownFields = y__})+ defMessage+ = ForwardingEvent'_constructor+ {_ForwardingEvent'timestamp = Data.ProtoLens.fieldDefault,+ _ForwardingEvent'chanIdIn = Data.ProtoLens.fieldDefault,+ _ForwardingEvent'chanIdOut = Data.ProtoLens.fieldDefault,+ _ForwardingEvent'amtIn = Data.ProtoLens.fieldDefault,+ _ForwardingEvent'amtOut = Data.ProtoLens.fieldDefault,+ _ForwardingEvent'fee = Data.ProtoLens.fieldDefault,+ _ForwardingEvent'feeMsat = Data.ProtoLens.fieldDefault,+ _ForwardingEvent'amtInMsat = Data.ProtoLens.fieldDefault,+ _ForwardingEvent'amtOutMsat = Data.ProtoLens.fieldDefault,+ _ForwardingEvent'timestampNs = Data.ProtoLens.fieldDefault,+ _ForwardingEvent'_unknownFields = []}+ parseMessage+ = let+ loop ::+ ForwardingEvent+ -> Data.ProtoLens.Encoding.Bytes.Parser ForwardingEvent+ loop x+ = do end <- Data.ProtoLens.Encoding.Bytes.atEnd+ if end then+ do (let missing = []+ in+ if Prelude.null missing then+ Prelude.return ()+ else+ Prelude.fail+ ((Prelude.++)+ "Missing required fields: "+ (Prelude.show (missing :: [Prelude.String]))))+ Prelude.return+ (Lens.Family2.over+ Data.ProtoLens.unknownFields (\ !t -> Prelude.reverse t) x)+ else+ do tag <- Data.ProtoLens.Encoding.Bytes.getVarInt+ case tag of+ 8 -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ Data.ProtoLens.Encoding.Bytes.getVarInt "timestamp"+ loop+ (Lens.Family2.set (Data.ProtoLens.Field.field @"timestamp") y x)+ 16+ -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ Data.ProtoLens.Encoding.Bytes.getVarInt "chan_id_in"+ loop+ (Lens.Family2.set (Data.ProtoLens.Field.field @"chanIdIn") y x)+ 32+ -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ Data.ProtoLens.Encoding.Bytes.getVarInt "chan_id_out"+ loop+ (Lens.Family2.set (Data.ProtoLens.Field.field @"chanIdOut") y x)+ 40+ -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ Data.ProtoLens.Encoding.Bytes.getVarInt "amt_in"+ loop (Lens.Family2.set (Data.ProtoLens.Field.field @"amtIn") y x)+ 48+ -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ Data.ProtoLens.Encoding.Bytes.getVarInt "amt_out"+ loop (Lens.Family2.set (Data.ProtoLens.Field.field @"amtOut") y x)+ 56+ -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ Data.ProtoLens.Encoding.Bytes.getVarInt "fee"+ loop (Lens.Family2.set (Data.ProtoLens.Field.field @"fee") y x)+ 64+ -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ Data.ProtoLens.Encoding.Bytes.getVarInt "fee_msat"+ loop (Lens.Family2.set (Data.ProtoLens.Field.field @"feeMsat") y x)+ 72+ -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ Data.ProtoLens.Encoding.Bytes.getVarInt "amt_in_msat"+ loop+ (Lens.Family2.set (Data.ProtoLens.Field.field @"amtInMsat") y x)+ 80+ -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ Data.ProtoLens.Encoding.Bytes.getVarInt "amt_out_msat"+ loop+ (Lens.Family2.set (Data.ProtoLens.Field.field @"amtOutMsat") y x)+ 88+ -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ Data.ProtoLens.Encoding.Bytes.getVarInt "timestamp_ns"+ loop+ (Lens.Family2.set (Data.ProtoLens.Field.field @"timestampNs") y x)+ wire+ -> do !y <- Data.ProtoLens.Encoding.Wire.parseTaggedValueFromWire+ wire+ loop+ (Lens.Family2.over+ Data.ProtoLens.unknownFields (\ !t -> (:) y t) x)+ in+ (Data.ProtoLens.Encoding.Bytes.<?>)+ (do loop Data.ProtoLens.defMessage) "ForwardingEvent"+ buildMessage+ = \ _x+ -> (Data.Monoid.<>)+ (let+ _v = Lens.Family2.view (Data.ProtoLens.Field.field @"timestamp") _x+ in+ if (Prelude.==) _v Data.ProtoLens.fieldDefault then+ Data.Monoid.mempty+ else+ (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 8)+ (Data.ProtoLens.Encoding.Bytes.putVarInt _v))+ ((Data.Monoid.<>)+ (let+ _v = Lens.Family2.view (Data.ProtoLens.Field.field @"chanIdIn") _x+ in+ if (Prelude.==) _v Data.ProtoLens.fieldDefault then+ Data.Monoid.mempty+ else+ (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 16)+ (Data.ProtoLens.Encoding.Bytes.putVarInt _v))+ ((Data.Monoid.<>)+ (let+ _v = Lens.Family2.view (Data.ProtoLens.Field.field @"chanIdOut") _x+ in+ if (Prelude.==) _v Data.ProtoLens.fieldDefault then+ Data.Monoid.mempty+ else+ (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 32)+ (Data.ProtoLens.Encoding.Bytes.putVarInt _v))+ ((Data.Monoid.<>)+ (let+ _v = Lens.Family2.view (Data.ProtoLens.Field.field @"amtIn") _x+ in+ if (Prelude.==) _v Data.ProtoLens.fieldDefault then+ Data.Monoid.mempty+ else+ (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 40)+ (Data.ProtoLens.Encoding.Bytes.putVarInt _v))+ ((Data.Monoid.<>)+ (let+ _v = Lens.Family2.view (Data.ProtoLens.Field.field @"amtOut") _x+ in+ if (Prelude.==) _v Data.ProtoLens.fieldDefault then+ Data.Monoid.mempty+ else+ (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 48)+ (Data.ProtoLens.Encoding.Bytes.putVarInt _v))+ ((Data.Monoid.<>)+ (let _v = Lens.Family2.view (Data.ProtoLens.Field.field @"fee") _x+ in+ if (Prelude.==) _v Data.ProtoLens.fieldDefault then+ Data.Monoid.mempty+ else+ (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 56)+ (Data.ProtoLens.Encoding.Bytes.putVarInt _v))+ ((Data.Monoid.<>)+ (let+ _v = Lens.Family2.view (Data.ProtoLens.Field.field @"feeMsat") _x+ in+ if (Prelude.==) _v Data.ProtoLens.fieldDefault then+ Data.Monoid.mempty+ else+ (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 64)+ (Data.ProtoLens.Encoding.Bytes.putVarInt _v))+ ((Data.Monoid.<>)+ (let+ _v+ = Lens.Family2.view+ (Data.ProtoLens.Field.field @"amtInMsat") _x+ in+ if (Prelude.==) _v Data.ProtoLens.fieldDefault then+ Data.Monoid.mempty+ else+ (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 72)+ (Data.ProtoLens.Encoding.Bytes.putVarInt _v))+ ((Data.Monoid.<>)+ (let+ _v+ = Lens.Family2.view+ (Data.ProtoLens.Field.field @"amtOutMsat") _x+ in+ if (Prelude.==) _v Data.ProtoLens.fieldDefault then+ Data.Monoid.mempty+ else+ (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 80)+ (Data.ProtoLens.Encoding.Bytes.putVarInt _v))+ ((Data.Monoid.<>)+ (let+ _v+ = Lens.Family2.view+ (Data.ProtoLens.Field.field @"timestampNs") _x+ in+ if (Prelude.==) _v Data.ProtoLens.fieldDefault then+ Data.Monoid.mempty+ else+ (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 88)+ (Data.ProtoLens.Encoding.Bytes.putVarInt _v))+ (Data.ProtoLens.Encoding.Wire.buildFieldSet+ (Lens.Family2.view+ Data.ProtoLens.unknownFields _x)))))))))))+instance Control.DeepSeq.NFData ForwardingEvent where+ rnf+ = \ x__+ -> Control.DeepSeq.deepseq+ (_ForwardingEvent'_unknownFields x__)+ (Control.DeepSeq.deepseq+ (_ForwardingEvent'timestamp x__)+ (Control.DeepSeq.deepseq+ (_ForwardingEvent'chanIdIn x__)+ (Control.DeepSeq.deepseq+ (_ForwardingEvent'chanIdOut x__)+ (Control.DeepSeq.deepseq+ (_ForwardingEvent'amtIn x__)+ (Control.DeepSeq.deepseq+ (_ForwardingEvent'amtOut x__)+ (Control.DeepSeq.deepseq+ (_ForwardingEvent'fee x__)+ (Control.DeepSeq.deepseq+ (_ForwardingEvent'feeMsat x__)+ (Control.DeepSeq.deepseq+ (_ForwardingEvent'amtInMsat x__)+ (Control.DeepSeq.deepseq+ (_ForwardingEvent'amtOutMsat x__)+ (Control.DeepSeq.deepseq+ (_ForwardingEvent'timestampNs x__) ()))))))))))+{- | Fields :+ + * 'Proto.Lnrpc.Ln1_Fields.startTime' @:: Lens' ForwardingHistoryRequest Data.Word.Word64@+ * 'Proto.Lnrpc.Ln1_Fields.endTime' @:: Lens' ForwardingHistoryRequest Data.Word.Word64@+ * 'Proto.Lnrpc.Ln1_Fields.indexOffset' @:: Lens' ForwardingHistoryRequest Data.Word.Word32@+ * 'Proto.Lnrpc.Ln1_Fields.numMaxEvents' @:: Lens' ForwardingHistoryRequest Data.Word.Word32@ -}+data ForwardingHistoryRequest+ = ForwardingHistoryRequest'_constructor {_ForwardingHistoryRequest'startTime :: !Data.Word.Word64,+ _ForwardingHistoryRequest'endTime :: !Data.Word.Word64,+ _ForwardingHistoryRequest'indexOffset :: !Data.Word.Word32,+ _ForwardingHistoryRequest'numMaxEvents :: !Data.Word.Word32,+ _ForwardingHistoryRequest'_unknownFields :: !Data.ProtoLens.FieldSet}+ deriving stock (Prelude.Eq, Prelude.Ord, GHC.Generics.Generic)+instance Prelude.Show ForwardingHistoryRequest where+ showsPrec _ __x __s+ = Prelude.showChar+ '{'+ (Prelude.showString+ (Data.ProtoLens.showMessageShort __x) (Prelude.showChar '}' __s))+instance Text.PrettyPrint.GenericPretty.Out ForwardingHistoryRequest+instance Data.ProtoLens.Field.HasField ForwardingHistoryRequest "startTime" Data.Word.Word64 where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _ForwardingHistoryRequest'startTime+ (\ x__ y__ -> x__ {_ForwardingHistoryRequest'startTime = y__}))+ Prelude.id+instance Data.ProtoLens.Field.HasField ForwardingHistoryRequest "endTime" Data.Word.Word64 where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _ForwardingHistoryRequest'endTime+ (\ x__ y__ -> x__ {_ForwardingHistoryRequest'endTime = y__}))+ Prelude.id+instance Data.ProtoLens.Field.HasField ForwardingHistoryRequest "indexOffset" Data.Word.Word32 where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _ForwardingHistoryRequest'indexOffset+ (\ x__ y__ -> x__ {_ForwardingHistoryRequest'indexOffset = y__}))+ Prelude.id+instance Data.ProtoLens.Field.HasField ForwardingHistoryRequest "numMaxEvents" Data.Word.Word32 where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _ForwardingHistoryRequest'numMaxEvents+ (\ x__ y__ -> x__ {_ForwardingHistoryRequest'numMaxEvents = y__}))+ Prelude.id+instance Data.ProtoLens.Message ForwardingHistoryRequest where+ messageName _ = Data.Text.pack "lnrpc.ForwardingHistoryRequest"+ packedMessageDescriptor _+ = "\n\+ \\CANForwardingHistoryRequest\DC2\GS\n\+ \\n\+ \start_time\CAN\SOH \SOH(\EOTR\tstartTime\DC2\EM\n\+ \\bend_time\CAN\STX \SOH(\EOTR\aendTime\DC2!\n\+ \\findex_offset\CAN\ETX \SOH(\rR\vindexOffset\DC2$\n\+ \\SOnum_max_events\CAN\EOT \SOH(\rR\fnumMaxEvents"+ packedFileDescriptor _ = packedFileDescriptor+ fieldsByTag+ = let+ startTime__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "start_time"+ (Data.ProtoLens.ScalarField Data.ProtoLens.UInt64Field ::+ Data.ProtoLens.FieldTypeDescriptor Data.Word.Word64)+ (Data.ProtoLens.PlainField+ Data.ProtoLens.Optional+ (Data.ProtoLens.Field.field @"startTime")) ::+ Data.ProtoLens.FieldDescriptor ForwardingHistoryRequest+ endTime__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "end_time"+ (Data.ProtoLens.ScalarField Data.ProtoLens.UInt64Field ::+ Data.ProtoLens.FieldTypeDescriptor Data.Word.Word64)+ (Data.ProtoLens.PlainField+ Data.ProtoLens.Optional (Data.ProtoLens.Field.field @"endTime")) ::+ Data.ProtoLens.FieldDescriptor ForwardingHistoryRequest+ indexOffset__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "index_offset"+ (Data.ProtoLens.ScalarField Data.ProtoLens.UInt32Field ::+ Data.ProtoLens.FieldTypeDescriptor Data.Word.Word32)+ (Data.ProtoLens.PlainField+ Data.ProtoLens.Optional+ (Data.ProtoLens.Field.field @"indexOffset")) ::+ Data.ProtoLens.FieldDescriptor ForwardingHistoryRequest+ numMaxEvents__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "num_max_events"+ (Data.ProtoLens.ScalarField Data.ProtoLens.UInt32Field ::+ Data.ProtoLens.FieldTypeDescriptor Data.Word.Word32)+ (Data.ProtoLens.PlainField+ Data.ProtoLens.Optional+ (Data.ProtoLens.Field.field @"numMaxEvents")) ::+ Data.ProtoLens.FieldDescriptor ForwardingHistoryRequest+ in+ Data.Map.fromList+ [(Data.ProtoLens.Tag 1, startTime__field_descriptor),+ (Data.ProtoLens.Tag 2, endTime__field_descriptor),+ (Data.ProtoLens.Tag 3, indexOffset__field_descriptor),+ (Data.ProtoLens.Tag 4, numMaxEvents__field_descriptor)]+ unknownFields+ = Lens.Family2.Unchecked.lens+ _ForwardingHistoryRequest'_unknownFields+ (\ x__ y__ -> x__ {_ForwardingHistoryRequest'_unknownFields = y__})+ defMessage+ = ForwardingHistoryRequest'_constructor+ {_ForwardingHistoryRequest'startTime = Data.ProtoLens.fieldDefault,+ _ForwardingHistoryRequest'endTime = Data.ProtoLens.fieldDefault,+ _ForwardingHistoryRequest'indexOffset = Data.ProtoLens.fieldDefault,+ _ForwardingHistoryRequest'numMaxEvents = Data.ProtoLens.fieldDefault,+ _ForwardingHistoryRequest'_unknownFields = []}+ parseMessage+ = let+ loop ::+ ForwardingHistoryRequest+ -> Data.ProtoLens.Encoding.Bytes.Parser ForwardingHistoryRequest+ loop x+ = do end <- Data.ProtoLens.Encoding.Bytes.atEnd+ if end then+ do (let missing = []+ in+ if Prelude.null missing then+ Prelude.return ()+ else+ Prelude.fail+ ((Prelude.++)+ "Missing required fields: "+ (Prelude.show (missing :: [Prelude.String]))))+ Prelude.return+ (Lens.Family2.over+ Data.ProtoLens.unknownFields (\ !t -> Prelude.reverse t) x)+ else+ do tag <- Data.ProtoLens.Encoding.Bytes.getVarInt+ case tag of+ 8 -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ Data.ProtoLens.Encoding.Bytes.getVarInt "start_time"+ loop+ (Lens.Family2.set (Data.ProtoLens.Field.field @"startTime") y x)+ 16+ -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ Data.ProtoLens.Encoding.Bytes.getVarInt "end_time"+ loop (Lens.Family2.set (Data.ProtoLens.Field.field @"endTime") y x)+ 24+ -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (Prelude.fmap+ Prelude.fromIntegral+ Data.ProtoLens.Encoding.Bytes.getVarInt)+ "index_offset"+ loop+ (Lens.Family2.set (Data.ProtoLens.Field.field @"indexOffset") y x)+ 32+ -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (Prelude.fmap+ Prelude.fromIntegral+ Data.ProtoLens.Encoding.Bytes.getVarInt)+ "num_max_events"+ loop+ (Lens.Family2.set+ (Data.ProtoLens.Field.field @"numMaxEvents") y x)+ wire+ -> do !y <- Data.ProtoLens.Encoding.Wire.parseTaggedValueFromWire+ wire+ loop+ (Lens.Family2.over+ Data.ProtoLens.unknownFields (\ !t -> (:) y t) x)+ in+ (Data.ProtoLens.Encoding.Bytes.<?>)+ (do loop Data.ProtoLens.defMessage) "ForwardingHistoryRequest"+ buildMessage+ = \ _x+ -> (Data.Monoid.<>)+ (let+ _v = Lens.Family2.view (Data.ProtoLens.Field.field @"startTime") _x+ in+ if (Prelude.==) _v Data.ProtoLens.fieldDefault then+ Data.Monoid.mempty+ else+ (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 8)+ (Data.ProtoLens.Encoding.Bytes.putVarInt _v))+ ((Data.Monoid.<>)+ (let+ _v = Lens.Family2.view (Data.ProtoLens.Field.field @"endTime") _x+ in+ if (Prelude.==) _v Data.ProtoLens.fieldDefault then+ Data.Monoid.mempty+ else+ (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 16)+ (Data.ProtoLens.Encoding.Bytes.putVarInt _v))+ ((Data.Monoid.<>)+ (let+ _v+ = Lens.Family2.view (Data.ProtoLens.Field.field @"indexOffset") _x+ in+ if (Prelude.==) _v Data.ProtoLens.fieldDefault then+ Data.Monoid.mempty+ else+ (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 24)+ ((Prelude..)+ Data.ProtoLens.Encoding.Bytes.putVarInt Prelude.fromIntegral _v))+ ((Data.Monoid.<>)+ (let+ _v+ = Lens.Family2.view (Data.ProtoLens.Field.field @"numMaxEvents") _x+ in+ if (Prelude.==) _v Data.ProtoLens.fieldDefault then+ Data.Monoid.mempty+ else+ (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 32)+ ((Prelude..)+ Data.ProtoLens.Encoding.Bytes.putVarInt Prelude.fromIntegral _v))+ (Data.ProtoLens.Encoding.Wire.buildFieldSet+ (Lens.Family2.view Data.ProtoLens.unknownFields _x)))))+instance Control.DeepSeq.NFData ForwardingHistoryRequest where+ rnf+ = \ x__+ -> Control.DeepSeq.deepseq+ (_ForwardingHistoryRequest'_unknownFields x__)+ (Control.DeepSeq.deepseq+ (_ForwardingHistoryRequest'startTime x__)+ (Control.DeepSeq.deepseq+ (_ForwardingHistoryRequest'endTime x__)+ (Control.DeepSeq.deepseq+ (_ForwardingHistoryRequest'indexOffset x__)+ (Control.DeepSeq.deepseq+ (_ForwardingHistoryRequest'numMaxEvents x__) ()))))+{- | Fields :+ + * 'Proto.Lnrpc.Ln1_Fields.forwardingEvents' @:: Lens' ForwardingHistoryResponse [ForwardingEvent]@+ * 'Proto.Lnrpc.Ln1_Fields.vec'forwardingEvents' @:: Lens' ForwardingHistoryResponse (Data.Vector.Vector ForwardingEvent)@+ * 'Proto.Lnrpc.Ln1_Fields.lastOffsetIndex' @:: Lens' ForwardingHistoryResponse Data.Word.Word32@ -}+data ForwardingHistoryResponse+ = ForwardingHistoryResponse'_constructor {_ForwardingHistoryResponse'forwardingEvents :: !(Data.Vector.Vector ForwardingEvent),+ _ForwardingHistoryResponse'lastOffsetIndex :: !Data.Word.Word32,+ _ForwardingHistoryResponse'_unknownFields :: !Data.ProtoLens.FieldSet}+ deriving stock (Prelude.Eq, Prelude.Ord, GHC.Generics.Generic)+instance Prelude.Show ForwardingHistoryResponse where+ showsPrec _ __x __s+ = Prelude.showChar+ '{'+ (Prelude.showString+ (Data.ProtoLens.showMessageShort __x) (Prelude.showChar '}' __s))+instance Text.PrettyPrint.GenericPretty.Out ForwardingHistoryResponse+instance Data.ProtoLens.Field.HasField ForwardingHistoryResponse "forwardingEvents" [ForwardingEvent] where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _ForwardingHistoryResponse'forwardingEvents+ (\ x__ y__+ -> x__ {_ForwardingHistoryResponse'forwardingEvents = y__}))+ (Lens.Family2.Unchecked.lens+ Data.Vector.Generic.toList+ (\ _ y__ -> Data.Vector.Generic.fromList y__))+instance Data.ProtoLens.Field.HasField ForwardingHistoryResponse "vec'forwardingEvents" (Data.Vector.Vector ForwardingEvent) where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _ForwardingHistoryResponse'forwardingEvents+ (\ x__ y__+ -> x__ {_ForwardingHistoryResponse'forwardingEvents = y__}))+ Prelude.id+instance Data.ProtoLens.Field.HasField ForwardingHistoryResponse "lastOffsetIndex" Data.Word.Word32 where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _ForwardingHistoryResponse'lastOffsetIndex+ (\ x__ y__+ -> x__ {_ForwardingHistoryResponse'lastOffsetIndex = y__}))+ Prelude.id+instance Data.ProtoLens.Message ForwardingHistoryResponse where+ messageName _ = Data.Text.pack "lnrpc.ForwardingHistoryResponse"+ packedMessageDescriptor _+ = "\n\+ \\EMForwardingHistoryResponse\DC2C\n\+ \\DC1forwarding_events\CAN\SOH \ETX(\v2\SYN.lnrpc.ForwardingEventR\DLEforwardingEvents\DC2*\n\+ \\DC1last_offset_index\CAN\STX \SOH(\rR\SIlastOffsetIndex"+ packedFileDescriptor _ = packedFileDescriptor+ fieldsByTag+ = let+ forwardingEvents__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "forwarding_events"+ (Data.ProtoLens.MessageField Data.ProtoLens.MessageType ::+ Data.ProtoLens.FieldTypeDescriptor ForwardingEvent)+ (Data.ProtoLens.RepeatedField+ Data.ProtoLens.Unpacked+ (Data.ProtoLens.Field.field @"forwardingEvents")) ::+ Data.ProtoLens.FieldDescriptor ForwardingHistoryResponse+ lastOffsetIndex__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "last_offset_index"+ (Data.ProtoLens.ScalarField Data.ProtoLens.UInt32Field ::+ Data.ProtoLens.FieldTypeDescriptor Data.Word.Word32)+ (Data.ProtoLens.PlainField+ Data.ProtoLens.Optional+ (Data.ProtoLens.Field.field @"lastOffsetIndex")) ::+ Data.ProtoLens.FieldDescriptor ForwardingHistoryResponse+ in+ Data.Map.fromList+ [(Data.ProtoLens.Tag 1, forwardingEvents__field_descriptor),+ (Data.ProtoLens.Tag 2, lastOffsetIndex__field_descriptor)]+ unknownFields+ = Lens.Family2.Unchecked.lens+ _ForwardingHistoryResponse'_unknownFields+ (\ x__ y__+ -> x__ {_ForwardingHistoryResponse'_unknownFields = y__})+ defMessage+ = ForwardingHistoryResponse'_constructor+ {_ForwardingHistoryResponse'forwardingEvents = Data.Vector.Generic.empty,+ _ForwardingHistoryResponse'lastOffsetIndex = Data.ProtoLens.fieldDefault,+ _ForwardingHistoryResponse'_unknownFields = []}+ parseMessage+ = let+ loop ::+ ForwardingHistoryResponse+ -> Data.ProtoLens.Encoding.Growing.Growing Data.Vector.Vector Data.ProtoLens.Encoding.Growing.RealWorld ForwardingEvent+ -> Data.ProtoLens.Encoding.Bytes.Parser ForwardingHistoryResponse+ loop x mutable'forwardingEvents+ = do end <- Data.ProtoLens.Encoding.Bytes.atEnd+ if end then+ do frozen'forwardingEvents <- Data.ProtoLens.Encoding.Parser.Unsafe.unsafeLiftIO+ (Data.ProtoLens.Encoding.Growing.unsafeFreeze+ mutable'forwardingEvents)+ (let missing = []+ in+ if Prelude.null missing then+ Prelude.return ()+ else+ Prelude.fail+ ((Prelude.++)+ "Missing required fields: "+ (Prelude.show (missing :: [Prelude.String]))))+ Prelude.return+ (Lens.Family2.over+ Data.ProtoLens.unknownFields (\ !t -> Prelude.reverse t)+ (Lens.Family2.set+ (Data.ProtoLens.Field.field @"vec'forwardingEvents")+ frozen'forwardingEvents x))+ else+ do tag <- Data.ProtoLens.Encoding.Bytes.getVarInt+ case tag of+ 10+ -> do !y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (do len <- Data.ProtoLens.Encoding.Bytes.getVarInt+ Data.ProtoLens.Encoding.Bytes.isolate+ (Prelude.fromIntegral len)+ Data.ProtoLens.parseMessage)+ "forwarding_events"+ v <- Data.ProtoLens.Encoding.Parser.Unsafe.unsafeLiftIO+ (Data.ProtoLens.Encoding.Growing.append+ mutable'forwardingEvents y)+ loop x v+ 16+ -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (Prelude.fmap+ Prelude.fromIntegral+ Data.ProtoLens.Encoding.Bytes.getVarInt)+ "last_offset_index"+ loop+ (Lens.Family2.set+ (Data.ProtoLens.Field.field @"lastOffsetIndex") y x)+ mutable'forwardingEvents+ wire+ -> do !y <- Data.ProtoLens.Encoding.Wire.parseTaggedValueFromWire+ wire+ loop+ (Lens.Family2.over+ Data.ProtoLens.unknownFields (\ !t -> (:) y t) x)+ mutable'forwardingEvents+ in+ (Data.ProtoLens.Encoding.Bytes.<?>)+ (do mutable'forwardingEvents <- Data.ProtoLens.Encoding.Parser.Unsafe.unsafeLiftIO+ Data.ProtoLens.Encoding.Growing.new+ loop Data.ProtoLens.defMessage mutable'forwardingEvents)+ "ForwardingHistoryResponse"+ buildMessage+ = \ _x+ -> (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.foldMapBuilder+ (\ _v+ -> (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 10)+ ((Prelude..)+ (\ bs+ -> (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt+ (Prelude.fromIntegral (Data.ByteString.length bs)))+ (Data.ProtoLens.Encoding.Bytes.putBytes bs))+ Data.ProtoLens.encodeMessage _v))+ (Lens.Family2.view+ (Data.ProtoLens.Field.field @"vec'forwardingEvents") _x))+ ((Data.Monoid.<>)+ (let+ _v+ = Lens.Family2.view+ (Data.ProtoLens.Field.field @"lastOffsetIndex") _x+ in+ if (Prelude.==) _v Data.ProtoLens.fieldDefault then+ Data.Monoid.mempty+ else+ (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 16)+ ((Prelude..)+ Data.ProtoLens.Encoding.Bytes.putVarInt Prelude.fromIntegral _v))+ (Data.ProtoLens.Encoding.Wire.buildFieldSet+ (Lens.Family2.view Data.ProtoLens.unknownFields _x)))+instance Control.DeepSeq.NFData ForwardingHistoryResponse where+ rnf+ = \ x__+ -> Control.DeepSeq.deepseq+ (_ForwardingHistoryResponse'_unknownFields x__)+ (Control.DeepSeq.deepseq+ (_ForwardingHistoryResponse'forwardingEvents x__)+ (Control.DeepSeq.deepseq+ (_ForwardingHistoryResponse'lastOffsetIndex x__) ()))+{- | Fields :+ + * 'Proto.Lnrpc.Ln1_Fields.attemptId' @:: Lens' HTLCAttempt Data.Word.Word64@+ * 'Proto.Lnrpc.Ln1_Fields.status' @:: Lens' HTLCAttempt HTLCAttempt'HTLCStatus@+ * 'Proto.Lnrpc.Ln1_Fields.route' @:: Lens' HTLCAttempt Proto.Lnrpc.Ln0.Route@+ * 'Proto.Lnrpc.Ln1_Fields.maybe'route' @:: Lens' HTLCAttempt (Prelude.Maybe Proto.Lnrpc.Ln0.Route)@+ * 'Proto.Lnrpc.Ln1_Fields.attemptTimeNs' @:: Lens' HTLCAttempt Data.Int.Int64@+ * 'Proto.Lnrpc.Ln1_Fields.resolveTimeNs' @:: Lens' HTLCAttempt Data.Int.Int64@+ * 'Proto.Lnrpc.Ln1_Fields.failure' @:: Lens' HTLCAttempt Failure@+ * 'Proto.Lnrpc.Ln1_Fields.maybe'failure' @:: Lens' HTLCAttempt (Prelude.Maybe Failure)@+ * 'Proto.Lnrpc.Ln1_Fields.preimage' @:: Lens' HTLCAttempt Data.ByteString.ByteString@ -}+data HTLCAttempt+ = HTLCAttempt'_constructor {_HTLCAttempt'attemptId :: !Data.Word.Word64,+ _HTLCAttempt'status :: !HTLCAttempt'HTLCStatus,+ _HTLCAttempt'route :: !(Prelude.Maybe Proto.Lnrpc.Ln0.Route),+ _HTLCAttempt'attemptTimeNs :: !Data.Int.Int64,+ _HTLCAttempt'resolveTimeNs :: !Data.Int.Int64,+ _HTLCAttempt'failure :: !(Prelude.Maybe Failure),+ _HTLCAttempt'preimage :: !Data.ByteString.ByteString,+ _HTLCAttempt'_unknownFields :: !Data.ProtoLens.FieldSet}+ deriving stock (Prelude.Eq, Prelude.Ord, GHC.Generics.Generic)+instance Prelude.Show HTLCAttempt where+ showsPrec _ __x __s+ = Prelude.showChar+ '{'+ (Prelude.showString+ (Data.ProtoLens.showMessageShort __x) (Prelude.showChar '}' __s))+instance Text.PrettyPrint.GenericPretty.Out HTLCAttempt+instance Data.ProtoLens.Field.HasField HTLCAttempt "attemptId" Data.Word.Word64 where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _HTLCAttempt'attemptId+ (\ x__ y__ -> x__ {_HTLCAttempt'attemptId = y__}))+ Prelude.id+instance Data.ProtoLens.Field.HasField HTLCAttempt "status" HTLCAttempt'HTLCStatus where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _HTLCAttempt'status (\ x__ y__ -> x__ {_HTLCAttempt'status = y__}))+ Prelude.id+instance Data.ProtoLens.Field.HasField HTLCAttempt "route" Proto.Lnrpc.Ln0.Route where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _HTLCAttempt'route (\ x__ y__ -> x__ {_HTLCAttempt'route = y__}))+ (Data.ProtoLens.maybeLens Data.ProtoLens.defMessage)+instance Data.ProtoLens.Field.HasField HTLCAttempt "maybe'route" (Prelude.Maybe Proto.Lnrpc.Ln0.Route) where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _HTLCAttempt'route (\ x__ y__ -> x__ {_HTLCAttempt'route = y__}))+ Prelude.id+instance Data.ProtoLens.Field.HasField HTLCAttempt "attemptTimeNs" Data.Int.Int64 where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _HTLCAttempt'attemptTimeNs+ (\ x__ y__ -> x__ {_HTLCAttempt'attemptTimeNs = y__}))+ Prelude.id+instance Data.ProtoLens.Field.HasField HTLCAttempt "resolveTimeNs" Data.Int.Int64 where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _HTLCAttempt'resolveTimeNs+ (\ x__ y__ -> x__ {_HTLCAttempt'resolveTimeNs = y__}))+ Prelude.id+instance Data.ProtoLens.Field.HasField HTLCAttempt "failure" Failure where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _HTLCAttempt'failure+ (\ x__ y__ -> x__ {_HTLCAttempt'failure = y__}))+ (Data.ProtoLens.maybeLens Data.ProtoLens.defMessage)+instance Data.ProtoLens.Field.HasField HTLCAttempt "maybe'failure" (Prelude.Maybe Failure) where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _HTLCAttempt'failure+ (\ x__ y__ -> x__ {_HTLCAttempt'failure = y__}))+ Prelude.id+instance Data.ProtoLens.Field.HasField HTLCAttempt "preimage" Data.ByteString.ByteString where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _HTLCAttempt'preimage+ (\ x__ y__ -> x__ {_HTLCAttempt'preimage = y__}))+ Prelude.id+instance Data.ProtoLens.Message HTLCAttempt where+ messageName _ = Data.Text.pack "lnrpc.HTLCAttempt"+ packedMessageDescriptor _+ = "\n\+ \\vHTLCAttempt\DC2\GS\n\+ \\n\+ \attempt_id\CAN\a \SOH(\EOTR\tattemptId\DC25\n\+ \\ACKstatus\CAN\SOH \SOH(\SO2\GS.lnrpc.HTLCAttempt.HTLCStatusR\ACKstatus\DC2\"\n\+ \\ENQroute\CAN\STX \SOH(\v2\f.lnrpc.RouteR\ENQroute\DC2&\n\+ \\SIattempt_time_ns\CAN\ETX \SOH(\ETXR\rattemptTimeNs\DC2&\n\+ \\SIresolve_time_ns\CAN\EOT \SOH(\ETXR\rresolveTimeNs\DC2(\n\+ \\afailure\CAN\ENQ \SOH(\v2\SO.lnrpc.FailureR\afailure\DC2\SUB\n\+ \\bpreimage\CAN\ACK \SOH(\fR\bpreimage\"6\n\+ \\n\+ \HTLCStatus\DC2\r\n\+ \\tIN_FLIGHT\DLE\NUL\DC2\r\n\+ \\tSUCCEEDED\DLE\SOH\DC2\n\+ \\n\+ \\ACKFAILED\DLE\STX"+ packedFileDescriptor _ = packedFileDescriptor+ fieldsByTag+ = let+ attemptId__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "attempt_id"+ (Data.ProtoLens.ScalarField Data.ProtoLens.UInt64Field ::+ Data.ProtoLens.FieldTypeDescriptor Data.Word.Word64)+ (Data.ProtoLens.PlainField+ Data.ProtoLens.Optional+ (Data.ProtoLens.Field.field @"attemptId")) ::+ Data.ProtoLens.FieldDescriptor HTLCAttempt+ status__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "status"+ (Data.ProtoLens.ScalarField Data.ProtoLens.EnumField ::+ Data.ProtoLens.FieldTypeDescriptor HTLCAttempt'HTLCStatus)+ (Data.ProtoLens.PlainField+ Data.ProtoLens.Optional (Data.ProtoLens.Field.field @"status")) ::+ Data.ProtoLens.FieldDescriptor HTLCAttempt+ route__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "route"+ (Data.ProtoLens.MessageField Data.ProtoLens.MessageType ::+ Data.ProtoLens.FieldTypeDescriptor Proto.Lnrpc.Ln0.Route)+ (Data.ProtoLens.OptionalField+ (Data.ProtoLens.Field.field @"maybe'route")) ::+ Data.ProtoLens.FieldDescriptor HTLCAttempt+ attemptTimeNs__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "attempt_time_ns"+ (Data.ProtoLens.ScalarField Data.ProtoLens.Int64Field ::+ Data.ProtoLens.FieldTypeDescriptor Data.Int.Int64)+ (Data.ProtoLens.PlainField+ Data.ProtoLens.Optional+ (Data.ProtoLens.Field.field @"attemptTimeNs")) ::+ Data.ProtoLens.FieldDescriptor HTLCAttempt+ resolveTimeNs__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "resolve_time_ns"+ (Data.ProtoLens.ScalarField Data.ProtoLens.Int64Field ::+ Data.ProtoLens.FieldTypeDescriptor Data.Int.Int64)+ (Data.ProtoLens.PlainField+ Data.ProtoLens.Optional+ (Data.ProtoLens.Field.field @"resolveTimeNs")) ::+ Data.ProtoLens.FieldDescriptor HTLCAttempt+ failure__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "failure"+ (Data.ProtoLens.MessageField Data.ProtoLens.MessageType ::+ Data.ProtoLens.FieldTypeDescriptor Failure)+ (Data.ProtoLens.OptionalField+ (Data.ProtoLens.Field.field @"maybe'failure")) ::+ Data.ProtoLens.FieldDescriptor HTLCAttempt+ preimage__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "preimage"+ (Data.ProtoLens.ScalarField Data.ProtoLens.BytesField ::+ Data.ProtoLens.FieldTypeDescriptor Data.ByteString.ByteString)+ (Data.ProtoLens.PlainField+ Data.ProtoLens.Optional+ (Data.ProtoLens.Field.field @"preimage")) ::+ Data.ProtoLens.FieldDescriptor HTLCAttempt+ in+ Data.Map.fromList+ [(Data.ProtoLens.Tag 7, attemptId__field_descriptor),+ (Data.ProtoLens.Tag 1, status__field_descriptor),+ (Data.ProtoLens.Tag 2, route__field_descriptor),+ (Data.ProtoLens.Tag 3, attemptTimeNs__field_descriptor),+ (Data.ProtoLens.Tag 4, resolveTimeNs__field_descriptor),+ (Data.ProtoLens.Tag 5, failure__field_descriptor),+ (Data.ProtoLens.Tag 6, preimage__field_descriptor)]+ unknownFields+ = Lens.Family2.Unchecked.lens+ _HTLCAttempt'_unknownFields+ (\ x__ y__ -> x__ {_HTLCAttempt'_unknownFields = y__})+ defMessage+ = HTLCAttempt'_constructor+ {_HTLCAttempt'attemptId = Data.ProtoLens.fieldDefault,+ _HTLCAttempt'status = Data.ProtoLens.fieldDefault,+ _HTLCAttempt'route = Prelude.Nothing,+ _HTLCAttempt'attemptTimeNs = Data.ProtoLens.fieldDefault,+ _HTLCAttempt'resolveTimeNs = Data.ProtoLens.fieldDefault,+ _HTLCAttempt'failure = Prelude.Nothing,+ _HTLCAttempt'preimage = Data.ProtoLens.fieldDefault,+ _HTLCAttempt'_unknownFields = []}+ parseMessage+ = let+ loop ::+ HTLCAttempt -> Data.ProtoLens.Encoding.Bytes.Parser HTLCAttempt+ loop x+ = do end <- Data.ProtoLens.Encoding.Bytes.atEnd+ if end then+ do (let missing = []+ in+ if Prelude.null missing then+ Prelude.return ()+ else+ Prelude.fail+ ((Prelude.++)+ "Missing required fields: "+ (Prelude.show (missing :: [Prelude.String]))))+ Prelude.return+ (Lens.Family2.over+ Data.ProtoLens.unknownFields (\ !t -> Prelude.reverse t) x)+ else+ do tag <- Data.ProtoLens.Encoding.Bytes.getVarInt+ case tag of+ 56+ -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ Data.ProtoLens.Encoding.Bytes.getVarInt "attempt_id"+ loop+ (Lens.Family2.set (Data.ProtoLens.Field.field @"attemptId") y x)+ 8 -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (Prelude.fmap+ Prelude.toEnum+ (Prelude.fmap+ Prelude.fromIntegral+ Data.ProtoLens.Encoding.Bytes.getVarInt))+ "status"+ loop (Lens.Family2.set (Data.ProtoLens.Field.field @"status") y x)+ 18+ -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (do len <- Data.ProtoLens.Encoding.Bytes.getVarInt+ Data.ProtoLens.Encoding.Bytes.isolate+ (Prelude.fromIntegral len) Data.ProtoLens.parseMessage)+ "route"+ loop (Lens.Family2.set (Data.ProtoLens.Field.field @"route") y x)+ 24+ -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (Prelude.fmap+ Prelude.fromIntegral+ Data.ProtoLens.Encoding.Bytes.getVarInt)+ "attempt_time_ns"+ loop+ (Lens.Family2.set+ (Data.ProtoLens.Field.field @"attemptTimeNs") y x)+ 32+ -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (Prelude.fmap+ Prelude.fromIntegral+ Data.ProtoLens.Encoding.Bytes.getVarInt)+ "resolve_time_ns"+ loop+ (Lens.Family2.set+ (Data.ProtoLens.Field.field @"resolveTimeNs") y x)+ 42+ -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (do len <- Data.ProtoLens.Encoding.Bytes.getVarInt+ Data.ProtoLens.Encoding.Bytes.isolate+ (Prelude.fromIntegral len) Data.ProtoLens.parseMessage)+ "failure"+ loop (Lens.Family2.set (Data.ProtoLens.Field.field @"failure") y x)+ 50+ -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (do len <- Data.ProtoLens.Encoding.Bytes.getVarInt+ Data.ProtoLens.Encoding.Bytes.getBytes+ (Prelude.fromIntegral len))+ "preimage"+ loop+ (Lens.Family2.set (Data.ProtoLens.Field.field @"preimage") y x)+ wire+ -> do !y <- Data.ProtoLens.Encoding.Wire.parseTaggedValueFromWire+ wire+ loop+ (Lens.Family2.over+ Data.ProtoLens.unknownFields (\ !t -> (:) y t) x)+ in+ (Data.ProtoLens.Encoding.Bytes.<?>)+ (do loop Data.ProtoLens.defMessage) "HTLCAttempt"+ buildMessage+ = \ _x+ -> (Data.Monoid.<>)+ (let+ _v = Lens.Family2.view (Data.ProtoLens.Field.field @"attemptId") _x+ in+ if (Prelude.==) _v Data.ProtoLens.fieldDefault then+ Data.Monoid.mempty+ else+ (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 56)+ (Data.ProtoLens.Encoding.Bytes.putVarInt _v))+ ((Data.Monoid.<>)+ (let+ _v = Lens.Family2.view (Data.ProtoLens.Field.field @"status") _x+ in+ if (Prelude.==) _v Data.ProtoLens.fieldDefault then+ Data.Monoid.mempty+ else+ (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 8)+ ((Prelude..)+ ((Prelude..)+ Data.ProtoLens.Encoding.Bytes.putVarInt Prelude.fromIntegral)+ Prelude.fromEnum _v))+ ((Data.Monoid.<>)+ (case+ Lens.Family2.view (Data.ProtoLens.Field.field @"maybe'route") _x+ of+ Prelude.Nothing -> Data.Monoid.mempty+ (Prelude.Just _v)+ -> (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 18)+ ((Prelude..)+ (\ bs+ -> (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt+ (Prelude.fromIntegral (Data.ByteString.length bs)))+ (Data.ProtoLens.Encoding.Bytes.putBytes bs))+ Data.ProtoLens.encodeMessage _v))+ ((Data.Monoid.<>)+ (let+ _v+ = Lens.Family2.view+ (Data.ProtoLens.Field.field @"attemptTimeNs") _x+ in+ if (Prelude.==) _v Data.ProtoLens.fieldDefault then+ Data.Monoid.mempty+ else+ (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 24)+ ((Prelude..)+ Data.ProtoLens.Encoding.Bytes.putVarInt Prelude.fromIntegral _v))+ ((Data.Monoid.<>)+ (let+ _v+ = Lens.Family2.view+ (Data.ProtoLens.Field.field @"resolveTimeNs") _x+ in+ if (Prelude.==) _v Data.ProtoLens.fieldDefault then+ Data.Monoid.mempty+ else+ (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 32)+ ((Prelude..)+ Data.ProtoLens.Encoding.Bytes.putVarInt Prelude.fromIntegral+ _v))+ ((Data.Monoid.<>)+ (case+ Lens.Family2.view (Data.ProtoLens.Field.field @"maybe'failure") _x+ of+ Prelude.Nothing -> Data.Monoid.mempty+ (Prelude.Just _v)+ -> (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 42)+ ((Prelude..)+ (\ bs+ -> (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt+ (Prelude.fromIntegral+ (Data.ByteString.length bs)))+ (Data.ProtoLens.Encoding.Bytes.putBytes bs))+ Data.ProtoLens.encodeMessage _v))+ ((Data.Monoid.<>)+ (let+ _v = Lens.Family2.view (Data.ProtoLens.Field.field @"preimage") _x+ in+ if (Prelude.==) _v Data.ProtoLens.fieldDefault then+ Data.Monoid.mempty+ else+ (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 50)+ ((\ bs+ -> (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt+ (Prelude.fromIntegral+ (Data.ByteString.length bs)))+ (Data.ProtoLens.Encoding.Bytes.putBytes bs))+ _v))+ (Data.ProtoLens.Encoding.Wire.buildFieldSet+ (Lens.Family2.view Data.ProtoLens.unknownFields _x))))))))+instance Control.DeepSeq.NFData HTLCAttempt where+ rnf+ = \ x__+ -> Control.DeepSeq.deepseq+ (_HTLCAttempt'_unknownFields x__)+ (Control.DeepSeq.deepseq+ (_HTLCAttempt'attemptId x__)+ (Control.DeepSeq.deepseq+ (_HTLCAttempt'status x__)+ (Control.DeepSeq.deepseq+ (_HTLCAttempt'route x__)+ (Control.DeepSeq.deepseq+ (_HTLCAttempt'attemptTimeNs x__)+ (Control.DeepSeq.deepseq+ (_HTLCAttempt'resolveTimeNs x__)+ (Control.DeepSeq.deepseq+ (_HTLCAttempt'failure x__)+ (Control.DeepSeq.deepseq (_HTLCAttempt'preimage x__) ())))))))+newtype HTLCAttempt'HTLCStatus'UnrecognizedValue+ = HTLCAttempt'HTLCStatus'UnrecognizedValue Data.Int.Int32+ deriving stock (Prelude.Eq,+ Prelude.Ord,+ Prelude.Show,+ GHC.Generics.Generic)+instance Text.PrettyPrint.GenericPretty.Out HTLCAttempt'HTLCStatus'UnrecognizedValue+data HTLCAttempt'HTLCStatus+ = HTLCAttempt'IN_FLIGHT |+ HTLCAttempt'SUCCEEDED |+ HTLCAttempt'FAILED |+ HTLCAttempt'HTLCStatus'Unrecognized !HTLCAttempt'HTLCStatus'UnrecognizedValue+ deriving stock (Prelude.Show,+ Prelude.Eq,+ Prelude.Ord,+ GHC.Generics.Generic)+instance Data.ProtoLens.MessageEnum HTLCAttempt'HTLCStatus where+ maybeToEnum 0 = Prelude.Just HTLCAttempt'IN_FLIGHT+ maybeToEnum 1 = Prelude.Just HTLCAttempt'SUCCEEDED+ maybeToEnum 2 = Prelude.Just HTLCAttempt'FAILED+ maybeToEnum k+ = Prelude.Just+ (HTLCAttempt'HTLCStatus'Unrecognized+ (HTLCAttempt'HTLCStatus'UnrecognizedValue+ (Prelude.fromIntegral k)))+ showEnum HTLCAttempt'IN_FLIGHT = "IN_FLIGHT"+ showEnum HTLCAttempt'SUCCEEDED = "SUCCEEDED"+ showEnum HTLCAttempt'FAILED = "FAILED"+ showEnum+ (HTLCAttempt'HTLCStatus'Unrecognized (HTLCAttempt'HTLCStatus'UnrecognizedValue k))+ = Prelude.show k+ readEnum k+ | (Prelude.==) k "IN_FLIGHT" = Prelude.Just HTLCAttempt'IN_FLIGHT+ | (Prelude.==) k "SUCCEEDED" = Prelude.Just HTLCAttempt'SUCCEEDED+ | (Prelude.==) k "FAILED" = Prelude.Just HTLCAttempt'FAILED+ | Prelude.otherwise+ = (Prelude.>>=) (Text.Read.readMaybe k) Data.ProtoLens.maybeToEnum+instance Prelude.Bounded HTLCAttempt'HTLCStatus where+ minBound = HTLCAttempt'IN_FLIGHT+ maxBound = HTLCAttempt'FAILED+instance Prelude.Enum HTLCAttempt'HTLCStatus where+ toEnum k__+ = Prelude.maybe+ (Prelude.error+ ((Prelude.++)+ "toEnum: unknown value for enum HTLCStatus: " (Prelude.show k__)))+ Prelude.id (Data.ProtoLens.maybeToEnum k__)+ fromEnum HTLCAttempt'IN_FLIGHT = 0+ fromEnum HTLCAttempt'SUCCEEDED = 1+ fromEnum HTLCAttempt'FAILED = 2+ fromEnum+ (HTLCAttempt'HTLCStatus'Unrecognized (HTLCAttempt'HTLCStatus'UnrecognizedValue k))+ = Prelude.fromIntegral k+ succ HTLCAttempt'FAILED+ = Prelude.error+ "HTLCAttempt'HTLCStatus.succ: bad argument HTLCAttempt'FAILED. This value would be out of bounds."+ succ HTLCAttempt'IN_FLIGHT = HTLCAttempt'SUCCEEDED+ succ HTLCAttempt'SUCCEEDED = HTLCAttempt'FAILED+ succ (HTLCAttempt'HTLCStatus'Unrecognized _)+ = Prelude.error+ "HTLCAttempt'HTLCStatus.succ: bad argument: unrecognized value"+ pred HTLCAttempt'IN_FLIGHT+ = Prelude.error+ "HTLCAttempt'HTLCStatus.pred: bad argument HTLCAttempt'IN_FLIGHT. This value would be out of bounds."+ pred HTLCAttempt'SUCCEEDED = HTLCAttempt'IN_FLIGHT+ pred HTLCAttempt'FAILED = HTLCAttempt'SUCCEEDED+ pred (HTLCAttempt'HTLCStatus'Unrecognized _)+ = Prelude.error+ "HTLCAttempt'HTLCStatus.pred: bad argument: unrecognized value"+ enumFrom = Data.ProtoLens.Message.Enum.messageEnumFrom+ enumFromTo = Data.ProtoLens.Message.Enum.messageEnumFromTo+ enumFromThen = Data.ProtoLens.Message.Enum.messageEnumFromThen+ enumFromThenTo = Data.ProtoLens.Message.Enum.messageEnumFromThenTo+instance Data.ProtoLens.FieldDefault HTLCAttempt'HTLCStatus where+ fieldDefault = HTLCAttempt'IN_FLIGHT+instance Control.DeepSeq.NFData HTLCAttempt'HTLCStatus where+ rnf x__ = Prelude.seq x__ ()+instance Text.PrettyPrint.GenericPretty.Out HTLCAttempt'HTLCStatus+{- | Fields :+ + * 'Proto.Lnrpc.Ln1_Fields.error' @:: Lens' InterceptFeedback Data.Text.Text@+ * 'Proto.Lnrpc.Ln1_Fields.replaceResponse' @:: Lens' InterceptFeedback Prelude.Bool@+ * 'Proto.Lnrpc.Ln1_Fields.replacementSerialized' @:: Lens' InterceptFeedback Data.ByteString.ByteString@ -}+data InterceptFeedback+ = InterceptFeedback'_constructor {_InterceptFeedback'error :: !Data.Text.Text,+ _InterceptFeedback'replaceResponse :: !Prelude.Bool,+ _InterceptFeedback'replacementSerialized :: !Data.ByteString.ByteString,+ _InterceptFeedback'_unknownFields :: !Data.ProtoLens.FieldSet}+ deriving stock (Prelude.Eq, Prelude.Ord, GHC.Generics.Generic)+instance Prelude.Show InterceptFeedback where+ showsPrec _ __x __s+ = Prelude.showChar+ '{'+ (Prelude.showString+ (Data.ProtoLens.showMessageShort __x) (Prelude.showChar '}' __s))+instance Text.PrettyPrint.GenericPretty.Out InterceptFeedback+instance Data.ProtoLens.Field.HasField InterceptFeedback "error" Data.Text.Text where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _InterceptFeedback'error+ (\ x__ y__ -> x__ {_InterceptFeedback'error = y__}))+ Prelude.id+instance Data.ProtoLens.Field.HasField InterceptFeedback "replaceResponse" Prelude.Bool where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _InterceptFeedback'replaceResponse+ (\ x__ y__ -> x__ {_InterceptFeedback'replaceResponse = y__}))+ Prelude.id+instance Data.ProtoLens.Field.HasField InterceptFeedback "replacementSerialized" Data.ByteString.ByteString where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _InterceptFeedback'replacementSerialized+ (\ x__ y__+ -> x__ {_InterceptFeedback'replacementSerialized = y__}))+ Prelude.id+instance Data.ProtoLens.Message InterceptFeedback where+ messageName _ = Data.Text.pack "lnrpc.InterceptFeedback"+ packedMessageDescriptor _+ = "\n\+ \\DC1InterceptFeedback\DC2\DC4\n\+ \\ENQerror\CAN\SOH \SOH(\tR\ENQerror\DC2)\n\+ \\DLEreplace_response\CAN\STX \SOH(\bR\SIreplaceResponse\DC25\n\+ \\SYNreplacement_serialized\CAN\ETX \SOH(\fR\NAKreplacementSerialized"+ packedFileDescriptor _ = packedFileDescriptor+ fieldsByTag+ = let+ error__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "error"+ (Data.ProtoLens.ScalarField Data.ProtoLens.StringField ::+ Data.ProtoLens.FieldTypeDescriptor Data.Text.Text)+ (Data.ProtoLens.PlainField+ Data.ProtoLens.Optional (Data.ProtoLens.Field.field @"error")) ::+ Data.ProtoLens.FieldDescriptor InterceptFeedback+ replaceResponse__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "replace_response"+ (Data.ProtoLens.ScalarField Data.ProtoLens.BoolField ::+ Data.ProtoLens.FieldTypeDescriptor Prelude.Bool)+ (Data.ProtoLens.PlainField+ Data.ProtoLens.Optional+ (Data.ProtoLens.Field.field @"replaceResponse")) ::+ Data.ProtoLens.FieldDescriptor InterceptFeedback+ replacementSerialized__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "replacement_serialized"+ (Data.ProtoLens.ScalarField Data.ProtoLens.BytesField ::+ Data.ProtoLens.FieldTypeDescriptor Data.ByteString.ByteString)+ (Data.ProtoLens.PlainField+ Data.ProtoLens.Optional+ (Data.ProtoLens.Field.field @"replacementSerialized")) ::+ Data.ProtoLens.FieldDescriptor InterceptFeedback+ in+ Data.Map.fromList+ [(Data.ProtoLens.Tag 1, error__field_descriptor),+ (Data.ProtoLens.Tag 2, replaceResponse__field_descriptor),+ (Data.ProtoLens.Tag 3, replacementSerialized__field_descriptor)]+ unknownFields+ = Lens.Family2.Unchecked.lens+ _InterceptFeedback'_unknownFields+ (\ x__ y__ -> x__ {_InterceptFeedback'_unknownFields = y__})+ defMessage+ = InterceptFeedback'_constructor+ {_InterceptFeedback'error = Data.ProtoLens.fieldDefault,+ _InterceptFeedback'replaceResponse = Data.ProtoLens.fieldDefault,+ _InterceptFeedback'replacementSerialized = Data.ProtoLens.fieldDefault,+ _InterceptFeedback'_unknownFields = []}+ parseMessage+ = let+ loop ::+ InterceptFeedback+ -> Data.ProtoLens.Encoding.Bytes.Parser InterceptFeedback+ loop x+ = do end <- Data.ProtoLens.Encoding.Bytes.atEnd+ if end then+ do (let missing = []+ in+ if Prelude.null missing then+ Prelude.return ()+ else+ Prelude.fail+ ((Prelude.++)+ "Missing required fields: "+ (Prelude.show (missing :: [Prelude.String]))))+ Prelude.return+ (Lens.Family2.over+ Data.ProtoLens.unknownFields (\ !t -> Prelude.reverse t) x)+ else+ do tag <- Data.ProtoLens.Encoding.Bytes.getVarInt+ case tag of+ 10+ -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (do value <- do len <- Data.ProtoLens.Encoding.Bytes.getVarInt+ Data.ProtoLens.Encoding.Bytes.getBytes+ (Prelude.fromIntegral len)+ Data.ProtoLens.Encoding.Bytes.runEither+ (case Data.Text.Encoding.decodeUtf8' value of+ (Prelude.Left err)+ -> Prelude.Left (Prelude.show err)+ (Prelude.Right r) -> Prelude.Right r))+ "error"+ loop (Lens.Family2.set (Data.ProtoLens.Field.field @"error") y x)+ 16+ -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (Prelude.fmap+ ((Prelude./=) 0) Data.ProtoLens.Encoding.Bytes.getVarInt)+ "replace_response"+ loop+ (Lens.Family2.set+ (Data.ProtoLens.Field.field @"replaceResponse") y x)+ 26+ -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (do len <- Data.ProtoLens.Encoding.Bytes.getVarInt+ Data.ProtoLens.Encoding.Bytes.getBytes+ (Prelude.fromIntegral len))+ "replacement_serialized"+ loop+ (Lens.Family2.set+ (Data.ProtoLens.Field.field @"replacementSerialized") y x)+ wire+ -> do !y <- Data.ProtoLens.Encoding.Wire.parseTaggedValueFromWire+ wire+ loop+ (Lens.Family2.over+ Data.ProtoLens.unknownFields (\ !t -> (:) y t) x)+ in+ (Data.ProtoLens.Encoding.Bytes.<?>)+ (do loop Data.ProtoLens.defMessage) "InterceptFeedback"+ buildMessage+ = \ _x+ -> (Data.Monoid.<>)+ (let+ _v = Lens.Family2.view (Data.ProtoLens.Field.field @"error") _x+ in+ if (Prelude.==) _v Data.ProtoLens.fieldDefault then+ Data.Monoid.mempty+ else+ (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 10)+ ((Prelude..)+ (\ bs+ -> (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt+ (Prelude.fromIntegral (Data.ByteString.length bs)))+ (Data.ProtoLens.Encoding.Bytes.putBytes bs))+ Data.Text.Encoding.encodeUtf8 _v))+ ((Data.Monoid.<>)+ (let+ _v+ = Lens.Family2.view+ (Data.ProtoLens.Field.field @"replaceResponse") _x+ in+ if (Prelude.==) _v Data.ProtoLens.fieldDefault then+ Data.Monoid.mempty+ else+ (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 16)+ ((Prelude..)+ Data.ProtoLens.Encoding.Bytes.putVarInt (\ b -> if b then 1 else 0)+ _v))+ ((Data.Monoid.<>)+ (let+ _v+ = Lens.Family2.view+ (Data.ProtoLens.Field.field @"replacementSerialized") _x+ in+ if (Prelude.==) _v Data.ProtoLens.fieldDefault then+ Data.Monoid.mempty+ else+ (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 26)+ ((\ bs+ -> (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt+ (Prelude.fromIntegral (Data.ByteString.length bs)))+ (Data.ProtoLens.Encoding.Bytes.putBytes bs))+ _v))+ (Data.ProtoLens.Encoding.Wire.buildFieldSet+ (Lens.Family2.view Data.ProtoLens.unknownFields _x))))+instance Control.DeepSeq.NFData InterceptFeedback where+ rnf+ = \ x__+ -> Control.DeepSeq.deepseq+ (_InterceptFeedback'_unknownFields x__)+ (Control.DeepSeq.deepseq+ (_InterceptFeedback'error x__)+ (Control.DeepSeq.deepseq+ (_InterceptFeedback'replaceResponse x__)+ (Control.DeepSeq.deepseq+ (_InterceptFeedback'replacementSerialized x__) ())))+{- | Fields :+ + * 'Proto.Lnrpc.Ln1_Fields.memo' @:: Lens' Invoice Data.Text.Text@+ * 'Proto.Lnrpc.Ln1_Fields.rPreimage' @:: Lens' Invoice Data.ByteString.ByteString@+ * 'Proto.Lnrpc.Ln1_Fields.rHash' @:: Lens' Invoice Data.ByteString.ByteString@+ * 'Proto.Lnrpc.Ln1_Fields.value' @:: Lens' Invoice Data.Int.Int64@+ * 'Proto.Lnrpc.Ln1_Fields.valueMsat' @:: Lens' Invoice Data.Int.Int64@+ * 'Proto.Lnrpc.Ln1_Fields.settled' @:: Lens' Invoice Prelude.Bool@+ * 'Proto.Lnrpc.Ln1_Fields.creationDate' @:: Lens' Invoice Data.Int.Int64@+ * 'Proto.Lnrpc.Ln1_Fields.settleDate' @:: Lens' Invoice Data.Int.Int64@+ * 'Proto.Lnrpc.Ln1_Fields.paymentRequest' @:: Lens' Invoice Data.Text.Text@+ * 'Proto.Lnrpc.Ln1_Fields.descriptionHash' @:: Lens' Invoice Data.ByteString.ByteString@+ * 'Proto.Lnrpc.Ln1_Fields.expiry' @:: Lens' Invoice Data.Int.Int64@+ * 'Proto.Lnrpc.Ln1_Fields.fallbackAddr' @:: Lens' Invoice Data.Text.Text@+ * 'Proto.Lnrpc.Ln1_Fields.cltvExpiry' @:: Lens' Invoice Data.Word.Word64@+ * 'Proto.Lnrpc.Ln1_Fields.routeHints' @:: Lens' Invoice [Proto.Lnrpc.Ln0.RouteHint]@+ * 'Proto.Lnrpc.Ln1_Fields.vec'routeHints' @:: Lens' Invoice (Data.Vector.Vector Proto.Lnrpc.Ln0.RouteHint)@+ * 'Proto.Lnrpc.Ln1_Fields.private' @:: Lens' Invoice Prelude.Bool@+ * 'Proto.Lnrpc.Ln1_Fields.addIndex' @:: Lens' Invoice Data.Word.Word64@+ * 'Proto.Lnrpc.Ln1_Fields.settleIndex' @:: Lens' Invoice Data.Word.Word64@+ * 'Proto.Lnrpc.Ln1_Fields.amtPaid' @:: Lens' Invoice Data.Int.Int64@+ * 'Proto.Lnrpc.Ln1_Fields.amtPaidSat' @:: Lens' Invoice Data.Int.Int64@+ * 'Proto.Lnrpc.Ln1_Fields.amtPaidMsat' @:: Lens' Invoice Data.Int.Int64@+ * 'Proto.Lnrpc.Ln1_Fields.state' @:: Lens' Invoice Invoice'InvoiceState@+ * 'Proto.Lnrpc.Ln1_Fields.htlcs' @:: Lens' Invoice [InvoiceHTLC]@+ * 'Proto.Lnrpc.Ln1_Fields.vec'htlcs' @:: Lens' Invoice (Data.Vector.Vector InvoiceHTLC)@+ * 'Proto.Lnrpc.Ln1_Fields.features' @:: Lens' Invoice (Data.Map.Map Data.Word.Word32 Proto.Lnrpc.Ln0.Feature)@+ * 'Proto.Lnrpc.Ln1_Fields.isKeysend' @:: Lens' Invoice Prelude.Bool@+ * 'Proto.Lnrpc.Ln1_Fields.paymentAddr' @:: Lens' Invoice Data.ByteString.ByteString@+ * 'Proto.Lnrpc.Ln1_Fields.isAmp' @:: Lens' Invoice Prelude.Bool@+ * 'Proto.Lnrpc.Ln1_Fields.ampInvoiceState' @:: Lens' Invoice (Data.Map.Map Data.Text.Text AMPInvoiceState)@ -}+data Invoice+ = Invoice'_constructor {_Invoice'memo :: !Data.Text.Text,+ _Invoice'rPreimage :: !Data.ByteString.ByteString,+ _Invoice'rHash :: !Data.ByteString.ByteString,+ _Invoice'value :: !Data.Int.Int64,+ _Invoice'valueMsat :: !Data.Int.Int64,+ _Invoice'settled :: !Prelude.Bool,+ _Invoice'creationDate :: !Data.Int.Int64,+ _Invoice'settleDate :: !Data.Int.Int64,+ _Invoice'paymentRequest :: !Data.Text.Text,+ _Invoice'descriptionHash :: !Data.ByteString.ByteString,+ _Invoice'expiry :: !Data.Int.Int64,+ _Invoice'fallbackAddr :: !Data.Text.Text,+ _Invoice'cltvExpiry :: !Data.Word.Word64,+ _Invoice'routeHints :: !(Data.Vector.Vector Proto.Lnrpc.Ln0.RouteHint),+ _Invoice'private :: !Prelude.Bool,+ _Invoice'addIndex :: !Data.Word.Word64,+ _Invoice'settleIndex :: !Data.Word.Word64,+ _Invoice'amtPaid :: !Data.Int.Int64,+ _Invoice'amtPaidSat :: !Data.Int.Int64,+ _Invoice'amtPaidMsat :: !Data.Int.Int64,+ _Invoice'state :: !Invoice'InvoiceState,+ _Invoice'htlcs :: !(Data.Vector.Vector InvoiceHTLC),+ _Invoice'features :: !(Data.Map.Map Data.Word.Word32 Proto.Lnrpc.Ln0.Feature),+ _Invoice'isKeysend :: !Prelude.Bool,+ _Invoice'paymentAddr :: !Data.ByteString.ByteString,+ _Invoice'isAmp :: !Prelude.Bool,+ _Invoice'ampInvoiceState :: !(Data.Map.Map Data.Text.Text AMPInvoiceState),+ _Invoice'_unknownFields :: !Data.ProtoLens.FieldSet}+ deriving stock (Prelude.Eq, Prelude.Ord, GHC.Generics.Generic)+instance Prelude.Show Invoice where+ showsPrec _ __x __s+ = Prelude.showChar+ '{'+ (Prelude.showString+ (Data.ProtoLens.showMessageShort __x) (Prelude.showChar '}' __s))+instance Text.PrettyPrint.GenericPretty.Out Invoice+instance Data.ProtoLens.Field.HasField Invoice "memo" Data.Text.Text where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _Invoice'memo (\ x__ y__ -> x__ {_Invoice'memo = y__}))+ Prelude.id+instance Data.ProtoLens.Field.HasField Invoice "rPreimage" Data.ByteString.ByteString where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _Invoice'rPreimage (\ x__ y__ -> x__ {_Invoice'rPreimage = y__}))+ Prelude.id+instance Data.ProtoLens.Field.HasField Invoice "rHash" Data.ByteString.ByteString where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _Invoice'rHash (\ x__ y__ -> x__ {_Invoice'rHash = y__}))+ Prelude.id+instance Data.ProtoLens.Field.HasField Invoice "value" Data.Int.Int64 where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _Invoice'value (\ x__ y__ -> x__ {_Invoice'value = y__}))+ Prelude.id+instance Data.ProtoLens.Field.HasField Invoice "valueMsat" Data.Int.Int64 where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _Invoice'valueMsat (\ x__ y__ -> x__ {_Invoice'valueMsat = y__}))+ Prelude.id+instance Data.ProtoLens.Field.HasField Invoice "settled" Prelude.Bool where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _Invoice'settled (\ x__ y__ -> x__ {_Invoice'settled = y__}))+ Prelude.id+instance Data.ProtoLens.Field.HasField Invoice "creationDate" Data.Int.Int64 where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _Invoice'creationDate+ (\ x__ y__ -> x__ {_Invoice'creationDate = y__}))+ Prelude.id+instance Data.ProtoLens.Field.HasField Invoice "settleDate" Data.Int.Int64 where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _Invoice'settleDate (\ x__ y__ -> x__ {_Invoice'settleDate = y__}))+ Prelude.id+instance Data.ProtoLens.Field.HasField Invoice "paymentRequest" Data.Text.Text where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _Invoice'paymentRequest+ (\ x__ y__ -> x__ {_Invoice'paymentRequest = y__}))+ Prelude.id+instance Data.ProtoLens.Field.HasField Invoice "descriptionHash" Data.ByteString.ByteString where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _Invoice'descriptionHash+ (\ x__ y__ -> x__ {_Invoice'descriptionHash = y__}))+ Prelude.id+instance Data.ProtoLens.Field.HasField Invoice "expiry" Data.Int.Int64 where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _Invoice'expiry (\ x__ y__ -> x__ {_Invoice'expiry = y__}))+ Prelude.id+instance Data.ProtoLens.Field.HasField Invoice "fallbackAddr" Data.Text.Text where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _Invoice'fallbackAddr+ (\ x__ y__ -> x__ {_Invoice'fallbackAddr = y__}))+ Prelude.id+instance Data.ProtoLens.Field.HasField Invoice "cltvExpiry" Data.Word.Word64 where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _Invoice'cltvExpiry (\ x__ y__ -> x__ {_Invoice'cltvExpiry = y__}))+ Prelude.id+instance Data.ProtoLens.Field.HasField Invoice "routeHints" [Proto.Lnrpc.Ln0.RouteHint] where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _Invoice'routeHints (\ x__ y__ -> x__ {_Invoice'routeHints = y__}))+ (Lens.Family2.Unchecked.lens+ Data.Vector.Generic.toList+ (\ _ y__ -> Data.Vector.Generic.fromList y__))+instance Data.ProtoLens.Field.HasField Invoice "vec'routeHints" (Data.Vector.Vector Proto.Lnrpc.Ln0.RouteHint) where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _Invoice'routeHints (\ x__ y__ -> x__ {_Invoice'routeHints = y__}))+ Prelude.id+instance Data.ProtoLens.Field.HasField Invoice "private" Prelude.Bool where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _Invoice'private (\ x__ y__ -> x__ {_Invoice'private = y__}))+ Prelude.id+instance Data.ProtoLens.Field.HasField Invoice "addIndex" Data.Word.Word64 where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _Invoice'addIndex (\ x__ y__ -> x__ {_Invoice'addIndex = y__}))+ Prelude.id+instance Data.ProtoLens.Field.HasField Invoice "settleIndex" Data.Word.Word64 where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _Invoice'settleIndex+ (\ x__ y__ -> x__ {_Invoice'settleIndex = y__}))+ Prelude.id+instance Data.ProtoLens.Field.HasField Invoice "amtPaid" Data.Int.Int64 where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _Invoice'amtPaid (\ x__ y__ -> x__ {_Invoice'amtPaid = y__}))+ Prelude.id+instance Data.ProtoLens.Field.HasField Invoice "amtPaidSat" Data.Int.Int64 where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _Invoice'amtPaidSat (\ x__ y__ -> x__ {_Invoice'amtPaidSat = y__}))+ Prelude.id+instance Data.ProtoLens.Field.HasField Invoice "amtPaidMsat" Data.Int.Int64 where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _Invoice'amtPaidMsat+ (\ x__ y__ -> x__ {_Invoice'amtPaidMsat = y__}))+ Prelude.id+instance Data.ProtoLens.Field.HasField Invoice "state" Invoice'InvoiceState where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _Invoice'state (\ x__ y__ -> x__ {_Invoice'state = y__}))+ Prelude.id+instance Data.ProtoLens.Field.HasField Invoice "htlcs" [InvoiceHTLC] where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _Invoice'htlcs (\ x__ y__ -> x__ {_Invoice'htlcs = y__}))+ (Lens.Family2.Unchecked.lens+ Data.Vector.Generic.toList+ (\ _ y__ -> Data.Vector.Generic.fromList y__))+instance Data.ProtoLens.Field.HasField Invoice "vec'htlcs" (Data.Vector.Vector InvoiceHTLC) where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _Invoice'htlcs (\ x__ y__ -> x__ {_Invoice'htlcs = y__}))+ Prelude.id+instance Data.ProtoLens.Field.HasField Invoice "features" (Data.Map.Map Data.Word.Word32 Proto.Lnrpc.Ln0.Feature) where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _Invoice'features (\ x__ y__ -> x__ {_Invoice'features = y__}))+ Prelude.id+instance Data.ProtoLens.Field.HasField Invoice "isKeysend" Prelude.Bool where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _Invoice'isKeysend (\ x__ y__ -> x__ {_Invoice'isKeysend = y__}))+ Prelude.id+instance Data.ProtoLens.Field.HasField Invoice "paymentAddr" Data.ByteString.ByteString where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _Invoice'paymentAddr+ (\ x__ y__ -> x__ {_Invoice'paymentAddr = y__}))+ Prelude.id+instance Data.ProtoLens.Field.HasField Invoice "isAmp" Prelude.Bool where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _Invoice'isAmp (\ x__ y__ -> x__ {_Invoice'isAmp = y__}))+ Prelude.id+instance Data.ProtoLens.Field.HasField Invoice "ampInvoiceState" (Data.Map.Map Data.Text.Text AMPInvoiceState) where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _Invoice'ampInvoiceState+ (\ x__ y__ -> x__ {_Invoice'ampInvoiceState = y__}))+ Prelude.id+instance Data.ProtoLens.Message Invoice where+ messageName _ = Data.Text.pack "lnrpc.Invoice"+ packedMessageDescriptor _+ = "\n\+ \\aInvoice\DC2\DC2\n\+ \\EOTmemo\CAN\SOH \SOH(\tR\EOTmemo\DC2\GS\n\+ \\n\+ \r_preimage\CAN\ETX \SOH(\fR\trPreimage\DC2\NAK\n\+ \\ACKr_hash\CAN\EOT \SOH(\fR\ENQrHash\DC2\DC4\n\+ \\ENQvalue\CAN\ENQ \SOH(\ETXR\ENQvalue\DC2\GS\n\+ \\n\+ \value_msat\CAN\ETB \SOH(\ETXR\tvalueMsat\DC2\FS\n\+ \\asettled\CAN\ACK \SOH(\bR\asettledB\STX\CAN\SOH\DC2#\n\+ \\rcreation_date\CAN\a \SOH(\ETXR\fcreationDate\DC2\US\n\+ \\vsettle_date\CAN\b \SOH(\ETXR\n\+ \settleDate\DC2'\n\+ \\SIpayment_request\CAN\t \SOH(\tR\SOpaymentRequest\DC2)\n\+ \\DLEdescription_hash\CAN\n\+ \ \SOH(\fR\SIdescriptionHash\DC2\SYN\n\+ \\ACKexpiry\CAN\v \SOH(\ETXR\ACKexpiry\DC2#\n\+ \\rfallback_addr\CAN\f \SOH(\tR\ffallbackAddr\DC2\US\n\+ \\vcltv_expiry\CAN\r \SOH(\EOTR\n\+ \cltvExpiry\DC21\n\+ \\vroute_hints\CAN\SO \ETX(\v2\DLE.lnrpc.RouteHintR\n\+ \routeHints\DC2\CAN\n\+ \\aprivate\CAN\SI \SOH(\bR\aprivate\DC2\ESC\n\+ \\tadd_index\CAN\DLE \SOH(\EOTR\baddIndex\DC2!\n\+ \\fsettle_index\CAN\DC1 \SOH(\EOTR\vsettleIndex\DC2\GS\n\+ \\bamt_paid\CAN\DC2 \SOH(\ETXR\aamtPaidB\STX\CAN\SOH\DC2 \n\+ \\famt_paid_sat\CAN\DC3 \SOH(\ETXR\n\+ \amtPaidSat\DC2\"\n\+ \\ramt_paid_msat\CAN\DC4 \SOH(\ETXR\vamtPaidMsat\DC21\n\+ \\ENQstate\CAN\NAK \SOH(\SO2\ESC.lnrpc.Invoice.InvoiceStateR\ENQstate\DC2(\n\+ \\ENQhtlcs\CAN\SYN \ETX(\v2\DC2.lnrpc.InvoiceHTLCR\ENQhtlcs\DC28\n\+ \\bfeatures\CAN\CAN \ETX(\v2\FS.lnrpc.Invoice.FeaturesEntryR\bfeatures\DC2\GS\n\+ \\n\+ \is_keysend\CAN\EM \SOH(\bR\tisKeysend\DC2!\n\+ \\fpayment_addr\CAN\SUB \SOH(\fR\vpaymentAddr\DC2\NAK\n\+ \\ACKis_amp\CAN\ESC \SOH(\bR\ENQisAmp\DC2O\n\+ \\DC1amp_invoice_state\CAN\FS \ETX(\v2#.lnrpc.Invoice.AmpInvoiceStateEntryR\SIampInvoiceState\SUBK\n\+ \\rFeaturesEntry\DC2\DLE\n\+ \\ETXkey\CAN\SOH \SOH(\rR\ETXkey\DC2$\n\+ \\ENQvalue\CAN\STX \SOH(\v2\SO.lnrpc.FeatureR\ENQvalue:\STX8\SOH\SUBZ\n\+ \\DC4AmpInvoiceStateEntry\DC2\DLE\n\+ \\ETXkey\CAN\SOH \SOH(\tR\ETXkey\DC2,\n\+ \\ENQvalue\CAN\STX \SOH(\v2\SYN.lnrpc.AMPInvoiceStateR\ENQvalue:\STX8\SOH\"A\n\+ \\fInvoiceState\DC2\b\n\+ \\EOTOPEN\DLE\NUL\DC2\v\n\+ \\aSETTLED\DLE\SOH\DC2\f\n\+ \\bCANCELED\DLE\STX\DC2\f\n\+ \\bACCEPTED\DLE\ETXJ\EOT\b\STX\DLE\ETX"+ packedFileDescriptor _ = packedFileDescriptor+ fieldsByTag+ = let+ memo__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "memo"+ (Data.ProtoLens.ScalarField Data.ProtoLens.StringField ::+ Data.ProtoLens.FieldTypeDescriptor Data.Text.Text)+ (Data.ProtoLens.PlainField+ Data.ProtoLens.Optional (Data.ProtoLens.Field.field @"memo")) ::+ Data.ProtoLens.FieldDescriptor Invoice+ rPreimage__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "r_preimage"+ (Data.ProtoLens.ScalarField Data.ProtoLens.BytesField ::+ Data.ProtoLens.FieldTypeDescriptor Data.ByteString.ByteString)+ (Data.ProtoLens.PlainField+ Data.ProtoLens.Optional+ (Data.ProtoLens.Field.field @"rPreimage")) ::+ Data.ProtoLens.FieldDescriptor Invoice+ rHash__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "r_hash"+ (Data.ProtoLens.ScalarField Data.ProtoLens.BytesField ::+ Data.ProtoLens.FieldTypeDescriptor Data.ByteString.ByteString)+ (Data.ProtoLens.PlainField+ Data.ProtoLens.Optional (Data.ProtoLens.Field.field @"rHash")) ::+ Data.ProtoLens.FieldDescriptor Invoice+ value__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "value"+ (Data.ProtoLens.ScalarField Data.ProtoLens.Int64Field ::+ Data.ProtoLens.FieldTypeDescriptor Data.Int.Int64)+ (Data.ProtoLens.PlainField+ Data.ProtoLens.Optional (Data.ProtoLens.Field.field @"value")) ::+ Data.ProtoLens.FieldDescriptor Invoice+ valueMsat__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "value_msat"+ (Data.ProtoLens.ScalarField Data.ProtoLens.Int64Field ::+ Data.ProtoLens.FieldTypeDescriptor Data.Int.Int64)+ (Data.ProtoLens.PlainField+ Data.ProtoLens.Optional+ (Data.ProtoLens.Field.field @"valueMsat")) ::+ Data.ProtoLens.FieldDescriptor Invoice+ settled__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "settled"+ (Data.ProtoLens.ScalarField Data.ProtoLens.BoolField ::+ Data.ProtoLens.FieldTypeDescriptor Prelude.Bool)+ (Data.ProtoLens.PlainField+ Data.ProtoLens.Optional (Data.ProtoLens.Field.field @"settled")) ::+ Data.ProtoLens.FieldDescriptor Invoice+ creationDate__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "creation_date"+ (Data.ProtoLens.ScalarField Data.ProtoLens.Int64Field ::+ Data.ProtoLens.FieldTypeDescriptor Data.Int.Int64)+ (Data.ProtoLens.PlainField+ Data.ProtoLens.Optional+ (Data.ProtoLens.Field.field @"creationDate")) ::+ Data.ProtoLens.FieldDescriptor Invoice+ settleDate__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "settle_date"+ (Data.ProtoLens.ScalarField Data.ProtoLens.Int64Field ::+ Data.ProtoLens.FieldTypeDescriptor Data.Int.Int64)+ (Data.ProtoLens.PlainField+ Data.ProtoLens.Optional+ (Data.ProtoLens.Field.field @"settleDate")) ::+ Data.ProtoLens.FieldDescriptor Invoice+ paymentRequest__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "payment_request"+ (Data.ProtoLens.ScalarField Data.ProtoLens.StringField ::+ Data.ProtoLens.FieldTypeDescriptor Data.Text.Text)+ (Data.ProtoLens.PlainField+ Data.ProtoLens.Optional+ (Data.ProtoLens.Field.field @"paymentRequest")) ::+ Data.ProtoLens.FieldDescriptor Invoice+ descriptionHash__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "description_hash"+ (Data.ProtoLens.ScalarField Data.ProtoLens.BytesField ::+ Data.ProtoLens.FieldTypeDescriptor Data.ByteString.ByteString)+ (Data.ProtoLens.PlainField+ Data.ProtoLens.Optional+ (Data.ProtoLens.Field.field @"descriptionHash")) ::+ Data.ProtoLens.FieldDescriptor Invoice+ expiry__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "expiry"+ (Data.ProtoLens.ScalarField Data.ProtoLens.Int64Field ::+ Data.ProtoLens.FieldTypeDescriptor Data.Int.Int64)+ (Data.ProtoLens.PlainField+ Data.ProtoLens.Optional (Data.ProtoLens.Field.field @"expiry")) ::+ Data.ProtoLens.FieldDescriptor Invoice+ fallbackAddr__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "fallback_addr"+ (Data.ProtoLens.ScalarField Data.ProtoLens.StringField ::+ Data.ProtoLens.FieldTypeDescriptor Data.Text.Text)+ (Data.ProtoLens.PlainField+ Data.ProtoLens.Optional+ (Data.ProtoLens.Field.field @"fallbackAddr")) ::+ Data.ProtoLens.FieldDescriptor Invoice+ cltvExpiry__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "cltv_expiry"+ (Data.ProtoLens.ScalarField Data.ProtoLens.UInt64Field ::+ Data.ProtoLens.FieldTypeDescriptor Data.Word.Word64)+ (Data.ProtoLens.PlainField+ Data.ProtoLens.Optional+ (Data.ProtoLens.Field.field @"cltvExpiry")) ::+ Data.ProtoLens.FieldDescriptor Invoice+ routeHints__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "route_hints"+ (Data.ProtoLens.MessageField Data.ProtoLens.MessageType ::+ Data.ProtoLens.FieldTypeDescriptor Proto.Lnrpc.Ln0.RouteHint)+ (Data.ProtoLens.RepeatedField+ Data.ProtoLens.Unpacked+ (Data.ProtoLens.Field.field @"routeHints")) ::+ Data.ProtoLens.FieldDescriptor Invoice+ private__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "private"+ (Data.ProtoLens.ScalarField Data.ProtoLens.BoolField ::+ Data.ProtoLens.FieldTypeDescriptor Prelude.Bool)+ (Data.ProtoLens.PlainField+ Data.ProtoLens.Optional (Data.ProtoLens.Field.field @"private")) ::+ Data.ProtoLens.FieldDescriptor Invoice+ addIndex__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "add_index"+ (Data.ProtoLens.ScalarField Data.ProtoLens.UInt64Field ::+ Data.ProtoLens.FieldTypeDescriptor Data.Word.Word64)+ (Data.ProtoLens.PlainField+ Data.ProtoLens.Optional+ (Data.ProtoLens.Field.field @"addIndex")) ::+ Data.ProtoLens.FieldDescriptor Invoice+ settleIndex__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "settle_index"+ (Data.ProtoLens.ScalarField Data.ProtoLens.UInt64Field ::+ Data.ProtoLens.FieldTypeDescriptor Data.Word.Word64)+ (Data.ProtoLens.PlainField+ Data.ProtoLens.Optional+ (Data.ProtoLens.Field.field @"settleIndex")) ::+ Data.ProtoLens.FieldDescriptor Invoice+ amtPaid__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "amt_paid"+ (Data.ProtoLens.ScalarField Data.ProtoLens.Int64Field ::+ Data.ProtoLens.FieldTypeDescriptor Data.Int.Int64)+ (Data.ProtoLens.PlainField+ Data.ProtoLens.Optional (Data.ProtoLens.Field.field @"amtPaid")) ::+ Data.ProtoLens.FieldDescriptor Invoice+ amtPaidSat__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "amt_paid_sat"+ (Data.ProtoLens.ScalarField Data.ProtoLens.Int64Field ::+ Data.ProtoLens.FieldTypeDescriptor Data.Int.Int64)+ (Data.ProtoLens.PlainField+ Data.ProtoLens.Optional+ (Data.ProtoLens.Field.field @"amtPaidSat")) ::+ Data.ProtoLens.FieldDescriptor Invoice+ amtPaidMsat__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "amt_paid_msat"+ (Data.ProtoLens.ScalarField Data.ProtoLens.Int64Field ::+ Data.ProtoLens.FieldTypeDescriptor Data.Int.Int64)+ (Data.ProtoLens.PlainField+ Data.ProtoLens.Optional+ (Data.ProtoLens.Field.field @"amtPaidMsat")) ::+ Data.ProtoLens.FieldDescriptor Invoice+ state__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "state"+ (Data.ProtoLens.ScalarField Data.ProtoLens.EnumField ::+ Data.ProtoLens.FieldTypeDescriptor Invoice'InvoiceState)+ (Data.ProtoLens.PlainField+ Data.ProtoLens.Optional (Data.ProtoLens.Field.field @"state")) ::+ Data.ProtoLens.FieldDescriptor Invoice+ htlcs__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "htlcs"+ (Data.ProtoLens.MessageField Data.ProtoLens.MessageType ::+ Data.ProtoLens.FieldTypeDescriptor InvoiceHTLC)+ (Data.ProtoLens.RepeatedField+ Data.ProtoLens.Unpacked (Data.ProtoLens.Field.field @"htlcs")) ::+ Data.ProtoLens.FieldDescriptor Invoice+ features__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "features"+ (Data.ProtoLens.MessageField Data.ProtoLens.MessageType ::+ Data.ProtoLens.FieldTypeDescriptor Invoice'FeaturesEntry)+ (Data.ProtoLens.MapField+ (Data.ProtoLens.Field.field @"key")+ (Data.ProtoLens.Field.field @"value")+ (Data.ProtoLens.Field.field @"features")) ::+ Data.ProtoLens.FieldDescriptor Invoice+ isKeysend__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "is_keysend"+ (Data.ProtoLens.ScalarField Data.ProtoLens.BoolField ::+ Data.ProtoLens.FieldTypeDescriptor Prelude.Bool)+ (Data.ProtoLens.PlainField+ Data.ProtoLens.Optional+ (Data.ProtoLens.Field.field @"isKeysend")) ::+ Data.ProtoLens.FieldDescriptor Invoice+ paymentAddr__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "payment_addr"+ (Data.ProtoLens.ScalarField Data.ProtoLens.BytesField ::+ Data.ProtoLens.FieldTypeDescriptor Data.ByteString.ByteString)+ (Data.ProtoLens.PlainField+ Data.ProtoLens.Optional+ (Data.ProtoLens.Field.field @"paymentAddr")) ::+ Data.ProtoLens.FieldDescriptor Invoice+ isAmp__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "is_amp"+ (Data.ProtoLens.ScalarField Data.ProtoLens.BoolField ::+ Data.ProtoLens.FieldTypeDescriptor Prelude.Bool)+ (Data.ProtoLens.PlainField+ Data.ProtoLens.Optional (Data.ProtoLens.Field.field @"isAmp")) ::+ Data.ProtoLens.FieldDescriptor Invoice+ ampInvoiceState__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "amp_invoice_state"+ (Data.ProtoLens.MessageField Data.ProtoLens.MessageType ::+ Data.ProtoLens.FieldTypeDescriptor Invoice'AmpInvoiceStateEntry)+ (Data.ProtoLens.MapField+ (Data.ProtoLens.Field.field @"key")+ (Data.ProtoLens.Field.field @"value")+ (Data.ProtoLens.Field.field @"ampInvoiceState")) ::+ Data.ProtoLens.FieldDescriptor Invoice+ in+ Data.Map.fromList+ [(Data.ProtoLens.Tag 1, memo__field_descriptor),+ (Data.ProtoLens.Tag 3, rPreimage__field_descriptor),+ (Data.ProtoLens.Tag 4, rHash__field_descriptor),+ (Data.ProtoLens.Tag 5, value__field_descriptor),+ (Data.ProtoLens.Tag 23, valueMsat__field_descriptor),+ (Data.ProtoLens.Tag 6, settled__field_descriptor),+ (Data.ProtoLens.Tag 7, creationDate__field_descriptor),+ (Data.ProtoLens.Tag 8, settleDate__field_descriptor),+ (Data.ProtoLens.Tag 9, paymentRequest__field_descriptor),+ (Data.ProtoLens.Tag 10, descriptionHash__field_descriptor),+ (Data.ProtoLens.Tag 11, expiry__field_descriptor),+ (Data.ProtoLens.Tag 12, fallbackAddr__field_descriptor),+ (Data.ProtoLens.Tag 13, cltvExpiry__field_descriptor),+ (Data.ProtoLens.Tag 14, routeHints__field_descriptor),+ (Data.ProtoLens.Tag 15, private__field_descriptor),+ (Data.ProtoLens.Tag 16, addIndex__field_descriptor),+ (Data.ProtoLens.Tag 17, settleIndex__field_descriptor),+ (Data.ProtoLens.Tag 18, amtPaid__field_descriptor),+ (Data.ProtoLens.Tag 19, amtPaidSat__field_descriptor),+ (Data.ProtoLens.Tag 20, amtPaidMsat__field_descriptor),+ (Data.ProtoLens.Tag 21, state__field_descriptor),+ (Data.ProtoLens.Tag 22, htlcs__field_descriptor),+ (Data.ProtoLens.Tag 24, features__field_descriptor),+ (Data.ProtoLens.Tag 25, isKeysend__field_descriptor),+ (Data.ProtoLens.Tag 26, paymentAddr__field_descriptor),+ (Data.ProtoLens.Tag 27, isAmp__field_descriptor),+ (Data.ProtoLens.Tag 28, ampInvoiceState__field_descriptor)]+ unknownFields+ = Lens.Family2.Unchecked.lens+ _Invoice'_unknownFields+ (\ x__ y__ -> x__ {_Invoice'_unknownFields = y__})+ defMessage+ = Invoice'_constructor+ {_Invoice'memo = Data.ProtoLens.fieldDefault,+ _Invoice'rPreimage = Data.ProtoLens.fieldDefault,+ _Invoice'rHash = Data.ProtoLens.fieldDefault,+ _Invoice'value = Data.ProtoLens.fieldDefault,+ _Invoice'valueMsat = Data.ProtoLens.fieldDefault,+ _Invoice'settled = Data.ProtoLens.fieldDefault,+ _Invoice'creationDate = Data.ProtoLens.fieldDefault,+ _Invoice'settleDate = Data.ProtoLens.fieldDefault,+ _Invoice'paymentRequest = Data.ProtoLens.fieldDefault,+ _Invoice'descriptionHash = Data.ProtoLens.fieldDefault,+ _Invoice'expiry = Data.ProtoLens.fieldDefault,+ _Invoice'fallbackAddr = Data.ProtoLens.fieldDefault,+ _Invoice'cltvExpiry = Data.ProtoLens.fieldDefault,+ _Invoice'routeHints = Data.Vector.Generic.empty,+ _Invoice'private = Data.ProtoLens.fieldDefault,+ _Invoice'addIndex = Data.ProtoLens.fieldDefault,+ _Invoice'settleIndex = Data.ProtoLens.fieldDefault,+ _Invoice'amtPaid = Data.ProtoLens.fieldDefault,+ _Invoice'amtPaidSat = Data.ProtoLens.fieldDefault,+ _Invoice'amtPaidMsat = Data.ProtoLens.fieldDefault,+ _Invoice'state = Data.ProtoLens.fieldDefault,+ _Invoice'htlcs = Data.Vector.Generic.empty,+ _Invoice'features = Data.Map.empty,+ _Invoice'isKeysend = Data.ProtoLens.fieldDefault,+ _Invoice'paymentAddr = Data.ProtoLens.fieldDefault,+ _Invoice'isAmp = Data.ProtoLens.fieldDefault,+ _Invoice'ampInvoiceState = Data.Map.empty,+ _Invoice'_unknownFields = []}+ parseMessage+ = let+ loop ::+ Invoice+ -> Data.ProtoLens.Encoding.Growing.Growing Data.Vector.Vector Data.ProtoLens.Encoding.Growing.RealWorld InvoiceHTLC+ -> Data.ProtoLens.Encoding.Growing.Growing Data.Vector.Vector Data.ProtoLens.Encoding.Growing.RealWorld Proto.Lnrpc.Ln0.RouteHint+ -> Data.ProtoLens.Encoding.Bytes.Parser Invoice+ loop x mutable'htlcs mutable'routeHints+ = do end <- Data.ProtoLens.Encoding.Bytes.atEnd+ if end then+ do frozen'htlcs <- Data.ProtoLens.Encoding.Parser.Unsafe.unsafeLiftIO+ (Data.ProtoLens.Encoding.Growing.unsafeFreeze mutable'htlcs)+ frozen'routeHints <- Data.ProtoLens.Encoding.Parser.Unsafe.unsafeLiftIO+ (Data.ProtoLens.Encoding.Growing.unsafeFreeze+ mutable'routeHints)+ (let missing = []+ in+ if Prelude.null missing then+ Prelude.return ()+ else+ Prelude.fail+ ((Prelude.++)+ "Missing required fields: "+ (Prelude.show (missing :: [Prelude.String]))))+ Prelude.return+ (Lens.Family2.over+ Data.ProtoLens.unknownFields (\ !t -> Prelude.reverse t)+ (Lens.Family2.set+ (Data.ProtoLens.Field.field @"vec'htlcs") frozen'htlcs+ (Lens.Family2.set+ (Data.ProtoLens.Field.field @"vec'routeHints") frozen'routeHints+ x)))+ else+ do tag <- Data.ProtoLens.Encoding.Bytes.getVarInt+ case tag of+ 10+ -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (do value <- do len <- Data.ProtoLens.Encoding.Bytes.getVarInt+ Data.ProtoLens.Encoding.Bytes.getBytes+ (Prelude.fromIntegral len)+ Data.ProtoLens.Encoding.Bytes.runEither+ (case Data.Text.Encoding.decodeUtf8' value of+ (Prelude.Left err)+ -> Prelude.Left (Prelude.show err)+ (Prelude.Right r) -> Prelude.Right r))+ "memo"+ loop+ (Lens.Family2.set (Data.ProtoLens.Field.field @"memo") y x)+ mutable'htlcs mutable'routeHints+ 26+ -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (do len <- Data.ProtoLens.Encoding.Bytes.getVarInt+ Data.ProtoLens.Encoding.Bytes.getBytes+ (Prelude.fromIntegral len))+ "r_preimage"+ loop+ (Lens.Family2.set (Data.ProtoLens.Field.field @"rPreimage") y x)+ mutable'htlcs mutable'routeHints+ 34+ -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (do len <- Data.ProtoLens.Encoding.Bytes.getVarInt+ Data.ProtoLens.Encoding.Bytes.getBytes+ (Prelude.fromIntegral len))+ "r_hash"+ loop+ (Lens.Family2.set (Data.ProtoLens.Field.field @"rHash") y x)+ mutable'htlcs mutable'routeHints+ 40+ -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (Prelude.fmap+ Prelude.fromIntegral+ Data.ProtoLens.Encoding.Bytes.getVarInt)+ "value"+ loop+ (Lens.Family2.set (Data.ProtoLens.Field.field @"value") y x)+ mutable'htlcs mutable'routeHints+ 184+ -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (Prelude.fmap+ Prelude.fromIntegral+ Data.ProtoLens.Encoding.Bytes.getVarInt)+ "value_msat"+ loop+ (Lens.Family2.set (Data.ProtoLens.Field.field @"valueMsat") y x)+ mutable'htlcs mutable'routeHints+ 48+ -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (Prelude.fmap+ ((Prelude./=) 0) Data.ProtoLens.Encoding.Bytes.getVarInt)+ "settled"+ loop+ (Lens.Family2.set (Data.ProtoLens.Field.field @"settled") y x)+ mutable'htlcs mutable'routeHints+ 56+ -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (Prelude.fmap+ Prelude.fromIntegral+ Data.ProtoLens.Encoding.Bytes.getVarInt)+ "creation_date"+ loop+ (Lens.Family2.set+ (Data.ProtoLens.Field.field @"creationDate") y x)+ mutable'htlcs mutable'routeHints+ 64+ -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (Prelude.fmap+ Prelude.fromIntegral+ Data.ProtoLens.Encoding.Bytes.getVarInt)+ "settle_date"+ loop+ (Lens.Family2.set (Data.ProtoLens.Field.field @"settleDate") y x)+ mutable'htlcs mutable'routeHints+ 74+ -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (do value <- do len <- Data.ProtoLens.Encoding.Bytes.getVarInt+ Data.ProtoLens.Encoding.Bytes.getBytes+ (Prelude.fromIntegral len)+ Data.ProtoLens.Encoding.Bytes.runEither+ (case Data.Text.Encoding.decodeUtf8' value of+ (Prelude.Left err)+ -> Prelude.Left (Prelude.show err)+ (Prelude.Right r) -> Prelude.Right r))+ "payment_request"+ loop+ (Lens.Family2.set+ (Data.ProtoLens.Field.field @"paymentRequest") y x)+ mutable'htlcs mutable'routeHints+ 82+ -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (do len <- Data.ProtoLens.Encoding.Bytes.getVarInt+ Data.ProtoLens.Encoding.Bytes.getBytes+ (Prelude.fromIntegral len))+ "description_hash"+ loop+ (Lens.Family2.set+ (Data.ProtoLens.Field.field @"descriptionHash") y x)+ mutable'htlcs mutable'routeHints+ 88+ -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (Prelude.fmap+ Prelude.fromIntegral+ Data.ProtoLens.Encoding.Bytes.getVarInt)+ "expiry"+ loop+ (Lens.Family2.set (Data.ProtoLens.Field.field @"expiry") y x)+ mutable'htlcs mutable'routeHints+ 98+ -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (do value <- do len <- Data.ProtoLens.Encoding.Bytes.getVarInt+ Data.ProtoLens.Encoding.Bytes.getBytes+ (Prelude.fromIntegral len)+ Data.ProtoLens.Encoding.Bytes.runEither+ (case Data.Text.Encoding.decodeUtf8' value of+ (Prelude.Left err)+ -> Prelude.Left (Prelude.show err)+ (Prelude.Right r) -> Prelude.Right r))+ "fallback_addr"+ loop+ (Lens.Family2.set+ (Data.ProtoLens.Field.field @"fallbackAddr") y x)+ mutable'htlcs mutable'routeHints+ 104+ -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ Data.ProtoLens.Encoding.Bytes.getVarInt "cltv_expiry"+ loop+ (Lens.Family2.set (Data.ProtoLens.Field.field @"cltvExpiry") y x)+ mutable'htlcs mutable'routeHints+ 114+ -> do !y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (do len <- Data.ProtoLens.Encoding.Bytes.getVarInt+ Data.ProtoLens.Encoding.Bytes.isolate+ (Prelude.fromIntegral len)+ Data.ProtoLens.parseMessage)+ "route_hints"+ v <- Data.ProtoLens.Encoding.Parser.Unsafe.unsafeLiftIO+ (Data.ProtoLens.Encoding.Growing.append mutable'routeHints y)+ loop x mutable'htlcs v+ 120+ -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (Prelude.fmap+ ((Prelude./=) 0) Data.ProtoLens.Encoding.Bytes.getVarInt)+ "private"+ loop+ (Lens.Family2.set (Data.ProtoLens.Field.field @"private") y x)+ mutable'htlcs mutable'routeHints+ 128+ -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ Data.ProtoLens.Encoding.Bytes.getVarInt "add_index"+ loop+ (Lens.Family2.set (Data.ProtoLens.Field.field @"addIndex") y x)+ mutable'htlcs mutable'routeHints+ 136+ -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ Data.ProtoLens.Encoding.Bytes.getVarInt "settle_index"+ loop+ (Lens.Family2.set (Data.ProtoLens.Field.field @"settleIndex") y x)+ mutable'htlcs mutable'routeHints+ 144+ -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (Prelude.fmap+ Prelude.fromIntegral+ Data.ProtoLens.Encoding.Bytes.getVarInt)+ "amt_paid"+ loop+ (Lens.Family2.set (Data.ProtoLens.Field.field @"amtPaid") y x)+ mutable'htlcs mutable'routeHints+ 152+ -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (Prelude.fmap+ Prelude.fromIntegral+ Data.ProtoLens.Encoding.Bytes.getVarInt)+ "amt_paid_sat"+ loop+ (Lens.Family2.set (Data.ProtoLens.Field.field @"amtPaidSat") y x)+ mutable'htlcs mutable'routeHints+ 160+ -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (Prelude.fmap+ Prelude.fromIntegral+ Data.ProtoLens.Encoding.Bytes.getVarInt)+ "amt_paid_msat"+ loop+ (Lens.Family2.set (Data.ProtoLens.Field.field @"amtPaidMsat") y x)+ mutable'htlcs mutable'routeHints+ 168+ -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (Prelude.fmap+ Prelude.toEnum+ (Prelude.fmap+ Prelude.fromIntegral+ Data.ProtoLens.Encoding.Bytes.getVarInt))+ "state"+ loop+ (Lens.Family2.set (Data.ProtoLens.Field.field @"state") y x)+ mutable'htlcs mutable'routeHints+ 178+ -> do !y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (do len <- Data.ProtoLens.Encoding.Bytes.getVarInt+ Data.ProtoLens.Encoding.Bytes.isolate+ (Prelude.fromIntegral len)+ Data.ProtoLens.parseMessage)+ "htlcs"+ v <- Data.ProtoLens.Encoding.Parser.Unsafe.unsafeLiftIO+ (Data.ProtoLens.Encoding.Growing.append mutable'htlcs y)+ loop x v mutable'routeHints+ 194+ -> do !(entry :: Invoice'FeaturesEntry) <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (do len <- Data.ProtoLens.Encoding.Bytes.getVarInt+ Data.ProtoLens.Encoding.Bytes.isolate+ (Prelude.fromIntegral+ len)+ Data.ProtoLens.parseMessage)+ "features"+ (let+ key = Lens.Family2.view (Data.ProtoLens.Field.field @"key") entry+ value+ = Lens.Family2.view (Data.ProtoLens.Field.field @"value") entry+ in+ loop+ (Lens.Family2.over+ (Data.ProtoLens.Field.field @"features")+ (\ !t -> Data.Map.insert key value t) x)+ mutable'htlcs mutable'routeHints)+ 200+ -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (Prelude.fmap+ ((Prelude./=) 0) Data.ProtoLens.Encoding.Bytes.getVarInt)+ "is_keysend"+ loop+ (Lens.Family2.set (Data.ProtoLens.Field.field @"isKeysend") y x)+ mutable'htlcs mutable'routeHints+ 210+ -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (do len <- Data.ProtoLens.Encoding.Bytes.getVarInt+ Data.ProtoLens.Encoding.Bytes.getBytes+ (Prelude.fromIntegral len))+ "payment_addr"+ loop+ (Lens.Family2.set (Data.ProtoLens.Field.field @"paymentAddr") y x)+ mutable'htlcs mutable'routeHints+ 216+ -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (Prelude.fmap+ ((Prelude./=) 0) Data.ProtoLens.Encoding.Bytes.getVarInt)+ "is_amp"+ loop+ (Lens.Family2.set (Data.ProtoLens.Field.field @"isAmp") y x)+ mutable'htlcs mutable'routeHints+ 226+ -> do !(entry :: Invoice'AmpInvoiceStateEntry) <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (do len <- Data.ProtoLens.Encoding.Bytes.getVarInt+ Data.ProtoLens.Encoding.Bytes.isolate+ (Prelude.fromIntegral+ len)+ Data.ProtoLens.parseMessage)+ "amp_invoice_state"+ (let+ key = Lens.Family2.view (Data.ProtoLens.Field.field @"key") entry+ value+ = Lens.Family2.view (Data.ProtoLens.Field.field @"value") entry+ in+ loop+ (Lens.Family2.over+ (Data.ProtoLens.Field.field @"ampInvoiceState")+ (\ !t -> Data.Map.insert key value t) x)+ mutable'htlcs mutable'routeHints)+ wire+ -> do !y <- Data.ProtoLens.Encoding.Wire.parseTaggedValueFromWire+ wire+ loop+ (Lens.Family2.over+ Data.ProtoLens.unknownFields (\ !t -> (:) y t) x)+ mutable'htlcs mutable'routeHints+ in+ (Data.ProtoLens.Encoding.Bytes.<?>)+ (do mutable'htlcs <- Data.ProtoLens.Encoding.Parser.Unsafe.unsafeLiftIO+ Data.ProtoLens.Encoding.Growing.new+ mutable'routeHints <- Data.ProtoLens.Encoding.Parser.Unsafe.unsafeLiftIO+ Data.ProtoLens.Encoding.Growing.new+ loop Data.ProtoLens.defMessage mutable'htlcs mutable'routeHints)+ "Invoice"+ buildMessage+ = \ _x+ -> (Data.Monoid.<>)+ (let _v = Lens.Family2.view (Data.ProtoLens.Field.field @"memo") _x+ in+ if (Prelude.==) _v Data.ProtoLens.fieldDefault then+ Data.Monoid.mempty+ else+ (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 10)+ ((Prelude..)+ (\ bs+ -> (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt+ (Prelude.fromIntegral (Data.ByteString.length bs)))+ (Data.ProtoLens.Encoding.Bytes.putBytes bs))+ Data.Text.Encoding.encodeUtf8 _v))+ ((Data.Monoid.<>)+ (let+ _v = Lens.Family2.view (Data.ProtoLens.Field.field @"rPreimage") _x+ in+ if (Prelude.==) _v Data.ProtoLens.fieldDefault then+ Data.Monoid.mempty+ else+ (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 26)+ ((\ bs+ -> (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt+ (Prelude.fromIntegral (Data.ByteString.length bs)))+ (Data.ProtoLens.Encoding.Bytes.putBytes bs))+ _v))+ ((Data.Monoid.<>)+ (let+ _v = Lens.Family2.view (Data.ProtoLens.Field.field @"rHash") _x+ in+ if (Prelude.==) _v Data.ProtoLens.fieldDefault then+ Data.Monoid.mempty+ else+ (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 34)+ ((\ bs+ -> (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt+ (Prelude.fromIntegral (Data.ByteString.length bs)))+ (Data.ProtoLens.Encoding.Bytes.putBytes bs))+ _v))+ ((Data.Monoid.<>)+ (let+ _v = Lens.Family2.view (Data.ProtoLens.Field.field @"value") _x+ in+ if (Prelude.==) _v Data.ProtoLens.fieldDefault then+ Data.Monoid.mempty+ else+ (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 40)+ ((Prelude..)+ Data.ProtoLens.Encoding.Bytes.putVarInt Prelude.fromIntegral _v))+ ((Data.Monoid.<>)+ (let+ _v = Lens.Family2.view (Data.ProtoLens.Field.field @"valueMsat") _x+ in+ if (Prelude.==) _v Data.ProtoLens.fieldDefault then+ Data.Monoid.mempty+ else+ (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 184)+ ((Prelude..)+ Data.ProtoLens.Encoding.Bytes.putVarInt Prelude.fromIntegral+ _v))+ ((Data.Monoid.<>)+ (let+ _v = Lens.Family2.view (Data.ProtoLens.Field.field @"settled") _x+ in+ if (Prelude.==) _v Data.ProtoLens.fieldDefault then+ Data.Monoid.mempty+ else+ (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 48)+ ((Prelude..)+ Data.ProtoLens.Encoding.Bytes.putVarInt+ (\ b -> if b then 1 else 0) _v))+ ((Data.Monoid.<>)+ (let+ _v+ = Lens.Family2.view+ (Data.ProtoLens.Field.field @"creationDate") _x+ in+ if (Prelude.==) _v Data.ProtoLens.fieldDefault then+ Data.Monoid.mempty+ else+ (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 56)+ ((Prelude..)+ Data.ProtoLens.Encoding.Bytes.putVarInt+ Prelude.fromIntegral _v))+ ((Data.Monoid.<>)+ (let+ _v+ = Lens.Family2.view+ (Data.ProtoLens.Field.field @"settleDate") _x+ in+ if (Prelude.==) _v Data.ProtoLens.fieldDefault then+ Data.Monoid.mempty+ else+ (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 64)+ ((Prelude..)+ Data.ProtoLens.Encoding.Bytes.putVarInt+ Prelude.fromIntegral _v))+ ((Data.Monoid.<>)+ (let+ _v+ = Lens.Family2.view+ (Data.ProtoLens.Field.field @"paymentRequest") _x+ in+ if (Prelude.==) _v Data.ProtoLens.fieldDefault then+ Data.Monoid.mempty+ else+ (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 74)+ ((Prelude..)+ (\ bs+ -> (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt+ (Prelude.fromIntegral+ (Data.ByteString.length bs)))+ (Data.ProtoLens.Encoding.Bytes.putBytes+ bs))+ Data.Text.Encoding.encodeUtf8 _v))+ ((Data.Monoid.<>)+ (let+ _v+ = Lens.Family2.view+ (Data.ProtoLens.Field.field @"descriptionHash") _x+ in+ if (Prelude.==) _v Data.ProtoLens.fieldDefault then+ Data.Monoid.mempty+ else+ (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 82)+ ((\ bs+ -> (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt+ (Prelude.fromIntegral+ (Data.ByteString.length bs)))+ (Data.ProtoLens.Encoding.Bytes.putBytes+ bs))+ _v))+ ((Data.Monoid.<>)+ (let+ _v+ = Lens.Family2.view+ (Data.ProtoLens.Field.field @"expiry") _x+ in+ if (Prelude.==) _v Data.ProtoLens.fieldDefault then+ Data.Monoid.mempty+ else+ (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 88)+ ((Prelude..)+ Data.ProtoLens.Encoding.Bytes.putVarInt+ Prelude.fromIntegral _v))+ ((Data.Monoid.<>)+ (let+ _v+ = Lens.Family2.view+ (Data.ProtoLens.Field.field @"fallbackAddr")+ _x+ in+ if (Prelude.==) _v Data.ProtoLens.fieldDefault then+ Data.Monoid.mempty+ else+ (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 98)+ ((Prelude..)+ (\ bs+ -> (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt+ (Prelude.fromIntegral+ (Data.ByteString.length+ bs)))+ (Data.ProtoLens.Encoding.Bytes.putBytes+ bs))+ Data.Text.Encoding.encodeUtf8 _v))+ ((Data.Monoid.<>)+ (let+ _v+ = Lens.Family2.view+ (Data.ProtoLens.Field.field @"cltvExpiry")+ _x+ in+ if (Prelude.==)+ _v Data.ProtoLens.fieldDefault then+ Data.Monoid.mempty+ else+ (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt+ 104)+ (Data.ProtoLens.Encoding.Bytes.putVarInt+ _v))+ ((Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.foldMapBuilder+ (\ _v+ -> (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt+ 114)+ ((Prelude..)+ (\ bs+ -> (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt+ (Prelude.fromIntegral+ (Data.ByteString.length+ bs)))+ (Data.ProtoLens.Encoding.Bytes.putBytes+ bs))+ Data.ProtoLens.encodeMessage _v))+ (Lens.Family2.view+ (Data.ProtoLens.Field.field+ @"vec'routeHints")+ _x))+ ((Data.Monoid.<>)+ (let+ _v+ = Lens.Family2.view+ (Data.ProtoLens.Field.field+ @"private")+ _x+ in+ if (Prelude.==)+ _v Data.ProtoLens.fieldDefault then+ Data.Monoid.mempty+ else+ (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt+ 120)+ ((Prelude..)+ Data.ProtoLens.Encoding.Bytes.putVarInt+ (\ b -> if b then 1 else 0) _v))+ ((Data.Monoid.<>)+ (let+ _v+ = Lens.Family2.view+ (Data.ProtoLens.Field.field+ @"addIndex")+ _x+ in+ if (Prelude.==)+ _v+ Data.ProtoLens.fieldDefault then+ Data.Monoid.mempty+ else+ (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt+ 128)+ (Data.ProtoLens.Encoding.Bytes.putVarInt+ _v))+ ((Data.Monoid.<>)+ (let+ _v+ = Lens.Family2.view+ (Data.ProtoLens.Field.field+ @"settleIndex")+ _x+ in+ if (Prelude.==)+ _v+ Data.ProtoLens.fieldDefault then+ Data.Monoid.mempty+ else+ (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt+ 136)+ (Data.ProtoLens.Encoding.Bytes.putVarInt+ _v))+ ((Data.Monoid.<>)+ (let+ _v+ = Lens.Family2.view+ (Data.ProtoLens.Field.field+ @"amtPaid")+ _x+ in+ if (Prelude.==)+ _v+ Data.ProtoLens.fieldDefault then+ Data.Monoid.mempty+ else+ (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt+ 144)+ ((Prelude..)+ Data.ProtoLens.Encoding.Bytes.putVarInt+ Prelude.fromIntegral+ _v))+ ((Data.Monoid.<>)+ (let+ _v+ = Lens.Family2.view+ (Data.ProtoLens.Field.field+ @"amtPaidSat")+ _x+ in+ if (Prelude.==)+ _v+ Data.ProtoLens.fieldDefault then+ Data.Monoid.mempty+ else+ (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt+ 152)+ ((Prelude..)+ Data.ProtoLens.Encoding.Bytes.putVarInt+ Prelude.fromIntegral+ _v))+ ((Data.Monoid.<>)+ (let+ _v+ = Lens.Family2.view+ (Data.ProtoLens.Field.field+ @"amtPaidMsat")+ _x+ in+ if (Prelude.==)+ _v+ Data.ProtoLens.fieldDefault then+ Data.Monoid.mempty+ else+ (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt+ 160)+ ((Prelude..)+ Data.ProtoLens.Encoding.Bytes.putVarInt+ Prelude.fromIntegral+ _v))+ ((Data.Monoid.<>)+ (let+ _v+ = Lens.Family2.view+ (Data.ProtoLens.Field.field+ @"state")+ _x+ in+ if (Prelude.==)+ _v+ Data.ProtoLens.fieldDefault then+ Data.Monoid.mempty+ else+ (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt+ 168)+ ((Prelude..)+ ((Prelude..)+ Data.ProtoLens.Encoding.Bytes.putVarInt+ Prelude.fromIntegral)+ Prelude.fromEnum+ _v))+ ((Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.foldMapBuilder+ (\ _v+ -> (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt+ 178)+ ((Prelude..)+ (\ bs+ -> (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt+ (Prelude.fromIntegral+ (Data.ByteString.length+ bs)))+ (Data.ProtoLens.Encoding.Bytes.putBytes+ bs))+ Data.ProtoLens.encodeMessage+ _v))+ (Lens.Family2.view+ (Data.ProtoLens.Field.field+ @"vec'htlcs")+ _x))+ ((Data.Monoid.<>)+ (Data.Monoid.mconcat+ (Prelude.map+ (\ _v+ -> (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt+ 194)+ ((Prelude..)+ (\ bs+ -> (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt+ (Prelude.fromIntegral+ (Data.ByteString.length+ bs)))+ (Data.ProtoLens.Encoding.Bytes.putBytes+ bs))+ Data.ProtoLens.encodeMessage+ (Lens.Family2.set+ (Data.ProtoLens.Field.field+ @"key")+ (Prelude.fst+ _v)+ (Lens.Family2.set+ (Data.ProtoLens.Field.field+ @"value")+ (Prelude.snd+ _v)+ (Data.ProtoLens.defMessage ::+ Invoice'FeaturesEntry)))))+ (Data.Map.toList+ (Lens.Family2.view+ (Data.ProtoLens.Field.field+ @"features")+ _x))))+ ((Data.Monoid.<>)+ (let+ _v+ = Lens.Family2.view+ (Data.ProtoLens.Field.field+ @"isKeysend")+ _x+ in+ if (Prelude.==)+ _v+ Data.ProtoLens.fieldDefault then+ Data.Monoid.mempty+ else+ (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt+ 200)+ ((Prelude..)+ Data.ProtoLens.Encoding.Bytes.putVarInt+ (\ b+ -> if b then+ 1+ else+ 0)+ _v))+ ((Data.Monoid.<>)+ (let+ _v+ = Lens.Family2.view+ (Data.ProtoLens.Field.field+ @"paymentAddr")+ _x+ in+ if (Prelude.==)+ _v+ Data.ProtoLens.fieldDefault then+ Data.Monoid.mempty+ else+ (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt+ 210)+ ((\ bs+ -> (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt+ (Prelude.fromIntegral+ (Data.ByteString.length+ bs)))+ (Data.ProtoLens.Encoding.Bytes.putBytes+ bs))+ _v))+ ((Data.Monoid.<>)+ (let+ _v+ = Lens.Family2.view+ (Data.ProtoLens.Field.field+ @"isAmp")+ _x+ in+ if (Prelude.==)+ _v+ Data.ProtoLens.fieldDefault then+ Data.Monoid.mempty+ else+ (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt+ 216)+ ((Prelude..)+ Data.ProtoLens.Encoding.Bytes.putVarInt+ (\ b+ -> if b then+ 1+ else+ 0)+ _v))+ ((Data.Monoid.<>)+ (Data.Monoid.mconcat+ (Prelude.map+ (\ _v+ -> (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt+ 226)+ ((Prelude..)+ (\ bs+ -> (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt+ (Prelude.fromIntegral+ (Data.ByteString.length+ bs)))+ (Data.ProtoLens.Encoding.Bytes.putBytes+ bs))+ Data.ProtoLens.encodeMessage+ (Lens.Family2.set+ (Data.ProtoLens.Field.field+ @"key")+ (Prelude.fst+ _v)+ (Lens.Family2.set+ (Data.ProtoLens.Field.field+ @"value")+ (Prelude.snd+ _v)+ (Data.ProtoLens.defMessage ::+ Invoice'AmpInvoiceStateEntry)))))+ (Data.Map.toList+ (Lens.Family2.view+ (Data.ProtoLens.Field.field+ @"ampInvoiceState")+ _x))))+ (Data.ProtoLens.Encoding.Wire.buildFieldSet+ (Lens.Family2.view+ Data.ProtoLens.unknownFields+ _x))))))))))))))))))))))))))))+instance Control.DeepSeq.NFData Invoice where+ rnf+ = \ x__+ -> Control.DeepSeq.deepseq+ (_Invoice'_unknownFields x__)+ (Control.DeepSeq.deepseq+ (_Invoice'memo x__)+ (Control.DeepSeq.deepseq+ (_Invoice'rPreimage x__)+ (Control.DeepSeq.deepseq+ (_Invoice'rHash x__)+ (Control.DeepSeq.deepseq+ (_Invoice'value x__)+ (Control.DeepSeq.deepseq+ (_Invoice'valueMsat x__)+ (Control.DeepSeq.deepseq+ (_Invoice'settled x__)+ (Control.DeepSeq.deepseq+ (_Invoice'creationDate x__)+ (Control.DeepSeq.deepseq+ (_Invoice'settleDate x__)+ (Control.DeepSeq.deepseq+ (_Invoice'paymentRequest x__)+ (Control.DeepSeq.deepseq+ (_Invoice'descriptionHash x__)+ (Control.DeepSeq.deepseq+ (_Invoice'expiry x__)+ (Control.DeepSeq.deepseq+ (_Invoice'fallbackAddr x__)+ (Control.DeepSeq.deepseq+ (_Invoice'cltvExpiry x__)+ (Control.DeepSeq.deepseq+ (_Invoice'routeHints x__)+ (Control.DeepSeq.deepseq+ (_Invoice'private x__)+ (Control.DeepSeq.deepseq+ (_Invoice'addIndex x__)+ (Control.DeepSeq.deepseq+ (_Invoice'settleIndex x__)+ (Control.DeepSeq.deepseq+ (_Invoice'amtPaid x__)+ (Control.DeepSeq.deepseq+ (_Invoice'amtPaidSat x__)+ (Control.DeepSeq.deepseq+ (_Invoice'amtPaidMsat x__)+ (Control.DeepSeq.deepseq+ (_Invoice'state x__)+ (Control.DeepSeq.deepseq+ (_Invoice'htlcs x__)+ (Control.DeepSeq.deepseq+ (_Invoice'features+ x__)+ (Control.DeepSeq.deepseq+ (_Invoice'isKeysend+ x__)+ (Control.DeepSeq.deepseq+ (_Invoice'paymentAddr+ x__)+ (Control.DeepSeq.deepseq+ (_Invoice'isAmp+ x__)+ (Control.DeepSeq.deepseq+ (_Invoice'ampInvoiceState+ x__)+ ())))))))))))))))))))))))))))+{- | Fields :+ + * 'Proto.Lnrpc.Ln1_Fields.key' @:: Lens' Invoice'AmpInvoiceStateEntry Data.Text.Text@+ * 'Proto.Lnrpc.Ln1_Fields.value' @:: Lens' Invoice'AmpInvoiceStateEntry AMPInvoiceState@+ * 'Proto.Lnrpc.Ln1_Fields.maybe'value' @:: Lens' Invoice'AmpInvoiceStateEntry (Prelude.Maybe AMPInvoiceState)@ -}+data Invoice'AmpInvoiceStateEntry+ = Invoice'AmpInvoiceStateEntry'_constructor {_Invoice'AmpInvoiceStateEntry'key :: !Data.Text.Text,+ _Invoice'AmpInvoiceStateEntry'value :: !(Prelude.Maybe AMPInvoiceState),+ _Invoice'AmpInvoiceStateEntry'_unknownFields :: !Data.ProtoLens.FieldSet}+ deriving stock (Prelude.Eq, Prelude.Ord, GHC.Generics.Generic)+instance Prelude.Show Invoice'AmpInvoiceStateEntry where+ showsPrec _ __x __s+ = Prelude.showChar+ '{'+ (Prelude.showString+ (Data.ProtoLens.showMessageShort __x) (Prelude.showChar '}' __s))+instance Text.PrettyPrint.GenericPretty.Out Invoice'AmpInvoiceStateEntry+instance Data.ProtoLens.Field.HasField Invoice'AmpInvoiceStateEntry "key" Data.Text.Text where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _Invoice'AmpInvoiceStateEntry'key+ (\ x__ y__ -> x__ {_Invoice'AmpInvoiceStateEntry'key = y__}))+ Prelude.id+instance Data.ProtoLens.Field.HasField Invoice'AmpInvoiceStateEntry "value" AMPInvoiceState where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _Invoice'AmpInvoiceStateEntry'value+ (\ x__ y__ -> x__ {_Invoice'AmpInvoiceStateEntry'value = y__}))+ (Data.ProtoLens.maybeLens Data.ProtoLens.defMessage)+instance Data.ProtoLens.Field.HasField Invoice'AmpInvoiceStateEntry "maybe'value" (Prelude.Maybe AMPInvoiceState) where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _Invoice'AmpInvoiceStateEntry'value+ (\ x__ y__ -> x__ {_Invoice'AmpInvoiceStateEntry'value = y__}))+ Prelude.id+instance Data.ProtoLens.Message Invoice'AmpInvoiceStateEntry where+ messageName _ = Data.Text.pack "lnrpc.Invoice.AmpInvoiceStateEntry"+ packedMessageDescriptor _+ = "\n\+ \\DC4AmpInvoiceStateEntry\DC2\DLE\n\+ \\ETXkey\CAN\SOH \SOH(\tR\ETXkey\DC2,\n\+ \\ENQvalue\CAN\STX \SOH(\v2\SYN.lnrpc.AMPInvoiceStateR\ENQvalue:\STX8\SOH"+ packedFileDescriptor _ = packedFileDescriptor+ fieldsByTag+ = let+ key__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "key"+ (Data.ProtoLens.ScalarField Data.ProtoLens.StringField ::+ Data.ProtoLens.FieldTypeDescriptor Data.Text.Text)+ (Data.ProtoLens.PlainField+ Data.ProtoLens.Optional (Data.ProtoLens.Field.field @"key")) ::+ Data.ProtoLens.FieldDescriptor Invoice'AmpInvoiceStateEntry+ value__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "value"+ (Data.ProtoLens.MessageField Data.ProtoLens.MessageType ::+ Data.ProtoLens.FieldTypeDescriptor AMPInvoiceState)+ (Data.ProtoLens.OptionalField+ (Data.ProtoLens.Field.field @"maybe'value")) ::+ Data.ProtoLens.FieldDescriptor Invoice'AmpInvoiceStateEntry+ in+ Data.Map.fromList+ [(Data.ProtoLens.Tag 1, key__field_descriptor),+ (Data.ProtoLens.Tag 2, value__field_descriptor)]+ unknownFields+ = Lens.Family2.Unchecked.lens+ _Invoice'AmpInvoiceStateEntry'_unknownFields+ (\ x__ y__+ -> x__ {_Invoice'AmpInvoiceStateEntry'_unknownFields = y__})+ defMessage+ = Invoice'AmpInvoiceStateEntry'_constructor+ {_Invoice'AmpInvoiceStateEntry'key = Data.ProtoLens.fieldDefault,+ _Invoice'AmpInvoiceStateEntry'value = Prelude.Nothing,+ _Invoice'AmpInvoiceStateEntry'_unknownFields = []}+ parseMessage+ = let+ loop ::+ Invoice'AmpInvoiceStateEntry+ -> Data.ProtoLens.Encoding.Bytes.Parser Invoice'AmpInvoiceStateEntry+ loop x+ = do end <- Data.ProtoLens.Encoding.Bytes.atEnd+ if end then+ do (let missing = []+ in+ if Prelude.null missing then+ Prelude.return ()+ else+ Prelude.fail+ ((Prelude.++)+ "Missing required fields: "+ (Prelude.show (missing :: [Prelude.String]))))+ Prelude.return+ (Lens.Family2.over+ Data.ProtoLens.unknownFields (\ !t -> Prelude.reverse t) x)+ else+ do tag <- Data.ProtoLens.Encoding.Bytes.getVarInt+ case tag of+ 10+ -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (do value <- do len <- Data.ProtoLens.Encoding.Bytes.getVarInt+ Data.ProtoLens.Encoding.Bytes.getBytes+ (Prelude.fromIntegral len)+ Data.ProtoLens.Encoding.Bytes.runEither+ (case Data.Text.Encoding.decodeUtf8' value of+ (Prelude.Left err)+ -> Prelude.Left (Prelude.show err)+ (Prelude.Right r) -> Prelude.Right r))+ "key"+ loop (Lens.Family2.set (Data.ProtoLens.Field.field @"key") y x)+ 18+ -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (do len <- Data.ProtoLens.Encoding.Bytes.getVarInt+ Data.ProtoLens.Encoding.Bytes.isolate+ (Prelude.fromIntegral len) Data.ProtoLens.parseMessage)+ "value"+ loop (Lens.Family2.set (Data.ProtoLens.Field.field @"value") y x)+ wire+ -> do !y <- Data.ProtoLens.Encoding.Wire.parseTaggedValueFromWire+ wire+ loop+ (Lens.Family2.over+ Data.ProtoLens.unknownFields (\ !t -> (:) y t) x)+ in+ (Data.ProtoLens.Encoding.Bytes.<?>)+ (do loop Data.ProtoLens.defMessage) "AmpInvoiceStateEntry"+ buildMessage+ = \ _x+ -> (Data.Monoid.<>)+ (let _v = Lens.Family2.view (Data.ProtoLens.Field.field @"key") _x+ in+ if (Prelude.==) _v Data.ProtoLens.fieldDefault then+ Data.Monoid.mempty+ else+ (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 10)+ ((Prelude..)+ (\ bs+ -> (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt+ (Prelude.fromIntegral (Data.ByteString.length bs)))+ (Data.ProtoLens.Encoding.Bytes.putBytes bs))+ Data.Text.Encoding.encodeUtf8 _v))+ ((Data.Monoid.<>)+ (case+ Lens.Family2.view (Data.ProtoLens.Field.field @"maybe'value") _x+ of+ Prelude.Nothing -> Data.Monoid.mempty+ (Prelude.Just _v)+ -> (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 18)+ ((Prelude..)+ (\ bs+ -> (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt+ (Prelude.fromIntegral (Data.ByteString.length bs)))+ (Data.ProtoLens.Encoding.Bytes.putBytes bs))+ Data.ProtoLens.encodeMessage _v))+ (Data.ProtoLens.Encoding.Wire.buildFieldSet+ (Lens.Family2.view Data.ProtoLens.unknownFields _x)))+instance Control.DeepSeq.NFData Invoice'AmpInvoiceStateEntry where+ rnf+ = \ x__+ -> Control.DeepSeq.deepseq+ (_Invoice'AmpInvoiceStateEntry'_unknownFields x__)+ (Control.DeepSeq.deepseq+ (_Invoice'AmpInvoiceStateEntry'key x__)+ (Control.DeepSeq.deepseq+ (_Invoice'AmpInvoiceStateEntry'value x__) ()))+{- | Fields :+ + * 'Proto.Lnrpc.Ln1_Fields.key' @:: Lens' Invoice'FeaturesEntry Data.Word.Word32@+ * 'Proto.Lnrpc.Ln1_Fields.value' @:: Lens' Invoice'FeaturesEntry Proto.Lnrpc.Ln0.Feature@+ * 'Proto.Lnrpc.Ln1_Fields.maybe'value' @:: Lens' Invoice'FeaturesEntry (Prelude.Maybe Proto.Lnrpc.Ln0.Feature)@ -}+data Invoice'FeaturesEntry+ = Invoice'FeaturesEntry'_constructor {_Invoice'FeaturesEntry'key :: !Data.Word.Word32,+ _Invoice'FeaturesEntry'value :: !(Prelude.Maybe Proto.Lnrpc.Ln0.Feature),+ _Invoice'FeaturesEntry'_unknownFields :: !Data.ProtoLens.FieldSet}+ deriving stock (Prelude.Eq, Prelude.Ord, GHC.Generics.Generic)+instance Prelude.Show Invoice'FeaturesEntry where+ showsPrec _ __x __s+ = Prelude.showChar+ '{'+ (Prelude.showString+ (Data.ProtoLens.showMessageShort __x) (Prelude.showChar '}' __s))+instance Text.PrettyPrint.GenericPretty.Out Invoice'FeaturesEntry+instance Data.ProtoLens.Field.HasField Invoice'FeaturesEntry "key" Data.Word.Word32 where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _Invoice'FeaturesEntry'key+ (\ x__ y__ -> x__ {_Invoice'FeaturesEntry'key = y__}))+ Prelude.id+instance Data.ProtoLens.Field.HasField Invoice'FeaturesEntry "value" Proto.Lnrpc.Ln0.Feature where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _Invoice'FeaturesEntry'value+ (\ x__ y__ -> x__ {_Invoice'FeaturesEntry'value = y__}))+ (Data.ProtoLens.maybeLens Data.ProtoLens.defMessage)+instance Data.ProtoLens.Field.HasField Invoice'FeaturesEntry "maybe'value" (Prelude.Maybe Proto.Lnrpc.Ln0.Feature) where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _Invoice'FeaturesEntry'value+ (\ x__ y__ -> x__ {_Invoice'FeaturesEntry'value = y__}))+ Prelude.id+instance Data.ProtoLens.Message Invoice'FeaturesEntry where+ messageName _ = Data.Text.pack "lnrpc.Invoice.FeaturesEntry"+ packedMessageDescriptor _+ = "\n\+ \\rFeaturesEntry\DC2\DLE\n\+ \\ETXkey\CAN\SOH \SOH(\rR\ETXkey\DC2$\n\+ \\ENQvalue\CAN\STX \SOH(\v2\SO.lnrpc.FeatureR\ENQvalue:\STX8\SOH"+ packedFileDescriptor _ = packedFileDescriptor+ fieldsByTag+ = let+ key__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "key"+ (Data.ProtoLens.ScalarField Data.ProtoLens.UInt32Field ::+ Data.ProtoLens.FieldTypeDescriptor Data.Word.Word32)+ (Data.ProtoLens.PlainField+ Data.ProtoLens.Optional (Data.ProtoLens.Field.field @"key")) ::+ Data.ProtoLens.FieldDescriptor Invoice'FeaturesEntry+ value__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "value"+ (Data.ProtoLens.MessageField Data.ProtoLens.MessageType ::+ Data.ProtoLens.FieldTypeDescriptor Proto.Lnrpc.Ln0.Feature)+ (Data.ProtoLens.OptionalField+ (Data.ProtoLens.Field.field @"maybe'value")) ::+ Data.ProtoLens.FieldDescriptor Invoice'FeaturesEntry+ in+ Data.Map.fromList+ [(Data.ProtoLens.Tag 1, key__field_descriptor),+ (Data.ProtoLens.Tag 2, value__field_descriptor)]+ unknownFields+ = Lens.Family2.Unchecked.lens+ _Invoice'FeaturesEntry'_unknownFields+ (\ x__ y__ -> x__ {_Invoice'FeaturesEntry'_unknownFields = y__})+ defMessage+ = Invoice'FeaturesEntry'_constructor+ {_Invoice'FeaturesEntry'key = Data.ProtoLens.fieldDefault,+ _Invoice'FeaturesEntry'value = Prelude.Nothing,+ _Invoice'FeaturesEntry'_unknownFields = []}+ parseMessage+ = let+ loop ::+ Invoice'FeaturesEntry+ -> Data.ProtoLens.Encoding.Bytes.Parser Invoice'FeaturesEntry+ loop x+ = do end <- Data.ProtoLens.Encoding.Bytes.atEnd+ if end then+ do (let missing = []+ in+ if Prelude.null missing then+ Prelude.return ()+ else+ Prelude.fail+ ((Prelude.++)+ "Missing required fields: "+ (Prelude.show (missing :: [Prelude.String]))))+ Prelude.return+ (Lens.Family2.over+ Data.ProtoLens.unknownFields (\ !t -> Prelude.reverse t) x)+ else+ do tag <- Data.ProtoLens.Encoding.Bytes.getVarInt+ case tag of+ 8 -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (Prelude.fmap+ Prelude.fromIntegral+ Data.ProtoLens.Encoding.Bytes.getVarInt)+ "key"+ loop (Lens.Family2.set (Data.ProtoLens.Field.field @"key") y x)+ 18+ -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (do len <- Data.ProtoLens.Encoding.Bytes.getVarInt+ Data.ProtoLens.Encoding.Bytes.isolate+ (Prelude.fromIntegral len) Data.ProtoLens.parseMessage)+ "value"+ loop (Lens.Family2.set (Data.ProtoLens.Field.field @"value") y x)+ wire+ -> do !y <- Data.ProtoLens.Encoding.Wire.parseTaggedValueFromWire+ wire+ loop+ (Lens.Family2.over+ Data.ProtoLens.unknownFields (\ !t -> (:) y t) x)+ in+ (Data.ProtoLens.Encoding.Bytes.<?>)+ (do loop Data.ProtoLens.defMessage) "FeaturesEntry"+ buildMessage+ = \ _x+ -> (Data.Monoid.<>)+ (let _v = Lens.Family2.view (Data.ProtoLens.Field.field @"key") _x+ in+ if (Prelude.==) _v Data.ProtoLens.fieldDefault then+ Data.Monoid.mempty+ else+ (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 8)+ ((Prelude..)+ Data.ProtoLens.Encoding.Bytes.putVarInt Prelude.fromIntegral _v))+ ((Data.Monoid.<>)+ (case+ Lens.Family2.view (Data.ProtoLens.Field.field @"maybe'value") _x+ of+ Prelude.Nothing -> Data.Monoid.mempty+ (Prelude.Just _v)+ -> (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 18)+ ((Prelude..)+ (\ bs+ -> (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt+ (Prelude.fromIntegral (Data.ByteString.length bs)))+ (Data.ProtoLens.Encoding.Bytes.putBytes bs))+ Data.ProtoLens.encodeMessage _v))+ (Data.ProtoLens.Encoding.Wire.buildFieldSet+ (Lens.Family2.view Data.ProtoLens.unknownFields _x)))+instance Control.DeepSeq.NFData Invoice'FeaturesEntry where+ rnf+ = \ x__+ -> Control.DeepSeq.deepseq+ (_Invoice'FeaturesEntry'_unknownFields x__)+ (Control.DeepSeq.deepseq+ (_Invoice'FeaturesEntry'key x__)+ (Control.DeepSeq.deepseq (_Invoice'FeaturesEntry'value x__) ()))+newtype Invoice'InvoiceState'UnrecognizedValue+ = Invoice'InvoiceState'UnrecognizedValue Data.Int.Int32+ deriving stock (Prelude.Eq,+ Prelude.Ord,+ Prelude.Show,+ GHC.Generics.Generic)+instance Text.PrettyPrint.GenericPretty.Out Invoice'InvoiceState'UnrecognizedValue+data Invoice'InvoiceState+ = Invoice'OPEN |+ Invoice'SETTLED |+ Invoice'CANCELED |+ Invoice'ACCEPTED |+ Invoice'InvoiceState'Unrecognized !Invoice'InvoiceState'UnrecognizedValue+ deriving stock (Prelude.Show,+ Prelude.Eq,+ Prelude.Ord,+ GHC.Generics.Generic)+instance Data.ProtoLens.MessageEnum Invoice'InvoiceState where+ maybeToEnum 0 = Prelude.Just Invoice'OPEN+ maybeToEnum 1 = Prelude.Just Invoice'SETTLED+ maybeToEnum 2 = Prelude.Just Invoice'CANCELED+ maybeToEnum 3 = Prelude.Just Invoice'ACCEPTED+ maybeToEnum k+ = Prelude.Just+ (Invoice'InvoiceState'Unrecognized+ (Invoice'InvoiceState'UnrecognizedValue (Prelude.fromIntegral k)))+ showEnum Invoice'OPEN = "OPEN"+ showEnum Invoice'SETTLED = "SETTLED"+ showEnum Invoice'CANCELED = "CANCELED"+ showEnum Invoice'ACCEPTED = "ACCEPTED"+ showEnum+ (Invoice'InvoiceState'Unrecognized (Invoice'InvoiceState'UnrecognizedValue k))+ = Prelude.show k+ readEnum k+ | (Prelude.==) k "OPEN" = Prelude.Just Invoice'OPEN+ | (Prelude.==) k "SETTLED" = Prelude.Just Invoice'SETTLED+ | (Prelude.==) k "CANCELED" = Prelude.Just Invoice'CANCELED+ | (Prelude.==) k "ACCEPTED" = Prelude.Just Invoice'ACCEPTED+ | Prelude.otherwise+ = (Prelude.>>=) (Text.Read.readMaybe k) Data.ProtoLens.maybeToEnum+instance Prelude.Bounded Invoice'InvoiceState where+ minBound = Invoice'OPEN+ maxBound = Invoice'ACCEPTED+instance Prelude.Enum Invoice'InvoiceState where+ toEnum k__+ = Prelude.maybe+ (Prelude.error+ ((Prelude.++)+ "toEnum: unknown value for enum InvoiceState: "+ (Prelude.show k__)))+ Prelude.id (Data.ProtoLens.maybeToEnum k__)+ fromEnum Invoice'OPEN = 0+ fromEnum Invoice'SETTLED = 1+ fromEnum Invoice'CANCELED = 2+ fromEnum Invoice'ACCEPTED = 3+ fromEnum+ (Invoice'InvoiceState'Unrecognized (Invoice'InvoiceState'UnrecognizedValue k))+ = Prelude.fromIntegral k+ succ Invoice'ACCEPTED+ = Prelude.error+ "Invoice'InvoiceState.succ: bad argument Invoice'ACCEPTED. This value would be out of bounds."+ succ Invoice'OPEN = Invoice'SETTLED+ succ Invoice'SETTLED = Invoice'CANCELED+ succ Invoice'CANCELED = Invoice'ACCEPTED+ succ (Invoice'InvoiceState'Unrecognized _)+ = Prelude.error+ "Invoice'InvoiceState.succ: bad argument: unrecognized value"+ pred Invoice'OPEN+ = Prelude.error+ "Invoice'InvoiceState.pred: bad argument Invoice'OPEN. This value would be out of bounds."+ pred Invoice'SETTLED = Invoice'OPEN+ pred Invoice'CANCELED = Invoice'SETTLED+ pred Invoice'ACCEPTED = Invoice'CANCELED+ pred (Invoice'InvoiceState'Unrecognized _)+ = Prelude.error+ "Invoice'InvoiceState.pred: bad argument: unrecognized value"+ enumFrom = Data.ProtoLens.Message.Enum.messageEnumFrom+ enumFromTo = Data.ProtoLens.Message.Enum.messageEnumFromTo+ enumFromThen = Data.ProtoLens.Message.Enum.messageEnumFromThen+ enumFromThenTo = Data.ProtoLens.Message.Enum.messageEnumFromThenTo+instance Data.ProtoLens.FieldDefault Invoice'InvoiceState where+ fieldDefault = Invoice'OPEN+instance Control.DeepSeq.NFData Invoice'InvoiceState where+ rnf x__ = Prelude.seq x__ ()+instance Text.PrettyPrint.GenericPretty.Out Invoice'InvoiceState+{- | Fields :+ + * 'Proto.Lnrpc.Ln1_Fields.chanId' @:: Lens' InvoiceHTLC Data.Word.Word64@+ * 'Proto.Lnrpc.Ln1_Fields.htlcIndex' @:: Lens' InvoiceHTLC Data.Word.Word64@+ * 'Proto.Lnrpc.Ln1_Fields.amtMsat' @:: Lens' InvoiceHTLC Data.Word.Word64@+ * 'Proto.Lnrpc.Ln1_Fields.acceptHeight' @:: Lens' InvoiceHTLC Data.Int.Int32@+ * 'Proto.Lnrpc.Ln1_Fields.acceptTime' @:: Lens' InvoiceHTLC Data.Int.Int64@+ * 'Proto.Lnrpc.Ln1_Fields.resolveTime' @:: Lens' InvoiceHTLC Data.Int.Int64@+ * 'Proto.Lnrpc.Ln1_Fields.expiryHeight' @:: Lens' InvoiceHTLC Data.Int.Int32@+ * 'Proto.Lnrpc.Ln1_Fields.state' @:: Lens' InvoiceHTLC InvoiceHTLCState@+ * 'Proto.Lnrpc.Ln1_Fields.customRecords' @:: Lens' InvoiceHTLC (Data.Map.Map Data.Word.Word64 Data.ByteString.ByteString)@+ * 'Proto.Lnrpc.Ln1_Fields.mppTotalAmtMsat' @:: Lens' InvoiceHTLC Data.Word.Word64@+ * 'Proto.Lnrpc.Ln1_Fields.amp' @:: Lens' InvoiceHTLC AMP@+ * 'Proto.Lnrpc.Ln1_Fields.maybe'amp' @:: Lens' InvoiceHTLC (Prelude.Maybe AMP)@ -}+data InvoiceHTLC+ = InvoiceHTLC'_constructor {_InvoiceHTLC'chanId :: !Data.Word.Word64,+ _InvoiceHTLC'htlcIndex :: !Data.Word.Word64,+ _InvoiceHTLC'amtMsat :: !Data.Word.Word64,+ _InvoiceHTLC'acceptHeight :: !Data.Int.Int32,+ _InvoiceHTLC'acceptTime :: !Data.Int.Int64,+ _InvoiceHTLC'resolveTime :: !Data.Int.Int64,+ _InvoiceHTLC'expiryHeight :: !Data.Int.Int32,+ _InvoiceHTLC'state :: !InvoiceHTLCState,+ _InvoiceHTLC'customRecords :: !(Data.Map.Map Data.Word.Word64 Data.ByteString.ByteString),+ _InvoiceHTLC'mppTotalAmtMsat :: !Data.Word.Word64,+ _InvoiceHTLC'amp :: !(Prelude.Maybe AMP),+ _InvoiceHTLC'_unknownFields :: !Data.ProtoLens.FieldSet}+ deriving stock (Prelude.Eq, Prelude.Ord, GHC.Generics.Generic)+instance Prelude.Show InvoiceHTLC where+ showsPrec _ __x __s+ = Prelude.showChar+ '{'+ (Prelude.showString+ (Data.ProtoLens.showMessageShort __x) (Prelude.showChar '}' __s))+instance Text.PrettyPrint.GenericPretty.Out InvoiceHTLC+instance Data.ProtoLens.Field.HasField InvoiceHTLC "chanId" Data.Word.Word64 where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _InvoiceHTLC'chanId (\ x__ y__ -> x__ {_InvoiceHTLC'chanId = y__}))+ Prelude.id+instance Data.ProtoLens.Field.HasField InvoiceHTLC "htlcIndex" Data.Word.Word64 where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _InvoiceHTLC'htlcIndex+ (\ x__ y__ -> x__ {_InvoiceHTLC'htlcIndex = y__}))+ Prelude.id+instance Data.ProtoLens.Field.HasField InvoiceHTLC "amtMsat" Data.Word.Word64 where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _InvoiceHTLC'amtMsat+ (\ x__ y__ -> x__ {_InvoiceHTLC'amtMsat = y__}))+ Prelude.id+instance Data.ProtoLens.Field.HasField InvoiceHTLC "acceptHeight" Data.Int.Int32 where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _InvoiceHTLC'acceptHeight+ (\ x__ y__ -> x__ {_InvoiceHTLC'acceptHeight = y__}))+ Prelude.id+instance Data.ProtoLens.Field.HasField InvoiceHTLC "acceptTime" Data.Int.Int64 where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _InvoiceHTLC'acceptTime+ (\ x__ y__ -> x__ {_InvoiceHTLC'acceptTime = y__}))+ Prelude.id+instance Data.ProtoLens.Field.HasField InvoiceHTLC "resolveTime" Data.Int.Int64 where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _InvoiceHTLC'resolveTime+ (\ x__ y__ -> x__ {_InvoiceHTLC'resolveTime = y__}))+ Prelude.id+instance Data.ProtoLens.Field.HasField InvoiceHTLC "expiryHeight" Data.Int.Int32 where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _InvoiceHTLC'expiryHeight+ (\ x__ y__ -> x__ {_InvoiceHTLC'expiryHeight = y__}))+ Prelude.id+instance Data.ProtoLens.Field.HasField InvoiceHTLC "state" InvoiceHTLCState where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _InvoiceHTLC'state (\ x__ y__ -> x__ {_InvoiceHTLC'state = y__}))+ Prelude.id+instance Data.ProtoLens.Field.HasField InvoiceHTLC "customRecords" (Data.Map.Map Data.Word.Word64 Data.ByteString.ByteString) where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _InvoiceHTLC'customRecords+ (\ x__ y__ -> x__ {_InvoiceHTLC'customRecords = y__}))+ Prelude.id+instance Data.ProtoLens.Field.HasField InvoiceHTLC "mppTotalAmtMsat" Data.Word.Word64 where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _InvoiceHTLC'mppTotalAmtMsat+ (\ x__ y__ -> x__ {_InvoiceHTLC'mppTotalAmtMsat = y__}))+ Prelude.id+instance Data.ProtoLens.Field.HasField InvoiceHTLC "amp" AMP where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _InvoiceHTLC'amp (\ x__ y__ -> x__ {_InvoiceHTLC'amp = y__}))+ (Data.ProtoLens.maybeLens Data.ProtoLens.defMessage)+instance Data.ProtoLens.Field.HasField InvoiceHTLC "maybe'amp" (Prelude.Maybe AMP) where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _InvoiceHTLC'amp (\ x__ y__ -> x__ {_InvoiceHTLC'amp = y__}))+ Prelude.id+instance Data.ProtoLens.Message InvoiceHTLC where+ messageName _ = Data.Text.pack "lnrpc.InvoiceHTLC"+ packedMessageDescriptor _+ = "\n\+ \\vInvoiceHTLC\DC2\ESC\n\+ \\achan_id\CAN\SOH \SOH(\EOTR\ACKchanIdB\STX0\SOH\DC2\GS\n\+ \\n\+ \htlc_index\CAN\STX \SOH(\EOTR\thtlcIndex\DC2\EM\n\+ \\bamt_msat\CAN\ETX \SOH(\EOTR\aamtMsat\DC2#\n\+ \\raccept_height\CAN\EOT \SOH(\ENQR\facceptHeight\DC2\US\n\+ \\vaccept_time\CAN\ENQ \SOH(\ETXR\n\+ \acceptTime\DC2!\n\+ \\fresolve_time\CAN\ACK \SOH(\ETXR\vresolveTime\DC2#\n\+ \\rexpiry_height\CAN\a \SOH(\ENQR\fexpiryHeight\DC2-\n\+ \\ENQstate\CAN\b \SOH(\SO2\ETB.lnrpc.InvoiceHTLCStateR\ENQstate\DC2L\n\+ \\SOcustom_records\CAN\t \ETX(\v2%.lnrpc.InvoiceHTLC.CustomRecordsEntryR\rcustomRecords\DC2+\n\+ \\DC2mpp_total_amt_msat\CAN\n\+ \ \SOH(\EOTR\SImppTotalAmtMsat\DC2\FS\n\+ \\ETXamp\CAN\v \SOH(\v2\n\+ \.lnrpc.AMPR\ETXamp\SUB@\n\+ \\DC2CustomRecordsEntry\DC2\DLE\n\+ \\ETXkey\CAN\SOH \SOH(\EOTR\ETXkey\DC2\DC4\n\+ \\ENQvalue\CAN\STX \SOH(\fR\ENQvalue:\STX8\SOH"+ packedFileDescriptor _ = packedFileDescriptor+ fieldsByTag+ = let+ chanId__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "chan_id"+ (Data.ProtoLens.ScalarField Data.ProtoLens.UInt64Field ::+ Data.ProtoLens.FieldTypeDescriptor Data.Word.Word64)+ (Data.ProtoLens.PlainField+ Data.ProtoLens.Optional (Data.ProtoLens.Field.field @"chanId")) ::+ Data.ProtoLens.FieldDescriptor InvoiceHTLC+ htlcIndex__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "htlc_index"+ (Data.ProtoLens.ScalarField Data.ProtoLens.UInt64Field ::+ Data.ProtoLens.FieldTypeDescriptor Data.Word.Word64)+ (Data.ProtoLens.PlainField+ Data.ProtoLens.Optional+ (Data.ProtoLens.Field.field @"htlcIndex")) ::+ Data.ProtoLens.FieldDescriptor InvoiceHTLC+ amtMsat__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "amt_msat"+ (Data.ProtoLens.ScalarField Data.ProtoLens.UInt64Field ::+ Data.ProtoLens.FieldTypeDescriptor Data.Word.Word64)+ (Data.ProtoLens.PlainField+ Data.ProtoLens.Optional (Data.ProtoLens.Field.field @"amtMsat")) ::+ Data.ProtoLens.FieldDescriptor InvoiceHTLC+ acceptHeight__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "accept_height"+ (Data.ProtoLens.ScalarField Data.ProtoLens.Int32Field ::+ Data.ProtoLens.FieldTypeDescriptor Data.Int.Int32)+ (Data.ProtoLens.PlainField+ Data.ProtoLens.Optional+ (Data.ProtoLens.Field.field @"acceptHeight")) ::+ Data.ProtoLens.FieldDescriptor InvoiceHTLC+ acceptTime__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "accept_time"+ (Data.ProtoLens.ScalarField Data.ProtoLens.Int64Field ::+ Data.ProtoLens.FieldTypeDescriptor Data.Int.Int64)+ (Data.ProtoLens.PlainField+ Data.ProtoLens.Optional+ (Data.ProtoLens.Field.field @"acceptTime")) ::+ Data.ProtoLens.FieldDescriptor InvoiceHTLC+ resolveTime__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "resolve_time"+ (Data.ProtoLens.ScalarField Data.ProtoLens.Int64Field ::+ Data.ProtoLens.FieldTypeDescriptor Data.Int.Int64)+ (Data.ProtoLens.PlainField+ Data.ProtoLens.Optional+ (Data.ProtoLens.Field.field @"resolveTime")) ::+ Data.ProtoLens.FieldDescriptor InvoiceHTLC+ expiryHeight__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "expiry_height"+ (Data.ProtoLens.ScalarField Data.ProtoLens.Int32Field ::+ Data.ProtoLens.FieldTypeDescriptor Data.Int.Int32)+ (Data.ProtoLens.PlainField+ Data.ProtoLens.Optional+ (Data.ProtoLens.Field.field @"expiryHeight")) ::+ Data.ProtoLens.FieldDescriptor InvoiceHTLC+ state__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "state"+ (Data.ProtoLens.ScalarField Data.ProtoLens.EnumField ::+ Data.ProtoLens.FieldTypeDescriptor InvoiceHTLCState)+ (Data.ProtoLens.PlainField+ Data.ProtoLens.Optional (Data.ProtoLens.Field.field @"state")) ::+ Data.ProtoLens.FieldDescriptor InvoiceHTLC+ customRecords__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "custom_records"+ (Data.ProtoLens.MessageField Data.ProtoLens.MessageType ::+ Data.ProtoLens.FieldTypeDescriptor InvoiceHTLC'CustomRecordsEntry)+ (Data.ProtoLens.MapField+ (Data.ProtoLens.Field.field @"key")+ (Data.ProtoLens.Field.field @"value")+ (Data.ProtoLens.Field.field @"customRecords")) ::+ Data.ProtoLens.FieldDescriptor InvoiceHTLC+ mppTotalAmtMsat__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "mpp_total_amt_msat"+ (Data.ProtoLens.ScalarField Data.ProtoLens.UInt64Field ::+ Data.ProtoLens.FieldTypeDescriptor Data.Word.Word64)+ (Data.ProtoLens.PlainField+ Data.ProtoLens.Optional+ (Data.ProtoLens.Field.field @"mppTotalAmtMsat")) ::+ Data.ProtoLens.FieldDescriptor InvoiceHTLC+ amp__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "amp"+ (Data.ProtoLens.MessageField Data.ProtoLens.MessageType ::+ Data.ProtoLens.FieldTypeDescriptor AMP)+ (Data.ProtoLens.OptionalField+ (Data.ProtoLens.Field.field @"maybe'amp")) ::+ Data.ProtoLens.FieldDescriptor InvoiceHTLC+ in+ Data.Map.fromList+ [(Data.ProtoLens.Tag 1, chanId__field_descriptor),+ (Data.ProtoLens.Tag 2, htlcIndex__field_descriptor),+ (Data.ProtoLens.Tag 3, amtMsat__field_descriptor),+ (Data.ProtoLens.Tag 4, acceptHeight__field_descriptor),+ (Data.ProtoLens.Tag 5, acceptTime__field_descriptor),+ (Data.ProtoLens.Tag 6, resolveTime__field_descriptor),+ (Data.ProtoLens.Tag 7, expiryHeight__field_descriptor),+ (Data.ProtoLens.Tag 8, state__field_descriptor),+ (Data.ProtoLens.Tag 9, customRecords__field_descriptor),+ (Data.ProtoLens.Tag 10, mppTotalAmtMsat__field_descriptor),+ (Data.ProtoLens.Tag 11, amp__field_descriptor)]+ unknownFields+ = Lens.Family2.Unchecked.lens+ _InvoiceHTLC'_unknownFields+ (\ x__ y__ -> x__ {_InvoiceHTLC'_unknownFields = y__})+ defMessage+ = InvoiceHTLC'_constructor+ {_InvoiceHTLC'chanId = Data.ProtoLens.fieldDefault,+ _InvoiceHTLC'htlcIndex = Data.ProtoLens.fieldDefault,+ _InvoiceHTLC'amtMsat = Data.ProtoLens.fieldDefault,+ _InvoiceHTLC'acceptHeight = Data.ProtoLens.fieldDefault,+ _InvoiceHTLC'acceptTime = Data.ProtoLens.fieldDefault,+ _InvoiceHTLC'resolveTime = Data.ProtoLens.fieldDefault,+ _InvoiceHTLC'expiryHeight = Data.ProtoLens.fieldDefault,+ _InvoiceHTLC'state = Data.ProtoLens.fieldDefault,+ _InvoiceHTLC'customRecords = Data.Map.empty,+ _InvoiceHTLC'mppTotalAmtMsat = Data.ProtoLens.fieldDefault,+ _InvoiceHTLC'amp = Prelude.Nothing,+ _InvoiceHTLC'_unknownFields = []}+ parseMessage+ = let+ loop ::+ InvoiceHTLC -> Data.ProtoLens.Encoding.Bytes.Parser InvoiceHTLC+ loop x+ = do end <- Data.ProtoLens.Encoding.Bytes.atEnd+ if end then+ do (let missing = []+ in+ if Prelude.null missing then+ Prelude.return ()+ else+ Prelude.fail+ ((Prelude.++)+ "Missing required fields: "+ (Prelude.show (missing :: [Prelude.String]))))+ Prelude.return+ (Lens.Family2.over+ Data.ProtoLens.unknownFields (\ !t -> Prelude.reverse t) x)+ else+ do tag <- Data.ProtoLens.Encoding.Bytes.getVarInt+ case tag of+ 8 -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ Data.ProtoLens.Encoding.Bytes.getVarInt "chan_id"+ loop (Lens.Family2.set (Data.ProtoLens.Field.field @"chanId") y x)+ 16+ -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ Data.ProtoLens.Encoding.Bytes.getVarInt "htlc_index"+ loop+ (Lens.Family2.set (Data.ProtoLens.Field.field @"htlcIndex") y x)+ 24+ -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ Data.ProtoLens.Encoding.Bytes.getVarInt "amt_msat"+ loop (Lens.Family2.set (Data.ProtoLens.Field.field @"amtMsat") y x)+ 32+ -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (Prelude.fmap+ Prelude.fromIntegral+ Data.ProtoLens.Encoding.Bytes.getVarInt)+ "accept_height"+ loop+ (Lens.Family2.set+ (Data.ProtoLens.Field.field @"acceptHeight") y x)+ 40+ -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (Prelude.fmap+ Prelude.fromIntegral+ Data.ProtoLens.Encoding.Bytes.getVarInt)+ "accept_time"+ loop+ (Lens.Family2.set (Data.ProtoLens.Field.field @"acceptTime") y x)+ 48+ -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (Prelude.fmap+ Prelude.fromIntegral+ Data.ProtoLens.Encoding.Bytes.getVarInt)+ "resolve_time"+ loop+ (Lens.Family2.set (Data.ProtoLens.Field.field @"resolveTime") y x)+ 56+ -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (Prelude.fmap+ Prelude.fromIntegral+ Data.ProtoLens.Encoding.Bytes.getVarInt)+ "expiry_height"+ loop+ (Lens.Family2.set+ (Data.ProtoLens.Field.field @"expiryHeight") y x)+ 64+ -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (Prelude.fmap+ Prelude.toEnum+ (Prelude.fmap+ Prelude.fromIntegral+ Data.ProtoLens.Encoding.Bytes.getVarInt))+ "state"+ loop (Lens.Family2.set (Data.ProtoLens.Field.field @"state") y x)+ 74+ -> do !(entry :: InvoiceHTLC'CustomRecordsEntry) <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (do len <- Data.ProtoLens.Encoding.Bytes.getVarInt+ Data.ProtoLens.Encoding.Bytes.isolate+ (Prelude.fromIntegral+ len)+ Data.ProtoLens.parseMessage)+ "custom_records"+ (let+ key = Lens.Family2.view (Data.ProtoLens.Field.field @"key") entry+ value+ = Lens.Family2.view (Data.ProtoLens.Field.field @"value") entry+ in+ loop+ (Lens.Family2.over+ (Data.ProtoLens.Field.field @"customRecords")+ (\ !t -> Data.Map.insert key value t) x))+ 80+ -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ Data.ProtoLens.Encoding.Bytes.getVarInt "mpp_total_amt_msat"+ loop+ (Lens.Family2.set+ (Data.ProtoLens.Field.field @"mppTotalAmtMsat") y x)+ 90+ -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (do len <- Data.ProtoLens.Encoding.Bytes.getVarInt+ Data.ProtoLens.Encoding.Bytes.isolate+ (Prelude.fromIntegral len) Data.ProtoLens.parseMessage)+ "amp"+ loop (Lens.Family2.set (Data.ProtoLens.Field.field @"amp") y x)+ wire+ -> do !y <- Data.ProtoLens.Encoding.Wire.parseTaggedValueFromWire+ wire+ loop+ (Lens.Family2.over+ Data.ProtoLens.unknownFields (\ !t -> (:) y t) x)+ in+ (Data.ProtoLens.Encoding.Bytes.<?>)+ (do loop Data.ProtoLens.defMessage) "InvoiceHTLC"+ buildMessage+ = \ _x+ -> (Data.Monoid.<>)+ (let+ _v = Lens.Family2.view (Data.ProtoLens.Field.field @"chanId") _x+ in+ if (Prelude.==) _v Data.ProtoLens.fieldDefault then+ Data.Monoid.mempty+ else+ (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 8)+ (Data.ProtoLens.Encoding.Bytes.putVarInt _v))+ ((Data.Monoid.<>)+ (let+ _v = Lens.Family2.view (Data.ProtoLens.Field.field @"htlcIndex") _x+ in+ if (Prelude.==) _v Data.ProtoLens.fieldDefault then+ Data.Monoid.mempty+ else+ (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 16)+ (Data.ProtoLens.Encoding.Bytes.putVarInt _v))+ ((Data.Monoid.<>)+ (let+ _v = Lens.Family2.view (Data.ProtoLens.Field.field @"amtMsat") _x+ in+ if (Prelude.==) _v Data.ProtoLens.fieldDefault then+ Data.Monoid.mempty+ else+ (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 24)+ (Data.ProtoLens.Encoding.Bytes.putVarInt _v))+ ((Data.Monoid.<>)+ (let+ _v+ = Lens.Family2.view (Data.ProtoLens.Field.field @"acceptHeight") _x+ in+ if (Prelude.==) _v Data.ProtoLens.fieldDefault then+ Data.Monoid.mempty+ else+ (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 32)+ ((Prelude..)+ Data.ProtoLens.Encoding.Bytes.putVarInt Prelude.fromIntegral _v))+ ((Data.Monoid.<>)+ (let+ _v+ = Lens.Family2.view (Data.ProtoLens.Field.field @"acceptTime") _x+ in+ if (Prelude.==) _v Data.ProtoLens.fieldDefault then+ Data.Monoid.mempty+ else+ (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 40)+ ((Prelude..)+ Data.ProtoLens.Encoding.Bytes.putVarInt Prelude.fromIntegral+ _v))+ ((Data.Monoid.<>)+ (let+ _v+ = Lens.Family2.view (Data.ProtoLens.Field.field @"resolveTime") _x+ in+ if (Prelude.==) _v Data.ProtoLens.fieldDefault then+ Data.Monoid.mempty+ else+ (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 48)+ ((Prelude..)+ Data.ProtoLens.Encoding.Bytes.putVarInt Prelude.fromIntegral+ _v))+ ((Data.Monoid.<>)+ (let+ _v+ = Lens.Family2.view+ (Data.ProtoLens.Field.field @"expiryHeight") _x+ in+ if (Prelude.==) _v Data.ProtoLens.fieldDefault then+ Data.Monoid.mempty+ else+ (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 56)+ ((Prelude..)+ Data.ProtoLens.Encoding.Bytes.putVarInt+ Prelude.fromIntegral _v))+ ((Data.Monoid.<>)+ (let+ _v = Lens.Family2.view (Data.ProtoLens.Field.field @"state") _x+ in+ if (Prelude.==) _v Data.ProtoLens.fieldDefault then+ Data.Monoid.mempty+ else+ (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 64)+ ((Prelude..)+ ((Prelude..)+ Data.ProtoLens.Encoding.Bytes.putVarInt+ Prelude.fromIntegral)+ Prelude.fromEnum _v))+ ((Data.Monoid.<>)+ (Data.Monoid.mconcat+ (Prelude.map+ (\ _v+ -> (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 74)+ ((Prelude..)+ (\ bs+ -> (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt+ (Prelude.fromIntegral+ (Data.ByteString.length bs)))+ (Data.ProtoLens.Encoding.Bytes.putBytes+ bs))+ Data.ProtoLens.encodeMessage+ (Lens.Family2.set+ (Data.ProtoLens.Field.field @"key")+ (Prelude.fst _v)+ (Lens.Family2.set+ (Data.ProtoLens.Field.field @"value")+ (Prelude.snd _v)+ (Data.ProtoLens.defMessage ::+ InvoiceHTLC'CustomRecordsEntry)))))+ (Data.Map.toList+ (Lens.Family2.view+ (Data.ProtoLens.Field.field @"customRecords")+ _x))))+ ((Data.Monoid.<>)+ (let+ _v+ = Lens.Family2.view+ (Data.ProtoLens.Field.field @"mppTotalAmtMsat") _x+ in+ if (Prelude.==) _v Data.ProtoLens.fieldDefault then+ Data.Monoid.mempty+ else+ (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 80)+ (Data.ProtoLens.Encoding.Bytes.putVarInt _v))+ ((Data.Monoid.<>)+ (case+ Lens.Family2.view+ (Data.ProtoLens.Field.field @"maybe'amp") _x+ of+ Prelude.Nothing -> Data.Monoid.mempty+ (Prelude.Just _v)+ -> (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 90)+ ((Prelude..)+ (\ bs+ -> (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt+ (Prelude.fromIntegral+ (Data.ByteString.length bs)))+ (Data.ProtoLens.Encoding.Bytes.putBytes+ bs))+ Data.ProtoLens.encodeMessage _v))+ (Data.ProtoLens.Encoding.Wire.buildFieldSet+ (Lens.Family2.view+ Data.ProtoLens.unknownFields _x))))))))))))+instance Control.DeepSeq.NFData InvoiceHTLC where+ rnf+ = \ x__+ -> Control.DeepSeq.deepseq+ (_InvoiceHTLC'_unknownFields x__)+ (Control.DeepSeq.deepseq+ (_InvoiceHTLC'chanId x__)+ (Control.DeepSeq.deepseq+ (_InvoiceHTLC'htlcIndex x__)+ (Control.DeepSeq.deepseq+ (_InvoiceHTLC'amtMsat x__)+ (Control.DeepSeq.deepseq+ (_InvoiceHTLC'acceptHeight x__)+ (Control.DeepSeq.deepseq+ (_InvoiceHTLC'acceptTime x__)+ (Control.DeepSeq.deepseq+ (_InvoiceHTLC'resolveTime x__)+ (Control.DeepSeq.deepseq+ (_InvoiceHTLC'expiryHeight x__)+ (Control.DeepSeq.deepseq+ (_InvoiceHTLC'state x__)+ (Control.DeepSeq.deepseq+ (_InvoiceHTLC'customRecords x__)+ (Control.DeepSeq.deepseq+ (_InvoiceHTLC'mppTotalAmtMsat x__)+ (Control.DeepSeq.deepseq+ (_InvoiceHTLC'amp x__) ())))))))))))+{- | Fields :+ + * 'Proto.Lnrpc.Ln1_Fields.key' @:: Lens' InvoiceHTLC'CustomRecordsEntry Data.Word.Word64@+ * 'Proto.Lnrpc.Ln1_Fields.value' @:: Lens' InvoiceHTLC'CustomRecordsEntry Data.ByteString.ByteString@ -}+data InvoiceHTLC'CustomRecordsEntry+ = InvoiceHTLC'CustomRecordsEntry'_constructor {_InvoiceHTLC'CustomRecordsEntry'key :: !Data.Word.Word64,+ _InvoiceHTLC'CustomRecordsEntry'value :: !Data.ByteString.ByteString,+ _InvoiceHTLC'CustomRecordsEntry'_unknownFields :: !Data.ProtoLens.FieldSet}+ deriving stock (Prelude.Eq, Prelude.Ord, GHC.Generics.Generic)+instance Prelude.Show InvoiceHTLC'CustomRecordsEntry where+ showsPrec _ __x __s+ = Prelude.showChar+ '{'+ (Prelude.showString+ (Data.ProtoLens.showMessageShort __x) (Prelude.showChar '}' __s))+instance Text.PrettyPrint.GenericPretty.Out InvoiceHTLC'CustomRecordsEntry+instance Data.ProtoLens.Field.HasField InvoiceHTLC'CustomRecordsEntry "key" Data.Word.Word64 where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _InvoiceHTLC'CustomRecordsEntry'key+ (\ x__ y__ -> x__ {_InvoiceHTLC'CustomRecordsEntry'key = y__}))+ Prelude.id+instance Data.ProtoLens.Field.HasField InvoiceHTLC'CustomRecordsEntry "value" Data.ByteString.ByteString where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _InvoiceHTLC'CustomRecordsEntry'value+ (\ x__ y__ -> x__ {_InvoiceHTLC'CustomRecordsEntry'value = y__}))+ Prelude.id+instance Data.ProtoLens.Message InvoiceHTLC'CustomRecordsEntry where+ messageName _+ = Data.Text.pack "lnrpc.InvoiceHTLC.CustomRecordsEntry"+ packedMessageDescriptor _+ = "\n\+ \\DC2CustomRecordsEntry\DC2\DLE\n\+ \\ETXkey\CAN\SOH \SOH(\EOTR\ETXkey\DC2\DC4\n\+ \\ENQvalue\CAN\STX \SOH(\fR\ENQvalue:\STX8\SOH"+ packedFileDescriptor _ = packedFileDescriptor+ fieldsByTag+ = let+ key__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "key"+ (Data.ProtoLens.ScalarField Data.ProtoLens.UInt64Field ::+ Data.ProtoLens.FieldTypeDescriptor Data.Word.Word64)+ (Data.ProtoLens.PlainField+ Data.ProtoLens.Optional (Data.ProtoLens.Field.field @"key")) ::+ Data.ProtoLens.FieldDescriptor InvoiceHTLC'CustomRecordsEntry+ value__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "value"+ (Data.ProtoLens.ScalarField Data.ProtoLens.BytesField ::+ Data.ProtoLens.FieldTypeDescriptor Data.ByteString.ByteString)+ (Data.ProtoLens.PlainField+ Data.ProtoLens.Optional (Data.ProtoLens.Field.field @"value")) ::+ Data.ProtoLens.FieldDescriptor InvoiceHTLC'CustomRecordsEntry+ in+ Data.Map.fromList+ [(Data.ProtoLens.Tag 1, key__field_descriptor),+ (Data.ProtoLens.Tag 2, value__field_descriptor)]+ unknownFields+ = Lens.Family2.Unchecked.lens+ _InvoiceHTLC'CustomRecordsEntry'_unknownFields+ (\ x__ y__+ -> x__ {_InvoiceHTLC'CustomRecordsEntry'_unknownFields = y__})+ defMessage+ = InvoiceHTLC'CustomRecordsEntry'_constructor+ {_InvoiceHTLC'CustomRecordsEntry'key = Data.ProtoLens.fieldDefault,+ _InvoiceHTLC'CustomRecordsEntry'value = Data.ProtoLens.fieldDefault,+ _InvoiceHTLC'CustomRecordsEntry'_unknownFields = []}+ parseMessage+ = let+ loop ::+ InvoiceHTLC'CustomRecordsEntry+ -> Data.ProtoLens.Encoding.Bytes.Parser InvoiceHTLC'CustomRecordsEntry+ loop x+ = do end <- Data.ProtoLens.Encoding.Bytes.atEnd+ if end then+ do (let missing = []+ in+ if Prelude.null missing then+ Prelude.return ()+ else+ Prelude.fail+ ((Prelude.++)+ "Missing required fields: "+ (Prelude.show (missing :: [Prelude.String]))))+ Prelude.return+ (Lens.Family2.over+ Data.ProtoLens.unknownFields (\ !t -> Prelude.reverse t) x)+ else+ do tag <- Data.ProtoLens.Encoding.Bytes.getVarInt+ case tag of+ 8 -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ Data.ProtoLens.Encoding.Bytes.getVarInt "key"+ loop (Lens.Family2.set (Data.ProtoLens.Field.field @"key") y x)+ 18+ -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (do len <- Data.ProtoLens.Encoding.Bytes.getVarInt+ Data.ProtoLens.Encoding.Bytes.getBytes+ (Prelude.fromIntegral len))+ "value"+ loop (Lens.Family2.set (Data.ProtoLens.Field.field @"value") y x)+ wire+ -> do !y <- Data.ProtoLens.Encoding.Wire.parseTaggedValueFromWire+ wire+ loop+ (Lens.Family2.over+ Data.ProtoLens.unknownFields (\ !t -> (:) y t) x)+ in+ (Data.ProtoLens.Encoding.Bytes.<?>)+ (do loop Data.ProtoLens.defMessage) "CustomRecordsEntry"+ buildMessage+ = \ _x+ -> (Data.Monoid.<>)+ (let _v = Lens.Family2.view (Data.ProtoLens.Field.field @"key") _x+ in+ if (Prelude.==) _v Data.ProtoLens.fieldDefault then+ Data.Monoid.mempty+ else+ (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 8)+ (Data.ProtoLens.Encoding.Bytes.putVarInt _v))+ ((Data.Monoid.<>)+ (let+ _v = Lens.Family2.view (Data.ProtoLens.Field.field @"value") _x+ in+ if (Prelude.==) _v Data.ProtoLens.fieldDefault then+ Data.Monoid.mempty+ else+ (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 18)+ ((\ bs+ -> (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt+ (Prelude.fromIntegral (Data.ByteString.length bs)))+ (Data.ProtoLens.Encoding.Bytes.putBytes bs))+ _v))+ (Data.ProtoLens.Encoding.Wire.buildFieldSet+ (Lens.Family2.view Data.ProtoLens.unknownFields _x)))+instance Control.DeepSeq.NFData InvoiceHTLC'CustomRecordsEntry where+ rnf+ = \ x__+ -> Control.DeepSeq.deepseq+ (_InvoiceHTLC'CustomRecordsEntry'_unknownFields x__)+ (Control.DeepSeq.deepseq+ (_InvoiceHTLC'CustomRecordsEntry'key x__)+ (Control.DeepSeq.deepseq+ (_InvoiceHTLC'CustomRecordsEntry'value x__) ()))+newtype InvoiceHTLCState'UnrecognizedValue+ = InvoiceHTLCState'UnrecognizedValue Data.Int.Int32+ deriving stock (Prelude.Eq,+ Prelude.Ord,+ Prelude.Show,+ GHC.Generics.Generic)+instance Text.PrettyPrint.GenericPretty.Out InvoiceHTLCState'UnrecognizedValue+data InvoiceHTLCState+ = ACCEPTED |+ SETTLED |+ CANCELED |+ InvoiceHTLCState'Unrecognized !InvoiceHTLCState'UnrecognizedValue+ deriving stock (Prelude.Show,+ Prelude.Eq,+ Prelude.Ord,+ GHC.Generics.Generic)+instance Data.ProtoLens.MessageEnum InvoiceHTLCState where+ maybeToEnum 0 = Prelude.Just ACCEPTED+ maybeToEnum 1 = Prelude.Just SETTLED+ maybeToEnum 2 = Prelude.Just CANCELED+ maybeToEnum k+ = Prelude.Just+ (InvoiceHTLCState'Unrecognized+ (InvoiceHTLCState'UnrecognizedValue (Prelude.fromIntegral k)))+ showEnum ACCEPTED = "ACCEPTED"+ showEnum SETTLED = "SETTLED"+ showEnum CANCELED = "CANCELED"+ showEnum+ (InvoiceHTLCState'Unrecognized (InvoiceHTLCState'UnrecognizedValue k))+ = Prelude.show k+ readEnum k+ | (Prelude.==) k "ACCEPTED" = Prelude.Just ACCEPTED+ | (Prelude.==) k "SETTLED" = Prelude.Just SETTLED+ | (Prelude.==) k "CANCELED" = Prelude.Just CANCELED+ | Prelude.otherwise+ = (Prelude.>>=) (Text.Read.readMaybe k) Data.ProtoLens.maybeToEnum+instance Prelude.Bounded InvoiceHTLCState where+ minBound = ACCEPTED+ maxBound = CANCELED+instance Prelude.Enum InvoiceHTLCState where+ toEnum k__+ = Prelude.maybe+ (Prelude.error+ ((Prelude.++)+ "toEnum: unknown value for enum InvoiceHTLCState: "+ (Prelude.show k__)))+ Prelude.id (Data.ProtoLens.maybeToEnum k__)+ fromEnum ACCEPTED = 0+ fromEnum SETTLED = 1+ fromEnum CANCELED = 2+ fromEnum+ (InvoiceHTLCState'Unrecognized (InvoiceHTLCState'UnrecognizedValue k))+ = Prelude.fromIntegral k+ succ CANCELED+ = Prelude.error+ "InvoiceHTLCState.succ: bad argument CANCELED. This value would be out of bounds."+ succ ACCEPTED = SETTLED+ succ SETTLED = CANCELED+ succ (InvoiceHTLCState'Unrecognized _)+ = Prelude.error+ "InvoiceHTLCState.succ: bad argument: unrecognized value"+ pred ACCEPTED+ = Prelude.error+ "InvoiceHTLCState.pred: bad argument ACCEPTED. This value would be out of bounds."+ pred SETTLED = ACCEPTED+ pred CANCELED = SETTLED+ pred (InvoiceHTLCState'Unrecognized _)+ = Prelude.error+ "InvoiceHTLCState.pred: bad argument: unrecognized value"+ enumFrom = Data.ProtoLens.Message.Enum.messageEnumFrom+ enumFromTo = Data.ProtoLens.Message.Enum.messageEnumFromTo+ enumFromThen = Data.ProtoLens.Message.Enum.messageEnumFromThen+ enumFromThenTo = Data.ProtoLens.Message.Enum.messageEnumFromThenTo+instance Data.ProtoLens.FieldDefault InvoiceHTLCState where+ fieldDefault = ACCEPTED+instance Control.DeepSeq.NFData InvoiceHTLCState where+ rnf x__ = Prelude.seq x__ ()+instance Text.PrettyPrint.GenericPretty.Out InvoiceHTLCState+{- | Fields :+ + * 'Proto.Lnrpc.Ln1_Fields.addIndex' @:: Lens' InvoiceSubscription Data.Word.Word64@+ * 'Proto.Lnrpc.Ln1_Fields.settleIndex' @:: Lens' InvoiceSubscription Data.Word.Word64@ -}+data InvoiceSubscription+ = InvoiceSubscription'_constructor {_InvoiceSubscription'addIndex :: !Data.Word.Word64,+ _InvoiceSubscription'settleIndex :: !Data.Word.Word64,+ _InvoiceSubscription'_unknownFields :: !Data.ProtoLens.FieldSet}+ deriving stock (Prelude.Eq, Prelude.Ord, GHC.Generics.Generic)+instance Prelude.Show InvoiceSubscription where+ showsPrec _ __x __s+ = Prelude.showChar+ '{'+ (Prelude.showString+ (Data.ProtoLens.showMessageShort __x) (Prelude.showChar '}' __s))+instance Text.PrettyPrint.GenericPretty.Out InvoiceSubscription+instance Data.ProtoLens.Field.HasField InvoiceSubscription "addIndex" Data.Word.Word64 where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _InvoiceSubscription'addIndex+ (\ x__ y__ -> x__ {_InvoiceSubscription'addIndex = y__}))+ Prelude.id+instance Data.ProtoLens.Field.HasField InvoiceSubscription "settleIndex" Data.Word.Word64 where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _InvoiceSubscription'settleIndex+ (\ x__ y__ -> x__ {_InvoiceSubscription'settleIndex = y__}))+ Prelude.id+instance Data.ProtoLens.Message InvoiceSubscription where+ messageName _ = Data.Text.pack "lnrpc.InvoiceSubscription"+ packedMessageDescriptor _+ = "\n\+ \\DC3InvoiceSubscription\DC2\ESC\n\+ \\tadd_index\CAN\SOH \SOH(\EOTR\baddIndex\DC2!\n\+ \\fsettle_index\CAN\STX \SOH(\EOTR\vsettleIndex"+ packedFileDescriptor _ = packedFileDescriptor+ fieldsByTag+ = let+ addIndex__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "add_index"+ (Data.ProtoLens.ScalarField Data.ProtoLens.UInt64Field ::+ Data.ProtoLens.FieldTypeDescriptor Data.Word.Word64)+ (Data.ProtoLens.PlainField+ Data.ProtoLens.Optional+ (Data.ProtoLens.Field.field @"addIndex")) ::+ Data.ProtoLens.FieldDescriptor InvoiceSubscription+ settleIndex__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "settle_index"+ (Data.ProtoLens.ScalarField Data.ProtoLens.UInt64Field ::+ Data.ProtoLens.FieldTypeDescriptor Data.Word.Word64)+ (Data.ProtoLens.PlainField+ Data.ProtoLens.Optional+ (Data.ProtoLens.Field.field @"settleIndex")) ::+ Data.ProtoLens.FieldDescriptor InvoiceSubscription+ in+ Data.Map.fromList+ [(Data.ProtoLens.Tag 1, addIndex__field_descriptor),+ (Data.ProtoLens.Tag 2, settleIndex__field_descriptor)]+ unknownFields+ = Lens.Family2.Unchecked.lens+ _InvoiceSubscription'_unknownFields+ (\ x__ y__ -> x__ {_InvoiceSubscription'_unknownFields = y__})+ defMessage+ = InvoiceSubscription'_constructor+ {_InvoiceSubscription'addIndex = Data.ProtoLens.fieldDefault,+ _InvoiceSubscription'settleIndex = Data.ProtoLens.fieldDefault,+ _InvoiceSubscription'_unknownFields = []}+ parseMessage+ = let+ loop ::+ InvoiceSubscription+ -> Data.ProtoLens.Encoding.Bytes.Parser InvoiceSubscription+ loop x+ = do end <- Data.ProtoLens.Encoding.Bytes.atEnd+ if end then+ do (let missing = []+ in+ if Prelude.null missing then+ Prelude.return ()+ else+ Prelude.fail+ ((Prelude.++)+ "Missing required fields: "+ (Prelude.show (missing :: [Prelude.String]))))+ Prelude.return+ (Lens.Family2.over+ Data.ProtoLens.unknownFields (\ !t -> Prelude.reverse t) x)+ else+ do tag <- Data.ProtoLens.Encoding.Bytes.getVarInt+ case tag of+ 8 -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ Data.ProtoLens.Encoding.Bytes.getVarInt "add_index"+ loop+ (Lens.Family2.set (Data.ProtoLens.Field.field @"addIndex") y x)+ 16+ -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ Data.ProtoLens.Encoding.Bytes.getVarInt "settle_index"+ loop+ (Lens.Family2.set (Data.ProtoLens.Field.field @"settleIndex") y x)+ wire+ -> do !y <- Data.ProtoLens.Encoding.Wire.parseTaggedValueFromWire+ wire+ loop+ (Lens.Family2.over+ Data.ProtoLens.unknownFields (\ !t -> (:) y t) x)+ in+ (Data.ProtoLens.Encoding.Bytes.<?>)+ (do loop Data.ProtoLens.defMessage) "InvoiceSubscription"+ buildMessage+ = \ _x+ -> (Data.Monoid.<>)+ (let+ _v = Lens.Family2.view (Data.ProtoLens.Field.field @"addIndex") _x+ in+ if (Prelude.==) _v Data.ProtoLens.fieldDefault then+ Data.Monoid.mempty+ else+ (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 8)+ (Data.ProtoLens.Encoding.Bytes.putVarInt _v))+ ((Data.Monoid.<>)+ (let+ _v+ = Lens.Family2.view (Data.ProtoLens.Field.field @"settleIndex") _x+ in+ if (Prelude.==) _v Data.ProtoLens.fieldDefault then+ Data.Monoid.mempty+ else+ (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 16)+ (Data.ProtoLens.Encoding.Bytes.putVarInt _v))+ (Data.ProtoLens.Encoding.Wire.buildFieldSet+ (Lens.Family2.view Data.ProtoLens.unknownFields _x)))+instance Control.DeepSeq.NFData InvoiceSubscription where+ rnf+ = \ x__+ -> Control.DeepSeq.deepseq+ (_InvoiceSubscription'_unknownFields x__)+ (Control.DeepSeq.deepseq+ (_InvoiceSubscription'addIndex x__)+ (Control.DeepSeq.deepseq+ (_InvoiceSubscription'settleIndex x__) ()))+{- | Fields :+ + * 'Proto.Lnrpc.Ln1_Fields.pendingOnly' @:: Lens' ListInvoiceRequest Prelude.Bool@+ * 'Proto.Lnrpc.Ln1_Fields.indexOffset' @:: Lens' ListInvoiceRequest Data.Word.Word64@+ * 'Proto.Lnrpc.Ln1_Fields.numMaxInvoices' @:: Lens' ListInvoiceRequest Data.Word.Word64@+ * 'Proto.Lnrpc.Ln1_Fields.reversed' @:: Lens' ListInvoiceRequest Prelude.Bool@ -}+data ListInvoiceRequest+ = ListInvoiceRequest'_constructor {_ListInvoiceRequest'pendingOnly :: !Prelude.Bool,+ _ListInvoiceRequest'indexOffset :: !Data.Word.Word64,+ _ListInvoiceRequest'numMaxInvoices :: !Data.Word.Word64,+ _ListInvoiceRequest'reversed :: !Prelude.Bool,+ _ListInvoiceRequest'_unknownFields :: !Data.ProtoLens.FieldSet}+ deriving stock (Prelude.Eq, Prelude.Ord, GHC.Generics.Generic)+instance Prelude.Show ListInvoiceRequest where+ showsPrec _ __x __s+ = Prelude.showChar+ '{'+ (Prelude.showString+ (Data.ProtoLens.showMessageShort __x) (Prelude.showChar '}' __s))+instance Text.PrettyPrint.GenericPretty.Out ListInvoiceRequest+instance Data.ProtoLens.Field.HasField ListInvoiceRequest "pendingOnly" Prelude.Bool where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _ListInvoiceRequest'pendingOnly+ (\ x__ y__ -> x__ {_ListInvoiceRequest'pendingOnly = y__}))+ Prelude.id+instance Data.ProtoLens.Field.HasField ListInvoiceRequest "indexOffset" Data.Word.Word64 where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _ListInvoiceRequest'indexOffset+ (\ x__ y__ -> x__ {_ListInvoiceRequest'indexOffset = y__}))+ Prelude.id+instance Data.ProtoLens.Field.HasField ListInvoiceRequest "numMaxInvoices" Data.Word.Word64 where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _ListInvoiceRequest'numMaxInvoices+ (\ x__ y__ -> x__ {_ListInvoiceRequest'numMaxInvoices = y__}))+ Prelude.id+instance Data.ProtoLens.Field.HasField ListInvoiceRequest "reversed" Prelude.Bool where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _ListInvoiceRequest'reversed+ (\ x__ y__ -> x__ {_ListInvoiceRequest'reversed = y__}))+ Prelude.id+instance Data.ProtoLens.Message ListInvoiceRequest where+ messageName _ = Data.Text.pack "lnrpc.ListInvoiceRequest"+ packedMessageDescriptor _+ = "\n\+ \\DC2ListInvoiceRequest\DC2!\n\+ \\fpending_only\CAN\SOH \SOH(\bR\vpendingOnly\DC2!\n\+ \\findex_offset\CAN\EOT \SOH(\EOTR\vindexOffset\DC2(\n\+ \\DLEnum_max_invoices\CAN\ENQ \SOH(\EOTR\SOnumMaxInvoices\DC2\SUB\n\+ \\breversed\CAN\ACK \SOH(\bR\breversed"+ packedFileDescriptor _ = packedFileDescriptor+ fieldsByTag+ = let+ pendingOnly__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "pending_only"+ (Data.ProtoLens.ScalarField Data.ProtoLens.BoolField ::+ Data.ProtoLens.FieldTypeDescriptor Prelude.Bool)+ (Data.ProtoLens.PlainField+ Data.ProtoLens.Optional+ (Data.ProtoLens.Field.field @"pendingOnly")) ::+ Data.ProtoLens.FieldDescriptor ListInvoiceRequest+ indexOffset__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "index_offset"+ (Data.ProtoLens.ScalarField Data.ProtoLens.UInt64Field ::+ Data.ProtoLens.FieldTypeDescriptor Data.Word.Word64)+ (Data.ProtoLens.PlainField+ Data.ProtoLens.Optional+ (Data.ProtoLens.Field.field @"indexOffset")) ::+ Data.ProtoLens.FieldDescriptor ListInvoiceRequest+ numMaxInvoices__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "num_max_invoices"+ (Data.ProtoLens.ScalarField Data.ProtoLens.UInt64Field ::+ Data.ProtoLens.FieldTypeDescriptor Data.Word.Word64)+ (Data.ProtoLens.PlainField+ Data.ProtoLens.Optional+ (Data.ProtoLens.Field.field @"numMaxInvoices")) ::+ Data.ProtoLens.FieldDescriptor ListInvoiceRequest+ reversed__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "reversed"+ (Data.ProtoLens.ScalarField Data.ProtoLens.BoolField ::+ Data.ProtoLens.FieldTypeDescriptor Prelude.Bool)+ (Data.ProtoLens.PlainField+ Data.ProtoLens.Optional+ (Data.ProtoLens.Field.field @"reversed")) ::+ Data.ProtoLens.FieldDescriptor ListInvoiceRequest+ in+ Data.Map.fromList+ [(Data.ProtoLens.Tag 1, pendingOnly__field_descriptor),+ (Data.ProtoLens.Tag 4, indexOffset__field_descriptor),+ (Data.ProtoLens.Tag 5, numMaxInvoices__field_descriptor),+ (Data.ProtoLens.Tag 6, reversed__field_descriptor)]+ unknownFields+ = Lens.Family2.Unchecked.lens+ _ListInvoiceRequest'_unknownFields+ (\ x__ y__ -> x__ {_ListInvoiceRequest'_unknownFields = y__})+ defMessage+ = ListInvoiceRequest'_constructor+ {_ListInvoiceRequest'pendingOnly = Data.ProtoLens.fieldDefault,+ _ListInvoiceRequest'indexOffset = Data.ProtoLens.fieldDefault,+ _ListInvoiceRequest'numMaxInvoices = Data.ProtoLens.fieldDefault,+ _ListInvoiceRequest'reversed = Data.ProtoLens.fieldDefault,+ _ListInvoiceRequest'_unknownFields = []}+ parseMessage+ = let+ loop ::+ ListInvoiceRequest+ -> Data.ProtoLens.Encoding.Bytes.Parser ListInvoiceRequest+ loop x+ = do end <- Data.ProtoLens.Encoding.Bytes.atEnd+ if end then+ do (let missing = []+ in+ if Prelude.null missing then+ Prelude.return ()+ else+ Prelude.fail+ ((Prelude.++)+ "Missing required fields: "+ (Prelude.show (missing :: [Prelude.String]))))+ Prelude.return+ (Lens.Family2.over+ Data.ProtoLens.unknownFields (\ !t -> Prelude.reverse t) x)+ else+ do tag <- Data.ProtoLens.Encoding.Bytes.getVarInt+ case tag of+ 8 -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (Prelude.fmap+ ((Prelude./=) 0) Data.ProtoLens.Encoding.Bytes.getVarInt)+ "pending_only"+ loop+ (Lens.Family2.set (Data.ProtoLens.Field.field @"pendingOnly") y x)+ 32+ -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ Data.ProtoLens.Encoding.Bytes.getVarInt "index_offset"+ loop+ (Lens.Family2.set (Data.ProtoLens.Field.field @"indexOffset") y x)+ 40+ -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ Data.ProtoLens.Encoding.Bytes.getVarInt "num_max_invoices"+ loop+ (Lens.Family2.set+ (Data.ProtoLens.Field.field @"numMaxInvoices") y x)+ 48+ -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (Prelude.fmap+ ((Prelude./=) 0) Data.ProtoLens.Encoding.Bytes.getVarInt)+ "reversed"+ loop+ (Lens.Family2.set (Data.ProtoLens.Field.field @"reversed") y x)+ wire+ -> do !y <- Data.ProtoLens.Encoding.Wire.parseTaggedValueFromWire+ wire+ loop+ (Lens.Family2.over+ Data.ProtoLens.unknownFields (\ !t -> (:) y t) x)+ in+ (Data.ProtoLens.Encoding.Bytes.<?>)+ (do loop Data.ProtoLens.defMessage) "ListInvoiceRequest"+ buildMessage+ = \ _x+ -> (Data.Monoid.<>)+ (let+ _v+ = Lens.Family2.view (Data.ProtoLens.Field.field @"pendingOnly") _x+ in+ if (Prelude.==) _v Data.ProtoLens.fieldDefault then+ Data.Monoid.mempty+ else+ (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 8)+ ((Prelude..)+ Data.ProtoLens.Encoding.Bytes.putVarInt (\ b -> if b then 1 else 0)+ _v))+ ((Data.Monoid.<>)+ (let+ _v+ = Lens.Family2.view (Data.ProtoLens.Field.field @"indexOffset") _x+ in+ if (Prelude.==) _v Data.ProtoLens.fieldDefault then+ Data.Monoid.mempty+ else+ (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 32)+ (Data.ProtoLens.Encoding.Bytes.putVarInt _v))+ ((Data.Monoid.<>)+ (let+ _v+ = Lens.Family2.view+ (Data.ProtoLens.Field.field @"numMaxInvoices") _x+ in+ if (Prelude.==) _v Data.ProtoLens.fieldDefault then+ Data.Monoid.mempty+ else+ (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 40)+ (Data.ProtoLens.Encoding.Bytes.putVarInt _v))+ ((Data.Monoid.<>)+ (let+ _v = Lens.Family2.view (Data.ProtoLens.Field.field @"reversed") _x+ in+ if (Prelude.==) _v Data.ProtoLens.fieldDefault then+ Data.Monoid.mempty+ else+ (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 48)+ ((Prelude..)+ Data.ProtoLens.Encoding.Bytes.putVarInt+ (\ b -> if b then 1 else 0) _v))+ (Data.ProtoLens.Encoding.Wire.buildFieldSet+ (Lens.Family2.view Data.ProtoLens.unknownFields _x)))))+instance Control.DeepSeq.NFData ListInvoiceRequest where+ rnf+ = \ x__+ -> Control.DeepSeq.deepseq+ (_ListInvoiceRequest'_unknownFields x__)+ (Control.DeepSeq.deepseq+ (_ListInvoiceRequest'pendingOnly x__)+ (Control.DeepSeq.deepseq+ (_ListInvoiceRequest'indexOffset x__)+ (Control.DeepSeq.deepseq+ (_ListInvoiceRequest'numMaxInvoices x__)+ (Control.DeepSeq.deepseq (_ListInvoiceRequest'reversed x__) ()))))+{- | Fields :+ + * 'Proto.Lnrpc.Ln1_Fields.invoices' @:: Lens' ListInvoiceResponse [Invoice]@+ * 'Proto.Lnrpc.Ln1_Fields.vec'invoices' @:: Lens' ListInvoiceResponse (Data.Vector.Vector Invoice)@+ * 'Proto.Lnrpc.Ln1_Fields.lastIndexOffset' @:: Lens' ListInvoiceResponse Data.Word.Word64@+ * 'Proto.Lnrpc.Ln1_Fields.firstIndexOffset' @:: Lens' ListInvoiceResponse Data.Word.Word64@ -}+data ListInvoiceResponse+ = ListInvoiceResponse'_constructor {_ListInvoiceResponse'invoices :: !(Data.Vector.Vector Invoice),+ _ListInvoiceResponse'lastIndexOffset :: !Data.Word.Word64,+ _ListInvoiceResponse'firstIndexOffset :: !Data.Word.Word64,+ _ListInvoiceResponse'_unknownFields :: !Data.ProtoLens.FieldSet}+ deriving stock (Prelude.Eq, Prelude.Ord, GHC.Generics.Generic)+instance Prelude.Show ListInvoiceResponse where+ showsPrec _ __x __s+ = Prelude.showChar+ '{'+ (Prelude.showString+ (Data.ProtoLens.showMessageShort __x) (Prelude.showChar '}' __s))+instance Text.PrettyPrint.GenericPretty.Out ListInvoiceResponse+instance Data.ProtoLens.Field.HasField ListInvoiceResponse "invoices" [Invoice] where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _ListInvoiceResponse'invoices+ (\ x__ y__ -> x__ {_ListInvoiceResponse'invoices = y__}))+ (Lens.Family2.Unchecked.lens+ Data.Vector.Generic.toList+ (\ _ y__ -> Data.Vector.Generic.fromList y__))+instance Data.ProtoLens.Field.HasField ListInvoiceResponse "vec'invoices" (Data.Vector.Vector Invoice) where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _ListInvoiceResponse'invoices+ (\ x__ y__ -> x__ {_ListInvoiceResponse'invoices = y__}))+ Prelude.id+instance Data.ProtoLens.Field.HasField ListInvoiceResponse "lastIndexOffset" Data.Word.Word64 where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _ListInvoiceResponse'lastIndexOffset+ (\ x__ y__ -> x__ {_ListInvoiceResponse'lastIndexOffset = y__}))+ Prelude.id+instance Data.ProtoLens.Field.HasField ListInvoiceResponse "firstIndexOffset" Data.Word.Word64 where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _ListInvoiceResponse'firstIndexOffset+ (\ x__ y__ -> x__ {_ListInvoiceResponse'firstIndexOffset = y__}))+ Prelude.id+instance Data.ProtoLens.Message ListInvoiceResponse where+ messageName _ = Data.Text.pack "lnrpc.ListInvoiceResponse"+ packedMessageDescriptor _+ = "\n\+ \\DC3ListInvoiceResponse\DC2*\n\+ \\binvoices\CAN\SOH \ETX(\v2\SO.lnrpc.InvoiceR\binvoices\DC2*\n\+ \\DC1last_index_offset\CAN\STX \SOH(\EOTR\SIlastIndexOffset\DC2,\n\+ \\DC2first_index_offset\CAN\ETX \SOH(\EOTR\DLEfirstIndexOffset"+ packedFileDescriptor _ = packedFileDescriptor+ fieldsByTag+ = let+ invoices__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "invoices"+ (Data.ProtoLens.MessageField Data.ProtoLens.MessageType ::+ Data.ProtoLens.FieldTypeDescriptor Invoice)+ (Data.ProtoLens.RepeatedField+ Data.ProtoLens.Unpacked+ (Data.ProtoLens.Field.field @"invoices")) ::+ Data.ProtoLens.FieldDescriptor ListInvoiceResponse+ lastIndexOffset__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "last_index_offset"+ (Data.ProtoLens.ScalarField Data.ProtoLens.UInt64Field ::+ Data.ProtoLens.FieldTypeDescriptor Data.Word.Word64)+ (Data.ProtoLens.PlainField+ Data.ProtoLens.Optional+ (Data.ProtoLens.Field.field @"lastIndexOffset")) ::+ Data.ProtoLens.FieldDescriptor ListInvoiceResponse+ firstIndexOffset__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "first_index_offset"+ (Data.ProtoLens.ScalarField Data.ProtoLens.UInt64Field ::+ Data.ProtoLens.FieldTypeDescriptor Data.Word.Word64)+ (Data.ProtoLens.PlainField+ Data.ProtoLens.Optional+ (Data.ProtoLens.Field.field @"firstIndexOffset")) ::+ Data.ProtoLens.FieldDescriptor ListInvoiceResponse+ in+ Data.Map.fromList+ [(Data.ProtoLens.Tag 1, invoices__field_descriptor),+ (Data.ProtoLens.Tag 2, lastIndexOffset__field_descriptor),+ (Data.ProtoLens.Tag 3, firstIndexOffset__field_descriptor)]+ unknownFields+ = Lens.Family2.Unchecked.lens+ _ListInvoiceResponse'_unknownFields+ (\ x__ y__ -> x__ {_ListInvoiceResponse'_unknownFields = y__})+ defMessage+ = ListInvoiceResponse'_constructor+ {_ListInvoiceResponse'invoices = Data.Vector.Generic.empty,+ _ListInvoiceResponse'lastIndexOffset = Data.ProtoLens.fieldDefault,+ _ListInvoiceResponse'firstIndexOffset = Data.ProtoLens.fieldDefault,+ _ListInvoiceResponse'_unknownFields = []}+ parseMessage+ = let+ loop ::+ ListInvoiceResponse+ -> Data.ProtoLens.Encoding.Growing.Growing Data.Vector.Vector Data.ProtoLens.Encoding.Growing.RealWorld Invoice+ -> Data.ProtoLens.Encoding.Bytes.Parser ListInvoiceResponse+ loop x mutable'invoices+ = do end <- Data.ProtoLens.Encoding.Bytes.atEnd+ if end then+ do frozen'invoices <- Data.ProtoLens.Encoding.Parser.Unsafe.unsafeLiftIO+ (Data.ProtoLens.Encoding.Growing.unsafeFreeze+ mutable'invoices)+ (let missing = []+ in+ if Prelude.null missing then+ Prelude.return ()+ else+ Prelude.fail+ ((Prelude.++)+ "Missing required fields: "+ (Prelude.show (missing :: [Prelude.String]))))+ Prelude.return+ (Lens.Family2.over+ Data.ProtoLens.unknownFields (\ !t -> Prelude.reverse t)+ (Lens.Family2.set+ (Data.ProtoLens.Field.field @"vec'invoices") frozen'invoices x))+ else+ do tag <- Data.ProtoLens.Encoding.Bytes.getVarInt+ case tag of+ 10+ -> do !y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (do len <- Data.ProtoLens.Encoding.Bytes.getVarInt+ Data.ProtoLens.Encoding.Bytes.isolate+ (Prelude.fromIntegral len)+ Data.ProtoLens.parseMessage)+ "invoices"+ v <- Data.ProtoLens.Encoding.Parser.Unsafe.unsafeLiftIO+ (Data.ProtoLens.Encoding.Growing.append mutable'invoices y)+ loop x v+ 16+ -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ Data.ProtoLens.Encoding.Bytes.getVarInt "last_index_offset"+ loop+ (Lens.Family2.set+ (Data.ProtoLens.Field.field @"lastIndexOffset") y x)+ mutable'invoices+ 24+ -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ Data.ProtoLens.Encoding.Bytes.getVarInt "first_index_offset"+ loop+ (Lens.Family2.set+ (Data.ProtoLens.Field.field @"firstIndexOffset") y x)+ mutable'invoices+ wire+ -> do !y <- Data.ProtoLens.Encoding.Wire.parseTaggedValueFromWire+ wire+ loop+ (Lens.Family2.over+ Data.ProtoLens.unknownFields (\ !t -> (:) y t) x)+ mutable'invoices+ in+ (Data.ProtoLens.Encoding.Bytes.<?>)+ (do mutable'invoices <- Data.ProtoLens.Encoding.Parser.Unsafe.unsafeLiftIO+ Data.ProtoLens.Encoding.Growing.new+ loop Data.ProtoLens.defMessage mutable'invoices)+ "ListInvoiceResponse"+ buildMessage+ = \ _x+ -> (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.foldMapBuilder+ (\ _v+ -> (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 10)+ ((Prelude..)+ (\ bs+ -> (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt+ (Prelude.fromIntegral (Data.ByteString.length bs)))+ (Data.ProtoLens.Encoding.Bytes.putBytes bs))+ Data.ProtoLens.encodeMessage _v))+ (Lens.Family2.view+ (Data.ProtoLens.Field.field @"vec'invoices") _x))+ ((Data.Monoid.<>)+ (let+ _v+ = Lens.Family2.view+ (Data.ProtoLens.Field.field @"lastIndexOffset") _x+ in+ if (Prelude.==) _v Data.ProtoLens.fieldDefault then+ Data.Monoid.mempty+ else+ (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 16)+ (Data.ProtoLens.Encoding.Bytes.putVarInt _v))+ ((Data.Monoid.<>)+ (let+ _v+ = Lens.Family2.view+ (Data.ProtoLens.Field.field @"firstIndexOffset") _x+ in+ if (Prelude.==) _v Data.ProtoLens.fieldDefault then+ Data.Monoid.mempty+ else+ (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 24)+ (Data.ProtoLens.Encoding.Bytes.putVarInt _v))+ (Data.ProtoLens.Encoding.Wire.buildFieldSet+ (Lens.Family2.view Data.ProtoLens.unknownFields _x))))+instance Control.DeepSeq.NFData ListInvoiceResponse where+ rnf+ = \ x__+ -> Control.DeepSeq.deepseq+ (_ListInvoiceResponse'_unknownFields x__)+ (Control.DeepSeq.deepseq+ (_ListInvoiceResponse'invoices x__)+ (Control.DeepSeq.deepseq+ (_ListInvoiceResponse'lastIndexOffset x__)+ (Control.DeepSeq.deepseq+ (_ListInvoiceResponse'firstIndexOffset x__) ())))+{- | Fields :+ -}+data ListMacaroonIDsRequest+ = ListMacaroonIDsRequest'_constructor {_ListMacaroonIDsRequest'_unknownFields :: !Data.ProtoLens.FieldSet}+ deriving stock (Prelude.Eq, Prelude.Ord, GHC.Generics.Generic)+instance Prelude.Show ListMacaroonIDsRequest where+ showsPrec _ __x __s+ = Prelude.showChar+ '{'+ (Prelude.showString+ (Data.ProtoLens.showMessageShort __x) (Prelude.showChar '}' __s))+instance Text.PrettyPrint.GenericPretty.Out ListMacaroonIDsRequest+instance Data.ProtoLens.Message ListMacaroonIDsRequest where+ messageName _ = Data.Text.pack "lnrpc.ListMacaroonIDsRequest"+ packedMessageDescriptor _+ = "\n\+ \\SYNListMacaroonIDsRequest"+ packedFileDescriptor _ = packedFileDescriptor+ fieldsByTag = let in Data.Map.fromList []+ unknownFields+ = Lens.Family2.Unchecked.lens+ _ListMacaroonIDsRequest'_unknownFields+ (\ x__ y__ -> x__ {_ListMacaroonIDsRequest'_unknownFields = y__})+ defMessage+ = ListMacaroonIDsRequest'_constructor+ {_ListMacaroonIDsRequest'_unknownFields = []}+ parseMessage+ = let+ loop ::+ ListMacaroonIDsRequest+ -> Data.ProtoLens.Encoding.Bytes.Parser ListMacaroonIDsRequest+ loop x+ = do end <- Data.ProtoLens.Encoding.Bytes.atEnd+ if end then+ do (let missing = []+ in+ if Prelude.null missing then+ Prelude.return ()+ else+ Prelude.fail+ ((Prelude.++)+ "Missing required fields: "+ (Prelude.show (missing :: [Prelude.String]))))+ Prelude.return+ (Lens.Family2.over+ Data.ProtoLens.unknownFields (\ !t -> Prelude.reverse t) x)+ else+ do tag <- Data.ProtoLens.Encoding.Bytes.getVarInt+ case tag of {+ wire+ -> do !y <- Data.ProtoLens.Encoding.Wire.parseTaggedValueFromWire+ wire+ loop+ (Lens.Family2.over+ Data.ProtoLens.unknownFields (\ !t -> (:) y t) x) }+ in+ (Data.ProtoLens.Encoding.Bytes.<?>)+ (do loop Data.ProtoLens.defMessage) "ListMacaroonIDsRequest"+ buildMessage+ = \ _x+ -> Data.ProtoLens.Encoding.Wire.buildFieldSet+ (Lens.Family2.view Data.ProtoLens.unknownFields _x)+instance Control.DeepSeq.NFData ListMacaroonIDsRequest where+ rnf+ = \ x__+ -> Control.DeepSeq.deepseq+ (_ListMacaroonIDsRequest'_unknownFields x__) ()+{- | Fields :+ + * 'Proto.Lnrpc.Ln1_Fields.rootKeyIds' @:: Lens' ListMacaroonIDsResponse [Data.Word.Word64]@+ * 'Proto.Lnrpc.Ln1_Fields.vec'rootKeyIds' @:: Lens' ListMacaroonIDsResponse (Data.Vector.Unboxed.Vector Data.Word.Word64)@ -}+data ListMacaroonIDsResponse+ = ListMacaroonIDsResponse'_constructor {_ListMacaroonIDsResponse'rootKeyIds :: !(Data.Vector.Unboxed.Vector Data.Word.Word64),+ _ListMacaroonIDsResponse'_unknownFields :: !Data.ProtoLens.FieldSet}+ deriving stock (Prelude.Eq, Prelude.Ord, GHC.Generics.Generic)+instance Prelude.Show ListMacaroonIDsResponse where+ showsPrec _ __x __s+ = Prelude.showChar+ '{'+ (Prelude.showString+ (Data.ProtoLens.showMessageShort __x) (Prelude.showChar '}' __s))+instance Text.PrettyPrint.GenericPretty.Out ListMacaroonIDsResponse+instance Data.ProtoLens.Field.HasField ListMacaroonIDsResponse "rootKeyIds" [Data.Word.Word64] where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _ListMacaroonIDsResponse'rootKeyIds+ (\ x__ y__ -> x__ {_ListMacaroonIDsResponse'rootKeyIds = y__}))+ (Lens.Family2.Unchecked.lens+ Data.Vector.Generic.toList+ (\ _ y__ -> Data.Vector.Generic.fromList y__))+instance Data.ProtoLens.Field.HasField ListMacaroonIDsResponse "vec'rootKeyIds" (Data.Vector.Unboxed.Vector Data.Word.Word64) where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _ListMacaroonIDsResponse'rootKeyIds+ (\ x__ y__ -> x__ {_ListMacaroonIDsResponse'rootKeyIds = y__}))+ Prelude.id+instance Data.ProtoLens.Message ListMacaroonIDsResponse where+ messageName _ = Data.Text.pack "lnrpc.ListMacaroonIDsResponse"+ packedMessageDescriptor _+ = "\n\+ \\ETBListMacaroonIDsResponse\DC2 \n\+ \\froot_key_ids\CAN\SOH \ETX(\EOTR\n\+ \rootKeyIds"+ packedFileDescriptor _ = packedFileDescriptor+ fieldsByTag+ = let+ rootKeyIds__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "root_key_ids"+ (Data.ProtoLens.ScalarField Data.ProtoLens.UInt64Field ::+ Data.ProtoLens.FieldTypeDescriptor Data.Word.Word64)+ (Data.ProtoLens.RepeatedField+ Data.ProtoLens.Packed+ (Data.ProtoLens.Field.field @"rootKeyIds")) ::+ Data.ProtoLens.FieldDescriptor ListMacaroonIDsResponse+ in+ Data.Map.fromList+ [(Data.ProtoLens.Tag 1, rootKeyIds__field_descriptor)]+ unknownFields+ = Lens.Family2.Unchecked.lens+ _ListMacaroonIDsResponse'_unknownFields+ (\ x__ y__ -> x__ {_ListMacaroonIDsResponse'_unknownFields = y__})+ defMessage+ = ListMacaroonIDsResponse'_constructor+ {_ListMacaroonIDsResponse'rootKeyIds = Data.Vector.Generic.empty,+ _ListMacaroonIDsResponse'_unknownFields = []}+ parseMessage+ = let+ loop ::+ ListMacaroonIDsResponse+ -> Data.ProtoLens.Encoding.Growing.Growing Data.Vector.Unboxed.Vector Data.ProtoLens.Encoding.Growing.RealWorld Data.Word.Word64+ -> Data.ProtoLens.Encoding.Bytes.Parser ListMacaroonIDsResponse+ loop x mutable'rootKeyIds+ = do end <- Data.ProtoLens.Encoding.Bytes.atEnd+ if end then+ do frozen'rootKeyIds <- Data.ProtoLens.Encoding.Parser.Unsafe.unsafeLiftIO+ (Data.ProtoLens.Encoding.Growing.unsafeFreeze+ mutable'rootKeyIds)+ (let missing = []+ in+ if Prelude.null missing then+ Prelude.return ()+ else+ Prelude.fail+ ((Prelude.++)+ "Missing required fields: "+ (Prelude.show (missing :: [Prelude.String]))))+ Prelude.return+ (Lens.Family2.over+ Data.ProtoLens.unknownFields (\ !t -> Prelude.reverse t)+ (Lens.Family2.set+ (Data.ProtoLens.Field.field @"vec'rootKeyIds") frozen'rootKeyIds+ x))+ else+ do tag <- Data.ProtoLens.Encoding.Bytes.getVarInt+ case tag of+ 8 -> do !y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ Data.ProtoLens.Encoding.Bytes.getVarInt "root_key_ids"+ v <- Data.ProtoLens.Encoding.Parser.Unsafe.unsafeLiftIO+ (Data.ProtoLens.Encoding.Growing.append mutable'rootKeyIds y)+ loop x v+ 10+ -> do y <- do len <- Data.ProtoLens.Encoding.Bytes.getVarInt+ Data.ProtoLens.Encoding.Bytes.isolate+ (Prelude.fromIntegral len)+ ((let+ ploop qs+ = do packedEnd <- Data.ProtoLens.Encoding.Bytes.atEnd+ if packedEnd then+ Prelude.return qs+ else+ do !q <- (Data.ProtoLens.Encoding.Bytes.<?>)+ Data.ProtoLens.Encoding.Bytes.getVarInt+ "root_key_ids"+ qs' <- Data.ProtoLens.Encoding.Parser.Unsafe.unsafeLiftIO+ (Data.ProtoLens.Encoding.Growing.append+ qs q)+ ploop qs'+ in ploop)+ mutable'rootKeyIds)+ loop x y+ wire+ -> do !y <- Data.ProtoLens.Encoding.Wire.parseTaggedValueFromWire+ wire+ loop+ (Lens.Family2.over+ Data.ProtoLens.unknownFields (\ !t -> (:) y t) x)+ mutable'rootKeyIds+ in+ (Data.ProtoLens.Encoding.Bytes.<?>)+ (do mutable'rootKeyIds <- Data.ProtoLens.Encoding.Parser.Unsafe.unsafeLiftIO+ Data.ProtoLens.Encoding.Growing.new+ loop Data.ProtoLens.defMessage mutable'rootKeyIds)+ "ListMacaroonIDsResponse"+ buildMessage+ = \ _x+ -> (Data.Monoid.<>)+ (let+ p = Lens.Family2.view+ (Data.ProtoLens.Field.field @"vec'rootKeyIds") _x+ in+ if Data.Vector.Generic.null p then+ Data.Monoid.mempty+ else+ (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 10)+ ((\ bs+ -> (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt+ (Prelude.fromIntegral (Data.ByteString.length bs)))+ (Data.ProtoLens.Encoding.Bytes.putBytes bs))+ (Data.ProtoLens.Encoding.Bytes.runBuilder+ (Data.ProtoLens.Encoding.Bytes.foldMapBuilder+ Data.ProtoLens.Encoding.Bytes.putVarInt p))))+ (Data.ProtoLens.Encoding.Wire.buildFieldSet+ (Lens.Family2.view Data.ProtoLens.unknownFields _x))+instance Control.DeepSeq.NFData ListMacaroonIDsResponse where+ rnf+ = \ x__+ -> Control.DeepSeq.deepseq+ (_ListMacaroonIDsResponse'_unknownFields x__)+ (Control.DeepSeq.deepseq+ (_ListMacaroonIDsResponse'rootKeyIds x__) ())+{- | Fields :+ + * 'Proto.Lnrpc.Ln1_Fields.includeIncomplete' @:: Lens' ListPaymentsRequest Prelude.Bool@+ * 'Proto.Lnrpc.Ln1_Fields.indexOffset' @:: Lens' ListPaymentsRequest Data.Word.Word64@+ * 'Proto.Lnrpc.Ln1_Fields.maxPayments' @:: Lens' ListPaymentsRequest Data.Word.Word64@+ * 'Proto.Lnrpc.Ln1_Fields.reversed' @:: Lens' ListPaymentsRequest Prelude.Bool@ -}+data ListPaymentsRequest+ = ListPaymentsRequest'_constructor {_ListPaymentsRequest'includeIncomplete :: !Prelude.Bool,+ _ListPaymentsRequest'indexOffset :: !Data.Word.Word64,+ _ListPaymentsRequest'maxPayments :: !Data.Word.Word64,+ _ListPaymentsRequest'reversed :: !Prelude.Bool,+ _ListPaymentsRequest'_unknownFields :: !Data.ProtoLens.FieldSet}+ deriving stock (Prelude.Eq, Prelude.Ord, GHC.Generics.Generic)+instance Prelude.Show ListPaymentsRequest where+ showsPrec _ __x __s+ = Prelude.showChar+ '{'+ (Prelude.showString+ (Data.ProtoLens.showMessageShort __x) (Prelude.showChar '}' __s))+instance Text.PrettyPrint.GenericPretty.Out ListPaymentsRequest+instance Data.ProtoLens.Field.HasField ListPaymentsRequest "includeIncomplete" Prelude.Bool where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _ListPaymentsRequest'includeIncomplete+ (\ x__ y__ -> x__ {_ListPaymentsRequest'includeIncomplete = y__}))+ Prelude.id+instance Data.ProtoLens.Field.HasField ListPaymentsRequest "indexOffset" Data.Word.Word64 where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _ListPaymentsRequest'indexOffset+ (\ x__ y__ -> x__ {_ListPaymentsRequest'indexOffset = y__}))+ Prelude.id+instance Data.ProtoLens.Field.HasField ListPaymentsRequest "maxPayments" Data.Word.Word64 where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _ListPaymentsRequest'maxPayments+ (\ x__ y__ -> x__ {_ListPaymentsRequest'maxPayments = y__}))+ Prelude.id+instance Data.ProtoLens.Field.HasField ListPaymentsRequest "reversed" Prelude.Bool where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _ListPaymentsRequest'reversed+ (\ x__ y__ -> x__ {_ListPaymentsRequest'reversed = y__}))+ Prelude.id+instance Data.ProtoLens.Message ListPaymentsRequest where+ messageName _ = Data.Text.pack "lnrpc.ListPaymentsRequest"+ packedMessageDescriptor _+ = "\n\+ \\DC3ListPaymentsRequest\DC2-\n\+ \\DC2include_incomplete\CAN\SOH \SOH(\bR\DC1includeIncomplete\DC2!\n\+ \\findex_offset\CAN\STX \SOH(\EOTR\vindexOffset\DC2!\n\+ \\fmax_payments\CAN\ETX \SOH(\EOTR\vmaxPayments\DC2\SUB\n\+ \\breversed\CAN\EOT \SOH(\bR\breversed"+ packedFileDescriptor _ = packedFileDescriptor+ fieldsByTag+ = let+ includeIncomplete__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "include_incomplete"+ (Data.ProtoLens.ScalarField Data.ProtoLens.BoolField ::+ Data.ProtoLens.FieldTypeDescriptor Prelude.Bool)+ (Data.ProtoLens.PlainField+ Data.ProtoLens.Optional+ (Data.ProtoLens.Field.field @"includeIncomplete")) ::+ Data.ProtoLens.FieldDescriptor ListPaymentsRequest+ indexOffset__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "index_offset"+ (Data.ProtoLens.ScalarField Data.ProtoLens.UInt64Field ::+ Data.ProtoLens.FieldTypeDescriptor Data.Word.Word64)+ (Data.ProtoLens.PlainField+ Data.ProtoLens.Optional+ (Data.ProtoLens.Field.field @"indexOffset")) ::+ Data.ProtoLens.FieldDescriptor ListPaymentsRequest+ maxPayments__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "max_payments"+ (Data.ProtoLens.ScalarField Data.ProtoLens.UInt64Field ::+ Data.ProtoLens.FieldTypeDescriptor Data.Word.Word64)+ (Data.ProtoLens.PlainField+ Data.ProtoLens.Optional+ (Data.ProtoLens.Field.field @"maxPayments")) ::+ Data.ProtoLens.FieldDescriptor ListPaymentsRequest+ reversed__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "reversed"+ (Data.ProtoLens.ScalarField Data.ProtoLens.BoolField ::+ Data.ProtoLens.FieldTypeDescriptor Prelude.Bool)+ (Data.ProtoLens.PlainField+ Data.ProtoLens.Optional+ (Data.ProtoLens.Field.field @"reversed")) ::+ Data.ProtoLens.FieldDescriptor ListPaymentsRequest+ in+ Data.Map.fromList+ [(Data.ProtoLens.Tag 1, includeIncomplete__field_descriptor),+ (Data.ProtoLens.Tag 2, indexOffset__field_descriptor),+ (Data.ProtoLens.Tag 3, maxPayments__field_descriptor),+ (Data.ProtoLens.Tag 4, reversed__field_descriptor)]+ unknownFields+ = Lens.Family2.Unchecked.lens+ _ListPaymentsRequest'_unknownFields+ (\ x__ y__ -> x__ {_ListPaymentsRequest'_unknownFields = y__})+ defMessage+ = ListPaymentsRequest'_constructor+ {_ListPaymentsRequest'includeIncomplete = Data.ProtoLens.fieldDefault,+ _ListPaymentsRequest'indexOffset = Data.ProtoLens.fieldDefault,+ _ListPaymentsRequest'maxPayments = Data.ProtoLens.fieldDefault,+ _ListPaymentsRequest'reversed = Data.ProtoLens.fieldDefault,+ _ListPaymentsRequest'_unknownFields = []}+ parseMessage+ = let+ loop ::+ ListPaymentsRequest+ -> Data.ProtoLens.Encoding.Bytes.Parser ListPaymentsRequest+ loop x+ = do end <- Data.ProtoLens.Encoding.Bytes.atEnd+ if end then+ do (let missing = []+ in+ if Prelude.null missing then+ Prelude.return ()+ else+ Prelude.fail+ ((Prelude.++)+ "Missing required fields: "+ (Prelude.show (missing :: [Prelude.String]))))+ Prelude.return+ (Lens.Family2.over+ Data.ProtoLens.unknownFields (\ !t -> Prelude.reverse t) x)+ else+ do tag <- Data.ProtoLens.Encoding.Bytes.getVarInt+ case tag of+ 8 -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (Prelude.fmap+ ((Prelude./=) 0) Data.ProtoLens.Encoding.Bytes.getVarInt)+ "include_incomplete"+ loop+ (Lens.Family2.set+ (Data.ProtoLens.Field.field @"includeIncomplete") y x)+ 16+ -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ Data.ProtoLens.Encoding.Bytes.getVarInt "index_offset"+ loop+ (Lens.Family2.set (Data.ProtoLens.Field.field @"indexOffset") y x)+ 24+ -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ Data.ProtoLens.Encoding.Bytes.getVarInt "max_payments"+ loop+ (Lens.Family2.set (Data.ProtoLens.Field.field @"maxPayments") y x)+ 32+ -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (Prelude.fmap+ ((Prelude./=) 0) Data.ProtoLens.Encoding.Bytes.getVarInt)+ "reversed"+ loop+ (Lens.Family2.set (Data.ProtoLens.Field.field @"reversed") y x)+ wire+ -> do !y <- Data.ProtoLens.Encoding.Wire.parseTaggedValueFromWire+ wire+ loop+ (Lens.Family2.over+ Data.ProtoLens.unknownFields (\ !t -> (:) y t) x)+ in+ (Data.ProtoLens.Encoding.Bytes.<?>)+ (do loop Data.ProtoLens.defMessage) "ListPaymentsRequest"+ buildMessage+ = \ _x+ -> (Data.Monoid.<>)+ (let+ _v+ = Lens.Family2.view+ (Data.ProtoLens.Field.field @"includeIncomplete") _x+ in+ if (Prelude.==) _v Data.ProtoLens.fieldDefault then+ Data.Monoid.mempty+ else+ (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 8)+ ((Prelude..)+ Data.ProtoLens.Encoding.Bytes.putVarInt (\ b -> if b then 1 else 0)+ _v))+ ((Data.Monoid.<>)+ (let+ _v+ = Lens.Family2.view (Data.ProtoLens.Field.field @"indexOffset") _x+ in+ if (Prelude.==) _v Data.ProtoLens.fieldDefault then+ Data.Monoid.mempty+ else+ (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 16)+ (Data.ProtoLens.Encoding.Bytes.putVarInt _v))+ ((Data.Monoid.<>)+ (let+ _v+ = Lens.Family2.view (Data.ProtoLens.Field.field @"maxPayments") _x+ in+ if (Prelude.==) _v Data.ProtoLens.fieldDefault then+ Data.Monoid.mempty+ else+ (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 24)+ (Data.ProtoLens.Encoding.Bytes.putVarInt _v))+ ((Data.Monoid.<>)+ (let+ _v = Lens.Family2.view (Data.ProtoLens.Field.field @"reversed") _x+ in+ if (Prelude.==) _v Data.ProtoLens.fieldDefault then+ Data.Monoid.mempty+ else+ (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 32)+ ((Prelude..)+ Data.ProtoLens.Encoding.Bytes.putVarInt+ (\ b -> if b then 1 else 0) _v))+ (Data.ProtoLens.Encoding.Wire.buildFieldSet+ (Lens.Family2.view Data.ProtoLens.unknownFields _x)))))+instance Control.DeepSeq.NFData ListPaymentsRequest where+ rnf+ = \ x__+ -> Control.DeepSeq.deepseq+ (_ListPaymentsRequest'_unknownFields x__)+ (Control.DeepSeq.deepseq+ (_ListPaymentsRequest'includeIncomplete x__)+ (Control.DeepSeq.deepseq+ (_ListPaymentsRequest'indexOffset x__)+ (Control.DeepSeq.deepseq+ (_ListPaymentsRequest'maxPayments x__)+ (Control.DeepSeq.deepseq (_ListPaymentsRequest'reversed x__) ()))))+{- | Fields :+ + * 'Proto.Lnrpc.Ln1_Fields.payments' @:: Lens' ListPaymentsResponse [Payment]@+ * 'Proto.Lnrpc.Ln1_Fields.vec'payments' @:: Lens' ListPaymentsResponse (Data.Vector.Vector Payment)@+ * 'Proto.Lnrpc.Ln1_Fields.firstIndexOffset' @:: Lens' ListPaymentsResponse Data.Word.Word64@+ * 'Proto.Lnrpc.Ln1_Fields.lastIndexOffset' @:: Lens' ListPaymentsResponse Data.Word.Word64@ -}+data ListPaymentsResponse+ = ListPaymentsResponse'_constructor {_ListPaymentsResponse'payments :: !(Data.Vector.Vector Payment),+ _ListPaymentsResponse'firstIndexOffset :: !Data.Word.Word64,+ _ListPaymentsResponse'lastIndexOffset :: !Data.Word.Word64,+ _ListPaymentsResponse'_unknownFields :: !Data.ProtoLens.FieldSet}+ deriving stock (Prelude.Eq, Prelude.Ord, GHC.Generics.Generic)+instance Prelude.Show ListPaymentsResponse where+ showsPrec _ __x __s+ = Prelude.showChar+ '{'+ (Prelude.showString+ (Data.ProtoLens.showMessageShort __x) (Prelude.showChar '}' __s))+instance Text.PrettyPrint.GenericPretty.Out ListPaymentsResponse+instance Data.ProtoLens.Field.HasField ListPaymentsResponse "payments" [Payment] where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _ListPaymentsResponse'payments+ (\ x__ y__ -> x__ {_ListPaymentsResponse'payments = y__}))+ (Lens.Family2.Unchecked.lens+ Data.Vector.Generic.toList+ (\ _ y__ -> Data.Vector.Generic.fromList y__))+instance Data.ProtoLens.Field.HasField ListPaymentsResponse "vec'payments" (Data.Vector.Vector Payment) where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _ListPaymentsResponse'payments+ (\ x__ y__ -> x__ {_ListPaymentsResponse'payments = y__}))+ Prelude.id+instance Data.ProtoLens.Field.HasField ListPaymentsResponse "firstIndexOffset" Data.Word.Word64 where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _ListPaymentsResponse'firstIndexOffset+ (\ x__ y__ -> x__ {_ListPaymentsResponse'firstIndexOffset = y__}))+ Prelude.id+instance Data.ProtoLens.Field.HasField ListPaymentsResponse "lastIndexOffset" Data.Word.Word64 where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _ListPaymentsResponse'lastIndexOffset+ (\ x__ y__ -> x__ {_ListPaymentsResponse'lastIndexOffset = y__}))+ Prelude.id+instance Data.ProtoLens.Message ListPaymentsResponse where+ messageName _ = Data.Text.pack "lnrpc.ListPaymentsResponse"+ packedMessageDescriptor _+ = "\n\+ \\DC4ListPaymentsResponse\DC2*\n\+ \\bpayments\CAN\SOH \ETX(\v2\SO.lnrpc.PaymentR\bpayments\DC2,\n\+ \\DC2first_index_offset\CAN\STX \SOH(\EOTR\DLEfirstIndexOffset\DC2*\n\+ \\DC1last_index_offset\CAN\ETX \SOH(\EOTR\SIlastIndexOffset"+ packedFileDescriptor _ = packedFileDescriptor+ fieldsByTag+ = let+ payments__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "payments"+ (Data.ProtoLens.MessageField Data.ProtoLens.MessageType ::+ Data.ProtoLens.FieldTypeDescriptor Payment)+ (Data.ProtoLens.RepeatedField+ Data.ProtoLens.Unpacked+ (Data.ProtoLens.Field.field @"payments")) ::+ Data.ProtoLens.FieldDescriptor ListPaymentsResponse+ firstIndexOffset__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "first_index_offset"+ (Data.ProtoLens.ScalarField Data.ProtoLens.UInt64Field ::+ Data.ProtoLens.FieldTypeDescriptor Data.Word.Word64)+ (Data.ProtoLens.PlainField+ Data.ProtoLens.Optional+ (Data.ProtoLens.Field.field @"firstIndexOffset")) ::+ Data.ProtoLens.FieldDescriptor ListPaymentsResponse+ lastIndexOffset__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "last_index_offset"+ (Data.ProtoLens.ScalarField Data.ProtoLens.UInt64Field ::+ Data.ProtoLens.FieldTypeDescriptor Data.Word.Word64)+ (Data.ProtoLens.PlainField+ Data.ProtoLens.Optional+ (Data.ProtoLens.Field.field @"lastIndexOffset")) ::+ Data.ProtoLens.FieldDescriptor ListPaymentsResponse+ in+ Data.Map.fromList+ [(Data.ProtoLens.Tag 1, payments__field_descriptor),+ (Data.ProtoLens.Tag 2, firstIndexOffset__field_descriptor),+ (Data.ProtoLens.Tag 3, lastIndexOffset__field_descriptor)]+ unknownFields+ = Lens.Family2.Unchecked.lens+ _ListPaymentsResponse'_unknownFields+ (\ x__ y__ -> x__ {_ListPaymentsResponse'_unknownFields = y__})+ defMessage+ = ListPaymentsResponse'_constructor+ {_ListPaymentsResponse'payments = Data.Vector.Generic.empty,+ _ListPaymentsResponse'firstIndexOffset = Data.ProtoLens.fieldDefault,+ _ListPaymentsResponse'lastIndexOffset = Data.ProtoLens.fieldDefault,+ _ListPaymentsResponse'_unknownFields = []}+ parseMessage+ = let+ loop ::+ ListPaymentsResponse+ -> Data.ProtoLens.Encoding.Growing.Growing Data.Vector.Vector Data.ProtoLens.Encoding.Growing.RealWorld Payment+ -> Data.ProtoLens.Encoding.Bytes.Parser ListPaymentsResponse+ loop x mutable'payments+ = do end <- Data.ProtoLens.Encoding.Bytes.atEnd+ if end then+ do frozen'payments <- Data.ProtoLens.Encoding.Parser.Unsafe.unsafeLiftIO+ (Data.ProtoLens.Encoding.Growing.unsafeFreeze+ mutable'payments)+ (let missing = []+ in+ if Prelude.null missing then+ Prelude.return ()+ else+ Prelude.fail+ ((Prelude.++)+ "Missing required fields: "+ (Prelude.show (missing :: [Prelude.String]))))+ Prelude.return+ (Lens.Family2.over+ Data.ProtoLens.unknownFields (\ !t -> Prelude.reverse t)+ (Lens.Family2.set+ (Data.ProtoLens.Field.field @"vec'payments") frozen'payments x))+ else+ do tag <- Data.ProtoLens.Encoding.Bytes.getVarInt+ case tag of+ 10+ -> do !y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (do len <- Data.ProtoLens.Encoding.Bytes.getVarInt+ Data.ProtoLens.Encoding.Bytes.isolate+ (Prelude.fromIntegral len)+ Data.ProtoLens.parseMessage)+ "payments"+ v <- Data.ProtoLens.Encoding.Parser.Unsafe.unsafeLiftIO+ (Data.ProtoLens.Encoding.Growing.append mutable'payments y)+ loop x v+ 16+ -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ Data.ProtoLens.Encoding.Bytes.getVarInt "first_index_offset"+ loop+ (Lens.Family2.set+ (Data.ProtoLens.Field.field @"firstIndexOffset") y x)+ mutable'payments+ 24+ -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ Data.ProtoLens.Encoding.Bytes.getVarInt "last_index_offset"+ loop+ (Lens.Family2.set+ (Data.ProtoLens.Field.field @"lastIndexOffset") y x)+ mutable'payments+ wire+ -> do !y <- Data.ProtoLens.Encoding.Wire.parseTaggedValueFromWire+ wire+ loop+ (Lens.Family2.over+ Data.ProtoLens.unknownFields (\ !t -> (:) y t) x)+ mutable'payments+ in+ (Data.ProtoLens.Encoding.Bytes.<?>)+ (do mutable'payments <- Data.ProtoLens.Encoding.Parser.Unsafe.unsafeLiftIO+ Data.ProtoLens.Encoding.Growing.new+ loop Data.ProtoLens.defMessage mutable'payments)+ "ListPaymentsResponse"+ buildMessage+ = \ _x+ -> (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.foldMapBuilder+ (\ _v+ -> (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 10)+ ((Prelude..)+ (\ bs+ -> (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt+ (Prelude.fromIntegral (Data.ByteString.length bs)))+ (Data.ProtoLens.Encoding.Bytes.putBytes bs))+ Data.ProtoLens.encodeMessage _v))+ (Lens.Family2.view+ (Data.ProtoLens.Field.field @"vec'payments") _x))+ ((Data.Monoid.<>)+ (let+ _v+ = Lens.Family2.view+ (Data.ProtoLens.Field.field @"firstIndexOffset") _x+ in+ if (Prelude.==) _v Data.ProtoLens.fieldDefault then+ Data.Monoid.mempty+ else+ (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 16)+ (Data.ProtoLens.Encoding.Bytes.putVarInt _v))+ ((Data.Monoid.<>)+ (let+ _v+ = Lens.Family2.view+ (Data.ProtoLens.Field.field @"lastIndexOffset") _x+ in+ if (Prelude.==) _v Data.ProtoLens.fieldDefault then+ Data.Monoid.mempty+ else+ (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 24)+ (Data.ProtoLens.Encoding.Bytes.putVarInt _v))+ (Data.ProtoLens.Encoding.Wire.buildFieldSet+ (Lens.Family2.view Data.ProtoLens.unknownFields _x))))+instance Control.DeepSeq.NFData ListPaymentsResponse where+ rnf+ = \ x__+ -> Control.DeepSeq.deepseq+ (_ListPaymentsResponse'_unknownFields x__)+ (Control.DeepSeq.deepseq+ (_ListPaymentsResponse'payments x__)+ (Control.DeepSeq.deepseq+ (_ListPaymentsResponse'firstIndexOffset x__)+ (Control.DeepSeq.deepseq+ (_ListPaymentsResponse'lastIndexOffset x__) ())))+{- | Fields :+ -}+data ListPermissionsRequest+ = ListPermissionsRequest'_constructor {_ListPermissionsRequest'_unknownFields :: !Data.ProtoLens.FieldSet}+ deriving stock (Prelude.Eq, Prelude.Ord, GHC.Generics.Generic)+instance Prelude.Show ListPermissionsRequest where+ showsPrec _ __x __s+ = Prelude.showChar+ '{'+ (Prelude.showString+ (Data.ProtoLens.showMessageShort __x) (Prelude.showChar '}' __s))+instance Text.PrettyPrint.GenericPretty.Out ListPermissionsRequest+instance Data.ProtoLens.Message ListPermissionsRequest where+ messageName _ = Data.Text.pack "lnrpc.ListPermissionsRequest"+ packedMessageDescriptor _+ = "\n\+ \\SYNListPermissionsRequest"+ packedFileDescriptor _ = packedFileDescriptor+ fieldsByTag = let in Data.Map.fromList []+ unknownFields+ = Lens.Family2.Unchecked.lens+ _ListPermissionsRequest'_unknownFields+ (\ x__ y__ -> x__ {_ListPermissionsRequest'_unknownFields = y__})+ defMessage+ = ListPermissionsRequest'_constructor+ {_ListPermissionsRequest'_unknownFields = []}+ parseMessage+ = let+ loop ::+ ListPermissionsRequest+ -> Data.ProtoLens.Encoding.Bytes.Parser ListPermissionsRequest+ loop x+ = do end <- Data.ProtoLens.Encoding.Bytes.atEnd+ if end then+ do (let missing = []+ in+ if Prelude.null missing then+ Prelude.return ()+ else+ Prelude.fail+ ((Prelude.++)+ "Missing required fields: "+ (Prelude.show (missing :: [Prelude.String]))))+ Prelude.return+ (Lens.Family2.over+ Data.ProtoLens.unknownFields (\ !t -> Prelude.reverse t) x)+ else+ do tag <- Data.ProtoLens.Encoding.Bytes.getVarInt+ case tag of {+ wire+ -> do !y <- Data.ProtoLens.Encoding.Wire.parseTaggedValueFromWire+ wire+ loop+ (Lens.Family2.over+ Data.ProtoLens.unknownFields (\ !t -> (:) y t) x) }+ in+ (Data.ProtoLens.Encoding.Bytes.<?>)+ (do loop Data.ProtoLens.defMessage) "ListPermissionsRequest"+ buildMessage+ = \ _x+ -> Data.ProtoLens.Encoding.Wire.buildFieldSet+ (Lens.Family2.view Data.ProtoLens.unknownFields _x)+instance Control.DeepSeq.NFData ListPermissionsRequest where+ rnf+ = \ x__+ -> Control.DeepSeq.deepseq+ (_ListPermissionsRequest'_unknownFields x__) ()+{- | Fields :+ + * 'Proto.Lnrpc.Ln1_Fields.methodPermissions' @:: Lens' ListPermissionsResponse (Data.Map.Map Data.Text.Text MacaroonPermissionList)@ -}+data ListPermissionsResponse+ = ListPermissionsResponse'_constructor {_ListPermissionsResponse'methodPermissions :: !(Data.Map.Map Data.Text.Text MacaroonPermissionList),+ _ListPermissionsResponse'_unknownFields :: !Data.ProtoLens.FieldSet}+ deriving stock (Prelude.Eq, Prelude.Ord, GHC.Generics.Generic)+instance Prelude.Show ListPermissionsResponse where+ showsPrec _ __x __s+ = Prelude.showChar+ '{'+ (Prelude.showString+ (Data.ProtoLens.showMessageShort __x) (Prelude.showChar '}' __s))+instance Text.PrettyPrint.GenericPretty.Out ListPermissionsResponse+instance Data.ProtoLens.Field.HasField ListPermissionsResponse "methodPermissions" (Data.Map.Map Data.Text.Text MacaroonPermissionList) where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _ListPermissionsResponse'methodPermissions+ (\ x__ y__+ -> x__ {_ListPermissionsResponse'methodPermissions = y__}))+ Prelude.id+instance Data.ProtoLens.Message ListPermissionsResponse where+ messageName _ = Data.Text.pack "lnrpc.ListPermissionsResponse"+ packedMessageDescriptor _+ = "\n\+ \\ETBListPermissionsResponse\DC2d\n\+ \\DC2method_permissions\CAN\SOH \ETX(\v25.lnrpc.ListPermissionsResponse.MethodPermissionsEntryR\DC1methodPermissions\SUBc\n\+ \\SYNMethodPermissionsEntry\DC2\DLE\n\+ \\ETXkey\CAN\SOH \SOH(\tR\ETXkey\DC23\n\+ \\ENQvalue\CAN\STX \SOH(\v2\GS.lnrpc.MacaroonPermissionListR\ENQvalue:\STX8\SOH"+ packedFileDescriptor _ = packedFileDescriptor+ fieldsByTag+ = let+ methodPermissions__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "method_permissions"+ (Data.ProtoLens.MessageField Data.ProtoLens.MessageType ::+ Data.ProtoLens.FieldTypeDescriptor ListPermissionsResponse'MethodPermissionsEntry)+ (Data.ProtoLens.MapField+ (Data.ProtoLens.Field.field @"key")+ (Data.ProtoLens.Field.field @"value")+ (Data.ProtoLens.Field.field @"methodPermissions")) ::+ Data.ProtoLens.FieldDescriptor ListPermissionsResponse+ in+ Data.Map.fromList+ [(Data.ProtoLens.Tag 1, methodPermissions__field_descriptor)]+ unknownFields+ = Lens.Family2.Unchecked.lens+ _ListPermissionsResponse'_unknownFields+ (\ x__ y__ -> x__ {_ListPermissionsResponse'_unknownFields = y__})+ defMessage+ = ListPermissionsResponse'_constructor+ {_ListPermissionsResponse'methodPermissions = Data.Map.empty,+ _ListPermissionsResponse'_unknownFields = []}+ parseMessage+ = let+ loop ::+ ListPermissionsResponse+ -> Data.ProtoLens.Encoding.Bytes.Parser ListPermissionsResponse+ loop x+ = do end <- Data.ProtoLens.Encoding.Bytes.atEnd+ if end then+ do (let missing = []+ in+ if Prelude.null missing then+ Prelude.return ()+ else+ Prelude.fail+ ((Prelude.++)+ "Missing required fields: "+ (Prelude.show (missing :: [Prelude.String]))))+ Prelude.return+ (Lens.Family2.over+ Data.ProtoLens.unknownFields (\ !t -> Prelude.reverse t) x)+ else+ do tag <- Data.ProtoLens.Encoding.Bytes.getVarInt+ case tag of+ 10+ -> do !(entry :: ListPermissionsResponse'MethodPermissionsEntry) <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (do len <- Data.ProtoLens.Encoding.Bytes.getVarInt+ Data.ProtoLens.Encoding.Bytes.isolate+ (Prelude.fromIntegral+ len)+ Data.ProtoLens.parseMessage)+ "method_permissions"+ (let+ key = Lens.Family2.view (Data.ProtoLens.Field.field @"key") entry+ value+ = Lens.Family2.view (Data.ProtoLens.Field.field @"value") entry+ in+ loop+ (Lens.Family2.over+ (Data.ProtoLens.Field.field @"methodPermissions")+ (\ !t -> Data.Map.insert key value t) x))+ wire+ -> do !y <- Data.ProtoLens.Encoding.Wire.parseTaggedValueFromWire+ wire+ loop+ (Lens.Family2.over+ Data.ProtoLens.unknownFields (\ !t -> (:) y t) x)+ in+ (Data.ProtoLens.Encoding.Bytes.<?>)+ (do loop Data.ProtoLens.defMessage) "ListPermissionsResponse"+ buildMessage+ = \ _x+ -> (Data.Monoid.<>)+ (Data.Monoid.mconcat+ (Prelude.map+ (\ _v+ -> (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 10)+ ((Prelude..)+ (\ bs+ -> (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt+ (Prelude.fromIntegral (Data.ByteString.length bs)))+ (Data.ProtoLens.Encoding.Bytes.putBytes bs))+ Data.ProtoLens.encodeMessage+ (Lens.Family2.set+ (Data.ProtoLens.Field.field @"key") (Prelude.fst _v)+ (Lens.Family2.set+ (Data.ProtoLens.Field.field @"value") (Prelude.snd _v)+ (Data.ProtoLens.defMessage ::+ ListPermissionsResponse'MethodPermissionsEntry)))))+ (Data.Map.toList+ (Lens.Family2.view+ (Data.ProtoLens.Field.field @"methodPermissions") _x))))+ (Data.ProtoLens.Encoding.Wire.buildFieldSet+ (Lens.Family2.view Data.ProtoLens.unknownFields _x))+instance Control.DeepSeq.NFData ListPermissionsResponse where+ rnf+ = \ x__+ -> Control.DeepSeq.deepseq+ (_ListPermissionsResponse'_unknownFields x__)+ (Control.DeepSeq.deepseq+ (_ListPermissionsResponse'methodPermissions x__) ())+{- | Fields :+ + * 'Proto.Lnrpc.Ln1_Fields.key' @:: Lens' ListPermissionsResponse'MethodPermissionsEntry Data.Text.Text@+ * 'Proto.Lnrpc.Ln1_Fields.value' @:: Lens' ListPermissionsResponse'MethodPermissionsEntry MacaroonPermissionList@+ * 'Proto.Lnrpc.Ln1_Fields.maybe'value' @:: Lens' ListPermissionsResponse'MethodPermissionsEntry (Prelude.Maybe MacaroonPermissionList)@ -}+data ListPermissionsResponse'MethodPermissionsEntry+ = ListPermissionsResponse'MethodPermissionsEntry'_constructor {_ListPermissionsResponse'MethodPermissionsEntry'key :: !Data.Text.Text,+ _ListPermissionsResponse'MethodPermissionsEntry'value :: !(Prelude.Maybe MacaroonPermissionList),+ _ListPermissionsResponse'MethodPermissionsEntry'_unknownFields :: !Data.ProtoLens.FieldSet}+ deriving stock (Prelude.Eq, Prelude.Ord, GHC.Generics.Generic)+instance Prelude.Show ListPermissionsResponse'MethodPermissionsEntry where+ showsPrec _ __x __s+ = Prelude.showChar+ '{'+ (Prelude.showString+ (Data.ProtoLens.showMessageShort __x) (Prelude.showChar '}' __s))+instance Text.PrettyPrint.GenericPretty.Out ListPermissionsResponse'MethodPermissionsEntry+instance Data.ProtoLens.Field.HasField ListPermissionsResponse'MethodPermissionsEntry "key" Data.Text.Text where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _ListPermissionsResponse'MethodPermissionsEntry'key+ (\ x__ y__+ -> x__+ {_ListPermissionsResponse'MethodPermissionsEntry'key = y__}))+ Prelude.id+instance Data.ProtoLens.Field.HasField ListPermissionsResponse'MethodPermissionsEntry "value" MacaroonPermissionList where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _ListPermissionsResponse'MethodPermissionsEntry'value+ (\ x__ y__+ -> x__+ {_ListPermissionsResponse'MethodPermissionsEntry'value = y__}))+ (Data.ProtoLens.maybeLens Data.ProtoLens.defMessage)+instance Data.ProtoLens.Field.HasField ListPermissionsResponse'MethodPermissionsEntry "maybe'value" (Prelude.Maybe MacaroonPermissionList) where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _ListPermissionsResponse'MethodPermissionsEntry'value+ (\ x__ y__+ -> x__+ {_ListPermissionsResponse'MethodPermissionsEntry'value = y__}))+ Prelude.id+instance Data.ProtoLens.Message ListPermissionsResponse'MethodPermissionsEntry where+ messageName _+ = Data.Text.pack+ "lnrpc.ListPermissionsResponse.MethodPermissionsEntry"+ packedMessageDescriptor _+ = "\n\+ \\SYNMethodPermissionsEntry\DC2\DLE\n\+ \\ETXkey\CAN\SOH \SOH(\tR\ETXkey\DC23\n\+ \\ENQvalue\CAN\STX \SOH(\v2\GS.lnrpc.MacaroonPermissionListR\ENQvalue:\STX8\SOH"+ packedFileDescriptor _ = packedFileDescriptor+ fieldsByTag+ = let+ key__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "key"+ (Data.ProtoLens.ScalarField Data.ProtoLens.StringField ::+ Data.ProtoLens.FieldTypeDescriptor Data.Text.Text)+ (Data.ProtoLens.PlainField+ Data.ProtoLens.Optional (Data.ProtoLens.Field.field @"key")) ::+ Data.ProtoLens.FieldDescriptor ListPermissionsResponse'MethodPermissionsEntry+ value__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "value"+ (Data.ProtoLens.MessageField Data.ProtoLens.MessageType ::+ Data.ProtoLens.FieldTypeDescriptor MacaroonPermissionList)+ (Data.ProtoLens.OptionalField+ (Data.ProtoLens.Field.field @"maybe'value")) ::+ Data.ProtoLens.FieldDescriptor ListPermissionsResponse'MethodPermissionsEntry+ in+ Data.Map.fromList+ [(Data.ProtoLens.Tag 1, key__field_descriptor),+ (Data.ProtoLens.Tag 2, value__field_descriptor)]+ unknownFields+ = Lens.Family2.Unchecked.lens+ _ListPermissionsResponse'MethodPermissionsEntry'_unknownFields+ (\ x__ y__+ -> x__+ {_ListPermissionsResponse'MethodPermissionsEntry'_unknownFields = y__})+ defMessage+ = ListPermissionsResponse'MethodPermissionsEntry'_constructor+ {_ListPermissionsResponse'MethodPermissionsEntry'key = Data.ProtoLens.fieldDefault,+ _ListPermissionsResponse'MethodPermissionsEntry'value = Prelude.Nothing,+ _ListPermissionsResponse'MethodPermissionsEntry'_unknownFields = []}+ parseMessage+ = let+ loop ::+ ListPermissionsResponse'MethodPermissionsEntry+ -> Data.ProtoLens.Encoding.Bytes.Parser ListPermissionsResponse'MethodPermissionsEntry+ loop x+ = do end <- Data.ProtoLens.Encoding.Bytes.atEnd+ if end then+ do (let missing = []+ in+ if Prelude.null missing then+ Prelude.return ()+ else+ Prelude.fail+ ((Prelude.++)+ "Missing required fields: "+ (Prelude.show (missing :: [Prelude.String]))))+ Prelude.return+ (Lens.Family2.over+ Data.ProtoLens.unknownFields (\ !t -> Prelude.reverse t) x)+ else+ do tag <- Data.ProtoLens.Encoding.Bytes.getVarInt+ case tag of+ 10+ -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (do value <- do len <- Data.ProtoLens.Encoding.Bytes.getVarInt+ Data.ProtoLens.Encoding.Bytes.getBytes+ (Prelude.fromIntegral len)+ Data.ProtoLens.Encoding.Bytes.runEither+ (case Data.Text.Encoding.decodeUtf8' value of+ (Prelude.Left err)+ -> Prelude.Left (Prelude.show err)+ (Prelude.Right r) -> Prelude.Right r))+ "key"+ loop (Lens.Family2.set (Data.ProtoLens.Field.field @"key") y x)+ 18+ -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (do len <- Data.ProtoLens.Encoding.Bytes.getVarInt+ Data.ProtoLens.Encoding.Bytes.isolate+ (Prelude.fromIntegral len) Data.ProtoLens.parseMessage)+ "value"+ loop (Lens.Family2.set (Data.ProtoLens.Field.field @"value") y x)+ wire+ -> do !y <- Data.ProtoLens.Encoding.Wire.parseTaggedValueFromWire+ wire+ loop+ (Lens.Family2.over+ Data.ProtoLens.unknownFields (\ !t -> (:) y t) x)+ in+ (Data.ProtoLens.Encoding.Bytes.<?>)+ (do loop Data.ProtoLens.defMessage) "MethodPermissionsEntry"+ buildMessage+ = \ _x+ -> (Data.Monoid.<>)+ (let _v = Lens.Family2.view (Data.ProtoLens.Field.field @"key") _x+ in+ if (Prelude.==) _v Data.ProtoLens.fieldDefault then+ Data.Monoid.mempty+ else+ (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 10)+ ((Prelude..)+ (\ bs+ -> (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt+ (Prelude.fromIntegral (Data.ByteString.length bs)))+ (Data.ProtoLens.Encoding.Bytes.putBytes bs))+ Data.Text.Encoding.encodeUtf8 _v))+ ((Data.Monoid.<>)+ (case+ Lens.Family2.view (Data.ProtoLens.Field.field @"maybe'value") _x+ of+ Prelude.Nothing -> Data.Monoid.mempty+ (Prelude.Just _v)+ -> (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 18)+ ((Prelude..)+ (\ bs+ -> (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt+ (Prelude.fromIntegral (Data.ByteString.length bs)))+ (Data.ProtoLens.Encoding.Bytes.putBytes bs))+ Data.ProtoLens.encodeMessage _v))+ (Data.ProtoLens.Encoding.Wire.buildFieldSet+ (Lens.Family2.view Data.ProtoLens.unknownFields _x)))+instance Control.DeepSeq.NFData ListPermissionsResponse'MethodPermissionsEntry where+ rnf+ = \ x__+ -> Control.DeepSeq.deepseq+ (_ListPermissionsResponse'MethodPermissionsEntry'_unknownFields+ x__)+ (Control.DeepSeq.deepseq+ (_ListPermissionsResponse'MethodPermissionsEntry'key x__)+ (Control.DeepSeq.deepseq+ (_ListPermissionsResponse'MethodPermissionsEntry'value x__) ()))+{- | Fields :+ + * 'Proto.Lnrpc.Ln1_Fields.nonce' @:: Lens' MacaroonId Data.ByteString.ByteString@+ * 'Proto.Lnrpc.Ln1_Fields.storageId' @:: Lens' MacaroonId Data.ByteString.ByteString@+ * 'Proto.Lnrpc.Ln1_Fields.ops' @:: Lens' MacaroonId [Op]@+ * 'Proto.Lnrpc.Ln1_Fields.vec'ops' @:: Lens' MacaroonId (Data.Vector.Vector Op)@ -}+data MacaroonId+ = MacaroonId'_constructor {_MacaroonId'nonce :: !Data.ByteString.ByteString,+ _MacaroonId'storageId :: !Data.ByteString.ByteString,+ _MacaroonId'ops :: !(Data.Vector.Vector Op),+ _MacaroonId'_unknownFields :: !Data.ProtoLens.FieldSet}+ deriving stock (Prelude.Eq, Prelude.Ord, GHC.Generics.Generic)+instance Prelude.Show MacaroonId where+ showsPrec _ __x __s+ = Prelude.showChar+ '{'+ (Prelude.showString+ (Data.ProtoLens.showMessageShort __x) (Prelude.showChar '}' __s))+instance Text.PrettyPrint.GenericPretty.Out MacaroonId+instance Data.ProtoLens.Field.HasField MacaroonId "nonce" Data.ByteString.ByteString where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _MacaroonId'nonce (\ x__ y__ -> x__ {_MacaroonId'nonce = y__}))+ Prelude.id+instance Data.ProtoLens.Field.HasField MacaroonId "storageId" Data.ByteString.ByteString where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _MacaroonId'storageId+ (\ x__ y__ -> x__ {_MacaroonId'storageId = y__}))+ Prelude.id+instance Data.ProtoLens.Field.HasField MacaroonId "ops" [Op] where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _MacaroonId'ops (\ x__ y__ -> x__ {_MacaroonId'ops = y__}))+ (Lens.Family2.Unchecked.lens+ Data.Vector.Generic.toList+ (\ _ y__ -> Data.Vector.Generic.fromList y__))+instance Data.ProtoLens.Field.HasField MacaroonId "vec'ops" (Data.Vector.Vector Op) where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _MacaroonId'ops (\ x__ y__ -> x__ {_MacaroonId'ops = y__}))+ Prelude.id+instance Data.ProtoLens.Message MacaroonId where+ messageName _ = Data.Text.pack "lnrpc.MacaroonId"+ packedMessageDescriptor _+ = "\n\+ \\n\+ \MacaroonId\DC2\DC4\n\+ \\ENQnonce\CAN\SOH \SOH(\fR\ENQnonce\DC2\FS\n\+ \\tstorageId\CAN\STX \SOH(\fR\tstorageId\DC2\ESC\n\+ \\ETXops\CAN\ETX \ETX(\v2\t.lnrpc.OpR\ETXops"+ packedFileDescriptor _ = packedFileDescriptor+ fieldsByTag+ = let+ nonce__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "nonce"+ (Data.ProtoLens.ScalarField Data.ProtoLens.BytesField ::+ Data.ProtoLens.FieldTypeDescriptor Data.ByteString.ByteString)+ (Data.ProtoLens.PlainField+ Data.ProtoLens.Optional (Data.ProtoLens.Field.field @"nonce")) ::+ Data.ProtoLens.FieldDescriptor MacaroonId+ storageId__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "storageId"+ (Data.ProtoLens.ScalarField Data.ProtoLens.BytesField ::+ Data.ProtoLens.FieldTypeDescriptor Data.ByteString.ByteString)+ (Data.ProtoLens.PlainField+ Data.ProtoLens.Optional+ (Data.ProtoLens.Field.field @"storageId")) ::+ Data.ProtoLens.FieldDescriptor MacaroonId+ ops__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "ops"+ (Data.ProtoLens.MessageField Data.ProtoLens.MessageType ::+ Data.ProtoLens.FieldTypeDescriptor Op)+ (Data.ProtoLens.RepeatedField+ Data.ProtoLens.Unpacked (Data.ProtoLens.Field.field @"ops")) ::+ Data.ProtoLens.FieldDescriptor MacaroonId+ in+ Data.Map.fromList+ [(Data.ProtoLens.Tag 1, nonce__field_descriptor),+ (Data.ProtoLens.Tag 2, storageId__field_descriptor),+ (Data.ProtoLens.Tag 3, ops__field_descriptor)]+ unknownFields+ = Lens.Family2.Unchecked.lens+ _MacaroonId'_unknownFields+ (\ x__ y__ -> x__ {_MacaroonId'_unknownFields = y__})+ defMessage+ = MacaroonId'_constructor+ {_MacaroonId'nonce = Data.ProtoLens.fieldDefault,+ _MacaroonId'storageId = Data.ProtoLens.fieldDefault,+ _MacaroonId'ops = Data.Vector.Generic.empty,+ _MacaroonId'_unknownFields = []}+ parseMessage+ = let+ loop ::+ MacaroonId+ -> Data.ProtoLens.Encoding.Growing.Growing Data.Vector.Vector Data.ProtoLens.Encoding.Growing.RealWorld Op+ -> Data.ProtoLens.Encoding.Bytes.Parser MacaroonId+ loop x mutable'ops+ = do end <- Data.ProtoLens.Encoding.Bytes.atEnd+ if end then+ do frozen'ops <- Data.ProtoLens.Encoding.Parser.Unsafe.unsafeLiftIO+ (Data.ProtoLens.Encoding.Growing.unsafeFreeze mutable'ops)+ (let missing = []+ in+ if Prelude.null missing then+ Prelude.return ()+ else+ Prelude.fail+ ((Prelude.++)+ "Missing required fields: "+ (Prelude.show (missing :: [Prelude.String]))))+ Prelude.return+ (Lens.Family2.over+ Data.ProtoLens.unknownFields (\ !t -> Prelude.reverse t)+ (Lens.Family2.set+ (Data.ProtoLens.Field.field @"vec'ops") frozen'ops x))+ else+ do tag <- Data.ProtoLens.Encoding.Bytes.getVarInt+ case tag of+ 10+ -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (do len <- Data.ProtoLens.Encoding.Bytes.getVarInt+ Data.ProtoLens.Encoding.Bytes.getBytes+ (Prelude.fromIntegral len))+ "nonce"+ loop+ (Lens.Family2.set (Data.ProtoLens.Field.field @"nonce") y x)+ mutable'ops+ 18+ -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (do len <- Data.ProtoLens.Encoding.Bytes.getVarInt+ Data.ProtoLens.Encoding.Bytes.getBytes+ (Prelude.fromIntegral len))+ "storageId"+ loop+ (Lens.Family2.set (Data.ProtoLens.Field.field @"storageId") y x)+ mutable'ops+ 26+ -> do !y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (do len <- Data.ProtoLens.Encoding.Bytes.getVarInt+ Data.ProtoLens.Encoding.Bytes.isolate+ (Prelude.fromIntegral len)+ Data.ProtoLens.parseMessage)+ "ops"+ v <- Data.ProtoLens.Encoding.Parser.Unsafe.unsafeLiftIO+ (Data.ProtoLens.Encoding.Growing.append mutable'ops y)+ loop x v+ wire+ -> do !y <- Data.ProtoLens.Encoding.Wire.parseTaggedValueFromWire+ wire+ loop+ (Lens.Family2.over+ Data.ProtoLens.unknownFields (\ !t -> (:) y t) x)+ mutable'ops+ in+ (Data.ProtoLens.Encoding.Bytes.<?>)+ (do mutable'ops <- Data.ProtoLens.Encoding.Parser.Unsafe.unsafeLiftIO+ Data.ProtoLens.Encoding.Growing.new+ loop Data.ProtoLens.defMessage mutable'ops)+ "MacaroonId"+ buildMessage+ = \ _x+ -> (Data.Monoid.<>)+ (let+ _v = Lens.Family2.view (Data.ProtoLens.Field.field @"nonce") _x+ in+ if (Prelude.==) _v Data.ProtoLens.fieldDefault then+ Data.Monoid.mempty+ else+ (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 10)+ ((\ bs+ -> (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt+ (Prelude.fromIntegral (Data.ByteString.length bs)))+ (Data.ProtoLens.Encoding.Bytes.putBytes bs))+ _v))+ ((Data.Monoid.<>)+ (let+ _v = Lens.Family2.view (Data.ProtoLens.Field.field @"storageId") _x+ in+ if (Prelude.==) _v Data.ProtoLens.fieldDefault then+ Data.Monoid.mempty+ else+ (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 18)+ ((\ bs+ -> (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt+ (Prelude.fromIntegral (Data.ByteString.length bs)))+ (Data.ProtoLens.Encoding.Bytes.putBytes bs))+ _v))+ ((Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.foldMapBuilder+ (\ _v+ -> (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 26)+ ((Prelude..)+ (\ bs+ -> (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt+ (Prelude.fromIntegral (Data.ByteString.length bs)))+ (Data.ProtoLens.Encoding.Bytes.putBytes bs))+ Data.ProtoLens.encodeMessage _v))+ (Lens.Family2.view (Data.ProtoLens.Field.field @"vec'ops") _x))+ (Data.ProtoLens.Encoding.Wire.buildFieldSet+ (Lens.Family2.view Data.ProtoLens.unknownFields _x))))+instance Control.DeepSeq.NFData MacaroonId where+ rnf+ = \ x__+ -> Control.DeepSeq.deepseq+ (_MacaroonId'_unknownFields x__)+ (Control.DeepSeq.deepseq+ (_MacaroonId'nonce x__)+ (Control.DeepSeq.deepseq+ (_MacaroonId'storageId x__)+ (Control.DeepSeq.deepseq (_MacaroonId'ops x__) ())))+{- | Fields :+ + * 'Proto.Lnrpc.Ln1_Fields.entity' @:: Lens' MacaroonPermission Data.Text.Text@+ * 'Proto.Lnrpc.Ln1_Fields.action' @:: Lens' MacaroonPermission Data.Text.Text@ -}+data MacaroonPermission+ = MacaroonPermission'_constructor {_MacaroonPermission'entity :: !Data.Text.Text,+ _MacaroonPermission'action :: !Data.Text.Text,+ _MacaroonPermission'_unknownFields :: !Data.ProtoLens.FieldSet}+ deriving stock (Prelude.Eq, Prelude.Ord, GHC.Generics.Generic)+instance Prelude.Show MacaroonPermission where+ showsPrec _ __x __s+ = Prelude.showChar+ '{'+ (Prelude.showString+ (Data.ProtoLens.showMessageShort __x) (Prelude.showChar '}' __s))+instance Text.PrettyPrint.GenericPretty.Out MacaroonPermission+instance Data.ProtoLens.Field.HasField MacaroonPermission "entity" Data.Text.Text where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _MacaroonPermission'entity+ (\ x__ y__ -> x__ {_MacaroonPermission'entity = y__}))+ Prelude.id+instance Data.ProtoLens.Field.HasField MacaroonPermission "action" Data.Text.Text where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _MacaroonPermission'action+ (\ x__ y__ -> x__ {_MacaroonPermission'action = y__}))+ Prelude.id+instance Data.ProtoLens.Message MacaroonPermission where+ messageName _ = Data.Text.pack "lnrpc.MacaroonPermission"+ packedMessageDescriptor _+ = "\n\+ \\DC2MacaroonPermission\DC2\SYN\n\+ \\ACKentity\CAN\SOH \SOH(\tR\ACKentity\DC2\SYN\n\+ \\ACKaction\CAN\STX \SOH(\tR\ACKaction"+ packedFileDescriptor _ = packedFileDescriptor+ fieldsByTag+ = let+ entity__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "entity"+ (Data.ProtoLens.ScalarField Data.ProtoLens.StringField ::+ Data.ProtoLens.FieldTypeDescriptor Data.Text.Text)+ (Data.ProtoLens.PlainField+ Data.ProtoLens.Optional (Data.ProtoLens.Field.field @"entity")) ::+ Data.ProtoLens.FieldDescriptor MacaroonPermission+ action__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "action"+ (Data.ProtoLens.ScalarField Data.ProtoLens.StringField ::+ Data.ProtoLens.FieldTypeDescriptor Data.Text.Text)+ (Data.ProtoLens.PlainField+ Data.ProtoLens.Optional (Data.ProtoLens.Field.field @"action")) ::+ Data.ProtoLens.FieldDescriptor MacaroonPermission+ in+ Data.Map.fromList+ [(Data.ProtoLens.Tag 1, entity__field_descriptor),+ (Data.ProtoLens.Tag 2, action__field_descriptor)]+ unknownFields+ = Lens.Family2.Unchecked.lens+ _MacaroonPermission'_unknownFields+ (\ x__ y__ -> x__ {_MacaroonPermission'_unknownFields = y__})+ defMessage+ = MacaroonPermission'_constructor+ {_MacaroonPermission'entity = Data.ProtoLens.fieldDefault,+ _MacaroonPermission'action = Data.ProtoLens.fieldDefault,+ _MacaroonPermission'_unknownFields = []}+ parseMessage+ = let+ loop ::+ MacaroonPermission+ -> Data.ProtoLens.Encoding.Bytes.Parser MacaroonPermission+ loop x+ = do end <- Data.ProtoLens.Encoding.Bytes.atEnd+ if end then+ do (let missing = []+ in+ if Prelude.null missing then+ Prelude.return ()+ else+ Prelude.fail+ ((Prelude.++)+ "Missing required fields: "+ (Prelude.show (missing :: [Prelude.String]))))+ Prelude.return+ (Lens.Family2.over+ Data.ProtoLens.unknownFields (\ !t -> Prelude.reverse t) x)+ else+ do tag <- Data.ProtoLens.Encoding.Bytes.getVarInt+ case tag of+ 10+ -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (do value <- do len <- Data.ProtoLens.Encoding.Bytes.getVarInt+ Data.ProtoLens.Encoding.Bytes.getBytes+ (Prelude.fromIntegral len)+ Data.ProtoLens.Encoding.Bytes.runEither+ (case Data.Text.Encoding.decodeUtf8' value of+ (Prelude.Left err)+ -> Prelude.Left (Prelude.show err)+ (Prelude.Right r) -> Prelude.Right r))+ "entity"+ loop (Lens.Family2.set (Data.ProtoLens.Field.field @"entity") y x)+ 18+ -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (do value <- do len <- Data.ProtoLens.Encoding.Bytes.getVarInt+ Data.ProtoLens.Encoding.Bytes.getBytes+ (Prelude.fromIntegral len)+ Data.ProtoLens.Encoding.Bytes.runEither+ (case Data.Text.Encoding.decodeUtf8' value of+ (Prelude.Left err)+ -> Prelude.Left (Prelude.show err)+ (Prelude.Right r) -> Prelude.Right r))+ "action"+ loop (Lens.Family2.set (Data.ProtoLens.Field.field @"action") y x)+ wire+ -> do !y <- Data.ProtoLens.Encoding.Wire.parseTaggedValueFromWire+ wire+ loop+ (Lens.Family2.over+ Data.ProtoLens.unknownFields (\ !t -> (:) y t) x)+ in+ (Data.ProtoLens.Encoding.Bytes.<?>)+ (do loop Data.ProtoLens.defMessage) "MacaroonPermission"+ buildMessage+ = \ _x+ -> (Data.Monoid.<>)+ (let+ _v = Lens.Family2.view (Data.ProtoLens.Field.field @"entity") _x+ in+ if (Prelude.==) _v Data.ProtoLens.fieldDefault then+ Data.Monoid.mempty+ else+ (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 10)+ ((Prelude..)+ (\ bs+ -> (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt+ (Prelude.fromIntegral (Data.ByteString.length bs)))+ (Data.ProtoLens.Encoding.Bytes.putBytes bs))+ Data.Text.Encoding.encodeUtf8 _v))+ ((Data.Monoid.<>)+ (let+ _v = Lens.Family2.view (Data.ProtoLens.Field.field @"action") _x+ in+ if (Prelude.==) _v Data.ProtoLens.fieldDefault then+ Data.Monoid.mempty+ else+ (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 18)+ ((Prelude..)+ (\ bs+ -> (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt+ (Prelude.fromIntegral (Data.ByteString.length bs)))+ (Data.ProtoLens.Encoding.Bytes.putBytes bs))+ Data.Text.Encoding.encodeUtf8 _v))+ (Data.ProtoLens.Encoding.Wire.buildFieldSet+ (Lens.Family2.view Data.ProtoLens.unknownFields _x)))+instance Control.DeepSeq.NFData MacaroonPermission where+ rnf+ = \ x__+ -> Control.DeepSeq.deepseq+ (_MacaroonPermission'_unknownFields x__)+ (Control.DeepSeq.deepseq+ (_MacaroonPermission'entity x__)+ (Control.DeepSeq.deepseq (_MacaroonPermission'action x__) ()))+{- | Fields :+ + * 'Proto.Lnrpc.Ln1_Fields.permissions' @:: Lens' MacaroonPermissionList [MacaroonPermission]@+ * 'Proto.Lnrpc.Ln1_Fields.vec'permissions' @:: Lens' MacaroonPermissionList (Data.Vector.Vector MacaroonPermission)@ -}+data MacaroonPermissionList+ = MacaroonPermissionList'_constructor {_MacaroonPermissionList'permissions :: !(Data.Vector.Vector MacaroonPermission),+ _MacaroonPermissionList'_unknownFields :: !Data.ProtoLens.FieldSet}+ deriving stock (Prelude.Eq, Prelude.Ord, GHC.Generics.Generic)+instance Prelude.Show MacaroonPermissionList where+ showsPrec _ __x __s+ = Prelude.showChar+ '{'+ (Prelude.showString+ (Data.ProtoLens.showMessageShort __x) (Prelude.showChar '}' __s))+instance Text.PrettyPrint.GenericPretty.Out MacaroonPermissionList+instance Data.ProtoLens.Field.HasField MacaroonPermissionList "permissions" [MacaroonPermission] where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _MacaroonPermissionList'permissions+ (\ x__ y__ -> x__ {_MacaroonPermissionList'permissions = y__}))+ (Lens.Family2.Unchecked.lens+ Data.Vector.Generic.toList+ (\ _ y__ -> Data.Vector.Generic.fromList y__))+instance Data.ProtoLens.Field.HasField MacaroonPermissionList "vec'permissions" (Data.Vector.Vector MacaroonPermission) where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _MacaroonPermissionList'permissions+ (\ x__ y__ -> x__ {_MacaroonPermissionList'permissions = y__}))+ Prelude.id+instance Data.ProtoLens.Message MacaroonPermissionList where+ messageName _ = Data.Text.pack "lnrpc.MacaroonPermissionList"+ packedMessageDescriptor _+ = "\n\+ \\SYNMacaroonPermissionList\DC2;\n\+ \\vpermissions\CAN\SOH \ETX(\v2\EM.lnrpc.MacaroonPermissionR\vpermissions"+ packedFileDescriptor _ = packedFileDescriptor+ fieldsByTag+ = let+ permissions__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "permissions"+ (Data.ProtoLens.MessageField Data.ProtoLens.MessageType ::+ Data.ProtoLens.FieldTypeDescriptor MacaroonPermission)+ (Data.ProtoLens.RepeatedField+ Data.ProtoLens.Unpacked+ (Data.ProtoLens.Field.field @"permissions")) ::+ Data.ProtoLens.FieldDescriptor MacaroonPermissionList+ in+ Data.Map.fromList+ [(Data.ProtoLens.Tag 1, permissions__field_descriptor)]+ unknownFields+ = Lens.Family2.Unchecked.lens+ _MacaroonPermissionList'_unknownFields+ (\ x__ y__ -> x__ {_MacaroonPermissionList'_unknownFields = y__})+ defMessage+ = MacaroonPermissionList'_constructor+ {_MacaroonPermissionList'permissions = Data.Vector.Generic.empty,+ _MacaroonPermissionList'_unknownFields = []}+ parseMessage+ = let+ loop ::+ MacaroonPermissionList+ -> Data.ProtoLens.Encoding.Growing.Growing Data.Vector.Vector Data.ProtoLens.Encoding.Growing.RealWorld MacaroonPermission+ -> Data.ProtoLens.Encoding.Bytes.Parser MacaroonPermissionList+ loop x mutable'permissions+ = do end <- Data.ProtoLens.Encoding.Bytes.atEnd+ if end then+ do frozen'permissions <- Data.ProtoLens.Encoding.Parser.Unsafe.unsafeLiftIO+ (Data.ProtoLens.Encoding.Growing.unsafeFreeze+ mutable'permissions)+ (let missing = []+ in+ if Prelude.null missing then+ Prelude.return ()+ else+ Prelude.fail+ ((Prelude.++)+ "Missing required fields: "+ (Prelude.show (missing :: [Prelude.String]))))+ Prelude.return+ (Lens.Family2.over+ Data.ProtoLens.unknownFields (\ !t -> Prelude.reverse t)+ (Lens.Family2.set+ (Data.ProtoLens.Field.field @"vec'permissions") frozen'permissions+ x))+ else+ do tag <- Data.ProtoLens.Encoding.Bytes.getVarInt+ case tag of+ 10+ -> do !y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (do len <- Data.ProtoLens.Encoding.Bytes.getVarInt+ Data.ProtoLens.Encoding.Bytes.isolate+ (Prelude.fromIntegral len)+ Data.ProtoLens.parseMessage)+ "permissions"+ v <- Data.ProtoLens.Encoding.Parser.Unsafe.unsafeLiftIO+ (Data.ProtoLens.Encoding.Growing.append+ mutable'permissions y)+ loop x v+ wire+ -> do !y <- Data.ProtoLens.Encoding.Wire.parseTaggedValueFromWire+ wire+ loop+ (Lens.Family2.over+ Data.ProtoLens.unknownFields (\ !t -> (:) y t) x)+ mutable'permissions+ in+ (Data.ProtoLens.Encoding.Bytes.<?>)+ (do mutable'permissions <- Data.ProtoLens.Encoding.Parser.Unsafe.unsafeLiftIO+ Data.ProtoLens.Encoding.Growing.new+ loop Data.ProtoLens.defMessage mutable'permissions)+ "MacaroonPermissionList"+ buildMessage+ = \ _x+ -> (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.foldMapBuilder+ (\ _v+ -> (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 10)+ ((Prelude..)+ (\ bs+ -> (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt+ (Prelude.fromIntegral (Data.ByteString.length bs)))+ (Data.ProtoLens.Encoding.Bytes.putBytes bs))+ Data.ProtoLens.encodeMessage _v))+ (Lens.Family2.view+ (Data.ProtoLens.Field.field @"vec'permissions") _x))+ (Data.ProtoLens.Encoding.Wire.buildFieldSet+ (Lens.Family2.view Data.ProtoLens.unknownFields _x))+instance Control.DeepSeq.NFData MacaroonPermissionList where+ rnf+ = \ x__+ -> Control.DeepSeq.deepseq+ (_MacaroonPermissionList'_unknownFields x__)+ (Control.DeepSeq.deepseq+ (_MacaroonPermissionList'permissions x__) ())+{- | Fields :+ + * 'Proto.Lnrpc.Ln1_Fields.middlewareName' @:: Lens' MiddlewareRegistration Data.Text.Text@+ * 'Proto.Lnrpc.Ln1_Fields.customMacaroonCaveatName' @:: Lens' MiddlewareRegistration Data.Text.Text@+ * 'Proto.Lnrpc.Ln1_Fields.readOnlyMode' @:: Lens' MiddlewareRegistration Prelude.Bool@ -}+data MiddlewareRegistration+ = MiddlewareRegistration'_constructor {_MiddlewareRegistration'middlewareName :: !Data.Text.Text,+ _MiddlewareRegistration'customMacaroonCaveatName :: !Data.Text.Text,+ _MiddlewareRegistration'readOnlyMode :: !Prelude.Bool,+ _MiddlewareRegistration'_unknownFields :: !Data.ProtoLens.FieldSet}+ deriving stock (Prelude.Eq, Prelude.Ord, GHC.Generics.Generic)+instance Prelude.Show MiddlewareRegistration where+ showsPrec _ __x __s+ = Prelude.showChar+ '{'+ (Prelude.showString+ (Data.ProtoLens.showMessageShort __x) (Prelude.showChar '}' __s))+instance Text.PrettyPrint.GenericPretty.Out MiddlewareRegistration+instance Data.ProtoLens.Field.HasField MiddlewareRegistration "middlewareName" Data.Text.Text where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _MiddlewareRegistration'middlewareName+ (\ x__ y__ -> x__ {_MiddlewareRegistration'middlewareName = y__}))+ Prelude.id+instance Data.ProtoLens.Field.HasField MiddlewareRegistration "customMacaroonCaveatName" Data.Text.Text where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _MiddlewareRegistration'customMacaroonCaveatName+ (\ x__ y__+ -> x__ {_MiddlewareRegistration'customMacaroonCaveatName = y__}))+ Prelude.id+instance Data.ProtoLens.Field.HasField MiddlewareRegistration "readOnlyMode" Prelude.Bool where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _MiddlewareRegistration'readOnlyMode+ (\ x__ y__ -> x__ {_MiddlewareRegistration'readOnlyMode = y__}))+ Prelude.id+instance Data.ProtoLens.Message MiddlewareRegistration where+ messageName _ = Data.Text.pack "lnrpc.MiddlewareRegistration"+ packedMessageDescriptor _+ = "\n\+ \\SYNMiddlewareRegistration\DC2'\n\+ \\SImiddleware_name\CAN\SOH \SOH(\tR\SOmiddlewareName\DC2=\n\+ \\ESCcustom_macaroon_caveat_name\CAN\STX \SOH(\tR\CANcustomMacaroonCaveatName\DC2$\n\+ \\SOread_only_mode\CAN\ETX \SOH(\bR\freadOnlyMode"+ packedFileDescriptor _ = packedFileDescriptor+ fieldsByTag+ = let+ middlewareName__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "middleware_name"+ (Data.ProtoLens.ScalarField Data.ProtoLens.StringField ::+ Data.ProtoLens.FieldTypeDescriptor Data.Text.Text)+ (Data.ProtoLens.PlainField+ Data.ProtoLens.Optional+ (Data.ProtoLens.Field.field @"middlewareName")) ::+ Data.ProtoLens.FieldDescriptor MiddlewareRegistration+ customMacaroonCaveatName__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "custom_macaroon_caveat_name"+ (Data.ProtoLens.ScalarField Data.ProtoLens.StringField ::+ Data.ProtoLens.FieldTypeDescriptor Data.Text.Text)+ (Data.ProtoLens.PlainField+ Data.ProtoLens.Optional+ (Data.ProtoLens.Field.field @"customMacaroonCaveatName")) ::+ Data.ProtoLens.FieldDescriptor MiddlewareRegistration+ readOnlyMode__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "read_only_mode"+ (Data.ProtoLens.ScalarField Data.ProtoLens.BoolField ::+ Data.ProtoLens.FieldTypeDescriptor Prelude.Bool)+ (Data.ProtoLens.PlainField+ Data.ProtoLens.Optional+ (Data.ProtoLens.Field.field @"readOnlyMode")) ::+ Data.ProtoLens.FieldDescriptor MiddlewareRegistration+ in+ Data.Map.fromList+ [(Data.ProtoLens.Tag 1, middlewareName__field_descriptor),+ (Data.ProtoLens.Tag 2, customMacaroonCaveatName__field_descriptor),+ (Data.ProtoLens.Tag 3, readOnlyMode__field_descriptor)]+ unknownFields+ = Lens.Family2.Unchecked.lens+ _MiddlewareRegistration'_unknownFields+ (\ x__ y__ -> x__ {_MiddlewareRegistration'_unknownFields = y__})+ defMessage+ = MiddlewareRegistration'_constructor+ {_MiddlewareRegistration'middlewareName = Data.ProtoLens.fieldDefault,+ _MiddlewareRegistration'customMacaroonCaveatName = Data.ProtoLens.fieldDefault,+ _MiddlewareRegistration'readOnlyMode = Data.ProtoLens.fieldDefault,+ _MiddlewareRegistration'_unknownFields = []}+ parseMessage+ = let+ loop ::+ MiddlewareRegistration+ -> Data.ProtoLens.Encoding.Bytes.Parser MiddlewareRegistration+ loop x+ = do end <- Data.ProtoLens.Encoding.Bytes.atEnd+ if end then+ do (let missing = []+ in+ if Prelude.null missing then+ Prelude.return ()+ else+ Prelude.fail+ ((Prelude.++)+ "Missing required fields: "+ (Prelude.show (missing :: [Prelude.String]))))+ Prelude.return+ (Lens.Family2.over+ Data.ProtoLens.unknownFields (\ !t -> Prelude.reverse t) x)+ else+ do tag <- Data.ProtoLens.Encoding.Bytes.getVarInt+ case tag of+ 10+ -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (do value <- do len <- Data.ProtoLens.Encoding.Bytes.getVarInt+ Data.ProtoLens.Encoding.Bytes.getBytes+ (Prelude.fromIntegral len)+ Data.ProtoLens.Encoding.Bytes.runEither+ (case Data.Text.Encoding.decodeUtf8' value of+ (Prelude.Left err)+ -> Prelude.Left (Prelude.show err)+ (Prelude.Right r) -> Prelude.Right r))+ "middleware_name"+ loop+ (Lens.Family2.set+ (Data.ProtoLens.Field.field @"middlewareName") y x)+ 18+ -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (do value <- do len <- Data.ProtoLens.Encoding.Bytes.getVarInt+ Data.ProtoLens.Encoding.Bytes.getBytes+ (Prelude.fromIntegral len)+ Data.ProtoLens.Encoding.Bytes.runEither+ (case Data.Text.Encoding.decodeUtf8' value of+ (Prelude.Left err)+ -> Prelude.Left (Prelude.show err)+ (Prelude.Right r) -> Prelude.Right r))+ "custom_macaroon_caveat_name"+ loop+ (Lens.Family2.set+ (Data.ProtoLens.Field.field @"customMacaroonCaveatName") y x)+ 24+ -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (Prelude.fmap+ ((Prelude./=) 0) Data.ProtoLens.Encoding.Bytes.getVarInt)+ "read_only_mode"+ loop+ (Lens.Family2.set+ (Data.ProtoLens.Field.field @"readOnlyMode") y x)+ wire+ -> do !y <- Data.ProtoLens.Encoding.Wire.parseTaggedValueFromWire+ wire+ loop+ (Lens.Family2.over+ Data.ProtoLens.unknownFields (\ !t -> (:) y t) x)+ in+ (Data.ProtoLens.Encoding.Bytes.<?>)+ (do loop Data.ProtoLens.defMessage) "MiddlewareRegistration"+ buildMessage+ = \ _x+ -> (Data.Monoid.<>)+ (let+ _v+ = Lens.Family2.view+ (Data.ProtoLens.Field.field @"middlewareName") _x+ in+ if (Prelude.==) _v Data.ProtoLens.fieldDefault then+ Data.Monoid.mempty+ else+ (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 10)+ ((Prelude..)+ (\ bs+ -> (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt+ (Prelude.fromIntegral (Data.ByteString.length bs)))+ (Data.ProtoLens.Encoding.Bytes.putBytes bs))+ Data.Text.Encoding.encodeUtf8 _v))+ ((Data.Monoid.<>)+ (let+ _v+ = Lens.Family2.view+ (Data.ProtoLens.Field.field @"customMacaroonCaveatName") _x+ in+ if (Prelude.==) _v Data.ProtoLens.fieldDefault then+ Data.Monoid.mempty+ else+ (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 18)+ ((Prelude..)+ (\ bs+ -> (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt+ (Prelude.fromIntegral (Data.ByteString.length bs)))+ (Data.ProtoLens.Encoding.Bytes.putBytes bs))+ Data.Text.Encoding.encodeUtf8 _v))+ ((Data.Monoid.<>)+ (let+ _v+ = Lens.Family2.view (Data.ProtoLens.Field.field @"readOnlyMode") _x+ in+ if (Prelude.==) _v Data.ProtoLens.fieldDefault then+ Data.Monoid.mempty+ else+ (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 24)+ ((Prelude..)+ Data.ProtoLens.Encoding.Bytes.putVarInt (\ b -> if b then 1 else 0)+ _v))+ (Data.ProtoLens.Encoding.Wire.buildFieldSet+ (Lens.Family2.view Data.ProtoLens.unknownFields _x))))+instance Control.DeepSeq.NFData MiddlewareRegistration where+ rnf+ = \ x__+ -> Control.DeepSeq.deepseq+ (_MiddlewareRegistration'_unknownFields x__)+ (Control.DeepSeq.deepseq+ (_MiddlewareRegistration'middlewareName x__)+ (Control.DeepSeq.deepseq+ (_MiddlewareRegistration'customMacaroonCaveatName x__)+ (Control.DeepSeq.deepseq+ (_MiddlewareRegistration'readOnlyMode x__) ())))+{- | Fields :+ + * 'Proto.Lnrpc.Ln1_Fields.chanPoints' @:: Lens' MultiChanBackup [Proto.Lnrpc.Ln0.ChannelPoint]@+ * 'Proto.Lnrpc.Ln1_Fields.vec'chanPoints' @:: Lens' MultiChanBackup (Data.Vector.Vector Proto.Lnrpc.Ln0.ChannelPoint)@+ * 'Proto.Lnrpc.Ln1_Fields.multiChanBackup' @:: Lens' MultiChanBackup Data.ByteString.ByteString@ -}+data MultiChanBackup+ = MultiChanBackup'_constructor {_MultiChanBackup'chanPoints :: !(Data.Vector.Vector Proto.Lnrpc.Ln0.ChannelPoint),+ _MultiChanBackup'multiChanBackup :: !Data.ByteString.ByteString,+ _MultiChanBackup'_unknownFields :: !Data.ProtoLens.FieldSet}+ deriving stock (Prelude.Eq, Prelude.Ord, GHC.Generics.Generic)+instance Prelude.Show MultiChanBackup where+ showsPrec _ __x __s+ = Prelude.showChar+ '{'+ (Prelude.showString+ (Data.ProtoLens.showMessageShort __x) (Prelude.showChar '}' __s))+instance Text.PrettyPrint.GenericPretty.Out MultiChanBackup+instance Data.ProtoLens.Field.HasField MultiChanBackup "chanPoints" [Proto.Lnrpc.Ln0.ChannelPoint] where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _MultiChanBackup'chanPoints+ (\ x__ y__ -> x__ {_MultiChanBackup'chanPoints = y__}))+ (Lens.Family2.Unchecked.lens+ Data.Vector.Generic.toList+ (\ _ y__ -> Data.Vector.Generic.fromList y__))+instance Data.ProtoLens.Field.HasField MultiChanBackup "vec'chanPoints" (Data.Vector.Vector Proto.Lnrpc.Ln0.ChannelPoint) where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _MultiChanBackup'chanPoints+ (\ x__ y__ -> x__ {_MultiChanBackup'chanPoints = y__}))+ Prelude.id+instance Data.ProtoLens.Field.HasField MultiChanBackup "multiChanBackup" Data.ByteString.ByteString where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _MultiChanBackup'multiChanBackup+ (\ x__ y__ -> x__ {_MultiChanBackup'multiChanBackup = y__}))+ Prelude.id+instance Data.ProtoLens.Message MultiChanBackup where+ messageName _ = Data.Text.pack "lnrpc.MultiChanBackup"+ packedMessageDescriptor _+ = "\n\+ \\SIMultiChanBackup\DC24\n\+ \\vchan_points\CAN\SOH \ETX(\v2\DC3.lnrpc.ChannelPointR\n\+ \chanPoints\DC2*\n\+ \\DC1multi_chan_backup\CAN\STX \SOH(\fR\SImultiChanBackup"+ packedFileDescriptor _ = packedFileDescriptor+ fieldsByTag+ = let+ chanPoints__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "chan_points"+ (Data.ProtoLens.MessageField Data.ProtoLens.MessageType ::+ Data.ProtoLens.FieldTypeDescriptor Proto.Lnrpc.Ln0.ChannelPoint)+ (Data.ProtoLens.RepeatedField+ Data.ProtoLens.Unpacked+ (Data.ProtoLens.Field.field @"chanPoints")) ::+ Data.ProtoLens.FieldDescriptor MultiChanBackup+ multiChanBackup__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "multi_chan_backup"+ (Data.ProtoLens.ScalarField Data.ProtoLens.BytesField ::+ Data.ProtoLens.FieldTypeDescriptor Data.ByteString.ByteString)+ (Data.ProtoLens.PlainField+ Data.ProtoLens.Optional+ (Data.ProtoLens.Field.field @"multiChanBackup")) ::+ Data.ProtoLens.FieldDescriptor MultiChanBackup+ in+ Data.Map.fromList+ [(Data.ProtoLens.Tag 1, chanPoints__field_descriptor),+ (Data.ProtoLens.Tag 2, multiChanBackup__field_descriptor)]+ unknownFields+ = Lens.Family2.Unchecked.lens+ _MultiChanBackup'_unknownFields+ (\ x__ y__ -> x__ {_MultiChanBackup'_unknownFields = y__})+ defMessage+ = MultiChanBackup'_constructor+ {_MultiChanBackup'chanPoints = Data.Vector.Generic.empty,+ _MultiChanBackup'multiChanBackup = Data.ProtoLens.fieldDefault,+ _MultiChanBackup'_unknownFields = []}+ parseMessage+ = let+ loop ::+ MultiChanBackup+ -> Data.ProtoLens.Encoding.Growing.Growing Data.Vector.Vector Data.ProtoLens.Encoding.Growing.RealWorld Proto.Lnrpc.Ln0.ChannelPoint+ -> Data.ProtoLens.Encoding.Bytes.Parser MultiChanBackup+ loop x mutable'chanPoints+ = do end <- Data.ProtoLens.Encoding.Bytes.atEnd+ if end then+ do frozen'chanPoints <- Data.ProtoLens.Encoding.Parser.Unsafe.unsafeLiftIO+ (Data.ProtoLens.Encoding.Growing.unsafeFreeze+ mutable'chanPoints)+ (let missing = []+ in+ if Prelude.null missing then+ Prelude.return ()+ else+ Prelude.fail+ ((Prelude.++)+ "Missing required fields: "+ (Prelude.show (missing :: [Prelude.String]))))+ Prelude.return+ (Lens.Family2.over+ Data.ProtoLens.unknownFields (\ !t -> Prelude.reverse t)+ (Lens.Family2.set+ (Data.ProtoLens.Field.field @"vec'chanPoints") frozen'chanPoints+ x))+ else+ do tag <- Data.ProtoLens.Encoding.Bytes.getVarInt+ case tag of+ 10+ -> do !y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (do len <- Data.ProtoLens.Encoding.Bytes.getVarInt+ Data.ProtoLens.Encoding.Bytes.isolate+ (Prelude.fromIntegral len)+ Data.ProtoLens.parseMessage)+ "chan_points"+ v <- Data.ProtoLens.Encoding.Parser.Unsafe.unsafeLiftIO+ (Data.ProtoLens.Encoding.Growing.append mutable'chanPoints y)+ loop x v+ 18+ -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (do len <- Data.ProtoLens.Encoding.Bytes.getVarInt+ Data.ProtoLens.Encoding.Bytes.getBytes+ (Prelude.fromIntegral len))+ "multi_chan_backup"+ loop+ (Lens.Family2.set+ (Data.ProtoLens.Field.field @"multiChanBackup") y x)+ mutable'chanPoints+ wire+ -> do !y <- Data.ProtoLens.Encoding.Wire.parseTaggedValueFromWire+ wire+ loop+ (Lens.Family2.over+ Data.ProtoLens.unknownFields (\ !t -> (:) y t) x)+ mutable'chanPoints+ in+ (Data.ProtoLens.Encoding.Bytes.<?>)+ (do mutable'chanPoints <- Data.ProtoLens.Encoding.Parser.Unsafe.unsafeLiftIO+ Data.ProtoLens.Encoding.Growing.new+ loop Data.ProtoLens.defMessage mutable'chanPoints)+ "MultiChanBackup"+ buildMessage+ = \ _x+ -> (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.foldMapBuilder+ (\ _v+ -> (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 10)+ ((Prelude..)+ (\ bs+ -> (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt+ (Prelude.fromIntegral (Data.ByteString.length bs)))+ (Data.ProtoLens.Encoding.Bytes.putBytes bs))+ Data.ProtoLens.encodeMessage _v))+ (Lens.Family2.view+ (Data.ProtoLens.Field.field @"vec'chanPoints") _x))+ ((Data.Monoid.<>)+ (let+ _v+ = Lens.Family2.view+ (Data.ProtoLens.Field.field @"multiChanBackup") _x+ in+ if (Prelude.==) _v Data.ProtoLens.fieldDefault then+ Data.Monoid.mempty+ else+ (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 18)+ ((\ bs+ -> (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt+ (Prelude.fromIntegral (Data.ByteString.length bs)))+ (Data.ProtoLens.Encoding.Bytes.putBytes bs))+ _v))+ (Data.ProtoLens.Encoding.Wire.buildFieldSet+ (Lens.Family2.view Data.ProtoLens.unknownFields _x)))+instance Control.DeepSeq.NFData MultiChanBackup where+ rnf+ = \ x__+ -> Control.DeepSeq.deepseq+ (_MultiChanBackup'_unknownFields x__)+ (Control.DeepSeq.deepseq+ (_MultiChanBackup'chanPoints x__)+ (Control.DeepSeq.deepseq+ (_MultiChanBackup'multiChanBackup x__) ()))+{- | Fields :+ + * 'Proto.Lnrpc.Ln1_Fields.entity' @:: Lens' Op Data.Text.Text@+ * 'Proto.Lnrpc.Ln1_Fields.actions' @:: Lens' Op [Data.Text.Text]@+ * 'Proto.Lnrpc.Ln1_Fields.vec'actions' @:: Lens' Op (Data.Vector.Vector Data.Text.Text)@ -}+data Op+ = Op'_constructor {_Op'entity :: !Data.Text.Text,+ _Op'actions :: !(Data.Vector.Vector Data.Text.Text),+ _Op'_unknownFields :: !Data.ProtoLens.FieldSet}+ deriving stock (Prelude.Eq, Prelude.Ord, GHC.Generics.Generic)+instance Prelude.Show Op where+ showsPrec _ __x __s+ = Prelude.showChar+ '{'+ (Prelude.showString+ (Data.ProtoLens.showMessageShort __x) (Prelude.showChar '}' __s))+instance Text.PrettyPrint.GenericPretty.Out Op+instance Data.ProtoLens.Field.HasField Op "entity" Data.Text.Text where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _Op'entity (\ x__ y__ -> x__ {_Op'entity = y__}))+ Prelude.id+instance Data.ProtoLens.Field.HasField Op "actions" [Data.Text.Text] where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _Op'actions (\ x__ y__ -> x__ {_Op'actions = y__}))+ (Lens.Family2.Unchecked.lens+ Data.Vector.Generic.toList+ (\ _ y__ -> Data.Vector.Generic.fromList y__))+instance Data.ProtoLens.Field.HasField Op "vec'actions" (Data.Vector.Vector Data.Text.Text) where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _Op'actions (\ x__ y__ -> x__ {_Op'actions = y__}))+ Prelude.id+instance Data.ProtoLens.Message Op where+ messageName _ = Data.Text.pack "lnrpc.Op"+ packedMessageDescriptor _+ = "\n\+ \\STXOp\DC2\SYN\n\+ \\ACKentity\CAN\SOH \SOH(\tR\ACKentity\DC2\CAN\n\+ \\aactions\CAN\STX \ETX(\tR\aactions"+ packedFileDescriptor _ = packedFileDescriptor+ fieldsByTag+ = let+ entity__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "entity"+ (Data.ProtoLens.ScalarField Data.ProtoLens.StringField ::+ Data.ProtoLens.FieldTypeDescriptor Data.Text.Text)+ (Data.ProtoLens.PlainField+ Data.ProtoLens.Optional (Data.ProtoLens.Field.field @"entity")) ::+ Data.ProtoLens.FieldDescriptor Op+ actions__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "actions"+ (Data.ProtoLens.ScalarField Data.ProtoLens.StringField ::+ Data.ProtoLens.FieldTypeDescriptor Data.Text.Text)+ (Data.ProtoLens.RepeatedField+ Data.ProtoLens.Unpacked (Data.ProtoLens.Field.field @"actions")) ::+ Data.ProtoLens.FieldDescriptor Op+ in+ Data.Map.fromList+ [(Data.ProtoLens.Tag 1, entity__field_descriptor),+ (Data.ProtoLens.Tag 2, actions__field_descriptor)]+ unknownFields+ = Lens.Family2.Unchecked.lens+ _Op'_unknownFields (\ x__ y__ -> x__ {_Op'_unknownFields = y__})+ defMessage+ = Op'_constructor+ {_Op'entity = Data.ProtoLens.fieldDefault,+ _Op'actions = Data.Vector.Generic.empty, _Op'_unknownFields = []}+ parseMessage+ = let+ loop ::+ Op+ -> Data.ProtoLens.Encoding.Growing.Growing Data.Vector.Vector Data.ProtoLens.Encoding.Growing.RealWorld Data.Text.Text+ -> Data.ProtoLens.Encoding.Bytes.Parser Op+ loop x mutable'actions+ = do end <- Data.ProtoLens.Encoding.Bytes.atEnd+ if end then+ do frozen'actions <- Data.ProtoLens.Encoding.Parser.Unsafe.unsafeLiftIO+ (Data.ProtoLens.Encoding.Growing.unsafeFreeze+ mutable'actions)+ (let missing = []+ in+ if Prelude.null missing then+ Prelude.return ()+ else+ Prelude.fail+ ((Prelude.++)+ "Missing required fields: "+ (Prelude.show (missing :: [Prelude.String]))))+ Prelude.return+ (Lens.Family2.over+ Data.ProtoLens.unknownFields (\ !t -> Prelude.reverse t)+ (Lens.Family2.set+ (Data.ProtoLens.Field.field @"vec'actions") frozen'actions x))+ else+ do tag <- Data.ProtoLens.Encoding.Bytes.getVarInt+ case tag of+ 10+ -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (do value <- do len <- Data.ProtoLens.Encoding.Bytes.getVarInt+ Data.ProtoLens.Encoding.Bytes.getBytes+ (Prelude.fromIntegral len)+ Data.ProtoLens.Encoding.Bytes.runEither+ (case Data.Text.Encoding.decodeUtf8' value of+ (Prelude.Left err)+ -> Prelude.Left (Prelude.show err)+ (Prelude.Right r) -> Prelude.Right r))+ "entity"+ loop+ (Lens.Family2.set (Data.ProtoLens.Field.field @"entity") y x)+ mutable'actions+ 18+ -> do !y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (do value <- do len <- Data.ProtoLens.Encoding.Bytes.getVarInt+ Data.ProtoLens.Encoding.Bytes.getBytes+ (Prelude.fromIntegral len)+ Data.ProtoLens.Encoding.Bytes.runEither+ (case Data.Text.Encoding.decodeUtf8' value of+ (Prelude.Left err)+ -> Prelude.Left (Prelude.show err)+ (Prelude.Right r) -> Prelude.Right r))+ "actions"+ v <- Data.ProtoLens.Encoding.Parser.Unsafe.unsafeLiftIO+ (Data.ProtoLens.Encoding.Growing.append mutable'actions y)+ loop x v+ wire+ -> do !y <- Data.ProtoLens.Encoding.Wire.parseTaggedValueFromWire+ wire+ loop+ (Lens.Family2.over+ Data.ProtoLens.unknownFields (\ !t -> (:) y t) x)+ mutable'actions+ in+ (Data.ProtoLens.Encoding.Bytes.<?>)+ (do mutable'actions <- Data.ProtoLens.Encoding.Parser.Unsafe.unsafeLiftIO+ Data.ProtoLens.Encoding.Growing.new+ loop Data.ProtoLens.defMessage mutable'actions)+ "Op"+ buildMessage+ = \ _x+ -> (Data.Monoid.<>)+ (let+ _v = Lens.Family2.view (Data.ProtoLens.Field.field @"entity") _x+ in+ if (Prelude.==) _v Data.ProtoLens.fieldDefault then+ Data.Monoid.mempty+ else+ (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 10)+ ((Prelude..)+ (\ bs+ -> (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt+ (Prelude.fromIntegral (Data.ByteString.length bs)))+ (Data.ProtoLens.Encoding.Bytes.putBytes bs))+ Data.Text.Encoding.encodeUtf8 _v))+ ((Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.foldMapBuilder+ (\ _v+ -> (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 18)+ ((Prelude..)+ (\ bs+ -> (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt+ (Prelude.fromIntegral (Data.ByteString.length bs)))+ (Data.ProtoLens.Encoding.Bytes.putBytes bs))+ Data.Text.Encoding.encodeUtf8 _v))+ (Lens.Family2.view (Data.ProtoLens.Field.field @"vec'actions") _x))+ (Data.ProtoLens.Encoding.Wire.buildFieldSet+ (Lens.Family2.view Data.ProtoLens.unknownFields _x)))+instance Control.DeepSeq.NFData Op where+ rnf+ = \ x__+ -> Control.DeepSeq.deepseq+ (_Op'_unknownFields x__)+ (Control.DeepSeq.deepseq+ (_Op'entity x__) (Control.DeepSeq.deepseq (_Op'actions x__) ()))+{- | Fields :+ + * 'Proto.Lnrpc.Ln1_Fields.destination' @:: Lens' PayReq Data.Text.Text@+ * 'Proto.Lnrpc.Ln1_Fields.paymentHash' @:: Lens' PayReq Data.Text.Text@+ * 'Proto.Lnrpc.Ln1_Fields.numSatoshis' @:: Lens' PayReq Data.Int.Int64@+ * 'Proto.Lnrpc.Ln1_Fields.timestamp' @:: Lens' PayReq Data.Int.Int64@+ * 'Proto.Lnrpc.Ln1_Fields.expiry' @:: Lens' PayReq Data.Int.Int64@+ * 'Proto.Lnrpc.Ln1_Fields.description' @:: Lens' PayReq Data.Text.Text@+ * 'Proto.Lnrpc.Ln1_Fields.descriptionHash' @:: Lens' PayReq Data.Text.Text@+ * 'Proto.Lnrpc.Ln1_Fields.fallbackAddr' @:: Lens' PayReq Data.Text.Text@+ * 'Proto.Lnrpc.Ln1_Fields.cltvExpiry' @:: Lens' PayReq Data.Int.Int64@+ * 'Proto.Lnrpc.Ln1_Fields.routeHints' @:: Lens' PayReq [Proto.Lnrpc.Ln0.RouteHint]@+ * 'Proto.Lnrpc.Ln1_Fields.vec'routeHints' @:: Lens' PayReq (Data.Vector.Vector Proto.Lnrpc.Ln0.RouteHint)@+ * 'Proto.Lnrpc.Ln1_Fields.paymentAddr' @:: Lens' PayReq Data.ByteString.ByteString@+ * 'Proto.Lnrpc.Ln1_Fields.numMsat' @:: Lens' PayReq Data.Int.Int64@+ * 'Proto.Lnrpc.Ln1_Fields.features' @:: Lens' PayReq (Data.Map.Map Data.Word.Word32 Proto.Lnrpc.Ln0.Feature)@ -}+data PayReq+ = PayReq'_constructor {_PayReq'destination :: !Data.Text.Text,+ _PayReq'paymentHash :: !Data.Text.Text,+ _PayReq'numSatoshis :: !Data.Int.Int64,+ _PayReq'timestamp :: !Data.Int.Int64,+ _PayReq'expiry :: !Data.Int.Int64,+ _PayReq'description :: !Data.Text.Text,+ _PayReq'descriptionHash :: !Data.Text.Text,+ _PayReq'fallbackAddr :: !Data.Text.Text,+ _PayReq'cltvExpiry :: !Data.Int.Int64,+ _PayReq'routeHints :: !(Data.Vector.Vector Proto.Lnrpc.Ln0.RouteHint),+ _PayReq'paymentAddr :: !Data.ByteString.ByteString,+ _PayReq'numMsat :: !Data.Int.Int64,+ _PayReq'features :: !(Data.Map.Map Data.Word.Word32 Proto.Lnrpc.Ln0.Feature),+ _PayReq'_unknownFields :: !Data.ProtoLens.FieldSet}+ deriving stock (Prelude.Eq, Prelude.Ord, GHC.Generics.Generic)+instance Prelude.Show PayReq where+ showsPrec _ __x __s+ = Prelude.showChar+ '{'+ (Prelude.showString+ (Data.ProtoLens.showMessageShort __x) (Prelude.showChar '}' __s))+instance Text.PrettyPrint.GenericPretty.Out PayReq+instance Data.ProtoLens.Field.HasField PayReq "destination" Data.Text.Text where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _PayReq'destination (\ x__ y__ -> x__ {_PayReq'destination = y__}))+ Prelude.id+instance Data.ProtoLens.Field.HasField PayReq "paymentHash" Data.Text.Text where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _PayReq'paymentHash (\ x__ y__ -> x__ {_PayReq'paymentHash = y__}))+ Prelude.id+instance Data.ProtoLens.Field.HasField PayReq "numSatoshis" Data.Int.Int64 where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _PayReq'numSatoshis (\ x__ y__ -> x__ {_PayReq'numSatoshis = y__}))+ Prelude.id+instance Data.ProtoLens.Field.HasField PayReq "timestamp" Data.Int.Int64 where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _PayReq'timestamp (\ x__ y__ -> x__ {_PayReq'timestamp = y__}))+ Prelude.id+instance Data.ProtoLens.Field.HasField PayReq "expiry" Data.Int.Int64 where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _PayReq'expiry (\ x__ y__ -> x__ {_PayReq'expiry = y__}))+ Prelude.id+instance Data.ProtoLens.Field.HasField PayReq "description" Data.Text.Text where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _PayReq'description (\ x__ y__ -> x__ {_PayReq'description = y__}))+ Prelude.id+instance Data.ProtoLens.Field.HasField PayReq "descriptionHash" Data.Text.Text where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _PayReq'descriptionHash+ (\ x__ y__ -> x__ {_PayReq'descriptionHash = y__}))+ Prelude.id+instance Data.ProtoLens.Field.HasField PayReq "fallbackAddr" Data.Text.Text where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _PayReq'fallbackAddr+ (\ x__ y__ -> x__ {_PayReq'fallbackAddr = y__}))+ Prelude.id+instance Data.ProtoLens.Field.HasField PayReq "cltvExpiry" Data.Int.Int64 where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _PayReq'cltvExpiry (\ x__ y__ -> x__ {_PayReq'cltvExpiry = y__}))+ Prelude.id+instance Data.ProtoLens.Field.HasField PayReq "routeHints" [Proto.Lnrpc.Ln0.RouteHint] where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _PayReq'routeHints (\ x__ y__ -> x__ {_PayReq'routeHints = y__}))+ (Lens.Family2.Unchecked.lens+ Data.Vector.Generic.toList+ (\ _ y__ -> Data.Vector.Generic.fromList y__))+instance Data.ProtoLens.Field.HasField PayReq "vec'routeHints" (Data.Vector.Vector Proto.Lnrpc.Ln0.RouteHint) where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _PayReq'routeHints (\ x__ y__ -> x__ {_PayReq'routeHints = y__}))+ Prelude.id+instance Data.ProtoLens.Field.HasField PayReq "paymentAddr" Data.ByteString.ByteString where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _PayReq'paymentAddr (\ x__ y__ -> x__ {_PayReq'paymentAddr = y__}))+ Prelude.id+instance Data.ProtoLens.Field.HasField PayReq "numMsat" Data.Int.Int64 where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _PayReq'numMsat (\ x__ y__ -> x__ {_PayReq'numMsat = y__}))+ Prelude.id+instance Data.ProtoLens.Field.HasField PayReq "features" (Data.Map.Map Data.Word.Word32 Proto.Lnrpc.Ln0.Feature) where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _PayReq'features (\ x__ y__ -> x__ {_PayReq'features = y__}))+ Prelude.id+instance Data.ProtoLens.Message PayReq where+ messageName _ = Data.Text.pack "lnrpc.PayReq"+ packedMessageDescriptor _+ = "\n\+ \\ACKPayReq\DC2 \n\+ \\vdestination\CAN\SOH \SOH(\tR\vdestination\DC2!\n\+ \\fpayment_hash\CAN\STX \SOH(\tR\vpaymentHash\DC2!\n\+ \\fnum_satoshis\CAN\ETX \SOH(\ETXR\vnumSatoshis\DC2\FS\n\+ \\ttimestamp\CAN\EOT \SOH(\ETXR\ttimestamp\DC2\SYN\n\+ \\ACKexpiry\CAN\ENQ \SOH(\ETXR\ACKexpiry\DC2 \n\+ \\vdescription\CAN\ACK \SOH(\tR\vdescription\DC2)\n\+ \\DLEdescription_hash\CAN\a \SOH(\tR\SIdescriptionHash\DC2#\n\+ \\rfallback_addr\CAN\b \SOH(\tR\ffallbackAddr\DC2\US\n\+ \\vcltv_expiry\CAN\t \SOH(\ETXR\n\+ \cltvExpiry\DC21\n\+ \\vroute_hints\CAN\n\+ \ \ETX(\v2\DLE.lnrpc.RouteHintR\n\+ \routeHints\DC2!\n\+ \\fpayment_addr\CAN\v \SOH(\fR\vpaymentAddr\DC2\EM\n\+ \\bnum_msat\CAN\f \SOH(\ETXR\anumMsat\DC27\n\+ \\bfeatures\CAN\r \ETX(\v2\ESC.lnrpc.PayReq.FeaturesEntryR\bfeatures\SUBK\n\+ \\rFeaturesEntry\DC2\DLE\n\+ \\ETXkey\CAN\SOH \SOH(\rR\ETXkey\DC2$\n\+ \\ENQvalue\CAN\STX \SOH(\v2\SO.lnrpc.FeatureR\ENQvalue:\STX8\SOH"+ packedFileDescriptor _ = packedFileDescriptor+ fieldsByTag+ = let+ destination__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "destination"+ (Data.ProtoLens.ScalarField Data.ProtoLens.StringField ::+ Data.ProtoLens.FieldTypeDescriptor Data.Text.Text)+ (Data.ProtoLens.PlainField+ Data.ProtoLens.Optional+ (Data.ProtoLens.Field.field @"destination")) ::+ Data.ProtoLens.FieldDescriptor PayReq+ paymentHash__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "payment_hash"+ (Data.ProtoLens.ScalarField Data.ProtoLens.StringField ::+ Data.ProtoLens.FieldTypeDescriptor Data.Text.Text)+ (Data.ProtoLens.PlainField+ Data.ProtoLens.Optional+ (Data.ProtoLens.Field.field @"paymentHash")) ::+ Data.ProtoLens.FieldDescriptor PayReq+ numSatoshis__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "num_satoshis"+ (Data.ProtoLens.ScalarField Data.ProtoLens.Int64Field ::+ Data.ProtoLens.FieldTypeDescriptor Data.Int.Int64)+ (Data.ProtoLens.PlainField+ Data.ProtoLens.Optional+ (Data.ProtoLens.Field.field @"numSatoshis")) ::+ Data.ProtoLens.FieldDescriptor PayReq+ timestamp__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "timestamp"+ (Data.ProtoLens.ScalarField Data.ProtoLens.Int64Field ::+ Data.ProtoLens.FieldTypeDescriptor Data.Int.Int64)+ (Data.ProtoLens.PlainField+ Data.ProtoLens.Optional+ (Data.ProtoLens.Field.field @"timestamp")) ::+ Data.ProtoLens.FieldDescriptor PayReq+ expiry__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "expiry"+ (Data.ProtoLens.ScalarField Data.ProtoLens.Int64Field ::+ Data.ProtoLens.FieldTypeDescriptor Data.Int.Int64)+ (Data.ProtoLens.PlainField+ Data.ProtoLens.Optional (Data.ProtoLens.Field.field @"expiry")) ::+ Data.ProtoLens.FieldDescriptor PayReq+ description__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "description"+ (Data.ProtoLens.ScalarField Data.ProtoLens.StringField ::+ Data.ProtoLens.FieldTypeDescriptor Data.Text.Text)+ (Data.ProtoLens.PlainField+ Data.ProtoLens.Optional+ (Data.ProtoLens.Field.field @"description")) ::+ Data.ProtoLens.FieldDescriptor PayReq+ descriptionHash__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "description_hash"+ (Data.ProtoLens.ScalarField Data.ProtoLens.StringField ::+ Data.ProtoLens.FieldTypeDescriptor Data.Text.Text)+ (Data.ProtoLens.PlainField+ Data.ProtoLens.Optional+ (Data.ProtoLens.Field.field @"descriptionHash")) ::+ Data.ProtoLens.FieldDescriptor PayReq+ fallbackAddr__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "fallback_addr"+ (Data.ProtoLens.ScalarField Data.ProtoLens.StringField ::+ Data.ProtoLens.FieldTypeDescriptor Data.Text.Text)+ (Data.ProtoLens.PlainField+ Data.ProtoLens.Optional+ (Data.ProtoLens.Field.field @"fallbackAddr")) ::+ Data.ProtoLens.FieldDescriptor PayReq+ cltvExpiry__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "cltv_expiry"+ (Data.ProtoLens.ScalarField Data.ProtoLens.Int64Field ::+ Data.ProtoLens.FieldTypeDescriptor Data.Int.Int64)+ (Data.ProtoLens.PlainField+ Data.ProtoLens.Optional+ (Data.ProtoLens.Field.field @"cltvExpiry")) ::+ Data.ProtoLens.FieldDescriptor PayReq+ routeHints__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "route_hints"+ (Data.ProtoLens.MessageField Data.ProtoLens.MessageType ::+ Data.ProtoLens.FieldTypeDescriptor Proto.Lnrpc.Ln0.RouteHint)+ (Data.ProtoLens.RepeatedField+ Data.ProtoLens.Unpacked+ (Data.ProtoLens.Field.field @"routeHints")) ::+ Data.ProtoLens.FieldDescriptor PayReq+ paymentAddr__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "payment_addr"+ (Data.ProtoLens.ScalarField Data.ProtoLens.BytesField ::+ Data.ProtoLens.FieldTypeDescriptor Data.ByteString.ByteString)+ (Data.ProtoLens.PlainField+ Data.ProtoLens.Optional+ (Data.ProtoLens.Field.field @"paymentAddr")) ::+ Data.ProtoLens.FieldDescriptor PayReq+ numMsat__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "num_msat"+ (Data.ProtoLens.ScalarField Data.ProtoLens.Int64Field ::+ Data.ProtoLens.FieldTypeDescriptor Data.Int.Int64)+ (Data.ProtoLens.PlainField+ Data.ProtoLens.Optional (Data.ProtoLens.Field.field @"numMsat")) ::+ Data.ProtoLens.FieldDescriptor PayReq+ features__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "features"+ (Data.ProtoLens.MessageField Data.ProtoLens.MessageType ::+ Data.ProtoLens.FieldTypeDescriptor PayReq'FeaturesEntry)+ (Data.ProtoLens.MapField+ (Data.ProtoLens.Field.field @"key")+ (Data.ProtoLens.Field.field @"value")+ (Data.ProtoLens.Field.field @"features")) ::+ Data.ProtoLens.FieldDescriptor PayReq+ in+ Data.Map.fromList+ [(Data.ProtoLens.Tag 1, destination__field_descriptor),+ (Data.ProtoLens.Tag 2, paymentHash__field_descriptor),+ (Data.ProtoLens.Tag 3, numSatoshis__field_descriptor),+ (Data.ProtoLens.Tag 4, timestamp__field_descriptor),+ (Data.ProtoLens.Tag 5, expiry__field_descriptor),+ (Data.ProtoLens.Tag 6, description__field_descriptor),+ (Data.ProtoLens.Tag 7, descriptionHash__field_descriptor),+ (Data.ProtoLens.Tag 8, fallbackAddr__field_descriptor),+ (Data.ProtoLens.Tag 9, cltvExpiry__field_descriptor),+ (Data.ProtoLens.Tag 10, routeHints__field_descriptor),+ (Data.ProtoLens.Tag 11, paymentAddr__field_descriptor),+ (Data.ProtoLens.Tag 12, numMsat__field_descriptor),+ (Data.ProtoLens.Tag 13, features__field_descriptor)]+ unknownFields+ = Lens.Family2.Unchecked.lens+ _PayReq'_unknownFields+ (\ x__ y__ -> x__ {_PayReq'_unknownFields = y__})+ defMessage+ = PayReq'_constructor+ {_PayReq'destination = Data.ProtoLens.fieldDefault,+ _PayReq'paymentHash = Data.ProtoLens.fieldDefault,+ _PayReq'numSatoshis = Data.ProtoLens.fieldDefault,+ _PayReq'timestamp = Data.ProtoLens.fieldDefault,+ _PayReq'expiry = Data.ProtoLens.fieldDefault,+ _PayReq'description = Data.ProtoLens.fieldDefault,+ _PayReq'descriptionHash = Data.ProtoLens.fieldDefault,+ _PayReq'fallbackAddr = Data.ProtoLens.fieldDefault,+ _PayReq'cltvExpiry = Data.ProtoLens.fieldDefault,+ _PayReq'routeHints = Data.Vector.Generic.empty,+ _PayReq'paymentAddr = Data.ProtoLens.fieldDefault,+ _PayReq'numMsat = Data.ProtoLens.fieldDefault,+ _PayReq'features = Data.Map.empty, _PayReq'_unknownFields = []}+ parseMessage+ = let+ loop ::+ PayReq+ -> Data.ProtoLens.Encoding.Growing.Growing Data.Vector.Vector Data.ProtoLens.Encoding.Growing.RealWorld Proto.Lnrpc.Ln0.RouteHint+ -> Data.ProtoLens.Encoding.Bytes.Parser PayReq+ loop x mutable'routeHints+ = do end <- Data.ProtoLens.Encoding.Bytes.atEnd+ if end then+ do frozen'routeHints <- Data.ProtoLens.Encoding.Parser.Unsafe.unsafeLiftIO+ (Data.ProtoLens.Encoding.Growing.unsafeFreeze+ mutable'routeHints)+ (let missing = []+ in+ if Prelude.null missing then+ Prelude.return ()+ else+ Prelude.fail+ ((Prelude.++)+ "Missing required fields: "+ (Prelude.show (missing :: [Prelude.String]))))+ Prelude.return+ (Lens.Family2.over+ Data.ProtoLens.unknownFields (\ !t -> Prelude.reverse t)+ (Lens.Family2.set+ (Data.ProtoLens.Field.field @"vec'routeHints") frozen'routeHints+ x))+ else+ do tag <- Data.ProtoLens.Encoding.Bytes.getVarInt+ case tag of+ 10+ -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (do value <- do len <- Data.ProtoLens.Encoding.Bytes.getVarInt+ Data.ProtoLens.Encoding.Bytes.getBytes+ (Prelude.fromIntegral len)+ Data.ProtoLens.Encoding.Bytes.runEither+ (case Data.Text.Encoding.decodeUtf8' value of+ (Prelude.Left err)+ -> Prelude.Left (Prelude.show err)+ (Prelude.Right r) -> Prelude.Right r))+ "destination"+ loop+ (Lens.Family2.set (Data.ProtoLens.Field.field @"destination") y x)+ mutable'routeHints+ 18+ -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (do value <- do len <- Data.ProtoLens.Encoding.Bytes.getVarInt+ Data.ProtoLens.Encoding.Bytes.getBytes+ (Prelude.fromIntegral len)+ Data.ProtoLens.Encoding.Bytes.runEither+ (case Data.Text.Encoding.decodeUtf8' value of+ (Prelude.Left err)+ -> Prelude.Left (Prelude.show err)+ (Prelude.Right r) -> Prelude.Right r))+ "payment_hash"+ loop+ (Lens.Family2.set (Data.ProtoLens.Field.field @"paymentHash") y x)+ mutable'routeHints+ 24+ -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (Prelude.fmap+ Prelude.fromIntegral+ Data.ProtoLens.Encoding.Bytes.getVarInt)+ "num_satoshis"+ loop+ (Lens.Family2.set (Data.ProtoLens.Field.field @"numSatoshis") y x)+ mutable'routeHints+ 32+ -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (Prelude.fmap+ Prelude.fromIntegral+ Data.ProtoLens.Encoding.Bytes.getVarInt)+ "timestamp"+ loop+ (Lens.Family2.set (Data.ProtoLens.Field.field @"timestamp") y x)+ mutable'routeHints+ 40+ -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (Prelude.fmap+ Prelude.fromIntegral+ Data.ProtoLens.Encoding.Bytes.getVarInt)+ "expiry"+ loop+ (Lens.Family2.set (Data.ProtoLens.Field.field @"expiry") y x)+ mutable'routeHints+ 50+ -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (do value <- do len <- Data.ProtoLens.Encoding.Bytes.getVarInt+ Data.ProtoLens.Encoding.Bytes.getBytes+ (Prelude.fromIntegral len)+ Data.ProtoLens.Encoding.Bytes.runEither+ (case Data.Text.Encoding.decodeUtf8' value of+ (Prelude.Left err)+ -> Prelude.Left (Prelude.show err)+ (Prelude.Right r) -> Prelude.Right r))+ "description"+ loop+ (Lens.Family2.set (Data.ProtoLens.Field.field @"description") y x)+ mutable'routeHints+ 58+ -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (do value <- do len <- Data.ProtoLens.Encoding.Bytes.getVarInt+ Data.ProtoLens.Encoding.Bytes.getBytes+ (Prelude.fromIntegral len)+ Data.ProtoLens.Encoding.Bytes.runEither+ (case Data.Text.Encoding.decodeUtf8' value of+ (Prelude.Left err)+ -> Prelude.Left (Prelude.show err)+ (Prelude.Right r) -> Prelude.Right r))+ "description_hash"+ loop+ (Lens.Family2.set+ (Data.ProtoLens.Field.field @"descriptionHash") y x)+ mutable'routeHints+ 66+ -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (do value <- do len <- Data.ProtoLens.Encoding.Bytes.getVarInt+ Data.ProtoLens.Encoding.Bytes.getBytes+ (Prelude.fromIntegral len)+ Data.ProtoLens.Encoding.Bytes.runEither+ (case Data.Text.Encoding.decodeUtf8' value of+ (Prelude.Left err)+ -> Prelude.Left (Prelude.show err)+ (Prelude.Right r) -> Prelude.Right r))+ "fallback_addr"+ loop+ (Lens.Family2.set+ (Data.ProtoLens.Field.field @"fallbackAddr") y x)+ mutable'routeHints+ 72+ -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (Prelude.fmap+ Prelude.fromIntegral+ Data.ProtoLens.Encoding.Bytes.getVarInt)+ "cltv_expiry"+ loop+ (Lens.Family2.set (Data.ProtoLens.Field.field @"cltvExpiry") y x)+ mutable'routeHints+ 82+ -> do !y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (do len <- Data.ProtoLens.Encoding.Bytes.getVarInt+ Data.ProtoLens.Encoding.Bytes.isolate+ (Prelude.fromIntegral len)+ Data.ProtoLens.parseMessage)+ "route_hints"+ v <- Data.ProtoLens.Encoding.Parser.Unsafe.unsafeLiftIO+ (Data.ProtoLens.Encoding.Growing.append mutable'routeHints y)+ loop x v+ 90+ -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (do len <- Data.ProtoLens.Encoding.Bytes.getVarInt+ Data.ProtoLens.Encoding.Bytes.getBytes+ (Prelude.fromIntegral len))+ "payment_addr"+ loop+ (Lens.Family2.set (Data.ProtoLens.Field.field @"paymentAddr") y x)+ mutable'routeHints+ 96+ -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (Prelude.fmap+ Prelude.fromIntegral+ Data.ProtoLens.Encoding.Bytes.getVarInt)+ "num_msat"+ loop+ (Lens.Family2.set (Data.ProtoLens.Field.field @"numMsat") y x)+ mutable'routeHints+ 106+ -> do !(entry :: PayReq'FeaturesEntry) <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (do len <- Data.ProtoLens.Encoding.Bytes.getVarInt+ Data.ProtoLens.Encoding.Bytes.isolate+ (Prelude.fromIntegral+ len)+ Data.ProtoLens.parseMessage)+ "features"+ (let+ key = Lens.Family2.view (Data.ProtoLens.Field.field @"key") entry+ value+ = Lens.Family2.view (Data.ProtoLens.Field.field @"value") entry+ in+ loop+ (Lens.Family2.over+ (Data.ProtoLens.Field.field @"features")+ (\ !t -> Data.Map.insert key value t) x)+ mutable'routeHints)+ wire+ -> do !y <- Data.ProtoLens.Encoding.Wire.parseTaggedValueFromWire+ wire+ loop+ (Lens.Family2.over+ Data.ProtoLens.unknownFields (\ !t -> (:) y t) x)+ mutable'routeHints+ in+ (Data.ProtoLens.Encoding.Bytes.<?>)+ (do mutable'routeHints <- Data.ProtoLens.Encoding.Parser.Unsafe.unsafeLiftIO+ Data.ProtoLens.Encoding.Growing.new+ loop Data.ProtoLens.defMessage mutable'routeHints)+ "PayReq"+ buildMessage+ = \ _x+ -> (Data.Monoid.<>)+ (let+ _v+ = Lens.Family2.view (Data.ProtoLens.Field.field @"destination") _x+ in+ if (Prelude.==) _v Data.ProtoLens.fieldDefault then+ Data.Monoid.mempty+ else+ (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 10)+ ((Prelude..)+ (\ bs+ -> (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt+ (Prelude.fromIntegral (Data.ByteString.length bs)))+ (Data.ProtoLens.Encoding.Bytes.putBytes bs))+ Data.Text.Encoding.encodeUtf8 _v))+ ((Data.Monoid.<>)+ (let+ _v+ = Lens.Family2.view (Data.ProtoLens.Field.field @"paymentHash") _x+ in+ if (Prelude.==) _v Data.ProtoLens.fieldDefault then+ Data.Monoid.mempty+ else+ (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 18)+ ((Prelude..)+ (\ bs+ -> (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt+ (Prelude.fromIntegral (Data.ByteString.length bs)))+ (Data.ProtoLens.Encoding.Bytes.putBytes bs))+ Data.Text.Encoding.encodeUtf8 _v))+ ((Data.Monoid.<>)+ (let+ _v+ = Lens.Family2.view (Data.ProtoLens.Field.field @"numSatoshis") _x+ in+ if (Prelude.==) _v Data.ProtoLens.fieldDefault then+ Data.Monoid.mempty+ else+ (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 24)+ ((Prelude..)+ Data.ProtoLens.Encoding.Bytes.putVarInt Prelude.fromIntegral _v))+ ((Data.Monoid.<>)+ (let+ _v = Lens.Family2.view (Data.ProtoLens.Field.field @"timestamp") _x+ in+ if (Prelude.==) _v Data.ProtoLens.fieldDefault then+ Data.Monoid.mempty+ else+ (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 32)+ ((Prelude..)+ Data.ProtoLens.Encoding.Bytes.putVarInt Prelude.fromIntegral _v))+ ((Data.Monoid.<>)+ (let+ _v = Lens.Family2.view (Data.ProtoLens.Field.field @"expiry") _x+ in+ if (Prelude.==) _v Data.ProtoLens.fieldDefault then+ Data.Monoid.mempty+ else+ (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 40)+ ((Prelude..)+ Data.ProtoLens.Encoding.Bytes.putVarInt Prelude.fromIntegral+ _v))+ ((Data.Monoid.<>)+ (let+ _v+ = Lens.Family2.view (Data.ProtoLens.Field.field @"description") _x+ in+ if (Prelude.==) _v Data.ProtoLens.fieldDefault then+ Data.Monoid.mempty+ else+ (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 50)+ ((Prelude..)+ (\ bs+ -> (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt+ (Prelude.fromIntegral+ (Data.ByteString.length bs)))+ (Data.ProtoLens.Encoding.Bytes.putBytes bs))+ Data.Text.Encoding.encodeUtf8 _v))+ ((Data.Monoid.<>)+ (let+ _v+ = Lens.Family2.view+ (Data.ProtoLens.Field.field @"descriptionHash") _x+ in+ if (Prelude.==) _v Data.ProtoLens.fieldDefault then+ Data.Monoid.mempty+ else+ (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 58)+ ((Prelude..)+ (\ bs+ -> (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt+ (Prelude.fromIntegral+ (Data.ByteString.length bs)))+ (Data.ProtoLens.Encoding.Bytes.putBytes bs))+ Data.Text.Encoding.encodeUtf8 _v))+ ((Data.Monoid.<>)+ (let+ _v+ = Lens.Family2.view+ (Data.ProtoLens.Field.field @"fallbackAddr") _x+ in+ if (Prelude.==) _v Data.ProtoLens.fieldDefault then+ Data.Monoid.mempty+ else+ (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 66)+ ((Prelude..)+ (\ bs+ -> (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt+ (Prelude.fromIntegral+ (Data.ByteString.length bs)))+ (Data.ProtoLens.Encoding.Bytes.putBytes bs))+ Data.Text.Encoding.encodeUtf8 _v))+ ((Data.Monoid.<>)+ (let+ _v+ = Lens.Family2.view+ (Data.ProtoLens.Field.field @"cltvExpiry") _x+ in+ if (Prelude.==) _v Data.ProtoLens.fieldDefault then+ Data.Monoid.mempty+ else+ (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 72)+ ((Prelude..)+ Data.ProtoLens.Encoding.Bytes.putVarInt+ Prelude.fromIntegral _v))+ ((Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.foldMapBuilder+ (\ _v+ -> (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 82)+ ((Prelude..)+ (\ bs+ -> (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt+ (Prelude.fromIntegral+ (Data.ByteString.length bs)))+ (Data.ProtoLens.Encoding.Bytes.putBytes+ bs))+ Data.ProtoLens.encodeMessage _v))+ (Lens.Family2.view+ (Data.ProtoLens.Field.field @"vec'routeHints") _x))+ ((Data.Monoid.<>)+ (let+ _v+ = Lens.Family2.view+ (Data.ProtoLens.Field.field @"paymentAddr") _x+ in+ if (Prelude.==) _v Data.ProtoLens.fieldDefault then+ Data.Monoid.mempty+ else+ (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 90)+ ((\ bs+ -> (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt+ (Prelude.fromIntegral+ (Data.ByteString.length bs)))+ (Data.ProtoLens.Encoding.Bytes.putBytes+ bs))+ _v))+ ((Data.Monoid.<>)+ (let+ _v+ = Lens.Family2.view+ (Data.ProtoLens.Field.field @"numMsat") _x+ in+ if (Prelude.==) _v Data.ProtoLens.fieldDefault then+ Data.Monoid.mempty+ else+ (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 96)+ ((Prelude..)+ Data.ProtoLens.Encoding.Bytes.putVarInt+ Prelude.fromIntegral _v))+ ((Data.Monoid.<>)+ (Data.Monoid.mconcat+ (Prelude.map+ (\ _v+ -> (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt+ 106)+ ((Prelude..)+ (\ bs+ -> (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt+ (Prelude.fromIntegral+ (Data.ByteString.length+ bs)))+ (Data.ProtoLens.Encoding.Bytes.putBytes+ bs))+ Data.ProtoLens.encodeMessage+ (Lens.Family2.set+ (Data.ProtoLens.Field.field+ @"key")+ (Prelude.fst _v)+ (Lens.Family2.set+ (Data.ProtoLens.Field.field+ @"value")+ (Prelude.snd _v)+ (Data.ProtoLens.defMessage ::+ PayReq'FeaturesEntry)))))+ (Data.Map.toList+ (Lens.Family2.view+ (Data.ProtoLens.Field.field+ @"features")+ _x))))+ (Data.ProtoLens.Encoding.Wire.buildFieldSet+ (Lens.Family2.view+ Data.ProtoLens.unknownFields _x))))))))))))))+instance Control.DeepSeq.NFData PayReq where+ rnf+ = \ x__+ -> Control.DeepSeq.deepseq+ (_PayReq'_unknownFields x__)+ (Control.DeepSeq.deepseq+ (_PayReq'destination x__)+ (Control.DeepSeq.deepseq+ (_PayReq'paymentHash x__)+ (Control.DeepSeq.deepseq+ (_PayReq'numSatoshis x__)+ (Control.DeepSeq.deepseq+ (_PayReq'timestamp x__)+ (Control.DeepSeq.deepseq+ (_PayReq'expiry x__)+ (Control.DeepSeq.deepseq+ (_PayReq'description x__)+ (Control.DeepSeq.deepseq+ (_PayReq'descriptionHash x__)+ (Control.DeepSeq.deepseq+ (_PayReq'fallbackAddr x__)+ (Control.DeepSeq.deepseq+ (_PayReq'cltvExpiry x__)+ (Control.DeepSeq.deepseq+ (_PayReq'routeHints x__)+ (Control.DeepSeq.deepseq+ (_PayReq'paymentAddr x__)+ (Control.DeepSeq.deepseq+ (_PayReq'numMsat x__)+ (Control.DeepSeq.deepseq+ (_PayReq'features x__) ())))))))))))))+{- | Fields :+ + * 'Proto.Lnrpc.Ln1_Fields.key' @:: Lens' PayReq'FeaturesEntry Data.Word.Word32@+ * 'Proto.Lnrpc.Ln1_Fields.value' @:: Lens' PayReq'FeaturesEntry Proto.Lnrpc.Ln0.Feature@+ * 'Proto.Lnrpc.Ln1_Fields.maybe'value' @:: Lens' PayReq'FeaturesEntry (Prelude.Maybe Proto.Lnrpc.Ln0.Feature)@ -}+data PayReq'FeaturesEntry+ = PayReq'FeaturesEntry'_constructor {_PayReq'FeaturesEntry'key :: !Data.Word.Word32,+ _PayReq'FeaturesEntry'value :: !(Prelude.Maybe Proto.Lnrpc.Ln0.Feature),+ _PayReq'FeaturesEntry'_unknownFields :: !Data.ProtoLens.FieldSet}+ deriving stock (Prelude.Eq, Prelude.Ord, GHC.Generics.Generic)+instance Prelude.Show PayReq'FeaturesEntry where+ showsPrec _ __x __s+ = Prelude.showChar+ '{'+ (Prelude.showString+ (Data.ProtoLens.showMessageShort __x) (Prelude.showChar '}' __s))+instance Text.PrettyPrint.GenericPretty.Out PayReq'FeaturesEntry+instance Data.ProtoLens.Field.HasField PayReq'FeaturesEntry "key" Data.Word.Word32 where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _PayReq'FeaturesEntry'key+ (\ x__ y__ -> x__ {_PayReq'FeaturesEntry'key = y__}))+ Prelude.id+instance Data.ProtoLens.Field.HasField PayReq'FeaturesEntry "value" Proto.Lnrpc.Ln0.Feature where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _PayReq'FeaturesEntry'value+ (\ x__ y__ -> x__ {_PayReq'FeaturesEntry'value = y__}))+ (Data.ProtoLens.maybeLens Data.ProtoLens.defMessage)+instance Data.ProtoLens.Field.HasField PayReq'FeaturesEntry "maybe'value" (Prelude.Maybe Proto.Lnrpc.Ln0.Feature) where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _PayReq'FeaturesEntry'value+ (\ x__ y__ -> x__ {_PayReq'FeaturesEntry'value = y__}))+ Prelude.id+instance Data.ProtoLens.Message PayReq'FeaturesEntry where+ messageName _ = Data.Text.pack "lnrpc.PayReq.FeaturesEntry"+ packedMessageDescriptor _+ = "\n\+ \\rFeaturesEntry\DC2\DLE\n\+ \\ETXkey\CAN\SOH \SOH(\rR\ETXkey\DC2$\n\+ \\ENQvalue\CAN\STX \SOH(\v2\SO.lnrpc.FeatureR\ENQvalue:\STX8\SOH"+ packedFileDescriptor _ = packedFileDescriptor+ fieldsByTag+ = let+ key__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "key"+ (Data.ProtoLens.ScalarField Data.ProtoLens.UInt32Field ::+ Data.ProtoLens.FieldTypeDescriptor Data.Word.Word32)+ (Data.ProtoLens.PlainField+ Data.ProtoLens.Optional (Data.ProtoLens.Field.field @"key")) ::+ Data.ProtoLens.FieldDescriptor PayReq'FeaturesEntry+ value__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "value"+ (Data.ProtoLens.MessageField Data.ProtoLens.MessageType ::+ Data.ProtoLens.FieldTypeDescriptor Proto.Lnrpc.Ln0.Feature)+ (Data.ProtoLens.OptionalField+ (Data.ProtoLens.Field.field @"maybe'value")) ::+ Data.ProtoLens.FieldDescriptor PayReq'FeaturesEntry+ in+ Data.Map.fromList+ [(Data.ProtoLens.Tag 1, key__field_descriptor),+ (Data.ProtoLens.Tag 2, value__field_descriptor)]+ unknownFields+ = Lens.Family2.Unchecked.lens+ _PayReq'FeaturesEntry'_unknownFields+ (\ x__ y__ -> x__ {_PayReq'FeaturesEntry'_unknownFields = y__})+ defMessage+ = PayReq'FeaturesEntry'_constructor+ {_PayReq'FeaturesEntry'key = Data.ProtoLens.fieldDefault,+ _PayReq'FeaturesEntry'value = Prelude.Nothing,+ _PayReq'FeaturesEntry'_unknownFields = []}+ parseMessage+ = let+ loop ::+ PayReq'FeaturesEntry+ -> Data.ProtoLens.Encoding.Bytes.Parser PayReq'FeaturesEntry+ loop x+ = do end <- Data.ProtoLens.Encoding.Bytes.atEnd+ if end then+ do (let missing = []+ in+ if Prelude.null missing then+ Prelude.return ()+ else+ Prelude.fail+ ((Prelude.++)+ "Missing required fields: "+ (Prelude.show (missing :: [Prelude.String]))))+ Prelude.return+ (Lens.Family2.over+ Data.ProtoLens.unknownFields (\ !t -> Prelude.reverse t) x)+ else+ do tag <- Data.ProtoLens.Encoding.Bytes.getVarInt+ case tag of+ 8 -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (Prelude.fmap+ Prelude.fromIntegral+ Data.ProtoLens.Encoding.Bytes.getVarInt)+ "key"+ loop (Lens.Family2.set (Data.ProtoLens.Field.field @"key") y x)+ 18+ -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (do len <- Data.ProtoLens.Encoding.Bytes.getVarInt+ Data.ProtoLens.Encoding.Bytes.isolate+ (Prelude.fromIntegral len) Data.ProtoLens.parseMessage)+ "value"+ loop (Lens.Family2.set (Data.ProtoLens.Field.field @"value") y x)+ wire+ -> do !y <- Data.ProtoLens.Encoding.Wire.parseTaggedValueFromWire+ wire+ loop+ (Lens.Family2.over+ Data.ProtoLens.unknownFields (\ !t -> (:) y t) x)+ in+ (Data.ProtoLens.Encoding.Bytes.<?>)+ (do loop Data.ProtoLens.defMessage) "FeaturesEntry"+ buildMessage+ = \ _x+ -> (Data.Monoid.<>)+ (let _v = Lens.Family2.view (Data.ProtoLens.Field.field @"key") _x+ in+ if (Prelude.==) _v Data.ProtoLens.fieldDefault then+ Data.Monoid.mempty+ else+ (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 8)+ ((Prelude..)+ Data.ProtoLens.Encoding.Bytes.putVarInt Prelude.fromIntegral _v))+ ((Data.Monoid.<>)+ (case+ Lens.Family2.view (Data.ProtoLens.Field.field @"maybe'value") _x+ of+ Prelude.Nothing -> Data.Monoid.mempty+ (Prelude.Just _v)+ -> (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 18)+ ((Prelude..)+ (\ bs+ -> (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt+ (Prelude.fromIntegral (Data.ByteString.length bs)))+ (Data.ProtoLens.Encoding.Bytes.putBytes bs))+ Data.ProtoLens.encodeMessage _v))+ (Data.ProtoLens.Encoding.Wire.buildFieldSet+ (Lens.Family2.view Data.ProtoLens.unknownFields _x)))+instance Control.DeepSeq.NFData PayReq'FeaturesEntry where+ rnf+ = \ x__+ -> Control.DeepSeq.deepseq+ (_PayReq'FeaturesEntry'_unknownFields x__)+ (Control.DeepSeq.deepseq+ (_PayReq'FeaturesEntry'key x__)+ (Control.DeepSeq.deepseq (_PayReq'FeaturesEntry'value x__) ()))+{- | Fields :+ + * 'Proto.Lnrpc.Ln1_Fields.payReq' @:: Lens' PayReqString Data.Text.Text@ -}+data PayReqString+ = PayReqString'_constructor {_PayReqString'payReq :: !Data.Text.Text,+ _PayReqString'_unknownFields :: !Data.ProtoLens.FieldSet}+ deriving stock (Prelude.Eq, Prelude.Ord, GHC.Generics.Generic)+instance Prelude.Show PayReqString where+ showsPrec _ __x __s+ = Prelude.showChar+ '{'+ (Prelude.showString+ (Data.ProtoLens.showMessageShort __x) (Prelude.showChar '}' __s))+instance Text.PrettyPrint.GenericPretty.Out PayReqString+instance Data.ProtoLens.Field.HasField PayReqString "payReq" Data.Text.Text where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _PayReqString'payReq+ (\ x__ y__ -> x__ {_PayReqString'payReq = y__}))+ Prelude.id+instance Data.ProtoLens.Message PayReqString where+ messageName _ = Data.Text.pack "lnrpc.PayReqString"+ packedMessageDescriptor _+ = "\n\+ \\fPayReqString\DC2\ETB\n\+ \\apay_req\CAN\SOH \SOH(\tR\ACKpayReq"+ packedFileDescriptor _ = packedFileDescriptor+ fieldsByTag+ = let+ payReq__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "pay_req"+ (Data.ProtoLens.ScalarField Data.ProtoLens.StringField ::+ Data.ProtoLens.FieldTypeDescriptor Data.Text.Text)+ (Data.ProtoLens.PlainField+ Data.ProtoLens.Optional (Data.ProtoLens.Field.field @"payReq")) ::+ Data.ProtoLens.FieldDescriptor PayReqString+ in+ Data.Map.fromList+ [(Data.ProtoLens.Tag 1, payReq__field_descriptor)]+ unknownFields+ = Lens.Family2.Unchecked.lens+ _PayReqString'_unknownFields+ (\ x__ y__ -> x__ {_PayReqString'_unknownFields = y__})+ defMessage+ = PayReqString'_constructor+ {_PayReqString'payReq = Data.ProtoLens.fieldDefault,+ _PayReqString'_unknownFields = []}+ parseMessage+ = let+ loop ::+ PayReqString -> Data.ProtoLens.Encoding.Bytes.Parser PayReqString+ loop x+ = do end <- Data.ProtoLens.Encoding.Bytes.atEnd+ if end then+ do (let missing = []+ in+ if Prelude.null missing then+ Prelude.return ()+ else+ Prelude.fail+ ((Prelude.++)+ "Missing required fields: "+ (Prelude.show (missing :: [Prelude.String]))))+ Prelude.return+ (Lens.Family2.over+ Data.ProtoLens.unknownFields (\ !t -> Prelude.reverse t) x)+ else+ do tag <- Data.ProtoLens.Encoding.Bytes.getVarInt+ case tag of+ 10+ -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (do value <- do len <- Data.ProtoLens.Encoding.Bytes.getVarInt+ Data.ProtoLens.Encoding.Bytes.getBytes+ (Prelude.fromIntegral len)+ Data.ProtoLens.Encoding.Bytes.runEither+ (case Data.Text.Encoding.decodeUtf8' value of+ (Prelude.Left err)+ -> Prelude.Left (Prelude.show err)+ (Prelude.Right r) -> Prelude.Right r))+ "pay_req"+ loop (Lens.Family2.set (Data.ProtoLens.Field.field @"payReq") y x)+ wire+ -> do !y <- Data.ProtoLens.Encoding.Wire.parseTaggedValueFromWire+ wire+ loop+ (Lens.Family2.over+ Data.ProtoLens.unknownFields (\ !t -> (:) y t) x)+ in+ (Data.ProtoLens.Encoding.Bytes.<?>)+ (do loop Data.ProtoLens.defMessage) "PayReqString"+ buildMessage+ = \ _x+ -> (Data.Monoid.<>)+ (let+ _v = Lens.Family2.view (Data.ProtoLens.Field.field @"payReq") _x+ in+ if (Prelude.==) _v Data.ProtoLens.fieldDefault then+ Data.Monoid.mempty+ else+ (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 10)+ ((Prelude..)+ (\ bs+ -> (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt+ (Prelude.fromIntegral (Data.ByteString.length bs)))+ (Data.ProtoLens.Encoding.Bytes.putBytes bs))+ Data.Text.Encoding.encodeUtf8 _v))+ (Data.ProtoLens.Encoding.Wire.buildFieldSet+ (Lens.Family2.view Data.ProtoLens.unknownFields _x))+instance Control.DeepSeq.NFData PayReqString where+ rnf+ = \ x__+ -> Control.DeepSeq.deepseq+ (_PayReqString'_unknownFields x__)+ (Control.DeepSeq.deepseq (_PayReqString'payReq x__) ())+{- | Fields :+ + * 'Proto.Lnrpc.Ln1_Fields.paymentHash' @:: Lens' Payment Data.Text.Text@+ * 'Proto.Lnrpc.Ln1_Fields.value' @:: Lens' Payment Data.Int.Int64@+ * 'Proto.Lnrpc.Ln1_Fields.creationDate' @:: Lens' Payment Data.Int.Int64@+ * 'Proto.Lnrpc.Ln1_Fields.fee' @:: Lens' Payment Data.Int.Int64@+ * 'Proto.Lnrpc.Ln1_Fields.paymentPreimage' @:: Lens' Payment Data.Text.Text@+ * 'Proto.Lnrpc.Ln1_Fields.valueSat' @:: Lens' Payment Data.Int.Int64@+ * 'Proto.Lnrpc.Ln1_Fields.valueMsat' @:: Lens' Payment Data.Int.Int64@+ * 'Proto.Lnrpc.Ln1_Fields.paymentRequest' @:: Lens' Payment Data.Text.Text@+ * 'Proto.Lnrpc.Ln1_Fields.status' @:: Lens' Payment Payment'PaymentStatus@+ * 'Proto.Lnrpc.Ln1_Fields.feeSat' @:: Lens' Payment Data.Int.Int64@+ * 'Proto.Lnrpc.Ln1_Fields.feeMsat' @:: Lens' Payment Data.Int.Int64@+ * 'Proto.Lnrpc.Ln1_Fields.creationTimeNs' @:: Lens' Payment Data.Int.Int64@+ * 'Proto.Lnrpc.Ln1_Fields.htlcs' @:: Lens' Payment [HTLCAttempt]@+ * 'Proto.Lnrpc.Ln1_Fields.vec'htlcs' @:: Lens' Payment (Data.Vector.Vector HTLCAttempt)@+ * 'Proto.Lnrpc.Ln1_Fields.paymentIndex' @:: Lens' Payment Data.Word.Word64@+ * 'Proto.Lnrpc.Ln1_Fields.failureReason' @:: Lens' Payment PaymentFailureReason@ -}+data Payment+ = Payment'_constructor {_Payment'paymentHash :: !Data.Text.Text,+ _Payment'value :: !Data.Int.Int64,+ _Payment'creationDate :: !Data.Int.Int64,+ _Payment'fee :: !Data.Int.Int64,+ _Payment'paymentPreimage :: !Data.Text.Text,+ _Payment'valueSat :: !Data.Int.Int64,+ _Payment'valueMsat :: !Data.Int.Int64,+ _Payment'paymentRequest :: !Data.Text.Text,+ _Payment'status :: !Payment'PaymentStatus,+ _Payment'feeSat :: !Data.Int.Int64,+ _Payment'feeMsat :: !Data.Int.Int64,+ _Payment'creationTimeNs :: !Data.Int.Int64,+ _Payment'htlcs :: !(Data.Vector.Vector HTLCAttempt),+ _Payment'paymentIndex :: !Data.Word.Word64,+ _Payment'failureReason :: !PaymentFailureReason,+ _Payment'_unknownFields :: !Data.ProtoLens.FieldSet}+ deriving stock (Prelude.Eq, Prelude.Ord, GHC.Generics.Generic)+instance Prelude.Show Payment where+ showsPrec _ __x __s+ = Prelude.showChar+ '{'+ (Prelude.showString+ (Data.ProtoLens.showMessageShort __x) (Prelude.showChar '}' __s))+instance Text.PrettyPrint.GenericPretty.Out Payment+instance Data.ProtoLens.Field.HasField Payment "paymentHash" Data.Text.Text where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _Payment'paymentHash+ (\ x__ y__ -> x__ {_Payment'paymentHash = y__}))+ Prelude.id+instance Data.ProtoLens.Field.HasField Payment "value" Data.Int.Int64 where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _Payment'value (\ x__ y__ -> x__ {_Payment'value = y__}))+ Prelude.id+instance Data.ProtoLens.Field.HasField Payment "creationDate" Data.Int.Int64 where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _Payment'creationDate+ (\ x__ y__ -> x__ {_Payment'creationDate = y__}))+ Prelude.id+instance Data.ProtoLens.Field.HasField Payment "fee" Data.Int.Int64 where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _Payment'fee (\ x__ y__ -> x__ {_Payment'fee = y__}))+ Prelude.id+instance Data.ProtoLens.Field.HasField Payment "paymentPreimage" Data.Text.Text where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _Payment'paymentPreimage+ (\ x__ y__ -> x__ {_Payment'paymentPreimage = y__}))+ Prelude.id+instance Data.ProtoLens.Field.HasField Payment "valueSat" Data.Int.Int64 where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _Payment'valueSat (\ x__ y__ -> x__ {_Payment'valueSat = y__}))+ Prelude.id+instance Data.ProtoLens.Field.HasField Payment "valueMsat" Data.Int.Int64 where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _Payment'valueMsat (\ x__ y__ -> x__ {_Payment'valueMsat = y__}))+ Prelude.id+instance Data.ProtoLens.Field.HasField Payment "paymentRequest" Data.Text.Text where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _Payment'paymentRequest+ (\ x__ y__ -> x__ {_Payment'paymentRequest = y__}))+ Prelude.id+instance Data.ProtoLens.Field.HasField Payment "status" Payment'PaymentStatus where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _Payment'status (\ x__ y__ -> x__ {_Payment'status = y__}))+ Prelude.id+instance Data.ProtoLens.Field.HasField Payment "feeSat" Data.Int.Int64 where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _Payment'feeSat (\ x__ y__ -> x__ {_Payment'feeSat = y__}))+ Prelude.id+instance Data.ProtoLens.Field.HasField Payment "feeMsat" Data.Int.Int64 where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _Payment'feeMsat (\ x__ y__ -> x__ {_Payment'feeMsat = y__}))+ Prelude.id+instance Data.ProtoLens.Field.HasField Payment "creationTimeNs" Data.Int.Int64 where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _Payment'creationTimeNs+ (\ x__ y__ -> x__ {_Payment'creationTimeNs = y__}))+ Prelude.id+instance Data.ProtoLens.Field.HasField Payment "htlcs" [HTLCAttempt] where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _Payment'htlcs (\ x__ y__ -> x__ {_Payment'htlcs = y__}))+ (Lens.Family2.Unchecked.lens+ Data.Vector.Generic.toList+ (\ _ y__ -> Data.Vector.Generic.fromList y__))+instance Data.ProtoLens.Field.HasField Payment "vec'htlcs" (Data.Vector.Vector HTLCAttempt) where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _Payment'htlcs (\ x__ y__ -> x__ {_Payment'htlcs = y__}))+ Prelude.id+instance Data.ProtoLens.Field.HasField Payment "paymentIndex" Data.Word.Word64 where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _Payment'paymentIndex+ (\ x__ y__ -> x__ {_Payment'paymentIndex = y__}))+ Prelude.id+instance Data.ProtoLens.Field.HasField Payment "failureReason" PaymentFailureReason where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _Payment'failureReason+ (\ x__ y__ -> x__ {_Payment'failureReason = y__}))+ Prelude.id+instance Data.ProtoLens.Message Payment where+ messageName _ = Data.Text.pack "lnrpc.Payment"+ packedMessageDescriptor _+ = "\n\+ \\aPayment\DC2!\n\+ \\fpayment_hash\CAN\SOH \SOH(\tR\vpaymentHash\DC2\CAN\n\+ \\ENQvalue\CAN\STX \SOH(\ETXR\ENQvalueB\STX\CAN\SOH\DC2'\n\+ \\rcreation_date\CAN\ETX \SOH(\ETXR\fcreationDateB\STX\CAN\SOH\DC2\DC4\n\+ \\ETXfee\CAN\ENQ \SOH(\ETXR\ETXfeeB\STX\CAN\SOH\DC2)\n\+ \\DLEpayment_preimage\CAN\ACK \SOH(\tR\SIpaymentPreimage\DC2\ESC\n\+ \\tvalue_sat\CAN\a \SOH(\ETXR\bvalueSat\DC2\GS\n\+ \\n\+ \value_msat\CAN\b \SOH(\ETXR\tvalueMsat\DC2'\n\+ \\SIpayment_request\CAN\t \SOH(\tR\SOpaymentRequest\DC24\n\+ \\ACKstatus\CAN\n\+ \ \SOH(\SO2\FS.lnrpc.Payment.PaymentStatusR\ACKstatus\DC2\ETB\n\+ \\afee_sat\CAN\v \SOH(\ETXR\ACKfeeSat\DC2\EM\n\+ \\bfee_msat\CAN\f \SOH(\ETXR\afeeMsat\DC2(\n\+ \\DLEcreation_time_ns\CAN\r \SOH(\ETXR\SOcreationTimeNs\DC2(\n\+ \\ENQhtlcs\CAN\SO \ETX(\v2\DC2.lnrpc.HTLCAttemptR\ENQhtlcs\DC2#\n\+ \\rpayment_index\CAN\SI \SOH(\EOTR\fpaymentIndex\DC2B\n\+ \\SOfailure_reason\CAN\DLE \SOH(\SO2\ESC.lnrpc.PaymentFailureReasonR\rfailureReason\"F\n\+ \\rPaymentStatus\DC2\v\n\+ \\aUNKNOWN\DLE\NUL\DC2\r\n\+ \\tIN_FLIGHT\DLE\SOH\DC2\r\n\+ \\tSUCCEEDED\DLE\STX\DC2\n\+ \\n\+ \\ACKFAILED\DLE\ETXJ\EOT\b\EOT\DLE\ENQ"+ packedFileDescriptor _ = packedFileDescriptor+ fieldsByTag+ = let+ paymentHash__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "payment_hash"+ (Data.ProtoLens.ScalarField Data.ProtoLens.StringField ::+ Data.ProtoLens.FieldTypeDescriptor Data.Text.Text)+ (Data.ProtoLens.PlainField+ Data.ProtoLens.Optional+ (Data.ProtoLens.Field.field @"paymentHash")) ::+ Data.ProtoLens.FieldDescriptor Payment+ value__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "value"+ (Data.ProtoLens.ScalarField Data.ProtoLens.Int64Field ::+ Data.ProtoLens.FieldTypeDescriptor Data.Int.Int64)+ (Data.ProtoLens.PlainField+ Data.ProtoLens.Optional (Data.ProtoLens.Field.field @"value")) ::+ Data.ProtoLens.FieldDescriptor Payment+ creationDate__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "creation_date"+ (Data.ProtoLens.ScalarField Data.ProtoLens.Int64Field ::+ Data.ProtoLens.FieldTypeDescriptor Data.Int.Int64)+ (Data.ProtoLens.PlainField+ Data.ProtoLens.Optional+ (Data.ProtoLens.Field.field @"creationDate")) ::+ Data.ProtoLens.FieldDescriptor Payment+ fee__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "fee"+ (Data.ProtoLens.ScalarField Data.ProtoLens.Int64Field ::+ Data.ProtoLens.FieldTypeDescriptor Data.Int.Int64)+ (Data.ProtoLens.PlainField+ Data.ProtoLens.Optional (Data.ProtoLens.Field.field @"fee")) ::+ Data.ProtoLens.FieldDescriptor Payment+ paymentPreimage__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "payment_preimage"+ (Data.ProtoLens.ScalarField Data.ProtoLens.StringField ::+ Data.ProtoLens.FieldTypeDescriptor Data.Text.Text)+ (Data.ProtoLens.PlainField+ Data.ProtoLens.Optional+ (Data.ProtoLens.Field.field @"paymentPreimage")) ::+ Data.ProtoLens.FieldDescriptor Payment+ valueSat__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "value_sat"+ (Data.ProtoLens.ScalarField Data.ProtoLens.Int64Field ::+ Data.ProtoLens.FieldTypeDescriptor Data.Int.Int64)+ (Data.ProtoLens.PlainField+ Data.ProtoLens.Optional+ (Data.ProtoLens.Field.field @"valueSat")) ::+ Data.ProtoLens.FieldDescriptor Payment+ valueMsat__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "value_msat"+ (Data.ProtoLens.ScalarField Data.ProtoLens.Int64Field ::+ Data.ProtoLens.FieldTypeDescriptor Data.Int.Int64)+ (Data.ProtoLens.PlainField+ Data.ProtoLens.Optional+ (Data.ProtoLens.Field.field @"valueMsat")) ::+ Data.ProtoLens.FieldDescriptor Payment+ paymentRequest__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "payment_request"+ (Data.ProtoLens.ScalarField Data.ProtoLens.StringField ::+ Data.ProtoLens.FieldTypeDescriptor Data.Text.Text)+ (Data.ProtoLens.PlainField+ Data.ProtoLens.Optional+ (Data.ProtoLens.Field.field @"paymentRequest")) ::+ Data.ProtoLens.FieldDescriptor Payment+ status__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "status"+ (Data.ProtoLens.ScalarField Data.ProtoLens.EnumField ::+ Data.ProtoLens.FieldTypeDescriptor Payment'PaymentStatus)+ (Data.ProtoLens.PlainField+ Data.ProtoLens.Optional (Data.ProtoLens.Field.field @"status")) ::+ Data.ProtoLens.FieldDescriptor Payment+ feeSat__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "fee_sat"+ (Data.ProtoLens.ScalarField Data.ProtoLens.Int64Field ::+ Data.ProtoLens.FieldTypeDescriptor Data.Int.Int64)+ (Data.ProtoLens.PlainField+ Data.ProtoLens.Optional (Data.ProtoLens.Field.field @"feeSat")) ::+ Data.ProtoLens.FieldDescriptor Payment+ feeMsat__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "fee_msat"+ (Data.ProtoLens.ScalarField Data.ProtoLens.Int64Field ::+ Data.ProtoLens.FieldTypeDescriptor Data.Int.Int64)+ (Data.ProtoLens.PlainField+ Data.ProtoLens.Optional (Data.ProtoLens.Field.field @"feeMsat")) ::+ Data.ProtoLens.FieldDescriptor Payment+ creationTimeNs__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "creation_time_ns"+ (Data.ProtoLens.ScalarField Data.ProtoLens.Int64Field ::+ Data.ProtoLens.FieldTypeDescriptor Data.Int.Int64)+ (Data.ProtoLens.PlainField+ Data.ProtoLens.Optional+ (Data.ProtoLens.Field.field @"creationTimeNs")) ::+ Data.ProtoLens.FieldDescriptor Payment+ htlcs__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "htlcs"+ (Data.ProtoLens.MessageField Data.ProtoLens.MessageType ::+ Data.ProtoLens.FieldTypeDescriptor HTLCAttempt)+ (Data.ProtoLens.RepeatedField+ Data.ProtoLens.Unpacked (Data.ProtoLens.Field.field @"htlcs")) ::+ Data.ProtoLens.FieldDescriptor Payment+ paymentIndex__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "payment_index"+ (Data.ProtoLens.ScalarField Data.ProtoLens.UInt64Field ::+ Data.ProtoLens.FieldTypeDescriptor Data.Word.Word64)+ (Data.ProtoLens.PlainField+ Data.ProtoLens.Optional+ (Data.ProtoLens.Field.field @"paymentIndex")) ::+ Data.ProtoLens.FieldDescriptor Payment+ failureReason__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "failure_reason"+ (Data.ProtoLens.ScalarField Data.ProtoLens.EnumField ::+ Data.ProtoLens.FieldTypeDescriptor PaymentFailureReason)+ (Data.ProtoLens.PlainField+ Data.ProtoLens.Optional+ (Data.ProtoLens.Field.field @"failureReason")) ::+ Data.ProtoLens.FieldDescriptor Payment+ in+ Data.Map.fromList+ [(Data.ProtoLens.Tag 1, paymentHash__field_descriptor),+ (Data.ProtoLens.Tag 2, value__field_descriptor),+ (Data.ProtoLens.Tag 3, creationDate__field_descriptor),+ (Data.ProtoLens.Tag 5, fee__field_descriptor),+ (Data.ProtoLens.Tag 6, paymentPreimage__field_descriptor),+ (Data.ProtoLens.Tag 7, valueSat__field_descriptor),+ (Data.ProtoLens.Tag 8, valueMsat__field_descriptor),+ (Data.ProtoLens.Tag 9, paymentRequest__field_descriptor),+ (Data.ProtoLens.Tag 10, status__field_descriptor),+ (Data.ProtoLens.Tag 11, feeSat__field_descriptor),+ (Data.ProtoLens.Tag 12, feeMsat__field_descriptor),+ (Data.ProtoLens.Tag 13, creationTimeNs__field_descriptor),+ (Data.ProtoLens.Tag 14, htlcs__field_descriptor),+ (Data.ProtoLens.Tag 15, paymentIndex__field_descriptor),+ (Data.ProtoLens.Tag 16, failureReason__field_descriptor)]+ unknownFields+ = Lens.Family2.Unchecked.lens+ _Payment'_unknownFields+ (\ x__ y__ -> x__ {_Payment'_unknownFields = y__})+ defMessage+ = Payment'_constructor+ {_Payment'paymentHash = Data.ProtoLens.fieldDefault,+ _Payment'value = Data.ProtoLens.fieldDefault,+ _Payment'creationDate = Data.ProtoLens.fieldDefault,+ _Payment'fee = Data.ProtoLens.fieldDefault,+ _Payment'paymentPreimage = Data.ProtoLens.fieldDefault,+ _Payment'valueSat = Data.ProtoLens.fieldDefault,+ _Payment'valueMsat = Data.ProtoLens.fieldDefault,+ _Payment'paymentRequest = Data.ProtoLens.fieldDefault,+ _Payment'status = Data.ProtoLens.fieldDefault,+ _Payment'feeSat = Data.ProtoLens.fieldDefault,+ _Payment'feeMsat = Data.ProtoLens.fieldDefault,+ _Payment'creationTimeNs = Data.ProtoLens.fieldDefault,+ _Payment'htlcs = Data.Vector.Generic.empty,+ _Payment'paymentIndex = Data.ProtoLens.fieldDefault,+ _Payment'failureReason = Data.ProtoLens.fieldDefault,+ _Payment'_unknownFields = []}+ parseMessage+ = let+ loop ::+ Payment+ -> Data.ProtoLens.Encoding.Growing.Growing Data.Vector.Vector Data.ProtoLens.Encoding.Growing.RealWorld HTLCAttempt+ -> Data.ProtoLens.Encoding.Bytes.Parser Payment+ loop x mutable'htlcs+ = do end <- Data.ProtoLens.Encoding.Bytes.atEnd+ if end then+ do frozen'htlcs <- Data.ProtoLens.Encoding.Parser.Unsafe.unsafeLiftIO+ (Data.ProtoLens.Encoding.Growing.unsafeFreeze mutable'htlcs)+ (let missing = []+ in+ if Prelude.null missing then+ Prelude.return ()+ else+ Prelude.fail+ ((Prelude.++)+ "Missing required fields: "+ (Prelude.show (missing :: [Prelude.String]))))+ Prelude.return+ (Lens.Family2.over+ Data.ProtoLens.unknownFields (\ !t -> Prelude.reverse t)+ (Lens.Family2.set+ (Data.ProtoLens.Field.field @"vec'htlcs") frozen'htlcs x))+ else+ do tag <- Data.ProtoLens.Encoding.Bytes.getVarInt+ case tag of+ 10+ -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (do value <- do len <- Data.ProtoLens.Encoding.Bytes.getVarInt+ Data.ProtoLens.Encoding.Bytes.getBytes+ (Prelude.fromIntegral len)+ Data.ProtoLens.Encoding.Bytes.runEither+ (case Data.Text.Encoding.decodeUtf8' value of+ (Prelude.Left err)+ -> Prelude.Left (Prelude.show err)+ (Prelude.Right r) -> Prelude.Right r))+ "payment_hash"+ loop+ (Lens.Family2.set (Data.ProtoLens.Field.field @"paymentHash") y x)+ mutable'htlcs+ 16+ -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (Prelude.fmap+ Prelude.fromIntegral+ Data.ProtoLens.Encoding.Bytes.getVarInt)+ "value"+ loop+ (Lens.Family2.set (Data.ProtoLens.Field.field @"value") y x)+ mutable'htlcs+ 24+ -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (Prelude.fmap+ Prelude.fromIntegral+ Data.ProtoLens.Encoding.Bytes.getVarInt)+ "creation_date"+ loop+ (Lens.Family2.set+ (Data.ProtoLens.Field.field @"creationDate") y x)+ mutable'htlcs+ 40+ -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (Prelude.fmap+ Prelude.fromIntegral+ Data.ProtoLens.Encoding.Bytes.getVarInt)+ "fee"+ loop+ (Lens.Family2.set (Data.ProtoLens.Field.field @"fee") y x)+ mutable'htlcs+ 50+ -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (do value <- do len <- Data.ProtoLens.Encoding.Bytes.getVarInt+ Data.ProtoLens.Encoding.Bytes.getBytes+ (Prelude.fromIntegral len)+ Data.ProtoLens.Encoding.Bytes.runEither+ (case Data.Text.Encoding.decodeUtf8' value of+ (Prelude.Left err)+ -> Prelude.Left (Prelude.show err)+ (Prelude.Right r) -> Prelude.Right r))+ "payment_preimage"+ loop+ (Lens.Family2.set+ (Data.ProtoLens.Field.field @"paymentPreimage") y x)+ mutable'htlcs+ 56+ -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (Prelude.fmap+ Prelude.fromIntegral+ Data.ProtoLens.Encoding.Bytes.getVarInt)+ "value_sat"+ loop+ (Lens.Family2.set (Data.ProtoLens.Field.field @"valueSat") y x)+ mutable'htlcs+ 64+ -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (Prelude.fmap+ Prelude.fromIntegral+ Data.ProtoLens.Encoding.Bytes.getVarInt)+ "value_msat"+ loop+ (Lens.Family2.set (Data.ProtoLens.Field.field @"valueMsat") y x)+ mutable'htlcs+ 74+ -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (do value <- do len <- Data.ProtoLens.Encoding.Bytes.getVarInt+ Data.ProtoLens.Encoding.Bytes.getBytes+ (Prelude.fromIntegral len)+ Data.ProtoLens.Encoding.Bytes.runEither+ (case Data.Text.Encoding.decodeUtf8' value of+ (Prelude.Left err)+ -> Prelude.Left (Prelude.show err)+ (Prelude.Right r) -> Prelude.Right r))+ "payment_request"+ loop+ (Lens.Family2.set+ (Data.ProtoLens.Field.field @"paymentRequest") y x)+ mutable'htlcs+ 80+ -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (Prelude.fmap+ Prelude.toEnum+ (Prelude.fmap+ Prelude.fromIntegral+ Data.ProtoLens.Encoding.Bytes.getVarInt))+ "status"+ loop+ (Lens.Family2.set (Data.ProtoLens.Field.field @"status") y x)+ mutable'htlcs+ 88+ -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (Prelude.fmap+ Prelude.fromIntegral+ Data.ProtoLens.Encoding.Bytes.getVarInt)+ "fee_sat"+ loop+ (Lens.Family2.set (Data.ProtoLens.Field.field @"feeSat") y x)+ mutable'htlcs+ 96+ -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (Prelude.fmap+ Prelude.fromIntegral+ Data.ProtoLens.Encoding.Bytes.getVarInt)+ "fee_msat"+ loop+ (Lens.Family2.set (Data.ProtoLens.Field.field @"feeMsat") y x)+ mutable'htlcs+ 104+ -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (Prelude.fmap+ Prelude.fromIntegral+ Data.ProtoLens.Encoding.Bytes.getVarInt)+ "creation_time_ns"+ loop+ (Lens.Family2.set+ (Data.ProtoLens.Field.field @"creationTimeNs") y x)+ mutable'htlcs+ 114+ -> do !y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (do len <- Data.ProtoLens.Encoding.Bytes.getVarInt+ Data.ProtoLens.Encoding.Bytes.isolate+ (Prelude.fromIntegral len)+ Data.ProtoLens.parseMessage)+ "htlcs"+ v <- Data.ProtoLens.Encoding.Parser.Unsafe.unsafeLiftIO+ (Data.ProtoLens.Encoding.Growing.append mutable'htlcs y)+ loop x v+ 120+ -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ Data.ProtoLens.Encoding.Bytes.getVarInt "payment_index"+ loop+ (Lens.Family2.set+ (Data.ProtoLens.Field.field @"paymentIndex") y x)+ mutable'htlcs+ 128+ -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (Prelude.fmap+ Prelude.toEnum+ (Prelude.fmap+ Prelude.fromIntegral+ Data.ProtoLens.Encoding.Bytes.getVarInt))+ "failure_reason"+ loop+ (Lens.Family2.set+ (Data.ProtoLens.Field.field @"failureReason") y x)+ mutable'htlcs+ wire+ -> do !y <- Data.ProtoLens.Encoding.Wire.parseTaggedValueFromWire+ wire+ loop+ (Lens.Family2.over+ Data.ProtoLens.unknownFields (\ !t -> (:) y t) x)+ mutable'htlcs+ in+ (Data.ProtoLens.Encoding.Bytes.<?>)+ (do mutable'htlcs <- Data.ProtoLens.Encoding.Parser.Unsafe.unsafeLiftIO+ Data.ProtoLens.Encoding.Growing.new+ loop Data.ProtoLens.defMessage mutable'htlcs)+ "Payment"+ buildMessage+ = \ _x+ -> (Data.Monoid.<>)+ (let+ _v+ = Lens.Family2.view (Data.ProtoLens.Field.field @"paymentHash") _x+ in+ if (Prelude.==) _v Data.ProtoLens.fieldDefault then+ Data.Monoid.mempty+ else+ (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 10)+ ((Prelude..)+ (\ bs+ -> (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt+ (Prelude.fromIntegral (Data.ByteString.length bs)))+ (Data.ProtoLens.Encoding.Bytes.putBytes bs))+ Data.Text.Encoding.encodeUtf8 _v))+ ((Data.Monoid.<>)+ (let+ _v = Lens.Family2.view (Data.ProtoLens.Field.field @"value") _x+ in+ if (Prelude.==) _v Data.ProtoLens.fieldDefault then+ Data.Monoid.mempty+ else+ (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 16)+ ((Prelude..)+ Data.ProtoLens.Encoding.Bytes.putVarInt Prelude.fromIntegral _v))+ ((Data.Monoid.<>)+ (let+ _v+ = Lens.Family2.view (Data.ProtoLens.Field.field @"creationDate") _x+ in+ if (Prelude.==) _v Data.ProtoLens.fieldDefault then+ Data.Monoid.mempty+ else+ (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 24)+ ((Prelude..)+ Data.ProtoLens.Encoding.Bytes.putVarInt Prelude.fromIntegral _v))+ ((Data.Monoid.<>)+ (let _v = Lens.Family2.view (Data.ProtoLens.Field.field @"fee") _x+ in+ if (Prelude.==) _v Data.ProtoLens.fieldDefault then+ Data.Monoid.mempty+ else+ (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 40)+ ((Prelude..)+ Data.ProtoLens.Encoding.Bytes.putVarInt Prelude.fromIntegral _v))+ ((Data.Monoid.<>)+ (let+ _v+ = Lens.Family2.view+ (Data.ProtoLens.Field.field @"paymentPreimage") _x+ in+ if (Prelude.==) _v Data.ProtoLens.fieldDefault then+ Data.Monoid.mempty+ else+ (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 50)+ ((Prelude..)+ (\ bs+ -> (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt+ (Prelude.fromIntegral (Data.ByteString.length bs)))+ (Data.ProtoLens.Encoding.Bytes.putBytes bs))+ Data.Text.Encoding.encodeUtf8 _v))+ ((Data.Monoid.<>)+ (let+ _v = Lens.Family2.view (Data.ProtoLens.Field.field @"valueSat") _x+ in+ if (Prelude.==) _v Data.ProtoLens.fieldDefault then+ Data.Monoid.mempty+ else+ (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 56)+ ((Prelude..)+ Data.ProtoLens.Encoding.Bytes.putVarInt Prelude.fromIntegral+ _v))+ ((Data.Monoid.<>)+ (let+ _v+ = Lens.Family2.view (Data.ProtoLens.Field.field @"valueMsat") _x+ in+ if (Prelude.==) _v Data.ProtoLens.fieldDefault then+ Data.Monoid.mempty+ else+ (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 64)+ ((Prelude..)+ Data.ProtoLens.Encoding.Bytes.putVarInt+ Prelude.fromIntegral _v))+ ((Data.Monoid.<>)+ (let+ _v+ = Lens.Family2.view+ (Data.ProtoLens.Field.field @"paymentRequest") _x+ in+ if (Prelude.==) _v Data.ProtoLens.fieldDefault then+ Data.Monoid.mempty+ else+ (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 74)+ ((Prelude..)+ (\ bs+ -> (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt+ (Prelude.fromIntegral+ (Data.ByteString.length bs)))+ (Data.ProtoLens.Encoding.Bytes.putBytes bs))+ Data.Text.Encoding.encodeUtf8 _v))+ ((Data.Monoid.<>)+ (let+ _v+ = Lens.Family2.view+ (Data.ProtoLens.Field.field @"status") _x+ in+ if (Prelude.==) _v Data.ProtoLens.fieldDefault then+ Data.Monoid.mempty+ else+ (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 80)+ ((Prelude..)+ ((Prelude..)+ Data.ProtoLens.Encoding.Bytes.putVarInt+ Prelude.fromIntegral)+ Prelude.fromEnum _v))+ ((Data.Monoid.<>)+ (let+ _v+ = Lens.Family2.view+ (Data.ProtoLens.Field.field @"feeSat") _x+ in+ if (Prelude.==) _v Data.ProtoLens.fieldDefault then+ Data.Monoid.mempty+ else+ (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 88)+ ((Prelude..)+ Data.ProtoLens.Encoding.Bytes.putVarInt+ Prelude.fromIntegral _v))+ ((Data.Monoid.<>)+ (let+ _v+ = Lens.Family2.view+ (Data.ProtoLens.Field.field @"feeMsat") _x+ in+ if (Prelude.==) _v Data.ProtoLens.fieldDefault then+ Data.Monoid.mempty+ else+ (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 96)+ ((Prelude..)+ Data.ProtoLens.Encoding.Bytes.putVarInt+ Prelude.fromIntegral _v))+ ((Data.Monoid.<>)+ (let+ _v+ = Lens.Family2.view+ (Data.ProtoLens.Field.field+ @"creationTimeNs")+ _x+ in+ if (Prelude.==) _v Data.ProtoLens.fieldDefault then+ Data.Monoid.mempty+ else+ (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 104)+ ((Prelude..)+ Data.ProtoLens.Encoding.Bytes.putVarInt+ Prelude.fromIntegral _v))+ ((Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.foldMapBuilder+ (\ _v+ -> (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt+ 114)+ ((Prelude..)+ (\ bs+ -> (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt+ (Prelude.fromIntegral+ (Data.ByteString.length+ bs)))+ (Data.ProtoLens.Encoding.Bytes.putBytes+ bs))+ Data.ProtoLens.encodeMessage _v))+ (Lens.Family2.view+ (Data.ProtoLens.Field.field @"vec'htlcs")+ _x))+ ((Data.Monoid.<>)+ (let+ _v+ = Lens.Family2.view+ (Data.ProtoLens.Field.field+ @"paymentIndex")+ _x+ in+ if (Prelude.==)+ _v Data.ProtoLens.fieldDefault then+ Data.Monoid.mempty+ else+ (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt+ 120)+ (Data.ProtoLens.Encoding.Bytes.putVarInt+ _v))+ ((Data.Monoid.<>)+ (let+ _v+ = Lens.Family2.view+ (Data.ProtoLens.Field.field+ @"failureReason")+ _x+ in+ if (Prelude.==)+ _v Data.ProtoLens.fieldDefault then+ Data.Monoid.mempty+ else+ (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt+ 128)+ ((Prelude..)+ ((Prelude..)+ Data.ProtoLens.Encoding.Bytes.putVarInt+ Prelude.fromIntegral)+ Prelude.fromEnum _v))+ (Data.ProtoLens.Encoding.Wire.buildFieldSet+ (Lens.Family2.view+ Data.ProtoLens.unknownFields+ _x))))))))))))))))+instance Control.DeepSeq.NFData Payment where+ rnf+ = \ x__+ -> Control.DeepSeq.deepseq+ (_Payment'_unknownFields x__)+ (Control.DeepSeq.deepseq+ (_Payment'paymentHash x__)+ (Control.DeepSeq.deepseq+ (_Payment'value x__)+ (Control.DeepSeq.deepseq+ (_Payment'creationDate x__)+ (Control.DeepSeq.deepseq+ (_Payment'fee x__)+ (Control.DeepSeq.deepseq+ (_Payment'paymentPreimage x__)+ (Control.DeepSeq.deepseq+ (_Payment'valueSat x__)+ (Control.DeepSeq.deepseq+ (_Payment'valueMsat x__)+ (Control.DeepSeq.deepseq+ (_Payment'paymentRequest x__)+ (Control.DeepSeq.deepseq+ (_Payment'status x__)+ (Control.DeepSeq.deepseq+ (_Payment'feeSat x__)+ (Control.DeepSeq.deepseq+ (_Payment'feeMsat x__)+ (Control.DeepSeq.deepseq+ (_Payment'creationTimeNs x__)+ (Control.DeepSeq.deepseq+ (_Payment'htlcs x__)+ (Control.DeepSeq.deepseq+ (_Payment'paymentIndex x__)+ (Control.DeepSeq.deepseq+ (_Payment'failureReason x__)+ ())))))))))))))))+newtype Payment'PaymentStatus'UnrecognizedValue+ = Payment'PaymentStatus'UnrecognizedValue Data.Int.Int32+ deriving stock (Prelude.Eq,+ Prelude.Ord,+ Prelude.Show,+ GHC.Generics.Generic)+instance Text.PrettyPrint.GenericPretty.Out Payment'PaymentStatus'UnrecognizedValue+data Payment'PaymentStatus+ = Payment'UNKNOWN |+ Payment'IN_FLIGHT |+ Payment'SUCCEEDED |+ Payment'FAILED |+ Payment'PaymentStatus'Unrecognized !Payment'PaymentStatus'UnrecognizedValue+ deriving stock (Prelude.Show,+ Prelude.Eq,+ Prelude.Ord,+ GHC.Generics.Generic)+instance Data.ProtoLens.MessageEnum Payment'PaymentStatus where+ maybeToEnum 0 = Prelude.Just Payment'UNKNOWN+ maybeToEnum 1 = Prelude.Just Payment'IN_FLIGHT+ maybeToEnum 2 = Prelude.Just Payment'SUCCEEDED+ maybeToEnum 3 = Prelude.Just Payment'FAILED+ maybeToEnum k+ = Prelude.Just+ (Payment'PaymentStatus'Unrecognized+ (Payment'PaymentStatus'UnrecognizedValue (Prelude.fromIntegral k)))+ showEnum Payment'UNKNOWN = "UNKNOWN"+ showEnum Payment'IN_FLIGHT = "IN_FLIGHT"+ showEnum Payment'SUCCEEDED = "SUCCEEDED"+ showEnum Payment'FAILED = "FAILED"+ showEnum+ (Payment'PaymentStatus'Unrecognized (Payment'PaymentStatus'UnrecognizedValue k))+ = Prelude.show k+ readEnum k+ | (Prelude.==) k "UNKNOWN" = Prelude.Just Payment'UNKNOWN+ | (Prelude.==) k "IN_FLIGHT" = Prelude.Just Payment'IN_FLIGHT+ | (Prelude.==) k "SUCCEEDED" = Prelude.Just Payment'SUCCEEDED+ | (Prelude.==) k "FAILED" = Prelude.Just Payment'FAILED+ | Prelude.otherwise+ = (Prelude.>>=) (Text.Read.readMaybe k) Data.ProtoLens.maybeToEnum+instance Prelude.Bounded Payment'PaymentStatus where+ minBound = Payment'UNKNOWN+ maxBound = Payment'FAILED+instance Prelude.Enum Payment'PaymentStatus where+ toEnum k__+ = Prelude.maybe+ (Prelude.error+ ((Prelude.++)+ "toEnum: unknown value for enum PaymentStatus: "+ (Prelude.show k__)))+ Prelude.id (Data.ProtoLens.maybeToEnum k__)+ fromEnum Payment'UNKNOWN = 0+ fromEnum Payment'IN_FLIGHT = 1+ fromEnum Payment'SUCCEEDED = 2+ fromEnum Payment'FAILED = 3+ fromEnum+ (Payment'PaymentStatus'Unrecognized (Payment'PaymentStatus'UnrecognizedValue k))+ = Prelude.fromIntegral k+ succ Payment'FAILED+ = Prelude.error+ "Payment'PaymentStatus.succ: bad argument Payment'FAILED. This value would be out of bounds."+ succ Payment'UNKNOWN = Payment'IN_FLIGHT+ succ Payment'IN_FLIGHT = Payment'SUCCEEDED+ succ Payment'SUCCEEDED = Payment'FAILED+ succ (Payment'PaymentStatus'Unrecognized _)+ = Prelude.error+ "Payment'PaymentStatus.succ: bad argument: unrecognized value"+ pred Payment'UNKNOWN+ = Prelude.error+ "Payment'PaymentStatus.pred: bad argument Payment'UNKNOWN. This value would be out of bounds."+ pred Payment'IN_FLIGHT = Payment'UNKNOWN+ pred Payment'SUCCEEDED = Payment'IN_FLIGHT+ pred Payment'FAILED = Payment'SUCCEEDED+ pred (Payment'PaymentStatus'Unrecognized _)+ = Prelude.error+ "Payment'PaymentStatus.pred: bad argument: unrecognized value"+ enumFrom = Data.ProtoLens.Message.Enum.messageEnumFrom+ enumFromTo = Data.ProtoLens.Message.Enum.messageEnumFromTo+ enumFromThen = Data.ProtoLens.Message.Enum.messageEnumFromThen+ enumFromThenTo = Data.ProtoLens.Message.Enum.messageEnumFromThenTo+instance Data.ProtoLens.FieldDefault Payment'PaymentStatus where+ fieldDefault = Payment'UNKNOWN+instance Control.DeepSeq.NFData Payment'PaymentStatus where+ rnf x__ = Prelude.seq x__ ()+instance Text.PrettyPrint.GenericPretty.Out Payment'PaymentStatus+newtype PaymentFailureReason'UnrecognizedValue+ = PaymentFailureReason'UnrecognizedValue Data.Int.Int32+ deriving stock (Prelude.Eq,+ Prelude.Ord,+ Prelude.Show,+ GHC.Generics.Generic)+instance Text.PrettyPrint.GenericPretty.Out PaymentFailureReason'UnrecognizedValue+data PaymentFailureReason+ = FAILURE_REASON_NONE |+ FAILURE_REASON_TIMEOUT |+ FAILURE_REASON_NO_ROUTE |+ FAILURE_REASON_ERROR |+ FAILURE_REASON_INCORRECT_PAYMENT_DETAILS |+ FAILURE_REASON_INSUFFICIENT_BALANCE |+ PaymentFailureReason'Unrecognized !PaymentFailureReason'UnrecognizedValue+ deriving stock (Prelude.Show,+ Prelude.Eq,+ Prelude.Ord,+ GHC.Generics.Generic)+instance Data.ProtoLens.MessageEnum PaymentFailureReason where+ maybeToEnum 0 = Prelude.Just FAILURE_REASON_NONE+ maybeToEnum 1 = Prelude.Just FAILURE_REASON_TIMEOUT+ maybeToEnum 2 = Prelude.Just FAILURE_REASON_NO_ROUTE+ maybeToEnum 3 = Prelude.Just FAILURE_REASON_ERROR+ maybeToEnum 4+ = Prelude.Just FAILURE_REASON_INCORRECT_PAYMENT_DETAILS+ maybeToEnum 5 = Prelude.Just FAILURE_REASON_INSUFFICIENT_BALANCE+ maybeToEnum k+ = Prelude.Just+ (PaymentFailureReason'Unrecognized+ (PaymentFailureReason'UnrecognizedValue (Prelude.fromIntegral k)))+ showEnum FAILURE_REASON_NONE = "FAILURE_REASON_NONE"+ showEnum FAILURE_REASON_TIMEOUT = "FAILURE_REASON_TIMEOUT"+ showEnum FAILURE_REASON_NO_ROUTE = "FAILURE_REASON_NO_ROUTE"+ showEnum FAILURE_REASON_ERROR = "FAILURE_REASON_ERROR"+ showEnum FAILURE_REASON_INCORRECT_PAYMENT_DETAILS+ = "FAILURE_REASON_INCORRECT_PAYMENT_DETAILS"+ showEnum FAILURE_REASON_INSUFFICIENT_BALANCE+ = "FAILURE_REASON_INSUFFICIENT_BALANCE"+ showEnum+ (PaymentFailureReason'Unrecognized (PaymentFailureReason'UnrecognizedValue k))+ = Prelude.show k+ readEnum k+ | (Prelude.==) k "FAILURE_REASON_NONE"+ = Prelude.Just FAILURE_REASON_NONE+ | (Prelude.==) k "FAILURE_REASON_TIMEOUT"+ = Prelude.Just FAILURE_REASON_TIMEOUT+ | (Prelude.==) k "FAILURE_REASON_NO_ROUTE"+ = Prelude.Just FAILURE_REASON_NO_ROUTE+ | (Prelude.==) k "FAILURE_REASON_ERROR"+ = Prelude.Just FAILURE_REASON_ERROR+ | (Prelude.==) k "FAILURE_REASON_INCORRECT_PAYMENT_DETAILS"+ = Prelude.Just FAILURE_REASON_INCORRECT_PAYMENT_DETAILS+ | (Prelude.==) k "FAILURE_REASON_INSUFFICIENT_BALANCE"+ = Prelude.Just FAILURE_REASON_INSUFFICIENT_BALANCE+ | Prelude.otherwise+ = (Prelude.>>=) (Text.Read.readMaybe k) Data.ProtoLens.maybeToEnum+instance Prelude.Bounded PaymentFailureReason where+ minBound = FAILURE_REASON_NONE+ maxBound = FAILURE_REASON_INSUFFICIENT_BALANCE+instance Prelude.Enum PaymentFailureReason where+ toEnum k__+ = Prelude.maybe+ (Prelude.error+ ((Prelude.++)+ "toEnum: unknown value for enum PaymentFailureReason: "+ (Prelude.show k__)))+ Prelude.id (Data.ProtoLens.maybeToEnum k__)+ fromEnum FAILURE_REASON_NONE = 0+ fromEnum FAILURE_REASON_TIMEOUT = 1+ fromEnum FAILURE_REASON_NO_ROUTE = 2+ fromEnum FAILURE_REASON_ERROR = 3+ fromEnum FAILURE_REASON_INCORRECT_PAYMENT_DETAILS = 4+ fromEnum FAILURE_REASON_INSUFFICIENT_BALANCE = 5+ fromEnum+ (PaymentFailureReason'Unrecognized (PaymentFailureReason'UnrecognizedValue k))+ = Prelude.fromIntegral k+ succ FAILURE_REASON_INSUFFICIENT_BALANCE+ = Prelude.error+ "PaymentFailureReason.succ: bad argument FAILURE_REASON_INSUFFICIENT_BALANCE. This value would be out of bounds."+ succ FAILURE_REASON_NONE = FAILURE_REASON_TIMEOUT+ succ FAILURE_REASON_TIMEOUT = FAILURE_REASON_NO_ROUTE+ succ FAILURE_REASON_NO_ROUTE = FAILURE_REASON_ERROR+ succ FAILURE_REASON_ERROR+ = FAILURE_REASON_INCORRECT_PAYMENT_DETAILS+ succ FAILURE_REASON_INCORRECT_PAYMENT_DETAILS+ = FAILURE_REASON_INSUFFICIENT_BALANCE+ succ (PaymentFailureReason'Unrecognized _)+ = Prelude.error+ "PaymentFailureReason.succ: bad argument: unrecognized value"+ pred FAILURE_REASON_NONE+ = Prelude.error+ "PaymentFailureReason.pred: bad argument FAILURE_REASON_NONE. This value would be out of bounds."+ pred FAILURE_REASON_TIMEOUT = FAILURE_REASON_NONE+ pred FAILURE_REASON_NO_ROUTE = FAILURE_REASON_TIMEOUT+ pred FAILURE_REASON_ERROR = FAILURE_REASON_NO_ROUTE+ pred FAILURE_REASON_INCORRECT_PAYMENT_DETAILS+ = FAILURE_REASON_ERROR+ pred FAILURE_REASON_INSUFFICIENT_BALANCE+ = FAILURE_REASON_INCORRECT_PAYMENT_DETAILS+ pred (PaymentFailureReason'Unrecognized _)+ = Prelude.error+ "PaymentFailureReason.pred: bad argument: unrecognized value"+ enumFrom = Data.ProtoLens.Message.Enum.messageEnumFrom+ enumFromTo = Data.ProtoLens.Message.Enum.messageEnumFromTo+ enumFromThen = Data.ProtoLens.Message.Enum.messageEnumFromThen+ enumFromThenTo = Data.ProtoLens.Message.Enum.messageEnumFromThenTo+instance Data.ProtoLens.FieldDefault PaymentFailureReason where+ fieldDefault = FAILURE_REASON_NONE+instance Control.DeepSeq.NFData PaymentFailureReason where+ rnf x__ = Prelude.seq x__ ()+instance Text.PrettyPrint.GenericPretty.Out PaymentFailureReason+{- | Fields :+ + * 'Proto.Lnrpc.Ln1_Fields.rHashStr' @:: Lens' PaymentHash Data.Text.Text@+ * 'Proto.Lnrpc.Ln1_Fields.rHash' @:: Lens' PaymentHash Data.ByteString.ByteString@ -}+data PaymentHash+ = PaymentHash'_constructor {_PaymentHash'rHashStr :: !Data.Text.Text,+ _PaymentHash'rHash :: !Data.ByteString.ByteString,+ _PaymentHash'_unknownFields :: !Data.ProtoLens.FieldSet}+ deriving stock (Prelude.Eq, Prelude.Ord, GHC.Generics.Generic)+instance Prelude.Show PaymentHash where+ showsPrec _ __x __s+ = Prelude.showChar+ '{'+ (Prelude.showString+ (Data.ProtoLens.showMessageShort __x) (Prelude.showChar '}' __s))+instance Text.PrettyPrint.GenericPretty.Out PaymentHash+instance Data.ProtoLens.Field.HasField PaymentHash "rHashStr" Data.Text.Text where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _PaymentHash'rHashStr+ (\ x__ y__ -> x__ {_PaymentHash'rHashStr = y__}))+ Prelude.id+instance Data.ProtoLens.Field.HasField PaymentHash "rHash" Data.ByteString.ByteString where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _PaymentHash'rHash (\ x__ y__ -> x__ {_PaymentHash'rHash = y__}))+ Prelude.id+instance Data.ProtoLens.Message PaymentHash where+ messageName _ = Data.Text.pack "lnrpc.PaymentHash"+ packedMessageDescriptor _+ = "\n\+ \\vPaymentHash\DC2 \n\+ \\n\+ \r_hash_str\CAN\SOH \SOH(\tR\brHashStrB\STX\CAN\SOH\DC2\NAK\n\+ \\ACKr_hash\CAN\STX \SOH(\fR\ENQrHash"+ packedFileDescriptor _ = packedFileDescriptor+ fieldsByTag+ = let+ rHashStr__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "r_hash_str"+ (Data.ProtoLens.ScalarField Data.ProtoLens.StringField ::+ Data.ProtoLens.FieldTypeDescriptor Data.Text.Text)+ (Data.ProtoLens.PlainField+ Data.ProtoLens.Optional+ (Data.ProtoLens.Field.field @"rHashStr")) ::+ Data.ProtoLens.FieldDescriptor PaymentHash+ rHash__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "r_hash"+ (Data.ProtoLens.ScalarField Data.ProtoLens.BytesField ::+ Data.ProtoLens.FieldTypeDescriptor Data.ByteString.ByteString)+ (Data.ProtoLens.PlainField+ Data.ProtoLens.Optional (Data.ProtoLens.Field.field @"rHash")) ::+ Data.ProtoLens.FieldDescriptor PaymentHash+ in+ Data.Map.fromList+ [(Data.ProtoLens.Tag 1, rHashStr__field_descriptor),+ (Data.ProtoLens.Tag 2, rHash__field_descriptor)]+ unknownFields+ = Lens.Family2.Unchecked.lens+ _PaymentHash'_unknownFields+ (\ x__ y__ -> x__ {_PaymentHash'_unknownFields = y__})+ defMessage+ = PaymentHash'_constructor+ {_PaymentHash'rHashStr = Data.ProtoLens.fieldDefault,+ _PaymentHash'rHash = Data.ProtoLens.fieldDefault,+ _PaymentHash'_unknownFields = []}+ parseMessage+ = let+ loop ::+ PaymentHash -> Data.ProtoLens.Encoding.Bytes.Parser PaymentHash+ loop x+ = do end <- Data.ProtoLens.Encoding.Bytes.atEnd+ if end then+ do (let missing = []+ in+ if Prelude.null missing then+ Prelude.return ()+ else+ Prelude.fail+ ((Prelude.++)+ "Missing required fields: "+ (Prelude.show (missing :: [Prelude.String]))))+ Prelude.return+ (Lens.Family2.over+ Data.ProtoLens.unknownFields (\ !t -> Prelude.reverse t) x)+ else+ do tag <- Data.ProtoLens.Encoding.Bytes.getVarInt+ case tag of+ 10+ -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (do value <- do len <- Data.ProtoLens.Encoding.Bytes.getVarInt+ Data.ProtoLens.Encoding.Bytes.getBytes+ (Prelude.fromIntegral len)+ Data.ProtoLens.Encoding.Bytes.runEither+ (case Data.Text.Encoding.decodeUtf8' value of+ (Prelude.Left err)+ -> Prelude.Left (Prelude.show err)+ (Prelude.Right r) -> Prelude.Right r))+ "r_hash_str"+ loop+ (Lens.Family2.set (Data.ProtoLens.Field.field @"rHashStr") y x)+ 18+ -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (do len <- Data.ProtoLens.Encoding.Bytes.getVarInt+ Data.ProtoLens.Encoding.Bytes.getBytes+ (Prelude.fromIntegral len))+ "r_hash"+ loop (Lens.Family2.set (Data.ProtoLens.Field.field @"rHash") y x)+ wire+ -> do !y <- Data.ProtoLens.Encoding.Wire.parseTaggedValueFromWire+ wire+ loop+ (Lens.Family2.over+ Data.ProtoLens.unknownFields (\ !t -> (:) y t) x)+ in+ (Data.ProtoLens.Encoding.Bytes.<?>)+ (do loop Data.ProtoLens.defMessage) "PaymentHash"+ buildMessage+ = \ _x+ -> (Data.Monoid.<>)+ (let+ _v = Lens.Family2.view (Data.ProtoLens.Field.field @"rHashStr") _x+ in+ if (Prelude.==) _v Data.ProtoLens.fieldDefault then+ Data.Monoid.mempty+ else+ (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 10)+ ((Prelude..)+ (\ bs+ -> (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt+ (Prelude.fromIntegral (Data.ByteString.length bs)))+ (Data.ProtoLens.Encoding.Bytes.putBytes bs))+ Data.Text.Encoding.encodeUtf8 _v))+ ((Data.Monoid.<>)+ (let+ _v = Lens.Family2.view (Data.ProtoLens.Field.field @"rHash") _x+ in+ if (Prelude.==) _v Data.ProtoLens.fieldDefault then+ Data.Monoid.mempty+ else+ (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 18)+ ((\ bs+ -> (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt+ (Prelude.fromIntegral (Data.ByteString.length bs)))+ (Data.ProtoLens.Encoding.Bytes.putBytes bs))+ _v))+ (Data.ProtoLens.Encoding.Wire.buildFieldSet+ (Lens.Family2.view Data.ProtoLens.unknownFields _x)))+instance Control.DeepSeq.NFData PaymentHash where+ rnf+ = \ x__+ -> Control.DeepSeq.deepseq+ (_PaymentHash'_unknownFields x__)+ (Control.DeepSeq.deepseq+ (_PaymentHash'rHashStr x__)+ (Control.DeepSeq.deepseq (_PaymentHash'rHash x__) ()))+{- | Fields :+ + * 'Proto.Lnrpc.Ln1_Fields.baseFeeMsat' @:: Lens' PolicyUpdateRequest Data.Int.Int64@+ * 'Proto.Lnrpc.Ln1_Fields.feeRate' @:: Lens' PolicyUpdateRequest Prelude.Double@+ * 'Proto.Lnrpc.Ln1_Fields.timeLockDelta' @:: Lens' PolicyUpdateRequest Data.Word.Word32@+ * 'Proto.Lnrpc.Ln1_Fields.maxHtlcMsat' @:: Lens' PolicyUpdateRequest Data.Word.Word64@+ * 'Proto.Lnrpc.Ln1_Fields.minHtlcMsat' @:: Lens' PolicyUpdateRequest Data.Word.Word64@+ * 'Proto.Lnrpc.Ln1_Fields.minHtlcMsatSpecified' @:: Lens' PolicyUpdateRequest Prelude.Bool@+ * 'Proto.Lnrpc.Ln1_Fields.maybe'scope' @:: Lens' PolicyUpdateRequest (Prelude.Maybe PolicyUpdateRequest'Scope)@+ * 'Proto.Lnrpc.Ln1_Fields.maybe'global' @:: Lens' PolicyUpdateRequest (Prelude.Maybe Prelude.Bool)@+ * 'Proto.Lnrpc.Ln1_Fields.global' @:: Lens' PolicyUpdateRequest Prelude.Bool@+ * 'Proto.Lnrpc.Ln1_Fields.maybe'chanPoint' @:: Lens' PolicyUpdateRequest (Prelude.Maybe Proto.Lnrpc.Ln0.ChannelPoint)@+ * 'Proto.Lnrpc.Ln1_Fields.chanPoint' @:: Lens' PolicyUpdateRequest Proto.Lnrpc.Ln0.ChannelPoint@ -}+data PolicyUpdateRequest+ = PolicyUpdateRequest'_constructor {_PolicyUpdateRequest'baseFeeMsat :: !Data.Int.Int64,+ _PolicyUpdateRequest'feeRate :: !Prelude.Double,+ _PolicyUpdateRequest'timeLockDelta :: !Data.Word.Word32,+ _PolicyUpdateRequest'maxHtlcMsat :: !Data.Word.Word64,+ _PolicyUpdateRequest'minHtlcMsat :: !Data.Word.Word64,+ _PolicyUpdateRequest'minHtlcMsatSpecified :: !Prelude.Bool,+ _PolicyUpdateRequest'scope :: !(Prelude.Maybe PolicyUpdateRequest'Scope),+ _PolicyUpdateRequest'_unknownFields :: !Data.ProtoLens.FieldSet}+ deriving stock (Prelude.Eq, Prelude.Ord, GHC.Generics.Generic)+instance Prelude.Show PolicyUpdateRequest where+ showsPrec _ __x __s+ = Prelude.showChar+ '{'+ (Prelude.showString+ (Data.ProtoLens.showMessageShort __x) (Prelude.showChar '}' __s))+instance Text.PrettyPrint.GenericPretty.Out PolicyUpdateRequest+data PolicyUpdateRequest'Scope+ = PolicyUpdateRequest'Global !Prelude.Bool |+ PolicyUpdateRequest'ChanPoint !Proto.Lnrpc.Ln0.ChannelPoint+ deriving stock (Prelude.Show,+ Prelude.Eq,+ Prelude.Ord,+ GHC.Generics.Generic)+instance Text.PrettyPrint.GenericPretty.Out PolicyUpdateRequest'Scope+instance Data.ProtoLens.Field.HasField PolicyUpdateRequest "baseFeeMsat" Data.Int.Int64 where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _PolicyUpdateRequest'baseFeeMsat+ (\ x__ y__ -> x__ {_PolicyUpdateRequest'baseFeeMsat = y__}))+ Prelude.id+instance Data.ProtoLens.Field.HasField PolicyUpdateRequest "feeRate" Prelude.Double where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _PolicyUpdateRequest'feeRate+ (\ x__ y__ -> x__ {_PolicyUpdateRequest'feeRate = y__}))+ Prelude.id+instance Data.ProtoLens.Field.HasField PolicyUpdateRequest "timeLockDelta" Data.Word.Word32 where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _PolicyUpdateRequest'timeLockDelta+ (\ x__ y__ -> x__ {_PolicyUpdateRequest'timeLockDelta = y__}))+ Prelude.id+instance Data.ProtoLens.Field.HasField PolicyUpdateRequest "maxHtlcMsat" Data.Word.Word64 where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _PolicyUpdateRequest'maxHtlcMsat+ (\ x__ y__ -> x__ {_PolicyUpdateRequest'maxHtlcMsat = y__}))+ Prelude.id+instance Data.ProtoLens.Field.HasField PolicyUpdateRequest "minHtlcMsat" Data.Word.Word64 where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _PolicyUpdateRequest'minHtlcMsat+ (\ x__ y__ -> x__ {_PolicyUpdateRequest'minHtlcMsat = y__}))+ Prelude.id+instance Data.ProtoLens.Field.HasField PolicyUpdateRequest "minHtlcMsatSpecified" Prelude.Bool where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _PolicyUpdateRequest'minHtlcMsatSpecified+ (\ x__ y__+ -> x__ {_PolicyUpdateRequest'minHtlcMsatSpecified = y__}))+ Prelude.id+instance Data.ProtoLens.Field.HasField PolicyUpdateRequest "maybe'scope" (Prelude.Maybe PolicyUpdateRequest'Scope) where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _PolicyUpdateRequest'scope+ (\ x__ y__ -> x__ {_PolicyUpdateRequest'scope = y__}))+ Prelude.id+instance Data.ProtoLens.Field.HasField PolicyUpdateRequest "maybe'global" (Prelude.Maybe Prelude.Bool) where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _PolicyUpdateRequest'scope+ (\ x__ y__ -> x__ {_PolicyUpdateRequest'scope = y__}))+ (Lens.Family2.Unchecked.lens+ (\ x__+ -> case x__ of+ (Prelude.Just (PolicyUpdateRequest'Global x__val))+ -> Prelude.Just x__val+ _otherwise -> Prelude.Nothing)+ (\ _ y__ -> Prelude.fmap PolicyUpdateRequest'Global y__))+instance Data.ProtoLens.Field.HasField PolicyUpdateRequest "global" Prelude.Bool where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _PolicyUpdateRequest'scope+ (\ x__ y__ -> x__ {_PolicyUpdateRequest'scope = y__}))+ ((Prelude..)+ (Lens.Family2.Unchecked.lens+ (\ x__+ -> case x__ of+ (Prelude.Just (PolicyUpdateRequest'Global x__val))+ -> Prelude.Just x__val+ _otherwise -> Prelude.Nothing)+ (\ _ y__ -> Prelude.fmap PolicyUpdateRequest'Global y__))+ (Data.ProtoLens.maybeLens Data.ProtoLens.fieldDefault))+instance Data.ProtoLens.Field.HasField PolicyUpdateRequest "maybe'chanPoint" (Prelude.Maybe Proto.Lnrpc.Ln0.ChannelPoint) where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _PolicyUpdateRequest'scope+ (\ x__ y__ -> x__ {_PolicyUpdateRequest'scope = y__}))+ (Lens.Family2.Unchecked.lens+ (\ x__+ -> case x__ of+ (Prelude.Just (PolicyUpdateRequest'ChanPoint x__val))+ -> Prelude.Just x__val+ _otherwise -> Prelude.Nothing)+ (\ _ y__ -> Prelude.fmap PolicyUpdateRequest'ChanPoint y__))+instance Data.ProtoLens.Field.HasField PolicyUpdateRequest "chanPoint" Proto.Lnrpc.Ln0.ChannelPoint where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _PolicyUpdateRequest'scope+ (\ x__ y__ -> x__ {_PolicyUpdateRequest'scope = y__}))+ ((Prelude..)+ (Lens.Family2.Unchecked.lens+ (\ x__+ -> case x__ of+ (Prelude.Just (PolicyUpdateRequest'ChanPoint x__val))+ -> Prelude.Just x__val+ _otherwise -> Prelude.Nothing)+ (\ _ y__ -> Prelude.fmap PolicyUpdateRequest'ChanPoint y__))+ (Data.ProtoLens.maybeLens Data.ProtoLens.defMessage))+instance Data.ProtoLens.Message PolicyUpdateRequest where+ messageName _ = Data.Text.pack "lnrpc.PolicyUpdateRequest"+ packedMessageDescriptor _+ = "\n\+ \\DC3PolicyUpdateRequest\DC2\CAN\n\+ \\ACKglobal\CAN\SOH \SOH(\bH\NULR\ACKglobal\DC24\n\+ \\n\+ \chan_point\CAN\STX \SOH(\v2\DC3.lnrpc.ChannelPointH\NULR\tchanPoint\DC2\"\n\+ \\rbase_fee_msat\CAN\ETX \SOH(\ETXR\vbaseFeeMsat\DC2\EM\n\+ \\bfee_rate\CAN\EOT \SOH(\SOHR\afeeRate\DC2&\n\+ \\SItime_lock_delta\CAN\ENQ \SOH(\rR\rtimeLockDelta\DC2\"\n\+ \\rmax_htlc_msat\CAN\ACK \SOH(\EOTR\vmaxHtlcMsat\DC2\"\n\+ \\rmin_htlc_msat\CAN\a \SOH(\EOTR\vminHtlcMsat\DC25\n\+ \\ETBmin_htlc_msat_specified\CAN\b \SOH(\bR\DC4minHtlcMsatSpecifiedB\a\n\+ \\ENQscope"+ packedFileDescriptor _ = packedFileDescriptor+ fieldsByTag+ = let+ baseFeeMsat__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "base_fee_msat"+ (Data.ProtoLens.ScalarField Data.ProtoLens.Int64Field ::+ Data.ProtoLens.FieldTypeDescriptor Data.Int.Int64)+ (Data.ProtoLens.PlainField+ Data.ProtoLens.Optional+ (Data.ProtoLens.Field.field @"baseFeeMsat")) ::+ Data.ProtoLens.FieldDescriptor PolicyUpdateRequest+ feeRate__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "fee_rate"+ (Data.ProtoLens.ScalarField Data.ProtoLens.DoubleField ::+ Data.ProtoLens.FieldTypeDescriptor Prelude.Double)+ (Data.ProtoLens.PlainField+ Data.ProtoLens.Optional (Data.ProtoLens.Field.field @"feeRate")) ::+ Data.ProtoLens.FieldDescriptor PolicyUpdateRequest+ timeLockDelta__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "time_lock_delta"+ (Data.ProtoLens.ScalarField Data.ProtoLens.UInt32Field ::+ Data.ProtoLens.FieldTypeDescriptor Data.Word.Word32)+ (Data.ProtoLens.PlainField+ Data.ProtoLens.Optional+ (Data.ProtoLens.Field.field @"timeLockDelta")) ::+ Data.ProtoLens.FieldDescriptor PolicyUpdateRequest+ maxHtlcMsat__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "max_htlc_msat"+ (Data.ProtoLens.ScalarField Data.ProtoLens.UInt64Field ::+ Data.ProtoLens.FieldTypeDescriptor Data.Word.Word64)+ (Data.ProtoLens.PlainField+ Data.ProtoLens.Optional+ (Data.ProtoLens.Field.field @"maxHtlcMsat")) ::+ Data.ProtoLens.FieldDescriptor PolicyUpdateRequest+ minHtlcMsat__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "min_htlc_msat"+ (Data.ProtoLens.ScalarField Data.ProtoLens.UInt64Field ::+ Data.ProtoLens.FieldTypeDescriptor Data.Word.Word64)+ (Data.ProtoLens.PlainField+ Data.ProtoLens.Optional+ (Data.ProtoLens.Field.field @"minHtlcMsat")) ::+ Data.ProtoLens.FieldDescriptor PolicyUpdateRequest+ minHtlcMsatSpecified__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "min_htlc_msat_specified"+ (Data.ProtoLens.ScalarField Data.ProtoLens.BoolField ::+ Data.ProtoLens.FieldTypeDescriptor Prelude.Bool)+ (Data.ProtoLens.PlainField+ Data.ProtoLens.Optional+ (Data.ProtoLens.Field.field @"minHtlcMsatSpecified")) ::+ Data.ProtoLens.FieldDescriptor PolicyUpdateRequest+ global__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "global"+ (Data.ProtoLens.ScalarField Data.ProtoLens.BoolField ::+ Data.ProtoLens.FieldTypeDescriptor Prelude.Bool)+ (Data.ProtoLens.OptionalField+ (Data.ProtoLens.Field.field @"maybe'global")) ::+ Data.ProtoLens.FieldDescriptor PolicyUpdateRequest+ chanPoint__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "chan_point"+ (Data.ProtoLens.MessageField Data.ProtoLens.MessageType ::+ Data.ProtoLens.FieldTypeDescriptor Proto.Lnrpc.Ln0.ChannelPoint)+ (Data.ProtoLens.OptionalField+ (Data.ProtoLens.Field.field @"maybe'chanPoint")) ::+ Data.ProtoLens.FieldDescriptor PolicyUpdateRequest+ in+ Data.Map.fromList+ [(Data.ProtoLens.Tag 3, baseFeeMsat__field_descriptor),+ (Data.ProtoLens.Tag 4, feeRate__field_descriptor),+ (Data.ProtoLens.Tag 5, timeLockDelta__field_descriptor),+ (Data.ProtoLens.Tag 6, maxHtlcMsat__field_descriptor),+ (Data.ProtoLens.Tag 7, minHtlcMsat__field_descriptor),+ (Data.ProtoLens.Tag 8, minHtlcMsatSpecified__field_descriptor),+ (Data.ProtoLens.Tag 1, global__field_descriptor),+ (Data.ProtoLens.Tag 2, chanPoint__field_descriptor)]+ unknownFields+ = Lens.Family2.Unchecked.lens+ _PolicyUpdateRequest'_unknownFields+ (\ x__ y__ -> x__ {_PolicyUpdateRequest'_unknownFields = y__})+ defMessage+ = PolicyUpdateRequest'_constructor+ {_PolicyUpdateRequest'baseFeeMsat = Data.ProtoLens.fieldDefault,+ _PolicyUpdateRequest'feeRate = Data.ProtoLens.fieldDefault,+ _PolicyUpdateRequest'timeLockDelta = Data.ProtoLens.fieldDefault,+ _PolicyUpdateRequest'maxHtlcMsat = Data.ProtoLens.fieldDefault,+ _PolicyUpdateRequest'minHtlcMsat = Data.ProtoLens.fieldDefault,+ _PolicyUpdateRequest'minHtlcMsatSpecified = Data.ProtoLens.fieldDefault,+ _PolicyUpdateRequest'scope = Prelude.Nothing,+ _PolicyUpdateRequest'_unknownFields = []}+ parseMessage+ = let+ loop ::+ PolicyUpdateRequest+ -> Data.ProtoLens.Encoding.Bytes.Parser PolicyUpdateRequest+ loop x+ = do end <- Data.ProtoLens.Encoding.Bytes.atEnd+ if end then+ do (let missing = []+ in+ if Prelude.null missing then+ Prelude.return ()+ else+ Prelude.fail+ ((Prelude.++)+ "Missing required fields: "+ (Prelude.show (missing :: [Prelude.String]))))+ Prelude.return+ (Lens.Family2.over+ Data.ProtoLens.unknownFields (\ !t -> Prelude.reverse t) x)+ else+ do tag <- Data.ProtoLens.Encoding.Bytes.getVarInt+ case tag of+ 24+ -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (Prelude.fmap+ Prelude.fromIntegral+ Data.ProtoLens.Encoding.Bytes.getVarInt)+ "base_fee_msat"+ loop+ (Lens.Family2.set (Data.ProtoLens.Field.field @"baseFeeMsat") y x)+ 33+ -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (Prelude.fmap+ Data.ProtoLens.Encoding.Bytes.wordToDouble+ Data.ProtoLens.Encoding.Bytes.getFixed64)+ "fee_rate"+ loop (Lens.Family2.set (Data.ProtoLens.Field.field @"feeRate") y x)+ 40+ -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (Prelude.fmap+ Prelude.fromIntegral+ Data.ProtoLens.Encoding.Bytes.getVarInt)+ "time_lock_delta"+ loop+ (Lens.Family2.set+ (Data.ProtoLens.Field.field @"timeLockDelta") y x)+ 48+ -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ Data.ProtoLens.Encoding.Bytes.getVarInt "max_htlc_msat"+ loop+ (Lens.Family2.set (Data.ProtoLens.Field.field @"maxHtlcMsat") y x)+ 56+ -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ Data.ProtoLens.Encoding.Bytes.getVarInt "min_htlc_msat"+ loop+ (Lens.Family2.set (Data.ProtoLens.Field.field @"minHtlcMsat") y x)+ 64+ -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (Prelude.fmap+ ((Prelude./=) 0) Data.ProtoLens.Encoding.Bytes.getVarInt)+ "min_htlc_msat_specified"+ loop+ (Lens.Family2.set+ (Data.ProtoLens.Field.field @"minHtlcMsatSpecified") y x)+ 8 -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (Prelude.fmap+ ((Prelude./=) 0) Data.ProtoLens.Encoding.Bytes.getVarInt)+ "global"+ loop (Lens.Family2.set (Data.ProtoLens.Field.field @"global") y x)+ 18+ -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (do len <- Data.ProtoLens.Encoding.Bytes.getVarInt+ Data.ProtoLens.Encoding.Bytes.isolate+ (Prelude.fromIntegral len) Data.ProtoLens.parseMessage)+ "chan_point"+ loop+ (Lens.Family2.set (Data.ProtoLens.Field.field @"chanPoint") y x)+ wire+ -> do !y <- Data.ProtoLens.Encoding.Wire.parseTaggedValueFromWire+ wire+ loop+ (Lens.Family2.over+ Data.ProtoLens.unknownFields (\ !t -> (:) y t) x)+ in+ (Data.ProtoLens.Encoding.Bytes.<?>)+ (do loop Data.ProtoLens.defMessage) "PolicyUpdateRequest"+ buildMessage+ = \ _x+ -> (Data.Monoid.<>)+ (let+ _v+ = Lens.Family2.view (Data.ProtoLens.Field.field @"baseFeeMsat") _x+ in+ if (Prelude.==) _v Data.ProtoLens.fieldDefault then+ Data.Monoid.mempty+ else+ (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 24)+ ((Prelude..)+ Data.ProtoLens.Encoding.Bytes.putVarInt Prelude.fromIntegral _v))+ ((Data.Monoid.<>)+ (let+ _v = Lens.Family2.view (Data.ProtoLens.Field.field @"feeRate") _x+ in+ if (Prelude.==) _v Data.ProtoLens.fieldDefault then+ Data.Monoid.mempty+ else+ (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 33)+ ((Prelude..)+ Data.ProtoLens.Encoding.Bytes.putFixed64+ Data.ProtoLens.Encoding.Bytes.doubleToWord _v))+ ((Data.Monoid.<>)+ (let+ _v+ = Lens.Family2.view+ (Data.ProtoLens.Field.field @"timeLockDelta") _x+ in+ if (Prelude.==) _v Data.ProtoLens.fieldDefault then+ Data.Monoid.mempty+ else+ (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 40)+ ((Prelude..)+ Data.ProtoLens.Encoding.Bytes.putVarInt Prelude.fromIntegral _v))+ ((Data.Monoid.<>)+ (let+ _v+ = Lens.Family2.view (Data.ProtoLens.Field.field @"maxHtlcMsat") _x+ in+ if (Prelude.==) _v Data.ProtoLens.fieldDefault then+ Data.Monoid.mempty+ else+ (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 48)+ (Data.ProtoLens.Encoding.Bytes.putVarInt _v))+ ((Data.Monoid.<>)+ (let+ _v+ = Lens.Family2.view (Data.ProtoLens.Field.field @"minHtlcMsat") _x+ in+ if (Prelude.==) _v Data.ProtoLens.fieldDefault then+ Data.Monoid.mempty+ else+ (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 56)+ (Data.ProtoLens.Encoding.Bytes.putVarInt _v))+ ((Data.Monoid.<>)+ (let+ _v+ = Lens.Family2.view+ (Data.ProtoLens.Field.field @"minHtlcMsatSpecified") _x+ in+ if (Prelude.==) _v Data.ProtoLens.fieldDefault then+ Data.Monoid.mempty+ else+ (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 64)+ ((Prelude..)+ Data.ProtoLens.Encoding.Bytes.putVarInt+ (\ b -> if b then 1 else 0) _v))+ ((Data.Monoid.<>)+ (case+ Lens.Family2.view (Data.ProtoLens.Field.field @"maybe'scope") _x+ of+ Prelude.Nothing -> Data.Monoid.mempty+ (Prelude.Just (PolicyUpdateRequest'Global v))+ -> (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 8)+ ((Prelude..)+ Data.ProtoLens.Encoding.Bytes.putVarInt+ (\ b -> if b then 1 else 0) v)+ (Prelude.Just (PolicyUpdateRequest'ChanPoint v))+ -> (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 18)+ ((Prelude..)+ (\ bs+ -> (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt+ (Prelude.fromIntegral+ (Data.ByteString.length bs)))+ (Data.ProtoLens.Encoding.Bytes.putBytes bs))+ Data.ProtoLens.encodeMessage v))+ (Data.ProtoLens.Encoding.Wire.buildFieldSet+ (Lens.Family2.view Data.ProtoLens.unknownFields _x))))))))+instance Control.DeepSeq.NFData PolicyUpdateRequest where+ rnf+ = \ x__+ -> Control.DeepSeq.deepseq+ (_PolicyUpdateRequest'_unknownFields x__)+ (Control.DeepSeq.deepseq+ (_PolicyUpdateRequest'baseFeeMsat x__)+ (Control.DeepSeq.deepseq+ (_PolicyUpdateRequest'feeRate x__)+ (Control.DeepSeq.deepseq+ (_PolicyUpdateRequest'timeLockDelta x__)+ (Control.DeepSeq.deepseq+ (_PolicyUpdateRequest'maxHtlcMsat x__)+ (Control.DeepSeq.deepseq+ (_PolicyUpdateRequest'minHtlcMsat x__)+ (Control.DeepSeq.deepseq+ (_PolicyUpdateRequest'minHtlcMsatSpecified x__)+ (Control.DeepSeq.deepseq (_PolicyUpdateRequest'scope x__) ())))))))+instance Control.DeepSeq.NFData PolicyUpdateRequest'Scope where+ rnf (PolicyUpdateRequest'Global x__) = Control.DeepSeq.rnf x__+ rnf (PolicyUpdateRequest'ChanPoint x__) = Control.DeepSeq.rnf x__+_PolicyUpdateRequest'Global ::+ Data.ProtoLens.Prism.Prism' PolicyUpdateRequest'Scope Prelude.Bool+_PolicyUpdateRequest'Global+ = Data.ProtoLens.Prism.prism'+ PolicyUpdateRequest'Global+ (\ p__+ -> case p__ of+ (PolicyUpdateRequest'Global p__val) -> Prelude.Just p__val+ _otherwise -> Prelude.Nothing)+_PolicyUpdateRequest'ChanPoint ::+ Data.ProtoLens.Prism.Prism' PolicyUpdateRequest'Scope Proto.Lnrpc.Ln0.ChannelPoint+_PolicyUpdateRequest'ChanPoint+ = Data.ProtoLens.Prism.prism'+ PolicyUpdateRequest'ChanPoint+ (\ p__+ -> case p__ of+ (PolicyUpdateRequest'ChanPoint p__val) -> Prelude.Just p__val+ _otherwise -> Prelude.Nothing)+{- | Fields :+ + * 'Proto.Lnrpc.Ln1_Fields.failedUpdates' @:: Lens' PolicyUpdateResponse [FailedUpdate]@+ * 'Proto.Lnrpc.Ln1_Fields.vec'failedUpdates' @:: Lens' PolicyUpdateResponse (Data.Vector.Vector FailedUpdate)@ -}+data PolicyUpdateResponse+ = PolicyUpdateResponse'_constructor {_PolicyUpdateResponse'failedUpdates :: !(Data.Vector.Vector FailedUpdate),+ _PolicyUpdateResponse'_unknownFields :: !Data.ProtoLens.FieldSet}+ deriving stock (Prelude.Eq, Prelude.Ord, GHC.Generics.Generic)+instance Prelude.Show PolicyUpdateResponse where+ showsPrec _ __x __s+ = Prelude.showChar+ '{'+ (Prelude.showString+ (Data.ProtoLens.showMessageShort __x) (Prelude.showChar '}' __s))+instance Text.PrettyPrint.GenericPretty.Out PolicyUpdateResponse+instance Data.ProtoLens.Field.HasField PolicyUpdateResponse "failedUpdates" [FailedUpdate] where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _PolicyUpdateResponse'failedUpdates+ (\ x__ y__ -> x__ {_PolicyUpdateResponse'failedUpdates = y__}))+ (Lens.Family2.Unchecked.lens+ Data.Vector.Generic.toList+ (\ _ y__ -> Data.Vector.Generic.fromList y__))+instance Data.ProtoLens.Field.HasField PolicyUpdateResponse "vec'failedUpdates" (Data.Vector.Vector FailedUpdate) where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _PolicyUpdateResponse'failedUpdates+ (\ x__ y__ -> x__ {_PolicyUpdateResponse'failedUpdates = y__}))+ Prelude.id+instance Data.ProtoLens.Message PolicyUpdateResponse where+ messageName _ = Data.Text.pack "lnrpc.PolicyUpdateResponse"+ packedMessageDescriptor _+ = "\n\+ \\DC4PolicyUpdateResponse\DC2:\n\+ \\SOfailed_updates\CAN\SOH \ETX(\v2\DC3.lnrpc.FailedUpdateR\rfailedUpdates"+ packedFileDescriptor _ = packedFileDescriptor+ fieldsByTag+ = let+ failedUpdates__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "failed_updates"+ (Data.ProtoLens.MessageField Data.ProtoLens.MessageType ::+ Data.ProtoLens.FieldTypeDescriptor FailedUpdate)+ (Data.ProtoLens.RepeatedField+ Data.ProtoLens.Unpacked+ (Data.ProtoLens.Field.field @"failedUpdates")) ::+ Data.ProtoLens.FieldDescriptor PolicyUpdateResponse+ in+ Data.Map.fromList+ [(Data.ProtoLens.Tag 1, failedUpdates__field_descriptor)]+ unknownFields+ = Lens.Family2.Unchecked.lens+ _PolicyUpdateResponse'_unknownFields+ (\ x__ y__ -> x__ {_PolicyUpdateResponse'_unknownFields = y__})+ defMessage+ = PolicyUpdateResponse'_constructor+ {_PolicyUpdateResponse'failedUpdates = Data.Vector.Generic.empty,+ _PolicyUpdateResponse'_unknownFields = []}+ parseMessage+ = let+ loop ::+ PolicyUpdateResponse+ -> Data.ProtoLens.Encoding.Growing.Growing Data.Vector.Vector Data.ProtoLens.Encoding.Growing.RealWorld FailedUpdate+ -> Data.ProtoLens.Encoding.Bytes.Parser PolicyUpdateResponse+ loop x mutable'failedUpdates+ = do end <- Data.ProtoLens.Encoding.Bytes.atEnd+ if end then+ do frozen'failedUpdates <- Data.ProtoLens.Encoding.Parser.Unsafe.unsafeLiftIO+ (Data.ProtoLens.Encoding.Growing.unsafeFreeze+ mutable'failedUpdates)+ (let missing = []+ in+ if Prelude.null missing then+ Prelude.return ()+ else+ Prelude.fail+ ((Prelude.++)+ "Missing required fields: "+ (Prelude.show (missing :: [Prelude.String]))))+ Prelude.return+ (Lens.Family2.over+ Data.ProtoLens.unknownFields (\ !t -> Prelude.reverse t)+ (Lens.Family2.set+ (Data.ProtoLens.Field.field @"vec'failedUpdates")+ frozen'failedUpdates x))+ else+ do tag <- Data.ProtoLens.Encoding.Bytes.getVarInt+ case tag of+ 10+ -> do !y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (do len <- Data.ProtoLens.Encoding.Bytes.getVarInt+ Data.ProtoLens.Encoding.Bytes.isolate+ (Prelude.fromIntegral len)+ Data.ProtoLens.parseMessage)+ "failed_updates"+ v <- Data.ProtoLens.Encoding.Parser.Unsafe.unsafeLiftIO+ (Data.ProtoLens.Encoding.Growing.append+ mutable'failedUpdates y)+ loop x v+ wire+ -> do !y <- Data.ProtoLens.Encoding.Wire.parseTaggedValueFromWire+ wire+ loop+ (Lens.Family2.over+ Data.ProtoLens.unknownFields (\ !t -> (:) y t) x)+ mutable'failedUpdates+ in+ (Data.ProtoLens.Encoding.Bytes.<?>)+ (do mutable'failedUpdates <- Data.ProtoLens.Encoding.Parser.Unsafe.unsafeLiftIO+ Data.ProtoLens.Encoding.Growing.new+ loop Data.ProtoLens.defMessage mutable'failedUpdates)+ "PolicyUpdateResponse"+ buildMessage+ = \ _x+ -> (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.foldMapBuilder+ (\ _v+ -> (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 10)+ ((Prelude..)+ (\ bs+ -> (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt+ (Prelude.fromIntegral (Data.ByteString.length bs)))+ (Data.ProtoLens.Encoding.Bytes.putBytes bs))+ Data.ProtoLens.encodeMessage _v))+ (Lens.Family2.view+ (Data.ProtoLens.Field.field @"vec'failedUpdates") _x))+ (Data.ProtoLens.Encoding.Wire.buildFieldSet+ (Lens.Family2.view Data.ProtoLens.unknownFields _x))+instance Control.DeepSeq.NFData PolicyUpdateResponse where+ rnf+ = \ x__+ -> Control.DeepSeq.deepseq+ (_PolicyUpdateResponse'_unknownFields x__)+ (Control.DeepSeq.deepseq+ (_PolicyUpdateResponse'failedUpdates x__) ())+{- | Fields :+ + * 'Proto.Lnrpc.Ln1_Fields.methodFullUri' @:: Lens' RPCMessage Data.Text.Text@+ * 'Proto.Lnrpc.Ln1_Fields.streamRpc' @:: Lens' RPCMessage Prelude.Bool@+ * 'Proto.Lnrpc.Ln1_Fields.typeName' @:: Lens' RPCMessage Data.Text.Text@+ * 'Proto.Lnrpc.Ln1_Fields.serialized' @:: Lens' RPCMessage Data.ByteString.ByteString@ -}+data RPCMessage+ = RPCMessage'_constructor {_RPCMessage'methodFullUri :: !Data.Text.Text,+ _RPCMessage'streamRpc :: !Prelude.Bool,+ _RPCMessage'typeName :: !Data.Text.Text,+ _RPCMessage'serialized :: !Data.ByteString.ByteString,+ _RPCMessage'_unknownFields :: !Data.ProtoLens.FieldSet}+ deriving stock (Prelude.Eq, Prelude.Ord, GHC.Generics.Generic)+instance Prelude.Show RPCMessage where+ showsPrec _ __x __s+ = Prelude.showChar+ '{'+ (Prelude.showString+ (Data.ProtoLens.showMessageShort __x) (Prelude.showChar '}' __s))+instance Text.PrettyPrint.GenericPretty.Out RPCMessage+instance Data.ProtoLens.Field.HasField RPCMessage "methodFullUri" Data.Text.Text where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _RPCMessage'methodFullUri+ (\ x__ y__ -> x__ {_RPCMessage'methodFullUri = y__}))+ Prelude.id+instance Data.ProtoLens.Field.HasField RPCMessage "streamRpc" Prelude.Bool where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _RPCMessage'streamRpc+ (\ x__ y__ -> x__ {_RPCMessage'streamRpc = y__}))+ Prelude.id+instance Data.ProtoLens.Field.HasField RPCMessage "typeName" Data.Text.Text where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _RPCMessage'typeName+ (\ x__ y__ -> x__ {_RPCMessage'typeName = y__}))+ Prelude.id+instance Data.ProtoLens.Field.HasField RPCMessage "serialized" Data.ByteString.ByteString where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _RPCMessage'serialized+ (\ x__ y__ -> x__ {_RPCMessage'serialized = y__}))+ Prelude.id+instance Data.ProtoLens.Message RPCMessage where+ messageName _ = Data.Text.pack "lnrpc.RPCMessage"+ packedMessageDescriptor _+ = "\n\+ \\n\+ \RPCMessage\DC2&\n\+ \\SImethod_full_uri\CAN\SOH \SOH(\tR\rmethodFullUri\DC2\GS\n\+ \\n\+ \stream_rpc\CAN\STX \SOH(\bR\tstreamRpc\DC2\ESC\n\+ \\ttype_name\CAN\ETX \SOH(\tR\btypeName\DC2\RS\n\+ \\n\+ \serialized\CAN\EOT \SOH(\fR\n\+ \serialized"+ packedFileDescriptor _ = packedFileDescriptor+ fieldsByTag+ = let+ methodFullUri__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "method_full_uri"+ (Data.ProtoLens.ScalarField Data.ProtoLens.StringField ::+ Data.ProtoLens.FieldTypeDescriptor Data.Text.Text)+ (Data.ProtoLens.PlainField+ Data.ProtoLens.Optional+ (Data.ProtoLens.Field.field @"methodFullUri")) ::+ Data.ProtoLens.FieldDescriptor RPCMessage+ streamRpc__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "stream_rpc"+ (Data.ProtoLens.ScalarField Data.ProtoLens.BoolField ::+ Data.ProtoLens.FieldTypeDescriptor Prelude.Bool)+ (Data.ProtoLens.PlainField+ Data.ProtoLens.Optional+ (Data.ProtoLens.Field.field @"streamRpc")) ::+ Data.ProtoLens.FieldDescriptor RPCMessage+ typeName__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "type_name"+ (Data.ProtoLens.ScalarField Data.ProtoLens.StringField ::+ Data.ProtoLens.FieldTypeDescriptor Data.Text.Text)+ (Data.ProtoLens.PlainField+ Data.ProtoLens.Optional+ (Data.ProtoLens.Field.field @"typeName")) ::+ Data.ProtoLens.FieldDescriptor RPCMessage+ serialized__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "serialized"+ (Data.ProtoLens.ScalarField Data.ProtoLens.BytesField ::+ Data.ProtoLens.FieldTypeDescriptor Data.ByteString.ByteString)+ (Data.ProtoLens.PlainField+ Data.ProtoLens.Optional+ (Data.ProtoLens.Field.field @"serialized")) ::+ Data.ProtoLens.FieldDescriptor RPCMessage+ in+ Data.Map.fromList+ [(Data.ProtoLens.Tag 1, methodFullUri__field_descriptor),+ (Data.ProtoLens.Tag 2, streamRpc__field_descriptor),+ (Data.ProtoLens.Tag 3, typeName__field_descriptor),+ (Data.ProtoLens.Tag 4, serialized__field_descriptor)]+ unknownFields+ = Lens.Family2.Unchecked.lens+ _RPCMessage'_unknownFields+ (\ x__ y__ -> x__ {_RPCMessage'_unknownFields = y__})+ defMessage+ = RPCMessage'_constructor+ {_RPCMessage'methodFullUri = Data.ProtoLens.fieldDefault,+ _RPCMessage'streamRpc = Data.ProtoLens.fieldDefault,+ _RPCMessage'typeName = Data.ProtoLens.fieldDefault,+ _RPCMessage'serialized = Data.ProtoLens.fieldDefault,+ _RPCMessage'_unknownFields = []}+ parseMessage+ = let+ loop ::+ RPCMessage -> Data.ProtoLens.Encoding.Bytes.Parser RPCMessage+ loop x+ = do end <- Data.ProtoLens.Encoding.Bytes.atEnd+ if end then+ do (let missing = []+ in+ if Prelude.null missing then+ Prelude.return ()+ else+ Prelude.fail+ ((Prelude.++)+ "Missing required fields: "+ (Prelude.show (missing :: [Prelude.String]))))+ Prelude.return+ (Lens.Family2.over+ Data.ProtoLens.unknownFields (\ !t -> Prelude.reverse t) x)+ else+ do tag <- Data.ProtoLens.Encoding.Bytes.getVarInt+ case tag of+ 10+ -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (do value <- do len <- Data.ProtoLens.Encoding.Bytes.getVarInt+ Data.ProtoLens.Encoding.Bytes.getBytes+ (Prelude.fromIntegral len)+ Data.ProtoLens.Encoding.Bytes.runEither+ (case Data.Text.Encoding.decodeUtf8' value of+ (Prelude.Left err)+ -> Prelude.Left (Prelude.show err)+ (Prelude.Right r) -> Prelude.Right r))+ "method_full_uri"+ loop+ (Lens.Family2.set+ (Data.ProtoLens.Field.field @"methodFullUri") y x)+ 16+ -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (Prelude.fmap+ ((Prelude./=) 0) Data.ProtoLens.Encoding.Bytes.getVarInt)+ "stream_rpc"+ loop+ (Lens.Family2.set (Data.ProtoLens.Field.field @"streamRpc") y x)+ 26+ -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (do value <- do len <- Data.ProtoLens.Encoding.Bytes.getVarInt+ Data.ProtoLens.Encoding.Bytes.getBytes+ (Prelude.fromIntegral len)+ Data.ProtoLens.Encoding.Bytes.runEither+ (case Data.Text.Encoding.decodeUtf8' value of+ (Prelude.Left err)+ -> Prelude.Left (Prelude.show err)+ (Prelude.Right r) -> Prelude.Right r))+ "type_name"+ loop+ (Lens.Family2.set (Data.ProtoLens.Field.field @"typeName") y x)+ 34+ -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (do len <- Data.ProtoLens.Encoding.Bytes.getVarInt+ Data.ProtoLens.Encoding.Bytes.getBytes+ (Prelude.fromIntegral len))+ "serialized"+ loop+ (Lens.Family2.set (Data.ProtoLens.Field.field @"serialized") y x)+ wire+ -> do !y <- Data.ProtoLens.Encoding.Wire.parseTaggedValueFromWire+ wire+ loop+ (Lens.Family2.over+ Data.ProtoLens.unknownFields (\ !t -> (:) y t) x)+ in+ (Data.ProtoLens.Encoding.Bytes.<?>)+ (do loop Data.ProtoLens.defMessage) "RPCMessage"+ buildMessage+ = \ _x+ -> (Data.Monoid.<>)+ (let+ _v+ = Lens.Family2.view+ (Data.ProtoLens.Field.field @"methodFullUri") _x+ in+ if (Prelude.==) _v Data.ProtoLens.fieldDefault then+ Data.Monoid.mempty+ else+ (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 10)+ ((Prelude..)+ (\ bs+ -> (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt+ (Prelude.fromIntegral (Data.ByteString.length bs)))+ (Data.ProtoLens.Encoding.Bytes.putBytes bs))+ Data.Text.Encoding.encodeUtf8 _v))+ ((Data.Monoid.<>)+ (let+ _v = Lens.Family2.view (Data.ProtoLens.Field.field @"streamRpc") _x+ in+ if (Prelude.==) _v Data.ProtoLens.fieldDefault then+ Data.Monoid.mempty+ else+ (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 16)+ ((Prelude..)+ Data.ProtoLens.Encoding.Bytes.putVarInt (\ b -> if b then 1 else 0)+ _v))+ ((Data.Monoid.<>)+ (let+ _v = Lens.Family2.view (Data.ProtoLens.Field.field @"typeName") _x+ in+ if (Prelude.==) _v Data.ProtoLens.fieldDefault then+ Data.Monoid.mempty+ else+ (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 26)+ ((Prelude..)+ (\ bs+ -> (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt+ (Prelude.fromIntegral (Data.ByteString.length bs)))+ (Data.ProtoLens.Encoding.Bytes.putBytes bs))+ Data.Text.Encoding.encodeUtf8 _v))+ ((Data.Monoid.<>)+ (let+ _v+ = Lens.Family2.view (Data.ProtoLens.Field.field @"serialized") _x+ in+ if (Prelude.==) _v Data.ProtoLens.fieldDefault then+ Data.Monoid.mempty+ else+ (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 34)+ ((\ bs+ -> (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt+ (Prelude.fromIntegral (Data.ByteString.length bs)))+ (Data.ProtoLens.Encoding.Bytes.putBytes bs))+ _v))+ (Data.ProtoLens.Encoding.Wire.buildFieldSet+ (Lens.Family2.view Data.ProtoLens.unknownFields _x)))))+instance Control.DeepSeq.NFData RPCMessage where+ rnf+ = \ x__+ -> Control.DeepSeq.deepseq+ (_RPCMessage'_unknownFields x__)+ (Control.DeepSeq.deepseq+ (_RPCMessage'methodFullUri x__)+ (Control.DeepSeq.deepseq+ (_RPCMessage'streamRpc x__)+ (Control.DeepSeq.deepseq+ (_RPCMessage'typeName x__)+ (Control.DeepSeq.deepseq (_RPCMessage'serialized x__) ()))))+{- | Fields :+ + * 'Proto.Lnrpc.Ln1_Fields.requestId' @:: Lens' RPCMiddlewareRequest Data.Word.Word64@+ * 'Proto.Lnrpc.Ln1_Fields.rawMacaroon' @:: Lens' RPCMiddlewareRequest Data.ByteString.ByteString@+ * 'Proto.Lnrpc.Ln1_Fields.customCaveatCondition' @:: Lens' RPCMiddlewareRequest Data.Text.Text@+ * 'Proto.Lnrpc.Ln1_Fields.msgId' @:: Lens' RPCMiddlewareRequest Data.Word.Word64@+ * 'Proto.Lnrpc.Ln1_Fields.maybe'interceptType' @:: Lens' RPCMiddlewareRequest (Prelude.Maybe RPCMiddlewareRequest'InterceptType)@+ * 'Proto.Lnrpc.Ln1_Fields.maybe'streamAuth' @:: Lens' RPCMiddlewareRequest (Prelude.Maybe StreamAuth)@+ * 'Proto.Lnrpc.Ln1_Fields.streamAuth' @:: Lens' RPCMiddlewareRequest StreamAuth@+ * 'Proto.Lnrpc.Ln1_Fields.maybe'request' @:: Lens' RPCMiddlewareRequest (Prelude.Maybe RPCMessage)@+ * 'Proto.Lnrpc.Ln1_Fields.request' @:: Lens' RPCMiddlewareRequest RPCMessage@+ * 'Proto.Lnrpc.Ln1_Fields.maybe'response' @:: Lens' RPCMiddlewareRequest (Prelude.Maybe RPCMessage)@+ * 'Proto.Lnrpc.Ln1_Fields.response' @:: Lens' RPCMiddlewareRequest RPCMessage@ -}+data RPCMiddlewareRequest+ = RPCMiddlewareRequest'_constructor {_RPCMiddlewareRequest'requestId :: !Data.Word.Word64,+ _RPCMiddlewareRequest'rawMacaroon :: !Data.ByteString.ByteString,+ _RPCMiddlewareRequest'customCaveatCondition :: !Data.Text.Text,+ _RPCMiddlewareRequest'msgId :: !Data.Word.Word64,+ _RPCMiddlewareRequest'interceptType :: !(Prelude.Maybe RPCMiddlewareRequest'InterceptType),+ _RPCMiddlewareRequest'_unknownFields :: !Data.ProtoLens.FieldSet}+ deriving stock (Prelude.Eq, Prelude.Ord, GHC.Generics.Generic)+instance Prelude.Show RPCMiddlewareRequest where+ showsPrec _ __x __s+ = Prelude.showChar+ '{'+ (Prelude.showString+ (Data.ProtoLens.showMessageShort __x) (Prelude.showChar '}' __s))+instance Text.PrettyPrint.GenericPretty.Out RPCMiddlewareRequest+data RPCMiddlewareRequest'InterceptType+ = RPCMiddlewareRequest'StreamAuth !StreamAuth |+ RPCMiddlewareRequest'Request !RPCMessage |+ RPCMiddlewareRequest'Response !RPCMessage+ deriving stock (Prelude.Show,+ Prelude.Eq,+ Prelude.Ord,+ GHC.Generics.Generic)+instance Text.PrettyPrint.GenericPretty.Out RPCMiddlewareRequest'InterceptType+instance Data.ProtoLens.Field.HasField RPCMiddlewareRequest "requestId" Data.Word.Word64 where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _RPCMiddlewareRequest'requestId+ (\ x__ y__ -> x__ {_RPCMiddlewareRequest'requestId = y__}))+ Prelude.id+instance Data.ProtoLens.Field.HasField RPCMiddlewareRequest "rawMacaroon" Data.ByteString.ByteString where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _RPCMiddlewareRequest'rawMacaroon+ (\ x__ y__ -> x__ {_RPCMiddlewareRequest'rawMacaroon = y__}))+ Prelude.id+instance Data.ProtoLens.Field.HasField RPCMiddlewareRequest "customCaveatCondition" Data.Text.Text where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _RPCMiddlewareRequest'customCaveatCondition+ (\ x__ y__+ -> x__ {_RPCMiddlewareRequest'customCaveatCondition = y__}))+ Prelude.id+instance Data.ProtoLens.Field.HasField RPCMiddlewareRequest "msgId" Data.Word.Word64 where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _RPCMiddlewareRequest'msgId+ (\ x__ y__ -> x__ {_RPCMiddlewareRequest'msgId = y__}))+ Prelude.id+instance Data.ProtoLens.Field.HasField RPCMiddlewareRequest "maybe'interceptType" (Prelude.Maybe RPCMiddlewareRequest'InterceptType) where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _RPCMiddlewareRequest'interceptType+ (\ x__ y__ -> x__ {_RPCMiddlewareRequest'interceptType = y__}))+ Prelude.id+instance Data.ProtoLens.Field.HasField RPCMiddlewareRequest "maybe'streamAuth" (Prelude.Maybe StreamAuth) where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _RPCMiddlewareRequest'interceptType+ (\ x__ y__ -> x__ {_RPCMiddlewareRequest'interceptType = y__}))+ (Lens.Family2.Unchecked.lens+ (\ x__+ -> case x__ of+ (Prelude.Just (RPCMiddlewareRequest'StreamAuth x__val))+ -> Prelude.Just x__val+ _otherwise -> Prelude.Nothing)+ (\ _ y__ -> Prelude.fmap RPCMiddlewareRequest'StreamAuth y__))+instance Data.ProtoLens.Field.HasField RPCMiddlewareRequest "streamAuth" StreamAuth where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _RPCMiddlewareRequest'interceptType+ (\ x__ y__ -> x__ {_RPCMiddlewareRequest'interceptType = y__}))+ ((Prelude..)+ (Lens.Family2.Unchecked.lens+ (\ x__+ -> case x__ of+ (Prelude.Just (RPCMiddlewareRequest'StreamAuth x__val))+ -> Prelude.Just x__val+ _otherwise -> Prelude.Nothing)+ (\ _ y__ -> Prelude.fmap RPCMiddlewareRequest'StreamAuth y__))+ (Data.ProtoLens.maybeLens Data.ProtoLens.defMessage))+instance Data.ProtoLens.Field.HasField RPCMiddlewareRequest "maybe'request" (Prelude.Maybe RPCMessage) where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _RPCMiddlewareRequest'interceptType+ (\ x__ y__ -> x__ {_RPCMiddlewareRequest'interceptType = y__}))+ (Lens.Family2.Unchecked.lens+ (\ x__+ -> case x__ of+ (Prelude.Just (RPCMiddlewareRequest'Request x__val))+ -> Prelude.Just x__val+ _otherwise -> Prelude.Nothing)+ (\ _ y__ -> Prelude.fmap RPCMiddlewareRequest'Request y__))+instance Data.ProtoLens.Field.HasField RPCMiddlewareRequest "request" RPCMessage where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _RPCMiddlewareRequest'interceptType+ (\ x__ y__ -> x__ {_RPCMiddlewareRequest'interceptType = y__}))+ ((Prelude..)+ (Lens.Family2.Unchecked.lens+ (\ x__+ -> case x__ of+ (Prelude.Just (RPCMiddlewareRequest'Request x__val))+ -> Prelude.Just x__val+ _otherwise -> Prelude.Nothing)+ (\ _ y__ -> Prelude.fmap RPCMiddlewareRequest'Request y__))+ (Data.ProtoLens.maybeLens Data.ProtoLens.defMessage))+instance Data.ProtoLens.Field.HasField RPCMiddlewareRequest "maybe'response" (Prelude.Maybe RPCMessage) where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _RPCMiddlewareRequest'interceptType+ (\ x__ y__ -> x__ {_RPCMiddlewareRequest'interceptType = y__}))+ (Lens.Family2.Unchecked.lens+ (\ x__+ -> case x__ of+ (Prelude.Just (RPCMiddlewareRequest'Response x__val))+ -> Prelude.Just x__val+ _otherwise -> Prelude.Nothing)+ (\ _ y__ -> Prelude.fmap RPCMiddlewareRequest'Response y__))+instance Data.ProtoLens.Field.HasField RPCMiddlewareRequest "response" RPCMessage where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _RPCMiddlewareRequest'interceptType+ (\ x__ y__ -> x__ {_RPCMiddlewareRequest'interceptType = y__}))+ ((Prelude..)+ (Lens.Family2.Unchecked.lens+ (\ x__+ -> case x__ of+ (Prelude.Just (RPCMiddlewareRequest'Response x__val))+ -> Prelude.Just x__val+ _otherwise -> Prelude.Nothing)+ (\ _ y__ -> Prelude.fmap RPCMiddlewareRequest'Response y__))+ (Data.ProtoLens.maybeLens Data.ProtoLens.defMessage))+instance Data.ProtoLens.Message RPCMiddlewareRequest where+ messageName _ = Data.Text.pack "lnrpc.RPCMiddlewareRequest"+ packedMessageDescriptor _+ = "\n\+ \\DC4RPCMiddlewareRequest\DC2\GS\n\+ \\n\+ \request_id\CAN\SOH \SOH(\EOTR\trequestId\DC2!\n\+ \\fraw_macaroon\CAN\STX \SOH(\fR\vrawMacaroon\DC26\n\+ \\ETBcustom_caveat_condition\CAN\ETX \SOH(\tR\NAKcustomCaveatCondition\DC24\n\+ \\vstream_auth\CAN\EOT \SOH(\v2\DC1.lnrpc.StreamAuthH\NULR\n\+ \streamAuth\DC2-\n\+ \\arequest\CAN\ENQ \SOH(\v2\DC1.lnrpc.RPCMessageH\NULR\arequest\DC2/\n\+ \\bresponse\CAN\ACK \SOH(\v2\DC1.lnrpc.RPCMessageH\NULR\bresponse\DC2\NAK\n\+ \\ACKmsg_id\CAN\a \SOH(\EOTR\ENQmsgIdB\DLE\n\+ \\SOintercept_type"+ packedFileDescriptor _ = packedFileDescriptor+ fieldsByTag+ = let+ requestId__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "request_id"+ (Data.ProtoLens.ScalarField Data.ProtoLens.UInt64Field ::+ Data.ProtoLens.FieldTypeDescriptor Data.Word.Word64)+ (Data.ProtoLens.PlainField+ Data.ProtoLens.Optional+ (Data.ProtoLens.Field.field @"requestId")) ::+ Data.ProtoLens.FieldDescriptor RPCMiddlewareRequest+ rawMacaroon__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "raw_macaroon"+ (Data.ProtoLens.ScalarField Data.ProtoLens.BytesField ::+ Data.ProtoLens.FieldTypeDescriptor Data.ByteString.ByteString)+ (Data.ProtoLens.PlainField+ Data.ProtoLens.Optional+ (Data.ProtoLens.Field.field @"rawMacaroon")) ::+ Data.ProtoLens.FieldDescriptor RPCMiddlewareRequest+ customCaveatCondition__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "custom_caveat_condition"+ (Data.ProtoLens.ScalarField Data.ProtoLens.StringField ::+ Data.ProtoLens.FieldTypeDescriptor Data.Text.Text)+ (Data.ProtoLens.PlainField+ Data.ProtoLens.Optional+ (Data.ProtoLens.Field.field @"customCaveatCondition")) ::+ Data.ProtoLens.FieldDescriptor RPCMiddlewareRequest+ msgId__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "msg_id"+ (Data.ProtoLens.ScalarField Data.ProtoLens.UInt64Field ::+ Data.ProtoLens.FieldTypeDescriptor Data.Word.Word64)+ (Data.ProtoLens.PlainField+ Data.ProtoLens.Optional (Data.ProtoLens.Field.field @"msgId")) ::+ Data.ProtoLens.FieldDescriptor RPCMiddlewareRequest+ streamAuth__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "stream_auth"+ (Data.ProtoLens.MessageField Data.ProtoLens.MessageType ::+ Data.ProtoLens.FieldTypeDescriptor StreamAuth)+ (Data.ProtoLens.OptionalField+ (Data.ProtoLens.Field.field @"maybe'streamAuth")) ::+ Data.ProtoLens.FieldDescriptor RPCMiddlewareRequest+ request__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "request"+ (Data.ProtoLens.MessageField Data.ProtoLens.MessageType ::+ Data.ProtoLens.FieldTypeDescriptor RPCMessage)+ (Data.ProtoLens.OptionalField+ (Data.ProtoLens.Field.field @"maybe'request")) ::+ Data.ProtoLens.FieldDescriptor RPCMiddlewareRequest+ response__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "response"+ (Data.ProtoLens.MessageField Data.ProtoLens.MessageType ::+ Data.ProtoLens.FieldTypeDescriptor RPCMessage)+ (Data.ProtoLens.OptionalField+ (Data.ProtoLens.Field.field @"maybe'response")) ::+ Data.ProtoLens.FieldDescriptor RPCMiddlewareRequest+ in+ Data.Map.fromList+ [(Data.ProtoLens.Tag 1, requestId__field_descriptor),+ (Data.ProtoLens.Tag 2, rawMacaroon__field_descriptor),+ (Data.ProtoLens.Tag 3, customCaveatCondition__field_descriptor),+ (Data.ProtoLens.Tag 7, msgId__field_descriptor),+ (Data.ProtoLens.Tag 4, streamAuth__field_descriptor),+ (Data.ProtoLens.Tag 5, request__field_descriptor),+ (Data.ProtoLens.Tag 6, response__field_descriptor)]+ unknownFields+ = Lens.Family2.Unchecked.lens+ _RPCMiddlewareRequest'_unknownFields+ (\ x__ y__ -> x__ {_RPCMiddlewareRequest'_unknownFields = y__})+ defMessage+ = RPCMiddlewareRequest'_constructor+ {_RPCMiddlewareRequest'requestId = Data.ProtoLens.fieldDefault,+ _RPCMiddlewareRequest'rawMacaroon = Data.ProtoLens.fieldDefault,+ _RPCMiddlewareRequest'customCaveatCondition = Data.ProtoLens.fieldDefault,+ _RPCMiddlewareRequest'msgId = Data.ProtoLens.fieldDefault,+ _RPCMiddlewareRequest'interceptType = Prelude.Nothing,+ _RPCMiddlewareRequest'_unknownFields = []}+ parseMessage+ = let+ loop ::+ RPCMiddlewareRequest+ -> Data.ProtoLens.Encoding.Bytes.Parser RPCMiddlewareRequest+ loop x+ = do end <- Data.ProtoLens.Encoding.Bytes.atEnd+ if end then+ do (let missing = []+ in+ if Prelude.null missing then+ Prelude.return ()+ else+ Prelude.fail+ ((Prelude.++)+ "Missing required fields: "+ (Prelude.show (missing :: [Prelude.String]))))+ Prelude.return+ (Lens.Family2.over+ Data.ProtoLens.unknownFields (\ !t -> Prelude.reverse t) x)+ else+ do tag <- Data.ProtoLens.Encoding.Bytes.getVarInt+ case tag of+ 8 -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ Data.ProtoLens.Encoding.Bytes.getVarInt "request_id"+ loop+ (Lens.Family2.set (Data.ProtoLens.Field.field @"requestId") y x)+ 18+ -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (do len <- Data.ProtoLens.Encoding.Bytes.getVarInt+ Data.ProtoLens.Encoding.Bytes.getBytes+ (Prelude.fromIntegral len))+ "raw_macaroon"+ loop+ (Lens.Family2.set (Data.ProtoLens.Field.field @"rawMacaroon") y x)+ 26+ -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (do value <- do len <- Data.ProtoLens.Encoding.Bytes.getVarInt+ Data.ProtoLens.Encoding.Bytes.getBytes+ (Prelude.fromIntegral len)+ Data.ProtoLens.Encoding.Bytes.runEither+ (case Data.Text.Encoding.decodeUtf8' value of+ (Prelude.Left err)+ -> Prelude.Left (Prelude.show err)+ (Prelude.Right r) -> Prelude.Right r))+ "custom_caveat_condition"+ loop+ (Lens.Family2.set+ (Data.ProtoLens.Field.field @"customCaveatCondition") y x)+ 56+ -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ Data.ProtoLens.Encoding.Bytes.getVarInt "msg_id"+ loop (Lens.Family2.set (Data.ProtoLens.Field.field @"msgId") y x)+ 34+ -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (do len <- Data.ProtoLens.Encoding.Bytes.getVarInt+ Data.ProtoLens.Encoding.Bytes.isolate+ (Prelude.fromIntegral len) Data.ProtoLens.parseMessage)+ "stream_auth"+ loop+ (Lens.Family2.set (Data.ProtoLens.Field.field @"streamAuth") y x)+ 42+ -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (do len <- Data.ProtoLens.Encoding.Bytes.getVarInt+ Data.ProtoLens.Encoding.Bytes.isolate+ (Prelude.fromIntegral len) Data.ProtoLens.parseMessage)+ "request"+ loop (Lens.Family2.set (Data.ProtoLens.Field.field @"request") y x)+ 50+ -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (do len <- Data.ProtoLens.Encoding.Bytes.getVarInt+ Data.ProtoLens.Encoding.Bytes.isolate+ (Prelude.fromIntegral len) Data.ProtoLens.parseMessage)+ "response"+ loop+ (Lens.Family2.set (Data.ProtoLens.Field.field @"response") y x)+ wire+ -> do !y <- Data.ProtoLens.Encoding.Wire.parseTaggedValueFromWire+ wire+ loop+ (Lens.Family2.over+ Data.ProtoLens.unknownFields (\ !t -> (:) y t) x)+ in+ (Data.ProtoLens.Encoding.Bytes.<?>)+ (do loop Data.ProtoLens.defMessage) "RPCMiddlewareRequest"+ buildMessage+ = \ _x+ -> (Data.Monoid.<>)+ (let+ _v = Lens.Family2.view (Data.ProtoLens.Field.field @"requestId") _x+ in+ if (Prelude.==) _v Data.ProtoLens.fieldDefault then+ Data.Monoid.mempty+ else+ (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 8)+ (Data.ProtoLens.Encoding.Bytes.putVarInt _v))+ ((Data.Monoid.<>)+ (let+ _v+ = Lens.Family2.view (Data.ProtoLens.Field.field @"rawMacaroon") _x+ in+ if (Prelude.==) _v Data.ProtoLens.fieldDefault then+ Data.Monoid.mempty+ else+ (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 18)+ ((\ bs+ -> (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt+ (Prelude.fromIntegral (Data.ByteString.length bs)))+ (Data.ProtoLens.Encoding.Bytes.putBytes bs))+ _v))+ ((Data.Monoid.<>)+ (let+ _v+ = Lens.Family2.view+ (Data.ProtoLens.Field.field @"customCaveatCondition") _x+ in+ if (Prelude.==) _v Data.ProtoLens.fieldDefault then+ Data.Monoid.mempty+ else+ (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 26)+ ((Prelude..)+ (\ bs+ -> (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt+ (Prelude.fromIntegral (Data.ByteString.length bs)))+ (Data.ProtoLens.Encoding.Bytes.putBytes bs))+ Data.Text.Encoding.encodeUtf8 _v))+ ((Data.Monoid.<>)+ (let+ _v = Lens.Family2.view (Data.ProtoLens.Field.field @"msgId") _x+ in+ if (Prelude.==) _v Data.ProtoLens.fieldDefault then+ Data.Monoid.mempty+ else+ (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 56)+ (Data.ProtoLens.Encoding.Bytes.putVarInt _v))+ ((Data.Monoid.<>)+ (case+ Lens.Family2.view+ (Data.ProtoLens.Field.field @"maybe'interceptType") _x+ of+ Prelude.Nothing -> Data.Monoid.mempty+ (Prelude.Just (RPCMiddlewareRequest'StreamAuth v))+ -> (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 34)+ ((Prelude..)+ (\ bs+ -> (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt+ (Prelude.fromIntegral (Data.ByteString.length bs)))+ (Data.ProtoLens.Encoding.Bytes.putBytes bs))+ Data.ProtoLens.encodeMessage v)+ (Prelude.Just (RPCMiddlewareRequest'Request v))+ -> (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 42)+ ((Prelude..)+ (\ bs+ -> (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt+ (Prelude.fromIntegral (Data.ByteString.length bs)))+ (Data.ProtoLens.Encoding.Bytes.putBytes bs))+ Data.ProtoLens.encodeMessage v)+ (Prelude.Just (RPCMiddlewareRequest'Response v))+ -> (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 50)+ ((Prelude..)+ (\ bs+ -> (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt+ (Prelude.fromIntegral (Data.ByteString.length bs)))+ (Data.ProtoLens.Encoding.Bytes.putBytes bs))+ Data.ProtoLens.encodeMessage v))+ (Data.ProtoLens.Encoding.Wire.buildFieldSet+ (Lens.Family2.view Data.ProtoLens.unknownFields _x))))))+instance Control.DeepSeq.NFData RPCMiddlewareRequest where+ rnf+ = \ x__+ -> Control.DeepSeq.deepseq+ (_RPCMiddlewareRequest'_unknownFields x__)+ (Control.DeepSeq.deepseq+ (_RPCMiddlewareRequest'requestId x__)+ (Control.DeepSeq.deepseq+ (_RPCMiddlewareRequest'rawMacaroon x__)+ (Control.DeepSeq.deepseq+ (_RPCMiddlewareRequest'customCaveatCondition x__)+ (Control.DeepSeq.deepseq+ (_RPCMiddlewareRequest'msgId x__)+ (Control.DeepSeq.deepseq+ (_RPCMiddlewareRequest'interceptType x__) ())))))+instance Control.DeepSeq.NFData RPCMiddlewareRequest'InterceptType where+ rnf (RPCMiddlewareRequest'StreamAuth x__) = Control.DeepSeq.rnf x__+ rnf (RPCMiddlewareRequest'Request x__) = Control.DeepSeq.rnf x__+ rnf (RPCMiddlewareRequest'Response x__) = Control.DeepSeq.rnf x__+_RPCMiddlewareRequest'StreamAuth ::+ Data.ProtoLens.Prism.Prism' RPCMiddlewareRequest'InterceptType StreamAuth+_RPCMiddlewareRequest'StreamAuth+ = Data.ProtoLens.Prism.prism'+ RPCMiddlewareRequest'StreamAuth+ (\ p__+ -> case p__ of+ (RPCMiddlewareRequest'StreamAuth p__val) -> Prelude.Just p__val+ _otherwise -> Prelude.Nothing)+_RPCMiddlewareRequest'Request ::+ Data.ProtoLens.Prism.Prism' RPCMiddlewareRequest'InterceptType RPCMessage+_RPCMiddlewareRequest'Request+ = Data.ProtoLens.Prism.prism'+ RPCMiddlewareRequest'Request+ (\ p__+ -> case p__ of+ (RPCMiddlewareRequest'Request p__val) -> Prelude.Just p__val+ _otherwise -> Prelude.Nothing)+_RPCMiddlewareRequest'Response ::+ Data.ProtoLens.Prism.Prism' RPCMiddlewareRequest'InterceptType RPCMessage+_RPCMiddlewareRequest'Response+ = Data.ProtoLens.Prism.prism'+ RPCMiddlewareRequest'Response+ (\ p__+ -> case p__ of+ (RPCMiddlewareRequest'Response p__val) -> Prelude.Just p__val+ _otherwise -> Prelude.Nothing)+{- | Fields :+ + * 'Proto.Lnrpc.Ln1_Fields.refMsgId' @:: Lens' RPCMiddlewareResponse Data.Word.Word64@+ * 'Proto.Lnrpc.Ln1_Fields.maybe'middlewareMessage' @:: Lens' RPCMiddlewareResponse (Prelude.Maybe RPCMiddlewareResponse'MiddlewareMessage)@+ * 'Proto.Lnrpc.Ln1_Fields.maybe'register' @:: Lens' RPCMiddlewareResponse (Prelude.Maybe MiddlewareRegistration)@+ * 'Proto.Lnrpc.Ln1_Fields.register' @:: Lens' RPCMiddlewareResponse MiddlewareRegistration@+ * 'Proto.Lnrpc.Ln1_Fields.maybe'feedback' @:: Lens' RPCMiddlewareResponse (Prelude.Maybe InterceptFeedback)@+ * 'Proto.Lnrpc.Ln1_Fields.feedback' @:: Lens' RPCMiddlewareResponse InterceptFeedback@ -}+data RPCMiddlewareResponse+ = RPCMiddlewareResponse'_constructor {_RPCMiddlewareResponse'refMsgId :: !Data.Word.Word64,+ _RPCMiddlewareResponse'middlewareMessage :: !(Prelude.Maybe RPCMiddlewareResponse'MiddlewareMessage),+ _RPCMiddlewareResponse'_unknownFields :: !Data.ProtoLens.FieldSet}+ deriving stock (Prelude.Eq, Prelude.Ord, GHC.Generics.Generic)+instance Prelude.Show RPCMiddlewareResponse where+ showsPrec _ __x __s+ = Prelude.showChar+ '{'+ (Prelude.showString+ (Data.ProtoLens.showMessageShort __x) (Prelude.showChar '}' __s))+instance Text.PrettyPrint.GenericPretty.Out RPCMiddlewareResponse+data RPCMiddlewareResponse'MiddlewareMessage+ = RPCMiddlewareResponse'Register !MiddlewareRegistration |+ RPCMiddlewareResponse'Feedback !InterceptFeedback+ deriving stock (Prelude.Show,+ Prelude.Eq,+ Prelude.Ord,+ GHC.Generics.Generic)+instance Text.PrettyPrint.GenericPretty.Out RPCMiddlewareResponse'MiddlewareMessage+instance Data.ProtoLens.Field.HasField RPCMiddlewareResponse "refMsgId" Data.Word.Word64 where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _RPCMiddlewareResponse'refMsgId+ (\ x__ y__ -> x__ {_RPCMiddlewareResponse'refMsgId = y__}))+ Prelude.id+instance Data.ProtoLens.Field.HasField RPCMiddlewareResponse "maybe'middlewareMessage" (Prelude.Maybe RPCMiddlewareResponse'MiddlewareMessage) where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _RPCMiddlewareResponse'middlewareMessage+ (\ x__ y__+ -> x__ {_RPCMiddlewareResponse'middlewareMessage = y__}))+ Prelude.id+instance Data.ProtoLens.Field.HasField RPCMiddlewareResponse "maybe'register" (Prelude.Maybe MiddlewareRegistration) where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _RPCMiddlewareResponse'middlewareMessage+ (\ x__ y__+ -> x__ {_RPCMiddlewareResponse'middlewareMessage = y__}))+ (Lens.Family2.Unchecked.lens+ (\ x__+ -> case x__ of+ (Prelude.Just (RPCMiddlewareResponse'Register x__val))+ -> Prelude.Just x__val+ _otherwise -> Prelude.Nothing)+ (\ _ y__ -> Prelude.fmap RPCMiddlewareResponse'Register y__))+instance Data.ProtoLens.Field.HasField RPCMiddlewareResponse "register" MiddlewareRegistration where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _RPCMiddlewareResponse'middlewareMessage+ (\ x__ y__+ -> x__ {_RPCMiddlewareResponse'middlewareMessage = y__}))+ ((Prelude..)+ (Lens.Family2.Unchecked.lens+ (\ x__+ -> case x__ of+ (Prelude.Just (RPCMiddlewareResponse'Register x__val))+ -> Prelude.Just x__val+ _otherwise -> Prelude.Nothing)+ (\ _ y__ -> Prelude.fmap RPCMiddlewareResponse'Register y__))+ (Data.ProtoLens.maybeLens Data.ProtoLens.defMessage))+instance Data.ProtoLens.Field.HasField RPCMiddlewareResponse "maybe'feedback" (Prelude.Maybe InterceptFeedback) where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _RPCMiddlewareResponse'middlewareMessage+ (\ x__ y__+ -> x__ {_RPCMiddlewareResponse'middlewareMessage = y__}))+ (Lens.Family2.Unchecked.lens+ (\ x__+ -> case x__ of+ (Prelude.Just (RPCMiddlewareResponse'Feedback x__val))+ -> Prelude.Just x__val+ _otherwise -> Prelude.Nothing)+ (\ _ y__ -> Prelude.fmap RPCMiddlewareResponse'Feedback y__))+instance Data.ProtoLens.Field.HasField RPCMiddlewareResponse "feedback" InterceptFeedback where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _RPCMiddlewareResponse'middlewareMessage+ (\ x__ y__+ -> x__ {_RPCMiddlewareResponse'middlewareMessage = y__}))+ ((Prelude..)+ (Lens.Family2.Unchecked.lens+ (\ x__+ -> case x__ of+ (Prelude.Just (RPCMiddlewareResponse'Feedback x__val))+ -> Prelude.Just x__val+ _otherwise -> Prelude.Nothing)+ (\ _ y__ -> Prelude.fmap RPCMiddlewareResponse'Feedback y__))+ (Data.ProtoLens.maybeLens Data.ProtoLens.defMessage))+instance Data.ProtoLens.Message RPCMiddlewareResponse where+ messageName _ = Data.Text.pack "lnrpc.RPCMiddlewareResponse"+ packedMessageDescriptor _+ = "\n\+ \\NAKRPCMiddlewareResponse\DC2\FS\n\+ \\n\+ \ref_msg_id\CAN\SOH \SOH(\EOTR\brefMsgId\DC2;\n\+ \\bregister\CAN\STX \SOH(\v2\GS.lnrpc.MiddlewareRegistrationH\NULR\bregister\DC26\n\+ \\bfeedback\CAN\ETX \SOH(\v2\CAN.lnrpc.InterceptFeedbackH\NULR\bfeedbackB\DC4\n\+ \\DC2middleware_message"+ packedFileDescriptor _ = packedFileDescriptor+ fieldsByTag+ = let+ refMsgId__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "ref_msg_id"+ (Data.ProtoLens.ScalarField Data.ProtoLens.UInt64Field ::+ Data.ProtoLens.FieldTypeDescriptor Data.Word.Word64)+ (Data.ProtoLens.PlainField+ Data.ProtoLens.Optional+ (Data.ProtoLens.Field.field @"refMsgId")) ::+ Data.ProtoLens.FieldDescriptor RPCMiddlewareResponse+ register__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "register"+ (Data.ProtoLens.MessageField Data.ProtoLens.MessageType ::+ Data.ProtoLens.FieldTypeDescriptor MiddlewareRegistration)+ (Data.ProtoLens.OptionalField+ (Data.ProtoLens.Field.field @"maybe'register")) ::+ Data.ProtoLens.FieldDescriptor RPCMiddlewareResponse+ feedback__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "feedback"+ (Data.ProtoLens.MessageField Data.ProtoLens.MessageType ::+ Data.ProtoLens.FieldTypeDescriptor InterceptFeedback)+ (Data.ProtoLens.OptionalField+ (Data.ProtoLens.Field.field @"maybe'feedback")) ::+ Data.ProtoLens.FieldDescriptor RPCMiddlewareResponse+ in+ Data.Map.fromList+ [(Data.ProtoLens.Tag 1, refMsgId__field_descriptor),+ (Data.ProtoLens.Tag 2, register__field_descriptor),+ (Data.ProtoLens.Tag 3, feedback__field_descriptor)]+ unknownFields+ = Lens.Family2.Unchecked.lens+ _RPCMiddlewareResponse'_unknownFields+ (\ x__ y__ -> x__ {_RPCMiddlewareResponse'_unknownFields = y__})+ defMessage+ = RPCMiddlewareResponse'_constructor+ {_RPCMiddlewareResponse'refMsgId = Data.ProtoLens.fieldDefault,+ _RPCMiddlewareResponse'middlewareMessage = Prelude.Nothing,+ _RPCMiddlewareResponse'_unknownFields = []}+ parseMessage+ = let+ loop ::+ RPCMiddlewareResponse+ -> Data.ProtoLens.Encoding.Bytes.Parser RPCMiddlewareResponse+ loop x+ = do end <- Data.ProtoLens.Encoding.Bytes.atEnd+ if end then+ do (let missing = []+ in+ if Prelude.null missing then+ Prelude.return ()+ else+ Prelude.fail+ ((Prelude.++)+ "Missing required fields: "+ (Prelude.show (missing :: [Prelude.String]))))+ Prelude.return+ (Lens.Family2.over+ Data.ProtoLens.unknownFields (\ !t -> Prelude.reverse t) x)+ else+ do tag <- Data.ProtoLens.Encoding.Bytes.getVarInt+ case tag of+ 8 -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ Data.ProtoLens.Encoding.Bytes.getVarInt "ref_msg_id"+ loop+ (Lens.Family2.set (Data.ProtoLens.Field.field @"refMsgId") y x)+ 18+ -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (do len <- Data.ProtoLens.Encoding.Bytes.getVarInt+ Data.ProtoLens.Encoding.Bytes.isolate+ (Prelude.fromIntegral len) Data.ProtoLens.parseMessage)+ "register"+ loop+ (Lens.Family2.set (Data.ProtoLens.Field.field @"register") y x)+ 26+ -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (do len <- Data.ProtoLens.Encoding.Bytes.getVarInt+ Data.ProtoLens.Encoding.Bytes.isolate+ (Prelude.fromIntegral len) Data.ProtoLens.parseMessage)+ "feedback"+ loop+ (Lens.Family2.set (Data.ProtoLens.Field.field @"feedback") y x)+ wire+ -> do !y <- Data.ProtoLens.Encoding.Wire.parseTaggedValueFromWire+ wire+ loop+ (Lens.Family2.over+ Data.ProtoLens.unknownFields (\ !t -> (:) y t) x)+ in+ (Data.ProtoLens.Encoding.Bytes.<?>)+ (do loop Data.ProtoLens.defMessage) "RPCMiddlewareResponse"+ buildMessage+ = \ _x+ -> (Data.Monoid.<>)+ (let+ _v = Lens.Family2.view (Data.ProtoLens.Field.field @"refMsgId") _x+ in+ if (Prelude.==) _v Data.ProtoLens.fieldDefault then+ Data.Monoid.mempty+ else+ (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 8)+ (Data.ProtoLens.Encoding.Bytes.putVarInt _v))+ ((Data.Monoid.<>)+ (case+ Lens.Family2.view+ (Data.ProtoLens.Field.field @"maybe'middlewareMessage") _x+ of+ Prelude.Nothing -> Data.Monoid.mempty+ (Prelude.Just (RPCMiddlewareResponse'Register v))+ -> (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 18)+ ((Prelude..)+ (\ bs+ -> (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt+ (Prelude.fromIntegral (Data.ByteString.length bs)))+ (Data.ProtoLens.Encoding.Bytes.putBytes bs))+ Data.ProtoLens.encodeMessage v)+ (Prelude.Just (RPCMiddlewareResponse'Feedback v))+ -> (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 26)+ ((Prelude..)+ (\ bs+ -> (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt+ (Prelude.fromIntegral (Data.ByteString.length bs)))+ (Data.ProtoLens.Encoding.Bytes.putBytes bs))+ Data.ProtoLens.encodeMessage v))+ (Data.ProtoLens.Encoding.Wire.buildFieldSet+ (Lens.Family2.view Data.ProtoLens.unknownFields _x)))+instance Control.DeepSeq.NFData RPCMiddlewareResponse where+ rnf+ = \ x__+ -> Control.DeepSeq.deepseq+ (_RPCMiddlewareResponse'_unknownFields x__)+ (Control.DeepSeq.deepseq+ (_RPCMiddlewareResponse'refMsgId x__)+ (Control.DeepSeq.deepseq+ (_RPCMiddlewareResponse'middlewareMessage x__) ()))+instance Control.DeepSeq.NFData RPCMiddlewareResponse'MiddlewareMessage where+ rnf (RPCMiddlewareResponse'Register x__) = Control.DeepSeq.rnf x__+ rnf (RPCMiddlewareResponse'Feedback x__) = Control.DeepSeq.rnf x__+_RPCMiddlewareResponse'Register ::+ Data.ProtoLens.Prism.Prism' RPCMiddlewareResponse'MiddlewareMessage MiddlewareRegistration+_RPCMiddlewareResponse'Register+ = Data.ProtoLens.Prism.prism'+ RPCMiddlewareResponse'Register+ (\ p__+ -> case p__ of+ (RPCMiddlewareResponse'Register p__val) -> Prelude.Just p__val+ _otherwise -> Prelude.Nothing)+_RPCMiddlewareResponse'Feedback ::+ Data.ProtoLens.Prism.Prism' RPCMiddlewareResponse'MiddlewareMessage InterceptFeedback+_RPCMiddlewareResponse'Feedback+ = Data.ProtoLens.Prism.prism'+ RPCMiddlewareResponse'Feedback+ (\ p__+ -> case p__ of+ (RPCMiddlewareResponse'Feedback p__val) -> Prelude.Just p__val+ _otherwise -> Prelude.Nothing)+{- | Fields :+ -}+data RestoreBackupResponse+ = RestoreBackupResponse'_constructor {_RestoreBackupResponse'_unknownFields :: !Data.ProtoLens.FieldSet}+ deriving stock (Prelude.Eq, Prelude.Ord, GHC.Generics.Generic)+instance Prelude.Show RestoreBackupResponse where+ showsPrec _ __x __s+ = Prelude.showChar+ '{'+ (Prelude.showString+ (Data.ProtoLens.showMessageShort __x) (Prelude.showChar '}' __s))+instance Text.PrettyPrint.GenericPretty.Out RestoreBackupResponse+instance Data.ProtoLens.Message RestoreBackupResponse where+ messageName _ = Data.Text.pack "lnrpc.RestoreBackupResponse"+ packedMessageDescriptor _+ = "\n\+ \\NAKRestoreBackupResponse"+ packedFileDescriptor _ = packedFileDescriptor+ fieldsByTag = let in Data.Map.fromList []+ unknownFields+ = Lens.Family2.Unchecked.lens+ _RestoreBackupResponse'_unknownFields+ (\ x__ y__ -> x__ {_RestoreBackupResponse'_unknownFields = y__})+ defMessage+ = RestoreBackupResponse'_constructor+ {_RestoreBackupResponse'_unknownFields = []}+ parseMessage+ = let+ loop ::+ RestoreBackupResponse+ -> Data.ProtoLens.Encoding.Bytes.Parser RestoreBackupResponse+ loop x+ = do end <- Data.ProtoLens.Encoding.Bytes.atEnd+ if end then+ do (let missing = []+ in+ if Prelude.null missing then+ Prelude.return ()+ else+ Prelude.fail+ ((Prelude.++)+ "Missing required fields: "+ (Prelude.show (missing :: [Prelude.String]))))+ Prelude.return+ (Lens.Family2.over+ Data.ProtoLens.unknownFields (\ !t -> Prelude.reverse t) x)+ else+ do tag <- Data.ProtoLens.Encoding.Bytes.getVarInt+ case tag of {+ wire+ -> do !y <- Data.ProtoLens.Encoding.Wire.parseTaggedValueFromWire+ wire+ loop+ (Lens.Family2.over+ Data.ProtoLens.unknownFields (\ !t -> (:) y t) x) }+ in+ (Data.ProtoLens.Encoding.Bytes.<?>)+ (do loop Data.ProtoLens.defMessage) "RestoreBackupResponse"+ buildMessage+ = \ _x+ -> Data.ProtoLens.Encoding.Wire.buildFieldSet+ (Lens.Family2.view Data.ProtoLens.unknownFields _x)+instance Control.DeepSeq.NFData RestoreBackupResponse where+ rnf+ = \ x__+ -> Control.DeepSeq.deepseq+ (_RestoreBackupResponse'_unknownFields x__) ()+{- | Fields :+ + * 'Proto.Lnrpc.Ln1_Fields.maybe'backup' @:: Lens' RestoreChanBackupRequest (Prelude.Maybe RestoreChanBackupRequest'Backup)@+ * 'Proto.Lnrpc.Ln1_Fields.maybe'chanBackups' @:: Lens' RestoreChanBackupRequest (Prelude.Maybe ChannelBackups)@+ * 'Proto.Lnrpc.Ln1_Fields.chanBackups' @:: Lens' RestoreChanBackupRequest ChannelBackups@+ * 'Proto.Lnrpc.Ln1_Fields.maybe'multiChanBackup' @:: Lens' RestoreChanBackupRequest (Prelude.Maybe Data.ByteString.ByteString)@+ * 'Proto.Lnrpc.Ln1_Fields.multiChanBackup' @:: Lens' RestoreChanBackupRequest Data.ByteString.ByteString@ -}+data RestoreChanBackupRequest+ = RestoreChanBackupRequest'_constructor {_RestoreChanBackupRequest'backup :: !(Prelude.Maybe RestoreChanBackupRequest'Backup),+ _RestoreChanBackupRequest'_unknownFields :: !Data.ProtoLens.FieldSet}+ deriving stock (Prelude.Eq, Prelude.Ord, GHC.Generics.Generic)+instance Prelude.Show RestoreChanBackupRequest where+ showsPrec _ __x __s+ = Prelude.showChar+ '{'+ (Prelude.showString+ (Data.ProtoLens.showMessageShort __x) (Prelude.showChar '}' __s))+instance Text.PrettyPrint.GenericPretty.Out RestoreChanBackupRequest+data RestoreChanBackupRequest'Backup+ = RestoreChanBackupRequest'ChanBackups !ChannelBackups |+ RestoreChanBackupRequest'MultiChanBackup !Data.ByteString.ByteString+ deriving stock (Prelude.Show,+ Prelude.Eq,+ Prelude.Ord,+ GHC.Generics.Generic)+instance Text.PrettyPrint.GenericPretty.Out RestoreChanBackupRequest'Backup+instance Data.ProtoLens.Field.HasField RestoreChanBackupRequest "maybe'backup" (Prelude.Maybe RestoreChanBackupRequest'Backup) where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _RestoreChanBackupRequest'backup+ (\ x__ y__ -> x__ {_RestoreChanBackupRequest'backup = y__}))+ Prelude.id+instance Data.ProtoLens.Field.HasField RestoreChanBackupRequest "maybe'chanBackups" (Prelude.Maybe ChannelBackups) where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _RestoreChanBackupRequest'backup+ (\ x__ y__ -> x__ {_RestoreChanBackupRequest'backup = y__}))+ (Lens.Family2.Unchecked.lens+ (\ x__+ -> case x__ of+ (Prelude.Just (RestoreChanBackupRequest'ChanBackups x__val))+ -> Prelude.Just x__val+ _otherwise -> Prelude.Nothing)+ (\ _ y__ -> Prelude.fmap RestoreChanBackupRequest'ChanBackups y__))+instance Data.ProtoLens.Field.HasField RestoreChanBackupRequest "chanBackups" ChannelBackups where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _RestoreChanBackupRequest'backup+ (\ x__ y__ -> x__ {_RestoreChanBackupRequest'backup = y__}))+ ((Prelude..)+ (Lens.Family2.Unchecked.lens+ (\ x__+ -> case x__ of+ (Prelude.Just (RestoreChanBackupRequest'ChanBackups x__val))+ -> Prelude.Just x__val+ _otherwise -> Prelude.Nothing)+ (\ _ y__ -> Prelude.fmap RestoreChanBackupRequest'ChanBackups y__))+ (Data.ProtoLens.maybeLens Data.ProtoLens.defMessage))+instance Data.ProtoLens.Field.HasField RestoreChanBackupRequest "maybe'multiChanBackup" (Prelude.Maybe Data.ByteString.ByteString) where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _RestoreChanBackupRequest'backup+ (\ x__ y__ -> x__ {_RestoreChanBackupRequest'backup = y__}))+ (Lens.Family2.Unchecked.lens+ (\ x__+ -> case x__ of+ (Prelude.Just (RestoreChanBackupRequest'MultiChanBackup x__val))+ -> Prelude.Just x__val+ _otherwise -> Prelude.Nothing)+ (\ _ y__+ -> Prelude.fmap RestoreChanBackupRequest'MultiChanBackup y__))+instance Data.ProtoLens.Field.HasField RestoreChanBackupRequest "multiChanBackup" Data.ByteString.ByteString where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _RestoreChanBackupRequest'backup+ (\ x__ y__ -> x__ {_RestoreChanBackupRequest'backup = y__}))+ ((Prelude..)+ (Lens.Family2.Unchecked.lens+ (\ x__+ -> case x__ of+ (Prelude.Just (RestoreChanBackupRequest'MultiChanBackup x__val))+ -> Prelude.Just x__val+ _otherwise -> Prelude.Nothing)+ (\ _ y__+ -> Prelude.fmap RestoreChanBackupRequest'MultiChanBackup y__))+ (Data.ProtoLens.maybeLens Data.ProtoLens.fieldDefault))+instance Data.ProtoLens.Message RestoreChanBackupRequest where+ messageName _ = Data.Text.pack "lnrpc.RestoreChanBackupRequest"+ packedMessageDescriptor _+ = "\n\+ \\CANRestoreChanBackupRequest\DC2:\n\+ \\fchan_backups\CAN\SOH \SOH(\v2\NAK.lnrpc.ChannelBackupsH\NULR\vchanBackups\DC2,\n\+ \\DC1multi_chan_backup\CAN\STX \SOH(\fH\NULR\SImultiChanBackupB\b\n\+ \\ACKbackup"+ packedFileDescriptor _ = packedFileDescriptor+ fieldsByTag+ = let+ chanBackups__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "chan_backups"+ (Data.ProtoLens.MessageField Data.ProtoLens.MessageType ::+ Data.ProtoLens.FieldTypeDescriptor ChannelBackups)+ (Data.ProtoLens.OptionalField+ (Data.ProtoLens.Field.field @"maybe'chanBackups")) ::+ Data.ProtoLens.FieldDescriptor RestoreChanBackupRequest+ multiChanBackup__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "multi_chan_backup"+ (Data.ProtoLens.ScalarField Data.ProtoLens.BytesField ::+ Data.ProtoLens.FieldTypeDescriptor Data.ByteString.ByteString)+ (Data.ProtoLens.OptionalField+ (Data.ProtoLens.Field.field @"maybe'multiChanBackup")) ::+ Data.ProtoLens.FieldDescriptor RestoreChanBackupRequest+ in+ Data.Map.fromList+ [(Data.ProtoLens.Tag 1, chanBackups__field_descriptor),+ (Data.ProtoLens.Tag 2, multiChanBackup__field_descriptor)]+ unknownFields+ = Lens.Family2.Unchecked.lens+ _RestoreChanBackupRequest'_unknownFields+ (\ x__ y__ -> x__ {_RestoreChanBackupRequest'_unknownFields = y__})+ defMessage+ = RestoreChanBackupRequest'_constructor+ {_RestoreChanBackupRequest'backup = Prelude.Nothing,+ _RestoreChanBackupRequest'_unknownFields = []}+ parseMessage+ = let+ loop ::+ RestoreChanBackupRequest+ -> Data.ProtoLens.Encoding.Bytes.Parser RestoreChanBackupRequest+ loop x+ = do end <- Data.ProtoLens.Encoding.Bytes.atEnd+ if end then+ do (let missing = []+ in+ if Prelude.null missing then+ Prelude.return ()+ else+ Prelude.fail+ ((Prelude.++)+ "Missing required fields: "+ (Prelude.show (missing :: [Prelude.String]))))+ Prelude.return+ (Lens.Family2.over+ Data.ProtoLens.unknownFields (\ !t -> Prelude.reverse t) x)+ else+ do tag <- Data.ProtoLens.Encoding.Bytes.getVarInt+ case tag of+ 10+ -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (do len <- Data.ProtoLens.Encoding.Bytes.getVarInt+ Data.ProtoLens.Encoding.Bytes.isolate+ (Prelude.fromIntegral len) Data.ProtoLens.parseMessage)+ "chan_backups"+ loop+ (Lens.Family2.set (Data.ProtoLens.Field.field @"chanBackups") y x)+ 18+ -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (do len <- Data.ProtoLens.Encoding.Bytes.getVarInt+ Data.ProtoLens.Encoding.Bytes.getBytes+ (Prelude.fromIntegral len))+ "multi_chan_backup"+ loop+ (Lens.Family2.set+ (Data.ProtoLens.Field.field @"multiChanBackup") y x)+ wire+ -> do !y <- Data.ProtoLens.Encoding.Wire.parseTaggedValueFromWire+ wire+ loop+ (Lens.Family2.over+ Data.ProtoLens.unknownFields (\ !t -> (:) y t) x)+ in+ (Data.ProtoLens.Encoding.Bytes.<?>)+ (do loop Data.ProtoLens.defMessage) "RestoreChanBackupRequest"+ buildMessage+ = \ _x+ -> (Data.Monoid.<>)+ (case+ Lens.Family2.view (Data.ProtoLens.Field.field @"maybe'backup") _x+ of+ Prelude.Nothing -> Data.Monoid.mempty+ (Prelude.Just (RestoreChanBackupRequest'ChanBackups v))+ -> (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 10)+ ((Prelude..)+ (\ bs+ -> (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt+ (Prelude.fromIntegral (Data.ByteString.length bs)))+ (Data.ProtoLens.Encoding.Bytes.putBytes bs))+ Data.ProtoLens.encodeMessage v)+ (Prelude.Just (RestoreChanBackupRequest'MultiChanBackup v))+ -> (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 18)+ ((\ bs+ -> (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt+ (Prelude.fromIntegral (Data.ByteString.length bs)))+ (Data.ProtoLens.Encoding.Bytes.putBytes bs))+ v))+ (Data.ProtoLens.Encoding.Wire.buildFieldSet+ (Lens.Family2.view Data.ProtoLens.unknownFields _x))+instance Control.DeepSeq.NFData RestoreChanBackupRequest where+ rnf+ = \ x__+ -> Control.DeepSeq.deepseq+ (_RestoreChanBackupRequest'_unknownFields x__)+ (Control.DeepSeq.deepseq (_RestoreChanBackupRequest'backup x__) ())+instance Control.DeepSeq.NFData RestoreChanBackupRequest'Backup where+ rnf (RestoreChanBackupRequest'ChanBackups x__)+ = Control.DeepSeq.rnf x__+ rnf (RestoreChanBackupRequest'MultiChanBackup x__)+ = Control.DeepSeq.rnf x__+_RestoreChanBackupRequest'ChanBackups ::+ Data.ProtoLens.Prism.Prism' RestoreChanBackupRequest'Backup ChannelBackups+_RestoreChanBackupRequest'ChanBackups+ = Data.ProtoLens.Prism.prism'+ RestoreChanBackupRequest'ChanBackups+ (\ p__+ -> case p__ of+ (RestoreChanBackupRequest'ChanBackups p__val)+ -> Prelude.Just p__val+ _otherwise -> Prelude.Nothing)+_RestoreChanBackupRequest'MultiChanBackup ::+ Data.ProtoLens.Prism.Prism' RestoreChanBackupRequest'Backup Data.ByteString.ByteString+_RestoreChanBackupRequest'MultiChanBackup+ = Data.ProtoLens.Prism.prism'+ RestoreChanBackupRequest'MultiChanBackup+ (\ p__+ -> case p__ of+ (RestoreChanBackupRequest'MultiChanBackup p__val)+ -> Prelude.Just p__val+ _otherwise -> Prelude.Nothing)+{- | Fields :+ + * 'Proto.Lnrpc.Ln1_Fields.setId' @:: Lens' SetID Data.ByteString.ByteString@ -}+data SetID+ = SetID'_constructor {_SetID'setId :: !Data.ByteString.ByteString,+ _SetID'_unknownFields :: !Data.ProtoLens.FieldSet}+ deriving stock (Prelude.Eq, Prelude.Ord, GHC.Generics.Generic)+instance Prelude.Show SetID where+ showsPrec _ __x __s+ = Prelude.showChar+ '{'+ (Prelude.showString+ (Data.ProtoLens.showMessageShort __x) (Prelude.showChar '}' __s))+instance Text.PrettyPrint.GenericPretty.Out SetID+instance Data.ProtoLens.Field.HasField SetID "setId" Data.ByteString.ByteString where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _SetID'setId (\ x__ y__ -> x__ {_SetID'setId = y__}))+ Prelude.id+instance Data.ProtoLens.Message SetID where+ messageName _ = Data.Text.pack "lnrpc.SetID"+ packedMessageDescriptor _+ = "\n\+ \\ENQSetID\DC2\NAK\n\+ \\ACKset_id\CAN\SOH \SOH(\fR\ENQsetId"+ packedFileDescriptor _ = packedFileDescriptor+ fieldsByTag+ = let+ setId__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "set_id"+ (Data.ProtoLens.ScalarField Data.ProtoLens.BytesField ::+ Data.ProtoLens.FieldTypeDescriptor Data.ByteString.ByteString)+ (Data.ProtoLens.PlainField+ Data.ProtoLens.Optional (Data.ProtoLens.Field.field @"setId")) ::+ Data.ProtoLens.FieldDescriptor SetID+ in+ Data.Map.fromList [(Data.ProtoLens.Tag 1, setId__field_descriptor)]+ unknownFields+ = Lens.Family2.Unchecked.lens+ _SetID'_unknownFields+ (\ x__ y__ -> x__ {_SetID'_unknownFields = y__})+ defMessage+ = SetID'_constructor+ {_SetID'setId = Data.ProtoLens.fieldDefault,+ _SetID'_unknownFields = []}+ parseMessage+ = let+ loop :: SetID -> Data.ProtoLens.Encoding.Bytes.Parser SetID+ loop x+ = do end <- Data.ProtoLens.Encoding.Bytes.atEnd+ if end then+ do (let missing = []+ in+ if Prelude.null missing then+ Prelude.return ()+ else+ Prelude.fail+ ((Prelude.++)+ "Missing required fields: "+ (Prelude.show (missing :: [Prelude.String]))))+ Prelude.return+ (Lens.Family2.over+ Data.ProtoLens.unknownFields (\ !t -> Prelude.reverse t) x)+ else+ do tag <- Data.ProtoLens.Encoding.Bytes.getVarInt+ case tag of+ 10+ -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (do len <- Data.ProtoLens.Encoding.Bytes.getVarInt+ Data.ProtoLens.Encoding.Bytes.getBytes+ (Prelude.fromIntegral len))+ "set_id"+ loop (Lens.Family2.set (Data.ProtoLens.Field.field @"setId") y x)+ wire+ -> do !y <- Data.ProtoLens.Encoding.Wire.parseTaggedValueFromWire+ wire+ loop+ (Lens.Family2.over+ Data.ProtoLens.unknownFields (\ !t -> (:) y t) x)+ in+ (Data.ProtoLens.Encoding.Bytes.<?>)+ (do loop Data.ProtoLens.defMessage) "SetID"+ buildMessage+ = \ _x+ -> (Data.Monoid.<>)+ (let+ _v = Lens.Family2.view (Data.ProtoLens.Field.field @"setId") _x+ in+ if (Prelude.==) _v Data.ProtoLens.fieldDefault then+ Data.Monoid.mempty+ else+ (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 10)+ ((\ bs+ -> (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt+ (Prelude.fromIntegral (Data.ByteString.length bs)))+ (Data.ProtoLens.Encoding.Bytes.putBytes bs))+ _v))+ (Data.ProtoLens.Encoding.Wire.buildFieldSet+ (Lens.Family2.view Data.ProtoLens.unknownFields _x))+instance Control.DeepSeq.NFData SetID where+ rnf+ = \ x__+ -> Control.DeepSeq.deepseq+ (_SetID'_unknownFields x__)+ (Control.DeepSeq.deepseq (_SetID'setId x__) ())+{- | Fields :+ + * 'Proto.Lnrpc.Ln1_Fields.methodFullUri' @:: Lens' StreamAuth Data.Text.Text@ -}+data StreamAuth+ = StreamAuth'_constructor {_StreamAuth'methodFullUri :: !Data.Text.Text,+ _StreamAuth'_unknownFields :: !Data.ProtoLens.FieldSet}+ deriving stock (Prelude.Eq, Prelude.Ord, GHC.Generics.Generic)+instance Prelude.Show StreamAuth where+ showsPrec _ __x __s+ = Prelude.showChar+ '{'+ (Prelude.showString+ (Data.ProtoLens.showMessageShort __x) (Prelude.showChar '}' __s))+instance Text.PrettyPrint.GenericPretty.Out StreamAuth+instance Data.ProtoLens.Field.HasField StreamAuth "methodFullUri" Data.Text.Text where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _StreamAuth'methodFullUri+ (\ x__ y__ -> x__ {_StreamAuth'methodFullUri = y__}))+ Prelude.id+instance Data.ProtoLens.Message StreamAuth where+ messageName _ = Data.Text.pack "lnrpc.StreamAuth"+ packedMessageDescriptor _+ = "\n\+ \\n\+ \StreamAuth\DC2&\n\+ \\SImethod_full_uri\CAN\SOH \SOH(\tR\rmethodFullUri"+ packedFileDescriptor _ = packedFileDescriptor+ fieldsByTag+ = let+ methodFullUri__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "method_full_uri"+ (Data.ProtoLens.ScalarField Data.ProtoLens.StringField ::+ Data.ProtoLens.FieldTypeDescriptor Data.Text.Text)+ (Data.ProtoLens.PlainField+ Data.ProtoLens.Optional+ (Data.ProtoLens.Field.field @"methodFullUri")) ::+ Data.ProtoLens.FieldDescriptor StreamAuth+ in+ Data.Map.fromList+ [(Data.ProtoLens.Tag 1, methodFullUri__field_descriptor)]+ unknownFields+ = Lens.Family2.Unchecked.lens+ _StreamAuth'_unknownFields+ (\ x__ y__ -> x__ {_StreamAuth'_unknownFields = y__})+ defMessage+ = StreamAuth'_constructor+ {_StreamAuth'methodFullUri = Data.ProtoLens.fieldDefault,+ _StreamAuth'_unknownFields = []}+ parseMessage+ = let+ loop ::+ StreamAuth -> Data.ProtoLens.Encoding.Bytes.Parser StreamAuth+ loop x+ = do end <- Data.ProtoLens.Encoding.Bytes.atEnd+ if end then+ do (let missing = []+ in+ if Prelude.null missing then+ Prelude.return ()+ else+ Prelude.fail+ ((Prelude.++)+ "Missing required fields: "+ (Prelude.show (missing :: [Prelude.String]))))+ Prelude.return+ (Lens.Family2.over+ Data.ProtoLens.unknownFields (\ !t -> Prelude.reverse t) x)+ else+ do tag <- Data.ProtoLens.Encoding.Bytes.getVarInt+ case tag of+ 10+ -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (do value <- do len <- Data.ProtoLens.Encoding.Bytes.getVarInt+ Data.ProtoLens.Encoding.Bytes.getBytes+ (Prelude.fromIntegral len)+ Data.ProtoLens.Encoding.Bytes.runEither+ (case Data.Text.Encoding.decodeUtf8' value of+ (Prelude.Left err)+ -> Prelude.Left (Prelude.show err)+ (Prelude.Right r) -> Prelude.Right r))+ "method_full_uri"+ loop+ (Lens.Family2.set+ (Data.ProtoLens.Field.field @"methodFullUri") y x)+ wire+ -> do !y <- Data.ProtoLens.Encoding.Wire.parseTaggedValueFromWire+ wire+ loop+ (Lens.Family2.over+ Data.ProtoLens.unknownFields (\ !t -> (:) y t) x)+ in+ (Data.ProtoLens.Encoding.Bytes.<?>)+ (do loop Data.ProtoLens.defMessage) "StreamAuth"+ buildMessage+ = \ _x+ -> (Data.Monoid.<>)+ (let+ _v+ = Lens.Family2.view+ (Data.ProtoLens.Field.field @"methodFullUri") _x+ in+ if (Prelude.==) _v Data.ProtoLens.fieldDefault then+ Data.Monoid.mempty+ else+ (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 10)+ ((Prelude..)+ (\ bs+ -> (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt+ (Prelude.fromIntegral (Data.ByteString.length bs)))+ (Data.ProtoLens.Encoding.Bytes.putBytes bs))+ Data.Text.Encoding.encodeUtf8 _v))+ (Data.ProtoLens.Encoding.Wire.buildFieldSet+ (Lens.Family2.view Data.ProtoLens.unknownFields _x))+instance Control.DeepSeq.NFData StreamAuth where+ rnf+ = \ x__+ -> Control.DeepSeq.deepseq+ (_StreamAuth'_unknownFields x__)+ (Control.DeepSeq.deepseq (_StreamAuth'methodFullUri x__) ())+newtype UpdateFailure'UnrecognizedValue+ = UpdateFailure'UnrecognizedValue Data.Int.Int32+ deriving stock (Prelude.Eq,+ Prelude.Ord,+ Prelude.Show,+ GHC.Generics.Generic)+instance Text.PrettyPrint.GenericPretty.Out UpdateFailure'UnrecognizedValue+data UpdateFailure+ = UPDATE_FAILURE_UNKNOWN |+ UPDATE_FAILURE_PENDING |+ UPDATE_FAILURE_NOT_FOUND |+ UPDATE_FAILURE_INTERNAL_ERR |+ UPDATE_FAILURE_INVALID_PARAMETER |+ UpdateFailure'Unrecognized !UpdateFailure'UnrecognizedValue+ deriving stock (Prelude.Show,+ Prelude.Eq,+ Prelude.Ord,+ GHC.Generics.Generic)+instance Data.ProtoLens.MessageEnum UpdateFailure where+ maybeToEnum 0 = Prelude.Just UPDATE_FAILURE_UNKNOWN+ maybeToEnum 1 = Prelude.Just UPDATE_FAILURE_PENDING+ maybeToEnum 2 = Prelude.Just UPDATE_FAILURE_NOT_FOUND+ maybeToEnum 3 = Prelude.Just UPDATE_FAILURE_INTERNAL_ERR+ maybeToEnum 4 = Prelude.Just UPDATE_FAILURE_INVALID_PARAMETER+ maybeToEnum k+ = Prelude.Just+ (UpdateFailure'Unrecognized+ (UpdateFailure'UnrecognizedValue (Prelude.fromIntegral k)))+ showEnum UPDATE_FAILURE_UNKNOWN = "UPDATE_FAILURE_UNKNOWN"+ showEnum UPDATE_FAILURE_PENDING = "UPDATE_FAILURE_PENDING"+ showEnum UPDATE_FAILURE_NOT_FOUND = "UPDATE_FAILURE_NOT_FOUND"+ showEnum UPDATE_FAILURE_INTERNAL_ERR+ = "UPDATE_FAILURE_INTERNAL_ERR"+ showEnum UPDATE_FAILURE_INVALID_PARAMETER+ = "UPDATE_FAILURE_INVALID_PARAMETER"+ showEnum+ (UpdateFailure'Unrecognized (UpdateFailure'UnrecognizedValue k))+ = Prelude.show k+ readEnum k+ | (Prelude.==) k "UPDATE_FAILURE_UNKNOWN"+ = Prelude.Just UPDATE_FAILURE_UNKNOWN+ | (Prelude.==) k "UPDATE_FAILURE_PENDING"+ = Prelude.Just UPDATE_FAILURE_PENDING+ | (Prelude.==) k "UPDATE_FAILURE_NOT_FOUND"+ = Prelude.Just UPDATE_FAILURE_NOT_FOUND+ | (Prelude.==) k "UPDATE_FAILURE_INTERNAL_ERR"+ = Prelude.Just UPDATE_FAILURE_INTERNAL_ERR+ | (Prelude.==) k "UPDATE_FAILURE_INVALID_PARAMETER"+ = Prelude.Just UPDATE_FAILURE_INVALID_PARAMETER+ | Prelude.otherwise+ = (Prelude.>>=) (Text.Read.readMaybe k) Data.ProtoLens.maybeToEnum+instance Prelude.Bounded UpdateFailure where+ minBound = UPDATE_FAILURE_UNKNOWN+ maxBound = UPDATE_FAILURE_INVALID_PARAMETER+instance Prelude.Enum UpdateFailure where+ toEnum k__+ = Prelude.maybe+ (Prelude.error+ ((Prelude.++)+ "toEnum: unknown value for enum UpdateFailure: "+ (Prelude.show k__)))+ Prelude.id (Data.ProtoLens.maybeToEnum k__)+ fromEnum UPDATE_FAILURE_UNKNOWN = 0+ fromEnum UPDATE_FAILURE_PENDING = 1+ fromEnum UPDATE_FAILURE_NOT_FOUND = 2+ fromEnum UPDATE_FAILURE_INTERNAL_ERR = 3+ fromEnum UPDATE_FAILURE_INVALID_PARAMETER = 4+ fromEnum+ (UpdateFailure'Unrecognized (UpdateFailure'UnrecognizedValue k))+ = Prelude.fromIntegral k+ succ UPDATE_FAILURE_INVALID_PARAMETER+ = Prelude.error+ "UpdateFailure.succ: bad argument UPDATE_FAILURE_INVALID_PARAMETER. This value would be out of bounds."+ succ UPDATE_FAILURE_UNKNOWN = UPDATE_FAILURE_PENDING+ succ UPDATE_FAILURE_PENDING = UPDATE_FAILURE_NOT_FOUND+ succ UPDATE_FAILURE_NOT_FOUND = UPDATE_FAILURE_INTERNAL_ERR+ succ UPDATE_FAILURE_INTERNAL_ERR = UPDATE_FAILURE_INVALID_PARAMETER+ succ (UpdateFailure'Unrecognized _)+ = Prelude.error+ "UpdateFailure.succ: bad argument: unrecognized value"+ pred UPDATE_FAILURE_UNKNOWN+ = Prelude.error+ "UpdateFailure.pred: bad argument UPDATE_FAILURE_UNKNOWN. This value would be out of bounds."+ pred UPDATE_FAILURE_PENDING = UPDATE_FAILURE_UNKNOWN+ pred UPDATE_FAILURE_NOT_FOUND = UPDATE_FAILURE_PENDING+ pred UPDATE_FAILURE_INTERNAL_ERR = UPDATE_FAILURE_NOT_FOUND+ pred UPDATE_FAILURE_INVALID_PARAMETER = UPDATE_FAILURE_INTERNAL_ERR+ pred (UpdateFailure'Unrecognized _)+ = Prelude.error+ "UpdateFailure.pred: bad argument: unrecognized value"+ enumFrom = Data.ProtoLens.Message.Enum.messageEnumFrom+ enumFromTo = Data.ProtoLens.Message.Enum.messageEnumFromTo+ enumFromThen = Data.ProtoLens.Message.Enum.messageEnumFromThen+ enumFromThenTo = Data.ProtoLens.Message.Enum.messageEnumFromThenTo+instance Data.ProtoLens.FieldDefault UpdateFailure where+ fieldDefault = UPDATE_FAILURE_UNKNOWN+instance Control.DeepSeq.NFData UpdateFailure where+ rnf x__ = Prelude.seq x__ ()+instance Text.PrettyPrint.GenericPretty.Out UpdateFailure+{- | Fields :+ -}+data VerifyChanBackupResponse+ = VerifyChanBackupResponse'_constructor {_VerifyChanBackupResponse'_unknownFields :: !Data.ProtoLens.FieldSet}+ deriving stock (Prelude.Eq, Prelude.Ord, GHC.Generics.Generic)+instance Prelude.Show VerifyChanBackupResponse where+ showsPrec _ __x __s+ = Prelude.showChar+ '{'+ (Prelude.showString+ (Data.ProtoLens.showMessageShort __x) (Prelude.showChar '}' __s))+instance Text.PrettyPrint.GenericPretty.Out VerifyChanBackupResponse+instance Data.ProtoLens.Message VerifyChanBackupResponse where+ messageName _ = Data.Text.pack "lnrpc.VerifyChanBackupResponse"+ packedMessageDescriptor _+ = "\n\+ \\CANVerifyChanBackupResponse"+ packedFileDescriptor _ = packedFileDescriptor+ fieldsByTag = let in Data.Map.fromList []+ unknownFields+ = Lens.Family2.Unchecked.lens+ _VerifyChanBackupResponse'_unknownFields+ (\ x__ y__ -> x__ {_VerifyChanBackupResponse'_unknownFields = y__})+ defMessage+ = VerifyChanBackupResponse'_constructor+ {_VerifyChanBackupResponse'_unknownFields = []}+ parseMessage+ = let+ loop ::+ VerifyChanBackupResponse+ -> Data.ProtoLens.Encoding.Bytes.Parser VerifyChanBackupResponse+ loop x+ = do end <- Data.ProtoLens.Encoding.Bytes.atEnd+ if end then+ do (let missing = []+ in+ if Prelude.null missing then+ Prelude.return ()+ else+ Prelude.fail+ ((Prelude.++)+ "Missing required fields: "+ (Prelude.show (missing :: [Prelude.String]))))+ Prelude.return+ (Lens.Family2.over+ Data.ProtoLens.unknownFields (\ !t -> Prelude.reverse t) x)+ else+ do tag <- Data.ProtoLens.Encoding.Bytes.getVarInt+ case tag of {+ wire+ -> do !y <- Data.ProtoLens.Encoding.Wire.parseTaggedValueFromWire+ wire+ loop+ (Lens.Family2.over+ Data.ProtoLens.unknownFields (\ !t -> (:) y t) x) }+ in+ (Data.ProtoLens.Encoding.Bytes.<?>)+ (do loop Data.ProtoLens.defMessage) "VerifyChanBackupResponse"+ buildMessage+ = \ _x+ -> Data.ProtoLens.Encoding.Wire.buildFieldSet+ (Lens.Family2.view Data.ProtoLens.unknownFields _x)+instance Control.DeepSeq.NFData VerifyChanBackupResponse where+ rnf+ = \ x__+ -> Control.DeepSeq.deepseq+ (_VerifyChanBackupResponse'_unknownFields x__) ()+packedFileDescriptor :: Data.ByteString.ByteString+packedFileDescriptor+ = "\n\+ \\SIlnrpc/ln1.proto\DC2\ENQlnrpc\SUB\SIlnrpc/ln0.proto\"\RS\n\+ \\ENQSetID\DC2\NAK\n\+ \\ACKset_id\CAN\SOH \SOH(\fR\ENQsetId\"\168\SOH\n\+ \\SIAMPInvoiceState\DC2-\n\+ \\ENQstate\CAN\SOH \SOH(\SO2\ETB.lnrpc.InvoiceHTLCStateR\ENQstate\DC2!\n\+ \\fsettle_index\CAN\STX \SOH(\EOTR\vsettleIndex\DC2\US\n\+ \\vsettle_time\CAN\ETX \SOH(\ETXR\n\+ \settleTime\DC2\"\n\+ \\ramt_paid_msat\CAN\ENQ \SOH(\ETXR\vamtPaidMsat\"\195\t\n\+ \\aInvoice\DC2\DC2\n\+ \\EOTmemo\CAN\SOH \SOH(\tR\EOTmemo\DC2\GS\n\+ \\n\+ \r_preimage\CAN\ETX \SOH(\fR\trPreimage\DC2\NAK\n\+ \\ACKr_hash\CAN\EOT \SOH(\fR\ENQrHash\DC2\DC4\n\+ \\ENQvalue\CAN\ENQ \SOH(\ETXR\ENQvalue\DC2\GS\n\+ \\n\+ \value_msat\CAN\ETB \SOH(\ETXR\tvalueMsat\DC2\FS\n\+ \\asettled\CAN\ACK \SOH(\bR\asettledB\STX\CAN\SOH\DC2#\n\+ \\rcreation_date\CAN\a \SOH(\ETXR\fcreationDate\DC2\US\n\+ \\vsettle_date\CAN\b \SOH(\ETXR\n\+ \settleDate\DC2'\n\+ \\SIpayment_request\CAN\t \SOH(\tR\SOpaymentRequest\DC2)\n\+ \\DLEdescription_hash\CAN\n\+ \ \SOH(\fR\SIdescriptionHash\DC2\SYN\n\+ \\ACKexpiry\CAN\v \SOH(\ETXR\ACKexpiry\DC2#\n\+ \\rfallback_addr\CAN\f \SOH(\tR\ffallbackAddr\DC2\US\n\+ \\vcltv_expiry\CAN\r \SOH(\EOTR\n\+ \cltvExpiry\DC21\n\+ \\vroute_hints\CAN\SO \ETX(\v2\DLE.lnrpc.RouteHintR\n\+ \routeHints\DC2\CAN\n\+ \\aprivate\CAN\SI \SOH(\bR\aprivate\DC2\ESC\n\+ \\tadd_index\CAN\DLE \SOH(\EOTR\baddIndex\DC2!\n\+ \\fsettle_index\CAN\DC1 \SOH(\EOTR\vsettleIndex\DC2\GS\n\+ \\bamt_paid\CAN\DC2 \SOH(\ETXR\aamtPaidB\STX\CAN\SOH\DC2 \n\+ \\famt_paid_sat\CAN\DC3 \SOH(\ETXR\n\+ \amtPaidSat\DC2\"\n\+ \\ramt_paid_msat\CAN\DC4 \SOH(\ETXR\vamtPaidMsat\DC21\n\+ \\ENQstate\CAN\NAK \SOH(\SO2\ESC.lnrpc.Invoice.InvoiceStateR\ENQstate\DC2(\n\+ \\ENQhtlcs\CAN\SYN \ETX(\v2\DC2.lnrpc.InvoiceHTLCR\ENQhtlcs\DC28\n\+ \\bfeatures\CAN\CAN \ETX(\v2\FS.lnrpc.Invoice.FeaturesEntryR\bfeatures\DC2\GS\n\+ \\n\+ \is_keysend\CAN\EM \SOH(\bR\tisKeysend\DC2!\n\+ \\fpayment_addr\CAN\SUB \SOH(\fR\vpaymentAddr\DC2\NAK\n\+ \\ACKis_amp\CAN\ESC \SOH(\bR\ENQisAmp\DC2O\n\+ \\DC1amp_invoice_state\CAN\FS \ETX(\v2#.lnrpc.Invoice.AmpInvoiceStateEntryR\SIampInvoiceState\SUBK\n\+ \\rFeaturesEntry\DC2\DLE\n\+ \\ETXkey\CAN\SOH \SOH(\rR\ETXkey\DC2$\n\+ \\ENQvalue\CAN\STX \SOH(\v2\SO.lnrpc.FeatureR\ENQvalue:\STX8\SOH\SUBZ\n\+ \\DC4AmpInvoiceStateEntry\DC2\DLE\n\+ \\ETXkey\CAN\SOH \SOH(\tR\ETXkey\DC2,\n\+ \\ENQvalue\CAN\STX \SOH(\v2\SYN.lnrpc.AMPInvoiceStateR\ENQvalue:\STX8\SOH\"A\n\+ \\fInvoiceState\DC2\b\n\+ \\EOTOPEN\DLE\NUL\DC2\v\n\+ \\aSETTLED\DLE\SOH\DC2\f\n\+ \\bCANCELED\DLE\STX\DC2\f\n\+ \\bACCEPTED\DLE\ETXJ\EOT\b\STX\DLE\ETX\"\252\ETX\n\+ \\vInvoiceHTLC\DC2\ESC\n\+ \\achan_id\CAN\SOH \SOH(\EOTR\ACKchanIdB\STX0\SOH\DC2\GS\n\+ \\n\+ \htlc_index\CAN\STX \SOH(\EOTR\thtlcIndex\DC2\EM\n\+ \\bamt_msat\CAN\ETX \SOH(\EOTR\aamtMsat\DC2#\n\+ \\raccept_height\CAN\EOT \SOH(\ENQR\facceptHeight\DC2\US\n\+ \\vaccept_time\CAN\ENQ \SOH(\ETXR\n\+ \acceptTime\DC2!\n\+ \\fresolve_time\CAN\ACK \SOH(\ETXR\vresolveTime\DC2#\n\+ \\rexpiry_height\CAN\a \SOH(\ENQR\fexpiryHeight\DC2-\n\+ \\ENQstate\CAN\b \SOH(\SO2\ETB.lnrpc.InvoiceHTLCStateR\ENQstate\DC2L\n\+ \\SOcustom_records\CAN\t \ETX(\v2%.lnrpc.InvoiceHTLC.CustomRecordsEntryR\rcustomRecords\DC2+\n\+ \\DC2mpp_total_amt_msat\CAN\n\+ \ \SOH(\EOTR\SImppTotalAmtMsat\DC2\FS\n\+ \\ETXamp\CAN\v \SOH(\v2\n\+ \.lnrpc.AMPR\ETXamp\SUB@\n\+ \\DC2CustomRecordsEntry\DC2\DLE\n\+ \\ETXkey\CAN\SOH \SOH(\EOTR\ETXkey\DC2\DC4\n\+ \\ENQvalue\CAN\STX \SOH(\fR\ENQvalue:\STX8\SOH\"\140\SOH\n\+ \\ETXAMP\DC2\GS\n\+ \\n\+ \root_share\CAN\SOH \SOH(\fR\trootShare\DC2\NAK\n\+ \\ACKset_id\CAN\STX \SOH(\fR\ENQsetId\DC2\US\n\+ \\vchild_index\CAN\ETX \SOH(\rR\n\+ \childIndex\DC2\DC2\n\+ \\EOThash\CAN\EOT \SOH(\fR\EOThash\DC2\SUB\n\+ \\bpreimage\CAN\ENQ \SOH(\fR\bpreimage\"\148\SOH\n\+ \\DC2AddInvoiceResponse\DC2\NAK\n\+ \\ACKr_hash\CAN\SOH \SOH(\fR\ENQrHash\DC2'\n\+ \\SIpayment_request\CAN\STX \SOH(\tR\SOpaymentRequest\DC2\ESC\n\+ \\tadd_index\CAN\DLE \SOH(\EOTR\baddIndex\DC2!\n\+ \\fpayment_addr\CAN\DC1 \SOH(\fR\vpaymentAddr\"F\n\+ \\vPaymentHash\DC2 \n\+ \\n\+ \r_hash_str\CAN\SOH \SOH(\tR\brHashStrB\STX\CAN\SOH\DC2\NAK\n\+ \\ACKr_hash\CAN\STX \SOH(\fR\ENQrHash\"\160\SOH\n\+ \\DC2ListInvoiceRequest\DC2!\n\+ \\fpending_only\CAN\SOH \SOH(\bR\vpendingOnly\DC2!\n\+ \\findex_offset\CAN\EOT \SOH(\EOTR\vindexOffset\DC2(\n\+ \\DLEnum_max_invoices\CAN\ENQ \SOH(\EOTR\SOnumMaxInvoices\DC2\SUB\n\+ \\breversed\CAN\ACK \SOH(\bR\breversed\"\155\SOH\n\+ \\DC3ListInvoiceResponse\DC2*\n\+ \\binvoices\CAN\SOH \ETX(\v2\SO.lnrpc.InvoiceR\binvoices\DC2*\n\+ \\DC1last_index_offset\CAN\STX \SOH(\EOTR\SIlastIndexOffset\DC2,\n\+ \\DC2first_index_offset\CAN\ETX \SOH(\EOTR\DLEfirstIndexOffset\"U\n\+ \\DC3InvoiceSubscription\DC2\ESC\n\+ \\tadd_index\CAN\SOH \SOH(\EOTR\baddIndex\DC2!\n\+ \\fsettle_index\CAN\STX \SOH(\EOTR\vsettleIndex\"\138\ENQ\n\+ \\aPayment\DC2!\n\+ \\fpayment_hash\CAN\SOH \SOH(\tR\vpaymentHash\DC2\CAN\n\+ \\ENQvalue\CAN\STX \SOH(\ETXR\ENQvalueB\STX\CAN\SOH\DC2'\n\+ \\rcreation_date\CAN\ETX \SOH(\ETXR\fcreationDateB\STX\CAN\SOH\DC2\DC4\n\+ \\ETXfee\CAN\ENQ \SOH(\ETXR\ETXfeeB\STX\CAN\SOH\DC2)\n\+ \\DLEpayment_preimage\CAN\ACK \SOH(\tR\SIpaymentPreimage\DC2\ESC\n\+ \\tvalue_sat\CAN\a \SOH(\ETXR\bvalueSat\DC2\GS\n\+ \\n\+ \value_msat\CAN\b \SOH(\ETXR\tvalueMsat\DC2'\n\+ \\SIpayment_request\CAN\t \SOH(\tR\SOpaymentRequest\DC24\n\+ \\ACKstatus\CAN\n\+ \ \SOH(\SO2\FS.lnrpc.Payment.PaymentStatusR\ACKstatus\DC2\ETB\n\+ \\afee_sat\CAN\v \SOH(\ETXR\ACKfeeSat\DC2\EM\n\+ \\bfee_msat\CAN\f \SOH(\ETXR\afeeMsat\DC2(\n\+ \\DLEcreation_time_ns\CAN\r \SOH(\ETXR\SOcreationTimeNs\DC2(\n\+ \\ENQhtlcs\CAN\SO \ETX(\v2\DC2.lnrpc.HTLCAttemptR\ENQhtlcs\DC2#\n\+ \\rpayment_index\CAN\SI \SOH(\EOTR\fpaymentIndex\DC2B\n\+ \\SOfailure_reason\CAN\DLE \SOH(\SO2\ESC.lnrpc.PaymentFailureReasonR\rfailureReason\"F\n\+ \\rPaymentStatus\DC2\v\n\+ \\aUNKNOWN\DLE\NUL\DC2\r\n\+ \\tIN_FLIGHT\DLE\SOH\DC2\r\n\+ \\tSUCCEEDED\DLE\STX\DC2\n\+ \\n\+ \\ACKFAILED\DLE\ETXJ\EOT\b\EOT\DLE\ENQ\"\213\STX\n\+ \\vHTLCAttempt\DC2\GS\n\+ \\n\+ \attempt_id\CAN\a \SOH(\EOTR\tattemptId\DC25\n\+ \\ACKstatus\CAN\SOH \SOH(\SO2\GS.lnrpc.HTLCAttempt.HTLCStatusR\ACKstatus\DC2\"\n\+ \\ENQroute\CAN\STX \SOH(\v2\f.lnrpc.RouteR\ENQroute\DC2&\n\+ \\SIattempt_time_ns\CAN\ETX \SOH(\ETXR\rattemptTimeNs\DC2&\n\+ \\SIresolve_time_ns\CAN\EOT \SOH(\ETXR\rresolveTimeNs\DC2(\n\+ \\afailure\CAN\ENQ \SOH(\v2\SO.lnrpc.FailureR\afailure\DC2\SUB\n\+ \\bpreimage\CAN\ACK \SOH(\fR\bpreimage\"6\n\+ \\n\+ \HTLCStatus\DC2\r\n\+ \\tIN_FLIGHT\DLE\NUL\DC2\r\n\+ \\tSUCCEEDED\DLE\SOH\DC2\n\+ \\n\+ \\ACKFAILED\DLE\STX\"\166\SOH\n\+ \\DC3ListPaymentsRequest\DC2-\n\+ \\DC2include_incomplete\CAN\SOH \SOH(\bR\DC1includeIncomplete\DC2!\n\+ \\findex_offset\CAN\STX \SOH(\EOTR\vindexOffset\DC2!\n\+ \\fmax_payments\CAN\ETX \SOH(\EOTR\vmaxPayments\DC2\SUB\n\+ \\breversed\CAN\EOT \SOH(\bR\breversed\"\156\SOH\n\+ \\DC4ListPaymentsResponse\DC2*\n\+ \\bpayments\CAN\SOH \ETX(\v2\SO.lnrpc.PaymentR\bpayments\DC2,\n\+ \\DC2first_index_offset\CAN\STX \SOH(\EOTR\DLEfirstIndexOffset\DC2*\n\+ \\DC1last_index_offset\CAN\ETX \SOH(\EOTR\SIlastIndexOffset\"e\n\+ \\DC4DeletePaymentRequest\DC2!\n\+ \\fpayment_hash\CAN\SOH \SOH(\fR\vpaymentHash\DC2*\n\+ \\DC1failed_htlcs_only\CAN\STX \SOH(\bR\SIfailedHtlcsOnly\"x\n\+ \\CANDeleteAllPaymentsRequest\DC20\n\+ \\DC4failed_payments_only\CAN\SOH \SOH(\bR\DC2failedPaymentsOnly\DC2*\n\+ \\DC1failed_htlcs_only\CAN\STX \SOH(\bR\SIfailedHtlcsOnly\"\ETB\n\+ \\NAKDeletePaymentResponse\"\ESC\n\+ \\EMDeleteAllPaymentsResponse\"\191\SOH\n\+ \\NAKAbandonChannelRequest\DC28\n\+ \\rchannel_point\CAN\SOH \SOH(\v2\DC3.lnrpc.ChannelPointR\fchannelPoint\DC29\n\+ \\EMpending_funding_shim_only\CAN\STX \SOH(\bR\SYNpendingFundingShimOnly\DC21\n\+ \\SYNi_know_what_i_am_doing\CAN\ETX \SOH(\bR\DC1iKnowWhatIAmDoing\"\CAN\n\+ \\SYNAbandonChannelResponse\"F\n\+ \\DC1DebugLevelRequest\DC2\DC2\n\+ \\EOTshow\CAN\SOH \SOH(\bR\EOTshow\DC2\GS\n\+ \\n\+ \level_spec\CAN\STX \SOH(\tR\tlevelSpec\"5\n\+ \\DC2DebugLevelResponse\DC2\US\n\+ \\vsub_systems\CAN\SOH \SOH(\tR\n\+ \subSystems\"'\n\+ \\fPayReqString\DC2\ETB\n\+ \\apay_req\CAN\SOH \SOH(\tR\ACKpayReq\"\176\EOT\n\+ \\ACKPayReq\DC2 \n\+ \\vdestination\CAN\SOH \SOH(\tR\vdestination\DC2!\n\+ \\fpayment_hash\CAN\STX \SOH(\tR\vpaymentHash\DC2!\n\+ \\fnum_satoshis\CAN\ETX \SOH(\ETXR\vnumSatoshis\DC2\FS\n\+ \\ttimestamp\CAN\EOT \SOH(\ETXR\ttimestamp\DC2\SYN\n\+ \\ACKexpiry\CAN\ENQ \SOH(\ETXR\ACKexpiry\DC2 \n\+ \\vdescription\CAN\ACK \SOH(\tR\vdescription\DC2)\n\+ \\DLEdescription_hash\CAN\a \SOH(\tR\SIdescriptionHash\DC2#\n\+ \\rfallback_addr\CAN\b \SOH(\tR\ffallbackAddr\DC2\US\n\+ \\vcltv_expiry\CAN\t \SOH(\ETXR\n\+ \cltvExpiry\DC21\n\+ \\vroute_hints\CAN\n\+ \ \ETX(\v2\DLE.lnrpc.RouteHintR\n\+ \routeHints\DC2!\n\+ \\fpayment_addr\CAN\v \SOH(\fR\vpaymentAddr\DC2\EM\n\+ \\bnum_msat\CAN\f \SOH(\ETXR\anumMsat\DC27\n\+ \\bfeatures\CAN\r \ETX(\v2\ESC.lnrpc.PayReq.FeaturesEntryR\bfeatures\SUBK\n\+ \\rFeaturesEntry\DC2\DLE\n\+ \\ETXkey\CAN\SOH \SOH(\rR\ETXkey\DC2$\n\+ \\ENQvalue\CAN\STX \SOH(\v2\SO.lnrpc.FeatureR\ENQvalue:\STX8\SOH\"\DC2\n\+ \\DLEFeeReportRequest\"\179\SOH\n\+ \\DLEChannelFeeReport\DC2\ESC\n\+ \\achan_id\CAN\ENQ \SOH(\EOTR\ACKchanIdB\STX0\SOH\DC2#\n\+ \\rchannel_point\CAN\SOH \SOH(\tR\fchannelPoint\DC2\"\n\+ \\rbase_fee_msat\CAN\STX \SOH(\ETXR\vbaseFeeMsat\DC2\RS\n\+ \\vfee_per_mil\CAN\ETX \SOH(\ETXR\tfeePerMil\DC2\EM\n\+ \\bfee_rate\CAN\EOT \SOH(\SOHR\afeeRate\"\181\SOH\n\+ \\DC1FeeReportResponse\DC2:\n\+ \\fchannel_fees\CAN\SOH \ETX(\v2\ETB.lnrpc.ChannelFeeReportR\vchannelFees\DC2\RS\n\+ \\vday_fee_sum\CAN\STX \SOH(\EOTR\tdayFeeSum\DC2 \n\+ \\fweek_fee_sum\CAN\ETX \SOH(\EOTR\n\+ \weekFeeSum\DC2\"\n\+ \\rmonth_fee_sum\CAN\EOT \SOH(\EOTR\vmonthFeeSum\"\212\STX\n\+ \\DC3PolicyUpdateRequest\DC2\CAN\n\+ \\ACKglobal\CAN\SOH \SOH(\bH\NULR\ACKglobal\DC24\n\+ \\n\+ \chan_point\CAN\STX \SOH(\v2\DC3.lnrpc.ChannelPointH\NULR\tchanPoint\DC2\"\n\+ \\rbase_fee_msat\CAN\ETX \SOH(\ETXR\vbaseFeeMsat\DC2\EM\n\+ \\bfee_rate\CAN\EOT \SOH(\SOHR\afeeRate\DC2&\n\+ \\SItime_lock_delta\CAN\ENQ \SOH(\rR\rtimeLockDelta\DC2\"\n\+ \\rmax_htlc_msat\CAN\ACK \SOH(\EOTR\vmaxHtlcMsat\DC2\"\n\+ \\rmin_htlc_msat\CAN\a \SOH(\EOTR\vminHtlcMsat\DC25\n\+ \\ETBmin_htlc_msat_specified\CAN\b \SOH(\bR\DC4minHtlcMsatSpecifiedB\a\n\+ \\ENQscope\"\140\SOH\n\+ \\fFailedUpdate\DC2+\n\+ \\boutpoint\CAN\SOH \SOH(\v2\SI.lnrpc.OutPointR\boutpoint\DC2,\n\+ \\ACKreason\CAN\STX \SOH(\SO2\DC4.lnrpc.UpdateFailureR\ACKreason\DC2!\n\+ \\fupdate_error\CAN\ETX \SOH(\tR\vupdateError\"R\n\+ \\DC4PolicyUpdateResponse\DC2:\n\+ \\SOfailed_updates\CAN\SOH \ETX(\v2\DC3.lnrpc.FailedUpdateR\rfailedUpdates\"\157\SOH\n\+ \\CANForwardingHistoryRequest\DC2\GS\n\+ \\n\+ \start_time\CAN\SOH \SOH(\EOTR\tstartTime\DC2\EM\n\+ \\bend_time\CAN\STX \SOH(\EOTR\aendTime\DC2!\n\+ \\findex_offset\CAN\ETX \SOH(\rR\vindexOffset\DC2$\n\+ \\SOnum_max_events\CAN\EOT \SOH(\rR\fnumMaxEvents\"\187\STX\n\+ \\SIForwardingEvent\DC2 \n\+ \\ttimestamp\CAN\SOH \SOH(\EOTR\ttimestampB\STX\CAN\SOH\DC2 \n\+ \\n\+ \chan_id_in\CAN\STX \SOH(\EOTR\bchanIdInB\STX0\SOH\DC2\"\n\+ \\vchan_id_out\CAN\EOT \SOH(\EOTR\tchanIdOutB\STX0\SOH\DC2\NAK\n\+ \\ACKamt_in\CAN\ENQ \SOH(\EOTR\ENQamtIn\DC2\ETB\n\+ \\aamt_out\CAN\ACK \SOH(\EOTR\ACKamtOut\DC2\DLE\n\+ \\ETXfee\CAN\a \SOH(\EOTR\ETXfee\DC2\EM\n\+ \\bfee_msat\CAN\b \SOH(\EOTR\afeeMsat\DC2\RS\n\+ \\vamt_in_msat\CAN\t \SOH(\EOTR\tamtInMsat\DC2 \n\+ \\famt_out_msat\CAN\n\+ \ \SOH(\EOTR\n\+ \amtOutMsat\DC2!\n\+ \\ftimestamp_ns\CAN\v \SOH(\EOTR\vtimestampNs\"\140\SOH\n\+ \\EMForwardingHistoryResponse\DC2C\n\+ \\DC1forwarding_events\CAN\SOH \ETX(\v2\SYN.lnrpc.ForwardingEventR\DLEforwardingEvents\DC2*\n\+ \\DC1last_offset_index\CAN\STX \SOH(\rR\SIlastOffsetIndex\"P\n\+ \\SUBExportChannelBackupRequest\DC22\n\+ \\n\+ \chan_point\CAN\SOH \SOH(\v2\DC3.lnrpc.ChannelPointR\tchanPoint\"d\n\+ \\rChannelBackup\DC22\n\+ \\n\+ \chan_point\CAN\SOH \SOH(\v2\DC3.lnrpc.ChannelPointR\tchanPoint\DC2\US\n\+ \\vchan_backup\CAN\STX \SOH(\fR\n\+ \chanBackup\"s\n\+ \\SIMultiChanBackup\DC24\n\+ \\vchan_points\CAN\SOH \ETX(\v2\DC3.lnrpc.ChannelPointR\n\+ \chanPoints\DC2*\n\+ \\DC1multi_chan_backup\CAN\STX \SOH(\fR\SImultiChanBackup\"\EM\n\+ \\ETBChanBackupExportRequest\"\159\SOH\n\+ \\DC2ChanBackupSnapshot\DC2E\n\+ \\DC3single_chan_backups\CAN\SOH \SOH(\v2\NAK.lnrpc.ChannelBackupsR\DC1singleChanBackups\DC2B\n\+ \\DC1multi_chan_backup\CAN\STX \SOH(\v2\SYN.lnrpc.MultiChanBackupR\SImultiChanBackup\"I\n\+ \\SOChannelBackups\DC27\n\+ \\fchan_backups\CAN\SOH \ETX(\v2\DC4.lnrpc.ChannelBackupR\vchanBackups\"\142\SOH\n\+ \\CANRestoreChanBackupRequest\DC2:\n\+ \\fchan_backups\CAN\SOH \SOH(\v2\NAK.lnrpc.ChannelBackupsH\NULR\vchanBackups\DC2,\n\+ \\DC1multi_chan_backup\CAN\STX \SOH(\fH\NULR\SImultiChanBackupB\b\n\+ \\ACKbackup\"\ETB\n\+ \\NAKRestoreBackupResponse\"\ESC\n\+ \\EMChannelBackupSubscription\"\SUB\n\+ \\CANVerifyChanBackupResponse\"D\n\+ \\DC2MacaroonPermission\DC2\SYN\n\+ \\ACKentity\CAN\SOH \SOH(\tR\ACKentity\DC2\SYN\n\+ \\ACKaction\CAN\STX \SOH(\tR\ACKaction\"\176\SOH\n\+ \\DC3BakeMacaroonRequest\DC2;\n\+ \\vpermissions\CAN\SOH \ETX(\v2\EM.lnrpc.MacaroonPermissionR\vpermissions\DC2\RS\n\+ \\vroot_key_id\CAN\STX \SOH(\EOTR\trootKeyId\DC2<\n\+ \\SUBallow_external_permissions\CAN\ETX \SOH(\bR\CANallowExternalPermissions\"2\n\+ \\DC4BakeMacaroonResponse\DC2\SUB\n\+ \\bmacaroon\CAN\SOH \SOH(\tR\bmacaroon\"\CAN\n\+ \\SYNListMacaroonIDsRequest\";\n\+ \\ETBListMacaroonIDsResponse\DC2 \n\+ \\froot_key_ids\CAN\SOH \ETX(\EOTR\n\+ \rootKeyIds\"9\n\+ \\ETBDeleteMacaroonIDRequest\DC2\RS\n\+ \\vroot_key_id\CAN\SOH \SOH(\EOTR\trootKeyId\"4\n\+ \\CANDeleteMacaroonIDResponse\DC2\CAN\n\+ \\adeleted\CAN\SOH \SOH(\bR\adeleted\"U\n\+ \\SYNMacaroonPermissionList\DC2;\n\+ \\vpermissions\CAN\SOH \ETX(\v2\EM.lnrpc.MacaroonPermissionR\vpermissions\"\CAN\n\+ \\SYNListPermissionsRequest\"\228\SOH\n\+ \\ETBListPermissionsResponse\DC2d\n\+ \\DC2method_permissions\CAN\SOH \ETX(\v25.lnrpc.ListPermissionsResponse.MethodPermissionsEntryR\DC1methodPermissions\SUBc\n\+ \\SYNMethodPermissionsEntry\DC2\DLE\n\+ \\ETXkey\CAN\SOH \SOH(\tR\ETXkey\DC23\n\+ \\ENQvalue\CAN\STX \SOH(\v2\GS.lnrpc.MacaroonPermissionListR\ENQvalue:\STX8\SOH\"\176\b\n\+ \\aFailure\DC2.\n\+ \\EOTcode\CAN\SOH \SOH(\SO2\SUB.lnrpc.Failure.FailureCodeR\EOTcode\DC2;\n\+ \\SOchannel_update\CAN\ETX \SOH(\v2\DC4.lnrpc.ChannelUpdateR\rchannelUpdate\DC2\ESC\n\+ \\thtlc_msat\CAN\EOT \SOH(\EOTR\bhtlcMsat\DC2\"\n\+ \\ronion_sha_256\CAN\ENQ \SOH(\fR\vonionSha256\DC2\US\n\+ \\vcltv_expiry\CAN\ACK \SOH(\rR\n\+ \cltvExpiry\DC2\DC4\n\+ \\ENQflags\CAN\a \SOH(\rR\ENQflags\DC20\n\+ \\DC4failure_source_index\CAN\b \SOH(\rR\DC2failureSourceIndex\DC2\SYN\n\+ \\ACKheight\CAN\t \SOH(\rR\ACKheight\"\239\ENQ\n\+ \\vFailureCode\DC2\f\n\+ \\bRESERVED\DLE\NUL\DC2(\n\+ \$INCORRECT_OR_UNKNOWN_PAYMENT_DETAILS\DLE\SOH\DC2\FS\n\+ \\CANINCORRECT_PAYMENT_AMOUNT\DLE\STX\DC2\US\n\+ \\ESCFINAL_INCORRECT_CLTV_EXPIRY\DLE\ETX\DC2\US\n\+ \\ESCFINAL_INCORRECT_HTLC_AMOUNT\DLE\EOT\DC2\EM\n\+ \\NAKFINAL_EXPIRY_TOO_SOON\DLE\ENQ\DC2\DC1\n\+ \\rINVALID_REALM\DLE\ACK\DC2\DC3\n\+ \\SIEXPIRY_TOO_SOON\DLE\a\DC2\EM\n\+ \\NAKINVALID_ONION_VERSION\DLE\b\DC2\SYN\n\+ \\DC2INVALID_ONION_HMAC\DLE\t\DC2\NAK\n\+ \\DC1INVALID_ONION_KEY\DLE\n\+ \\DC2\CAN\n\+ \\DC4AMOUNT_BELOW_MINIMUM\DLE\v\DC2\DC4\n\+ \\DLEFEE_INSUFFICIENT\DLE\f\DC2\EM\n\+ \\NAKINCORRECT_CLTV_EXPIRY\DLE\r\DC2\DC4\n\+ \\DLECHANNEL_DISABLED\DLE\SO\DC2\GS\n\+ \\EMTEMPORARY_CHANNEL_FAILURE\DLE\SI\DC2!\n\+ \\GSREQUIRED_NODE_FEATURE_MISSING\DLE\DLE\DC2$\n\+ \ REQUIRED_CHANNEL_FEATURE_MISSING\DLE\DC1\DC2\NAK\n\+ \\DC1UNKNOWN_NEXT_PEER\DLE\DC2\DC2\SUB\n\+ \\SYNTEMPORARY_NODE_FAILURE\DLE\DC3\DC2\SUB\n\+ \\SYNPERMANENT_NODE_FAILURE\DLE\DC4\DC2\GS\n\+ \\EMPERMANENT_CHANNEL_FAILURE\DLE\NAK\DC2\DC2\n\+ \\SOEXPIRY_TOO_FAR\DLE\SYN\DC2\SI\n\+ \\vMPP_TIMEOUT\DLE\ETB\DC2\EM\n\+ \\NAKINVALID_ONION_PAYLOAD\DLE\CAN\DC2\NAK\n\+ \\DLEINTERNAL_FAILURE\DLE\229\a\DC2\DC4\n\+ \\SIUNKNOWN_FAILURE\DLE\230\a\DC2\ETB\n\+ \\DC2UNREADABLE_FAILURE\DLE\231\aJ\EOT\b\STX\DLE\ETX\"\179\ETX\n\+ \\rChannelUpdate\DC2\FS\n\+ \\tsignature\CAN\SOH \SOH(\fR\tsignature\DC2\GS\n\+ \\n\+ \chain_hash\CAN\STX \SOH(\fR\tchainHash\DC2\ESC\n\+ \\achan_id\CAN\ETX \SOH(\EOTR\ACKchanIdB\STX0\SOH\DC2\FS\n\+ \\ttimestamp\CAN\EOT \SOH(\rR\ttimestamp\DC2#\n\+ \\rmessage_flags\CAN\n\+ \ \SOH(\rR\fmessageFlags\DC2#\n\+ \\rchannel_flags\CAN\ENQ \SOH(\rR\fchannelFlags\DC2&\n\+ \\SItime_lock_delta\CAN\ACK \SOH(\rR\rtimeLockDelta\DC2*\n\+ \\DC1htlc_minimum_msat\CAN\a \SOH(\EOTR\SIhtlcMinimumMsat\DC2\EM\n\+ \\bbase_fee\CAN\b \SOH(\rR\abaseFee\DC2\EM\n\+ \\bfee_rate\CAN\t \SOH(\rR\afeeRate\DC2*\n\+ \\DC1htlc_maximum_msat\CAN\v \SOH(\EOTR\SIhtlcMaximumMsat\DC2*\n\+ \\DC1extra_opaque_data\CAN\f \SOH(\fR\SIextraOpaqueData\"]\n\+ \\n\+ \MacaroonId\DC2\DC4\n\+ \\ENQnonce\CAN\SOH \SOH(\fR\ENQnonce\DC2\FS\n\+ \\tstorageId\CAN\STX \SOH(\fR\tstorageId\DC2\ESC\n\+ \\ETXops\CAN\ETX \ETX(\v2\t.lnrpc.OpR\ETXops\"6\n\+ \\STXOp\DC2\SYN\n\+ \\ACKentity\CAN\SOH \SOH(\tR\ACKentity\DC2\CAN\n\+ \\aactions\CAN\STX \ETX(\tR\aactions\"\142\SOH\n\+ \\DC3CheckMacPermRequest\DC2\SUB\n\+ \\bmacaroon\CAN\SOH \SOH(\fR\bmacaroon\DC2;\n\+ \\vpermissions\CAN\STX \ETX(\v2\EM.lnrpc.MacaroonPermissionR\vpermissions\DC2\RS\n\+ \\n\+ \fullMethod\CAN\ETX \SOH(\tR\n\+ \fullMethod\",\n\+ \\DC4CheckMacPermResponse\DC2\DC4\n\+ \\ENQvalid\CAN\SOH \SOH(\bR\ENQvalid\"\207\STX\n\+ \\DC4RPCMiddlewareRequest\DC2\GS\n\+ \\n\+ \request_id\CAN\SOH \SOH(\EOTR\trequestId\DC2!\n\+ \\fraw_macaroon\CAN\STX \SOH(\fR\vrawMacaroon\DC26\n\+ \\ETBcustom_caveat_condition\CAN\ETX \SOH(\tR\NAKcustomCaveatCondition\DC24\n\+ \\vstream_auth\CAN\EOT \SOH(\v2\DC1.lnrpc.StreamAuthH\NULR\n\+ \streamAuth\DC2-\n\+ \\arequest\CAN\ENQ \SOH(\v2\DC1.lnrpc.RPCMessageH\NULR\arequest\DC2/\n\+ \\bresponse\CAN\ACK \SOH(\v2\DC1.lnrpc.RPCMessageH\NULR\bresponse\DC2\NAK\n\+ \\ACKmsg_id\CAN\a \SOH(\EOTR\ENQmsgIdB\DLE\n\+ \\SOintercept_type\"4\n\+ \\n\+ \StreamAuth\DC2&\n\+ \\SImethod_full_uri\CAN\SOH \SOH(\tR\rmethodFullUri\"\144\SOH\n\+ \\n\+ \RPCMessage\DC2&\n\+ \\SImethod_full_uri\CAN\SOH \SOH(\tR\rmethodFullUri\DC2\GS\n\+ \\n\+ \stream_rpc\CAN\STX \SOH(\bR\tstreamRpc\DC2\ESC\n\+ \\ttype_name\CAN\ETX \SOH(\tR\btypeName\DC2\RS\n\+ \\n\+ \serialized\CAN\EOT \SOH(\fR\n\+ \serialized\"\192\SOH\n\+ \\NAKRPCMiddlewareResponse\DC2\FS\n\+ \\n\+ \ref_msg_id\CAN\SOH \SOH(\EOTR\brefMsgId\DC2;\n\+ \\bregister\CAN\STX \SOH(\v2\GS.lnrpc.MiddlewareRegistrationH\NULR\bregister\DC26\n\+ \\bfeedback\CAN\ETX \SOH(\v2\CAN.lnrpc.InterceptFeedbackH\NULR\bfeedbackB\DC4\n\+ \\DC2middleware_message\"\166\SOH\n\+ \\SYNMiddlewareRegistration\DC2'\n\+ \\SImiddleware_name\CAN\SOH \SOH(\tR\SOmiddlewareName\DC2=\n\+ \\ESCcustom_macaroon_caveat_name\CAN\STX \SOH(\tR\CANcustomMacaroonCaveatName\DC2$\n\+ \\SOread_only_mode\CAN\ETX \SOH(\bR\freadOnlyMode\"\139\SOH\n\+ \\DC1InterceptFeedback\DC2\DC4\n\+ \\ENQerror\CAN\SOH \SOH(\tR\ENQerror\DC2)\n\+ \\DLEreplace_response\CAN\STX \SOH(\bR\SIreplaceResponse\DC25\n\+ \\SYNreplacement_serialized\CAN\ETX \SOH(\fR\NAKreplacementSerialized*;\n\+ \\DLEInvoiceHTLCState\DC2\f\n\+ \\bACCEPTED\DLE\NUL\DC2\v\n\+ \\aSETTLED\DLE\SOH\DC2\f\n\+ \\bCANCELED\DLE\STX*\217\SOH\n\+ \\DC4PaymentFailureReason\DC2\ETB\n\+ \\DC3FAILURE_REASON_NONE\DLE\NUL\DC2\SUB\n\+ \\SYNFAILURE_REASON_TIMEOUT\DLE\SOH\DC2\ESC\n\+ \\ETBFAILURE_REASON_NO_ROUTE\DLE\STX\DC2\CAN\n\+ \\DC4FAILURE_REASON_ERROR\DLE\ETX\DC2,\n\+ \(FAILURE_REASON_INCORRECT_PAYMENT_DETAILS\DLE\EOT\DC2'\n\+ \#FAILURE_REASON_INSUFFICIENT_BALANCE\DLE\ENQ*\172\SOH\n\+ \\rUpdateFailure\DC2\SUB\n\+ \\SYNUPDATE_FAILURE_UNKNOWN\DLE\NUL\DC2\SUB\n\+ \\SYNUPDATE_FAILURE_PENDING\DLE\SOH\DC2\FS\n\+ \\CANUPDATE_FAILURE_NOT_FOUND\DLE\STX\DC2\US\n\+ \\ESCUPDATE_FAILURE_INTERNAL_ERR\DLE\ETX\DC2$\n\+ \ UPDATE_FAILURE_INVALID_PARAMETER\DLE\EOTB'Z%github.com/lightningnetwork/lnd/lnrpcJ\229\206\STX\n\+ \\a\DC2\ENQ\NUL\NUL\254\t\SOH\n\+ \\b\n\+ \\SOH\f\DC2\ETX\NUL\NUL\DC2\n\+ \\t\n\+ \\STX\ETX\NUL\DC2\ETX\STX\NUL\EM\n\+ \\b\n\+ \\SOH\STX\DC2\ETX\EOT\NUL\SO\n\+ \\b\n\+ \\SOH\b\DC2\ETX\ACK\NUL<\n\+ \\t\n\+ \\STX\b\v\DC2\ETX\ACK\NUL<\n\+ \\n\+ \\n\+ \\STX\EOT\NUL\DC2\EOT\b\NUL\n\+ \\SOH\n\+ \\n\+ \\n\+ \\ETX\EOT\NUL\SOH\DC2\ETX\b\b\r\n\+ \\v\n\+ \\EOT\EOT\NUL\STX\NUL\DC2\ETX\t\EOT\NAK\n\+ \\f\n\+ \\ENQ\EOT\NUL\STX\NUL\ENQ\DC2\ETX\t\EOT\t\n\+ \\f\n\+ \\ENQ\EOT\NUL\STX\NUL\SOH\DC2\ETX\t\n\+ \\DLE\n\+ \\f\n\+ \\ENQ\EOT\NUL\STX\NUL\ETX\DC2\ETX\t\DC3\DC4\n\+ \\n\+ \\n\+ \\STX\EOT\SOH\DC2\EOT\f\NUL\CAN\SOH\n\+ \\n\+ \\n\+ \\ETX\EOT\SOH\SOH\DC2\ETX\f\b\ETB\n\+ \E\n\+ \\EOT\EOT\SOH\STX\NUL\DC2\ETX\SO\EOT\US\SUB8 The state the HTLCs associated with this setID are in.\n\+ \\n\+ \\f\n\+ \\ENQ\EOT\SOH\STX\NUL\ACK\DC2\ETX\SO\EOT\DC4\n\+ \\f\n\+ \\ENQ\EOT\SOH\STX\NUL\SOH\DC2\ETX\SO\NAK\SUB\n\+ \\f\n\+ \\ENQ\EOT\SOH\STX\NUL\ETX\DC2\ETX\SO\GS\RS\n\+ \R\n\+ \\EOT\EOT\SOH\STX\SOH\DC2\ETX\DC1\EOT\FS\SUBE The settle index of this HTLC set, if the invoice state is settled.\n\+ \\n\+ \\f\n\+ \\ENQ\EOT\SOH\STX\SOH\ENQ\DC2\ETX\DC1\EOT\n\+ \\n\+ \\f\n\+ \\ENQ\EOT\SOH\STX\SOH\SOH\DC2\ETX\DC1\v\ETB\n\+ \\f\n\+ \\ENQ\EOT\SOH\STX\SOH\ETX\DC2\ETX\DC1\SUB\ESC\n\+ \J\n\+ \\EOT\EOT\SOH\STX\STX\DC2\ETX\DC4\EOT\SUB\SUB= The time this HTLC set was settled expressed in unix epoch.\n\+ \\n\+ \\f\n\+ \\ENQ\EOT\SOH\STX\STX\ENQ\DC2\ETX\DC4\EOT\t\n\+ \\f\n\+ \\ENQ\EOT\SOH\STX\STX\SOH\DC2\ETX\DC4\n\+ \\NAK\n\+ \\f\n\+ \\ENQ\EOT\SOH\STX\STX\ETX\DC2\ETX\DC4\CAN\EM\n\+ \U\n\+ \\EOT\EOT\SOH\STX\ETX\DC2\ETX\ETB\EOT\FS\SUBH The total amount paid for the sub-invoice expressed in milli satoshis.\n\+ \\n\+ \\f\n\+ \\ENQ\EOT\SOH\STX\ETX\ENQ\DC2\ETX\ETB\EOT\t\n\+ \\f\n\+ \\ENQ\EOT\SOH\STX\ETX\SOH\DC2\ETX\ETB\n\+ \\ETB\n\+ \\f\n\+ \\ENQ\EOT\SOH\STX\ETX\ETX\DC2\ETX\ETB\SUB\ESC\n\+ \\v\n\+ \\STX\EOT\STX\DC2\ENQ\SUB\NUL\190\SOH\SOH\n\+ \\n\+ \\n\+ \\ETX\EOT\STX\SOH\DC2\ETX\SUB\b\SI\n\+ \\252\SOH\n\+ \\EOT\EOT\STX\STX\NUL\DC2\ETX!\EOT\DC4\SUB\238\SOH\n\+ \An optional memo to attach along with the invoice. Used for record keeping\n\+ \purposes for the invoice's creator, and will also be set in the description\n\+ \field of the encoded payment request if the description_hash field is not\n\+ \being used.\n\+ \\n\+ \\f\n\+ \\ENQ\EOT\STX\STX\NUL\ENQ\DC2\ETX!\EOT\n\+ \\n\+ \\f\n\+ \\ENQ\EOT\STX\STX\NUL\SOH\DC2\ETX!\v\SI\n\+ \\f\n\+ \\ENQ\EOT\STX\STX\NUL\ETX\DC2\ETX!\DC2\DC3\n\+ \\n\+ \\n\+ \\ETX\EOT\STX\t\DC2\ETX#\EOT\SI\n\+ \\v\n\+ \\EOT\EOT\STX\t\NUL\DC2\ETX#\r\SO\n\+ \\f\n\+ \\ENQ\EOT\STX\t\NUL\SOH\DC2\ETX#\r\SO\n\+ \\f\n\+ \\ENQ\EOT\STX\t\NUL\STX\DC2\ETX#\r\SO\n\+ \\174\SOH\n\+ \\EOT\EOT\STX\STX\SOH\DC2\ETX*\EOT\EM\SUB\160\SOH\n\+ \The hex-encoded preimage (32 byte) which will allow settling an incoming\n\+ \HTLC payable to this preimage. When using REST, this field must be encoded\n\+ \as base64.\n\+ \\n\+ \\f\n\+ \\ENQ\EOT\STX\STX\SOH\ENQ\DC2\ETX*\EOT\t\n\+ \\f\n\+ \\ENQ\EOT\STX\STX\SOH\SOH\DC2\ETX*\n\+ \\DC4\n\+ \\f\n\+ \\ENQ\EOT\STX\STX\SOH\ETX\DC2\ETX*\ETB\CAN\n\+ \_\n\+ \\EOT\EOT\STX\STX\STX\DC2\ETX0\EOT\NAK\SUBR\n\+ \The hash of the preimage. When using REST, this field must be encoded as\n\+ \base64.\n\+ \\n\+ \\f\n\+ \\ENQ\EOT\STX\STX\STX\ENQ\DC2\ETX0\EOT\t\n\+ \\f\n\+ \\ENQ\EOT\STX\STX\STX\SOH\DC2\ETX0\n\+ \\DLE\n\+ \\f\n\+ \\ENQ\EOT\STX\STX\STX\ETX\DC2\ETX0\DC3\DC4\n\+ \m\n\+ \\EOT\EOT\STX\STX\ETX\DC2\ETX7\EOT\DC4\SUB`\n\+ \The value of this invoice in satoshis\n\+ \\n\+ \The fields value and value_msat are mutually exclusive.\n\+ \\n\+ \\f\n\+ \\ENQ\EOT\STX\STX\ETX\ENQ\DC2\ETX7\EOT\t\n\+ \\f\n\+ \\ENQ\EOT\STX\STX\ETX\SOH\DC2\ETX7\n\+ \\SI\n\+ \\f\n\+ \\ENQ\EOT\STX\STX\ETX\ETX\DC2\ETX7\DC2\DC3\n\+ \r\n\+ \\EOT\EOT\STX\STX\EOT\DC2\ETX>\EOT\SUB\SUBe\n\+ \The value of this invoice in millisatoshis\n\+ \\n\+ \The fields value and value_msat are mutually exclusive.\n\+ \\n\+ \\f\n\+ \\ENQ\EOT\STX\STX\EOT\ENQ\DC2\ETX>\EOT\t\n\+ \\f\n\+ \\ENQ\EOT\STX\STX\EOT\SOH\DC2\ETX>\n\+ \\DC4\n\+ \\f\n\+ \\ENQ\EOT\STX\STX\EOT\ETX\DC2\ETX>\ETB\EM\n\+ \6\n\+ \\EOT\EOT\STX\STX\ENQ\DC2\ETXA\EOT)\SUB) Whether this invoice has been fulfilled\n\+ \\n\+ \\f\n\+ \\ENQ\EOT\STX\STX\ENQ\ENQ\DC2\ETXA\EOT\b\n\+ \\f\n\+ \\ENQ\EOT\STX\STX\ENQ\SOH\DC2\ETXA\t\DLE\n\+ \\f\n\+ \\ENQ\EOT\STX\STX\ENQ\ETX\DC2\ETXA\DC3\DC4\n\+ \\f\n\+ \\ENQ\EOT\STX\STX\ENQ\b\DC2\ETXA\NAK(\n\+ \\r\n\+ \\ACK\EOT\STX\STX\ENQ\b\ETX\DC2\ETXA\SYN'\n\+ \,\n\+ \\EOT\EOT\STX\STX\ACK\DC2\ETXD\EOT\FS\SUB\US When this invoice was created\n\+ \\n\+ \\f\n\+ \\ENQ\EOT\STX\STX\ACK\ENQ\DC2\ETXD\EOT\t\n\+ \\f\n\+ \\ENQ\EOT\STX\STX\ACK\SOH\DC2\ETXD\n\+ \\ETB\n\+ \\f\n\+ \\ENQ\EOT\STX\STX\ACK\ETX\DC2\ETXD\SUB\ESC\n\+ \,\n\+ \\EOT\EOT\STX\STX\a\DC2\ETXG\EOT\SUB\SUB\US When this invoice was settled\n\+ \\n\+ \\f\n\+ \\ENQ\EOT\STX\STX\a\ENQ\DC2\ETXG\EOT\t\n\+ \\f\n\+ \\ENQ\EOT\STX\STX\a\SOH\DC2\ETXG\n\+ \\NAK\n\+ \\f\n\+ \\ENQ\EOT\STX\STX\a\ETX\DC2\ETXG\CAN\EM\n\+ \\187\SOH\n\+ \\EOT\EOT\STX\STX\b\DC2\ETXN\EOT\US\SUB\173\SOH\n\+ \A bare-bones invoice for a payment within the Lightning Network. With the\n\+ \details of the invoice, the sender has all the data necessary to send a\n\+ \payment to the recipient.\n\+ \\n\+ \\f\n\+ \\ENQ\EOT\STX\STX\b\ENQ\DC2\ETXN\EOT\n\+ \\n\+ \\f\n\+ \\ENQ\EOT\STX\STX\b\SOH\DC2\ETXN\v\SUB\n\+ \\f\n\+ \\ENQ\EOT\STX\STX\b\ETX\DC2\ETXN\GS\RS\n\+ \\249\SOH\n\+ \\EOT\EOT\STX\STX\t\DC2\ETXV\EOT \SUB\235\SOH\n\+ \Hash (SHA-256) of a description of the payment. Used if the description of\n\+ \payment (memo) is too long to naturally fit within the description field\n\+ \of an encoded payment request. When using REST, this field must be encoded\n\+ \as base64.\n\+ \\n\+ \\f\n\+ \\ENQ\EOT\STX\STX\t\ENQ\DC2\ETXV\EOT\t\n\+ \\f\n\+ \\ENQ\EOT\STX\STX\t\SOH\DC2\ETXV\n\+ \\SUB\n\+ \\f\n\+ \\ENQ\EOT\STX\STX\t\ETX\DC2\ETXV\GS\US\n\+ \P\n\+ \\EOT\EOT\STX\STX\n\+ \\DC2\ETXY\EOT\SYN\SUBC Payment request expiry time in seconds. Default is 3600 (1 hour).\n\+ \\n\+ \\f\n\+ \\ENQ\EOT\STX\STX\n\+ \\ENQ\DC2\ETXY\EOT\t\n\+ \\f\n\+ \\ENQ\EOT\STX\STX\n\+ \\SOH\DC2\ETXY\n\+ \\DLE\n\+ \\f\n\+ \\ENQ\EOT\STX\STX\n\+ \\ETX\DC2\ETXY\DC3\NAK\n\+ \)\n\+ \\EOT\EOT\STX\STX\v\DC2\ETX\\\EOT\RS\SUB\FS Fallback on-chain address.\n\+ \\n\+ \\f\n\+ \\ENQ\EOT\STX\STX\v\ENQ\DC2\ETX\\\EOT\n\+ \\n\+ \\f\n\+ \\ENQ\EOT\STX\STX\v\SOH\DC2\ETX\\\v\CAN\n\+ \\f\n\+ \\ENQ\EOT\STX\STX\v\ETX\DC2\ETX\\\ESC\GS\n\+ \T\n\+ \\EOT\EOT\STX\STX\f\DC2\ETX_\EOT\FS\SUBG Delta to use for the time-lock of the CLTV extended to the final hop.\n\+ \\n\+ \\f\n\+ \\ENQ\EOT\STX\STX\f\ENQ\DC2\ETX_\EOT\n\+ \\n\+ \\f\n\+ \\ENQ\EOT\STX\STX\f\SOH\DC2\ETX_\v\SYN\n\+ \\f\n\+ \\ENQ\EOT\STX\STX\f\ETX\DC2\ETX_\EM\ESC\n\+ \n\n\+ \\EOT\EOT\STX\STX\r\DC2\ETXe\EOT(\SUBa\n\+ \Route hints that can each be individually used to assist in reaching the\n\+ \invoice's destination.\n\+ \\n\+ \\f\n\+ \\ENQ\EOT\STX\STX\r\EOT\DC2\ETXe\EOT\f\n\+ \\f\n\+ \\ENQ\EOT\STX\STX\r\ACK\DC2\ETXe\r\SYN\n\+ \\f\n\+ \\ENQ\EOT\STX\STX\r\SOH\DC2\ETXe\ETB\"\n\+ \\f\n\+ \\ENQ\EOT\STX\STX\r\ETX\DC2\ETXe%'\n\+ \V\n\+ \\EOT\EOT\STX\STX\SO\DC2\ETXh\EOT\SYN\SUBI Whether this invoice should include routing hints for private channels.\n\+ \\n\+ \\f\n\+ \\ENQ\EOT\STX\STX\SO\ENQ\DC2\ETXh\EOT\b\n\+ \\f\n\+ \\ENQ\EOT\STX\STX\SO\SOH\DC2\ETXh\t\DLE\n\+ \\f\n\+ \\ENQ\EOT\STX\STX\SO\ETX\DC2\ETXh\DC3\NAK\n\+ \\149\STX\n\+ \\EOT\EOT\STX\STX\SI\DC2\ETXp\EOT\SUB\SUB\135\STX\n\+ \The \"add\" index of this invoice. Each newly created invoice will increment\n\+ \this index making it monotonically increasing. Callers to the\n\+ \SubscribeInvoices call can use this to instantly get notified of all added\n\+ \invoices with an add_index greater than this one.\n\+ \\n\+ \\f\n\+ \\ENQ\EOT\STX\STX\SI\ENQ\DC2\ETXp\EOT\n\+ \\n\+ \\f\n\+ \\ENQ\EOT\STX\STX\SI\SOH\DC2\ETXp\v\DC4\n\+ \\f\n\+ \\ENQ\EOT\STX\STX\SI\ETX\DC2\ETXp\ETB\EM\n\+ \\157\STX\n\+ \\EOT\EOT\STX\STX\DLE\DC2\ETXx\EOT\GS\SUB\143\STX\n\+ \The \"settle\" index of this invoice. Each newly settled invoice will\n\+ \increment this index making it monotonically increasing. Callers to the\n\+ \SubscribeInvoices call can use this to instantly get notified of all\n\+ \settled invoices with an settle_index greater than this one.\n\+ \\n\+ \\f\n\+ \\ENQ\EOT\STX\STX\DLE\ENQ\DC2\ETXx\EOT\n\+ \\n\+ \\f\n\+ \\ENQ\EOT\STX\STX\DLE\SOH\DC2\ETXx\v\ETB\n\+ \\f\n\+ \\ENQ\EOT\STX\STX\DLE\ETX\DC2\ETXx\SUB\FS\n\+ \=\n\+ \\EOT\EOT\STX\STX\DC1\DC2\ETX{\EOT,\SUB0 Deprecated, use amt_paid_sat or amt_paid_msat.\n\+ \\n\+ \\f\n\+ \\ENQ\EOT\STX\STX\DC1\ENQ\DC2\ETX{\EOT\t\n\+ \\f\n\+ \\ENQ\EOT\STX\STX\DC1\SOH\DC2\ETX{\n\+ \\DC2\n\+ \\f\n\+ \\ENQ\EOT\STX\STX\DC1\ETX\DC2\ETX{\NAK\ETB\n\+ \\f\n\+ \\ENQ\EOT\STX\STX\DC1\b\DC2\ETX{\CAN+\n\+ \\r\n\+ \\ACK\EOT\STX\STX\DC1\b\ETX\DC2\ETX{\EM*\n\+ \\140\ETX\n\+ \\EOT\EOT\STX\STX\DC2\DC2\EOT\133\SOH\EOT\FS\SUB\253\STX\n\+ \The amount that was accepted for this invoice, in satoshis. This will ONLY\n\+ \be set if this invoice has been settled. We provide this field as if the\n\+ \invoice was created with a zero value, then we need to record what amount\n\+ \was ultimately accepted. Additionally, it's possible that the sender paid\n\+ \MORE that was specified in the original invoice. So we'll record that here\n\+ \as well.\n\+ \\n\+ \\r\n\+ \\ENQ\EOT\STX\STX\DC2\ENQ\DC2\EOT\133\SOH\EOT\t\n\+ \\r\n\+ \\ENQ\EOT\STX\STX\DC2\SOH\DC2\EOT\133\SOH\n\+ \\SYN\n\+ \\r\n\+ \\ENQ\EOT\STX\STX\DC2\ETX\DC2\EOT\133\SOH\EM\ESC\n\+ \\145\ETX\n\+ \\EOT\EOT\STX\STX\DC3\DC2\EOT\143\SOH\EOT\GS\SUB\130\ETX\n\+ \The amount that was accepted for this invoice, in millisatoshis. This will\n\+ \ONLY be set if this invoice has been settled. We provide this field as if\n\+ \the invoice was created with a zero value, then we need to record what\n\+ \amount was ultimately accepted. Additionally, it's possible that the sender\n\+ \paid MORE that was specified in the original invoice. So we'll record that\n\+ \here as well.\n\+ \\n\+ \\r\n\+ \\ENQ\EOT\STX\STX\DC3\ENQ\DC2\EOT\143\SOH\EOT\t\n\+ \\r\n\+ \\ENQ\EOT\STX\STX\DC3\SOH\DC2\EOT\143\SOH\n\+ \\ETB\n\+ \\r\n\+ \\ENQ\EOT\STX\STX\DC3\ETX\DC2\EOT\143\SOH\SUB\FS\n\+ \\SO\n\+ \\EOT\EOT\STX\EOT\NUL\DC2\ACK\145\SOH\EOT\150\SOH\ENQ\n\+ \\r\n\+ \\ENQ\EOT\STX\EOT\NUL\SOH\DC2\EOT\145\SOH\t\NAK\n\+ \\SO\n\+ \\ACK\EOT\STX\EOT\NUL\STX\NUL\DC2\EOT\146\SOH\b\DC1\n\+ \\SI\n\+ \\a\EOT\STX\EOT\NUL\STX\NUL\SOH\DC2\EOT\146\SOH\b\f\n\+ \\SI\n\+ \\a\EOT\STX\EOT\NUL\STX\NUL\STX\DC2\EOT\146\SOH\SI\DLE\n\+ \\SO\n\+ \\ACK\EOT\STX\EOT\NUL\STX\SOH\DC2\EOT\147\SOH\b\DC4\n\+ \\SI\n\+ \\a\EOT\STX\EOT\NUL\STX\SOH\SOH\DC2\EOT\147\SOH\b\SI\n\+ \\SI\n\+ \\a\EOT\STX\EOT\NUL\STX\SOH\STX\DC2\EOT\147\SOH\DC2\DC3\n\+ \\SO\n\+ \\ACK\EOT\STX\EOT\NUL\STX\STX\DC2\EOT\148\SOH\b\NAK\n\+ \\SI\n\+ \\a\EOT\STX\EOT\NUL\STX\STX\SOH\DC2\EOT\148\SOH\b\DLE\n\+ \\SI\n\+ \\a\EOT\STX\EOT\NUL\STX\STX\STX\DC2\EOT\148\SOH\DC3\DC4\n\+ \\SO\n\+ \\ACK\EOT\STX\EOT\NUL\STX\ETX\DC2\EOT\149\SOH\b\NAK\n\+ \\SI\n\+ \\a\EOT\STX\EOT\NUL\STX\ETX\SOH\DC2\EOT\149\SOH\b\DLE\n\+ \\SI\n\+ \\a\EOT\STX\EOT\NUL\STX\ETX\STX\DC2\EOT\149\SOH\DC3\DC4\n\+ \,\n\+ \\EOT\EOT\STX\STX\DC4\DC2\EOT\155\SOH\EOT\FS\SUB\RS\n\+ \The state the invoice is in.\n\+ \\n\+ \\r\n\+ \\ENQ\EOT\STX\STX\DC4\ACK\DC2\EOT\155\SOH\EOT\DLE\n\+ \\r\n\+ \\ENQ\EOT\STX\STX\DC4\SOH\DC2\EOT\155\SOH\DC1\SYN\n\+ \\r\n\+ \\ENQ\EOT\STX\STX\DC4\ETX\DC2\EOT\155\SOH\EM\ESC\n\+ \D\n\+ \\EOT\EOT\STX\STX\NAK\DC2\EOT\158\SOH\EOT$\SUB6 List of HTLCs paying to this invoice [EXPERIMENTAL].\n\+ \\n\+ \\r\n\+ \\ENQ\EOT\STX\STX\NAK\EOT\DC2\EOT\158\SOH\EOT\f\n\+ \\r\n\+ \\ENQ\EOT\STX\STX\NAK\ACK\DC2\EOT\158\SOH\r\CAN\n\+ \\r\n\+ \\ENQ\EOT\STX\STX\NAK\SOH\DC2\EOT\158\SOH\EM\RS\n\+ \\r\n\+ \\ENQ\EOT\STX\STX\NAK\ETX\DC2\EOT\158\SOH!#\n\+ \;\n\+ \\EOT\EOT\STX\STX\SYN\DC2\EOT\161\SOH\EOT'\SUB- List of features advertised on the invoice.\n\+ \\n\+ \\r\n\+ \\ENQ\EOT\STX\STX\SYN\ACK\DC2\EOT\161\SOH\EOT\CAN\n\+ \\r\n\+ \\ENQ\EOT\STX\STX\SYN\SOH\DC2\EOT\161\SOH\EM!\n\+ \\r\n\+ \\ENQ\EOT\STX\STX\SYN\ETX\DC2\EOT\161\SOH$&\n\+ \l\n\+ \\EOT\EOT\STX\STX\ETB\DC2\EOT\167\SOH\EOT\EM\SUB^\n\+ \Indicates if this invoice was a spontaneous payment that arrived via keysend\n\+ \[EXPERIMENTAL].\n\+ \\n\+ \\r\n\+ \\ENQ\EOT\STX\STX\ETB\ENQ\DC2\EOT\167\SOH\EOT\b\n\+ \\r\n\+ \\ENQ\EOT\STX\STX\ETB\SOH\DC2\EOT\167\SOH\t\DC3\n\+ \\r\n\+ \\ENQ\EOT\STX\STX\ETB\ETX\DC2\EOT\167\SOH\SYN\CAN\n\+ \\189\SOH\n\+ \\EOT\EOT\STX\STX\CAN\DC2\EOT\174\SOH\EOT\FS\SUB\174\SOH\n\+ \The payment address of this invoice. This value will be used in MPP\n\+ \payments, and also for newer invoices that always require the MPP payload\n\+ \for added end-to-end security.\n\+ \\n\+ \\r\n\+ \\ENQ\EOT\STX\STX\CAN\ENQ\DC2\EOT\174\SOH\EOT\t\n\+ \\r\n\+ \\ENQ\EOT\STX\STX\CAN\SOH\DC2\EOT\174\SOH\n\+ \\SYN\n\+ \\r\n\+ \\ENQ\EOT\STX\STX\CAN\ETX\DC2\EOT\174\SOH\EM\ESC\n\+ \>\n\+ \\EOT\EOT\STX\STX\EM\DC2\EOT\179\SOH\EOT\NAK\SUB0\n\+ \Signals whether or not this is an AMP invoice.\n\+ \\n\+ \\r\n\+ \\ENQ\EOT\STX\STX\EM\ENQ\DC2\EOT\179\SOH\EOT\b\n\+ \\r\n\+ \\ENQ\EOT\STX\STX\EM\SOH\DC2\EOT\179\SOH\t\SI\n\+ \\r\n\+ \\ENQ\EOT\STX\STX\EM\ETX\DC2\EOT\179\SOH\DC2\DC4\n\+ \\143\STX\n\+ \\EOT\EOT\STX\STX\SUB\DC2\EOT\189\SOH\EOT8\SUB\128\STX\n\+ \[EXPERIMENTAL]:\n\+ \\n\+ \Maps a 32-byte hex-encoded set ID to the sub-invoice AMP state for the\n\+ \given set ID. This field is always populated for AMP invoices, and can be\n\+ \used along side LookupInvoice to obtain the HTLC information related to a\n\+ \given sub-invoice.\n\+ \\n\+ \\r\n\+ \\ENQ\EOT\STX\STX\SUB\ACK\DC2\EOT\189\SOH\EOT \n\+ \\r\n\+ \\ENQ\EOT\STX\STX\SUB\SOH\DC2\EOT\189\SOH!2\n\+ \\r\n\+ \\ENQ\EOT\STX\STX\SUB\ETX\DC2\EOT\189\SOH57\n\+ \\f\n\+ \\STX\ENQ\NUL\DC2\ACK\192\SOH\NUL\196\SOH\SOH\n\+ \\v\n\+ \\ETX\ENQ\NUL\SOH\DC2\EOT\192\SOH\ENQ\NAK\n\+ \\f\n\+ \\EOT\ENQ\NUL\STX\NUL\DC2\EOT\193\SOH\EOT\DC1\n\+ \\r\n\+ \\ENQ\ENQ\NUL\STX\NUL\SOH\DC2\EOT\193\SOH\EOT\f\n\+ \\r\n\+ \\ENQ\ENQ\NUL\STX\NUL\STX\DC2\EOT\193\SOH\SI\DLE\n\+ \\f\n\+ \\EOT\ENQ\NUL\STX\SOH\DC2\EOT\194\SOH\EOT\DLE\n\+ \\r\n\+ \\ENQ\ENQ\NUL\STX\SOH\SOH\DC2\EOT\194\SOH\EOT\v\n\+ \\r\n\+ \\ENQ\ENQ\NUL\STX\SOH\STX\DC2\EOT\194\SOH\SO\SI\n\+ \\f\n\+ \\EOT\ENQ\NUL\STX\STX\DC2\EOT\195\SOH\EOT\DC1\n\+ \\r\n\+ \\ENQ\ENQ\NUL\STX\STX\SOH\DC2\EOT\195\SOH\EOT\f\n\+ \\r\n\+ \\ENQ\ENQ\NUL\STX\STX\STX\DC2\EOT\195\SOH\SI\DLE\n\+ \:\n\+ \\STX\EOT\ETX\DC2\ACK\199\SOH\NUL\232\SOH\SOH\SUB, Details of an HTLC that paid to an invoice\n\+ \\n\+ \\v\n\+ \\ETX\EOT\ETX\SOH\DC2\EOT\199\SOH\b\DC3\n\+ \B\n\+ \\EOT\EOT\ETX\STX\NUL\DC2\EOT\201\SOH\EOT,\SUB4 Short channel id over which the htlc was received.\n\+ \\n\+ \\r\n\+ \\ENQ\EOT\ETX\STX\NUL\ENQ\DC2\EOT\201\SOH\EOT\n\+ \\n\+ \\r\n\+ \\ENQ\EOT\ETX\STX\NUL\SOH\DC2\EOT\201\SOH\v\DC2\n\+ \\r\n\+ \\ENQ\EOT\ETX\STX\NUL\ETX\DC2\EOT\201\SOH\NAK\SYN\n\+ \\r\n\+ \\ENQ\EOT\ETX\STX\NUL\b\DC2\EOT\201\SOH\ETB+\n\+ \\SO\n\+ \\ACK\EOT\ETX\STX\NUL\b\ACK\DC2\EOT\201\SOH\CAN*\n\+ \:\n\+ \\EOT\EOT\ETX\STX\SOH\DC2\EOT\204\SOH\EOT\SUB\SUB, Index identifying the htlc on the channel.\n\+ \\n\+ \\r\n\+ \\ENQ\EOT\ETX\STX\SOH\ENQ\DC2\EOT\204\SOH\EOT\n\+ \\n\+ \\r\n\+ \\ENQ\EOT\ETX\STX\SOH\SOH\DC2\EOT\204\SOH\v\NAK\n\+ \\r\n\+ \\ENQ\EOT\ETX\STX\SOH\ETX\DC2\EOT\204\SOH\CAN\EM\n\+ \/\n\+ \\EOT\EOT\ETX\STX\STX\DC2\EOT\207\SOH\EOT\CAN\SUB! The amount of the htlc in msat.\n\+ \\n\+ \\r\n\+ \\ENQ\EOT\ETX\STX\STX\ENQ\DC2\EOT\207\SOH\EOT\n\+ \\n\+ \\r\n\+ \\ENQ\EOT\ETX\STX\STX\SOH\DC2\EOT\207\SOH\v\DC3\n\+ \\r\n\+ \\ENQ\EOT\ETX\STX\STX\ETX\DC2\EOT\207\SOH\SYN\ETB\n\+ \=\n\+ \\EOT\EOT\ETX\STX\ETX\DC2\EOT\210\SOH\EOT\FS\SUB/ Block height at which this htlc was accepted.\n\+ \\n\+ \\r\n\+ \\ENQ\EOT\ETX\STX\ETX\ENQ\DC2\EOT\210\SOH\EOT\t\n\+ \\r\n\+ \\ENQ\EOT\ETX\STX\ETX\SOH\DC2\EOT\210\SOH\n\+ \\ETB\n\+ \\r\n\+ \\ENQ\EOT\ETX\STX\ETX\ETX\DC2\EOT\210\SOH\SUB\ESC\n\+ \5\n\+ \\EOT\EOT\ETX\STX\EOT\DC2\EOT\213\SOH\EOT\SUB\SUB' Time at which this htlc was accepted.\n\+ \\n\+ \\r\n\+ \\ENQ\EOT\ETX\STX\EOT\ENQ\DC2\EOT\213\SOH\EOT\t\n\+ \\r\n\+ \\ENQ\EOT\ETX\STX\EOT\SOH\DC2\EOT\213\SOH\n\+ \\NAK\n\+ \\r\n\+ \\ENQ\EOT\ETX\STX\EOT\ETX\DC2\EOT\213\SOH\CAN\EM\n\+ \@\n\+ \\EOT\EOT\ETX\STX\ENQ\DC2\EOT\216\SOH\EOT\ESC\SUB2 Time at which this htlc was settled or canceled.\n\+ \\n\+ \\r\n\+ \\ENQ\EOT\ETX\STX\ENQ\ENQ\DC2\EOT\216\SOH\EOT\t\n\+ \\r\n\+ \\ENQ\EOT\ETX\STX\ENQ\SOH\DC2\EOT\216\SOH\n\+ \\SYN\n\+ \\r\n\+ \\ENQ\EOT\ETX\STX\ENQ\ETX\DC2\EOT\216\SOH\EM\SUB\n\+ \8\n\+ \\EOT\EOT\ETX\STX\ACK\DC2\EOT\219\SOH\EOT\FS\SUB* Block height at which this htlc expires.\n\+ \\n\+ \\r\n\+ \\ENQ\EOT\ETX\STX\ACK\ENQ\DC2\EOT\219\SOH\EOT\t\n\+ \\r\n\+ \\ENQ\EOT\ETX\STX\ACK\SOH\DC2\EOT\219\SOH\n\+ \\ETB\n\+ \\r\n\+ \\ENQ\EOT\ETX\STX\ACK\ETX\DC2\EOT\219\SOH\SUB\ESC\n\+ \-\n\+ \\EOT\EOT\ETX\STX\a\DC2\EOT\222\SOH\EOT\US\SUB\US Current state the htlc is in.\n\+ \\n\+ \\r\n\+ \\ENQ\EOT\ETX\STX\a\ACK\DC2\EOT\222\SOH\EOT\DC4\n\+ \\r\n\+ \\ENQ\EOT\ETX\STX\a\SOH\DC2\EOT\222\SOH\NAK\SUB\n\+ \\r\n\+ \\ENQ\EOT\ETX\STX\a\ETX\DC2\EOT\222\SOH\GS\RS\n\+ \#\n\+ \\EOT\EOT\ETX\STX\b\DC2\EOT\225\SOH\EOT*\SUB\NAK Custom tlv records.\n\+ \\n\+ \\r\n\+ \\ENQ\EOT\ETX\STX\b\ACK\DC2\EOT\225\SOH\EOT\SYN\n\+ \\r\n\+ \\ENQ\EOT\ETX\STX\b\SOH\DC2\EOT\225\SOH\ETB%\n\+ \\r\n\+ \\ENQ\EOT\ETX\STX\b\ETX\DC2\EOT\225\SOH()\n\+ \<\n\+ \\EOT\EOT\ETX\STX\t\DC2\EOT\228\SOH\EOT#\SUB. The total amount of the mpp payment in msat.\n\+ \\n\+ \\r\n\+ \\ENQ\EOT\ETX\STX\t\ENQ\DC2\EOT\228\SOH\EOT\n\+ \\n\+ \\r\n\+ \\ENQ\EOT\ETX\STX\t\SOH\DC2\EOT\228\SOH\v\GS\n\+ \\r\n\+ \\ENQ\EOT\ETX\STX\t\ETX\DC2\EOT\228\SOH \"\n\+ \U\n\+ \\EOT\EOT\ETX\STX\n\+ \\DC2\EOT\231\SOH\EOT\DC1\SUBG Details relevant to AMP HTLCs, only populated if this is an AMP HTLC.\n\+ \\n\+ \\r\n\+ \\ENQ\EOT\ETX\STX\n\+ \\ACK\DC2\EOT\231\SOH\EOT\a\n\+ \\r\n\+ \\ENQ\EOT\ETX\STX\n\+ \\SOH\DC2\EOT\231\SOH\b\v\n\+ \\r\n\+ \\ENQ\EOT\ETX\STX\n\+ \\ETX\DC2\EOT\231\SOH\SO\DLE\n\+ \.\n\+ \\STX\EOT\EOT\DC2\ACK\235\SOH\NUL\254\SOH\SOH\SUB Details specific to AMP HTLCs.\n\+ \\n\+ \\v\n\+ \\ETX\EOT\EOT\SOH\DC2\EOT\235\SOH\b\v\n\+ \s\n\+ \\EOT\EOT\EOT\STX\NUL\DC2\EOT\238\SOH\EOT\EM\SUBe An n-of-n secret share of the root seed from which child payment hashes\n\+ \ and preimages are derived.\n\+ \\n\+ \\r\n\+ \\ENQ\EOT\EOT\STX\NUL\ENQ\DC2\EOT\238\SOH\EOT\t\n\+ \\r\n\+ \\ENQ\EOT\EOT\STX\NUL\SOH\DC2\EOT\238\SOH\n\+ \\DC4\n\+ \\r\n\+ \\ENQ\EOT\EOT\STX\NUL\ETX\DC2\EOT\238\SOH\ETB\CAN\n\+ \I\n\+ \\EOT\EOT\EOT\STX\SOH\DC2\EOT\241\SOH\EOT\NAK\SUB; An identifier for the HTLC set that this HTLC belongs to.\n\+ \\n\+ \\r\n\+ \\ENQ\EOT\EOT\STX\SOH\ENQ\DC2\EOT\241\SOH\EOT\t\n\+ \\r\n\+ \\ENQ\EOT\EOT\STX\SOH\SOH\DC2\EOT\241\SOH\n\+ \\DLE\n\+ \\r\n\+ \\ENQ\EOT\EOT\STX\SOH\ETX\DC2\EOT\241\SOH\DC3\DC4\n\+ \e\n\+ \\EOT\EOT\EOT\STX\STX\DC2\EOT\245\SOH\EOT\ESC\SUBW A nonce used to randomize the child preimage and child hash from a given\n\+ \ root_share.\n\+ \\n\+ \\r\n\+ \\ENQ\EOT\EOT\STX\STX\ENQ\DC2\EOT\245\SOH\EOT\n\+ \\n\+ \\r\n\+ \\ENQ\EOT\EOT\STX\STX\SOH\DC2\EOT\245\SOH\v\SYN\n\+ \\r\n\+ \\ENQ\EOT\EOT\STX\STX\ETX\DC2\EOT\245\SOH\EM\SUB\n\+ \1\n\+ \\EOT\EOT\EOT\STX\ETX\DC2\EOT\248\SOH\EOT\DC3\SUB# The payment hash of the AMP HTLC.\n\+ \\n\+ \\r\n\+ \\ENQ\EOT\EOT\STX\ETX\ENQ\DC2\EOT\248\SOH\EOT\t\n\+ \\r\n\+ \\ENQ\EOT\EOT\STX\ETX\SOH\DC2\EOT\248\SOH\n\+ \\SO\n\+ \\r\n\+ \\ENQ\EOT\EOT\STX\ETX\ETX\DC2\EOT\248\SOH\DC1\DC2\n\+ \\163\SOH\n\+ \\EOT\EOT\EOT\STX\EOT\DC2\EOT\253\SOH\EOT\ETB\SUB\148\SOH The preimage used to settle this AMP htlc. This field will only be\n\+ \ populated if the invoice is in InvoiceState_ACCEPTED or\n\+ \ InvoiceState_SETTLED.\n\+ \\n\+ \\r\n\+ \\ENQ\EOT\EOT\STX\EOT\ENQ\DC2\EOT\253\SOH\EOT\t\n\+ \\r\n\+ \\ENQ\EOT\EOT\STX\EOT\SOH\DC2\EOT\253\SOH\n\+ \\DC2\n\+ \\r\n\+ \\ENQ\EOT\EOT\STX\EOT\ETX\DC2\EOT\253\SOH\NAK\SYN\n\+ \\f\n\+ \\STX\EOT\ENQ\DC2\ACK\128\STX\NUL\152\STX\SOH\n\+ \\v\n\+ \\ETX\EOT\ENQ\SOH\DC2\EOT\128\STX\b\SUB\n\+ \\f\n\+ \\EOT\EOT\ENQ\STX\NUL\DC2\EOT\129\STX\EOT\NAK\n\+ \\r\n\+ \\ENQ\EOT\ENQ\STX\NUL\ENQ\DC2\EOT\129\STX\EOT\t\n\+ \\r\n\+ \\ENQ\EOT\ENQ\STX\NUL\SOH\DC2\EOT\129\STX\n\+ \\DLE\n\+ \\r\n\+ \\ENQ\EOT\ENQ\STX\NUL\ETX\DC2\EOT\129\STX\DC3\DC4\n\+ \\188\SOH\n\+ \\EOT\EOT\ENQ\STX\SOH\DC2\EOT\136\STX\EOT\US\SUB\173\SOH\n\+ \A bare-bones invoice for a payment within the Lightning Network. With the\n\+ \details of the invoice, the sender has all the data necessary to send a\n\+ \payment to the recipient.\n\+ \\n\+ \\r\n\+ \\ENQ\EOT\ENQ\STX\SOH\ENQ\DC2\EOT\136\STX\EOT\n\+ \\n\+ \\r\n\+ \\ENQ\EOT\ENQ\STX\SOH\SOH\DC2\EOT\136\STX\v\SUB\n\+ \\r\n\+ \\ENQ\EOT\ENQ\STX\SOH\ETX\DC2\EOT\136\STX\GS\RS\n\+ \\150\STX\n\+ \\EOT\EOT\ENQ\STX\STX\DC2\EOT\144\STX\EOT\SUB\SUB\135\STX\n\+ \The \"add\" index of this invoice. Each newly created invoice will increment\n\+ \this index making it monotonically increasing. Callers to the\n\+ \SubscribeInvoices call can use this to instantly get notified of all added\n\+ \invoices with an add_index greater than this one.\n\+ \\n\+ \\r\n\+ \\ENQ\EOT\ENQ\STX\STX\ENQ\DC2\EOT\144\STX\EOT\n\+ \\n\+ \\r\n\+ \\ENQ\EOT\ENQ\STX\STX\SOH\DC2\EOT\144\STX\v\DC4\n\+ \\r\n\+ \\ENQ\EOT\ENQ\STX\STX\ETX\DC2\EOT\144\STX\ETB\EM\n\+ \\163\SOH\n\+ \\EOT\EOT\ENQ\STX\ETX\DC2\EOT\151\STX\EOT\FS\SUB\148\SOH\n\+ \The payment address of the generated invoice. This value should be used\n\+ \in all payments for this invoice as we require it for end to end\n\+ \security.\n\+ \\n\+ \\r\n\+ \\ENQ\EOT\ENQ\STX\ETX\ENQ\DC2\EOT\151\STX\EOT\t\n\+ \\r\n\+ \\ENQ\EOT\ENQ\STX\ETX\SOH\DC2\EOT\151\STX\n\+ \\SYN\n\+ \\r\n\+ \\ENQ\EOT\ENQ\STX\ETX\ETX\DC2\EOT\151\STX\EM\ESC\n\+ \\f\n\+ \\STX\EOT\ACK\DC2\ACK\153\STX\NUL\167\STX\SOH\n\+ \\v\n\+ \\ETX\EOT\ACK\SOH\DC2\EOT\153\STX\b\DC3\n\+ \\238\SOH\n\+ \\EOT\EOT\ACK\STX\NUL\DC2\EOT\160\STX\EOT.\SUB\223\SOH\n\+ \The hex-encoded payment hash of the invoice to be looked up. The passed\n\+ \payment hash must be exactly 32 bytes, otherwise an error is returned.\n\+ \Deprecated now that the REST gateway supports base64 encoding of bytes\n\+ \fields.\n\+ \\n\+ \\r\n\+ \\ENQ\EOT\ACK\STX\NUL\ENQ\DC2\EOT\160\STX\EOT\n\+ \\n\+ \\r\n\+ \\ENQ\EOT\ACK\STX\NUL\SOH\DC2\EOT\160\STX\v\NAK\n\+ \\r\n\+ \\ENQ\EOT\ACK\STX\NUL\ETX\DC2\EOT\160\STX\CAN\EM\n\+ \\r\n\+ \\ENQ\EOT\ACK\STX\NUL\b\DC2\EOT\160\STX\SUB-\n\+ \\SO\n\+ \\ACK\EOT\ACK\STX\NUL\b\ETX\DC2\EOT\160\STX\ESC,\n\+ \w\n\+ \\EOT\EOT\ACK\STX\SOH\DC2\EOT\166\STX\EOT\NAK\SUBi\n\+ \The payment hash of the invoice to be looked up. When using REST, this field\n\+ \must be encoded as base64.\n\+ \\n\+ \\r\n\+ \\ENQ\EOT\ACK\STX\SOH\ENQ\DC2\EOT\166\STX\EOT\t\n\+ \\r\n\+ \\ENQ\EOT\ACK\STX\SOH\SOH\DC2\EOT\166\STX\n\+ \\DLE\n\+ \\r\n\+ \\ENQ\EOT\ACK\STX\SOH\ETX\DC2\EOT\166\STX\DC3\DC4\n\+ \\f\n\+ \\STX\EOT\a\DC2\ACK\169\STX\NUL\190\STX\SOH\n\+ \\v\n\+ \\ETX\EOT\a\SOH\DC2\EOT\169\STX\b\SUB\n\+ \m\n\+ \\EOT\EOT\a\STX\NUL\DC2\EOT\174\STX\EOT\SUB\SUB_\n\+ \If set, only invoices that are not settled and not canceled will be returned\n\+ \in the response.\n\+ \\n\+ \\r\n\+ \\ENQ\EOT\a\STX\NUL\ENQ\DC2\EOT\174\STX\EOT\b\n\+ \\r\n\+ \\ENQ\EOT\a\STX\NUL\SOH\DC2\EOT\174\STX\t\NAK\n\+ \\r\n\+ \\ENQ\EOT\a\STX\NUL\ETX\DC2\EOT\174\STX\CAN\EM\n\+ \\160\SOH\n\+ \\EOT\EOT\a\STX\SOH\DC2\EOT\180\STX\EOT\FS\SUB\145\SOH\n\+ \The index of an invoice that will be used as either the start or end of a\n\+ \query to determine which invoices should be returned in the response.\n\+ \\n\+ \\r\n\+ \\ENQ\EOT\a\STX\SOH\ENQ\DC2\EOT\180\STX\EOT\n\+ \\n\+ \\r\n\+ \\ENQ\EOT\a\STX\SOH\SOH\DC2\EOT\180\STX\v\ETB\n\+ \\r\n\+ \\ENQ\EOT\a\STX\SOH\ETX\DC2\EOT\180\STX\SUB\ESC\n\+ \S\n\+ \\EOT\EOT\a\STX\STX\DC2\EOT\183\STX\EOT \SUBE The max number of invoices to return in the response to this query.\n\+ \\n\+ \\r\n\+ \\ENQ\EOT\a\STX\STX\ENQ\DC2\EOT\183\STX\EOT\n\+ \\n\+ \\r\n\+ \\ENQ\EOT\a\STX\STX\SOH\DC2\EOT\183\STX\v\ESC\n\+ \\r\n\+ \\ENQ\EOT\a\STX\STX\ETX\DC2\EOT\183\STX\RS\US\n\+ \\154\SOH\n\+ \\EOT\EOT\a\STX\ETX\DC2\EOT\189\STX\EOT\SYN\SUB\139\SOH\n\+ \If set, the invoices returned will result from seeking backwards from the\n\+ \specified index offset. This can be used to paginate backwards.\n\+ \\n\+ \\r\n\+ \\ENQ\EOT\a\STX\ETX\ENQ\DC2\EOT\189\STX\EOT\b\n\+ \\r\n\+ \\ENQ\EOT\a\STX\ETX\SOH\DC2\EOT\189\STX\t\DC1\n\+ \\r\n\+ \\ENQ\EOT\a\STX\ETX\ETX\DC2\EOT\189\STX\DC4\NAK\n\+ \\f\n\+ \\STX\EOT\b\DC2\ACK\191\STX\NUL\209\STX\SOH\n\+ \\v\n\+ \\ETX\EOT\b\SOH\DC2\EOT\191\STX\b\ESC\n\+ \c\n\+ \\EOT\EOT\b\STX\NUL\DC2\EOT\196\STX\EOT\"\SUBU\n\+ \A list of invoices from the time slice of the time series specified in the\n\+ \request.\n\+ \\n\+ \\r\n\+ \\ENQ\EOT\b\STX\NUL\EOT\DC2\EOT\196\STX\EOT\f\n\+ \\r\n\+ \\ENQ\EOT\b\STX\NUL\ACK\DC2\EOT\196\STX\r\DC4\n\+ \\r\n\+ \\ENQ\EOT\b\STX\NUL\SOH\DC2\EOT\196\STX\NAK\GS\n\+ \\r\n\+ \\ENQ\EOT\b\STX\NUL\ETX\DC2\EOT\196\STX !\n\+ \\DEL\n\+ \\EOT\EOT\b\STX\SOH\DC2\EOT\202\STX\EOT!\SUBq\n\+ \The index of the last item in the set of returned invoices. This can be used\n\+ \to seek further, pagination style.\n\+ \\n\+ \\r\n\+ \\ENQ\EOT\b\STX\SOH\ENQ\DC2\EOT\202\STX\EOT\n\+ \\n\+ \\r\n\+ \\ENQ\EOT\b\STX\SOH\SOH\DC2\EOT\202\STX\v\FS\n\+ \\r\n\+ \\ENQ\EOT\b\STX\SOH\ETX\DC2\EOT\202\STX\US \n\+ \\129\SOH\n\+ \\EOT\EOT\b\STX\STX\DC2\EOT\208\STX\EOT\"\SUBs\n\+ \The index of the last item in the set of returned invoices. This can be used\n\+ \to seek backwards, pagination style.\n\+ \\n\+ \\r\n\+ \\ENQ\EOT\b\STX\STX\ENQ\DC2\EOT\208\STX\EOT\n\+ \\n\+ \\r\n\+ \\ENQ\EOT\b\STX\STX\SOH\DC2\EOT\208\STX\v\GS\n\+ \\r\n\+ \\ENQ\EOT\b\STX\STX\ETX\DC2\EOT\208\STX !\n\+ \\f\n\+ \\STX\EOT\t\DC2\ACK\211\STX\NUL\227\STX\SOH\n\+ \\v\n\+ \\ETX\EOT\t\SOH\DC2\EOT\211\STX\b\ESC\n\+ \\139\STX\n\+ \\EOT\EOT\t\STX\NUL\DC2\EOT\218\STX\EOT\EM\SUB\252\SOH\n\+ \If specified (non-zero), then we'll first start by sending out\n\+ \notifications for all added indexes with an add_index greater than this\n\+ \value. This allows callers to catch up on any events they missed while they\n\+ \weren't connected to the streaming RPC.\n\+ \\n\+ \\r\n\+ \\ENQ\EOT\t\STX\NUL\ENQ\DC2\EOT\218\STX\EOT\n\+ \\n\+ \\r\n\+ \\ENQ\EOT\t\STX\NUL\SOH\DC2\EOT\218\STX\v\DC4\n\+ \\r\n\+ \\ENQ\EOT\t\STX\NUL\ETX\DC2\EOT\218\STX\ETB\CAN\n\+ \\144\STX\n\+ \\EOT\EOT\t\STX\SOH\DC2\EOT\226\STX\EOT\FS\SUB\129\STX\n\+ \If specified (non-zero), then we'll first start by sending out\n\+ \notifications for all settled indexes with an settle_index greater than\n\+ \this value. This allows callers to catch up on any events they missed while\n\+ \they weren't connected to the streaming RPC.\n\+ \\n\+ \\r\n\+ \\ENQ\EOT\t\STX\SOH\ENQ\DC2\EOT\226\STX\EOT\n\+ \\n\+ \\r\n\+ \\ENQ\EOT\t\STX\SOH\SOH\DC2\EOT\226\STX\v\ETB\n\+ \\r\n\+ \\ENQ\EOT\t\STX\SOH\ETX\DC2\EOT\226\STX\SUB\ESC\n\+ \\f\n\+ \\STX\ENQ\SOH\DC2\ACK\229\STX\NUL\133\ETX\SOH\n\+ \\v\n\+ \\ETX\ENQ\SOH\SOH\DC2\EOT\229\STX\ENQ\EM\n\+ \+\n\+ \\EOT\ENQ\SOH\STX\NUL\DC2\EOT\233\STX\EOT\FS\SUB\GS\n\+ \Payment isn't failed (yet).\n\+ \\n\+ \\r\n\+ \\ENQ\ENQ\SOH\STX\NUL\SOH\DC2\EOT\233\STX\EOT\ETB\n\+ \\r\n\+ \\ENQ\ENQ\SOH\STX\NUL\STX\DC2\EOT\233\STX\SUB\ESC\n\+ \S\n\+ \\EOT\ENQ\SOH\STX\SOH\DC2\EOT\238\STX\EOT\US\SUBE\n\+ \There are more routes to try, but the payment timeout was exceeded.\n\+ \\n\+ \\r\n\+ \\ENQ\ENQ\SOH\STX\SOH\SOH\DC2\EOT\238\STX\EOT\SUB\n\+ \\r\n\+ \\ENQ\ENQ\SOH\STX\SOH\STX\DC2\EOT\238\STX\GS\RS\n\+ \s\n\+ \\EOT\ENQ\SOH\STX\STX\DC2\EOT\244\STX\EOT \SUBe\n\+ \All possible routes were tried and failed permanently. Or were no\n\+ \routes to the destination at all.\n\+ \\n\+ \\r\n\+ \\ENQ\ENQ\SOH\STX\STX\SOH\DC2\EOT\244\STX\EOT\ESC\n\+ \\r\n\+ \\ENQ\ENQ\SOH\STX\STX\STX\DC2\EOT\244\STX\RS\US\n\+ \4\n\+ \\EOT\ENQ\SOH\STX\ETX\DC2\EOT\249\STX\EOT\GS\SUB&\n\+ \A non-recoverable error has occured.\n\+ \\n\+ \\r\n\+ \\ENQ\ENQ\SOH\STX\ETX\SOH\DC2\EOT\249\STX\EOT\CAN\n\+ \\r\n\+ \\ENQ\ENQ\SOH\STX\ETX\STX\DC2\EOT\249\STX\ESC\FS\n\+ \a\n\+ \\EOT\ENQ\SOH\STX\EOT\DC2\EOT\255\STX\EOT1\SUBS\n\+ \Payment details incorrect (unknown hash, invalid amt or\n\+ \invalid final cltv delta)\n\+ \\n\+ \\r\n\+ \\ENQ\ENQ\SOH\STX\EOT\SOH\DC2\EOT\255\STX\EOT,\n\+ \\r\n\+ \\ENQ\ENQ\SOH\STX\EOT\STX\DC2\EOT\255\STX/0\n\+ \+\n\+ \\EOT\ENQ\SOH\STX\ENQ\DC2\EOT\132\ETX\EOT,\SUB\GS\n\+ \Insufficient local balance.\n\+ \\n\+ \\r\n\+ \\ENQ\ENQ\SOH\STX\ENQ\SOH\DC2\EOT\132\ETX\EOT'\n\+ \\r\n\+ \\ENQ\ENQ\SOH\STX\ENQ\STX\DC2\EOT\132\ETX*+\n\+ \\f\n\+ \\STX\EOT\n\+ \\DC2\ACK\135\ETX\NUL\192\ETX\SOH\n\+ \\v\n\+ \\ETX\EOT\n\+ \\SOH\DC2\EOT\135\ETX\b\SI\n\+ \ \n\+ \\EOT\EOT\n\+ \\STX\NUL\DC2\EOT\137\ETX\EOT\FS\SUB\DC2 The payment hash\n\+ \\n\+ \\r\n\+ \\ENQ\EOT\n\+ \\STX\NUL\ENQ\DC2\EOT\137\ETX\EOT\n\+ \\n\+ \\r\n\+ \\ENQ\EOT\n\+ \\STX\NUL\SOH\DC2\EOT\137\ETX\v\ETB\n\+ \\r\n\+ \\ENQ\EOT\n\+ \\STX\NUL\ETX\DC2\EOT\137\ETX\SUB\ESC\n\+ \8\n\+ \\EOT\EOT\n\+ \\STX\SOH\DC2\EOT\140\ETX\EOT(\SUB* Deprecated, use value_sat or value_msat.\n\+ \\n\+ \\r\n\+ \\ENQ\EOT\n\+ \\STX\SOH\ENQ\DC2\EOT\140\ETX\EOT\t\n\+ \\r\n\+ \\ENQ\EOT\n\+ \\STX\SOH\SOH\DC2\EOT\140\ETX\n\+ \\SI\n\+ \\r\n\+ \\ENQ\EOT\n\+ \\STX\SOH\ETX\DC2\EOT\140\ETX\DC2\DC3\n\+ \\r\n\+ \\ENQ\EOT\n\+ \\STX\SOH\b\DC2\EOT\140\ETX\DC4'\n\+ \\SO\n\+ \\ACK\EOT\n\+ \\STX\SOH\b\ETX\DC2\EOT\140\ETX\NAK&\n\+ \0\n\+ \\EOT\EOT\n\+ \\STX\STX\DC2\EOT\143\ETX\EOT0\SUB\" Deprecated, use creation_time_ns\n\+ \\n\+ \\r\n\+ \\ENQ\EOT\n\+ \\STX\STX\ENQ\DC2\EOT\143\ETX\EOT\t\n\+ \\r\n\+ \\ENQ\EOT\n\+ \\STX\STX\SOH\DC2\EOT\143\ETX\n\+ \\ETB\n\+ \\r\n\+ \\ENQ\EOT\n\+ \\STX\STX\ETX\DC2\EOT\143\ETX\SUB\ESC\n\+ \\r\n\+ \\ENQ\EOT\n\+ \\STX\STX\b\DC2\EOT\143\ETX\FS/\n\+ \\SO\n\+ \\ACK\EOT\n\+ \\STX\STX\b\ETX\DC2\EOT\143\ETX\GS.\n\+ \\v\n\+ \\ETX\EOT\n\+ \\t\DC2\EOT\145\ETX\EOT\SI\n\+ \\f\n\+ \\EOT\EOT\n\+ \\t\NUL\DC2\EOT\145\ETX\r\SO\n\+ \\r\n\+ \\ENQ\EOT\n\+ \\t\NUL\SOH\DC2\EOT\145\ETX\r\SO\n\+ \\r\n\+ \\ENQ\EOT\n\+ \\t\NUL\STX\DC2\EOT\145\ETX\r\SO\n\+ \4\n\+ \\EOT\EOT\n\+ \\STX\ETX\DC2\EOT\148\ETX\EOT&\SUB& Deprecated, use fee_sat or fee_msat.\n\+ \\n\+ \\r\n\+ \\ENQ\EOT\n\+ \\STX\ETX\ENQ\DC2\EOT\148\ETX\EOT\t\n\+ \\r\n\+ \\ENQ\EOT\n\+ \\STX\ETX\SOH\DC2\EOT\148\ETX\n\+ \\r\n\+ \\r\n\+ \\ENQ\EOT\n\+ \\STX\ETX\ETX\DC2\EOT\148\ETX\DLE\DC1\n\+ \\r\n\+ \\ENQ\EOT\n\+ \\STX\ETX\b\DC2\EOT\148\ETX\DC2%\n\+ \\SO\n\+ \\ACK\EOT\n\+ \\STX\ETX\b\ETX\DC2\EOT\148\ETX\DC3$\n\+ \$\n\+ \\EOT\EOT\n\+ \\STX\EOT\DC2\EOT\151\ETX\EOT \SUB\SYN The payment preimage\n\+ \\n\+ \\r\n\+ \\ENQ\EOT\n\+ \\STX\EOT\ENQ\DC2\EOT\151\ETX\EOT\n\+ \\n\+ \\r\n\+ \\ENQ\EOT\n\+ \\STX\EOT\SOH\DC2\EOT\151\ETX\v\ESC\n\+ \\r\n\+ \\ENQ\EOT\n\+ \\STX\EOT\ETX\DC2\EOT\151\ETX\RS\US\n\+ \4\n\+ \\EOT\EOT\n\+ \\STX\ENQ\DC2\EOT\154\ETX\EOT\CAN\SUB& The value of the payment in satoshis\n\+ \\n\+ \\r\n\+ \\ENQ\EOT\n\+ \\STX\ENQ\ENQ\DC2\EOT\154\ETX\EOT\t\n\+ \\r\n\+ \\ENQ\EOT\n\+ \\STX\ENQ\SOH\DC2\EOT\154\ETX\n\+ \\DC3\n\+ \\r\n\+ \\ENQ\EOT\n\+ \\STX\ENQ\ETX\DC2\EOT\154\ETX\SYN\ETB\n\+ \:\n\+ \\EOT\EOT\n\+ \\STX\ACK\DC2\EOT\157\ETX\EOT\EM\SUB, The value of the payment in milli-satoshis\n\+ \\n\+ \\r\n\+ \\ENQ\EOT\n\+ \\STX\ACK\ENQ\DC2\EOT\157\ETX\EOT\t\n\+ \\r\n\+ \\ENQ\EOT\n\+ \\STX\ACK\SOH\DC2\EOT\157\ETX\n\+ \\DC4\n\+ \\r\n\+ \\ENQ\EOT\n\+ \\STX\ACK\ETX\DC2\EOT\157\ETX\ETB\CAN\n\+ \=\n\+ \\EOT\EOT\n\+ \\STX\a\DC2\EOT\160\ETX\EOT\US\SUB/ The optional payment request being fulfilled.\n\+ \\n\+ \\r\n\+ \\ENQ\EOT\n\+ \\STX\a\ENQ\DC2\EOT\160\ETX\EOT\n\+ \\n\+ \\r\n\+ \\ENQ\EOT\n\+ \\STX\a\SOH\DC2\EOT\160\ETX\v\SUB\n\+ \\r\n\+ \\ENQ\EOT\n\+ \\STX\a\ETX\DC2\EOT\160\ETX\GS\RS\n\+ \\SO\n\+ \\EOT\EOT\n\+ \\EOT\NUL\DC2\ACK\162\ETX\EOT\167\ETX\ENQ\n\+ \\r\n\+ \\ENQ\EOT\n\+ \\EOT\NUL\SOH\DC2\EOT\162\ETX\t\SYN\n\+ \\SO\n\+ \\ACK\EOT\n\+ \\EOT\NUL\STX\NUL\DC2\EOT\163\ETX\b\DC4\n\+ \\SI\n\+ \\a\EOT\n\+ \\EOT\NUL\STX\NUL\SOH\DC2\EOT\163\ETX\b\SI\n\+ \\SI\n\+ \\a\EOT\n\+ \\EOT\NUL\STX\NUL\STX\DC2\EOT\163\ETX\DC2\DC3\n\+ \\SO\n\+ \\ACK\EOT\n\+ \\EOT\NUL\STX\SOH\DC2\EOT\164\ETX\b\SYN\n\+ \\SI\n\+ \\a\EOT\n\+ \\EOT\NUL\STX\SOH\SOH\DC2\EOT\164\ETX\b\DC1\n\+ \\SI\n\+ \\a\EOT\n\+ \\EOT\NUL\STX\SOH\STX\DC2\EOT\164\ETX\DC4\NAK\n\+ \\SO\n\+ \\ACK\EOT\n\+ \\EOT\NUL\STX\STX\DC2\EOT\165\ETX\b\SYN\n\+ \\SI\n\+ \\a\EOT\n\+ \\EOT\NUL\STX\STX\SOH\DC2\EOT\165\ETX\b\DC1\n\+ \\SI\n\+ \\a\EOT\n\+ \\EOT\NUL\STX\STX\STX\DC2\EOT\165\ETX\DC4\NAK\n\+ \\SO\n\+ \\ACK\EOT\n\+ \\EOT\NUL\STX\ETX\DC2\EOT\166\ETX\b\DC3\n\+ \\SI\n\+ \\a\EOT\n\+ \\EOT\NUL\STX\ETX\SOH\DC2\EOT\166\ETX\b\SO\n\+ \\SI\n\+ \\a\EOT\n\+ \\EOT\NUL\STX\ETX\STX\DC2\EOT\166\ETX\DC1\DC2\n\+ \*\n\+ \\EOT\EOT\n\+ \\STX\b\DC2\EOT\170\ETX\EOT\RS\SUB\FS The status of the payment.\n\+ \\n\+ \\r\n\+ \\ENQ\EOT\n\+ \\STX\b\ACK\DC2\EOT\170\ETX\EOT\DC1\n\+ \\r\n\+ \\ENQ\EOT\n\+ \\STX\b\SOH\DC2\EOT\170\ETX\DC2\CAN\n\+ \\r\n\+ \\ENQ\EOT\n\+ \\STX\b\ETX\DC2\EOT\170\ETX\ESC\GS\n\+ \:\n\+ \\EOT\EOT\n\+ \\STX\t\DC2\EOT\173\ETX\EOT\ETB\SUB, The fee paid for this payment in satoshis\n\+ \\n\+ \\r\n\+ \\ENQ\EOT\n\+ \\STX\t\ENQ\DC2\EOT\173\ETX\EOT\t\n\+ \\r\n\+ \\ENQ\EOT\n\+ \\STX\t\SOH\DC2\EOT\173\ETX\n\+ \\DC1\n\+ \\r\n\+ \\ENQ\EOT\n\+ \\STX\t\ETX\DC2\EOT\173\ETX\DC4\SYN\n\+ \@\n\+ \\EOT\EOT\n\+ \\STX\n\+ \\DC2\EOT\176\ETX\EOT\CAN\SUB2 The fee paid for this payment in milli-satoshis\n\+ \\n\+ \\r\n\+ \\ENQ\EOT\n\+ \\STX\n\+ \\ENQ\DC2\EOT\176\ETX\EOT\t\n\+ \\r\n\+ \\ENQ\EOT\n\+ \\STX\n\+ \\SOH\DC2\EOT\176\ETX\n\+ \\DC2\n\+ \\r\n\+ \\ENQ\EOT\n\+ \\STX\n\+ \\ETX\DC2\EOT\176\ETX\NAK\ETB\n\+ \N\n\+ \\EOT\EOT\n\+ \\STX\v\DC2\EOT\179\ETX\EOT \SUB@ The time in UNIX nanoseconds at which the payment was created.\n\+ \\n\+ \\r\n\+ \\ENQ\EOT\n\+ \\STX\v\ENQ\DC2\EOT\179\ETX\EOT\t\n\+ \\r\n\+ \\ENQ\EOT\n\+ \\STX\v\SOH\DC2\EOT\179\ETX\n\+ \\SUB\n\+ \\r\n\+ \\ENQ\EOT\n\+ \\STX\v\ETX\DC2\EOT\179\ETX\GS\US\n\+ \@\n\+ \\EOT\EOT\n\+ \\STX\f\DC2\EOT\182\ETX\EOT$\SUB2 The HTLCs made in attempt to settle the payment.\n\+ \\n\+ \\r\n\+ \\ENQ\EOT\n\+ \\STX\f\EOT\DC2\EOT\182\ETX\EOT\f\n\+ \\r\n\+ \\ENQ\EOT\n\+ \\STX\f\ACK\DC2\EOT\182\ETX\r\CAN\n\+ \\r\n\+ \\ENQ\EOT\n\+ \\STX\f\SOH\DC2\EOT\182\ETX\EM\RS\n\+ \\r\n\+ \\ENQ\EOT\n\+ \\STX\f\ETX\DC2\EOT\182\ETX!#\n\+ \\189\SOH\n\+ \\EOT\EOT\n\+ \\STX\r\DC2\EOT\189\ETX\EOT\RS\SUB\174\SOH\n\+ \The creation index of this payment. Each payment can be uniquely identified\n\+ \by this index, which may not strictly increment by 1 for payments made in\n\+ \older versions of lnd.\n\+ \\n\+ \\r\n\+ \\ENQ\EOT\n\+ \\STX\r\ENQ\DC2\EOT\189\ETX\EOT\n\+ \\n\+ \\r\n\+ \\ENQ\EOT\n\+ \\STX\r\SOH\DC2\EOT\189\ETX\v\CAN\n\+ \\r\n\+ \\ENQ\EOT\n\+ \\STX\r\ETX\DC2\EOT\189\ETX\ESC\GS\n\+ \\f\n\+ \\EOT\EOT\n\+ \\STX\SO\DC2\EOT\191\ETX\EOT-\n\+ \\r\n\+ \\ENQ\EOT\n\+ \\STX\SO\ACK\DC2\EOT\191\ETX\EOT\CAN\n\+ \\r\n\+ \\ENQ\EOT\n\+ \\STX\SO\SOH\DC2\EOT\191\ETX\EM'\n\+ \\r\n\+ \\ENQ\EOT\n\+ \\STX\SO\ETX\DC2\EOT\191\ETX*,\n\+ \\f\n\+ \\STX\EOT\v\DC2\ACK\194\ETX\NUL\224\ETX\SOH\n\+ \\v\n\+ \\ETX\EOT\v\SOH\DC2\EOT\194\ETX\b\DC3\n\+ \<\n\+ \\EOT\EOT\v\STX\NUL\DC2\EOT\196\ETX\EOT\SUB\SUB. The unique ID that is used for this attempt.\n\+ \\n\+ \\r\n\+ \\ENQ\EOT\v\STX\NUL\ENQ\DC2\EOT\196\ETX\EOT\n\+ \\n\+ \\r\n\+ \\ENQ\EOT\v\STX\NUL\SOH\DC2\EOT\196\ETX\v\NAK\n\+ \\r\n\+ \\ENQ\EOT\v\STX\NUL\ETX\DC2\EOT\196\ETX\CAN\EM\n\+ \\SO\n\+ \\EOT\EOT\v\EOT\NUL\DC2\ACK\198\ETX\EOT\202\ETX\ENQ\n\+ \\r\n\+ \\ENQ\EOT\v\EOT\NUL\SOH\DC2\EOT\198\ETX\t\DC3\n\+ \\SO\n\+ \\ACK\EOT\v\EOT\NUL\STX\NUL\DC2\EOT\199\ETX\b\SYN\n\+ \\SI\n\+ \\a\EOT\v\EOT\NUL\STX\NUL\SOH\DC2\EOT\199\ETX\b\DC1\n\+ \\SI\n\+ \\a\EOT\v\EOT\NUL\STX\NUL\STX\DC2\EOT\199\ETX\DC4\NAK\n\+ \\SO\n\+ \\ACK\EOT\v\EOT\NUL\STX\SOH\DC2\EOT\200\ETX\b\SYN\n\+ \\SI\n\+ \\a\EOT\v\EOT\NUL\STX\SOH\SOH\DC2\EOT\200\ETX\b\DC1\n\+ \\SI\n\+ \\a\EOT\v\EOT\NUL\STX\SOH\STX\DC2\EOT\200\ETX\DC4\NAK\n\+ \\SO\n\+ \\ACK\EOT\v\EOT\NUL\STX\STX\DC2\EOT\201\ETX\b\DC3\n\+ \\SI\n\+ \\a\EOT\v\EOT\NUL\STX\STX\SOH\DC2\EOT\201\ETX\b\SO\n\+ \\SI\n\+ \\a\EOT\v\EOT\NUL\STX\STX\STX\DC2\EOT\201\ETX\DC1\DC2\n\+ \'\n\+ \\EOT\EOT\v\STX\SOH\DC2\EOT\205\ETX\EOT\SUB\SUB\EM The status of the HTLC.\n\+ \\n\+ \\r\n\+ \\ENQ\EOT\v\STX\SOH\ACK\DC2\EOT\205\ETX\EOT\SO\n\+ \\r\n\+ \\ENQ\EOT\v\STX\SOH\SOH\DC2\EOT\205\ETX\SI\NAK\n\+ \\r\n\+ \\ENQ\EOT\v\STX\SOH\ETX\DC2\EOT\205\ETX\CAN\EM\n\+ \-\n\+ \\EOT\EOT\v\STX\STX\DC2\EOT\208\ETX\EOT\DC4\SUB\US The route taken by this HTLC.\n\+ \\n\+ \\r\n\+ \\ENQ\EOT\v\STX\STX\ACK\DC2\EOT\208\ETX\EOT\t\n\+ \\r\n\+ \\ENQ\EOT\v\STX\STX\SOH\DC2\EOT\208\ETX\n\+ \\SI\n\+ \\r\n\+ \\ENQ\EOT\v\STX\STX\ETX\DC2\EOT\208\ETX\DC2\DC3\n\+ \I\n\+ \\EOT\EOT\v\STX\ETX\DC2\EOT\211\ETX\EOT\RS\SUB; The time in UNIX nanoseconds at which this HTLC was sent.\n\+ \\n\+ \\r\n\+ \\ENQ\EOT\v\STX\ETX\ENQ\DC2\EOT\211\ETX\EOT\t\n\+ \\r\n\+ \\ENQ\EOT\v\STX\ETX\SOH\DC2\EOT\211\ETX\n\+ \\EM\n\+ \\r\n\+ \\ENQ\EOT\v\STX\ETX\ETX\DC2\EOT\211\ETX\FS\GS\n\+ \\146\SOH\n\+ \\EOT\EOT\v\STX\EOT\DC2\EOT\217\ETX\EOT\RS\SUB\131\SOH\n\+ \The time in UNIX nanoseconds at which this HTLC was settled or failed.\n\+ \This value will not be set if the HTLC is still IN_FLIGHT.\n\+ \\n\+ \\r\n\+ \\ENQ\EOT\v\STX\EOT\ENQ\DC2\EOT\217\ETX\EOT\t\n\+ \\r\n\+ \\ENQ\EOT\v\STX\EOT\SOH\DC2\EOT\217\ETX\n\+ \\EM\n\+ \\r\n\+ \\ENQ\EOT\v\STX\EOT\ETX\DC2\EOT\217\ETX\FS\GS\n\+ \+\n\+ \\EOT\EOT\v\STX\ENQ\DC2\EOT\220\ETX\EOT\CAN\SUB\GS Detailed htlc failure info.\n\+ \\n\+ \\r\n\+ \\ENQ\EOT\v\STX\ENQ\ACK\DC2\EOT\220\ETX\EOT\v\n\+ \\r\n\+ \\ENQ\EOT\v\STX\ENQ\SOH\DC2\EOT\220\ETX\f\DC3\n\+ \\r\n\+ \\ENQ\EOT\v\STX\ENQ\ETX\DC2\EOT\220\ETX\SYN\ETB\n\+ \>\n\+ \\EOT\EOT\v\STX\ACK\DC2\EOT\223\ETX\EOT\ETB\SUB0 The preimage that was used to settle the HTLC.\n\+ \\n\+ \\r\n\+ \\ENQ\EOT\v\STX\ACK\ENQ\DC2\EOT\223\ETX\EOT\t\n\+ \\r\n\+ \\ENQ\EOT\v\STX\ACK\SOH\DC2\EOT\223\ETX\n\+ \\DC2\n\+ \\r\n\+ \\ENQ\EOT\v\STX\ACK\ETX\DC2\EOT\223\ETX\NAK\SYN\n\+ \\f\n\+ \\STX\EOT\f\DC2\ACK\226\ETX\NUL\253\ETX\SOH\n\+ \\v\n\+ \\ETX\EOT\f\SOH\DC2\EOT\226\ETX\b\ESC\n\+ \\149\STX\n\+ \\EOT\EOT\f\STX\NUL\DC2\EOT\233\ETX\EOT \SUB\134\STX\n\+ \If true, then return payments that have not yet fully completed. This means\n\+ \that pending payments, as well as failed payments will show up if this\n\+ \field is set to true. This flag doesn't change the meaning of the indices,\n\+ \which are tied to individual payments.\n\+ \\n\+ \\r\n\+ \\ENQ\EOT\f\STX\NUL\ENQ\DC2\EOT\233\ETX\EOT\b\n\+ \\r\n\+ \\ENQ\EOT\f\STX\NUL\SOH\DC2\EOT\233\ETX\t\ESC\n\+ \\r\n\+ \\ENQ\EOT\f\STX\NUL\ETX\DC2\EOT\233\ETX\RS\US\n\+ \\237\STX\n\+ \\EOT\EOT\f\STX\SOH\DC2\EOT\242\ETX\EOT\FS\SUB\222\STX\n\+ \The index of a payment that will be used as either the start or end of a\n\+ \query to determine which payments should be returned in the response. The\n\+ \index_offset is exclusive. In the case of a zero index_offset, the query\n\+ \will start with the oldest payment when paginating forwards, or will end\n\+ \with the most recent payment when paginating backwards.\n\+ \\n\+ \\r\n\+ \\ENQ\EOT\f\STX\SOH\ENQ\DC2\EOT\242\ETX\EOT\n\+ \\n\+ \\r\n\+ \\ENQ\EOT\f\STX\SOH\SOH\DC2\EOT\242\ETX\v\ETB\n\+ \\r\n\+ \\ENQ\EOT\f\STX\SOH\ETX\DC2\EOT\242\ETX\SUB\ESC\n\+ \V\n\+ \\EOT\EOT\f\STX\STX\DC2\EOT\245\ETX\EOT\FS\SUBH The maximal number of payments returned in the response to this query.\n\+ \\n\+ \\r\n\+ \\ENQ\EOT\f\STX\STX\ENQ\DC2\EOT\245\ETX\EOT\n\+ \\n\+ \\r\n\+ \\ENQ\EOT\f\STX\STX\SOH\DC2\EOT\245\ETX\v\ETB\n\+ \\r\n\+ \\ENQ\EOT\f\STX\STX\ETX\DC2\EOT\245\ETX\SUB\ESC\n\+ \\237\SOH\n\+ \\EOT\EOT\f\STX\ETX\DC2\EOT\252\ETX\EOT\SYN\SUB\222\SOH\n\+ \If set, the payments returned will result from seeking backwards from the\n\+ \specified index offset. This can be used to paginate backwards. The order\n\+ \of the returned payments is always oldest first (ascending index order).\n\+ \\n\+ \\r\n\+ \\ENQ\EOT\f\STX\ETX\ENQ\DC2\EOT\252\ETX\EOT\b\n\+ \\r\n\+ \\ENQ\EOT\f\STX\ETX\SOH\DC2\EOT\252\ETX\t\DC1\n\+ \\r\n\+ \\ENQ\EOT\f\STX\ETX\ETX\DC2\EOT\252\ETX\DC4\NAK\n\+ \\f\n\+ \\STX\EOT\r\DC2\ACK\255\ETX\NUL\142\EOT\SOH\n\+ \\v\n\+ \\ETX\EOT\r\SOH\DC2\EOT\255\ETX\b\FS\n\+ \$\n\+ \\EOT\EOT\r\STX\NUL\DC2\EOT\129\EOT\EOT\"\SUB\SYN The list of payments\n\+ \\n\+ \\r\n\+ \\ENQ\EOT\r\STX\NUL\EOT\DC2\EOT\129\EOT\EOT\f\n\+ \\r\n\+ \\ENQ\EOT\r\STX\NUL\ACK\DC2\EOT\129\EOT\r\DC4\n\+ \\r\n\+ \\ENQ\EOT\r\STX\NUL\SOH\DC2\EOT\129\EOT\NAK\GS\n\+ \\r\n\+ \\ENQ\EOT\r\STX\NUL\ETX\DC2\EOT\129\EOT !\n\+ \\165\SOH\n\+ \\EOT\EOT\r\STX\SOH\DC2\EOT\135\EOT\EOT\"\SUB\150\SOH\n\+ \The index of the first item in the set of returned payments. This can be\n\+ \used as the index_offset to continue seeking backwards in the next request.\n\+ \\n\+ \\r\n\+ \\ENQ\EOT\r\STX\SOH\ENQ\DC2\EOT\135\EOT\EOT\n\+ \\n\+ \\r\n\+ \\ENQ\EOT\r\STX\SOH\SOH\DC2\EOT\135\EOT\v\GS\n\+ \\r\n\+ \\ENQ\EOT\r\STX\SOH\ETX\DC2\EOT\135\EOT !\n\+ \\163\SOH\n\+ \\EOT\EOT\r\STX\STX\DC2\EOT\141\EOT\EOT!\SUB\148\SOH\n\+ \The index of the last item in the set of returned payments. This can be used\n\+ \as the index_offset to continue seeking forwards in the next request.\n\+ \\n\+ \\r\n\+ \\ENQ\EOT\r\STX\STX\ENQ\DC2\EOT\141\EOT\EOT\n\+ \\n\+ \\r\n\+ \\ENQ\EOT\r\STX\STX\SOH\DC2\EOT\141\EOT\v\FS\n\+ \\r\n\+ \\ENQ\EOT\r\STX\STX\ETX\DC2\EOT\141\EOT\US \n\+ \\f\n\+ \\STX\EOT\SO\DC2\ACK\144\EOT\NUL\152\EOT\SOH\n\+ \\v\n\+ \\ETX\EOT\SO\SOH\DC2\EOT\144\EOT\b\FS\n\+ \'\n\+ \\EOT\EOT\SO\STX\NUL\DC2\EOT\146\EOT\EOT\ESC\SUB\EM Payment hash to delete.\n\+ \\n\+ \\r\n\+ \\ENQ\EOT\SO\STX\NUL\ENQ\DC2\EOT\146\EOT\EOT\t\n\+ \\r\n\+ \\ENQ\EOT\SO\STX\NUL\SOH\DC2\EOT\146\EOT\n\+ \\SYN\n\+ \\r\n\+ \\ENQ\EOT\SO\STX\NUL\ETX\DC2\EOT\146\EOT\EM\SUB\n\+ \R\n\+ \\EOT\EOT\SO\STX\SOH\DC2\EOT\151\EOT\EOT\US\SUBD\n\+ \Only delete failed HTLCs from the payment, not the payment itself.\n\+ \\n\+ \\r\n\+ \\ENQ\EOT\SO\STX\SOH\ENQ\DC2\EOT\151\EOT\EOT\b\n\+ \\r\n\+ \\ENQ\EOT\SO\STX\SOH\SOH\DC2\EOT\151\EOT\t\SUB\n\+ \\r\n\+ \\ENQ\EOT\SO\STX\SOH\ETX\DC2\EOT\151\EOT\GS\RS\n\+ \\f\n\+ \\STX\EOT\SI\DC2\ACK\154\EOT\NUL\162\EOT\SOH\n\+ \\v\n\+ \\ETX\EOT\SI\SOH\DC2\EOT\154\EOT\b \n\+ \,\n\+ \\EOT\EOT\SI\STX\NUL\DC2\EOT\156\EOT\EOT\"\SUB\RS Only delete failed payments.\n\+ \\n\+ \\r\n\+ \\ENQ\EOT\SI\STX\NUL\ENQ\DC2\EOT\156\EOT\EOT\b\n\+ \\r\n\+ \\ENQ\EOT\SI\STX\NUL\SOH\DC2\EOT\156\EOT\t\GS\n\+ \\r\n\+ \\ENQ\EOT\SI\STX\NUL\ETX\DC2\EOT\156\EOT !\n\+ \O\n\+ \\EOT\EOT\SI\STX\SOH\DC2\EOT\161\EOT\EOT\US\SUBA\n\+ \Only delete failed HTLCs from payments, not the payment itself.\n\+ \\n\+ \\r\n\+ \\ENQ\EOT\SI\STX\SOH\ENQ\DC2\EOT\161\EOT\EOT\b\n\+ \\r\n\+ \\ENQ\EOT\SI\STX\SOH\SOH\DC2\EOT\161\EOT\t\SUB\n\+ \\r\n\+ \\ENQ\EOT\SI\STX\SOH\ETX\DC2\EOT\161\EOT\GS\RS\n\+ \\f\n\+ \\STX\EOT\DLE\DC2\ACK\164\EOT\NUL\165\EOT\SOH\n\+ \\v\n\+ \\ETX\EOT\DLE\SOH\DC2\EOT\164\EOT\b\GS\n\+ \\f\n\+ \\STX\EOT\DC1\DC2\ACK\167\EOT\NUL\168\EOT\SOH\n\+ \\v\n\+ \\ETX\EOT\DC1\SOH\DC2\EOT\167\EOT\b!\n\+ \\f\n\+ \\STX\EOT\DC2\DC2\ACK\170\EOT\NUL\181\EOT\SOH\n\+ \\v\n\+ \\ETX\EOT\DC2\SOH\DC2\EOT\170\EOT\b\GS\n\+ \\f\n\+ \\EOT\EOT\DC2\STX\NUL\DC2\EOT\171\EOT\EOT#\n\+ \\r\n\+ \\ENQ\EOT\DC2\STX\NUL\ACK\DC2\EOT\171\EOT\EOT\DLE\n\+ \\r\n\+ \\ENQ\EOT\DC2\STX\NUL\SOH\DC2\EOT\171\EOT\DC1\RS\n\+ \\r\n\+ \\ENQ\EOT\DC2\STX\NUL\ETX\DC2\EOT\171\EOT!\"\n\+ \\f\n\+ \\EOT\EOT\DC2\STX\SOH\DC2\EOT\173\EOT\EOT'\n\+ \\r\n\+ \\ENQ\EOT\DC2\STX\SOH\ENQ\DC2\EOT\173\EOT\EOT\b\n\+ \\r\n\+ \\ENQ\EOT\DC2\STX\SOH\SOH\DC2\EOT\173\EOT\t\"\n\+ \\r\n\+ \\ENQ\EOT\DC2\STX\SOH\ETX\DC2\EOT\173\EOT%&\n\+ \\212\SOH\n\+ \\EOT\EOT\DC2\STX\STX\DC2\EOT\180\EOT\EOT$\SUB\197\SOH\n\+ \Override the requirement for being in dev mode by setting this to true and\n\+ \confirming the user knows what they are doing and this is a potential foot\n\+ \gun to lose funds if used on active channels.\n\+ \\n\+ \\r\n\+ \\ENQ\EOT\DC2\STX\STX\ENQ\DC2\EOT\180\EOT\EOT\b\n\+ \\r\n\+ \\ENQ\EOT\DC2\STX\STX\SOH\DC2\EOT\180\EOT\t\US\n\+ \\r\n\+ \\ENQ\EOT\DC2\STX\STX\ETX\DC2\EOT\180\EOT\"#\n\+ \\f\n\+ \\STX\EOT\DC3\DC2\ACK\183\EOT\NUL\184\EOT\SOH\n\+ \\v\n\+ \\ETX\EOT\DC3\SOH\DC2\EOT\183\EOT\b\RS\n\+ \\f\n\+ \\STX\EOT\DC4\DC2\ACK\186\EOT\NUL\189\EOT\SOH\n\+ \\v\n\+ \\ETX\EOT\DC4\SOH\DC2\EOT\186\EOT\b\EM\n\+ \\f\n\+ \\EOT\EOT\DC4\STX\NUL\DC2\EOT\187\EOT\EOT\DC2\n\+ \\r\n\+ \\ENQ\EOT\DC4\STX\NUL\ENQ\DC2\EOT\187\EOT\EOT\b\n\+ \\r\n\+ \\ENQ\EOT\DC4\STX\NUL\SOH\DC2\EOT\187\EOT\t\r\n\+ \\r\n\+ \\ENQ\EOT\DC4\STX\NUL\ETX\DC2\EOT\187\EOT\DLE\DC1\n\+ \\f\n\+ \\EOT\EOT\DC4\STX\SOH\DC2\EOT\188\EOT\EOT\SUB\n\+ \\r\n\+ \\ENQ\EOT\DC4\STX\SOH\ENQ\DC2\EOT\188\EOT\EOT\n\+ \\n\+ \\r\n\+ \\ENQ\EOT\DC4\STX\SOH\SOH\DC2\EOT\188\EOT\v\NAK\n\+ \\r\n\+ \\ENQ\EOT\DC4\STX\SOH\ETX\DC2\EOT\188\EOT\CAN\EM\n\+ \\f\n\+ \\STX\EOT\NAK\DC2\ACK\190\EOT\NUL\192\EOT\SOH\n\+ \\v\n\+ \\ETX\EOT\NAK\SOH\DC2\EOT\190\EOT\b\SUB\n\+ \\f\n\+ \\EOT\EOT\NAK\STX\NUL\DC2\EOT\191\EOT\EOT\ESC\n\+ \\r\n\+ \\ENQ\EOT\NAK\STX\NUL\ENQ\DC2\EOT\191\EOT\EOT\n\+ \\n\+ \\r\n\+ \\ENQ\EOT\NAK\STX\NUL\SOH\DC2\EOT\191\EOT\v\SYN\n\+ \\r\n\+ \\ENQ\EOT\NAK\STX\NUL\ETX\DC2\EOT\191\EOT\EM\SUB\n\+ \\f\n\+ \\STX\EOT\SYN\DC2\ACK\194\EOT\NUL\197\EOT\SOH\n\+ \\v\n\+ \\ETX\EOT\SYN\SOH\DC2\EOT\194\EOT\b\DC4\n\+ \8\n\+ \\EOT\EOT\SYN\STX\NUL\DC2\EOT\196\EOT\EOT\ETB\SUB* The payment request string to be decoded\n\+ \\n\+ \\r\n\+ \\ENQ\EOT\SYN\STX\NUL\ENQ\DC2\EOT\196\EOT\EOT\n\+ \\n\+ \\r\n\+ \\ENQ\EOT\SYN\STX\NUL\SOH\DC2\EOT\196\EOT\v\DC2\n\+ \\r\n\+ \\ENQ\EOT\SYN\STX\NUL\ETX\DC2\EOT\196\EOT\NAK\SYN\n\+ \\f\n\+ \\STX\EOT\ETB\DC2\ACK\198\EOT\NUL\212\EOT\SOH\n\+ \\v\n\+ \\ETX\EOT\ETB\SOH\DC2\EOT\198\EOT\b\SO\n\+ \\f\n\+ \\EOT\EOT\ETB\STX\NUL\DC2\EOT\199\EOT\EOT\ESC\n\+ \\r\n\+ \\ENQ\EOT\ETB\STX\NUL\ENQ\DC2\EOT\199\EOT\EOT\n\+ \\n\+ \\r\n\+ \\ENQ\EOT\ETB\STX\NUL\SOH\DC2\EOT\199\EOT\v\SYN\n\+ \\r\n\+ \\ENQ\EOT\ETB\STX\NUL\ETX\DC2\EOT\199\EOT\EM\SUB\n\+ \\f\n\+ \\EOT\EOT\ETB\STX\SOH\DC2\EOT\200\EOT\EOT\FS\n\+ \\r\n\+ \\ENQ\EOT\ETB\STX\SOH\ENQ\DC2\EOT\200\EOT\EOT\n\+ \\n\+ \\r\n\+ \\ENQ\EOT\ETB\STX\SOH\SOH\DC2\EOT\200\EOT\v\ETB\n\+ \\r\n\+ \\ENQ\EOT\ETB\STX\SOH\ETX\DC2\EOT\200\EOT\SUB\ESC\n\+ \\f\n\+ \\EOT\EOT\ETB\STX\STX\DC2\EOT\201\EOT\EOT\ESC\n\+ \\r\n\+ \\ENQ\EOT\ETB\STX\STX\ENQ\DC2\EOT\201\EOT\EOT\t\n\+ \\r\n\+ \\ENQ\EOT\ETB\STX\STX\SOH\DC2\EOT\201\EOT\n\+ \\SYN\n\+ \\r\n\+ \\ENQ\EOT\ETB\STX\STX\ETX\DC2\EOT\201\EOT\EM\SUB\n\+ \\f\n\+ \\EOT\EOT\ETB\STX\ETX\DC2\EOT\202\EOT\EOT\CAN\n\+ \\r\n\+ \\ENQ\EOT\ETB\STX\ETX\ENQ\DC2\EOT\202\EOT\EOT\t\n\+ \\r\n\+ \\ENQ\EOT\ETB\STX\ETX\SOH\DC2\EOT\202\EOT\n\+ \\DC3\n\+ \\r\n\+ \\ENQ\EOT\ETB\STX\ETX\ETX\DC2\EOT\202\EOT\SYN\ETB\n\+ \\f\n\+ \\EOT\EOT\ETB\STX\EOT\DC2\EOT\203\EOT\EOT\NAK\n\+ \\r\n\+ \\ENQ\EOT\ETB\STX\EOT\ENQ\DC2\EOT\203\EOT\EOT\t\n\+ \\r\n\+ \\ENQ\EOT\ETB\STX\EOT\SOH\DC2\EOT\203\EOT\n\+ \\DLE\n\+ \\r\n\+ \\ENQ\EOT\ETB\STX\EOT\ETX\DC2\EOT\203\EOT\DC3\DC4\n\+ \\f\n\+ \\EOT\EOT\ETB\STX\ENQ\DC2\EOT\204\EOT\EOT\ESC\n\+ \\r\n\+ \\ENQ\EOT\ETB\STX\ENQ\ENQ\DC2\EOT\204\EOT\EOT\n\+ \\n\+ \\r\n\+ \\ENQ\EOT\ETB\STX\ENQ\SOH\DC2\EOT\204\EOT\v\SYN\n\+ \\r\n\+ \\ENQ\EOT\ETB\STX\ENQ\ETX\DC2\EOT\204\EOT\EM\SUB\n\+ \\f\n\+ \\EOT\EOT\ETB\STX\ACK\DC2\EOT\205\EOT\EOT \n\+ \\r\n\+ \\ENQ\EOT\ETB\STX\ACK\ENQ\DC2\EOT\205\EOT\EOT\n\+ \\n\+ \\r\n\+ \\ENQ\EOT\ETB\STX\ACK\SOH\DC2\EOT\205\EOT\v\ESC\n\+ \\r\n\+ \\ENQ\EOT\ETB\STX\ACK\ETX\DC2\EOT\205\EOT\RS\US\n\+ \\f\n\+ \\EOT\EOT\ETB\STX\a\DC2\EOT\206\EOT\EOT\GS\n\+ \\r\n\+ \\ENQ\EOT\ETB\STX\a\ENQ\DC2\EOT\206\EOT\EOT\n\+ \\n\+ \\r\n\+ \\ENQ\EOT\ETB\STX\a\SOH\DC2\EOT\206\EOT\v\CAN\n\+ \\r\n\+ \\ENQ\EOT\ETB\STX\a\ETX\DC2\EOT\206\EOT\ESC\FS\n\+ \\f\n\+ \\EOT\EOT\ETB\STX\b\DC2\EOT\207\EOT\EOT\SUB\n\+ \\r\n\+ \\ENQ\EOT\ETB\STX\b\ENQ\DC2\EOT\207\EOT\EOT\t\n\+ \\r\n\+ \\ENQ\EOT\ETB\STX\b\SOH\DC2\EOT\207\EOT\n\+ \\NAK\n\+ \\r\n\+ \\ENQ\EOT\ETB\STX\b\ETX\DC2\EOT\207\EOT\CAN\EM\n\+ \\f\n\+ \\EOT\EOT\ETB\STX\t\DC2\EOT\208\EOT\EOT(\n\+ \\r\n\+ \\ENQ\EOT\ETB\STX\t\EOT\DC2\EOT\208\EOT\EOT\f\n\+ \\r\n\+ \\ENQ\EOT\ETB\STX\t\ACK\DC2\EOT\208\EOT\r\SYN\n\+ \\r\n\+ \\ENQ\EOT\ETB\STX\t\SOH\DC2\EOT\208\EOT\ETB\"\n\+ \\r\n\+ \\ENQ\EOT\ETB\STX\t\ETX\DC2\EOT\208\EOT%'\n\+ \\f\n\+ \\EOT\EOT\ETB\STX\n\+ \\DC2\EOT\209\EOT\EOT\FS\n\+ \\r\n\+ \\ENQ\EOT\ETB\STX\n\+ \\ENQ\DC2\EOT\209\EOT\EOT\t\n\+ \\r\n\+ \\ENQ\EOT\ETB\STX\n\+ \\SOH\DC2\EOT\209\EOT\n\+ \\SYN\n\+ \\r\n\+ \\ENQ\EOT\ETB\STX\n\+ \\ETX\DC2\EOT\209\EOT\EM\ESC\n\+ \\f\n\+ \\EOT\EOT\ETB\STX\v\DC2\EOT\210\EOT\EOT\CAN\n\+ \\r\n\+ \\ENQ\EOT\ETB\STX\v\ENQ\DC2\EOT\210\EOT\EOT\t\n\+ \\r\n\+ \\ENQ\EOT\ETB\STX\v\SOH\DC2\EOT\210\EOT\n\+ \\DC2\n\+ \\r\n\+ \\ENQ\EOT\ETB\STX\v\ETX\DC2\EOT\210\EOT\NAK\ETB\n\+ \\f\n\+ \\EOT\EOT\ETB\STX\f\DC2\EOT\211\EOT\EOT'\n\+ \\r\n\+ \\ENQ\EOT\ETB\STX\f\ACK\DC2\EOT\211\EOT\EOT\CAN\n\+ \\r\n\+ \\ENQ\EOT\ETB\STX\f\SOH\DC2\EOT\211\EOT\EM!\n\+ \\r\n\+ \\ENQ\EOT\ETB\STX\f\ETX\DC2\EOT\211\EOT$&\n\+ \\f\n\+ \\STX\EOT\CAN\DC2\ACK\214\EOT\NUL\215\EOT\SOH\n\+ \\v\n\+ \\ETX\EOT\CAN\SOH\DC2\EOT\214\EOT\b\CAN\n\+ \\f\n\+ \\STX\EOT\EM\DC2\ACK\216\EOT\NUL\233\EOT\SOH\n\+ \\v\n\+ \\ETX\EOT\EM\SOH\DC2\EOT\216\EOT\b\CAN\n\+ \E\n\+ \\EOT\EOT\EM\STX\NUL\DC2\EOT\218\EOT\EOT,\SUB7 The short channel id that this fee report belongs to.\n\+ \\n\+ \\r\n\+ \\ENQ\EOT\EM\STX\NUL\ENQ\DC2\EOT\218\EOT\EOT\n\+ \\n\+ \\r\n\+ \\ENQ\EOT\EM\STX\NUL\SOH\DC2\EOT\218\EOT\v\DC2\n\+ \\r\n\+ \\ENQ\EOT\EM\STX\NUL\ETX\DC2\EOT\218\EOT\NAK\SYN\n\+ \\r\n\+ \\ENQ\EOT\EM\STX\NUL\b\DC2\EOT\218\EOT\ETB+\n\+ \\SO\n\+ \\ACK\EOT\EM\STX\NUL\b\ACK\DC2\EOT\218\EOT\CAN*\n\+ \<\n\+ \\EOT\EOT\EM\STX\SOH\DC2\EOT\221\EOT\EOT\GS\SUB. The channel that this fee report belongs to.\n\+ \\n\+ \\r\n\+ \\ENQ\EOT\EM\STX\SOH\ENQ\DC2\EOT\221\EOT\EOT\n\+ \\n\+ \\r\n\+ \\ENQ\EOT\EM\STX\SOH\SOH\DC2\EOT\221\EOT\v\CAN\n\+ \\r\n\+ \\ENQ\EOT\EM\STX\SOH\ETX\DC2\EOT\221\EOT\ESC\FS\n\+ \U\n\+ \\EOT\EOT\EM\STX\STX\DC2\EOT\224\EOT\EOT\FS\SUBG The base fee charged regardless of the number of milli-satoshis sent.\n\+ \\n\+ \\r\n\+ \\ENQ\EOT\EM\STX\STX\ENQ\DC2\EOT\224\EOT\EOT\t\n\+ \\r\n\+ \\ENQ\EOT\EM\STX\STX\SOH\DC2\EOT\224\EOT\n\+ \\ETB\n\+ \\r\n\+ \\ENQ\EOT\EM\STX\STX\ETX\DC2\EOT\224\EOT\SUB\ESC\n\+ \h\n\+ \\EOT\EOT\EM\STX\ETX\DC2\EOT\228\EOT\EOT\SUB\SUBZ The amount charged per milli-satoshis transferred expressed in\n\+ \ millionths of a satoshi.\n\+ \\n\+ \\r\n\+ \\ENQ\EOT\EM\STX\ETX\ENQ\DC2\EOT\228\EOT\EOT\t\n\+ \\r\n\+ \\ENQ\EOT\EM\STX\ETX\SOH\DC2\EOT\228\EOT\n\+ \\NAK\n\+ \\r\n\+ \\ENQ\EOT\EM\STX\ETX\ETX\DC2\EOT\228\EOT\CAN\EM\n\+ \s\n\+ \\EOT\EOT\EM\STX\EOT\DC2\EOT\232\EOT\EOT\CAN\SUBe The effective fee rate in milli-satoshis. Computed by dividing the\n\+ \ fee_per_mil value by 1 million.\n\+ \\n\+ \\r\n\+ \\ENQ\EOT\EM\STX\EOT\ENQ\DC2\EOT\232\EOT\EOT\n\+ \\n\+ \\r\n\+ \\ENQ\EOT\EM\STX\EOT\SOH\DC2\EOT\232\EOT\v\DC3\n\+ \\r\n\+ \\ENQ\EOT\EM\STX\EOT\ETX\DC2\EOT\232\EOT\SYN\ETB\n\+ \\f\n\+ \\STX\EOT\SUB\DC2\ACK\234\EOT\NUL\250\EOT\SOH\n\+ \\v\n\+ \\ETX\EOT\SUB\SOH\DC2\EOT\234\EOT\b\EM\n\+ \k\n\+ \\EOT\EOT\SUB\STX\NUL\DC2\EOT\237\EOT\EOT/\SUB] An array of channel fee reports which describes the current fee schedule\n\+ \ for each channel.\n\+ \\n\+ \\r\n\+ \\ENQ\EOT\SUB\STX\NUL\EOT\DC2\EOT\237\EOT\EOT\f\n\+ \\r\n\+ \\ENQ\EOT\SUB\STX\NUL\ACK\DC2\EOT\237\EOT\r\GS\n\+ \\r\n\+ \\ENQ\EOT\SUB\STX\NUL\SOH\DC2\EOT\237\EOT\RS*\n\+ \\r\n\+ \\ENQ\EOT\SUB\STX\NUL\ETX\DC2\EOT\237\EOT-.\n\+ \m\n\+ \\EOT\EOT\SUB\STX\SOH\DC2\EOT\241\EOT\EOT\ESC\SUB_ The total amount of fee revenue (in satoshis) the switch has collected\n\+ \ over the past 24 hrs.\n\+ \\n\+ \\r\n\+ \\ENQ\EOT\SUB\STX\SOH\ENQ\DC2\EOT\241\EOT\EOT\n\+ \\n\+ \\r\n\+ \\ENQ\EOT\SUB\STX\SOH\SOH\DC2\EOT\241\EOT\v\SYN\n\+ \\r\n\+ \\ENQ\EOT\SUB\STX\SOH\ETX\DC2\EOT\241\EOT\EM\SUB\n\+ \m\n\+ \\EOT\EOT\SUB\STX\STX\DC2\EOT\245\EOT\EOT\FS\SUB_ The total amount of fee revenue (in satoshis) the switch has collected\n\+ \ over the past 1 week.\n\+ \\n\+ \\r\n\+ \\ENQ\EOT\SUB\STX\STX\ENQ\DC2\EOT\245\EOT\EOT\n\+ \\n\+ \\r\n\+ \\ENQ\EOT\SUB\STX\STX\SOH\DC2\EOT\245\EOT\v\ETB\n\+ \\r\n\+ \\ENQ\EOT\SUB\STX\STX\ETX\DC2\EOT\245\EOT\SUB\ESC\n\+ \n\n\+ \\EOT\EOT\SUB\STX\ETX\DC2\EOT\249\EOT\EOT\GS\SUB` The total amount of fee revenue (in satoshis) the switch has collected\n\+ \ over the past 1 month.\n\+ \\n\+ \\r\n\+ \\ENQ\EOT\SUB\STX\ETX\ENQ\DC2\EOT\249\EOT\EOT\n\+ \\n\+ \\r\n\+ \\ENQ\EOT\SUB\STX\ETX\SOH\DC2\EOT\249\EOT\v\CAN\n\+ \\r\n\+ \\ENQ\EOT\SUB\STX\ETX\ETX\DC2\EOT\249\EOT\ESC\FS\n\+ \\f\n\+ \\STX\EOT\ESC\DC2\ACK\252\EOT\NUL\153\ENQ\SOH\n\+ \\v\n\+ \\ETX\EOT\ESC\SOH\DC2\EOT\252\EOT\b\ESC\n\+ \\SO\n\+ \\EOT\EOT\ESC\b\NUL\DC2\ACK\253\EOT\EOT\131\ENQ\ENQ\n\+ \\r\n\+ \\ENQ\EOT\ESC\b\NUL\SOH\DC2\EOT\253\EOT\n\+ \\SI\n\+ \R\n\+ \\EOT\EOT\ESC\STX\NUL\DC2\EOT\255\EOT\b\CAN\SUBD If set, then this update applies to all currently active channels.\n\+ \\n\+ \\r\n\+ \\ENQ\EOT\ESC\STX\NUL\ENQ\DC2\EOT\255\EOT\b\f\n\+ \\r\n\+ \\ENQ\EOT\ESC\STX\NUL\SOH\DC2\EOT\255\EOT\r\DC3\n\+ \\r\n\+ \\ENQ\EOT\ESC\STX\NUL\ETX\DC2\EOT\255\EOT\SYN\ETB\n\+ \C\n\+ \\EOT\EOT\ESC\STX\SOH\DC2\EOT\130\ENQ\b$\SUB5 If set, this update will target a specific channel.\n\+ \\n\+ \\r\n\+ \\ENQ\EOT\ESC\STX\SOH\ACK\DC2\EOT\130\ENQ\b\DC4\n\+ \\r\n\+ \\ENQ\EOT\ESC\STX\SOH\SOH\DC2\EOT\130\ENQ\NAK\US\n\+ \\r\n\+ \\ENQ\EOT\ESC\STX\SOH\ETX\DC2\EOT\130\ENQ\"#\n\+ \U\n\+ \\EOT\EOT\ESC\STX\STX\DC2\EOT\134\ENQ\EOT\FS\SUBG The base fee charged regardless of the number of milli-satoshis sent.\n\+ \\n\+ \\r\n\+ \\ENQ\EOT\ESC\STX\STX\ENQ\DC2\EOT\134\ENQ\EOT\t\n\+ \\r\n\+ \\ENQ\EOT\ESC\STX\STX\SOH\DC2\EOT\134\ENQ\n\+ \\ETB\n\+ \\r\n\+ \\ENQ\EOT\ESC\STX\STX\ETX\DC2\EOT\134\ENQ\SUB\ESC\n\+ \|\n\+ \\EOT\EOT\ESC\STX\ETX\DC2\EOT\138\ENQ\EOT\CAN\SUBn The effective fee rate in milli-satoshis. The precision of this value\n\+ \ goes up to 6 decimal places, so 1e-6.\n\+ \\n\+ \\r\n\+ \\ENQ\EOT\ESC\STX\ETX\ENQ\DC2\EOT\138\ENQ\EOT\n\+ \\n\+ \\r\n\+ \\ENQ\EOT\ESC\STX\ETX\SOH\DC2\EOT\138\ENQ\v\DC3\n\+ \\r\n\+ \\ENQ\EOT\ESC\STX\ETX\ETX\DC2\EOT\138\ENQ\SYN\ETB\n\+ \Q\n\+ \\EOT\EOT\ESC\STX\EOT\DC2\EOT\141\ENQ\EOT\US\SUBC The required timelock delta for HTLCs forwarded over the channel.\n\+ \\n\+ \\r\n\+ \\ENQ\EOT\ESC\STX\EOT\ENQ\DC2\EOT\141\ENQ\EOT\n\+ \\n\+ \\r\n\+ \\ENQ\EOT\ESC\STX\EOT\SOH\DC2\EOT\141\ENQ\v\SUB\n\+ \\r\n\+ \\ENQ\EOT\ESC\STX\EOT\ETX\DC2\EOT\141\ENQ\GS\RS\n\+ \o\n\+ \\EOT\EOT\ESC\STX\ENQ\DC2\EOT\145\ENQ\EOT\GS\SUBa If set, the maximum HTLC size in milli-satoshis. If unset, the maximum\n\+ \ HTLC will be unchanged.\n\+ \\n\+ \\r\n\+ \\ENQ\EOT\ESC\STX\ENQ\ENQ\DC2\EOT\145\ENQ\EOT\n\+ \\n\+ \\r\n\+ \\ENQ\EOT\ESC\STX\ENQ\SOH\DC2\EOT\145\ENQ\v\CAN\n\+ \\r\n\+ \\ENQ\EOT\ESC\STX\ENQ\ETX\DC2\EOT\145\ENQ\ESC\FS\n\+ \j\n\+ \\EOT\EOT\ESC\STX\ACK\DC2\EOT\149\ENQ\EOT\GS\SUB\\ The minimum HTLC size in milli-satoshis. Only applied if\n\+ \ min_htlc_msat_specified is true.\n\+ \\n\+ \\r\n\+ \\ENQ\EOT\ESC\STX\ACK\ENQ\DC2\EOT\149\ENQ\EOT\n\+ \\n\+ \\r\n\+ \\ENQ\EOT\ESC\STX\ACK\SOH\DC2\EOT\149\ENQ\v\CAN\n\+ \\r\n\+ \\ENQ\EOT\ESC\STX\ACK\ETX\DC2\EOT\149\ENQ\ESC\FS\n\+ \2\n\+ \\EOT\EOT\ESC\STX\a\DC2\EOT\152\ENQ\EOT%\SUB$ If true, min_htlc_msat is applied.\n\+ \\n\+ \\r\n\+ \\ENQ\EOT\ESC\STX\a\ENQ\DC2\EOT\152\ENQ\EOT\b\n\+ \\r\n\+ \\ENQ\EOT\ESC\STX\a\SOH\DC2\EOT\152\ENQ\t \n\+ \\r\n\+ \\ENQ\EOT\ESC\STX\a\ETX\DC2\EOT\152\ENQ#$\n\+ \\f\n\+ \\STX\ENQ\STX\DC2\ACK\154\ENQ\NUL\160\ENQ\SOH\n\+ \\v\n\+ \\ETX\ENQ\STX\SOH\DC2\EOT\154\ENQ\ENQ\DC2\n\+ \\f\n\+ \\EOT\ENQ\STX\STX\NUL\DC2\EOT\155\ENQ\EOT\US\n\+ \\r\n\+ \\ENQ\ENQ\STX\STX\NUL\SOH\DC2\EOT\155\ENQ\EOT\SUB\n\+ \\r\n\+ \\ENQ\ENQ\STX\STX\NUL\STX\DC2\EOT\155\ENQ\GS\RS\n\+ \\f\n\+ \\EOT\ENQ\STX\STX\SOH\DC2\EOT\156\ENQ\EOT\US\n\+ \\r\n\+ \\ENQ\ENQ\STX\STX\SOH\SOH\DC2\EOT\156\ENQ\EOT\SUB\n\+ \\r\n\+ \\ENQ\ENQ\STX\STX\SOH\STX\DC2\EOT\156\ENQ\GS\RS\n\+ \\f\n\+ \\EOT\ENQ\STX\STX\STX\DC2\EOT\157\ENQ\EOT!\n\+ \\r\n\+ \\ENQ\ENQ\STX\STX\STX\SOH\DC2\EOT\157\ENQ\EOT\FS\n\+ \\r\n\+ \\ENQ\ENQ\STX\STX\STX\STX\DC2\EOT\157\ENQ\US \n\+ \\f\n\+ \\EOT\ENQ\STX\STX\ETX\DC2\EOT\158\ENQ\EOT$\n\+ \\r\n\+ \\ENQ\ENQ\STX\STX\ETX\SOH\DC2\EOT\158\ENQ\EOT\US\n\+ \\r\n\+ \\ENQ\ENQ\STX\STX\ETX\STX\DC2\EOT\158\ENQ\"#\n\+ \\f\n\+ \\EOT\ENQ\STX\STX\EOT\DC2\EOT\159\ENQ\EOT)\n\+ \\r\n\+ \\ENQ\ENQ\STX\STX\EOT\SOH\DC2\EOT\159\ENQ\EOT$\n\+ \\r\n\+ \\ENQ\ENQ\STX\STX\EOT\STX\DC2\EOT\159\ENQ'(\n\+ \\f\n\+ \\STX\EOT\FS\DC2\ACK\162\ENQ\NUL\171\ENQ\SOH\n\+ \\v\n\+ \\ETX\EOT\FS\SOH\DC2\EOT\162\ENQ\b\DC4\n\+ \-\n\+ \\EOT\EOT\FS\STX\NUL\DC2\EOT\164\ENQ\EOT\SUB\SUB\US The outpoint in format txid:n\n\+ \\n\+ \\r\n\+ \\ENQ\EOT\FS\STX\NUL\ACK\DC2\EOT\164\ENQ\EOT\f\n\+ \\r\n\+ \\ENQ\EOT\FS\STX\NUL\SOH\DC2\EOT\164\ENQ\r\NAK\n\+ \\r\n\+ \\ENQ\EOT\FS\STX\NUL\ETX\DC2\EOT\164\ENQ\CAN\EM\n\+ \5\n\+ \\EOT\EOT\FS\STX\SOH\DC2\EOT\167\ENQ\EOT\GS\SUB' Reason for the policy update failure.\n\+ \\n\+ \\r\n\+ \\ENQ\EOT\FS\STX\SOH\ACK\DC2\EOT\167\ENQ\EOT\DC1\n\+ \\r\n\+ \\ENQ\EOT\FS\STX\SOH\SOH\DC2\EOT\167\ENQ\DC2\CAN\n\+ \\r\n\+ \\ENQ\EOT\FS\STX\SOH\ETX\DC2\EOT\167\ENQ\ESC\FS\n\+ \C\n\+ \\EOT\EOT\FS\STX\STX\DC2\EOT\170\ENQ\EOT\FS\SUB5 A string representation of the policy update error.\n\+ \\n\+ \\r\n\+ \\ENQ\EOT\FS\STX\STX\ENQ\DC2\EOT\170\ENQ\EOT\n\+ \\n\+ \\r\n\+ \\ENQ\EOT\FS\STX\STX\SOH\DC2\EOT\170\ENQ\v\ETB\n\+ \\r\n\+ \\ENQ\EOT\FS\STX\STX\ETX\DC2\EOT\170\ENQ\SUB\ESC\n\+ \\f\n\+ \\STX\EOT\GS\DC2\ACK\173\ENQ\NUL\176\ENQ\SOH\n\+ \\v\n\+ \\ETX\EOT\GS\SOH\DC2\EOT\173\ENQ\b\FS\n\+ \.\n\+ \\EOT\EOT\GS\STX\NUL\DC2\EOT\175\ENQ\EOT-\SUB List of failed policy updates.\n\+ \\n\+ \\r\n\+ \\ENQ\EOT\GS\STX\NUL\EOT\DC2\EOT\175\ENQ\EOT\f\n\+ \\r\n\+ \\ENQ\EOT\GS\STX\NUL\ACK\DC2\EOT\175\ENQ\r\EM\n\+ \\r\n\+ \\ENQ\EOT\GS\STX\NUL\SOH\DC2\EOT\175\ENQ\SUB(\n\+ \\r\n\+ \\ENQ\EOT\GS\STX\NUL\ETX\DC2\EOT\175\ENQ+,\n\+ \\f\n\+ \\STX\EOT\RS\DC2\ACK\178\ENQ\NUL\196\ENQ\SOH\n\+ \\v\n\+ \\ETX\EOT\RS\SOH\DC2\EOT\178\ENQ\b \n\+ \\181\SOH\n\+ \\EOT\EOT\RS\STX\NUL\DC2\EOT\182\ENQ\EOT\SUB\SUB\166\SOH Start time is the starting point of the forwarding history request. All\n\+ \ records beyond this point will be included, respecting the end time, and\n\+ \ the index offset.\n\+ \\n\+ \\r\n\+ \\ENQ\EOT\RS\STX\NUL\ENQ\DC2\EOT\182\ENQ\EOT\n\+ \\n\+ \\r\n\+ \\ENQ\EOT\RS\STX\NUL\SOH\DC2\EOT\182\ENQ\v\NAK\n\+ \\r\n\+ \\ENQ\EOT\RS\STX\NUL\ETX\DC2\EOT\182\ENQ\CAN\EM\n\+ \\218\SOH\n\+ \\EOT\EOT\RS\STX\SOH\DC2\EOT\187\ENQ\EOT\CAN\SUB\203\SOH End time is the end point of the forwarding history request. The\n\+ \ response will carry at most 50k records between the start time and the\n\+ \ end time. The index offset can be used to implement pagination.\n\+ \\n\+ \\r\n\+ \\ENQ\EOT\RS\STX\SOH\ENQ\DC2\EOT\187\ENQ\EOT\n\+ \\n\+ \\r\n\+ \\ENQ\EOT\RS\STX\SOH\SOH\DC2\EOT\187\ENQ\v\DC3\n\+ \\r\n\+ \\ENQ\EOT\RS\STX\SOH\ETX\DC2\EOT\187\ENQ\SYN\ETB\n\+ \\189\SOH\n\+ \\EOT\EOT\RS\STX\STX\DC2\EOT\192\ENQ\EOT\FS\SUB\174\SOH Index offset is the offset in the time series to start at. As each\n\+ \ response can only contain 50k records, callers can use this to skip\n\+ \ around within a packed time series.\n\+ \\n\+ \\r\n\+ \\ENQ\EOT\RS\STX\STX\ENQ\DC2\EOT\192\ENQ\EOT\n\+ \\n\+ \\r\n\+ \\ENQ\EOT\RS\STX\STX\SOH\DC2\EOT\192\ENQ\v\ETB\n\+ \\r\n\+ \\ENQ\EOT\RS\STX\STX\ETX\DC2\EOT\192\ENQ\SUB\ESC\n\+ \Q\n\+ \\EOT\EOT\RS\STX\ETX\DC2\EOT\195\ENQ\EOT\RS\SUBC The max number of events to return in the response to this query.\n\+ \\n\+ \\r\n\+ \\ENQ\EOT\RS\STX\ETX\ENQ\DC2\EOT\195\ENQ\EOT\n\+ \\n\+ \\r\n\+ \\ENQ\EOT\RS\STX\ETX\SOH\DC2\EOT\195\ENQ\v\EM\n\+ \\r\n\+ \\ENQ\EOT\RS\STX\ETX\ETX\DC2\EOT\195\ENQ\FS\GS\n\+ \\f\n\+ \\STX\EOT\US\DC2\ACK\197\ENQ\NUL\238\ENQ\SOH\n\+ \\v\n\+ \\ETX\EOT\US\SOH\DC2\EOT\197\ENQ\b\ETB\n\+ \w\n\+ \\EOT\EOT\US\STX\NUL\DC2\EOT\200\ENQ\EOT-\SUBi Timestamp is the time (unix epoch offset) that this circuit was\n\+ \ completed. Deprecated by timestamp_ns.\n\+ \\n\+ \\r\n\+ \\ENQ\EOT\US\STX\NUL\ENQ\DC2\EOT\200\ENQ\EOT\n\+ \\n\+ \\r\n\+ \\ENQ\EOT\US\STX\NUL\SOH\DC2\EOT\200\ENQ\v\DC4\n\+ \\r\n\+ \\ENQ\EOT\US\STX\NUL\ETX\DC2\EOT\200\ENQ\ETB\CAN\n\+ \\r\n\+ \\ENQ\EOT\US\STX\NUL\b\DC2\EOT\200\ENQ\EM,\n\+ \\SO\n\+ \\ACK\EOT\US\STX\NUL\b\ETX\DC2\EOT\200\ENQ\SUB+\n\+ \W\n\+ \\EOT\EOT\US\STX\SOH\DC2\EOT\203\ENQ\EOT/\SUBI The incoming channel ID that carried the HTLC that created the circuit.\n\+ \\n\+ \\r\n\+ \\ENQ\EOT\US\STX\SOH\ENQ\DC2\EOT\203\ENQ\EOT\n\+ \\n\+ \\r\n\+ \\ENQ\EOT\US\STX\SOH\SOH\DC2\EOT\203\ENQ\v\NAK\n\+ \\r\n\+ \\ENQ\EOT\US\STX\SOH\ETX\DC2\EOT\203\ENQ\CAN\EM\n\+ \\r\n\+ \\ENQ\EOT\US\STX\SOH\b\DC2\EOT\203\ENQ\SUB.\n\+ \\SO\n\+ \\ACK\EOT\US\STX\SOH\b\ACK\DC2\EOT\203\ENQ\ESC-\n\+ \^\n\+ \\EOT\EOT\US\STX\STX\DC2\EOT\207\ENQ\EOT0\SUBP The outgoing channel ID that carried the preimage that completed the\n\+ \ circuit.\n\+ \\n\+ \\r\n\+ \\ENQ\EOT\US\STX\STX\ENQ\DC2\EOT\207\ENQ\EOT\n\+ \\n\+ \\r\n\+ \\ENQ\EOT\US\STX\STX\SOH\DC2\EOT\207\ENQ\v\SYN\n\+ \\r\n\+ \\ENQ\EOT\US\STX\STX\ETX\DC2\EOT\207\ENQ\EM\SUB\n\+ \\r\n\+ \\ENQ\EOT\US\STX\STX\b\DC2\EOT\207\ENQ\ESC/\n\+ \\SO\n\+ \\ACK\EOT\US\STX\STX\b\ACK\DC2\EOT\207\ENQ\FS.\n\+ \c\n\+ \\EOT\EOT\US\STX\ETX\DC2\EOT\211\ENQ\EOT\SYN\SUBU The total amount (in satoshis) of the incoming HTLC that created half\n\+ \ the circuit.\n\+ \\n\+ \\r\n\+ \\ENQ\EOT\US\STX\ETX\ENQ\DC2\EOT\211\ENQ\EOT\n\+ \\n\+ \\r\n\+ \\ENQ\EOT\US\STX\ETX\SOH\DC2\EOT\211\ENQ\v\DC1\n\+ \\r\n\+ \\ENQ\EOT\US\STX\ETX\ETX\DC2\EOT\211\ENQ\DC4\NAK\n\+ \q\n\+ \\EOT\EOT\US\STX\EOT\DC2\EOT\215\ENQ\EOT\ETB\SUBc The total amount (in satoshis) of the outgoing HTLC that created the\n\+ \ second half of the circuit.\n\+ \\n\+ \\r\n\+ \\ENQ\EOT\US\STX\EOT\ENQ\DC2\EOT\215\ENQ\EOT\n\+ \\n\+ \\r\n\+ \\ENQ\EOT\US\STX\EOT\SOH\DC2\EOT\215\ENQ\v\DC2\n\+ \\r\n\+ \\ENQ\EOT\US\STX\EOT\ETX\DC2\EOT\215\ENQ\NAK\SYN\n\+ \N\n\+ \\EOT\EOT\US\STX\ENQ\DC2\EOT\218\ENQ\EOT\DC3\SUB@ The total fee (in satoshis) that this payment circuit carried.\n\+ \\n\+ \\r\n\+ \\ENQ\EOT\US\STX\ENQ\ENQ\DC2\EOT\218\ENQ\EOT\n\+ \\n\+ \\r\n\+ \\ENQ\EOT\US\STX\ENQ\SOH\DC2\EOT\218\ENQ\v\SO\n\+ \\r\n\+ \\ENQ\EOT\US\STX\ENQ\ETX\DC2\EOT\218\ENQ\DC1\DC2\n\+ \T\n\+ \\EOT\EOT\US\STX\ACK\DC2\EOT\221\ENQ\EOT\CAN\SUBF The total fee (in milli-satoshis) that this payment circuit carried.\n\+ \\n\+ \\r\n\+ \\ENQ\EOT\US\STX\ACK\ENQ\DC2\EOT\221\ENQ\EOT\n\+ \\n\+ \\r\n\+ \\ENQ\EOT\US\STX\ACK\SOH\DC2\EOT\221\ENQ\v\DC3\n\+ \\r\n\+ \\ENQ\EOT\US\STX\ACK\ETX\DC2\EOT\221\ENQ\SYN\ETB\n\+ \i\n\+ \\EOT\EOT\US\STX\a\DC2\EOT\225\ENQ\EOT\ESC\SUB[ The total amount (in milli-satoshis) of the incoming HTLC that created\n\+ \ half the circuit.\n\+ \\n\+ \\r\n\+ \\ENQ\EOT\US\STX\a\ENQ\DC2\EOT\225\ENQ\EOT\n\+ \\n\+ \\r\n\+ \\ENQ\EOT\US\STX\a\SOH\DC2\EOT\225\ENQ\v\SYN\n\+ \\r\n\+ \\ENQ\EOT\US\STX\a\ETX\DC2\EOT\225\ENQ\EM\SUB\n\+ \w\n\+ \\EOT\EOT\US\STX\b\DC2\EOT\229\ENQ\EOT\GS\SUBi The total amount (in milli-satoshis) of the outgoing HTLC that created\n\+ \ the second half of the circuit.\n\+ \\n\+ \\r\n\+ \\ENQ\EOT\US\STX\b\ENQ\DC2\EOT\229\ENQ\EOT\n\+ \\n\+ \\r\n\+ \\ENQ\EOT\US\STX\b\SOH\DC2\EOT\229\ENQ\v\ETB\n\+ \\r\n\+ \\ENQ\EOT\US\STX\b\ETX\DC2\EOT\229\ENQ\SUB\FS\n\+ \m\n\+ \\EOT\EOT\US\STX\t\DC2\EOT\233\ENQ\EOT\GS\SUB_ The number of nanoseconds elapsed since January 1, 1970 UTC when this\n\+ \ circuit was completed.\n\+ \\n\+ \\r\n\+ \\ENQ\EOT\US\STX\t\ENQ\DC2\EOT\233\ENQ\EOT\n\+ \\n\+ \\r\n\+ \\ENQ\EOT\US\STX\t\SOH\DC2\EOT\233\ENQ\v\ETB\n\+ \\r\n\+ \\ENQ\EOT\US\STX\t\ETX\DC2\EOT\233\ENQ\SUB\FS\n\+ \\f\n\+ \\STX\EOT \DC2\ACK\239\ENQ\NUL\247\ENQ\SOH\n\+ \\v\n\+ \\ETX\EOT \SOH\DC2\EOT\239\ENQ\b!\n\+ \m\n\+ \\EOT\EOT \STX\NUL\DC2\EOT\242\ENQ\EOT3\SUB_ A list of forwarding events from the time slice of the time series\n\+ \ specified in the request.\n\+ \\n\+ \\r\n\+ \\ENQ\EOT \STX\NUL\EOT\DC2\EOT\242\ENQ\EOT\f\n\+ \\r\n\+ \\ENQ\EOT \STX\NUL\ACK\DC2\EOT\242\ENQ\r\FS\n\+ \\r\n\+ \\ENQ\EOT \STX\NUL\SOH\DC2\EOT\242\ENQ\GS.\n\+ \\r\n\+ \\ENQ\EOT \STX\NUL\ETX\DC2\EOT\242\ENQ12\n\+ \\132\SOH\n\+ \\EOT\EOT \STX\SOH\DC2\EOT\246\ENQ\EOT!\SUBv The index of the last time in the set of returned forwarding events. Can\n\+ \ be used to seek further, pagination style.\n\+ \\n\+ \\r\n\+ \\ENQ\EOT \STX\SOH\ENQ\DC2\EOT\246\ENQ\EOT\n\+ \\n\+ \\r\n\+ \\ENQ\EOT \STX\SOH\SOH\DC2\EOT\246\ENQ\v\FS\n\+ \\r\n\+ \\ENQ\EOT \STX\SOH\ETX\DC2\EOT\246\ENQ\US \n\+ \\f\n\+ \\STX\EOT!\DC2\ACK\249\ENQ\NUL\252\ENQ\SOH\n\+ \\v\n\+ \\ETX\EOT!\SOH\DC2\EOT\249\ENQ\b\"\n\+ \A\n\+ \\EOT\EOT!\STX\NUL\DC2\EOT\251\ENQ\EOT \SUB3 The target channel point to obtain a back up for.\n\+ \\n\+ \\r\n\+ \\ENQ\EOT!\STX\NUL\ACK\DC2\EOT\251\ENQ\EOT\DLE\n\+ \\r\n\+ \\ENQ\EOT!\STX\NUL\SOH\DC2\EOT\251\ENQ\DC1\ESC\n\+ \\r\n\+ \\ENQ\EOT!\STX\NUL\ETX\DC2\EOT\251\ENQ\RS\US\n\+ \\f\n\+ \\STX\EOT\"\DC2\ACK\254\ENQ\NUL\139\ACK\SOH\n\+ \\v\n\+ \\ETX\EOT\"\SOH\DC2\EOT\254\ENQ\b\NAK\n\+ \C\n\+ \\EOT\EOT\"\STX\NUL\DC2\EOT\130\ACK\EOT \SUB5\n\+ \Identifies the channel that this backup belongs to.\n\+ \\n\+ \\r\n\+ \\ENQ\EOT\"\STX\NUL\ACK\DC2\EOT\130\ACK\EOT\DLE\n\+ \\r\n\+ \\ENQ\EOT\"\STX\NUL\SOH\DC2\EOT\130\ACK\DC1\ESC\n\+ \\r\n\+ \\ENQ\EOT\"\STX\NUL\ETX\DC2\EOT\130\ACK\RS\US\n\+ \\241\SOH\n\+ \\EOT\EOT\"\STX\SOH\DC2\EOT\138\ACK\EOT\SUB\SUB\226\SOH\n\+ \Is an encrypted single-chan backup. this can be passed to\n\+ \RestoreChannelBackups, or the WalletUnlocker Init and Unlock methods in\n\+ \order to trigger the recovery protocol. When using REST, this field must be\n\+ \encoded as base64.\n\+ \\n\+ \\r\n\+ \\ENQ\EOT\"\STX\SOH\ENQ\DC2\EOT\138\ACK\EOT\t\n\+ \\r\n\+ \\ENQ\EOT\"\STX\SOH\SOH\DC2\EOT\138\ACK\n\+ \\NAK\n\+ \\r\n\+ \\ENQ\EOT\"\STX\SOH\ETX\DC2\EOT\138\ACK\CAN\EM\n\+ \\f\n\+ \\STX\EOT#\DC2\ACK\141\ACK\NUL\154\ACK\SOH\n\+ \\v\n\+ \\ETX\EOT#\SOH\DC2\EOT\141\ACK\b\ETB\n\+ \Z\n\+ \\EOT\EOT#\STX\NUL\DC2\EOT\145\ACK\EOT*\SUBL\n\+ \Is the set of all channels that are included in this multi-channel backup.\n\+ \\n\+ \\r\n\+ \\ENQ\EOT#\STX\NUL\EOT\DC2\EOT\145\ACK\EOT\f\n\+ \\r\n\+ \\ENQ\EOT#\STX\NUL\ACK\DC2\EOT\145\ACK\r\EM\n\+ \\r\n\+ \\ENQ\EOT#\STX\NUL\SOH\DC2\EOT\145\ACK\SUB%\n\+ \\r\n\+ \\ENQ\EOT#\STX\NUL\ETX\DC2\EOT\145\ACK()\n\+ \\138\STX\n\+ \\EOT\EOT#\STX\SOH\DC2\EOT\153\ACK\EOT \SUB\251\SOH\n\+ \A single encrypted blob containing all the static channel backups of the\n\+ \channel listed above. This can be stored as a single file or blob, and\n\+ \safely be replaced with any prior/future versions. When using REST, this\n\+ \field must be encoded as base64.\n\+ \\n\+ \\r\n\+ \\ENQ\EOT#\STX\SOH\ENQ\DC2\EOT\153\ACK\EOT\t\n\+ \\r\n\+ \\ENQ\EOT#\STX\SOH\SOH\DC2\EOT\153\ACK\n\+ \\ESC\n\+ \\r\n\+ \\ENQ\EOT#\STX\SOH\ETX\DC2\EOT\153\ACK\RS\US\n\+ \\f\n\+ \\STX\EOT$\DC2\ACK\156\ACK\NUL\157\ACK\SOH\n\+ \\v\n\+ \\ETX\EOT$\SOH\DC2\EOT\156\ACK\b\US\n\+ \\f\n\+ \\STX\EOT%\DC2\ACK\158\ACK\NUL\170\ACK\SOH\n\+ \\v\n\+ \\ETX\EOT%\SOH\DC2\EOT\158\ACK\b\SUB\n\+ \r\n\+ \\EOT\EOT%\STX\NUL\DC2\EOT\163\ACK\EOT+\SUBd\n\+ \The set of new channels that have been added since the last channel backup\n\+ \snapshot was requested.\n\+ \\n\+ \\r\n\+ \\ENQ\EOT%\STX\NUL\ACK\DC2\EOT\163\ACK\EOT\DC2\n\+ \\r\n\+ \\ENQ\EOT%\STX\NUL\SOH\DC2\EOT\163\ACK\DC3&\n\+ \\r\n\+ \\ENQ\EOT%\STX\NUL\ETX\DC2\EOT\163\ACK)*\n\+ \\\\n\+ \\EOT\EOT%\STX\SOH\DC2\EOT\169\ACK\EOT*\SUBN\n\+ \A multi-channel backup that covers all open channels currently known to\n\+ \lnd.\n\+ \\n\+ \\r\n\+ \\ENQ\EOT%\STX\SOH\ACK\DC2\EOT\169\ACK\EOT\DC3\n\+ \\r\n\+ \\ENQ\EOT%\STX\SOH\SOH\DC2\EOT\169\ACK\DC4%\n\+ \\r\n\+ \\ENQ\EOT%\STX\SOH\ETX\DC2\EOT\169\ACK()\n\+ \\f\n\+ \\STX\EOT&\DC2\ACK\172\ACK\NUL\177\ACK\SOH\n\+ \\v\n\+ \\ETX\EOT&\SOH\DC2\EOT\172\ACK\b\SYN\n\+ \<\n\+ \\EOT\EOT&\STX\NUL\DC2\EOT\176\ACK\EOT,\SUB.\n\+ \A set of single-chan static channel backups.\n\+ \\n\+ \\r\n\+ \\ENQ\EOT&\STX\NUL\EOT\DC2\EOT\176\ACK\EOT\f\n\+ \\r\n\+ \\ENQ\EOT&\STX\NUL\ACK\DC2\EOT\176\ACK\r\SUB\n\+ \\r\n\+ \\ENQ\EOT&\STX\NUL\SOH\DC2\EOT\176\ACK\ESC'\n\+ \\r\n\+ \\ENQ\EOT&\STX\NUL\ETX\DC2\EOT\176\ACK*+\n\+ \\f\n\+ \\STX\EOT'\DC2\ACK\179\ACK\NUL\192\ACK\SOH\n\+ \\v\n\+ \\ETX\EOT'\SOH\DC2\EOT\179\ACK\b \n\+ \\SO\n\+ \\EOT\EOT'\b\NUL\DC2\ACK\180\ACK\EOT\191\ACK\ENQ\n\+ \\r\n\+ \\ENQ\EOT'\b\NUL\SOH\DC2\EOT\180\ACK\n\+ \\DLE\n\+ \J\n\+ \\EOT\EOT'\STX\NUL\DC2\EOT\184\ACK\b(\SUB<\n\+ \The channels to restore as a list of channel/backup pairs.\n\+ \\n\+ \\r\n\+ \\ENQ\EOT'\STX\NUL\ACK\DC2\EOT\184\ACK\b\SYN\n\+ \\r\n\+ \\ENQ\EOT'\STX\NUL\SOH\DC2\EOT\184\ACK\ETB#\n\+ \\r\n\+ \\ENQ\EOT'\STX\NUL\ETX\DC2\EOT\184\ACK&'\n\+ \\129\SOH\n\+ \\EOT\EOT'\STX\SOH\DC2\EOT\190\ACK\b$\SUBs\n\+ \The channels to restore in the packed multi backup format. When using\n\+ \REST, this field must be encoded as base64.\n\+ \\n\+ \\r\n\+ \\ENQ\EOT'\STX\SOH\ENQ\DC2\EOT\190\ACK\b\r\n\+ \\r\n\+ \\ENQ\EOT'\STX\SOH\SOH\DC2\EOT\190\ACK\SO\US\n\+ \\r\n\+ \\ENQ\EOT'\STX\SOH\ETX\DC2\EOT\190\ACK\"#\n\+ \\f\n\+ \\STX\EOT(\DC2\ACK\193\ACK\NUL\194\ACK\SOH\n\+ \\v\n\+ \\ETX\EOT(\SOH\DC2\EOT\193\ACK\b\GS\n\+ \\f\n\+ \\STX\EOT)\DC2\ACK\196\ACK\NUL\197\ACK\SOH\n\+ \\v\n\+ \\ETX\EOT)\SOH\DC2\EOT\196\ACK\b!\n\+ \\f\n\+ \\STX\EOT*\DC2\ACK\199\ACK\NUL\200\ACK\SOH\n\+ \\v\n\+ \\ETX\EOT*\SOH\DC2\EOT\199\ACK\b \n\+ \\f\n\+ \\STX\EOT+\DC2\ACK\202\ACK\NUL\208\ACK\SOH\n\+ \\v\n\+ \\ETX\EOT+\SOH\DC2\EOT\202\ACK\b\SUB\n\+ \9\n\+ \\EOT\EOT+\STX\NUL\DC2\EOT\204\ACK\EOT\SYN\SUB+ The entity a permission grants access to.\n\+ \\n\+ \\r\n\+ \\ENQ\EOT+\STX\NUL\ENQ\DC2\EOT\204\ACK\EOT\n\+ \\n\+ \\r\n\+ \\ENQ\EOT+\STX\NUL\SOH\DC2\EOT\204\ACK\v\DC1\n\+ \\r\n\+ \\ENQ\EOT+\STX\NUL\ETX\DC2\EOT\204\ACK\DC4\NAK\n\+ \+\n\+ \\EOT\EOT+\STX\SOH\DC2\EOT\207\ACK\EOT\SYN\SUB\GS The action that is granted.\n\+ \\n\+ \\r\n\+ \\ENQ\EOT+\STX\SOH\ENQ\DC2\EOT\207\ACK\EOT\n\+ \\n\+ \\r\n\+ \\ENQ\EOT+\STX\SOH\SOH\DC2\EOT\207\ACK\v\DC1\n\+ \\r\n\+ \\ENQ\EOT+\STX\SOH\ETX\DC2\EOT\207\ACK\DC4\NAK\n\+ \\f\n\+ \\STX\EOT,\DC2\ACK\209\ACK\NUL\221\ACK\SOH\n\+ \\v\n\+ \\ETX\EOT,\SOH\DC2\EOT\209\ACK\b\ESC\n\+ \F\n\+ \\EOT\EOT,\STX\NUL\DC2\EOT\211\ACK\EOT0\SUB8 The list of permissions the new macaroon should grant.\n\+ \\n\+ \\r\n\+ \\ENQ\EOT,\STX\NUL\EOT\DC2\EOT\211\ACK\EOT\f\n\+ \\r\n\+ \\ENQ\EOT,\STX\NUL\ACK\DC2\EOT\211\ACK\r\US\n\+ \\r\n\+ \\ENQ\EOT,\STX\NUL\SOH\DC2\EOT\211\ACK +\n\+ \\r\n\+ \\ENQ\EOT,\STX\NUL\ETX\DC2\EOT\211\ACK./\n\+ \X\n\+ \\EOT\EOT,\STX\SOH\DC2\EOT\214\ACK\EOT\ESC\SUBJ The root key ID used to create the macaroon, must be a positive integer.\n\+ \\n\+ \\r\n\+ \\ENQ\EOT,\STX\SOH\ENQ\DC2\EOT\214\ACK\EOT\n\+ \\n\+ \\r\n\+ \\ENQ\EOT,\STX\SOH\SOH\DC2\EOT\214\ACK\v\SYN\n\+ \\r\n\+ \\ENQ\EOT,\STX\SOH\ETX\DC2\EOT\214\ACK\EM\SUB\n\+ \b\n\+ \\EOT\EOT,\STX\STX\DC2\EOT\220\ACK\EOT(\SUBT\n\+ \Informs the RPC on whether to allow external permissions that LND is not\n\+ \aware of.\n\+ \\n\+ \\r\n\+ \\ENQ\EOT,\STX\STX\ENQ\DC2\EOT\220\ACK\EOT\b\n\+ \\r\n\+ \\ENQ\EOT,\STX\STX\SOH\DC2\EOT\220\ACK\t#\n\+ \\r\n\+ \\ENQ\EOT,\STX\STX\ETX\DC2\EOT\220\ACK&'\n\+ \\f\n\+ \\STX\EOT-\DC2\ACK\222\ACK\NUL\225\ACK\SOH\n\+ \\v\n\+ \\ETX\EOT-\SOH\DC2\EOT\222\ACK\b\FS\n\+ \F\n\+ \\EOT\EOT-\STX\NUL\DC2\EOT\224\ACK\EOT\CAN\SUB8 The hex encoded macaroon, serialized in binary format.\n\+ \\n\+ \\r\n\+ \\ENQ\EOT-\STX\NUL\ENQ\DC2\EOT\224\ACK\EOT\n\+ \\n\+ \\r\n\+ \\ENQ\EOT-\STX\NUL\SOH\DC2\EOT\224\ACK\v\DC3\n\+ \\r\n\+ \\ENQ\EOT-\STX\NUL\ETX\DC2\EOT\224\ACK\SYN\ETB\n\+ \\f\n\+ \\STX\EOT.\DC2\ACK\227\ACK\NUL\228\ACK\SOH\n\+ \\v\n\+ \\ETX\EOT.\SOH\DC2\EOT\227\ACK\b\RS\n\+ \\f\n\+ \\STX\EOT/\DC2\ACK\229\ACK\NUL\232\ACK\SOH\n\+ \\v\n\+ \\ETX\EOT/\SOH\DC2\EOT\229\ACK\b\US\n\+ \9\n\+ \\EOT\EOT/\STX\NUL\DC2\EOT\231\ACK\EOT%\SUB+ The list of root key IDs that are in use.\n\+ \\n\+ \\r\n\+ \\ENQ\EOT/\STX\NUL\EOT\DC2\EOT\231\ACK\EOT\f\n\+ \\r\n\+ \\ENQ\EOT/\STX\NUL\ENQ\DC2\EOT\231\ACK\r\DC3\n\+ \\r\n\+ \\ENQ\EOT/\STX\NUL\SOH\DC2\EOT\231\ACK\DC4 \n\+ \\r\n\+ \\ENQ\EOT/\STX\NUL\ETX\DC2\EOT\231\ACK#$\n\+ \\f\n\+ \\STX\EOT0\DC2\ACK\234\ACK\NUL\237\ACK\SOH\n\+ \\v\n\+ \\ETX\EOT0\SOH\DC2\EOT\234\ACK\b\US\n\+ \.\n\+ \\EOT\EOT0\STX\NUL\DC2\EOT\236\ACK\EOT\ESC\SUB The root key ID to be removed.\n\+ \\n\+ \\r\n\+ \\ENQ\EOT0\STX\NUL\ENQ\DC2\EOT\236\ACK\EOT\n\+ \\n\+ \\r\n\+ \\ENQ\EOT0\STX\NUL\SOH\DC2\EOT\236\ACK\v\SYN\n\+ \\r\n\+ \\ENQ\EOT0\STX\NUL\ETX\DC2\EOT\236\ACK\EM\SUB\n\+ \\f\n\+ \\STX\EOT1\DC2\ACK\238\ACK\NUL\241\ACK\SOH\n\+ \\v\n\+ \\ETX\EOT1\SOH\DC2\EOT\238\ACK\b \n\+ \D\n\+ \\EOT\EOT1\STX\NUL\DC2\EOT\240\ACK\EOT\NAK\SUB6 A boolean indicates that the deletion is successful.\n\+ \\n\+ \\r\n\+ \\ENQ\EOT1\STX\NUL\ENQ\DC2\EOT\240\ACK\EOT\b\n\+ \\r\n\+ \\ENQ\EOT1\STX\NUL\SOH\DC2\EOT\240\ACK\t\DLE\n\+ \\r\n\+ \\ENQ\EOT1\STX\NUL\ETX\DC2\EOT\240\ACK\DC3\DC4\n\+ \\f\n\+ \\STX\EOT2\DC2\ACK\243\ACK\NUL\246\ACK\SOH\n\+ \\v\n\+ \\ETX\EOT2\SOH\DC2\EOT\243\ACK\b\RS\n\+ \/\n\+ \\EOT\EOT2\STX\NUL\DC2\EOT\245\ACK\EOT0\SUB! A list of macaroon permissions.\n\+ \\n\+ \\r\n\+ \\ENQ\EOT2\STX\NUL\EOT\DC2\EOT\245\ACK\EOT\f\n\+ \\r\n\+ \\ENQ\EOT2\STX\NUL\ACK\DC2\EOT\245\ACK\r\US\n\+ \\r\n\+ \\ENQ\EOT2\STX\NUL\SOH\DC2\EOT\245\ACK +\n\+ \\r\n\+ \\ENQ\EOT2\STX\NUL\ETX\DC2\EOT\245\ACK./\n\+ \\f\n\+ \\STX\EOT3\DC2\ACK\248\ACK\NUL\249\ACK\SOH\n\+ \\v\n\+ \\ETX\EOT3\SOH\DC2\EOT\248\ACK\b\RS\n\+ \\f\n\+ \\STX\EOT4\DC2\ACK\250\ACK\NUL\128\a\SOH\n\+ \\v\n\+ \\ETX\EOT4\SOH\DC2\EOT\250\ACK\b\US\n\+ \i\n\+ \\EOT\EOT4\STX\NUL\DC2\EOT\255\ACK\EOT?\SUB[\n\+ \A map between all RPC method URIs and their required macaroon permissions to\n\+ \access them.\n\+ \\n\+ \\r\n\+ \\ENQ\EOT4\STX\NUL\ACK\DC2\EOT\255\ACK\EOT'\n\+ \\r\n\+ \\ENQ\EOT4\STX\NUL\SOH\DC2\EOT\255\ACK(:\n\+ \\r\n\+ \\ENQ\EOT4\STX\NUL\ETX\DC2\EOT\255\ACK=>\n\+ \\f\n\+ \\STX\EOT5\DC2\ACK\130\a\NUL\209\a\SOH\n\+ \\v\n\+ \\ETX\EOT5\SOH\DC2\EOT\130\a\b\SI\n\+ \\SO\n\+ \\EOT\EOT5\EOT\NUL\DC2\ACK\131\a\EOT\179\a\ENQ\n\+ \\r\n\+ \\ENQ\EOT5\EOT\NUL\SOH\DC2\EOT\131\a\t\DC4\n\+ \\184\SOH\n\+ \\ACK\EOT5\EOT\NUL\STX\NUL\DC2\EOT\137\a\b\NAK\SUB\167\SOH\n\+ \The numbers assigned in this enumeration match the failure codes as\n\+ \defined in BOLT #4. Because protobuf 3 requires enums to start with 0,\n\+ \a RESERVED value is added.\n\+ \\n\+ \\SI\n\+ \\a\EOT5\EOT\NUL\STX\NUL\SOH\DC2\EOT\137\a\b\DLE\n\+ \\SI\n\+ \\a\EOT5\EOT\NUL\STX\NUL\STX\DC2\EOT\137\a\DC3\DC4\n\+ \\SO\n\+ \\ACK\EOT5\EOT\NUL\STX\SOH\DC2\EOT\139\a\b1\n\+ \\SI\n\+ \\a\EOT5\EOT\NUL\STX\SOH\SOH\DC2\EOT\139\a\b,\n\+ \\SI\n\+ \\a\EOT5\EOT\NUL\STX\SOH\STX\DC2\EOT\139\a/0\n\+ \\SO\n\+ \\ACK\EOT5\EOT\NUL\STX\STX\DC2\EOT\140\a\b%\n\+ \\SI\n\+ \\a\EOT5\EOT\NUL\STX\STX\SOH\DC2\EOT\140\a\b \n\+ \\SI\n\+ \\a\EOT5\EOT\NUL\STX\STX\STX\DC2\EOT\140\a#$\n\+ \\SO\n\+ \\ACK\EOT5\EOT\NUL\STX\ETX\DC2\EOT\141\a\b(\n\+ \\SI\n\+ \\a\EOT5\EOT\NUL\STX\ETX\SOH\DC2\EOT\141\a\b#\n\+ \\SI\n\+ \\a\EOT5\EOT\NUL\STX\ETX\STX\DC2\EOT\141\a&'\n\+ \\SO\n\+ \\ACK\EOT5\EOT\NUL\STX\EOT\DC2\EOT\142\a\b(\n\+ \\SI\n\+ \\a\EOT5\EOT\NUL\STX\EOT\SOH\DC2\EOT\142\a\b#\n\+ \\SI\n\+ \\a\EOT5\EOT\NUL\STX\EOT\STX\DC2\EOT\142\a&'\n\+ \\SO\n\+ \\ACK\EOT5\EOT\NUL\STX\ENQ\DC2\EOT\143\a\b\"\n\+ \\SI\n\+ \\a\EOT5\EOT\NUL\STX\ENQ\SOH\DC2\EOT\143\a\b\GS\n\+ \\SI\n\+ \\a\EOT5\EOT\NUL\STX\ENQ\STX\DC2\EOT\143\a !\n\+ \\SO\n\+ \\ACK\EOT5\EOT\NUL\STX\ACK\DC2\EOT\144\a\b\SUB\n\+ \\SI\n\+ \\a\EOT5\EOT\NUL\STX\ACK\SOH\DC2\EOT\144\a\b\NAK\n\+ \\SI\n\+ \\a\EOT5\EOT\NUL\STX\ACK\STX\DC2\EOT\144\a\CAN\EM\n\+ \\SO\n\+ \\ACK\EOT5\EOT\NUL\STX\a\DC2\EOT\145\a\b\FS\n\+ \\SI\n\+ \\a\EOT5\EOT\NUL\STX\a\SOH\DC2\EOT\145\a\b\ETB\n\+ \\SI\n\+ \\a\EOT5\EOT\NUL\STX\a\STX\DC2\EOT\145\a\SUB\ESC\n\+ \\SO\n\+ \\ACK\EOT5\EOT\NUL\STX\b\DC2\EOT\146\a\b\"\n\+ \\SI\n\+ \\a\EOT5\EOT\NUL\STX\b\SOH\DC2\EOT\146\a\b\GS\n\+ \\SI\n\+ \\a\EOT5\EOT\NUL\STX\b\STX\DC2\EOT\146\a !\n\+ \\SO\n\+ \\ACK\EOT5\EOT\NUL\STX\t\DC2\EOT\147\a\b\US\n\+ \\SI\n\+ \\a\EOT5\EOT\NUL\STX\t\SOH\DC2\EOT\147\a\b\SUB\n\+ \\SI\n\+ \\a\EOT5\EOT\NUL\STX\t\STX\DC2\EOT\147\a\GS\RS\n\+ \\SO\n\+ \\ACK\EOT5\EOT\NUL\STX\n\+ \\DC2\EOT\148\a\b\US\n\+ \\SI\n\+ \\a\EOT5\EOT\NUL\STX\n\+ \\SOH\DC2\EOT\148\a\b\EM\n\+ \\SI\n\+ \\a\EOT5\EOT\NUL\STX\n\+ \\STX\DC2\EOT\148\a\FS\RS\n\+ \\SO\n\+ \\ACK\EOT5\EOT\NUL\STX\v\DC2\EOT\149\a\b\"\n\+ \\SI\n\+ \\a\EOT5\EOT\NUL\STX\v\SOH\DC2\EOT\149\a\b\FS\n\+ \\SI\n\+ \\a\EOT5\EOT\NUL\STX\v\STX\DC2\EOT\149\a\US!\n\+ \\SO\n\+ \\ACK\EOT5\EOT\NUL\STX\f\DC2\EOT\150\a\b\RS\n\+ \\SI\n\+ \\a\EOT5\EOT\NUL\STX\f\SOH\DC2\EOT\150\a\b\CAN\n\+ \\SI\n\+ \\a\EOT5\EOT\NUL\STX\f\STX\DC2\EOT\150\a\ESC\GS\n\+ \\SO\n\+ \\ACK\EOT5\EOT\NUL\STX\r\DC2\EOT\151\a\b#\n\+ \\SI\n\+ \\a\EOT5\EOT\NUL\STX\r\SOH\DC2\EOT\151\a\b\GS\n\+ \\SI\n\+ \\a\EOT5\EOT\NUL\STX\r\STX\DC2\EOT\151\a \"\n\+ \\SO\n\+ \\ACK\EOT5\EOT\NUL\STX\SO\DC2\EOT\152\a\b\RS\n\+ \\SI\n\+ \\a\EOT5\EOT\NUL\STX\SO\SOH\DC2\EOT\152\a\b\CAN\n\+ \\SI\n\+ \\a\EOT5\EOT\NUL\STX\SO\STX\DC2\EOT\152\a\ESC\GS\n\+ \\SO\n\+ \\ACK\EOT5\EOT\NUL\STX\SI\DC2\EOT\153\a\b'\n\+ \\SI\n\+ \\a\EOT5\EOT\NUL\STX\SI\SOH\DC2\EOT\153\a\b!\n\+ \\SI\n\+ \\a\EOT5\EOT\NUL\STX\SI\STX\DC2\EOT\153\a$&\n\+ \\SO\n\+ \\ACK\EOT5\EOT\NUL\STX\DLE\DC2\EOT\154\a\b+\n\+ \\SI\n\+ \\a\EOT5\EOT\NUL\STX\DLE\SOH\DC2\EOT\154\a\b%\n\+ \\SI\n\+ \\a\EOT5\EOT\NUL\STX\DLE\STX\DC2\EOT\154\a(*\n\+ \\SO\n\+ \\ACK\EOT5\EOT\NUL\STX\DC1\DC2\EOT\155\a\b.\n\+ \\SI\n\+ \\a\EOT5\EOT\NUL\STX\DC1\SOH\DC2\EOT\155\a\b(\n\+ \\SI\n\+ \\a\EOT5\EOT\NUL\STX\DC1\STX\DC2\EOT\155\a+-\n\+ \\SO\n\+ \\ACK\EOT5\EOT\NUL\STX\DC2\DC2\EOT\156\a\b\US\n\+ \\SI\n\+ \\a\EOT5\EOT\NUL\STX\DC2\SOH\DC2\EOT\156\a\b\EM\n\+ \\SI\n\+ \\a\EOT5\EOT\NUL\STX\DC2\STX\DC2\EOT\156\a\FS\RS\n\+ \\SO\n\+ \\ACK\EOT5\EOT\NUL\STX\DC3\DC2\EOT\157\a\b$\n\+ \\SI\n\+ \\a\EOT5\EOT\NUL\STX\DC3\SOH\DC2\EOT\157\a\b\RS\n\+ \\SI\n\+ \\a\EOT5\EOT\NUL\STX\DC3\STX\DC2\EOT\157\a!#\n\+ \\SO\n\+ \\ACK\EOT5\EOT\NUL\STX\DC4\DC2\EOT\158\a\b$\n\+ \\SI\n\+ \\a\EOT5\EOT\NUL\STX\DC4\SOH\DC2\EOT\158\a\b\RS\n\+ \\SI\n\+ \\a\EOT5\EOT\NUL\STX\DC4\STX\DC2\EOT\158\a!#\n\+ \\SO\n\+ \\ACK\EOT5\EOT\NUL\STX\NAK\DC2\EOT\159\a\b'\n\+ \\SI\n\+ \\a\EOT5\EOT\NUL\STX\NAK\SOH\DC2\EOT\159\a\b!\n\+ \\SI\n\+ \\a\EOT5\EOT\NUL\STX\NAK\STX\DC2\EOT\159\a$&\n\+ \\SO\n\+ \\ACK\EOT5\EOT\NUL\STX\SYN\DC2\EOT\160\a\b\FS\n\+ \\SI\n\+ \\a\EOT5\EOT\NUL\STX\SYN\SOH\DC2\EOT\160\a\b\SYN\n\+ \\SI\n\+ \\a\EOT5\EOT\NUL\STX\SYN\STX\DC2\EOT\160\a\EM\ESC\n\+ \\SO\n\+ \\ACK\EOT5\EOT\NUL\STX\ETB\DC2\EOT\161\a\b\EM\n\+ \\SI\n\+ \\a\EOT5\EOT\NUL\STX\ETB\SOH\DC2\EOT\161\a\b\DC3\n\+ \\SI\n\+ \\a\EOT5\EOT\NUL\STX\ETB\STX\DC2\EOT\161\a\SYN\CAN\n\+ \\SO\n\+ \\ACK\EOT5\EOT\NUL\STX\CAN\DC2\EOT\162\a\b#\n\+ \\SI\n\+ \\a\EOT5\EOT\NUL\STX\CAN\SOH\DC2\EOT\162\a\b\GS\n\+ \\SI\n\+ \\a\EOT5\EOT\NUL\STX\CAN\STX\DC2\EOT\162\a \"\n\+ \-\n\+ \\ACK\EOT5\EOT\NUL\STX\EM\DC2\EOT\167\a\b\US\SUB\GS\n\+ \An internal error occurred.\n\+ \\n\+ \\SI\n\+ \\a\EOT5\EOT\NUL\STX\EM\SOH\DC2\EOT\167\a\b\CAN\n\+ \\SI\n\+ \\a\EOT5\EOT\NUL\STX\EM\STX\DC2\EOT\167\a\ESC\RS\n\+ \X\n\+ \\ACK\EOT5\EOT\NUL\STX\SUB\DC2\EOT\172\a\b\RS\SUBH\n\+ \The error source is known, but the failure itself couldn't be decoded.\n\+ \\n\+ \\SI\n\+ \\a\EOT5\EOT\NUL\STX\SUB\SOH\DC2\EOT\172\a\b\ETB\n\+ \\SI\n\+ \\a\EOT5\EOT\NUL\STX\SUB\STX\DC2\EOT\172\a\SUB\GS\n\+ \\154\SOH\n\+ \\ACK\EOT5\EOT\NUL\STX\ESC\DC2\EOT\178\a\b!\SUB\137\SOH\n\+ \An unreadable failure result is returned if the received failure message\n\+ \cannot be decrypted. In that case the error source is unknown.\n\+ \\n\+ \\SI\n\+ \\a\EOT5\EOT\NUL\STX\ESC\SOH\DC2\EOT\178\a\b\SUB\n\+ \\SI\n\+ \\a\EOT5\EOT\NUL\STX\ESC\STX\DC2\EOT\178\a\GS \n\+ \=\n\+ \\EOT\EOT5\STX\NUL\DC2\EOT\182\a\EOT\EM\SUB/ Failure code as defined in the Lightning spec\n\+ \\n\+ \\r\n\+ \\ENQ\EOT5\STX\NUL\ACK\DC2\EOT\182\a\EOT\SI\n\+ \\r\n\+ \\ENQ\EOT5\STX\NUL\SOH\DC2\EOT\182\a\DLE\DC4\n\+ \\r\n\+ \\ENQ\EOT5\STX\NUL\ETX\DC2\EOT\182\a\ETB\CAN\n\+ \\v\n\+ \\ETX\EOT5\t\DC2\EOT\184\a\EOT\SI\n\+ \\f\n\+ \\EOT\EOT5\t\NUL\DC2\EOT\184\a\r\SO\n\+ \\r\n\+ \\ENQ\EOT5\t\NUL\SOH\DC2\EOT\184\a\r\SO\n\+ \\r\n\+ \\ENQ\EOT5\t\NUL\STX\DC2\EOT\184\a\r\SO\n\+ \3\n\+ \\EOT\EOT5\STX\SOH\DC2\EOT\187\a\EOT%\SUB% An optional channel update message.\n\+ \\n\+ \\r\n\+ \\ENQ\EOT5\STX\SOH\ACK\DC2\EOT\187\a\EOT\DC1\n\+ \\r\n\+ \\ENQ\EOT5\STX\SOH\SOH\DC2\EOT\187\a\DC2 \n\+ \\r\n\+ \\ENQ\EOT5\STX\SOH\ETX\DC2\EOT\187\a#$\n\+ \4\n\+ \\EOT\EOT5\STX\STX\DC2\EOT\190\a\EOT\EM\SUB& A failure type-dependent htlc value.\n\+ \\n\+ \\r\n\+ \\ENQ\EOT5\STX\STX\ENQ\DC2\EOT\190\a\EOT\n\+ \\n\+ \\r\n\+ \\ENQ\EOT5\STX\STX\SOH\DC2\EOT\190\a\v\DC4\n\+ \\r\n\+ \\ENQ\EOT5\STX\STX\ETX\DC2\EOT\190\a\ETB\CAN\n\+ \4\n\+ \\EOT\EOT5\STX\ETX\DC2\EOT\193\a\EOT\FS\SUB& The sha256 sum of the onion payload.\n\+ \\n\+ \\r\n\+ \\ENQ\EOT5\STX\ETX\ENQ\DC2\EOT\193\a\EOT\t\n\+ \\r\n\+ \\ENQ\EOT5\STX\ETX\SOH\DC2\EOT\193\a\n\+ \\ETB\n\+ \\r\n\+ \\ENQ\EOT5\STX\ETX\ETX\DC2\EOT\193\a\SUB\ESC\n\+ \;\n\+ \\EOT\EOT5\STX\EOT\DC2\EOT\196\a\EOT\ESC\SUB- A failure type-dependent cltv expiry value.\n\+ \\n\+ \\r\n\+ \\ENQ\EOT5\STX\EOT\ENQ\DC2\EOT\196\a\EOT\n\+ \\n\+ \\r\n\+ \\ENQ\EOT5\STX\EOT\SOH\DC2\EOT\196\a\v\SYN\n\+ \\r\n\+ \\ENQ\EOT5\STX\EOT\ETX\DC2\EOT\196\a\EM\SUB\n\+ \5\n\+ \\EOT\EOT5\STX\ENQ\DC2\EOT\199\a\EOT\NAK\SUB' A failure type-dependent flags value.\n\+ \\n\+ \\r\n\+ \\ENQ\EOT5\STX\ENQ\ENQ\DC2\EOT\199\a\EOT\n\+ \\n\+ \\r\n\+ \\ENQ\EOT5\STX\ENQ\SOH\DC2\EOT\199\a\v\DLE\n\+ \\r\n\+ \\ENQ\EOT5\STX\ENQ\ETX\DC2\EOT\199\a\DC3\DC4\n\+ \\145\SOH\n\+ \\EOT\EOT5\STX\ACK\DC2\EOT\205\a\EOT$\SUB\130\SOH\n\+ \The position in the path of the intermediate or final node that generated\n\+ \the failure message. Position zero is the sender node.\n\+ \\n\+ \\r\n\+ \\ENQ\EOT5\STX\ACK\ENQ\DC2\EOT\205\a\EOT\n\+ \\n\+ \\r\n\+ \\ENQ\EOT5\STX\ACK\SOH\DC2\EOT\205\a\v\US\n\+ \\r\n\+ \\ENQ\EOT5\STX\ACK\ETX\DC2\EOT\205\a\"#\n\+ \6\n\+ \\EOT\EOT5\STX\a\DC2\EOT\208\a\EOT\SYN\SUB( A failure type-dependent block height.\n\+ \\n\+ \\r\n\+ \\ENQ\EOT5\STX\a\ENQ\DC2\EOT\208\a\EOT\n\+ \\n\+ \\r\n\+ \\ENQ\EOT5\STX\a\SOH\DC2\EOT\208\a\v\DC1\n\+ \\r\n\+ \\ENQ\EOT5\STX\a\ETX\DC2\EOT\208\a\DC4\NAK\n\+ \\f\n\+ \\STX\EOT6\DC2\ACK\211\a\NUL\164\b\SOH\n\+ \\v\n\+ \\ETX\EOT6\SOH\DC2\EOT\211\a\b\NAK\n\+ \d\n\+ \\EOT\EOT6\STX\NUL\DC2\EOT\216\a\EOT\CAN\SUBV\n\+ \The signature that validates the announced data and proves the ownership\n\+ \of node id.\n\+ \\n\+ \\r\n\+ \\ENQ\EOT6\STX\NUL\ENQ\DC2\EOT\216\a\EOT\t\n\+ \\r\n\+ \\ENQ\EOT6\STX\NUL\SOH\DC2\EOT\216\a\n\+ \\DC3\n\+ \\r\n\+ \\ENQ\EOT6\STX\NUL\ETX\DC2\EOT\216\a\SYN\ETB\n\+ \\225\SOH\n\+ \\EOT\EOT6\STX\SOH\DC2\EOT\224\a\EOT\EM\SUB\210\SOH\n\+ \The target chain that this channel was opened within. This value\n\+ \should be the genesis hash of the target chain. Along with the short\n\+ \channel ID, this uniquely identifies the channel globally in a\n\+ \blockchain.\n\+ \\n\+ \\r\n\+ \\ENQ\EOT6\STX\SOH\ENQ\DC2\EOT\224\a\EOT\t\n\+ \\r\n\+ \\ENQ\EOT6\STX\SOH\SOH\DC2\EOT\224\a\n\+ \\DC4\n\+ \\r\n\+ \\ENQ\EOT6\STX\SOH\ETX\DC2\EOT\224\a\ETB\CAN\n\+ \B\n\+ \\EOT\EOT6\STX\STX\DC2\EOT\229\a\EOT,\SUB4\n\+ \The unique description of the funding transaction.\n\+ \\n\+ \\r\n\+ \\ENQ\EOT6\STX\STX\ENQ\DC2\EOT\229\a\EOT\n\+ \\n\+ \\r\n\+ \\ENQ\EOT6\STX\STX\SOH\DC2\EOT\229\a\v\DC2\n\+ \\r\n\+ \\ENQ\EOT6\STX\STX\ETX\DC2\EOT\229\a\NAK\SYN\n\+ \\r\n\+ \\ENQ\EOT6\STX\STX\b\DC2\EOT\229\a\ETB+\n\+ \\SO\n\+ \\ACK\EOT6\STX\STX\b\ACK\DC2\EOT\229\a\CAN*\n\+ \\169\SOH\n\+ \\EOT\EOT6\STX\ETX\DC2\EOT\236\a\EOT\EM\SUB\154\SOH\n\+ \A timestamp that allows ordering in the case of multiple announcements.\n\+ \We should ignore the message if timestamp is not greater than the\n\+ \last-received.\n\+ \\n\+ \\r\n\+ \\ENQ\EOT6\STX\ETX\ENQ\DC2\EOT\236\a\EOT\n\+ \\n\+ \\r\n\+ \\ENQ\EOT6\STX\ETX\SOH\DC2\EOT\236\a\v\DC4\n\+ \\r\n\+ \\ENQ\EOT6\STX\ETX\ETX\DC2\EOT\236\a\ETB\CAN\n\+ \\192\SOH\n\+ \\EOT\EOT6\STX\EOT\DC2\EOT\243\a\EOT\RS\SUB\177\SOH\n\+ \The bitfield that describes whether optional fields are present in this\n\+ \update. Currently, the least-significant bit must be set to 1 if the\n\+ \optional field MaxHtlc is present.\n\+ \\n\+ \\r\n\+ \\ENQ\EOT6\STX\EOT\ENQ\DC2\EOT\243\a\EOT\n\+ \\n\+ \\r\n\+ \\ENQ\EOT6\STX\EOT\SOH\DC2\EOT\243\a\v\CAN\n\+ \\r\n\+ \\ENQ\EOT6\STX\EOT\ETX\DC2\EOT\243\a\ESC\GS\n\+ \\217\STX\n\+ \\EOT\EOT6\STX\ENQ\DC2\EOT\252\a\EOT\GS\SUB\202\STX\n\+ \The bitfield that describes additional meta-data concerning how the\n\+ \update is to be interpreted. Currently, the least-significant bit must be\n\+ \set to 0 if the creating node corresponds to the first node in the\n\+ \previously sent channel announcement and 1 otherwise. If the second bit\n\+ \is set, then the channel is set to be disabled.\n\+ \\n\+ \\r\n\+ \\ENQ\EOT6\STX\ENQ\ENQ\DC2\EOT\252\a\EOT\n\+ \\n\+ \\r\n\+ \\ENQ\EOT6\STX\ENQ\SOH\DC2\EOT\252\a\v\CAN\n\+ \\r\n\+ \\ENQ\EOT6\STX\ENQ\ETX\DC2\EOT\252\a\ESC\FS\n\+ \\150\STX\n\+ \\EOT\EOT6\STX\ACK\DC2\EOT\132\b\EOT\US\SUB\135\STX\n\+ \The minimum number of blocks this node requires to be added to the expiry\n\+ \of HTLCs. This is a security parameter determined by the node operator.\n\+ \This value represents the required gap between the time locks of the\n\+ \incoming and outgoing HTLC's set to this node.\n\+ \\n\+ \\r\n\+ \\ENQ\EOT6\STX\ACK\ENQ\DC2\EOT\132\b\EOT\n\+ \\n\+ \\r\n\+ \\ENQ\EOT6\STX\ACK\SOH\DC2\EOT\132\b\v\SUB\n\+ \\r\n\+ \\ENQ\EOT6\STX\ACK\ETX\DC2\EOT\132\b\GS\RS\n\+ \>\n\+ \\EOT\EOT6\STX\a\DC2\EOT\137\b\EOT!\SUB0\n\+ \The minimum HTLC value which will be accepted.\n\+ \\n\+ \\r\n\+ \\ENQ\EOT6\STX\a\ENQ\DC2\EOT\137\b\EOT\n\+ \\n\+ \\r\n\+ \\ENQ\EOT6\STX\a\SOH\DC2\EOT\137\b\v\FS\n\+ \\r\n\+ \\ENQ\EOT6\STX\a\ETX\DC2\EOT\137\b\US \n\+ \\193\SOH\n\+ \\EOT\EOT6\STX\b\DC2\EOT\144\b\EOT\CAN\SUB\178\SOH\n\+ \The base fee that must be used for incoming HTLC's to this particular\n\+ \channel. This value will be tacked onto the required for a payment\n\+ \independent of the size of the payment.\n\+ \\n\+ \\r\n\+ \\ENQ\EOT6\STX\b\ENQ\DC2\EOT\144\b\EOT\n\+ \\n\+ \\r\n\+ \\ENQ\EOT6\STX\b\SOH\DC2\EOT\144\b\v\DC3\n\+ \\r\n\+ \\ENQ\EOT6\STX\b\ETX\DC2\EOT\144\b\SYN\ETB\n\+ \M\n\+ \\EOT\EOT6\STX\t\DC2\EOT\149\b\EOT\CAN\SUB?\n\+ \The fee rate that will be charged per millionth of a satoshi.\n\+ \\n\+ \\r\n\+ \\ENQ\EOT6\STX\t\ENQ\DC2\EOT\149\b\EOT\n\+ \\n\+ \\r\n\+ \\ENQ\EOT6\STX\t\SOH\DC2\EOT\149\b\v\DC3\n\+ \\r\n\+ \\ENQ\EOT6\STX\t\ETX\DC2\EOT\149\b\SYN\ETB\n\+ \>\n\+ \\EOT\EOT6\STX\n\+ \\DC2\EOT\154\b\EOT\"\SUB0\n\+ \The maximum HTLC value which will be accepted.\n\+ \\n\+ \\r\n\+ \\ENQ\EOT6\STX\n\+ \\ENQ\DC2\EOT\154\b\EOT\n\+ \\n\+ \\r\n\+ \\ENQ\EOT6\STX\n\+ \\SOH\DC2\EOT\154\b\v\FS\n\+ \\r\n\+ \\ENQ\EOT6\STX\n\+ \\ETX\DC2\EOT\154\b\US!\n\+ \\215\STX\n\+ \\EOT\EOT6\STX\v\DC2\EOT\163\b\EOT!\SUB\200\STX\n\+ \The set of data that was appended to this message, some of which we may\n\+ \not actually know how to iterate or parse. By holding onto this data, we\n\+ \ensure that we're able to properly validate the set of signatures that\n\+ \cover these new fields, and ensure we're able to make upgrades to the\n\+ \network in a forwards compatible manner.\n\+ \\n\+ \\r\n\+ \\ENQ\EOT6\STX\v\ENQ\DC2\EOT\163\b\EOT\t\n\+ \\r\n\+ \\ENQ\EOT6\STX\v\SOH\DC2\EOT\163\b\n\+ \\ESC\n\+ \\r\n\+ \\ENQ\EOT6\STX\v\ETX\DC2\EOT\163\b\RS \n\+ \\f\n\+ \\STX\EOT7\DC2\ACK\166\b\NUL\170\b\SOH\n\+ \\v\n\+ \\ETX\EOT7\SOH\DC2\EOT\166\b\b\DC2\n\+ \\f\n\+ \\EOT\EOT7\STX\NUL\DC2\EOT\167\b\EOT\DC4\n\+ \\r\n\+ \\ENQ\EOT7\STX\NUL\ENQ\DC2\EOT\167\b\EOT\t\n\+ \\r\n\+ \\ENQ\EOT7\STX\NUL\SOH\DC2\EOT\167\b\n\+ \\SI\n\+ \\r\n\+ \\ENQ\EOT7\STX\NUL\ETX\DC2\EOT\167\b\DC2\DC3\n\+ \\f\n\+ \\EOT\EOT7\STX\SOH\DC2\EOT\168\b\EOT\CAN\n\+ \\r\n\+ \\ENQ\EOT7\STX\SOH\ENQ\DC2\EOT\168\b\EOT\t\n\+ \\r\n\+ \\ENQ\EOT7\STX\SOH\SOH\DC2\EOT\168\b\n\+ \\DC3\n\+ \\r\n\+ \\ENQ\EOT7\STX\SOH\ETX\DC2\EOT\168\b\SYN\ETB\n\+ \\f\n\+ \\EOT\EOT7\STX\STX\DC2\EOT\169\b\EOT\CAN\n\+ \\r\n\+ \\ENQ\EOT7\STX\STX\EOT\DC2\EOT\169\b\EOT\f\n\+ \\r\n\+ \\ENQ\EOT7\STX\STX\ACK\DC2\EOT\169\b\r\SI\n\+ \\r\n\+ \\ENQ\EOT7\STX\STX\SOH\DC2\EOT\169\b\DLE\DC3\n\+ \\r\n\+ \\ENQ\EOT7\STX\STX\ETX\DC2\EOT\169\b\SYN\ETB\n\+ \\f\n\+ \\STX\EOT8\DC2\ACK\172\b\NUL\175\b\SOH\n\+ \\v\n\+ \\ETX\EOT8\SOH\DC2\EOT\172\b\b\n\+ \\n\+ \\f\n\+ \\EOT\EOT8\STX\NUL\DC2\EOT\173\b\EOT\SYN\n\+ \\r\n\+ \\ENQ\EOT8\STX\NUL\ENQ\DC2\EOT\173\b\EOT\n\+ \\n\+ \\r\n\+ \\ENQ\EOT8\STX\NUL\SOH\DC2\EOT\173\b\v\DC1\n\+ \\r\n\+ \\ENQ\EOT8\STX\NUL\ETX\DC2\EOT\173\b\DC4\NAK\n\+ \\f\n\+ \\EOT\EOT8\STX\SOH\DC2\EOT\174\b\EOT \n\+ \\r\n\+ \\ENQ\EOT8\STX\SOH\EOT\DC2\EOT\174\b\EOT\f\n\+ \\r\n\+ \\ENQ\EOT8\STX\SOH\ENQ\DC2\EOT\174\b\r\DC3\n\+ \\r\n\+ \\ENQ\EOT8\STX\SOH\SOH\DC2\EOT\174\b\DC4\ESC\n\+ \\r\n\+ \\ENQ\EOT8\STX\SOH\ETX\DC2\EOT\174\b\RS\US\n\+ \\f\n\+ \\STX\EOT9\DC2\ACK\177\b\NUL\181\b\SOH\n\+ \\v\n\+ \\ETX\EOT9\SOH\DC2\EOT\177\b\b\ESC\n\+ \\f\n\+ \\EOT\EOT9\STX\NUL\DC2\EOT\178\b\EOT\ETB\n\+ \\r\n\+ \\ENQ\EOT9\STX\NUL\ENQ\DC2\EOT\178\b\EOT\t\n\+ \\r\n\+ \\ENQ\EOT9\STX\NUL\SOH\DC2\EOT\178\b\n\+ \\DC2\n\+ \\r\n\+ \\ENQ\EOT9\STX\NUL\ETX\DC2\EOT\178\b\NAK\SYN\n\+ \\f\n\+ \\EOT\EOT9\STX\SOH\DC2\EOT\179\b\EOT0\n\+ \\r\n\+ \\ENQ\EOT9\STX\SOH\EOT\DC2\EOT\179\b\EOT\f\n\+ \\r\n\+ \\ENQ\EOT9\STX\SOH\ACK\DC2\EOT\179\b\r\US\n\+ \\r\n\+ \\ENQ\EOT9\STX\SOH\SOH\DC2\EOT\179\b +\n\+ \\r\n\+ \\ENQ\EOT9\STX\SOH\ETX\DC2\EOT\179\b./\n\+ \\f\n\+ \\EOT\EOT9\STX\STX\DC2\EOT\180\b\EOT\SUB\n\+ \\r\n\+ \\ENQ\EOT9\STX\STX\ENQ\DC2\EOT\180\b\EOT\n\+ \\n\+ \\r\n\+ \\ENQ\EOT9\STX\STX\SOH\DC2\EOT\180\b\v\NAK\n\+ \\r\n\+ \\ENQ\EOT9\STX\STX\ETX\DC2\EOT\180\b\CAN\EM\n\+ \\f\n\+ \\STX\EOT:\DC2\ACK\183\b\NUL\185\b\SOH\n\+ \\v\n\+ \\ETX\EOT:\SOH\DC2\EOT\183\b\b\FS\n\+ \\f\n\+ \\EOT\EOT:\STX\NUL\DC2\EOT\184\b\EOT\DC3\n\+ \\r\n\+ \\ENQ\EOT:\STX\NUL\ENQ\DC2\EOT\184\b\EOT\b\n\+ \\r\n\+ \\ENQ\EOT:\STX\NUL\SOH\DC2\EOT\184\b\t\SO\n\+ \\r\n\+ \\ENQ\EOT:\STX\NUL\ETX\DC2\EOT\184\b\DC1\DC2\n\+ \\f\n\+ \\STX\EOT;\DC2\ACK\187\b\NUL\129\t\SOH\n\+ \\v\n\+ \\ETX\EOT;\SOH\DC2\EOT\187\b\b\FS\n\+ \\166\STX\n\+ \\EOT\EOT;\STX\NUL\DC2\EOT\194\b\EOT\SUB\SUB\151\STX\n\+ \The unique ID of the intercepted original gRPC request. Useful for mapping\n\+ \request to response when implementing full duplex message interception. For\n\+ \streaming requests, this will be the same ID for all incoming and outgoing\n\+ \middleware intercept messages of the _same_ stream.\n\+ \\n\+ \\r\n\+ \\ENQ\EOT;\STX\NUL\ENQ\DC2\EOT\194\b\EOT\n\+ \\n\+ \\r\n\+ \\ENQ\EOT;\STX\NUL\SOH\DC2\EOT\194\b\v\NAK\n\+ \\r\n\+ \\ENQ\EOT;\STX\NUL\ETX\DC2\EOT\194\b\CAN\EM\n\+ \\206\SOH\n\+ \\EOT\EOT;\STX\SOH\DC2\EOT\201\b\EOT\ESC\SUB\191\SOH\n\+ \The raw bytes of the complete macaroon as sent by the gRPC client in the\n\+ \original request. This might be empty for a request that doesn't require\n\+ \macaroons such as the wallet unlocker RPCs.\n\+ \\n\+ \\r\n\+ \\ENQ\EOT;\STX\SOH\ENQ\DC2\EOT\201\b\EOT\t\n\+ \\r\n\+ \\ENQ\EOT;\STX\SOH\SOH\DC2\EOT\201\b\n\+ \\SYN\n\+ \\r\n\+ \\ENQ\EOT;\STX\SOH\ETX\DC2\EOT\201\b\EM\SUB\n\+ \\166\STX\n\+ \\EOT\EOT;\STX\STX\DC2\EOT\209\b\EOT'\SUB\151\STX\n\+ \The parsed condition of the macaroon's custom caveat for convenient access.\n\+ \This field only contains the value of the custom caveat that the handling\n\+ \middleware has registered itself for. The condition _must_ be validated for\n\+ \messages of intercept_type stream_auth and request!\n\+ \\n\+ \\r\n\+ \\ENQ\EOT;\STX\STX\ENQ\DC2\EOT\209\b\EOT\n\+ \\n\+ \\r\n\+ \\ENQ\EOT;\STX\STX\SOH\DC2\EOT\209\b\v\"\n\+ \\r\n\+ \\ENQ\EOT;\STX\STX\ETX\DC2\EOT\209\b%&\n\+ \\205\STX\n\+ \\EOT\EOT;\b\NUL\DC2\ACK\218\b\EOT\246\b\ENQ\SUB\188\STX\n\+ \There are three types of messages that will be sent to the middleware for\n\+ \inspection and approval: Stream authentication, request and response\n\+ \interception. The first two can only be accepted (=forward to main RPC\n\+ \server) or denied (=return error to client). Intercepted responses can also\n\+ \be replaced/overwritten.\n\+ \\n\+ \\r\n\+ \\ENQ\EOT;\b\NUL\SOH\DC2\EOT\218\b\n\+ \\CAN\n\+ \\180\ETX\n\+ \\EOT\EOT;\STX\ETX\DC2\EOT\227\b\b#\SUB\165\ETX\n\+ \Intercept stream authentication: each new streaming RPC call that is\n\+ \initiated against lnd and contains the middleware's custom macaroon\n\+ \caveat can be approved or denied based upon the macaroon in the stream\n\+ \header. This message will only be sent for streaming RPCs, unary RPCs\n\+ \must handle the macaroon authentication in the request interception to\n\+ \avoid an additional message round trip between lnd and the middleware.\n\+ \\n\+ \\r\n\+ \\ENQ\EOT;\STX\ETX\ACK\DC2\EOT\227\b\b\DC2\n\+ \\r\n\+ \\ENQ\EOT;\STX\ETX\SOH\DC2\EOT\227\b\DC3\RS\n\+ \\r\n\+ \\ENQ\EOT;\STX\ETX\ETX\DC2\EOT\227\b!\"\n\+ \\151\STX\n\+ \\EOT\EOT;\STX\EOT\DC2\EOT\235\b\b\US\SUB\136\STX\n\+ \Intercept incoming gRPC client request message: all incoming messages,\n\+ \both on streaming and unary RPCs, are forwarded to the middleware for\n\+ \inspection. For unary RPC messages the middleware is also expected to\n\+ \validate the custom macaroon caveat of the request.\n\+ \\n\+ \\r\n\+ \\ENQ\EOT;\STX\EOT\ACK\DC2\EOT\235\b\b\DC2\n\+ \\r\n\+ \\ENQ\EOT;\STX\EOT\SOH\DC2\EOT\235\b\DC3\SUB\n\+ \\r\n\+ \\ENQ\EOT;\STX\EOT\ETX\DC2\EOT\235\b\GS\RS\n\+ \\164\ETX\n\+ \\EOT\EOT;\STX\ENQ\DC2\EOT\245\b\b \SUB\149\ETX\n\+ \Intercept outgoing gRPC response message: all outgoing messages, both on\n\+ \streaming and unary RPCs, are forwarded to the middleware for inspection\n\+ \and amendment. The response in this message is the original response as\n\+ \it was generated by the main RPC server. It can either be accepted\n\+ \(=forwarded to the client), replaced/overwritten with a new message of\n\+ \the same type, or replaced by an error message.\n\+ \\n\+ \\r\n\+ \\ENQ\EOT;\STX\ENQ\ACK\DC2\EOT\245\b\b\DC2\n\+ \\r\n\+ \\ENQ\EOT;\STX\ENQ\SOH\DC2\EOT\245\b\DC3\ESC\n\+ \\r\n\+ \\ENQ\EOT;\STX\ENQ\ETX\DC2\EOT\245\b\RS\US\n\+ \\152\ETX\n\+ \\EOT\EOT;\STX\ACK\DC2\EOT\128\t\EOT\SYN\SUB\137\ETX\n\+ \The unique message ID of this middleware intercept message. There can be\n\+ \multiple middleware intercept messages per single gRPC request (one for the\n\+ \incoming request and one for the outgoing response) or gRPC stream (one for\n\+ \each incoming message and one for each outgoing response). This message ID\n\+ \must be referenced when responding (accepting/rejecting/modifying) to an\n\+ \intercept message.\n\+ \\n\+ \\r\n\+ \\ENQ\EOT;\STX\ACK\ENQ\DC2\EOT\128\t\EOT\n\+ \\n\+ \\r\n\+ \\ENQ\EOT;\STX\ACK\SOH\DC2\EOT\128\t\v\DC1\n\+ \\r\n\+ \\ENQ\EOT;\STX\ACK\ETX\DC2\EOT\128\t\DC4\NAK\n\+ \\f\n\+ \\STX\EOT<\DC2\ACK\131\t\NUL\138\t\SOH\n\+ \\v\n\+ \\ETX\EOT<\SOH\DC2\EOT\131\t\b\DC2\n\+ \\177\SOH\n\+ \\EOT\EOT<\STX\NUL\DC2\EOT\137\t\EOT\US\SUB\162\SOH\n\+ \The full URI (in the format /<rpcpackage>.<ServiceName>/MethodName, for\n\+ \example /lnrpc.Lightning/GetInfo) of the streaming RPC method that was just\n\+ \established.\n\+ \\n\+ \\r\n\+ \\ENQ\EOT<\STX\NUL\ENQ\DC2\EOT\137\t\EOT\n\+ \\n\+ \\r\n\+ \\ENQ\EOT<\STX\NUL\SOH\DC2\EOT\137\t\v\SUB\n\+ \\r\n\+ \\ENQ\EOT<\STX\NUL\ETX\DC2\EOT\137\t\GS\RS\n\+ \\f\n\+ \\STX\EOT=\DC2\ACK\140\t\NUL\164\t\SOH\n\+ \\v\n\+ \\ETX\EOT=\SOH\DC2\EOT\140\t\b\DC2\n\+ \\170\SOH\n\+ \\EOT\EOT=\STX\NUL\DC2\EOT\146\t\EOT\US\SUB\155\SOH\n\+ \The full URI (in the format /<rpcpackage>.<ServiceName>/MethodName, for\n\+ \example /lnrpc.Lightning/GetInfo) of the RPC method the message was sent\n\+ \to/from.\n\+ \\n\+ \\r\n\+ \\ENQ\EOT=\STX\NUL\ENQ\DC2\EOT\146\t\EOT\n\+ \\n\+ \\r\n\+ \\ENQ\EOT=\STX\NUL\SOH\DC2\EOT\146\t\v\SUB\n\+ \\r\n\+ \\ENQ\EOT=\STX\NUL\ETX\DC2\EOT\146\t\GS\RS\n\+ \Z\n\+ \\EOT\EOT=\STX\SOH\DC2\EOT\151\t\EOT\CAN\SUBL\n\+ \Indicates whether the message was sent over a streaming RPC method or not.\n\+ \\n\+ \\r\n\+ \\ENQ\EOT=\STX\SOH\ENQ\DC2\EOT\151\t\EOT\b\n\+ \\r\n\+ \\ENQ\EOT=\STX\SOH\SOH\DC2\EOT\151\t\t\DC3\n\+ \\r\n\+ \\ENQ\EOT=\STX\SOH\ETX\DC2\EOT\151\t\SYN\ETB\n\+ \\137\SOH\n\+ \\EOT\EOT=\STX\STX\DC2\EOT\157\t\EOT\EM\SUB{\n\+ \The full canonical gRPC name of the message type (in the format\n\+ \<rpcpackage>.TypeName, for example lnrpc.GetInfoRequest).\n\+ \\n\+ \\r\n\+ \\ENQ\EOT=\STX\STX\ENQ\DC2\EOT\157\t\EOT\n\+ \\n\+ \\r\n\+ \\ENQ\EOT=\STX\STX\SOH\DC2\EOT\157\t\v\DC4\n\+ \\r\n\+ \\ENQ\EOT=\STX\STX\ETX\DC2\EOT\157\t\ETB\CAN\n\+ \_\n\+ \\EOT\EOT=\STX\ETX\DC2\EOT\163\t\EOT\EM\SUBQ\n\+ \The full content of the gRPC message, serialized in the binary protobuf\n\+ \format.\n\+ \\n\+ \\r\n\+ \\ENQ\EOT=\STX\ETX\ENQ\DC2\EOT\163\t\EOT\t\n\+ \\r\n\+ \\ENQ\EOT=\STX\ETX\SOH\DC2\EOT\163\t\n\+ \\DC4\n\+ \\r\n\+ \\ENQ\EOT=\STX\ETX\ETX\DC2\EOT\163\t\ETB\CAN\n\+ \\f\n\+ \\STX\EOT>\DC2\ACK\166\t\NUL\199\t\SOH\n\+ \\v\n\+ \\ETX\EOT>\SOH\DC2\EOT\166\t\b\GS\n\+ \\173\SOH\n\+ \\EOT\EOT>\STX\NUL\DC2\EOT\172\t\EOT\SUB\SUB\158\SOH\n\+ \The request message ID this response refers to. Must always be set when\n\+ \giving feedback to an intercept but is ignored for the initial registration\n\+ \message.\n\+ \\n\+ \\r\n\+ \\ENQ\EOT>\STX\NUL\ENQ\DC2\EOT\172\t\EOT\n\+ \\n\+ \\r\n\+ \\ENQ\EOT>\STX\NUL\SOH\DC2\EOT\172\t\v\NAK\n\+ \\r\n\+ \\ENQ\EOT>\STX\NUL\ETX\DC2\EOT\172\t\CAN\EM\n\+ \\215\SOH\n\+ \\EOT\EOT>\b\NUL\DC2\ACK\179\t\EOT\198\t\ENQ\SUB\198\SOH\n\+ \The middleware can only send two types of messages to lnd: The initial\n\+ \registration message that identifies the middleware and after that only\n\+ \feedback messages to requests sent to the middleware.\n\+ \\n\+ \\r\n\+ \\ENQ\EOT>\b\NUL\SOH\DC2\EOT\179\t\n\+ \\FS\n\+ \\191\EOT\n\+ \\EOT\EOT>\STX\SOH\DC2\EOT\191\t\b,\SUB\176\EOT\n\+ \The registration message identifies the middleware that's being\n\+ \registered in lnd. The registration message must be sent immediately\n\+ \after initiating the RegisterRpcMiddleware stream, otherwise lnd will\n\+ \time out the attempt and terminate the request. NOTE: The middleware\n\+ \will only receive interception messages for requests that contain a\n\+ \macaroon with the custom caveat that the middleware declares it is\n\+ \responsible for handling in the registration message! As a security\n\+ \measure, _no_ middleware can intercept requests made with _unencumbered_\n\+ \macaroons!\n\+ \\n\+ \\r\n\+ \\ENQ\EOT>\STX\SOH\ACK\DC2\EOT\191\t\b\RS\n\+ \\r\n\+ \\ENQ\EOT>\STX\SOH\SOH\DC2\EOT\191\t\US'\n\+ \\r\n\+ \\ENQ\EOT>\STX\SOH\ETX\DC2\EOT\191\t*+\n\+ \\152\SOH\n\+ \\EOT\EOT>\STX\STX\DC2\EOT\197\t\b'\SUB\137\SOH\n\+ \The middleware received an interception request and gives feedback to\n\+ \it. The request_id indicates what message the feedback refers to.\n\+ \\n\+ \\r\n\+ \\ENQ\EOT>\STX\STX\ACK\DC2\EOT\197\t\b\EM\n\+ \\r\n\+ \\ENQ\EOT>\STX\STX\SOH\DC2\EOT\197\t\SUB\"\n\+ \\r\n\+ \\ENQ\EOT>\STX\STX\ETX\DC2\EOT\197\t%&\n\+ \\f\n\+ \\STX\EOT?\DC2\ACK\201\t\NUL\228\t\SOH\n\+ \\v\n\+ \\ETX\EOT?\SOH\DC2\EOT\201\t\b\RS\n\+ \\132\SOH\n\+ \\EOT\EOT?\STX\NUL\DC2\EOT\206\t\EOT\US\SUBv\n\+ \The name of the middleware to register. The name should be as informative\n\+ \as possible and is logged on registration.\n\+ \\n\+ \\r\n\+ \\ENQ\EOT?\STX\NUL\ENQ\DC2\EOT\206\t\EOT\n\+ \\n\+ \\r\n\+ \\ENQ\EOT?\STX\NUL\SOH\DC2\EOT\206\t\v\SUB\n\+ \\r\n\+ \\ENQ\EOT?\STX\NUL\ETX\DC2\EOT\206\t\GS\RS\n\+ \\194\EOT\n\+ \\EOT\EOT?\STX\SOH\DC2\EOT\218\t\EOT+\SUB\179\EOT\n\+ \The name of the custom macaroon caveat that this middleware is responsible\n\+ \for. Only requests/responses that contain a macaroon with the registered\n\+ \custom caveat are forwarded for interception to the middleware. The\n\+ \exception being the read-only mode: All requests/responses are forwarded to\n\+ \a middleware that requests read-only access but such a middleware won't be\n\+ \allowed to _alter_ responses. As a security measure, _no_ middleware can\n\+ \change responses to requests made with _unencumbered_ macaroons!\n\+ \NOTE: Cannot be used at the same time as read_only_mode.\n\+ \\n\+ \\r\n\+ \\ENQ\EOT?\STX\SOH\ENQ\DC2\EOT\218\t\EOT\n\+ \\n\+ \\r\n\+ \\ENQ\EOT?\STX\SOH\SOH\DC2\EOT\218\t\v&\n\+ \\r\n\+ \\ENQ\EOT?\STX\SOH\ETX\DC2\EOT\218\t)*\n\+ \\200\STX\n\+ \\EOT\EOT?\STX\STX\DC2\EOT\227\t\EOT\FS\SUB\185\STX\n\+ \Instead of defining a custom macaroon caveat name a middleware can register\n\+ \itself for read-only access only. In that mode all requests/responses are\n\+ \forwarded to the middleware but the middleware isn't allowed to alter any of\n\+ \the responses.\n\+ \NOTE: Cannot be used at the same time as custom_macaroon_caveat_name.\n\+ \\n\+ \\r\n\+ \\ENQ\EOT?\STX\STX\ENQ\DC2\EOT\227\t\EOT\b\n\+ \\r\n\+ \\ENQ\EOT?\STX\STX\SOH\DC2\EOT\227\t\t\ETB\n\+ \\r\n\+ \\ENQ\EOT?\STX\STX\ETX\DC2\EOT\227\t\SUB\ESC\n\+ \\f\n\+ \\STX\EOT@\DC2\ACK\230\t\NUL\254\t\SOH\n\+ \\v\n\+ \\ETX\EOT@\SOH\DC2\EOT\230\t\b\EM\n\+ \\157\STX\n\+ \\EOT\EOT@\STX\NUL\DC2\EOT\237\t\EOT\NAK\SUB\142\STX\n\+ \The error to return to the user. If this is non-empty, the incoming gRPC\n\+ \stream/request is aborted and the error is returned to the gRPC client. If\n\+ \this value is empty, it means the middleware accepts the stream/request/\n\+ \response and the processing of it can continue.\n\+ \\n\+ \\r\n\+ \\ENQ\EOT@\STX\NUL\ENQ\DC2\EOT\237\t\EOT\n\+ \\n\+ \\r\n\+ \\ENQ\EOT@\STX\NUL\SOH\DC2\EOT\237\t\v\DLE\n\+ \\r\n\+ \\ENQ\EOT@\STX\NUL\ETX\DC2\EOT\237\t\DC3\DC4\n\+ \\204\ETX\n\+ \\EOT\EOT@\STX\SOH\DC2\EOT\247\t\EOT\RS\SUB\189\ETX\n\+ \A boolean indicating that the gRPC response should be replaced/overwritten.\n\+ \As its name suggests, this can only be used as a feedback to an intercepted\n\+ \response RPC message and is ignored for feedback on any other message. This\n\+ \boolean is needed because in protobuf an empty message is serialized as a\n\+ \0-length or nil byte slice and we wouldn't be able to distinguish between\n\+ \an empty replacement message and the \"don't replace anything\" case.\n\+ \\n\+ \\r\n\+ \\ENQ\EOT@\STX\SOH\ENQ\DC2\EOT\247\t\EOT\b\n\+ \\r\n\+ \\ENQ\EOT@\STX\SOH\SOH\DC2\EOT\247\t\t\EM\n\+ \\r\n\+ \\ENQ\EOT@\STX\SOH\ETX\DC2\EOT\247\t\FS\GS\n\+ \\154\SOH\n\+ \\EOT\EOT@\STX\STX\DC2\EOT\253\t\EOT%\SUB\139\SOH\n\+ \If the replace_response field is set to true, this field must contain the\n\+ \binary serialized gRPC response message in the protobuf format.\n\+ \\n\+ \\r\n\+ \\ENQ\EOT@\STX\STX\ENQ\DC2\EOT\253\t\EOT\t\n\+ \\r\n\+ \\ENQ\EOT@\STX\STX\SOH\DC2\EOT\253\t\n\+ \ \n\+ \\r\n\+ \\ENQ\EOT@\STX\STX\ETX\DC2\EOT\253\t#$b\ACKproto3"
@@ -0,0 +1,1211 @@+{- This file was auto-generated from lnrpc/ln1.proto by the proto-lens-protoc program. -}+{-# LANGUAGE ScopedTypeVariables, DataKinds, TypeFamilies, UndecidableInstances, GeneralizedNewtypeDeriving, MultiParamTypeClasses, FlexibleContexts, FlexibleInstances, PatternSynonyms, MagicHash, NoImplicitPrelude, BangPatterns, TypeApplications, OverloadedStrings, DerivingStrategies, DeriveGeneric#-}+{-# OPTIONS_GHC -Wno-unused-imports#-}+{-# OPTIONS_GHC -Wno-duplicate-exports#-}+{-# OPTIONS_GHC -Wno-dodgy-exports#-}+module Proto.Lnrpc.Ln1_Fields where+import qualified Data.ProtoLens.Runtime.Prelude as Prelude+import qualified Data.ProtoLens.Runtime.Data.Int as Data.Int+import qualified Data.ProtoLens.Runtime.Data.Monoid as Data.Monoid+import qualified Data.ProtoLens.Runtime.Data.Word as Data.Word+import qualified Data.ProtoLens.Runtime.Data.ProtoLens as Data.ProtoLens+import qualified Data.ProtoLens.Runtime.Data.ProtoLens.Encoding.Bytes as Data.ProtoLens.Encoding.Bytes+import qualified Data.ProtoLens.Runtime.Data.ProtoLens.Encoding.Growing as Data.ProtoLens.Encoding.Growing+import qualified Data.ProtoLens.Runtime.Data.ProtoLens.Encoding.Parser.Unsafe as Data.ProtoLens.Encoding.Parser.Unsafe+import qualified Data.ProtoLens.Runtime.Data.ProtoLens.Encoding.Wire as Data.ProtoLens.Encoding.Wire+import qualified Data.ProtoLens.Runtime.Data.ProtoLens.Field as Data.ProtoLens.Field+import qualified Data.ProtoLens.Runtime.Data.ProtoLens.Message.Enum as Data.ProtoLens.Message.Enum+import qualified Data.ProtoLens.Runtime.Data.ProtoLens.Service.Types as Data.ProtoLens.Service.Types+import qualified Data.ProtoLens.Runtime.Lens.Family2 as Lens.Family2+import qualified Data.ProtoLens.Runtime.Lens.Family2.Unchecked as Lens.Family2.Unchecked+import qualified Data.ProtoLens.Runtime.Data.Text as Data.Text+import qualified Data.ProtoLens.Runtime.Data.Map as Data.Map+import qualified Data.ProtoLens.Runtime.Data.ByteString as Data.ByteString+import qualified Data.ProtoLens.Runtime.Data.ByteString.Char8 as Data.ByteString.Char8+import qualified Data.ProtoLens.Runtime.Data.Text.Encoding as Data.Text.Encoding+import qualified Data.ProtoLens.Runtime.Data.Vector as Data.Vector+import qualified Data.ProtoLens.Runtime.Data.Vector.Generic as Data.Vector.Generic+import qualified Data.ProtoLens.Runtime.Data.Vector.Unboxed as Data.Vector.Unboxed+import qualified Data.ProtoLens.Runtime.Text.Read as Text.Read+import qualified Proto.Lnrpc.Ln0+acceptHeight ::+ forall f s a.+ (Prelude.Functor f,+ Data.ProtoLens.Field.HasField s "acceptHeight" a) =>+ Lens.Family2.LensLike' f s a+acceptHeight = Data.ProtoLens.Field.field @"acceptHeight"+acceptTime ::+ forall f s a.+ (Prelude.Functor f,+ Data.ProtoLens.Field.HasField s "acceptTime" a) =>+ Lens.Family2.LensLike' f s a+acceptTime = Data.ProtoLens.Field.field @"acceptTime"+action ::+ forall f s a.+ (Prelude.Functor f, Data.ProtoLens.Field.HasField s "action" a) =>+ Lens.Family2.LensLike' f s a+action = Data.ProtoLens.Field.field @"action"+actions ::+ forall f s a.+ (Prelude.Functor f, Data.ProtoLens.Field.HasField s "actions" a) =>+ Lens.Family2.LensLike' f s a+actions = Data.ProtoLens.Field.field @"actions"+addIndex ::+ forall f s a.+ (Prelude.Functor f,+ Data.ProtoLens.Field.HasField s "addIndex" a) =>+ Lens.Family2.LensLike' f s a+addIndex = Data.ProtoLens.Field.field @"addIndex"+allowExternalPermissions ::+ forall f s a.+ (Prelude.Functor f,+ Data.ProtoLens.Field.HasField s "allowExternalPermissions" a) =>+ Lens.Family2.LensLike' f s a+allowExternalPermissions+ = Data.ProtoLens.Field.field @"allowExternalPermissions"+amp ::+ forall f s a.+ (Prelude.Functor f, Data.ProtoLens.Field.HasField s "amp" a) =>+ Lens.Family2.LensLike' f s a+amp = Data.ProtoLens.Field.field @"amp"+ampInvoiceState ::+ forall f s a.+ (Prelude.Functor f,+ Data.ProtoLens.Field.HasField s "ampInvoiceState" a) =>+ Lens.Family2.LensLike' f s a+ampInvoiceState = Data.ProtoLens.Field.field @"ampInvoiceState"+amtIn ::+ forall f s a.+ (Prelude.Functor f, Data.ProtoLens.Field.HasField s "amtIn" a) =>+ Lens.Family2.LensLike' f s a+amtIn = Data.ProtoLens.Field.field @"amtIn"+amtInMsat ::+ forall f s a.+ (Prelude.Functor f,+ Data.ProtoLens.Field.HasField s "amtInMsat" a) =>+ Lens.Family2.LensLike' f s a+amtInMsat = Data.ProtoLens.Field.field @"amtInMsat"+amtMsat ::+ forall f s a.+ (Prelude.Functor f, Data.ProtoLens.Field.HasField s "amtMsat" a) =>+ Lens.Family2.LensLike' f s a+amtMsat = Data.ProtoLens.Field.field @"amtMsat"+amtOut ::+ forall f s a.+ (Prelude.Functor f, Data.ProtoLens.Field.HasField s "amtOut" a) =>+ Lens.Family2.LensLike' f s a+amtOut = Data.ProtoLens.Field.field @"amtOut"+amtOutMsat ::+ forall f s a.+ (Prelude.Functor f,+ Data.ProtoLens.Field.HasField s "amtOutMsat" a) =>+ Lens.Family2.LensLike' f s a+amtOutMsat = Data.ProtoLens.Field.field @"amtOutMsat"+amtPaid ::+ forall f s a.+ (Prelude.Functor f, Data.ProtoLens.Field.HasField s "amtPaid" a) =>+ Lens.Family2.LensLike' f s a+amtPaid = Data.ProtoLens.Field.field @"amtPaid"+amtPaidMsat ::+ forall f s a.+ (Prelude.Functor f,+ Data.ProtoLens.Field.HasField s "amtPaidMsat" a) =>+ Lens.Family2.LensLike' f s a+amtPaidMsat = Data.ProtoLens.Field.field @"amtPaidMsat"+amtPaidSat ::+ forall f s a.+ (Prelude.Functor f,+ Data.ProtoLens.Field.HasField s "amtPaidSat" a) =>+ Lens.Family2.LensLike' f s a+amtPaidSat = Data.ProtoLens.Field.field @"amtPaidSat"+attemptId ::+ forall f s a.+ (Prelude.Functor f,+ Data.ProtoLens.Field.HasField s "attemptId" a) =>+ Lens.Family2.LensLike' f s a+attemptId = Data.ProtoLens.Field.field @"attemptId"+attemptTimeNs ::+ forall f s a.+ (Prelude.Functor f,+ Data.ProtoLens.Field.HasField s "attemptTimeNs" a) =>+ Lens.Family2.LensLike' f s a+attemptTimeNs = Data.ProtoLens.Field.field @"attemptTimeNs"+baseFee ::+ forall f s a.+ (Prelude.Functor f, Data.ProtoLens.Field.HasField s "baseFee" a) =>+ Lens.Family2.LensLike' f s a+baseFee = Data.ProtoLens.Field.field @"baseFee"+baseFeeMsat ::+ forall f s a.+ (Prelude.Functor f,+ Data.ProtoLens.Field.HasField s "baseFeeMsat" a) =>+ Lens.Family2.LensLike' f s a+baseFeeMsat = Data.ProtoLens.Field.field @"baseFeeMsat"+chainHash ::+ forall f s a.+ (Prelude.Functor f,+ Data.ProtoLens.Field.HasField s "chainHash" a) =>+ Lens.Family2.LensLike' f s a+chainHash = Data.ProtoLens.Field.field @"chainHash"+chanBackup ::+ forall f s a.+ (Prelude.Functor f,+ Data.ProtoLens.Field.HasField s "chanBackup" a) =>+ Lens.Family2.LensLike' f s a+chanBackup = Data.ProtoLens.Field.field @"chanBackup"+chanBackups ::+ forall f s a.+ (Prelude.Functor f,+ Data.ProtoLens.Field.HasField s "chanBackups" a) =>+ Lens.Family2.LensLike' f s a+chanBackups = Data.ProtoLens.Field.field @"chanBackups"+chanId ::+ forall f s a.+ (Prelude.Functor f, Data.ProtoLens.Field.HasField s "chanId" a) =>+ Lens.Family2.LensLike' f s a+chanId = Data.ProtoLens.Field.field @"chanId"+chanIdIn ::+ forall f s a.+ (Prelude.Functor f,+ Data.ProtoLens.Field.HasField s "chanIdIn" a) =>+ Lens.Family2.LensLike' f s a+chanIdIn = Data.ProtoLens.Field.field @"chanIdIn"+chanIdOut ::+ forall f s a.+ (Prelude.Functor f,+ Data.ProtoLens.Field.HasField s "chanIdOut" a) =>+ Lens.Family2.LensLike' f s a+chanIdOut = Data.ProtoLens.Field.field @"chanIdOut"+chanPoint ::+ forall f s a.+ (Prelude.Functor f,+ Data.ProtoLens.Field.HasField s "chanPoint" a) =>+ Lens.Family2.LensLike' f s a+chanPoint = Data.ProtoLens.Field.field @"chanPoint"+chanPoints ::+ forall f s a.+ (Prelude.Functor f,+ Data.ProtoLens.Field.HasField s "chanPoints" a) =>+ Lens.Family2.LensLike' f s a+chanPoints = Data.ProtoLens.Field.field @"chanPoints"+channelFees ::+ forall f s a.+ (Prelude.Functor f,+ Data.ProtoLens.Field.HasField s "channelFees" a) =>+ Lens.Family2.LensLike' f s a+channelFees = Data.ProtoLens.Field.field @"channelFees"+channelFlags ::+ forall f s a.+ (Prelude.Functor f,+ Data.ProtoLens.Field.HasField s "channelFlags" a) =>+ Lens.Family2.LensLike' f s a+channelFlags = Data.ProtoLens.Field.field @"channelFlags"+channelPoint ::+ forall f s a.+ (Prelude.Functor f,+ Data.ProtoLens.Field.HasField s "channelPoint" a) =>+ Lens.Family2.LensLike' f s a+channelPoint = Data.ProtoLens.Field.field @"channelPoint"+channelUpdate ::+ forall f s a.+ (Prelude.Functor f,+ Data.ProtoLens.Field.HasField s "channelUpdate" a) =>+ Lens.Family2.LensLike' f s a+channelUpdate = Data.ProtoLens.Field.field @"channelUpdate"+childIndex ::+ forall f s a.+ (Prelude.Functor f,+ Data.ProtoLens.Field.HasField s "childIndex" a) =>+ Lens.Family2.LensLike' f s a+childIndex = Data.ProtoLens.Field.field @"childIndex"+cltvExpiry ::+ forall f s a.+ (Prelude.Functor f,+ Data.ProtoLens.Field.HasField s "cltvExpiry" a) =>+ Lens.Family2.LensLike' f s a+cltvExpiry = Data.ProtoLens.Field.field @"cltvExpiry"+code ::+ forall f s a.+ (Prelude.Functor f, Data.ProtoLens.Field.HasField s "code" a) =>+ Lens.Family2.LensLike' f s a+code = Data.ProtoLens.Field.field @"code"+creationDate ::+ forall f s a.+ (Prelude.Functor f,+ Data.ProtoLens.Field.HasField s "creationDate" a) =>+ Lens.Family2.LensLike' f s a+creationDate = Data.ProtoLens.Field.field @"creationDate"+creationTimeNs ::+ forall f s a.+ (Prelude.Functor f,+ Data.ProtoLens.Field.HasField s "creationTimeNs" a) =>+ Lens.Family2.LensLike' f s a+creationTimeNs = Data.ProtoLens.Field.field @"creationTimeNs"+customCaveatCondition ::+ forall f s a.+ (Prelude.Functor f,+ Data.ProtoLens.Field.HasField s "customCaveatCondition" a) =>+ Lens.Family2.LensLike' f s a+customCaveatCondition+ = Data.ProtoLens.Field.field @"customCaveatCondition"+customMacaroonCaveatName ::+ forall f s a.+ (Prelude.Functor f,+ Data.ProtoLens.Field.HasField s "customMacaroonCaveatName" a) =>+ Lens.Family2.LensLike' f s a+customMacaroonCaveatName+ = Data.ProtoLens.Field.field @"customMacaroonCaveatName"+customRecords ::+ forall f s a.+ (Prelude.Functor f,+ Data.ProtoLens.Field.HasField s "customRecords" a) =>+ Lens.Family2.LensLike' f s a+customRecords = Data.ProtoLens.Field.field @"customRecords"+dayFeeSum ::+ forall f s a.+ (Prelude.Functor f,+ Data.ProtoLens.Field.HasField s "dayFeeSum" a) =>+ Lens.Family2.LensLike' f s a+dayFeeSum = Data.ProtoLens.Field.field @"dayFeeSum"+deleted ::+ forall f s a.+ (Prelude.Functor f, Data.ProtoLens.Field.HasField s "deleted" a) =>+ Lens.Family2.LensLike' f s a+deleted = Data.ProtoLens.Field.field @"deleted"+description ::+ forall f s a.+ (Prelude.Functor f,+ Data.ProtoLens.Field.HasField s "description" a) =>+ Lens.Family2.LensLike' f s a+description = Data.ProtoLens.Field.field @"description"+descriptionHash ::+ forall f s a.+ (Prelude.Functor f,+ Data.ProtoLens.Field.HasField s "descriptionHash" a) =>+ Lens.Family2.LensLike' f s a+descriptionHash = Data.ProtoLens.Field.field @"descriptionHash"+destination ::+ forall f s a.+ (Prelude.Functor f,+ Data.ProtoLens.Field.HasField s "destination" a) =>+ Lens.Family2.LensLike' f s a+destination = Data.ProtoLens.Field.field @"destination"+endTime ::+ forall f s a.+ (Prelude.Functor f, Data.ProtoLens.Field.HasField s "endTime" a) =>+ Lens.Family2.LensLike' f s a+endTime = Data.ProtoLens.Field.field @"endTime"+entity ::+ forall f s a.+ (Prelude.Functor f, Data.ProtoLens.Field.HasField s "entity" a) =>+ Lens.Family2.LensLike' f s a+entity = Data.ProtoLens.Field.field @"entity"+error ::+ forall f s a.+ (Prelude.Functor f, Data.ProtoLens.Field.HasField s "error" a) =>+ Lens.Family2.LensLike' f s a+error = Data.ProtoLens.Field.field @"error"+expiry ::+ forall f s a.+ (Prelude.Functor f, Data.ProtoLens.Field.HasField s "expiry" a) =>+ Lens.Family2.LensLike' f s a+expiry = Data.ProtoLens.Field.field @"expiry"+expiryHeight ::+ forall f s a.+ (Prelude.Functor f,+ Data.ProtoLens.Field.HasField s "expiryHeight" a) =>+ Lens.Family2.LensLike' f s a+expiryHeight = Data.ProtoLens.Field.field @"expiryHeight"+extraOpaqueData ::+ forall f s a.+ (Prelude.Functor f,+ Data.ProtoLens.Field.HasField s "extraOpaqueData" a) =>+ Lens.Family2.LensLike' f s a+extraOpaqueData = Data.ProtoLens.Field.field @"extraOpaqueData"+failedHtlcsOnly ::+ forall f s a.+ (Prelude.Functor f,+ Data.ProtoLens.Field.HasField s "failedHtlcsOnly" a) =>+ Lens.Family2.LensLike' f s a+failedHtlcsOnly = Data.ProtoLens.Field.field @"failedHtlcsOnly"+failedPaymentsOnly ::+ forall f s a.+ (Prelude.Functor f,+ Data.ProtoLens.Field.HasField s "failedPaymentsOnly" a) =>+ Lens.Family2.LensLike' f s a+failedPaymentsOnly+ = Data.ProtoLens.Field.field @"failedPaymentsOnly"+failedUpdates ::+ forall f s a.+ (Prelude.Functor f,+ Data.ProtoLens.Field.HasField s "failedUpdates" a) =>+ Lens.Family2.LensLike' f s a+failedUpdates = Data.ProtoLens.Field.field @"failedUpdates"+failure ::+ forall f s a.+ (Prelude.Functor f, Data.ProtoLens.Field.HasField s "failure" a) =>+ Lens.Family2.LensLike' f s a+failure = Data.ProtoLens.Field.field @"failure"+failureReason ::+ forall f s a.+ (Prelude.Functor f,+ Data.ProtoLens.Field.HasField s "failureReason" a) =>+ Lens.Family2.LensLike' f s a+failureReason = Data.ProtoLens.Field.field @"failureReason"+failureSourceIndex ::+ forall f s a.+ (Prelude.Functor f,+ Data.ProtoLens.Field.HasField s "failureSourceIndex" a) =>+ Lens.Family2.LensLike' f s a+failureSourceIndex+ = Data.ProtoLens.Field.field @"failureSourceIndex"+fallbackAddr ::+ forall f s a.+ (Prelude.Functor f,+ Data.ProtoLens.Field.HasField s "fallbackAddr" a) =>+ Lens.Family2.LensLike' f s a+fallbackAddr = Data.ProtoLens.Field.field @"fallbackAddr"+features ::+ forall f s a.+ (Prelude.Functor f,+ Data.ProtoLens.Field.HasField s "features" a) =>+ Lens.Family2.LensLike' f s a+features = Data.ProtoLens.Field.field @"features"+fee ::+ forall f s a.+ (Prelude.Functor f, Data.ProtoLens.Field.HasField s "fee" a) =>+ Lens.Family2.LensLike' f s a+fee = Data.ProtoLens.Field.field @"fee"+feeMsat ::+ forall f s a.+ (Prelude.Functor f, Data.ProtoLens.Field.HasField s "feeMsat" a) =>+ Lens.Family2.LensLike' f s a+feeMsat = Data.ProtoLens.Field.field @"feeMsat"+feePerMil ::+ forall f s a.+ (Prelude.Functor f,+ Data.ProtoLens.Field.HasField s "feePerMil" a) =>+ Lens.Family2.LensLike' f s a+feePerMil = Data.ProtoLens.Field.field @"feePerMil"+feeRate ::+ forall f s a.+ (Prelude.Functor f, Data.ProtoLens.Field.HasField s "feeRate" a) =>+ Lens.Family2.LensLike' f s a+feeRate = Data.ProtoLens.Field.field @"feeRate"+feeSat ::+ forall f s a.+ (Prelude.Functor f, Data.ProtoLens.Field.HasField s "feeSat" a) =>+ Lens.Family2.LensLike' f s a+feeSat = Data.ProtoLens.Field.field @"feeSat"+feedback ::+ forall f s a.+ (Prelude.Functor f,+ Data.ProtoLens.Field.HasField s "feedback" a) =>+ Lens.Family2.LensLike' f s a+feedback = Data.ProtoLens.Field.field @"feedback"+firstIndexOffset ::+ forall f s a.+ (Prelude.Functor f,+ Data.ProtoLens.Field.HasField s "firstIndexOffset" a) =>+ Lens.Family2.LensLike' f s a+firstIndexOffset = Data.ProtoLens.Field.field @"firstIndexOffset"+flags ::+ forall f s a.+ (Prelude.Functor f, Data.ProtoLens.Field.HasField s "flags" a) =>+ Lens.Family2.LensLike' f s a+flags = Data.ProtoLens.Field.field @"flags"+forwardingEvents ::+ forall f s a.+ (Prelude.Functor f,+ Data.ProtoLens.Field.HasField s "forwardingEvents" a) =>+ Lens.Family2.LensLike' f s a+forwardingEvents = Data.ProtoLens.Field.field @"forwardingEvents"+fullMethod ::+ forall f s a.+ (Prelude.Functor f,+ Data.ProtoLens.Field.HasField s "fullMethod" a) =>+ Lens.Family2.LensLike' f s a+fullMethod = Data.ProtoLens.Field.field @"fullMethod"+global ::+ forall f s a.+ (Prelude.Functor f, Data.ProtoLens.Field.HasField s "global" a) =>+ Lens.Family2.LensLike' f s a+global = Data.ProtoLens.Field.field @"global"+hash ::+ forall f s a.+ (Prelude.Functor f, Data.ProtoLens.Field.HasField s "hash" a) =>+ Lens.Family2.LensLike' f s a+hash = Data.ProtoLens.Field.field @"hash"+height ::+ forall f s a.+ (Prelude.Functor f, Data.ProtoLens.Field.HasField s "height" a) =>+ Lens.Family2.LensLike' f s a+height = Data.ProtoLens.Field.field @"height"+htlcIndex ::+ forall f s a.+ (Prelude.Functor f,+ Data.ProtoLens.Field.HasField s "htlcIndex" a) =>+ Lens.Family2.LensLike' f s a+htlcIndex = Data.ProtoLens.Field.field @"htlcIndex"+htlcMaximumMsat ::+ forall f s a.+ (Prelude.Functor f,+ Data.ProtoLens.Field.HasField s "htlcMaximumMsat" a) =>+ Lens.Family2.LensLike' f s a+htlcMaximumMsat = Data.ProtoLens.Field.field @"htlcMaximumMsat"+htlcMinimumMsat ::+ forall f s a.+ (Prelude.Functor f,+ Data.ProtoLens.Field.HasField s "htlcMinimumMsat" a) =>+ Lens.Family2.LensLike' f s a+htlcMinimumMsat = Data.ProtoLens.Field.field @"htlcMinimumMsat"+htlcMsat ::+ forall f s a.+ (Prelude.Functor f,+ Data.ProtoLens.Field.HasField s "htlcMsat" a) =>+ Lens.Family2.LensLike' f s a+htlcMsat = Data.ProtoLens.Field.field @"htlcMsat"+htlcs ::+ forall f s a.+ (Prelude.Functor f, Data.ProtoLens.Field.HasField s "htlcs" a) =>+ Lens.Family2.LensLike' f s a+htlcs = Data.ProtoLens.Field.field @"htlcs"+iKnowWhatIAmDoing ::+ forall f s a.+ (Prelude.Functor f,+ Data.ProtoLens.Field.HasField s "iKnowWhatIAmDoing" a) =>+ Lens.Family2.LensLike' f s a+iKnowWhatIAmDoing = Data.ProtoLens.Field.field @"iKnowWhatIAmDoing"+includeIncomplete ::+ forall f s a.+ (Prelude.Functor f,+ Data.ProtoLens.Field.HasField s "includeIncomplete" a) =>+ Lens.Family2.LensLike' f s a+includeIncomplete = Data.ProtoLens.Field.field @"includeIncomplete"+indexOffset ::+ forall f s a.+ (Prelude.Functor f,+ Data.ProtoLens.Field.HasField s "indexOffset" a) =>+ Lens.Family2.LensLike' f s a+indexOffset = Data.ProtoLens.Field.field @"indexOffset"+invoices ::+ forall f s a.+ (Prelude.Functor f,+ Data.ProtoLens.Field.HasField s "invoices" a) =>+ Lens.Family2.LensLike' f s a+invoices = Data.ProtoLens.Field.field @"invoices"+isAmp ::+ forall f s a.+ (Prelude.Functor f, Data.ProtoLens.Field.HasField s "isAmp" a) =>+ Lens.Family2.LensLike' f s a+isAmp = Data.ProtoLens.Field.field @"isAmp"+isKeysend ::+ forall f s a.+ (Prelude.Functor f,+ Data.ProtoLens.Field.HasField s "isKeysend" a) =>+ Lens.Family2.LensLike' f s a+isKeysend = Data.ProtoLens.Field.field @"isKeysend"+key ::+ forall f s a.+ (Prelude.Functor f, Data.ProtoLens.Field.HasField s "key" a) =>+ Lens.Family2.LensLike' f s a+key = Data.ProtoLens.Field.field @"key"+lastIndexOffset ::+ forall f s a.+ (Prelude.Functor f,+ Data.ProtoLens.Field.HasField s "lastIndexOffset" a) =>+ Lens.Family2.LensLike' f s a+lastIndexOffset = Data.ProtoLens.Field.field @"lastIndexOffset"+lastOffsetIndex ::+ forall f s a.+ (Prelude.Functor f,+ Data.ProtoLens.Field.HasField s "lastOffsetIndex" a) =>+ Lens.Family2.LensLike' f s a+lastOffsetIndex = Data.ProtoLens.Field.field @"lastOffsetIndex"+levelSpec ::+ forall f s a.+ (Prelude.Functor f,+ Data.ProtoLens.Field.HasField s "levelSpec" a) =>+ Lens.Family2.LensLike' f s a+levelSpec = Data.ProtoLens.Field.field @"levelSpec"+macaroon ::+ forall f s a.+ (Prelude.Functor f,+ Data.ProtoLens.Field.HasField s "macaroon" a) =>+ Lens.Family2.LensLike' f s a+macaroon = Data.ProtoLens.Field.field @"macaroon"+maxHtlcMsat ::+ forall f s a.+ (Prelude.Functor f,+ Data.ProtoLens.Field.HasField s "maxHtlcMsat" a) =>+ Lens.Family2.LensLike' f s a+maxHtlcMsat = Data.ProtoLens.Field.field @"maxHtlcMsat"+maxPayments ::+ forall f s a.+ (Prelude.Functor f,+ Data.ProtoLens.Field.HasField s "maxPayments" a) =>+ Lens.Family2.LensLike' f s a+maxPayments = Data.ProtoLens.Field.field @"maxPayments"+maybe'amp ::+ forall f s a.+ (Prelude.Functor f,+ Data.ProtoLens.Field.HasField s "maybe'amp" a) =>+ Lens.Family2.LensLike' f s a+maybe'amp = Data.ProtoLens.Field.field @"maybe'amp"+maybe'backup ::+ forall f s a.+ (Prelude.Functor f,+ Data.ProtoLens.Field.HasField s "maybe'backup" a) =>+ Lens.Family2.LensLike' f s a+maybe'backup = Data.ProtoLens.Field.field @"maybe'backup"+maybe'chanBackups ::+ forall f s a.+ (Prelude.Functor f,+ Data.ProtoLens.Field.HasField s "maybe'chanBackups" a) =>+ Lens.Family2.LensLike' f s a+maybe'chanBackups = Data.ProtoLens.Field.field @"maybe'chanBackups"+maybe'chanPoint ::+ forall f s a.+ (Prelude.Functor f,+ Data.ProtoLens.Field.HasField s "maybe'chanPoint" a) =>+ Lens.Family2.LensLike' f s a+maybe'chanPoint = Data.ProtoLens.Field.field @"maybe'chanPoint"+maybe'channelPoint ::+ forall f s a.+ (Prelude.Functor f,+ Data.ProtoLens.Field.HasField s "maybe'channelPoint" a) =>+ Lens.Family2.LensLike' f s a+maybe'channelPoint+ = Data.ProtoLens.Field.field @"maybe'channelPoint"+maybe'channelUpdate ::+ forall f s a.+ (Prelude.Functor f,+ Data.ProtoLens.Field.HasField s "maybe'channelUpdate" a) =>+ Lens.Family2.LensLike' f s a+maybe'channelUpdate+ = Data.ProtoLens.Field.field @"maybe'channelUpdate"+maybe'failure ::+ forall f s a.+ (Prelude.Functor f,+ Data.ProtoLens.Field.HasField s "maybe'failure" a) =>+ Lens.Family2.LensLike' f s a+maybe'failure = Data.ProtoLens.Field.field @"maybe'failure"+maybe'feedback ::+ forall f s a.+ (Prelude.Functor f,+ Data.ProtoLens.Field.HasField s "maybe'feedback" a) =>+ Lens.Family2.LensLike' f s a+maybe'feedback = Data.ProtoLens.Field.field @"maybe'feedback"+maybe'global ::+ forall f s a.+ (Prelude.Functor f,+ Data.ProtoLens.Field.HasField s "maybe'global" a) =>+ Lens.Family2.LensLike' f s a+maybe'global = Data.ProtoLens.Field.field @"maybe'global"+maybe'interceptType ::+ forall f s a.+ (Prelude.Functor f,+ Data.ProtoLens.Field.HasField s "maybe'interceptType" a) =>+ Lens.Family2.LensLike' f s a+maybe'interceptType+ = Data.ProtoLens.Field.field @"maybe'interceptType"+maybe'middlewareMessage ::+ forall f s a.+ (Prelude.Functor f,+ Data.ProtoLens.Field.HasField s "maybe'middlewareMessage" a) =>+ Lens.Family2.LensLike' f s a+maybe'middlewareMessage+ = Data.ProtoLens.Field.field @"maybe'middlewareMessage"+maybe'multiChanBackup ::+ forall f s a.+ (Prelude.Functor f,+ Data.ProtoLens.Field.HasField s "maybe'multiChanBackup" a) =>+ Lens.Family2.LensLike' f s a+maybe'multiChanBackup+ = Data.ProtoLens.Field.field @"maybe'multiChanBackup"+maybe'outpoint ::+ forall f s a.+ (Prelude.Functor f,+ Data.ProtoLens.Field.HasField s "maybe'outpoint" a) =>+ Lens.Family2.LensLike' f s a+maybe'outpoint = Data.ProtoLens.Field.field @"maybe'outpoint"+maybe'register ::+ forall f s a.+ (Prelude.Functor f,+ Data.ProtoLens.Field.HasField s "maybe'register" a) =>+ Lens.Family2.LensLike' f s a+maybe'register = Data.ProtoLens.Field.field @"maybe'register"+maybe'request ::+ forall f s a.+ (Prelude.Functor f,+ Data.ProtoLens.Field.HasField s "maybe'request" a) =>+ Lens.Family2.LensLike' f s a+maybe'request = Data.ProtoLens.Field.field @"maybe'request"+maybe'response ::+ forall f s a.+ (Prelude.Functor f,+ Data.ProtoLens.Field.HasField s "maybe'response" a) =>+ Lens.Family2.LensLike' f s a+maybe'response = Data.ProtoLens.Field.field @"maybe'response"+maybe'route ::+ forall f s a.+ (Prelude.Functor f,+ Data.ProtoLens.Field.HasField s "maybe'route" a) =>+ Lens.Family2.LensLike' f s a+maybe'route = Data.ProtoLens.Field.field @"maybe'route"+maybe'scope ::+ forall f s a.+ (Prelude.Functor f,+ Data.ProtoLens.Field.HasField s "maybe'scope" a) =>+ Lens.Family2.LensLike' f s a+maybe'scope = Data.ProtoLens.Field.field @"maybe'scope"+maybe'singleChanBackups ::+ forall f s a.+ (Prelude.Functor f,+ Data.ProtoLens.Field.HasField s "maybe'singleChanBackups" a) =>+ Lens.Family2.LensLike' f s a+maybe'singleChanBackups+ = Data.ProtoLens.Field.field @"maybe'singleChanBackups"+maybe'streamAuth ::+ forall f s a.+ (Prelude.Functor f,+ Data.ProtoLens.Field.HasField s "maybe'streamAuth" a) =>+ Lens.Family2.LensLike' f s a+maybe'streamAuth = Data.ProtoLens.Field.field @"maybe'streamAuth"+maybe'value ::+ forall f s a.+ (Prelude.Functor f,+ Data.ProtoLens.Field.HasField s "maybe'value" a) =>+ Lens.Family2.LensLike' f s a+maybe'value = Data.ProtoLens.Field.field @"maybe'value"+memo ::+ forall f s a.+ (Prelude.Functor f, Data.ProtoLens.Field.HasField s "memo" a) =>+ Lens.Family2.LensLike' f s a+memo = Data.ProtoLens.Field.field @"memo"+messageFlags ::+ forall f s a.+ (Prelude.Functor f,+ Data.ProtoLens.Field.HasField s "messageFlags" a) =>+ Lens.Family2.LensLike' f s a+messageFlags = Data.ProtoLens.Field.field @"messageFlags"+methodFullUri ::+ forall f s a.+ (Prelude.Functor f,+ Data.ProtoLens.Field.HasField s "methodFullUri" a) =>+ Lens.Family2.LensLike' f s a+methodFullUri = Data.ProtoLens.Field.field @"methodFullUri"+methodPermissions ::+ forall f s a.+ (Prelude.Functor f,+ Data.ProtoLens.Field.HasField s "methodPermissions" a) =>+ Lens.Family2.LensLike' f s a+methodPermissions = Data.ProtoLens.Field.field @"methodPermissions"+middlewareName ::+ forall f s a.+ (Prelude.Functor f,+ Data.ProtoLens.Field.HasField s "middlewareName" a) =>+ Lens.Family2.LensLike' f s a+middlewareName = Data.ProtoLens.Field.field @"middlewareName"+minHtlcMsat ::+ forall f s a.+ (Prelude.Functor f,+ Data.ProtoLens.Field.HasField s "minHtlcMsat" a) =>+ Lens.Family2.LensLike' f s a+minHtlcMsat = Data.ProtoLens.Field.field @"minHtlcMsat"+minHtlcMsatSpecified ::+ forall f s a.+ (Prelude.Functor f,+ Data.ProtoLens.Field.HasField s "minHtlcMsatSpecified" a) =>+ Lens.Family2.LensLike' f s a+minHtlcMsatSpecified+ = Data.ProtoLens.Field.field @"minHtlcMsatSpecified"+monthFeeSum ::+ forall f s a.+ (Prelude.Functor f,+ Data.ProtoLens.Field.HasField s "monthFeeSum" a) =>+ Lens.Family2.LensLike' f s a+monthFeeSum = Data.ProtoLens.Field.field @"monthFeeSum"+mppTotalAmtMsat ::+ forall f s a.+ (Prelude.Functor f,+ Data.ProtoLens.Field.HasField s "mppTotalAmtMsat" a) =>+ Lens.Family2.LensLike' f s a+mppTotalAmtMsat = Data.ProtoLens.Field.field @"mppTotalAmtMsat"+msgId ::+ forall f s a.+ (Prelude.Functor f, Data.ProtoLens.Field.HasField s "msgId" a) =>+ Lens.Family2.LensLike' f s a+msgId = Data.ProtoLens.Field.field @"msgId"+multiChanBackup ::+ forall f s a.+ (Prelude.Functor f,+ Data.ProtoLens.Field.HasField s "multiChanBackup" a) =>+ Lens.Family2.LensLike' f s a+multiChanBackup = Data.ProtoLens.Field.field @"multiChanBackup"+nonce ::+ forall f s a.+ (Prelude.Functor f, Data.ProtoLens.Field.HasField s "nonce" a) =>+ Lens.Family2.LensLike' f s a+nonce = Data.ProtoLens.Field.field @"nonce"+numMaxEvents ::+ forall f s a.+ (Prelude.Functor f,+ Data.ProtoLens.Field.HasField s "numMaxEvents" a) =>+ Lens.Family2.LensLike' f s a+numMaxEvents = Data.ProtoLens.Field.field @"numMaxEvents"+numMaxInvoices ::+ forall f s a.+ (Prelude.Functor f,+ Data.ProtoLens.Field.HasField s "numMaxInvoices" a) =>+ Lens.Family2.LensLike' f s a+numMaxInvoices = Data.ProtoLens.Field.field @"numMaxInvoices"+numMsat ::+ forall f s a.+ (Prelude.Functor f, Data.ProtoLens.Field.HasField s "numMsat" a) =>+ Lens.Family2.LensLike' f s a+numMsat = Data.ProtoLens.Field.field @"numMsat"+numSatoshis ::+ forall f s a.+ (Prelude.Functor f,+ Data.ProtoLens.Field.HasField s "numSatoshis" a) =>+ Lens.Family2.LensLike' f s a+numSatoshis = Data.ProtoLens.Field.field @"numSatoshis"+onionSha256 ::+ forall f s a.+ (Prelude.Functor f,+ Data.ProtoLens.Field.HasField s "onionSha256" a) =>+ Lens.Family2.LensLike' f s a+onionSha256 = Data.ProtoLens.Field.field @"onionSha256"+ops ::+ forall f s a.+ (Prelude.Functor f, Data.ProtoLens.Field.HasField s "ops" a) =>+ Lens.Family2.LensLike' f s a+ops = Data.ProtoLens.Field.field @"ops"+outpoint ::+ forall f s a.+ (Prelude.Functor f,+ Data.ProtoLens.Field.HasField s "outpoint" a) =>+ Lens.Family2.LensLike' f s a+outpoint = Data.ProtoLens.Field.field @"outpoint"+payReq ::+ forall f s a.+ (Prelude.Functor f, Data.ProtoLens.Field.HasField s "payReq" a) =>+ Lens.Family2.LensLike' f s a+payReq = Data.ProtoLens.Field.field @"payReq"+paymentAddr ::+ forall f s a.+ (Prelude.Functor f,+ Data.ProtoLens.Field.HasField s "paymentAddr" a) =>+ Lens.Family2.LensLike' f s a+paymentAddr = Data.ProtoLens.Field.field @"paymentAddr"+paymentHash ::+ forall f s a.+ (Prelude.Functor f,+ Data.ProtoLens.Field.HasField s "paymentHash" a) =>+ Lens.Family2.LensLike' f s a+paymentHash = Data.ProtoLens.Field.field @"paymentHash"+paymentIndex ::+ forall f s a.+ (Prelude.Functor f,+ Data.ProtoLens.Field.HasField s "paymentIndex" a) =>+ Lens.Family2.LensLike' f s a+paymentIndex = Data.ProtoLens.Field.field @"paymentIndex"+paymentPreimage ::+ forall f s a.+ (Prelude.Functor f,+ Data.ProtoLens.Field.HasField s "paymentPreimage" a) =>+ Lens.Family2.LensLike' f s a+paymentPreimage = Data.ProtoLens.Field.field @"paymentPreimage"+paymentRequest ::+ forall f s a.+ (Prelude.Functor f,+ Data.ProtoLens.Field.HasField s "paymentRequest" a) =>+ Lens.Family2.LensLike' f s a+paymentRequest = Data.ProtoLens.Field.field @"paymentRequest"+payments ::+ forall f s a.+ (Prelude.Functor f,+ Data.ProtoLens.Field.HasField s "payments" a) =>+ Lens.Family2.LensLike' f s a+payments = Data.ProtoLens.Field.field @"payments"+pendingFundingShimOnly ::+ forall f s a.+ (Prelude.Functor f,+ Data.ProtoLens.Field.HasField s "pendingFundingShimOnly" a) =>+ Lens.Family2.LensLike' f s a+pendingFundingShimOnly+ = Data.ProtoLens.Field.field @"pendingFundingShimOnly"+pendingOnly ::+ forall f s a.+ (Prelude.Functor f,+ Data.ProtoLens.Field.HasField s "pendingOnly" a) =>+ Lens.Family2.LensLike' f s a+pendingOnly = Data.ProtoLens.Field.field @"pendingOnly"+permissions ::+ forall f s a.+ (Prelude.Functor f,+ Data.ProtoLens.Field.HasField s "permissions" a) =>+ Lens.Family2.LensLike' f s a+permissions = Data.ProtoLens.Field.field @"permissions"+preimage ::+ forall f s a.+ (Prelude.Functor f,+ Data.ProtoLens.Field.HasField s "preimage" a) =>+ Lens.Family2.LensLike' f s a+preimage = Data.ProtoLens.Field.field @"preimage"+private ::+ forall f s a.+ (Prelude.Functor f, Data.ProtoLens.Field.HasField s "private" a) =>+ Lens.Family2.LensLike' f s a+private = Data.ProtoLens.Field.field @"private"+rHash ::+ forall f s a.+ (Prelude.Functor f, Data.ProtoLens.Field.HasField s "rHash" a) =>+ Lens.Family2.LensLike' f s a+rHash = Data.ProtoLens.Field.field @"rHash"+rHashStr ::+ forall f s a.+ (Prelude.Functor f,+ Data.ProtoLens.Field.HasField s "rHashStr" a) =>+ Lens.Family2.LensLike' f s a+rHashStr = Data.ProtoLens.Field.field @"rHashStr"+rPreimage ::+ forall f s a.+ (Prelude.Functor f,+ Data.ProtoLens.Field.HasField s "rPreimage" a) =>+ Lens.Family2.LensLike' f s a+rPreimage = Data.ProtoLens.Field.field @"rPreimage"+rawMacaroon ::+ forall f s a.+ (Prelude.Functor f,+ Data.ProtoLens.Field.HasField s "rawMacaroon" a) =>+ Lens.Family2.LensLike' f s a+rawMacaroon = Data.ProtoLens.Field.field @"rawMacaroon"+readOnlyMode ::+ forall f s a.+ (Prelude.Functor f,+ Data.ProtoLens.Field.HasField s "readOnlyMode" a) =>+ Lens.Family2.LensLike' f s a+readOnlyMode = Data.ProtoLens.Field.field @"readOnlyMode"+reason ::+ forall f s a.+ (Prelude.Functor f, Data.ProtoLens.Field.HasField s "reason" a) =>+ Lens.Family2.LensLike' f s a+reason = Data.ProtoLens.Field.field @"reason"+refMsgId ::+ forall f s a.+ (Prelude.Functor f,+ Data.ProtoLens.Field.HasField s "refMsgId" a) =>+ Lens.Family2.LensLike' f s a+refMsgId = Data.ProtoLens.Field.field @"refMsgId"+register ::+ forall f s a.+ (Prelude.Functor f,+ Data.ProtoLens.Field.HasField s "register" a) =>+ Lens.Family2.LensLike' f s a+register = Data.ProtoLens.Field.field @"register"+replaceResponse ::+ forall f s a.+ (Prelude.Functor f,+ Data.ProtoLens.Field.HasField s "replaceResponse" a) =>+ Lens.Family2.LensLike' f s a+replaceResponse = Data.ProtoLens.Field.field @"replaceResponse"+replacementSerialized ::+ forall f s a.+ (Prelude.Functor f,+ Data.ProtoLens.Field.HasField s "replacementSerialized" a) =>+ Lens.Family2.LensLike' f s a+replacementSerialized+ = Data.ProtoLens.Field.field @"replacementSerialized"+request ::+ forall f s a.+ (Prelude.Functor f, Data.ProtoLens.Field.HasField s "request" a) =>+ Lens.Family2.LensLike' f s a+request = Data.ProtoLens.Field.field @"request"+requestId ::+ forall f s a.+ (Prelude.Functor f,+ Data.ProtoLens.Field.HasField s "requestId" a) =>+ Lens.Family2.LensLike' f s a+requestId = Data.ProtoLens.Field.field @"requestId"+resolveTime ::+ forall f s a.+ (Prelude.Functor f,+ Data.ProtoLens.Field.HasField s "resolveTime" a) =>+ Lens.Family2.LensLike' f s a+resolveTime = Data.ProtoLens.Field.field @"resolveTime"+resolveTimeNs ::+ forall f s a.+ (Prelude.Functor f,+ Data.ProtoLens.Field.HasField s "resolveTimeNs" a) =>+ Lens.Family2.LensLike' f s a+resolveTimeNs = Data.ProtoLens.Field.field @"resolveTimeNs"+response ::+ forall f s a.+ (Prelude.Functor f,+ Data.ProtoLens.Field.HasField s "response" a) =>+ Lens.Family2.LensLike' f s a+response = Data.ProtoLens.Field.field @"response"+reversed ::+ forall f s a.+ (Prelude.Functor f,+ Data.ProtoLens.Field.HasField s "reversed" a) =>+ Lens.Family2.LensLike' f s a+reversed = Data.ProtoLens.Field.field @"reversed"+rootKeyId ::+ forall f s a.+ (Prelude.Functor f,+ Data.ProtoLens.Field.HasField s "rootKeyId" a) =>+ Lens.Family2.LensLike' f s a+rootKeyId = Data.ProtoLens.Field.field @"rootKeyId"+rootKeyIds ::+ forall f s a.+ (Prelude.Functor f,+ Data.ProtoLens.Field.HasField s "rootKeyIds" a) =>+ Lens.Family2.LensLike' f s a+rootKeyIds = Data.ProtoLens.Field.field @"rootKeyIds"+rootShare ::+ forall f s a.+ (Prelude.Functor f,+ Data.ProtoLens.Field.HasField s "rootShare" a) =>+ Lens.Family2.LensLike' f s a+rootShare = Data.ProtoLens.Field.field @"rootShare"+route ::+ forall f s a.+ (Prelude.Functor f, Data.ProtoLens.Field.HasField s "route" a) =>+ Lens.Family2.LensLike' f s a+route = Data.ProtoLens.Field.field @"route"+routeHints ::+ forall f s a.+ (Prelude.Functor f,+ Data.ProtoLens.Field.HasField s "routeHints" a) =>+ Lens.Family2.LensLike' f s a+routeHints = Data.ProtoLens.Field.field @"routeHints"+serialized ::+ forall f s a.+ (Prelude.Functor f,+ Data.ProtoLens.Field.HasField s "serialized" a) =>+ Lens.Family2.LensLike' f s a+serialized = Data.ProtoLens.Field.field @"serialized"+setId ::+ forall f s a.+ (Prelude.Functor f, Data.ProtoLens.Field.HasField s "setId" a) =>+ Lens.Family2.LensLike' f s a+setId = Data.ProtoLens.Field.field @"setId"+settleDate ::+ forall f s a.+ (Prelude.Functor f,+ Data.ProtoLens.Field.HasField s "settleDate" a) =>+ Lens.Family2.LensLike' f s a+settleDate = Data.ProtoLens.Field.field @"settleDate"+settleIndex ::+ forall f s a.+ (Prelude.Functor f,+ Data.ProtoLens.Field.HasField s "settleIndex" a) =>+ Lens.Family2.LensLike' f s a+settleIndex = Data.ProtoLens.Field.field @"settleIndex"+settleTime ::+ forall f s a.+ (Prelude.Functor f,+ Data.ProtoLens.Field.HasField s "settleTime" a) =>+ Lens.Family2.LensLike' f s a+settleTime = Data.ProtoLens.Field.field @"settleTime"+settled ::+ forall f s a.+ (Prelude.Functor f, Data.ProtoLens.Field.HasField s "settled" a) =>+ Lens.Family2.LensLike' f s a+settled = Data.ProtoLens.Field.field @"settled"+show ::+ forall f s a.+ (Prelude.Functor f, Data.ProtoLens.Field.HasField s "show" a) =>+ Lens.Family2.LensLike' f s a+show = Data.ProtoLens.Field.field @"show"+signature ::+ forall f s a.+ (Prelude.Functor f,+ Data.ProtoLens.Field.HasField s "signature" a) =>+ Lens.Family2.LensLike' f s a+signature = Data.ProtoLens.Field.field @"signature"+singleChanBackups ::+ forall f s a.+ (Prelude.Functor f,+ Data.ProtoLens.Field.HasField s "singleChanBackups" a) =>+ Lens.Family2.LensLike' f s a+singleChanBackups = Data.ProtoLens.Field.field @"singleChanBackups"+startTime ::+ forall f s a.+ (Prelude.Functor f,+ Data.ProtoLens.Field.HasField s "startTime" a) =>+ Lens.Family2.LensLike' f s a+startTime = Data.ProtoLens.Field.field @"startTime"+state ::+ forall f s a.+ (Prelude.Functor f, Data.ProtoLens.Field.HasField s "state" a) =>+ Lens.Family2.LensLike' f s a+state = Data.ProtoLens.Field.field @"state"+status ::+ forall f s a.+ (Prelude.Functor f, Data.ProtoLens.Field.HasField s "status" a) =>+ Lens.Family2.LensLike' f s a+status = Data.ProtoLens.Field.field @"status"+storageId ::+ forall f s a.+ (Prelude.Functor f,+ Data.ProtoLens.Field.HasField s "storageId" a) =>+ Lens.Family2.LensLike' f s a+storageId = Data.ProtoLens.Field.field @"storageId"+streamAuth ::+ forall f s a.+ (Prelude.Functor f,+ Data.ProtoLens.Field.HasField s "streamAuth" a) =>+ Lens.Family2.LensLike' f s a+streamAuth = Data.ProtoLens.Field.field @"streamAuth"+streamRpc ::+ forall f s a.+ (Prelude.Functor f,+ Data.ProtoLens.Field.HasField s "streamRpc" a) =>+ Lens.Family2.LensLike' f s a+streamRpc = Data.ProtoLens.Field.field @"streamRpc"+subSystems ::+ forall f s a.+ (Prelude.Functor f,+ Data.ProtoLens.Field.HasField s "subSystems" a) =>+ Lens.Family2.LensLike' f s a+subSystems = Data.ProtoLens.Field.field @"subSystems"+timeLockDelta ::+ forall f s a.+ (Prelude.Functor f,+ Data.ProtoLens.Field.HasField s "timeLockDelta" a) =>+ Lens.Family2.LensLike' f s a+timeLockDelta = Data.ProtoLens.Field.field @"timeLockDelta"+timestamp ::+ forall f s a.+ (Prelude.Functor f,+ Data.ProtoLens.Field.HasField s "timestamp" a) =>+ Lens.Family2.LensLike' f s a+timestamp = Data.ProtoLens.Field.field @"timestamp"+timestampNs ::+ forall f s a.+ (Prelude.Functor f,+ Data.ProtoLens.Field.HasField s "timestampNs" a) =>+ Lens.Family2.LensLike' f s a+timestampNs = Data.ProtoLens.Field.field @"timestampNs"+typeName ::+ forall f s a.+ (Prelude.Functor f,+ Data.ProtoLens.Field.HasField s "typeName" a) =>+ Lens.Family2.LensLike' f s a+typeName = Data.ProtoLens.Field.field @"typeName"+updateError ::+ forall f s a.+ (Prelude.Functor f,+ Data.ProtoLens.Field.HasField s "updateError" a) =>+ Lens.Family2.LensLike' f s a+updateError = Data.ProtoLens.Field.field @"updateError"+valid ::+ forall f s a.+ (Prelude.Functor f, Data.ProtoLens.Field.HasField s "valid" a) =>+ Lens.Family2.LensLike' f s a+valid = Data.ProtoLens.Field.field @"valid"+value ::+ forall f s a.+ (Prelude.Functor f, Data.ProtoLens.Field.HasField s "value" a) =>+ Lens.Family2.LensLike' f s a+value = Data.ProtoLens.Field.field @"value"+valueMsat ::+ forall f s a.+ (Prelude.Functor f,+ Data.ProtoLens.Field.HasField s "valueMsat" a) =>+ Lens.Family2.LensLike' f s a+valueMsat = Data.ProtoLens.Field.field @"valueMsat"+valueSat ::+ forall f s a.+ (Prelude.Functor f,+ Data.ProtoLens.Field.HasField s "valueSat" a) =>+ Lens.Family2.LensLike' f s a+valueSat = Data.ProtoLens.Field.field @"valueSat"+vec'actions ::+ forall f s a.+ (Prelude.Functor f,+ Data.ProtoLens.Field.HasField s "vec'actions" a) =>+ Lens.Family2.LensLike' f s a+vec'actions = Data.ProtoLens.Field.field @"vec'actions"+vec'chanBackups ::+ forall f s a.+ (Prelude.Functor f,+ Data.ProtoLens.Field.HasField s "vec'chanBackups" a) =>+ Lens.Family2.LensLike' f s a+vec'chanBackups = Data.ProtoLens.Field.field @"vec'chanBackups"+vec'chanPoints ::+ forall f s a.+ (Prelude.Functor f,+ Data.ProtoLens.Field.HasField s "vec'chanPoints" a) =>+ Lens.Family2.LensLike' f s a+vec'chanPoints = Data.ProtoLens.Field.field @"vec'chanPoints"+vec'channelFees ::+ forall f s a.+ (Prelude.Functor f,+ Data.ProtoLens.Field.HasField s "vec'channelFees" a) =>+ Lens.Family2.LensLike' f s a+vec'channelFees = Data.ProtoLens.Field.field @"vec'channelFees"+vec'failedUpdates ::+ forall f s a.+ (Prelude.Functor f,+ Data.ProtoLens.Field.HasField s "vec'failedUpdates" a) =>+ Lens.Family2.LensLike' f s a+vec'failedUpdates = Data.ProtoLens.Field.field @"vec'failedUpdates"+vec'forwardingEvents ::+ forall f s a.+ (Prelude.Functor f,+ Data.ProtoLens.Field.HasField s "vec'forwardingEvents" a) =>+ Lens.Family2.LensLike' f s a+vec'forwardingEvents+ = Data.ProtoLens.Field.field @"vec'forwardingEvents"+vec'htlcs ::+ forall f s a.+ (Prelude.Functor f,+ Data.ProtoLens.Field.HasField s "vec'htlcs" a) =>+ Lens.Family2.LensLike' f s a+vec'htlcs = Data.ProtoLens.Field.field @"vec'htlcs"+vec'invoices ::+ forall f s a.+ (Prelude.Functor f,+ Data.ProtoLens.Field.HasField s "vec'invoices" a) =>+ Lens.Family2.LensLike' f s a+vec'invoices = Data.ProtoLens.Field.field @"vec'invoices"+vec'ops ::+ forall f s a.+ (Prelude.Functor f, Data.ProtoLens.Field.HasField s "vec'ops" a) =>+ Lens.Family2.LensLike' f s a+vec'ops = Data.ProtoLens.Field.field @"vec'ops"+vec'payments ::+ forall f s a.+ (Prelude.Functor f,+ Data.ProtoLens.Field.HasField s "vec'payments" a) =>+ Lens.Family2.LensLike' f s a+vec'payments = Data.ProtoLens.Field.field @"vec'payments"+vec'permissions ::+ forall f s a.+ (Prelude.Functor f,+ Data.ProtoLens.Field.HasField s "vec'permissions" a) =>+ Lens.Family2.LensLike' f s a+vec'permissions = Data.ProtoLens.Field.field @"vec'permissions"+vec'rootKeyIds ::+ forall f s a.+ (Prelude.Functor f,+ Data.ProtoLens.Field.HasField s "vec'rootKeyIds" a) =>+ Lens.Family2.LensLike' f s a+vec'rootKeyIds = Data.ProtoLens.Field.field @"vec'rootKeyIds"+vec'routeHints ::+ forall f s a.+ (Prelude.Functor f,+ Data.ProtoLens.Field.HasField s "vec'routeHints" a) =>+ Lens.Family2.LensLike' f s a+vec'routeHints = Data.ProtoLens.Field.field @"vec'routeHints"+weekFeeSum ::+ forall f s a.+ (Prelude.Functor f,+ Data.ProtoLens.Field.HasField s "weekFeeSum" a) =>+ Lens.Family2.LensLike' f s a+weekFeeSum = Data.ProtoLens.Field.field @"weekFeeSum"
@@ -1,10865 +0,0 @@-{- This file was auto-generated from router_grpc.proto by the proto-lens-protoc program. -}-{-# LANGUAGE ScopedTypeVariables, DataKinds, TypeFamilies, UndecidableInstances, GeneralizedNewtypeDeriving, MultiParamTypeClasses, FlexibleContexts, FlexibleInstances, PatternSynonyms, MagicHash, NoImplicitPrelude, DataKinds, BangPatterns, TypeApplications, OverloadedStrings, DerivingStrategies#-}-{-# OPTIONS_GHC -Wno-unused-imports#-}-{-# OPTIONS_GHC -Wno-duplicate-exports#-}-{-# OPTIONS_GHC -Wno-dodgy-exports#-}-module Proto.RouterGrpc (- Router(..), BuildRouteRequest(), BuildRouteResponse(),- ChanStatusAction(..), ChanStatusAction(),- ChanStatusAction'UnrecognizedValue, CircuitKey(),- FailureDetail(..), FailureDetail(),- FailureDetail'UnrecognizedValue, ForwardEvent(),- ForwardFailEvent(), ForwardHtlcInterceptRequest(),- ForwardHtlcInterceptRequest'CustomRecordsEntry(),- ForwardHtlcInterceptResponse(), GetMissionControlConfigRequest(),- GetMissionControlConfigResponse(), HtlcEvent(),- HtlcEvent'Event(..), _HtlcEvent'ForwardEvent,- _HtlcEvent'ForwardFailEvent, _HtlcEvent'SettleEvent,- _HtlcEvent'LinkFailEvent, HtlcEvent'EventType(..),- HtlcEvent'EventType(), HtlcEvent'EventType'UnrecognizedValue,- HtlcInfo(), LinkFailEvent(), MissionControlConfig(), PairData(),- PairHistory(), PaymentState(..), PaymentState(),- PaymentState'UnrecognizedValue, PaymentStatus(),- QueryMissionControlRequest(), QueryMissionControlResponse(),- QueryProbabilityRequest(), QueryProbabilityResponse(),- ResetMissionControlRequest(), ResetMissionControlResponse(),- ResolveHoldForwardAction(..), ResolveHoldForwardAction(),- ResolveHoldForwardAction'UnrecognizedValue, RouteFeeRequest(),- RouteFeeResponse(), SendPaymentRequest(),- SendPaymentRequest'DestCustomRecordsEntry(), SendToRouteRequest(),- SendToRouteResponse(), SetMissionControlConfigRequest(),- SetMissionControlConfigResponse(), SettleEvent(),- SubscribeHtlcEventsRequest(), TrackPaymentRequest(),- UpdateChanStatusRequest(), UpdateChanStatusResponse(),- XImportMissionControlRequest(), XImportMissionControlResponse()- ) where-import qualified Data.ProtoLens.Runtime.Control.DeepSeq as Control.DeepSeq-import qualified Data.ProtoLens.Runtime.Data.ProtoLens.Prism as Data.ProtoLens.Prism-import qualified Data.ProtoLens.Runtime.Prelude as Prelude-import qualified Data.ProtoLens.Runtime.Data.Int as Data.Int-import qualified Data.ProtoLens.Runtime.Data.Monoid as Data.Monoid-import qualified Data.ProtoLens.Runtime.Data.Word as Data.Word-import qualified Data.ProtoLens.Runtime.Data.ProtoLens as Data.ProtoLens-import qualified Data.ProtoLens.Runtime.Data.ProtoLens.Encoding.Bytes as Data.ProtoLens.Encoding.Bytes-import qualified Data.ProtoLens.Runtime.Data.ProtoLens.Encoding.Growing as Data.ProtoLens.Encoding.Growing-import qualified Data.ProtoLens.Runtime.Data.ProtoLens.Encoding.Parser.Unsafe as Data.ProtoLens.Encoding.Parser.Unsafe-import qualified Data.ProtoLens.Runtime.Data.ProtoLens.Encoding.Wire as Data.ProtoLens.Encoding.Wire-import qualified Data.ProtoLens.Runtime.Data.ProtoLens.Field as Data.ProtoLens.Field-import qualified Data.ProtoLens.Runtime.Data.ProtoLens.Message.Enum as Data.ProtoLens.Message.Enum-import qualified Data.ProtoLens.Runtime.Data.ProtoLens.Service.Types as Data.ProtoLens.Service.Types-import qualified Data.ProtoLens.Runtime.Lens.Family2 as Lens.Family2-import qualified Data.ProtoLens.Runtime.Lens.Family2.Unchecked as Lens.Family2.Unchecked-import qualified Data.ProtoLens.Runtime.Data.Text as Data.Text-import qualified Data.ProtoLens.Runtime.Data.Map as Data.Map-import qualified Data.ProtoLens.Runtime.Data.ByteString as Data.ByteString-import qualified Data.ProtoLens.Runtime.Data.ByteString.Char8 as Data.ByteString.Char8-import qualified Data.ProtoLens.Runtime.Data.Text.Encoding as Data.Text.Encoding-import qualified Data.ProtoLens.Runtime.Data.Vector as Data.Vector-import qualified Data.ProtoLens.Runtime.Data.Vector.Generic as Data.Vector.Generic-import qualified Data.ProtoLens.Runtime.Data.Vector.Unboxed as Data.Vector.Unboxed-import qualified Data.ProtoLens.Runtime.Text.Read as Text.Read-import qualified Proto.LndGrpc-{- | Fields :- - * 'Proto.RouterGrpc_Fields.amtMsat' @:: Lens' BuildRouteRequest Data.Int.Int64@- * 'Proto.RouterGrpc_Fields.finalCltvDelta' @:: Lens' BuildRouteRequest Data.Int.Int32@- * 'Proto.RouterGrpc_Fields.outgoingChanId' @:: Lens' BuildRouteRequest Data.Word.Word64@- * 'Proto.RouterGrpc_Fields.hopPubkeys' @:: Lens' BuildRouteRequest [Data.ByteString.ByteString]@- * 'Proto.RouterGrpc_Fields.vec'hopPubkeys' @:: Lens' BuildRouteRequest (Data.Vector.Vector Data.ByteString.ByteString)@- * 'Proto.RouterGrpc_Fields.paymentAddr' @:: Lens' BuildRouteRequest Data.ByteString.ByteString@ -}-data BuildRouteRequest- = BuildRouteRequest'_constructor {_BuildRouteRequest'amtMsat :: !Data.Int.Int64,- _BuildRouteRequest'finalCltvDelta :: !Data.Int.Int32,- _BuildRouteRequest'outgoingChanId :: !Data.Word.Word64,- _BuildRouteRequest'hopPubkeys :: !(Data.Vector.Vector Data.ByteString.ByteString),- _BuildRouteRequest'paymentAddr :: !Data.ByteString.ByteString,- _BuildRouteRequest'_unknownFields :: !Data.ProtoLens.FieldSet}- deriving stock (Prelude.Eq, Prelude.Ord)-instance Prelude.Show BuildRouteRequest where- showsPrec _ __x __s- = Prelude.showChar- '{'- (Prelude.showString- (Data.ProtoLens.showMessageShort __x) (Prelude.showChar '}' __s))-instance Data.ProtoLens.Field.HasField BuildRouteRequest "amtMsat" Data.Int.Int64 where- fieldOf _- = (Prelude..)- (Lens.Family2.Unchecked.lens- _BuildRouteRequest'amtMsat- (\ x__ y__ -> x__ {_BuildRouteRequest'amtMsat = y__}))- Prelude.id-instance Data.ProtoLens.Field.HasField BuildRouteRequest "finalCltvDelta" Data.Int.Int32 where- fieldOf _- = (Prelude..)- (Lens.Family2.Unchecked.lens- _BuildRouteRequest'finalCltvDelta- (\ x__ y__ -> x__ {_BuildRouteRequest'finalCltvDelta = y__}))- Prelude.id-instance Data.ProtoLens.Field.HasField BuildRouteRequest "outgoingChanId" Data.Word.Word64 where- fieldOf _- = (Prelude..)- (Lens.Family2.Unchecked.lens- _BuildRouteRequest'outgoingChanId- (\ x__ y__ -> x__ {_BuildRouteRequest'outgoingChanId = y__}))- Prelude.id-instance Data.ProtoLens.Field.HasField BuildRouteRequest "hopPubkeys" [Data.ByteString.ByteString] where- fieldOf _- = (Prelude..)- (Lens.Family2.Unchecked.lens- _BuildRouteRequest'hopPubkeys- (\ x__ y__ -> x__ {_BuildRouteRequest'hopPubkeys = y__}))- (Lens.Family2.Unchecked.lens- Data.Vector.Generic.toList- (\ _ y__ -> Data.Vector.Generic.fromList y__))-instance Data.ProtoLens.Field.HasField BuildRouteRequest "vec'hopPubkeys" (Data.Vector.Vector Data.ByteString.ByteString) where- fieldOf _- = (Prelude..)- (Lens.Family2.Unchecked.lens- _BuildRouteRequest'hopPubkeys- (\ x__ y__ -> x__ {_BuildRouteRequest'hopPubkeys = y__}))- Prelude.id-instance Data.ProtoLens.Field.HasField BuildRouteRequest "paymentAddr" Data.ByteString.ByteString where- fieldOf _- = (Prelude..)- (Lens.Family2.Unchecked.lens- _BuildRouteRequest'paymentAddr- (\ x__ y__ -> x__ {_BuildRouteRequest'paymentAddr = y__}))- Prelude.id-instance Data.ProtoLens.Message BuildRouteRequest where- messageName _ = Data.Text.pack "routerrpc.BuildRouteRequest"- packedMessageDescriptor _- = "\n\- \\DC1BuildRouteRequest\DC2\EM\n\- \\bamt_msat\CAN\SOH \SOH(\ETXR\aamtMsat\DC2(\n\- \\DLEfinal_cltv_delta\CAN\STX \SOH(\ENQR\SOfinalCltvDelta\DC2,\n\- \\DLEoutgoing_chan_id\CAN\ETX \SOH(\EOTR\SOoutgoingChanIdB\STX0\SOH\DC2\US\n\- \\vhop_pubkeys\CAN\EOT \ETX(\fR\n\- \hopPubkeys\DC2!\n\- \\fpayment_addr\CAN\ENQ \SOH(\fR\vpaymentAddr"- packedFileDescriptor _ = packedFileDescriptor- fieldsByTag- = let- amtMsat__field_descriptor- = Data.ProtoLens.FieldDescriptor- "amt_msat"- (Data.ProtoLens.ScalarField Data.ProtoLens.Int64Field ::- Data.ProtoLens.FieldTypeDescriptor Data.Int.Int64)- (Data.ProtoLens.PlainField- Data.ProtoLens.Optional (Data.ProtoLens.Field.field @"amtMsat")) ::- Data.ProtoLens.FieldDescriptor BuildRouteRequest- finalCltvDelta__field_descriptor- = Data.ProtoLens.FieldDescriptor- "final_cltv_delta"- (Data.ProtoLens.ScalarField Data.ProtoLens.Int32Field ::- Data.ProtoLens.FieldTypeDescriptor Data.Int.Int32)- (Data.ProtoLens.PlainField- Data.ProtoLens.Optional- (Data.ProtoLens.Field.field @"finalCltvDelta")) ::- Data.ProtoLens.FieldDescriptor BuildRouteRequest- outgoingChanId__field_descriptor- = Data.ProtoLens.FieldDescriptor- "outgoing_chan_id"- (Data.ProtoLens.ScalarField Data.ProtoLens.UInt64Field ::- Data.ProtoLens.FieldTypeDescriptor Data.Word.Word64)- (Data.ProtoLens.PlainField- Data.ProtoLens.Optional- (Data.ProtoLens.Field.field @"outgoingChanId")) ::- Data.ProtoLens.FieldDescriptor BuildRouteRequest- hopPubkeys__field_descriptor- = Data.ProtoLens.FieldDescriptor- "hop_pubkeys"- (Data.ProtoLens.ScalarField Data.ProtoLens.BytesField ::- Data.ProtoLens.FieldTypeDescriptor Data.ByteString.ByteString)- (Data.ProtoLens.RepeatedField- Data.ProtoLens.Unpacked- (Data.ProtoLens.Field.field @"hopPubkeys")) ::- Data.ProtoLens.FieldDescriptor BuildRouteRequest- paymentAddr__field_descriptor- = Data.ProtoLens.FieldDescriptor- "payment_addr"- (Data.ProtoLens.ScalarField Data.ProtoLens.BytesField ::- Data.ProtoLens.FieldTypeDescriptor Data.ByteString.ByteString)- (Data.ProtoLens.PlainField- Data.ProtoLens.Optional- (Data.ProtoLens.Field.field @"paymentAddr")) ::- Data.ProtoLens.FieldDescriptor BuildRouteRequest- in- Data.Map.fromList- [(Data.ProtoLens.Tag 1, amtMsat__field_descriptor),- (Data.ProtoLens.Tag 2, finalCltvDelta__field_descriptor),- (Data.ProtoLens.Tag 3, outgoingChanId__field_descriptor),- (Data.ProtoLens.Tag 4, hopPubkeys__field_descriptor),- (Data.ProtoLens.Tag 5, paymentAddr__field_descriptor)]- unknownFields- = Lens.Family2.Unchecked.lens- _BuildRouteRequest'_unknownFields- (\ x__ y__ -> x__ {_BuildRouteRequest'_unknownFields = y__})- defMessage- = BuildRouteRequest'_constructor- {_BuildRouteRequest'amtMsat = Data.ProtoLens.fieldDefault,- _BuildRouteRequest'finalCltvDelta = Data.ProtoLens.fieldDefault,- _BuildRouteRequest'outgoingChanId = Data.ProtoLens.fieldDefault,- _BuildRouteRequest'hopPubkeys = Data.Vector.Generic.empty,- _BuildRouteRequest'paymentAddr = Data.ProtoLens.fieldDefault,- _BuildRouteRequest'_unknownFields = []}- parseMessage- = let- loop ::- BuildRouteRequest- -> Data.ProtoLens.Encoding.Growing.Growing Data.Vector.Vector Data.ProtoLens.Encoding.Growing.RealWorld Data.ByteString.ByteString- -> Data.ProtoLens.Encoding.Bytes.Parser BuildRouteRequest- loop x mutable'hopPubkeys- = do end <- Data.ProtoLens.Encoding.Bytes.atEnd- if end then- do frozen'hopPubkeys <- Data.ProtoLens.Encoding.Parser.Unsafe.unsafeLiftIO- (Data.ProtoLens.Encoding.Growing.unsafeFreeze- mutable'hopPubkeys)- (let missing = []- in- if Prelude.null missing then- Prelude.return ()- else- Prelude.fail- ((Prelude.++)- "Missing required fields: "- (Prelude.show (missing :: [Prelude.String]))))- Prelude.return- (Lens.Family2.over- Data.ProtoLens.unknownFields- (\ !t -> Prelude.reverse t)- (Lens.Family2.set- (Data.ProtoLens.Field.field @"vec'hopPubkeys")- frozen'hopPubkeys- x))- else- do tag <- Data.ProtoLens.Encoding.Bytes.getVarInt- case tag of- 8 -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)- (Prelude.fmap- Prelude.fromIntegral- Data.ProtoLens.Encoding.Bytes.getVarInt)- "amt_msat"- loop- (Lens.Family2.set (Data.ProtoLens.Field.field @"amtMsat") y x)- mutable'hopPubkeys- 16- -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)- (Prelude.fmap- Prelude.fromIntegral- Data.ProtoLens.Encoding.Bytes.getVarInt)- "final_cltv_delta"- loop- (Lens.Family2.set- (Data.ProtoLens.Field.field @"finalCltvDelta") y x)- mutable'hopPubkeys- 24- -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)- Data.ProtoLens.Encoding.Bytes.getVarInt "outgoing_chan_id"- loop- (Lens.Family2.set- (Data.ProtoLens.Field.field @"outgoingChanId") y x)- mutable'hopPubkeys- 34- -> do !y <- (Data.ProtoLens.Encoding.Bytes.<?>)- (do len <- Data.ProtoLens.Encoding.Bytes.getVarInt- Data.ProtoLens.Encoding.Bytes.getBytes- (Prelude.fromIntegral len))- "hop_pubkeys"- v <- Data.ProtoLens.Encoding.Parser.Unsafe.unsafeLiftIO- (Data.ProtoLens.Encoding.Growing.append mutable'hopPubkeys y)- loop x v- 42- -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)- (do len <- Data.ProtoLens.Encoding.Bytes.getVarInt- Data.ProtoLens.Encoding.Bytes.getBytes- (Prelude.fromIntegral len))- "payment_addr"- loop- (Lens.Family2.set (Data.ProtoLens.Field.field @"paymentAddr") y x)- mutable'hopPubkeys- wire- -> do !y <- Data.ProtoLens.Encoding.Wire.parseTaggedValueFromWire- wire- loop- (Lens.Family2.over- Data.ProtoLens.unknownFields (\ !t -> (:) y t) x)- mutable'hopPubkeys- in- (Data.ProtoLens.Encoding.Bytes.<?>)- (do mutable'hopPubkeys <- Data.ProtoLens.Encoding.Parser.Unsafe.unsafeLiftIO- Data.ProtoLens.Encoding.Growing.new- loop Data.ProtoLens.defMessage mutable'hopPubkeys)- "BuildRouteRequest"- buildMessage- = \ _x- -> (Data.Monoid.<>)- (let- _v = Lens.Family2.view (Data.ProtoLens.Field.field @"amtMsat") _x- in- if (Prelude.==) _v Data.ProtoLens.fieldDefault then- Data.Monoid.mempty- else- (Data.Monoid.<>)- (Data.ProtoLens.Encoding.Bytes.putVarInt 8)- ((Prelude..)- Data.ProtoLens.Encoding.Bytes.putVarInt Prelude.fromIntegral _v))- ((Data.Monoid.<>)- (let- _v- = Lens.Family2.view- (Data.ProtoLens.Field.field @"finalCltvDelta") _x- in- if (Prelude.==) _v Data.ProtoLens.fieldDefault then- Data.Monoid.mempty- else- (Data.Monoid.<>)- (Data.ProtoLens.Encoding.Bytes.putVarInt 16)- ((Prelude..)- Data.ProtoLens.Encoding.Bytes.putVarInt Prelude.fromIntegral _v))- ((Data.Monoid.<>)- (let- _v- = Lens.Family2.view- (Data.ProtoLens.Field.field @"outgoingChanId") _x- in- if (Prelude.==) _v Data.ProtoLens.fieldDefault then- Data.Monoid.mempty- else- (Data.Monoid.<>)- (Data.ProtoLens.Encoding.Bytes.putVarInt 24)- (Data.ProtoLens.Encoding.Bytes.putVarInt _v))- ((Data.Monoid.<>)- (Data.ProtoLens.Encoding.Bytes.foldMapBuilder- (\ _v- -> (Data.Monoid.<>)- (Data.ProtoLens.Encoding.Bytes.putVarInt 34)- ((\ bs- -> (Data.Monoid.<>)- (Data.ProtoLens.Encoding.Bytes.putVarInt- (Prelude.fromIntegral (Data.ByteString.length bs)))- (Data.ProtoLens.Encoding.Bytes.putBytes bs))- _v))- (Lens.Family2.view- (Data.ProtoLens.Field.field @"vec'hopPubkeys") _x))- ((Data.Monoid.<>)- (let- _v- = Lens.Family2.view (Data.ProtoLens.Field.field @"paymentAddr") _x- in- if (Prelude.==) _v Data.ProtoLens.fieldDefault then- Data.Monoid.mempty- else- (Data.Monoid.<>)- (Data.ProtoLens.Encoding.Bytes.putVarInt 42)- ((\ bs- -> (Data.Monoid.<>)- (Data.ProtoLens.Encoding.Bytes.putVarInt- (Prelude.fromIntegral (Data.ByteString.length bs)))- (Data.ProtoLens.Encoding.Bytes.putBytes bs))- _v))- (Data.ProtoLens.Encoding.Wire.buildFieldSet- (Lens.Family2.view Data.ProtoLens.unknownFields _x))))))-instance Control.DeepSeq.NFData BuildRouteRequest where- rnf- = \ x__- -> Control.DeepSeq.deepseq- (_BuildRouteRequest'_unknownFields x__)- (Control.DeepSeq.deepseq- (_BuildRouteRequest'amtMsat x__)- (Control.DeepSeq.deepseq- (_BuildRouteRequest'finalCltvDelta x__)- (Control.DeepSeq.deepseq- (_BuildRouteRequest'outgoingChanId x__)- (Control.DeepSeq.deepseq- (_BuildRouteRequest'hopPubkeys x__)- (Control.DeepSeq.deepseq- (_BuildRouteRequest'paymentAddr x__) ())))))-{- | Fields :- - * 'Proto.RouterGrpc_Fields.route' @:: Lens' BuildRouteResponse Proto.LndGrpc.Route@- * 'Proto.RouterGrpc_Fields.maybe'route' @:: Lens' BuildRouteResponse (Prelude.Maybe Proto.LndGrpc.Route)@ -}-data BuildRouteResponse- = BuildRouteResponse'_constructor {_BuildRouteResponse'route :: !(Prelude.Maybe Proto.LndGrpc.Route),- _BuildRouteResponse'_unknownFields :: !Data.ProtoLens.FieldSet}- deriving stock (Prelude.Eq, Prelude.Ord)-instance Prelude.Show BuildRouteResponse where- showsPrec _ __x __s- = Prelude.showChar- '{'- (Prelude.showString- (Data.ProtoLens.showMessageShort __x) (Prelude.showChar '}' __s))-instance Data.ProtoLens.Field.HasField BuildRouteResponse "route" Proto.LndGrpc.Route where- fieldOf _- = (Prelude..)- (Lens.Family2.Unchecked.lens- _BuildRouteResponse'route- (\ x__ y__ -> x__ {_BuildRouteResponse'route = y__}))- (Data.ProtoLens.maybeLens Data.ProtoLens.defMessage)-instance Data.ProtoLens.Field.HasField BuildRouteResponse "maybe'route" (Prelude.Maybe Proto.LndGrpc.Route) where- fieldOf _- = (Prelude..)- (Lens.Family2.Unchecked.lens- _BuildRouteResponse'route- (\ x__ y__ -> x__ {_BuildRouteResponse'route = y__}))- Prelude.id-instance Data.ProtoLens.Message BuildRouteResponse where- messageName _ = Data.Text.pack "routerrpc.BuildRouteResponse"- packedMessageDescriptor _- = "\n\- \\DC2BuildRouteResponse\DC2\"\n\- \\ENQroute\CAN\SOH \SOH(\v2\f.lnrpc.RouteR\ENQroute"- packedFileDescriptor _ = packedFileDescriptor- fieldsByTag- = let- route__field_descriptor- = Data.ProtoLens.FieldDescriptor- "route"- (Data.ProtoLens.MessageField Data.ProtoLens.MessageType ::- Data.ProtoLens.FieldTypeDescriptor Proto.LndGrpc.Route)- (Data.ProtoLens.OptionalField- (Data.ProtoLens.Field.field @"maybe'route")) ::- Data.ProtoLens.FieldDescriptor BuildRouteResponse- in- Data.Map.fromList [(Data.ProtoLens.Tag 1, route__field_descriptor)]- unknownFields- = Lens.Family2.Unchecked.lens- _BuildRouteResponse'_unknownFields- (\ x__ y__ -> x__ {_BuildRouteResponse'_unknownFields = y__})- defMessage- = BuildRouteResponse'_constructor- {_BuildRouteResponse'route = Prelude.Nothing,- _BuildRouteResponse'_unknownFields = []}- parseMessage- = let- loop ::- BuildRouteResponse- -> Data.ProtoLens.Encoding.Bytes.Parser BuildRouteResponse- loop x- = do end <- Data.ProtoLens.Encoding.Bytes.atEnd- if end then- do (let missing = []- in- if Prelude.null missing then- Prelude.return ()- else- Prelude.fail- ((Prelude.++)- "Missing required fields: "- (Prelude.show (missing :: [Prelude.String]))))- Prelude.return- (Lens.Family2.over- Data.ProtoLens.unknownFields (\ !t -> Prelude.reverse t) x)- else- do tag <- Data.ProtoLens.Encoding.Bytes.getVarInt- case tag of- 10- -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)- (do len <- Data.ProtoLens.Encoding.Bytes.getVarInt- Data.ProtoLens.Encoding.Bytes.isolate- (Prelude.fromIntegral len) Data.ProtoLens.parseMessage)- "route"- loop (Lens.Family2.set (Data.ProtoLens.Field.field @"route") y x)- wire- -> do !y <- Data.ProtoLens.Encoding.Wire.parseTaggedValueFromWire- wire- loop- (Lens.Family2.over- Data.ProtoLens.unknownFields (\ !t -> (:) y t) x)- in- (Data.ProtoLens.Encoding.Bytes.<?>)- (do loop Data.ProtoLens.defMessage) "BuildRouteResponse"- buildMessage- = \ _x- -> (Data.Monoid.<>)- (case- Lens.Family2.view (Data.ProtoLens.Field.field @"maybe'route") _x- of- Prelude.Nothing -> Data.Monoid.mempty- (Prelude.Just _v)- -> (Data.Monoid.<>)- (Data.ProtoLens.Encoding.Bytes.putVarInt 10)- ((Prelude..)- (\ bs- -> (Data.Monoid.<>)- (Data.ProtoLens.Encoding.Bytes.putVarInt- (Prelude.fromIntegral (Data.ByteString.length bs)))- (Data.ProtoLens.Encoding.Bytes.putBytes bs))- Data.ProtoLens.encodeMessage- _v))- (Data.ProtoLens.Encoding.Wire.buildFieldSet- (Lens.Family2.view Data.ProtoLens.unknownFields _x))-instance Control.DeepSeq.NFData BuildRouteResponse where- rnf- = \ x__- -> Control.DeepSeq.deepseq- (_BuildRouteResponse'_unknownFields x__)- (Control.DeepSeq.deepseq (_BuildRouteResponse'route x__) ())-newtype ChanStatusAction'UnrecognizedValue- = ChanStatusAction'UnrecognizedValue Data.Int.Int32- deriving stock (Prelude.Eq, Prelude.Ord, Prelude.Show)-data ChanStatusAction- = ENABLE |- DISABLE |- AUTO |- ChanStatusAction'Unrecognized !ChanStatusAction'UnrecognizedValue- deriving stock (Prelude.Show, Prelude.Eq, Prelude.Ord)-instance Data.ProtoLens.MessageEnum ChanStatusAction where- maybeToEnum 0 = Prelude.Just ENABLE- maybeToEnum 1 = Prelude.Just DISABLE- maybeToEnum 2 = Prelude.Just AUTO- maybeToEnum k- = Prelude.Just- (ChanStatusAction'Unrecognized- (ChanStatusAction'UnrecognizedValue (Prelude.fromIntegral k)))- showEnum ENABLE = "ENABLE"- showEnum DISABLE = "DISABLE"- showEnum AUTO = "AUTO"- showEnum- (ChanStatusAction'Unrecognized (ChanStatusAction'UnrecognizedValue k))- = Prelude.show k- readEnum k- | (Prelude.==) k "ENABLE" = Prelude.Just ENABLE- | (Prelude.==) k "DISABLE" = Prelude.Just DISABLE- | (Prelude.==) k "AUTO" = Prelude.Just AUTO- | Prelude.otherwise- = (Prelude.>>=) (Text.Read.readMaybe k) Data.ProtoLens.maybeToEnum-instance Prelude.Bounded ChanStatusAction where- minBound = ENABLE- maxBound = AUTO-instance Prelude.Enum ChanStatusAction where- toEnum k__- = Prelude.maybe- (Prelude.error- ((Prelude.++)- "toEnum: unknown value for enum ChanStatusAction: "- (Prelude.show k__)))- Prelude.id- (Data.ProtoLens.maybeToEnum k__)- fromEnum ENABLE = 0- fromEnum DISABLE = 1- fromEnum AUTO = 2- fromEnum- (ChanStatusAction'Unrecognized (ChanStatusAction'UnrecognizedValue k))- = Prelude.fromIntegral k- succ AUTO- = Prelude.error- "ChanStatusAction.succ: bad argument AUTO. This value would be out of bounds."- succ ENABLE = DISABLE- succ DISABLE = AUTO- succ (ChanStatusAction'Unrecognized _)- = Prelude.error- "ChanStatusAction.succ: bad argument: unrecognized value"- pred ENABLE- = Prelude.error- "ChanStatusAction.pred: bad argument ENABLE. This value would be out of bounds."- pred DISABLE = ENABLE- pred AUTO = DISABLE- pred (ChanStatusAction'Unrecognized _)- = Prelude.error- "ChanStatusAction.pred: bad argument: unrecognized value"- enumFrom = Data.ProtoLens.Message.Enum.messageEnumFrom- enumFromTo = Data.ProtoLens.Message.Enum.messageEnumFromTo- enumFromThen = Data.ProtoLens.Message.Enum.messageEnumFromThen- enumFromThenTo = Data.ProtoLens.Message.Enum.messageEnumFromThenTo-instance Data.ProtoLens.FieldDefault ChanStatusAction where- fieldDefault = ENABLE-instance Control.DeepSeq.NFData ChanStatusAction where- rnf x__ = Prelude.seq x__ ()-{- | Fields :- - * 'Proto.RouterGrpc_Fields.chanId' @:: Lens' CircuitKey Data.Word.Word64@- * 'Proto.RouterGrpc_Fields.htlcId' @:: Lens' CircuitKey Data.Word.Word64@ -}-data CircuitKey- = CircuitKey'_constructor {_CircuitKey'chanId :: !Data.Word.Word64,- _CircuitKey'htlcId :: !Data.Word.Word64,- _CircuitKey'_unknownFields :: !Data.ProtoLens.FieldSet}- deriving stock (Prelude.Eq, Prelude.Ord)-instance Prelude.Show CircuitKey where- showsPrec _ __x __s- = Prelude.showChar- '{'- (Prelude.showString- (Data.ProtoLens.showMessageShort __x) (Prelude.showChar '}' __s))-instance Data.ProtoLens.Field.HasField CircuitKey "chanId" Data.Word.Word64 where- fieldOf _- = (Prelude..)- (Lens.Family2.Unchecked.lens- _CircuitKey'chanId (\ x__ y__ -> x__ {_CircuitKey'chanId = y__}))- Prelude.id-instance Data.ProtoLens.Field.HasField CircuitKey "htlcId" Data.Word.Word64 where- fieldOf _- = (Prelude..)- (Lens.Family2.Unchecked.lens- _CircuitKey'htlcId (\ x__ y__ -> x__ {_CircuitKey'htlcId = y__}))- Prelude.id-instance Data.ProtoLens.Message CircuitKey where- messageName _ = Data.Text.pack "routerrpc.CircuitKey"- packedMessageDescriptor _- = "\n\- \\n\- \CircuitKey\DC2\ETB\n\- \\achan_id\CAN\SOH \SOH(\EOTR\ACKchanId\DC2\ETB\n\- \\ahtlc_id\CAN\STX \SOH(\EOTR\ACKhtlcId"- packedFileDescriptor _ = packedFileDescriptor- fieldsByTag- = let- chanId__field_descriptor- = Data.ProtoLens.FieldDescriptor- "chan_id"- (Data.ProtoLens.ScalarField Data.ProtoLens.UInt64Field ::- Data.ProtoLens.FieldTypeDescriptor Data.Word.Word64)- (Data.ProtoLens.PlainField- Data.ProtoLens.Optional (Data.ProtoLens.Field.field @"chanId")) ::- Data.ProtoLens.FieldDescriptor CircuitKey- htlcId__field_descriptor- = Data.ProtoLens.FieldDescriptor- "htlc_id"- (Data.ProtoLens.ScalarField Data.ProtoLens.UInt64Field ::- Data.ProtoLens.FieldTypeDescriptor Data.Word.Word64)- (Data.ProtoLens.PlainField- Data.ProtoLens.Optional (Data.ProtoLens.Field.field @"htlcId")) ::- Data.ProtoLens.FieldDescriptor CircuitKey- in- Data.Map.fromList- [(Data.ProtoLens.Tag 1, chanId__field_descriptor),- (Data.ProtoLens.Tag 2, htlcId__field_descriptor)]- unknownFields- = Lens.Family2.Unchecked.lens- _CircuitKey'_unknownFields- (\ x__ y__ -> x__ {_CircuitKey'_unknownFields = y__})- defMessage- = CircuitKey'_constructor- {_CircuitKey'chanId = Data.ProtoLens.fieldDefault,- _CircuitKey'htlcId = Data.ProtoLens.fieldDefault,- _CircuitKey'_unknownFields = []}- parseMessage- = let- loop ::- CircuitKey -> Data.ProtoLens.Encoding.Bytes.Parser CircuitKey- loop x- = do end <- Data.ProtoLens.Encoding.Bytes.atEnd- if end then- do (let missing = []- in- if Prelude.null missing then- Prelude.return ()- else- Prelude.fail- ((Prelude.++)- "Missing required fields: "- (Prelude.show (missing :: [Prelude.String]))))- Prelude.return- (Lens.Family2.over- Data.ProtoLens.unknownFields (\ !t -> Prelude.reverse t) x)- else- do tag <- Data.ProtoLens.Encoding.Bytes.getVarInt- case tag of- 8 -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)- Data.ProtoLens.Encoding.Bytes.getVarInt "chan_id"- loop (Lens.Family2.set (Data.ProtoLens.Field.field @"chanId") y x)- 16- -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)- Data.ProtoLens.Encoding.Bytes.getVarInt "htlc_id"- loop (Lens.Family2.set (Data.ProtoLens.Field.field @"htlcId") y x)- wire- -> do !y <- Data.ProtoLens.Encoding.Wire.parseTaggedValueFromWire- wire- loop- (Lens.Family2.over- Data.ProtoLens.unknownFields (\ !t -> (:) y t) x)- in- (Data.ProtoLens.Encoding.Bytes.<?>)- (do loop Data.ProtoLens.defMessage) "CircuitKey"- buildMessage- = \ _x- -> (Data.Monoid.<>)- (let- _v = Lens.Family2.view (Data.ProtoLens.Field.field @"chanId") _x- in- if (Prelude.==) _v Data.ProtoLens.fieldDefault then- Data.Monoid.mempty- else- (Data.Monoid.<>)- (Data.ProtoLens.Encoding.Bytes.putVarInt 8)- (Data.ProtoLens.Encoding.Bytes.putVarInt _v))- ((Data.Monoid.<>)- (let- _v = Lens.Family2.view (Data.ProtoLens.Field.field @"htlcId") _x- in- if (Prelude.==) _v Data.ProtoLens.fieldDefault then- Data.Monoid.mempty- else- (Data.Monoid.<>)- (Data.ProtoLens.Encoding.Bytes.putVarInt 16)- (Data.ProtoLens.Encoding.Bytes.putVarInt _v))- (Data.ProtoLens.Encoding.Wire.buildFieldSet- (Lens.Family2.view Data.ProtoLens.unknownFields _x)))-instance Control.DeepSeq.NFData CircuitKey where- rnf- = \ x__- -> Control.DeepSeq.deepseq- (_CircuitKey'_unknownFields x__)- (Control.DeepSeq.deepseq- (_CircuitKey'chanId x__)- (Control.DeepSeq.deepseq (_CircuitKey'htlcId x__) ()))-newtype FailureDetail'UnrecognizedValue- = FailureDetail'UnrecognizedValue Data.Int.Int32- deriving stock (Prelude.Eq, Prelude.Ord, Prelude.Show)-data FailureDetail- = UNKNOWN |- NO_DETAIL |- ONION_DECODE |- LINK_NOT_ELIGIBLE |- ON_CHAIN_TIMEOUT |- HTLC_EXCEEDS_MAX |- INSUFFICIENT_BALANCE |- INCOMPLETE_FORWARD |- HTLC_ADD_FAILED |- FORWARDS_DISABLED |- INVOICE_CANCELED |- INVOICE_UNDERPAID |- INVOICE_EXPIRY_TOO_SOON |- INVOICE_NOT_OPEN |- MPP_INVOICE_TIMEOUT |- ADDRESS_MISMATCH |- SET_TOTAL_MISMATCH |- SET_TOTAL_TOO_LOW |- SET_OVERPAID |- UNKNOWN_INVOICE |- INVALID_KEYSEND |- MPP_IN_PROGRESS |- CIRCULAR_ROUTE |- FailureDetail'Unrecognized !FailureDetail'UnrecognizedValue- deriving stock (Prelude.Show, Prelude.Eq, Prelude.Ord)-instance Data.ProtoLens.MessageEnum FailureDetail where- maybeToEnum 0 = Prelude.Just UNKNOWN- maybeToEnum 1 = Prelude.Just NO_DETAIL- maybeToEnum 2 = Prelude.Just ONION_DECODE- maybeToEnum 3 = Prelude.Just LINK_NOT_ELIGIBLE- maybeToEnum 4 = Prelude.Just ON_CHAIN_TIMEOUT- maybeToEnum 5 = Prelude.Just HTLC_EXCEEDS_MAX- maybeToEnum 6 = Prelude.Just INSUFFICIENT_BALANCE- maybeToEnum 7 = Prelude.Just INCOMPLETE_FORWARD- maybeToEnum 8 = Prelude.Just HTLC_ADD_FAILED- maybeToEnum 9 = Prelude.Just FORWARDS_DISABLED- maybeToEnum 10 = Prelude.Just INVOICE_CANCELED- maybeToEnum 11 = Prelude.Just INVOICE_UNDERPAID- maybeToEnum 12 = Prelude.Just INVOICE_EXPIRY_TOO_SOON- maybeToEnum 13 = Prelude.Just INVOICE_NOT_OPEN- maybeToEnum 14 = Prelude.Just MPP_INVOICE_TIMEOUT- maybeToEnum 15 = Prelude.Just ADDRESS_MISMATCH- maybeToEnum 16 = Prelude.Just SET_TOTAL_MISMATCH- maybeToEnum 17 = Prelude.Just SET_TOTAL_TOO_LOW- maybeToEnum 18 = Prelude.Just SET_OVERPAID- maybeToEnum 19 = Prelude.Just UNKNOWN_INVOICE- maybeToEnum 20 = Prelude.Just INVALID_KEYSEND- maybeToEnum 21 = Prelude.Just MPP_IN_PROGRESS- maybeToEnum 22 = Prelude.Just CIRCULAR_ROUTE- maybeToEnum k- = Prelude.Just- (FailureDetail'Unrecognized- (FailureDetail'UnrecognizedValue (Prelude.fromIntegral k)))- showEnum UNKNOWN = "UNKNOWN"- showEnum NO_DETAIL = "NO_DETAIL"- showEnum ONION_DECODE = "ONION_DECODE"- showEnum LINK_NOT_ELIGIBLE = "LINK_NOT_ELIGIBLE"- showEnum ON_CHAIN_TIMEOUT = "ON_CHAIN_TIMEOUT"- showEnum HTLC_EXCEEDS_MAX = "HTLC_EXCEEDS_MAX"- showEnum INSUFFICIENT_BALANCE = "INSUFFICIENT_BALANCE"- showEnum INCOMPLETE_FORWARD = "INCOMPLETE_FORWARD"- showEnum HTLC_ADD_FAILED = "HTLC_ADD_FAILED"- showEnum FORWARDS_DISABLED = "FORWARDS_DISABLED"- showEnum INVOICE_CANCELED = "INVOICE_CANCELED"- showEnum INVOICE_UNDERPAID = "INVOICE_UNDERPAID"- showEnum INVOICE_EXPIRY_TOO_SOON = "INVOICE_EXPIRY_TOO_SOON"- showEnum INVOICE_NOT_OPEN = "INVOICE_NOT_OPEN"- showEnum MPP_INVOICE_TIMEOUT = "MPP_INVOICE_TIMEOUT"- showEnum ADDRESS_MISMATCH = "ADDRESS_MISMATCH"- showEnum SET_TOTAL_MISMATCH = "SET_TOTAL_MISMATCH"- showEnum SET_TOTAL_TOO_LOW = "SET_TOTAL_TOO_LOW"- showEnum SET_OVERPAID = "SET_OVERPAID"- showEnum UNKNOWN_INVOICE = "UNKNOWN_INVOICE"- showEnum INVALID_KEYSEND = "INVALID_KEYSEND"- showEnum MPP_IN_PROGRESS = "MPP_IN_PROGRESS"- showEnum CIRCULAR_ROUTE = "CIRCULAR_ROUTE"- showEnum- (FailureDetail'Unrecognized (FailureDetail'UnrecognizedValue k))- = Prelude.show k- readEnum k- | (Prelude.==) k "UNKNOWN" = Prelude.Just UNKNOWN- | (Prelude.==) k "NO_DETAIL" = Prelude.Just NO_DETAIL- | (Prelude.==) k "ONION_DECODE" = Prelude.Just ONION_DECODE- | (Prelude.==) k "LINK_NOT_ELIGIBLE"- = Prelude.Just LINK_NOT_ELIGIBLE- | (Prelude.==) k "ON_CHAIN_TIMEOUT" = Prelude.Just ON_CHAIN_TIMEOUT- | (Prelude.==) k "HTLC_EXCEEDS_MAX" = Prelude.Just HTLC_EXCEEDS_MAX- | (Prelude.==) k "INSUFFICIENT_BALANCE"- = Prelude.Just INSUFFICIENT_BALANCE- | (Prelude.==) k "INCOMPLETE_FORWARD"- = Prelude.Just INCOMPLETE_FORWARD- | (Prelude.==) k "HTLC_ADD_FAILED" = Prelude.Just HTLC_ADD_FAILED- | (Prelude.==) k "FORWARDS_DISABLED"- = Prelude.Just FORWARDS_DISABLED- | (Prelude.==) k "INVOICE_CANCELED" = Prelude.Just INVOICE_CANCELED- | (Prelude.==) k "INVOICE_UNDERPAID"- = Prelude.Just INVOICE_UNDERPAID- | (Prelude.==) k "INVOICE_EXPIRY_TOO_SOON"- = Prelude.Just INVOICE_EXPIRY_TOO_SOON- | (Prelude.==) k "INVOICE_NOT_OPEN" = Prelude.Just INVOICE_NOT_OPEN- | (Prelude.==) k "MPP_INVOICE_TIMEOUT"- = Prelude.Just MPP_INVOICE_TIMEOUT- | (Prelude.==) k "ADDRESS_MISMATCH" = Prelude.Just ADDRESS_MISMATCH- | (Prelude.==) k "SET_TOTAL_MISMATCH"- = Prelude.Just SET_TOTAL_MISMATCH- | (Prelude.==) k "SET_TOTAL_TOO_LOW"- = Prelude.Just SET_TOTAL_TOO_LOW- | (Prelude.==) k "SET_OVERPAID" = Prelude.Just SET_OVERPAID- | (Prelude.==) k "UNKNOWN_INVOICE" = Prelude.Just UNKNOWN_INVOICE- | (Prelude.==) k "INVALID_KEYSEND" = Prelude.Just INVALID_KEYSEND- | (Prelude.==) k "MPP_IN_PROGRESS" = Prelude.Just MPP_IN_PROGRESS- | (Prelude.==) k "CIRCULAR_ROUTE" = Prelude.Just CIRCULAR_ROUTE- | Prelude.otherwise- = (Prelude.>>=) (Text.Read.readMaybe k) Data.ProtoLens.maybeToEnum-instance Prelude.Bounded FailureDetail where- minBound = UNKNOWN- maxBound = CIRCULAR_ROUTE-instance Prelude.Enum FailureDetail where- toEnum k__- = Prelude.maybe- (Prelude.error- ((Prelude.++)- "toEnum: unknown value for enum FailureDetail: "- (Prelude.show k__)))- Prelude.id- (Data.ProtoLens.maybeToEnum k__)- fromEnum UNKNOWN = 0- fromEnum NO_DETAIL = 1- fromEnum ONION_DECODE = 2- fromEnum LINK_NOT_ELIGIBLE = 3- fromEnum ON_CHAIN_TIMEOUT = 4- fromEnum HTLC_EXCEEDS_MAX = 5- fromEnum INSUFFICIENT_BALANCE = 6- fromEnum INCOMPLETE_FORWARD = 7- fromEnum HTLC_ADD_FAILED = 8- fromEnum FORWARDS_DISABLED = 9- fromEnum INVOICE_CANCELED = 10- fromEnum INVOICE_UNDERPAID = 11- fromEnum INVOICE_EXPIRY_TOO_SOON = 12- fromEnum INVOICE_NOT_OPEN = 13- fromEnum MPP_INVOICE_TIMEOUT = 14- fromEnum ADDRESS_MISMATCH = 15- fromEnum SET_TOTAL_MISMATCH = 16- fromEnum SET_TOTAL_TOO_LOW = 17- fromEnum SET_OVERPAID = 18- fromEnum UNKNOWN_INVOICE = 19- fromEnum INVALID_KEYSEND = 20- fromEnum MPP_IN_PROGRESS = 21- fromEnum CIRCULAR_ROUTE = 22- fromEnum- (FailureDetail'Unrecognized (FailureDetail'UnrecognizedValue k))- = Prelude.fromIntegral k- succ CIRCULAR_ROUTE- = Prelude.error- "FailureDetail.succ: bad argument CIRCULAR_ROUTE. This value would be out of bounds."- succ UNKNOWN = NO_DETAIL- succ NO_DETAIL = ONION_DECODE- succ ONION_DECODE = LINK_NOT_ELIGIBLE- succ LINK_NOT_ELIGIBLE = ON_CHAIN_TIMEOUT- succ ON_CHAIN_TIMEOUT = HTLC_EXCEEDS_MAX- succ HTLC_EXCEEDS_MAX = INSUFFICIENT_BALANCE- succ INSUFFICIENT_BALANCE = INCOMPLETE_FORWARD- succ INCOMPLETE_FORWARD = HTLC_ADD_FAILED- succ HTLC_ADD_FAILED = FORWARDS_DISABLED- succ FORWARDS_DISABLED = INVOICE_CANCELED- succ INVOICE_CANCELED = INVOICE_UNDERPAID- succ INVOICE_UNDERPAID = INVOICE_EXPIRY_TOO_SOON- succ INVOICE_EXPIRY_TOO_SOON = INVOICE_NOT_OPEN- succ INVOICE_NOT_OPEN = MPP_INVOICE_TIMEOUT- succ MPP_INVOICE_TIMEOUT = ADDRESS_MISMATCH- succ ADDRESS_MISMATCH = SET_TOTAL_MISMATCH- succ SET_TOTAL_MISMATCH = SET_TOTAL_TOO_LOW- succ SET_TOTAL_TOO_LOW = SET_OVERPAID- succ SET_OVERPAID = UNKNOWN_INVOICE- succ UNKNOWN_INVOICE = INVALID_KEYSEND- succ INVALID_KEYSEND = MPP_IN_PROGRESS- succ MPP_IN_PROGRESS = CIRCULAR_ROUTE- succ (FailureDetail'Unrecognized _)- = Prelude.error- "FailureDetail.succ: bad argument: unrecognized value"- pred UNKNOWN- = Prelude.error- "FailureDetail.pred: bad argument UNKNOWN. This value would be out of bounds."- pred NO_DETAIL = UNKNOWN- pred ONION_DECODE = NO_DETAIL- pred LINK_NOT_ELIGIBLE = ONION_DECODE- pred ON_CHAIN_TIMEOUT = LINK_NOT_ELIGIBLE- pred HTLC_EXCEEDS_MAX = ON_CHAIN_TIMEOUT- pred INSUFFICIENT_BALANCE = HTLC_EXCEEDS_MAX- pred INCOMPLETE_FORWARD = INSUFFICIENT_BALANCE- pred HTLC_ADD_FAILED = INCOMPLETE_FORWARD- pred FORWARDS_DISABLED = HTLC_ADD_FAILED- pred INVOICE_CANCELED = FORWARDS_DISABLED- pred INVOICE_UNDERPAID = INVOICE_CANCELED- pred INVOICE_EXPIRY_TOO_SOON = INVOICE_UNDERPAID- pred INVOICE_NOT_OPEN = INVOICE_EXPIRY_TOO_SOON- pred MPP_INVOICE_TIMEOUT = INVOICE_NOT_OPEN- pred ADDRESS_MISMATCH = MPP_INVOICE_TIMEOUT- pred SET_TOTAL_MISMATCH = ADDRESS_MISMATCH- pred SET_TOTAL_TOO_LOW = SET_TOTAL_MISMATCH- pred SET_OVERPAID = SET_TOTAL_TOO_LOW- pred UNKNOWN_INVOICE = SET_OVERPAID- pred INVALID_KEYSEND = UNKNOWN_INVOICE- pred MPP_IN_PROGRESS = INVALID_KEYSEND- pred CIRCULAR_ROUTE = MPP_IN_PROGRESS- pred (FailureDetail'Unrecognized _)- = Prelude.error- "FailureDetail.pred: bad argument: unrecognized value"- enumFrom = Data.ProtoLens.Message.Enum.messageEnumFrom- enumFromTo = Data.ProtoLens.Message.Enum.messageEnumFromTo- enumFromThen = Data.ProtoLens.Message.Enum.messageEnumFromThen- enumFromThenTo = Data.ProtoLens.Message.Enum.messageEnumFromThenTo-instance Data.ProtoLens.FieldDefault FailureDetail where- fieldDefault = UNKNOWN-instance Control.DeepSeq.NFData FailureDetail where- rnf x__ = Prelude.seq x__ ()-{- | Fields :- - * 'Proto.RouterGrpc_Fields.info' @:: Lens' ForwardEvent HtlcInfo@- * 'Proto.RouterGrpc_Fields.maybe'info' @:: Lens' ForwardEvent (Prelude.Maybe HtlcInfo)@ -}-data ForwardEvent- = ForwardEvent'_constructor {_ForwardEvent'info :: !(Prelude.Maybe HtlcInfo),- _ForwardEvent'_unknownFields :: !Data.ProtoLens.FieldSet}- deriving stock (Prelude.Eq, Prelude.Ord)-instance Prelude.Show ForwardEvent where- showsPrec _ __x __s- = Prelude.showChar- '{'- (Prelude.showString- (Data.ProtoLens.showMessageShort __x) (Prelude.showChar '}' __s))-instance Data.ProtoLens.Field.HasField ForwardEvent "info" HtlcInfo where- fieldOf _- = (Prelude..)- (Lens.Family2.Unchecked.lens- _ForwardEvent'info (\ x__ y__ -> x__ {_ForwardEvent'info = y__}))- (Data.ProtoLens.maybeLens Data.ProtoLens.defMessage)-instance Data.ProtoLens.Field.HasField ForwardEvent "maybe'info" (Prelude.Maybe HtlcInfo) where- fieldOf _- = (Prelude..)- (Lens.Family2.Unchecked.lens- _ForwardEvent'info (\ x__ y__ -> x__ {_ForwardEvent'info = y__}))- Prelude.id-instance Data.ProtoLens.Message ForwardEvent where- messageName _ = Data.Text.pack "routerrpc.ForwardEvent"- packedMessageDescriptor _- = "\n\- \\fForwardEvent\DC2'\n\- \\EOTinfo\CAN\SOH \SOH(\v2\DC3.routerrpc.HtlcInfoR\EOTinfo"- packedFileDescriptor _ = packedFileDescriptor- fieldsByTag- = let- info__field_descriptor- = Data.ProtoLens.FieldDescriptor- "info"- (Data.ProtoLens.MessageField Data.ProtoLens.MessageType ::- Data.ProtoLens.FieldTypeDescriptor HtlcInfo)- (Data.ProtoLens.OptionalField- (Data.ProtoLens.Field.field @"maybe'info")) ::- Data.ProtoLens.FieldDescriptor ForwardEvent- in- Data.Map.fromList [(Data.ProtoLens.Tag 1, info__field_descriptor)]- unknownFields- = Lens.Family2.Unchecked.lens- _ForwardEvent'_unknownFields- (\ x__ y__ -> x__ {_ForwardEvent'_unknownFields = y__})- defMessage- = ForwardEvent'_constructor- {_ForwardEvent'info = Prelude.Nothing,- _ForwardEvent'_unknownFields = []}- parseMessage- = let- loop ::- ForwardEvent -> Data.ProtoLens.Encoding.Bytes.Parser ForwardEvent- loop x- = do end <- Data.ProtoLens.Encoding.Bytes.atEnd- if end then- do (let missing = []- in- if Prelude.null missing then- Prelude.return ()- else- Prelude.fail- ((Prelude.++)- "Missing required fields: "- (Prelude.show (missing :: [Prelude.String]))))- Prelude.return- (Lens.Family2.over- Data.ProtoLens.unknownFields (\ !t -> Prelude.reverse t) x)- else- do tag <- Data.ProtoLens.Encoding.Bytes.getVarInt- case tag of- 10- -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)- (do len <- Data.ProtoLens.Encoding.Bytes.getVarInt- Data.ProtoLens.Encoding.Bytes.isolate- (Prelude.fromIntegral len) Data.ProtoLens.parseMessage)- "info"- loop (Lens.Family2.set (Data.ProtoLens.Field.field @"info") y x)- wire- -> do !y <- Data.ProtoLens.Encoding.Wire.parseTaggedValueFromWire- wire- loop- (Lens.Family2.over- Data.ProtoLens.unknownFields (\ !t -> (:) y t) x)- in- (Data.ProtoLens.Encoding.Bytes.<?>)- (do loop Data.ProtoLens.defMessage) "ForwardEvent"- buildMessage- = \ _x- -> (Data.Monoid.<>)- (case- Lens.Family2.view (Data.ProtoLens.Field.field @"maybe'info") _x- of- Prelude.Nothing -> Data.Monoid.mempty- (Prelude.Just _v)- -> (Data.Monoid.<>)- (Data.ProtoLens.Encoding.Bytes.putVarInt 10)- ((Prelude..)- (\ bs- -> (Data.Monoid.<>)- (Data.ProtoLens.Encoding.Bytes.putVarInt- (Prelude.fromIntegral (Data.ByteString.length bs)))- (Data.ProtoLens.Encoding.Bytes.putBytes bs))- Data.ProtoLens.encodeMessage- _v))- (Data.ProtoLens.Encoding.Wire.buildFieldSet- (Lens.Family2.view Data.ProtoLens.unknownFields _x))-instance Control.DeepSeq.NFData ForwardEvent where- rnf- = \ x__- -> Control.DeepSeq.deepseq- (_ForwardEvent'_unknownFields x__)- (Control.DeepSeq.deepseq (_ForwardEvent'info x__) ())-{- | Fields :- -}-data ForwardFailEvent- = ForwardFailEvent'_constructor {_ForwardFailEvent'_unknownFields :: !Data.ProtoLens.FieldSet}- deriving stock (Prelude.Eq, Prelude.Ord)-instance Prelude.Show ForwardFailEvent where- showsPrec _ __x __s- = Prelude.showChar- '{'- (Prelude.showString- (Data.ProtoLens.showMessageShort __x) (Prelude.showChar '}' __s))-instance Data.ProtoLens.Message ForwardFailEvent where- messageName _ = Data.Text.pack "routerrpc.ForwardFailEvent"- packedMessageDescriptor _- = "\n\- \\DLEForwardFailEvent"- packedFileDescriptor _ = packedFileDescriptor- fieldsByTag = let in Data.Map.fromList []- unknownFields- = Lens.Family2.Unchecked.lens- _ForwardFailEvent'_unknownFields- (\ x__ y__ -> x__ {_ForwardFailEvent'_unknownFields = y__})- defMessage- = ForwardFailEvent'_constructor- {_ForwardFailEvent'_unknownFields = []}- parseMessage- = let- loop ::- ForwardFailEvent- -> Data.ProtoLens.Encoding.Bytes.Parser ForwardFailEvent- loop x- = do end <- Data.ProtoLens.Encoding.Bytes.atEnd- if end then- do (let missing = []- in- if Prelude.null missing then- Prelude.return ()- else- Prelude.fail- ((Prelude.++)- "Missing required fields: "- (Prelude.show (missing :: [Prelude.String]))))- Prelude.return- (Lens.Family2.over- Data.ProtoLens.unknownFields (\ !t -> Prelude.reverse t) x)- else- do tag <- Data.ProtoLens.Encoding.Bytes.getVarInt- case tag of {- wire- -> do !y <- Data.ProtoLens.Encoding.Wire.parseTaggedValueFromWire- wire- loop- (Lens.Family2.over- Data.ProtoLens.unknownFields (\ !t -> (:) y t) x) }- in- (Data.ProtoLens.Encoding.Bytes.<?>)- (do loop Data.ProtoLens.defMessage) "ForwardFailEvent"- buildMessage- = \ _x- -> Data.ProtoLens.Encoding.Wire.buildFieldSet- (Lens.Family2.view Data.ProtoLens.unknownFields _x)-instance Control.DeepSeq.NFData ForwardFailEvent where- rnf- = \ x__- -> Control.DeepSeq.deepseq- (_ForwardFailEvent'_unknownFields x__) ()-{- | Fields :- - * 'Proto.RouterGrpc_Fields.incomingCircuitKey' @:: Lens' ForwardHtlcInterceptRequest CircuitKey@- * 'Proto.RouterGrpc_Fields.maybe'incomingCircuitKey' @:: Lens' ForwardHtlcInterceptRequest (Prelude.Maybe CircuitKey)@- * 'Proto.RouterGrpc_Fields.incomingAmountMsat' @:: Lens' ForwardHtlcInterceptRequest Data.Word.Word64@- * 'Proto.RouterGrpc_Fields.incomingExpiry' @:: Lens' ForwardHtlcInterceptRequest Data.Word.Word32@- * 'Proto.RouterGrpc_Fields.paymentHash' @:: Lens' ForwardHtlcInterceptRequest Data.ByteString.ByteString@- * 'Proto.RouterGrpc_Fields.outgoingRequestedChanId' @:: Lens' ForwardHtlcInterceptRequest Data.Word.Word64@- * 'Proto.RouterGrpc_Fields.outgoingAmountMsat' @:: Lens' ForwardHtlcInterceptRequest Data.Word.Word64@- * 'Proto.RouterGrpc_Fields.outgoingExpiry' @:: Lens' ForwardHtlcInterceptRequest Data.Word.Word32@- * 'Proto.RouterGrpc_Fields.customRecords' @:: Lens' ForwardHtlcInterceptRequest (Data.Map.Map Data.Word.Word64 Data.ByteString.ByteString)@- * 'Proto.RouterGrpc_Fields.onionBlob' @:: Lens' ForwardHtlcInterceptRequest Data.ByteString.ByteString@ -}-data ForwardHtlcInterceptRequest- = ForwardHtlcInterceptRequest'_constructor {_ForwardHtlcInterceptRequest'incomingCircuitKey :: !(Prelude.Maybe CircuitKey),- _ForwardHtlcInterceptRequest'incomingAmountMsat :: !Data.Word.Word64,- _ForwardHtlcInterceptRequest'incomingExpiry :: !Data.Word.Word32,- _ForwardHtlcInterceptRequest'paymentHash :: !Data.ByteString.ByteString,- _ForwardHtlcInterceptRequest'outgoingRequestedChanId :: !Data.Word.Word64,- _ForwardHtlcInterceptRequest'outgoingAmountMsat :: !Data.Word.Word64,- _ForwardHtlcInterceptRequest'outgoingExpiry :: !Data.Word.Word32,- _ForwardHtlcInterceptRequest'customRecords :: !(Data.Map.Map Data.Word.Word64 Data.ByteString.ByteString),- _ForwardHtlcInterceptRequest'onionBlob :: !Data.ByteString.ByteString,- _ForwardHtlcInterceptRequest'_unknownFields :: !Data.ProtoLens.FieldSet}- deriving stock (Prelude.Eq, Prelude.Ord)-instance Prelude.Show ForwardHtlcInterceptRequest where- showsPrec _ __x __s- = Prelude.showChar- '{'- (Prelude.showString- (Data.ProtoLens.showMessageShort __x) (Prelude.showChar '}' __s))-instance Data.ProtoLens.Field.HasField ForwardHtlcInterceptRequest "incomingCircuitKey" CircuitKey where- fieldOf _- = (Prelude..)- (Lens.Family2.Unchecked.lens- _ForwardHtlcInterceptRequest'incomingCircuitKey- (\ x__ y__- -> x__ {_ForwardHtlcInterceptRequest'incomingCircuitKey = y__}))- (Data.ProtoLens.maybeLens Data.ProtoLens.defMessage)-instance Data.ProtoLens.Field.HasField ForwardHtlcInterceptRequest "maybe'incomingCircuitKey" (Prelude.Maybe CircuitKey) where- fieldOf _- = (Prelude..)- (Lens.Family2.Unchecked.lens- _ForwardHtlcInterceptRequest'incomingCircuitKey- (\ x__ y__- -> x__ {_ForwardHtlcInterceptRequest'incomingCircuitKey = y__}))- Prelude.id-instance Data.ProtoLens.Field.HasField ForwardHtlcInterceptRequest "incomingAmountMsat" Data.Word.Word64 where- fieldOf _- = (Prelude..)- (Lens.Family2.Unchecked.lens- _ForwardHtlcInterceptRequest'incomingAmountMsat- (\ x__ y__- -> x__ {_ForwardHtlcInterceptRequest'incomingAmountMsat = y__}))- Prelude.id-instance Data.ProtoLens.Field.HasField ForwardHtlcInterceptRequest "incomingExpiry" Data.Word.Word32 where- fieldOf _- = (Prelude..)- (Lens.Family2.Unchecked.lens- _ForwardHtlcInterceptRequest'incomingExpiry- (\ x__ y__- -> x__ {_ForwardHtlcInterceptRequest'incomingExpiry = y__}))- Prelude.id-instance Data.ProtoLens.Field.HasField ForwardHtlcInterceptRequest "paymentHash" Data.ByteString.ByteString where- fieldOf _- = (Prelude..)- (Lens.Family2.Unchecked.lens- _ForwardHtlcInterceptRequest'paymentHash- (\ x__ y__- -> x__ {_ForwardHtlcInterceptRequest'paymentHash = y__}))- Prelude.id-instance Data.ProtoLens.Field.HasField ForwardHtlcInterceptRequest "outgoingRequestedChanId" Data.Word.Word64 where- fieldOf _- = (Prelude..)- (Lens.Family2.Unchecked.lens- _ForwardHtlcInterceptRequest'outgoingRequestedChanId- (\ x__ y__- -> x__- {_ForwardHtlcInterceptRequest'outgoingRequestedChanId = y__}))- Prelude.id-instance Data.ProtoLens.Field.HasField ForwardHtlcInterceptRequest "outgoingAmountMsat" Data.Word.Word64 where- fieldOf _- = (Prelude..)- (Lens.Family2.Unchecked.lens- _ForwardHtlcInterceptRequest'outgoingAmountMsat- (\ x__ y__- -> x__ {_ForwardHtlcInterceptRequest'outgoingAmountMsat = y__}))- Prelude.id-instance Data.ProtoLens.Field.HasField ForwardHtlcInterceptRequest "outgoingExpiry" Data.Word.Word32 where- fieldOf _- = (Prelude..)- (Lens.Family2.Unchecked.lens- _ForwardHtlcInterceptRequest'outgoingExpiry- (\ x__ y__- -> x__ {_ForwardHtlcInterceptRequest'outgoingExpiry = y__}))- Prelude.id-instance Data.ProtoLens.Field.HasField ForwardHtlcInterceptRequest "customRecords" (Data.Map.Map Data.Word.Word64 Data.ByteString.ByteString) where- fieldOf _- = (Prelude..)- (Lens.Family2.Unchecked.lens- _ForwardHtlcInterceptRequest'customRecords- (\ x__ y__- -> x__ {_ForwardHtlcInterceptRequest'customRecords = y__}))- Prelude.id-instance Data.ProtoLens.Field.HasField ForwardHtlcInterceptRequest "onionBlob" Data.ByteString.ByteString where- fieldOf _- = (Prelude..)- (Lens.Family2.Unchecked.lens- _ForwardHtlcInterceptRequest'onionBlob- (\ x__ y__ -> x__ {_ForwardHtlcInterceptRequest'onionBlob = y__}))- Prelude.id-instance Data.ProtoLens.Message ForwardHtlcInterceptRequest where- messageName _- = Data.Text.pack "routerrpc.ForwardHtlcInterceptRequest"- packedMessageDescriptor _- = "\n\- \\ESCForwardHtlcInterceptRequest\DC2G\n\- \\DC4incoming_circuit_key\CAN\SOH \SOH(\v2\NAK.routerrpc.CircuitKeyR\DC2incomingCircuitKey\DC20\n\- \\DC4incoming_amount_msat\CAN\ENQ \SOH(\EOTR\DC2incomingAmountMsat\DC2'\n\- \\SIincoming_expiry\CAN\ACK \SOH(\rR\SOincomingExpiry\DC2!\n\- \\fpayment_hash\CAN\STX \SOH(\fR\vpaymentHash\DC2;\n\- \\SUBoutgoing_requested_chan_id\CAN\a \SOH(\EOTR\ETBoutgoingRequestedChanId\DC20\n\- \\DC4outgoing_amount_msat\CAN\ETX \SOH(\EOTR\DC2outgoingAmountMsat\DC2'\n\- \\SIoutgoing_expiry\CAN\EOT \SOH(\rR\SOoutgoingExpiry\DC2`\n\- \\SOcustom_records\CAN\b \ETX(\v29.routerrpc.ForwardHtlcInterceptRequest.CustomRecordsEntryR\rcustomRecords\DC2\GS\n\- \\n\- \onion_blob\CAN\t \SOH(\fR\tonionBlob\SUB@\n\- \\DC2CustomRecordsEntry\DC2\DLE\n\- \\ETXkey\CAN\SOH \SOH(\EOTR\ETXkey\DC2\DC4\n\- \\ENQvalue\CAN\STX \SOH(\fR\ENQvalue:\STX8\SOH"- packedFileDescriptor _ = packedFileDescriptor- fieldsByTag- = let- incomingCircuitKey__field_descriptor- = Data.ProtoLens.FieldDescriptor- "incoming_circuit_key"- (Data.ProtoLens.MessageField Data.ProtoLens.MessageType ::- Data.ProtoLens.FieldTypeDescriptor CircuitKey)- (Data.ProtoLens.OptionalField- (Data.ProtoLens.Field.field @"maybe'incomingCircuitKey")) ::- Data.ProtoLens.FieldDescriptor ForwardHtlcInterceptRequest- incomingAmountMsat__field_descriptor- = Data.ProtoLens.FieldDescriptor- "incoming_amount_msat"- (Data.ProtoLens.ScalarField Data.ProtoLens.UInt64Field ::- Data.ProtoLens.FieldTypeDescriptor Data.Word.Word64)- (Data.ProtoLens.PlainField- Data.ProtoLens.Optional- (Data.ProtoLens.Field.field @"incomingAmountMsat")) ::- Data.ProtoLens.FieldDescriptor ForwardHtlcInterceptRequest- incomingExpiry__field_descriptor- = Data.ProtoLens.FieldDescriptor- "incoming_expiry"- (Data.ProtoLens.ScalarField Data.ProtoLens.UInt32Field ::- Data.ProtoLens.FieldTypeDescriptor Data.Word.Word32)- (Data.ProtoLens.PlainField- Data.ProtoLens.Optional- (Data.ProtoLens.Field.field @"incomingExpiry")) ::- Data.ProtoLens.FieldDescriptor ForwardHtlcInterceptRequest- paymentHash__field_descriptor- = Data.ProtoLens.FieldDescriptor- "payment_hash"- (Data.ProtoLens.ScalarField Data.ProtoLens.BytesField ::- Data.ProtoLens.FieldTypeDescriptor Data.ByteString.ByteString)- (Data.ProtoLens.PlainField- Data.ProtoLens.Optional- (Data.ProtoLens.Field.field @"paymentHash")) ::- Data.ProtoLens.FieldDescriptor ForwardHtlcInterceptRequest- outgoingRequestedChanId__field_descriptor- = Data.ProtoLens.FieldDescriptor- "outgoing_requested_chan_id"- (Data.ProtoLens.ScalarField Data.ProtoLens.UInt64Field ::- Data.ProtoLens.FieldTypeDescriptor Data.Word.Word64)- (Data.ProtoLens.PlainField- Data.ProtoLens.Optional- (Data.ProtoLens.Field.field @"outgoingRequestedChanId")) ::- Data.ProtoLens.FieldDescriptor ForwardHtlcInterceptRequest- outgoingAmountMsat__field_descriptor- = Data.ProtoLens.FieldDescriptor- "outgoing_amount_msat"- (Data.ProtoLens.ScalarField Data.ProtoLens.UInt64Field ::- Data.ProtoLens.FieldTypeDescriptor Data.Word.Word64)- (Data.ProtoLens.PlainField- Data.ProtoLens.Optional- (Data.ProtoLens.Field.field @"outgoingAmountMsat")) ::- Data.ProtoLens.FieldDescriptor ForwardHtlcInterceptRequest- outgoingExpiry__field_descriptor- = Data.ProtoLens.FieldDescriptor- "outgoing_expiry"- (Data.ProtoLens.ScalarField Data.ProtoLens.UInt32Field ::- Data.ProtoLens.FieldTypeDescriptor Data.Word.Word32)- (Data.ProtoLens.PlainField- Data.ProtoLens.Optional- (Data.ProtoLens.Field.field @"outgoingExpiry")) ::- Data.ProtoLens.FieldDescriptor ForwardHtlcInterceptRequest- customRecords__field_descriptor- = Data.ProtoLens.FieldDescriptor- "custom_records"- (Data.ProtoLens.MessageField Data.ProtoLens.MessageType ::- Data.ProtoLens.FieldTypeDescriptor ForwardHtlcInterceptRequest'CustomRecordsEntry)- (Data.ProtoLens.MapField- (Data.ProtoLens.Field.field @"key")- (Data.ProtoLens.Field.field @"value")- (Data.ProtoLens.Field.field @"customRecords")) ::- Data.ProtoLens.FieldDescriptor ForwardHtlcInterceptRequest- onionBlob__field_descriptor- = Data.ProtoLens.FieldDescriptor- "onion_blob"- (Data.ProtoLens.ScalarField Data.ProtoLens.BytesField ::- Data.ProtoLens.FieldTypeDescriptor Data.ByteString.ByteString)- (Data.ProtoLens.PlainField- Data.ProtoLens.Optional- (Data.ProtoLens.Field.field @"onionBlob")) ::- Data.ProtoLens.FieldDescriptor ForwardHtlcInterceptRequest- in- Data.Map.fromList- [(Data.ProtoLens.Tag 1, incomingCircuitKey__field_descriptor),- (Data.ProtoLens.Tag 5, incomingAmountMsat__field_descriptor),- (Data.ProtoLens.Tag 6, incomingExpiry__field_descriptor),- (Data.ProtoLens.Tag 2, paymentHash__field_descriptor),- (Data.ProtoLens.Tag 7, outgoingRequestedChanId__field_descriptor),- (Data.ProtoLens.Tag 3, outgoingAmountMsat__field_descriptor),- (Data.ProtoLens.Tag 4, outgoingExpiry__field_descriptor),- (Data.ProtoLens.Tag 8, customRecords__field_descriptor),- (Data.ProtoLens.Tag 9, onionBlob__field_descriptor)]- unknownFields- = Lens.Family2.Unchecked.lens- _ForwardHtlcInterceptRequest'_unknownFields- (\ x__ y__- -> x__ {_ForwardHtlcInterceptRequest'_unknownFields = y__})- defMessage- = ForwardHtlcInterceptRequest'_constructor- {_ForwardHtlcInterceptRequest'incomingCircuitKey = Prelude.Nothing,- _ForwardHtlcInterceptRequest'incomingAmountMsat = Data.ProtoLens.fieldDefault,- _ForwardHtlcInterceptRequest'incomingExpiry = Data.ProtoLens.fieldDefault,- _ForwardHtlcInterceptRequest'paymentHash = Data.ProtoLens.fieldDefault,- _ForwardHtlcInterceptRequest'outgoingRequestedChanId = Data.ProtoLens.fieldDefault,- _ForwardHtlcInterceptRequest'outgoingAmountMsat = Data.ProtoLens.fieldDefault,- _ForwardHtlcInterceptRequest'outgoingExpiry = Data.ProtoLens.fieldDefault,- _ForwardHtlcInterceptRequest'customRecords = Data.Map.empty,- _ForwardHtlcInterceptRequest'onionBlob = Data.ProtoLens.fieldDefault,- _ForwardHtlcInterceptRequest'_unknownFields = []}- parseMessage- = let- loop ::- ForwardHtlcInterceptRequest- -> Data.ProtoLens.Encoding.Bytes.Parser ForwardHtlcInterceptRequest- loop x- = do end <- Data.ProtoLens.Encoding.Bytes.atEnd- if end then- do (let missing = []- in- if Prelude.null missing then- Prelude.return ()- else- Prelude.fail- ((Prelude.++)- "Missing required fields: "- (Prelude.show (missing :: [Prelude.String]))))- Prelude.return- (Lens.Family2.over- Data.ProtoLens.unknownFields (\ !t -> Prelude.reverse t) x)- else- do tag <- Data.ProtoLens.Encoding.Bytes.getVarInt- case tag of- 10- -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)- (do len <- Data.ProtoLens.Encoding.Bytes.getVarInt- Data.ProtoLens.Encoding.Bytes.isolate- (Prelude.fromIntegral len) Data.ProtoLens.parseMessage)- "incoming_circuit_key"- loop- (Lens.Family2.set- (Data.ProtoLens.Field.field @"incomingCircuitKey") y x)- 40- -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)- Data.ProtoLens.Encoding.Bytes.getVarInt- "incoming_amount_msat"- loop- (Lens.Family2.set- (Data.ProtoLens.Field.field @"incomingAmountMsat") y x)- 48- -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)- (Prelude.fmap- Prelude.fromIntegral- Data.ProtoLens.Encoding.Bytes.getVarInt)- "incoming_expiry"- loop- (Lens.Family2.set- (Data.ProtoLens.Field.field @"incomingExpiry") y x)- 18- -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)- (do len <- Data.ProtoLens.Encoding.Bytes.getVarInt- Data.ProtoLens.Encoding.Bytes.getBytes- (Prelude.fromIntegral len))- "payment_hash"- loop- (Lens.Family2.set (Data.ProtoLens.Field.field @"paymentHash") y x)- 56- -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)- Data.ProtoLens.Encoding.Bytes.getVarInt- "outgoing_requested_chan_id"- loop- (Lens.Family2.set- (Data.ProtoLens.Field.field @"outgoingRequestedChanId") y x)- 24- -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)- Data.ProtoLens.Encoding.Bytes.getVarInt- "outgoing_amount_msat"- loop- (Lens.Family2.set- (Data.ProtoLens.Field.field @"outgoingAmountMsat") y x)- 32- -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)- (Prelude.fmap- Prelude.fromIntegral- Data.ProtoLens.Encoding.Bytes.getVarInt)- "outgoing_expiry"- loop- (Lens.Family2.set- (Data.ProtoLens.Field.field @"outgoingExpiry") y x)- 66- -> do !(entry :: ForwardHtlcInterceptRequest'CustomRecordsEntry) <- (Data.ProtoLens.Encoding.Bytes.<?>)- (do len <- Data.ProtoLens.Encoding.Bytes.getVarInt- Data.ProtoLens.Encoding.Bytes.isolate- (Prelude.fromIntegral- len)- Data.ProtoLens.parseMessage)- "custom_records"- (let- key = Lens.Family2.view (Data.ProtoLens.Field.field @"key") entry- value- = Lens.Family2.view (Data.ProtoLens.Field.field @"value") entry- in- loop- (Lens.Family2.over- (Data.ProtoLens.Field.field @"customRecords")- (\ !t -> Data.Map.insert key value t)- x))- 74- -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)- (do len <- Data.ProtoLens.Encoding.Bytes.getVarInt- Data.ProtoLens.Encoding.Bytes.getBytes- (Prelude.fromIntegral len))- "onion_blob"- loop- (Lens.Family2.set (Data.ProtoLens.Field.field @"onionBlob") y x)- wire- -> do !y <- Data.ProtoLens.Encoding.Wire.parseTaggedValueFromWire- wire- loop- (Lens.Family2.over- Data.ProtoLens.unknownFields (\ !t -> (:) y t) x)- in- (Data.ProtoLens.Encoding.Bytes.<?>)- (do loop Data.ProtoLens.defMessage) "ForwardHtlcInterceptRequest"- buildMessage- = \ _x- -> (Data.Monoid.<>)- (case- Lens.Family2.view- (Data.ProtoLens.Field.field @"maybe'incomingCircuitKey") _x- of- Prelude.Nothing -> Data.Monoid.mempty- (Prelude.Just _v)- -> (Data.Monoid.<>)- (Data.ProtoLens.Encoding.Bytes.putVarInt 10)- ((Prelude..)- (\ bs- -> (Data.Monoid.<>)- (Data.ProtoLens.Encoding.Bytes.putVarInt- (Prelude.fromIntegral (Data.ByteString.length bs)))- (Data.ProtoLens.Encoding.Bytes.putBytes bs))- Data.ProtoLens.encodeMessage- _v))- ((Data.Monoid.<>)- (let- _v- = Lens.Family2.view- (Data.ProtoLens.Field.field @"incomingAmountMsat") _x- in- if (Prelude.==) _v Data.ProtoLens.fieldDefault then- Data.Monoid.mempty- else- (Data.Monoid.<>)- (Data.ProtoLens.Encoding.Bytes.putVarInt 40)- (Data.ProtoLens.Encoding.Bytes.putVarInt _v))- ((Data.Monoid.<>)- (let- _v- = Lens.Family2.view- (Data.ProtoLens.Field.field @"incomingExpiry") _x- in- if (Prelude.==) _v Data.ProtoLens.fieldDefault then- Data.Monoid.mempty- else- (Data.Monoid.<>)- (Data.ProtoLens.Encoding.Bytes.putVarInt 48)- ((Prelude..)- Data.ProtoLens.Encoding.Bytes.putVarInt Prelude.fromIntegral _v))- ((Data.Monoid.<>)- (let- _v- = Lens.Family2.view (Data.ProtoLens.Field.field @"paymentHash") _x- in- if (Prelude.==) _v Data.ProtoLens.fieldDefault then- Data.Monoid.mempty- else- (Data.Monoid.<>)- (Data.ProtoLens.Encoding.Bytes.putVarInt 18)- ((\ bs- -> (Data.Monoid.<>)- (Data.ProtoLens.Encoding.Bytes.putVarInt- (Prelude.fromIntegral (Data.ByteString.length bs)))- (Data.ProtoLens.Encoding.Bytes.putBytes bs))- _v))- ((Data.Monoid.<>)- (let- _v- = Lens.Family2.view- (Data.ProtoLens.Field.field @"outgoingRequestedChanId") _x- in- if (Prelude.==) _v Data.ProtoLens.fieldDefault then- Data.Monoid.mempty- else- (Data.Monoid.<>)- (Data.ProtoLens.Encoding.Bytes.putVarInt 56)- (Data.ProtoLens.Encoding.Bytes.putVarInt _v))- ((Data.Monoid.<>)- (let- _v- = Lens.Family2.view- (Data.ProtoLens.Field.field @"outgoingAmountMsat") _x- in- if (Prelude.==) _v Data.ProtoLens.fieldDefault then- Data.Monoid.mempty- else- (Data.Monoid.<>)- (Data.ProtoLens.Encoding.Bytes.putVarInt 24)- (Data.ProtoLens.Encoding.Bytes.putVarInt _v))- ((Data.Monoid.<>)- (let- _v- = Lens.Family2.view- (Data.ProtoLens.Field.field @"outgoingExpiry") _x- in- if (Prelude.==) _v Data.ProtoLens.fieldDefault then- Data.Monoid.mempty- else- (Data.Monoid.<>)- (Data.ProtoLens.Encoding.Bytes.putVarInt 32)- ((Prelude..)- Data.ProtoLens.Encoding.Bytes.putVarInt- Prelude.fromIntegral- _v))- ((Data.Monoid.<>)- (Data.Monoid.mconcat- (Prelude.map- (\ _v- -> (Data.Monoid.<>)- (Data.ProtoLens.Encoding.Bytes.putVarInt 66)- ((Prelude..)- (\ bs- -> (Data.Monoid.<>)- (Data.ProtoLens.Encoding.Bytes.putVarInt- (Prelude.fromIntegral- (Data.ByteString.length bs)))- (Data.ProtoLens.Encoding.Bytes.putBytes- bs))- Data.ProtoLens.encodeMessage- (Lens.Family2.set- (Data.ProtoLens.Field.field @"key")- (Prelude.fst _v)- (Lens.Family2.set- (Data.ProtoLens.Field.field @"value")- (Prelude.snd _v)- (Data.ProtoLens.defMessage ::- ForwardHtlcInterceptRequest'CustomRecordsEntry)))))- (Data.Map.toList- (Lens.Family2.view- (Data.ProtoLens.Field.field @"customRecords") _x))))- ((Data.Monoid.<>)- (let- _v- = Lens.Family2.view- (Data.ProtoLens.Field.field @"onionBlob") _x- in- if (Prelude.==) _v Data.ProtoLens.fieldDefault then- Data.Monoid.mempty- else- (Data.Monoid.<>)- (Data.ProtoLens.Encoding.Bytes.putVarInt 74)- ((\ bs- -> (Data.Monoid.<>)- (Data.ProtoLens.Encoding.Bytes.putVarInt- (Prelude.fromIntegral- (Data.ByteString.length bs)))- (Data.ProtoLens.Encoding.Bytes.putBytes bs))- _v))- (Data.ProtoLens.Encoding.Wire.buildFieldSet- (Lens.Family2.view Data.ProtoLens.unknownFields _x))))))))))-instance Control.DeepSeq.NFData ForwardHtlcInterceptRequest where- rnf- = \ x__- -> Control.DeepSeq.deepseq- (_ForwardHtlcInterceptRequest'_unknownFields x__)- (Control.DeepSeq.deepseq- (_ForwardHtlcInterceptRequest'incomingCircuitKey x__)- (Control.DeepSeq.deepseq- (_ForwardHtlcInterceptRequest'incomingAmountMsat x__)- (Control.DeepSeq.deepseq- (_ForwardHtlcInterceptRequest'incomingExpiry x__)- (Control.DeepSeq.deepseq- (_ForwardHtlcInterceptRequest'paymentHash x__)- (Control.DeepSeq.deepseq- (_ForwardHtlcInterceptRequest'outgoingRequestedChanId x__)- (Control.DeepSeq.deepseq- (_ForwardHtlcInterceptRequest'outgoingAmountMsat x__)- (Control.DeepSeq.deepseq- (_ForwardHtlcInterceptRequest'outgoingExpiry x__)- (Control.DeepSeq.deepseq- (_ForwardHtlcInterceptRequest'customRecords x__)- (Control.DeepSeq.deepseq- (_ForwardHtlcInterceptRequest'onionBlob x__) ())))))))))-{- | Fields :- - * 'Proto.RouterGrpc_Fields.key' @:: Lens' ForwardHtlcInterceptRequest'CustomRecordsEntry Data.Word.Word64@- * 'Proto.RouterGrpc_Fields.value' @:: Lens' ForwardHtlcInterceptRequest'CustomRecordsEntry Data.ByteString.ByteString@ -}-data ForwardHtlcInterceptRequest'CustomRecordsEntry- = ForwardHtlcInterceptRequest'CustomRecordsEntry'_constructor {_ForwardHtlcInterceptRequest'CustomRecordsEntry'key :: !Data.Word.Word64,- _ForwardHtlcInterceptRequest'CustomRecordsEntry'value :: !Data.ByteString.ByteString,- _ForwardHtlcInterceptRequest'CustomRecordsEntry'_unknownFields :: !Data.ProtoLens.FieldSet}- deriving stock (Prelude.Eq, Prelude.Ord)-instance Prelude.Show ForwardHtlcInterceptRequest'CustomRecordsEntry where- showsPrec _ __x __s- = Prelude.showChar- '{'- (Prelude.showString- (Data.ProtoLens.showMessageShort __x) (Prelude.showChar '}' __s))-instance Data.ProtoLens.Field.HasField ForwardHtlcInterceptRequest'CustomRecordsEntry "key" Data.Word.Word64 where- fieldOf _- = (Prelude..)- (Lens.Family2.Unchecked.lens- _ForwardHtlcInterceptRequest'CustomRecordsEntry'key- (\ x__ y__- -> x__- {_ForwardHtlcInterceptRequest'CustomRecordsEntry'key = y__}))- Prelude.id-instance Data.ProtoLens.Field.HasField ForwardHtlcInterceptRequest'CustomRecordsEntry "value" Data.ByteString.ByteString where- fieldOf _- = (Prelude..)- (Lens.Family2.Unchecked.lens- _ForwardHtlcInterceptRequest'CustomRecordsEntry'value- (\ x__ y__- -> x__- {_ForwardHtlcInterceptRequest'CustomRecordsEntry'value = y__}))- Prelude.id-instance Data.ProtoLens.Message ForwardHtlcInterceptRequest'CustomRecordsEntry where- messageName _- = Data.Text.pack- "routerrpc.ForwardHtlcInterceptRequest.CustomRecordsEntry"- packedMessageDescriptor _- = "\n\- \\DC2CustomRecordsEntry\DC2\DLE\n\- \\ETXkey\CAN\SOH \SOH(\EOTR\ETXkey\DC2\DC4\n\- \\ENQvalue\CAN\STX \SOH(\fR\ENQvalue:\STX8\SOH"- packedFileDescriptor _ = packedFileDescriptor- fieldsByTag- = let- key__field_descriptor- = Data.ProtoLens.FieldDescriptor- "key"- (Data.ProtoLens.ScalarField Data.ProtoLens.UInt64Field ::- Data.ProtoLens.FieldTypeDescriptor Data.Word.Word64)- (Data.ProtoLens.PlainField- Data.ProtoLens.Optional (Data.ProtoLens.Field.field @"key")) ::- Data.ProtoLens.FieldDescriptor ForwardHtlcInterceptRequest'CustomRecordsEntry- value__field_descriptor- = Data.ProtoLens.FieldDescriptor- "value"- (Data.ProtoLens.ScalarField Data.ProtoLens.BytesField ::- Data.ProtoLens.FieldTypeDescriptor Data.ByteString.ByteString)- (Data.ProtoLens.PlainField- Data.ProtoLens.Optional (Data.ProtoLens.Field.field @"value")) ::- Data.ProtoLens.FieldDescriptor ForwardHtlcInterceptRequest'CustomRecordsEntry- in- Data.Map.fromList- [(Data.ProtoLens.Tag 1, key__field_descriptor),- (Data.ProtoLens.Tag 2, value__field_descriptor)]- unknownFields- = Lens.Family2.Unchecked.lens- _ForwardHtlcInterceptRequest'CustomRecordsEntry'_unknownFields- (\ x__ y__- -> x__- {_ForwardHtlcInterceptRequest'CustomRecordsEntry'_unknownFields = y__})- defMessage- = ForwardHtlcInterceptRequest'CustomRecordsEntry'_constructor- {_ForwardHtlcInterceptRequest'CustomRecordsEntry'key = Data.ProtoLens.fieldDefault,- _ForwardHtlcInterceptRequest'CustomRecordsEntry'value = Data.ProtoLens.fieldDefault,- _ForwardHtlcInterceptRequest'CustomRecordsEntry'_unknownFields = []}- parseMessage- = let- loop ::- ForwardHtlcInterceptRequest'CustomRecordsEntry- -> Data.ProtoLens.Encoding.Bytes.Parser ForwardHtlcInterceptRequest'CustomRecordsEntry- loop x- = do end <- Data.ProtoLens.Encoding.Bytes.atEnd- if end then- do (let missing = []- in- if Prelude.null missing then- Prelude.return ()- else- Prelude.fail- ((Prelude.++)- "Missing required fields: "- (Prelude.show (missing :: [Prelude.String]))))- Prelude.return- (Lens.Family2.over- Data.ProtoLens.unknownFields (\ !t -> Prelude.reverse t) x)- else- do tag <- Data.ProtoLens.Encoding.Bytes.getVarInt- case tag of- 8 -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)- Data.ProtoLens.Encoding.Bytes.getVarInt "key"- loop (Lens.Family2.set (Data.ProtoLens.Field.field @"key") y x)- 18- -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)- (do len <- Data.ProtoLens.Encoding.Bytes.getVarInt- Data.ProtoLens.Encoding.Bytes.getBytes- (Prelude.fromIntegral len))- "value"- loop (Lens.Family2.set (Data.ProtoLens.Field.field @"value") y x)- wire- -> do !y <- Data.ProtoLens.Encoding.Wire.parseTaggedValueFromWire- wire- loop- (Lens.Family2.over- Data.ProtoLens.unknownFields (\ !t -> (:) y t) x)- in- (Data.ProtoLens.Encoding.Bytes.<?>)- (do loop Data.ProtoLens.defMessage) "CustomRecordsEntry"- buildMessage- = \ _x- -> (Data.Monoid.<>)- (let _v = Lens.Family2.view (Data.ProtoLens.Field.field @"key") _x- in- if (Prelude.==) _v Data.ProtoLens.fieldDefault then- Data.Monoid.mempty- else- (Data.Monoid.<>)- (Data.ProtoLens.Encoding.Bytes.putVarInt 8)- (Data.ProtoLens.Encoding.Bytes.putVarInt _v))- ((Data.Monoid.<>)- (let- _v = Lens.Family2.view (Data.ProtoLens.Field.field @"value") _x- in- if (Prelude.==) _v Data.ProtoLens.fieldDefault then- Data.Monoid.mempty- else- (Data.Monoid.<>)- (Data.ProtoLens.Encoding.Bytes.putVarInt 18)- ((\ bs- -> (Data.Monoid.<>)- (Data.ProtoLens.Encoding.Bytes.putVarInt- (Prelude.fromIntegral (Data.ByteString.length bs)))- (Data.ProtoLens.Encoding.Bytes.putBytes bs))- _v))- (Data.ProtoLens.Encoding.Wire.buildFieldSet- (Lens.Family2.view Data.ProtoLens.unknownFields _x)))-instance Control.DeepSeq.NFData ForwardHtlcInterceptRequest'CustomRecordsEntry where- rnf- = \ x__- -> Control.DeepSeq.deepseq- (_ForwardHtlcInterceptRequest'CustomRecordsEntry'_unknownFields- x__)- (Control.DeepSeq.deepseq- (_ForwardHtlcInterceptRequest'CustomRecordsEntry'key x__)- (Control.DeepSeq.deepseq- (_ForwardHtlcInterceptRequest'CustomRecordsEntry'value x__) ()))-{- | Fields :- - * 'Proto.RouterGrpc_Fields.incomingCircuitKey' @:: Lens' ForwardHtlcInterceptResponse CircuitKey@- * 'Proto.RouterGrpc_Fields.maybe'incomingCircuitKey' @:: Lens' ForwardHtlcInterceptResponse (Prelude.Maybe CircuitKey)@- * 'Proto.RouterGrpc_Fields.action' @:: Lens' ForwardHtlcInterceptResponse ResolveHoldForwardAction@- * 'Proto.RouterGrpc_Fields.preimage' @:: Lens' ForwardHtlcInterceptResponse Data.ByteString.ByteString@ -}-data ForwardHtlcInterceptResponse- = ForwardHtlcInterceptResponse'_constructor {_ForwardHtlcInterceptResponse'incomingCircuitKey :: !(Prelude.Maybe CircuitKey),- _ForwardHtlcInterceptResponse'action :: !ResolveHoldForwardAction,- _ForwardHtlcInterceptResponse'preimage :: !Data.ByteString.ByteString,- _ForwardHtlcInterceptResponse'_unknownFields :: !Data.ProtoLens.FieldSet}- deriving stock (Prelude.Eq, Prelude.Ord)-instance Prelude.Show ForwardHtlcInterceptResponse where- showsPrec _ __x __s- = Prelude.showChar- '{'- (Prelude.showString- (Data.ProtoLens.showMessageShort __x) (Prelude.showChar '}' __s))-instance Data.ProtoLens.Field.HasField ForwardHtlcInterceptResponse "incomingCircuitKey" CircuitKey where- fieldOf _- = (Prelude..)- (Lens.Family2.Unchecked.lens- _ForwardHtlcInterceptResponse'incomingCircuitKey- (\ x__ y__- -> x__ {_ForwardHtlcInterceptResponse'incomingCircuitKey = y__}))- (Data.ProtoLens.maybeLens Data.ProtoLens.defMessage)-instance Data.ProtoLens.Field.HasField ForwardHtlcInterceptResponse "maybe'incomingCircuitKey" (Prelude.Maybe CircuitKey) where- fieldOf _- = (Prelude..)- (Lens.Family2.Unchecked.lens- _ForwardHtlcInterceptResponse'incomingCircuitKey- (\ x__ y__- -> x__ {_ForwardHtlcInterceptResponse'incomingCircuitKey = y__}))- Prelude.id-instance Data.ProtoLens.Field.HasField ForwardHtlcInterceptResponse "action" ResolveHoldForwardAction where- fieldOf _- = (Prelude..)- (Lens.Family2.Unchecked.lens- _ForwardHtlcInterceptResponse'action- (\ x__ y__ -> x__ {_ForwardHtlcInterceptResponse'action = y__}))- Prelude.id-instance Data.ProtoLens.Field.HasField ForwardHtlcInterceptResponse "preimage" Data.ByteString.ByteString where- fieldOf _- = (Prelude..)- (Lens.Family2.Unchecked.lens- _ForwardHtlcInterceptResponse'preimage- (\ x__ y__ -> x__ {_ForwardHtlcInterceptResponse'preimage = y__}))- Prelude.id-instance Data.ProtoLens.Message ForwardHtlcInterceptResponse where- messageName _- = Data.Text.pack "routerrpc.ForwardHtlcInterceptResponse"- packedMessageDescriptor _- = "\n\- \\FSForwardHtlcInterceptResponse\DC2G\n\- \\DC4incoming_circuit_key\CAN\SOH \SOH(\v2\NAK.routerrpc.CircuitKeyR\DC2incomingCircuitKey\DC2;\n\- \\ACKaction\CAN\STX \SOH(\SO2#.routerrpc.ResolveHoldForwardActionR\ACKaction\DC2\SUB\n\- \\bpreimage\CAN\ETX \SOH(\fR\bpreimage"- packedFileDescriptor _ = packedFileDescriptor- fieldsByTag- = let- incomingCircuitKey__field_descriptor- = Data.ProtoLens.FieldDescriptor- "incoming_circuit_key"- (Data.ProtoLens.MessageField Data.ProtoLens.MessageType ::- Data.ProtoLens.FieldTypeDescriptor CircuitKey)- (Data.ProtoLens.OptionalField- (Data.ProtoLens.Field.field @"maybe'incomingCircuitKey")) ::- Data.ProtoLens.FieldDescriptor ForwardHtlcInterceptResponse- action__field_descriptor- = Data.ProtoLens.FieldDescriptor- "action"- (Data.ProtoLens.ScalarField Data.ProtoLens.EnumField ::- Data.ProtoLens.FieldTypeDescriptor ResolveHoldForwardAction)- (Data.ProtoLens.PlainField- Data.ProtoLens.Optional (Data.ProtoLens.Field.field @"action")) ::- Data.ProtoLens.FieldDescriptor ForwardHtlcInterceptResponse- preimage__field_descriptor- = Data.ProtoLens.FieldDescriptor- "preimage"- (Data.ProtoLens.ScalarField Data.ProtoLens.BytesField ::- Data.ProtoLens.FieldTypeDescriptor Data.ByteString.ByteString)- (Data.ProtoLens.PlainField- Data.ProtoLens.Optional- (Data.ProtoLens.Field.field @"preimage")) ::- Data.ProtoLens.FieldDescriptor ForwardHtlcInterceptResponse- in- Data.Map.fromList- [(Data.ProtoLens.Tag 1, incomingCircuitKey__field_descriptor),- (Data.ProtoLens.Tag 2, action__field_descriptor),- (Data.ProtoLens.Tag 3, preimage__field_descriptor)]- unknownFields- = Lens.Family2.Unchecked.lens- _ForwardHtlcInterceptResponse'_unknownFields- (\ x__ y__- -> x__ {_ForwardHtlcInterceptResponse'_unknownFields = y__})- defMessage- = ForwardHtlcInterceptResponse'_constructor- {_ForwardHtlcInterceptResponse'incomingCircuitKey = Prelude.Nothing,- _ForwardHtlcInterceptResponse'action = Data.ProtoLens.fieldDefault,- _ForwardHtlcInterceptResponse'preimage = Data.ProtoLens.fieldDefault,- _ForwardHtlcInterceptResponse'_unknownFields = []}- parseMessage- = let- loop ::- ForwardHtlcInterceptResponse- -> Data.ProtoLens.Encoding.Bytes.Parser ForwardHtlcInterceptResponse- loop x- = do end <- Data.ProtoLens.Encoding.Bytes.atEnd- if end then- do (let missing = []- in- if Prelude.null missing then- Prelude.return ()- else- Prelude.fail- ((Prelude.++)- "Missing required fields: "- (Prelude.show (missing :: [Prelude.String]))))- Prelude.return- (Lens.Family2.over- Data.ProtoLens.unknownFields (\ !t -> Prelude.reverse t) x)- else- do tag <- Data.ProtoLens.Encoding.Bytes.getVarInt- case tag of- 10- -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)- (do len <- Data.ProtoLens.Encoding.Bytes.getVarInt- Data.ProtoLens.Encoding.Bytes.isolate- (Prelude.fromIntegral len) Data.ProtoLens.parseMessage)- "incoming_circuit_key"- loop- (Lens.Family2.set- (Data.ProtoLens.Field.field @"incomingCircuitKey") y x)- 16- -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)- (Prelude.fmap- Prelude.toEnum- (Prelude.fmap- Prelude.fromIntegral- Data.ProtoLens.Encoding.Bytes.getVarInt))- "action"- loop (Lens.Family2.set (Data.ProtoLens.Field.field @"action") y x)- 26- -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)- (do len <- Data.ProtoLens.Encoding.Bytes.getVarInt- Data.ProtoLens.Encoding.Bytes.getBytes- (Prelude.fromIntegral len))- "preimage"- loop- (Lens.Family2.set (Data.ProtoLens.Field.field @"preimage") y x)- wire- -> do !y <- Data.ProtoLens.Encoding.Wire.parseTaggedValueFromWire- wire- loop- (Lens.Family2.over- Data.ProtoLens.unknownFields (\ !t -> (:) y t) x)- in- (Data.ProtoLens.Encoding.Bytes.<?>)- (do loop Data.ProtoLens.defMessage) "ForwardHtlcInterceptResponse"- buildMessage- = \ _x- -> (Data.Monoid.<>)- (case- Lens.Family2.view- (Data.ProtoLens.Field.field @"maybe'incomingCircuitKey") _x- of- Prelude.Nothing -> Data.Monoid.mempty- (Prelude.Just _v)- -> (Data.Monoid.<>)- (Data.ProtoLens.Encoding.Bytes.putVarInt 10)- ((Prelude..)- (\ bs- -> (Data.Monoid.<>)- (Data.ProtoLens.Encoding.Bytes.putVarInt- (Prelude.fromIntegral (Data.ByteString.length bs)))- (Data.ProtoLens.Encoding.Bytes.putBytes bs))- Data.ProtoLens.encodeMessage- _v))- ((Data.Monoid.<>)- (let- _v = Lens.Family2.view (Data.ProtoLens.Field.field @"action") _x- in- if (Prelude.==) _v Data.ProtoLens.fieldDefault then- Data.Monoid.mempty- else- (Data.Monoid.<>)- (Data.ProtoLens.Encoding.Bytes.putVarInt 16)- ((Prelude..)- ((Prelude..)- Data.ProtoLens.Encoding.Bytes.putVarInt Prelude.fromIntegral)- Prelude.fromEnum- _v))- ((Data.Monoid.<>)- (let- _v = Lens.Family2.view (Data.ProtoLens.Field.field @"preimage") _x- in- if (Prelude.==) _v Data.ProtoLens.fieldDefault then- Data.Monoid.mempty- else- (Data.Monoid.<>)- (Data.ProtoLens.Encoding.Bytes.putVarInt 26)- ((\ bs- -> (Data.Monoid.<>)- (Data.ProtoLens.Encoding.Bytes.putVarInt- (Prelude.fromIntegral (Data.ByteString.length bs)))- (Data.ProtoLens.Encoding.Bytes.putBytes bs))- _v))- (Data.ProtoLens.Encoding.Wire.buildFieldSet- (Lens.Family2.view Data.ProtoLens.unknownFields _x))))-instance Control.DeepSeq.NFData ForwardHtlcInterceptResponse where- rnf- = \ x__- -> Control.DeepSeq.deepseq- (_ForwardHtlcInterceptResponse'_unknownFields x__)- (Control.DeepSeq.deepseq- (_ForwardHtlcInterceptResponse'incomingCircuitKey x__)- (Control.DeepSeq.deepseq- (_ForwardHtlcInterceptResponse'action x__)- (Control.DeepSeq.deepseq- (_ForwardHtlcInterceptResponse'preimage x__) ())))-{- | Fields :- -}-data GetMissionControlConfigRequest- = GetMissionControlConfigRequest'_constructor {_GetMissionControlConfigRequest'_unknownFields :: !Data.ProtoLens.FieldSet}- deriving stock (Prelude.Eq, Prelude.Ord)-instance Prelude.Show GetMissionControlConfigRequest where- showsPrec _ __x __s- = Prelude.showChar- '{'- (Prelude.showString- (Data.ProtoLens.showMessageShort __x) (Prelude.showChar '}' __s))-instance Data.ProtoLens.Message GetMissionControlConfigRequest where- messageName _- = Data.Text.pack "routerrpc.GetMissionControlConfigRequest"- packedMessageDescriptor _- = "\n\- \\RSGetMissionControlConfigRequest"- packedFileDescriptor _ = packedFileDescriptor- fieldsByTag = let in Data.Map.fromList []- unknownFields- = Lens.Family2.Unchecked.lens- _GetMissionControlConfigRequest'_unknownFields- (\ x__ y__- -> x__ {_GetMissionControlConfigRequest'_unknownFields = y__})- defMessage- = GetMissionControlConfigRequest'_constructor- {_GetMissionControlConfigRequest'_unknownFields = []}- parseMessage- = let- loop ::- GetMissionControlConfigRequest- -> Data.ProtoLens.Encoding.Bytes.Parser GetMissionControlConfigRequest- loop x- = do end <- Data.ProtoLens.Encoding.Bytes.atEnd- if end then- do (let missing = []- in- if Prelude.null missing then- Prelude.return ()- else- Prelude.fail- ((Prelude.++)- "Missing required fields: "- (Prelude.show (missing :: [Prelude.String]))))- Prelude.return- (Lens.Family2.over- Data.ProtoLens.unknownFields (\ !t -> Prelude.reverse t) x)- else- do tag <- Data.ProtoLens.Encoding.Bytes.getVarInt- case tag of {- wire- -> do !y <- Data.ProtoLens.Encoding.Wire.parseTaggedValueFromWire- wire- loop- (Lens.Family2.over- Data.ProtoLens.unknownFields (\ !t -> (:) y t) x) }- in- (Data.ProtoLens.Encoding.Bytes.<?>)- (do loop Data.ProtoLens.defMessage)- "GetMissionControlConfigRequest"- buildMessage- = \ _x- -> Data.ProtoLens.Encoding.Wire.buildFieldSet- (Lens.Family2.view Data.ProtoLens.unknownFields _x)-instance Control.DeepSeq.NFData GetMissionControlConfigRequest where- rnf- = \ x__- -> Control.DeepSeq.deepseq- (_GetMissionControlConfigRequest'_unknownFields x__) ()-{- | Fields :- - * 'Proto.RouterGrpc_Fields.config' @:: Lens' GetMissionControlConfigResponse MissionControlConfig@- * 'Proto.RouterGrpc_Fields.maybe'config' @:: Lens' GetMissionControlConfigResponse (Prelude.Maybe MissionControlConfig)@ -}-data GetMissionControlConfigResponse- = GetMissionControlConfigResponse'_constructor {_GetMissionControlConfigResponse'config :: !(Prelude.Maybe MissionControlConfig),- _GetMissionControlConfigResponse'_unknownFields :: !Data.ProtoLens.FieldSet}- deriving stock (Prelude.Eq, Prelude.Ord)-instance Prelude.Show GetMissionControlConfigResponse where- showsPrec _ __x __s- = Prelude.showChar- '{'- (Prelude.showString- (Data.ProtoLens.showMessageShort __x) (Prelude.showChar '}' __s))-instance Data.ProtoLens.Field.HasField GetMissionControlConfigResponse "config" MissionControlConfig where- fieldOf _- = (Prelude..)- (Lens.Family2.Unchecked.lens- _GetMissionControlConfigResponse'config- (\ x__ y__ -> x__ {_GetMissionControlConfigResponse'config = y__}))- (Data.ProtoLens.maybeLens Data.ProtoLens.defMessage)-instance Data.ProtoLens.Field.HasField GetMissionControlConfigResponse "maybe'config" (Prelude.Maybe MissionControlConfig) where- fieldOf _- = (Prelude..)- (Lens.Family2.Unchecked.lens- _GetMissionControlConfigResponse'config- (\ x__ y__ -> x__ {_GetMissionControlConfigResponse'config = y__}))- Prelude.id-instance Data.ProtoLens.Message GetMissionControlConfigResponse where- messageName _- = Data.Text.pack "routerrpc.GetMissionControlConfigResponse"- packedMessageDescriptor _- = "\n\- \\USGetMissionControlConfigResponse\DC27\n\- \\ACKconfig\CAN\SOH \SOH(\v2\US.routerrpc.MissionControlConfigR\ACKconfig"- packedFileDescriptor _ = packedFileDescriptor- fieldsByTag- = let- config__field_descriptor- = Data.ProtoLens.FieldDescriptor- "config"- (Data.ProtoLens.MessageField Data.ProtoLens.MessageType ::- Data.ProtoLens.FieldTypeDescriptor MissionControlConfig)- (Data.ProtoLens.OptionalField- (Data.ProtoLens.Field.field @"maybe'config")) ::- Data.ProtoLens.FieldDescriptor GetMissionControlConfigResponse- in- Data.Map.fromList- [(Data.ProtoLens.Tag 1, config__field_descriptor)]- unknownFields- = Lens.Family2.Unchecked.lens- _GetMissionControlConfigResponse'_unknownFields- (\ x__ y__- -> x__ {_GetMissionControlConfigResponse'_unknownFields = y__})- defMessage- = GetMissionControlConfigResponse'_constructor- {_GetMissionControlConfigResponse'config = Prelude.Nothing,- _GetMissionControlConfigResponse'_unknownFields = []}- parseMessage- = let- loop ::- GetMissionControlConfigResponse- -> Data.ProtoLens.Encoding.Bytes.Parser GetMissionControlConfigResponse- loop x- = do end <- Data.ProtoLens.Encoding.Bytes.atEnd- if end then- do (let missing = []- in- if Prelude.null missing then- Prelude.return ()- else- Prelude.fail- ((Prelude.++)- "Missing required fields: "- (Prelude.show (missing :: [Prelude.String]))))- Prelude.return- (Lens.Family2.over- Data.ProtoLens.unknownFields (\ !t -> Prelude.reverse t) x)- else- do tag <- Data.ProtoLens.Encoding.Bytes.getVarInt- case tag of- 10- -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)- (do len <- Data.ProtoLens.Encoding.Bytes.getVarInt- Data.ProtoLens.Encoding.Bytes.isolate- (Prelude.fromIntegral len) Data.ProtoLens.parseMessage)- "config"- loop (Lens.Family2.set (Data.ProtoLens.Field.field @"config") y x)- wire- -> do !y <- Data.ProtoLens.Encoding.Wire.parseTaggedValueFromWire- wire- loop- (Lens.Family2.over- Data.ProtoLens.unknownFields (\ !t -> (:) y t) x)- in- (Data.ProtoLens.Encoding.Bytes.<?>)- (do loop Data.ProtoLens.defMessage)- "GetMissionControlConfigResponse"- buildMessage- = \ _x- -> (Data.Monoid.<>)- (case- Lens.Family2.view (Data.ProtoLens.Field.field @"maybe'config") _x- of- Prelude.Nothing -> Data.Monoid.mempty- (Prelude.Just _v)- -> (Data.Monoid.<>)- (Data.ProtoLens.Encoding.Bytes.putVarInt 10)- ((Prelude..)- (\ bs- -> (Data.Monoid.<>)- (Data.ProtoLens.Encoding.Bytes.putVarInt- (Prelude.fromIntegral (Data.ByteString.length bs)))- (Data.ProtoLens.Encoding.Bytes.putBytes bs))- Data.ProtoLens.encodeMessage- _v))- (Data.ProtoLens.Encoding.Wire.buildFieldSet- (Lens.Family2.view Data.ProtoLens.unknownFields _x))-instance Control.DeepSeq.NFData GetMissionControlConfigResponse where- rnf- = \ x__- -> Control.DeepSeq.deepseq- (_GetMissionControlConfigResponse'_unknownFields x__)- (Control.DeepSeq.deepseq- (_GetMissionControlConfigResponse'config x__) ())-{- | Fields :- - * 'Proto.RouterGrpc_Fields.incomingChannelId' @:: Lens' HtlcEvent Data.Word.Word64@- * 'Proto.RouterGrpc_Fields.outgoingChannelId' @:: Lens' HtlcEvent Data.Word.Word64@- * 'Proto.RouterGrpc_Fields.incomingHtlcId' @:: Lens' HtlcEvent Data.Word.Word64@- * 'Proto.RouterGrpc_Fields.outgoingHtlcId' @:: Lens' HtlcEvent Data.Word.Word64@- * 'Proto.RouterGrpc_Fields.timestampNs' @:: Lens' HtlcEvent Data.Word.Word64@- * 'Proto.RouterGrpc_Fields.eventType' @:: Lens' HtlcEvent HtlcEvent'EventType@- * 'Proto.RouterGrpc_Fields.maybe'event' @:: Lens' HtlcEvent (Prelude.Maybe HtlcEvent'Event)@- * 'Proto.RouterGrpc_Fields.maybe'forwardEvent' @:: Lens' HtlcEvent (Prelude.Maybe ForwardEvent)@- * 'Proto.RouterGrpc_Fields.forwardEvent' @:: Lens' HtlcEvent ForwardEvent@- * 'Proto.RouterGrpc_Fields.maybe'forwardFailEvent' @:: Lens' HtlcEvent (Prelude.Maybe ForwardFailEvent)@- * 'Proto.RouterGrpc_Fields.forwardFailEvent' @:: Lens' HtlcEvent ForwardFailEvent@- * 'Proto.RouterGrpc_Fields.maybe'settleEvent' @:: Lens' HtlcEvent (Prelude.Maybe SettleEvent)@- * 'Proto.RouterGrpc_Fields.settleEvent' @:: Lens' HtlcEvent SettleEvent@- * 'Proto.RouterGrpc_Fields.maybe'linkFailEvent' @:: Lens' HtlcEvent (Prelude.Maybe LinkFailEvent)@- * 'Proto.RouterGrpc_Fields.linkFailEvent' @:: Lens' HtlcEvent LinkFailEvent@ -}-data HtlcEvent- = HtlcEvent'_constructor {_HtlcEvent'incomingChannelId :: !Data.Word.Word64,- _HtlcEvent'outgoingChannelId :: !Data.Word.Word64,- _HtlcEvent'incomingHtlcId :: !Data.Word.Word64,- _HtlcEvent'outgoingHtlcId :: !Data.Word.Word64,- _HtlcEvent'timestampNs :: !Data.Word.Word64,- _HtlcEvent'eventType :: !HtlcEvent'EventType,- _HtlcEvent'event :: !(Prelude.Maybe HtlcEvent'Event),- _HtlcEvent'_unknownFields :: !Data.ProtoLens.FieldSet}- deriving stock (Prelude.Eq, Prelude.Ord)-instance Prelude.Show HtlcEvent where- showsPrec _ __x __s- = Prelude.showChar- '{'- (Prelude.showString- (Data.ProtoLens.showMessageShort __x) (Prelude.showChar '}' __s))-data HtlcEvent'Event- = HtlcEvent'ForwardEvent !ForwardEvent |- HtlcEvent'ForwardFailEvent !ForwardFailEvent |- HtlcEvent'SettleEvent !SettleEvent |- HtlcEvent'LinkFailEvent !LinkFailEvent- deriving stock (Prelude.Show, Prelude.Eq, Prelude.Ord)-instance Data.ProtoLens.Field.HasField HtlcEvent "incomingChannelId" Data.Word.Word64 where- fieldOf _- = (Prelude..)- (Lens.Family2.Unchecked.lens- _HtlcEvent'incomingChannelId- (\ x__ y__ -> x__ {_HtlcEvent'incomingChannelId = y__}))- Prelude.id-instance Data.ProtoLens.Field.HasField HtlcEvent "outgoingChannelId" Data.Word.Word64 where- fieldOf _- = (Prelude..)- (Lens.Family2.Unchecked.lens- _HtlcEvent'outgoingChannelId- (\ x__ y__ -> x__ {_HtlcEvent'outgoingChannelId = y__}))- Prelude.id-instance Data.ProtoLens.Field.HasField HtlcEvent "incomingHtlcId" Data.Word.Word64 where- fieldOf _- = (Prelude..)- (Lens.Family2.Unchecked.lens- _HtlcEvent'incomingHtlcId- (\ x__ y__ -> x__ {_HtlcEvent'incomingHtlcId = y__}))- Prelude.id-instance Data.ProtoLens.Field.HasField HtlcEvent "outgoingHtlcId" Data.Word.Word64 where- fieldOf _- = (Prelude..)- (Lens.Family2.Unchecked.lens- _HtlcEvent'outgoingHtlcId- (\ x__ y__ -> x__ {_HtlcEvent'outgoingHtlcId = y__}))- Prelude.id-instance Data.ProtoLens.Field.HasField HtlcEvent "timestampNs" Data.Word.Word64 where- fieldOf _- = (Prelude..)- (Lens.Family2.Unchecked.lens- _HtlcEvent'timestampNs- (\ x__ y__ -> x__ {_HtlcEvent'timestampNs = y__}))- Prelude.id-instance Data.ProtoLens.Field.HasField HtlcEvent "eventType" HtlcEvent'EventType where- fieldOf _- = (Prelude..)- (Lens.Family2.Unchecked.lens- _HtlcEvent'eventType- (\ x__ y__ -> x__ {_HtlcEvent'eventType = y__}))- Prelude.id-instance Data.ProtoLens.Field.HasField HtlcEvent "maybe'event" (Prelude.Maybe HtlcEvent'Event) where- fieldOf _- = (Prelude..)- (Lens.Family2.Unchecked.lens- _HtlcEvent'event (\ x__ y__ -> x__ {_HtlcEvent'event = y__}))- Prelude.id-instance Data.ProtoLens.Field.HasField HtlcEvent "maybe'forwardEvent" (Prelude.Maybe ForwardEvent) where- fieldOf _- = (Prelude..)- (Lens.Family2.Unchecked.lens- _HtlcEvent'event (\ x__ y__ -> x__ {_HtlcEvent'event = y__}))- (Lens.Family2.Unchecked.lens- (\ x__- -> case x__ of- (Prelude.Just (HtlcEvent'ForwardEvent x__val))- -> Prelude.Just x__val- _otherwise -> Prelude.Nothing)- (\ _ y__ -> Prelude.fmap HtlcEvent'ForwardEvent y__))-instance Data.ProtoLens.Field.HasField HtlcEvent "forwardEvent" ForwardEvent where- fieldOf _- = (Prelude..)- (Lens.Family2.Unchecked.lens- _HtlcEvent'event (\ x__ y__ -> x__ {_HtlcEvent'event = y__}))- ((Prelude..)- (Lens.Family2.Unchecked.lens- (\ x__- -> case x__ of- (Prelude.Just (HtlcEvent'ForwardEvent x__val))- -> Prelude.Just x__val- _otherwise -> Prelude.Nothing)- (\ _ y__ -> Prelude.fmap HtlcEvent'ForwardEvent y__))- (Data.ProtoLens.maybeLens Data.ProtoLens.defMessage))-instance Data.ProtoLens.Field.HasField HtlcEvent "maybe'forwardFailEvent" (Prelude.Maybe ForwardFailEvent) where- fieldOf _- = (Prelude..)- (Lens.Family2.Unchecked.lens- _HtlcEvent'event (\ x__ y__ -> x__ {_HtlcEvent'event = y__}))- (Lens.Family2.Unchecked.lens- (\ x__- -> case x__ of- (Prelude.Just (HtlcEvent'ForwardFailEvent x__val))- -> Prelude.Just x__val- _otherwise -> Prelude.Nothing)- (\ _ y__ -> Prelude.fmap HtlcEvent'ForwardFailEvent y__))-instance Data.ProtoLens.Field.HasField HtlcEvent "forwardFailEvent" ForwardFailEvent where- fieldOf _- = (Prelude..)- (Lens.Family2.Unchecked.lens- _HtlcEvent'event (\ x__ y__ -> x__ {_HtlcEvent'event = y__}))- ((Prelude..)- (Lens.Family2.Unchecked.lens- (\ x__- -> case x__ of- (Prelude.Just (HtlcEvent'ForwardFailEvent x__val))- -> Prelude.Just x__val- _otherwise -> Prelude.Nothing)- (\ _ y__ -> Prelude.fmap HtlcEvent'ForwardFailEvent y__))- (Data.ProtoLens.maybeLens Data.ProtoLens.defMessage))-instance Data.ProtoLens.Field.HasField HtlcEvent "maybe'settleEvent" (Prelude.Maybe SettleEvent) where- fieldOf _- = (Prelude..)- (Lens.Family2.Unchecked.lens- _HtlcEvent'event (\ x__ y__ -> x__ {_HtlcEvent'event = y__}))- (Lens.Family2.Unchecked.lens- (\ x__- -> case x__ of- (Prelude.Just (HtlcEvent'SettleEvent x__val))- -> Prelude.Just x__val- _otherwise -> Prelude.Nothing)- (\ _ y__ -> Prelude.fmap HtlcEvent'SettleEvent y__))-instance Data.ProtoLens.Field.HasField HtlcEvent "settleEvent" SettleEvent where- fieldOf _- = (Prelude..)- (Lens.Family2.Unchecked.lens- _HtlcEvent'event (\ x__ y__ -> x__ {_HtlcEvent'event = y__}))- ((Prelude..)- (Lens.Family2.Unchecked.lens- (\ x__- -> case x__ of- (Prelude.Just (HtlcEvent'SettleEvent x__val))- -> Prelude.Just x__val- _otherwise -> Prelude.Nothing)- (\ _ y__ -> Prelude.fmap HtlcEvent'SettleEvent y__))- (Data.ProtoLens.maybeLens Data.ProtoLens.defMessage))-instance Data.ProtoLens.Field.HasField HtlcEvent "maybe'linkFailEvent" (Prelude.Maybe LinkFailEvent) where- fieldOf _- = (Prelude..)- (Lens.Family2.Unchecked.lens- _HtlcEvent'event (\ x__ y__ -> x__ {_HtlcEvent'event = y__}))- (Lens.Family2.Unchecked.lens- (\ x__- -> case x__ of- (Prelude.Just (HtlcEvent'LinkFailEvent x__val))- -> Prelude.Just x__val- _otherwise -> Prelude.Nothing)- (\ _ y__ -> Prelude.fmap HtlcEvent'LinkFailEvent y__))-instance Data.ProtoLens.Field.HasField HtlcEvent "linkFailEvent" LinkFailEvent where- fieldOf _- = (Prelude..)- (Lens.Family2.Unchecked.lens- _HtlcEvent'event (\ x__ y__ -> x__ {_HtlcEvent'event = y__}))- ((Prelude..)- (Lens.Family2.Unchecked.lens- (\ x__- -> case x__ of- (Prelude.Just (HtlcEvent'LinkFailEvent x__val))- -> Prelude.Just x__val- _otherwise -> Prelude.Nothing)- (\ _ y__ -> Prelude.fmap HtlcEvent'LinkFailEvent y__))- (Data.ProtoLens.maybeLens Data.ProtoLens.defMessage))-instance Data.ProtoLens.Message HtlcEvent where- messageName _ = Data.Text.pack "routerrpc.HtlcEvent"- packedMessageDescriptor _- = "\n\- \\tHtlcEvent\DC2.\n\- \\DC3incoming_channel_id\CAN\SOH \SOH(\EOTR\DC1incomingChannelId\DC2.\n\- \\DC3outgoing_channel_id\CAN\STX \SOH(\EOTR\DC1outgoingChannelId\DC2(\n\- \\DLEincoming_htlc_id\CAN\ETX \SOH(\EOTR\SOincomingHtlcId\DC2(\n\- \\DLEoutgoing_htlc_id\CAN\EOT \SOH(\EOTR\SOoutgoingHtlcId\DC2!\n\- \\ftimestamp_ns\CAN\ENQ \SOH(\EOTR\vtimestampNs\DC2=\n\- \\n\- \event_type\CAN\ACK \SOH(\SO2\RS.routerrpc.HtlcEvent.EventTypeR\teventType\DC2>\n\- \\rforward_event\CAN\a \SOH(\v2\ETB.routerrpc.ForwardEventH\NULR\fforwardEvent\DC2K\n\- \\DC2forward_fail_event\CAN\b \SOH(\v2\ESC.routerrpc.ForwardFailEventH\NULR\DLEforwardFailEvent\DC2;\n\- \\fsettle_event\CAN\t \SOH(\v2\SYN.routerrpc.SettleEventH\NULR\vsettleEvent\DC2B\n\- \\SIlink_fail_event\CAN\n\- \ \SOH(\v2\CAN.routerrpc.LinkFailEventH\NULR\rlinkFailEvent\"<\n\- \\tEventType\DC2\v\n\- \\aUNKNOWN\DLE\NUL\DC2\b\n\- \\EOTSEND\DLE\SOH\DC2\v\n\- \\aRECEIVE\DLE\STX\DC2\v\n\- \\aFORWARD\DLE\ETXB\a\n\- \\ENQevent"- packedFileDescriptor _ = packedFileDescriptor- fieldsByTag- = let- incomingChannelId__field_descriptor- = Data.ProtoLens.FieldDescriptor- "incoming_channel_id"- (Data.ProtoLens.ScalarField Data.ProtoLens.UInt64Field ::- Data.ProtoLens.FieldTypeDescriptor Data.Word.Word64)- (Data.ProtoLens.PlainField- Data.ProtoLens.Optional- (Data.ProtoLens.Field.field @"incomingChannelId")) ::- Data.ProtoLens.FieldDescriptor HtlcEvent- outgoingChannelId__field_descriptor- = Data.ProtoLens.FieldDescriptor- "outgoing_channel_id"- (Data.ProtoLens.ScalarField Data.ProtoLens.UInt64Field ::- Data.ProtoLens.FieldTypeDescriptor Data.Word.Word64)- (Data.ProtoLens.PlainField- Data.ProtoLens.Optional- (Data.ProtoLens.Field.field @"outgoingChannelId")) ::- Data.ProtoLens.FieldDescriptor HtlcEvent- incomingHtlcId__field_descriptor- = Data.ProtoLens.FieldDescriptor- "incoming_htlc_id"- (Data.ProtoLens.ScalarField Data.ProtoLens.UInt64Field ::- Data.ProtoLens.FieldTypeDescriptor Data.Word.Word64)- (Data.ProtoLens.PlainField- Data.ProtoLens.Optional- (Data.ProtoLens.Field.field @"incomingHtlcId")) ::- Data.ProtoLens.FieldDescriptor HtlcEvent- outgoingHtlcId__field_descriptor- = Data.ProtoLens.FieldDescriptor- "outgoing_htlc_id"- (Data.ProtoLens.ScalarField Data.ProtoLens.UInt64Field ::- Data.ProtoLens.FieldTypeDescriptor Data.Word.Word64)- (Data.ProtoLens.PlainField- Data.ProtoLens.Optional- (Data.ProtoLens.Field.field @"outgoingHtlcId")) ::- Data.ProtoLens.FieldDescriptor HtlcEvent- timestampNs__field_descriptor- = Data.ProtoLens.FieldDescriptor- "timestamp_ns"- (Data.ProtoLens.ScalarField Data.ProtoLens.UInt64Field ::- Data.ProtoLens.FieldTypeDescriptor Data.Word.Word64)- (Data.ProtoLens.PlainField- Data.ProtoLens.Optional- (Data.ProtoLens.Field.field @"timestampNs")) ::- Data.ProtoLens.FieldDescriptor HtlcEvent- eventType__field_descriptor- = Data.ProtoLens.FieldDescriptor- "event_type"- (Data.ProtoLens.ScalarField Data.ProtoLens.EnumField ::- Data.ProtoLens.FieldTypeDescriptor HtlcEvent'EventType)- (Data.ProtoLens.PlainField- Data.ProtoLens.Optional- (Data.ProtoLens.Field.field @"eventType")) ::- Data.ProtoLens.FieldDescriptor HtlcEvent- forwardEvent__field_descriptor- = Data.ProtoLens.FieldDescriptor- "forward_event"- (Data.ProtoLens.MessageField Data.ProtoLens.MessageType ::- Data.ProtoLens.FieldTypeDescriptor ForwardEvent)- (Data.ProtoLens.OptionalField- (Data.ProtoLens.Field.field @"maybe'forwardEvent")) ::- Data.ProtoLens.FieldDescriptor HtlcEvent- forwardFailEvent__field_descriptor- = Data.ProtoLens.FieldDescriptor- "forward_fail_event"- (Data.ProtoLens.MessageField Data.ProtoLens.MessageType ::- Data.ProtoLens.FieldTypeDescriptor ForwardFailEvent)- (Data.ProtoLens.OptionalField- (Data.ProtoLens.Field.field @"maybe'forwardFailEvent")) ::- Data.ProtoLens.FieldDescriptor HtlcEvent- settleEvent__field_descriptor- = Data.ProtoLens.FieldDescriptor- "settle_event"- (Data.ProtoLens.MessageField Data.ProtoLens.MessageType ::- Data.ProtoLens.FieldTypeDescriptor SettleEvent)- (Data.ProtoLens.OptionalField- (Data.ProtoLens.Field.field @"maybe'settleEvent")) ::- Data.ProtoLens.FieldDescriptor HtlcEvent- linkFailEvent__field_descriptor- = Data.ProtoLens.FieldDescriptor- "link_fail_event"- (Data.ProtoLens.MessageField Data.ProtoLens.MessageType ::- Data.ProtoLens.FieldTypeDescriptor LinkFailEvent)- (Data.ProtoLens.OptionalField- (Data.ProtoLens.Field.field @"maybe'linkFailEvent")) ::- Data.ProtoLens.FieldDescriptor HtlcEvent- in- Data.Map.fromList- [(Data.ProtoLens.Tag 1, incomingChannelId__field_descriptor),- (Data.ProtoLens.Tag 2, outgoingChannelId__field_descriptor),- (Data.ProtoLens.Tag 3, incomingHtlcId__field_descriptor),- (Data.ProtoLens.Tag 4, outgoingHtlcId__field_descriptor),- (Data.ProtoLens.Tag 5, timestampNs__field_descriptor),- (Data.ProtoLens.Tag 6, eventType__field_descriptor),- (Data.ProtoLens.Tag 7, forwardEvent__field_descriptor),- (Data.ProtoLens.Tag 8, forwardFailEvent__field_descriptor),- (Data.ProtoLens.Tag 9, settleEvent__field_descriptor),- (Data.ProtoLens.Tag 10, linkFailEvent__field_descriptor)]- unknownFields- = Lens.Family2.Unchecked.lens- _HtlcEvent'_unknownFields- (\ x__ y__ -> x__ {_HtlcEvent'_unknownFields = y__})- defMessage- = HtlcEvent'_constructor- {_HtlcEvent'incomingChannelId = Data.ProtoLens.fieldDefault,- _HtlcEvent'outgoingChannelId = Data.ProtoLens.fieldDefault,- _HtlcEvent'incomingHtlcId = Data.ProtoLens.fieldDefault,- _HtlcEvent'outgoingHtlcId = Data.ProtoLens.fieldDefault,- _HtlcEvent'timestampNs = Data.ProtoLens.fieldDefault,- _HtlcEvent'eventType = Data.ProtoLens.fieldDefault,- _HtlcEvent'event = Prelude.Nothing, _HtlcEvent'_unknownFields = []}- parseMessage- = let- loop :: HtlcEvent -> Data.ProtoLens.Encoding.Bytes.Parser HtlcEvent- loop x- = do end <- Data.ProtoLens.Encoding.Bytes.atEnd- if end then- do (let missing = []- in- if Prelude.null missing then- Prelude.return ()- else- Prelude.fail- ((Prelude.++)- "Missing required fields: "- (Prelude.show (missing :: [Prelude.String]))))- Prelude.return- (Lens.Family2.over- Data.ProtoLens.unknownFields (\ !t -> Prelude.reverse t) x)- else- do tag <- Data.ProtoLens.Encoding.Bytes.getVarInt- case tag of- 8 -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)- Data.ProtoLens.Encoding.Bytes.getVarInt "incoming_channel_id"- loop- (Lens.Family2.set- (Data.ProtoLens.Field.field @"incomingChannelId") y x)- 16- -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)- Data.ProtoLens.Encoding.Bytes.getVarInt "outgoing_channel_id"- loop- (Lens.Family2.set- (Data.ProtoLens.Field.field @"outgoingChannelId") y x)- 24- -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)- Data.ProtoLens.Encoding.Bytes.getVarInt "incoming_htlc_id"- loop- (Lens.Family2.set- (Data.ProtoLens.Field.field @"incomingHtlcId") y x)- 32- -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)- Data.ProtoLens.Encoding.Bytes.getVarInt "outgoing_htlc_id"- loop- (Lens.Family2.set- (Data.ProtoLens.Field.field @"outgoingHtlcId") y x)- 40- -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)- Data.ProtoLens.Encoding.Bytes.getVarInt "timestamp_ns"- loop- (Lens.Family2.set (Data.ProtoLens.Field.field @"timestampNs") y x)- 48- -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)- (Prelude.fmap- Prelude.toEnum- (Prelude.fmap- Prelude.fromIntegral- Data.ProtoLens.Encoding.Bytes.getVarInt))- "event_type"- loop- (Lens.Family2.set (Data.ProtoLens.Field.field @"eventType") y x)- 58- -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)- (do len <- Data.ProtoLens.Encoding.Bytes.getVarInt- Data.ProtoLens.Encoding.Bytes.isolate- (Prelude.fromIntegral len) Data.ProtoLens.parseMessage)- "forward_event"- loop- (Lens.Family2.set- (Data.ProtoLens.Field.field @"forwardEvent") y x)- 66- -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)- (do len <- Data.ProtoLens.Encoding.Bytes.getVarInt- Data.ProtoLens.Encoding.Bytes.isolate- (Prelude.fromIntegral len) Data.ProtoLens.parseMessage)- "forward_fail_event"- loop- (Lens.Family2.set- (Data.ProtoLens.Field.field @"forwardFailEvent") y x)- 74- -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)- (do len <- Data.ProtoLens.Encoding.Bytes.getVarInt- Data.ProtoLens.Encoding.Bytes.isolate- (Prelude.fromIntegral len) Data.ProtoLens.parseMessage)- "settle_event"- loop- (Lens.Family2.set (Data.ProtoLens.Field.field @"settleEvent") y x)- 82- -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)- (do len <- Data.ProtoLens.Encoding.Bytes.getVarInt- Data.ProtoLens.Encoding.Bytes.isolate- (Prelude.fromIntegral len) Data.ProtoLens.parseMessage)- "link_fail_event"- loop- (Lens.Family2.set- (Data.ProtoLens.Field.field @"linkFailEvent") y x)- wire- -> do !y <- Data.ProtoLens.Encoding.Wire.parseTaggedValueFromWire- wire- loop- (Lens.Family2.over- Data.ProtoLens.unknownFields (\ !t -> (:) y t) x)- in- (Data.ProtoLens.Encoding.Bytes.<?>)- (do loop Data.ProtoLens.defMessage) "HtlcEvent"- buildMessage- = \ _x- -> (Data.Monoid.<>)- (let- _v- = Lens.Family2.view- (Data.ProtoLens.Field.field @"incomingChannelId") _x- in- if (Prelude.==) _v Data.ProtoLens.fieldDefault then- Data.Monoid.mempty- else- (Data.Monoid.<>)- (Data.ProtoLens.Encoding.Bytes.putVarInt 8)- (Data.ProtoLens.Encoding.Bytes.putVarInt _v))- ((Data.Monoid.<>)- (let- _v- = Lens.Family2.view- (Data.ProtoLens.Field.field @"outgoingChannelId") _x- in- if (Prelude.==) _v Data.ProtoLens.fieldDefault then- Data.Monoid.mempty- else- (Data.Monoid.<>)- (Data.ProtoLens.Encoding.Bytes.putVarInt 16)- (Data.ProtoLens.Encoding.Bytes.putVarInt _v))- ((Data.Monoid.<>)- (let- _v- = Lens.Family2.view- (Data.ProtoLens.Field.field @"incomingHtlcId") _x- in- if (Prelude.==) _v Data.ProtoLens.fieldDefault then- Data.Monoid.mempty- else- (Data.Monoid.<>)- (Data.ProtoLens.Encoding.Bytes.putVarInt 24)- (Data.ProtoLens.Encoding.Bytes.putVarInt _v))- ((Data.Monoid.<>)- (let- _v- = Lens.Family2.view- (Data.ProtoLens.Field.field @"outgoingHtlcId") _x- in- if (Prelude.==) _v Data.ProtoLens.fieldDefault then- Data.Monoid.mempty- else- (Data.Monoid.<>)- (Data.ProtoLens.Encoding.Bytes.putVarInt 32)- (Data.ProtoLens.Encoding.Bytes.putVarInt _v))- ((Data.Monoid.<>)- (let- _v- = Lens.Family2.view (Data.ProtoLens.Field.field @"timestampNs") _x- in- if (Prelude.==) _v Data.ProtoLens.fieldDefault then- Data.Monoid.mempty- else- (Data.Monoid.<>)- (Data.ProtoLens.Encoding.Bytes.putVarInt 40)- (Data.ProtoLens.Encoding.Bytes.putVarInt _v))- ((Data.Monoid.<>)- (let- _v = Lens.Family2.view (Data.ProtoLens.Field.field @"eventType") _x- in- if (Prelude.==) _v Data.ProtoLens.fieldDefault then- Data.Monoid.mempty- else- (Data.Monoid.<>)- (Data.ProtoLens.Encoding.Bytes.putVarInt 48)- ((Prelude..)- ((Prelude..)- Data.ProtoLens.Encoding.Bytes.putVarInt- Prelude.fromIntegral)- Prelude.fromEnum- _v))- ((Data.Monoid.<>)- (case- Lens.Family2.view (Data.ProtoLens.Field.field @"maybe'event") _x- of- Prelude.Nothing -> Data.Monoid.mempty- (Prelude.Just (HtlcEvent'ForwardEvent v))- -> (Data.Monoid.<>)- (Data.ProtoLens.Encoding.Bytes.putVarInt 58)- ((Prelude..)- (\ bs- -> (Data.Monoid.<>)- (Data.ProtoLens.Encoding.Bytes.putVarInt- (Prelude.fromIntegral- (Data.ByteString.length bs)))- (Data.ProtoLens.Encoding.Bytes.putBytes bs))- Data.ProtoLens.encodeMessage- v)- (Prelude.Just (HtlcEvent'ForwardFailEvent v))- -> (Data.Monoid.<>)- (Data.ProtoLens.Encoding.Bytes.putVarInt 66)- ((Prelude..)- (\ bs- -> (Data.Monoid.<>)- (Data.ProtoLens.Encoding.Bytes.putVarInt- (Prelude.fromIntegral- (Data.ByteString.length bs)))- (Data.ProtoLens.Encoding.Bytes.putBytes bs))- Data.ProtoLens.encodeMessage- v)- (Prelude.Just (HtlcEvent'SettleEvent v))- -> (Data.Monoid.<>)- (Data.ProtoLens.Encoding.Bytes.putVarInt 74)- ((Prelude..)- (\ bs- -> (Data.Monoid.<>)- (Data.ProtoLens.Encoding.Bytes.putVarInt- (Prelude.fromIntegral- (Data.ByteString.length bs)))- (Data.ProtoLens.Encoding.Bytes.putBytes bs))- Data.ProtoLens.encodeMessage- v)- (Prelude.Just (HtlcEvent'LinkFailEvent v))- -> (Data.Monoid.<>)- (Data.ProtoLens.Encoding.Bytes.putVarInt 82)- ((Prelude..)- (\ bs- -> (Data.Monoid.<>)- (Data.ProtoLens.Encoding.Bytes.putVarInt- (Prelude.fromIntegral- (Data.ByteString.length bs)))- (Data.ProtoLens.Encoding.Bytes.putBytes bs))- Data.ProtoLens.encodeMessage- v))- (Data.ProtoLens.Encoding.Wire.buildFieldSet- (Lens.Family2.view Data.ProtoLens.unknownFields _x))))))))-instance Control.DeepSeq.NFData HtlcEvent where- rnf- = \ x__- -> Control.DeepSeq.deepseq- (_HtlcEvent'_unknownFields x__)- (Control.DeepSeq.deepseq- (_HtlcEvent'incomingChannelId x__)- (Control.DeepSeq.deepseq- (_HtlcEvent'outgoingChannelId x__)- (Control.DeepSeq.deepseq- (_HtlcEvent'incomingHtlcId x__)- (Control.DeepSeq.deepseq- (_HtlcEvent'outgoingHtlcId x__)- (Control.DeepSeq.deepseq- (_HtlcEvent'timestampNs x__)- (Control.DeepSeq.deepseq- (_HtlcEvent'eventType x__)- (Control.DeepSeq.deepseq (_HtlcEvent'event x__) ())))))))-instance Control.DeepSeq.NFData HtlcEvent'Event where- rnf (HtlcEvent'ForwardEvent x__) = Control.DeepSeq.rnf x__- rnf (HtlcEvent'ForwardFailEvent x__) = Control.DeepSeq.rnf x__- rnf (HtlcEvent'SettleEvent x__) = Control.DeepSeq.rnf x__- rnf (HtlcEvent'LinkFailEvent x__) = Control.DeepSeq.rnf x__-_HtlcEvent'ForwardEvent ::- Data.ProtoLens.Prism.Prism' HtlcEvent'Event ForwardEvent-_HtlcEvent'ForwardEvent- = Data.ProtoLens.Prism.prism'- HtlcEvent'ForwardEvent- (\ p__- -> case p__ of- (HtlcEvent'ForwardEvent p__val) -> Prelude.Just p__val- _otherwise -> Prelude.Nothing)-_HtlcEvent'ForwardFailEvent ::- Data.ProtoLens.Prism.Prism' HtlcEvent'Event ForwardFailEvent-_HtlcEvent'ForwardFailEvent- = Data.ProtoLens.Prism.prism'- HtlcEvent'ForwardFailEvent- (\ p__- -> case p__ of- (HtlcEvent'ForwardFailEvent p__val) -> Prelude.Just p__val- _otherwise -> Prelude.Nothing)-_HtlcEvent'SettleEvent ::- Data.ProtoLens.Prism.Prism' HtlcEvent'Event SettleEvent-_HtlcEvent'SettleEvent- = Data.ProtoLens.Prism.prism'- HtlcEvent'SettleEvent- (\ p__- -> case p__ of- (HtlcEvent'SettleEvent p__val) -> Prelude.Just p__val- _otherwise -> Prelude.Nothing)-_HtlcEvent'LinkFailEvent ::- Data.ProtoLens.Prism.Prism' HtlcEvent'Event LinkFailEvent-_HtlcEvent'LinkFailEvent- = Data.ProtoLens.Prism.prism'- HtlcEvent'LinkFailEvent- (\ p__- -> case p__ of- (HtlcEvent'LinkFailEvent p__val) -> Prelude.Just p__val- _otherwise -> Prelude.Nothing)-newtype HtlcEvent'EventType'UnrecognizedValue- = HtlcEvent'EventType'UnrecognizedValue Data.Int.Int32- deriving stock (Prelude.Eq, Prelude.Ord, Prelude.Show)-data HtlcEvent'EventType- = HtlcEvent'UNKNOWN |- HtlcEvent'SEND |- HtlcEvent'RECEIVE |- HtlcEvent'FORWARD |- HtlcEvent'EventType'Unrecognized !HtlcEvent'EventType'UnrecognizedValue- deriving stock (Prelude.Show, Prelude.Eq, Prelude.Ord)-instance Data.ProtoLens.MessageEnum HtlcEvent'EventType where- maybeToEnum 0 = Prelude.Just HtlcEvent'UNKNOWN- maybeToEnum 1 = Prelude.Just HtlcEvent'SEND- maybeToEnum 2 = Prelude.Just HtlcEvent'RECEIVE- maybeToEnum 3 = Prelude.Just HtlcEvent'FORWARD- maybeToEnum k- = Prelude.Just- (HtlcEvent'EventType'Unrecognized- (HtlcEvent'EventType'UnrecognizedValue (Prelude.fromIntegral k)))- showEnum HtlcEvent'UNKNOWN = "UNKNOWN"- showEnum HtlcEvent'SEND = "SEND"- showEnum HtlcEvent'RECEIVE = "RECEIVE"- showEnum HtlcEvent'FORWARD = "FORWARD"- showEnum- (HtlcEvent'EventType'Unrecognized (HtlcEvent'EventType'UnrecognizedValue k))- = Prelude.show k- readEnum k- | (Prelude.==) k "UNKNOWN" = Prelude.Just HtlcEvent'UNKNOWN- | (Prelude.==) k "SEND" = Prelude.Just HtlcEvent'SEND- | (Prelude.==) k "RECEIVE" = Prelude.Just HtlcEvent'RECEIVE- | (Prelude.==) k "FORWARD" = Prelude.Just HtlcEvent'FORWARD- | Prelude.otherwise- = (Prelude.>>=) (Text.Read.readMaybe k) Data.ProtoLens.maybeToEnum-instance Prelude.Bounded HtlcEvent'EventType where- minBound = HtlcEvent'UNKNOWN- maxBound = HtlcEvent'FORWARD-instance Prelude.Enum HtlcEvent'EventType where- toEnum k__- = Prelude.maybe- (Prelude.error- ((Prelude.++)- "toEnum: unknown value for enum EventType: " (Prelude.show k__)))- Prelude.id- (Data.ProtoLens.maybeToEnum k__)- fromEnum HtlcEvent'UNKNOWN = 0- fromEnum HtlcEvent'SEND = 1- fromEnum HtlcEvent'RECEIVE = 2- fromEnum HtlcEvent'FORWARD = 3- fromEnum- (HtlcEvent'EventType'Unrecognized (HtlcEvent'EventType'UnrecognizedValue k))- = Prelude.fromIntegral k- succ HtlcEvent'FORWARD- = Prelude.error- "HtlcEvent'EventType.succ: bad argument HtlcEvent'FORWARD. This value would be out of bounds."- succ HtlcEvent'UNKNOWN = HtlcEvent'SEND- succ HtlcEvent'SEND = HtlcEvent'RECEIVE- succ HtlcEvent'RECEIVE = HtlcEvent'FORWARD- succ (HtlcEvent'EventType'Unrecognized _)- = Prelude.error- "HtlcEvent'EventType.succ: bad argument: unrecognized value"- pred HtlcEvent'UNKNOWN- = Prelude.error- "HtlcEvent'EventType.pred: bad argument HtlcEvent'UNKNOWN. This value would be out of bounds."- pred HtlcEvent'SEND = HtlcEvent'UNKNOWN- pred HtlcEvent'RECEIVE = HtlcEvent'SEND- pred HtlcEvent'FORWARD = HtlcEvent'RECEIVE- pred (HtlcEvent'EventType'Unrecognized _)- = Prelude.error- "HtlcEvent'EventType.pred: bad argument: unrecognized value"- enumFrom = Data.ProtoLens.Message.Enum.messageEnumFrom- enumFromTo = Data.ProtoLens.Message.Enum.messageEnumFromTo- enumFromThen = Data.ProtoLens.Message.Enum.messageEnumFromThen- enumFromThenTo = Data.ProtoLens.Message.Enum.messageEnumFromThenTo-instance Data.ProtoLens.FieldDefault HtlcEvent'EventType where- fieldDefault = HtlcEvent'UNKNOWN-instance Control.DeepSeq.NFData HtlcEvent'EventType where- rnf x__ = Prelude.seq x__ ()-{- | Fields :- - * 'Proto.RouterGrpc_Fields.incomingTimelock' @:: Lens' HtlcInfo Data.Word.Word32@- * 'Proto.RouterGrpc_Fields.outgoingTimelock' @:: Lens' HtlcInfo Data.Word.Word32@- * 'Proto.RouterGrpc_Fields.incomingAmtMsat' @:: Lens' HtlcInfo Data.Word.Word64@- * 'Proto.RouterGrpc_Fields.outgoingAmtMsat' @:: Lens' HtlcInfo Data.Word.Word64@ -}-data HtlcInfo- = HtlcInfo'_constructor {_HtlcInfo'incomingTimelock :: !Data.Word.Word32,- _HtlcInfo'outgoingTimelock :: !Data.Word.Word32,- _HtlcInfo'incomingAmtMsat :: !Data.Word.Word64,- _HtlcInfo'outgoingAmtMsat :: !Data.Word.Word64,- _HtlcInfo'_unknownFields :: !Data.ProtoLens.FieldSet}- deriving stock (Prelude.Eq, Prelude.Ord)-instance Prelude.Show HtlcInfo where- showsPrec _ __x __s- = Prelude.showChar- '{'- (Prelude.showString- (Data.ProtoLens.showMessageShort __x) (Prelude.showChar '}' __s))-instance Data.ProtoLens.Field.HasField HtlcInfo "incomingTimelock" Data.Word.Word32 where- fieldOf _- = (Prelude..)- (Lens.Family2.Unchecked.lens- _HtlcInfo'incomingTimelock- (\ x__ y__ -> x__ {_HtlcInfo'incomingTimelock = y__}))- Prelude.id-instance Data.ProtoLens.Field.HasField HtlcInfo "outgoingTimelock" Data.Word.Word32 where- fieldOf _- = (Prelude..)- (Lens.Family2.Unchecked.lens- _HtlcInfo'outgoingTimelock- (\ x__ y__ -> x__ {_HtlcInfo'outgoingTimelock = y__}))- Prelude.id-instance Data.ProtoLens.Field.HasField HtlcInfo "incomingAmtMsat" Data.Word.Word64 where- fieldOf _- = (Prelude..)- (Lens.Family2.Unchecked.lens- _HtlcInfo'incomingAmtMsat- (\ x__ y__ -> x__ {_HtlcInfo'incomingAmtMsat = y__}))- Prelude.id-instance Data.ProtoLens.Field.HasField HtlcInfo "outgoingAmtMsat" Data.Word.Word64 where- fieldOf _- = (Prelude..)- (Lens.Family2.Unchecked.lens- _HtlcInfo'outgoingAmtMsat- (\ x__ y__ -> x__ {_HtlcInfo'outgoingAmtMsat = y__}))- Prelude.id-instance Data.ProtoLens.Message HtlcInfo where- messageName _ = Data.Text.pack "routerrpc.HtlcInfo"- packedMessageDescriptor _- = "\n\- \\bHtlcInfo\DC2+\n\- \\DC1incoming_timelock\CAN\SOH \SOH(\rR\DLEincomingTimelock\DC2+\n\- \\DC1outgoing_timelock\CAN\STX \SOH(\rR\DLEoutgoingTimelock\DC2*\n\- \\DC1incoming_amt_msat\CAN\ETX \SOH(\EOTR\SIincomingAmtMsat\DC2*\n\- \\DC1outgoing_amt_msat\CAN\EOT \SOH(\EOTR\SIoutgoingAmtMsat"- packedFileDescriptor _ = packedFileDescriptor- fieldsByTag- = let- incomingTimelock__field_descriptor- = Data.ProtoLens.FieldDescriptor- "incoming_timelock"- (Data.ProtoLens.ScalarField Data.ProtoLens.UInt32Field ::- Data.ProtoLens.FieldTypeDescriptor Data.Word.Word32)- (Data.ProtoLens.PlainField- Data.ProtoLens.Optional- (Data.ProtoLens.Field.field @"incomingTimelock")) ::- Data.ProtoLens.FieldDescriptor HtlcInfo- outgoingTimelock__field_descriptor- = Data.ProtoLens.FieldDescriptor- "outgoing_timelock"- (Data.ProtoLens.ScalarField Data.ProtoLens.UInt32Field ::- Data.ProtoLens.FieldTypeDescriptor Data.Word.Word32)- (Data.ProtoLens.PlainField- Data.ProtoLens.Optional- (Data.ProtoLens.Field.field @"outgoingTimelock")) ::- Data.ProtoLens.FieldDescriptor HtlcInfo- incomingAmtMsat__field_descriptor- = Data.ProtoLens.FieldDescriptor- "incoming_amt_msat"- (Data.ProtoLens.ScalarField Data.ProtoLens.UInt64Field ::- Data.ProtoLens.FieldTypeDescriptor Data.Word.Word64)- (Data.ProtoLens.PlainField- Data.ProtoLens.Optional- (Data.ProtoLens.Field.field @"incomingAmtMsat")) ::- Data.ProtoLens.FieldDescriptor HtlcInfo- outgoingAmtMsat__field_descriptor- = Data.ProtoLens.FieldDescriptor- "outgoing_amt_msat"- (Data.ProtoLens.ScalarField Data.ProtoLens.UInt64Field ::- Data.ProtoLens.FieldTypeDescriptor Data.Word.Word64)- (Data.ProtoLens.PlainField- Data.ProtoLens.Optional- (Data.ProtoLens.Field.field @"outgoingAmtMsat")) ::- Data.ProtoLens.FieldDescriptor HtlcInfo- in- Data.Map.fromList- [(Data.ProtoLens.Tag 1, incomingTimelock__field_descriptor),- (Data.ProtoLens.Tag 2, outgoingTimelock__field_descriptor),- (Data.ProtoLens.Tag 3, incomingAmtMsat__field_descriptor),- (Data.ProtoLens.Tag 4, outgoingAmtMsat__field_descriptor)]- unknownFields- = Lens.Family2.Unchecked.lens- _HtlcInfo'_unknownFields- (\ x__ y__ -> x__ {_HtlcInfo'_unknownFields = y__})- defMessage- = HtlcInfo'_constructor- {_HtlcInfo'incomingTimelock = Data.ProtoLens.fieldDefault,- _HtlcInfo'outgoingTimelock = Data.ProtoLens.fieldDefault,- _HtlcInfo'incomingAmtMsat = Data.ProtoLens.fieldDefault,- _HtlcInfo'outgoingAmtMsat = Data.ProtoLens.fieldDefault,- _HtlcInfo'_unknownFields = []}- parseMessage- = let- loop :: HtlcInfo -> Data.ProtoLens.Encoding.Bytes.Parser HtlcInfo- loop x- = do end <- Data.ProtoLens.Encoding.Bytes.atEnd- if end then- do (let missing = []- in- if Prelude.null missing then- Prelude.return ()- else- Prelude.fail- ((Prelude.++)- "Missing required fields: "- (Prelude.show (missing :: [Prelude.String]))))- Prelude.return- (Lens.Family2.over- Data.ProtoLens.unknownFields (\ !t -> Prelude.reverse t) x)- else- do tag <- Data.ProtoLens.Encoding.Bytes.getVarInt- case tag of- 8 -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)- (Prelude.fmap- Prelude.fromIntegral- Data.ProtoLens.Encoding.Bytes.getVarInt)- "incoming_timelock"- loop- (Lens.Family2.set- (Data.ProtoLens.Field.field @"incomingTimelock") y x)- 16- -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)- (Prelude.fmap- Prelude.fromIntegral- Data.ProtoLens.Encoding.Bytes.getVarInt)- "outgoing_timelock"- loop- (Lens.Family2.set- (Data.ProtoLens.Field.field @"outgoingTimelock") y x)- 24- -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)- Data.ProtoLens.Encoding.Bytes.getVarInt "incoming_amt_msat"- loop- (Lens.Family2.set- (Data.ProtoLens.Field.field @"incomingAmtMsat") y x)- 32- -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)- Data.ProtoLens.Encoding.Bytes.getVarInt "outgoing_amt_msat"- loop- (Lens.Family2.set- (Data.ProtoLens.Field.field @"outgoingAmtMsat") y x)- wire- -> do !y <- Data.ProtoLens.Encoding.Wire.parseTaggedValueFromWire- wire- loop- (Lens.Family2.over- Data.ProtoLens.unknownFields (\ !t -> (:) y t) x)- in- (Data.ProtoLens.Encoding.Bytes.<?>)- (do loop Data.ProtoLens.defMessage) "HtlcInfo"- buildMessage- = \ _x- -> (Data.Monoid.<>)- (let- _v- = Lens.Family2.view- (Data.ProtoLens.Field.field @"incomingTimelock") _x- in- if (Prelude.==) _v Data.ProtoLens.fieldDefault then- Data.Monoid.mempty- else- (Data.Monoid.<>)- (Data.ProtoLens.Encoding.Bytes.putVarInt 8)- ((Prelude..)- Data.ProtoLens.Encoding.Bytes.putVarInt Prelude.fromIntegral _v))- ((Data.Monoid.<>)- (let- _v- = Lens.Family2.view- (Data.ProtoLens.Field.field @"outgoingTimelock") _x- in- if (Prelude.==) _v Data.ProtoLens.fieldDefault then- Data.Monoid.mempty- else- (Data.Monoid.<>)- (Data.ProtoLens.Encoding.Bytes.putVarInt 16)- ((Prelude..)- Data.ProtoLens.Encoding.Bytes.putVarInt Prelude.fromIntegral _v))- ((Data.Monoid.<>)- (let- _v- = Lens.Family2.view- (Data.ProtoLens.Field.field @"incomingAmtMsat") _x- in- if (Prelude.==) _v Data.ProtoLens.fieldDefault then- Data.Monoid.mempty- else- (Data.Monoid.<>)- (Data.ProtoLens.Encoding.Bytes.putVarInt 24)- (Data.ProtoLens.Encoding.Bytes.putVarInt _v))- ((Data.Monoid.<>)- (let- _v- = Lens.Family2.view- (Data.ProtoLens.Field.field @"outgoingAmtMsat") _x- in- if (Prelude.==) _v Data.ProtoLens.fieldDefault then- Data.Monoid.mempty- else- (Data.Monoid.<>)- (Data.ProtoLens.Encoding.Bytes.putVarInt 32)- (Data.ProtoLens.Encoding.Bytes.putVarInt _v))- (Data.ProtoLens.Encoding.Wire.buildFieldSet- (Lens.Family2.view Data.ProtoLens.unknownFields _x)))))-instance Control.DeepSeq.NFData HtlcInfo where- rnf- = \ x__- -> Control.DeepSeq.deepseq- (_HtlcInfo'_unknownFields x__)- (Control.DeepSeq.deepseq- (_HtlcInfo'incomingTimelock x__)- (Control.DeepSeq.deepseq- (_HtlcInfo'outgoingTimelock x__)- (Control.DeepSeq.deepseq- (_HtlcInfo'incomingAmtMsat x__)- (Control.DeepSeq.deepseq (_HtlcInfo'outgoingAmtMsat x__) ()))))-{- | Fields :- - * 'Proto.RouterGrpc_Fields.info' @:: Lens' LinkFailEvent HtlcInfo@- * 'Proto.RouterGrpc_Fields.maybe'info' @:: Lens' LinkFailEvent (Prelude.Maybe HtlcInfo)@- * 'Proto.RouterGrpc_Fields.wireFailure' @:: Lens' LinkFailEvent Proto.LndGrpc.Failure'FailureCode@- * 'Proto.RouterGrpc_Fields.failureDetail' @:: Lens' LinkFailEvent FailureDetail@- * 'Proto.RouterGrpc_Fields.failureString' @:: Lens' LinkFailEvent Data.Text.Text@ -}-data LinkFailEvent- = LinkFailEvent'_constructor {_LinkFailEvent'info :: !(Prelude.Maybe HtlcInfo),- _LinkFailEvent'wireFailure :: !Proto.LndGrpc.Failure'FailureCode,- _LinkFailEvent'failureDetail :: !FailureDetail,- _LinkFailEvent'failureString :: !Data.Text.Text,- _LinkFailEvent'_unknownFields :: !Data.ProtoLens.FieldSet}- deriving stock (Prelude.Eq, Prelude.Ord)-instance Prelude.Show LinkFailEvent where- showsPrec _ __x __s- = Prelude.showChar- '{'- (Prelude.showString- (Data.ProtoLens.showMessageShort __x) (Prelude.showChar '}' __s))-instance Data.ProtoLens.Field.HasField LinkFailEvent "info" HtlcInfo where- fieldOf _- = (Prelude..)- (Lens.Family2.Unchecked.lens- _LinkFailEvent'info (\ x__ y__ -> x__ {_LinkFailEvent'info = y__}))- (Data.ProtoLens.maybeLens Data.ProtoLens.defMessage)-instance Data.ProtoLens.Field.HasField LinkFailEvent "maybe'info" (Prelude.Maybe HtlcInfo) where- fieldOf _- = (Prelude..)- (Lens.Family2.Unchecked.lens- _LinkFailEvent'info (\ x__ y__ -> x__ {_LinkFailEvent'info = y__}))- Prelude.id-instance Data.ProtoLens.Field.HasField LinkFailEvent "wireFailure" Proto.LndGrpc.Failure'FailureCode where- fieldOf _- = (Prelude..)- (Lens.Family2.Unchecked.lens- _LinkFailEvent'wireFailure- (\ x__ y__ -> x__ {_LinkFailEvent'wireFailure = y__}))- Prelude.id-instance Data.ProtoLens.Field.HasField LinkFailEvent "failureDetail" FailureDetail where- fieldOf _- = (Prelude..)- (Lens.Family2.Unchecked.lens- _LinkFailEvent'failureDetail- (\ x__ y__ -> x__ {_LinkFailEvent'failureDetail = y__}))- Prelude.id-instance Data.ProtoLens.Field.HasField LinkFailEvent "failureString" Data.Text.Text where- fieldOf _- = (Prelude..)- (Lens.Family2.Unchecked.lens- _LinkFailEvent'failureString- (\ x__ y__ -> x__ {_LinkFailEvent'failureString = y__}))- Prelude.id-instance Data.ProtoLens.Message LinkFailEvent where- messageName _ = Data.Text.pack "routerrpc.LinkFailEvent"- packedMessageDescriptor _- = "\n\- \\rLinkFailEvent\DC2'\n\- \\EOTinfo\CAN\SOH \SOH(\v2\DC3.routerrpc.HtlcInfoR\EOTinfo\DC2=\n\- \\fwire_failure\CAN\STX \SOH(\SO2\SUB.lnrpc.Failure.FailureCodeR\vwireFailure\DC2?\n\- \\SOfailure_detail\CAN\ETX \SOH(\SO2\CAN.routerrpc.FailureDetailR\rfailureDetail\DC2%\n\- \\SOfailure_string\CAN\EOT \SOH(\tR\rfailureString"- packedFileDescriptor _ = packedFileDescriptor- fieldsByTag- = let- info__field_descriptor- = Data.ProtoLens.FieldDescriptor- "info"- (Data.ProtoLens.MessageField Data.ProtoLens.MessageType ::- Data.ProtoLens.FieldTypeDescriptor HtlcInfo)- (Data.ProtoLens.OptionalField- (Data.ProtoLens.Field.field @"maybe'info")) ::- Data.ProtoLens.FieldDescriptor LinkFailEvent- wireFailure__field_descriptor- = Data.ProtoLens.FieldDescriptor- "wire_failure"- (Data.ProtoLens.ScalarField Data.ProtoLens.EnumField ::- Data.ProtoLens.FieldTypeDescriptor Proto.LndGrpc.Failure'FailureCode)- (Data.ProtoLens.PlainField- Data.ProtoLens.Optional- (Data.ProtoLens.Field.field @"wireFailure")) ::- Data.ProtoLens.FieldDescriptor LinkFailEvent- failureDetail__field_descriptor- = Data.ProtoLens.FieldDescriptor- "failure_detail"- (Data.ProtoLens.ScalarField Data.ProtoLens.EnumField ::- Data.ProtoLens.FieldTypeDescriptor FailureDetail)- (Data.ProtoLens.PlainField- Data.ProtoLens.Optional- (Data.ProtoLens.Field.field @"failureDetail")) ::- Data.ProtoLens.FieldDescriptor LinkFailEvent- failureString__field_descriptor- = Data.ProtoLens.FieldDescriptor- "failure_string"- (Data.ProtoLens.ScalarField Data.ProtoLens.StringField ::- Data.ProtoLens.FieldTypeDescriptor Data.Text.Text)- (Data.ProtoLens.PlainField- Data.ProtoLens.Optional- (Data.ProtoLens.Field.field @"failureString")) ::- Data.ProtoLens.FieldDescriptor LinkFailEvent- in- Data.Map.fromList- [(Data.ProtoLens.Tag 1, info__field_descriptor),- (Data.ProtoLens.Tag 2, wireFailure__field_descriptor),- (Data.ProtoLens.Tag 3, failureDetail__field_descriptor),- (Data.ProtoLens.Tag 4, failureString__field_descriptor)]- unknownFields- = Lens.Family2.Unchecked.lens- _LinkFailEvent'_unknownFields- (\ x__ y__ -> x__ {_LinkFailEvent'_unknownFields = y__})- defMessage- = LinkFailEvent'_constructor- {_LinkFailEvent'info = Prelude.Nothing,- _LinkFailEvent'wireFailure = Data.ProtoLens.fieldDefault,- _LinkFailEvent'failureDetail = Data.ProtoLens.fieldDefault,- _LinkFailEvent'failureString = Data.ProtoLens.fieldDefault,- _LinkFailEvent'_unknownFields = []}- parseMessage- = let- loop ::- LinkFailEvent -> Data.ProtoLens.Encoding.Bytes.Parser LinkFailEvent- loop x- = do end <- Data.ProtoLens.Encoding.Bytes.atEnd- if end then- do (let missing = []- in- if Prelude.null missing then- Prelude.return ()- else- Prelude.fail- ((Prelude.++)- "Missing required fields: "- (Prelude.show (missing :: [Prelude.String]))))- Prelude.return- (Lens.Family2.over- Data.ProtoLens.unknownFields (\ !t -> Prelude.reverse t) x)- else- do tag <- Data.ProtoLens.Encoding.Bytes.getVarInt- case tag of- 10- -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)- (do len <- Data.ProtoLens.Encoding.Bytes.getVarInt- Data.ProtoLens.Encoding.Bytes.isolate- (Prelude.fromIntegral len) Data.ProtoLens.parseMessage)- "info"- loop (Lens.Family2.set (Data.ProtoLens.Field.field @"info") y x)- 16- -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)- (Prelude.fmap- Prelude.toEnum- (Prelude.fmap- Prelude.fromIntegral- Data.ProtoLens.Encoding.Bytes.getVarInt))- "wire_failure"- loop- (Lens.Family2.set (Data.ProtoLens.Field.field @"wireFailure") y x)- 24- -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)- (Prelude.fmap- Prelude.toEnum- (Prelude.fmap- Prelude.fromIntegral- Data.ProtoLens.Encoding.Bytes.getVarInt))- "failure_detail"- loop- (Lens.Family2.set- (Data.ProtoLens.Field.field @"failureDetail") y x)- 34- -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)- (do value <- do len <- Data.ProtoLens.Encoding.Bytes.getVarInt- Data.ProtoLens.Encoding.Bytes.getBytes- (Prelude.fromIntegral len)- Data.ProtoLens.Encoding.Bytes.runEither- (case Data.Text.Encoding.decodeUtf8' value of- (Prelude.Left err)- -> Prelude.Left (Prelude.show err)- (Prelude.Right r) -> Prelude.Right r))- "failure_string"- loop- (Lens.Family2.set- (Data.ProtoLens.Field.field @"failureString") y x)- wire- -> do !y <- Data.ProtoLens.Encoding.Wire.parseTaggedValueFromWire- wire- loop- (Lens.Family2.over- Data.ProtoLens.unknownFields (\ !t -> (:) y t) x)- in- (Data.ProtoLens.Encoding.Bytes.<?>)- (do loop Data.ProtoLens.defMessage) "LinkFailEvent"- buildMessage- = \ _x- -> (Data.Monoid.<>)- (case- Lens.Family2.view (Data.ProtoLens.Field.field @"maybe'info") _x- of- Prelude.Nothing -> Data.Monoid.mempty- (Prelude.Just _v)- -> (Data.Monoid.<>)- (Data.ProtoLens.Encoding.Bytes.putVarInt 10)- ((Prelude..)- (\ bs- -> (Data.Monoid.<>)- (Data.ProtoLens.Encoding.Bytes.putVarInt- (Prelude.fromIntegral (Data.ByteString.length bs)))- (Data.ProtoLens.Encoding.Bytes.putBytes bs))- Data.ProtoLens.encodeMessage- _v))- ((Data.Monoid.<>)- (let- _v- = Lens.Family2.view (Data.ProtoLens.Field.field @"wireFailure") _x- in- if (Prelude.==) _v Data.ProtoLens.fieldDefault then- Data.Monoid.mempty- else- (Data.Monoid.<>)- (Data.ProtoLens.Encoding.Bytes.putVarInt 16)- ((Prelude..)- ((Prelude..)- Data.ProtoLens.Encoding.Bytes.putVarInt Prelude.fromIntegral)- Prelude.fromEnum- _v))- ((Data.Monoid.<>)- (let- _v- = Lens.Family2.view- (Data.ProtoLens.Field.field @"failureDetail") _x- in- if (Prelude.==) _v Data.ProtoLens.fieldDefault then- Data.Monoid.mempty- else- (Data.Monoid.<>)- (Data.ProtoLens.Encoding.Bytes.putVarInt 24)- ((Prelude..)- ((Prelude..)- Data.ProtoLens.Encoding.Bytes.putVarInt Prelude.fromIntegral)- Prelude.fromEnum- _v))- ((Data.Monoid.<>)- (let- _v- = Lens.Family2.view- (Data.ProtoLens.Field.field @"failureString") _x- in- if (Prelude.==) _v Data.ProtoLens.fieldDefault then- Data.Monoid.mempty- else- (Data.Monoid.<>)- (Data.ProtoLens.Encoding.Bytes.putVarInt 34)- ((Prelude..)- (\ bs- -> (Data.Monoid.<>)- (Data.ProtoLens.Encoding.Bytes.putVarInt- (Prelude.fromIntegral (Data.ByteString.length bs)))- (Data.ProtoLens.Encoding.Bytes.putBytes bs))- Data.Text.Encoding.encodeUtf8- _v))- (Data.ProtoLens.Encoding.Wire.buildFieldSet- (Lens.Family2.view Data.ProtoLens.unknownFields _x)))))-instance Control.DeepSeq.NFData LinkFailEvent where- rnf- = \ x__- -> Control.DeepSeq.deepseq- (_LinkFailEvent'_unknownFields x__)- (Control.DeepSeq.deepseq- (_LinkFailEvent'info x__)- (Control.DeepSeq.deepseq- (_LinkFailEvent'wireFailure x__)- (Control.DeepSeq.deepseq- (_LinkFailEvent'failureDetail x__)- (Control.DeepSeq.deepseq (_LinkFailEvent'failureString x__) ()))))-{- | Fields :- - * 'Proto.RouterGrpc_Fields.halfLifeSeconds' @:: Lens' MissionControlConfig Data.Word.Word64@- * 'Proto.RouterGrpc_Fields.hopProbability' @:: Lens' MissionControlConfig Prelude.Float@- * 'Proto.RouterGrpc_Fields.weight' @:: Lens' MissionControlConfig Prelude.Float@- * 'Proto.RouterGrpc_Fields.maximumPaymentResults' @:: Lens' MissionControlConfig Data.Word.Word32@- * 'Proto.RouterGrpc_Fields.minimumFailureRelaxInterval' @:: Lens' MissionControlConfig Data.Word.Word64@ -}-data MissionControlConfig- = MissionControlConfig'_constructor {_MissionControlConfig'halfLifeSeconds :: !Data.Word.Word64,- _MissionControlConfig'hopProbability :: !Prelude.Float,- _MissionControlConfig'weight :: !Prelude.Float,- _MissionControlConfig'maximumPaymentResults :: !Data.Word.Word32,- _MissionControlConfig'minimumFailureRelaxInterval :: !Data.Word.Word64,- _MissionControlConfig'_unknownFields :: !Data.ProtoLens.FieldSet}- deriving stock (Prelude.Eq, Prelude.Ord)-instance Prelude.Show MissionControlConfig where- showsPrec _ __x __s- = Prelude.showChar- '{'- (Prelude.showString- (Data.ProtoLens.showMessageShort __x) (Prelude.showChar '}' __s))-instance Data.ProtoLens.Field.HasField MissionControlConfig "halfLifeSeconds" Data.Word.Word64 where- fieldOf _- = (Prelude..)- (Lens.Family2.Unchecked.lens- _MissionControlConfig'halfLifeSeconds- (\ x__ y__ -> x__ {_MissionControlConfig'halfLifeSeconds = y__}))- Prelude.id-instance Data.ProtoLens.Field.HasField MissionControlConfig "hopProbability" Prelude.Float where- fieldOf _- = (Prelude..)- (Lens.Family2.Unchecked.lens- _MissionControlConfig'hopProbability- (\ x__ y__ -> x__ {_MissionControlConfig'hopProbability = y__}))- Prelude.id-instance Data.ProtoLens.Field.HasField MissionControlConfig "weight" Prelude.Float where- fieldOf _- = (Prelude..)- (Lens.Family2.Unchecked.lens- _MissionControlConfig'weight- (\ x__ y__ -> x__ {_MissionControlConfig'weight = y__}))- Prelude.id-instance Data.ProtoLens.Field.HasField MissionControlConfig "maximumPaymentResults" Data.Word.Word32 where- fieldOf _- = (Prelude..)- (Lens.Family2.Unchecked.lens- _MissionControlConfig'maximumPaymentResults- (\ x__ y__- -> x__ {_MissionControlConfig'maximumPaymentResults = y__}))- Prelude.id-instance Data.ProtoLens.Field.HasField MissionControlConfig "minimumFailureRelaxInterval" Data.Word.Word64 where- fieldOf _- = (Prelude..)- (Lens.Family2.Unchecked.lens- _MissionControlConfig'minimumFailureRelaxInterval- (\ x__ y__- -> x__ {_MissionControlConfig'minimumFailureRelaxInterval = y__}))- Prelude.id-instance Data.ProtoLens.Message MissionControlConfig where- messageName _ = Data.Text.pack "routerrpc.MissionControlConfig"- packedMessageDescriptor _- = "\n\- \\DC4MissionControlConfig\DC2*\n\- \\DC1half_life_seconds\CAN\SOH \SOH(\EOTR\SIhalfLifeSeconds\DC2'\n\- \\SIhop_probability\CAN\STX \SOH(\STXR\SOhopProbability\DC2\SYN\n\- \\ACKweight\CAN\ETX \SOH(\STXR\ACKweight\DC26\n\- \\ETBmaximum_payment_results\CAN\EOT \SOH(\rR\NAKmaximumPaymentResults\DC2C\n\- \\RSminimum_failure_relax_interval\CAN\ENQ \SOH(\EOTR\ESCminimumFailureRelaxInterval"- packedFileDescriptor _ = packedFileDescriptor- fieldsByTag- = let- halfLifeSeconds__field_descriptor- = Data.ProtoLens.FieldDescriptor- "half_life_seconds"- (Data.ProtoLens.ScalarField Data.ProtoLens.UInt64Field ::- Data.ProtoLens.FieldTypeDescriptor Data.Word.Word64)- (Data.ProtoLens.PlainField- Data.ProtoLens.Optional- (Data.ProtoLens.Field.field @"halfLifeSeconds")) ::- Data.ProtoLens.FieldDescriptor MissionControlConfig- hopProbability__field_descriptor- = Data.ProtoLens.FieldDescriptor- "hop_probability"- (Data.ProtoLens.ScalarField Data.ProtoLens.FloatField ::- Data.ProtoLens.FieldTypeDescriptor Prelude.Float)- (Data.ProtoLens.PlainField- Data.ProtoLens.Optional- (Data.ProtoLens.Field.field @"hopProbability")) ::- Data.ProtoLens.FieldDescriptor MissionControlConfig- weight__field_descriptor- = Data.ProtoLens.FieldDescriptor- "weight"- (Data.ProtoLens.ScalarField Data.ProtoLens.FloatField ::- Data.ProtoLens.FieldTypeDescriptor Prelude.Float)- (Data.ProtoLens.PlainField- Data.ProtoLens.Optional (Data.ProtoLens.Field.field @"weight")) ::- Data.ProtoLens.FieldDescriptor MissionControlConfig- maximumPaymentResults__field_descriptor- = Data.ProtoLens.FieldDescriptor- "maximum_payment_results"- (Data.ProtoLens.ScalarField Data.ProtoLens.UInt32Field ::- Data.ProtoLens.FieldTypeDescriptor Data.Word.Word32)- (Data.ProtoLens.PlainField- Data.ProtoLens.Optional- (Data.ProtoLens.Field.field @"maximumPaymentResults")) ::- Data.ProtoLens.FieldDescriptor MissionControlConfig- minimumFailureRelaxInterval__field_descriptor- = Data.ProtoLens.FieldDescriptor- "minimum_failure_relax_interval"- (Data.ProtoLens.ScalarField Data.ProtoLens.UInt64Field ::- Data.ProtoLens.FieldTypeDescriptor Data.Word.Word64)- (Data.ProtoLens.PlainField- Data.ProtoLens.Optional- (Data.ProtoLens.Field.field @"minimumFailureRelaxInterval")) ::- Data.ProtoLens.FieldDescriptor MissionControlConfig- in- Data.Map.fromList- [(Data.ProtoLens.Tag 1, halfLifeSeconds__field_descriptor),- (Data.ProtoLens.Tag 2, hopProbability__field_descriptor),- (Data.ProtoLens.Tag 3, weight__field_descriptor),- (Data.ProtoLens.Tag 4, maximumPaymentResults__field_descriptor),- (Data.ProtoLens.Tag 5, - minimumFailureRelaxInterval__field_descriptor)]- unknownFields- = Lens.Family2.Unchecked.lens- _MissionControlConfig'_unknownFields- (\ x__ y__ -> x__ {_MissionControlConfig'_unknownFields = y__})- defMessage- = MissionControlConfig'_constructor- {_MissionControlConfig'halfLifeSeconds = Data.ProtoLens.fieldDefault,- _MissionControlConfig'hopProbability = Data.ProtoLens.fieldDefault,- _MissionControlConfig'weight = Data.ProtoLens.fieldDefault,- _MissionControlConfig'maximumPaymentResults = Data.ProtoLens.fieldDefault,- _MissionControlConfig'minimumFailureRelaxInterval = Data.ProtoLens.fieldDefault,- _MissionControlConfig'_unknownFields = []}- parseMessage- = let- loop ::- MissionControlConfig- -> Data.ProtoLens.Encoding.Bytes.Parser MissionControlConfig- loop x- = do end <- Data.ProtoLens.Encoding.Bytes.atEnd- if end then- do (let missing = []- in- if Prelude.null missing then- Prelude.return ()- else- Prelude.fail- ((Prelude.++)- "Missing required fields: "- (Prelude.show (missing :: [Prelude.String]))))- Prelude.return- (Lens.Family2.over- Data.ProtoLens.unknownFields (\ !t -> Prelude.reverse t) x)- else- do tag <- Data.ProtoLens.Encoding.Bytes.getVarInt- case tag of- 8 -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)- Data.ProtoLens.Encoding.Bytes.getVarInt "half_life_seconds"- loop- (Lens.Family2.set- (Data.ProtoLens.Field.field @"halfLifeSeconds") y x)- 21- -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)- (Prelude.fmap- Data.ProtoLens.Encoding.Bytes.wordToFloat- Data.ProtoLens.Encoding.Bytes.getFixed32)- "hop_probability"- loop- (Lens.Family2.set- (Data.ProtoLens.Field.field @"hopProbability") y x)- 29- -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)- (Prelude.fmap- Data.ProtoLens.Encoding.Bytes.wordToFloat- Data.ProtoLens.Encoding.Bytes.getFixed32)- "weight"- loop (Lens.Family2.set (Data.ProtoLens.Field.field @"weight") y x)- 32- -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)- (Prelude.fmap- Prelude.fromIntegral- Data.ProtoLens.Encoding.Bytes.getVarInt)- "maximum_payment_results"- loop- (Lens.Family2.set- (Data.ProtoLens.Field.field @"maximumPaymentResults") y x)- 40- -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)- Data.ProtoLens.Encoding.Bytes.getVarInt- "minimum_failure_relax_interval"- loop- (Lens.Family2.set- (Data.ProtoLens.Field.field @"minimumFailureRelaxInterval")- y- x)- wire- -> do !y <- Data.ProtoLens.Encoding.Wire.parseTaggedValueFromWire- wire- loop- (Lens.Family2.over- Data.ProtoLens.unknownFields (\ !t -> (:) y t) x)- in- (Data.ProtoLens.Encoding.Bytes.<?>)- (do loop Data.ProtoLens.defMessage) "MissionControlConfig"- buildMessage- = \ _x- -> (Data.Monoid.<>)- (let- _v- = Lens.Family2.view- (Data.ProtoLens.Field.field @"halfLifeSeconds") _x- in- if (Prelude.==) _v Data.ProtoLens.fieldDefault then- Data.Monoid.mempty- else- (Data.Monoid.<>)- (Data.ProtoLens.Encoding.Bytes.putVarInt 8)- (Data.ProtoLens.Encoding.Bytes.putVarInt _v))- ((Data.Monoid.<>)- (let- _v- = Lens.Family2.view- (Data.ProtoLens.Field.field @"hopProbability") _x- in- if (Prelude.==) _v Data.ProtoLens.fieldDefault then- Data.Monoid.mempty- else- (Data.Monoid.<>)- (Data.ProtoLens.Encoding.Bytes.putVarInt 21)- ((Prelude..)- Data.ProtoLens.Encoding.Bytes.putFixed32- Data.ProtoLens.Encoding.Bytes.floatToWord- _v))- ((Data.Monoid.<>)- (let- _v = Lens.Family2.view (Data.ProtoLens.Field.field @"weight") _x- in- if (Prelude.==) _v Data.ProtoLens.fieldDefault then- Data.Monoid.mempty- else- (Data.Monoid.<>)- (Data.ProtoLens.Encoding.Bytes.putVarInt 29)- ((Prelude..)- Data.ProtoLens.Encoding.Bytes.putFixed32- Data.ProtoLens.Encoding.Bytes.floatToWord- _v))- ((Data.Monoid.<>)- (let- _v- = Lens.Family2.view- (Data.ProtoLens.Field.field @"maximumPaymentResults") _x- in- if (Prelude.==) _v Data.ProtoLens.fieldDefault then- Data.Monoid.mempty- else- (Data.Monoid.<>)- (Data.ProtoLens.Encoding.Bytes.putVarInt 32)- ((Prelude..)- Data.ProtoLens.Encoding.Bytes.putVarInt Prelude.fromIntegral _v))- ((Data.Monoid.<>)- (let- _v- = Lens.Family2.view- (Data.ProtoLens.Field.field @"minimumFailureRelaxInterval") _x- in- if (Prelude.==) _v Data.ProtoLens.fieldDefault then- Data.Monoid.mempty- else- (Data.Monoid.<>)- (Data.ProtoLens.Encoding.Bytes.putVarInt 40)- (Data.ProtoLens.Encoding.Bytes.putVarInt _v))- (Data.ProtoLens.Encoding.Wire.buildFieldSet- (Lens.Family2.view Data.ProtoLens.unknownFields _x))))))-instance Control.DeepSeq.NFData MissionControlConfig where- rnf- = \ x__- -> Control.DeepSeq.deepseq- (_MissionControlConfig'_unknownFields x__)- (Control.DeepSeq.deepseq- (_MissionControlConfig'halfLifeSeconds x__)- (Control.DeepSeq.deepseq- (_MissionControlConfig'hopProbability x__)- (Control.DeepSeq.deepseq- (_MissionControlConfig'weight x__)- (Control.DeepSeq.deepseq- (_MissionControlConfig'maximumPaymentResults x__)- (Control.DeepSeq.deepseq- (_MissionControlConfig'minimumFailureRelaxInterval x__) ())))))-{- | Fields :- - * 'Proto.RouterGrpc_Fields.failTime' @:: Lens' PairData Data.Int.Int64@- * 'Proto.RouterGrpc_Fields.failAmtSat' @:: Lens' PairData Data.Int.Int64@- * 'Proto.RouterGrpc_Fields.failAmtMsat' @:: Lens' PairData Data.Int.Int64@- * 'Proto.RouterGrpc_Fields.successTime' @:: Lens' PairData Data.Int.Int64@- * 'Proto.RouterGrpc_Fields.successAmtSat' @:: Lens' PairData Data.Int.Int64@- * 'Proto.RouterGrpc_Fields.successAmtMsat' @:: Lens' PairData Data.Int.Int64@ -}-data PairData- = PairData'_constructor {_PairData'failTime :: !Data.Int.Int64,- _PairData'failAmtSat :: !Data.Int.Int64,- _PairData'failAmtMsat :: !Data.Int.Int64,- _PairData'successTime :: !Data.Int.Int64,- _PairData'successAmtSat :: !Data.Int.Int64,- _PairData'successAmtMsat :: !Data.Int.Int64,- _PairData'_unknownFields :: !Data.ProtoLens.FieldSet}- deriving stock (Prelude.Eq, Prelude.Ord)-instance Prelude.Show PairData where- showsPrec _ __x __s- = Prelude.showChar- '{'- (Prelude.showString- (Data.ProtoLens.showMessageShort __x) (Prelude.showChar '}' __s))-instance Data.ProtoLens.Field.HasField PairData "failTime" Data.Int.Int64 where- fieldOf _- = (Prelude..)- (Lens.Family2.Unchecked.lens- _PairData'failTime (\ x__ y__ -> x__ {_PairData'failTime = y__}))- Prelude.id-instance Data.ProtoLens.Field.HasField PairData "failAmtSat" Data.Int.Int64 where- fieldOf _- = (Prelude..)- (Lens.Family2.Unchecked.lens- _PairData'failAmtSat- (\ x__ y__ -> x__ {_PairData'failAmtSat = y__}))- Prelude.id-instance Data.ProtoLens.Field.HasField PairData "failAmtMsat" Data.Int.Int64 where- fieldOf _- = (Prelude..)- (Lens.Family2.Unchecked.lens- _PairData'failAmtMsat- (\ x__ y__ -> x__ {_PairData'failAmtMsat = y__}))- Prelude.id-instance Data.ProtoLens.Field.HasField PairData "successTime" Data.Int.Int64 where- fieldOf _- = (Prelude..)- (Lens.Family2.Unchecked.lens- _PairData'successTime- (\ x__ y__ -> x__ {_PairData'successTime = y__}))- Prelude.id-instance Data.ProtoLens.Field.HasField PairData "successAmtSat" Data.Int.Int64 where- fieldOf _- = (Prelude..)- (Lens.Family2.Unchecked.lens- _PairData'successAmtSat- (\ x__ y__ -> x__ {_PairData'successAmtSat = y__}))- Prelude.id-instance Data.ProtoLens.Field.HasField PairData "successAmtMsat" Data.Int.Int64 where- fieldOf _- = (Prelude..)- (Lens.Family2.Unchecked.lens- _PairData'successAmtMsat- (\ x__ y__ -> x__ {_PairData'successAmtMsat = y__}))- Prelude.id-instance Data.ProtoLens.Message PairData where- messageName _ = Data.Text.pack "routerrpc.PairData"- packedMessageDescriptor _- = "\n\- \\bPairData\DC2\ESC\n\- \\tfail_time\CAN\SOH \SOH(\ETXR\bfailTime\DC2 \n\- \\ffail_amt_sat\CAN\STX \SOH(\ETXR\n\- \failAmtSat\DC2\"\n\- \\rfail_amt_msat\CAN\EOT \SOH(\ETXR\vfailAmtMsat\DC2!\n\- \\fsuccess_time\CAN\ENQ \SOH(\ETXR\vsuccessTime\DC2&\n\- \\SIsuccess_amt_sat\CAN\ACK \SOH(\ETXR\rsuccessAmtSat\DC2(\n\- \\DLEsuccess_amt_msat\CAN\a \SOH(\ETXR\SOsuccessAmtMsatJ\EOT\b\ETX\DLE\EOT"- packedFileDescriptor _ = packedFileDescriptor- fieldsByTag- = let- failTime__field_descriptor- = Data.ProtoLens.FieldDescriptor- "fail_time"- (Data.ProtoLens.ScalarField Data.ProtoLens.Int64Field ::- Data.ProtoLens.FieldTypeDescriptor Data.Int.Int64)- (Data.ProtoLens.PlainField- Data.ProtoLens.Optional- (Data.ProtoLens.Field.field @"failTime")) ::- Data.ProtoLens.FieldDescriptor PairData- failAmtSat__field_descriptor- = Data.ProtoLens.FieldDescriptor- "fail_amt_sat"- (Data.ProtoLens.ScalarField Data.ProtoLens.Int64Field ::- Data.ProtoLens.FieldTypeDescriptor Data.Int.Int64)- (Data.ProtoLens.PlainField- Data.ProtoLens.Optional- (Data.ProtoLens.Field.field @"failAmtSat")) ::- Data.ProtoLens.FieldDescriptor PairData- failAmtMsat__field_descriptor- = Data.ProtoLens.FieldDescriptor- "fail_amt_msat"- (Data.ProtoLens.ScalarField Data.ProtoLens.Int64Field ::- Data.ProtoLens.FieldTypeDescriptor Data.Int.Int64)- (Data.ProtoLens.PlainField- Data.ProtoLens.Optional- (Data.ProtoLens.Field.field @"failAmtMsat")) ::- Data.ProtoLens.FieldDescriptor PairData- successTime__field_descriptor- = Data.ProtoLens.FieldDescriptor- "success_time"- (Data.ProtoLens.ScalarField Data.ProtoLens.Int64Field ::- Data.ProtoLens.FieldTypeDescriptor Data.Int.Int64)- (Data.ProtoLens.PlainField- Data.ProtoLens.Optional- (Data.ProtoLens.Field.field @"successTime")) ::- Data.ProtoLens.FieldDescriptor PairData- successAmtSat__field_descriptor- = Data.ProtoLens.FieldDescriptor- "success_amt_sat"- (Data.ProtoLens.ScalarField Data.ProtoLens.Int64Field ::- Data.ProtoLens.FieldTypeDescriptor Data.Int.Int64)- (Data.ProtoLens.PlainField- Data.ProtoLens.Optional- (Data.ProtoLens.Field.field @"successAmtSat")) ::- Data.ProtoLens.FieldDescriptor PairData- successAmtMsat__field_descriptor- = Data.ProtoLens.FieldDescriptor- "success_amt_msat"- (Data.ProtoLens.ScalarField Data.ProtoLens.Int64Field ::- Data.ProtoLens.FieldTypeDescriptor Data.Int.Int64)- (Data.ProtoLens.PlainField- Data.ProtoLens.Optional- (Data.ProtoLens.Field.field @"successAmtMsat")) ::- Data.ProtoLens.FieldDescriptor PairData- in- Data.Map.fromList- [(Data.ProtoLens.Tag 1, failTime__field_descriptor),- (Data.ProtoLens.Tag 2, failAmtSat__field_descriptor),- (Data.ProtoLens.Tag 4, failAmtMsat__field_descriptor),- (Data.ProtoLens.Tag 5, successTime__field_descriptor),- (Data.ProtoLens.Tag 6, successAmtSat__field_descriptor),- (Data.ProtoLens.Tag 7, successAmtMsat__field_descriptor)]- unknownFields- = Lens.Family2.Unchecked.lens- _PairData'_unknownFields- (\ x__ y__ -> x__ {_PairData'_unknownFields = y__})- defMessage- = PairData'_constructor- {_PairData'failTime = Data.ProtoLens.fieldDefault,- _PairData'failAmtSat = Data.ProtoLens.fieldDefault,- _PairData'failAmtMsat = Data.ProtoLens.fieldDefault,- _PairData'successTime = Data.ProtoLens.fieldDefault,- _PairData'successAmtSat = Data.ProtoLens.fieldDefault,- _PairData'successAmtMsat = Data.ProtoLens.fieldDefault,- _PairData'_unknownFields = []}- parseMessage- = let- loop :: PairData -> Data.ProtoLens.Encoding.Bytes.Parser PairData- loop x- = do end <- Data.ProtoLens.Encoding.Bytes.atEnd- if end then- do (let missing = []- in- if Prelude.null missing then- Prelude.return ()- else- Prelude.fail- ((Prelude.++)- "Missing required fields: "- (Prelude.show (missing :: [Prelude.String]))))- Prelude.return- (Lens.Family2.over- Data.ProtoLens.unknownFields (\ !t -> Prelude.reverse t) x)- else- do tag <- Data.ProtoLens.Encoding.Bytes.getVarInt- case tag of- 8 -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)- (Prelude.fmap- Prelude.fromIntegral- Data.ProtoLens.Encoding.Bytes.getVarInt)- "fail_time"- loop- (Lens.Family2.set (Data.ProtoLens.Field.field @"failTime") y x)- 16- -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)- (Prelude.fmap- Prelude.fromIntegral- Data.ProtoLens.Encoding.Bytes.getVarInt)- "fail_amt_sat"- loop- (Lens.Family2.set (Data.ProtoLens.Field.field @"failAmtSat") y x)- 32- -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)- (Prelude.fmap- Prelude.fromIntegral- Data.ProtoLens.Encoding.Bytes.getVarInt)- "fail_amt_msat"- loop- (Lens.Family2.set (Data.ProtoLens.Field.field @"failAmtMsat") y x)- 40- -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)- (Prelude.fmap- Prelude.fromIntegral- Data.ProtoLens.Encoding.Bytes.getVarInt)- "success_time"- loop- (Lens.Family2.set (Data.ProtoLens.Field.field @"successTime") y x)- 48- -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)- (Prelude.fmap- Prelude.fromIntegral- Data.ProtoLens.Encoding.Bytes.getVarInt)- "success_amt_sat"- loop- (Lens.Family2.set- (Data.ProtoLens.Field.field @"successAmtSat") y x)- 56- -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)- (Prelude.fmap- Prelude.fromIntegral- Data.ProtoLens.Encoding.Bytes.getVarInt)- "success_amt_msat"- loop- (Lens.Family2.set- (Data.ProtoLens.Field.field @"successAmtMsat") y x)- wire- -> do !y <- Data.ProtoLens.Encoding.Wire.parseTaggedValueFromWire- wire- loop- (Lens.Family2.over- Data.ProtoLens.unknownFields (\ !t -> (:) y t) x)- in- (Data.ProtoLens.Encoding.Bytes.<?>)- (do loop Data.ProtoLens.defMessage) "PairData"- buildMessage- = \ _x- -> (Data.Monoid.<>)- (let- _v = Lens.Family2.view (Data.ProtoLens.Field.field @"failTime") _x- in- if (Prelude.==) _v Data.ProtoLens.fieldDefault then- Data.Monoid.mempty- else- (Data.Monoid.<>)- (Data.ProtoLens.Encoding.Bytes.putVarInt 8)- ((Prelude..)- Data.ProtoLens.Encoding.Bytes.putVarInt Prelude.fromIntegral _v))- ((Data.Monoid.<>)- (let- _v- = Lens.Family2.view (Data.ProtoLens.Field.field @"failAmtSat") _x- in- if (Prelude.==) _v Data.ProtoLens.fieldDefault then- Data.Monoid.mempty- else- (Data.Monoid.<>)- (Data.ProtoLens.Encoding.Bytes.putVarInt 16)- ((Prelude..)- Data.ProtoLens.Encoding.Bytes.putVarInt Prelude.fromIntegral _v))- ((Data.Monoid.<>)- (let- _v- = Lens.Family2.view (Data.ProtoLens.Field.field @"failAmtMsat") _x- in- if (Prelude.==) _v Data.ProtoLens.fieldDefault then- Data.Monoid.mempty- else- (Data.Monoid.<>)- (Data.ProtoLens.Encoding.Bytes.putVarInt 32)- ((Prelude..)- Data.ProtoLens.Encoding.Bytes.putVarInt Prelude.fromIntegral _v))- ((Data.Monoid.<>)- (let- _v- = Lens.Family2.view (Data.ProtoLens.Field.field @"successTime") _x- in- if (Prelude.==) _v Data.ProtoLens.fieldDefault then- Data.Monoid.mempty- else- (Data.Monoid.<>)- (Data.ProtoLens.Encoding.Bytes.putVarInt 40)- ((Prelude..)- Data.ProtoLens.Encoding.Bytes.putVarInt Prelude.fromIntegral _v))- ((Data.Monoid.<>)- (let- _v- = Lens.Family2.view- (Data.ProtoLens.Field.field @"successAmtSat") _x- in- if (Prelude.==) _v Data.ProtoLens.fieldDefault then- Data.Monoid.mempty- else- (Data.Monoid.<>)- (Data.ProtoLens.Encoding.Bytes.putVarInt 48)- ((Prelude..)- Data.ProtoLens.Encoding.Bytes.putVarInt- Prelude.fromIntegral- _v))- ((Data.Monoid.<>)- (let- _v- = Lens.Family2.view- (Data.ProtoLens.Field.field @"successAmtMsat") _x- in- if (Prelude.==) _v Data.ProtoLens.fieldDefault then- Data.Monoid.mempty- else- (Data.Monoid.<>)- (Data.ProtoLens.Encoding.Bytes.putVarInt 56)- ((Prelude..)- Data.ProtoLens.Encoding.Bytes.putVarInt- Prelude.fromIntegral- _v))- (Data.ProtoLens.Encoding.Wire.buildFieldSet- (Lens.Family2.view Data.ProtoLens.unknownFields _x)))))))-instance Control.DeepSeq.NFData PairData where- rnf- = \ x__- -> Control.DeepSeq.deepseq- (_PairData'_unknownFields x__)- (Control.DeepSeq.deepseq- (_PairData'failTime x__)- (Control.DeepSeq.deepseq- (_PairData'failAmtSat x__)- (Control.DeepSeq.deepseq- (_PairData'failAmtMsat x__)- (Control.DeepSeq.deepseq- (_PairData'successTime x__)- (Control.DeepSeq.deepseq- (_PairData'successAmtSat x__)- (Control.DeepSeq.deepseq (_PairData'successAmtMsat x__) ()))))))-{- | Fields :- - * 'Proto.RouterGrpc_Fields.nodeFrom' @:: Lens' PairHistory Data.ByteString.ByteString@- * 'Proto.RouterGrpc_Fields.nodeTo' @:: Lens' PairHistory Data.ByteString.ByteString@- * 'Proto.RouterGrpc_Fields.history' @:: Lens' PairHistory PairData@- * 'Proto.RouterGrpc_Fields.maybe'history' @:: Lens' PairHistory (Prelude.Maybe PairData)@ -}-data PairHistory- = PairHistory'_constructor {_PairHistory'nodeFrom :: !Data.ByteString.ByteString,- _PairHistory'nodeTo :: !Data.ByteString.ByteString,- _PairHistory'history :: !(Prelude.Maybe PairData),- _PairHistory'_unknownFields :: !Data.ProtoLens.FieldSet}- deriving stock (Prelude.Eq, Prelude.Ord)-instance Prelude.Show PairHistory where- showsPrec _ __x __s- = Prelude.showChar- '{'- (Prelude.showString- (Data.ProtoLens.showMessageShort __x) (Prelude.showChar '}' __s))-instance Data.ProtoLens.Field.HasField PairHistory "nodeFrom" Data.ByteString.ByteString where- fieldOf _- = (Prelude..)- (Lens.Family2.Unchecked.lens- _PairHistory'nodeFrom- (\ x__ y__ -> x__ {_PairHistory'nodeFrom = y__}))- Prelude.id-instance Data.ProtoLens.Field.HasField PairHistory "nodeTo" Data.ByteString.ByteString where- fieldOf _- = (Prelude..)- (Lens.Family2.Unchecked.lens- _PairHistory'nodeTo (\ x__ y__ -> x__ {_PairHistory'nodeTo = y__}))- Prelude.id-instance Data.ProtoLens.Field.HasField PairHistory "history" PairData where- fieldOf _- = (Prelude..)- (Lens.Family2.Unchecked.lens- _PairHistory'history- (\ x__ y__ -> x__ {_PairHistory'history = y__}))- (Data.ProtoLens.maybeLens Data.ProtoLens.defMessage)-instance Data.ProtoLens.Field.HasField PairHistory "maybe'history" (Prelude.Maybe PairData) where- fieldOf _- = (Prelude..)- (Lens.Family2.Unchecked.lens- _PairHistory'history- (\ x__ y__ -> x__ {_PairHistory'history = y__}))- Prelude.id-instance Data.ProtoLens.Message PairHistory where- messageName _ = Data.Text.pack "routerrpc.PairHistory"- packedMessageDescriptor _- = "\n\- \\vPairHistory\DC2\ESC\n\- \\tnode_from\CAN\SOH \SOH(\fR\bnodeFrom\DC2\ETB\n\- \\anode_to\CAN\STX \SOH(\fR\ACKnodeTo\DC2-\n\- \\ahistory\CAN\a \SOH(\v2\DC3.routerrpc.PairDataR\ahistoryJ\EOT\b\ETX\DLE\EOTJ\EOT\b\EOT\DLE\ENQJ\EOT\b\ENQ\DLE\ACKJ\EOT\b\ACK\DLE\a"- packedFileDescriptor _ = packedFileDescriptor- fieldsByTag- = let- nodeFrom__field_descriptor- = Data.ProtoLens.FieldDescriptor- "node_from"- (Data.ProtoLens.ScalarField Data.ProtoLens.BytesField ::- Data.ProtoLens.FieldTypeDescriptor Data.ByteString.ByteString)- (Data.ProtoLens.PlainField- Data.ProtoLens.Optional- (Data.ProtoLens.Field.field @"nodeFrom")) ::- Data.ProtoLens.FieldDescriptor PairHistory- nodeTo__field_descriptor- = Data.ProtoLens.FieldDescriptor- "node_to"- (Data.ProtoLens.ScalarField Data.ProtoLens.BytesField ::- Data.ProtoLens.FieldTypeDescriptor Data.ByteString.ByteString)- (Data.ProtoLens.PlainField- Data.ProtoLens.Optional (Data.ProtoLens.Field.field @"nodeTo")) ::- Data.ProtoLens.FieldDescriptor PairHistory- history__field_descriptor- = Data.ProtoLens.FieldDescriptor- "history"- (Data.ProtoLens.MessageField Data.ProtoLens.MessageType ::- Data.ProtoLens.FieldTypeDescriptor PairData)- (Data.ProtoLens.OptionalField- (Data.ProtoLens.Field.field @"maybe'history")) ::- Data.ProtoLens.FieldDescriptor PairHistory- in- Data.Map.fromList- [(Data.ProtoLens.Tag 1, nodeFrom__field_descriptor),- (Data.ProtoLens.Tag 2, nodeTo__field_descriptor),- (Data.ProtoLens.Tag 7, history__field_descriptor)]- unknownFields- = Lens.Family2.Unchecked.lens- _PairHistory'_unknownFields- (\ x__ y__ -> x__ {_PairHistory'_unknownFields = y__})- defMessage- = PairHistory'_constructor- {_PairHistory'nodeFrom = Data.ProtoLens.fieldDefault,- _PairHistory'nodeTo = Data.ProtoLens.fieldDefault,- _PairHistory'history = Prelude.Nothing,- _PairHistory'_unknownFields = []}- parseMessage- = let- loop ::- PairHistory -> Data.ProtoLens.Encoding.Bytes.Parser PairHistory- loop x- = do end <- Data.ProtoLens.Encoding.Bytes.atEnd- if end then- do (let missing = []- in- if Prelude.null missing then- Prelude.return ()- else- Prelude.fail- ((Prelude.++)- "Missing required fields: "- (Prelude.show (missing :: [Prelude.String]))))- Prelude.return- (Lens.Family2.over- Data.ProtoLens.unknownFields (\ !t -> Prelude.reverse t) x)- else- do tag <- Data.ProtoLens.Encoding.Bytes.getVarInt- case tag of- 10- -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)- (do len <- Data.ProtoLens.Encoding.Bytes.getVarInt- Data.ProtoLens.Encoding.Bytes.getBytes- (Prelude.fromIntegral len))- "node_from"- loop- (Lens.Family2.set (Data.ProtoLens.Field.field @"nodeFrom") y x)- 18- -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)- (do len <- Data.ProtoLens.Encoding.Bytes.getVarInt- Data.ProtoLens.Encoding.Bytes.getBytes- (Prelude.fromIntegral len))- "node_to"- loop (Lens.Family2.set (Data.ProtoLens.Field.field @"nodeTo") y x)- 58- -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)- (do len <- Data.ProtoLens.Encoding.Bytes.getVarInt- Data.ProtoLens.Encoding.Bytes.isolate- (Prelude.fromIntegral len) Data.ProtoLens.parseMessage)- "history"- loop (Lens.Family2.set (Data.ProtoLens.Field.field @"history") y x)- wire- -> do !y <- Data.ProtoLens.Encoding.Wire.parseTaggedValueFromWire- wire- loop- (Lens.Family2.over- Data.ProtoLens.unknownFields (\ !t -> (:) y t) x)- in- (Data.ProtoLens.Encoding.Bytes.<?>)- (do loop Data.ProtoLens.defMessage) "PairHistory"- buildMessage- = \ _x- -> (Data.Monoid.<>)- (let- _v = Lens.Family2.view (Data.ProtoLens.Field.field @"nodeFrom") _x- in- if (Prelude.==) _v Data.ProtoLens.fieldDefault then- Data.Monoid.mempty- else- (Data.Monoid.<>)- (Data.ProtoLens.Encoding.Bytes.putVarInt 10)- ((\ bs- -> (Data.Monoid.<>)- (Data.ProtoLens.Encoding.Bytes.putVarInt- (Prelude.fromIntegral (Data.ByteString.length bs)))- (Data.ProtoLens.Encoding.Bytes.putBytes bs))- _v))- ((Data.Monoid.<>)- (let- _v = Lens.Family2.view (Data.ProtoLens.Field.field @"nodeTo") _x- in- if (Prelude.==) _v Data.ProtoLens.fieldDefault then- Data.Monoid.mempty- else- (Data.Monoid.<>)- (Data.ProtoLens.Encoding.Bytes.putVarInt 18)- ((\ bs- -> (Data.Monoid.<>)- (Data.ProtoLens.Encoding.Bytes.putVarInt- (Prelude.fromIntegral (Data.ByteString.length bs)))- (Data.ProtoLens.Encoding.Bytes.putBytes bs))- _v))- ((Data.Monoid.<>)- (case- Lens.Family2.view (Data.ProtoLens.Field.field @"maybe'history") _x- of- Prelude.Nothing -> Data.Monoid.mempty- (Prelude.Just _v)- -> (Data.Monoid.<>)- (Data.ProtoLens.Encoding.Bytes.putVarInt 58)- ((Prelude..)- (\ bs- -> (Data.Monoid.<>)- (Data.ProtoLens.Encoding.Bytes.putVarInt- (Prelude.fromIntegral (Data.ByteString.length bs)))- (Data.ProtoLens.Encoding.Bytes.putBytes bs))- Data.ProtoLens.encodeMessage- _v))- (Data.ProtoLens.Encoding.Wire.buildFieldSet- (Lens.Family2.view Data.ProtoLens.unknownFields _x))))-instance Control.DeepSeq.NFData PairHistory where- rnf- = \ x__- -> Control.DeepSeq.deepseq- (_PairHistory'_unknownFields x__)- (Control.DeepSeq.deepseq- (_PairHistory'nodeFrom x__)- (Control.DeepSeq.deepseq- (_PairHistory'nodeTo x__)- (Control.DeepSeq.deepseq (_PairHistory'history x__) ())))-newtype PaymentState'UnrecognizedValue- = PaymentState'UnrecognizedValue Data.Int.Int32- deriving stock (Prelude.Eq, Prelude.Ord, Prelude.Show)-data PaymentState- = IN_FLIGHT |- SUCCEEDED |- FAILED_TIMEOUT |- FAILED_NO_ROUTE |- FAILED_ERROR |- FAILED_INCORRECT_PAYMENT_DETAILS |- FAILED_INSUFFICIENT_BALANCE |- PaymentState'Unrecognized !PaymentState'UnrecognizedValue- deriving stock (Prelude.Show, Prelude.Eq, Prelude.Ord)-instance Data.ProtoLens.MessageEnum PaymentState where- maybeToEnum 0 = Prelude.Just IN_FLIGHT- maybeToEnum 1 = Prelude.Just SUCCEEDED- maybeToEnum 2 = Prelude.Just FAILED_TIMEOUT- maybeToEnum 3 = Prelude.Just FAILED_NO_ROUTE- maybeToEnum 4 = Prelude.Just FAILED_ERROR- maybeToEnum 5 = Prelude.Just FAILED_INCORRECT_PAYMENT_DETAILS- maybeToEnum 6 = Prelude.Just FAILED_INSUFFICIENT_BALANCE- maybeToEnum k- = Prelude.Just- (PaymentState'Unrecognized- (PaymentState'UnrecognizedValue (Prelude.fromIntegral k)))- showEnum IN_FLIGHT = "IN_FLIGHT"- showEnum SUCCEEDED = "SUCCEEDED"- showEnum FAILED_TIMEOUT = "FAILED_TIMEOUT"- showEnum FAILED_NO_ROUTE = "FAILED_NO_ROUTE"- showEnum FAILED_ERROR = "FAILED_ERROR"- showEnum FAILED_INCORRECT_PAYMENT_DETAILS- = "FAILED_INCORRECT_PAYMENT_DETAILS"- showEnum FAILED_INSUFFICIENT_BALANCE- = "FAILED_INSUFFICIENT_BALANCE"- showEnum- (PaymentState'Unrecognized (PaymentState'UnrecognizedValue k))- = Prelude.show k- readEnum k- | (Prelude.==) k "IN_FLIGHT" = Prelude.Just IN_FLIGHT- | (Prelude.==) k "SUCCEEDED" = Prelude.Just SUCCEEDED- | (Prelude.==) k "FAILED_TIMEOUT" = Prelude.Just FAILED_TIMEOUT- | (Prelude.==) k "FAILED_NO_ROUTE" = Prelude.Just FAILED_NO_ROUTE- | (Prelude.==) k "FAILED_ERROR" = Prelude.Just FAILED_ERROR- | (Prelude.==) k "FAILED_INCORRECT_PAYMENT_DETAILS"- = Prelude.Just FAILED_INCORRECT_PAYMENT_DETAILS- | (Prelude.==) k "FAILED_INSUFFICIENT_BALANCE"- = Prelude.Just FAILED_INSUFFICIENT_BALANCE- | Prelude.otherwise- = (Prelude.>>=) (Text.Read.readMaybe k) Data.ProtoLens.maybeToEnum-instance Prelude.Bounded PaymentState where- minBound = IN_FLIGHT- maxBound = FAILED_INSUFFICIENT_BALANCE-instance Prelude.Enum PaymentState where- toEnum k__- = Prelude.maybe- (Prelude.error- ((Prelude.++)- "toEnum: unknown value for enum PaymentState: "- (Prelude.show k__)))- Prelude.id- (Data.ProtoLens.maybeToEnum k__)- fromEnum IN_FLIGHT = 0- fromEnum SUCCEEDED = 1- fromEnum FAILED_TIMEOUT = 2- fromEnum FAILED_NO_ROUTE = 3- fromEnum FAILED_ERROR = 4- fromEnum FAILED_INCORRECT_PAYMENT_DETAILS = 5- fromEnum FAILED_INSUFFICIENT_BALANCE = 6- fromEnum- (PaymentState'Unrecognized (PaymentState'UnrecognizedValue k))- = Prelude.fromIntegral k- succ FAILED_INSUFFICIENT_BALANCE- = Prelude.error- "PaymentState.succ: bad argument FAILED_INSUFFICIENT_BALANCE. This value would be out of bounds."- succ IN_FLIGHT = SUCCEEDED- succ SUCCEEDED = FAILED_TIMEOUT- succ FAILED_TIMEOUT = FAILED_NO_ROUTE- succ FAILED_NO_ROUTE = FAILED_ERROR- succ FAILED_ERROR = FAILED_INCORRECT_PAYMENT_DETAILS- succ FAILED_INCORRECT_PAYMENT_DETAILS = FAILED_INSUFFICIENT_BALANCE- succ (PaymentState'Unrecognized _)- = Prelude.error- "PaymentState.succ: bad argument: unrecognized value"- pred IN_FLIGHT- = Prelude.error- "PaymentState.pred: bad argument IN_FLIGHT. This value would be out of bounds."- pred SUCCEEDED = IN_FLIGHT- pred FAILED_TIMEOUT = SUCCEEDED- pred FAILED_NO_ROUTE = FAILED_TIMEOUT- pred FAILED_ERROR = FAILED_NO_ROUTE- pred FAILED_INCORRECT_PAYMENT_DETAILS = FAILED_ERROR- pred FAILED_INSUFFICIENT_BALANCE = FAILED_INCORRECT_PAYMENT_DETAILS- pred (PaymentState'Unrecognized _)- = Prelude.error- "PaymentState.pred: bad argument: unrecognized value"- enumFrom = Data.ProtoLens.Message.Enum.messageEnumFrom- enumFromTo = Data.ProtoLens.Message.Enum.messageEnumFromTo- enumFromThen = Data.ProtoLens.Message.Enum.messageEnumFromThen- enumFromThenTo = Data.ProtoLens.Message.Enum.messageEnumFromThenTo-instance Data.ProtoLens.FieldDefault PaymentState where- fieldDefault = IN_FLIGHT-instance Control.DeepSeq.NFData PaymentState where- rnf x__ = Prelude.seq x__ ()-{- | Fields :- - * 'Proto.RouterGrpc_Fields.state' @:: Lens' PaymentStatus PaymentState@- * 'Proto.RouterGrpc_Fields.preimage' @:: Lens' PaymentStatus Data.ByteString.ByteString@- * 'Proto.RouterGrpc_Fields.htlcs' @:: Lens' PaymentStatus [Proto.LndGrpc.HTLCAttempt]@- * 'Proto.RouterGrpc_Fields.vec'htlcs' @:: Lens' PaymentStatus (Data.Vector.Vector Proto.LndGrpc.HTLCAttempt)@ -}-data PaymentStatus- = PaymentStatus'_constructor {_PaymentStatus'state :: !PaymentState,- _PaymentStatus'preimage :: !Data.ByteString.ByteString,- _PaymentStatus'htlcs :: !(Data.Vector.Vector Proto.LndGrpc.HTLCAttempt),- _PaymentStatus'_unknownFields :: !Data.ProtoLens.FieldSet}- deriving stock (Prelude.Eq, Prelude.Ord)-instance Prelude.Show PaymentStatus where- showsPrec _ __x __s- = Prelude.showChar- '{'- (Prelude.showString- (Data.ProtoLens.showMessageShort __x) (Prelude.showChar '}' __s))-instance Data.ProtoLens.Field.HasField PaymentStatus "state" PaymentState where- fieldOf _- = (Prelude..)- (Lens.Family2.Unchecked.lens- _PaymentStatus'state- (\ x__ y__ -> x__ {_PaymentStatus'state = y__}))- Prelude.id-instance Data.ProtoLens.Field.HasField PaymentStatus "preimage" Data.ByteString.ByteString where- fieldOf _- = (Prelude..)- (Lens.Family2.Unchecked.lens- _PaymentStatus'preimage- (\ x__ y__ -> x__ {_PaymentStatus'preimage = y__}))- Prelude.id-instance Data.ProtoLens.Field.HasField PaymentStatus "htlcs" [Proto.LndGrpc.HTLCAttempt] where- fieldOf _- = (Prelude..)- (Lens.Family2.Unchecked.lens- _PaymentStatus'htlcs- (\ x__ y__ -> x__ {_PaymentStatus'htlcs = y__}))- (Lens.Family2.Unchecked.lens- Data.Vector.Generic.toList- (\ _ y__ -> Data.Vector.Generic.fromList y__))-instance Data.ProtoLens.Field.HasField PaymentStatus "vec'htlcs" (Data.Vector.Vector Proto.LndGrpc.HTLCAttempt) where- fieldOf _- = (Prelude..)- (Lens.Family2.Unchecked.lens- _PaymentStatus'htlcs- (\ x__ y__ -> x__ {_PaymentStatus'htlcs = y__}))- Prelude.id-instance Data.ProtoLens.Message PaymentStatus where- messageName _ = Data.Text.pack "routerrpc.PaymentStatus"- packedMessageDescriptor _- = "\n\- \\rPaymentStatus\DC2-\n\- \\ENQstate\CAN\SOH \SOH(\SO2\ETB.routerrpc.PaymentStateR\ENQstate\DC2\SUB\n\- \\bpreimage\CAN\STX \SOH(\fR\bpreimage\DC2(\n\- \\ENQhtlcs\CAN\EOT \ETX(\v2\DC2.lnrpc.HTLCAttemptR\ENQhtlcsJ\EOT\b\ETX\DLE\EOT"- packedFileDescriptor _ = packedFileDescriptor- fieldsByTag- = let- state__field_descriptor- = Data.ProtoLens.FieldDescriptor- "state"- (Data.ProtoLens.ScalarField Data.ProtoLens.EnumField ::- Data.ProtoLens.FieldTypeDescriptor PaymentState)- (Data.ProtoLens.PlainField- Data.ProtoLens.Optional (Data.ProtoLens.Field.field @"state")) ::- Data.ProtoLens.FieldDescriptor PaymentStatus- preimage__field_descriptor- = Data.ProtoLens.FieldDescriptor- "preimage"- (Data.ProtoLens.ScalarField Data.ProtoLens.BytesField ::- Data.ProtoLens.FieldTypeDescriptor Data.ByteString.ByteString)- (Data.ProtoLens.PlainField- Data.ProtoLens.Optional- (Data.ProtoLens.Field.field @"preimage")) ::- Data.ProtoLens.FieldDescriptor PaymentStatus- htlcs__field_descriptor- = Data.ProtoLens.FieldDescriptor- "htlcs"- (Data.ProtoLens.MessageField Data.ProtoLens.MessageType ::- Data.ProtoLens.FieldTypeDescriptor Proto.LndGrpc.HTLCAttempt)- (Data.ProtoLens.RepeatedField- Data.ProtoLens.Unpacked (Data.ProtoLens.Field.field @"htlcs")) ::- Data.ProtoLens.FieldDescriptor PaymentStatus- in- Data.Map.fromList- [(Data.ProtoLens.Tag 1, state__field_descriptor),- (Data.ProtoLens.Tag 2, preimage__field_descriptor),- (Data.ProtoLens.Tag 4, htlcs__field_descriptor)]- unknownFields- = Lens.Family2.Unchecked.lens- _PaymentStatus'_unknownFields- (\ x__ y__ -> x__ {_PaymentStatus'_unknownFields = y__})- defMessage- = PaymentStatus'_constructor- {_PaymentStatus'state = Data.ProtoLens.fieldDefault,- _PaymentStatus'preimage = Data.ProtoLens.fieldDefault,- _PaymentStatus'htlcs = Data.Vector.Generic.empty,- _PaymentStatus'_unknownFields = []}- parseMessage- = let- loop ::- PaymentStatus- -> Data.ProtoLens.Encoding.Growing.Growing Data.Vector.Vector Data.ProtoLens.Encoding.Growing.RealWorld Proto.LndGrpc.HTLCAttempt- -> Data.ProtoLens.Encoding.Bytes.Parser PaymentStatus- loop x mutable'htlcs- = do end <- Data.ProtoLens.Encoding.Bytes.atEnd- if end then- do frozen'htlcs <- Data.ProtoLens.Encoding.Parser.Unsafe.unsafeLiftIO- (Data.ProtoLens.Encoding.Growing.unsafeFreeze mutable'htlcs)- (let missing = []- in- if Prelude.null missing then- Prelude.return ()- else- Prelude.fail- ((Prelude.++)- "Missing required fields: "- (Prelude.show (missing :: [Prelude.String]))))- Prelude.return- (Lens.Family2.over- Data.ProtoLens.unknownFields- (\ !t -> Prelude.reverse t)- (Lens.Family2.set- (Data.ProtoLens.Field.field @"vec'htlcs") frozen'htlcs x))- else- do tag <- Data.ProtoLens.Encoding.Bytes.getVarInt- case tag of- 8 -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)- (Prelude.fmap- Prelude.toEnum- (Prelude.fmap- Prelude.fromIntegral- Data.ProtoLens.Encoding.Bytes.getVarInt))- "state"- loop- (Lens.Family2.set (Data.ProtoLens.Field.field @"state") y x)- mutable'htlcs- 18- -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)- (do len <- Data.ProtoLens.Encoding.Bytes.getVarInt- Data.ProtoLens.Encoding.Bytes.getBytes- (Prelude.fromIntegral len))- "preimage"- loop- (Lens.Family2.set (Data.ProtoLens.Field.field @"preimage") y x)- mutable'htlcs- 34- -> do !y <- (Data.ProtoLens.Encoding.Bytes.<?>)- (do len <- Data.ProtoLens.Encoding.Bytes.getVarInt- Data.ProtoLens.Encoding.Bytes.isolate- (Prelude.fromIntegral len)- Data.ProtoLens.parseMessage)- "htlcs"- v <- Data.ProtoLens.Encoding.Parser.Unsafe.unsafeLiftIO- (Data.ProtoLens.Encoding.Growing.append mutable'htlcs y)- loop x v- wire- -> do !y <- Data.ProtoLens.Encoding.Wire.parseTaggedValueFromWire- wire- loop- (Lens.Family2.over- Data.ProtoLens.unknownFields (\ !t -> (:) y t) x)- mutable'htlcs- in- (Data.ProtoLens.Encoding.Bytes.<?>)- (do mutable'htlcs <- Data.ProtoLens.Encoding.Parser.Unsafe.unsafeLiftIO- Data.ProtoLens.Encoding.Growing.new- loop Data.ProtoLens.defMessage mutable'htlcs)- "PaymentStatus"- buildMessage- = \ _x- -> (Data.Monoid.<>)- (let- _v = Lens.Family2.view (Data.ProtoLens.Field.field @"state") _x- in- if (Prelude.==) _v Data.ProtoLens.fieldDefault then- Data.Monoid.mempty- else- (Data.Monoid.<>)- (Data.ProtoLens.Encoding.Bytes.putVarInt 8)- ((Prelude..)- ((Prelude..)- Data.ProtoLens.Encoding.Bytes.putVarInt Prelude.fromIntegral)- Prelude.fromEnum- _v))- ((Data.Monoid.<>)- (let- _v = Lens.Family2.view (Data.ProtoLens.Field.field @"preimage") _x- in- if (Prelude.==) _v Data.ProtoLens.fieldDefault then- Data.Monoid.mempty- else- (Data.Monoid.<>)- (Data.ProtoLens.Encoding.Bytes.putVarInt 18)- ((\ bs- -> (Data.Monoid.<>)- (Data.ProtoLens.Encoding.Bytes.putVarInt- (Prelude.fromIntegral (Data.ByteString.length bs)))- (Data.ProtoLens.Encoding.Bytes.putBytes bs))- _v))- ((Data.Monoid.<>)- (Data.ProtoLens.Encoding.Bytes.foldMapBuilder- (\ _v- -> (Data.Monoid.<>)- (Data.ProtoLens.Encoding.Bytes.putVarInt 34)- ((Prelude..)- (\ bs- -> (Data.Monoid.<>)- (Data.ProtoLens.Encoding.Bytes.putVarInt- (Prelude.fromIntegral (Data.ByteString.length bs)))- (Data.ProtoLens.Encoding.Bytes.putBytes bs))- Data.ProtoLens.encodeMessage- _v))- (Lens.Family2.view (Data.ProtoLens.Field.field @"vec'htlcs") _x))- (Data.ProtoLens.Encoding.Wire.buildFieldSet- (Lens.Family2.view Data.ProtoLens.unknownFields _x))))-instance Control.DeepSeq.NFData PaymentStatus where- rnf- = \ x__- -> Control.DeepSeq.deepseq- (_PaymentStatus'_unknownFields x__)- (Control.DeepSeq.deepseq- (_PaymentStatus'state x__)- (Control.DeepSeq.deepseq- (_PaymentStatus'preimage x__)- (Control.DeepSeq.deepseq (_PaymentStatus'htlcs x__) ())))-{- | Fields :- -}-data QueryMissionControlRequest- = QueryMissionControlRequest'_constructor {_QueryMissionControlRequest'_unknownFields :: !Data.ProtoLens.FieldSet}- deriving stock (Prelude.Eq, Prelude.Ord)-instance Prelude.Show QueryMissionControlRequest where- showsPrec _ __x __s- = Prelude.showChar- '{'- (Prelude.showString- (Data.ProtoLens.showMessageShort __x) (Prelude.showChar '}' __s))-instance Data.ProtoLens.Message QueryMissionControlRequest where- messageName _- = Data.Text.pack "routerrpc.QueryMissionControlRequest"- packedMessageDescriptor _- = "\n\- \\SUBQueryMissionControlRequest"- packedFileDescriptor _ = packedFileDescriptor- fieldsByTag = let in Data.Map.fromList []- unknownFields- = Lens.Family2.Unchecked.lens- _QueryMissionControlRequest'_unknownFields- (\ x__ y__- -> x__ {_QueryMissionControlRequest'_unknownFields = y__})- defMessage- = QueryMissionControlRequest'_constructor- {_QueryMissionControlRequest'_unknownFields = []}- parseMessage- = let- loop ::- QueryMissionControlRequest- -> Data.ProtoLens.Encoding.Bytes.Parser QueryMissionControlRequest- loop x- = do end <- Data.ProtoLens.Encoding.Bytes.atEnd- if end then- do (let missing = []- in- if Prelude.null missing then- Prelude.return ()- else- Prelude.fail- ((Prelude.++)- "Missing required fields: "- (Prelude.show (missing :: [Prelude.String]))))- Prelude.return- (Lens.Family2.over- Data.ProtoLens.unknownFields (\ !t -> Prelude.reverse t) x)- else- do tag <- Data.ProtoLens.Encoding.Bytes.getVarInt- case tag of {- wire- -> do !y <- Data.ProtoLens.Encoding.Wire.parseTaggedValueFromWire- wire- loop- (Lens.Family2.over- Data.ProtoLens.unknownFields (\ !t -> (:) y t) x) }- in- (Data.ProtoLens.Encoding.Bytes.<?>)- (do loop Data.ProtoLens.defMessage) "QueryMissionControlRequest"- buildMessage- = \ _x- -> Data.ProtoLens.Encoding.Wire.buildFieldSet- (Lens.Family2.view Data.ProtoLens.unknownFields _x)-instance Control.DeepSeq.NFData QueryMissionControlRequest where- rnf- = \ x__- -> Control.DeepSeq.deepseq- (_QueryMissionControlRequest'_unknownFields x__) ()-{- | Fields :- - * 'Proto.RouterGrpc_Fields.pairs' @:: Lens' QueryMissionControlResponse [PairHistory]@- * 'Proto.RouterGrpc_Fields.vec'pairs' @:: Lens' QueryMissionControlResponse (Data.Vector.Vector PairHistory)@ -}-data QueryMissionControlResponse- = QueryMissionControlResponse'_constructor {_QueryMissionControlResponse'pairs :: !(Data.Vector.Vector PairHistory),- _QueryMissionControlResponse'_unknownFields :: !Data.ProtoLens.FieldSet}- deriving stock (Prelude.Eq, Prelude.Ord)-instance Prelude.Show QueryMissionControlResponse where- showsPrec _ __x __s- = Prelude.showChar- '{'- (Prelude.showString- (Data.ProtoLens.showMessageShort __x) (Prelude.showChar '}' __s))-instance Data.ProtoLens.Field.HasField QueryMissionControlResponse "pairs" [PairHistory] where- fieldOf _- = (Prelude..)- (Lens.Family2.Unchecked.lens- _QueryMissionControlResponse'pairs- (\ x__ y__ -> x__ {_QueryMissionControlResponse'pairs = y__}))- (Lens.Family2.Unchecked.lens- Data.Vector.Generic.toList- (\ _ y__ -> Data.Vector.Generic.fromList y__))-instance Data.ProtoLens.Field.HasField QueryMissionControlResponse "vec'pairs" (Data.Vector.Vector PairHistory) where- fieldOf _- = (Prelude..)- (Lens.Family2.Unchecked.lens- _QueryMissionControlResponse'pairs- (\ x__ y__ -> x__ {_QueryMissionControlResponse'pairs = y__}))- Prelude.id-instance Data.ProtoLens.Message QueryMissionControlResponse where- messageName _- = Data.Text.pack "routerrpc.QueryMissionControlResponse"- packedMessageDescriptor _- = "\n\- \\ESCQueryMissionControlResponse\DC2,\n\- \\ENQpairs\CAN\STX \ETX(\v2\SYN.routerrpc.PairHistoryR\ENQpairsJ\EOT\b\SOH\DLE\STX"- packedFileDescriptor _ = packedFileDescriptor- fieldsByTag- = let- pairs__field_descriptor- = Data.ProtoLens.FieldDescriptor- "pairs"- (Data.ProtoLens.MessageField Data.ProtoLens.MessageType ::- Data.ProtoLens.FieldTypeDescriptor PairHistory)- (Data.ProtoLens.RepeatedField- Data.ProtoLens.Unpacked (Data.ProtoLens.Field.field @"pairs")) ::- Data.ProtoLens.FieldDescriptor QueryMissionControlResponse- in- Data.Map.fromList [(Data.ProtoLens.Tag 2, pairs__field_descriptor)]- unknownFields- = Lens.Family2.Unchecked.lens- _QueryMissionControlResponse'_unknownFields- (\ x__ y__- -> x__ {_QueryMissionControlResponse'_unknownFields = y__})- defMessage- = QueryMissionControlResponse'_constructor- {_QueryMissionControlResponse'pairs = Data.Vector.Generic.empty,- _QueryMissionControlResponse'_unknownFields = []}- parseMessage- = let- loop ::- QueryMissionControlResponse- -> Data.ProtoLens.Encoding.Growing.Growing Data.Vector.Vector Data.ProtoLens.Encoding.Growing.RealWorld PairHistory- -> Data.ProtoLens.Encoding.Bytes.Parser QueryMissionControlResponse- loop x mutable'pairs- = do end <- Data.ProtoLens.Encoding.Bytes.atEnd- if end then- do frozen'pairs <- Data.ProtoLens.Encoding.Parser.Unsafe.unsafeLiftIO- (Data.ProtoLens.Encoding.Growing.unsafeFreeze mutable'pairs)- (let missing = []- in- if Prelude.null missing then- Prelude.return ()- else- Prelude.fail- ((Prelude.++)- "Missing required fields: "- (Prelude.show (missing :: [Prelude.String]))))- Prelude.return- (Lens.Family2.over- Data.ProtoLens.unknownFields- (\ !t -> Prelude.reverse t)- (Lens.Family2.set- (Data.ProtoLens.Field.field @"vec'pairs") frozen'pairs x))- else- do tag <- Data.ProtoLens.Encoding.Bytes.getVarInt- case tag of- 18- -> do !y <- (Data.ProtoLens.Encoding.Bytes.<?>)- (do len <- Data.ProtoLens.Encoding.Bytes.getVarInt- Data.ProtoLens.Encoding.Bytes.isolate- (Prelude.fromIntegral len)- Data.ProtoLens.parseMessage)- "pairs"- v <- Data.ProtoLens.Encoding.Parser.Unsafe.unsafeLiftIO- (Data.ProtoLens.Encoding.Growing.append mutable'pairs y)- loop x v- wire- -> do !y <- Data.ProtoLens.Encoding.Wire.parseTaggedValueFromWire- wire- loop- (Lens.Family2.over- Data.ProtoLens.unknownFields (\ !t -> (:) y t) x)- mutable'pairs- in- (Data.ProtoLens.Encoding.Bytes.<?>)- (do mutable'pairs <- Data.ProtoLens.Encoding.Parser.Unsafe.unsafeLiftIO- Data.ProtoLens.Encoding.Growing.new- loop Data.ProtoLens.defMessage mutable'pairs)- "QueryMissionControlResponse"- buildMessage- = \ _x- -> (Data.Monoid.<>)- (Data.ProtoLens.Encoding.Bytes.foldMapBuilder- (\ _v- -> (Data.Monoid.<>)- (Data.ProtoLens.Encoding.Bytes.putVarInt 18)- ((Prelude..)- (\ bs- -> (Data.Monoid.<>)- (Data.ProtoLens.Encoding.Bytes.putVarInt- (Prelude.fromIntegral (Data.ByteString.length bs)))- (Data.ProtoLens.Encoding.Bytes.putBytes bs))- Data.ProtoLens.encodeMessage- _v))- (Lens.Family2.view (Data.ProtoLens.Field.field @"vec'pairs") _x))- (Data.ProtoLens.Encoding.Wire.buildFieldSet- (Lens.Family2.view Data.ProtoLens.unknownFields _x))-instance Control.DeepSeq.NFData QueryMissionControlResponse where- rnf- = \ x__- -> Control.DeepSeq.deepseq- (_QueryMissionControlResponse'_unknownFields x__)- (Control.DeepSeq.deepseq- (_QueryMissionControlResponse'pairs x__) ())-{- | Fields :- - * 'Proto.RouterGrpc_Fields.fromNode' @:: Lens' QueryProbabilityRequest Data.ByteString.ByteString@- * 'Proto.RouterGrpc_Fields.toNode' @:: Lens' QueryProbabilityRequest Data.ByteString.ByteString@- * 'Proto.RouterGrpc_Fields.amtMsat' @:: Lens' QueryProbabilityRequest Data.Int.Int64@ -}-data QueryProbabilityRequest- = QueryProbabilityRequest'_constructor {_QueryProbabilityRequest'fromNode :: !Data.ByteString.ByteString,- _QueryProbabilityRequest'toNode :: !Data.ByteString.ByteString,- _QueryProbabilityRequest'amtMsat :: !Data.Int.Int64,- _QueryProbabilityRequest'_unknownFields :: !Data.ProtoLens.FieldSet}- deriving stock (Prelude.Eq, Prelude.Ord)-instance Prelude.Show QueryProbabilityRequest where- showsPrec _ __x __s- = Prelude.showChar- '{'- (Prelude.showString- (Data.ProtoLens.showMessageShort __x) (Prelude.showChar '}' __s))-instance Data.ProtoLens.Field.HasField QueryProbabilityRequest "fromNode" Data.ByteString.ByteString where- fieldOf _- = (Prelude..)- (Lens.Family2.Unchecked.lens- _QueryProbabilityRequest'fromNode- (\ x__ y__ -> x__ {_QueryProbabilityRequest'fromNode = y__}))- Prelude.id-instance Data.ProtoLens.Field.HasField QueryProbabilityRequest "toNode" Data.ByteString.ByteString where- fieldOf _- = (Prelude..)- (Lens.Family2.Unchecked.lens- _QueryProbabilityRequest'toNode- (\ x__ y__ -> x__ {_QueryProbabilityRequest'toNode = y__}))- Prelude.id-instance Data.ProtoLens.Field.HasField QueryProbabilityRequest "amtMsat" Data.Int.Int64 where- fieldOf _- = (Prelude..)- (Lens.Family2.Unchecked.lens- _QueryProbabilityRequest'amtMsat- (\ x__ y__ -> x__ {_QueryProbabilityRequest'amtMsat = y__}))- Prelude.id-instance Data.ProtoLens.Message QueryProbabilityRequest where- messageName _ = Data.Text.pack "routerrpc.QueryProbabilityRequest"- packedMessageDescriptor _- = "\n\- \\ETBQueryProbabilityRequest\DC2\ESC\n\- \\tfrom_node\CAN\SOH \SOH(\fR\bfromNode\DC2\ETB\n\- \\ato_node\CAN\STX \SOH(\fR\ACKtoNode\DC2\EM\n\- \\bamt_msat\CAN\ETX \SOH(\ETXR\aamtMsat"- packedFileDescriptor _ = packedFileDescriptor- fieldsByTag- = let- fromNode__field_descriptor- = Data.ProtoLens.FieldDescriptor- "from_node"- (Data.ProtoLens.ScalarField Data.ProtoLens.BytesField ::- Data.ProtoLens.FieldTypeDescriptor Data.ByteString.ByteString)- (Data.ProtoLens.PlainField- Data.ProtoLens.Optional- (Data.ProtoLens.Field.field @"fromNode")) ::- Data.ProtoLens.FieldDescriptor QueryProbabilityRequest- toNode__field_descriptor- = Data.ProtoLens.FieldDescriptor- "to_node"- (Data.ProtoLens.ScalarField Data.ProtoLens.BytesField ::- Data.ProtoLens.FieldTypeDescriptor Data.ByteString.ByteString)- (Data.ProtoLens.PlainField- Data.ProtoLens.Optional (Data.ProtoLens.Field.field @"toNode")) ::- Data.ProtoLens.FieldDescriptor QueryProbabilityRequest- amtMsat__field_descriptor- = Data.ProtoLens.FieldDescriptor- "amt_msat"- (Data.ProtoLens.ScalarField Data.ProtoLens.Int64Field ::- Data.ProtoLens.FieldTypeDescriptor Data.Int.Int64)- (Data.ProtoLens.PlainField- Data.ProtoLens.Optional (Data.ProtoLens.Field.field @"amtMsat")) ::- Data.ProtoLens.FieldDescriptor QueryProbabilityRequest- in- Data.Map.fromList- [(Data.ProtoLens.Tag 1, fromNode__field_descriptor),- (Data.ProtoLens.Tag 2, toNode__field_descriptor),- (Data.ProtoLens.Tag 3, amtMsat__field_descriptor)]- unknownFields- = Lens.Family2.Unchecked.lens- _QueryProbabilityRequest'_unknownFields- (\ x__ y__ -> x__ {_QueryProbabilityRequest'_unknownFields = y__})- defMessage- = QueryProbabilityRequest'_constructor- {_QueryProbabilityRequest'fromNode = Data.ProtoLens.fieldDefault,- _QueryProbabilityRequest'toNode = Data.ProtoLens.fieldDefault,- _QueryProbabilityRequest'amtMsat = Data.ProtoLens.fieldDefault,- _QueryProbabilityRequest'_unknownFields = []}- parseMessage- = let- loop ::- QueryProbabilityRequest- -> Data.ProtoLens.Encoding.Bytes.Parser QueryProbabilityRequest- loop x- = do end <- Data.ProtoLens.Encoding.Bytes.atEnd- if end then- do (let missing = []- in- if Prelude.null missing then- Prelude.return ()- else- Prelude.fail- ((Prelude.++)- "Missing required fields: "- (Prelude.show (missing :: [Prelude.String]))))- Prelude.return- (Lens.Family2.over- Data.ProtoLens.unknownFields (\ !t -> Prelude.reverse t) x)- else- do tag <- Data.ProtoLens.Encoding.Bytes.getVarInt- case tag of- 10- -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)- (do len <- Data.ProtoLens.Encoding.Bytes.getVarInt- Data.ProtoLens.Encoding.Bytes.getBytes- (Prelude.fromIntegral len))- "from_node"- loop- (Lens.Family2.set (Data.ProtoLens.Field.field @"fromNode") y x)- 18- -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)- (do len <- Data.ProtoLens.Encoding.Bytes.getVarInt- Data.ProtoLens.Encoding.Bytes.getBytes- (Prelude.fromIntegral len))- "to_node"- loop (Lens.Family2.set (Data.ProtoLens.Field.field @"toNode") y x)- 24- -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)- (Prelude.fmap- Prelude.fromIntegral- Data.ProtoLens.Encoding.Bytes.getVarInt)- "amt_msat"- loop (Lens.Family2.set (Data.ProtoLens.Field.field @"amtMsat") y x)- wire- -> do !y <- Data.ProtoLens.Encoding.Wire.parseTaggedValueFromWire- wire- loop- (Lens.Family2.over- Data.ProtoLens.unknownFields (\ !t -> (:) y t) x)- in- (Data.ProtoLens.Encoding.Bytes.<?>)- (do loop Data.ProtoLens.defMessage) "QueryProbabilityRequest"- buildMessage- = \ _x- -> (Data.Monoid.<>)- (let- _v = Lens.Family2.view (Data.ProtoLens.Field.field @"fromNode") _x- in- if (Prelude.==) _v Data.ProtoLens.fieldDefault then- Data.Monoid.mempty- else- (Data.Monoid.<>)- (Data.ProtoLens.Encoding.Bytes.putVarInt 10)- ((\ bs- -> (Data.Monoid.<>)- (Data.ProtoLens.Encoding.Bytes.putVarInt- (Prelude.fromIntegral (Data.ByteString.length bs)))- (Data.ProtoLens.Encoding.Bytes.putBytes bs))- _v))- ((Data.Monoid.<>)- (let- _v = Lens.Family2.view (Data.ProtoLens.Field.field @"toNode") _x- in- if (Prelude.==) _v Data.ProtoLens.fieldDefault then- Data.Monoid.mempty- else- (Data.Monoid.<>)- (Data.ProtoLens.Encoding.Bytes.putVarInt 18)- ((\ bs- -> (Data.Monoid.<>)- (Data.ProtoLens.Encoding.Bytes.putVarInt- (Prelude.fromIntegral (Data.ByteString.length bs)))- (Data.ProtoLens.Encoding.Bytes.putBytes bs))- _v))- ((Data.Monoid.<>)- (let- _v = Lens.Family2.view (Data.ProtoLens.Field.field @"amtMsat") _x- in- if (Prelude.==) _v Data.ProtoLens.fieldDefault then- Data.Monoid.mempty- else- (Data.Monoid.<>)- (Data.ProtoLens.Encoding.Bytes.putVarInt 24)- ((Prelude..)- Data.ProtoLens.Encoding.Bytes.putVarInt Prelude.fromIntegral _v))- (Data.ProtoLens.Encoding.Wire.buildFieldSet- (Lens.Family2.view Data.ProtoLens.unknownFields _x))))-instance Control.DeepSeq.NFData QueryProbabilityRequest where- rnf- = \ x__- -> Control.DeepSeq.deepseq- (_QueryProbabilityRequest'_unknownFields x__)- (Control.DeepSeq.deepseq- (_QueryProbabilityRequest'fromNode x__)- (Control.DeepSeq.deepseq- (_QueryProbabilityRequest'toNode x__)- (Control.DeepSeq.deepseq- (_QueryProbabilityRequest'amtMsat x__) ())))-{- | Fields :- - * 'Proto.RouterGrpc_Fields.probability' @:: Lens' QueryProbabilityResponse Prelude.Double@- * 'Proto.RouterGrpc_Fields.history' @:: Lens' QueryProbabilityResponse PairData@- * 'Proto.RouterGrpc_Fields.maybe'history' @:: Lens' QueryProbabilityResponse (Prelude.Maybe PairData)@ -}-data QueryProbabilityResponse- = QueryProbabilityResponse'_constructor {_QueryProbabilityResponse'probability :: !Prelude.Double,- _QueryProbabilityResponse'history :: !(Prelude.Maybe PairData),- _QueryProbabilityResponse'_unknownFields :: !Data.ProtoLens.FieldSet}- deriving stock (Prelude.Eq, Prelude.Ord)-instance Prelude.Show QueryProbabilityResponse where- showsPrec _ __x __s- = Prelude.showChar- '{'- (Prelude.showString- (Data.ProtoLens.showMessageShort __x) (Prelude.showChar '}' __s))-instance Data.ProtoLens.Field.HasField QueryProbabilityResponse "probability" Prelude.Double where- fieldOf _- = (Prelude..)- (Lens.Family2.Unchecked.lens- _QueryProbabilityResponse'probability- (\ x__ y__ -> x__ {_QueryProbabilityResponse'probability = y__}))- Prelude.id-instance Data.ProtoLens.Field.HasField QueryProbabilityResponse "history" PairData where- fieldOf _- = (Prelude..)- (Lens.Family2.Unchecked.lens- _QueryProbabilityResponse'history- (\ x__ y__ -> x__ {_QueryProbabilityResponse'history = y__}))- (Data.ProtoLens.maybeLens Data.ProtoLens.defMessage)-instance Data.ProtoLens.Field.HasField QueryProbabilityResponse "maybe'history" (Prelude.Maybe PairData) where- fieldOf _- = (Prelude..)- (Lens.Family2.Unchecked.lens- _QueryProbabilityResponse'history- (\ x__ y__ -> x__ {_QueryProbabilityResponse'history = y__}))- Prelude.id-instance Data.ProtoLens.Message QueryProbabilityResponse where- messageName _ = Data.Text.pack "routerrpc.QueryProbabilityResponse"- packedMessageDescriptor _- = "\n\- \\CANQueryProbabilityResponse\DC2 \n\- \\vprobability\CAN\SOH \SOH(\SOHR\vprobability\DC2-\n\- \\ahistory\CAN\STX \SOH(\v2\DC3.routerrpc.PairDataR\ahistory"- packedFileDescriptor _ = packedFileDescriptor- fieldsByTag- = let- probability__field_descriptor- = Data.ProtoLens.FieldDescriptor- "probability"- (Data.ProtoLens.ScalarField Data.ProtoLens.DoubleField ::- Data.ProtoLens.FieldTypeDescriptor Prelude.Double)- (Data.ProtoLens.PlainField- Data.ProtoLens.Optional- (Data.ProtoLens.Field.field @"probability")) ::- Data.ProtoLens.FieldDescriptor QueryProbabilityResponse- history__field_descriptor- = Data.ProtoLens.FieldDescriptor- "history"- (Data.ProtoLens.MessageField Data.ProtoLens.MessageType ::- Data.ProtoLens.FieldTypeDescriptor PairData)- (Data.ProtoLens.OptionalField- (Data.ProtoLens.Field.field @"maybe'history")) ::- Data.ProtoLens.FieldDescriptor QueryProbabilityResponse- in- Data.Map.fromList- [(Data.ProtoLens.Tag 1, probability__field_descriptor),- (Data.ProtoLens.Tag 2, history__field_descriptor)]- unknownFields- = Lens.Family2.Unchecked.lens- _QueryProbabilityResponse'_unknownFields- (\ x__ y__ -> x__ {_QueryProbabilityResponse'_unknownFields = y__})- defMessage- = QueryProbabilityResponse'_constructor- {_QueryProbabilityResponse'probability = Data.ProtoLens.fieldDefault,- _QueryProbabilityResponse'history = Prelude.Nothing,- _QueryProbabilityResponse'_unknownFields = []}- parseMessage- = let- loop ::- QueryProbabilityResponse- -> Data.ProtoLens.Encoding.Bytes.Parser QueryProbabilityResponse- loop x- = do end <- Data.ProtoLens.Encoding.Bytes.atEnd- if end then- do (let missing = []- in- if Prelude.null missing then- Prelude.return ()- else- Prelude.fail- ((Prelude.++)- "Missing required fields: "- (Prelude.show (missing :: [Prelude.String]))))- Prelude.return- (Lens.Family2.over- Data.ProtoLens.unknownFields (\ !t -> Prelude.reverse t) x)- else- do tag <- Data.ProtoLens.Encoding.Bytes.getVarInt- case tag of- 9 -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)- (Prelude.fmap- Data.ProtoLens.Encoding.Bytes.wordToDouble- Data.ProtoLens.Encoding.Bytes.getFixed64)- "probability"- loop- (Lens.Family2.set (Data.ProtoLens.Field.field @"probability") y x)- 18- -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)- (do len <- Data.ProtoLens.Encoding.Bytes.getVarInt- Data.ProtoLens.Encoding.Bytes.isolate- (Prelude.fromIntegral len) Data.ProtoLens.parseMessage)- "history"- loop (Lens.Family2.set (Data.ProtoLens.Field.field @"history") y x)- wire- -> do !y <- Data.ProtoLens.Encoding.Wire.parseTaggedValueFromWire- wire- loop- (Lens.Family2.over- Data.ProtoLens.unknownFields (\ !t -> (:) y t) x)- in- (Data.ProtoLens.Encoding.Bytes.<?>)- (do loop Data.ProtoLens.defMessage) "QueryProbabilityResponse"- buildMessage- = \ _x- -> (Data.Monoid.<>)- (let- _v- = Lens.Family2.view (Data.ProtoLens.Field.field @"probability") _x- in- if (Prelude.==) _v Data.ProtoLens.fieldDefault then- Data.Monoid.mempty- else- (Data.Monoid.<>)- (Data.ProtoLens.Encoding.Bytes.putVarInt 9)- ((Prelude..)- Data.ProtoLens.Encoding.Bytes.putFixed64- Data.ProtoLens.Encoding.Bytes.doubleToWord- _v))- ((Data.Monoid.<>)- (case- Lens.Family2.view (Data.ProtoLens.Field.field @"maybe'history") _x- of- Prelude.Nothing -> Data.Monoid.mempty- (Prelude.Just _v)- -> (Data.Monoid.<>)- (Data.ProtoLens.Encoding.Bytes.putVarInt 18)- ((Prelude..)- (\ bs- -> (Data.Monoid.<>)- (Data.ProtoLens.Encoding.Bytes.putVarInt- (Prelude.fromIntegral (Data.ByteString.length bs)))- (Data.ProtoLens.Encoding.Bytes.putBytes bs))- Data.ProtoLens.encodeMessage- _v))- (Data.ProtoLens.Encoding.Wire.buildFieldSet- (Lens.Family2.view Data.ProtoLens.unknownFields _x)))-instance Control.DeepSeq.NFData QueryProbabilityResponse where- rnf- = \ x__- -> Control.DeepSeq.deepseq- (_QueryProbabilityResponse'_unknownFields x__)- (Control.DeepSeq.deepseq- (_QueryProbabilityResponse'probability x__)- (Control.DeepSeq.deepseq- (_QueryProbabilityResponse'history x__) ()))-{- | Fields :- -}-data ResetMissionControlRequest- = ResetMissionControlRequest'_constructor {_ResetMissionControlRequest'_unknownFields :: !Data.ProtoLens.FieldSet}- deriving stock (Prelude.Eq, Prelude.Ord)-instance Prelude.Show ResetMissionControlRequest where- showsPrec _ __x __s- = Prelude.showChar- '{'- (Prelude.showString- (Data.ProtoLens.showMessageShort __x) (Prelude.showChar '}' __s))-instance Data.ProtoLens.Message ResetMissionControlRequest where- messageName _- = Data.Text.pack "routerrpc.ResetMissionControlRequest"- packedMessageDescriptor _- = "\n\- \\SUBResetMissionControlRequest"- packedFileDescriptor _ = packedFileDescriptor- fieldsByTag = let in Data.Map.fromList []- unknownFields- = Lens.Family2.Unchecked.lens- _ResetMissionControlRequest'_unknownFields- (\ x__ y__- -> x__ {_ResetMissionControlRequest'_unknownFields = y__})- defMessage- = ResetMissionControlRequest'_constructor- {_ResetMissionControlRequest'_unknownFields = []}- parseMessage- = let- loop ::- ResetMissionControlRequest- -> Data.ProtoLens.Encoding.Bytes.Parser ResetMissionControlRequest- loop x- = do end <- Data.ProtoLens.Encoding.Bytes.atEnd- if end then- do (let missing = []- in- if Prelude.null missing then- Prelude.return ()- else- Prelude.fail- ((Prelude.++)- "Missing required fields: "- (Prelude.show (missing :: [Prelude.String]))))- Prelude.return- (Lens.Family2.over- Data.ProtoLens.unknownFields (\ !t -> Prelude.reverse t) x)- else- do tag <- Data.ProtoLens.Encoding.Bytes.getVarInt- case tag of {- wire- -> do !y <- Data.ProtoLens.Encoding.Wire.parseTaggedValueFromWire- wire- loop- (Lens.Family2.over- Data.ProtoLens.unknownFields (\ !t -> (:) y t) x) }- in- (Data.ProtoLens.Encoding.Bytes.<?>)- (do loop Data.ProtoLens.defMessage) "ResetMissionControlRequest"- buildMessage- = \ _x- -> Data.ProtoLens.Encoding.Wire.buildFieldSet- (Lens.Family2.view Data.ProtoLens.unknownFields _x)-instance Control.DeepSeq.NFData ResetMissionControlRequest where- rnf- = \ x__- -> Control.DeepSeq.deepseq- (_ResetMissionControlRequest'_unknownFields x__) ()-{- | Fields :- -}-data ResetMissionControlResponse- = ResetMissionControlResponse'_constructor {_ResetMissionControlResponse'_unknownFields :: !Data.ProtoLens.FieldSet}- deriving stock (Prelude.Eq, Prelude.Ord)-instance Prelude.Show ResetMissionControlResponse where- showsPrec _ __x __s- = Prelude.showChar- '{'- (Prelude.showString- (Data.ProtoLens.showMessageShort __x) (Prelude.showChar '}' __s))-instance Data.ProtoLens.Message ResetMissionControlResponse where- messageName _- = Data.Text.pack "routerrpc.ResetMissionControlResponse"- packedMessageDescriptor _- = "\n\- \\ESCResetMissionControlResponse"- packedFileDescriptor _ = packedFileDescriptor- fieldsByTag = let in Data.Map.fromList []- unknownFields- = Lens.Family2.Unchecked.lens- _ResetMissionControlResponse'_unknownFields- (\ x__ y__- -> x__ {_ResetMissionControlResponse'_unknownFields = y__})- defMessage- = ResetMissionControlResponse'_constructor- {_ResetMissionControlResponse'_unknownFields = []}- parseMessage- = let- loop ::- ResetMissionControlResponse- -> Data.ProtoLens.Encoding.Bytes.Parser ResetMissionControlResponse- loop x- = do end <- Data.ProtoLens.Encoding.Bytes.atEnd- if end then- do (let missing = []- in- if Prelude.null missing then- Prelude.return ()- else- Prelude.fail- ((Prelude.++)- "Missing required fields: "- (Prelude.show (missing :: [Prelude.String]))))- Prelude.return- (Lens.Family2.over- Data.ProtoLens.unknownFields (\ !t -> Prelude.reverse t) x)- else- do tag <- Data.ProtoLens.Encoding.Bytes.getVarInt- case tag of {- wire- -> do !y <- Data.ProtoLens.Encoding.Wire.parseTaggedValueFromWire- wire- loop- (Lens.Family2.over- Data.ProtoLens.unknownFields (\ !t -> (:) y t) x) }- in- (Data.ProtoLens.Encoding.Bytes.<?>)- (do loop Data.ProtoLens.defMessage) "ResetMissionControlResponse"- buildMessage- = \ _x- -> Data.ProtoLens.Encoding.Wire.buildFieldSet- (Lens.Family2.view Data.ProtoLens.unknownFields _x)-instance Control.DeepSeq.NFData ResetMissionControlResponse where- rnf- = \ x__- -> Control.DeepSeq.deepseq- (_ResetMissionControlResponse'_unknownFields x__) ()-newtype ResolveHoldForwardAction'UnrecognizedValue- = ResolveHoldForwardAction'UnrecognizedValue Data.Int.Int32- deriving stock (Prelude.Eq, Prelude.Ord, Prelude.Show)-data ResolveHoldForwardAction- = SETTLE |- FAIL |- RESUME |- ResolveHoldForwardAction'Unrecognized !ResolveHoldForwardAction'UnrecognizedValue- deriving stock (Prelude.Show, Prelude.Eq, Prelude.Ord)-instance Data.ProtoLens.MessageEnum ResolveHoldForwardAction where- maybeToEnum 0 = Prelude.Just SETTLE- maybeToEnum 1 = Prelude.Just FAIL- maybeToEnum 2 = Prelude.Just RESUME- maybeToEnum k- = Prelude.Just- (ResolveHoldForwardAction'Unrecognized- (ResolveHoldForwardAction'UnrecognizedValue- (Prelude.fromIntegral k)))- showEnum SETTLE = "SETTLE"- showEnum FAIL = "FAIL"- showEnum RESUME = "RESUME"- showEnum- (ResolveHoldForwardAction'Unrecognized (ResolveHoldForwardAction'UnrecognizedValue k))- = Prelude.show k- readEnum k- | (Prelude.==) k "SETTLE" = Prelude.Just SETTLE- | (Prelude.==) k "FAIL" = Prelude.Just FAIL- | (Prelude.==) k "RESUME" = Prelude.Just RESUME- | Prelude.otherwise- = (Prelude.>>=) (Text.Read.readMaybe k) Data.ProtoLens.maybeToEnum-instance Prelude.Bounded ResolveHoldForwardAction where- minBound = SETTLE- maxBound = RESUME-instance Prelude.Enum ResolveHoldForwardAction where- toEnum k__- = Prelude.maybe- (Prelude.error- ((Prelude.++)- "toEnum: unknown value for enum ResolveHoldForwardAction: "- (Prelude.show k__)))- Prelude.id- (Data.ProtoLens.maybeToEnum k__)- fromEnum SETTLE = 0- fromEnum FAIL = 1- fromEnum RESUME = 2- fromEnum- (ResolveHoldForwardAction'Unrecognized (ResolveHoldForwardAction'UnrecognizedValue k))- = Prelude.fromIntegral k- succ RESUME- = Prelude.error- "ResolveHoldForwardAction.succ: bad argument RESUME. This value would be out of bounds."- succ SETTLE = FAIL- succ FAIL = RESUME- succ (ResolveHoldForwardAction'Unrecognized _)- = Prelude.error- "ResolveHoldForwardAction.succ: bad argument: unrecognized value"- pred SETTLE- = Prelude.error- "ResolveHoldForwardAction.pred: bad argument SETTLE. This value would be out of bounds."- pred FAIL = SETTLE- pred RESUME = FAIL- pred (ResolveHoldForwardAction'Unrecognized _)- = Prelude.error- "ResolveHoldForwardAction.pred: bad argument: unrecognized value"- enumFrom = Data.ProtoLens.Message.Enum.messageEnumFrom- enumFromTo = Data.ProtoLens.Message.Enum.messageEnumFromTo- enumFromThen = Data.ProtoLens.Message.Enum.messageEnumFromThen- enumFromThenTo = Data.ProtoLens.Message.Enum.messageEnumFromThenTo-instance Data.ProtoLens.FieldDefault ResolveHoldForwardAction where- fieldDefault = SETTLE-instance Control.DeepSeq.NFData ResolveHoldForwardAction where- rnf x__ = Prelude.seq x__ ()-{- | Fields :- - * 'Proto.RouterGrpc_Fields.dest' @:: Lens' RouteFeeRequest Data.ByteString.ByteString@- * 'Proto.RouterGrpc_Fields.amtSat' @:: Lens' RouteFeeRequest Data.Int.Int64@ -}-data RouteFeeRequest- = RouteFeeRequest'_constructor {_RouteFeeRequest'dest :: !Data.ByteString.ByteString,- _RouteFeeRequest'amtSat :: !Data.Int.Int64,- _RouteFeeRequest'_unknownFields :: !Data.ProtoLens.FieldSet}- deriving stock (Prelude.Eq, Prelude.Ord)-instance Prelude.Show RouteFeeRequest where- showsPrec _ __x __s- = Prelude.showChar- '{'- (Prelude.showString- (Data.ProtoLens.showMessageShort __x) (Prelude.showChar '}' __s))-instance Data.ProtoLens.Field.HasField RouteFeeRequest "dest" Data.ByteString.ByteString where- fieldOf _- = (Prelude..)- (Lens.Family2.Unchecked.lens- _RouteFeeRequest'dest- (\ x__ y__ -> x__ {_RouteFeeRequest'dest = y__}))- Prelude.id-instance Data.ProtoLens.Field.HasField RouteFeeRequest "amtSat" Data.Int.Int64 where- fieldOf _- = (Prelude..)- (Lens.Family2.Unchecked.lens- _RouteFeeRequest'amtSat- (\ x__ y__ -> x__ {_RouteFeeRequest'amtSat = y__}))- Prelude.id-instance Data.ProtoLens.Message RouteFeeRequest where- messageName _ = Data.Text.pack "routerrpc.RouteFeeRequest"- packedMessageDescriptor _- = "\n\- \\SIRouteFeeRequest\DC2\DC2\n\- \\EOTdest\CAN\SOH \SOH(\fR\EOTdest\DC2\ETB\n\- \\aamt_sat\CAN\STX \SOH(\ETXR\ACKamtSat"- packedFileDescriptor _ = packedFileDescriptor- fieldsByTag- = let- dest__field_descriptor- = Data.ProtoLens.FieldDescriptor- "dest"- (Data.ProtoLens.ScalarField Data.ProtoLens.BytesField ::- Data.ProtoLens.FieldTypeDescriptor Data.ByteString.ByteString)- (Data.ProtoLens.PlainField- Data.ProtoLens.Optional (Data.ProtoLens.Field.field @"dest")) ::- Data.ProtoLens.FieldDescriptor RouteFeeRequest- amtSat__field_descriptor- = Data.ProtoLens.FieldDescriptor- "amt_sat"- (Data.ProtoLens.ScalarField Data.ProtoLens.Int64Field ::- Data.ProtoLens.FieldTypeDescriptor Data.Int.Int64)- (Data.ProtoLens.PlainField- Data.ProtoLens.Optional (Data.ProtoLens.Field.field @"amtSat")) ::- Data.ProtoLens.FieldDescriptor RouteFeeRequest- in- Data.Map.fromList- [(Data.ProtoLens.Tag 1, dest__field_descriptor),- (Data.ProtoLens.Tag 2, amtSat__field_descriptor)]- unknownFields- = Lens.Family2.Unchecked.lens- _RouteFeeRequest'_unknownFields- (\ x__ y__ -> x__ {_RouteFeeRequest'_unknownFields = y__})- defMessage- = RouteFeeRequest'_constructor- {_RouteFeeRequest'dest = Data.ProtoLens.fieldDefault,- _RouteFeeRequest'amtSat = Data.ProtoLens.fieldDefault,- _RouteFeeRequest'_unknownFields = []}- parseMessage- = let- loop ::- RouteFeeRequest- -> Data.ProtoLens.Encoding.Bytes.Parser RouteFeeRequest- loop x- = do end <- Data.ProtoLens.Encoding.Bytes.atEnd- if end then- do (let missing = []- in- if Prelude.null missing then- Prelude.return ()- else- Prelude.fail- ((Prelude.++)- "Missing required fields: "- (Prelude.show (missing :: [Prelude.String]))))- Prelude.return- (Lens.Family2.over- Data.ProtoLens.unknownFields (\ !t -> Prelude.reverse t) x)- else- do tag <- Data.ProtoLens.Encoding.Bytes.getVarInt- case tag of- 10- -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)- (do len <- Data.ProtoLens.Encoding.Bytes.getVarInt- Data.ProtoLens.Encoding.Bytes.getBytes- (Prelude.fromIntegral len))- "dest"- loop (Lens.Family2.set (Data.ProtoLens.Field.field @"dest") y x)- 16- -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)- (Prelude.fmap- Prelude.fromIntegral- Data.ProtoLens.Encoding.Bytes.getVarInt)- "amt_sat"- loop (Lens.Family2.set (Data.ProtoLens.Field.field @"amtSat") y x)- wire- -> do !y <- Data.ProtoLens.Encoding.Wire.parseTaggedValueFromWire- wire- loop- (Lens.Family2.over- Data.ProtoLens.unknownFields (\ !t -> (:) y t) x)- in- (Data.ProtoLens.Encoding.Bytes.<?>)- (do loop Data.ProtoLens.defMessage) "RouteFeeRequest"- buildMessage- = \ _x- -> (Data.Monoid.<>)- (let _v = Lens.Family2.view (Data.ProtoLens.Field.field @"dest") _x- in- if (Prelude.==) _v Data.ProtoLens.fieldDefault then- Data.Monoid.mempty- else- (Data.Monoid.<>)- (Data.ProtoLens.Encoding.Bytes.putVarInt 10)- ((\ bs- -> (Data.Monoid.<>)- (Data.ProtoLens.Encoding.Bytes.putVarInt- (Prelude.fromIntegral (Data.ByteString.length bs)))- (Data.ProtoLens.Encoding.Bytes.putBytes bs))- _v))- ((Data.Monoid.<>)- (let- _v = Lens.Family2.view (Data.ProtoLens.Field.field @"amtSat") _x- in- if (Prelude.==) _v Data.ProtoLens.fieldDefault then- Data.Monoid.mempty- else- (Data.Monoid.<>)- (Data.ProtoLens.Encoding.Bytes.putVarInt 16)- ((Prelude..)- Data.ProtoLens.Encoding.Bytes.putVarInt Prelude.fromIntegral _v))- (Data.ProtoLens.Encoding.Wire.buildFieldSet- (Lens.Family2.view Data.ProtoLens.unknownFields _x)))-instance Control.DeepSeq.NFData RouteFeeRequest where- rnf- = \ x__- -> Control.DeepSeq.deepseq- (_RouteFeeRequest'_unknownFields x__)- (Control.DeepSeq.deepseq- (_RouteFeeRequest'dest x__)- (Control.DeepSeq.deepseq (_RouteFeeRequest'amtSat x__) ()))-{- | Fields :- - * 'Proto.RouterGrpc_Fields.routingFeeMsat' @:: Lens' RouteFeeResponse Data.Int.Int64@- * 'Proto.RouterGrpc_Fields.timeLockDelay' @:: Lens' RouteFeeResponse Data.Int.Int64@ -}-data RouteFeeResponse- = RouteFeeResponse'_constructor {_RouteFeeResponse'routingFeeMsat :: !Data.Int.Int64,- _RouteFeeResponse'timeLockDelay :: !Data.Int.Int64,- _RouteFeeResponse'_unknownFields :: !Data.ProtoLens.FieldSet}- deriving stock (Prelude.Eq, Prelude.Ord)-instance Prelude.Show RouteFeeResponse where- showsPrec _ __x __s- = Prelude.showChar- '{'- (Prelude.showString- (Data.ProtoLens.showMessageShort __x) (Prelude.showChar '}' __s))-instance Data.ProtoLens.Field.HasField RouteFeeResponse "routingFeeMsat" Data.Int.Int64 where- fieldOf _- = (Prelude..)- (Lens.Family2.Unchecked.lens- _RouteFeeResponse'routingFeeMsat- (\ x__ y__ -> x__ {_RouteFeeResponse'routingFeeMsat = y__}))- Prelude.id-instance Data.ProtoLens.Field.HasField RouteFeeResponse "timeLockDelay" Data.Int.Int64 where- fieldOf _- = (Prelude..)- (Lens.Family2.Unchecked.lens- _RouteFeeResponse'timeLockDelay- (\ x__ y__ -> x__ {_RouteFeeResponse'timeLockDelay = y__}))- Prelude.id-instance Data.ProtoLens.Message RouteFeeResponse where- messageName _ = Data.Text.pack "routerrpc.RouteFeeResponse"- packedMessageDescriptor _- = "\n\- \\DLERouteFeeResponse\DC2(\n\- \\DLErouting_fee_msat\CAN\SOH \SOH(\ETXR\SOroutingFeeMsat\DC2&\n\- \\SItime_lock_delay\CAN\STX \SOH(\ETXR\rtimeLockDelay"- packedFileDescriptor _ = packedFileDescriptor- fieldsByTag- = let- routingFeeMsat__field_descriptor- = Data.ProtoLens.FieldDescriptor- "routing_fee_msat"- (Data.ProtoLens.ScalarField Data.ProtoLens.Int64Field ::- Data.ProtoLens.FieldTypeDescriptor Data.Int.Int64)- (Data.ProtoLens.PlainField- Data.ProtoLens.Optional- (Data.ProtoLens.Field.field @"routingFeeMsat")) ::- Data.ProtoLens.FieldDescriptor RouteFeeResponse- timeLockDelay__field_descriptor- = Data.ProtoLens.FieldDescriptor- "time_lock_delay"- (Data.ProtoLens.ScalarField Data.ProtoLens.Int64Field ::- Data.ProtoLens.FieldTypeDescriptor Data.Int.Int64)- (Data.ProtoLens.PlainField- Data.ProtoLens.Optional- (Data.ProtoLens.Field.field @"timeLockDelay")) ::- Data.ProtoLens.FieldDescriptor RouteFeeResponse- in- Data.Map.fromList- [(Data.ProtoLens.Tag 1, routingFeeMsat__field_descriptor),- (Data.ProtoLens.Tag 2, timeLockDelay__field_descriptor)]- unknownFields- = Lens.Family2.Unchecked.lens- _RouteFeeResponse'_unknownFields- (\ x__ y__ -> x__ {_RouteFeeResponse'_unknownFields = y__})- defMessage- = RouteFeeResponse'_constructor- {_RouteFeeResponse'routingFeeMsat = Data.ProtoLens.fieldDefault,- _RouteFeeResponse'timeLockDelay = Data.ProtoLens.fieldDefault,- _RouteFeeResponse'_unknownFields = []}- parseMessage- = let- loop ::- RouteFeeResponse- -> Data.ProtoLens.Encoding.Bytes.Parser RouteFeeResponse- loop x- = do end <- Data.ProtoLens.Encoding.Bytes.atEnd- if end then- do (let missing = []- in- if Prelude.null missing then- Prelude.return ()- else- Prelude.fail- ((Prelude.++)- "Missing required fields: "- (Prelude.show (missing :: [Prelude.String]))))- Prelude.return- (Lens.Family2.over- Data.ProtoLens.unknownFields (\ !t -> Prelude.reverse t) x)- else- do tag <- Data.ProtoLens.Encoding.Bytes.getVarInt- case tag of- 8 -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)- (Prelude.fmap- Prelude.fromIntegral- Data.ProtoLens.Encoding.Bytes.getVarInt)- "routing_fee_msat"- loop- (Lens.Family2.set- (Data.ProtoLens.Field.field @"routingFeeMsat") y x)- 16- -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)- (Prelude.fmap- Prelude.fromIntegral- Data.ProtoLens.Encoding.Bytes.getVarInt)- "time_lock_delay"- loop- (Lens.Family2.set- (Data.ProtoLens.Field.field @"timeLockDelay") y x)- wire- -> do !y <- Data.ProtoLens.Encoding.Wire.parseTaggedValueFromWire- wire- loop- (Lens.Family2.over- Data.ProtoLens.unknownFields (\ !t -> (:) y t) x)- in- (Data.ProtoLens.Encoding.Bytes.<?>)- (do loop Data.ProtoLens.defMessage) "RouteFeeResponse"- buildMessage- = \ _x- -> (Data.Monoid.<>)- (let- _v- = Lens.Family2.view- (Data.ProtoLens.Field.field @"routingFeeMsat") _x- in- if (Prelude.==) _v Data.ProtoLens.fieldDefault then- Data.Monoid.mempty- else- (Data.Monoid.<>)- (Data.ProtoLens.Encoding.Bytes.putVarInt 8)- ((Prelude..)- Data.ProtoLens.Encoding.Bytes.putVarInt Prelude.fromIntegral _v))- ((Data.Monoid.<>)- (let- _v- = Lens.Family2.view- (Data.ProtoLens.Field.field @"timeLockDelay") _x- in- if (Prelude.==) _v Data.ProtoLens.fieldDefault then- Data.Monoid.mempty- else- (Data.Monoid.<>)- (Data.ProtoLens.Encoding.Bytes.putVarInt 16)- ((Prelude..)- Data.ProtoLens.Encoding.Bytes.putVarInt Prelude.fromIntegral _v))- (Data.ProtoLens.Encoding.Wire.buildFieldSet- (Lens.Family2.view Data.ProtoLens.unknownFields _x)))-instance Control.DeepSeq.NFData RouteFeeResponse where- rnf- = \ x__- -> Control.DeepSeq.deepseq- (_RouteFeeResponse'_unknownFields x__)- (Control.DeepSeq.deepseq- (_RouteFeeResponse'routingFeeMsat x__)- (Control.DeepSeq.deepseq (_RouteFeeResponse'timeLockDelay x__) ()))-{- | Fields :- - * 'Proto.RouterGrpc_Fields.dest' @:: Lens' SendPaymentRequest Data.ByteString.ByteString@- * 'Proto.RouterGrpc_Fields.amt' @:: Lens' SendPaymentRequest Data.Int.Int64@- * 'Proto.RouterGrpc_Fields.amtMsat' @:: Lens' SendPaymentRequest Data.Int.Int64@- * 'Proto.RouterGrpc_Fields.paymentHash' @:: Lens' SendPaymentRequest Data.ByteString.ByteString@- * 'Proto.RouterGrpc_Fields.finalCltvDelta' @:: Lens' SendPaymentRequest Data.Int.Int32@- * 'Proto.RouterGrpc_Fields.paymentAddr' @:: Lens' SendPaymentRequest Data.ByteString.ByteString@- * 'Proto.RouterGrpc_Fields.paymentRequest' @:: Lens' SendPaymentRequest Data.Text.Text@- * 'Proto.RouterGrpc_Fields.timeoutSeconds' @:: Lens' SendPaymentRequest Data.Int.Int32@- * 'Proto.RouterGrpc_Fields.feeLimitSat' @:: Lens' SendPaymentRequest Data.Int.Int64@- * 'Proto.RouterGrpc_Fields.feeLimitMsat' @:: Lens' SendPaymentRequest Data.Int.Int64@- * 'Proto.RouterGrpc_Fields.outgoingChanId' @:: Lens' SendPaymentRequest Data.Word.Word64@- * 'Proto.RouterGrpc_Fields.outgoingChanIds' @:: Lens' SendPaymentRequest [Data.Word.Word64]@- * 'Proto.RouterGrpc_Fields.vec'outgoingChanIds' @:: Lens' SendPaymentRequest (Data.Vector.Unboxed.Vector Data.Word.Word64)@- * 'Proto.RouterGrpc_Fields.lastHopPubkey' @:: Lens' SendPaymentRequest Data.ByteString.ByteString@- * 'Proto.RouterGrpc_Fields.cltvLimit' @:: Lens' SendPaymentRequest Data.Int.Int32@- * 'Proto.RouterGrpc_Fields.routeHints' @:: Lens' SendPaymentRequest [Proto.LndGrpc.RouteHint]@- * 'Proto.RouterGrpc_Fields.vec'routeHints' @:: Lens' SendPaymentRequest (Data.Vector.Vector Proto.LndGrpc.RouteHint)@- * 'Proto.RouterGrpc_Fields.destCustomRecords' @:: Lens' SendPaymentRequest (Data.Map.Map Data.Word.Word64 Data.ByteString.ByteString)@- * 'Proto.RouterGrpc_Fields.allowSelfPayment' @:: Lens' SendPaymentRequest Prelude.Bool@- * 'Proto.RouterGrpc_Fields.destFeatures' @:: Lens' SendPaymentRequest [Proto.LndGrpc.FeatureBit]@- * 'Proto.RouterGrpc_Fields.vec'destFeatures' @:: Lens' SendPaymentRequest (Data.Vector.Vector Proto.LndGrpc.FeatureBit)@- * 'Proto.RouterGrpc_Fields.maxParts' @:: Lens' SendPaymentRequest Data.Word.Word32@- * 'Proto.RouterGrpc_Fields.noInflightUpdates' @:: Lens' SendPaymentRequest Prelude.Bool@- * 'Proto.RouterGrpc_Fields.maxShardSizeMsat' @:: Lens' SendPaymentRequest Data.Word.Word64@- * 'Proto.RouterGrpc_Fields.amp' @:: Lens' SendPaymentRequest Prelude.Bool@ -}-data SendPaymentRequest- = SendPaymentRequest'_constructor {_SendPaymentRequest'dest :: !Data.ByteString.ByteString,- _SendPaymentRequest'amt :: !Data.Int.Int64,- _SendPaymentRequest'amtMsat :: !Data.Int.Int64,- _SendPaymentRequest'paymentHash :: !Data.ByteString.ByteString,- _SendPaymentRequest'finalCltvDelta :: !Data.Int.Int32,- _SendPaymentRequest'paymentAddr :: !Data.ByteString.ByteString,- _SendPaymentRequest'paymentRequest :: !Data.Text.Text,- _SendPaymentRequest'timeoutSeconds :: !Data.Int.Int32,- _SendPaymentRequest'feeLimitSat :: !Data.Int.Int64,- _SendPaymentRequest'feeLimitMsat :: !Data.Int.Int64,- _SendPaymentRequest'outgoingChanId :: !Data.Word.Word64,- _SendPaymentRequest'outgoingChanIds :: !(Data.Vector.Unboxed.Vector Data.Word.Word64),- _SendPaymentRequest'lastHopPubkey :: !Data.ByteString.ByteString,- _SendPaymentRequest'cltvLimit :: !Data.Int.Int32,- _SendPaymentRequest'routeHints :: !(Data.Vector.Vector Proto.LndGrpc.RouteHint),- _SendPaymentRequest'destCustomRecords :: !(Data.Map.Map Data.Word.Word64 Data.ByteString.ByteString),- _SendPaymentRequest'allowSelfPayment :: !Prelude.Bool,- _SendPaymentRequest'destFeatures :: !(Data.Vector.Vector Proto.LndGrpc.FeatureBit),- _SendPaymentRequest'maxParts :: !Data.Word.Word32,- _SendPaymentRequest'noInflightUpdates :: !Prelude.Bool,- _SendPaymentRequest'maxShardSizeMsat :: !Data.Word.Word64,- _SendPaymentRequest'amp :: !Prelude.Bool,- _SendPaymentRequest'_unknownFields :: !Data.ProtoLens.FieldSet}- deriving stock (Prelude.Eq, Prelude.Ord)-instance Prelude.Show SendPaymentRequest where- showsPrec _ __x __s- = Prelude.showChar- '{'- (Prelude.showString- (Data.ProtoLens.showMessageShort __x) (Prelude.showChar '}' __s))-instance Data.ProtoLens.Field.HasField SendPaymentRequest "dest" Data.ByteString.ByteString where- fieldOf _- = (Prelude..)- (Lens.Family2.Unchecked.lens- _SendPaymentRequest'dest- (\ x__ y__ -> x__ {_SendPaymentRequest'dest = y__}))- Prelude.id-instance Data.ProtoLens.Field.HasField SendPaymentRequest "amt" Data.Int.Int64 where- fieldOf _- = (Prelude..)- (Lens.Family2.Unchecked.lens- _SendPaymentRequest'amt- (\ x__ y__ -> x__ {_SendPaymentRequest'amt = y__}))- Prelude.id-instance Data.ProtoLens.Field.HasField SendPaymentRequest "amtMsat" Data.Int.Int64 where- fieldOf _- = (Prelude..)- (Lens.Family2.Unchecked.lens- _SendPaymentRequest'amtMsat- (\ x__ y__ -> x__ {_SendPaymentRequest'amtMsat = y__}))- Prelude.id-instance Data.ProtoLens.Field.HasField SendPaymentRequest "paymentHash" Data.ByteString.ByteString where- fieldOf _- = (Prelude..)- (Lens.Family2.Unchecked.lens- _SendPaymentRequest'paymentHash- (\ x__ y__ -> x__ {_SendPaymentRequest'paymentHash = y__}))- Prelude.id-instance Data.ProtoLens.Field.HasField SendPaymentRequest "finalCltvDelta" Data.Int.Int32 where- fieldOf _- = (Prelude..)- (Lens.Family2.Unchecked.lens- _SendPaymentRequest'finalCltvDelta- (\ x__ y__ -> x__ {_SendPaymentRequest'finalCltvDelta = y__}))- Prelude.id-instance Data.ProtoLens.Field.HasField SendPaymentRequest "paymentAddr" Data.ByteString.ByteString where- fieldOf _- = (Prelude..)- (Lens.Family2.Unchecked.lens- _SendPaymentRequest'paymentAddr- (\ x__ y__ -> x__ {_SendPaymentRequest'paymentAddr = y__}))- Prelude.id-instance Data.ProtoLens.Field.HasField SendPaymentRequest "paymentRequest" Data.Text.Text where- fieldOf _- = (Prelude..)- (Lens.Family2.Unchecked.lens- _SendPaymentRequest'paymentRequest- (\ x__ y__ -> x__ {_SendPaymentRequest'paymentRequest = y__}))- Prelude.id-instance Data.ProtoLens.Field.HasField SendPaymentRequest "timeoutSeconds" Data.Int.Int32 where- fieldOf _- = (Prelude..)- (Lens.Family2.Unchecked.lens- _SendPaymentRequest'timeoutSeconds- (\ x__ y__ -> x__ {_SendPaymentRequest'timeoutSeconds = y__}))- Prelude.id-instance Data.ProtoLens.Field.HasField SendPaymentRequest "feeLimitSat" Data.Int.Int64 where- fieldOf _- = (Prelude..)- (Lens.Family2.Unchecked.lens- _SendPaymentRequest'feeLimitSat- (\ x__ y__ -> x__ {_SendPaymentRequest'feeLimitSat = y__}))- Prelude.id-instance Data.ProtoLens.Field.HasField SendPaymentRequest "feeLimitMsat" Data.Int.Int64 where- fieldOf _- = (Prelude..)- (Lens.Family2.Unchecked.lens- _SendPaymentRequest'feeLimitMsat- (\ x__ y__ -> x__ {_SendPaymentRequest'feeLimitMsat = y__}))- Prelude.id-instance Data.ProtoLens.Field.HasField SendPaymentRequest "outgoingChanId" Data.Word.Word64 where- fieldOf _- = (Prelude..)- (Lens.Family2.Unchecked.lens- _SendPaymentRequest'outgoingChanId- (\ x__ y__ -> x__ {_SendPaymentRequest'outgoingChanId = y__}))- Prelude.id-instance Data.ProtoLens.Field.HasField SendPaymentRequest "outgoingChanIds" [Data.Word.Word64] where- fieldOf _- = (Prelude..)- (Lens.Family2.Unchecked.lens- _SendPaymentRequest'outgoingChanIds- (\ x__ y__ -> x__ {_SendPaymentRequest'outgoingChanIds = y__}))- (Lens.Family2.Unchecked.lens- Data.Vector.Generic.toList- (\ _ y__ -> Data.Vector.Generic.fromList y__))-instance Data.ProtoLens.Field.HasField SendPaymentRequest "vec'outgoingChanIds" (Data.Vector.Unboxed.Vector Data.Word.Word64) where- fieldOf _- = (Prelude..)- (Lens.Family2.Unchecked.lens- _SendPaymentRequest'outgoingChanIds- (\ x__ y__ -> x__ {_SendPaymentRequest'outgoingChanIds = y__}))- Prelude.id-instance Data.ProtoLens.Field.HasField SendPaymentRequest "lastHopPubkey" Data.ByteString.ByteString where- fieldOf _- = (Prelude..)- (Lens.Family2.Unchecked.lens- _SendPaymentRequest'lastHopPubkey- (\ x__ y__ -> x__ {_SendPaymentRequest'lastHopPubkey = y__}))- Prelude.id-instance Data.ProtoLens.Field.HasField SendPaymentRequest "cltvLimit" Data.Int.Int32 where- fieldOf _- = (Prelude..)- (Lens.Family2.Unchecked.lens- _SendPaymentRequest'cltvLimit- (\ x__ y__ -> x__ {_SendPaymentRequest'cltvLimit = y__}))- Prelude.id-instance Data.ProtoLens.Field.HasField SendPaymentRequest "routeHints" [Proto.LndGrpc.RouteHint] where- fieldOf _- = (Prelude..)- (Lens.Family2.Unchecked.lens- _SendPaymentRequest'routeHints- (\ x__ y__ -> x__ {_SendPaymentRequest'routeHints = y__}))- (Lens.Family2.Unchecked.lens- Data.Vector.Generic.toList- (\ _ y__ -> Data.Vector.Generic.fromList y__))-instance Data.ProtoLens.Field.HasField SendPaymentRequest "vec'routeHints" (Data.Vector.Vector Proto.LndGrpc.RouteHint) where- fieldOf _- = (Prelude..)- (Lens.Family2.Unchecked.lens- _SendPaymentRequest'routeHints- (\ x__ y__ -> x__ {_SendPaymentRequest'routeHints = y__}))- Prelude.id-instance Data.ProtoLens.Field.HasField SendPaymentRequest "destCustomRecords" (Data.Map.Map Data.Word.Word64 Data.ByteString.ByteString) where- fieldOf _- = (Prelude..)- (Lens.Family2.Unchecked.lens- _SendPaymentRequest'destCustomRecords- (\ x__ y__ -> x__ {_SendPaymentRequest'destCustomRecords = y__}))- Prelude.id-instance Data.ProtoLens.Field.HasField SendPaymentRequest "allowSelfPayment" Prelude.Bool where- fieldOf _- = (Prelude..)- (Lens.Family2.Unchecked.lens- _SendPaymentRequest'allowSelfPayment- (\ x__ y__ -> x__ {_SendPaymentRequest'allowSelfPayment = y__}))- Prelude.id-instance Data.ProtoLens.Field.HasField SendPaymentRequest "destFeatures" [Proto.LndGrpc.FeatureBit] where- fieldOf _- = (Prelude..)- (Lens.Family2.Unchecked.lens- _SendPaymentRequest'destFeatures- (\ x__ y__ -> x__ {_SendPaymentRequest'destFeatures = y__}))- (Lens.Family2.Unchecked.lens- Data.Vector.Generic.toList- (\ _ y__ -> Data.Vector.Generic.fromList y__))-instance Data.ProtoLens.Field.HasField SendPaymentRequest "vec'destFeatures" (Data.Vector.Vector Proto.LndGrpc.FeatureBit) where- fieldOf _- = (Prelude..)- (Lens.Family2.Unchecked.lens- _SendPaymentRequest'destFeatures- (\ x__ y__ -> x__ {_SendPaymentRequest'destFeatures = y__}))- Prelude.id-instance Data.ProtoLens.Field.HasField SendPaymentRequest "maxParts" Data.Word.Word32 where- fieldOf _- = (Prelude..)- (Lens.Family2.Unchecked.lens- _SendPaymentRequest'maxParts- (\ x__ y__ -> x__ {_SendPaymentRequest'maxParts = y__}))- Prelude.id-instance Data.ProtoLens.Field.HasField SendPaymentRequest "noInflightUpdates" Prelude.Bool where- fieldOf _- = (Prelude..)- (Lens.Family2.Unchecked.lens- _SendPaymentRequest'noInflightUpdates- (\ x__ y__ -> x__ {_SendPaymentRequest'noInflightUpdates = y__}))- Prelude.id-instance Data.ProtoLens.Field.HasField SendPaymentRequest "maxShardSizeMsat" Data.Word.Word64 where- fieldOf _- = (Prelude..)- (Lens.Family2.Unchecked.lens- _SendPaymentRequest'maxShardSizeMsat- (\ x__ y__ -> x__ {_SendPaymentRequest'maxShardSizeMsat = y__}))- Prelude.id-instance Data.ProtoLens.Field.HasField SendPaymentRequest "amp" Prelude.Bool where- fieldOf _- = (Prelude..)- (Lens.Family2.Unchecked.lens- _SendPaymentRequest'amp- (\ x__ y__ -> x__ {_SendPaymentRequest'amp = y__}))- Prelude.id-instance Data.ProtoLens.Message SendPaymentRequest where- messageName _ = Data.Text.pack "routerrpc.SendPaymentRequest"- packedMessageDescriptor _- = "\n\- \\DC2SendPaymentRequest\DC2\DC2\n\- \\EOTdest\CAN\SOH \SOH(\fR\EOTdest\DC2\DLE\n\- \\ETXamt\CAN\STX \SOH(\ETXR\ETXamt\DC2\EM\n\- \\bamt_msat\CAN\f \SOH(\ETXR\aamtMsat\DC2!\n\- \\fpayment_hash\CAN\ETX \SOH(\fR\vpaymentHash\DC2(\n\- \\DLEfinal_cltv_delta\CAN\EOT \SOH(\ENQR\SOfinalCltvDelta\DC2!\n\- \\fpayment_addr\CAN\DC4 \SOH(\fR\vpaymentAddr\DC2'\n\- \\SIpayment_request\CAN\ENQ \SOH(\tR\SOpaymentRequest\DC2'\n\- \\SItimeout_seconds\CAN\ACK \SOH(\ENQR\SOtimeoutSeconds\DC2\"\n\- \\rfee_limit_sat\CAN\a \SOH(\ETXR\vfeeLimitSat\DC2$\n\- \\SOfee_limit_msat\CAN\r \SOH(\ETXR\ffeeLimitMsat\DC2.\n\- \\DLEoutgoing_chan_id\CAN\b \SOH(\EOTR\SOoutgoingChanIdB\EOT0\SOH\CAN\SOH\DC2*\n\- \\DC1outgoing_chan_ids\CAN\DC3 \ETX(\EOTR\SIoutgoingChanIds\DC2&\n\- \\SIlast_hop_pubkey\CAN\SO \SOH(\fR\rlastHopPubkey\DC2\GS\n\- \\n\- \cltv_limit\CAN\t \SOH(\ENQR\tcltvLimit\DC21\n\- \\vroute_hints\CAN\n\- \ \ETX(\v2\DLE.lnrpc.RouteHintR\n\- \routeHints\DC2d\n\- \\DC3dest_custom_records\CAN\v \ETX(\v24.routerrpc.SendPaymentRequest.DestCustomRecordsEntryR\DC1destCustomRecords\DC2,\n\- \\DC2allow_self_payment\CAN\SI \SOH(\bR\DLEallowSelfPayment\DC26\n\- \\rdest_features\CAN\DLE \ETX(\SO2\DC1.lnrpc.FeatureBitR\fdestFeatures\DC2\ESC\n\- \\tmax_parts\CAN\DC1 \SOH(\rR\bmaxParts\DC2.\n\- \\DC3no_inflight_updates\CAN\DC2 \SOH(\bR\DC1noInflightUpdates\DC2-\n\- \\DC3max_shard_size_msat\CAN\NAK \SOH(\EOTR\DLEmaxShardSizeMsat\DC2\DLE\n\- \\ETXamp\CAN\SYN \SOH(\bR\ETXamp\SUBD\n\- \\SYNDestCustomRecordsEntry\DC2\DLE\n\- \\ETXkey\CAN\SOH \SOH(\EOTR\ETXkey\DC2\DC4\n\- \\ENQvalue\CAN\STX \SOH(\fR\ENQvalue:\STX8\SOH"- packedFileDescriptor _ = packedFileDescriptor- fieldsByTag- = let- dest__field_descriptor- = Data.ProtoLens.FieldDescriptor- "dest"- (Data.ProtoLens.ScalarField Data.ProtoLens.BytesField ::- Data.ProtoLens.FieldTypeDescriptor Data.ByteString.ByteString)- (Data.ProtoLens.PlainField- Data.ProtoLens.Optional (Data.ProtoLens.Field.field @"dest")) ::- Data.ProtoLens.FieldDescriptor SendPaymentRequest- amt__field_descriptor- = Data.ProtoLens.FieldDescriptor- "amt"- (Data.ProtoLens.ScalarField Data.ProtoLens.Int64Field ::- Data.ProtoLens.FieldTypeDescriptor Data.Int.Int64)- (Data.ProtoLens.PlainField- Data.ProtoLens.Optional (Data.ProtoLens.Field.field @"amt")) ::- Data.ProtoLens.FieldDescriptor SendPaymentRequest- amtMsat__field_descriptor- = Data.ProtoLens.FieldDescriptor- "amt_msat"- (Data.ProtoLens.ScalarField Data.ProtoLens.Int64Field ::- Data.ProtoLens.FieldTypeDescriptor Data.Int.Int64)- (Data.ProtoLens.PlainField- Data.ProtoLens.Optional (Data.ProtoLens.Field.field @"amtMsat")) ::- Data.ProtoLens.FieldDescriptor SendPaymentRequest- paymentHash__field_descriptor- = Data.ProtoLens.FieldDescriptor- "payment_hash"- (Data.ProtoLens.ScalarField Data.ProtoLens.BytesField ::- Data.ProtoLens.FieldTypeDescriptor Data.ByteString.ByteString)- (Data.ProtoLens.PlainField- Data.ProtoLens.Optional- (Data.ProtoLens.Field.field @"paymentHash")) ::- Data.ProtoLens.FieldDescriptor SendPaymentRequest- finalCltvDelta__field_descriptor- = Data.ProtoLens.FieldDescriptor- "final_cltv_delta"- (Data.ProtoLens.ScalarField Data.ProtoLens.Int32Field ::- Data.ProtoLens.FieldTypeDescriptor Data.Int.Int32)- (Data.ProtoLens.PlainField- Data.ProtoLens.Optional- (Data.ProtoLens.Field.field @"finalCltvDelta")) ::- Data.ProtoLens.FieldDescriptor SendPaymentRequest- paymentAddr__field_descriptor- = Data.ProtoLens.FieldDescriptor- "payment_addr"- (Data.ProtoLens.ScalarField Data.ProtoLens.BytesField ::- Data.ProtoLens.FieldTypeDescriptor Data.ByteString.ByteString)- (Data.ProtoLens.PlainField- Data.ProtoLens.Optional- (Data.ProtoLens.Field.field @"paymentAddr")) ::- Data.ProtoLens.FieldDescriptor SendPaymentRequest- paymentRequest__field_descriptor- = Data.ProtoLens.FieldDescriptor- "payment_request"- (Data.ProtoLens.ScalarField Data.ProtoLens.StringField ::- Data.ProtoLens.FieldTypeDescriptor Data.Text.Text)- (Data.ProtoLens.PlainField- Data.ProtoLens.Optional- (Data.ProtoLens.Field.field @"paymentRequest")) ::- Data.ProtoLens.FieldDescriptor SendPaymentRequest- timeoutSeconds__field_descriptor- = Data.ProtoLens.FieldDescriptor- "timeout_seconds"- (Data.ProtoLens.ScalarField Data.ProtoLens.Int32Field ::- Data.ProtoLens.FieldTypeDescriptor Data.Int.Int32)- (Data.ProtoLens.PlainField- Data.ProtoLens.Optional- (Data.ProtoLens.Field.field @"timeoutSeconds")) ::- Data.ProtoLens.FieldDescriptor SendPaymentRequest- feeLimitSat__field_descriptor- = Data.ProtoLens.FieldDescriptor- "fee_limit_sat"- (Data.ProtoLens.ScalarField Data.ProtoLens.Int64Field ::- Data.ProtoLens.FieldTypeDescriptor Data.Int.Int64)- (Data.ProtoLens.PlainField- Data.ProtoLens.Optional- (Data.ProtoLens.Field.field @"feeLimitSat")) ::- Data.ProtoLens.FieldDescriptor SendPaymentRequest- feeLimitMsat__field_descriptor- = Data.ProtoLens.FieldDescriptor- "fee_limit_msat"- (Data.ProtoLens.ScalarField Data.ProtoLens.Int64Field ::- Data.ProtoLens.FieldTypeDescriptor Data.Int.Int64)- (Data.ProtoLens.PlainField- Data.ProtoLens.Optional- (Data.ProtoLens.Field.field @"feeLimitMsat")) ::- Data.ProtoLens.FieldDescriptor SendPaymentRequest- outgoingChanId__field_descriptor- = Data.ProtoLens.FieldDescriptor- "outgoing_chan_id"- (Data.ProtoLens.ScalarField Data.ProtoLens.UInt64Field ::- Data.ProtoLens.FieldTypeDescriptor Data.Word.Word64)- (Data.ProtoLens.PlainField- Data.ProtoLens.Optional- (Data.ProtoLens.Field.field @"outgoingChanId")) ::- Data.ProtoLens.FieldDescriptor SendPaymentRequest- outgoingChanIds__field_descriptor- = Data.ProtoLens.FieldDescriptor- "outgoing_chan_ids"- (Data.ProtoLens.ScalarField Data.ProtoLens.UInt64Field ::- Data.ProtoLens.FieldTypeDescriptor Data.Word.Word64)- (Data.ProtoLens.RepeatedField- Data.ProtoLens.Packed- (Data.ProtoLens.Field.field @"outgoingChanIds")) ::- Data.ProtoLens.FieldDescriptor SendPaymentRequest- lastHopPubkey__field_descriptor- = Data.ProtoLens.FieldDescriptor- "last_hop_pubkey"- (Data.ProtoLens.ScalarField Data.ProtoLens.BytesField ::- Data.ProtoLens.FieldTypeDescriptor Data.ByteString.ByteString)- (Data.ProtoLens.PlainField- Data.ProtoLens.Optional- (Data.ProtoLens.Field.field @"lastHopPubkey")) ::- Data.ProtoLens.FieldDescriptor SendPaymentRequest- cltvLimit__field_descriptor- = Data.ProtoLens.FieldDescriptor- "cltv_limit"- (Data.ProtoLens.ScalarField Data.ProtoLens.Int32Field ::- Data.ProtoLens.FieldTypeDescriptor Data.Int.Int32)- (Data.ProtoLens.PlainField- Data.ProtoLens.Optional- (Data.ProtoLens.Field.field @"cltvLimit")) ::- Data.ProtoLens.FieldDescriptor SendPaymentRequest- routeHints__field_descriptor- = Data.ProtoLens.FieldDescriptor- "route_hints"- (Data.ProtoLens.MessageField Data.ProtoLens.MessageType ::- Data.ProtoLens.FieldTypeDescriptor Proto.LndGrpc.RouteHint)- (Data.ProtoLens.RepeatedField- Data.ProtoLens.Unpacked- (Data.ProtoLens.Field.field @"routeHints")) ::- Data.ProtoLens.FieldDescriptor SendPaymentRequest- destCustomRecords__field_descriptor- = Data.ProtoLens.FieldDescriptor- "dest_custom_records"- (Data.ProtoLens.MessageField Data.ProtoLens.MessageType ::- Data.ProtoLens.FieldTypeDescriptor SendPaymentRequest'DestCustomRecordsEntry)- (Data.ProtoLens.MapField- (Data.ProtoLens.Field.field @"key")- (Data.ProtoLens.Field.field @"value")- (Data.ProtoLens.Field.field @"destCustomRecords")) ::- Data.ProtoLens.FieldDescriptor SendPaymentRequest- allowSelfPayment__field_descriptor- = Data.ProtoLens.FieldDescriptor- "allow_self_payment"- (Data.ProtoLens.ScalarField Data.ProtoLens.BoolField ::- Data.ProtoLens.FieldTypeDescriptor Prelude.Bool)- (Data.ProtoLens.PlainField- Data.ProtoLens.Optional- (Data.ProtoLens.Field.field @"allowSelfPayment")) ::- Data.ProtoLens.FieldDescriptor SendPaymentRequest- destFeatures__field_descriptor- = Data.ProtoLens.FieldDescriptor- "dest_features"- (Data.ProtoLens.ScalarField Data.ProtoLens.EnumField ::- Data.ProtoLens.FieldTypeDescriptor Proto.LndGrpc.FeatureBit)- (Data.ProtoLens.RepeatedField- Data.ProtoLens.Packed- (Data.ProtoLens.Field.field @"destFeatures")) ::- Data.ProtoLens.FieldDescriptor SendPaymentRequest- maxParts__field_descriptor- = Data.ProtoLens.FieldDescriptor- "max_parts"- (Data.ProtoLens.ScalarField Data.ProtoLens.UInt32Field ::- Data.ProtoLens.FieldTypeDescriptor Data.Word.Word32)- (Data.ProtoLens.PlainField- Data.ProtoLens.Optional- (Data.ProtoLens.Field.field @"maxParts")) ::- Data.ProtoLens.FieldDescriptor SendPaymentRequest- noInflightUpdates__field_descriptor- = Data.ProtoLens.FieldDescriptor- "no_inflight_updates"- (Data.ProtoLens.ScalarField Data.ProtoLens.BoolField ::- Data.ProtoLens.FieldTypeDescriptor Prelude.Bool)- (Data.ProtoLens.PlainField- Data.ProtoLens.Optional- (Data.ProtoLens.Field.field @"noInflightUpdates")) ::- Data.ProtoLens.FieldDescriptor SendPaymentRequest- maxShardSizeMsat__field_descriptor- = Data.ProtoLens.FieldDescriptor- "max_shard_size_msat"- (Data.ProtoLens.ScalarField Data.ProtoLens.UInt64Field ::- Data.ProtoLens.FieldTypeDescriptor Data.Word.Word64)- (Data.ProtoLens.PlainField- Data.ProtoLens.Optional- (Data.ProtoLens.Field.field @"maxShardSizeMsat")) ::- Data.ProtoLens.FieldDescriptor SendPaymentRequest- amp__field_descriptor- = Data.ProtoLens.FieldDescriptor- "amp"- (Data.ProtoLens.ScalarField Data.ProtoLens.BoolField ::- Data.ProtoLens.FieldTypeDescriptor Prelude.Bool)- (Data.ProtoLens.PlainField- Data.ProtoLens.Optional (Data.ProtoLens.Field.field @"amp")) ::- Data.ProtoLens.FieldDescriptor SendPaymentRequest- in- Data.Map.fromList- [(Data.ProtoLens.Tag 1, dest__field_descriptor),- (Data.ProtoLens.Tag 2, amt__field_descriptor),- (Data.ProtoLens.Tag 12, amtMsat__field_descriptor),- (Data.ProtoLens.Tag 3, paymentHash__field_descriptor),- (Data.ProtoLens.Tag 4, finalCltvDelta__field_descriptor),- (Data.ProtoLens.Tag 20, paymentAddr__field_descriptor),- (Data.ProtoLens.Tag 5, paymentRequest__field_descriptor),- (Data.ProtoLens.Tag 6, timeoutSeconds__field_descriptor),- (Data.ProtoLens.Tag 7, feeLimitSat__field_descriptor),- (Data.ProtoLens.Tag 13, feeLimitMsat__field_descriptor),- (Data.ProtoLens.Tag 8, outgoingChanId__field_descriptor),- (Data.ProtoLens.Tag 19, outgoingChanIds__field_descriptor),- (Data.ProtoLens.Tag 14, lastHopPubkey__field_descriptor),- (Data.ProtoLens.Tag 9, cltvLimit__field_descriptor),- (Data.ProtoLens.Tag 10, routeHints__field_descriptor),- (Data.ProtoLens.Tag 11, destCustomRecords__field_descriptor),- (Data.ProtoLens.Tag 15, allowSelfPayment__field_descriptor),- (Data.ProtoLens.Tag 16, destFeatures__field_descriptor),- (Data.ProtoLens.Tag 17, maxParts__field_descriptor),- (Data.ProtoLens.Tag 18, noInflightUpdates__field_descriptor),- (Data.ProtoLens.Tag 21, maxShardSizeMsat__field_descriptor),- (Data.ProtoLens.Tag 22, amp__field_descriptor)]- unknownFields- = Lens.Family2.Unchecked.lens- _SendPaymentRequest'_unknownFields- (\ x__ y__ -> x__ {_SendPaymentRequest'_unknownFields = y__})- defMessage- = SendPaymentRequest'_constructor- {_SendPaymentRequest'dest = Data.ProtoLens.fieldDefault,- _SendPaymentRequest'amt = Data.ProtoLens.fieldDefault,- _SendPaymentRequest'amtMsat = Data.ProtoLens.fieldDefault,- _SendPaymentRequest'paymentHash = Data.ProtoLens.fieldDefault,- _SendPaymentRequest'finalCltvDelta = Data.ProtoLens.fieldDefault,- _SendPaymentRequest'paymentAddr = Data.ProtoLens.fieldDefault,- _SendPaymentRequest'paymentRequest = Data.ProtoLens.fieldDefault,- _SendPaymentRequest'timeoutSeconds = Data.ProtoLens.fieldDefault,- _SendPaymentRequest'feeLimitSat = Data.ProtoLens.fieldDefault,- _SendPaymentRequest'feeLimitMsat = Data.ProtoLens.fieldDefault,- _SendPaymentRequest'outgoingChanId = Data.ProtoLens.fieldDefault,- _SendPaymentRequest'outgoingChanIds = Data.Vector.Generic.empty,- _SendPaymentRequest'lastHopPubkey = Data.ProtoLens.fieldDefault,- _SendPaymentRequest'cltvLimit = Data.ProtoLens.fieldDefault,- _SendPaymentRequest'routeHints = Data.Vector.Generic.empty,- _SendPaymentRequest'destCustomRecords = Data.Map.empty,- _SendPaymentRequest'allowSelfPayment = Data.ProtoLens.fieldDefault,- _SendPaymentRequest'destFeatures = Data.Vector.Generic.empty,- _SendPaymentRequest'maxParts = Data.ProtoLens.fieldDefault,- _SendPaymentRequest'noInflightUpdates = Data.ProtoLens.fieldDefault,- _SendPaymentRequest'maxShardSizeMsat = Data.ProtoLens.fieldDefault,- _SendPaymentRequest'amp = Data.ProtoLens.fieldDefault,- _SendPaymentRequest'_unknownFields = []}- parseMessage- = let- loop ::- SendPaymentRequest- -> Data.ProtoLens.Encoding.Growing.Growing Data.Vector.Vector Data.ProtoLens.Encoding.Growing.RealWorld Proto.LndGrpc.FeatureBit- -> Data.ProtoLens.Encoding.Growing.Growing Data.Vector.Unboxed.Vector Data.ProtoLens.Encoding.Growing.RealWorld Data.Word.Word64- -> Data.ProtoLens.Encoding.Growing.Growing Data.Vector.Vector Data.ProtoLens.Encoding.Growing.RealWorld Proto.LndGrpc.RouteHint- -> Data.ProtoLens.Encoding.Bytes.Parser SendPaymentRequest- loop- x- mutable'destFeatures- mutable'outgoingChanIds- mutable'routeHints- = do end <- Data.ProtoLens.Encoding.Bytes.atEnd- if end then- do frozen'destFeatures <- Data.ProtoLens.Encoding.Parser.Unsafe.unsafeLiftIO- (Data.ProtoLens.Encoding.Growing.unsafeFreeze- mutable'destFeatures)- frozen'outgoingChanIds <- Data.ProtoLens.Encoding.Parser.Unsafe.unsafeLiftIO- (Data.ProtoLens.Encoding.Growing.unsafeFreeze- mutable'outgoingChanIds)- frozen'routeHints <- Data.ProtoLens.Encoding.Parser.Unsafe.unsafeLiftIO- (Data.ProtoLens.Encoding.Growing.unsafeFreeze- mutable'routeHints)- (let missing = []- in- if Prelude.null missing then- Prelude.return ()- else- Prelude.fail- ((Prelude.++)- "Missing required fields: "- (Prelude.show (missing :: [Prelude.String]))))- Prelude.return- (Lens.Family2.over- Data.ProtoLens.unknownFields- (\ !t -> Prelude.reverse t)- (Lens.Family2.set- (Data.ProtoLens.Field.field @"vec'destFeatures")- frozen'destFeatures- (Lens.Family2.set- (Data.ProtoLens.Field.field @"vec'outgoingChanIds")- frozen'outgoingChanIds- (Lens.Family2.set- (Data.ProtoLens.Field.field @"vec'routeHints")- frozen'routeHints- x))))- else- do tag <- Data.ProtoLens.Encoding.Bytes.getVarInt- case tag of- 10- -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)- (do len <- Data.ProtoLens.Encoding.Bytes.getVarInt- Data.ProtoLens.Encoding.Bytes.getBytes- (Prelude.fromIntegral len))- "dest"- loop- (Lens.Family2.set (Data.ProtoLens.Field.field @"dest") y x)- mutable'destFeatures- mutable'outgoingChanIds- mutable'routeHints- 16- -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)- (Prelude.fmap- Prelude.fromIntegral- Data.ProtoLens.Encoding.Bytes.getVarInt)- "amt"- loop- (Lens.Family2.set (Data.ProtoLens.Field.field @"amt") y x)- mutable'destFeatures- mutable'outgoingChanIds- mutable'routeHints- 96- -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)- (Prelude.fmap- Prelude.fromIntegral- Data.ProtoLens.Encoding.Bytes.getVarInt)- "amt_msat"- loop- (Lens.Family2.set (Data.ProtoLens.Field.field @"amtMsat") y x)- mutable'destFeatures- mutable'outgoingChanIds- mutable'routeHints- 26- -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)- (do len <- Data.ProtoLens.Encoding.Bytes.getVarInt- Data.ProtoLens.Encoding.Bytes.getBytes- (Prelude.fromIntegral len))- "payment_hash"- loop- (Lens.Family2.set (Data.ProtoLens.Field.field @"paymentHash") y x)- mutable'destFeatures- mutable'outgoingChanIds- mutable'routeHints- 32- -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)- (Prelude.fmap- Prelude.fromIntegral- Data.ProtoLens.Encoding.Bytes.getVarInt)- "final_cltv_delta"- loop- (Lens.Family2.set- (Data.ProtoLens.Field.field @"finalCltvDelta") y x)- mutable'destFeatures- mutable'outgoingChanIds- mutable'routeHints- 162- -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)- (do len <- Data.ProtoLens.Encoding.Bytes.getVarInt- Data.ProtoLens.Encoding.Bytes.getBytes- (Prelude.fromIntegral len))- "payment_addr"- loop- (Lens.Family2.set (Data.ProtoLens.Field.field @"paymentAddr") y x)- mutable'destFeatures- mutable'outgoingChanIds- mutable'routeHints- 42- -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)- (do value <- do len <- Data.ProtoLens.Encoding.Bytes.getVarInt- Data.ProtoLens.Encoding.Bytes.getBytes- (Prelude.fromIntegral len)- Data.ProtoLens.Encoding.Bytes.runEither- (case Data.Text.Encoding.decodeUtf8' value of- (Prelude.Left err)- -> Prelude.Left (Prelude.show err)- (Prelude.Right r) -> Prelude.Right r))- "payment_request"- loop- (Lens.Family2.set- (Data.ProtoLens.Field.field @"paymentRequest") y x)- mutable'destFeatures- mutable'outgoingChanIds- mutable'routeHints- 48- -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)- (Prelude.fmap- Prelude.fromIntegral- Data.ProtoLens.Encoding.Bytes.getVarInt)- "timeout_seconds"- loop- (Lens.Family2.set- (Data.ProtoLens.Field.field @"timeoutSeconds") y x)- mutable'destFeatures- mutable'outgoingChanIds- mutable'routeHints- 56- -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)- (Prelude.fmap- Prelude.fromIntegral- Data.ProtoLens.Encoding.Bytes.getVarInt)- "fee_limit_sat"- loop- (Lens.Family2.set (Data.ProtoLens.Field.field @"feeLimitSat") y x)- mutable'destFeatures- mutable'outgoingChanIds- mutable'routeHints- 104- -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)- (Prelude.fmap- Prelude.fromIntegral- Data.ProtoLens.Encoding.Bytes.getVarInt)- "fee_limit_msat"- loop- (Lens.Family2.set- (Data.ProtoLens.Field.field @"feeLimitMsat") y x)- mutable'destFeatures- mutable'outgoingChanIds- mutable'routeHints- 64- -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)- Data.ProtoLens.Encoding.Bytes.getVarInt "outgoing_chan_id"- loop- (Lens.Family2.set- (Data.ProtoLens.Field.field @"outgoingChanId") y x)- mutable'destFeatures- mutable'outgoingChanIds- mutable'routeHints- 152- -> do !y <- (Data.ProtoLens.Encoding.Bytes.<?>)- Data.ProtoLens.Encoding.Bytes.getVarInt "outgoing_chan_ids"- v <- Data.ProtoLens.Encoding.Parser.Unsafe.unsafeLiftIO- (Data.ProtoLens.Encoding.Growing.append- mutable'outgoingChanIds y)- loop x mutable'destFeatures v mutable'routeHints- 154- -> do y <- do len <- Data.ProtoLens.Encoding.Bytes.getVarInt- Data.ProtoLens.Encoding.Bytes.isolate- (Prelude.fromIntegral len)- ((let- ploop qs- = do packedEnd <- Data.ProtoLens.Encoding.Bytes.atEnd- if packedEnd then- Prelude.return qs- else- do !q <- (Data.ProtoLens.Encoding.Bytes.<?>)- Data.ProtoLens.Encoding.Bytes.getVarInt- "outgoing_chan_ids"- qs' <- Data.ProtoLens.Encoding.Parser.Unsafe.unsafeLiftIO- (Data.ProtoLens.Encoding.Growing.append- qs q)- ploop qs'- in ploop)- mutable'outgoingChanIds)- loop x mutable'destFeatures y mutable'routeHints- 114- -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)- (do len <- Data.ProtoLens.Encoding.Bytes.getVarInt- Data.ProtoLens.Encoding.Bytes.getBytes- (Prelude.fromIntegral len))- "last_hop_pubkey"- loop- (Lens.Family2.set- (Data.ProtoLens.Field.field @"lastHopPubkey") y x)- mutable'destFeatures- mutable'outgoingChanIds- mutable'routeHints- 72- -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)- (Prelude.fmap- Prelude.fromIntegral- Data.ProtoLens.Encoding.Bytes.getVarInt)- "cltv_limit"- loop- (Lens.Family2.set (Data.ProtoLens.Field.field @"cltvLimit") y x)- mutable'destFeatures- mutable'outgoingChanIds- mutable'routeHints- 82- -> do !y <- (Data.ProtoLens.Encoding.Bytes.<?>)- (do len <- Data.ProtoLens.Encoding.Bytes.getVarInt- Data.ProtoLens.Encoding.Bytes.isolate- (Prelude.fromIntegral len)- Data.ProtoLens.parseMessage)- "route_hints"- v <- Data.ProtoLens.Encoding.Parser.Unsafe.unsafeLiftIO- (Data.ProtoLens.Encoding.Growing.append mutable'routeHints y)- loop x mutable'destFeatures mutable'outgoingChanIds v- 90- -> do !(entry :: SendPaymentRequest'DestCustomRecordsEntry) <- (Data.ProtoLens.Encoding.Bytes.<?>)- (do len <- Data.ProtoLens.Encoding.Bytes.getVarInt- Data.ProtoLens.Encoding.Bytes.isolate- (Prelude.fromIntegral- len)- Data.ProtoLens.parseMessage)- "dest_custom_records"- (let- key = Lens.Family2.view (Data.ProtoLens.Field.field @"key") entry- value- = Lens.Family2.view (Data.ProtoLens.Field.field @"value") entry- in- loop- (Lens.Family2.over- (Data.ProtoLens.Field.field @"destCustomRecords")- (\ !t -> Data.Map.insert key value t)- x)- mutable'destFeatures- mutable'outgoingChanIds- mutable'routeHints)- 120- -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)- (Prelude.fmap- ((Prelude./=) 0) Data.ProtoLens.Encoding.Bytes.getVarInt)- "allow_self_payment"- loop- (Lens.Family2.set- (Data.ProtoLens.Field.field @"allowSelfPayment") y x)- mutable'destFeatures- mutable'outgoingChanIds- mutable'routeHints- 128- -> do !y <- (Data.ProtoLens.Encoding.Bytes.<?>)- (Prelude.fmap- Prelude.toEnum- (Prelude.fmap- Prelude.fromIntegral- Data.ProtoLens.Encoding.Bytes.getVarInt))- "dest_features"- v <- Data.ProtoLens.Encoding.Parser.Unsafe.unsafeLiftIO- (Data.ProtoLens.Encoding.Growing.append- mutable'destFeatures y)- loop x v mutable'outgoingChanIds mutable'routeHints- 130- -> do y <- do len <- Data.ProtoLens.Encoding.Bytes.getVarInt- Data.ProtoLens.Encoding.Bytes.isolate- (Prelude.fromIntegral len)- ((let- ploop qs- = do packedEnd <- Data.ProtoLens.Encoding.Bytes.atEnd- if packedEnd then- Prelude.return qs- else- do !q <- (Data.ProtoLens.Encoding.Bytes.<?>)- (Prelude.fmap- Prelude.toEnum- (Prelude.fmap- Prelude.fromIntegral- Data.ProtoLens.Encoding.Bytes.getVarInt))- "dest_features"- qs' <- Data.ProtoLens.Encoding.Parser.Unsafe.unsafeLiftIO- (Data.ProtoLens.Encoding.Growing.append- qs q)- ploop qs'- in ploop)- mutable'destFeatures)- loop x y mutable'outgoingChanIds mutable'routeHints- 136- -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)- (Prelude.fmap- Prelude.fromIntegral- Data.ProtoLens.Encoding.Bytes.getVarInt)- "max_parts"- loop- (Lens.Family2.set (Data.ProtoLens.Field.field @"maxParts") y x)- mutable'destFeatures- mutable'outgoingChanIds- mutable'routeHints- 144- -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)- (Prelude.fmap- ((Prelude./=) 0) Data.ProtoLens.Encoding.Bytes.getVarInt)- "no_inflight_updates"- loop- (Lens.Family2.set- (Data.ProtoLens.Field.field @"noInflightUpdates") y x)- mutable'destFeatures- mutable'outgoingChanIds- mutable'routeHints- 168- -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)- Data.ProtoLens.Encoding.Bytes.getVarInt "max_shard_size_msat"- loop- (Lens.Family2.set- (Data.ProtoLens.Field.field @"maxShardSizeMsat") y x)- mutable'destFeatures- mutable'outgoingChanIds- mutable'routeHints- 176- -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)- (Prelude.fmap- ((Prelude./=) 0) Data.ProtoLens.Encoding.Bytes.getVarInt)- "amp"- loop- (Lens.Family2.set (Data.ProtoLens.Field.field @"amp") y x)- mutable'destFeatures- mutable'outgoingChanIds- mutable'routeHints- wire- -> do !y <- Data.ProtoLens.Encoding.Wire.parseTaggedValueFromWire- wire- loop- (Lens.Family2.over- Data.ProtoLens.unknownFields (\ !t -> (:) y t) x)- mutable'destFeatures- mutable'outgoingChanIds- mutable'routeHints- in- (Data.ProtoLens.Encoding.Bytes.<?>)- (do mutable'destFeatures <- Data.ProtoLens.Encoding.Parser.Unsafe.unsafeLiftIO- Data.ProtoLens.Encoding.Growing.new- mutable'outgoingChanIds <- Data.ProtoLens.Encoding.Parser.Unsafe.unsafeLiftIO- Data.ProtoLens.Encoding.Growing.new- mutable'routeHints <- Data.ProtoLens.Encoding.Parser.Unsafe.unsafeLiftIO- Data.ProtoLens.Encoding.Growing.new- loop- Data.ProtoLens.defMessage- mutable'destFeatures- mutable'outgoingChanIds- mutable'routeHints)- "SendPaymentRequest"- buildMessage- = \ _x- -> (Data.Monoid.<>)- (let _v = Lens.Family2.view (Data.ProtoLens.Field.field @"dest") _x- in- if (Prelude.==) _v Data.ProtoLens.fieldDefault then- Data.Monoid.mempty- else- (Data.Monoid.<>)- (Data.ProtoLens.Encoding.Bytes.putVarInt 10)- ((\ bs- -> (Data.Monoid.<>)- (Data.ProtoLens.Encoding.Bytes.putVarInt- (Prelude.fromIntegral (Data.ByteString.length bs)))- (Data.ProtoLens.Encoding.Bytes.putBytes bs))- _v))- ((Data.Monoid.<>)- (let _v = Lens.Family2.view (Data.ProtoLens.Field.field @"amt") _x- in- if (Prelude.==) _v Data.ProtoLens.fieldDefault then- Data.Monoid.mempty- else- (Data.Monoid.<>)- (Data.ProtoLens.Encoding.Bytes.putVarInt 16)- ((Prelude..)- Data.ProtoLens.Encoding.Bytes.putVarInt Prelude.fromIntegral _v))- ((Data.Monoid.<>)- (let- _v = Lens.Family2.view (Data.ProtoLens.Field.field @"amtMsat") _x- in- if (Prelude.==) _v Data.ProtoLens.fieldDefault then- Data.Monoid.mempty- else- (Data.Monoid.<>)- (Data.ProtoLens.Encoding.Bytes.putVarInt 96)- ((Prelude..)- Data.ProtoLens.Encoding.Bytes.putVarInt Prelude.fromIntegral _v))- ((Data.Monoid.<>)- (let- _v- = Lens.Family2.view (Data.ProtoLens.Field.field @"paymentHash") _x- in- if (Prelude.==) _v Data.ProtoLens.fieldDefault then- Data.Monoid.mempty- else- (Data.Monoid.<>)- (Data.ProtoLens.Encoding.Bytes.putVarInt 26)- ((\ bs- -> (Data.Monoid.<>)- (Data.ProtoLens.Encoding.Bytes.putVarInt- (Prelude.fromIntegral (Data.ByteString.length bs)))- (Data.ProtoLens.Encoding.Bytes.putBytes bs))- _v))- ((Data.Monoid.<>)- (let- _v- = Lens.Family2.view- (Data.ProtoLens.Field.field @"finalCltvDelta") _x- in- if (Prelude.==) _v Data.ProtoLens.fieldDefault then- Data.Monoid.mempty- else- (Data.Monoid.<>)- (Data.ProtoLens.Encoding.Bytes.putVarInt 32)- ((Prelude..)- Data.ProtoLens.Encoding.Bytes.putVarInt- Prelude.fromIntegral- _v))- ((Data.Monoid.<>)- (let- _v- = Lens.Family2.view (Data.ProtoLens.Field.field @"paymentAddr") _x- in- if (Prelude.==) _v Data.ProtoLens.fieldDefault then- Data.Monoid.mempty- else- (Data.Monoid.<>)- (Data.ProtoLens.Encoding.Bytes.putVarInt 162)- ((\ bs- -> (Data.Monoid.<>)- (Data.ProtoLens.Encoding.Bytes.putVarInt- (Prelude.fromIntegral (Data.ByteString.length bs)))- (Data.ProtoLens.Encoding.Bytes.putBytes bs))- _v))- ((Data.Monoid.<>)- (let- _v- = Lens.Family2.view- (Data.ProtoLens.Field.field @"paymentRequest") _x- in- if (Prelude.==) _v Data.ProtoLens.fieldDefault then- Data.Monoid.mempty- else- (Data.Monoid.<>)- (Data.ProtoLens.Encoding.Bytes.putVarInt 42)- ((Prelude..)- (\ bs- -> (Data.Monoid.<>)- (Data.ProtoLens.Encoding.Bytes.putVarInt- (Prelude.fromIntegral- (Data.ByteString.length bs)))- (Data.ProtoLens.Encoding.Bytes.putBytes bs))- Data.Text.Encoding.encodeUtf8- _v))- ((Data.Monoid.<>)- (let- _v- = Lens.Family2.view- (Data.ProtoLens.Field.field @"timeoutSeconds") _x- in- if (Prelude.==) _v Data.ProtoLens.fieldDefault then- Data.Monoid.mempty- else- (Data.Monoid.<>)- (Data.ProtoLens.Encoding.Bytes.putVarInt 48)- ((Prelude..)- Data.ProtoLens.Encoding.Bytes.putVarInt- Prelude.fromIntegral- _v))- ((Data.Monoid.<>)- (let- _v- = Lens.Family2.view- (Data.ProtoLens.Field.field @"feeLimitSat") _x- in- if (Prelude.==) _v Data.ProtoLens.fieldDefault then- Data.Monoid.mempty- else- (Data.Monoid.<>)- (Data.ProtoLens.Encoding.Bytes.putVarInt 56)- ((Prelude..)- Data.ProtoLens.Encoding.Bytes.putVarInt- Prelude.fromIntegral- _v))- ((Data.Monoid.<>)- (let- _v- = Lens.Family2.view- (Data.ProtoLens.Field.field @"feeLimitMsat") _x- in- if (Prelude.==) _v Data.ProtoLens.fieldDefault then- Data.Monoid.mempty- else- (Data.Monoid.<>)- (Data.ProtoLens.Encoding.Bytes.putVarInt 104)- ((Prelude..)- Data.ProtoLens.Encoding.Bytes.putVarInt- Prelude.fromIntegral- _v))- ((Data.Monoid.<>)- (let- _v- = Lens.Family2.view- (Data.ProtoLens.Field.field @"outgoingChanId")- _x- in- if (Prelude.==) _v Data.ProtoLens.fieldDefault then- Data.Monoid.mempty- else- (Data.Monoid.<>)- (Data.ProtoLens.Encoding.Bytes.putVarInt 64)- (Data.ProtoLens.Encoding.Bytes.putVarInt _v))- ((Data.Monoid.<>)- (let- p = Lens.Family2.view- (Data.ProtoLens.Field.field- @"vec'outgoingChanIds")- _x- in- if Data.Vector.Generic.null p then- Data.Monoid.mempty- else- (Data.Monoid.<>)- (Data.ProtoLens.Encoding.Bytes.putVarInt 154)- ((\ bs- -> (Data.Monoid.<>)- (Data.ProtoLens.Encoding.Bytes.putVarInt- (Prelude.fromIntegral- (Data.ByteString.length bs)))- (Data.ProtoLens.Encoding.Bytes.putBytes- bs))- (Data.ProtoLens.Encoding.Bytes.runBuilder- (Data.ProtoLens.Encoding.Bytes.foldMapBuilder- Data.ProtoLens.Encoding.Bytes.putVarInt- p))))- ((Data.Monoid.<>)- (let- _v- = Lens.Family2.view- (Data.ProtoLens.Field.field- @"lastHopPubkey")- _x- in- if (Prelude.==)- _v Data.ProtoLens.fieldDefault then- Data.Monoid.mempty- else- (Data.Monoid.<>)- (Data.ProtoLens.Encoding.Bytes.putVarInt- 114)- ((\ bs- -> (Data.Monoid.<>)- (Data.ProtoLens.Encoding.Bytes.putVarInt- (Prelude.fromIntegral- (Data.ByteString.length- bs)))- (Data.ProtoLens.Encoding.Bytes.putBytes- bs))- _v))- ((Data.Monoid.<>)- (let- _v- = Lens.Family2.view- (Data.ProtoLens.Field.field- @"cltvLimit")- _x- in- if (Prelude.==)- _v Data.ProtoLens.fieldDefault then- Data.Monoid.mempty- else- (Data.Monoid.<>)- (Data.ProtoLens.Encoding.Bytes.putVarInt- 72)- ((Prelude..)- Data.ProtoLens.Encoding.Bytes.putVarInt- Prelude.fromIntegral- _v))- ((Data.Monoid.<>)- (Data.ProtoLens.Encoding.Bytes.foldMapBuilder- (\ _v- -> (Data.Monoid.<>)- (Data.ProtoLens.Encoding.Bytes.putVarInt- 82)- ((Prelude..)- (\ bs- -> (Data.Monoid.<>)- (Data.ProtoLens.Encoding.Bytes.putVarInt- (Prelude.fromIntegral- (Data.ByteString.length- bs)))- (Data.ProtoLens.Encoding.Bytes.putBytes- bs))- Data.ProtoLens.encodeMessage- _v))- (Lens.Family2.view- (Data.ProtoLens.Field.field- @"vec'routeHints")- _x))- ((Data.Monoid.<>)- (Data.Monoid.mconcat- (Prelude.map- (\ _v- -> (Data.Monoid.<>)- (Data.ProtoLens.Encoding.Bytes.putVarInt- 90)- ((Prelude..)- (\ bs- -> (Data.Monoid.<>)- (Data.ProtoLens.Encoding.Bytes.putVarInt- (Prelude.fromIntegral- (Data.ByteString.length- bs)))- (Data.ProtoLens.Encoding.Bytes.putBytes- bs))- Data.ProtoLens.encodeMessage- (Lens.Family2.set- (Data.ProtoLens.Field.field- @"key")- (Prelude.fst _v)- (Lens.Family2.set- (Data.ProtoLens.Field.field- @"value")- (Prelude.snd _v)- (Data.ProtoLens.defMessage ::- SendPaymentRequest'DestCustomRecordsEntry)))))- (Data.Map.toList- (Lens.Family2.view- (Data.ProtoLens.Field.field- @"destCustomRecords")- _x))))- ((Data.Monoid.<>)- (let- _v- = Lens.Family2.view- (Data.ProtoLens.Field.field- @"allowSelfPayment")- _x- in- if (Prelude.==)- _v- Data.ProtoLens.fieldDefault then- Data.Monoid.mempty- else- (Data.Monoid.<>)- (Data.ProtoLens.Encoding.Bytes.putVarInt- 120)- ((Prelude..)- Data.ProtoLens.Encoding.Bytes.putVarInt- (\ b -> if b then 1 else 0)- _v))- ((Data.Monoid.<>)- (let- p = Lens.Family2.view- (Data.ProtoLens.Field.field- @"vec'destFeatures")- _x- in- if Data.Vector.Generic.null- p then- Data.Monoid.mempty- else- (Data.Monoid.<>)- (Data.ProtoLens.Encoding.Bytes.putVarInt- 130)- ((\ bs- -> (Data.Monoid.<>)- (Data.ProtoLens.Encoding.Bytes.putVarInt- (Prelude.fromIntegral- (Data.ByteString.length- bs)))- (Data.ProtoLens.Encoding.Bytes.putBytes- bs))- (Data.ProtoLens.Encoding.Bytes.runBuilder- (Data.ProtoLens.Encoding.Bytes.foldMapBuilder- ((Prelude..)- ((Prelude..)- Data.ProtoLens.Encoding.Bytes.putVarInt- Prelude.fromIntegral)- Prelude.fromEnum)- p))))- ((Data.Monoid.<>)- (let- _v- = Lens.Family2.view- (Data.ProtoLens.Field.field- @"maxParts")- _x- in- if (Prelude.==)- _v- Data.ProtoLens.fieldDefault then- Data.Monoid.mempty- else- (Data.Monoid.<>)- (Data.ProtoLens.Encoding.Bytes.putVarInt- 136)- ((Prelude..)- Data.ProtoLens.Encoding.Bytes.putVarInt- Prelude.fromIntegral- _v))- ((Data.Monoid.<>)- (let- _v- = Lens.Family2.view- (Data.ProtoLens.Field.field- @"noInflightUpdates")- _x- in- if (Prelude.==)- _v- Data.ProtoLens.fieldDefault then- Data.Monoid.mempty- else- (Data.Monoid.<>)- (Data.ProtoLens.Encoding.Bytes.putVarInt- 144)- ((Prelude..)- Data.ProtoLens.Encoding.Bytes.putVarInt- (\ b- -> if b then- 1- else- 0)- _v))- ((Data.Monoid.<>)- (let- _v- = Lens.Family2.view- (Data.ProtoLens.Field.field- @"maxShardSizeMsat")- _x- in- if (Prelude.==)- _v- Data.ProtoLens.fieldDefault then- Data.Monoid.mempty- else- (Data.Monoid.<>)- (Data.ProtoLens.Encoding.Bytes.putVarInt- 168)- (Data.ProtoLens.Encoding.Bytes.putVarInt- _v))- ((Data.Monoid.<>)- (let- _v- = Lens.Family2.view- (Data.ProtoLens.Field.field- @"amp")- _x- in- if (Prelude.==)- _v- Data.ProtoLens.fieldDefault then- Data.Monoid.mempty- else- (Data.Monoid.<>)- (Data.ProtoLens.Encoding.Bytes.putVarInt- 176)- ((Prelude..)- Data.ProtoLens.Encoding.Bytes.putVarInt- (\ b- -> if b then- 1- else- 0)- _v))- (Data.ProtoLens.Encoding.Wire.buildFieldSet- (Lens.Family2.view- Data.ProtoLens.unknownFields- _x)))))))))))))))))))))))-instance Control.DeepSeq.NFData SendPaymentRequest where- rnf- = \ x__- -> Control.DeepSeq.deepseq- (_SendPaymentRequest'_unknownFields x__)- (Control.DeepSeq.deepseq- (_SendPaymentRequest'dest x__)- (Control.DeepSeq.deepseq- (_SendPaymentRequest'amt x__)- (Control.DeepSeq.deepseq- (_SendPaymentRequest'amtMsat x__)- (Control.DeepSeq.deepseq- (_SendPaymentRequest'paymentHash x__)- (Control.DeepSeq.deepseq- (_SendPaymentRequest'finalCltvDelta x__)- (Control.DeepSeq.deepseq- (_SendPaymentRequest'paymentAddr x__)- (Control.DeepSeq.deepseq- (_SendPaymentRequest'paymentRequest x__)- (Control.DeepSeq.deepseq- (_SendPaymentRequest'timeoutSeconds x__)- (Control.DeepSeq.deepseq- (_SendPaymentRequest'feeLimitSat x__)- (Control.DeepSeq.deepseq- (_SendPaymentRequest'feeLimitMsat x__)- (Control.DeepSeq.deepseq- (_SendPaymentRequest'outgoingChanId x__)- (Control.DeepSeq.deepseq- (_SendPaymentRequest'outgoingChanIds x__)- (Control.DeepSeq.deepseq- (_SendPaymentRequest'lastHopPubkey x__)- (Control.DeepSeq.deepseq- (_SendPaymentRequest'cltvLimit x__)- (Control.DeepSeq.deepseq- (_SendPaymentRequest'routeHints x__)- (Control.DeepSeq.deepseq- (_SendPaymentRequest'destCustomRecords- x__)- (Control.DeepSeq.deepseq- (_SendPaymentRequest'allowSelfPayment- x__)- (Control.DeepSeq.deepseq- (_SendPaymentRequest'destFeatures- x__)- (Control.DeepSeq.deepseq- (_SendPaymentRequest'maxParts- x__)- (Control.DeepSeq.deepseq- (_SendPaymentRequest'noInflightUpdates- x__)- (Control.DeepSeq.deepseq- (_SendPaymentRequest'maxShardSizeMsat- x__)- (Control.DeepSeq.deepseq- (_SendPaymentRequest'amp- x__)- ()))))))))))))))))))))))-{- | Fields :- - * 'Proto.RouterGrpc_Fields.key' @:: Lens' SendPaymentRequest'DestCustomRecordsEntry Data.Word.Word64@- * 'Proto.RouterGrpc_Fields.value' @:: Lens' SendPaymentRequest'DestCustomRecordsEntry Data.ByteString.ByteString@ -}-data SendPaymentRequest'DestCustomRecordsEntry- = SendPaymentRequest'DestCustomRecordsEntry'_constructor {_SendPaymentRequest'DestCustomRecordsEntry'key :: !Data.Word.Word64,- _SendPaymentRequest'DestCustomRecordsEntry'value :: !Data.ByteString.ByteString,- _SendPaymentRequest'DestCustomRecordsEntry'_unknownFields :: !Data.ProtoLens.FieldSet}- deriving stock (Prelude.Eq, Prelude.Ord)-instance Prelude.Show SendPaymentRequest'DestCustomRecordsEntry where- showsPrec _ __x __s- = Prelude.showChar- '{'- (Prelude.showString- (Data.ProtoLens.showMessageShort __x) (Prelude.showChar '}' __s))-instance Data.ProtoLens.Field.HasField SendPaymentRequest'DestCustomRecordsEntry "key" Data.Word.Word64 where- fieldOf _- = (Prelude..)- (Lens.Family2.Unchecked.lens- _SendPaymentRequest'DestCustomRecordsEntry'key- (\ x__ y__- -> x__ {_SendPaymentRequest'DestCustomRecordsEntry'key = y__}))- Prelude.id-instance Data.ProtoLens.Field.HasField SendPaymentRequest'DestCustomRecordsEntry "value" Data.ByteString.ByteString where- fieldOf _- = (Prelude..)- (Lens.Family2.Unchecked.lens- _SendPaymentRequest'DestCustomRecordsEntry'value- (\ x__ y__- -> x__ {_SendPaymentRequest'DestCustomRecordsEntry'value = y__}))- Prelude.id-instance Data.ProtoLens.Message SendPaymentRequest'DestCustomRecordsEntry where- messageName _- = Data.Text.pack- "routerrpc.SendPaymentRequest.DestCustomRecordsEntry"- packedMessageDescriptor _- = "\n\- \\SYNDestCustomRecordsEntry\DC2\DLE\n\- \\ETXkey\CAN\SOH \SOH(\EOTR\ETXkey\DC2\DC4\n\- \\ENQvalue\CAN\STX \SOH(\fR\ENQvalue:\STX8\SOH"- packedFileDescriptor _ = packedFileDescriptor- fieldsByTag- = let- key__field_descriptor- = Data.ProtoLens.FieldDescriptor- "key"- (Data.ProtoLens.ScalarField Data.ProtoLens.UInt64Field ::- Data.ProtoLens.FieldTypeDescriptor Data.Word.Word64)- (Data.ProtoLens.PlainField- Data.ProtoLens.Optional (Data.ProtoLens.Field.field @"key")) ::- Data.ProtoLens.FieldDescriptor SendPaymentRequest'DestCustomRecordsEntry- value__field_descriptor- = Data.ProtoLens.FieldDescriptor- "value"- (Data.ProtoLens.ScalarField Data.ProtoLens.BytesField ::- Data.ProtoLens.FieldTypeDescriptor Data.ByteString.ByteString)- (Data.ProtoLens.PlainField- Data.ProtoLens.Optional (Data.ProtoLens.Field.field @"value")) ::- Data.ProtoLens.FieldDescriptor SendPaymentRequest'DestCustomRecordsEntry- in- Data.Map.fromList- [(Data.ProtoLens.Tag 1, key__field_descriptor),- (Data.ProtoLens.Tag 2, value__field_descriptor)]- unknownFields- = Lens.Family2.Unchecked.lens- _SendPaymentRequest'DestCustomRecordsEntry'_unknownFields- (\ x__ y__- -> x__- {_SendPaymentRequest'DestCustomRecordsEntry'_unknownFields = y__})- defMessage- = SendPaymentRequest'DestCustomRecordsEntry'_constructor- {_SendPaymentRequest'DestCustomRecordsEntry'key = Data.ProtoLens.fieldDefault,- _SendPaymentRequest'DestCustomRecordsEntry'value = Data.ProtoLens.fieldDefault,- _SendPaymentRequest'DestCustomRecordsEntry'_unknownFields = []}- parseMessage- = let- loop ::- SendPaymentRequest'DestCustomRecordsEntry- -> Data.ProtoLens.Encoding.Bytes.Parser SendPaymentRequest'DestCustomRecordsEntry- loop x- = do end <- Data.ProtoLens.Encoding.Bytes.atEnd- if end then- do (let missing = []- in- if Prelude.null missing then- Prelude.return ()- else- Prelude.fail- ((Prelude.++)- "Missing required fields: "- (Prelude.show (missing :: [Prelude.String]))))- Prelude.return- (Lens.Family2.over- Data.ProtoLens.unknownFields (\ !t -> Prelude.reverse t) x)- else- do tag <- Data.ProtoLens.Encoding.Bytes.getVarInt- case tag of- 8 -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)- Data.ProtoLens.Encoding.Bytes.getVarInt "key"- loop (Lens.Family2.set (Data.ProtoLens.Field.field @"key") y x)- 18- -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)- (do len <- Data.ProtoLens.Encoding.Bytes.getVarInt- Data.ProtoLens.Encoding.Bytes.getBytes- (Prelude.fromIntegral len))- "value"- loop (Lens.Family2.set (Data.ProtoLens.Field.field @"value") y x)- wire- -> do !y <- Data.ProtoLens.Encoding.Wire.parseTaggedValueFromWire- wire- loop- (Lens.Family2.over- Data.ProtoLens.unknownFields (\ !t -> (:) y t) x)- in- (Data.ProtoLens.Encoding.Bytes.<?>)- (do loop Data.ProtoLens.defMessage) "DestCustomRecordsEntry"- buildMessage- = \ _x- -> (Data.Monoid.<>)- (let _v = Lens.Family2.view (Data.ProtoLens.Field.field @"key") _x- in- if (Prelude.==) _v Data.ProtoLens.fieldDefault then- Data.Monoid.mempty- else- (Data.Monoid.<>)- (Data.ProtoLens.Encoding.Bytes.putVarInt 8)- (Data.ProtoLens.Encoding.Bytes.putVarInt _v))- ((Data.Monoid.<>)- (let- _v = Lens.Family2.view (Data.ProtoLens.Field.field @"value") _x- in- if (Prelude.==) _v Data.ProtoLens.fieldDefault then- Data.Monoid.mempty- else- (Data.Monoid.<>)- (Data.ProtoLens.Encoding.Bytes.putVarInt 18)- ((\ bs- -> (Data.Monoid.<>)- (Data.ProtoLens.Encoding.Bytes.putVarInt- (Prelude.fromIntegral (Data.ByteString.length bs)))- (Data.ProtoLens.Encoding.Bytes.putBytes bs))- _v))- (Data.ProtoLens.Encoding.Wire.buildFieldSet- (Lens.Family2.view Data.ProtoLens.unknownFields _x)))-instance Control.DeepSeq.NFData SendPaymentRequest'DestCustomRecordsEntry where- rnf- = \ x__- -> Control.DeepSeq.deepseq- (_SendPaymentRequest'DestCustomRecordsEntry'_unknownFields x__)- (Control.DeepSeq.deepseq- (_SendPaymentRequest'DestCustomRecordsEntry'key x__)- (Control.DeepSeq.deepseq- (_SendPaymentRequest'DestCustomRecordsEntry'value x__) ()))-{- | Fields :- - * 'Proto.RouterGrpc_Fields.paymentHash' @:: Lens' SendToRouteRequest Data.ByteString.ByteString@- * 'Proto.RouterGrpc_Fields.route' @:: Lens' SendToRouteRequest Proto.LndGrpc.Route@- * 'Proto.RouterGrpc_Fields.maybe'route' @:: Lens' SendToRouteRequest (Prelude.Maybe Proto.LndGrpc.Route)@ -}-data SendToRouteRequest- = SendToRouteRequest'_constructor {_SendToRouteRequest'paymentHash :: !Data.ByteString.ByteString,- _SendToRouteRequest'route :: !(Prelude.Maybe Proto.LndGrpc.Route),- _SendToRouteRequest'_unknownFields :: !Data.ProtoLens.FieldSet}- deriving stock (Prelude.Eq, Prelude.Ord)-instance Prelude.Show SendToRouteRequest where- showsPrec _ __x __s- = Prelude.showChar- '{'- (Prelude.showString- (Data.ProtoLens.showMessageShort __x) (Prelude.showChar '}' __s))-instance Data.ProtoLens.Field.HasField SendToRouteRequest "paymentHash" Data.ByteString.ByteString where- fieldOf _- = (Prelude..)- (Lens.Family2.Unchecked.lens- _SendToRouteRequest'paymentHash- (\ x__ y__ -> x__ {_SendToRouteRequest'paymentHash = y__}))- Prelude.id-instance Data.ProtoLens.Field.HasField SendToRouteRequest "route" Proto.LndGrpc.Route where- fieldOf _- = (Prelude..)- (Lens.Family2.Unchecked.lens- _SendToRouteRequest'route- (\ x__ y__ -> x__ {_SendToRouteRequest'route = y__}))- (Data.ProtoLens.maybeLens Data.ProtoLens.defMessage)-instance Data.ProtoLens.Field.HasField SendToRouteRequest "maybe'route" (Prelude.Maybe Proto.LndGrpc.Route) where- fieldOf _- = (Prelude..)- (Lens.Family2.Unchecked.lens- _SendToRouteRequest'route- (\ x__ y__ -> x__ {_SendToRouteRequest'route = y__}))- Prelude.id-instance Data.ProtoLens.Message SendToRouteRequest where- messageName _ = Data.Text.pack "routerrpc.SendToRouteRequest"- packedMessageDescriptor _- = "\n\- \\DC2SendToRouteRequest\DC2!\n\- \\fpayment_hash\CAN\SOH \SOH(\fR\vpaymentHash\DC2\"\n\- \\ENQroute\CAN\STX \SOH(\v2\f.lnrpc.RouteR\ENQroute"- packedFileDescriptor _ = packedFileDescriptor- fieldsByTag- = let- paymentHash__field_descriptor- = Data.ProtoLens.FieldDescriptor- "payment_hash"- (Data.ProtoLens.ScalarField Data.ProtoLens.BytesField ::- Data.ProtoLens.FieldTypeDescriptor Data.ByteString.ByteString)- (Data.ProtoLens.PlainField- Data.ProtoLens.Optional- (Data.ProtoLens.Field.field @"paymentHash")) ::- Data.ProtoLens.FieldDescriptor SendToRouteRequest- route__field_descriptor- = Data.ProtoLens.FieldDescriptor- "route"- (Data.ProtoLens.MessageField Data.ProtoLens.MessageType ::- Data.ProtoLens.FieldTypeDescriptor Proto.LndGrpc.Route)- (Data.ProtoLens.OptionalField- (Data.ProtoLens.Field.field @"maybe'route")) ::- Data.ProtoLens.FieldDescriptor SendToRouteRequest- in- Data.Map.fromList- [(Data.ProtoLens.Tag 1, paymentHash__field_descriptor),- (Data.ProtoLens.Tag 2, route__field_descriptor)]- unknownFields- = Lens.Family2.Unchecked.lens- _SendToRouteRequest'_unknownFields- (\ x__ y__ -> x__ {_SendToRouteRequest'_unknownFields = y__})- defMessage- = SendToRouteRequest'_constructor- {_SendToRouteRequest'paymentHash = Data.ProtoLens.fieldDefault,- _SendToRouteRequest'route = Prelude.Nothing,- _SendToRouteRequest'_unknownFields = []}- parseMessage- = let- loop ::- SendToRouteRequest- -> Data.ProtoLens.Encoding.Bytes.Parser SendToRouteRequest- loop x- = do end <- Data.ProtoLens.Encoding.Bytes.atEnd- if end then- do (let missing = []- in- if Prelude.null missing then- Prelude.return ()- else- Prelude.fail- ((Prelude.++)- "Missing required fields: "- (Prelude.show (missing :: [Prelude.String]))))- Prelude.return- (Lens.Family2.over- Data.ProtoLens.unknownFields (\ !t -> Prelude.reverse t) x)- else- do tag <- Data.ProtoLens.Encoding.Bytes.getVarInt- case tag of- 10- -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)- (do len <- Data.ProtoLens.Encoding.Bytes.getVarInt- Data.ProtoLens.Encoding.Bytes.getBytes- (Prelude.fromIntegral len))- "payment_hash"- loop- (Lens.Family2.set (Data.ProtoLens.Field.field @"paymentHash") y x)- 18- -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)- (do len <- Data.ProtoLens.Encoding.Bytes.getVarInt- Data.ProtoLens.Encoding.Bytes.isolate- (Prelude.fromIntegral len) Data.ProtoLens.parseMessage)- "route"- loop (Lens.Family2.set (Data.ProtoLens.Field.field @"route") y x)- wire- -> do !y <- Data.ProtoLens.Encoding.Wire.parseTaggedValueFromWire- wire- loop- (Lens.Family2.over- Data.ProtoLens.unknownFields (\ !t -> (:) y t) x)- in- (Data.ProtoLens.Encoding.Bytes.<?>)- (do loop Data.ProtoLens.defMessage) "SendToRouteRequest"- buildMessage- = \ _x- -> (Data.Monoid.<>)- (let- _v- = Lens.Family2.view (Data.ProtoLens.Field.field @"paymentHash") _x- in- if (Prelude.==) _v Data.ProtoLens.fieldDefault then- Data.Monoid.mempty- else- (Data.Monoid.<>)- (Data.ProtoLens.Encoding.Bytes.putVarInt 10)- ((\ bs- -> (Data.Monoid.<>)- (Data.ProtoLens.Encoding.Bytes.putVarInt- (Prelude.fromIntegral (Data.ByteString.length bs)))- (Data.ProtoLens.Encoding.Bytes.putBytes bs))- _v))- ((Data.Monoid.<>)- (case- Lens.Family2.view (Data.ProtoLens.Field.field @"maybe'route") _x- of- Prelude.Nothing -> Data.Monoid.mempty- (Prelude.Just _v)- -> (Data.Monoid.<>)- (Data.ProtoLens.Encoding.Bytes.putVarInt 18)- ((Prelude..)- (\ bs- -> (Data.Monoid.<>)- (Data.ProtoLens.Encoding.Bytes.putVarInt- (Prelude.fromIntegral (Data.ByteString.length bs)))- (Data.ProtoLens.Encoding.Bytes.putBytes bs))- Data.ProtoLens.encodeMessage- _v))- (Data.ProtoLens.Encoding.Wire.buildFieldSet- (Lens.Family2.view Data.ProtoLens.unknownFields _x)))-instance Control.DeepSeq.NFData SendToRouteRequest where- rnf- = \ x__- -> Control.DeepSeq.deepseq- (_SendToRouteRequest'_unknownFields x__)- (Control.DeepSeq.deepseq- (_SendToRouteRequest'paymentHash x__)- (Control.DeepSeq.deepseq (_SendToRouteRequest'route x__) ()))-{- | Fields :- - * 'Proto.RouterGrpc_Fields.preimage' @:: Lens' SendToRouteResponse Data.ByteString.ByteString@- * 'Proto.RouterGrpc_Fields.failure' @:: Lens' SendToRouteResponse Proto.LndGrpc.Failure@- * 'Proto.RouterGrpc_Fields.maybe'failure' @:: Lens' SendToRouteResponse (Prelude.Maybe Proto.LndGrpc.Failure)@ -}-data SendToRouteResponse- = SendToRouteResponse'_constructor {_SendToRouteResponse'preimage :: !Data.ByteString.ByteString,- _SendToRouteResponse'failure :: !(Prelude.Maybe Proto.LndGrpc.Failure),- _SendToRouteResponse'_unknownFields :: !Data.ProtoLens.FieldSet}- deriving stock (Prelude.Eq, Prelude.Ord)-instance Prelude.Show SendToRouteResponse where- showsPrec _ __x __s- = Prelude.showChar- '{'- (Prelude.showString- (Data.ProtoLens.showMessageShort __x) (Prelude.showChar '}' __s))-instance Data.ProtoLens.Field.HasField SendToRouteResponse "preimage" Data.ByteString.ByteString where- fieldOf _- = (Prelude..)- (Lens.Family2.Unchecked.lens- _SendToRouteResponse'preimage- (\ x__ y__ -> x__ {_SendToRouteResponse'preimage = y__}))- Prelude.id-instance Data.ProtoLens.Field.HasField SendToRouteResponse "failure" Proto.LndGrpc.Failure where- fieldOf _- = (Prelude..)- (Lens.Family2.Unchecked.lens- _SendToRouteResponse'failure- (\ x__ y__ -> x__ {_SendToRouteResponse'failure = y__}))- (Data.ProtoLens.maybeLens Data.ProtoLens.defMessage)-instance Data.ProtoLens.Field.HasField SendToRouteResponse "maybe'failure" (Prelude.Maybe Proto.LndGrpc.Failure) where- fieldOf _- = (Prelude..)- (Lens.Family2.Unchecked.lens- _SendToRouteResponse'failure- (\ x__ y__ -> x__ {_SendToRouteResponse'failure = y__}))- Prelude.id-instance Data.ProtoLens.Message SendToRouteResponse where- messageName _ = Data.Text.pack "routerrpc.SendToRouteResponse"- packedMessageDescriptor _- = "\n\- \\DC3SendToRouteResponse\DC2\SUB\n\- \\bpreimage\CAN\SOH \SOH(\fR\bpreimage\DC2(\n\- \\afailure\CAN\STX \SOH(\v2\SO.lnrpc.FailureR\afailure"- packedFileDescriptor _ = packedFileDescriptor- fieldsByTag- = let- preimage__field_descriptor- = Data.ProtoLens.FieldDescriptor- "preimage"- (Data.ProtoLens.ScalarField Data.ProtoLens.BytesField ::- Data.ProtoLens.FieldTypeDescriptor Data.ByteString.ByteString)- (Data.ProtoLens.PlainField- Data.ProtoLens.Optional- (Data.ProtoLens.Field.field @"preimage")) ::- Data.ProtoLens.FieldDescriptor SendToRouteResponse- failure__field_descriptor- = Data.ProtoLens.FieldDescriptor- "failure"- (Data.ProtoLens.MessageField Data.ProtoLens.MessageType ::- Data.ProtoLens.FieldTypeDescriptor Proto.LndGrpc.Failure)- (Data.ProtoLens.OptionalField- (Data.ProtoLens.Field.field @"maybe'failure")) ::- Data.ProtoLens.FieldDescriptor SendToRouteResponse- in- Data.Map.fromList- [(Data.ProtoLens.Tag 1, preimage__field_descriptor),- (Data.ProtoLens.Tag 2, failure__field_descriptor)]- unknownFields- = Lens.Family2.Unchecked.lens- _SendToRouteResponse'_unknownFields- (\ x__ y__ -> x__ {_SendToRouteResponse'_unknownFields = y__})- defMessage- = SendToRouteResponse'_constructor- {_SendToRouteResponse'preimage = Data.ProtoLens.fieldDefault,- _SendToRouteResponse'failure = Prelude.Nothing,- _SendToRouteResponse'_unknownFields = []}- parseMessage- = let- loop ::- SendToRouteResponse- -> Data.ProtoLens.Encoding.Bytes.Parser SendToRouteResponse- loop x- = do end <- Data.ProtoLens.Encoding.Bytes.atEnd- if end then- do (let missing = []- in- if Prelude.null missing then- Prelude.return ()- else- Prelude.fail- ((Prelude.++)- "Missing required fields: "- (Prelude.show (missing :: [Prelude.String]))))- Prelude.return- (Lens.Family2.over- Data.ProtoLens.unknownFields (\ !t -> Prelude.reverse t) x)- else- do tag <- Data.ProtoLens.Encoding.Bytes.getVarInt- case tag of- 10- -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)- (do len <- Data.ProtoLens.Encoding.Bytes.getVarInt- Data.ProtoLens.Encoding.Bytes.getBytes- (Prelude.fromIntegral len))- "preimage"- loop- (Lens.Family2.set (Data.ProtoLens.Field.field @"preimage") y x)- 18- -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)- (do len <- Data.ProtoLens.Encoding.Bytes.getVarInt- Data.ProtoLens.Encoding.Bytes.isolate- (Prelude.fromIntegral len) Data.ProtoLens.parseMessage)- "failure"- loop (Lens.Family2.set (Data.ProtoLens.Field.field @"failure") y x)- wire- -> do !y <- Data.ProtoLens.Encoding.Wire.parseTaggedValueFromWire- wire- loop- (Lens.Family2.over- Data.ProtoLens.unknownFields (\ !t -> (:) y t) x)- in- (Data.ProtoLens.Encoding.Bytes.<?>)- (do loop Data.ProtoLens.defMessage) "SendToRouteResponse"- buildMessage- = \ _x- -> (Data.Monoid.<>)- (let- _v = Lens.Family2.view (Data.ProtoLens.Field.field @"preimage") _x- in- if (Prelude.==) _v Data.ProtoLens.fieldDefault then- Data.Monoid.mempty- else- (Data.Monoid.<>)- (Data.ProtoLens.Encoding.Bytes.putVarInt 10)- ((\ bs- -> (Data.Monoid.<>)- (Data.ProtoLens.Encoding.Bytes.putVarInt- (Prelude.fromIntegral (Data.ByteString.length bs)))- (Data.ProtoLens.Encoding.Bytes.putBytes bs))- _v))- ((Data.Monoid.<>)- (case- Lens.Family2.view (Data.ProtoLens.Field.field @"maybe'failure") _x- of- Prelude.Nothing -> Data.Monoid.mempty- (Prelude.Just _v)- -> (Data.Monoid.<>)- (Data.ProtoLens.Encoding.Bytes.putVarInt 18)- ((Prelude..)- (\ bs- -> (Data.Monoid.<>)- (Data.ProtoLens.Encoding.Bytes.putVarInt- (Prelude.fromIntegral (Data.ByteString.length bs)))- (Data.ProtoLens.Encoding.Bytes.putBytes bs))- Data.ProtoLens.encodeMessage- _v))- (Data.ProtoLens.Encoding.Wire.buildFieldSet- (Lens.Family2.view Data.ProtoLens.unknownFields _x)))-instance Control.DeepSeq.NFData SendToRouteResponse where- rnf- = \ x__- -> Control.DeepSeq.deepseq- (_SendToRouteResponse'_unknownFields x__)- (Control.DeepSeq.deepseq- (_SendToRouteResponse'preimage x__)- (Control.DeepSeq.deepseq (_SendToRouteResponse'failure x__) ()))-{- | Fields :- - * 'Proto.RouterGrpc_Fields.config' @:: Lens' SetMissionControlConfigRequest MissionControlConfig@- * 'Proto.RouterGrpc_Fields.maybe'config' @:: Lens' SetMissionControlConfigRequest (Prelude.Maybe MissionControlConfig)@ -}-data SetMissionControlConfigRequest- = SetMissionControlConfigRequest'_constructor {_SetMissionControlConfigRequest'config :: !(Prelude.Maybe MissionControlConfig),- _SetMissionControlConfigRequest'_unknownFields :: !Data.ProtoLens.FieldSet}- deriving stock (Prelude.Eq, Prelude.Ord)-instance Prelude.Show SetMissionControlConfigRequest where- showsPrec _ __x __s- = Prelude.showChar- '{'- (Prelude.showString- (Data.ProtoLens.showMessageShort __x) (Prelude.showChar '}' __s))-instance Data.ProtoLens.Field.HasField SetMissionControlConfigRequest "config" MissionControlConfig where- fieldOf _- = (Prelude..)- (Lens.Family2.Unchecked.lens- _SetMissionControlConfigRequest'config- (\ x__ y__ -> x__ {_SetMissionControlConfigRequest'config = y__}))- (Data.ProtoLens.maybeLens Data.ProtoLens.defMessage)-instance Data.ProtoLens.Field.HasField SetMissionControlConfigRequest "maybe'config" (Prelude.Maybe MissionControlConfig) where- fieldOf _- = (Prelude..)- (Lens.Family2.Unchecked.lens- _SetMissionControlConfigRequest'config- (\ x__ y__ -> x__ {_SetMissionControlConfigRequest'config = y__}))- Prelude.id-instance Data.ProtoLens.Message SetMissionControlConfigRequest where- messageName _- = Data.Text.pack "routerrpc.SetMissionControlConfigRequest"- packedMessageDescriptor _- = "\n\- \\RSSetMissionControlConfigRequest\DC27\n\- \\ACKconfig\CAN\SOH \SOH(\v2\US.routerrpc.MissionControlConfigR\ACKconfig"- packedFileDescriptor _ = packedFileDescriptor- fieldsByTag- = let- config__field_descriptor- = Data.ProtoLens.FieldDescriptor- "config"- (Data.ProtoLens.MessageField Data.ProtoLens.MessageType ::- Data.ProtoLens.FieldTypeDescriptor MissionControlConfig)- (Data.ProtoLens.OptionalField- (Data.ProtoLens.Field.field @"maybe'config")) ::- Data.ProtoLens.FieldDescriptor SetMissionControlConfigRequest- in- Data.Map.fromList- [(Data.ProtoLens.Tag 1, config__field_descriptor)]- unknownFields- = Lens.Family2.Unchecked.lens- _SetMissionControlConfigRequest'_unknownFields- (\ x__ y__- -> x__ {_SetMissionControlConfigRequest'_unknownFields = y__})- defMessage- = SetMissionControlConfigRequest'_constructor- {_SetMissionControlConfigRequest'config = Prelude.Nothing,- _SetMissionControlConfigRequest'_unknownFields = []}- parseMessage- = let- loop ::- SetMissionControlConfigRequest- -> Data.ProtoLens.Encoding.Bytes.Parser SetMissionControlConfigRequest- loop x- = do end <- Data.ProtoLens.Encoding.Bytes.atEnd- if end then- do (let missing = []- in- if Prelude.null missing then- Prelude.return ()- else- Prelude.fail- ((Prelude.++)- "Missing required fields: "- (Prelude.show (missing :: [Prelude.String]))))- Prelude.return- (Lens.Family2.over- Data.ProtoLens.unknownFields (\ !t -> Prelude.reverse t) x)- else- do tag <- Data.ProtoLens.Encoding.Bytes.getVarInt- case tag of- 10- -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)- (do len <- Data.ProtoLens.Encoding.Bytes.getVarInt- Data.ProtoLens.Encoding.Bytes.isolate- (Prelude.fromIntegral len) Data.ProtoLens.parseMessage)- "config"- loop (Lens.Family2.set (Data.ProtoLens.Field.field @"config") y x)- wire- -> do !y <- Data.ProtoLens.Encoding.Wire.parseTaggedValueFromWire- wire- loop- (Lens.Family2.over- Data.ProtoLens.unknownFields (\ !t -> (:) y t) x)- in- (Data.ProtoLens.Encoding.Bytes.<?>)- (do loop Data.ProtoLens.defMessage)- "SetMissionControlConfigRequest"- buildMessage- = \ _x- -> (Data.Monoid.<>)- (case- Lens.Family2.view (Data.ProtoLens.Field.field @"maybe'config") _x- of- Prelude.Nothing -> Data.Monoid.mempty- (Prelude.Just _v)- -> (Data.Monoid.<>)- (Data.ProtoLens.Encoding.Bytes.putVarInt 10)- ((Prelude..)- (\ bs- -> (Data.Monoid.<>)- (Data.ProtoLens.Encoding.Bytes.putVarInt- (Prelude.fromIntegral (Data.ByteString.length bs)))- (Data.ProtoLens.Encoding.Bytes.putBytes bs))- Data.ProtoLens.encodeMessage- _v))- (Data.ProtoLens.Encoding.Wire.buildFieldSet- (Lens.Family2.view Data.ProtoLens.unknownFields _x))-instance Control.DeepSeq.NFData SetMissionControlConfigRequest where- rnf- = \ x__- -> Control.DeepSeq.deepseq- (_SetMissionControlConfigRequest'_unknownFields x__)- (Control.DeepSeq.deepseq- (_SetMissionControlConfigRequest'config x__) ())-{- | Fields :- -}-data SetMissionControlConfigResponse- = SetMissionControlConfigResponse'_constructor {_SetMissionControlConfigResponse'_unknownFields :: !Data.ProtoLens.FieldSet}- deriving stock (Prelude.Eq, Prelude.Ord)-instance Prelude.Show SetMissionControlConfigResponse where- showsPrec _ __x __s- = Prelude.showChar- '{'- (Prelude.showString- (Data.ProtoLens.showMessageShort __x) (Prelude.showChar '}' __s))-instance Data.ProtoLens.Message SetMissionControlConfigResponse where- messageName _- = Data.Text.pack "routerrpc.SetMissionControlConfigResponse"- packedMessageDescriptor _- = "\n\- \\USSetMissionControlConfigResponse"- packedFileDescriptor _ = packedFileDescriptor- fieldsByTag = let in Data.Map.fromList []- unknownFields- = Lens.Family2.Unchecked.lens- _SetMissionControlConfigResponse'_unknownFields- (\ x__ y__- -> x__ {_SetMissionControlConfigResponse'_unknownFields = y__})- defMessage- = SetMissionControlConfigResponse'_constructor- {_SetMissionControlConfigResponse'_unknownFields = []}- parseMessage- = let- loop ::- SetMissionControlConfigResponse- -> Data.ProtoLens.Encoding.Bytes.Parser SetMissionControlConfigResponse- loop x- = do end <- Data.ProtoLens.Encoding.Bytes.atEnd- if end then- do (let missing = []- in- if Prelude.null missing then- Prelude.return ()- else- Prelude.fail- ((Prelude.++)- "Missing required fields: "- (Prelude.show (missing :: [Prelude.String]))))- Prelude.return- (Lens.Family2.over- Data.ProtoLens.unknownFields (\ !t -> Prelude.reverse t) x)- else- do tag <- Data.ProtoLens.Encoding.Bytes.getVarInt- case tag of {- wire- -> do !y <- Data.ProtoLens.Encoding.Wire.parseTaggedValueFromWire- wire- loop- (Lens.Family2.over- Data.ProtoLens.unknownFields (\ !t -> (:) y t) x) }- in- (Data.ProtoLens.Encoding.Bytes.<?>)- (do loop Data.ProtoLens.defMessage)- "SetMissionControlConfigResponse"- buildMessage- = \ _x- -> Data.ProtoLens.Encoding.Wire.buildFieldSet- (Lens.Family2.view Data.ProtoLens.unknownFields _x)-instance Control.DeepSeq.NFData SetMissionControlConfigResponse where- rnf- = \ x__- -> Control.DeepSeq.deepseq- (_SetMissionControlConfigResponse'_unknownFields x__) ()-{- | Fields :- - * 'Proto.RouterGrpc_Fields.preimage' @:: Lens' SettleEvent Data.ByteString.ByteString@ -}-data SettleEvent- = SettleEvent'_constructor {_SettleEvent'preimage :: !Data.ByteString.ByteString,- _SettleEvent'_unknownFields :: !Data.ProtoLens.FieldSet}- deriving stock (Prelude.Eq, Prelude.Ord)-instance Prelude.Show SettleEvent where- showsPrec _ __x __s- = Prelude.showChar- '{'- (Prelude.showString- (Data.ProtoLens.showMessageShort __x) (Prelude.showChar '}' __s))-instance Data.ProtoLens.Field.HasField SettleEvent "preimage" Data.ByteString.ByteString where- fieldOf _- = (Prelude..)- (Lens.Family2.Unchecked.lens- _SettleEvent'preimage- (\ x__ y__ -> x__ {_SettleEvent'preimage = y__}))- Prelude.id-instance Data.ProtoLens.Message SettleEvent where- messageName _ = Data.Text.pack "routerrpc.SettleEvent"- packedMessageDescriptor _- = "\n\- \\vSettleEvent\DC2\SUB\n\- \\bpreimage\CAN\SOH \SOH(\fR\bpreimage"- packedFileDescriptor _ = packedFileDescriptor- fieldsByTag- = let- preimage__field_descriptor- = Data.ProtoLens.FieldDescriptor- "preimage"- (Data.ProtoLens.ScalarField Data.ProtoLens.BytesField ::- Data.ProtoLens.FieldTypeDescriptor Data.ByteString.ByteString)- (Data.ProtoLens.PlainField- Data.ProtoLens.Optional- (Data.ProtoLens.Field.field @"preimage")) ::- Data.ProtoLens.FieldDescriptor SettleEvent- in- Data.Map.fromList- [(Data.ProtoLens.Tag 1, preimage__field_descriptor)]- unknownFields- = Lens.Family2.Unchecked.lens- _SettleEvent'_unknownFields- (\ x__ y__ -> x__ {_SettleEvent'_unknownFields = y__})- defMessage- = SettleEvent'_constructor- {_SettleEvent'preimage = Data.ProtoLens.fieldDefault,- _SettleEvent'_unknownFields = []}- parseMessage- = let- loop ::- SettleEvent -> Data.ProtoLens.Encoding.Bytes.Parser SettleEvent- loop x- = do end <- Data.ProtoLens.Encoding.Bytes.atEnd- if end then- do (let missing = []- in- if Prelude.null missing then- Prelude.return ()- else- Prelude.fail- ((Prelude.++)- "Missing required fields: "- (Prelude.show (missing :: [Prelude.String]))))- Prelude.return- (Lens.Family2.over- Data.ProtoLens.unknownFields (\ !t -> Prelude.reverse t) x)- else- do tag <- Data.ProtoLens.Encoding.Bytes.getVarInt- case tag of- 10- -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)- (do len <- Data.ProtoLens.Encoding.Bytes.getVarInt- Data.ProtoLens.Encoding.Bytes.getBytes- (Prelude.fromIntegral len))- "preimage"- loop- (Lens.Family2.set (Data.ProtoLens.Field.field @"preimage") y x)- wire- -> do !y <- Data.ProtoLens.Encoding.Wire.parseTaggedValueFromWire- wire- loop- (Lens.Family2.over- Data.ProtoLens.unknownFields (\ !t -> (:) y t) x)- in- (Data.ProtoLens.Encoding.Bytes.<?>)- (do loop Data.ProtoLens.defMessage) "SettleEvent"- buildMessage- = \ _x- -> (Data.Monoid.<>)- (let- _v = Lens.Family2.view (Data.ProtoLens.Field.field @"preimage") _x- in- if (Prelude.==) _v Data.ProtoLens.fieldDefault then- Data.Monoid.mempty- else- (Data.Monoid.<>)- (Data.ProtoLens.Encoding.Bytes.putVarInt 10)- ((\ bs- -> (Data.Monoid.<>)- (Data.ProtoLens.Encoding.Bytes.putVarInt- (Prelude.fromIntegral (Data.ByteString.length bs)))- (Data.ProtoLens.Encoding.Bytes.putBytes bs))- _v))- (Data.ProtoLens.Encoding.Wire.buildFieldSet- (Lens.Family2.view Data.ProtoLens.unknownFields _x))-instance Control.DeepSeq.NFData SettleEvent where- rnf- = \ x__- -> Control.DeepSeq.deepseq- (_SettleEvent'_unknownFields x__)- (Control.DeepSeq.deepseq (_SettleEvent'preimage x__) ())-{- | Fields :- -}-data SubscribeHtlcEventsRequest- = SubscribeHtlcEventsRequest'_constructor {_SubscribeHtlcEventsRequest'_unknownFields :: !Data.ProtoLens.FieldSet}- deriving stock (Prelude.Eq, Prelude.Ord)-instance Prelude.Show SubscribeHtlcEventsRequest where- showsPrec _ __x __s- = Prelude.showChar- '{'- (Prelude.showString- (Data.ProtoLens.showMessageShort __x) (Prelude.showChar '}' __s))-instance Data.ProtoLens.Message SubscribeHtlcEventsRequest where- messageName _- = Data.Text.pack "routerrpc.SubscribeHtlcEventsRequest"- packedMessageDescriptor _- = "\n\- \\SUBSubscribeHtlcEventsRequest"- packedFileDescriptor _ = packedFileDescriptor- fieldsByTag = let in Data.Map.fromList []- unknownFields- = Lens.Family2.Unchecked.lens- _SubscribeHtlcEventsRequest'_unknownFields- (\ x__ y__- -> x__ {_SubscribeHtlcEventsRequest'_unknownFields = y__})- defMessage- = SubscribeHtlcEventsRequest'_constructor- {_SubscribeHtlcEventsRequest'_unknownFields = []}- parseMessage- = let- loop ::- SubscribeHtlcEventsRequest- -> Data.ProtoLens.Encoding.Bytes.Parser SubscribeHtlcEventsRequest- loop x- = do end <- Data.ProtoLens.Encoding.Bytes.atEnd- if end then- do (let missing = []- in- if Prelude.null missing then- Prelude.return ()- else- Prelude.fail- ((Prelude.++)- "Missing required fields: "- (Prelude.show (missing :: [Prelude.String]))))- Prelude.return- (Lens.Family2.over- Data.ProtoLens.unknownFields (\ !t -> Prelude.reverse t) x)- else- do tag <- Data.ProtoLens.Encoding.Bytes.getVarInt- case tag of {- wire- -> do !y <- Data.ProtoLens.Encoding.Wire.parseTaggedValueFromWire- wire- loop- (Lens.Family2.over- Data.ProtoLens.unknownFields (\ !t -> (:) y t) x) }- in- (Data.ProtoLens.Encoding.Bytes.<?>)- (do loop Data.ProtoLens.defMessage) "SubscribeHtlcEventsRequest"- buildMessage- = \ _x- -> Data.ProtoLens.Encoding.Wire.buildFieldSet- (Lens.Family2.view Data.ProtoLens.unknownFields _x)-instance Control.DeepSeq.NFData SubscribeHtlcEventsRequest where- rnf- = \ x__- -> Control.DeepSeq.deepseq- (_SubscribeHtlcEventsRequest'_unknownFields x__) ()-{- | Fields :- - * 'Proto.RouterGrpc_Fields.paymentHash' @:: Lens' TrackPaymentRequest Data.ByteString.ByteString@- * 'Proto.RouterGrpc_Fields.noInflightUpdates' @:: Lens' TrackPaymentRequest Prelude.Bool@ -}-data TrackPaymentRequest- = TrackPaymentRequest'_constructor {_TrackPaymentRequest'paymentHash :: !Data.ByteString.ByteString,- _TrackPaymentRequest'noInflightUpdates :: !Prelude.Bool,- _TrackPaymentRequest'_unknownFields :: !Data.ProtoLens.FieldSet}- deriving stock (Prelude.Eq, Prelude.Ord)-instance Prelude.Show TrackPaymentRequest where- showsPrec _ __x __s- = Prelude.showChar- '{'- (Prelude.showString- (Data.ProtoLens.showMessageShort __x) (Prelude.showChar '}' __s))-instance Data.ProtoLens.Field.HasField TrackPaymentRequest "paymentHash" Data.ByteString.ByteString where- fieldOf _- = (Prelude..)- (Lens.Family2.Unchecked.lens- _TrackPaymentRequest'paymentHash- (\ x__ y__ -> x__ {_TrackPaymentRequest'paymentHash = y__}))- Prelude.id-instance Data.ProtoLens.Field.HasField TrackPaymentRequest "noInflightUpdates" Prelude.Bool where- fieldOf _- = (Prelude..)- (Lens.Family2.Unchecked.lens- _TrackPaymentRequest'noInflightUpdates- (\ x__ y__ -> x__ {_TrackPaymentRequest'noInflightUpdates = y__}))- Prelude.id-instance Data.ProtoLens.Message TrackPaymentRequest where- messageName _ = Data.Text.pack "routerrpc.TrackPaymentRequest"- packedMessageDescriptor _- = "\n\- \\DC3TrackPaymentRequest\DC2!\n\- \\fpayment_hash\CAN\SOH \SOH(\fR\vpaymentHash\DC2.\n\- \\DC3no_inflight_updates\CAN\STX \SOH(\bR\DC1noInflightUpdates"- packedFileDescriptor _ = packedFileDescriptor- fieldsByTag- = let- paymentHash__field_descriptor- = Data.ProtoLens.FieldDescriptor- "payment_hash"- (Data.ProtoLens.ScalarField Data.ProtoLens.BytesField ::- Data.ProtoLens.FieldTypeDescriptor Data.ByteString.ByteString)- (Data.ProtoLens.PlainField- Data.ProtoLens.Optional- (Data.ProtoLens.Field.field @"paymentHash")) ::- Data.ProtoLens.FieldDescriptor TrackPaymentRequest- noInflightUpdates__field_descriptor- = Data.ProtoLens.FieldDescriptor- "no_inflight_updates"- (Data.ProtoLens.ScalarField Data.ProtoLens.BoolField ::- Data.ProtoLens.FieldTypeDescriptor Prelude.Bool)- (Data.ProtoLens.PlainField- Data.ProtoLens.Optional- (Data.ProtoLens.Field.field @"noInflightUpdates")) ::- Data.ProtoLens.FieldDescriptor TrackPaymentRequest- in- Data.Map.fromList- [(Data.ProtoLens.Tag 1, paymentHash__field_descriptor),- (Data.ProtoLens.Tag 2, noInflightUpdates__field_descriptor)]- unknownFields- = Lens.Family2.Unchecked.lens- _TrackPaymentRequest'_unknownFields- (\ x__ y__ -> x__ {_TrackPaymentRequest'_unknownFields = y__})- defMessage- = TrackPaymentRequest'_constructor- {_TrackPaymentRequest'paymentHash = Data.ProtoLens.fieldDefault,- _TrackPaymentRequest'noInflightUpdates = Data.ProtoLens.fieldDefault,- _TrackPaymentRequest'_unknownFields = []}- parseMessage- = let- loop ::- TrackPaymentRequest- -> Data.ProtoLens.Encoding.Bytes.Parser TrackPaymentRequest- loop x- = do end <- Data.ProtoLens.Encoding.Bytes.atEnd- if end then- do (let missing = []- in- if Prelude.null missing then- Prelude.return ()- else- Prelude.fail- ((Prelude.++)- "Missing required fields: "- (Prelude.show (missing :: [Prelude.String]))))- Prelude.return- (Lens.Family2.over- Data.ProtoLens.unknownFields (\ !t -> Prelude.reverse t) x)- else- do tag <- Data.ProtoLens.Encoding.Bytes.getVarInt- case tag of- 10- -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)- (do len <- Data.ProtoLens.Encoding.Bytes.getVarInt- Data.ProtoLens.Encoding.Bytes.getBytes- (Prelude.fromIntegral len))- "payment_hash"- loop- (Lens.Family2.set (Data.ProtoLens.Field.field @"paymentHash") y x)- 16- -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)- (Prelude.fmap- ((Prelude./=) 0) Data.ProtoLens.Encoding.Bytes.getVarInt)- "no_inflight_updates"- loop- (Lens.Family2.set- (Data.ProtoLens.Field.field @"noInflightUpdates") y x)- wire- -> do !y <- Data.ProtoLens.Encoding.Wire.parseTaggedValueFromWire- wire- loop- (Lens.Family2.over- Data.ProtoLens.unknownFields (\ !t -> (:) y t) x)- in- (Data.ProtoLens.Encoding.Bytes.<?>)- (do loop Data.ProtoLens.defMessage) "TrackPaymentRequest"- buildMessage- = \ _x- -> (Data.Monoid.<>)- (let- _v- = Lens.Family2.view (Data.ProtoLens.Field.field @"paymentHash") _x- in- if (Prelude.==) _v Data.ProtoLens.fieldDefault then- Data.Monoid.mempty- else- (Data.Monoid.<>)- (Data.ProtoLens.Encoding.Bytes.putVarInt 10)- ((\ bs- -> (Data.Monoid.<>)- (Data.ProtoLens.Encoding.Bytes.putVarInt- (Prelude.fromIntegral (Data.ByteString.length bs)))- (Data.ProtoLens.Encoding.Bytes.putBytes bs))- _v))- ((Data.Monoid.<>)- (let- _v- = Lens.Family2.view- (Data.ProtoLens.Field.field @"noInflightUpdates") _x- in- if (Prelude.==) _v Data.ProtoLens.fieldDefault then- Data.Monoid.mempty- else- (Data.Monoid.<>)- (Data.ProtoLens.Encoding.Bytes.putVarInt 16)- ((Prelude..)- Data.ProtoLens.Encoding.Bytes.putVarInt- (\ b -> if b then 1 else 0)- _v))- (Data.ProtoLens.Encoding.Wire.buildFieldSet- (Lens.Family2.view Data.ProtoLens.unknownFields _x)))-instance Control.DeepSeq.NFData TrackPaymentRequest where- rnf- = \ x__- -> Control.DeepSeq.deepseq- (_TrackPaymentRequest'_unknownFields x__)- (Control.DeepSeq.deepseq- (_TrackPaymentRequest'paymentHash x__)- (Control.DeepSeq.deepseq- (_TrackPaymentRequest'noInflightUpdates x__) ()))-{- | Fields :- - * 'Proto.RouterGrpc_Fields.chanPoint' @:: Lens' UpdateChanStatusRequest Proto.LndGrpc.ChannelPoint@- * 'Proto.RouterGrpc_Fields.maybe'chanPoint' @:: Lens' UpdateChanStatusRequest (Prelude.Maybe Proto.LndGrpc.ChannelPoint)@- * 'Proto.RouterGrpc_Fields.action' @:: Lens' UpdateChanStatusRequest ChanStatusAction@ -}-data UpdateChanStatusRequest- = UpdateChanStatusRequest'_constructor {_UpdateChanStatusRequest'chanPoint :: !(Prelude.Maybe Proto.LndGrpc.ChannelPoint),- _UpdateChanStatusRequest'action :: !ChanStatusAction,- _UpdateChanStatusRequest'_unknownFields :: !Data.ProtoLens.FieldSet}- deriving stock (Prelude.Eq, Prelude.Ord)-instance Prelude.Show UpdateChanStatusRequest where- showsPrec _ __x __s- = Prelude.showChar- '{'- (Prelude.showString- (Data.ProtoLens.showMessageShort __x) (Prelude.showChar '}' __s))-instance Data.ProtoLens.Field.HasField UpdateChanStatusRequest "chanPoint" Proto.LndGrpc.ChannelPoint where- fieldOf _- = (Prelude..)- (Lens.Family2.Unchecked.lens- _UpdateChanStatusRequest'chanPoint- (\ x__ y__ -> x__ {_UpdateChanStatusRequest'chanPoint = y__}))- (Data.ProtoLens.maybeLens Data.ProtoLens.defMessage)-instance Data.ProtoLens.Field.HasField UpdateChanStatusRequest "maybe'chanPoint" (Prelude.Maybe Proto.LndGrpc.ChannelPoint) where- fieldOf _- = (Prelude..)- (Lens.Family2.Unchecked.lens- _UpdateChanStatusRequest'chanPoint- (\ x__ y__ -> x__ {_UpdateChanStatusRequest'chanPoint = y__}))- Prelude.id-instance Data.ProtoLens.Field.HasField UpdateChanStatusRequest "action" ChanStatusAction where- fieldOf _- = (Prelude..)- (Lens.Family2.Unchecked.lens- _UpdateChanStatusRequest'action- (\ x__ y__ -> x__ {_UpdateChanStatusRequest'action = y__}))- Prelude.id-instance Data.ProtoLens.Message UpdateChanStatusRequest where- messageName _ = Data.Text.pack "routerrpc.UpdateChanStatusRequest"- packedMessageDescriptor _- = "\n\- \\ETBUpdateChanStatusRequest\DC22\n\- \\n\- \chan_point\CAN\SOH \SOH(\v2\DC3.lnrpc.ChannelPointR\tchanPoint\DC23\n\- \\ACKaction\CAN\STX \SOH(\SO2\ESC.routerrpc.ChanStatusActionR\ACKaction"- packedFileDescriptor _ = packedFileDescriptor- fieldsByTag- = let- chanPoint__field_descriptor- = Data.ProtoLens.FieldDescriptor- "chan_point"- (Data.ProtoLens.MessageField Data.ProtoLens.MessageType ::- Data.ProtoLens.FieldTypeDescriptor Proto.LndGrpc.ChannelPoint)- (Data.ProtoLens.OptionalField- (Data.ProtoLens.Field.field @"maybe'chanPoint")) ::- Data.ProtoLens.FieldDescriptor UpdateChanStatusRequest- action__field_descriptor- = Data.ProtoLens.FieldDescriptor- "action"- (Data.ProtoLens.ScalarField Data.ProtoLens.EnumField ::- Data.ProtoLens.FieldTypeDescriptor ChanStatusAction)- (Data.ProtoLens.PlainField- Data.ProtoLens.Optional (Data.ProtoLens.Field.field @"action")) ::- Data.ProtoLens.FieldDescriptor UpdateChanStatusRequest- in- Data.Map.fromList- [(Data.ProtoLens.Tag 1, chanPoint__field_descriptor),- (Data.ProtoLens.Tag 2, action__field_descriptor)]- unknownFields- = Lens.Family2.Unchecked.lens- _UpdateChanStatusRequest'_unknownFields- (\ x__ y__ -> x__ {_UpdateChanStatusRequest'_unknownFields = y__})- defMessage- = UpdateChanStatusRequest'_constructor- {_UpdateChanStatusRequest'chanPoint = Prelude.Nothing,- _UpdateChanStatusRequest'action = Data.ProtoLens.fieldDefault,- _UpdateChanStatusRequest'_unknownFields = []}- parseMessage- = let- loop ::- UpdateChanStatusRequest- -> Data.ProtoLens.Encoding.Bytes.Parser UpdateChanStatusRequest- loop x- = do end <- Data.ProtoLens.Encoding.Bytes.atEnd- if end then- do (let missing = []- in- if Prelude.null missing then- Prelude.return ()- else- Prelude.fail- ((Prelude.++)- "Missing required fields: "- (Prelude.show (missing :: [Prelude.String]))))- Prelude.return- (Lens.Family2.over- Data.ProtoLens.unknownFields (\ !t -> Prelude.reverse t) x)- else- do tag <- Data.ProtoLens.Encoding.Bytes.getVarInt- case tag of- 10- -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)- (do len <- Data.ProtoLens.Encoding.Bytes.getVarInt- Data.ProtoLens.Encoding.Bytes.isolate- (Prelude.fromIntegral len) Data.ProtoLens.parseMessage)- "chan_point"- loop- (Lens.Family2.set (Data.ProtoLens.Field.field @"chanPoint") y x)- 16- -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)- (Prelude.fmap- Prelude.toEnum- (Prelude.fmap- Prelude.fromIntegral- Data.ProtoLens.Encoding.Bytes.getVarInt))- "action"- loop (Lens.Family2.set (Data.ProtoLens.Field.field @"action") y x)- wire- -> do !y <- Data.ProtoLens.Encoding.Wire.parseTaggedValueFromWire- wire- loop- (Lens.Family2.over- Data.ProtoLens.unknownFields (\ !t -> (:) y t) x)- in- (Data.ProtoLens.Encoding.Bytes.<?>)- (do loop Data.ProtoLens.defMessage) "UpdateChanStatusRequest"- buildMessage- = \ _x- -> (Data.Monoid.<>)- (case- Lens.Family2.view- (Data.ProtoLens.Field.field @"maybe'chanPoint") _x- of- Prelude.Nothing -> Data.Monoid.mempty- (Prelude.Just _v)- -> (Data.Monoid.<>)- (Data.ProtoLens.Encoding.Bytes.putVarInt 10)- ((Prelude..)- (\ bs- -> (Data.Monoid.<>)- (Data.ProtoLens.Encoding.Bytes.putVarInt- (Prelude.fromIntegral (Data.ByteString.length bs)))- (Data.ProtoLens.Encoding.Bytes.putBytes bs))- Data.ProtoLens.encodeMessage- _v))- ((Data.Monoid.<>)- (let- _v = Lens.Family2.view (Data.ProtoLens.Field.field @"action") _x- in- if (Prelude.==) _v Data.ProtoLens.fieldDefault then- Data.Monoid.mempty- else- (Data.Monoid.<>)- (Data.ProtoLens.Encoding.Bytes.putVarInt 16)- ((Prelude..)- ((Prelude..)- Data.ProtoLens.Encoding.Bytes.putVarInt Prelude.fromIntegral)- Prelude.fromEnum- _v))- (Data.ProtoLens.Encoding.Wire.buildFieldSet- (Lens.Family2.view Data.ProtoLens.unknownFields _x)))-instance Control.DeepSeq.NFData UpdateChanStatusRequest where- rnf- = \ x__- -> Control.DeepSeq.deepseq- (_UpdateChanStatusRequest'_unknownFields x__)- (Control.DeepSeq.deepseq- (_UpdateChanStatusRequest'chanPoint x__)- (Control.DeepSeq.deepseq (_UpdateChanStatusRequest'action x__) ()))-{- | Fields :- -}-data UpdateChanStatusResponse- = UpdateChanStatusResponse'_constructor {_UpdateChanStatusResponse'_unknownFields :: !Data.ProtoLens.FieldSet}- deriving stock (Prelude.Eq, Prelude.Ord)-instance Prelude.Show UpdateChanStatusResponse where- showsPrec _ __x __s- = Prelude.showChar- '{'- (Prelude.showString- (Data.ProtoLens.showMessageShort __x) (Prelude.showChar '}' __s))-instance Data.ProtoLens.Message UpdateChanStatusResponse where- messageName _ = Data.Text.pack "routerrpc.UpdateChanStatusResponse"- packedMessageDescriptor _- = "\n\- \\CANUpdateChanStatusResponse"- packedFileDescriptor _ = packedFileDescriptor- fieldsByTag = let in Data.Map.fromList []- unknownFields- = Lens.Family2.Unchecked.lens- _UpdateChanStatusResponse'_unknownFields- (\ x__ y__ -> x__ {_UpdateChanStatusResponse'_unknownFields = y__})- defMessage- = UpdateChanStatusResponse'_constructor- {_UpdateChanStatusResponse'_unknownFields = []}- parseMessage- = let- loop ::- UpdateChanStatusResponse- -> Data.ProtoLens.Encoding.Bytes.Parser UpdateChanStatusResponse- loop x- = do end <- Data.ProtoLens.Encoding.Bytes.atEnd- if end then- do (let missing = []- in- if Prelude.null missing then- Prelude.return ()- else- Prelude.fail- ((Prelude.++)- "Missing required fields: "- (Prelude.show (missing :: [Prelude.String]))))- Prelude.return- (Lens.Family2.over- Data.ProtoLens.unknownFields (\ !t -> Prelude.reverse t) x)- else- do tag <- Data.ProtoLens.Encoding.Bytes.getVarInt- case tag of {- wire- -> do !y <- Data.ProtoLens.Encoding.Wire.parseTaggedValueFromWire- wire- loop- (Lens.Family2.over- Data.ProtoLens.unknownFields (\ !t -> (:) y t) x) }- in- (Data.ProtoLens.Encoding.Bytes.<?>)- (do loop Data.ProtoLens.defMessage) "UpdateChanStatusResponse"- buildMessage- = \ _x- -> Data.ProtoLens.Encoding.Wire.buildFieldSet- (Lens.Family2.view Data.ProtoLens.unknownFields _x)-instance Control.DeepSeq.NFData UpdateChanStatusResponse where- rnf- = \ x__- -> Control.DeepSeq.deepseq- (_UpdateChanStatusResponse'_unknownFields x__) ()-{- | Fields :- - * 'Proto.RouterGrpc_Fields.pairs' @:: Lens' XImportMissionControlRequest [PairHistory]@- * 'Proto.RouterGrpc_Fields.vec'pairs' @:: Lens' XImportMissionControlRequest (Data.Vector.Vector PairHistory)@ -}-data XImportMissionControlRequest- = XImportMissionControlRequest'_constructor {_XImportMissionControlRequest'pairs :: !(Data.Vector.Vector PairHistory),- _XImportMissionControlRequest'_unknownFields :: !Data.ProtoLens.FieldSet}- deriving stock (Prelude.Eq, Prelude.Ord)-instance Prelude.Show XImportMissionControlRequest where- showsPrec _ __x __s- = Prelude.showChar- '{'- (Prelude.showString- (Data.ProtoLens.showMessageShort __x) (Prelude.showChar '}' __s))-instance Data.ProtoLens.Field.HasField XImportMissionControlRequest "pairs" [PairHistory] where- fieldOf _- = (Prelude..)- (Lens.Family2.Unchecked.lens- _XImportMissionControlRequest'pairs- (\ x__ y__ -> x__ {_XImportMissionControlRequest'pairs = y__}))- (Lens.Family2.Unchecked.lens- Data.Vector.Generic.toList- (\ _ y__ -> Data.Vector.Generic.fromList y__))-instance Data.ProtoLens.Field.HasField XImportMissionControlRequest "vec'pairs" (Data.Vector.Vector PairHistory) where- fieldOf _- = (Prelude..)- (Lens.Family2.Unchecked.lens- _XImportMissionControlRequest'pairs- (\ x__ y__ -> x__ {_XImportMissionControlRequest'pairs = y__}))- Prelude.id-instance Data.ProtoLens.Message XImportMissionControlRequest where- messageName _- = Data.Text.pack "routerrpc.XImportMissionControlRequest"- packedMessageDescriptor _- = "\n\- \\FSXImportMissionControlRequest\DC2,\n\- \\ENQpairs\CAN\SOH \ETX(\v2\SYN.routerrpc.PairHistoryR\ENQpairs"- packedFileDescriptor _ = packedFileDescriptor- fieldsByTag- = let- pairs__field_descriptor- = Data.ProtoLens.FieldDescriptor- "pairs"- (Data.ProtoLens.MessageField Data.ProtoLens.MessageType ::- Data.ProtoLens.FieldTypeDescriptor PairHistory)- (Data.ProtoLens.RepeatedField- Data.ProtoLens.Unpacked (Data.ProtoLens.Field.field @"pairs")) ::- Data.ProtoLens.FieldDescriptor XImportMissionControlRequest- in- Data.Map.fromList [(Data.ProtoLens.Tag 1, pairs__field_descriptor)]- unknownFields- = Lens.Family2.Unchecked.lens- _XImportMissionControlRequest'_unknownFields- (\ x__ y__- -> x__ {_XImportMissionControlRequest'_unknownFields = y__})- defMessage- = XImportMissionControlRequest'_constructor- {_XImportMissionControlRequest'pairs = Data.Vector.Generic.empty,- _XImportMissionControlRequest'_unknownFields = []}- parseMessage- = let- loop ::- XImportMissionControlRequest- -> Data.ProtoLens.Encoding.Growing.Growing Data.Vector.Vector Data.ProtoLens.Encoding.Growing.RealWorld PairHistory- -> Data.ProtoLens.Encoding.Bytes.Parser XImportMissionControlRequest- loop x mutable'pairs- = do end <- Data.ProtoLens.Encoding.Bytes.atEnd- if end then- do frozen'pairs <- Data.ProtoLens.Encoding.Parser.Unsafe.unsafeLiftIO- (Data.ProtoLens.Encoding.Growing.unsafeFreeze mutable'pairs)- (let missing = []- in- if Prelude.null missing then- Prelude.return ()- else- Prelude.fail- ((Prelude.++)- "Missing required fields: "- (Prelude.show (missing :: [Prelude.String]))))- Prelude.return- (Lens.Family2.over- Data.ProtoLens.unknownFields- (\ !t -> Prelude.reverse t)- (Lens.Family2.set- (Data.ProtoLens.Field.field @"vec'pairs") frozen'pairs x))- else- do tag <- Data.ProtoLens.Encoding.Bytes.getVarInt- case tag of- 10- -> do !y <- (Data.ProtoLens.Encoding.Bytes.<?>)- (do len <- Data.ProtoLens.Encoding.Bytes.getVarInt- Data.ProtoLens.Encoding.Bytes.isolate- (Prelude.fromIntegral len)- Data.ProtoLens.parseMessage)- "pairs"- v <- Data.ProtoLens.Encoding.Parser.Unsafe.unsafeLiftIO- (Data.ProtoLens.Encoding.Growing.append mutable'pairs y)- loop x v- wire- -> do !y <- Data.ProtoLens.Encoding.Wire.parseTaggedValueFromWire- wire- loop- (Lens.Family2.over- Data.ProtoLens.unknownFields (\ !t -> (:) y t) x)- mutable'pairs- in- (Data.ProtoLens.Encoding.Bytes.<?>)- (do mutable'pairs <- Data.ProtoLens.Encoding.Parser.Unsafe.unsafeLiftIO- Data.ProtoLens.Encoding.Growing.new- loop Data.ProtoLens.defMessage mutable'pairs)- "XImportMissionControlRequest"- buildMessage- = \ _x- -> (Data.Monoid.<>)- (Data.ProtoLens.Encoding.Bytes.foldMapBuilder- (\ _v- -> (Data.Monoid.<>)- (Data.ProtoLens.Encoding.Bytes.putVarInt 10)- ((Prelude..)- (\ bs- -> (Data.Monoid.<>)- (Data.ProtoLens.Encoding.Bytes.putVarInt- (Prelude.fromIntegral (Data.ByteString.length bs)))- (Data.ProtoLens.Encoding.Bytes.putBytes bs))- Data.ProtoLens.encodeMessage- _v))- (Lens.Family2.view (Data.ProtoLens.Field.field @"vec'pairs") _x))- (Data.ProtoLens.Encoding.Wire.buildFieldSet- (Lens.Family2.view Data.ProtoLens.unknownFields _x))-instance Control.DeepSeq.NFData XImportMissionControlRequest where- rnf- = \ x__- -> Control.DeepSeq.deepseq- (_XImportMissionControlRequest'_unknownFields x__)- (Control.DeepSeq.deepseq- (_XImportMissionControlRequest'pairs x__) ())-{- | Fields :- -}-data XImportMissionControlResponse- = XImportMissionControlResponse'_constructor {_XImportMissionControlResponse'_unknownFields :: !Data.ProtoLens.FieldSet}- deriving stock (Prelude.Eq, Prelude.Ord)-instance Prelude.Show XImportMissionControlResponse where- showsPrec _ __x __s- = Prelude.showChar- '{'- (Prelude.showString- (Data.ProtoLens.showMessageShort __x) (Prelude.showChar '}' __s))-instance Data.ProtoLens.Message XImportMissionControlResponse where- messageName _- = Data.Text.pack "routerrpc.XImportMissionControlResponse"- packedMessageDescriptor _- = "\n\- \\GSXImportMissionControlResponse"- packedFileDescriptor _ = packedFileDescriptor- fieldsByTag = let in Data.Map.fromList []- unknownFields- = Lens.Family2.Unchecked.lens- _XImportMissionControlResponse'_unknownFields- (\ x__ y__- -> x__ {_XImportMissionControlResponse'_unknownFields = y__})- defMessage- = XImportMissionControlResponse'_constructor- {_XImportMissionControlResponse'_unknownFields = []}- parseMessage- = let- loop ::- XImportMissionControlResponse- -> Data.ProtoLens.Encoding.Bytes.Parser XImportMissionControlResponse- loop x- = do end <- Data.ProtoLens.Encoding.Bytes.atEnd- if end then- do (let missing = []- in- if Prelude.null missing then- Prelude.return ()- else- Prelude.fail- ((Prelude.++)- "Missing required fields: "- (Prelude.show (missing :: [Prelude.String]))))- Prelude.return- (Lens.Family2.over- Data.ProtoLens.unknownFields (\ !t -> Prelude.reverse t) x)- else- do tag <- Data.ProtoLens.Encoding.Bytes.getVarInt- case tag of {- wire- -> do !y <- Data.ProtoLens.Encoding.Wire.parseTaggedValueFromWire- wire- loop- (Lens.Family2.over- Data.ProtoLens.unknownFields (\ !t -> (:) y t) x) }- in- (Data.ProtoLens.Encoding.Bytes.<?>)- (do loop Data.ProtoLens.defMessage) "XImportMissionControlResponse"- buildMessage- = \ _x- -> Data.ProtoLens.Encoding.Wire.buildFieldSet- (Lens.Family2.view Data.ProtoLens.unknownFields _x)-instance Control.DeepSeq.NFData XImportMissionControlResponse where- rnf- = \ x__- -> Control.DeepSeq.deepseq- (_XImportMissionControlResponse'_unknownFields x__) ()-data Router = Router {}-instance Data.ProtoLens.Service.Types.Service Router where- type ServiceName Router = "Router"- type ServicePackage Router = "routerrpc"- type ServiceMethods Router = '["buildRoute",- "estimateRouteFee",- "getMissionControlConfig",- "htlcInterceptor",- "queryMissionControl",- "queryProbability",- "resetMissionControl",- "sendPayment",- "sendPaymentV2",- "sendToRoute",- "sendToRouteV2",- "setMissionControlConfig",- "subscribeHtlcEvents",- "trackPayment",- "trackPaymentV2",- "updateChanStatus",- "ximportMissionControl"]-instance Data.ProtoLens.Service.Types.HasMethodImpl Router "sendPaymentV2" where- type MethodName Router "sendPaymentV2" = "SendPaymentV2"- type MethodInput Router "sendPaymentV2" = SendPaymentRequest- type MethodOutput Router "sendPaymentV2" = Proto.LndGrpc.Payment- type MethodStreamingType Router "sendPaymentV2" = 'Data.ProtoLens.Service.Types.ServerStreaming-instance Data.ProtoLens.Service.Types.HasMethodImpl Router "trackPaymentV2" where- type MethodName Router "trackPaymentV2" = "TrackPaymentV2"- type MethodInput Router "trackPaymentV2" = TrackPaymentRequest- type MethodOutput Router "trackPaymentV2" = Proto.LndGrpc.Payment- type MethodStreamingType Router "trackPaymentV2" = 'Data.ProtoLens.Service.Types.ServerStreaming-instance Data.ProtoLens.Service.Types.HasMethodImpl Router "estimateRouteFee" where- type MethodName Router "estimateRouteFee" = "EstimateRouteFee"- type MethodInput Router "estimateRouteFee" = RouteFeeRequest- type MethodOutput Router "estimateRouteFee" = RouteFeeResponse- type MethodStreamingType Router "estimateRouteFee" = 'Data.ProtoLens.Service.Types.NonStreaming-instance Data.ProtoLens.Service.Types.HasMethodImpl Router "sendToRoute" where- type MethodName Router "sendToRoute" = "SendToRoute"- type MethodInput Router "sendToRoute" = SendToRouteRequest- type MethodOutput Router "sendToRoute" = SendToRouteResponse- type MethodStreamingType Router "sendToRoute" = 'Data.ProtoLens.Service.Types.NonStreaming-instance Data.ProtoLens.Service.Types.HasMethodImpl Router "sendToRouteV2" where- type MethodName Router "sendToRouteV2" = "SendToRouteV2"- type MethodInput Router "sendToRouteV2" = SendToRouteRequest- type MethodOutput Router "sendToRouteV2" = Proto.LndGrpc.HTLCAttempt- type MethodStreamingType Router "sendToRouteV2" = 'Data.ProtoLens.Service.Types.NonStreaming-instance Data.ProtoLens.Service.Types.HasMethodImpl Router "resetMissionControl" where- type MethodName Router "resetMissionControl" = "ResetMissionControl"- type MethodInput Router "resetMissionControl" = ResetMissionControlRequest- type MethodOutput Router "resetMissionControl" = ResetMissionControlResponse- type MethodStreamingType Router "resetMissionControl" = 'Data.ProtoLens.Service.Types.NonStreaming-instance Data.ProtoLens.Service.Types.HasMethodImpl Router "queryMissionControl" where- type MethodName Router "queryMissionControl" = "QueryMissionControl"- type MethodInput Router "queryMissionControl" = QueryMissionControlRequest- type MethodOutput Router "queryMissionControl" = QueryMissionControlResponse- type MethodStreamingType Router "queryMissionControl" = 'Data.ProtoLens.Service.Types.NonStreaming-instance Data.ProtoLens.Service.Types.HasMethodImpl Router "ximportMissionControl" where- type MethodName Router "ximportMissionControl" = "XImportMissionControl"- type MethodInput Router "ximportMissionControl" = XImportMissionControlRequest- type MethodOutput Router "ximportMissionControl" = XImportMissionControlResponse- type MethodStreamingType Router "ximportMissionControl" = 'Data.ProtoLens.Service.Types.NonStreaming-instance Data.ProtoLens.Service.Types.HasMethodImpl Router "getMissionControlConfig" where- type MethodName Router "getMissionControlConfig" = "GetMissionControlConfig"- type MethodInput Router "getMissionControlConfig" = GetMissionControlConfigRequest- type MethodOutput Router "getMissionControlConfig" = GetMissionControlConfigResponse- type MethodStreamingType Router "getMissionControlConfig" = 'Data.ProtoLens.Service.Types.NonStreaming-instance Data.ProtoLens.Service.Types.HasMethodImpl Router "setMissionControlConfig" where- type MethodName Router "setMissionControlConfig" = "SetMissionControlConfig"- type MethodInput Router "setMissionControlConfig" = SetMissionControlConfigRequest- type MethodOutput Router "setMissionControlConfig" = SetMissionControlConfigResponse- type MethodStreamingType Router "setMissionControlConfig" = 'Data.ProtoLens.Service.Types.NonStreaming-instance Data.ProtoLens.Service.Types.HasMethodImpl Router "queryProbability" where- type MethodName Router "queryProbability" = "QueryProbability"- type MethodInput Router "queryProbability" = QueryProbabilityRequest- type MethodOutput Router "queryProbability" = QueryProbabilityResponse- type MethodStreamingType Router "queryProbability" = 'Data.ProtoLens.Service.Types.NonStreaming-instance Data.ProtoLens.Service.Types.HasMethodImpl Router "buildRoute" where- type MethodName Router "buildRoute" = "BuildRoute"- type MethodInput Router "buildRoute" = BuildRouteRequest- type MethodOutput Router "buildRoute" = BuildRouteResponse- type MethodStreamingType Router "buildRoute" = 'Data.ProtoLens.Service.Types.NonStreaming-instance Data.ProtoLens.Service.Types.HasMethodImpl Router "subscribeHtlcEvents" where- type MethodName Router "subscribeHtlcEvents" = "SubscribeHtlcEvents"- type MethodInput Router "subscribeHtlcEvents" = SubscribeHtlcEventsRequest- type MethodOutput Router "subscribeHtlcEvents" = HtlcEvent- type MethodStreamingType Router "subscribeHtlcEvents" = 'Data.ProtoLens.Service.Types.ServerStreaming-instance Data.ProtoLens.Service.Types.HasMethodImpl Router "sendPayment" where- type MethodName Router "sendPayment" = "SendPayment"- type MethodInput Router "sendPayment" = SendPaymentRequest- type MethodOutput Router "sendPayment" = PaymentStatus- type MethodStreamingType Router "sendPayment" = 'Data.ProtoLens.Service.Types.ServerStreaming-instance Data.ProtoLens.Service.Types.HasMethodImpl Router "trackPayment" where- type MethodName Router "trackPayment" = "TrackPayment"- type MethodInput Router "trackPayment" = TrackPaymentRequest- type MethodOutput Router "trackPayment" = PaymentStatus- type MethodStreamingType Router "trackPayment" = 'Data.ProtoLens.Service.Types.ServerStreaming-instance Data.ProtoLens.Service.Types.HasMethodImpl Router "htlcInterceptor" where- type MethodName Router "htlcInterceptor" = "HtlcInterceptor"- type MethodInput Router "htlcInterceptor" = ForwardHtlcInterceptResponse- type MethodOutput Router "htlcInterceptor" = ForwardHtlcInterceptRequest- type MethodStreamingType Router "htlcInterceptor" = 'Data.ProtoLens.Service.Types.BiDiStreaming-instance Data.ProtoLens.Service.Types.HasMethodImpl Router "updateChanStatus" where- type MethodName Router "updateChanStatus" = "UpdateChanStatus"- type MethodInput Router "updateChanStatus" = UpdateChanStatusRequest- type MethodOutput Router "updateChanStatus" = UpdateChanStatusResponse- type MethodStreamingType Router "updateChanStatus" = 'Data.ProtoLens.Service.Types.NonStreaming-packedFileDescriptor :: Data.ByteString.ByteString-packedFileDescriptor- = "\n\- \\DC1router_grpc.proto\DC2\trouterrpc\SUB\SOlnd_grpc.proto\"\215\a\n\- \\DC2SendPaymentRequest\DC2\DC2\n\- \\EOTdest\CAN\SOH \SOH(\fR\EOTdest\DC2\DLE\n\- \\ETXamt\CAN\STX \SOH(\ETXR\ETXamt\DC2\EM\n\- \\bamt_msat\CAN\f \SOH(\ETXR\aamtMsat\DC2!\n\- \\fpayment_hash\CAN\ETX \SOH(\fR\vpaymentHash\DC2(\n\- \\DLEfinal_cltv_delta\CAN\EOT \SOH(\ENQR\SOfinalCltvDelta\DC2!\n\- \\fpayment_addr\CAN\DC4 \SOH(\fR\vpaymentAddr\DC2'\n\- \\SIpayment_request\CAN\ENQ \SOH(\tR\SOpaymentRequest\DC2'\n\- \\SItimeout_seconds\CAN\ACK \SOH(\ENQR\SOtimeoutSeconds\DC2\"\n\- \\rfee_limit_sat\CAN\a \SOH(\ETXR\vfeeLimitSat\DC2$\n\- \\SOfee_limit_msat\CAN\r \SOH(\ETXR\ffeeLimitMsat\DC2.\n\- \\DLEoutgoing_chan_id\CAN\b \SOH(\EOTR\SOoutgoingChanIdB\EOT0\SOH\CAN\SOH\DC2*\n\- \\DC1outgoing_chan_ids\CAN\DC3 \ETX(\EOTR\SIoutgoingChanIds\DC2&\n\- \\SIlast_hop_pubkey\CAN\SO \SOH(\fR\rlastHopPubkey\DC2\GS\n\- \\n\- \cltv_limit\CAN\t \SOH(\ENQR\tcltvLimit\DC21\n\- \\vroute_hints\CAN\n\- \ \ETX(\v2\DLE.lnrpc.RouteHintR\n\- \routeHints\DC2d\n\- \\DC3dest_custom_records\CAN\v \ETX(\v24.routerrpc.SendPaymentRequest.DestCustomRecordsEntryR\DC1destCustomRecords\DC2,\n\- \\DC2allow_self_payment\CAN\SI \SOH(\bR\DLEallowSelfPayment\DC26\n\- \\rdest_features\CAN\DLE \ETX(\SO2\DC1.lnrpc.FeatureBitR\fdestFeatures\DC2\ESC\n\- \\tmax_parts\CAN\DC1 \SOH(\rR\bmaxParts\DC2.\n\- \\DC3no_inflight_updates\CAN\DC2 \SOH(\bR\DC1noInflightUpdates\DC2-\n\- \\DC3max_shard_size_msat\CAN\NAK \SOH(\EOTR\DLEmaxShardSizeMsat\DC2\DLE\n\- \\ETXamp\CAN\SYN \SOH(\bR\ETXamp\SUBD\n\- \\SYNDestCustomRecordsEntry\DC2\DLE\n\- \\ETXkey\CAN\SOH \SOH(\EOTR\ETXkey\DC2\DC4\n\- \\ENQvalue\CAN\STX \SOH(\fR\ENQvalue:\STX8\SOH\"h\n\- \\DC3TrackPaymentRequest\DC2!\n\- \\fpayment_hash\CAN\SOH \SOH(\fR\vpaymentHash\DC2.\n\- \\DC3no_inflight_updates\CAN\STX \SOH(\bR\DC1noInflightUpdates\">\n\- \\SIRouteFeeRequest\DC2\DC2\n\- \\EOTdest\CAN\SOH \SOH(\fR\EOTdest\DC2\ETB\n\- \\aamt_sat\CAN\STX \SOH(\ETXR\ACKamtSat\"d\n\- \\DLERouteFeeResponse\DC2(\n\- \\DLErouting_fee_msat\CAN\SOH \SOH(\ETXR\SOroutingFeeMsat\DC2&\n\- \\SItime_lock_delay\CAN\STX \SOH(\ETXR\rtimeLockDelay\"[\n\- \\DC2SendToRouteRequest\DC2!\n\- \\fpayment_hash\CAN\SOH \SOH(\fR\vpaymentHash\DC2\"\n\- \\ENQroute\CAN\STX \SOH(\v2\f.lnrpc.RouteR\ENQroute\"[\n\- \\DC3SendToRouteResponse\DC2\SUB\n\- \\bpreimage\CAN\SOH \SOH(\fR\bpreimage\DC2(\n\- \\afailure\CAN\STX \SOH(\v2\SO.lnrpc.FailureR\afailure\"\FS\n\- \\SUBResetMissionControlRequest\"\GS\n\- \\ESCResetMissionControlResponse\"\FS\n\- \\SUBQueryMissionControlRequest\"Q\n\- \\ESCQueryMissionControlResponse\DC2,\n\- \\ENQpairs\CAN\STX \ETX(\v2\SYN.routerrpc.PairHistoryR\ENQpairsJ\EOT\b\SOH\DLE\STX\"L\n\- \\FSXImportMissionControlRequest\DC2,\n\- \\ENQpairs\CAN\SOH \ETX(\v2\SYN.routerrpc.PairHistoryR\ENQpairs\"\US\n\- \\GSXImportMissionControlResponse\"\138\SOH\n\- \\vPairHistory\DC2\ESC\n\- \\tnode_from\CAN\SOH \SOH(\fR\bnodeFrom\DC2\ETB\n\- \\anode_to\CAN\STX \SOH(\fR\ACKnodeTo\DC2-\n\- \\ahistory\CAN\a \SOH(\v2\DC3.routerrpc.PairDataR\ahistoryJ\EOT\b\ETX\DLE\EOTJ\EOT\b\EOT\DLE\ENQJ\EOT\b\ENQ\DLE\ACKJ\EOT\b\ACK\DLE\a\"\232\SOH\n\- \\bPairData\DC2\ESC\n\- \\tfail_time\CAN\SOH \SOH(\ETXR\bfailTime\DC2 \n\- \\ffail_amt_sat\CAN\STX \SOH(\ETXR\n\- \failAmtSat\DC2\"\n\- \\rfail_amt_msat\CAN\EOT \SOH(\ETXR\vfailAmtMsat\DC2!\n\- \\fsuccess_time\CAN\ENQ \SOH(\ETXR\vsuccessTime\DC2&\n\- \\SIsuccess_amt_sat\CAN\ACK \SOH(\ETXR\rsuccessAmtSat\DC2(\n\- \\DLEsuccess_amt_msat\CAN\a \SOH(\ETXR\SOsuccessAmtMsatJ\EOT\b\ETX\DLE\EOT\" \n\- \\RSGetMissionControlConfigRequest\"Z\n\- \\USGetMissionControlConfigResponse\DC27\n\- \\ACKconfig\CAN\SOH \SOH(\v2\US.routerrpc.MissionControlConfigR\ACKconfig\"Y\n\- \\RSSetMissionControlConfigRequest\DC27\n\- \\ACKconfig\CAN\SOH \SOH(\v2\US.routerrpc.MissionControlConfigR\ACKconfig\"!\n\- \\USSetMissionControlConfigResponse\"\128\STX\n\- \\DC4MissionControlConfig\DC2*\n\- \\DC1half_life_seconds\CAN\SOH \SOH(\EOTR\SIhalfLifeSeconds\DC2'\n\- \\SIhop_probability\CAN\STX \SOH(\STXR\SOhopProbability\DC2\SYN\n\- \\ACKweight\CAN\ETX \SOH(\STXR\ACKweight\DC26\n\- \\ETBmaximum_payment_results\CAN\EOT \SOH(\rR\NAKmaximumPaymentResults\DC2C\n\- \\RSminimum_failure_relax_interval\CAN\ENQ \SOH(\EOTR\ESCminimumFailureRelaxInterval\"j\n\- \\ETBQueryProbabilityRequest\DC2\ESC\n\- \\tfrom_node\CAN\SOH \SOH(\fR\bfromNode\DC2\ETB\n\- \\ato_node\CAN\STX \SOH(\fR\ACKtoNode\DC2\EM\n\- \\bamt_msat\CAN\ETX \SOH(\ETXR\aamtMsat\"k\n\- \\CANQueryProbabilityResponse\DC2 \n\- \\vprobability\CAN\SOH \SOH(\SOHR\vprobability\DC2-\n\- \\ahistory\CAN\STX \SOH(\v2\DC3.routerrpc.PairDataR\ahistory\"\202\SOH\n\- \\DC1BuildRouteRequest\DC2\EM\n\- \\bamt_msat\CAN\SOH \SOH(\ETXR\aamtMsat\DC2(\n\- \\DLEfinal_cltv_delta\CAN\STX \SOH(\ENQR\SOfinalCltvDelta\DC2,\n\- \\DLEoutgoing_chan_id\CAN\ETX \SOH(\EOTR\SOoutgoingChanIdB\STX0\SOH\DC2\US\n\- \\vhop_pubkeys\CAN\EOT \ETX(\fR\n\- \hopPubkeys\DC2!\n\- \\fpayment_addr\CAN\ENQ \SOH(\fR\vpaymentAddr\"8\n\- \\DC2BuildRouteResponse\DC2\"\n\- \\ENQroute\CAN\SOH \SOH(\v2\f.lnrpc.RouteR\ENQroute\"\FS\n\- \\SUBSubscribeHtlcEventsRequest\"\246\EOT\n\- \\tHtlcEvent\DC2.\n\- \\DC3incoming_channel_id\CAN\SOH \SOH(\EOTR\DC1incomingChannelId\DC2.\n\- \\DC3outgoing_channel_id\CAN\STX \SOH(\EOTR\DC1outgoingChannelId\DC2(\n\- \\DLEincoming_htlc_id\CAN\ETX \SOH(\EOTR\SOincomingHtlcId\DC2(\n\- \\DLEoutgoing_htlc_id\CAN\EOT \SOH(\EOTR\SOoutgoingHtlcId\DC2!\n\- \\ftimestamp_ns\CAN\ENQ \SOH(\EOTR\vtimestampNs\DC2=\n\- \\n\- \event_type\CAN\ACK \SOH(\SO2\RS.routerrpc.HtlcEvent.EventTypeR\teventType\DC2>\n\- \\rforward_event\CAN\a \SOH(\v2\ETB.routerrpc.ForwardEventH\NULR\fforwardEvent\DC2K\n\- \\DC2forward_fail_event\CAN\b \SOH(\v2\ESC.routerrpc.ForwardFailEventH\NULR\DLEforwardFailEvent\DC2;\n\- \\fsettle_event\CAN\t \SOH(\v2\SYN.routerrpc.SettleEventH\NULR\vsettleEvent\DC2B\n\- \\SIlink_fail_event\CAN\n\- \ \SOH(\v2\CAN.routerrpc.LinkFailEventH\NULR\rlinkFailEvent\"<\n\- \\tEventType\DC2\v\n\- \\aUNKNOWN\DLE\NUL\DC2\b\n\- \\EOTSEND\DLE\SOH\DC2\v\n\- \\aRECEIVE\DLE\STX\DC2\v\n\- \\aFORWARD\DLE\ETXB\a\n\- \\ENQevent\"\188\SOH\n\- \\bHtlcInfo\DC2+\n\- \\DC1incoming_timelock\CAN\SOH \SOH(\rR\DLEincomingTimelock\DC2+\n\- \\DC1outgoing_timelock\CAN\STX \SOH(\rR\DLEoutgoingTimelock\DC2*\n\- \\DC1incoming_amt_msat\CAN\ETX \SOH(\EOTR\SIincomingAmtMsat\DC2*\n\- \\DC1outgoing_amt_msat\CAN\EOT \SOH(\EOTR\SIoutgoingAmtMsat\"7\n\- \\fForwardEvent\DC2'\n\- \\EOTinfo\CAN\SOH \SOH(\v2\DC3.routerrpc.HtlcInfoR\EOTinfo\"\DC2\n\- \\DLEForwardFailEvent\")\n\- \\vSettleEvent\DC2\SUB\n\- \\bpreimage\CAN\SOH \SOH(\fR\bpreimage\"\223\SOH\n\- \\rLinkFailEvent\DC2'\n\- \\EOTinfo\CAN\SOH \SOH(\v2\DC3.routerrpc.HtlcInfoR\EOTinfo\DC2=\n\- \\fwire_failure\CAN\STX \SOH(\SO2\SUB.lnrpc.Failure.FailureCodeR\vwireFailure\DC2?\n\- \\SOfailure_detail\CAN\ETX \SOH(\SO2\CAN.routerrpc.FailureDetailR\rfailureDetail\DC2%\n\- \\SOfailure_string\CAN\EOT \SOH(\tR\rfailureString\"\138\SOH\n\- \\rPaymentStatus\DC2-\n\- \\ENQstate\CAN\SOH \SOH(\SO2\ETB.routerrpc.PaymentStateR\ENQstate\DC2\SUB\n\- \\bpreimage\CAN\STX \SOH(\fR\bpreimage\DC2(\n\- \\ENQhtlcs\CAN\EOT \ETX(\v2\DC2.lnrpc.HTLCAttemptR\ENQhtlcsJ\EOT\b\ETX\DLE\EOT\">\n\- \\n\- \CircuitKey\DC2\ETB\n\- \\achan_id\CAN\SOH \SOH(\EOTR\ACKchanId\DC2\ETB\n\- \\ahtlc_id\CAN\STX \SOH(\EOTR\ACKhtlcId\"\191\EOT\n\- \\ESCForwardHtlcInterceptRequest\DC2G\n\- \\DC4incoming_circuit_key\CAN\SOH \SOH(\v2\NAK.routerrpc.CircuitKeyR\DC2incomingCircuitKey\DC20\n\- \\DC4incoming_amount_msat\CAN\ENQ \SOH(\EOTR\DC2incomingAmountMsat\DC2'\n\- \\SIincoming_expiry\CAN\ACK \SOH(\rR\SOincomingExpiry\DC2!\n\- \\fpayment_hash\CAN\STX \SOH(\fR\vpaymentHash\DC2;\n\- \\SUBoutgoing_requested_chan_id\CAN\a \SOH(\EOTR\ETBoutgoingRequestedChanId\DC20\n\- \\DC4outgoing_amount_msat\CAN\ETX \SOH(\EOTR\DC2outgoingAmountMsat\DC2'\n\- \\SIoutgoing_expiry\CAN\EOT \SOH(\rR\SOoutgoingExpiry\DC2`\n\- \\SOcustom_records\CAN\b \ETX(\v29.routerrpc.ForwardHtlcInterceptRequest.CustomRecordsEntryR\rcustomRecords\DC2\GS\n\- \\n\- \onion_blob\CAN\t \SOH(\fR\tonionBlob\SUB@\n\- \\DC2CustomRecordsEntry\DC2\DLE\n\- \\ETXkey\CAN\SOH \SOH(\EOTR\ETXkey\DC2\DC4\n\- \\ENQvalue\CAN\STX \SOH(\fR\ENQvalue:\STX8\SOH\"\192\SOH\n\- \\FSForwardHtlcInterceptResponse\DC2G\n\- \\DC4incoming_circuit_key\CAN\SOH \SOH(\v2\NAK.routerrpc.CircuitKeyR\DC2incomingCircuitKey\DC2;\n\- \\ACKaction\CAN\STX \SOH(\SO2#.routerrpc.ResolveHoldForwardActionR\ACKaction\DC2\SUB\n\- \\bpreimage\CAN\ETX \SOH(\fR\bpreimage\"\130\SOH\n\- \\ETBUpdateChanStatusRequest\DC22\n\- \\n\- \chan_point\CAN\SOH \SOH(\v2\DC3.lnrpc.ChannelPointR\tchanPoint\DC23\n\- \\ACKaction\CAN\STX \SOH(\SO2\ESC.routerrpc.ChanStatusActionR\ACKaction\"\SUB\n\- \\CANUpdateChanStatusResponse*\129\EOT\n\- \\rFailureDetail\DC2\v\n\- \\aUNKNOWN\DLE\NUL\DC2\r\n\- \\tNO_DETAIL\DLE\SOH\DC2\DLE\n\- \\fONION_DECODE\DLE\STX\DC2\NAK\n\- \\DC1LINK_NOT_ELIGIBLE\DLE\ETX\DC2\DC4\n\- \\DLEON_CHAIN_TIMEOUT\DLE\EOT\DC2\DC4\n\- \\DLEHTLC_EXCEEDS_MAX\DLE\ENQ\DC2\CAN\n\- \\DC4INSUFFICIENT_BALANCE\DLE\ACK\DC2\SYN\n\- \\DC2INCOMPLETE_FORWARD\DLE\a\DC2\DC3\n\- \\SIHTLC_ADD_FAILED\DLE\b\DC2\NAK\n\- \\DC1FORWARDS_DISABLED\DLE\t\DC2\DC4\n\- \\DLEINVOICE_CANCELED\DLE\n\- \\DC2\NAK\n\- \\DC1INVOICE_UNDERPAID\DLE\v\DC2\ESC\n\- \\ETBINVOICE_EXPIRY_TOO_SOON\DLE\f\DC2\DC4\n\- \\DLEINVOICE_NOT_OPEN\DLE\r\DC2\ETB\n\- \\DC3MPP_INVOICE_TIMEOUT\DLE\SO\DC2\DC4\n\- \\DLEADDRESS_MISMATCH\DLE\SI\DC2\SYN\n\- \\DC2SET_TOTAL_MISMATCH\DLE\DLE\DC2\NAK\n\- \\DC1SET_TOTAL_TOO_LOW\DLE\DC1\DC2\DLE\n\- \\fSET_OVERPAID\DLE\DC2\DC2\DC3\n\- \\SIUNKNOWN_INVOICE\DLE\DC3\DC2\DC3\n\- \\SIINVALID_KEYSEND\DLE\DC4\DC2\DC3\n\- \\SIMPP_IN_PROGRESS\DLE\NAK\DC2\DC2\n\- \\SOCIRCULAR_ROUTE\DLE\SYN*\174\SOH\n\- \\fPaymentState\DC2\r\n\- \\tIN_FLIGHT\DLE\NUL\DC2\r\n\- \\tSUCCEEDED\DLE\SOH\DC2\DC2\n\- \\SOFAILED_TIMEOUT\DLE\STX\DC2\DC3\n\- \\SIFAILED_NO_ROUTE\DLE\ETX\DC2\DLE\n\- \\fFAILED_ERROR\DLE\EOT\DC2$\n\- \ FAILED_INCORRECT_PAYMENT_DETAILS\DLE\ENQ\DC2\US\n\- \\ESCFAILED_INSUFFICIENT_BALANCE\DLE\ACK*<\n\- \\CANResolveHoldForwardAction\DC2\n\- \\n\- \\ACKSETTLE\DLE\NUL\DC2\b\n\- \\EOTFAIL\DLE\SOH\DC2\n\- \\n\- \\ACKRESUME\DLE\STX*5\n\- \\DLEChanStatusAction\DC2\n\- \\n\- \\ACKENABLE\DLE\NUL\DC2\v\n\- \\aDISABLE\DLE\SOH\DC2\b\n\- \\EOTAUTO\DLE\STX2\241\v\n\- \\ACKRouter\DC2@\n\- \\rSendPaymentV2\DC2\GS.routerrpc.SendPaymentRequest\SUB\SO.lnrpc.Payment0\SOH\DC2B\n\- \\SOTrackPaymentV2\DC2\RS.routerrpc.TrackPaymentRequest\SUB\SO.lnrpc.Payment0\SOH\DC2K\n\- \\DLEEstimateRouteFee\DC2\SUB.routerrpc.RouteFeeRequest\SUB\ESC.routerrpc.RouteFeeResponse\DC2Q\n\- \\vSendToRoute\DC2\GS.routerrpc.SendToRouteRequest\SUB\RS.routerrpc.SendToRouteResponse\"\ETX\136\STX\SOH\DC2B\n\- \\rSendToRouteV2\DC2\GS.routerrpc.SendToRouteRequest\SUB\DC2.lnrpc.HTLCAttempt\DC2d\n\- \\DC3ResetMissionControl\DC2%.routerrpc.ResetMissionControlRequest\SUB&.routerrpc.ResetMissionControlResponse\DC2d\n\- \\DC3QueryMissionControl\DC2%.routerrpc.QueryMissionControlRequest\SUB&.routerrpc.QueryMissionControlResponse\DC2j\n\- \\NAKXImportMissionControl\DC2'.routerrpc.XImportMissionControlRequest\SUB(.routerrpc.XImportMissionControlResponse\DC2p\n\- \\ETBGetMissionControlConfig\DC2).routerrpc.GetMissionControlConfigRequest\SUB*.routerrpc.GetMissionControlConfigResponse\DC2p\n\- \\ETBSetMissionControlConfig\DC2).routerrpc.SetMissionControlConfigRequest\SUB*.routerrpc.SetMissionControlConfigResponse\DC2[\n\- \\DLEQueryProbability\DC2\".routerrpc.QueryProbabilityRequest\SUB#.routerrpc.QueryProbabilityResponse\DC2I\n\- \\n\- \BuildRoute\DC2\FS.routerrpc.BuildRouteRequest\SUB\GS.routerrpc.BuildRouteResponse\DC2T\n\- \\DC3SubscribeHtlcEvents\DC2%.routerrpc.SubscribeHtlcEventsRequest\SUB\DC4.routerrpc.HtlcEvent0\SOH\DC2M\n\- \\vSendPayment\DC2\GS.routerrpc.SendPaymentRequest\SUB\CAN.routerrpc.PaymentStatus\"\ETX\136\STX\SOH0\SOH\DC2O\n\- \\fTrackPayment\DC2\RS.routerrpc.TrackPaymentRequest\SUB\CAN.routerrpc.PaymentStatus\"\ETX\136\STX\SOH0\SOH\DC2f\n\- \\SIHtlcInterceptor\DC2'.routerrpc.ForwardHtlcInterceptResponse\SUB&.routerrpc.ForwardHtlcInterceptRequest(\SOH0\SOH\DC2[\n\- \\DLEUpdateChanStatus\DC2\".routerrpc.UpdateChanStatusRequest\SUB#.routerrpc.UpdateChanStatusResponseB1Z/github.com/lightningnetwork/lnd/lnrpc/routerrpcJ\196\202\SOH\n\- \\a\DC2\ENQ\STX\NUL\161\ACK\SOH\n\- \\143\SOH\n\- \\SOH\f\DC2\ETX\STX\NUL\DC22\132\SOHsource https://raw.githubusercontent.com/lightningnetwork/lnd/c733c139e95a6ef4e5f9ac88b43328ac96c333ef/lnrpc/routerrpc/router.proto\n\- \\n\- \\t\n\- \\STX\ETX\NUL\DC2\ETX\EOT\NUL\CAN\n\- \\b\n\- \\SOH\STX\DC2\ETX\ACK\NUL\DC2\n\- \\b\n\- \\SOH\b\DC2\ETX\b\NULF\n\- \\t\n\- \\STX\b\v\DC2\ETX\b\NULF\n\- \m\n\- \\STX\ACK\NUL\DC2\ENQ\f\NUL\143\SOH\SOH\SUB` Router is a service that offers advanced interaction with the router\n\- \ subsystem of the daemon.\n\- \\n\- \\n\- \\n\- \\ETX\ACK\NUL\SOH\DC2\ETX\f\b\SO\n\- \\168\SOH\n\- \\EOT\ACK\NUL\STX\NUL\DC2\ETX\DC2\EOTJ\SUB\154\SOH\n\- \SendPaymentV2 attempts to route a payment described by the passed\n\- \PaymentRequest to the final destination. The call returns a stream of\n\- \payment updates.\n\- \\n\- \\f\n\- \\ENQ\ACK\NUL\STX\NUL\SOH\DC2\ETX\DC2\b\NAK\n\- \\f\n\- \\ENQ\ACK\NUL\STX\NUL\STX\DC2\ETX\DC2\ETB)\n\- \\f\n\- \\ENQ\ACK\NUL\STX\NUL\ACK\DC2\ETX\DC24:\n\- \\f\n\- \\ENQ\ACK\NUL\STX\NUL\ETX\DC2\ETX\DC2;H\n\- \f\n\- \\EOT\ACK\NUL\STX\SOH\DC2\ETX\CAN\EOTL\SUBY\n\- \TrackPaymentV2 returns an update stream for the payment identified by the\n\- \payment hash.\n\- \\n\- \\f\n\- \\ENQ\ACK\NUL\STX\SOH\SOH\DC2\ETX\CAN\b\SYN\n\- \\f\n\- \\ENQ\ACK\NUL\STX\SOH\STX\DC2\ETX\CAN\CAN+\n\- \\f\n\- \\ENQ\ACK\NUL\STX\SOH\ACK\DC2\ETX\CAN6<\n\- \\f\n\- \\ENQ\ACK\NUL\STX\SOH\ETX\DC2\ETX\CAN=J\n\- \\145\SOH\n\- \\EOT\ACK\NUL\STX\STX\DC2\ETX\RS\EOTF\SUB\131\SOH\n\- \EstimateRouteFee allows callers to obtain a lower bound w.r.t how much it\n\- \may cost to send an HTLC to the target end destination.\n\- \\n\- \\f\n\- \\ENQ\ACK\NUL\STX\STX\SOH\DC2\ETX\RS\b\CAN\n\- \\f\n\- \\ENQ\ACK\NUL\STX\STX\STX\DC2\ETX\RS\SUB)\n\- \\f\n\- \\ENQ\ACK\NUL\STX\STX\ETX\DC2\ETX\RS4D\n\- \\235\STX\n\- \\EOT\ACK\NUL\STX\ETX\DC2\EOT'\EOT)\ENQ\SUB\220\STX\n\- \Deprecated, use SendToRouteV2. SendToRoute attempts to make a payment via\n\- \the specified route. This method differs from SendPayment in that it\n\- \allows users to specify a full route manually. This can be used for\n\- \things like rebalancing, and atomic swaps. It differs from the newer\n\- \SendToRouteV2 in that it doesn't return the full HTLC information.\n\- \\n\- \\f\n\- \\ENQ\ACK\NUL\STX\ETX\SOH\DC2\ETX'\b\DC3\n\- \\f\n\- \\ENQ\ACK\NUL\STX\ETX\STX\DC2\ETX'\NAK'\n\- \\f\n\- \\ENQ\ACK\NUL\STX\ETX\ETX\DC2\ETX'2E\n\- \\f\n\- \\ENQ\ACK\NUL\STX\ETX\EOT\DC2\ETX(\b!\n\- \\r\n\- \\ACK\ACK\NUL\STX\ETX\EOT!\DC2\ETX(\b!\n\- \\240\SOH\n\- \\EOT\ACK\NUL\STX\EOT\DC2\ETX1\EOTG\SUB\226\SOH\n\- \SendToRouteV2 attempts to make a payment via the specified route. This\n\- \method differs from SendPayment in that it allows users to specify a full\n\- \route manually. This can be used for things like rebalancing, and atomic\n\- \swaps.\n\- \\n\- \\f\n\- \\ENQ\ACK\NUL\STX\EOT\SOH\DC2\ETX1\b\NAK\n\- \\f\n\- \\ENQ\ACK\NUL\STX\EOT\STX\DC2\ETX1\ETB)\n\- \\f\n\- \\ENQ\ACK\NUL\STX\EOT\ETX\DC2\ETX14E\n\- \c\n\- \\EOT\ACK\NUL\STX\ENQ\DC2\EOT7\EOT8.\SUBU\n\- \ResetMissionControl clears all mission control state and starts with a clean\n\- \slate.\n\- \\n\- \\f\n\- \\ENQ\ACK\NUL\STX\ENQ\SOH\DC2\ETX7\b\ESC\n\- \\f\n\- \\ENQ\ACK\NUL\STX\ENQ\STX\DC2\ETX7\GS7\n\- \\f\n\- \\ENQ\ACK\NUL\STX\ENQ\ETX\DC2\ETX8\DC1,\n\- \w\n\- \\EOT\ACK\NUL\STX\ACK\DC2\EOT>\EOT?.\SUBi\n\- \QueryMissionControl exposes the internal mission control state to callers.\n\- \It is a development feature.\n\- \\n\- \\f\n\- \\ENQ\ACK\NUL\STX\ACK\SOH\DC2\ETX>\b\ESC\n\- \\f\n\- \\ENQ\ACK\NUL\STX\ACK\STX\DC2\ETX>\GS7\n\- \\f\n\- \\ENQ\ACK\NUL\STX\ACK\ETX\DC2\ETX?\DC1,\n\- \\161\STX\n\- \\EOT\ACK\NUL\STX\a\DC2\EOTG\EOTH0\SUB\146\STX\n\- \XImportMissionControl is an experimental API that imports the state provided\n\- \to the internal mission control's state, using all results which are more\n\- \recent than our existing values. These values will only be imported\n\- \in-memory, and will not be persisted across restarts.\n\- \\n\- \\f\n\- \\ENQ\ACK\NUL\STX\a\SOH\DC2\ETXG\b\GS\n\- \\f\n\- \\ENQ\ACK\NUL\STX\a\STX\DC2\ETXG\US;\n\- \\f\n\- \\ENQ\ACK\NUL\STX\a\ETX\DC2\ETXH\DC1.\n\- \Q\n\- \\EOT\ACK\NUL\STX\b\DC2\EOTM\EOTN2\SUBC\n\- \GetMissionControlConfig returns mission control's current config.\n\- \\n\- \\f\n\- \\ENQ\ACK\NUL\STX\b\SOH\DC2\ETXM\b\US\n\- \\f\n\- \\ENQ\ACK\NUL\STX\b\STX\DC2\ETXM!?\n\- \\f\n\- \\ENQ\ACK\NUL\STX\b\ETX\DC2\ETXN\DC10\n\- \k\n\- \\EOT\ACK\NUL\STX\t\DC2\EOTT\EOTU2\SUB]\n\- \SetMissionControlConfig will set mission control's config, if the config\n\- \provided is valid.\n\- \\n\- \\f\n\- \\ENQ\ACK\NUL\STX\t\SOH\DC2\ETXT\b\US\n\- \\f\n\- \\ENQ\ACK\NUL\STX\t\STX\DC2\ETXT!?\n\- \\f\n\- \\ENQ\ACK\NUL\STX\t\ETX\DC2\ETXU\DC10\n\- \s\n\- \\EOT\ACK\NUL\STX\n\- \\DC2\EOT[\EOT\\+\SUBe\n\- \QueryProbability returns the current success probability estimate for a\n\- \given node pair and amount.\n\- \\n\- \\f\n\- \\ENQ\ACK\NUL\STX\n\- \\SOH\DC2\ETX[\b\CAN\n\- \\f\n\- \\ENQ\ACK\NUL\STX\n\- \\STX\DC2\ETX[\SUB1\n\- \\f\n\- \\ENQ\ACK\NUL\STX\n\- \\ETX\DC2\ETX\\\DC1)\n\- \\206\SOH\n\- \\EOT\ACK\NUL\STX\v\DC2\ETXc\EOTD\SUB\192\SOH\n\- \BuildRoute builds a fully specified route based on a list of hop public\n\- \keys. It retrieves the relevant channel policies from the graph in order to\n\- \calculate the correct fees and time locks.\n\- \\n\- \\f\n\- \\ENQ\ACK\NUL\STX\v\SOH\DC2\ETXc\b\DC2\n\- \\f\n\- \\ENQ\ACK\NUL\STX\v\STX\DC2\ETXc\DC4%\n\- \\f\n\- \\ENQ\ACK\NUL\STX\v\ETX\DC2\ETXc0B\n\- \\138\SOH\n\- \\EOT\ACK\NUL\STX\f\DC2\EOTi\EOTj#\SUB|\n\- \SubscribeHtlcEvents creates a uni-directional stream from the server to\n\- \the client which delivers a stream of htlc events.\n\- \\n\- \\f\n\- \\ENQ\ACK\NUL\STX\f\SOH\DC2\ETXi\b\ESC\n\- \\f\n\- \\ENQ\ACK\NUL\STX\f\STX\DC2\ETXi\GS7\n\- \\f\n\- \\ENQ\ACK\NUL\STX\f\ACK\DC2\ETXj\DC1\ETB\n\- \\f\n\- \\ENQ\ACK\NUL\STX\f\ETX\DC2\ETXj\CAN!\n\- \\205\SOH\n\- \\EOT\ACK\NUL\STX\r\DC2\EOTq\EOTs\ENQ\SUB\190\SOH\n\- \Deprecated, use SendPaymentV2. SendPayment attempts to route a payment\n\- \described by the passed PaymentRequest to the final destination. The call\n\- \returns a stream of payment status updates.\n\- \\n\- \\f\n\- \\ENQ\ACK\NUL\STX\r\SOH\DC2\ETXq\b\DC3\n\- \\f\n\- \\ENQ\ACK\NUL\STX\r\STX\DC2\ETXq\NAK'\n\- \\f\n\- \\ENQ\ACK\NUL\STX\r\ACK\DC2\ETXq28\n\- \\f\n\- \\ENQ\ACK\NUL\STX\r\ETX\DC2\ETXq9F\n\- \\f\n\- \\ENQ\ACK\NUL\STX\r\EOT\DC2\ETXr\b!\n\- \\r\n\- \\ACK\ACK\NUL\STX\r\EOT!\DC2\ETXr\b!\n\- \\133\SOH\n\- \\EOT\ACK\NUL\STX\SO\DC2\EOTy\EOT{\ENQ\SUBw\n\- \Deprecated, use TrackPaymentV2. TrackPayment returns an update stream for\n\- \the payment identified by the payment hash.\n\- \\n\- \\f\n\- \\ENQ\ACK\NUL\STX\SO\SOH\DC2\ETXy\b\DC4\n\- \\f\n\- \\ENQ\ACK\NUL\STX\SO\STX\DC2\ETXy\SYN)\n\- \\f\n\- \\ENQ\ACK\NUL\STX\SO\ACK\DC2\ETXy4:\n\- \\f\n\- \\ENQ\ACK\NUL\STX\SO\ETX\DC2\ETXy;H\n\- \\f\n\- \\ENQ\ACK\NUL\STX\SO\EOT\DC2\ETXz\b!\n\- \\r\n\- \\ACK\ACK\NUL\STX\SO\EOT!\DC2\ETXz\b!\n\- \\221\STX\n\- \\EOT\ACK\NUL\STX\SI\DC2\ACK\132\SOH\EOT\133\SOH5\SUB\204\STX*\n\- \HtlcInterceptor dispatches a bi-directional streaming RPC in which\n\- \Forwarded HTLC requests are sent to the client and the client responds with\n\- \a boolean that tells LND if this htlc should be intercepted.\n\- \In case of interception, the htlc can be either settled, cancelled or\n\- \resumed later by using the ResolveHoldForward endpoint.\n\- \\n\- \\r\n\- \\ENQ\ACK\NUL\STX\SI\SOH\DC2\EOT\132\SOH\b\ETB\n\- \\r\n\- \\ENQ\ACK\NUL\STX\SI\ENQ\DC2\EOT\132\SOH\EM\US\n\- \\r\n\- \\ENQ\ACK\NUL\STX\SI\STX\DC2\EOT\132\SOH <\n\- \\r\n\- \\ENQ\ACK\NUL\STX\SI\ACK\DC2\EOT\133\SOH\DC1\ETB\n\- \\r\n\- \\ENQ\ACK\NUL\STX\SI\ETX\DC2\EOT\133\SOH\CAN3\n\- \\244\SOH\n\- \\EOT\ACK\NUL\STX\DLE\DC2\ACK\141\SOH\EOT\142\SOH+\SUB\227\SOH\n\- \UpdateChanStatus attempts to manually set the state of a channel\n\- \(enabled, disabled, or auto). A manual \"disable\" request will cause the\n\- \channel to stay disabled until a subsequent manual request of either\n\- \\"enable\" or \"auto\".\n\- \\n\- \\r\n\- \\ENQ\ACK\NUL\STX\DLE\SOH\DC2\EOT\141\SOH\b\CAN\n\- \\r\n\- \\ENQ\ACK\NUL\STX\DLE\STX\DC2\EOT\141\SOH\SUB1\n\- \\r\n\- \\ENQ\ACK\NUL\STX\DLE\ETX\DC2\EOT\142\SOH\DC1)\n\- \\f\n\- \\STX\EOT\NUL\DC2\ACK\145\SOH\NUL\160\STX\SOH\n\- \\v\n\- \\ETX\EOT\NUL\SOH\DC2\EOT\145\SOH\b\SUB\n\- \<\n\- \\EOT\EOT\NUL\STX\NUL\DC2\EOT\147\SOH\EOT\DC3\SUB. The identity pubkey of the payment recipient\n\- \\n\- \\SI\n\- \\ENQ\EOT\NUL\STX\NUL\EOT\DC2\ACK\147\SOH\EOT\145\SOH\FS\n\- \\r\n\- \\ENQ\EOT\NUL\STX\NUL\ENQ\DC2\EOT\147\SOH\EOT\t\n\- \\r\n\- \\ENQ\EOT\NUL\STX\NUL\SOH\DC2\EOT\147\SOH\n\- \\SO\n\- \\r\n\- \\ENQ\EOT\NUL\STX\NUL\ETX\DC2\EOT\147\SOH\DC1\DC2\n\- \`\n\- \\EOT\EOT\NUL\STX\SOH\DC2\EOT\154\SOH\EOT\DC2\SUBR\n\- \Number of satoshis to send.\n\- \\n\- \The fields amt and amt_msat are mutually exclusive.\n\- \\n\- \\SI\n\- \\ENQ\EOT\NUL\STX\SOH\EOT\DC2\ACK\154\SOH\EOT\147\SOH\DC3\n\- \\r\n\- \\ENQ\EOT\NUL\STX\SOH\ENQ\DC2\EOT\154\SOH\EOT\t\n\- \\r\n\- \\ENQ\EOT\NUL\STX\SOH\SOH\DC2\EOT\154\SOH\n\- \\r\n\- \\r\n\- \\ENQ\EOT\NUL\STX\SOH\ETX\DC2\EOT\154\SOH\DLE\DC1\n\- \e\n\- \\EOT\EOT\NUL\STX\STX\DC2\EOT\161\SOH\EOT\CAN\SUBW\n\- \Number of millisatoshis to send.\n\- \\n\- \The fields amt and amt_msat are mutually exclusive.\n\- \\n\- \\SI\n\- \\ENQ\EOT\NUL\STX\STX\EOT\DC2\ACK\161\SOH\EOT\154\SOH\DC2\n\- \\r\n\- \\ENQ\EOT\NUL\STX\STX\ENQ\DC2\EOT\161\SOH\EOT\t\n\- \\r\n\- \\ENQ\EOT\NUL\STX\STX\SOH\DC2\EOT\161\SOH\n\- \\DC2\n\- \\r\n\- \\ENQ\EOT\NUL\STX\STX\ETX\DC2\EOT\161\SOH\NAK\ETB\n\- \9\n\- \\EOT\EOT\NUL\STX\ETX\DC2\EOT\164\SOH\EOT\ESC\SUB+ The hash to use within the payment's HTLC\n\- \\n\- \\SI\n\- \\ENQ\EOT\NUL\STX\ETX\EOT\DC2\ACK\164\SOH\EOT\161\SOH\CAN\n\- \\r\n\- \\ENQ\EOT\NUL\STX\ETX\ENQ\DC2\EOT\164\SOH\EOT\t\n\- \\r\n\- \\ENQ\EOT\NUL\STX\ETX\SOH\DC2\EOT\164\SOH\n\- \\SYN\n\- \\r\n\- \\ENQ\EOT\NUL\STX\ETX\ETX\DC2\EOT\164\SOH\EM\SUB\n\- \q\n\- \\EOT\EOT\NUL\STX\EOT\DC2\EOT\170\SOH\EOT\US\SUBc\n\- \The CLTV delta from the current height that should be used to set the\n\- \timelock for the final hop.\n\- \\n\- \\SI\n\- \\ENQ\EOT\NUL\STX\EOT\EOT\DC2\ACK\170\SOH\EOT\164\SOH\ESC\n\- \\r\n\- \\ENQ\EOT\NUL\STX\EOT\ENQ\DC2\EOT\170\SOH\EOT\t\n\- \\r\n\- \\ENQ\EOT\NUL\STX\EOT\SOH\DC2\EOT\170\SOH\n\- \\SUB\n\- \\r\n\- \\ENQ\EOT\NUL\STX\EOT\ETX\DC2\EOT\170\SOH\GS\RS\n\- \Y\n\- \\EOT\EOT\NUL\STX\ENQ\DC2\EOT\173\SOH\EOT\FS\SUBK An optional payment addr to be included within the last hop of the route.\n\- \\n\- \\SI\n\- \\ENQ\EOT\NUL\STX\ENQ\EOT\DC2\ACK\173\SOH\EOT\170\SOH\US\n\- \\r\n\- \\ENQ\EOT\NUL\STX\ENQ\ENQ\DC2\EOT\173\SOH\EOT\t\n\- \\r\n\- \\ENQ\EOT\NUL\STX\ENQ\SOH\DC2\EOT\173\SOH\n\- \\SYN\n\- \\r\n\- \\ENQ\EOT\NUL\STX\ENQ\ETX\DC2\EOT\173\SOH\EM\ESC\n\- \\137\ETX\n\- \\EOT\EOT\NUL\STX\ACK\DC2\EOT\182\SOH\EOT\US\SUB\250\STX\n\- \A bare-bones invoice for a payment within the Lightning Network. With the\n\- \details of the invoice, the sender has all the data necessary to send a\n\- \payment to the recipient. The amount in the payment request may be zero. In\n\- \that case it is required to set the amt field as well. If no payment request\n\- \is specified, the following fields are required: dest, amt and payment_hash.\n\- \\n\- \\SI\n\- \\ENQ\EOT\NUL\STX\ACK\EOT\DC2\ACK\182\SOH\EOT\173\SOH\FS\n\- \\r\n\- \\ENQ\EOT\NUL\STX\ACK\ENQ\DC2\EOT\182\SOH\EOT\n\- \\n\- \\r\n\- \\ENQ\EOT\NUL\STX\ACK\SOH\DC2\EOT\182\SOH\v\SUB\n\- \\r\n\- \\ENQ\EOT\NUL\STX\ACK\ETX\DC2\EOT\182\SOH\GS\RS\n\- \\130\STX\n\- \\EOT\EOT\NUL\STX\a\DC2\EOT\190\SOH\EOT\RS\SUB\243\SOH\n\- \An upper limit on the amount of time we should spend when attempting to\n\- \fulfill the payment. This is expressed in seconds. If we cannot make a\n\- \successful payment within this time frame, an error will be returned.\n\- \This field must be non-zero.\n\- \\n\- \\SI\n\- \\ENQ\EOT\NUL\STX\a\EOT\DC2\ACK\190\SOH\EOT\182\SOH\US\n\- \\r\n\- \\ENQ\EOT\NUL\STX\a\ENQ\DC2\EOT\190\SOH\EOT\t\n\- \\r\n\- \\ENQ\EOT\NUL\STX\a\SOH\DC2\EOT\190\SOH\n\- \\EM\n\- \\r\n\- \\ENQ\EOT\NUL\STX\a\ETX\DC2\EOT\190\SOH\FS\GS\n\- \\129\ETX\n\- \\EOT\EOT\NUL\STX\b\DC2\EOT\200\SOH\EOT\FS\SUB\242\STX\n\- \The maximum number of satoshis that will be paid as a fee of the payment.\n\- \If this field is left to the default value of 0, only zero-fee routes will\n\- \be considered. This usually means single hop routes connecting directly to\n\- \the destination. To send the payment without a fee limit, use max int here.\n\- \\n\- \The fields fee_limit_sat and fee_limit_msat are mutually exclusive.\n\- \\n\- \\SI\n\- \\ENQ\EOT\NUL\STX\b\EOT\DC2\ACK\200\SOH\EOT\190\SOH\RS\n\- \\r\n\- \\ENQ\EOT\NUL\STX\b\ENQ\DC2\EOT\200\SOH\EOT\t\n\- \\r\n\- \\ENQ\EOT\NUL\STX\b\SOH\DC2\EOT\200\SOH\n\- \\ETB\n\- \\r\n\- \\ENQ\EOT\NUL\STX\b\ETX\DC2\EOT\200\SOH\SUB\ESC\n\- \\134\ETX\n\- \\EOT\EOT\NUL\STX\t\DC2\EOT\211\SOH\EOT\RS\SUB\247\STX\n\- \The maximum number of millisatoshis that will be paid as a fee of the\n\- \payment. If this field is left to the default value of 0, only zero-fee\n\- \routes will be considered. This usually means single hop routes connecting\n\- \directly to the destination. To send the payment without a fee limit, use\n\- \max int here.\n\- \\n\- \The fields fee_limit_sat and fee_limit_msat are mutually exclusive.\n\- \\n\- \\SI\n\- \\ENQ\EOT\NUL\STX\t\EOT\DC2\ACK\211\SOH\EOT\200\SOH\FS\n\- \\r\n\- \\ENQ\EOT\NUL\STX\t\ENQ\DC2\EOT\211\SOH\EOT\t\n\- \\r\n\- \\ENQ\EOT\NUL\STX\t\SOH\DC2\EOT\211\SOH\n\- \\CAN\n\- \\r\n\- \\ENQ\EOT\NUL\STX\t\ETX\DC2\EOT\211\SOH\ESC\GS\n\- \\187\SOH\n\- \\EOT\EOT\NUL\STX\n\- \\DC2\EOT\218\SOH\EOTH\SUB\172\SOH\n\- \Deprecated, use outgoing_chan_ids. The channel id of the channel that must\n\- \be taken to the first hop. If zero, any channel may be used (unless\n\- \outgoing_chan_ids are set).\n\- \\n\- \\SI\n\- \\ENQ\EOT\NUL\STX\n\- \\EOT\DC2\ACK\218\SOH\EOT\211\SOH\RS\n\- \\r\n\- \\ENQ\EOT\NUL\STX\n\- \\ENQ\DC2\EOT\218\SOH\EOT\n\- \\n\- \\r\n\- \\ENQ\EOT\NUL\STX\n\- \\SOH\DC2\EOT\218\SOH\v\ESC\n\- \\r\n\- \\ENQ\EOT\NUL\STX\n\- \\ETX\DC2\EOT\218\SOH\RS\US\n\- \\r\n\- \\ENQ\EOT\NUL\STX\n\- \\b\DC2\EOT\218\SOH G\n\- \\SO\n\- \\ACK\EOT\NUL\STX\n\- \\b\ACK\DC2\EOT\218\SOH!3\n\- \\SO\n\- \\ACK\EOT\NUL\STX\n\- \\b\ETX\DC2\EOT\218\SOH5F\n\- \q\n\- \\EOT\EOT\NUL\STX\v\DC2\EOT\224\SOH\EOT+\SUBc\n\- \The channel ids of the channels are allowed for the first hop. If empty,\n\- \any channel may be used.\n\- \\n\- \\r\n\- \\ENQ\EOT\NUL\STX\v\EOT\DC2\EOT\224\SOH\EOT\f\n\- \\r\n\- \\ENQ\EOT\NUL\STX\v\ENQ\DC2\EOT\224\SOH\r\DC3\n\- \\r\n\- \\ENQ\EOT\NUL\STX\v\SOH\DC2\EOT\224\SOH\DC4%\n\- \\r\n\- \\ENQ\EOT\NUL\STX\v\ETX\DC2\EOT\224\SOH(*\n\- \W\n\- \\EOT\EOT\NUL\STX\f\DC2\EOT\229\SOH\EOT\US\SUBI\n\- \The pubkey of the last hop of the route. If empty, any hop may be used.\n\- \\n\- \\SI\n\- \\ENQ\EOT\NUL\STX\f\EOT\DC2\ACK\229\SOH\EOT\224\SOH+\n\- \\r\n\- \\ENQ\EOT\NUL\STX\f\ENQ\DC2\EOT\229\SOH\EOT\t\n\- \\r\n\- \\ENQ\EOT\NUL\STX\f\SOH\DC2\EOT\229\SOH\n\- \\EM\n\- \\r\n\- \\ENQ\EOT\NUL\STX\f\ETX\DC2\EOT\229\SOH\FS\RS\n\- \\185\SOH\n\- \\EOT\EOT\NUL\STX\r\DC2\EOT\236\SOH\EOT\EM\SUB\170\SOH\n\- \An optional maximum total time lock for the route. This should not exceed\n\- \lnd's `--max-cltv-expiry` setting. If zero, then the value of\n\- \`--max-cltv-expiry` is enforced.\n\- \\n\- \\SI\n\- \\ENQ\EOT\NUL\STX\r\EOT\DC2\ACK\236\SOH\EOT\229\SOH\US\n\- \\r\n\- \\ENQ\EOT\NUL\STX\r\ENQ\DC2\EOT\236\SOH\EOT\t\n\- \\r\n\- \\ENQ\EOT\NUL\STX\r\SOH\DC2\EOT\236\SOH\n\- \\DC4\n\- \\r\n\- \\ENQ\EOT\NUL\STX\r\ETX\DC2\EOT\236\SOH\ETB\CAN\n\- \W\n\- \\EOT\EOT\NUL\STX\SO\DC2\EOT\241\SOH\EOT.\SUBI\n\- \Optional route hints to reach the destination through private channels.\n\- \\n\- \\r\n\- \\ENQ\EOT\NUL\STX\SO\EOT\DC2\EOT\241\SOH\EOT\f\n\- \\r\n\- \\ENQ\EOT\NUL\STX\SO\ACK\DC2\EOT\241\SOH\r\FS\n\- \\r\n\- \\ENQ\EOT\NUL\STX\SO\SOH\DC2\EOT\241\SOH\GS(\n\- \\r\n\- \\ENQ\EOT\NUL\STX\SO\ETX\DC2\EOT\241\SOH+-\n\- \\204\STX\n\- \\EOT\EOT\NUL\STX\SI\DC2\EOT\250\SOH\EOT0\SUB\189\STX\n\- \An optional field that can be used to pass an arbitrary set of TLV records\n\- \to a peer which understands the new records. This can be used to pass\n\- \application specific data during the payment attempt. Record types are\n\- \required to be in the custom range >= 65536. When using REST, the values\n\- \must be encoded as base64.\n\- \\n\- \\SI\n\- \\ENQ\EOT\NUL\STX\SI\EOT\DC2\ACK\250\SOH\EOT\241\SOH.\n\- \\r\n\- \\ENQ\EOT\NUL\STX\SI\ACK\DC2\EOT\250\SOH\EOT\SYN\n\- \\r\n\- \\ENQ\EOT\NUL\STX\SI\SOH\DC2\EOT\250\SOH\ETB*\n\- \\r\n\- \\ENQ\EOT\NUL\STX\SI\ETX\DC2\EOT\250\SOH-/\n\- \@\n\- \\EOT\EOT\NUL\STX\DLE\DC2\EOT\253\SOH\EOT!\SUB2 If set, circular payments to self are permitted.\n\- \\n\- \\SI\n\- \\ENQ\EOT\NUL\STX\DLE\EOT\DC2\ACK\253\SOH\EOT\250\SOH0\n\- \\r\n\- \\ENQ\EOT\NUL\STX\DLE\ENQ\DC2\EOT\253\SOH\EOT\b\n\- \\r\n\- \\ENQ\EOT\NUL\STX\DLE\SOH\DC2\EOT\253\SOH\t\ESC\n\- \\r\n\- \\ENQ\EOT\NUL\STX\DLE\ETX\DC2\EOT\253\SOH\RS \n\- \\195\STX\n\- \\EOT\EOT\NUL\STX\DC1\DC2\EOT\134\STX\EOT1\SUB\180\STX\n\- \Features assumed to be supported by the final node. All transitive feature\n\- \dependencies must also be set properly. For a given feature bit pair, either\n\- \optional or remote may be set, but not both. If this field is nil or empty,\n\- \the router will try to load destination features from the graph as a\n\- \fallback.\n\- \\n\- \\r\n\- \\ENQ\EOT\NUL\STX\DC1\EOT\DC2\EOT\134\STX\EOT\f\n\- \\r\n\- \\ENQ\EOT\NUL\STX\DC1\ACK\DC2\EOT\134\STX\r\GS\n\- \\r\n\- \\ENQ\EOT\NUL\STX\DC1\SOH\DC2\EOT\134\STX\RS+\n\- \\r\n\- \\ENQ\EOT\NUL\STX\DC1\ETX\DC2\EOT\134\STX.0\n\- \c\n\- \\EOT\EOT\NUL\STX\DC2\DC2\EOT\140\STX\EOT\SUB\SUBU\n\- \The maximum number of partial payments that may be use to complete the full\n\- \amount.\n\- \\n\- \\SI\n\- \\ENQ\EOT\NUL\STX\DC2\EOT\DC2\ACK\140\STX\EOT\134\STX1\n\- \\r\n\- \\ENQ\EOT\NUL\STX\DC2\ENQ\DC2\EOT\140\STX\EOT\n\- \\n\- \\r\n\- \\ENQ\EOT\NUL\STX\DC2\SOH\DC2\EOT\140\STX\v\DC4\n\- \\r\n\- \\ENQ\EOT\NUL\STX\DC2\ETX\DC2\EOT\140\STX\ETB\EM\n\- \\151\SOH\n\- \\EOT\EOT\NUL\STX\DC3\DC2\EOT\146\STX\EOT\"\SUB\136\SOH\n\- \If set, only the final payment update is streamed back. Intermediate updates\n\- \that show which htlcs are still in flight are suppressed.\n\- \\n\- \\SI\n\- \\ENQ\EOT\NUL\STX\DC3\EOT\DC2\ACK\146\STX\EOT\140\STX\SUB\n\- \\r\n\- \\ENQ\EOT\NUL\STX\DC3\ENQ\DC2\EOT\146\STX\EOT\b\n\- \\r\n\- \\ENQ\EOT\NUL\STX\DC3\SOH\DC2\EOT\146\STX\t\FS\n\- \\r\n\- \\ENQ\EOT\NUL\STX\DC3\ETX\DC2\EOT\146\STX\US!\n\- \\141\STX\n\- \\EOT\EOT\NUL\STX\DC4\DC2\EOT\154\STX\EOT$\SUB\254\SOH\n\- \The largest payment split that should be attempted when making a payment if\n\- \splitting is necessary. Setting this value will effectively cause lnd to\n\- \split more aggressively, vs only when it thinks it needs to. Note that this\n\- \value is in milli-satoshis.\n\- \\n\- \\SI\n\- \\ENQ\EOT\NUL\STX\DC4\EOT\DC2\ACK\154\STX\EOT\146\STX\"\n\- \\r\n\- \\ENQ\EOT\NUL\STX\DC4\ENQ\DC2\EOT\154\STX\EOT\n\- \\n\- \\r\n\- \\ENQ\EOT\NUL\STX\DC4\SOH\DC2\EOT\154\STX\v\RS\n\- \\r\n\- \\ENQ\EOT\NUL\STX\DC4\ETX\DC2\EOT\154\STX!#\n\- \9\n\- \\EOT\EOT\NUL\STX\NAK\DC2\EOT\159\STX\EOT\DC2\SUB+\n\- \If set, an AMP-payment will be attempted.\n\- \\n\- \\SI\n\- \\ENQ\EOT\NUL\STX\NAK\EOT\DC2\ACK\159\STX\EOT\154\STX$\n\- \\r\n\- \\ENQ\EOT\NUL\STX\NAK\ENQ\DC2\EOT\159\STX\EOT\b\n\- \\r\n\- \\ENQ\EOT\NUL\STX\NAK\SOH\DC2\EOT\159\STX\t\f\n\- \\r\n\- \\ENQ\EOT\NUL\STX\NAK\ETX\DC2\EOT\159\STX\SI\DC1\n\- \\f\n\- \\STX\EOT\SOH\DC2\ACK\162\STX\NUL\171\STX\SOH\n\- \\v\n\- \\ETX\EOT\SOH\SOH\DC2\EOT\162\STX\b\ESC\n\- \3\n\- \\EOT\EOT\SOH\STX\NUL\DC2\EOT\164\STX\EOT\ESC\SUB% The hash of the payment to look up.\n\- \\n\- \\SI\n\- \\ENQ\EOT\SOH\STX\NUL\EOT\DC2\ACK\164\STX\EOT\162\STX\GS\n\- \\r\n\- \\ENQ\EOT\SOH\STX\NUL\ENQ\DC2\EOT\164\STX\EOT\t\n\- \\r\n\- \\ENQ\EOT\SOH\STX\NUL\SOH\DC2\EOT\164\STX\n\- \\SYN\n\- \\r\n\- \\ENQ\EOT\SOH\STX\NUL\ETX\DC2\EOT\164\STX\EM\SUB\n\- \\151\SOH\n\- \\EOT\EOT\SOH\STX\SOH\DC2\EOT\170\STX\EOT!\SUB\136\SOH\n\- \If set, only the final payment update is streamed back. Intermediate updates\n\- \that show which htlcs are still in flight are suppressed.\n\- \\n\- \\SI\n\- \\ENQ\EOT\SOH\STX\SOH\EOT\DC2\ACK\170\STX\EOT\164\STX\ESC\n\- \\r\n\- \\ENQ\EOT\SOH\STX\SOH\ENQ\DC2\EOT\170\STX\EOT\b\n\- \\r\n\- \\ENQ\EOT\SOH\STX\SOH\SOH\DC2\EOT\170\STX\t\FS\n\- \\r\n\- \\ENQ\EOT\SOH\STX\SOH\ETX\DC2\EOT\170\STX\US \n\- \\f\n\- \\STX\EOT\STX\DC2\ACK\173\STX\NUL\183\STX\SOH\n\- \\v\n\- \\ETX\EOT\STX\SOH\DC2\EOT\173\STX\b\ETB\n\- \M\n\- \\EOT\EOT\STX\STX\NUL\DC2\EOT\177\STX\EOT\DC3\SUB?\n\- \The destination once wishes to obtain a routing fee quote to.\n\- \\n\- \\SI\n\- \\ENQ\EOT\STX\STX\NUL\EOT\DC2\ACK\177\STX\EOT\173\STX\EM\n\- \\r\n\- \\ENQ\EOT\STX\STX\NUL\ENQ\DC2\EOT\177\STX\EOT\t\n\- \\r\n\- \\ENQ\EOT\STX\STX\NUL\SOH\DC2\EOT\177\STX\n\- \\SO\n\- \\r\n\- \\ENQ\EOT\STX\STX\NUL\ETX\DC2\EOT\177\STX\DC1\DC2\n\- \H\n\- \\EOT\EOT\STX\STX\SOH\DC2\EOT\182\STX\EOT\SYN\SUB:\n\- \The amount one wishes to send to the target destination.\n\- \\n\- \\SI\n\- \\ENQ\EOT\STX\STX\SOH\EOT\DC2\ACK\182\STX\EOT\177\STX\DC3\n\- \\r\n\- \\ENQ\EOT\STX\STX\SOH\ENQ\DC2\EOT\182\STX\EOT\t\n\- \\r\n\- \\ENQ\EOT\STX\STX\SOH\SOH\DC2\EOT\182\STX\n\- \\DC1\n\- \\r\n\- \\ENQ\EOT\STX\STX\SOH\ETX\DC2\EOT\182\STX\DC4\NAK\n\- \\f\n\- \\STX\EOT\ETX\DC2\ACK\185\STX\NUL\198\STX\SOH\n\- \\v\n\- \\ETX\EOT\ETX\SOH\DC2\EOT\185\STX\b\CAN\n\- \}\n\- \\EOT\EOT\ETX\STX\NUL\DC2\EOT\190\STX\EOT\US\SUBo\n\- \A lower bound of the estimated fee to the target destination within the\n\- \network, expressed in milli-satoshis.\n\- \\n\- \\SI\n\- \\ENQ\EOT\ETX\STX\NUL\EOT\DC2\ACK\190\STX\EOT\185\STX\SUB\n\- \\r\n\- \\ENQ\EOT\ETX\STX\NUL\ENQ\DC2\EOT\190\STX\EOT\t\n\- \\r\n\- \\ENQ\EOT\ETX\STX\NUL\SOH\DC2\EOT\190\STX\n\- \\SUB\n\- \\r\n\- \\ENQ\EOT\ETX\STX\NUL\ETX\DC2\EOT\190\STX\GS\RS\n\- \\174\SOH\n\- \\EOT\EOT\ETX\STX\SOH\DC2\EOT\197\STX\EOT\RS\SUB\159\SOH\n\- \An estimate of the worst case time delay that can occur. Note that callers\n\- \will still need to factor in the final CLTV delta of the last hop into this\n\- \value.\n\- \\n\- \\SI\n\- \\ENQ\EOT\ETX\STX\SOH\EOT\DC2\ACK\197\STX\EOT\190\STX\US\n\- \\r\n\- \\ENQ\EOT\ETX\STX\SOH\ENQ\DC2\EOT\197\STX\EOT\t\n\- \\r\n\- \\ENQ\EOT\ETX\STX\SOH\SOH\DC2\EOT\197\STX\n\- \\EM\n\- \\r\n\- \\ENQ\EOT\ETX\STX\SOH\ETX\DC2\EOT\197\STX\FS\GS\n\- \\f\n\- \\STX\EOT\EOT\DC2\ACK\200\STX\NUL\206\STX\SOH\n\- \\v\n\- \\ETX\EOT\EOT\SOH\DC2\EOT\200\STX\b\SUB\n\- \5\n\- \\EOT\EOT\EOT\STX\NUL\DC2\EOT\202\STX\EOT\ESC\SUB' The payment hash to use for the HTLC.\n\- \\n\- \\SI\n\- \\ENQ\EOT\EOT\STX\NUL\EOT\DC2\ACK\202\STX\EOT\200\STX\FS\n\- \\r\n\- \\ENQ\EOT\EOT\STX\NUL\ENQ\DC2\EOT\202\STX\EOT\t\n\- \\r\n\- \\ENQ\EOT\EOT\STX\NUL\SOH\DC2\EOT\202\STX\n\- \\SYN\n\- \\r\n\- \\ENQ\EOT\EOT\STX\NUL\ETX\DC2\EOT\202\STX\EM\SUB\n\- \M\n\- \\EOT\EOT\EOT\STX\SOH\DC2\EOT\205\STX\EOT\SUB\SUB? Route that should be used to attempt to complete the payment.\n\- \\n\- \\SI\n\- \\ENQ\EOT\EOT\STX\SOH\EOT\DC2\ACK\205\STX\EOT\202\STX\ESC\n\- \\r\n\- \\ENQ\EOT\EOT\STX\SOH\ACK\DC2\EOT\205\STX\EOT\SI\n\- \\r\n\- \\ENQ\EOT\EOT\STX\SOH\SOH\DC2\EOT\205\STX\DLE\NAK\n\- \\r\n\- \\ENQ\EOT\EOT\STX\SOH\ETX\DC2\EOT\205\STX\CAN\EM\n\- \\f\n\- \\STX\EOT\ENQ\DC2\ACK\208\STX\NUL\214\STX\SOH\n\- \\v\n\- \\ETX\EOT\ENQ\SOH\DC2\EOT\208\STX\b\ESC\n\- \<\n\- \\EOT\EOT\ENQ\STX\NUL\DC2\EOT\210\STX\EOT\ETB\SUB. The preimage obtained by making the payment.\n\- \\n\- \\SI\n\- \\ENQ\EOT\ENQ\STX\NUL\EOT\DC2\ACK\210\STX\EOT\208\STX\GS\n\- \\r\n\- \\ENQ\EOT\ENQ\STX\NUL\ENQ\DC2\EOT\210\STX\EOT\t\n\- \\r\n\- \\ENQ\EOT\ENQ\STX\NUL\SOH\DC2\EOT\210\STX\n\- \\DC2\n\- \\r\n\- \\ENQ\EOT\ENQ\STX\NUL\ETX\DC2\EOT\210\STX\NAK\SYN\n\- \?\n\- \\EOT\EOT\ENQ\STX\SOH\DC2\EOT\213\STX\EOT\RS\SUB1 The failure message in case the payment failed.\n\- \\n\- \\SI\n\- \\ENQ\EOT\ENQ\STX\SOH\EOT\DC2\ACK\213\STX\EOT\210\STX\ETB\n\- \\r\n\- \\ENQ\EOT\ENQ\STX\SOH\ACK\DC2\EOT\213\STX\EOT\DC1\n\- \\r\n\- \\ENQ\EOT\ENQ\STX\SOH\SOH\DC2\EOT\213\STX\DC2\EM\n\- \\r\n\- \\ENQ\EOT\ENQ\STX\SOH\ETX\DC2\EOT\213\STX\FS\GS\n\- \\f\n\- \\STX\EOT\ACK\DC2\ACK\216\STX\NUL\217\STX\SOH\n\- \\v\n\- \\ETX\EOT\ACK\SOH\DC2\EOT\216\STX\b\"\n\- \\f\n\- \\STX\EOT\a\DC2\ACK\219\STX\NUL\220\STX\SOH\n\- \\v\n\- \\ETX\EOT\a\SOH\DC2\EOT\219\STX\b#\n\- \\f\n\- \\STX\EOT\b\DC2\ACK\222\STX\NUL\223\STX\SOH\n\- \\v\n\- \\ETX\EOT\b\SOH\DC2\EOT\222\STX\b\"\n\- \K\n\- \\STX\EOT\t\DC2\ACK\226\STX\NUL\231\STX\SOH\SUB= QueryMissionControlResponse contains mission control state.\n\- \\n\- \\v\n\- \\ETX\EOT\t\SOH\DC2\EOT\226\STX\b#\n\- \\v\n\- \\ETX\EOT\t\t\DC2\EOT\227\STX\EOT\SI\n\- \\f\n\- \\EOT\EOT\t\t\NUL\DC2\EOT\227\STX\r\SO\n\- \\r\n\- \\ENQ\EOT\t\t\NUL\SOH\DC2\EOT\227\STX\r\SO\n\- \\r\n\- \\ENQ\EOT\t\t\NUL\STX\DC2\EOT\227\STX\r\SO\n\- \6\n\- \\EOT\EOT\t\STX\NUL\DC2\EOT\230\STX\EOT#\SUB( Node pair-level mission control state.\n\- \\n\- \\r\n\- \\ENQ\EOT\t\STX\NUL\EOT\DC2\EOT\230\STX\EOT\f\n\- \\r\n\- \\ENQ\EOT\t\STX\NUL\ACK\DC2\EOT\230\STX\r\CAN\n\- \\r\n\- \\ENQ\EOT\t\STX\NUL\SOH\DC2\EOT\230\STX\EM\RS\n\- \\r\n\- \\ENQ\EOT\t\STX\NUL\ETX\DC2\EOT\230\STX!\"\n\- \\f\n\- \\STX\EOT\n\- \\DC2\ACK\233\STX\NUL\236\STX\SOH\n\- \\v\n\- \\ETX\EOT\n\- \\SOH\DC2\EOT\233\STX\b$\n\- \E\n\- \\EOT\EOT\n\- \\STX\NUL\DC2\EOT\235\STX\EOT#\SUB7 Node pair-level mission control state to be imported.\n\- \\n\- \\r\n\- \\ENQ\EOT\n\- \\STX\NUL\EOT\DC2\EOT\235\STX\EOT\f\n\- \\r\n\- \\ENQ\EOT\n\- \\STX\NUL\ACK\DC2\EOT\235\STX\r\CAN\n\- \\r\n\- \\ENQ\EOT\n\- \\STX\NUL\SOH\DC2\EOT\235\STX\EM\RS\n\- \\r\n\- \\ENQ\EOT\n\- \\STX\NUL\ETX\DC2\EOT\235\STX!\"\n\- \\f\n\- \\STX\EOT\v\DC2\ACK\238\STX\NUL\239\STX\SOH\n\- \\v\n\- \\ETX\EOT\v\SOH\DC2\EOT\238\STX\b%\n\- \Z\n\- \\STX\EOT\f\DC2\ACK\242\STX\NUL\252\STX\SOH\SUBL PairHistory contains the mission control state for a particular node pair.\n\- \\n\- \\v\n\- \\ETX\EOT\f\SOH\DC2\EOT\242\STX\b\DC3\n\- \3\n\- \\EOT\EOT\f\STX\NUL\DC2\EOT\244\STX\EOT\CAN\SUB% The source node pubkey of the pair.\n\- \\n\- \\SI\n\- \\ENQ\EOT\f\STX\NUL\EOT\DC2\ACK\244\STX\EOT\242\STX\NAK\n\- \\r\n\- \\ENQ\EOT\f\STX\NUL\ENQ\DC2\EOT\244\STX\EOT\t\n\- \\r\n\- \\ENQ\EOT\f\STX\NUL\SOH\DC2\EOT\244\STX\n\- \\DC3\n\- \\r\n\- \\ENQ\EOT\f\STX\NUL\ETX\DC2\EOT\244\STX\SYN\ETB\n\- \8\n\- \\EOT\EOT\f\STX\SOH\DC2\EOT\247\STX\EOT\SYN\SUB* The destination node pubkey of the pair.\n\- \\n\- \\SI\n\- \\ENQ\EOT\f\STX\SOH\EOT\DC2\ACK\247\STX\EOT\244\STX\CAN\n\- \\r\n\- \\ENQ\EOT\f\STX\SOH\ENQ\DC2\EOT\247\STX\EOT\t\n\- \\r\n\- \\ENQ\EOT\f\STX\SOH\SOH\DC2\EOT\247\STX\n\- \\DC1\n\- \\r\n\- \\ENQ\EOT\f\STX\SOH\ETX\DC2\EOT\247\STX\DC4\NAK\n\- \\v\n\- \\ETX\EOT\f\t\DC2\EOT\249\STX\EOT\CAN\n\- \\f\n\- \\EOT\EOT\f\t\NUL\DC2\EOT\249\STX\r\SO\n\- \\r\n\- \\ENQ\EOT\f\t\NUL\SOH\DC2\EOT\249\STX\r\SO\n\- \\r\n\- \\ENQ\EOT\f\t\NUL\STX\DC2\EOT\249\STX\r\SO\n\- \\f\n\- \\EOT\EOT\f\t\SOH\DC2\EOT\249\STX\DLE\DC1\n\- \\r\n\- \\ENQ\EOT\f\t\SOH\SOH\DC2\EOT\249\STX\DLE\DC1\n\- \\r\n\- \\ENQ\EOT\f\t\SOH\STX\DC2\EOT\249\STX\DLE\DC1\n\- \\f\n\- \\EOT\EOT\f\t\STX\DC2\EOT\249\STX\DC3\DC4\n\- \\r\n\- \\ENQ\EOT\f\t\STX\SOH\DC2\EOT\249\STX\DC3\DC4\n\- \\r\n\- \\ENQ\EOT\f\t\STX\STX\DC2\EOT\249\STX\DC3\DC4\n\- \\f\n\- \\EOT\EOT\f\t\ETX\DC2\EOT\249\STX\SYN\ETB\n\- \\r\n\- \\ENQ\EOT\f\t\ETX\SOH\DC2\EOT\249\STX\SYN\ETB\n\- \\r\n\- \\ENQ\EOT\f\t\ETX\STX\DC2\EOT\249\STX\SYN\ETB\n\- \\f\n\- \\EOT\EOT\f\STX\STX\DC2\EOT\251\STX\EOT\EM\n\- \\SI\n\- \\ENQ\EOT\f\STX\STX\EOT\DC2\ACK\251\STX\EOT\249\STX\CAN\n\- \\r\n\- \\ENQ\EOT\f\STX\STX\ACK\DC2\EOT\251\STX\EOT\f\n\- \\r\n\- \\ENQ\EOT\f\STX\STX\SOH\DC2\EOT\251\STX\r\DC4\n\- \\r\n\- \\ENQ\EOT\f\STX\STX\ETX\DC2\EOT\251\STX\ETB\CAN\n\- \\f\n\- \\STX\EOT\r\DC2\ACK\254\STX\NUL\152\ETX\SOH\n\- \\v\n\- \\ETX\EOT\r\SOH\DC2\EOT\254\STX\b\DLE\n\- \%\n\- \\EOT\EOT\r\STX\NUL\DC2\EOT\128\ETX\EOT\CAN\SUB\ETB Time of last failure.\n\- \\n\- \\SI\n\- \\ENQ\EOT\r\STX\NUL\EOT\DC2\ACK\128\ETX\EOT\254\STX\DC2\n\- \\r\n\- \\ENQ\EOT\r\STX\NUL\ENQ\DC2\EOT\128\ETX\EOT\t\n\- \\r\n\- \\ENQ\EOT\r\STX\NUL\SOH\DC2\EOT\128\ETX\n\- \\DC3\n\- \\r\n\- \\ENQ\EOT\r\STX\NUL\ETX\DC2\EOT\128\ETX\SYN\ETB\n\- \\140\SOH\n\- \\EOT\EOT\r\STX\SOH\DC2\EOT\134\ETX\EOT\ESC\SUB~\n\- \Lowest amount that failed to forward rounded to whole sats. This may be\n\- \set to zero if the failure is independent of amount.\n\- \\n\- \\SI\n\- \\ENQ\EOT\r\STX\SOH\EOT\DC2\ACK\134\ETX\EOT\128\ETX\CAN\n\- \\r\n\- \\ENQ\EOT\r\STX\SOH\ENQ\DC2\EOT\134\ETX\EOT\t\n\- \\r\n\- \\ENQ\EOT\r\STX\SOH\SOH\DC2\EOT\134\ETX\n\- \\SYN\n\- \\r\n\- \\ENQ\EOT\r\STX\SOH\ETX\DC2\EOT\134\ETX\EM\SUB\n\- \\131\SOH\n\- \\EOT\EOT\r\STX\STX\DC2\EOT\140\ETX\EOT\FS\SUBu\n\- \Lowest amount that failed to forward in millisats. This may be\n\- \set to zero if the failure is independent of amount.\n\- \\n\- \\SI\n\- \\ENQ\EOT\r\STX\STX\EOT\DC2\ACK\140\ETX\EOT\134\ETX\ESC\n\- \\r\n\- \\ENQ\EOT\r\STX\STX\ENQ\DC2\EOT\140\ETX\EOT\t\n\- \\r\n\- \\ENQ\EOT\r\STX\STX\SOH\DC2\EOT\140\ETX\n\- \\ETB\n\- \\r\n\- \\ENQ\EOT\r\STX\STX\ETX\DC2\EOT\140\ETX\SUB\ESC\n\- \\v\n\- \\ETX\EOT\r\t\DC2\EOT\142\ETX\EOT\SI\n\- \\f\n\- \\EOT\EOT\r\t\NUL\DC2\EOT\142\ETX\r\SO\n\- \\r\n\- \\ENQ\EOT\r\t\NUL\SOH\DC2\EOT\142\ETX\r\SO\n\- \\r\n\- \\ENQ\EOT\r\t\NUL\STX\DC2\EOT\142\ETX\r\SO\n\- \%\n\- \\EOT\EOT\r\STX\ETX\DC2\EOT\145\ETX\EOT\ESC\SUB\ETB Time of last success.\n\- \\n\- \\SI\n\- \\ENQ\EOT\r\STX\ETX\EOT\DC2\ACK\145\ETX\EOT\142\ETX\SI\n\- \\r\n\- \\ENQ\EOT\r\STX\ETX\ENQ\DC2\EOT\145\ETX\EOT\t\n\- \\r\n\- \\ENQ\EOT\r\STX\ETX\SOH\DC2\EOT\145\ETX\n\- \\SYN\n\- \\r\n\- \\ENQ\EOT\r\STX\ETX\ETX\DC2\EOT\145\ETX\EM\SUB\n\- \X\n\- \\EOT\EOT\r\STX\EOT\DC2\EOT\148\ETX\EOT\RS\SUBJ Highest amount that we could successfully forward rounded to whole sats.\n\- \\n\- \\SI\n\- \\ENQ\EOT\r\STX\EOT\EOT\DC2\ACK\148\ETX\EOT\145\ETX\ESC\n\- \\r\n\- \\ENQ\EOT\r\STX\EOT\ENQ\DC2\EOT\148\ETX\EOT\t\n\- \\r\n\- \\ENQ\EOT\r\STX\EOT\SOH\DC2\EOT\148\ETX\n\- \\EM\n\- \\r\n\- \\ENQ\EOT\r\STX\EOT\ETX\DC2\EOT\148\ETX\FS\GS\n\- \O\n\- \\EOT\EOT\r\STX\ENQ\DC2\EOT\151\ETX\EOT\US\SUBA Highest amount that we could successfully forward in millisats.\n\- \\n\- \\SI\n\- \\ENQ\EOT\r\STX\ENQ\EOT\DC2\ACK\151\ETX\EOT\148\ETX\RS\n\- \\r\n\- \\ENQ\EOT\r\STX\ENQ\ENQ\DC2\EOT\151\ETX\EOT\t\n\- \\r\n\- \\ENQ\EOT\r\STX\ENQ\SOH\DC2\EOT\151\ETX\n\- \\SUB\n\- \\r\n\- \\ENQ\EOT\r\STX\ENQ\ETX\DC2\EOT\151\ETX\GS\RS\n\- \\f\n\- \\STX\EOT\SO\DC2\ACK\154\ETX\NUL\155\ETX\SOH\n\- \\v\n\- \\ETX\EOT\SO\SOH\DC2\EOT\154\ETX\b&\n\- \\f\n\- \\STX\EOT\SI\DC2\ACK\157\ETX\NUL\162\ETX\SOH\n\- \\v\n\- \\ETX\EOT\SI\SOH\DC2\EOT\157\ETX\b'\n\- \:\n\- \\EOT\EOT\SI\STX\NUL\DC2\EOT\161\ETX\EOT$\SUB,\n\- \Mission control's currently active config.\n\- \\n\- \\SI\n\- \\ENQ\EOT\SI\STX\NUL\EOT\DC2\ACK\161\ETX\EOT\157\ETX)\n\- \\r\n\- \\ENQ\EOT\SI\STX\NUL\ACK\DC2\EOT\161\ETX\EOT\CAN\n\- \\r\n\- \\ENQ\EOT\SI\STX\NUL\SOH\DC2\EOT\161\ETX\EM\US\n\- \\r\n\- \\ENQ\EOT\SI\STX\NUL\ETX\DC2\EOT\161\ETX\"#\n\- \\f\n\- \\STX\EOT\DLE\DC2\ACK\164\ETX\NUL\170\ETX\SOH\n\- \\v\n\- \\ETX\EOT\DLE\SOH\DC2\EOT\164\ETX\b&\n\- \\131\SOH\n\- \\EOT\EOT\DLE\STX\NUL\DC2\EOT\169\ETX\EOT$\SUBu\n\- \The config to set for mission control. Note that all values *must* be set,\n\- \because the full config will be applied.\n\- \\n\- \\SI\n\- \\ENQ\EOT\DLE\STX\NUL\EOT\DC2\ACK\169\ETX\EOT\164\ETX(\n\- \\r\n\- \\ENQ\EOT\DLE\STX\NUL\ACK\DC2\EOT\169\ETX\EOT\CAN\n\- \\r\n\- \\ENQ\EOT\DLE\STX\NUL\SOH\DC2\EOT\169\ETX\EM\US\n\- \\r\n\- \\ENQ\EOT\DLE\STX\NUL\ETX\DC2\EOT\169\ETX\"#\n\- \\f\n\- \\STX\EOT\DC1\DC2\ACK\172\ETX\NUL\173\ETX\SOH\n\- \\v\n\- \\ETX\EOT\DC1\SOH\DC2\EOT\172\ETX\b'\n\- \\f\n\- \\STX\EOT\DC2\DC2\ACK\175\ETX\NUL\213\ETX\SOH\n\- \\v\n\- \\ETX\EOT\DC2\SOH\DC2\EOT\175\ETX\b\FS\n\- \\217\STX\n\- \\EOT\EOT\DC2\STX\NUL\DC2\EOT\183\ETX\EOT!\SUB\202\STX\n\- \The amount of time mission control will take to restore a penalized node\n\- \or channel back to 50% success probability, expressed in seconds. Setting\n\- \this value to a higher value will penalize failures for longer, making\n\- \mission control less likely to route through nodes and channels that we\n\- \have previously recorded failures for.\n\- \\n\- \\SI\n\- \\ENQ\EOT\DC2\STX\NUL\EOT\DC2\ACK\183\ETX\EOT\175\ETX\RS\n\- \\r\n\- \\ENQ\EOT\DC2\STX\NUL\ENQ\DC2\EOT\183\ETX\EOT\n\- \\n\- \\r\n\- \\ENQ\EOT\DC2\STX\NUL\SOH\DC2\EOT\183\ETX\v\FS\n\- \\r\n\- \\ENQ\EOT\DC2\STX\NUL\ETX\DC2\EOT\183\ETX\US \n\- \\156\STX\n\- \\EOT\EOT\DC2\STX\SOH\DC2\EOT\191\ETX\EOT\RS\SUB\141\STX\n\- \The probability of success mission control should assign to hop in a route\n\- \where it has no other information available. Higher values will make mission\n\- \control more willing to try hops that we have no information about, lower\n\- \values will discourage trying these hops.\n\- \\n\- \\SI\n\- \\ENQ\EOT\DC2\STX\SOH\EOT\DC2\ACK\191\ETX\EOT\183\ETX!\n\- \\r\n\- \\ENQ\EOT\DC2\STX\SOH\ENQ\DC2\EOT\191\ETX\EOT\t\n\- \\r\n\- \\ENQ\EOT\DC2\STX\SOH\SOH\DC2\EOT\191\ETX\n\- \\EM\n\- \\r\n\- \\ENQ\EOT\DC2\STX\SOH\ETX\DC2\EOT\191\ETX\FS\GS\n\- \\253\STX\n\- \\EOT\EOT\DC2\STX\STX\DC2\EOT\201\ETX\EOT\NAK\SUB\238\STX\n\- \The importance that mission control should place on historical results,\n\- \expressed as a value in [0;1]. Setting this value to 1 will ignore all\n\- \historical payments and just use the hop probability to assess the\n\- \probability of success for each hop. A zero value ignores hop probability\n\- \completely and relies entirely on historical results, unless none are\n\- \available.\n\- \\n\- \\SI\n\- \\ENQ\EOT\DC2\STX\STX\EOT\DC2\ACK\201\ETX\EOT\191\ETX\RS\n\- \\r\n\- \\ENQ\EOT\DC2\STX\STX\ENQ\DC2\EOT\201\ETX\EOT\t\n\- \\r\n\- \\ENQ\EOT\DC2\STX\STX\SOH\DC2\EOT\201\ETX\n\- \\DLE\n\- \\r\n\- \\ENQ\EOT\DC2\STX\STX\ETX\DC2\EOT\201\ETX\DC3\DC4\n\- \V\n\- \\EOT\EOT\DC2\STX\ETX\DC2\EOT\206\ETX\EOT'\SUBH\n\- \The maximum number of payment results that mission control will store.\n\- \\n\- \\SI\n\- \\ENQ\EOT\DC2\STX\ETX\EOT\DC2\ACK\206\ETX\EOT\201\ETX\NAK\n\- \\r\n\- \\ENQ\EOT\DC2\STX\ETX\ENQ\DC2\EOT\206\ETX\EOT\n\- \\n\- \\r\n\- \\ENQ\EOT\DC2\STX\ETX\SOH\DC2\EOT\206\ETX\v\"\n\- \\r\n\- \\ENQ\EOT\DC2\STX\ETX\ETX\DC2\EOT\206\ETX%&\n\- \\128\SOH\n\- \\EOT\EOT\DC2\STX\EOT\DC2\EOT\212\ETX\EOT.\SUBr\n\- \The minimum time that must have passed since the previously recorded failure\n\- \before we raise the failure amount.\n\- \\n\- \\SI\n\- \\ENQ\EOT\DC2\STX\EOT\EOT\DC2\ACK\212\ETX\EOT\206\ETX'\n\- \\r\n\- \\ENQ\EOT\DC2\STX\EOT\ENQ\DC2\EOT\212\ETX\EOT\n\- \\n\- \\r\n\- \\ENQ\EOT\DC2\STX\EOT\SOH\DC2\EOT\212\ETX\v)\n\- \\r\n\- \\ENQ\EOT\DC2\STX\EOT\ETX\DC2\EOT\212\ETX,-\n\- \\f\n\- \\STX\EOT\DC3\DC2\ACK\215\ETX\NUL\224\ETX\SOH\n\- \\v\n\- \\ETX\EOT\DC3\SOH\DC2\EOT\215\ETX\b\US\n\- \3\n\- \\EOT\EOT\DC3\STX\NUL\DC2\EOT\217\ETX\EOT\CAN\SUB% The source node pubkey of the pair.\n\- \\n\- \\SI\n\- \\ENQ\EOT\DC3\STX\NUL\EOT\DC2\ACK\217\ETX\EOT\215\ETX!\n\- \\r\n\- \\ENQ\EOT\DC3\STX\NUL\ENQ\DC2\EOT\217\ETX\EOT\t\n\- \\r\n\- \\ENQ\EOT\DC3\STX\NUL\SOH\DC2\EOT\217\ETX\n\- \\DC3\n\- \\r\n\- \\ENQ\EOT\DC3\STX\NUL\ETX\DC2\EOT\217\ETX\SYN\ETB\n\- \8\n\- \\EOT\EOT\DC3\STX\SOH\DC2\EOT\220\ETX\EOT\SYN\SUB* The destination node pubkey of the pair.\n\- \\n\- \\SI\n\- \\ENQ\EOT\DC3\STX\SOH\EOT\DC2\ACK\220\ETX\EOT\217\ETX\CAN\n\- \\r\n\- \\ENQ\EOT\DC3\STX\SOH\ENQ\DC2\EOT\220\ETX\EOT\t\n\- \\r\n\- \\ENQ\EOT\DC3\STX\SOH\SOH\DC2\EOT\220\ETX\n\- \\DC1\n\- \\r\n\- \\ENQ\EOT\DC3\STX\SOH\ETX\DC2\EOT\220\ETX\DC4\NAK\n\- \@\n\- \\EOT\EOT\DC3\STX\STX\DC2\EOT\223\ETX\EOT\ETB\SUB2 The amount for which to calculate a probability.\n\- \\n\- \\SI\n\- \\ENQ\EOT\DC3\STX\STX\EOT\DC2\ACK\223\ETX\EOT\220\ETX\SYN\n\- \\r\n\- \\ENQ\EOT\DC3\STX\STX\ENQ\DC2\EOT\223\ETX\EOT\t\n\- \\r\n\- \\ENQ\EOT\DC3\STX\STX\SOH\DC2\EOT\223\ETX\n\- \\DC2\n\- \\r\n\- \\ENQ\EOT\DC3\STX\STX\ETX\DC2\EOT\223\ETX\NAK\SYN\n\- \\f\n\- \\STX\EOT\DC4\DC2\ACK\226\ETX\NUL\232\ETX\SOH\n\- \\v\n\- \\ETX\EOT\DC4\SOH\DC2\EOT\226\ETX\b \n\- \?\n\- \\EOT\EOT\DC4\STX\NUL\DC2\EOT\228\ETX\EOT\ESC\SUB1 The success probability for the requested pair.\n\- \\n\- \\SI\n\- \\ENQ\EOT\DC4\STX\NUL\EOT\DC2\ACK\228\ETX\EOT\226\ETX\"\n\- \\r\n\- \\ENQ\EOT\DC4\STX\NUL\ENQ\DC2\EOT\228\ETX\EOT\n\- \\n\- \\r\n\- \\ENQ\EOT\DC4\STX\NUL\SOH\DC2\EOT\228\ETX\v\SYN\n\- \\r\n\- \\ENQ\EOT\DC4\STX\NUL\ETX\DC2\EOT\228\ETX\EM\SUB\n\- \;\n\- \\EOT\EOT\DC4\STX\SOH\DC2\EOT\231\ETX\EOT\EM\SUB- The historical data for the requested pair.\n\- \\n\- \\SI\n\- \\ENQ\EOT\DC4\STX\SOH\EOT\DC2\ACK\231\ETX\EOT\228\ETX\ESC\n\- \\r\n\- \\ENQ\EOT\DC4\STX\SOH\ACK\DC2\EOT\231\ETX\EOT\f\n\- \\r\n\- \\ENQ\EOT\DC4\STX\SOH\SOH\DC2\EOT\231\ETX\r\DC4\n\- \\r\n\- \\ENQ\EOT\DC4\STX\SOH\ETX\DC2\EOT\231\ETX\ETB\CAN\n\- \\f\n\- \\STX\EOT\NAK\DC2\ACK\234\ETX\NUL\133\EOT\SOH\n\- \\v\n\- \\ETX\EOT\NAK\SOH\DC2\EOT\234\ETX\b\EM\n\- \j\n\- \\EOT\EOT\NAK\STX\NUL\DC2\EOT\239\ETX\EOT\ETB\SUB\\\n\- \The amount to send expressed in msat. If set to zero, the minimum routable\n\- \amount is used.\n\- \\n\- \\SI\n\- \\ENQ\EOT\NAK\STX\NUL\EOT\DC2\ACK\239\ETX\EOT\234\ETX\ESC\n\- \\r\n\- \\ENQ\EOT\NAK\STX\NUL\ENQ\DC2\EOT\239\ETX\EOT\t\n\- \\r\n\- \\ENQ\EOT\NAK\STX\NUL\SOH\DC2\EOT\239\ETX\n\- \\DC2\n\- \\r\n\- \\ENQ\EOT\NAK\STX\NUL\ETX\DC2\EOT\239\ETX\NAK\SYN\n\- \h\n\- \\EOT\EOT\NAK\STX\SOH\DC2\EOT\245\ETX\EOT\US\SUBZ\n\- \CLTV delta from the current height that should be used for the timelock\n\- \of the final hop\n\- \\n\- \\SI\n\- \\ENQ\EOT\NAK\STX\SOH\EOT\DC2\ACK\245\ETX\EOT\239\ETX\ETB\n\- \\r\n\- \\ENQ\EOT\NAK\STX\SOH\ENQ\DC2\EOT\245\ETX\EOT\t\n\- \\r\n\- \\ENQ\EOT\NAK\STX\SOH\SOH\DC2\EOT\245\ETX\n\- \\SUB\n\- \\r\n\- \\ENQ\EOT\NAK\STX\SOH\ETX\DC2\EOT\245\ETX\GS\RS\n\- \t\n\- \\EOT\EOT\NAK\STX\STX\DC2\EOT\251\ETX\EOT5\SUBf\n\- \The channel id of the channel that must be taken to the first hop. If zero,\n\- \any channel may be used.\n\- \\n\- \\SI\n\- \\ENQ\EOT\NAK\STX\STX\EOT\DC2\ACK\251\ETX\EOT\245\ETX\US\n\- \\r\n\- \\ENQ\EOT\NAK\STX\STX\ENQ\DC2\EOT\251\ETX\EOT\n\- \\n\- \\r\n\- \\ENQ\EOT\NAK\STX\STX\SOH\DC2\EOT\251\ETX\v\ESC\n\- \\r\n\- \\ENQ\EOT\NAK\STX\STX\ETX\DC2\EOT\251\ETX\RS\US\n\- \\r\n\- \\ENQ\EOT\NAK\STX\STX\b\DC2\EOT\251\ETX 4\n\- \\SO\n\- \\ACK\EOT\NAK\STX\STX\b\ACK\DC2\EOT\251\ETX!3\n\- \c\n\- \\EOT\EOT\NAK\STX\ETX\DC2\EOT\129\EOT\EOT#\SUBU\n\- \A list of hops that defines the route. This does not include the source hop\n\- \pubkey.\n\- \\n\- \\r\n\- \\ENQ\EOT\NAK\STX\ETX\EOT\DC2\EOT\129\EOT\EOT\f\n\- \\r\n\- \\ENQ\EOT\NAK\STX\ETX\ENQ\DC2\EOT\129\EOT\r\DC2\n\- \\r\n\- \\ENQ\EOT\NAK\STX\ETX\SOH\DC2\EOT\129\EOT\DC3\RS\n\- \\r\n\- \\ENQ\EOT\NAK\STX\ETX\ETX\DC2\EOT\129\EOT!\"\n\- \Y\n\- \\EOT\EOT\NAK\STX\EOT\DC2\EOT\132\EOT\EOT\ESC\SUBK An optional payment addr to be included within the last hop of the route.\n\- \\n\- \\SI\n\- \\ENQ\EOT\NAK\STX\EOT\EOT\DC2\ACK\132\EOT\EOT\129\EOT#\n\- \\r\n\- \\ENQ\EOT\NAK\STX\EOT\ENQ\DC2\EOT\132\EOT\EOT\t\n\- \\r\n\- \\ENQ\EOT\NAK\STX\EOT\SOH\DC2\EOT\132\EOT\n\- \\SYN\n\- \\r\n\- \\ENQ\EOT\NAK\STX\EOT\ETX\DC2\EOT\132\EOT\EM\SUB\n\- \\f\n\- \\STX\EOT\SYN\DC2\ACK\135\EOT\NUL\140\EOT\SOH\n\- \\v\n\- \\ETX\EOT\SYN\SOH\DC2\EOT\135\EOT\b\SUB\n\- \N\n\- \\EOT\EOT\SYN\STX\NUL\DC2\EOT\139\EOT\EOT\SUB\SUB@\n\- \Fully specified route that can be used to execute the payment.\n\- \\n\- \\SI\n\- \\ENQ\EOT\SYN\STX\NUL\EOT\DC2\ACK\139\EOT\EOT\135\EOT\FS\n\- \\r\n\- \\ENQ\EOT\SYN\STX\NUL\ACK\DC2\EOT\139\EOT\EOT\SI\n\- \\r\n\- \\ENQ\EOT\SYN\STX\NUL\SOH\DC2\EOT\139\EOT\DLE\NAK\n\- \\r\n\- \\ENQ\EOT\SYN\STX\NUL\ETX\DC2\EOT\139\EOT\CAN\EM\n\- \\f\n\- \\STX\EOT\ETB\DC2\ACK\142\EOT\NUL\143\EOT\SOH\n\- \\v\n\- \\ETX\EOT\ETB\SOH\DC2\EOT\142\EOT\b\"\n\- \\177\ETX\n\- \\STX\EOT\CAN\DC2\ACK\153\EOT\NUL\202\EOT\SOH\SUB\162\ETX\n\- \HtlcEvent contains the htlc event that was processed. These are served on a\n\- \best-effort basis; events are not persisted, delivery is not guaranteed\n\- \(in the event of a crash in the switch, forward events may be lost) and\n\- \some events may be replayed upon restart. Events consumed from this package\n\- \should be de-duplicated by the htlc's unique combination of incoming and\n\- \outgoing channel id and htlc id. [EXPERIMENTAL]\n\- \\n\- \\v\n\- \\ETX\EOT\CAN\SOH\DC2\EOT\153\EOT\b\DC1\n\- \q\n\- \\EOT\EOT\CAN\STX\NUL\DC2\EOT\158\EOT\EOT#\SUBc\n\- \The short channel id that the incoming htlc arrived at our node on. This\n\- \value is zero for sends.\n\- \\n\- \\SI\n\- \\ENQ\EOT\CAN\STX\NUL\EOT\DC2\ACK\158\EOT\EOT\153\EOT\DC3\n\- \\r\n\- \\ENQ\EOT\CAN\STX\NUL\ENQ\DC2\EOT\158\EOT\EOT\n\- \\n\- \\r\n\- \\ENQ\EOT\CAN\STX\NUL\SOH\DC2\EOT\158\EOT\v\RS\n\- \\r\n\- \\ENQ\EOT\CAN\STX\NUL\ETX\DC2\EOT\158\EOT!\"\n\- \n\n\- \\EOT\EOT\CAN\STX\SOH\DC2\EOT\164\EOT\EOT#\SUB`\n\- \The short channel id that the outgoing htlc left our node on. This value\n\- \is zero for receives.\n\- \\n\- \\SI\n\- \\ENQ\EOT\CAN\STX\SOH\EOT\DC2\ACK\164\EOT\EOT\158\EOT#\n\- \\r\n\- \\ENQ\EOT\CAN\STX\SOH\ENQ\DC2\EOT\164\EOT\EOT\n\- \\n\- \\r\n\- \\ENQ\EOT\CAN\STX\SOH\SOH\DC2\EOT\164\EOT\v\RS\n\- \\r\n\- \\ENQ\EOT\CAN\STX\SOH\ETX\DC2\EOT\164\EOT!\"\n\- \t\n\- \\EOT\EOT\CAN\STX\STX\DC2\EOT\170\EOT\EOT \SUBf\n\- \Incoming id is the index of the incoming htlc in the incoming channel.\n\- \This value is zero for sends.\n\- \\n\- \\SI\n\- \\ENQ\EOT\CAN\STX\STX\EOT\DC2\ACK\170\EOT\EOT\164\EOT#\n\- \\r\n\- \\ENQ\EOT\CAN\STX\STX\ENQ\DC2\EOT\170\EOT\EOT\n\- \\n\- \\r\n\- \\ENQ\EOT\CAN\STX\STX\SOH\DC2\EOT\170\EOT\v\ESC\n\- \\r\n\- \\ENQ\EOT\CAN\STX\STX\ETX\DC2\EOT\170\EOT\RS\US\n\- \w\n\- \\EOT\EOT\CAN\STX\ETX\DC2\EOT\176\EOT\EOT \SUBi\n\- \Outgoing id is the index of the outgoing htlc in the outgoing channel.\n\- \This value is zero for receives.\n\- \\n\- \\SI\n\- \\ENQ\EOT\CAN\STX\ETX\EOT\DC2\ACK\176\EOT\EOT\170\EOT \n\- \\r\n\- \\ENQ\EOT\CAN\STX\ETX\ENQ\DC2\EOT\176\EOT\EOT\n\- \\n\- \\r\n\- \\ENQ\EOT\CAN\STX\ETX\SOH\DC2\EOT\176\EOT\v\ESC\n\- \\r\n\- \\ENQ\EOT\CAN\STX\ETX\ETX\DC2\EOT\176\EOT\RS\US\n\- \E\n\- \\EOT\EOT\CAN\STX\EOT\DC2\EOT\181\EOT\EOT\FS\SUB7\n\- \The time in unix nanoseconds that the event occurred.\n\- \\n\- \\SI\n\- \\ENQ\EOT\CAN\STX\EOT\EOT\DC2\ACK\181\EOT\EOT\176\EOT \n\- \\r\n\- \\ENQ\EOT\CAN\STX\EOT\ENQ\DC2\EOT\181\EOT\EOT\n\- \\n\- \\r\n\- \\ENQ\EOT\CAN\STX\EOT\SOH\DC2\EOT\181\EOT\v\ETB\n\- \\r\n\- \\ENQ\EOT\CAN\STX\EOT\ETX\DC2\EOT\181\EOT\SUB\ESC\n\- \\SO\n\- \\EOT\EOT\CAN\EOT\NUL\DC2\ACK\183\EOT\EOT\188\EOT\ENQ\n\- \\r\n\- \\ENQ\EOT\CAN\EOT\NUL\SOH\DC2\EOT\183\EOT\t\DC2\n\- \\SO\n\- \\ACK\EOT\CAN\EOT\NUL\STX\NUL\DC2\EOT\184\EOT\b\DC4\n\- \\SI\n\- \\a\EOT\CAN\EOT\NUL\STX\NUL\SOH\DC2\EOT\184\EOT\b\SI\n\- \\SI\n\- \\a\EOT\CAN\EOT\NUL\STX\NUL\STX\DC2\EOT\184\EOT\DC2\DC3\n\- \\SO\n\- \\ACK\EOT\CAN\EOT\NUL\STX\SOH\DC2\EOT\185\EOT\b\DC1\n\- \\SI\n\- \\a\EOT\CAN\EOT\NUL\STX\SOH\SOH\DC2\EOT\185\EOT\b\f\n\- \\SI\n\- \\a\EOT\CAN\EOT\NUL\STX\SOH\STX\DC2\EOT\185\EOT\SI\DLE\n\- \\SO\n\- \\ACK\EOT\CAN\EOT\NUL\STX\STX\DC2\EOT\186\EOT\b\DC4\n\- \\SI\n\- \\a\EOT\CAN\EOT\NUL\STX\STX\SOH\DC2\EOT\186\EOT\b\SI\n\- \\SI\n\- \\a\EOT\CAN\EOT\NUL\STX\STX\STX\DC2\EOT\186\EOT\DC2\DC3\n\- \\SO\n\- \\ACK\EOT\CAN\EOT\NUL\STX\ETX\DC2\EOT\187\EOT\b\DC4\n\- \\SI\n\- \\a\EOT\CAN\EOT\NUL\STX\ETX\SOH\DC2\EOT\187\EOT\b\SI\n\- \\SI\n\- \\a\EOT\CAN\EOT\NUL\STX\ETX\STX\DC2\EOT\187\EOT\DC2\DC3\n\- \a\n\- \\EOT\EOT\CAN\STX\ENQ\DC2\EOT\194\EOT\EOT\GS\SUBS\n\- \The event type indicates whether the htlc was part of a send, receive or\n\- \forward.\n\- \\n\- \\SI\n\- \\ENQ\EOT\CAN\STX\ENQ\EOT\DC2\ACK\194\EOT\EOT\188\EOT\ENQ\n\- \\r\n\- \\ENQ\EOT\CAN\STX\ENQ\ACK\DC2\EOT\194\EOT\EOT\r\n\- \\r\n\- \\ENQ\EOT\CAN\STX\ENQ\SOH\DC2\EOT\194\EOT\SO\CAN\n\- \\r\n\- \\ENQ\EOT\CAN\STX\ENQ\ETX\DC2\EOT\194\EOT\ESC\FS\n\- \\SO\n\- \\EOT\EOT\CAN\b\NUL\DC2\ACK\196\EOT\EOT\201\EOT\ENQ\n\- \\r\n\- \\ENQ\EOT\CAN\b\NUL\SOH\DC2\EOT\196\EOT\n\- \\SI\n\- \\f\n\- \\EOT\EOT\CAN\STX\ACK\DC2\EOT\197\EOT\b'\n\- \\r\n\- \\ENQ\EOT\CAN\STX\ACK\ACK\DC2\EOT\197\EOT\b\DC4\n\- \\r\n\- \\ENQ\EOT\CAN\STX\ACK\SOH\DC2\EOT\197\EOT\NAK\"\n\- \\r\n\- \\ENQ\EOT\CAN\STX\ACK\ETX\DC2\EOT\197\EOT%&\n\- \\f\n\- \\EOT\EOT\CAN\STX\a\DC2\EOT\198\EOT\b0\n\- \\r\n\- \\ENQ\EOT\CAN\STX\a\ACK\DC2\EOT\198\EOT\b\CAN\n\- \\r\n\- \\ENQ\EOT\CAN\STX\a\SOH\DC2\EOT\198\EOT\EM+\n\- \\r\n\- \\ENQ\EOT\CAN\STX\a\ETX\DC2\EOT\198\EOT./\n\- \\f\n\- \\EOT\EOT\CAN\STX\b\DC2\EOT\199\EOT\b%\n\- \\r\n\- \\ENQ\EOT\CAN\STX\b\ACK\DC2\EOT\199\EOT\b\DC3\n\- \\r\n\- \\ENQ\EOT\CAN\STX\b\SOH\DC2\EOT\199\EOT\DC4 \n\- \\r\n\- \\ENQ\EOT\CAN\STX\b\ETX\DC2\EOT\199\EOT#$\n\- \\f\n\- \\EOT\EOT\CAN\STX\t\DC2\EOT\200\EOT\b+\n\- \\r\n\- \\ENQ\EOT\CAN\STX\t\ACK\DC2\EOT\200\EOT\b\NAK\n\- \\r\n\- \\ENQ\EOT\CAN\STX\t\SOH\DC2\EOT\200\EOT\SYN%\n\- \\r\n\- \\ENQ\EOT\CAN\STX\t\ETX\DC2\EOT\200\EOT(*\n\- \\f\n\- \\STX\EOT\EM\DC2\ACK\204\EOT\NUL\216\EOT\SOH\n\- \\v\n\- \\ETX\EOT\EM\SOH\DC2\EOT\204\EOT\b\DLE\n\- \2\n\- \\EOT\EOT\EM\STX\NUL\DC2\EOT\206\EOT\EOT!\SUB$ The timelock on the incoming htlc.\n\- \\n\- \\SI\n\- \\ENQ\EOT\EM\STX\NUL\EOT\DC2\ACK\206\EOT\EOT\204\EOT\DC2\n\- \\r\n\- \\ENQ\EOT\EM\STX\NUL\ENQ\DC2\EOT\206\EOT\EOT\n\- \\n\- \\r\n\- \\ENQ\EOT\EM\STX\NUL\SOH\DC2\EOT\206\EOT\v\FS\n\- \\r\n\- \\ENQ\EOT\EM\STX\NUL\ETX\DC2\EOT\206\EOT\US \n\- \2\n\- \\EOT\EOT\EM\STX\SOH\DC2\EOT\209\EOT\EOT!\SUB$ The timelock on the outgoing htlc.\n\- \\n\- \\SI\n\- \\ENQ\EOT\EM\STX\SOH\EOT\DC2\ACK\209\EOT\EOT\206\EOT!\n\- \\r\n\- \\ENQ\EOT\EM\STX\SOH\ENQ\DC2\EOT\209\EOT\EOT\n\- \\n\- \\r\n\- \\ENQ\EOT\EM\STX\SOH\SOH\DC2\EOT\209\EOT\v\FS\n\- \\r\n\- \\ENQ\EOT\EM\STX\SOH\ETX\DC2\EOT\209\EOT\US \n\- \0\n\- \\EOT\EOT\EM\STX\STX\DC2\EOT\212\EOT\EOT!\SUB\" The amount of the incoming htlc.\n\- \\n\- \\SI\n\- \\ENQ\EOT\EM\STX\STX\EOT\DC2\ACK\212\EOT\EOT\209\EOT!\n\- \\r\n\- \\ENQ\EOT\EM\STX\STX\ENQ\DC2\EOT\212\EOT\EOT\n\- \\n\- \\r\n\- \\ENQ\EOT\EM\STX\STX\SOH\DC2\EOT\212\EOT\v\FS\n\- \\r\n\- \\ENQ\EOT\EM\STX\STX\ETX\DC2\EOT\212\EOT\US \n\- \0\n\- \\EOT\EOT\EM\STX\ETX\DC2\EOT\215\EOT\EOT!\SUB\" The amount of the outgoing htlc.\n\- \\n\- \\SI\n\- \\ENQ\EOT\EM\STX\ETX\EOT\DC2\ACK\215\EOT\EOT\212\EOT!\n\- \\r\n\- \\ENQ\EOT\EM\STX\ETX\ENQ\DC2\EOT\215\EOT\EOT\n\- \\n\- \\r\n\- \\ENQ\EOT\EM\STX\ETX\SOH\DC2\EOT\215\EOT\v\FS\n\- \\r\n\- \\ENQ\EOT\EM\STX\ETX\ETX\DC2\EOT\215\EOT\US \n\- \\f\n\- \\STX\EOT\SUB\DC2\ACK\218\EOT\NUL\221\EOT\SOH\n\- \\v\n\- \\ETX\EOT\SUB\SOH\DC2\EOT\218\EOT\b\DC4\n\- \H\n\- \\EOT\EOT\SUB\STX\NUL\DC2\EOT\220\EOT\EOT\SYN\SUB: Info contains details about the htlc that was forwarded.\n\- \\n\- \\SI\n\- \\ENQ\EOT\SUB\STX\NUL\EOT\DC2\ACK\220\EOT\EOT\218\EOT\SYN\n\- \\r\n\- \\ENQ\EOT\SUB\STX\NUL\ACK\DC2\EOT\220\EOT\EOT\f\n\- \\r\n\- \\ENQ\EOT\SUB\STX\NUL\SOH\DC2\EOT\220\EOT\r\DC1\n\- \\r\n\- \\ENQ\EOT\SUB\STX\NUL\ETX\DC2\EOT\220\EOT\DC4\NAK\n\- \\f\n\- \\STX\EOT\ESC\DC2\ACK\223\EOT\NUL\224\EOT\SOH\n\- \\v\n\- \\ETX\EOT\ESC\SOH\DC2\EOT\223\EOT\b\CAN\n\- \\f\n\- \\STX\EOT\FS\DC2\ACK\226\EOT\NUL\229\EOT\SOH\n\- \\v\n\- \\ETX\EOT\FS\SOH\DC2\EOT\226\EOT\b\DC3\n\- \&\n\- \\EOT\EOT\FS\STX\NUL\DC2\EOT\228\EOT\EOT\ETB\SUB\CAN The revealed preimage.\n\- \\n\- \\SI\n\- \\ENQ\EOT\FS\STX\NUL\EOT\DC2\ACK\228\EOT\EOT\226\EOT\NAK\n\- \\r\n\- \\ENQ\EOT\FS\STX\NUL\ENQ\DC2\EOT\228\EOT\EOT\t\n\- \\r\n\- \\ENQ\EOT\FS\STX\NUL\SOH\DC2\EOT\228\EOT\n\- \\DC2\n\- \\r\n\- \\ENQ\EOT\FS\STX\NUL\ETX\DC2\EOT\228\EOT\NAK\SYN\n\- \\f\n\- \\STX\EOT\GS\DC2\ACK\231\EOT\NUL\247\EOT\SOH\n\- \\v\n\- \\ETX\EOT\GS\SOH\DC2\EOT\231\EOT\b\NAK\n\- \D\n\- \\EOT\EOT\GS\STX\NUL\DC2\EOT\233\EOT\EOT\SYN\SUB6 Info contains details about the htlc that we failed.\n\- \\n\- \\SI\n\- \\ENQ\EOT\GS\STX\NUL\EOT\DC2\ACK\233\EOT\EOT\231\EOT\ETB\n\- \\r\n\- \\ENQ\EOT\GS\STX\NUL\ACK\DC2\EOT\233\EOT\EOT\f\n\- \\r\n\- \\ENQ\EOT\GS\STX\NUL\SOH\DC2\EOT\233\EOT\r\DC1\n\- \\r\n\- \\ENQ\EOT\GS\STX\NUL\ETX\DC2\EOT\233\EOT\DC4\NAK\n\- \C\n\- \\EOT\EOT\GS\STX\SOH\DC2\EOT\236\EOT\EOT/\SUB5 FailureCode is the BOLT error code for the failure.\n\- \\n\- \\SI\n\- \\ENQ\EOT\GS\STX\SOH\EOT\DC2\ACK\236\EOT\EOT\233\EOT\SYN\n\- \\r\n\- \\ENQ\EOT\GS\STX\SOH\ACK\DC2\EOT\236\EOT\EOT\GS\n\- \\r\n\- \\ENQ\EOT\GS\STX\SOH\SOH\DC2\EOT\236\EOT\RS*\n\- \\r\n\- \\ENQ\EOT\GS\STX\SOH\ETX\DC2\EOT\236\EOT-.\n\- \\238\SOH\n\- \\EOT\EOT\GS\STX\STX\DC2\EOT\243\EOT\EOT%\SUB\223\SOH\n\- \FailureDetail provides additional information about the reason for the\n\- \failure. This detail enriches the information provided by the wire message\n\- \and may be 'no detail' if the wire message requires no additional metadata.\n\- \\n\- \\SI\n\- \\ENQ\EOT\GS\STX\STX\EOT\DC2\ACK\243\EOT\EOT\236\EOT/\n\- \\r\n\- \\ENQ\EOT\GS\STX\STX\ACK\DC2\EOT\243\EOT\EOT\DC1\n\- \\r\n\- \\ENQ\EOT\GS\STX\STX\SOH\DC2\EOT\243\EOT\DC2 \n\- \\r\n\- \\ENQ\EOT\GS\STX\STX\ETX\DC2\EOT\243\EOT#$\n\- \<\n\- \\EOT\EOT\GS\STX\ETX\DC2\EOT\246\EOT\EOT\RS\SUB. A string representation of the link failure.\n\- \\n\- \\SI\n\- \\ENQ\EOT\GS\STX\ETX\EOT\DC2\ACK\246\EOT\EOT\243\EOT%\n\- \\r\n\- \\ENQ\EOT\GS\STX\ETX\ENQ\DC2\EOT\246\EOT\EOT\n\- \\n\- \\r\n\- \\ENQ\EOT\GS\STX\ETX\SOH\DC2\EOT\246\EOT\v\EM\n\- \\r\n\- \\ENQ\EOT\GS\STX\ETX\ETX\DC2\EOT\246\EOT\FS\GS\n\- \\f\n\- \\STX\ENQ\NUL\DC2\ACK\249\EOT\NUL\145\ENQ\SOH\n\- \\v\n\- \\ETX\ENQ\NUL\SOH\DC2\EOT\249\EOT\ENQ\DC2\n\- \\f\n\- \\EOT\ENQ\NUL\STX\NUL\DC2\EOT\250\EOT\EOT\DLE\n\- \\r\n\- \\ENQ\ENQ\NUL\STX\NUL\SOH\DC2\EOT\250\EOT\EOT\v\n\- \\r\n\- \\ENQ\ENQ\NUL\STX\NUL\STX\DC2\EOT\250\EOT\SO\SI\n\- \\f\n\- \\EOT\ENQ\NUL\STX\SOH\DC2\EOT\251\EOT\EOT\DC2\n\- \\r\n\- \\ENQ\ENQ\NUL\STX\SOH\SOH\DC2\EOT\251\EOT\EOT\r\n\- \\r\n\- \\ENQ\ENQ\NUL\STX\SOH\STX\DC2\EOT\251\EOT\DLE\DC1\n\- \\f\n\- \\EOT\ENQ\NUL\STX\STX\DC2\EOT\252\EOT\EOT\NAK\n\- \\r\n\- \\ENQ\ENQ\NUL\STX\STX\SOH\DC2\EOT\252\EOT\EOT\DLE\n\- \\r\n\- \\ENQ\ENQ\NUL\STX\STX\STX\DC2\EOT\252\EOT\DC3\DC4\n\- \\f\n\- \\EOT\ENQ\NUL\STX\ETX\DC2\EOT\253\EOT\EOT\SUB\n\- \\r\n\- \\ENQ\ENQ\NUL\STX\ETX\SOH\DC2\EOT\253\EOT\EOT\NAK\n\- \\r\n\- \\ENQ\ENQ\NUL\STX\ETX\STX\DC2\EOT\253\EOT\CAN\EM\n\- \\f\n\- \\EOT\ENQ\NUL\STX\EOT\DC2\EOT\254\EOT\EOT\EM\n\- \\r\n\- \\ENQ\ENQ\NUL\STX\EOT\SOH\DC2\EOT\254\EOT\EOT\DC4\n\- \\r\n\- \\ENQ\ENQ\NUL\STX\EOT\STX\DC2\EOT\254\EOT\ETB\CAN\n\- \\f\n\- \\EOT\ENQ\NUL\STX\ENQ\DC2\EOT\255\EOT\EOT\EM\n\- \\r\n\- \\ENQ\ENQ\NUL\STX\ENQ\SOH\DC2\EOT\255\EOT\EOT\DC4\n\- \\r\n\- \\ENQ\ENQ\NUL\STX\ENQ\STX\DC2\EOT\255\EOT\ETB\CAN\n\- \\f\n\- \\EOT\ENQ\NUL\STX\ACK\DC2\EOT\128\ENQ\EOT\GS\n\- \\r\n\- \\ENQ\ENQ\NUL\STX\ACK\SOH\DC2\EOT\128\ENQ\EOT\CAN\n\- \\r\n\- \\ENQ\ENQ\NUL\STX\ACK\STX\DC2\EOT\128\ENQ\ESC\FS\n\- \\f\n\- \\EOT\ENQ\NUL\STX\a\DC2\EOT\129\ENQ\EOT\ESC\n\- \\r\n\- \\ENQ\ENQ\NUL\STX\a\SOH\DC2\EOT\129\ENQ\EOT\SYN\n\- \\r\n\- \\ENQ\ENQ\NUL\STX\a\STX\DC2\EOT\129\ENQ\EM\SUB\n\- \\f\n\- \\EOT\ENQ\NUL\STX\b\DC2\EOT\130\ENQ\EOT\CAN\n\- \\r\n\- \\ENQ\ENQ\NUL\STX\b\SOH\DC2\EOT\130\ENQ\EOT\DC3\n\- \\r\n\- \\ENQ\ENQ\NUL\STX\b\STX\DC2\EOT\130\ENQ\SYN\ETB\n\- \\f\n\- \\EOT\ENQ\NUL\STX\t\DC2\EOT\131\ENQ\EOT\SUB\n\- \\r\n\- \\ENQ\ENQ\NUL\STX\t\SOH\DC2\EOT\131\ENQ\EOT\NAK\n\- \\r\n\- \\ENQ\ENQ\NUL\STX\t\STX\DC2\EOT\131\ENQ\CAN\EM\n\- \\f\n\- \\EOT\ENQ\NUL\STX\n\- \\DC2\EOT\132\ENQ\EOT\SUB\n\- \\r\n\- \\ENQ\ENQ\NUL\STX\n\- \\SOH\DC2\EOT\132\ENQ\EOT\DC4\n\- \\r\n\- \\ENQ\ENQ\NUL\STX\n\- \\STX\DC2\EOT\132\ENQ\ETB\EM\n\- \\f\n\- \\EOT\ENQ\NUL\STX\v\DC2\EOT\133\ENQ\EOT\ESC\n\- \\r\n\- \\ENQ\ENQ\NUL\STX\v\SOH\DC2\EOT\133\ENQ\EOT\NAK\n\- \\r\n\- \\ENQ\ENQ\NUL\STX\v\STX\DC2\EOT\133\ENQ\CAN\SUB\n\- \\f\n\- \\EOT\ENQ\NUL\STX\f\DC2\EOT\134\ENQ\EOT!\n\- \\r\n\- \\ENQ\ENQ\NUL\STX\f\SOH\DC2\EOT\134\ENQ\EOT\ESC\n\- \\r\n\- \\ENQ\ENQ\NUL\STX\f\STX\DC2\EOT\134\ENQ\RS \n\- \\f\n\- \\EOT\ENQ\NUL\STX\r\DC2\EOT\135\ENQ\EOT\SUB\n\- \\r\n\- \\ENQ\ENQ\NUL\STX\r\SOH\DC2\EOT\135\ENQ\EOT\DC4\n\- \\r\n\- \\ENQ\ENQ\NUL\STX\r\STX\DC2\EOT\135\ENQ\ETB\EM\n\- \\f\n\- \\EOT\ENQ\NUL\STX\SO\DC2\EOT\136\ENQ\EOT\GS\n\- \\r\n\- \\ENQ\ENQ\NUL\STX\SO\SOH\DC2\EOT\136\ENQ\EOT\ETB\n\- \\r\n\- \\ENQ\ENQ\NUL\STX\SO\STX\DC2\EOT\136\ENQ\SUB\FS\n\- \\f\n\- \\EOT\ENQ\NUL\STX\SI\DC2\EOT\137\ENQ\EOT\SUB\n\- \\r\n\- \\ENQ\ENQ\NUL\STX\SI\SOH\DC2\EOT\137\ENQ\EOT\DC4\n\- \\r\n\- \\ENQ\ENQ\NUL\STX\SI\STX\DC2\EOT\137\ENQ\ETB\EM\n\- \\f\n\- \\EOT\ENQ\NUL\STX\DLE\DC2\EOT\138\ENQ\EOT\FS\n\- \\r\n\- \\ENQ\ENQ\NUL\STX\DLE\SOH\DC2\EOT\138\ENQ\EOT\SYN\n\- \\r\n\- \\ENQ\ENQ\NUL\STX\DLE\STX\DC2\EOT\138\ENQ\EM\ESC\n\- \\f\n\- \\EOT\ENQ\NUL\STX\DC1\DC2\EOT\139\ENQ\EOT\ESC\n\- \\r\n\- \\ENQ\ENQ\NUL\STX\DC1\SOH\DC2\EOT\139\ENQ\EOT\NAK\n\- \\r\n\- \\ENQ\ENQ\NUL\STX\DC1\STX\DC2\EOT\139\ENQ\CAN\SUB\n\- \\f\n\- \\EOT\ENQ\NUL\STX\DC2\DC2\EOT\140\ENQ\EOT\SYN\n\- \\r\n\- \\ENQ\ENQ\NUL\STX\DC2\SOH\DC2\EOT\140\ENQ\EOT\DLE\n\- \\r\n\- \\ENQ\ENQ\NUL\STX\DC2\STX\DC2\EOT\140\ENQ\DC3\NAK\n\- \\f\n\- \\EOT\ENQ\NUL\STX\DC3\DC2\EOT\141\ENQ\EOT\EM\n\- \\r\n\- \\ENQ\ENQ\NUL\STX\DC3\SOH\DC2\EOT\141\ENQ\EOT\DC3\n\- \\r\n\- \\ENQ\ENQ\NUL\STX\DC3\STX\DC2\EOT\141\ENQ\SYN\CAN\n\- \\f\n\- \\EOT\ENQ\NUL\STX\DC4\DC2\EOT\142\ENQ\EOT\EM\n\- \\r\n\- \\ENQ\ENQ\NUL\STX\DC4\SOH\DC2\EOT\142\ENQ\EOT\DC3\n\- \\r\n\- \\ENQ\ENQ\NUL\STX\DC4\STX\DC2\EOT\142\ENQ\SYN\CAN\n\- \\f\n\- \\EOT\ENQ\NUL\STX\NAK\DC2\EOT\143\ENQ\EOT\EM\n\- \\r\n\- \\ENQ\ENQ\NUL\STX\NAK\SOH\DC2\EOT\143\ENQ\EOT\DC3\n\- \\r\n\- \\ENQ\ENQ\NUL\STX\NAK\STX\DC2\EOT\143\ENQ\SYN\CAN\n\- \\f\n\- \\EOT\ENQ\NUL\STX\SYN\DC2\EOT\144\ENQ\EOT\CAN\n\- \\r\n\- \\ENQ\ENQ\NUL\STX\SYN\SOH\DC2\EOT\144\ENQ\EOT\DC2\n\- \\r\n\- \\ENQ\ENQ\NUL\STX\SYN\STX\DC2\EOT\144\ENQ\NAK\ETB\n\- \\f\n\- \\STX\ENQ\SOH\DC2\ACK\147\ENQ\NUL\184\ENQ\SOH\n\- \\v\n\- \\ETX\ENQ\SOH\SOH\DC2\EOT\147\ENQ\ENQ\DC1\n\- \+\n\- \\EOT\ENQ\SOH\STX\NUL\DC2\EOT\151\ENQ\EOT\DC2\SUB\GS\n\- \Payment is still in flight.\n\- \\n\- \\r\n\- \\ENQ\ENQ\SOH\STX\NUL\SOH\DC2\EOT\151\ENQ\EOT\r\n\- \\r\n\- \\ENQ\ENQ\SOH\STX\NUL\STX\DC2\EOT\151\ENQ\DLE\DC1\n\- \/\n\- \\EOT\ENQ\SOH\STX\SOH\DC2\EOT\156\ENQ\EOT\DC2\SUB!\n\- \Payment completed successfully.\n\- \\n\- \\r\n\- \\ENQ\ENQ\SOH\STX\SOH\SOH\DC2\EOT\156\ENQ\EOT\r\n\- \\r\n\- \\ENQ\ENQ\SOH\STX\SOH\STX\DC2\EOT\156\ENQ\DLE\DC1\n\- \S\n\- \\EOT\ENQ\SOH\STX\STX\DC2\EOT\161\ENQ\EOT\ETB\SUBE\n\- \There are more routes to try, but the payment timeout was exceeded.\n\- \\n\- \\r\n\- \\ENQ\ENQ\SOH\STX\STX\SOH\DC2\EOT\161\ENQ\EOT\DC2\n\- \\r\n\- \\ENQ\ENQ\SOH\STX\STX\STX\DC2\EOT\161\ENQ\NAK\SYN\n\- \s\n\- \\EOT\ENQ\SOH\STX\ETX\DC2\EOT\167\ENQ\EOT\CAN\SUBe\n\- \All possible routes were tried and failed permanently. Or were no\n\- \routes to the destination at all.\n\- \\n\- \\r\n\- \\ENQ\ENQ\SOH\STX\ETX\SOH\DC2\EOT\167\ENQ\EOT\DC3\n\- \\r\n\- \\ENQ\ENQ\SOH\STX\ETX\STX\DC2\EOT\167\ENQ\SYN\ETB\n\- \4\n\- \\EOT\ENQ\SOH\STX\EOT\DC2\EOT\172\ENQ\EOT\NAK\SUB&\n\- \A non-recoverable error has occured.\n\- \\n\- \\r\n\- \\ENQ\ENQ\SOH\STX\EOT\SOH\DC2\EOT\172\ENQ\EOT\DLE\n\- \\r\n\- \\ENQ\ENQ\SOH\STX\EOT\STX\DC2\EOT\172\ENQ\DC3\DC4\n\- \a\n\- \\EOT\ENQ\SOH\STX\ENQ\DC2\EOT\178\ENQ\EOT)\SUBS\n\- \Payment details incorrect (unknown hash, invalid amt or\n\- \invalid final cltv delta)\n\- \\n\- \\r\n\- \\ENQ\ENQ\SOH\STX\ENQ\SOH\DC2\EOT\178\ENQ\EOT$\n\- \\r\n\- \\ENQ\ENQ\SOH\STX\ENQ\STX\DC2\EOT\178\ENQ'(\n\- \+\n\- \\EOT\ENQ\SOH\STX\ACK\DC2\EOT\183\ENQ\EOT$\SUB\GS\n\- \Insufficient local balance.\n\- \\n\- \\r\n\- \\ENQ\ENQ\SOH\STX\ACK\SOH\DC2\EOT\183\ENQ\EOT\US\n\- \\r\n\- \\ENQ\ENQ\SOH\STX\ACK\STX\DC2\EOT\183\ENQ\"#\n\- \\f\n\- \\STX\EOT\RS\DC2\ACK\186\ENQ\NUL\201\ENQ\SOH\n\- \\v\n\- \\ETX\EOT\RS\SOH\DC2\EOT\186\ENQ\b\NAK\n\- \0\n\- \\EOT\EOT\RS\STX\NUL\DC2\EOT\188\ENQ\EOT\ESC\SUB\" Current state the payment is in.\n\- \\n\- \\SI\n\- \\ENQ\EOT\RS\STX\NUL\EOT\DC2\ACK\188\ENQ\EOT\186\ENQ\ETB\n\- \\r\n\- \\ENQ\EOT\RS\STX\NUL\ACK\DC2\EOT\188\ENQ\EOT\DLE\n\- \\r\n\- \\ENQ\EOT\RS\STX\NUL\SOH\DC2\EOT\188\ENQ\DC1\SYN\n\- \\r\n\- \\ENQ\EOT\RS\STX\NUL\ETX\DC2\EOT\188\ENQ\EM\SUB\n\- \E\n\- \\EOT\EOT\RS\STX\SOH\DC2\EOT\193\ENQ\EOT\ETB\SUB7\n\- \The pre-image of the payment when state is SUCCEEDED.\n\- \\n\- \\SI\n\- \\ENQ\EOT\RS\STX\SOH\EOT\DC2\ACK\193\ENQ\EOT\188\ENQ\ESC\n\- \\r\n\- \\ENQ\EOT\RS\STX\SOH\ENQ\DC2\EOT\193\ENQ\EOT\t\n\- \\r\n\- \\ENQ\EOT\RS\STX\SOH\SOH\DC2\EOT\193\ENQ\n\- \\DC2\n\- \\r\n\- \\ENQ\EOT\RS\STX\SOH\ETX\DC2\EOT\193\ENQ\NAK\SYN\n\- \\v\n\- \\ETX\EOT\RS\t\DC2\EOT\195\ENQ\EOT\SI\n\- \\f\n\- \\EOT\EOT\RS\t\NUL\DC2\EOT\195\ENQ\r\SO\n\- \\r\n\- \\ENQ\EOT\RS\t\NUL\SOH\DC2\EOT\195\ENQ\r\SO\n\- \\r\n\- \\ENQ\EOT\RS\t\NUL\STX\DC2\EOT\195\ENQ\r\SO\n\- \O\n\- \\EOT\EOT\RS\STX\STX\DC2\EOT\200\ENQ\EOT)\SUBA\n\- \The HTLCs made in attempt to settle the payment [EXPERIMENTAL].\n\- \\n\- \\r\n\- \\ENQ\EOT\RS\STX\STX\EOT\DC2\EOT\200\ENQ\EOT\f\n\- \\r\n\- \\ENQ\EOT\RS\STX\STX\ACK\DC2\EOT\200\ENQ\r\RS\n\- \\r\n\- \\ENQ\EOT\RS\STX\STX\SOH\DC2\EOT\200\ENQ\US$\n\- \\r\n\- \\ENQ\EOT\RS\STX\STX\ETX\DC2\EOT\200\ENQ'(\n\- \\f\n\- \\STX\EOT\US\DC2\ACK\203\ENQ\NUL\209\ENQ\SOH\n\- \\v\n\- \\ETX\EOT\US\SOH\DC2\EOT\203\ENQ\b\DC2\n\- \H\n\- \\EOT\EOT\US\STX\NUL\DC2\EOT\205\ENQ\EOT\ETB\SUB:/ The id of the channel that the is part of this circuit.\n\- \\n\- \\SI\n\- \\ENQ\EOT\US\STX\NUL\EOT\DC2\ACK\205\ENQ\EOT\203\ENQ\DC4\n\- \\r\n\- \\ENQ\EOT\US\STX\NUL\ENQ\DC2\EOT\205\ENQ\EOT\n\- \\n\- \\r\n\- \\ENQ\EOT\US\STX\NUL\SOH\DC2\EOT\205\ENQ\v\DC2\n\- \\r\n\- \\ENQ\EOT\US\STX\NUL\ETX\DC2\EOT\205\ENQ\NAK\SYN\n\- \H\n\- \\EOT\EOT\US\STX\SOH\DC2\EOT\208\ENQ\EOT\ETB\SUB:/ The index of the incoming htlc in the incoming channel.\n\- \\n\- \\SI\n\- \\ENQ\EOT\US\STX\SOH\EOT\DC2\ACK\208\ENQ\EOT\205\ENQ\ETB\n\- \\r\n\- \\ENQ\EOT\US\STX\SOH\ENQ\DC2\EOT\208\ENQ\EOT\n\- \\n\- \\r\n\- \\ENQ\EOT\US\STX\SOH\SOH\DC2\EOT\208\ENQ\v\DC2\n\- \\r\n\- \\ENQ\EOT\US\STX\SOH\ETX\DC2\EOT\208\ENQ\NAK\SYN\n\- \\f\n\- \\STX\EOT \DC2\ACK\211\ENQ\NUL\247\ENQ\SOH\n\- \\v\n\- \\ETX\EOT \SOH\DC2\EOT\211\ENQ\b#\n\- \q\n\- \\EOT\EOT \STX\NUL\DC2\EOT\216\ENQ\EOT(\SUBc\n\- \The key of this forwarded htlc. It defines the incoming channel id and\n\- \the index in this channel.\n\- \\n\- \\SI\n\- \\ENQ\EOT \STX\NUL\EOT\DC2\ACK\216\ENQ\EOT\211\ENQ%\n\- \\r\n\- \\ENQ\EOT \STX\NUL\ACK\DC2\EOT\216\ENQ\EOT\SO\n\- \\r\n\- \\ENQ\EOT \STX\NUL\SOH\DC2\EOT\216\ENQ\SI#\n\- \\r\n\- \\ENQ\EOT \STX\NUL\ETX\DC2\EOT\216\ENQ&'\n\- \)\n\- \\EOT\EOT \STX\SOH\DC2\EOT\219\ENQ\EOT$\SUB\ESC The incoming htlc amount.\n\- \\n\- \\SI\n\- \\ENQ\EOT \STX\SOH\EOT\DC2\ACK\219\ENQ\EOT\216\ENQ(\n\- \\r\n\- \\ENQ\EOT \STX\SOH\ENQ\DC2\EOT\219\ENQ\EOT\n\- \\n\- \\r\n\- \\ENQ\EOT \STX\SOH\SOH\DC2\EOT\219\ENQ\v\US\n\- \\r\n\- \\ENQ\EOT \STX\SOH\ETX\DC2\EOT\219\ENQ\"#\n\- \)\n\- \\EOT\EOT \STX\STX\DC2\EOT\222\ENQ\EOT\US\SUB\ESC The incoming htlc expiry.\n\- \\n\- \\SI\n\- \\ENQ\EOT \STX\STX\EOT\DC2\ACK\222\ENQ\EOT\219\ENQ$\n\- \\r\n\- \\ENQ\EOT \STX\STX\ENQ\DC2\EOT\222\ENQ\EOT\n\- \\n\- \\r\n\- \\ENQ\EOT \STX\STX\SOH\DC2\EOT\222\ENQ\v\SUB\n\- \\r\n\- \\ENQ\EOT \STX\STX\ETX\DC2\EOT\222\ENQ\GS\RS\n\- \]\n\- \\EOT\EOT \STX\ETX\DC2\EOT\228\ENQ\EOT\ESC\SUBO\n\- \The htlc payment hash. This value is not guaranteed to be unique per\n\- \request.\n\- \\n\- \\SI\n\- \\ENQ\EOT \STX\ETX\EOT\DC2\ACK\228\ENQ\EOT\222\ENQ\US\n\- \\r\n\- \\ENQ\EOT \STX\ETX\ENQ\DC2\EOT\228\ENQ\EOT\t\n\- \\r\n\- \\ENQ\EOT \STX\ETX\SOH\DC2\EOT\228\ENQ\n\- \\SYN\n\- \\r\n\- \\ENQ\EOT \STX\ETX\ETX\DC2\EOT\228\ENQ\EM\SUB\n\- \\133\STX\n\- \\EOT\EOT \STX\EOT\DC2\EOT\234\ENQ\EOT*\SUB\246\SOH The requested outgoing channel id for this forwarded htlc. Because of\n\- \ non-strict forwarding, this isn't necessarily the channel over which the\n\- \ packet will be forwarded eventually. A different channel to the same peer\n\- \ may be selected as well.\n\- \\n\- \\SI\n\- \\ENQ\EOT \STX\EOT\EOT\DC2\ACK\234\ENQ\EOT\228\ENQ\ESC\n\- \\r\n\- \\ENQ\EOT \STX\EOT\ENQ\DC2\EOT\234\ENQ\EOT\n\- \\n\- \\r\n\- \\ENQ\EOT \STX\EOT\SOH\DC2\EOT\234\ENQ\v%\n\- \\r\n\- \\ENQ\EOT \STX\EOT\ETX\DC2\EOT\234\ENQ()\n\- \)\n\- \\EOT\EOT \STX\ENQ\DC2\EOT\237\ENQ\EOT$\SUB\ESC The outgoing htlc amount.\n\- \\n\- \\SI\n\- \\ENQ\EOT \STX\ENQ\EOT\DC2\ACK\237\ENQ\EOT\234\ENQ*\n\- \\r\n\- \\ENQ\EOT \STX\ENQ\ENQ\DC2\EOT\237\ENQ\EOT\n\- \\n\- \\r\n\- \\ENQ\EOT \STX\ENQ\SOH\DC2\EOT\237\ENQ\v\US\n\- \\r\n\- \\ENQ\EOT \STX\ENQ\ETX\DC2\EOT\237\ENQ\"#\n\- \)\n\- \\EOT\EOT \STX\ACK\DC2\EOT\240\ENQ\EOT\US\SUB\ESC The outgoing htlc expiry.\n\- \\n\- \\SI\n\- \\ENQ\EOT \STX\ACK\EOT\DC2\ACK\240\ENQ\EOT\237\ENQ$\n\- \\r\n\- \\ENQ\EOT \STX\ACK\ENQ\DC2\EOT\240\ENQ\EOT\n\- \\n\- \\r\n\- \\ENQ\EOT \STX\ACK\SOH\DC2\EOT\240\ENQ\v\SUB\n\- \\r\n\- \\ENQ\EOT \STX\ACK\ETX\DC2\EOT\240\ENQ\GS\RS\n\- \D\n\- \\EOT\EOT \STX\a\DC2\EOT\243\ENQ\EOT*\SUB6 Any custom records that were present in the payload.\n\- \\n\- \\SI\n\- \\ENQ\EOT \STX\a\EOT\DC2\ACK\243\ENQ\EOT\240\ENQ\US\n\- \\r\n\- \\ENQ\EOT \STX\a\ACK\DC2\EOT\243\ENQ\EOT\SYN\n\- \\r\n\- \\ENQ\EOT \STX\a\SOH\DC2\EOT\243\ENQ\ETB%\n\- \\r\n\- \\ENQ\EOT \STX\a\ETX\DC2\EOT\243\ENQ()\n\- \/\n\- \\EOT\EOT \STX\b\DC2\EOT\246\ENQ\EOT\EM\SUB! The onion blob for the next hop\n\- \\n\- \\SI\n\- \\ENQ\EOT \STX\b\EOT\DC2\ACK\246\ENQ\EOT\243\ENQ*\n\- \\r\n\- \\ENQ\EOT \STX\b\ENQ\DC2\EOT\246\ENQ\EOT\t\n\- \\r\n\- \\ENQ\EOT \STX\b\SOH\DC2\EOT\246\ENQ\n\- \\DC4\n\- \\r\n\- \\ENQ\EOT \STX\b\ETX\DC2\EOT\246\ENQ\ETB\CAN\n\- \\157\STX\n\- \\STX\EOT!\DC2\ACK\128\ACK\NUL\140\ACK\SOH\SUB\142\STX*\n\- \ForwardHtlcInterceptResponse enables the caller to resolve a previously hold\n\- \forward. The caller can choose either to:\n\- \- `Resume`: Execute the default behavior (usually forward).\n\- \- `Reject`: Fail the htlc backwards.\n\- \- `Settle`: Settle this htlc with a given preimage.\n\- \\n\- \\v\n\- \\ETX\EOT!\SOH\DC2\EOT\128\ACK\b$\n\- \r\n\- \\EOT\EOT!\STX\NUL\DC2\EOT\133\ACK\EOT(\SUBd*\n\- \The key of this forwarded htlc. It defines the incoming channel id and\n\- \the index in this channel.\n\- \\n\- \\SI\n\- \\ENQ\EOT!\STX\NUL\EOT\DC2\ACK\133\ACK\EOT\128\ACK&\n\- \\r\n\- \\ENQ\EOT!\STX\NUL\ACK\DC2\EOT\133\ACK\EOT\SO\n\- \\r\n\- \\ENQ\EOT!\STX\NUL\SOH\DC2\EOT\133\ACK\SI#\n\- \\r\n\- \\ENQ\EOT!\STX\NUL\ETX\DC2\EOT\133\ACK&'\n\- \=\n\- \\EOT\EOT!\STX\SOH\DC2\EOT\136\ACK\EOT(\SUB/ The resolve action for this intercepted htlc.\n\- \\n\- \\SI\n\- \\ENQ\EOT!\STX\SOH\EOT\DC2\ACK\136\ACK\EOT\133\ACK(\n\- \\r\n\- \\ENQ\EOT!\STX\SOH\ACK\DC2\EOT\136\ACK\EOT\FS\n\- \\r\n\- \\ENQ\EOT!\STX\SOH\SOH\DC2\EOT\136\ACK\GS#\n\- \\r\n\- \\ENQ\EOT!\STX\SOH\ETX\DC2\EOT\136\ACK&'\n\- \B\n\- \\EOT\EOT!\STX\STX\DC2\EOT\139\ACK\EOT\ETB\SUB4 The preimage in case the resolve action is Settle.\n\- \\n\- \\SI\n\- \\ENQ\EOT!\STX\STX\EOT\DC2\ACK\139\ACK\EOT\136\ACK(\n\- \\r\n\- \\ENQ\EOT!\STX\STX\ENQ\DC2\EOT\139\ACK\EOT\t\n\- \\r\n\- \\ENQ\EOT!\STX\STX\SOH\DC2\EOT\139\ACK\n\- \\DC2\n\- \\r\n\- \\ENQ\EOT!\STX\STX\ETX\DC2\EOT\139\ACK\NAK\SYN\n\- \\f\n\- \\STX\ENQ\STX\DC2\ACK\142\ACK\NUL\146\ACK\SOH\n\- \\v\n\- \\ETX\ENQ\STX\SOH\DC2\EOT\142\ACK\ENQ\GS\n\- \\f\n\- \\EOT\ENQ\STX\STX\NUL\DC2\EOT\143\ACK\EOT\SI\n\- \\r\n\- \\ENQ\ENQ\STX\STX\NUL\SOH\DC2\EOT\143\ACK\EOT\n\- \\n\- \\r\n\- \\ENQ\ENQ\STX\STX\NUL\STX\DC2\EOT\143\ACK\r\SO\n\- \\f\n\- \\EOT\ENQ\STX\STX\SOH\DC2\EOT\144\ACK\EOT\r\n\- \\r\n\- \\ENQ\ENQ\STX\STX\SOH\SOH\DC2\EOT\144\ACK\EOT\b\n\- \\r\n\- \\ENQ\ENQ\STX\STX\SOH\STX\DC2\EOT\144\ACK\v\f\n\- \\f\n\- \\EOT\ENQ\STX\STX\STX\DC2\EOT\145\ACK\EOT\SI\n\- \\r\n\- \\ENQ\ENQ\STX\STX\STX\SOH\DC2\EOT\145\ACK\EOT\n\- \\n\- \\r\n\- \\ENQ\ENQ\STX\STX\STX\STX\DC2\EOT\145\ACK\r\SO\n\- \\f\n\- \\STX\EOT\"\DC2\ACK\148\ACK\NUL\152\ACK\SOH\n\- \\v\n\- \\ETX\EOT\"\SOH\DC2\EOT\148\ACK\b\US\n\- \\f\n\- \\EOT\EOT\"\STX\NUL\DC2\EOT\149\ACK\EOT&\n\- \\SI\n\- \\ENQ\EOT\"\STX\NUL\EOT\DC2\ACK\149\ACK\EOT\148\ACK!\n\- \\r\n\- \\ENQ\EOT\"\STX\NUL\ACK\DC2\EOT\149\ACK\EOT\SYN\n\- \\r\n\- \\ENQ\EOT\"\STX\NUL\SOH\DC2\EOT\149\ACK\ETB!\n\- \\r\n\- \\ENQ\EOT\"\STX\NUL\ETX\DC2\EOT\149\ACK$%\n\- \\f\n\- \\EOT\EOT\"\STX\SOH\DC2\EOT\151\ACK\EOT \n\- \\SI\n\- \\ENQ\EOT\"\STX\SOH\EOT\DC2\ACK\151\ACK\EOT\149\ACK&\n\- \\r\n\- \\ENQ\EOT\"\STX\SOH\ACK\DC2\EOT\151\ACK\EOT\DC4\n\- \\r\n\- \\ENQ\EOT\"\STX\SOH\SOH\DC2\EOT\151\ACK\NAK\ESC\n\- \\r\n\- \\ENQ\EOT\"\STX\SOH\ETX\DC2\EOT\151\ACK\RS\US\n\- \\f\n\- \\STX\ENQ\ETX\DC2\ACK\154\ACK\NUL\158\ACK\SOH\n\- \\v\n\- \\ETX\ENQ\ETX\SOH\DC2\EOT\154\ACK\ENQ\NAK\n\- \\f\n\- \\EOT\ENQ\ETX\STX\NUL\DC2\EOT\155\ACK\EOT\SI\n\- \\r\n\- \\ENQ\ENQ\ETX\STX\NUL\SOH\DC2\EOT\155\ACK\EOT\n\- \\n\- \\r\n\- \\ENQ\ENQ\ETX\STX\NUL\STX\DC2\EOT\155\ACK\r\SO\n\- \\f\n\- \\EOT\ENQ\ETX\STX\SOH\DC2\EOT\156\ACK\EOT\DLE\n\- \\r\n\- \\ENQ\ENQ\ETX\STX\SOH\SOH\DC2\EOT\156\ACK\EOT\v\n\- \\r\n\- \\ENQ\ENQ\ETX\STX\SOH\STX\DC2\EOT\156\ACK\SO\SI\n\- \\f\n\- \\EOT\ENQ\ETX\STX\STX\DC2\EOT\157\ACK\EOT\r\n\- \\r\n\- \\ENQ\ENQ\ETX\STX\STX\SOH\DC2\EOT\157\ACK\EOT\b\n\- \\r\n\- \\ENQ\ENQ\ETX\STX\STX\STX\DC2\EOT\157\ACK\v\f\n\- \\f\n\- \\STX\EOT#\DC2\ACK\160\ACK\NUL\161\ACK\SOH\n\- \\v\n\- \\ETX\EOT#\SOH\DC2\EOT\160\ACK\b b\ACKproto3"
@@ -1,620 +0,0 @@-{- This file was auto-generated from router_grpc.proto by the proto-lens-protoc program. -}-{-# LANGUAGE ScopedTypeVariables, DataKinds, TypeFamilies, UndecidableInstances, GeneralizedNewtypeDeriving, MultiParamTypeClasses, FlexibleContexts, FlexibleInstances, PatternSynonyms, MagicHash, NoImplicitPrelude, DataKinds, BangPatterns, TypeApplications, OverloadedStrings, DerivingStrategies#-}-{-# OPTIONS_GHC -Wno-unused-imports#-}-{-# OPTIONS_GHC -Wno-duplicate-exports#-}-{-# OPTIONS_GHC -Wno-dodgy-exports#-}-module Proto.RouterGrpc_Fields where-import qualified Data.ProtoLens.Runtime.Prelude as Prelude-import qualified Data.ProtoLens.Runtime.Data.Int as Data.Int-import qualified Data.ProtoLens.Runtime.Data.Monoid as Data.Monoid-import qualified Data.ProtoLens.Runtime.Data.Word as Data.Word-import qualified Data.ProtoLens.Runtime.Data.ProtoLens as Data.ProtoLens-import qualified Data.ProtoLens.Runtime.Data.ProtoLens.Encoding.Bytes as Data.ProtoLens.Encoding.Bytes-import qualified Data.ProtoLens.Runtime.Data.ProtoLens.Encoding.Growing as Data.ProtoLens.Encoding.Growing-import qualified Data.ProtoLens.Runtime.Data.ProtoLens.Encoding.Parser.Unsafe as Data.ProtoLens.Encoding.Parser.Unsafe-import qualified Data.ProtoLens.Runtime.Data.ProtoLens.Encoding.Wire as Data.ProtoLens.Encoding.Wire-import qualified Data.ProtoLens.Runtime.Data.ProtoLens.Field as Data.ProtoLens.Field-import qualified Data.ProtoLens.Runtime.Data.ProtoLens.Message.Enum as Data.ProtoLens.Message.Enum-import qualified Data.ProtoLens.Runtime.Data.ProtoLens.Service.Types as Data.ProtoLens.Service.Types-import qualified Data.ProtoLens.Runtime.Lens.Family2 as Lens.Family2-import qualified Data.ProtoLens.Runtime.Lens.Family2.Unchecked as Lens.Family2.Unchecked-import qualified Data.ProtoLens.Runtime.Data.Text as Data.Text-import qualified Data.ProtoLens.Runtime.Data.Map as Data.Map-import qualified Data.ProtoLens.Runtime.Data.ByteString as Data.ByteString-import qualified Data.ProtoLens.Runtime.Data.ByteString.Char8 as Data.ByteString.Char8-import qualified Data.ProtoLens.Runtime.Data.Text.Encoding as Data.Text.Encoding-import qualified Data.ProtoLens.Runtime.Data.Vector as Data.Vector-import qualified Data.ProtoLens.Runtime.Data.Vector.Generic as Data.Vector.Generic-import qualified Data.ProtoLens.Runtime.Data.Vector.Unboxed as Data.Vector.Unboxed-import qualified Data.ProtoLens.Runtime.Text.Read as Text.Read-import qualified Proto.LndGrpc-action ::- forall f s a.- (Prelude.Functor f, Data.ProtoLens.Field.HasField s "action" a) =>- Lens.Family2.LensLike' f s a-action = Data.ProtoLens.Field.field @"action"-allowSelfPayment ::- forall f s a.- (Prelude.Functor f,- Data.ProtoLens.Field.HasField s "allowSelfPayment" a) =>- Lens.Family2.LensLike' f s a-allowSelfPayment = Data.ProtoLens.Field.field @"allowSelfPayment"-amp ::- forall f s a.- (Prelude.Functor f, Data.ProtoLens.Field.HasField s "amp" a) =>- Lens.Family2.LensLike' f s a-amp = Data.ProtoLens.Field.field @"amp"-amt ::- forall f s a.- (Prelude.Functor f, Data.ProtoLens.Field.HasField s "amt" a) =>- Lens.Family2.LensLike' f s a-amt = Data.ProtoLens.Field.field @"amt"-amtMsat ::- forall f s a.- (Prelude.Functor f, Data.ProtoLens.Field.HasField s "amtMsat" a) =>- Lens.Family2.LensLike' f s a-amtMsat = Data.ProtoLens.Field.field @"amtMsat"-amtSat ::- forall f s a.- (Prelude.Functor f, Data.ProtoLens.Field.HasField s "amtSat" a) =>- Lens.Family2.LensLike' f s a-amtSat = Data.ProtoLens.Field.field @"amtSat"-chanId ::- forall f s a.- (Prelude.Functor f, Data.ProtoLens.Field.HasField s "chanId" a) =>- Lens.Family2.LensLike' f s a-chanId = Data.ProtoLens.Field.field @"chanId"-chanPoint ::- forall f s a.- (Prelude.Functor f,- Data.ProtoLens.Field.HasField s "chanPoint" a) =>- Lens.Family2.LensLike' f s a-chanPoint = Data.ProtoLens.Field.field @"chanPoint"-cltvLimit ::- forall f s a.- (Prelude.Functor f,- Data.ProtoLens.Field.HasField s "cltvLimit" a) =>- Lens.Family2.LensLike' f s a-cltvLimit = Data.ProtoLens.Field.field @"cltvLimit"-config ::- forall f s a.- (Prelude.Functor f, Data.ProtoLens.Field.HasField s "config" a) =>- Lens.Family2.LensLike' f s a-config = Data.ProtoLens.Field.field @"config"-customRecords ::- forall f s a.- (Prelude.Functor f,- Data.ProtoLens.Field.HasField s "customRecords" a) =>- Lens.Family2.LensLike' f s a-customRecords = Data.ProtoLens.Field.field @"customRecords"-dest ::- forall f s a.- (Prelude.Functor f, Data.ProtoLens.Field.HasField s "dest" a) =>- Lens.Family2.LensLike' f s a-dest = Data.ProtoLens.Field.field @"dest"-destCustomRecords ::- forall f s a.- (Prelude.Functor f,- Data.ProtoLens.Field.HasField s "destCustomRecords" a) =>- Lens.Family2.LensLike' f s a-destCustomRecords = Data.ProtoLens.Field.field @"destCustomRecords"-destFeatures ::- forall f s a.- (Prelude.Functor f,- Data.ProtoLens.Field.HasField s "destFeatures" a) =>- Lens.Family2.LensLike' f s a-destFeatures = Data.ProtoLens.Field.field @"destFeatures"-eventType ::- forall f s a.- (Prelude.Functor f,- Data.ProtoLens.Field.HasField s "eventType" a) =>- Lens.Family2.LensLike' f s a-eventType = Data.ProtoLens.Field.field @"eventType"-failAmtMsat ::- forall f s a.- (Prelude.Functor f,- Data.ProtoLens.Field.HasField s "failAmtMsat" a) =>- Lens.Family2.LensLike' f s a-failAmtMsat = Data.ProtoLens.Field.field @"failAmtMsat"-failAmtSat ::- forall f s a.- (Prelude.Functor f,- Data.ProtoLens.Field.HasField s "failAmtSat" a) =>- Lens.Family2.LensLike' f s a-failAmtSat = Data.ProtoLens.Field.field @"failAmtSat"-failTime ::- forall f s a.- (Prelude.Functor f,- Data.ProtoLens.Field.HasField s "failTime" a) =>- Lens.Family2.LensLike' f s a-failTime = Data.ProtoLens.Field.field @"failTime"-failure ::- forall f s a.- (Prelude.Functor f, Data.ProtoLens.Field.HasField s "failure" a) =>- Lens.Family2.LensLike' f s a-failure = Data.ProtoLens.Field.field @"failure"-failureDetail ::- forall f s a.- (Prelude.Functor f,- Data.ProtoLens.Field.HasField s "failureDetail" a) =>- Lens.Family2.LensLike' f s a-failureDetail = Data.ProtoLens.Field.field @"failureDetail"-failureString ::- forall f s a.- (Prelude.Functor f,- Data.ProtoLens.Field.HasField s "failureString" a) =>- Lens.Family2.LensLike' f s a-failureString = Data.ProtoLens.Field.field @"failureString"-feeLimitMsat ::- forall f s a.- (Prelude.Functor f,- Data.ProtoLens.Field.HasField s "feeLimitMsat" a) =>- Lens.Family2.LensLike' f s a-feeLimitMsat = Data.ProtoLens.Field.field @"feeLimitMsat"-feeLimitSat ::- forall f s a.- (Prelude.Functor f,- Data.ProtoLens.Field.HasField s "feeLimitSat" a) =>- Lens.Family2.LensLike' f s a-feeLimitSat = Data.ProtoLens.Field.field @"feeLimitSat"-finalCltvDelta ::- forall f s a.- (Prelude.Functor f,- Data.ProtoLens.Field.HasField s "finalCltvDelta" a) =>- Lens.Family2.LensLike' f s a-finalCltvDelta = Data.ProtoLens.Field.field @"finalCltvDelta"-forwardEvent ::- forall f s a.- (Prelude.Functor f,- Data.ProtoLens.Field.HasField s "forwardEvent" a) =>- Lens.Family2.LensLike' f s a-forwardEvent = Data.ProtoLens.Field.field @"forwardEvent"-forwardFailEvent ::- forall f s a.- (Prelude.Functor f,- Data.ProtoLens.Field.HasField s "forwardFailEvent" a) =>- Lens.Family2.LensLike' f s a-forwardFailEvent = Data.ProtoLens.Field.field @"forwardFailEvent"-fromNode ::- forall f s a.- (Prelude.Functor f,- Data.ProtoLens.Field.HasField s "fromNode" a) =>- Lens.Family2.LensLike' f s a-fromNode = Data.ProtoLens.Field.field @"fromNode"-halfLifeSeconds ::- forall f s a.- (Prelude.Functor f,- Data.ProtoLens.Field.HasField s "halfLifeSeconds" a) =>- Lens.Family2.LensLike' f s a-halfLifeSeconds = Data.ProtoLens.Field.field @"halfLifeSeconds"-history ::- forall f s a.- (Prelude.Functor f, Data.ProtoLens.Field.HasField s "history" a) =>- Lens.Family2.LensLike' f s a-history = Data.ProtoLens.Field.field @"history"-hopProbability ::- forall f s a.- (Prelude.Functor f,- Data.ProtoLens.Field.HasField s "hopProbability" a) =>- Lens.Family2.LensLike' f s a-hopProbability = Data.ProtoLens.Field.field @"hopProbability"-hopPubkeys ::- forall f s a.- (Prelude.Functor f,- Data.ProtoLens.Field.HasField s "hopPubkeys" a) =>- Lens.Family2.LensLike' f s a-hopPubkeys = Data.ProtoLens.Field.field @"hopPubkeys"-htlcId ::- forall f s a.- (Prelude.Functor f, Data.ProtoLens.Field.HasField s "htlcId" a) =>- Lens.Family2.LensLike' f s a-htlcId = Data.ProtoLens.Field.field @"htlcId"-htlcs ::- forall f s a.- (Prelude.Functor f, Data.ProtoLens.Field.HasField s "htlcs" a) =>- Lens.Family2.LensLike' f s a-htlcs = Data.ProtoLens.Field.field @"htlcs"-incomingAmountMsat ::- forall f s a.- (Prelude.Functor f,- Data.ProtoLens.Field.HasField s "incomingAmountMsat" a) =>- Lens.Family2.LensLike' f s a-incomingAmountMsat- = Data.ProtoLens.Field.field @"incomingAmountMsat"-incomingAmtMsat ::- forall f s a.- (Prelude.Functor f,- Data.ProtoLens.Field.HasField s "incomingAmtMsat" a) =>- Lens.Family2.LensLike' f s a-incomingAmtMsat = Data.ProtoLens.Field.field @"incomingAmtMsat"-incomingChannelId ::- forall f s a.- (Prelude.Functor f,- Data.ProtoLens.Field.HasField s "incomingChannelId" a) =>- Lens.Family2.LensLike' f s a-incomingChannelId = Data.ProtoLens.Field.field @"incomingChannelId"-incomingCircuitKey ::- forall f s a.- (Prelude.Functor f,- Data.ProtoLens.Field.HasField s "incomingCircuitKey" a) =>- Lens.Family2.LensLike' f s a-incomingCircuitKey- = Data.ProtoLens.Field.field @"incomingCircuitKey"-incomingExpiry ::- forall f s a.- (Prelude.Functor f,- Data.ProtoLens.Field.HasField s "incomingExpiry" a) =>- Lens.Family2.LensLike' f s a-incomingExpiry = Data.ProtoLens.Field.field @"incomingExpiry"-incomingHtlcId ::- forall f s a.- (Prelude.Functor f,- Data.ProtoLens.Field.HasField s "incomingHtlcId" a) =>- Lens.Family2.LensLike' f s a-incomingHtlcId = Data.ProtoLens.Field.field @"incomingHtlcId"-incomingTimelock ::- forall f s a.- (Prelude.Functor f,- Data.ProtoLens.Field.HasField s "incomingTimelock" a) =>- Lens.Family2.LensLike' f s a-incomingTimelock = Data.ProtoLens.Field.field @"incomingTimelock"-info ::- forall f s a.- (Prelude.Functor f, Data.ProtoLens.Field.HasField s "info" a) =>- Lens.Family2.LensLike' f s a-info = Data.ProtoLens.Field.field @"info"-key ::- forall f s a.- (Prelude.Functor f, Data.ProtoLens.Field.HasField s "key" a) =>- Lens.Family2.LensLike' f s a-key = Data.ProtoLens.Field.field @"key"-lastHopPubkey ::- forall f s a.- (Prelude.Functor f,- Data.ProtoLens.Field.HasField s "lastHopPubkey" a) =>- Lens.Family2.LensLike' f s a-lastHopPubkey = Data.ProtoLens.Field.field @"lastHopPubkey"-linkFailEvent ::- forall f s a.- (Prelude.Functor f,- Data.ProtoLens.Field.HasField s "linkFailEvent" a) =>- Lens.Family2.LensLike' f s a-linkFailEvent = Data.ProtoLens.Field.field @"linkFailEvent"-maxParts ::- forall f s a.- (Prelude.Functor f,- Data.ProtoLens.Field.HasField s "maxParts" a) =>- Lens.Family2.LensLike' f s a-maxParts = Data.ProtoLens.Field.field @"maxParts"-maxShardSizeMsat ::- forall f s a.- (Prelude.Functor f,- Data.ProtoLens.Field.HasField s "maxShardSizeMsat" a) =>- Lens.Family2.LensLike' f s a-maxShardSizeMsat = Data.ProtoLens.Field.field @"maxShardSizeMsat"-maximumPaymentResults ::- forall f s a.- (Prelude.Functor f,- Data.ProtoLens.Field.HasField s "maximumPaymentResults" a) =>- Lens.Family2.LensLike' f s a-maximumPaymentResults- = Data.ProtoLens.Field.field @"maximumPaymentResults"-maybe'chanPoint ::- forall f s a.- (Prelude.Functor f,- Data.ProtoLens.Field.HasField s "maybe'chanPoint" a) =>- Lens.Family2.LensLike' f s a-maybe'chanPoint = Data.ProtoLens.Field.field @"maybe'chanPoint"-maybe'config ::- forall f s a.- (Prelude.Functor f,- Data.ProtoLens.Field.HasField s "maybe'config" a) =>- Lens.Family2.LensLike' f s a-maybe'config = Data.ProtoLens.Field.field @"maybe'config"-maybe'event ::- forall f s a.- (Prelude.Functor f,- Data.ProtoLens.Field.HasField s "maybe'event" a) =>- Lens.Family2.LensLike' f s a-maybe'event = Data.ProtoLens.Field.field @"maybe'event"-maybe'failure ::- forall f s a.- (Prelude.Functor f,- Data.ProtoLens.Field.HasField s "maybe'failure" a) =>- Lens.Family2.LensLike' f s a-maybe'failure = Data.ProtoLens.Field.field @"maybe'failure"-maybe'forwardEvent ::- forall f s a.- (Prelude.Functor f,- Data.ProtoLens.Field.HasField s "maybe'forwardEvent" a) =>- Lens.Family2.LensLike' f s a-maybe'forwardEvent- = Data.ProtoLens.Field.field @"maybe'forwardEvent"-maybe'forwardFailEvent ::- forall f s a.- (Prelude.Functor f,- Data.ProtoLens.Field.HasField s "maybe'forwardFailEvent" a) =>- Lens.Family2.LensLike' f s a-maybe'forwardFailEvent- = Data.ProtoLens.Field.field @"maybe'forwardFailEvent"-maybe'history ::- forall f s a.- (Prelude.Functor f,- Data.ProtoLens.Field.HasField s "maybe'history" a) =>- Lens.Family2.LensLike' f s a-maybe'history = Data.ProtoLens.Field.field @"maybe'history"-maybe'incomingCircuitKey ::- forall f s a.- (Prelude.Functor f,- Data.ProtoLens.Field.HasField s "maybe'incomingCircuitKey" a) =>- Lens.Family2.LensLike' f s a-maybe'incomingCircuitKey- = Data.ProtoLens.Field.field @"maybe'incomingCircuitKey"-maybe'info ::- forall f s a.- (Prelude.Functor f,- Data.ProtoLens.Field.HasField s "maybe'info" a) =>- Lens.Family2.LensLike' f s a-maybe'info = Data.ProtoLens.Field.field @"maybe'info"-maybe'linkFailEvent ::- forall f s a.- (Prelude.Functor f,- Data.ProtoLens.Field.HasField s "maybe'linkFailEvent" a) =>- Lens.Family2.LensLike' f s a-maybe'linkFailEvent- = Data.ProtoLens.Field.field @"maybe'linkFailEvent"-maybe'route ::- forall f s a.- (Prelude.Functor f,- Data.ProtoLens.Field.HasField s "maybe'route" a) =>- Lens.Family2.LensLike' f s a-maybe'route = Data.ProtoLens.Field.field @"maybe'route"-maybe'settleEvent ::- forall f s a.- (Prelude.Functor f,- Data.ProtoLens.Field.HasField s "maybe'settleEvent" a) =>- Lens.Family2.LensLike' f s a-maybe'settleEvent = Data.ProtoLens.Field.field @"maybe'settleEvent"-minimumFailureRelaxInterval ::- forall f s a.- (Prelude.Functor f,- Data.ProtoLens.Field.HasField s "minimumFailureRelaxInterval" a) =>- Lens.Family2.LensLike' f s a-minimumFailureRelaxInterval- = Data.ProtoLens.Field.field @"minimumFailureRelaxInterval"-noInflightUpdates ::- forall f s a.- (Prelude.Functor f,- Data.ProtoLens.Field.HasField s "noInflightUpdates" a) =>- Lens.Family2.LensLike' f s a-noInflightUpdates = Data.ProtoLens.Field.field @"noInflightUpdates"-nodeFrom ::- forall f s a.- (Prelude.Functor f,- Data.ProtoLens.Field.HasField s "nodeFrom" a) =>- Lens.Family2.LensLike' f s a-nodeFrom = Data.ProtoLens.Field.field @"nodeFrom"-nodeTo ::- forall f s a.- (Prelude.Functor f, Data.ProtoLens.Field.HasField s "nodeTo" a) =>- Lens.Family2.LensLike' f s a-nodeTo = Data.ProtoLens.Field.field @"nodeTo"-onionBlob ::- forall f s a.- (Prelude.Functor f,- Data.ProtoLens.Field.HasField s "onionBlob" a) =>- Lens.Family2.LensLike' f s a-onionBlob = Data.ProtoLens.Field.field @"onionBlob"-outgoingAmountMsat ::- forall f s a.- (Prelude.Functor f,- Data.ProtoLens.Field.HasField s "outgoingAmountMsat" a) =>- Lens.Family2.LensLike' f s a-outgoingAmountMsat- = Data.ProtoLens.Field.field @"outgoingAmountMsat"-outgoingAmtMsat ::- forall f s a.- (Prelude.Functor f,- Data.ProtoLens.Field.HasField s "outgoingAmtMsat" a) =>- Lens.Family2.LensLike' f s a-outgoingAmtMsat = Data.ProtoLens.Field.field @"outgoingAmtMsat"-outgoingChanId ::- forall f s a.- (Prelude.Functor f,- Data.ProtoLens.Field.HasField s "outgoingChanId" a) =>- Lens.Family2.LensLike' f s a-outgoingChanId = Data.ProtoLens.Field.field @"outgoingChanId"-outgoingChanIds ::- forall f s a.- (Prelude.Functor f,- Data.ProtoLens.Field.HasField s "outgoingChanIds" a) =>- Lens.Family2.LensLike' f s a-outgoingChanIds = Data.ProtoLens.Field.field @"outgoingChanIds"-outgoingChannelId ::- forall f s a.- (Prelude.Functor f,- Data.ProtoLens.Field.HasField s "outgoingChannelId" a) =>- Lens.Family2.LensLike' f s a-outgoingChannelId = Data.ProtoLens.Field.field @"outgoingChannelId"-outgoingExpiry ::- forall f s a.- (Prelude.Functor f,- Data.ProtoLens.Field.HasField s "outgoingExpiry" a) =>- Lens.Family2.LensLike' f s a-outgoingExpiry = Data.ProtoLens.Field.field @"outgoingExpiry"-outgoingHtlcId ::- forall f s a.- (Prelude.Functor f,- Data.ProtoLens.Field.HasField s "outgoingHtlcId" a) =>- Lens.Family2.LensLike' f s a-outgoingHtlcId = Data.ProtoLens.Field.field @"outgoingHtlcId"-outgoingRequestedChanId ::- forall f s a.- (Prelude.Functor f,- Data.ProtoLens.Field.HasField s "outgoingRequestedChanId" a) =>- Lens.Family2.LensLike' f s a-outgoingRequestedChanId- = Data.ProtoLens.Field.field @"outgoingRequestedChanId"-outgoingTimelock ::- forall f s a.- (Prelude.Functor f,- Data.ProtoLens.Field.HasField s "outgoingTimelock" a) =>- Lens.Family2.LensLike' f s a-outgoingTimelock = Data.ProtoLens.Field.field @"outgoingTimelock"-pairs ::- forall f s a.- (Prelude.Functor f, Data.ProtoLens.Field.HasField s "pairs" a) =>- Lens.Family2.LensLike' f s a-pairs = Data.ProtoLens.Field.field @"pairs"-paymentAddr ::- forall f s a.- (Prelude.Functor f,- Data.ProtoLens.Field.HasField s "paymentAddr" a) =>- Lens.Family2.LensLike' f s a-paymentAddr = Data.ProtoLens.Field.field @"paymentAddr"-paymentHash ::- forall f s a.- (Prelude.Functor f,- Data.ProtoLens.Field.HasField s "paymentHash" a) =>- Lens.Family2.LensLike' f s a-paymentHash = Data.ProtoLens.Field.field @"paymentHash"-paymentRequest ::- forall f s a.- (Prelude.Functor f,- Data.ProtoLens.Field.HasField s "paymentRequest" a) =>- Lens.Family2.LensLike' f s a-paymentRequest = Data.ProtoLens.Field.field @"paymentRequest"-preimage ::- forall f s a.- (Prelude.Functor f,- Data.ProtoLens.Field.HasField s "preimage" a) =>- Lens.Family2.LensLike' f s a-preimage = Data.ProtoLens.Field.field @"preimage"-probability ::- forall f s a.- (Prelude.Functor f,- Data.ProtoLens.Field.HasField s "probability" a) =>- Lens.Family2.LensLike' f s a-probability = Data.ProtoLens.Field.field @"probability"-route ::- forall f s a.- (Prelude.Functor f, Data.ProtoLens.Field.HasField s "route" a) =>- Lens.Family2.LensLike' f s a-route = Data.ProtoLens.Field.field @"route"-routeHints ::- forall f s a.- (Prelude.Functor f,- Data.ProtoLens.Field.HasField s "routeHints" a) =>- Lens.Family2.LensLike' f s a-routeHints = Data.ProtoLens.Field.field @"routeHints"-routingFeeMsat ::- forall f s a.- (Prelude.Functor f,- Data.ProtoLens.Field.HasField s "routingFeeMsat" a) =>- Lens.Family2.LensLike' f s a-routingFeeMsat = Data.ProtoLens.Field.field @"routingFeeMsat"-settleEvent ::- forall f s a.- (Prelude.Functor f,- Data.ProtoLens.Field.HasField s "settleEvent" a) =>- Lens.Family2.LensLike' f s a-settleEvent = Data.ProtoLens.Field.field @"settleEvent"-state ::- forall f s a.- (Prelude.Functor f, Data.ProtoLens.Field.HasField s "state" a) =>- Lens.Family2.LensLike' f s a-state = Data.ProtoLens.Field.field @"state"-successAmtMsat ::- forall f s a.- (Prelude.Functor f,- Data.ProtoLens.Field.HasField s "successAmtMsat" a) =>- Lens.Family2.LensLike' f s a-successAmtMsat = Data.ProtoLens.Field.field @"successAmtMsat"-successAmtSat ::- forall f s a.- (Prelude.Functor f,- Data.ProtoLens.Field.HasField s "successAmtSat" a) =>- Lens.Family2.LensLike' f s a-successAmtSat = Data.ProtoLens.Field.field @"successAmtSat"-successTime ::- forall f s a.- (Prelude.Functor f,- Data.ProtoLens.Field.HasField s "successTime" a) =>- Lens.Family2.LensLike' f s a-successTime = Data.ProtoLens.Field.field @"successTime"-timeLockDelay ::- forall f s a.- (Prelude.Functor f,- Data.ProtoLens.Field.HasField s "timeLockDelay" a) =>- Lens.Family2.LensLike' f s a-timeLockDelay = Data.ProtoLens.Field.field @"timeLockDelay"-timeoutSeconds ::- forall f s a.- (Prelude.Functor f,- Data.ProtoLens.Field.HasField s "timeoutSeconds" a) =>- Lens.Family2.LensLike' f s a-timeoutSeconds = Data.ProtoLens.Field.field @"timeoutSeconds"-timestampNs ::- forall f s a.- (Prelude.Functor f,- Data.ProtoLens.Field.HasField s "timestampNs" a) =>- Lens.Family2.LensLike' f s a-timestampNs = Data.ProtoLens.Field.field @"timestampNs"-toNode ::- forall f s a.- (Prelude.Functor f, Data.ProtoLens.Field.HasField s "toNode" a) =>- Lens.Family2.LensLike' f s a-toNode = Data.ProtoLens.Field.field @"toNode"-value ::- forall f s a.- (Prelude.Functor f, Data.ProtoLens.Field.HasField s "value" a) =>- Lens.Family2.LensLike' f s a-value = Data.ProtoLens.Field.field @"value"-vec'destFeatures ::- forall f s a.- (Prelude.Functor f,- Data.ProtoLens.Field.HasField s "vec'destFeatures" a) =>- Lens.Family2.LensLike' f s a-vec'destFeatures = Data.ProtoLens.Field.field @"vec'destFeatures"-vec'hopPubkeys ::- forall f s a.- (Prelude.Functor f,- Data.ProtoLens.Field.HasField s "vec'hopPubkeys" a) =>- Lens.Family2.LensLike' f s a-vec'hopPubkeys = Data.ProtoLens.Field.field @"vec'hopPubkeys"-vec'htlcs ::- forall f s a.- (Prelude.Functor f,- Data.ProtoLens.Field.HasField s "vec'htlcs" a) =>- Lens.Family2.LensLike' f s a-vec'htlcs = Data.ProtoLens.Field.field @"vec'htlcs"-vec'outgoingChanIds ::- forall f s a.- (Prelude.Functor f,- Data.ProtoLens.Field.HasField s "vec'outgoingChanIds" a) =>- Lens.Family2.LensLike' f s a-vec'outgoingChanIds- = Data.ProtoLens.Field.field @"vec'outgoingChanIds"-vec'pairs ::- forall f s a.- (Prelude.Functor f,- Data.ProtoLens.Field.HasField s "vec'pairs" a) =>- Lens.Family2.LensLike' f s a-vec'pairs = Data.ProtoLens.Field.field @"vec'pairs"-vec'routeHints ::- forall f s a.- (Prelude.Functor f,- Data.ProtoLens.Field.HasField s "vec'routeHints" a) =>- Lens.Family2.LensLike' f s a-vec'routeHints = Data.ProtoLens.Field.field @"vec'routeHints"-weight ::- forall f s a.- (Prelude.Functor f, Data.ProtoLens.Field.HasField s "weight" a) =>- Lens.Family2.LensLike' f s a-weight = Data.ProtoLens.Field.field @"weight"-wireFailure ::- forall f s a.- (Prelude.Functor f,- Data.ProtoLens.Field.HasField s "wireFailure" a) =>- Lens.Family2.LensLike' f s a-wireFailure = Data.ProtoLens.Field.field @"wireFailure"
@@ -0,0 +1,10699 @@+{- This file was auto-generated from routerrpc/router.proto by the proto-lens-protoc program. -}+{-# LANGUAGE ScopedTypeVariables, DataKinds, TypeFamilies, UndecidableInstances, GeneralizedNewtypeDeriving, MultiParamTypeClasses, FlexibleContexts, FlexibleInstances, PatternSynonyms, MagicHash, NoImplicitPrelude, BangPatterns, TypeApplications, OverloadedStrings, DerivingStrategies, DeriveGeneric#-}+{-# OPTIONS_GHC -Wno-unused-imports#-}+{-# OPTIONS_GHC -Wno-duplicate-exports#-}+{-# OPTIONS_GHC -Wno-dodgy-exports#-}+module Proto.Routerrpc.Router (+ Router(..), BuildRouteRequest(), BuildRouteResponse(),+ ChanStatusAction(..), ChanStatusAction(),+ ChanStatusAction'UnrecognizedValue, CircuitKey(),+ FailureDetail(..), FailureDetail(),+ FailureDetail'UnrecognizedValue, ForwardEvent(),+ ForwardFailEvent(), ForwardHtlcInterceptRequest(),+ ForwardHtlcInterceptRequest'CustomRecordsEntry(),+ ForwardHtlcInterceptResponse(), GetMissionControlConfigRequest(),+ GetMissionControlConfigResponse(), HtlcEvent(),+ HtlcEvent'Event(..), _HtlcEvent'ForwardEvent,+ _HtlcEvent'ForwardFailEvent, _HtlcEvent'SettleEvent,+ _HtlcEvent'LinkFailEvent, HtlcEvent'EventType(..),+ HtlcEvent'EventType(), HtlcEvent'EventType'UnrecognizedValue,+ HtlcInfo(), LinkFailEvent(), MissionControlConfig(), PairData(),+ PairHistory(), PaymentState(..), PaymentState(),+ PaymentState'UnrecognizedValue, PaymentStatus(),+ QueryMissionControlRequest(), QueryMissionControlResponse(),+ QueryProbabilityRequest(), QueryProbabilityResponse(),+ ResetMissionControlRequest(), ResetMissionControlResponse(),+ ResolveHoldForwardAction(..), ResolveHoldForwardAction(),+ ResolveHoldForwardAction'UnrecognizedValue, RouteFeeRequest(),+ RouteFeeResponse(), SendPaymentRequest(),+ SendPaymentRequest'DestCustomRecordsEntry(), SendToRouteRequest(),+ SendToRouteResponse(), SetMissionControlConfigRequest(),+ SetMissionControlConfigResponse(), SettleEvent(),+ SubscribeHtlcEventsRequest(), TrackPaymentRequest(),+ UpdateChanStatusRequest(), UpdateChanStatusResponse(),+ XImportMissionControlRequest(), XImportMissionControlResponse()+ ) where+import qualified Data.ProtoLens.Runtime.Control.DeepSeq as Control.DeepSeq+import qualified Data.ProtoLens.Runtime.Data.ProtoLens.Prism as Data.ProtoLens.Prism+import qualified Text.PrettyPrint.GenericPretty.Instance+import qualified GHC.Generics+import qualified Text.PrettyPrint.GenericPretty+import qualified Data.ProtoLens.Runtime.Prelude as Prelude+import qualified Data.ProtoLens.Runtime.Data.Int as Data.Int+import qualified Data.ProtoLens.Runtime.Data.Monoid as Data.Monoid+import qualified Data.ProtoLens.Runtime.Data.Word as Data.Word+import qualified Data.ProtoLens.Runtime.Data.ProtoLens as Data.ProtoLens+import qualified Data.ProtoLens.Runtime.Data.ProtoLens.Encoding.Bytes as Data.ProtoLens.Encoding.Bytes+import qualified Data.ProtoLens.Runtime.Data.ProtoLens.Encoding.Growing as Data.ProtoLens.Encoding.Growing+import qualified Data.ProtoLens.Runtime.Data.ProtoLens.Encoding.Parser.Unsafe as Data.ProtoLens.Encoding.Parser.Unsafe+import qualified Data.ProtoLens.Runtime.Data.ProtoLens.Encoding.Wire as Data.ProtoLens.Encoding.Wire+import qualified Data.ProtoLens.Runtime.Data.ProtoLens.Field as Data.ProtoLens.Field+import qualified Data.ProtoLens.Runtime.Data.ProtoLens.Message.Enum as Data.ProtoLens.Message.Enum+import qualified Data.ProtoLens.Runtime.Data.ProtoLens.Service.Types as Data.ProtoLens.Service.Types+import qualified Data.ProtoLens.Runtime.Lens.Family2 as Lens.Family2+import qualified Data.ProtoLens.Runtime.Lens.Family2.Unchecked as Lens.Family2.Unchecked+import qualified Data.ProtoLens.Runtime.Data.Text as Data.Text+import qualified Data.ProtoLens.Runtime.Data.Map as Data.Map+import qualified Data.ProtoLens.Runtime.Data.ByteString as Data.ByteString+import qualified Data.ProtoLens.Runtime.Data.ByteString.Char8 as Data.ByteString.Char8+import qualified Data.ProtoLens.Runtime.Data.Text.Encoding as Data.Text.Encoding+import qualified Data.ProtoLens.Runtime.Data.Vector as Data.Vector+import qualified Data.ProtoLens.Runtime.Data.Vector.Generic as Data.Vector.Generic+import qualified Data.ProtoLens.Runtime.Data.Vector.Unboxed as Data.Vector.Unboxed+import qualified Data.ProtoLens.Runtime.Text.Read as Text.Read+import qualified Proto.Lnrpc.Ln0+import qualified Proto.Lnrpc.Ln1+{- | Fields :+ + * 'Proto.Routerrpc.Router_Fields.amtMsat' @:: Lens' BuildRouteRequest Data.Int.Int64@+ * 'Proto.Routerrpc.Router_Fields.finalCltvDelta' @:: Lens' BuildRouteRequest Data.Int.Int32@+ * 'Proto.Routerrpc.Router_Fields.outgoingChanId' @:: Lens' BuildRouteRequest Data.Word.Word64@+ * 'Proto.Routerrpc.Router_Fields.hopPubkeys' @:: Lens' BuildRouteRequest [Data.ByteString.ByteString]@+ * 'Proto.Routerrpc.Router_Fields.vec'hopPubkeys' @:: Lens' BuildRouteRequest (Data.Vector.Vector Data.ByteString.ByteString)@+ * 'Proto.Routerrpc.Router_Fields.paymentAddr' @:: Lens' BuildRouteRequest Data.ByteString.ByteString@ -}+data BuildRouteRequest+ = BuildRouteRequest'_constructor {_BuildRouteRequest'amtMsat :: !Data.Int.Int64,+ _BuildRouteRequest'finalCltvDelta :: !Data.Int.Int32,+ _BuildRouteRequest'outgoingChanId :: !Data.Word.Word64,+ _BuildRouteRequest'hopPubkeys :: !(Data.Vector.Vector Data.ByteString.ByteString),+ _BuildRouteRequest'paymentAddr :: !Data.ByteString.ByteString,+ _BuildRouteRequest'_unknownFields :: !Data.ProtoLens.FieldSet}+ deriving stock (Prelude.Eq, Prelude.Ord, GHC.Generics.Generic)+instance Prelude.Show BuildRouteRequest where+ showsPrec _ __x __s+ = Prelude.showChar+ '{'+ (Prelude.showString+ (Data.ProtoLens.showMessageShort __x) (Prelude.showChar '}' __s))+instance Text.PrettyPrint.GenericPretty.Out BuildRouteRequest+instance Data.ProtoLens.Field.HasField BuildRouteRequest "amtMsat" Data.Int.Int64 where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _BuildRouteRequest'amtMsat+ (\ x__ y__ -> x__ {_BuildRouteRequest'amtMsat = y__}))+ Prelude.id+instance Data.ProtoLens.Field.HasField BuildRouteRequest "finalCltvDelta" Data.Int.Int32 where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _BuildRouteRequest'finalCltvDelta+ (\ x__ y__ -> x__ {_BuildRouteRequest'finalCltvDelta = y__}))+ Prelude.id+instance Data.ProtoLens.Field.HasField BuildRouteRequest "outgoingChanId" Data.Word.Word64 where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _BuildRouteRequest'outgoingChanId+ (\ x__ y__ -> x__ {_BuildRouteRequest'outgoingChanId = y__}))+ Prelude.id+instance Data.ProtoLens.Field.HasField BuildRouteRequest "hopPubkeys" [Data.ByteString.ByteString] where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _BuildRouteRequest'hopPubkeys+ (\ x__ y__ -> x__ {_BuildRouteRequest'hopPubkeys = y__}))+ (Lens.Family2.Unchecked.lens+ Data.Vector.Generic.toList+ (\ _ y__ -> Data.Vector.Generic.fromList y__))+instance Data.ProtoLens.Field.HasField BuildRouteRequest "vec'hopPubkeys" (Data.Vector.Vector Data.ByteString.ByteString) where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _BuildRouteRequest'hopPubkeys+ (\ x__ y__ -> x__ {_BuildRouteRequest'hopPubkeys = y__}))+ Prelude.id+instance Data.ProtoLens.Field.HasField BuildRouteRequest "paymentAddr" Data.ByteString.ByteString where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _BuildRouteRequest'paymentAddr+ (\ x__ y__ -> x__ {_BuildRouteRequest'paymentAddr = y__}))+ Prelude.id+instance Data.ProtoLens.Message BuildRouteRequest where+ messageName _ = Data.Text.pack "routerrpc.BuildRouteRequest"+ packedMessageDescriptor _+ = "\n\+ \\DC1BuildRouteRequest\DC2\EM\n\+ \\bamt_msat\CAN\SOH \SOH(\ETXR\aamtMsat\DC2(\n\+ \\DLEfinal_cltv_delta\CAN\STX \SOH(\ENQR\SOfinalCltvDelta\DC2,\n\+ \\DLEoutgoing_chan_id\CAN\ETX \SOH(\EOTR\SOoutgoingChanIdB\STX0\SOH\DC2\US\n\+ \\vhop_pubkeys\CAN\EOT \ETX(\fR\n\+ \hopPubkeys\DC2!\n\+ \\fpayment_addr\CAN\ENQ \SOH(\fR\vpaymentAddr"+ packedFileDescriptor _ = packedFileDescriptor+ fieldsByTag+ = let+ amtMsat__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "amt_msat"+ (Data.ProtoLens.ScalarField Data.ProtoLens.Int64Field ::+ Data.ProtoLens.FieldTypeDescriptor Data.Int.Int64)+ (Data.ProtoLens.PlainField+ Data.ProtoLens.Optional (Data.ProtoLens.Field.field @"amtMsat")) ::+ Data.ProtoLens.FieldDescriptor BuildRouteRequest+ finalCltvDelta__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "final_cltv_delta"+ (Data.ProtoLens.ScalarField Data.ProtoLens.Int32Field ::+ Data.ProtoLens.FieldTypeDescriptor Data.Int.Int32)+ (Data.ProtoLens.PlainField+ Data.ProtoLens.Optional+ (Data.ProtoLens.Field.field @"finalCltvDelta")) ::+ Data.ProtoLens.FieldDescriptor BuildRouteRequest+ outgoingChanId__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "outgoing_chan_id"+ (Data.ProtoLens.ScalarField Data.ProtoLens.UInt64Field ::+ Data.ProtoLens.FieldTypeDescriptor Data.Word.Word64)+ (Data.ProtoLens.PlainField+ Data.ProtoLens.Optional+ (Data.ProtoLens.Field.field @"outgoingChanId")) ::+ Data.ProtoLens.FieldDescriptor BuildRouteRequest+ hopPubkeys__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "hop_pubkeys"+ (Data.ProtoLens.ScalarField Data.ProtoLens.BytesField ::+ Data.ProtoLens.FieldTypeDescriptor Data.ByteString.ByteString)+ (Data.ProtoLens.RepeatedField+ Data.ProtoLens.Unpacked+ (Data.ProtoLens.Field.field @"hopPubkeys")) ::+ Data.ProtoLens.FieldDescriptor BuildRouteRequest+ paymentAddr__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "payment_addr"+ (Data.ProtoLens.ScalarField Data.ProtoLens.BytesField ::+ Data.ProtoLens.FieldTypeDescriptor Data.ByteString.ByteString)+ (Data.ProtoLens.PlainField+ Data.ProtoLens.Optional+ (Data.ProtoLens.Field.field @"paymentAddr")) ::+ Data.ProtoLens.FieldDescriptor BuildRouteRequest+ in+ Data.Map.fromList+ [(Data.ProtoLens.Tag 1, amtMsat__field_descriptor),+ (Data.ProtoLens.Tag 2, finalCltvDelta__field_descriptor),+ (Data.ProtoLens.Tag 3, outgoingChanId__field_descriptor),+ (Data.ProtoLens.Tag 4, hopPubkeys__field_descriptor),+ (Data.ProtoLens.Tag 5, paymentAddr__field_descriptor)]+ unknownFields+ = Lens.Family2.Unchecked.lens+ _BuildRouteRequest'_unknownFields+ (\ x__ y__ -> x__ {_BuildRouteRequest'_unknownFields = y__})+ defMessage+ = BuildRouteRequest'_constructor+ {_BuildRouteRequest'amtMsat = Data.ProtoLens.fieldDefault,+ _BuildRouteRequest'finalCltvDelta = Data.ProtoLens.fieldDefault,+ _BuildRouteRequest'outgoingChanId = Data.ProtoLens.fieldDefault,+ _BuildRouteRequest'hopPubkeys = Data.Vector.Generic.empty,+ _BuildRouteRequest'paymentAddr = Data.ProtoLens.fieldDefault,+ _BuildRouteRequest'_unknownFields = []}+ parseMessage+ = let+ loop ::+ BuildRouteRequest+ -> Data.ProtoLens.Encoding.Growing.Growing Data.Vector.Vector Data.ProtoLens.Encoding.Growing.RealWorld Data.ByteString.ByteString+ -> Data.ProtoLens.Encoding.Bytes.Parser BuildRouteRequest+ loop x mutable'hopPubkeys+ = do end <- Data.ProtoLens.Encoding.Bytes.atEnd+ if end then+ do frozen'hopPubkeys <- Data.ProtoLens.Encoding.Parser.Unsafe.unsafeLiftIO+ (Data.ProtoLens.Encoding.Growing.unsafeFreeze+ mutable'hopPubkeys)+ (let missing = []+ in+ if Prelude.null missing then+ Prelude.return ()+ else+ Prelude.fail+ ((Prelude.++)+ "Missing required fields: "+ (Prelude.show (missing :: [Prelude.String]))))+ Prelude.return+ (Lens.Family2.over+ Data.ProtoLens.unknownFields (\ !t -> Prelude.reverse t)+ (Lens.Family2.set+ (Data.ProtoLens.Field.field @"vec'hopPubkeys") frozen'hopPubkeys+ x))+ else+ do tag <- Data.ProtoLens.Encoding.Bytes.getVarInt+ case tag of+ 8 -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (Prelude.fmap+ Prelude.fromIntegral+ Data.ProtoLens.Encoding.Bytes.getVarInt)+ "amt_msat"+ loop+ (Lens.Family2.set (Data.ProtoLens.Field.field @"amtMsat") y x)+ mutable'hopPubkeys+ 16+ -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (Prelude.fmap+ Prelude.fromIntegral+ Data.ProtoLens.Encoding.Bytes.getVarInt)+ "final_cltv_delta"+ loop+ (Lens.Family2.set+ (Data.ProtoLens.Field.field @"finalCltvDelta") y x)+ mutable'hopPubkeys+ 24+ -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ Data.ProtoLens.Encoding.Bytes.getVarInt "outgoing_chan_id"+ loop+ (Lens.Family2.set+ (Data.ProtoLens.Field.field @"outgoingChanId") y x)+ mutable'hopPubkeys+ 34+ -> do !y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (do len <- Data.ProtoLens.Encoding.Bytes.getVarInt+ Data.ProtoLens.Encoding.Bytes.getBytes+ (Prelude.fromIntegral len))+ "hop_pubkeys"+ v <- Data.ProtoLens.Encoding.Parser.Unsafe.unsafeLiftIO+ (Data.ProtoLens.Encoding.Growing.append mutable'hopPubkeys y)+ loop x v+ 42+ -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (do len <- Data.ProtoLens.Encoding.Bytes.getVarInt+ Data.ProtoLens.Encoding.Bytes.getBytes+ (Prelude.fromIntegral len))+ "payment_addr"+ loop+ (Lens.Family2.set (Data.ProtoLens.Field.field @"paymentAddr") y x)+ mutable'hopPubkeys+ wire+ -> do !y <- Data.ProtoLens.Encoding.Wire.parseTaggedValueFromWire+ wire+ loop+ (Lens.Family2.over+ Data.ProtoLens.unknownFields (\ !t -> (:) y t) x)+ mutable'hopPubkeys+ in+ (Data.ProtoLens.Encoding.Bytes.<?>)+ (do mutable'hopPubkeys <- Data.ProtoLens.Encoding.Parser.Unsafe.unsafeLiftIO+ Data.ProtoLens.Encoding.Growing.new+ loop Data.ProtoLens.defMessage mutable'hopPubkeys)+ "BuildRouteRequest"+ buildMessage+ = \ _x+ -> (Data.Monoid.<>)+ (let+ _v = Lens.Family2.view (Data.ProtoLens.Field.field @"amtMsat") _x+ in+ if (Prelude.==) _v Data.ProtoLens.fieldDefault then+ Data.Monoid.mempty+ else+ (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 8)+ ((Prelude..)+ Data.ProtoLens.Encoding.Bytes.putVarInt Prelude.fromIntegral _v))+ ((Data.Monoid.<>)+ (let+ _v+ = Lens.Family2.view+ (Data.ProtoLens.Field.field @"finalCltvDelta") _x+ in+ if (Prelude.==) _v Data.ProtoLens.fieldDefault then+ Data.Monoid.mempty+ else+ (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 16)+ ((Prelude..)+ Data.ProtoLens.Encoding.Bytes.putVarInt Prelude.fromIntegral _v))+ ((Data.Monoid.<>)+ (let+ _v+ = Lens.Family2.view+ (Data.ProtoLens.Field.field @"outgoingChanId") _x+ in+ if (Prelude.==) _v Data.ProtoLens.fieldDefault then+ Data.Monoid.mempty+ else+ (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 24)+ (Data.ProtoLens.Encoding.Bytes.putVarInt _v))+ ((Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.foldMapBuilder+ (\ _v+ -> (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 34)+ ((\ bs+ -> (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt+ (Prelude.fromIntegral (Data.ByteString.length bs)))+ (Data.ProtoLens.Encoding.Bytes.putBytes bs))+ _v))+ (Lens.Family2.view+ (Data.ProtoLens.Field.field @"vec'hopPubkeys") _x))+ ((Data.Monoid.<>)+ (let+ _v+ = Lens.Family2.view (Data.ProtoLens.Field.field @"paymentAddr") _x+ in+ if (Prelude.==) _v Data.ProtoLens.fieldDefault then+ Data.Monoid.mempty+ else+ (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 42)+ ((\ bs+ -> (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt+ (Prelude.fromIntegral (Data.ByteString.length bs)))+ (Data.ProtoLens.Encoding.Bytes.putBytes bs))+ _v))+ (Data.ProtoLens.Encoding.Wire.buildFieldSet+ (Lens.Family2.view Data.ProtoLens.unknownFields _x))))))+instance Control.DeepSeq.NFData BuildRouteRequest where+ rnf+ = \ x__+ -> Control.DeepSeq.deepseq+ (_BuildRouteRequest'_unknownFields x__)+ (Control.DeepSeq.deepseq+ (_BuildRouteRequest'amtMsat x__)+ (Control.DeepSeq.deepseq+ (_BuildRouteRequest'finalCltvDelta x__)+ (Control.DeepSeq.deepseq+ (_BuildRouteRequest'outgoingChanId x__)+ (Control.DeepSeq.deepseq+ (_BuildRouteRequest'hopPubkeys x__)+ (Control.DeepSeq.deepseq+ (_BuildRouteRequest'paymentAddr x__) ())))))+{- | Fields :+ + * 'Proto.Routerrpc.Router_Fields.route' @:: Lens' BuildRouteResponse Proto.Lnrpc.Ln0.Route@+ * 'Proto.Routerrpc.Router_Fields.maybe'route' @:: Lens' BuildRouteResponse (Prelude.Maybe Proto.Lnrpc.Ln0.Route)@ -}+data BuildRouteResponse+ = BuildRouteResponse'_constructor {_BuildRouteResponse'route :: !(Prelude.Maybe Proto.Lnrpc.Ln0.Route),+ _BuildRouteResponse'_unknownFields :: !Data.ProtoLens.FieldSet}+ deriving stock (Prelude.Eq, Prelude.Ord, GHC.Generics.Generic)+instance Prelude.Show BuildRouteResponse where+ showsPrec _ __x __s+ = Prelude.showChar+ '{'+ (Prelude.showString+ (Data.ProtoLens.showMessageShort __x) (Prelude.showChar '}' __s))+instance Text.PrettyPrint.GenericPretty.Out BuildRouteResponse+instance Data.ProtoLens.Field.HasField BuildRouteResponse "route" Proto.Lnrpc.Ln0.Route where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _BuildRouteResponse'route+ (\ x__ y__ -> x__ {_BuildRouteResponse'route = y__}))+ (Data.ProtoLens.maybeLens Data.ProtoLens.defMessage)+instance Data.ProtoLens.Field.HasField BuildRouteResponse "maybe'route" (Prelude.Maybe Proto.Lnrpc.Ln0.Route) where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _BuildRouteResponse'route+ (\ x__ y__ -> x__ {_BuildRouteResponse'route = y__}))+ Prelude.id+instance Data.ProtoLens.Message BuildRouteResponse where+ messageName _ = Data.Text.pack "routerrpc.BuildRouteResponse"+ packedMessageDescriptor _+ = "\n\+ \\DC2BuildRouteResponse\DC2\"\n\+ \\ENQroute\CAN\SOH \SOH(\v2\f.lnrpc.RouteR\ENQroute"+ packedFileDescriptor _ = packedFileDescriptor+ fieldsByTag+ = let+ route__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "route"+ (Data.ProtoLens.MessageField Data.ProtoLens.MessageType ::+ Data.ProtoLens.FieldTypeDescriptor Proto.Lnrpc.Ln0.Route)+ (Data.ProtoLens.OptionalField+ (Data.ProtoLens.Field.field @"maybe'route")) ::+ Data.ProtoLens.FieldDescriptor BuildRouteResponse+ in+ Data.Map.fromList [(Data.ProtoLens.Tag 1, route__field_descriptor)]+ unknownFields+ = Lens.Family2.Unchecked.lens+ _BuildRouteResponse'_unknownFields+ (\ x__ y__ -> x__ {_BuildRouteResponse'_unknownFields = y__})+ defMessage+ = BuildRouteResponse'_constructor+ {_BuildRouteResponse'route = Prelude.Nothing,+ _BuildRouteResponse'_unknownFields = []}+ parseMessage+ = let+ loop ::+ BuildRouteResponse+ -> Data.ProtoLens.Encoding.Bytes.Parser BuildRouteResponse+ loop x+ = do end <- Data.ProtoLens.Encoding.Bytes.atEnd+ if end then+ do (let missing = []+ in+ if Prelude.null missing then+ Prelude.return ()+ else+ Prelude.fail+ ((Prelude.++)+ "Missing required fields: "+ (Prelude.show (missing :: [Prelude.String]))))+ Prelude.return+ (Lens.Family2.over+ Data.ProtoLens.unknownFields (\ !t -> Prelude.reverse t) x)+ else+ do tag <- Data.ProtoLens.Encoding.Bytes.getVarInt+ case tag of+ 10+ -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (do len <- Data.ProtoLens.Encoding.Bytes.getVarInt+ Data.ProtoLens.Encoding.Bytes.isolate+ (Prelude.fromIntegral len) Data.ProtoLens.parseMessage)+ "route"+ loop (Lens.Family2.set (Data.ProtoLens.Field.field @"route") y x)+ wire+ -> do !y <- Data.ProtoLens.Encoding.Wire.parseTaggedValueFromWire+ wire+ loop+ (Lens.Family2.over+ Data.ProtoLens.unknownFields (\ !t -> (:) y t) x)+ in+ (Data.ProtoLens.Encoding.Bytes.<?>)+ (do loop Data.ProtoLens.defMessage) "BuildRouteResponse"+ buildMessage+ = \ _x+ -> (Data.Monoid.<>)+ (case+ Lens.Family2.view (Data.ProtoLens.Field.field @"maybe'route") _x+ of+ Prelude.Nothing -> Data.Monoid.mempty+ (Prelude.Just _v)+ -> (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 10)+ ((Prelude..)+ (\ bs+ -> (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt+ (Prelude.fromIntegral (Data.ByteString.length bs)))+ (Data.ProtoLens.Encoding.Bytes.putBytes bs))+ Data.ProtoLens.encodeMessage _v))+ (Data.ProtoLens.Encoding.Wire.buildFieldSet+ (Lens.Family2.view Data.ProtoLens.unknownFields _x))+instance Control.DeepSeq.NFData BuildRouteResponse where+ rnf+ = \ x__+ -> Control.DeepSeq.deepseq+ (_BuildRouteResponse'_unknownFields x__)+ (Control.DeepSeq.deepseq (_BuildRouteResponse'route x__) ())+newtype ChanStatusAction'UnrecognizedValue+ = ChanStatusAction'UnrecognizedValue Data.Int.Int32+ deriving stock (Prelude.Eq,+ Prelude.Ord,+ Prelude.Show,+ GHC.Generics.Generic)+instance Text.PrettyPrint.GenericPretty.Out ChanStatusAction'UnrecognizedValue+data ChanStatusAction+ = ENABLE |+ DISABLE |+ AUTO |+ ChanStatusAction'Unrecognized !ChanStatusAction'UnrecognizedValue+ deriving stock (Prelude.Show,+ Prelude.Eq,+ Prelude.Ord,+ GHC.Generics.Generic)+instance Data.ProtoLens.MessageEnum ChanStatusAction where+ maybeToEnum 0 = Prelude.Just ENABLE+ maybeToEnum 1 = Prelude.Just DISABLE+ maybeToEnum 2 = Prelude.Just AUTO+ maybeToEnum k+ = Prelude.Just+ (ChanStatusAction'Unrecognized+ (ChanStatusAction'UnrecognizedValue (Prelude.fromIntegral k)))+ showEnum ENABLE = "ENABLE"+ showEnum DISABLE = "DISABLE"+ showEnum AUTO = "AUTO"+ showEnum+ (ChanStatusAction'Unrecognized (ChanStatusAction'UnrecognizedValue k))+ = Prelude.show k+ readEnum k+ | (Prelude.==) k "ENABLE" = Prelude.Just ENABLE+ | (Prelude.==) k "DISABLE" = Prelude.Just DISABLE+ | (Prelude.==) k "AUTO" = Prelude.Just AUTO+ | Prelude.otherwise+ = (Prelude.>>=) (Text.Read.readMaybe k) Data.ProtoLens.maybeToEnum+instance Prelude.Bounded ChanStatusAction where+ minBound = ENABLE+ maxBound = AUTO+instance Prelude.Enum ChanStatusAction where+ toEnum k__+ = Prelude.maybe+ (Prelude.error+ ((Prelude.++)+ "toEnum: unknown value for enum ChanStatusAction: "+ (Prelude.show k__)))+ Prelude.id (Data.ProtoLens.maybeToEnum k__)+ fromEnum ENABLE = 0+ fromEnum DISABLE = 1+ fromEnum AUTO = 2+ fromEnum+ (ChanStatusAction'Unrecognized (ChanStatusAction'UnrecognizedValue k))+ = Prelude.fromIntegral k+ succ AUTO+ = Prelude.error+ "ChanStatusAction.succ: bad argument AUTO. This value would be out of bounds."+ succ ENABLE = DISABLE+ succ DISABLE = AUTO+ succ (ChanStatusAction'Unrecognized _)+ = Prelude.error+ "ChanStatusAction.succ: bad argument: unrecognized value"+ pred ENABLE+ = Prelude.error+ "ChanStatusAction.pred: bad argument ENABLE. This value would be out of bounds."+ pred DISABLE = ENABLE+ pred AUTO = DISABLE+ pred (ChanStatusAction'Unrecognized _)+ = Prelude.error+ "ChanStatusAction.pred: bad argument: unrecognized value"+ enumFrom = Data.ProtoLens.Message.Enum.messageEnumFrom+ enumFromTo = Data.ProtoLens.Message.Enum.messageEnumFromTo+ enumFromThen = Data.ProtoLens.Message.Enum.messageEnumFromThen+ enumFromThenTo = Data.ProtoLens.Message.Enum.messageEnumFromThenTo+instance Data.ProtoLens.FieldDefault ChanStatusAction where+ fieldDefault = ENABLE+instance Control.DeepSeq.NFData ChanStatusAction where+ rnf x__ = Prelude.seq x__ ()+instance Text.PrettyPrint.GenericPretty.Out ChanStatusAction+{- | Fields :+ + * 'Proto.Routerrpc.Router_Fields.chanId' @:: Lens' CircuitKey Data.Word.Word64@+ * 'Proto.Routerrpc.Router_Fields.htlcId' @:: Lens' CircuitKey Data.Word.Word64@ -}+data CircuitKey+ = CircuitKey'_constructor {_CircuitKey'chanId :: !Data.Word.Word64,+ _CircuitKey'htlcId :: !Data.Word.Word64,+ _CircuitKey'_unknownFields :: !Data.ProtoLens.FieldSet}+ deriving stock (Prelude.Eq, Prelude.Ord, GHC.Generics.Generic)+instance Prelude.Show CircuitKey where+ showsPrec _ __x __s+ = Prelude.showChar+ '{'+ (Prelude.showString+ (Data.ProtoLens.showMessageShort __x) (Prelude.showChar '}' __s))+instance Text.PrettyPrint.GenericPretty.Out CircuitKey+instance Data.ProtoLens.Field.HasField CircuitKey "chanId" Data.Word.Word64 where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _CircuitKey'chanId (\ x__ y__ -> x__ {_CircuitKey'chanId = y__}))+ Prelude.id+instance Data.ProtoLens.Field.HasField CircuitKey "htlcId" Data.Word.Word64 where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _CircuitKey'htlcId (\ x__ y__ -> x__ {_CircuitKey'htlcId = y__}))+ Prelude.id+instance Data.ProtoLens.Message CircuitKey where+ messageName _ = Data.Text.pack "routerrpc.CircuitKey"+ packedMessageDescriptor _+ = "\n\+ \\n\+ \CircuitKey\DC2\ETB\n\+ \\achan_id\CAN\SOH \SOH(\EOTR\ACKchanId\DC2\ETB\n\+ \\ahtlc_id\CAN\STX \SOH(\EOTR\ACKhtlcId"+ packedFileDescriptor _ = packedFileDescriptor+ fieldsByTag+ = let+ chanId__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "chan_id"+ (Data.ProtoLens.ScalarField Data.ProtoLens.UInt64Field ::+ Data.ProtoLens.FieldTypeDescriptor Data.Word.Word64)+ (Data.ProtoLens.PlainField+ Data.ProtoLens.Optional (Data.ProtoLens.Field.field @"chanId")) ::+ Data.ProtoLens.FieldDescriptor CircuitKey+ htlcId__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "htlc_id"+ (Data.ProtoLens.ScalarField Data.ProtoLens.UInt64Field ::+ Data.ProtoLens.FieldTypeDescriptor Data.Word.Word64)+ (Data.ProtoLens.PlainField+ Data.ProtoLens.Optional (Data.ProtoLens.Field.field @"htlcId")) ::+ Data.ProtoLens.FieldDescriptor CircuitKey+ in+ Data.Map.fromList+ [(Data.ProtoLens.Tag 1, chanId__field_descriptor),+ (Data.ProtoLens.Tag 2, htlcId__field_descriptor)]+ unknownFields+ = Lens.Family2.Unchecked.lens+ _CircuitKey'_unknownFields+ (\ x__ y__ -> x__ {_CircuitKey'_unknownFields = y__})+ defMessage+ = CircuitKey'_constructor+ {_CircuitKey'chanId = Data.ProtoLens.fieldDefault,+ _CircuitKey'htlcId = Data.ProtoLens.fieldDefault,+ _CircuitKey'_unknownFields = []}+ parseMessage+ = let+ loop ::+ CircuitKey -> Data.ProtoLens.Encoding.Bytes.Parser CircuitKey+ loop x+ = do end <- Data.ProtoLens.Encoding.Bytes.atEnd+ if end then+ do (let missing = []+ in+ if Prelude.null missing then+ Prelude.return ()+ else+ Prelude.fail+ ((Prelude.++)+ "Missing required fields: "+ (Prelude.show (missing :: [Prelude.String]))))+ Prelude.return+ (Lens.Family2.over+ Data.ProtoLens.unknownFields (\ !t -> Prelude.reverse t) x)+ else+ do tag <- Data.ProtoLens.Encoding.Bytes.getVarInt+ case tag of+ 8 -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ Data.ProtoLens.Encoding.Bytes.getVarInt "chan_id"+ loop (Lens.Family2.set (Data.ProtoLens.Field.field @"chanId") y x)+ 16+ -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ Data.ProtoLens.Encoding.Bytes.getVarInt "htlc_id"+ loop (Lens.Family2.set (Data.ProtoLens.Field.field @"htlcId") y x)+ wire+ -> do !y <- Data.ProtoLens.Encoding.Wire.parseTaggedValueFromWire+ wire+ loop+ (Lens.Family2.over+ Data.ProtoLens.unknownFields (\ !t -> (:) y t) x)+ in+ (Data.ProtoLens.Encoding.Bytes.<?>)+ (do loop Data.ProtoLens.defMessage) "CircuitKey"+ buildMessage+ = \ _x+ -> (Data.Monoid.<>)+ (let+ _v = Lens.Family2.view (Data.ProtoLens.Field.field @"chanId") _x+ in+ if (Prelude.==) _v Data.ProtoLens.fieldDefault then+ Data.Monoid.mempty+ else+ (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 8)+ (Data.ProtoLens.Encoding.Bytes.putVarInt _v))+ ((Data.Monoid.<>)+ (let+ _v = Lens.Family2.view (Data.ProtoLens.Field.field @"htlcId") _x+ in+ if (Prelude.==) _v Data.ProtoLens.fieldDefault then+ Data.Monoid.mempty+ else+ (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 16)+ (Data.ProtoLens.Encoding.Bytes.putVarInt _v))+ (Data.ProtoLens.Encoding.Wire.buildFieldSet+ (Lens.Family2.view Data.ProtoLens.unknownFields _x)))+instance Control.DeepSeq.NFData CircuitKey where+ rnf+ = \ x__+ -> Control.DeepSeq.deepseq+ (_CircuitKey'_unknownFields x__)+ (Control.DeepSeq.deepseq+ (_CircuitKey'chanId x__)+ (Control.DeepSeq.deepseq (_CircuitKey'htlcId x__) ()))+newtype FailureDetail'UnrecognizedValue+ = FailureDetail'UnrecognizedValue Data.Int.Int32+ deriving stock (Prelude.Eq,+ Prelude.Ord,+ Prelude.Show,+ GHC.Generics.Generic)+instance Text.PrettyPrint.GenericPretty.Out FailureDetail'UnrecognizedValue+data FailureDetail+ = UNKNOWN |+ NO_DETAIL |+ ONION_DECODE |+ LINK_NOT_ELIGIBLE |+ ON_CHAIN_TIMEOUT |+ HTLC_EXCEEDS_MAX |+ INSUFFICIENT_BALANCE |+ INCOMPLETE_FORWARD |+ HTLC_ADD_FAILED |+ FORWARDS_DISABLED |+ INVOICE_CANCELED |+ INVOICE_UNDERPAID |+ INVOICE_EXPIRY_TOO_SOON |+ INVOICE_NOT_OPEN |+ MPP_INVOICE_TIMEOUT |+ ADDRESS_MISMATCH |+ SET_TOTAL_MISMATCH |+ SET_TOTAL_TOO_LOW |+ SET_OVERPAID |+ UNKNOWN_INVOICE |+ INVALID_KEYSEND |+ MPP_IN_PROGRESS |+ CIRCULAR_ROUTE |+ FailureDetail'Unrecognized !FailureDetail'UnrecognizedValue+ deriving stock (Prelude.Show,+ Prelude.Eq,+ Prelude.Ord,+ GHC.Generics.Generic)+instance Data.ProtoLens.MessageEnum FailureDetail where+ maybeToEnum 0 = Prelude.Just UNKNOWN+ maybeToEnum 1 = Prelude.Just NO_DETAIL+ maybeToEnum 2 = Prelude.Just ONION_DECODE+ maybeToEnum 3 = Prelude.Just LINK_NOT_ELIGIBLE+ maybeToEnum 4 = Prelude.Just ON_CHAIN_TIMEOUT+ maybeToEnum 5 = Prelude.Just HTLC_EXCEEDS_MAX+ maybeToEnum 6 = Prelude.Just INSUFFICIENT_BALANCE+ maybeToEnum 7 = Prelude.Just INCOMPLETE_FORWARD+ maybeToEnum 8 = Prelude.Just HTLC_ADD_FAILED+ maybeToEnum 9 = Prelude.Just FORWARDS_DISABLED+ maybeToEnum 10 = Prelude.Just INVOICE_CANCELED+ maybeToEnum 11 = Prelude.Just INVOICE_UNDERPAID+ maybeToEnum 12 = Prelude.Just INVOICE_EXPIRY_TOO_SOON+ maybeToEnum 13 = Prelude.Just INVOICE_NOT_OPEN+ maybeToEnum 14 = Prelude.Just MPP_INVOICE_TIMEOUT+ maybeToEnum 15 = Prelude.Just ADDRESS_MISMATCH+ maybeToEnum 16 = Prelude.Just SET_TOTAL_MISMATCH+ maybeToEnum 17 = Prelude.Just SET_TOTAL_TOO_LOW+ maybeToEnum 18 = Prelude.Just SET_OVERPAID+ maybeToEnum 19 = Prelude.Just UNKNOWN_INVOICE+ maybeToEnum 20 = Prelude.Just INVALID_KEYSEND+ maybeToEnum 21 = Prelude.Just MPP_IN_PROGRESS+ maybeToEnum 22 = Prelude.Just CIRCULAR_ROUTE+ maybeToEnum k+ = Prelude.Just+ (FailureDetail'Unrecognized+ (FailureDetail'UnrecognizedValue (Prelude.fromIntegral k)))+ showEnum UNKNOWN = "UNKNOWN"+ showEnum NO_DETAIL = "NO_DETAIL"+ showEnum ONION_DECODE = "ONION_DECODE"+ showEnum LINK_NOT_ELIGIBLE = "LINK_NOT_ELIGIBLE"+ showEnum ON_CHAIN_TIMEOUT = "ON_CHAIN_TIMEOUT"+ showEnum HTLC_EXCEEDS_MAX = "HTLC_EXCEEDS_MAX"+ showEnum INSUFFICIENT_BALANCE = "INSUFFICIENT_BALANCE"+ showEnum INCOMPLETE_FORWARD = "INCOMPLETE_FORWARD"+ showEnum HTLC_ADD_FAILED = "HTLC_ADD_FAILED"+ showEnum FORWARDS_DISABLED = "FORWARDS_DISABLED"+ showEnum INVOICE_CANCELED = "INVOICE_CANCELED"+ showEnum INVOICE_UNDERPAID = "INVOICE_UNDERPAID"+ showEnum INVOICE_EXPIRY_TOO_SOON = "INVOICE_EXPIRY_TOO_SOON"+ showEnum INVOICE_NOT_OPEN = "INVOICE_NOT_OPEN"+ showEnum MPP_INVOICE_TIMEOUT = "MPP_INVOICE_TIMEOUT"+ showEnum ADDRESS_MISMATCH = "ADDRESS_MISMATCH"+ showEnum SET_TOTAL_MISMATCH = "SET_TOTAL_MISMATCH"+ showEnum SET_TOTAL_TOO_LOW = "SET_TOTAL_TOO_LOW"+ showEnum SET_OVERPAID = "SET_OVERPAID"+ showEnum UNKNOWN_INVOICE = "UNKNOWN_INVOICE"+ showEnum INVALID_KEYSEND = "INVALID_KEYSEND"+ showEnum MPP_IN_PROGRESS = "MPP_IN_PROGRESS"+ showEnum CIRCULAR_ROUTE = "CIRCULAR_ROUTE"+ showEnum+ (FailureDetail'Unrecognized (FailureDetail'UnrecognizedValue k))+ = Prelude.show k+ readEnum k+ | (Prelude.==) k "UNKNOWN" = Prelude.Just UNKNOWN+ | (Prelude.==) k "NO_DETAIL" = Prelude.Just NO_DETAIL+ | (Prelude.==) k "ONION_DECODE" = Prelude.Just ONION_DECODE+ | (Prelude.==) k "LINK_NOT_ELIGIBLE"+ = Prelude.Just LINK_NOT_ELIGIBLE+ | (Prelude.==) k "ON_CHAIN_TIMEOUT" = Prelude.Just ON_CHAIN_TIMEOUT+ | (Prelude.==) k "HTLC_EXCEEDS_MAX" = Prelude.Just HTLC_EXCEEDS_MAX+ | (Prelude.==) k "INSUFFICIENT_BALANCE"+ = Prelude.Just INSUFFICIENT_BALANCE+ | (Prelude.==) k "INCOMPLETE_FORWARD"+ = Prelude.Just INCOMPLETE_FORWARD+ | (Prelude.==) k "HTLC_ADD_FAILED" = Prelude.Just HTLC_ADD_FAILED+ | (Prelude.==) k "FORWARDS_DISABLED"+ = Prelude.Just FORWARDS_DISABLED+ | (Prelude.==) k "INVOICE_CANCELED" = Prelude.Just INVOICE_CANCELED+ | (Prelude.==) k "INVOICE_UNDERPAID"+ = Prelude.Just INVOICE_UNDERPAID+ | (Prelude.==) k "INVOICE_EXPIRY_TOO_SOON"+ = Prelude.Just INVOICE_EXPIRY_TOO_SOON+ | (Prelude.==) k "INVOICE_NOT_OPEN" = Prelude.Just INVOICE_NOT_OPEN+ | (Prelude.==) k "MPP_INVOICE_TIMEOUT"+ = Prelude.Just MPP_INVOICE_TIMEOUT+ | (Prelude.==) k "ADDRESS_MISMATCH" = Prelude.Just ADDRESS_MISMATCH+ | (Prelude.==) k "SET_TOTAL_MISMATCH"+ = Prelude.Just SET_TOTAL_MISMATCH+ | (Prelude.==) k "SET_TOTAL_TOO_LOW"+ = Prelude.Just SET_TOTAL_TOO_LOW+ | (Prelude.==) k "SET_OVERPAID" = Prelude.Just SET_OVERPAID+ | (Prelude.==) k "UNKNOWN_INVOICE" = Prelude.Just UNKNOWN_INVOICE+ | (Prelude.==) k "INVALID_KEYSEND" = Prelude.Just INVALID_KEYSEND+ | (Prelude.==) k "MPP_IN_PROGRESS" = Prelude.Just MPP_IN_PROGRESS+ | (Prelude.==) k "CIRCULAR_ROUTE" = Prelude.Just CIRCULAR_ROUTE+ | Prelude.otherwise+ = (Prelude.>>=) (Text.Read.readMaybe k) Data.ProtoLens.maybeToEnum+instance Prelude.Bounded FailureDetail where+ minBound = UNKNOWN+ maxBound = CIRCULAR_ROUTE+instance Prelude.Enum FailureDetail where+ toEnum k__+ = Prelude.maybe+ (Prelude.error+ ((Prelude.++)+ "toEnum: unknown value for enum FailureDetail: "+ (Prelude.show k__)))+ Prelude.id (Data.ProtoLens.maybeToEnum k__)+ fromEnum UNKNOWN = 0+ fromEnum NO_DETAIL = 1+ fromEnum ONION_DECODE = 2+ fromEnum LINK_NOT_ELIGIBLE = 3+ fromEnum ON_CHAIN_TIMEOUT = 4+ fromEnum HTLC_EXCEEDS_MAX = 5+ fromEnum INSUFFICIENT_BALANCE = 6+ fromEnum INCOMPLETE_FORWARD = 7+ fromEnum HTLC_ADD_FAILED = 8+ fromEnum FORWARDS_DISABLED = 9+ fromEnum INVOICE_CANCELED = 10+ fromEnum INVOICE_UNDERPAID = 11+ fromEnum INVOICE_EXPIRY_TOO_SOON = 12+ fromEnum INVOICE_NOT_OPEN = 13+ fromEnum MPP_INVOICE_TIMEOUT = 14+ fromEnum ADDRESS_MISMATCH = 15+ fromEnum SET_TOTAL_MISMATCH = 16+ fromEnum SET_TOTAL_TOO_LOW = 17+ fromEnum SET_OVERPAID = 18+ fromEnum UNKNOWN_INVOICE = 19+ fromEnum INVALID_KEYSEND = 20+ fromEnum MPP_IN_PROGRESS = 21+ fromEnum CIRCULAR_ROUTE = 22+ fromEnum+ (FailureDetail'Unrecognized (FailureDetail'UnrecognizedValue k))+ = Prelude.fromIntegral k+ succ CIRCULAR_ROUTE+ = Prelude.error+ "FailureDetail.succ: bad argument CIRCULAR_ROUTE. This value would be out of bounds."+ succ UNKNOWN = NO_DETAIL+ succ NO_DETAIL = ONION_DECODE+ succ ONION_DECODE = LINK_NOT_ELIGIBLE+ succ LINK_NOT_ELIGIBLE = ON_CHAIN_TIMEOUT+ succ ON_CHAIN_TIMEOUT = HTLC_EXCEEDS_MAX+ succ HTLC_EXCEEDS_MAX = INSUFFICIENT_BALANCE+ succ INSUFFICIENT_BALANCE = INCOMPLETE_FORWARD+ succ INCOMPLETE_FORWARD = HTLC_ADD_FAILED+ succ HTLC_ADD_FAILED = FORWARDS_DISABLED+ succ FORWARDS_DISABLED = INVOICE_CANCELED+ succ INVOICE_CANCELED = INVOICE_UNDERPAID+ succ INVOICE_UNDERPAID = INVOICE_EXPIRY_TOO_SOON+ succ INVOICE_EXPIRY_TOO_SOON = INVOICE_NOT_OPEN+ succ INVOICE_NOT_OPEN = MPP_INVOICE_TIMEOUT+ succ MPP_INVOICE_TIMEOUT = ADDRESS_MISMATCH+ succ ADDRESS_MISMATCH = SET_TOTAL_MISMATCH+ succ SET_TOTAL_MISMATCH = SET_TOTAL_TOO_LOW+ succ SET_TOTAL_TOO_LOW = SET_OVERPAID+ succ SET_OVERPAID = UNKNOWN_INVOICE+ succ UNKNOWN_INVOICE = INVALID_KEYSEND+ succ INVALID_KEYSEND = MPP_IN_PROGRESS+ succ MPP_IN_PROGRESS = CIRCULAR_ROUTE+ succ (FailureDetail'Unrecognized _)+ = Prelude.error+ "FailureDetail.succ: bad argument: unrecognized value"+ pred UNKNOWN+ = Prelude.error+ "FailureDetail.pred: bad argument UNKNOWN. This value would be out of bounds."+ pred NO_DETAIL = UNKNOWN+ pred ONION_DECODE = NO_DETAIL+ pred LINK_NOT_ELIGIBLE = ONION_DECODE+ pred ON_CHAIN_TIMEOUT = LINK_NOT_ELIGIBLE+ pred HTLC_EXCEEDS_MAX = ON_CHAIN_TIMEOUT+ pred INSUFFICIENT_BALANCE = HTLC_EXCEEDS_MAX+ pred INCOMPLETE_FORWARD = INSUFFICIENT_BALANCE+ pred HTLC_ADD_FAILED = INCOMPLETE_FORWARD+ pred FORWARDS_DISABLED = HTLC_ADD_FAILED+ pred INVOICE_CANCELED = FORWARDS_DISABLED+ pred INVOICE_UNDERPAID = INVOICE_CANCELED+ pred INVOICE_EXPIRY_TOO_SOON = INVOICE_UNDERPAID+ pred INVOICE_NOT_OPEN = INVOICE_EXPIRY_TOO_SOON+ pred MPP_INVOICE_TIMEOUT = INVOICE_NOT_OPEN+ pred ADDRESS_MISMATCH = MPP_INVOICE_TIMEOUT+ pred SET_TOTAL_MISMATCH = ADDRESS_MISMATCH+ pred SET_TOTAL_TOO_LOW = SET_TOTAL_MISMATCH+ pred SET_OVERPAID = SET_TOTAL_TOO_LOW+ pred UNKNOWN_INVOICE = SET_OVERPAID+ pred INVALID_KEYSEND = UNKNOWN_INVOICE+ pred MPP_IN_PROGRESS = INVALID_KEYSEND+ pred CIRCULAR_ROUTE = MPP_IN_PROGRESS+ pred (FailureDetail'Unrecognized _)+ = Prelude.error+ "FailureDetail.pred: bad argument: unrecognized value"+ enumFrom = Data.ProtoLens.Message.Enum.messageEnumFrom+ enumFromTo = Data.ProtoLens.Message.Enum.messageEnumFromTo+ enumFromThen = Data.ProtoLens.Message.Enum.messageEnumFromThen+ enumFromThenTo = Data.ProtoLens.Message.Enum.messageEnumFromThenTo+instance Data.ProtoLens.FieldDefault FailureDetail where+ fieldDefault = UNKNOWN+instance Control.DeepSeq.NFData FailureDetail where+ rnf x__ = Prelude.seq x__ ()+instance Text.PrettyPrint.GenericPretty.Out FailureDetail+{- | Fields :+ + * 'Proto.Routerrpc.Router_Fields.info' @:: Lens' ForwardEvent HtlcInfo@+ * 'Proto.Routerrpc.Router_Fields.maybe'info' @:: Lens' ForwardEvent (Prelude.Maybe HtlcInfo)@ -}+data ForwardEvent+ = ForwardEvent'_constructor {_ForwardEvent'info :: !(Prelude.Maybe HtlcInfo),+ _ForwardEvent'_unknownFields :: !Data.ProtoLens.FieldSet}+ deriving stock (Prelude.Eq, Prelude.Ord, GHC.Generics.Generic)+instance Prelude.Show ForwardEvent where+ showsPrec _ __x __s+ = Prelude.showChar+ '{'+ (Prelude.showString+ (Data.ProtoLens.showMessageShort __x) (Prelude.showChar '}' __s))+instance Text.PrettyPrint.GenericPretty.Out ForwardEvent+instance Data.ProtoLens.Field.HasField ForwardEvent "info" HtlcInfo where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _ForwardEvent'info (\ x__ y__ -> x__ {_ForwardEvent'info = y__}))+ (Data.ProtoLens.maybeLens Data.ProtoLens.defMessage)+instance Data.ProtoLens.Field.HasField ForwardEvent "maybe'info" (Prelude.Maybe HtlcInfo) where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _ForwardEvent'info (\ x__ y__ -> x__ {_ForwardEvent'info = y__}))+ Prelude.id+instance Data.ProtoLens.Message ForwardEvent where+ messageName _ = Data.Text.pack "routerrpc.ForwardEvent"+ packedMessageDescriptor _+ = "\n\+ \\fForwardEvent\DC2'\n\+ \\EOTinfo\CAN\SOH \SOH(\v2\DC3.routerrpc.HtlcInfoR\EOTinfo"+ packedFileDescriptor _ = packedFileDescriptor+ fieldsByTag+ = let+ info__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "info"+ (Data.ProtoLens.MessageField Data.ProtoLens.MessageType ::+ Data.ProtoLens.FieldTypeDescriptor HtlcInfo)+ (Data.ProtoLens.OptionalField+ (Data.ProtoLens.Field.field @"maybe'info")) ::+ Data.ProtoLens.FieldDescriptor ForwardEvent+ in+ Data.Map.fromList [(Data.ProtoLens.Tag 1, info__field_descriptor)]+ unknownFields+ = Lens.Family2.Unchecked.lens+ _ForwardEvent'_unknownFields+ (\ x__ y__ -> x__ {_ForwardEvent'_unknownFields = y__})+ defMessage+ = ForwardEvent'_constructor+ {_ForwardEvent'info = Prelude.Nothing,+ _ForwardEvent'_unknownFields = []}+ parseMessage+ = let+ loop ::+ ForwardEvent -> Data.ProtoLens.Encoding.Bytes.Parser ForwardEvent+ loop x+ = do end <- Data.ProtoLens.Encoding.Bytes.atEnd+ if end then+ do (let missing = []+ in+ if Prelude.null missing then+ Prelude.return ()+ else+ Prelude.fail+ ((Prelude.++)+ "Missing required fields: "+ (Prelude.show (missing :: [Prelude.String]))))+ Prelude.return+ (Lens.Family2.over+ Data.ProtoLens.unknownFields (\ !t -> Prelude.reverse t) x)+ else+ do tag <- Data.ProtoLens.Encoding.Bytes.getVarInt+ case tag of+ 10+ -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (do len <- Data.ProtoLens.Encoding.Bytes.getVarInt+ Data.ProtoLens.Encoding.Bytes.isolate+ (Prelude.fromIntegral len) Data.ProtoLens.parseMessage)+ "info"+ loop (Lens.Family2.set (Data.ProtoLens.Field.field @"info") y x)+ wire+ -> do !y <- Data.ProtoLens.Encoding.Wire.parseTaggedValueFromWire+ wire+ loop+ (Lens.Family2.over+ Data.ProtoLens.unknownFields (\ !t -> (:) y t) x)+ in+ (Data.ProtoLens.Encoding.Bytes.<?>)+ (do loop Data.ProtoLens.defMessage) "ForwardEvent"+ buildMessage+ = \ _x+ -> (Data.Monoid.<>)+ (case+ Lens.Family2.view (Data.ProtoLens.Field.field @"maybe'info") _x+ of+ Prelude.Nothing -> Data.Monoid.mempty+ (Prelude.Just _v)+ -> (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 10)+ ((Prelude..)+ (\ bs+ -> (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt+ (Prelude.fromIntegral (Data.ByteString.length bs)))+ (Data.ProtoLens.Encoding.Bytes.putBytes bs))+ Data.ProtoLens.encodeMessage _v))+ (Data.ProtoLens.Encoding.Wire.buildFieldSet+ (Lens.Family2.view Data.ProtoLens.unknownFields _x))+instance Control.DeepSeq.NFData ForwardEvent where+ rnf+ = \ x__+ -> Control.DeepSeq.deepseq+ (_ForwardEvent'_unknownFields x__)+ (Control.DeepSeq.deepseq (_ForwardEvent'info x__) ())+{- | Fields :+ -}+data ForwardFailEvent+ = ForwardFailEvent'_constructor {_ForwardFailEvent'_unknownFields :: !Data.ProtoLens.FieldSet}+ deriving stock (Prelude.Eq, Prelude.Ord, GHC.Generics.Generic)+instance Prelude.Show ForwardFailEvent where+ showsPrec _ __x __s+ = Prelude.showChar+ '{'+ (Prelude.showString+ (Data.ProtoLens.showMessageShort __x) (Prelude.showChar '}' __s))+instance Text.PrettyPrint.GenericPretty.Out ForwardFailEvent+instance Data.ProtoLens.Message ForwardFailEvent where+ messageName _ = Data.Text.pack "routerrpc.ForwardFailEvent"+ packedMessageDescriptor _+ = "\n\+ \\DLEForwardFailEvent"+ packedFileDescriptor _ = packedFileDescriptor+ fieldsByTag = let in Data.Map.fromList []+ unknownFields+ = Lens.Family2.Unchecked.lens+ _ForwardFailEvent'_unknownFields+ (\ x__ y__ -> x__ {_ForwardFailEvent'_unknownFields = y__})+ defMessage+ = ForwardFailEvent'_constructor+ {_ForwardFailEvent'_unknownFields = []}+ parseMessage+ = let+ loop ::+ ForwardFailEvent+ -> Data.ProtoLens.Encoding.Bytes.Parser ForwardFailEvent+ loop x+ = do end <- Data.ProtoLens.Encoding.Bytes.atEnd+ if end then+ do (let missing = []+ in+ if Prelude.null missing then+ Prelude.return ()+ else+ Prelude.fail+ ((Prelude.++)+ "Missing required fields: "+ (Prelude.show (missing :: [Prelude.String]))))+ Prelude.return+ (Lens.Family2.over+ Data.ProtoLens.unknownFields (\ !t -> Prelude.reverse t) x)+ else+ do tag <- Data.ProtoLens.Encoding.Bytes.getVarInt+ case tag of {+ wire+ -> do !y <- Data.ProtoLens.Encoding.Wire.parseTaggedValueFromWire+ wire+ loop+ (Lens.Family2.over+ Data.ProtoLens.unknownFields (\ !t -> (:) y t) x) }+ in+ (Data.ProtoLens.Encoding.Bytes.<?>)+ (do loop Data.ProtoLens.defMessage) "ForwardFailEvent"+ buildMessage+ = \ _x+ -> Data.ProtoLens.Encoding.Wire.buildFieldSet+ (Lens.Family2.view Data.ProtoLens.unknownFields _x)+instance Control.DeepSeq.NFData ForwardFailEvent where+ rnf+ = \ x__+ -> Control.DeepSeq.deepseq+ (_ForwardFailEvent'_unknownFields x__) ()+{- | Fields :+ + * 'Proto.Routerrpc.Router_Fields.incomingCircuitKey' @:: Lens' ForwardHtlcInterceptRequest CircuitKey@+ * 'Proto.Routerrpc.Router_Fields.maybe'incomingCircuitKey' @:: Lens' ForwardHtlcInterceptRequest (Prelude.Maybe CircuitKey)@+ * 'Proto.Routerrpc.Router_Fields.incomingAmountMsat' @:: Lens' ForwardHtlcInterceptRequest Data.Word.Word64@+ * 'Proto.Routerrpc.Router_Fields.incomingExpiry' @:: Lens' ForwardHtlcInterceptRequest Data.Word.Word32@+ * 'Proto.Routerrpc.Router_Fields.paymentHash' @:: Lens' ForwardHtlcInterceptRequest Data.ByteString.ByteString@+ * 'Proto.Routerrpc.Router_Fields.outgoingRequestedChanId' @:: Lens' ForwardHtlcInterceptRequest Data.Word.Word64@+ * 'Proto.Routerrpc.Router_Fields.outgoingAmountMsat' @:: Lens' ForwardHtlcInterceptRequest Data.Word.Word64@+ * 'Proto.Routerrpc.Router_Fields.outgoingExpiry' @:: Lens' ForwardHtlcInterceptRequest Data.Word.Word32@+ * 'Proto.Routerrpc.Router_Fields.customRecords' @:: Lens' ForwardHtlcInterceptRequest (Data.Map.Map Data.Word.Word64 Data.ByteString.ByteString)@+ * 'Proto.Routerrpc.Router_Fields.onionBlob' @:: Lens' ForwardHtlcInterceptRequest Data.ByteString.ByteString@ -}+data ForwardHtlcInterceptRequest+ = ForwardHtlcInterceptRequest'_constructor {_ForwardHtlcInterceptRequest'incomingCircuitKey :: !(Prelude.Maybe CircuitKey),+ _ForwardHtlcInterceptRequest'incomingAmountMsat :: !Data.Word.Word64,+ _ForwardHtlcInterceptRequest'incomingExpiry :: !Data.Word.Word32,+ _ForwardHtlcInterceptRequest'paymentHash :: !Data.ByteString.ByteString,+ _ForwardHtlcInterceptRequest'outgoingRequestedChanId :: !Data.Word.Word64,+ _ForwardHtlcInterceptRequest'outgoingAmountMsat :: !Data.Word.Word64,+ _ForwardHtlcInterceptRequest'outgoingExpiry :: !Data.Word.Word32,+ _ForwardHtlcInterceptRequest'customRecords :: !(Data.Map.Map Data.Word.Word64 Data.ByteString.ByteString),+ _ForwardHtlcInterceptRequest'onionBlob :: !Data.ByteString.ByteString,+ _ForwardHtlcInterceptRequest'_unknownFields :: !Data.ProtoLens.FieldSet}+ deriving stock (Prelude.Eq, Prelude.Ord, GHC.Generics.Generic)+instance Prelude.Show ForwardHtlcInterceptRequest where+ showsPrec _ __x __s+ = Prelude.showChar+ '{'+ (Prelude.showString+ (Data.ProtoLens.showMessageShort __x) (Prelude.showChar '}' __s))+instance Text.PrettyPrint.GenericPretty.Out ForwardHtlcInterceptRequest+instance Data.ProtoLens.Field.HasField ForwardHtlcInterceptRequest "incomingCircuitKey" CircuitKey where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _ForwardHtlcInterceptRequest'incomingCircuitKey+ (\ x__ y__+ -> x__ {_ForwardHtlcInterceptRequest'incomingCircuitKey = y__}))+ (Data.ProtoLens.maybeLens Data.ProtoLens.defMessage)+instance Data.ProtoLens.Field.HasField ForwardHtlcInterceptRequest "maybe'incomingCircuitKey" (Prelude.Maybe CircuitKey) where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _ForwardHtlcInterceptRequest'incomingCircuitKey+ (\ x__ y__+ -> x__ {_ForwardHtlcInterceptRequest'incomingCircuitKey = y__}))+ Prelude.id+instance Data.ProtoLens.Field.HasField ForwardHtlcInterceptRequest "incomingAmountMsat" Data.Word.Word64 where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _ForwardHtlcInterceptRequest'incomingAmountMsat+ (\ x__ y__+ -> x__ {_ForwardHtlcInterceptRequest'incomingAmountMsat = y__}))+ Prelude.id+instance Data.ProtoLens.Field.HasField ForwardHtlcInterceptRequest "incomingExpiry" Data.Word.Word32 where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _ForwardHtlcInterceptRequest'incomingExpiry+ (\ x__ y__+ -> x__ {_ForwardHtlcInterceptRequest'incomingExpiry = y__}))+ Prelude.id+instance Data.ProtoLens.Field.HasField ForwardHtlcInterceptRequest "paymentHash" Data.ByteString.ByteString where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _ForwardHtlcInterceptRequest'paymentHash+ (\ x__ y__+ -> x__ {_ForwardHtlcInterceptRequest'paymentHash = y__}))+ Prelude.id+instance Data.ProtoLens.Field.HasField ForwardHtlcInterceptRequest "outgoingRequestedChanId" Data.Word.Word64 where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _ForwardHtlcInterceptRequest'outgoingRequestedChanId+ (\ x__ y__+ -> x__+ {_ForwardHtlcInterceptRequest'outgoingRequestedChanId = y__}))+ Prelude.id+instance Data.ProtoLens.Field.HasField ForwardHtlcInterceptRequest "outgoingAmountMsat" Data.Word.Word64 where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _ForwardHtlcInterceptRequest'outgoingAmountMsat+ (\ x__ y__+ -> x__ {_ForwardHtlcInterceptRequest'outgoingAmountMsat = y__}))+ Prelude.id+instance Data.ProtoLens.Field.HasField ForwardHtlcInterceptRequest "outgoingExpiry" Data.Word.Word32 where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _ForwardHtlcInterceptRequest'outgoingExpiry+ (\ x__ y__+ -> x__ {_ForwardHtlcInterceptRequest'outgoingExpiry = y__}))+ Prelude.id+instance Data.ProtoLens.Field.HasField ForwardHtlcInterceptRequest "customRecords" (Data.Map.Map Data.Word.Word64 Data.ByteString.ByteString) where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _ForwardHtlcInterceptRequest'customRecords+ (\ x__ y__+ -> x__ {_ForwardHtlcInterceptRequest'customRecords = y__}))+ Prelude.id+instance Data.ProtoLens.Field.HasField ForwardHtlcInterceptRequest "onionBlob" Data.ByteString.ByteString where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _ForwardHtlcInterceptRequest'onionBlob+ (\ x__ y__ -> x__ {_ForwardHtlcInterceptRequest'onionBlob = y__}))+ Prelude.id+instance Data.ProtoLens.Message ForwardHtlcInterceptRequest where+ messageName _+ = Data.Text.pack "routerrpc.ForwardHtlcInterceptRequest"+ packedMessageDescriptor _+ = "\n\+ \\ESCForwardHtlcInterceptRequest\DC2G\n\+ \\DC4incoming_circuit_key\CAN\SOH \SOH(\v2\NAK.routerrpc.CircuitKeyR\DC2incomingCircuitKey\DC20\n\+ \\DC4incoming_amount_msat\CAN\ENQ \SOH(\EOTR\DC2incomingAmountMsat\DC2'\n\+ \\SIincoming_expiry\CAN\ACK \SOH(\rR\SOincomingExpiry\DC2!\n\+ \\fpayment_hash\CAN\STX \SOH(\fR\vpaymentHash\DC2;\n\+ \\SUBoutgoing_requested_chan_id\CAN\a \SOH(\EOTR\ETBoutgoingRequestedChanId\DC20\n\+ \\DC4outgoing_amount_msat\CAN\ETX \SOH(\EOTR\DC2outgoingAmountMsat\DC2'\n\+ \\SIoutgoing_expiry\CAN\EOT \SOH(\rR\SOoutgoingExpiry\DC2`\n\+ \\SOcustom_records\CAN\b \ETX(\v29.routerrpc.ForwardHtlcInterceptRequest.CustomRecordsEntryR\rcustomRecords\DC2\GS\n\+ \\n\+ \onion_blob\CAN\t \SOH(\fR\tonionBlob\SUB@\n\+ \\DC2CustomRecordsEntry\DC2\DLE\n\+ \\ETXkey\CAN\SOH \SOH(\EOTR\ETXkey\DC2\DC4\n\+ \\ENQvalue\CAN\STX \SOH(\fR\ENQvalue:\STX8\SOH"+ packedFileDescriptor _ = packedFileDescriptor+ fieldsByTag+ = let+ incomingCircuitKey__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "incoming_circuit_key"+ (Data.ProtoLens.MessageField Data.ProtoLens.MessageType ::+ Data.ProtoLens.FieldTypeDescriptor CircuitKey)+ (Data.ProtoLens.OptionalField+ (Data.ProtoLens.Field.field @"maybe'incomingCircuitKey")) ::+ Data.ProtoLens.FieldDescriptor ForwardHtlcInterceptRequest+ incomingAmountMsat__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "incoming_amount_msat"+ (Data.ProtoLens.ScalarField Data.ProtoLens.UInt64Field ::+ Data.ProtoLens.FieldTypeDescriptor Data.Word.Word64)+ (Data.ProtoLens.PlainField+ Data.ProtoLens.Optional+ (Data.ProtoLens.Field.field @"incomingAmountMsat")) ::+ Data.ProtoLens.FieldDescriptor ForwardHtlcInterceptRequest+ incomingExpiry__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "incoming_expiry"+ (Data.ProtoLens.ScalarField Data.ProtoLens.UInt32Field ::+ Data.ProtoLens.FieldTypeDescriptor Data.Word.Word32)+ (Data.ProtoLens.PlainField+ Data.ProtoLens.Optional+ (Data.ProtoLens.Field.field @"incomingExpiry")) ::+ Data.ProtoLens.FieldDescriptor ForwardHtlcInterceptRequest+ paymentHash__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "payment_hash"+ (Data.ProtoLens.ScalarField Data.ProtoLens.BytesField ::+ Data.ProtoLens.FieldTypeDescriptor Data.ByteString.ByteString)+ (Data.ProtoLens.PlainField+ Data.ProtoLens.Optional+ (Data.ProtoLens.Field.field @"paymentHash")) ::+ Data.ProtoLens.FieldDescriptor ForwardHtlcInterceptRequest+ outgoingRequestedChanId__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "outgoing_requested_chan_id"+ (Data.ProtoLens.ScalarField Data.ProtoLens.UInt64Field ::+ Data.ProtoLens.FieldTypeDescriptor Data.Word.Word64)+ (Data.ProtoLens.PlainField+ Data.ProtoLens.Optional+ (Data.ProtoLens.Field.field @"outgoingRequestedChanId")) ::+ Data.ProtoLens.FieldDescriptor ForwardHtlcInterceptRequest+ outgoingAmountMsat__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "outgoing_amount_msat"+ (Data.ProtoLens.ScalarField Data.ProtoLens.UInt64Field ::+ Data.ProtoLens.FieldTypeDescriptor Data.Word.Word64)+ (Data.ProtoLens.PlainField+ Data.ProtoLens.Optional+ (Data.ProtoLens.Field.field @"outgoingAmountMsat")) ::+ Data.ProtoLens.FieldDescriptor ForwardHtlcInterceptRequest+ outgoingExpiry__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "outgoing_expiry"+ (Data.ProtoLens.ScalarField Data.ProtoLens.UInt32Field ::+ Data.ProtoLens.FieldTypeDescriptor Data.Word.Word32)+ (Data.ProtoLens.PlainField+ Data.ProtoLens.Optional+ (Data.ProtoLens.Field.field @"outgoingExpiry")) ::+ Data.ProtoLens.FieldDescriptor ForwardHtlcInterceptRequest+ customRecords__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "custom_records"+ (Data.ProtoLens.MessageField Data.ProtoLens.MessageType ::+ Data.ProtoLens.FieldTypeDescriptor ForwardHtlcInterceptRequest'CustomRecordsEntry)+ (Data.ProtoLens.MapField+ (Data.ProtoLens.Field.field @"key")+ (Data.ProtoLens.Field.field @"value")+ (Data.ProtoLens.Field.field @"customRecords")) ::+ Data.ProtoLens.FieldDescriptor ForwardHtlcInterceptRequest+ onionBlob__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "onion_blob"+ (Data.ProtoLens.ScalarField Data.ProtoLens.BytesField ::+ Data.ProtoLens.FieldTypeDescriptor Data.ByteString.ByteString)+ (Data.ProtoLens.PlainField+ Data.ProtoLens.Optional+ (Data.ProtoLens.Field.field @"onionBlob")) ::+ Data.ProtoLens.FieldDescriptor ForwardHtlcInterceptRequest+ in+ Data.Map.fromList+ [(Data.ProtoLens.Tag 1, incomingCircuitKey__field_descriptor),+ (Data.ProtoLens.Tag 5, incomingAmountMsat__field_descriptor),+ (Data.ProtoLens.Tag 6, incomingExpiry__field_descriptor),+ (Data.ProtoLens.Tag 2, paymentHash__field_descriptor),+ (Data.ProtoLens.Tag 7, outgoingRequestedChanId__field_descriptor),+ (Data.ProtoLens.Tag 3, outgoingAmountMsat__field_descriptor),+ (Data.ProtoLens.Tag 4, outgoingExpiry__field_descriptor),+ (Data.ProtoLens.Tag 8, customRecords__field_descriptor),+ (Data.ProtoLens.Tag 9, onionBlob__field_descriptor)]+ unknownFields+ = Lens.Family2.Unchecked.lens+ _ForwardHtlcInterceptRequest'_unknownFields+ (\ x__ y__+ -> x__ {_ForwardHtlcInterceptRequest'_unknownFields = y__})+ defMessage+ = ForwardHtlcInterceptRequest'_constructor+ {_ForwardHtlcInterceptRequest'incomingCircuitKey = Prelude.Nothing,+ _ForwardHtlcInterceptRequest'incomingAmountMsat = Data.ProtoLens.fieldDefault,+ _ForwardHtlcInterceptRequest'incomingExpiry = Data.ProtoLens.fieldDefault,+ _ForwardHtlcInterceptRequest'paymentHash = Data.ProtoLens.fieldDefault,+ _ForwardHtlcInterceptRequest'outgoingRequestedChanId = Data.ProtoLens.fieldDefault,+ _ForwardHtlcInterceptRequest'outgoingAmountMsat = Data.ProtoLens.fieldDefault,+ _ForwardHtlcInterceptRequest'outgoingExpiry = Data.ProtoLens.fieldDefault,+ _ForwardHtlcInterceptRequest'customRecords = Data.Map.empty,+ _ForwardHtlcInterceptRequest'onionBlob = Data.ProtoLens.fieldDefault,+ _ForwardHtlcInterceptRequest'_unknownFields = []}+ parseMessage+ = let+ loop ::+ ForwardHtlcInterceptRequest+ -> Data.ProtoLens.Encoding.Bytes.Parser ForwardHtlcInterceptRequest+ loop x+ = do end <- Data.ProtoLens.Encoding.Bytes.atEnd+ if end then+ do (let missing = []+ in+ if Prelude.null missing then+ Prelude.return ()+ else+ Prelude.fail+ ((Prelude.++)+ "Missing required fields: "+ (Prelude.show (missing :: [Prelude.String]))))+ Prelude.return+ (Lens.Family2.over+ Data.ProtoLens.unknownFields (\ !t -> Prelude.reverse t) x)+ else+ do tag <- Data.ProtoLens.Encoding.Bytes.getVarInt+ case tag of+ 10+ -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (do len <- Data.ProtoLens.Encoding.Bytes.getVarInt+ Data.ProtoLens.Encoding.Bytes.isolate+ (Prelude.fromIntegral len) Data.ProtoLens.parseMessage)+ "incoming_circuit_key"+ loop+ (Lens.Family2.set+ (Data.ProtoLens.Field.field @"incomingCircuitKey") y x)+ 40+ -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ Data.ProtoLens.Encoding.Bytes.getVarInt+ "incoming_amount_msat"+ loop+ (Lens.Family2.set+ (Data.ProtoLens.Field.field @"incomingAmountMsat") y x)+ 48+ -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (Prelude.fmap+ Prelude.fromIntegral+ Data.ProtoLens.Encoding.Bytes.getVarInt)+ "incoming_expiry"+ loop+ (Lens.Family2.set+ (Data.ProtoLens.Field.field @"incomingExpiry") y x)+ 18+ -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (do len <- Data.ProtoLens.Encoding.Bytes.getVarInt+ Data.ProtoLens.Encoding.Bytes.getBytes+ (Prelude.fromIntegral len))+ "payment_hash"+ loop+ (Lens.Family2.set (Data.ProtoLens.Field.field @"paymentHash") y x)+ 56+ -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ Data.ProtoLens.Encoding.Bytes.getVarInt+ "outgoing_requested_chan_id"+ loop+ (Lens.Family2.set+ (Data.ProtoLens.Field.field @"outgoingRequestedChanId") y x)+ 24+ -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ Data.ProtoLens.Encoding.Bytes.getVarInt+ "outgoing_amount_msat"+ loop+ (Lens.Family2.set+ (Data.ProtoLens.Field.field @"outgoingAmountMsat") y x)+ 32+ -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (Prelude.fmap+ Prelude.fromIntegral+ Data.ProtoLens.Encoding.Bytes.getVarInt)+ "outgoing_expiry"+ loop+ (Lens.Family2.set+ (Data.ProtoLens.Field.field @"outgoingExpiry") y x)+ 66+ -> do !(entry :: ForwardHtlcInterceptRequest'CustomRecordsEntry) <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (do len <- Data.ProtoLens.Encoding.Bytes.getVarInt+ Data.ProtoLens.Encoding.Bytes.isolate+ (Prelude.fromIntegral+ len)+ Data.ProtoLens.parseMessage)+ "custom_records"+ (let+ key = Lens.Family2.view (Data.ProtoLens.Field.field @"key") entry+ value+ = Lens.Family2.view (Data.ProtoLens.Field.field @"value") entry+ in+ loop+ (Lens.Family2.over+ (Data.ProtoLens.Field.field @"customRecords")+ (\ !t -> Data.Map.insert key value t) x))+ 74+ -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (do len <- Data.ProtoLens.Encoding.Bytes.getVarInt+ Data.ProtoLens.Encoding.Bytes.getBytes+ (Prelude.fromIntegral len))+ "onion_blob"+ loop+ (Lens.Family2.set (Data.ProtoLens.Field.field @"onionBlob") y x)+ wire+ -> do !y <- Data.ProtoLens.Encoding.Wire.parseTaggedValueFromWire+ wire+ loop+ (Lens.Family2.over+ Data.ProtoLens.unknownFields (\ !t -> (:) y t) x)+ in+ (Data.ProtoLens.Encoding.Bytes.<?>)+ (do loop Data.ProtoLens.defMessage) "ForwardHtlcInterceptRequest"+ buildMessage+ = \ _x+ -> (Data.Monoid.<>)+ (case+ Lens.Family2.view+ (Data.ProtoLens.Field.field @"maybe'incomingCircuitKey") _x+ of+ Prelude.Nothing -> Data.Monoid.mempty+ (Prelude.Just _v)+ -> (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 10)+ ((Prelude..)+ (\ bs+ -> (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt+ (Prelude.fromIntegral (Data.ByteString.length bs)))+ (Data.ProtoLens.Encoding.Bytes.putBytes bs))+ Data.ProtoLens.encodeMessage _v))+ ((Data.Monoid.<>)+ (let+ _v+ = Lens.Family2.view+ (Data.ProtoLens.Field.field @"incomingAmountMsat") _x+ in+ if (Prelude.==) _v Data.ProtoLens.fieldDefault then+ Data.Monoid.mempty+ else+ (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 40)+ (Data.ProtoLens.Encoding.Bytes.putVarInt _v))+ ((Data.Monoid.<>)+ (let+ _v+ = Lens.Family2.view+ (Data.ProtoLens.Field.field @"incomingExpiry") _x+ in+ if (Prelude.==) _v Data.ProtoLens.fieldDefault then+ Data.Monoid.mempty+ else+ (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 48)+ ((Prelude..)+ Data.ProtoLens.Encoding.Bytes.putVarInt Prelude.fromIntegral _v))+ ((Data.Monoid.<>)+ (let+ _v+ = Lens.Family2.view (Data.ProtoLens.Field.field @"paymentHash") _x+ in+ if (Prelude.==) _v Data.ProtoLens.fieldDefault then+ Data.Monoid.mempty+ else+ (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 18)+ ((\ bs+ -> (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt+ (Prelude.fromIntegral (Data.ByteString.length bs)))+ (Data.ProtoLens.Encoding.Bytes.putBytes bs))+ _v))+ ((Data.Monoid.<>)+ (let+ _v+ = Lens.Family2.view+ (Data.ProtoLens.Field.field @"outgoingRequestedChanId") _x+ in+ if (Prelude.==) _v Data.ProtoLens.fieldDefault then+ Data.Monoid.mempty+ else+ (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 56)+ (Data.ProtoLens.Encoding.Bytes.putVarInt _v))+ ((Data.Monoid.<>)+ (let+ _v+ = Lens.Family2.view+ (Data.ProtoLens.Field.field @"outgoingAmountMsat") _x+ in+ if (Prelude.==) _v Data.ProtoLens.fieldDefault then+ Data.Monoid.mempty+ else+ (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 24)+ (Data.ProtoLens.Encoding.Bytes.putVarInt _v))+ ((Data.Monoid.<>)+ (let+ _v+ = Lens.Family2.view+ (Data.ProtoLens.Field.field @"outgoingExpiry") _x+ in+ if (Prelude.==) _v Data.ProtoLens.fieldDefault then+ Data.Monoid.mempty+ else+ (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 32)+ ((Prelude..)+ Data.ProtoLens.Encoding.Bytes.putVarInt+ Prelude.fromIntegral _v))+ ((Data.Monoid.<>)+ (Data.Monoid.mconcat+ (Prelude.map+ (\ _v+ -> (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 66)+ ((Prelude..)+ (\ bs+ -> (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt+ (Prelude.fromIntegral+ (Data.ByteString.length bs)))+ (Data.ProtoLens.Encoding.Bytes.putBytes+ bs))+ Data.ProtoLens.encodeMessage+ (Lens.Family2.set+ (Data.ProtoLens.Field.field @"key")+ (Prelude.fst _v)+ (Lens.Family2.set+ (Data.ProtoLens.Field.field @"value")+ (Prelude.snd _v)+ (Data.ProtoLens.defMessage ::+ ForwardHtlcInterceptRequest'CustomRecordsEntry)))))+ (Data.Map.toList+ (Lens.Family2.view+ (Data.ProtoLens.Field.field @"customRecords") _x))))+ ((Data.Monoid.<>)+ (let+ _v+ = Lens.Family2.view+ (Data.ProtoLens.Field.field @"onionBlob") _x+ in+ if (Prelude.==) _v Data.ProtoLens.fieldDefault then+ Data.Monoid.mempty+ else+ (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 74)+ ((\ bs+ -> (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt+ (Prelude.fromIntegral+ (Data.ByteString.length bs)))+ (Data.ProtoLens.Encoding.Bytes.putBytes bs))+ _v))+ (Data.ProtoLens.Encoding.Wire.buildFieldSet+ (Lens.Family2.view Data.ProtoLens.unknownFields _x))))))))))+instance Control.DeepSeq.NFData ForwardHtlcInterceptRequest where+ rnf+ = \ x__+ -> Control.DeepSeq.deepseq+ (_ForwardHtlcInterceptRequest'_unknownFields x__)+ (Control.DeepSeq.deepseq+ (_ForwardHtlcInterceptRequest'incomingCircuitKey x__)+ (Control.DeepSeq.deepseq+ (_ForwardHtlcInterceptRequest'incomingAmountMsat x__)+ (Control.DeepSeq.deepseq+ (_ForwardHtlcInterceptRequest'incomingExpiry x__)+ (Control.DeepSeq.deepseq+ (_ForwardHtlcInterceptRequest'paymentHash x__)+ (Control.DeepSeq.deepseq+ (_ForwardHtlcInterceptRequest'outgoingRequestedChanId x__)+ (Control.DeepSeq.deepseq+ (_ForwardHtlcInterceptRequest'outgoingAmountMsat x__)+ (Control.DeepSeq.deepseq+ (_ForwardHtlcInterceptRequest'outgoingExpiry x__)+ (Control.DeepSeq.deepseq+ (_ForwardHtlcInterceptRequest'customRecords x__)+ (Control.DeepSeq.deepseq+ (_ForwardHtlcInterceptRequest'onionBlob x__) ())))))))))+{- | Fields :+ + * 'Proto.Routerrpc.Router_Fields.key' @:: Lens' ForwardHtlcInterceptRequest'CustomRecordsEntry Data.Word.Word64@+ * 'Proto.Routerrpc.Router_Fields.value' @:: Lens' ForwardHtlcInterceptRequest'CustomRecordsEntry Data.ByteString.ByteString@ -}+data ForwardHtlcInterceptRequest'CustomRecordsEntry+ = ForwardHtlcInterceptRequest'CustomRecordsEntry'_constructor {_ForwardHtlcInterceptRequest'CustomRecordsEntry'key :: !Data.Word.Word64,+ _ForwardHtlcInterceptRequest'CustomRecordsEntry'value :: !Data.ByteString.ByteString,+ _ForwardHtlcInterceptRequest'CustomRecordsEntry'_unknownFields :: !Data.ProtoLens.FieldSet}+ deriving stock (Prelude.Eq, Prelude.Ord, GHC.Generics.Generic)+instance Prelude.Show ForwardHtlcInterceptRequest'CustomRecordsEntry where+ showsPrec _ __x __s+ = Prelude.showChar+ '{'+ (Prelude.showString+ (Data.ProtoLens.showMessageShort __x) (Prelude.showChar '}' __s))+instance Text.PrettyPrint.GenericPretty.Out ForwardHtlcInterceptRequest'CustomRecordsEntry+instance Data.ProtoLens.Field.HasField ForwardHtlcInterceptRequest'CustomRecordsEntry "key" Data.Word.Word64 where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _ForwardHtlcInterceptRequest'CustomRecordsEntry'key+ (\ x__ y__+ -> x__+ {_ForwardHtlcInterceptRequest'CustomRecordsEntry'key = y__}))+ Prelude.id+instance Data.ProtoLens.Field.HasField ForwardHtlcInterceptRequest'CustomRecordsEntry "value" Data.ByteString.ByteString where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _ForwardHtlcInterceptRequest'CustomRecordsEntry'value+ (\ x__ y__+ -> x__+ {_ForwardHtlcInterceptRequest'CustomRecordsEntry'value = y__}))+ Prelude.id+instance Data.ProtoLens.Message ForwardHtlcInterceptRequest'CustomRecordsEntry where+ messageName _+ = Data.Text.pack+ "routerrpc.ForwardHtlcInterceptRequest.CustomRecordsEntry"+ packedMessageDescriptor _+ = "\n\+ \\DC2CustomRecordsEntry\DC2\DLE\n\+ \\ETXkey\CAN\SOH \SOH(\EOTR\ETXkey\DC2\DC4\n\+ \\ENQvalue\CAN\STX \SOH(\fR\ENQvalue:\STX8\SOH"+ packedFileDescriptor _ = packedFileDescriptor+ fieldsByTag+ = let+ key__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "key"+ (Data.ProtoLens.ScalarField Data.ProtoLens.UInt64Field ::+ Data.ProtoLens.FieldTypeDescriptor Data.Word.Word64)+ (Data.ProtoLens.PlainField+ Data.ProtoLens.Optional (Data.ProtoLens.Field.field @"key")) ::+ Data.ProtoLens.FieldDescriptor ForwardHtlcInterceptRequest'CustomRecordsEntry+ value__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "value"+ (Data.ProtoLens.ScalarField Data.ProtoLens.BytesField ::+ Data.ProtoLens.FieldTypeDescriptor Data.ByteString.ByteString)+ (Data.ProtoLens.PlainField+ Data.ProtoLens.Optional (Data.ProtoLens.Field.field @"value")) ::+ Data.ProtoLens.FieldDescriptor ForwardHtlcInterceptRequest'CustomRecordsEntry+ in+ Data.Map.fromList+ [(Data.ProtoLens.Tag 1, key__field_descriptor),+ (Data.ProtoLens.Tag 2, value__field_descriptor)]+ unknownFields+ = Lens.Family2.Unchecked.lens+ _ForwardHtlcInterceptRequest'CustomRecordsEntry'_unknownFields+ (\ x__ y__+ -> x__+ {_ForwardHtlcInterceptRequest'CustomRecordsEntry'_unknownFields = y__})+ defMessage+ = ForwardHtlcInterceptRequest'CustomRecordsEntry'_constructor+ {_ForwardHtlcInterceptRequest'CustomRecordsEntry'key = Data.ProtoLens.fieldDefault,+ _ForwardHtlcInterceptRequest'CustomRecordsEntry'value = Data.ProtoLens.fieldDefault,+ _ForwardHtlcInterceptRequest'CustomRecordsEntry'_unknownFields = []}+ parseMessage+ = let+ loop ::+ ForwardHtlcInterceptRequest'CustomRecordsEntry+ -> Data.ProtoLens.Encoding.Bytes.Parser ForwardHtlcInterceptRequest'CustomRecordsEntry+ loop x+ = do end <- Data.ProtoLens.Encoding.Bytes.atEnd+ if end then+ do (let missing = []+ in+ if Prelude.null missing then+ Prelude.return ()+ else+ Prelude.fail+ ((Prelude.++)+ "Missing required fields: "+ (Prelude.show (missing :: [Prelude.String]))))+ Prelude.return+ (Lens.Family2.over+ Data.ProtoLens.unknownFields (\ !t -> Prelude.reverse t) x)+ else+ do tag <- Data.ProtoLens.Encoding.Bytes.getVarInt+ case tag of+ 8 -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ Data.ProtoLens.Encoding.Bytes.getVarInt "key"+ loop (Lens.Family2.set (Data.ProtoLens.Field.field @"key") y x)+ 18+ -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (do len <- Data.ProtoLens.Encoding.Bytes.getVarInt+ Data.ProtoLens.Encoding.Bytes.getBytes+ (Prelude.fromIntegral len))+ "value"+ loop (Lens.Family2.set (Data.ProtoLens.Field.field @"value") y x)+ wire+ -> do !y <- Data.ProtoLens.Encoding.Wire.parseTaggedValueFromWire+ wire+ loop+ (Lens.Family2.over+ Data.ProtoLens.unknownFields (\ !t -> (:) y t) x)+ in+ (Data.ProtoLens.Encoding.Bytes.<?>)+ (do loop Data.ProtoLens.defMessage) "CustomRecordsEntry"+ buildMessage+ = \ _x+ -> (Data.Monoid.<>)+ (let _v = Lens.Family2.view (Data.ProtoLens.Field.field @"key") _x+ in+ if (Prelude.==) _v Data.ProtoLens.fieldDefault then+ Data.Monoid.mempty+ else+ (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 8)+ (Data.ProtoLens.Encoding.Bytes.putVarInt _v))+ ((Data.Monoid.<>)+ (let+ _v = Lens.Family2.view (Data.ProtoLens.Field.field @"value") _x+ in+ if (Prelude.==) _v Data.ProtoLens.fieldDefault then+ Data.Monoid.mempty+ else+ (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 18)+ ((\ bs+ -> (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt+ (Prelude.fromIntegral (Data.ByteString.length bs)))+ (Data.ProtoLens.Encoding.Bytes.putBytes bs))+ _v))+ (Data.ProtoLens.Encoding.Wire.buildFieldSet+ (Lens.Family2.view Data.ProtoLens.unknownFields _x)))+instance Control.DeepSeq.NFData ForwardHtlcInterceptRequest'CustomRecordsEntry where+ rnf+ = \ x__+ -> Control.DeepSeq.deepseq+ (_ForwardHtlcInterceptRequest'CustomRecordsEntry'_unknownFields+ x__)+ (Control.DeepSeq.deepseq+ (_ForwardHtlcInterceptRequest'CustomRecordsEntry'key x__)+ (Control.DeepSeq.deepseq+ (_ForwardHtlcInterceptRequest'CustomRecordsEntry'value x__) ()))+{- | Fields :+ + * 'Proto.Routerrpc.Router_Fields.incomingCircuitKey' @:: Lens' ForwardHtlcInterceptResponse CircuitKey@+ * 'Proto.Routerrpc.Router_Fields.maybe'incomingCircuitKey' @:: Lens' ForwardHtlcInterceptResponse (Prelude.Maybe CircuitKey)@+ * 'Proto.Routerrpc.Router_Fields.action' @:: Lens' ForwardHtlcInterceptResponse ResolveHoldForwardAction@+ * 'Proto.Routerrpc.Router_Fields.preimage' @:: Lens' ForwardHtlcInterceptResponse Data.ByteString.ByteString@ -}+data ForwardHtlcInterceptResponse+ = ForwardHtlcInterceptResponse'_constructor {_ForwardHtlcInterceptResponse'incomingCircuitKey :: !(Prelude.Maybe CircuitKey),+ _ForwardHtlcInterceptResponse'action :: !ResolveHoldForwardAction,+ _ForwardHtlcInterceptResponse'preimage :: !Data.ByteString.ByteString,+ _ForwardHtlcInterceptResponse'_unknownFields :: !Data.ProtoLens.FieldSet}+ deriving stock (Prelude.Eq, Prelude.Ord, GHC.Generics.Generic)+instance Prelude.Show ForwardHtlcInterceptResponse where+ showsPrec _ __x __s+ = Prelude.showChar+ '{'+ (Prelude.showString+ (Data.ProtoLens.showMessageShort __x) (Prelude.showChar '}' __s))+instance Text.PrettyPrint.GenericPretty.Out ForwardHtlcInterceptResponse+instance Data.ProtoLens.Field.HasField ForwardHtlcInterceptResponse "incomingCircuitKey" CircuitKey where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _ForwardHtlcInterceptResponse'incomingCircuitKey+ (\ x__ y__+ -> x__ {_ForwardHtlcInterceptResponse'incomingCircuitKey = y__}))+ (Data.ProtoLens.maybeLens Data.ProtoLens.defMessage)+instance Data.ProtoLens.Field.HasField ForwardHtlcInterceptResponse "maybe'incomingCircuitKey" (Prelude.Maybe CircuitKey) where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _ForwardHtlcInterceptResponse'incomingCircuitKey+ (\ x__ y__+ -> x__ {_ForwardHtlcInterceptResponse'incomingCircuitKey = y__}))+ Prelude.id+instance Data.ProtoLens.Field.HasField ForwardHtlcInterceptResponse "action" ResolveHoldForwardAction where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _ForwardHtlcInterceptResponse'action+ (\ x__ y__ -> x__ {_ForwardHtlcInterceptResponse'action = y__}))+ Prelude.id+instance Data.ProtoLens.Field.HasField ForwardHtlcInterceptResponse "preimage" Data.ByteString.ByteString where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _ForwardHtlcInterceptResponse'preimage+ (\ x__ y__ -> x__ {_ForwardHtlcInterceptResponse'preimage = y__}))+ Prelude.id+instance Data.ProtoLens.Message ForwardHtlcInterceptResponse where+ messageName _+ = Data.Text.pack "routerrpc.ForwardHtlcInterceptResponse"+ packedMessageDescriptor _+ = "\n\+ \\FSForwardHtlcInterceptResponse\DC2G\n\+ \\DC4incoming_circuit_key\CAN\SOH \SOH(\v2\NAK.routerrpc.CircuitKeyR\DC2incomingCircuitKey\DC2;\n\+ \\ACKaction\CAN\STX \SOH(\SO2#.routerrpc.ResolveHoldForwardActionR\ACKaction\DC2\SUB\n\+ \\bpreimage\CAN\ETX \SOH(\fR\bpreimage"+ packedFileDescriptor _ = packedFileDescriptor+ fieldsByTag+ = let+ incomingCircuitKey__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "incoming_circuit_key"+ (Data.ProtoLens.MessageField Data.ProtoLens.MessageType ::+ Data.ProtoLens.FieldTypeDescriptor CircuitKey)+ (Data.ProtoLens.OptionalField+ (Data.ProtoLens.Field.field @"maybe'incomingCircuitKey")) ::+ Data.ProtoLens.FieldDescriptor ForwardHtlcInterceptResponse+ action__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "action"+ (Data.ProtoLens.ScalarField Data.ProtoLens.EnumField ::+ Data.ProtoLens.FieldTypeDescriptor ResolveHoldForwardAction)+ (Data.ProtoLens.PlainField+ Data.ProtoLens.Optional (Data.ProtoLens.Field.field @"action")) ::+ Data.ProtoLens.FieldDescriptor ForwardHtlcInterceptResponse+ preimage__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "preimage"+ (Data.ProtoLens.ScalarField Data.ProtoLens.BytesField ::+ Data.ProtoLens.FieldTypeDescriptor Data.ByteString.ByteString)+ (Data.ProtoLens.PlainField+ Data.ProtoLens.Optional+ (Data.ProtoLens.Field.field @"preimage")) ::+ Data.ProtoLens.FieldDescriptor ForwardHtlcInterceptResponse+ in+ Data.Map.fromList+ [(Data.ProtoLens.Tag 1, incomingCircuitKey__field_descriptor),+ (Data.ProtoLens.Tag 2, action__field_descriptor),+ (Data.ProtoLens.Tag 3, preimage__field_descriptor)]+ unknownFields+ = Lens.Family2.Unchecked.lens+ _ForwardHtlcInterceptResponse'_unknownFields+ (\ x__ y__+ -> x__ {_ForwardHtlcInterceptResponse'_unknownFields = y__})+ defMessage+ = ForwardHtlcInterceptResponse'_constructor+ {_ForwardHtlcInterceptResponse'incomingCircuitKey = Prelude.Nothing,+ _ForwardHtlcInterceptResponse'action = Data.ProtoLens.fieldDefault,+ _ForwardHtlcInterceptResponse'preimage = Data.ProtoLens.fieldDefault,+ _ForwardHtlcInterceptResponse'_unknownFields = []}+ parseMessage+ = let+ loop ::+ ForwardHtlcInterceptResponse+ -> Data.ProtoLens.Encoding.Bytes.Parser ForwardHtlcInterceptResponse+ loop x+ = do end <- Data.ProtoLens.Encoding.Bytes.atEnd+ if end then+ do (let missing = []+ in+ if Prelude.null missing then+ Prelude.return ()+ else+ Prelude.fail+ ((Prelude.++)+ "Missing required fields: "+ (Prelude.show (missing :: [Prelude.String]))))+ Prelude.return+ (Lens.Family2.over+ Data.ProtoLens.unknownFields (\ !t -> Prelude.reverse t) x)+ else+ do tag <- Data.ProtoLens.Encoding.Bytes.getVarInt+ case tag of+ 10+ -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (do len <- Data.ProtoLens.Encoding.Bytes.getVarInt+ Data.ProtoLens.Encoding.Bytes.isolate+ (Prelude.fromIntegral len) Data.ProtoLens.parseMessage)+ "incoming_circuit_key"+ loop+ (Lens.Family2.set+ (Data.ProtoLens.Field.field @"incomingCircuitKey") y x)+ 16+ -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (Prelude.fmap+ Prelude.toEnum+ (Prelude.fmap+ Prelude.fromIntegral+ Data.ProtoLens.Encoding.Bytes.getVarInt))+ "action"+ loop (Lens.Family2.set (Data.ProtoLens.Field.field @"action") y x)+ 26+ -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (do len <- Data.ProtoLens.Encoding.Bytes.getVarInt+ Data.ProtoLens.Encoding.Bytes.getBytes+ (Prelude.fromIntegral len))+ "preimage"+ loop+ (Lens.Family2.set (Data.ProtoLens.Field.field @"preimage") y x)+ wire+ -> do !y <- Data.ProtoLens.Encoding.Wire.parseTaggedValueFromWire+ wire+ loop+ (Lens.Family2.over+ Data.ProtoLens.unknownFields (\ !t -> (:) y t) x)+ in+ (Data.ProtoLens.Encoding.Bytes.<?>)+ (do loop Data.ProtoLens.defMessage) "ForwardHtlcInterceptResponse"+ buildMessage+ = \ _x+ -> (Data.Monoid.<>)+ (case+ Lens.Family2.view+ (Data.ProtoLens.Field.field @"maybe'incomingCircuitKey") _x+ of+ Prelude.Nothing -> Data.Monoid.mempty+ (Prelude.Just _v)+ -> (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 10)+ ((Prelude..)+ (\ bs+ -> (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt+ (Prelude.fromIntegral (Data.ByteString.length bs)))+ (Data.ProtoLens.Encoding.Bytes.putBytes bs))+ Data.ProtoLens.encodeMessage _v))+ ((Data.Monoid.<>)+ (let+ _v = Lens.Family2.view (Data.ProtoLens.Field.field @"action") _x+ in+ if (Prelude.==) _v Data.ProtoLens.fieldDefault then+ Data.Monoid.mempty+ else+ (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 16)+ ((Prelude..)+ ((Prelude..)+ Data.ProtoLens.Encoding.Bytes.putVarInt Prelude.fromIntegral)+ Prelude.fromEnum _v))+ ((Data.Monoid.<>)+ (let+ _v = Lens.Family2.view (Data.ProtoLens.Field.field @"preimage") _x+ in+ if (Prelude.==) _v Data.ProtoLens.fieldDefault then+ Data.Monoid.mempty+ else+ (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 26)+ ((\ bs+ -> (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt+ (Prelude.fromIntegral (Data.ByteString.length bs)))+ (Data.ProtoLens.Encoding.Bytes.putBytes bs))+ _v))+ (Data.ProtoLens.Encoding.Wire.buildFieldSet+ (Lens.Family2.view Data.ProtoLens.unknownFields _x))))+instance Control.DeepSeq.NFData ForwardHtlcInterceptResponse where+ rnf+ = \ x__+ -> Control.DeepSeq.deepseq+ (_ForwardHtlcInterceptResponse'_unknownFields x__)+ (Control.DeepSeq.deepseq+ (_ForwardHtlcInterceptResponse'incomingCircuitKey x__)+ (Control.DeepSeq.deepseq+ (_ForwardHtlcInterceptResponse'action x__)+ (Control.DeepSeq.deepseq+ (_ForwardHtlcInterceptResponse'preimage x__) ())))+{- | Fields :+ -}+data GetMissionControlConfigRequest+ = GetMissionControlConfigRequest'_constructor {_GetMissionControlConfigRequest'_unknownFields :: !Data.ProtoLens.FieldSet}+ deriving stock (Prelude.Eq, Prelude.Ord, GHC.Generics.Generic)+instance Prelude.Show GetMissionControlConfigRequest where+ showsPrec _ __x __s+ = Prelude.showChar+ '{'+ (Prelude.showString+ (Data.ProtoLens.showMessageShort __x) (Prelude.showChar '}' __s))+instance Text.PrettyPrint.GenericPretty.Out GetMissionControlConfigRequest+instance Data.ProtoLens.Message GetMissionControlConfigRequest where+ messageName _+ = Data.Text.pack "routerrpc.GetMissionControlConfigRequest"+ packedMessageDescriptor _+ = "\n\+ \\RSGetMissionControlConfigRequest"+ packedFileDescriptor _ = packedFileDescriptor+ fieldsByTag = let in Data.Map.fromList []+ unknownFields+ = Lens.Family2.Unchecked.lens+ _GetMissionControlConfigRequest'_unknownFields+ (\ x__ y__+ -> x__ {_GetMissionControlConfigRequest'_unknownFields = y__})+ defMessage+ = GetMissionControlConfigRequest'_constructor+ {_GetMissionControlConfigRequest'_unknownFields = []}+ parseMessage+ = let+ loop ::+ GetMissionControlConfigRequest+ -> Data.ProtoLens.Encoding.Bytes.Parser GetMissionControlConfigRequest+ loop x+ = do end <- Data.ProtoLens.Encoding.Bytes.atEnd+ if end then+ do (let missing = []+ in+ if Prelude.null missing then+ Prelude.return ()+ else+ Prelude.fail+ ((Prelude.++)+ "Missing required fields: "+ (Prelude.show (missing :: [Prelude.String]))))+ Prelude.return+ (Lens.Family2.over+ Data.ProtoLens.unknownFields (\ !t -> Prelude.reverse t) x)+ else+ do tag <- Data.ProtoLens.Encoding.Bytes.getVarInt+ case tag of {+ wire+ -> do !y <- Data.ProtoLens.Encoding.Wire.parseTaggedValueFromWire+ wire+ loop+ (Lens.Family2.over+ Data.ProtoLens.unknownFields (\ !t -> (:) y t) x) }+ in+ (Data.ProtoLens.Encoding.Bytes.<?>)+ (do loop Data.ProtoLens.defMessage)+ "GetMissionControlConfigRequest"+ buildMessage+ = \ _x+ -> Data.ProtoLens.Encoding.Wire.buildFieldSet+ (Lens.Family2.view Data.ProtoLens.unknownFields _x)+instance Control.DeepSeq.NFData GetMissionControlConfigRequest where+ rnf+ = \ x__+ -> Control.DeepSeq.deepseq+ (_GetMissionControlConfigRequest'_unknownFields x__) ()+{- | Fields :+ + * 'Proto.Routerrpc.Router_Fields.config' @:: Lens' GetMissionControlConfigResponse MissionControlConfig@+ * 'Proto.Routerrpc.Router_Fields.maybe'config' @:: Lens' GetMissionControlConfigResponse (Prelude.Maybe MissionControlConfig)@ -}+data GetMissionControlConfigResponse+ = GetMissionControlConfigResponse'_constructor {_GetMissionControlConfigResponse'config :: !(Prelude.Maybe MissionControlConfig),+ _GetMissionControlConfigResponse'_unknownFields :: !Data.ProtoLens.FieldSet}+ deriving stock (Prelude.Eq, Prelude.Ord, GHC.Generics.Generic)+instance Prelude.Show GetMissionControlConfigResponse where+ showsPrec _ __x __s+ = Prelude.showChar+ '{'+ (Prelude.showString+ (Data.ProtoLens.showMessageShort __x) (Prelude.showChar '}' __s))+instance Text.PrettyPrint.GenericPretty.Out GetMissionControlConfigResponse+instance Data.ProtoLens.Field.HasField GetMissionControlConfigResponse "config" MissionControlConfig where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _GetMissionControlConfigResponse'config+ (\ x__ y__ -> x__ {_GetMissionControlConfigResponse'config = y__}))+ (Data.ProtoLens.maybeLens Data.ProtoLens.defMessage)+instance Data.ProtoLens.Field.HasField GetMissionControlConfigResponse "maybe'config" (Prelude.Maybe MissionControlConfig) where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _GetMissionControlConfigResponse'config+ (\ x__ y__ -> x__ {_GetMissionControlConfigResponse'config = y__}))+ Prelude.id+instance Data.ProtoLens.Message GetMissionControlConfigResponse where+ messageName _+ = Data.Text.pack "routerrpc.GetMissionControlConfigResponse"+ packedMessageDescriptor _+ = "\n\+ \\USGetMissionControlConfigResponse\DC27\n\+ \\ACKconfig\CAN\SOH \SOH(\v2\US.routerrpc.MissionControlConfigR\ACKconfig"+ packedFileDescriptor _ = packedFileDescriptor+ fieldsByTag+ = let+ config__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "config"+ (Data.ProtoLens.MessageField Data.ProtoLens.MessageType ::+ Data.ProtoLens.FieldTypeDescriptor MissionControlConfig)+ (Data.ProtoLens.OptionalField+ (Data.ProtoLens.Field.field @"maybe'config")) ::+ Data.ProtoLens.FieldDescriptor GetMissionControlConfigResponse+ in+ Data.Map.fromList+ [(Data.ProtoLens.Tag 1, config__field_descriptor)]+ unknownFields+ = Lens.Family2.Unchecked.lens+ _GetMissionControlConfigResponse'_unknownFields+ (\ x__ y__+ -> x__ {_GetMissionControlConfigResponse'_unknownFields = y__})+ defMessage+ = GetMissionControlConfigResponse'_constructor+ {_GetMissionControlConfigResponse'config = Prelude.Nothing,+ _GetMissionControlConfigResponse'_unknownFields = []}+ parseMessage+ = let+ loop ::+ GetMissionControlConfigResponse+ -> Data.ProtoLens.Encoding.Bytes.Parser GetMissionControlConfigResponse+ loop x+ = do end <- Data.ProtoLens.Encoding.Bytes.atEnd+ if end then+ do (let missing = []+ in+ if Prelude.null missing then+ Prelude.return ()+ else+ Prelude.fail+ ((Prelude.++)+ "Missing required fields: "+ (Prelude.show (missing :: [Prelude.String]))))+ Prelude.return+ (Lens.Family2.over+ Data.ProtoLens.unknownFields (\ !t -> Prelude.reverse t) x)+ else+ do tag <- Data.ProtoLens.Encoding.Bytes.getVarInt+ case tag of+ 10+ -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (do len <- Data.ProtoLens.Encoding.Bytes.getVarInt+ Data.ProtoLens.Encoding.Bytes.isolate+ (Prelude.fromIntegral len) Data.ProtoLens.parseMessage)+ "config"+ loop (Lens.Family2.set (Data.ProtoLens.Field.field @"config") y x)+ wire+ -> do !y <- Data.ProtoLens.Encoding.Wire.parseTaggedValueFromWire+ wire+ loop+ (Lens.Family2.over+ Data.ProtoLens.unknownFields (\ !t -> (:) y t) x)+ in+ (Data.ProtoLens.Encoding.Bytes.<?>)+ (do loop Data.ProtoLens.defMessage)+ "GetMissionControlConfigResponse"+ buildMessage+ = \ _x+ -> (Data.Monoid.<>)+ (case+ Lens.Family2.view (Data.ProtoLens.Field.field @"maybe'config") _x+ of+ Prelude.Nothing -> Data.Monoid.mempty+ (Prelude.Just _v)+ -> (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 10)+ ((Prelude..)+ (\ bs+ -> (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt+ (Prelude.fromIntegral (Data.ByteString.length bs)))+ (Data.ProtoLens.Encoding.Bytes.putBytes bs))+ Data.ProtoLens.encodeMessage _v))+ (Data.ProtoLens.Encoding.Wire.buildFieldSet+ (Lens.Family2.view Data.ProtoLens.unknownFields _x))+instance Control.DeepSeq.NFData GetMissionControlConfigResponse where+ rnf+ = \ x__+ -> Control.DeepSeq.deepseq+ (_GetMissionControlConfigResponse'_unknownFields x__)+ (Control.DeepSeq.deepseq+ (_GetMissionControlConfigResponse'config x__) ())+{- | Fields :+ + * 'Proto.Routerrpc.Router_Fields.incomingChannelId' @:: Lens' HtlcEvent Data.Word.Word64@+ * 'Proto.Routerrpc.Router_Fields.outgoingChannelId' @:: Lens' HtlcEvent Data.Word.Word64@+ * 'Proto.Routerrpc.Router_Fields.incomingHtlcId' @:: Lens' HtlcEvent Data.Word.Word64@+ * 'Proto.Routerrpc.Router_Fields.outgoingHtlcId' @:: Lens' HtlcEvent Data.Word.Word64@+ * 'Proto.Routerrpc.Router_Fields.timestampNs' @:: Lens' HtlcEvent Data.Word.Word64@+ * 'Proto.Routerrpc.Router_Fields.eventType' @:: Lens' HtlcEvent HtlcEvent'EventType@+ * 'Proto.Routerrpc.Router_Fields.maybe'event' @:: Lens' HtlcEvent (Prelude.Maybe HtlcEvent'Event)@+ * 'Proto.Routerrpc.Router_Fields.maybe'forwardEvent' @:: Lens' HtlcEvent (Prelude.Maybe ForwardEvent)@+ * 'Proto.Routerrpc.Router_Fields.forwardEvent' @:: Lens' HtlcEvent ForwardEvent@+ * 'Proto.Routerrpc.Router_Fields.maybe'forwardFailEvent' @:: Lens' HtlcEvent (Prelude.Maybe ForwardFailEvent)@+ * 'Proto.Routerrpc.Router_Fields.forwardFailEvent' @:: Lens' HtlcEvent ForwardFailEvent@+ * 'Proto.Routerrpc.Router_Fields.maybe'settleEvent' @:: Lens' HtlcEvent (Prelude.Maybe SettleEvent)@+ * 'Proto.Routerrpc.Router_Fields.settleEvent' @:: Lens' HtlcEvent SettleEvent@+ * 'Proto.Routerrpc.Router_Fields.maybe'linkFailEvent' @:: Lens' HtlcEvent (Prelude.Maybe LinkFailEvent)@+ * 'Proto.Routerrpc.Router_Fields.linkFailEvent' @:: Lens' HtlcEvent LinkFailEvent@ -}+data HtlcEvent+ = HtlcEvent'_constructor {_HtlcEvent'incomingChannelId :: !Data.Word.Word64,+ _HtlcEvent'outgoingChannelId :: !Data.Word.Word64,+ _HtlcEvent'incomingHtlcId :: !Data.Word.Word64,+ _HtlcEvent'outgoingHtlcId :: !Data.Word.Word64,+ _HtlcEvent'timestampNs :: !Data.Word.Word64,+ _HtlcEvent'eventType :: !HtlcEvent'EventType,+ _HtlcEvent'event :: !(Prelude.Maybe HtlcEvent'Event),+ _HtlcEvent'_unknownFields :: !Data.ProtoLens.FieldSet}+ deriving stock (Prelude.Eq, Prelude.Ord, GHC.Generics.Generic)+instance Prelude.Show HtlcEvent where+ showsPrec _ __x __s+ = Prelude.showChar+ '{'+ (Prelude.showString+ (Data.ProtoLens.showMessageShort __x) (Prelude.showChar '}' __s))+instance Text.PrettyPrint.GenericPretty.Out HtlcEvent+data HtlcEvent'Event+ = HtlcEvent'ForwardEvent !ForwardEvent |+ HtlcEvent'ForwardFailEvent !ForwardFailEvent |+ HtlcEvent'SettleEvent !SettleEvent |+ HtlcEvent'LinkFailEvent !LinkFailEvent+ deriving stock (Prelude.Show,+ Prelude.Eq,+ Prelude.Ord,+ GHC.Generics.Generic)+instance Text.PrettyPrint.GenericPretty.Out HtlcEvent'Event+instance Data.ProtoLens.Field.HasField HtlcEvent "incomingChannelId" Data.Word.Word64 where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _HtlcEvent'incomingChannelId+ (\ x__ y__ -> x__ {_HtlcEvent'incomingChannelId = y__}))+ Prelude.id+instance Data.ProtoLens.Field.HasField HtlcEvent "outgoingChannelId" Data.Word.Word64 where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _HtlcEvent'outgoingChannelId+ (\ x__ y__ -> x__ {_HtlcEvent'outgoingChannelId = y__}))+ Prelude.id+instance Data.ProtoLens.Field.HasField HtlcEvent "incomingHtlcId" Data.Word.Word64 where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _HtlcEvent'incomingHtlcId+ (\ x__ y__ -> x__ {_HtlcEvent'incomingHtlcId = y__}))+ Prelude.id+instance Data.ProtoLens.Field.HasField HtlcEvent "outgoingHtlcId" Data.Word.Word64 where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _HtlcEvent'outgoingHtlcId+ (\ x__ y__ -> x__ {_HtlcEvent'outgoingHtlcId = y__}))+ Prelude.id+instance Data.ProtoLens.Field.HasField HtlcEvent "timestampNs" Data.Word.Word64 where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _HtlcEvent'timestampNs+ (\ x__ y__ -> x__ {_HtlcEvent'timestampNs = y__}))+ Prelude.id+instance Data.ProtoLens.Field.HasField HtlcEvent "eventType" HtlcEvent'EventType where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _HtlcEvent'eventType+ (\ x__ y__ -> x__ {_HtlcEvent'eventType = y__}))+ Prelude.id+instance Data.ProtoLens.Field.HasField HtlcEvent "maybe'event" (Prelude.Maybe HtlcEvent'Event) where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _HtlcEvent'event (\ x__ y__ -> x__ {_HtlcEvent'event = y__}))+ Prelude.id+instance Data.ProtoLens.Field.HasField HtlcEvent "maybe'forwardEvent" (Prelude.Maybe ForwardEvent) where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _HtlcEvent'event (\ x__ y__ -> x__ {_HtlcEvent'event = y__}))+ (Lens.Family2.Unchecked.lens+ (\ x__+ -> case x__ of+ (Prelude.Just (HtlcEvent'ForwardEvent x__val))+ -> Prelude.Just x__val+ _otherwise -> Prelude.Nothing)+ (\ _ y__ -> Prelude.fmap HtlcEvent'ForwardEvent y__))+instance Data.ProtoLens.Field.HasField HtlcEvent "forwardEvent" ForwardEvent where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _HtlcEvent'event (\ x__ y__ -> x__ {_HtlcEvent'event = y__}))+ ((Prelude..)+ (Lens.Family2.Unchecked.lens+ (\ x__+ -> case x__ of+ (Prelude.Just (HtlcEvent'ForwardEvent x__val))+ -> Prelude.Just x__val+ _otherwise -> Prelude.Nothing)+ (\ _ y__ -> Prelude.fmap HtlcEvent'ForwardEvent y__))+ (Data.ProtoLens.maybeLens Data.ProtoLens.defMessage))+instance Data.ProtoLens.Field.HasField HtlcEvent "maybe'forwardFailEvent" (Prelude.Maybe ForwardFailEvent) where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _HtlcEvent'event (\ x__ y__ -> x__ {_HtlcEvent'event = y__}))+ (Lens.Family2.Unchecked.lens+ (\ x__+ -> case x__ of+ (Prelude.Just (HtlcEvent'ForwardFailEvent x__val))+ -> Prelude.Just x__val+ _otherwise -> Prelude.Nothing)+ (\ _ y__ -> Prelude.fmap HtlcEvent'ForwardFailEvent y__))+instance Data.ProtoLens.Field.HasField HtlcEvent "forwardFailEvent" ForwardFailEvent where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _HtlcEvent'event (\ x__ y__ -> x__ {_HtlcEvent'event = y__}))+ ((Prelude..)+ (Lens.Family2.Unchecked.lens+ (\ x__+ -> case x__ of+ (Prelude.Just (HtlcEvent'ForwardFailEvent x__val))+ -> Prelude.Just x__val+ _otherwise -> Prelude.Nothing)+ (\ _ y__ -> Prelude.fmap HtlcEvent'ForwardFailEvent y__))+ (Data.ProtoLens.maybeLens Data.ProtoLens.defMessage))+instance Data.ProtoLens.Field.HasField HtlcEvent "maybe'settleEvent" (Prelude.Maybe SettleEvent) where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _HtlcEvent'event (\ x__ y__ -> x__ {_HtlcEvent'event = y__}))+ (Lens.Family2.Unchecked.lens+ (\ x__+ -> case x__ of+ (Prelude.Just (HtlcEvent'SettleEvent x__val))+ -> Prelude.Just x__val+ _otherwise -> Prelude.Nothing)+ (\ _ y__ -> Prelude.fmap HtlcEvent'SettleEvent y__))+instance Data.ProtoLens.Field.HasField HtlcEvent "settleEvent" SettleEvent where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _HtlcEvent'event (\ x__ y__ -> x__ {_HtlcEvent'event = y__}))+ ((Prelude..)+ (Lens.Family2.Unchecked.lens+ (\ x__+ -> case x__ of+ (Prelude.Just (HtlcEvent'SettleEvent x__val))+ -> Prelude.Just x__val+ _otherwise -> Prelude.Nothing)+ (\ _ y__ -> Prelude.fmap HtlcEvent'SettleEvent y__))+ (Data.ProtoLens.maybeLens Data.ProtoLens.defMessage))+instance Data.ProtoLens.Field.HasField HtlcEvent "maybe'linkFailEvent" (Prelude.Maybe LinkFailEvent) where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _HtlcEvent'event (\ x__ y__ -> x__ {_HtlcEvent'event = y__}))+ (Lens.Family2.Unchecked.lens+ (\ x__+ -> case x__ of+ (Prelude.Just (HtlcEvent'LinkFailEvent x__val))+ -> Prelude.Just x__val+ _otherwise -> Prelude.Nothing)+ (\ _ y__ -> Prelude.fmap HtlcEvent'LinkFailEvent y__))+instance Data.ProtoLens.Field.HasField HtlcEvent "linkFailEvent" LinkFailEvent where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _HtlcEvent'event (\ x__ y__ -> x__ {_HtlcEvent'event = y__}))+ ((Prelude..)+ (Lens.Family2.Unchecked.lens+ (\ x__+ -> case x__ of+ (Prelude.Just (HtlcEvent'LinkFailEvent x__val))+ -> Prelude.Just x__val+ _otherwise -> Prelude.Nothing)+ (\ _ y__ -> Prelude.fmap HtlcEvent'LinkFailEvent y__))+ (Data.ProtoLens.maybeLens Data.ProtoLens.defMessage))+instance Data.ProtoLens.Message HtlcEvent where+ messageName _ = Data.Text.pack "routerrpc.HtlcEvent"+ packedMessageDescriptor _+ = "\n\+ \\tHtlcEvent\DC2.\n\+ \\DC3incoming_channel_id\CAN\SOH \SOH(\EOTR\DC1incomingChannelId\DC2.\n\+ \\DC3outgoing_channel_id\CAN\STX \SOH(\EOTR\DC1outgoingChannelId\DC2(\n\+ \\DLEincoming_htlc_id\CAN\ETX \SOH(\EOTR\SOincomingHtlcId\DC2(\n\+ \\DLEoutgoing_htlc_id\CAN\EOT \SOH(\EOTR\SOoutgoingHtlcId\DC2!\n\+ \\ftimestamp_ns\CAN\ENQ \SOH(\EOTR\vtimestampNs\DC2=\n\+ \\n\+ \event_type\CAN\ACK \SOH(\SO2\RS.routerrpc.HtlcEvent.EventTypeR\teventType\DC2>\n\+ \\rforward_event\CAN\a \SOH(\v2\ETB.routerrpc.ForwardEventH\NULR\fforwardEvent\DC2K\n\+ \\DC2forward_fail_event\CAN\b \SOH(\v2\ESC.routerrpc.ForwardFailEventH\NULR\DLEforwardFailEvent\DC2;\n\+ \\fsettle_event\CAN\t \SOH(\v2\SYN.routerrpc.SettleEventH\NULR\vsettleEvent\DC2B\n\+ \\SIlink_fail_event\CAN\n\+ \ \SOH(\v2\CAN.routerrpc.LinkFailEventH\NULR\rlinkFailEvent\"<\n\+ \\tEventType\DC2\v\n\+ \\aUNKNOWN\DLE\NUL\DC2\b\n\+ \\EOTSEND\DLE\SOH\DC2\v\n\+ \\aRECEIVE\DLE\STX\DC2\v\n\+ \\aFORWARD\DLE\ETXB\a\n\+ \\ENQevent"+ packedFileDescriptor _ = packedFileDescriptor+ fieldsByTag+ = let+ incomingChannelId__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "incoming_channel_id"+ (Data.ProtoLens.ScalarField Data.ProtoLens.UInt64Field ::+ Data.ProtoLens.FieldTypeDescriptor Data.Word.Word64)+ (Data.ProtoLens.PlainField+ Data.ProtoLens.Optional+ (Data.ProtoLens.Field.field @"incomingChannelId")) ::+ Data.ProtoLens.FieldDescriptor HtlcEvent+ outgoingChannelId__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "outgoing_channel_id"+ (Data.ProtoLens.ScalarField Data.ProtoLens.UInt64Field ::+ Data.ProtoLens.FieldTypeDescriptor Data.Word.Word64)+ (Data.ProtoLens.PlainField+ Data.ProtoLens.Optional+ (Data.ProtoLens.Field.field @"outgoingChannelId")) ::+ Data.ProtoLens.FieldDescriptor HtlcEvent+ incomingHtlcId__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "incoming_htlc_id"+ (Data.ProtoLens.ScalarField Data.ProtoLens.UInt64Field ::+ Data.ProtoLens.FieldTypeDescriptor Data.Word.Word64)+ (Data.ProtoLens.PlainField+ Data.ProtoLens.Optional+ (Data.ProtoLens.Field.field @"incomingHtlcId")) ::+ Data.ProtoLens.FieldDescriptor HtlcEvent+ outgoingHtlcId__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "outgoing_htlc_id"+ (Data.ProtoLens.ScalarField Data.ProtoLens.UInt64Field ::+ Data.ProtoLens.FieldTypeDescriptor Data.Word.Word64)+ (Data.ProtoLens.PlainField+ Data.ProtoLens.Optional+ (Data.ProtoLens.Field.field @"outgoingHtlcId")) ::+ Data.ProtoLens.FieldDescriptor HtlcEvent+ timestampNs__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "timestamp_ns"+ (Data.ProtoLens.ScalarField Data.ProtoLens.UInt64Field ::+ Data.ProtoLens.FieldTypeDescriptor Data.Word.Word64)+ (Data.ProtoLens.PlainField+ Data.ProtoLens.Optional+ (Data.ProtoLens.Field.field @"timestampNs")) ::+ Data.ProtoLens.FieldDescriptor HtlcEvent+ eventType__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "event_type"+ (Data.ProtoLens.ScalarField Data.ProtoLens.EnumField ::+ Data.ProtoLens.FieldTypeDescriptor HtlcEvent'EventType)+ (Data.ProtoLens.PlainField+ Data.ProtoLens.Optional+ (Data.ProtoLens.Field.field @"eventType")) ::+ Data.ProtoLens.FieldDescriptor HtlcEvent+ forwardEvent__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "forward_event"+ (Data.ProtoLens.MessageField Data.ProtoLens.MessageType ::+ Data.ProtoLens.FieldTypeDescriptor ForwardEvent)+ (Data.ProtoLens.OptionalField+ (Data.ProtoLens.Field.field @"maybe'forwardEvent")) ::+ Data.ProtoLens.FieldDescriptor HtlcEvent+ forwardFailEvent__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "forward_fail_event"+ (Data.ProtoLens.MessageField Data.ProtoLens.MessageType ::+ Data.ProtoLens.FieldTypeDescriptor ForwardFailEvent)+ (Data.ProtoLens.OptionalField+ (Data.ProtoLens.Field.field @"maybe'forwardFailEvent")) ::+ Data.ProtoLens.FieldDescriptor HtlcEvent+ settleEvent__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "settle_event"+ (Data.ProtoLens.MessageField Data.ProtoLens.MessageType ::+ Data.ProtoLens.FieldTypeDescriptor SettleEvent)+ (Data.ProtoLens.OptionalField+ (Data.ProtoLens.Field.field @"maybe'settleEvent")) ::+ Data.ProtoLens.FieldDescriptor HtlcEvent+ linkFailEvent__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "link_fail_event"+ (Data.ProtoLens.MessageField Data.ProtoLens.MessageType ::+ Data.ProtoLens.FieldTypeDescriptor LinkFailEvent)+ (Data.ProtoLens.OptionalField+ (Data.ProtoLens.Field.field @"maybe'linkFailEvent")) ::+ Data.ProtoLens.FieldDescriptor HtlcEvent+ in+ Data.Map.fromList+ [(Data.ProtoLens.Tag 1, incomingChannelId__field_descriptor),+ (Data.ProtoLens.Tag 2, outgoingChannelId__field_descriptor),+ (Data.ProtoLens.Tag 3, incomingHtlcId__field_descriptor),+ (Data.ProtoLens.Tag 4, outgoingHtlcId__field_descriptor),+ (Data.ProtoLens.Tag 5, timestampNs__field_descriptor),+ (Data.ProtoLens.Tag 6, eventType__field_descriptor),+ (Data.ProtoLens.Tag 7, forwardEvent__field_descriptor),+ (Data.ProtoLens.Tag 8, forwardFailEvent__field_descriptor),+ (Data.ProtoLens.Tag 9, settleEvent__field_descriptor),+ (Data.ProtoLens.Tag 10, linkFailEvent__field_descriptor)]+ unknownFields+ = Lens.Family2.Unchecked.lens+ _HtlcEvent'_unknownFields+ (\ x__ y__ -> x__ {_HtlcEvent'_unknownFields = y__})+ defMessage+ = HtlcEvent'_constructor+ {_HtlcEvent'incomingChannelId = Data.ProtoLens.fieldDefault,+ _HtlcEvent'outgoingChannelId = Data.ProtoLens.fieldDefault,+ _HtlcEvent'incomingHtlcId = Data.ProtoLens.fieldDefault,+ _HtlcEvent'outgoingHtlcId = Data.ProtoLens.fieldDefault,+ _HtlcEvent'timestampNs = Data.ProtoLens.fieldDefault,+ _HtlcEvent'eventType = Data.ProtoLens.fieldDefault,+ _HtlcEvent'event = Prelude.Nothing, _HtlcEvent'_unknownFields = []}+ parseMessage+ = let+ loop :: HtlcEvent -> Data.ProtoLens.Encoding.Bytes.Parser HtlcEvent+ loop x+ = do end <- Data.ProtoLens.Encoding.Bytes.atEnd+ if end then+ do (let missing = []+ in+ if Prelude.null missing then+ Prelude.return ()+ else+ Prelude.fail+ ((Prelude.++)+ "Missing required fields: "+ (Prelude.show (missing :: [Prelude.String]))))+ Prelude.return+ (Lens.Family2.over+ Data.ProtoLens.unknownFields (\ !t -> Prelude.reverse t) x)+ else+ do tag <- Data.ProtoLens.Encoding.Bytes.getVarInt+ case tag of+ 8 -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ Data.ProtoLens.Encoding.Bytes.getVarInt "incoming_channel_id"+ loop+ (Lens.Family2.set+ (Data.ProtoLens.Field.field @"incomingChannelId") y x)+ 16+ -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ Data.ProtoLens.Encoding.Bytes.getVarInt "outgoing_channel_id"+ loop+ (Lens.Family2.set+ (Data.ProtoLens.Field.field @"outgoingChannelId") y x)+ 24+ -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ Data.ProtoLens.Encoding.Bytes.getVarInt "incoming_htlc_id"+ loop+ (Lens.Family2.set+ (Data.ProtoLens.Field.field @"incomingHtlcId") y x)+ 32+ -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ Data.ProtoLens.Encoding.Bytes.getVarInt "outgoing_htlc_id"+ loop+ (Lens.Family2.set+ (Data.ProtoLens.Field.field @"outgoingHtlcId") y x)+ 40+ -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ Data.ProtoLens.Encoding.Bytes.getVarInt "timestamp_ns"+ loop+ (Lens.Family2.set (Data.ProtoLens.Field.field @"timestampNs") y x)+ 48+ -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (Prelude.fmap+ Prelude.toEnum+ (Prelude.fmap+ Prelude.fromIntegral+ Data.ProtoLens.Encoding.Bytes.getVarInt))+ "event_type"+ loop+ (Lens.Family2.set (Data.ProtoLens.Field.field @"eventType") y x)+ 58+ -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (do len <- Data.ProtoLens.Encoding.Bytes.getVarInt+ Data.ProtoLens.Encoding.Bytes.isolate+ (Prelude.fromIntegral len) Data.ProtoLens.parseMessage)+ "forward_event"+ loop+ (Lens.Family2.set+ (Data.ProtoLens.Field.field @"forwardEvent") y x)+ 66+ -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (do len <- Data.ProtoLens.Encoding.Bytes.getVarInt+ Data.ProtoLens.Encoding.Bytes.isolate+ (Prelude.fromIntegral len) Data.ProtoLens.parseMessage)+ "forward_fail_event"+ loop+ (Lens.Family2.set+ (Data.ProtoLens.Field.field @"forwardFailEvent") y x)+ 74+ -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (do len <- Data.ProtoLens.Encoding.Bytes.getVarInt+ Data.ProtoLens.Encoding.Bytes.isolate+ (Prelude.fromIntegral len) Data.ProtoLens.parseMessage)+ "settle_event"+ loop+ (Lens.Family2.set (Data.ProtoLens.Field.field @"settleEvent") y x)+ 82+ -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (do len <- Data.ProtoLens.Encoding.Bytes.getVarInt+ Data.ProtoLens.Encoding.Bytes.isolate+ (Prelude.fromIntegral len) Data.ProtoLens.parseMessage)+ "link_fail_event"+ loop+ (Lens.Family2.set+ (Data.ProtoLens.Field.field @"linkFailEvent") y x)+ wire+ -> do !y <- Data.ProtoLens.Encoding.Wire.parseTaggedValueFromWire+ wire+ loop+ (Lens.Family2.over+ Data.ProtoLens.unknownFields (\ !t -> (:) y t) x)+ in+ (Data.ProtoLens.Encoding.Bytes.<?>)+ (do loop Data.ProtoLens.defMessage) "HtlcEvent"+ buildMessage+ = \ _x+ -> (Data.Monoid.<>)+ (let+ _v+ = Lens.Family2.view+ (Data.ProtoLens.Field.field @"incomingChannelId") _x+ in+ if (Prelude.==) _v Data.ProtoLens.fieldDefault then+ Data.Monoid.mempty+ else+ (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 8)+ (Data.ProtoLens.Encoding.Bytes.putVarInt _v))+ ((Data.Monoid.<>)+ (let+ _v+ = Lens.Family2.view+ (Data.ProtoLens.Field.field @"outgoingChannelId") _x+ in+ if (Prelude.==) _v Data.ProtoLens.fieldDefault then+ Data.Monoid.mempty+ else+ (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 16)+ (Data.ProtoLens.Encoding.Bytes.putVarInt _v))+ ((Data.Monoid.<>)+ (let+ _v+ = Lens.Family2.view+ (Data.ProtoLens.Field.field @"incomingHtlcId") _x+ in+ if (Prelude.==) _v Data.ProtoLens.fieldDefault then+ Data.Monoid.mempty+ else+ (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 24)+ (Data.ProtoLens.Encoding.Bytes.putVarInt _v))+ ((Data.Monoid.<>)+ (let+ _v+ = Lens.Family2.view+ (Data.ProtoLens.Field.field @"outgoingHtlcId") _x+ in+ if (Prelude.==) _v Data.ProtoLens.fieldDefault then+ Data.Monoid.mempty+ else+ (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 32)+ (Data.ProtoLens.Encoding.Bytes.putVarInt _v))+ ((Data.Monoid.<>)+ (let+ _v+ = Lens.Family2.view (Data.ProtoLens.Field.field @"timestampNs") _x+ in+ if (Prelude.==) _v Data.ProtoLens.fieldDefault then+ Data.Monoid.mempty+ else+ (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 40)+ (Data.ProtoLens.Encoding.Bytes.putVarInt _v))+ ((Data.Monoid.<>)+ (let+ _v = Lens.Family2.view (Data.ProtoLens.Field.field @"eventType") _x+ in+ if (Prelude.==) _v Data.ProtoLens.fieldDefault then+ Data.Monoid.mempty+ else+ (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 48)+ ((Prelude..)+ ((Prelude..)+ Data.ProtoLens.Encoding.Bytes.putVarInt+ Prelude.fromIntegral)+ Prelude.fromEnum _v))+ ((Data.Monoid.<>)+ (case+ Lens.Family2.view (Data.ProtoLens.Field.field @"maybe'event") _x+ of+ Prelude.Nothing -> Data.Monoid.mempty+ (Prelude.Just (HtlcEvent'ForwardEvent v))+ -> (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 58)+ ((Prelude..)+ (\ bs+ -> (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt+ (Prelude.fromIntegral+ (Data.ByteString.length bs)))+ (Data.ProtoLens.Encoding.Bytes.putBytes bs))+ Data.ProtoLens.encodeMessage v)+ (Prelude.Just (HtlcEvent'ForwardFailEvent v))+ -> (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 66)+ ((Prelude..)+ (\ bs+ -> (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt+ (Prelude.fromIntegral+ (Data.ByteString.length bs)))+ (Data.ProtoLens.Encoding.Bytes.putBytes bs))+ Data.ProtoLens.encodeMessage v)+ (Prelude.Just (HtlcEvent'SettleEvent v))+ -> (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 74)+ ((Prelude..)+ (\ bs+ -> (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt+ (Prelude.fromIntegral+ (Data.ByteString.length bs)))+ (Data.ProtoLens.Encoding.Bytes.putBytes bs))+ Data.ProtoLens.encodeMessage v)+ (Prelude.Just (HtlcEvent'LinkFailEvent v))+ -> (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 82)+ ((Prelude..)+ (\ bs+ -> (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt+ (Prelude.fromIntegral+ (Data.ByteString.length bs)))+ (Data.ProtoLens.Encoding.Bytes.putBytes bs))+ Data.ProtoLens.encodeMessage v))+ (Data.ProtoLens.Encoding.Wire.buildFieldSet+ (Lens.Family2.view Data.ProtoLens.unknownFields _x))))))))+instance Control.DeepSeq.NFData HtlcEvent where+ rnf+ = \ x__+ -> Control.DeepSeq.deepseq+ (_HtlcEvent'_unknownFields x__)+ (Control.DeepSeq.deepseq+ (_HtlcEvent'incomingChannelId x__)+ (Control.DeepSeq.deepseq+ (_HtlcEvent'outgoingChannelId x__)+ (Control.DeepSeq.deepseq+ (_HtlcEvent'incomingHtlcId x__)+ (Control.DeepSeq.deepseq+ (_HtlcEvent'outgoingHtlcId x__)+ (Control.DeepSeq.deepseq+ (_HtlcEvent'timestampNs x__)+ (Control.DeepSeq.deepseq+ (_HtlcEvent'eventType x__)+ (Control.DeepSeq.deepseq (_HtlcEvent'event x__) ())))))))+instance Control.DeepSeq.NFData HtlcEvent'Event where+ rnf (HtlcEvent'ForwardEvent x__) = Control.DeepSeq.rnf x__+ rnf (HtlcEvent'ForwardFailEvent x__) = Control.DeepSeq.rnf x__+ rnf (HtlcEvent'SettleEvent x__) = Control.DeepSeq.rnf x__+ rnf (HtlcEvent'LinkFailEvent x__) = Control.DeepSeq.rnf x__+_HtlcEvent'ForwardEvent ::+ Data.ProtoLens.Prism.Prism' HtlcEvent'Event ForwardEvent+_HtlcEvent'ForwardEvent+ = Data.ProtoLens.Prism.prism'+ HtlcEvent'ForwardEvent+ (\ p__+ -> case p__ of+ (HtlcEvent'ForwardEvent p__val) -> Prelude.Just p__val+ _otherwise -> Prelude.Nothing)+_HtlcEvent'ForwardFailEvent ::+ Data.ProtoLens.Prism.Prism' HtlcEvent'Event ForwardFailEvent+_HtlcEvent'ForwardFailEvent+ = Data.ProtoLens.Prism.prism'+ HtlcEvent'ForwardFailEvent+ (\ p__+ -> case p__ of+ (HtlcEvent'ForwardFailEvent p__val) -> Prelude.Just p__val+ _otherwise -> Prelude.Nothing)+_HtlcEvent'SettleEvent ::+ Data.ProtoLens.Prism.Prism' HtlcEvent'Event SettleEvent+_HtlcEvent'SettleEvent+ = Data.ProtoLens.Prism.prism'+ HtlcEvent'SettleEvent+ (\ p__+ -> case p__ of+ (HtlcEvent'SettleEvent p__val) -> Prelude.Just p__val+ _otherwise -> Prelude.Nothing)+_HtlcEvent'LinkFailEvent ::+ Data.ProtoLens.Prism.Prism' HtlcEvent'Event LinkFailEvent+_HtlcEvent'LinkFailEvent+ = Data.ProtoLens.Prism.prism'+ HtlcEvent'LinkFailEvent+ (\ p__+ -> case p__ of+ (HtlcEvent'LinkFailEvent p__val) -> Prelude.Just p__val+ _otherwise -> Prelude.Nothing)+newtype HtlcEvent'EventType'UnrecognizedValue+ = HtlcEvent'EventType'UnrecognizedValue Data.Int.Int32+ deriving stock (Prelude.Eq,+ Prelude.Ord,+ Prelude.Show,+ GHC.Generics.Generic)+instance Text.PrettyPrint.GenericPretty.Out HtlcEvent'EventType'UnrecognizedValue+data HtlcEvent'EventType+ = HtlcEvent'UNKNOWN |+ HtlcEvent'SEND |+ HtlcEvent'RECEIVE |+ HtlcEvent'FORWARD |+ HtlcEvent'EventType'Unrecognized !HtlcEvent'EventType'UnrecognizedValue+ deriving stock (Prelude.Show,+ Prelude.Eq,+ Prelude.Ord,+ GHC.Generics.Generic)+instance Data.ProtoLens.MessageEnum HtlcEvent'EventType where+ maybeToEnum 0 = Prelude.Just HtlcEvent'UNKNOWN+ maybeToEnum 1 = Prelude.Just HtlcEvent'SEND+ maybeToEnum 2 = Prelude.Just HtlcEvent'RECEIVE+ maybeToEnum 3 = Prelude.Just HtlcEvent'FORWARD+ maybeToEnum k+ = Prelude.Just+ (HtlcEvent'EventType'Unrecognized+ (HtlcEvent'EventType'UnrecognizedValue (Prelude.fromIntegral k)))+ showEnum HtlcEvent'UNKNOWN = "UNKNOWN"+ showEnum HtlcEvent'SEND = "SEND"+ showEnum HtlcEvent'RECEIVE = "RECEIVE"+ showEnum HtlcEvent'FORWARD = "FORWARD"+ showEnum+ (HtlcEvent'EventType'Unrecognized (HtlcEvent'EventType'UnrecognizedValue k))+ = Prelude.show k+ readEnum k+ | (Prelude.==) k "UNKNOWN" = Prelude.Just HtlcEvent'UNKNOWN+ | (Prelude.==) k "SEND" = Prelude.Just HtlcEvent'SEND+ | (Prelude.==) k "RECEIVE" = Prelude.Just HtlcEvent'RECEIVE+ | (Prelude.==) k "FORWARD" = Prelude.Just HtlcEvent'FORWARD+ | Prelude.otherwise+ = (Prelude.>>=) (Text.Read.readMaybe k) Data.ProtoLens.maybeToEnum+instance Prelude.Bounded HtlcEvent'EventType where+ minBound = HtlcEvent'UNKNOWN+ maxBound = HtlcEvent'FORWARD+instance Prelude.Enum HtlcEvent'EventType where+ toEnum k__+ = Prelude.maybe+ (Prelude.error+ ((Prelude.++)+ "toEnum: unknown value for enum EventType: " (Prelude.show k__)))+ Prelude.id (Data.ProtoLens.maybeToEnum k__)+ fromEnum HtlcEvent'UNKNOWN = 0+ fromEnum HtlcEvent'SEND = 1+ fromEnum HtlcEvent'RECEIVE = 2+ fromEnum HtlcEvent'FORWARD = 3+ fromEnum+ (HtlcEvent'EventType'Unrecognized (HtlcEvent'EventType'UnrecognizedValue k))+ = Prelude.fromIntegral k+ succ HtlcEvent'FORWARD+ = Prelude.error+ "HtlcEvent'EventType.succ: bad argument HtlcEvent'FORWARD. This value would be out of bounds."+ succ HtlcEvent'UNKNOWN = HtlcEvent'SEND+ succ HtlcEvent'SEND = HtlcEvent'RECEIVE+ succ HtlcEvent'RECEIVE = HtlcEvent'FORWARD+ succ (HtlcEvent'EventType'Unrecognized _)+ = Prelude.error+ "HtlcEvent'EventType.succ: bad argument: unrecognized value"+ pred HtlcEvent'UNKNOWN+ = Prelude.error+ "HtlcEvent'EventType.pred: bad argument HtlcEvent'UNKNOWN. This value would be out of bounds."+ pred HtlcEvent'SEND = HtlcEvent'UNKNOWN+ pred HtlcEvent'RECEIVE = HtlcEvent'SEND+ pred HtlcEvent'FORWARD = HtlcEvent'RECEIVE+ pred (HtlcEvent'EventType'Unrecognized _)+ = Prelude.error+ "HtlcEvent'EventType.pred: bad argument: unrecognized value"+ enumFrom = Data.ProtoLens.Message.Enum.messageEnumFrom+ enumFromTo = Data.ProtoLens.Message.Enum.messageEnumFromTo+ enumFromThen = Data.ProtoLens.Message.Enum.messageEnumFromThen+ enumFromThenTo = Data.ProtoLens.Message.Enum.messageEnumFromThenTo+instance Data.ProtoLens.FieldDefault HtlcEvent'EventType where+ fieldDefault = HtlcEvent'UNKNOWN+instance Control.DeepSeq.NFData HtlcEvent'EventType where+ rnf x__ = Prelude.seq x__ ()+instance Text.PrettyPrint.GenericPretty.Out HtlcEvent'EventType+{- | Fields :+ + * 'Proto.Routerrpc.Router_Fields.incomingTimelock' @:: Lens' HtlcInfo Data.Word.Word32@+ * 'Proto.Routerrpc.Router_Fields.outgoingTimelock' @:: Lens' HtlcInfo Data.Word.Word32@+ * 'Proto.Routerrpc.Router_Fields.incomingAmtMsat' @:: Lens' HtlcInfo Data.Word.Word64@+ * 'Proto.Routerrpc.Router_Fields.outgoingAmtMsat' @:: Lens' HtlcInfo Data.Word.Word64@ -}+data HtlcInfo+ = HtlcInfo'_constructor {_HtlcInfo'incomingTimelock :: !Data.Word.Word32,+ _HtlcInfo'outgoingTimelock :: !Data.Word.Word32,+ _HtlcInfo'incomingAmtMsat :: !Data.Word.Word64,+ _HtlcInfo'outgoingAmtMsat :: !Data.Word.Word64,+ _HtlcInfo'_unknownFields :: !Data.ProtoLens.FieldSet}+ deriving stock (Prelude.Eq, Prelude.Ord, GHC.Generics.Generic)+instance Prelude.Show HtlcInfo where+ showsPrec _ __x __s+ = Prelude.showChar+ '{'+ (Prelude.showString+ (Data.ProtoLens.showMessageShort __x) (Prelude.showChar '}' __s))+instance Text.PrettyPrint.GenericPretty.Out HtlcInfo+instance Data.ProtoLens.Field.HasField HtlcInfo "incomingTimelock" Data.Word.Word32 where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _HtlcInfo'incomingTimelock+ (\ x__ y__ -> x__ {_HtlcInfo'incomingTimelock = y__}))+ Prelude.id+instance Data.ProtoLens.Field.HasField HtlcInfo "outgoingTimelock" Data.Word.Word32 where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _HtlcInfo'outgoingTimelock+ (\ x__ y__ -> x__ {_HtlcInfo'outgoingTimelock = y__}))+ Prelude.id+instance Data.ProtoLens.Field.HasField HtlcInfo "incomingAmtMsat" Data.Word.Word64 where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _HtlcInfo'incomingAmtMsat+ (\ x__ y__ -> x__ {_HtlcInfo'incomingAmtMsat = y__}))+ Prelude.id+instance Data.ProtoLens.Field.HasField HtlcInfo "outgoingAmtMsat" Data.Word.Word64 where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _HtlcInfo'outgoingAmtMsat+ (\ x__ y__ -> x__ {_HtlcInfo'outgoingAmtMsat = y__}))+ Prelude.id+instance Data.ProtoLens.Message HtlcInfo where+ messageName _ = Data.Text.pack "routerrpc.HtlcInfo"+ packedMessageDescriptor _+ = "\n\+ \\bHtlcInfo\DC2+\n\+ \\DC1incoming_timelock\CAN\SOH \SOH(\rR\DLEincomingTimelock\DC2+\n\+ \\DC1outgoing_timelock\CAN\STX \SOH(\rR\DLEoutgoingTimelock\DC2*\n\+ \\DC1incoming_amt_msat\CAN\ETX \SOH(\EOTR\SIincomingAmtMsat\DC2*\n\+ \\DC1outgoing_amt_msat\CAN\EOT \SOH(\EOTR\SIoutgoingAmtMsat"+ packedFileDescriptor _ = packedFileDescriptor+ fieldsByTag+ = let+ incomingTimelock__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "incoming_timelock"+ (Data.ProtoLens.ScalarField Data.ProtoLens.UInt32Field ::+ Data.ProtoLens.FieldTypeDescriptor Data.Word.Word32)+ (Data.ProtoLens.PlainField+ Data.ProtoLens.Optional+ (Data.ProtoLens.Field.field @"incomingTimelock")) ::+ Data.ProtoLens.FieldDescriptor HtlcInfo+ outgoingTimelock__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "outgoing_timelock"+ (Data.ProtoLens.ScalarField Data.ProtoLens.UInt32Field ::+ Data.ProtoLens.FieldTypeDescriptor Data.Word.Word32)+ (Data.ProtoLens.PlainField+ Data.ProtoLens.Optional+ (Data.ProtoLens.Field.field @"outgoingTimelock")) ::+ Data.ProtoLens.FieldDescriptor HtlcInfo+ incomingAmtMsat__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "incoming_amt_msat"+ (Data.ProtoLens.ScalarField Data.ProtoLens.UInt64Field ::+ Data.ProtoLens.FieldTypeDescriptor Data.Word.Word64)+ (Data.ProtoLens.PlainField+ Data.ProtoLens.Optional+ (Data.ProtoLens.Field.field @"incomingAmtMsat")) ::+ Data.ProtoLens.FieldDescriptor HtlcInfo+ outgoingAmtMsat__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "outgoing_amt_msat"+ (Data.ProtoLens.ScalarField Data.ProtoLens.UInt64Field ::+ Data.ProtoLens.FieldTypeDescriptor Data.Word.Word64)+ (Data.ProtoLens.PlainField+ Data.ProtoLens.Optional+ (Data.ProtoLens.Field.field @"outgoingAmtMsat")) ::+ Data.ProtoLens.FieldDescriptor HtlcInfo+ in+ Data.Map.fromList+ [(Data.ProtoLens.Tag 1, incomingTimelock__field_descriptor),+ (Data.ProtoLens.Tag 2, outgoingTimelock__field_descriptor),+ (Data.ProtoLens.Tag 3, incomingAmtMsat__field_descriptor),+ (Data.ProtoLens.Tag 4, outgoingAmtMsat__field_descriptor)]+ unknownFields+ = Lens.Family2.Unchecked.lens+ _HtlcInfo'_unknownFields+ (\ x__ y__ -> x__ {_HtlcInfo'_unknownFields = y__})+ defMessage+ = HtlcInfo'_constructor+ {_HtlcInfo'incomingTimelock = Data.ProtoLens.fieldDefault,+ _HtlcInfo'outgoingTimelock = Data.ProtoLens.fieldDefault,+ _HtlcInfo'incomingAmtMsat = Data.ProtoLens.fieldDefault,+ _HtlcInfo'outgoingAmtMsat = Data.ProtoLens.fieldDefault,+ _HtlcInfo'_unknownFields = []}+ parseMessage+ = let+ loop :: HtlcInfo -> Data.ProtoLens.Encoding.Bytes.Parser HtlcInfo+ loop x+ = do end <- Data.ProtoLens.Encoding.Bytes.atEnd+ if end then+ do (let missing = []+ in+ if Prelude.null missing then+ Prelude.return ()+ else+ Prelude.fail+ ((Prelude.++)+ "Missing required fields: "+ (Prelude.show (missing :: [Prelude.String]))))+ Prelude.return+ (Lens.Family2.over+ Data.ProtoLens.unknownFields (\ !t -> Prelude.reverse t) x)+ else+ do tag <- Data.ProtoLens.Encoding.Bytes.getVarInt+ case tag of+ 8 -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (Prelude.fmap+ Prelude.fromIntegral+ Data.ProtoLens.Encoding.Bytes.getVarInt)+ "incoming_timelock"+ loop+ (Lens.Family2.set+ (Data.ProtoLens.Field.field @"incomingTimelock") y x)+ 16+ -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (Prelude.fmap+ Prelude.fromIntegral+ Data.ProtoLens.Encoding.Bytes.getVarInt)+ "outgoing_timelock"+ loop+ (Lens.Family2.set+ (Data.ProtoLens.Field.field @"outgoingTimelock") y x)+ 24+ -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ Data.ProtoLens.Encoding.Bytes.getVarInt "incoming_amt_msat"+ loop+ (Lens.Family2.set+ (Data.ProtoLens.Field.field @"incomingAmtMsat") y x)+ 32+ -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ Data.ProtoLens.Encoding.Bytes.getVarInt "outgoing_amt_msat"+ loop+ (Lens.Family2.set+ (Data.ProtoLens.Field.field @"outgoingAmtMsat") y x)+ wire+ -> do !y <- Data.ProtoLens.Encoding.Wire.parseTaggedValueFromWire+ wire+ loop+ (Lens.Family2.over+ Data.ProtoLens.unknownFields (\ !t -> (:) y t) x)+ in+ (Data.ProtoLens.Encoding.Bytes.<?>)+ (do loop Data.ProtoLens.defMessage) "HtlcInfo"+ buildMessage+ = \ _x+ -> (Data.Monoid.<>)+ (let+ _v+ = Lens.Family2.view+ (Data.ProtoLens.Field.field @"incomingTimelock") _x+ in+ if (Prelude.==) _v Data.ProtoLens.fieldDefault then+ Data.Monoid.mempty+ else+ (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 8)+ ((Prelude..)+ Data.ProtoLens.Encoding.Bytes.putVarInt Prelude.fromIntegral _v))+ ((Data.Monoid.<>)+ (let+ _v+ = Lens.Family2.view+ (Data.ProtoLens.Field.field @"outgoingTimelock") _x+ in+ if (Prelude.==) _v Data.ProtoLens.fieldDefault then+ Data.Monoid.mempty+ else+ (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 16)+ ((Prelude..)+ Data.ProtoLens.Encoding.Bytes.putVarInt Prelude.fromIntegral _v))+ ((Data.Monoid.<>)+ (let+ _v+ = Lens.Family2.view+ (Data.ProtoLens.Field.field @"incomingAmtMsat") _x+ in+ if (Prelude.==) _v Data.ProtoLens.fieldDefault then+ Data.Monoid.mempty+ else+ (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 24)+ (Data.ProtoLens.Encoding.Bytes.putVarInt _v))+ ((Data.Monoid.<>)+ (let+ _v+ = Lens.Family2.view+ (Data.ProtoLens.Field.field @"outgoingAmtMsat") _x+ in+ if (Prelude.==) _v Data.ProtoLens.fieldDefault then+ Data.Monoid.mempty+ else+ (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 32)+ (Data.ProtoLens.Encoding.Bytes.putVarInt _v))+ (Data.ProtoLens.Encoding.Wire.buildFieldSet+ (Lens.Family2.view Data.ProtoLens.unknownFields _x)))))+instance Control.DeepSeq.NFData HtlcInfo where+ rnf+ = \ x__+ -> Control.DeepSeq.deepseq+ (_HtlcInfo'_unknownFields x__)+ (Control.DeepSeq.deepseq+ (_HtlcInfo'incomingTimelock x__)+ (Control.DeepSeq.deepseq+ (_HtlcInfo'outgoingTimelock x__)+ (Control.DeepSeq.deepseq+ (_HtlcInfo'incomingAmtMsat x__)+ (Control.DeepSeq.deepseq (_HtlcInfo'outgoingAmtMsat x__) ()))))+{- | Fields :+ + * 'Proto.Routerrpc.Router_Fields.info' @:: Lens' LinkFailEvent HtlcInfo@+ * 'Proto.Routerrpc.Router_Fields.maybe'info' @:: Lens' LinkFailEvent (Prelude.Maybe HtlcInfo)@+ * 'Proto.Routerrpc.Router_Fields.wireFailure' @:: Lens' LinkFailEvent Proto.Lnrpc.Ln1.Failure'FailureCode@+ * 'Proto.Routerrpc.Router_Fields.failureDetail' @:: Lens' LinkFailEvent FailureDetail@+ * 'Proto.Routerrpc.Router_Fields.failureString' @:: Lens' LinkFailEvent Data.Text.Text@ -}+data LinkFailEvent+ = LinkFailEvent'_constructor {_LinkFailEvent'info :: !(Prelude.Maybe HtlcInfo),+ _LinkFailEvent'wireFailure :: !Proto.Lnrpc.Ln1.Failure'FailureCode,+ _LinkFailEvent'failureDetail :: !FailureDetail,+ _LinkFailEvent'failureString :: !Data.Text.Text,+ _LinkFailEvent'_unknownFields :: !Data.ProtoLens.FieldSet}+ deriving stock (Prelude.Eq, Prelude.Ord, GHC.Generics.Generic)+instance Prelude.Show LinkFailEvent where+ showsPrec _ __x __s+ = Prelude.showChar+ '{'+ (Prelude.showString+ (Data.ProtoLens.showMessageShort __x) (Prelude.showChar '}' __s))+instance Text.PrettyPrint.GenericPretty.Out LinkFailEvent+instance Data.ProtoLens.Field.HasField LinkFailEvent "info" HtlcInfo where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _LinkFailEvent'info (\ x__ y__ -> x__ {_LinkFailEvent'info = y__}))+ (Data.ProtoLens.maybeLens Data.ProtoLens.defMessage)+instance Data.ProtoLens.Field.HasField LinkFailEvent "maybe'info" (Prelude.Maybe HtlcInfo) where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _LinkFailEvent'info (\ x__ y__ -> x__ {_LinkFailEvent'info = y__}))+ Prelude.id+instance Data.ProtoLens.Field.HasField LinkFailEvent "wireFailure" Proto.Lnrpc.Ln1.Failure'FailureCode where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _LinkFailEvent'wireFailure+ (\ x__ y__ -> x__ {_LinkFailEvent'wireFailure = y__}))+ Prelude.id+instance Data.ProtoLens.Field.HasField LinkFailEvent "failureDetail" FailureDetail where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _LinkFailEvent'failureDetail+ (\ x__ y__ -> x__ {_LinkFailEvent'failureDetail = y__}))+ Prelude.id+instance Data.ProtoLens.Field.HasField LinkFailEvent "failureString" Data.Text.Text where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _LinkFailEvent'failureString+ (\ x__ y__ -> x__ {_LinkFailEvent'failureString = y__}))+ Prelude.id+instance Data.ProtoLens.Message LinkFailEvent where+ messageName _ = Data.Text.pack "routerrpc.LinkFailEvent"+ packedMessageDescriptor _+ = "\n\+ \\rLinkFailEvent\DC2'\n\+ \\EOTinfo\CAN\SOH \SOH(\v2\DC3.routerrpc.HtlcInfoR\EOTinfo\DC2=\n\+ \\fwire_failure\CAN\STX \SOH(\SO2\SUB.lnrpc.Failure.FailureCodeR\vwireFailure\DC2?\n\+ \\SOfailure_detail\CAN\ETX \SOH(\SO2\CAN.routerrpc.FailureDetailR\rfailureDetail\DC2%\n\+ \\SOfailure_string\CAN\EOT \SOH(\tR\rfailureString"+ packedFileDescriptor _ = packedFileDescriptor+ fieldsByTag+ = let+ info__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "info"+ (Data.ProtoLens.MessageField Data.ProtoLens.MessageType ::+ Data.ProtoLens.FieldTypeDescriptor HtlcInfo)+ (Data.ProtoLens.OptionalField+ (Data.ProtoLens.Field.field @"maybe'info")) ::+ Data.ProtoLens.FieldDescriptor LinkFailEvent+ wireFailure__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "wire_failure"+ (Data.ProtoLens.ScalarField Data.ProtoLens.EnumField ::+ Data.ProtoLens.FieldTypeDescriptor Proto.Lnrpc.Ln1.Failure'FailureCode)+ (Data.ProtoLens.PlainField+ Data.ProtoLens.Optional+ (Data.ProtoLens.Field.field @"wireFailure")) ::+ Data.ProtoLens.FieldDescriptor LinkFailEvent+ failureDetail__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "failure_detail"+ (Data.ProtoLens.ScalarField Data.ProtoLens.EnumField ::+ Data.ProtoLens.FieldTypeDescriptor FailureDetail)+ (Data.ProtoLens.PlainField+ Data.ProtoLens.Optional+ (Data.ProtoLens.Field.field @"failureDetail")) ::+ Data.ProtoLens.FieldDescriptor LinkFailEvent+ failureString__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "failure_string"+ (Data.ProtoLens.ScalarField Data.ProtoLens.StringField ::+ Data.ProtoLens.FieldTypeDescriptor Data.Text.Text)+ (Data.ProtoLens.PlainField+ Data.ProtoLens.Optional+ (Data.ProtoLens.Field.field @"failureString")) ::+ Data.ProtoLens.FieldDescriptor LinkFailEvent+ in+ Data.Map.fromList+ [(Data.ProtoLens.Tag 1, info__field_descriptor),+ (Data.ProtoLens.Tag 2, wireFailure__field_descriptor),+ (Data.ProtoLens.Tag 3, failureDetail__field_descriptor),+ (Data.ProtoLens.Tag 4, failureString__field_descriptor)]+ unknownFields+ = Lens.Family2.Unchecked.lens+ _LinkFailEvent'_unknownFields+ (\ x__ y__ -> x__ {_LinkFailEvent'_unknownFields = y__})+ defMessage+ = LinkFailEvent'_constructor+ {_LinkFailEvent'info = Prelude.Nothing,+ _LinkFailEvent'wireFailure = Data.ProtoLens.fieldDefault,+ _LinkFailEvent'failureDetail = Data.ProtoLens.fieldDefault,+ _LinkFailEvent'failureString = Data.ProtoLens.fieldDefault,+ _LinkFailEvent'_unknownFields = []}+ parseMessage+ = let+ loop ::+ LinkFailEvent -> Data.ProtoLens.Encoding.Bytes.Parser LinkFailEvent+ loop x+ = do end <- Data.ProtoLens.Encoding.Bytes.atEnd+ if end then+ do (let missing = []+ in+ if Prelude.null missing then+ Prelude.return ()+ else+ Prelude.fail+ ((Prelude.++)+ "Missing required fields: "+ (Prelude.show (missing :: [Prelude.String]))))+ Prelude.return+ (Lens.Family2.over+ Data.ProtoLens.unknownFields (\ !t -> Prelude.reverse t) x)+ else+ do tag <- Data.ProtoLens.Encoding.Bytes.getVarInt+ case tag of+ 10+ -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (do len <- Data.ProtoLens.Encoding.Bytes.getVarInt+ Data.ProtoLens.Encoding.Bytes.isolate+ (Prelude.fromIntegral len) Data.ProtoLens.parseMessage)+ "info"+ loop (Lens.Family2.set (Data.ProtoLens.Field.field @"info") y x)+ 16+ -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (Prelude.fmap+ Prelude.toEnum+ (Prelude.fmap+ Prelude.fromIntegral+ Data.ProtoLens.Encoding.Bytes.getVarInt))+ "wire_failure"+ loop+ (Lens.Family2.set (Data.ProtoLens.Field.field @"wireFailure") y x)+ 24+ -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (Prelude.fmap+ Prelude.toEnum+ (Prelude.fmap+ Prelude.fromIntegral+ Data.ProtoLens.Encoding.Bytes.getVarInt))+ "failure_detail"+ loop+ (Lens.Family2.set+ (Data.ProtoLens.Field.field @"failureDetail") y x)+ 34+ -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (do value <- do len <- Data.ProtoLens.Encoding.Bytes.getVarInt+ Data.ProtoLens.Encoding.Bytes.getBytes+ (Prelude.fromIntegral len)+ Data.ProtoLens.Encoding.Bytes.runEither+ (case Data.Text.Encoding.decodeUtf8' value of+ (Prelude.Left err)+ -> Prelude.Left (Prelude.show err)+ (Prelude.Right r) -> Prelude.Right r))+ "failure_string"+ loop+ (Lens.Family2.set+ (Data.ProtoLens.Field.field @"failureString") y x)+ wire+ -> do !y <- Data.ProtoLens.Encoding.Wire.parseTaggedValueFromWire+ wire+ loop+ (Lens.Family2.over+ Data.ProtoLens.unknownFields (\ !t -> (:) y t) x)+ in+ (Data.ProtoLens.Encoding.Bytes.<?>)+ (do loop Data.ProtoLens.defMessage) "LinkFailEvent"+ buildMessage+ = \ _x+ -> (Data.Monoid.<>)+ (case+ Lens.Family2.view (Data.ProtoLens.Field.field @"maybe'info") _x+ of+ Prelude.Nothing -> Data.Monoid.mempty+ (Prelude.Just _v)+ -> (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 10)+ ((Prelude..)+ (\ bs+ -> (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt+ (Prelude.fromIntegral (Data.ByteString.length bs)))+ (Data.ProtoLens.Encoding.Bytes.putBytes bs))+ Data.ProtoLens.encodeMessage _v))+ ((Data.Monoid.<>)+ (let+ _v+ = Lens.Family2.view (Data.ProtoLens.Field.field @"wireFailure") _x+ in+ if (Prelude.==) _v Data.ProtoLens.fieldDefault then+ Data.Monoid.mempty+ else+ (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 16)+ ((Prelude..)+ ((Prelude..)+ Data.ProtoLens.Encoding.Bytes.putVarInt Prelude.fromIntegral)+ Prelude.fromEnum _v))+ ((Data.Monoid.<>)+ (let+ _v+ = Lens.Family2.view+ (Data.ProtoLens.Field.field @"failureDetail") _x+ in+ if (Prelude.==) _v Data.ProtoLens.fieldDefault then+ Data.Monoid.mempty+ else+ (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 24)+ ((Prelude..)+ ((Prelude..)+ Data.ProtoLens.Encoding.Bytes.putVarInt Prelude.fromIntegral)+ Prelude.fromEnum _v))+ ((Data.Monoid.<>)+ (let+ _v+ = Lens.Family2.view+ (Data.ProtoLens.Field.field @"failureString") _x+ in+ if (Prelude.==) _v Data.ProtoLens.fieldDefault then+ Data.Monoid.mempty+ else+ (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 34)+ ((Prelude..)+ (\ bs+ -> (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt+ (Prelude.fromIntegral (Data.ByteString.length bs)))+ (Data.ProtoLens.Encoding.Bytes.putBytes bs))+ Data.Text.Encoding.encodeUtf8 _v))+ (Data.ProtoLens.Encoding.Wire.buildFieldSet+ (Lens.Family2.view Data.ProtoLens.unknownFields _x)))))+instance Control.DeepSeq.NFData LinkFailEvent where+ rnf+ = \ x__+ -> Control.DeepSeq.deepseq+ (_LinkFailEvent'_unknownFields x__)+ (Control.DeepSeq.deepseq+ (_LinkFailEvent'info x__)+ (Control.DeepSeq.deepseq+ (_LinkFailEvent'wireFailure x__)+ (Control.DeepSeq.deepseq+ (_LinkFailEvent'failureDetail x__)+ (Control.DeepSeq.deepseq (_LinkFailEvent'failureString x__) ()))))+{- | Fields :+ + * 'Proto.Routerrpc.Router_Fields.halfLifeSeconds' @:: Lens' MissionControlConfig Data.Word.Word64@+ * 'Proto.Routerrpc.Router_Fields.hopProbability' @:: Lens' MissionControlConfig Prelude.Float@+ * 'Proto.Routerrpc.Router_Fields.weight' @:: Lens' MissionControlConfig Prelude.Float@+ * 'Proto.Routerrpc.Router_Fields.maximumPaymentResults' @:: Lens' MissionControlConfig Data.Word.Word32@+ * 'Proto.Routerrpc.Router_Fields.minimumFailureRelaxInterval' @:: Lens' MissionControlConfig Data.Word.Word64@ -}+data MissionControlConfig+ = MissionControlConfig'_constructor {_MissionControlConfig'halfLifeSeconds :: !Data.Word.Word64,+ _MissionControlConfig'hopProbability :: !Prelude.Float,+ _MissionControlConfig'weight :: !Prelude.Float,+ _MissionControlConfig'maximumPaymentResults :: !Data.Word.Word32,+ _MissionControlConfig'minimumFailureRelaxInterval :: !Data.Word.Word64,+ _MissionControlConfig'_unknownFields :: !Data.ProtoLens.FieldSet}+ deriving stock (Prelude.Eq, Prelude.Ord, GHC.Generics.Generic)+instance Prelude.Show MissionControlConfig where+ showsPrec _ __x __s+ = Prelude.showChar+ '{'+ (Prelude.showString+ (Data.ProtoLens.showMessageShort __x) (Prelude.showChar '}' __s))+instance Text.PrettyPrint.GenericPretty.Out MissionControlConfig+instance Data.ProtoLens.Field.HasField MissionControlConfig "halfLifeSeconds" Data.Word.Word64 where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _MissionControlConfig'halfLifeSeconds+ (\ x__ y__ -> x__ {_MissionControlConfig'halfLifeSeconds = y__}))+ Prelude.id+instance Data.ProtoLens.Field.HasField MissionControlConfig "hopProbability" Prelude.Float where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _MissionControlConfig'hopProbability+ (\ x__ y__ -> x__ {_MissionControlConfig'hopProbability = y__}))+ Prelude.id+instance Data.ProtoLens.Field.HasField MissionControlConfig "weight" Prelude.Float where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _MissionControlConfig'weight+ (\ x__ y__ -> x__ {_MissionControlConfig'weight = y__}))+ Prelude.id+instance Data.ProtoLens.Field.HasField MissionControlConfig "maximumPaymentResults" Data.Word.Word32 where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _MissionControlConfig'maximumPaymentResults+ (\ x__ y__+ -> x__ {_MissionControlConfig'maximumPaymentResults = y__}))+ Prelude.id+instance Data.ProtoLens.Field.HasField MissionControlConfig "minimumFailureRelaxInterval" Data.Word.Word64 where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _MissionControlConfig'minimumFailureRelaxInterval+ (\ x__ y__+ -> x__ {_MissionControlConfig'minimumFailureRelaxInterval = y__}))+ Prelude.id+instance Data.ProtoLens.Message MissionControlConfig where+ messageName _ = Data.Text.pack "routerrpc.MissionControlConfig"+ packedMessageDescriptor _+ = "\n\+ \\DC4MissionControlConfig\DC2*\n\+ \\DC1half_life_seconds\CAN\SOH \SOH(\EOTR\SIhalfLifeSeconds\DC2'\n\+ \\SIhop_probability\CAN\STX \SOH(\STXR\SOhopProbability\DC2\SYN\n\+ \\ACKweight\CAN\ETX \SOH(\STXR\ACKweight\DC26\n\+ \\ETBmaximum_payment_results\CAN\EOT \SOH(\rR\NAKmaximumPaymentResults\DC2C\n\+ \\RSminimum_failure_relax_interval\CAN\ENQ \SOH(\EOTR\ESCminimumFailureRelaxInterval"+ packedFileDescriptor _ = packedFileDescriptor+ fieldsByTag+ = let+ halfLifeSeconds__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "half_life_seconds"+ (Data.ProtoLens.ScalarField Data.ProtoLens.UInt64Field ::+ Data.ProtoLens.FieldTypeDescriptor Data.Word.Word64)+ (Data.ProtoLens.PlainField+ Data.ProtoLens.Optional+ (Data.ProtoLens.Field.field @"halfLifeSeconds")) ::+ Data.ProtoLens.FieldDescriptor MissionControlConfig+ hopProbability__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "hop_probability"+ (Data.ProtoLens.ScalarField Data.ProtoLens.FloatField ::+ Data.ProtoLens.FieldTypeDescriptor Prelude.Float)+ (Data.ProtoLens.PlainField+ Data.ProtoLens.Optional+ (Data.ProtoLens.Field.field @"hopProbability")) ::+ Data.ProtoLens.FieldDescriptor MissionControlConfig+ weight__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "weight"+ (Data.ProtoLens.ScalarField Data.ProtoLens.FloatField ::+ Data.ProtoLens.FieldTypeDescriptor Prelude.Float)+ (Data.ProtoLens.PlainField+ Data.ProtoLens.Optional (Data.ProtoLens.Field.field @"weight")) ::+ Data.ProtoLens.FieldDescriptor MissionControlConfig+ maximumPaymentResults__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "maximum_payment_results"+ (Data.ProtoLens.ScalarField Data.ProtoLens.UInt32Field ::+ Data.ProtoLens.FieldTypeDescriptor Data.Word.Word32)+ (Data.ProtoLens.PlainField+ Data.ProtoLens.Optional+ (Data.ProtoLens.Field.field @"maximumPaymentResults")) ::+ Data.ProtoLens.FieldDescriptor MissionControlConfig+ minimumFailureRelaxInterval__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "minimum_failure_relax_interval"+ (Data.ProtoLens.ScalarField Data.ProtoLens.UInt64Field ::+ Data.ProtoLens.FieldTypeDescriptor Data.Word.Word64)+ (Data.ProtoLens.PlainField+ Data.ProtoLens.Optional+ (Data.ProtoLens.Field.field @"minimumFailureRelaxInterval")) ::+ Data.ProtoLens.FieldDescriptor MissionControlConfig+ in+ Data.Map.fromList+ [(Data.ProtoLens.Tag 1, halfLifeSeconds__field_descriptor),+ (Data.ProtoLens.Tag 2, hopProbability__field_descriptor),+ (Data.ProtoLens.Tag 3, weight__field_descriptor),+ (Data.ProtoLens.Tag 4, maximumPaymentResults__field_descriptor),+ (Data.ProtoLens.Tag 5, + minimumFailureRelaxInterval__field_descriptor)]+ unknownFields+ = Lens.Family2.Unchecked.lens+ _MissionControlConfig'_unknownFields+ (\ x__ y__ -> x__ {_MissionControlConfig'_unknownFields = y__})+ defMessage+ = MissionControlConfig'_constructor+ {_MissionControlConfig'halfLifeSeconds = Data.ProtoLens.fieldDefault,+ _MissionControlConfig'hopProbability = Data.ProtoLens.fieldDefault,+ _MissionControlConfig'weight = Data.ProtoLens.fieldDefault,+ _MissionControlConfig'maximumPaymentResults = Data.ProtoLens.fieldDefault,+ _MissionControlConfig'minimumFailureRelaxInterval = Data.ProtoLens.fieldDefault,+ _MissionControlConfig'_unknownFields = []}+ parseMessage+ = let+ loop ::+ MissionControlConfig+ -> Data.ProtoLens.Encoding.Bytes.Parser MissionControlConfig+ loop x+ = do end <- Data.ProtoLens.Encoding.Bytes.atEnd+ if end then+ do (let missing = []+ in+ if Prelude.null missing then+ Prelude.return ()+ else+ Prelude.fail+ ((Prelude.++)+ "Missing required fields: "+ (Prelude.show (missing :: [Prelude.String]))))+ Prelude.return+ (Lens.Family2.over+ Data.ProtoLens.unknownFields (\ !t -> Prelude.reverse t) x)+ else+ do tag <- Data.ProtoLens.Encoding.Bytes.getVarInt+ case tag of+ 8 -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ Data.ProtoLens.Encoding.Bytes.getVarInt "half_life_seconds"+ loop+ (Lens.Family2.set+ (Data.ProtoLens.Field.field @"halfLifeSeconds") y x)+ 21+ -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (Prelude.fmap+ Data.ProtoLens.Encoding.Bytes.wordToFloat+ Data.ProtoLens.Encoding.Bytes.getFixed32)+ "hop_probability"+ loop+ (Lens.Family2.set+ (Data.ProtoLens.Field.field @"hopProbability") y x)+ 29+ -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (Prelude.fmap+ Data.ProtoLens.Encoding.Bytes.wordToFloat+ Data.ProtoLens.Encoding.Bytes.getFixed32)+ "weight"+ loop (Lens.Family2.set (Data.ProtoLens.Field.field @"weight") y x)+ 32+ -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (Prelude.fmap+ Prelude.fromIntegral+ Data.ProtoLens.Encoding.Bytes.getVarInt)+ "maximum_payment_results"+ loop+ (Lens.Family2.set+ (Data.ProtoLens.Field.field @"maximumPaymentResults") y x)+ 40+ -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ Data.ProtoLens.Encoding.Bytes.getVarInt+ "minimum_failure_relax_interval"+ loop+ (Lens.Family2.set+ (Data.ProtoLens.Field.field @"minimumFailureRelaxInterval") y+ x)+ wire+ -> do !y <- Data.ProtoLens.Encoding.Wire.parseTaggedValueFromWire+ wire+ loop+ (Lens.Family2.over+ Data.ProtoLens.unknownFields (\ !t -> (:) y t) x)+ in+ (Data.ProtoLens.Encoding.Bytes.<?>)+ (do loop Data.ProtoLens.defMessage) "MissionControlConfig"+ buildMessage+ = \ _x+ -> (Data.Monoid.<>)+ (let+ _v+ = Lens.Family2.view+ (Data.ProtoLens.Field.field @"halfLifeSeconds") _x+ in+ if (Prelude.==) _v Data.ProtoLens.fieldDefault then+ Data.Monoid.mempty+ else+ (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 8)+ (Data.ProtoLens.Encoding.Bytes.putVarInt _v))+ ((Data.Monoid.<>)+ (let+ _v+ = Lens.Family2.view+ (Data.ProtoLens.Field.field @"hopProbability") _x+ in+ if (Prelude.==) _v Data.ProtoLens.fieldDefault then+ Data.Monoid.mempty+ else+ (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 21)+ ((Prelude..)+ Data.ProtoLens.Encoding.Bytes.putFixed32+ Data.ProtoLens.Encoding.Bytes.floatToWord _v))+ ((Data.Monoid.<>)+ (let+ _v = Lens.Family2.view (Data.ProtoLens.Field.field @"weight") _x+ in+ if (Prelude.==) _v Data.ProtoLens.fieldDefault then+ Data.Monoid.mempty+ else+ (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 29)+ ((Prelude..)+ Data.ProtoLens.Encoding.Bytes.putFixed32+ Data.ProtoLens.Encoding.Bytes.floatToWord _v))+ ((Data.Monoid.<>)+ (let+ _v+ = Lens.Family2.view+ (Data.ProtoLens.Field.field @"maximumPaymentResults") _x+ in+ if (Prelude.==) _v Data.ProtoLens.fieldDefault then+ Data.Monoid.mempty+ else+ (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 32)+ ((Prelude..)+ Data.ProtoLens.Encoding.Bytes.putVarInt Prelude.fromIntegral _v))+ ((Data.Monoid.<>)+ (let+ _v+ = Lens.Family2.view+ (Data.ProtoLens.Field.field @"minimumFailureRelaxInterval") _x+ in+ if (Prelude.==) _v Data.ProtoLens.fieldDefault then+ Data.Monoid.mempty+ else+ (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 40)+ (Data.ProtoLens.Encoding.Bytes.putVarInt _v))+ (Data.ProtoLens.Encoding.Wire.buildFieldSet+ (Lens.Family2.view Data.ProtoLens.unknownFields _x))))))+instance Control.DeepSeq.NFData MissionControlConfig where+ rnf+ = \ x__+ -> Control.DeepSeq.deepseq+ (_MissionControlConfig'_unknownFields x__)+ (Control.DeepSeq.deepseq+ (_MissionControlConfig'halfLifeSeconds x__)+ (Control.DeepSeq.deepseq+ (_MissionControlConfig'hopProbability x__)+ (Control.DeepSeq.deepseq+ (_MissionControlConfig'weight x__)+ (Control.DeepSeq.deepseq+ (_MissionControlConfig'maximumPaymentResults x__)+ (Control.DeepSeq.deepseq+ (_MissionControlConfig'minimumFailureRelaxInterval x__) ())))))+{- | Fields :+ + * 'Proto.Routerrpc.Router_Fields.failTime' @:: Lens' PairData Data.Int.Int64@+ * 'Proto.Routerrpc.Router_Fields.failAmtSat' @:: Lens' PairData Data.Int.Int64@+ * 'Proto.Routerrpc.Router_Fields.failAmtMsat' @:: Lens' PairData Data.Int.Int64@+ * 'Proto.Routerrpc.Router_Fields.successTime' @:: Lens' PairData Data.Int.Int64@+ * 'Proto.Routerrpc.Router_Fields.successAmtSat' @:: Lens' PairData Data.Int.Int64@+ * 'Proto.Routerrpc.Router_Fields.successAmtMsat' @:: Lens' PairData Data.Int.Int64@ -}+data PairData+ = PairData'_constructor {_PairData'failTime :: !Data.Int.Int64,+ _PairData'failAmtSat :: !Data.Int.Int64,+ _PairData'failAmtMsat :: !Data.Int.Int64,+ _PairData'successTime :: !Data.Int.Int64,+ _PairData'successAmtSat :: !Data.Int.Int64,+ _PairData'successAmtMsat :: !Data.Int.Int64,+ _PairData'_unknownFields :: !Data.ProtoLens.FieldSet}+ deriving stock (Prelude.Eq, Prelude.Ord, GHC.Generics.Generic)+instance Prelude.Show PairData where+ showsPrec _ __x __s+ = Prelude.showChar+ '{'+ (Prelude.showString+ (Data.ProtoLens.showMessageShort __x) (Prelude.showChar '}' __s))+instance Text.PrettyPrint.GenericPretty.Out PairData+instance Data.ProtoLens.Field.HasField PairData "failTime" Data.Int.Int64 where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _PairData'failTime (\ x__ y__ -> x__ {_PairData'failTime = y__}))+ Prelude.id+instance Data.ProtoLens.Field.HasField PairData "failAmtSat" Data.Int.Int64 where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _PairData'failAmtSat+ (\ x__ y__ -> x__ {_PairData'failAmtSat = y__}))+ Prelude.id+instance Data.ProtoLens.Field.HasField PairData "failAmtMsat" Data.Int.Int64 where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _PairData'failAmtMsat+ (\ x__ y__ -> x__ {_PairData'failAmtMsat = y__}))+ Prelude.id+instance Data.ProtoLens.Field.HasField PairData "successTime" Data.Int.Int64 where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _PairData'successTime+ (\ x__ y__ -> x__ {_PairData'successTime = y__}))+ Prelude.id+instance Data.ProtoLens.Field.HasField PairData "successAmtSat" Data.Int.Int64 where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _PairData'successAmtSat+ (\ x__ y__ -> x__ {_PairData'successAmtSat = y__}))+ Prelude.id+instance Data.ProtoLens.Field.HasField PairData "successAmtMsat" Data.Int.Int64 where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _PairData'successAmtMsat+ (\ x__ y__ -> x__ {_PairData'successAmtMsat = y__}))+ Prelude.id+instance Data.ProtoLens.Message PairData where+ messageName _ = Data.Text.pack "routerrpc.PairData"+ packedMessageDescriptor _+ = "\n\+ \\bPairData\DC2\ESC\n\+ \\tfail_time\CAN\SOH \SOH(\ETXR\bfailTime\DC2 \n\+ \\ffail_amt_sat\CAN\STX \SOH(\ETXR\n\+ \failAmtSat\DC2\"\n\+ \\rfail_amt_msat\CAN\EOT \SOH(\ETXR\vfailAmtMsat\DC2!\n\+ \\fsuccess_time\CAN\ENQ \SOH(\ETXR\vsuccessTime\DC2&\n\+ \\SIsuccess_amt_sat\CAN\ACK \SOH(\ETXR\rsuccessAmtSat\DC2(\n\+ \\DLEsuccess_amt_msat\CAN\a \SOH(\ETXR\SOsuccessAmtMsatJ\EOT\b\ETX\DLE\EOT"+ packedFileDescriptor _ = packedFileDescriptor+ fieldsByTag+ = let+ failTime__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "fail_time"+ (Data.ProtoLens.ScalarField Data.ProtoLens.Int64Field ::+ Data.ProtoLens.FieldTypeDescriptor Data.Int.Int64)+ (Data.ProtoLens.PlainField+ Data.ProtoLens.Optional+ (Data.ProtoLens.Field.field @"failTime")) ::+ Data.ProtoLens.FieldDescriptor PairData+ failAmtSat__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "fail_amt_sat"+ (Data.ProtoLens.ScalarField Data.ProtoLens.Int64Field ::+ Data.ProtoLens.FieldTypeDescriptor Data.Int.Int64)+ (Data.ProtoLens.PlainField+ Data.ProtoLens.Optional+ (Data.ProtoLens.Field.field @"failAmtSat")) ::+ Data.ProtoLens.FieldDescriptor PairData+ failAmtMsat__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "fail_amt_msat"+ (Data.ProtoLens.ScalarField Data.ProtoLens.Int64Field ::+ Data.ProtoLens.FieldTypeDescriptor Data.Int.Int64)+ (Data.ProtoLens.PlainField+ Data.ProtoLens.Optional+ (Data.ProtoLens.Field.field @"failAmtMsat")) ::+ Data.ProtoLens.FieldDescriptor PairData+ successTime__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "success_time"+ (Data.ProtoLens.ScalarField Data.ProtoLens.Int64Field ::+ Data.ProtoLens.FieldTypeDescriptor Data.Int.Int64)+ (Data.ProtoLens.PlainField+ Data.ProtoLens.Optional+ (Data.ProtoLens.Field.field @"successTime")) ::+ Data.ProtoLens.FieldDescriptor PairData+ successAmtSat__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "success_amt_sat"+ (Data.ProtoLens.ScalarField Data.ProtoLens.Int64Field ::+ Data.ProtoLens.FieldTypeDescriptor Data.Int.Int64)+ (Data.ProtoLens.PlainField+ Data.ProtoLens.Optional+ (Data.ProtoLens.Field.field @"successAmtSat")) ::+ Data.ProtoLens.FieldDescriptor PairData+ successAmtMsat__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "success_amt_msat"+ (Data.ProtoLens.ScalarField Data.ProtoLens.Int64Field ::+ Data.ProtoLens.FieldTypeDescriptor Data.Int.Int64)+ (Data.ProtoLens.PlainField+ Data.ProtoLens.Optional+ (Data.ProtoLens.Field.field @"successAmtMsat")) ::+ Data.ProtoLens.FieldDescriptor PairData+ in+ Data.Map.fromList+ [(Data.ProtoLens.Tag 1, failTime__field_descriptor),+ (Data.ProtoLens.Tag 2, failAmtSat__field_descriptor),+ (Data.ProtoLens.Tag 4, failAmtMsat__field_descriptor),+ (Data.ProtoLens.Tag 5, successTime__field_descriptor),+ (Data.ProtoLens.Tag 6, successAmtSat__field_descriptor),+ (Data.ProtoLens.Tag 7, successAmtMsat__field_descriptor)]+ unknownFields+ = Lens.Family2.Unchecked.lens+ _PairData'_unknownFields+ (\ x__ y__ -> x__ {_PairData'_unknownFields = y__})+ defMessage+ = PairData'_constructor+ {_PairData'failTime = Data.ProtoLens.fieldDefault,+ _PairData'failAmtSat = Data.ProtoLens.fieldDefault,+ _PairData'failAmtMsat = Data.ProtoLens.fieldDefault,+ _PairData'successTime = Data.ProtoLens.fieldDefault,+ _PairData'successAmtSat = Data.ProtoLens.fieldDefault,+ _PairData'successAmtMsat = Data.ProtoLens.fieldDefault,+ _PairData'_unknownFields = []}+ parseMessage+ = let+ loop :: PairData -> Data.ProtoLens.Encoding.Bytes.Parser PairData+ loop x+ = do end <- Data.ProtoLens.Encoding.Bytes.atEnd+ if end then+ do (let missing = []+ in+ if Prelude.null missing then+ Prelude.return ()+ else+ Prelude.fail+ ((Prelude.++)+ "Missing required fields: "+ (Prelude.show (missing :: [Prelude.String]))))+ Prelude.return+ (Lens.Family2.over+ Data.ProtoLens.unknownFields (\ !t -> Prelude.reverse t) x)+ else+ do tag <- Data.ProtoLens.Encoding.Bytes.getVarInt+ case tag of+ 8 -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (Prelude.fmap+ Prelude.fromIntegral+ Data.ProtoLens.Encoding.Bytes.getVarInt)+ "fail_time"+ loop+ (Lens.Family2.set (Data.ProtoLens.Field.field @"failTime") y x)+ 16+ -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (Prelude.fmap+ Prelude.fromIntegral+ Data.ProtoLens.Encoding.Bytes.getVarInt)+ "fail_amt_sat"+ loop+ (Lens.Family2.set (Data.ProtoLens.Field.field @"failAmtSat") y x)+ 32+ -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (Prelude.fmap+ Prelude.fromIntegral+ Data.ProtoLens.Encoding.Bytes.getVarInt)+ "fail_amt_msat"+ loop+ (Lens.Family2.set (Data.ProtoLens.Field.field @"failAmtMsat") y x)+ 40+ -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (Prelude.fmap+ Prelude.fromIntegral+ Data.ProtoLens.Encoding.Bytes.getVarInt)+ "success_time"+ loop+ (Lens.Family2.set (Data.ProtoLens.Field.field @"successTime") y x)+ 48+ -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (Prelude.fmap+ Prelude.fromIntegral+ Data.ProtoLens.Encoding.Bytes.getVarInt)+ "success_amt_sat"+ loop+ (Lens.Family2.set+ (Data.ProtoLens.Field.field @"successAmtSat") y x)+ 56+ -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (Prelude.fmap+ Prelude.fromIntegral+ Data.ProtoLens.Encoding.Bytes.getVarInt)+ "success_amt_msat"+ loop+ (Lens.Family2.set+ (Data.ProtoLens.Field.field @"successAmtMsat") y x)+ wire+ -> do !y <- Data.ProtoLens.Encoding.Wire.parseTaggedValueFromWire+ wire+ loop+ (Lens.Family2.over+ Data.ProtoLens.unknownFields (\ !t -> (:) y t) x)+ in+ (Data.ProtoLens.Encoding.Bytes.<?>)+ (do loop Data.ProtoLens.defMessage) "PairData"+ buildMessage+ = \ _x+ -> (Data.Monoid.<>)+ (let+ _v = Lens.Family2.view (Data.ProtoLens.Field.field @"failTime") _x+ in+ if (Prelude.==) _v Data.ProtoLens.fieldDefault then+ Data.Monoid.mempty+ else+ (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 8)+ ((Prelude..)+ Data.ProtoLens.Encoding.Bytes.putVarInt Prelude.fromIntegral _v))+ ((Data.Monoid.<>)+ (let+ _v+ = Lens.Family2.view (Data.ProtoLens.Field.field @"failAmtSat") _x+ in+ if (Prelude.==) _v Data.ProtoLens.fieldDefault then+ Data.Monoid.mempty+ else+ (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 16)+ ((Prelude..)+ Data.ProtoLens.Encoding.Bytes.putVarInt Prelude.fromIntegral _v))+ ((Data.Monoid.<>)+ (let+ _v+ = Lens.Family2.view (Data.ProtoLens.Field.field @"failAmtMsat") _x+ in+ if (Prelude.==) _v Data.ProtoLens.fieldDefault then+ Data.Monoid.mempty+ else+ (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 32)+ ((Prelude..)+ Data.ProtoLens.Encoding.Bytes.putVarInt Prelude.fromIntegral _v))+ ((Data.Monoid.<>)+ (let+ _v+ = Lens.Family2.view (Data.ProtoLens.Field.field @"successTime") _x+ in+ if (Prelude.==) _v Data.ProtoLens.fieldDefault then+ Data.Monoid.mempty+ else+ (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 40)+ ((Prelude..)+ Data.ProtoLens.Encoding.Bytes.putVarInt Prelude.fromIntegral _v))+ ((Data.Monoid.<>)+ (let+ _v+ = Lens.Family2.view+ (Data.ProtoLens.Field.field @"successAmtSat") _x+ in+ if (Prelude.==) _v Data.ProtoLens.fieldDefault then+ Data.Monoid.mempty+ else+ (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 48)+ ((Prelude..)+ Data.ProtoLens.Encoding.Bytes.putVarInt Prelude.fromIntegral+ _v))+ ((Data.Monoid.<>)+ (let+ _v+ = Lens.Family2.view+ (Data.ProtoLens.Field.field @"successAmtMsat") _x+ in+ if (Prelude.==) _v Data.ProtoLens.fieldDefault then+ Data.Monoid.mempty+ else+ (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 56)+ ((Prelude..)+ Data.ProtoLens.Encoding.Bytes.putVarInt Prelude.fromIntegral+ _v))+ (Data.ProtoLens.Encoding.Wire.buildFieldSet+ (Lens.Family2.view Data.ProtoLens.unknownFields _x)))))))+instance Control.DeepSeq.NFData PairData where+ rnf+ = \ x__+ -> Control.DeepSeq.deepseq+ (_PairData'_unknownFields x__)+ (Control.DeepSeq.deepseq+ (_PairData'failTime x__)+ (Control.DeepSeq.deepseq+ (_PairData'failAmtSat x__)+ (Control.DeepSeq.deepseq+ (_PairData'failAmtMsat x__)+ (Control.DeepSeq.deepseq+ (_PairData'successTime x__)+ (Control.DeepSeq.deepseq+ (_PairData'successAmtSat x__)+ (Control.DeepSeq.deepseq (_PairData'successAmtMsat x__) ()))))))+{- | Fields :+ + * 'Proto.Routerrpc.Router_Fields.nodeFrom' @:: Lens' PairHistory Data.ByteString.ByteString@+ * 'Proto.Routerrpc.Router_Fields.nodeTo' @:: Lens' PairHistory Data.ByteString.ByteString@+ * 'Proto.Routerrpc.Router_Fields.history' @:: Lens' PairHistory PairData@+ * 'Proto.Routerrpc.Router_Fields.maybe'history' @:: Lens' PairHistory (Prelude.Maybe PairData)@ -}+data PairHistory+ = PairHistory'_constructor {_PairHistory'nodeFrom :: !Data.ByteString.ByteString,+ _PairHistory'nodeTo :: !Data.ByteString.ByteString,+ _PairHistory'history :: !(Prelude.Maybe PairData),+ _PairHistory'_unknownFields :: !Data.ProtoLens.FieldSet}+ deriving stock (Prelude.Eq, Prelude.Ord, GHC.Generics.Generic)+instance Prelude.Show PairHistory where+ showsPrec _ __x __s+ = Prelude.showChar+ '{'+ (Prelude.showString+ (Data.ProtoLens.showMessageShort __x) (Prelude.showChar '}' __s))+instance Text.PrettyPrint.GenericPretty.Out PairHistory+instance Data.ProtoLens.Field.HasField PairHistory "nodeFrom" Data.ByteString.ByteString where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _PairHistory'nodeFrom+ (\ x__ y__ -> x__ {_PairHistory'nodeFrom = y__}))+ Prelude.id+instance Data.ProtoLens.Field.HasField PairHistory "nodeTo" Data.ByteString.ByteString where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _PairHistory'nodeTo (\ x__ y__ -> x__ {_PairHistory'nodeTo = y__}))+ Prelude.id+instance Data.ProtoLens.Field.HasField PairHistory "history" PairData where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _PairHistory'history+ (\ x__ y__ -> x__ {_PairHistory'history = y__}))+ (Data.ProtoLens.maybeLens Data.ProtoLens.defMessage)+instance Data.ProtoLens.Field.HasField PairHistory "maybe'history" (Prelude.Maybe PairData) where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _PairHistory'history+ (\ x__ y__ -> x__ {_PairHistory'history = y__}))+ Prelude.id+instance Data.ProtoLens.Message PairHistory where+ messageName _ = Data.Text.pack "routerrpc.PairHistory"+ packedMessageDescriptor _+ = "\n\+ \\vPairHistory\DC2\ESC\n\+ \\tnode_from\CAN\SOH \SOH(\fR\bnodeFrom\DC2\ETB\n\+ \\anode_to\CAN\STX \SOH(\fR\ACKnodeTo\DC2-\n\+ \\ahistory\CAN\a \SOH(\v2\DC3.routerrpc.PairDataR\ahistoryJ\EOT\b\ETX\DLE\EOTJ\EOT\b\EOT\DLE\ENQJ\EOT\b\ENQ\DLE\ACKJ\EOT\b\ACK\DLE\a"+ packedFileDescriptor _ = packedFileDescriptor+ fieldsByTag+ = let+ nodeFrom__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "node_from"+ (Data.ProtoLens.ScalarField Data.ProtoLens.BytesField ::+ Data.ProtoLens.FieldTypeDescriptor Data.ByteString.ByteString)+ (Data.ProtoLens.PlainField+ Data.ProtoLens.Optional+ (Data.ProtoLens.Field.field @"nodeFrom")) ::+ Data.ProtoLens.FieldDescriptor PairHistory+ nodeTo__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "node_to"+ (Data.ProtoLens.ScalarField Data.ProtoLens.BytesField ::+ Data.ProtoLens.FieldTypeDescriptor Data.ByteString.ByteString)+ (Data.ProtoLens.PlainField+ Data.ProtoLens.Optional (Data.ProtoLens.Field.field @"nodeTo")) ::+ Data.ProtoLens.FieldDescriptor PairHistory+ history__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "history"+ (Data.ProtoLens.MessageField Data.ProtoLens.MessageType ::+ Data.ProtoLens.FieldTypeDescriptor PairData)+ (Data.ProtoLens.OptionalField+ (Data.ProtoLens.Field.field @"maybe'history")) ::+ Data.ProtoLens.FieldDescriptor PairHistory+ in+ Data.Map.fromList+ [(Data.ProtoLens.Tag 1, nodeFrom__field_descriptor),+ (Data.ProtoLens.Tag 2, nodeTo__field_descriptor),+ (Data.ProtoLens.Tag 7, history__field_descriptor)]+ unknownFields+ = Lens.Family2.Unchecked.lens+ _PairHistory'_unknownFields+ (\ x__ y__ -> x__ {_PairHistory'_unknownFields = y__})+ defMessage+ = PairHistory'_constructor+ {_PairHistory'nodeFrom = Data.ProtoLens.fieldDefault,+ _PairHistory'nodeTo = Data.ProtoLens.fieldDefault,+ _PairHistory'history = Prelude.Nothing,+ _PairHistory'_unknownFields = []}+ parseMessage+ = let+ loop ::+ PairHistory -> Data.ProtoLens.Encoding.Bytes.Parser PairHistory+ loop x+ = do end <- Data.ProtoLens.Encoding.Bytes.atEnd+ if end then+ do (let missing = []+ in+ if Prelude.null missing then+ Prelude.return ()+ else+ Prelude.fail+ ((Prelude.++)+ "Missing required fields: "+ (Prelude.show (missing :: [Prelude.String]))))+ Prelude.return+ (Lens.Family2.over+ Data.ProtoLens.unknownFields (\ !t -> Prelude.reverse t) x)+ else+ do tag <- Data.ProtoLens.Encoding.Bytes.getVarInt+ case tag of+ 10+ -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (do len <- Data.ProtoLens.Encoding.Bytes.getVarInt+ Data.ProtoLens.Encoding.Bytes.getBytes+ (Prelude.fromIntegral len))+ "node_from"+ loop+ (Lens.Family2.set (Data.ProtoLens.Field.field @"nodeFrom") y x)+ 18+ -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (do len <- Data.ProtoLens.Encoding.Bytes.getVarInt+ Data.ProtoLens.Encoding.Bytes.getBytes+ (Prelude.fromIntegral len))+ "node_to"+ loop (Lens.Family2.set (Data.ProtoLens.Field.field @"nodeTo") y x)+ 58+ -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (do len <- Data.ProtoLens.Encoding.Bytes.getVarInt+ Data.ProtoLens.Encoding.Bytes.isolate+ (Prelude.fromIntegral len) Data.ProtoLens.parseMessage)+ "history"+ loop (Lens.Family2.set (Data.ProtoLens.Field.field @"history") y x)+ wire+ -> do !y <- Data.ProtoLens.Encoding.Wire.parseTaggedValueFromWire+ wire+ loop+ (Lens.Family2.over+ Data.ProtoLens.unknownFields (\ !t -> (:) y t) x)+ in+ (Data.ProtoLens.Encoding.Bytes.<?>)+ (do loop Data.ProtoLens.defMessage) "PairHistory"+ buildMessage+ = \ _x+ -> (Data.Monoid.<>)+ (let+ _v = Lens.Family2.view (Data.ProtoLens.Field.field @"nodeFrom") _x+ in+ if (Prelude.==) _v Data.ProtoLens.fieldDefault then+ Data.Monoid.mempty+ else+ (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 10)+ ((\ bs+ -> (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt+ (Prelude.fromIntegral (Data.ByteString.length bs)))+ (Data.ProtoLens.Encoding.Bytes.putBytes bs))+ _v))+ ((Data.Monoid.<>)+ (let+ _v = Lens.Family2.view (Data.ProtoLens.Field.field @"nodeTo") _x+ in+ if (Prelude.==) _v Data.ProtoLens.fieldDefault then+ Data.Monoid.mempty+ else+ (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 18)+ ((\ bs+ -> (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt+ (Prelude.fromIntegral (Data.ByteString.length bs)))+ (Data.ProtoLens.Encoding.Bytes.putBytes bs))+ _v))+ ((Data.Monoid.<>)+ (case+ Lens.Family2.view (Data.ProtoLens.Field.field @"maybe'history") _x+ of+ Prelude.Nothing -> Data.Monoid.mempty+ (Prelude.Just _v)+ -> (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 58)+ ((Prelude..)+ (\ bs+ -> (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt+ (Prelude.fromIntegral (Data.ByteString.length bs)))+ (Data.ProtoLens.Encoding.Bytes.putBytes bs))+ Data.ProtoLens.encodeMessage _v))+ (Data.ProtoLens.Encoding.Wire.buildFieldSet+ (Lens.Family2.view Data.ProtoLens.unknownFields _x))))+instance Control.DeepSeq.NFData PairHistory where+ rnf+ = \ x__+ -> Control.DeepSeq.deepseq+ (_PairHistory'_unknownFields x__)+ (Control.DeepSeq.deepseq+ (_PairHistory'nodeFrom x__)+ (Control.DeepSeq.deepseq+ (_PairHistory'nodeTo x__)+ (Control.DeepSeq.deepseq (_PairHistory'history x__) ())))+newtype PaymentState'UnrecognizedValue+ = PaymentState'UnrecognizedValue Data.Int.Int32+ deriving stock (Prelude.Eq,+ Prelude.Ord,+ Prelude.Show,+ GHC.Generics.Generic)+instance Text.PrettyPrint.GenericPretty.Out PaymentState'UnrecognizedValue+data PaymentState+ = IN_FLIGHT |+ SUCCEEDED |+ FAILED_TIMEOUT |+ FAILED_NO_ROUTE |+ FAILED_ERROR |+ FAILED_INCORRECT_PAYMENT_DETAILS |+ FAILED_INSUFFICIENT_BALANCE |+ PaymentState'Unrecognized !PaymentState'UnrecognizedValue+ deriving stock (Prelude.Show,+ Prelude.Eq,+ Prelude.Ord,+ GHC.Generics.Generic)+instance Data.ProtoLens.MessageEnum PaymentState where+ maybeToEnum 0 = Prelude.Just IN_FLIGHT+ maybeToEnum 1 = Prelude.Just SUCCEEDED+ maybeToEnum 2 = Prelude.Just FAILED_TIMEOUT+ maybeToEnum 3 = Prelude.Just FAILED_NO_ROUTE+ maybeToEnum 4 = Prelude.Just FAILED_ERROR+ maybeToEnum 5 = Prelude.Just FAILED_INCORRECT_PAYMENT_DETAILS+ maybeToEnum 6 = Prelude.Just FAILED_INSUFFICIENT_BALANCE+ maybeToEnum k+ = Prelude.Just+ (PaymentState'Unrecognized+ (PaymentState'UnrecognizedValue (Prelude.fromIntegral k)))+ showEnum IN_FLIGHT = "IN_FLIGHT"+ showEnum SUCCEEDED = "SUCCEEDED"+ showEnum FAILED_TIMEOUT = "FAILED_TIMEOUT"+ showEnum FAILED_NO_ROUTE = "FAILED_NO_ROUTE"+ showEnum FAILED_ERROR = "FAILED_ERROR"+ showEnum FAILED_INCORRECT_PAYMENT_DETAILS+ = "FAILED_INCORRECT_PAYMENT_DETAILS"+ showEnum FAILED_INSUFFICIENT_BALANCE+ = "FAILED_INSUFFICIENT_BALANCE"+ showEnum+ (PaymentState'Unrecognized (PaymentState'UnrecognizedValue k))+ = Prelude.show k+ readEnum k+ | (Prelude.==) k "IN_FLIGHT" = Prelude.Just IN_FLIGHT+ | (Prelude.==) k "SUCCEEDED" = Prelude.Just SUCCEEDED+ | (Prelude.==) k "FAILED_TIMEOUT" = Prelude.Just FAILED_TIMEOUT+ | (Prelude.==) k "FAILED_NO_ROUTE" = Prelude.Just FAILED_NO_ROUTE+ | (Prelude.==) k "FAILED_ERROR" = Prelude.Just FAILED_ERROR+ | (Prelude.==) k "FAILED_INCORRECT_PAYMENT_DETAILS"+ = Prelude.Just FAILED_INCORRECT_PAYMENT_DETAILS+ | (Prelude.==) k "FAILED_INSUFFICIENT_BALANCE"+ = Prelude.Just FAILED_INSUFFICIENT_BALANCE+ | Prelude.otherwise+ = (Prelude.>>=) (Text.Read.readMaybe k) Data.ProtoLens.maybeToEnum+instance Prelude.Bounded PaymentState where+ minBound = IN_FLIGHT+ maxBound = FAILED_INSUFFICIENT_BALANCE+instance Prelude.Enum PaymentState where+ toEnum k__+ = Prelude.maybe+ (Prelude.error+ ((Prelude.++)+ "toEnum: unknown value for enum PaymentState: "+ (Prelude.show k__)))+ Prelude.id (Data.ProtoLens.maybeToEnum k__)+ fromEnum IN_FLIGHT = 0+ fromEnum SUCCEEDED = 1+ fromEnum FAILED_TIMEOUT = 2+ fromEnum FAILED_NO_ROUTE = 3+ fromEnum FAILED_ERROR = 4+ fromEnum FAILED_INCORRECT_PAYMENT_DETAILS = 5+ fromEnum FAILED_INSUFFICIENT_BALANCE = 6+ fromEnum+ (PaymentState'Unrecognized (PaymentState'UnrecognizedValue k))+ = Prelude.fromIntegral k+ succ FAILED_INSUFFICIENT_BALANCE+ = Prelude.error+ "PaymentState.succ: bad argument FAILED_INSUFFICIENT_BALANCE. This value would be out of bounds."+ succ IN_FLIGHT = SUCCEEDED+ succ SUCCEEDED = FAILED_TIMEOUT+ succ FAILED_TIMEOUT = FAILED_NO_ROUTE+ succ FAILED_NO_ROUTE = FAILED_ERROR+ succ FAILED_ERROR = FAILED_INCORRECT_PAYMENT_DETAILS+ succ FAILED_INCORRECT_PAYMENT_DETAILS = FAILED_INSUFFICIENT_BALANCE+ succ (PaymentState'Unrecognized _)+ = Prelude.error+ "PaymentState.succ: bad argument: unrecognized value"+ pred IN_FLIGHT+ = Prelude.error+ "PaymentState.pred: bad argument IN_FLIGHT. This value would be out of bounds."+ pred SUCCEEDED = IN_FLIGHT+ pred FAILED_TIMEOUT = SUCCEEDED+ pred FAILED_NO_ROUTE = FAILED_TIMEOUT+ pred FAILED_ERROR = FAILED_NO_ROUTE+ pred FAILED_INCORRECT_PAYMENT_DETAILS = FAILED_ERROR+ pred FAILED_INSUFFICIENT_BALANCE = FAILED_INCORRECT_PAYMENT_DETAILS+ pred (PaymentState'Unrecognized _)+ = Prelude.error+ "PaymentState.pred: bad argument: unrecognized value"+ enumFrom = Data.ProtoLens.Message.Enum.messageEnumFrom+ enumFromTo = Data.ProtoLens.Message.Enum.messageEnumFromTo+ enumFromThen = Data.ProtoLens.Message.Enum.messageEnumFromThen+ enumFromThenTo = Data.ProtoLens.Message.Enum.messageEnumFromThenTo+instance Data.ProtoLens.FieldDefault PaymentState where+ fieldDefault = IN_FLIGHT+instance Control.DeepSeq.NFData PaymentState where+ rnf x__ = Prelude.seq x__ ()+instance Text.PrettyPrint.GenericPretty.Out PaymentState+{- | Fields :+ + * 'Proto.Routerrpc.Router_Fields.state' @:: Lens' PaymentStatus PaymentState@+ * 'Proto.Routerrpc.Router_Fields.preimage' @:: Lens' PaymentStatus Data.ByteString.ByteString@+ * 'Proto.Routerrpc.Router_Fields.htlcs' @:: Lens' PaymentStatus [Proto.Lnrpc.Ln1.HTLCAttempt]@+ * 'Proto.Routerrpc.Router_Fields.vec'htlcs' @:: Lens' PaymentStatus (Data.Vector.Vector Proto.Lnrpc.Ln1.HTLCAttempt)@ -}+data PaymentStatus+ = PaymentStatus'_constructor {_PaymentStatus'state :: !PaymentState,+ _PaymentStatus'preimage :: !Data.ByteString.ByteString,+ _PaymentStatus'htlcs :: !(Data.Vector.Vector Proto.Lnrpc.Ln1.HTLCAttempt),+ _PaymentStatus'_unknownFields :: !Data.ProtoLens.FieldSet}+ deriving stock (Prelude.Eq, Prelude.Ord, GHC.Generics.Generic)+instance Prelude.Show PaymentStatus where+ showsPrec _ __x __s+ = Prelude.showChar+ '{'+ (Prelude.showString+ (Data.ProtoLens.showMessageShort __x) (Prelude.showChar '}' __s))+instance Text.PrettyPrint.GenericPretty.Out PaymentStatus+instance Data.ProtoLens.Field.HasField PaymentStatus "state" PaymentState where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _PaymentStatus'state+ (\ x__ y__ -> x__ {_PaymentStatus'state = y__}))+ Prelude.id+instance Data.ProtoLens.Field.HasField PaymentStatus "preimage" Data.ByteString.ByteString where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _PaymentStatus'preimage+ (\ x__ y__ -> x__ {_PaymentStatus'preimage = y__}))+ Prelude.id+instance Data.ProtoLens.Field.HasField PaymentStatus "htlcs" [Proto.Lnrpc.Ln1.HTLCAttempt] where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _PaymentStatus'htlcs+ (\ x__ y__ -> x__ {_PaymentStatus'htlcs = y__}))+ (Lens.Family2.Unchecked.lens+ Data.Vector.Generic.toList+ (\ _ y__ -> Data.Vector.Generic.fromList y__))+instance Data.ProtoLens.Field.HasField PaymentStatus "vec'htlcs" (Data.Vector.Vector Proto.Lnrpc.Ln1.HTLCAttempt) where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _PaymentStatus'htlcs+ (\ x__ y__ -> x__ {_PaymentStatus'htlcs = y__}))+ Prelude.id+instance Data.ProtoLens.Message PaymentStatus where+ messageName _ = Data.Text.pack "routerrpc.PaymentStatus"+ packedMessageDescriptor _+ = "\n\+ \\rPaymentStatus\DC2-\n\+ \\ENQstate\CAN\SOH \SOH(\SO2\ETB.routerrpc.PaymentStateR\ENQstate\DC2\SUB\n\+ \\bpreimage\CAN\STX \SOH(\fR\bpreimage\DC2(\n\+ \\ENQhtlcs\CAN\EOT \ETX(\v2\DC2.lnrpc.HTLCAttemptR\ENQhtlcsJ\EOT\b\ETX\DLE\EOT"+ packedFileDescriptor _ = packedFileDescriptor+ fieldsByTag+ = let+ state__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "state"+ (Data.ProtoLens.ScalarField Data.ProtoLens.EnumField ::+ Data.ProtoLens.FieldTypeDescriptor PaymentState)+ (Data.ProtoLens.PlainField+ Data.ProtoLens.Optional (Data.ProtoLens.Field.field @"state")) ::+ Data.ProtoLens.FieldDescriptor PaymentStatus+ preimage__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "preimage"+ (Data.ProtoLens.ScalarField Data.ProtoLens.BytesField ::+ Data.ProtoLens.FieldTypeDescriptor Data.ByteString.ByteString)+ (Data.ProtoLens.PlainField+ Data.ProtoLens.Optional+ (Data.ProtoLens.Field.field @"preimage")) ::+ Data.ProtoLens.FieldDescriptor PaymentStatus+ htlcs__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "htlcs"+ (Data.ProtoLens.MessageField Data.ProtoLens.MessageType ::+ Data.ProtoLens.FieldTypeDescriptor Proto.Lnrpc.Ln1.HTLCAttempt)+ (Data.ProtoLens.RepeatedField+ Data.ProtoLens.Unpacked (Data.ProtoLens.Field.field @"htlcs")) ::+ Data.ProtoLens.FieldDescriptor PaymentStatus+ in+ Data.Map.fromList+ [(Data.ProtoLens.Tag 1, state__field_descriptor),+ (Data.ProtoLens.Tag 2, preimage__field_descriptor),+ (Data.ProtoLens.Tag 4, htlcs__field_descriptor)]+ unknownFields+ = Lens.Family2.Unchecked.lens+ _PaymentStatus'_unknownFields+ (\ x__ y__ -> x__ {_PaymentStatus'_unknownFields = y__})+ defMessage+ = PaymentStatus'_constructor+ {_PaymentStatus'state = Data.ProtoLens.fieldDefault,+ _PaymentStatus'preimage = Data.ProtoLens.fieldDefault,+ _PaymentStatus'htlcs = Data.Vector.Generic.empty,+ _PaymentStatus'_unknownFields = []}+ parseMessage+ = let+ loop ::+ PaymentStatus+ -> Data.ProtoLens.Encoding.Growing.Growing Data.Vector.Vector Data.ProtoLens.Encoding.Growing.RealWorld Proto.Lnrpc.Ln1.HTLCAttempt+ -> Data.ProtoLens.Encoding.Bytes.Parser PaymentStatus+ loop x mutable'htlcs+ = do end <- Data.ProtoLens.Encoding.Bytes.atEnd+ if end then+ do frozen'htlcs <- Data.ProtoLens.Encoding.Parser.Unsafe.unsafeLiftIO+ (Data.ProtoLens.Encoding.Growing.unsafeFreeze mutable'htlcs)+ (let missing = []+ in+ if Prelude.null missing then+ Prelude.return ()+ else+ Prelude.fail+ ((Prelude.++)+ "Missing required fields: "+ (Prelude.show (missing :: [Prelude.String]))))+ Prelude.return+ (Lens.Family2.over+ Data.ProtoLens.unknownFields (\ !t -> Prelude.reverse t)+ (Lens.Family2.set+ (Data.ProtoLens.Field.field @"vec'htlcs") frozen'htlcs x))+ else+ do tag <- Data.ProtoLens.Encoding.Bytes.getVarInt+ case tag of+ 8 -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (Prelude.fmap+ Prelude.toEnum+ (Prelude.fmap+ Prelude.fromIntegral+ Data.ProtoLens.Encoding.Bytes.getVarInt))+ "state"+ loop+ (Lens.Family2.set (Data.ProtoLens.Field.field @"state") y x)+ mutable'htlcs+ 18+ -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (do len <- Data.ProtoLens.Encoding.Bytes.getVarInt+ Data.ProtoLens.Encoding.Bytes.getBytes+ (Prelude.fromIntegral len))+ "preimage"+ loop+ (Lens.Family2.set (Data.ProtoLens.Field.field @"preimage") y x)+ mutable'htlcs+ 34+ -> do !y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (do len <- Data.ProtoLens.Encoding.Bytes.getVarInt+ Data.ProtoLens.Encoding.Bytes.isolate+ (Prelude.fromIntegral len)+ Data.ProtoLens.parseMessage)+ "htlcs"+ v <- Data.ProtoLens.Encoding.Parser.Unsafe.unsafeLiftIO+ (Data.ProtoLens.Encoding.Growing.append mutable'htlcs y)+ loop x v+ wire+ -> do !y <- Data.ProtoLens.Encoding.Wire.parseTaggedValueFromWire+ wire+ loop+ (Lens.Family2.over+ Data.ProtoLens.unknownFields (\ !t -> (:) y t) x)+ mutable'htlcs+ in+ (Data.ProtoLens.Encoding.Bytes.<?>)+ (do mutable'htlcs <- Data.ProtoLens.Encoding.Parser.Unsafe.unsafeLiftIO+ Data.ProtoLens.Encoding.Growing.new+ loop Data.ProtoLens.defMessage mutable'htlcs)+ "PaymentStatus"+ buildMessage+ = \ _x+ -> (Data.Monoid.<>)+ (let+ _v = Lens.Family2.view (Data.ProtoLens.Field.field @"state") _x+ in+ if (Prelude.==) _v Data.ProtoLens.fieldDefault then+ Data.Monoid.mempty+ else+ (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 8)+ ((Prelude..)+ ((Prelude..)+ Data.ProtoLens.Encoding.Bytes.putVarInt Prelude.fromIntegral)+ Prelude.fromEnum _v))+ ((Data.Monoid.<>)+ (let+ _v = Lens.Family2.view (Data.ProtoLens.Field.field @"preimage") _x+ in+ if (Prelude.==) _v Data.ProtoLens.fieldDefault then+ Data.Monoid.mempty+ else+ (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 18)+ ((\ bs+ -> (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt+ (Prelude.fromIntegral (Data.ByteString.length bs)))+ (Data.ProtoLens.Encoding.Bytes.putBytes bs))+ _v))+ ((Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.foldMapBuilder+ (\ _v+ -> (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 34)+ ((Prelude..)+ (\ bs+ -> (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt+ (Prelude.fromIntegral (Data.ByteString.length bs)))+ (Data.ProtoLens.Encoding.Bytes.putBytes bs))+ Data.ProtoLens.encodeMessage _v))+ (Lens.Family2.view (Data.ProtoLens.Field.field @"vec'htlcs") _x))+ (Data.ProtoLens.Encoding.Wire.buildFieldSet+ (Lens.Family2.view Data.ProtoLens.unknownFields _x))))+instance Control.DeepSeq.NFData PaymentStatus where+ rnf+ = \ x__+ -> Control.DeepSeq.deepseq+ (_PaymentStatus'_unknownFields x__)+ (Control.DeepSeq.deepseq+ (_PaymentStatus'state x__)+ (Control.DeepSeq.deepseq+ (_PaymentStatus'preimage x__)+ (Control.DeepSeq.deepseq (_PaymentStatus'htlcs x__) ())))+{- | Fields :+ -}+data QueryMissionControlRequest+ = QueryMissionControlRequest'_constructor {_QueryMissionControlRequest'_unknownFields :: !Data.ProtoLens.FieldSet}+ deriving stock (Prelude.Eq, Prelude.Ord, GHC.Generics.Generic)+instance Prelude.Show QueryMissionControlRequest where+ showsPrec _ __x __s+ = Prelude.showChar+ '{'+ (Prelude.showString+ (Data.ProtoLens.showMessageShort __x) (Prelude.showChar '}' __s))+instance Text.PrettyPrint.GenericPretty.Out QueryMissionControlRequest+instance Data.ProtoLens.Message QueryMissionControlRequest where+ messageName _+ = Data.Text.pack "routerrpc.QueryMissionControlRequest"+ packedMessageDescriptor _+ = "\n\+ \\SUBQueryMissionControlRequest"+ packedFileDescriptor _ = packedFileDescriptor+ fieldsByTag = let in Data.Map.fromList []+ unknownFields+ = Lens.Family2.Unchecked.lens+ _QueryMissionControlRequest'_unknownFields+ (\ x__ y__+ -> x__ {_QueryMissionControlRequest'_unknownFields = y__})+ defMessage+ = QueryMissionControlRequest'_constructor+ {_QueryMissionControlRequest'_unknownFields = []}+ parseMessage+ = let+ loop ::+ QueryMissionControlRequest+ -> Data.ProtoLens.Encoding.Bytes.Parser QueryMissionControlRequest+ loop x+ = do end <- Data.ProtoLens.Encoding.Bytes.atEnd+ if end then+ do (let missing = []+ in+ if Prelude.null missing then+ Prelude.return ()+ else+ Prelude.fail+ ((Prelude.++)+ "Missing required fields: "+ (Prelude.show (missing :: [Prelude.String]))))+ Prelude.return+ (Lens.Family2.over+ Data.ProtoLens.unknownFields (\ !t -> Prelude.reverse t) x)+ else+ do tag <- Data.ProtoLens.Encoding.Bytes.getVarInt+ case tag of {+ wire+ -> do !y <- Data.ProtoLens.Encoding.Wire.parseTaggedValueFromWire+ wire+ loop+ (Lens.Family2.over+ Data.ProtoLens.unknownFields (\ !t -> (:) y t) x) }+ in+ (Data.ProtoLens.Encoding.Bytes.<?>)+ (do loop Data.ProtoLens.defMessage) "QueryMissionControlRequest"+ buildMessage+ = \ _x+ -> Data.ProtoLens.Encoding.Wire.buildFieldSet+ (Lens.Family2.view Data.ProtoLens.unknownFields _x)+instance Control.DeepSeq.NFData QueryMissionControlRequest where+ rnf+ = \ x__+ -> Control.DeepSeq.deepseq+ (_QueryMissionControlRequest'_unknownFields x__) ()+{- | Fields :+ + * 'Proto.Routerrpc.Router_Fields.pairs' @:: Lens' QueryMissionControlResponse [PairHistory]@+ * 'Proto.Routerrpc.Router_Fields.vec'pairs' @:: Lens' QueryMissionControlResponse (Data.Vector.Vector PairHistory)@ -}+data QueryMissionControlResponse+ = QueryMissionControlResponse'_constructor {_QueryMissionControlResponse'pairs :: !(Data.Vector.Vector PairHistory),+ _QueryMissionControlResponse'_unknownFields :: !Data.ProtoLens.FieldSet}+ deriving stock (Prelude.Eq, Prelude.Ord, GHC.Generics.Generic)+instance Prelude.Show QueryMissionControlResponse where+ showsPrec _ __x __s+ = Prelude.showChar+ '{'+ (Prelude.showString+ (Data.ProtoLens.showMessageShort __x) (Prelude.showChar '}' __s))+instance Text.PrettyPrint.GenericPretty.Out QueryMissionControlResponse+instance Data.ProtoLens.Field.HasField QueryMissionControlResponse "pairs" [PairHistory] where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _QueryMissionControlResponse'pairs+ (\ x__ y__ -> x__ {_QueryMissionControlResponse'pairs = y__}))+ (Lens.Family2.Unchecked.lens+ Data.Vector.Generic.toList+ (\ _ y__ -> Data.Vector.Generic.fromList y__))+instance Data.ProtoLens.Field.HasField QueryMissionControlResponse "vec'pairs" (Data.Vector.Vector PairHistory) where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _QueryMissionControlResponse'pairs+ (\ x__ y__ -> x__ {_QueryMissionControlResponse'pairs = y__}))+ Prelude.id+instance Data.ProtoLens.Message QueryMissionControlResponse where+ messageName _+ = Data.Text.pack "routerrpc.QueryMissionControlResponse"+ packedMessageDescriptor _+ = "\n\+ \\ESCQueryMissionControlResponse\DC2,\n\+ \\ENQpairs\CAN\STX \ETX(\v2\SYN.routerrpc.PairHistoryR\ENQpairsJ\EOT\b\SOH\DLE\STX"+ packedFileDescriptor _ = packedFileDescriptor+ fieldsByTag+ = let+ pairs__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "pairs"+ (Data.ProtoLens.MessageField Data.ProtoLens.MessageType ::+ Data.ProtoLens.FieldTypeDescriptor PairHistory)+ (Data.ProtoLens.RepeatedField+ Data.ProtoLens.Unpacked (Data.ProtoLens.Field.field @"pairs")) ::+ Data.ProtoLens.FieldDescriptor QueryMissionControlResponse+ in+ Data.Map.fromList [(Data.ProtoLens.Tag 2, pairs__field_descriptor)]+ unknownFields+ = Lens.Family2.Unchecked.lens+ _QueryMissionControlResponse'_unknownFields+ (\ x__ y__+ -> x__ {_QueryMissionControlResponse'_unknownFields = y__})+ defMessage+ = QueryMissionControlResponse'_constructor+ {_QueryMissionControlResponse'pairs = Data.Vector.Generic.empty,+ _QueryMissionControlResponse'_unknownFields = []}+ parseMessage+ = let+ loop ::+ QueryMissionControlResponse+ -> Data.ProtoLens.Encoding.Growing.Growing Data.Vector.Vector Data.ProtoLens.Encoding.Growing.RealWorld PairHistory+ -> Data.ProtoLens.Encoding.Bytes.Parser QueryMissionControlResponse+ loop x mutable'pairs+ = do end <- Data.ProtoLens.Encoding.Bytes.atEnd+ if end then+ do frozen'pairs <- Data.ProtoLens.Encoding.Parser.Unsafe.unsafeLiftIO+ (Data.ProtoLens.Encoding.Growing.unsafeFreeze mutable'pairs)+ (let missing = []+ in+ if Prelude.null missing then+ Prelude.return ()+ else+ Prelude.fail+ ((Prelude.++)+ "Missing required fields: "+ (Prelude.show (missing :: [Prelude.String]))))+ Prelude.return+ (Lens.Family2.over+ Data.ProtoLens.unknownFields (\ !t -> Prelude.reverse t)+ (Lens.Family2.set+ (Data.ProtoLens.Field.field @"vec'pairs") frozen'pairs x))+ else+ do tag <- Data.ProtoLens.Encoding.Bytes.getVarInt+ case tag of+ 18+ -> do !y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (do len <- Data.ProtoLens.Encoding.Bytes.getVarInt+ Data.ProtoLens.Encoding.Bytes.isolate+ (Prelude.fromIntegral len)+ Data.ProtoLens.parseMessage)+ "pairs"+ v <- Data.ProtoLens.Encoding.Parser.Unsafe.unsafeLiftIO+ (Data.ProtoLens.Encoding.Growing.append mutable'pairs y)+ loop x v+ wire+ -> do !y <- Data.ProtoLens.Encoding.Wire.parseTaggedValueFromWire+ wire+ loop+ (Lens.Family2.over+ Data.ProtoLens.unknownFields (\ !t -> (:) y t) x)+ mutable'pairs+ in+ (Data.ProtoLens.Encoding.Bytes.<?>)+ (do mutable'pairs <- Data.ProtoLens.Encoding.Parser.Unsafe.unsafeLiftIO+ Data.ProtoLens.Encoding.Growing.new+ loop Data.ProtoLens.defMessage mutable'pairs)+ "QueryMissionControlResponse"+ buildMessage+ = \ _x+ -> (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.foldMapBuilder+ (\ _v+ -> (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 18)+ ((Prelude..)+ (\ bs+ -> (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt+ (Prelude.fromIntegral (Data.ByteString.length bs)))+ (Data.ProtoLens.Encoding.Bytes.putBytes bs))+ Data.ProtoLens.encodeMessage _v))+ (Lens.Family2.view (Data.ProtoLens.Field.field @"vec'pairs") _x))+ (Data.ProtoLens.Encoding.Wire.buildFieldSet+ (Lens.Family2.view Data.ProtoLens.unknownFields _x))+instance Control.DeepSeq.NFData QueryMissionControlResponse where+ rnf+ = \ x__+ -> Control.DeepSeq.deepseq+ (_QueryMissionControlResponse'_unknownFields x__)+ (Control.DeepSeq.deepseq+ (_QueryMissionControlResponse'pairs x__) ())+{- | Fields :+ + * 'Proto.Routerrpc.Router_Fields.fromNode' @:: Lens' QueryProbabilityRequest Data.ByteString.ByteString@+ * 'Proto.Routerrpc.Router_Fields.toNode' @:: Lens' QueryProbabilityRequest Data.ByteString.ByteString@+ * 'Proto.Routerrpc.Router_Fields.amtMsat' @:: Lens' QueryProbabilityRequest Data.Int.Int64@ -}+data QueryProbabilityRequest+ = QueryProbabilityRequest'_constructor {_QueryProbabilityRequest'fromNode :: !Data.ByteString.ByteString,+ _QueryProbabilityRequest'toNode :: !Data.ByteString.ByteString,+ _QueryProbabilityRequest'amtMsat :: !Data.Int.Int64,+ _QueryProbabilityRequest'_unknownFields :: !Data.ProtoLens.FieldSet}+ deriving stock (Prelude.Eq, Prelude.Ord, GHC.Generics.Generic)+instance Prelude.Show QueryProbabilityRequest where+ showsPrec _ __x __s+ = Prelude.showChar+ '{'+ (Prelude.showString+ (Data.ProtoLens.showMessageShort __x) (Prelude.showChar '}' __s))+instance Text.PrettyPrint.GenericPretty.Out QueryProbabilityRequest+instance Data.ProtoLens.Field.HasField QueryProbabilityRequest "fromNode" Data.ByteString.ByteString where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _QueryProbabilityRequest'fromNode+ (\ x__ y__ -> x__ {_QueryProbabilityRequest'fromNode = y__}))+ Prelude.id+instance Data.ProtoLens.Field.HasField QueryProbabilityRequest "toNode" Data.ByteString.ByteString where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _QueryProbabilityRequest'toNode+ (\ x__ y__ -> x__ {_QueryProbabilityRequest'toNode = y__}))+ Prelude.id+instance Data.ProtoLens.Field.HasField QueryProbabilityRequest "amtMsat" Data.Int.Int64 where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _QueryProbabilityRequest'amtMsat+ (\ x__ y__ -> x__ {_QueryProbabilityRequest'amtMsat = y__}))+ Prelude.id+instance Data.ProtoLens.Message QueryProbabilityRequest where+ messageName _ = Data.Text.pack "routerrpc.QueryProbabilityRequest"+ packedMessageDescriptor _+ = "\n\+ \\ETBQueryProbabilityRequest\DC2\ESC\n\+ \\tfrom_node\CAN\SOH \SOH(\fR\bfromNode\DC2\ETB\n\+ \\ato_node\CAN\STX \SOH(\fR\ACKtoNode\DC2\EM\n\+ \\bamt_msat\CAN\ETX \SOH(\ETXR\aamtMsat"+ packedFileDescriptor _ = packedFileDescriptor+ fieldsByTag+ = let+ fromNode__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "from_node"+ (Data.ProtoLens.ScalarField Data.ProtoLens.BytesField ::+ Data.ProtoLens.FieldTypeDescriptor Data.ByteString.ByteString)+ (Data.ProtoLens.PlainField+ Data.ProtoLens.Optional+ (Data.ProtoLens.Field.field @"fromNode")) ::+ Data.ProtoLens.FieldDescriptor QueryProbabilityRequest+ toNode__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "to_node"+ (Data.ProtoLens.ScalarField Data.ProtoLens.BytesField ::+ Data.ProtoLens.FieldTypeDescriptor Data.ByteString.ByteString)+ (Data.ProtoLens.PlainField+ Data.ProtoLens.Optional (Data.ProtoLens.Field.field @"toNode")) ::+ Data.ProtoLens.FieldDescriptor QueryProbabilityRequest+ amtMsat__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "amt_msat"+ (Data.ProtoLens.ScalarField Data.ProtoLens.Int64Field ::+ Data.ProtoLens.FieldTypeDescriptor Data.Int.Int64)+ (Data.ProtoLens.PlainField+ Data.ProtoLens.Optional (Data.ProtoLens.Field.field @"amtMsat")) ::+ Data.ProtoLens.FieldDescriptor QueryProbabilityRequest+ in+ Data.Map.fromList+ [(Data.ProtoLens.Tag 1, fromNode__field_descriptor),+ (Data.ProtoLens.Tag 2, toNode__field_descriptor),+ (Data.ProtoLens.Tag 3, amtMsat__field_descriptor)]+ unknownFields+ = Lens.Family2.Unchecked.lens+ _QueryProbabilityRequest'_unknownFields+ (\ x__ y__ -> x__ {_QueryProbabilityRequest'_unknownFields = y__})+ defMessage+ = QueryProbabilityRequest'_constructor+ {_QueryProbabilityRequest'fromNode = Data.ProtoLens.fieldDefault,+ _QueryProbabilityRequest'toNode = Data.ProtoLens.fieldDefault,+ _QueryProbabilityRequest'amtMsat = Data.ProtoLens.fieldDefault,+ _QueryProbabilityRequest'_unknownFields = []}+ parseMessage+ = let+ loop ::+ QueryProbabilityRequest+ -> Data.ProtoLens.Encoding.Bytes.Parser QueryProbabilityRequest+ loop x+ = do end <- Data.ProtoLens.Encoding.Bytes.atEnd+ if end then+ do (let missing = []+ in+ if Prelude.null missing then+ Prelude.return ()+ else+ Prelude.fail+ ((Prelude.++)+ "Missing required fields: "+ (Prelude.show (missing :: [Prelude.String]))))+ Prelude.return+ (Lens.Family2.over+ Data.ProtoLens.unknownFields (\ !t -> Prelude.reverse t) x)+ else+ do tag <- Data.ProtoLens.Encoding.Bytes.getVarInt+ case tag of+ 10+ -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (do len <- Data.ProtoLens.Encoding.Bytes.getVarInt+ Data.ProtoLens.Encoding.Bytes.getBytes+ (Prelude.fromIntegral len))+ "from_node"+ loop+ (Lens.Family2.set (Data.ProtoLens.Field.field @"fromNode") y x)+ 18+ -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (do len <- Data.ProtoLens.Encoding.Bytes.getVarInt+ Data.ProtoLens.Encoding.Bytes.getBytes+ (Prelude.fromIntegral len))+ "to_node"+ loop (Lens.Family2.set (Data.ProtoLens.Field.field @"toNode") y x)+ 24+ -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (Prelude.fmap+ Prelude.fromIntegral+ Data.ProtoLens.Encoding.Bytes.getVarInt)+ "amt_msat"+ loop (Lens.Family2.set (Data.ProtoLens.Field.field @"amtMsat") y x)+ wire+ -> do !y <- Data.ProtoLens.Encoding.Wire.parseTaggedValueFromWire+ wire+ loop+ (Lens.Family2.over+ Data.ProtoLens.unknownFields (\ !t -> (:) y t) x)+ in+ (Data.ProtoLens.Encoding.Bytes.<?>)+ (do loop Data.ProtoLens.defMessage) "QueryProbabilityRequest"+ buildMessage+ = \ _x+ -> (Data.Monoid.<>)+ (let+ _v = Lens.Family2.view (Data.ProtoLens.Field.field @"fromNode") _x+ in+ if (Prelude.==) _v Data.ProtoLens.fieldDefault then+ Data.Monoid.mempty+ else+ (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 10)+ ((\ bs+ -> (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt+ (Prelude.fromIntegral (Data.ByteString.length bs)))+ (Data.ProtoLens.Encoding.Bytes.putBytes bs))+ _v))+ ((Data.Monoid.<>)+ (let+ _v = Lens.Family2.view (Data.ProtoLens.Field.field @"toNode") _x+ in+ if (Prelude.==) _v Data.ProtoLens.fieldDefault then+ Data.Monoid.mempty+ else+ (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 18)+ ((\ bs+ -> (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt+ (Prelude.fromIntegral (Data.ByteString.length bs)))+ (Data.ProtoLens.Encoding.Bytes.putBytes bs))+ _v))+ ((Data.Monoid.<>)+ (let+ _v = Lens.Family2.view (Data.ProtoLens.Field.field @"amtMsat") _x+ in+ if (Prelude.==) _v Data.ProtoLens.fieldDefault then+ Data.Monoid.mempty+ else+ (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 24)+ ((Prelude..)+ Data.ProtoLens.Encoding.Bytes.putVarInt Prelude.fromIntegral _v))+ (Data.ProtoLens.Encoding.Wire.buildFieldSet+ (Lens.Family2.view Data.ProtoLens.unknownFields _x))))+instance Control.DeepSeq.NFData QueryProbabilityRequest where+ rnf+ = \ x__+ -> Control.DeepSeq.deepseq+ (_QueryProbabilityRequest'_unknownFields x__)+ (Control.DeepSeq.deepseq+ (_QueryProbabilityRequest'fromNode x__)+ (Control.DeepSeq.deepseq+ (_QueryProbabilityRequest'toNode x__)+ (Control.DeepSeq.deepseq+ (_QueryProbabilityRequest'amtMsat x__) ())))+{- | Fields :+ + * 'Proto.Routerrpc.Router_Fields.probability' @:: Lens' QueryProbabilityResponse Prelude.Double@+ * 'Proto.Routerrpc.Router_Fields.history' @:: Lens' QueryProbabilityResponse PairData@+ * 'Proto.Routerrpc.Router_Fields.maybe'history' @:: Lens' QueryProbabilityResponse (Prelude.Maybe PairData)@ -}+data QueryProbabilityResponse+ = QueryProbabilityResponse'_constructor {_QueryProbabilityResponse'probability :: !Prelude.Double,+ _QueryProbabilityResponse'history :: !(Prelude.Maybe PairData),+ _QueryProbabilityResponse'_unknownFields :: !Data.ProtoLens.FieldSet}+ deriving stock (Prelude.Eq, Prelude.Ord, GHC.Generics.Generic)+instance Prelude.Show QueryProbabilityResponse where+ showsPrec _ __x __s+ = Prelude.showChar+ '{'+ (Prelude.showString+ (Data.ProtoLens.showMessageShort __x) (Prelude.showChar '}' __s))+instance Text.PrettyPrint.GenericPretty.Out QueryProbabilityResponse+instance Data.ProtoLens.Field.HasField QueryProbabilityResponse "probability" Prelude.Double where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _QueryProbabilityResponse'probability+ (\ x__ y__ -> x__ {_QueryProbabilityResponse'probability = y__}))+ Prelude.id+instance Data.ProtoLens.Field.HasField QueryProbabilityResponse "history" PairData where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _QueryProbabilityResponse'history+ (\ x__ y__ -> x__ {_QueryProbabilityResponse'history = y__}))+ (Data.ProtoLens.maybeLens Data.ProtoLens.defMessage)+instance Data.ProtoLens.Field.HasField QueryProbabilityResponse "maybe'history" (Prelude.Maybe PairData) where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _QueryProbabilityResponse'history+ (\ x__ y__ -> x__ {_QueryProbabilityResponse'history = y__}))+ Prelude.id+instance Data.ProtoLens.Message QueryProbabilityResponse where+ messageName _ = Data.Text.pack "routerrpc.QueryProbabilityResponse"+ packedMessageDescriptor _+ = "\n\+ \\CANQueryProbabilityResponse\DC2 \n\+ \\vprobability\CAN\SOH \SOH(\SOHR\vprobability\DC2-\n\+ \\ahistory\CAN\STX \SOH(\v2\DC3.routerrpc.PairDataR\ahistory"+ packedFileDescriptor _ = packedFileDescriptor+ fieldsByTag+ = let+ probability__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "probability"+ (Data.ProtoLens.ScalarField Data.ProtoLens.DoubleField ::+ Data.ProtoLens.FieldTypeDescriptor Prelude.Double)+ (Data.ProtoLens.PlainField+ Data.ProtoLens.Optional+ (Data.ProtoLens.Field.field @"probability")) ::+ Data.ProtoLens.FieldDescriptor QueryProbabilityResponse+ history__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "history"+ (Data.ProtoLens.MessageField Data.ProtoLens.MessageType ::+ Data.ProtoLens.FieldTypeDescriptor PairData)+ (Data.ProtoLens.OptionalField+ (Data.ProtoLens.Field.field @"maybe'history")) ::+ Data.ProtoLens.FieldDescriptor QueryProbabilityResponse+ in+ Data.Map.fromList+ [(Data.ProtoLens.Tag 1, probability__field_descriptor),+ (Data.ProtoLens.Tag 2, history__field_descriptor)]+ unknownFields+ = Lens.Family2.Unchecked.lens+ _QueryProbabilityResponse'_unknownFields+ (\ x__ y__ -> x__ {_QueryProbabilityResponse'_unknownFields = y__})+ defMessage+ = QueryProbabilityResponse'_constructor+ {_QueryProbabilityResponse'probability = Data.ProtoLens.fieldDefault,+ _QueryProbabilityResponse'history = Prelude.Nothing,+ _QueryProbabilityResponse'_unknownFields = []}+ parseMessage+ = let+ loop ::+ QueryProbabilityResponse+ -> Data.ProtoLens.Encoding.Bytes.Parser QueryProbabilityResponse+ loop x+ = do end <- Data.ProtoLens.Encoding.Bytes.atEnd+ if end then+ do (let missing = []+ in+ if Prelude.null missing then+ Prelude.return ()+ else+ Prelude.fail+ ((Prelude.++)+ "Missing required fields: "+ (Prelude.show (missing :: [Prelude.String]))))+ Prelude.return+ (Lens.Family2.over+ Data.ProtoLens.unknownFields (\ !t -> Prelude.reverse t) x)+ else+ do tag <- Data.ProtoLens.Encoding.Bytes.getVarInt+ case tag of+ 9 -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (Prelude.fmap+ Data.ProtoLens.Encoding.Bytes.wordToDouble+ Data.ProtoLens.Encoding.Bytes.getFixed64)+ "probability"+ loop+ (Lens.Family2.set (Data.ProtoLens.Field.field @"probability") y x)+ 18+ -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (do len <- Data.ProtoLens.Encoding.Bytes.getVarInt+ Data.ProtoLens.Encoding.Bytes.isolate+ (Prelude.fromIntegral len) Data.ProtoLens.parseMessage)+ "history"+ loop (Lens.Family2.set (Data.ProtoLens.Field.field @"history") y x)+ wire+ -> do !y <- Data.ProtoLens.Encoding.Wire.parseTaggedValueFromWire+ wire+ loop+ (Lens.Family2.over+ Data.ProtoLens.unknownFields (\ !t -> (:) y t) x)+ in+ (Data.ProtoLens.Encoding.Bytes.<?>)+ (do loop Data.ProtoLens.defMessage) "QueryProbabilityResponse"+ buildMessage+ = \ _x+ -> (Data.Monoid.<>)+ (let+ _v+ = Lens.Family2.view (Data.ProtoLens.Field.field @"probability") _x+ in+ if (Prelude.==) _v Data.ProtoLens.fieldDefault then+ Data.Monoid.mempty+ else+ (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 9)+ ((Prelude..)+ Data.ProtoLens.Encoding.Bytes.putFixed64+ Data.ProtoLens.Encoding.Bytes.doubleToWord _v))+ ((Data.Monoid.<>)+ (case+ Lens.Family2.view (Data.ProtoLens.Field.field @"maybe'history") _x+ of+ Prelude.Nothing -> Data.Monoid.mempty+ (Prelude.Just _v)+ -> (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 18)+ ((Prelude..)+ (\ bs+ -> (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt+ (Prelude.fromIntegral (Data.ByteString.length bs)))+ (Data.ProtoLens.Encoding.Bytes.putBytes bs))+ Data.ProtoLens.encodeMessage _v))+ (Data.ProtoLens.Encoding.Wire.buildFieldSet+ (Lens.Family2.view Data.ProtoLens.unknownFields _x)))+instance Control.DeepSeq.NFData QueryProbabilityResponse where+ rnf+ = \ x__+ -> Control.DeepSeq.deepseq+ (_QueryProbabilityResponse'_unknownFields x__)+ (Control.DeepSeq.deepseq+ (_QueryProbabilityResponse'probability x__)+ (Control.DeepSeq.deepseq+ (_QueryProbabilityResponse'history x__) ()))+{- | Fields :+ -}+data ResetMissionControlRequest+ = ResetMissionControlRequest'_constructor {_ResetMissionControlRequest'_unknownFields :: !Data.ProtoLens.FieldSet}+ deriving stock (Prelude.Eq, Prelude.Ord, GHC.Generics.Generic)+instance Prelude.Show ResetMissionControlRequest where+ showsPrec _ __x __s+ = Prelude.showChar+ '{'+ (Prelude.showString+ (Data.ProtoLens.showMessageShort __x) (Prelude.showChar '}' __s))+instance Text.PrettyPrint.GenericPretty.Out ResetMissionControlRequest+instance Data.ProtoLens.Message ResetMissionControlRequest where+ messageName _+ = Data.Text.pack "routerrpc.ResetMissionControlRequest"+ packedMessageDescriptor _+ = "\n\+ \\SUBResetMissionControlRequest"+ packedFileDescriptor _ = packedFileDescriptor+ fieldsByTag = let in Data.Map.fromList []+ unknownFields+ = Lens.Family2.Unchecked.lens+ _ResetMissionControlRequest'_unknownFields+ (\ x__ y__+ -> x__ {_ResetMissionControlRequest'_unknownFields = y__})+ defMessage+ = ResetMissionControlRequest'_constructor+ {_ResetMissionControlRequest'_unknownFields = []}+ parseMessage+ = let+ loop ::+ ResetMissionControlRequest+ -> Data.ProtoLens.Encoding.Bytes.Parser ResetMissionControlRequest+ loop x+ = do end <- Data.ProtoLens.Encoding.Bytes.atEnd+ if end then+ do (let missing = []+ in+ if Prelude.null missing then+ Prelude.return ()+ else+ Prelude.fail+ ((Prelude.++)+ "Missing required fields: "+ (Prelude.show (missing :: [Prelude.String]))))+ Prelude.return+ (Lens.Family2.over+ Data.ProtoLens.unknownFields (\ !t -> Prelude.reverse t) x)+ else+ do tag <- Data.ProtoLens.Encoding.Bytes.getVarInt+ case tag of {+ wire+ -> do !y <- Data.ProtoLens.Encoding.Wire.parseTaggedValueFromWire+ wire+ loop+ (Lens.Family2.over+ Data.ProtoLens.unknownFields (\ !t -> (:) y t) x) }+ in+ (Data.ProtoLens.Encoding.Bytes.<?>)+ (do loop Data.ProtoLens.defMessage) "ResetMissionControlRequest"+ buildMessage+ = \ _x+ -> Data.ProtoLens.Encoding.Wire.buildFieldSet+ (Lens.Family2.view Data.ProtoLens.unknownFields _x)+instance Control.DeepSeq.NFData ResetMissionControlRequest where+ rnf+ = \ x__+ -> Control.DeepSeq.deepseq+ (_ResetMissionControlRequest'_unknownFields x__) ()+{- | Fields :+ -}+data ResetMissionControlResponse+ = ResetMissionControlResponse'_constructor {_ResetMissionControlResponse'_unknownFields :: !Data.ProtoLens.FieldSet}+ deriving stock (Prelude.Eq, Prelude.Ord, GHC.Generics.Generic)+instance Prelude.Show ResetMissionControlResponse where+ showsPrec _ __x __s+ = Prelude.showChar+ '{'+ (Prelude.showString+ (Data.ProtoLens.showMessageShort __x) (Prelude.showChar '}' __s))+instance Text.PrettyPrint.GenericPretty.Out ResetMissionControlResponse+instance Data.ProtoLens.Message ResetMissionControlResponse where+ messageName _+ = Data.Text.pack "routerrpc.ResetMissionControlResponse"+ packedMessageDescriptor _+ = "\n\+ \\ESCResetMissionControlResponse"+ packedFileDescriptor _ = packedFileDescriptor+ fieldsByTag = let in Data.Map.fromList []+ unknownFields+ = Lens.Family2.Unchecked.lens+ _ResetMissionControlResponse'_unknownFields+ (\ x__ y__+ -> x__ {_ResetMissionControlResponse'_unknownFields = y__})+ defMessage+ = ResetMissionControlResponse'_constructor+ {_ResetMissionControlResponse'_unknownFields = []}+ parseMessage+ = let+ loop ::+ ResetMissionControlResponse+ -> Data.ProtoLens.Encoding.Bytes.Parser ResetMissionControlResponse+ loop x+ = do end <- Data.ProtoLens.Encoding.Bytes.atEnd+ if end then+ do (let missing = []+ in+ if Prelude.null missing then+ Prelude.return ()+ else+ Prelude.fail+ ((Prelude.++)+ "Missing required fields: "+ (Prelude.show (missing :: [Prelude.String]))))+ Prelude.return+ (Lens.Family2.over+ Data.ProtoLens.unknownFields (\ !t -> Prelude.reverse t) x)+ else+ do tag <- Data.ProtoLens.Encoding.Bytes.getVarInt+ case tag of {+ wire+ -> do !y <- Data.ProtoLens.Encoding.Wire.parseTaggedValueFromWire+ wire+ loop+ (Lens.Family2.over+ Data.ProtoLens.unknownFields (\ !t -> (:) y t) x) }+ in+ (Data.ProtoLens.Encoding.Bytes.<?>)+ (do loop Data.ProtoLens.defMessage) "ResetMissionControlResponse"+ buildMessage+ = \ _x+ -> Data.ProtoLens.Encoding.Wire.buildFieldSet+ (Lens.Family2.view Data.ProtoLens.unknownFields _x)+instance Control.DeepSeq.NFData ResetMissionControlResponse where+ rnf+ = \ x__+ -> Control.DeepSeq.deepseq+ (_ResetMissionControlResponse'_unknownFields x__) ()+newtype ResolveHoldForwardAction'UnrecognizedValue+ = ResolveHoldForwardAction'UnrecognizedValue Data.Int.Int32+ deriving stock (Prelude.Eq,+ Prelude.Ord,+ Prelude.Show,+ GHC.Generics.Generic)+instance Text.PrettyPrint.GenericPretty.Out ResolveHoldForwardAction'UnrecognizedValue+data ResolveHoldForwardAction+ = SETTLE |+ FAIL |+ RESUME |+ ResolveHoldForwardAction'Unrecognized !ResolveHoldForwardAction'UnrecognizedValue+ deriving stock (Prelude.Show,+ Prelude.Eq,+ Prelude.Ord,+ GHC.Generics.Generic)+instance Data.ProtoLens.MessageEnum ResolveHoldForwardAction where+ maybeToEnum 0 = Prelude.Just SETTLE+ maybeToEnum 1 = Prelude.Just FAIL+ maybeToEnum 2 = Prelude.Just RESUME+ maybeToEnum k+ = Prelude.Just+ (ResolveHoldForwardAction'Unrecognized+ (ResolveHoldForwardAction'UnrecognizedValue+ (Prelude.fromIntegral k)))+ showEnum SETTLE = "SETTLE"+ showEnum FAIL = "FAIL"+ showEnum RESUME = "RESUME"+ showEnum+ (ResolveHoldForwardAction'Unrecognized (ResolveHoldForwardAction'UnrecognizedValue k))+ = Prelude.show k+ readEnum k+ | (Prelude.==) k "SETTLE" = Prelude.Just SETTLE+ | (Prelude.==) k "FAIL" = Prelude.Just FAIL+ | (Prelude.==) k "RESUME" = Prelude.Just RESUME+ | Prelude.otherwise+ = (Prelude.>>=) (Text.Read.readMaybe k) Data.ProtoLens.maybeToEnum+instance Prelude.Bounded ResolveHoldForwardAction where+ minBound = SETTLE+ maxBound = RESUME+instance Prelude.Enum ResolveHoldForwardAction where+ toEnum k__+ = Prelude.maybe+ (Prelude.error+ ((Prelude.++)+ "toEnum: unknown value for enum ResolveHoldForwardAction: "+ (Prelude.show k__)))+ Prelude.id (Data.ProtoLens.maybeToEnum k__)+ fromEnum SETTLE = 0+ fromEnum FAIL = 1+ fromEnum RESUME = 2+ fromEnum+ (ResolveHoldForwardAction'Unrecognized (ResolveHoldForwardAction'UnrecognizedValue k))+ = Prelude.fromIntegral k+ succ RESUME+ = Prelude.error+ "ResolveHoldForwardAction.succ: bad argument RESUME. This value would be out of bounds."+ succ SETTLE = FAIL+ succ FAIL = RESUME+ succ (ResolveHoldForwardAction'Unrecognized _)+ = Prelude.error+ "ResolveHoldForwardAction.succ: bad argument: unrecognized value"+ pred SETTLE+ = Prelude.error+ "ResolveHoldForwardAction.pred: bad argument SETTLE. This value would be out of bounds."+ pred FAIL = SETTLE+ pred RESUME = FAIL+ pred (ResolveHoldForwardAction'Unrecognized _)+ = Prelude.error+ "ResolveHoldForwardAction.pred: bad argument: unrecognized value"+ enumFrom = Data.ProtoLens.Message.Enum.messageEnumFrom+ enumFromTo = Data.ProtoLens.Message.Enum.messageEnumFromTo+ enumFromThen = Data.ProtoLens.Message.Enum.messageEnumFromThen+ enumFromThenTo = Data.ProtoLens.Message.Enum.messageEnumFromThenTo+instance Data.ProtoLens.FieldDefault ResolveHoldForwardAction where+ fieldDefault = SETTLE+instance Control.DeepSeq.NFData ResolveHoldForwardAction where+ rnf x__ = Prelude.seq x__ ()+instance Text.PrettyPrint.GenericPretty.Out ResolveHoldForwardAction+{- | Fields :+ + * 'Proto.Routerrpc.Router_Fields.dest' @:: Lens' RouteFeeRequest Data.ByteString.ByteString@+ * 'Proto.Routerrpc.Router_Fields.amtSat' @:: Lens' RouteFeeRequest Data.Int.Int64@ -}+data RouteFeeRequest+ = RouteFeeRequest'_constructor {_RouteFeeRequest'dest :: !Data.ByteString.ByteString,+ _RouteFeeRequest'amtSat :: !Data.Int.Int64,+ _RouteFeeRequest'_unknownFields :: !Data.ProtoLens.FieldSet}+ deriving stock (Prelude.Eq, Prelude.Ord, GHC.Generics.Generic)+instance Prelude.Show RouteFeeRequest where+ showsPrec _ __x __s+ = Prelude.showChar+ '{'+ (Prelude.showString+ (Data.ProtoLens.showMessageShort __x) (Prelude.showChar '}' __s))+instance Text.PrettyPrint.GenericPretty.Out RouteFeeRequest+instance Data.ProtoLens.Field.HasField RouteFeeRequest "dest" Data.ByteString.ByteString where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _RouteFeeRequest'dest+ (\ x__ y__ -> x__ {_RouteFeeRequest'dest = y__}))+ Prelude.id+instance Data.ProtoLens.Field.HasField RouteFeeRequest "amtSat" Data.Int.Int64 where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _RouteFeeRequest'amtSat+ (\ x__ y__ -> x__ {_RouteFeeRequest'amtSat = y__}))+ Prelude.id+instance Data.ProtoLens.Message RouteFeeRequest where+ messageName _ = Data.Text.pack "routerrpc.RouteFeeRequest"+ packedMessageDescriptor _+ = "\n\+ \\SIRouteFeeRequest\DC2\DC2\n\+ \\EOTdest\CAN\SOH \SOH(\fR\EOTdest\DC2\ETB\n\+ \\aamt_sat\CAN\STX \SOH(\ETXR\ACKamtSat"+ packedFileDescriptor _ = packedFileDescriptor+ fieldsByTag+ = let+ dest__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "dest"+ (Data.ProtoLens.ScalarField Data.ProtoLens.BytesField ::+ Data.ProtoLens.FieldTypeDescriptor Data.ByteString.ByteString)+ (Data.ProtoLens.PlainField+ Data.ProtoLens.Optional (Data.ProtoLens.Field.field @"dest")) ::+ Data.ProtoLens.FieldDescriptor RouteFeeRequest+ amtSat__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "amt_sat"+ (Data.ProtoLens.ScalarField Data.ProtoLens.Int64Field ::+ Data.ProtoLens.FieldTypeDescriptor Data.Int.Int64)+ (Data.ProtoLens.PlainField+ Data.ProtoLens.Optional (Data.ProtoLens.Field.field @"amtSat")) ::+ Data.ProtoLens.FieldDescriptor RouteFeeRequest+ in+ Data.Map.fromList+ [(Data.ProtoLens.Tag 1, dest__field_descriptor),+ (Data.ProtoLens.Tag 2, amtSat__field_descriptor)]+ unknownFields+ = Lens.Family2.Unchecked.lens+ _RouteFeeRequest'_unknownFields+ (\ x__ y__ -> x__ {_RouteFeeRequest'_unknownFields = y__})+ defMessage+ = RouteFeeRequest'_constructor+ {_RouteFeeRequest'dest = Data.ProtoLens.fieldDefault,+ _RouteFeeRequest'amtSat = Data.ProtoLens.fieldDefault,+ _RouteFeeRequest'_unknownFields = []}+ parseMessage+ = let+ loop ::+ RouteFeeRequest+ -> Data.ProtoLens.Encoding.Bytes.Parser RouteFeeRequest+ loop x+ = do end <- Data.ProtoLens.Encoding.Bytes.atEnd+ if end then+ do (let missing = []+ in+ if Prelude.null missing then+ Prelude.return ()+ else+ Prelude.fail+ ((Prelude.++)+ "Missing required fields: "+ (Prelude.show (missing :: [Prelude.String]))))+ Prelude.return+ (Lens.Family2.over+ Data.ProtoLens.unknownFields (\ !t -> Prelude.reverse t) x)+ else+ do tag <- Data.ProtoLens.Encoding.Bytes.getVarInt+ case tag of+ 10+ -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (do len <- Data.ProtoLens.Encoding.Bytes.getVarInt+ Data.ProtoLens.Encoding.Bytes.getBytes+ (Prelude.fromIntegral len))+ "dest"+ loop (Lens.Family2.set (Data.ProtoLens.Field.field @"dest") y x)+ 16+ -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (Prelude.fmap+ Prelude.fromIntegral+ Data.ProtoLens.Encoding.Bytes.getVarInt)+ "amt_sat"+ loop (Lens.Family2.set (Data.ProtoLens.Field.field @"amtSat") y x)+ wire+ -> do !y <- Data.ProtoLens.Encoding.Wire.parseTaggedValueFromWire+ wire+ loop+ (Lens.Family2.over+ Data.ProtoLens.unknownFields (\ !t -> (:) y t) x)+ in+ (Data.ProtoLens.Encoding.Bytes.<?>)+ (do loop Data.ProtoLens.defMessage) "RouteFeeRequest"+ buildMessage+ = \ _x+ -> (Data.Monoid.<>)+ (let _v = Lens.Family2.view (Data.ProtoLens.Field.field @"dest") _x+ in+ if (Prelude.==) _v Data.ProtoLens.fieldDefault then+ Data.Monoid.mempty+ else+ (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 10)+ ((\ bs+ -> (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt+ (Prelude.fromIntegral (Data.ByteString.length bs)))+ (Data.ProtoLens.Encoding.Bytes.putBytes bs))+ _v))+ ((Data.Monoid.<>)+ (let+ _v = Lens.Family2.view (Data.ProtoLens.Field.field @"amtSat") _x+ in+ if (Prelude.==) _v Data.ProtoLens.fieldDefault then+ Data.Monoid.mempty+ else+ (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 16)+ ((Prelude..)+ Data.ProtoLens.Encoding.Bytes.putVarInt Prelude.fromIntegral _v))+ (Data.ProtoLens.Encoding.Wire.buildFieldSet+ (Lens.Family2.view Data.ProtoLens.unknownFields _x)))+instance Control.DeepSeq.NFData RouteFeeRequest where+ rnf+ = \ x__+ -> Control.DeepSeq.deepseq+ (_RouteFeeRequest'_unknownFields x__)+ (Control.DeepSeq.deepseq+ (_RouteFeeRequest'dest x__)+ (Control.DeepSeq.deepseq (_RouteFeeRequest'amtSat x__) ()))+{- | Fields :+ + * 'Proto.Routerrpc.Router_Fields.routingFeeMsat' @:: Lens' RouteFeeResponse Data.Int.Int64@+ * 'Proto.Routerrpc.Router_Fields.timeLockDelay' @:: Lens' RouteFeeResponse Data.Int.Int64@ -}+data RouteFeeResponse+ = RouteFeeResponse'_constructor {_RouteFeeResponse'routingFeeMsat :: !Data.Int.Int64,+ _RouteFeeResponse'timeLockDelay :: !Data.Int.Int64,+ _RouteFeeResponse'_unknownFields :: !Data.ProtoLens.FieldSet}+ deriving stock (Prelude.Eq, Prelude.Ord, GHC.Generics.Generic)+instance Prelude.Show RouteFeeResponse where+ showsPrec _ __x __s+ = Prelude.showChar+ '{'+ (Prelude.showString+ (Data.ProtoLens.showMessageShort __x) (Prelude.showChar '}' __s))+instance Text.PrettyPrint.GenericPretty.Out RouteFeeResponse+instance Data.ProtoLens.Field.HasField RouteFeeResponse "routingFeeMsat" Data.Int.Int64 where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _RouteFeeResponse'routingFeeMsat+ (\ x__ y__ -> x__ {_RouteFeeResponse'routingFeeMsat = y__}))+ Prelude.id+instance Data.ProtoLens.Field.HasField RouteFeeResponse "timeLockDelay" Data.Int.Int64 where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _RouteFeeResponse'timeLockDelay+ (\ x__ y__ -> x__ {_RouteFeeResponse'timeLockDelay = y__}))+ Prelude.id+instance Data.ProtoLens.Message RouteFeeResponse where+ messageName _ = Data.Text.pack "routerrpc.RouteFeeResponse"+ packedMessageDescriptor _+ = "\n\+ \\DLERouteFeeResponse\DC2(\n\+ \\DLErouting_fee_msat\CAN\SOH \SOH(\ETXR\SOroutingFeeMsat\DC2&\n\+ \\SItime_lock_delay\CAN\STX \SOH(\ETXR\rtimeLockDelay"+ packedFileDescriptor _ = packedFileDescriptor+ fieldsByTag+ = let+ routingFeeMsat__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "routing_fee_msat"+ (Data.ProtoLens.ScalarField Data.ProtoLens.Int64Field ::+ Data.ProtoLens.FieldTypeDescriptor Data.Int.Int64)+ (Data.ProtoLens.PlainField+ Data.ProtoLens.Optional+ (Data.ProtoLens.Field.field @"routingFeeMsat")) ::+ Data.ProtoLens.FieldDescriptor RouteFeeResponse+ timeLockDelay__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "time_lock_delay"+ (Data.ProtoLens.ScalarField Data.ProtoLens.Int64Field ::+ Data.ProtoLens.FieldTypeDescriptor Data.Int.Int64)+ (Data.ProtoLens.PlainField+ Data.ProtoLens.Optional+ (Data.ProtoLens.Field.field @"timeLockDelay")) ::+ Data.ProtoLens.FieldDescriptor RouteFeeResponse+ in+ Data.Map.fromList+ [(Data.ProtoLens.Tag 1, routingFeeMsat__field_descriptor),+ (Data.ProtoLens.Tag 2, timeLockDelay__field_descriptor)]+ unknownFields+ = Lens.Family2.Unchecked.lens+ _RouteFeeResponse'_unknownFields+ (\ x__ y__ -> x__ {_RouteFeeResponse'_unknownFields = y__})+ defMessage+ = RouteFeeResponse'_constructor+ {_RouteFeeResponse'routingFeeMsat = Data.ProtoLens.fieldDefault,+ _RouteFeeResponse'timeLockDelay = Data.ProtoLens.fieldDefault,+ _RouteFeeResponse'_unknownFields = []}+ parseMessage+ = let+ loop ::+ RouteFeeResponse+ -> Data.ProtoLens.Encoding.Bytes.Parser RouteFeeResponse+ loop x+ = do end <- Data.ProtoLens.Encoding.Bytes.atEnd+ if end then+ do (let missing = []+ in+ if Prelude.null missing then+ Prelude.return ()+ else+ Prelude.fail+ ((Prelude.++)+ "Missing required fields: "+ (Prelude.show (missing :: [Prelude.String]))))+ Prelude.return+ (Lens.Family2.over+ Data.ProtoLens.unknownFields (\ !t -> Prelude.reverse t) x)+ else+ do tag <- Data.ProtoLens.Encoding.Bytes.getVarInt+ case tag of+ 8 -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (Prelude.fmap+ Prelude.fromIntegral+ Data.ProtoLens.Encoding.Bytes.getVarInt)+ "routing_fee_msat"+ loop+ (Lens.Family2.set+ (Data.ProtoLens.Field.field @"routingFeeMsat") y x)+ 16+ -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (Prelude.fmap+ Prelude.fromIntegral+ Data.ProtoLens.Encoding.Bytes.getVarInt)+ "time_lock_delay"+ loop+ (Lens.Family2.set+ (Data.ProtoLens.Field.field @"timeLockDelay") y x)+ wire+ -> do !y <- Data.ProtoLens.Encoding.Wire.parseTaggedValueFromWire+ wire+ loop+ (Lens.Family2.over+ Data.ProtoLens.unknownFields (\ !t -> (:) y t) x)+ in+ (Data.ProtoLens.Encoding.Bytes.<?>)+ (do loop Data.ProtoLens.defMessage) "RouteFeeResponse"+ buildMessage+ = \ _x+ -> (Data.Monoid.<>)+ (let+ _v+ = Lens.Family2.view+ (Data.ProtoLens.Field.field @"routingFeeMsat") _x+ in+ if (Prelude.==) _v Data.ProtoLens.fieldDefault then+ Data.Monoid.mempty+ else+ (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 8)+ ((Prelude..)+ Data.ProtoLens.Encoding.Bytes.putVarInt Prelude.fromIntegral _v))+ ((Data.Monoid.<>)+ (let+ _v+ = Lens.Family2.view+ (Data.ProtoLens.Field.field @"timeLockDelay") _x+ in+ if (Prelude.==) _v Data.ProtoLens.fieldDefault then+ Data.Monoid.mempty+ else+ (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 16)+ ((Prelude..)+ Data.ProtoLens.Encoding.Bytes.putVarInt Prelude.fromIntegral _v))+ (Data.ProtoLens.Encoding.Wire.buildFieldSet+ (Lens.Family2.view Data.ProtoLens.unknownFields _x)))+instance Control.DeepSeq.NFData RouteFeeResponse where+ rnf+ = \ x__+ -> Control.DeepSeq.deepseq+ (_RouteFeeResponse'_unknownFields x__)+ (Control.DeepSeq.deepseq+ (_RouteFeeResponse'routingFeeMsat x__)+ (Control.DeepSeq.deepseq (_RouteFeeResponse'timeLockDelay x__) ()))+{- | Fields :+ + * 'Proto.Routerrpc.Router_Fields.dest' @:: Lens' SendPaymentRequest Data.ByteString.ByteString@+ * 'Proto.Routerrpc.Router_Fields.amt' @:: Lens' SendPaymentRequest Data.Int.Int64@+ * 'Proto.Routerrpc.Router_Fields.amtMsat' @:: Lens' SendPaymentRequest Data.Int.Int64@+ * 'Proto.Routerrpc.Router_Fields.paymentHash' @:: Lens' SendPaymentRequest Data.ByteString.ByteString@+ * 'Proto.Routerrpc.Router_Fields.finalCltvDelta' @:: Lens' SendPaymentRequest Data.Int.Int32@+ * 'Proto.Routerrpc.Router_Fields.paymentAddr' @:: Lens' SendPaymentRequest Data.ByteString.ByteString@+ * 'Proto.Routerrpc.Router_Fields.paymentRequest' @:: Lens' SendPaymentRequest Data.Text.Text@+ * 'Proto.Routerrpc.Router_Fields.timeoutSeconds' @:: Lens' SendPaymentRequest Data.Int.Int32@+ * 'Proto.Routerrpc.Router_Fields.feeLimitSat' @:: Lens' SendPaymentRequest Data.Int.Int64@+ * 'Proto.Routerrpc.Router_Fields.feeLimitMsat' @:: Lens' SendPaymentRequest Data.Int.Int64@+ * 'Proto.Routerrpc.Router_Fields.outgoingChanId' @:: Lens' SendPaymentRequest Data.Word.Word64@+ * 'Proto.Routerrpc.Router_Fields.outgoingChanIds' @:: Lens' SendPaymentRequest [Data.Word.Word64]@+ * 'Proto.Routerrpc.Router_Fields.vec'outgoingChanIds' @:: Lens' SendPaymentRequest (Data.Vector.Unboxed.Vector Data.Word.Word64)@+ * 'Proto.Routerrpc.Router_Fields.lastHopPubkey' @:: Lens' SendPaymentRequest Data.ByteString.ByteString@+ * 'Proto.Routerrpc.Router_Fields.cltvLimit' @:: Lens' SendPaymentRequest Data.Int.Int32@+ * 'Proto.Routerrpc.Router_Fields.routeHints' @:: Lens' SendPaymentRequest [Proto.Lnrpc.Ln0.RouteHint]@+ * 'Proto.Routerrpc.Router_Fields.vec'routeHints' @:: Lens' SendPaymentRequest (Data.Vector.Vector Proto.Lnrpc.Ln0.RouteHint)@+ * 'Proto.Routerrpc.Router_Fields.destCustomRecords' @:: Lens' SendPaymentRequest (Data.Map.Map Data.Word.Word64 Data.ByteString.ByteString)@+ * 'Proto.Routerrpc.Router_Fields.allowSelfPayment' @:: Lens' SendPaymentRequest Prelude.Bool@+ * 'Proto.Routerrpc.Router_Fields.destFeatures' @:: Lens' SendPaymentRequest [Proto.Lnrpc.Ln0.FeatureBit]@+ * 'Proto.Routerrpc.Router_Fields.vec'destFeatures' @:: Lens' SendPaymentRequest (Data.Vector.Vector Proto.Lnrpc.Ln0.FeatureBit)@+ * 'Proto.Routerrpc.Router_Fields.maxParts' @:: Lens' SendPaymentRequest Data.Word.Word32@+ * 'Proto.Routerrpc.Router_Fields.noInflightUpdates' @:: Lens' SendPaymentRequest Prelude.Bool@+ * 'Proto.Routerrpc.Router_Fields.maxShardSizeMsat' @:: Lens' SendPaymentRequest Data.Word.Word64@+ * 'Proto.Routerrpc.Router_Fields.amp' @:: Lens' SendPaymentRequest Prelude.Bool@ -}+data SendPaymentRequest+ = SendPaymentRequest'_constructor {_SendPaymentRequest'dest :: !Data.ByteString.ByteString,+ _SendPaymentRequest'amt :: !Data.Int.Int64,+ _SendPaymentRequest'amtMsat :: !Data.Int.Int64,+ _SendPaymentRequest'paymentHash :: !Data.ByteString.ByteString,+ _SendPaymentRequest'finalCltvDelta :: !Data.Int.Int32,+ _SendPaymentRequest'paymentAddr :: !Data.ByteString.ByteString,+ _SendPaymentRequest'paymentRequest :: !Data.Text.Text,+ _SendPaymentRequest'timeoutSeconds :: !Data.Int.Int32,+ _SendPaymentRequest'feeLimitSat :: !Data.Int.Int64,+ _SendPaymentRequest'feeLimitMsat :: !Data.Int.Int64,+ _SendPaymentRequest'outgoingChanId :: !Data.Word.Word64,+ _SendPaymentRequest'outgoingChanIds :: !(Data.Vector.Unboxed.Vector Data.Word.Word64),+ _SendPaymentRequest'lastHopPubkey :: !Data.ByteString.ByteString,+ _SendPaymentRequest'cltvLimit :: !Data.Int.Int32,+ _SendPaymentRequest'routeHints :: !(Data.Vector.Vector Proto.Lnrpc.Ln0.RouteHint),+ _SendPaymentRequest'destCustomRecords :: !(Data.Map.Map Data.Word.Word64 Data.ByteString.ByteString),+ _SendPaymentRequest'allowSelfPayment :: !Prelude.Bool,+ _SendPaymentRequest'destFeatures :: !(Data.Vector.Vector Proto.Lnrpc.Ln0.FeatureBit),+ _SendPaymentRequest'maxParts :: !Data.Word.Word32,+ _SendPaymentRequest'noInflightUpdates :: !Prelude.Bool,+ _SendPaymentRequest'maxShardSizeMsat :: !Data.Word.Word64,+ _SendPaymentRequest'amp :: !Prelude.Bool,+ _SendPaymentRequest'_unknownFields :: !Data.ProtoLens.FieldSet}+ deriving stock (Prelude.Eq, Prelude.Ord, GHC.Generics.Generic)+instance Prelude.Show SendPaymentRequest where+ showsPrec _ __x __s+ = Prelude.showChar+ '{'+ (Prelude.showString+ (Data.ProtoLens.showMessageShort __x) (Prelude.showChar '}' __s))+instance Text.PrettyPrint.GenericPretty.Out SendPaymentRequest+instance Data.ProtoLens.Field.HasField SendPaymentRequest "dest" Data.ByteString.ByteString where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _SendPaymentRequest'dest+ (\ x__ y__ -> x__ {_SendPaymentRequest'dest = y__}))+ Prelude.id+instance Data.ProtoLens.Field.HasField SendPaymentRequest "amt" Data.Int.Int64 where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _SendPaymentRequest'amt+ (\ x__ y__ -> x__ {_SendPaymentRequest'amt = y__}))+ Prelude.id+instance Data.ProtoLens.Field.HasField SendPaymentRequest "amtMsat" Data.Int.Int64 where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _SendPaymentRequest'amtMsat+ (\ x__ y__ -> x__ {_SendPaymentRequest'amtMsat = y__}))+ Prelude.id+instance Data.ProtoLens.Field.HasField SendPaymentRequest "paymentHash" Data.ByteString.ByteString where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _SendPaymentRequest'paymentHash+ (\ x__ y__ -> x__ {_SendPaymentRequest'paymentHash = y__}))+ Prelude.id+instance Data.ProtoLens.Field.HasField SendPaymentRequest "finalCltvDelta" Data.Int.Int32 where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _SendPaymentRequest'finalCltvDelta+ (\ x__ y__ -> x__ {_SendPaymentRequest'finalCltvDelta = y__}))+ Prelude.id+instance Data.ProtoLens.Field.HasField SendPaymentRequest "paymentAddr" Data.ByteString.ByteString where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _SendPaymentRequest'paymentAddr+ (\ x__ y__ -> x__ {_SendPaymentRequest'paymentAddr = y__}))+ Prelude.id+instance Data.ProtoLens.Field.HasField SendPaymentRequest "paymentRequest" Data.Text.Text where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _SendPaymentRequest'paymentRequest+ (\ x__ y__ -> x__ {_SendPaymentRequest'paymentRequest = y__}))+ Prelude.id+instance Data.ProtoLens.Field.HasField SendPaymentRequest "timeoutSeconds" Data.Int.Int32 where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _SendPaymentRequest'timeoutSeconds+ (\ x__ y__ -> x__ {_SendPaymentRequest'timeoutSeconds = y__}))+ Prelude.id+instance Data.ProtoLens.Field.HasField SendPaymentRequest "feeLimitSat" Data.Int.Int64 where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _SendPaymentRequest'feeLimitSat+ (\ x__ y__ -> x__ {_SendPaymentRequest'feeLimitSat = y__}))+ Prelude.id+instance Data.ProtoLens.Field.HasField SendPaymentRequest "feeLimitMsat" Data.Int.Int64 where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _SendPaymentRequest'feeLimitMsat+ (\ x__ y__ -> x__ {_SendPaymentRequest'feeLimitMsat = y__}))+ Prelude.id+instance Data.ProtoLens.Field.HasField SendPaymentRequest "outgoingChanId" Data.Word.Word64 where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _SendPaymentRequest'outgoingChanId+ (\ x__ y__ -> x__ {_SendPaymentRequest'outgoingChanId = y__}))+ Prelude.id+instance Data.ProtoLens.Field.HasField SendPaymentRequest "outgoingChanIds" [Data.Word.Word64] where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _SendPaymentRequest'outgoingChanIds+ (\ x__ y__ -> x__ {_SendPaymentRequest'outgoingChanIds = y__}))+ (Lens.Family2.Unchecked.lens+ Data.Vector.Generic.toList+ (\ _ y__ -> Data.Vector.Generic.fromList y__))+instance Data.ProtoLens.Field.HasField SendPaymentRequest "vec'outgoingChanIds" (Data.Vector.Unboxed.Vector Data.Word.Word64) where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _SendPaymentRequest'outgoingChanIds+ (\ x__ y__ -> x__ {_SendPaymentRequest'outgoingChanIds = y__}))+ Prelude.id+instance Data.ProtoLens.Field.HasField SendPaymentRequest "lastHopPubkey" Data.ByteString.ByteString where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _SendPaymentRequest'lastHopPubkey+ (\ x__ y__ -> x__ {_SendPaymentRequest'lastHopPubkey = y__}))+ Prelude.id+instance Data.ProtoLens.Field.HasField SendPaymentRequest "cltvLimit" Data.Int.Int32 where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _SendPaymentRequest'cltvLimit+ (\ x__ y__ -> x__ {_SendPaymentRequest'cltvLimit = y__}))+ Prelude.id+instance Data.ProtoLens.Field.HasField SendPaymentRequest "routeHints" [Proto.Lnrpc.Ln0.RouteHint] where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _SendPaymentRequest'routeHints+ (\ x__ y__ -> x__ {_SendPaymentRequest'routeHints = y__}))+ (Lens.Family2.Unchecked.lens+ Data.Vector.Generic.toList+ (\ _ y__ -> Data.Vector.Generic.fromList y__))+instance Data.ProtoLens.Field.HasField SendPaymentRequest "vec'routeHints" (Data.Vector.Vector Proto.Lnrpc.Ln0.RouteHint) where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _SendPaymentRequest'routeHints+ (\ x__ y__ -> x__ {_SendPaymentRequest'routeHints = y__}))+ Prelude.id+instance Data.ProtoLens.Field.HasField SendPaymentRequest "destCustomRecords" (Data.Map.Map Data.Word.Word64 Data.ByteString.ByteString) where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _SendPaymentRequest'destCustomRecords+ (\ x__ y__ -> x__ {_SendPaymentRequest'destCustomRecords = y__}))+ Prelude.id+instance Data.ProtoLens.Field.HasField SendPaymentRequest "allowSelfPayment" Prelude.Bool where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _SendPaymentRequest'allowSelfPayment+ (\ x__ y__ -> x__ {_SendPaymentRequest'allowSelfPayment = y__}))+ Prelude.id+instance Data.ProtoLens.Field.HasField SendPaymentRequest "destFeatures" [Proto.Lnrpc.Ln0.FeatureBit] where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _SendPaymentRequest'destFeatures+ (\ x__ y__ -> x__ {_SendPaymentRequest'destFeatures = y__}))+ (Lens.Family2.Unchecked.lens+ Data.Vector.Generic.toList+ (\ _ y__ -> Data.Vector.Generic.fromList y__))+instance Data.ProtoLens.Field.HasField SendPaymentRequest "vec'destFeatures" (Data.Vector.Vector Proto.Lnrpc.Ln0.FeatureBit) where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _SendPaymentRequest'destFeatures+ (\ x__ y__ -> x__ {_SendPaymentRequest'destFeatures = y__}))+ Prelude.id+instance Data.ProtoLens.Field.HasField SendPaymentRequest "maxParts" Data.Word.Word32 where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _SendPaymentRequest'maxParts+ (\ x__ y__ -> x__ {_SendPaymentRequest'maxParts = y__}))+ Prelude.id+instance Data.ProtoLens.Field.HasField SendPaymentRequest "noInflightUpdates" Prelude.Bool where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _SendPaymentRequest'noInflightUpdates+ (\ x__ y__ -> x__ {_SendPaymentRequest'noInflightUpdates = y__}))+ Prelude.id+instance Data.ProtoLens.Field.HasField SendPaymentRequest "maxShardSizeMsat" Data.Word.Word64 where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _SendPaymentRequest'maxShardSizeMsat+ (\ x__ y__ -> x__ {_SendPaymentRequest'maxShardSizeMsat = y__}))+ Prelude.id+instance Data.ProtoLens.Field.HasField SendPaymentRequest "amp" Prelude.Bool where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _SendPaymentRequest'amp+ (\ x__ y__ -> x__ {_SendPaymentRequest'amp = y__}))+ Prelude.id+instance Data.ProtoLens.Message SendPaymentRequest where+ messageName _ = Data.Text.pack "routerrpc.SendPaymentRequest"+ packedMessageDescriptor _+ = "\n\+ \\DC2SendPaymentRequest\DC2\DC2\n\+ \\EOTdest\CAN\SOH \SOH(\fR\EOTdest\DC2\DLE\n\+ \\ETXamt\CAN\STX \SOH(\ETXR\ETXamt\DC2\EM\n\+ \\bamt_msat\CAN\f \SOH(\ETXR\aamtMsat\DC2!\n\+ \\fpayment_hash\CAN\ETX \SOH(\fR\vpaymentHash\DC2(\n\+ \\DLEfinal_cltv_delta\CAN\EOT \SOH(\ENQR\SOfinalCltvDelta\DC2!\n\+ \\fpayment_addr\CAN\DC4 \SOH(\fR\vpaymentAddr\DC2'\n\+ \\SIpayment_request\CAN\ENQ \SOH(\tR\SOpaymentRequest\DC2'\n\+ \\SItimeout_seconds\CAN\ACK \SOH(\ENQR\SOtimeoutSeconds\DC2\"\n\+ \\rfee_limit_sat\CAN\a \SOH(\ETXR\vfeeLimitSat\DC2$\n\+ \\SOfee_limit_msat\CAN\r \SOH(\ETXR\ffeeLimitMsat\DC2.\n\+ \\DLEoutgoing_chan_id\CAN\b \SOH(\EOTR\SOoutgoingChanIdB\EOT0\SOH\CAN\SOH\DC2*\n\+ \\DC1outgoing_chan_ids\CAN\DC3 \ETX(\EOTR\SIoutgoingChanIds\DC2&\n\+ \\SIlast_hop_pubkey\CAN\SO \SOH(\fR\rlastHopPubkey\DC2\GS\n\+ \\n\+ \cltv_limit\CAN\t \SOH(\ENQR\tcltvLimit\DC21\n\+ \\vroute_hints\CAN\n\+ \ \ETX(\v2\DLE.lnrpc.RouteHintR\n\+ \routeHints\DC2d\n\+ \\DC3dest_custom_records\CAN\v \ETX(\v24.routerrpc.SendPaymentRequest.DestCustomRecordsEntryR\DC1destCustomRecords\DC2,\n\+ \\DC2allow_self_payment\CAN\SI \SOH(\bR\DLEallowSelfPayment\DC26\n\+ \\rdest_features\CAN\DLE \ETX(\SO2\DC1.lnrpc.FeatureBitR\fdestFeatures\DC2\ESC\n\+ \\tmax_parts\CAN\DC1 \SOH(\rR\bmaxParts\DC2.\n\+ \\DC3no_inflight_updates\CAN\DC2 \SOH(\bR\DC1noInflightUpdates\DC2-\n\+ \\DC3max_shard_size_msat\CAN\NAK \SOH(\EOTR\DLEmaxShardSizeMsat\DC2\DLE\n\+ \\ETXamp\CAN\SYN \SOH(\bR\ETXamp\SUBD\n\+ \\SYNDestCustomRecordsEntry\DC2\DLE\n\+ \\ETXkey\CAN\SOH \SOH(\EOTR\ETXkey\DC2\DC4\n\+ \\ENQvalue\CAN\STX \SOH(\fR\ENQvalue:\STX8\SOH"+ packedFileDescriptor _ = packedFileDescriptor+ fieldsByTag+ = let+ dest__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "dest"+ (Data.ProtoLens.ScalarField Data.ProtoLens.BytesField ::+ Data.ProtoLens.FieldTypeDescriptor Data.ByteString.ByteString)+ (Data.ProtoLens.PlainField+ Data.ProtoLens.Optional (Data.ProtoLens.Field.field @"dest")) ::+ Data.ProtoLens.FieldDescriptor SendPaymentRequest+ amt__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "amt"+ (Data.ProtoLens.ScalarField Data.ProtoLens.Int64Field ::+ Data.ProtoLens.FieldTypeDescriptor Data.Int.Int64)+ (Data.ProtoLens.PlainField+ Data.ProtoLens.Optional (Data.ProtoLens.Field.field @"amt")) ::+ Data.ProtoLens.FieldDescriptor SendPaymentRequest+ amtMsat__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "amt_msat"+ (Data.ProtoLens.ScalarField Data.ProtoLens.Int64Field ::+ Data.ProtoLens.FieldTypeDescriptor Data.Int.Int64)+ (Data.ProtoLens.PlainField+ Data.ProtoLens.Optional (Data.ProtoLens.Field.field @"amtMsat")) ::+ Data.ProtoLens.FieldDescriptor SendPaymentRequest+ paymentHash__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "payment_hash"+ (Data.ProtoLens.ScalarField Data.ProtoLens.BytesField ::+ Data.ProtoLens.FieldTypeDescriptor Data.ByteString.ByteString)+ (Data.ProtoLens.PlainField+ Data.ProtoLens.Optional+ (Data.ProtoLens.Field.field @"paymentHash")) ::+ Data.ProtoLens.FieldDescriptor SendPaymentRequest+ finalCltvDelta__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "final_cltv_delta"+ (Data.ProtoLens.ScalarField Data.ProtoLens.Int32Field ::+ Data.ProtoLens.FieldTypeDescriptor Data.Int.Int32)+ (Data.ProtoLens.PlainField+ Data.ProtoLens.Optional+ (Data.ProtoLens.Field.field @"finalCltvDelta")) ::+ Data.ProtoLens.FieldDescriptor SendPaymentRequest+ paymentAddr__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "payment_addr"+ (Data.ProtoLens.ScalarField Data.ProtoLens.BytesField ::+ Data.ProtoLens.FieldTypeDescriptor Data.ByteString.ByteString)+ (Data.ProtoLens.PlainField+ Data.ProtoLens.Optional+ (Data.ProtoLens.Field.field @"paymentAddr")) ::+ Data.ProtoLens.FieldDescriptor SendPaymentRequest+ paymentRequest__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "payment_request"+ (Data.ProtoLens.ScalarField Data.ProtoLens.StringField ::+ Data.ProtoLens.FieldTypeDescriptor Data.Text.Text)+ (Data.ProtoLens.PlainField+ Data.ProtoLens.Optional+ (Data.ProtoLens.Field.field @"paymentRequest")) ::+ Data.ProtoLens.FieldDescriptor SendPaymentRequest+ timeoutSeconds__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "timeout_seconds"+ (Data.ProtoLens.ScalarField Data.ProtoLens.Int32Field ::+ Data.ProtoLens.FieldTypeDescriptor Data.Int.Int32)+ (Data.ProtoLens.PlainField+ Data.ProtoLens.Optional+ (Data.ProtoLens.Field.field @"timeoutSeconds")) ::+ Data.ProtoLens.FieldDescriptor SendPaymentRequest+ feeLimitSat__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "fee_limit_sat"+ (Data.ProtoLens.ScalarField Data.ProtoLens.Int64Field ::+ Data.ProtoLens.FieldTypeDescriptor Data.Int.Int64)+ (Data.ProtoLens.PlainField+ Data.ProtoLens.Optional+ (Data.ProtoLens.Field.field @"feeLimitSat")) ::+ Data.ProtoLens.FieldDescriptor SendPaymentRequest+ feeLimitMsat__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "fee_limit_msat"+ (Data.ProtoLens.ScalarField Data.ProtoLens.Int64Field ::+ Data.ProtoLens.FieldTypeDescriptor Data.Int.Int64)+ (Data.ProtoLens.PlainField+ Data.ProtoLens.Optional+ (Data.ProtoLens.Field.field @"feeLimitMsat")) ::+ Data.ProtoLens.FieldDescriptor SendPaymentRequest+ outgoingChanId__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "outgoing_chan_id"+ (Data.ProtoLens.ScalarField Data.ProtoLens.UInt64Field ::+ Data.ProtoLens.FieldTypeDescriptor Data.Word.Word64)+ (Data.ProtoLens.PlainField+ Data.ProtoLens.Optional+ (Data.ProtoLens.Field.field @"outgoingChanId")) ::+ Data.ProtoLens.FieldDescriptor SendPaymentRequest+ outgoingChanIds__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "outgoing_chan_ids"+ (Data.ProtoLens.ScalarField Data.ProtoLens.UInt64Field ::+ Data.ProtoLens.FieldTypeDescriptor Data.Word.Word64)+ (Data.ProtoLens.RepeatedField+ Data.ProtoLens.Packed+ (Data.ProtoLens.Field.field @"outgoingChanIds")) ::+ Data.ProtoLens.FieldDescriptor SendPaymentRequest+ lastHopPubkey__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "last_hop_pubkey"+ (Data.ProtoLens.ScalarField Data.ProtoLens.BytesField ::+ Data.ProtoLens.FieldTypeDescriptor Data.ByteString.ByteString)+ (Data.ProtoLens.PlainField+ Data.ProtoLens.Optional+ (Data.ProtoLens.Field.field @"lastHopPubkey")) ::+ Data.ProtoLens.FieldDescriptor SendPaymentRequest+ cltvLimit__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "cltv_limit"+ (Data.ProtoLens.ScalarField Data.ProtoLens.Int32Field ::+ Data.ProtoLens.FieldTypeDescriptor Data.Int.Int32)+ (Data.ProtoLens.PlainField+ Data.ProtoLens.Optional+ (Data.ProtoLens.Field.field @"cltvLimit")) ::+ Data.ProtoLens.FieldDescriptor SendPaymentRequest+ routeHints__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "route_hints"+ (Data.ProtoLens.MessageField Data.ProtoLens.MessageType ::+ Data.ProtoLens.FieldTypeDescriptor Proto.Lnrpc.Ln0.RouteHint)+ (Data.ProtoLens.RepeatedField+ Data.ProtoLens.Unpacked+ (Data.ProtoLens.Field.field @"routeHints")) ::+ Data.ProtoLens.FieldDescriptor SendPaymentRequest+ destCustomRecords__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "dest_custom_records"+ (Data.ProtoLens.MessageField Data.ProtoLens.MessageType ::+ Data.ProtoLens.FieldTypeDescriptor SendPaymentRequest'DestCustomRecordsEntry)+ (Data.ProtoLens.MapField+ (Data.ProtoLens.Field.field @"key")+ (Data.ProtoLens.Field.field @"value")+ (Data.ProtoLens.Field.field @"destCustomRecords")) ::+ Data.ProtoLens.FieldDescriptor SendPaymentRequest+ allowSelfPayment__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "allow_self_payment"+ (Data.ProtoLens.ScalarField Data.ProtoLens.BoolField ::+ Data.ProtoLens.FieldTypeDescriptor Prelude.Bool)+ (Data.ProtoLens.PlainField+ Data.ProtoLens.Optional+ (Data.ProtoLens.Field.field @"allowSelfPayment")) ::+ Data.ProtoLens.FieldDescriptor SendPaymentRequest+ destFeatures__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "dest_features"+ (Data.ProtoLens.ScalarField Data.ProtoLens.EnumField ::+ Data.ProtoLens.FieldTypeDescriptor Proto.Lnrpc.Ln0.FeatureBit)+ (Data.ProtoLens.RepeatedField+ Data.ProtoLens.Packed+ (Data.ProtoLens.Field.field @"destFeatures")) ::+ Data.ProtoLens.FieldDescriptor SendPaymentRequest+ maxParts__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "max_parts"+ (Data.ProtoLens.ScalarField Data.ProtoLens.UInt32Field ::+ Data.ProtoLens.FieldTypeDescriptor Data.Word.Word32)+ (Data.ProtoLens.PlainField+ Data.ProtoLens.Optional+ (Data.ProtoLens.Field.field @"maxParts")) ::+ Data.ProtoLens.FieldDescriptor SendPaymentRequest+ noInflightUpdates__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "no_inflight_updates"+ (Data.ProtoLens.ScalarField Data.ProtoLens.BoolField ::+ Data.ProtoLens.FieldTypeDescriptor Prelude.Bool)+ (Data.ProtoLens.PlainField+ Data.ProtoLens.Optional+ (Data.ProtoLens.Field.field @"noInflightUpdates")) ::+ Data.ProtoLens.FieldDescriptor SendPaymentRequest+ maxShardSizeMsat__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "max_shard_size_msat"+ (Data.ProtoLens.ScalarField Data.ProtoLens.UInt64Field ::+ Data.ProtoLens.FieldTypeDescriptor Data.Word.Word64)+ (Data.ProtoLens.PlainField+ Data.ProtoLens.Optional+ (Data.ProtoLens.Field.field @"maxShardSizeMsat")) ::+ Data.ProtoLens.FieldDescriptor SendPaymentRequest+ amp__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "amp"+ (Data.ProtoLens.ScalarField Data.ProtoLens.BoolField ::+ Data.ProtoLens.FieldTypeDescriptor Prelude.Bool)+ (Data.ProtoLens.PlainField+ Data.ProtoLens.Optional (Data.ProtoLens.Field.field @"amp")) ::+ Data.ProtoLens.FieldDescriptor SendPaymentRequest+ in+ Data.Map.fromList+ [(Data.ProtoLens.Tag 1, dest__field_descriptor),+ (Data.ProtoLens.Tag 2, amt__field_descriptor),+ (Data.ProtoLens.Tag 12, amtMsat__field_descriptor),+ (Data.ProtoLens.Tag 3, paymentHash__field_descriptor),+ (Data.ProtoLens.Tag 4, finalCltvDelta__field_descriptor),+ (Data.ProtoLens.Tag 20, paymentAddr__field_descriptor),+ (Data.ProtoLens.Tag 5, paymentRequest__field_descriptor),+ (Data.ProtoLens.Tag 6, timeoutSeconds__field_descriptor),+ (Data.ProtoLens.Tag 7, feeLimitSat__field_descriptor),+ (Data.ProtoLens.Tag 13, feeLimitMsat__field_descriptor),+ (Data.ProtoLens.Tag 8, outgoingChanId__field_descriptor),+ (Data.ProtoLens.Tag 19, outgoingChanIds__field_descriptor),+ (Data.ProtoLens.Tag 14, lastHopPubkey__field_descriptor),+ (Data.ProtoLens.Tag 9, cltvLimit__field_descriptor),+ (Data.ProtoLens.Tag 10, routeHints__field_descriptor),+ (Data.ProtoLens.Tag 11, destCustomRecords__field_descriptor),+ (Data.ProtoLens.Tag 15, allowSelfPayment__field_descriptor),+ (Data.ProtoLens.Tag 16, destFeatures__field_descriptor),+ (Data.ProtoLens.Tag 17, maxParts__field_descriptor),+ (Data.ProtoLens.Tag 18, noInflightUpdates__field_descriptor),+ (Data.ProtoLens.Tag 21, maxShardSizeMsat__field_descriptor),+ (Data.ProtoLens.Tag 22, amp__field_descriptor)]+ unknownFields+ = Lens.Family2.Unchecked.lens+ _SendPaymentRequest'_unknownFields+ (\ x__ y__ -> x__ {_SendPaymentRequest'_unknownFields = y__})+ defMessage+ = SendPaymentRequest'_constructor+ {_SendPaymentRequest'dest = Data.ProtoLens.fieldDefault,+ _SendPaymentRequest'amt = Data.ProtoLens.fieldDefault,+ _SendPaymentRequest'amtMsat = Data.ProtoLens.fieldDefault,+ _SendPaymentRequest'paymentHash = Data.ProtoLens.fieldDefault,+ _SendPaymentRequest'finalCltvDelta = Data.ProtoLens.fieldDefault,+ _SendPaymentRequest'paymentAddr = Data.ProtoLens.fieldDefault,+ _SendPaymentRequest'paymentRequest = Data.ProtoLens.fieldDefault,+ _SendPaymentRequest'timeoutSeconds = Data.ProtoLens.fieldDefault,+ _SendPaymentRequest'feeLimitSat = Data.ProtoLens.fieldDefault,+ _SendPaymentRequest'feeLimitMsat = Data.ProtoLens.fieldDefault,+ _SendPaymentRequest'outgoingChanId = Data.ProtoLens.fieldDefault,+ _SendPaymentRequest'outgoingChanIds = Data.Vector.Generic.empty,+ _SendPaymentRequest'lastHopPubkey = Data.ProtoLens.fieldDefault,+ _SendPaymentRequest'cltvLimit = Data.ProtoLens.fieldDefault,+ _SendPaymentRequest'routeHints = Data.Vector.Generic.empty,+ _SendPaymentRequest'destCustomRecords = Data.Map.empty,+ _SendPaymentRequest'allowSelfPayment = Data.ProtoLens.fieldDefault,+ _SendPaymentRequest'destFeatures = Data.Vector.Generic.empty,+ _SendPaymentRequest'maxParts = Data.ProtoLens.fieldDefault,+ _SendPaymentRequest'noInflightUpdates = Data.ProtoLens.fieldDefault,+ _SendPaymentRequest'maxShardSizeMsat = Data.ProtoLens.fieldDefault,+ _SendPaymentRequest'amp = Data.ProtoLens.fieldDefault,+ _SendPaymentRequest'_unknownFields = []}+ parseMessage+ = let+ loop ::+ SendPaymentRequest+ -> Data.ProtoLens.Encoding.Growing.Growing Data.Vector.Vector Data.ProtoLens.Encoding.Growing.RealWorld Proto.Lnrpc.Ln0.FeatureBit+ -> Data.ProtoLens.Encoding.Growing.Growing Data.Vector.Unboxed.Vector Data.ProtoLens.Encoding.Growing.RealWorld Data.Word.Word64+ -> Data.ProtoLens.Encoding.Growing.Growing Data.Vector.Vector Data.ProtoLens.Encoding.Growing.RealWorld Proto.Lnrpc.Ln0.RouteHint+ -> Data.ProtoLens.Encoding.Bytes.Parser SendPaymentRequest+ loop+ x+ mutable'destFeatures+ mutable'outgoingChanIds+ mutable'routeHints+ = do end <- Data.ProtoLens.Encoding.Bytes.atEnd+ if end then+ do frozen'destFeatures <- Data.ProtoLens.Encoding.Parser.Unsafe.unsafeLiftIO+ (Data.ProtoLens.Encoding.Growing.unsafeFreeze+ mutable'destFeatures)+ frozen'outgoingChanIds <- Data.ProtoLens.Encoding.Parser.Unsafe.unsafeLiftIO+ (Data.ProtoLens.Encoding.Growing.unsafeFreeze+ mutable'outgoingChanIds)+ frozen'routeHints <- Data.ProtoLens.Encoding.Parser.Unsafe.unsafeLiftIO+ (Data.ProtoLens.Encoding.Growing.unsafeFreeze+ mutable'routeHints)+ (let missing = []+ in+ if Prelude.null missing then+ Prelude.return ()+ else+ Prelude.fail+ ((Prelude.++)+ "Missing required fields: "+ (Prelude.show (missing :: [Prelude.String]))))+ Prelude.return+ (Lens.Family2.over+ Data.ProtoLens.unknownFields (\ !t -> Prelude.reverse t)+ (Lens.Family2.set+ (Data.ProtoLens.Field.field @"vec'destFeatures")+ frozen'destFeatures+ (Lens.Family2.set+ (Data.ProtoLens.Field.field @"vec'outgoingChanIds")+ frozen'outgoingChanIds+ (Lens.Family2.set+ (Data.ProtoLens.Field.field @"vec'routeHints") frozen'routeHints+ x))))+ else+ do tag <- Data.ProtoLens.Encoding.Bytes.getVarInt+ case tag of+ 10+ -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (do len <- Data.ProtoLens.Encoding.Bytes.getVarInt+ Data.ProtoLens.Encoding.Bytes.getBytes+ (Prelude.fromIntegral len))+ "dest"+ loop+ (Lens.Family2.set (Data.ProtoLens.Field.field @"dest") y x)+ mutable'destFeatures mutable'outgoingChanIds mutable'routeHints+ 16+ -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (Prelude.fmap+ Prelude.fromIntegral+ Data.ProtoLens.Encoding.Bytes.getVarInt)+ "amt"+ loop+ (Lens.Family2.set (Data.ProtoLens.Field.field @"amt") y x)+ mutable'destFeatures mutable'outgoingChanIds mutable'routeHints+ 96+ -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (Prelude.fmap+ Prelude.fromIntegral+ Data.ProtoLens.Encoding.Bytes.getVarInt)+ "amt_msat"+ loop+ (Lens.Family2.set (Data.ProtoLens.Field.field @"amtMsat") y x)+ mutable'destFeatures mutable'outgoingChanIds mutable'routeHints+ 26+ -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (do len <- Data.ProtoLens.Encoding.Bytes.getVarInt+ Data.ProtoLens.Encoding.Bytes.getBytes+ (Prelude.fromIntegral len))+ "payment_hash"+ loop+ (Lens.Family2.set (Data.ProtoLens.Field.field @"paymentHash") y x)+ mutable'destFeatures mutable'outgoingChanIds mutable'routeHints+ 32+ -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (Prelude.fmap+ Prelude.fromIntegral+ Data.ProtoLens.Encoding.Bytes.getVarInt)+ "final_cltv_delta"+ loop+ (Lens.Family2.set+ (Data.ProtoLens.Field.field @"finalCltvDelta") y x)+ mutable'destFeatures mutable'outgoingChanIds mutable'routeHints+ 162+ -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (do len <- Data.ProtoLens.Encoding.Bytes.getVarInt+ Data.ProtoLens.Encoding.Bytes.getBytes+ (Prelude.fromIntegral len))+ "payment_addr"+ loop+ (Lens.Family2.set (Data.ProtoLens.Field.field @"paymentAddr") y x)+ mutable'destFeatures mutable'outgoingChanIds mutable'routeHints+ 42+ -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (do value <- do len <- Data.ProtoLens.Encoding.Bytes.getVarInt+ Data.ProtoLens.Encoding.Bytes.getBytes+ (Prelude.fromIntegral len)+ Data.ProtoLens.Encoding.Bytes.runEither+ (case Data.Text.Encoding.decodeUtf8' value of+ (Prelude.Left err)+ -> Prelude.Left (Prelude.show err)+ (Prelude.Right r) -> Prelude.Right r))+ "payment_request"+ loop+ (Lens.Family2.set+ (Data.ProtoLens.Field.field @"paymentRequest") y x)+ mutable'destFeatures mutable'outgoingChanIds mutable'routeHints+ 48+ -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (Prelude.fmap+ Prelude.fromIntegral+ Data.ProtoLens.Encoding.Bytes.getVarInt)+ "timeout_seconds"+ loop+ (Lens.Family2.set+ (Data.ProtoLens.Field.field @"timeoutSeconds") y x)+ mutable'destFeatures mutable'outgoingChanIds mutable'routeHints+ 56+ -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (Prelude.fmap+ Prelude.fromIntegral+ Data.ProtoLens.Encoding.Bytes.getVarInt)+ "fee_limit_sat"+ loop+ (Lens.Family2.set (Data.ProtoLens.Field.field @"feeLimitSat") y x)+ mutable'destFeatures mutable'outgoingChanIds mutable'routeHints+ 104+ -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (Prelude.fmap+ Prelude.fromIntegral+ Data.ProtoLens.Encoding.Bytes.getVarInt)+ "fee_limit_msat"+ loop+ (Lens.Family2.set+ (Data.ProtoLens.Field.field @"feeLimitMsat") y x)+ mutable'destFeatures mutable'outgoingChanIds mutable'routeHints+ 64+ -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ Data.ProtoLens.Encoding.Bytes.getVarInt "outgoing_chan_id"+ loop+ (Lens.Family2.set+ (Data.ProtoLens.Field.field @"outgoingChanId") y x)+ mutable'destFeatures mutable'outgoingChanIds mutable'routeHints+ 152+ -> do !y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ Data.ProtoLens.Encoding.Bytes.getVarInt "outgoing_chan_ids"+ v <- Data.ProtoLens.Encoding.Parser.Unsafe.unsafeLiftIO+ (Data.ProtoLens.Encoding.Growing.append+ mutable'outgoingChanIds y)+ loop x mutable'destFeatures v mutable'routeHints+ 154+ -> do y <- do len <- Data.ProtoLens.Encoding.Bytes.getVarInt+ Data.ProtoLens.Encoding.Bytes.isolate+ (Prelude.fromIntegral len)+ ((let+ ploop qs+ = do packedEnd <- Data.ProtoLens.Encoding.Bytes.atEnd+ if packedEnd then+ Prelude.return qs+ else+ do !q <- (Data.ProtoLens.Encoding.Bytes.<?>)+ Data.ProtoLens.Encoding.Bytes.getVarInt+ "outgoing_chan_ids"+ qs' <- Data.ProtoLens.Encoding.Parser.Unsafe.unsafeLiftIO+ (Data.ProtoLens.Encoding.Growing.append+ qs q)+ ploop qs'+ in ploop)+ mutable'outgoingChanIds)+ loop x mutable'destFeatures y mutable'routeHints+ 114+ -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (do len <- Data.ProtoLens.Encoding.Bytes.getVarInt+ Data.ProtoLens.Encoding.Bytes.getBytes+ (Prelude.fromIntegral len))+ "last_hop_pubkey"+ loop+ (Lens.Family2.set+ (Data.ProtoLens.Field.field @"lastHopPubkey") y x)+ mutable'destFeatures mutable'outgoingChanIds mutable'routeHints+ 72+ -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (Prelude.fmap+ Prelude.fromIntegral+ Data.ProtoLens.Encoding.Bytes.getVarInt)+ "cltv_limit"+ loop+ (Lens.Family2.set (Data.ProtoLens.Field.field @"cltvLimit") y x)+ mutable'destFeatures mutable'outgoingChanIds mutable'routeHints+ 82+ -> do !y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (do len <- Data.ProtoLens.Encoding.Bytes.getVarInt+ Data.ProtoLens.Encoding.Bytes.isolate+ (Prelude.fromIntegral len)+ Data.ProtoLens.parseMessage)+ "route_hints"+ v <- Data.ProtoLens.Encoding.Parser.Unsafe.unsafeLiftIO+ (Data.ProtoLens.Encoding.Growing.append mutable'routeHints y)+ loop x mutable'destFeatures mutable'outgoingChanIds v+ 90+ -> do !(entry :: SendPaymentRequest'DestCustomRecordsEntry) <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (do len <- Data.ProtoLens.Encoding.Bytes.getVarInt+ Data.ProtoLens.Encoding.Bytes.isolate+ (Prelude.fromIntegral+ len)+ Data.ProtoLens.parseMessage)+ "dest_custom_records"+ (let+ key = Lens.Family2.view (Data.ProtoLens.Field.field @"key") entry+ value+ = Lens.Family2.view (Data.ProtoLens.Field.field @"value") entry+ in+ loop+ (Lens.Family2.over+ (Data.ProtoLens.Field.field @"destCustomRecords")+ (\ !t -> Data.Map.insert key value t) x)+ mutable'destFeatures mutable'outgoingChanIds+ mutable'routeHints)+ 120+ -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (Prelude.fmap+ ((Prelude./=) 0) Data.ProtoLens.Encoding.Bytes.getVarInt)+ "allow_self_payment"+ loop+ (Lens.Family2.set+ (Data.ProtoLens.Field.field @"allowSelfPayment") y x)+ mutable'destFeatures mutable'outgoingChanIds mutable'routeHints+ 128+ -> do !y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (Prelude.fmap+ Prelude.toEnum+ (Prelude.fmap+ Prelude.fromIntegral+ Data.ProtoLens.Encoding.Bytes.getVarInt))+ "dest_features"+ v <- Data.ProtoLens.Encoding.Parser.Unsafe.unsafeLiftIO+ (Data.ProtoLens.Encoding.Growing.append+ mutable'destFeatures y)+ loop x v mutable'outgoingChanIds mutable'routeHints+ 130+ -> do y <- do len <- Data.ProtoLens.Encoding.Bytes.getVarInt+ Data.ProtoLens.Encoding.Bytes.isolate+ (Prelude.fromIntegral len)+ ((let+ ploop qs+ = do packedEnd <- Data.ProtoLens.Encoding.Bytes.atEnd+ if packedEnd then+ Prelude.return qs+ else+ do !q <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (Prelude.fmap+ Prelude.toEnum+ (Prelude.fmap+ Prelude.fromIntegral+ Data.ProtoLens.Encoding.Bytes.getVarInt))+ "dest_features"+ qs' <- Data.ProtoLens.Encoding.Parser.Unsafe.unsafeLiftIO+ (Data.ProtoLens.Encoding.Growing.append+ qs q)+ ploop qs'+ in ploop)+ mutable'destFeatures)+ loop x y mutable'outgoingChanIds mutable'routeHints+ 136+ -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (Prelude.fmap+ Prelude.fromIntegral+ Data.ProtoLens.Encoding.Bytes.getVarInt)+ "max_parts"+ loop+ (Lens.Family2.set (Data.ProtoLens.Field.field @"maxParts") y x)+ mutable'destFeatures mutable'outgoingChanIds mutable'routeHints+ 144+ -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (Prelude.fmap+ ((Prelude./=) 0) Data.ProtoLens.Encoding.Bytes.getVarInt)+ "no_inflight_updates"+ loop+ (Lens.Family2.set+ (Data.ProtoLens.Field.field @"noInflightUpdates") y x)+ mutable'destFeatures mutable'outgoingChanIds mutable'routeHints+ 168+ -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ Data.ProtoLens.Encoding.Bytes.getVarInt "max_shard_size_msat"+ loop+ (Lens.Family2.set+ (Data.ProtoLens.Field.field @"maxShardSizeMsat") y x)+ mutable'destFeatures mutable'outgoingChanIds mutable'routeHints+ 176+ -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (Prelude.fmap+ ((Prelude./=) 0) Data.ProtoLens.Encoding.Bytes.getVarInt)+ "amp"+ loop+ (Lens.Family2.set (Data.ProtoLens.Field.field @"amp") y x)+ mutable'destFeatures mutable'outgoingChanIds mutable'routeHints+ wire+ -> do !y <- Data.ProtoLens.Encoding.Wire.parseTaggedValueFromWire+ wire+ loop+ (Lens.Family2.over+ Data.ProtoLens.unknownFields (\ !t -> (:) y t) x)+ mutable'destFeatures mutable'outgoingChanIds mutable'routeHints+ in+ (Data.ProtoLens.Encoding.Bytes.<?>)+ (do mutable'destFeatures <- Data.ProtoLens.Encoding.Parser.Unsafe.unsafeLiftIO+ Data.ProtoLens.Encoding.Growing.new+ mutable'outgoingChanIds <- Data.ProtoLens.Encoding.Parser.Unsafe.unsafeLiftIO+ Data.ProtoLens.Encoding.Growing.new+ mutable'routeHints <- Data.ProtoLens.Encoding.Parser.Unsafe.unsafeLiftIO+ Data.ProtoLens.Encoding.Growing.new+ loop+ Data.ProtoLens.defMessage mutable'destFeatures+ mutable'outgoingChanIds mutable'routeHints)+ "SendPaymentRequest"+ buildMessage+ = \ _x+ -> (Data.Monoid.<>)+ (let _v = Lens.Family2.view (Data.ProtoLens.Field.field @"dest") _x+ in+ if (Prelude.==) _v Data.ProtoLens.fieldDefault then+ Data.Monoid.mempty+ else+ (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 10)+ ((\ bs+ -> (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt+ (Prelude.fromIntegral (Data.ByteString.length bs)))+ (Data.ProtoLens.Encoding.Bytes.putBytes bs))+ _v))+ ((Data.Monoid.<>)+ (let _v = Lens.Family2.view (Data.ProtoLens.Field.field @"amt") _x+ in+ if (Prelude.==) _v Data.ProtoLens.fieldDefault then+ Data.Monoid.mempty+ else+ (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 16)+ ((Prelude..)+ Data.ProtoLens.Encoding.Bytes.putVarInt Prelude.fromIntegral _v))+ ((Data.Monoid.<>)+ (let+ _v = Lens.Family2.view (Data.ProtoLens.Field.field @"amtMsat") _x+ in+ if (Prelude.==) _v Data.ProtoLens.fieldDefault then+ Data.Monoid.mempty+ else+ (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 96)+ ((Prelude..)+ Data.ProtoLens.Encoding.Bytes.putVarInt Prelude.fromIntegral _v))+ ((Data.Monoid.<>)+ (let+ _v+ = Lens.Family2.view (Data.ProtoLens.Field.field @"paymentHash") _x+ in+ if (Prelude.==) _v Data.ProtoLens.fieldDefault then+ Data.Monoid.mempty+ else+ (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 26)+ ((\ bs+ -> (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt+ (Prelude.fromIntegral (Data.ByteString.length bs)))+ (Data.ProtoLens.Encoding.Bytes.putBytes bs))+ _v))+ ((Data.Monoid.<>)+ (let+ _v+ = Lens.Family2.view+ (Data.ProtoLens.Field.field @"finalCltvDelta") _x+ in+ if (Prelude.==) _v Data.ProtoLens.fieldDefault then+ Data.Monoid.mempty+ else+ (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 32)+ ((Prelude..)+ Data.ProtoLens.Encoding.Bytes.putVarInt Prelude.fromIntegral+ _v))+ ((Data.Monoid.<>)+ (let+ _v+ = Lens.Family2.view (Data.ProtoLens.Field.field @"paymentAddr") _x+ in+ if (Prelude.==) _v Data.ProtoLens.fieldDefault then+ Data.Monoid.mempty+ else+ (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 162)+ ((\ bs+ -> (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt+ (Prelude.fromIntegral (Data.ByteString.length bs)))+ (Data.ProtoLens.Encoding.Bytes.putBytes bs))+ _v))+ ((Data.Monoid.<>)+ (let+ _v+ = Lens.Family2.view+ (Data.ProtoLens.Field.field @"paymentRequest") _x+ in+ if (Prelude.==) _v Data.ProtoLens.fieldDefault then+ Data.Monoid.mempty+ else+ (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 42)+ ((Prelude..)+ (\ bs+ -> (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt+ (Prelude.fromIntegral+ (Data.ByteString.length bs)))+ (Data.ProtoLens.Encoding.Bytes.putBytes bs))+ Data.Text.Encoding.encodeUtf8 _v))+ ((Data.Monoid.<>)+ (let+ _v+ = Lens.Family2.view+ (Data.ProtoLens.Field.field @"timeoutSeconds") _x+ in+ if (Prelude.==) _v Data.ProtoLens.fieldDefault then+ Data.Monoid.mempty+ else+ (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 48)+ ((Prelude..)+ Data.ProtoLens.Encoding.Bytes.putVarInt+ Prelude.fromIntegral _v))+ ((Data.Monoid.<>)+ (let+ _v+ = Lens.Family2.view+ (Data.ProtoLens.Field.field @"feeLimitSat") _x+ in+ if (Prelude.==) _v Data.ProtoLens.fieldDefault then+ Data.Monoid.mempty+ else+ (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 56)+ ((Prelude..)+ Data.ProtoLens.Encoding.Bytes.putVarInt+ Prelude.fromIntegral _v))+ ((Data.Monoid.<>)+ (let+ _v+ = Lens.Family2.view+ (Data.ProtoLens.Field.field @"feeLimitMsat") _x+ in+ if (Prelude.==) _v Data.ProtoLens.fieldDefault then+ Data.Monoid.mempty+ else+ (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 104)+ ((Prelude..)+ Data.ProtoLens.Encoding.Bytes.putVarInt+ Prelude.fromIntegral _v))+ ((Data.Monoid.<>)+ (let+ _v+ = Lens.Family2.view+ (Data.ProtoLens.Field.field @"outgoingChanId")+ _x+ in+ if (Prelude.==) _v Data.ProtoLens.fieldDefault then+ Data.Monoid.mempty+ else+ (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 64)+ (Data.ProtoLens.Encoding.Bytes.putVarInt _v))+ ((Data.Monoid.<>)+ (let+ p = Lens.Family2.view+ (Data.ProtoLens.Field.field+ @"vec'outgoingChanIds")+ _x+ in+ if Data.Vector.Generic.null p then+ Data.Monoid.mempty+ else+ (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 154)+ ((\ bs+ -> (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt+ (Prelude.fromIntegral+ (Data.ByteString.length bs)))+ (Data.ProtoLens.Encoding.Bytes.putBytes+ bs))+ (Data.ProtoLens.Encoding.Bytes.runBuilder+ (Data.ProtoLens.Encoding.Bytes.foldMapBuilder+ Data.ProtoLens.Encoding.Bytes.putVarInt+ p))))+ ((Data.Monoid.<>)+ (let+ _v+ = Lens.Family2.view+ (Data.ProtoLens.Field.field+ @"lastHopPubkey")+ _x+ in+ if (Prelude.==)+ _v Data.ProtoLens.fieldDefault then+ Data.Monoid.mempty+ else+ (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt+ 114)+ ((\ bs+ -> (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt+ (Prelude.fromIntegral+ (Data.ByteString.length+ bs)))+ (Data.ProtoLens.Encoding.Bytes.putBytes+ bs))+ _v))+ ((Data.Monoid.<>)+ (let+ _v+ = Lens.Family2.view+ (Data.ProtoLens.Field.field+ @"cltvLimit")+ _x+ in+ if (Prelude.==)+ _v Data.ProtoLens.fieldDefault then+ Data.Monoid.mempty+ else+ (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt+ 72)+ ((Prelude..)+ Data.ProtoLens.Encoding.Bytes.putVarInt+ Prelude.fromIntegral _v))+ ((Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.foldMapBuilder+ (\ _v+ -> (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt+ 82)+ ((Prelude..)+ (\ bs+ -> (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt+ (Prelude.fromIntegral+ (Data.ByteString.length+ bs)))+ (Data.ProtoLens.Encoding.Bytes.putBytes+ bs))+ Data.ProtoLens.encodeMessage+ _v))+ (Lens.Family2.view+ (Data.ProtoLens.Field.field+ @"vec'routeHints")+ _x))+ ((Data.Monoid.<>)+ (Data.Monoid.mconcat+ (Prelude.map+ (\ _v+ -> (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt+ 90)+ ((Prelude..)+ (\ bs+ -> (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt+ (Prelude.fromIntegral+ (Data.ByteString.length+ bs)))+ (Data.ProtoLens.Encoding.Bytes.putBytes+ bs))+ Data.ProtoLens.encodeMessage+ (Lens.Family2.set+ (Data.ProtoLens.Field.field+ @"key")+ (Prelude.fst _v)+ (Lens.Family2.set+ (Data.ProtoLens.Field.field+ @"value")+ (Prelude.snd _v)+ (Data.ProtoLens.defMessage ::+ SendPaymentRequest'DestCustomRecordsEntry)))))+ (Data.Map.toList+ (Lens.Family2.view+ (Data.ProtoLens.Field.field+ @"destCustomRecords")+ _x))))+ ((Data.Monoid.<>)+ (let+ _v+ = Lens.Family2.view+ (Data.ProtoLens.Field.field+ @"allowSelfPayment")+ _x+ in+ if (Prelude.==)+ _v+ Data.ProtoLens.fieldDefault then+ Data.Monoid.mempty+ else+ (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt+ 120)+ ((Prelude..)+ Data.ProtoLens.Encoding.Bytes.putVarInt+ (\ b -> if b then 1 else 0)+ _v))+ ((Data.Monoid.<>)+ (let+ p = Lens.Family2.view+ (Data.ProtoLens.Field.field+ @"vec'destFeatures")+ _x+ in+ if Data.Vector.Generic.null+ p then+ Data.Monoid.mempty+ else+ (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt+ 130)+ ((\ bs+ -> (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt+ (Prelude.fromIntegral+ (Data.ByteString.length+ bs)))+ (Data.ProtoLens.Encoding.Bytes.putBytes+ bs))+ (Data.ProtoLens.Encoding.Bytes.runBuilder+ (Data.ProtoLens.Encoding.Bytes.foldMapBuilder+ ((Prelude..)+ ((Prelude..)+ Data.ProtoLens.Encoding.Bytes.putVarInt+ Prelude.fromIntegral)+ Prelude.fromEnum)+ p))))+ ((Data.Monoid.<>)+ (let+ _v+ = Lens.Family2.view+ (Data.ProtoLens.Field.field+ @"maxParts")+ _x+ in+ if (Prelude.==)+ _v+ Data.ProtoLens.fieldDefault then+ Data.Monoid.mempty+ else+ (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt+ 136)+ ((Prelude..)+ Data.ProtoLens.Encoding.Bytes.putVarInt+ Prelude.fromIntegral+ _v))+ ((Data.Monoid.<>)+ (let+ _v+ = Lens.Family2.view+ (Data.ProtoLens.Field.field+ @"noInflightUpdates")+ _x+ in+ if (Prelude.==)+ _v+ Data.ProtoLens.fieldDefault then+ Data.Monoid.mempty+ else+ (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt+ 144)+ ((Prelude..)+ Data.ProtoLens.Encoding.Bytes.putVarInt+ (\ b+ -> if b then+ 1+ else+ 0)+ _v))+ ((Data.Monoid.<>)+ (let+ _v+ = Lens.Family2.view+ (Data.ProtoLens.Field.field+ @"maxShardSizeMsat")+ _x+ in+ if (Prelude.==)+ _v+ Data.ProtoLens.fieldDefault then+ Data.Monoid.mempty+ else+ (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt+ 168)+ (Data.ProtoLens.Encoding.Bytes.putVarInt+ _v))+ ((Data.Monoid.<>)+ (let+ _v+ = Lens.Family2.view+ (Data.ProtoLens.Field.field+ @"amp")+ _x+ in+ if (Prelude.==)+ _v+ Data.ProtoLens.fieldDefault then+ Data.Monoid.mempty+ else+ (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt+ 176)+ ((Prelude..)+ Data.ProtoLens.Encoding.Bytes.putVarInt+ (\ b+ -> if b then+ 1+ else+ 0)+ _v))+ (Data.ProtoLens.Encoding.Wire.buildFieldSet+ (Lens.Family2.view+ Data.ProtoLens.unknownFields+ _x)))))))))))))))))))))))+instance Control.DeepSeq.NFData SendPaymentRequest where+ rnf+ = \ x__+ -> Control.DeepSeq.deepseq+ (_SendPaymentRequest'_unknownFields x__)+ (Control.DeepSeq.deepseq+ (_SendPaymentRequest'dest x__)+ (Control.DeepSeq.deepseq+ (_SendPaymentRequest'amt x__)+ (Control.DeepSeq.deepseq+ (_SendPaymentRequest'amtMsat x__)+ (Control.DeepSeq.deepseq+ (_SendPaymentRequest'paymentHash x__)+ (Control.DeepSeq.deepseq+ (_SendPaymentRequest'finalCltvDelta x__)+ (Control.DeepSeq.deepseq+ (_SendPaymentRequest'paymentAddr x__)+ (Control.DeepSeq.deepseq+ (_SendPaymentRequest'paymentRequest x__)+ (Control.DeepSeq.deepseq+ (_SendPaymentRequest'timeoutSeconds x__)+ (Control.DeepSeq.deepseq+ (_SendPaymentRequest'feeLimitSat x__)+ (Control.DeepSeq.deepseq+ (_SendPaymentRequest'feeLimitMsat x__)+ (Control.DeepSeq.deepseq+ (_SendPaymentRequest'outgoingChanId x__)+ (Control.DeepSeq.deepseq+ (_SendPaymentRequest'outgoingChanIds x__)+ (Control.DeepSeq.deepseq+ (_SendPaymentRequest'lastHopPubkey x__)+ (Control.DeepSeq.deepseq+ (_SendPaymentRequest'cltvLimit x__)+ (Control.DeepSeq.deepseq+ (_SendPaymentRequest'routeHints x__)+ (Control.DeepSeq.deepseq+ (_SendPaymentRequest'destCustomRecords+ x__)+ (Control.DeepSeq.deepseq+ (_SendPaymentRequest'allowSelfPayment+ x__)+ (Control.DeepSeq.deepseq+ (_SendPaymentRequest'destFeatures+ x__)+ (Control.DeepSeq.deepseq+ (_SendPaymentRequest'maxParts+ x__)+ (Control.DeepSeq.deepseq+ (_SendPaymentRequest'noInflightUpdates+ x__)+ (Control.DeepSeq.deepseq+ (_SendPaymentRequest'maxShardSizeMsat+ x__)+ (Control.DeepSeq.deepseq+ (_SendPaymentRequest'amp+ x__)+ ()))))))))))))))))))))))+{- | Fields :+ + * 'Proto.Routerrpc.Router_Fields.key' @:: Lens' SendPaymentRequest'DestCustomRecordsEntry Data.Word.Word64@+ * 'Proto.Routerrpc.Router_Fields.value' @:: Lens' SendPaymentRequest'DestCustomRecordsEntry Data.ByteString.ByteString@ -}+data SendPaymentRequest'DestCustomRecordsEntry+ = SendPaymentRequest'DestCustomRecordsEntry'_constructor {_SendPaymentRequest'DestCustomRecordsEntry'key :: !Data.Word.Word64,+ _SendPaymentRequest'DestCustomRecordsEntry'value :: !Data.ByteString.ByteString,+ _SendPaymentRequest'DestCustomRecordsEntry'_unknownFields :: !Data.ProtoLens.FieldSet}+ deriving stock (Prelude.Eq, Prelude.Ord, GHC.Generics.Generic)+instance Prelude.Show SendPaymentRequest'DestCustomRecordsEntry where+ showsPrec _ __x __s+ = Prelude.showChar+ '{'+ (Prelude.showString+ (Data.ProtoLens.showMessageShort __x) (Prelude.showChar '}' __s))+instance Text.PrettyPrint.GenericPretty.Out SendPaymentRequest'DestCustomRecordsEntry+instance Data.ProtoLens.Field.HasField SendPaymentRequest'DestCustomRecordsEntry "key" Data.Word.Word64 where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _SendPaymentRequest'DestCustomRecordsEntry'key+ (\ x__ y__+ -> x__ {_SendPaymentRequest'DestCustomRecordsEntry'key = y__}))+ Prelude.id+instance Data.ProtoLens.Field.HasField SendPaymentRequest'DestCustomRecordsEntry "value" Data.ByteString.ByteString where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _SendPaymentRequest'DestCustomRecordsEntry'value+ (\ x__ y__+ -> x__ {_SendPaymentRequest'DestCustomRecordsEntry'value = y__}))+ Prelude.id+instance Data.ProtoLens.Message SendPaymentRequest'DestCustomRecordsEntry where+ messageName _+ = Data.Text.pack+ "routerrpc.SendPaymentRequest.DestCustomRecordsEntry"+ packedMessageDescriptor _+ = "\n\+ \\SYNDestCustomRecordsEntry\DC2\DLE\n\+ \\ETXkey\CAN\SOH \SOH(\EOTR\ETXkey\DC2\DC4\n\+ \\ENQvalue\CAN\STX \SOH(\fR\ENQvalue:\STX8\SOH"+ packedFileDescriptor _ = packedFileDescriptor+ fieldsByTag+ = let+ key__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "key"+ (Data.ProtoLens.ScalarField Data.ProtoLens.UInt64Field ::+ Data.ProtoLens.FieldTypeDescriptor Data.Word.Word64)+ (Data.ProtoLens.PlainField+ Data.ProtoLens.Optional (Data.ProtoLens.Field.field @"key")) ::+ Data.ProtoLens.FieldDescriptor SendPaymentRequest'DestCustomRecordsEntry+ value__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "value"+ (Data.ProtoLens.ScalarField Data.ProtoLens.BytesField ::+ Data.ProtoLens.FieldTypeDescriptor Data.ByteString.ByteString)+ (Data.ProtoLens.PlainField+ Data.ProtoLens.Optional (Data.ProtoLens.Field.field @"value")) ::+ Data.ProtoLens.FieldDescriptor SendPaymentRequest'DestCustomRecordsEntry+ in+ Data.Map.fromList+ [(Data.ProtoLens.Tag 1, key__field_descriptor),+ (Data.ProtoLens.Tag 2, value__field_descriptor)]+ unknownFields+ = Lens.Family2.Unchecked.lens+ _SendPaymentRequest'DestCustomRecordsEntry'_unknownFields+ (\ x__ y__+ -> x__+ {_SendPaymentRequest'DestCustomRecordsEntry'_unknownFields = y__})+ defMessage+ = SendPaymentRequest'DestCustomRecordsEntry'_constructor+ {_SendPaymentRequest'DestCustomRecordsEntry'key = Data.ProtoLens.fieldDefault,+ _SendPaymentRequest'DestCustomRecordsEntry'value = Data.ProtoLens.fieldDefault,+ _SendPaymentRequest'DestCustomRecordsEntry'_unknownFields = []}+ parseMessage+ = let+ loop ::+ SendPaymentRequest'DestCustomRecordsEntry+ -> Data.ProtoLens.Encoding.Bytes.Parser SendPaymentRequest'DestCustomRecordsEntry+ loop x+ = do end <- Data.ProtoLens.Encoding.Bytes.atEnd+ if end then+ do (let missing = []+ in+ if Prelude.null missing then+ Prelude.return ()+ else+ Prelude.fail+ ((Prelude.++)+ "Missing required fields: "+ (Prelude.show (missing :: [Prelude.String]))))+ Prelude.return+ (Lens.Family2.over+ Data.ProtoLens.unknownFields (\ !t -> Prelude.reverse t) x)+ else+ do tag <- Data.ProtoLens.Encoding.Bytes.getVarInt+ case tag of+ 8 -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ Data.ProtoLens.Encoding.Bytes.getVarInt "key"+ loop (Lens.Family2.set (Data.ProtoLens.Field.field @"key") y x)+ 18+ -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (do len <- Data.ProtoLens.Encoding.Bytes.getVarInt+ Data.ProtoLens.Encoding.Bytes.getBytes+ (Prelude.fromIntegral len))+ "value"+ loop (Lens.Family2.set (Data.ProtoLens.Field.field @"value") y x)+ wire+ -> do !y <- Data.ProtoLens.Encoding.Wire.parseTaggedValueFromWire+ wire+ loop+ (Lens.Family2.over+ Data.ProtoLens.unknownFields (\ !t -> (:) y t) x)+ in+ (Data.ProtoLens.Encoding.Bytes.<?>)+ (do loop Data.ProtoLens.defMessage) "DestCustomRecordsEntry"+ buildMessage+ = \ _x+ -> (Data.Monoid.<>)+ (let _v = Lens.Family2.view (Data.ProtoLens.Field.field @"key") _x+ in+ if (Prelude.==) _v Data.ProtoLens.fieldDefault then+ Data.Monoid.mempty+ else+ (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 8)+ (Data.ProtoLens.Encoding.Bytes.putVarInt _v))+ ((Data.Monoid.<>)+ (let+ _v = Lens.Family2.view (Data.ProtoLens.Field.field @"value") _x+ in+ if (Prelude.==) _v Data.ProtoLens.fieldDefault then+ Data.Monoid.mempty+ else+ (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 18)+ ((\ bs+ -> (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt+ (Prelude.fromIntegral (Data.ByteString.length bs)))+ (Data.ProtoLens.Encoding.Bytes.putBytes bs))+ _v))+ (Data.ProtoLens.Encoding.Wire.buildFieldSet+ (Lens.Family2.view Data.ProtoLens.unknownFields _x)))+instance Control.DeepSeq.NFData SendPaymentRequest'DestCustomRecordsEntry where+ rnf+ = \ x__+ -> Control.DeepSeq.deepseq+ (_SendPaymentRequest'DestCustomRecordsEntry'_unknownFields x__)+ (Control.DeepSeq.deepseq+ (_SendPaymentRequest'DestCustomRecordsEntry'key x__)+ (Control.DeepSeq.deepseq+ (_SendPaymentRequest'DestCustomRecordsEntry'value x__) ()))+{- | Fields :+ + * 'Proto.Routerrpc.Router_Fields.paymentHash' @:: Lens' SendToRouteRequest Data.ByteString.ByteString@+ * 'Proto.Routerrpc.Router_Fields.route' @:: Lens' SendToRouteRequest Proto.Lnrpc.Ln0.Route@+ * 'Proto.Routerrpc.Router_Fields.maybe'route' @:: Lens' SendToRouteRequest (Prelude.Maybe Proto.Lnrpc.Ln0.Route)@ -}+data SendToRouteRequest+ = SendToRouteRequest'_constructor {_SendToRouteRequest'paymentHash :: !Data.ByteString.ByteString,+ _SendToRouteRequest'route :: !(Prelude.Maybe Proto.Lnrpc.Ln0.Route),+ _SendToRouteRequest'_unknownFields :: !Data.ProtoLens.FieldSet}+ deriving stock (Prelude.Eq, Prelude.Ord, GHC.Generics.Generic)+instance Prelude.Show SendToRouteRequest where+ showsPrec _ __x __s+ = Prelude.showChar+ '{'+ (Prelude.showString+ (Data.ProtoLens.showMessageShort __x) (Prelude.showChar '}' __s))+instance Text.PrettyPrint.GenericPretty.Out SendToRouteRequest+instance Data.ProtoLens.Field.HasField SendToRouteRequest "paymentHash" Data.ByteString.ByteString where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _SendToRouteRequest'paymentHash+ (\ x__ y__ -> x__ {_SendToRouteRequest'paymentHash = y__}))+ Prelude.id+instance Data.ProtoLens.Field.HasField SendToRouteRequest "route" Proto.Lnrpc.Ln0.Route where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _SendToRouteRequest'route+ (\ x__ y__ -> x__ {_SendToRouteRequest'route = y__}))+ (Data.ProtoLens.maybeLens Data.ProtoLens.defMessage)+instance Data.ProtoLens.Field.HasField SendToRouteRequest "maybe'route" (Prelude.Maybe Proto.Lnrpc.Ln0.Route) where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _SendToRouteRequest'route+ (\ x__ y__ -> x__ {_SendToRouteRequest'route = y__}))+ Prelude.id+instance Data.ProtoLens.Message SendToRouteRequest where+ messageName _ = Data.Text.pack "routerrpc.SendToRouteRequest"+ packedMessageDescriptor _+ = "\n\+ \\DC2SendToRouteRequest\DC2!\n\+ \\fpayment_hash\CAN\SOH \SOH(\fR\vpaymentHash\DC2\"\n\+ \\ENQroute\CAN\STX \SOH(\v2\f.lnrpc.RouteR\ENQroute"+ packedFileDescriptor _ = packedFileDescriptor+ fieldsByTag+ = let+ paymentHash__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "payment_hash"+ (Data.ProtoLens.ScalarField Data.ProtoLens.BytesField ::+ Data.ProtoLens.FieldTypeDescriptor Data.ByteString.ByteString)+ (Data.ProtoLens.PlainField+ Data.ProtoLens.Optional+ (Data.ProtoLens.Field.field @"paymentHash")) ::+ Data.ProtoLens.FieldDescriptor SendToRouteRequest+ route__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "route"+ (Data.ProtoLens.MessageField Data.ProtoLens.MessageType ::+ Data.ProtoLens.FieldTypeDescriptor Proto.Lnrpc.Ln0.Route)+ (Data.ProtoLens.OptionalField+ (Data.ProtoLens.Field.field @"maybe'route")) ::+ Data.ProtoLens.FieldDescriptor SendToRouteRequest+ in+ Data.Map.fromList+ [(Data.ProtoLens.Tag 1, paymentHash__field_descriptor),+ (Data.ProtoLens.Tag 2, route__field_descriptor)]+ unknownFields+ = Lens.Family2.Unchecked.lens+ _SendToRouteRequest'_unknownFields+ (\ x__ y__ -> x__ {_SendToRouteRequest'_unknownFields = y__})+ defMessage+ = SendToRouteRequest'_constructor+ {_SendToRouteRequest'paymentHash = Data.ProtoLens.fieldDefault,+ _SendToRouteRequest'route = Prelude.Nothing,+ _SendToRouteRequest'_unknownFields = []}+ parseMessage+ = let+ loop ::+ SendToRouteRequest+ -> Data.ProtoLens.Encoding.Bytes.Parser SendToRouteRequest+ loop x+ = do end <- Data.ProtoLens.Encoding.Bytes.atEnd+ if end then+ do (let missing = []+ in+ if Prelude.null missing then+ Prelude.return ()+ else+ Prelude.fail+ ((Prelude.++)+ "Missing required fields: "+ (Prelude.show (missing :: [Prelude.String]))))+ Prelude.return+ (Lens.Family2.over+ Data.ProtoLens.unknownFields (\ !t -> Prelude.reverse t) x)+ else+ do tag <- Data.ProtoLens.Encoding.Bytes.getVarInt+ case tag of+ 10+ -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (do len <- Data.ProtoLens.Encoding.Bytes.getVarInt+ Data.ProtoLens.Encoding.Bytes.getBytes+ (Prelude.fromIntegral len))+ "payment_hash"+ loop+ (Lens.Family2.set (Data.ProtoLens.Field.field @"paymentHash") y x)+ 18+ -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (do len <- Data.ProtoLens.Encoding.Bytes.getVarInt+ Data.ProtoLens.Encoding.Bytes.isolate+ (Prelude.fromIntegral len) Data.ProtoLens.parseMessage)+ "route"+ loop (Lens.Family2.set (Data.ProtoLens.Field.field @"route") y x)+ wire+ -> do !y <- Data.ProtoLens.Encoding.Wire.parseTaggedValueFromWire+ wire+ loop+ (Lens.Family2.over+ Data.ProtoLens.unknownFields (\ !t -> (:) y t) x)+ in+ (Data.ProtoLens.Encoding.Bytes.<?>)+ (do loop Data.ProtoLens.defMessage) "SendToRouteRequest"+ buildMessage+ = \ _x+ -> (Data.Monoid.<>)+ (let+ _v+ = Lens.Family2.view (Data.ProtoLens.Field.field @"paymentHash") _x+ in+ if (Prelude.==) _v Data.ProtoLens.fieldDefault then+ Data.Monoid.mempty+ else+ (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 10)+ ((\ bs+ -> (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt+ (Prelude.fromIntegral (Data.ByteString.length bs)))+ (Data.ProtoLens.Encoding.Bytes.putBytes bs))+ _v))+ ((Data.Monoid.<>)+ (case+ Lens.Family2.view (Data.ProtoLens.Field.field @"maybe'route") _x+ of+ Prelude.Nothing -> Data.Monoid.mempty+ (Prelude.Just _v)+ -> (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 18)+ ((Prelude..)+ (\ bs+ -> (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt+ (Prelude.fromIntegral (Data.ByteString.length bs)))+ (Data.ProtoLens.Encoding.Bytes.putBytes bs))+ Data.ProtoLens.encodeMessage _v))+ (Data.ProtoLens.Encoding.Wire.buildFieldSet+ (Lens.Family2.view Data.ProtoLens.unknownFields _x)))+instance Control.DeepSeq.NFData SendToRouteRequest where+ rnf+ = \ x__+ -> Control.DeepSeq.deepseq+ (_SendToRouteRequest'_unknownFields x__)+ (Control.DeepSeq.deepseq+ (_SendToRouteRequest'paymentHash x__)+ (Control.DeepSeq.deepseq (_SendToRouteRequest'route x__) ()))+{- | Fields :+ + * 'Proto.Routerrpc.Router_Fields.preimage' @:: Lens' SendToRouteResponse Data.ByteString.ByteString@+ * 'Proto.Routerrpc.Router_Fields.failure' @:: Lens' SendToRouteResponse Proto.Lnrpc.Ln1.Failure@+ * 'Proto.Routerrpc.Router_Fields.maybe'failure' @:: Lens' SendToRouteResponse (Prelude.Maybe Proto.Lnrpc.Ln1.Failure)@ -}+data SendToRouteResponse+ = SendToRouteResponse'_constructor {_SendToRouteResponse'preimage :: !Data.ByteString.ByteString,+ _SendToRouteResponse'failure :: !(Prelude.Maybe Proto.Lnrpc.Ln1.Failure),+ _SendToRouteResponse'_unknownFields :: !Data.ProtoLens.FieldSet}+ deriving stock (Prelude.Eq, Prelude.Ord, GHC.Generics.Generic)+instance Prelude.Show SendToRouteResponse where+ showsPrec _ __x __s+ = Prelude.showChar+ '{'+ (Prelude.showString+ (Data.ProtoLens.showMessageShort __x) (Prelude.showChar '}' __s))+instance Text.PrettyPrint.GenericPretty.Out SendToRouteResponse+instance Data.ProtoLens.Field.HasField SendToRouteResponse "preimage" Data.ByteString.ByteString where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _SendToRouteResponse'preimage+ (\ x__ y__ -> x__ {_SendToRouteResponse'preimage = y__}))+ Prelude.id+instance Data.ProtoLens.Field.HasField SendToRouteResponse "failure" Proto.Lnrpc.Ln1.Failure where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _SendToRouteResponse'failure+ (\ x__ y__ -> x__ {_SendToRouteResponse'failure = y__}))+ (Data.ProtoLens.maybeLens Data.ProtoLens.defMessage)+instance Data.ProtoLens.Field.HasField SendToRouteResponse "maybe'failure" (Prelude.Maybe Proto.Lnrpc.Ln1.Failure) where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _SendToRouteResponse'failure+ (\ x__ y__ -> x__ {_SendToRouteResponse'failure = y__}))+ Prelude.id+instance Data.ProtoLens.Message SendToRouteResponse where+ messageName _ = Data.Text.pack "routerrpc.SendToRouteResponse"+ packedMessageDescriptor _+ = "\n\+ \\DC3SendToRouteResponse\DC2\SUB\n\+ \\bpreimage\CAN\SOH \SOH(\fR\bpreimage\DC2(\n\+ \\afailure\CAN\STX \SOH(\v2\SO.lnrpc.FailureR\afailure"+ packedFileDescriptor _ = packedFileDescriptor+ fieldsByTag+ = let+ preimage__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "preimage"+ (Data.ProtoLens.ScalarField Data.ProtoLens.BytesField ::+ Data.ProtoLens.FieldTypeDescriptor Data.ByteString.ByteString)+ (Data.ProtoLens.PlainField+ Data.ProtoLens.Optional+ (Data.ProtoLens.Field.field @"preimage")) ::+ Data.ProtoLens.FieldDescriptor SendToRouteResponse+ failure__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "failure"+ (Data.ProtoLens.MessageField Data.ProtoLens.MessageType ::+ Data.ProtoLens.FieldTypeDescriptor Proto.Lnrpc.Ln1.Failure)+ (Data.ProtoLens.OptionalField+ (Data.ProtoLens.Field.field @"maybe'failure")) ::+ Data.ProtoLens.FieldDescriptor SendToRouteResponse+ in+ Data.Map.fromList+ [(Data.ProtoLens.Tag 1, preimage__field_descriptor),+ (Data.ProtoLens.Tag 2, failure__field_descriptor)]+ unknownFields+ = Lens.Family2.Unchecked.lens+ _SendToRouteResponse'_unknownFields+ (\ x__ y__ -> x__ {_SendToRouteResponse'_unknownFields = y__})+ defMessage+ = SendToRouteResponse'_constructor+ {_SendToRouteResponse'preimage = Data.ProtoLens.fieldDefault,+ _SendToRouteResponse'failure = Prelude.Nothing,+ _SendToRouteResponse'_unknownFields = []}+ parseMessage+ = let+ loop ::+ SendToRouteResponse+ -> Data.ProtoLens.Encoding.Bytes.Parser SendToRouteResponse+ loop x+ = do end <- Data.ProtoLens.Encoding.Bytes.atEnd+ if end then+ do (let missing = []+ in+ if Prelude.null missing then+ Prelude.return ()+ else+ Prelude.fail+ ((Prelude.++)+ "Missing required fields: "+ (Prelude.show (missing :: [Prelude.String]))))+ Prelude.return+ (Lens.Family2.over+ Data.ProtoLens.unknownFields (\ !t -> Prelude.reverse t) x)+ else+ do tag <- Data.ProtoLens.Encoding.Bytes.getVarInt+ case tag of+ 10+ -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (do len <- Data.ProtoLens.Encoding.Bytes.getVarInt+ Data.ProtoLens.Encoding.Bytes.getBytes+ (Prelude.fromIntegral len))+ "preimage"+ loop+ (Lens.Family2.set (Data.ProtoLens.Field.field @"preimage") y x)+ 18+ -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (do len <- Data.ProtoLens.Encoding.Bytes.getVarInt+ Data.ProtoLens.Encoding.Bytes.isolate+ (Prelude.fromIntegral len) Data.ProtoLens.parseMessage)+ "failure"+ loop (Lens.Family2.set (Data.ProtoLens.Field.field @"failure") y x)+ wire+ -> do !y <- Data.ProtoLens.Encoding.Wire.parseTaggedValueFromWire+ wire+ loop+ (Lens.Family2.over+ Data.ProtoLens.unknownFields (\ !t -> (:) y t) x)+ in+ (Data.ProtoLens.Encoding.Bytes.<?>)+ (do loop Data.ProtoLens.defMessage) "SendToRouteResponse"+ buildMessage+ = \ _x+ -> (Data.Monoid.<>)+ (let+ _v = Lens.Family2.view (Data.ProtoLens.Field.field @"preimage") _x+ in+ if (Prelude.==) _v Data.ProtoLens.fieldDefault then+ Data.Monoid.mempty+ else+ (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 10)+ ((\ bs+ -> (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt+ (Prelude.fromIntegral (Data.ByteString.length bs)))+ (Data.ProtoLens.Encoding.Bytes.putBytes bs))+ _v))+ ((Data.Monoid.<>)+ (case+ Lens.Family2.view (Data.ProtoLens.Field.field @"maybe'failure") _x+ of+ Prelude.Nothing -> Data.Monoid.mempty+ (Prelude.Just _v)+ -> (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 18)+ ((Prelude..)+ (\ bs+ -> (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt+ (Prelude.fromIntegral (Data.ByteString.length bs)))+ (Data.ProtoLens.Encoding.Bytes.putBytes bs))+ Data.ProtoLens.encodeMessage _v))+ (Data.ProtoLens.Encoding.Wire.buildFieldSet+ (Lens.Family2.view Data.ProtoLens.unknownFields _x)))+instance Control.DeepSeq.NFData SendToRouteResponse where+ rnf+ = \ x__+ -> Control.DeepSeq.deepseq+ (_SendToRouteResponse'_unknownFields x__)+ (Control.DeepSeq.deepseq+ (_SendToRouteResponse'preimage x__)+ (Control.DeepSeq.deepseq (_SendToRouteResponse'failure x__) ()))+{- | Fields :+ + * 'Proto.Routerrpc.Router_Fields.config' @:: Lens' SetMissionControlConfigRequest MissionControlConfig@+ * 'Proto.Routerrpc.Router_Fields.maybe'config' @:: Lens' SetMissionControlConfigRequest (Prelude.Maybe MissionControlConfig)@ -}+data SetMissionControlConfigRequest+ = SetMissionControlConfigRequest'_constructor {_SetMissionControlConfigRequest'config :: !(Prelude.Maybe MissionControlConfig),+ _SetMissionControlConfigRequest'_unknownFields :: !Data.ProtoLens.FieldSet}+ deriving stock (Prelude.Eq, Prelude.Ord, GHC.Generics.Generic)+instance Prelude.Show SetMissionControlConfigRequest where+ showsPrec _ __x __s+ = Prelude.showChar+ '{'+ (Prelude.showString+ (Data.ProtoLens.showMessageShort __x) (Prelude.showChar '}' __s))+instance Text.PrettyPrint.GenericPretty.Out SetMissionControlConfigRequest+instance Data.ProtoLens.Field.HasField SetMissionControlConfigRequest "config" MissionControlConfig where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _SetMissionControlConfigRequest'config+ (\ x__ y__ -> x__ {_SetMissionControlConfigRequest'config = y__}))+ (Data.ProtoLens.maybeLens Data.ProtoLens.defMessage)+instance Data.ProtoLens.Field.HasField SetMissionControlConfigRequest "maybe'config" (Prelude.Maybe MissionControlConfig) where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _SetMissionControlConfigRequest'config+ (\ x__ y__ -> x__ {_SetMissionControlConfigRequest'config = y__}))+ Prelude.id+instance Data.ProtoLens.Message SetMissionControlConfigRequest where+ messageName _+ = Data.Text.pack "routerrpc.SetMissionControlConfigRequest"+ packedMessageDescriptor _+ = "\n\+ \\RSSetMissionControlConfigRequest\DC27\n\+ \\ACKconfig\CAN\SOH \SOH(\v2\US.routerrpc.MissionControlConfigR\ACKconfig"+ packedFileDescriptor _ = packedFileDescriptor+ fieldsByTag+ = let+ config__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "config"+ (Data.ProtoLens.MessageField Data.ProtoLens.MessageType ::+ Data.ProtoLens.FieldTypeDescriptor MissionControlConfig)+ (Data.ProtoLens.OptionalField+ (Data.ProtoLens.Field.field @"maybe'config")) ::+ Data.ProtoLens.FieldDescriptor SetMissionControlConfigRequest+ in+ Data.Map.fromList+ [(Data.ProtoLens.Tag 1, config__field_descriptor)]+ unknownFields+ = Lens.Family2.Unchecked.lens+ _SetMissionControlConfigRequest'_unknownFields+ (\ x__ y__+ -> x__ {_SetMissionControlConfigRequest'_unknownFields = y__})+ defMessage+ = SetMissionControlConfigRequest'_constructor+ {_SetMissionControlConfigRequest'config = Prelude.Nothing,+ _SetMissionControlConfigRequest'_unknownFields = []}+ parseMessage+ = let+ loop ::+ SetMissionControlConfigRequest+ -> Data.ProtoLens.Encoding.Bytes.Parser SetMissionControlConfigRequest+ loop x+ = do end <- Data.ProtoLens.Encoding.Bytes.atEnd+ if end then+ do (let missing = []+ in+ if Prelude.null missing then+ Prelude.return ()+ else+ Prelude.fail+ ((Prelude.++)+ "Missing required fields: "+ (Prelude.show (missing :: [Prelude.String]))))+ Prelude.return+ (Lens.Family2.over+ Data.ProtoLens.unknownFields (\ !t -> Prelude.reverse t) x)+ else+ do tag <- Data.ProtoLens.Encoding.Bytes.getVarInt+ case tag of+ 10+ -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (do len <- Data.ProtoLens.Encoding.Bytes.getVarInt+ Data.ProtoLens.Encoding.Bytes.isolate+ (Prelude.fromIntegral len) Data.ProtoLens.parseMessage)+ "config"+ loop (Lens.Family2.set (Data.ProtoLens.Field.field @"config") y x)+ wire+ -> do !y <- Data.ProtoLens.Encoding.Wire.parseTaggedValueFromWire+ wire+ loop+ (Lens.Family2.over+ Data.ProtoLens.unknownFields (\ !t -> (:) y t) x)+ in+ (Data.ProtoLens.Encoding.Bytes.<?>)+ (do loop Data.ProtoLens.defMessage)+ "SetMissionControlConfigRequest"+ buildMessage+ = \ _x+ -> (Data.Monoid.<>)+ (case+ Lens.Family2.view (Data.ProtoLens.Field.field @"maybe'config") _x+ of+ Prelude.Nothing -> Data.Monoid.mempty+ (Prelude.Just _v)+ -> (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 10)+ ((Prelude..)+ (\ bs+ -> (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt+ (Prelude.fromIntegral (Data.ByteString.length bs)))+ (Data.ProtoLens.Encoding.Bytes.putBytes bs))+ Data.ProtoLens.encodeMessage _v))+ (Data.ProtoLens.Encoding.Wire.buildFieldSet+ (Lens.Family2.view Data.ProtoLens.unknownFields _x))+instance Control.DeepSeq.NFData SetMissionControlConfigRequest where+ rnf+ = \ x__+ -> Control.DeepSeq.deepseq+ (_SetMissionControlConfigRequest'_unknownFields x__)+ (Control.DeepSeq.deepseq+ (_SetMissionControlConfigRequest'config x__) ())+{- | Fields :+ -}+data SetMissionControlConfigResponse+ = SetMissionControlConfigResponse'_constructor {_SetMissionControlConfigResponse'_unknownFields :: !Data.ProtoLens.FieldSet}+ deriving stock (Prelude.Eq, Prelude.Ord, GHC.Generics.Generic)+instance Prelude.Show SetMissionControlConfigResponse where+ showsPrec _ __x __s+ = Prelude.showChar+ '{'+ (Prelude.showString+ (Data.ProtoLens.showMessageShort __x) (Prelude.showChar '}' __s))+instance Text.PrettyPrint.GenericPretty.Out SetMissionControlConfigResponse+instance Data.ProtoLens.Message SetMissionControlConfigResponse where+ messageName _+ = Data.Text.pack "routerrpc.SetMissionControlConfigResponse"+ packedMessageDescriptor _+ = "\n\+ \\USSetMissionControlConfigResponse"+ packedFileDescriptor _ = packedFileDescriptor+ fieldsByTag = let in Data.Map.fromList []+ unknownFields+ = Lens.Family2.Unchecked.lens+ _SetMissionControlConfigResponse'_unknownFields+ (\ x__ y__+ -> x__ {_SetMissionControlConfigResponse'_unknownFields = y__})+ defMessage+ = SetMissionControlConfigResponse'_constructor+ {_SetMissionControlConfigResponse'_unknownFields = []}+ parseMessage+ = let+ loop ::+ SetMissionControlConfigResponse+ -> Data.ProtoLens.Encoding.Bytes.Parser SetMissionControlConfigResponse+ loop x+ = do end <- Data.ProtoLens.Encoding.Bytes.atEnd+ if end then+ do (let missing = []+ in+ if Prelude.null missing then+ Prelude.return ()+ else+ Prelude.fail+ ((Prelude.++)+ "Missing required fields: "+ (Prelude.show (missing :: [Prelude.String]))))+ Prelude.return+ (Lens.Family2.over+ Data.ProtoLens.unknownFields (\ !t -> Prelude.reverse t) x)+ else+ do tag <- Data.ProtoLens.Encoding.Bytes.getVarInt+ case tag of {+ wire+ -> do !y <- Data.ProtoLens.Encoding.Wire.parseTaggedValueFromWire+ wire+ loop+ (Lens.Family2.over+ Data.ProtoLens.unknownFields (\ !t -> (:) y t) x) }+ in+ (Data.ProtoLens.Encoding.Bytes.<?>)+ (do loop Data.ProtoLens.defMessage)+ "SetMissionControlConfigResponse"+ buildMessage+ = \ _x+ -> Data.ProtoLens.Encoding.Wire.buildFieldSet+ (Lens.Family2.view Data.ProtoLens.unknownFields _x)+instance Control.DeepSeq.NFData SetMissionControlConfigResponse where+ rnf+ = \ x__+ -> Control.DeepSeq.deepseq+ (_SetMissionControlConfigResponse'_unknownFields x__) ()+{- | Fields :+ + * 'Proto.Routerrpc.Router_Fields.preimage' @:: Lens' SettleEvent Data.ByteString.ByteString@ -}+data SettleEvent+ = SettleEvent'_constructor {_SettleEvent'preimage :: !Data.ByteString.ByteString,+ _SettleEvent'_unknownFields :: !Data.ProtoLens.FieldSet}+ deriving stock (Prelude.Eq, Prelude.Ord, GHC.Generics.Generic)+instance Prelude.Show SettleEvent where+ showsPrec _ __x __s+ = Prelude.showChar+ '{'+ (Prelude.showString+ (Data.ProtoLens.showMessageShort __x) (Prelude.showChar '}' __s))+instance Text.PrettyPrint.GenericPretty.Out SettleEvent+instance Data.ProtoLens.Field.HasField SettleEvent "preimage" Data.ByteString.ByteString where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _SettleEvent'preimage+ (\ x__ y__ -> x__ {_SettleEvent'preimage = y__}))+ Prelude.id+instance Data.ProtoLens.Message SettleEvent where+ messageName _ = Data.Text.pack "routerrpc.SettleEvent"+ packedMessageDescriptor _+ = "\n\+ \\vSettleEvent\DC2\SUB\n\+ \\bpreimage\CAN\SOH \SOH(\fR\bpreimage"+ packedFileDescriptor _ = packedFileDescriptor+ fieldsByTag+ = let+ preimage__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "preimage"+ (Data.ProtoLens.ScalarField Data.ProtoLens.BytesField ::+ Data.ProtoLens.FieldTypeDescriptor Data.ByteString.ByteString)+ (Data.ProtoLens.PlainField+ Data.ProtoLens.Optional+ (Data.ProtoLens.Field.field @"preimage")) ::+ Data.ProtoLens.FieldDescriptor SettleEvent+ in+ Data.Map.fromList+ [(Data.ProtoLens.Tag 1, preimage__field_descriptor)]+ unknownFields+ = Lens.Family2.Unchecked.lens+ _SettleEvent'_unknownFields+ (\ x__ y__ -> x__ {_SettleEvent'_unknownFields = y__})+ defMessage+ = SettleEvent'_constructor+ {_SettleEvent'preimage = Data.ProtoLens.fieldDefault,+ _SettleEvent'_unknownFields = []}+ parseMessage+ = let+ loop ::+ SettleEvent -> Data.ProtoLens.Encoding.Bytes.Parser SettleEvent+ loop x+ = do end <- Data.ProtoLens.Encoding.Bytes.atEnd+ if end then+ do (let missing = []+ in+ if Prelude.null missing then+ Prelude.return ()+ else+ Prelude.fail+ ((Prelude.++)+ "Missing required fields: "+ (Prelude.show (missing :: [Prelude.String]))))+ Prelude.return+ (Lens.Family2.over+ Data.ProtoLens.unknownFields (\ !t -> Prelude.reverse t) x)+ else+ do tag <- Data.ProtoLens.Encoding.Bytes.getVarInt+ case tag of+ 10+ -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (do len <- Data.ProtoLens.Encoding.Bytes.getVarInt+ Data.ProtoLens.Encoding.Bytes.getBytes+ (Prelude.fromIntegral len))+ "preimage"+ loop+ (Lens.Family2.set (Data.ProtoLens.Field.field @"preimage") y x)+ wire+ -> do !y <- Data.ProtoLens.Encoding.Wire.parseTaggedValueFromWire+ wire+ loop+ (Lens.Family2.over+ Data.ProtoLens.unknownFields (\ !t -> (:) y t) x)+ in+ (Data.ProtoLens.Encoding.Bytes.<?>)+ (do loop Data.ProtoLens.defMessage) "SettleEvent"+ buildMessage+ = \ _x+ -> (Data.Monoid.<>)+ (let+ _v = Lens.Family2.view (Data.ProtoLens.Field.field @"preimage") _x+ in+ if (Prelude.==) _v Data.ProtoLens.fieldDefault then+ Data.Monoid.mempty+ else+ (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 10)+ ((\ bs+ -> (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt+ (Prelude.fromIntegral (Data.ByteString.length bs)))+ (Data.ProtoLens.Encoding.Bytes.putBytes bs))+ _v))+ (Data.ProtoLens.Encoding.Wire.buildFieldSet+ (Lens.Family2.view Data.ProtoLens.unknownFields _x))+instance Control.DeepSeq.NFData SettleEvent where+ rnf+ = \ x__+ -> Control.DeepSeq.deepseq+ (_SettleEvent'_unknownFields x__)+ (Control.DeepSeq.deepseq (_SettleEvent'preimage x__) ())+{- | Fields :+ -}+data SubscribeHtlcEventsRequest+ = SubscribeHtlcEventsRequest'_constructor {_SubscribeHtlcEventsRequest'_unknownFields :: !Data.ProtoLens.FieldSet}+ deriving stock (Prelude.Eq, Prelude.Ord, GHC.Generics.Generic)+instance Prelude.Show SubscribeHtlcEventsRequest where+ showsPrec _ __x __s+ = Prelude.showChar+ '{'+ (Prelude.showString+ (Data.ProtoLens.showMessageShort __x) (Prelude.showChar '}' __s))+instance Text.PrettyPrint.GenericPretty.Out SubscribeHtlcEventsRequest+instance Data.ProtoLens.Message SubscribeHtlcEventsRequest where+ messageName _+ = Data.Text.pack "routerrpc.SubscribeHtlcEventsRequest"+ packedMessageDescriptor _+ = "\n\+ \\SUBSubscribeHtlcEventsRequest"+ packedFileDescriptor _ = packedFileDescriptor+ fieldsByTag = let in Data.Map.fromList []+ unknownFields+ = Lens.Family2.Unchecked.lens+ _SubscribeHtlcEventsRequest'_unknownFields+ (\ x__ y__+ -> x__ {_SubscribeHtlcEventsRequest'_unknownFields = y__})+ defMessage+ = SubscribeHtlcEventsRequest'_constructor+ {_SubscribeHtlcEventsRequest'_unknownFields = []}+ parseMessage+ = let+ loop ::+ SubscribeHtlcEventsRequest+ -> Data.ProtoLens.Encoding.Bytes.Parser SubscribeHtlcEventsRequest+ loop x+ = do end <- Data.ProtoLens.Encoding.Bytes.atEnd+ if end then+ do (let missing = []+ in+ if Prelude.null missing then+ Prelude.return ()+ else+ Prelude.fail+ ((Prelude.++)+ "Missing required fields: "+ (Prelude.show (missing :: [Prelude.String]))))+ Prelude.return+ (Lens.Family2.over+ Data.ProtoLens.unknownFields (\ !t -> Prelude.reverse t) x)+ else+ do tag <- Data.ProtoLens.Encoding.Bytes.getVarInt+ case tag of {+ wire+ -> do !y <- Data.ProtoLens.Encoding.Wire.parseTaggedValueFromWire+ wire+ loop+ (Lens.Family2.over+ Data.ProtoLens.unknownFields (\ !t -> (:) y t) x) }+ in+ (Data.ProtoLens.Encoding.Bytes.<?>)+ (do loop Data.ProtoLens.defMessage) "SubscribeHtlcEventsRequest"+ buildMessage+ = \ _x+ -> Data.ProtoLens.Encoding.Wire.buildFieldSet+ (Lens.Family2.view Data.ProtoLens.unknownFields _x)+instance Control.DeepSeq.NFData SubscribeHtlcEventsRequest where+ rnf+ = \ x__+ -> Control.DeepSeq.deepseq+ (_SubscribeHtlcEventsRequest'_unknownFields x__) ()+{- | Fields :+ + * 'Proto.Routerrpc.Router_Fields.paymentHash' @:: Lens' TrackPaymentRequest Data.ByteString.ByteString@+ * 'Proto.Routerrpc.Router_Fields.noInflightUpdates' @:: Lens' TrackPaymentRequest Prelude.Bool@ -}+data TrackPaymentRequest+ = TrackPaymentRequest'_constructor {_TrackPaymentRequest'paymentHash :: !Data.ByteString.ByteString,+ _TrackPaymentRequest'noInflightUpdates :: !Prelude.Bool,+ _TrackPaymentRequest'_unknownFields :: !Data.ProtoLens.FieldSet}+ deriving stock (Prelude.Eq, Prelude.Ord, GHC.Generics.Generic)+instance Prelude.Show TrackPaymentRequest where+ showsPrec _ __x __s+ = Prelude.showChar+ '{'+ (Prelude.showString+ (Data.ProtoLens.showMessageShort __x) (Prelude.showChar '}' __s))+instance Text.PrettyPrint.GenericPretty.Out TrackPaymentRequest+instance Data.ProtoLens.Field.HasField TrackPaymentRequest "paymentHash" Data.ByteString.ByteString where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _TrackPaymentRequest'paymentHash+ (\ x__ y__ -> x__ {_TrackPaymentRequest'paymentHash = y__}))+ Prelude.id+instance Data.ProtoLens.Field.HasField TrackPaymentRequest "noInflightUpdates" Prelude.Bool where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _TrackPaymentRequest'noInflightUpdates+ (\ x__ y__ -> x__ {_TrackPaymentRequest'noInflightUpdates = y__}))+ Prelude.id+instance Data.ProtoLens.Message TrackPaymentRequest where+ messageName _ = Data.Text.pack "routerrpc.TrackPaymentRequest"+ packedMessageDescriptor _+ = "\n\+ \\DC3TrackPaymentRequest\DC2!\n\+ \\fpayment_hash\CAN\SOH \SOH(\fR\vpaymentHash\DC2.\n\+ \\DC3no_inflight_updates\CAN\STX \SOH(\bR\DC1noInflightUpdates"+ packedFileDescriptor _ = packedFileDescriptor+ fieldsByTag+ = let+ paymentHash__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "payment_hash"+ (Data.ProtoLens.ScalarField Data.ProtoLens.BytesField ::+ Data.ProtoLens.FieldTypeDescriptor Data.ByteString.ByteString)+ (Data.ProtoLens.PlainField+ Data.ProtoLens.Optional+ (Data.ProtoLens.Field.field @"paymentHash")) ::+ Data.ProtoLens.FieldDescriptor TrackPaymentRequest+ noInflightUpdates__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "no_inflight_updates"+ (Data.ProtoLens.ScalarField Data.ProtoLens.BoolField ::+ Data.ProtoLens.FieldTypeDescriptor Prelude.Bool)+ (Data.ProtoLens.PlainField+ Data.ProtoLens.Optional+ (Data.ProtoLens.Field.field @"noInflightUpdates")) ::+ Data.ProtoLens.FieldDescriptor TrackPaymentRequest+ in+ Data.Map.fromList+ [(Data.ProtoLens.Tag 1, paymentHash__field_descriptor),+ (Data.ProtoLens.Tag 2, noInflightUpdates__field_descriptor)]+ unknownFields+ = Lens.Family2.Unchecked.lens+ _TrackPaymentRequest'_unknownFields+ (\ x__ y__ -> x__ {_TrackPaymentRequest'_unknownFields = y__})+ defMessage+ = TrackPaymentRequest'_constructor+ {_TrackPaymentRequest'paymentHash = Data.ProtoLens.fieldDefault,+ _TrackPaymentRequest'noInflightUpdates = Data.ProtoLens.fieldDefault,+ _TrackPaymentRequest'_unknownFields = []}+ parseMessage+ = let+ loop ::+ TrackPaymentRequest+ -> Data.ProtoLens.Encoding.Bytes.Parser TrackPaymentRequest+ loop x+ = do end <- Data.ProtoLens.Encoding.Bytes.atEnd+ if end then+ do (let missing = []+ in+ if Prelude.null missing then+ Prelude.return ()+ else+ Prelude.fail+ ((Prelude.++)+ "Missing required fields: "+ (Prelude.show (missing :: [Prelude.String]))))+ Prelude.return+ (Lens.Family2.over+ Data.ProtoLens.unknownFields (\ !t -> Prelude.reverse t) x)+ else+ do tag <- Data.ProtoLens.Encoding.Bytes.getVarInt+ case tag of+ 10+ -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (do len <- Data.ProtoLens.Encoding.Bytes.getVarInt+ Data.ProtoLens.Encoding.Bytes.getBytes+ (Prelude.fromIntegral len))+ "payment_hash"+ loop+ (Lens.Family2.set (Data.ProtoLens.Field.field @"paymentHash") y x)+ 16+ -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (Prelude.fmap+ ((Prelude./=) 0) Data.ProtoLens.Encoding.Bytes.getVarInt)+ "no_inflight_updates"+ loop+ (Lens.Family2.set+ (Data.ProtoLens.Field.field @"noInflightUpdates") y x)+ wire+ -> do !y <- Data.ProtoLens.Encoding.Wire.parseTaggedValueFromWire+ wire+ loop+ (Lens.Family2.over+ Data.ProtoLens.unknownFields (\ !t -> (:) y t) x)+ in+ (Data.ProtoLens.Encoding.Bytes.<?>)+ (do loop Data.ProtoLens.defMessage) "TrackPaymentRequest"+ buildMessage+ = \ _x+ -> (Data.Monoid.<>)+ (let+ _v+ = Lens.Family2.view (Data.ProtoLens.Field.field @"paymentHash") _x+ in+ if (Prelude.==) _v Data.ProtoLens.fieldDefault then+ Data.Monoid.mempty+ else+ (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 10)+ ((\ bs+ -> (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt+ (Prelude.fromIntegral (Data.ByteString.length bs)))+ (Data.ProtoLens.Encoding.Bytes.putBytes bs))+ _v))+ ((Data.Monoid.<>)+ (let+ _v+ = Lens.Family2.view+ (Data.ProtoLens.Field.field @"noInflightUpdates") _x+ in+ if (Prelude.==) _v Data.ProtoLens.fieldDefault then+ Data.Monoid.mempty+ else+ (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 16)+ ((Prelude..)+ Data.ProtoLens.Encoding.Bytes.putVarInt (\ b -> if b then 1 else 0)+ _v))+ (Data.ProtoLens.Encoding.Wire.buildFieldSet+ (Lens.Family2.view Data.ProtoLens.unknownFields _x)))+instance Control.DeepSeq.NFData TrackPaymentRequest where+ rnf+ = \ x__+ -> Control.DeepSeq.deepseq+ (_TrackPaymentRequest'_unknownFields x__)+ (Control.DeepSeq.deepseq+ (_TrackPaymentRequest'paymentHash x__)+ (Control.DeepSeq.deepseq+ (_TrackPaymentRequest'noInflightUpdates x__) ()))+{- | Fields :+ + * 'Proto.Routerrpc.Router_Fields.chanPoint' @:: Lens' UpdateChanStatusRequest Proto.Lnrpc.Ln0.ChannelPoint@+ * 'Proto.Routerrpc.Router_Fields.maybe'chanPoint' @:: Lens' UpdateChanStatusRequest (Prelude.Maybe Proto.Lnrpc.Ln0.ChannelPoint)@+ * 'Proto.Routerrpc.Router_Fields.action' @:: Lens' UpdateChanStatusRequest ChanStatusAction@ -}+data UpdateChanStatusRequest+ = UpdateChanStatusRequest'_constructor {_UpdateChanStatusRequest'chanPoint :: !(Prelude.Maybe Proto.Lnrpc.Ln0.ChannelPoint),+ _UpdateChanStatusRequest'action :: !ChanStatusAction,+ _UpdateChanStatusRequest'_unknownFields :: !Data.ProtoLens.FieldSet}+ deriving stock (Prelude.Eq, Prelude.Ord, GHC.Generics.Generic)+instance Prelude.Show UpdateChanStatusRequest where+ showsPrec _ __x __s+ = Prelude.showChar+ '{'+ (Prelude.showString+ (Data.ProtoLens.showMessageShort __x) (Prelude.showChar '}' __s))+instance Text.PrettyPrint.GenericPretty.Out UpdateChanStatusRequest+instance Data.ProtoLens.Field.HasField UpdateChanStatusRequest "chanPoint" Proto.Lnrpc.Ln0.ChannelPoint where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _UpdateChanStatusRequest'chanPoint+ (\ x__ y__ -> x__ {_UpdateChanStatusRequest'chanPoint = y__}))+ (Data.ProtoLens.maybeLens Data.ProtoLens.defMessage)+instance Data.ProtoLens.Field.HasField UpdateChanStatusRequest "maybe'chanPoint" (Prelude.Maybe Proto.Lnrpc.Ln0.ChannelPoint) where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _UpdateChanStatusRequest'chanPoint+ (\ x__ y__ -> x__ {_UpdateChanStatusRequest'chanPoint = y__}))+ Prelude.id+instance Data.ProtoLens.Field.HasField UpdateChanStatusRequest "action" ChanStatusAction where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _UpdateChanStatusRequest'action+ (\ x__ y__ -> x__ {_UpdateChanStatusRequest'action = y__}))+ Prelude.id+instance Data.ProtoLens.Message UpdateChanStatusRequest where+ messageName _ = Data.Text.pack "routerrpc.UpdateChanStatusRequest"+ packedMessageDescriptor _+ = "\n\+ \\ETBUpdateChanStatusRequest\DC22\n\+ \\n\+ \chan_point\CAN\SOH \SOH(\v2\DC3.lnrpc.ChannelPointR\tchanPoint\DC23\n\+ \\ACKaction\CAN\STX \SOH(\SO2\ESC.routerrpc.ChanStatusActionR\ACKaction"+ packedFileDescriptor _ = packedFileDescriptor+ fieldsByTag+ = let+ chanPoint__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "chan_point"+ (Data.ProtoLens.MessageField Data.ProtoLens.MessageType ::+ Data.ProtoLens.FieldTypeDescriptor Proto.Lnrpc.Ln0.ChannelPoint)+ (Data.ProtoLens.OptionalField+ (Data.ProtoLens.Field.field @"maybe'chanPoint")) ::+ Data.ProtoLens.FieldDescriptor UpdateChanStatusRequest+ action__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "action"+ (Data.ProtoLens.ScalarField Data.ProtoLens.EnumField ::+ Data.ProtoLens.FieldTypeDescriptor ChanStatusAction)+ (Data.ProtoLens.PlainField+ Data.ProtoLens.Optional (Data.ProtoLens.Field.field @"action")) ::+ Data.ProtoLens.FieldDescriptor UpdateChanStatusRequest+ in+ Data.Map.fromList+ [(Data.ProtoLens.Tag 1, chanPoint__field_descriptor),+ (Data.ProtoLens.Tag 2, action__field_descriptor)]+ unknownFields+ = Lens.Family2.Unchecked.lens+ _UpdateChanStatusRequest'_unknownFields+ (\ x__ y__ -> x__ {_UpdateChanStatusRequest'_unknownFields = y__})+ defMessage+ = UpdateChanStatusRequest'_constructor+ {_UpdateChanStatusRequest'chanPoint = Prelude.Nothing,+ _UpdateChanStatusRequest'action = Data.ProtoLens.fieldDefault,+ _UpdateChanStatusRequest'_unknownFields = []}+ parseMessage+ = let+ loop ::+ UpdateChanStatusRequest+ -> Data.ProtoLens.Encoding.Bytes.Parser UpdateChanStatusRequest+ loop x+ = do end <- Data.ProtoLens.Encoding.Bytes.atEnd+ if end then+ do (let missing = []+ in+ if Prelude.null missing then+ Prelude.return ()+ else+ Prelude.fail+ ((Prelude.++)+ "Missing required fields: "+ (Prelude.show (missing :: [Prelude.String]))))+ Prelude.return+ (Lens.Family2.over+ Data.ProtoLens.unknownFields (\ !t -> Prelude.reverse t) x)+ else+ do tag <- Data.ProtoLens.Encoding.Bytes.getVarInt+ case tag of+ 10+ -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (do len <- Data.ProtoLens.Encoding.Bytes.getVarInt+ Data.ProtoLens.Encoding.Bytes.isolate+ (Prelude.fromIntegral len) Data.ProtoLens.parseMessage)+ "chan_point"+ loop+ (Lens.Family2.set (Data.ProtoLens.Field.field @"chanPoint") y x)+ 16+ -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (Prelude.fmap+ Prelude.toEnum+ (Prelude.fmap+ Prelude.fromIntegral+ Data.ProtoLens.Encoding.Bytes.getVarInt))+ "action"+ loop (Lens.Family2.set (Data.ProtoLens.Field.field @"action") y x)+ wire+ -> do !y <- Data.ProtoLens.Encoding.Wire.parseTaggedValueFromWire+ wire+ loop+ (Lens.Family2.over+ Data.ProtoLens.unknownFields (\ !t -> (:) y t) x)+ in+ (Data.ProtoLens.Encoding.Bytes.<?>)+ (do loop Data.ProtoLens.defMessage) "UpdateChanStatusRequest"+ buildMessage+ = \ _x+ -> (Data.Monoid.<>)+ (case+ Lens.Family2.view+ (Data.ProtoLens.Field.field @"maybe'chanPoint") _x+ of+ Prelude.Nothing -> Data.Monoid.mempty+ (Prelude.Just _v)+ -> (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 10)+ ((Prelude..)+ (\ bs+ -> (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt+ (Prelude.fromIntegral (Data.ByteString.length bs)))+ (Data.ProtoLens.Encoding.Bytes.putBytes bs))+ Data.ProtoLens.encodeMessage _v))+ ((Data.Monoid.<>)+ (let+ _v = Lens.Family2.view (Data.ProtoLens.Field.field @"action") _x+ in+ if (Prelude.==) _v Data.ProtoLens.fieldDefault then+ Data.Monoid.mempty+ else+ (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 16)+ ((Prelude..)+ ((Prelude..)+ Data.ProtoLens.Encoding.Bytes.putVarInt Prelude.fromIntegral)+ Prelude.fromEnum _v))+ (Data.ProtoLens.Encoding.Wire.buildFieldSet+ (Lens.Family2.view Data.ProtoLens.unknownFields _x)))+instance Control.DeepSeq.NFData UpdateChanStatusRequest where+ rnf+ = \ x__+ -> Control.DeepSeq.deepseq+ (_UpdateChanStatusRequest'_unknownFields x__)+ (Control.DeepSeq.deepseq+ (_UpdateChanStatusRequest'chanPoint x__)+ (Control.DeepSeq.deepseq (_UpdateChanStatusRequest'action x__) ()))+{- | Fields :+ -}+data UpdateChanStatusResponse+ = UpdateChanStatusResponse'_constructor {_UpdateChanStatusResponse'_unknownFields :: !Data.ProtoLens.FieldSet}+ deriving stock (Prelude.Eq, Prelude.Ord, GHC.Generics.Generic)+instance Prelude.Show UpdateChanStatusResponse where+ showsPrec _ __x __s+ = Prelude.showChar+ '{'+ (Prelude.showString+ (Data.ProtoLens.showMessageShort __x) (Prelude.showChar '}' __s))+instance Text.PrettyPrint.GenericPretty.Out UpdateChanStatusResponse+instance Data.ProtoLens.Message UpdateChanStatusResponse where+ messageName _ = Data.Text.pack "routerrpc.UpdateChanStatusResponse"+ packedMessageDescriptor _+ = "\n\+ \\CANUpdateChanStatusResponse"+ packedFileDescriptor _ = packedFileDescriptor+ fieldsByTag = let in Data.Map.fromList []+ unknownFields+ = Lens.Family2.Unchecked.lens+ _UpdateChanStatusResponse'_unknownFields+ (\ x__ y__ -> x__ {_UpdateChanStatusResponse'_unknownFields = y__})+ defMessage+ = UpdateChanStatusResponse'_constructor+ {_UpdateChanStatusResponse'_unknownFields = []}+ parseMessage+ = let+ loop ::+ UpdateChanStatusResponse+ -> Data.ProtoLens.Encoding.Bytes.Parser UpdateChanStatusResponse+ loop x+ = do end <- Data.ProtoLens.Encoding.Bytes.atEnd+ if end then+ do (let missing = []+ in+ if Prelude.null missing then+ Prelude.return ()+ else+ Prelude.fail+ ((Prelude.++)+ "Missing required fields: "+ (Prelude.show (missing :: [Prelude.String]))))+ Prelude.return+ (Lens.Family2.over+ Data.ProtoLens.unknownFields (\ !t -> Prelude.reverse t) x)+ else+ do tag <- Data.ProtoLens.Encoding.Bytes.getVarInt+ case tag of {+ wire+ -> do !y <- Data.ProtoLens.Encoding.Wire.parseTaggedValueFromWire+ wire+ loop+ (Lens.Family2.over+ Data.ProtoLens.unknownFields (\ !t -> (:) y t) x) }+ in+ (Data.ProtoLens.Encoding.Bytes.<?>)+ (do loop Data.ProtoLens.defMessage) "UpdateChanStatusResponse"+ buildMessage+ = \ _x+ -> Data.ProtoLens.Encoding.Wire.buildFieldSet+ (Lens.Family2.view Data.ProtoLens.unknownFields _x)+instance Control.DeepSeq.NFData UpdateChanStatusResponse where+ rnf+ = \ x__+ -> Control.DeepSeq.deepseq+ (_UpdateChanStatusResponse'_unknownFields x__) ()+{- | Fields :+ + * 'Proto.Routerrpc.Router_Fields.pairs' @:: Lens' XImportMissionControlRequest [PairHistory]@+ * 'Proto.Routerrpc.Router_Fields.vec'pairs' @:: Lens' XImportMissionControlRequest (Data.Vector.Vector PairHistory)@ -}+data XImportMissionControlRequest+ = XImportMissionControlRequest'_constructor {_XImportMissionControlRequest'pairs :: !(Data.Vector.Vector PairHistory),+ _XImportMissionControlRequest'_unknownFields :: !Data.ProtoLens.FieldSet}+ deriving stock (Prelude.Eq, Prelude.Ord, GHC.Generics.Generic)+instance Prelude.Show XImportMissionControlRequest where+ showsPrec _ __x __s+ = Prelude.showChar+ '{'+ (Prelude.showString+ (Data.ProtoLens.showMessageShort __x) (Prelude.showChar '}' __s))+instance Text.PrettyPrint.GenericPretty.Out XImportMissionControlRequest+instance Data.ProtoLens.Field.HasField XImportMissionControlRequest "pairs" [PairHistory] where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _XImportMissionControlRequest'pairs+ (\ x__ y__ -> x__ {_XImportMissionControlRequest'pairs = y__}))+ (Lens.Family2.Unchecked.lens+ Data.Vector.Generic.toList+ (\ _ y__ -> Data.Vector.Generic.fromList y__))+instance Data.ProtoLens.Field.HasField XImportMissionControlRequest "vec'pairs" (Data.Vector.Vector PairHistory) where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _XImportMissionControlRequest'pairs+ (\ x__ y__ -> x__ {_XImportMissionControlRequest'pairs = y__}))+ Prelude.id+instance Data.ProtoLens.Message XImportMissionControlRequest where+ messageName _+ = Data.Text.pack "routerrpc.XImportMissionControlRequest"+ packedMessageDescriptor _+ = "\n\+ \\FSXImportMissionControlRequest\DC2,\n\+ \\ENQpairs\CAN\SOH \ETX(\v2\SYN.routerrpc.PairHistoryR\ENQpairs"+ packedFileDescriptor _ = packedFileDescriptor+ fieldsByTag+ = let+ pairs__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "pairs"+ (Data.ProtoLens.MessageField Data.ProtoLens.MessageType ::+ Data.ProtoLens.FieldTypeDescriptor PairHistory)+ (Data.ProtoLens.RepeatedField+ Data.ProtoLens.Unpacked (Data.ProtoLens.Field.field @"pairs")) ::+ Data.ProtoLens.FieldDescriptor XImportMissionControlRequest+ in+ Data.Map.fromList [(Data.ProtoLens.Tag 1, pairs__field_descriptor)]+ unknownFields+ = Lens.Family2.Unchecked.lens+ _XImportMissionControlRequest'_unknownFields+ (\ x__ y__+ -> x__ {_XImportMissionControlRequest'_unknownFields = y__})+ defMessage+ = XImportMissionControlRequest'_constructor+ {_XImportMissionControlRequest'pairs = Data.Vector.Generic.empty,+ _XImportMissionControlRequest'_unknownFields = []}+ parseMessage+ = let+ loop ::+ XImportMissionControlRequest+ -> Data.ProtoLens.Encoding.Growing.Growing Data.Vector.Vector Data.ProtoLens.Encoding.Growing.RealWorld PairHistory+ -> Data.ProtoLens.Encoding.Bytes.Parser XImportMissionControlRequest+ loop x mutable'pairs+ = do end <- Data.ProtoLens.Encoding.Bytes.atEnd+ if end then+ do frozen'pairs <- Data.ProtoLens.Encoding.Parser.Unsafe.unsafeLiftIO+ (Data.ProtoLens.Encoding.Growing.unsafeFreeze mutable'pairs)+ (let missing = []+ in+ if Prelude.null missing then+ Prelude.return ()+ else+ Prelude.fail+ ((Prelude.++)+ "Missing required fields: "+ (Prelude.show (missing :: [Prelude.String]))))+ Prelude.return+ (Lens.Family2.over+ Data.ProtoLens.unknownFields (\ !t -> Prelude.reverse t)+ (Lens.Family2.set+ (Data.ProtoLens.Field.field @"vec'pairs") frozen'pairs x))+ else+ do tag <- Data.ProtoLens.Encoding.Bytes.getVarInt+ case tag of+ 10+ -> do !y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (do len <- Data.ProtoLens.Encoding.Bytes.getVarInt+ Data.ProtoLens.Encoding.Bytes.isolate+ (Prelude.fromIntegral len)+ Data.ProtoLens.parseMessage)+ "pairs"+ v <- Data.ProtoLens.Encoding.Parser.Unsafe.unsafeLiftIO+ (Data.ProtoLens.Encoding.Growing.append mutable'pairs y)+ loop x v+ wire+ -> do !y <- Data.ProtoLens.Encoding.Wire.parseTaggedValueFromWire+ wire+ loop+ (Lens.Family2.over+ Data.ProtoLens.unknownFields (\ !t -> (:) y t) x)+ mutable'pairs+ in+ (Data.ProtoLens.Encoding.Bytes.<?>)+ (do mutable'pairs <- Data.ProtoLens.Encoding.Parser.Unsafe.unsafeLiftIO+ Data.ProtoLens.Encoding.Growing.new+ loop Data.ProtoLens.defMessage mutable'pairs)+ "XImportMissionControlRequest"+ buildMessage+ = \ _x+ -> (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.foldMapBuilder+ (\ _v+ -> (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 10)+ ((Prelude..)+ (\ bs+ -> (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt+ (Prelude.fromIntegral (Data.ByteString.length bs)))+ (Data.ProtoLens.Encoding.Bytes.putBytes bs))+ Data.ProtoLens.encodeMessage _v))+ (Lens.Family2.view (Data.ProtoLens.Field.field @"vec'pairs") _x))+ (Data.ProtoLens.Encoding.Wire.buildFieldSet+ (Lens.Family2.view Data.ProtoLens.unknownFields _x))+instance Control.DeepSeq.NFData XImportMissionControlRequest where+ rnf+ = \ x__+ -> Control.DeepSeq.deepseq+ (_XImportMissionControlRequest'_unknownFields x__)+ (Control.DeepSeq.deepseq+ (_XImportMissionControlRequest'pairs x__) ())+{- | Fields :+ -}+data XImportMissionControlResponse+ = XImportMissionControlResponse'_constructor {_XImportMissionControlResponse'_unknownFields :: !Data.ProtoLens.FieldSet}+ deriving stock (Prelude.Eq, Prelude.Ord, GHC.Generics.Generic)+instance Prelude.Show XImportMissionControlResponse where+ showsPrec _ __x __s+ = Prelude.showChar+ '{'+ (Prelude.showString+ (Data.ProtoLens.showMessageShort __x) (Prelude.showChar '}' __s))+instance Text.PrettyPrint.GenericPretty.Out XImportMissionControlResponse+instance Data.ProtoLens.Message XImportMissionControlResponse where+ messageName _+ = Data.Text.pack "routerrpc.XImportMissionControlResponse"+ packedMessageDescriptor _+ = "\n\+ \\GSXImportMissionControlResponse"+ packedFileDescriptor _ = packedFileDescriptor+ fieldsByTag = let in Data.Map.fromList []+ unknownFields+ = Lens.Family2.Unchecked.lens+ _XImportMissionControlResponse'_unknownFields+ (\ x__ y__+ -> x__ {_XImportMissionControlResponse'_unknownFields = y__})+ defMessage+ = XImportMissionControlResponse'_constructor+ {_XImportMissionControlResponse'_unknownFields = []}+ parseMessage+ = let+ loop ::+ XImportMissionControlResponse+ -> Data.ProtoLens.Encoding.Bytes.Parser XImportMissionControlResponse+ loop x+ = do end <- Data.ProtoLens.Encoding.Bytes.atEnd+ if end then+ do (let missing = []+ in+ if Prelude.null missing then+ Prelude.return ()+ else+ Prelude.fail+ ((Prelude.++)+ "Missing required fields: "+ (Prelude.show (missing :: [Prelude.String]))))+ Prelude.return+ (Lens.Family2.over+ Data.ProtoLens.unknownFields (\ !t -> Prelude.reverse t) x)+ else+ do tag <- Data.ProtoLens.Encoding.Bytes.getVarInt+ case tag of {+ wire+ -> do !y <- Data.ProtoLens.Encoding.Wire.parseTaggedValueFromWire+ wire+ loop+ (Lens.Family2.over+ Data.ProtoLens.unknownFields (\ !t -> (:) y t) x) }+ in+ (Data.ProtoLens.Encoding.Bytes.<?>)+ (do loop Data.ProtoLens.defMessage) "XImportMissionControlResponse"+ buildMessage+ = \ _x+ -> Data.ProtoLens.Encoding.Wire.buildFieldSet+ (Lens.Family2.view Data.ProtoLens.unknownFields _x)+instance Control.DeepSeq.NFData XImportMissionControlResponse where+ rnf+ = \ x__+ -> Control.DeepSeq.deepseq+ (_XImportMissionControlResponse'_unknownFields x__) ()+data Router = Router {}+instance Data.ProtoLens.Service.Types.Service Router where+ type ServiceName Router = "Router"+ type ServicePackage Router = "routerrpc"+ type ServiceMethods Router = '["buildRoute",+ "estimateRouteFee",+ "getMissionControlConfig",+ "htlcInterceptor",+ "queryMissionControl",+ "queryProbability",+ "resetMissionControl",+ "sendPayment",+ "sendPaymentV2",+ "sendToRoute",+ "sendToRouteV2",+ "setMissionControlConfig",+ "subscribeHtlcEvents",+ "trackPayment",+ "trackPaymentV2",+ "updateChanStatus",+ "ximportMissionControl"]+ packedServiceDescriptor _+ = "\n\+ \\ACKRouter\DC2@\n\+ \\rSendPaymentV2\DC2\GS.routerrpc.SendPaymentRequest\SUB\SO.lnrpc.Payment0\SOH\DC2B\n\+ \\SOTrackPaymentV2\DC2\RS.routerrpc.TrackPaymentRequest\SUB\SO.lnrpc.Payment0\SOH\DC2K\n\+ \\DLEEstimateRouteFee\DC2\SUB.routerrpc.RouteFeeRequest\SUB\ESC.routerrpc.RouteFeeResponse\DC2Q\n\+ \\vSendToRoute\DC2\GS.routerrpc.SendToRouteRequest\SUB\RS.routerrpc.SendToRouteResponse\"\ETX\136\STX\SOH\DC2B\n\+ \\rSendToRouteV2\DC2\GS.routerrpc.SendToRouteRequest\SUB\DC2.lnrpc.HTLCAttempt\DC2d\n\+ \\DC3ResetMissionControl\DC2%.routerrpc.ResetMissionControlRequest\SUB&.routerrpc.ResetMissionControlResponse\DC2d\n\+ \\DC3QueryMissionControl\DC2%.routerrpc.QueryMissionControlRequest\SUB&.routerrpc.QueryMissionControlResponse\DC2j\n\+ \\NAKXImportMissionControl\DC2'.routerrpc.XImportMissionControlRequest\SUB(.routerrpc.XImportMissionControlResponse\DC2p\n\+ \\ETBGetMissionControlConfig\DC2).routerrpc.GetMissionControlConfigRequest\SUB*.routerrpc.GetMissionControlConfigResponse\DC2p\n\+ \\ETBSetMissionControlConfig\DC2).routerrpc.SetMissionControlConfigRequest\SUB*.routerrpc.SetMissionControlConfigResponse\DC2[\n\+ \\DLEQueryProbability\DC2\".routerrpc.QueryProbabilityRequest\SUB#.routerrpc.QueryProbabilityResponse\DC2I\n\+ \\n\+ \BuildRoute\DC2\FS.routerrpc.BuildRouteRequest\SUB\GS.routerrpc.BuildRouteResponse\DC2T\n\+ \\DC3SubscribeHtlcEvents\DC2%.routerrpc.SubscribeHtlcEventsRequest\SUB\DC4.routerrpc.HtlcEvent0\SOH\DC2M\n\+ \\vSendPayment\DC2\GS.routerrpc.SendPaymentRequest\SUB\CAN.routerrpc.PaymentStatus\"\ETX\136\STX\SOH0\SOH\DC2O\n\+ \\fTrackPayment\DC2\RS.routerrpc.TrackPaymentRequest\SUB\CAN.routerrpc.PaymentStatus\"\ETX\136\STX\SOH0\SOH\DC2f\n\+ \\SIHtlcInterceptor\DC2'.routerrpc.ForwardHtlcInterceptResponse\SUB&.routerrpc.ForwardHtlcInterceptRequest(\SOH0\SOH\DC2[\n\+ \\DLEUpdateChanStatus\DC2\".routerrpc.UpdateChanStatusRequest\SUB#.routerrpc.UpdateChanStatusResponse"+instance Data.ProtoLens.Service.Types.HasMethodImpl Router "sendPaymentV2" where+ type MethodName Router "sendPaymentV2" = "SendPaymentV2"+ type MethodInput Router "sendPaymentV2" = SendPaymentRequest+ type MethodOutput Router "sendPaymentV2" = Proto.Lnrpc.Ln1.Payment+ type MethodStreamingType Router "sendPaymentV2" = 'Data.ProtoLens.Service.Types.ServerStreaming+instance Data.ProtoLens.Service.Types.HasMethodImpl Router "trackPaymentV2" where+ type MethodName Router "trackPaymentV2" = "TrackPaymentV2"+ type MethodInput Router "trackPaymentV2" = TrackPaymentRequest+ type MethodOutput Router "trackPaymentV2" = Proto.Lnrpc.Ln1.Payment+ type MethodStreamingType Router "trackPaymentV2" = 'Data.ProtoLens.Service.Types.ServerStreaming+instance Data.ProtoLens.Service.Types.HasMethodImpl Router "estimateRouteFee" where+ type MethodName Router "estimateRouteFee" = "EstimateRouteFee"+ type MethodInput Router "estimateRouteFee" = RouteFeeRequest+ type MethodOutput Router "estimateRouteFee" = RouteFeeResponse+ type MethodStreamingType Router "estimateRouteFee" = 'Data.ProtoLens.Service.Types.NonStreaming+instance Data.ProtoLens.Service.Types.HasMethodImpl Router "sendToRoute" where+ type MethodName Router "sendToRoute" = "SendToRoute"+ type MethodInput Router "sendToRoute" = SendToRouteRequest+ type MethodOutput Router "sendToRoute" = SendToRouteResponse+ type MethodStreamingType Router "sendToRoute" = 'Data.ProtoLens.Service.Types.NonStreaming+instance Data.ProtoLens.Service.Types.HasMethodImpl Router "sendToRouteV2" where+ type MethodName Router "sendToRouteV2" = "SendToRouteV2"+ type MethodInput Router "sendToRouteV2" = SendToRouteRequest+ type MethodOutput Router "sendToRouteV2" = Proto.Lnrpc.Ln1.HTLCAttempt+ type MethodStreamingType Router "sendToRouteV2" = 'Data.ProtoLens.Service.Types.NonStreaming+instance Data.ProtoLens.Service.Types.HasMethodImpl Router "resetMissionControl" where+ type MethodName Router "resetMissionControl" = "ResetMissionControl"+ type MethodInput Router "resetMissionControl" = ResetMissionControlRequest+ type MethodOutput Router "resetMissionControl" = ResetMissionControlResponse+ type MethodStreamingType Router "resetMissionControl" = 'Data.ProtoLens.Service.Types.NonStreaming+instance Data.ProtoLens.Service.Types.HasMethodImpl Router "queryMissionControl" where+ type MethodName Router "queryMissionControl" = "QueryMissionControl"+ type MethodInput Router "queryMissionControl" = QueryMissionControlRequest+ type MethodOutput Router "queryMissionControl" = QueryMissionControlResponse+ type MethodStreamingType Router "queryMissionControl" = 'Data.ProtoLens.Service.Types.NonStreaming+instance Data.ProtoLens.Service.Types.HasMethodImpl Router "ximportMissionControl" where+ type MethodName Router "ximportMissionControl" = "XImportMissionControl"+ type MethodInput Router "ximportMissionControl" = XImportMissionControlRequest+ type MethodOutput Router "ximportMissionControl" = XImportMissionControlResponse+ type MethodStreamingType Router "ximportMissionControl" = 'Data.ProtoLens.Service.Types.NonStreaming+instance Data.ProtoLens.Service.Types.HasMethodImpl Router "getMissionControlConfig" where+ type MethodName Router "getMissionControlConfig" = "GetMissionControlConfig"+ type MethodInput Router "getMissionControlConfig" = GetMissionControlConfigRequest+ type MethodOutput Router "getMissionControlConfig" = GetMissionControlConfigResponse+ type MethodStreamingType Router "getMissionControlConfig" = 'Data.ProtoLens.Service.Types.NonStreaming+instance Data.ProtoLens.Service.Types.HasMethodImpl Router "setMissionControlConfig" where+ type MethodName Router "setMissionControlConfig" = "SetMissionControlConfig"+ type MethodInput Router "setMissionControlConfig" = SetMissionControlConfigRequest+ type MethodOutput Router "setMissionControlConfig" = SetMissionControlConfigResponse+ type MethodStreamingType Router "setMissionControlConfig" = 'Data.ProtoLens.Service.Types.NonStreaming+instance Data.ProtoLens.Service.Types.HasMethodImpl Router "queryProbability" where+ type MethodName Router "queryProbability" = "QueryProbability"+ type MethodInput Router "queryProbability" = QueryProbabilityRequest+ type MethodOutput Router "queryProbability" = QueryProbabilityResponse+ type MethodStreamingType Router "queryProbability" = 'Data.ProtoLens.Service.Types.NonStreaming+instance Data.ProtoLens.Service.Types.HasMethodImpl Router "buildRoute" where+ type MethodName Router "buildRoute" = "BuildRoute"+ type MethodInput Router "buildRoute" = BuildRouteRequest+ type MethodOutput Router "buildRoute" = BuildRouteResponse+ type MethodStreamingType Router "buildRoute" = 'Data.ProtoLens.Service.Types.NonStreaming+instance Data.ProtoLens.Service.Types.HasMethodImpl Router "subscribeHtlcEvents" where+ type MethodName Router "subscribeHtlcEvents" = "SubscribeHtlcEvents"+ type MethodInput Router "subscribeHtlcEvents" = SubscribeHtlcEventsRequest+ type MethodOutput Router "subscribeHtlcEvents" = HtlcEvent+ type MethodStreamingType Router "subscribeHtlcEvents" = 'Data.ProtoLens.Service.Types.ServerStreaming+instance Data.ProtoLens.Service.Types.HasMethodImpl Router "sendPayment" where+ type MethodName Router "sendPayment" = "SendPayment"+ type MethodInput Router "sendPayment" = SendPaymentRequest+ type MethodOutput Router "sendPayment" = PaymentStatus+ type MethodStreamingType Router "sendPayment" = 'Data.ProtoLens.Service.Types.ServerStreaming+instance Data.ProtoLens.Service.Types.HasMethodImpl Router "trackPayment" where+ type MethodName Router "trackPayment" = "TrackPayment"+ type MethodInput Router "trackPayment" = TrackPaymentRequest+ type MethodOutput Router "trackPayment" = PaymentStatus+ type MethodStreamingType Router "trackPayment" = 'Data.ProtoLens.Service.Types.ServerStreaming+instance Data.ProtoLens.Service.Types.HasMethodImpl Router "htlcInterceptor" where+ type MethodName Router "htlcInterceptor" = "HtlcInterceptor"+ type MethodInput Router "htlcInterceptor" = ForwardHtlcInterceptResponse+ type MethodOutput Router "htlcInterceptor" = ForwardHtlcInterceptRequest+ type MethodStreamingType Router "htlcInterceptor" = 'Data.ProtoLens.Service.Types.BiDiStreaming+instance Data.ProtoLens.Service.Types.HasMethodImpl Router "updateChanStatus" where+ type MethodName Router "updateChanStatus" = "UpdateChanStatus"+ type MethodInput Router "updateChanStatus" = UpdateChanStatusRequest+ type MethodOutput Router "updateChanStatus" = UpdateChanStatusResponse+ type MethodStreamingType Router "updateChanStatus" = 'Data.ProtoLens.Service.Types.NonStreaming+packedFileDescriptor :: Data.ByteString.ByteString+packedFileDescriptor+ = "\n\+ \\SYNrouterrpc/router.proto\DC2\trouterrpc\SUB\SIlnrpc/ln0.proto\SUB\SIlnrpc/ln1.proto\"\215\a\n\+ \\DC2SendPaymentRequest\DC2\DC2\n\+ \\EOTdest\CAN\SOH \SOH(\fR\EOTdest\DC2\DLE\n\+ \\ETXamt\CAN\STX \SOH(\ETXR\ETXamt\DC2\EM\n\+ \\bamt_msat\CAN\f \SOH(\ETXR\aamtMsat\DC2!\n\+ \\fpayment_hash\CAN\ETX \SOH(\fR\vpaymentHash\DC2(\n\+ \\DLEfinal_cltv_delta\CAN\EOT \SOH(\ENQR\SOfinalCltvDelta\DC2!\n\+ \\fpayment_addr\CAN\DC4 \SOH(\fR\vpaymentAddr\DC2'\n\+ \\SIpayment_request\CAN\ENQ \SOH(\tR\SOpaymentRequest\DC2'\n\+ \\SItimeout_seconds\CAN\ACK \SOH(\ENQR\SOtimeoutSeconds\DC2\"\n\+ \\rfee_limit_sat\CAN\a \SOH(\ETXR\vfeeLimitSat\DC2$\n\+ \\SOfee_limit_msat\CAN\r \SOH(\ETXR\ffeeLimitMsat\DC2.\n\+ \\DLEoutgoing_chan_id\CAN\b \SOH(\EOTR\SOoutgoingChanIdB\EOT0\SOH\CAN\SOH\DC2*\n\+ \\DC1outgoing_chan_ids\CAN\DC3 \ETX(\EOTR\SIoutgoingChanIds\DC2&\n\+ \\SIlast_hop_pubkey\CAN\SO \SOH(\fR\rlastHopPubkey\DC2\GS\n\+ \\n\+ \cltv_limit\CAN\t \SOH(\ENQR\tcltvLimit\DC21\n\+ \\vroute_hints\CAN\n\+ \ \ETX(\v2\DLE.lnrpc.RouteHintR\n\+ \routeHints\DC2d\n\+ \\DC3dest_custom_records\CAN\v \ETX(\v24.routerrpc.SendPaymentRequest.DestCustomRecordsEntryR\DC1destCustomRecords\DC2,\n\+ \\DC2allow_self_payment\CAN\SI \SOH(\bR\DLEallowSelfPayment\DC26\n\+ \\rdest_features\CAN\DLE \ETX(\SO2\DC1.lnrpc.FeatureBitR\fdestFeatures\DC2\ESC\n\+ \\tmax_parts\CAN\DC1 \SOH(\rR\bmaxParts\DC2.\n\+ \\DC3no_inflight_updates\CAN\DC2 \SOH(\bR\DC1noInflightUpdates\DC2-\n\+ \\DC3max_shard_size_msat\CAN\NAK \SOH(\EOTR\DLEmaxShardSizeMsat\DC2\DLE\n\+ \\ETXamp\CAN\SYN \SOH(\bR\ETXamp\SUBD\n\+ \\SYNDestCustomRecordsEntry\DC2\DLE\n\+ \\ETXkey\CAN\SOH \SOH(\EOTR\ETXkey\DC2\DC4\n\+ \\ENQvalue\CAN\STX \SOH(\fR\ENQvalue:\STX8\SOH\"h\n\+ \\DC3TrackPaymentRequest\DC2!\n\+ \\fpayment_hash\CAN\SOH \SOH(\fR\vpaymentHash\DC2.\n\+ \\DC3no_inflight_updates\CAN\STX \SOH(\bR\DC1noInflightUpdates\">\n\+ \\SIRouteFeeRequest\DC2\DC2\n\+ \\EOTdest\CAN\SOH \SOH(\fR\EOTdest\DC2\ETB\n\+ \\aamt_sat\CAN\STX \SOH(\ETXR\ACKamtSat\"d\n\+ \\DLERouteFeeResponse\DC2(\n\+ \\DLErouting_fee_msat\CAN\SOH \SOH(\ETXR\SOroutingFeeMsat\DC2&\n\+ \\SItime_lock_delay\CAN\STX \SOH(\ETXR\rtimeLockDelay\"[\n\+ \\DC2SendToRouteRequest\DC2!\n\+ \\fpayment_hash\CAN\SOH \SOH(\fR\vpaymentHash\DC2\"\n\+ \\ENQroute\CAN\STX \SOH(\v2\f.lnrpc.RouteR\ENQroute\"[\n\+ \\DC3SendToRouteResponse\DC2\SUB\n\+ \\bpreimage\CAN\SOH \SOH(\fR\bpreimage\DC2(\n\+ \\afailure\CAN\STX \SOH(\v2\SO.lnrpc.FailureR\afailure\"\FS\n\+ \\SUBResetMissionControlRequest\"\GS\n\+ \\ESCResetMissionControlResponse\"\FS\n\+ \\SUBQueryMissionControlRequest\"Q\n\+ \\ESCQueryMissionControlResponse\DC2,\n\+ \\ENQpairs\CAN\STX \ETX(\v2\SYN.routerrpc.PairHistoryR\ENQpairsJ\EOT\b\SOH\DLE\STX\"L\n\+ \\FSXImportMissionControlRequest\DC2,\n\+ \\ENQpairs\CAN\SOH \ETX(\v2\SYN.routerrpc.PairHistoryR\ENQpairs\"\US\n\+ \\GSXImportMissionControlResponse\"\138\SOH\n\+ \\vPairHistory\DC2\ESC\n\+ \\tnode_from\CAN\SOH \SOH(\fR\bnodeFrom\DC2\ETB\n\+ \\anode_to\CAN\STX \SOH(\fR\ACKnodeTo\DC2-\n\+ \\ahistory\CAN\a \SOH(\v2\DC3.routerrpc.PairDataR\ahistoryJ\EOT\b\ETX\DLE\EOTJ\EOT\b\EOT\DLE\ENQJ\EOT\b\ENQ\DLE\ACKJ\EOT\b\ACK\DLE\a\"\232\SOH\n\+ \\bPairData\DC2\ESC\n\+ \\tfail_time\CAN\SOH \SOH(\ETXR\bfailTime\DC2 \n\+ \\ffail_amt_sat\CAN\STX \SOH(\ETXR\n\+ \failAmtSat\DC2\"\n\+ \\rfail_amt_msat\CAN\EOT \SOH(\ETXR\vfailAmtMsat\DC2!\n\+ \\fsuccess_time\CAN\ENQ \SOH(\ETXR\vsuccessTime\DC2&\n\+ \\SIsuccess_amt_sat\CAN\ACK \SOH(\ETXR\rsuccessAmtSat\DC2(\n\+ \\DLEsuccess_amt_msat\CAN\a \SOH(\ETXR\SOsuccessAmtMsatJ\EOT\b\ETX\DLE\EOT\" \n\+ \\RSGetMissionControlConfigRequest\"Z\n\+ \\USGetMissionControlConfigResponse\DC27\n\+ \\ACKconfig\CAN\SOH \SOH(\v2\US.routerrpc.MissionControlConfigR\ACKconfig\"Y\n\+ \\RSSetMissionControlConfigRequest\DC27\n\+ \\ACKconfig\CAN\SOH \SOH(\v2\US.routerrpc.MissionControlConfigR\ACKconfig\"!\n\+ \\USSetMissionControlConfigResponse\"\128\STX\n\+ \\DC4MissionControlConfig\DC2*\n\+ \\DC1half_life_seconds\CAN\SOH \SOH(\EOTR\SIhalfLifeSeconds\DC2'\n\+ \\SIhop_probability\CAN\STX \SOH(\STXR\SOhopProbability\DC2\SYN\n\+ \\ACKweight\CAN\ETX \SOH(\STXR\ACKweight\DC26\n\+ \\ETBmaximum_payment_results\CAN\EOT \SOH(\rR\NAKmaximumPaymentResults\DC2C\n\+ \\RSminimum_failure_relax_interval\CAN\ENQ \SOH(\EOTR\ESCminimumFailureRelaxInterval\"j\n\+ \\ETBQueryProbabilityRequest\DC2\ESC\n\+ \\tfrom_node\CAN\SOH \SOH(\fR\bfromNode\DC2\ETB\n\+ \\ato_node\CAN\STX \SOH(\fR\ACKtoNode\DC2\EM\n\+ \\bamt_msat\CAN\ETX \SOH(\ETXR\aamtMsat\"k\n\+ \\CANQueryProbabilityResponse\DC2 \n\+ \\vprobability\CAN\SOH \SOH(\SOHR\vprobability\DC2-\n\+ \\ahistory\CAN\STX \SOH(\v2\DC3.routerrpc.PairDataR\ahistory\"\202\SOH\n\+ \\DC1BuildRouteRequest\DC2\EM\n\+ \\bamt_msat\CAN\SOH \SOH(\ETXR\aamtMsat\DC2(\n\+ \\DLEfinal_cltv_delta\CAN\STX \SOH(\ENQR\SOfinalCltvDelta\DC2,\n\+ \\DLEoutgoing_chan_id\CAN\ETX \SOH(\EOTR\SOoutgoingChanIdB\STX0\SOH\DC2\US\n\+ \\vhop_pubkeys\CAN\EOT \ETX(\fR\n\+ \hopPubkeys\DC2!\n\+ \\fpayment_addr\CAN\ENQ \SOH(\fR\vpaymentAddr\"8\n\+ \\DC2BuildRouteResponse\DC2\"\n\+ \\ENQroute\CAN\SOH \SOH(\v2\f.lnrpc.RouteR\ENQroute\"\FS\n\+ \\SUBSubscribeHtlcEventsRequest\"\246\EOT\n\+ \\tHtlcEvent\DC2.\n\+ \\DC3incoming_channel_id\CAN\SOH \SOH(\EOTR\DC1incomingChannelId\DC2.\n\+ \\DC3outgoing_channel_id\CAN\STX \SOH(\EOTR\DC1outgoingChannelId\DC2(\n\+ \\DLEincoming_htlc_id\CAN\ETX \SOH(\EOTR\SOincomingHtlcId\DC2(\n\+ \\DLEoutgoing_htlc_id\CAN\EOT \SOH(\EOTR\SOoutgoingHtlcId\DC2!\n\+ \\ftimestamp_ns\CAN\ENQ \SOH(\EOTR\vtimestampNs\DC2=\n\+ \\n\+ \event_type\CAN\ACK \SOH(\SO2\RS.routerrpc.HtlcEvent.EventTypeR\teventType\DC2>\n\+ \\rforward_event\CAN\a \SOH(\v2\ETB.routerrpc.ForwardEventH\NULR\fforwardEvent\DC2K\n\+ \\DC2forward_fail_event\CAN\b \SOH(\v2\ESC.routerrpc.ForwardFailEventH\NULR\DLEforwardFailEvent\DC2;\n\+ \\fsettle_event\CAN\t \SOH(\v2\SYN.routerrpc.SettleEventH\NULR\vsettleEvent\DC2B\n\+ \\SIlink_fail_event\CAN\n\+ \ \SOH(\v2\CAN.routerrpc.LinkFailEventH\NULR\rlinkFailEvent\"<\n\+ \\tEventType\DC2\v\n\+ \\aUNKNOWN\DLE\NUL\DC2\b\n\+ \\EOTSEND\DLE\SOH\DC2\v\n\+ \\aRECEIVE\DLE\STX\DC2\v\n\+ \\aFORWARD\DLE\ETXB\a\n\+ \\ENQevent\"\188\SOH\n\+ \\bHtlcInfo\DC2+\n\+ \\DC1incoming_timelock\CAN\SOH \SOH(\rR\DLEincomingTimelock\DC2+\n\+ \\DC1outgoing_timelock\CAN\STX \SOH(\rR\DLEoutgoingTimelock\DC2*\n\+ \\DC1incoming_amt_msat\CAN\ETX \SOH(\EOTR\SIincomingAmtMsat\DC2*\n\+ \\DC1outgoing_amt_msat\CAN\EOT \SOH(\EOTR\SIoutgoingAmtMsat\"7\n\+ \\fForwardEvent\DC2'\n\+ \\EOTinfo\CAN\SOH \SOH(\v2\DC3.routerrpc.HtlcInfoR\EOTinfo\"\DC2\n\+ \\DLEForwardFailEvent\")\n\+ \\vSettleEvent\DC2\SUB\n\+ \\bpreimage\CAN\SOH \SOH(\fR\bpreimage\"\223\SOH\n\+ \\rLinkFailEvent\DC2'\n\+ \\EOTinfo\CAN\SOH \SOH(\v2\DC3.routerrpc.HtlcInfoR\EOTinfo\DC2=\n\+ \\fwire_failure\CAN\STX \SOH(\SO2\SUB.lnrpc.Failure.FailureCodeR\vwireFailure\DC2?\n\+ \\SOfailure_detail\CAN\ETX \SOH(\SO2\CAN.routerrpc.FailureDetailR\rfailureDetail\DC2%\n\+ \\SOfailure_string\CAN\EOT \SOH(\tR\rfailureString\"\138\SOH\n\+ \\rPaymentStatus\DC2-\n\+ \\ENQstate\CAN\SOH \SOH(\SO2\ETB.routerrpc.PaymentStateR\ENQstate\DC2\SUB\n\+ \\bpreimage\CAN\STX \SOH(\fR\bpreimage\DC2(\n\+ \\ENQhtlcs\CAN\EOT \ETX(\v2\DC2.lnrpc.HTLCAttemptR\ENQhtlcsJ\EOT\b\ETX\DLE\EOT\">\n\+ \\n\+ \CircuitKey\DC2\ETB\n\+ \\achan_id\CAN\SOH \SOH(\EOTR\ACKchanId\DC2\ETB\n\+ \\ahtlc_id\CAN\STX \SOH(\EOTR\ACKhtlcId\"\191\EOT\n\+ \\ESCForwardHtlcInterceptRequest\DC2G\n\+ \\DC4incoming_circuit_key\CAN\SOH \SOH(\v2\NAK.routerrpc.CircuitKeyR\DC2incomingCircuitKey\DC20\n\+ \\DC4incoming_amount_msat\CAN\ENQ \SOH(\EOTR\DC2incomingAmountMsat\DC2'\n\+ \\SIincoming_expiry\CAN\ACK \SOH(\rR\SOincomingExpiry\DC2!\n\+ \\fpayment_hash\CAN\STX \SOH(\fR\vpaymentHash\DC2;\n\+ \\SUBoutgoing_requested_chan_id\CAN\a \SOH(\EOTR\ETBoutgoingRequestedChanId\DC20\n\+ \\DC4outgoing_amount_msat\CAN\ETX \SOH(\EOTR\DC2outgoingAmountMsat\DC2'\n\+ \\SIoutgoing_expiry\CAN\EOT \SOH(\rR\SOoutgoingExpiry\DC2`\n\+ \\SOcustom_records\CAN\b \ETX(\v29.routerrpc.ForwardHtlcInterceptRequest.CustomRecordsEntryR\rcustomRecords\DC2\GS\n\+ \\n\+ \onion_blob\CAN\t \SOH(\fR\tonionBlob\SUB@\n\+ \\DC2CustomRecordsEntry\DC2\DLE\n\+ \\ETXkey\CAN\SOH \SOH(\EOTR\ETXkey\DC2\DC4\n\+ \\ENQvalue\CAN\STX \SOH(\fR\ENQvalue:\STX8\SOH\"\192\SOH\n\+ \\FSForwardHtlcInterceptResponse\DC2G\n\+ \\DC4incoming_circuit_key\CAN\SOH \SOH(\v2\NAK.routerrpc.CircuitKeyR\DC2incomingCircuitKey\DC2;\n\+ \\ACKaction\CAN\STX \SOH(\SO2#.routerrpc.ResolveHoldForwardActionR\ACKaction\DC2\SUB\n\+ \\bpreimage\CAN\ETX \SOH(\fR\bpreimage\"\130\SOH\n\+ \\ETBUpdateChanStatusRequest\DC22\n\+ \\n\+ \chan_point\CAN\SOH \SOH(\v2\DC3.lnrpc.ChannelPointR\tchanPoint\DC23\n\+ \\ACKaction\CAN\STX \SOH(\SO2\ESC.routerrpc.ChanStatusActionR\ACKaction\"\SUB\n\+ \\CANUpdateChanStatusResponse*\129\EOT\n\+ \\rFailureDetail\DC2\v\n\+ \\aUNKNOWN\DLE\NUL\DC2\r\n\+ \\tNO_DETAIL\DLE\SOH\DC2\DLE\n\+ \\fONION_DECODE\DLE\STX\DC2\NAK\n\+ \\DC1LINK_NOT_ELIGIBLE\DLE\ETX\DC2\DC4\n\+ \\DLEON_CHAIN_TIMEOUT\DLE\EOT\DC2\DC4\n\+ \\DLEHTLC_EXCEEDS_MAX\DLE\ENQ\DC2\CAN\n\+ \\DC4INSUFFICIENT_BALANCE\DLE\ACK\DC2\SYN\n\+ \\DC2INCOMPLETE_FORWARD\DLE\a\DC2\DC3\n\+ \\SIHTLC_ADD_FAILED\DLE\b\DC2\NAK\n\+ \\DC1FORWARDS_DISABLED\DLE\t\DC2\DC4\n\+ \\DLEINVOICE_CANCELED\DLE\n\+ \\DC2\NAK\n\+ \\DC1INVOICE_UNDERPAID\DLE\v\DC2\ESC\n\+ \\ETBINVOICE_EXPIRY_TOO_SOON\DLE\f\DC2\DC4\n\+ \\DLEINVOICE_NOT_OPEN\DLE\r\DC2\ETB\n\+ \\DC3MPP_INVOICE_TIMEOUT\DLE\SO\DC2\DC4\n\+ \\DLEADDRESS_MISMATCH\DLE\SI\DC2\SYN\n\+ \\DC2SET_TOTAL_MISMATCH\DLE\DLE\DC2\NAK\n\+ \\DC1SET_TOTAL_TOO_LOW\DLE\DC1\DC2\DLE\n\+ \\fSET_OVERPAID\DLE\DC2\DC2\DC3\n\+ \\SIUNKNOWN_INVOICE\DLE\DC3\DC2\DC3\n\+ \\SIINVALID_KEYSEND\DLE\DC4\DC2\DC3\n\+ \\SIMPP_IN_PROGRESS\DLE\NAK\DC2\DC2\n\+ \\SOCIRCULAR_ROUTE\DLE\SYN*\174\SOH\n\+ \\fPaymentState\DC2\r\n\+ \\tIN_FLIGHT\DLE\NUL\DC2\r\n\+ \\tSUCCEEDED\DLE\SOH\DC2\DC2\n\+ \\SOFAILED_TIMEOUT\DLE\STX\DC2\DC3\n\+ \\SIFAILED_NO_ROUTE\DLE\ETX\DC2\DLE\n\+ \\fFAILED_ERROR\DLE\EOT\DC2$\n\+ \ FAILED_INCORRECT_PAYMENT_DETAILS\DLE\ENQ\DC2\US\n\+ \\ESCFAILED_INSUFFICIENT_BALANCE\DLE\ACK*<\n\+ \\CANResolveHoldForwardAction\DC2\n\+ \\n\+ \\ACKSETTLE\DLE\NUL\DC2\b\n\+ \\EOTFAIL\DLE\SOH\DC2\n\+ \\n\+ \\ACKRESUME\DLE\STX*5\n\+ \\DLEChanStatusAction\DC2\n\+ \\n\+ \\ACKENABLE\DLE\NUL\DC2\v\n\+ \\aDISABLE\DLE\SOH\DC2\b\n\+ \\EOTAUTO\DLE\STX2\241\v\n\+ \\ACKRouter\DC2@\n\+ \\rSendPaymentV2\DC2\GS.routerrpc.SendPaymentRequest\SUB\SO.lnrpc.Payment0\SOH\DC2B\n\+ \\SOTrackPaymentV2\DC2\RS.routerrpc.TrackPaymentRequest\SUB\SO.lnrpc.Payment0\SOH\DC2K\n\+ \\DLEEstimateRouteFee\DC2\SUB.routerrpc.RouteFeeRequest\SUB\ESC.routerrpc.RouteFeeResponse\DC2Q\n\+ \\vSendToRoute\DC2\GS.routerrpc.SendToRouteRequest\SUB\RS.routerrpc.SendToRouteResponse\"\ETX\136\STX\SOH\DC2B\n\+ \\rSendToRouteV2\DC2\GS.routerrpc.SendToRouteRequest\SUB\DC2.lnrpc.HTLCAttempt\DC2d\n\+ \\DC3ResetMissionControl\DC2%.routerrpc.ResetMissionControlRequest\SUB&.routerrpc.ResetMissionControlResponse\DC2d\n\+ \\DC3QueryMissionControl\DC2%.routerrpc.QueryMissionControlRequest\SUB&.routerrpc.QueryMissionControlResponse\DC2j\n\+ \\NAKXImportMissionControl\DC2'.routerrpc.XImportMissionControlRequest\SUB(.routerrpc.XImportMissionControlResponse\DC2p\n\+ \\ETBGetMissionControlConfig\DC2).routerrpc.GetMissionControlConfigRequest\SUB*.routerrpc.GetMissionControlConfigResponse\DC2p\n\+ \\ETBSetMissionControlConfig\DC2).routerrpc.SetMissionControlConfigRequest\SUB*.routerrpc.SetMissionControlConfigResponse\DC2[\n\+ \\DLEQueryProbability\DC2\".routerrpc.QueryProbabilityRequest\SUB#.routerrpc.QueryProbabilityResponse\DC2I\n\+ \\n\+ \BuildRoute\DC2\FS.routerrpc.BuildRouteRequest\SUB\GS.routerrpc.BuildRouteResponse\DC2T\n\+ \\DC3SubscribeHtlcEvents\DC2%.routerrpc.SubscribeHtlcEventsRequest\SUB\DC4.routerrpc.HtlcEvent0\SOH\DC2M\n\+ \\vSendPayment\DC2\GS.routerrpc.SendPaymentRequest\SUB\CAN.routerrpc.PaymentStatus\"\ETX\136\STX\SOH0\SOH\DC2O\n\+ \\fTrackPayment\DC2\RS.routerrpc.TrackPaymentRequest\SUB\CAN.routerrpc.PaymentStatus\"\ETX\136\STX\SOH0\SOH\DC2f\n\+ \\SIHtlcInterceptor\DC2'.routerrpc.ForwardHtlcInterceptResponse\SUB&.routerrpc.ForwardHtlcInterceptRequest(\SOH0\SOH\DC2[\n\+ \\DLEUpdateChanStatus\DC2\".routerrpc.UpdateChanStatusRequest\SUB#.routerrpc.UpdateChanStatusResponseB1Z/github.com/lightningnetwork/lnd/lnrpc/routerrpcJ\222\189\SOH\n\+ \\a\DC2\ENQ\NUL\NUL\160\ACK\SOH\n\+ \\b\n\+ \\SOH\f\DC2\ETX\NUL\NUL\DC2\n\+ \\t\n\+ \\STX\ETX\NUL\DC2\ETX\STX\NUL\EM\n\+ \\t\n\+ \\STX\ETX\SOH\DC2\ETX\ETX\NUL\EM\n\+ \\b\n\+ \\SOH\STX\DC2\ETX\ENQ\NUL\DC2\n\+ \\b\n\+ \\SOH\b\DC2\ETX\a\NULF\n\+ \\t\n\+ \\STX\b\v\DC2\ETX\a\NULF\n\+ \m\n\+ \\STX\ACK\NUL\DC2\ENQ\v\NUL\142\SOH\SOH\SUB` Router is a service that offers advanced interaction with the router\n\+ \ subsystem of the daemon.\n\+ \\n\+ \\n\+ \\n\+ \\ETX\ACK\NUL\SOH\DC2\ETX\v\b\SO\n\+ \\168\SOH\n\+ \\EOT\ACK\NUL\STX\NUL\DC2\ETX\DC1\EOTJ\SUB\154\SOH\n\+ \SendPaymentV2 attempts to route a payment described by the passed\n\+ \PaymentRequest to the final destination. The call returns a stream of\n\+ \payment updates.\n\+ \\n\+ \\f\n\+ \\ENQ\ACK\NUL\STX\NUL\SOH\DC2\ETX\DC1\b\NAK\n\+ \\f\n\+ \\ENQ\ACK\NUL\STX\NUL\STX\DC2\ETX\DC1\ETB)\n\+ \\f\n\+ \\ENQ\ACK\NUL\STX\NUL\ACK\DC2\ETX\DC14:\n\+ \\f\n\+ \\ENQ\ACK\NUL\STX\NUL\ETX\DC2\ETX\DC1;H\n\+ \f\n\+ \\EOT\ACK\NUL\STX\SOH\DC2\ETX\ETB\EOTL\SUBY\n\+ \TrackPaymentV2 returns an update stream for the payment identified by the\n\+ \payment hash.\n\+ \\n\+ \\f\n\+ \\ENQ\ACK\NUL\STX\SOH\SOH\DC2\ETX\ETB\b\SYN\n\+ \\f\n\+ \\ENQ\ACK\NUL\STX\SOH\STX\DC2\ETX\ETB\CAN+\n\+ \\f\n\+ \\ENQ\ACK\NUL\STX\SOH\ACK\DC2\ETX\ETB6<\n\+ \\f\n\+ \\ENQ\ACK\NUL\STX\SOH\ETX\DC2\ETX\ETB=J\n\+ \\145\SOH\n\+ \\EOT\ACK\NUL\STX\STX\DC2\ETX\GS\EOTF\SUB\131\SOH\n\+ \EstimateRouteFee allows callers to obtain a lower bound w.r.t how much it\n\+ \may cost to send an HTLC to the target end destination.\n\+ \\n\+ \\f\n\+ \\ENQ\ACK\NUL\STX\STX\SOH\DC2\ETX\GS\b\CAN\n\+ \\f\n\+ \\ENQ\ACK\NUL\STX\STX\STX\DC2\ETX\GS\SUB)\n\+ \\f\n\+ \\ENQ\ACK\NUL\STX\STX\ETX\DC2\ETX\GS4D\n\+ \\235\STX\n\+ \\EOT\ACK\NUL\STX\ETX\DC2\EOT&\EOT(\ENQ\SUB\220\STX\n\+ \Deprecated, use SendToRouteV2. SendToRoute attempts to make a payment via\n\+ \the specified route. This method differs from SendPayment in that it\n\+ \allows users to specify a full route manually. This can be used for\n\+ \things like rebalancing, and atomic swaps. It differs from the newer\n\+ \SendToRouteV2 in that it doesn't return the full HTLC information.\n\+ \\n\+ \\f\n\+ \\ENQ\ACK\NUL\STX\ETX\SOH\DC2\ETX&\b\DC3\n\+ \\f\n\+ \\ENQ\ACK\NUL\STX\ETX\STX\DC2\ETX&\NAK'\n\+ \\f\n\+ \\ENQ\ACK\NUL\STX\ETX\ETX\DC2\ETX&2E\n\+ \\f\n\+ \\ENQ\ACK\NUL\STX\ETX\EOT\DC2\ETX'\b!\n\+ \\r\n\+ \\ACK\ACK\NUL\STX\ETX\EOT!\DC2\ETX'\b!\n\+ \\240\SOH\n\+ \\EOT\ACK\NUL\STX\EOT\DC2\ETX0\EOTG\SUB\226\SOH\n\+ \SendToRouteV2 attempts to make a payment via the specified route. This\n\+ \method differs from SendPayment in that it allows users to specify a full\n\+ \route manually. This can be used for things like rebalancing, and atomic\n\+ \swaps.\n\+ \\n\+ \\f\n\+ \\ENQ\ACK\NUL\STX\EOT\SOH\DC2\ETX0\b\NAK\n\+ \\f\n\+ \\ENQ\ACK\NUL\STX\EOT\STX\DC2\ETX0\ETB)\n\+ \\f\n\+ \\ENQ\ACK\NUL\STX\EOT\ETX\DC2\ETX04E\n\+ \c\n\+ \\EOT\ACK\NUL\STX\ENQ\DC2\EOT6\EOT7.\SUBU\n\+ \ResetMissionControl clears all mission control state and starts with a clean\n\+ \slate.\n\+ \\n\+ \\f\n\+ \\ENQ\ACK\NUL\STX\ENQ\SOH\DC2\ETX6\b\ESC\n\+ \\f\n\+ \\ENQ\ACK\NUL\STX\ENQ\STX\DC2\ETX6\GS7\n\+ \\f\n\+ \\ENQ\ACK\NUL\STX\ENQ\ETX\DC2\ETX7\DC1,\n\+ \w\n\+ \\EOT\ACK\NUL\STX\ACK\DC2\EOT=\EOT>.\SUBi\n\+ \QueryMissionControl exposes the internal mission control state to callers.\n\+ \It is a development feature.\n\+ \\n\+ \\f\n\+ \\ENQ\ACK\NUL\STX\ACK\SOH\DC2\ETX=\b\ESC\n\+ \\f\n\+ \\ENQ\ACK\NUL\STX\ACK\STX\DC2\ETX=\GS7\n\+ \\f\n\+ \\ENQ\ACK\NUL\STX\ACK\ETX\DC2\ETX>\DC1,\n\+ \\161\STX\n\+ \\EOT\ACK\NUL\STX\a\DC2\EOTF\EOTG0\SUB\146\STX\n\+ \XImportMissionControl is an experimental API that imports the state provided\n\+ \to the internal mission control's state, using all results which are more\n\+ \recent than our existing values. These values will only be imported\n\+ \in-memory, and will not be persisted across restarts.\n\+ \\n\+ \\f\n\+ \\ENQ\ACK\NUL\STX\a\SOH\DC2\ETXF\b\GS\n\+ \\f\n\+ \\ENQ\ACK\NUL\STX\a\STX\DC2\ETXF\US;\n\+ \\f\n\+ \\ENQ\ACK\NUL\STX\a\ETX\DC2\ETXG\DC1.\n\+ \Q\n\+ \\EOT\ACK\NUL\STX\b\DC2\EOTL\EOTM2\SUBC\n\+ \GetMissionControlConfig returns mission control's current config.\n\+ \\n\+ \\f\n\+ \\ENQ\ACK\NUL\STX\b\SOH\DC2\ETXL\b\US\n\+ \\f\n\+ \\ENQ\ACK\NUL\STX\b\STX\DC2\ETXL!?\n\+ \\f\n\+ \\ENQ\ACK\NUL\STX\b\ETX\DC2\ETXM\DC10\n\+ \k\n\+ \\EOT\ACK\NUL\STX\t\DC2\EOTS\EOTT2\SUB]\n\+ \SetMissionControlConfig will set mission control's config, if the config\n\+ \provided is valid.\n\+ \\n\+ \\f\n\+ \\ENQ\ACK\NUL\STX\t\SOH\DC2\ETXS\b\US\n\+ \\f\n\+ \\ENQ\ACK\NUL\STX\t\STX\DC2\ETXS!?\n\+ \\f\n\+ \\ENQ\ACK\NUL\STX\t\ETX\DC2\ETXT\DC10\n\+ \s\n\+ \\EOT\ACK\NUL\STX\n\+ \\DC2\EOTZ\EOT[+\SUBe\n\+ \QueryProbability returns the current success probability estimate for a\n\+ \given node pair and amount.\n\+ \\n\+ \\f\n\+ \\ENQ\ACK\NUL\STX\n\+ \\SOH\DC2\ETXZ\b\CAN\n\+ \\f\n\+ \\ENQ\ACK\NUL\STX\n\+ \\STX\DC2\ETXZ\SUB1\n\+ \\f\n\+ \\ENQ\ACK\NUL\STX\n\+ \\ETX\DC2\ETX[\DC1)\n\+ \\206\SOH\n\+ \\EOT\ACK\NUL\STX\v\DC2\ETXb\EOTD\SUB\192\SOH\n\+ \BuildRoute builds a fully specified route based on a list of hop public\n\+ \keys. It retrieves the relevant channel policies from the graph in order to\n\+ \calculate the correct fees and time locks.\n\+ \\n\+ \\f\n\+ \\ENQ\ACK\NUL\STX\v\SOH\DC2\ETXb\b\DC2\n\+ \\f\n\+ \\ENQ\ACK\NUL\STX\v\STX\DC2\ETXb\DC4%\n\+ \\f\n\+ \\ENQ\ACK\NUL\STX\v\ETX\DC2\ETXb0B\n\+ \\138\SOH\n\+ \\EOT\ACK\NUL\STX\f\DC2\EOTh\EOTi#\SUB|\n\+ \SubscribeHtlcEvents creates a uni-directional stream from the server to\n\+ \the client which delivers a stream of htlc events.\n\+ \\n\+ \\f\n\+ \\ENQ\ACK\NUL\STX\f\SOH\DC2\ETXh\b\ESC\n\+ \\f\n\+ \\ENQ\ACK\NUL\STX\f\STX\DC2\ETXh\GS7\n\+ \\f\n\+ \\ENQ\ACK\NUL\STX\f\ACK\DC2\ETXi\DC1\ETB\n\+ \\f\n\+ \\ENQ\ACK\NUL\STX\f\ETX\DC2\ETXi\CAN!\n\+ \\205\SOH\n\+ \\EOT\ACK\NUL\STX\r\DC2\EOTp\EOTr\ENQ\SUB\190\SOH\n\+ \Deprecated, use SendPaymentV2. SendPayment attempts to route a payment\n\+ \described by the passed PaymentRequest to the final destination. The call\n\+ \returns a stream of payment status updates.\n\+ \\n\+ \\f\n\+ \\ENQ\ACK\NUL\STX\r\SOH\DC2\ETXp\b\DC3\n\+ \\f\n\+ \\ENQ\ACK\NUL\STX\r\STX\DC2\ETXp\NAK'\n\+ \\f\n\+ \\ENQ\ACK\NUL\STX\r\ACK\DC2\ETXp28\n\+ \\f\n\+ \\ENQ\ACK\NUL\STX\r\ETX\DC2\ETXp9F\n\+ \\f\n\+ \\ENQ\ACK\NUL\STX\r\EOT\DC2\ETXq\b!\n\+ \\r\n\+ \\ACK\ACK\NUL\STX\r\EOT!\DC2\ETXq\b!\n\+ \\133\SOH\n\+ \\EOT\ACK\NUL\STX\SO\DC2\EOTx\EOTz\ENQ\SUBw\n\+ \Deprecated, use TrackPaymentV2. TrackPayment returns an update stream for\n\+ \the payment identified by the payment hash.\n\+ \\n\+ \\f\n\+ \\ENQ\ACK\NUL\STX\SO\SOH\DC2\ETXx\b\DC4\n\+ \\f\n\+ \\ENQ\ACK\NUL\STX\SO\STX\DC2\ETXx\SYN)\n\+ \\f\n\+ \\ENQ\ACK\NUL\STX\SO\ACK\DC2\ETXx4:\n\+ \\f\n\+ \\ENQ\ACK\NUL\STX\SO\ETX\DC2\ETXx;H\n\+ \\f\n\+ \\ENQ\ACK\NUL\STX\SO\EOT\DC2\ETXy\b!\n\+ \\r\n\+ \\ACK\ACK\NUL\STX\SO\EOT!\DC2\ETXy\b!\n\+ \\221\STX\n\+ \\EOT\ACK\NUL\STX\SI\DC2\ACK\131\SOH\EOT\132\SOH5\SUB\204\STX*\n\+ \HtlcInterceptor dispatches a bi-directional streaming RPC in which\n\+ \Forwarded HTLC requests are sent to the client and the client responds with\n\+ \a boolean that tells LND if this htlc should be intercepted.\n\+ \In case of interception, the htlc can be either settled, cancelled or\n\+ \resumed later by using the ResolveHoldForward endpoint.\n\+ \\n\+ \\r\n\+ \\ENQ\ACK\NUL\STX\SI\SOH\DC2\EOT\131\SOH\b\ETB\n\+ \\r\n\+ \\ENQ\ACK\NUL\STX\SI\ENQ\DC2\EOT\131\SOH\EM\US\n\+ \\r\n\+ \\ENQ\ACK\NUL\STX\SI\STX\DC2\EOT\131\SOH <\n\+ \\r\n\+ \\ENQ\ACK\NUL\STX\SI\ACK\DC2\EOT\132\SOH\DC1\ETB\n\+ \\r\n\+ \\ENQ\ACK\NUL\STX\SI\ETX\DC2\EOT\132\SOH\CAN3\n\+ \\244\SOH\n\+ \\EOT\ACK\NUL\STX\DLE\DC2\ACK\140\SOH\EOT\141\SOH+\SUB\227\SOH\n\+ \UpdateChanStatus attempts to manually set the state of a channel\n\+ \(enabled, disabled, or auto). A manual \"disable\" request will cause the\n\+ \channel to stay disabled until a subsequent manual request of either\n\+ \\"enable\" or \"auto\".\n\+ \\n\+ \\r\n\+ \\ENQ\ACK\NUL\STX\DLE\SOH\DC2\EOT\140\SOH\b\CAN\n\+ \\r\n\+ \\ENQ\ACK\NUL\STX\DLE\STX\DC2\EOT\140\SOH\SUB1\n\+ \\r\n\+ \\ENQ\ACK\NUL\STX\DLE\ETX\DC2\EOT\141\SOH\DC1)\n\+ \\f\n\+ \\STX\EOT\NUL\DC2\ACK\144\SOH\NUL\159\STX\SOH\n\+ \\v\n\+ \\ETX\EOT\NUL\SOH\DC2\EOT\144\SOH\b\SUB\n\+ \<\n\+ \\EOT\EOT\NUL\STX\NUL\DC2\EOT\146\SOH\EOT\DC3\SUB. The identity pubkey of the payment recipient\n\+ \\n\+ \\r\n\+ \\ENQ\EOT\NUL\STX\NUL\ENQ\DC2\EOT\146\SOH\EOT\t\n\+ \\r\n\+ \\ENQ\EOT\NUL\STX\NUL\SOH\DC2\EOT\146\SOH\n\+ \\SO\n\+ \\r\n\+ \\ENQ\EOT\NUL\STX\NUL\ETX\DC2\EOT\146\SOH\DC1\DC2\n\+ \`\n\+ \\EOT\EOT\NUL\STX\SOH\DC2\EOT\153\SOH\EOT\DC2\SUBR\n\+ \Number of satoshis to send.\n\+ \\n\+ \The fields amt and amt_msat are mutually exclusive.\n\+ \\n\+ \\r\n\+ \\ENQ\EOT\NUL\STX\SOH\ENQ\DC2\EOT\153\SOH\EOT\t\n\+ \\r\n\+ \\ENQ\EOT\NUL\STX\SOH\SOH\DC2\EOT\153\SOH\n\+ \\r\n\+ \\r\n\+ \\ENQ\EOT\NUL\STX\SOH\ETX\DC2\EOT\153\SOH\DLE\DC1\n\+ \e\n\+ \\EOT\EOT\NUL\STX\STX\DC2\EOT\160\SOH\EOT\CAN\SUBW\n\+ \Number of millisatoshis to send.\n\+ \\n\+ \The fields amt and amt_msat are mutually exclusive.\n\+ \\n\+ \\r\n\+ \\ENQ\EOT\NUL\STX\STX\ENQ\DC2\EOT\160\SOH\EOT\t\n\+ \\r\n\+ \\ENQ\EOT\NUL\STX\STX\SOH\DC2\EOT\160\SOH\n\+ \\DC2\n\+ \\r\n\+ \\ENQ\EOT\NUL\STX\STX\ETX\DC2\EOT\160\SOH\NAK\ETB\n\+ \9\n\+ \\EOT\EOT\NUL\STX\ETX\DC2\EOT\163\SOH\EOT\ESC\SUB+ The hash to use within the payment's HTLC\n\+ \\n\+ \\r\n\+ \\ENQ\EOT\NUL\STX\ETX\ENQ\DC2\EOT\163\SOH\EOT\t\n\+ \\r\n\+ \\ENQ\EOT\NUL\STX\ETX\SOH\DC2\EOT\163\SOH\n\+ \\SYN\n\+ \\r\n\+ \\ENQ\EOT\NUL\STX\ETX\ETX\DC2\EOT\163\SOH\EM\SUB\n\+ \q\n\+ \\EOT\EOT\NUL\STX\EOT\DC2\EOT\169\SOH\EOT\US\SUBc\n\+ \The CLTV delta from the current height that should be used to set the\n\+ \timelock for the final hop.\n\+ \\n\+ \\r\n\+ \\ENQ\EOT\NUL\STX\EOT\ENQ\DC2\EOT\169\SOH\EOT\t\n\+ \\r\n\+ \\ENQ\EOT\NUL\STX\EOT\SOH\DC2\EOT\169\SOH\n\+ \\SUB\n\+ \\r\n\+ \\ENQ\EOT\NUL\STX\EOT\ETX\DC2\EOT\169\SOH\GS\RS\n\+ \Y\n\+ \\EOT\EOT\NUL\STX\ENQ\DC2\EOT\172\SOH\EOT\FS\SUBK An optional payment addr to be included within the last hop of the route.\n\+ \\n\+ \\r\n\+ \\ENQ\EOT\NUL\STX\ENQ\ENQ\DC2\EOT\172\SOH\EOT\t\n\+ \\r\n\+ \\ENQ\EOT\NUL\STX\ENQ\SOH\DC2\EOT\172\SOH\n\+ \\SYN\n\+ \\r\n\+ \\ENQ\EOT\NUL\STX\ENQ\ETX\DC2\EOT\172\SOH\EM\ESC\n\+ \\137\ETX\n\+ \\EOT\EOT\NUL\STX\ACK\DC2\EOT\181\SOH\EOT\US\SUB\250\STX\n\+ \A bare-bones invoice for a payment within the Lightning Network. With the\n\+ \details of the invoice, the sender has all the data necessary to send a\n\+ \payment to the recipient. The amount in the payment request may be zero. In\n\+ \that case it is required to set the amt field as well. If no payment request\n\+ \is specified, the following fields are required: dest, amt and payment_hash.\n\+ \\n\+ \\r\n\+ \\ENQ\EOT\NUL\STX\ACK\ENQ\DC2\EOT\181\SOH\EOT\n\+ \\n\+ \\r\n\+ \\ENQ\EOT\NUL\STX\ACK\SOH\DC2\EOT\181\SOH\v\SUB\n\+ \\r\n\+ \\ENQ\EOT\NUL\STX\ACK\ETX\DC2\EOT\181\SOH\GS\RS\n\+ \\130\STX\n\+ \\EOT\EOT\NUL\STX\a\DC2\EOT\189\SOH\EOT\RS\SUB\243\SOH\n\+ \An upper limit on the amount of time we should spend when attempting to\n\+ \fulfill the payment. This is expressed in seconds. If we cannot make a\n\+ \successful payment within this time frame, an error will be returned.\n\+ \This field must be non-zero.\n\+ \\n\+ \\r\n\+ \\ENQ\EOT\NUL\STX\a\ENQ\DC2\EOT\189\SOH\EOT\t\n\+ \\r\n\+ \\ENQ\EOT\NUL\STX\a\SOH\DC2\EOT\189\SOH\n\+ \\EM\n\+ \\r\n\+ \\ENQ\EOT\NUL\STX\a\ETX\DC2\EOT\189\SOH\FS\GS\n\+ \\129\ETX\n\+ \\EOT\EOT\NUL\STX\b\DC2\EOT\199\SOH\EOT\FS\SUB\242\STX\n\+ \The maximum number of satoshis that will be paid as a fee of the payment.\n\+ \If this field is left to the default value of 0, only zero-fee routes will\n\+ \be considered. This usually means single hop routes connecting directly to\n\+ \the destination. To send the payment without a fee limit, use max int here.\n\+ \\n\+ \The fields fee_limit_sat and fee_limit_msat are mutually exclusive.\n\+ \\n\+ \\r\n\+ \\ENQ\EOT\NUL\STX\b\ENQ\DC2\EOT\199\SOH\EOT\t\n\+ \\r\n\+ \\ENQ\EOT\NUL\STX\b\SOH\DC2\EOT\199\SOH\n\+ \\ETB\n\+ \\r\n\+ \\ENQ\EOT\NUL\STX\b\ETX\DC2\EOT\199\SOH\SUB\ESC\n\+ \\134\ETX\n\+ \\EOT\EOT\NUL\STX\t\DC2\EOT\210\SOH\EOT\RS\SUB\247\STX\n\+ \The maximum number of millisatoshis that will be paid as a fee of the\n\+ \payment. If this field is left to the default value of 0, only zero-fee\n\+ \routes will be considered. This usually means single hop routes connecting\n\+ \directly to the destination. To send the payment without a fee limit, use\n\+ \max int here.\n\+ \\n\+ \The fields fee_limit_sat and fee_limit_msat are mutually exclusive.\n\+ \\n\+ \\r\n\+ \\ENQ\EOT\NUL\STX\t\ENQ\DC2\EOT\210\SOH\EOT\t\n\+ \\r\n\+ \\ENQ\EOT\NUL\STX\t\SOH\DC2\EOT\210\SOH\n\+ \\CAN\n\+ \\r\n\+ \\ENQ\EOT\NUL\STX\t\ETX\DC2\EOT\210\SOH\ESC\GS\n\+ \\187\SOH\n\+ \\EOT\EOT\NUL\STX\n\+ \\DC2\EOT\217\SOH\EOTH\SUB\172\SOH\n\+ \Deprecated, use outgoing_chan_ids. The channel id of the channel that must\n\+ \be taken to the first hop. If zero, any channel may be used (unless\n\+ \outgoing_chan_ids are set).\n\+ \\n\+ \\r\n\+ \\ENQ\EOT\NUL\STX\n\+ \\ENQ\DC2\EOT\217\SOH\EOT\n\+ \\n\+ \\r\n\+ \\ENQ\EOT\NUL\STX\n\+ \\SOH\DC2\EOT\217\SOH\v\ESC\n\+ \\r\n\+ \\ENQ\EOT\NUL\STX\n\+ \\ETX\DC2\EOT\217\SOH\RS\US\n\+ \\r\n\+ \\ENQ\EOT\NUL\STX\n\+ \\b\DC2\EOT\217\SOH G\n\+ \\SO\n\+ \\ACK\EOT\NUL\STX\n\+ \\b\ACK\DC2\EOT\217\SOH!3\n\+ \\SO\n\+ \\ACK\EOT\NUL\STX\n\+ \\b\ETX\DC2\EOT\217\SOH5F\n\+ \q\n\+ \\EOT\EOT\NUL\STX\v\DC2\EOT\223\SOH\EOT+\SUBc\n\+ \The channel ids of the channels are allowed for the first hop. If empty,\n\+ \any channel may be used.\n\+ \\n\+ \\r\n\+ \\ENQ\EOT\NUL\STX\v\EOT\DC2\EOT\223\SOH\EOT\f\n\+ \\r\n\+ \\ENQ\EOT\NUL\STX\v\ENQ\DC2\EOT\223\SOH\r\DC3\n\+ \\r\n\+ \\ENQ\EOT\NUL\STX\v\SOH\DC2\EOT\223\SOH\DC4%\n\+ \\r\n\+ \\ENQ\EOT\NUL\STX\v\ETX\DC2\EOT\223\SOH(*\n\+ \W\n\+ \\EOT\EOT\NUL\STX\f\DC2\EOT\228\SOH\EOT\US\SUBI\n\+ \The pubkey of the last hop of the route. If empty, any hop may be used.\n\+ \\n\+ \\r\n\+ \\ENQ\EOT\NUL\STX\f\ENQ\DC2\EOT\228\SOH\EOT\t\n\+ \\r\n\+ \\ENQ\EOT\NUL\STX\f\SOH\DC2\EOT\228\SOH\n\+ \\EM\n\+ \\r\n\+ \\ENQ\EOT\NUL\STX\f\ETX\DC2\EOT\228\SOH\FS\RS\n\+ \\185\SOH\n\+ \\EOT\EOT\NUL\STX\r\DC2\EOT\235\SOH\EOT\EM\SUB\170\SOH\n\+ \An optional maximum total time lock for the route. This should not exceed\n\+ \lnd's `--max-cltv-expiry` setting. If zero, then the value of\n\+ \`--max-cltv-expiry` is enforced.\n\+ \\n\+ \\r\n\+ \\ENQ\EOT\NUL\STX\r\ENQ\DC2\EOT\235\SOH\EOT\t\n\+ \\r\n\+ \\ENQ\EOT\NUL\STX\r\SOH\DC2\EOT\235\SOH\n\+ \\DC4\n\+ \\r\n\+ \\ENQ\EOT\NUL\STX\r\ETX\DC2\EOT\235\SOH\ETB\CAN\n\+ \W\n\+ \\EOT\EOT\NUL\STX\SO\DC2\EOT\240\SOH\EOT.\SUBI\n\+ \Optional route hints to reach the destination through private channels.\n\+ \\n\+ \\r\n\+ \\ENQ\EOT\NUL\STX\SO\EOT\DC2\EOT\240\SOH\EOT\f\n\+ \\r\n\+ \\ENQ\EOT\NUL\STX\SO\ACK\DC2\EOT\240\SOH\r\FS\n\+ \\r\n\+ \\ENQ\EOT\NUL\STX\SO\SOH\DC2\EOT\240\SOH\GS(\n\+ \\r\n\+ \\ENQ\EOT\NUL\STX\SO\ETX\DC2\EOT\240\SOH+-\n\+ \\204\STX\n\+ \\EOT\EOT\NUL\STX\SI\DC2\EOT\249\SOH\EOT0\SUB\189\STX\n\+ \An optional field that can be used to pass an arbitrary set of TLV records\n\+ \to a peer which understands the new records. This can be used to pass\n\+ \application specific data during the payment attempt. Record types are\n\+ \required to be in the custom range >= 65536. When using REST, the values\n\+ \must be encoded as base64.\n\+ \\n\+ \\r\n\+ \\ENQ\EOT\NUL\STX\SI\ACK\DC2\EOT\249\SOH\EOT\SYN\n\+ \\r\n\+ \\ENQ\EOT\NUL\STX\SI\SOH\DC2\EOT\249\SOH\ETB*\n\+ \\r\n\+ \\ENQ\EOT\NUL\STX\SI\ETX\DC2\EOT\249\SOH-/\n\+ \@\n\+ \\EOT\EOT\NUL\STX\DLE\DC2\EOT\252\SOH\EOT!\SUB2 If set, circular payments to self are permitted.\n\+ \\n\+ \\r\n\+ \\ENQ\EOT\NUL\STX\DLE\ENQ\DC2\EOT\252\SOH\EOT\b\n\+ \\r\n\+ \\ENQ\EOT\NUL\STX\DLE\SOH\DC2\EOT\252\SOH\t\ESC\n\+ \\r\n\+ \\ENQ\EOT\NUL\STX\DLE\ETX\DC2\EOT\252\SOH\RS \n\+ \\195\STX\n\+ \\EOT\EOT\NUL\STX\DC1\DC2\EOT\133\STX\EOT1\SUB\180\STX\n\+ \Features assumed to be supported by the final node. All transitive feature\n\+ \dependencies must also be set properly. For a given feature bit pair, either\n\+ \optional or remote may be set, but not both. If this field is nil or empty,\n\+ \the router will try to load destination features from the graph as a\n\+ \fallback.\n\+ \\n\+ \\r\n\+ \\ENQ\EOT\NUL\STX\DC1\EOT\DC2\EOT\133\STX\EOT\f\n\+ \\r\n\+ \\ENQ\EOT\NUL\STX\DC1\ACK\DC2\EOT\133\STX\r\GS\n\+ \\r\n\+ \\ENQ\EOT\NUL\STX\DC1\SOH\DC2\EOT\133\STX\RS+\n\+ \\r\n\+ \\ENQ\EOT\NUL\STX\DC1\ETX\DC2\EOT\133\STX.0\n\+ \c\n\+ \\EOT\EOT\NUL\STX\DC2\DC2\EOT\139\STX\EOT\SUB\SUBU\n\+ \The maximum number of partial payments that may be use to complete the full\n\+ \amount.\n\+ \\n\+ \\r\n\+ \\ENQ\EOT\NUL\STX\DC2\ENQ\DC2\EOT\139\STX\EOT\n\+ \\n\+ \\r\n\+ \\ENQ\EOT\NUL\STX\DC2\SOH\DC2\EOT\139\STX\v\DC4\n\+ \\r\n\+ \\ENQ\EOT\NUL\STX\DC2\ETX\DC2\EOT\139\STX\ETB\EM\n\+ \\151\SOH\n\+ \\EOT\EOT\NUL\STX\DC3\DC2\EOT\145\STX\EOT\"\SUB\136\SOH\n\+ \If set, only the final payment update is streamed back. Intermediate updates\n\+ \that show which htlcs are still in flight are suppressed.\n\+ \\n\+ \\r\n\+ \\ENQ\EOT\NUL\STX\DC3\ENQ\DC2\EOT\145\STX\EOT\b\n\+ \\r\n\+ \\ENQ\EOT\NUL\STX\DC3\SOH\DC2\EOT\145\STX\t\FS\n\+ \\r\n\+ \\ENQ\EOT\NUL\STX\DC3\ETX\DC2\EOT\145\STX\US!\n\+ \\141\STX\n\+ \\EOT\EOT\NUL\STX\DC4\DC2\EOT\153\STX\EOT$\SUB\254\SOH\n\+ \The largest payment split that should be attempted when making a payment if\n\+ \splitting is necessary. Setting this value will effectively cause lnd to\n\+ \split more aggressively, vs only when it thinks it needs to. Note that this\n\+ \value is in milli-satoshis.\n\+ \\n\+ \\r\n\+ \\ENQ\EOT\NUL\STX\DC4\ENQ\DC2\EOT\153\STX\EOT\n\+ \\n\+ \\r\n\+ \\ENQ\EOT\NUL\STX\DC4\SOH\DC2\EOT\153\STX\v\RS\n\+ \\r\n\+ \\ENQ\EOT\NUL\STX\DC4\ETX\DC2\EOT\153\STX!#\n\+ \9\n\+ \\EOT\EOT\NUL\STX\NAK\DC2\EOT\158\STX\EOT\DC2\SUB+\n\+ \If set, an AMP-payment will be attempted.\n\+ \\n\+ \\r\n\+ \\ENQ\EOT\NUL\STX\NAK\ENQ\DC2\EOT\158\STX\EOT\b\n\+ \\r\n\+ \\ENQ\EOT\NUL\STX\NAK\SOH\DC2\EOT\158\STX\t\f\n\+ \\r\n\+ \\ENQ\EOT\NUL\STX\NAK\ETX\DC2\EOT\158\STX\SI\DC1\n\+ \\f\n\+ \\STX\EOT\SOH\DC2\ACK\161\STX\NUL\170\STX\SOH\n\+ \\v\n\+ \\ETX\EOT\SOH\SOH\DC2\EOT\161\STX\b\ESC\n\+ \3\n\+ \\EOT\EOT\SOH\STX\NUL\DC2\EOT\163\STX\EOT\ESC\SUB% The hash of the payment to look up.\n\+ \\n\+ \\r\n\+ \\ENQ\EOT\SOH\STX\NUL\ENQ\DC2\EOT\163\STX\EOT\t\n\+ \\r\n\+ \\ENQ\EOT\SOH\STX\NUL\SOH\DC2\EOT\163\STX\n\+ \\SYN\n\+ \\r\n\+ \\ENQ\EOT\SOH\STX\NUL\ETX\DC2\EOT\163\STX\EM\SUB\n\+ \\151\SOH\n\+ \\EOT\EOT\SOH\STX\SOH\DC2\EOT\169\STX\EOT!\SUB\136\SOH\n\+ \If set, only the final payment update is streamed back. Intermediate updates\n\+ \that show which htlcs are still in flight are suppressed.\n\+ \\n\+ \\r\n\+ \\ENQ\EOT\SOH\STX\SOH\ENQ\DC2\EOT\169\STX\EOT\b\n\+ \\r\n\+ \\ENQ\EOT\SOH\STX\SOH\SOH\DC2\EOT\169\STX\t\FS\n\+ \\r\n\+ \\ENQ\EOT\SOH\STX\SOH\ETX\DC2\EOT\169\STX\US \n\+ \\f\n\+ \\STX\EOT\STX\DC2\ACK\172\STX\NUL\182\STX\SOH\n\+ \\v\n\+ \\ETX\EOT\STX\SOH\DC2\EOT\172\STX\b\ETB\n\+ \M\n\+ \\EOT\EOT\STX\STX\NUL\DC2\EOT\176\STX\EOT\DC3\SUB?\n\+ \The destination once wishes to obtain a routing fee quote to.\n\+ \\n\+ \\r\n\+ \\ENQ\EOT\STX\STX\NUL\ENQ\DC2\EOT\176\STX\EOT\t\n\+ \\r\n\+ \\ENQ\EOT\STX\STX\NUL\SOH\DC2\EOT\176\STX\n\+ \\SO\n\+ \\r\n\+ \\ENQ\EOT\STX\STX\NUL\ETX\DC2\EOT\176\STX\DC1\DC2\n\+ \H\n\+ \\EOT\EOT\STX\STX\SOH\DC2\EOT\181\STX\EOT\SYN\SUB:\n\+ \The amount one wishes to send to the target destination.\n\+ \\n\+ \\r\n\+ \\ENQ\EOT\STX\STX\SOH\ENQ\DC2\EOT\181\STX\EOT\t\n\+ \\r\n\+ \\ENQ\EOT\STX\STX\SOH\SOH\DC2\EOT\181\STX\n\+ \\DC1\n\+ \\r\n\+ \\ENQ\EOT\STX\STX\SOH\ETX\DC2\EOT\181\STX\DC4\NAK\n\+ \\f\n\+ \\STX\EOT\ETX\DC2\ACK\184\STX\NUL\197\STX\SOH\n\+ \\v\n\+ \\ETX\EOT\ETX\SOH\DC2\EOT\184\STX\b\CAN\n\+ \}\n\+ \\EOT\EOT\ETX\STX\NUL\DC2\EOT\189\STX\EOT\US\SUBo\n\+ \A lower bound of the estimated fee to the target destination within the\n\+ \network, expressed in milli-satoshis.\n\+ \\n\+ \\r\n\+ \\ENQ\EOT\ETX\STX\NUL\ENQ\DC2\EOT\189\STX\EOT\t\n\+ \\r\n\+ \\ENQ\EOT\ETX\STX\NUL\SOH\DC2\EOT\189\STX\n\+ \\SUB\n\+ \\r\n\+ \\ENQ\EOT\ETX\STX\NUL\ETX\DC2\EOT\189\STX\GS\RS\n\+ \\174\SOH\n\+ \\EOT\EOT\ETX\STX\SOH\DC2\EOT\196\STX\EOT\RS\SUB\159\SOH\n\+ \An estimate of the worst case time delay that can occur. Note that callers\n\+ \will still need to factor in the final CLTV delta of the last hop into this\n\+ \value.\n\+ \\n\+ \\r\n\+ \\ENQ\EOT\ETX\STX\SOH\ENQ\DC2\EOT\196\STX\EOT\t\n\+ \\r\n\+ \\ENQ\EOT\ETX\STX\SOH\SOH\DC2\EOT\196\STX\n\+ \\EM\n\+ \\r\n\+ \\ENQ\EOT\ETX\STX\SOH\ETX\DC2\EOT\196\STX\FS\GS\n\+ \\f\n\+ \\STX\EOT\EOT\DC2\ACK\199\STX\NUL\205\STX\SOH\n\+ \\v\n\+ \\ETX\EOT\EOT\SOH\DC2\EOT\199\STX\b\SUB\n\+ \5\n\+ \\EOT\EOT\EOT\STX\NUL\DC2\EOT\201\STX\EOT\ESC\SUB' The payment hash to use for the HTLC.\n\+ \\n\+ \\r\n\+ \\ENQ\EOT\EOT\STX\NUL\ENQ\DC2\EOT\201\STX\EOT\t\n\+ \\r\n\+ \\ENQ\EOT\EOT\STX\NUL\SOH\DC2\EOT\201\STX\n\+ \\SYN\n\+ \\r\n\+ \\ENQ\EOT\EOT\STX\NUL\ETX\DC2\EOT\201\STX\EM\SUB\n\+ \M\n\+ \\EOT\EOT\EOT\STX\SOH\DC2\EOT\204\STX\EOT\SUB\SUB? Route that should be used to attempt to complete the payment.\n\+ \\n\+ \\r\n\+ \\ENQ\EOT\EOT\STX\SOH\ACK\DC2\EOT\204\STX\EOT\SI\n\+ \\r\n\+ \\ENQ\EOT\EOT\STX\SOH\SOH\DC2\EOT\204\STX\DLE\NAK\n\+ \\r\n\+ \\ENQ\EOT\EOT\STX\SOH\ETX\DC2\EOT\204\STX\CAN\EM\n\+ \\f\n\+ \\STX\EOT\ENQ\DC2\ACK\207\STX\NUL\213\STX\SOH\n\+ \\v\n\+ \\ETX\EOT\ENQ\SOH\DC2\EOT\207\STX\b\ESC\n\+ \<\n\+ \\EOT\EOT\ENQ\STX\NUL\DC2\EOT\209\STX\EOT\ETB\SUB. The preimage obtained by making the payment.\n\+ \\n\+ \\r\n\+ \\ENQ\EOT\ENQ\STX\NUL\ENQ\DC2\EOT\209\STX\EOT\t\n\+ \\r\n\+ \\ENQ\EOT\ENQ\STX\NUL\SOH\DC2\EOT\209\STX\n\+ \\DC2\n\+ \\r\n\+ \\ENQ\EOT\ENQ\STX\NUL\ETX\DC2\EOT\209\STX\NAK\SYN\n\+ \?\n\+ \\EOT\EOT\ENQ\STX\SOH\DC2\EOT\212\STX\EOT\RS\SUB1 The failure message in case the payment failed.\n\+ \\n\+ \\r\n\+ \\ENQ\EOT\ENQ\STX\SOH\ACK\DC2\EOT\212\STX\EOT\DC1\n\+ \\r\n\+ \\ENQ\EOT\ENQ\STX\SOH\SOH\DC2\EOT\212\STX\DC2\EM\n\+ \\r\n\+ \\ENQ\EOT\ENQ\STX\SOH\ETX\DC2\EOT\212\STX\FS\GS\n\+ \\f\n\+ \\STX\EOT\ACK\DC2\ACK\215\STX\NUL\216\STX\SOH\n\+ \\v\n\+ \\ETX\EOT\ACK\SOH\DC2\EOT\215\STX\b\"\n\+ \\f\n\+ \\STX\EOT\a\DC2\ACK\218\STX\NUL\219\STX\SOH\n\+ \\v\n\+ \\ETX\EOT\a\SOH\DC2\EOT\218\STX\b#\n\+ \\f\n\+ \\STX\EOT\b\DC2\ACK\221\STX\NUL\222\STX\SOH\n\+ \\v\n\+ \\ETX\EOT\b\SOH\DC2\EOT\221\STX\b\"\n\+ \K\n\+ \\STX\EOT\t\DC2\ACK\225\STX\NUL\230\STX\SOH\SUB= QueryMissionControlResponse contains mission control state.\n\+ \\n\+ \\v\n\+ \\ETX\EOT\t\SOH\DC2\EOT\225\STX\b#\n\+ \\v\n\+ \\ETX\EOT\t\t\DC2\EOT\226\STX\EOT\SI\n\+ \\f\n\+ \\EOT\EOT\t\t\NUL\DC2\EOT\226\STX\r\SO\n\+ \\r\n\+ \\ENQ\EOT\t\t\NUL\SOH\DC2\EOT\226\STX\r\SO\n\+ \\r\n\+ \\ENQ\EOT\t\t\NUL\STX\DC2\EOT\226\STX\r\SO\n\+ \6\n\+ \\EOT\EOT\t\STX\NUL\DC2\EOT\229\STX\EOT#\SUB( Node pair-level mission control state.\n\+ \\n\+ \\r\n\+ \\ENQ\EOT\t\STX\NUL\EOT\DC2\EOT\229\STX\EOT\f\n\+ \\r\n\+ \\ENQ\EOT\t\STX\NUL\ACK\DC2\EOT\229\STX\r\CAN\n\+ \\r\n\+ \\ENQ\EOT\t\STX\NUL\SOH\DC2\EOT\229\STX\EM\RS\n\+ \\r\n\+ \\ENQ\EOT\t\STX\NUL\ETX\DC2\EOT\229\STX!\"\n\+ \\f\n\+ \\STX\EOT\n\+ \\DC2\ACK\232\STX\NUL\235\STX\SOH\n\+ \\v\n\+ \\ETX\EOT\n\+ \\SOH\DC2\EOT\232\STX\b$\n\+ \E\n\+ \\EOT\EOT\n\+ \\STX\NUL\DC2\EOT\234\STX\EOT#\SUB7 Node pair-level mission control state to be imported.\n\+ \\n\+ \\r\n\+ \\ENQ\EOT\n\+ \\STX\NUL\EOT\DC2\EOT\234\STX\EOT\f\n\+ \\r\n\+ \\ENQ\EOT\n\+ \\STX\NUL\ACK\DC2\EOT\234\STX\r\CAN\n\+ \\r\n\+ \\ENQ\EOT\n\+ \\STX\NUL\SOH\DC2\EOT\234\STX\EM\RS\n\+ \\r\n\+ \\ENQ\EOT\n\+ \\STX\NUL\ETX\DC2\EOT\234\STX!\"\n\+ \\f\n\+ \\STX\EOT\v\DC2\ACK\237\STX\NUL\238\STX\SOH\n\+ \\v\n\+ \\ETX\EOT\v\SOH\DC2\EOT\237\STX\b%\n\+ \Z\n\+ \\STX\EOT\f\DC2\ACK\241\STX\NUL\251\STX\SOH\SUBL PairHistory contains the mission control state for a particular node pair.\n\+ \\n\+ \\v\n\+ \\ETX\EOT\f\SOH\DC2\EOT\241\STX\b\DC3\n\+ \3\n\+ \\EOT\EOT\f\STX\NUL\DC2\EOT\243\STX\EOT\CAN\SUB% The source node pubkey of the pair.\n\+ \\n\+ \\r\n\+ \\ENQ\EOT\f\STX\NUL\ENQ\DC2\EOT\243\STX\EOT\t\n\+ \\r\n\+ \\ENQ\EOT\f\STX\NUL\SOH\DC2\EOT\243\STX\n\+ \\DC3\n\+ \\r\n\+ \\ENQ\EOT\f\STX\NUL\ETX\DC2\EOT\243\STX\SYN\ETB\n\+ \8\n\+ \\EOT\EOT\f\STX\SOH\DC2\EOT\246\STX\EOT\SYN\SUB* The destination node pubkey of the pair.\n\+ \\n\+ \\r\n\+ \\ENQ\EOT\f\STX\SOH\ENQ\DC2\EOT\246\STX\EOT\t\n\+ \\r\n\+ \\ENQ\EOT\f\STX\SOH\SOH\DC2\EOT\246\STX\n\+ \\DC1\n\+ \\r\n\+ \\ENQ\EOT\f\STX\SOH\ETX\DC2\EOT\246\STX\DC4\NAK\n\+ \\v\n\+ \\ETX\EOT\f\t\DC2\EOT\248\STX\EOT\CAN\n\+ \\f\n\+ \\EOT\EOT\f\t\NUL\DC2\EOT\248\STX\r\SO\n\+ \\r\n\+ \\ENQ\EOT\f\t\NUL\SOH\DC2\EOT\248\STX\r\SO\n\+ \\r\n\+ \\ENQ\EOT\f\t\NUL\STX\DC2\EOT\248\STX\r\SO\n\+ \\f\n\+ \\EOT\EOT\f\t\SOH\DC2\EOT\248\STX\DLE\DC1\n\+ \\r\n\+ \\ENQ\EOT\f\t\SOH\SOH\DC2\EOT\248\STX\DLE\DC1\n\+ \\r\n\+ \\ENQ\EOT\f\t\SOH\STX\DC2\EOT\248\STX\DLE\DC1\n\+ \\f\n\+ \\EOT\EOT\f\t\STX\DC2\EOT\248\STX\DC3\DC4\n\+ \\r\n\+ \\ENQ\EOT\f\t\STX\SOH\DC2\EOT\248\STX\DC3\DC4\n\+ \\r\n\+ \\ENQ\EOT\f\t\STX\STX\DC2\EOT\248\STX\DC3\DC4\n\+ \\f\n\+ \\EOT\EOT\f\t\ETX\DC2\EOT\248\STX\SYN\ETB\n\+ \\r\n\+ \\ENQ\EOT\f\t\ETX\SOH\DC2\EOT\248\STX\SYN\ETB\n\+ \\r\n\+ \\ENQ\EOT\f\t\ETX\STX\DC2\EOT\248\STX\SYN\ETB\n\+ \\f\n\+ \\EOT\EOT\f\STX\STX\DC2\EOT\250\STX\EOT\EM\n\+ \\r\n\+ \\ENQ\EOT\f\STX\STX\ACK\DC2\EOT\250\STX\EOT\f\n\+ \\r\n\+ \\ENQ\EOT\f\STX\STX\SOH\DC2\EOT\250\STX\r\DC4\n\+ \\r\n\+ \\ENQ\EOT\f\STX\STX\ETX\DC2\EOT\250\STX\ETB\CAN\n\+ \\f\n\+ \\STX\EOT\r\DC2\ACK\253\STX\NUL\151\ETX\SOH\n\+ \\v\n\+ \\ETX\EOT\r\SOH\DC2\EOT\253\STX\b\DLE\n\+ \%\n\+ \\EOT\EOT\r\STX\NUL\DC2\EOT\255\STX\EOT\CAN\SUB\ETB Time of last failure.\n\+ \\n\+ \\r\n\+ \\ENQ\EOT\r\STX\NUL\ENQ\DC2\EOT\255\STX\EOT\t\n\+ \\r\n\+ \\ENQ\EOT\r\STX\NUL\SOH\DC2\EOT\255\STX\n\+ \\DC3\n\+ \\r\n\+ \\ENQ\EOT\r\STX\NUL\ETX\DC2\EOT\255\STX\SYN\ETB\n\+ \\140\SOH\n\+ \\EOT\EOT\r\STX\SOH\DC2\EOT\133\ETX\EOT\ESC\SUB~\n\+ \Lowest amount that failed to forward rounded to whole sats. This may be\n\+ \set to zero if the failure is independent of amount.\n\+ \\n\+ \\r\n\+ \\ENQ\EOT\r\STX\SOH\ENQ\DC2\EOT\133\ETX\EOT\t\n\+ \\r\n\+ \\ENQ\EOT\r\STX\SOH\SOH\DC2\EOT\133\ETX\n\+ \\SYN\n\+ \\r\n\+ \\ENQ\EOT\r\STX\SOH\ETX\DC2\EOT\133\ETX\EM\SUB\n\+ \\131\SOH\n\+ \\EOT\EOT\r\STX\STX\DC2\EOT\139\ETX\EOT\FS\SUBu\n\+ \Lowest amount that failed to forward in millisats. This may be\n\+ \set to zero if the failure is independent of amount.\n\+ \\n\+ \\r\n\+ \\ENQ\EOT\r\STX\STX\ENQ\DC2\EOT\139\ETX\EOT\t\n\+ \\r\n\+ \\ENQ\EOT\r\STX\STX\SOH\DC2\EOT\139\ETX\n\+ \\ETB\n\+ \\r\n\+ \\ENQ\EOT\r\STX\STX\ETX\DC2\EOT\139\ETX\SUB\ESC\n\+ \\v\n\+ \\ETX\EOT\r\t\DC2\EOT\141\ETX\EOT\SI\n\+ \\f\n\+ \\EOT\EOT\r\t\NUL\DC2\EOT\141\ETX\r\SO\n\+ \\r\n\+ \\ENQ\EOT\r\t\NUL\SOH\DC2\EOT\141\ETX\r\SO\n\+ \\r\n\+ \\ENQ\EOT\r\t\NUL\STX\DC2\EOT\141\ETX\r\SO\n\+ \%\n\+ \\EOT\EOT\r\STX\ETX\DC2\EOT\144\ETX\EOT\ESC\SUB\ETB Time of last success.\n\+ \\n\+ \\r\n\+ \\ENQ\EOT\r\STX\ETX\ENQ\DC2\EOT\144\ETX\EOT\t\n\+ \\r\n\+ \\ENQ\EOT\r\STX\ETX\SOH\DC2\EOT\144\ETX\n\+ \\SYN\n\+ \\r\n\+ \\ENQ\EOT\r\STX\ETX\ETX\DC2\EOT\144\ETX\EM\SUB\n\+ \X\n\+ \\EOT\EOT\r\STX\EOT\DC2\EOT\147\ETX\EOT\RS\SUBJ Highest amount that we could successfully forward rounded to whole sats.\n\+ \\n\+ \\r\n\+ \\ENQ\EOT\r\STX\EOT\ENQ\DC2\EOT\147\ETX\EOT\t\n\+ \\r\n\+ \\ENQ\EOT\r\STX\EOT\SOH\DC2\EOT\147\ETX\n\+ \\EM\n\+ \\r\n\+ \\ENQ\EOT\r\STX\EOT\ETX\DC2\EOT\147\ETX\FS\GS\n\+ \O\n\+ \\EOT\EOT\r\STX\ENQ\DC2\EOT\150\ETX\EOT\US\SUBA Highest amount that we could successfully forward in millisats.\n\+ \\n\+ \\r\n\+ \\ENQ\EOT\r\STX\ENQ\ENQ\DC2\EOT\150\ETX\EOT\t\n\+ \\r\n\+ \\ENQ\EOT\r\STX\ENQ\SOH\DC2\EOT\150\ETX\n\+ \\SUB\n\+ \\r\n\+ \\ENQ\EOT\r\STX\ENQ\ETX\DC2\EOT\150\ETX\GS\RS\n\+ \\f\n\+ \\STX\EOT\SO\DC2\ACK\153\ETX\NUL\154\ETX\SOH\n\+ \\v\n\+ \\ETX\EOT\SO\SOH\DC2\EOT\153\ETX\b&\n\+ \\f\n\+ \\STX\EOT\SI\DC2\ACK\156\ETX\NUL\161\ETX\SOH\n\+ \\v\n\+ \\ETX\EOT\SI\SOH\DC2\EOT\156\ETX\b'\n\+ \:\n\+ \\EOT\EOT\SI\STX\NUL\DC2\EOT\160\ETX\EOT$\SUB,\n\+ \Mission control's currently active config.\n\+ \\n\+ \\r\n\+ \\ENQ\EOT\SI\STX\NUL\ACK\DC2\EOT\160\ETX\EOT\CAN\n\+ \\r\n\+ \\ENQ\EOT\SI\STX\NUL\SOH\DC2\EOT\160\ETX\EM\US\n\+ \\r\n\+ \\ENQ\EOT\SI\STX\NUL\ETX\DC2\EOT\160\ETX\"#\n\+ \\f\n\+ \\STX\EOT\DLE\DC2\ACK\163\ETX\NUL\169\ETX\SOH\n\+ \\v\n\+ \\ETX\EOT\DLE\SOH\DC2\EOT\163\ETX\b&\n\+ \\131\SOH\n\+ \\EOT\EOT\DLE\STX\NUL\DC2\EOT\168\ETX\EOT$\SUBu\n\+ \The config to set for mission control. Note that all values *must* be set,\n\+ \because the full config will be applied.\n\+ \\n\+ \\r\n\+ \\ENQ\EOT\DLE\STX\NUL\ACK\DC2\EOT\168\ETX\EOT\CAN\n\+ \\r\n\+ \\ENQ\EOT\DLE\STX\NUL\SOH\DC2\EOT\168\ETX\EM\US\n\+ \\r\n\+ \\ENQ\EOT\DLE\STX\NUL\ETX\DC2\EOT\168\ETX\"#\n\+ \\f\n\+ \\STX\EOT\DC1\DC2\ACK\171\ETX\NUL\172\ETX\SOH\n\+ \\v\n\+ \\ETX\EOT\DC1\SOH\DC2\EOT\171\ETX\b'\n\+ \\f\n\+ \\STX\EOT\DC2\DC2\ACK\174\ETX\NUL\212\ETX\SOH\n\+ \\v\n\+ \\ETX\EOT\DC2\SOH\DC2\EOT\174\ETX\b\FS\n\+ \\217\STX\n\+ \\EOT\EOT\DC2\STX\NUL\DC2\EOT\182\ETX\EOT!\SUB\202\STX\n\+ \The amount of time mission control will take to restore a penalized node\n\+ \or channel back to 50% success probability, expressed in seconds. Setting\n\+ \this value to a higher value will penalize failures for longer, making\n\+ \mission control less likely to route through nodes and channels that we\n\+ \have previously recorded failures for.\n\+ \\n\+ \\r\n\+ \\ENQ\EOT\DC2\STX\NUL\ENQ\DC2\EOT\182\ETX\EOT\n\+ \\n\+ \\r\n\+ \\ENQ\EOT\DC2\STX\NUL\SOH\DC2\EOT\182\ETX\v\FS\n\+ \\r\n\+ \\ENQ\EOT\DC2\STX\NUL\ETX\DC2\EOT\182\ETX\US \n\+ \\156\STX\n\+ \\EOT\EOT\DC2\STX\SOH\DC2\EOT\190\ETX\EOT\RS\SUB\141\STX\n\+ \The probability of success mission control should assign to hop in a route\n\+ \where it has no other information available. Higher values will make mission\n\+ \control more willing to try hops that we have no information about, lower\n\+ \values will discourage trying these hops.\n\+ \\n\+ \\r\n\+ \\ENQ\EOT\DC2\STX\SOH\ENQ\DC2\EOT\190\ETX\EOT\t\n\+ \\r\n\+ \\ENQ\EOT\DC2\STX\SOH\SOH\DC2\EOT\190\ETX\n\+ \\EM\n\+ \\r\n\+ \\ENQ\EOT\DC2\STX\SOH\ETX\DC2\EOT\190\ETX\FS\GS\n\+ \\253\STX\n\+ \\EOT\EOT\DC2\STX\STX\DC2\EOT\200\ETX\EOT\NAK\SUB\238\STX\n\+ \The importance that mission control should place on historical results,\n\+ \expressed as a value in [0;1]. Setting this value to 1 will ignore all\n\+ \historical payments and just use the hop probability to assess the\n\+ \probability of success for each hop. A zero value ignores hop probability\n\+ \completely and relies entirely on historical results, unless none are\n\+ \available.\n\+ \\n\+ \\r\n\+ \\ENQ\EOT\DC2\STX\STX\ENQ\DC2\EOT\200\ETX\EOT\t\n\+ \\r\n\+ \\ENQ\EOT\DC2\STX\STX\SOH\DC2\EOT\200\ETX\n\+ \\DLE\n\+ \\r\n\+ \\ENQ\EOT\DC2\STX\STX\ETX\DC2\EOT\200\ETX\DC3\DC4\n\+ \V\n\+ \\EOT\EOT\DC2\STX\ETX\DC2\EOT\205\ETX\EOT'\SUBH\n\+ \The maximum number of payment results that mission control will store.\n\+ \\n\+ \\r\n\+ \\ENQ\EOT\DC2\STX\ETX\ENQ\DC2\EOT\205\ETX\EOT\n\+ \\n\+ \\r\n\+ \\ENQ\EOT\DC2\STX\ETX\SOH\DC2\EOT\205\ETX\v\"\n\+ \\r\n\+ \\ENQ\EOT\DC2\STX\ETX\ETX\DC2\EOT\205\ETX%&\n\+ \\128\SOH\n\+ \\EOT\EOT\DC2\STX\EOT\DC2\EOT\211\ETX\EOT.\SUBr\n\+ \The minimum time that must have passed since the previously recorded failure\n\+ \before we raise the failure amount.\n\+ \\n\+ \\r\n\+ \\ENQ\EOT\DC2\STX\EOT\ENQ\DC2\EOT\211\ETX\EOT\n\+ \\n\+ \\r\n\+ \\ENQ\EOT\DC2\STX\EOT\SOH\DC2\EOT\211\ETX\v)\n\+ \\r\n\+ \\ENQ\EOT\DC2\STX\EOT\ETX\DC2\EOT\211\ETX,-\n\+ \\f\n\+ \\STX\EOT\DC3\DC2\ACK\214\ETX\NUL\223\ETX\SOH\n\+ \\v\n\+ \\ETX\EOT\DC3\SOH\DC2\EOT\214\ETX\b\US\n\+ \3\n\+ \\EOT\EOT\DC3\STX\NUL\DC2\EOT\216\ETX\EOT\CAN\SUB% The source node pubkey of the pair.\n\+ \\n\+ \\r\n\+ \\ENQ\EOT\DC3\STX\NUL\ENQ\DC2\EOT\216\ETX\EOT\t\n\+ \\r\n\+ \\ENQ\EOT\DC3\STX\NUL\SOH\DC2\EOT\216\ETX\n\+ \\DC3\n\+ \\r\n\+ \\ENQ\EOT\DC3\STX\NUL\ETX\DC2\EOT\216\ETX\SYN\ETB\n\+ \8\n\+ \\EOT\EOT\DC3\STX\SOH\DC2\EOT\219\ETX\EOT\SYN\SUB* The destination node pubkey of the pair.\n\+ \\n\+ \\r\n\+ \\ENQ\EOT\DC3\STX\SOH\ENQ\DC2\EOT\219\ETX\EOT\t\n\+ \\r\n\+ \\ENQ\EOT\DC3\STX\SOH\SOH\DC2\EOT\219\ETX\n\+ \\DC1\n\+ \\r\n\+ \\ENQ\EOT\DC3\STX\SOH\ETX\DC2\EOT\219\ETX\DC4\NAK\n\+ \@\n\+ \\EOT\EOT\DC3\STX\STX\DC2\EOT\222\ETX\EOT\ETB\SUB2 The amount for which to calculate a probability.\n\+ \\n\+ \\r\n\+ \\ENQ\EOT\DC3\STX\STX\ENQ\DC2\EOT\222\ETX\EOT\t\n\+ \\r\n\+ \\ENQ\EOT\DC3\STX\STX\SOH\DC2\EOT\222\ETX\n\+ \\DC2\n\+ \\r\n\+ \\ENQ\EOT\DC3\STX\STX\ETX\DC2\EOT\222\ETX\NAK\SYN\n\+ \\f\n\+ \\STX\EOT\DC4\DC2\ACK\225\ETX\NUL\231\ETX\SOH\n\+ \\v\n\+ \\ETX\EOT\DC4\SOH\DC2\EOT\225\ETX\b \n\+ \?\n\+ \\EOT\EOT\DC4\STX\NUL\DC2\EOT\227\ETX\EOT\ESC\SUB1 The success probability for the requested pair.\n\+ \\n\+ \\r\n\+ \\ENQ\EOT\DC4\STX\NUL\ENQ\DC2\EOT\227\ETX\EOT\n\+ \\n\+ \\r\n\+ \\ENQ\EOT\DC4\STX\NUL\SOH\DC2\EOT\227\ETX\v\SYN\n\+ \\r\n\+ \\ENQ\EOT\DC4\STX\NUL\ETX\DC2\EOT\227\ETX\EM\SUB\n\+ \;\n\+ \\EOT\EOT\DC4\STX\SOH\DC2\EOT\230\ETX\EOT\EM\SUB- The historical data for the requested pair.\n\+ \\n\+ \\r\n\+ \\ENQ\EOT\DC4\STX\SOH\ACK\DC2\EOT\230\ETX\EOT\f\n\+ \\r\n\+ \\ENQ\EOT\DC4\STX\SOH\SOH\DC2\EOT\230\ETX\r\DC4\n\+ \\r\n\+ \\ENQ\EOT\DC4\STX\SOH\ETX\DC2\EOT\230\ETX\ETB\CAN\n\+ \\f\n\+ \\STX\EOT\NAK\DC2\ACK\233\ETX\NUL\132\EOT\SOH\n\+ \\v\n\+ \\ETX\EOT\NAK\SOH\DC2\EOT\233\ETX\b\EM\n\+ \j\n\+ \\EOT\EOT\NAK\STX\NUL\DC2\EOT\238\ETX\EOT\ETB\SUB\\\n\+ \The amount to send expressed in msat. If set to zero, the minimum routable\n\+ \amount is used.\n\+ \\n\+ \\r\n\+ \\ENQ\EOT\NAK\STX\NUL\ENQ\DC2\EOT\238\ETX\EOT\t\n\+ \\r\n\+ \\ENQ\EOT\NAK\STX\NUL\SOH\DC2\EOT\238\ETX\n\+ \\DC2\n\+ \\r\n\+ \\ENQ\EOT\NAK\STX\NUL\ETX\DC2\EOT\238\ETX\NAK\SYN\n\+ \h\n\+ \\EOT\EOT\NAK\STX\SOH\DC2\EOT\244\ETX\EOT\US\SUBZ\n\+ \CLTV delta from the current height that should be used for the timelock\n\+ \of the final hop\n\+ \\n\+ \\r\n\+ \\ENQ\EOT\NAK\STX\SOH\ENQ\DC2\EOT\244\ETX\EOT\t\n\+ \\r\n\+ \\ENQ\EOT\NAK\STX\SOH\SOH\DC2\EOT\244\ETX\n\+ \\SUB\n\+ \\r\n\+ \\ENQ\EOT\NAK\STX\SOH\ETX\DC2\EOT\244\ETX\GS\RS\n\+ \t\n\+ \\EOT\EOT\NAK\STX\STX\DC2\EOT\250\ETX\EOT5\SUBf\n\+ \The channel id of the channel that must be taken to the first hop. If zero,\n\+ \any channel may be used.\n\+ \\n\+ \\r\n\+ \\ENQ\EOT\NAK\STX\STX\ENQ\DC2\EOT\250\ETX\EOT\n\+ \\n\+ \\r\n\+ \\ENQ\EOT\NAK\STX\STX\SOH\DC2\EOT\250\ETX\v\ESC\n\+ \\r\n\+ \\ENQ\EOT\NAK\STX\STX\ETX\DC2\EOT\250\ETX\RS\US\n\+ \\r\n\+ \\ENQ\EOT\NAK\STX\STX\b\DC2\EOT\250\ETX 4\n\+ \\SO\n\+ \\ACK\EOT\NAK\STX\STX\b\ACK\DC2\EOT\250\ETX!3\n\+ \c\n\+ \\EOT\EOT\NAK\STX\ETX\DC2\EOT\128\EOT\EOT#\SUBU\n\+ \A list of hops that defines the route. This does not include the source hop\n\+ \pubkey.\n\+ \\n\+ \\r\n\+ \\ENQ\EOT\NAK\STX\ETX\EOT\DC2\EOT\128\EOT\EOT\f\n\+ \\r\n\+ \\ENQ\EOT\NAK\STX\ETX\ENQ\DC2\EOT\128\EOT\r\DC2\n\+ \\r\n\+ \\ENQ\EOT\NAK\STX\ETX\SOH\DC2\EOT\128\EOT\DC3\RS\n\+ \\r\n\+ \\ENQ\EOT\NAK\STX\ETX\ETX\DC2\EOT\128\EOT!\"\n\+ \Y\n\+ \\EOT\EOT\NAK\STX\EOT\DC2\EOT\131\EOT\EOT\ESC\SUBK An optional payment addr to be included within the last hop of the route.\n\+ \\n\+ \\r\n\+ \\ENQ\EOT\NAK\STX\EOT\ENQ\DC2\EOT\131\EOT\EOT\t\n\+ \\r\n\+ \\ENQ\EOT\NAK\STX\EOT\SOH\DC2\EOT\131\EOT\n\+ \\SYN\n\+ \\r\n\+ \\ENQ\EOT\NAK\STX\EOT\ETX\DC2\EOT\131\EOT\EM\SUB\n\+ \\f\n\+ \\STX\EOT\SYN\DC2\ACK\134\EOT\NUL\139\EOT\SOH\n\+ \\v\n\+ \\ETX\EOT\SYN\SOH\DC2\EOT\134\EOT\b\SUB\n\+ \N\n\+ \\EOT\EOT\SYN\STX\NUL\DC2\EOT\138\EOT\EOT\SUB\SUB@\n\+ \Fully specified route that can be used to execute the payment.\n\+ \\n\+ \\r\n\+ \\ENQ\EOT\SYN\STX\NUL\ACK\DC2\EOT\138\EOT\EOT\SI\n\+ \\r\n\+ \\ENQ\EOT\SYN\STX\NUL\SOH\DC2\EOT\138\EOT\DLE\NAK\n\+ \\r\n\+ \\ENQ\EOT\SYN\STX\NUL\ETX\DC2\EOT\138\EOT\CAN\EM\n\+ \\f\n\+ \\STX\EOT\ETB\DC2\ACK\141\EOT\NUL\142\EOT\SOH\n\+ \\v\n\+ \\ETX\EOT\ETB\SOH\DC2\EOT\141\EOT\b\"\n\+ \\177\ETX\n\+ \\STX\EOT\CAN\DC2\ACK\152\EOT\NUL\201\EOT\SOH\SUB\162\ETX\n\+ \HtlcEvent contains the htlc event that was processed. These are served on a\n\+ \best-effort basis; events are not persisted, delivery is not guaranteed\n\+ \(in the event of a crash in the switch, forward events may be lost) and\n\+ \some events may be replayed upon restart. Events consumed from this package\n\+ \should be de-duplicated by the htlc's unique combination of incoming and\n\+ \outgoing channel id and htlc id. [EXPERIMENTAL]\n\+ \\n\+ \\v\n\+ \\ETX\EOT\CAN\SOH\DC2\EOT\152\EOT\b\DC1\n\+ \q\n\+ \\EOT\EOT\CAN\STX\NUL\DC2\EOT\157\EOT\EOT#\SUBc\n\+ \The short channel id that the incoming htlc arrived at our node on. This\n\+ \value is zero for sends.\n\+ \\n\+ \\r\n\+ \\ENQ\EOT\CAN\STX\NUL\ENQ\DC2\EOT\157\EOT\EOT\n\+ \\n\+ \\r\n\+ \\ENQ\EOT\CAN\STX\NUL\SOH\DC2\EOT\157\EOT\v\RS\n\+ \\r\n\+ \\ENQ\EOT\CAN\STX\NUL\ETX\DC2\EOT\157\EOT!\"\n\+ \n\n\+ \\EOT\EOT\CAN\STX\SOH\DC2\EOT\163\EOT\EOT#\SUB`\n\+ \The short channel id that the outgoing htlc left our node on. This value\n\+ \is zero for receives.\n\+ \\n\+ \\r\n\+ \\ENQ\EOT\CAN\STX\SOH\ENQ\DC2\EOT\163\EOT\EOT\n\+ \\n\+ \\r\n\+ \\ENQ\EOT\CAN\STX\SOH\SOH\DC2\EOT\163\EOT\v\RS\n\+ \\r\n\+ \\ENQ\EOT\CAN\STX\SOH\ETX\DC2\EOT\163\EOT!\"\n\+ \t\n\+ \\EOT\EOT\CAN\STX\STX\DC2\EOT\169\EOT\EOT \SUBf\n\+ \Incoming id is the index of the incoming htlc in the incoming channel.\n\+ \This value is zero for sends.\n\+ \\n\+ \\r\n\+ \\ENQ\EOT\CAN\STX\STX\ENQ\DC2\EOT\169\EOT\EOT\n\+ \\n\+ \\r\n\+ \\ENQ\EOT\CAN\STX\STX\SOH\DC2\EOT\169\EOT\v\ESC\n\+ \\r\n\+ \\ENQ\EOT\CAN\STX\STX\ETX\DC2\EOT\169\EOT\RS\US\n\+ \w\n\+ \\EOT\EOT\CAN\STX\ETX\DC2\EOT\175\EOT\EOT \SUBi\n\+ \Outgoing id is the index of the outgoing htlc in the outgoing channel.\n\+ \This value is zero for receives.\n\+ \\n\+ \\r\n\+ \\ENQ\EOT\CAN\STX\ETX\ENQ\DC2\EOT\175\EOT\EOT\n\+ \\n\+ \\r\n\+ \\ENQ\EOT\CAN\STX\ETX\SOH\DC2\EOT\175\EOT\v\ESC\n\+ \\r\n\+ \\ENQ\EOT\CAN\STX\ETX\ETX\DC2\EOT\175\EOT\RS\US\n\+ \E\n\+ \\EOT\EOT\CAN\STX\EOT\DC2\EOT\180\EOT\EOT\FS\SUB7\n\+ \The time in unix nanoseconds that the event occurred.\n\+ \\n\+ \\r\n\+ \\ENQ\EOT\CAN\STX\EOT\ENQ\DC2\EOT\180\EOT\EOT\n\+ \\n\+ \\r\n\+ \\ENQ\EOT\CAN\STX\EOT\SOH\DC2\EOT\180\EOT\v\ETB\n\+ \\r\n\+ \\ENQ\EOT\CAN\STX\EOT\ETX\DC2\EOT\180\EOT\SUB\ESC\n\+ \\SO\n\+ \\EOT\EOT\CAN\EOT\NUL\DC2\ACK\182\EOT\EOT\187\EOT\ENQ\n\+ \\r\n\+ \\ENQ\EOT\CAN\EOT\NUL\SOH\DC2\EOT\182\EOT\t\DC2\n\+ \\SO\n\+ \\ACK\EOT\CAN\EOT\NUL\STX\NUL\DC2\EOT\183\EOT\b\DC4\n\+ \\SI\n\+ \\a\EOT\CAN\EOT\NUL\STX\NUL\SOH\DC2\EOT\183\EOT\b\SI\n\+ \\SI\n\+ \\a\EOT\CAN\EOT\NUL\STX\NUL\STX\DC2\EOT\183\EOT\DC2\DC3\n\+ \\SO\n\+ \\ACK\EOT\CAN\EOT\NUL\STX\SOH\DC2\EOT\184\EOT\b\DC1\n\+ \\SI\n\+ \\a\EOT\CAN\EOT\NUL\STX\SOH\SOH\DC2\EOT\184\EOT\b\f\n\+ \\SI\n\+ \\a\EOT\CAN\EOT\NUL\STX\SOH\STX\DC2\EOT\184\EOT\SI\DLE\n\+ \\SO\n\+ \\ACK\EOT\CAN\EOT\NUL\STX\STX\DC2\EOT\185\EOT\b\DC4\n\+ \\SI\n\+ \\a\EOT\CAN\EOT\NUL\STX\STX\SOH\DC2\EOT\185\EOT\b\SI\n\+ \\SI\n\+ \\a\EOT\CAN\EOT\NUL\STX\STX\STX\DC2\EOT\185\EOT\DC2\DC3\n\+ \\SO\n\+ \\ACK\EOT\CAN\EOT\NUL\STX\ETX\DC2\EOT\186\EOT\b\DC4\n\+ \\SI\n\+ \\a\EOT\CAN\EOT\NUL\STX\ETX\SOH\DC2\EOT\186\EOT\b\SI\n\+ \\SI\n\+ \\a\EOT\CAN\EOT\NUL\STX\ETX\STX\DC2\EOT\186\EOT\DC2\DC3\n\+ \a\n\+ \\EOT\EOT\CAN\STX\ENQ\DC2\EOT\193\EOT\EOT\GS\SUBS\n\+ \The event type indicates whether the htlc was part of a send, receive or\n\+ \forward.\n\+ \\n\+ \\r\n\+ \\ENQ\EOT\CAN\STX\ENQ\ACK\DC2\EOT\193\EOT\EOT\r\n\+ \\r\n\+ \\ENQ\EOT\CAN\STX\ENQ\SOH\DC2\EOT\193\EOT\SO\CAN\n\+ \\r\n\+ \\ENQ\EOT\CAN\STX\ENQ\ETX\DC2\EOT\193\EOT\ESC\FS\n\+ \\SO\n\+ \\EOT\EOT\CAN\b\NUL\DC2\ACK\195\EOT\EOT\200\EOT\ENQ\n\+ \\r\n\+ \\ENQ\EOT\CAN\b\NUL\SOH\DC2\EOT\195\EOT\n\+ \\SI\n\+ \\f\n\+ \\EOT\EOT\CAN\STX\ACK\DC2\EOT\196\EOT\b'\n\+ \\r\n\+ \\ENQ\EOT\CAN\STX\ACK\ACK\DC2\EOT\196\EOT\b\DC4\n\+ \\r\n\+ \\ENQ\EOT\CAN\STX\ACK\SOH\DC2\EOT\196\EOT\NAK\"\n\+ \\r\n\+ \\ENQ\EOT\CAN\STX\ACK\ETX\DC2\EOT\196\EOT%&\n\+ \\f\n\+ \\EOT\EOT\CAN\STX\a\DC2\EOT\197\EOT\b0\n\+ \\r\n\+ \\ENQ\EOT\CAN\STX\a\ACK\DC2\EOT\197\EOT\b\CAN\n\+ \\r\n\+ \\ENQ\EOT\CAN\STX\a\SOH\DC2\EOT\197\EOT\EM+\n\+ \\r\n\+ \\ENQ\EOT\CAN\STX\a\ETX\DC2\EOT\197\EOT./\n\+ \\f\n\+ \\EOT\EOT\CAN\STX\b\DC2\EOT\198\EOT\b%\n\+ \\r\n\+ \\ENQ\EOT\CAN\STX\b\ACK\DC2\EOT\198\EOT\b\DC3\n\+ \\r\n\+ \\ENQ\EOT\CAN\STX\b\SOH\DC2\EOT\198\EOT\DC4 \n\+ \\r\n\+ \\ENQ\EOT\CAN\STX\b\ETX\DC2\EOT\198\EOT#$\n\+ \\f\n\+ \\EOT\EOT\CAN\STX\t\DC2\EOT\199\EOT\b+\n\+ \\r\n\+ \\ENQ\EOT\CAN\STX\t\ACK\DC2\EOT\199\EOT\b\NAK\n\+ \\r\n\+ \\ENQ\EOT\CAN\STX\t\SOH\DC2\EOT\199\EOT\SYN%\n\+ \\r\n\+ \\ENQ\EOT\CAN\STX\t\ETX\DC2\EOT\199\EOT(*\n\+ \\f\n\+ \\STX\EOT\EM\DC2\ACK\203\EOT\NUL\215\EOT\SOH\n\+ \\v\n\+ \\ETX\EOT\EM\SOH\DC2\EOT\203\EOT\b\DLE\n\+ \2\n\+ \\EOT\EOT\EM\STX\NUL\DC2\EOT\205\EOT\EOT!\SUB$ The timelock on the incoming htlc.\n\+ \\n\+ \\r\n\+ \\ENQ\EOT\EM\STX\NUL\ENQ\DC2\EOT\205\EOT\EOT\n\+ \\n\+ \\r\n\+ \\ENQ\EOT\EM\STX\NUL\SOH\DC2\EOT\205\EOT\v\FS\n\+ \\r\n\+ \\ENQ\EOT\EM\STX\NUL\ETX\DC2\EOT\205\EOT\US \n\+ \2\n\+ \\EOT\EOT\EM\STX\SOH\DC2\EOT\208\EOT\EOT!\SUB$ The timelock on the outgoing htlc.\n\+ \\n\+ \\r\n\+ \\ENQ\EOT\EM\STX\SOH\ENQ\DC2\EOT\208\EOT\EOT\n\+ \\n\+ \\r\n\+ \\ENQ\EOT\EM\STX\SOH\SOH\DC2\EOT\208\EOT\v\FS\n\+ \\r\n\+ \\ENQ\EOT\EM\STX\SOH\ETX\DC2\EOT\208\EOT\US \n\+ \0\n\+ \\EOT\EOT\EM\STX\STX\DC2\EOT\211\EOT\EOT!\SUB\" The amount of the incoming htlc.\n\+ \\n\+ \\r\n\+ \\ENQ\EOT\EM\STX\STX\ENQ\DC2\EOT\211\EOT\EOT\n\+ \\n\+ \\r\n\+ \\ENQ\EOT\EM\STX\STX\SOH\DC2\EOT\211\EOT\v\FS\n\+ \\r\n\+ \\ENQ\EOT\EM\STX\STX\ETX\DC2\EOT\211\EOT\US \n\+ \0\n\+ \\EOT\EOT\EM\STX\ETX\DC2\EOT\214\EOT\EOT!\SUB\" The amount of the outgoing htlc.\n\+ \\n\+ \\r\n\+ \\ENQ\EOT\EM\STX\ETX\ENQ\DC2\EOT\214\EOT\EOT\n\+ \\n\+ \\r\n\+ \\ENQ\EOT\EM\STX\ETX\SOH\DC2\EOT\214\EOT\v\FS\n\+ \\r\n\+ \\ENQ\EOT\EM\STX\ETX\ETX\DC2\EOT\214\EOT\US \n\+ \\f\n\+ \\STX\EOT\SUB\DC2\ACK\217\EOT\NUL\220\EOT\SOH\n\+ \\v\n\+ \\ETX\EOT\SUB\SOH\DC2\EOT\217\EOT\b\DC4\n\+ \H\n\+ \\EOT\EOT\SUB\STX\NUL\DC2\EOT\219\EOT\EOT\SYN\SUB: Info contains details about the htlc that was forwarded.\n\+ \\n\+ \\r\n\+ \\ENQ\EOT\SUB\STX\NUL\ACK\DC2\EOT\219\EOT\EOT\f\n\+ \\r\n\+ \\ENQ\EOT\SUB\STX\NUL\SOH\DC2\EOT\219\EOT\r\DC1\n\+ \\r\n\+ \\ENQ\EOT\SUB\STX\NUL\ETX\DC2\EOT\219\EOT\DC4\NAK\n\+ \\f\n\+ \\STX\EOT\ESC\DC2\ACK\222\EOT\NUL\223\EOT\SOH\n\+ \\v\n\+ \\ETX\EOT\ESC\SOH\DC2\EOT\222\EOT\b\CAN\n\+ \\f\n\+ \\STX\EOT\FS\DC2\ACK\225\EOT\NUL\228\EOT\SOH\n\+ \\v\n\+ \\ETX\EOT\FS\SOH\DC2\EOT\225\EOT\b\DC3\n\+ \&\n\+ \\EOT\EOT\FS\STX\NUL\DC2\EOT\227\EOT\EOT\ETB\SUB\CAN The revealed preimage.\n\+ \\n\+ \\r\n\+ \\ENQ\EOT\FS\STX\NUL\ENQ\DC2\EOT\227\EOT\EOT\t\n\+ \\r\n\+ \\ENQ\EOT\FS\STX\NUL\SOH\DC2\EOT\227\EOT\n\+ \\DC2\n\+ \\r\n\+ \\ENQ\EOT\FS\STX\NUL\ETX\DC2\EOT\227\EOT\NAK\SYN\n\+ \\f\n\+ \\STX\EOT\GS\DC2\ACK\230\EOT\NUL\246\EOT\SOH\n\+ \\v\n\+ \\ETX\EOT\GS\SOH\DC2\EOT\230\EOT\b\NAK\n\+ \D\n\+ \\EOT\EOT\GS\STX\NUL\DC2\EOT\232\EOT\EOT\SYN\SUB6 Info contains details about the htlc that we failed.\n\+ \\n\+ \\r\n\+ \\ENQ\EOT\GS\STX\NUL\ACK\DC2\EOT\232\EOT\EOT\f\n\+ \\r\n\+ \\ENQ\EOT\GS\STX\NUL\SOH\DC2\EOT\232\EOT\r\DC1\n\+ \\r\n\+ \\ENQ\EOT\GS\STX\NUL\ETX\DC2\EOT\232\EOT\DC4\NAK\n\+ \C\n\+ \\EOT\EOT\GS\STX\SOH\DC2\EOT\235\EOT\EOT/\SUB5 FailureCode is the BOLT error code for the failure.\n\+ \\n\+ \\r\n\+ \\ENQ\EOT\GS\STX\SOH\ACK\DC2\EOT\235\EOT\EOT\GS\n\+ \\r\n\+ \\ENQ\EOT\GS\STX\SOH\SOH\DC2\EOT\235\EOT\RS*\n\+ \\r\n\+ \\ENQ\EOT\GS\STX\SOH\ETX\DC2\EOT\235\EOT-.\n\+ \\238\SOH\n\+ \\EOT\EOT\GS\STX\STX\DC2\EOT\242\EOT\EOT%\SUB\223\SOH\n\+ \FailureDetail provides additional information about the reason for the\n\+ \failure. This detail enriches the information provided by the wire message\n\+ \and may be 'no detail' if the wire message requires no additional metadata.\n\+ \\n\+ \\r\n\+ \\ENQ\EOT\GS\STX\STX\ACK\DC2\EOT\242\EOT\EOT\DC1\n\+ \\r\n\+ \\ENQ\EOT\GS\STX\STX\SOH\DC2\EOT\242\EOT\DC2 \n\+ \\r\n\+ \\ENQ\EOT\GS\STX\STX\ETX\DC2\EOT\242\EOT#$\n\+ \<\n\+ \\EOT\EOT\GS\STX\ETX\DC2\EOT\245\EOT\EOT\RS\SUB. A string representation of the link failure.\n\+ \\n\+ \\r\n\+ \\ENQ\EOT\GS\STX\ETX\ENQ\DC2\EOT\245\EOT\EOT\n\+ \\n\+ \\r\n\+ \\ENQ\EOT\GS\STX\ETX\SOH\DC2\EOT\245\EOT\v\EM\n\+ \\r\n\+ \\ENQ\EOT\GS\STX\ETX\ETX\DC2\EOT\245\EOT\FS\GS\n\+ \\f\n\+ \\STX\ENQ\NUL\DC2\ACK\248\EOT\NUL\144\ENQ\SOH\n\+ \\v\n\+ \\ETX\ENQ\NUL\SOH\DC2\EOT\248\EOT\ENQ\DC2\n\+ \\f\n\+ \\EOT\ENQ\NUL\STX\NUL\DC2\EOT\249\EOT\EOT\DLE\n\+ \\r\n\+ \\ENQ\ENQ\NUL\STX\NUL\SOH\DC2\EOT\249\EOT\EOT\v\n\+ \\r\n\+ \\ENQ\ENQ\NUL\STX\NUL\STX\DC2\EOT\249\EOT\SO\SI\n\+ \\f\n\+ \\EOT\ENQ\NUL\STX\SOH\DC2\EOT\250\EOT\EOT\DC2\n\+ \\r\n\+ \\ENQ\ENQ\NUL\STX\SOH\SOH\DC2\EOT\250\EOT\EOT\r\n\+ \\r\n\+ \\ENQ\ENQ\NUL\STX\SOH\STX\DC2\EOT\250\EOT\DLE\DC1\n\+ \\f\n\+ \\EOT\ENQ\NUL\STX\STX\DC2\EOT\251\EOT\EOT\NAK\n\+ \\r\n\+ \\ENQ\ENQ\NUL\STX\STX\SOH\DC2\EOT\251\EOT\EOT\DLE\n\+ \\r\n\+ \\ENQ\ENQ\NUL\STX\STX\STX\DC2\EOT\251\EOT\DC3\DC4\n\+ \\f\n\+ \\EOT\ENQ\NUL\STX\ETX\DC2\EOT\252\EOT\EOT\SUB\n\+ \\r\n\+ \\ENQ\ENQ\NUL\STX\ETX\SOH\DC2\EOT\252\EOT\EOT\NAK\n\+ \\r\n\+ \\ENQ\ENQ\NUL\STX\ETX\STX\DC2\EOT\252\EOT\CAN\EM\n\+ \\f\n\+ \\EOT\ENQ\NUL\STX\EOT\DC2\EOT\253\EOT\EOT\EM\n\+ \\r\n\+ \\ENQ\ENQ\NUL\STX\EOT\SOH\DC2\EOT\253\EOT\EOT\DC4\n\+ \\r\n\+ \\ENQ\ENQ\NUL\STX\EOT\STX\DC2\EOT\253\EOT\ETB\CAN\n\+ \\f\n\+ \\EOT\ENQ\NUL\STX\ENQ\DC2\EOT\254\EOT\EOT\EM\n\+ \\r\n\+ \\ENQ\ENQ\NUL\STX\ENQ\SOH\DC2\EOT\254\EOT\EOT\DC4\n\+ \\r\n\+ \\ENQ\ENQ\NUL\STX\ENQ\STX\DC2\EOT\254\EOT\ETB\CAN\n\+ \\f\n\+ \\EOT\ENQ\NUL\STX\ACK\DC2\EOT\255\EOT\EOT\GS\n\+ \\r\n\+ \\ENQ\ENQ\NUL\STX\ACK\SOH\DC2\EOT\255\EOT\EOT\CAN\n\+ \\r\n\+ \\ENQ\ENQ\NUL\STX\ACK\STX\DC2\EOT\255\EOT\ESC\FS\n\+ \\f\n\+ \\EOT\ENQ\NUL\STX\a\DC2\EOT\128\ENQ\EOT\ESC\n\+ \\r\n\+ \\ENQ\ENQ\NUL\STX\a\SOH\DC2\EOT\128\ENQ\EOT\SYN\n\+ \\r\n\+ \\ENQ\ENQ\NUL\STX\a\STX\DC2\EOT\128\ENQ\EM\SUB\n\+ \\f\n\+ \\EOT\ENQ\NUL\STX\b\DC2\EOT\129\ENQ\EOT\CAN\n\+ \\r\n\+ \\ENQ\ENQ\NUL\STX\b\SOH\DC2\EOT\129\ENQ\EOT\DC3\n\+ \\r\n\+ \\ENQ\ENQ\NUL\STX\b\STX\DC2\EOT\129\ENQ\SYN\ETB\n\+ \\f\n\+ \\EOT\ENQ\NUL\STX\t\DC2\EOT\130\ENQ\EOT\SUB\n\+ \\r\n\+ \\ENQ\ENQ\NUL\STX\t\SOH\DC2\EOT\130\ENQ\EOT\NAK\n\+ \\r\n\+ \\ENQ\ENQ\NUL\STX\t\STX\DC2\EOT\130\ENQ\CAN\EM\n\+ \\f\n\+ \\EOT\ENQ\NUL\STX\n\+ \\DC2\EOT\131\ENQ\EOT\SUB\n\+ \\r\n\+ \\ENQ\ENQ\NUL\STX\n\+ \\SOH\DC2\EOT\131\ENQ\EOT\DC4\n\+ \\r\n\+ \\ENQ\ENQ\NUL\STX\n\+ \\STX\DC2\EOT\131\ENQ\ETB\EM\n\+ \\f\n\+ \\EOT\ENQ\NUL\STX\v\DC2\EOT\132\ENQ\EOT\ESC\n\+ \\r\n\+ \\ENQ\ENQ\NUL\STX\v\SOH\DC2\EOT\132\ENQ\EOT\NAK\n\+ \\r\n\+ \\ENQ\ENQ\NUL\STX\v\STX\DC2\EOT\132\ENQ\CAN\SUB\n\+ \\f\n\+ \\EOT\ENQ\NUL\STX\f\DC2\EOT\133\ENQ\EOT!\n\+ \\r\n\+ \\ENQ\ENQ\NUL\STX\f\SOH\DC2\EOT\133\ENQ\EOT\ESC\n\+ \\r\n\+ \\ENQ\ENQ\NUL\STX\f\STX\DC2\EOT\133\ENQ\RS \n\+ \\f\n\+ \\EOT\ENQ\NUL\STX\r\DC2\EOT\134\ENQ\EOT\SUB\n\+ \\r\n\+ \\ENQ\ENQ\NUL\STX\r\SOH\DC2\EOT\134\ENQ\EOT\DC4\n\+ \\r\n\+ \\ENQ\ENQ\NUL\STX\r\STX\DC2\EOT\134\ENQ\ETB\EM\n\+ \\f\n\+ \\EOT\ENQ\NUL\STX\SO\DC2\EOT\135\ENQ\EOT\GS\n\+ \\r\n\+ \\ENQ\ENQ\NUL\STX\SO\SOH\DC2\EOT\135\ENQ\EOT\ETB\n\+ \\r\n\+ \\ENQ\ENQ\NUL\STX\SO\STX\DC2\EOT\135\ENQ\SUB\FS\n\+ \\f\n\+ \\EOT\ENQ\NUL\STX\SI\DC2\EOT\136\ENQ\EOT\SUB\n\+ \\r\n\+ \\ENQ\ENQ\NUL\STX\SI\SOH\DC2\EOT\136\ENQ\EOT\DC4\n\+ \\r\n\+ \\ENQ\ENQ\NUL\STX\SI\STX\DC2\EOT\136\ENQ\ETB\EM\n\+ \\f\n\+ \\EOT\ENQ\NUL\STX\DLE\DC2\EOT\137\ENQ\EOT\FS\n\+ \\r\n\+ \\ENQ\ENQ\NUL\STX\DLE\SOH\DC2\EOT\137\ENQ\EOT\SYN\n\+ \\r\n\+ \\ENQ\ENQ\NUL\STX\DLE\STX\DC2\EOT\137\ENQ\EM\ESC\n\+ \\f\n\+ \\EOT\ENQ\NUL\STX\DC1\DC2\EOT\138\ENQ\EOT\ESC\n\+ \\r\n\+ \\ENQ\ENQ\NUL\STX\DC1\SOH\DC2\EOT\138\ENQ\EOT\NAK\n\+ \\r\n\+ \\ENQ\ENQ\NUL\STX\DC1\STX\DC2\EOT\138\ENQ\CAN\SUB\n\+ \\f\n\+ \\EOT\ENQ\NUL\STX\DC2\DC2\EOT\139\ENQ\EOT\SYN\n\+ \\r\n\+ \\ENQ\ENQ\NUL\STX\DC2\SOH\DC2\EOT\139\ENQ\EOT\DLE\n\+ \\r\n\+ \\ENQ\ENQ\NUL\STX\DC2\STX\DC2\EOT\139\ENQ\DC3\NAK\n\+ \\f\n\+ \\EOT\ENQ\NUL\STX\DC3\DC2\EOT\140\ENQ\EOT\EM\n\+ \\r\n\+ \\ENQ\ENQ\NUL\STX\DC3\SOH\DC2\EOT\140\ENQ\EOT\DC3\n\+ \\r\n\+ \\ENQ\ENQ\NUL\STX\DC3\STX\DC2\EOT\140\ENQ\SYN\CAN\n\+ \\f\n\+ \\EOT\ENQ\NUL\STX\DC4\DC2\EOT\141\ENQ\EOT\EM\n\+ \\r\n\+ \\ENQ\ENQ\NUL\STX\DC4\SOH\DC2\EOT\141\ENQ\EOT\DC3\n\+ \\r\n\+ \\ENQ\ENQ\NUL\STX\DC4\STX\DC2\EOT\141\ENQ\SYN\CAN\n\+ \\f\n\+ \\EOT\ENQ\NUL\STX\NAK\DC2\EOT\142\ENQ\EOT\EM\n\+ \\r\n\+ \\ENQ\ENQ\NUL\STX\NAK\SOH\DC2\EOT\142\ENQ\EOT\DC3\n\+ \\r\n\+ \\ENQ\ENQ\NUL\STX\NAK\STX\DC2\EOT\142\ENQ\SYN\CAN\n\+ \\f\n\+ \\EOT\ENQ\NUL\STX\SYN\DC2\EOT\143\ENQ\EOT\CAN\n\+ \\r\n\+ \\ENQ\ENQ\NUL\STX\SYN\SOH\DC2\EOT\143\ENQ\EOT\DC2\n\+ \\r\n\+ \\ENQ\ENQ\NUL\STX\SYN\STX\DC2\EOT\143\ENQ\NAK\ETB\n\+ \\f\n\+ \\STX\ENQ\SOH\DC2\ACK\146\ENQ\NUL\183\ENQ\SOH\n\+ \\v\n\+ \\ETX\ENQ\SOH\SOH\DC2\EOT\146\ENQ\ENQ\DC1\n\+ \+\n\+ \\EOT\ENQ\SOH\STX\NUL\DC2\EOT\150\ENQ\EOT\DC2\SUB\GS\n\+ \Payment is still in flight.\n\+ \\n\+ \\r\n\+ \\ENQ\ENQ\SOH\STX\NUL\SOH\DC2\EOT\150\ENQ\EOT\r\n\+ \\r\n\+ \\ENQ\ENQ\SOH\STX\NUL\STX\DC2\EOT\150\ENQ\DLE\DC1\n\+ \/\n\+ \\EOT\ENQ\SOH\STX\SOH\DC2\EOT\155\ENQ\EOT\DC2\SUB!\n\+ \Payment completed successfully.\n\+ \\n\+ \\r\n\+ \\ENQ\ENQ\SOH\STX\SOH\SOH\DC2\EOT\155\ENQ\EOT\r\n\+ \\r\n\+ \\ENQ\ENQ\SOH\STX\SOH\STX\DC2\EOT\155\ENQ\DLE\DC1\n\+ \S\n\+ \\EOT\ENQ\SOH\STX\STX\DC2\EOT\160\ENQ\EOT\ETB\SUBE\n\+ \There are more routes to try, but the payment timeout was exceeded.\n\+ \\n\+ \\r\n\+ \\ENQ\ENQ\SOH\STX\STX\SOH\DC2\EOT\160\ENQ\EOT\DC2\n\+ \\r\n\+ \\ENQ\ENQ\SOH\STX\STX\STX\DC2\EOT\160\ENQ\NAK\SYN\n\+ \s\n\+ \\EOT\ENQ\SOH\STX\ETX\DC2\EOT\166\ENQ\EOT\CAN\SUBe\n\+ \All possible routes were tried and failed permanently. Or were no\n\+ \routes to the destination at all.\n\+ \\n\+ \\r\n\+ \\ENQ\ENQ\SOH\STX\ETX\SOH\DC2\EOT\166\ENQ\EOT\DC3\n\+ \\r\n\+ \\ENQ\ENQ\SOH\STX\ETX\STX\DC2\EOT\166\ENQ\SYN\ETB\n\+ \4\n\+ \\EOT\ENQ\SOH\STX\EOT\DC2\EOT\171\ENQ\EOT\NAK\SUB&\n\+ \A non-recoverable error has occured.\n\+ \\n\+ \\r\n\+ \\ENQ\ENQ\SOH\STX\EOT\SOH\DC2\EOT\171\ENQ\EOT\DLE\n\+ \\r\n\+ \\ENQ\ENQ\SOH\STX\EOT\STX\DC2\EOT\171\ENQ\DC3\DC4\n\+ \a\n\+ \\EOT\ENQ\SOH\STX\ENQ\DC2\EOT\177\ENQ\EOT)\SUBS\n\+ \Payment details incorrect (unknown hash, invalid amt or\n\+ \invalid final cltv delta)\n\+ \\n\+ \\r\n\+ \\ENQ\ENQ\SOH\STX\ENQ\SOH\DC2\EOT\177\ENQ\EOT$\n\+ \\r\n\+ \\ENQ\ENQ\SOH\STX\ENQ\STX\DC2\EOT\177\ENQ'(\n\+ \+\n\+ \\EOT\ENQ\SOH\STX\ACK\DC2\EOT\182\ENQ\EOT$\SUB\GS\n\+ \Insufficient local balance.\n\+ \\n\+ \\r\n\+ \\ENQ\ENQ\SOH\STX\ACK\SOH\DC2\EOT\182\ENQ\EOT\US\n\+ \\r\n\+ \\ENQ\ENQ\SOH\STX\ACK\STX\DC2\EOT\182\ENQ\"#\n\+ \\f\n\+ \\STX\EOT\RS\DC2\ACK\185\ENQ\NUL\200\ENQ\SOH\n\+ \\v\n\+ \\ETX\EOT\RS\SOH\DC2\EOT\185\ENQ\b\NAK\n\+ \0\n\+ \\EOT\EOT\RS\STX\NUL\DC2\EOT\187\ENQ\EOT\ESC\SUB\" Current state the payment is in.\n\+ \\n\+ \\r\n\+ \\ENQ\EOT\RS\STX\NUL\ACK\DC2\EOT\187\ENQ\EOT\DLE\n\+ \\r\n\+ \\ENQ\EOT\RS\STX\NUL\SOH\DC2\EOT\187\ENQ\DC1\SYN\n\+ \\r\n\+ \\ENQ\EOT\RS\STX\NUL\ETX\DC2\EOT\187\ENQ\EM\SUB\n\+ \E\n\+ \\EOT\EOT\RS\STX\SOH\DC2\EOT\192\ENQ\EOT\ETB\SUB7\n\+ \The pre-image of the payment when state is SUCCEEDED.\n\+ \\n\+ \\r\n\+ \\ENQ\EOT\RS\STX\SOH\ENQ\DC2\EOT\192\ENQ\EOT\t\n\+ \\r\n\+ \\ENQ\EOT\RS\STX\SOH\SOH\DC2\EOT\192\ENQ\n\+ \\DC2\n\+ \\r\n\+ \\ENQ\EOT\RS\STX\SOH\ETX\DC2\EOT\192\ENQ\NAK\SYN\n\+ \\v\n\+ \\ETX\EOT\RS\t\DC2\EOT\194\ENQ\EOT\SI\n\+ \\f\n\+ \\EOT\EOT\RS\t\NUL\DC2\EOT\194\ENQ\r\SO\n\+ \\r\n\+ \\ENQ\EOT\RS\t\NUL\SOH\DC2\EOT\194\ENQ\r\SO\n\+ \\r\n\+ \\ENQ\EOT\RS\t\NUL\STX\DC2\EOT\194\ENQ\r\SO\n\+ \O\n\+ \\EOT\EOT\RS\STX\STX\DC2\EOT\199\ENQ\EOT)\SUBA\n\+ \The HTLCs made in attempt to settle the payment [EXPERIMENTAL].\n\+ \\n\+ \\r\n\+ \\ENQ\EOT\RS\STX\STX\EOT\DC2\EOT\199\ENQ\EOT\f\n\+ \\r\n\+ \\ENQ\EOT\RS\STX\STX\ACK\DC2\EOT\199\ENQ\r\RS\n\+ \\r\n\+ \\ENQ\EOT\RS\STX\STX\SOH\DC2\EOT\199\ENQ\US$\n\+ \\r\n\+ \\ENQ\EOT\RS\STX\STX\ETX\DC2\EOT\199\ENQ'(\n\+ \\f\n\+ \\STX\EOT\US\DC2\ACK\202\ENQ\NUL\208\ENQ\SOH\n\+ \\v\n\+ \\ETX\EOT\US\SOH\DC2\EOT\202\ENQ\b\DC2\n\+ \H\n\+ \\EOT\EOT\US\STX\NUL\DC2\EOT\204\ENQ\EOT\ETB\SUB:/ The id of the channel that the is part of this circuit.\n\+ \\n\+ \\r\n\+ \\ENQ\EOT\US\STX\NUL\ENQ\DC2\EOT\204\ENQ\EOT\n\+ \\n\+ \\r\n\+ \\ENQ\EOT\US\STX\NUL\SOH\DC2\EOT\204\ENQ\v\DC2\n\+ \\r\n\+ \\ENQ\EOT\US\STX\NUL\ETX\DC2\EOT\204\ENQ\NAK\SYN\n\+ \H\n\+ \\EOT\EOT\US\STX\SOH\DC2\EOT\207\ENQ\EOT\ETB\SUB:/ The index of the incoming htlc in the incoming channel.\n\+ \\n\+ \\r\n\+ \\ENQ\EOT\US\STX\SOH\ENQ\DC2\EOT\207\ENQ\EOT\n\+ \\n\+ \\r\n\+ \\ENQ\EOT\US\STX\SOH\SOH\DC2\EOT\207\ENQ\v\DC2\n\+ \\r\n\+ \\ENQ\EOT\US\STX\SOH\ETX\DC2\EOT\207\ENQ\NAK\SYN\n\+ \\f\n\+ \\STX\EOT \DC2\ACK\210\ENQ\NUL\246\ENQ\SOH\n\+ \\v\n\+ \\ETX\EOT \SOH\DC2\EOT\210\ENQ\b#\n\+ \q\n\+ \\EOT\EOT \STX\NUL\DC2\EOT\215\ENQ\EOT(\SUBc\n\+ \The key of this forwarded htlc. It defines the incoming channel id and\n\+ \the index in this channel.\n\+ \\n\+ \\r\n\+ \\ENQ\EOT \STX\NUL\ACK\DC2\EOT\215\ENQ\EOT\SO\n\+ \\r\n\+ \\ENQ\EOT \STX\NUL\SOH\DC2\EOT\215\ENQ\SI#\n\+ \\r\n\+ \\ENQ\EOT \STX\NUL\ETX\DC2\EOT\215\ENQ&'\n\+ \)\n\+ \\EOT\EOT \STX\SOH\DC2\EOT\218\ENQ\EOT$\SUB\ESC The incoming htlc amount.\n\+ \\n\+ \\r\n\+ \\ENQ\EOT \STX\SOH\ENQ\DC2\EOT\218\ENQ\EOT\n\+ \\n\+ \\r\n\+ \\ENQ\EOT \STX\SOH\SOH\DC2\EOT\218\ENQ\v\US\n\+ \\r\n\+ \\ENQ\EOT \STX\SOH\ETX\DC2\EOT\218\ENQ\"#\n\+ \)\n\+ \\EOT\EOT \STX\STX\DC2\EOT\221\ENQ\EOT\US\SUB\ESC The incoming htlc expiry.\n\+ \\n\+ \\r\n\+ \\ENQ\EOT \STX\STX\ENQ\DC2\EOT\221\ENQ\EOT\n\+ \\n\+ \\r\n\+ \\ENQ\EOT \STX\STX\SOH\DC2\EOT\221\ENQ\v\SUB\n\+ \\r\n\+ \\ENQ\EOT \STX\STX\ETX\DC2\EOT\221\ENQ\GS\RS\n\+ \]\n\+ \\EOT\EOT \STX\ETX\DC2\EOT\227\ENQ\EOT\ESC\SUBO\n\+ \The htlc payment hash. This value is not guaranteed to be unique per\n\+ \request.\n\+ \\n\+ \\r\n\+ \\ENQ\EOT \STX\ETX\ENQ\DC2\EOT\227\ENQ\EOT\t\n\+ \\r\n\+ \\ENQ\EOT \STX\ETX\SOH\DC2\EOT\227\ENQ\n\+ \\SYN\n\+ \\r\n\+ \\ENQ\EOT \STX\ETX\ETX\DC2\EOT\227\ENQ\EM\SUB\n\+ \\133\STX\n\+ \\EOT\EOT \STX\EOT\DC2\EOT\233\ENQ\EOT*\SUB\246\SOH The requested outgoing channel id for this forwarded htlc. Because of\n\+ \ non-strict forwarding, this isn't necessarily the channel over which the\n\+ \ packet will be forwarded eventually. A different channel to the same peer\n\+ \ may be selected as well.\n\+ \\n\+ \\r\n\+ \\ENQ\EOT \STX\EOT\ENQ\DC2\EOT\233\ENQ\EOT\n\+ \\n\+ \\r\n\+ \\ENQ\EOT \STX\EOT\SOH\DC2\EOT\233\ENQ\v%\n\+ \\r\n\+ \\ENQ\EOT \STX\EOT\ETX\DC2\EOT\233\ENQ()\n\+ \)\n\+ \\EOT\EOT \STX\ENQ\DC2\EOT\236\ENQ\EOT$\SUB\ESC The outgoing htlc amount.\n\+ \\n\+ \\r\n\+ \\ENQ\EOT \STX\ENQ\ENQ\DC2\EOT\236\ENQ\EOT\n\+ \\n\+ \\r\n\+ \\ENQ\EOT \STX\ENQ\SOH\DC2\EOT\236\ENQ\v\US\n\+ \\r\n\+ \\ENQ\EOT \STX\ENQ\ETX\DC2\EOT\236\ENQ\"#\n\+ \)\n\+ \\EOT\EOT \STX\ACK\DC2\EOT\239\ENQ\EOT\US\SUB\ESC The outgoing htlc expiry.\n\+ \\n\+ \\r\n\+ \\ENQ\EOT \STX\ACK\ENQ\DC2\EOT\239\ENQ\EOT\n\+ \\n\+ \\r\n\+ \\ENQ\EOT \STX\ACK\SOH\DC2\EOT\239\ENQ\v\SUB\n\+ \\r\n\+ \\ENQ\EOT \STX\ACK\ETX\DC2\EOT\239\ENQ\GS\RS\n\+ \D\n\+ \\EOT\EOT \STX\a\DC2\EOT\242\ENQ\EOT*\SUB6 Any custom records that were present in the payload.\n\+ \\n\+ \\r\n\+ \\ENQ\EOT \STX\a\ACK\DC2\EOT\242\ENQ\EOT\SYN\n\+ \\r\n\+ \\ENQ\EOT \STX\a\SOH\DC2\EOT\242\ENQ\ETB%\n\+ \\r\n\+ \\ENQ\EOT \STX\a\ETX\DC2\EOT\242\ENQ()\n\+ \/\n\+ \\EOT\EOT \STX\b\DC2\EOT\245\ENQ\EOT\EM\SUB! The onion blob for the next hop\n\+ \\n\+ \\r\n\+ \\ENQ\EOT \STX\b\ENQ\DC2\EOT\245\ENQ\EOT\t\n\+ \\r\n\+ \\ENQ\EOT \STX\b\SOH\DC2\EOT\245\ENQ\n\+ \\DC4\n\+ \\r\n\+ \\ENQ\EOT \STX\b\ETX\DC2\EOT\245\ENQ\ETB\CAN\n\+ \\157\STX\n\+ \\STX\EOT!\DC2\ACK\255\ENQ\NUL\139\ACK\SOH\SUB\142\STX*\n\+ \ForwardHtlcInterceptResponse enables the caller to resolve a previously hold\n\+ \forward. The caller can choose either to:\n\+ \- `Resume`: Execute the default behavior (usually forward).\n\+ \- `Reject`: Fail the htlc backwards.\n\+ \- `Settle`: Settle this htlc with a given preimage.\n\+ \\n\+ \\v\n\+ \\ETX\EOT!\SOH\DC2\EOT\255\ENQ\b$\n\+ \r\n\+ \\EOT\EOT!\STX\NUL\DC2\EOT\132\ACK\EOT(\SUBd*\n\+ \The key of this forwarded htlc. It defines the incoming channel id and\n\+ \the index in this channel.\n\+ \\n\+ \\r\n\+ \\ENQ\EOT!\STX\NUL\ACK\DC2\EOT\132\ACK\EOT\SO\n\+ \\r\n\+ \\ENQ\EOT!\STX\NUL\SOH\DC2\EOT\132\ACK\SI#\n\+ \\r\n\+ \\ENQ\EOT!\STX\NUL\ETX\DC2\EOT\132\ACK&'\n\+ \=\n\+ \\EOT\EOT!\STX\SOH\DC2\EOT\135\ACK\EOT(\SUB/ The resolve action for this intercepted htlc.\n\+ \\n\+ \\r\n\+ \\ENQ\EOT!\STX\SOH\ACK\DC2\EOT\135\ACK\EOT\FS\n\+ \\r\n\+ \\ENQ\EOT!\STX\SOH\SOH\DC2\EOT\135\ACK\GS#\n\+ \\r\n\+ \\ENQ\EOT!\STX\SOH\ETX\DC2\EOT\135\ACK&'\n\+ \B\n\+ \\EOT\EOT!\STX\STX\DC2\EOT\138\ACK\EOT\ETB\SUB4 The preimage in case the resolve action is Settle.\n\+ \\n\+ \\r\n\+ \\ENQ\EOT!\STX\STX\ENQ\DC2\EOT\138\ACK\EOT\t\n\+ \\r\n\+ \\ENQ\EOT!\STX\STX\SOH\DC2\EOT\138\ACK\n\+ \\DC2\n\+ \\r\n\+ \\ENQ\EOT!\STX\STX\ETX\DC2\EOT\138\ACK\NAK\SYN\n\+ \\f\n\+ \\STX\ENQ\STX\DC2\ACK\141\ACK\NUL\145\ACK\SOH\n\+ \\v\n\+ \\ETX\ENQ\STX\SOH\DC2\EOT\141\ACK\ENQ\GS\n\+ \\f\n\+ \\EOT\ENQ\STX\STX\NUL\DC2\EOT\142\ACK\EOT\SI\n\+ \\r\n\+ \\ENQ\ENQ\STX\STX\NUL\SOH\DC2\EOT\142\ACK\EOT\n\+ \\n\+ \\r\n\+ \\ENQ\ENQ\STX\STX\NUL\STX\DC2\EOT\142\ACK\r\SO\n\+ \\f\n\+ \\EOT\ENQ\STX\STX\SOH\DC2\EOT\143\ACK\EOT\r\n\+ \\r\n\+ \\ENQ\ENQ\STX\STX\SOH\SOH\DC2\EOT\143\ACK\EOT\b\n\+ \\r\n\+ \\ENQ\ENQ\STX\STX\SOH\STX\DC2\EOT\143\ACK\v\f\n\+ \\f\n\+ \\EOT\ENQ\STX\STX\STX\DC2\EOT\144\ACK\EOT\SI\n\+ \\r\n\+ \\ENQ\ENQ\STX\STX\STX\SOH\DC2\EOT\144\ACK\EOT\n\+ \\n\+ \\r\n\+ \\ENQ\ENQ\STX\STX\STX\STX\DC2\EOT\144\ACK\r\SO\n\+ \\f\n\+ \\STX\EOT\"\DC2\ACK\147\ACK\NUL\151\ACK\SOH\n\+ \\v\n\+ \\ETX\EOT\"\SOH\DC2\EOT\147\ACK\b\US\n\+ \\f\n\+ \\EOT\EOT\"\STX\NUL\DC2\EOT\148\ACK\EOT&\n\+ \\r\n\+ \\ENQ\EOT\"\STX\NUL\ACK\DC2\EOT\148\ACK\EOT\SYN\n\+ \\r\n\+ \\ENQ\EOT\"\STX\NUL\SOH\DC2\EOT\148\ACK\ETB!\n\+ \\r\n\+ \\ENQ\EOT\"\STX\NUL\ETX\DC2\EOT\148\ACK$%\n\+ \\f\n\+ \\EOT\EOT\"\STX\SOH\DC2\EOT\150\ACK\EOT \n\+ \\r\n\+ \\ENQ\EOT\"\STX\SOH\ACK\DC2\EOT\150\ACK\EOT\DC4\n\+ \\r\n\+ \\ENQ\EOT\"\STX\SOH\SOH\DC2\EOT\150\ACK\NAK\ESC\n\+ \\r\n\+ \\ENQ\EOT\"\STX\SOH\ETX\DC2\EOT\150\ACK\RS\US\n\+ \\f\n\+ \\STX\ENQ\ETX\DC2\ACK\153\ACK\NUL\157\ACK\SOH\n\+ \\v\n\+ \\ETX\ENQ\ETX\SOH\DC2\EOT\153\ACK\ENQ\NAK\n\+ \\f\n\+ \\EOT\ENQ\ETX\STX\NUL\DC2\EOT\154\ACK\EOT\SI\n\+ \\r\n\+ \\ENQ\ENQ\ETX\STX\NUL\SOH\DC2\EOT\154\ACK\EOT\n\+ \\n\+ \\r\n\+ \\ENQ\ENQ\ETX\STX\NUL\STX\DC2\EOT\154\ACK\r\SO\n\+ \\f\n\+ \\EOT\ENQ\ETX\STX\SOH\DC2\EOT\155\ACK\EOT\DLE\n\+ \\r\n\+ \\ENQ\ENQ\ETX\STX\SOH\SOH\DC2\EOT\155\ACK\EOT\v\n\+ \\r\n\+ \\ENQ\ENQ\ETX\STX\SOH\STX\DC2\EOT\155\ACK\SO\SI\n\+ \\f\n\+ \\EOT\ENQ\ETX\STX\STX\DC2\EOT\156\ACK\EOT\r\n\+ \\r\n\+ \\ENQ\ENQ\ETX\STX\STX\SOH\DC2\EOT\156\ACK\EOT\b\n\+ \\r\n\+ \\ENQ\ENQ\ETX\STX\STX\STX\DC2\EOT\156\ACK\v\f\n\+ \\f\n\+ \\STX\EOT#\DC2\ACK\159\ACK\NUL\160\ACK\SOH\n\+ \\v\n\+ \\ETX\EOT#\SOH\DC2\EOT\159\ACK\b b\ACKproto3"
@@ -0,0 +1,621 @@+{- This file was auto-generated from routerrpc/router.proto by the proto-lens-protoc program. -}+{-# LANGUAGE ScopedTypeVariables, DataKinds, TypeFamilies, UndecidableInstances, GeneralizedNewtypeDeriving, MultiParamTypeClasses, FlexibleContexts, FlexibleInstances, PatternSynonyms, MagicHash, NoImplicitPrelude, BangPatterns, TypeApplications, OverloadedStrings, DerivingStrategies, DeriveGeneric#-}+{-# OPTIONS_GHC -Wno-unused-imports#-}+{-# OPTIONS_GHC -Wno-duplicate-exports#-}+{-# OPTIONS_GHC -Wno-dodgy-exports#-}+module Proto.Routerrpc.Router_Fields where+import qualified Data.ProtoLens.Runtime.Prelude as Prelude+import qualified Data.ProtoLens.Runtime.Data.Int as Data.Int+import qualified Data.ProtoLens.Runtime.Data.Monoid as Data.Monoid+import qualified Data.ProtoLens.Runtime.Data.Word as Data.Word+import qualified Data.ProtoLens.Runtime.Data.ProtoLens as Data.ProtoLens+import qualified Data.ProtoLens.Runtime.Data.ProtoLens.Encoding.Bytes as Data.ProtoLens.Encoding.Bytes+import qualified Data.ProtoLens.Runtime.Data.ProtoLens.Encoding.Growing as Data.ProtoLens.Encoding.Growing+import qualified Data.ProtoLens.Runtime.Data.ProtoLens.Encoding.Parser.Unsafe as Data.ProtoLens.Encoding.Parser.Unsafe+import qualified Data.ProtoLens.Runtime.Data.ProtoLens.Encoding.Wire as Data.ProtoLens.Encoding.Wire+import qualified Data.ProtoLens.Runtime.Data.ProtoLens.Field as Data.ProtoLens.Field+import qualified Data.ProtoLens.Runtime.Data.ProtoLens.Message.Enum as Data.ProtoLens.Message.Enum+import qualified Data.ProtoLens.Runtime.Data.ProtoLens.Service.Types as Data.ProtoLens.Service.Types+import qualified Data.ProtoLens.Runtime.Lens.Family2 as Lens.Family2+import qualified Data.ProtoLens.Runtime.Lens.Family2.Unchecked as Lens.Family2.Unchecked+import qualified Data.ProtoLens.Runtime.Data.Text as Data.Text+import qualified Data.ProtoLens.Runtime.Data.Map as Data.Map+import qualified Data.ProtoLens.Runtime.Data.ByteString as Data.ByteString+import qualified Data.ProtoLens.Runtime.Data.ByteString.Char8 as Data.ByteString.Char8+import qualified Data.ProtoLens.Runtime.Data.Text.Encoding as Data.Text.Encoding+import qualified Data.ProtoLens.Runtime.Data.Vector as Data.Vector+import qualified Data.ProtoLens.Runtime.Data.Vector.Generic as Data.Vector.Generic+import qualified Data.ProtoLens.Runtime.Data.Vector.Unboxed as Data.Vector.Unboxed+import qualified Data.ProtoLens.Runtime.Text.Read as Text.Read+import qualified Proto.Lnrpc.Ln0+import qualified Proto.Lnrpc.Ln1+action ::+ forall f s a.+ (Prelude.Functor f, Data.ProtoLens.Field.HasField s "action" a) =>+ Lens.Family2.LensLike' f s a+action = Data.ProtoLens.Field.field @"action"+allowSelfPayment ::+ forall f s a.+ (Prelude.Functor f,+ Data.ProtoLens.Field.HasField s "allowSelfPayment" a) =>+ Lens.Family2.LensLike' f s a+allowSelfPayment = Data.ProtoLens.Field.field @"allowSelfPayment"+amp ::+ forall f s a.+ (Prelude.Functor f, Data.ProtoLens.Field.HasField s "amp" a) =>+ Lens.Family2.LensLike' f s a+amp = Data.ProtoLens.Field.field @"amp"+amt ::+ forall f s a.+ (Prelude.Functor f, Data.ProtoLens.Field.HasField s "amt" a) =>+ Lens.Family2.LensLike' f s a+amt = Data.ProtoLens.Field.field @"amt"+amtMsat ::+ forall f s a.+ (Prelude.Functor f, Data.ProtoLens.Field.HasField s "amtMsat" a) =>+ Lens.Family2.LensLike' f s a+amtMsat = Data.ProtoLens.Field.field @"amtMsat"+amtSat ::+ forall f s a.+ (Prelude.Functor f, Data.ProtoLens.Field.HasField s "amtSat" a) =>+ Lens.Family2.LensLike' f s a+amtSat = Data.ProtoLens.Field.field @"amtSat"+chanId ::+ forall f s a.+ (Prelude.Functor f, Data.ProtoLens.Field.HasField s "chanId" a) =>+ Lens.Family2.LensLike' f s a+chanId = Data.ProtoLens.Field.field @"chanId"+chanPoint ::+ forall f s a.+ (Prelude.Functor f,+ Data.ProtoLens.Field.HasField s "chanPoint" a) =>+ Lens.Family2.LensLike' f s a+chanPoint = Data.ProtoLens.Field.field @"chanPoint"+cltvLimit ::+ forall f s a.+ (Prelude.Functor f,+ Data.ProtoLens.Field.HasField s "cltvLimit" a) =>+ Lens.Family2.LensLike' f s a+cltvLimit = Data.ProtoLens.Field.field @"cltvLimit"+config ::+ forall f s a.+ (Prelude.Functor f, Data.ProtoLens.Field.HasField s "config" a) =>+ Lens.Family2.LensLike' f s a+config = Data.ProtoLens.Field.field @"config"+customRecords ::+ forall f s a.+ (Prelude.Functor f,+ Data.ProtoLens.Field.HasField s "customRecords" a) =>+ Lens.Family2.LensLike' f s a+customRecords = Data.ProtoLens.Field.field @"customRecords"+dest ::+ forall f s a.+ (Prelude.Functor f, Data.ProtoLens.Field.HasField s "dest" a) =>+ Lens.Family2.LensLike' f s a+dest = Data.ProtoLens.Field.field @"dest"+destCustomRecords ::+ forall f s a.+ (Prelude.Functor f,+ Data.ProtoLens.Field.HasField s "destCustomRecords" a) =>+ Lens.Family2.LensLike' f s a+destCustomRecords = Data.ProtoLens.Field.field @"destCustomRecords"+destFeatures ::+ forall f s a.+ (Prelude.Functor f,+ Data.ProtoLens.Field.HasField s "destFeatures" a) =>+ Lens.Family2.LensLike' f s a+destFeatures = Data.ProtoLens.Field.field @"destFeatures"+eventType ::+ forall f s a.+ (Prelude.Functor f,+ Data.ProtoLens.Field.HasField s "eventType" a) =>+ Lens.Family2.LensLike' f s a+eventType = Data.ProtoLens.Field.field @"eventType"+failAmtMsat ::+ forall f s a.+ (Prelude.Functor f,+ Data.ProtoLens.Field.HasField s "failAmtMsat" a) =>+ Lens.Family2.LensLike' f s a+failAmtMsat = Data.ProtoLens.Field.field @"failAmtMsat"+failAmtSat ::+ forall f s a.+ (Prelude.Functor f,+ Data.ProtoLens.Field.HasField s "failAmtSat" a) =>+ Lens.Family2.LensLike' f s a+failAmtSat = Data.ProtoLens.Field.field @"failAmtSat"+failTime ::+ forall f s a.+ (Prelude.Functor f,+ Data.ProtoLens.Field.HasField s "failTime" a) =>+ Lens.Family2.LensLike' f s a+failTime = Data.ProtoLens.Field.field @"failTime"+failure ::+ forall f s a.+ (Prelude.Functor f, Data.ProtoLens.Field.HasField s "failure" a) =>+ Lens.Family2.LensLike' f s a+failure = Data.ProtoLens.Field.field @"failure"+failureDetail ::+ forall f s a.+ (Prelude.Functor f,+ Data.ProtoLens.Field.HasField s "failureDetail" a) =>+ Lens.Family2.LensLike' f s a+failureDetail = Data.ProtoLens.Field.field @"failureDetail"+failureString ::+ forall f s a.+ (Prelude.Functor f,+ Data.ProtoLens.Field.HasField s "failureString" a) =>+ Lens.Family2.LensLike' f s a+failureString = Data.ProtoLens.Field.field @"failureString"+feeLimitMsat ::+ forall f s a.+ (Prelude.Functor f,+ Data.ProtoLens.Field.HasField s "feeLimitMsat" a) =>+ Lens.Family2.LensLike' f s a+feeLimitMsat = Data.ProtoLens.Field.field @"feeLimitMsat"+feeLimitSat ::+ forall f s a.+ (Prelude.Functor f,+ Data.ProtoLens.Field.HasField s "feeLimitSat" a) =>+ Lens.Family2.LensLike' f s a+feeLimitSat = Data.ProtoLens.Field.field @"feeLimitSat"+finalCltvDelta ::+ forall f s a.+ (Prelude.Functor f,+ Data.ProtoLens.Field.HasField s "finalCltvDelta" a) =>+ Lens.Family2.LensLike' f s a+finalCltvDelta = Data.ProtoLens.Field.field @"finalCltvDelta"+forwardEvent ::+ forall f s a.+ (Prelude.Functor f,+ Data.ProtoLens.Field.HasField s "forwardEvent" a) =>+ Lens.Family2.LensLike' f s a+forwardEvent = Data.ProtoLens.Field.field @"forwardEvent"+forwardFailEvent ::+ forall f s a.+ (Prelude.Functor f,+ Data.ProtoLens.Field.HasField s "forwardFailEvent" a) =>+ Lens.Family2.LensLike' f s a+forwardFailEvent = Data.ProtoLens.Field.field @"forwardFailEvent"+fromNode ::+ forall f s a.+ (Prelude.Functor f,+ Data.ProtoLens.Field.HasField s "fromNode" a) =>+ Lens.Family2.LensLike' f s a+fromNode = Data.ProtoLens.Field.field @"fromNode"+halfLifeSeconds ::+ forall f s a.+ (Prelude.Functor f,+ Data.ProtoLens.Field.HasField s "halfLifeSeconds" a) =>+ Lens.Family2.LensLike' f s a+halfLifeSeconds = Data.ProtoLens.Field.field @"halfLifeSeconds"+history ::+ forall f s a.+ (Prelude.Functor f, Data.ProtoLens.Field.HasField s "history" a) =>+ Lens.Family2.LensLike' f s a+history = Data.ProtoLens.Field.field @"history"+hopProbability ::+ forall f s a.+ (Prelude.Functor f,+ Data.ProtoLens.Field.HasField s "hopProbability" a) =>+ Lens.Family2.LensLike' f s a+hopProbability = Data.ProtoLens.Field.field @"hopProbability"+hopPubkeys ::+ forall f s a.+ (Prelude.Functor f,+ Data.ProtoLens.Field.HasField s "hopPubkeys" a) =>+ Lens.Family2.LensLike' f s a+hopPubkeys = Data.ProtoLens.Field.field @"hopPubkeys"+htlcId ::+ forall f s a.+ (Prelude.Functor f, Data.ProtoLens.Field.HasField s "htlcId" a) =>+ Lens.Family2.LensLike' f s a+htlcId = Data.ProtoLens.Field.field @"htlcId"+htlcs ::+ forall f s a.+ (Prelude.Functor f, Data.ProtoLens.Field.HasField s "htlcs" a) =>+ Lens.Family2.LensLike' f s a+htlcs = Data.ProtoLens.Field.field @"htlcs"+incomingAmountMsat ::+ forall f s a.+ (Prelude.Functor f,+ Data.ProtoLens.Field.HasField s "incomingAmountMsat" a) =>+ Lens.Family2.LensLike' f s a+incomingAmountMsat+ = Data.ProtoLens.Field.field @"incomingAmountMsat"+incomingAmtMsat ::+ forall f s a.+ (Prelude.Functor f,+ Data.ProtoLens.Field.HasField s "incomingAmtMsat" a) =>+ Lens.Family2.LensLike' f s a+incomingAmtMsat = Data.ProtoLens.Field.field @"incomingAmtMsat"+incomingChannelId ::+ forall f s a.+ (Prelude.Functor f,+ Data.ProtoLens.Field.HasField s "incomingChannelId" a) =>+ Lens.Family2.LensLike' f s a+incomingChannelId = Data.ProtoLens.Field.field @"incomingChannelId"+incomingCircuitKey ::+ forall f s a.+ (Prelude.Functor f,+ Data.ProtoLens.Field.HasField s "incomingCircuitKey" a) =>+ Lens.Family2.LensLike' f s a+incomingCircuitKey+ = Data.ProtoLens.Field.field @"incomingCircuitKey"+incomingExpiry ::+ forall f s a.+ (Prelude.Functor f,+ Data.ProtoLens.Field.HasField s "incomingExpiry" a) =>+ Lens.Family2.LensLike' f s a+incomingExpiry = Data.ProtoLens.Field.field @"incomingExpiry"+incomingHtlcId ::+ forall f s a.+ (Prelude.Functor f,+ Data.ProtoLens.Field.HasField s "incomingHtlcId" a) =>+ Lens.Family2.LensLike' f s a+incomingHtlcId = Data.ProtoLens.Field.field @"incomingHtlcId"+incomingTimelock ::+ forall f s a.+ (Prelude.Functor f,+ Data.ProtoLens.Field.HasField s "incomingTimelock" a) =>+ Lens.Family2.LensLike' f s a+incomingTimelock = Data.ProtoLens.Field.field @"incomingTimelock"+info ::+ forall f s a.+ (Prelude.Functor f, Data.ProtoLens.Field.HasField s "info" a) =>+ Lens.Family2.LensLike' f s a+info = Data.ProtoLens.Field.field @"info"+key ::+ forall f s a.+ (Prelude.Functor f, Data.ProtoLens.Field.HasField s "key" a) =>+ Lens.Family2.LensLike' f s a+key = Data.ProtoLens.Field.field @"key"+lastHopPubkey ::+ forall f s a.+ (Prelude.Functor f,+ Data.ProtoLens.Field.HasField s "lastHopPubkey" a) =>+ Lens.Family2.LensLike' f s a+lastHopPubkey = Data.ProtoLens.Field.field @"lastHopPubkey"+linkFailEvent ::+ forall f s a.+ (Prelude.Functor f,+ Data.ProtoLens.Field.HasField s "linkFailEvent" a) =>+ Lens.Family2.LensLike' f s a+linkFailEvent = Data.ProtoLens.Field.field @"linkFailEvent"+maxParts ::+ forall f s a.+ (Prelude.Functor f,+ Data.ProtoLens.Field.HasField s "maxParts" a) =>+ Lens.Family2.LensLike' f s a+maxParts = Data.ProtoLens.Field.field @"maxParts"+maxShardSizeMsat ::+ forall f s a.+ (Prelude.Functor f,+ Data.ProtoLens.Field.HasField s "maxShardSizeMsat" a) =>+ Lens.Family2.LensLike' f s a+maxShardSizeMsat = Data.ProtoLens.Field.field @"maxShardSizeMsat"+maximumPaymentResults ::+ forall f s a.+ (Prelude.Functor f,+ Data.ProtoLens.Field.HasField s "maximumPaymentResults" a) =>+ Lens.Family2.LensLike' f s a+maximumPaymentResults+ = Data.ProtoLens.Field.field @"maximumPaymentResults"+maybe'chanPoint ::+ forall f s a.+ (Prelude.Functor f,+ Data.ProtoLens.Field.HasField s "maybe'chanPoint" a) =>+ Lens.Family2.LensLike' f s a+maybe'chanPoint = Data.ProtoLens.Field.field @"maybe'chanPoint"+maybe'config ::+ forall f s a.+ (Prelude.Functor f,+ Data.ProtoLens.Field.HasField s "maybe'config" a) =>+ Lens.Family2.LensLike' f s a+maybe'config = Data.ProtoLens.Field.field @"maybe'config"+maybe'event ::+ forall f s a.+ (Prelude.Functor f,+ Data.ProtoLens.Field.HasField s "maybe'event" a) =>+ Lens.Family2.LensLike' f s a+maybe'event = Data.ProtoLens.Field.field @"maybe'event"+maybe'failure ::+ forall f s a.+ (Prelude.Functor f,+ Data.ProtoLens.Field.HasField s "maybe'failure" a) =>+ Lens.Family2.LensLike' f s a+maybe'failure = Data.ProtoLens.Field.field @"maybe'failure"+maybe'forwardEvent ::+ forall f s a.+ (Prelude.Functor f,+ Data.ProtoLens.Field.HasField s "maybe'forwardEvent" a) =>+ Lens.Family2.LensLike' f s a+maybe'forwardEvent+ = Data.ProtoLens.Field.field @"maybe'forwardEvent"+maybe'forwardFailEvent ::+ forall f s a.+ (Prelude.Functor f,+ Data.ProtoLens.Field.HasField s "maybe'forwardFailEvent" a) =>+ Lens.Family2.LensLike' f s a+maybe'forwardFailEvent+ = Data.ProtoLens.Field.field @"maybe'forwardFailEvent"+maybe'history ::+ forall f s a.+ (Prelude.Functor f,+ Data.ProtoLens.Field.HasField s "maybe'history" a) =>+ Lens.Family2.LensLike' f s a+maybe'history = Data.ProtoLens.Field.field @"maybe'history"+maybe'incomingCircuitKey ::+ forall f s a.+ (Prelude.Functor f,+ Data.ProtoLens.Field.HasField s "maybe'incomingCircuitKey" a) =>+ Lens.Family2.LensLike' f s a+maybe'incomingCircuitKey+ = Data.ProtoLens.Field.field @"maybe'incomingCircuitKey"+maybe'info ::+ forall f s a.+ (Prelude.Functor f,+ Data.ProtoLens.Field.HasField s "maybe'info" a) =>+ Lens.Family2.LensLike' f s a+maybe'info = Data.ProtoLens.Field.field @"maybe'info"+maybe'linkFailEvent ::+ forall f s a.+ (Prelude.Functor f,+ Data.ProtoLens.Field.HasField s "maybe'linkFailEvent" a) =>+ Lens.Family2.LensLike' f s a+maybe'linkFailEvent+ = Data.ProtoLens.Field.field @"maybe'linkFailEvent"+maybe'route ::+ forall f s a.+ (Prelude.Functor f,+ Data.ProtoLens.Field.HasField s "maybe'route" a) =>+ Lens.Family2.LensLike' f s a+maybe'route = Data.ProtoLens.Field.field @"maybe'route"+maybe'settleEvent ::+ forall f s a.+ (Prelude.Functor f,+ Data.ProtoLens.Field.HasField s "maybe'settleEvent" a) =>+ Lens.Family2.LensLike' f s a+maybe'settleEvent = Data.ProtoLens.Field.field @"maybe'settleEvent"+minimumFailureRelaxInterval ::+ forall f s a.+ (Prelude.Functor f,+ Data.ProtoLens.Field.HasField s "minimumFailureRelaxInterval" a) =>+ Lens.Family2.LensLike' f s a+minimumFailureRelaxInterval+ = Data.ProtoLens.Field.field @"minimumFailureRelaxInterval"+noInflightUpdates ::+ forall f s a.+ (Prelude.Functor f,+ Data.ProtoLens.Field.HasField s "noInflightUpdates" a) =>+ Lens.Family2.LensLike' f s a+noInflightUpdates = Data.ProtoLens.Field.field @"noInflightUpdates"+nodeFrom ::+ forall f s a.+ (Prelude.Functor f,+ Data.ProtoLens.Field.HasField s "nodeFrom" a) =>+ Lens.Family2.LensLike' f s a+nodeFrom = Data.ProtoLens.Field.field @"nodeFrom"+nodeTo ::+ forall f s a.+ (Prelude.Functor f, Data.ProtoLens.Field.HasField s "nodeTo" a) =>+ Lens.Family2.LensLike' f s a+nodeTo = Data.ProtoLens.Field.field @"nodeTo"+onionBlob ::+ forall f s a.+ (Prelude.Functor f,+ Data.ProtoLens.Field.HasField s "onionBlob" a) =>+ Lens.Family2.LensLike' f s a+onionBlob = Data.ProtoLens.Field.field @"onionBlob"+outgoingAmountMsat ::+ forall f s a.+ (Prelude.Functor f,+ Data.ProtoLens.Field.HasField s "outgoingAmountMsat" a) =>+ Lens.Family2.LensLike' f s a+outgoingAmountMsat+ = Data.ProtoLens.Field.field @"outgoingAmountMsat"+outgoingAmtMsat ::+ forall f s a.+ (Prelude.Functor f,+ Data.ProtoLens.Field.HasField s "outgoingAmtMsat" a) =>+ Lens.Family2.LensLike' f s a+outgoingAmtMsat = Data.ProtoLens.Field.field @"outgoingAmtMsat"+outgoingChanId ::+ forall f s a.+ (Prelude.Functor f,+ Data.ProtoLens.Field.HasField s "outgoingChanId" a) =>+ Lens.Family2.LensLike' f s a+outgoingChanId = Data.ProtoLens.Field.field @"outgoingChanId"+outgoingChanIds ::+ forall f s a.+ (Prelude.Functor f,+ Data.ProtoLens.Field.HasField s "outgoingChanIds" a) =>+ Lens.Family2.LensLike' f s a+outgoingChanIds = Data.ProtoLens.Field.field @"outgoingChanIds"+outgoingChannelId ::+ forall f s a.+ (Prelude.Functor f,+ Data.ProtoLens.Field.HasField s "outgoingChannelId" a) =>+ Lens.Family2.LensLike' f s a+outgoingChannelId = Data.ProtoLens.Field.field @"outgoingChannelId"+outgoingExpiry ::+ forall f s a.+ (Prelude.Functor f,+ Data.ProtoLens.Field.HasField s "outgoingExpiry" a) =>+ Lens.Family2.LensLike' f s a+outgoingExpiry = Data.ProtoLens.Field.field @"outgoingExpiry"+outgoingHtlcId ::+ forall f s a.+ (Prelude.Functor f,+ Data.ProtoLens.Field.HasField s "outgoingHtlcId" a) =>+ Lens.Family2.LensLike' f s a+outgoingHtlcId = Data.ProtoLens.Field.field @"outgoingHtlcId"+outgoingRequestedChanId ::+ forall f s a.+ (Prelude.Functor f,+ Data.ProtoLens.Field.HasField s "outgoingRequestedChanId" a) =>+ Lens.Family2.LensLike' f s a+outgoingRequestedChanId+ = Data.ProtoLens.Field.field @"outgoingRequestedChanId"+outgoingTimelock ::+ forall f s a.+ (Prelude.Functor f,+ Data.ProtoLens.Field.HasField s "outgoingTimelock" a) =>+ Lens.Family2.LensLike' f s a+outgoingTimelock = Data.ProtoLens.Field.field @"outgoingTimelock"+pairs ::+ forall f s a.+ (Prelude.Functor f, Data.ProtoLens.Field.HasField s "pairs" a) =>+ Lens.Family2.LensLike' f s a+pairs = Data.ProtoLens.Field.field @"pairs"+paymentAddr ::+ forall f s a.+ (Prelude.Functor f,+ Data.ProtoLens.Field.HasField s "paymentAddr" a) =>+ Lens.Family2.LensLike' f s a+paymentAddr = Data.ProtoLens.Field.field @"paymentAddr"+paymentHash ::+ forall f s a.+ (Prelude.Functor f,+ Data.ProtoLens.Field.HasField s "paymentHash" a) =>+ Lens.Family2.LensLike' f s a+paymentHash = Data.ProtoLens.Field.field @"paymentHash"+paymentRequest ::+ forall f s a.+ (Prelude.Functor f,+ Data.ProtoLens.Field.HasField s "paymentRequest" a) =>+ Lens.Family2.LensLike' f s a+paymentRequest = Data.ProtoLens.Field.field @"paymentRequest"+preimage ::+ forall f s a.+ (Prelude.Functor f,+ Data.ProtoLens.Field.HasField s "preimage" a) =>+ Lens.Family2.LensLike' f s a+preimage = Data.ProtoLens.Field.field @"preimage"+probability ::+ forall f s a.+ (Prelude.Functor f,+ Data.ProtoLens.Field.HasField s "probability" a) =>+ Lens.Family2.LensLike' f s a+probability = Data.ProtoLens.Field.field @"probability"+route ::+ forall f s a.+ (Prelude.Functor f, Data.ProtoLens.Field.HasField s "route" a) =>+ Lens.Family2.LensLike' f s a+route = Data.ProtoLens.Field.field @"route"+routeHints ::+ forall f s a.+ (Prelude.Functor f,+ Data.ProtoLens.Field.HasField s "routeHints" a) =>+ Lens.Family2.LensLike' f s a+routeHints = Data.ProtoLens.Field.field @"routeHints"+routingFeeMsat ::+ forall f s a.+ (Prelude.Functor f,+ Data.ProtoLens.Field.HasField s "routingFeeMsat" a) =>+ Lens.Family2.LensLike' f s a+routingFeeMsat = Data.ProtoLens.Field.field @"routingFeeMsat"+settleEvent ::+ forall f s a.+ (Prelude.Functor f,+ Data.ProtoLens.Field.HasField s "settleEvent" a) =>+ Lens.Family2.LensLike' f s a+settleEvent = Data.ProtoLens.Field.field @"settleEvent"+state ::+ forall f s a.+ (Prelude.Functor f, Data.ProtoLens.Field.HasField s "state" a) =>+ Lens.Family2.LensLike' f s a+state = Data.ProtoLens.Field.field @"state"+successAmtMsat ::+ forall f s a.+ (Prelude.Functor f,+ Data.ProtoLens.Field.HasField s "successAmtMsat" a) =>+ Lens.Family2.LensLike' f s a+successAmtMsat = Data.ProtoLens.Field.field @"successAmtMsat"+successAmtSat ::+ forall f s a.+ (Prelude.Functor f,+ Data.ProtoLens.Field.HasField s "successAmtSat" a) =>+ Lens.Family2.LensLike' f s a+successAmtSat = Data.ProtoLens.Field.field @"successAmtSat"+successTime ::+ forall f s a.+ (Prelude.Functor f,+ Data.ProtoLens.Field.HasField s "successTime" a) =>+ Lens.Family2.LensLike' f s a+successTime = Data.ProtoLens.Field.field @"successTime"+timeLockDelay ::+ forall f s a.+ (Prelude.Functor f,+ Data.ProtoLens.Field.HasField s "timeLockDelay" a) =>+ Lens.Family2.LensLike' f s a+timeLockDelay = Data.ProtoLens.Field.field @"timeLockDelay"+timeoutSeconds ::+ forall f s a.+ (Prelude.Functor f,+ Data.ProtoLens.Field.HasField s "timeoutSeconds" a) =>+ Lens.Family2.LensLike' f s a+timeoutSeconds = Data.ProtoLens.Field.field @"timeoutSeconds"+timestampNs ::+ forall f s a.+ (Prelude.Functor f,+ Data.ProtoLens.Field.HasField s "timestampNs" a) =>+ Lens.Family2.LensLike' f s a+timestampNs = Data.ProtoLens.Field.field @"timestampNs"+toNode ::+ forall f s a.+ (Prelude.Functor f, Data.ProtoLens.Field.HasField s "toNode" a) =>+ Lens.Family2.LensLike' f s a+toNode = Data.ProtoLens.Field.field @"toNode"+value ::+ forall f s a.+ (Prelude.Functor f, Data.ProtoLens.Field.HasField s "value" a) =>+ Lens.Family2.LensLike' f s a+value = Data.ProtoLens.Field.field @"value"+vec'destFeatures ::+ forall f s a.+ (Prelude.Functor f,+ Data.ProtoLens.Field.HasField s "vec'destFeatures" a) =>+ Lens.Family2.LensLike' f s a+vec'destFeatures = Data.ProtoLens.Field.field @"vec'destFeatures"+vec'hopPubkeys ::+ forall f s a.+ (Prelude.Functor f,+ Data.ProtoLens.Field.HasField s "vec'hopPubkeys" a) =>+ Lens.Family2.LensLike' f s a+vec'hopPubkeys = Data.ProtoLens.Field.field @"vec'hopPubkeys"+vec'htlcs ::+ forall f s a.+ (Prelude.Functor f,+ Data.ProtoLens.Field.HasField s "vec'htlcs" a) =>+ Lens.Family2.LensLike' f s a+vec'htlcs = Data.ProtoLens.Field.field @"vec'htlcs"+vec'outgoingChanIds ::+ forall f s a.+ (Prelude.Functor f,+ Data.ProtoLens.Field.HasField s "vec'outgoingChanIds" a) =>+ Lens.Family2.LensLike' f s a+vec'outgoingChanIds+ = Data.ProtoLens.Field.field @"vec'outgoingChanIds"+vec'pairs ::+ forall f s a.+ (Prelude.Functor f,+ Data.ProtoLens.Field.HasField s "vec'pairs" a) =>+ Lens.Family2.LensLike' f s a+vec'pairs = Data.ProtoLens.Field.field @"vec'pairs"+vec'routeHints ::+ forall f s a.+ (Prelude.Functor f,+ Data.ProtoLens.Field.HasField s "vec'routeHints" a) =>+ Lens.Family2.LensLike' f s a+vec'routeHints = Data.ProtoLens.Field.field @"vec'routeHints"+weight ::+ forall f s a.+ (Prelude.Functor f, Data.ProtoLens.Field.HasField s "weight" a) =>+ Lens.Family2.LensLike' f s a+weight = Data.ProtoLens.Field.field @"weight"+wireFailure ::+ forall f s a.+ (Prelude.Functor f,+ Data.ProtoLens.Field.HasField s "wireFailure" a) =>+ Lens.Family2.LensLike' f s a+wireFailure = Data.ProtoLens.Field.field @"wireFailure"
@@ -0,0 +1,3204 @@+{- This file was auto-generated from signrpc/signer.proto by the proto-lens-protoc program. -}+{-# LANGUAGE ScopedTypeVariables, DataKinds, TypeFamilies, UndecidableInstances, GeneralizedNewtypeDeriving, MultiParamTypeClasses, FlexibleContexts, FlexibleInstances, PatternSynonyms, MagicHash, NoImplicitPrelude, BangPatterns, TypeApplications, OverloadedStrings, DerivingStrategies, DeriveGeneric#-}+{-# OPTIONS_GHC -Wno-unused-imports#-}+{-# OPTIONS_GHC -Wno-duplicate-exports#-}+{-# OPTIONS_GHC -Wno-dodgy-exports#-}+module Proto.Signrpc.Signer (+ Signer(..), InputScript(), InputScriptResp(), KeyDescriptor(),+ KeyLocator(), SharedKeyRequest(), SharedKeyResponse(),+ SignDescriptor(), SignMessageReq(), SignMessageResp(), SignReq(),+ SignResp(), TxOut(), VerifyMessageReq(), VerifyMessageResp()+ ) where+import qualified Data.ProtoLens.Runtime.Control.DeepSeq as Control.DeepSeq+import qualified Data.ProtoLens.Runtime.Data.ProtoLens.Prism as Data.ProtoLens.Prism+import qualified Text.PrettyPrint.GenericPretty.Instance+import qualified GHC.Generics+import qualified Text.PrettyPrint.GenericPretty+import qualified Data.ProtoLens.Runtime.Prelude as Prelude+import qualified Data.ProtoLens.Runtime.Data.Int as Data.Int+import qualified Data.ProtoLens.Runtime.Data.Monoid as Data.Monoid+import qualified Data.ProtoLens.Runtime.Data.Word as Data.Word+import qualified Data.ProtoLens.Runtime.Data.ProtoLens as Data.ProtoLens+import qualified Data.ProtoLens.Runtime.Data.ProtoLens.Encoding.Bytes as Data.ProtoLens.Encoding.Bytes+import qualified Data.ProtoLens.Runtime.Data.ProtoLens.Encoding.Growing as Data.ProtoLens.Encoding.Growing+import qualified Data.ProtoLens.Runtime.Data.ProtoLens.Encoding.Parser.Unsafe as Data.ProtoLens.Encoding.Parser.Unsafe+import qualified Data.ProtoLens.Runtime.Data.ProtoLens.Encoding.Wire as Data.ProtoLens.Encoding.Wire+import qualified Data.ProtoLens.Runtime.Data.ProtoLens.Field as Data.ProtoLens.Field+import qualified Data.ProtoLens.Runtime.Data.ProtoLens.Message.Enum as Data.ProtoLens.Message.Enum+import qualified Data.ProtoLens.Runtime.Data.ProtoLens.Service.Types as Data.ProtoLens.Service.Types+import qualified Data.ProtoLens.Runtime.Lens.Family2 as Lens.Family2+import qualified Data.ProtoLens.Runtime.Lens.Family2.Unchecked as Lens.Family2.Unchecked+import qualified Data.ProtoLens.Runtime.Data.Text as Data.Text+import qualified Data.ProtoLens.Runtime.Data.Map as Data.Map+import qualified Data.ProtoLens.Runtime.Data.ByteString as Data.ByteString+import qualified Data.ProtoLens.Runtime.Data.ByteString.Char8 as Data.ByteString.Char8+import qualified Data.ProtoLens.Runtime.Data.Text.Encoding as Data.Text.Encoding+import qualified Data.ProtoLens.Runtime.Data.Vector as Data.Vector+import qualified Data.ProtoLens.Runtime.Data.Vector.Generic as Data.Vector.Generic+import qualified Data.ProtoLens.Runtime.Data.Vector.Unboxed as Data.Vector.Unboxed+import qualified Data.ProtoLens.Runtime.Text.Read as Text.Read+{- | Fields :+ + * 'Proto.Signrpc.Signer_Fields.witness' @:: Lens' InputScript [Data.ByteString.ByteString]@+ * 'Proto.Signrpc.Signer_Fields.vec'witness' @:: Lens' InputScript (Data.Vector.Vector Data.ByteString.ByteString)@+ * 'Proto.Signrpc.Signer_Fields.sigScript' @:: Lens' InputScript Data.ByteString.ByteString@ -}+data InputScript+ = InputScript'_constructor {_InputScript'witness :: !(Data.Vector.Vector Data.ByteString.ByteString),+ _InputScript'sigScript :: !Data.ByteString.ByteString,+ _InputScript'_unknownFields :: !Data.ProtoLens.FieldSet}+ deriving stock (Prelude.Eq, Prelude.Ord, GHC.Generics.Generic)+instance Prelude.Show InputScript where+ showsPrec _ __x __s+ = Prelude.showChar+ '{'+ (Prelude.showString+ (Data.ProtoLens.showMessageShort __x) (Prelude.showChar '}' __s))+instance Text.PrettyPrint.GenericPretty.Out InputScript+instance Data.ProtoLens.Field.HasField InputScript "witness" [Data.ByteString.ByteString] where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _InputScript'witness+ (\ x__ y__ -> x__ {_InputScript'witness = y__}))+ (Lens.Family2.Unchecked.lens+ Data.Vector.Generic.toList+ (\ _ y__ -> Data.Vector.Generic.fromList y__))+instance Data.ProtoLens.Field.HasField InputScript "vec'witness" (Data.Vector.Vector Data.ByteString.ByteString) where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _InputScript'witness+ (\ x__ y__ -> x__ {_InputScript'witness = y__}))+ Prelude.id+instance Data.ProtoLens.Field.HasField InputScript "sigScript" Data.ByteString.ByteString where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _InputScript'sigScript+ (\ x__ y__ -> x__ {_InputScript'sigScript = y__}))+ Prelude.id+instance Data.ProtoLens.Message InputScript where+ messageName _ = Data.Text.pack "signrpc.InputScript"+ packedMessageDescriptor _+ = "\n\+ \\vInputScript\DC2\CAN\n\+ \\awitness\CAN\SOH \ETX(\fR\awitness\DC2\GS\n\+ \\n\+ \sig_script\CAN\STX \SOH(\fR\tsigScript"+ packedFileDescriptor _ = packedFileDescriptor+ fieldsByTag+ = let+ witness__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "witness"+ (Data.ProtoLens.ScalarField Data.ProtoLens.BytesField ::+ Data.ProtoLens.FieldTypeDescriptor Data.ByteString.ByteString)+ (Data.ProtoLens.RepeatedField+ Data.ProtoLens.Unpacked (Data.ProtoLens.Field.field @"witness")) ::+ Data.ProtoLens.FieldDescriptor InputScript+ sigScript__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "sig_script"+ (Data.ProtoLens.ScalarField Data.ProtoLens.BytesField ::+ Data.ProtoLens.FieldTypeDescriptor Data.ByteString.ByteString)+ (Data.ProtoLens.PlainField+ Data.ProtoLens.Optional+ (Data.ProtoLens.Field.field @"sigScript")) ::+ Data.ProtoLens.FieldDescriptor InputScript+ in+ Data.Map.fromList+ [(Data.ProtoLens.Tag 1, witness__field_descriptor),+ (Data.ProtoLens.Tag 2, sigScript__field_descriptor)]+ unknownFields+ = Lens.Family2.Unchecked.lens+ _InputScript'_unknownFields+ (\ x__ y__ -> x__ {_InputScript'_unknownFields = y__})+ defMessage+ = InputScript'_constructor+ {_InputScript'witness = Data.Vector.Generic.empty,+ _InputScript'sigScript = Data.ProtoLens.fieldDefault,+ _InputScript'_unknownFields = []}+ parseMessage+ = let+ loop ::+ InputScript+ -> Data.ProtoLens.Encoding.Growing.Growing Data.Vector.Vector Data.ProtoLens.Encoding.Growing.RealWorld Data.ByteString.ByteString+ -> Data.ProtoLens.Encoding.Bytes.Parser InputScript+ loop x mutable'witness+ = do end <- Data.ProtoLens.Encoding.Bytes.atEnd+ if end then+ do frozen'witness <- Data.ProtoLens.Encoding.Parser.Unsafe.unsafeLiftIO+ (Data.ProtoLens.Encoding.Growing.unsafeFreeze+ mutable'witness)+ (let missing = []+ in+ if Prelude.null missing then+ Prelude.return ()+ else+ Prelude.fail+ ((Prelude.++)+ "Missing required fields: "+ (Prelude.show (missing :: [Prelude.String]))))+ Prelude.return+ (Lens.Family2.over+ Data.ProtoLens.unknownFields (\ !t -> Prelude.reverse t)+ (Lens.Family2.set+ (Data.ProtoLens.Field.field @"vec'witness") frozen'witness x))+ else+ do tag <- Data.ProtoLens.Encoding.Bytes.getVarInt+ case tag of+ 10+ -> do !y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (do len <- Data.ProtoLens.Encoding.Bytes.getVarInt+ Data.ProtoLens.Encoding.Bytes.getBytes+ (Prelude.fromIntegral len))+ "witness"+ v <- Data.ProtoLens.Encoding.Parser.Unsafe.unsafeLiftIO+ (Data.ProtoLens.Encoding.Growing.append mutable'witness y)+ loop x v+ 18+ -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (do len <- Data.ProtoLens.Encoding.Bytes.getVarInt+ Data.ProtoLens.Encoding.Bytes.getBytes+ (Prelude.fromIntegral len))+ "sig_script"+ loop+ (Lens.Family2.set (Data.ProtoLens.Field.field @"sigScript") y x)+ mutable'witness+ wire+ -> do !y <- Data.ProtoLens.Encoding.Wire.parseTaggedValueFromWire+ wire+ loop+ (Lens.Family2.over+ Data.ProtoLens.unknownFields (\ !t -> (:) y t) x)+ mutable'witness+ in+ (Data.ProtoLens.Encoding.Bytes.<?>)+ (do mutable'witness <- Data.ProtoLens.Encoding.Parser.Unsafe.unsafeLiftIO+ Data.ProtoLens.Encoding.Growing.new+ loop Data.ProtoLens.defMessage mutable'witness)+ "InputScript"+ buildMessage+ = \ _x+ -> (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.foldMapBuilder+ (\ _v+ -> (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 10)+ ((\ bs+ -> (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt+ (Prelude.fromIntegral (Data.ByteString.length bs)))+ (Data.ProtoLens.Encoding.Bytes.putBytes bs))+ _v))+ (Lens.Family2.view (Data.ProtoLens.Field.field @"vec'witness") _x))+ ((Data.Monoid.<>)+ (let+ _v = Lens.Family2.view (Data.ProtoLens.Field.field @"sigScript") _x+ in+ if (Prelude.==) _v Data.ProtoLens.fieldDefault then+ Data.Monoid.mempty+ else+ (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 18)+ ((\ bs+ -> (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt+ (Prelude.fromIntegral (Data.ByteString.length bs)))+ (Data.ProtoLens.Encoding.Bytes.putBytes bs))+ _v))+ (Data.ProtoLens.Encoding.Wire.buildFieldSet+ (Lens.Family2.view Data.ProtoLens.unknownFields _x)))+instance Control.DeepSeq.NFData InputScript where+ rnf+ = \ x__+ -> Control.DeepSeq.deepseq+ (_InputScript'_unknownFields x__)+ (Control.DeepSeq.deepseq+ (_InputScript'witness x__)+ (Control.DeepSeq.deepseq (_InputScript'sigScript x__) ()))+{- | Fields :+ + * 'Proto.Signrpc.Signer_Fields.inputScripts' @:: Lens' InputScriptResp [InputScript]@+ * 'Proto.Signrpc.Signer_Fields.vec'inputScripts' @:: Lens' InputScriptResp (Data.Vector.Vector InputScript)@ -}+data InputScriptResp+ = InputScriptResp'_constructor {_InputScriptResp'inputScripts :: !(Data.Vector.Vector InputScript),+ _InputScriptResp'_unknownFields :: !Data.ProtoLens.FieldSet}+ deriving stock (Prelude.Eq, Prelude.Ord, GHC.Generics.Generic)+instance Prelude.Show InputScriptResp where+ showsPrec _ __x __s+ = Prelude.showChar+ '{'+ (Prelude.showString+ (Data.ProtoLens.showMessageShort __x) (Prelude.showChar '}' __s))+instance Text.PrettyPrint.GenericPretty.Out InputScriptResp+instance Data.ProtoLens.Field.HasField InputScriptResp "inputScripts" [InputScript] where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _InputScriptResp'inputScripts+ (\ x__ y__ -> x__ {_InputScriptResp'inputScripts = y__}))+ (Lens.Family2.Unchecked.lens+ Data.Vector.Generic.toList+ (\ _ y__ -> Data.Vector.Generic.fromList y__))+instance Data.ProtoLens.Field.HasField InputScriptResp "vec'inputScripts" (Data.Vector.Vector InputScript) where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _InputScriptResp'inputScripts+ (\ x__ y__ -> x__ {_InputScriptResp'inputScripts = y__}))+ Prelude.id+instance Data.ProtoLens.Message InputScriptResp where+ messageName _ = Data.Text.pack "signrpc.InputScriptResp"+ packedMessageDescriptor _+ = "\n\+ \\SIInputScriptResp\DC29\n\+ \\rinput_scripts\CAN\SOH \ETX(\v2\DC4.signrpc.InputScriptR\finputScripts"+ packedFileDescriptor _ = packedFileDescriptor+ fieldsByTag+ = let+ inputScripts__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "input_scripts"+ (Data.ProtoLens.MessageField Data.ProtoLens.MessageType ::+ Data.ProtoLens.FieldTypeDescriptor InputScript)+ (Data.ProtoLens.RepeatedField+ Data.ProtoLens.Unpacked+ (Data.ProtoLens.Field.field @"inputScripts")) ::+ Data.ProtoLens.FieldDescriptor InputScriptResp+ in+ Data.Map.fromList+ [(Data.ProtoLens.Tag 1, inputScripts__field_descriptor)]+ unknownFields+ = Lens.Family2.Unchecked.lens+ _InputScriptResp'_unknownFields+ (\ x__ y__ -> x__ {_InputScriptResp'_unknownFields = y__})+ defMessage+ = InputScriptResp'_constructor+ {_InputScriptResp'inputScripts = Data.Vector.Generic.empty,+ _InputScriptResp'_unknownFields = []}+ parseMessage+ = let+ loop ::+ InputScriptResp+ -> Data.ProtoLens.Encoding.Growing.Growing Data.Vector.Vector Data.ProtoLens.Encoding.Growing.RealWorld InputScript+ -> Data.ProtoLens.Encoding.Bytes.Parser InputScriptResp+ loop x mutable'inputScripts+ = do end <- Data.ProtoLens.Encoding.Bytes.atEnd+ if end then+ do frozen'inputScripts <- Data.ProtoLens.Encoding.Parser.Unsafe.unsafeLiftIO+ (Data.ProtoLens.Encoding.Growing.unsafeFreeze+ mutable'inputScripts)+ (let missing = []+ in+ if Prelude.null missing then+ Prelude.return ()+ else+ Prelude.fail+ ((Prelude.++)+ "Missing required fields: "+ (Prelude.show (missing :: [Prelude.String]))))+ Prelude.return+ (Lens.Family2.over+ Data.ProtoLens.unknownFields (\ !t -> Prelude.reverse t)+ (Lens.Family2.set+ (Data.ProtoLens.Field.field @"vec'inputScripts")+ frozen'inputScripts x))+ else+ do tag <- Data.ProtoLens.Encoding.Bytes.getVarInt+ case tag of+ 10+ -> do !y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (do len <- Data.ProtoLens.Encoding.Bytes.getVarInt+ Data.ProtoLens.Encoding.Bytes.isolate+ (Prelude.fromIntegral len)+ Data.ProtoLens.parseMessage)+ "input_scripts"+ v <- Data.ProtoLens.Encoding.Parser.Unsafe.unsafeLiftIO+ (Data.ProtoLens.Encoding.Growing.append+ mutable'inputScripts y)+ loop x v+ wire+ -> do !y <- Data.ProtoLens.Encoding.Wire.parseTaggedValueFromWire+ wire+ loop+ (Lens.Family2.over+ Data.ProtoLens.unknownFields (\ !t -> (:) y t) x)+ mutable'inputScripts+ in+ (Data.ProtoLens.Encoding.Bytes.<?>)+ (do mutable'inputScripts <- Data.ProtoLens.Encoding.Parser.Unsafe.unsafeLiftIO+ Data.ProtoLens.Encoding.Growing.new+ loop Data.ProtoLens.defMessage mutable'inputScripts)+ "InputScriptResp"+ buildMessage+ = \ _x+ -> (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.foldMapBuilder+ (\ _v+ -> (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 10)+ ((Prelude..)+ (\ bs+ -> (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt+ (Prelude.fromIntegral (Data.ByteString.length bs)))+ (Data.ProtoLens.Encoding.Bytes.putBytes bs))+ Data.ProtoLens.encodeMessage _v))+ (Lens.Family2.view+ (Data.ProtoLens.Field.field @"vec'inputScripts") _x))+ (Data.ProtoLens.Encoding.Wire.buildFieldSet+ (Lens.Family2.view Data.ProtoLens.unknownFields _x))+instance Control.DeepSeq.NFData InputScriptResp where+ rnf+ = \ x__+ -> Control.DeepSeq.deepseq+ (_InputScriptResp'_unknownFields x__)+ (Control.DeepSeq.deepseq (_InputScriptResp'inputScripts x__) ())+{- | Fields :+ + * 'Proto.Signrpc.Signer_Fields.rawKeyBytes' @:: Lens' KeyDescriptor Data.ByteString.ByteString@+ * 'Proto.Signrpc.Signer_Fields.keyLoc' @:: Lens' KeyDescriptor KeyLocator@+ * 'Proto.Signrpc.Signer_Fields.maybe'keyLoc' @:: Lens' KeyDescriptor (Prelude.Maybe KeyLocator)@ -}+data KeyDescriptor+ = KeyDescriptor'_constructor {_KeyDescriptor'rawKeyBytes :: !Data.ByteString.ByteString,+ _KeyDescriptor'keyLoc :: !(Prelude.Maybe KeyLocator),+ _KeyDescriptor'_unknownFields :: !Data.ProtoLens.FieldSet}+ deriving stock (Prelude.Eq, Prelude.Ord, GHC.Generics.Generic)+instance Prelude.Show KeyDescriptor where+ showsPrec _ __x __s+ = Prelude.showChar+ '{'+ (Prelude.showString+ (Data.ProtoLens.showMessageShort __x) (Prelude.showChar '}' __s))+instance Text.PrettyPrint.GenericPretty.Out KeyDescriptor+instance Data.ProtoLens.Field.HasField KeyDescriptor "rawKeyBytes" Data.ByteString.ByteString where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _KeyDescriptor'rawKeyBytes+ (\ x__ y__ -> x__ {_KeyDescriptor'rawKeyBytes = y__}))+ Prelude.id+instance Data.ProtoLens.Field.HasField KeyDescriptor "keyLoc" KeyLocator where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _KeyDescriptor'keyLoc+ (\ x__ y__ -> x__ {_KeyDescriptor'keyLoc = y__}))+ (Data.ProtoLens.maybeLens Data.ProtoLens.defMessage)+instance Data.ProtoLens.Field.HasField KeyDescriptor "maybe'keyLoc" (Prelude.Maybe KeyLocator) where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _KeyDescriptor'keyLoc+ (\ x__ y__ -> x__ {_KeyDescriptor'keyLoc = y__}))+ Prelude.id+instance Data.ProtoLens.Message KeyDescriptor where+ messageName _ = Data.Text.pack "signrpc.KeyDescriptor"+ packedMessageDescriptor _+ = "\n\+ \\rKeyDescriptor\DC2\"\n\+ \\rraw_key_bytes\CAN\SOH \SOH(\fR\vrawKeyBytes\DC2,\n\+ \\akey_loc\CAN\STX \SOH(\v2\DC3.signrpc.KeyLocatorR\ACKkeyLoc"+ packedFileDescriptor _ = packedFileDescriptor+ fieldsByTag+ = let+ rawKeyBytes__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "raw_key_bytes"+ (Data.ProtoLens.ScalarField Data.ProtoLens.BytesField ::+ Data.ProtoLens.FieldTypeDescriptor Data.ByteString.ByteString)+ (Data.ProtoLens.PlainField+ Data.ProtoLens.Optional+ (Data.ProtoLens.Field.field @"rawKeyBytes")) ::+ Data.ProtoLens.FieldDescriptor KeyDescriptor+ keyLoc__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "key_loc"+ (Data.ProtoLens.MessageField Data.ProtoLens.MessageType ::+ Data.ProtoLens.FieldTypeDescriptor KeyLocator)+ (Data.ProtoLens.OptionalField+ (Data.ProtoLens.Field.field @"maybe'keyLoc")) ::+ Data.ProtoLens.FieldDescriptor KeyDescriptor+ in+ Data.Map.fromList+ [(Data.ProtoLens.Tag 1, rawKeyBytes__field_descriptor),+ (Data.ProtoLens.Tag 2, keyLoc__field_descriptor)]+ unknownFields+ = Lens.Family2.Unchecked.lens+ _KeyDescriptor'_unknownFields+ (\ x__ y__ -> x__ {_KeyDescriptor'_unknownFields = y__})+ defMessage+ = KeyDescriptor'_constructor+ {_KeyDescriptor'rawKeyBytes = Data.ProtoLens.fieldDefault,+ _KeyDescriptor'keyLoc = Prelude.Nothing,+ _KeyDescriptor'_unknownFields = []}+ parseMessage+ = let+ loop ::+ KeyDescriptor -> Data.ProtoLens.Encoding.Bytes.Parser KeyDescriptor+ loop x+ = do end <- Data.ProtoLens.Encoding.Bytes.atEnd+ if end then+ do (let missing = []+ in+ if Prelude.null missing then+ Prelude.return ()+ else+ Prelude.fail+ ((Prelude.++)+ "Missing required fields: "+ (Prelude.show (missing :: [Prelude.String]))))+ Prelude.return+ (Lens.Family2.over+ Data.ProtoLens.unknownFields (\ !t -> Prelude.reverse t) x)+ else+ do tag <- Data.ProtoLens.Encoding.Bytes.getVarInt+ case tag of+ 10+ -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (do len <- Data.ProtoLens.Encoding.Bytes.getVarInt+ Data.ProtoLens.Encoding.Bytes.getBytes+ (Prelude.fromIntegral len))+ "raw_key_bytes"+ loop+ (Lens.Family2.set (Data.ProtoLens.Field.field @"rawKeyBytes") y x)+ 18+ -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (do len <- Data.ProtoLens.Encoding.Bytes.getVarInt+ Data.ProtoLens.Encoding.Bytes.isolate+ (Prelude.fromIntegral len) Data.ProtoLens.parseMessage)+ "key_loc"+ loop (Lens.Family2.set (Data.ProtoLens.Field.field @"keyLoc") y x)+ wire+ -> do !y <- Data.ProtoLens.Encoding.Wire.parseTaggedValueFromWire+ wire+ loop+ (Lens.Family2.over+ Data.ProtoLens.unknownFields (\ !t -> (:) y t) x)+ in+ (Data.ProtoLens.Encoding.Bytes.<?>)+ (do loop Data.ProtoLens.defMessage) "KeyDescriptor"+ buildMessage+ = \ _x+ -> (Data.Monoid.<>)+ (let+ _v+ = Lens.Family2.view (Data.ProtoLens.Field.field @"rawKeyBytes") _x+ in+ if (Prelude.==) _v Data.ProtoLens.fieldDefault then+ Data.Monoid.mempty+ else+ (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 10)+ ((\ bs+ -> (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt+ (Prelude.fromIntegral (Data.ByteString.length bs)))+ (Data.ProtoLens.Encoding.Bytes.putBytes bs))+ _v))+ ((Data.Monoid.<>)+ (case+ Lens.Family2.view (Data.ProtoLens.Field.field @"maybe'keyLoc") _x+ of+ Prelude.Nothing -> Data.Monoid.mempty+ (Prelude.Just _v)+ -> (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 18)+ ((Prelude..)+ (\ bs+ -> (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt+ (Prelude.fromIntegral (Data.ByteString.length bs)))+ (Data.ProtoLens.Encoding.Bytes.putBytes bs))+ Data.ProtoLens.encodeMessage _v))+ (Data.ProtoLens.Encoding.Wire.buildFieldSet+ (Lens.Family2.view Data.ProtoLens.unknownFields _x)))+instance Control.DeepSeq.NFData KeyDescriptor where+ rnf+ = \ x__+ -> Control.DeepSeq.deepseq+ (_KeyDescriptor'_unknownFields x__)+ (Control.DeepSeq.deepseq+ (_KeyDescriptor'rawKeyBytes x__)+ (Control.DeepSeq.deepseq (_KeyDescriptor'keyLoc x__) ()))+{- | Fields :+ + * 'Proto.Signrpc.Signer_Fields.keyFamily' @:: Lens' KeyLocator Data.Int.Int32@+ * 'Proto.Signrpc.Signer_Fields.keyIndex' @:: Lens' KeyLocator Data.Int.Int32@ -}+data KeyLocator+ = KeyLocator'_constructor {_KeyLocator'keyFamily :: !Data.Int.Int32,+ _KeyLocator'keyIndex :: !Data.Int.Int32,+ _KeyLocator'_unknownFields :: !Data.ProtoLens.FieldSet}+ deriving stock (Prelude.Eq, Prelude.Ord, GHC.Generics.Generic)+instance Prelude.Show KeyLocator where+ showsPrec _ __x __s+ = Prelude.showChar+ '{'+ (Prelude.showString+ (Data.ProtoLens.showMessageShort __x) (Prelude.showChar '}' __s))+instance Text.PrettyPrint.GenericPretty.Out KeyLocator+instance Data.ProtoLens.Field.HasField KeyLocator "keyFamily" Data.Int.Int32 where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _KeyLocator'keyFamily+ (\ x__ y__ -> x__ {_KeyLocator'keyFamily = y__}))+ Prelude.id+instance Data.ProtoLens.Field.HasField KeyLocator "keyIndex" Data.Int.Int32 where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _KeyLocator'keyIndex+ (\ x__ y__ -> x__ {_KeyLocator'keyIndex = y__}))+ Prelude.id+instance Data.ProtoLens.Message KeyLocator where+ messageName _ = Data.Text.pack "signrpc.KeyLocator"+ packedMessageDescriptor _+ = "\n\+ \\n\+ \KeyLocator\DC2\GS\n\+ \\n\+ \key_family\CAN\SOH \SOH(\ENQR\tkeyFamily\DC2\ESC\n\+ \\tkey_index\CAN\STX \SOH(\ENQR\bkeyIndex"+ packedFileDescriptor _ = packedFileDescriptor+ fieldsByTag+ = let+ keyFamily__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "key_family"+ (Data.ProtoLens.ScalarField Data.ProtoLens.Int32Field ::+ Data.ProtoLens.FieldTypeDescriptor Data.Int.Int32)+ (Data.ProtoLens.PlainField+ Data.ProtoLens.Optional+ (Data.ProtoLens.Field.field @"keyFamily")) ::+ Data.ProtoLens.FieldDescriptor KeyLocator+ keyIndex__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "key_index"+ (Data.ProtoLens.ScalarField Data.ProtoLens.Int32Field ::+ Data.ProtoLens.FieldTypeDescriptor Data.Int.Int32)+ (Data.ProtoLens.PlainField+ Data.ProtoLens.Optional+ (Data.ProtoLens.Field.field @"keyIndex")) ::+ Data.ProtoLens.FieldDescriptor KeyLocator+ in+ Data.Map.fromList+ [(Data.ProtoLens.Tag 1, keyFamily__field_descriptor),+ (Data.ProtoLens.Tag 2, keyIndex__field_descriptor)]+ unknownFields+ = Lens.Family2.Unchecked.lens+ _KeyLocator'_unknownFields+ (\ x__ y__ -> x__ {_KeyLocator'_unknownFields = y__})+ defMessage+ = KeyLocator'_constructor+ {_KeyLocator'keyFamily = Data.ProtoLens.fieldDefault,+ _KeyLocator'keyIndex = Data.ProtoLens.fieldDefault,+ _KeyLocator'_unknownFields = []}+ parseMessage+ = let+ loop ::+ KeyLocator -> Data.ProtoLens.Encoding.Bytes.Parser KeyLocator+ loop x+ = do end <- Data.ProtoLens.Encoding.Bytes.atEnd+ if end then+ do (let missing = []+ in+ if Prelude.null missing then+ Prelude.return ()+ else+ Prelude.fail+ ((Prelude.++)+ "Missing required fields: "+ (Prelude.show (missing :: [Prelude.String]))))+ Prelude.return+ (Lens.Family2.over+ Data.ProtoLens.unknownFields (\ !t -> Prelude.reverse t) x)+ else+ do tag <- Data.ProtoLens.Encoding.Bytes.getVarInt+ case tag of+ 8 -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (Prelude.fmap+ Prelude.fromIntegral+ Data.ProtoLens.Encoding.Bytes.getVarInt)+ "key_family"+ loop+ (Lens.Family2.set (Data.ProtoLens.Field.field @"keyFamily") y x)+ 16+ -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (Prelude.fmap+ Prelude.fromIntegral+ Data.ProtoLens.Encoding.Bytes.getVarInt)+ "key_index"+ loop+ (Lens.Family2.set (Data.ProtoLens.Field.field @"keyIndex") y x)+ wire+ -> do !y <- Data.ProtoLens.Encoding.Wire.parseTaggedValueFromWire+ wire+ loop+ (Lens.Family2.over+ Data.ProtoLens.unknownFields (\ !t -> (:) y t) x)+ in+ (Data.ProtoLens.Encoding.Bytes.<?>)+ (do loop Data.ProtoLens.defMessage) "KeyLocator"+ buildMessage+ = \ _x+ -> (Data.Monoid.<>)+ (let+ _v = Lens.Family2.view (Data.ProtoLens.Field.field @"keyFamily") _x+ in+ if (Prelude.==) _v Data.ProtoLens.fieldDefault then+ Data.Monoid.mempty+ else+ (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 8)+ ((Prelude..)+ Data.ProtoLens.Encoding.Bytes.putVarInt Prelude.fromIntegral _v))+ ((Data.Monoid.<>)+ (let+ _v = Lens.Family2.view (Data.ProtoLens.Field.field @"keyIndex") _x+ in+ if (Prelude.==) _v Data.ProtoLens.fieldDefault then+ Data.Monoid.mempty+ else+ (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 16)+ ((Prelude..)+ Data.ProtoLens.Encoding.Bytes.putVarInt Prelude.fromIntegral _v))+ (Data.ProtoLens.Encoding.Wire.buildFieldSet+ (Lens.Family2.view Data.ProtoLens.unknownFields _x)))+instance Control.DeepSeq.NFData KeyLocator where+ rnf+ = \ x__+ -> Control.DeepSeq.deepseq+ (_KeyLocator'_unknownFields x__)+ (Control.DeepSeq.deepseq+ (_KeyLocator'keyFamily x__)+ (Control.DeepSeq.deepseq (_KeyLocator'keyIndex x__) ()))+{- | Fields :+ + * 'Proto.Signrpc.Signer_Fields.ephemeralPubkey' @:: Lens' SharedKeyRequest Data.ByteString.ByteString@+ * 'Proto.Signrpc.Signer_Fields.keyLoc' @:: Lens' SharedKeyRequest KeyLocator@+ * 'Proto.Signrpc.Signer_Fields.maybe'keyLoc' @:: Lens' SharedKeyRequest (Prelude.Maybe KeyLocator)@+ * 'Proto.Signrpc.Signer_Fields.keyDesc' @:: Lens' SharedKeyRequest KeyDescriptor@+ * 'Proto.Signrpc.Signer_Fields.maybe'keyDesc' @:: Lens' SharedKeyRequest (Prelude.Maybe KeyDescriptor)@ -}+data SharedKeyRequest+ = SharedKeyRequest'_constructor {_SharedKeyRequest'ephemeralPubkey :: !Data.ByteString.ByteString,+ _SharedKeyRequest'keyLoc :: !(Prelude.Maybe KeyLocator),+ _SharedKeyRequest'keyDesc :: !(Prelude.Maybe KeyDescriptor),+ _SharedKeyRequest'_unknownFields :: !Data.ProtoLens.FieldSet}+ deriving stock (Prelude.Eq, Prelude.Ord, GHC.Generics.Generic)+instance Prelude.Show SharedKeyRequest where+ showsPrec _ __x __s+ = Prelude.showChar+ '{'+ (Prelude.showString+ (Data.ProtoLens.showMessageShort __x) (Prelude.showChar '}' __s))+instance Text.PrettyPrint.GenericPretty.Out SharedKeyRequest+instance Data.ProtoLens.Field.HasField SharedKeyRequest "ephemeralPubkey" Data.ByteString.ByteString where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _SharedKeyRequest'ephemeralPubkey+ (\ x__ y__ -> x__ {_SharedKeyRequest'ephemeralPubkey = y__}))+ Prelude.id+instance Data.ProtoLens.Field.HasField SharedKeyRequest "keyLoc" KeyLocator where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _SharedKeyRequest'keyLoc+ (\ x__ y__ -> x__ {_SharedKeyRequest'keyLoc = y__}))+ (Data.ProtoLens.maybeLens Data.ProtoLens.defMessage)+instance Data.ProtoLens.Field.HasField SharedKeyRequest "maybe'keyLoc" (Prelude.Maybe KeyLocator) where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _SharedKeyRequest'keyLoc+ (\ x__ y__ -> x__ {_SharedKeyRequest'keyLoc = y__}))+ Prelude.id+instance Data.ProtoLens.Field.HasField SharedKeyRequest "keyDesc" KeyDescriptor where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _SharedKeyRequest'keyDesc+ (\ x__ y__ -> x__ {_SharedKeyRequest'keyDesc = y__}))+ (Data.ProtoLens.maybeLens Data.ProtoLens.defMessage)+instance Data.ProtoLens.Field.HasField SharedKeyRequest "maybe'keyDesc" (Prelude.Maybe KeyDescriptor) where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _SharedKeyRequest'keyDesc+ (\ x__ y__ -> x__ {_SharedKeyRequest'keyDesc = y__}))+ Prelude.id+instance Data.ProtoLens.Message SharedKeyRequest where+ messageName _ = Data.Text.pack "signrpc.SharedKeyRequest"+ packedMessageDescriptor _+ = "\n\+ \\DLESharedKeyRequest\DC2)\n\+ \\DLEephemeral_pubkey\CAN\SOH \SOH(\fR\SIephemeralPubkey\DC20\n\+ \\akey_loc\CAN\STX \SOH(\v2\DC3.signrpc.KeyLocatorR\ACKkeyLocB\STX\CAN\SOH\DC21\n\+ \\bkey_desc\CAN\ETX \SOH(\v2\SYN.signrpc.KeyDescriptorR\akeyDesc"+ packedFileDescriptor _ = packedFileDescriptor+ fieldsByTag+ = let+ ephemeralPubkey__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "ephemeral_pubkey"+ (Data.ProtoLens.ScalarField Data.ProtoLens.BytesField ::+ Data.ProtoLens.FieldTypeDescriptor Data.ByteString.ByteString)+ (Data.ProtoLens.PlainField+ Data.ProtoLens.Optional+ (Data.ProtoLens.Field.field @"ephemeralPubkey")) ::+ Data.ProtoLens.FieldDescriptor SharedKeyRequest+ keyLoc__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "key_loc"+ (Data.ProtoLens.MessageField Data.ProtoLens.MessageType ::+ Data.ProtoLens.FieldTypeDescriptor KeyLocator)+ (Data.ProtoLens.OptionalField+ (Data.ProtoLens.Field.field @"maybe'keyLoc")) ::+ Data.ProtoLens.FieldDescriptor SharedKeyRequest+ keyDesc__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "key_desc"+ (Data.ProtoLens.MessageField Data.ProtoLens.MessageType ::+ Data.ProtoLens.FieldTypeDescriptor KeyDescriptor)+ (Data.ProtoLens.OptionalField+ (Data.ProtoLens.Field.field @"maybe'keyDesc")) ::+ Data.ProtoLens.FieldDescriptor SharedKeyRequest+ in+ Data.Map.fromList+ [(Data.ProtoLens.Tag 1, ephemeralPubkey__field_descriptor),+ (Data.ProtoLens.Tag 2, keyLoc__field_descriptor),+ (Data.ProtoLens.Tag 3, keyDesc__field_descriptor)]+ unknownFields+ = Lens.Family2.Unchecked.lens+ _SharedKeyRequest'_unknownFields+ (\ x__ y__ -> x__ {_SharedKeyRequest'_unknownFields = y__})+ defMessage+ = SharedKeyRequest'_constructor+ {_SharedKeyRequest'ephemeralPubkey = Data.ProtoLens.fieldDefault,+ _SharedKeyRequest'keyLoc = Prelude.Nothing,+ _SharedKeyRequest'keyDesc = Prelude.Nothing,+ _SharedKeyRequest'_unknownFields = []}+ parseMessage+ = let+ loop ::+ SharedKeyRequest+ -> Data.ProtoLens.Encoding.Bytes.Parser SharedKeyRequest+ loop x+ = do end <- Data.ProtoLens.Encoding.Bytes.atEnd+ if end then+ do (let missing = []+ in+ if Prelude.null missing then+ Prelude.return ()+ else+ Prelude.fail+ ((Prelude.++)+ "Missing required fields: "+ (Prelude.show (missing :: [Prelude.String]))))+ Prelude.return+ (Lens.Family2.over+ Data.ProtoLens.unknownFields (\ !t -> Prelude.reverse t) x)+ else+ do tag <- Data.ProtoLens.Encoding.Bytes.getVarInt+ case tag of+ 10+ -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (do len <- Data.ProtoLens.Encoding.Bytes.getVarInt+ Data.ProtoLens.Encoding.Bytes.getBytes+ (Prelude.fromIntegral len))+ "ephemeral_pubkey"+ loop+ (Lens.Family2.set+ (Data.ProtoLens.Field.field @"ephemeralPubkey") y x)+ 18+ -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (do len <- Data.ProtoLens.Encoding.Bytes.getVarInt+ Data.ProtoLens.Encoding.Bytes.isolate+ (Prelude.fromIntegral len) Data.ProtoLens.parseMessage)+ "key_loc"+ loop (Lens.Family2.set (Data.ProtoLens.Field.field @"keyLoc") y x)+ 26+ -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (do len <- Data.ProtoLens.Encoding.Bytes.getVarInt+ Data.ProtoLens.Encoding.Bytes.isolate+ (Prelude.fromIntegral len) Data.ProtoLens.parseMessage)+ "key_desc"+ loop (Lens.Family2.set (Data.ProtoLens.Field.field @"keyDesc") y x)+ wire+ -> do !y <- Data.ProtoLens.Encoding.Wire.parseTaggedValueFromWire+ wire+ loop+ (Lens.Family2.over+ Data.ProtoLens.unknownFields (\ !t -> (:) y t) x)+ in+ (Data.ProtoLens.Encoding.Bytes.<?>)+ (do loop Data.ProtoLens.defMessage) "SharedKeyRequest"+ buildMessage+ = \ _x+ -> (Data.Monoid.<>)+ (let+ _v+ = Lens.Family2.view+ (Data.ProtoLens.Field.field @"ephemeralPubkey") _x+ in+ if (Prelude.==) _v Data.ProtoLens.fieldDefault then+ Data.Monoid.mempty+ else+ (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 10)+ ((\ bs+ -> (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt+ (Prelude.fromIntegral (Data.ByteString.length bs)))+ (Data.ProtoLens.Encoding.Bytes.putBytes bs))+ _v))+ ((Data.Monoid.<>)+ (case+ Lens.Family2.view (Data.ProtoLens.Field.field @"maybe'keyLoc") _x+ of+ Prelude.Nothing -> Data.Monoid.mempty+ (Prelude.Just _v)+ -> (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 18)+ ((Prelude..)+ (\ bs+ -> (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt+ (Prelude.fromIntegral (Data.ByteString.length bs)))+ (Data.ProtoLens.Encoding.Bytes.putBytes bs))+ Data.ProtoLens.encodeMessage _v))+ ((Data.Monoid.<>)+ (case+ Lens.Family2.view (Data.ProtoLens.Field.field @"maybe'keyDesc") _x+ of+ Prelude.Nothing -> Data.Monoid.mempty+ (Prelude.Just _v)+ -> (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 26)+ ((Prelude..)+ (\ bs+ -> (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt+ (Prelude.fromIntegral (Data.ByteString.length bs)))+ (Data.ProtoLens.Encoding.Bytes.putBytes bs))+ Data.ProtoLens.encodeMessage _v))+ (Data.ProtoLens.Encoding.Wire.buildFieldSet+ (Lens.Family2.view Data.ProtoLens.unknownFields _x))))+instance Control.DeepSeq.NFData SharedKeyRequest where+ rnf+ = \ x__+ -> Control.DeepSeq.deepseq+ (_SharedKeyRequest'_unknownFields x__)+ (Control.DeepSeq.deepseq+ (_SharedKeyRequest'ephemeralPubkey x__)+ (Control.DeepSeq.deepseq+ (_SharedKeyRequest'keyLoc x__)+ (Control.DeepSeq.deepseq (_SharedKeyRequest'keyDesc x__) ())))+{- | Fields :+ + * 'Proto.Signrpc.Signer_Fields.sharedKey' @:: Lens' SharedKeyResponse Data.ByteString.ByteString@ -}+data SharedKeyResponse+ = SharedKeyResponse'_constructor {_SharedKeyResponse'sharedKey :: !Data.ByteString.ByteString,+ _SharedKeyResponse'_unknownFields :: !Data.ProtoLens.FieldSet}+ deriving stock (Prelude.Eq, Prelude.Ord, GHC.Generics.Generic)+instance Prelude.Show SharedKeyResponse where+ showsPrec _ __x __s+ = Prelude.showChar+ '{'+ (Prelude.showString+ (Data.ProtoLens.showMessageShort __x) (Prelude.showChar '}' __s))+instance Text.PrettyPrint.GenericPretty.Out SharedKeyResponse+instance Data.ProtoLens.Field.HasField SharedKeyResponse "sharedKey" Data.ByteString.ByteString where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _SharedKeyResponse'sharedKey+ (\ x__ y__ -> x__ {_SharedKeyResponse'sharedKey = y__}))+ Prelude.id+instance Data.ProtoLens.Message SharedKeyResponse where+ messageName _ = Data.Text.pack "signrpc.SharedKeyResponse"+ packedMessageDescriptor _+ = "\n\+ \\DC1SharedKeyResponse\DC2\GS\n\+ \\n\+ \shared_key\CAN\SOH \SOH(\fR\tsharedKey"+ packedFileDescriptor _ = packedFileDescriptor+ fieldsByTag+ = let+ sharedKey__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "shared_key"+ (Data.ProtoLens.ScalarField Data.ProtoLens.BytesField ::+ Data.ProtoLens.FieldTypeDescriptor Data.ByteString.ByteString)+ (Data.ProtoLens.PlainField+ Data.ProtoLens.Optional+ (Data.ProtoLens.Field.field @"sharedKey")) ::+ Data.ProtoLens.FieldDescriptor SharedKeyResponse+ in+ Data.Map.fromList+ [(Data.ProtoLens.Tag 1, sharedKey__field_descriptor)]+ unknownFields+ = Lens.Family2.Unchecked.lens+ _SharedKeyResponse'_unknownFields+ (\ x__ y__ -> x__ {_SharedKeyResponse'_unknownFields = y__})+ defMessage+ = SharedKeyResponse'_constructor+ {_SharedKeyResponse'sharedKey = Data.ProtoLens.fieldDefault,+ _SharedKeyResponse'_unknownFields = []}+ parseMessage+ = let+ loop ::+ SharedKeyResponse+ -> Data.ProtoLens.Encoding.Bytes.Parser SharedKeyResponse+ loop x+ = do end <- Data.ProtoLens.Encoding.Bytes.atEnd+ if end then+ do (let missing = []+ in+ if Prelude.null missing then+ Prelude.return ()+ else+ Prelude.fail+ ((Prelude.++)+ "Missing required fields: "+ (Prelude.show (missing :: [Prelude.String]))))+ Prelude.return+ (Lens.Family2.over+ Data.ProtoLens.unknownFields (\ !t -> Prelude.reverse t) x)+ else+ do tag <- Data.ProtoLens.Encoding.Bytes.getVarInt+ case tag of+ 10+ -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (do len <- Data.ProtoLens.Encoding.Bytes.getVarInt+ Data.ProtoLens.Encoding.Bytes.getBytes+ (Prelude.fromIntegral len))+ "shared_key"+ loop+ (Lens.Family2.set (Data.ProtoLens.Field.field @"sharedKey") y x)+ wire+ -> do !y <- Data.ProtoLens.Encoding.Wire.parseTaggedValueFromWire+ wire+ loop+ (Lens.Family2.over+ Data.ProtoLens.unknownFields (\ !t -> (:) y t) x)+ in+ (Data.ProtoLens.Encoding.Bytes.<?>)+ (do loop Data.ProtoLens.defMessage) "SharedKeyResponse"+ buildMessage+ = \ _x+ -> (Data.Monoid.<>)+ (let+ _v = Lens.Family2.view (Data.ProtoLens.Field.field @"sharedKey") _x+ in+ if (Prelude.==) _v Data.ProtoLens.fieldDefault then+ Data.Monoid.mempty+ else+ (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 10)+ ((\ bs+ -> (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt+ (Prelude.fromIntegral (Data.ByteString.length bs)))+ (Data.ProtoLens.Encoding.Bytes.putBytes bs))+ _v))+ (Data.ProtoLens.Encoding.Wire.buildFieldSet+ (Lens.Family2.view Data.ProtoLens.unknownFields _x))+instance Control.DeepSeq.NFData SharedKeyResponse where+ rnf+ = \ x__+ -> Control.DeepSeq.deepseq+ (_SharedKeyResponse'_unknownFields x__)+ (Control.DeepSeq.deepseq (_SharedKeyResponse'sharedKey x__) ())+{- | Fields :+ + * 'Proto.Signrpc.Signer_Fields.keyDesc' @:: Lens' SignDescriptor KeyDescriptor@+ * 'Proto.Signrpc.Signer_Fields.maybe'keyDesc' @:: Lens' SignDescriptor (Prelude.Maybe KeyDescriptor)@+ * 'Proto.Signrpc.Signer_Fields.singleTweak' @:: Lens' SignDescriptor Data.ByteString.ByteString@+ * 'Proto.Signrpc.Signer_Fields.doubleTweak' @:: Lens' SignDescriptor Data.ByteString.ByteString@+ * 'Proto.Signrpc.Signer_Fields.witnessScript' @:: Lens' SignDescriptor Data.ByteString.ByteString@+ * 'Proto.Signrpc.Signer_Fields.output' @:: Lens' SignDescriptor TxOut@+ * 'Proto.Signrpc.Signer_Fields.maybe'output' @:: Lens' SignDescriptor (Prelude.Maybe TxOut)@+ * 'Proto.Signrpc.Signer_Fields.sighash' @:: Lens' SignDescriptor Data.Word.Word32@+ * 'Proto.Signrpc.Signer_Fields.inputIndex' @:: Lens' SignDescriptor Data.Int.Int32@ -}+data SignDescriptor+ = SignDescriptor'_constructor {_SignDescriptor'keyDesc :: !(Prelude.Maybe KeyDescriptor),+ _SignDescriptor'singleTweak :: !Data.ByteString.ByteString,+ _SignDescriptor'doubleTweak :: !Data.ByteString.ByteString,+ _SignDescriptor'witnessScript :: !Data.ByteString.ByteString,+ _SignDescriptor'output :: !(Prelude.Maybe TxOut),+ _SignDescriptor'sighash :: !Data.Word.Word32,+ _SignDescriptor'inputIndex :: !Data.Int.Int32,+ _SignDescriptor'_unknownFields :: !Data.ProtoLens.FieldSet}+ deriving stock (Prelude.Eq, Prelude.Ord, GHC.Generics.Generic)+instance Prelude.Show SignDescriptor where+ showsPrec _ __x __s+ = Prelude.showChar+ '{'+ (Prelude.showString+ (Data.ProtoLens.showMessageShort __x) (Prelude.showChar '}' __s))+instance Text.PrettyPrint.GenericPretty.Out SignDescriptor+instance Data.ProtoLens.Field.HasField SignDescriptor "keyDesc" KeyDescriptor where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _SignDescriptor'keyDesc+ (\ x__ y__ -> x__ {_SignDescriptor'keyDesc = y__}))+ (Data.ProtoLens.maybeLens Data.ProtoLens.defMessage)+instance Data.ProtoLens.Field.HasField SignDescriptor "maybe'keyDesc" (Prelude.Maybe KeyDescriptor) where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _SignDescriptor'keyDesc+ (\ x__ y__ -> x__ {_SignDescriptor'keyDesc = y__}))+ Prelude.id+instance Data.ProtoLens.Field.HasField SignDescriptor "singleTweak" Data.ByteString.ByteString where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _SignDescriptor'singleTweak+ (\ x__ y__ -> x__ {_SignDescriptor'singleTweak = y__}))+ Prelude.id+instance Data.ProtoLens.Field.HasField SignDescriptor "doubleTweak" Data.ByteString.ByteString where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _SignDescriptor'doubleTweak+ (\ x__ y__ -> x__ {_SignDescriptor'doubleTweak = y__}))+ Prelude.id+instance Data.ProtoLens.Field.HasField SignDescriptor "witnessScript" Data.ByteString.ByteString where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _SignDescriptor'witnessScript+ (\ x__ y__ -> x__ {_SignDescriptor'witnessScript = y__}))+ Prelude.id+instance Data.ProtoLens.Field.HasField SignDescriptor "output" TxOut where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _SignDescriptor'output+ (\ x__ y__ -> x__ {_SignDescriptor'output = y__}))+ (Data.ProtoLens.maybeLens Data.ProtoLens.defMessage)+instance Data.ProtoLens.Field.HasField SignDescriptor "maybe'output" (Prelude.Maybe TxOut) where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _SignDescriptor'output+ (\ x__ y__ -> x__ {_SignDescriptor'output = y__}))+ Prelude.id+instance Data.ProtoLens.Field.HasField SignDescriptor "sighash" Data.Word.Word32 where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _SignDescriptor'sighash+ (\ x__ y__ -> x__ {_SignDescriptor'sighash = y__}))+ Prelude.id+instance Data.ProtoLens.Field.HasField SignDescriptor "inputIndex" Data.Int.Int32 where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _SignDescriptor'inputIndex+ (\ x__ y__ -> x__ {_SignDescriptor'inputIndex = y__}))+ Prelude.id+instance Data.ProtoLens.Message SignDescriptor where+ messageName _ = Data.Text.pack "signrpc.SignDescriptor"+ packedMessageDescriptor _+ = "\n\+ \\SOSignDescriptor\DC21\n\+ \\bkey_desc\CAN\SOH \SOH(\v2\SYN.signrpc.KeyDescriptorR\akeyDesc\DC2!\n\+ \\fsingle_tweak\CAN\STX \SOH(\fR\vsingleTweak\DC2!\n\+ \\fdouble_tweak\CAN\ETX \SOH(\fR\vdoubleTweak\DC2%\n\+ \\SOwitness_script\CAN\EOT \SOH(\fR\rwitnessScript\DC2&\n\+ \\ACKoutput\CAN\ENQ \SOH(\v2\SO.signrpc.TxOutR\ACKoutput\DC2\CAN\n\+ \\asighash\CAN\a \SOH(\rR\asighash\DC2\US\n\+ \\vinput_index\CAN\b \SOH(\ENQR\n\+ \inputIndex"+ packedFileDescriptor _ = packedFileDescriptor+ fieldsByTag+ = let+ keyDesc__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "key_desc"+ (Data.ProtoLens.MessageField Data.ProtoLens.MessageType ::+ Data.ProtoLens.FieldTypeDescriptor KeyDescriptor)+ (Data.ProtoLens.OptionalField+ (Data.ProtoLens.Field.field @"maybe'keyDesc")) ::+ Data.ProtoLens.FieldDescriptor SignDescriptor+ singleTweak__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "single_tweak"+ (Data.ProtoLens.ScalarField Data.ProtoLens.BytesField ::+ Data.ProtoLens.FieldTypeDescriptor Data.ByteString.ByteString)+ (Data.ProtoLens.PlainField+ Data.ProtoLens.Optional+ (Data.ProtoLens.Field.field @"singleTweak")) ::+ Data.ProtoLens.FieldDescriptor SignDescriptor+ doubleTweak__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "double_tweak"+ (Data.ProtoLens.ScalarField Data.ProtoLens.BytesField ::+ Data.ProtoLens.FieldTypeDescriptor Data.ByteString.ByteString)+ (Data.ProtoLens.PlainField+ Data.ProtoLens.Optional+ (Data.ProtoLens.Field.field @"doubleTweak")) ::+ Data.ProtoLens.FieldDescriptor SignDescriptor+ witnessScript__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "witness_script"+ (Data.ProtoLens.ScalarField Data.ProtoLens.BytesField ::+ Data.ProtoLens.FieldTypeDescriptor Data.ByteString.ByteString)+ (Data.ProtoLens.PlainField+ Data.ProtoLens.Optional+ (Data.ProtoLens.Field.field @"witnessScript")) ::+ Data.ProtoLens.FieldDescriptor SignDescriptor+ output__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "output"+ (Data.ProtoLens.MessageField Data.ProtoLens.MessageType ::+ Data.ProtoLens.FieldTypeDescriptor TxOut)+ (Data.ProtoLens.OptionalField+ (Data.ProtoLens.Field.field @"maybe'output")) ::+ Data.ProtoLens.FieldDescriptor SignDescriptor+ sighash__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "sighash"+ (Data.ProtoLens.ScalarField Data.ProtoLens.UInt32Field ::+ Data.ProtoLens.FieldTypeDescriptor Data.Word.Word32)+ (Data.ProtoLens.PlainField+ Data.ProtoLens.Optional (Data.ProtoLens.Field.field @"sighash")) ::+ Data.ProtoLens.FieldDescriptor SignDescriptor+ inputIndex__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "input_index"+ (Data.ProtoLens.ScalarField Data.ProtoLens.Int32Field ::+ Data.ProtoLens.FieldTypeDescriptor Data.Int.Int32)+ (Data.ProtoLens.PlainField+ Data.ProtoLens.Optional+ (Data.ProtoLens.Field.field @"inputIndex")) ::+ Data.ProtoLens.FieldDescriptor SignDescriptor+ in+ Data.Map.fromList+ [(Data.ProtoLens.Tag 1, keyDesc__field_descriptor),+ (Data.ProtoLens.Tag 2, singleTweak__field_descriptor),+ (Data.ProtoLens.Tag 3, doubleTweak__field_descriptor),+ (Data.ProtoLens.Tag 4, witnessScript__field_descriptor),+ (Data.ProtoLens.Tag 5, output__field_descriptor),+ (Data.ProtoLens.Tag 7, sighash__field_descriptor),+ (Data.ProtoLens.Tag 8, inputIndex__field_descriptor)]+ unknownFields+ = Lens.Family2.Unchecked.lens+ _SignDescriptor'_unknownFields+ (\ x__ y__ -> x__ {_SignDescriptor'_unknownFields = y__})+ defMessage+ = SignDescriptor'_constructor+ {_SignDescriptor'keyDesc = Prelude.Nothing,+ _SignDescriptor'singleTweak = Data.ProtoLens.fieldDefault,+ _SignDescriptor'doubleTweak = Data.ProtoLens.fieldDefault,+ _SignDescriptor'witnessScript = Data.ProtoLens.fieldDefault,+ _SignDescriptor'output = Prelude.Nothing,+ _SignDescriptor'sighash = Data.ProtoLens.fieldDefault,+ _SignDescriptor'inputIndex = Data.ProtoLens.fieldDefault,+ _SignDescriptor'_unknownFields = []}+ parseMessage+ = let+ loop ::+ SignDescriptor+ -> Data.ProtoLens.Encoding.Bytes.Parser SignDescriptor+ loop x+ = do end <- Data.ProtoLens.Encoding.Bytes.atEnd+ if end then+ do (let missing = []+ in+ if Prelude.null missing then+ Prelude.return ()+ else+ Prelude.fail+ ((Prelude.++)+ "Missing required fields: "+ (Prelude.show (missing :: [Prelude.String]))))+ Prelude.return+ (Lens.Family2.over+ Data.ProtoLens.unknownFields (\ !t -> Prelude.reverse t) x)+ else+ do tag <- Data.ProtoLens.Encoding.Bytes.getVarInt+ case tag of+ 10+ -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (do len <- Data.ProtoLens.Encoding.Bytes.getVarInt+ Data.ProtoLens.Encoding.Bytes.isolate+ (Prelude.fromIntegral len) Data.ProtoLens.parseMessage)+ "key_desc"+ loop (Lens.Family2.set (Data.ProtoLens.Field.field @"keyDesc") y x)+ 18+ -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (do len <- Data.ProtoLens.Encoding.Bytes.getVarInt+ Data.ProtoLens.Encoding.Bytes.getBytes+ (Prelude.fromIntegral len))+ "single_tweak"+ loop+ (Lens.Family2.set (Data.ProtoLens.Field.field @"singleTweak") y x)+ 26+ -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (do len <- Data.ProtoLens.Encoding.Bytes.getVarInt+ Data.ProtoLens.Encoding.Bytes.getBytes+ (Prelude.fromIntegral len))+ "double_tweak"+ loop+ (Lens.Family2.set (Data.ProtoLens.Field.field @"doubleTweak") y x)+ 34+ -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (do len <- Data.ProtoLens.Encoding.Bytes.getVarInt+ Data.ProtoLens.Encoding.Bytes.getBytes+ (Prelude.fromIntegral len))+ "witness_script"+ loop+ (Lens.Family2.set+ (Data.ProtoLens.Field.field @"witnessScript") y x)+ 42+ -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (do len <- Data.ProtoLens.Encoding.Bytes.getVarInt+ Data.ProtoLens.Encoding.Bytes.isolate+ (Prelude.fromIntegral len) Data.ProtoLens.parseMessage)+ "output"+ loop (Lens.Family2.set (Data.ProtoLens.Field.field @"output") y x)+ 56+ -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (Prelude.fmap+ Prelude.fromIntegral+ Data.ProtoLens.Encoding.Bytes.getVarInt)+ "sighash"+ loop (Lens.Family2.set (Data.ProtoLens.Field.field @"sighash") y x)+ 64+ -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (Prelude.fmap+ Prelude.fromIntegral+ Data.ProtoLens.Encoding.Bytes.getVarInt)+ "input_index"+ loop+ (Lens.Family2.set (Data.ProtoLens.Field.field @"inputIndex") y x)+ wire+ -> do !y <- Data.ProtoLens.Encoding.Wire.parseTaggedValueFromWire+ wire+ loop+ (Lens.Family2.over+ Data.ProtoLens.unknownFields (\ !t -> (:) y t) x)+ in+ (Data.ProtoLens.Encoding.Bytes.<?>)+ (do loop Data.ProtoLens.defMessage) "SignDescriptor"+ buildMessage+ = \ _x+ -> (Data.Monoid.<>)+ (case+ Lens.Family2.view (Data.ProtoLens.Field.field @"maybe'keyDesc") _x+ of+ Prelude.Nothing -> Data.Monoid.mempty+ (Prelude.Just _v)+ -> (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 10)+ ((Prelude..)+ (\ bs+ -> (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt+ (Prelude.fromIntegral (Data.ByteString.length bs)))+ (Data.ProtoLens.Encoding.Bytes.putBytes bs))+ Data.ProtoLens.encodeMessage _v))+ ((Data.Monoid.<>)+ (let+ _v+ = Lens.Family2.view (Data.ProtoLens.Field.field @"singleTweak") _x+ in+ if (Prelude.==) _v Data.ProtoLens.fieldDefault then+ Data.Monoid.mempty+ else+ (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 18)+ ((\ bs+ -> (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt+ (Prelude.fromIntegral (Data.ByteString.length bs)))+ (Data.ProtoLens.Encoding.Bytes.putBytes bs))+ _v))+ ((Data.Monoid.<>)+ (let+ _v+ = Lens.Family2.view (Data.ProtoLens.Field.field @"doubleTweak") _x+ in+ if (Prelude.==) _v Data.ProtoLens.fieldDefault then+ Data.Monoid.mempty+ else+ (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 26)+ ((\ bs+ -> (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt+ (Prelude.fromIntegral (Data.ByteString.length bs)))+ (Data.ProtoLens.Encoding.Bytes.putBytes bs))+ _v))+ ((Data.Monoid.<>)+ (let+ _v+ = Lens.Family2.view+ (Data.ProtoLens.Field.field @"witnessScript") _x+ in+ if (Prelude.==) _v Data.ProtoLens.fieldDefault then+ Data.Monoid.mempty+ else+ (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 34)+ ((\ bs+ -> (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt+ (Prelude.fromIntegral (Data.ByteString.length bs)))+ (Data.ProtoLens.Encoding.Bytes.putBytes bs))+ _v))+ ((Data.Monoid.<>)+ (case+ Lens.Family2.view (Data.ProtoLens.Field.field @"maybe'output") _x+ of+ Prelude.Nothing -> Data.Monoid.mempty+ (Prelude.Just _v)+ -> (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 42)+ ((Prelude..)+ (\ bs+ -> (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt+ (Prelude.fromIntegral (Data.ByteString.length bs)))+ (Data.ProtoLens.Encoding.Bytes.putBytes bs))+ Data.ProtoLens.encodeMessage _v))+ ((Data.Monoid.<>)+ (let+ _v = Lens.Family2.view (Data.ProtoLens.Field.field @"sighash") _x+ in+ if (Prelude.==) _v Data.ProtoLens.fieldDefault then+ Data.Monoid.mempty+ else+ (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 56)+ ((Prelude..)+ Data.ProtoLens.Encoding.Bytes.putVarInt Prelude.fromIntegral+ _v))+ ((Data.Monoid.<>)+ (let+ _v+ = Lens.Family2.view+ (Data.ProtoLens.Field.field @"inputIndex") _x+ in+ if (Prelude.==) _v Data.ProtoLens.fieldDefault then+ Data.Monoid.mempty+ else+ (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 64)+ ((Prelude..)+ Data.ProtoLens.Encoding.Bytes.putVarInt+ Prelude.fromIntegral _v))+ (Data.ProtoLens.Encoding.Wire.buildFieldSet+ (Lens.Family2.view Data.ProtoLens.unknownFields _x))))))))+instance Control.DeepSeq.NFData SignDescriptor where+ rnf+ = \ x__+ -> Control.DeepSeq.deepseq+ (_SignDescriptor'_unknownFields x__)+ (Control.DeepSeq.deepseq+ (_SignDescriptor'keyDesc x__)+ (Control.DeepSeq.deepseq+ (_SignDescriptor'singleTweak x__)+ (Control.DeepSeq.deepseq+ (_SignDescriptor'doubleTweak x__)+ (Control.DeepSeq.deepseq+ (_SignDescriptor'witnessScript x__)+ (Control.DeepSeq.deepseq+ (_SignDescriptor'output x__)+ (Control.DeepSeq.deepseq+ (_SignDescriptor'sighash x__)+ (Control.DeepSeq.deepseq (_SignDescriptor'inputIndex x__) ())))))))+{- | Fields :+ + * 'Proto.Signrpc.Signer_Fields.msg' @:: Lens' SignMessageReq Data.ByteString.ByteString@+ * 'Proto.Signrpc.Signer_Fields.keyLoc' @:: Lens' SignMessageReq KeyLocator@+ * 'Proto.Signrpc.Signer_Fields.maybe'keyLoc' @:: Lens' SignMessageReq (Prelude.Maybe KeyLocator)@+ * 'Proto.Signrpc.Signer_Fields.doubleHash' @:: Lens' SignMessageReq Prelude.Bool@+ * 'Proto.Signrpc.Signer_Fields.compactSig' @:: Lens' SignMessageReq Prelude.Bool@ -}+data SignMessageReq+ = SignMessageReq'_constructor {_SignMessageReq'msg :: !Data.ByteString.ByteString,+ _SignMessageReq'keyLoc :: !(Prelude.Maybe KeyLocator),+ _SignMessageReq'doubleHash :: !Prelude.Bool,+ _SignMessageReq'compactSig :: !Prelude.Bool,+ _SignMessageReq'_unknownFields :: !Data.ProtoLens.FieldSet}+ deriving stock (Prelude.Eq, Prelude.Ord, GHC.Generics.Generic)+instance Prelude.Show SignMessageReq where+ showsPrec _ __x __s+ = Prelude.showChar+ '{'+ (Prelude.showString+ (Data.ProtoLens.showMessageShort __x) (Prelude.showChar '}' __s))+instance Text.PrettyPrint.GenericPretty.Out SignMessageReq+instance Data.ProtoLens.Field.HasField SignMessageReq "msg" Data.ByteString.ByteString where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _SignMessageReq'msg (\ x__ y__ -> x__ {_SignMessageReq'msg = y__}))+ Prelude.id+instance Data.ProtoLens.Field.HasField SignMessageReq "keyLoc" KeyLocator where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _SignMessageReq'keyLoc+ (\ x__ y__ -> x__ {_SignMessageReq'keyLoc = y__}))+ (Data.ProtoLens.maybeLens Data.ProtoLens.defMessage)+instance Data.ProtoLens.Field.HasField SignMessageReq "maybe'keyLoc" (Prelude.Maybe KeyLocator) where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _SignMessageReq'keyLoc+ (\ x__ y__ -> x__ {_SignMessageReq'keyLoc = y__}))+ Prelude.id+instance Data.ProtoLens.Field.HasField SignMessageReq "doubleHash" Prelude.Bool where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _SignMessageReq'doubleHash+ (\ x__ y__ -> x__ {_SignMessageReq'doubleHash = y__}))+ Prelude.id+instance Data.ProtoLens.Field.HasField SignMessageReq "compactSig" Prelude.Bool where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _SignMessageReq'compactSig+ (\ x__ y__ -> x__ {_SignMessageReq'compactSig = y__}))+ Prelude.id+instance Data.ProtoLens.Message SignMessageReq where+ messageName _ = Data.Text.pack "signrpc.SignMessageReq"+ packedMessageDescriptor _+ = "\n\+ \\SOSignMessageReq\DC2\DLE\n\+ \\ETXmsg\CAN\SOH \SOH(\fR\ETXmsg\DC2,\n\+ \\akey_loc\CAN\STX \SOH(\v2\DC3.signrpc.KeyLocatorR\ACKkeyLoc\DC2\US\n\+ \\vdouble_hash\CAN\ETX \SOH(\bR\n\+ \doubleHash\DC2\US\n\+ \\vcompact_sig\CAN\EOT \SOH(\bR\n\+ \compactSig"+ packedFileDescriptor _ = packedFileDescriptor+ fieldsByTag+ = let+ msg__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "msg"+ (Data.ProtoLens.ScalarField Data.ProtoLens.BytesField ::+ Data.ProtoLens.FieldTypeDescriptor Data.ByteString.ByteString)+ (Data.ProtoLens.PlainField+ Data.ProtoLens.Optional (Data.ProtoLens.Field.field @"msg")) ::+ Data.ProtoLens.FieldDescriptor SignMessageReq+ keyLoc__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "key_loc"+ (Data.ProtoLens.MessageField Data.ProtoLens.MessageType ::+ Data.ProtoLens.FieldTypeDescriptor KeyLocator)+ (Data.ProtoLens.OptionalField+ (Data.ProtoLens.Field.field @"maybe'keyLoc")) ::+ Data.ProtoLens.FieldDescriptor SignMessageReq+ doubleHash__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "double_hash"+ (Data.ProtoLens.ScalarField Data.ProtoLens.BoolField ::+ Data.ProtoLens.FieldTypeDescriptor Prelude.Bool)+ (Data.ProtoLens.PlainField+ Data.ProtoLens.Optional+ (Data.ProtoLens.Field.field @"doubleHash")) ::+ Data.ProtoLens.FieldDescriptor SignMessageReq+ compactSig__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "compact_sig"+ (Data.ProtoLens.ScalarField Data.ProtoLens.BoolField ::+ Data.ProtoLens.FieldTypeDescriptor Prelude.Bool)+ (Data.ProtoLens.PlainField+ Data.ProtoLens.Optional+ (Data.ProtoLens.Field.field @"compactSig")) ::+ Data.ProtoLens.FieldDescriptor SignMessageReq+ in+ Data.Map.fromList+ [(Data.ProtoLens.Tag 1, msg__field_descriptor),+ (Data.ProtoLens.Tag 2, keyLoc__field_descriptor),+ (Data.ProtoLens.Tag 3, doubleHash__field_descriptor),+ (Data.ProtoLens.Tag 4, compactSig__field_descriptor)]+ unknownFields+ = Lens.Family2.Unchecked.lens+ _SignMessageReq'_unknownFields+ (\ x__ y__ -> x__ {_SignMessageReq'_unknownFields = y__})+ defMessage+ = SignMessageReq'_constructor+ {_SignMessageReq'msg = Data.ProtoLens.fieldDefault,+ _SignMessageReq'keyLoc = Prelude.Nothing,+ _SignMessageReq'doubleHash = Data.ProtoLens.fieldDefault,+ _SignMessageReq'compactSig = Data.ProtoLens.fieldDefault,+ _SignMessageReq'_unknownFields = []}+ parseMessage+ = let+ loop ::+ SignMessageReq+ -> Data.ProtoLens.Encoding.Bytes.Parser SignMessageReq+ loop x+ = do end <- Data.ProtoLens.Encoding.Bytes.atEnd+ if end then+ do (let missing = []+ in+ if Prelude.null missing then+ Prelude.return ()+ else+ Prelude.fail+ ((Prelude.++)+ "Missing required fields: "+ (Prelude.show (missing :: [Prelude.String]))))+ Prelude.return+ (Lens.Family2.over+ Data.ProtoLens.unknownFields (\ !t -> Prelude.reverse t) x)+ else+ do tag <- Data.ProtoLens.Encoding.Bytes.getVarInt+ case tag of+ 10+ -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (do len <- Data.ProtoLens.Encoding.Bytes.getVarInt+ Data.ProtoLens.Encoding.Bytes.getBytes+ (Prelude.fromIntegral len))+ "msg"+ loop (Lens.Family2.set (Data.ProtoLens.Field.field @"msg") y x)+ 18+ -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (do len <- Data.ProtoLens.Encoding.Bytes.getVarInt+ Data.ProtoLens.Encoding.Bytes.isolate+ (Prelude.fromIntegral len) Data.ProtoLens.parseMessage)+ "key_loc"+ loop (Lens.Family2.set (Data.ProtoLens.Field.field @"keyLoc") y x)+ 24+ -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (Prelude.fmap+ ((Prelude./=) 0) Data.ProtoLens.Encoding.Bytes.getVarInt)+ "double_hash"+ loop+ (Lens.Family2.set (Data.ProtoLens.Field.field @"doubleHash") y x)+ 32+ -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (Prelude.fmap+ ((Prelude./=) 0) Data.ProtoLens.Encoding.Bytes.getVarInt)+ "compact_sig"+ loop+ (Lens.Family2.set (Data.ProtoLens.Field.field @"compactSig") y x)+ wire+ -> do !y <- Data.ProtoLens.Encoding.Wire.parseTaggedValueFromWire+ wire+ loop+ (Lens.Family2.over+ Data.ProtoLens.unknownFields (\ !t -> (:) y t) x)+ in+ (Data.ProtoLens.Encoding.Bytes.<?>)+ (do loop Data.ProtoLens.defMessage) "SignMessageReq"+ buildMessage+ = \ _x+ -> (Data.Monoid.<>)+ (let _v = Lens.Family2.view (Data.ProtoLens.Field.field @"msg") _x+ in+ if (Prelude.==) _v Data.ProtoLens.fieldDefault then+ Data.Monoid.mempty+ else+ (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 10)+ ((\ bs+ -> (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt+ (Prelude.fromIntegral (Data.ByteString.length bs)))+ (Data.ProtoLens.Encoding.Bytes.putBytes bs))+ _v))+ ((Data.Monoid.<>)+ (case+ Lens.Family2.view (Data.ProtoLens.Field.field @"maybe'keyLoc") _x+ of+ Prelude.Nothing -> Data.Monoid.mempty+ (Prelude.Just _v)+ -> (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 18)+ ((Prelude..)+ (\ bs+ -> (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt+ (Prelude.fromIntegral (Data.ByteString.length bs)))+ (Data.ProtoLens.Encoding.Bytes.putBytes bs))+ Data.ProtoLens.encodeMessage _v))+ ((Data.Monoid.<>)+ (let+ _v+ = Lens.Family2.view (Data.ProtoLens.Field.field @"doubleHash") _x+ in+ if (Prelude.==) _v Data.ProtoLens.fieldDefault then+ Data.Monoid.mempty+ else+ (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 24)+ ((Prelude..)+ Data.ProtoLens.Encoding.Bytes.putVarInt (\ b -> if b then 1 else 0)+ _v))+ ((Data.Monoid.<>)+ (let+ _v+ = Lens.Family2.view (Data.ProtoLens.Field.field @"compactSig") _x+ in+ if (Prelude.==) _v Data.ProtoLens.fieldDefault then+ Data.Monoid.mempty+ else+ (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 32)+ ((Prelude..)+ Data.ProtoLens.Encoding.Bytes.putVarInt+ (\ b -> if b then 1 else 0) _v))+ (Data.ProtoLens.Encoding.Wire.buildFieldSet+ (Lens.Family2.view Data.ProtoLens.unknownFields _x)))))+instance Control.DeepSeq.NFData SignMessageReq where+ rnf+ = \ x__+ -> Control.DeepSeq.deepseq+ (_SignMessageReq'_unknownFields x__)+ (Control.DeepSeq.deepseq+ (_SignMessageReq'msg x__)+ (Control.DeepSeq.deepseq+ (_SignMessageReq'keyLoc x__)+ (Control.DeepSeq.deepseq+ (_SignMessageReq'doubleHash x__)+ (Control.DeepSeq.deepseq (_SignMessageReq'compactSig x__) ()))))+{- | Fields :+ + * 'Proto.Signrpc.Signer_Fields.signature' @:: Lens' SignMessageResp Data.ByteString.ByteString@ -}+data SignMessageResp+ = SignMessageResp'_constructor {_SignMessageResp'signature :: !Data.ByteString.ByteString,+ _SignMessageResp'_unknownFields :: !Data.ProtoLens.FieldSet}+ deriving stock (Prelude.Eq, Prelude.Ord, GHC.Generics.Generic)+instance Prelude.Show SignMessageResp where+ showsPrec _ __x __s+ = Prelude.showChar+ '{'+ (Prelude.showString+ (Data.ProtoLens.showMessageShort __x) (Prelude.showChar '}' __s))+instance Text.PrettyPrint.GenericPretty.Out SignMessageResp+instance Data.ProtoLens.Field.HasField SignMessageResp "signature" Data.ByteString.ByteString where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _SignMessageResp'signature+ (\ x__ y__ -> x__ {_SignMessageResp'signature = y__}))+ Prelude.id+instance Data.ProtoLens.Message SignMessageResp where+ messageName _ = Data.Text.pack "signrpc.SignMessageResp"+ packedMessageDescriptor _+ = "\n\+ \\SISignMessageResp\DC2\FS\n\+ \\tsignature\CAN\SOH \SOH(\fR\tsignature"+ packedFileDescriptor _ = packedFileDescriptor+ fieldsByTag+ = let+ signature__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "signature"+ (Data.ProtoLens.ScalarField Data.ProtoLens.BytesField ::+ Data.ProtoLens.FieldTypeDescriptor Data.ByteString.ByteString)+ (Data.ProtoLens.PlainField+ Data.ProtoLens.Optional+ (Data.ProtoLens.Field.field @"signature")) ::+ Data.ProtoLens.FieldDescriptor SignMessageResp+ in+ Data.Map.fromList+ [(Data.ProtoLens.Tag 1, signature__field_descriptor)]+ unknownFields+ = Lens.Family2.Unchecked.lens+ _SignMessageResp'_unknownFields+ (\ x__ y__ -> x__ {_SignMessageResp'_unknownFields = y__})+ defMessage+ = SignMessageResp'_constructor+ {_SignMessageResp'signature = Data.ProtoLens.fieldDefault,+ _SignMessageResp'_unknownFields = []}+ parseMessage+ = let+ loop ::+ SignMessageResp+ -> Data.ProtoLens.Encoding.Bytes.Parser SignMessageResp+ loop x+ = do end <- Data.ProtoLens.Encoding.Bytes.atEnd+ if end then+ do (let missing = []+ in+ if Prelude.null missing then+ Prelude.return ()+ else+ Prelude.fail+ ((Prelude.++)+ "Missing required fields: "+ (Prelude.show (missing :: [Prelude.String]))))+ Prelude.return+ (Lens.Family2.over+ Data.ProtoLens.unknownFields (\ !t -> Prelude.reverse t) x)+ else+ do tag <- Data.ProtoLens.Encoding.Bytes.getVarInt+ case tag of+ 10+ -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (do len <- Data.ProtoLens.Encoding.Bytes.getVarInt+ Data.ProtoLens.Encoding.Bytes.getBytes+ (Prelude.fromIntegral len))+ "signature"+ loop+ (Lens.Family2.set (Data.ProtoLens.Field.field @"signature") y x)+ wire+ -> do !y <- Data.ProtoLens.Encoding.Wire.parseTaggedValueFromWire+ wire+ loop+ (Lens.Family2.over+ Data.ProtoLens.unknownFields (\ !t -> (:) y t) x)+ in+ (Data.ProtoLens.Encoding.Bytes.<?>)+ (do loop Data.ProtoLens.defMessage) "SignMessageResp"+ buildMessage+ = \ _x+ -> (Data.Monoid.<>)+ (let+ _v = Lens.Family2.view (Data.ProtoLens.Field.field @"signature") _x+ in+ if (Prelude.==) _v Data.ProtoLens.fieldDefault then+ Data.Monoid.mempty+ else+ (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 10)+ ((\ bs+ -> (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt+ (Prelude.fromIntegral (Data.ByteString.length bs)))+ (Data.ProtoLens.Encoding.Bytes.putBytes bs))+ _v))+ (Data.ProtoLens.Encoding.Wire.buildFieldSet+ (Lens.Family2.view Data.ProtoLens.unknownFields _x))+instance Control.DeepSeq.NFData SignMessageResp where+ rnf+ = \ x__+ -> Control.DeepSeq.deepseq+ (_SignMessageResp'_unknownFields x__)+ (Control.DeepSeq.deepseq (_SignMessageResp'signature x__) ())+{- | Fields :+ + * 'Proto.Signrpc.Signer_Fields.rawTxBytes' @:: Lens' SignReq Data.ByteString.ByteString@+ * 'Proto.Signrpc.Signer_Fields.signDescs' @:: Lens' SignReq [SignDescriptor]@+ * 'Proto.Signrpc.Signer_Fields.vec'signDescs' @:: Lens' SignReq (Data.Vector.Vector SignDescriptor)@ -}+data SignReq+ = SignReq'_constructor {_SignReq'rawTxBytes :: !Data.ByteString.ByteString,+ _SignReq'signDescs :: !(Data.Vector.Vector SignDescriptor),+ _SignReq'_unknownFields :: !Data.ProtoLens.FieldSet}+ deriving stock (Prelude.Eq, Prelude.Ord, GHC.Generics.Generic)+instance Prelude.Show SignReq where+ showsPrec _ __x __s+ = Prelude.showChar+ '{'+ (Prelude.showString+ (Data.ProtoLens.showMessageShort __x) (Prelude.showChar '}' __s))+instance Text.PrettyPrint.GenericPretty.Out SignReq+instance Data.ProtoLens.Field.HasField SignReq "rawTxBytes" Data.ByteString.ByteString where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _SignReq'rawTxBytes (\ x__ y__ -> x__ {_SignReq'rawTxBytes = y__}))+ Prelude.id+instance Data.ProtoLens.Field.HasField SignReq "signDescs" [SignDescriptor] where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _SignReq'signDescs (\ x__ y__ -> x__ {_SignReq'signDescs = y__}))+ (Lens.Family2.Unchecked.lens+ Data.Vector.Generic.toList+ (\ _ y__ -> Data.Vector.Generic.fromList y__))+instance Data.ProtoLens.Field.HasField SignReq "vec'signDescs" (Data.Vector.Vector SignDescriptor) where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _SignReq'signDescs (\ x__ y__ -> x__ {_SignReq'signDescs = y__}))+ Prelude.id+instance Data.ProtoLens.Message SignReq where+ messageName _ = Data.Text.pack "signrpc.SignReq"+ packedMessageDescriptor _+ = "\n\+ \\aSignReq\DC2 \n\+ \\fraw_tx_bytes\CAN\SOH \SOH(\fR\n\+ \rawTxBytes\DC26\n\+ \\n\+ \sign_descs\CAN\STX \ETX(\v2\ETB.signrpc.SignDescriptorR\tsignDescs"+ packedFileDescriptor _ = packedFileDescriptor+ fieldsByTag+ = let+ rawTxBytes__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "raw_tx_bytes"+ (Data.ProtoLens.ScalarField Data.ProtoLens.BytesField ::+ Data.ProtoLens.FieldTypeDescriptor Data.ByteString.ByteString)+ (Data.ProtoLens.PlainField+ Data.ProtoLens.Optional+ (Data.ProtoLens.Field.field @"rawTxBytes")) ::+ Data.ProtoLens.FieldDescriptor SignReq+ signDescs__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "sign_descs"+ (Data.ProtoLens.MessageField Data.ProtoLens.MessageType ::+ Data.ProtoLens.FieldTypeDescriptor SignDescriptor)+ (Data.ProtoLens.RepeatedField+ Data.ProtoLens.Unpacked+ (Data.ProtoLens.Field.field @"signDescs")) ::+ Data.ProtoLens.FieldDescriptor SignReq+ in+ Data.Map.fromList+ [(Data.ProtoLens.Tag 1, rawTxBytes__field_descriptor),+ (Data.ProtoLens.Tag 2, signDescs__field_descriptor)]+ unknownFields+ = Lens.Family2.Unchecked.lens+ _SignReq'_unknownFields+ (\ x__ y__ -> x__ {_SignReq'_unknownFields = y__})+ defMessage+ = SignReq'_constructor+ {_SignReq'rawTxBytes = Data.ProtoLens.fieldDefault,+ _SignReq'signDescs = Data.Vector.Generic.empty,+ _SignReq'_unknownFields = []}+ parseMessage+ = let+ loop ::+ SignReq+ -> Data.ProtoLens.Encoding.Growing.Growing Data.Vector.Vector Data.ProtoLens.Encoding.Growing.RealWorld SignDescriptor+ -> Data.ProtoLens.Encoding.Bytes.Parser SignReq+ loop x mutable'signDescs+ = do end <- Data.ProtoLens.Encoding.Bytes.atEnd+ if end then+ do frozen'signDescs <- Data.ProtoLens.Encoding.Parser.Unsafe.unsafeLiftIO+ (Data.ProtoLens.Encoding.Growing.unsafeFreeze+ mutable'signDescs)+ (let missing = []+ in+ if Prelude.null missing then+ Prelude.return ()+ else+ Prelude.fail+ ((Prelude.++)+ "Missing required fields: "+ (Prelude.show (missing :: [Prelude.String]))))+ Prelude.return+ (Lens.Family2.over+ Data.ProtoLens.unknownFields (\ !t -> Prelude.reverse t)+ (Lens.Family2.set+ (Data.ProtoLens.Field.field @"vec'signDescs") frozen'signDescs x))+ else+ do tag <- Data.ProtoLens.Encoding.Bytes.getVarInt+ case tag of+ 10+ -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (do len <- Data.ProtoLens.Encoding.Bytes.getVarInt+ Data.ProtoLens.Encoding.Bytes.getBytes+ (Prelude.fromIntegral len))+ "raw_tx_bytes"+ loop+ (Lens.Family2.set (Data.ProtoLens.Field.field @"rawTxBytes") y x)+ mutable'signDescs+ 18+ -> do !y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (do len <- Data.ProtoLens.Encoding.Bytes.getVarInt+ Data.ProtoLens.Encoding.Bytes.isolate+ (Prelude.fromIntegral len)+ Data.ProtoLens.parseMessage)+ "sign_descs"+ v <- Data.ProtoLens.Encoding.Parser.Unsafe.unsafeLiftIO+ (Data.ProtoLens.Encoding.Growing.append mutable'signDescs y)+ loop x v+ wire+ -> do !y <- Data.ProtoLens.Encoding.Wire.parseTaggedValueFromWire+ wire+ loop+ (Lens.Family2.over+ Data.ProtoLens.unknownFields (\ !t -> (:) y t) x)+ mutable'signDescs+ in+ (Data.ProtoLens.Encoding.Bytes.<?>)+ (do mutable'signDescs <- Data.ProtoLens.Encoding.Parser.Unsafe.unsafeLiftIO+ Data.ProtoLens.Encoding.Growing.new+ loop Data.ProtoLens.defMessage mutable'signDescs)+ "SignReq"+ buildMessage+ = \ _x+ -> (Data.Monoid.<>)+ (let+ _v+ = Lens.Family2.view (Data.ProtoLens.Field.field @"rawTxBytes") _x+ in+ if (Prelude.==) _v Data.ProtoLens.fieldDefault then+ Data.Monoid.mempty+ else+ (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 10)+ ((\ bs+ -> (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt+ (Prelude.fromIntegral (Data.ByteString.length bs)))+ (Data.ProtoLens.Encoding.Bytes.putBytes bs))+ _v))+ ((Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.foldMapBuilder+ (\ _v+ -> (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 18)+ ((Prelude..)+ (\ bs+ -> (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt+ (Prelude.fromIntegral (Data.ByteString.length bs)))+ (Data.ProtoLens.Encoding.Bytes.putBytes bs))+ Data.ProtoLens.encodeMessage _v))+ (Lens.Family2.view+ (Data.ProtoLens.Field.field @"vec'signDescs") _x))+ (Data.ProtoLens.Encoding.Wire.buildFieldSet+ (Lens.Family2.view Data.ProtoLens.unknownFields _x)))+instance Control.DeepSeq.NFData SignReq where+ rnf+ = \ x__+ -> Control.DeepSeq.deepseq+ (_SignReq'_unknownFields x__)+ (Control.DeepSeq.deepseq+ (_SignReq'rawTxBytes x__)+ (Control.DeepSeq.deepseq (_SignReq'signDescs x__) ()))+{- | Fields :+ + * 'Proto.Signrpc.Signer_Fields.rawSigs' @:: Lens' SignResp [Data.ByteString.ByteString]@+ * 'Proto.Signrpc.Signer_Fields.vec'rawSigs' @:: Lens' SignResp (Data.Vector.Vector Data.ByteString.ByteString)@ -}+data SignResp+ = SignResp'_constructor {_SignResp'rawSigs :: !(Data.Vector.Vector Data.ByteString.ByteString),+ _SignResp'_unknownFields :: !Data.ProtoLens.FieldSet}+ deriving stock (Prelude.Eq, Prelude.Ord, GHC.Generics.Generic)+instance Prelude.Show SignResp where+ showsPrec _ __x __s+ = Prelude.showChar+ '{'+ (Prelude.showString+ (Data.ProtoLens.showMessageShort __x) (Prelude.showChar '}' __s))+instance Text.PrettyPrint.GenericPretty.Out SignResp+instance Data.ProtoLens.Field.HasField SignResp "rawSigs" [Data.ByteString.ByteString] where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _SignResp'rawSigs (\ x__ y__ -> x__ {_SignResp'rawSigs = y__}))+ (Lens.Family2.Unchecked.lens+ Data.Vector.Generic.toList+ (\ _ y__ -> Data.Vector.Generic.fromList y__))+instance Data.ProtoLens.Field.HasField SignResp "vec'rawSigs" (Data.Vector.Vector Data.ByteString.ByteString) where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _SignResp'rawSigs (\ x__ y__ -> x__ {_SignResp'rawSigs = y__}))+ Prelude.id+instance Data.ProtoLens.Message SignResp where+ messageName _ = Data.Text.pack "signrpc.SignResp"+ packedMessageDescriptor _+ = "\n\+ \\bSignResp\DC2\EM\n\+ \\braw_sigs\CAN\SOH \ETX(\fR\arawSigs"+ packedFileDescriptor _ = packedFileDescriptor+ fieldsByTag+ = let+ rawSigs__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "raw_sigs"+ (Data.ProtoLens.ScalarField Data.ProtoLens.BytesField ::+ Data.ProtoLens.FieldTypeDescriptor Data.ByteString.ByteString)+ (Data.ProtoLens.RepeatedField+ Data.ProtoLens.Unpacked (Data.ProtoLens.Field.field @"rawSigs")) ::+ Data.ProtoLens.FieldDescriptor SignResp+ in+ Data.Map.fromList+ [(Data.ProtoLens.Tag 1, rawSigs__field_descriptor)]+ unknownFields+ = Lens.Family2.Unchecked.lens+ _SignResp'_unknownFields+ (\ x__ y__ -> x__ {_SignResp'_unknownFields = y__})+ defMessage+ = SignResp'_constructor+ {_SignResp'rawSigs = Data.Vector.Generic.empty,+ _SignResp'_unknownFields = []}+ parseMessage+ = let+ loop ::+ SignResp+ -> Data.ProtoLens.Encoding.Growing.Growing Data.Vector.Vector Data.ProtoLens.Encoding.Growing.RealWorld Data.ByteString.ByteString+ -> Data.ProtoLens.Encoding.Bytes.Parser SignResp+ loop x mutable'rawSigs+ = do end <- Data.ProtoLens.Encoding.Bytes.atEnd+ if end then+ do frozen'rawSigs <- Data.ProtoLens.Encoding.Parser.Unsafe.unsafeLiftIO+ (Data.ProtoLens.Encoding.Growing.unsafeFreeze+ mutable'rawSigs)+ (let missing = []+ in+ if Prelude.null missing then+ Prelude.return ()+ else+ Prelude.fail+ ((Prelude.++)+ "Missing required fields: "+ (Prelude.show (missing :: [Prelude.String]))))+ Prelude.return+ (Lens.Family2.over+ Data.ProtoLens.unknownFields (\ !t -> Prelude.reverse t)+ (Lens.Family2.set+ (Data.ProtoLens.Field.field @"vec'rawSigs") frozen'rawSigs x))+ else+ do tag <- Data.ProtoLens.Encoding.Bytes.getVarInt+ case tag of+ 10+ -> do !y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (do len <- Data.ProtoLens.Encoding.Bytes.getVarInt+ Data.ProtoLens.Encoding.Bytes.getBytes+ (Prelude.fromIntegral len))+ "raw_sigs"+ v <- Data.ProtoLens.Encoding.Parser.Unsafe.unsafeLiftIO+ (Data.ProtoLens.Encoding.Growing.append mutable'rawSigs y)+ loop x v+ wire+ -> do !y <- Data.ProtoLens.Encoding.Wire.parseTaggedValueFromWire+ wire+ loop+ (Lens.Family2.over+ Data.ProtoLens.unknownFields (\ !t -> (:) y t) x)+ mutable'rawSigs+ in+ (Data.ProtoLens.Encoding.Bytes.<?>)+ (do mutable'rawSigs <- Data.ProtoLens.Encoding.Parser.Unsafe.unsafeLiftIO+ Data.ProtoLens.Encoding.Growing.new+ loop Data.ProtoLens.defMessage mutable'rawSigs)+ "SignResp"+ buildMessage+ = \ _x+ -> (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.foldMapBuilder+ (\ _v+ -> (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 10)+ ((\ bs+ -> (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt+ (Prelude.fromIntegral (Data.ByteString.length bs)))+ (Data.ProtoLens.Encoding.Bytes.putBytes bs))+ _v))+ (Lens.Family2.view (Data.ProtoLens.Field.field @"vec'rawSigs") _x))+ (Data.ProtoLens.Encoding.Wire.buildFieldSet+ (Lens.Family2.view Data.ProtoLens.unknownFields _x))+instance Control.DeepSeq.NFData SignResp where+ rnf+ = \ x__+ -> Control.DeepSeq.deepseq+ (_SignResp'_unknownFields x__)+ (Control.DeepSeq.deepseq (_SignResp'rawSigs x__) ())+{- | Fields :+ + * 'Proto.Signrpc.Signer_Fields.value' @:: Lens' TxOut Data.Int.Int64@+ * 'Proto.Signrpc.Signer_Fields.pkScript' @:: Lens' TxOut Data.ByteString.ByteString@ -}+data TxOut+ = TxOut'_constructor {_TxOut'value :: !Data.Int.Int64,+ _TxOut'pkScript :: !Data.ByteString.ByteString,+ _TxOut'_unknownFields :: !Data.ProtoLens.FieldSet}+ deriving stock (Prelude.Eq, Prelude.Ord, GHC.Generics.Generic)+instance Prelude.Show TxOut where+ showsPrec _ __x __s+ = Prelude.showChar+ '{'+ (Prelude.showString+ (Data.ProtoLens.showMessageShort __x) (Prelude.showChar '}' __s))+instance Text.PrettyPrint.GenericPretty.Out TxOut+instance Data.ProtoLens.Field.HasField TxOut "value" Data.Int.Int64 where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _TxOut'value (\ x__ y__ -> x__ {_TxOut'value = y__}))+ Prelude.id+instance Data.ProtoLens.Field.HasField TxOut "pkScript" Data.ByteString.ByteString where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _TxOut'pkScript (\ x__ y__ -> x__ {_TxOut'pkScript = y__}))+ Prelude.id+instance Data.ProtoLens.Message TxOut where+ messageName _ = Data.Text.pack "signrpc.TxOut"+ packedMessageDescriptor _+ = "\n\+ \\ENQTxOut\DC2\DC4\n\+ \\ENQvalue\CAN\SOH \SOH(\ETXR\ENQvalue\DC2\ESC\n\+ \\tpk_script\CAN\STX \SOH(\fR\bpkScript"+ packedFileDescriptor _ = packedFileDescriptor+ fieldsByTag+ = let+ value__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "value"+ (Data.ProtoLens.ScalarField Data.ProtoLens.Int64Field ::+ Data.ProtoLens.FieldTypeDescriptor Data.Int.Int64)+ (Data.ProtoLens.PlainField+ Data.ProtoLens.Optional (Data.ProtoLens.Field.field @"value")) ::+ Data.ProtoLens.FieldDescriptor TxOut+ pkScript__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "pk_script"+ (Data.ProtoLens.ScalarField Data.ProtoLens.BytesField ::+ Data.ProtoLens.FieldTypeDescriptor Data.ByteString.ByteString)+ (Data.ProtoLens.PlainField+ Data.ProtoLens.Optional+ (Data.ProtoLens.Field.field @"pkScript")) ::+ Data.ProtoLens.FieldDescriptor TxOut+ in+ Data.Map.fromList+ [(Data.ProtoLens.Tag 1, value__field_descriptor),+ (Data.ProtoLens.Tag 2, pkScript__field_descriptor)]+ unknownFields+ = Lens.Family2.Unchecked.lens+ _TxOut'_unknownFields+ (\ x__ y__ -> x__ {_TxOut'_unknownFields = y__})+ defMessage+ = TxOut'_constructor+ {_TxOut'value = Data.ProtoLens.fieldDefault,+ _TxOut'pkScript = Data.ProtoLens.fieldDefault,+ _TxOut'_unknownFields = []}+ parseMessage+ = let+ loop :: TxOut -> Data.ProtoLens.Encoding.Bytes.Parser TxOut+ loop x+ = do end <- Data.ProtoLens.Encoding.Bytes.atEnd+ if end then+ do (let missing = []+ in+ if Prelude.null missing then+ Prelude.return ()+ else+ Prelude.fail+ ((Prelude.++)+ "Missing required fields: "+ (Prelude.show (missing :: [Prelude.String]))))+ Prelude.return+ (Lens.Family2.over+ Data.ProtoLens.unknownFields (\ !t -> Prelude.reverse t) x)+ else+ do tag <- Data.ProtoLens.Encoding.Bytes.getVarInt+ case tag of+ 8 -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (Prelude.fmap+ Prelude.fromIntegral+ Data.ProtoLens.Encoding.Bytes.getVarInt)+ "value"+ loop (Lens.Family2.set (Data.ProtoLens.Field.field @"value") y x)+ 18+ -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (do len <- Data.ProtoLens.Encoding.Bytes.getVarInt+ Data.ProtoLens.Encoding.Bytes.getBytes+ (Prelude.fromIntegral len))+ "pk_script"+ loop+ (Lens.Family2.set (Data.ProtoLens.Field.field @"pkScript") y x)+ wire+ -> do !y <- Data.ProtoLens.Encoding.Wire.parseTaggedValueFromWire+ wire+ loop+ (Lens.Family2.over+ Data.ProtoLens.unknownFields (\ !t -> (:) y t) x)+ in+ (Data.ProtoLens.Encoding.Bytes.<?>)+ (do loop Data.ProtoLens.defMessage) "TxOut"+ buildMessage+ = \ _x+ -> (Data.Monoid.<>)+ (let+ _v = Lens.Family2.view (Data.ProtoLens.Field.field @"value") _x+ in+ if (Prelude.==) _v Data.ProtoLens.fieldDefault then+ Data.Monoid.mempty+ else+ (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 8)+ ((Prelude..)+ Data.ProtoLens.Encoding.Bytes.putVarInt Prelude.fromIntegral _v))+ ((Data.Monoid.<>)+ (let+ _v = Lens.Family2.view (Data.ProtoLens.Field.field @"pkScript") _x+ in+ if (Prelude.==) _v Data.ProtoLens.fieldDefault then+ Data.Monoid.mempty+ else+ (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 18)+ ((\ bs+ -> (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt+ (Prelude.fromIntegral (Data.ByteString.length bs)))+ (Data.ProtoLens.Encoding.Bytes.putBytes bs))+ _v))+ (Data.ProtoLens.Encoding.Wire.buildFieldSet+ (Lens.Family2.view Data.ProtoLens.unknownFields _x)))+instance Control.DeepSeq.NFData TxOut where+ rnf+ = \ x__+ -> Control.DeepSeq.deepseq+ (_TxOut'_unknownFields x__)+ (Control.DeepSeq.deepseq+ (_TxOut'value x__)+ (Control.DeepSeq.deepseq (_TxOut'pkScript x__) ()))+{- | Fields :+ + * 'Proto.Signrpc.Signer_Fields.msg' @:: Lens' VerifyMessageReq Data.ByteString.ByteString@+ * 'Proto.Signrpc.Signer_Fields.signature' @:: Lens' VerifyMessageReq Data.ByteString.ByteString@+ * 'Proto.Signrpc.Signer_Fields.pubkey' @:: Lens' VerifyMessageReq Data.ByteString.ByteString@ -}+data VerifyMessageReq+ = VerifyMessageReq'_constructor {_VerifyMessageReq'msg :: !Data.ByteString.ByteString,+ _VerifyMessageReq'signature :: !Data.ByteString.ByteString,+ _VerifyMessageReq'pubkey :: !Data.ByteString.ByteString,+ _VerifyMessageReq'_unknownFields :: !Data.ProtoLens.FieldSet}+ deriving stock (Prelude.Eq, Prelude.Ord, GHC.Generics.Generic)+instance Prelude.Show VerifyMessageReq where+ showsPrec _ __x __s+ = Prelude.showChar+ '{'+ (Prelude.showString+ (Data.ProtoLens.showMessageShort __x) (Prelude.showChar '}' __s))+instance Text.PrettyPrint.GenericPretty.Out VerifyMessageReq+instance Data.ProtoLens.Field.HasField VerifyMessageReq "msg" Data.ByteString.ByteString where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _VerifyMessageReq'msg+ (\ x__ y__ -> x__ {_VerifyMessageReq'msg = y__}))+ Prelude.id+instance Data.ProtoLens.Field.HasField VerifyMessageReq "signature" Data.ByteString.ByteString where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _VerifyMessageReq'signature+ (\ x__ y__ -> x__ {_VerifyMessageReq'signature = y__}))+ Prelude.id+instance Data.ProtoLens.Field.HasField VerifyMessageReq "pubkey" Data.ByteString.ByteString where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _VerifyMessageReq'pubkey+ (\ x__ y__ -> x__ {_VerifyMessageReq'pubkey = y__}))+ Prelude.id+instance Data.ProtoLens.Message VerifyMessageReq where+ messageName _ = Data.Text.pack "signrpc.VerifyMessageReq"+ packedMessageDescriptor _+ = "\n\+ \\DLEVerifyMessageReq\DC2\DLE\n\+ \\ETXmsg\CAN\SOH \SOH(\fR\ETXmsg\DC2\FS\n\+ \\tsignature\CAN\STX \SOH(\fR\tsignature\DC2\SYN\n\+ \\ACKpubkey\CAN\ETX \SOH(\fR\ACKpubkey"+ packedFileDescriptor _ = packedFileDescriptor+ fieldsByTag+ = let+ msg__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "msg"+ (Data.ProtoLens.ScalarField Data.ProtoLens.BytesField ::+ Data.ProtoLens.FieldTypeDescriptor Data.ByteString.ByteString)+ (Data.ProtoLens.PlainField+ Data.ProtoLens.Optional (Data.ProtoLens.Field.field @"msg")) ::+ Data.ProtoLens.FieldDescriptor VerifyMessageReq+ signature__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "signature"+ (Data.ProtoLens.ScalarField Data.ProtoLens.BytesField ::+ Data.ProtoLens.FieldTypeDescriptor Data.ByteString.ByteString)+ (Data.ProtoLens.PlainField+ Data.ProtoLens.Optional+ (Data.ProtoLens.Field.field @"signature")) ::+ Data.ProtoLens.FieldDescriptor VerifyMessageReq+ pubkey__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "pubkey"+ (Data.ProtoLens.ScalarField Data.ProtoLens.BytesField ::+ Data.ProtoLens.FieldTypeDescriptor Data.ByteString.ByteString)+ (Data.ProtoLens.PlainField+ Data.ProtoLens.Optional (Data.ProtoLens.Field.field @"pubkey")) ::+ Data.ProtoLens.FieldDescriptor VerifyMessageReq+ in+ Data.Map.fromList+ [(Data.ProtoLens.Tag 1, msg__field_descriptor),+ (Data.ProtoLens.Tag 2, signature__field_descriptor),+ (Data.ProtoLens.Tag 3, pubkey__field_descriptor)]+ unknownFields+ = Lens.Family2.Unchecked.lens+ _VerifyMessageReq'_unknownFields+ (\ x__ y__ -> x__ {_VerifyMessageReq'_unknownFields = y__})+ defMessage+ = VerifyMessageReq'_constructor+ {_VerifyMessageReq'msg = Data.ProtoLens.fieldDefault,+ _VerifyMessageReq'signature = Data.ProtoLens.fieldDefault,+ _VerifyMessageReq'pubkey = Data.ProtoLens.fieldDefault,+ _VerifyMessageReq'_unknownFields = []}+ parseMessage+ = let+ loop ::+ VerifyMessageReq+ -> Data.ProtoLens.Encoding.Bytes.Parser VerifyMessageReq+ loop x+ = do end <- Data.ProtoLens.Encoding.Bytes.atEnd+ if end then+ do (let missing = []+ in+ if Prelude.null missing then+ Prelude.return ()+ else+ Prelude.fail+ ((Prelude.++)+ "Missing required fields: "+ (Prelude.show (missing :: [Prelude.String]))))+ Prelude.return+ (Lens.Family2.over+ Data.ProtoLens.unknownFields (\ !t -> Prelude.reverse t) x)+ else+ do tag <- Data.ProtoLens.Encoding.Bytes.getVarInt+ case tag of+ 10+ -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (do len <- Data.ProtoLens.Encoding.Bytes.getVarInt+ Data.ProtoLens.Encoding.Bytes.getBytes+ (Prelude.fromIntegral len))+ "msg"+ loop (Lens.Family2.set (Data.ProtoLens.Field.field @"msg") y x)+ 18+ -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (do len <- Data.ProtoLens.Encoding.Bytes.getVarInt+ Data.ProtoLens.Encoding.Bytes.getBytes+ (Prelude.fromIntegral len))+ "signature"+ loop+ (Lens.Family2.set (Data.ProtoLens.Field.field @"signature") y x)+ 26+ -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (do len <- Data.ProtoLens.Encoding.Bytes.getVarInt+ Data.ProtoLens.Encoding.Bytes.getBytes+ (Prelude.fromIntegral len))+ "pubkey"+ loop (Lens.Family2.set (Data.ProtoLens.Field.field @"pubkey") y x)+ wire+ -> do !y <- Data.ProtoLens.Encoding.Wire.parseTaggedValueFromWire+ wire+ loop+ (Lens.Family2.over+ Data.ProtoLens.unknownFields (\ !t -> (:) y t) x)+ in+ (Data.ProtoLens.Encoding.Bytes.<?>)+ (do loop Data.ProtoLens.defMessage) "VerifyMessageReq"+ buildMessage+ = \ _x+ -> (Data.Monoid.<>)+ (let _v = Lens.Family2.view (Data.ProtoLens.Field.field @"msg") _x+ in+ if (Prelude.==) _v Data.ProtoLens.fieldDefault then+ Data.Monoid.mempty+ else+ (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 10)+ ((\ bs+ -> (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt+ (Prelude.fromIntegral (Data.ByteString.length bs)))+ (Data.ProtoLens.Encoding.Bytes.putBytes bs))+ _v))+ ((Data.Monoid.<>)+ (let+ _v = Lens.Family2.view (Data.ProtoLens.Field.field @"signature") _x+ in+ if (Prelude.==) _v Data.ProtoLens.fieldDefault then+ Data.Monoid.mempty+ else+ (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 18)+ ((\ bs+ -> (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt+ (Prelude.fromIntegral (Data.ByteString.length bs)))+ (Data.ProtoLens.Encoding.Bytes.putBytes bs))+ _v))+ ((Data.Monoid.<>)+ (let+ _v = Lens.Family2.view (Data.ProtoLens.Field.field @"pubkey") _x+ in+ if (Prelude.==) _v Data.ProtoLens.fieldDefault then+ Data.Monoid.mempty+ else+ (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 26)+ ((\ bs+ -> (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt+ (Prelude.fromIntegral (Data.ByteString.length bs)))+ (Data.ProtoLens.Encoding.Bytes.putBytes bs))+ _v))+ (Data.ProtoLens.Encoding.Wire.buildFieldSet+ (Lens.Family2.view Data.ProtoLens.unknownFields _x))))+instance Control.DeepSeq.NFData VerifyMessageReq where+ rnf+ = \ x__+ -> Control.DeepSeq.deepseq+ (_VerifyMessageReq'_unknownFields x__)+ (Control.DeepSeq.deepseq+ (_VerifyMessageReq'msg x__)+ (Control.DeepSeq.deepseq+ (_VerifyMessageReq'signature x__)+ (Control.DeepSeq.deepseq (_VerifyMessageReq'pubkey x__) ())))+{- | Fields :+ + * 'Proto.Signrpc.Signer_Fields.valid' @:: Lens' VerifyMessageResp Prelude.Bool@ -}+data VerifyMessageResp+ = VerifyMessageResp'_constructor {_VerifyMessageResp'valid :: !Prelude.Bool,+ _VerifyMessageResp'_unknownFields :: !Data.ProtoLens.FieldSet}+ deriving stock (Prelude.Eq, Prelude.Ord, GHC.Generics.Generic)+instance Prelude.Show VerifyMessageResp where+ showsPrec _ __x __s+ = Prelude.showChar+ '{'+ (Prelude.showString+ (Data.ProtoLens.showMessageShort __x) (Prelude.showChar '}' __s))+instance Text.PrettyPrint.GenericPretty.Out VerifyMessageResp+instance Data.ProtoLens.Field.HasField VerifyMessageResp "valid" Prelude.Bool where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _VerifyMessageResp'valid+ (\ x__ y__ -> x__ {_VerifyMessageResp'valid = y__}))+ Prelude.id+instance Data.ProtoLens.Message VerifyMessageResp where+ messageName _ = Data.Text.pack "signrpc.VerifyMessageResp"+ packedMessageDescriptor _+ = "\n\+ \\DC1VerifyMessageResp\DC2\DC4\n\+ \\ENQvalid\CAN\SOH \SOH(\bR\ENQvalid"+ packedFileDescriptor _ = packedFileDescriptor+ fieldsByTag+ = let+ valid__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "valid"+ (Data.ProtoLens.ScalarField Data.ProtoLens.BoolField ::+ Data.ProtoLens.FieldTypeDescriptor Prelude.Bool)+ (Data.ProtoLens.PlainField+ Data.ProtoLens.Optional (Data.ProtoLens.Field.field @"valid")) ::+ Data.ProtoLens.FieldDescriptor VerifyMessageResp+ in+ Data.Map.fromList [(Data.ProtoLens.Tag 1, valid__field_descriptor)]+ unknownFields+ = Lens.Family2.Unchecked.lens+ _VerifyMessageResp'_unknownFields+ (\ x__ y__ -> x__ {_VerifyMessageResp'_unknownFields = y__})+ defMessage+ = VerifyMessageResp'_constructor+ {_VerifyMessageResp'valid = Data.ProtoLens.fieldDefault,+ _VerifyMessageResp'_unknownFields = []}+ parseMessage+ = let+ loop ::+ VerifyMessageResp+ -> Data.ProtoLens.Encoding.Bytes.Parser VerifyMessageResp+ loop x+ = do end <- Data.ProtoLens.Encoding.Bytes.atEnd+ if end then+ do (let missing = []+ in+ if Prelude.null missing then+ Prelude.return ()+ else+ Prelude.fail+ ((Prelude.++)+ "Missing required fields: "+ (Prelude.show (missing :: [Prelude.String]))))+ Prelude.return+ (Lens.Family2.over+ Data.ProtoLens.unknownFields (\ !t -> Prelude.reverse t) x)+ else+ do tag <- Data.ProtoLens.Encoding.Bytes.getVarInt+ case tag of+ 8 -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (Prelude.fmap+ ((Prelude./=) 0) Data.ProtoLens.Encoding.Bytes.getVarInt)+ "valid"+ loop (Lens.Family2.set (Data.ProtoLens.Field.field @"valid") y x)+ wire+ -> do !y <- Data.ProtoLens.Encoding.Wire.parseTaggedValueFromWire+ wire+ loop+ (Lens.Family2.over+ Data.ProtoLens.unknownFields (\ !t -> (:) y t) x)+ in+ (Data.ProtoLens.Encoding.Bytes.<?>)+ (do loop Data.ProtoLens.defMessage) "VerifyMessageResp"+ buildMessage+ = \ _x+ -> (Data.Monoid.<>)+ (let+ _v = Lens.Family2.view (Data.ProtoLens.Field.field @"valid") _x+ in+ if (Prelude.==) _v Data.ProtoLens.fieldDefault then+ Data.Monoid.mempty+ else+ (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 8)+ ((Prelude..)+ Data.ProtoLens.Encoding.Bytes.putVarInt (\ b -> if b then 1 else 0)+ _v))+ (Data.ProtoLens.Encoding.Wire.buildFieldSet+ (Lens.Family2.view Data.ProtoLens.unknownFields _x))+instance Control.DeepSeq.NFData VerifyMessageResp where+ rnf+ = \ x__+ -> Control.DeepSeq.deepseq+ (_VerifyMessageResp'_unknownFields x__)+ (Control.DeepSeq.deepseq (_VerifyMessageResp'valid x__) ())+data Signer = Signer {}+instance Data.ProtoLens.Service.Types.Service Signer where+ type ServiceName Signer = "Signer"+ type ServicePackage Signer = "signrpc"+ type ServiceMethods Signer = '["computeInputScript",+ "deriveSharedKey",+ "signMessage",+ "signOutputRaw",+ "verifyMessage"]+ packedServiceDescriptor _+ = "\n\+ \\ACKSigner\DC24\n\+ \\rSignOutputRaw\DC2\DLE.signrpc.SignReq\SUB\DC1.signrpc.SignResp\DC2@\n\+ \\DC2ComputeInputScript\DC2\DLE.signrpc.SignReq\SUB\CAN.signrpc.InputScriptResp\DC2@\n\+ \\vSignMessage\DC2\ETB.signrpc.SignMessageReq\SUB\CAN.signrpc.SignMessageResp\DC2F\n\+ \\rVerifyMessage\DC2\EM.signrpc.VerifyMessageReq\SUB\SUB.signrpc.VerifyMessageResp\DC2H\n\+ \\SIDeriveSharedKey\DC2\EM.signrpc.SharedKeyRequest\SUB\SUB.signrpc.SharedKeyResponse"+instance Data.ProtoLens.Service.Types.HasMethodImpl Signer "signOutputRaw" where+ type MethodName Signer "signOutputRaw" = "SignOutputRaw"+ type MethodInput Signer "signOutputRaw" = SignReq+ type MethodOutput Signer "signOutputRaw" = SignResp+ type MethodStreamingType Signer "signOutputRaw" = 'Data.ProtoLens.Service.Types.NonStreaming+instance Data.ProtoLens.Service.Types.HasMethodImpl Signer "computeInputScript" where+ type MethodName Signer "computeInputScript" = "ComputeInputScript"+ type MethodInput Signer "computeInputScript" = SignReq+ type MethodOutput Signer "computeInputScript" = InputScriptResp+ type MethodStreamingType Signer "computeInputScript" = 'Data.ProtoLens.Service.Types.NonStreaming+instance Data.ProtoLens.Service.Types.HasMethodImpl Signer "signMessage" where+ type MethodName Signer "signMessage" = "SignMessage"+ type MethodInput Signer "signMessage" = SignMessageReq+ type MethodOutput Signer "signMessage" = SignMessageResp+ type MethodStreamingType Signer "signMessage" = 'Data.ProtoLens.Service.Types.NonStreaming+instance Data.ProtoLens.Service.Types.HasMethodImpl Signer "verifyMessage" where+ type MethodName Signer "verifyMessage" = "VerifyMessage"+ type MethodInput Signer "verifyMessage" = VerifyMessageReq+ type MethodOutput Signer "verifyMessage" = VerifyMessageResp+ type MethodStreamingType Signer "verifyMessage" = 'Data.ProtoLens.Service.Types.NonStreaming+instance Data.ProtoLens.Service.Types.HasMethodImpl Signer "deriveSharedKey" where+ type MethodName Signer "deriveSharedKey" = "DeriveSharedKey"+ type MethodInput Signer "deriveSharedKey" = SharedKeyRequest+ type MethodOutput Signer "deriveSharedKey" = SharedKeyResponse+ type MethodStreamingType Signer "deriveSharedKey" = 'Data.ProtoLens.Service.Types.NonStreaming+packedFileDescriptor :: Data.ByteString.ByteString+packedFileDescriptor+ = "\n\+ \\DC4signrpc/signer.proto\DC2\asignrpc\"H\n\+ \\n\+ \KeyLocator\DC2\GS\n\+ \\n\+ \key_family\CAN\SOH \SOH(\ENQR\tkeyFamily\DC2\ESC\n\+ \\tkey_index\CAN\STX \SOH(\ENQR\bkeyIndex\"a\n\+ \\rKeyDescriptor\DC2\"\n\+ \\rraw_key_bytes\CAN\SOH \SOH(\fR\vrawKeyBytes\DC2,\n\+ \\akey_loc\CAN\STX \SOH(\v2\DC3.signrpc.KeyLocatorR\ACKkeyLoc\":\n\+ \\ENQTxOut\DC2\DC4\n\+ \\ENQvalue\CAN\SOH \SOH(\ETXR\ENQvalue\DC2\ESC\n\+ \\tpk_script\CAN\STX \SOH(\fR\bpkScript\"\147\STX\n\+ \\SOSignDescriptor\DC21\n\+ \\bkey_desc\CAN\SOH \SOH(\v2\SYN.signrpc.KeyDescriptorR\akeyDesc\DC2!\n\+ \\fsingle_tweak\CAN\STX \SOH(\fR\vsingleTweak\DC2!\n\+ \\fdouble_tweak\CAN\ETX \SOH(\fR\vdoubleTweak\DC2%\n\+ \\SOwitness_script\CAN\EOT \SOH(\fR\rwitnessScript\DC2&\n\+ \\ACKoutput\CAN\ENQ \SOH(\v2\SO.signrpc.TxOutR\ACKoutput\DC2\CAN\n\+ \\asighash\CAN\a \SOH(\rR\asighash\DC2\US\n\+ \\vinput_index\CAN\b \SOH(\ENQR\n\+ \inputIndex\"c\n\+ \\aSignReq\DC2 \n\+ \\fraw_tx_bytes\CAN\SOH \SOH(\fR\n\+ \rawTxBytes\DC26\n\+ \\n\+ \sign_descs\CAN\STX \ETX(\v2\ETB.signrpc.SignDescriptorR\tsignDescs\"%\n\+ \\bSignResp\DC2\EM\n\+ \\braw_sigs\CAN\SOH \ETX(\fR\arawSigs\"F\n\+ \\vInputScript\DC2\CAN\n\+ \\awitness\CAN\SOH \ETX(\fR\awitness\DC2\GS\n\+ \\n\+ \sig_script\CAN\STX \SOH(\fR\tsigScript\"L\n\+ \\SIInputScriptResp\DC29\n\+ \\rinput_scripts\CAN\SOH \ETX(\v2\DC4.signrpc.InputScriptR\finputScripts\"\146\SOH\n\+ \\SOSignMessageReq\DC2\DLE\n\+ \\ETXmsg\CAN\SOH \SOH(\fR\ETXmsg\DC2,\n\+ \\akey_loc\CAN\STX \SOH(\v2\DC3.signrpc.KeyLocatorR\ACKkeyLoc\DC2\US\n\+ \\vdouble_hash\CAN\ETX \SOH(\bR\n\+ \doubleHash\DC2\US\n\+ \\vcompact_sig\CAN\EOT \SOH(\bR\n\+ \compactSig\"/\n\+ \\SISignMessageResp\DC2\FS\n\+ \\tsignature\CAN\SOH \SOH(\fR\tsignature\"Z\n\+ \\DLEVerifyMessageReq\DC2\DLE\n\+ \\ETXmsg\CAN\SOH \SOH(\fR\ETXmsg\DC2\FS\n\+ \\tsignature\CAN\STX \SOH(\fR\tsignature\DC2\SYN\n\+ \\ACKpubkey\CAN\ETX \SOH(\fR\ACKpubkey\")\n\+ \\DC1VerifyMessageResp\DC2\DC4\n\+ \\ENQvalid\CAN\SOH \SOH(\bR\ENQvalid\"\162\SOH\n\+ \\DLESharedKeyRequest\DC2)\n\+ \\DLEephemeral_pubkey\CAN\SOH \SOH(\fR\SIephemeralPubkey\DC20\n\+ \\akey_loc\CAN\STX \SOH(\v2\DC3.signrpc.KeyLocatorR\ACKkeyLocB\STX\CAN\SOH\DC21\n\+ \\bkey_desc\CAN\ETX \SOH(\v2\SYN.signrpc.KeyDescriptorR\akeyDesc\"2\n\+ \\DC1SharedKeyResponse\DC2\GS\n\+ \\n\+ \shared_key\CAN\SOH \SOH(\fR\tsharedKey2\212\STX\n\+ \\ACKSigner\DC24\n\+ \\rSignOutputRaw\DC2\DLE.signrpc.SignReq\SUB\DC1.signrpc.SignResp\DC2@\n\+ \\DC2ComputeInputScript\DC2\DLE.signrpc.SignReq\SUB\CAN.signrpc.InputScriptResp\DC2@\n\+ \\vSignMessage\DC2\ETB.signrpc.SignMessageReq\SUB\CAN.signrpc.SignMessageResp\DC2F\n\+ \\rVerifyMessage\DC2\EM.signrpc.VerifyMessageReq\SUB\SUB.signrpc.VerifyMessageResp\DC2H\n\+ \\SIDeriveSharedKey\DC2\EM.signrpc.SharedKeyRequest\SUB\SUB.signrpc.SharedKeyResponseB/Z-github.com/lightningnetwork/lnd/lnrpc/signrpcJ\240@\n\+ \\a\DC2\ENQ\NUL\NUL\249\SOH\SOH\n\+ \\b\n\+ \\SOH\f\DC2\ETX\NUL\NUL\DC2\n\+ \\b\n\+ \\SOH\STX\DC2\ETX\STX\NUL\DLE\n\+ \\b\n\+ \\SOH\b\DC2\ETX\EOT\NULD\n\+ \\t\n\+ \\STX\b\v\DC2\ETX\EOT\NULD\n\+ \i\n\+ \\STX\ACK\NUL\DC2\EOT\b\NUL@\SOH\SUB] Signer is a service that gives access to the signing functionality of the\n\+ \ daemon's wallet.\n\+ \\n\+ \\n\+ \\n\+ \\ETX\ACK\NUL\SOH\DC2\ETX\b\b\SO\n\+ \\203\ETX\n\+ \\EOT\ACK\NUL\STX\NUL\DC2\ETX\DC3\EOT3\SUB\189\ETX\n\+ \SignOutputRaw is a method that can be used to generated a signature for a\n\+ \set of inputs/outputs to a transaction. Each request specifies details\n\+ \concerning how the outputs should be signed, which keys they should be\n\+ \signed with, and also any optional tweaks. The return value is a fixed\n\+ \64-byte signature (the same format as we use on the wire in Lightning).\n\+ \\n\+ \If we are unable to sign using the specified keys, then an error will be\n\+ \returned.\n\+ \\n\+ \\f\n\+ \\ENQ\ACK\NUL\STX\NUL\SOH\DC2\ETX\DC3\b\NAK\n\+ \\f\n\+ \\ENQ\ACK\NUL\STX\NUL\STX\DC2\ETX\DC3\ETB\RS\n\+ \\f\n\+ \\ENQ\ACK\NUL\STX\NUL\ETX\DC2\ETX\DC3)1\n\+ \\155\EOT\n\+ \\EOT\ACK\NUL\STX\SOH\DC2\ETX!\EOT?\SUB\141\EOT\n\+ \ComputeInputScript generates a complete InputIndex for the passed\n\+ \transaction with the signature as defined within the passed SignDescriptor.\n\+ \This method should be capable of generating the proper input script for\n\+ \both regular p2wkh output and p2wkh outputs nested within a regular p2sh\n\+ \output.\n\+ \\n\+ \Note that when using this method to sign inputs belonging to the wallet,\n\+ \the only items of the SignDescriptor that need to be populated are pkScript\n\+ \in the TxOut field, the value in that same field, and finally the input\n\+ \index.\n\+ \\n\+ \\f\n\+ \\ENQ\ACK\NUL\STX\SOH\SOH\DC2\ETX!\b\SUB\n\+ \\f\n\+ \\ENQ\ACK\NUL\STX\SOH\STX\DC2\ETX!\FS#\n\+ \\f\n\+ \\ENQ\ACK\NUL\STX\SOH\ETX\DC2\ETX!.=\n\+ \\164\STX\n\+ \\EOT\ACK\NUL\STX\STX\DC2\ETX*\EOT?\SUB\150\STX\n\+ \SignMessage signs a message with the key specified in the key locator. The\n\+ \returned signature is fixed-size LN wire format encoded.\n\+ \\n\+ \The main difference to SignMessage in the main RPC is that a specific key is\n\+ \used to sign the message instead of the node identity private key.\n\+ \\n\+ \\f\n\+ \\ENQ\ACK\NUL\STX\STX\SOH\DC2\ETX*\b\DC3\n\+ \\f\n\+ \\ENQ\ACK\NUL\STX\STX\STX\DC2\ETX*\NAK#\n\+ \\f\n\+ \\ENQ\ACK\NUL\STX\STX\ETX\DC2\ETX*.=\n\+ \\176\STX\n\+ \\EOT\ACK\NUL\STX\ETX\DC2\ETX3\EOTE\SUB\162\STX\n\+ \VerifyMessage verifies a signature over a message using the public key\n\+ \provided. The signature must be fixed-size LN wire format encoded.\n\+ \\n\+ \The main difference to VerifyMessage in the main RPC is that the public key\n\+ \used to sign the message does not have to be a node known to the network.\n\+ \\n\+ \\f\n\+ \\ENQ\ACK\NUL\STX\ETX\SOH\DC2\ETX3\b\NAK\n\+ \\f\n\+ \\ENQ\ACK\NUL\STX\ETX\STX\DC2\ETX3\ETB'\n\+ \\f\n\+ \\ENQ\ACK\NUL\STX\ETX\ETX\DC2\ETX32C\n\+ \\143\EOT\n\+ \\EOT\ACK\NUL\STX\EOT\DC2\ETX?\EOTG\SUB\129\EOT\n\+ \DeriveSharedKey returns a shared secret key by performing Diffie-Hellman key\n\+ \derivation between the ephemeral public key in the request and the node's\n\+ \key specified in the key_desc parameter. Either a key locator or a raw\n\+ \public key is expected in the key_desc, if neither is supplied, defaults to\n\+ \the node's identity private key:\n\+ \P_shared = privKeyNode * ephemeralPubkey\n\+ \The resulting shared public key is serialized in the compressed format and\n\+ \hashed with sha256, resulting in the final key length of 256bit.\n\+ \\n\+ \\f\n\+ \\ENQ\ACK\NUL\STX\EOT\SOH\DC2\ETX?\b\ETB\n\+ \\f\n\+ \\ENQ\ACK\NUL\STX\EOT\STX\DC2\ETX?\EM)\n\+ \\f\n\+ \\ENQ\ACK\NUL\STX\EOT\ETX\DC2\ETX?4E\n\+ \\n\+ \\n\+ \\STX\EOT\NUL\DC2\EOTB\NULH\SOH\n\+ \\n\+ \\n\+ \\ETX\EOT\NUL\SOH\DC2\ETXB\b\DC2\n\+ \2\n\+ \\EOT\EOT\NUL\STX\NUL\DC2\ETXD\EOT\EM\SUB% The family of key being identified.\n\+ \\n\+ \\f\n\+ \\ENQ\EOT\NUL\STX\NUL\ENQ\DC2\ETXD\EOT\t\n\+ \\f\n\+ \\ENQ\EOT\NUL\STX\NUL\SOH\DC2\ETXD\n\+ \\DC4\n\+ \\f\n\+ \\ENQ\EOT\NUL\STX\NUL\ETX\DC2\ETXD\ETB\CAN\n\+ \=\n\+ \\EOT\EOT\NUL\STX\SOH\DC2\ETXG\EOT\CAN\SUB0 The precise index of the key being identified.\n\+ \\n\+ \\f\n\+ \\ENQ\EOT\NUL\STX\SOH\ENQ\DC2\ETXG\EOT\t\n\+ \\f\n\+ \\ENQ\EOT\NUL\STX\SOH\SOH\DC2\ETXG\n\+ \\DC3\n\+ \\f\n\+ \\ENQ\EOT\NUL\STX\SOH\ETX\DC2\ETXG\SYN\ETB\n\+ \\n\+ \\n\+ \\STX\EOT\SOH\DC2\EOTJ\NULV\SOH\n\+ \\n\+ \\n\+ \\ETX\EOT\SOH\SOH\DC2\ETXJ\b\NAK\n\+ \\129\SOH\n\+ \\EOT\EOT\SOH\STX\NUL\DC2\ETXO\EOT\FS\SUBt\n\+ \The raw bytes of the public key in the key pair being identified. Either\n\+ \this or the KeyLocator must be specified.\n\+ \\n\+ \\f\n\+ \\ENQ\EOT\SOH\STX\NUL\ENQ\DC2\ETXO\EOT\t\n\+ \\f\n\+ \\ENQ\EOT\SOH\STX\NUL\SOH\DC2\ETXO\n\+ \\ETB\n\+ \\f\n\+ \\ENQ\EOT\SOH\STX\NUL\ETX\DC2\ETXO\SUB\ESC\n\+ \\158\SOH\n\+ \\EOT\EOT\SOH\STX\SOH\DC2\ETXU\EOT\ESC\SUB\144\SOH\n\+ \The key locator that identifies which private key to use for signing.\n\+ \Either this or the raw bytes of the target public key must be specified.\n\+ \\n\+ \\f\n\+ \\ENQ\EOT\SOH\STX\SOH\ACK\DC2\ETXU\EOT\SO\n\+ \\f\n\+ \\ENQ\EOT\SOH\STX\SOH\SOH\DC2\ETXU\SI\SYN\n\+ \\f\n\+ \\ENQ\EOT\SOH\STX\SOH\ETX\DC2\ETXU\EM\SUB\n\+ \\n\+ \\n\+ \\STX\EOT\STX\DC2\EOTX\NUL^\SOH\n\+ \\n\+ \\n\+ \\ETX\EOT\STX\SOH\DC2\ETXX\b\r\n\+ \3\n\+ \\EOT\EOT\STX\STX\NUL\DC2\ETXZ\EOT\DC4\SUB& The value of the output being spent.\n\+ \\n\+ \\f\n\+ \\ENQ\EOT\STX\STX\NUL\ENQ\DC2\ETXZ\EOT\t\n\+ \\f\n\+ \\ENQ\EOT\STX\STX\NUL\SOH\DC2\ETXZ\n\+ \\SI\n\+ \\f\n\+ \\ENQ\EOT\STX\STX\NUL\ETX\DC2\ETXZ\DC2\DC3\n\+ \4\n\+ \\EOT\EOT\STX\STX\SOH\DC2\ETX]\EOT\CAN\SUB' The script of the output being spent.\n\+ \\n\+ \\f\n\+ \\ENQ\EOT\STX\STX\SOH\ENQ\DC2\ETX]\EOT\t\n\+ \\f\n\+ \\ENQ\EOT\STX\STX\SOH\SOH\DC2\ETX]\n\+ \\DC3\n\+ \\f\n\+ \\ENQ\EOT\STX\STX\SOH\ETX\DC2\ETX]\SYN\ETB\n\+ \\v\n\+ \\STX\EOT\ETX\DC2\ENQ`\NUL\152\SOH\SOH\n\+ \\n\+ \\n\+ \\ETX\EOT\ETX\SOH\DC2\ETX`\b\SYN\n\+ \\151\ETX\n\+ \\EOT\EOT\ETX\STX\NUL\DC2\ETXj\EOT\US\SUB\137\ETX\n\+ \A descriptor that precisely describes *which* key to use for signing. This\n\+ \may provide the raw public key directly, or require the Signer to re-derive\n\+ \the key according to the populated derivation path.\n\+ \\n\+ \Note that if the key descriptor was obtained through walletrpc.DeriveKey,\n\+ \then the key locator MUST always be provided, since the derived keys are not\n\+ \persisted unlike with DeriveNextKey.\n\+ \\n\+ \\f\n\+ \\ENQ\EOT\ETX\STX\NUL\ACK\DC2\ETXj\EOT\DC1\n\+ \\f\n\+ \\ENQ\EOT\ETX\STX\NUL\SOH\DC2\ETXj\DC2\SUB\n\+ \\f\n\+ \\ENQ\EOT\ETX\STX\NUL\ETX\DC2\ETXj\GS\RS\n\+ \\166\STX\n\+ \\EOT\EOT\ETX\STX\SOH\DC2\ETXs\EOT\ESC\SUB\152\STX\n\+ \A scalar value that will be added to the private key corresponding to the\n\+ \above public key to obtain the private key to be used to sign this input.\n\+ \This value is typically derived via the following computation:\n\+ \\n\+ \ derivedKey = privkey + sha256(perCommitmentPoint || pubKey) mod N\n\+ \\n\+ \\f\n\+ \\ENQ\EOT\ETX\STX\SOH\ENQ\DC2\ETXs\EOT\t\n\+ \\f\n\+ \\ENQ\EOT\ETX\STX\SOH\SOH\DC2\ETXs\n\+ \\SYN\n\+ \\f\n\+ \\ENQ\EOT\ETX\STX\SOH\ETX\DC2\ETXs\EM\SUB\n\+ \\131\EOT\n\+ \\EOT\EOT\ETX\STX\STX\DC2\EOT\128\SOH\EOT\ESC\SUB\244\ETX\n\+ \A private key that will be used in combination with its corresponding\n\+ \private key to derive the private key that is to be used to sign the target\n\+ \input. Within the Lightning protocol, this value is typically the\n\+ \commitment secret from a previously revoked commitment transaction. This\n\+ \value is in combination with two hash values, and the original private key\n\+ \to derive the private key to be used when signing.\n\+ \\n\+ \ k = (privKey*sha256(pubKey || tweakPub) +\n\+ \tweakPriv*sha256(tweakPub || pubKey)) mod N\n\+ \\n\+ \\r\n\+ \\ENQ\EOT\ETX\STX\STX\ENQ\DC2\EOT\128\SOH\EOT\t\n\+ \\r\n\+ \\ENQ\EOT\ETX\STX\STX\SOH\DC2\EOT\128\SOH\n\+ \\SYN\n\+ \\r\n\+ \\ENQ\EOT\ETX\STX\STX\ETX\DC2\EOT\128\SOH\EM\SUB\n\+ \\152\SOH\n\+ \\EOT\EOT\ETX\STX\ETX\DC2\EOT\134\SOH\EOT\GS\SUB\137\SOH\n\+ \The full script required to properly redeem the output. This field will\n\+ \only be populated if a p2wsh or a p2sh output is being signed.\n\+ \\n\+ \\r\n\+ \\ENQ\EOT\ETX\STX\ETX\ENQ\DC2\EOT\134\SOH\EOT\t\n\+ \\r\n\+ \\ENQ\EOT\ETX\STX\ETX\SOH\DC2\EOT\134\SOH\n\+ \\CAN\n\+ \\r\n\+ \\ENQ\EOT\ETX\STX\ETX\ETX\DC2\EOT\134\SOH\ESC\FS\n\+ \_\n\+ \\EOT\EOT\ETX\STX\EOT\DC2\EOT\140\SOH\EOT\NAK\SUBQ\n\+ \A description of the output being spent. The value and script MUST be\n\+ \provided.\n\+ \\n\+ \\r\n\+ \\ENQ\EOT\ETX\STX\EOT\ACK\DC2\EOT\140\SOH\EOT\t\n\+ \\r\n\+ \\ENQ\EOT\ETX\STX\EOT\SOH\DC2\EOT\140\SOH\n\+ \\DLE\n\+ \\r\n\+ \\ENQ\EOT\ETX\STX\EOT\ETX\DC2\EOT\140\SOH\DC3\DC4\n\+ \m\n\+ \\EOT\EOT\ETX\STX\ENQ\DC2\EOT\146\SOH\EOT\ETB\SUB_\n\+ \The target sighash type that should be used when generating the final\n\+ \sighash, and signature.\n\+ \\n\+ \\r\n\+ \\ENQ\EOT\ETX\STX\ENQ\ENQ\DC2\EOT\146\SOH\EOT\n\+ \\n\+ \\r\n\+ \\ENQ\EOT\ETX\STX\ENQ\SOH\DC2\EOT\146\SOH\v\DC2\n\+ \\r\n\+ \\ENQ\EOT\ETX\STX\ENQ\ETX\DC2\EOT\146\SOH\NAK\SYN\n\+ \N\n\+ \\EOT\EOT\ETX\STX\ACK\DC2\EOT\151\SOH\EOT\SUB\SUB@\n\+ \The target input within the transaction that should be signed.\n\+ \\n\+ \\r\n\+ \\ENQ\EOT\ETX\STX\ACK\ENQ\DC2\EOT\151\SOH\EOT\t\n\+ \\r\n\+ \\ENQ\EOT\ETX\STX\ACK\SOH\DC2\EOT\151\SOH\n\+ \\NAK\n\+ \\r\n\+ \\ENQ\EOT\ETX\STX\ACK\ETX\DC2\EOT\151\SOH\CAN\EM\n\+ \\f\n\+ \\STX\EOT\EOT\DC2\ACK\154\SOH\NUL\160\SOH\SOH\n\+ \\v\n\+ \\ETX\EOT\EOT\SOH\DC2\EOT\154\SOH\b\SI\n\+ \>\n\+ \\EOT\EOT\EOT\STX\NUL\DC2\EOT\156\SOH\EOT\ESC\SUB0 The raw bytes of the transaction to be signed.\n\+ \\n\+ \\r\n\+ \\ENQ\EOT\EOT\STX\NUL\ENQ\DC2\EOT\156\SOH\EOT\t\n\+ \\r\n\+ \\ENQ\EOT\EOT\STX\NUL\SOH\DC2\EOT\156\SOH\n\+ \\SYN\n\+ \\r\n\+ \\ENQ\EOT\EOT\STX\NUL\ETX\DC2\EOT\156\SOH\EM\SUB\n\+ \G\n\+ \\EOT\EOT\EOT\STX\SOH\DC2\EOT\159\SOH\EOT+\SUB9 A set of sign descriptors, for each input to be signed.\n\+ \\n\+ \\r\n\+ \\ENQ\EOT\EOT\STX\SOH\EOT\DC2\EOT\159\SOH\EOT\f\n\+ \\r\n\+ \\ENQ\EOT\EOT\STX\SOH\ACK\DC2\EOT\159\SOH\r\ESC\n\+ \\r\n\+ \\ENQ\EOT\EOT\STX\SOH\SOH\DC2\EOT\159\SOH\FS&\n\+ \\r\n\+ \\ENQ\EOT\EOT\STX\SOH\ETX\DC2\EOT\159\SOH)*\n\+ \\f\n\+ \\STX\EOT\ENQ\DC2\ACK\162\SOH\NUL\168\SOH\SOH\n\+ \\v\n\+ \\ETX\EOT\ENQ\SOH\DC2\EOT\162\SOH\b\DLE\n\+ \h\n\+ \\EOT\EOT\ENQ\STX\NUL\DC2\EOT\167\SOH\EOT \SUBZ\n\+ \A set of signatures realized in a fixed 64-byte format ordered in ascending\n\+ \input order.\n\+ \\n\+ \\r\n\+ \\ENQ\EOT\ENQ\STX\NUL\EOT\DC2\EOT\167\SOH\EOT\f\n\+ \\r\n\+ \\ENQ\EOT\ENQ\STX\NUL\ENQ\DC2\EOT\167\SOH\r\DC2\n\+ \\r\n\+ \\ENQ\EOT\ENQ\STX\NUL\SOH\DC2\EOT\167\SOH\DC3\ESC\n\+ \\r\n\+ \\ENQ\EOT\ENQ\STX\NUL\ETX\DC2\EOT\167\SOH\RS\US\n\+ \\f\n\+ \\STX\EOT\ACK\DC2\ACK\170\SOH\NUL\179\SOH\SOH\n\+ \\v\n\+ \\ETX\EOT\ACK\SOH\DC2\EOT\170\SOH\b\DC3\n\+ \E\n\+ \\EOT\EOT\ACK\STX\NUL\DC2\EOT\172\SOH\EOT\US\SUB7 The serializes witness stack for the specified input.\n\+ \\n\+ \\r\n\+ \\ENQ\EOT\ACK\STX\NUL\EOT\DC2\EOT\172\SOH\EOT\f\n\+ \\r\n\+ \\ENQ\EOT\ACK\STX\NUL\ENQ\DC2\EOT\172\SOH\r\DC2\n\+ \\r\n\+ \\ENQ\EOT\ACK\STX\NUL\SOH\DC2\EOT\172\SOH\DC3\SUB\n\+ \\r\n\+ \\ENQ\EOT\ACK\STX\NUL\ETX\DC2\EOT\172\SOH\GS\RS\n\+ \\145\SOH\n\+ \\EOT\EOT\ACK\STX\SOH\DC2\EOT\178\SOH\EOT\EM\SUB\130\SOH\n\+ \The optional sig script for the specified witness that will only be set if\n\+ \the input specified is a nested p2sh witness program.\n\+ \\n\+ \\r\n\+ \\ENQ\EOT\ACK\STX\SOH\ENQ\DC2\EOT\178\SOH\EOT\t\n\+ \\r\n\+ \\ENQ\EOT\ACK\STX\SOH\SOH\DC2\EOT\178\SOH\n\+ \\DC4\n\+ \\r\n\+ \\ENQ\EOT\ACK\STX\SOH\ETX\DC2\EOT\178\SOH\ETB\CAN\n\+ \\f\n\+ \\STX\EOT\a\DC2\ACK\181\SOH\NUL\184\SOH\SOH\n\+ \\v\n\+ \\ETX\EOT\a\SOH\DC2\EOT\181\SOH\b\ETB\n\+ \?\n\+ \\EOT\EOT\a\STX\NUL\DC2\EOT\183\SOH\EOT+\SUB1 The set of fully valid input scripts requested.\n\+ \\n\+ \\r\n\+ \\ENQ\EOT\a\STX\NUL\EOT\DC2\EOT\183\SOH\EOT\f\n\+ \\r\n\+ \\ENQ\EOT\a\STX\NUL\ACK\DC2\EOT\183\SOH\r\CAN\n\+ \\r\n\+ \\ENQ\EOT\a\STX\NUL\SOH\DC2\EOT\183\SOH\EM&\n\+ \\r\n\+ \\ENQ\EOT\a\STX\NUL\ETX\DC2\EOT\183\SOH)*\n\+ \\f\n\+ \\STX\EOT\b\DC2\ACK\186\SOH\NUL\201\SOH\SOH\n\+ \\v\n\+ \\ETX\EOT\b\SOH\DC2\EOT\186\SOH\b\SYN\n\+ \)\n\+ \\EOT\EOT\b\STX\NUL\DC2\EOT\188\SOH\EOT\DC2\SUB\ESC The message to be signed.\n\+ \\n\+ \\r\n\+ \\ENQ\EOT\b\STX\NUL\ENQ\DC2\EOT\188\SOH\EOT\t\n\+ \\r\n\+ \\ENQ\EOT\b\STX\NUL\SOH\DC2\EOT\188\SOH\n\+ \\r\n\+ \\r\n\+ \\ENQ\EOT\b\STX\NUL\ETX\DC2\EOT\188\SOH\DLE\DC1\n\+ \M\n\+ \\EOT\EOT\b\STX\SOH\DC2\EOT\191\SOH\EOT\ESC\SUB? The key locator that identifies which key to use for signing.\n\+ \\n\+ \\r\n\+ \\ENQ\EOT\b\STX\SOH\ACK\DC2\EOT\191\SOH\EOT\SO\n\+ \\r\n\+ \\ENQ\EOT\b\STX\SOH\SOH\DC2\EOT\191\SOH\SI\SYN\n\+ \\r\n\+ \\ENQ\EOT\b\STX\SOH\ETX\DC2\EOT\191\SOH\EM\SUB\n\+ \L\n\+ \\EOT\EOT\b\STX\STX\DC2\EOT\194\SOH\EOT\EM\SUB> Double-SHA256 hash instead of just the default single round.\n\+ \\n\+ \\r\n\+ \\ENQ\EOT\b\STX\STX\ENQ\DC2\EOT\194\SOH\EOT\b\n\+ \\r\n\+ \\ENQ\EOT\b\STX\STX\SOH\DC2\EOT\194\SOH\t\DC4\n\+ \\r\n\+ \\ENQ\EOT\b\STX\STX\ETX\DC2\EOT\194\SOH\ETB\CAN\n\+ \]\n\+ \\EOT\EOT\b\STX\ETX\DC2\EOT\200\SOH\EOT\EM\SUBO\n\+ \Use the compact (pubkey recoverable) format instead of the raw lnwire\n\+ \format.\n\+ \\n\+ \\r\n\+ \\ENQ\EOT\b\STX\ETX\ENQ\DC2\EOT\200\SOH\EOT\b\n\+ \\r\n\+ \\ENQ\EOT\b\STX\ETX\SOH\DC2\EOT\200\SOH\t\DC4\n\+ \\r\n\+ \\ENQ\EOT\b\STX\ETX\ETX\DC2\EOT\200\SOH\ETB\CAN\n\+ \\f\n\+ \\STX\EOT\t\DC2\ACK\202\SOH\NUL\207\SOH\SOH\n\+ \\v\n\+ \\ETX\EOT\t\SOH\DC2\EOT\202\SOH\b\ETB\n\+ \U\n\+ \\EOT\EOT\t\STX\NUL\DC2\EOT\206\SOH\EOT\CAN\SUBG\n\+ \The signature for the given message in the fixed-size LN wire format.\n\+ \\n\+ \\r\n\+ \\ENQ\EOT\t\STX\NUL\ENQ\DC2\EOT\206\SOH\EOT\t\n\+ \\r\n\+ \\ENQ\EOT\t\STX\NUL\SOH\DC2\EOT\206\SOH\n\+ \\DC3\n\+ \\r\n\+ \\ENQ\EOT\t\STX\NUL\ETX\DC2\EOT\206\SOH\SYN\ETB\n\+ \\f\n\+ \\STX\EOT\n\+ \\DC2\ACK\209\SOH\NUL\221\SOH\SOH\n\+ \\v\n\+ \\ETX\EOT\n\+ \\SOH\DC2\EOT\209\SOH\b\CAN\n\+ \G\n\+ \\EOT\EOT\n\+ \\STX\NUL\DC2\EOT\211\SOH\EOT\DC2\SUB9 The message over which the signature is to be verified.\n\+ \\n\+ \\r\n\+ \\ENQ\EOT\n\+ \\STX\NUL\ENQ\DC2\EOT\211\SOH\EOT\t\n\+ \\r\n\+ \\ENQ\EOT\n\+ \\STX\NUL\SOH\DC2\EOT\211\SOH\n\+ \\r\n\+ \\r\n\+ \\ENQ\EOT\n\+ \\STX\NUL\ETX\DC2\EOT\211\SOH\DLE\DC1\n\+ \_\n\+ \\EOT\EOT\n\+ \\STX\SOH\DC2\EOT\217\SOH\EOT\CAN\SUBQ\n\+ \The fixed-size LN wire encoded signature to be verified over the given\n\+ \message.\n\+ \\n\+ \\r\n\+ \\ENQ\EOT\n\+ \\STX\SOH\ENQ\DC2\EOT\217\SOH\EOT\t\n\+ \\r\n\+ \\ENQ\EOT\n\+ \\STX\SOH\SOH\DC2\EOT\217\SOH\n\+ \\DC3\n\+ \\r\n\+ \\ENQ\EOT\n\+ \\STX\SOH\ETX\DC2\EOT\217\SOH\SYN\ETB\n\+ \A\n\+ \\EOT\EOT\n\+ \\STX\STX\DC2\EOT\220\SOH\EOT\NAK\SUB3 The public key the signature has to be valid for.\n\+ \\n\+ \\r\n\+ \\ENQ\EOT\n\+ \\STX\STX\ENQ\DC2\EOT\220\SOH\EOT\t\n\+ \\r\n\+ \\ENQ\EOT\n\+ \\STX\STX\SOH\DC2\EOT\220\SOH\n\+ \\DLE\n\+ \\r\n\+ \\ENQ\EOT\n\+ \\STX\STX\ETX\DC2\EOT\220\SOH\DC3\DC4\n\+ \\f\n\+ \\STX\EOT\v\DC2\ACK\222\SOH\NUL\225\SOH\SOH\n\+ \\v\n\+ \\ETX\EOT\v\SOH\DC2\EOT\222\SOH\b\EM\n\+ \G\n\+ \\EOT\EOT\v\STX\NUL\DC2\EOT\224\SOH\EOT\DC3\SUB9 Whether the signature was valid over the given message.\n\+ \\n\+ \\r\n\+ \\ENQ\EOT\v\STX\NUL\ENQ\DC2\EOT\224\SOH\EOT\b\n\+ \\r\n\+ \\ENQ\EOT\v\STX\NUL\SOH\DC2\EOT\224\SOH\t\SO\n\+ \\r\n\+ \\ENQ\EOT\v\STX\NUL\ETX\DC2\EOT\224\SOH\DC1\DC2\n\+ \\f\n\+ \\STX\EOT\f\DC2\ACK\227\SOH\NUL\244\SOH\SOH\n\+ \\v\n\+ \\ETX\EOT\f\SOH\DC2\EOT\227\SOH\b\CAN\n\+ \J\n\+ \\EOT\EOT\f\STX\NUL\DC2\EOT\229\SOH\EOT\US\SUB< The ephemeral public key to use for the DH key derivation.\n\+ \\n\+ \\r\n\+ \\ENQ\EOT\f\STX\NUL\ENQ\DC2\EOT\229\SOH\EOT\t\n\+ \\r\n\+ \\ENQ\EOT\f\STX\NUL\SOH\DC2\EOT\229\SOH\n\+ \\SUB\n\+ \\r\n\+ \\ENQ\EOT\f\STX\NUL\ETX\DC2\EOT\229\SOH\GS\RS\n\+ \\171\SOH\n\+ \\EOT\EOT\f\STX\SOH\DC2\EOT\236\SOH\EOT/\SUB\156\SOH\n\+ \Deprecated. The optional key locator of the local key that should be used.\n\+ \If this parameter is not set then the node's identity private key will be\n\+ \used.\n\+ \\n\+ \\r\n\+ \\ENQ\EOT\f\STX\SOH\ACK\DC2\EOT\236\SOH\EOT\SO\n\+ \\r\n\+ \\ENQ\EOT\f\STX\SOH\SOH\DC2\EOT\236\SOH\SI\SYN\n\+ \\r\n\+ \\ENQ\EOT\f\STX\SOH\ETX\DC2\EOT\236\SOH\EM\SUB\n\+ \\r\n\+ \\ENQ\EOT\f\STX\SOH\b\DC2\EOT\236\SOH\ESC.\n\+ \\SO\n\+ \\ACK\EOT\f\STX\SOH\b\ETX\DC2\EOT\236\SOH\FS-\n\+ \\200\SOH\n\+ \\EOT\EOT\f\STX\STX\DC2\EOT\243\SOH\EOT\US\SUB\185\SOH\n\+ \A key descriptor describes the key used for performing ECDH. Either a key\n\+ \locator or a raw public key is expected, if neither is supplied, defaults to\n\+ \the node's identity private key.\n\+ \\n\+ \\r\n\+ \\ENQ\EOT\f\STX\STX\ACK\DC2\EOT\243\SOH\EOT\DC1\n\+ \\r\n\+ \\ENQ\EOT\f\STX\STX\SOH\DC2\EOT\243\SOH\DC2\SUB\n\+ \\r\n\+ \\ENQ\EOT\f\STX\STX\ETX\DC2\EOT\243\SOH\GS\RS\n\+ \\f\n\+ \\STX\EOT\r\DC2\ACK\246\SOH\NUL\249\SOH\SOH\n\+ \\v\n\+ \\ETX\EOT\r\SOH\DC2\EOT\246\SOH\b\EM\n\+ \:\n\+ \\EOT\EOT\r\STX\NUL\DC2\EOT\248\SOH\EOT\EM\SUB, The shared public key, hashed with sha256.\n\+ \\n\+ \\r\n\+ \\ENQ\EOT\r\STX\NUL\ENQ\DC2\EOT\248\SOH\EOT\t\n\+ \\r\n\+ \\ENQ\EOT\r\STX\NUL\SOH\DC2\EOT\248\SOH\n\+ \\DC4\n\+ \\r\n\+ \\ENQ\EOT\r\STX\NUL\ETX\DC2\EOT\248\SOH\ETB\CANb\ACKproto3"
@@ -0,0 +1,223 @@+{- This file was auto-generated from signrpc/signer.proto by the proto-lens-protoc program. -}+{-# LANGUAGE ScopedTypeVariables, DataKinds, TypeFamilies, UndecidableInstances, GeneralizedNewtypeDeriving, MultiParamTypeClasses, FlexibleContexts, FlexibleInstances, PatternSynonyms, MagicHash, NoImplicitPrelude, BangPatterns, TypeApplications, OverloadedStrings, DerivingStrategies, DeriveGeneric#-}+{-# OPTIONS_GHC -Wno-unused-imports#-}+{-# OPTIONS_GHC -Wno-duplicate-exports#-}+{-# OPTIONS_GHC -Wno-dodgy-exports#-}+module Proto.Signrpc.Signer_Fields where+import qualified Data.ProtoLens.Runtime.Prelude as Prelude+import qualified Data.ProtoLens.Runtime.Data.Int as Data.Int+import qualified Data.ProtoLens.Runtime.Data.Monoid as Data.Monoid+import qualified Data.ProtoLens.Runtime.Data.Word as Data.Word+import qualified Data.ProtoLens.Runtime.Data.ProtoLens as Data.ProtoLens+import qualified Data.ProtoLens.Runtime.Data.ProtoLens.Encoding.Bytes as Data.ProtoLens.Encoding.Bytes+import qualified Data.ProtoLens.Runtime.Data.ProtoLens.Encoding.Growing as Data.ProtoLens.Encoding.Growing+import qualified Data.ProtoLens.Runtime.Data.ProtoLens.Encoding.Parser.Unsafe as Data.ProtoLens.Encoding.Parser.Unsafe+import qualified Data.ProtoLens.Runtime.Data.ProtoLens.Encoding.Wire as Data.ProtoLens.Encoding.Wire+import qualified Data.ProtoLens.Runtime.Data.ProtoLens.Field as Data.ProtoLens.Field+import qualified Data.ProtoLens.Runtime.Data.ProtoLens.Message.Enum as Data.ProtoLens.Message.Enum+import qualified Data.ProtoLens.Runtime.Data.ProtoLens.Service.Types as Data.ProtoLens.Service.Types+import qualified Data.ProtoLens.Runtime.Lens.Family2 as Lens.Family2+import qualified Data.ProtoLens.Runtime.Lens.Family2.Unchecked as Lens.Family2.Unchecked+import qualified Data.ProtoLens.Runtime.Data.Text as Data.Text+import qualified Data.ProtoLens.Runtime.Data.Map as Data.Map+import qualified Data.ProtoLens.Runtime.Data.ByteString as Data.ByteString+import qualified Data.ProtoLens.Runtime.Data.ByteString.Char8 as Data.ByteString.Char8+import qualified Data.ProtoLens.Runtime.Data.Text.Encoding as Data.Text.Encoding+import qualified Data.ProtoLens.Runtime.Data.Vector as Data.Vector+import qualified Data.ProtoLens.Runtime.Data.Vector.Generic as Data.Vector.Generic+import qualified Data.ProtoLens.Runtime.Data.Vector.Unboxed as Data.Vector.Unboxed+import qualified Data.ProtoLens.Runtime.Text.Read as Text.Read+compactSig ::+ forall f s a.+ (Prelude.Functor f,+ Data.ProtoLens.Field.HasField s "compactSig" a) =>+ Lens.Family2.LensLike' f s a+compactSig = Data.ProtoLens.Field.field @"compactSig"+doubleHash ::+ forall f s a.+ (Prelude.Functor f,+ Data.ProtoLens.Field.HasField s "doubleHash" a) =>+ Lens.Family2.LensLike' f s a+doubleHash = Data.ProtoLens.Field.field @"doubleHash"+doubleTweak ::+ forall f s a.+ (Prelude.Functor f,+ Data.ProtoLens.Field.HasField s "doubleTweak" a) =>+ Lens.Family2.LensLike' f s a+doubleTweak = Data.ProtoLens.Field.field @"doubleTweak"+ephemeralPubkey ::+ forall f s a.+ (Prelude.Functor f,+ Data.ProtoLens.Field.HasField s "ephemeralPubkey" a) =>+ Lens.Family2.LensLike' f s a+ephemeralPubkey = Data.ProtoLens.Field.field @"ephemeralPubkey"+inputIndex ::+ forall f s a.+ (Prelude.Functor f,+ Data.ProtoLens.Field.HasField s "inputIndex" a) =>+ Lens.Family2.LensLike' f s a+inputIndex = Data.ProtoLens.Field.field @"inputIndex"+inputScripts ::+ forall f s a.+ (Prelude.Functor f,+ Data.ProtoLens.Field.HasField s "inputScripts" a) =>+ Lens.Family2.LensLike' f s a+inputScripts = Data.ProtoLens.Field.field @"inputScripts"+keyDesc ::+ forall f s a.+ (Prelude.Functor f, Data.ProtoLens.Field.HasField s "keyDesc" a) =>+ Lens.Family2.LensLike' f s a+keyDesc = Data.ProtoLens.Field.field @"keyDesc"+keyFamily ::+ forall f s a.+ (Prelude.Functor f,+ Data.ProtoLens.Field.HasField s "keyFamily" a) =>+ Lens.Family2.LensLike' f s a+keyFamily = Data.ProtoLens.Field.field @"keyFamily"+keyIndex ::+ forall f s a.+ (Prelude.Functor f,+ Data.ProtoLens.Field.HasField s "keyIndex" a) =>+ Lens.Family2.LensLike' f s a+keyIndex = Data.ProtoLens.Field.field @"keyIndex"+keyLoc ::+ forall f s a.+ (Prelude.Functor f, Data.ProtoLens.Field.HasField s "keyLoc" a) =>+ Lens.Family2.LensLike' f s a+keyLoc = Data.ProtoLens.Field.field @"keyLoc"+maybe'keyDesc ::+ forall f s a.+ (Prelude.Functor f,+ Data.ProtoLens.Field.HasField s "maybe'keyDesc" a) =>+ Lens.Family2.LensLike' f s a+maybe'keyDesc = Data.ProtoLens.Field.field @"maybe'keyDesc"+maybe'keyLoc ::+ forall f s a.+ (Prelude.Functor f,+ Data.ProtoLens.Field.HasField s "maybe'keyLoc" a) =>+ Lens.Family2.LensLike' f s a+maybe'keyLoc = Data.ProtoLens.Field.field @"maybe'keyLoc"+maybe'output ::+ forall f s a.+ (Prelude.Functor f,+ Data.ProtoLens.Field.HasField s "maybe'output" a) =>+ Lens.Family2.LensLike' f s a+maybe'output = Data.ProtoLens.Field.field @"maybe'output"+msg ::+ forall f s a.+ (Prelude.Functor f, Data.ProtoLens.Field.HasField s "msg" a) =>+ Lens.Family2.LensLike' f s a+msg = Data.ProtoLens.Field.field @"msg"+output ::+ forall f s a.+ (Prelude.Functor f, Data.ProtoLens.Field.HasField s "output" a) =>+ Lens.Family2.LensLike' f s a+output = Data.ProtoLens.Field.field @"output"+pkScript ::+ forall f s a.+ (Prelude.Functor f,+ Data.ProtoLens.Field.HasField s "pkScript" a) =>+ Lens.Family2.LensLike' f s a+pkScript = Data.ProtoLens.Field.field @"pkScript"+pubkey ::+ forall f s a.+ (Prelude.Functor f, Data.ProtoLens.Field.HasField s "pubkey" a) =>+ Lens.Family2.LensLike' f s a+pubkey = Data.ProtoLens.Field.field @"pubkey"+rawKeyBytes ::+ forall f s a.+ (Prelude.Functor f,+ Data.ProtoLens.Field.HasField s "rawKeyBytes" a) =>+ Lens.Family2.LensLike' f s a+rawKeyBytes = Data.ProtoLens.Field.field @"rawKeyBytes"+rawSigs ::+ forall f s a.+ (Prelude.Functor f, Data.ProtoLens.Field.HasField s "rawSigs" a) =>+ Lens.Family2.LensLike' f s a+rawSigs = Data.ProtoLens.Field.field @"rawSigs"+rawTxBytes ::+ forall f s a.+ (Prelude.Functor f,+ Data.ProtoLens.Field.HasField s "rawTxBytes" a) =>+ Lens.Family2.LensLike' f s a+rawTxBytes = Data.ProtoLens.Field.field @"rawTxBytes"+sharedKey ::+ forall f s a.+ (Prelude.Functor f,+ Data.ProtoLens.Field.HasField s "sharedKey" a) =>+ Lens.Family2.LensLike' f s a+sharedKey = Data.ProtoLens.Field.field @"sharedKey"+sigScript ::+ forall f s a.+ (Prelude.Functor f,+ Data.ProtoLens.Field.HasField s "sigScript" a) =>+ Lens.Family2.LensLike' f s a+sigScript = Data.ProtoLens.Field.field @"sigScript"+sighash ::+ forall f s a.+ (Prelude.Functor f, Data.ProtoLens.Field.HasField s "sighash" a) =>+ Lens.Family2.LensLike' f s a+sighash = Data.ProtoLens.Field.field @"sighash"+signDescs ::+ forall f s a.+ (Prelude.Functor f,+ Data.ProtoLens.Field.HasField s "signDescs" a) =>+ Lens.Family2.LensLike' f s a+signDescs = Data.ProtoLens.Field.field @"signDescs"+signature ::+ forall f s a.+ (Prelude.Functor f,+ Data.ProtoLens.Field.HasField s "signature" a) =>+ Lens.Family2.LensLike' f s a+signature = Data.ProtoLens.Field.field @"signature"+singleTweak ::+ forall f s a.+ (Prelude.Functor f,+ Data.ProtoLens.Field.HasField s "singleTweak" a) =>+ Lens.Family2.LensLike' f s a+singleTweak = Data.ProtoLens.Field.field @"singleTweak"+valid ::+ forall f s a.+ (Prelude.Functor f, Data.ProtoLens.Field.HasField s "valid" a) =>+ Lens.Family2.LensLike' f s a+valid = Data.ProtoLens.Field.field @"valid"+value ::+ forall f s a.+ (Prelude.Functor f, Data.ProtoLens.Field.HasField s "value" a) =>+ Lens.Family2.LensLike' f s a+value = Data.ProtoLens.Field.field @"value"+vec'inputScripts ::+ forall f s a.+ (Prelude.Functor f,+ Data.ProtoLens.Field.HasField s "vec'inputScripts" a) =>+ Lens.Family2.LensLike' f s a+vec'inputScripts = Data.ProtoLens.Field.field @"vec'inputScripts"+vec'rawSigs ::+ forall f s a.+ (Prelude.Functor f,+ Data.ProtoLens.Field.HasField s "vec'rawSigs" a) =>+ Lens.Family2.LensLike' f s a+vec'rawSigs = Data.ProtoLens.Field.field @"vec'rawSigs"+vec'signDescs ::+ forall f s a.+ (Prelude.Functor f,+ Data.ProtoLens.Field.HasField s "vec'signDescs" a) =>+ Lens.Family2.LensLike' f s a+vec'signDescs = Data.ProtoLens.Field.field @"vec'signDescs"+vec'witness ::+ forall f s a.+ (Prelude.Functor f,+ Data.ProtoLens.Field.HasField s "vec'witness" a) =>+ Lens.Family2.LensLike' f s a+vec'witness = Data.ProtoLens.Field.field @"vec'witness"+witness ::+ forall f s a.+ (Prelude.Functor f, Data.ProtoLens.Field.HasField s "witness" a) =>+ Lens.Family2.LensLike' f s a+witness = Data.ProtoLens.Field.field @"witness"+witnessScript ::+ forall f s a.+ (Prelude.Functor f,+ Data.ProtoLens.Field.HasField s "witnessScript" a) =>+ Lens.Family2.LensLike' f s a+witnessScript = Data.ProtoLens.Field.field @"witnessScript"
@@ -0,0 +1,671 @@+{- This file was auto-generated from stateservice.proto by the proto-lens-protoc program. -}+{-# LANGUAGE ScopedTypeVariables, DataKinds, TypeFamilies, UndecidableInstances, GeneralizedNewtypeDeriving, MultiParamTypeClasses, FlexibleContexts, FlexibleInstances, PatternSynonyms, MagicHash, NoImplicitPrelude, BangPatterns, TypeApplications, OverloadedStrings, DerivingStrategies, DeriveGeneric#-}+{-# OPTIONS_GHC -Wno-unused-imports#-}+{-# OPTIONS_GHC -Wno-duplicate-exports#-}+{-# OPTIONS_GHC -Wno-dodgy-exports#-}+module Proto.Stateservice (+ State(..), GetStateRequest(), GetStateResponse(),+ SubscribeStateRequest(), SubscribeStateResponse(), WalletState(..),+ WalletState(), WalletState'UnrecognizedValue+ ) where+import qualified Data.ProtoLens.Runtime.Control.DeepSeq as Control.DeepSeq+import qualified Data.ProtoLens.Runtime.Data.ProtoLens.Prism as Data.ProtoLens.Prism+import qualified Text.PrettyPrint.GenericPretty.Instance+import qualified GHC.Generics+import qualified Text.PrettyPrint.GenericPretty+import qualified Data.ProtoLens.Runtime.Prelude as Prelude+import qualified Data.ProtoLens.Runtime.Data.Int as Data.Int+import qualified Data.ProtoLens.Runtime.Data.Monoid as Data.Monoid+import qualified Data.ProtoLens.Runtime.Data.Word as Data.Word+import qualified Data.ProtoLens.Runtime.Data.ProtoLens as Data.ProtoLens+import qualified Data.ProtoLens.Runtime.Data.ProtoLens.Encoding.Bytes as Data.ProtoLens.Encoding.Bytes+import qualified Data.ProtoLens.Runtime.Data.ProtoLens.Encoding.Growing as Data.ProtoLens.Encoding.Growing+import qualified Data.ProtoLens.Runtime.Data.ProtoLens.Encoding.Parser.Unsafe as Data.ProtoLens.Encoding.Parser.Unsafe+import qualified Data.ProtoLens.Runtime.Data.ProtoLens.Encoding.Wire as Data.ProtoLens.Encoding.Wire+import qualified Data.ProtoLens.Runtime.Data.ProtoLens.Field as Data.ProtoLens.Field+import qualified Data.ProtoLens.Runtime.Data.ProtoLens.Message.Enum as Data.ProtoLens.Message.Enum+import qualified Data.ProtoLens.Runtime.Data.ProtoLens.Service.Types as Data.ProtoLens.Service.Types+import qualified Data.ProtoLens.Runtime.Lens.Family2 as Lens.Family2+import qualified Data.ProtoLens.Runtime.Lens.Family2.Unchecked as Lens.Family2.Unchecked+import qualified Data.ProtoLens.Runtime.Data.Text as Data.Text+import qualified Data.ProtoLens.Runtime.Data.Map as Data.Map+import qualified Data.ProtoLens.Runtime.Data.ByteString as Data.ByteString+import qualified Data.ProtoLens.Runtime.Data.ByteString.Char8 as Data.ByteString.Char8+import qualified Data.ProtoLens.Runtime.Data.Text.Encoding as Data.Text.Encoding+import qualified Data.ProtoLens.Runtime.Data.Vector as Data.Vector+import qualified Data.ProtoLens.Runtime.Data.Vector.Generic as Data.Vector.Generic+import qualified Data.ProtoLens.Runtime.Data.Vector.Unboxed as Data.Vector.Unboxed+import qualified Data.ProtoLens.Runtime.Text.Read as Text.Read+{- | Fields :+ -}+data GetStateRequest+ = GetStateRequest'_constructor {_GetStateRequest'_unknownFields :: !Data.ProtoLens.FieldSet}+ deriving stock (Prelude.Eq, Prelude.Ord, GHC.Generics.Generic)+instance Prelude.Show GetStateRequest where+ showsPrec _ __x __s+ = Prelude.showChar+ '{'+ (Prelude.showString+ (Data.ProtoLens.showMessageShort __x) (Prelude.showChar '}' __s))+instance Text.PrettyPrint.GenericPretty.Out GetStateRequest+instance Data.ProtoLens.Message GetStateRequest where+ messageName _ = Data.Text.pack "lnrpc.GetStateRequest"+ packedMessageDescriptor _+ = "\n\+ \\SIGetStateRequest"+ packedFileDescriptor _ = packedFileDescriptor+ fieldsByTag = let in Data.Map.fromList []+ unknownFields+ = Lens.Family2.Unchecked.lens+ _GetStateRequest'_unknownFields+ (\ x__ y__ -> x__ {_GetStateRequest'_unknownFields = y__})+ defMessage+ = GetStateRequest'_constructor+ {_GetStateRequest'_unknownFields = []}+ parseMessage+ = let+ loop ::+ GetStateRequest+ -> Data.ProtoLens.Encoding.Bytes.Parser GetStateRequest+ loop x+ = do end <- Data.ProtoLens.Encoding.Bytes.atEnd+ if end then+ do (let missing = []+ in+ if Prelude.null missing then+ Prelude.return ()+ else+ Prelude.fail+ ((Prelude.++)+ "Missing required fields: "+ (Prelude.show (missing :: [Prelude.String]))))+ Prelude.return+ (Lens.Family2.over+ Data.ProtoLens.unknownFields (\ !t -> Prelude.reverse t) x)+ else+ do tag <- Data.ProtoLens.Encoding.Bytes.getVarInt+ case tag of {+ wire+ -> do !y <- Data.ProtoLens.Encoding.Wire.parseTaggedValueFromWire+ wire+ loop+ (Lens.Family2.over+ Data.ProtoLens.unknownFields (\ !t -> (:) y t) x) }+ in+ (Data.ProtoLens.Encoding.Bytes.<?>)+ (do loop Data.ProtoLens.defMessage) "GetStateRequest"+ buildMessage+ = \ _x+ -> Data.ProtoLens.Encoding.Wire.buildFieldSet+ (Lens.Family2.view Data.ProtoLens.unknownFields _x)+instance Control.DeepSeq.NFData GetStateRequest where+ rnf+ = \ x__+ -> Control.DeepSeq.deepseq (_GetStateRequest'_unknownFields x__) ()+{- | Fields :+ + * 'Proto.Stateservice_Fields.state' @:: Lens' GetStateResponse WalletState@ -}+data GetStateResponse+ = GetStateResponse'_constructor {_GetStateResponse'state :: !WalletState,+ _GetStateResponse'_unknownFields :: !Data.ProtoLens.FieldSet}+ deriving stock (Prelude.Eq, Prelude.Ord, GHC.Generics.Generic)+instance Prelude.Show GetStateResponse where+ showsPrec _ __x __s+ = Prelude.showChar+ '{'+ (Prelude.showString+ (Data.ProtoLens.showMessageShort __x) (Prelude.showChar '}' __s))+instance Text.PrettyPrint.GenericPretty.Out GetStateResponse+instance Data.ProtoLens.Field.HasField GetStateResponse "state" WalletState where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _GetStateResponse'state+ (\ x__ y__ -> x__ {_GetStateResponse'state = y__}))+ Prelude.id+instance Data.ProtoLens.Message GetStateResponse where+ messageName _ = Data.Text.pack "lnrpc.GetStateResponse"+ packedMessageDescriptor _+ = "\n\+ \\DLEGetStateResponse\DC2(\n\+ \\ENQstate\CAN\SOH \SOH(\SO2\DC2.lnrpc.WalletStateR\ENQstate"+ packedFileDescriptor _ = packedFileDescriptor+ fieldsByTag+ = let+ state__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "state"+ (Data.ProtoLens.ScalarField Data.ProtoLens.EnumField ::+ Data.ProtoLens.FieldTypeDescriptor WalletState)+ (Data.ProtoLens.PlainField+ Data.ProtoLens.Optional (Data.ProtoLens.Field.field @"state")) ::+ Data.ProtoLens.FieldDescriptor GetStateResponse+ in+ Data.Map.fromList [(Data.ProtoLens.Tag 1, state__field_descriptor)]+ unknownFields+ = Lens.Family2.Unchecked.lens+ _GetStateResponse'_unknownFields+ (\ x__ y__ -> x__ {_GetStateResponse'_unknownFields = y__})+ defMessage+ = GetStateResponse'_constructor+ {_GetStateResponse'state = Data.ProtoLens.fieldDefault,+ _GetStateResponse'_unknownFields = []}+ parseMessage+ = let+ loop ::+ GetStateResponse+ -> Data.ProtoLens.Encoding.Bytes.Parser GetStateResponse+ loop x+ = do end <- Data.ProtoLens.Encoding.Bytes.atEnd+ if end then+ do (let missing = []+ in+ if Prelude.null missing then+ Prelude.return ()+ else+ Prelude.fail+ ((Prelude.++)+ "Missing required fields: "+ (Prelude.show (missing :: [Prelude.String]))))+ Prelude.return+ (Lens.Family2.over+ Data.ProtoLens.unknownFields (\ !t -> Prelude.reverse t) x)+ else+ do tag <- Data.ProtoLens.Encoding.Bytes.getVarInt+ case tag of+ 8 -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (Prelude.fmap+ Prelude.toEnum+ (Prelude.fmap+ Prelude.fromIntegral+ Data.ProtoLens.Encoding.Bytes.getVarInt))+ "state"+ loop (Lens.Family2.set (Data.ProtoLens.Field.field @"state") y x)+ wire+ -> do !y <- Data.ProtoLens.Encoding.Wire.parseTaggedValueFromWire+ wire+ loop+ (Lens.Family2.over+ Data.ProtoLens.unknownFields (\ !t -> (:) y t) x)+ in+ (Data.ProtoLens.Encoding.Bytes.<?>)+ (do loop Data.ProtoLens.defMessage) "GetStateResponse"+ buildMessage+ = \ _x+ -> (Data.Monoid.<>)+ (let+ _v = Lens.Family2.view (Data.ProtoLens.Field.field @"state") _x+ in+ if (Prelude.==) _v Data.ProtoLens.fieldDefault then+ Data.Monoid.mempty+ else+ (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 8)+ ((Prelude..)+ ((Prelude..)+ Data.ProtoLens.Encoding.Bytes.putVarInt Prelude.fromIntegral)+ Prelude.fromEnum _v))+ (Data.ProtoLens.Encoding.Wire.buildFieldSet+ (Lens.Family2.view Data.ProtoLens.unknownFields _x))+instance Control.DeepSeq.NFData GetStateResponse where+ rnf+ = \ x__+ -> Control.DeepSeq.deepseq+ (_GetStateResponse'_unknownFields x__)+ (Control.DeepSeq.deepseq (_GetStateResponse'state x__) ())+{- | Fields :+ -}+data SubscribeStateRequest+ = SubscribeStateRequest'_constructor {_SubscribeStateRequest'_unknownFields :: !Data.ProtoLens.FieldSet}+ deriving stock (Prelude.Eq, Prelude.Ord, GHC.Generics.Generic)+instance Prelude.Show SubscribeStateRequest where+ showsPrec _ __x __s+ = Prelude.showChar+ '{'+ (Prelude.showString+ (Data.ProtoLens.showMessageShort __x) (Prelude.showChar '}' __s))+instance Text.PrettyPrint.GenericPretty.Out SubscribeStateRequest+instance Data.ProtoLens.Message SubscribeStateRequest where+ messageName _ = Data.Text.pack "lnrpc.SubscribeStateRequest"+ packedMessageDescriptor _+ = "\n\+ \\NAKSubscribeStateRequest"+ packedFileDescriptor _ = packedFileDescriptor+ fieldsByTag = let in Data.Map.fromList []+ unknownFields+ = Lens.Family2.Unchecked.lens+ _SubscribeStateRequest'_unknownFields+ (\ x__ y__ -> x__ {_SubscribeStateRequest'_unknownFields = y__})+ defMessage+ = SubscribeStateRequest'_constructor+ {_SubscribeStateRequest'_unknownFields = []}+ parseMessage+ = let+ loop ::+ SubscribeStateRequest+ -> Data.ProtoLens.Encoding.Bytes.Parser SubscribeStateRequest+ loop x+ = do end <- Data.ProtoLens.Encoding.Bytes.atEnd+ if end then+ do (let missing = []+ in+ if Prelude.null missing then+ Prelude.return ()+ else+ Prelude.fail+ ((Prelude.++)+ "Missing required fields: "+ (Prelude.show (missing :: [Prelude.String]))))+ Prelude.return+ (Lens.Family2.over+ Data.ProtoLens.unknownFields (\ !t -> Prelude.reverse t) x)+ else+ do tag <- Data.ProtoLens.Encoding.Bytes.getVarInt+ case tag of {+ wire+ -> do !y <- Data.ProtoLens.Encoding.Wire.parseTaggedValueFromWire+ wire+ loop+ (Lens.Family2.over+ Data.ProtoLens.unknownFields (\ !t -> (:) y t) x) }+ in+ (Data.ProtoLens.Encoding.Bytes.<?>)+ (do loop Data.ProtoLens.defMessage) "SubscribeStateRequest"+ buildMessage+ = \ _x+ -> Data.ProtoLens.Encoding.Wire.buildFieldSet+ (Lens.Family2.view Data.ProtoLens.unknownFields _x)+instance Control.DeepSeq.NFData SubscribeStateRequest where+ rnf+ = \ x__+ -> Control.DeepSeq.deepseq+ (_SubscribeStateRequest'_unknownFields x__) ()+{- | Fields :+ + * 'Proto.Stateservice_Fields.state' @:: Lens' SubscribeStateResponse WalletState@ -}+data SubscribeStateResponse+ = SubscribeStateResponse'_constructor {_SubscribeStateResponse'state :: !WalletState,+ _SubscribeStateResponse'_unknownFields :: !Data.ProtoLens.FieldSet}+ deriving stock (Prelude.Eq, Prelude.Ord, GHC.Generics.Generic)+instance Prelude.Show SubscribeStateResponse where+ showsPrec _ __x __s+ = Prelude.showChar+ '{'+ (Prelude.showString+ (Data.ProtoLens.showMessageShort __x) (Prelude.showChar '}' __s))+instance Text.PrettyPrint.GenericPretty.Out SubscribeStateResponse+instance Data.ProtoLens.Field.HasField SubscribeStateResponse "state" WalletState where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _SubscribeStateResponse'state+ (\ x__ y__ -> x__ {_SubscribeStateResponse'state = y__}))+ Prelude.id+instance Data.ProtoLens.Message SubscribeStateResponse where+ messageName _ = Data.Text.pack "lnrpc.SubscribeStateResponse"+ packedMessageDescriptor _+ = "\n\+ \\SYNSubscribeStateResponse\DC2(\n\+ \\ENQstate\CAN\SOH \SOH(\SO2\DC2.lnrpc.WalletStateR\ENQstate"+ packedFileDescriptor _ = packedFileDescriptor+ fieldsByTag+ = let+ state__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "state"+ (Data.ProtoLens.ScalarField Data.ProtoLens.EnumField ::+ Data.ProtoLens.FieldTypeDescriptor WalletState)+ (Data.ProtoLens.PlainField+ Data.ProtoLens.Optional (Data.ProtoLens.Field.field @"state")) ::+ Data.ProtoLens.FieldDescriptor SubscribeStateResponse+ in+ Data.Map.fromList [(Data.ProtoLens.Tag 1, state__field_descriptor)]+ unknownFields+ = Lens.Family2.Unchecked.lens+ _SubscribeStateResponse'_unknownFields+ (\ x__ y__ -> x__ {_SubscribeStateResponse'_unknownFields = y__})+ defMessage+ = SubscribeStateResponse'_constructor+ {_SubscribeStateResponse'state = Data.ProtoLens.fieldDefault,+ _SubscribeStateResponse'_unknownFields = []}+ parseMessage+ = let+ loop ::+ SubscribeStateResponse+ -> Data.ProtoLens.Encoding.Bytes.Parser SubscribeStateResponse+ loop x+ = do end <- Data.ProtoLens.Encoding.Bytes.atEnd+ if end then+ do (let missing = []+ in+ if Prelude.null missing then+ Prelude.return ()+ else+ Prelude.fail+ ((Prelude.++)+ "Missing required fields: "+ (Prelude.show (missing :: [Prelude.String]))))+ Prelude.return+ (Lens.Family2.over+ Data.ProtoLens.unknownFields (\ !t -> Prelude.reverse t) x)+ else+ do tag <- Data.ProtoLens.Encoding.Bytes.getVarInt+ case tag of+ 8 -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (Prelude.fmap+ Prelude.toEnum+ (Prelude.fmap+ Prelude.fromIntegral+ Data.ProtoLens.Encoding.Bytes.getVarInt))+ "state"+ loop (Lens.Family2.set (Data.ProtoLens.Field.field @"state") y x)+ wire+ -> do !y <- Data.ProtoLens.Encoding.Wire.parseTaggedValueFromWire+ wire+ loop+ (Lens.Family2.over+ Data.ProtoLens.unknownFields (\ !t -> (:) y t) x)+ in+ (Data.ProtoLens.Encoding.Bytes.<?>)+ (do loop Data.ProtoLens.defMessage) "SubscribeStateResponse"+ buildMessage+ = \ _x+ -> (Data.Monoid.<>)+ (let+ _v = Lens.Family2.view (Data.ProtoLens.Field.field @"state") _x+ in+ if (Prelude.==) _v Data.ProtoLens.fieldDefault then+ Data.Monoid.mempty+ else+ (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 8)+ ((Prelude..)+ ((Prelude..)+ Data.ProtoLens.Encoding.Bytes.putVarInt Prelude.fromIntegral)+ Prelude.fromEnum _v))+ (Data.ProtoLens.Encoding.Wire.buildFieldSet+ (Lens.Family2.view Data.ProtoLens.unknownFields _x))+instance Control.DeepSeq.NFData SubscribeStateResponse where+ rnf+ = \ x__+ -> Control.DeepSeq.deepseq+ (_SubscribeStateResponse'_unknownFields x__)+ (Control.DeepSeq.deepseq (_SubscribeStateResponse'state x__) ())+newtype WalletState'UnrecognizedValue+ = WalletState'UnrecognizedValue Data.Int.Int32+ deriving stock (Prelude.Eq,+ Prelude.Ord,+ Prelude.Show,+ GHC.Generics.Generic)+instance Text.PrettyPrint.GenericPretty.Out WalletState'UnrecognizedValue+data WalletState+ = NON_EXISTING |+ LOCKED |+ UNLOCKED |+ RPC_ACTIVE |+ SERVER_ACTIVE |+ WAITING_TO_START |+ WalletState'Unrecognized !WalletState'UnrecognizedValue+ deriving stock (Prelude.Show,+ Prelude.Eq,+ Prelude.Ord,+ GHC.Generics.Generic)+instance Data.ProtoLens.MessageEnum WalletState where+ maybeToEnum 0 = Prelude.Just NON_EXISTING+ maybeToEnum 1 = Prelude.Just LOCKED+ maybeToEnum 2 = Prelude.Just UNLOCKED+ maybeToEnum 3 = Prelude.Just RPC_ACTIVE+ maybeToEnum 4 = Prelude.Just SERVER_ACTIVE+ maybeToEnum 255 = Prelude.Just WAITING_TO_START+ maybeToEnum k+ = Prelude.Just+ (WalletState'Unrecognized+ (WalletState'UnrecognizedValue (Prelude.fromIntegral k)))+ showEnum NON_EXISTING = "NON_EXISTING"+ showEnum LOCKED = "LOCKED"+ showEnum UNLOCKED = "UNLOCKED"+ showEnum RPC_ACTIVE = "RPC_ACTIVE"+ showEnum SERVER_ACTIVE = "SERVER_ACTIVE"+ showEnum WAITING_TO_START = "WAITING_TO_START"+ showEnum+ (WalletState'Unrecognized (WalletState'UnrecognizedValue k))+ = Prelude.show k+ readEnum k+ | (Prelude.==) k "NON_EXISTING" = Prelude.Just NON_EXISTING+ | (Prelude.==) k "LOCKED" = Prelude.Just LOCKED+ | (Prelude.==) k "UNLOCKED" = Prelude.Just UNLOCKED+ | (Prelude.==) k "RPC_ACTIVE" = Prelude.Just RPC_ACTIVE+ | (Prelude.==) k "SERVER_ACTIVE" = Prelude.Just SERVER_ACTIVE+ | (Prelude.==) k "WAITING_TO_START" = Prelude.Just WAITING_TO_START+ | Prelude.otherwise+ = (Prelude.>>=) (Text.Read.readMaybe k) Data.ProtoLens.maybeToEnum+instance Prelude.Bounded WalletState where+ minBound = NON_EXISTING+ maxBound = WAITING_TO_START+instance Prelude.Enum WalletState where+ toEnum k__+ = Prelude.maybe+ (Prelude.error+ ((Prelude.++)+ "toEnum: unknown value for enum WalletState: " (Prelude.show k__)))+ Prelude.id (Data.ProtoLens.maybeToEnum k__)+ fromEnum NON_EXISTING = 0+ fromEnum LOCKED = 1+ fromEnum UNLOCKED = 2+ fromEnum RPC_ACTIVE = 3+ fromEnum SERVER_ACTIVE = 4+ fromEnum WAITING_TO_START = 255+ fromEnum+ (WalletState'Unrecognized (WalletState'UnrecognizedValue k))+ = Prelude.fromIntegral k+ succ WAITING_TO_START+ = Prelude.error+ "WalletState.succ: bad argument WAITING_TO_START. This value would be out of bounds."+ succ NON_EXISTING = LOCKED+ succ LOCKED = UNLOCKED+ succ UNLOCKED = RPC_ACTIVE+ succ RPC_ACTIVE = SERVER_ACTIVE+ succ SERVER_ACTIVE = WAITING_TO_START+ succ (WalletState'Unrecognized _)+ = Prelude.error+ "WalletState.succ: bad argument: unrecognized value"+ pred NON_EXISTING+ = Prelude.error+ "WalletState.pred: bad argument NON_EXISTING. This value would be out of bounds."+ pred LOCKED = NON_EXISTING+ pred UNLOCKED = LOCKED+ pred RPC_ACTIVE = UNLOCKED+ pred SERVER_ACTIVE = RPC_ACTIVE+ pred WAITING_TO_START = SERVER_ACTIVE+ pred (WalletState'Unrecognized _)+ = Prelude.error+ "WalletState.pred: bad argument: unrecognized value"+ enumFrom = Data.ProtoLens.Message.Enum.messageEnumFrom+ enumFromTo = Data.ProtoLens.Message.Enum.messageEnumFromTo+ enumFromThen = Data.ProtoLens.Message.Enum.messageEnumFromThen+ enumFromThenTo = Data.ProtoLens.Message.Enum.messageEnumFromThenTo+instance Data.ProtoLens.FieldDefault WalletState where+ fieldDefault = NON_EXISTING+instance Control.DeepSeq.NFData WalletState where+ rnf x__ = Prelude.seq x__ ()+instance Text.PrettyPrint.GenericPretty.Out WalletState+data State = State {}+instance Data.ProtoLens.Service.Types.Service State where+ type ServiceName State = "State"+ type ServicePackage State = "lnrpc"+ type ServiceMethods State = '["getState", "subscribeState"]+ packedServiceDescriptor _+ = "\n\+ \\ENQState\DC2O\n\+ \\SOSubscribeState\DC2\FS.lnrpc.SubscribeStateRequest\SUB\GS.lnrpc.SubscribeStateResponse0\SOH\DC2;\n\+ \\bGetState\DC2\SYN.lnrpc.GetStateRequest\SUB\ETB.lnrpc.GetStateResponse"+instance Data.ProtoLens.Service.Types.HasMethodImpl State "subscribeState" where+ type MethodName State "subscribeState" = "SubscribeState"+ type MethodInput State "subscribeState" = SubscribeStateRequest+ type MethodOutput State "subscribeState" = SubscribeStateResponse+ type MethodStreamingType State "subscribeState" = 'Data.ProtoLens.Service.Types.ServerStreaming+instance Data.ProtoLens.Service.Types.HasMethodImpl State "getState" where+ type MethodName State "getState" = "GetState"+ type MethodInput State "getState" = GetStateRequest+ type MethodOutput State "getState" = GetStateResponse+ type MethodStreamingType State "getState" = 'Data.ProtoLens.Service.Types.NonStreaming+packedFileDescriptor :: Data.ByteString.ByteString+packedFileDescriptor+ = "\n\+ \\DC2stateservice.proto\DC2\ENQlnrpc\"\ETB\n\+ \\NAKSubscribeStateRequest\"B\n\+ \\SYNSubscribeStateResponse\DC2(\n\+ \\ENQstate\CAN\SOH \SOH(\SO2\DC2.lnrpc.WalletStateR\ENQstate\"\DC1\n\+ \\SIGetStateRequest\"<\n\+ \\DLEGetStateResponse\DC2(\n\+ \\ENQstate\CAN\SOH \SOH(\SO2\DC2.lnrpc.WalletStateR\ENQstate*s\n\+ \\vWalletState\DC2\DLE\n\+ \\fNON_EXISTING\DLE\NUL\DC2\n\+ \\n\+ \\ACKLOCKED\DLE\SOH\DC2\f\n\+ \\bUNLOCKED\DLE\STX\DC2\SO\n\+ \\n\+ \RPC_ACTIVE\DLE\ETX\DC2\DC1\n\+ \\rSERVER_ACTIVE\DLE\EOT\DC2\NAK\n\+ \\DLEWAITING_TO_START\DLE\255\SOH2\149\SOH\n\+ \\ENQState\DC2O\n\+ \\SOSubscribeState\DC2\FS.lnrpc.SubscribeStateRequest\SUB\GS.lnrpc.SubscribeStateResponse0\SOH\DC2;\n\+ \\bGetState\DC2\SYN.lnrpc.GetStateRequest\SUB\ETB.lnrpc.GetStateResponseB'Z%github.com/lightningnetwork/lnd/lnrpcJ\196\r\n\+ \\ACK\DC2\EOT\NUL\NUL=\SOH\n\+ \\b\n\+ \\SOH\f\DC2\ETX\NUL\NUL\DC2\n\+ \\b\n\+ \\SOH\STX\DC2\ETX\STX\NUL\SO\n\+ \\b\n\+ \\SOH\b\DC2\ETX\EOT\NUL<\n\+ \\t\n\+ \\STX\b\v\DC2\ETX\EOT\NUL<\n\+ \\155\ACK\n\+ \\STX\ACK\NUL\DC2\EOT\SUB\NUL#\SOH\SUBi State service is a always running service that exposes the current state of\n\+ \ the wallet and RPC server.\n\+ \2\163\ENQ\n\+ \ Comments in this file will be directly parsed into the API\n\+ \ Documentation as descriptions of the associated method, message, or field.\n\+ \ These descriptions should go right above the definition of the object, and\n\+ \ can be in either block or // comment format.\n\+ \\n\+ \ An RPC method can be matched to an lncli command by placing a line in the\n\+ \ beginning of the description in exactly the following format:\n\+ \ lncli: `methodname`\n\+ \\n\+ \ Failure to specify the exact name of the command will cause documentation\n\+ \ generation to fail.\n\+ \\n\+ \ More information on how exactly the gRPC documentation is generated from\n\+ \ this proto file can be found here:\n\+ \ https://github.com/lightninglabs/lightning-api\n\+ \\n\+ \\n\+ \\n\+ \\ETX\ACK\NUL\SOH\DC2\ETX\SUB\b\r\n\+ \\133\SOH\n\+ \\EOT\ACK\NUL\STX\NUL\DC2\EOT\GS\EOT\RS0\SUBw SubscribeState subscribes to the state of the wallet. The current wallet\n\+ \ state will always be delivered immediately.\n\+ \\n\+ \\f\n\+ \\ENQ\ACK\NUL\STX\NUL\SOH\DC2\ETX\GS\b\SYN\n\+ \\f\n\+ \\ENQ\ACK\NUL\STX\NUL\STX\DC2\ETX\GS\CAN-\n\+ \\f\n\+ \\ENQ\ACK\NUL\STX\NUL\ACK\DC2\ETX\RS\DC1\ETB\n\+ \\f\n\+ \\ENQ\ACK\NUL\STX\NUL\ETX\DC2\ETX\RS\CAN.\n\+ \\\\n\+ \\EOT\ACK\NUL\STX\SOH\DC2\ETX\"\EOT>\SUBO GetState returns the current wallet state without streaming further\n\+ \ changes.\n\+ \\n\+ \\f\n\+ \\ENQ\ACK\NUL\STX\SOH\SOH\DC2\ETX\"\b\DLE\n\+ \\f\n\+ \\ENQ\ACK\NUL\STX\SOH\STX\DC2\ETX\"\DC2!\n\+ \\f\n\+ \\ENQ\ACK\NUL\STX\SOH\ETX\DC2\ETX\",<\n\+ \\n\+ \\n\+ \\STX\ENQ\NUL\DC2\EOT%\NUL/\SOH\n\+ \\n\+ \\n\+ \\ETX\ENQ\NUL\SOH\DC2\ETX%\ENQ\DLE\n\+ \\v\n\+ \\EOT\ENQ\NUL\STX\NUL\DC2\ETX&\EOT\NAK\n\+ \\f\n\+ \\ENQ\ENQ\NUL\STX\NUL\SOH\DC2\ETX&\EOT\DLE\n\+ \\f\n\+ \\ENQ\ENQ\NUL\STX\NUL\STX\DC2\ETX&\DC3\DC4\n\+ \\v\n\+ \\EOT\ENQ\NUL\STX\SOH\DC2\ETX'\EOT\SI\n\+ \\f\n\+ \\ENQ\ENQ\NUL\STX\SOH\SOH\DC2\ETX'\EOT\n\+ \\n\+ \\f\n\+ \\ENQ\ENQ\NUL\STX\SOH\STX\DC2\ETX'\r\SO\n\+ \\v\n\+ \\EOT\ENQ\NUL\STX\STX\DC2\ETX(\EOT\DC1\n\+ \\f\n\+ \\ENQ\ENQ\NUL\STX\STX\SOH\DC2\ETX(\EOT\f\n\+ \\f\n\+ \\ENQ\ENQ\NUL\STX\STX\STX\DC2\ETX(\SI\DLE\n\+ \\v\n\+ \\EOT\ENQ\NUL\STX\ETX\DC2\ETX)\EOT\DC3\n\+ \\f\n\+ \\ENQ\ENQ\NUL\STX\ETX\SOH\DC2\ETX)\EOT\SO\n\+ \\f\n\+ \\ENQ\ENQ\NUL\STX\ETX\STX\DC2\ETX)\DC1\DC2\n\+ \P\n\+ \\EOT\ENQ\NUL\STX\EOT\DC2\ETX,\EOT\SYN\SUBC SERVER_ACTIVE means that the lnd server is ready to accept calls.\n\+ \\n\+ \\f\n\+ \\ENQ\ENQ\NUL\STX\EOT\SOH\DC2\ETX,\EOT\DC1\n\+ \\f\n\+ \\ENQ\ENQ\NUL\STX\EOT\STX\DC2\ETX,\DC4\NAK\n\+ \\v\n\+ \\EOT\ENQ\NUL\STX\ENQ\DC2\ETX.\EOT\ESC\n\+ \\f\n\+ \\ENQ\ENQ\NUL\STX\ENQ\SOH\DC2\ETX.\EOT\DC4\n\+ \\f\n\+ \\ENQ\ENQ\NUL\STX\ENQ\STX\DC2\ETX.\ETB\SUB\n\+ \\n\+ \\n\+ \\STX\EOT\NUL\DC2\EOT1\NUL2\SOH\n\+ \\n\+ \\n\+ \\ETX\EOT\NUL\SOH\DC2\ETX1\b\GS\n\+ \\n\+ \\n\+ \\STX\EOT\SOH\DC2\EOT4\NUL6\SOH\n\+ \\n\+ \\n\+ \\ETX\EOT\SOH\SOH\DC2\ETX4\b\RS\n\+ \\v\n\+ \\EOT\EOT\SOH\STX\NUL\DC2\ETX5\EOT\SUB\n\+ \\f\n\+ \\ENQ\EOT\SOH\STX\NUL\ACK\DC2\ETX5\EOT\SI\n\+ \\f\n\+ \\ENQ\EOT\SOH\STX\NUL\SOH\DC2\ETX5\DLE\NAK\n\+ \\f\n\+ \\ENQ\EOT\SOH\STX\NUL\ETX\DC2\ETX5\CAN\EM\n\+ \\n\+ \\n\+ \\STX\EOT\STX\DC2\EOT8\NUL9\SOH\n\+ \\n\+ \\n\+ \\ETX\EOT\STX\SOH\DC2\ETX8\b\ETB\n\+ \\n\+ \\n\+ \\STX\EOT\ETX\DC2\EOT;\NUL=\SOH\n\+ \\n\+ \\n\+ \\ETX\EOT\ETX\SOH\DC2\ETX;\b\CAN\n\+ \\v\n\+ \\EOT\EOT\ETX\STX\NUL\DC2\ETX<\EOT\SUB\n\+ \\f\n\+ \\ENQ\EOT\ETX\STX\NUL\ACK\DC2\ETX<\EOT\SI\n\+ \\f\n\+ \\ENQ\EOT\ETX\STX\NUL\SOH\DC2\ETX<\DLE\NAK\n\+ \\f\n\+ \\ENQ\EOT\ETX\STX\NUL\ETX\DC2\ETX<\CAN\EMb\ACKproto3"
@@ -0,0 +1,34 @@+{- This file was auto-generated from stateservice.proto by the proto-lens-protoc program. -}+{-# LANGUAGE ScopedTypeVariables, DataKinds, TypeFamilies, UndecidableInstances, GeneralizedNewtypeDeriving, MultiParamTypeClasses, FlexibleContexts, FlexibleInstances, PatternSynonyms, MagicHash, NoImplicitPrelude, BangPatterns, TypeApplications, OverloadedStrings, DerivingStrategies, DeriveGeneric#-}+{-# OPTIONS_GHC -Wno-unused-imports#-}+{-# OPTIONS_GHC -Wno-duplicate-exports#-}+{-# OPTIONS_GHC -Wno-dodgy-exports#-}+module Proto.Stateservice_Fields where+import qualified Data.ProtoLens.Runtime.Prelude as Prelude+import qualified Data.ProtoLens.Runtime.Data.Int as Data.Int+import qualified Data.ProtoLens.Runtime.Data.Monoid as Data.Monoid+import qualified Data.ProtoLens.Runtime.Data.Word as Data.Word+import qualified Data.ProtoLens.Runtime.Data.ProtoLens as Data.ProtoLens+import qualified Data.ProtoLens.Runtime.Data.ProtoLens.Encoding.Bytes as Data.ProtoLens.Encoding.Bytes+import qualified Data.ProtoLens.Runtime.Data.ProtoLens.Encoding.Growing as Data.ProtoLens.Encoding.Growing+import qualified Data.ProtoLens.Runtime.Data.ProtoLens.Encoding.Parser.Unsafe as Data.ProtoLens.Encoding.Parser.Unsafe+import qualified Data.ProtoLens.Runtime.Data.ProtoLens.Encoding.Wire as Data.ProtoLens.Encoding.Wire+import qualified Data.ProtoLens.Runtime.Data.ProtoLens.Field as Data.ProtoLens.Field+import qualified Data.ProtoLens.Runtime.Data.ProtoLens.Message.Enum as Data.ProtoLens.Message.Enum+import qualified Data.ProtoLens.Runtime.Data.ProtoLens.Service.Types as Data.ProtoLens.Service.Types+import qualified Data.ProtoLens.Runtime.Lens.Family2 as Lens.Family2+import qualified Data.ProtoLens.Runtime.Lens.Family2.Unchecked as Lens.Family2.Unchecked+import qualified Data.ProtoLens.Runtime.Data.Text as Data.Text+import qualified Data.ProtoLens.Runtime.Data.Map as Data.Map+import qualified Data.ProtoLens.Runtime.Data.ByteString as Data.ByteString+import qualified Data.ProtoLens.Runtime.Data.ByteString.Char8 as Data.ByteString.Char8+import qualified Data.ProtoLens.Runtime.Data.Text.Encoding as Data.Text.Encoding+import qualified Data.ProtoLens.Runtime.Data.Vector as Data.Vector+import qualified Data.ProtoLens.Runtime.Data.Vector.Generic as Data.Vector.Generic+import qualified Data.ProtoLens.Runtime.Data.Vector.Unboxed as Data.Vector.Unboxed+import qualified Data.ProtoLens.Runtime.Text.Read as Text.Read+state ::+ forall f s a.+ (Prelude.Functor f, Data.ProtoLens.Field.HasField s "state" a) =>+ Lens.Family2.LensLike' f s a+state = Data.ProtoLens.Field.field @"state"
@@ -0,0 +1,806 @@+{- This file was auto-generated from verrpc/verrpc.proto by the proto-lens-protoc program. -}+{-# LANGUAGE ScopedTypeVariables, DataKinds, TypeFamilies, UndecidableInstances, GeneralizedNewtypeDeriving, MultiParamTypeClasses, FlexibleContexts, FlexibleInstances, PatternSynonyms, MagicHash, NoImplicitPrelude, BangPatterns, TypeApplications, OverloadedStrings, DerivingStrategies, DeriveGeneric#-}+{-# OPTIONS_GHC -Wno-unused-imports#-}+{-# OPTIONS_GHC -Wno-duplicate-exports#-}+{-# OPTIONS_GHC -Wno-dodgy-exports#-}+module Proto.Verrpc.Verrpc (+ Versioner(..), Version(), VersionRequest()+ ) where+import qualified Data.ProtoLens.Runtime.Control.DeepSeq as Control.DeepSeq+import qualified Data.ProtoLens.Runtime.Data.ProtoLens.Prism as Data.ProtoLens.Prism+import qualified Text.PrettyPrint.GenericPretty.Instance+import qualified GHC.Generics+import qualified Text.PrettyPrint.GenericPretty+import qualified Data.ProtoLens.Runtime.Prelude as Prelude+import qualified Data.ProtoLens.Runtime.Data.Int as Data.Int+import qualified Data.ProtoLens.Runtime.Data.Monoid as Data.Monoid+import qualified Data.ProtoLens.Runtime.Data.Word as Data.Word+import qualified Data.ProtoLens.Runtime.Data.ProtoLens as Data.ProtoLens+import qualified Data.ProtoLens.Runtime.Data.ProtoLens.Encoding.Bytes as Data.ProtoLens.Encoding.Bytes+import qualified Data.ProtoLens.Runtime.Data.ProtoLens.Encoding.Growing as Data.ProtoLens.Encoding.Growing+import qualified Data.ProtoLens.Runtime.Data.ProtoLens.Encoding.Parser.Unsafe as Data.ProtoLens.Encoding.Parser.Unsafe+import qualified Data.ProtoLens.Runtime.Data.ProtoLens.Encoding.Wire as Data.ProtoLens.Encoding.Wire+import qualified Data.ProtoLens.Runtime.Data.ProtoLens.Field as Data.ProtoLens.Field+import qualified Data.ProtoLens.Runtime.Data.ProtoLens.Message.Enum as Data.ProtoLens.Message.Enum+import qualified Data.ProtoLens.Runtime.Data.ProtoLens.Service.Types as Data.ProtoLens.Service.Types+import qualified Data.ProtoLens.Runtime.Lens.Family2 as Lens.Family2+import qualified Data.ProtoLens.Runtime.Lens.Family2.Unchecked as Lens.Family2.Unchecked+import qualified Data.ProtoLens.Runtime.Data.Text as Data.Text+import qualified Data.ProtoLens.Runtime.Data.Map as Data.Map+import qualified Data.ProtoLens.Runtime.Data.ByteString as Data.ByteString+import qualified Data.ProtoLens.Runtime.Data.ByteString.Char8 as Data.ByteString.Char8+import qualified Data.ProtoLens.Runtime.Data.Text.Encoding as Data.Text.Encoding+import qualified Data.ProtoLens.Runtime.Data.Vector as Data.Vector+import qualified Data.ProtoLens.Runtime.Data.Vector.Generic as Data.Vector.Generic+import qualified Data.ProtoLens.Runtime.Data.Vector.Unboxed as Data.Vector.Unboxed+import qualified Data.ProtoLens.Runtime.Text.Read as Text.Read+{- | Fields :+ + * 'Proto.Verrpc.Verrpc_Fields.commit' @:: Lens' Version Data.Text.Text@+ * 'Proto.Verrpc.Verrpc_Fields.commitHash' @:: Lens' Version Data.Text.Text@+ * 'Proto.Verrpc.Verrpc_Fields.version' @:: Lens' Version Data.Text.Text@+ * 'Proto.Verrpc.Verrpc_Fields.appMajor' @:: Lens' Version Data.Word.Word32@+ * 'Proto.Verrpc.Verrpc_Fields.appMinor' @:: Lens' Version Data.Word.Word32@+ * 'Proto.Verrpc.Verrpc_Fields.appPatch' @:: Lens' Version Data.Word.Word32@+ * 'Proto.Verrpc.Verrpc_Fields.appPreRelease' @:: Lens' Version Data.Text.Text@+ * 'Proto.Verrpc.Verrpc_Fields.buildTags' @:: Lens' Version [Data.Text.Text]@+ * 'Proto.Verrpc.Verrpc_Fields.vec'buildTags' @:: Lens' Version (Data.Vector.Vector Data.Text.Text)@+ * 'Proto.Verrpc.Verrpc_Fields.goVersion' @:: Lens' Version Data.Text.Text@ -}+data Version+ = Version'_constructor {_Version'commit :: !Data.Text.Text,+ _Version'commitHash :: !Data.Text.Text,+ _Version'version :: !Data.Text.Text,+ _Version'appMajor :: !Data.Word.Word32,+ _Version'appMinor :: !Data.Word.Word32,+ _Version'appPatch :: !Data.Word.Word32,+ _Version'appPreRelease :: !Data.Text.Text,+ _Version'buildTags :: !(Data.Vector.Vector Data.Text.Text),+ _Version'goVersion :: !Data.Text.Text,+ _Version'_unknownFields :: !Data.ProtoLens.FieldSet}+ deriving stock (Prelude.Eq, Prelude.Ord, GHC.Generics.Generic)+instance Prelude.Show Version where+ showsPrec _ __x __s+ = Prelude.showChar+ '{'+ (Prelude.showString+ (Data.ProtoLens.showMessageShort __x) (Prelude.showChar '}' __s))+instance Text.PrettyPrint.GenericPretty.Out Version+instance Data.ProtoLens.Field.HasField Version "commit" Data.Text.Text where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _Version'commit (\ x__ y__ -> x__ {_Version'commit = y__}))+ Prelude.id+instance Data.ProtoLens.Field.HasField Version "commitHash" Data.Text.Text where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _Version'commitHash (\ x__ y__ -> x__ {_Version'commitHash = y__}))+ Prelude.id+instance Data.ProtoLens.Field.HasField Version "version" Data.Text.Text where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _Version'version (\ x__ y__ -> x__ {_Version'version = y__}))+ Prelude.id+instance Data.ProtoLens.Field.HasField Version "appMajor" Data.Word.Word32 where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _Version'appMajor (\ x__ y__ -> x__ {_Version'appMajor = y__}))+ Prelude.id+instance Data.ProtoLens.Field.HasField Version "appMinor" Data.Word.Word32 where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _Version'appMinor (\ x__ y__ -> x__ {_Version'appMinor = y__}))+ Prelude.id+instance Data.ProtoLens.Field.HasField Version "appPatch" Data.Word.Word32 where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _Version'appPatch (\ x__ y__ -> x__ {_Version'appPatch = y__}))+ Prelude.id+instance Data.ProtoLens.Field.HasField Version "appPreRelease" Data.Text.Text where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _Version'appPreRelease+ (\ x__ y__ -> x__ {_Version'appPreRelease = y__}))+ Prelude.id+instance Data.ProtoLens.Field.HasField Version "buildTags" [Data.Text.Text] where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _Version'buildTags (\ x__ y__ -> x__ {_Version'buildTags = y__}))+ (Lens.Family2.Unchecked.lens+ Data.Vector.Generic.toList+ (\ _ y__ -> Data.Vector.Generic.fromList y__))+instance Data.ProtoLens.Field.HasField Version "vec'buildTags" (Data.Vector.Vector Data.Text.Text) where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _Version'buildTags (\ x__ y__ -> x__ {_Version'buildTags = y__}))+ Prelude.id+instance Data.ProtoLens.Field.HasField Version "goVersion" Data.Text.Text where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _Version'goVersion (\ x__ y__ -> x__ {_Version'goVersion = y__}))+ Prelude.id+instance Data.ProtoLens.Message Version where+ messageName _ = Data.Text.pack "verrpc.Version"+ packedMessageDescriptor _+ = "\n\+ \\aVersion\DC2\SYN\n\+ \\ACKcommit\CAN\SOH \SOH(\tR\ACKcommit\DC2\US\n\+ \\vcommit_hash\CAN\STX \SOH(\tR\n\+ \commitHash\DC2\CAN\n\+ \\aversion\CAN\ETX \SOH(\tR\aversion\DC2\ESC\n\+ \\tapp_major\CAN\EOT \SOH(\rR\bappMajor\DC2\ESC\n\+ \\tapp_minor\CAN\ENQ \SOH(\rR\bappMinor\DC2\ESC\n\+ \\tapp_patch\CAN\ACK \SOH(\rR\bappPatch\DC2&\n\+ \\SIapp_pre_release\CAN\a \SOH(\tR\rappPreRelease\DC2\GS\n\+ \\n\+ \build_tags\CAN\b \ETX(\tR\tbuildTags\DC2\GS\n\+ \\n\+ \go_version\CAN\t \SOH(\tR\tgoVersion"+ packedFileDescriptor _ = packedFileDescriptor+ fieldsByTag+ = let+ commit__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "commit"+ (Data.ProtoLens.ScalarField Data.ProtoLens.StringField ::+ Data.ProtoLens.FieldTypeDescriptor Data.Text.Text)+ (Data.ProtoLens.PlainField+ Data.ProtoLens.Optional (Data.ProtoLens.Field.field @"commit")) ::+ Data.ProtoLens.FieldDescriptor Version+ commitHash__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "commit_hash"+ (Data.ProtoLens.ScalarField Data.ProtoLens.StringField ::+ Data.ProtoLens.FieldTypeDescriptor Data.Text.Text)+ (Data.ProtoLens.PlainField+ Data.ProtoLens.Optional+ (Data.ProtoLens.Field.field @"commitHash")) ::+ Data.ProtoLens.FieldDescriptor Version+ version__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "version"+ (Data.ProtoLens.ScalarField Data.ProtoLens.StringField ::+ Data.ProtoLens.FieldTypeDescriptor Data.Text.Text)+ (Data.ProtoLens.PlainField+ Data.ProtoLens.Optional (Data.ProtoLens.Field.field @"version")) ::+ Data.ProtoLens.FieldDescriptor Version+ appMajor__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "app_major"+ (Data.ProtoLens.ScalarField Data.ProtoLens.UInt32Field ::+ Data.ProtoLens.FieldTypeDescriptor Data.Word.Word32)+ (Data.ProtoLens.PlainField+ Data.ProtoLens.Optional+ (Data.ProtoLens.Field.field @"appMajor")) ::+ Data.ProtoLens.FieldDescriptor Version+ appMinor__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "app_minor"+ (Data.ProtoLens.ScalarField Data.ProtoLens.UInt32Field ::+ Data.ProtoLens.FieldTypeDescriptor Data.Word.Word32)+ (Data.ProtoLens.PlainField+ Data.ProtoLens.Optional+ (Data.ProtoLens.Field.field @"appMinor")) ::+ Data.ProtoLens.FieldDescriptor Version+ appPatch__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "app_patch"+ (Data.ProtoLens.ScalarField Data.ProtoLens.UInt32Field ::+ Data.ProtoLens.FieldTypeDescriptor Data.Word.Word32)+ (Data.ProtoLens.PlainField+ Data.ProtoLens.Optional+ (Data.ProtoLens.Field.field @"appPatch")) ::+ Data.ProtoLens.FieldDescriptor Version+ appPreRelease__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "app_pre_release"+ (Data.ProtoLens.ScalarField Data.ProtoLens.StringField ::+ Data.ProtoLens.FieldTypeDescriptor Data.Text.Text)+ (Data.ProtoLens.PlainField+ Data.ProtoLens.Optional+ (Data.ProtoLens.Field.field @"appPreRelease")) ::+ Data.ProtoLens.FieldDescriptor Version+ buildTags__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "build_tags"+ (Data.ProtoLens.ScalarField Data.ProtoLens.StringField ::+ Data.ProtoLens.FieldTypeDescriptor Data.Text.Text)+ (Data.ProtoLens.RepeatedField+ Data.ProtoLens.Unpacked+ (Data.ProtoLens.Field.field @"buildTags")) ::+ Data.ProtoLens.FieldDescriptor Version+ goVersion__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "go_version"+ (Data.ProtoLens.ScalarField Data.ProtoLens.StringField ::+ Data.ProtoLens.FieldTypeDescriptor Data.Text.Text)+ (Data.ProtoLens.PlainField+ Data.ProtoLens.Optional+ (Data.ProtoLens.Field.field @"goVersion")) ::+ Data.ProtoLens.FieldDescriptor Version+ in+ Data.Map.fromList+ [(Data.ProtoLens.Tag 1, commit__field_descriptor),+ (Data.ProtoLens.Tag 2, commitHash__field_descriptor),+ (Data.ProtoLens.Tag 3, version__field_descriptor),+ (Data.ProtoLens.Tag 4, appMajor__field_descriptor),+ (Data.ProtoLens.Tag 5, appMinor__field_descriptor),+ (Data.ProtoLens.Tag 6, appPatch__field_descriptor),+ (Data.ProtoLens.Tag 7, appPreRelease__field_descriptor),+ (Data.ProtoLens.Tag 8, buildTags__field_descriptor),+ (Data.ProtoLens.Tag 9, goVersion__field_descriptor)]+ unknownFields+ = Lens.Family2.Unchecked.lens+ _Version'_unknownFields+ (\ x__ y__ -> x__ {_Version'_unknownFields = y__})+ defMessage+ = Version'_constructor+ {_Version'commit = Data.ProtoLens.fieldDefault,+ _Version'commitHash = Data.ProtoLens.fieldDefault,+ _Version'version = Data.ProtoLens.fieldDefault,+ _Version'appMajor = Data.ProtoLens.fieldDefault,+ _Version'appMinor = Data.ProtoLens.fieldDefault,+ _Version'appPatch = Data.ProtoLens.fieldDefault,+ _Version'appPreRelease = Data.ProtoLens.fieldDefault,+ _Version'buildTags = Data.Vector.Generic.empty,+ _Version'goVersion = Data.ProtoLens.fieldDefault,+ _Version'_unknownFields = []}+ parseMessage+ = let+ loop ::+ Version+ -> Data.ProtoLens.Encoding.Growing.Growing Data.Vector.Vector Data.ProtoLens.Encoding.Growing.RealWorld Data.Text.Text+ -> Data.ProtoLens.Encoding.Bytes.Parser Version+ loop x mutable'buildTags+ = do end <- Data.ProtoLens.Encoding.Bytes.atEnd+ if end then+ do frozen'buildTags <- Data.ProtoLens.Encoding.Parser.Unsafe.unsafeLiftIO+ (Data.ProtoLens.Encoding.Growing.unsafeFreeze+ mutable'buildTags)+ (let missing = []+ in+ if Prelude.null missing then+ Prelude.return ()+ else+ Prelude.fail+ ((Prelude.++)+ "Missing required fields: "+ (Prelude.show (missing :: [Prelude.String]))))+ Prelude.return+ (Lens.Family2.over+ Data.ProtoLens.unknownFields (\ !t -> Prelude.reverse t)+ (Lens.Family2.set+ (Data.ProtoLens.Field.field @"vec'buildTags") frozen'buildTags x))+ else+ do tag <- Data.ProtoLens.Encoding.Bytes.getVarInt+ case tag of+ 10+ -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (do value <- do len <- Data.ProtoLens.Encoding.Bytes.getVarInt+ Data.ProtoLens.Encoding.Bytes.getBytes+ (Prelude.fromIntegral len)+ Data.ProtoLens.Encoding.Bytes.runEither+ (case Data.Text.Encoding.decodeUtf8' value of+ (Prelude.Left err)+ -> Prelude.Left (Prelude.show err)+ (Prelude.Right r) -> Prelude.Right r))+ "commit"+ loop+ (Lens.Family2.set (Data.ProtoLens.Field.field @"commit") y x)+ mutable'buildTags+ 18+ -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (do value <- do len <- Data.ProtoLens.Encoding.Bytes.getVarInt+ Data.ProtoLens.Encoding.Bytes.getBytes+ (Prelude.fromIntegral len)+ Data.ProtoLens.Encoding.Bytes.runEither+ (case Data.Text.Encoding.decodeUtf8' value of+ (Prelude.Left err)+ -> Prelude.Left (Prelude.show err)+ (Prelude.Right r) -> Prelude.Right r))+ "commit_hash"+ loop+ (Lens.Family2.set (Data.ProtoLens.Field.field @"commitHash") y x)+ mutable'buildTags+ 26+ -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (do value <- do len <- Data.ProtoLens.Encoding.Bytes.getVarInt+ Data.ProtoLens.Encoding.Bytes.getBytes+ (Prelude.fromIntegral len)+ Data.ProtoLens.Encoding.Bytes.runEither+ (case Data.Text.Encoding.decodeUtf8' value of+ (Prelude.Left err)+ -> Prelude.Left (Prelude.show err)+ (Prelude.Right r) -> Prelude.Right r))+ "version"+ loop+ (Lens.Family2.set (Data.ProtoLens.Field.field @"version") y x)+ mutable'buildTags+ 32+ -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (Prelude.fmap+ Prelude.fromIntegral+ Data.ProtoLens.Encoding.Bytes.getVarInt)+ "app_major"+ loop+ (Lens.Family2.set (Data.ProtoLens.Field.field @"appMajor") y x)+ mutable'buildTags+ 40+ -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (Prelude.fmap+ Prelude.fromIntegral+ Data.ProtoLens.Encoding.Bytes.getVarInt)+ "app_minor"+ loop+ (Lens.Family2.set (Data.ProtoLens.Field.field @"appMinor") y x)+ mutable'buildTags+ 48+ -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (Prelude.fmap+ Prelude.fromIntegral+ Data.ProtoLens.Encoding.Bytes.getVarInt)+ "app_patch"+ loop+ (Lens.Family2.set (Data.ProtoLens.Field.field @"appPatch") y x)+ mutable'buildTags+ 58+ -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (do value <- do len <- Data.ProtoLens.Encoding.Bytes.getVarInt+ Data.ProtoLens.Encoding.Bytes.getBytes+ (Prelude.fromIntegral len)+ Data.ProtoLens.Encoding.Bytes.runEither+ (case Data.Text.Encoding.decodeUtf8' value of+ (Prelude.Left err)+ -> Prelude.Left (Prelude.show err)+ (Prelude.Right r) -> Prelude.Right r))+ "app_pre_release"+ loop+ (Lens.Family2.set+ (Data.ProtoLens.Field.field @"appPreRelease") y x)+ mutable'buildTags+ 66+ -> do !y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (do value <- do len <- Data.ProtoLens.Encoding.Bytes.getVarInt+ Data.ProtoLens.Encoding.Bytes.getBytes+ (Prelude.fromIntegral len)+ Data.ProtoLens.Encoding.Bytes.runEither+ (case Data.Text.Encoding.decodeUtf8' value of+ (Prelude.Left err)+ -> Prelude.Left (Prelude.show err)+ (Prelude.Right r) -> Prelude.Right r))+ "build_tags"+ v <- Data.ProtoLens.Encoding.Parser.Unsafe.unsafeLiftIO+ (Data.ProtoLens.Encoding.Growing.append mutable'buildTags y)+ loop x v+ 74+ -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (do value <- do len <- Data.ProtoLens.Encoding.Bytes.getVarInt+ Data.ProtoLens.Encoding.Bytes.getBytes+ (Prelude.fromIntegral len)+ Data.ProtoLens.Encoding.Bytes.runEither+ (case Data.Text.Encoding.decodeUtf8' value of+ (Prelude.Left err)+ -> Prelude.Left (Prelude.show err)+ (Prelude.Right r) -> Prelude.Right r))+ "go_version"+ loop+ (Lens.Family2.set (Data.ProtoLens.Field.field @"goVersion") y x)+ mutable'buildTags+ wire+ -> do !y <- Data.ProtoLens.Encoding.Wire.parseTaggedValueFromWire+ wire+ loop+ (Lens.Family2.over+ Data.ProtoLens.unknownFields (\ !t -> (:) y t) x)+ mutable'buildTags+ in+ (Data.ProtoLens.Encoding.Bytes.<?>)+ (do mutable'buildTags <- Data.ProtoLens.Encoding.Parser.Unsafe.unsafeLiftIO+ Data.ProtoLens.Encoding.Growing.new+ loop Data.ProtoLens.defMessage mutable'buildTags)+ "Version"+ buildMessage+ = \ _x+ -> (Data.Monoid.<>)+ (let+ _v = Lens.Family2.view (Data.ProtoLens.Field.field @"commit") _x+ in+ if (Prelude.==) _v Data.ProtoLens.fieldDefault then+ Data.Monoid.mempty+ else+ (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 10)+ ((Prelude..)+ (\ bs+ -> (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt+ (Prelude.fromIntegral (Data.ByteString.length bs)))+ (Data.ProtoLens.Encoding.Bytes.putBytes bs))+ Data.Text.Encoding.encodeUtf8 _v))+ ((Data.Monoid.<>)+ (let+ _v+ = Lens.Family2.view (Data.ProtoLens.Field.field @"commitHash") _x+ in+ if (Prelude.==) _v Data.ProtoLens.fieldDefault then+ Data.Monoid.mempty+ else+ (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 18)+ ((Prelude..)+ (\ bs+ -> (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt+ (Prelude.fromIntegral (Data.ByteString.length bs)))+ (Data.ProtoLens.Encoding.Bytes.putBytes bs))+ Data.Text.Encoding.encodeUtf8 _v))+ ((Data.Monoid.<>)+ (let+ _v = Lens.Family2.view (Data.ProtoLens.Field.field @"version") _x+ in+ if (Prelude.==) _v Data.ProtoLens.fieldDefault then+ Data.Monoid.mempty+ else+ (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 26)+ ((Prelude..)+ (\ bs+ -> (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt+ (Prelude.fromIntegral (Data.ByteString.length bs)))+ (Data.ProtoLens.Encoding.Bytes.putBytes bs))+ Data.Text.Encoding.encodeUtf8 _v))+ ((Data.Monoid.<>)+ (let+ _v = Lens.Family2.view (Data.ProtoLens.Field.field @"appMajor") _x+ in+ if (Prelude.==) _v Data.ProtoLens.fieldDefault then+ Data.Monoid.mempty+ else+ (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 32)+ ((Prelude..)+ Data.ProtoLens.Encoding.Bytes.putVarInt Prelude.fromIntegral _v))+ ((Data.Monoid.<>)+ (let+ _v = Lens.Family2.view (Data.ProtoLens.Field.field @"appMinor") _x+ in+ if (Prelude.==) _v Data.ProtoLens.fieldDefault then+ Data.Monoid.mempty+ else+ (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 40)+ ((Prelude..)+ Data.ProtoLens.Encoding.Bytes.putVarInt Prelude.fromIntegral+ _v))+ ((Data.Monoid.<>)+ (let+ _v = Lens.Family2.view (Data.ProtoLens.Field.field @"appPatch") _x+ in+ if (Prelude.==) _v Data.ProtoLens.fieldDefault then+ Data.Monoid.mempty+ else+ (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 48)+ ((Prelude..)+ Data.ProtoLens.Encoding.Bytes.putVarInt Prelude.fromIntegral+ _v))+ ((Data.Monoid.<>)+ (let+ _v+ = Lens.Family2.view+ (Data.ProtoLens.Field.field @"appPreRelease") _x+ in+ if (Prelude.==) _v Data.ProtoLens.fieldDefault then+ Data.Monoid.mempty+ else+ (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 58)+ ((Prelude..)+ (\ bs+ -> (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt+ (Prelude.fromIntegral+ (Data.ByteString.length bs)))+ (Data.ProtoLens.Encoding.Bytes.putBytes bs))+ Data.Text.Encoding.encodeUtf8 _v))+ ((Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.foldMapBuilder+ (\ _v+ -> (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 66)+ ((Prelude..)+ (\ bs+ -> (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt+ (Prelude.fromIntegral+ (Data.ByteString.length bs)))+ (Data.ProtoLens.Encoding.Bytes.putBytes bs))+ Data.Text.Encoding.encodeUtf8 _v))+ (Lens.Family2.view+ (Data.ProtoLens.Field.field @"vec'buildTags") _x))+ ((Data.Monoid.<>)+ (let+ _v+ = Lens.Family2.view+ (Data.ProtoLens.Field.field @"goVersion") _x+ in+ if (Prelude.==) _v Data.ProtoLens.fieldDefault then+ Data.Monoid.mempty+ else+ (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 74)+ ((Prelude..)+ (\ bs+ -> (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt+ (Prelude.fromIntegral+ (Data.ByteString.length bs)))+ (Data.ProtoLens.Encoding.Bytes.putBytes+ bs))+ Data.Text.Encoding.encodeUtf8 _v))+ (Data.ProtoLens.Encoding.Wire.buildFieldSet+ (Lens.Family2.view Data.ProtoLens.unknownFields _x))))))))))+instance Control.DeepSeq.NFData Version where+ rnf+ = \ x__+ -> Control.DeepSeq.deepseq+ (_Version'_unknownFields x__)+ (Control.DeepSeq.deepseq+ (_Version'commit x__)+ (Control.DeepSeq.deepseq+ (_Version'commitHash x__)+ (Control.DeepSeq.deepseq+ (_Version'version x__)+ (Control.DeepSeq.deepseq+ (_Version'appMajor x__)+ (Control.DeepSeq.deepseq+ (_Version'appMinor x__)+ (Control.DeepSeq.deepseq+ (_Version'appPatch x__)+ (Control.DeepSeq.deepseq+ (_Version'appPreRelease x__)+ (Control.DeepSeq.deepseq+ (_Version'buildTags x__)+ (Control.DeepSeq.deepseq (_Version'goVersion x__) ())))))))))+{- | Fields :+ -}+data VersionRequest+ = VersionRequest'_constructor {_VersionRequest'_unknownFields :: !Data.ProtoLens.FieldSet}+ deriving stock (Prelude.Eq, Prelude.Ord, GHC.Generics.Generic)+instance Prelude.Show VersionRequest where+ showsPrec _ __x __s+ = Prelude.showChar+ '{'+ (Prelude.showString+ (Data.ProtoLens.showMessageShort __x) (Prelude.showChar '}' __s))+instance Text.PrettyPrint.GenericPretty.Out VersionRequest+instance Data.ProtoLens.Message VersionRequest where+ messageName _ = Data.Text.pack "verrpc.VersionRequest"+ packedMessageDescriptor _+ = "\n\+ \\SOVersionRequest"+ packedFileDescriptor _ = packedFileDescriptor+ fieldsByTag = let in Data.Map.fromList []+ unknownFields+ = Lens.Family2.Unchecked.lens+ _VersionRequest'_unknownFields+ (\ x__ y__ -> x__ {_VersionRequest'_unknownFields = y__})+ defMessage+ = VersionRequest'_constructor {_VersionRequest'_unknownFields = []}+ parseMessage+ = let+ loop ::+ VersionRequest+ -> Data.ProtoLens.Encoding.Bytes.Parser VersionRequest+ loop x+ = do end <- Data.ProtoLens.Encoding.Bytes.atEnd+ if end then+ do (let missing = []+ in+ if Prelude.null missing then+ Prelude.return ()+ else+ Prelude.fail+ ((Prelude.++)+ "Missing required fields: "+ (Prelude.show (missing :: [Prelude.String]))))+ Prelude.return+ (Lens.Family2.over+ Data.ProtoLens.unknownFields (\ !t -> Prelude.reverse t) x)+ else+ do tag <- Data.ProtoLens.Encoding.Bytes.getVarInt+ case tag of {+ wire+ -> do !y <- Data.ProtoLens.Encoding.Wire.parseTaggedValueFromWire+ wire+ loop+ (Lens.Family2.over+ Data.ProtoLens.unknownFields (\ !t -> (:) y t) x) }+ in+ (Data.ProtoLens.Encoding.Bytes.<?>)+ (do loop Data.ProtoLens.defMessage) "VersionRequest"+ buildMessage+ = \ _x+ -> Data.ProtoLens.Encoding.Wire.buildFieldSet+ (Lens.Family2.view Data.ProtoLens.unknownFields _x)+instance Control.DeepSeq.NFData VersionRequest where+ rnf+ = \ x__+ -> Control.DeepSeq.deepseq (_VersionRequest'_unknownFields x__) ()+data Versioner = Versioner {}+instance Data.ProtoLens.Service.Types.Service Versioner where+ type ServiceName Versioner = "Versioner"+ type ServicePackage Versioner = "verrpc"+ type ServiceMethods Versioner = '["getVersion"]+ packedServiceDescriptor _+ = "\n\+ \\tVersioner\DC25\n\+ \\n\+ \GetVersion\DC2\SYN.verrpc.VersionRequest\SUB\SI.verrpc.Version"+instance Data.ProtoLens.Service.Types.HasMethodImpl Versioner "getVersion" where+ type MethodName Versioner "getVersion" = "GetVersion"+ type MethodInput Versioner "getVersion" = VersionRequest+ type MethodOutput Versioner "getVersion" = Version+ type MethodStreamingType Versioner "getVersion" = 'Data.ProtoLens.Service.Types.NonStreaming+packedFileDescriptor :: Data.ByteString.ByteString+packedFileDescriptor+ = "\n\+ \\DC3verrpc/verrpc.proto\DC2\ACKverrpc\"\DLE\n\+ \\SOVersionRequest\"\153\STX\n\+ \\aVersion\DC2\SYN\n\+ \\ACKcommit\CAN\SOH \SOH(\tR\ACKcommit\DC2\US\n\+ \\vcommit_hash\CAN\STX \SOH(\tR\n\+ \commitHash\DC2\CAN\n\+ \\aversion\CAN\ETX \SOH(\tR\aversion\DC2\ESC\n\+ \\tapp_major\CAN\EOT \SOH(\rR\bappMajor\DC2\ESC\n\+ \\tapp_minor\CAN\ENQ \SOH(\rR\bappMinor\DC2\ESC\n\+ \\tapp_patch\CAN\ACK \SOH(\rR\bappPatch\DC2&\n\+ \\SIapp_pre_release\CAN\a \SOH(\tR\rappPreRelease\DC2\GS\n\+ \\n\+ \build_tags\CAN\b \ETX(\tR\tbuildTags\DC2\GS\n\+ \\n\+ \go_version\CAN\t \SOH(\tR\tgoVersion2B\n\+ \\tVersioner\DC25\n\+ \\n\+ \GetVersion\DC2\SYN.verrpc.VersionRequest\SUB\SI.verrpc.VersionB.Z,github.com/lightningnetwork/lnd/lnrpc/verrpcJ\170\n\+ \\n\+ \\ACK\DC2\EOT\NUL\NUL.\SOH\n\+ \\b\n\+ \\SOH\f\DC2\ETX\NUL\NUL\DC2\n\+ \\b\n\+ \\SOH\STX\DC2\ETX\STX\NUL\SI\n\+ \\b\n\+ \\SOH\b\DC2\ETX\EOT\NULC\n\+ \\t\n\+ \\STX\b\v\DC2\ETX\EOT\NULC\n\+ \\136\SOH\n\+ \\STX\ACK\NUL\DC2\EOT\b\NUL\SO\SOH\SUB| Versioner is a service that can be used to get information about the version\n\+ \ and build information of the running daemon.\n\+ \\n\+ \\n\+ \\n\+ \\ETX\ACK\NUL\SOH\DC2\ETX\b\b\DC1\n\+ \s\n\+ \\EOT\ACK\NUL\STX\NUL\DC2\ETX\r\EOT6\SUBf lncli: `version`\n\+ \GetVersion returns the current version and build information of the running\n\+ \daemon.\n\+ \\n\+ \\f\n\+ \\ENQ\ACK\NUL\STX\NUL\SOH\DC2\ETX\r\b\DC2\n\+ \\f\n\+ \\ENQ\ACK\NUL\STX\NUL\STX\DC2\ETX\r\DC4\"\n\+ \\f\n\+ \\ENQ\ACK\NUL\STX\NUL\ETX\DC2\ETX\r-4\n\+ \\n\+ \\n\+ \\STX\EOT\NUL\DC2\EOT\DLE\NUL\DC1\SOH\n\+ \\n\+ \\n\+ \\ETX\EOT\NUL\SOH\DC2\ETX\DLE\b\SYN\n\+ \\n\+ \\n\+ \\STX\EOT\SOH\DC2\EOT\DC3\NUL.\SOH\n\+ \\n\+ \\n\+ \\ETX\EOT\SOH\SOH\DC2\ETX\DC3\b\SI\n\+ \<\n\+ \\EOT\EOT\SOH\STX\NUL\DC2\ETX\NAK\EOT\SYN\SUB/ A verbose description of the daemon's commit.\n\+ \\n\+ \\f\n\+ \\ENQ\EOT\SOH\STX\NUL\ENQ\DC2\ETX\NAK\EOT\n\+ \\n\+ \\f\n\+ \\ENQ\EOT\SOH\STX\NUL\SOH\DC2\ETX\NAK\v\DC1\n\+ \\f\n\+ \\ENQ\EOT\SOH\STX\NUL\ETX\DC2\ETX\NAK\DC4\NAK\n\+ \E\n\+ \\EOT\EOT\SOH\STX\SOH\DC2\ETX\CAN\EOT\ESC\SUB8 The SHA1 commit hash that the daemon is compiled with.\n\+ \\n\+ \\f\n\+ \\ENQ\EOT\SOH\STX\SOH\ENQ\DC2\ETX\CAN\EOT\n\+ \\n\+ \\f\n\+ \\ENQ\EOT\SOH\STX\SOH\SOH\DC2\ETX\CAN\v\SYN\n\+ \\f\n\+ \\ENQ\EOT\SOH\STX\SOH\ETX\DC2\ETX\CAN\EM\SUB\n\+ \$\n\+ \\EOT\EOT\SOH\STX\STX\DC2\ETX\ESC\EOT\ETB\SUB\ETB The semantic version.\n\+ \\n\+ \\f\n\+ \\ENQ\EOT\SOH\STX\STX\ENQ\DC2\ETX\ESC\EOT\n\+ \\n\+ \\f\n\+ \\ENQ\EOT\SOH\STX\STX\SOH\DC2\ETX\ESC\v\DC2\n\+ \\f\n\+ \\ENQ\EOT\SOH\STX\STX\ETX\DC2\ETX\ESC\NAK\SYN\n\+ \-\n\+ \\EOT\EOT\SOH\STX\ETX\DC2\ETX\RS\EOT\EM\SUB The major application version.\n\+ \\n\+ \\f\n\+ \\ENQ\EOT\SOH\STX\ETX\ENQ\DC2\ETX\RS\EOT\n\+ \\n\+ \\f\n\+ \\ENQ\EOT\SOH\STX\ETX\SOH\DC2\ETX\RS\v\DC4\n\+ \\f\n\+ \\ENQ\EOT\SOH\STX\ETX\ETX\DC2\ETX\RS\ETB\CAN\n\+ \-\n\+ \\EOT\EOT\SOH\STX\EOT\DC2\ETX!\EOT\EM\SUB The minor application version.\n\+ \\n\+ \\f\n\+ \\ENQ\EOT\SOH\STX\EOT\ENQ\DC2\ETX!\EOT\n\+ \\n\+ \\f\n\+ \\ENQ\EOT\SOH\STX\EOT\SOH\DC2\ETX!\v\DC4\n\+ \\f\n\+ \\ENQ\EOT\SOH\STX\EOT\ETX\DC2\ETX!\ETB\CAN\n\+ \,\n\+ \\EOT\EOT\SOH\STX\ENQ\DC2\ETX$\EOT\EM\SUB\US The application patch number.\n\+ \\n\+ \\f\n\+ \\ENQ\EOT\SOH\STX\ENQ\ENQ\DC2\ETX$\EOT\n\+ \\n\+ \\f\n\+ \\ENQ\EOT\SOH\STX\ENQ\SOH\DC2\ETX$\v\DC4\n\+ \\f\n\+ \\ENQ\EOT\SOH\STX\ENQ\ETX\DC2\ETX$\ETB\CAN\n\+ \D\n\+ \\EOT\EOT\SOH\STX\ACK\DC2\ETX'\EOT\US\SUB7 The application pre-release modifier, possibly empty.\n\+ \\n\+ \\f\n\+ \\ENQ\EOT\SOH\STX\ACK\ENQ\DC2\ETX'\EOT\n\+ \\n\+ \\f\n\+ \\ENQ\EOT\SOH\STX\ACK\SOH\DC2\ETX'\v\SUB\n\+ \\f\n\+ \\ENQ\EOT\SOH\STX\ACK\ETX\DC2\ETX'\GS\RS\n\+ \L\n\+ \\EOT\EOT\SOH\STX\a\DC2\ETX*\EOT#\SUB? The list of build tags that were supplied during compilation.\n\+ \\n\+ \\f\n\+ \\ENQ\EOT\SOH\STX\a\EOT\DC2\ETX*\EOT\f\n\+ \\f\n\+ \\ENQ\EOT\SOH\STX\a\ENQ\DC2\ETX*\r\DC3\n\+ \\f\n\+ \\ENQ\EOT\SOH\STX\a\SOH\DC2\ETX*\DC4\RS\n\+ \\f\n\+ \\ENQ\EOT\SOH\STX\a\ETX\DC2\ETX*!\"\n\+ \>\n\+ \\EOT\EOT\SOH\STX\b\DC2\ETX-\EOT\SUB\SUB1 The version of go that compiled the executable.\n\+ \\n\+ \\f\n\+ \\ENQ\EOT\SOH\STX\b\ENQ\DC2\ETX-\EOT\n\+ \\n\+ \\f\n\+ \\ENQ\EOT\SOH\STX\b\SOH\DC2\ETX-\v\NAK\n\+ \\f\n\+ \\ENQ\EOT\SOH\STX\b\ETX\DC2\ETX-\CAN\EMb\ACKproto3"
@@ -0,0 +1,87 @@+{- This file was auto-generated from verrpc/verrpc.proto by the proto-lens-protoc program. -}+{-# LANGUAGE ScopedTypeVariables, DataKinds, TypeFamilies, UndecidableInstances, GeneralizedNewtypeDeriving, MultiParamTypeClasses, FlexibleContexts, FlexibleInstances, PatternSynonyms, MagicHash, NoImplicitPrelude, BangPatterns, TypeApplications, OverloadedStrings, DerivingStrategies, DeriveGeneric#-}+{-# OPTIONS_GHC -Wno-unused-imports#-}+{-# OPTIONS_GHC -Wno-duplicate-exports#-}+{-# OPTIONS_GHC -Wno-dodgy-exports#-}+module Proto.Verrpc.Verrpc_Fields where+import qualified Data.ProtoLens.Runtime.Prelude as Prelude+import qualified Data.ProtoLens.Runtime.Data.Int as Data.Int+import qualified Data.ProtoLens.Runtime.Data.Monoid as Data.Monoid+import qualified Data.ProtoLens.Runtime.Data.Word as Data.Word+import qualified Data.ProtoLens.Runtime.Data.ProtoLens as Data.ProtoLens+import qualified Data.ProtoLens.Runtime.Data.ProtoLens.Encoding.Bytes as Data.ProtoLens.Encoding.Bytes+import qualified Data.ProtoLens.Runtime.Data.ProtoLens.Encoding.Growing as Data.ProtoLens.Encoding.Growing+import qualified Data.ProtoLens.Runtime.Data.ProtoLens.Encoding.Parser.Unsafe as Data.ProtoLens.Encoding.Parser.Unsafe+import qualified Data.ProtoLens.Runtime.Data.ProtoLens.Encoding.Wire as Data.ProtoLens.Encoding.Wire+import qualified Data.ProtoLens.Runtime.Data.ProtoLens.Field as Data.ProtoLens.Field+import qualified Data.ProtoLens.Runtime.Data.ProtoLens.Message.Enum as Data.ProtoLens.Message.Enum+import qualified Data.ProtoLens.Runtime.Data.ProtoLens.Service.Types as Data.ProtoLens.Service.Types+import qualified Data.ProtoLens.Runtime.Lens.Family2 as Lens.Family2+import qualified Data.ProtoLens.Runtime.Lens.Family2.Unchecked as Lens.Family2.Unchecked+import qualified Data.ProtoLens.Runtime.Data.Text as Data.Text+import qualified Data.ProtoLens.Runtime.Data.Map as Data.Map+import qualified Data.ProtoLens.Runtime.Data.ByteString as Data.ByteString+import qualified Data.ProtoLens.Runtime.Data.ByteString.Char8 as Data.ByteString.Char8+import qualified Data.ProtoLens.Runtime.Data.Text.Encoding as Data.Text.Encoding+import qualified Data.ProtoLens.Runtime.Data.Vector as Data.Vector+import qualified Data.ProtoLens.Runtime.Data.Vector.Generic as Data.Vector.Generic+import qualified Data.ProtoLens.Runtime.Data.Vector.Unboxed as Data.Vector.Unboxed+import qualified Data.ProtoLens.Runtime.Text.Read as Text.Read+appMajor ::+ forall f s a.+ (Prelude.Functor f,+ Data.ProtoLens.Field.HasField s "appMajor" a) =>+ Lens.Family2.LensLike' f s a+appMajor = Data.ProtoLens.Field.field @"appMajor"+appMinor ::+ forall f s a.+ (Prelude.Functor f,+ Data.ProtoLens.Field.HasField s "appMinor" a) =>+ Lens.Family2.LensLike' f s a+appMinor = Data.ProtoLens.Field.field @"appMinor"+appPatch ::+ forall f s a.+ (Prelude.Functor f,+ Data.ProtoLens.Field.HasField s "appPatch" a) =>+ Lens.Family2.LensLike' f s a+appPatch = Data.ProtoLens.Field.field @"appPatch"+appPreRelease ::+ forall f s a.+ (Prelude.Functor f,+ Data.ProtoLens.Field.HasField s "appPreRelease" a) =>+ Lens.Family2.LensLike' f s a+appPreRelease = Data.ProtoLens.Field.field @"appPreRelease"+buildTags ::+ forall f s a.+ (Prelude.Functor f,+ Data.ProtoLens.Field.HasField s "buildTags" a) =>+ Lens.Family2.LensLike' f s a+buildTags = Data.ProtoLens.Field.field @"buildTags"+commit ::+ forall f s a.+ (Prelude.Functor f, Data.ProtoLens.Field.HasField s "commit" a) =>+ Lens.Family2.LensLike' f s a+commit = Data.ProtoLens.Field.field @"commit"+commitHash ::+ forall f s a.+ (Prelude.Functor f,+ Data.ProtoLens.Field.HasField s "commitHash" a) =>+ Lens.Family2.LensLike' f s a+commitHash = Data.ProtoLens.Field.field @"commitHash"+goVersion ::+ forall f s a.+ (Prelude.Functor f,+ Data.ProtoLens.Field.HasField s "goVersion" a) =>+ Lens.Family2.LensLike' f s a+goVersion = Data.ProtoLens.Field.field @"goVersion"+vec'buildTags ::+ forall f s a.+ (Prelude.Functor f,+ Data.ProtoLens.Field.HasField s "vec'buildTags" a) =>+ Lens.Family2.LensLike' f s a+vec'buildTags = Data.ProtoLens.Field.field @"vec'buildTags"+version ::+ forall f s a.+ (Prelude.Functor f, Data.ProtoLens.Field.HasField s "version" a) =>+ Lens.Family2.LensLike' f s a+version = Data.ProtoLens.Field.field @"version"
@@ -1,2121 +0,0 @@-{- This file was auto-generated from wallet_unlocker_grpc.proto by the proto-lens-protoc program. -}-{-# LANGUAGE ScopedTypeVariables, DataKinds, TypeFamilies, UndecidableInstances, GeneralizedNewtypeDeriving, MultiParamTypeClasses, FlexibleContexts, FlexibleInstances, PatternSynonyms, MagicHash, NoImplicitPrelude, DataKinds, BangPatterns, TypeApplications, OverloadedStrings, DerivingStrategies#-}-{-# OPTIONS_GHC -Wno-unused-imports#-}-{-# OPTIONS_GHC -Wno-duplicate-exports#-}-{-# OPTIONS_GHC -Wno-dodgy-exports#-}-module Proto.WalletUnlockerGrpc (- WalletUnlocker(..), ChangePasswordRequest(),- ChangePasswordResponse(), GenSeedRequest(), GenSeedResponse(),- InitWalletRequest(), InitWalletResponse(), UnlockWalletRequest(),- UnlockWalletResponse()- ) where-import qualified Data.ProtoLens.Runtime.Control.DeepSeq as Control.DeepSeq-import qualified Data.ProtoLens.Runtime.Data.ProtoLens.Prism as Data.ProtoLens.Prism-import qualified Data.ProtoLens.Runtime.Prelude as Prelude-import qualified Data.ProtoLens.Runtime.Data.Int as Data.Int-import qualified Data.ProtoLens.Runtime.Data.Monoid as Data.Monoid-import qualified Data.ProtoLens.Runtime.Data.Word as Data.Word-import qualified Data.ProtoLens.Runtime.Data.ProtoLens as Data.ProtoLens-import qualified Data.ProtoLens.Runtime.Data.ProtoLens.Encoding.Bytes as Data.ProtoLens.Encoding.Bytes-import qualified Data.ProtoLens.Runtime.Data.ProtoLens.Encoding.Growing as Data.ProtoLens.Encoding.Growing-import qualified Data.ProtoLens.Runtime.Data.ProtoLens.Encoding.Parser.Unsafe as Data.ProtoLens.Encoding.Parser.Unsafe-import qualified Data.ProtoLens.Runtime.Data.ProtoLens.Encoding.Wire as Data.ProtoLens.Encoding.Wire-import qualified Data.ProtoLens.Runtime.Data.ProtoLens.Field as Data.ProtoLens.Field-import qualified Data.ProtoLens.Runtime.Data.ProtoLens.Message.Enum as Data.ProtoLens.Message.Enum-import qualified Data.ProtoLens.Runtime.Data.ProtoLens.Service.Types as Data.ProtoLens.Service.Types-import qualified Data.ProtoLens.Runtime.Lens.Family2 as Lens.Family2-import qualified Data.ProtoLens.Runtime.Lens.Family2.Unchecked as Lens.Family2.Unchecked-import qualified Data.ProtoLens.Runtime.Data.Text as Data.Text-import qualified Data.ProtoLens.Runtime.Data.Map as Data.Map-import qualified Data.ProtoLens.Runtime.Data.ByteString as Data.ByteString-import qualified Data.ProtoLens.Runtime.Data.ByteString.Char8 as Data.ByteString.Char8-import qualified Data.ProtoLens.Runtime.Data.Text.Encoding as Data.Text.Encoding-import qualified Data.ProtoLens.Runtime.Data.Vector as Data.Vector-import qualified Data.ProtoLens.Runtime.Data.Vector.Generic as Data.Vector.Generic-import qualified Data.ProtoLens.Runtime.Data.Vector.Unboxed as Data.Vector.Unboxed-import qualified Data.ProtoLens.Runtime.Text.Read as Text.Read-import qualified Proto.LndGrpc-{- | Fields :- - * 'Proto.WalletUnlockerGrpc_Fields.currentPassword' @:: Lens' ChangePasswordRequest Data.ByteString.ByteString@- * 'Proto.WalletUnlockerGrpc_Fields.newPassword' @:: Lens' ChangePasswordRequest Data.ByteString.ByteString@- * 'Proto.WalletUnlockerGrpc_Fields.statelessInit' @:: Lens' ChangePasswordRequest Prelude.Bool@- * 'Proto.WalletUnlockerGrpc_Fields.newMacaroonRootKey' @:: Lens' ChangePasswordRequest Prelude.Bool@ -}-data ChangePasswordRequest- = ChangePasswordRequest'_constructor {_ChangePasswordRequest'currentPassword :: !Data.ByteString.ByteString,- _ChangePasswordRequest'newPassword :: !Data.ByteString.ByteString,- _ChangePasswordRequest'statelessInit :: !Prelude.Bool,- _ChangePasswordRequest'newMacaroonRootKey :: !Prelude.Bool,- _ChangePasswordRequest'_unknownFields :: !Data.ProtoLens.FieldSet}- deriving stock (Prelude.Eq, Prelude.Ord)-instance Prelude.Show ChangePasswordRequest where- showsPrec _ __x __s- = Prelude.showChar- '{'- (Prelude.showString- (Data.ProtoLens.showMessageShort __x) (Prelude.showChar '}' __s))-instance Data.ProtoLens.Field.HasField ChangePasswordRequest "currentPassword" Data.ByteString.ByteString where- fieldOf _- = (Prelude..)- (Lens.Family2.Unchecked.lens- _ChangePasswordRequest'currentPassword- (\ x__ y__ -> x__ {_ChangePasswordRequest'currentPassword = y__}))- Prelude.id-instance Data.ProtoLens.Field.HasField ChangePasswordRequest "newPassword" Data.ByteString.ByteString where- fieldOf _- = (Prelude..)- (Lens.Family2.Unchecked.lens- _ChangePasswordRequest'newPassword- (\ x__ y__ -> x__ {_ChangePasswordRequest'newPassword = y__}))- Prelude.id-instance Data.ProtoLens.Field.HasField ChangePasswordRequest "statelessInit" Prelude.Bool where- fieldOf _- = (Prelude..)- (Lens.Family2.Unchecked.lens- _ChangePasswordRequest'statelessInit- (\ x__ y__ -> x__ {_ChangePasswordRequest'statelessInit = y__}))- Prelude.id-instance Data.ProtoLens.Field.HasField ChangePasswordRequest "newMacaroonRootKey" Prelude.Bool where- fieldOf _- = (Prelude..)- (Lens.Family2.Unchecked.lens- _ChangePasswordRequest'newMacaroonRootKey- (\ x__ y__- -> x__ {_ChangePasswordRequest'newMacaroonRootKey = y__}))- Prelude.id-instance Data.ProtoLens.Message ChangePasswordRequest where- messageName _ = Data.Text.pack "lnrpc.ChangePasswordRequest"- packedMessageDescriptor _- = "\n\- \\NAKChangePasswordRequest\DC2)\n\- \\DLEcurrent_password\CAN\SOH \SOH(\fR\SIcurrentPassword\DC2!\n\- \\fnew_password\CAN\STX \SOH(\fR\vnewPassword\DC2%\n\- \\SOstateless_init\CAN\ETX \SOH(\bR\rstatelessInit\DC21\n\- \\NAKnew_macaroon_root_key\CAN\EOT \SOH(\bR\DC2newMacaroonRootKey"- packedFileDescriptor _ = packedFileDescriptor- fieldsByTag- = let- currentPassword__field_descriptor- = Data.ProtoLens.FieldDescriptor- "current_password"- (Data.ProtoLens.ScalarField Data.ProtoLens.BytesField ::- Data.ProtoLens.FieldTypeDescriptor Data.ByteString.ByteString)- (Data.ProtoLens.PlainField- Data.ProtoLens.Optional- (Data.ProtoLens.Field.field @"currentPassword")) ::- Data.ProtoLens.FieldDescriptor ChangePasswordRequest- newPassword__field_descriptor- = Data.ProtoLens.FieldDescriptor- "new_password"- (Data.ProtoLens.ScalarField Data.ProtoLens.BytesField ::- Data.ProtoLens.FieldTypeDescriptor Data.ByteString.ByteString)- (Data.ProtoLens.PlainField- Data.ProtoLens.Optional- (Data.ProtoLens.Field.field @"newPassword")) ::- Data.ProtoLens.FieldDescriptor ChangePasswordRequest- statelessInit__field_descriptor- = Data.ProtoLens.FieldDescriptor- "stateless_init"- (Data.ProtoLens.ScalarField Data.ProtoLens.BoolField ::- Data.ProtoLens.FieldTypeDescriptor Prelude.Bool)- (Data.ProtoLens.PlainField- Data.ProtoLens.Optional- (Data.ProtoLens.Field.field @"statelessInit")) ::- Data.ProtoLens.FieldDescriptor ChangePasswordRequest- newMacaroonRootKey__field_descriptor- = Data.ProtoLens.FieldDescriptor- "new_macaroon_root_key"- (Data.ProtoLens.ScalarField Data.ProtoLens.BoolField ::- Data.ProtoLens.FieldTypeDescriptor Prelude.Bool)- (Data.ProtoLens.PlainField- Data.ProtoLens.Optional- (Data.ProtoLens.Field.field @"newMacaroonRootKey")) ::- Data.ProtoLens.FieldDescriptor ChangePasswordRequest- in- Data.Map.fromList- [(Data.ProtoLens.Tag 1, currentPassword__field_descriptor),- (Data.ProtoLens.Tag 2, newPassword__field_descriptor),- (Data.ProtoLens.Tag 3, statelessInit__field_descriptor),- (Data.ProtoLens.Tag 4, newMacaroonRootKey__field_descriptor)]- unknownFields- = Lens.Family2.Unchecked.lens- _ChangePasswordRequest'_unknownFields- (\ x__ y__ -> x__ {_ChangePasswordRequest'_unknownFields = y__})- defMessage- = ChangePasswordRequest'_constructor- {_ChangePasswordRequest'currentPassword = Data.ProtoLens.fieldDefault,- _ChangePasswordRequest'newPassword = Data.ProtoLens.fieldDefault,- _ChangePasswordRequest'statelessInit = Data.ProtoLens.fieldDefault,- _ChangePasswordRequest'newMacaroonRootKey = Data.ProtoLens.fieldDefault,- _ChangePasswordRequest'_unknownFields = []}- parseMessage- = let- loop ::- ChangePasswordRequest- -> Data.ProtoLens.Encoding.Bytes.Parser ChangePasswordRequest- loop x- = do end <- Data.ProtoLens.Encoding.Bytes.atEnd- if end then- do (let missing = []- in- if Prelude.null missing then- Prelude.return ()- else- Prelude.fail- ((Prelude.++)- "Missing required fields: "- (Prelude.show (missing :: [Prelude.String]))))- Prelude.return- (Lens.Family2.over- Data.ProtoLens.unknownFields (\ !t -> Prelude.reverse t) x)- else- do tag <- Data.ProtoLens.Encoding.Bytes.getVarInt- case tag of- 10- -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)- (do len <- Data.ProtoLens.Encoding.Bytes.getVarInt- Data.ProtoLens.Encoding.Bytes.getBytes- (Prelude.fromIntegral len))- "current_password"- loop- (Lens.Family2.set- (Data.ProtoLens.Field.field @"currentPassword") y x)- 18- -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)- (do len <- Data.ProtoLens.Encoding.Bytes.getVarInt- Data.ProtoLens.Encoding.Bytes.getBytes- (Prelude.fromIntegral len))- "new_password"- loop- (Lens.Family2.set (Data.ProtoLens.Field.field @"newPassword") y x)- 24- -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)- (Prelude.fmap- ((Prelude./=) 0) Data.ProtoLens.Encoding.Bytes.getVarInt)- "stateless_init"- loop- (Lens.Family2.set- (Data.ProtoLens.Field.field @"statelessInit") y x)- 32- -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)- (Prelude.fmap- ((Prelude./=) 0) Data.ProtoLens.Encoding.Bytes.getVarInt)- "new_macaroon_root_key"- loop- (Lens.Family2.set- (Data.ProtoLens.Field.field @"newMacaroonRootKey") y x)- wire- -> do !y <- Data.ProtoLens.Encoding.Wire.parseTaggedValueFromWire- wire- loop- (Lens.Family2.over- Data.ProtoLens.unknownFields (\ !t -> (:) y t) x)- in- (Data.ProtoLens.Encoding.Bytes.<?>)- (do loop Data.ProtoLens.defMessage) "ChangePasswordRequest"- buildMessage- = \ _x- -> (Data.Monoid.<>)- (let- _v- = Lens.Family2.view- (Data.ProtoLens.Field.field @"currentPassword") _x- in- if (Prelude.==) _v Data.ProtoLens.fieldDefault then- Data.Monoid.mempty- else- (Data.Monoid.<>)- (Data.ProtoLens.Encoding.Bytes.putVarInt 10)- ((\ bs- -> (Data.Monoid.<>)- (Data.ProtoLens.Encoding.Bytes.putVarInt- (Prelude.fromIntegral (Data.ByteString.length bs)))- (Data.ProtoLens.Encoding.Bytes.putBytes bs))- _v))- ((Data.Monoid.<>)- (let- _v- = Lens.Family2.view (Data.ProtoLens.Field.field @"newPassword") _x- in- if (Prelude.==) _v Data.ProtoLens.fieldDefault then- Data.Monoid.mempty- else- (Data.Monoid.<>)- (Data.ProtoLens.Encoding.Bytes.putVarInt 18)- ((\ bs- -> (Data.Monoid.<>)- (Data.ProtoLens.Encoding.Bytes.putVarInt- (Prelude.fromIntegral (Data.ByteString.length bs)))- (Data.ProtoLens.Encoding.Bytes.putBytes bs))- _v))- ((Data.Monoid.<>)- (let- _v- = Lens.Family2.view- (Data.ProtoLens.Field.field @"statelessInit") _x- in- if (Prelude.==) _v Data.ProtoLens.fieldDefault then- Data.Monoid.mempty- else- (Data.Monoid.<>)- (Data.ProtoLens.Encoding.Bytes.putVarInt 24)- ((Prelude..)- Data.ProtoLens.Encoding.Bytes.putVarInt- (\ b -> if b then 1 else 0)- _v))- ((Data.Monoid.<>)- (let- _v- = Lens.Family2.view- (Data.ProtoLens.Field.field @"newMacaroonRootKey") _x- in- if (Prelude.==) _v Data.ProtoLens.fieldDefault then- Data.Monoid.mempty- else- (Data.Monoid.<>)- (Data.ProtoLens.Encoding.Bytes.putVarInt 32)- ((Prelude..)- Data.ProtoLens.Encoding.Bytes.putVarInt- (\ b -> if b then 1 else 0)- _v))- (Data.ProtoLens.Encoding.Wire.buildFieldSet- (Lens.Family2.view Data.ProtoLens.unknownFields _x)))))-instance Control.DeepSeq.NFData ChangePasswordRequest where- rnf- = \ x__- -> Control.DeepSeq.deepseq- (_ChangePasswordRequest'_unknownFields x__)- (Control.DeepSeq.deepseq- (_ChangePasswordRequest'currentPassword x__)- (Control.DeepSeq.deepseq- (_ChangePasswordRequest'newPassword x__)- (Control.DeepSeq.deepseq- (_ChangePasswordRequest'statelessInit x__)- (Control.DeepSeq.deepseq- (_ChangePasswordRequest'newMacaroonRootKey x__) ()))))-{- | Fields :- - * 'Proto.WalletUnlockerGrpc_Fields.adminMacaroon' @:: Lens' ChangePasswordResponse Data.ByteString.ByteString@ -}-data ChangePasswordResponse- = ChangePasswordResponse'_constructor {_ChangePasswordResponse'adminMacaroon :: !Data.ByteString.ByteString,- _ChangePasswordResponse'_unknownFields :: !Data.ProtoLens.FieldSet}- deriving stock (Prelude.Eq, Prelude.Ord)-instance Prelude.Show ChangePasswordResponse where- showsPrec _ __x __s- = Prelude.showChar- '{'- (Prelude.showString- (Data.ProtoLens.showMessageShort __x) (Prelude.showChar '}' __s))-instance Data.ProtoLens.Field.HasField ChangePasswordResponse "adminMacaroon" Data.ByteString.ByteString where- fieldOf _- = (Prelude..)- (Lens.Family2.Unchecked.lens- _ChangePasswordResponse'adminMacaroon- (\ x__ y__ -> x__ {_ChangePasswordResponse'adminMacaroon = y__}))- Prelude.id-instance Data.ProtoLens.Message ChangePasswordResponse where- messageName _ = Data.Text.pack "lnrpc.ChangePasswordResponse"- packedMessageDescriptor _- = "\n\- \\SYNChangePasswordResponse\DC2%\n\- \\SOadmin_macaroon\CAN\SOH \SOH(\fR\radminMacaroon"- packedFileDescriptor _ = packedFileDescriptor- fieldsByTag- = let- adminMacaroon__field_descriptor- = Data.ProtoLens.FieldDescriptor- "admin_macaroon"- (Data.ProtoLens.ScalarField Data.ProtoLens.BytesField ::- Data.ProtoLens.FieldTypeDescriptor Data.ByteString.ByteString)- (Data.ProtoLens.PlainField- Data.ProtoLens.Optional- (Data.ProtoLens.Field.field @"adminMacaroon")) ::- Data.ProtoLens.FieldDescriptor ChangePasswordResponse- in- Data.Map.fromList- [(Data.ProtoLens.Tag 1, adminMacaroon__field_descriptor)]- unknownFields- = Lens.Family2.Unchecked.lens- _ChangePasswordResponse'_unknownFields- (\ x__ y__ -> x__ {_ChangePasswordResponse'_unknownFields = y__})- defMessage- = ChangePasswordResponse'_constructor- {_ChangePasswordResponse'adminMacaroon = Data.ProtoLens.fieldDefault,- _ChangePasswordResponse'_unknownFields = []}- parseMessage- = let- loop ::- ChangePasswordResponse- -> Data.ProtoLens.Encoding.Bytes.Parser ChangePasswordResponse- loop x- = do end <- Data.ProtoLens.Encoding.Bytes.atEnd- if end then- do (let missing = []- in- if Prelude.null missing then- Prelude.return ()- else- Prelude.fail- ((Prelude.++)- "Missing required fields: "- (Prelude.show (missing :: [Prelude.String]))))- Prelude.return- (Lens.Family2.over- Data.ProtoLens.unknownFields (\ !t -> Prelude.reverse t) x)- else- do tag <- Data.ProtoLens.Encoding.Bytes.getVarInt- case tag of- 10- -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)- (do len <- Data.ProtoLens.Encoding.Bytes.getVarInt- Data.ProtoLens.Encoding.Bytes.getBytes- (Prelude.fromIntegral len))- "admin_macaroon"- loop- (Lens.Family2.set- (Data.ProtoLens.Field.field @"adminMacaroon") y x)- wire- -> do !y <- Data.ProtoLens.Encoding.Wire.parseTaggedValueFromWire- wire- loop- (Lens.Family2.over- Data.ProtoLens.unknownFields (\ !t -> (:) y t) x)- in- (Data.ProtoLens.Encoding.Bytes.<?>)- (do loop Data.ProtoLens.defMessage) "ChangePasswordResponse"- buildMessage- = \ _x- -> (Data.Monoid.<>)- (let- _v- = Lens.Family2.view- (Data.ProtoLens.Field.field @"adminMacaroon") _x- in- if (Prelude.==) _v Data.ProtoLens.fieldDefault then- Data.Monoid.mempty- else- (Data.Monoid.<>)- (Data.ProtoLens.Encoding.Bytes.putVarInt 10)- ((\ bs- -> (Data.Monoid.<>)- (Data.ProtoLens.Encoding.Bytes.putVarInt- (Prelude.fromIntegral (Data.ByteString.length bs)))- (Data.ProtoLens.Encoding.Bytes.putBytes bs))- _v))- (Data.ProtoLens.Encoding.Wire.buildFieldSet- (Lens.Family2.view Data.ProtoLens.unknownFields _x))-instance Control.DeepSeq.NFData ChangePasswordResponse where- rnf- = \ x__- -> Control.DeepSeq.deepseq- (_ChangePasswordResponse'_unknownFields x__)- (Control.DeepSeq.deepseq- (_ChangePasswordResponse'adminMacaroon x__) ())-{- | Fields :- - * 'Proto.WalletUnlockerGrpc_Fields.aezeedPassphrase' @:: Lens' GenSeedRequest Data.ByteString.ByteString@- * 'Proto.WalletUnlockerGrpc_Fields.seedEntropy' @:: Lens' GenSeedRequest Data.ByteString.ByteString@ -}-data GenSeedRequest- = GenSeedRequest'_constructor {_GenSeedRequest'aezeedPassphrase :: !Data.ByteString.ByteString,- _GenSeedRequest'seedEntropy :: !Data.ByteString.ByteString,- _GenSeedRequest'_unknownFields :: !Data.ProtoLens.FieldSet}- deriving stock (Prelude.Eq, Prelude.Ord)-instance Prelude.Show GenSeedRequest where- showsPrec _ __x __s- = Prelude.showChar- '{'- (Prelude.showString- (Data.ProtoLens.showMessageShort __x) (Prelude.showChar '}' __s))-instance Data.ProtoLens.Field.HasField GenSeedRequest "aezeedPassphrase" Data.ByteString.ByteString where- fieldOf _- = (Prelude..)- (Lens.Family2.Unchecked.lens- _GenSeedRequest'aezeedPassphrase- (\ x__ y__ -> x__ {_GenSeedRequest'aezeedPassphrase = y__}))- Prelude.id-instance Data.ProtoLens.Field.HasField GenSeedRequest "seedEntropy" Data.ByteString.ByteString where- fieldOf _- = (Prelude..)- (Lens.Family2.Unchecked.lens- _GenSeedRequest'seedEntropy- (\ x__ y__ -> x__ {_GenSeedRequest'seedEntropy = y__}))- Prelude.id-instance Data.ProtoLens.Message GenSeedRequest where- messageName _ = Data.Text.pack "lnrpc.GenSeedRequest"- packedMessageDescriptor _- = "\n\- \\SOGenSeedRequest\DC2+\n\- \\DC1aezeed_passphrase\CAN\SOH \SOH(\fR\DLEaezeedPassphrase\DC2!\n\- \\fseed_entropy\CAN\STX \SOH(\fR\vseedEntropy"- packedFileDescriptor _ = packedFileDescriptor- fieldsByTag- = let- aezeedPassphrase__field_descriptor- = Data.ProtoLens.FieldDescriptor- "aezeed_passphrase"- (Data.ProtoLens.ScalarField Data.ProtoLens.BytesField ::- Data.ProtoLens.FieldTypeDescriptor Data.ByteString.ByteString)- (Data.ProtoLens.PlainField- Data.ProtoLens.Optional- (Data.ProtoLens.Field.field @"aezeedPassphrase")) ::- Data.ProtoLens.FieldDescriptor GenSeedRequest- seedEntropy__field_descriptor- = Data.ProtoLens.FieldDescriptor- "seed_entropy"- (Data.ProtoLens.ScalarField Data.ProtoLens.BytesField ::- Data.ProtoLens.FieldTypeDescriptor Data.ByteString.ByteString)- (Data.ProtoLens.PlainField- Data.ProtoLens.Optional- (Data.ProtoLens.Field.field @"seedEntropy")) ::- Data.ProtoLens.FieldDescriptor GenSeedRequest- in- Data.Map.fromList- [(Data.ProtoLens.Tag 1, aezeedPassphrase__field_descriptor),- (Data.ProtoLens.Tag 2, seedEntropy__field_descriptor)]- unknownFields- = Lens.Family2.Unchecked.lens- _GenSeedRequest'_unknownFields- (\ x__ y__ -> x__ {_GenSeedRequest'_unknownFields = y__})- defMessage- = GenSeedRequest'_constructor- {_GenSeedRequest'aezeedPassphrase = Data.ProtoLens.fieldDefault,- _GenSeedRequest'seedEntropy = Data.ProtoLens.fieldDefault,- _GenSeedRequest'_unknownFields = []}- parseMessage- = let- loop ::- GenSeedRequest- -> Data.ProtoLens.Encoding.Bytes.Parser GenSeedRequest- loop x- = do end <- Data.ProtoLens.Encoding.Bytes.atEnd- if end then- do (let missing = []- in- if Prelude.null missing then- Prelude.return ()- else- Prelude.fail- ((Prelude.++)- "Missing required fields: "- (Prelude.show (missing :: [Prelude.String]))))- Prelude.return- (Lens.Family2.over- Data.ProtoLens.unknownFields (\ !t -> Prelude.reverse t) x)- else- do tag <- Data.ProtoLens.Encoding.Bytes.getVarInt- case tag of- 10- -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)- (do len <- Data.ProtoLens.Encoding.Bytes.getVarInt- Data.ProtoLens.Encoding.Bytes.getBytes- (Prelude.fromIntegral len))- "aezeed_passphrase"- loop- (Lens.Family2.set- (Data.ProtoLens.Field.field @"aezeedPassphrase") y x)- 18- -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)- (do len <- Data.ProtoLens.Encoding.Bytes.getVarInt- Data.ProtoLens.Encoding.Bytes.getBytes- (Prelude.fromIntegral len))- "seed_entropy"- loop- (Lens.Family2.set (Data.ProtoLens.Field.field @"seedEntropy") y x)- wire- -> do !y <- Data.ProtoLens.Encoding.Wire.parseTaggedValueFromWire- wire- loop- (Lens.Family2.over- Data.ProtoLens.unknownFields (\ !t -> (:) y t) x)- in- (Data.ProtoLens.Encoding.Bytes.<?>)- (do loop Data.ProtoLens.defMessage) "GenSeedRequest"- buildMessage- = \ _x- -> (Data.Monoid.<>)- (let- _v- = Lens.Family2.view- (Data.ProtoLens.Field.field @"aezeedPassphrase") _x- in- if (Prelude.==) _v Data.ProtoLens.fieldDefault then- Data.Monoid.mempty- else- (Data.Monoid.<>)- (Data.ProtoLens.Encoding.Bytes.putVarInt 10)- ((\ bs- -> (Data.Monoid.<>)- (Data.ProtoLens.Encoding.Bytes.putVarInt- (Prelude.fromIntegral (Data.ByteString.length bs)))- (Data.ProtoLens.Encoding.Bytes.putBytes bs))- _v))- ((Data.Monoid.<>)- (let- _v- = Lens.Family2.view (Data.ProtoLens.Field.field @"seedEntropy") _x- in- if (Prelude.==) _v Data.ProtoLens.fieldDefault then- Data.Monoid.mempty- else- (Data.Monoid.<>)- (Data.ProtoLens.Encoding.Bytes.putVarInt 18)- ((\ bs- -> (Data.Monoid.<>)- (Data.ProtoLens.Encoding.Bytes.putVarInt- (Prelude.fromIntegral (Data.ByteString.length bs)))- (Data.ProtoLens.Encoding.Bytes.putBytes bs))- _v))- (Data.ProtoLens.Encoding.Wire.buildFieldSet- (Lens.Family2.view Data.ProtoLens.unknownFields _x)))-instance Control.DeepSeq.NFData GenSeedRequest where- rnf- = \ x__- -> Control.DeepSeq.deepseq- (_GenSeedRequest'_unknownFields x__)- (Control.DeepSeq.deepseq- (_GenSeedRequest'aezeedPassphrase x__)- (Control.DeepSeq.deepseq (_GenSeedRequest'seedEntropy x__) ()))-{- | Fields :- - * 'Proto.WalletUnlockerGrpc_Fields.cipherSeedMnemonic' @:: Lens' GenSeedResponse [Data.Text.Text]@- * 'Proto.WalletUnlockerGrpc_Fields.vec'cipherSeedMnemonic' @:: Lens' GenSeedResponse (Data.Vector.Vector Data.Text.Text)@- * 'Proto.WalletUnlockerGrpc_Fields.encipheredSeed' @:: Lens' GenSeedResponse Data.ByteString.ByteString@ -}-data GenSeedResponse- = GenSeedResponse'_constructor {_GenSeedResponse'cipherSeedMnemonic :: !(Data.Vector.Vector Data.Text.Text),- _GenSeedResponse'encipheredSeed :: !Data.ByteString.ByteString,- _GenSeedResponse'_unknownFields :: !Data.ProtoLens.FieldSet}- deriving stock (Prelude.Eq, Prelude.Ord)-instance Prelude.Show GenSeedResponse where- showsPrec _ __x __s- = Prelude.showChar- '{'- (Prelude.showString- (Data.ProtoLens.showMessageShort __x) (Prelude.showChar '}' __s))-instance Data.ProtoLens.Field.HasField GenSeedResponse "cipherSeedMnemonic" [Data.Text.Text] where- fieldOf _- = (Prelude..)- (Lens.Family2.Unchecked.lens- _GenSeedResponse'cipherSeedMnemonic- (\ x__ y__ -> x__ {_GenSeedResponse'cipherSeedMnemonic = y__}))- (Lens.Family2.Unchecked.lens- Data.Vector.Generic.toList- (\ _ y__ -> Data.Vector.Generic.fromList y__))-instance Data.ProtoLens.Field.HasField GenSeedResponse "vec'cipherSeedMnemonic" (Data.Vector.Vector Data.Text.Text) where- fieldOf _- = (Prelude..)- (Lens.Family2.Unchecked.lens- _GenSeedResponse'cipherSeedMnemonic- (\ x__ y__ -> x__ {_GenSeedResponse'cipherSeedMnemonic = y__}))- Prelude.id-instance Data.ProtoLens.Field.HasField GenSeedResponse "encipheredSeed" Data.ByteString.ByteString where- fieldOf _- = (Prelude..)- (Lens.Family2.Unchecked.lens- _GenSeedResponse'encipheredSeed- (\ x__ y__ -> x__ {_GenSeedResponse'encipheredSeed = y__}))- Prelude.id-instance Data.ProtoLens.Message GenSeedResponse where- messageName _ = Data.Text.pack "lnrpc.GenSeedResponse"- packedMessageDescriptor _- = "\n\- \\SIGenSeedResponse\DC20\n\- \\DC4cipher_seed_mnemonic\CAN\SOH \ETX(\tR\DC2cipherSeedMnemonic\DC2'\n\- \\SIenciphered_seed\CAN\STX \SOH(\fR\SOencipheredSeed"- packedFileDescriptor _ = packedFileDescriptor- fieldsByTag- = let- cipherSeedMnemonic__field_descriptor- = Data.ProtoLens.FieldDescriptor- "cipher_seed_mnemonic"- (Data.ProtoLens.ScalarField Data.ProtoLens.StringField ::- Data.ProtoLens.FieldTypeDescriptor Data.Text.Text)- (Data.ProtoLens.RepeatedField- Data.ProtoLens.Unpacked- (Data.ProtoLens.Field.field @"cipherSeedMnemonic")) ::- Data.ProtoLens.FieldDescriptor GenSeedResponse- encipheredSeed__field_descriptor- = Data.ProtoLens.FieldDescriptor- "enciphered_seed"- (Data.ProtoLens.ScalarField Data.ProtoLens.BytesField ::- Data.ProtoLens.FieldTypeDescriptor Data.ByteString.ByteString)- (Data.ProtoLens.PlainField- Data.ProtoLens.Optional- (Data.ProtoLens.Field.field @"encipheredSeed")) ::- Data.ProtoLens.FieldDescriptor GenSeedResponse- in- Data.Map.fromList- [(Data.ProtoLens.Tag 1, cipherSeedMnemonic__field_descriptor),- (Data.ProtoLens.Tag 2, encipheredSeed__field_descriptor)]- unknownFields- = Lens.Family2.Unchecked.lens- _GenSeedResponse'_unknownFields- (\ x__ y__ -> x__ {_GenSeedResponse'_unknownFields = y__})- defMessage- = GenSeedResponse'_constructor- {_GenSeedResponse'cipherSeedMnemonic = Data.Vector.Generic.empty,- _GenSeedResponse'encipheredSeed = Data.ProtoLens.fieldDefault,- _GenSeedResponse'_unknownFields = []}- parseMessage- = let- loop ::- GenSeedResponse- -> Data.ProtoLens.Encoding.Growing.Growing Data.Vector.Vector Data.ProtoLens.Encoding.Growing.RealWorld Data.Text.Text- -> Data.ProtoLens.Encoding.Bytes.Parser GenSeedResponse- loop x mutable'cipherSeedMnemonic- = do end <- Data.ProtoLens.Encoding.Bytes.atEnd- if end then- do frozen'cipherSeedMnemonic <- Data.ProtoLens.Encoding.Parser.Unsafe.unsafeLiftIO- (Data.ProtoLens.Encoding.Growing.unsafeFreeze- mutable'cipherSeedMnemonic)- (let missing = []- in- if Prelude.null missing then- Prelude.return ()- else- Prelude.fail- ((Prelude.++)- "Missing required fields: "- (Prelude.show (missing :: [Prelude.String]))))- Prelude.return- (Lens.Family2.over- Data.ProtoLens.unknownFields- (\ !t -> Prelude.reverse t)- (Lens.Family2.set- (Data.ProtoLens.Field.field @"vec'cipherSeedMnemonic")- frozen'cipherSeedMnemonic- x))- else- do tag <- Data.ProtoLens.Encoding.Bytes.getVarInt- case tag of- 10- -> do !y <- (Data.ProtoLens.Encoding.Bytes.<?>)- (do value <- do len <- Data.ProtoLens.Encoding.Bytes.getVarInt- Data.ProtoLens.Encoding.Bytes.getBytes- (Prelude.fromIntegral len)- Data.ProtoLens.Encoding.Bytes.runEither- (case Data.Text.Encoding.decodeUtf8' value of- (Prelude.Left err)- -> Prelude.Left (Prelude.show err)- (Prelude.Right r) -> Prelude.Right r))- "cipher_seed_mnemonic"- v <- Data.ProtoLens.Encoding.Parser.Unsafe.unsafeLiftIO- (Data.ProtoLens.Encoding.Growing.append- mutable'cipherSeedMnemonic y)- loop x v- 18- -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)- (do len <- Data.ProtoLens.Encoding.Bytes.getVarInt- Data.ProtoLens.Encoding.Bytes.getBytes- (Prelude.fromIntegral len))- "enciphered_seed"- loop- (Lens.Family2.set- (Data.ProtoLens.Field.field @"encipheredSeed") y x)- mutable'cipherSeedMnemonic- wire- -> do !y <- Data.ProtoLens.Encoding.Wire.parseTaggedValueFromWire- wire- loop- (Lens.Family2.over- Data.ProtoLens.unknownFields (\ !t -> (:) y t) x)- mutable'cipherSeedMnemonic- in- (Data.ProtoLens.Encoding.Bytes.<?>)- (do mutable'cipherSeedMnemonic <- Data.ProtoLens.Encoding.Parser.Unsafe.unsafeLiftIO- Data.ProtoLens.Encoding.Growing.new- loop Data.ProtoLens.defMessage mutable'cipherSeedMnemonic)- "GenSeedResponse"- buildMessage- = \ _x- -> (Data.Monoid.<>)- (Data.ProtoLens.Encoding.Bytes.foldMapBuilder- (\ _v- -> (Data.Monoid.<>)- (Data.ProtoLens.Encoding.Bytes.putVarInt 10)- ((Prelude..)- (\ bs- -> (Data.Monoid.<>)- (Data.ProtoLens.Encoding.Bytes.putVarInt- (Prelude.fromIntegral (Data.ByteString.length bs)))- (Data.ProtoLens.Encoding.Bytes.putBytes bs))- Data.Text.Encoding.encodeUtf8- _v))- (Lens.Family2.view- (Data.ProtoLens.Field.field @"vec'cipherSeedMnemonic") _x))- ((Data.Monoid.<>)- (let- _v- = Lens.Family2.view- (Data.ProtoLens.Field.field @"encipheredSeed") _x- in- if (Prelude.==) _v Data.ProtoLens.fieldDefault then- Data.Monoid.mempty- else- (Data.Monoid.<>)- (Data.ProtoLens.Encoding.Bytes.putVarInt 18)- ((\ bs- -> (Data.Monoid.<>)- (Data.ProtoLens.Encoding.Bytes.putVarInt- (Prelude.fromIntegral (Data.ByteString.length bs)))- (Data.ProtoLens.Encoding.Bytes.putBytes bs))- _v))- (Data.ProtoLens.Encoding.Wire.buildFieldSet- (Lens.Family2.view Data.ProtoLens.unknownFields _x)))-instance Control.DeepSeq.NFData GenSeedResponse where- rnf- = \ x__- -> Control.DeepSeq.deepseq- (_GenSeedResponse'_unknownFields x__)- (Control.DeepSeq.deepseq- (_GenSeedResponse'cipherSeedMnemonic x__)- (Control.DeepSeq.deepseq (_GenSeedResponse'encipheredSeed x__) ()))-{- | Fields :- - * 'Proto.WalletUnlockerGrpc_Fields.walletPassword' @:: Lens' InitWalletRequest Data.ByteString.ByteString@- * 'Proto.WalletUnlockerGrpc_Fields.cipherSeedMnemonic' @:: Lens' InitWalletRequest [Data.Text.Text]@- * 'Proto.WalletUnlockerGrpc_Fields.vec'cipherSeedMnemonic' @:: Lens' InitWalletRequest (Data.Vector.Vector Data.Text.Text)@- * 'Proto.WalletUnlockerGrpc_Fields.aezeedPassphrase' @:: Lens' InitWalletRequest Data.ByteString.ByteString@- * 'Proto.WalletUnlockerGrpc_Fields.recoveryWindow' @:: Lens' InitWalletRequest Data.Int.Int32@- * 'Proto.WalletUnlockerGrpc_Fields.channelBackups' @:: Lens' InitWalletRequest Proto.LndGrpc.ChanBackupSnapshot@- * 'Proto.WalletUnlockerGrpc_Fields.maybe'channelBackups' @:: Lens' InitWalletRequest (Prelude.Maybe Proto.LndGrpc.ChanBackupSnapshot)@- * 'Proto.WalletUnlockerGrpc_Fields.statelessInit' @:: Lens' InitWalletRequest Prelude.Bool@ -}-data InitWalletRequest- = InitWalletRequest'_constructor {_InitWalletRequest'walletPassword :: !Data.ByteString.ByteString,- _InitWalletRequest'cipherSeedMnemonic :: !(Data.Vector.Vector Data.Text.Text),- _InitWalletRequest'aezeedPassphrase :: !Data.ByteString.ByteString,- _InitWalletRequest'recoveryWindow :: !Data.Int.Int32,- _InitWalletRequest'channelBackups :: !(Prelude.Maybe Proto.LndGrpc.ChanBackupSnapshot),- _InitWalletRequest'statelessInit :: !Prelude.Bool,- _InitWalletRequest'_unknownFields :: !Data.ProtoLens.FieldSet}- deriving stock (Prelude.Eq, Prelude.Ord)-instance Prelude.Show InitWalletRequest where- showsPrec _ __x __s- = Prelude.showChar- '{'- (Prelude.showString- (Data.ProtoLens.showMessageShort __x) (Prelude.showChar '}' __s))-instance Data.ProtoLens.Field.HasField InitWalletRequest "walletPassword" Data.ByteString.ByteString where- fieldOf _- = (Prelude..)- (Lens.Family2.Unchecked.lens- _InitWalletRequest'walletPassword- (\ x__ y__ -> x__ {_InitWalletRequest'walletPassword = y__}))- Prelude.id-instance Data.ProtoLens.Field.HasField InitWalletRequest "cipherSeedMnemonic" [Data.Text.Text] where- fieldOf _- = (Prelude..)- (Lens.Family2.Unchecked.lens- _InitWalletRequest'cipherSeedMnemonic- (\ x__ y__ -> x__ {_InitWalletRequest'cipherSeedMnemonic = y__}))- (Lens.Family2.Unchecked.lens- Data.Vector.Generic.toList- (\ _ y__ -> Data.Vector.Generic.fromList y__))-instance Data.ProtoLens.Field.HasField InitWalletRequest "vec'cipherSeedMnemonic" (Data.Vector.Vector Data.Text.Text) where- fieldOf _- = (Prelude..)- (Lens.Family2.Unchecked.lens- _InitWalletRequest'cipherSeedMnemonic- (\ x__ y__ -> x__ {_InitWalletRequest'cipherSeedMnemonic = y__}))- Prelude.id-instance Data.ProtoLens.Field.HasField InitWalletRequest "aezeedPassphrase" Data.ByteString.ByteString where- fieldOf _- = (Prelude..)- (Lens.Family2.Unchecked.lens- _InitWalletRequest'aezeedPassphrase- (\ x__ y__ -> x__ {_InitWalletRequest'aezeedPassphrase = y__}))- Prelude.id-instance Data.ProtoLens.Field.HasField InitWalletRequest "recoveryWindow" Data.Int.Int32 where- fieldOf _- = (Prelude..)- (Lens.Family2.Unchecked.lens- _InitWalletRequest'recoveryWindow- (\ x__ y__ -> x__ {_InitWalletRequest'recoveryWindow = y__}))- Prelude.id-instance Data.ProtoLens.Field.HasField InitWalletRequest "channelBackups" Proto.LndGrpc.ChanBackupSnapshot where- fieldOf _- = (Prelude..)- (Lens.Family2.Unchecked.lens- _InitWalletRequest'channelBackups- (\ x__ y__ -> x__ {_InitWalletRequest'channelBackups = y__}))- (Data.ProtoLens.maybeLens Data.ProtoLens.defMessage)-instance Data.ProtoLens.Field.HasField InitWalletRequest "maybe'channelBackups" (Prelude.Maybe Proto.LndGrpc.ChanBackupSnapshot) where- fieldOf _- = (Prelude..)- (Lens.Family2.Unchecked.lens- _InitWalletRequest'channelBackups- (\ x__ y__ -> x__ {_InitWalletRequest'channelBackups = y__}))- Prelude.id-instance Data.ProtoLens.Field.HasField InitWalletRequest "statelessInit" Prelude.Bool where- fieldOf _- = (Prelude..)- (Lens.Family2.Unchecked.lens- _InitWalletRequest'statelessInit- (\ x__ y__ -> x__ {_InitWalletRequest'statelessInit = y__}))- Prelude.id-instance Data.ProtoLens.Message InitWalletRequest where- messageName _ = Data.Text.pack "lnrpc.InitWalletRequest"- packedMessageDescriptor _- = "\n\- \\DC1InitWalletRequest\DC2'\n\- \\SIwallet_password\CAN\SOH \SOH(\fR\SOwalletPassword\DC20\n\- \\DC4cipher_seed_mnemonic\CAN\STX \ETX(\tR\DC2cipherSeedMnemonic\DC2+\n\- \\DC1aezeed_passphrase\CAN\ETX \SOH(\fR\DLEaezeedPassphrase\DC2'\n\- \\SIrecovery_window\CAN\EOT \SOH(\ENQR\SOrecoveryWindow\DC2B\n\- \\SIchannel_backups\CAN\ENQ \SOH(\v2\EM.lnrpc.ChanBackupSnapshotR\SOchannelBackups\DC2%\n\- \\SOstateless_init\CAN\ACK \SOH(\bR\rstatelessInit"- packedFileDescriptor _ = packedFileDescriptor- fieldsByTag- = let- walletPassword__field_descriptor- = Data.ProtoLens.FieldDescriptor- "wallet_password"- (Data.ProtoLens.ScalarField Data.ProtoLens.BytesField ::- Data.ProtoLens.FieldTypeDescriptor Data.ByteString.ByteString)- (Data.ProtoLens.PlainField- Data.ProtoLens.Optional- (Data.ProtoLens.Field.field @"walletPassword")) ::- Data.ProtoLens.FieldDescriptor InitWalletRequest- cipherSeedMnemonic__field_descriptor- = Data.ProtoLens.FieldDescriptor- "cipher_seed_mnemonic"- (Data.ProtoLens.ScalarField Data.ProtoLens.StringField ::- Data.ProtoLens.FieldTypeDescriptor Data.Text.Text)- (Data.ProtoLens.RepeatedField- Data.ProtoLens.Unpacked- (Data.ProtoLens.Field.field @"cipherSeedMnemonic")) ::- Data.ProtoLens.FieldDescriptor InitWalletRequest- aezeedPassphrase__field_descriptor- = Data.ProtoLens.FieldDescriptor- "aezeed_passphrase"- (Data.ProtoLens.ScalarField Data.ProtoLens.BytesField ::- Data.ProtoLens.FieldTypeDescriptor Data.ByteString.ByteString)- (Data.ProtoLens.PlainField- Data.ProtoLens.Optional- (Data.ProtoLens.Field.field @"aezeedPassphrase")) ::- Data.ProtoLens.FieldDescriptor InitWalletRequest- recoveryWindow__field_descriptor- = Data.ProtoLens.FieldDescriptor- "recovery_window"- (Data.ProtoLens.ScalarField Data.ProtoLens.Int32Field ::- Data.ProtoLens.FieldTypeDescriptor Data.Int.Int32)- (Data.ProtoLens.PlainField- Data.ProtoLens.Optional- (Data.ProtoLens.Field.field @"recoveryWindow")) ::- Data.ProtoLens.FieldDescriptor InitWalletRequest- channelBackups__field_descriptor- = Data.ProtoLens.FieldDescriptor- "channel_backups"- (Data.ProtoLens.MessageField Data.ProtoLens.MessageType ::- Data.ProtoLens.FieldTypeDescriptor Proto.LndGrpc.ChanBackupSnapshot)- (Data.ProtoLens.OptionalField- (Data.ProtoLens.Field.field @"maybe'channelBackups")) ::- Data.ProtoLens.FieldDescriptor InitWalletRequest- statelessInit__field_descriptor- = Data.ProtoLens.FieldDescriptor- "stateless_init"- (Data.ProtoLens.ScalarField Data.ProtoLens.BoolField ::- Data.ProtoLens.FieldTypeDescriptor Prelude.Bool)- (Data.ProtoLens.PlainField- Data.ProtoLens.Optional- (Data.ProtoLens.Field.field @"statelessInit")) ::- Data.ProtoLens.FieldDescriptor InitWalletRequest- in- Data.Map.fromList- [(Data.ProtoLens.Tag 1, walletPassword__field_descriptor),- (Data.ProtoLens.Tag 2, cipherSeedMnemonic__field_descriptor),- (Data.ProtoLens.Tag 3, aezeedPassphrase__field_descriptor),- (Data.ProtoLens.Tag 4, recoveryWindow__field_descriptor),- (Data.ProtoLens.Tag 5, channelBackups__field_descriptor),- (Data.ProtoLens.Tag 6, statelessInit__field_descriptor)]- unknownFields- = Lens.Family2.Unchecked.lens- _InitWalletRequest'_unknownFields- (\ x__ y__ -> x__ {_InitWalletRequest'_unknownFields = y__})- defMessage- = InitWalletRequest'_constructor- {_InitWalletRequest'walletPassword = Data.ProtoLens.fieldDefault,- _InitWalletRequest'cipherSeedMnemonic = Data.Vector.Generic.empty,- _InitWalletRequest'aezeedPassphrase = Data.ProtoLens.fieldDefault,- _InitWalletRequest'recoveryWindow = Data.ProtoLens.fieldDefault,- _InitWalletRequest'channelBackups = Prelude.Nothing,- _InitWalletRequest'statelessInit = Data.ProtoLens.fieldDefault,- _InitWalletRequest'_unknownFields = []}- parseMessage- = let- loop ::- InitWalletRequest- -> Data.ProtoLens.Encoding.Growing.Growing Data.Vector.Vector Data.ProtoLens.Encoding.Growing.RealWorld Data.Text.Text- -> Data.ProtoLens.Encoding.Bytes.Parser InitWalletRequest- loop x mutable'cipherSeedMnemonic- = do end <- Data.ProtoLens.Encoding.Bytes.atEnd- if end then- do frozen'cipherSeedMnemonic <- Data.ProtoLens.Encoding.Parser.Unsafe.unsafeLiftIO- (Data.ProtoLens.Encoding.Growing.unsafeFreeze- mutable'cipherSeedMnemonic)- (let missing = []- in- if Prelude.null missing then- Prelude.return ()- else- Prelude.fail- ((Prelude.++)- "Missing required fields: "- (Prelude.show (missing :: [Prelude.String]))))- Prelude.return- (Lens.Family2.over- Data.ProtoLens.unknownFields- (\ !t -> Prelude.reverse t)- (Lens.Family2.set- (Data.ProtoLens.Field.field @"vec'cipherSeedMnemonic")- frozen'cipherSeedMnemonic- x))- else- do tag <- Data.ProtoLens.Encoding.Bytes.getVarInt- case tag of- 10- -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)- (do len <- Data.ProtoLens.Encoding.Bytes.getVarInt- Data.ProtoLens.Encoding.Bytes.getBytes- (Prelude.fromIntegral len))- "wallet_password"- loop- (Lens.Family2.set- (Data.ProtoLens.Field.field @"walletPassword") y x)- mutable'cipherSeedMnemonic- 18- -> do !y <- (Data.ProtoLens.Encoding.Bytes.<?>)- (do value <- do len <- Data.ProtoLens.Encoding.Bytes.getVarInt- Data.ProtoLens.Encoding.Bytes.getBytes- (Prelude.fromIntegral len)- Data.ProtoLens.Encoding.Bytes.runEither- (case Data.Text.Encoding.decodeUtf8' value of- (Prelude.Left err)- -> Prelude.Left (Prelude.show err)- (Prelude.Right r) -> Prelude.Right r))- "cipher_seed_mnemonic"- v <- Data.ProtoLens.Encoding.Parser.Unsafe.unsafeLiftIO- (Data.ProtoLens.Encoding.Growing.append- mutable'cipherSeedMnemonic y)- loop x v- 26- -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)- (do len <- Data.ProtoLens.Encoding.Bytes.getVarInt- Data.ProtoLens.Encoding.Bytes.getBytes- (Prelude.fromIntegral len))- "aezeed_passphrase"- loop- (Lens.Family2.set- (Data.ProtoLens.Field.field @"aezeedPassphrase") y x)- mutable'cipherSeedMnemonic- 32- -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)- (Prelude.fmap- Prelude.fromIntegral- Data.ProtoLens.Encoding.Bytes.getVarInt)- "recovery_window"- loop- (Lens.Family2.set- (Data.ProtoLens.Field.field @"recoveryWindow") y x)- mutable'cipherSeedMnemonic- 42- -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)- (do len <- Data.ProtoLens.Encoding.Bytes.getVarInt- Data.ProtoLens.Encoding.Bytes.isolate- (Prelude.fromIntegral len) Data.ProtoLens.parseMessage)- "channel_backups"- loop- (Lens.Family2.set- (Data.ProtoLens.Field.field @"channelBackups") y x)- mutable'cipherSeedMnemonic- 48- -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)- (Prelude.fmap- ((Prelude./=) 0) Data.ProtoLens.Encoding.Bytes.getVarInt)- "stateless_init"- loop- (Lens.Family2.set- (Data.ProtoLens.Field.field @"statelessInit") y x)- mutable'cipherSeedMnemonic- wire- -> do !y <- Data.ProtoLens.Encoding.Wire.parseTaggedValueFromWire- wire- loop- (Lens.Family2.over- Data.ProtoLens.unknownFields (\ !t -> (:) y t) x)- mutable'cipherSeedMnemonic- in- (Data.ProtoLens.Encoding.Bytes.<?>)- (do mutable'cipherSeedMnemonic <- Data.ProtoLens.Encoding.Parser.Unsafe.unsafeLiftIO- Data.ProtoLens.Encoding.Growing.new- loop Data.ProtoLens.defMessage mutable'cipherSeedMnemonic)- "InitWalletRequest"- buildMessage- = \ _x- -> (Data.Monoid.<>)- (let- _v- = Lens.Family2.view- (Data.ProtoLens.Field.field @"walletPassword") _x- in- if (Prelude.==) _v Data.ProtoLens.fieldDefault then- Data.Monoid.mempty- else- (Data.Monoid.<>)- (Data.ProtoLens.Encoding.Bytes.putVarInt 10)- ((\ bs- -> (Data.Monoid.<>)- (Data.ProtoLens.Encoding.Bytes.putVarInt- (Prelude.fromIntegral (Data.ByteString.length bs)))- (Data.ProtoLens.Encoding.Bytes.putBytes bs))- _v))- ((Data.Monoid.<>)- (Data.ProtoLens.Encoding.Bytes.foldMapBuilder- (\ _v- -> (Data.Monoid.<>)- (Data.ProtoLens.Encoding.Bytes.putVarInt 18)- ((Prelude..)- (\ bs- -> (Data.Monoid.<>)- (Data.ProtoLens.Encoding.Bytes.putVarInt- (Prelude.fromIntegral (Data.ByteString.length bs)))- (Data.ProtoLens.Encoding.Bytes.putBytes bs))- Data.Text.Encoding.encodeUtf8- _v))- (Lens.Family2.view- (Data.ProtoLens.Field.field @"vec'cipherSeedMnemonic") _x))- ((Data.Monoid.<>)- (let- _v- = Lens.Family2.view- (Data.ProtoLens.Field.field @"aezeedPassphrase") _x- in- if (Prelude.==) _v Data.ProtoLens.fieldDefault then- Data.Monoid.mempty- else- (Data.Monoid.<>)- (Data.ProtoLens.Encoding.Bytes.putVarInt 26)- ((\ bs- -> (Data.Monoid.<>)- (Data.ProtoLens.Encoding.Bytes.putVarInt- (Prelude.fromIntegral (Data.ByteString.length bs)))- (Data.ProtoLens.Encoding.Bytes.putBytes bs))- _v))- ((Data.Monoid.<>)- (let- _v- = Lens.Family2.view- (Data.ProtoLens.Field.field @"recoveryWindow") _x- in- if (Prelude.==) _v Data.ProtoLens.fieldDefault then- Data.Monoid.mempty- else- (Data.Monoid.<>)- (Data.ProtoLens.Encoding.Bytes.putVarInt 32)- ((Prelude..)- Data.ProtoLens.Encoding.Bytes.putVarInt Prelude.fromIntegral _v))- ((Data.Monoid.<>)- (case- Lens.Family2.view- (Data.ProtoLens.Field.field @"maybe'channelBackups") _x- of- Prelude.Nothing -> Data.Monoid.mempty- (Prelude.Just _v)- -> (Data.Monoid.<>)- (Data.ProtoLens.Encoding.Bytes.putVarInt 42)- ((Prelude..)- (\ bs- -> (Data.Monoid.<>)- (Data.ProtoLens.Encoding.Bytes.putVarInt- (Prelude.fromIntegral (Data.ByteString.length bs)))- (Data.ProtoLens.Encoding.Bytes.putBytes bs))- Data.ProtoLens.encodeMessage- _v))- ((Data.Monoid.<>)- (let- _v- = Lens.Family2.view- (Data.ProtoLens.Field.field @"statelessInit") _x- in- if (Prelude.==) _v Data.ProtoLens.fieldDefault then- Data.Monoid.mempty- else- (Data.Monoid.<>)- (Data.ProtoLens.Encoding.Bytes.putVarInt 48)- ((Prelude..)- Data.ProtoLens.Encoding.Bytes.putVarInt- (\ b -> if b then 1 else 0)- _v))- (Data.ProtoLens.Encoding.Wire.buildFieldSet- (Lens.Family2.view Data.ProtoLens.unknownFields _x)))))))-instance Control.DeepSeq.NFData InitWalletRequest where- rnf- = \ x__- -> Control.DeepSeq.deepseq- (_InitWalletRequest'_unknownFields x__)- (Control.DeepSeq.deepseq- (_InitWalletRequest'walletPassword x__)- (Control.DeepSeq.deepseq- (_InitWalletRequest'cipherSeedMnemonic x__)- (Control.DeepSeq.deepseq- (_InitWalletRequest'aezeedPassphrase x__)- (Control.DeepSeq.deepseq- (_InitWalletRequest'recoveryWindow x__)- (Control.DeepSeq.deepseq- (_InitWalletRequest'channelBackups x__)- (Control.DeepSeq.deepseq- (_InitWalletRequest'statelessInit x__) ()))))))-{- | Fields :- - * 'Proto.WalletUnlockerGrpc_Fields.adminMacaroon' @:: Lens' InitWalletResponse Data.ByteString.ByteString@ -}-data InitWalletResponse- = InitWalletResponse'_constructor {_InitWalletResponse'adminMacaroon :: !Data.ByteString.ByteString,- _InitWalletResponse'_unknownFields :: !Data.ProtoLens.FieldSet}- deriving stock (Prelude.Eq, Prelude.Ord)-instance Prelude.Show InitWalletResponse where- showsPrec _ __x __s- = Prelude.showChar- '{'- (Prelude.showString- (Data.ProtoLens.showMessageShort __x) (Prelude.showChar '}' __s))-instance Data.ProtoLens.Field.HasField InitWalletResponse "adminMacaroon" Data.ByteString.ByteString where- fieldOf _- = (Prelude..)- (Lens.Family2.Unchecked.lens- _InitWalletResponse'adminMacaroon- (\ x__ y__ -> x__ {_InitWalletResponse'adminMacaroon = y__}))- Prelude.id-instance Data.ProtoLens.Message InitWalletResponse where- messageName _ = Data.Text.pack "lnrpc.InitWalletResponse"- packedMessageDescriptor _- = "\n\- \\DC2InitWalletResponse\DC2%\n\- \\SOadmin_macaroon\CAN\SOH \SOH(\fR\radminMacaroon"- packedFileDescriptor _ = packedFileDescriptor- fieldsByTag- = let- adminMacaroon__field_descriptor- = Data.ProtoLens.FieldDescriptor- "admin_macaroon"- (Data.ProtoLens.ScalarField Data.ProtoLens.BytesField ::- Data.ProtoLens.FieldTypeDescriptor Data.ByteString.ByteString)- (Data.ProtoLens.PlainField- Data.ProtoLens.Optional- (Data.ProtoLens.Field.field @"adminMacaroon")) ::- Data.ProtoLens.FieldDescriptor InitWalletResponse- in- Data.Map.fromList- [(Data.ProtoLens.Tag 1, adminMacaroon__field_descriptor)]- unknownFields- = Lens.Family2.Unchecked.lens- _InitWalletResponse'_unknownFields- (\ x__ y__ -> x__ {_InitWalletResponse'_unknownFields = y__})- defMessage- = InitWalletResponse'_constructor- {_InitWalletResponse'adminMacaroon = Data.ProtoLens.fieldDefault,- _InitWalletResponse'_unknownFields = []}- parseMessage- = let- loop ::- InitWalletResponse- -> Data.ProtoLens.Encoding.Bytes.Parser InitWalletResponse- loop x- = do end <- Data.ProtoLens.Encoding.Bytes.atEnd- if end then- do (let missing = []- in- if Prelude.null missing then- Prelude.return ()- else- Prelude.fail- ((Prelude.++)- "Missing required fields: "- (Prelude.show (missing :: [Prelude.String]))))- Prelude.return- (Lens.Family2.over- Data.ProtoLens.unknownFields (\ !t -> Prelude.reverse t) x)- else- do tag <- Data.ProtoLens.Encoding.Bytes.getVarInt- case tag of- 10- -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)- (do len <- Data.ProtoLens.Encoding.Bytes.getVarInt- Data.ProtoLens.Encoding.Bytes.getBytes- (Prelude.fromIntegral len))- "admin_macaroon"- loop- (Lens.Family2.set- (Data.ProtoLens.Field.field @"adminMacaroon") y x)- wire- -> do !y <- Data.ProtoLens.Encoding.Wire.parseTaggedValueFromWire- wire- loop- (Lens.Family2.over- Data.ProtoLens.unknownFields (\ !t -> (:) y t) x)- in- (Data.ProtoLens.Encoding.Bytes.<?>)- (do loop Data.ProtoLens.defMessage) "InitWalletResponse"- buildMessage- = \ _x- -> (Data.Monoid.<>)- (let- _v- = Lens.Family2.view- (Data.ProtoLens.Field.field @"adminMacaroon") _x- in- if (Prelude.==) _v Data.ProtoLens.fieldDefault then- Data.Monoid.mempty- else- (Data.Monoid.<>)- (Data.ProtoLens.Encoding.Bytes.putVarInt 10)- ((\ bs- -> (Data.Monoid.<>)- (Data.ProtoLens.Encoding.Bytes.putVarInt- (Prelude.fromIntegral (Data.ByteString.length bs)))- (Data.ProtoLens.Encoding.Bytes.putBytes bs))- _v))- (Data.ProtoLens.Encoding.Wire.buildFieldSet- (Lens.Family2.view Data.ProtoLens.unknownFields _x))-instance Control.DeepSeq.NFData InitWalletResponse where- rnf- = \ x__- -> Control.DeepSeq.deepseq- (_InitWalletResponse'_unknownFields x__)- (Control.DeepSeq.deepseq- (_InitWalletResponse'adminMacaroon x__) ())-{- | Fields :- - * 'Proto.WalletUnlockerGrpc_Fields.walletPassword' @:: Lens' UnlockWalletRequest Data.ByteString.ByteString@- * 'Proto.WalletUnlockerGrpc_Fields.recoveryWindow' @:: Lens' UnlockWalletRequest Data.Int.Int32@- * 'Proto.WalletUnlockerGrpc_Fields.channelBackups' @:: Lens' UnlockWalletRequest Proto.LndGrpc.ChanBackupSnapshot@- * 'Proto.WalletUnlockerGrpc_Fields.maybe'channelBackups' @:: Lens' UnlockWalletRequest (Prelude.Maybe Proto.LndGrpc.ChanBackupSnapshot)@- * 'Proto.WalletUnlockerGrpc_Fields.statelessInit' @:: Lens' UnlockWalletRequest Prelude.Bool@ -}-data UnlockWalletRequest- = UnlockWalletRequest'_constructor {_UnlockWalletRequest'walletPassword :: !Data.ByteString.ByteString,- _UnlockWalletRequest'recoveryWindow :: !Data.Int.Int32,- _UnlockWalletRequest'channelBackups :: !(Prelude.Maybe Proto.LndGrpc.ChanBackupSnapshot),- _UnlockWalletRequest'statelessInit :: !Prelude.Bool,- _UnlockWalletRequest'_unknownFields :: !Data.ProtoLens.FieldSet}- deriving stock (Prelude.Eq, Prelude.Ord)-instance Prelude.Show UnlockWalletRequest where- showsPrec _ __x __s- = Prelude.showChar- '{'- (Prelude.showString- (Data.ProtoLens.showMessageShort __x) (Prelude.showChar '}' __s))-instance Data.ProtoLens.Field.HasField UnlockWalletRequest "walletPassword" Data.ByteString.ByteString where- fieldOf _- = (Prelude..)- (Lens.Family2.Unchecked.lens- _UnlockWalletRequest'walletPassword- (\ x__ y__ -> x__ {_UnlockWalletRequest'walletPassword = y__}))- Prelude.id-instance Data.ProtoLens.Field.HasField UnlockWalletRequest "recoveryWindow" Data.Int.Int32 where- fieldOf _- = (Prelude..)- (Lens.Family2.Unchecked.lens- _UnlockWalletRequest'recoveryWindow- (\ x__ y__ -> x__ {_UnlockWalletRequest'recoveryWindow = y__}))- Prelude.id-instance Data.ProtoLens.Field.HasField UnlockWalletRequest "channelBackups" Proto.LndGrpc.ChanBackupSnapshot where- fieldOf _- = (Prelude..)- (Lens.Family2.Unchecked.lens- _UnlockWalletRequest'channelBackups- (\ x__ y__ -> x__ {_UnlockWalletRequest'channelBackups = y__}))- (Data.ProtoLens.maybeLens Data.ProtoLens.defMessage)-instance Data.ProtoLens.Field.HasField UnlockWalletRequest "maybe'channelBackups" (Prelude.Maybe Proto.LndGrpc.ChanBackupSnapshot) where- fieldOf _- = (Prelude..)- (Lens.Family2.Unchecked.lens- _UnlockWalletRequest'channelBackups- (\ x__ y__ -> x__ {_UnlockWalletRequest'channelBackups = y__}))- Prelude.id-instance Data.ProtoLens.Field.HasField UnlockWalletRequest "statelessInit" Prelude.Bool where- fieldOf _- = (Prelude..)- (Lens.Family2.Unchecked.lens- _UnlockWalletRequest'statelessInit- (\ x__ y__ -> x__ {_UnlockWalletRequest'statelessInit = y__}))- Prelude.id-instance Data.ProtoLens.Message UnlockWalletRequest where- messageName _ = Data.Text.pack "lnrpc.UnlockWalletRequest"- packedMessageDescriptor _- = "\n\- \\DC3UnlockWalletRequest\DC2'\n\- \\SIwallet_password\CAN\SOH \SOH(\fR\SOwalletPassword\DC2'\n\- \\SIrecovery_window\CAN\STX \SOH(\ENQR\SOrecoveryWindow\DC2B\n\- \\SIchannel_backups\CAN\ETX \SOH(\v2\EM.lnrpc.ChanBackupSnapshotR\SOchannelBackups\DC2%\n\- \\SOstateless_init\CAN\EOT \SOH(\bR\rstatelessInit"- packedFileDescriptor _ = packedFileDescriptor- fieldsByTag- = let- walletPassword__field_descriptor- = Data.ProtoLens.FieldDescriptor- "wallet_password"- (Data.ProtoLens.ScalarField Data.ProtoLens.BytesField ::- Data.ProtoLens.FieldTypeDescriptor Data.ByteString.ByteString)- (Data.ProtoLens.PlainField- Data.ProtoLens.Optional- (Data.ProtoLens.Field.field @"walletPassword")) ::- Data.ProtoLens.FieldDescriptor UnlockWalletRequest- recoveryWindow__field_descriptor- = Data.ProtoLens.FieldDescriptor- "recovery_window"- (Data.ProtoLens.ScalarField Data.ProtoLens.Int32Field ::- Data.ProtoLens.FieldTypeDescriptor Data.Int.Int32)- (Data.ProtoLens.PlainField- Data.ProtoLens.Optional- (Data.ProtoLens.Field.field @"recoveryWindow")) ::- Data.ProtoLens.FieldDescriptor UnlockWalletRequest- channelBackups__field_descriptor- = Data.ProtoLens.FieldDescriptor- "channel_backups"- (Data.ProtoLens.MessageField Data.ProtoLens.MessageType ::- Data.ProtoLens.FieldTypeDescriptor Proto.LndGrpc.ChanBackupSnapshot)- (Data.ProtoLens.OptionalField- (Data.ProtoLens.Field.field @"maybe'channelBackups")) ::- Data.ProtoLens.FieldDescriptor UnlockWalletRequest- statelessInit__field_descriptor- = Data.ProtoLens.FieldDescriptor- "stateless_init"- (Data.ProtoLens.ScalarField Data.ProtoLens.BoolField ::- Data.ProtoLens.FieldTypeDescriptor Prelude.Bool)- (Data.ProtoLens.PlainField- Data.ProtoLens.Optional- (Data.ProtoLens.Field.field @"statelessInit")) ::- Data.ProtoLens.FieldDescriptor UnlockWalletRequest- in- Data.Map.fromList- [(Data.ProtoLens.Tag 1, walletPassword__field_descriptor),- (Data.ProtoLens.Tag 2, recoveryWindow__field_descriptor),- (Data.ProtoLens.Tag 3, channelBackups__field_descriptor),- (Data.ProtoLens.Tag 4, statelessInit__field_descriptor)]- unknownFields- = Lens.Family2.Unchecked.lens- _UnlockWalletRequest'_unknownFields- (\ x__ y__ -> x__ {_UnlockWalletRequest'_unknownFields = y__})- defMessage- = UnlockWalletRequest'_constructor- {_UnlockWalletRequest'walletPassword = Data.ProtoLens.fieldDefault,- _UnlockWalletRequest'recoveryWindow = Data.ProtoLens.fieldDefault,- _UnlockWalletRequest'channelBackups = Prelude.Nothing,- _UnlockWalletRequest'statelessInit = Data.ProtoLens.fieldDefault,- _UnlockWalletRequest'_unknownFields = []}- parseMessage- = let- loop ::- UnlockWalletRequest- -> Data.ProtoLens.Encoding.Bytes.Parser UnlockWalletRequest- loop x- = do end <- Data.ProtoLens.Encoding.Bytes.atEnd- if end then- do (let missing = []- in- if Prelude.null missing then- Prelude.return ()- else- Prelude.fail- ((Prelude.++)- "Missing required fields: "- (Prelude.show (missing :: [Prelude.String]))))- Prelude.return- (Lens.Family2.over- Data.ProtoLens.unknownFields (\ !t -> Prelude.reverse t) x)- else- do tag <- Data.ProtoLens.Encoding.Bytes.getVarInt- case tag of- 10- -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)- (do len <- Data.ProtoLens.Encoding.Bytes.getVarInt- Data.ProtoLens.Encoding.Bytes.getBytes- (Prelude.fromIntegral len))- "wallet_password"- loop- (Lens.Family2.set- (Data.ProtoLens.Field.field @"walletPassword") y x)- 16- -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)- (Prelude.fmap- Prelude.fromIntegral- Data.ProtoLens.Encoding.Bytes.getVarInt)- "recovery_window"- loop- (Lens.Family2.set- (Data.ProtoLens.Field.field @"recoveryWindow") y x)- 26- -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)- (do len <- Data.ProtoLens.Encoding.Bytes.getVarInt- Data.ProtoLens.Encoding.Bytes.isolate- (Prelude.fromIntegral len) Data.ProtoLens.parseMessage)- "channel_backups"- loop- (Lens.Family2.set- (Data.ProtoLens.Field.field @"channelBackups") y x)- 32- -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)- (Prelude.fmap- ((Prelude./=) 0) Data.ProtoLens.Encoding.Bytes.getVarInt)- "stateless_init"- loop- (Lens.Family2.set- (Data.ProtoLens.Field.field @"statelessInit") y x)- wire- -> do !y <- Data.ProtoLens.Encoding.Wire.parseTaggedValueFromWire- wire- loop- (Lens.Family2.over- Data.ProtoLens.unknownFields (\ !t -> (:) y t) x)- in- (Data.ProtoLens.Encoding.Bytes.<?>)- (do loop Data.ProtoLens.defMessage) "UnlockWalletRequest"- buildMessage- = \ _x- -> (Data.Monoid.<>)- (let- _v- = Lens.Family2.view- (Data.ProtoLens.Field.field @"walletPassword") _x- in- if (Prelude.==) _v Data.ProtoLens.fieldDefault then- Data.Monoid.mempty- else- (Data.Monoid.<>)- (Data.ProtoLens.Encoding.Bytes.putVarInt 10)- ((\ bs- -> (Data.Monoid.<>)- (Data.ProtoLens.Encoding.Bytes.putVarInt- (Prelude.fromIntegral (Data.ByteString.length bs)))- (Data.ProtoLens.Encoding.Bytes.putBytes bs))- _v))- ((Data.Monoid.<>)- (let- _v- = Lens.Family2.view- (Data.ProtoLens.Field.field @"recoveryWindow") _x- in- if (Prelude.==) _v Data.ProtoLens.fieldDefault then- Data.Monoid.mempty- else- (Data.Monoid.<>)- (Data.ProtoLens.Encoding.Bytes.putVarInt 16)- ((Prelude..)- Data.ProtoLens.Encoding.Bytes.putVarInt Prelude.fromIntegral _v))- ((Data.Monoid.<>)- (case- Lens.Family2.view- (Data.ProtoLens.Field.field @"maybe'channelBackups") _x- of- Prelude.Nothing -> Data.Monoid.mempty- (Prelude.Just _v)- -> (Data.Monoid.<>)- (Data.ProtoLens.Encoding.Bytes.putVarInt 26)- ((Prelude..)- (\ bs- -> (Data.Monoid.<>)- (Data.ProtoLens.Encoding.Bytes.putVarInt- (Prelude.fromIntegral (Data.ByteString.length bs)))- (Data.ProtoLens.Encoding.Bytes.putBytes bs))- Data.ProtoLens.encodeMessage- _v))- ((Data.Monoid.<>)- (let- _v- = Lens.Family2.view- (Data.ProtoLens.Field.field @"statelessInit") _x- in- if (Prelude.==) _v Data.ProtoLens.fieldDefault then- Data.Monoid.mempty- else- (Data.Monoid.<>)- (Data.ProtoLens.Encoding.Bytes.putVarInt 32)- ((Prelude..)- Data.ProtoLens.Encoding.Bytes.putVarInt- (\ b -> if b then 1 else 0)- _v))- (Data.ProtoLens.Encoding.Wire.buildFieldSet- (Lens.Family2.view Data.ProtoLens.unknownFields _x)))))-instance Control.DeepSeq.NFData UnlockWalletRequest where- rnf- = \ x__- -> Control.DeepSeq.deepseq- (_UnlockWalletRequest'_unknownFields x__)- (Control.DeepSeq.deepseq- (_UnlockWalletRequest'walletPassword x__)- (Control.DeepSeq.deepseq- (_UnlockWalletRequest'recoveryWindow x__)- (Control.DeepSeq.deepseq- (_UnlockWalletRequest'channelBackups x__)- (Control.DeepSeq.deepseq- (_UnlockWalletRequest'statelessInit x__) ()))))-{- | Fields :- -}-data UnlockWalletResponse- = UnlockWalletResponse'_constructor {_UnlockWalletResponse'_unknownFields :: !Data.ProtoLens.FieldSet}- deriving stock (Prelude.Eq, Prelude.Ord)-instance Prelude.Show UnlockWalletResponse where- showsPrec _ __x __s- = Prelude.showChar- '{'- (Prelude.showString- (Data.ProtoLens.showMessageShort __x) (Prelude.showChar '}' __s))-instance Data.ProtoLens.Message UnlockWalletResponse where- messageName _ = Data.Text.pack "lnrpc.UnlockWalletResponse"- packedMessageDescriptor _- = "\n\- \\DC4UnlockWalletResponse"- packedFileDescriptor _ = packedFileDescriptor- fieldsByTag = let in Data.Map.fromList []- unknownFields- = Lens.Family2.Unchecked.lens- _UnlockWalletResponse'_unknownFields- (\ x__ y__ -> x__ {_UnlockWalletResponse'_unknownFields = y__})- defMessage- = UnlockWalletResponse'_constructor- {_UnlockWalletResponse'_unknownFields = []}- parseMessage- = let- loop ::- UnlockWalletResponse- -> Data.ProtoLens.Encoding.Bytes.Parser UnlockWalletResponse- loop x- = do end <- Data.ProtoLens.Encoding.Bytes.atEnd- if end then- do (let missing = []- in- if Prelude.null missing then- Prelude.return ()- else- Prelude.fail- ((Prelude.++)- "Missing required fields: "- (Prelude.show (missing :: [Prelude.String]))))- Prelude.return- (Lens.Family2.over- Data.ProtoLens.unknownFields (\ !t -> Prelude.reverse t) x)- else- do tag <- Data.ProtoLens.Encoding.Bytes.getVarInt- case tag of {- wire- -> do !y <- Data.ProtoLens.Encoding.Wire.parseTaggedValueFromWire- wire- loop- (Lens.Family2.over- Data.ProtoLens.unknownFields (\ !t -> (:) y t) x) }- in- (Data.ProtoLens.Encoding.Bytes.<?>)- (do loop Data.ProtoLens.defMessage) "UnlockWalletResponse"- buildMessage- = \ _x- -> Data.ProtoLens.Encoding.Wire.buildFieldSet- (Lens.Family2.view Data.ProtoLens.unknownFields _x)-instance Control.DeepSeq.NFData UnlockWalletResponse where- rnf- = \ x__- -> Control.DeepSeq.deepseq- (_UnlockWalletResponse'_unknownFields x__) ()-data WalletUnlocker = WalletUnlocker {}-instance Data.ProtoLens.Service.Types.Service WalletUnlocker where- type ServiceName WalletUnlocker = "WalletUnlocker"- type ServicePackage WalletUnlocker = "lnrpc"- type ServiceMethods WalletUnlocker = '["changePassword",- "genSeed",- "initWallet",- "unlockWallet"]-instance Data.ProtoLens.Service.Types.HasMethodImpl WalletUnlocker "genSeed" where- type MethodName WalletUnlocker "genSeed" = "GenSeed"- type MethodInput WalletUnlocker "genSeed" = GenSeedRequest- type MethodOutput WalletUnlocker "genSeed" = GenSeedResponse- type MethodStreamingType WalletUnlocker "genSeed" = 'Data.ProtoLens.Service.Types.NonStreaming-instance Data.ProtoLens.Service.Types.HasMethodImpl WalletUnlocker "initWallet" where- type MethodName WalletUnlocker "initWallet" = "InitWallet"- type MethodInput WalletUnlocker "initWallet" = InitWalletRequest- type MethodOutput WalletUnlocker "initWallet" = InitWalletResponse- type MethodStreamingType WalletUnlocker "initWallet" = 'Data.ProtoLens.Service.Types.NonStreaming-instance Data.ProtoLens.Service.Types.HasMethodImpl WalletUnlocker "unlockWallet" where- type MethodName WalletUnlocker "unlockWallet" = "UnlockWallet"- type MethodInput WalletUnlocker "unlockWallet" = UnlockWalletRequest- type MethodOutput WalletUnlocker "unlockWallet" = UnlockWalletResponse- type MethodStreamingType WalletUnlocker "unlockWallet" = 'Data.ProtoLens.Service.Types.NonStreaming-instance Data.ProtoLens.Service.Types.HasMethodImpl WalletUnlocker "changePassword" where- type MethodName WalletUnlocker "changePassword" = "ChangePassword"- type MethodInput WalletUnlocker "changePassword" = ChangePasswordRequest- type MethodOutput WalletUnlocker "changePassword" = ChangePasswordResponse- type MethodStreamingType WalletUnlocker "changePassword" = 'Data.ProtoLens.Service.Types.NonStreaming-packedFileDescriptor :: Data.ByteString.ByteString-packedFileDescriptor- = "\n\- \\SUBwallet_unlocker_grpc.proto\DC2\ENQlnrpc\SUB\SOlnd_grpc.proto\"`\n\- \\SOGenSeedRequest\DC2+\n\- \\DC1aezeed_passphrase\CAN\SOH \SOH(\fR\DLEaezeedPassphrase\DC2!\n\- \\fseed_entropy\CAN\STX \SOH(\fR\vseedEntropy\"l\n\- \\SIGenSeedResponse\DC20\n\- \\DC4cipher_seed_mnemonic\CAN\SOH \ETX(\tR\DC2cipherSeedMnemonic\DC2'\n\- \\SIenciphered_seed\CAN\STX \SOH(\fR\SOencipheredSeed\"\175\STX\n\- \\DC1InitWalletRequest\DC2'\n\- \\SIwallet_password\CAN\SOH \SOH(\fR\SOwalletPassword\DC20\n\- \\DC4cipher_seed_mnemonic\CAN\STX \ETX(\tR\DC2cipherSeedMnemonic\DC2+\n\- \\DC1aezeed_passphrase\CAN\ETX \SOH(\fR\DLEaezeedPassphrase\DC2'\n\- \\SIrecovery_window\CAN\EOT \SOH(\ENQR\SOrecoveryWindow\DC2B\n\- \\SIchannel_backups\CAN\ENQ \SOH(\v2\EM.lnrpc.ChanBackupSnapshotR\SOchannelBackups\DC2%\n\- \\SOstateless_init\CAN\ACK \SOH(\bR\rstatelessInit\";\n\- \\DC2InitWalletResponse\DC2%\n\- \\SOadmin_macaroon\CAN\SOH \SOH(\fR\radminMacaroon\"\210\SOH\n\- \\DC3UnlockWalletRequest\DC2'\n\- \\SIwallet_password\CAN\SOH \SOH(\fR\SOwalletPassword\DC2'\n\- \\SIrecovery_window\CAN\STX \SOH(\ENQR\SOrecoveryWindow\DC2B\n\- \\SIchannel_backups\CAN\ETX \SOH(\v2\EM.lnrpc.ChanBackupSnapshotR\SOchannelBackups\DC2%\n\- \\SOstateless_init\CAN\EOT \SOH(\bR\rstatelessInit\"\SYN\n\- \\DC4UnlockWalletResponse\"\191\SOH\n\- \\NAKChangePasswordRequest\DC2)\n\- \\DLEcurrent_password\CAN\SOH \SOH(\fR\SIcurrentPassword\DC2!\n\- \\fnew_password\CAN\STX \SOH(\fR\vnewPassword\DC2%\n\- \\SOstateless_init\CAN\ETX \SOH(\bR\rstatelessInit\DC21\n\- \\NAKnew_macaroon_root_key\CAN\EOT \SOH(\bR\DC2newMacaroonRootKey\"?\n\- \\SYNChangePasswordResponse\DC2%\n\- \\SOadmin_macaroon\CAN\SOH \SOH(\fR\radminMacaroon2\165\STX\n\- \\SOWalletUnlocker\DC28\n\- \\aGenSeed\DC2\NAK.lnrpc.GenSeedRequest\SUB\SYN.lnrpc.GenSeedResponse\DC2A\n\- \\n\- \InitWallet\DC2\CAN.lnrpc.InitWalletRequest\SUB\EM.lnrpc.InitWalletResponse\DC2G\n\- \\fUnlockWallet\DC2\SUB.lnrpc.UnlockWalletRequest\SUB\ESC.lnrpc.UnlockWalletResponse\DC2M\n\- \\SOChangePassword\DC2\FS.lnrpc.ChangePasswordRequest\SUB\GS.lnrpc.ChangePasswordResponseB'Z%github.com/lightningnetwork/lnd/lnrpcJ\232I\n\- \\a\DC2\ENQ\STX\NUL\239\SOH\SOH\n\- \\141\SOH\n\- \\SOH\f\DC2\ETX\STX\NUL\DC22\130\SOHsource https://raw.githubusercontent.com/lightningnetwork/lnd/c733c139e95a6ef4e5f9ac88b43328ac96c333ef/lnrpc/walletunlocker.proto\n\- \\n\- \\t\n\- \\STX\ETX\NUL\DC2\ETX\EOT\NUL\CAN\n\- \\b\n\- \\SOH\STX\DC2\ETX\ACK\NUL\SO\n\- \\b\n\- \\SOH\b\DC2\ETX\b\NUL<\n\- \\t\n\- \\STX\b\v\DC2\ETX\b\NUL<\n\- \\187\ACK\n\- \\STX\ACK\NUL\DC2\EOT\RS\NULF\SOH\SUB\136\SOH WalletUnlocker is a service that is used to set up a wallet password for\n\- \ lnd at first startup, and unlock a previously set up wallet.\n\- \2\163\ENQ\n\- \ Comments in this file will be directly parsed into the API\n\- \ Documentation as descriptions of the associated method, message, or field.\n\- \ These descriptions should go right above the definition of the object, and\n\- \ can be in either block or // comment format.\n\- \\n\- \ An RPC method can be matched to an lncli command by placing a line in the\n\- \ beginning of the description in exactly the following format:\n\- \ lncli: `methodname`\n\- \\n\- \ Failure to specify the exact name of the command will cause documentation\n\- \ generation to fail.\n\- \\n\- \ More information on how exactly the gRPC documentation is generated from\n\- \ this proto file can be found here:\n\- \ https://github.com/lightninglabs/lightning-api\n\- \\n\- \\n\- \\n\- \\ETX\ACK\NUL\SOH\DC2\ETX\RS\b\SYN\n\- \\200\ETX\n\- \\EOT\ACK\NUL\STX\NUL\DC2\ETX)\EOT;\SUB\186\ETX\n\- \GenSeed is the first method that should be used to instantiate a new lnd\n\- \instance. This method allows a caller to generate a new aezeed cipher seed\n\- \given an optional passphrase. If provided, the passphrase will be necessary\n\- \to decrypt the cipherseed to expose the internal wallet seed.\n\- \\n\- \Once the cipherseed is obtained and verified by the user, the InitWallet\n\- \method should be used to commit the newly generated seed, and create the\n\- \wallet.\n\- \\n\- \\f\n\- \\ENQ\ACK\NUL\STX\NUL\SOH\DC2\ETX)\b\SI\n\- \\f\n\- \\ENQ\ACK\NUL\STX\NUL\STX\DC2\ETX)\DC1\US\n\- \\f\n\- \\ENQ\ACK\NUL\STX\NUL\ETX\DC2\ETX)*9\n\- \\133\ENQ\n\- \\EOT\ACK\NUL\STX\SOH\DC2\ETX9\EOTD\SUB\247\EOT\n\- \InitWallet is used when lnd is starting up for the first time to fully\n\- \initialize the daemon and its internal wallet. At the very least a wallet\n\- \password must be provided. This will be used to encrypt sensitive material\n\- \on disk.\n\- \\n\- \In the case of a recovery scenario, the user can also specify their aezeed\n\- \mnemonic and passphrase. If set, then the daemon will use this prior state\n\- \to initialize its internal wallet.\n\- \\n\- \Alternatively, this can be used along with the GenSeed RPC to obtain a\n\- \seed, then present it to the user. Once it has been verified by the user,\n\- \the seed can be fed into this RPC in order to commit the new wallet.\n\- \\n\- \\f\n\- \\ENQ\ACK\NUL\STX\SOH\SOH\DC2\ETX9\b\DC2\n\- \\f\n\- \\ENQ\ACK\NUL\STX\SOH\STX\DC2\ETX9\DC4%\n\- \\f\n\- \\ENQ\ACK\NUL\STX\SOH\ETX\DC2\ETX90B\n\- \z\n\- \\EOT\ACK\NUL\STX\STX\DC2\ETX?\EOTJ\SUBm lncli: `unlock`\n\- \UnlockWallet is used at startup of lnd to provide a password to unlock\n\- \the wallet database.\n\- \\n\- \\f\n\- \\ENQ\ACK\NUL\STX\STX\SOH\DC2\ETX?\b\DC4\n\- \\f\n\- \\ENQ\ACK\NUL\STX\STX\STX\DC2\ETX?\SYN)\n\- \\f\n\- \\ENQ\ACK\NUL\STX\STX\ETX\DC2\ETX?4H\n\- \\166\SOH\n\- \\EOT\ACK\NUL\STX\ETX\DC2\ETXE\EOTP\SUB\152\SOH lncli: `changepassword`\n\- \ChangePassword changes the password of the encrypted wallet. This will\n\- \automatically unlock the wallet database if successful.\n\- \\n\- \\f\n\- \\ENQ\ACK\NUL\STX\ETX\SOH\DC2\ETXE\b\SYN\n\- \\f\n\- \\ENQ\ACK\NUL\STX\ETX\STX\DC2\ETXE\CAN-\n\- \\f\n\- \\ENQ\ACK\NUL\STX\ETX\ETX\DC2\ETXE8N\n\- \\n\- \\n\- \\STX\EOT\NUL\DC2\EOTH\NULV\SOH\n\- \\n\- \\n\- \\ETX\EOT\NUL\SOH\DC2\ETXH\b\SYN\n\- \\191\SOH\n\- \\EOT\EOT\NUL\STX\NUL\DC2\ETXN\EOT \SUB\177\SOH\n\- \aezeed_passphrase is an optional user provided passphrase that will be used\n\- \to encrypt the generated aezeed cipher seed. When using REST, this field\n\- \must be encoded as base64.\n\- \\n\- \\r\n\- \\ENQ\EOT\NUL\STX\NUL\EOT\DC2\EOTN\EOTH\CAN\n\- \\f\n\- \\ENQ\EOT\NUL\STX\NUL\ENQ\DC2\ETXN\EOT\t\n\- \\f\n\- \\ENQ\EOT\NUL\STX\NUL\SOH\DC2\ETXN\n\- \\ESC\n\- \\f\n\- \\ENQ\EOT\NUL\STX\NUL\ETX\DC2\ETXN\RS\US\n\- \\211\SOH\n\- \\EOT\EOT\NUL\STX\SOH\DC2\ETXU\EOT\ESC\SUB\197\SOH\n\- \seed_entropy is an optional 16-bytes generated via CSPRNG. If not\n\- \specified, then a fresh set of randomness will be used to create the seed.\n\- \When using REST, this field must be encoded as base64.\n\- \\n\- \\r\n\- \\ENQ\EOT\NUL\STX\SOH\EOT\DC2\EOTU\EOTN \n\- \\f\n\- \\ENQ\EOT\NUL\STX\SOH\ENQ\DC2\ETXU\EOT\t\n\- \\f\n\- \\ENQ\EOT\NUL\STX\SOH\SOH\DC2\ETXU\n\- \\SYN\n\- \\f\n\- \\ENQ\EOT\NUL\STX\SOH\ETX\DC2\ETXU\EM\SUB\n\- \\n\- \\n\- \\STX\EOT\SOH\DC2\EOTW\NULf\SOH\n\- \\n\- \\n\- \\ETX\EOT\SOH\SOH\DC2\ETXW\b\ETB\n\- \\194\STX\n\- \\EOT\EOT\SOH\STX\NUL\DC2\ETX_\EOT-\SUB\180\STX\n\- \cipher_seed_mnemonic is a 24-word mnemonic that encodes a prior aezeed\n\- \cipher seed obtained by the user. This field is optional, as if not\n\- \provided, then the daemon will generate a new cipher seed for the user.\n\- \Otherwise, then the daemon will attempt to recover the wallet state linked\n\- \to this cipher seed.\n\- \\n\- \\f\n\- \\ENQ\EOT\SOH\STX\NUL\EOT\DC2\ETX_\EOT\f\n\- \\f\n\- \\ENQ\EOT\SOH\STX\NUL\ENQ\DC2\ETX_\r\DC3\n\- \\f\n\- \\ENQ\EOT\SOH\STX\NUL\SOH\DC2\ETX_\DC4(\n\- \\f\n\- \\ENQ\EOT\SOH\STX\NUL\ETX\DC2\ETX_+,\n\- \\146\SOH\n\- \\EOT\EOT\SOH\STX\SOH\DC2\ETXe\EOT\RS\SUB\132\SOH\n\- \enciphered_seed are the raw aezeed cipher seed bytes. This is the raw\n\- \cipher text before run through our mnemonic encoding scheme.\n\- \\n\- \\r\n\- \\ENQ\EOT\SOH\STX\SOH\EOT\DC2\EOTe\EOT_-\n\- \\f\n\- \\ENQ\EOT\SOH\STX\SOH\ENQ\DC2\ETXe\EOT\t\n\- \\f\n\- \\ENQ\EOT\SOH\STX\SOH\SOH\DC2\ETXe\n\- \\EM\n\- \\f\n\- \\ENQ\EOT\SOH\STX\SOH\ETX\DC2\ETXe\FS\GS\n\- \\v\n\- \\STX\EOT\STX\DC2\ENQh\NUL\153\SOH\SOH\n\- \\n\- \\n\- \\ETX\EOT\STX\SOH\DC2\ETXh\b\EM\n\- \\252\SOH\n\- \\EOT\EOT\STX\STX\NUL\DC2\ETXo\EOT\RS\SUB\238\SOH\n\- \wallet_password is the passphrase that should be used to encrypt the\n\- \wallet. This MUST be at least 8 chars in length. After creation, this\n\- \password is required to unlock the daemon. When using REST, this field\n\- \must be encoded as base64.\n\- \\n\- \\r\n\- \\ENQ\EOT\STX\STX\NUL\EOT\DC2\EOTo\EOTh\ESC\n\- \\f\n\- \\ENQ\EOT\STX\STX\NUL\ENQ\DC2\ETXo\EOT\t\n\- \\f\n\- \\ENQ\EOT\STX\STX\NUL\SOH\DC2\ETXo\n\- \\EM\n\- \\f\n\- \\ENQ\EOT\STX\STX\NUL\ETX\DC2\ETXo\FS\GS\n\- \\196\SOH\n\- \\EOT\EOT\STX\STX\SOH\DC2\ETXv\EOT-\SUB\182\SOH\n\- \cipher_seed_mnemonic is a 24-word mnemonic that encodes a prior aezeed\n\- \cipher seed obtained by the user. This may have been generated by the\n\- \GenSeed method, or be an existing seed.\n\- \\n\- \\f\n\- \\ENQ\EOT\STX\STX\SOH\EOT\DC2\ETXv\EOT\f\n\- \\f\n\- \\ENQ\EOT\STX\STX\SOH\ENQ\DC2\ETXv\r\DC3\n\- \\f\n\- \\ENQ\EOT\STX\STX\SOH\SOH\DC2\ETXv\DC4(\n\- \\f\n\- \\ENQ\EOT\STX\STX\SOH\ETX\DC2\ETXv+,\n\- \\191\SOH\n\- \\EOT\EOT\STX\STX\STX\DC2\ETX}\EOT \SUB\177\SOH\n\- \aezeed_passphrase is an optional user provided passphrase that will be used\n\- \to encrypt the generated aezeed cipher seed. When using REST, this field\n\- \must be encoded as base64.\n\- \\n\- \\r\n\- \\ENQ\EOT\STX\STX\STX\EOT\DC2\EOT}\EOTv-\n\- \\f\n\- \\ENQ\EOT\STX\STX\STX\ENQ\DC2\ETX}\EOT\t\n\- \\f\n\- \\ENQ\EOT\STX\STX\STX\SOH\DC2\ETX}\n\- \\ESC\n\- \\f\n\- \\ENQ\EOT\STX\STX\STX\ETX\DC2\ETX}\RS\US\n\- \\212\STX\n\- \\EOT\EOT\STX\STX\ETX\DC2\EOT\134\SOH\EOT\RS\SUB\197\STX\n\- \recovery_window is an optional argument specifying the address lookahead\n\- \when restoring a wallet seed. The recovery window applies to each\n\- \individual branch of the BIP44 derivation paths. Supplying a recovery\n\- \window of zero indicates that no addresses should be recovered, such after\n\- \the first initialization of the wallet.\n\- \\n\- \\SO\n\- \\ENQ\EOT\STX\STX\ETX\EOT\DC2\ENQ\134\SOH\EOT} \n\- \\r\n\- \\ENQ\EOT\STX\STX\ETX\ENQ\DC2\EOT\134\SOH\EOT\t\n\- \\r\n\- \\ENQ\EOT\STX\STX\ETX\SOH\DC2\EOT\134\SOH\n\- \\EM\n\- \\r\n\- \\ENQ\EOT\STX\STX\ETX\ETX\DC2\EOT\134\SOH\FS\GS\n\- \\203\ETX\n\- \\EOT\EOT\STX\STX\EOT\DC2\EOT\144\SOH\EOT+\SUB\188\ETX\n\- \channel_backups is an optional argument that allows clients to recover the\n\- \settled funds within a set of channels. This should be populated if the\n\- \user was unable to close out all channels and sweep funds before partial or\n\- \total data loss occurred. If specified, then after on-chain recovery of\n\- \funds, lnd begin to carry out the data loss recovery protocol in order to\n\- \recover the funds in each channel from a remote force closed transaction.\n\- \\n\- \\SI\n\- \\ENQ\EOT\STX\STX\EOT\EOT\DC2\ACK\144\SOH\EOT\134\SOH\RS\n\- \\r\n\- \\ENQ\EOT\STX\STX\EOT\ACK\DC2\EOT\144\SOH\EOT\SYN\n\- \\r\n\- \\ENQ\EOT\STX\STX\EOT\SOH\DC2\EOT\144\SOH\ETB&\n\- \\r\n\- \\ENQ\EOT\STX\STX\EOT\ETX\DC2\EOT\144\SOH)*\n\- \\171\STX\n\- \\EOT\EOT\STX\STX\ENQ\DC2\EOT\152\SOH\EOT\FS\SUB\156\STX\n\- \stateless_init is an optional argument instructing the daemon NOT to create\n\- \any *.macaroon files in its filesystem. If this parameter is set, then the\n\- \admin macaroon returned in the response MUST be stored by the caller of the\n\- \RPC as otherwise all access to the daemon will be lost!\n\- \\n\- \\SI\n\- \\ENQ\EOT\STX\STX\ENQ\EOT\DC2\ACK\152\SOH\EOT\144\SOH+\n\- \\r\n\- \\ENQ\EOT\STX\STX\ENQ\ENQ\DC2\EOT\152\SOH\EOT\b\n\- \\r\n\- \\ENQ\EOT\STX\STX\ENQ\SOH\DC2\EOT\152\SOH\t\ETB\n\- \\r\n\- \\ENQ\EOT\STX\STX\ENQ\ETX\DC2\EOT\152\SOH\SUB\ESC\n\- \\f\n\- \\STX\EOT\ETX\DC2\ACK\154\SOH\NUL\163\SOH\SOH\n\- \\v\n\- \\ETX\EOT\ETX\SOH\DC2\EOT\154\SOH\b\SUB\n\- \\229\STX\n\- \\EOT\EOT\ETX\STX\NUL\DC2\EOT\162\SOH\EOT\GS\SUB\214\STX\n\- \The binary serialized admin macaroon that can be used to access the daemon\n\- \after creating the wallet. If the stateless_init parameter was set to true,\n\- \this is the ONLY copy of the macaroon and MUST be stored safely by the\n\- \caller. Otherwise a copy of this macaroon is also persisted on disk by the\n\- \daemon, together with other macaroon files.\n\- \\n\- \\SI\n\- \\ENQ\EOT\ETX\STX\NUL\EOT\DC2\ACK\162\SOH\EOT\154\SOH\FS\n\- \\r\n\- \\ENQ\EOT\ETX\STX\NUL\ENQ\DC2\EOT\162\SOH\EOT\t\n\- \\r\n\- \\ENQ\EOT\ETX\STX\NUL\SOH\DC2\EOT\162\SOH\n\- \\CAN\n\- \\r\n\- \\ENQ\EOT\ETX\STX\NUL\ETX\DC2\EOT\162\SOH\ESC\FS\n\- \\f\n\- \\STX\EOT\EOT\DC2\ACK\165\SOH\NUL\197\SOH\SOH\n\- \\v\n\- \\ETX\EOT\EOT\SOH\DC2\EOT\165\SOH\b\ESC\n\- \\239\SOH\n\- \\EOT\EOT\EOT\STX\NUL\DC2\EOT\171\SOH\EOT\RS\SUB\224\SOH\n\- \wallet_password should be the current valid passphrase for the daemon. This\n\- \will be required to decrypt on-disk material that the daemon requires to\n\- \function properly. When using REST, this field must be encoded as base64.\n\- \\n\- \\SI\n\- \\ENQ\EOT\EOT\STX\NUL\EOT\DC2\ACK\171\SOH\EOT\165\SOH\GS\n\- \\r\n\- \\ENQ\EOT\EOT\STX\NUL\ENQ\DC2\EOT\171\SOH\EOT\t\n\- \\r\n\- \\ENQ\EOT\EOT\STX\NUL\SOH\DC2\EOT\171\SOH\n\- \\EM\n\- \\r\n\- \\ENQ\EOT\EOT\STX\NUL\ETX\DC2\EOT\171\SOH\FS\GS\n\- \\212\STX\n\- \\EOT\EOT\EOT\STX\SOH\DC2\EOT\180\SOH\EOT\RS\SUB\197\STX\n\- \recovery_window is an optional argument specifying the address lookahead\n\- \when restoring a wallet seed. The recovery window applies to each\n\- \individual branch of the BIP44 derivation paths. Supplying a recovery\n\- \window of zero indicates that no addresses should be recovered, such after\n\- \the first initialization of the wallet.\n\- \\n\- \\SI\n\- \\ENQ\EOT\EOT\STX\SOH\EOT\DC2\ACK\180\SOH\EOT\171\SOH\RS\n\- \\r\n\- \\ENQ\EOT\EOT\STX\SOH\ENQ\DC2\EOT\180\SOH\EOT\t\n\- \\r\n\- \\ENQ\EOT\EOT\STX\SOH\SOH\DC2\EOT\180\SOH\n\- \\EM\n\- \\r\n\- \\ENQ\EOT\EOT\STX\SOH\ETX\DC2\EOT\180\SOH\FS\GS\n\- \\203\ETX\n\- \\EOT\EOT\EOT\STX\STX\DC2\EOT\190\SOH\EOT+\SUB\188\ETX\n\- \channel_backups is an optional argument that allows clients to recover the\n\- \settled funds within a set of channels. This should be populated if the\n\- \user was unable to close out all channels and sweep funds before partial or\n\- \total data loss occurred. If specified, then after on-chain recovery of\n\- \funds, lnd begin to carry out the data loss recovery protocol in order to\n\- \recover the funds in each channel from a remote force closed transaction.\n\- \\n\- \\SI\n\- \\ENQ\EOT\EOT\STX\STX\EOT\DC2\ACK\190\SOH\EOT\180\SOH\RS\n\- \\r\n\- \\ENQ\EOT\EOT\STX\STX\ACK\DC2\EOT\190\SOH\EOT\SYN\n\- \\r\n\- \\ENQ\EOT\EOT\STX\STX\SOH\DC2\EOT\190\SOH\ETB&\n\- \\r\n\- \\ENQ\EOT\EOT\STX\STX\ETX\DC2\EOT\190\SOH)*\n\- \\132\SOH\n\- \\EOT\EOT\EOT\STX\ETX\DC2\EOT\196\SOH\EOT\FS\SUBv\n\- \stateless_init is an optional argument instructing the daemon NOT to create\n\- \any *.macaroon files in its file system.\n\- \\n\- \\SI\n\- \\ENQ\EOT\EOT\STX\ETX\EOT\DC2\ACK\196\SOH\EOT\190\SOH+\n\- \\r\n\- \\ENQ\EOT\EOT\STX\ETX\ENQ\DC2\EOT\196\SOH\EOT\b\n\- \\r\n\- \\ENQ\EOT\EOT\STX\ETX\SOH\DC2\EOT\196\SOH\t\ETB\n\- \\r\n\- \\ENQ\EOT\EOT\STX\ETX\ETX\DC2\EOT\196\SOH\SUB\ESC\n\- \\f\n\- \\STX\EOT\ENQ\DC2\ACK\198\SOH\NUL\199\SOH\SOH\n\- \\v\n\- \\ETX\EOT\ENQ\SOH\DC2\EOT\198\SOH\b\FS\n\- \\f\n\- \\STX\EOT\ACK\DC2\ACK\201\SOH\NUL\228\SOH\SOH\n\- \\v\n\- \\ETX\EOT\ACK\SOH\DC2\EOT\201\SOH\b\GS\n\- \\154\SOH\n\- \\EOT\EOT\ACK\STX\NUL\DC2\EOT\206\SOH\EOT\US\SUB\139\SOH\n\- \current_password should be the current valid passphrase used to unlock the\n\- \daemon. When using REST, this field must be encoded as base64.\n\- \\n\- \\SI\n\- \\ENQ\EOT\ACK\STX\NUL\EOT\DC2\ACK\206\SOH\EOT\201\SOH\US\n\- \\r\n\- \\ENQ\EOT\ACK\STX\NUL\ENQ\DC2\EOT\206\SOH\EOT\t\n\- \\r\n\- \\ENQ\EOT\ACK\STX\NUL\SOH\DC2\EOT\206\SOH\n\- \\SUB\n\- \\r\n\- \\ENQ\EOT\ACK\STX\NUL\ETX\DC2\EOT\206\SOH\GS\RS\n\- \\155\SOH\n\- \\EOT\EOT\ACK\STX\SOH\DC2\EOT\212\SOH\EOT\ESC\SUB\140\SOH\n\- \new_password should be the new passphrase that will be needed to unlock the\n\- \daemon. When using REST, this field must be encoded as base64.\n\- \\n\- \\SI\n\- \\ENQ\EOT\ACK\STX\SOH\EOT\DC2\ACK\212\SOH\EOT\206\SOH\US\n\- \\r\n\- \\ENQ\EOT\ACK\STX\SOH\ENQ\DC2\EOT\212\SOH\EOT\t\n\- \\r\n\- \\ENQ\EOT\ACK\STX\SOH\SOH\DC2\EOT\212\SOH\n\- \\SYN\n\- \\r\n\- \\ENQ\EOT\ACK\STX\SOH\ETX\DC2\EOT\212\SOH\EM\SUB\n\- \\171\STX\n\- \\EOT\EOT\ACK\STX\STX\DC2\EOT\220\SOH\EOT\FS\SUB\156\STX\n\- \stateless_init is an optional argument instructing the daemon NOT to create\n\- \any *.macaroon files in its filesystem. If this parameter is set, then the\n\- \admin macaroon returned in the response MUST be stored by the caller of the\n\- \RPC as otherwise all access to the daemon will be lost!\n\- \\n\- \\SI\n\- \\ENQ\EOT\ACK\STX\STX\EOT\DC2\ACK\220\SOH\EOT\212\SOH\ESC\n\- \\r\n\- \\ENQ\EOT\ACK\STX\STX\ENQ\DC2\EOT\220\SOH\EOT\b\n\- \\r\n\- \\ENQ\EOT\ACK\STX\STX\SOH\DC2\EOT\220\SOH\t\ETB\n\- \\r\n\- \\ENQ\EOT\ACK\STX\STX\ETX\DC2\EOT\220\SOH\SUB\ESC\n\- \\192\SOH\n\- \\EOT\EOT\ACK\STX\ETX\DC2\EOT\227\SOH\EOT#\SUB\177\SOH\n\- \new_macaroon_root_key is an optional argument instructing the daemon to\n\- \rotate the macaroon root key when set to true. This will invalidate all\n\- \previously generated macaroons.\n\- \\n\- \\SI\n\- \\ENQ\EOT\ACK\STX\ETX\EOT\DC2\ACK\227\SOH\EOT\220\SOH\FS\n\- \\r\n\- \\ENQ\EOT\ACK\STX\ETX\ENQ\DC2\EOT\227\SOH\EOT\b\n\- \\r\n\- \\ENQ\EOT\ACK\STX\ETX\SOH\DC2\EOT\227\SOH\t\RS\n\- \\r\n\- \\ENQ\EOT\ACK\STX\ETX\ETX\DC2\EOT\227\SOH!\"\n\- \\f\n\- \\STX\EOT\a\DC2\ACK\229\SOH\NUL\239\SOH\SOH\n\- \\v\n\- \\ETX\EOT\a\SOH\DC2\EOT\229\SOH\b\RS\n\- \\183\ETX\n\- \\EOT\EOT\a\STX\NUL\DC2\EOT\238\SOH\EOT\GS\SUB\168\ETX\n\- \The binary serialized admin macaroon that can be used to access the daemon\n\- \after rotating the macaroon root key. If both the stateless_init and\n\- \new_macaroon_root_key parameter were set to true, this is the ONLY copy of\n\- \the macaroon that was created from the new root key and MUST be stored\n\- \safely by the caller. Otherwise a copy of this macaroon is also persisted on\n\- \disk by the daemon, together with other macaroon files.\n\- \\n\- \\SI\n\- \\ENQ\EOT\a\STX\NUL\EOT\DC2\ACK\238\SOH\EOT\229\SOH \n\- \\r\n\- \\ENQ\EOT\a\STX\NUL\ENQ\DC2\EOT\238\SOH\EOT\t\n\- \\r\n\- \\ENQ\EOT\a\STX\NUL\SOH\DC2\EOT\238\SOH\n\- \\CAN\n\- \\r\n\- \\ENQ\EOT\a\STX\NUL\ETX\DC2\EOT\238\SOH\ESC\FSb\ACKproto3"
@@ -1,118 +0,0 @@-{- This file was auto-generated from wallet_unlocker_grpc.proto by the proto-lens-protoc program. -}-{-# LANGUAGE ScopedTypeVariables, DataKinds, TypeFamilies, UndecidableInstances, GeneralizedNewtypeDeriving, MultiParamTypeClasses, FlexibleContexts, FlexibleInstances, PatternSynonyms, MagicHash, NoImplicitPrelude, DataKinds, BangPatterns, TypeApplications, OverloadedStrings, DerivingStrategies#-}-{-# OPTIONS_GHC -Wno-unused-imports#-}-{-# OPTIONS_GHC -Wno-duplicate-exports#-}-{-# OPTIONS_GHC -Wno-dodgy-exports#-}-module Proto.WalletUnlockerGrpc_Fields where-import qualified Data.ProtoLens.Runtime.Prelude as Prelude-import qualified Data.ProtoLens.Runtime.Data.Int as Data.Int-import qualified Data.ProtoLens.Runtime.Data.Monoid as Data.Monoid-import qualified Data.ProtoLens.Runtime.Data.Word as Data.Word-import qualified Data.ProtoLens.Runtime.Data.ProtoLens as Data.ProtoLens-import qualified Data.ProtoLens.Runtime.Data.ProtoLens.Encoding.Bytes as Data.ProtoLens.Encoding.Bytes-import qualified Data.ProtoLens.Runtime.Data.ProtoLens.Encoding.Growing as Data.ProtoLens.Encoding.Growing-import qualified Data.ProtoLens.Runtime.Data.ProtoLens.Encoding.Parser.Unsafe as Data.ProtoLens.Encoding.Parser.Unsafe-import qualified Data.ProtoLens.Runtime.Data.ProtoLens.Encoding.Wire as Data.ProtoLens.Encoding.Wire-import qualified Data.ProtoLens.Runtime.Data.ProtoLens.Field as Data.ProtoLens.Field-import qualified Data.ProtoLens.Runtime.Data.ProtoLens.Message.Enum as Data.ProtoLens.Message.Enum-import qualified Data.ProtoLens.Runtime.Data.ProtoLens.Service.Types as Data.ProtoLens.Service.Types-import qualified Data.ProtoLens.Runtime.Lens.Family2 as Lens.Family2-import qualified Data.ProtoLens.Runtime.Lens.Family2.Unchecked as Lens.Family2.Unchecked-import qualified Data.ProtoLens.Runtime.Data.Text as Data.Text-import qualified Data.ProtoLens.Runtime.Data.Map as Data.Map-import qualified Data.ProtoLens.Runtime.Data.ByteString as Data.ByteString-import qualified Data.ProtoLens.Runtime.Data.ByteString.Char8 as Data.ByteString.Char8-import qualified Data.ProtoLens.Runtime.Data.Text.Encoding as Data.Text.Encoding-import qualified Data.ProtoLens.Runtime.Data.Vector as Data.Vector-import qualified Data.ProtoLens.Runtime.Data.Vector.Generic as Data.Vector.Generic-import qualified Data.ProtoLens.Runtime.Data.Vector.Unboxed as Data.Vector.Unboxed-import qualified Data.ProtoLens.Runtime.Text.Read as Text.Read-import qualified Proto.LndGrpc-adminMacaroon ::- forall f s a.- (Prelude.Functor f,- Data.ProtoLens.Field.HasField s "adminMacaroon" a) =>- Lens.Family2.LensLike' f s a-adminMacaroon = Data.ProtoLens.Field.field @"adminMacaroon"-aezeedPassphrase ::- forall f s a.- (Prelude.Functor f,- Data.ProtoLens.Field.HasField s "aezeedPassphrase" a) =>- Lens.Family2.LensLike' f s a-aezeedPassphrase = Data.ProtoLens.Field.field @"aezeedPassphrase"-channelBackups ::- forall f s a.- (Prelude.Functor f,- Data.ProtoLens.Field.HasField s "channelBackups" a) =>- Lens.Family2.LensLike' f s a-channelBackups = Data.ProtoLens.Field.field @"channelBackups"-cipherSeedMnemonic ::- forall f s a.- (Prelude.Functor f,- Data.ProtoLens.Field.HasField s "cipherSeedMnemonic" a) =>- Lens.Family2.LensLike' f s a-cipherSeedMnemonic- = Data.ProtoLens.Field.field @"cipherSeedMnemonic"-currentPassword ::- forall f s a.- (Prelude.Functor f,- Data.ProtoLens.Field.HasField s "currentPassword" a) =>- Lens.Family2.LensLike' f s a-currentPassword = Data.ProtoLens.Field.field @"currentPassword"-encipheredSeed ::- forall f s a.- (Prelude.Functor f,- Data.ProtoLens.Field.HasField s "encipheredSeed" a) =>- Lens.Family2.LensLike' f s a-encipheredSeed = Data.ProtoLens.Field.field @"encipheredSeed"-maybe'channelBackups ::- forall f s a.- (Prelude.Functor f,- Data.ProtoLens.Field.HasField s "maybe'channelBackups" a) =>- Lens.Family2.LensLike' f s a-maybe'channelBackups- = Data.ProtoLens.Field.field @"maybe'channelBackups"-newMacaroonRootKey ::- forall f s a.- (Prelude.Functor f,- Data.ProtoLens.Field.HasField s "newMacaroonRootKey" a) =>- Lens.Family2.LensLike' f s a-newMacaroonRootKey- = Data.ProtoLens.Field.field @"newMacaroonRootKey"-newPassword ::- forall f s a.- (Prelude.Functor f,- Data.ProtoLens.Field.HasField s "newPassword" a) =>- Lens.Family2.LensLike' f s a-newPassword = Data.ProtoLens.Field.field @"newPassword"-recoveryWindow ::- forall f s a.- (Prelude.Functor f,- Data.ProtoLens.Field.HasField s "recoveryWindow" a) =>- Lens.Family2.LensLike' f s a-recoveryWindow = Data.ProtoLens.Field.field @"recoveryWindow"-seedEntropy ::- forall f s a.- (Prelude.Functor f,- Data.ProtoLens.Field.HasField s "seedEntropy" a) =>- Lens.Family2.LensLike' f s a-seedEntropy = Data.ProtoLens.Field.field @"seedEntropy"-statelessInit ::- forall f s a.- (Prelude.Functor f,- Data.ProtoLens.Field.HasField s "statelessInit" a) =>- Lens.Family2.LensLike' f s a-statelessInit = Data.ProtoLens.Field.field @"statelessInit"-vec'cipherSeedMnemonic ::- forall f s a.- (Prelude.Functor f,- Data.ProtoLens.Field.HasField s "vec'cipherSeedMnemonic" a) =>- Lens.Family2.LensLike' f s a-vec'cipherSeedMnemonic- = Data.ProtoLens.Field.field @"vec'cipherSeedMnemonic"-walletPassword ::- forall f s a.- (Prelude.Functor f,- Data.ProtoLens.Field.HasField s "walletPassword" a) =>- Lens.Family2.LensLike' f s a-walletPassword = Data.ProtoLens.Field.field @"walletPassword"
@@ -0,0 +1,9990 @@+{- This file was auto-generated from walletrpc/walletkit.proto by the proto-lens-protoc program. -}+{-# LANGUAGE ScopedTypeVariables, DataKinds, TypeFamilies, UndecidableInstances, GeneralizedNewtypeDeriving, MultiParamTypeClasses, FlexibleContexts, FlexibleInstances, PatternSynonyms, MagicHash, NoImplicitPrelude, BangPatterns, TypeApplications, OverloadedStrings, DerivingStrategies, DeriveGeneric#-}+{-# OPTIONS_GHC -Wno-unused-imports#-}+{-# OPTIONS_GHC -Wno-duplicate-exports#-}+{-# OPTIONS_GHC -Wno-dodgy-exports#-}+module Proto.Walletrpc.Walletkit (+ WalletKit(..), Account(), AddrRequest(), AddrResponse(),+ AddressType(..), AddressType(), AddressType'UnrecognizedValue,+ BumpFeeRequest(), BumpFeeResponse(), EstimateFeeRequest(),+ EstimateFeeResponse(), FinalizePsbtRequest(),+ FinalizePsbtResponse(), FundPsbtRequest(),+ FundPsbtRequest'Template(..), FundPsbtRequest'Fees(..),+ _FundPsbtRequest'Psbt, _FundPsbtRequest'Raw,+ _FundPsbtRequest'TargetConf, _FundPsbtRequest'SatPerVbyte,+ FundPsbtResponse(), ImportAccountRequest(),+ ImportAccountResponse(), ImportPublicKeyRequest(),+ ImportPublicKeyResponse(), KeyReq(), LabelTransactionRequest(),+ LabelTransactionResponse(), LeaseOutputRequest(),+ LeaseOutputResponse(), ListAccountsRequest(),+ ListAccountsResponse(), ListLeasesRequest(), ListLeasesResponse(),+ ListSweepsRequest(), ListSweepsResponse(),+ ListSweepsResponse'Sweeps(..),+ _ListSweepsResponse'TransactionDetails,+ _ListSweepsResponse'TransactionIds,+ ListSweepsResponse'TransactionIDs(), ListUnspentRequest(),+ ListUnspentResponse(), PendingSweep(), PendingSweepsRequest(),+ PendingSweepsResponse(), PublishResponse(), ReleaseOutputRequest(),+ ReleaseOutputResponse(), SendOutputsRequest(),+ SendOutputsResponse(), Transaction(), TxTemplate(),+ TxTemplate'OutputsEntry(), UtxoLease(), WitnessType(..),+ WitnessType(), WitnessType'UnrecognizedValue+ ) where+import qualified Data.ProtoLens.Runtime.Control.DeepSeq as Control.DeepSeq+import qualified Data.ProtoLens.Runtime.Data.ProtoLens.Prism as Data.ProtoLens.Prism+import qualified Text.PrettyPrint.GenericPretty.Instance+import qualified GHC.Generics+import qualified Text.PrettyPrint.GenericPretty+import qualified Data.ProtoLens.Runtime.Prelude as Prelude+import qualified Data.ProtoLens.Runtime.Data.Int as Data.Int+import qualified Data.ProtoLens.Runtime.Data.Monoid as Data.Monoid+import qualified Data.ProtoLens.Runtime.Data.Word as Data.Word+import qualified Data.ProtoLens.Runtime.Data.ProtoLens as Data.ProtoLens+import qualified Data.ProtoLens.Runtime.Data.ProtoLens.Encoding.Bytes as Data.ProtoLens.Encoding.Bytes+import qualified Data.ProtoLens.Runtime.Data.ProtoLens.Encoding.Growing as Data.ProtoLens.Encoding.Growing+import qualified Data.ProtoLens.Runtime.Data.ProtoLens.Encoding.Parser.Unsafe as Data.ProtoLens.Encoding.Parser.Unsafe+import qualified Data.ProtoLens.Runtime.Data.ProtoLens.Encoding.Wire as Data.ProtoLens.Encoding.Wire+import qualified Data.ProtoLens.Runtime.Data.ProtoLens.Field as Data.ProtoLens.Field+import qualified Data.ProtoLens.Runtime.Data.ProtoLens.Message.Enum as Data.ProtoLens.Message.Enum+import qualified Data.ProtoLens.Runtime.Data.ProtoLens.Service.Types as Data.ProtoLens.Service.Types+import qualified Data.ProtoLens.Runtime.Lens.Family2 as Lens.Family2+import qualified Data.ProtoLens.Runtime.Lens.Family2.Unchecked as Lens.Family2.Unchecked+import qualified Data.ProtoLens.Runtime.Data.Text as Data.Text+import qualified Data.ProtoLens.Runtime.Data.Map as Data.Map+import qualified Data.ProtoLens.Runtime.Data.ByteString as Data.ByteString+import qualified Data.ProtoLens.Runtime.Data.ByteString.Char8 as Data.ByteString.Char8+import qualified Data.ProtoLens.Runtime.Data.Text.Encoding as Data.Text.Encoding+import qualified Data.ProtoLens.Runtime.Data.Vector as Data.Vector+import qualified Data.ProtoLens.Runtime.Data.Vector.Generic as Data.Vector.Generic+import qualified Data.ProtoLens.Runtime.Data.Vector.Unboxed as Data.Vector.Unboxed+import qualified Data.ProtoLens.Runtime.Text.Read as Text.Read+import qualified Proto.Lightning+import qualified Proto.Lnrpc.Ln0+import qualified Proto.Signrpc.Signer+{- | Fields :+ + * 'Proto.Walletrpc.Walletkit_Fields.name' @:: Lens' Account Data.Text.Text@+ * 'Proto.Walletrpc.Walletkit_Fields.addressType' @:: Lens' Account AddressType@+ * 'Proto.Walletrpc.Walletkit_Fields.extendedPublicKey' @:: Lens' Account Data.Text.Text@+ * 'Proto.Walletrpc.Walletkit_Fields.masterKeyFingerprint' @:: Lens' Account Data.ByteString.ByteString@+ * 'Proto.Walletrpc.Walletkit_Fields.derivationPath' @:: Lens' Account Data.Text.Text@+ * 'Proto.Walletrpc.Walletkit_Fields.externalKeyCount' @:: Lens' Account Data.Word.Word32@+ * 'Proto.Walletrpc.Walletkit_Fields.internalKeyCount' @:: Lens' Account Data.Word.Word32@+ * 'Proto.Walletrpc.Walletkit_Fields.watchOnly' @:: Lens' Account Prelude.Bool@ -}+data Account+ = Account'_constructor {_Account'name :: !Data.Text.Text,+ _Account'addressType :: !AddressType,+ _Account'extendedPublicKey :: !Data.Text.Text,+ _Account'masterKeyFingerprint :: !Data.ByteString.ByteString,+ _Account'derivationPath :: !Data.Text.Text,+ _Account'externalKeyCount :: !Data.Word.Word32,+ _Account'internalKeyCount :: !Data.Word.Word32,+ _Account'watchOnly :: !Prelude.Bool,+ _Account'_unknownFields :: !Data.ProtoLens.FieldSet}+ deriving stock (Prelude.Eq, Prelude.Ord, GHC.Generics.Generic)+instance Prelude.Show Account where+ showsPrec _ __x __s+ = Prelude.showChar+ '{'+ (Prelude.showString+ (Data.ProtoLens.showMessageShort __x) (Prelude.showChar '}' __s))+instance Text.PrettyPrint.GenericPretty.Out Account+instance Data.ProtoLens.Field.HasField Account "name" Data.Text.Text where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _Account'name (\ x__ y__ -> x__ {_Account'name = y__}))+ Prelude.id+instance Data.ProtoLens.Field.HasField Account "addressType" AddressType where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _Account'addressType+ (\ x__ y__ -> x__ {_Account'addressType = y__}))+ Prelude.id+instance Data.ProtoLens.Field.HasField Account "extendedPublicKey" Data.Text.Text where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _Account'extendedPublicKey+ (\ x__ y__ -> x__ {_Account'extendedPublicKey = y__}))+ Prelude.id+instance Data.ProtoLens.Field.HasField Account "masterKeyFingerprint" Data.ByteString.ByteString where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _Account'masterKeyFingerprint+ (\ x__ y__ -> x__ {_Account'masterKeyFingerprint = y__}))+ Prelude.id+instance Data.ProtoLens.Field.HasField Account "derivationPath" Data.Text.Text where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _Account'derivationPath+ (\ x__ y__ -> x__ {_Account'derivationPath = y__}))+ Prelude.id+instance Data.ProtoLens.Field.HasField Account "externalKeyCount" Data.Word.Word32 where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _Account'externalKeyCount+ (\ x__ y__ -> x__ {_Account'externalKeyCount = y__}))+ Prelude.id+instance Data.ProtoLens.Field.HasField Account "internalKeyCount" Data.Word.Word32 where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _Account'internalKeyCount+ (\ x__ y__ -> x__ {_Account'internalKeyCount = y__}))+ Prelude.id+instance Data.ProtoLens.Field.HasField Account "watchOnly" Prelude.Bool where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _Account'watchOnly (\ x__ y__ -> x__ {_Account'watchOnly = y__}))+ Prelude.id+instance Data.ProtoLens.Message Account where+ messageName _ = Data.Text.pack "walletrpc.Account"+ packedMessageDescriptor _+ = "\n\+ \\aAccount\DC2\DC2\n\+ \\EOTname\CAN\SOH \SOH(\tR\EOTname\DC29\n\+ \\faddress_type\CAN\STX \SOH(\SO2\SYN.walletrpc.AddressTypeR\vaddressType\DC2.\n\+ \\DC3extended_public_key\CAN\ETX \SOH(\tR\DC1extendedPublicKey\DC24\n\+ \\SYNmaster_key_fingerprint\CAN\EOT \SOH(\fR\DC4masterKeyFingerprint\DC2'\n\+ \\SIderivation_path\CAN\ENQ \SOH(\tR\SOderivationPath\DC2,\n\+ \\DC2external_key_count\CAN\ACK \SOH(\rR\DLEexternalKeyCount\DC2,\n\+ \\DC2internal_key_count\CAN\a \SOH(\rR\DLEinternalKeyCount\DC2\GS\n\+ \\n\+ \watch_only\CAN\b \SOH(\bR\twatchOnly"+ packedFileDescriptor _ = packedFileDescriptor+ fieldsByTag+ = let+ name__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "name"+ (Data.ProtoLens.ScalarField Data.ProtoLens.StringField ::+ Data.ProtoLens.FieldTypeDescriptor Data.Text.Text)+ (Data.ProtoLens.PlainField+ Data.ProtoLens.Optional (Data.ProtoLens.Field.field @"name")) ::+ Data.ProtoLens.FieldDescriptor Account+ addressType__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "address_type"+ (Data.ProtoLens.ScalarField Data.ProtoLens.EnumField ::+ Data.ProtoLens.FieldTypeDescriptor AddressType)+ (Data.ProtoLens.PlainField+ Data.ProtoLens.Optional+ (Data.ProtoLens.Field.field @"addressType")) ::+ Data.ProtoLens.FieldDescriptor Account+ extendedPublicKey__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "extended_public_key"+ (Data.ProtoLens.ScalarField Data.ProtoLens.StringField ::+ Data.ProtoLens.FieldTypeDescriptor Data.Text.Text)+ (Data.ProtoLens.PlainField+ Data.ProtoLens.Optional+ (Data.ProtoLens.Field.field @"extendedPublicKey")) ::+ Data.ProtoLens.FieldDescriptor Account+ masterKeyFingerprint__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "master_key_fingerprint"+ (Data.ProtoLens.ScalarField Data.ProtoLens.BytesField ::+ Data.ProtoLens.FieldTypeDescriptor Data.ByteString.ByteString)+ (Data.ProtoLens.PlainField+ Data.ProtoLens.Optional+ (Data.ProtoLens.Field.field @"masterKeyFingerprint")) ::+ Data.ProtoLens.FieldDescriptor Account+ derivationPath__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "derivation_path"+ (Data.ProtoLens.ScalarField Data.ProtoLens.StringField ::+ Data.ProtoLens.FieldTypeDescriptor Data.Text.Text)+ (Data.ProtoLens.PlainField+ Data.ProtoLens.Optional+ (Data.ProtoLens.Field.field @"derivationPath")) ::+ Data.ProtoLens.FieldDescriptor Account+ externalKeyCount__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "external_key_count"+ (Data.ProtoLens.ScalarField Data.ProtoLens.UInt32Field ::+ Data.ProtoLens.FieldTypeDescriptor Data.Word.Word32)+ (Data.ProtoLens.PlainField+ Data.ProtoLens.Optional+ (Data.ProtoLens.Field.field @"externalKeyCount")) ::+ Data.ProtoLens.FieldDescriptor Account+ internalKeyCount__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "internal_key_count"+ (Data.ProtoLens.ScalarField Data.ProtoLens.UInt32Field ::+ Data.ProtoLens.FieldTypeDescriptor Data.Word.Word32)+ (Data.ProtoLens.PlainField+ Data.ProtoLens.Optional+ (Data.ProtoLens.Field.field @"internalKeyCount")) ::+ Data.ProtoLens.FieldDescriptor Account+ watchOnly__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "watch_only"+ (Data.ProtoLens.ScalarField Data.ProtoLens.BoolField ::+ Data.ProtoLens.FieldTypeDescriptor Prelude.Bool)+ (Data.ProtoLens.PlainField+ Data.ProtoLens.Optional+ (Data.ProtoLens.Field.field @"watchOnly")) ::+ Data.ProtoLens.FieldDescriptor Account+ in+ Data.Map.fromList+ [(Data.ProtoLens.Tag 1, name__field_descriptor),+ (Data.ProtoLens.Tag 2, addressType__field_descriptor),+ (Data.ProtoLens.Tag 3, extendedPublicKey__field_descriptor),+ (Data.ProtoLens.Tag 4, masterKeyFingerprint__field_descriptor),+ (Data.ProtoLens.Tag 5, derivationPath__field_descriptor),+ (Data.ProtoLens.Tag 6, externalKeyCount__field_descriptor),+ (Data.ProtoLens.Tag 7, internalKeyCount__field_descriptor),+ (Data.ProtoLens.Tag 8, watchOnly__field_descriptor)]+ unknownFields+ = Lens.Family2.Unchecked.lens+ _Account'_unknownFields+ (\ x__ y__ -> x__ {_Account'_unknownFields = y__})+ defMessage+ = Account'_constructor+ {_Account'name = Data.ProtoLens.fieldDefault,+ _Account'addressType = Data.ProtoLens.fieldDefault,+ _Account'extendedPublicKey = Data.ProtoLens.fieldDefault,+ _Account'masterKeyFingerprint = Data.ProtoLens.fieldDefault,+ _Account'derivationPath = Data.ProtoLens.fieldDefault,+ _Account'externalKeyCount = Data.ProtoLens.fieldDefault,+ _Account'internalKeyCount = Data.ProtoLens.fieldDefault,+ _Account'watchOnly = Data.ProtoLens.fieldDefault,+ _Account'_unknownFields = []}+ parseMessage+ = let+ loop :: Account -> Data.ProtoLens.Encoding.Bytes.Parser Account+ loop x+ = do end <- Data.ProtoLens.Encoding.Bytes.atEnd+ if end then+ do (let missing = []+ in+ if Prelude.null missing then+ Prelude.return ()+ else+ Prelude.fail+ ((Prelude.++)+ "Missing required fields: "+ (Prelude.show (missing :: [Prelude.String]))))+ Prelude.return+ (Lens.Family2.over+ Data.ProtoLens.unknownFields (\ !t -> Prelude.reverse t) x)+ else+ do tag <- Data.ProtoLens.Encoding.Bytes.getVarInt+ case tag of+ 10+ -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (do value <- do len <- Data.ProtoLens.Encoding.Bytes.getVarInt+ Data.ProtoLens.Encoding.Bytes.getBytes+ (Prelude.fromIntegral len)+ Data.ProtoLens.Encoding.Bytes.runEither+ (case Data.Text.Encoding.decodeUtf8' value of+ (Prelude.Left err)+ -> Prelude.Left (Prelude.show err)+ (Prelude.Right r) -> Prelude.Right r))+ "name"+ loop (Lens.Family2.set (Data.ProtoLens.Field.field @"name") y x)+ 16+ -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (Prelude.fmap+ Prelude.toEnum+ (Prelude.fmap+ Prelude.fromIntegral+ Data.ProtoLens.Encoding.Bytes.getVarInt))+ "address_type"+ loop+ (Lens.Family2.set (Data.ProtoLens.Field.field @"addressType") y x)+ 26+ -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (do value <- do len <- Data.ProtoLens.Encoding.Bytes.getVarInt+ Data.ProtoLens.Encoding.Bytes.getBytes+ (Prelude.fromIntegral len)+ Data.ProtoLens.Encoding.Bytes.runEither+ (case Data.Text.Encoding.decodeUtf8' value of+ (Prelude.Left err)+ -> Prelude.Left (Prelude.show err)+ (Prelude.Right r) -> Prelude.Right r))+ "extended_public_key"+ loop+ (Lens.Family2.set+ (Data.ProtoLens.Field.field @"extendedPublicKey") y x)+ 34+ -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (do len <- Data.ProtoLens.Encoding.Bytes.getVarInt+ Data.ProtoLens.Encoding.Bytes.getBytes+ (Prelude.fromIntegral len))+ "master_key_fingerprint"+ loop+ (Lens.Family2.set+ (Data.ProtoLens.Field.field @"masterKeyFingerprint") y x)+ 42+ -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (do value <- do len <- Data.ProtoLens.Encoding.Bytes.getVarInt+ Data.ProtoLens.Encoding.Bytes.getBytes+ (Prelude.fromIntegral len)+ Data.ProtoLens.Encoding.Bytes.runEither+ (case Data.Text.Encoding.decodeUtf8' value of+ (Prelude.Left err)+ -> Prelude.Left (Prelude.show err)+ (Prelude.Right r) -> Prelude.Right r))+ "derivation_path"+ loop+ (Lens.Family2.set+ (Data.ProtoLens.Field.field @"derivationPath") y x)+ 48+ -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (Prelude.fmap+ Prelude.fromIntegral+ Data.ProtoLens.Encoding.Bytes.getVarInt)+ "external_key_count"+ loop+ (Lens.Family2.set+ (Data.ProtoLens.Field.field @"externalKeyCount") y x)+ 56+ -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (Prelude.fmap+ Prelude.fromIntegral+ Data.ProtoLens.Encoding.Bytes.getVarInt)+ "internal_key_count"+ loop+ (Lens.Family2.set+ (Data.ProtoLens.Field.field @"internalKeyCount") y x)+ 64+ -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (Prelude.fmap+ ((Prelude./=) 0) Data.ProtoLens.Encoding.Bytes.getVarInt)+ "watch_only"+ loop+ (Lens.Family2.set (Data.ProtoLens.Field.field @"watchOnly") y x)+ wire+ -> do !y <- Data.ProtoLens.Encoding.Wire.parseTaggedValueFromWire+ wire+ loop+ (Lens.Family2.over+ Data.ProtoLens.unknownFields (\ !t -> (:) y t) x)+ in+ (Data.ProtoLens.Encoding.Bytes.<?>)+ (do loop Data.ProtoLens.defMessage) "Account"+ buildMessage+ = \ _x+ -> (Data.Monoid.<>)+ (let _v = Lens.Family2.view (Data.ProtoLens.Field.field @"name") _x+ in+ if (Prelude.==) _v Data.ProtoLens.fieldDefault then+ Data.Monoid.mempty+ else+ (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 10)+ ((Prelude..)+ (\ bs+ -> (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt+ (Prelude.fromIntegral (Data.ByteString.length bs)))+ (Data.ProtoLens.Encoding.Bytes.putBytes bs))+ Data.Text.Encoding.encodeUtf8 _v))+ ((Data.Monoid.<>)+ (let+ _v+ = Lens.Family2.view (Data.ProtoLens.Field.field @"addressType") _x+ in+ if (Prelude.==) _v Data.ProtoLens.fieldDefault then+ Data.Monoid.mempty+ else+ (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 16)+ ((Prelude..)+ ((Prelude..)+ Data.ProtoLens.Encoding.Bytes.putVarInt Prelude.fromIntegral)+ Prelude.fromEnum _v))+ ((Data.Monoid.<>)+ (let+ _v+ = Lens.Family2.view+ (Data.ProtoLens.Field.field @"extendedPublicKey") _x+ in+ if (Prelude.==) _v Data.ProtoLens.fieldDefault then+ Data.Monoid.mempty+ else+ (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 26)+ ((Prelude..)+ (\ bs+ -> (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt+ (Prelude.fromIntegral (Data.ByteString.length bs)))+ (Data.ProtoLens.Encoding.Bytes.putBytes bs))+ Data.Text.Encoding.encodeUtf8 _v))+ ((Data.Monoid.<>)+ (let+ _v+ = Lens.Family2.view+ (Data.ProtoLens.Field.field @"masterKeyFingerprint") _x+ in+ if (Prelude.==) _v Data.ProtoLens.fieldDefault then+ Data.Monoid.mempty+ else+ (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 34)+ ((\ bs+ -> (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt+ (Prelude.fromIntegral (Data.ByteString.length bs)))+ (Data.ProtoLens.Encoding.Bytes.putBytes bs))+ _v))+ ((Data.Monoid.<>)+ (let+ _v+ = Lens.Family2.view+ (Data.ProtoLens.Field.field @"derivationPath") _x+ in+ if (Prelude.==) _v Data.ProtoLens.fieldDefault then+ Data.Monoid.mempty+ else+ (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 42)+ ((Prelude..)+ (\ bs+ -> (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt+ (Prelude.fromIntegral (Data.ByteString.length bs)))+ (Data.ProtoLens.Encoding.Bytes.putBytes bs))+ Data.Text.Encoding.encodeUtf8 _v))+ ((Data.Monoid.<>)+ (let+ _v+ = Lens.Family2.view+ (Data.ProtoLens.Field.field @"externalKeyCount") _x+ in+ if (Prelude.==) _v Data.ProtoLens.fieldDefault then+ Data.Monoid.mempty+ else+ (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 48)+ ((Prelude..)+ Data.ProtoLens.Encoding.Bytes.putVarInt Prelude.fromIntegral+ _v))+ ((Data.Monoid.<>)+ (let+ _v+ = Lens.Family2.view+ (Data.ProtoLens.Field.field @"internalKeyCount") _x+ in+ if (Prelude.==) _v Data.ProtoLens.fieldDefault then+ Data.Monoid.mempty+ else+ (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 56)+ ((Prelude..)+ Data.ProtoLens.Encoding.Bytes.putVarInt+ Prelude.fromIntegral _v))+ ((Data.Monoid.<>)+ (let+ _v+ = Lens.Family2.view+ (Data.ProtoLens.Field.field @"watchOnly") _x+ in+ if (Prelude.==) _v Data.ProtoLens.fieldDefault then+ Data.Monoid.mempty+ else+ (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 64)+ ((Prelude..)+ Data.ProtoLens.Encoding.Bytes.putVarInt+ (\ b -> if b then 1 else 0) _v))+ (Data.ProtoLens.Encoding.Wire.buildFieldSet+ (Lens.Family2.view Data.ProtoLens.unknownFields _x)))))))))+instance Control.DeepSeq.NFData Account where+ rnf+ = \ x__+ -> Control.DeepSeq.deepseq+ (_Account'_unknownFields x__)+ (Control.DeepSeq.deepseq+ (_Account'name x__)+ (Control.DeepSeq.deepseq+ (_Account'addressType x__)+ (Control.DeepSeq.deepseq+ (_Account'extendedPublicKey x__)+ (Control.DeepSeq.deepseq+ (_Account'masterKeyFingerprint x__)+ (Control.DeepSeq.deepseq+ (_Account'derivationPath x__)+ (Control.DeepSeq.deepseq+ (_Account'externalKeyCount x__)+ (Control.DeepSeq.deepseq+ (_Account'internalKeyCount x__)+ (Control.DeepSeq.deepseq (_Account'watchOnly x__) ()))))))))+{- | Fields :+ + * 'Proto.Walletrpc.Walletkit_Fields.account' @:: Lens' AddrRequest Data.Text.Text@+ * 'Proto.Walletrpc.Walletkit_Fields.type'' @:: Lens' AddrRequest AddressType@+ * 'Proto.Walletrpc.Walletkit_Fields.change' @:: Lens' AddrRequest Prelude.Bool@ -}+data AddrRequest+ = AddrRequest'_constructor {_AddrRequest'account :: !Data.Text.Text,+ _AddrRequest'type' :: !AddressType,+ _AddrRequest'change :: !Prelude.Bool,+ _AddrRequest'_unknownFields :: !Data.ProtoLens.FieldSet}+ deriving stock (Prelude.Eq, Prelude.Ord, GHC.Generics.Generic)+instance Prelude.Show AddrRequest where+ showsPrec _ __x __s+ = Prelude.showChar+ '{'+ (Prelude.showString+ (Data.ProtoLens.showMessageShort __x) (Prelude.showChar '}' __s))+instance Text.PrettyPrint.GenericPretty.Out AddrRequest+instance Data.ProtoLens.Field.HasField AddrRequest "account" Data.Text.Text where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _AddrRequest'account+ (\ x__ y__ -> x__ {_AddrRequest'account = y__}))+ Prelude.id+instance Data.ProtoLens.Field.HasField AddrRequest "type'" AddressType where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _AddrRequest'type' (\ x__ y__ -> x__ {_AddrRequest'type' = y__}))+ Prelude.id+instance Data.ProtoLens.Field.HasField AddrRequest "change" Prelude.Bool where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _AddrRequest'change (\ x__ y__ -> x__ {_AddrRequest'change = y__}))+ Prelude.id+instance Data.ProtoLens.Message AddrRequest where+ messageName _ = Data.Text.pack "walletrpc.AddrRequest"+ packedMessageDescriptor _+ = "\n\+ \\vAddrRequest\DC2\CAN\n\+ \\aaccount\CAN\SOH \SOH(\tR\aaccount\DC2*\n\+ \\EOTtype\CAN\STX \SOH(\SO2\SYN.walletrpc.AddressTypeR\EOTtype\DC2\SYN\n\+ \\ACKchange\CAN\ETX \SOH(\bR\ACKchange"+ packedFileDescriptor _ = packedFileDescriptor+ fieldsByTag+ = let+ account__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "account"+ (Data.ProtoLens.ScalarField Data.ProtoLens.StringField ::+ Data.ProtoLens.FieldTypeDescriptor Data.Text.Text)+ (Data.ProtoLens.PlainField+ Data.ProtoLens.Optional (Data.ProtoLens.Field.field @"account")) ::+ Data.ProtoLens.FieldDescriptor AddrRequest+ type'__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "type"+ (Data.ProtoLens.ScalarField Data.ProtoLens.EnumField ::+ Data.ProtoLens.FieldTypeDescriptor AddressType)+ (Data.ProtoLens.PlainField+ Data.ProtoLens.Optional (Data.ProtoLens.Field.field @"type'")) ::+ Data.ProtoLens.FieldDescriptor AddrRequest+ change__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "change"+ (Data.ProtoLens.ScalarField Data.ProtoLens.BoolField ::+ Data.ProtoLens.FieldTypeDescriptor Prelude.Bool)+ (Data.ProtoLens.PlainField+ Data.ProtoLens.Optional (Data.ProtoLens.Field.field @"change")) ::+ Data.ProtoLens.FieldDescriptor AddrRequest+ in+ Data.Map.fromList+ [(Data.ProtoLens.Tag 1, account__field_descriptor),+ (Data.ProtoLens.Tag 2, type'__field_descriptor),+ (Data.ProtoLens.Tag 3, change__field_descriptor)]+ unknownFields+ = Lens.Family2.Unchecked.lens+ _AddrRequest'_unknownFields+ (\ x__ y__ -> x__ {_AddrRequest'_unknownFields = y__})+ defMessage+ = AddrRequest'_constructor+ {_AddrRequest'account = Data.ProtoLens.fieldDefault,+ _AddrRequest'type' = Data.ProtoLens.fieldDefault,+ _AddrRequest'change = Data.ProtoLens.fieldDefault,+ _AddrRequest'_unknownFields = []}+ parseMessage+ = let+ loop ::+ AddrRequest -> Data.ProtoLens.Encoding.Bytes.Parser AddrRequest+ loop x+ = do end <- Data.ProtoLens.Encoding.Bytes.atEnd+ if end then+ do (let missing = []+ in+ if Prelude.null missing then+ Prelude.return ()+ else+ Prelude.fail+ ((Prelude.++)+ "Missing required fields: "+ (Prelude.show (missing :: [Prelude.String]))))+ Prelude.return+ (Lens.Family2.over+ Data.ProtoLens.unknownFields (\ !t -> Prelude.reverse t) x)+ else+ do tag <- Data.ProtoLens.Encoding.Bytes.getVarInt+ case tag of+ 10+ -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (do value <- do len <- Data.ProtoLens.Encoding.Bytes.getVarInt+ Data.ProtoLens.Encoding.Bytes.getBytes+ (Prelude.fromIntegral len)+ Data.ProtoLens.Encoding.Bytes.runEither+ (case Data.Text.Encoding.decodeUtf8' value of+ (Prelude.Left err)+ -> Prelude.Left (Prelude.show err)+ (Prelude.Right r) -> Prelude.Right r))+ "account"+ loop (Lens.Family2.set (Data.ProtoLens.Field.field @"account") y x)+ 16+ -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (Prelude.fmap+ Prelude.toEnum+ (Prelude.fmap+ Prelude.fromIntegral+ Data.ProtoLens.Encoding.Bytes.getVarInt))+ "type"+ loop (Lens.Family2.set (Data.ProtoLens.Field.field @"type'") y x)+ 24+ -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (Prelude.fmap+ ((Prelude./=) 0) Data.ProtoLens.Encoding.Bytes.getVarInt)+ "change"+ loop (Lens.Family2.set (Data.ProtoLens.Field.field @"change") y x)+ wire+ -> do !y <- Data.ProtoLens.Encoding.Wire.parseTaggedValueFromWire+ wire+ loop+ (Lens.Family2.over+ Data.ProtoLens.unknownFields (\ !t -> (:) y t) x)+ in+ (Data.ProtoLens.Encoding.Bytes.<?>)+ (do loop Data.ProtoLens.defMessage) "AddrRequest"+ buildMessage+ = \ _x+ -> (Data.Monoid.<>)+ (let+ _v = Lens.Family2.view (Data.ProtoLens.Field.field @"account") _x+ in+ if (Prelude.==) _v Data.ProtoLens.fieldDefault then+ Data.Monoid.mempty+ else+ (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 10)+ ((Prelude..)+ (\ bs+ -> (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt+ (Prelude.fromIntegral (Data.ByteString.length bs)))+ (Data.ProtoLens.Encoding.Bytes.putBytes bs))+ Data.Text.Encoding.encodeUtf8 _v))+ ((Data.Monoid.<>)+ (let+ _v = Lens.Family2.view (Data.ProtoLens.Field.field @"type'") _x+ in+ if (Prelude.==) _v Data.ProtoLens.fieldDefault then+ Data.Monoid.mempty+ else+ (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 16)+ ((Prelude..)+ ((Prelude..)+ Data.ProtoLens.Encoding.Bytes.putVarInt Prelude.fromIntegral)+ Prelude.fromEnum _v))+ ((Data.Monoid.<>)+ (let+ _v = Lens.Family2.view (Data.ProtoLens.Field.field @"change") _x+ in+ if (Prelude.==) _v Data.ProtoLens.fieldDefault then+ Data.Monoid.mempty+ else+ (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 24)+ ((Prelude..)+ Data.ProtoLens.Encoding.Bytes.putVarInt (\ b -> if b then 1 else 0)+ _v))+ (Data.ProtoLens.Encoding.Wire.buildFieldSet+ (Lens.Family2.view Data.ProtoLens.unknownFields _x))))+instance Control.DeepSeq.NFData AddrRequest where+ rnf+ = \ x__+ -> Control.DeepSeq.deepseq+ (_AddrRequest'_unknownFields x__)+ (Control.DeepSeq.deepseq+ (_AddrRequest'account x__)+ (Control.DeepSeq.deepseq+ (_AddrRequest'type' x__)+ (Control.DeepSeq.deepseq (_AddrRequest'change x__) ())))+{- | Fields :+ + * 'Proto.Walletrpc.Walletkit_Fields.addr' @:: Lens' AddrResponse Data.Text.Text@ -}+data AddrResponse+ = AddrResponse'_constructor {_AddrResponse'addr :: !Data.Text.Text,+ _AddrResponse'_unknownFields :: !Data.ProtoLens.FieldSet}+ deriving stock (Prelude.Eq, Prelude.Ord, GHC.Generics.Generic)+instance Prelude.Show AddrResponse where+ showsPrec _ __x __s+ = Prelude.showChar+ '{'+ (Prelude.showString+ (Data.ProtoLens.showMessageShort __x) (Prelude.showChar '}' __s))+instance Text.PrettyPrint.GenericPretty.Out AddrResponse+instance Data.ProtoLens.Field.HasField AddrResponse "addr" Data.Text.Text where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _AddrResponse'addr (\ x__ y__ -> x__ {_AddrResponse'addr = y__}))+ Prelude.id+instance Data.ProtoLens.Message AddrResponse where+ messageName _ = Data.Text.pack "walletrpc.AddrResponse"+ packedMessageDescriptor _+ = "\n\+ \\fAddrResponse\DC2\DC2\n\+ \\EOTaddr\CAN\SOH \SOH(\tR\EOTaddr"+ packedFileDescriptor _ = packedFileDescriptor+ fieldsByTag+ = let+ addr__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "addr"+ (Data.ProtoLens.ScalarField Data.ProtoLens.StringField ::+ Data.ProtoLens.FieldTypeDescriptor Data.Text.Text)+ (Data.ProtoLens.PlainField+ Data.ProtoLens.Optional (Data.ProtoLens.Field.field @"addr")) ::+ Data.ProtoLens.FieldDescriptor AddrResponse+ in+ Data.Map.fromList [(Data.ProtoLens.Tag 1, addr__field_descriptor)]+ unknownFields+ = Lens.Family2.Unchecked.lens+ _AddrResponse'_unknownFields+ (\ x__ y__ -> x__ {_AddrResponse'_unknownFields = y__})+ defMessage+ = AddrResponse'_constructor+ {_AddrResponse'addr = Data.ProtoLens.fieldDefault,+ _AddrResponse'_unknownFields = []}+ parseMessage+ = let+ loop ::+ AddrResponse -> Data.ProtoLens.Encoding.Bytes.Parser AddrResponse+ loop x+ = do end <- Data.ProtoLens.Encoding.Bytes.atEnd+ if end then+ do (let missing = []+ in+ if Prelude.null missing then+ Prelude.return ()+ else+ Prelude.fail+ ((Prelude.++)+ "Missing required fields: "+ (Prelude.show (missing :: [Prelude.String]))))+ Prelude.return+ (Lens.Family2.over+ Data.ProtoLens.unknownFields (\ !t -> Prelude.reverse t) x)+ else+ do tag <- Data.ProtoLens.Encoding.Bytes.getVarInt+ case tag of+ 10+ -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (do value <- do len <- Data.ProtoLens.Encoding.Bytes.getVarInt+ Data.ProtoLens.Encoding.Bytes.getBytes+ (Prelude.fromIntegral len)+ Data.ProtoLens.Encoding.Bytes.runEither+ (case Data.Text.Encoding.decodeUtf8' value of+ (Prelude.Left err)+ -> Prelude.Left (Prelude.show err)+ (Prelude.Right r) -> Prelude.Right r))+ "addr"+ loop (Lens.Family2.set (Data.ProtoLens.Field.field @"addr") y x)+ wire+ -> do !y <- Data.ProtoLens.Encoding.Wire.parseTaggedValueFromWire+ wire+ loop+ (Lens.Family2.over+ Data.ProtoLens.unknownFields (\ !t -> (:) y t) x)+ in+ (Data.ProtoLens.Encoding.Bytes.<?>)+ (do loop Data.ProtoLens.defMessage) "AddrResponse"+ buildMessage+ = \ _x+ -> (Data.Monoid.<>)+ (let _v = Lens.Family2.view (Data.ProtoLens.Field.field @"addr") _x+ in+ if (Prelude.==) _v Data.ProtoLens.fieldDefault then+ Data.Monoid.mempty+ else+ (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 10)+ ((Prelude..)+ (\ bs+ -> (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt+ (Prelude.fromIntegral (Data.ByteString.length bs)))+ (Data.ProtoLens.Encoding.Bytes.putBytes bs))+ Data.Text.Encoding.encodeUtf8 _v))+ (Data.ProtoLens.Encoding.Wire.buildFieldSet+ (Lens.Family2.view Data.ProtoLens.unknownFields _x))+instance Control.DeepSeq.NFData AddrResponse where+ rnf+ = \ x__+ -> Control.DeepSeq.deepseq+ (_AddrResponse'_unknownFields x__)+ (Control.DeepSeq.deepseq (_AddrResponse'addr x__) ())+newtype AddressType'UnrecognizedValue+ = AddressType'UnrecognizedValue Data.Int.Int32+ deriving stock (Prelude.Eq,+ Prelude.Ord,+ Prelude.Show,+ GHC.Generics.Generic)+instance Text.PrettyPrint.GenericPretty.Out AddressType'UnrecognizedValue+data AddressType+ = UNKNOWN |+ WITNESS_PUBKEY_HASH |+ NESTED_WITNESS_PUBKEY_HASH |+ HYBRID_NESTED_WITNESS_PUBKEY_HASH |+ AddressType'Unrecognized !AddressType'UnrecognizedValue+ deriving stock (Prelude.Show,+ Prelude.Eq,+ Prelude.Ord,+ GHC.Generics.Generic)+instance Data.ProtoLens.MessageEnum AddressType where+ maybeToEnum 0 = Prelude.Just UNKNOWN+ maybeToEnum 1 = Prelude.Just WITNESS_PUBKEY_HASH+ maybeToEnum 2 = Prelude.Just NESTED_WITNESS_PUBKEY_HASH+ maybeToEnum 3 = Prelude.Just HYBRID_NESTED_WITNESS_PUBKEY_HASH+ maybeToEnum k+ = Prelude.Just+ (AddressType'Unrecognized+ (AddressType'UnrecognizedValue (Prelude.fromIntegral k)))+ showEnum UNKNOWN = "UNKNOWN"+ showEnum WITNESS_PUBKEY_HASH = "WITNESS_PUBKEY_HASH"+ showEnum NESTED_WITNESS_PUBKEY_HASH = "NESTED_WITNESS_PUBKEY_HASH"+ showEnum HYBRID_NESTED_WITNESS_PUBKEY_HASH+ = "HYBRID_NESTED_WITNESS_PUBKEY_HASH"+ showEnum+ (AddressType'Unrecognized (AddressType'UnrecognizedValue k))+ = Prelude.show k+ readEnum k+ | (Prelude.==) k "UNKNOWN" = Prelude.Just UNKNOWN+ | (Prelude.==) k "WITNESS_PUBKEY_HASH"+ = Prelude.Just WITNESS_PUBKEY_HASH+ | (Prelude.==) k "NESTED_WITNESS_PUBKEY_HASH"+ = Prelude.Just NESTED_WITNESS_PUBKEY_HASH+ | (Prelude.==) k "HYBRID_NESTED_WITNESS_PUBKEY_HASH"+ = Prelude.Just HYBRID_NESTED_WITNESS_PUBKEY_HASH+ | Prelude.otherwise+ = (Prelude.>>=) (Text.Read.readMaybe k) Data.ProtoLens.maybeToEnum+instance Prelude.Bounded AddressType where+ minBound = UNKNOWN+ maxBound = HYBRID_NESTED_WITNESS_PUBKEY_HASH+instance Prelude.Enum AddressType where+ toEnum k__+ = Prelude.maybe+ (Prelude.error+ ((Prelude.++)+ "toEnum: unknown value for enum AddressType: " (Prelude.show k__)))+ Prelude.id (Data.ProtoLens.maybeToEnum k__)+ fromEnum UNKNOWN = 0+ fromEnum WITNESS_PUBKEY_HASH = 1+ fromEnum NESTED_WITNESS_PUBKEY_HASH = 2+ fromEnum HYBRID_NESTED_WITNESS_PUBKEY_HASH = 3+ fromEnum+ (AddressType'Unrecognized (AddressType'UnrecognizedValue k))+ = Prelude.fromIntegral k+ succ HYBRID_NESTED_WITNESS_PUBKEY_HASH+ = Prelude.error+ "AddressType.succ: bad argument HYBRID_NESTED_WITNESS_PUBKEY_HASH. This value would be out of bounds."+ succ UNKNOWN = WITNESS_PUBKEY_HASH+ succ WITNESS_PUBKEY_HASH = NESTED_WITNESS_PUBKEY_HASH+ succ NESTED_WITNESS_PUBKEY_HASH = HYBRID_NESTED_WITNESS_PUBKEY_HASH+ succ (AddressType'Unrecognized _)+ = Prelude.error+ "AddressType.succ: bad argument: unrecognized value"+ pred UNKNOWN+ = Prelude.error+ "AddressType.pred: bad argument UNKNOWN. This value would be out of bounds."+ pred WITNESS_PUBKEY_HASH = UNKNOWN+ pred NESTED_WITNESS_PUBKEY_HASH = WITNESS_PUBKEY_HASH+ pred HYBRID_NESTED_WITNESS_PUBKEY_HASH = NESTED_WITNESS_PUBKEY_HASH+ pred (AddressType'Unrecognized _)+ = Prelude.error+ "AddressType.pred: bad argument: unrecognized value"+ enumFrom = Data.ProtoLens.Message.Enum.messageEnumFrom+ enumFromTo = Data.ProtoLens.Message.Enum.messageEnumFromTo+ enumFromThen = Data.ProtoLens.Message.Enum.messageEnumFromThen+ enumFromThenTo = Data.ProtoLens.Message.Enum.messageEnumFromThenTo+instance Data.ProtoLens.FieldDefault AddressType where+ fieldDefault = UNKNOWN+instance Control.DeepSeq.NFData AddressType where+ rnf x__ = Prelude.seq x__ ()+instance Text.PrettyPrint.GenericPretty.Out AddressType+{- | Fields :+ + * 'Proto.Walletrpc.Walletkit_Fields.outpoint' @:: Lens' BumpFeeRequest Proto.Lnrpc.Ln0.OutPoint@+ * 'Proto.Walletrpc.Walletkit_Fields.maybe'outpoint' @:: Lens' BumpFeeRequest (Prelude.Maybe Proto.Lnrpc.Ln0.OutPoint)@+ * 'Proto.Walletrpc.Walletkit_Fields.targetConf' @:: Lens' BumpFeeRequest Data.Word.Word32@+ * 'Proto.Walletrpc.Walletkit_Fields.satPerByte' @:: Lens' BumpFeeRequest Data.Word.Word32@+ * 'Proto.Walletrpc.Walletkit_Fields.force' @:: Lens' BumpFeeRequest Prelude.Bool@+ * 'Proto.Walletrpc.Walletkit_Fields.satPerVbyte' @:: Lens' BumpFeeRequest Data.Word.Word64@ -}+data BumpFeeRequest+ = BumpFeeRequest'_constructor {_BumpFeeRequest'outpoint :: !(Prelude.Maybe Proto.Lnrpc.Ln0.OutPoint),+ _BumpFeeRequest'targetConf :: !Data.Word.Word32,+ _BumpFeeRequest'satPerByte :: !Data.Word.Word32,+ _BumpFeeRequest'force :: !Prelude.Bool,+ _BumpFeeRequest'satPerVbyte :: !Data.Word.Word64,+ _BumpFeeRequest'_unknownFields :: !Data.ProtoLens.FieldSet}+ deriving stock (Prelude.Eq, Prelude.Ord, GHC.Generics.Generic)+instance Prelude.Show BumpFeeRequest where+ showsPrec _ __x __s+ = Prelude.showChar+ '{'+ (Prelude.showString+ (Data.ProtoLens.showMessageShort __x) (Prelude.showChar '}' __s))+instance Text.PrettyPrint.GenericPretty.Out BumpFeeRequest+instance Data.ProtoLens.Field.HasField BumpFeeRequest "outpoint" Proto.Lnrpc.Ln0.OutPoint where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _BumpFeeRequest'outpoint+ (\ x__ y__ -> x__ {_BumpFeeRequest'outpoint = y__}))+ (Data.ProtoLens.maybeLens Data.ProtoLens.defMessage)+instance Data.ProtoLens.Field.HasField BumpFeeRequest "maybe'outpoint" (Prelude.Maybe Proto.Lnrpc.Ln0.OutPoint) where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _BumpFeeRequest'outpoint+ (\ x__ y__ -> x__ {_BumpFeeRequest'outpoint = y__}))+ Prelude.id+instance Data.ProtoLens.Field.HasField BumpFeeRequest "targetConf" Data.Word.Word32 where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _BumpFeeRequest'targetConf+ (\ x__ y__ -> x__ {_BumpFeeRequest'targetConf = y__}))+ Prelude.id+instance Data.ProtoLens.Field.HasField BumpFeeRequest "satPerByte" Data.Word.Word32 where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _BumpFeeRequest'satPerByte+ (\ x__ y__ -> x__ {_BumpFeeRequest'satPerByte = y__}))+ Prelude.id+instance Data.ProtoLens.Field.HasField BumpFeeRequest "force" Prelude.Bool where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _BumpFeeRequest'force+ (\ x__ y__ -> x__ {_BumpFeeRequest'force = y__}))+ Prelude.id+instance Data.ProtoLens.Field.HasField BumpFeeRequest "satPerVbyte" Data.Word.Word64 where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _BumpFeeRequest'satPerVbyte+ (\ x__ y__ -> x__ {_BumpFeeRequest'satPerVbyte = y__}))+ Prelude.id+instance Data.ProtoLens.Message BumpFeeRequest where+ messageName _ = Data.Text.pack "walletrpc.BumpFeeRequest"+ packedMessageDescriptor _+ = "\n\+ \\SOBumpFeeRequest\DC2+\n\+ \\boutpoint\CAN\SOH \SOH(\v2\SI.lnrpc.OutPointR\boutpoint\DC2\US\n\+ \\vtarget_conf\CAN\STX \SOH(\rR\n\+ \targetConf\DC2$\n\+ \\fsat_per_byte\CAN\ETX \SOH(\rR\n\+ \satPerByteB\STX\CAN\SOH\DC2\DC4\n\+ \\ENQforce\CAN\EOT \SOH(\bR\ENQforce\DC2\"\n\+ \\rsat_per_vbyte\CAN\ENQ \SOH(\EOTR\vsatPerVbyte"+ packedFileDescriptor _ = packedFileDescriptor+ fieldsByTag+ = let+ outpoint__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "outpoint"+ (Data.ProtoLens.MessageField Data.ProtoLens.MessageType ::+ Data.ProtoLens.FieldTypeDescriptor Proto.Lnrpc.Ln0.OutPoint)+ (Data.ProtoLens.OptionalField+ (Data.ProtoLens.Field.field @"maybe'outpoint")) ::+ Data.ProtoLens.FieldDescriptor BumpFeeRequest+ targetConf__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "target_conf"+ (Data.ProtoLens.ScalarField Data.ProtoLens.UInt32Field ::+ Data.ProtoLens.FieldTypeDescriptor Data.Word.Word32)+ (Data.ProtoLens.PlainField+ Data.ProtoLens.Optional+ (Data.ProtoLens.Field.field @"targetConf")) ::+ Data.ProtoLens.FieldDescriptor BumpFeeRequest+ satPerByte__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "sat_per_byte"+ (Data.ProtoLens.ScalarField Data.ProtoLens.UInt32Field ::+ Data.ProtoLens.FieldTypeDescriptor Data.Word.Word32)+ (Data.ProtoLens.PlainField+ Data.ProtoLens.Optional+ (Data.ProtoLens.Field.field @"satPerByte")) ::+ Data.ProtoLens.FieldDescriptor BumpFeeRequest+ force__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "force"+ (Data.ProtoLens.ScalarField Data.ProtoLens.BoolField ::+ Data.ProtoLens.FieldTypeDescriptor Prelude.Bool)+ (Data.ProtoLens.PlainField+ Data.ProtoLens.Optional (Data.ProtoLens.Field.field @"force")) ::+ Data.ProtoLens.FieldDescriptor BumpFeeRequest+ satPerVbyte__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "sat_per_vbyte"+ (Data.ProtoLens.ScalarField Data.ProtoLens.UInt64Field ::+ Data.ProtoLens.FieldTypeDescriptor Data.Word.Word64)+ (Data.ProtoLens.PlainField+ Data.ProtoLens.Optional+ (Data.ProtoLens.Field.field @"satPerVbyte")) ::+ Data.ProtoLens.FieldDescriptor BumpFeeRequest+ in+ Data.Map.fromList+ [(Data.ProtoLens.Tag 1, outpoint__field_descriptor),+ (Data.ProtoLens.Tag 2, targetConf__field_descriptor),+ (Data.ProtoLens.Tag 3, satPerByte__field_descriptor),+ (Data.ProtoLens.Tag 4, force__field_descriptor),+ (Data.ProtoLens.Tag 5, satPerVbyte__field_descriptor)]+ unknownFields+ = Lens.Family2.Unchecked.lens+ _BumpFeeRequest'_unknownFields+ (\ x__ y__ -> x__ {_BumpFeeRequest'_unknownFields = y__})+ defMessage+ = BumpFeeRequest'_constructor+ {_BumpFeeRequest'outpoint = Prelude.Nothing,+ _BumpFeeRequest'targetConf = Data.ProtoLens.fieldDefault,+ _BumpFeeRequest'satPerByte = Data.ProtoLens.fieldDefault,+ _BumpFeeRequest'force = Data.ProtoLens.fieldDefault,+ _BumpFeeRequest'satPerVbyte = Data.ProtoLens.fieldDefault,+ _BumpFeeRequest'_unknownFields = []}+ parseMessage+ = let+ loop ::+ BumpFeeRequest+ -> Data.ProtoLens.Encoding.Bytes.Parser BumpFeeRequest+ loop x+ = do end <- Data.ProtoLens.Encoding.Bytes.atEnd+ if end then+ do (let missing = []+ in+ if Prelude.null missing then+ Prelude.return ()+ else+ Prelude.fail+ ((Prelude.++)+ "Missing required fields: "+ (Prelude.show (missing :: [Prelude.String]))))+ Prelude.return+ (Lens.Family2.over+ Data.ProtoLens.unknownFields (\ !t -> Prelude.reverse t) x)+ else+ do tag <- Data.ProtoLens.Encoding.Bytes.getVarInt+ case tag of+ 10+ -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (do len <- Data.ProtoLens.Encoding.Bytes.getVarInt+ Data.ProtoLens.Encoding.Bytes.isolate+ (Prelude.fromIntegral len) Data.ProtoLens.parseMessage)+ "outpoint"+ loop+ (Lens.Family2.set (Data.ProtoLens.Field.field @"outpoint") y x)+ 16+ -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (Prelude.fmap+ Prelude.fromIntegral+ Data.ProtoLens.Encoding.Bytes.getVarInt)+ "target_conf"+ loop+ (Lens.Family2.set (Data.ProtoLens.Field.field @"targetConf") y x)+ 24+ -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (Prelude.fmap+ Prelude.fromIntegral+ Data.ProtoLens.Encoding.Bytes.getVarInt)+ "sat_per_byte"+ loop+ (Lens.Family2.set (Data.ProtoLens.Field.field @"satPerByte") y x)+ 32+ -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (Prelude.fmap+ ((Prelude./=) 0) Data.ProtoLens.Encoding.Bytes.getVarInt)+ "force"+ loop (Lens.Family2.set (Data.ProtoLens.Field.field @"force") y x)+ 40+ -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ Data.ProtoLens.Encoding.Bytes.getVarInt "sat_per_vbyte"+ loop+ (Lens.Family2.set (Data.ProtoLens.Field.field @"satPerVbyte") y x)+ wire+ -> do !y <- Data.ProtoLens.Encoding.Wire.parseTaggedValueFromWire+ wire+ loop+ (Lens.Family2.over+ Data.ProtoLens.unknownFields (\ !t -> (:) y t) x)+ in+ (Data.ProtoLens.Encoding.Bytes.<?>)+ (do loop Data.ProtoLens.defMessage) "BumpFeeRequest"+ buildMessage+ = \ _x+ -> (Data.Monoid.<>)+ (case+ Lens.Family2.view (Data.ProtoLens.Field.field @"maybe'outpoint") _x+ of+ Prelude.Nothing -> Data.Monoid.mempty+ (Prelude.Just _v)+ -> (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 10)+ ((Prelude..)+ (\ bs+ -> (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt+ (Prelude.fromIntegral (Data.ByteString.length bs)))+ (Data.ProtoLens.Encoding.Bytes.putBytes bs))+ Data.ProtoLens.encodeMessage _v))+ ((Data.Monoid.<>)+ (let+ _v+ = Lens.Family2.view (Data.ProtoLens.Field.field @"targetConf") _x+ in+ if (Prelude.==) _v Data.ProtoLens.fieldDefault then+ Data.Monoid.mempty+ else+ (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 16)+ ((Prelude..)+ Data.ProtoLens.Encoding.Bytes.putVarInt Prelude.fromIntegral _v))+ ((Data.Monoid.<>)+ (let+ _v+ = Lens.Family2.view (Data.ProtoLens.Field.field @"satPerByte") _x+ in+ if (Prelude.==) _v Data.ProtoLens.fieldDefault then+ Data.Monoid.mempty+ else+ (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 24)+ ((Prelude..)+ Data.ProtoLens.Encoding.Bytes.putVarInt Prelude.fromIntegral _v))+ ((Data.Monoid.<>)+ (let+ _v = Lens.Family2.view (Data.ProtoLens.Field.field @"force") _x+ in+ if (Prelude.==) _v Data.ProtoLens.fieldDefault then+ Data.Monoid.mempty+ else+ (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 32)+ ((Prelude..)+ Data.ProtoLens.Encoding.Bytes.putVarInt+ (\ b -> if b then 1 else 0) _v))+ ((Data.Monoid.<>)+ (let+ _v+ = Lens.Family2.view (Data.ProtoLens.Field.field @"satPerVbyte") _x+ in+ if (Prelude.==) _v Data.ProtoLens.fieldDefault then+ Data.Monoid.mempty+ else+ (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 40)+ (Data.ProtoLens.Encoding.Bytes.putVarInt _v))+ (Data.ProtoLens.Encoding.Wire.buildFieldSet+ (Lens.Family2.view Data.ProtoLens.unknownFields _x))))))+instance Control.DeepSeq.NFData BumpFeeRequest where+ rnf+ = \ x__+ -> Control.DeepSeq.deepseq+ (_BumpFeeRequest'_unknownFields x__)+ (Control.DeepSeq.deepseq+ (_BumpFeeRequest'outpoint x__)+ (Control.DeepSeq.deepseq+ (_BumpFeeRequest'targetConf x__)+ (Control.DeepSeq.deepseq+ (_BumpFeeRequest'satPerByte x__)+ (Control.DeepSeq.deepseq+ (_BumpFeeRequest'force x__)+ (Control.DeepSeq.deepseq (_BumpFeeRequest'satPerVbyte x__) ())))))+{- | Fields :+ -}+data BumpFeeResponse+ = BumpFeeResponse'_constructor {_BumpFeeResponse'_unknownFields :: !Data.ProtoLens.FieldSet}+ deriving stock (Prelude.Eq, Prelude.Ord, GHC.Generics.Generic)+instance Prelude.Show BumpFeeResponse where+ showsPrec _ __x __s+ = Prelude.showChar+ '{'+ (Prelude.showString+ (Data.ProtoLens.showMessageShort __x) (Prelude.showChar '}' __s))+instance Text.PrettyPrint.GenericPretty.Out BumpFeeResponse+instance Data.ProtoLens.Message BumpFeeResponse where+ messageName _ = Data.Text.pack "walletrpc.BumpFeeResponse"+ packedMessageDescriptor _+ = "\n\+ \\SIBumpFeeResponse"+ packedFileDescriptor _ = packedFileDescriptor+ fieldsByTag = let in Data.Map.fromList []+ unknownFields+ = Lens.Family2.Unchecked.lens+ _BumpFeeResponse'_unknownFields+ (\ x__ y__ -> x__ {_BumpFeeResponse'_unknownFields = y__})+ defMessage+ = BumpFeeResponse'_constructor+ {_BumpFeeResponse'_unknownFields = []}+ parseMessage+ = let+ loop ::+ BumpFeeResponse+ -> Data.ProtoLens.Encoding.Bytes.Parser BumpFeeResponse+ loop x+ = do end <- Data.ProtoLens.Encoding.Bytes.atEnd+ if end then+ do (let missing = []+ in+ if Prelude.null missing then+ Prelude.return ()+ else+ Prelude.fail+ ((Prelude.++)+ "Missing required fields: "+ (Prelude.show (missing :: [Prelude.String]))))+ Prelude.return+ (Lens.Family2.over+ Data.ProtoLens.unknownFields (\ !t -> Prelude.reverse t) x)+ else+ do tag <- Data.ProtoLens.Encoding.Bytes.getVarInt+ case tag of {+ wire+ -> do !y <- Data.ProtoLens.Encoding.Wire.parseTaggedValueFromWire+ wire+ loop+ (Lens.Family2.over+ Data.ProtoLens.unknownFields (\ !t -> (:) y t) x) }+ in+ (Data.ProtoLens.Encoding.Bytes.<?>)+ (do loop Data.ProtoLens.defMessage) "BumpFeeResponse"+ buildMessage+ = \ _x+ -> Data.ProtoLens.Encoding.Wire.buildFieldSet+ (Lens.Family2.view Data.ProtoLens.unknownFields _x)+instance Control.DeepSeq.NFData BumpFeeResponse where+ rnf+ = \ x__+ -> Control.DeepSeq.deepseq (_BumpFeeResponse'_unknownFields x__) ()+{- | Fields :+ + * 'Proto.Walletrpc.Walletkit_Fields.confTarget' @:: Lens' EstimateFeeRequest Data.Int.Int32@ -}+data EstimateFeeRequest+ = EstimateFeeRequest'_constructor {_EstimateFeeRequest'confTarget :: !Data.Int.Int32,+ _EstimateFeeRequest'_unknownFields :: !Data.ProtoLens.FieldSet}+ deriving stock (Prelude.Eq, Prelude.Ord, GHC.Generics.Generic)+instance Prelude.Show EstimateFeeRequest where+ showsPrec _ __x __s+ = Prelude.showChar+ '{'+ (Prelude.showString+ (Data.ProtoLens.showMessageShort __x) (Prelude.showChar '}' __s))+instance Text.PrettyPrint.GenericPretty.Out EstimateFeeRequest+instance Data.ProtoLens.Field.HasField EstimateFeeRequest "confTarget" Data.Int.Int32 where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _EstimateFeeRequest'confTarget+ (\ x__ y__ -> x__ {_EstimateFeeRequest'confTarget = y__}))+ Prelude.id+instance Data.ProtoLens.Message EstimateFeeRequest where+ messageName _ = Data.Text.pack "walletrpc.EstimateFeeRequest"+ packedMessageDescriptor _+ = "\n\+ \\DC2EstimateFeeRequest\DC2\US\n\+ \\vconf_target\CAN\SOH \SOH(\ENQR\n\+ \confTarget"+ packedFileDescriptor _ = packedFileDescriptor+ fieldsByTag+ = let+ confTarget__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "conf_target"+ (Data.ProtoLens.ScalarField Data.ProtoLens.Int32Field ::+ Data.ProtoLens.FieldTypeDescriptor Data.Int.Int32)+ (Data.ProtoLens.PlainField+ Data.ProtoLens.Optional+ (Data.ProtoLens.Field.field @"confTarget")) ::+ Data.ProtoLens.FieldDescriptor EstimateFeeRequest+ in+ Data.Map.fromList+ [(Data.ProtoLens.Tag 1, confTarget__field_descriptor)]+ unknownFields+ = Lens.Family2.Unchecked.lens+ _EstimateFeeRequest'_unknownFields+ (\ x__ y__ -> x__ {_EstimateFeeRequest'_unknownFields = y__})+ defMessage+ = EstimateFeeRequest'_constructor+ {_EstimateFeeRequest'confTarget = Data.ProtoLens.fieldDefault,+ _EstimateFeeRequest'_unknownFields = []}+ parseMessage+ = let+ loop ::+ EstimateFeeRequest+ -> Data.ProtoLens.Encoding.Bytes.Parser EstimateFeeRequest+ loop x+ = do end <- Data.ProtoLens.Encoding.Bytes.atEnd+ if end then+ do (let missing = []+ in+ if Prelude.null missing then+ Prelude.return ()+ else+ Prelude.fail+ ((Prelude.++)+ "Missing required fields: "+ (Prelude.show (missing :: [Prelude.String]))))+ Prelude.return+ (Lens.Family2.over+ Data.ProtoLens.unknownFields (\ !t -> Prelude.reverse t) x)+ else+ do tag <- Data.ProtoLens.Encoding.Bytes.getVarInt+ case tag of+ 8 -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (Prelude.fmap+ Prelude.fromIntegral+ Data.ProtoLens.Encoding.Bytes.getVarInt)+ "conf_target"+ loop+ (Lens.Family2.set (Data.ProtoLens.Field.field @"confTarget") y x)+ wire+ -> do !y <- Data.ProtoLens.Encoding.Wire.parseTaggedValueFromWire+ wire+ loop+ (Lens.Family2.over+ Data.ProtoLens.unknownFields (\ !t -> (:) y t) x)+ in+ (Data.ProtoLens.Encoding.Bytes.<?>)+ (do loop Data.ProtoLens.defMessage) "EstimateFeeRequest"+ buildMessage+ = \ _x+ -> (Data.Monoid.<>)+ (let+ _v+ = Lens.Family2.view (Data.ProtoLens.Field.field @"confTarget") _x+ in+ if (Prelude.==) _v Data.ProtoLens.fieldDefault then+ Data.Monoid.mempty+ else+ (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 8)+ ((Prelude..)+ Data.ProtoLens.Encoding.Bytes.putVarInt Prelude.fromIntegral _v))+ (Data.ProtoLens.Encoding.Wire.buildFieldSet+ (Lens.Family2.view Data.ProtoLens.unknownFields _x))+instance Control.DeepSeq.NFData EstimateFeeRequest where+ rnf+ = \ x__+ -> Control.DeepSeq.deepseq+ (_EstimateFeeRequest'_unknownFields x__)+ (Control.DeepSeq.deepseq (_EstimateFeeRequest'confTarget x__) ())+{- | Fields :+ + * 'Proto.Walletrpc.Walletkit_Fields.satPerKw' @:: Lens' EstimateFeeResponse Data.Int.Int64@ -}+data EstimateFeeResponse+ = EstimateFeeResponse'_constructor {_EstimateFeeResponse'satPerKw :: !Data.Int.Int64,+ _EstimateFeeResponse'_unknownFields :: !Data.ProtoLens.FieldSet}+ deriving stock (Prelude.Eq, Prelude.Ord, GHC.Generics.Generic)+instance Prelude.Show EstimateFeeResponse where+ showsPrec _ __x __s+ = Prelude.showChar+ '{'+ (Prelude.showString+ (Data.ProtoLens.showMessageShort __x) (Prelude.showChar '}' __s))+instance Text.PrettyPrint.GenericPretty.Out EstimateFeeResponse+instance Data.ProtoLens.Field.HasField EstimateFeeResponse "satPerKw" Data.Int.Int64 where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _EstimateFeeResponse'satPerKw+ (\ x__ y__ -> x__ {_EstimateFeeResponse'satPerKw = y__}))+ Prelude.id+instance Data.ProtoLens.Message EstimateFeeResponse where+ messageName _ = Data.Text.pack "walletrpc.EstimateFeeResponse"+ packedMessageDescriptor _+ = "\n\+ \\DC3EstimateFeeResponse\DC2\FS\n\+ \\n\+ \sat_per_kw\CAN\SOH \SOH(\ETXR\bsatPerKw"+ packedFileDescriptor _ = packedFileDescriptor+ fieldsByTag+ = let+ satPerKw__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "sat_per_kw"+ (Data.ProtoLens.ScalarField Data.ProtoLens.Int64Field ::+ Data.ProtoLens.FieldTypeDescriptor Data.Int.Int64)+ (Data.ProtoLens.PlainField+ Data.ProtoLens.Optional+ (Data.ProtoLens.Field.field @"satPerKw")) ::+ Data.ProtoLens.FieldDescriptor EstimateFeeResponse+ in+ Data.Map.fromList+ [(Data.ProtoLens.Tag 1, satPerKw__field_descriptor)]+ unknownFields+ = Lens.Family2.Unchecked.lens+ _EstimateFeeResponse'_unknownFields+ (\ x__ y__ -> x__ {_EstimateFeeResponse'_unknownFields = y__})+ defMessage+ = EstimateFeeResponse'_constructor+ {_EstimateFeeResponse'satPerKw = Data.ProtoLens.fieldDefault,+ _EstimateFeeResponse'_unknownFields = []}+ parseMessage+ = let+ loop ::+ EstimateFeeResponse+ -> Data.ProtoLens.Encoding.Bytes.Parser EstimateFeeResponse+ loop x+ = do end <- Data.ProtoLens.Encoding.Bytes.atEnd+ if end then+ do (let missing = []+ in+ if Prelude.null missing then+ Prelude.return ()+ else+ Prelude.fail+ ((Prelude.++)+ "Missing required fields: "+ (Prelude.show (missing :: [Prelude.String]))))+ Prelude.return+ (Lens.Family2.over+ Data.ProtoLens.unknownFields (\ !t -> Prelude.reverse t) x)+ else+ do tag <- Data.ProtoLens.Encoding.Bytes.getVarInt+ case tag of+ 8 -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (Prelude.fmap+ Prelude.fromIntegral+ Data.ProtoLens.Encoding.Bytes.getVarInt)+ "sat_per_kw"+ loop+ (Lens.Family2.set (Data.ProtoLens.Field.field @"satPerKw") y x)+ wire+ -> do !y <- Data.ProtoLens.Encoding.Wire.parseTaggedValueFromWire+ wire+ loop+ (Lens.Family2.over+ Data.ProtoLens.unknownFields (\ !t -> (:) y t) x)+ in+ (Data.ProtoLens.Encoding.Bytes.<?>)+ (do loop Data.ProtoLens.defMessage) "EstimateFeeResponse"+ buildMessage+ = \ _x+ -> (Data.Monoid.<>)+ (let+ _v = Lens.Family2.view (Data.ProtoLens.Field.field @"satPerKw") _x+ in+ if (Prelude.==) _v Data.ProtoLens.fieldDefault then+ Data.Monoid.mempty+ else+ (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 8)+ ((Prelude..)+ Data.ProtoLens.Encoding.Bytes.putVarInt Prelude.fromIntegral _v))+ (Data.ProtoLens.Encoding.Wire.buildFieldSet+ (Lens.Family2.view Data.ProtoLens.unknownFields _x))+instance Control.DeepSeq.NFData EstimateFeeResponse where+ rnf+ = \ x__+ -> Control.DeepSeq.deepseq+ (_EstimateFeeResponse'_unknownFields x__)+ (Control.DeepSeq.deepseq (_EstimateFeeResponse'satPerKw x__) ())+{- | Fields :+ + * 'Proto.Walletrpc.Walletkit_Fields.fundedPsbt' @:: Lens' FinalizePsbtRequest Data.ByteString.ByteString@+ * 'Proto.Walletrpc.Walletkit_Fields.account' @:: Lens' FinalizePsbtRequest Data.Text.Text@ -}+data FinalizePsbtRequest+ = FinalizePsbtRequest'_constructor {_FinalizePsbtRequest'fundedPsbt :: !Data.ByteString.ByteString,+ _FinalizePsbtRequest'account :: !Data.Text.Text,+ _FinalizePsbtRequest'_unknownFields :: !Data.ProtoLens.FieldSet}+ deriving stock (Prelude.Eq, Prelude.Ord, GHC.Generics.Generic)+instance Prelude.Show FinalizePsbtRequest where+ showsPrec _ __x __s+ = Prelude.showChar+ '{'+ (Prelude.showString+ (Data.ProtoLens.showMessageShort __x) (Prelude.showChar '}' __s))+instance Text.PrettyPrint.GenericPretty.Out FinalizePsbtRequest+instance Data.ProtoLens.Field.HasField FinalizePsbtRequest "fundedPsbt" Data.ByteString.ByteString where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _FinalizePsbtRequest'fundedPsbt+ (\ x__ y__ -> x__ {_FinalizePsbtRequest'fundedPsbt = y__}))+ Prelude.id+instance Data.ProtoLens.Field.HasField FinalizePsbtRequest "account" Data.Text.Text where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _FinalizePsbtRequest'account+ (\ x__ y__ -> x__ {_FinalizePsbtRequest'account = y__}))+ Prelude.id+instance Data.ProtoLens.Message FinalizePsbtRequest where+ messageName _ = Data.Text.pack "walletrpc.FinalizePsbtRequest"+ packedMessageDescriptor _+ = "\n\+ \\DC3FinalizePsbtRequest\DC2\US\n\+ \\vfunded_psbt\CAN\SOH \SOH(\fR\n\+ \fundedPsbt\DC2\CAN\n\+ \\aaccount\CAN\ENQ \SOH(\tR\aaccount"+ packedFileDescriptor _ = packedFileDescriptor+ fieldsByTag+ = let+ fundedPsbt__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "funded_psbt"+ (Data.ProtoLens.ScalarField Data.ProtoLens.BytesField ::+ Data.ProtoLens.FieldTypeDescriptor Data.ByteString.ByteString)+ (Data.ProtoLens.PlainField+ Data.ProtoLens.Optional+ (Data.ProtoLens.Field.field @"fundedPsbt")) ::+ Data.ProtoLens.FieldDescriptor FinalizePsbtRequest+ account__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "account"+ (Data.ProtoLens.ScalarField Data.ProtoLens.StringField ::+ Data.ProtoLens.FieldTypeDescriptor Data.Text.Text)+ (Data.ProtoLens.PlainField+ Data.ProtoLens.Optional (Data.ProtoLens.Field.field @"account")) ::+ Data.ProtoLens.FieldDescriptor FinalizePsbtRequest+ in+ Data.Map.fromList+ [(Data.ProtoLens.Tag 1, fundedPsbt__field_descriptor),+ (Data.ProtoLens.Tag 5, account__field_descriptor)]+ unknownFields+ = Lens.Family2.Unchecked.lens+ _FinalizePsbtRequest'_unknownFields+ (\ x__ y__ -> x__ {_FinalizePsbtRequest'_unknownFields = y__})+ defMessage+ = FinalizePsbtRequest'_constructor+ {_FinalizePsbtRequest'fundedPsbt = Data.ProtoLens.fieldDefault,+ _FinalizePsbtRequest'account = Data.ProtoLens.fieldDefault,+ _FinalizePsbtRequest'_unknownFields = []}+ parseMessage+ = let+ loop ::+ FinalizePsbtRequest+ -> Data.ProtoLens.Encoding.Bytes.Parser FinalizePsbtRequest+ loop x+ = do end <- Data.ProtoLens.Encoding.Bytes.atEnd+ if end then+ do (let missing = []+ in+ if Prelude.null missing then+ Prelude.return ()+ else+ Prelude.fail+ ((Prelude.++)+ "Missing required fields: "+ (Prelude.show (missing :: [Prelude.String]))))+ Prelude.return+ (Lens.Family2.over+ Data.ProtoLens.unknownFields (\ !t -> Prelude.reverse t) x)+ else+ do tag <- Data.ProtoLens.Encoding.Bytes.getVarInt+ case tag of+ 10+ -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (do len <- Data.ProtoLens.Encoding.Bytes.getVarInt+ Data.ProtoLens.Encoding.Bytes.getBytes+ (Prelude.fromIntegral len))+ "funded_psbt"+ loop+ (Lens.Family2.set (Data.ProtoLens.Field.field @"fundedPsbt") y x)+ 42+ -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (do value <- do len <- Data.ProtoLens.Encoding.Bytes.getVarInt+ Data.ProtoLens.Encoding.Bytes.getBytes+ (Prelude.fromIntegral len)+ Data.ProtoLens.Encoding.Bytes.runEither+ (case Data.Text.Encoding.decodeUtf8' value of+ (Prelude.Left err)+ -> Prelude.Left (Prelude.show err)+ (Prelude.Right r) -> Prelude.Right r))+ "account"+ loop (Lens.Family2.set (Data.ProtoLens.Field.field @"account") y x)+ wire+ -> do !y <- Data.ProtoLens.Encoding.Wire.parseTaggedValueFromWire+ wire+ loop+ (Lens.Family2.over+ Data.ProtoLens.unknownFields (\ !t -> (:) y t) x)+ in+ (Data.ProtoLens.Encoding.Bytes.<?>)+ (do loop Data.ProtoLens.defMessage) "FinalizePsbtRequest"+ buildMessage+ = \ _x+ -> (Data.Monoid.<>)+ (let+ _v+ = Lens.Family2.view (Data.ProtoLens.Field.field @"fundedPsbt") _x+ in+ if (Prelude.==) _v Data.ProtoLens.fieldDefault then+ Data.Monoid.mempty+ else+ (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 10)+ ((\ bs+ -> (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt+ (Prelude.fromIntegral (Data.ByteString.length bs)))+ (Data.ProtoLens.Encoding.Bytes.putBytes bs))+ _v))+ ((Data.Monoid.<>)+ (let+ _v = Lens.Family2.view (Data.ProtoLens.Field.field @"account") _x+ in+ if (Prelude.==) _v Data.ProtoLens.fieldDefault then+ Data.Monoid.mempty+ else+ (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 42)+ ((Prelude..)+ (\ bs+ -> (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt+ (Prelude.fromIntegral (Data.ByteString.length bs)))+ (Data.ProtoLens.Encoding.Bytes.putBytes bs))+ Data.Text.Encoding.encodeUtf8 _v))+ (Data.ProtoLens.Encoding.Wire.buildFieldSet+ (Lens.Family2.view Data.ProtoLens.unknownFields _x)))+instance Control.DeepSeq.NFData FinalizePsbtRequest where+ rnf+ = \ x__+ -> Control.DeepSeq.deepseq+ (_FinalizePsbtRequest'_unknownFields x__)+ (Control.DeepSeq.deepseq+ (_FinalizePsbtRequest'fundedPsbt x__)+ (Control.DeepSeq.deepseq (_FinalizePsbtRequest'account x__) ()))+{- | Fields :+ + * 'Proto.Walletrpc.Walletkit_Fields.signedPsbt' @:: Lens' FinalizePsbtResponse Data.ByteString.ByteString@+ * 'Proto.Walletrpc.Walletkit_Fields.rawFinalTx' @:: Lens' FinalizePsbtResponse Data.ByteString.ByteString@ -}+data FinalizePsbtResponse+ = FinalizePsbtResponse'_constructor {_FinalizePsbtResponse'signedPsbt :: !Data.ByteString.ByteString,+ _FinalizePsbtResponse'rawFinalTx :: !Data.ByteString.ByteString,+ _FinalizePsbtResponse'_unknownFields :: !Data.ProtoLens.FieldSet}+ deriving stock (Prelude.Eq, Prelude.Ord, GHC.Generics.Generic)+instance Prelude.Show FinalizePsbtResponse where+ showsPrec _ __x __s+ = Prelude.showChar+ '{'+ (Prelude.showString+ (Data.ProtoLens.showMessageShort __x) (Prelude.showChar '}' __s))+instance Text.PrettyPrint.GenericPretty.Out FinalizePsbtResponse+instance Data.ProtoLens.Field.HasField FinalizePsbtResponse "signedPsbt" Data.ByteString.ByteString where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _FinalizePsbtResponse'signedPsbt+ (\ x__ y__ -> x__ {_FinalizePsbtResponse'signedPsbt = y__}))+ Prelude.id+instance Data.ProtoLens.Field.HasField FinalizePsbtResponse "rawFinalTx" Data.ByteString.ByteString where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _FinalizePsbtResponse'rawFinalTx+ (\ x__ y__ -> x__ {_FinalizePsbtResponse'rawFinalTx = y__}))+ Prelude.id+instance Data.ProtoLens.Message FinalizePsbtResponse where+ messageName _ = Data.Text.pack "walletrpc.FinalizePsbtResponse"+ packedMessageDescriptor _+ = "\n\+ \\DC4FinalizePsbtResponse\DC2\US\n\+ \\vsigned_psbt\CAN\SOH \SOH(\fR\n\+ \signedPsbt\DC2 \n\+ \\fraw_final_tx\CAN\STX \SOH(\fR\n\+ \rawFinalTx"+ packedFileDescriptor _ = packedFileDescriptor+ fieldsByTag+ = let+ signedPsbt__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "signed_psbt"+ (Data.ProtoLens.ScalarField Data.ProtoLens.BytesField ::+ Data.ProtoLens.FieldTypeDescriptor Data.ByteString.ByteString)+ (Data.ProtoLens.PlainField+ Data.ProtoLens.Optional+ (Data.ProtoLens.Field.field @"signedPsbt")) ::+ Data.ProtoLens.FieldDescriptor FinalizePsbtResponse+ rawFinalTx__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "raw_final_tx"+ (Data.ProtoLens.ScalarField Data.ProtoLens.BytesField ::+ Data.ProtoLens.FieldTypeDescriptor Data.ByteString.ByteString)+ (Data.ProtoLens.PlainField+ Data.ProtoLens.Optional+ (Data.ProtoLens.Field.field @"rawFinalTx")) ::+ Data.ProtoLens.FieldDescriptor FinalizePsbtResponse+ in+ Data.Map.fromList+ [(Data.ProtoLens.Tag 1, signedPsbt__field_descriptor),+ (Data.ProtoLens.Tag 2, rawFinalTx__field_descriptor)]+ unknownFields+ = Lens.Family2.Unchecked.lens+ _FinalizePsbtResponse'_unknownFields+ (\ x__ y__ -> x__ {_FinalizePsbtResponse'_unknownFields = y__})+ defMessage+ = FinalizePsbtResponse'_constructor+ {_FinalizePsbtResponse'signedPsbt = Data.ProtoLens.fieldDefault,+ _FinalizePsbtResponse'rawFinalTx = Data.ProtoLens.fieldDefault,+ _FinalizePsbtResponse'_unknownFields = []}+ parseMessage+ = let+ loop ::+ FinalizePsbtResponse+ -> Data.ProtoLens.Encoding.Bytes.Parser FinalizePsbtResponse+ loop x+ = do end <- Data.ProtoLens.Encoding.Bytes.atEnd+ if end then+ do (let missing = []+ in+ if Prelude.null missing then+ Prelude.return ()+ else+ Prelude.fail+ ((Prelude.++)+ "Missing required fields: "+ (Prelude.show (missing :: [Prelude.String]))))+ Prelude.return+ (Lens.Family2.over+ Data.ProtoLens.unknownFields (\ !t -> Prelude.reverse t) x)+ else+ do tag <- Data.ProtoLens.Encoding.Bytes.getVarInt+ case tag of+ 10+ -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (do len <- Data.ProtoLens.Encoding.Bytes.getVarInt+ Data.ProtoLens.Encoding.Bytes.getBytes+ (Prelude.fromIntegral len))+ "signed_psbt"+ loop+ (Lens.Family2.set (Data.ProtoLens.Field.field @"signedPsbt") y x)+ 18+ -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (do len <- Data.ProtoLens.Encoding.Bytes.getVarInt+ Data.ProtoLens.Encoding.Bytes.getBytes+ (Prelude.fromIntegral len))+ "raw_final_tx"+ loop+ (Lens.Family2.set (Data.ProtoLens.Field.field @"rawFinalTx") y x)+ wire+ -> do !y <- Data.ProtoLens.Encoding.Wire.parseTaggedValueFromWire+ wire+ loop+ (Lens.Family2.over+ Data.ProtoLens.unknownFields (\ !t -> (:) y t) x)+ in+ (Data.ProtoLens.Encoding.Bytes.<?>)+ (do loop Data.ProtoLens.defMessage) "FinalizePsbtResponse"+ buildMessage+ = \ _x+ -> (Data.Monoid.<>)+ (let+ _v+ = Lens.Family2.view (Data.ProtoLens.Field.field @"signedPsbt") _x+ in+ if (Prelude.==) _v Data.ProtoLens.fieldDefault then+ Data.Monoid.mempty+ else+ (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 10)+ ((\ bs+ -> (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt+ (Prelude.fromIntegral (Data.ByteString.length bs)))+ (Data.ProtoLens.Encoding.Bytes.putBytes bs))+ _v))+ ((Data.Monoid.<>)+ (let+ _v+ = Lens.Family2.view (Data.ProtoLens.Field.field @"rawFinalTx") _x+ in+ if (Prelude.==) _v Data.ProtoLens.fieldDefault then+ Data.Monoid.mempty+ else+ (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 18)+ ((\ bs+ -> (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt+ (Prelude.fromIntegral (Data.ByteString.length bs)))+ (Data.ProtoLens.Encoding.Bytes.putBytes bs))+ _v))+ (Data.ProtoLens.Encoding.Wire.buildFieldSet+ (Lens.Family2.view Data.ProtoLens.unknownFields _x)))+instance Control.DeepSeq.NFData FinalizePsbtResponse where+ rnf+ = \ x__+ -> Control.DeepSeq.deepseq+ (_FinalizePsbtResponse'_unknownFields x__)+ (Control.DeepSeq.deepseq+ (_FinalizePsbtResponse'signedPsbt x__)+ (Control.DeepSeq.deepseq+ (_FinalizePsbtResponse'rawFinalTx x__) ()))+{- | Fields :+ + * 'Proto.Walletrpc.Walletkit_Fields.account' @:: Lens' FundPsbtRequest Data.Text.Text@+ * 'Proto.Walletrpc.Walletkit_Fields.minConfs' @:: Lens' FundPsbtRequest Data.Int.Int32@+ * 'Proto.Walletrpc.Walletkit_Fields.spendUnconfirmed' @:: Lens' FundPsbtRequest Prelude.Bool@+ * 'Proto.Walletrpc.Walletkit_Fields.maybe'template' @:: Lens' FundPsbtRequest (Prelude.Maybe FundPsbtRequest'Template)@+ * 'Proto.Walletrpc.Walletkit_Fields.maybe'psbt' @:: Lens' FundPsbtRequest (Prelude.Maybe Data.ByteString.ByteString)@+ * 'Proto.Walletrpc.Walletkit_Fields.psbt' @:: Lens' FundPsbtRequest Data.ByteString.ByteString@+ * 'Proto.Walletrpc.Walletkit_Fields.maybe'raw' @:: Lens' FundPsbtRequest (Prelude.Maybe TxTemplate)@+ * 'Proto.Walletrpc.Walletkit_Fields.raw' @:: Lens' FundPsbtRequest TxTemplate@+ * 'Proto.Walletrpc.Walletkit_Fields.maybe'fees' @:: Lens' FundPsbtRequest (Prelude.Maybe FundPsbtRequest'Fees)@+ * 'Proto.Walletrpc.Walletkit_Fields.maybe'targetConf' @:: Lens' FundPsbtRequest (Prelude.Maybe Data.Word.Word32)@+ * 'Proto.Walletrpc.Walletkit_Fields.targetConf' @:: Lens' FundPsbtRequest Data.Word.Word32@+ * 'Proto.Walletrpc.Walletkit_Fields.maybe'satPerVbyte' @:: Lens' FundPsbtRequest (Prelude.Maybe Data.Word.Word64)@+ * 'Proto.Walletrpc.Walletkit_Fields.satPerVbyte' @:: Lens' FundPsbtRequest Data.Word.Word64@ -}+data FundPsbtRequest+ = FundPsbtRequest'_constructor {_FundPsbtRequest'account :: !Data.Text.Text,+ _FundPsbtRequest'minConfs :: !Data.Int.Int32,+ _FundPsbtRequest'spendUnconfirmed :: !Prelude.Bool,+ _FundPsbtRequest'template :: !(Prelude.Maybe FundPsbtRequest'Template),+ _FundPsbtRequest'fees :: !(Prelude.Maybe FundPsbtRequest'Fees),+ _FundPsbtRequest'_unknownFields :: !Data.ProtoLens.FieldSet}+ deriving stock (Prelude.Eq, Prelude.Ord, GHC.Generics.Generic)+instance Prelude.Show FundPsbtRequest where+ showsPrec _ __x __s+ = Prelude.showChar+ '{'+ (Prelude.showString+ (Data.ProtoLens.showMessageShort __x) (Prelude.showChar '}' __s))+instance Text.PrettyPrint.GenericPretty.Out FundPsbtRequest+data FundPsbtRequest'Template+ = FundPsbtRequest'Psbt !Data.ByteString.ByteString |+ FundPsbtRequest'Raw !TxTemplate+ deriving stock (Prelude.Show,+ Prelude.Eq,+ Prelude.Ord,+ GHC.Generics.Generic)+data FundPsbtRequest'Fees+ = FundPsbtRequest'TargetConf !Data.Word.Word32 |+ FundPsbtRequest'SatPerVbyte !Data.Word.Word64+ deriving stock (Prelude.Show,+ Prelude.Eq,+ Prelude.Ord,+ GHC.Generics.Generic)+instance Text.PrettyPrint.GenericPretty.Out FundPsbtRequest'Template+instance Text.PrettyPrint.GenericPretty.Out FundPsbtRequest'Fees+instance Data.ProtoLens.Field.HasField FundPsbtRequest "account" Data.Text.Text where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _FundPsbtRequest'account+ (\ x__ y__ -> x__ {_FundPsbtRequest'account = y__}))+ Prelude.id+instance Data.ProtoLens.Field.HasField FundPsbtRequest "minConfs" Data.Int.Int32 where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _FundPsbtRequest'minConfs+ (\ x__ y__ -> x__ {_FundPsbtRequest'minConfs = y__}))+ Prelude.id+instance Data.ProtoLens.Field.HasField FundPsbtRequest "spendUnconfirmed" Prelude.Bool where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _FundPsbtRequest'spendUnconfirmed+ (\ x__ y__ -> x__ {_FundPsbtRequest'spendUnconfirmed = y__}))+ Prelude.id+instance Data.ProtoLens.Field.HasField FundPsbtRequest "maybe'template" (Prelude.Maybe FundPsbtRequest'Template) where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _FundPsbtRequest'template+ (\ x__ y__ -> x__ {_FundPsbtRequest'template = y__}))+ Prelude.id+instance Data.ProtoLens.Field.HasField FundPsbtRequest "maybe'psbt" (Prelude.Maybe Data.ByteString.ByteString) where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _FundPsbtRequest'template+ (\ x__ y__ -> x__ {_FundPsbtRequest'template = y__}))+ (Lens.Family2.Unchecked.lens+ (\ x__+ -> case x__ of+ (Prelude.Just (FundPsbtRequest'Psbt x__val)) -> Prelude.Just x__val+ _otherwise -> Prelude.Nothing)+ (\ _ y__ -> Prelude.fmap FundPsbtRequest'Psbt y__))+instance Data.ProtoLens.Field.HasField FundPsbtRequest "psbt" Data.ByteString.ByteString where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _FundPsbtRequest'template+ (\ x__ y__ -> x__ {_FundPsbtRequest'template = y__}))+ ((Prelude..)+ (Lens.Family2.Unchecked.lens+ (\ x__+ -> case x__ of+ (Prelude.Just (FundPsbtRequest'Psbt x__val)) -> Prelude.Just x__val+ _otherwise -> Prelude.Nothing)+ (\ _ y__ -> Prelude.fmap FundPsbtRequest'Psbt y__))+ (Data.ProtoLens.maybeLens Data.ProtoLens.fieldDefault))+instance Data.ProtoLens.Field.HasField FundPsbtRequest "maybe'raw" (Prelude.Maybe TxTemplate) where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _FundPsbtRequest'template+ (\ x__ y__ -> x__ {_FundPsbtRequest'template = y__}))+ (Lens.Family2.Unchecked.lens+ (\ x__+ -> case x__ of+ (Prelude.Just (FundPsbtRequest'Raw x__val)) -> Prelude.Just x__val+ _otherwise -> Prelude.Nothing)+ (\ _ y__ -> Prelude.fmap FundPsbtRequest'Raw y__))+instance Data.ProtoLens.Field.HasField FundPsbtRequest "raw" TxTemplate where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _FundPsbtRequest'template+ (\ x__ y__ -> x__ {_FundPsbtRequest'template = y__}))+ ((Prelude..)+ (Lens.Family2.Unchecked.lens+ (\ x__+ -> case x__ of+ (Prelude.Just (FundPsbtRequest'Raw x__val)) -> Prelude.Just x__val+ _otherwise -> Prelude.Nothing)+ (\ _ y__ -> Prelude.fmap FundPsbtRequest'Raw y__))+ (Data.ProtoLens.maybeLens Data.ProtoLens.defMessage))+instance Data.ProtoLens.Field.HasField FundPsbtRequest "maybe'fees" (Prelude.Maybe FundPsbtRequest'Fees) where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _FundPsbtRequest'fees+ (\ x__ y__ -> x__ {_FundPsbtRequest'fees = y__}))+ Prelude.id+instance Data.ProtoLens.Field.HasField FundPsbtRequest "maybe'targetConf" (Prelude.Maybe Data.Word.Word32) where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _FundPsbtRequest'fees+ (\ x__ y__ -> x__ {_FundPsbtRequest'fees = y__}))+ (Lens.Family2.Unchecked.lens+ (\ x__+ -> case x__ of+ (Prelude.Just (FundPsbtRequest'TargetConf x__val))+ -> Prelude.Just x__val+ _otherwise -> Prelude.Nothing)+ (\ _ y__ -> Prelude.fmap FundPsbtRequest'TargetConf y__))+instance Data.ProtoLens.Field.HasField FundPsbtRequest "targetConf" Data.Word.Word32 where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _FundPsbtRequest'fees+ (\ x__ y__ -> x__ {_FundPsbtRequest'fees = y__}))+ ((Prelude..)+ (Lens.Family2.Unchecked.lens+ (\ x__+ -> case x__ of+ (Prelude.Just (FundPsbtRequest'TargetConf x__val))+ -> Prelude.Just x__val+ _otherwise -> Prelude.Nothing)+ (\ _ y__ -> Prelude.fmap FundPsbtRequest'TargetConf y__))+ (Data.ProtoLens.maybeLens Data.ProtoLens.fieldDefault))+instance Data.ProtoLens.Field.HasField FundPsbtRequest "maybe'satPerVbyte" (Prelude.Maybe Data.Word.Word64) where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _FundPsbtRequest'fees+ (\ x__ y__ -> x__ {_FundPsbtRequest'fees = y__}))+ (Lens.Family2.Unchecked.lens+ (\ x__+ -> case x__ of+ (Prelude.Just (FundPsbtRequest'SatPerVbyte x__val))+ -> Prelude.Just x__val+ _otherwise -> Prelude.Nothing)+ (\ _ y__ -> Prelude.fmap FundPsbtRequest'SatPerVbyte y__))+instance Data.ProtoLens.Field.HasField FundPsbtRequest "satPerVbyte" Data.Word.Word64 where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _FundPsbtRequest'fees+ (\ x__ y__ -> x__ {_FundPsbtRequest'fees = y__}))+ ((Prelude..)+ (Lens.Family2.Unchecked.lens+ (\ x__+ -> case x__ of+ (Prelude.Just (FundPsbtRequest'SatPerVbyte x__val))+ -> Prelude.Just x__val+ _otherwise -> Prelude.Nothing)+ (\ _ y__ -> Prelude.fmap FundPsbtRequest'SatPerVbyte y__))+ (Data.ProtoLens.maybeLens Data.ProtoLens.fieldDefault))+instance Data.ProtoLens.Message FundPsbtRequest where+ messageName _ = Data.Text.pack "walletrpc.FundPsbtRequest"+ packedMessageDescriptor _+ = "\n\+ \\SIFundPsbtRequest\DC2\DC4\n\+ \\EOTpsbt\CAN\SOH \SOH(\fH\NULR\EOTpsbt\DC2)\n\+ \\ETXraw\CAN\STX \SOH(\v2\NAK.walletrpc.TxTemplateH\NULR\ETXraw\DC2!\n\+ \\vtarget_conf\CAN\ETX \SOH(\rH\SOHR\n\+ \targetConf\DC2$\n\+ \\rsat_per_vbyte\CAN\EOT \SOH(\EOTH\SOHR\vsatPerVbyte\DC2\CAN\n\+ \\aaccount\CAN\ENQ \SOH(\tR\aaccount\DC2\ESC\n\+ \\tmin_confs\CAN\ACK \SOH(\ENQR\bminConfs\DC2+\n\+ \\DC1spend_unconfirmed\CAN\a \SOH(\bR\DLEspendUnconfirmedB\n\+ \\n\+ \\btemplateB\ACK\n\+ \\EOTfees"+ packedFileDescriptor _ = packedFileDescriptor+ fieldsByTag+ = let+ account__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "account"+ (Data.ProtoLens.ScalarField Data.ProtoLens.StringField ::+ Data.ProtoLens.FieldTypeDescriptor Data.Text.Text)+ (Data.ProtoLens.PlainField+ Data.ProtoLens.Optional (Data.ProtoLens.Field.field @"account")) ::+ Data.ProtoLens.FieldDescriptor FundPsbtRequest+ minConfs__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "min_confs"+ (Data.ProtoLens.ScalarField Data.ProtoLens.Int32Field ::+ Data.ProtoLens.FieldTypeDescriptor Data.Int.Int32)+ (Data.ProtoLens.PlainField+ Data.ProtoLens.Optional+ (Data.ProtoLens.Field.field @"minConfs")) ::+ Data.ProtoLens.FieldDescriptor FundPsbtRequest+ spendUnconfirmed__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "spend_unconfirmed"+ (Data.ProtoLens.ScalarField Data.ProtoLens.BoolField ::+ Data.ProtoLens.FieldTypeDescriptor Prelude.Bool)+ (Data.ProtoLens.PlainField+ Data.ProtoLens.Optional+ (Data.ProtoLens.Field.field @"spendUnconfirmed")) ::+ Data.ProtoLens.FieldDescriptor FundPsbtRequest+ psbt__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "psbt"+ (Data.ProtoLens.ScalarField Data.ProtoLens.BytesField ::+ Data.ProtoLens.FieldTypeDescriptor Data.ByteString.ByteString)+ (Data.ProtoLens.OptionalField+ (Data.ProtoLens.Field.field @"maybe'psbt")) ::+ Data.ProtoLens.FieldDescriptor FundPsbtRequest+ raw__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "raw"+ (Data.ProtoLens.MessageField Data.ProtoLens.MessageType ::+ Data.ProtoLens.FieldTypeDescriptor TxTemplate)+ (Data.ProtoLens.OptionalField+ (Data.ProtoLens.Field.field @"maybe'raw")) ::+ Data.ProtoLens.FieldDescriptor FundPsbtRequest+ targetConf__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "target_conf"+ (Data.ProtoLens.ScalarField Data.ProtoLens.UInt32Field ::+ Data.ProtoLens.FieldTypeDescriptor Data.Word.Word32)+ (Data.ProtoLens.OptionalField+ (Data.ProtoLens.Field.field @"maybe'targetConf")) ::+ Data.ProtoLens.FieldDescriptor FundPsbtRequest+ satPerVbyte__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "sat_per_vbyte"+ (Data.ProtoLens.ScalarField Data.ProtoLens.UInt64Field ::+ Data.ProtoLens.FieldTypeDescriptor Data.Word.Word64)+ (Data.ProtoLens.OptionalField+ (Data.ProtoLens.Field.field @"maybe'satPerVbyte")) ::+ Data.ProtoLens.FieldDescriptor FundPsbtRequest+ in+ Data.Map.fromList+ [(Data.ProtoLens.Tag 5, account__field_descriptor),+ (Data.ProtoLens.Tag 6, minConfs__field_descriptor),+ (Data.ProtoLens.Tag 7, spendUnconfirmed__field_descriptor),+ (Data.ProtoLens.Tag 1, psbt__field_descriptor),+ (Data.ProtoLens.Tag 2, raw__field_descriptor),+ (Data.ProtoLens.Tag 3, targetConf__field_descriptor),+ (Data.ProtoLens.Tag 4, satPerVbyte__field_descriptor)]+ unknownFields+ = Lens.Family2.Unchecked.lens+ _FundPsbtRequest'_unknownFields+ (\ x__ y__ -> x__ {_FundPsbtRequest'_unknownFields = y__})+ defMessage+ = FundPsbtRequest'_constructor+ {_FundPsbtRequest'account = Data.ProtoLens.fieldDefault,+ _FundPsbtRequest'minConfs = Data.ProtoLens.fieldDefault,+ _FundPsbtRequest'spendUnconfirmed = Data.ProtoLens.fieldDefault,+ _FundPsbtRequest'template = Prelude.Nothing,+ _FundPsbtRequest'fees = Prelude.Nothing,+ _FundPsbtRequest'_unknownFields = []}+ parseMessage+ = let+ loop ::+ FundPsbtRequest+ -> Data.ProtoLens.Encoding.Bytes.Parser FundPsbtRequest+ loop x+ = do end <- Data.ProtoLens.Encoding.Bytes.atEnd+ if end then+ do (let missing = []+ in+ if Prelude.null missing then+ Prelude.return ()+ else+ Prelude.fail+ ((Prelude.++)+ "Missing required fields: "+ (Prelude.show (missing :: [Prelude.String]))))+ Prelude.return+ (Lens.Family2.over+ Data.ProtoLens.unknownFields (\ !t -> Prelude.reverse t) x)+ else+ do tag <- Data.ProtoLens.Encoding.Bytes.getVarInt+ case tag of+ 42+ -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (do value <- do len <- Data.ProtoLens.Encoding.Bytes.getVarInt+ Data.ProtoLens.Encoding.Bytes.getBytes+ (Prelude.fromIntegral len)+ Data.ProtoLens.Encoding.Bytes.runEither+ (case Data.Text.Encoding.decodeUtf8' value of+ (Prelude.Left err)+ -> Prelude.Left (Prelude.show err)+ (Prelude.Right r) -> Prelude.Right r))+ "account"+ loop (Lens.Family2.set (Data.ProtoLens.Field.field @"account") y x)+ 48+ -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (Prelude.fmap+ Prelude.fromIntegral+ Data.ProtoLens.Encoding.Bytes.getVarInt)+ "min_confs"+ loop+ (Lens.Family2.set (Data.ProtoLens.Field.field @"minConfs") y x)+ 56+ -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (Prelude.fmap+ ((Prelude./=) 0) Data.ProtoLens.Encoding.Bytes.getVarInt)+ "spend_unconfirmed"+ loop+ (Lens.Family2.set+ (Data.ProtoLens.Field.field @"spendUnconfirmed") y x)+ 10+ -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (do len <- Data.ProtoLens.Encoding.Bytes.getVarInt+ Data.ProtoLens.Encoding.Bytes.getBytes+ (Prelude.fromIntegral len))+ "psbt"+ loop (Lens.Family2.set (Data.ProtoLens.Field.field @"psbt") y x)+ 18+ -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (do len <- Data.ProtoLens.Encoding.Bytes.getVarInt+ Data.ProtoLens.Encoding.Bytes.isolate+ (Prelude.fromIntegral len) Data.ProtoLens.parseMessage)+ "raw"+ loop (Lens.Family2.set (Data.ProtoLens.Field.field @"raw") y x)+ 24+ -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (Prelude.fmap+ Prelude.fromIntegral+ Data.ProtoLens.Encoding.Bytes.getVarInt)+ "target_conf"+ loop+ (Lens.Family2.set (Data.ProtoLens.Field.field @"targetConf") y x)+ 32+ -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ Data.ProtoLens.Encoding.Bytes.getVarInt "sat_per_vbyte"+ loop+ (Lens.Family2.set (Data.ProtoLens.Field.field @"satPerVbyte") y x)+ wire+ -> do !y <- Data.ProtoLens.Encoding.Wire.parseTaggedValueFromWire+ wire+ loop+ (Lens.Family2.over+ Data.ProtoLens.unknownFields (\ !t -> (:) y t) x)+ in+ (Data.ProtoLens.Encoding.Bytes.<?>)+ (do loop Data.ProtoLens.defMessage) "FundPsbtRequest"+ buildMessage+ = \ _x+ -> (Data.Monoid.<>)+ (let+ _v = Lens.Family2.view (Data.ProtoLens.Field.field @"account") _x+ in+ if (Prelude.==) _v Data.ProtoLens.fieldDefault then+ Data.Monoid.mempty+ else+ (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 42)+ ((Prelude..)+ (\ bs+ -> (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt+ (Prelude.fromIntegral (Data.ByteString.length bs)))+ (Data.ProtoLens.Encoding.Bytes.putBytes bs))+ Data.Text.Encoding.encodeUtf8 _v))+ ((Data.Monoid.<>)+ (let+ _v = Lens.Family2.view (Data.ProtoLens.Field.field @"minConfs") _x+ in+ if (Prelude.==) _v Data.ProtoLens.fieldDefault then+ Data.Monoid.mempty+ else+ (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 48)+ ((Prelude..)+ Data.ProtoLens.Encoding.Bytes.putVarInt Prelude.fromIntegral _v))+ ((Data.Monoid.<>)+ (let+ _v+ = Lens.Family2.view+ (Data.ProtoLens.Field.field @"spendUnconfirmed") _x+ in+ if (Prelude.==) _v Data.ProtoLens.fieldDefault then+ Data.Monoid.mempty+ else+ (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 56)+ ((Prelude..)+ Data.ProtoLens.Encoding.Bytes.putVarInt (\ b -> if b then 1 else 0)+ _v))+ ((Data.Monoid.<>)+ (case+ Lens.Family2.view (Data.ProtoLens.Field.field @"maybe'template") _x+ of+ Prelude.Nothing -> Data.Monoid.mempty+ (Prelude.Just (FundPsbtRequest'Psbt v))+ -> (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 10)+ ((\ bs+ -> (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt+ (Prelude.fromIntegral (Data.ByteString.length bs)))+ (Data.ProtoLens.Encoding.Bytes.putBytes bs))+ v)+ (Prelude.Just (FundPsbtRequest'Raw v))+ -> (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 18)+ ((Prelude..)+ (\ bs+ -> (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt+ (Prelude.fromIntegral (Data.ByteString.length bs)))+ (Data.ProtoLens.Encoding.Bytes.putBytes bs))+ Data.ProtoLens.encodeMessage v))+ ((Data.Monoid.<>)+ (case+ Lens.Family2.view (Data.ProtoLens.Field.field @"maybe'fees") _x+ of+ Prelude.Nothing -> Data.Monoid.mempty+ (Prelude.Just (FundPsbtRequest'TargetConf v))+ -> (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 24)+ ((Prelude..)+ Data.ProtoLens.Encoding.Bytes.putVarInt Prelude.fromIntegral+ v)+ (Prelude.Just (FundPsbtRequest'SatPerVbyte v))+ -> (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 32)+ (Data.ProtoLens.Encoding.Bytes.putVarInt v))+ (Data.ProtoLens.Encoding.Wire.buildFieldSet+ (Lens.Family2.view Data.ProtoLens.unknownFields _x))))))+instance Control.DeepSeq.NFData FundPsbtRequest where+ rnf+ = \ x__+ -> Control.DeepSeq.deepseq+ (_FundPsbtRequest'_unknownFields x__)+ (Control.DeepSeq.deepseq+ (_FundPsbtRequest'account x__)+ (Control.DeepSeq.deepseq+ (_FundPsbtRequest'minConfs x__)+ (Control.DeepSeq.deepseq+ (_FundPsbtRequest'spendUnconfirmed x__)+ (Control.DeepSeq.deepseq+ (_FundPsbtRequest'template x__)+ (Control.DeepSeq.deepseq (_FundPsbtRequest'fees x__) ())))))+instance Control.DeepSeq.NFData FundPsbtRequest'Template where+ rnf (FundPsbtRequest'Psbt x__) = Control.DeepSeq.rnf x__+ rnf (FundPsbtRequest'Raw x__) = Control.DeepSeq.rnf x__+instance Control.DeepSeq.NFData FundPsbtRequest'Fees where+ rnf (FundPsbtRequest'TargetConf x__) = Control.DeepSeq.rnf x__+ rnf (FundPsbtRequest'SatPerVbyte x__) = Control.DeepSeq.rnf x__+_FundPsbtRequest'Psbt ::+ Data.ProtoLens.Prism.Prism' FundPsbtRequest'Template Data.ByteString.ByteString+_FundPsbtRequest'Psbt+ = Data.ProtoLens.Prism.prism'+ FundPsbtRequest'Psbt+ (\ p__+ -> case p__ of+ (FundPsbtRequest'Psbt p__val) -> Prelude.Just p__val+ _otherwise -> Prelude.Nothing)+_FundPsbtRequest'Raw ::+ Data.ProtoLens.Prism.Prism' FundPsbtRequest'Template TxTemplate+_FundPsbtRequest'Raw+ = Data.ProtoLens.Prism.prism'+ FundPsbtRequest'Raw+ (\ p__+ -> case p__ of+ (FundPsbtRequest'Raw p__val) -> Prelude.Just p__val+ _otherwise -> Prelude.Nothing)+_FundPsbtRequest'TargetConf ::+ Data.ProtoLens.Prism.Prism' FundPsbtRequest'Fees Data.Word.Word32+_FundPsbtRequest'TargetConf+ = Data.ProtoLens.Prism.prism'+ FundPsbtRequest'TargetConf+ (\ p__+ -> case p__ of+ (FundPsbtRequest'TargetConf p__val) -> Prelude.Just p__val+ _otherwise -> Prelude.Nothing)+_FundPsbtRequest'SatPerVbyte ::+ Data.ProtoLens.Prism.Prism' FundPsbtRequest'Fees Data.Word.Word64+_FundPsbtRequest'SatPerVbyte+ = Data.ProtoLens.Prism.prism'+ FundPsbtRequest'SatPerVbyte+ (\ p__+ -> case p__ of+ (FundPsbtRequest'SatPerVbyte p__val) -> Prelude.Just p__val+ _otherwise -> Prelude.Nothing)+{- | Fields :+ + * 'Proto.Walletrpc.Walletkit_Fields.fundedPsbt' @:: Lens' FundPsbtResponse Data.ByteString.ByteString@+ * 'Proto.Walletrpc.Walletkit_Fields.changeOutputIndex' @:: Lens' FundPsbtResponse Data.Int.Int32@+ * 'Proto.Walletrpc.Walletkit_Fields.lockedUtxos' @:: Lens' FundPsbtResponse [UtxoLease]@+ * 'Proto.Walletrpc.Walletkit_Fields.vec'lockedUtxos' @:: Lens' FundPsbtResponse (Data.Vector.Vector UtxoLease)@ -}+data FundPsbtResponse+ = FundPsbtResponse'_constructor {_FundPsbtResponse'fundedPsbt :: !Data.ByteString.ByteString,+ _FundPsbtResponse'changeOutputIndex :: !Data.Int.Int32,+ _FundPsbtResponse'lockedUtxos :: !(Data.Vector.Vector UtxoLease),+ _FundPsbtResponse'_unknownFields :: !Data.ProtoLens.FieldSet}+ deriving stock (Prelude.Eq, Prelude.Ord, GHC.Generics.Generic)+instance Prelude.Show FundPsbtResponse where+ showsPrec _ __x __s+ = Prelude.showChar+ '{'+ (Prelude.showString+ (Data.ProtoLens.showMessageShort __x) (Prelude.showChar '}' __s))+instance Text.PrettyPrint.GenericPretty.Out FundPsbtResponse+instance Data.ProtoLens.Field.HasField FundPsbtResponse "fundedPsbt" Data.ByteString.ByteString where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _FundPsbtResponse'fundedPsbt+ (\ x__ y__ -> x__ {_FundPsbtResponse'fundedPsbt = y__}))+ Prelude.id+instance Data.ProtoLens.Field.HasField FundPsbtResponse "changeOutputIndex" Data.Int.Int32 where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _FundPsbtResponse'changeOutputIndex+ (\ x__ y__ -> x__ {_FundPsbtResponse'changeOutputIndex = y__}))+ Prelude.id+instance Data.ProtoLens.Field.HasField FundPsbtResponse "lockedUtxos" [UtxoLease] where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _FundPsbtResponse'lockedUtxos+ (\ x__ y__ -> x__ {_FundPsbtResponse'lockedUtxos = y__}))+ (Lens.Family2.Unchecked.lens+ Data.Vector.Generic.toList+ (\ _ y__ -> Data.Vector.Generic.fromList y__))+instance Data.ProtoLens.Field.HasField FundPsbtResponse "vec'lockedUtxos" (Data.Vector.Vector UtxoLease) where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _FundPsbtResponse'lockedUtxos+ (\ x__ y__ -> x__ {_FundPsbtResponse'lockedUtxos = y__}))+ Prelude.id+instance Data.ProtoLens.Message FundPsbtResponse where+ messageName _ = Data.Text.pack "walletrpc.FundPsbtResponse"+ packedMessageDescriptor _+ = "\n\+ \\DLEFundPsbtResponse\DC2\US\n\+ \\vfunded_psbt\CAN\SOH \SOH(\fR\n\+ \fundedPsbt\DC2.\n\+ \\DC3change_output_index\CAN\STX \SOH(\ENQR\DC1changeOutputIndex\DC27\n\+ \\flocked_utxos\CAN\ETX \ETX(\v2\DC4.walletrpc.UtxoLeaseR\vlockedUtxos"+ packedFileDescriptor _ = packedFileDescriptor+ fieldsByTag+ = let+ fundedPsbt__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "funded_psbt"+ (Data.ProtoLens.ScalarField Data.ProtoLens.BytesField ::+ Data.ProtoLens.FieldTypeDescriptor Data.ByteString.ByteString)+ (Data.ProtoLens.PlainField+ Data.ProtoLens.Optional+ (Data.ProtoLens.Field.field @"fundedPsbt")) ::+ Data.ProtoLens.FieldDescriptor FundPsbtResponse+ changeOutputIndex__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "change_output_index"+ (Data.ProtoLens.ScalarField Data.ProtoLens.Int32Field ::+ Data.ProtoLens.FieldTypeDescriptor Data.Int.Int32)+ (Data.ProtoLens.PlainField+ Data.ProtoLens.Optional+ (Data.ProtoLens.Field.field @"changeOutputIndex")) ::+ Data.ProtoLens.FieldDescriptor FundPsbtResponse+ lockedUtxos__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "locked_utxos"+ (Data.ProtoLens.MessageField Data.ProtoLens.MessageType ::+ Data.ProtoLens.FieldTypeDescriptor UtxoLease)+ (Data.ProtoLens.RepeatedField+ Data.ProtoLens.Unpacked+ (Data.ProtoLens.Field.field @"lockedUtxos")) ::+ Data.ProtoLens.FieldDescriptor FundPsbtResponse+ in+ Data.Map.fromList+ [(Data.ProtoLens.Tag 1, fundedPsbt__field_descriptor),+ (Data.ProtoLens.Tag 2, changeOutputIndex__field_descriptor),+ (Data.ProtoLens.Tag 3, lockedUtxos__field_descriptor)]+ unknownFields+ = Lens.Family2.Unchecked.lens+ _FundPsbtResponse'_unknownFields+ (\ x__ y__ -> x__ {_FundPsbtResponse'_unknownFields = y__})+ defMessage+ = FundPsbtResponse'_constructor+ {_FundPsbtResponse'fundedPsbt = Data.ProtoLens.fieldDefault,+ _FundPsbtResponse'changeOutputIndex = Data.ProtoLens.fieldDefault,+ _FundPsbtResponse'lockedUtxos = Data.Vector.Generic.empty,+ _FundPsbtResponse'_unknownFields = []}+ parseMessage+ = let+ loop ::+ FundPsbtResponse+ -> Data.ProtoLens.Encoding.Growing.Growing Data.Vector.Vector Data.ProtoLens.Encoding.Growing.RealWorld UtxoLease+ -> Data.ProtoLens.Encoding.Bytes.Parser FundPsbtResponse+ loop x mutable'lockedUtxos+ = do end <- Data.ProtoLens.Encoding.Bytes.atEnd+ if end then+ do frozen'lockedUtxos <- Data.ProtoLens.Encoding.Parser.Unsafe.unsafeLiftIO+ (Data.ProtoLens.Encoding.Growing.unsafeFreeze+ mutable'lockedUtxos)+ (let missing = []+ in+ if Prelude.null missing then+ Prelude.return ()+ else+ Prelude.fail+ ((Prelude.++)+ "Missing required fields: "+ (Prelude.show (missing :: [Prelude.String]))))+ Prelude.return+ (Lens.Family2.over+ Data.ProtoLens.unknownFields (\ !t -> Prelude.reverse t)+ (Lens.Family2.set+ (Data.ProtoLens.Field.field @"vec'lockedUtxos") frozen'lockedUtxos+ x))+ else+ do tag <- Data.ProtoLens.Encoding.Bytes.getVarInt+ case tag of+ 10+ -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (do len <- Data.ProtoLens.Encoding.Bytes.getVarInt+ Data.ProtoLens.Encoding.Bytes.getBytes+ (Prelude.fromIntegral len))+ "funded_psbt"+ loop+ (Lens.Family2.set (Data.ProtoLens.Field.field @"fundedPsbt") y x)+ mutable'lockedUtxos+ 16+ -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (Prelude.fmap+ Prelude.fromIntegral+ Data.ProtoLens.Encoding.Bytes.getVarInt)+ "change_output_index"+ loop+ (Lens.Family2.set+ (Data.ProtoLens.Field.field @"changeOutputIndex") y x)+ mutable'lockedUtxos+ 26+ -> do !y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (do len <- Data.ProtoLens.Encoding.Bytes.getVarInt+ Data.ProtoLens.Encoding.Bytes.isolate+ (Prelude.fromIntegral len)+ Data.ProtoLens.parseMessage)+ "locked_utxos"+ v <- Data.ProtoLens.Encoding.Parser.Unsafe.unsafeLiftIO+ (Data.ProtoLens.Encoding.Growing.append+ mutable'lockedUtxos y)+ loop x v+ wire+ -> do !y <- Data.ProtoLens.Encoding.Wire.parseTaggedValueFromWire+ wire+ loop+ (Lens.Family2.over+ Data.ProtoLens.unknownFields (\ !t -> (:) y t) x)+ mutable'lockedUtxos+ in+ (Data.ProtoLens.Encoding.Bytes.<?>)+ (do mutable'lockedUtxos <- Data.ProtoLens.Encoding.Parser.Unsafe.unsafeLiftIO+ Data.ProtoLens.Encoding.Growing.new+ loop Data.ProtoLens.defMessage mutable'lockedUtxos)+ "FundPsbtResponse"+ buildMessage+ = \ _x+ -> (Data.Monoid.<>)+ (let+ _v+ = Lens.Family2.view (Data.ProtoLens.Field.field @"fundedPsbt") _x+ in+ if (Prelude.==) _v Data.ProtoLens.fieldDefault then+ Data.Monoid.mempty+ else+ (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 10)+ ((\ bs+ -> (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt+ (Prelude.fromIntegral (Data.ByteString.length bs)))+ (Data.ProtoLens.Encoding.Bytes.putBytes bs))+ _v))+ ((Data.Monoid.<>)+ (let+ _v+ = Lens.Family2.view+ (Data.ProtoLens.Field.field @"changeOutputIndex") _x+ in+ if (Prelude.==) _v Data.ProtoLens.fieldDefault then+ Data.Monoid.mempty+ else+ (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 16)+ ((Prelude..)+ Data.ProtoLens.Encoding.Bytes.putVarInt Prelude.fromIntegral _v))+ ((Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.foldMapBuilder+ (\ _v+ -> (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 26)+ ((Prelude..)+ (\ bs+ -> (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt+ (Prelude.fromIntegral (Data.ByteString.length bs)))+ (Data.ProtoLens.Encoding.Bytes.putBytes bs))+ Data.ProtoLens.encodeMessage _v))+ (Lens.Family2.view+ (Data.ProtoLens.Field.field @"vec'lockedUtxos") _x))+ (Data.ProtoLens.Encoding.Wire.buildFieldSet+ (Lens.Family2.view Data.ProtoLens.unknownFields _x))))+instance Control.DeepSeq.NFData FundPsbtResponse where+ rnf+ = \ x__+ -> Control.DeepSeq.deepseq+ (_FundPsbtResponse'_unknownFields x__)+ (Control.DeepSeq.deepseq+ (_FundPsbtResponse'fundedPsbt x__)+ (Control.DeepSeq.deepseq+ (_FundPsbtResponse'changeOutputIndex x__)+ (Control.DeepSeq.deepseq (_FundPsbtResponse'lockedUtxos x__) ())))+{- | Fields :+ + * 'Proto.Walletrpc.Walletkit_Fields.name' @:: Lens' ImportAccountRequest Data.Text.Text@+ * 'Proto.Walletrpc.Walletkit_Fields.extendedPublicKey' @:: Lens' ImportAccountRequest Data.Text.Text@+ * 'Proto.Walletrpc.Walletkit_Fields.masterKeyFingerprint' @:: Lens' ImportAccountRequest Data.ByteString.ByteString@+ * 'Proto.Walletrpc.Walletkit_Fields.addressType' @:: Lens' ImportAccountRequest AddressType@+ * 'Proto.Walletrpc.Walletkit_Fields.dryRun' @:: Lens' ImportAccountRequest Prelude.Bool@ -}+data ImportAccountRequest+ = ImportAccountRequest'_constructor {_ImportAccountRequest'name :: !Data.Text.Text,+ _ImportAccountRequest'extendedPublicKey :: !Data.Text.Text,+ _ImportAccountRequest'masterKeyFingerprint :: !Data.ByteString.ByteString,+ _ImportAccountRequest'addressType :: !AddressType,+ _ImportAccountRequest'dryRun :: !Prelude.Bool,+ _ImportAccountRequest'_unknownFields :: !Data.ProtoLens.FieldSet}+ deriving stock (Prelude.Eq, Prelude.Ord, GHC.Generics.Generic)+instance Prelude.Show ImportAccountRequest where+ showsPrec _ __x __s+ = Prelude.showChar+ '{'+ (Prelude.showString+ (Data.ProtoLens.showMessageShort __x) (Prelude.showChar '}' __s))+instance Text.PrettyPrint.GenericPretty.Out ImportAccountRequest+instance Data.ProtoLens.Field.HasField ImportAccountRequest "name" Data.Text.Text where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _ImportAccountRequest'name+ (\ x__ y__ -> x__ {_ImportAccountRequest'name = y__}))+ Prelude.id+instance Data.ProtoLens.Field.HasField ImportAccountRequest "extendedPublicKey" Data.Text.Text where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _ImportAccountRequest'extendedPublicKey+ (\ x__ y__ -> x__ {_ImportAccountRequest'extendedPublicKey = y__}))+ Prelude.id+instance Data.ProtoLens.Field.HasField ImportAccountRequest "masterKeyFingerprint" Data.ByteString.ByteString where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _ImportAccountRequest'masterKeyFingerprint+ (\ x__ y__+ -> x__ {_ImportAccountRequest'masterKeyFingerprint = y__}))+ Prelude.id+instance Data.ProtoLens.Field.HasField ImportAccountRequest "addressType" AddressType where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _ImportAccountRequest'addressType+ (\ x__ y__ -> x__ {_ImportAccountRequest'addressType = y__}))+ Prelude.id+instance Data.ProtoLens.Field.HasField ImportAccountRequest "dryRun" Prelude.Bool where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _ImportAccountRequest'dryRun+ (\ x__ y__ -> x__ {_ImportAccountRequest'dryRun = y__}))+ Prelude.id+instance Data.ProtoLens.Message ImportAccountRequest where+ messageName _ = Data.Text.pack "walletrpc.ImportAccountRequest"+ packedMessageDescriptor _+ = "\n\+ \\DC4ImportAccountRequest\DC2\DC2\n\+ \\EOTname\CAN\SOH \SOH(\tR\EOTname\DC2.\n\+ \\DC3extended_public_key\CAN\STX \SOH(\tR\DC1extendedPublicKey\DC24\n\+ \\SYNmaster_key_fingerprint\CAN\ETX \SOH(\fR\DC4masterKeyFingerprint\DC29\n\+ \\faddress_type\CAN\EOT \SOH(\SO2\SYN.walletrpc.AddressTypeR\vaddressType\DC2\ETB\n\+ \\adry_run\CAN\ENQ \SOH(\bR\ACKdryRun"+ packedFileDescriptor _ = packedFileDescriptor+ fieldsByTag+ = let+ name__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "name"+ (Data.ProtoLens.ScalarField Data.ProtoLens.StringField ::+ Data.ProtoLens.FieldTypeDescriptor Data.Text.Text)+ (Data.ProtoLens.PlainField+ Data.ProtoLens.Optional (Data.ProtoLens.Field.field @"name")) ::+ Data.ProtoLens.FieldDescriptor ImportAccountRequest+ extendedPublicKey__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "extended_public_key"+ (Data.ProtoLens.ScalarField Data.ProtoLens.StringField ::+ Data.ProtoLens.FieldTypeDescriptor Data.Text.Text)+ (Data.ProtoLens.PlainField+ Data.ProtoLens.Optional+ (Data.ProtoLens.Field.field @"extendedPublicKey")) ::+ Data.ProtoLens.FieldDescriptor ImportAccountRequest+ masterKeyFingerprint__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "master_key_fingerprint"+ (Data.ProtoLens.ScalarField Data.ProtoLens.BytesField ::+ Data.ProtoLens.FieldTypeDescriptor Data.ByteString.ByteString)+ (Data.ProtoLens.PlainField+ Data.ProtoLens.Optional+ (Data.ProtoLens.Field.field @"masterKeyFingerprint")) ::+ Data.ProtoLens.FieldDescriptor ImportAccountRequest+ addressType__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "address_type"+ (Data.ProtoLens.ScalarField Data.ProtoLens.EnumField ::+ Data.ProtoLens.FieldTypeDescriptor AddressType)+ (Data.ProtoLens.PlainField+ Data.ProtoLens.Optional+ (Data.ProtoLens.Field.field @"addressType")) ::+ Data.ProtoLens.FieldDescriptor ImportAccountRequest+ dryRun__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "dry_run"+ (Data.ProtoLens.ScalarField Data.ProtoLens.BoolField ::+ Data.ProtoLens.FieldTypeDescriptor Prelude.Bool)+ (Data.ProtoLens.PlainField+ Data.ProtoLens.Optional (Data.ProtoLens.Field.field @"dryRun")) ::+ Data.ProtoLens.FieldDescriptor ImportAccountRequest+ in+ Data.Map.fromList+ [(Data.ProtoLens.Tag 1, name__field_descriptor),+ (Data.ProtoLens.Tag 2, extendedPublicKey__field_descriptor),+ (Data.ProtoLens.Tag 3, masterKeyFingerprint__field_descriptor),+ (Data.ProtoLens.Tag 4, addressType__field_descriptor),+ (Data.ProtoLens.Tag 5, dryRun__field_descriptor)]+ unknownFields+ = Lens.Family2.Unchecked.lens+ _ImportAccountRequest'_unknownFields+ (\ x__ y__ -> x__ {_ImportAccountRequest'_unknownFields = y__})+ defMessage+ = ImportAccountRequest'_constructor+ {_ImportAccountRequest'name = Data.ProtoLens.fieldDefault,+ _ImportAccountRequest'extendedPublicKey = Data.ProtoLens.fieldDefault,+ _ImportAccountRequest'masterKeyFingerprint = Data.ProtoLens.fieldDefault,+ _ImportAccountRequest'addressType = Data.ProtoLens.fieldDefault,+ _ImportAccountRequest'dryRun = Data.ProtoLens.fieldDefault,+ _ImportAccountRequest'_unknownFields = []}+ parseMessage+ = let+ loop ::+ ImportAccountRequest+ -> Data.ProtoLens.Encoding.Bytes.Parser ImportAccountRequest+ loop x+ = do end <- Data.ProtoLens.Encoding.Bytes.atEnd+ if end then+ do (let missing = []+ in+ if Prelude.null missing then+ Prelude.return ()+ else+ Prelude.fail+ ((Prelude.++)+ "Missing required fields: "+ (Prelude.show (missing :: [Prelude.String]))))+ Prelude.return+ (Lens.Family2.over+ Data.ProtoLens.unknownFields (\ !t -> Prelude.reverse t) x)+ else+ do tag <- Data.ProtoLens.Encoding.Bytes.getVarInt+ case tag of+ 10+ -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (do value <- do len <- Data.ProtoLens.Encoding.Bytes.getVarInt+ Data.ProtoLens.Encoding.Bytes.getBytes+ (Prelude.fromIntegral len)+ Data.ProtoLens.Encoding.Bytes.runEither+ (case Data.Text.Encoding.decodeUtf8' value of+ (Prelude.Left err)+ -> Prelude.Left (Prelude.show err)+ (Prelude.Right r) -> Prelude.Right r))+ "name"+ loop (Lens.Family2.set (Data.ProtoLens.Field.field @"name") y x)+ 18+ -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (do value <- do len <- Data.ProtoLens.Encoding.Bytes.getVarInt+ Data.ProtoLens.Encoding.Bytes.getBytes+ (Prelude.fromIntegral len)+ Data.ProtoLens.Encoding.Bytes.runEither+ (case Data.Text.Encoding.decodeUtf8' value of+ (Prelude.Left err)+ -> Prelude.Left (Prelude.show err)+ (Prelude.Right r) -> Prelude.Right r))+ "extended_public_key"+ loop+ (Lens.Family2.set+ (Data.ProtoLens.Field.field @"extendedPublicKey") y x)+ 26+ -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (do len <- Data.ProtoLens.Encoding.Bytes.getVarInt+ Data.ProtoLens.Encoding.Bytes.getBytes+ (Prelude.fromIntegral len))+ "master_key_fingerprint"+ loop+ (Lens.Family2.set+ (Data.ProtoLens.Field.field @"masterKeyFingerprint") y x)+ 32+ -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (Prelude.fmap+ Prelude.toEnum+ (Prelude.fmap+ Prelude.fromIntegral+ Data.ProtoLens.Encoding.Bytes.getVarInt))+ "address_type"+ loop+ (Lens.Family2.set (Data.ProtoLens.Field.field @"addressType") y x)+ 40+ -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (Prelude.fmap+ ((Prelude./=) 0) Data.ProtoLens.Encoding.Bytes.getVarInt)+ "dry_run"+ loop (Lens.Family2.set (Data.ProtoLens.Field.field @"dryRun") y x)+ wire+ -> do !y <- Data.ProtoLens.Encoding.Wire.parseTaggedValueFromWire+ wire+ loop+ (Lens.Family2.over+ Data.ProtoLens.unknownFields (\ !t -> (:) y t) x)+ in+ (Data.ProtoLens.Encoding.Bytes.<?>)+ (do loop Data.ProtoLens.defMessage) "ImportAccountRequest"+ buildMessage+ = \ _x+ -> (Data.Monoid.<>)+ (let _v = Lens.Family2.view (Data.ProtoLens.Field.field @"name") _x+ in+ if (Prelude.==) _v Data.ProtoLens.fieldDefault then+ Data.Monoid.mempty+ else+ (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 10)+ ((Prelude..)+ (\ bs+ -> (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt+ (Prelude.fromIntegral (Data.ByteString.length bs)))+ (Data.ProtoLens.Encoding.Bytes.putBytes bs))+ Data.Text.Encoding.encodeUtf8 _v))+ ((Data.Monoid.<>)+ (let+ _v+ = Lens.Family2.view+ (Data.ProtoLens.Field.field @"extendedPublicKey") _x+ in+ if (Prelude.==) _v Data.ProtoLens.fieldDefault then+ Data.Monoid.mempty+ else+ (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 18)+ ((Prelude..)+ (\ bs+ -> (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt+ (Prelude.fromIntegral (Data.ByteString.length bs)))+ (Data.ProtoLens.Encoding.Bytes.putBytes bs))+ Data.Text.Encoding.encodeUtf8 _v))+ ((Data.Monoid.<>)+ (let+ _v+ = Lens.Family2.view+ (Data.ProtoLens.Field.field @"masterKeyFingerprint") _x+ in+ if (Prelude.==) _v Data.ProtoLens.fieldDefault then+ Data.Monoid.mempty+ else+ (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 26)+ ((\ bs+ -> (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt+ (Prelude.fromIntegral (Data.ByteString.length bs)))+ (Data.ProtoLens.Encoding.Bytes.putBytes bs))+ _v))+ ((Data.Monoid.<>)+ (let+ _v+ = Lens.Family2.view (Data.ProtoLens.Field.field @"addressType") _x+ in+ if (Prelude.==) _v Data.ProtoLens.fieldDefault then+ Data.Monoid.mempty+ else+ (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 32)+ ((Prelude..)+ ((Prelude..)+ Data.ProtoLens.Encoding.Bytes.putVarInt Prelude.fromIntegral)+ Prelude.fromEnum _v))+ ((Data.Monoid.<>)+ (let+ _v = Lens.Family2.view (Data.ProtoLens.Field.field @"dryRun") _x+ in+ if (Prelude.==) _v Data.ProtoLens.fieldDefault then+ Data.Monoid.mempty+ else+ (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 40)+ ((Prelude..)+ Data.ProtoLens.Encoding.Bytes.putVarInt+ (\ b -> if b then 1 else 0) _v))+ (Data.ProtoLens.Encoding.Wire.buildFieldSet+ (Lens.Family2.view Data.ProtoLens.unknownFields _x))))))+instance Control.DeepSeq.NFData ImportAccountRequest where+ rnf+ = \ x__+ -> Control.DeepSeq.deepseq+ (_ImportAccountRequest'_unknownFields x__)+ (Control.DeepSeq.deepseq+ (_ImportAccountRequest'name x__)+ (Control.DeepSeq.deepseq+ (_ImportAccountRequest'extendedPublicKey x__)+ (Control.DeepSeq.deepseq+ (_ImportAccountRequest'masterKeyFingerprint x__)+ (Control.DeepSeq.deepseq+ (_ImportAccountRequest'addressType x__)+ (Control.DeepSeq.deepseq (_ImportAccountRequest'dryRun x__) ())))))+{- | Fields :+ + * 'Proto.Walletrpc.Walletkit_Fields.account' @:: Lens' ImportAccountResponse Account@+ * 'Proto.Walletrpc.Walletkit_Fields.maybe'account' @:: Lens' ImportAccountResponse (Prelude.Maybe Account)@+ * 'Proto.Walletrpc.Walletkit_Fields.dryRunExternalAddrs' @:: Lens' ImportAccountResponse [Data.Text.Text]@+ * 'Proto.Walletrpc.Walletkit_Fields.vec'dryRunExternalAddrs' @:: Lens' ImportAccountResponse (Data.Vector.Vector Data.Text.Text)@+ * 'Proto.Walletrpc.Walletkit_Fields.dryRunInternalAddrs' @:: Lens' ImportAccountResponse [Data.Text.Text]@+ * 'Proto.Walletrpc.Walletkit_Fields.vec'dryRunInternalAddrs' @:: Lens' ImportAccountResponse (Data.Vector.Vector Data.Text.Text)@ -}+data ImportAccountResponse+ = ImportAccountResponse'_constructor {_ImportAccountResponse'account :: !(Prelude.Maybe Account),+ _ImportAccountResponse'dryRunExternalAddrs :: !(Data.Vector.Vector Data.Text.Text),+ _ImportAccountResponse'dryRunInternalAddrs :: !(Data.Vector.Vector Data.Text.Text),+ _ImportAccountResponse'_unknownFields :: !Data.ProtoLens.FieldSet}+ deriving stock (Prelude.Eq, Prelude.Ord, GHC.Generics.Generic)+instance Prelude.Show ImportAccountResponse where+ showsPrec _ __x __s+ = Prelude.showChar+ '{'+ (Prelude.showString+ (Data.ProtoLens.showMessageShort __x) (Prelude.showChar '}' __s))+instance Text.PrettyPrint.GenericPretty.Out ImportAccountResponse+instance Data.ProtoLens.Field.HasField ImportAccountResponse "account" Account where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _ImportAccountResponse'account+ (\ x__ y__ -> x__ {_ImportAccountResponse'account = y__}))+ (Data.ProtoLens.maybeLens Data.ProtoLens.defMessage)+instance Data.ProtoLens.Field.HasField ImportAccountResponse "maybe'account" (Prelude.Maybe Account) where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _ImportAccountResponse'account+ (\ x__ y__ -> x__ {_ImportAccountResponse'account = y__}))+ Prelude.id+instance Data.ProtoLens.Field.HasField ImportAccountResponse "dryRunExternalAddrs" [Data.Text.Text] where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _ImportAccountResponse'dryRunExternalAddrs+ (\ x__ y__+ -> x__ {_ImportAccountResponse'dryRunExternalAddrs = y__}))+ (Lens.Family2.Unchecked.lens+ Data.Vector.Generic.toList+ (\ _ y__ -> Data.Vector.Generic.fromList y__))+instance Data.ProtoLens.Field.HasField ImportAccountResponse "vec'dryRunExternalAddrs" (Data.Vector.Vector Data.Text.Text) where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _ImportAccountResponse'dryRunExternalAddrs+ (\ x__ y__+ -> x__ {_ImportAccountResponse'dryRunExternalAddrs = y__}))+ Prelude.id+instance Data.ProtoLens.Field.HasField ImportAccountResponse "dryRunInternalAddrs" [Data.Text.Text] where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _ImportAccountResponse'dryRunInternalAddrs+ (\ x__ y__+ -> x__ {_ImportAccountResponse'dryRunInternalAddrs = y__}))+ (Lens.Family2.Unchecked.lens+ Data.Vector.Generic.toList+ (\ _ y__ -> Data.Vector.Generic.fromList y__))+instance Data.ProtoLens.Field.HasField ImportAccountResponse "vec'dryRunInternalAddrs" (Data.Vector.Vector Data.Text.Text) where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _ImportAccountResponse'dryRunInternalAddrs+ (\ x__ y__+ -> x__ {_ImportAccountResponse'dryRunInternalAddrs = y__}))+ Prelude.id+instance Data.ProtoLens.Message ImportAccountResponse where+ messageName _ = Data.Text.pack "walletrpc.ImportAccountResponse"+ packedMessageDescriptor _+ = "\n\+ \\NAKImportAccountResponse\DC2,\n\+ \\aaccount\CAN\SOH \SOH(\v2\DC2.walletrpc.AccountR\aaccount\DC23\n\+ \\SYNdry_run_external_addrs\CAN\STX \ETX(\tR\DC3dryRunExternalAddrs\DC23\n\+ \\SYNdry_run_internal_addrs\CAN\ETX \ETX(\tR\DC3dryRunInternalAddrs"+ packedFileDescriptor _ = packedFileDescriptor+ fieldsByTag+ = let+ account__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "account"+ (Data.ProtoLens.MessageField Data.ProtoLens.MessageType ::+ Data.ProtoLens.FieldTypeDescriptor Account)+ (Data.ProtoLens.OptionalField+ (Data.ProtoLens.Field.field @"maybe'account")) ::+ Data.ProtoLens.FieldDescriptor ImportAccountResponse+ dryRunExternalAddrs__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "dry_run_external_addrs"+ (Data.ProtoLens.ScalarField Data.ProtoLens.StringField ::+ Data.ProtoLens.FieldTypeDescriptor Data.Text.Text)+ (Data.ProtoLens.RepeatedField+ Data.ProtoLens.Unpacked+ (Data.ProtoLens.Field.field @"dryRunExternalAddrs")) ::+ Data.ProtoLens.FieldDescriptor ImportAccountResponse+ dryRunInternalAddrs__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "dry_run_internal_addrs"+ (Data.ProtoLens.ScalarField Data.ProtoLens.StringField ::+ Data.ProtoLens.FieldTypeDescriptor Data.Text.Text)+ (Data.ProtoLens.RepeatedField+ Data.ProtoLens.Unpacked+ (Data.ProtoLens.Field.field @"dryRunInternalAddrs")) ::+ Data.ProtoLens.FieldDescriptor ImportAccountResponse+ in+ Data.Map.fromList+ [(Data.ProtoLens.Tag 1, account__field_descriptor),+ (Data.ProtoLens.Tag 2, dryRunExternalAddrs__field_descriptor),+ (Data.ProtoLens.Tag 3, dryRunInternalAddrs__field_descriptor)]+ unknownFields+ = Lens.Family2.Unchecked.lens+ _ImportAccountResponse'_unknownFields+ (\ x__ y__ -> x__ {_ImportAccountResponse'_unknownFields = y__})+ defMessage+ = ImportAccountResponse'_constructor+ {_ImportAccountResponse'account = Prelude.Nothing,+ _ImportAccountResponse'dryRunExternalAddrs = Data.Vector.Generic.empty,+ _ImportAccountResponse'dryRunInternalAddrs = Data.Vector.Generic.empty,+ _ImportAccountResponse'_unknownFields = []}+ parseMessage+ = let+ loop ::+ ImportAccountResponse+ -> Data.ProtoLens.Encoding.Growing.Growing Data.Vector.Vector Data.ProtoLens.Encoding.Growing.RealWorld Data.Text.Text+ -> Data.ProtoLens.Encoding.Growing.Growing Data.Vector.Vector Data.ProtoLens.Encoding.Growing.RealWorld Data.Text.Text+ -> Data.ProtoLens.Encoding.Bytes.Parser ImportAccountResponse+ loop x mutable'dryRunExternalAddrs mutable'dryRunInternalAddrs+ = do end <- Data.ProtoLens.Encoding.Bytes.atEnd+ if end then+ do frozen'dryRunExternalAddrs <- Data.ProtoLens.Encoding.Parser.Unsafe.unsafeLiftIO+ (Data.ProtoLens.Encoding.Growing.unsafeFreeze+ mutable'dryRunExternalAddrs)+ frozen'dryRunInternalAddrs <- Data.ProtoLens.Encoding.Parser.Unsafe.unsafeLiftIO+ (Data.ProtoLens.Encoding.Growing.unsafeFreeze+ mutable'dryRunInternalAddrs)+ (let missing = []+ in+ if Prelude.null missing then+ Prelude.return ()+ else+ Prelude.fail+ ((Prelude.++)+ "Missing required fields: "+ (Prelude.show (missing :: [Prelude.String]))))+ Prelude.return+ (Lens.Family2.over+ Data.ProtoLens.unknownFields (\ !t -> Prelude.reverse t)+ (Lens.Family2.set+ (Data.ProtoLens.Field.field @"vec'dryRunExternalAddrs")+ frozen'dryRunExternalAddrs+ (Lens.Family2.set+ (Data.ProtoLens.Field.field @"vec'dryRunInternalAddrs")+ frozen'dryRunInternalAddrs x)))+ else+ do tag <- Data.ProtoLens.Encoding.Bytes.getVarInt+ case tag of+ 10+ -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (do len <- Data.ProtoLens.Encoding.Bytes.getVarInt+ Data.ProtoLens.Encoding.Bytes.isolate+ (Prelude.fromIntegral len) Data.ProtoLens.parseMessage)+ "account"+ loop+ (Lens.Family2.set (Data.ProtoLens.Field.field @"account") y x)+ mutable'dryRunExternalAddrs mutable'dryRunInternalAddrs+ 18+ -> do !y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (do value <- do len <- Data.ProtoLens.Encoding.Bytes.getVarInt+ Data.ProtoLens.Encoding.Bytes.getBytes+ (Prelude.fromIntegral len)+ Data.ProtoLens.Encoding.Bytes.runEither+ (case Data.Text.Encoding.decodeUtf8' value of+ (Prelude.Left err)+ -> Prelude.Left (Prelude.show err)+ (Prelude.Right r) -> Prelude.Right r))+ "dry_run_external_addrs"+ v <- Data.ProtoLens.Encoding.Parser.Unsafe.unsafeLiftIO+ (Data.ProtoLens.Encoding.Growing.append+ mutable'dryRunExternalAddrs y)+ loop x v mutable'dryRunInternalAddrs+ 26+ -> do !y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (do value <- do len <- Data.ProtoLens.Encoding.Bytes.getVarInt+ Data.ProtoLens.Encoding.Bytes.getBytes+ (Prelude.fromIntegral len)+ Data.ProtoLens.Encoding.Bytes.runEither+ (case Data.Text.Encoding.decodeUtf8' value of+ (Prelude.Left err)+ -> Prelude.Left (Prelude.show err)+ (Prelude.Right r) -> Prelude.Right r))+ "dry_run_internal_addrs"+ v <- Data.ProtoLens.Encoding.Parser.Unsafe.unsafeLiftIO+ (Data.ProtoLens.Encoding.Growing.append+ mutable'dryRunInternalAddrs y)+ loop x mutable'dryRunExternalAddrs v+ wire+ -> do !y <- Data.ProtoLens.Encoding.Wire.parseTaggedValueFromWire+ wire+ loop+ (Lens.Family2.over+ Data.ProtoLens.unknownFields (\ !t -> (:) y t) x)+ mutable'dryRunExternalAddrs mutable'dryRunInternalAddrs+ in+ (Data.ProtoLens.Encoding.Bytes.<?>)+ (do mutable'dryRunExternalAddrs <- Data.ProtoLens.Encoding.Parser.Unsafe.unsafeLiftIO+ Data.ProtoLens.Encoding.Growing.new+ mutable'dryRunInternalAddrs <- Data.ProtoLens.Encoding.Parser.Unsafe.unsafeLiftIO+ Data.ProtoLens.Encoding.Growing.new+ loop+ Data.ProtoLens.defMessage mutable'dryRunExternalAddrs+ mutable'dryRunInternalAddrs)+ "ImportAccountResponse"+ buildMessage+ = \ _x+ -> (Data.Monoid.<>)+ (case+ Lens.Family2.view (Data.ProtoLens.Field.field @"maybe'account") _x+ of+ Prelude.Nothing -> Data.Monoid.mempty+ (Prelude.Just _v)+ -> (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 10)+ ((Prelude..)+ (\ bs+ -> (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt+ (Prelude.fromIntegral (Data.ByteString.length bs)))+ (Data.ProtoLens.Encoding.Bytes.putBytes bs))+ Data.ProtoLens.encodeMessage _v))+ ((Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.foldMapBuilder+ (\ _v+ -> (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 18)+ ((Prelude..)+ (\ bs+ -> (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt+ (Prelude.fromIntegral (Data.ByteString.length bs)))+ (Data.ProtoLens.Encoding.Bytes.putBytes bs))+ Data.Text.Encoding.encodeUtf8 _v))+ (Lens.Family2.view+ (Data.ProtoLens.Field.field @"vec'dryRunExternalAddrs") _x))+ ((Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.foldMapBuilder+ (\ _v+ -> (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 26)+ ((Prelude..)+ (\ bs+ -> (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt+ (Prelude.fromIntegral (Data.ByteString.length bs)))+ (Data.ProtoLens.Encoding.Bytes.putBytes bs))+ Data.Text.Encoding.encodeUtf8 _v))+ (Lens.Family2.view+ (Data.ProtoLens.Field.field @"vec'dryRunInternalAddrs") _x))+ (Data.ProtoLens.Encoding.Wire.buildFieldSet+ (Lens.Family2.view Data.ProtoLens.unknownFields _x))))+instance Control.DeepSeq.NFData ImportAccountResponse where+ rnf+ = \ x__+ -> Control.DeepSeq.deepseq+ (_ImportAccountResponse'_unknownFields x__)+ (Control.DeepSeq.deepseq+ (_ImportAccountResponse'account x__)+ (Control.DeepSeq.deepseq+ (_ImportAccountResponse'dryRunExternalAddrs x__)+ (Control.DeepSeq.deepseq+ (_ImportAccountResponse'dryRunInternalAddrs x__) ())))+{- | Fields :+ + * 'Proto.Walletrpc.Walletkit_Fields.publicKey' @:: Lens' ImportPublicKeyRequest Data.ByteString.ByteString@+ * 'Proto.Walletrpc.Walletkit_Fields.addressType' @:: Lens' ImportPublicKeyRequest AddressType@ -}+data ImportPublicKeyRequest+ = ImportPublicKeyRequest'_constructor {_ImportPublicKeyRequest'publicKey :: !Data.ByteString.ByteString,+ _ImportPublicKeyRequest'addressType :: !AddressType,+ _ImportPublicKeyRequest'_unknownFields :: !Data.ProtoLens.FieldSet}+ deriving stock (Prelude.Eq, Prelude.Ord, GHC.Generics.Generic)+instance Prelude.Show ImportPublicKeyRequest where+ showsPrec _ __x __s+ = Prelude.showChar+ '{'+ (Prelude.showString+ (Data.ProtoLens.showMessageShort __x) (Prelude.showChar '}' __s))+instance Text.PrettyPrint.GenericPretty.Out ImportPublicKeyRequest+instance Data.ProtoLens.Field.HasField ImportPublicKeyRequest "publicKey" Data.ByteString.ByteString where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _ImportPublicKeyRequest'publicKey+ (\ x__ y__ -> x__ {_ImportPublicKeyRequest'publicKey = y__}))+ Prelude.id+instance Data.ProtoLens.Field.HasField ImportPublicKeyRequest "addressType" AddressType where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _ImportPublicKeyRequest'addressType+ (\ x__ y__ -> x__ {_ImportPublicKeyRequest'addressType = y__}))+ Prelude.id+instance Data.ProtoLens.Message ImportPublicKeyRequest where+ messageName _ = Data.Text.pack "walletrpc.ImportPublicKeyRequest"+ packedMessageDescriptor _+ = "\n\+ \\SYNImportPublicKeyRequest\DC2\GS\n\+ \\n\+ \public_key\CAN\SOH \SOH(\fR\tpublicKey\DC29\n\+ \\faddress_type\CAN\STX \SOH(\SO2\SYN.walletrpc.AddressTypeR\vaddressType"+ packedFileDescriptor _ = packedFileDescriptor+ fieldsByTag+ = let+ publicKey__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "public_key"+ (Data.ProtoLens.ScalarField Data.ProtoLens.BytesField ::+ Data.ProtoLens.FieldTypeDescriptor Data.ByteString.ByteString)+ (Data.ProtoLens.PlainField+ Data.ProtoLens.Optional+ (Data.ProtoLens.Field.field @"publicKey")) ::+ Data.ProtoLens.FieldDescriptor ImportPublicKeyRequest+ addressType__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "address_type"+ (Data.ProtoLens.ScalarField Data.ProtoLens.EnumField ::+ Data.ProtoLens.FieldTypeDescriptor AddressType)+ (Data.ProtoLens.PlainField+ Data.ProtoLens.Optional+ (Data.ProtoLens.Field.field @"addressType")) ::+ Data.ProtoLens.FieldDescriptor ImportPublicKeyRequest+ in+ Data.Map.fromList+ [(Data.ProtoLens.Tag 1, publicKey__field_descriptor),+ (Data.ProtoLens.Tag 2, addressType__field_descriptor)]+ unknownFields+ = Lens.Family2.Unchecked.lens+ _ImportPublicKeyRequest'_unknownFields+ (\ x__ y__ -> x__ {_ImportPublicKeyRequest'_unknownFields = y__})+ defMessage+ = ImportPublicKeyRequest'_constructor+ {_ImportPublicKeyRequest'publicKey = Data.ProtoLens.fieldDefault,+ _ImportPublicKeyRequest'addressType = Data.ProtoLens.fieldDefault,+ _ImportPublicKeyRequest'_unknownFields = []}+ parseMessage+ = let+ loop ::+ ImportPublicKeyRequest+ -> Data.ProtoLens.Encoding.Bytes.Parser ImportPublicKeyRequest+ loop x+ = do end <- Data.ProtoLens.Encoding.Bytes.atEnd+ if end then+ do (let missing = []+ in+ if Prelude.null missing then+ Prelude.return ()+ else+ Prelude.fail+ ((Prelude.++)+ "Missing required fields: "+ (Prelude.show (missing :: [Prelude.String]))))+ Prelude.return+ (Lens.Family2.over+ Data.ProtoLens.unknownFields (\ !t -> Prelude.reverse t) x)+ else+ do tag <- Data.ProtoLens.Encoding.Bytes.getVarInt+ case tag of+ 10+ -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (do len <- Data.ProtoLens.Encoding.Bytes.getVarInt+ Data.ProtoLens.Encoding.Bytes.getBytes+ (Prelude.fromIntegral len))+ "public_key"+ loop+ (Lens.Family2.set (Data.ProtoLens.Field.field @"publicKey") y x)+ 16+ -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (Prelude.fmap+ Prelude.toEnum+ (Prelude.fmap+ Prelude.fromIntegral+ Data.ProtoLens.Encoding.Bytes.getVarInt))+ "address_type"+ loop+ (Lens.Family2.set (Data.ProtoLens.Field.field @"addressType") y x)+ wire+ -> do !y <- Data.ProtoLens.Encoding.Wire.parseTaggedValueFromWire+ wire+ loop+ (Lens.Family2.over+ Data.ProtoLens.unknownFields (\ !t -> (:) y t) x)+ in+ (Data.ProtoLens.Encoding.Bytes.<?>)+ (do loop Data.ProtoLens.defMessage) "ImportPublicKeyRequest"+ buildMessage+ = \ _x+ -> (Data.Monoid.<>)+ (let+ _v = Lens.Family2.view (Data.ProtoLens.Field.field @"publicKey") _x+ in+ if (Prelude.==) _v Data.ProtoLens.fieldDefault then+ Data.Monoid.mempty+ else+ (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 10)+ ((\ bs+ -> (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt+ (Prelude.fromIntegral (Data.ByteString.length bs)))+ (Data.ProtoLens.Encoding.Bytes.putBytes bs))+ _v))+ ((Data.Monoid.<>)+ (let+ _v+ = Lens.Family2.view (Data.ProtoLens.Field.field @"addressType") _x+ in+ if (Prelude.==) _v Data.ProtoLens.fieldDefault then+ Data.Monoid.mempty+ else+ (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 16)+ ((Prelude..)+ ((Prelude..)+ Data.ProtoLens.Encoding.Bytes.putVarInt Prelude.fromIntegral)+ Prelude.fromEnum _v))+ (Data.ProtoLens.Encoding.Wire.buildFieldSet+ (Lens.Family2.view Data.ProtoLens.unknownFields _x)))+instance Control.DeepSeq.NFData ImportPublicKeyRequest where+ rnf+ = \ x__+ -> Control.DeepSeq.deepseq+ (_ImportPublicKeyRequest'_unknownFields x__)+ (Control.DeepSeq.deepseq+ (_ImportPublicKeyRequest'publicKey x__)+ (Control.DeepSeq.deepseq+ (_ImportPublicKeyRequest'addressType x__) ()))+{- | Fields :+ -}+data ImportPublicKeyResponse+ = ImportPublicKeyResponse'_constructor {_ImportPublicKeyResponse'_unknownFields :: !Data.ProtoLens.FieldSet}+ deriving stock (Prelude.Eq, Prelude.Ord, GHC.Generics.Generic)+instance Prelude.Show ImportPublicKeyResponse where+ showsPrec _ __x __s+ = Prelude.showChar+ '{'+ (Prelude.showString+ (Data.ProtoLens.showMessageShort __x) (Prelude.showChar '}' __s))+instance Text.PrettyPrint.GenericPretty.Out ImportPublicKeyResponse+instance Data.ProtoLens.Message ImportPublicKeyResponse where+ messageName _ = Data.Text.pack "walletrpc.ImportPublicKeyResponse"+ packedMessageDescriptor _+ = "\n\+ \\ETBImportPublicKeyResponse"+ packedFileDescriptor _ = packedFileDescriptor+ fieldsByTag = let in Data.Map.fromList []+ unknownFields+ = Lens.Family2.Unchecked.lens+ _ImportPublicKeyResponse'_unknownFields+ (\ x__ y__ -> x__ {_ImportPublicKeyResponse'_unknownFields = y__})+ defMessage+ = ImportPublicKeyResponse'_constructor+ {_ImportPublicKeyResponse'_unknownFields = []}+ parseMessage+ = let+ loop ::+ ImportPublicKeyResponse+ -> Data.ProtoLens.Encoding.Bytes.Parser ImportPublicKeyResponse+ loop x+ = do end <- Data.ProtoLens.Encoding.Bytes.atEnd+ if end then+ do (let missing = []+ in+ if Prelude.null missing then+ Prelude.return ()+ else+ Prelude.fail+ ((Prelude.++)+ "Missing required fields: "+ (Prelude.show (missing :: [Prelude.String]))))+ Prelude.return+ (Lens.Family2.over+ Data.ProtoLens.unknownFields (\ !t -> Prelude.reverse t) x)+ else+ do tag <- Data.ProtoLens.Encoding.Bytes.getVarInt+ case tag of {+ wire+ -> do !y <- Data.ProtoLens.Encoding.Wire.parseTaggedValueFromWire+ wire+ loop+ (Lens.Family2.over+ Data.ProtoLens.unknownFields (\ !t -> (:) y t) x) }+ in+ (Data.ProtoLens.Encoding.Bytes.<?>)+ (do loop Data.ProtoLens.defMessage) "ImportPublicKeyResponse"+ buildMessage+ = \ _x+ -> Data.ProtoLens.Encoding.Wire.buildFieldSet+ (Lens.Family2.view Data.ProtoLens.unknownFields _x)+instance Control.DeepSeq.NFData ImportPublicKeyResponse where+ rnf+ = \ x__+ -> Control.DeepSeq.deepseq+ (_ImportPublicKeyResponse'_unknownFields x__) ()+{- | Fields :+ + * 'Proto.Walletrpc.Walletkit_Fields.keyFingerPrint' @:: Lens' KeyReq Data.Int.Int32@+ * 'Proto.Walletrpc.Walletkit_Fields.keyFamily' @:: Lens' KeyReq Data.Int.Int32@ -}+data KeyReq+ = KeyReq'_constructor {_KeyReq'keyFingerPrint :: !Data.Int.Int32,+ _KeyReq'keyFamily :: !Data.Int.Int32,+ _KeyReq'_unknownFields :: !Data.ProtoLens.FieldSet}+ deriving stock (Prelude.Eq, Prelude.Ord, GHC.Generics.Generic)+instance Prelude.Show KeyReq where+ showsPrec _ __x __s+ = Prelude.showChar+ '{'+ (Prelude.showString+ (Data.ProtoLens.showMessageShort __x) (Prelude.showChar '}' __s))+instance Text.PrettyPrint.GenericPretty.Out KeyReq+instance Data.ProtoLens.Field.HasField KeyReq "keyFingerPrint" Data.Int.Int32 where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _KeyReq'keyFingerPrint+ (\ x__ y__ -> x__ {_KeyReq'keyFingerPrint = y__}))+ Prelude.id+instance Data.ProtoLens.Field.HasField KeyReq "keyFamily" Data.Int.Int32 where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _KeyReq'keyFamily (\ x__ y__ -> x__ {_KeyReq'keyFamily = y__}))+ Prelude.id+instance Data.ProtoLens.Message KeyReq where+ messageName _ = Data.Text.pack "walletrpc.KeyReq"+ packedMessageDescriptor _+ = "\n\+ \\ACKKeyReq\DC2(\n\+ \\DLEkey_finger_print\CAN\SOH \SOH(\ENQR\SOkeyFingerPrint\DC2\GS\n\+ \\n\+ \key_family\CAN\STX \SOH(\ENQR\tkeyFamily"+ packedFileDescriptor _ = packedFileDescriptor+ fieldsByTag+ = let+ keyFingerPrint__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "key_finger_print"+ (Data.ProtoLens.ScalarField Data.ProtoLens.Int32Field ::+ Data.ProtoLens.FieldTypeDescriptor Data.Int.Int32)+ (Data.ProtoLens.PlainField+ Data.ProtoLens.Optional+ (Data.ProtoLens.Field.field @"keyFingerPrint")) ::+ Data.ProtoLens.FieldDescriptor KeyReq+ keyFamily__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "key_family"+ (Data.ProtoLens.ScalarField Data.ProtoLens.Int32Field ::+ Data.ProtoLens.FieldTypeDescriptor Data.Int.Int32)+ (Data.ProtoLens.PlainField+ Data.ProtoLens.Optional+ (Data.ProtoLens.Field.field @"keyFamily")) ::+ Data.ProtoLens.FieldDescriptor KeyReq+ in+ Data.Map.fromList+ [(Data.ProtoLens.Tag 1, keyFingerPrint__field_descriptor),+ (Data.ProtoLens.Tag 2, keyFamily__field_descriptor)]+ unknownFields+ = Lens.Family2.Unchecked.lens+ _KeyReq'_unknownFields+ (\ x__ y__ -> x__ {_KeyReq'_unknownFields = y__})+ defMessage+ = KeyReq'_constructor+ {_KeyReq'keyFingerPrint = Data.ProtoLens.fieldDefault,+ _KeyReq'keyFamily = Data.ProtoLens.fieldDefault,+ _KeyReq'_unknownFields = []}+ parseMessage+ = let+ loop :: KeyReq -> Data.ProtoLens.Encoding.Bytes.Parser KeyReq+ loop x+ = do end <- Data.ProtoLens.Encoding.Bytes.atEnd+ if end then+ do (let missing = []+ in+ if Prelude.null missing then+ Prelude.return ()+ else+ Prelude.fail+ ((Prelude.++)+ "Missing required fields: "+ (Prelude.show (missing :: [Prelude.String]))))+ Prelude.return+ (Lens.Family2.over+ Data.ProtoLens.unknownFields (\ !t -> Prelude.reverse t) x)+ else+ do tag <- Data.ProtoLens.Encoding.Bytes.getVarInt+ case tag of+ 8 -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (Prelude.fmap+ Prelude.fromIntegral+ Data.ProtoLens.Encoding.Bytes.getVarInt)+ "key_finger_print"+ loop+ (Lens.Family2.set+ (Data.ProtoLens.Field.field @"keyFingerPrint") y x)+ 16+ -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (Prelude.fmap+ Prelude.fromIntegral+ Data.ProtoLens.Encoding.Bytes.getVarInt)+ "key_family"+ loop+ (Lens.Family2.set (Data.ProtoLens.Field.field @"keyFamily") y x)+ wire+ -> do !y <- Data.ProtoLens.Encoding.Wire.parseTaggedValueFromWire+ wire+ loop+ (Lens.Family2.over+ Data.ProtoLens.unknownFields (\ !t -> (:) y t) x)+ in+ (Data.ProtoLens.Encoding.Bytes.<?>)+ (do loop Data.ProtoLens.defMessage) "KeyReq"+ buildMessage+ = \ _x+ -> (Data.Monoid.<>)+ (let+ _v+ = Lens.Family2.view+ (Data.ProtoLens.Field.field @"keyFingerPrint") _x+ in+ if (Prelude.==) _v Data.ProtoLens.fieldDefault then+ Data.Monoid.mempty+ else+ (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 8)+ ((Prelude..)+ Data.ProtoLens.Encoding.Bytes.putVarInt Prelude.fromIntegral _v))+ ((Data.Monoid.<>)+ (let+ _v = Lens.Family2.view (Data.ProtoLens.Field.field @"keyFamily") _x+ in+ if (Prelude.==) _v Data.ProtoLens.fieldDefault then+ Data.Monoid.mempty+ else+ (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 16)+ ((Prelude..)+ Data.ProtoLens.Encoding.Bytes.putVarInt Prelude.fromIntegral _v))+ (Data.ProtoLens.Encoding.Wire.buildFieldSet+ (Lens.Family2.view Data.ProtoLens.unknownFields _x)))+instance Control.DeepSeq.NFData KeyReq where+ rnf+ = \ x__+ -> Control.DeepSeq.deepseq+ (_KeyReq'_unknownFields x__)+ (Control.DeepSeq.deepseq+ (_KeyReq'keyFingerPrint x__)+ (Control.DeepSeq.deepseq (_KeyReq'keyFamily x__) ()))+{- | Fields :+ + * 'Proto.Walletrpc.Walletkit_Fields.txid' @:: Lens' LabelTransactionRequest Data.ByteString.ByteString@+ * 'Proto.Walletrpc.Walletkit_Fields.label' @:: Lens' LabelTransactionRequest Data.Text.Text@+ * 'Proto.Walletrpc.Walletkit_Fields.overwrite' @:: Lens' LabelTransactionRequest Prelude.Bool@ -}+data LabelTransactionRequest+ = LabelTransactionRequest'_constructor {_LabelTransactionRequest'txid :: !Data.ByteString.ByteString,+ _LabelTransactionRequest'label :: !Data.Text.Text,+ _LabelTransactionRequest'overwrite :: !Prelude.Bool,+ _LabelTransactionRequest'_unknownFields :: !Data.ProtoLens.FieldSet}+ deriving stock (Prelude.Eq, Prelude.Ord, GHC.Generics.Generic)+instance Prelude.Show LabelTransactionRequest where+ showsPrec _ __x __s+ = Prelude.showChar+ '{'+ (Prelude.showString+ (Data.ProtoLens.showMessageShort __x) (Prelude.showChar '}' __s))+instance Text.PrettyPrint.GenericPretty.Out LabelTransactionRequest+instance Data.ProtoLens.Field.HasField LabelTransactionRequest "txid" Data.ByteString.ByteString where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _LabelTransactionRequest'txid+ (\ x__ y__ -> x__ {_LabelTransactionRequest'txid = y__}))+ Prelude.id+instance Data.ProtoLens.Field.HasField LabelTransactionRequest "label" Data.Text.Text where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _LabelTransactionRequest'label+ (\ x__ y__ -> x__ {_LabelTransactionRequest'label = y__}))+ Prelude.id+instance Data.ProtoLens.Field.HasField LabelTransactionRequest "overwrite" Prelude.Bool where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _LabelTransactionRequest'overwrite+ (\ x__ y__ -> x__ {_LabelTransactionRequest'overwrite = y__}))+ Prelude.id+instance Data.ProtoLens.Message LabelTransactionRequest where+ messageName _ = Data.Text.pack "walletrpc.LabelTransactionRequest"+ packedMessageDescriptor _+ = "\n\+ \\ETBLabelTransactionRequest\DC2\DC2\n\+ \\EOTtxid\CAN\SOH \SOH(\fR\EOTtxid\DC2\DC4\n\+ \\ENQlabel\CAN\STX \SOH(\tR\ENQlabel\DC2\FS\n\+ \\toverwrite\CAN\ETX \SOH(\bR\toverwrite"+ packedFileDescriptor _ = packedFileDescriptor+ fieldsByTag+ = let+ txid__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "txid"+ (Data.ProtoLens.ScalarField Data.ProtoLens.BytesField ::+ Data.ProtoLens.FieldTypeDescriptor Data.ByteString.ByteString)+ (Data.ProtoLens.PlainField+ Data.ProtoLens.Optional (Data.ProtoLens.Field.field @"txid")) ::+ Data.ProtoLens.FieldDescriptor LabelTransactionRequest+ label__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "label"+ (Data.ProtoLens.ScalarField Data.ProtoLens.StringField ::+ Data.ProtoLens.FieldTypeDescriptor Data.Text.Text)+ (Data.ProtoLens.PlainField+ Data.ProtoLens.Optional (Data.ProtoLens.Field.field @"label")) ::+ Data.ProtoLens.FieldDescriptor LabelTransactionRequest+ overwrite__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "overwrite"+ (Data.ProtoLens.ScalarField Data.ProtoLens.BoolField ::+ Data.ProtoLens.FieldTypeDescriptor Prelude.Bool)+ (Data.ProtoLens.PlainField+ Data.ProtoLens.Optional+ (Data.ProtoLens.Field.field @"overwrite")) ::+ Data.ProtoLens.FieldDescriptor LabelTransactionRequest+ in+ Data.Map.fromList+ [(Data.ProtoLens.Tag 1, txid__field_descriptor),+ (Data.ProtoLens.Tag 2, label__field_descriptor),+ (Data.ProtoLens.Tag 3, overwrite__field_descriptor)]+ unknownFields+ = Lens.Family2.Unchecked.lens+ _LabelTransactionRequest'_unknownFields+ (\ x__ y__ -> x__ {_LabelTransactionRequest'_unknownFields = y__})+ defMessage+ = LabelTransactionRequest'_constructor+ {_LabelTransactionRequest'txid = Data.ProtoLens.fieldDefault,+ _LabelTransactionRequest'label = Data.ProtoLens.fieldDefault,+ _LabelTransactionRequest'overwrite = Data.ProtoLens.fieldDefault,+ _LabelTransactionRequest'_unknownFields = []}+ parseMessage+ = let+ loop ::+ LabelTransactionRequest+ -> Data.ProtoLens.Encoding.Bytes.Parser LabelTransactionRequest+ loop x+ = do end <- Data.ProtoLens.Encoding.Bytes.atEnd+ if end then+ do (let missing = []+ in+ if Prelude.null missing then+ Prelude.return ()+ else+ Prelude.fail+ ((Prelude.++)+ "Missing required fields: "+ (Prelude.show (missing :: [Prelude.String]))))+ Prelude.return+ (Lens.Family2.over+ Data.ProtoLens.unknownFields (\ !t -> Prelude.reverse t) x)+ else+ do tag <- Data.ProtoLens.Encoding.Bytes.getVarInt+ case tag of+ 10+ -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (do len <- Data.ProtoLens.Encoding.Bytes.getVarInt+ Data.ProtoLens.Encoding.Bytes.getBytes+ (Prelude.fromIntegral len))+ "txid"+ loop (Lens.Family2.set (Data.ProtoLens.Field.field @"txid") y x)+ 18+ -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (do value <- do len <- Data.ProtoLens.Encoding.Bytes.getVarInt+ Data.ProtoLens.Encoding.Bytes.getBytes+ (Prelude.fromIntegral len)+ Data.ProtoLens.Encoding.Bytes.runEither+ (case Data.Text.Encoding.decodeUtf8' value of+ (Prelude.Left err)+ -> Prelude.Left (Prelude.show err)+ (Prelude.Right r) -> Prelude.Right r))+ "label"+ loop (Lens.Family2.set (Data.ProtoLens.Field.field @"label") y x)+ 24+ -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (Prelude.fmap+ ((Prelude./=) 0) Data.ProtoLens.Encoding.Bytes.getVarInt)+ "overwrite"+ loop+ (Lens.Family2.set (Data.ProtoLens.Field.field @"overwrite") y x)+ wire+ -> do !y <- Data.ProtoLens.Encoding.Wire.parseTaggedValueFromWire+ wire+ loop+ (Lens.Family2.over+ Data.ProtoLens.unknownFields (\ !t -> (:) y t) x)+ in+ (Data.ProtoLens.Encoding.Bytes.<?>)+ (do loop Data.ProtoLens.defMessage) "LabelTransactionRequest"+ buildMessage+ = \ _x+ -> (Data.Monoid.<>)+ (let _v = Lens.Family2.view (Data.ProtoLens.Field.field @"txid") _x+ in+ if (Prelude.==) _v Data.ProtoLens.fieldDefault then+ Data.Monoid.mempty+ else+ (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 10)+ ((\ bs+ -> (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt+ (Prelude.fromIntegral (Data.ByteString.length bs)))+ (Data.ProtoLens.Encoding.Bytes.putBytes bs))+ _v))+ ((Data.Monoid.<>)+ (let+ _v = Lens.Family2.view (Data.ProtoLens.Field.field @"label") _x+ in+ if (Prelude.==) _v Data.ProtoLens.fieldDefault then+ Data.Monoid.mempty+ else+ (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 18)+ ((Prelude..)+ (\ bs+ -> (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt+ (Prelude.fromIntegral (Data.ByteString.length bs)))+ (Data.ProtoLens.Encoding.Bytes.putBytes bs))+ Data.Text.Encoding.encodeUtf8 _v))+ ((Data.Monoid.<>)+ (let+ _v = Lens.Family2.view (Data.ProtoLens.Field.field @"overwrite") _x+ in+ if (Prelude.==) _v Data.ProtoLens.fieldDefault then+ Data.Monoid.mempty+ else+ (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 24)+ ((Prelude..)+ Data.ProtoLens.Encoding.Bytes.putVarInt (\ b -> if b then 1 else 0)+ _v))+ (Data.ProtoLens.Encoding.Wire.buildFieldSet+ (Lens.Family2.view Data.ProtoLens.unknownFields _x))))+instance Control.DeepSeq.NFData LabelTransactionRequest where+ rnf+ = \ x__+ -> Control.DeepSeq.deepseq+ (_LabelTransactionRequest'_unknownFields x__)+ (Control.DeepSeq.deepseq+ (_LabelTransactionRequest'txid x__)+ (Control.DeepSeq.deepseq+ (_LabelTransactionRequest'label x__)+ (Control.DeepSeq.deepseq+ (_LabelTransactionRequest'overwrite x__) ())))+{- | Fields :+ -}+data LabelTransactionResponse+ = LabelTransactionResponse'_constructor {_LabelTransactionResponse'_unknownFields :: !Data.ProtoLens.FieldSet}+ deriving stock (Prelude.Eq, Prelude.Ord, GHC.Generics.Generic)+instance Prelude.Show LabelTransactionResponse where+ showsPrec _ __x __s+ = Prelude.showChar+ '{'+ (Prelude.showString+ (Data.ProtoLens.showMessageShort __x) (Prelude.showChar '}' __s))+instance Text.PrettyPrint.GenericPretty.Out LabelTransactionResponse+instance Data.ProtoLens.Message LabelTransactionResponse where+ messageName _ = Data.Text.pack "walletrpc.LabelTransactionResponse"+ packedMessageDescriptor _+ = "\n\+ \\CANLabelTransactionResponse"+ packedFileDescriptor _ = packedFileDescriptor+ fieldsByTag = let in Data.Map.fromList []+ unknownFields+ = Lens.Family2.Unchecked.lens+ _LabelTransactionResponse'_unknownFields+ (\ x__ y__ -> x__ {_LabelTransactionResponse'_unknownFields = y__})+ defMessage+ = LabelTransactionResponse'_constructor+ {_LabelTransactionResponse'_unknownFields = []}+ parseMessage+ = let+ loop ::+ LabelTransactionResponse+ -> Data.ProtoLens.Encoding.Bytes.Parser LabelTransactionResponse+ loop x+ = do end <- Data.ProtoLens.Encoding.Bytes.atEnd+ if end then+ do (let missing = []+ in+ if Prelude.null missing then+ Prelude.return ()+ else+ Prelude.fail+ ((Prelude.++)+ "Missing required fields: "+ (Prelude.show (missing :: [Prelude.String]))))+ Prelude.return+ (Lens.Family2.over+ Data.ProtoLens.unknownFields (\ !t -> Prelude.reverse t) x)+ else+ do tag <- Data.ProtoLens.Encoding.Bytes.getVarInt+ case tag of {+ wire+ -> do !y <- Data.ProtoLens.Encoding.Wire.parseTaggedValueFromWire+ wire+ loop+ (Lens.Family2.over+ Data.ProtoLens.unknownFields (\ !t -> (:) y t) x) }+ in+ (Data.ProtoLens.Encoding.Bytes.<?>)+ (do loop Data.ProtoLens.defMessage) "LabelTransactionResponse"+ buildMessage+ = \ _x+ -> Data.ProtoLens.Encoding.Wire.buildFieldSet+ (Lens.Family2.view Data.ProtoLens.unknownFields _x)+instance Control.DeepSeq.NFData LabelTransactionResponse where+ rnf+ = \ x__+ -> Control.DeepSeq.deepseq+ (_LabelTransactionResponse'_unknownFields x__) ()+{- | Fields :+ + * 'Proto.Walletrpc.Walletkit_Fields.id' @:: Lens' LeaseOutputRequest Data.ByteString.ByteString@+ * 'Proto.Walletrpc.Walletkit_Fields.outpoint' @:: Lens' LeaseOutputRequest Proto.Lnrpc.Ln0.OutPoint@+ * 'Proto.Walletrpc.Walletkit_Fields.maybe'outpoint' @:: Lens' LeaseOutputRequest (Prelude.Maybe Proto.Lnrpc.Ln0.OutPoint)@+ * 'Proto.Walletrpc.Walletkit_Fields.expirationSeconds' @:: Lens' LeaseOutputRequest Data.Word.Word64@ -}+data LeaseOutputRequest+ = LeaseOutputRequest'_constructor {_LeaseOutputRequest'id :: !Data.ByteString.ByteString,+ _LeaseOutputRequest'outpoint :: !(Prelude.Maybe Proto.Lnrpc.Ln0.OutPoint),+ _LeaseOutputRequest'expirationSeconds :: !Data.Word.Word64,+ _LeaseOutputRequest'_unknownFields :: !Data.ProtoLens.FieldSet}+ deriving stock (Prelude.Eq, Prelude.Ord, GHC.Generics.Generic)+instance Prelude.Show LeaseOutputRequest where+ showsPrec _ __x __s+ = Prelude.showChar+ '{'+ (Prelude.showString+ (Data.ProtoLens.showMessageShort __x) (Prelude.showChar '}' __s))+instance Text.PrettyPrint.GenericPretty.Out LeaseOutputRequest+instance Data.ProtoLens.Field.HasField LeaseOutputRequest "id" Data.ByteString.ByteString where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _LeaseOutputRequest'id+ (\ x__ y__ -> x__ {_LeaseOutputRequest'id = y__}))+ Prelude.id+instance Data.ProtoLens.Field.HasField LeaseOutputRequest "outpoint" Proto.Lnrpc.Ln0.OutPoint where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _LeaseOutputRequest'outpoint+ (\ x__ y__ -> x__ {_LeaseOutputRequest'outpoint = y__}))+ (Data.ProtoLens.maybeLens Data.ProtoLens.defMessage)+instance Data.ProtoLens.Field.HasField LeaseOutputRequest "maybe'outpoint" (Prelude.Maybe Proto.Lnrpc.Ln0.OutPoint) where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _LeaseOutputRequest'outpoint+ (\ x__ y__ -> x__ {_LeaseOutputRequest'outpoint = y__}))+ Prelude.id+instance Data.ProtoLens.Field.HasField LeaseOutputRequest "expirationSeconds" Data.Word.Word64 where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _LeaseOutputRequest'expirationSeconds+ (\ x__ y__ -> x__ {_LeaseOutputRequest'expirationSeconds = y__}))+ Prelude.id+instance Data.ProtoLens.Message LeaseOutputRequest where+ messageName _ = Data.Text.pack "walletrpc.LeaseOutputRequest"+ packedMessageDescriptor _+ = "\n\+ \\DC2LeaseOutputRequest\DC2\SO\n\+ \\STXid\CAN\SOH \SOH(\fR\STXid\DC2+\n\+ \\boutpoint\CAN\STX \SOH(\v2\SI.lnrpc.OutPointR\boutpoint\DC2-\n\+ \\DC2expiration_seconds\CAN\ETX \SOH(\EOTR\DC1expirationSeconds"+ packedFileDescriptor _ = packedFileDescriptor+ fieldsByTag+ = let+ id__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "id"+ (Data.ProtoLens.ScalarField Data.ProtoLens.BytesField ::+ Data.ProtoLens.FieldTypeDescriptor Data.ByteString.ByteString)+ (Data.ProtoLens.PlainField+ Data.ProtoLens.Optional (Data.ProtoLens.Field.field @"id")) ::+ Data.ProtoLens.FieldDescriptor LeaseOutputRequest+ outpoint__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "outpoint"+ (Data.ProtoLens.MessageField Data.ProtoLens.MessageType ::+ Data.ProtoLens.FieldTypeDescriptor Proto.Lnrpc.Ln0.OutPoint)+ (Data.ProtoLens.OptionalField+ (Data.ProtoLens.Field.field @"maybe'outpoint")) ::+ Data.ProtoLens.FieldDescriptor LeaseOutputRequest+ expirationSeconds__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "expiration_seconds"+ (Data.ProtoLens.ScalarField Data.ProtoLens.UInt64Field ::+ Data.ProtoLens.FieldTypeDescriptor Data.Word.Word64)+ (Data.ProtoLens.PlainField+ Data.ProtoLens.Optional+ (Data.ProtoLens.Field.field @"expirationSeconds")) ::+ Data.ProtoLens.FieldDescriptor LeaseOutputRequest+ in+ Data.Map.fromList+ [(Data.ProtoLens.Tag 1, id__field_descriptor),+ (Data.ProtoLens.Tag 2, outpoint__field_descriptor),+ (Data.ProtoLens.Tag 3, expirationSeconds__field_descriptor)]+ unknownFields+ = Lens.Family2.Unchecked.lens+ _LeaseOutputRequest'_unknownFields+ (\ x__ y__ -> x__ {_LeaseOutputRequest'_unknownFields = y__})+ defMessage+ = LeaseOutputRequest'_constructor+ {_LeaseOutputRequest'id = Data.ProtoLens.fieldDefault,+ _LeaseOutputRequest'outpoint = Prelude.Nothing,+ _LeaseOutputRequest'expirationSeconds = Data.ProtoLens.fieldDefault,+ _LeaseOutputRequest'_unknownFields = []}+ parseMessage+ = let+ loop ::+ LeaseOutputRequest+ -> Data.ProtoLens.Encoding.Bytes.Parser LeaseOutputRequest+ loop x+ = do end <- Data.ProtoLens.Encoding.Bytes.atEnd+ if end then+ do (let missing = []+ in+ if Prelude.null missing then+ Prelude.return ()+ else+ Prelude.fail+ ((Prelude.++)+ "Missing required fields: "+ (Prelude.show (missing :: [Prelude.String]))))+ Prelude.return+ (Lens.Family2.over+ Data.ProtoLens.unknownFields (\ !t -> Prelude.reverse t) x)+ else+ do tag <- Data.ProtoLens.Encoding.Bytes.getVarInt+ case tag of+ 10+ -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (do len <- Data.ProtoLens.Encoding.Bytes.getVarInt+ Data.ProtoLens.Encoding.Bytes.getBytes+ (Prelude.fromIntegral len))+ "id"+ loop (Lens.Family2.set (Data.ProtoLens.Field.field @"id") y x)+ 18+ -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (do len <- Data.ProtoLens.Encoding.Bytes.getVarInt+ Data.ProtoLens.Encoding.Bytes.isolate+ (Prelude.fromIntegral len) Data.ProtoLens.parseMessage)+ "outpoint"+ loop+ (Lens.Family2.set (Data.ProtoLens.Field.field @"outpoint") y x)+ 24+ -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ Data.ProtoLens.Encoding.Bytes.getVarInt "expiration_seconds"+ loop+ (Lens.Family2.set+ (Data.ProtoLens.Field.field @"expirationSeconds") y x)+ wire+ -> do !y <- Data.ProtoLens.Encoding.Wire.parseTaggedValueFromWire+ wire+ loop+ (Lens.Family2.over+ Data.ProtoLens.unknownFields (\ !t -> (:) y t) x)+ in+ (Data.ProtoLens.Encoding.Bytes.<?>)+ (do loop Data.ProtoLens.defMessage) "LeaseOutputRequest"+ buildMessage+ = \ _x+ -> (Data.Monoid.<>)+ (let _v = Lens.Family2.view (Data.ProtoLens.Field.field @"id") _x+ in+ if (Prelude.==) _v Data.ProtoLens.fieldDefault then+ Data.Monoid.mempty+ else+ (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 10)+ ((\ bs+ -> (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt+ (Prelude.fromIntegral (Data.ByteString.length bs)))+ (Data.ProtoLens.Encoding.Bytes.putBytes bs))+ _v))+ ((Data.Monoid.<>)+ (case+ Lens.Family2.view (Data.ProtoLens.Field.field @"maybe'outpoint") _x+ of+ Prelude.Nothing -> Data.Monoid.mempty+ (Prelude.Just _v)+ -> (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 18)+ ((Prelude..)+ (\ bs+ -> (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt+ (Prelude.fromIntegral (Data.ByteString.length bs)))+ (Data.ProtoLens.Encoding.Bytes.putBytes bs))+ Data.ProtoLens.encodeMessage _v))+ ((Data.Monoid.<>)+ (let+ _v+ = Lens.Family2.view+ (Data.ProtoLens.Field.field @"expirationSeconds") _x+ in+ if (Prelude.==) _v Data.ProtoLens.fieldDefault then+ Data.Monoid.mempty+ else+ (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 24)+ (Data.ProtoLens.Encoding.Bytes.putVarInt _v))+ (Data.ProtoLens.Encoding.Wire.buildFieldSet+ (Lens.Family2.view Data.ProtoLens.unknownFields _x))))+instance Control.DeepSeq.NFData LeaseOutputRequest where+ rnf+ = \ x__+ -> Control.DeepSeq.deepseq+ (_LeaseOutputRequest'_unknownFields x__)+ (Control.DeepSeq.deepseq+ (_LeaseOutputRequest'id x__)+ (Control.DeepSeq.deepseq+ (_LeaseOutputRequest'outpoint x__)+ (Control.DeepSeq.deepseq+ (_LeaseOutputRequest'expirationSeconds x__) ())))+{- | Fields :+ + * 'Proto.Walletrpc.Walletkit_Fields.expiration' @:: Lens' LeaseOutputResponse Data.Word.Word64@ -}+data LeaseOutputResponse+ = LeaseOutputResponse'_constructor {_LeaseOutputResponse'expiration :: !Data.Word.Word64,+ _LeaseOutputResponse'_unknownFields :: !Data.ProtoLens.FieldSet}+ deriving stock (Prelude.Eq, Prelude.Ord, GHC.Generics.Generic)+instance Prelude.Show LeaseOutputResponse where+ showsPrec _ __x __s+ = Prelude.showChar+ '{'+ (Prelude.showString+ (Data.ProtoLens.showMessageShort __x) (Prelude.showChar '}' __s))+instance Text.PrettyPrint.GenericPretty.Out LeaseOutputResponse+instance Data.ProtoLens.Field.HasField LeaseOutputResponse "expiration" Data.Word.Word64 where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _LeaseOutputResponse'expiration+ (\ x__ y__ -> x__ {_LeaseOutputResponse'expiration = y__}))+ Prelude.id+instance Data.ProtoLens.Message LeaseOutputResponse where+ messageName _ = Data.Text.pack "walletrpc.LeaseOutputResponse"+ packedMessageDescriptor _+ = "\n\+ \\DC3LeaseOutputResponse\DC2\RS\n\+ \\n\+ \expiration\CAN\SOH \SOH(\EOTR\n\+ \expiration"+ packedFileDescriptor _ = packedFileDescriptor+ fieldsByTag+ = let+ expiration__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "expiration"+ (Data.ProtoLens.ScalarField Data.ProtoLens.UInt64Field ::+ Data.ProtoLens.FieldTypeDescriptor Data.Word.Word64)+ (Data.ProtoLens.PlainField+ Data.ProtoLens.Optional+ (Data.ProtoLens.Field.field @"expiration")) ::+ Data.ProtoLens.FieldDescriptor LeaseOutputResponse+ in+ Data.Map.fromList+ [(Data.ProtoLens.Tag 1, expiration__field_descriptor)]+ unknownFields+ = Lens.Family2.Unchecked.lens+ _LeaseOutputResponse'_unknownFields+ (\ x__ y__ -> x__ {_LeaseOutputResponse'_unknownFields = y__})+ defMessage+ = LeaseOutputResponse'_constructor+ {_LeaseOutputResponse'expiration = Data.ProtoLens.fieldDefault,+ _LeaseOutputResponse'_unknownFields = []}+ parseMessage+ = let+ loop ::+ LeaseOutputResponse+ -> Data.ProtoLens.Encoding.Bytes.Parser LeaseOutputResponse+ loop x+ = do end <- Data.ProtoLens.Encoding.Bytes.atEnd+ if end then+ do (let missing = []+ in+ if Prelude.null missing then+ Prelude.return ()+ else+ Prelude.fail+ ((Prelude.++)+ "Missing required fields: "+ (Prelude.show (missing :: [Prelude.String]))))+ Prelude.return+ (Lens.Family2.over+ Data.ProtoLens.unknownFields (\ !t -> Prelude.reverse t) x)+ else+ do tag <- Data.ProtoLens.Encoding.Bytes.getVarInt+ case tag of+ 8 -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ Data.ProtoLens.Encoding.Bytes.getVarInt "expiration"+ loop+ (Lens.Family2.set (Data.ProtoLens.Field.field @"expiration") y x)+ wire+ -> do !y <- Data.ProtoLens.Encoding.Wire.parseTaggedValueFromWire+ wire+ loop+ (Lens.Family2.over+ Data.ProtoLens.unknownFields (\ !t -> (:) y t) x)+ in+ (Data.ProtoLens.Encoding.Bytes.<?>)+ (do loop Data.ProtoLens.defMessage) "LeaseOutputResponse"+ buildMessage+ = \ _x+ -> (Data.Monoid.<>)+ (let+ _v+ = Lens.Family2.view (Data.ProtoLens.Field.field @"expiration") _x+ in+ if (Prelude.==) _v Data.ProtoLens.fieldDefault then+ Data.Monoid.mempty+ else+ (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 8)+ (Data.ProtoLens.Encoding.Bytes.putVarInt _v))+ (Data.ProtoLens.Encoding.Wire.buildFieldSet+ (Lens.Family2.view Data.ProtoLens.unknownFields _x))+instance Control.DeepSeq.NFData LeaseOutputResponse where+ rnf+ = \ x__+ -> Control.DeepSeq.deepseq+ (_LeaseOutputResponse'_unknownFields x__)+ (Control.DeepSeq.deepseq (_LeaseOutputResponse'expiration x__) ())+{- | Fields :+ + * 'Proto.Walletrpc.Walletkit_Fields.name' @:: Lens' ListAccountsRequest Data.Text.Text@+ * 'Proto.Walletrpc.Walletkit_Fields.addressType' @:: Lens' ListAccountsRequest AddressType@ -}+data ListAccountsRequest+ = ListAccountsRequest'_constructor {_ListAccountsRequest'name :: !Data.Text.Text,+ _ListAccountsRequest'addressType :: !AddressType,+ _ListAccountsRequest'_unknownFields :: !Data.ProtoLens.FieldSet}+ deriving stock (Prelude.Eq, Prelude.Ord, GHC.Generics.Generic)+instance Prelude.Show ListAccountsRequest where+ showsPrec _ __x __s+ = Prelude.showChar+ '{'+ (Prelude.showString+ (Data.ProtoLens.showMessageShort __x) (Prelude.showChar '}' __s))+instance Text.PrettyPrint.GenericPretty.Out ListAccountsRequest+instance Data.ProtoLens.Field.HasField ListAccountsRequest "name" Data.Text.Text where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _ListAccountsRequest'name+ (\ x__ y__ -> x__ {_ListAccountsRequest'name = y__}))+ Prelude.id+instance Data.ProtoLens.Field.HasField ListAccountsRequest "addressType" AddressType where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _ListAccountsRequest'addressType+ (\ x__ y__ -> x__ {_ListAccountsRequest'addressType = y__}))+ Prelude.id+instance Data.ProtoLens.Message ListAccountsRequest where+ messageName _ = Data.Text.pack "walletrpc.ListAccountsRequest"+ packedMessageDescriptor _+ = "\n\+ \\DC3ListAccountsRequest\DC2\DC2\n\+ \\EOTname\CAN\SOH \SOH(\tR\EOTname\DC29\n\+ \\faddress_type\CAN\STX \SOH(\SO2\SYN.walletrpc.AddressTypeR\vaddressType"+ packedFileDescriptor _ = packedFileDescriptor+ fieldsByTag+ = let+ name__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "name"+ (Data.ProtoLens.ScalarField Data.ProtoLens.StringField ::+ Data.ProtoLens.FieldTypeDescriptor Data.Text.Text)+ (Data.ProtoLens.PlainField+ Data.ProtoLens.Optional (Data.ProtoLens.Field.field @"name")) ::+ Data.ProtoLens.FieldDescriptor ListAccountsRequest+ addressType__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "address_type"+ (Data.ProtoLens.ScalarField Data.ProtoLens.EnumField ::+ Data.ProtoLens.FieldTypeDescriptor AddressType)+ (Data.ProtoLens.PlainField+ Data.ProtoLens.Optional+ (Data.ProtoLens.Field.field @"addressType")) ::+ Data.ProtoLens.FieldDescriptor ListAccountsRequest+ in+ Data.Map.fromList+ [(Data.ProtoLens.Tag 1, name__field_descriptor),+ (Data.ProtoLens.Tag 2, addressType__field_descriptor)]+ unknownFields+ = Lens.Family2.Unchecked.lens+ _ListAccountsRequest'_unknownFields+ (\ x__ y__ -> x__ {_ListAccountsRequest'_unknownFields = y__})+ defMessage+ = ListAccountsRequest'_constructor+ {_ListAccountsRequest'name = Data.ProtoLens.fieldDefault,+ _ListAccountsRequest'addressType = Data.ProtoLens.fieldDefault,+ _ListAccountsRequest'_unknownFields = []}+ parseMessage+ = let+ loop ::+ ListAccountsRequest+ -> Data.ProtoLens.Encoding.Bytes.Parser ListAccountsRequest+ loop x+ = do end <- Data.ProtoLens.Encoding.Bytes.atEnd+ if end then+ do (let missing = []+ in+ if Prelude.null missing then+ Prelude.return ()+ else+ Prelude.fail+ ((Prelude.++)+ "Missing required fields: "+ (Prelude.show (missing :: [Prelude.String]))))+ Prelude.return+ (Lens.Family2.over+ Data.ProtoLens.unknownFields (\ !t -> Prelude.reverse t) x)+ else+ do tag <- Data.ProtoLens.Encoding.Bytes.getVarInt+ case tag of+ 10+ -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (do value <- do len <- Data.ProtoLens.Encoding.Bytes.getVarInt+ Data.ProtoLens.Encoding.Bytes.getBytes+ (Prelude.fromIntegral len)+ Data.ProtoLens.Encoding.Bytes.runEither+ (case Data.Text.Encoding.decodeUtf8' value of+ (Prelude.Left err)+ -> Prelude.Left (Prelude.show err)+ (Prelude.Right r) -> Prelude.Right r))+ "name"+ loop (Lens.Family2.set (Data.ProtoLens.Field.field @"name") y x)+ 16+ -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (Prelude.fmap+ Prelude.toEnum+ (Prelude.fmap+ Prelude.fromIntegral+ Data.ProtoLens.Encoding.Bytes.getVarInt))+ "address_type"+ loop+ (Lens.Family2.set (Data.ProtoLens.Field.field @"addressType") y x)+ wire+ -> do !y <- Data.ProtoLens.Encoding.Wire.parseTaggedValueFromWire+ wire+ loop+ (Lens.Family2.over+ Data.ProtoLens.unknownFields (\ !t -> (:) y t) x)+ in+ (Data.ProtoLens.Encoding.Bytes.<?>)+ (do loop Data.ProtoLens.defMessage) "ListAccountsRequest"+ buildMessage+ = \ _x+ -> (Data.Monoid.<>)+ (let _v = Lens.Family2.view (Data.ProtoLens.Field.field @"name") _x+ in+ if (Prelude.==) _v Data.ProtoLens.fieldDefault then+ Data.Monoid.mempty+ else+ (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 10)+ ((Prelude..)+ (\ bs+ -> (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt+ (Prelude.fromIntegral (Data.ByteString.length bs)))+ (Data.ProtoLens.Encoding.Bytes.putBytes bs))+ Data.Text.Encoding.encodeUtf8 _v))+ ((Data.Monoid.<>)+ (let+ _v+ = Lens.Family2.view (Data.ProtoLens.Field.field @"addressType") _x+ in+ if (Prelude.==) _v Data.ProtoLens.fieldDefault then+ Data.Monoid.mempty+ else+ (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 16)+ ((Prelude..)+ ((Prelude..)+ Data.ProtoLens.Encoding.Bytes.putVarInt Prelude.fromIntegral)+ Prelude.fromEnum _v))+ (Data.ProtoLens.Encoding.Wire.buildFieldSet+ (Lens.Family2.view Data.ProtoLens.unknownFields _x)))+instance Control.DeepSeq.NFData ListAccountsRequest where+ rnf+ = \ x__+ -> Control.DeepSeq.deepseq+ (_ListAccountsRequest'_unknownFields x__)+ (Control.DeepSeq.deepseq+ (_ListAccountsRequest'name x__)+ (Control.DeepSeq.deepseq+ (_ListAccountsRequest'addressType x__) ()))+{- | Fields :+ + * 'Proto.Walletrpc.Walletkit_Fields.accounts' @:: Lens' ListAccountsResponse [Account]@+ * 'Proto.Walletrpc.Walletkit_Fields.vec'accounts' @:: Lens' ListAccountsResponse (Data.Vector.Vector Account)@ -}+data ListAccountsResponse+ = ListAccountsResponse'_constructor {_ListAccountsResponse'accounts :: !(Data.Vector.Vector Account),+ _ListAccountsResponse'_unknownFields :: !Data.ProtoLens.FieldSet}+ deriving stock (Prelude.Eq, Prelude.Ord, GHC.Generics.Generic)+instance Prelude.Show ListAccountsResponse where+ showsPrec _ __x __s+ = Prelude.showChar+ '{'+ (Prelude.showString+ (Data.ProtoLens.showMessageShort __x) (Prelude.showChar '}' __s))+instance Text.PrettyPrint.GenericPretty.Out ListAccountsResponse+instance Data.ProtoLens.Field.HasField ListAccountsResponse "accounts" [Account] where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _ListAccountsResponse'accounts+ (\ x__ y__ -> x__ {_ListAccountsResponse'accounts = y__}))+ (Lens.Family2.Unchecked.lens+ Data.Vector.Generic.toList+ (\ _ y__ -> Data.Vector.Generic.fromList y__))+instance Data.ProtoLens.Field.HasField ListAccountsResponse "vec'accounts" (Data.Vector.Vector Account) where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _ListAccountsResponse'accounts+ (\ x__ y__ -> x__ {_ListAccountsResponse'accounts = y__}))+ Prelude.id+instance Data.ProtoLens.Message ListAccountsResponse where+ messageName _ = Data.Text.pack "walletrpc.ListAccountsResponse"+ packedMessageDescriptor _+ = "\n\+ \\DC4ListAccountsResponse\DC2.\n\+ \\baccounts\CAN\SOH \ETX(\v2\DC2.walletrpc.AccountR\baccounts"+ packedFileDescriptor _ = packedFileDescriptor+ fieldsByTag+ = let+ accounts__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "accounts"+ (Data.ProtoLens.MessageField Data.ProtoLens.MessageType ::+ Data.ProtoLens.FieldTypeDescriptor Account)+ (Data.ProtoLens.RepeatedField+ Data.ProtoLens.Unpacked+ (Data.ProtoLens.Field.field @"accounts")) ::+ Data.ProtoLens.FieldDescriptor ListAccountsResponse+ in+ Data.Map.fromList+ [(Data.ProtoLens.Tag 1, accounts__field_descriptor)]+ unknownFields+ = Lens.Family2.Unchecked.lens+ _ListAccountsResponse'_unknownFields+ (\ x__ y__ -> x__ {_ListAccountsResponse'_unknownFields = y__})+ defMessage+ = ListAccountsResponse'_constructor+ {_ListAccountsResponse'accounts = Data.Vector.Generic.empty,+ _ListAccountsResponse'_unknownFields = []}+ parseMessage+ = let+ loop ::+ ListAccountsResponse+ -> Data.ProtoLens.Encoding.Growing.Growing Data.Vector.Vector Data.ProtoLens.Encoding.Growing.RealWorld Account+ -> Data.ProtoLens.Encoding.Bytes.Parser ListAccountsResponse+ loop x mutable'accounts+ = do end <- Data.ProtoLens.Encoding.Bytes.atEnd+ if end then+ do frozen'accounts <- Data.ProtoLens.Encoding.Parser.Unsafe.unsafeLiftIO+ (Data.ProtoLens.Encoding.Growing.unsafeFreeze+ mutable'accounts)+ (let missing = []+ in+ if Prelude.null missing then+ Prelude.return ()+ else+ Prelude.fail+ ((Prelude.++)+ "Missing required fields: "+ (Prelude.show (missing :: [Prelude.String]))))+ Prelude.return+ (Lens.Family2.over+ Data.ProtoLens.unknownFields (\ !t -> Prelude.reverse t)+ (Lens.Family2.set+ (Data.ProtoLens.Field.field @"vec'accounts") frozen'accounts x))+ else+ do tag <- Data.ProtoLens.Encoding.Bytes.getVarInt+ case tag of+ 10+ -> do !y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (do len <- Data.ProtoLens.Encoding.Bytes.getVarInt+ Data.ProtoLens.Encoding.Bytes.isolate+ (Prelude.fromIntegral len)+ Data.ProtoLens.parseMessage)+ "accounts"+ v <- Data.ProtoLens.Encoding.Parser.Unsafe.unsafeLiftIO+ (Data.ProtoLens.Encoding.Growing.append mutable'accounts y)+ loop x v+ wire+ -> do !y <- Data.ProtoLens.Encoding.Wire.parseTaggedValueFromWire+ wire+ loop+ (Lens.Family2.over+ Data.ProtoLens.unknownFields (\ !t -> (:) y t) x)+ mutable'accounts+ in+ (Data.ProtoLens.Encoding.Bytes.<?>)+ (do mutable'accounts <- Data.ProtoLens.Encoding.Parser.Unsafe.unsafeLiftIO+ Data.ProtoLens.Encoding.Growing.new+ loop Data.ProtoLens.defMessage mutable'accounts)+ "ListAccountsResponse"+ buildMessage+ = \ _x+ -> (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.foldMapBuilder+ (\ _v+ -> (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 10)+ ((Prelude..)+ (\ bs+ -> (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt+ (Prelude.fromIntegral (Data.ByteString.length bs)))+ (Data.ProtoLens.Encoding.Bytes.putBytes bs))+ Data.ProtoLens.encodeMessage _v))+ (Lens.Family2.view+ (Data.ProtoLens.Field.field @"vec'accounts") _x))+ (Data.ProtoLens.Encoding.Wire.buildFieldSet+ (Lens.Family2.view Data.ProtoLens.unknownFields _x))+instance Control.DeepSeq.NFData ListAccountsResponse where+ rnf+ = \ x__+ -> Control.DeepSeq.deepseq+ (_ListAccountsResponse'_unknownFields x__)+ (Control.DeepSeq.deepseq (_ListAccountsResponse'accounts x__) ())+{- | Fields :+ -}+data ListLeasesRequest+ = ListLeasesRequest'_constructor {_ListLeasesRequest'_unknownFields :: !Data.ProtoLens.FieldSet}+ deriving stock (Prelude.Eq, Prelude.Ord, GHC.Generics.Generic)+instance Prelude.Show ListLeasesRequest where+ showsPrec _ __x __s+ = Prelude.showChar+ '{'+ (Prelude.showString+ (Data.ProtoLens.showMessageShort __x) (Prelude.showChar '}' __s))+instance Text.PrettyPrint.GenericPretty.Out ListLeasesRequest+instance Data.ProtoLens.Message ListLeasesRequest where+ messageName _ = Data.Text.pack "walletrpc.ListLeasesRequest"+ packedMessageDescriptor _+ = "\n\+ \\DC1ListLeasesRequest"+ packedFileDescriptor _ = packedFileDescriptor+ fieldsByTag = let in Data.Map.fromList []+ unknownFields+ = Lens.Family2.Unchecked.lens+ _ListLeasesRequest'_unknownFields+ (\ x__ y__ -> x__ {_ListLeasesRequest'_unknownFields = y__})+ defMessage+ = ListLeasesRequest'_constructor+ {_ListLeasesRequest'_unknownFields = []}+ parseMessage+ = let+ loop ::+ ListLeasesRequest+ -> Data.ProtoLens.Encoding.Bytes.Parser ListLeasesRequest+ loop x+ = do end <- Data.ProtoLens.Encoding.Bytes.atEnd+ if end then+ do (let missing = []+ in+ if Prelude.null missing then+ Prelude.return ()+ else+ Prelude.fail+ ((Prelude.++)+ "Missing required fields: "+ (Prelude.show (missing :: [Prelude.String]))))+ Prelude.return+ (Lens.Family2.over+ Data.ProtoLens.unknownFields (\ !t -> Prelude.reverse t) x)+ else+ do tag <- Data.ProtoLens.Encoding.Bytes.getVarInt+ case tag of {+ wire+ -> do !y <- Data.ProtoLens.Encoding.Wire.parseTaggedValueFromWire+ wire+ loop+ (Lens.Family2.over+ Data.ProtoLens.unknownFields (\ !t -> (:) y t) x) }+ in+ (Data.ProtoLens.Encoding.Bytes.<?>)+ (do loop Data.ProtoLens.defMessage) "ListLeasesRequest"+ buildMessage+ = \ _x+ -> Data.ProtoLens.Encoding.Wire.buildFieldSet+ (Lens.Family2.view Data.ProtoLens.unknownFields _x)+instance Control.DeepSeq.NFData ListLeasesRequest where+ rnf+ = \ x__+ -> Control.DeepSeq.deepseq+ (_ListLeasesRequest'_unknownFields x__) ()+{- | Fields :+ + * 'Proto.Walletrpc.Walletkit_Fields.lockedUtxos' @:: Lens' ListLeasesResponse [UtxoLease]@+ * 'Proto.Walletrpc.Walletkit_Fields.vec'lockedUtxos' @:: Lens' ListLeasesResponse (Data.Vector.Vector UtxoLease)@ -}+data ListLeasesResponse+ = ListLeasesResponse'_constructor {_ListLeasesResponse'lockedUtxos :: !(Data.Vector.Vector UtxoLease),+ _ListLeasesResponse'_unknownFields :: !Data.ProtoLens.FieldSet}+ deriving stock (Prelude.Eq, Prelude.Ord, GHC.Generics.Generic)+instance Prelude.Show ListLeasesResponse where+ showsPrec _ __x __s+ = Prelude.showChar+ '{'+ (Prelude.showString+ (Data.ProtoLens.showMessageShort __x) (Prelude.showChar '}' __s))+instance Text.PrettyPrint.GenericPretty.Out ListLeasesResponse+instance Data.ProtoLens.Field.HasField ListLeasesResponse "lockedUtxos" [UtxoLease] where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _ListLeasesResponse'lockedUtxos+ (\ x__ y__ -> x__ {_ListLeasesResponse'lockedUtxos = y__}))+ (Lens.Family2.Unchecked.lens+ Data.Vector.Generic.toList+ (\ _ y__ -> Data.Vector.Generic.fromList y__))+instance Data.ProtoLens.Field.HasField ListLeasesResponse "vec'lockedUtxos" (Data.Vector.Vector UtxoLease) where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _ListLeasesResponse'lockedUtxos+ (\ x__ y__ -> x__ {_ListLeasesResponse'lockedUtxos = y__}))+ Prelude.id+instance Data.ProtoLens.Message ListLeasesResponse where+ messageName _ = Data.Text.pack "walletrpc.ListLeasesResponse"+ packedMessageDescriptor _+ = "\n\+ \\DC2ListLeasesResponse\DC27\n\+ \\flocked_utxos\CAN\SOH \ETX(\v2\DC4.walletrpc.UtxoLeaseR\vlockedUtxos"+ packedFileDescriptor _ = packedFileDescriptor+ fieldsByTag+ = let+ lockedUtxos__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "locked_utxos"+ (Data.ProtoLens.MessageField Data.ProtoLens.MessageType ::+ Data.ProtoLens.FieldTypeDescriptor UtxoLease)+ (Data.ProtoLens.RepeatedField+ Data.ProtoLens.Unpacked+ (Data.ProtoLens.Field.field @"lockedUtxos")) ::+ Data.ProtoLens.FieldDescriptor ListLeasesResponse+ in+ Data.Map.fromList+ [(Data.ProtoLens.Tag 1, lockedUtxos__field_descriptor)]+ unknownFields+ = Lens.Family2.Unchecked.lens+ _ListLeasesResponse'_unknownFields+ (\ x__ y__ -> x__ {_ListLeasesResponse'_unknownFields = y__})+ defMessage+ = ListLeasesResponse'_constructor+ {_ListLeasesResponse'lockedUtxos = Data.Vector.Generic.empty,+ _ListLeasesResponse'_unknownFields = []}+ parseMessage+ = let+ loop ::+ ListLeasesResponse+ -> Data.ProtoLens.Encoding.Growing.Growing Data.Vector.Vector Data.ProtoLens.Encoding.Growing.RealWorld UtxoLease+ -> Data.ProtoLens.Encoding.Bytes.Parser ListLeasesResponse+ loop x mutable'lockedUtxos+ = do end <- Data.ProtoLens.Encoding.Bytes.atEnd+ if end then+ do frozen'lockedUtxos <- Data.ProtoLens.Encoding.Parser.Unsafe.unsafeLiftIO+ (Data.ProtoLens.Encoding.Growing.unsafeFreeze+ mutable'lockedUtxos)+ (let missing = []+ in+ if Prelude.null missing then+ Prelude.return ()+ else+ Prelude.fail+ ((Prelude.++)+ "Missing required fields: "+ (Prelude.show (missing :: [Prelude.String]))))+ Prelude.return+ (Lens.Family2.over+ Data.ProtoLens.unknownFields (\ !t -> Prelude.reverse t)+ (Lens.Family2.set+ (Data.ProtoLens.Field.field @"vec'lockedUtxos") frozen'lockedUtxos+ x))+ else+ do tag <- Data.ProtoLens.Encoding.Bytes.getVarInt+ case tag of+ 10+ -> do !y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (do len <- Data.ProtoLens.Encoding.Bytes.getVarInt+ Data.ProtoLens.Encoding.Bytes.isolate+ (Prelude.fromIntegral len)+ Data.ProtoLens.parseMessage)+ "locked_utxos"+ v <- Data.ProtoLens.Encoding.Parser.Unsafe.unsafeLiftIO+ (Data.ProtoLens.Encoding.Growing.append+ mutable'lockedUtxos y)+ loop x v+ wire+ -> do !y <- Data.ProtoLens.Encoding.Wire.parseTaggedValueFromWire+ wire+ loop+ (Lens.Family2.over+ Data.ProtoLens.unknownFields (\ !t -> (:) y t) x)+ mutable'lockedUtxos+ in+ (Data.ProtoLens.Encoding.Bytes.<?>)+ (do mutable'lockedUtxos <- Data.ProtoLens.Encoding.Parser.Unsafe.unsafeLiftIO+ Data.ProtoLens.Encoding.Growing.new+ loop Data.ProtoLens.defMessage mutable'lockedUtxos)+ "ListLeasesResponse"+ buildMessage+ = \ _x+ -> (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.foldMapBuilder+ (\ _v+ -> (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 10)+ ((Prelude..)+ (\ bs+ -> (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt+ (Prelude.fromIntegral (Data.ByteString.length bs)))+ (Data.ProtoLens.Encoding.Bytes.putBytes bs))+ Data.ProtoLens.encodeMessage _v))+ (Lens.Family2.view+ (Data.ProtoLens.Field.field @"vec'lockedUtxos") _x))+ (Data.ProtoLens.Encoding.Wire.buildFieldSet+ (Lens.Family2.view Data.ProtoLens.unknownFields _x))+instance Control.DeepSeq.NFData ListLeasesResponse where+ rnf+ = \ x__+ -> Control.DeepSeq.deepseq+ (_ListLeasesResponse'_unknownFields x__)+ (Control.DeepSeq.deepseq (_ListLeasesResponse'lockedUtxos x__) ())+{- | Fields :+ + * 'Proto.Walletrpc.Walletkit_Fields.verbose' @:: Lens' ListSweepsRequest Prelude.Bool@ -}+data ListSweepsRequest+ = ListSweepsRequest'_constructor {_ListSweepsRequest'verbose :: !Prelude.Bool,+ _ListSweepsRequest'_unknownFields :: !Data.ProtoLens.FieldSet}+ deriving stock (Prelude.Eq, Prelude.Ord, GHC.Generics.Generic)+instance Prelude.Show ListSweepsRequest where+ showsPrec _ __x __s+ = Prelude.showChar+ '{'+ (Prelude.showString+ (Data.ProtoLens.showMessageShort __x) (Prelude.showChar '}' __s))+instance Text.PrettyPrint.GenericPretty.Out ListSweepsRequest+instance Data.ProtoLens.Field.HasField ListSweepsRequest "verbose" Prelude.Bool where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _ListSweepsRequest'verbose+ (\ x__ y__ -> x__ {_ListSweepsRequest'verbose = y__}))+ Prelude.id+instance Data.ProtoLens.Message ListSweepsRequest where+ messageName _ = Data.Text.pack "walletrpc.ListSweepsRequest"+ packedMessageDescriptor _+ = "\n\+ \\DC1ListSweepsRequest\DC2\CAN\n\+ \\averbose\CAN\SOH \SOH(\bR\averbose"+ packedFileDescriptor _ = packedFileDescriptor+ fieldsByTag+ = let+ verbose__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "verbose"+ (Data.ProtoLens.ScalarField Data.ProtoLens.BoolField ::+ Data.ProtoLens.FieldTypeDescriptor Prelude.Bool)+ (Data.ProtoLens.PlainField+ Data.ProtoLens.Optional (Data.ProtoLens.Field.field @"verbose")) ::+ Data.ProtoLens.FieldDescriptor ListSweepsRequest+ in+ Data.Map.fromList+ [(Data.ProtoLens.Tag 1, verbose__field_descriptor)]+ unknownFields+ = Lens.Family2.Unchecked.lens+ _ListSweepsRequest'_unknownFields+ (\ x__ y__ -> x__ {_ListSweepsRequest'_unknownFields = y__})+ defMessage+ = ListSweepsRequest'_constructor+ {_ListSweepsRequest'verbose = Data.ProtoLens.fieldDefault,+ _ListSweepsRequest'_unknownFields = []}+ parseMessage+ = let+ loop ::+ ListSweepsRequest+ -> Data.ProtoLens.Encoding.Bytes.Parser ListSweepsRequest+ loop x+ = do end <- Data.ProtoLens.Encoding.Bytes.atEnd+ if end then+ do (let missing = []+ in+ if Prelude.null missing then+ Prelude.return ()+ else+ Prelude.fail+ ((Prelude.++)+ "Missing required fields: "+ (Prelude.show (missing :: [Prelude.String]))))+ Prelude.return+ (Lens.Family2.over+ Data.ProtoLens.unknownFields (\ !t -> Prelude.reverse t) x)+ else+ do tag <- Data.ProtoLens.Encoding.Bytes.getVarInt+ case tag of+ 8 -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (Prelude.fmap+ ((Prelude./=) 0) Data.ProtoLens.Encoding.Bytes.getVarInt)+ "verbose"+ loop (Lens.Family2.set (Data.ProtoLens.Field.field @"verbose") y x)+ wire+ -> do !y <- Data.ProtoLens.Encoding.Wire.parseTaggedValueFromWire+ wire+ loop+ (Lens.Family2.over+ Data.ProtoLens.unknownFields (\ !t -> (:) y t) x)+ in+ (Data.ProtoLens.Encoding.Bytes.<?>)+ (do loop Data.ProtoLens.defMessage) "ListSweepsRequest"+ buildMessage+ = \ _x+ -> (Data.Monoid.<>)+ (let+ _v = Lens.Family2.view (Data.ProtoLens.Field.field @"verbose") _x+ in+ if (Prelude.==) _v Data.ProtoLens.fieldDefault then+ Data.Monoid.mempty+ else+ (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 8)+ ((Prelude..)+ Data.ProtoLens.Encoding.Bytes.putVarInt (\ b -> if b then 1 else 0)+ _v))+ (Data.ProtoLens.Encoding.Wire.buildFieldSet+ (Lens.Family2.view Data.ProtoLens.unknownFields _x))+instance Control.DeepSeq.NFData ListSweepsRequest where+ rnf+ = \ x__+ -> Control.DeepSeq.deepseq+ (_ListSweepsRequest'_unknownFields x__)+ (Control.DeepSeq.deepseq (_ListSweepsRequest'verbose x__) ())+{- | Fields :+ + * 'Proto.Walletrpc.Walletkit_Fields.maybe'sweeps' @:: Lens' ListSweepsResponse (Prelude.Maybe ListSweepsResponse'Sweeps)@+ * 'Proto.Walletrpc.Walletkit_Fields.maybe'transactionDetails' @:: Lens' ListSweepsResponse (Prelude.Maybe Proto.Lightning.TransactionDetails)@+ * 'Proto.Walletrpc.Walletkit_Fields.transactionDetails' @:: Lens' ListSweepsResponse Proto.Lightning.TransactionDetails@+ * 'Proto.Walletrpc.Walletkit_Fields.maybe'transactionIds' @:: Lens' ListSweepsResponse (Prelude.Maybe ListSweepsResponse'TransactionIDs)@+ * 'Proto.Walletrpc.Walletkit_Fields.transactionIds' @:: Lens' ListSweepsResponse ListSweepsResponse'TransactionIDs@ -}+data ListSweepsResponse+ = ListSweepsResponse'_constructor {_ListSweepsResponse'sweeps :: !(Prelude.Maybe ListSweepsResponse'Sweeps),+ _ListSweepsResponse'_unknownFields :: !Data.ProtoLens.FieldSet}+ deriving stock (Prelude.Eq, Prelude.Ord, GHC.Generics.Generic)+instance Prelude.Show ListSweepsResponse where+ showsPrec _ __x __s+ = Prelude.showChar+ '{'+ (Prelude.showString+ (Data.ProtoLens.showMessageShort __x) (Prelude.showChar '}' __s))+instance Text.PrettyPrint.GenericPretty.Out ListSweepsResponse+data ListSweepsResponse'Sweeps+ = ListSweepsResponse'TransactionDetails !Proto.Lightning.TransactionDetails |+ ListSweepsResponse'TransactionIds !ListSweepsResponse'TransactionIDs+ deriving stock (Prelude.Show,+ Prelude.Eq,+ Prelude.Ord,+ GHC.Generics.Generic)+instance Text.PrettyPrint.GenericPretty.Out ListSweepsResponse'Sweeps+instance Data.ProtoLens.Field.HasField ListSweepsResponse "maybe'sweeps" (Prelude.Maybe ListSweepsResponse'Sweeps) where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _ListSweepsResponse'sweeps+ (\ x__ y__ -> x__ {_ListSweepsResponse'sweeps = y__}))+ Prelude.id+instance Data.ProtoLens.Field.HasField ListSweepsResponse "maybe'transactionDetails" (Prelude.Maybe Proto.Lightning.TransactionDetails) where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _ListSweepsResponse'sweeps+ (\ x__ y__ -> x__ {_ListSweepsResponse'sweeps = y__}))+ (Lens.Family2.Unchecked.lens+ (\ x__+ -> case x__ of+ (Prelude.Just (ListSweepsResponse'TransactionDetails x__val))+ -> Prelude.Just x__val+ _otherwise -> Prelude.Nothing)+ (\ _ y__+ -> Prelude.fmap ListSweepsResponse'TransactionDetails y__))+instance Data.ProtoLens.Field.HasField ListSweepsResponse "transactionDetails" Proto.Lightning.TransactionDetails where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _ListSweepsResponse'sweeps+ (\ x__ y__ -> x__ {_ListSweepsResponse'sweeps = y__}))+ ((Prelude..)+ (Lens.Family2.Unchecked.lens+ (\ x__+ -> case x__ of+ (Prelude.Just (ListSweepsResponse'TransactionDetails x__val))+ -> Prelude.Just x__val+ _otherwise -> Prelude.Nothing)+ (\ _ y__+ -> Prelude.fmap ListSweepsResponse'TransactionDetails y__))+ (Data.ProtoLens.maybeLens Data.ProtoLens.defMessage))+instance Data.ProtoLens.Field.HasField ListSweepsResponse "maybe'transactionIds" (Prelude.Maybe ListSweepsResponse'TransactionIDs) where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _ListSweepsResponse'sweeps+ (\ x__ y__ -> x__ {_ListSweepsResponse'sweeps = y__}))+ (Lens.Family2.Unchecked.lens+ (\ x__+ -> case x__ of+ (Prelude.Just (ListSweepsResponse'TransactionIds x__val))+ -> Prelude.Just x__val+ _otherwise -> Prelude.Nothing)+ (\ _ y__ -> Prelude.fmap ListSweepsResponse'TransactionIds y__))+instance Data.ProtoLens.Field.HasField ListSweepsResponse "transactionIds" ListSweepsResponse'TransactionIDs where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _ListSweepsResponse'sweeps+ (\ x__ y__ -> x__ {_ListSweepsResponse'sweeps = y__}))+ ((Prelude..)+ (Lens.Family2.Unchecked.lens+ (\ x__+ -> case x__ of+ (Prelude.Just (ListSweepsResponse'TransactionIds x__val))+ -> Prelude.Just x__val+ _otherwise -> Prelude.Nothing)+ (\ _ y__ -> Prelude.fmap ListSweepsResponse'TransactionIds y__))+ (Data.ProtoLens.maybeLens Data.ProtoLens.defMessage))+instance Data.ProtoLens.Message ListSweepsResponse where+ messageName _ = Data.Text.pack "walletrpc.ListSweepsResponse"+ packedMessageDescriptor _+ = "\n\+ \\DC2ListSweepsResponse\DC2L\n\+ \\DC3transaction_details\CAN\SOH \SOH(\v2\EM.lnrpc.TransactionDetailsH\NULR\DC2transactionDetails\DC2W\n\+ \\SItransaction_ids\CAN\STX \SOH(\v2,.walletrpc.ListSweepsResponse.TransactionIDsH\NULR\SOtransactionIds\SUB9\n\+ \\SOTransactionIDs\DC2'\n\+ \\SItransaction_ids\CAN\SOH \ETX(\tR\SOtransactionIdsB\b\n\+ \\ACKsweeps"+ packedFileDescriptor _ = packedFileDescriptor+ fieldsByTag+ = let+ transactionDetails__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "transaction_details"+ (Data.ProtoLens.MessageField Data.ProtoLens.MessageType ::+ Data.ProtoLens.FieldTypeDescriptor Proto.Lightning.TransactionDetails)+ (Data.ProtoLens.OptionalField+ (Data.ProtoLens.Field.field @"maybe'transactionDetails")) ::+ Data.ProtoLens.FieldDescriptor ListSweepsResponse+ transactionIds__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "transaction_ids"+ (Data.ProtoLens.MessageField Data.ProtoLens.MessageType ::+ Data.ProtoLens.FieldTypeDescriptor ListSweepsResponse'TransactionIDs)+ (Data.ProtoLens.OptionalField+ (Data.ProtoLens.Field.field @"maybe'transactionIds")) ::+ Data.ProtoLens.FieldDescriptor ListSweepsResponse+ in+ Data.Map.fromList+ [(Data.ProtoLens.Tag 1, transactionDetails__field_descriptor),+ (Data.ProtoLens.Tag 2, transactionIds__field_descriptor)]+ unknownFields+ = Lens.Family2.Unchecked.lens+ _ListSweepsResponse'_unknownFields+ (\ x__ y__ -> x__ {_ListSweepsResponse'_unknownFields = y__})+ defMessage+ = ListSweepsResponse'_constructor+ {_ListSweepsResponse'sweeps = Prelude.Nothing,+ _ListSweepsResponse'_unknownFields = []}+ parseMessage+ = let+ loop ::+ ListSweepsResponse+ -> Data.ProtoLens.Encoding.Bytes.Parser ListSweepsResponse+ loop x+ = do end <- Data.ProtoLens.Encoding.Bytes.atEnd+ if end then+ do (let missing = []+ in+ if Prelude.null missing then+ Prelude.return ()+ else+ Prelude.fail+ ((Prelude.++)+ "Missing required fields: "+ (Prelude.show (missing :: [Prelude.String]))))+ Prelude.return+ (Lens.Family2.over+ Data.ProtoLens.unknownFields (\ !t -> Prelude.reverse t) x)+ else+ do tag <- Data.ProtoLens.Encoding.Bytes.getVarInt+ case tag of+ 10+ -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (do len <- Data.ProtoLens.Encoding.Bytes.getVarInt+ Data.ProtoLens.Encoding.Bytes.isolate+ (Prelude.fromIntegral len) Data.ProtoLens.parseMessage)+ "transaction_details"+ loop+ (Lens.Family2.set+ (Data.ProtoLens.Field.field @"transactionDetails") y x)+ 18+ -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (do len <- Data.ProtoLens.Encoding.Bytes.getVarInt+ Data.ProtoLens.Encoding.Bytes.isolate+ (Prelude.fromIntegral len) Data.ProtoLens.parseMessage)+ "transaction_ids"+ loop+ (Lens.Family2.set+ (Data.ProtoLens.Field.field @"transactionIds") y x)+ wire+ -> do !y <- Data.ProtoLens.Encoding.Wire.parseTaggedValueFromWire+ wire+ loop+ (Lens.Family2.over+ Data.ProtoLens.unknownFields (\ !t -> (:) y t) x)+ in+ (Data.ProtoLens.Encoding.Bytes.<?>)+ (do loop Data.ProtoLens.defMessage) "ListSweepsResponse"+ buildMessage+ = \ _x+ -> (Data.Monoid.<>)+ (case+ Lens.Family2.view (Data.ProtoLens.Field.field @"maybe'sweeps") _x+ of+ Prelude.Nothing -> Data.Monoid.mempty+ (Prelude.Just (ListSweepsResponse'TransactionDetails v))+ -> (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 10)+ ((Prelude..)+ (\ bs+ -> (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt+ (Prelude.fromIntegral (Data.ByteString.length bs)))+ (Data.ProtoLens.Encoding.Bytes.putBytes bs))+ Data.ProtoLens.encodeMessage v)+ (Prelude.Just (ListSweepsResponse'TransactionIds v))+ -> (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 18)+ ((Prelude..)+ (\ bs+ -> (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt+ (Prelude.fromIntegral (Data.ByteString.length bs)))+ (Data.ProtoLens.Encoding.Bytes.putBytes bs))+ Data.ProtoLens.encodeMessage v))+ (Data.ProtoLens.Encoding.Wire.buildFieldSet+ (Lens.Family2.view Data.ProtoLens.unknownFields _x))+instance Control.DeepSeq.NFData ListSweepsResponse where+ rnf+ = \ x__+ -> Control.DeepSeq.deepseq+ (_ListSweepsResponse'_unknownFields x__)+ (Control.DeepSeq.deepseq (_ListSweepsResponse'sweeps x__) ())+instance Control.DeepSeq.NFData ListSweepsResponse'Sweeps where+ rnf (ListSweepsResponse'TransactionDetails x__)+ = Control.DeepSeq.rnf x__+ rnf (ListSweepsResponse'TransactionIds x__)+ = Control.DeepSeq.rnf x__+_ListSweepsResponse'TransactionDetails ::+ Data.ProtoLens.Prism.Prism' ListSweepsResponse'Sweeps Proto.Lightning.TransactionDetails+_ListSweepsResponse'TransactionDetails+ = Data.ProtoLens.Prism.prism'+ ListSweepsResponse'TransactionDetails+ (\ p__+ -> case p__ of+ (ListSweepsResponse'TransactionDetails p__val)+ -> Prelude.Just p__val+ _otherwise -> Prelude.Nothing)+_ListSweepsResponse'TransactionIds ::+ Data.ProtoLens.Prism.Prism' ListSweepsResponse'Sweeps ListSweepsResponse'TransactionIDs+_ListSweepsResponse'TransactionIds+ = Data.ProtoLens.Prism.prism'+ ListSweepsResponse'TransactionIds+ (\ p__+ -> case p__ of+ (ListSweepsResponse'TransactionIds p__val) -> Prelude.Just p__val+ _otherwise -> Prelude.Nothing)+{- | Fields :+ + * 'Proto.Walletrpc.Walletkit_Fields.transactionIds' @:: Lens' ListSweepsResponse'TransactionIDs [Data.Text.Text]@+ * 'Proto.Walletrpc.Walletkit_Fields.vec'transactionIds' @:: Lens' ListSweepsResponse'TransactionIDs (Data.Vector.Vector Data.Text.Text)@ -}+data ListSweepsResponse'TransactionIDs+ = ListSweepsResponse'TransactionIDs'_constructor {_ListSweepsResponse'TransactionIDs'transactionIds :: !(Data.Vector.Vector Data.Text.Text),+ _ListSweepsResponse'TransactionIDs'_unknownFields :: !Data.ProtoLens.FieldSet}+ deriving stock (Prelude.Eq, Prelude.Ord, GHC.Generics.Generic)+instance Prelude.Show ListSweepsResponse'TransactionIDs where+ showsPrec _ __x __s+ = Prelude.showChar+ '{'+ (Prelude.showString+ (Data.ProtoLens.showMessageShort __x) (Prelude.showChar '}' __s))+instance Text.PrettyPrint.GenericPretty.Out ListSweepsResponse'TransactionIDs+instance Data.ProtoLens.Field.HasField ListSweepsResponse'TransactionIDs "transactionIds" [Data.Text.Text] where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _ListSweepsResponse'TransactionIDs'transactionIds+ (\ x__ y__+ -> x__ {_ListSweepsResponse'TransactionIDs'transactionIds = y__}))+ (Lens.Family2.Unchecked.lens+ Data.Vector.Generic.toList+ (\ _ y__ -> Data.Vector.Generic.fromList y__))+instance Data.ProtoLens.Field.HasField ListSweepsResponse'TransactionIDs "vec'transactionIds" (Data.Vector.Vector Data.Text.Text) where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _ListSweepsResponse'TransactionIDs'transactionIds+ (\ x__ y__+ -> x__ {_ListSweepsResponse'TransactionIDs'transactionIds = y__}))+ Prelude.id+instance Data.ProtoLens.Message ListSweepsResponse'TransactionIDs where+ messageName _+ = Data.Text.pack "walletrpc.ListSweepsResponse.TransactionIDs"+ packedMessageDescriptor _+ = "\n\+ \\SOTransactionIDs\DC2'\n\+ \\SItransaction_ids\CAN\SOH \ETX(\tR\SOtransactionIds"+ packedFileDescriptor _ = packedFileDescriptor+ fieldsByTag+ = let+ transactionIds__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "transaction_ids"+ (Data.ProtoLens.ScalarField Data.ProtoLens.StringField ::+ Data.ProtoLens.FieldTypeDescriptor Data.Text.Text)+ (Data.ProtoLens.RepeatedField+ Data.ProtoLens.Unpacked+ (Data.ProtoLens.Field.field @"transactionIds")) ::+ Data.ProtoLens.FieldDescriptor ListSweepsResponse'TransactionIDs+ in+ Data.Map.fromList+ [(Data.ProtoLens.Tag 1, transactionIds__field_descriptor)]+ unknownFields+ = Lens.Family2.Unchecked.lens+ _ListSweepsResponse'TransactionIDs'_unknownFields+ (\ x__ y__+ -> x__ {_ListSweepsResponse'TransactionIDs'_unknownFields = y__})+ defMessage+ = ListSweepsResponse'TransactionIDs'_constructor+ {_ListSweepsResponse'TransactionIDs'transactionIds = Data.Vector.Generic.empty,+ _ListSweepsResponse'TransactionIDs'_unknownFields = []}+ parseMessage+ = let+ loop ::+ ListSweepsResponse'TransactionIDs+ -> Data.ProtoLens.Encoding.Growing.Growing Data.Vector.Vector Data.ProtoLens.Encoding.Growing.RealWorld Data.Text.Text+ -> Data.ProtoLens.Encoding.Bytes.Parser ListSweepsResponse'TransactionIDs+ loop x mutable'transactionIds+ = do end <- Data.ProtoLens.Encoding.Bytes.atEnd+ if end then+ do frozen'transactionIds <- Data.ProtoLens.Encoding.Parser.Unsafe.unsafeLiftIO+ (Data.ProtoLens.Encoding.Growing.unsafeFreeze+ mutable'transactionIds)+ (let missing = []+ in+ if Prelude.null missing then+ Prelude.return ()+ else+ Prelude.fail+ ((Prelude.++)+ "Missing required fields: "+ (Prelude.show (missing :: [Prelude.String]))))+ Prelude.return+ (Lens.Family2.over+ Data.ProtoLens.unknownFields (\ !t -> Prelude.reverse t)+ (Lens.Family2.set+ (Data.ProtoLens.Field.field @"vec'transactionIds")+ frozen'transactionIds x))+ else+ do tag <- Data.ProtoLens.Encoding.Bytes.getVarInt+ case tag of+ 10+ -> do !y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (do value <- do len <- Data.ProtoLens.Encoding.Bytes.getVarInt+ Data.ProtoLens.Encoding.Bytes.getBytes+ (Prelude.fromIntegral len)+ Data.ProtoLens.Encoding.Bytes.runEither+ (case Data.Text.Encoding.decodeUtf8' value of+ (Prelude.Left err)+ -> Prelude.Left (Prelude.show err)+ (Prelude.Right r) -> Prelude.Right r))+ "transaction_ids"+ v <- Data.ProtoLens.Encoding.Parser.Unsafe.unsafeLiftIO+ (Data.ProtoLens.Encoding.Growing.append+ mutable'transactionIds y)+ loop x v+ wire+ -> do !y <- Data.ProtoLens.Encoding.Wire.parseTaggedValueFromWire+ wire+ loop+ (Lens.Family2.over+ Data.ProtoLens.unknownFields (\ !t -> (:) y t) x)+ mutable'transactionIds+ in+ (Data.ProtoLens.Encoding.Bytes.<?>)+ (do mutable'transactionIds <- Data.ProtoLens.Encoding.Parser.Unsafe.unsafeLiftIO+ Data.ProtoLens.Encoding.Growing.new+ loop Data.ProtoLens.defMessage mutable'transactionIds)+ "TransactionIDs"+ buildMessage+ = \ _x+ -> (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.foldMapBuilder+ (\ _v+ -> (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 10)+ ((Prelude..)+ (\ bs+ -> (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt+ (Prelude.fromIntegral (Data.ByteString.length bs)))+ (Data.ProtoLens.Encoding.Bytes.putBytes bs))+ Data.Text.Encoding.encodeUtf8 _v))+ (Lens.Family2.view+ (Data.ProtoLens.Field.field @"vec'transactionIds") _x))+ (Data.ProtoLens.Encoding.Wire.buildFieldSet+ (Lens.Family2.view Data.ProtoLens.unknownFields _x))+instance Control.DeepSeq.NFData ListSweepsResponse'TransactionIDs where+ rnf+ = \ x__+ -> Control.DeepSeq.deepseq+ (_ListSweepsResponse'TransactionIDs'_unknownFields x__)+ (Control.DeepSeq.deepseq+ (_ListSweepsResponse'TransactionIDs'transactionIds x__) ())+{- | Fields :+ + * 'Proto.Walletrpc.Walletkit_Fields.minConfs' @:: Lens' ListUnspentRequest Data.Int.Int32@+ * 'Proto.Walletrpc.Walletkit_Fields.maxConfs' @:: Lens' ListUnspentRequest Data.Int.Int32@+ * 'Proto.Walletrpc.Walletkit_Fields.account' @:: Lens' ListUnspentRequest Data.Text.Text@ -}+data ListUnspentRequest+ = ListUnspentRequest'_constructor {_ListUnspentRequest'minConfs :: !Data.Int.Int32,+ _ListUnspentRequest'maxConfs :: !Data.Int.Int32,+ _ListUnspentRequest'account :: !Data.Text.Text,+ _ListUnspentRequest'_unknownFields :: !Data.ProtoLens.FieldSet}+ deriving stock (Prelude.Eq, Prelude.Ord, GHC.Generics.Generic)+instance Prelude.Show ListUnspentRequest where+ showsPrec _ __x __s+ = Prelude.showChar+ '{'+ (Prelude.showString+ (Data.ProtoLens.showMessageShort __x) (Prelude.showChar '}' __s))+instance Text.PrettyPrint.GenericPretty.Out ListUnspentRequest+instance Data.ProtoLens.Field.HasField ListUnspentRequest "minConfs" Data.Int.Int32 where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _ListUnspentRequest'minConfs+ (\ x__ y__ -> x__ {_ListUnspentRequest'minConfs = y__}))+ Prelude.id+instance Data.ProtoLens.Field.HasField ListUnspentRequest "maxConfs" Data.Int.Int32 where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _ListUnspentRequest'maxConfs+ (\ x__ y__ -> x__ {_ListUnspentRequest'maxConfs = y__}))+ Prelude.id+instance Data.ProtoLens.Field.HasField ListUnspentRequest "account" Data.Text.Text where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _ListUnspentRequest'account+ (\ x__ y__ -> x__ {_ListUnspentRequest'account = y__}))+ Prelude.id+instance Data.ProtoLens.Message ListUnspentRequest where+ messageName _ = Data.Text.pack "walletrpc.ListUnspentRequest"+ packedMessageDescriptor _+ = "\n\+ \\DC2ListUnspentRequest\DC2\ESC\n\+ \\tmin_confs\CAN\SOH \SOH(\ENQR\bminConfs\DC2\ESC\n\+ \\tmax_confs\CAN\STX \SOH(\ENQR\bmaxConfs\DC2\CAN\n\+ \\aaccount\CAN\ETX \SOH(\tR\aaccount"+ packedFileDescriptor _ = packedFileDescriptor+ fieldsByTag+ = let+ minConfs__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "min_confs"+ (Data.ProtoLens.ScalarField Data.ProtoLens.Int32Field ::+ Data.ProtoLens.FieldTypeDescriptor Data.Int.Int32)+ (Data.ProtoLens.PlainField+ Data.ProtoLens.Optional+ (Data.ProtoLens.Field.field @"minConfs")) ::+ Data.ProtoLens.FieldDescriptor ListUnspentRequest+ maxConfs__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "max_confs"+ (Data.ProtoLens.ScalarField Data.ProtoLens.Int32Field ::+ Data.ProtoLens.FieldTypeDescriptor Data.Int.Int32)+ (Data.ProtoLens.PlainField+ Data.ProtoLens.Optional+ (Data.ProtoLens.Field.field @"maxConfs")) ::+ Data.ProtoLens.FieldDescriptor ListUnspentRequest+ account__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "account"+ (Data.ProtoLens.ScalarField Data.ProtoLens.StringField ::+ Data.ProtoLens.FieldTypeDescriptor Data.Text.Text)+ (Data.ProtoLens.PlainField+ Data.ProtoLens.Optional (Data.ProtoLens.Field.field @"account")) ::+ Data.ProtoLens.FieldDescriptor ListUnspentRequest+ in+ Data.Map.fromList+ [(Data.ProtoLens.Tag 1, minConfs__field_descriptor),+ (Data.ProtoLens.Tag 2, maxConfs__field_descriptor),+ (Data.ProtoLens.Tag 3, account__field_descriptor)]+ unknownFields+ = Lens.Family2.Unchecked.lens+ _ListUnspentRequest'_unknownFields+ (\ x__ y__ -> x__ {_ListUnspentRequest'_unknownFields = y__})+ defMessage+ = ListUnspentRequest'_constructor+ {_ListUnspentRequest'minConfs = Data.ProtoLens.fieldDefault,+ _ListUnspentRequest'maxConfs = Data.ProtoLens.fieldDefault,+ _ListUnspentRequest'account = Data.ProtoLens.fieldDefault,+ _ListUnspentRequest'_unknownFields = []}+ parseMessage+ = let+ loop ::+ ListUnspentRequest+ -> Data.ProtoLens.Encoding.Bytes.Parser ListUnspentRequest+ loop x+ = do end <- Data.ProtoLens.Encoding.Bytes.atEnd+ if end then+ do (let missing = []+ in+ if Prelude.null missing then+ Prelude.return ()+ else+ Prelude.fail+ ((Prelude.++)+ "Missing required fields: "+ (Prelude.show (missing :: [Prelude.String]))))+ Prelude.return+ (Lens.Family2.over+ Data.ProtoLens.unknownFields (\ !t -> Prelude.reverse t) x)+ else+ do tag <- Data.ProtoLens.Encoding.Bytes.getVarInt+ case tag of+ 8 -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (Prelude.fmap+ Prelude.fromIntegral+ Data.ProtoLens.Encoding.Bytes.getVarInt)+ "min_confs"+ loop+ (Lens.Family2.set (Data.ProtoLens.Field.field @"minConfs") y x)+ 16+ -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (Prelude.fmap+ Prelude.fromIntegral+ Data.ProtoLens.Encoding.Bytes.getVarInt)+ "max_confs"+ loop+ (Lens.Family2.set (Data.ProtoLens.Field.field @"maxConfs") y x)+ 26+ -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (do value <- do len <- Data.ProtoLens.Encoding.Bytes.getVarInt+ Data.ProtoLens.Encoding.Bytes.getBytes+ (Prelude.fromIntegral len)+ Data.ProtoLens.Encoding.Bytes.runEither+ (case Data.Text.Encoding.decodeUtf8' value of+ (Prelude.Left err)+ -> Prelude.Left (Prelude.show err)+ (Prelude.Right r) -> Prelude.Right r))+ "account"+ loop (Lens.Family2.set (Data.ProtoLens.Field.field @"account") y x)+ wire+ -> do !y <- Data.ProtoLens.Encoding.Wire.parseTaggedValueFromWire+ wire+ loop+ (Lens.Family2.over+ Data.ProtoLens.unknownFields (\ !t -> (:) y t) x)+ in+ (Data.ProtoLens.Encoding.Bytes.<?>)+ (do loop Data.ProtoLens.defMessage) "ListUnspentRequest"+ buildMessage+ = \ _x+ -> (Data.Monoid.<>)+ (let+ _v = Lens.Family2.view (Data.ProtoLens.Field.field @"minConfs") _x+ in+ if (Prelude.==) _v Data.ProtoLens.fieldDefault then+ Data.Monoid.mempty+ else+ (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 8)+ ((Prelude..)+ Data.ProtoLens.Encoding.Bytes.putVarInt Prelude.fromIntegral _v))+ ((Data.Monoid.<>)+ (let+ _v = Lens.Family2.view (Data.ProtoLens.Field.field @"maxConfs") _x+ in+ if (Prelude.==) _v Data.ProtoLens.fieldDefault then+ Data.Monoid.mempty+ else+ (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 16)+ ((Prelude..)+ Data.ProtoLens.Encoding.Bytes.putVarInt Prelude.fromIntegral _v))+ ((Data.Monoid.<>)+ (let+ _v = Lens.Family2.view (Data.ProtoLens.Field.field @"account") _x+ in+ if (Prelude.==) _v Data.ProtoLens.fieldDefault then+ Data.Monoid.mempty+ else+ (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 26)+ ((Prelude..)+ (\ bs+ -> (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt+ (Prelude.fromIntegral (Data.ByteString.length bs)))+ (Data.ProtoLens.Encoding.Bytes.putBytes bs))+ Data.Text.Encoding.encodeUtf8 _v))+ (Data.ProtoLens.Encoding.Wire.buildFieldSet+ (Lens.Family2.view Data.ProtoLens.unknownFields _x))))+instance Control.DeepSeq.NFData ListUnspentRequest where+ rnf+ = \ x__+ -> Control.DeepSeq.deepseq+ (_ListUnspentRequest'_unknownFields x__)+ (Control.DeepSeq.deepseq+ (_ListUnspentRequest'minConfs x__)+ (Control.DeepSeq.deepseq+ (_ListUnspentRequest'maxConfs x__)+ (Control.DeepSeq.deepseq (_ListUnspentRequest'account x__) ())))+{- | Fields :+ + * 'Proto.Walletrpc.Walletkit_Fields.utxos' @:: Lens' ListUnspentResponse [Proto.Lightning.Utxo]@+ * 'Proto.Walletrpc.Walletkit_Fields.vec'utxos' @:: Lens' ListUnspentResponse (Data.Vector.Vector Proto.Lightning.Utxo)@ -}+data ListUnspentResponse+ = ListUnspentResponse'_constructor {_ListUnspentResponse'utxos :: !(Data.Vector.Vector Proto.Lightning.Utxo),+ _ListUnspentResponse'_unknownFields :: !Data.ProtoLens.FieldSet}+ deriving stock (Prelude.Eq, Prelude.Ord, GHC.Generics.Generic)+instance Prelude.Show ListUnspentResponse where+ showsPrec _ __x __s+ = Prelude.showChar+ '{'+ (Prelude.showString+ (Data.ProtoLens.showMessageShort __x) (Prelude.showChar '}' __s))+instance Text.PrettyPrint.GenericPretty.Out ListUnspentResponse+instance Data.ProtoLens.Field.HasField ListUnspentResponse "utxos" [Proto.Lightning.Utxo] where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _ListUnspentResponse'utxos+ (\ x__ y__ -> x__ {_ListUnspentResponse'utxos = y__}))+ (Lens.Family2.Unchecked.lens+ Data.Vector.Generic.toList+ (\ _ y__ -> Data.Vector.Generic.fromList y__))+instance Data.ProtoLens.Field.HasField ListUnspentResponse "vec'utxos" (Data.Vector.Vector Proto.Lightning.Utxo) where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _ListUnspentResponse'utxos+ (\ x__ y__ -> x__ {_ListUnspentResponse'utxos = y__}))+ Prelude.id+instance Data.ProtoLens.Message ListUnspentResponse where+ messageName _ = Data.Text.pack "walletrpc.ListUnspentResponse"+ packedMessageDescriptor _+ = "\n\+ \\DC3ListUnspentResponse\DC2!\n\+ \\ENQutxos\CAN\SOH \ETX(\v2\v.lnrpc.UtxoR\ENQutxos"+ packedFileDescriptor _ = packedFileDescriptor+ fieldsByTag+ = let+ utxos__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "utxos"+ (Data.ProtoLens.MessageField Data.ProtoLens.MessageType ::+ Data.ProtoLens.FieldTypeDescriptor Proto.Lightning.Utxo)+ (Data.ProtoLens.RepeatedField+ Data.ProtoLens.Unpacked (Data.ProtoLens.Field.field @"utxos")) ::+ Data.ProtoLens.FieldDescriptor ListUnspentResponse+ in+ Data.Map.fromList [(Data.ProtoLens.Tag 1, utxos__field_descriptor)]+ unknownFields+ = Lens.Family2.Unchecked.lens+ _ListUnspentResponse'_unknownFields+ (\ x__ y__ -> x__ {_ListUnspentResponse'_unknownFields = y__})+ defMessage+ = ListUnspentResponse'_constructor+ {_ListUnspentResponse'utxos = Data.Vector.Generic.empty,+ _ListUnspentResponse'_unknownFields = []}+ parseMessage+ = let+ loop ::+ ListUnspentResponse+ -> Data.ProtoLens.Encoding.Growing.Growing Data.Vector.Vector Data.ProtoLens.Encoding.Growing.RealWorld Proto.Lightning.Utxo+ -> Data.ProtoLens.Encoding.Bytes.Parser ListUnspentResponse+ loop x mutable'utxos+ = do end <- Data.ProtoLens.Encoding.Bytes.atEnd+ if end then+ do frozen'utxos <- Data.ProtoLens.Encoding.Parser.Unsafe.unsafeLiftIO+ (Data.ProtoLens.Encoding.Growing.unsafeFreeze mutable'utxos)+ (let missing = []+ in+ if Prelude.null missing then+ Prelude.return ()+ else+ Prelude.fail+ ((Prelude.++)+ "Missing required fields: "+ (Prelude.show (missing :: [Prelude.String]))))+ Prelude.return+ (Lens.Family2.over+ Data.ProtoLens.unknownFields (\ !t -> Prelude.reverse t)+ (Lens.Family2.set+ (Data.ProtoLens.Field.field @"vec'utxos") frozen'utxos x))+ else+ do tag <- Data.ProtoLens.Encoding.Bytes.getVarInt+ case tag of+ 10+ -> do !y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (do len <- Data.ProtoLens.Encoding.Bytes.getVarInt+ Data.ProtoLens.Encoding.Bytes.isolate+ (Prelude.fromIntegral len)+ Data.ProtoLens.parseMessage)+ "utxos"+ v <- Data.ProtoLens.Encoding.Parser.Unsafe.unsafeLiftIO+ (Data.ProtoLens.Encoding.Growing.append mutable'utxos y)+ loop x v+ wire+ -> do !y <- Data.ProtoLens.Encoding.Wire.parseTaggedValueFromWire+ wire+ loop+ (Lens.Family2.over+ Data.ProtoLens.unknownFields (\ !t -> (:) y t) x)+ mutable'utxos+ in+ (Data.ProtoLens.Encoding.Bytes.<?>)+ (do mutable'utxos <- Data.ProtoLens.Encoding.Parser.Unsafe.unsafeLiftIO+ Data.ProtoLens.Encoding.Growing.new+ loop Data.ProtoLens.defMessage mutable'utxos)+ "ListUnspentResponse"+ buildMessage+ = \ _x+ -> (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.foldMapBuilder+ (\ _v+ -> (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 10)+ ((Prelude..)+ (\ bs+ -> (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt+ (Prelude.fromIntegral (Data.ByteString.length bs)))+ (Data.ProtoLens.Encoding.Bytes.putBytes bs))+ Data.ProtoLens.encodeMessage _v))+ (Lens.Family2.view (Data.ProtoLens.Field.field @"vec'utxos") _x))+ (Data.ProtoLens.Encoding.Wire.buildFieldSet+ (Lens.Family2.view Data.ProtoLens.unknownFields _x))+instance Control.DeepSeq.NFData ListUnspentResponse where+ rnf+ = \ x__+ -> Control.DeepSeq.deepseq+ (_ListUnspentResponse'_unknownFields x__)+ (Control.DeepSeq.deepseq (_ListUnspentResponse'utxos x__) ())+{- | Fields :+ + * 'Proto.Walletrpc.Walletkit_Fields.outpoint' @:: Lens' PendingSweep Proto.Lnrpc.Ln0.OutPoint@+ * 'Proto.Walletrpc.Walletkit_Fields.maybe'outpoint' @:: Lens' PendingSweep (Prelude.Maybe Proto.Lnrpc.Ln0.OutPoint)@+ * 'Proto.Walletrpc.Walletkit_Fields.witnessType' @:: Lens' PendingSweep WitnessType@+ * 'Proto.Walletrpc.Walletkit_Fields.amountSat' @:: Lens' PendingSweep Data.Word.Word32@+ * 'Proto.Walletrpc.Walletkit_Fields.satPerByte' @:: Lens' PendingSweep Data.Word.Word32@+ * 'Proto.Walletrpc.Walletkit_Fields.broadcastAttempts' @:: Lens' PendingSweep Data.Word.Word32@+ * 'Proto.Walletrpc.Walletkit_Fields.nextBroadcastHeight' @:: Lens' PendingSweep Data.Word.Word32@+ * 'Proto.Walletrpc.Walletkit_Fields.requestedConfTarget' @:: Lens' PendingSweep Data.Word.Word32@+ * 'Proto.Walletrpc.Walletkit_Fields.requestedSatPerByte' @:: Lens' PendingSweep Data.Word.Word32@+ * 'Proto.Walletrpc.Walletkit_Fields.satPerVbyte' @:: Lens' PendingSweep Data.Word.Word64@+ * 'Proto.Walletrpc.Walletkit_Fields.requestedSatPerVbyte' @:: Lens' PendingSweep Data.Word.Word64@+ * 'Proto.Walletrpc.Walletkit_Fields.force' @:: Lens' PendingSweep Prelude.Bool@ -}+data PendingSweep+ = PendingSweep'_constructor {_PendingSweep'outpoint :: !(Prelude.Maybe Proto.Lnrpc.Ln0.OutPoint),+ _PendingSweep'witnessType :: !WitnessType,+ _PendingSweep'amountSat :: !Data.Word.Word32,+ _PendingSweep'satPerByte :: !Data.Word.Word32,+ _PendingSweep'broadcastAttempts :: !Data.Word.Word32,+ _PendingSweep'nextBroadcastHeight :: !Data.Word.Word32,+ _PendingSweep'requestedConfTarget :: !Data.Word.Word32,+ _PendingSweep'requestedSatPerByte :: !Data.Word.Word32,+ _PendingSweep'satPerVbyte :: !Data.Word.Word64,+ _PendingSweep'requestedSatPerVbyte :: !Data.Word.Word64,+ _PendingSweep'force :: !Prelude.Bool,+ _PendingSweep'_unknownFields :: !Data.ProtoLens.FieldSet}+ deriving stock (Prelude.Eq, Prelude.Ord, GHC.Generics.Generic)+instance Prelude.Show PendingSweep where+ showsPrec _ __x __s+ = Prelude.showChar+ '{'+ (Prelude.showString+ (Data.ProtoLens.showMessageShort __x) (Prelude.showChar '}' __s))+instance Text.PrettyPrint.GenericPretty.Out PendingSweep+instance Data.ProtoLens.Field.HasField PendingSweep "outpoint" Proto.Lnrpc.Ln0.OutPoint where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _PendingSweep'outpoint+ (\ x__ y__ -> x__ {_PendingSweep'outpoint = y__}))+ (Data.ProtoLens.maybeLens Data.ProtoLens.defMessage)+instance Data.ProtoLens.Field.HasField PendingSweep "maybe'outpoint" (Prelude.Maybe Proto.Lnrpc.Ln0.OutPoint) where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _PendingSweep'outpoint+ (\ x__ y__ -> x__ {_PendingSweep'outpoint = y__}))+ Prelude.id+instance Data.ProtoLens.Field.HasField PendingSweep "witnessType" WitnessType where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _PendingSweep'witnessType+ (\ x__ y__ -> x__ {_PendingSweep'witnessType = y__}))+ Prelude.id+instance Data.ProtoLens.Field.HasField PendingSweep "amountSat" Data.Word.Word32 where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _PendingSweep'amountSat+ (\ x__ y__ -> x__ {_PendingSweep'amountSat = y__}))+ Prelude.id+instance Data.ProtoLens.Field.HasField PendingSweep "satPerByte" Data.Word.Word32 where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _PendingSweep'satPerByte+ (\ x__ y__ -> x__ {_PendingSweep'satPerByte = y__}))+ Prelude.id+instance Data.ProtoLens.Field.HasField PendingSweep "broadcastAttempts" Data.Word.Word32 where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _PendingSweep'broadcastAttempts+ (\ x__ y__ -> x__ {_PendingSweep'broadcastAttempts = y__}))+ Prelude.id+instance Data.ProtoLens.Field.HasField PendingSweep "nextBroadcastHeight" Data.Word.Word32 where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _PendingSweep'nextBroadcastHeight+ (\ x__ y__ -> x__ {_PendingSweep'nextBroadcastHeight = y__}))+ Prelude.id+instance Data.ProtoLens.Field.HasField PendingSweep "requestedConfTarget" Data.Word.Word32 where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _PendingSweep'requestedConfTarget+ (\ x__ y__ -> x__ {_PendingSweep'requestedConfTarget = y__}))+ Prelude.id+instance Data.ProtoLens.Field.HasField PendingSweep "requestedSatPerByte" Data.Word.Word32 where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _PendingSweep'requestedSatPerByte+ (\ x__ y__ -> x__ {_PendingSweep'requestedSatPerByte = y__}))+ Prelude.id+instance Data.ProtoLens.Field.HasField PendingSweep "satPerVbyte" Data.Word.Word64 where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _PendingSweep'satPerVbyte+ (\ x__ y__ -> x__ {_PendingSweep'satPerVbyte = y__}))+ Prelude.id+instance Data.ProtoLens.Field.HasField PendingSweep "requestedSatPerVbyte" Data.Word.Word64 where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _PendingSweep'requestedSatPerVbyte+ (\ x__ y__ -> x__ {_PendingSweep'requestedSatPerVbyte = y__}))+ Prelude.id+instance Data.ProtoLens.Field.HasField PendingSweep "force" Prelude.Bool where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _PendingSweep'force (\ x__ y__ -> x__ {_PendingSweep'force = y__}))+ Prelude.id+instance Data.ProtoLens.Message PendingSweep where+ messageName _ = Data.Text.pack "walletrpc.PendingSweep"+ packedMessageDescriptor _+ = "\n\+ \\fPendingSweep\DC2+\n\+ \\boutpoint\CAN\SOH \SOH(\v2\SI.lnrpc.OutPointR\boutpoint\DC29\n\+ \\fwitness_type\CAN\STX \SOH(\SO2\SYN.walletrpc.WitnessTypeR\vwitnessType\DC2\GS\n\+ \\n\+ \amount_sat\CAN\ETX \SOH(\rR\tamountSat\DC2$\n\+ \\fsat_per_byte\CAN\EOT \SOH(\rR\n\+ \satPerByteB\STX\CAN\SOH\DC2-\n\+ \\DC2broadcast_attempts\CAN\ENQ \SOH(\rR\DC1broadcastAttempts\DC22\n\+ \\NAKnext_broadcast_height\CAN\ACK \SOH(\rR\DC3nextBroadcastHeight\DC22\n\+ \\NAKrequested_conf_target\CAN\b \SOH(\rR\DC3requestedConfTarget\DC27\n\+ \\SYNrequested_sat_per_byte\CAN\t \SOH(\rR\DC3requestedSatPerByteB\STX\CAN\SOH\DC2\"\n\+ \\rsat_per_vbyte\CAN\n\+ \ \SOH(\EOTR\vsatPerVbyte\DC25\n\+ \\ETBrequested_sat_per_vbyte\CAN\v \SOH(\EOTR\DC4requestedSatPerVbyte\DC2\DC4\n\+ \\ENQforce\CAN\a \SOH(\bR\ENQforce"+ packedFileDescriptor _ = packedFileDescriptor+ fieldsByTag+ = let+ outpoint__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "outpoint"+ (Data.ProtoLens.MessageField Data.ProtoLens.MessageType ::+ Data.ProtoLens.FieldTypeDescriptor Proto.Lnrpc.Ln0.OutPoint)+ (Data.ProtoLens.OptionalField+ (Data.ProtoLens.Field.field @"maybe'outpoint")) ::+ Data.ProtoLens.FieldDescriptor PendingSweep+ witnessType__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "witness_type"+ (Data.ProtoLens.ScalarField Data.ProtoLens.EnumField ::+ Data.ProtoLens.FieldTypeDescriptor WitnessType)+ (Data.ProtoLens.PlainField+ Data.ProtoLens.Optional+ (Data.ProtoLens.Field.field @"witnessType")) ::+ Data.ProtoLens.FieldDescriptor PendingSweep+ amountSat__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "amount_sat"+ (Data.ProtoLens.ScalarField Data.ProtoLens.UInt32Field ::+ Data.ProtoLens.FieldTypeDescriptor Data.Word.Word32)+ (Data.ProtoLens.PlainField+ Data.ProtoLens.Optional+ (Data.ProtoLens.Field.field @"amountSat")) ::+ Data.ProtoLens.FieldDescriptor PendingSweep+ satPerByte__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "sat_per_byte"+ (Data.ProtoLens.ScalarField Data.ProtoLens.UInt32Field ::+ Data.ProtoLens.FieldTypeDescriptor Data.Word.Word32)+ (Data.ProtoLens.PlainField+ Data.ProtoLens.Optional+ (Data.ProtoLens.Field.field @"satPerByte")) ::+ Data.ProtoLens.FieldDescriptor PendingSweep+ broadcastAttempts__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "broadcast_attempts"+ (Data.ProtoLens.ScalarField Data.ProtoLens.UInt32Field ::+ Data.ProtoLens.FieldTypeDescriptor Data.Word.Word32)+ (Data.ProtoLens.PlainField+ Data.ProtoLens.Optional+ (Data.ProtoLens.Field.field @"broadcastAttempts")) ::+ Data.ProtoLens.FieldDescriptor PendingSweep+ nextBroadcastHeight__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "next_broadcast_height"+ (Data.ProtoLens.ScalarField Data.ProtoLens.UInt32Field ::+ Data.ProtoLens.FieldTypeDescriptor Data.Word.Word32)+ (Data.ProtoLens.PlainField+ Data.ProtoLens.Optional+ (Data.ProtoLens.Field.field @"nextBroadcastHeight")) ::+ Data.ProtoLens.FieldDescriptor PendingSweep+ requestedConfTarget__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "requested_conf_target"+ (Data.ProtoLens.ScalarField Data.ProtoLens.UInt32Field ::+ Data.ProtoLens.FieldTypeDescriptor Data.Word.Word32)+ (Data.ProtoLens.PlainField+ Data.ProtoLens.Optional+ (Data.ProtoLens.Field.field @"requestedConfTarget")) ::+ Data.ProtoLens.FieldDescriptor PendingSweep+ requestedSatPerByte__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "requested_sat_per_byte"+ (Data.ProtoLens.ScalarField Data.ProtoLens.UInt32Field ::+ Data.ProtoLens.FieldTypeDescriptor Data.Word.Word32)+ (Data.ProtoLens.PlainField+ Data.ProtoLens.Optional+ (Data.ProtoLens.Field.field @"requestedSatPerByte")) ::+ Data.ProtoLens.FieldDescriptor PendingSweep+ satPerVbyte__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "sat_per_vbyte"+ (Data.ProtoLens.ScalarField Data.ProtoLens.UInt64Field ::+ Data.ProtoLens.FieldTypeDescriptor Data.Word.Word64)+ (Data.ProtoLens.PlainField+ Data.ProtoLens.Optional+ (Data.ProtoLens.Field.field @"satPerVbyte")) ::+ Data.ProtoLens.FieldDescriptor PendingSweep+ requestedSatPerVbyte__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "requested_sat_per_vbyte"+ (Data.ProtoLens.ScalarField Data.ProtoLens.UInt64Field ::+ Data.ProtoLens.FieldTypeDescriptor Data.Word.Word64)+ (Data.ProtoLens.PlainField+ Data.ProtoLens.Optional+ (Data.ProtoLens.Field.field @"requestedSatPerVbyte")) ::+ Data.ProtoLens.FieldDescriptor PendingSweep+ force__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "force"+ (Data.ProtoLens.ScalarField Data.ProtoLens.BoolField ::+ Data.ProtoLens.FieldTypeDescriptor Prelude.Bool)+ (Data.ProtoLens.PlainField+ Data.ProtoLens.Optional (Data.ProtoLens.Field.field @"force")) ::+ Data.ProtoLens.FieldDescriptor PendingSweep+ in+ Data.Map.fromList+ [(Data.ProtoLens.Tag 1, outpoint__field_descriptor),+ (Data.ProtoLens.Tag 2, witnessType__field_descriptor),+ (Data.ProtoLens.Tag 3, amountSat__field_descriptor),+ (Data.ProtoLens.Tag 4, satPerByte__field_descriptor),+ (Data.ProtoLens.Tag 5, broadcastAttempts__field_descriptor),+ (Data.ProtoLens.Tag 6, nextBroadcastHeight__field_descriptor),+ (Data.ProtoLens.Tag 8, requestedConfTarget__field_descriptor),+ (Data.ProtoLens.Tag 9, requestedSatPerByte__field_descriptor),+ (Data.ProtoLens.Tag 10, satPerVbyte__field_descriptor),+ (Data.ProtoLens.Tag 11, requestedSatPerVbyte__field_descriptor),+ (Data.ProtoLens.Tag 7, force__field_descriptor)]+ unknownFields+ = Lens.Family2.Unchecked.lens+ _PendingSweep'_unknownFields+ (\ x__ y__ -> x__ {_PendingSweep'_unknownFields = y__})+ defMessage+ = PendingSweep'_constructor+ {_PendingSweep'outpoint = Prelude.Nothing,+ _PendingSweep'witnessType = Data.ProtoLens.fieldDefault,+ _PendingSweep'amountSat = Data.ProtoLens.fieldDefault,+ _PendingSweep'satPerByte = Data.ProtoLens.fieldDefault,+ _PendingSweep'broadcastAttempts = Data.ProtoLens.fieldDefault,+ _PendingSweep'nextBroadcastHeight = Data.ProtoLens.fieldDefault,+ _PendingSweep'requestedConfTarget = Data.ProtoLens.fieldDefault,+ _PendingSweep'requestedSatPerByte = Data.ProtoLens.fieldDefault,+ _PendingSweep'satPerVbyte = Data.ProtoLens.fieldDefault,+ _PendingSweep'requestedSatPerVbyte = Data.ProtoLens.fieldDefault,+ _PendingSweep'force = Data.ProtoLens.fieldDefault,+ _PendingSweep'_unknownFields = []}+ parseMessage+ = let+ loop ::+ PendingSweep -> Data.ProtoLens.Encoding.Bytes.Parser PendingSweep+ loop x+ = do end <- Data.ProtoLens.Encoding.Bytes.atEnd+ if end then+ do (let missing = []+ in+ if Prelude.null missing then+ Prelude.return ()+ else+ Prelude.fail+ ((Prelude.++)+ "Missing required fields: "+ (Prelude.show (missing :: [Prelude.String]))))+ Prelude.return+ (Lens.Family2.over+ Data.ProtoLens.unknownFields (\ !t -> Prelude.reverse t) x)+ else+ do tag <- Data.ProtoLens.Encoding.Bytes.getVarInt+ case tag of+ 10+ -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (do len <- Data.ProtoLens.Encoding.Bytes.getVarInt+ Data.ProtoLens.Encoding.Bytes.isolate+ (Prelude.fromIntegral len) Data.ProtoLens.parseMessage)+ "outpoint"+ loop+ (Lens.Family2.set (Data.ProtoLens.Field.field @"outpoint") y x)+ 16+ -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (Prelude.fmap+ Prelude.toEnum+ (Prelude.fmap+ Prelude.fromIntegral+ Data.ProtoLens.Encoding.Bytes.getVarInt))+ "witness_type"+ loop+ (Lens.Family2.set (Data.ProtoLens.Field.field @"witnessType") y x)+ 24+ -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (Prelude.fmap+ Prelude.fromIntegral+ Data.ProtoLens.Encoding.Bytes.getVarInt)+ "amount_sat"+ loop+ (Lens.Family2.set (Data.ProtoLens.Field.field @"amountSat") y x)+ 32+ -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (Prelude.fmap+ Prelude.fromIntegral+ Data.ProtoLens.Encoding.Bytes.getVarInt)+ "sat_per_byte"+ loop+ (Lens.Family2.set (Data.ProtoLens.Field.field @"satPerByte") y x)+ 40+ -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (Prelude.fmap+ Prelude.fromIntegral+ Data.ProtoLens.Encoding.Bytes.getVarInt)+ "broadcast_attempts"+ loop+ (Lens.Family2.set+ (Data.ProtoLens.Field.field @"broadcastAttempts") y x)+ 48+ -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (Prelude.fmap+ Prelude.fromIntegral+ Data.ProtoLens.Encoding.Bytes.getVarInt)+ "next_broadcast_height"+ loop+ (Lens.Family2.set+ (Data.ProtoLens.Field.field @"nextBroadcastHeight") y x)+ 64+ -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (Prelude.fmap+ Prelude.fromIntegral+ Data.ProtoLens.Encoding.Bytes.getVarInt)+ "requested_conf_target"+ loop+ (Lens.Family2.set+ (Data.ProtoLens.Field.field @"requestedConfTarget") y x)+ 72+ -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (Prelude.fmap+ Prelude.fromIntegral+ Data.ProtoLens.Encoding.Bytes.getVarInt)+ "requested_sat_per_byte"+ loop+ (Lens.Family2.set+ (Data.ProtoLens.Field.field @"requestedSatPerByte") y x)+ 80+ -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ Data.ProtoLens.Encoding.Bytes.getVarInt "sat_per_vbyte"+ loop+ (Lens.Family2.set (Data.ProtoLens.Field.field @"satPerVbyte") y x)+ 88+ -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ Data.ProtoLens.Encoding.Bytes.getVarInt+ "requested_sat_per_vbyte"+ loop+ (Lens.Family2.set+ (Data.ProtoLens.Field.field @"requestedSatPerVbyte") y x)+ 56+ -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (Prelude.fmap+ ((Prelude./=) 0) Data.ProtoLens.Encoding.Bytes.getVarInt)+ "force"+ loop (Lens.Family2.set (Data.ProtoLens.Field.field @"force") y x)+ wire+ -> do !y <- Data.ProtoLens.Encoding.Wire.parseTaggedValueFromWire+ wire+ loop+ (Lens.Family2.over+ Data.ProtoLens.unknownFields (\ !t -> (:) y t) x)+ in+ (Data.ProtoLens.Encoding.Bytes.<?>)+ (do loop Data.ProtoLens.defMessage) "PendingSweep"+ buildMessage+ = \ _x+ -> (Data.Monoid.<>)+ (case+ Lens.Family2.view (Data.ProtoLens.Field.field @"maybe'outpoint") _x+ of+ Prelude.Nothing -> Data.Monoid.mempty+ (Prelude.Just _v)+ -> (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 10)+ ((Prelude..)+ (\ bs+ -> (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt+ (Prelude.fromIntegral (Data.ByteString.length bs)))+ (Data.ProtoLens.Encoding.Bytes.putBytes bs))+ Data.ProtoLens.encodeMessage _v))+ ((Data.Monoid.<>)+ (let+ _v+ = Lens.Family2.view (Data.ProtoLens.Field.field @"witnessType") _x+ in+ if (Prelude.==) _v Data.ProtoLens.fieldDefault then+ Data.Monoid.mempty+ else+ (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 16)+ ((Prelude..)+ ((Prelude..)+ Data.ProtoLens.Encoding.Bytes.putVarInt Prelude.fromIntegral)+ Prelude.fromEnum _v))+ ((Data.Monoid.<>)+ (let+ _v = Lens.Family2.view (Data.ProtoLens.Field.field @"amountSat") _x+ in+ if (Prelude.==) _v Data.ProtoLens.fieldDefault then+ Data.Monoid.mempty+ else+ (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 24)+ ((Prelude..)+ Data.ProtoLens.Encoding.Bytes.putVarInt Prelude.fromIntegral _v))+ ((Data.Monoid.<>)+ (let+ _v+ = Lens.Family2.view (Data.ProtoLens.Field.field @"satPerByte") _x+ in+ if (Prelude.==) _v Data.ProtoLens.fieldDefault then+ Data.Monoid.mempty+ else+ (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 32)+ ((Prelude..)+ Data.ProtoLens.Encoding.Bytes.putVarInt Prelude.fromIntegral _v))+ ((Data.Monoid.<>)+ (let+ _v+ = Lens.Family2.view+ (Data.ProtoLens.Field.field @"broadcastAttempts") _x+ in+ if (Prelude.==) _v Data.ProtoLens.fieldDefault then+ Data.Monoid.mempty+ else+ (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 40)+ ((Prelude..)+ Data.ProtoLens.Encoding.Bytes.putVarInt Prelude.fromIntegral+ _v))+ ((Data.Monoid.<>)+ (let+ _v+ = Lens.Family2.view+ (Data.ProtoLens.Field.field @"nextBroadcastHeight") _x+ in+ if (Prelude.==) _v Data.ProtoLens.fieldDefault then+ Data.Monoid.mempty+ else+ (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 48)+ ((Prelude..)+ Data.ProtoLens.Encoding.Bytes.putVarInt Prelude.fromIntegral+ _v))+ ((Data.Monoid.<>)+ (let+ _v+ = Lens.Family2.view+ (Data.ProtoLens.Field.field @"requestedConfTarget") _x+ in+ if (Prelude.==) _v Data.ProtoLens.fieldDefault then+ Data.Monoid.mempty+ else+ (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 64)+ ((Prelude..)+ Data.ProtoLens.Encoding.Bytes.putVarInt+ Prelude.fromIntegral _v))+ ((Data.Monoid.<>)+ (let+ _v+ = Lens.Family2.view+ (Data.ProtoLens.Field.field @"requestedSatPerByte") _x+ in+ if (Prelude.==) _v Data.ProtoLens.fieldDefault then+ Data.Monoid.mempty+ else+ (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 72)+ ((Prelude..)+ Data.ProtoLens.Encoding.Bytes.putVarInt+ Prelude.fromIntegral _v))+ ((Data.Monoid.<>)+ (let+ _v+ = Lens.Family2.view+ (Data.ProtoLens.Field.field @"satPerVbyte") _x+ in+ if (Prelude.==) _v Data.ProtoLens.fieldDefault then+ Data.Monoid.mempty+ else+ (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 80)+ (Data.ProtoLens.Encoding.Bytes.putVarInt _v))+ ((Data.Monoid.<>)+ (let+ _v+ = Lens.Family2.view+ (Data.ProtoLens.Field.field+ @"requestedSatPerVbyte")+ _x+ in+ if (Prelude.==) _v Data.ProtoLens.fieldDefault then+ Data.Monoid.mempty+ else+ (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 88)+ (Data.ProtoLens.Encoding.Bytes.putVarInt _v))+ ((Data.Monoid.<>)+ (let+ _v+ = Lens.Family2.view+ (Data.ProtoLens.Field.field @"force") _x+ in+ if (Prelude.==) _v Data.ProtoLens.fieldDefault then+ Data.Monoid.mempty+ else+ (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 56)+ ((Prelude..)+ Data.ProtoLens.Encoding.Bytes.putVarInt+ (\ b -> if b then 1 else 0) _v))+ (Data.ProtoLens.Encoding.Wire.buildFieldSet+ (Lens.Family2.view+ Data.ProtoLens.unknownFields _x))))))))))))+instance Control.DeepSeq.NFData PendingSweep where+ rnf+ = \ x__+ -> Control.DeepSeq.deepseq+ (_PendingSweep'_unknownFields x__)+ (Control.DeepSeq.deepseq+ (_PendingSweep'outpoint x__)+ (Control.DeepSeq.deepseq+ (_PendingSweep'witnessType x__)+ (Control.DeepSeq.deepseq+ (_PendingSweep'amountSat x__)+ (Control.DeepSeq.deepseq+ (_PendingSweep'satPerByte x__)+ (Control.DeepSeq.deepseq+ (_PendingSweep'broadcastAttempts x__)+ (Control.DeepSeq.deepseq+ (_PendingSweep'nextBroadcastHeight x__)+ (Control.DeepSeq.deepseq+ (_PendingSweep'requestedConfTarget x__)+ (Control.DeepSeq.deepseq+ (_PendingSweep'requestedSatPerByte x__)+ (Control.DeepSeq.deepseq+ (_PendingSweep'satPerVbyte x__)+ (Control.DeepSeq.deepseq+ (_PendingSweep'requestedSatPerVbyte x__)+ (Control.DeepSeq.deepseq+ (_PendingSweep'force x__) ())))))))))))+{- | Fields :+ -}+data PendingSweepsRequest+ = PendingSweepsRequest'_constructor {_PendingSweepsRequest'_unknownFields :: !Data.ProtoLens.FieldSet}+ deriving stock (Prelude.Eq, Prelude.Ord, GHC.Generics.Generic)+instance Prelude.Show PendingSweepsRequest where+ showsPrec _ __x __s+ = Prelude.showChar+ '{'+ (Prelude.showString+ (Data.ProtoLens.showMessageShort __x) (Prelude.showChar '}' __s))+instance Text.PrettyPrint.GenericPretty.Out PendingSweepsRequest+instance Data.ProtoLens.Message PendingSweepsRequest where+ messageName _ = Data.Text.pack "walletrpc.PendingSweepsRequest"+ packedMessageDescriptor _+ = "\n\+ \\DC4PendingSweepsRequest"+ packedFileDescriptor _ = packedFileDescriptor+ fieldsByTag = let in Data.Map.fromList []+ unknownFields+ = Lens.Family2.Unchecked.lens+ _PendingSweepsRequest'_unknownFields+ (\ x__ y__ -> x__ {_PendingSweepsRequest'_unknownFields = y__})+ defMessage+ = PendingSweepsRequest'_constructor+ {_PendingSweepsRequest'_unknownFields = []}+ parseMessage+ = let+ loop ::+ PendingSweepsRequest+ -> Data.ProtoLens.Encoding.Bytes.Parser PendingSweepsRequest+ loop x+ = do end <- Data.ProtoLens.Encoding.Bytes.atEnd+ if end then+ do (let missing = []+ in+ if Prelude.null missing then+ Prelude.return ()+ else+ Prelude.fail+ ((Prelude.++)+ "Missing required fields: "+ (Prelude.show (missing :: [Prelude.String]))))+ Prelude.return+ (Lens.Family2.over+ Data.ProtoLens.unknownFields (\ !t -> Prelude.reverse t) x)+ else+ do tag <- Data.ProtoLens.Encoding.Bytes.getVarInt+ case tag of {+ wire+ -> do !y <- Data.ProtoLens.Encoding.Wire.parseTaggedValueFromWire+ wire+ loop+ (Lens.Family2.over+ Data.ProtoLens.unknownFields (\ !t -> (:) y t) x) }+ in+ (Data.ProtoLens.Encoding.Bytes.<?>)+ (do loop Data.ProtoLens.defMessage) "PendingSweepsRequest"+ buildMessage+ = \ _x+ -> Data.ProtoLens.Encoding.Wire.buildFieldSet+ (Lens.Family2.view Data.ProtoLens.unknownFields _x)+instance Control.DeepSeq.NFData PendingSweepsRequest where+ rnf+ = \ x__+ -> Control.DeepSeq.deepseq+ (_PendingSweepsRequest'_unknownFields x__) ()+{- | Fields :+ + * 'Proto.Walletrpc.Walletkit_Fields.pendingSweeps' @:: Lens' PendingSweepsResponse [PendingSweep]@+ * 'Proto.Walletrpc.Walletkit_Fields.vec'pendingSweeps' @:: Lens' PendingSweepsResponse (Data.Vector.Vector PendingSweep)@ -}+data PendingSweepsResponse+ = PendingSweepsResponse'_constructor {_PendingSweepsResponse'pendingSweeps :: !(Data.Vector.Vector PendingSweep),+ _PendingSweepsResponse'_unknownFields :: !Data.ProtoLens.FieldSet}+ deriving stock (Prelude.Eq, Prelude.Ord, GHC.Generics.Generic)+instance Prelude.Show PendingSweepsResponse where+ showsPrec _ __x __s+ = Prelude.showChar+ '{'+ (Prelude.showString+ (Data.ProtoLens.showMessageShort __x) (Prelude.showChar '}' __s))+instance Text.PrettyPrint.GenericPretty.Out PendingSweepsResponse+instance Data.ProtoLens.Field.HasField PendingSweepsResponse "pendingSweeps" [PendingSweep] where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _PendingSweepsResponse'pendingSweeps+ (\ x__ y__ -> x__ {_PendingSweepsResponse'pendingSweeps = y__}))+ (Lens.Family2.Unchecked.lens+ Data.Vector.Generic.toList+ (\ _ y__ -> Data.Vector.Generic.fromList y__))+instance Data.ProtoLens.Field.HasField PendingSweepsResponse "vec'pendingSweeps" (Data.Vector.Vector PendingSweep) where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _PendingSweepsResponse'pendingSweeps+ (\ x__ y__ -> x__ {_PendingSweepsResponse'pendingSweeps = y__}))+ Prelude.id+instance Data.ProtoLens.Message PendingSweepsResponse where+ messageName _ = Data.Text.pack "walletrpc.PendingSweepsResponse"+ packedMessageDescriptor _+ = "\n\+ \\NAKPendingSweepsResponse\DC2>\n\+ \\SOpending_sweeps\CAN\SOH \ETX(\v2\ETB.walletrpc.PendingSweepR\rpendingSweeps"+ packedFileDescriptor _ = packedFileDescriptor+ fieldsByTag+ = let+ pendingSweeps__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "pending_sweeps"+ (Data.ProtoLens.MessageField Data.ProtoLens.MessageType ::+ Data.ProtoLens.FieldTypeDescriptor PendingSweep)+ (Data.ProtoLens.RepeatedField+ Data.ProtoLens.Unpacked+ (Data.ProtoLens.Field.field @"pendingSweeps")) ::+ Data.ProtoLens.FieldDescriptor PendingSweepsResponse+ in+ Data.Map.fromList+ [(Data.ProtoLens.Tag 1, pendingSweeps__field_descriptor)]+ unknownFields+ = Lens.Family2.Unchecked.lens+ _PendingSweepsResponse'_unknownFields+ (\ x__ y__ -> x__ {_PendingSweepsResponse'_unknownFields = y__})+ defMessage+ = PendingSweepsResponse'_constructor+ {_PendingSweepsResponse'pendingSweeps = Data.Vector.Generic.empty,+ _PendingSweepsResponse'_unknownFields = []}+ parseMessage+ = let+ loop ::+ PendingSweepsResponse+ -> Data.ProtoLens.Encoding.Growing.Growing Data.Vector.Vector Data.ProtoLens.Encoding.Growing.RealWorld PendingSweep+ -> Data.ProtoLens.Encoding.Bytes.Parser PendingSweepsResponse+ loop x mutable'pendingSweeps+ = do end <- Data.ProtoLens.Encoding.Bytes.atEnd+ if end then+ do frozen'pendingSweeps <- Data.ProtoLens.Encoding.Parser.Unsafe.unsafeLiftIO+ (Data.ProtoLens.Encoding.Growing.unsafeFreeze+ mutable'pendingSweeps)+ (let missing = []+ in+ if Prelude.null missing then+ Prelude.return ()+ else+ Prelude.fail+ ((Prelude.++)+ "Missing required fields: "+ (Prelude.show (missing :: [Prelude.String]))))+ Prelude.return+ (Lens.Family2.over+ Data.ProtoLens.unknownFields (\ !t -> Prelude.reverse t)+ (Lens.Family2.set+ (Data.ProtoLens.Field.field @"vec'pendingSweeps")+ frozen'pendingSweeps x))+ else+ do tag <- Data.ProtoLens.Encoding.Bytes.getVarInt+ case tag of+ 10+ -> do !y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (do len <- Data.ProtoLens.Encoding.Bytes.getVarInt+ Data.ProtoLens.Encoding.Bytes.isolate+ (Prelude.fromIntegral len)+ Data.ProtoLens.parseMessage)+ "pending_sweeps"+ v <- Data.ProtoLens.Encoding.Parser.Unsafe.unsafeLiftIO+ (Data.ProtoLens.Encoding.Growing.append+ mutable'pendingSweeps y)+ loop x v+ wire+ -> do !y <- Data.ProtoLens.Encoding.Wire.parseTaggedValueFromWire+ wire+ loop+ (Lens.Family2.over+ Data.ProtoLens.unknownFields (\ !t -> (:) y t) x)+ mutable'pendingSweeps+ in+ (Data.ProtoLens.Encoding.Bytes.<?>)+ (do mutable'pendingSweeps <- Data.ProtoLens.Encoding.Parser.Unsafe.unsafeLiftIO+ Data.ProtoLens.Encoding.Growing.new+ loop Data.ProtoLens.defMessage mutable'pendingSweeps)+ "PendingSweepsResponse"+ buildMessage+ = \ _x+ -> (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.foldMapBuilder+ (\ _v+ -> (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 10)+ ((Prelude..)+ (\ bs+ -> (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt+ (Prelude.fromIntegral (Data.ByteString.length bs)))+ (Data.ProtoLens.Encoding.Bytes.putBytes bs))+ Data.ProtoLens.encodeMessage _v))+ (Lens.Family2.view+ (Data.ProtoLens.Field.field @"vec'pendingSweeps") _x))+ (Data.ProtoLens.Encoding.Wire.buildFieldSet+ (Lens.Family2.view Data.ProtoLens.unknownFields _x))+instance Control.DeepSeq.NFData PendingSweepsResponse where+ rnf+ = \ x__+ -> Control.DeepSeq.deepseq+ (_PendingSweepsResponse'_unknownFields x__)+ (Control.DeepSeq.deepseq+ (_PendingSweepsResponse'pendingSweeps x__) ())+{- | Fields :+ + * 'Proto.Walletrpc.Walletkit_Fields.publishError' @:: Lens' PublishResponse Data.Text.Text@ -}+data PublishResponse+ = PublishResponse'_constructor {_PublishResponse'publishError :: !Data.Text.Text,+ _PublishResponse'_unknownFields :: !Data.ProtoLens.FieldSet}+ deriving stock (Prelude.Eq, Prelude.Ord, GHC.Generics.Generic)+instance Prelude.Show PublishResponse where+ showsPrec _ __x __s+ = Prelude.showChar+ '{'+ (Prelude.showString+ (Data.ProtoLens.showMessageShort __x) (Prelude.showChar '}' __s))+instance Text.PrettyPrint.GenericPretty.Out PublishResponse+instance Data.ProtoLens.Field.HasField PublishResponse "publishError" Data.Text.Text where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _PublishResponse'publishError+ (\ x__ y__ -> x__ {_PublishResponse'publishError = y__}))+ Prelude.id+instance Data.ProtoLens.Message PublishResponse where+ messageName _ = Data.Text.pack "walletrpc.PublishResponse"+ packedMessageDescriptor _+ = "\n\+ \\SIPublishResponse\DC2#\n\+ \\rpublish_error\CAN\SOH \SOH(\tR\fpublishError"+ packedFileDescriptor _ = packedFileDescriptor+ fieldsByTag+ = let+ publishError__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "publish_error"+ (Data.ProtoLens.ScalarField Data.ProtoLens.StringField ::+ Data.ProtoLens.FieldTypeDescriptor Data.Text.Text)+ (Data.ProtoLens.PlainField+ Data.ProtoLens.Optional+ (Data.ProtoLens.Field.field @"publishError")) ::+ Data.ProtoLens.FieldDescriptor PublishResponse+ in+ Data.Map.fromList+ [(Data.ProtoLens.Tag 1, publishError__field_descriptor)]+ unknownFields+ = Lens.Family2.Unchecked.lens+ _PublishResponse'_unknownFields+ (\ x__ y__ -> x__ {_PublishResponse'_unknownFields = y__})+ defMessage+ = PublishResponse'_constructor+ {_PublishResponse'publishError = Data.ProtoLens.fieldDefault,+ _PublishResponse'_unknownFields = []}+ parseMessage+ = let+ loop ::+ PublishResponse+ -> Data.ProtoLens.Encoding.Bytes.Parser PublishResponse+ loop x+ = do end <- Data.ProtoLens.Encoding.Bytes.atEnd+ if end then+ do (let missing = []+ in+ if Prelude.null missing then+ Prelude.return ()+ else+ Prelude.fail+ ((Prelude.++)+ "Missing required fields: "+ (Prelude.show (missing :: [Prelude.String]))))+ Prelude.return+ (Lens.Family2.over+ Data.ProtoLens.unknownFields (\ !t -> Prelude.reverse t) x)+ else+ do tag <- Data.ProtoLens.Encoding.Bytes.getVarInt+ case tag of+ 10+ -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (do value <- do len <- Data.ProtoLens.Encoding.Bytes.getVarInt+ Data.ProtoLens.Encoding.Bytes.getBytes+ (Prelude.fromIntegral len)+ Data.ProtoLens.Encoding.Bytes.runEither+ (case Data.Text.Encoding.decodeUtf8' value of+ (Prelude.Left err)+ -> Prelude.Left (Prelude.show err)+ (Prelude.Right r) -> Prelude.Right r))+ "publish_error"+ loop+ (Lens.Family2.set+ (Data.ProtoLens.Field.field @"publishError") y x)+ wire+ -> do !y <- Data.ProtoLens.Encoding.Wire.parseTaggedValueFromWire+ wire+ loop+ (Lens.Family2.over+ Data.ProtoLens.unknownFields (\ !t -> (:) y t) x)+ in+ (Data.ProtoLens.Encoding.Bytes.<?>)+ (do loop Data.ProtoLens.defMessage) "PublishResponse"+ buildMessage+ = \ _x+ -> (Data.Monoid.<>)+ (let+ _v+ = Lens.Family2.view (Data.ProtoLens.Field.field @"publishError") _x+ in+ if (Prelude.==) _v Data.ProtoLens.fieldDefault then+ Data.Monoid.mempty+ else+ (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 10)+ ((Prelude..)+ (\ bs+ -> (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt+ (Prelude.fromIntegral (Data.ByteString.length bs)))+ (Data.ProtoLens.Encoding.Bytes.putBytes bs))+ Data.Text.Encoding.encodeUtf8 _v))+ (Data.ProtoLens.Encoding.Wire.buildFieldSet+ (Lens.Family2.view Data.ProtoLens.unknownFields _x))+instance Control.DeepSeq.NFData PublishResponse where+ rnf+ = \ x__+ -> Control.DeepSeq.deepseq+ (_PublishResponse'_unknownFields x__)+ (Control.DeepSeq.deepseq (_PublishResponse'publishError x__) ())+{- | Fields :+ + * 'Proto.Walletrpc.Walletkit_Fields.id' @:: Lens' ReleaseOutputRequest Data.ByteString.ByteString@+ * 'Proto.Walletrpc.Walletkit_Fields.outpoint' @:: Lens' ReleaseOutputRequest Proto.Lnrpc.Ln0.OutPoint@+ * 'Proto.Walletrpc.Walletkit_Fields.maybe'outpoint' @:: Lens' ReleaseOutputRequest (Prelude.Maybe Proto.Lnrpc.Ln0.OutPoint)@ -}+data ReleaseOutputRequest+ = ReleaseOutputRequest'_constructor {_ReleaseOutputRequest'id :: !Data.ByteString.ByteString,+ _ReleaseOutputRequest'outpoint :: !(Prelude.Maybe Proto.Lnrpc.Ln0.OutPoint),+ _ReleaseOutputRequest'_unknownFields :: !Data.ProtoLens.FieldSet}+ deriving stock (Prelude.Eq, Prelude.Ord, GHC.Generics.Generic)+instance Prelude.Show ReleaseOutputRequest where+ showsPrec _ __x __s+ = Prelude.showChar+ '{'+ (Prelude.showString+ (Data.ProtoLens.showMessageShort __x) (Prelude.showChar '}' __s))+instance Text.PrettyPrint.GenericPretty.Out ReleaseOutputRequest+instance Data.ProtoLens.Field.HasField ReleaseOutputRequest "id" Data.ByteString.ByteString where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _ReleaseOutputRequest'id+ (\ x__ y__ -> x__ {_ReleaseOutputRequest'id = y__}))+ Prelude.id+instance Data.ProtoLens.Field.HasField ReleaseOutputRequest "outpoint" Proto.Lnrpc.Ln0.OutPoint where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _ReleaseOutputRequest'outpoint+ (\ x__ y__ -> x__ {_ReleaseOutputRequest'outpoint = y__}))+ (Data.ProtoLens.maybeLens Data.ProtoLens.defMessage)+instance Data.ProtoLens.Field.HasField ReleaseOutputRequest "maybe'outpoint" (Prelude.Maybe Proto.Lnrpc.Ln0.OutPoint) where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _ReleaseOutputRequest'outpoint+ (\ x__ y__ -> x__ {_ReleaseOutputRequest'outpoint = y__}))+ Prelude.id+instance Data.ProtoLens.Message ReleaseOutputRequest where+ messageName _ = Data.Text.pack "walletrpc.ReleaseOutputRequest"+ packedMessageDescriptor _+ = "\n\+ \\DC4ReleaseOutputRequest\DC2\SO\n\+ \\STXid\CAN\SOH \SOH(\fR\STXid\DC2+\n\+ \\boutpoint\CAN\STX \SOH(\v2\SI.lnrpc.OutPointR\boutpoint"+ packedFileDescriptor _ = packedFileDescriptor+ fieldsByTag+ = let+ id__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "id"+ (Data.ProtoLens.ScalarField Data.ProtoLens.BytesField ::+ Data.ProtoLens.FieldTypeDescriptor Data.ByteString.ByteString)+ (Data.ProtoLens.PlainField+ Data.ProtoLens.Optional (Data.ProtoLens.Field.field @"id")) ::+ Data.ProtoLens.FieldDescriptor ReleaseOutputRequest+ outpoint__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "outpoint"+ (Data.ProtoLens.MessageField Data.ProtoLens.MessageType ::+ Data.ProtoLens.FieldTypeDescriptor Proto.Lnrpc.Ln0.OutPoint)+ (Data.ProtoLens.OptionalField+ (Data.ProtoLens.Field.field @"maybe'outpoint")) ::+ Data.ProtoLens.FieldDescriptor ReleaseOutputRequest+ in+ Data.Map.fromList+ [(Data.ProtoLens.Tag 1, id__field_descriptor),+ (Data.ProtoLens.Tag 2, outpoint__field_descriptor)]+ unknownFields+ = Lens.Family2.Unchecked.lens+ _ReleaseOutputRequest'_unknownFields+ (\ x__ y__ -> x__ {_ReleaseOutputRequest'_unknownFields = y__})+ defMessage+ = ReleaseOutputRequest'_constructor+ {_ReleaseOutputRequest'id = Data.ProtoLens.fieldDefault,+ _ReleaseOutputRequest'outpoint = Prelude.Nothing,+ _ReleaseOutputRequest'_unknownFields = []}+ parseMessage+ = let+ loop ::+ ReleaseOutputRequest+ -> Data.ProtoLens.Encoding.Bytes.Parser ReleaseOutputRequest+ loop x+ = do end <- Data.ProtoLens.Encoding.Bytes.atEnd+ if end then+ do (let missing = []+ in+ if Prelude.null missing then+ Prelude.return ()+ else+ Prelude.fail+ ((Prelude.++)+ "Missing required fields: "+ (Prelude.show (missing :: [Prelude.String]))))+ Prelude.return+ (Lens.Family2.over+ Data.ProtoLens.unknownFields (\ !t -> Prelude.reverse t) x)+ else+ do tag <- Data.ProtoLens.Encoding.Bytes.getVarInt+ case tag of+ 10+ -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (do len <- Data.ProtoLens.Encoding.Bytes.getVarInt+ Data.ProtoLens.Encoding.Bytes.getBytes+ (Prelude.fromIntegral len))+ "id"+ loop (Lens.Family2.set (Data.ProtoLens.Field.field @"id") y x)+ 18+ -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (do len <- Data.ProtoLens.Encoding.Bytes.getVarInt+ Data.ProtoLens.Encoding.Bytes.isolate+ (Prelude.fromIntegral len) Data.ProtoLens.parseMessage)+ "outpoint"+ loop+ (Lens.Family2.set (Data.ProtoLens.Field.field @"outpoint") y x)+ wire+ -> do !y <- Data.ProtoLens.Encoding.Wire.parseTaggedValueFromWire+ wire+ loop+ (Lens.Family2.over+ Data.ProtoLens.unknownFields (\ !t -> (:) y t) x)+ in+ (Data.ProtoLens.Encoding.Bytes.<?>)+ (do loop Data.ProtoLens.defMessage) "ReleaseOutputRequest"+ buildMessage+ = \ _x+ -> (Data.Monoid.<>)+ (let _v = Lens.Family2.view (Data.ProtoLens.Field.field @"id") _x+ in+ if (Prelude.==) _v Data.ProtoLens.fieldDefault then+ Data.Monoid.mempty+ else+ (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 10)+ ((\ bs+ -> (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt+ (Prelude.fromIntegral (Data.ByteString.length bs)))+ (Data.ProtoLens.Encoding.Bytes.putBytes bs))+ _v))+ ((Data.Monoid.<>)+ (case+ Lens.Family2.view (Data.ProtoLens.Field.field @"maybe'outpoint") _x+ of+ Prelude.Nothing -> Data.Monoid.mempty+ (Prelude.Just _v)+ -> (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 18)+ ((Prelude..)+ (\ bs+ -> (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt+ (Prelude.fromIntegral (Data.ByteString.length bs)))+ (Data.ProtoLens.Encoding.Bytes.putBytes bs))+ Data.ProtoLens.encodeMessage _v))+ (Data.ProtoLens.Encoding.Wire.buildFieldSet+ (Lens.Family2.view Data.ProtoLens.unknownFields _x)))+instance Control.DeepSeq.NFData ReleaseOutputRequest where+ rnf+ = \ x__+ -> Control.DeepSeq.deepseq+ (_ReleaseOutputRequest'_unknownFields x__)+ (Control.DeepSeq.deepseq+ (_ReleaseOutputRequest'id x__)+ (Control.DeepSeq.deepseq (_ReleaseOutputRequest'outpoint x__) ()))+{- | Fields :+ -}+data ReleaseOutputResponse+ = ReleaseOutputResponse'_constructor {_ReleaseOutputResponse'_unknownFields :: !Data.ProtoLens.FieldSet}+ deriving stock (Prelude.Eq, Prelude.Ord, GHC.Generics.Generic)+instance Prelude.Show ReleaseOutputResponse where+ showsPrec _ __x __s+ = Prelude.showChar+ '{'+ (Prelude.showString+ (Data.ProtoLens.showMessageShort __x) (Prelude.showChar '}' __s))+instance Text.PrettyPrint.GenericPretty.Out ReleaseOutputResponse+instance Data.ProtoLens.Message ReleaseOutputResponse where+ messageName _ = Data.Text.pack "walletrpc.ReleaseOutputResponse"+ packedMessageDescriptor _+ = "\n\+ \\NAKReleaseOutputResponse"+ packedFileDescriptor _ = packedFileDescriptor+ fieldsByTag = let in Data.Map.fromList []+ unknownFields+ = Lens.Family2.Unchecked.lens+ _ReleaseOutputResponse'_unknownFields+ (\ x__ y__ -> x__ {_ReleaseOutputResponse'_unknownFields = y__})+ defMessage+ = ReleaseOutputResponse'_constructor+ {_ReleaseOutputResponse'_unknownFields = []}+ parseMessage+ = let+ loop ::+ ReleaseOutputResponse+ -> Data.ProtoLens.Encoding.Bytes.Parser ReleaseOutputResponse+ loop x+ = do end <- Data.ProtoLens.Encoding.Bytes.atEnd+ if end then+ do (let missing = []+ in+ if Prelude.null missing then+ Prelude.return ()+ else+ Prelude.fail+ ((Prelude.++)+ "Missing required fields: "+ (Prelude.show (missing :: [Prelude.String]))))+ Prelude.return+ (Lens.Family2.over+ Data.ProtoLens.unknownFields (\ !t -> Prelude.reverse t) x)+ else+ do tag <- Data.ProtoLens.Encoding.Bytes.getVarInt+ case tag of {+ wire+ -> do !y <- Data.ProtoLens.Encoding.Wire.parseTaggedValueFromWire+ wire+ loop+ (Lens.Family2.over+ Data.ProtoLens.unknownFields (\ !t -> (:) y t) x) }+ in+ (Data.ProtoLens.Encoding.Bytes.<?>)+ (do loop Data.ProtoLens.defMessage) "ReleaseOutputResponse"+ buildMessage+ = \ _x+ -> Data.ProtoLens.Encoding.Wire.buildFieldSet+ (Lens.Family2.view Data.ProtoLens.unknownFields _x)+instance Control.DeepSeq.NFData ReleaseOutputResponse where+ rnf+ = \ x__+ -> Control.DeepSeq.deepseq+ (_ReleaseOutputResponse'_unknownFields x__) ()+{- | Fields :+ + * 'Proto.Walletrpc.Walletkit_Fields.satPerKw' @:: Lens' SendOutputsRequest Data.Int.Int64@+ * 'Proto.Walletrpc.Walletkit_Fields.outputs' @:: Lens' SendOutputsRequest [Proto.Signrpc.Signer.TxOut]@+ * 'Proto.Walletrpc.Walletkit_Fields.vec'outputs' @:: Lens' SendOutputsRequest (Data.Vector.Vector Proto.Signrpc.Signer.TxOut)@+ * 'Proto.Walletrpc.Walletkit_Fields.label' @:: Lens' SendOutputsRequest Data.Text.Text@+ * 'Proto.Walletrpc.Walletkit_Fields.minConfs' @:: Lens' SendOutputsRequest Data.Int.Int32@+ * 'Proto.Walletrpc.Walletkit_Fields.spendUnconfirmed' @:: Lens' SendOutputsRequest Prelude.Bool@ -}+data SendOutputsRequest+ = SendOutputsRequest'_constructor {_SendOutputsRequest'satPerKw :: !Data.Int.Int64,+ _SendOutputsRequest'outputs :: !(Data.Vector.Vector Proto.Signrpc.Signer.TxOut),+ _SendOutputsRequest'label :: !Data.Text.Text,+ _SendOutputsRequest'minConfs :: !Data.Int.Int32,+ _SendOutputsRequest'spendUnconfirmed :: !Prelude.Bool,+ _SendOutputsRequest'_unknownFields :: !Data.ProtoLens.FieldSet}+ deriving stock (Prelude.Eq, Prelude.Ord, GHC.Generics.Generic)+instance Prelude.Show SendOutputsRequest where+ showsPrec _ __x __s+ = Prelude.showChar+ '{'+ (Prelude.showString+ (Data.ProtoLens.showMessageShort __x) (Prelude.showChar '}' __s))+instance Text.PrettyPrint.GenericPretty.Out SendOutputsRequest+instance Data.ProtoLens.Field.HasField SendOutputsRequest "satPerKw" Data.Int.Int64 where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _SendOutputsRequest'satPerKw+ (\ x__ y__ -> x__ {_SendOutputsRequest'satPerKw = y__}))+ Prelude.id+instance Data.ProtoLens.Field.HasField SendOutputsRequest "outputs" [Proto.Signrpc.Signer.TxOut] where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _SendOutputsRequest'outputs+ (\ x__ y__ -> x__ {_SendOutputsRequest'outputs = y__}))+ (Lens.Family2.Unchecked.lens+ Data.Vector.Generic.toList+ (\ _ y__ -> Data.Vector.Generic.fromList y__))+instance Data.ProtoLens.Field.HasField SendOutputsRequest "vec'outputs" (Data.Vector.Vector Proto.Signrpc.Signer.TxOut) where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _SendOutputsRequest'outputs+ (\ x__ y__ -> x__ {_SendOutputsRequest'outputs = y__}))+ Prelude.id+instance Data.ProtoLens.Field.HasField SendOutputsRequest "label" Data.Text.Text where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _SendOutputsRequest'label+ (\ x__ y__ -> x__ {_SendOutputsRequest'label = y__}))+ Prelude.id+instance Data.ProtoLens.Field.HasField SendOutputsRequest "minConfs" Data.Int.Int32 where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _SendOutputsRequest'minConfs+ (\ x__ y__ -> x__ {_SendOutputsRequest'minConfs = y__}))+ Prelude.id+instance Data.ProtoLens.Field.HasField SendOutputsRequest "spendUnconfirmed" Prelude.Bool where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _SendOutputsRequest'spendUnconfirmed+ (\ x__ y__ -> x__ {_SendOutputsRequest'spendUnconfirmed = y__}))+ Prelude.id+instance Data.ProtoLens.Message SendOutputsRequest where+ messageName _ = Data.Text.pack "walletrpc.SendOutputsRequest"+ packedMessageDescriptor _+ = "\n\+ \\DC2SendOutputsRequest\DC2\FS\n\+ \\n\+ \sat_per_kw\CAN\SOH \SOH(\ETXR\bsatPerKw\DC2(\n\+ \\aoutputs\CAN\STX \ETX(\v2\SO.signrpc.TxOutR\aoutputs\DC2\DC4\n\+ \\ENQlabel\CAN\ETX \SOH(\tR\ENQlabel\DC2\ESC\n\+ \\tmin_confs\CAN\EOT \SOH(\ENQR\bminConfs\DC2+\n\+ \\DC1spend_unconfirmed\CAN\ENQ \SOH(\bR\DLEspendUnconfirmed"+ packedFileDescriptor _ = packedFileDescriptor+ fieldsByTag+ = let+ satPerKw__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "sat_per_kw"+ (Data.ProtoLens.ScalarField Data.ProtoLens.Int64Field ::+ Data.ProtoLens.FieldTypeDescriptor Data.Int.Int64)+ (Data.ProtoLens.PlainField+ Data.ProtoLens.Optional+ (Data.ProtoLens.Field.field @"satPerKw")) ::+ Data.ProtoLens.FieldDescriptor SendOutputsRequest+ outputs__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "outputs"+ (Data.ProtoLens.MessageField Data.ProtoLens.MessageType ::+ Data.ProtoLens.FieldTypeDescriptor Proto.Signrpc.Signer.TxOut)+ (Data.ProtoLens.RepeatedField+ Data.ProtoLens.Unpacked (Data.ProtoLens.Field.field @"outputs")) ::+ Data.ProtoLens.FieldDescriptor SendOutputsRequest+ label__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "label"+ (Data.ProtoLens.ScalarField Data.ProtoLens.StringField ::+ Data.ProtoLens.FieldTypeDescriptor Data.Text.Text)+ (Data.ProtoLens.PlainField+ Data.ProtoLens.Optional (Data.ProtoLens.Field.field @"label")) ::+ Data.ProtoLens.FieldDescriptor SendOutputsRequest+ minConfs__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "min_confs"+ (Data.ProtoLens.ScalarField Data.ProtoLens.Int32Field ::+ Data.ProtoLens.FieldTypeDescriptor Data.Int.Int32)+ (Data.ProtoLens.PlainField+ Data.ProtoLens.Optional+ (Data.ProtoLens.Field.field @"minConfs")) ::+ Data.ProtoLens.FieldDescriptor SendOutputsRequest+ spendUnconfirmed__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "spend_unconfirmed"+ (Data.ProtoLens.ScalarField Data.ProtoLens.BoolField ::+ Data.ProtoLens.FieldTypeDescriptor Prelude.Bool)+ (Data.ProtoLens.PlainField+ Data.ProtoLens.Optional+ (Data.ProtoLens.Field.field @"spendUnconfirmed")) ::+ Data.ProtoLens.FieldDescriptor SendOutputsRequest+ in+ Data.Map.fromList+ [(Data.ProtoLens.Tag 1, satPerKw__field_descriptor),+ (Data.ProtoLens.Tag 2, outputs__field_descriptor),+ (Data.ProtoLens.Tag 3, label__field_descriptor),+ (Data.ProtoLens.Tag 4, minConfs__field_descriptor),+ (Data.ProtoLens.Tag 5, spendUnconfirmed__field_descriptor)]+ unknownFields+ = Lens.Family2.Unchecked.lens+ _SendOutputsRequest'_unknownFields+ (\ x__ y__ -> x__ {_SendOutputsRequest'_unknownFields = y__})+ defMessage+ = SendOutputsRequest'_constructor+ {_SendOutputsRequest'satPerKw = Data.ProtoLens.fieldDefault,+ _SendOutputsRequest'outputs = Data.Vector.Generic.empty,+ _SendOutputsRequest'label = Data.ProtoLens.fieldDefault,+ _SendOutputsRequest'minConfs = Data.ProtoLens.fieldDefault,+ _SendOutputsRequest'spendUnconfirmed = Data.ProtoLens.fieldDefault,+ _SendOutputsRequest'_unknownFields = []}+ parseMessage+ = let+ loop ::+ SendOutputsRequest+ -> Data.ProtoLens.Encoding.Growing.Growing Data.Vector.Vector Data.ProtoLens.Encoding.Growing.RealWorld Proto.Signrpc.Signer.TxOut+ -> Data.ProtoLens.Encoding.Bytes.Parser SendOutputsRequest+ loop x mutable'outputs+ = do end <- Data.ProtoLens.Encoding.Bytes.atEnd+ if end then+ do frozen'outputs <- Data.ProtoLens.Encoding.Parser.Unsafe.unsafeLiftIO+ (Data.ProtoLens.Encoding.Growing.unsafeFreeze+ mutable'outputs)+ (let missing = []+ in+ if Prelude.null missing then+ Prelude.return ()+ else+ Prelude.fail+ ((Prelude.++)+ "Missing required fields: "+ (Prelude.show (missing :: [Prelude.String]))))+ Prelude.return+ (Lens.Family2.over+ Data.ProtoLens.unknownFields (\ !t -> Prelude.reverse t)+ (Lens.Family2.set+ (Data.ProtoLens.Field.field @"vec'outputs") frozen'outputs x))+ else+ do tag <- Data.ProtoLens.Encoding.Bytes.getVarInt+ case tag of+ 8 -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (Prelude.fmap+ Prelude.fromIntegral+ Data.ProtoLens.Encoding.Bytes.getVarInt)+ "sat_per_kw"+ loop+ (Lens.Family2.set (Data.ProtoLens.Field.field @"satPerKw") y x)+ mutable'outputs+ 18+ -> do !y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (do len <- Data.ProtoLens.Encoding.Bytes.getVarInt+ Data.ProtoLens.Encoding.Bytes.isolate+ (Prelude.fromIntegral len)+ Data.ProtoLens.parseMessage)+ "outputs"+ v <- Data.ProtoLens.Encoding.Parser.Unsafe.unsafeLiftIO+ (Data.ProtoLens.Encoding.Growing.append mutable'outputs y)+ loop x v+ 26+ -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (do value <- do len <- Data.ProtoLens.Encoding.Bytes.getVarInt+ Data.ProtoLens.Encoding.Bytes.getBytes+ (Prelude.fromIntegral len)+ Data.ProtoLens.Encoding.Bytes.runEither+ (case Data.Text.Encoding.decodeUtf8' value of+ (Prelude.Left err)+ -> Prelude.Left (Prelude.show err)+ (Prelude.Right r) -> Prelude.Right r))+ "label"+ loop+ (Lens.Family2.set (Data.ProtoLens.Field.field @"label") y x)+ mutable'outputs+ 32+ -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (Prelude.fmap+ Prelude.fromIntegral+ Data.ProtoLens.Encoding.Bytes.getVarInt)+ "min_confs"+ loop+ (Lens.Family2.set (Data.ProtoLens.Field.field @"minConfs") y x)+ mutable'outputs+ 40+ -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (Prelude.fmap+ ((Prelude./=) 0) Data.ProtoLens.Encoding.Bytes.getVarInt)+ "spend_unconfirmed"+ loop+ (Lens.Family2.set+ (Data.ProtoLens.Field.field @"spendUnconfirmed") y x)+ mutable'outputs+ wire+ -> do !y <- Data.ProtoLens.Encoding.Wire.parseTaggedValueFromWire+ wire+ loop+ (Lens.Family2.over+ Data.ProtoLens.unknownFields (\ !t -> (:) y t) x)+ mutable'outputs+ in+ (Data.ProtoLens.Encoding.Bytes.<?>)+ (do mutable'outputs <- Data.ProtoLens.Encoding.Parser.Unsafe.unsafeLiftIO+ Data.ProtoLens.Encoding.Growing.new+ loop Data.ProtoLens.defMessage mutable'outputs)+ "SendOutputsRequest"+ buildMessage+ = \ _x+ -> (Data.Monoid.<>)+ (let+ _v = Lens.Family2.view (Data.ProtoLens.Field.field @"satPerKw") _x+ in+ if (Prelude.==) _v Data.ProtoLens.fieldDefault then+ Data.Monoid.mempty+ else+ (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 8)+ ((Prelude..)+ Data.ProtoLens.Encoding.Bytes.putVarInt Prelude.fromIntegral _v))+ ((Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.foldMapBuilder+ (\ _v+ -> (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 18)+ ((Prelude..)+ (\ bs+ -> (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt+ (Prelude.fromIntegral (Data.ByteString.length bs)))+ (Data.ProtoLens.Encoding.Bytes.putBytes bs))+ Data.ProtoLens.encodeMessage _v))+ (Lens.Family2.view (Data.ProtoLens.Field.field @"vec'outputs") _x))+ ((Data.Monoid.<>)+ (let+ _v = Lens.Family2.view (Data.ProtoLens.Field.field @"label") _x+ in+ if (Prelude.==) _v Data.ProtoLens.fieldDefault then+ Data.Monoid.mempty+ else+ (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 26)+ ((Prelude..)+ (\ bs+ -> (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt+ (Prelude.fromIntegral (Data.ByteString.length bs)))+ (Data.ProtoLens.Encoding.Bytes.putBytes bs))+ Data.Text.Encoding.encodeUtf8 _v))+ ((Data.Monoid.<>)+ (let+ _v = Lens.Family2.view (Data.ProtoLens.Field.field @"minConfs") _x+ in+ if (Prelude.==) _v Data.ProtoLens.fieldDefault then+ Data.Monoid.mempty+ else+ (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 32)+ ((Prelude..)+ Data.ProtoLens.Encoding.Bytes.putVarInt Prelude.fromIntegral _v))+ ((Data.Monoid.<>)+ (let+ _v+ = Lens.Family2.view+ (Data.ProtoLens.Field.field @"spendUnconfirmed") _x+ in+ if (Prelude.==) _v Data.ProtoLens.fieldDefault then+ Data.Monoid.mempty+ else+ (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 40)+ ((Prelude..)+ Data.ProtoLens.Encoding.Bytes.putVarInt+ (\ b -> if b then 1 else 0) _v))+ (Data.ProtoLens.Encoding.Wire.buildFieldSet+ (Lens.Family2.view Data.ProtoLens.unknownFields _x))))))+instance Control.DeepSeq.NFData SendOutputsRequest where+ rnf+ = \ x__+ -> Control.DeepSeq.deepseq+ (_SendOutputsRequest'_unknownFields x__)+ (Control.DeepSeq.deepseq+ (_SendOutputsRequest'satPerKw x__)+ (Control.DeepSeq.deepseq+ (_SendOutputsRequest'outputs x__)+ (Control.DeepSeq.deepseq+ (_SendOutputsRequest'label x__)+ (Control.DeepSeq.deepseq+ (_SendOutputsRequest'minConfs x__)+ (Control.DeepSeq.deepseq+ (_SendOutputsRequest'spendUnconfirmed x__) ())))))+{- | Fields :+ + * 'Proto.Walletrpc.Walletkit_Fields.rawTx' @:: Lens' SendOutputsResponse Data.ByteString.ByteString@ -}+data SendOutputsResponse+ = SendOutputsResponse'_constructor {_SendOutputsResponse'rawTx :: !Data.ByteString.ByteString,+ _SendOutputsResponse'_unknownFields :: !Data.ProtoLens.FieldSet}+ deriving stock (Prelude.Eq, Prelude.Ord, GHC.Generics.Generic)+instance Prelude.Show SendOutputsResponse where+ showsPrec _ __x __s+ = Prelude.showChar+ '{'+ (Prelude.showString+ (Data.ProtoLens.showMessageShort __x) (Prelude.showChar '}' __s))+instance Text.PrettyPrint.GenericPretty.Out SendOutputsResponse+instance Data.ProtoLens.Field.HasField SendOutputsResponse "rawTx" Data.ByteString.ByteString where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _SendOutputsResponse'rawTx+ (\ x__ y__ -> x__ {_SendOutputsResponse'rawTx = y__}))+ Prelude.id+instance Data.ProtoLens.Message SendOutputsResponse where+ messageName _ = Data.Text.pack "walletrpc.SendOutputsResponse"+ packedMessageDescriptor _+ = "\n\+ \\DC3SendOutputsResponse\DC2\NAK\n\+ \\ACKraw_tx\CAN\SOH \SOH(\fR\ENQrawTx"+ packedFileDescriptor _ = packedFileDescriptor+ fieldsByTag+ = let+ rawTx__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "raw_tx"+ (Data.ProtoLens.ScalarField Data.ProtoLens.BytesField ::+ Data.ProtoLens.FieldTypeDescriptor Data.ByteString.ByteString)+ (Data.ProtoLens.PlainField+ Data.ProtoLens.Optional (Data.ProtoLens.Field.field @"rawTx")) ::+ Data.ProtoLens.FieldDescriptor SendOutputsResponse+ in+ Data.Map.fromList [(Data.ProtoLens.Tag 1, rawTx__field_descriptor)]+ unknownFields+ = Lens.Family2.Unchecked.lens+ _SendOutputsResponse'_unknownFields+ (\ x__ y__ -> x__ {_SendOutputsResponse'_unknownFields = y__})+ defMessage+ = SendOutputsResponse'_constructor+ {_SendOutputsResponse'rawTx = Data.ProtoLens.fieldDefault,+ _SendOutputsResponse'_unknownFields = []}+ parseMessage+ = let+ loop ::+ SendOutputsResponse+ -> Data.ProtoLens.Encoding.Bytes.Parser SendOutputsResponse+ loop x+ = do end <- Data.ProtoLens.Encoding.Bytes.atEnd+ if end then+ do (let missing = []+ in+ if Prelude.null missing then+ Prelude.return ()+ else+ Prelude.fail+ ((Prelude.++)+ "Missing required fields: "+ (Prelude.show (missing :: [Prelude.String]))))+ Prelude.return+ (Lens.Family2.over+ Data.ProtoLens.unknownFields (\ !t -> Prelude.reverse t) x)+ else+ do tag <- Data.ProtoLens.Encoding.Bytes.getVarInt+ case tag of+ 10+ -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (do len <- Data.ProtoLens.Encoding.Bytes.getVarInt+ Data.ProtoLens.Encoding.Bytes.getBytes+ (Prelude.fromIntegral len))+ "raw_tx"+ loop (Lens.Family2.set (Data.ProtoLens.Field.field @"rawTx") y x)+ wire+ -> do !y <- Data.ProtoLens.Encoding.Wire.parseTaggedValueFromWire+ wire+ loop+ (Lens.Family2.over+ Data.ProtoLens.unknownFields (\ !t -> (:) y t) x)+ in+ (Data.ProtoLens.Encoding.Bytes.<?>)+ (do loop Data.ProtoLens.defMessage) "SendOutputsResponse"+ buildMessage+ = \ _x+ -> (Data.Monoid.<>)+ (let+ _v = Lens.Family2.view (Data.ProtoLens.Field.field @"rawTx") _x+ in+ if (Prelude.==) _v Data.ProtoLens.fieldDefault then+ Data.Monoid.mempty+ else+ (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 10)+ ((\ bs+ -> (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt+ (Prelude.fromIntegral (Data.ByteString.length bs)))+ (Data.ProtoLens.Encoding.Bytes.putBytes bs))+ _v))+ (Data.ProtoLens.Encoding.Wire.buildFieldSet+ (Lens.Family2.view Data.ProtoLens.unknownFields _x))+instance Control.DeepSeq.NFData SendOutputsResponse where+ rnf+ = \ x__+ -> Control.DeepSeq.deepseq+ (_SendOutputsResponse'_unknownFields x__)+ (Control.DeepSeq.deepseq (_SendOutputsResponse'rawTx x__) ())+{- | Fields :+ + * 'Proto.Walletrpc.Walletkit_Fields.txHex' @:: Lens' Transaction Data.ByteString.ByteString@+ * 'Proto.Walletrpc.Walletkit_Fields.label' @:: Lens' Transaction Data.Text.Text@ -}+data Transaction+ = Transaction'_constructor {_Transaction'txHex :: !Data.ByteString.ByteString,+ _Transaction'label :: !Data.Text.Text,+ _Transaction'_unknownFields :: !Data.ProtoLens.FieldSet}+ deriving stock (Prelude.Eq, Prelude.Ord, GHC.Generics.Generic)+instance Prelude.Show Transaction where+ showsPrec _ __x __s+ = Prelude.showChar+ '{'+ (Prelude.showString+ (Data.ProtoLens.showMessageShort __x) (Prelude.showChar '}' __s))+instance Text.PrettyPrint.GenericPretty.Out Transaction+instance Data.ProtoLens.Field.HasField Transaction "txHex" Data.ByteString.ByteString where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _Transaction'txHex (\ x__ y__ -> x__ {_Transaction'txHex = y__}))+ Prelude.id+instance Data.ProtoLens.Field.HasField Transaction "label" Data.Text.Text where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _Transaction'label (\ x__ y__ -> x__ {_Transaction'label = y__}))+ Prelude.id+instance Data.ProtoLens.Message Transaction where+ messageName _ = Data.Text.pack "walletrpc.Transaction"+ packedMessageDescriptor _+ = "\n\+ \\vTransaction\DC2\NAK\n\+ \\ACKtx_hex\CAN\SOH \SOH(\fR\ENQtxHex\DC2\DC4\n\+ \\ENQlabel\CAN\STX \SOH(\tR\ENQlabel"+ packedFileDescriptor _ = packedFileDescriptor+ fieldsByTag+ = let+ txHex__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "tx_hex"+ (Data.ProtoLens.ScalarField Data.ProtoLens.BytesField ::+ Data.ProtoLens.FieldTypeDescriptor Data.ByteString.ByteString)+ (Data.ProtoLens.PlainField+ Data.ProtoLens.Optional (Data.ProtoLens.Field.field @"txHex")) ::+ Data.ProtoLens.FieldDescriptor Transaction+ label__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "label"+ (Data.ProtoLens.ScalarField Data.ProtoLens.StringField ::+ Data.ProtoLens.FieldTypeDescriptor Data.Text.Text)+ (Data.ProtoLens.PlainField+ Data.ProtoLens.Optional (Data.ProtoLens.Field.field @"label")) ::+ Data.ProtoLens.FieldDescriptor Transaction+ in+ Data.Map.fromList+ [(Data.ProtoLens.Tag 1, txHex__field_descriptor),+ (Data.ProtoLens.Tag 2, label__field_descriptor)]+ unknownFields+ = Lens.Family2.Unchecked.lens+ _Transaction'_unknownFields+ (\ x__ y__ -> x__ {_Transaction'_unknownFields = y__})+ defMessage+ = Transaction'_constructor+ {_Transaction'txHex = Data.ProtoLens.fieldDefault,+ _Transaction'label = Data.ProtoLens.fieldDefault,+ _Transaction'_unknownFields = []}+ parseMessage+ = let+ loop ::+ Transaction -> Data.ProtoLens.Encoding.Bytes.Parser Transaction+ loop x+ = do end <- Data.ProtoLens.Encoding.Bytes.atEnd+ if end then+ do (let missing = []+ in+ if Prelude.null missing then+ Prelude.return ()+ else+ Prelude.fail+ ((Prelude.++)+ "Missing required fields: "+ (Prelude.show (missing :: [Prelude.String]))))+ Prelude.return+ (Lens.Family2.over+ Data.ProtoLens.unknownFields (\ !t -> Prelude.reverse t) x)+ else+ do tag <- Data.ProtoLens.Encoding.Bytes.getVarInt+ case tag of+ 10+ -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (do len <- Data.ProtoLens.Encoding.Bytes.getVarInt+ Data.ProtoLens.Encoding.Bytes.getBytes+ (Prelude.fromIntegral len))+ "tx_hex"+ loop (Lens.Family2.set (Data.ProtoLens.Field.field @"txHex") y x)+ 18+ -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (do value <- do len <- Data.ProtoLens.Encoding.Bytes.getVarInt+ Data.ProtoLens.Encoding.Bytes.getBytes+ (Prelude.fromIntegral len)+ Data.ProtoLens.Encoding.Bytes.runEither+ (case Data.Text.Encoding.decodeUtf8' value of+ (Prelude.Left err)+ -> Prelude.Left (Prelude.show err)+ (Prelude.Right r) -> Prelude.Right r))+ "label"+ loop (Lens.Family2.set (Data.ProtoLens.Field.field @"label") y x)+ wire+ -> do !y <- Data.ProtoLens.Encoding.Wire.parseTaggedValueFromWire+ wire+ loop+ (Lens.Family2.over+ Data.ProtoLens.unknownFields (\ !t -> (:) y t) x)+ in+ (Data.ProtoLens.Encoding.Bytes.<?>)+ (do loop Data.ProtoLens.defMessage) "Transaction"+ buildMessage+ = \ _x+ -> (Data.Monoid.<>)+ (let+ _v = Lens.Family2.view (Data.ProtoLens.Field.field @"txHex") _x+ in+ if (Prelude.==) _v Data.ProtoLens.fieldDefault then+ Data.Monoid.mempty+ else+ (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 10)+ ((\ bs+ -> (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt+ (Prelude.fromIntegral (Data.ByteString.length bs)))+ (Data.ProtoLens.Encoding.Bytes.putBytes bs))+ _v))+ ((Data.Monoid.<>)+ (let+ _v = Lens.Family2.view (Data.ProtoLens.Field.field @"label") _x+ in+ if (Prelude.==) _v Data.ProtoLens.fieldDefault then+ Data.Monoid.mempty+ else+ (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 18)+ ((Prelude..)+ (\ bs+ -> (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt+ (Prelude.fromIntegral (Data.ByteString.length bs)))+ (Data.ProtoLens.Encoding.Bytes.putBytes bs))+ Data.Text.Encoding.encodeUtf8 _v))+ (Data.ProtoLens.Encoding.Wire.buildFieldSet+ (Lens.Family2.view Data.ProtoLens.unknownFields _x)))+instance Control.DeepSeq.NFData Transaction where+ rnf+ = \ x__+ -> Control.DeepSeq.deepseq+ (_Transaction'_unknownFields x__)+ (Control.DeepSeq.deepseq+ (_Transaction'txHex x__)+ (Control.DeepSeq.deepseq (_Transaction'label x__) ()))+{- | Fields :+ + * 'Proto.Walletrpc.Walletkit_Fields.inputs' @:: Lens' TxTemplate [Proto.Lnrpc.Ln0.OutPoint]@+ * 'Proto.Walletrpc.Walletkit_Fields.vec'inputs' @:: Lens' TxTemplate (Data.Vector.Vector Proto.Lnrpc.Ln0.OutPoint)@+ * 'Proto.Walletrpc.Walletkit_Fields.outputs' @:: Lens' TxTemplate (Data.Map.Map Data.Text.Text Data.Word.Word64)@ -}+data TxTemplate+ = TxTemplate'_constructor {_TxTemplate'inputs :: !(Data.Vector.Vector Proto.Lnrpc.Ln0.OutPoint),+ _TxTemplate'outputs :: !(Data.Map.Map Data.Text.Text Data.Word.Word64),+ _TxTemplate'_unknownFields :: !Data.ProtoLens.FieldSet}+ deriving stock (Prelude.Eq, Prelude.Ord, GHC.Generics.Generic)+instance Prelude.Show TxTemplate where+ showsPrec _ __x __s+ = Prelude.showChar+ '{'+ (Prelude.showString+ (Data.ProtoLens.showMessageShort __x) (Prelude.showChar '}' __s))+instance Text.PrettyPrint.GenericPretty.Out TxTemplate+instance Data.ProtoLens.Field.HasField TxTemplate "inputs" [Proto.Lnrpc.Ln0.OutPoint] where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _TxTemplate'inputs (\ x__ y__ -> x__ {_TxTemplate'inputs = y__}))+ (Lens.Family2.Unchecked.lens+ Data.Vector.Generic.toList+ (\ _ y__ -> Data.Vector.Generic.fromList y__))+instance Data.ProtoLens.Field.HasField TxTemplate "vec'inputs" (Data.Vector.Vector Proto.Lnrpc.Ln0.OutPoint) where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _TxTemplate'inputs (\ x__ y__ -> x__ {_TxTemplate'inputs = y__}))+ Prelude.id+instance Data.ProtoLens.Field.HasField TxTemplate "outputs" (Data.Map.Map Data.Text.Text Data.Word.Word64) where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _TxTemplate'outputs (\ x__ y__ -> x__ {_TxTemplate'outputs = y__}))+ Prelude.id+instance Data.ProtoLens.Message TxTemplate where+ messageName _ = Data.Text.pack "walletrpc.TxTemplate"+ packedMessageDescriptor _+ = "\n\+ \\n\+ \TxTemplate\DC2'\n\+ \\ACKinputs\CAN\SOH \ETX(\v2\SI.lnrpc.OutPointR\ACKinputs\DC2<\n\+ \\aoutputs\CAN\STX \ETX(\v2\".walletrpc.TxTemplate.OutputsEntryR\aoutputs\SUB:\n\+ \\fOutputsEntry\DC2\DLE\n\+ \\ETXkey\CAN\SOH \SOH(\tR\ETXkey\DC2\DC4\n\+ \\ENQvalue\CAN\STX \SOH(\EOTR\ENQvalue:\STX8\SOH"+ packedFileDescriptor _ = packedFileDescriptor+ fieldsByTag+ = let+ inputs__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "inputs"+ (Data.ProtoLens.MessageField Data.ProtoLens.MessageType ::+ Data.ProtoLens.FieldTypeDescriptor Proto.Lnrpc.Ln0.OutPoint)+ (Data.ProtoLens.RepeatedField+ Data.ProtoLens.Unpacked (Data.ProtoLens.Field.field @"inputs")) ::+ Data.ProtoLens.FieldDescriptor TxTemplate+ outputs__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "outputs"+ (Data.ProtoLens.MessageField Data.ProtoLens.MessageType ::+ Data.ProtoLens.FieldTypeDescriptor TxTemplate'OutputsEntry)+ (Data.ProtoLens.MapField+ (Data.ProtoLens.Field.field @"key")+ (Data.ProtoLens.Field.field @"value")+ (Data.ProtoLens.Field.field @"outputs")) ::+ Data.ProtoLens.FieldDescriptor TxTemplate+ in+ Data.Map.fromList+ [(Data.ProtoLens.Tag 1, inputs__field_descriptor),+ (Data.ProtoLens.Tag 2, outputs__field_descriptor)]+ unknownFields+ = Lens.Family2.Unchecked.lens+ _TxTemplate'_unknownFields+ (\ x__ y__ -> x__ {_TxTemplate'_unknownFields = y__})+ defMessage+ = TxTemplate'_constructor+ {_TxTemplate'inputs = Data.Vector.Generic.empty,+ _TxTemplate'outputs = Data.Map.empty,+ _TxTemplate'_unknownFields = []}+ parseMessage+ = let+ loop ::+ TxTemplate+ -> Data.ProtoLens.Encoding.Growing.Growing Data.Vector.Vector Data.ProtoLens.Encoding.Growing.RealWorld Proto.Lnrpc.Ln0.OutPoint+ -> Data.ProtoLens.Encoding.Bytes.Parser TxTemplate+ loop x mutable'inputs+ = do end <- Data.ProtoLens.Encoding.Bytes.atEnd+ if end then+ do frozen'inputs <- Data.ProtoLens.Encoding.Parser.Unsafe.unsafeLiftIO+ (Data.ProtoLens.Encoding.Growing.unsafeFreeze+ mutable'inputs)+ (let missing = []+ in+ if Prelude.null missing then+ Prelude.return ()+ else+ Prelude.fail+ ((Prelude.++)+ "Missing required fields: "+ (Prelude.show (missing :: [Prelude.String]))))+ Prelude.return+ (Lens.Family2.over+ Data.ProtoLens.unknownFields (\ !t -> Prelude.reverse t)+ (Lens.Family2.set+ (Data.ProtoLens.Field.field @"vec'inputs") frozen'inputs x))+ else+ do tag <- Data.ProtoLens.Encoding.Bytes.getVarInt+ case tag of+ 10+ -> do !y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (do len <- Data.ProtoLens.Encoding.Bytes.getVarInt+ Data.ProtoLens.Encoding.Bytes.isolate+ (Prelude.fromIntegral len)+ Data.ProtoLens.parseMessage)+ "inputs"+ v <- Data.ProtoLens.Encoding.Parser.Unsafe.unsafeLiftIO+ (Data.ProtoLens.Encoding.Growing.append mutable'inputs y)+ loop x v+ 18+ -> do !(entry :: TxTemplate'OutputsEntry) <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (do len <- Data.ProtoLens.Encoding.Bytes.getVarInt+ Data.ProtoLens.Encoding.Bytes.isolate+ (Prelude.fromIntegral+ len)+ Data.ProtoLens.parseMessage)+ "outputs"+ (let+ key = Lens.Family2.view (Data.ProtoLens.Field.field @"key") entry+ value+ = Lens.Family2.view (Data.ProtoLens.Field.field @"value") entry+ in+ loop+ (Lens.Family2.over+ (Data.ProtoLens.Field.field @"outputs")+ (\ !t -> Data.Map.insert key value t) x)+ mutable'inputs)+ wire+ -> do !y <- Data.ProtoLens.Encoding.Wire.parseTaggedValueFromWire+ wire+ loop+ (Lens.Family2.over+ Data.ProtoLens.unknownFields (\ !t -> (:) y t) x)+ mutable'inputs+ in+ (Data.ProtoLens.Encoding.Bytes.<?>)+ (do mutable'inputs <- Data.ProtoLens.Encoding.Parser.Unsafe.unsafeLiftIO+ Data.ProtoLens.Encoding.Growing.new+ loop Data.ProtoLens.defMessage mutable'inputs)+ "TxTemplate"+ buildMessage+ = \ _x+ -> (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.foldMapBuilder+ (\ _v+ -> (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 10)+ ((Prelude..)+ (\ bs+ -> (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt+ (Prelude.fromIntegral (Data.ByteString.length bs)))+ (Data.ProtoLens.Encoding.Bytes.putBytes bs))+ Data.ProtoLens.encodeMessage _v))+ (Lens.Family2.view (Data.ProtoLens.Field.field @"vec'inputs") _x))+ ((Data.Monoid.<>)+ (Data.Monoid.mconcat+ (Prelude.map+ (\ _v+ -> (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 18)+ ((Prelude..)+ (\ bs+ -> (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt+ (Prelude.fromIntegral (Data.ByteString.length bs)))+ (Data.ProtoLens.Encoding.Bytes.putBytes bs))+ Data.ProtoLens.encodeMessage+ (Lens.Family2.set+ (Data.ProtoLens.Field.field @"key") (Prelude.fst _v)+ (Lens.Family2.set+ (Data.ProtoLens.Field.field @"value") (Prelude.snd _v)+ (Data.ProtoLens.defMessage :: TxTemplate'OutputsEntry)))))+ (Data.Map.toList+ (Lens.Family2.view (Data.ProtoLens.Field.field @"outputs") _x))))+ (Data.ProtoLens.Encoding.Wire.buildFieldSet+ (Lens.Family2.view Data.ProtoLens.unknownFields _x)))+instance Control.DeepSeq.NFData TxTemplate where+ rnf+ = \ x__+ -> Control.DeepSeq.deepseq+ (_TxTemplate'_unknownFields x__)+ (Control.DeepSeq.deepseq+ (_TxTemplate'inputs x__)+ (Control.DeepSeq.deepseq (_TxTemplate'outputs x__) ()))+{- | Fields :+ + * 'Proto.Walletrpc.Walletkit_Fields.key' @:: Lens' TxTemplate'OutputsEntry Data.Text.Text@+ * 'Proto.Walletrpc.Walletkit_Fields.value' @:: Lens' TxTemplate'OutputsEntry Data.Word.Word64@ -}+data TxTemplate'OutputsEntry+ = TxTemplate'OutputsEntry'_constructor {_TxTemplate'OutputsEntry'key :: !Data.Text.Text,+ _TxTemplate'OutputsEntry'value :: !Data.Word.Word64,+ _TxTemplate'OutputsEntry'_unknownFields :: !Data.ProtoLens.FieldSet}+ deriving stock (Prelude.Eq, Prelude.Ord, GHC.Generics.Generic)+instance Prelude.Show TxTemplate'OutputsEntry where+ showsPrec _ __x __s+ = Prelude.showChar+ '{'+ (Prelude.showString+ (Data.ProtoLens.showMessageShort __x) (Prelude.showChar '}' __s))+instance Text.PrettyPrint.GenericPretty.Out TxTemplate'OutputsEntry+instance Data.ProtoLens.Field.HasField TxTemplate'OutputsEntry "key" Data.Text.Text where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _TxTemplate'OutputsEntry'key+ (\ x__ y__ -> x__ {_TxTemplate'OutputsEntry'key = y__}))+ Prelude.id+instance Data.ProtoLens.Field.HasField TxTemplate'OutputsEntry "value" Data.Word.Word64 where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _TxTemplate'OutputsEntry'value+ (\ x__ y__ -> x__ {_TxTemplate'OutputsEntry'value = y__}))+ Prelude.id+instance Data.ProtoLens.Message TxTemplate'OutputsEntry where+ messageName _ = Data.Text.pack "walletrpc.TxTemplate.OutputsEntry"+ packedMessageDescriptor _+ = "\n\+ \\fOutputsEntry\DC2\DLE\n\+ \\ETXkey\CAN\SOH \SOH(\tR\ETXkey\DC2\DC4\n\+ \\ENQvalue\CAN\STX \SOH(\EOTR\ENQvalue:\STX8\SOH"+ packedFileDescriptor _ = packedFileDescriptor+ fieldsByTag+ = let+ key__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "key"+ (Data.ProtoLens.ScalarField Data.ProtoLens.StringField ::+ Data.ProtoLens.FieldTypeDescriptor Data.Text.Text)+ (Data.ProtoLens.PlainField+ Data.ProtoLens.Optional (Data.ProtoLens.Field.field @"key")) ::+ Data.ProtoLens.FieldDescriptor TxTemplate'OutputsEntry+ value__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "value"+ (Data.ProtoLens.ScalarField Data.ProtoLens.UInt64Field ::+ Data.ProtoLens.FieldTypeDescriptor Data.Word.Word64)+ (Data.ProtoLens.PlainField+ Data.ProtoLens.Optional (Data.ProtoLens.Field.field @"value")) ::+ Data.ProtoLens.FieldDescriptor TxTemplate'OutputsEntry+ in+ Data.Map.fromList+ [(Data.ProtoLens.Tag 1, key__field_descriptor),+ (Data.ProtoLens.Tag 2, value__field_descriptor)]+ unknownFields+ = Lens.Family2.Unchecked.lens+ _TxTemplate'OutputsEntry'_unknownFields+ (\ x__ y__ -> x__ {_TxTemplate'OutputsEntry'_unknownFields = y__})+ defMessage+ = TxTemplate'OutputsEntry'_constructor+ {_TxTemplate'OutputsEntry'key = Data.ProtoLens.fieldDefault,+ _TxTemplate'OutputsEntry'value = Data.ProtoLens.fieldDefault,+ _TxTemplate'OutputsEntry'_unknownFields = []}+ parseMessage+ = let+ loop ::+ TxTemplate'OutputsEntry+ -> Data.ProtoLens.Encoding.Bytes.Parser TxTemplate'OutputsEntry+ loop x+ = do end <- Data.ProtoLens.Encoding.Bytes.atEnd+ if end then+ do (let missing = []+ in+ if Prelude.null missing then+ Prelude.return ()+ else+ Prelude.fail+ ((Prelude.++)+ "Missing required fields: "+ (Prelude.show (missing :: [Prelude.String]))))+ Prelude.return+ (Lens.Family2.over+ Data.ProtoLens.unknownFields (\ !t -> Prelude.reverse t) x)+ else+ do tag <- Data.ProtoLens.Encoding.Bytes.getVarInt+ case tag of+ 10+ -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (do value <- do len <- Data.ProtoLens.Encoding.Bytes.getVarInt+ Data.ProtoLens.Encoding.Bytes.getBytes+ (Prelude.fromIntegral len)+ Data.ProtoLens.Encoding.Bytes.runEither+ (case Data.Text.Encoding.decodeUtf8' value of+ (Prelude.Left err)+ -> Prelude.Left (Prelude.show err)+ (Prelude.Right r) -> Prelude.Right r))+ "key"+ loop (Lens.Family2.set (Data.ProtoLens.Field.field @"key") y x)+ 16+ -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ Data.ProtoLens.Encoding.Bytes.getVarInt "value"+ loop (Lens.Family2.set (Data.ProtoLens.Field.field @"value") y x)+ wire+ -> do !y <- Data.ProtoLens.Encoding.Wire.parseTaggedValueFromWire+ wire+ loop+ (Lens.Family2.over+ Data.ProtoLens.unknownFields (\ !t -> (:) y t) x)+ in+ (Data.ProtoLens.Encoding.Bytes.<?>)+ (do loop Data.ProtoLens.defMessage) "OutputsEntry"+ buildMessage+ = \ _x+ -> (Data.Monoid.<>)+ (let _v = Lens.Family2.view (Data.ProtoLens.Field.field @"key") _x+ in+ if (Prelude.==) _v Data.ProtoLens.fieldDefault then+ Data.Monoid.mempty+ else+ (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 10)+ ((Prelude..)+ (\ bs+ -> (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt+ (Prelude.fromIntegral (Data.ByteString.length bs)))+ (Data.ProtoLens.Encoding.Bytes.putBytes bs))+ Data.Text.Encoding.encodeUtf8 _v))+ ((Data.Monoid.<>)+ (let+ _v = Lens.Family2.view (Data.ProtoLens.Field.field @"value") _x+ in+ if (Prelude.==) _v Data.ProtoLens.fieldDefault then+ Data.Monoid.mempty+ else+ (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 16)+ (Data.ProtoLens.Encoding.Bytes.putVarInt _v))+ (Data.ProtoLens.Encoding.Wire.buildFieldSet+ (Lens.Family2.view Data.ProtoLens.unknownFields _x)))+instance Control.DeepSeq.NFData TxTemplate'OutputsEntry where+ rnf+ = \ x__+ -> Control.DeepSeq.deepseq+ (_TxTemplate'OutputsEntry'_unknownFields x__)+ (Control.DeepSeq.deepseq+ (_TxTemplate'OutputsEntry'key x__)+ (Control.DeepSeq.deepseq (_TxTemplate'OutputsEntry'value x__) ()))+{- | Fields :+ + * 'Proto.Walletrpc.Walletkit_Fields.id' @:: Lens' UtxoLease Data.ByteString.ByteString@+ * 'Proto.Walletrpc.Walletkit_Fields.outpoint' @:: Lens' UtxoLease Proto.Lnrpc.Ln0.OutPoint@+ * 'Proto.Walletrpc.Walletkit_Fields.maybe'outpoint' @:: Lens' UtxoLease (Prelude.Maybe Proto.Lnrpc.Ln0.OutPoint)@+ * 'Proto.Walletrpc.Walletkit_Fields.expiration' @:: Lens' UtxoLease Data.Word.Word64@ -}+data UtxoLease+ = UtxoLease'_constructor {_UtxoLease'id :: !Data.ByteString.ByteString,+ _UtxoLease'outpoint :: !(Prelude.Maybe Proto.Lnrpc.Ln0.OutPoint),+ _UtxoLease'expiration :: !Data.Word.Word64,+ _UtxoLease'_unknownFields :: !Data.ProtoLens.FieldSet}+ deriving stock (Prelude.Eq, Prelude.Ord, GHC.Generics.Generic)+instance Prelude.Show UtxoLease where+ showsPrec _ __x __s+ = Prelude.showChar+ '{'+ (Prelude.showString+ (Data.ProtoLens.showMessageShort __x) (Prelude.showChar '}' __s))+instance Text.PrettyPrint.GenericPretty.Out UtxoLease+instance Data.ProtoLens.Field.HasField UtxoLease "id" Data.ByteString.ByteString where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _UtxoLease'id (\ x__ y__ -> x__ {_UtxoLease'id = y__}))+ Prelude.id+instance Data.ProtoLens.Field.HasField UtxoLease "outpoint" Proto.Lnrpc.Ln0.OutPoint where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _UtxoLease'outpoint (\ x__ y__ -> x__ {_UtxoLease'outpoint = y__}))+ (Data.ProtoLens.maybeLens Data.ProtoLens.defMessage)+instance Data.ProtoLens.Field.HasField UtxoLease "maybe'outpoint" (Prelude.Maybe Proto.Lnrpc.Ln0.OutPoint) where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _UtxoLease'outpoint (\ x__ y__ -> x__ {_UtxoLease'outpoint = y__}))+ Prelude.id+instance Data.ProtoLens.Field.HasField UtxoLease "expiration" Data.Word.Word64 where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _UtxoLease'expiration+ (\ x__ y__ -> x__ {_UtxoLease'expiration = y__}))+ Prelude.id+instance Data.ProtoLens.Message UtxoLease where+ messageName _ = Data.Text.pack "walletrpc.UtxoLease"+ packedMessageDescriptor _+ = "\n\+ \\tUtxoLease\DC2\SO\n\+ \\STXid\CAN\SOH \SOH(\fR\STXid\DC2+\n\+ \\boutpoint\CAN\STX \SOH(\v2\SI.lnrpc.OutPointR\boutpoint\DC2\RS\n\+ \\n\+ \expiration\CAN\ETX \SOH(\EOTR\n\+ \expiration"+ packedFileDescriptor _ = packedFileDescriptor+ fieldsByTag+ = let+ id__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "id"+ (Data.ProtoLens.ScalarField Data.ProtoLens.BytesField ::+ Data.ProtoLens.FieldTypeDescriptor Data.ByteString.ByteString)+ (Data.ProtoLens.PlainField+ Data.ProtoLens.Optional (Data.ProtoLens.Field.field @"id")) ::+ Data.ProtoLens.FieldDescriptor UtxoLease+ outpoint__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "outpoint"+ (Data.ProtoLens.MessageField Data.ProtoLens.MessageType ::+ Data.ProtoLens.FieldTypeDescriptor Proto.Lnrpc.Ln0.OutPoint)+ (Data.ProtoLens.OptionalField+ (Data.ProtoLens.Field.field @"maybe'outpoint")) ::+ Data.ProtoLens.FieldDescriptor UtxoLease+ expiration__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "expiration"+ (Data.ProtoLens.ScalarField Data.ProtoLens.UInt64Field ::+ Data.ProtoLens.FieldTypeDescriptor Data.Word.Word64)+ (Data.ProtoLens.PlainField+ Data.ProtoLens.Optional+ (Data.ProtoLens.Field.field @"expiration")) ::+ Data.ProtoLens.FieldDescriptor UtxoLease+ in+ Data.Map.fromList+ [(Data.ProtoLens.Tag 1, id__field_descriptor),+ (Data.ProtoLens.Tag 2, outpoint__field_descriptor),+ (Data.ProtoLens.Tag 3, expiration__field_descriptor)]+ unknownFields+ = Lens.Family2.Unchecked.lens+ _UtxoLease'_unknownFields+ (\ x__ y__ -> x__ {_UtxoLease'_unknownFields = y__})+ defMessage+ = UtxoLease'_constructor+ {_UtxoLease'id = Data.ProtoLens.fieldDefault,+ _UtxoLease'outpoint = Prelude.Nothing,+ _UtxoLease'expiration = Data.ProtoLens.fieldDefault,+ _UtxoLease'_unknownFields = []}+ parseMessage+ = let+ loop :: UtxoLease -> Data.ProtoLens.Encoding.Bytes.Parser UtxoLease+ loop x+ = do end <- Data.ProtoLens.Encoding.Bytes.atEnd+ if end then+ do (let missing = []+ in+ if Prelude.null missing then+ Prelude.return ()+ else+ Prelude.fail+ ((Prelude.++)+ "Missing required fields: "+ (Prelude.show (missing :: [Prelude.String]))))+ Prelude.return+ (Lens.Family2.over+ Data.ProtoLens.unknownFields (\ !t -> Prelude.reverse t) x)+ else+ do tag <- Data.ProtoLens.Encoding.Bytes.getVarInt+ case tag of+ 10+ -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (do len <- Data.ProtoLens.Encoding.Bytes.getVarInt+ Data.ProtoLens.Encoding.Bytes.getBytes+ (Prelude.fromIntegral len))+ "id"+ loop (Lens.Family2.set (Data.ProtoLens.Field.field @"id") y x)+ 18+ -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (do len <- Data.ProtoLens.Encoding.Bytes.getVarInt+ Data.ProtoLens.Encoding.Bytes.isolate+ (Prelude.fromIntegral len) Data.ProtoLens.parseMessage)+ "outpoint"+ loop+ (Lens.Family2.set (Data.ProtoLens.Field.field @"outpoint") y x)+ 24+ -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ Data.ProtoLens.Encoding.Bytes.getVarInt "expiration"+ loop+ (Lens.Family2.set (Data.ProtoLens.Field.field @"expiration") y x)+ wire+ -> do !y <- Data.ProtoLens.Encoding.Wire.parseTaggedValueFromWire+ wire+ loop+ (Lens.Family2.over+ Data.ProtoLens.unknownFields (\ !t -> (:) y t) x)+ in+ (Data.ProtoLens.Encoding.Bytes.<?>)+ (do loop Data.ProtoLens.defMessage) "UtxoLease"+ buildMessage+ = \ _x+ -> (Data.Monoid.<>)+ (let _v = Lens.Family2.view (Data.ProtoLens.Field.field @"id") _x+ in+ if (Prelude.==) _v Data.ProtoLens.fieldDefault then+ Data.Monoid.mempty+ else+ (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 10)+ ((\ bs+ -> (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt+ (Prelude.fromIntegral (Data.ByteString.length bs)))+ (Data.ProtoLens.Encoding.Bytes.putBytes bs))+ _v))+ ((Data.Monoid.<>)+ (case+ Lens.Family2.view (Data.ProtoLens.Field.field @"maybe'outpoint") _x+ of+ Prelude.Nothing -> Data.Monoid.mempty+ (Prelude.Just _v)+ -> (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 18)+ ((Prelude..)+ (\ bs+ -> (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt+ (Prelude.fromIntegral (Data.ByteString.length bs)))+ (Data.ProtoLens.Encoding.Bytes.putBytes bs))+ Data.ProtoLens.encodeMessage _v))+ ((Data.Monoid.<>)+ (let+ _v+ = Lens.Family2.view (Data.ProtoLens.Field.field @"expiration") _x+ in+ if (Prelude.==) _v Data.ProtoLens.fieldDefault then+ Data.Monoid.mempty+ else+ (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 24)+ (Data.ProtoLens.Encoding.Bytes.putVarInt _v))+ (Data.ProtoLens.Encoding.Wire.buildFieldSet+ (Lens.Family2.view Data.ProtoLens.unknownFields _x))))+instance Control.DeepSeq.NFData UtxoLease where+ rnf+ = \ x__+ -> Control.DeepSeq.deepseq+ (_UtxoLease'_unknownFields x__)+ (Control.DeepSeq.deepseq+ (_UtxoLease'id x__)+ (Control.DeepSeq.deepseq+ (_UtxoLease'outpoint x__)+ (Control.DeepSeq.deepseq (_UtxoLease'expiration x__) ())))+newtype WitnessType'UnrecognizedValue+ = WitnessType'UnrecognizedValue Data.Int.Int32+ deriving stock (Prelude.Eq,+ Prelude.Ord,+ Prelude.Show,+ GHC.Generics.Generic)+instance Text.PrettyPrint.GenericPretty.Out WitnessType'UnrecognizedValue+data WitnessType+ = UNKNOWN_WITNESS |+ COMMITMENT_TIME_LOCK |+ COMMITMENT_NO_DELAY |+ COMMITMENT_REVOKE |+ HTLC_OFFERED_REVOKE |+ HTLC_ACCEPTED_REVOKE |+ HTLC_OFFERED_TIMEOUT_SECOND_LEVEL |+ HTLC_ACCEPTED_SUCCESS_SECOND_LEVEL |+ HTLC_OFFERED_REMOTE_TIMEOUT |+ HTLC_ACCEPTED_REMOTE_SUCCESS |+ HTLC_SECOND_LEVEL_REVOKE |+ WITNESS_KEY_HASH |+ NESTED_WITNESS_KEY_HASH |+ COMMITMENT_ANCHOR |+ WitnessType'Unrecognized !WitnessType'UnrecognizedValue+ deriving stock (Prelude.Show,+ Prelude.Eq,+ Prelude.Ord,+ GHC.Generics.Generic)+instance Data.ProtoLens.MessageEnum WitnessType where+ maybeToEnum 0 = Prelude.Just UNKNOWN_WITNESS+ maybeToEnum 1 = Prelude.Just COMMITMENT_TIME_LOCK+ maybeToEnum 2 = Prelude.Just COMMITMENT_NO_DELAY+ maybeToEnum 3 = Prelude.Just COMMITMENT_REVOKE+ maybeToEnum 4 = Prelude.Just HTLC_OFFERED_REVOKE+ maybeToEnum 5 = Prelude.Just HTLC_ACCEPTED_REVOKE+ maybeToEnum 6 = Prelude.Just HTLC_OFFERED_TIMEOUT_SECOND_LEVEL+ maybeToEnum 7 = Prelude.Just HTLC_ACCEPTED_SUCCESS_SECOND_LEVEL+ maybeToEnum 8 = Prelude.Just HTLC_OFFERED_REMOTE_TIMEOUT+ maybeToEnum 9 = Prelude.Just HTLC_ACCEPTED_REMOTE_SUCCESS+ maybeToEnum 10 = Prelude.Just HTLC_SECOND_LEVEL_REVOKE+ maybeToEnum 11 = Prelude.Just WITNESS_KEY_HASH+ maybeToEnum 12 = Prelude.Just NESTED_WITNESS_KEY_HASH+ maybeToEnum 13 = Prelude.Just COMMITMENT_ANCHOR+ maybeToEnum k+ = Prelude.Just+ (WitnessType'Unrecognized+ (WitnessType'UnrecognizedValue (Prelude.fromIntegral k)))+ showEnum UNKNOWN_WITNESS = "UNKNOWN_WITNESS"+ showEnum COMMITMENT_TIME_LOCK = "COMMITMENT_TIME_LOCK"+ showEnum COMMITMENT_NO_DELAY = "COMMITMENT_NO_DELAY"+ showEnum COMMITMENT_REVOKE = "COMMITMENT_REVOKE"+ showEnum HTLC_OFFERED_REVOKE = "HTLC_OFFERED_REVOKE"+ showEnum HTLC_ACCEPTED_REVOKE = "HTLC_ACCEPTED_REVOKE"+ showEnum HTLC_OFFERED_TIMEOUT_SECOND_LEVEL+ = "HTLC_OFFERED_TIMEOUT_SECOND_LEVEL"+ showEnum HTLC_ACCEPTED_SUCCESS_SECOND_LEVEL+ = "HTLC_ACCEPTED_SUCCESS_SECOND_LEVEL"+ showEnum HTLC_OFFERED_REMOTE_TIMEOUT+ = "HTLC_OFFERED_REMOTE_TIMEOUT"+ showEnum HTLC_ACCEPTED_REMOTE_SUCCESS+ = "HTLC_ACCEPTED_REMOTE_SUCCESS"+ showEnum HTLC_SECOND_LEVEL_REVOKE = "HTLC_SECOND_LEVEL_REVOKE"+ showEnum WITNESS_KEY_HASH = "WITNESS_KEY_HASH"+ showEnum NESTED_WITNESS_KEY_HASH = "NESTED_WITNESS_KEY_HASH"+ showEnum COMMITMENT_ANCHOR = "COMMITMENT_ANCHOR"+ showEnum+ (WitnessType'Unrecognized (WitnessType'UnrecognizedValue k))+ = Prelude.show k+ readEnum k+ | (Prelude.==) k "UNKNOWN_WITNESS" = Prelude.Just UNKNOWN_WITNESS+ | (Prelude.==) k "COMMITMENT_TIME_LOCK"+ = Prelude.Just COMMITMENT_TIME_LOCK+ | (Prelude.==) k "COMMITMENT_NO_DELAY"+ = Prelude.Just COMMITMENT_NO_DELAY+ | (Prelude.==) k "COMMITMENT_REVOKE"+ = Prelude.Just COMMITMENT_REVOKE+ | (Prelude.==) k "HTLC_OFFERED_REVOKE"+ = Prelude.Just HTLC_OFFERED_REVOKE+ | (Prelude.==) k "HTLC_ACCEPTED_REVOKE"+ = Prelude.Just HTLC_ACCEPTED_REVOKE+ | (Prelude.==) k "HTLC_OFFERED_TIMEOUT_SECOND_LEVEL"+ = Prelude.Just HTLC_OFFERED_TIMEOUT_SECOND_LEVEL+ | (Prelude.==) k "HTLC_ACCEPTED_SUCCESS_SECOND_LEVEL"+ = Prelude.Just HTLC_ACCEPTED_SUCCESS_SECOND_LEVEL+ | (Prelude.==) k "HTLC_OFFERED_REMOTE_TIMEOUT"+ = Prelude.Just HTLC_OFFERED_REMOTE_TIMEOUT+ | (Prelude.==) k "HTLC_ACCEPTED_REMOTE_SUCCESS"+ = Prelude.Just HTLC_ACCEPTED_REMOTE_SUCCESS+ | (Prelude.==) k "HTLC_SECOND_LEVEL_REVOKE"+ = Prelude.Just HTLC_SECOND_LEVEL_REVOKE+ | (Prelude.==) k "WITNESS_KEY_HASH" = Prelude.Just WITNESS_KEY_HASH+ | (Prelude.==) k "NESTED_WITNESS_KEY_HASH"+ = Prelude.Just NESTED_WITNESS_KEY_HASH+ | (Prelude.==) k "COMMITMENT_ANCHOR"+ = Prelude.Just COMMITMENT_ANCHOR+ | Prelude.otherwise+ = (Prelude.>>=) (Text.Read.readMaybe k) Data.ProtoLens.maybeToEnum+instance Prelude.Bounded WitnessType where+ minBound = UNKNOWN_WITNESS+ maxBound = COMMITMENT_ANCHOR+instance Prelude.Enum WitnessType where+ toEnum k__+ = Prelude.maybe+ (Prelude.error+ ((Prelude.++)+ "toEnum: unknown value for enum WitnessType: " (Prelude.show k__)))+ Prelude.id (Data.ProtoLens.maybeToEnum k__)+ fromEnum UNKNOWN_WITNESS = 0+ fromEnum COMMITMENT_TIME_LOCK = 1+ fromEnum COMMITMENT_NO_DELAY = 2+ fromEnum COMMITMENT_REVOKE = 3+ fromEnum HTLC_OFFERED_REVOKE = 4+ fromEnum HTLC_ACCEPTED_REVOKE = 5+ fromEnum HTLC_OFFERED_TIMEOUT_SECOND_LEVEL = 6+ fromEnum HTLC_ACCEPTED_SUCCESS_SECOND_LEVEL = 7+ fromEnum HTLC_OFFERED_REMOTE_TIMEOUT = 8+ fromEnum HTLC_ACCEPTED_REMOTE_SUCCESS = 9+ fromEnum HTLC_SECOND_LEVEL_REVOKE = 10+ fromEnum WITNESS_KEY_HASH = 11+ fromEnum NESTED_WITNESS_KEY_HASH = 12+ fromEnum COMMITMENT_ANCHOR = 13+ fromEnum+ (WitnessType'Unrecognized (WitnessType'UnrecognizedValue k))+ = Prelude.fromIntegral k+ succ COMMITMENT_ANCHOR+ = Prelude.error+ "WitnessType.succ: bad argument COMMITMENT_ANCHOR. This value would be out of bounds."+ succ UNKNOWN_WITNESS = COMMITMENT_TIME_LOCK+ succ COMMITMENT_TIME_LOCK = COMMITMENT_NO_DELAY+ succ COMMITMENT_NO_DELAY = COMMITMENT_REVOKE+ succ COMMITMENT_REVOKE = HTLC_OFFERED_REVOKE+ succ HTLC_OFFERED_REVOKE = HTLC_ACCEPTED_REVOKE+ succ HTLC_ACCEPTED_REVOKE = HTLC_OFFERED_TIMEOUT_SECOND_LEVEL+ succ HTLC_OFFERED_TIMEOUT_SECOND_LEVEL+ = HTLC_ACCEPTED_SUCCESS_SECOND_LEVEL+ succ HTLC_ACCEPTED_SUCCESS_SECOND_LEVEL+ = HTLC_OFFERED_REMOTE_TIMEOUT+ succ HTLC_OFFERED_REMOTE_TIMEOUT = HTLC_ACCEPTED_REMOTE_SUCCESS+ succ HTLC_ACCEPTED_REMOTE_SUCCESS = HTLC_SECOND_LEVEL_REVOKE+ succ HTLC_SECOND_LEVEL_REVOKE = WITNESS_KEY_HASH+ succ WITNESS_KEY_HASH = NESTED_WITNESS_KEY_HASH+ succ NESTED_WITNESS_KEY_HASH = COMMITMENT_ANCHOR+ succ (WitnessType'Unrecognized _)+ = Prelude.error+ "WitnessType.succ: bad argument: unrecognized value"+ pred UNKNOWN_WITNESS+ = Prelude.error+ "WitnessType.pred: bad argument UNKNOWN_WITNESS. This value would be out of bounds."+ pred COMMITMENT_TIME_LOCK = UNKNOWN_WITNESS+ pred COMMITMENT_NO_DELAY = COMMITMENT_TIME_LOCK+ pred COMMITMENT_REVOKE = COMMITMENT_NO_DELAY+ pred HTLC_OFFERED_REVOKE = COMMITMENT_REVOKE+ pred HTLC_ACCEPTED_REVOKE = HTLC_OFFERED_REVOKE+ pred HTLC_OFFERED_TIMEOUT_SECOND_LEVEL = HTLC_ACCEPTED_REVOKE+ pred HTLC_ACCEPTED_SUCCESS_SECOND_LEVEL+ = HTLC_OFFERED_TIMEOUT_SECOND_LEVEL+ pred HTLC_OFFERED_REMOTE_TIMEOUT+ = HTLC_ACCEPTED_SUCCESS_SECOND_LEVEL+ pred HTLC_ACCEPTED_REMOTE_SUCCESS = HTLC_OFFERED_REMOTE_TIMEOUT+ pred HTLC_SECOND_LEVEL_REVOKE = HTLC_ACCEPTED_REMOTE_SUCCESS+ pred WITNESS_KEY_HASH = HTLC_SECOND_LEVEL_REVOKE+ pred NESTED_WITNESS_KEY_HASH = WITNESS_KEY_HASH+ pred COMMITMENT_ANCHOR = NESTED_WITNESS_KEY_HASH+ pred (WitnessType'Unrecognized _)+ = Prelude.error+ "WitnessType.pred: bad argument: unrecognized value"+ enumFrom = Data.ProtoLens.Message.Enum.messageEnumFrom+ enumFromTo = Data.ProtoLens.Message.Enum.messageEnumFromTo+ enumFromThen = Data.ProtoLens.Message.Enum.messageEnumFromThen+ enumFromThenTo = Data.ProtoLens.Message.Enum.messageEnumFromThenTo+instance Data.ProtoLens.FieldDefault WitnessType where+ fieldDefault = UNKNOWN_WITNESS+instance Control.DeepSeq.NFData WitnessType where+ rnf x__ = Prelude.seq x__ ()+instance Text.PrettyPrint.GenericPretty.Out WitnessType+data WalletKit = WalletKit {}+instance Data.ProtoLens.Service.Types.Service WalletKit where+ type ServiceName WalletKit = "WalletKit"+ type ServicePackage WalletKit = "walletrpc"+ type ServiceMethods WalletKit = '["bumpFee",+ "deriveKey",+ "deriveNextKey",+ "estimateFee",+ "finalizePsbt",+ "fundPsbt",+ "importAccount",+ "importPublicKey",+ "labelTransaction",+ "leaseOutput",+ "listAccounts",+ "listLeases",+ "listSweeps",+ "listUnspent",+ "nextAddr",+ "pendingSweeps",+ "publishTransaction",+ "releaseOutput",+ "sendOutputs"]+ packedServiceDescriptor _+ = "\n\+ \\tWalletKit\DC2L\n\+ \\vListUnspent\DC2\GS.walletrpc.ListUnspentRequest\SUB\RS.walletrpc.ListUnspentResponse\DC2L\n\+ \\vLeaseOutput\DC2\GS.walletrpc.LeaseOutputRequest\SUB\RS.walletrpc.LeaseOutputResponse\DC2R\n\+ \\rReleaseOutput\DC2\US.walletrpc.ReleaseOutputRequest\SUB .walletrpc.ReleaseOutputResponse\DC2I\n\+ \\n\+ \ListLeases\DC2\FS.walletrpc.ListLeasesRequest\SUB\GS.walletrpc.ListLeasesResponse\DC2:\n\+ \\rDeriveNextKey\DC2\DC1.walletrpc.KeyReq\SUB\SYN.signrpc.KeyDescriptor\DC28\n\+ \\tDeriveKey\DC2\DC3.signrpc.KeyLocator\SUB\SYN.signrpc.KeyDescriptor\DC2;\n\+ \\bNextAddr\DC2\SYN.walletrpc.AddrRequest\SUB\ETB.walletrpc.AddrResponse\DC2O\n\+ \\fListAccounts\DC2\RS.walletrpc.ListAccountsRequest\SUB\US.walletrpc.ListAccountsResponse\DC2R\n\+ \\rImportAccount\DC2\US.walletrpc.ImportAccountRequest\SUB .walletrpc.ImportAccountResponse\DC2X\n\+ \\SIImportPublicKey\DC2!.walletrpc.ImportPublicKeyRequest\SUB\".walletrpc.ImportPublicKeyResponse\DC2H\n\+ \\DC2PublishTransaction\DC2\SYN.walletrpc.Transaction\SUB\SUB.walletrpc.PublishResponse\DC2L\n\+ \\vSendOutputs\DC2\GS.walletrpc.SendOutputsRequest\SUB\RS.walletrpc.SendOutputsResponse\DC2L\n\+ \\vEstimateFee\DC2\GS.walletrpc.EstimateFeeRequest\SUB\RS.walletrpc.EstimateFeeResponse\DC2R\n\+ \\rPendingSweeps\DC2\US.walletrpc.PendingSweepsRequest\SUB .walletrpc.PendingSweepsResponse\DC2@\n\+ \\aBumpFee\DC2\EM.walletrpc.BumpFeeRequest\SUB\SUB.walletrpc.BumpFeeResponse\DC2I\n\+ \\n\+ \ListSweeps\DC2\FS.walletrpc.ListSweepsRequest\SUB\GS.walletrpc.ListSweepsResponse\DC2[\n\+ \\DLELabelTransaction\DC2\".walletrpc.LabelTransactionRequest\SUB#.walletrpc.LabelTransactionResponse\DC2C\n\+ \\bFundPsbt\DC2\SUB.walletrpc.FundPsbtRequest\SUB\ESC.walletrpc.FundPsbtResponse\DC2O\n\+ \\fFinalizePsbt\DC2\RS.walletrpc.FinalizePsbtRequest\SUB\US.walletrpc.FinalizePsbtResponse"+instance Data.ProtoLens.Service.Types.HasMethodImpl WalletKit "listUnspent" where+ type MethodName WalletKit "listUnspent" = "ListUnspent"+ type MethodInput WalletKit "listUnspent" = ListUnspentRequest+ type MethodOutput WalletKit "listUnspent" = ListUnspentResponse+ type MethodStreamingType WalletKit "listUnspent" = 'Data.ProtoLens.Service.Types.NonStreaming+instance Data.ProtoLens.Service.Types.HasMethodImpl WalletKit "leaseOutput" where+ type MethodName WalletKit "leaseOutput" = "LeaseOutput"+ type MethodInput WalletKit "leaseOutput" = LeaseOutputRequest+ type MethodOutput WalletKit "leaseOutput" = LeaseOutputResponse+ type MethodStreamingType WalletKit "leaseOutput" = 'Data.ProtoLens.Service.Types.NonStreaming+instance Data.ProtoLens.Service.Types.HasMethodImpl WalletKit "releaseOutput" where+ type MethodName WalletKit "releaseOutput" = "ReleaseOutput"+ type MethodInput WalletKit "releaseOutput" = ReleaseOutputRequest+ type MethodOutput WalletKit "releaseOutput" = ReleaseOutputResponse+ type MethodStreamingType WalletKit "releaseOutput" = 'Data.ProtoLens.Service.Types.NonStreaming+instance Data.ProtoLens.Service.Types.HasMethodImpl WalletKit "listLeases" where+ type MethodName WalletKit "listLeases" = "ListLeases"+ type MethodInput WalletKit "listLeases" = ListLeasesRequest+ type MethodOutput WalletKit "listLeases" = ListLeasesResponse+ type MethodStreamingType WalletKit "listLeases" = 'Data.ProtoLens.Service.Types.NonStreaming+instance Data.ProtoLens.Service.Types.HasMethodImpl WalletKit "deriveNextKey" where+ type MethodName WalletKit "deriveNextKey" = "DeriveNextKey"+ type MethodInput WalletKit "deriveNextKey" = KeyReq+ type MethodOutput WalletKit "deriveNextKey" = Proto.Signrpc.Signer.KeyDescriptor+ type MethodStreamingType WalletKit "deriveNextKey" = 'Data.ProtoLens.Service.Types.NonStreaming+instance Data.ProtoLens.Service.Types.HasMethodImpl WalletKit "deriveKey" where+ type MethodName WalletKit "deriveKey" = "DeriveKey"+ type MethodInput WalletKit "deriveKey" = Proto.Signrpc.Signer.KeyLocator+ type MethodOutput WalletKit "deriveKey" = Proto.Signrpc.Signer.KeyDescriptor+ type MethodStreamingType WalletKit "deriveKey" = 'Data.ProtoLens.Service.Types.NonStreaming+instance Data.ProtoLens.Service.Types.HasMethodImpl WalletKit "nextAddr" where+ type MethodName WalletKit "nextAddr" = "NextAddr"+ type MethodInput WalletKit "nextAddr" = AddrRequest+ type MethodOutput WalletKit "nextAddr" = AddrResponse+ type MethodStreamingType WalletKit "nextAddr" = 'Data.ProtoLens.Service.Types.NonStreaming+instance Data.ProtoLens.Service.Types.HasMethodImpl WalletKit "listAccounts" where+ type MethodName WalletKit "listAccounts" = "ListAccounts"+ type MethodInput WalletKit "listAccounts" = ListAccountsRequest+ type MethodOutput WalletKit "listAccounts" = ListAccountsResponse+ type MethodStreamingType WalletKit "listAccounts" = 'Data.ProtoLens.Service.Types.NonStreaming+instance Data.ProtoLens.Service.Types.HasMethodImpl WalletKit "importAccount" where+ type MethodName WalletKit "importAccount" = "ImportAccount"+ type MethodInput WalletKit "importAccount" = ImportAccountRequest+ type MethodOutput WalletKit "importAccount" = ImportAccountResponse+ type MethodStreamingType WalletKit "importAccount" = 'Data.ProtoLens.Service.Types.NonStreaming+instance Data.ProtoLens.Service.Types.HasMethodImpl WalletKit "importPublicKey" where+ type MethodName WalletKit "importPublicKey" = "ImportPublicKey"+ type MethodInput WalletKit "importPublicKey" = ImportPublicKeyRequest+ type MethodOutput WalletKit "importPublicKey" = ImportPublicKeyResponse+ type MethodStreamingType WalletKit "importPublicKey" = 'Data.ProtoLens.Service.Types.NonStreaming+instance Data.ProtoLens.Service.Types.HasMethodImpl WalletKit "publishTransaction" where+ type MethodName WalletKit "publishTransaction" = "PublishTransaction"+ type MethodInput WalletKit "publishTransaction" = Transaction+ type MethodOutput WalletKit "publishTransaction" = PublishResponse+ type MethodStreamingType WalletKit "publishTransaction" = 'Data.ProtoLens.Service.Types.NonStreaming+instance Data.ProtoLens.Service.Types.HasMethodImpl WalletKit "sendOutputs" where+ type MethodName WalletKit "sendOutputs" = "SendOutputs"+ type MethodInput WalletKit "sendOutputs" = SendOutputsRequest+ type MethodOutput WalletKit "sendOutputs" = SendOutputsResponse+ type MethodStreamingType WalletKit "sendOutputs" = 'Data.ProtoLens.Service.Types.NonStreaming+instance Data.ProtoLens.Service.Types.HasMethodImpl WalletKit "estimateFee" where+ type MethodName WalletKit "estimateFee" = "EstimateFee"+ type MethodInput WalletKit "estimateFee" = EstimateFeeRequest+ type MethodOutput WalletKit "estimateFee" = EstimateFeeResponse+ type MethodStreamingType WalletKit "estimateFee" = 'Data.ProtoLens.Service.Types.NonStreaming+instance Data.ProtoLens.Service.Types.HasMethodImpl WalletKit "pendingSweeps" where+ type MethodName WalletKit "pendingSweeps" = "PendingSweeps"+ type MethodInput WalletKit "pendingSweeps" = PendingSweepsRequest+ type MethodOutput WalletKit "pendingSweeps" = PendingSweepsResponse+ type MethodStreamingType WalletKit "pendingSweeps" = 'Data.ProtoLens.Service.Types.NonStreaming+instance Data.ProtoLens.Service.Types.HasMethodImpl WalletKit "bumpFee" where+ type MethodName WalletKit "bumpFee" = "BumpFee"+ type MethodInput WalletKit "bumpFee" = BumpFeeRequest+ type MethodOutput WalletKit "bumpFee" = BumpFeeResponse+ type MethodStreamingType WalletKit "bumpFee" = 'Data.ProtoLens.Service.Types.NonStreaming+instance Data.ProtoLens.Service.Types.HasMethodImpl WalletKit "listSweeps" where+ type MethodName WalletKit "listSweeps" = "ListSweeps"+ type MethodInput WalletKit "listSweeps" = ListSweepsRequest+ type MethodOutput WalletKit "listSweeps" = ListSweepsResponse+ type MethodStreamingType WalletKit "listSweeps" = 'Data.ProtoLens.Service.Types.NonStreaming+instance Data.ProtoLens.Service.Types.HasMethodImpl WalletKit "labelTransaction" where+ type MethodName WalletKit "labelTransaction" = "LabelTransaction"+ type MethodInput WalletKit "labelTransaction" = LabelTransactionRequest+ type MethodOutput WalletKit "labelTransaction" = LabelTransactionResponse+ type MethodStreamingType WalletKit "labelTransaction" = 'Data.ProtoLens.Service.Types.NonStreaming+instance Data.ProtoLens.Service.Types.HasMethodImpl WalletKit "fundPsbt" where+ type MethodName WalletKit "fundPsbt" = "FundPsbt"+ type MethodInput WalletKit "fundPsbt" = FundPsbtRequest+ type MethodOutput WalletKit "fundPsbt" = FundPsbtResponse+ type MethodStreamingType WalletKit "fundPsbt" = 'Data.ProtoLens.Service.Types.NonStreaming+instance Data.ProtoLens.Service.Types.HasMethodImpl WalletKit "finalizePsbt" where+ type MethodName WalletKit "finalizePsbt" = "FinalizePsbt"+ type MethodInput WalletKit "finalizePsbt" = FinalizePsbtRequest+ type MethodOutput WalletKit "finalizePsbt" = FinalizePsbtResponse+ type MethodStreamingType WalletKit "finalizePsbt" = 'Data.ProtoLens.Service.Types.NonStreaming+packedFileDescriptor :: Data.ByteString.ByteString+packedFileDescriptor+ = "\n\+ \\EMwalletrpc/walletkit.proto\DC2\twalletrpc\SUB\SIlightning.proto\SUB\SIlnrpc/ln0.proto\SUB\DC4signrpc/signer.proto\"h\n\+ \\DC2ListUnspentRequest\DC2\ESC\n\+ \\tmin_confs\CAN\SOH \SOH(\ENQR\bminConfs\DC2\ESC\n\+ \\tmax_confs\CAN\STX \SOH(\ENQR\bmaxConfs\DC2\CAN\n\+ \\aaccount\CAN\ETX \SOH(\tR\aaccount\"8\n\+ \\DC3ListUnspentResponse\DC2!\n\+ \\ENQutxos\CAN\SOH \ETX(\v2\v.lnrpc.UtxoR\ENQutxos\"\128\SOH\n\+ \\DC2LeaseOutputRequest\DC2\SO\n\+ \\STXid\CAN\SOH \SOH(\fR\STXid\DC2+\n\+ \\boutpoint\CAN\STX \SOH(\v2\SI.lnrpc.OutPointR\boutpoint\DC2-\n\+ \\DC2expiration_seconds\CAN\ETX \SOH(\EOTR\DC1expirationSeconds\"5\n\+ \\DC3LeaseOutputResponse\DC2\RS\n\+ \\n\+ \expiration\CAN\SOH \SOH(\EOTR\n\+ \expiration\"S\n\+ \\DC4ReleaseOutputRequest\DC2\SO\n\+ \\STXid\CAN\SOH \SOH(\fR\STXid\DC2+\n\+ \\boutpoint\CAN\STX \SOH(\v2\SI.lnrpc.OutPointR\boutpoint\"\ETB\n\+ \\NAKReleaseOutputResponse\"Q\n\+ \\ACKKeyReq\DC2(\n\+ \\DLEkey_finger_print\CAN\SOH \SOH(\ENQR\SOkeyFingerPrint\DC2\GS\n\+ \\n\+ \key_family\CAN\STX \SOH(\ENQR\tkeyFamily\"k\n\+ \\vAddrRequest\DC2\CAN\n\+ \\aaccount\CAN\SOH \SOH(\tR\aaccount\DC2*\n\+ \\EOTtype\CAN\STX \SOH(\SO2\SYN.walletrpc.AddressTypeR\EOTtype\DC2\SYN\n\+ \\ACKchange\CAN\ETX \SOH(\bR\ACKchange\"\"\n\+ \\fAddrResponse\DC2\DC2\n\+ \\EOTaddr\CAN\SOH \SOH(\tR\EOTaddr\"\226\STX\n\+ \\aAccount\DC2\DC2\n\+ \\EOTname\CAN\SOH \SOH(\tR\EOTname\DC29\n\+ \\faddress_type\CAN\STX \SOH(\SO2\SYN.walletrpc.AddressTypeR\vaddressType\DC2.\n\+ \\DC3extended_public_key\CAN\ETX \SOH(\tR\DC1extendedPublicKey\DC24\n\+ \\SYNmaster_key_fingerprint\CAN\EOT \SOH(\fR\DC4masterKeyFingerprint\DC2'\n\+ \\SIderivation_path\CAN\ENQ \SOH(\tR\SOderivationPath\DC2,\n\+ \\DC2external_key_count\CAN\ACK \SOH(\rR\DLEexternalKeyCount\DC2,\n\+ \\DC2internal_key_count\CAN\a \SOH(\rR\DLEinternalKeyCount\DC2\GS\n\+ \\n\+ \watch_only\CAN\b \SOH(\bR\twatchOnly\"d\n\+ \\DC3ListAccountsRequest\DC2\DC2\n\+ \\EOTname\CAN\SOH \SOH(\tR\EOTname\DC29\n\+ \\faddress_type\CAN\STX \SOH(\SO2\SYN.walletrpc.AddressTypeR\vaddressType\"F\n\+ \\DC4ListAccountsResponse\DC2.\n\+ \\baccounts\CAN\SOH \ETX(\v2\DC2.walletrpc.AccountR\baccounts\"\228\SOH\n\+ \\DC4ImportAccountRequest\DC2\DC2\n\+ \\EOTname\CAN\SOH \SOH(\tR\EOTname\DC2.\n\+ \\DC3extended_public_key\CAN\STX \SOH(\tR\DC1extendedPublicKey\DC24\n\+ \\SYNmaster_key_fingerprint\CAN\ETX \SOH(\fR\DC4masterKeyFingerprint\DC29\n\+ \\faddress_type\CAN\EOT \SOH(\SO2\SYN.walletrpc.AddressTypeR\vaddressType\DC2\ETB\n\+ \\adry_run\CAN\ENQ \SOH(\bR\ACKdryRun\"\175\SOH\n\+ \\NAKImportAccountResponse\DC2,\n\+ \\aaccount\CAN\SOH \SOH(\v2\DC2.walletrpc.AccountR\aaccount\DC23\n\+ \\SYNdry_run_external_addrs\CAN\STX \ETX(\tR\DC3dryRunExternalAddrs\DC23\n\+ \\SYNdry_run_internal_addrs\CAN\ETX \ETX(\tR\DC3dryRunInternalAddrs\"r\n\+ \\SYNImportPublicKeyRequest\DC2\GS\n\+ \\n\+ \public_key\CAN\SOH \SOH(\fR\tpublicKey\DC29\n\+ \\faddress_type\CAN\STX \SOH(\SO2\SYN.walletrpc.AddressTypeR\vaddressType\"\EM\n\+ \\ETBImportPublicKeyResponse\":\n\+ \\vTransaction\DC2\NAK\n\+ \\ACKtx_hex\CAN\SOH \SOH(\fR\ENQtxHex\DC2\DC4\n\+ \\ENQlabel\CAN\STX \SOH(\tR\ENQlabel\"6\n\+ \\SIPublishResponse\DC2#\n\+ \\rpublish_error\CAN\SOH \SOH(\tR\fpublishError\"\188\SOH\n\+ \\DC2SendOutputsRequest\DC2\FS\n\+ \\n\+ \sat_per_kw\CAN\SOH \SOH(\ETXR\bsatPerKw\DC2(\n\+ \\aoutputs\CAN\STX \ETX(\v2\SO.signrpc.TxOutR\aoutputs\DC2\DC4\n\+ \\ENQlabel\CAN\ETX \SOH(\tR\ENQlabel\DC2\ESC\n\+ \\tmin_confs\CAN\EOT \SOH(\ENQR\bminConfs\DC2+\n\+ \\DC1spend_unconfirmed\CAN\ENQ \SOH(\bR\DLEspendUnconfirmed\",\n\+ \\DC3SendOutputsResponse\DC2\NAK\n\+ \\ACKraw_tx\CAN\SOH \SOH(\fR\ENQrawTx\"5\n\+ \\DC2EstimateFeeRequest\DC2\US\n\+ \\vconf_target\CAN\SOH \SOH(\ENQR\n\+ \confTarget\"3\n\+ \\DC3EstimateFeeResponse\DC2\FS\n\+ \\n\+ \sat_per_kw\CAN\SOH \SOH(\ETXR\bsatPerKw\"\252\ETX\n\+ \\fPendingSweep\DC2+\n\+ \\boutpoint\CAN\SOH \SOH(\v2\SI.lnrpc.OutPointR\boutpoint\DC29\n\+ \\fwitness_type\CAN\STX \SOH(\SO2\SYN.walletrpc.WitnessTypeR\vwitnessType\DC2\GS\n\+ \\n\+ \amount_sat\CAN\ETX \SOH(\rR\tamountSat\DC2$\n\+ \\fsat_per_byte\CAN\EOT \SOH(\rR\n\+ \satPerByteB\STX\CAN\SOH\DC2-\n\+ \\DC2broadcast_attempts\CAN\ENQ \SOH(\rR\DC1broadcastAttempts\DC22\n\+ \\NAKnext_broadcast_height\CAN\ACK \SOH(\rR\DC3nextBroadcastHeight\DC22\n\+ \\NAKrequested_conf_target\CAN\b \SOH(\rR\DC3requestedConfTarget\DC27\n\+ \\SYNrequested_sat_per_byte\CAN\t \SOH(\rR\DC3requestedSatPerByteB\STX\CAN\SOH\DC2\"\n\+ \\rsat_per_vbyte\CAN\n\+ \ \SOH(\EOTR\vsatPerVbyte\DC25\n\+ \\ETBrequested_sat_per_vbyte\CAN\v \SOH(\EOTR\DC4requestedSatPerVbyte\DC2\DC4\n\+ \\ENQforce\CAN\a \SOH(\bR\ENQforce\"\SYN\n\+ \\DC4PendingSweepsRequest\"W\n\+ \\NAKPendingSweepsResponse\DC2>\n\+ \\SOpending_sweeps\CAN\SOH \ETX(\v2\ETB.walletrpc.PendingSweepR\rpendingSweeps\"\190\SOH\n\+ \\SOBumpFeeRequest\DC2+\n\+ \\boutpoint\CAN\SOH \SOH(\v2\SI.lnrpc.OutPointR\boutpoint\DC2\US\n\+ \\vtarget_conf\CAN\STX \SOH(\rR\n\+ \targetConf\DC2$\n\+ \\fsat_per_byte\CAN\ETX \SOH(\rR\n\+ \satPerByteB\STX\CAN\SOH\DC2\DC4\n\+ \\ENQforce\CAN\EOT \SOH(\bR\ENQforce\DC2\"\n\+ \\rsat_per_vbyte\CAN\ENQ \SOH(\EOTR\vsatPerVbyte\"\DC1\n\+ \\SIBumpFeeResponse\"-\n\+ \\DC1ListSweepsRequest\DC2\CAN\n\+ \\averbose\CAN\SOH \SOH(\bR\averbose\"\128\STX\n\+ \\DC2ListSweepsResponse\DC2L\n\+ \\DC3transaction_details\CAN\SOH \SOH(\v2\EM.lnrpc.TransactionDetailsH\NULR\DC2transactionDetails\DC2W\n\+ \\SItransaction_ids\CAN\STX \SOH(\v2,.walletrpc.ListSweepsResponse.TransactionIDsH\NULR\SOtransactionIds\SUB9\n\+ \\SOTransactionIDs\DC2'\n\+ \\SItransaction_ids\CAN\SOH \ETX(\tR\SOtransactionIdsB\b\n\+ \\ACKsweeps\"a\n\+ \\ETBLabelTransactionRequest\DC2\DC2\n\+ \\EOTtxid\CAN\SOH \SOH(\fR\EOTtxid\DC2\DC4\n\+ \\ENQlabel\CAN\STX \SOH(\tR\ENQlabel\DC2\FS\n\+ \\toverwrite\CAN\ETX \SOH(\bR\toverwrite\"\SUB\n\+ \\CANLabelTransactionResponse\"\147\STX\n\+ \\SIFundPsbtRequest\DC2\DC4\n\+ \\EOTpsbt\CAN\SOH \SOH(\fH\NULR\EOTpsbt\DC2)\n\+ \\ETXraw\CAN\STX \SOH(\v2\NAK.walletrpc.TxTemplateH\NULR\ETXraw\DC2!\n\+ \\vtarget_conf\CAN\ETX \SOH(\rH\SOHR\n\+ \targetConf\DC2$\n\+ \\rsat_per_vbyte\CAN\EOT \SOH(\EOTH\SOHR\vsatPerVbyte\DC2\CAN\n\+ \\aaccount\CAN\ENQ \SOH(\tR\aaccount\DC2\ESC\n\+ \\tmin_confs\CAN\ACK \SOH(\ENQR\bminConfs\DC2+\n\+ \\DC1spend_unconfirmed\CAN\a \SOH(\bR\DLEspendUnconfirmedB\n\+ \\n\+ \\btemplateB\ACK\n\+ \\EOTfees\"\156\SOH\n\+ \\DLEFundPsbtResponse\DC2\US\n\+ \\vfunded_psbt\CAN\SOH \SOH(\fR\n\+ \fundedPsbt\DC2.\n\+ \\DC3change_output_index\CAN\STX \SOH(\ENQR\DC1changeOutputIndex\DC27\n\+ \\flocked_utxos\CAN\ETX \ETX(\v2\DC4.walletrpc.UtxoLeaseR\vlockedUtxos\"\175\SOH\n\+ \\n\+ \TxTemplate\DC2'\n\+ \\ACKinputs\CAN\SOH \ETX(\v2\SI.lnrpc.OutPointR\ACKinputs\DC2<\n\+ \\aoutputs\CAN\STX \ETX(\v2\".walletrpc.TxTemplate.OutputsEntryR\aoutputs\SUB:\n\+ \\fOutputsEntry\DC2\DLE\n\+ \\ETXkey\CAN\SOH \SOH(\tR\ETXkey\DC2\DC4\n\+ \\ENQvalue\CAN\STX \SOH(\EOTR\ENQvalue:\STX8\SOH\"h\n\+ \\tUtxoLease\DC2\SO\n\+ \\STXid\CAN\SOH \SOH(\fR\STXid\DC2+\n\+ \\boutpoint\CAN\STX \SOH(\v2\SI.lnrpc.OutPointR\boutpoint\DC2\RS\n\+ \\n\+ \expiration\CAN\ETX \SOH(\EOTR\n\+ \expiration\"P\n\+ \\DC3FinalizePsbtRequest\DC2\US\n\+ \\vfunded_psbt\CAN\SOH \SOH(\fR\n\+ \fundedPsbt\DC2\CAN\n\+ \\aaccount\CAN\ENQ \SOH(\tR\aaccount\"Y\n\+ \\DC4FinalizePsbtResponse\DC2\US\n\+ \\vsigned_psbt\CAN\SOH \SOH(\fR\n\+ \signedPsbt\DC2 \n\+ \\fraw_final_tx\CAN\STX \SOH(\fR\n\+ \rawFinalTx\"\DC3\n\+ \\DC1ListLeasesRequest\"M\n\+ \\DC2ListLeasesResponse\DC27\n\+ \\flocked_utxos\CAN\SOH \ETX(\v2\DC4.walletrpc.UtxoLeaseR\vlockedUtxos*z\n\+ \\vAddressType\DC2\v\n\+ \\aUNKNOWN\DLE\NUL\DC2\ETB\n\+ \\DC3WITNESS_PUBKEY_HASH\DLE\SOH\DC2\RS\n\+ \\SUBNESTED_WITNESS_PUBKEY_HASH\DLE\STX\DC2%\n\+ \!HYBRID_NESTED_WITNESS_PUBKEY_HASH\DLE\ETX*\153\ETX\n\+ \\vWitnessType\DC2\DC3\n\+ \\SIUNKNOWN_WITNESS\DLE\NUL\DC2\CAN\n\+ \\DC4COMMITMENT_TIME_LOCK\DLE\SOH\DC2\ETB\n\+ \\DC3COMMITMENT_NO_DELAY\DLE\STX\DC2\NAK\n\+ \\DC1COMMITMENT_REVOKE\DLE\ETX\DC2\ETB\n\+ \\DC3HTLC_OFFERED_REVOKE\DLE\EOT\DC2\CAN\n\+ \\DC4HTLC_ACCEPTED_REVOKE\DLE\ENQ\DC2%\n\+ \!HTLC_OFFERED_TIMEOUT_SECOND_LEVEL\DLE\ACK\DC2&\n\+ \\"HTLC_ACCEPTED_SUCCESS_SECOND_LEVEL\DLE\a\DC2\US\n\+ \\ESCHTLC_OFFERED_REMOTE_TIMEOUT\DLE\b\DC2 \n\+ \\FSHTLC_ACCEPTED_REMOTE_SUCCESS\DLE\t\DC2\FS\n\+ \\CANHTLC_SECOND_LEVEL_REVOKE\DLE\n\+ \\DC2\DC4\n\+ \\DLEWITNESS_KEY_HASH\DLE\v\DC2\ESC\n\+ \\ETBNESTED_WITNESS_KEY_HASH\DLE\f\DC2\NAK\n\+ \\DC1COMMITMENT_ANCHOR\DLE\r2\178\v\n\+ \\tWalletKit\DC2L\n\+ \\vListUnspent\DC2\GS.walletrpc.ListUnspentRequest\SUB\RS.walletrpc.ListUnspentResponse\DC2L\n\+ \\vLeaseOutput\DC2\GS.walletrpc.LeaseOutputRequest\SUB\RS.walletrpc.LeaseOutputResponse\DC2R\n\+ \\rReleaseOutput\DC2\US.walletrpc.ReleaseOutputRequest\SUB .walletrpc.ReleaseOutputResponse\DC2I\n\+ \\n\+ \ListLeases\DC2\FS.walletrpc.ListLeasesRequest\SUB\GS.walletrpc.ListLeasesResponse\DC2:\n\+ \\rDeriveNextKey\DC2\DC1.walletrpc.KeyReq\SUB\SYN.signrpc.KeyDescriptor\DC28\n\+ \\tDeriveKey\DC2\DC3.signrpc.KeyLocator\SUB\SYN.signrpc.KeyDescriptor\DC2;\n\+ \\bNextAddr\DC2\SYN.walletrpc.AddrRequest\SUB\ETB.walletrpc.AddrResponse\DC2O\n\+ \\fListAccounts\DC2\RS.walletrpc.ListAccountsRequest\SUB\US.walletrpc.ListAccountsResponse\DC2R\n\+ \\rImportAccount\DC2\US.walletrpc.ImportAccountRequest\SUB .walletrpc.ImportAccountResponse\DC2X\n\+ \\SIImportPublicKey\DC2!.walletrpc.ImportPublicKeyRequest\SUB\".walletrpc.ImportPublicKeyResponse\DC2H\n\+ \\DC2PublishTransaction\DC2\SYN.walletrpc.Transaction\SUB\SUB.walletrpc.PublishResponse\DC2L\n\+ \\vSendOutputs\DC2\GS.walletrpc.SendOutputsRequest\SUB\RS.walletrpc.SendOutputsResponse\DC2L\n\+ \\vEstimateFee\DC2\GS.walletrpc.EstimateFeeRequest\SUB\RS.walletrpc.EstimateFeeResponse\DC2R\n\+ \\rPendingSweeps\DC2\US.walletrpc.PendingSweepsRequest\SUB .walletrpc.PendingSweepsResponse\DC2@\n\+ \\aBumpFee\DC2\EM.walletrpc.BumpFeeRequest\SUB\SUB.walletrpc.BumpFeeResponse\DC2I\n\+ \\n\+ \ListSweeps\DC2\FS.walletrpc.ListSweepsRequest\SUB\GS.walletrpc.ListSweepsResponse\DC2[\n\+ \\DLELabelTransaction\DC2\".walletrpc.LabelTransactionRequest\SUB#.walletrpc.LabelTransactionResponse\DC2C\n\+ \\bFundPsbt\DC2\SUB.walletrpc.FundPsbtRequest\SUB\ESC.walletrpc.FundPsbtResponse\DC2O\n\+ \\fFinalizePsbt\DC2\RS.walletrpc.FinalizePsbtRequest\SUB\US.walletrpc.FinalizePsbtResponseB1Z/github.com/lightningnetwork/lnd/lnrpc/walletrpcJ\195\222\SOH\n\+ \\a\DC2\ENQ\NUL\NUL\211\ACK\SOH\n\+ \\b\n\+ \\SOH\f\DC2\ETX\NUL\NUL\DC2\n\+ \\t\n\+ \\STX\ETX\NUL\DC2\ETX\STX\NUL\EM\n\+ \\t\n\+ \\STX\ETX\SOH\DC2\ETX\ETX\NUL\EM\n\+ \\t\n\+ \\STX\ETX\STX\DC2\ETX\EOT\NUL\RS\n\+ \\b\n\+ \\SOH\STX\DC2\ETX\ACK\NUL\DC2\n\+ \\b\n\+ \\SOH\b\DC2\ETX\b\NULF\n\+ \\t\n\+ \\STX\b\v\DC2\ETX\b\NULF\n\+ \l\n\+ \\STX\ACK\NUL\DC2\ENQ\f\NUL\217\SOH\SOH\SUB_ WalletKit is a service that gives access to the core functionalities of the\n\+ \ daemon's wallet.\n\+ \\n\+ \\n\+ \\n\+ \\ETX\ACK\NUL\SOH\DC2\ETX\f\b\DC1\n\+ \\153\SOH\n\+ \\EOT\ACK\NUL\STX\NUL\DC2\ETX\DC1\EOTG\SUB\139\SOH\n\+ \ListUnspent returns a list of all utxos spendable by the wallet with a\n\+ \number of confirmations between the specified minimum and maximum.\n\+ \\n\+ \\f\n\+ \\ENQ\ACK\NUL\STX\NUL\SOH\DC2\ETX\DC1\b\DC3\n\+ \\f\n\+ \\ENQ\ACK\NUL\STX\NUL\STX\DC2\ETX\DC1\NAK'\n\+ \\f\n\+ \\ENQ\ACK\NUL\STX\NUL\ETX\DC2\ETX\DC12E\n\+ \\218\STX\n\+ \\EOT\ACK\NUL\STX\SOH\DC2\ETX\SUB\EOTG\SUB\204\STX\n\+ \LeaseOutput locks an output to the given ID, preventing it from being\n\+ \available for any future coin selection attempts. The absolute time of the\n\+ \lock's expiration is returned. The expiration of the lock can be extended by\n\+ \successive invocations of this RPC. Outputs can be unlocked before their\n\+ \expiration through `ReleaseOutput`.\n\+ \\n\+ \\f\n\+ \\ENQ\ACK\NUL\STX\SOH\SOH\DC2\ETX\SUB\b\DC3\n\+ \\f\n\+ \\ENQ\ACK\NUL\STX\SOH\STX\DC2\ETX\SUB\NAK'\n\+ \\f\n\+ \\ENQ\ACK\NUL\STX\SOH\ETX\DC2\ETX\SUB2E\n\+ \\182\SOH\n\+ \\EOT\ACK\NUL\STX\STX\DC2\ETX!\EOTM\SUB\168\SOH\n\+ \ReleaseOutput unlocks an output, allowing it to be available for coin\n\+ \selection if it remains unspent. The ID should match the one used to\n\+ \originally lock the output.\n\+ \\n\+ \\f\n\+ \\ENQ\ACK\NUL\STX\STX\SOH\DC2\ETX!\b\NAK\n\+ \\f\n\+ \\ENQ\ACK\NUL\STX\STX\STX\DC2\ETX!\ETB+\n\+ \\f\n\+ \\ENQ\ACK\NUL\STX\STX\ETX\DC2\ETX!6K\n\+ \;\n\+ \\EOT\ACK\NUL\STX\ETX\DC2\ETX&\EOTD\SUB.\n\+ \ListLeases lists all currently locked utxos.\n\+ \\n\+ \\f\n\+ \\ENQ\ACK\NUL\STX\ETX\SOH\DC2\ETX&\b\DC2\n\+ \\f\n\+ \\ENQ\ACK\NUL\STX\ETX\STX\DC2\ETX&\DC4%\n\+ \\f\n\+ \\ENQ\ACK\NUL\STX\ETX\ETX\DC2\ETX&0B\n\+ \\185\SOH\n\+ \\EOT\ACK\NUL\STX\EOT\DC2\ETX-\EOT?\SUB\171\SOH\n\+ \DeriveNextKey attempts to derive the *next* key within the key family\n\+ \(account in BIP43) specified. This method should return the next external\n\+ \child within this branch.\n\+ \\n\+ \\f\n\+ \\ENQ\ACK\NUL\STX\EOT\SOH\DC2\ETX-\b\NAK\n\+ \\f\n\+ \\ENQ\ACK\NUL\STX\EOT\STX\DC2\ETX-\ETB\GS\n\+ \\f\n\+ \\ENQ\ACK\NUL\STX\EOT\ETX\DC2\ETX-(=\n\+ \`\n\+ \\EOT\ACK\NUL\STX\ENQ\DC2\ETX3\EOTG\SUBS\n\+ \DeriveKey attempts to derive an arbitrary key specified by the passed\n\+ \KeyLocator.\n\+ \\n\+ \\f\n\+ \\ENQ\ACK\NUL\STX\ENQ\SOH\DC2\ETX3\b\DC1\n\+ \\f\n\+ \\ENQ\ACK\NUL\STX\ENQ\STX\DC2\ETX3\DC3%\n\+ \\f\n\+ \\ENQ\ACK\NUL\STX\ENQ\ETX\DC2\ETX30E\n\+ \J\n\+ \\EOT\ACK\NUL\STX\ACK\DC2\ETX8\EOT6\SUB=\n\+ \NextAddr returns the next unused address within the wallet.\n\+ \\n\+ \\f\n\+ \\ENQ\ACK\NUL\STX\ACK\SOH\DC2\ETX8\b\DLE\n\+ \\f\n\+ \\ENQ\ACK\NUL\STX\ACK\STX\DC2\ETX8\DC2\GS\n\+ \\f\n\+ \\ENQ\ACK\NUL\STX\ACK\ETX\DC2\ETX8(4\n\+ \\208\SOH\n\+ \\EOT\ACK\NUL\STX\a\DC2\ETX?\EOTJ\SUB\194\SOH\n\+ \ListAccounts retrieves all accounts belonging to the wallet by default. A\n\+ \name and key scope filter can be provided to filter through all of the\n\+ \wallet accounts and return only those matching.\n\+ \\n\+ \\f\n\+ \\ENQ\ACK\NUL\STX\a\SOH\DC2\ETX?\b\DC4\n\+ \\f\n\+ \\ENQ\ACK\NUL\STX\a\STX\DC2\ETX?\SYN)\n\+ \\f\n\+ \\ENQ\ACK\NUL\STX\a\ETX\DC2\ETX?4H\n\+ \\226\t\n\+ \\EOT\ACK\NUL\STX\b\DC2\ETXZ\EOTM\SUB\212\t\n\+ \ImportAccount imports an account backed by an account extended public key.\n\+ \The master key fingerprint denotes the fingerprint of the root key\n\+ \corresponding to the account public key (also known as the key with\n\+ \derivation path m/). This may be required by some hardware wallets for\n\+ \proper identification and signing.\n\+ \\n\+ \The address type can usually be inferred from the key's version, but may be\n\+ \required for certain keys to map them into the proper scope.\n\+ \\n\+ \For BIP-0044 keys, an address type must be specified as we intend to not\n\+ \support importing BIP-0044 keys into the wallet using the legacy\n\+ \pay-to-pubkey-hash (P2PKH) scheme. A nested witness address type will force\n\+ \the standard BIP-0049 derivation scheme, while a witness address type will\n\+ \force the standard BIP-0084 derivation scheme.\n\+ \\n\+ \For BIP-0049 keys, an address type must also be specified to make a\n\+ \distinction between the standard BIP-0049 address schema (nested witness\n\+ \pubkeys everywhere) and our own BIP-0049Plus address schema (nested pubkeys\n\+ \externally, witness pubkeys internally).\n\+ \\n\+ \NOTE: Events (deposits/spends) for keys derived from an account will only be\n\+ \detected by lnd if they happen after the import. Rescans to detect past\n\+ \events will be supported later on.\n\+ \\n\+ \\f\n\+ \\ENQ\ACK\NUL\STX\b\SOH\DC2\ETXZ\b\NAK\n\+ \\f\n\+ \\ENQ\ACK\NUL\STX\b\STX\DC2\ETXZ\ETB+\n\+ \\f\n\+ \\ENQ\ACK\NUL\STX\b\ETX\DC2\ETXZ6K\n\+ \\246\SOH\n\+ \\EOT\ACK\NUL\STX\t\DC2\EOTc\EOTd*\SUB\231\SOH\n\+ \ImportPublicKey imports a public key as watch-only into the wallet.\n\+ \\n\+ \NOTE: Events (deposits/spends) for a key will only be detected by lnd if\n\+ \they happen after the import. Rescans to detect past events will be\n\+ \supported later on.\n\+ \\n\+ \\f\n\+ \\ENQ\ACK\NUL\STX\t\SOH\DC2\ETXc\b\ETB\n\+ \\f\n\+ \\ENQ\ACK\NUL\STX\t\STX\DC2\ETXc\EM/\n\+ \\f\n\+ \\ENQ\ACK\NUL\STX\t\ETX\DC2\ETXd\DC1(\n\+ \\237\SOH\n\+ \\EOT\ACK\NUL\STX\n\+ \\DC2\ETXl\EOTC\SUB\223\SOH\n\+ \PublishTransaction attempts to publish the passed transaction to the\n\+ \network. Once this returns without an error, the wallet will continually\n\+ \attempt to re-broadcast the transaction on start up, until it enters the\n\+ \chain.\n\+ \\n\+ \\f\n\+ \\ENQ\ACK\NUL\STX\n\+ \\SOH\DC2\ETXl\b\SUB\n\+ \\f\n\+ \\ENQ\ACK\NUL\STX\n\+ \\STX\DC2\ETXl\FS'\n\+ \\f\n\+ \\ENQ\ACK\NUL\STX\n\+ \\ETX\DC2\ETXl2A\n\+ \\232\SOH\n\+ \\EOT\ACK\NUL\STX\v\DC2\ETXs\EOTG\SUB\218\SOH\n\+ \SendOutputs is similar to the existing sendmany call in Bitcoind, and\n\+ \allows the caller to create a transaction that sends to several outputs at\n\+ \once. This is ideal when wanting to batch create a set of transactions.\n\+ \\n\+ \\f\n\+ \\ENQ\ACK\NUL\STX\v\SOH\DC2\ETXs\b\DC3\n\+ \\f\n\+ \\ENQ\ACK\NUL\STX\v\STX\DC2\ETXs\NAK'\n\+ \\f\n\+ \\ENQ\ACK\NUL\STX\v\ETX\DC2\ETXs2E\n\+ \\191\SOH\n\+ \\EOT\ACK\NUL\STX\f\DC2\ETXz\EOTG\SUB\177\SOH\n\+ \EstimateFee attempts to query the internal fee estimator of the wallet to\n\+ \determine the fee (in sat/kw) to attach to a transaction in order to\n\+ \achieve the confirmation target.\n\+ \\n\+ \\f\n\+ \\ENQ\ACK\NUL\STX\f\SOH\DC2\ETXz\b\DC3\n\+ \\f\n\+ \\ENQ\ACK\NUL\STX\f\STX\DC2\ETXz\NAK'\n\+ \\f\n\+ \\ENQ\ACK\NUL\STX\f\ETX\DC2\ETXz2E\n\+ \\180\ETX\n\+ \\EOT\ACK\NUL\STX\r\DC2\EOT\134\SOH\EOTM\SUB\165\ETX\n\+ \PendingSweeps returns lists of on-chain outputs that lnd is currently\n\+ \attempting to sweep within its central batching engine. Outputs with similar\n\+ \fee rates are batched together in order to sweep them within a single\n\+ \transaction.\n\+ \\n\+ \NOTE: Some of the fields within PendingSweepsRequest are not guaranteed to\n\+ \remain supported. This is an advanced API that depends on the internals of\n\+ \the UtxoSweeper, so things may change.\n\+ \\n\+ \\r\n\+ \\ENQ\ACK\NUL\STX\r\SOH\DC2\EOT\134\SOH\b\NAK\n\+ \\r\n\+ \\ENQ\ACK\NUL\STX\r\STX\DC2\EOT\134\SOH\ETB+\n\+ \\r\n\+ \\ENQ\ACK\NUL\STX\r\ETX\DC2\EOT\134\SOH6K\n\+ \\177\v\n\+ \\EOT\ACK\NUL\STX\SO\DC2\EOT\163\SOH\EOT;\SUB\162\v\n\+ \BumpFee bumps the fee of an arbitrary input within a transaction. This RPC\n\+ \takes a different approach than bitcoind's bumpfee command. lnd has a\n\+ \central batching engine in which inputs with similar fee rates are batched\n\+ \together to save on transaction fees. Due to this, we cannot rely on\n\+ \bumping the fee on a specific transaction, since transactions can change at\n\+ \any point with the addition of new inputs. The list of inputs that\n\+ \currently exist within lnd's central batching engine can be retrieved\n\+ \through the PendingSweeps RPC.\n\+ \\n\+ \When bumping the fee of an input that currently exists within lnd's central\n\+ \batching engine, a higher fee transaction will be created that replaces the\n\+ \lower fee transaction through the Replace-By-Fee (RBF) policy. If it\n\+ \\n\+ \This RPC also serves useful when wanting to perform a Child-Pays-For-Parent\n\+ \(CPFP), where the child transaction pays for its parent's fee. This can be\n\+ \done by specifying an outpoint within the low fee transaction that is under\n\+ \the control of the wallet.\n\+ \\n\+ \The fee preference can be expressed either as a specific fee rate or a delta\n\+ \of blocks in which the output should be swept on-chain within. If a fee\n\+ \preference is not explicitly specified, then an error is returned.\n\+ \\n\+ \Note that this RPC currently doesn't perform any validation checks on the\n\+ \fee preference being provided. For now, the responsibility of ensuring that\n\+ \the new fee preference is sufficient is delegated to the user.\n\+ \\n\+ \\r\n\+ \\ENQ\ACK\NUL\STX\SO\SOH\DC2\EOT\163\SOH\b\SI\n\+ \\r\n\+ \\ENQ\ACK\NUL\STX\SO\STX\DC2\EOT\163\SOH\DC1\US\n\+ \\r\n\+ \\ENQ\ACK\NUL\STX\SO\ETX\DC2\EOT\163\SOH*9\n\+ \\192\SOH\n\+ \\EOT\ACK\NUL\STX\SI\DC2\EOT\170\SOH\EOTD\SUB\177\SOH\n\+ \ListSweeps returns a list of the sweep transactions our node has produced.\n\+ \Note that these sweeps may not be confirmed yet, as we record sweeps on\n\+ \broadcast, not confirmation.\n\+ \\n\+ \\r\n\+ \\ENQ\ACK\NUL\STX\SI\SOH\DC2\EOT\170\SOH\b\DC2\n\+ \\r\n\+ \\ENQ\ACK\NUL\STX\SI\STX\DC2\EOT\170\SOH\DC4%\n\+ \\r\n\+ \\ENQ\ACK\NUL\STX\SI\ETX\DC2\EOT\170\SOH0B\n\+ \\141\STX\n\+ \\EOT\ACK\NUL\STX\DLE\DC2\ACK\178\SOH\EOT\179\SOH+\SUB\252\SOH\n\+ \LabelTransaction adds a label to a transaction. If the transaction already\n\+ \has a label the call will fail unless the overwrite bool is set. This will\n\+ \overwrite the exiting transaction label. Labels must not be empty, and\n\+ \cannot exceed 500 characters.\n\+ \\n\+ \\r\n\+ \\ENQ\ACK\NUL\STX\DLE\SOH\DC2\EOT\178\SOH\b\CAN\n\+ \\r\n\+ \\ENQ\ACK\NUL\STX\DLE\STX\DC2\EOT\178\SOH\SUB1\n\+ \\r\n\+ \\ENQ\ACK\NUL\STX\DLE\ETX\DC2\EOT\179\SOH\DC1)\n\+ \\196\a\n\+ \\EOT\ACK\NUL\STX\DC1\DC2\EOT\201\SOH\EOT>\SUB\181\a\n\+ \FundPsbt creates a fully populated PSBT that contains enough inputs to fund\n\+ \the outputs specified in the template. There are two ways of specifying a\n\+ \template: Either by passing in a PSBT with at least one output declared or\n\+ \by passing in a raw TxTemplate message.\n\+ \\n\+ \If there are no inputs specified in the template, coin selection is\n\+ \performed automatically. If the template does contain any inputs, it is\n\+ \assumed that full coin selection happened externally and no additional\n\+ \inputs are added. If the specified inputs aren't enough to fund the outputs\n\+ \with the given fee rate, an error is returned.\n\+ \\n\+ \After either selecting or verifying the inputs, all input UTXOs are locked\n\+ \with an internal app ID.\n\+ \\n\+ \NOTE: If this method returns without an error, it is the caller's\n\+ \responsibility to either spend the locked UTXOs (by finalizing and then\n\+ \publishing the transaction) or to unlock/release the locked UTXOs in case of\n\+ \an error on the caller's side.\n\+ \\n\+ \\r\n\+ \\ENQ\ACK\NUL\STX\DC1\SOH\DC2\EOT\201\SOH\b\DLE\n\+ \\r\n\+ \\ENQ\ACK\NUL\STX\DC1\STX\DC2\EOT\201\SOH\DC2!\n\+ \\r\n\+ \\ENQ\ACK\NUL\STX\DC1\ETX\DC2\EOT\201\SOH,<\n\+ \\203\ENQ\n\+ \\EOT\ACK\NUL\STX\DC2\DC2\EOT\216\SOH\EOTJ\SUB\188\ENQ\n\+ \FinalizePsbt expects a partial transaction with all inputs and outputs fully\n\+ \declared and tries to sign all inputs that belong to the wallet. Lnd must be\n\+ \the last signer of the transaction. That means, if there are any unsigned\n\+ \non-witness inputs or inputs without UTXO information attached or inputs\n\+ \without witness data that do not belong to lnd's wallet, this method will\n\+ \fail. If no error is returned, the PSBT is ready to be extracted and the\n\+ \final TX within to be broadcast.\n\+ \\n\+ \NOTE: This method does NOT publish the transaction once finalized. It is the\n\+ \caller's responsibility to either publish the transaction on success or\n\+ \unlock/release any locked UTXOs in case of an error in this method.\n\+ \\n\+ \\r\n\+ \\ENQ\ACK\NUL\STX\DC2\SOH\DC2\EOT\216\SOH\b\DC4\n\+ \\r\n\+ \\ENQ\ACK\NUL\STX\DC2\STX\DC2\EOT\216\SOH\SYN)\n\+ \\r\n\+ \\ENQ\ACK\NUL\STX\DC2\ETX\DC2\EOT\216\SOH4H\n\+ \\f\n\+ \\STX\EOT\NUL\DC2\ACK\219\SOH\NUL\228\SOH\SOH\n\+ \\v\n\+ \\ETX\EOT\NUL\SOH\DC2\EOT\219\SOH\b\SUB\n\+ \C\n\+ \\EOT\EOT\NUL\STX\NUL\DC2\EOT\221\SOH\EOT\CAN\SUB5 The minimum number of confirmations to be included.\n\+ \\n\+ \\r\n\+ \\ENQ\EOT\NUL\STX\NUL\ENQ\DC2\EOT\221\SOH\EOT\t\n\+ \\r\n\+ \\ENQ\EOT\NUL\STX\NUL\SOH\DC2\EOT\221\SOH\n\+ \\DC3\n\+ \\r\n\+ \\ENQ\EOT\NUL\STX\NUL\ETX\DC2\EOT\221\SOH\SYN\ETB\n\+ \C\n\+ \\EOT\EOT\NUL\STX\SOH\DC2\EOT\224\SOH\EOT\CAN\SUB5 The maximum number of confirmations to be included.\n\+ \\n\+ \\r\n\+ \\ENQ\EOT\NUL\STX\SOH\ENQ\DC2\EOT\224\SOH\EOT\t\n\+ \\r\n\+ \\ENQ\EOT\NUL\STX\SOH\SOH\DC2\EOT\224\SOH\n\+ \\DC3\n\+ \\r\n\+ \\ENQ\EOT\NUL\STX\SOH\ETX\DC2\EOT\224\SOH\SYN\ETB\n\+ \S\n\+ \\EOT\EOT\NUL\STX\STX\DC2\EOT\227\SOH\EOT\ETB\SUBE An optional filter to only include outputs belonging to an account.\n\+ \\n\+ \\r\n\+ \\ENQ\EOT\NUL\STX\STX\ENQ\DC2\EOT\227\SOH\EOT\n\+ \\n\+ \\r\n\+ \\ENQ\EOT\NUL\STX\STX\SOH\DC2\EOT\227\SOH\v\DC2\n\+ \\r\n\+ \\ENQ\EOT\NUL\STX\STX\ETX\DC2\EOT\227\SOH\NAK\SYN\n\+ \\f\n\+ \\STX\EOT\SOH\DC2\ACK\230\SOH\NUL\233\SOH\SOH\n\+ \\v\n\+ \\ETX\EOT\SOH\SOH\DC2\EOT\230\SOH\b\ESC\n\+ \Q\n\+ \\EOT\EOT\SOH\STX\NUL\DC2\EOT\232\SOH\EOT\"\SUBC A list of utxos satisfying the specified number of confirmations.\n\+ \\n\+ \\r\n\+ \\ENQ\EOT\SOH\STX\NUL\EOT\DC2\EOT\232\SOH\EOT\f\n\+ \\r\n\+ \\ENQ\EOT\SOH\STX\NUL\ACK\DC2\EOT\232\SOH\r\ETB\n\+ \\r\n\+ \\ENQ\EOT\SOH\STX\NUL\SOH\DC2\EOT\232\SOH\CAN\GS\n\+ \\r\n\+ \\ENQ\EOT\SOH\STX\NUL\ETX\DC2\EOT\232\SOH !\n\+ \\f\n\+ \\STX\EOT\STX\DC2\ACK\235\SOH\NUL\248\SOH\SOH\n\+ \\v\n\+ \\ETX\EOT\STX\SOH\DC2\EOT\235\SOH\b\SUB\n\+ \\155\SOH\n\+ \\EOT\EOT\STX\STX\NUL\DC2\EOT\240\SOH\EOT\DC1\SUB\140\SOH\n\+ \An ID of 32 random bytes that must be unique for each distinct application\n\+ \using this RPC which will be used to bound the output lease to.\n\+ \\n\+ \\r\n\+ \\ENQ\EOT\STX\STX\NUL\ENQ\DC2\EOT\240\SOH\EOT\t\n\+ \\r\n\+ \\ENQ\EOT\STX\STX\NUL\SOH\DC2\EOT\240\SOH\n\+ \\f\n\+ \\r\n\+ \\ENQ\EOT\STX\STX\NUL\ETX\DC2\EOT\240\SOH\SI\DLE\n\+ \D\n\+ \\EOT\EOT\STX\STX\SOH\DC2\EOT\243\SOH\EOT \SUB6 The identifying outpoint of the output being leased.\n\+ \\n\+ \\r\n\+ \\ENQ\EOT\STX\STX\SOH\ACK\DC2\EOT\243\SOH\EOT\DC2\n\+ \\r\n\+ \\ENQ\EOT\STX\STX\SOH\SOH\DC2\EOT\243\SOH\DC3\ESC\n\+ \\r\n\+ \\ENQ\EOT\STX\STX\SOH\ETX\DC2\EOT\243\SOH\RS\US\n\+ \p\n\+ \\EOT\EOT\STX\STX\STX\DC2\EOT\247\SOH\EOT\"\SUBb The time in seconds before the lock expires. If set to zero, the default\n\+ \ lock duration is used.\n\+ \\n\+ \\r\n\+ \\ENQ\EOT\STX\STX\STX\ENQ\DC2\EOT\247\SOH\EOT\n\+ \\n\+ \\r\n\+ \\ENQ\EOT\STX\STX\STX\SOH\DC2\EOT\247\SOH\v\GS\n\+ \\r\n\+ \\ENQ\EOT\STX\STX\STX\ETX\DC2\EOT\247\SOH !\n\+ \\f\n\+ \\STX\EOT\ETX\DC2\ACK\250\SOH\NUL\255\SOH\SOH\n\+ \\v\n\+ \\ETX\EOT\ETX\SOH\DC2\EOT\250\SOH\b\ESC\n\+ \\\\n\+ \\EOT\EOT\ETX\STX\NUL\DC2\EOT\254\SOH\EOT\SUB\SUBN\n\+ \The absolute expiration of the output lease represented as a unix timestamp.\n\+ \\n\+ \\r\n\+ \\ENQ\EOT\ETX\STX\NUL\ENQ\DC2\EOT\254\SOH\EOT\n\+ \\n\+ \\r\n\+ \\ENQ\EOT\ETX\STX\NUL\SOH\DC2\EOT\254\SOH\v\NAK\n\+ \\r\n\+ \\ENQ\EOT\ETX\STX\NUL\ETX\DC2\EOT\254\SOH\CAN\EM\n\+ \\f\n\+ \\STX\EOT\EOT\DC2\ACK\129\STX\NUL\135\STX\SOH\n\+ \\v\n\+ \\ETX\EOT\EOT\SOH\DC2\EOT\129\STX\b\FS\n\+ \?\n\+ \\EOT\EOT\EOT\STX\NUL\DC2\EOT\131\STX\EOT\DC1\SUB1 The unique ID that was used to lock the output.\n\+ \\n\+ \\r\n\+ \\ENQ\EOT\EOT\STX\NUL\ENQ\DC2\EOT\131\STX\EOT\t\n\+ \\r\n\+ \\ENQ\EOT\EOT\STX\NUL\SOH\DC2\EOT\131\STX\n\+ \\f\n\+ \\r\n\+ \\ENQ\EOT\EOT\STX\NUL\ETX\DC2\EOT\131\STX\SI\DLE\n\+ \F\n\+ \\EOT\EOT\EOT\STX\SOH\DC2\EOT\134\STX\EOT \SUB8 The identifying outpoint of the output being released.\n\+ \\n\+ \\r\n\+ \\ENQ\EOT\EOT\STX\SOH\ACK\DC2\EOT\134\STX\EOT\DC2\n\+ \\r\n\+ \\ENQ\EOT\EOT\STX\SOH\SOH\DC2\EOT\134\STX\DC3\ESC\n\+ \\r\n\+ \\ENQ\EOT\EOT\STX\SOH\ETX\DC2\EOT\134\STX\RS\US\n\+ \\f\n\+ \\STX\EOT\ENQ\DC2\ACK\137\STX\NUL\138\STX\SOH\n\+ \\v\n\+ \\ETX\EOT\ENQ\SOH\DC2\EOT\137\STX\b\GS\n\+ \\f\n\+ \\STX\EOT\ACK\DC2\ACK\140\STX\NUL\153\STX\SOH\n\+ \\v\n\+ \\ETX\EOT\ACK\SOH\DC2\EOT\140\STX\b\SO\n\+ \\190\SOH\n\+ \\EOT\EOT\ACK\STX\NUL\DC2\EOT\146\STX\EOT\US\SUB\175\SOH\n\+ \Is the key finger print of the root pubkey that this request is targeting.\n\+ \This allows the WalletKit to possibly serve out keys for multiple HD chains\n\+ \via public derivation.\n\+ \\n\+ \\r\n\+ \\ENQ\EOT\ACK\STX\NUL\ENQ\DC2\EOT\146\STX\EOT\t\n\+ \\r\n\+ \\ENQ\EOT\ACK\STX\NUL\SOH\DC2\EOT\146\STX\n\+ \\SUB\n\+ \\r\n\+ \\ENQ\EOT\ACK\STX\NUL\ETX\DC2\EOT\146\STX\GS\RS\n\+ \n\n\+ \\EOT\EOT\ACK\STX\SOH\DC2\EOT\152\STX\EOT\EM\SUB`\n\+ \The target key family to derive a key from. In other contexts, this is\n\+ \known as the \"account\".\n\+ \\n\+ \\r\n\+ \\ENQ\EOT\ACK\STX\SOH\ENQ\DC2\EOT\152\STX\EOT\t\n\+ \\r\n\+ \\ENQ\EOT\ACK\STX\SOH\SOH\DC2\EOT\152\STX\n\+ \\DC4\n\+ \\r\n\+ \\ENQ\EOT\ACK\STX\SOH\ETX\DC2\EOT\152\STX\ETB\CAN\n\+ \\f\n\+ \\STX\EOT\a\DC2\ACK\155\STX\NUL\171\STX\SOH\n\+ \\v\n\+ \\ETX\EOT\a\SOH\DC2\EOT\155\STX\b\DC3\n\+ \v\n\+ \\EOT\EOT\a\STX\NUL\DC2\EOT\160\STX\EOT\ETB\SUBh\n\+ \The name of the account to retrieve the next address of. If empty, the\n\+ \default wallet account is used.\n\+ \\n\+ \\r\n\+ \\ENQ\EOT\a\STX\NUL\ENQ\DC2\EOT\160\STX\EOT\n\+ \\n\+ \\r\n\+ \\ENQ\EOT\a\STX\NUL\SOH\DC2\EOT\160\STX\v\DC2\n\+ \\r\n\+ \\ENQ\EOT\a\STX\NUL\ETX\DC2\EOT\160\STX\NAK\SYN\n\+ \.\n\+ \\EOT\EOT\a\STX\SOH\DC2\EOT\165\STX\EOT\EM\SUB \n\+ \The type of address to derive.\n\+ \\n\+ \\r\n\+ \\ENQ\EOT\a\STX\SOH\ACK\DC2\EOT\165\STX\EOT\SI\n\+ \\r\n\+ \\ENQ\EOT\a\STX\SOH\SOH\DC2\EOT\165\STX\DLE\DC4\n\+ \\r\n\+ \\ENQ\EOT\a\STX\SOH\ETX\DC2\EOT\165\STX\ETB\CAN\n\+ \;\n\+ \\EOT\EOT\a\STX\STX\DC2\EOT\170\STX\EOT\DC4\SUB-\n\+ \Whether a change address should be derived.\n\+ \\n\+ \\r\n\+ \\ENQ\EOT\a\STX\STX\ENQ\DC2\EOT\170\STX\EOT\b\n\+ \\r\n\+ \\ENQ\EOT\a\STX\STX\SOH\DC2\EOT\170\STX\t\SI\n\+ \\r\n\+ \\ENQ\EOT\a\STX\STX\ETX\DC2\EOT\170\STX\DC2\DC3\n\+ \\f\n\+ \\STX\EOT\b\DC2\ACK\172\STX\NUL\177\STX\SOH\n\+ \\v\n\+ \\ETX\EOT\b\SOH\DC2\EOT\172\STX\b\DC4\n\+ \:\n\+ \\EOT\EOT\b\STX\NUL\DC2\EOT\176\STX\EOT\DC4\SUB,\n\+ \The address encoded using a bech32 format.\n\+ \\n\+ \\r\n\+ \\ENQ\EOT\b\STX\NUL\ENQ\DC2\EOT\176\STX\EOT\n\+ \\n\+ \\r\n\+ \\ENQ\EOT\b\STX\NUL\SOH\DC2\EOT\176\STX\v\SI\n\+ \\r\n\+ \\ENQ\EOT\b\STX\NUL\ETX\DC2\EOT\176\STX\DC2\DC3\n\+ \\f\n\+ \\STX\ENQ\NUL\DC2\ACK\179\STX\NUL\184\STX\SOH\n\+ \\v\n\+ \\ETX\ENQ\NUL\SOH\DC2\EOT\179\STX\ENQ\DLE\n\+ \\f\n\+ \\EOT\ENQ\NUL\STX\NUL\DC2\EOT\180\STX\EOT\DLE\n\+ \\r\n\+ \\ENQ\ENQ\NUL\STX\NUL\SOH\DC2\EOT\180\STX\EOT\v\n\+ \\r\n\+ \\ENQ\ENQ\NUL\STX\NUL\STX\DC2\EOT\180\STX\SO\SI\n\+ \\f\n\+ \\EOT\ENQ\NUL\STX\SOH\DC2\EOT\181\STX\EOT\FS\n\+ \\r\n\+ \\ENQ\ENQ\NUL\STX\SOH\SOH\DC2\EOT\181\STX\EOT\ETB\n\+ \\r\n\+ \\ENQ\ENQ\NUL\STX\SOH\STX\DC2\EOT\181\STX\SUB\ESC\n\+ \\f\n\+ \\EOT\ENQ\NUL\STX\STX\DC2\EOT\182\STX\EOT#\n\+ \\r\n\+ \\ENQ\ENQ\NUL\STX\STX\SOH\DC2\EOT\182\STX\EOT\RS\n\+ \\r\n\+ \\ENQ\ENQ\NUL\STX\STX\STX\DC2\EOT\182\STX!\"\n\+ \\f\n\+ \\EOT\ENQ\NUL\STX\ETX\DC2\EOT\183\STX\EOT*\n\+ \\r\n\+ \\ENQ\ENQ\NUL\STX\ETX\SOH\DC2\EOT\183\STX\EOT%\n\+ \\r\n\+ \\ENQ\ENQ\NUL\STX\ETX\STX\DC2\EOT\183\STX()\n\+ \\f\n\+ \\STX\EOT\t\DC2\ACK\185\STX\NUL\237\STX\SOH\n\+ \\v\n\+ \\ETX\EOT\t\SOH\DC2\EOT\185\STX\b\SI\n\+ \6\n\+ \\EOT\EOT\t\STX\NUL\DC2\EOT\187\STX\EOT\DC4\SUB( The name used to identify the account.\n\+ \\n\+ \\r\n\+ \\ENQ\EOT\t\STX\NUL\ENQ\DC2\EOT\187\STX\EOT\n\+ \\n\+ \\r\n\+ \\ENQ\EOT\t\STX\NUL\SOH\DC2\EOT\187\STX\v\SI\n\+ \\r\n\+ \\ENQ\EOT\t\STX\NUL\ETX\DC2\EOT\187\STX\DC2\DC3\n\+ \\128\ETX\n\+ \\EOT\EOT\t\STX\SOH\DC2\EOT\197\STX\EOT!\SUB\241\STX\n\+ \The type of addresses the account supports.\n\+ \AddressType | External Branch | Internal Branch\n\+ \---------------------------------------------------------------------\n\+ \WITNESS_PUBKEY_HASH | P2WPKH | P2WPKH\n\+ \NESTED_WITNESS_PUBKEY_HASH | NP2WPKH | NP2WPKH\n\+ \HYBRID_NESTED_WITNESS_PUBKEY_HASH | NP2WPKH | P2WPKH\n\+ \\n\+ \\r\n\+ \\ENQ\EOT\t\STX\SOH\ACK\DC2\EOT\197\STX\EOT\SI\n\+ \\r\n\+ \\ENQ\EOT\t\STX\SOH\SOH\DC2\EOT\197\STX\DLE\FS\n\+ \\r\n\+ \\ENQ\EOT\t\STX\SOH\ETX\DC2\EOT\197\STX\US \n\+ \\220\SOH\n\+ \\EOT\EOT\t\STX\STX\DC2\EOT\204\STX\EOT#\SUB\205\SOH\n\+ \The public key backing the account that all keys are derived from\n\+ \represented as an extended key. This will always be empty for the default\n\+ \imported account in which single public keys are imported into.\n\+ \\n\+ \\r\n\+ \\ENQ\EOT\t\STX\STX\ENQ\DC2\EOT\204\STX\EOT\n\+ \\n\+ \\r\n\+ \\ENQ\EOT\t\STX\STX\SOH\DC2\EOT\204\STX\v\RS\n\+ \\r\n\+ \\ENQ\EOT\t\STX\STX\ETX\DC2\EOT\204\STX!\"\n\+ \\240\SOH\n\+ \\EOT\EOT\t\STX\ETX\DC2\EOT\212\STX\EOT%\SUB\225\SOH\n\+ \The fingerprint of the root key from which the account public key was\n\+ \derived from. This will always be zero for the default imported account in\n\+ \which single public keys are imported into. The bytes are in big-endian\n\+ \order.\n\+ \\n\+ \\r\n\+ \\ENQ\EOT\t\STX\ETX\ENQ\DC2\EOT\212\STX\EOT\t\n\+ \\r\n\+ \\ENQ\EOT\t\STX\ETX\SOH\DC2\EOT\212\STX\n\+ \ \n\+ \\r\n\+ \\ENQ\EOT\t\STX\ETX\ETX\DC2\EOT\212\STX#$\n\+ \\183\SOH\n\+ \\EOT\EOT\t\STX\EOT\DC2\EOT\219\STX\EOT\US\SUB\168\SOH\n\+ \The derivation path corresponding to the account public key. This will\n\+ \always be empty for the default imported account in which single public keys\n\+ \are imported into.\n\+ \\n\+ \\r\n\+ \\ENQ\EOT\t\STX\EOT\ENQ\DC2\EOT\219\STX\EOT\n\+ \\n\+ \\r\n\+ \\ENQ\EOT\t\STX\EOT\SOH\DC2\EOT\219\STX\v\SUB\n\+ \\r\n\+ \\ENQ\EOT\t\STX\EOT\ETX\DC2\EOT\219\STX\GS\RS\n\+ \\200\SOH\n\+ \\EOT\EOT\t\STX\ENQ\DC2\EOT\226\STX\EOT\"\SUB\185\SOH\n\+ \The number of keys derived from the external branch of the account public\n\+ \key. This will always be zero for the default imported account in which\n\+ \single public keys are imported into.\n\+ \\n\+ \\r\n\+ \\ENQ\EOT\t\STX\ENQ\ENQ\DC2\EOT\226\STX\EOT\n\+ \\n\+ \\r\n\+ \\ENQ\EOT\t\STX\ENQ\SOH\DC2\EOT\226\STX\v\GS\n\+ \\r\n\+ \\ENQ\EOT\t\STX\ENQ\ETX\DC2\EOT\226\STX !\n\+ \\200\SOH\n\+ \\EOT\EOT\t\STX\ACK\DC2\EOT\233\STX\EOT\"\SUB\185\SOH\n\+ \The number of keys derived from the internal branch of the account public\n\+ \key. This will always be zero for the default imported account in which\n\+ \single public keys are imported into.\n\+ \\n\+ \\r\n\+ \\ENQ\EOT\t\STX\ACK\ENQ\DC2\EOT\233\STX\EOT\n\+ \\n\+ \\r\n\+ \\ENQ\EOT\t\STX\ACK\SOH\DC2\EOT\233\STX\v\GS\n\+ \\r\n\+ \\ENQ\EOT\t\STX\ACK\ETX\DC2\EOT\233\STX !\n\+ \G\n\+ \\EOT\EOT\t\STX\a\DC2\EOT\236\STX\EOT\CAN\SUB9 Whether the wallet stores private keys for the account.\n\+ \\n\+ \\r\n\+ \\ENQ\EOT\t\STX\a\ENQ\DC2\EOT\236\STX\EOT\b\n\+ \\r\n\+ \\ENQ\EOT\t\STX\a\SOH\DC2\EOT\236\STX\t\DC3\n\+ \\r\n\+ \\ENQ\EOT\t\STX\a\ETX\DC2\EOT\236\STX\SYN\ETB\n\+ \\f\n\+ \\STX\EOT\n\+ \\DC2\ACK\238\STX\NUL\244\STX\SOH\n\+ \\v\n\+ \\ETX\EOT\n\+ \\SOH\DC2\EOT\238\STX\b\ESC\n\+ \N\n\+ \\EOT\EOT\n\+ \\STX\NUL\DC2\EOT\240\STX\EOT\DC4\SUB@ An optional filter to only return accounts matching this name.\n\+ \\n\+ \\r\n\+ \\ENQ\EOT\n\+ \\STX\NUL\ENQ\DC2\EOT\240\STX\EOT\n\+ \\n\+ \\r\n\+ \\ENQ\EOT\n\+ \\STX\NUL\SOH\DC2\EOT\240\STX\v\SI\n\+ \\r\n\+ \\ENQ\EOT\n\+ \\STX\NUL\ETX\DC2\EOT\240\STX\DC2\DC3\n\+ \V\n\+ \\EOT\EOT\n\+ \\STX\SOH\DC2\EOT\243\STX\EOT!\SUBH An optional filter to only return accounts matching this address type.\n\+ \\n\+ \\r\n\+ \\ENQ\EOT\n\+ \\STX\SOH\ACK\DC2\EOT\243\STX\EOT\SI\n\+ \\r\n\+ \\ENQ\EOT\n\+ \\STX\SOH\SOH\DC2\EOT\243\STX\DLE\FS\n\+ \\r\n\+ \\ENQ\EOT\n\+ \\STX\SOH\ETX\DC2\EOT\243\STX\US \n\+ \\f\n\+ \\STX\EOT\v\DC2\ACK\245\STX\NUL\247\STX\SOH\n\+ \\v\n\+ \\ETX\EOT\v\SOH\DC2\EOT\245\STX\b\FS\n\+ \\f\n\+ \\EOT\EOT\v\STX\NUL\DC2\EOT\246\STX\EOT\"\n\+ \\r\n\+ \\ENQ\EOT\v\STX\NUL\EOT\DC2\EOT\246\STX\EOT\f\n\+ \\r\n\+ \\ENQ\EOT\v\STX\NUL\ACK\DC2\EOT\246\STX\r\DC4\n\+ \\r\n\+ \\ENQ\EOT\v\STX\NUL\SOH\DC2\EOT\246\STX\NAK\GS\n\+ \\r\n\+ \\ENQ\EOT\v\STX\NUL\ETX\DC2\EOT\246\STX !\n\+ \\f\n\+ \\STX\EOT\f\DC2\ACK\249\STX\NUL\155\ETX\SOH\n\+ \\v\n\+ \\ETX\EOT\f\SOH\DC2\EOT\249\STX\b\FS\n\+ \4\n\+ \\EOT\EOT\f\STX\NUL\DC2\EOT\251\STX\EOT\DC4\SUB& A name to identify the account with.\n\+ \\n\+ \\r\n\+ \\ENQ\EOT\f\STX\NUL\ENQ\DC2\EOT\251\STX\EOT\n\+ \\n\+ \\r\n\+ \\ENQ\EOT\f\STX\NUL\SOH\DC2\EOT\251\STX\v\SI\n\+ \\r\n\+ \\ENQ\EOT\f\STX\NUL\ETX\DC2\EOT\251\STX\DC2\DC3\n\+ \\179\SOH\n\+ \\EOT\EOT\f\STX\SOH\DC2\EOT\130\ETX\EOT#\SUB\164\SOH\n\+ \A public key that corresponds to a wallet account represented as an extended\n\+ \key. It must conform to a derivation path of the form\n\+ \m/purpose'/coin_type'/account'.\n\+ \\n\+ \\r\n\+ \\ENQ\EOT\f\STX\SOH\ENQ\DC2\EOT\130\ETX\EOT\n\+ \\n\+ \\r\n\+ \\ENQ\EOT\f\STX\SOH\SOH\DC2\EOT\130\ETX\v\RS\n\+ \\r\n\+ \\ENQ\EOT\f\STX\SOH\ETX\DC2\EOT\130\ETX!\"\n\+ \\144\STX\n\+ \\EOT\EOT\f\STX\STX\DC2\EOT\138\ETX\EOT%\SUB\129\STX\n\+ \The fingerprint of the root key (also known as the key with derivation path\n\+ \m/) from which the account public key was derived from. This may be required\n\+ \by some hardware wallets for proper identification and signing. The bytes\n\+ \must be in big-endian order.\n\+ \\n\+ \\r\n\+ \\ENQ\EOT\f\STX\STX\ENQ\DC2\EOT\138\ETX\EOT\t\n\+ \\r\n\+ \\ENQ\EOT\f\STX\STX\SOH\DC2\EOT\138\ETX\n\+ \ \n\+ \\r\n\+ \\ENQ\EOT\f\STX\STX\ETX\DC2\EOT\138\ETX#$\n\+ \\197\SOH\n\+ \\EOT\EOT\f\STX\ETX\DC2\EOT\145\ETX\EOT!\SUB\182\SOH\n\+ \An address type is only required when the extended account public key has a\n\+ \legacy version (xpub, tpub, etc.), such that the wallet cannot detect what\n\+ \address scheme it belongs to.\n\+ \\n\+ \\r\n\+ \\ENQ\EOT\f\STX\ETX\ACK\DC2\EOT\145\ETX\EOT\SI\n\+ \\r\n\+ \\ENQ\EOT\f\STX\ETX\SOH\DC2\EOT\145\ETX\DLE\FS\n\+ \\r\n\+ \\ENQ\EOT\f\STX\ETX\ETX\DC2\EOT\145\ETX\US \n\+ \\214\STX\n\+ \\EOT\EOT\f\STX\EOT\DC2\EOT\154\ETX\EOT\NAK\SUB\199\STX\n\+ \Whether a dry run should be attempted when importing the account. This\n\+ \serves as a way to confirm whether the account is being imported correctly\n\+ \by returning the first N addresses for the external and internal branches of\n\+ \the account. If these addresses match as expected, then it should be safe to\n\+ \import the account as is.\n\+ \\n\+ \\r\n\+ \\ENQ\EOT\f\STX\EOT\ENQ\DC2\EOT\154\ETX\EOT\b\n\+ \\r\n\+ \\ENQ\EOT\f\STX\EOT\SOH\DC2\EOT\154\ETX\t\DLE\n\+ \\r\n\+ \\ENQ\EOT\f\STX\EOT\ETX\DC2\EOT\154\ETX\DC3\DC4\n\+ \\f\n\+ \\STX\EOT\r\DC2\ACK\156\ETX\NUL\173\ETX\SOH\n\+ \\v\n\+ \\ETX\EOT\r\SOH\DC2\EOT\156\ETX\b\GS\n\+ \4\n\+ \\EOT\EOT\r\STX\NUL\DC2\EOT\158\ETX\EOT\CAN\SUB& The details of the imported account.\n\+ \\n\+ \\r\n\+ \\ENQ\EOT\r\STX\NUL\ACK\DC2\EOT\158\ETX\EOT\v\n\+ \\r\n\+ \\ENQ\EOT\r\STX\NUL\SOH\DC2\EOT\158\ETX\f\DC3\n\+ \\r\n\+ \\ENQ\EOT\r\STX\NUL\ETX\DC2\EOT\158\ETX\SYN\ETB\n\+ \\233\SOH\n\+ \\EOT\EOT\r\STX\SOH\DC2\EOT\165\ETX\EOT/\SUB\218\SOH\n\+ \The first N addresses that belong to the external branch of the account.\n\+ \The external branch is typically used for external non-change addresses.\n\+ \These are only returned if a dry run was specified within the request.\n\+ \\n\+ \\r\n\+ \\ENQ\EOT\r\STX\SOH\EOT\DC2\EOT\165\ETX\EOT\f\n\+ \\r\n\+ \\ENQ\EOT\r\STX\SOH\ENQ\DC2\EOT\165\ETX\r\DC3\n\+ \\r\n\+ \\ENQ\EOT\r\STX\SOH\SOH\DC2\EOT\165\ETX\DC4*\n\+ \\r\n\+ \\ENQ\EOT\r\STX\SOH\ETX\DC2\EOT\165\ETX-.\n\+ \\220\SOH\n\+ \\EOT\EOT\r\STX\STX\DC2\EOT\172\ETX\EOT/\SUB\205\SOH\n\+ \The first N addresses that belong to the internal branch of the account.\n\+ \The internal branch is typically used for change addresses. These are only\n\+ \returned if a dry run was specified within the request.\n\+ \\n\+ \\r\n\+ \\ENQ\EOT\r\STX\STX\EOT\DC2\EOT\172\ETX\EOT\f\n\+ \\r\n\+ \\ENQ\EOT\r\STX\STX\ENQ\DC2\EOT\172\ETX\r\DC3\n\+ \\r\n\+ \\ENQ\EOT\r\STX\STX\SOH\DC2\EOT\172\ETX\DC4*\n\+ \\r\n\+ \\ENQ\EOT\r\STX\STX\ETX\DC2\EOT\172\ETX-.\n\+ \\f\n\+ \\STX\EOT\SO\DC2\ACK\175\ETX\NUL\181\ETX\SOH\n\+ \\v\n\+ \\ETX\EOT\SO\SOH\DC2\EOT\175\ETX\b\RS\n\+ \A\n\+ \\EOT\EOT\SO\STX\NUL\DC2\EOT\177\ETX\EOT\EM\SUB3 A compressed public key represented as raw bytes.\n\+ \\n\+ \\r\n\+ \\ENQ\EOT\SO\STX\NUL\ENQ\DC2\EOT\177\ETX\EOT\t\n\+ \\r\n\+ \\ENQ\EOT\SO\STX\NUL\SOH\DC2\EOT\177\ETX\n\+ \\DC4\n\+ \\r\n\+ \\ENQ\EOT\SO\STX\NUL\ETX\DC2\EOT\177\ETX\ETB\CAN\n\+ \O\n\+ \\EOT\EOT\SO\STX\SOH\DC2\EOT\180\ETX\EOT!\SUBA The type of address that will be generated from the public key.\n\+ \\n\+ \\r\n\+ \\ENQ\EOT\SO\STX\SOH\ACK\DC2\EOT\180\ETX\EOT\SI\n\+ \\r\n\+ \\ENQ\EOT\SO\STX\SOH\SOH\DC2\EOT\180\ETX\DLE\FS\n\+ \\r\n\+ \\ENQ\EOT\SO\STX\SOH\ETX\DC2\EOT\180\ETX\US \n\+ \\f\n\+ \\STX\EOT\SI\DC2\ACK\182\ETX\NUL\183\ETX\SOH\n\+ \\v\n\+ \\ETX\EOT\SI\SOH\DC2\EOT\182\ETX\b\US\n\+ \\f\n\+ \\STX\EOT\DLE\DC2\ACK\185\ETX\NUL\195\ETX\SOH\n\+ \\v\n\+ \\ETX\EOT\DLE\SOH\DC2\EOT\185\ETX\b\DC3\n\+ \/\n\+ \\EOT\EOT\DLE\STX\NUL\DC2\EOT\189\ETX\EOT\NAK\SUB!\n\+ \The raw serialized transaction.\n\+ \\n\+ \\r\n\+ \\ENQ\EOT\DLE\STX\NUL\ENQ\DC2\EOT\189\ETX\EOT\t\n\+ \\r\n\+ \\ENQ\EOT\DLE\STX\NUL\SOH\DC2\EOT\189\ETX\n\+ \\DLE\n\+ \\r\n\+ \\ENQ\EOT\DLE\STX\NUL\ETX\DC2\EOT\189\ETX\DC3\DC4\n\+ \Z\n\+ \\EOT\EOT\DLE\STX\SOH\DC2\EOT\194\ETX\EOT\NAK\SUBL\n\+ \An optional label to save with the transaction. Limited to 500 characters.\n\+ \\n\+ \\r\n\+ \\ENQ\EOT\DLE\STX\SOH\ENQ\DC2\EOT\194\ETX\EOT\n\+ \\n\+ \\r\n\+ \\ENQ\EOT\DLE\STX\SOH\SOH\DC2\EOT\194\ETX\v\DLE\n\+ \\r\n\+ \\ENQ\EOT\DLE\STX\SOH\ETX\DC2\EOT\194\ETX\DC3\DC4\n\+ \\f\n\+ \\STX\EOT\DC1\DC2\ACK\196\ETX\NUL\205\ETX\SOH\n\+ \\v\n\+ \\ETX\EOT\DC1\SOH\DC2\EOT\196\ETX\b\ETB\n\+ \\218\SOH\n\+ \\EOT\EOT\DC1\STX\NUL\DC2\EOT\204\ETX\EOT\GS\SUB\203\SOH\n\+ \If blank, then no error occurred and the transaction was successfully\n\+ \published. If not the empty string, then a string representation of the\n\+ \broadcast error.\n\+ \\n\+ \TODO(roasbeef): map to a proper enum type\n\+ \\n\+ \\r\n\+ \\ENQ\EOT\DC1\STX\NUL\ENQ\DC2\EOT\204\ETX\EOT\n\+ \\n\+ \\r\n\+ \\ENQ\EOT\DC1\STX\NUL\SOH\DC2\EOT\204\ETX\v\CAN\n\+ \\r\n\+ \\ENQ\EOT\DC1\STX\NUL\ETX\DC2\EOT\204\ETX\ESC\FS\n\+ \\f\n\+ \\STX\EOT\DC2\DC2\ACK\207\ETX\NUL\228\ETX\SOH\n\+ \\v\n\+ \\ETX\EOT\DC2\SOH\DC2\EOT\207\ETX\b\SUB\n\+ \j\n\+ \\EOT\EOT\DC2\STX\NUL\DC2\EOT\212\ETX\EOT\EM\SUB\\\n\+ \The number of satoshis per kilo weight that should be used when crafting\n\+ \this transaction.\n\+ \\n\+ \\r\n\+ \\ENQ\EOT\DC2\STX\NUL\ENQ\DC2\EOT\212\ETX\EOT\t\n\+ \\r\n\+ \\ENQ\EOT\DC2\STX\NUL\SOH\DC2\EOT\212\ETX\n\+ \\DC4\n\+ \\r\n\+ \\ENQ\EOT\DC2\STX\NUL\ETX\DC2\EOT\212\ETX\ETB\CAN\n\+ \Z\n\+ \\EOT\EOT\DC2\STX\SOH\DC2\EOT\217\ETX\EOT'\SUBL\n\+ \A slice of the outputs that should be created in the transaction produced.\n\+ \\n\+ \\r\n\+ \\ENQ\EOT\DC2\STX\SOH\EOT\DC2\EOT\217\ETX\EOT\f\n\+ \\r\n\+ \\ENQ\EOT\DC2\STX\SOH\ACK\DC2\EOT\217\ETX\r\SUB\n\+ \\r\n\+ \\ENQ\EOT\DC2\STX\SOH\SOH\DC2\EOT\217\ETX\ESC\"\n\+ \\r\n\+ \\ENQ\EOT\DC2\STX\SOH\ETX\DC2\EOT\217\ETX%&\n\+ \Q\n\+ \\EOT\EOT\DC2\STX\STX\DC2\EOT\220\ETX\EOT\NAK\SUBC An optional label for the transaction, limited to 500 characters.\n\+ \\n\+ \\r\n\+ \\ENQ\EOT\DC2\STX\STX\ENQ\DC2\EOT\220\ETX\EOT\n\+ \\n\+ \\r\n\+ \\ENQ\EOT\DC2\STX\STX\SOH\DC2\EOT\220\ETX\v\DLE\n\+ \\r\n\+ \\ENQ\EOT\DC2\STX\STX\ETX\DC2\EOT\220\ETX\DC3\DC4\n\+ \t\n\+ \\EOT\EOT\DC2\STX\ETX\DC2\EOT\224\ETX\EOT\CAN\SUBf The minimum number of confirmations each one of your outputs used for\n\+ \ the transaction must satisfy.\n\+ \\n\+ \\r\n\+ \\ENQ\EOT\DC2\STX\ETX\ENQ\DC2\EOT\224\ETX\EOT\t\n\+ \\r\n\+ \\ENQ\EOT\DC2\STX\ETX\SOH\DC2\EOT\224\ETX\n\+ \\DC3\n\+ \\r\n\+ \\ENQ\EOT\DC2\STX\ETX\ETX\DC2\EOT\224\ETX\SYN\ETB\n\+ \Y\n\+ \\EOT\EOT\DC2\STX\EOT\DC2\EOT\227\ETX\EOT\US\SUBK Whether unconfirmed outputs should be used as inputs for the transaction.\n\+ \\n\+ \\r\n\+ \\ENQ\EOT\DC2\STX\EOT\ENQ\DC2\EOT\227\ETX\EOT\b\n\+ \\r\n\+ \\ENQ\EOT\DC2\STX\EOT\SOH\DC2\EOT\227\ETX\t\SUB\n\+ \\r\n\+ \\ENQ\EOT\DC2\STX\EOT\ETX\DC2\EOT\227\ETX\GS\RS\n\+ \\f\n\+ \\STX\EOT\DC3\DC2\ACK\229\ETX\NUL\234\ETX\SOH\n\+ \\v\n\+ \\ETX\EOT\DC3\SOH\DC2\EOT\229\ETX\b\ESC\n\+ \C\n\+ \\EOT\EOT\DC3\STX\NUL\DC2\EOT\233\ETX\EOT\NAK\SUB5\n\+ \The serialized transaction sent out on the network.\n\+ \\n\+ \\r\n\+ \\ENQ\EOT\DC3\STX\NUL\ENQ\DC2\EOT\233\ETX\EOT\t\n\+ \\r\n\+ \\ENQ\EOT\DC3\STX\NUL\SOH\DC2\EOT\233\ETX\n\+ \\DLE\n\+ \\r\n\+ \\ENQ\EOT\DC3\STX\NUL\ETX\DC2\EOT\233\ETX\DC3\DC4\n\+ \\f\n\+ \\STX\EOT\DC4\DC2\ACK\236\ETX\NUL\241\ETX\SOH\n\+ \\v\n\+ \\ETX\EOT\DC4\SOH\DC2\EOT\236\ETX\b\SUB\n\+ \Q\n\+ \\EOT\EOT\DC4\STX\NUL\DC2\EOT\240\ETX\EOT\SUB\SUBC\n\+ \The number of confirmations to shoot for when estimating the fee.\n\+ \\n\+ \\r\n\+ \\ENQ\EOT\DC4\STX\NUL\ENQ\DC2\EOT\240\ETX\EOT\t\n\+ \\r\n\+ \\ENQ\EOT\DC4\STX\NUL\SOH\DC2\EOT\240\ETX\n\+ \\NAK\n\+ \\r\n\+ \\ENQ\EOT\DC4\STX\NUL\ETX\DC2\EOT\240\ETX\CAN\EM\n\+ \\f\n\+ \\STX\EOT\NAK\DC2\ACK\242\ETX\NUL\248\ETX\SOH\n\+ \\v\n\+ \\ETX\EOT\NAK\SOH\DC2\EOT\242\ETX\b\ESC\n\+ \{\n\+ \\EOT\EOT\NAK\STX\NUL\DC2\EOT\247\ETX\EOT\EM\SUBm\n\+ \The amount of satoshis per kw that should be used in order to reach the\n\+ \confirmation target in the request.\n\+ \\n\+ \\r\n\+ \\ENQ\EOT\NAK\STX\NUL\ENQ\DC2\EOT\247\ETX\EOT\t\n\+ \\r\n\+ \\ENQ\EOT\NAK\STX\NUL\SOH\DC2\EOT\247\ETX\n\+ \\DC4\n\+ \\r\n\+ \\ENQ\EOT\NAK\STX\NUL\ETX\DC2\EOT\247\ETX\ETB\CAN\n\+ \\f\n\+ \\STX\ENQ\SOH\DC2\ACK\250\ETX\NUL\210\EOT\SOH\n\+ \\v\n\+ \\ETX\ENQ\SOH\SOH\DC2\EOT\250\ETX\ENQ\DLE\n\+ \\f\n\+ \\EOT\ENQ\SOH\STX\NUL\DC2\EOT\251\ETX\EOT\CAN\n\+ \\r\n\+ \\ENQ\ENQ\SOH\STX\NUL\SOH\DC2\EOT\251\ETX\EOT\DC3\n\+ \\r\n\+ \\ENQ\ENQ\SOH\STX\NUL\STX\DC2\EOT\251\ETX\SYN\ETB\n\+ \|\n\+ \\EOT\ENQ\SOH\STX\SOH\DC2\EOT\129\EOT\EOT\GS\SUBn\n\+ \A witness that allows us to spend the output of a commitment transaction\n\+ \after a relative lock-time lockout.\n\+ \\n\+ \\r\n\+ \\ENQ\ENQ\SOH\STX\SOH\SOH\DC2\EOT\129\EOT\EOT\CAN\n\+ \\r\n\+ \\ENQ\ENQ\SOH\STX\SOH\STX\DC2\EOT\129\EOT\ESC\FS\n\+ \\131\SOH\n\+ \\EOT\ENQ\SOH\STX\STX\DC2\EOT\135\EOT\EOT\FS\SUBu\n\+ \A witness that allows us to spend a settled no-delay output immediately on a\n\+ \counterparty's commitment transaction.\n\+ \\n\+ \\r\n\+ \\ENQ\ENQ\SOH\STX\STX\SOH\DC2\EOT\135\EOT\EOT\ETB\n\+ \\r\n\+ \\ENQ\ENQ\SOH\STX\STX\STX\DC2\EOT\135\EOT\SUB\ESC\n\+ \\148\SOH\n\+ \\EOT\ENQ\SOH\STX\ETX\DC2\EOT\141\EOT\EOT\SUB\SUB\133\SOH\n\+ \A witness that allows us to sweep the settled output of a malicious\n\+ \counterparty's who broadcasts a revoked commitment transaction.\n\+ \\n\+ \\r\n\+ \\ENQ\ENQ\SOH\STX\ETX\SOH\DC2\EOT\141\EOT\EOT\NAK\n\+ \\r\n\+ \\ENQ\ENQ\SOH\STX\ETX\STX\DC2\EOT\141\EOT\CAN\EM\n\+ \\155\SOH\n\+ \\EOT\ENQ\SOH\STX\EOT\DC2\EOT\147\EOT\EOT\FS\SUB\140\SOH\n\+ \A witness that allows us to sweep an HTLC which we offered to the remote\n\+ \party in the case that they broadcast a revoked commitment state.\n\+ \\n\+ \\r\n\+ \\ENQ\ENQ\SOH\STX\EOT\SOH\DC2\EOT\147\EOT\EOT\ETB\n\+ \\r\n\+ \\ENQ\ENQ\SOH\STX\EOT\STX\DC2\EOT\147\EOT\SUB\ESC\n\+ \\149\SOH\n\+ \\EOT\ENQ\SOH\STX\ENQ\DC2\EOT\153\EOT\EOT\GS\SUB\134\SOH\n\+ \A witness that allows us to sweep an HTLC output sent to us in the case that\n\+ \the remote party broadcasts a revoked commitment state.\n\+ \\n\+ \\r\n\+ \\ENQ\ENQ\SOH\STX\ENQ\SOH\DC2\EOT\153\EOT\EOT\CAN\n\+ \\r\n\+ \\ENQ\ENQ\SOH\STX\ENQ\STX\DC2\EOT\153\EOT\ESC\FS\n\+ \\174\STX\n\+ \\EOT\ENQ\SOH\STX\ACK\DC2\EOT\161\EOT\EOT*\SUB\159\STX\n\+ \A witness that allows us to sweep an HTLC output that we extended to a\n\+ \party, but was never fulfilled. This HTLC output isn't directly on the\n\+ \commitment transaction, but is the result of a confirmed second-level HTLC\n\+ \transaction. As a result, we can only spend this after a CSV delay.\n\+ \\n\+ \\r\n\+ \\ENQ\ENQ\SOH\STX\ACK\SOH\DC2\EOT\161\EOT\EOT%\n\+ \\r\n\+ \\ENQ\ENQ\SOH\STX\ACK\STX\DC2\EOT\161\EOT()\n\+ \\183\STX\n\+ \\EOT\ENQ\SOH\STX\a\DC2\EOT\169\EOT\EOT+\SUB\168\STX\n\+ \A witness that allows us to sweep an HTLC output that was offered to us, and\n\+ \for which we have a payment preimage. This HTLC output isn't directly on our\n\+ \commitment transaction, but is the result of confirmed second-level HTLC\n\+ \transaction. As a result, we can only spend this after a CSV delay.\n\+ \\n\+ \\r\n\+ \\ENQ\ENQ\SOH\STX\a\SOH\DC2\EOT\169\EOT\EOT&\n\+ \\r\n\+ \\ENQ\ENQ\SOH\STX\a\STX\DC2\EOT\169\EOT)*\n\+ \\236\SOH\n\+ \\EOT\ENQ\SOH\STX\b\DC2\EOT\176\EOT\EOT$\SUB\221\SOH\n\+ \A witness that allows us to sweep an HTLC that we offered to the remote\n\+ \party which lies in the commitment transaction of the remote party. We can\n\+ \spend this output after the absolute CLTV timeout of the HTLC as passed.\n\+ \\n\+ \\r\n\+ \\ENQ\ENQ\SOH\STX\b\SOH\DC2\EOT\176\EOT\EOT\US\n\+ \\r\n\+ \\ENQ\ENQ\SOH\STX\b\STX\DC2\EOT\176\EOT\"#\n\+ \\132\STX\n\+ \\EOT\ENQ\SOH\STX\t\DC2\EOT\184\EOT\EOT%\SUB\245\SOH\n\+ \A witness that allows us to sweep an HTLC that was offered to us by the\n\+ \remote party. We use this witness in the case that the remote party goes to\n\+ \chain, and we know the pre-image to the HTLC. We can sweep this without any\n\+ \additional timeout.\n\+ \\n\+ \\r\n\+ \\ENQ\ENQ\SOH\STX\t\SOH\DC2\EOT\184\EOT\EOT \n\+ \\r\n\+ \\ENQ\ENQ\SOH\STX\t\STX\DC2\EOT\184\EOT#$\n\+ \\237\SOH\n\+ \\EOT\ENQ\SOH\STX\n\+ \\DC2\EOT\191\EOT\EOT\"\SUB\222\SOH\n\+ \A witness that allows us to sweep an HTLC from the remote party's commitment\n\+ \transaction in the case that the broadcast a revoked commitment, but then\n\+ \also immediately attempt to go to the second level to claim the HTLC.\n\+ \\n\+ \\r\n\+ \\ENQ\ENQ\SOH\STX\n\+ \\SOH\DC2\EOT\191\EOT\EOT\FS\n\+ \\r\n\+ \\ENQ\ENQ\SOH\STX\n\+ \\STX\DC2\EOT\191\EOT\US!\n\+ \\158\SOH\n\+ \\EOT\ENQ\SOH\STX\v\DC2\EOT\197\EOT\EOT\SUB\SUB\143\SOH\n\+ \A witness type that allows us to spend a regular p2wkh output that's sent to\n\+ \an output which is under complete control of the backing wallet.\n\+ \\n\+ \\r\n\+ \\ENQ\ENQ\SOH\STX\v\SOH\DC2\EOT\197\EOT\EOT\DC4\n\+ \\r\n\+ \\ENQ\ENQ\SOH\STX\v\STX\DC2\EOT\197\EOT\ETB\EM\n\+ \\145\SOH\n\+ \\EOT\ENQ\SOH\STX\f\DC2\EOT\203\EOT\EOT!\SUB\130\SOH\n\+ \A witness type that allows us to sweep an output that sends to a nested P2SH\n\+ \script that pays to a key solely under our control.\n\+ \\n\+ \\r\n\+ \\ENQ\ENQ\SOH\STX\f\SOH\DC2\EOT\203\EOT\EOT\ESC\n\+ \\r\n\+ \\ENQ\ENQ\SOH\STX\f\STX\DC2\EOT\203\EOT\RS \n\+ \`\n\+ \\EOT\ENQ\SOH\STX\r\DC2\EOT\209\EOT\EOT\ESC\SUBR\n\+ \A witness type that allows us to spend our anchor on the commitment\n\+ \transaction.\n\+ \\n\+ \\r\n\+ \\ENQ\ENQ\SOH\STX\r\SOH\DC2\EOT\209\EOT\EOT\NAK\n\+ \\r\n\+ \\ENQ\ENQ\SOH\STX\r\STX\DC2\EOT\209\EOT\CAN\SUB\n\+ \\f\n\+ \\STX\EOT\SYN\DC2\ACK\212\EOT\NUL\133\ENQ\SOH\n\+ \\v\n\+ \\ETX\EOT\SYN\SOH\DC2\EOT\212\EOT\b\DC4\n\+ \E\n\+ \\EOT\EOT\SYN\STX\NUL\DC2\EOT\214\EOT\EOT \SUB7 The outpoint of the output we're attempting to sweep.\n\+ \\n\+ \\r\n\+ \\ENQ\EOT\SYN\STX\NUL\ACK\DC2\EOT\214\EOT\EOT\DC2\n\+ \\r\n\+ \\ENQ\EOT\SYN\STX\NUL\SOH\DC2\EOT\214\EOT\DC3\ESC\n\+ \\r\n\+ \\ENQ\EOT\SYN\STX\NUL\ETX\DC2\EOT\214\EOT\RS\US\n\+ \I\n\+ \\EOT\EOT\SYN\STX\SOH\DC2\EOT\217\EOT\EOT!\SUB; The witness type of the output we're attempting to sweep.\n\+ \\n\+ \\r\n\+ \\ENQ\EOT\SYN\STX\SOH\ACK\DC2\EOT\217\EOT\EOT\SI\n\+ \\r\n\+ \\ENQ\EOT\SYN\STX\SOH\SOH\DC2\EOT\217\EOT\DLE\FS\n\+ \\r\n\+ \\ENQ\EOT\SYN\STX\SOH\ETX\DC2\EOT\217\EOT\US \n\+ \B\n\+ \\EOT\EOT\SYN\STX\STX\DC2\EOT\220\EOT\EOT\SUB\SUB4 The value of the output we're attempting to sweep.\n\+ \\n\+ \\r\n\+ \\ENQ\EOT\SYN\STX\STX\ENQ\DC2\EOT\220\EOT\EOT\n\+ \\n\+ \\r\n\+ \\ENQ\EOT\SYN\STX\STX\SOH\DC2\EOT\220\EOT\v\NAK\n\+ \\r\n\+ \\ENQ\EOT\SYN\STX\STX\ETX\DC2\EOT\220\EOT\CAN\EM\n\+ \\249\SOH\n\+ \\EOT\EOT\SYN\STX\ETX\DC2\EOT\228\EOT\EOT0\SUB\234\SOH\n\+ \Deprecated, use sat_per_vbyte.\n\+ \The fee rate we'll use to sweep the output, expressed in sat/vbyte. The fee\n\+ \rate is only determined once a sweeping transaction for the output is\n\+ \created, so it's possible for this to be 0 before this.\n\+ \\n\+ \\r\n\+ \\ENQ\EOT\SYN\STX\ETX\ENQ\DC2\EOT\228\EOT\EOT\n\+ \\n\+ \\r\n\+ \\ENQ\EOT\SYN\STX\ETX\SOH\DC2\EOT\228\EOT\v\ETB\n\+ \\r\n\+ \\ENQ\EOT\SYN\STX\ETX\ETX\DC2\EOT\228\EOT\SUB\ESC\n\+ \\r\n\+ \\ENQ\EOT\SYN\STX\ETX\b\DC2\EOT\228\EOT\FS/\n\+ \\SO\n\+ \\ACK\EOT\SYN\STX\ETX\b\ETX\DC2\EOT\228\EOT\GS.\n\+ \P\n\+ \\EOT\EOT\SYN\STX\EOT\DC2\EOT\231\EOT\EOT\"\SUBB The number of broadcast attempts we've made to sweep the output.\n\+ \\n\+ \\r\n\+ \\ENQ\EOT\SYN\STX\EOT\ENQ\DC2\EOT\231\EOT\EOT\n\+ \\n\+ \\r\n\+ \\ENQ\EOT\SYN\STX\EOT\SOH\DC2\EOT\231\EOT\v\GS\n\+ \\r\n\+ \\ENQ\EOT\SYN\STX\EOT\ETX\DC2\EOT\231\EOT !\n\+ \u\n\+ \\EOT\EOT\SYN\STX\ENQ\DC2\EOT\237\EOT\EOT%\SUBg\n\+ \The next height of the chain at which we'll attempt to broadcast the\n\+ \sweep transaction of the output.\n\+ \\n\+ \\r\n\+ \\ENQ\EOT\SYN\STX\ENQ\ENQ\DC2\EOT\237\EOT\EOT\n\+ \\n\+ \\r\n\+ \\ENQ\EOT\SYN\STX\ENQ\SOH\DC2\EOT\237\EOT\v \n\+ \\r\n\+ \\ENQ\EOT\SYN\STX\ENQ\ETX\DC2\EOT\237\EOT#$\n\+ \B\n\+ \\EOT\EOT\SYN\STX\ACK\DC2\EOT\240\EOT\EOT%\SUB4 The requested confirmation target for this output.\n\+ \\n\+ \\r\n\+ \\ENQ\EOT\SYN\STX\ACK\ENQ\DC2\EOT\240\EOT\EOT\n\+ \\n\+ \\r\n\+ \\ENQ\EOT\SYN\STX\ACK\SOH\DC2\EOT\240\EOT\v \n\+ \\r\n\+ \\ENQ\EOT\SYN\STX\ACK\ETX\DC2\EOT\240\EOT#$\n\+ \z\n\+ \\EOT\EOT\SYN\STX\a\DC2\EOT\244\EOT\EOT:\SUBl Deprecated, use requested_sat_per_vbyte.\n\+ \ The requested fee rate, expressed in sat/vbyte, for this output.\n\+ \\n\+ \\r\n\+ \\ENQ\EOT\SYN\STX\a\ENQ\DC2\EOT\244\EOT\EOT\n\+ \\n\+ \\r\n\+ \\ENQ\EOT\SYN\STX\a\SOH\DC2\EOT\244\EOT\v!\n\+ \\r\n\+ \\ENQ\EOT\SYN\STX\a\ETX\DC2\EOT\244\EOT$%\n\+ \\r\n\+ \\ENQ\EOT\SYN\STX\a\b\DC2\EOT\244\EOT&9\n\+ \\SO\n\+ \\ACK\EOT\SYN\STX\a\b\ETX\DC2\EOT\244\EOT'8\n\+ \\218\SOH\n\+ \\EOT\EOT\SYN\STX\b\DC2\EOT\251\EOT\EOT\RS\SUB\203\SOH\n\+ \The fee rate we'll use to sweep the output, expressed in sat/vbyte. The fee\n\+ \rate is only determined once a sweeping transaction for the output is\n\+ \created, so it's possible for this to be 0 before this.\n\+ \\n\+ \\r\n\+ \\ENQ\EOT\SYN\STX\b\ENQ\DC2\EOT\251\EOT\EOT\n\+ \\n\+ \\r\n\+ \\ENQ\EOT\SYN\STX\b\SOH\DC2\EOT\251\EOT\v\CAN\n\+ \\r\n\+ \\ENQ\EOT\SYN\STX\b\ETX\DC2\EOT\251\EOT\ESC\GS\n\+ \P\n\+ \\EOT\EOT\SYN\STX\t\DC2\EOT\254\EOT\EOT(\SUBB The requested fee rate, expressed in sat/vbyte, for this output.\n\+ \\n\+ \\r\n\+ \\ENQ\EOT\SYN\STX\t\ENQ\DC2\EOT\254\EOT\EOT\n\+ \\n\+ \\r\n\+ \\ENQ\EOT\SYN\STX\t\SOH\DC2\EOT\254\EOT\v\"\n\+ \\r\n\+ \\ENQ\EOT\SYN\STX\t\ETX\DC2\EOT\254\EOT%'\n\+ \t\n\+ \\EOT\EOT\SYN\STX\n\+ \\DC2\EOT\132\ENQ\EOT\DC3\SUBf\n\+ \Whether this input must be force-swept. This means that it is swept even\n\+ \if it has a negative yield.\n\+ \\n\+ \\r\n\+ \\ENQ\EOT\SYN\STX\n\+ \\ENQ\DC2\EOT\132\ENQ\EOT\b\n\+ \\r\n\+ \\ENQ\EOT\SYN\STX\n\+ \\SOH\DC2\EOT\132\ENQ\t\SO\n\+ \\r\n\+ \\ENQ\EOT\SYN\STX\n\+ \\ETX\DC2\EOT\132\ENQ\DC1\DC2\n\+ \\f\n\+ \\STX\EOT\ETB\DC2\ACK\135\ENQ\NUL\136\ENQ\SOH\n\+ \\v\n\+ \\ETX\EOT\ETB\SOH\DC2\EOT\135\ENQ\b\FS\n\+ \\f\n\+ \\STX\EOT\CAN\DC2\ACK\138\ENQ\NUL\143\ENQ\SOH\n\+ \\v\n\+ \\ETX\EOT\CAN\SOH\DC2\EOT\138\ENQ\b\GS\n\+ \Z\n\+ \\EOT\EOT\CAN\STX\NUL\DC2\EOT\142\ENQ\EOT-\SUBL\n\+ \The set of outputs currently being swept by lnd's central batching engine.\n\+ \\n\+ \\r\n\+ \\ENQ\EOT\CAN\STX\NUL\EOT\DC2\EOT\142\ENQ\EOT\f\n\+ \\r\n\+ \\ENQ\EOT\CAN\STX\NUL\ACK\DC2\EOT\142\ENQ\r\EM\n\+ \\r\n\+ \\ENQ\EOT\CAN\STX\NUL\SOH\DC2\EOT\142\ENQ\SUB(\n\+ \\r\n\+ \\ENQ\EOT\CAN\STX\NUL\ETX\DC2\EOT\142\ENQ+,\n\+ \\f\n\+ \\STX\EOT\EM\DC2\ACK\145\ENQ\NUL\170\ENQ\SOH\n\+ \\v\n\+ \\ETX\EOT\EM\SOH\DC2\EOT\145\ENQ\b\SYN\n\+ \>\n\+ \\EOT\EOT\EM\STX\NUL\DC2\EOT\147\ENQ\EOT \SUB0 The input we're attempting to bump the fee of.\n\+ \\n\+ \\r\n\+ \\ENQ\EOT\EM\STX\NUL\ACK\DC2\EOT\147\ENQ\EOT\DC2\n\+ \\r\n\+ \\ENQ\EOT\EM\STX\NUL\SOH\DC2\EOT\147\ENQ\DC3\ESC\n\+ \\r\n\+ \\ENQ\EOT\EM\STX\NUL\ETX\DC2\EOT\147\ENQ\RS\US\n\+ \R\n\+ \\EOT\EOT\EM\STX\SOH\DC2\EOT\150\ENQ\EOT\ESC\SUBD The target number of blocks that the input should be spent within.\n\+ \\n\+ \\r\n\+ \\ENQ\EOT\EM\STX\SOH\ENQ\DC2\EOT\150\ENQ\EOT\n\+ \\n\+ \\r\n\+ \\ENQ\EOT\EM\STX\SOH\SOH\DC2\EOT\150\ENQ\v\SYN\n\+ \\r\n\+ \\ENQ\EOT\EM\STX\SOH\ETX\DC2\EOT\150\ENQ\EM\SUB\n\+ \\129\SOH\n\+ \\EOT\EOT\EM\STX\STX\DC2\EOT\157\ENQ\EOT0\SUBs\n\+ \Deprecated, use sat_per_vbyte.\n\+ \The fee rate, expressed in sat/vbyte, that should be used to spend the input\n\+ \with.\n\+ \\n\+ \\r\n\+ \\ENQ\EOT\EM\STX\STX\ENQ\DC2\EOT\157\ENQ\EOT\n\+ \\n\+ \\r\n\+ \\ENQ\EOT\EM\STX\STX\SOH\DC2\EOT\157\ENQ\v\ETB\n\+ \\r\n\+ \\ENQ\EOT\EM\STX\STX\ETX\DC2\EOT\157\ENQ\SUB\ESC\n\+ \\r\n\+ \\ENQ\EOT\EM\STX\STX\b\DC2\EOT\157\ENQ\FS/\n\+ \\SO\n\+ \\ACK\EOT\EM\STX\STX\b\ETX\DC2\EOT\157\ENQ\GS.\n\+ \t\n\+ \\EOT\EOT\EM\STX\ETX\DC2\EOT\163\ENQ\EOT\DC3\SUBf\n\+ \Whether this input must be force-swept. This means that it is swept even\n\+ \if it has a negative yield.\n\+ \\n\+ \\r\n\+ \\ENQ\EOT\EM\STX\ETX\ENQ\DC2\EOT\163\ENQ\EOT\b\n\+ \\r\n\+ \\ENQ\EOT\EM\STX\ETX\SOH\DC2\EOT\163\ENQ\t\SO\n\+ \\r\n\+ \\ENQ\EOT\EM\STX\ETX\ETX\DC2\EOT\163\ENQ\DC1\DC2\n\+ \b\n\+ \\EOT\EOT\EM\STX\EOT\DC2\EOT\169\ENQ\EOT\GS\SUBT\n\+ \The fee rate, expressed in sat/vbyte, that should be used to spend the input\n\+ \with.\n\+ \\n\+ \\r\n\+ \\ENQ\EOT\EM\STX\EOT\ENQ\DC2\EOT\169\ENQ\EOT\n\+ \\n\+ \\r\n\+ \\ENQ\EOT\EM\STX\EOT\SOH\DC2\EOT\169\ENQ\v\CAN\n\+ \\r\n\+ \\ENQ\EOT\EM\STX\EOT\ETX\DC2\EOT\169\ENQ\ESC\FS\n\+ \\f\n\+ \\STX\EOT\SUB\DC2\ACK\172\ENQ\NUL\173\ENQ\SOH\n\+ \\v\n\+ \\ETX\EOT\SUB\SOH\DC2\EOT\172\ENQ\b\ETB\n\+ \\f\n\+ \\STX\EOT\ESC\DC2\ACK\175\ENQ\NUL\182\ENQ\SOH\n\+ \\v\n\+ \\ETX\EOT\ESC\SOH\DC2\EOT\175\ENQ\b\EM\n\+ \\223\SOH\n\+ \\EOT\EOT\ESC\STX\NUL\DC2\EOT\181\ENQ\EOT\NAK\SUB\208\SOH\n\+ \Retrieve the full sweep transaction details. If false, only the sweep txids\n\+ \will be returned. Note that some sweeps that LND publishes will have been\n\+ \replaced-by-fee, so will not be included in this output.\n\+ \\n\+ \\r\n\+ \\ENQ\EOT\ESC\STX\NUL\ENQ\DC2\EOT\181\ENQ\EOT\b\n\+ \\r\n\+ \\ENQ\EOT\ESC\STX\NUL\SOH\DC2\EOT\181\ENQ\t\DLE\n\+ \\r\n\+ \\ENQ\EOT\ESC\STX\NUL\ETX\DC2\EOT\181\ENQ\DC3\DC4\n\+ \\f\n\+ \\STX\EOT\FS\DC2\ACK\184\ENQ\NUL\198\ENQ\SOH\n\+ \\v\n\+ \\ETX\EOT\FS\SOH\DC2\EOT\184\ENQ\b\SUB\n\+ \\SO\n\+ \\EOT\EOT\FS\ETX\NUL\DC2\ACK\185\ENQ\EOT\192\ENQ\ENQ\n\+ \\r\n\+ \\ENQ\EOT\FS\ETX\NUL\SOH\DC2\EOT\185\ENQ\f\SUB\n\+ \\229\SOH\n\+ \\ACK\EOT\FS\ETX\NUL\STX\NUL\DC2\EOT\191\ENQ\b,\SUB\212\SOH\n\+ \Reversed, hex-encoded string representing the transaction ids of the\n\+ \sweeps that our node has broadcast. Note that these transactions may\n\+ \not have confirmed yet, we record sweeps on broadcast, not confirmation.\n\+ \\n\+ \\SI\n\+ \\a\EOT\FS\ETX\NUL\STX\NUL\EOT\DC2\EOT\191\ENQ\b\DLE\n\+ \\SI\n\+ \\a\EOT\FS\ETX\NUL\STX\NUL\ENQ\DC2\EOT\191\ENQ\DC1\ETB\n\+ \\SI\n\+ \\a\EOT\FS\ETX\NUL\STX\NUL\SOH\DC2\EOT\191\ENQ\CAN'\n\+ \\SI\n\+ \\a\EOT\FS\ETX\NUL\STX\NUL\ETX\DC2\EOT\191\ENQ*+\n\+ \\SO\n\+ \\EOT\EOT\FS\b\NUL\DC2\ACK\194\ENQ\EOT\197\ENQ\ENQ\n\+ \\r\n\+ \\ENQ\EOT\FS\b\NUL\SOH\DC2\EOT\194\ENQ\n\+ \\DLE\n\+ \\f\n\+ \\EOT\EOT\FS\STX\NUL\DC2\EOT\195\ENQ\b9\n\+ \\r\n\+ \\ENQ\EOT\FS\STX\NUL\ACK\DC2\EOT\195\ENQ\b \n\+ \\r\n\+ \\ENQ\EOT\FS\STX\NUL\SOH\DC2\EOT\195\ENQ!4\n\+ \\r\n\+ \\ENQ\EOT\FS\STX\NUL\ETX\DC2\EOT\195\ENQ78\n\+ \\f\n\+ \\EOT\EOT\FS\STX\SOH\DC2\EOT\196\ENQ\b+\n\+ \\r\n\+ \\ENQ\EOT\FS\STX\SOH\ACK\DC2\EOT\196\ENQ\b\SYN\n\+ \\r\n\+ \\ENQ\EOT\FS\STX\SOH\SOH\DC2\EOT\196\ENQ\ETB&\n\+ \\r\n\+ \\ENQ\EOT\FS\STX\SOH\ETX\DC2\EOT\196\ENQ)*\n\+ \\f\n\+ \\STX\EOT\GS\DC2\ACK\200\ENQ\NUL\209\ENQ\SOH\n\+ \\v\n\+ \\ETX\EOT\GS\SOH\DC2\EOT\200\ENQ\b\US\n\+ \5\n\+ \\EOT\EOT\GS\STX\NUL\DC2\EOT\202\ENQ\EOT\DC3\SUB' The txid of the transaction to label.\n\+ \\n\+ \\r\n\+ \\ENQ\EOT\GS\STX\NUL\ENQ\DC2\EOT\202\ENQ\EOT\t\n\+ \\r\n\+ \\ENQ\EOT\GS\STX\NUL\SOH\DC2\EOT\202\ENQ\n\+ \\SO\n\+ \\r\n\+ \\ENQ\EOT\GS\STX\NUL\ETX\DC2\EOT\202\ENQ\DC1\DC2\n\+ \O\n\+ \\EOT\EOT\GS\STX\SOH\DC2\EOT\205\ENQ\EOT\NAK\SUBA The label to add to the transaction, limited to 500 characters.\n\+ \\n\+ \\r\n\+ \\ENQ\EOT\GS\STX\SOH\ENQ\DC2\EOT\205\ENQ\EOT\n\+ \\n\+ \\r\n\+ \\ENQ\EOT\GS\STX\SOH\SOH\DC2\EOT\205\ENQ\v\DLE\n\+ \\r\n\+ \\ENQ\EOT\GS\STX\SOH\ETX\DC2\EOT\205\ENQ\DC3\DC4\n\+ \J\n\+ \\EOT\EOT\GS\STX\STX\DC2\EOT\208\ENQ\EOT\ETB\SUB< Whether to overwrite the existing label, if it is present.\n\+ \\n\+ \\r\n\+ \\ENQ\EOT\GS\STX\STX\ENQ\DC2\EOT\208\ENQ\EOT\b\n\+ \\r\n\+ \\ENQ\EOT\GS\STX\STX\SOH\DC2\EOT\208\ENQ\t\DC2\n\+ \\r\n\+ \\ENQ\EOT\GS\STX\STX\ETX\DC2\EOT\208\ENQ\NAK\SYN\n\+ \\f\n\+ \\STX\EOT\RS\DC2\ACK\211\ENQ\NUL\212\ENQ\SOH\n\+ \\v\n\+ \\ETX\EOT\RS\SOH\DC2\EOT\211\ENQ\b \n\+ \\f\n\+ \\STX\EOT\US\DC2\ACK\214\ENQ\NUL\131\ACK\SOH\n\+ \\v\n\+ \\ETX\EOT\US\SOH\DC2\EOT\214\ENQ\b\ETB\n\+ \\SO\n\+ \\EOT\EOT\US\b\NUL\DC2\ACK\215\ENQ\EOT\232\ENQ\ENQ\n\+ \\r\n\+ \\ENQ\EOT\US\b\NUL\SOH\DC2\EOT\215\ENQ\n\+ \\DC2\n\+ \\221\ETX\n\+ \\EOT\EOT\US\STX\NUL\DC2\EOT\226\ENQ\b\ETB\SUB\206\ETX\n\+ \Use an existing PSBT packet as the template for the funded PSBT.\n\+ \\n\+ \The packet must contain at least one non-dust output. If one or more\n\+ \inputs are specified, no coin selection is performed. In that case every\n\+ \input must be an UTXO known to the wallet that has not been locked\n\+ \before. The sum of all inputs must be sufficiently greater than the sum\n\+ \of all outputs to pay a miner fee with the specified fee rate. A change\n\+ \output is added to the PSBT if necessary.\n\+ \\n\+ \\r\n\+ \\ENQ\EOT\US\STX\NUL\ENQ\DC2\EOT\226\ENQ\b\r\n\+ \\r\n\+ \\ENQ\EOT\US\STX\NUL\SOH\DC2\EOT\226\ENQ\SO\DC2\n\+ \\r\n\+ \\ENQ\EOT\US\STX\NUL\ETX\DC2\EOT\226\ENQ\NAK\SYN\n\+ \K\n\+ \\EOT\EOT\US\STX\SOH\DC2\EOT\231\ENQ\b\ESC\SUB=\n\+ \Use the outputs and optional inputs from this raw template.\n\+ \\n\+ \\r\n\+ \\ENQ\EOT\US\STX\SOH\ACK\DC2\EOT\231\ENQ\b\DC2\n\+ \\r\n\+ \\ENQ\EOT\US\STX\SOH\SOH\DC2\EOT\231\ENQ\DC3\SYN\n\+ \\r\n\+ \\ENQ\EOT\US\STX\SOH\ETX\DC2\EOT\231\ENQ\EM\SUB\n\+ \\SO\n\+ \\EOT\EOT\US\b\SOH\DC2\ACK\234\ENQ\EOT\245\ENQ\ENQ\n\+ \\r\n\+ \\ENQ\EOT\US\b\SOH\SOH\DC2\EOT\234\ENQ\n\+ \\SO\n\+ \X\n\+ \\EOT\EOT\US\STX\STX\DC2\EOT\238\ENQ\b\US\SUBJ\n\+ \The target number of blocks that the transaction should be confirmed in.\n\+ \\n\+ \\r\n\+ \\ENQ\EOT\US\STX\STX\ENQ\DC2\EOT\238\ENQ\b\SO\n\+ \\r\n\+ \\ENQ\EOT\US\STX\STX\SOH\DC2\EOT\238\ENQ\SI\SUB\n\+ \\r\n\+ \\ENQ\EOT\US\STX\STX\ETX\DC2\EOT\238\ENQ\GS\RS\n\+ \b\n\+ \\EOT\EOT\US\STX\ETX\DC2\EOT\244\ENQ\b!\SUBT\n\+ \The fee rate, expressed in sat/vbyte, that should be used to spend the\n\+ \input with.\n\+ \\n\+ \\r\n\+ \\ENQ\EOT\US\STX\ETX\ENQ\DC2\EOT\244\ENQ\b\SO\n\+ \\r\n\+ \\ENQ\EOT\US\STX\ETX\SOH\DC2\EOT\244\ENQ\SI\FS\n\+ \\r\n\+ \\ENQ\EOT\US\STX\ETX\ETX\DC2\EOT\244\ENQ\US \n\+ \l\n\+ \\EOT\EOT\US\STX\EOT\DC2\EOT\251\ENQ\EOT\ETB\SUB^\n\+ \The name of the account to fund the PSBT with. If empty, the default wallet\n\+ \account is used.\n\+ \\n\+ \\r\n\+ \\ENQ\EOT\US\STX\EOT\ENQ\DC2\EOT\251\ENQ\EOT\n\+ \\n\+ \\r\n\+ \\ENQ\EOT\US\STX\EOT\SOH\DC2\EOT\251\ENQ\v\DC2\n\+ \\r\n\+ \\ENQ\EOT\US\STX\EOT\ETX\DC2\EOT\251\ENQ\NAK\SYN\n\+ \t\n\+ \\EOT\EOT\US\STX\ENQ\DC2\EOT\255\ENQ\EOT\CAN\SUBf The minimum number of confirmations each one of your outputs used for\n\+ \ the transaction must satisfy.\n\+ \\n\+ \\r\n\+ \\ENQ\EOT\US\STX\ENQ\ENQ\DC2\EOT\255\ENQ\EOT\t\n\+ \\r\n\+ \\ENQ\EOT\US\STX\ENQ\SOH\DC2\EOT\255\ENQ\n\+ \\DC3\n\+ \\r\n\+ \\ENQ\EOT\US\STX\ENQ\ETX\DC2\EOT\255\ENQ\SYN\ETB\n\+ \Y\n\+ \\EOT\EOT\US\STX\ACK\DC2\EOT\130\ACK\EOT\US\SUBK Whether unconfirmed outputs should be used as inputs for the transaction.\n\+ \\n\+ \\r\n\+ \\ENQ\EOT\US\STX\ACK\ENQ\DC2\EOT\130\ACK\EOT\b\n\+ \\r\n\+ \\ENQ\EOT\US\STX\ACK\SOH\DC2\EOT\130\ACK\t\SUB\n\+ \\r\n\+ \\ENQ\EOT\US\STX\ACK\ETX\DC2\EOT\130\ACK\GS\RS\n\+ \\f\n\+ \\STX\EOT \DC2\ACK\132\ACK\NUL\148\ACK\SOH\n\+ \\v\n\+ \\ETX\EOT \SOH\DC2\EOT\132\ACK\b\CAN\n\+ \:\n\+ \\EOT\EOT \STX\NUL\DC2\EOT\136\ACK\EOT\SUB\SUB,\n\+ \The funded but not yet signed PSBT packet.\n\+ \\n\+ \\r\n\+ \\ENQ\EOT \STX\NUL\ENQ\DC2\EOT\136\ACK\EOT\t\n\+ \\r\n\+ \\ENQ\EOT \STX\NUL\SOH\DC2\EOT\136\ACK\n\+ \\NAK\n\+ \\r\n\+ \\ENQ\EOT \STX\NUL\ETX\DC2\EOT\136\ACK\CAN\EM\n\+ \V\n\+ \\EOT\EOT \STX\SOH\DC2\EOT\141\ACK\EOT\"\SUBH\n\+ \The index of the added change output or -1 if no change was left over.\n\+ \\n\+ \\r\n\+ \\ENQ\EOT \STX\SOH\ENQ\DC2\EOT\141\ACK\EOT\t\n\+ \\r\n\+ \\ENQ\EOT \STX\SOH\SOH\DC2\EOT\141\ACK\n\+ \\GS\n\+ \\r\n\+ \\ENQ\EOT \STX\SOH\ETX\DC2\EOT\141\ACK !\n\+ \d\n\+ \\EOT\EOT \STX\STX\DC2\EOT\147\ACK\EOT(\SUBV\n\+ \The list of lock leases that were acquired for the inputs in the funded PSBT\n\+ \packet.\n\+ \\n\+ \\r\n\+ \\ENQ\EOT \STX\STX\EOT\DC2\EOT\147\ACK\EOT\f\n\+ \\r\n\+ \\ENQ\EOT \STX\STX\ACK\DC2\EOT\147\ACK\r\SYN\n\+ \\r\n\+ \\ENQ\EOT \STX\STX\SOH\DC2\EOT\147\ACK\ETB#\n\+ \\r\n\+ \\ENQ\EOT \STX\STX\ETX\DC2\EOT\147\ACK&'\n\+ \\f\n\+ \\STX\EOT!\DC2\ACK\150\ACK\NUL\166\ACK\SOH\n\+ \\v\n\+ \\ETX\EOT!\SOH\DC2\EOT\150\ACK\b\DC2\n\+ \\163\ETX\n\+ \\EOT\EOT!\STX\NUL\DC2\EOT\160\ACK\EOT'\SUB\148\ETX\n\+ \An optional list of inputs to use. Every input must be an UTXO known to the\n\+ \wallet that has not been locked before. The sum of all inputs must be\n\+ \sufficiently greater than the sum of all outputs to pay a miner fee with the\n\+ \fee rate specified in the parent message.\n\+ \\n\+ \If no inputs are specified, coin selection will be performed instead and\n\+ \inputs of sufficient value will be added to the resulting PSBT.\n\+ \\n\+ \\r\n\+ \\ENQ\EOT!\STX\NUL\EOT\DC2\EOT\160\ACK\EOT\f\n\+ \\r\n\+ \\ENQ\EOT!\STX\NUL\ACK\DC2\EOT\160\ACK\r\ESC\n\+ \\r\n\+ \\ENQ\EOT!\STX\NUL\SOH\DC2\EOT\160\ACK\FS\"\n\+ \\r\n\+ \\ENQ\EOT!\STX\NUL\ETX\DC2\EOT\160\ACK%&\n\+ \U\n\+ \\EOT\EOT!\STX\SOH\DC2\EOT\165\ACK\EOT$\SUBG\n\+ \A map of all addresses and the amounts to send to in the funded PSBT.\n\+ \\n\+ \\r\n\+ \\ENQ\EOT!\STX\SOH\ACK\DC2\EOT\165\ACK\EOT\ETB\n\+ \\r\n\+ \\ENQ\EOT!\STX\SOH\SOH\DC2\EOT\165\ACK\CAN\US\n\+ \\r\n\+ \\ENQ\EOT!\STX\SOH\ETX\DC2\EOT\165\ACK\"#\n\+ \\f\n\+ \\STX\EOT\"\DC2\ACK\168\ACK\NUL\181\ACK\SOH\n\+ \\v\n\+ \\ETX\EOT\"\SOH\DC2\EOT\168\ACK\b\DC1\n\+ \>\n\+ \\EOT\EOT\"\STX\NUL\DC2\EOT\172\ACK\EOT\DC1\SUB0\n\+ \A 32 byte random ID that identifies the lease.\n\+ \\n\+ \\r\n\+ \\ENQ\EOT\"\STX\NUL\ENQ\DC2\EOT\172\ACK\EOT\t\n\+ \\r\n\+ \\ENQ\EOT\"\STX\NUL\SOH\DC2\EOT\172\ACK\n\+ \\f\n\+ \\r\n\+ \\ENQ\EOT\"\STX\NUL\ETX\DC2\EOT\172\ACK\SI\DLE\n\+ \D\n\+ \\EOT\EOT\"\STX\SOH\DC2\EOT\175\ACK\EOT \SUB6 The identifying outpoint of the output being leased.\n\+ \\n\+ \\r\n\+ \\ENQ\EOT\"\STX\SOH\ACK\DC2\EOT\175\ACK\EOT\DC2\n\+ \\r\n\+ \\ENQ\EOT\"\STX\SOH\SOH\DC2\EOT\175\ACK\DC3\ESC\n\+ \\r\n\+ \\ENQ\EOT\"\STX\SOH\ETX\DC2\EOT\175\ACK\RS\US\n\+ \\\\n\+ \\EOT\EOT\"\STX\STX\DC2\EOT\180\ACK\EOT\SUB\SUBN\n\+ \The absolute expiration of the output lease represented as a unix timestamp.\n\+ \\n\+ \\r\n\+ \\ENQ\EOT\"\STX\STX\ENQ\DC2\EOT\180\ACK\EOT\n\+ \\n\+ \\r\n\+ \\ENQ\EOT\"\STX\STX\SOH\DC2\EOT\180\ACK\v\NAK\n\+ \\r\n\+ \\ENQ\EOT\"\STX\STX\ETX\DC2\EOT\180\ACK\CAN\EM\n\+ \\f\n\+ \\STX\EOT#\DC2\ACK\183\ACK\NUL\196\ACK\SOH\n\+ \\v\n\+ \\ETX\EOT#\SOH\DC2\EOT\183\ACK\b\ESC\n\+ \\167\SOH\n\+ \\EOT\EOT#\STX\NUL\DC2\EOT\189\ACK\EOT\SUB\SUB\152\SOH\n\+ \A PSBT that should be signed and finalized. The PSBT must contain all\n\+ \required inputs, outputs, UTXO data and partial signatures of all other\n\+ \signers.\n\+ \\n\+ \\r\n\+ \\ENQ\EOT#\STX\NUL\ENQ\DC2\EOT\189\ACK\EOT\t\n\+ \\r\n\+ \\ENQ\EOT#\STX\NUL\SOH\DC2\EOT\189\ACK\n\+ \\NAK\n\+ \\r\n\+ \\ENQ\EOT#\STX\NUL\ETX\DC2\EOT\189\ACK\CAN\EM\n\+ \p\n\+ \\EOT\EOT#\STX\SOH\DC2\EOT\195\ACK\EOT\ETB\SUBb\n\+ \The name of the account to finalize the PSBT with. If empty, the default\n\+ \wallet account is used.\n\+ \\n\+ \\r\n\+ \\ENQ\EOT#\STX\SOH\ENQ\DC2\EOT\195\ACK\EOT\n\+ \\n\+ \\r\n\+ \\ENQ\EOT#\STX\SOH\SOH\DC2\EOT\195\ACK\v\DC2\n\+ \\r\n\+ \\ENQ\EOT#\STX\SOH\ETX\DC2\EOT\195\ACK\NAK\SYN\n\+ \\f\n\+ \\STX\EOT$\DC2\ACK\197\ACK\NUL\203\ACK\SOH\n\+ \\v\n\+ \\ETX\EOT$\SOH\DC2\EOT\197\ACK\b\FS\n\+ \J\n\+ \\EOT\EOT$\STX\NUL\DC2\EOT\199\ACK\EOT\SUB\SUB< The fully signed and finalized transaction in PSBT format.\n\+ \\n\+ \\r\n\+ \\ENQ\EOT$\STX\NUL\ENQ\DC2\EOT\199\ACK\EOT\t\n\+ \\r\n\+ \\ENQ\EOT$\STX\NUL\SOH\DC2\EOT\199\ACK\n\+ \\NAK\n\+ \\r\n\+ \\ENQ\EOT$\STX\NUL\ETX\DC2\EOT\199\ACK\CAN\EM\n\+ \R\n\+ \\EOT\EOT$\STX\SOH\DC2\EOT\202\ACK\EOT\ESC\SUBD The fully signed and finalized transaction in the raw wire format.\n\+ \\n\+ \\r\n\+ \\ENQ\EOT$\STX\SOH\ENQ\DC2\EOT\202\ACK\EOT\t\n\+ \\r\n\+ \\ENQ\EOT$\STX\SOH\SOH\DC2\EOT\202\ACK\n\+ \\SYN\n\+ \\r\n\+ \\ENQ\EOT$\STX\SOH\ETX\DC2\EOT\202\ACK\EM\SUB\n\+ \\f\n\+ \\STX\EOT%\DC2\ACK\205\ACK\NUL\206\ACK\SOH\n\+ \\v\n\+ \\ETX\EOT%\SOH\DC2\EOT\205\ACK\b\EM\n\+ \\f\n\+ \\STX\EOT&\DC2\ACK\208\ACK\NUL\211\ACK\SOH\n\+ \\v\n\+ \\ETX\EOT&\SOH\DC2\EOT\208\ACK\b\SUB\n\+ \3\n\+ \\EOT\EOT&\STX\NUL\DC2\EOT\210\ACK\EOT(\SUB% The list of currently leased utxos.\n\+ \\n\+ \\r\n\+ \\ENQ\EOT&\STX\NUL\EOT\DC2\EOT\210\ACK\EOT\f\n\+ \\r\n\+ \\ENQ\EOT&\STX\NUL\ACK\DC2\EOT\210\ACK\r\SYN\n\+ \\r\n\+ \\ENQ\EOT&\STX\NUL\SOH\DC2\EOT\210\ACK\ETB#\n\+ \\r\n\+ \\ENQ\EOT&\STX\NUL\ETX\DC2\EOT\210\ACK&'b\ACKproto3"
@@ -0,0 +1,511 @@+{- This file was auto-generated from walletrpc/walletkit.proto by the proto-lens-protoc program. -}+{-# LANGUAGE ScopedTypeVariables, DataKinds, TypeFamilies, UndecidableInstances, GeneralizedNewtypeDeriving, MultiParamTypeClasses, FlexibleContexts, FlexibleInstances, PatternSynonyms, MagicHash, NoImplicitPrelude, BangPatterns, TypeApplications, OverloadedStrings, DerivingStrategies, DeriveGeneric#-}+{-# OPTIONS_GHC -Wno-unused-imports#-}+{-# OPTIONS_GHC -Wno-duplicate-exports#-}+{-# OPTIONS_GHC -Wno-dodgy-exports#-}+module Proto.Walletrpc.Walletkit_Fields where+import qualified Data.ProtoLens.Runtime.Prelude as Prelude+import qualified Data.ProtoLens.Runtime.Data.Int as Data.Int+import qualified Data.ProtoLens.Runtime.Data.Monoid as Data.Monoid+import qualified Data.ProtoLens.Runtime.Data.Word as Data.Word+import qualified Data.ProtoLens.Runtime.Data.ProtoLens as Data.ProtoLens+import qualified Data.ProtoLens.Runtime.Data.ProtoLens.Encoding.Bytes as Data.ProtoLens.Encoding.Bytes+import qualified Data.ProtoLens.Runtime.Data.ProtoLens.Encoding.Growing as Data.ProtoLens.Encoding.Growing+import qualified Data.ProtoLens.Runtime.Data.ProtoLens.Encoding.Parser.Unsafe as Data.ProtoLens.Encoding.Parser.Unsafe+import qualified Data.ProtoLens.Runtime.Data.ProtoLens.Encoding.Wire as Data.ProtoLens.Encoding.Wire+import qualified Data.ProtoLens.Runtime.Data.ProtoLens.Field as Data.ProtoLens.Field+import qualified Data.ProtoLens.Runtime.Data.ProtoLens.Message.Enum as Data.ProtoLens.Message.Enum+import qualified Data.ProtoLens.Runtime.Data.ProtoLens.Service.Types as Data.ProtoLens.Service.Types+import qualified Data.ProtoLens.Runtime.Lens.Family2 as Lens.Family2+import qualified Data.ProtoLens.Runtime.Lens.Family2.Unchecked as Lens.Family2.Unchecked+import qualified Data.ProtoLens.Runtime.Data.Text as Data.Text+import qualified Data.ProtoLens.Runtime.Data.Map as Data.Map+import qualified Data.ProtoLens.Runtime.Data.ByteString as Data.ByteString+import qualified Data.ProtoLens.Runtime.Data.ByteString.Char8 as Data.ByteString.Char8+import qualified Data.ProtoLens.Runtime.Data.Text.Encoding as Data.Text.Encoding+import qualified Data.ProtoLens.Runtime.Data.Vector as Data.Vector+import qualified Data.ProtoLens.Runtime.Data.Vector.Generic as Data.Vector.Generic+import qualified Data.ProtoLens.Runtime.Data.Vector.Unboxed as Data.Vector.Unboxed+import qualified Data.ProtoLens.Runtime.Text.Read as Text.Read+import qualified Proto.Lightning+import qualified Proto.Lnrpc.Ln0+import qualified Proto.Signrpc.Signer+account ::+ forall f s a.+ (Prelude.Functor f, Data.ProtoLens.Field.HasField s "account" a) =>+ Lens.Family2.LensLike' f s a+account = Data.ProtoLens.Field.field @"account"+accounts ::+ forall f s a.+ (Prelude.Functor f,+ Data.ProtoLens.Field.HasField s "accounts" a) =>+ Lens.Family2.LensLike' f s a+accounts = Data.ProtoLens.Field.field @"accounts"+addr ::+ forall f s a.+ (Prelude.Functor f, Data.ProtoLens.Field.HasField s "addr" a) =>+ Lens.Family2.LensLike' f s a+addr = Data.ProtoLens.Field.field @"addr"+addressType ::+ forall f s a.+ (Prelude.Functor f,+ Data.ProtoLens.Field.HasField s "addressType" a) =>+ Lens.Family2.LensLike' f s a+addressType = Data.ProtoLens.Field.field @"addressType"+amountSat ::+ forall f s a.+ (Prelude.Functor f,+ Data.ProtoLens.Field.HasField s "amountSat" a) =>+ Lens.Family2.LensLike' f s a+amountSat = Data.ProtoLens.Field.field @"amountSat"+broadcastAttempts ::+ forall f s a.+ (Prelude.Functor f,+ Data.ProtoLens.Field.HasField s "broadcastAttempts" a) =>+ Lens.Family2.LensLike' f s a+broadcastAttempts = Data.ProtoLens.Field.field @"broadcastAttempts"+change ::+ forall f s a.+ (Prelude.Functor f, Data.ProtoLens.Field.HasField s "change" a) =>+ Lens.Family2.LensLike' f s a+change = Data.ProtoLens.Field.field @"change"+changeOutputIndex ::+ forall f s a.+ (Prelude.Functor f,+ Data.ProtoLens.Field.HasField s "changeOutputIndex" a) =>+ Lens.Family2.LensLike' f s a+changeOutputIndex = Data.ProtoLens.Field.field @"changeOutputIndex"+confTarget ::+ forall f s a.+ (Prelude.Functor f,+ Data.ProtoLens.Field.HasField s "confTarget" a) =>+ Lens.Family2.LensLike' f s a+confTarget = Data.ProtoLens.Field.field @"confTarget"+derivationPath ::+ forall f s a.+ (Prelude.Functor f,+ Data.ProtoLens.Field.HasField s "derivationPath" a) =>+ Lens.Family2.LensLike' f s a+derivationPath = Data.ProtoLens.Field.field @"derivationPath"+dryRun ::+ forall f s a.+ (Prelude.Functor f, Data.ProtoLens.Field.HasField s "dryRun" a) =>+ Lens.Family2.LensLike' f s a+dryRun = Data.ProtoLens.Field.field @"dryRun"+dryRunExternalAddrs ::+ forall f s a.+ (Prelude.Functor f,+ Data.ProtoLens.Field.HasField s "dryRunExternalAddrs" a) =>+ Lens.Family2.LensLike' f s a+dryRunExternalAddrs+ = Data.ProtoLens.Field.field @"dryRunExternalAddrs"+dryRunInternalAddrs ::+ forall f s a.+ (Prelude.Functor f,+ Data.ProtoLens.Field.HasField s "dryRunInternalAddrs" a) =>+ Lens.Family2.LensLike' f s a+dryRunInternalAddrs+ = Data.ProtoLens.Field.field @"dryRunInternalAddrs"+expiration ::+ forall f s a.+ (Prelude.Functor f,+ Data.ProtoLens.Field.HasField s "expiration" a) =>+ Lens.Family2.LensLike' f s a+expiration = Data.ProtoLens.Field.field @"expiration"+expirationSeconds ::+ forall f s a.+ (Prelude.Functor f,+ Data.ProtoLens.Field.HasField s "expirationSeconds" a) =>+ Lens.Family2.LensLike' f s a+expirationSeconds = Data.ProtoLens.Field.field @"expirationSeconds"+extendedPublicKey ::+ forall f s a.+ (Prelude.Functor f,+ Data.ProtoLens.Field.HasField s "extendedPublicKey" a) =>+ Lens.Family2.LensLike' f s a+extendedPublicKey = Data.ProtoLens.Field.field @"extendedPublicKey"+externalKeyCount ::+ forall f s a.+ (Prelude.Functor f,+ Data.ProtoLens.Field.HasField s "externalKeyCount" a) =>+ Lens.Family2.LensLike' f s a+externalKeyCount = Data.ProtoLens.Field.field @"externalKeyCount"+force ::+ forall f s a.+ (Prelude.Functor f, Data.ProtoLens.Field.HasField s "force" a) =>+ Lens.Family2.LensLike' f s a+force = Data.ProtoLens.Field.field @"force"+fundedPsbt ::+ forall f s a.+ (Prelude.Functor f,+ Data.ProtoLens.Field.HasField s "fundedPsbt" a) =>+ Lens.Family2.LensLike' f s a+fundedPsbt = Data.ProtoLens.Field.field @"fundedPsbt"+id ::+ forall f s a.+ (Prelude.Functor f, Data.ProtoLens.Field.HasField s "id" a) =>+ Lens.Family2.LensLike' f s a+id = Data.ProtoLens.Field.field @"id"+inputs ::+ forall f s a.+ (Prelude.Functor f, Data.ProtoLens.Field.HasField s "inputs" a) =>+ Lens.Family2.LensLike' f s a+inputs = Data.ProtoLens.Field.field @"inputs"+internalKeyCount ::+ forall f s a.+ (Prelude.Functor f,+ Data.ProtoLens.Field.HasField s "internalKeyCount" a) =>+ Lens.Family2.LensLike' f s a+internalKeyCount = Data.ProtoLens.Field.field @"internalKeyCount"+key ::+ forall f s a.+ (Prelude.Functor f, Data.ProtoLens.Field.HasField s "key" a) =>+ Lens.Family2.LensLike' f s a+key = Data.ProtoLens.Field.field @"key"+keyFamily ::+ forall f s a.+ (Prelude.Functor f,+ Data.ProtoLens.Field.HasField s "keyFamily" a) =>+ Lens.Family2.LensLike' f s a+keyFamily = Data.ProtoLens.Field.field @"keyFamily"+keyFingerPrint ::+ forall f s a.+ (Prelude.Functor f,+ Data.ProtoLens.Field.HasField s "keyFingerPrint" a) =>+ Lens.Family2.LensLike' f s a+keyFingerPrint = Data.ProtoLens.Field.field @"keyFingerPrint"+label ::+ forall f s a.+ (Prelude.Functor f, Data.ProtoLens.Field.HasField s "label" a) =>+ Lens.Family2.LensLike' f s a+label = Data.ProtoLens.Field.field @"label"+lockedUtxos ::+ forall f s a.+ (Prelude.Functor f,+ Data.ProtoLens.Field.HasField s "lockedUtxos" a) =>+ Lens.Family2.LensLike' f s a+lockedUtxos = Data.ProtoLens.Field.field @"lockedUtxos"+masterKeyFingerprint ::+ forall f s a.+ (Prelude.Functor f,+ Data.ProtoLens.Field.HasField s "masterKeyFingerprint" a) =>+ Lens.Family2.LensLike' f s a+masterKeyFingerprint+ = Data.ProtoLens.Field.field @"masterKeyFingerprint"+maxConfs ::+ forall f s a.+ (Prelude.Functor f,+ Data.ProtoLens.Field.HasField s "maxConfs" a) =>+ Lens.Family2.LensLike' f s a+maxConfs = Data.ProtoLens.Field.field @"maxConfs"+maybe'account ::+ forall f s a.+ (Prelude.Functor f,+ Data.ProtoLens.Field.HasField s "maybe'account" a) =>+ Lens.Family2.LensLike' f s a+maybe'account = Data.ProtoLens.Field.field @"maybe'account"+maybe'fees ::+ forall f s a.+ (Prelude.Functor f,+ Data.ProtoLens.Field.HasField s "maybe'fees" a) =>+ Lens.Family2.LensLike' f s a+maybe'fees = Data.ProtoLens.Field.field @"maybe'fees"+maybe'outpoint ::+ forall f s a.+ (Prelude.Functor f,+ Data.ProtoLens.Field.HasField s "maybe'outpoint" a) =>+ Lens.Family2.LensLike' f s a+maybe'outpoint = Data.ProtoLens.Field.field @"maybe'outpoint"+maybe'psbt ::+ forall f s a.+ (Prelude.Functor f,+ Data.ProtoLens.Field.HasField s "maybe'psbt" a) =>+ Lens.Family2.LensLike' f s a+maybe'psbt = Data.ProtoLens.Field.field @"maybe'psbt"+maybe'raw ::+ forall f s a.+ (Prelude.Functor f,+ Data.ProtoLens.Field.HasField s "maybe'raw" a) =>+ Lens.Family2.LensLike' f s a+maybe'raw = Data.ProtoLens.Field.field @"maybe'raw"+maybe'satPerVbyte ::+ forall f s a.+ (Prelude.Functor f,+ Data.ProtoLens.Field.HasField s "maybe'satPerVbyte" a) =>+ Lens.Family2.LensLike' f s a+maybe'satPerVbyte = Data.ProtoLens.Field.field @"maybe'satPerVbyte"+maybe'sweeps ::+ forall f s a.+ (Prelude.Functor f,+ Data.ProtoLens.Field.HasField s "maybe'sweeps" a) =>+ Lens.Family2.LensLike' f s a+maybe'sweeps = Data.ProtoLens.Field.field @"maybe'sweeps"+maybe'targetConf ::+ forall f s a.+ (Prelude.Functor f,+ Data.ProtoLens.Field.HasField s "maybe'targetConf" a) =>+ Lens.Family2.LensLike' f s a+maybe'targetConf = Data.ProtoLens.Field.field @"maybe'targetConf"+maybe'template ::+ forall f s a.+ (Prelude.Functor f,+ Data.ProtoLens.Field.HasField s "maybe'template" a) =>+ Lens.Family2.LensLike' f s a+maybe'template = Data.ProtoLens.Field.field @"maybe'template"+maybe'transactionDetails ::+ forall f s a.+ (Prelude.Functor f,+ Data.ProtoLens.Field.HasField s "maybe'transactionDetails" a) =>+ Lens.Family2.LensLike' f s a+maybe'transactionDetails+ = Data.ProtoLens.Field.field @"maybe'transactionDetails"+maybe'transactionIds ::+ forall f s a.+ (Prelude.Functor f,+ Data.ProtoLens.Field.HasField s "maybe'transactionIds" a) =>+ Lens.Family2.LensLike' f s a+maybe'transactionIds+ = Data.ProtoLens.Field.field @"maybe'transactionIds"+minConfs ::+ forall f s a.+ (Prelude.Functor f,+ Data.ProtoLens.Field.HasField s "minConfs" a) =>+ Lens.Family2.LensLike' f s a+minConfs = Data.ProtoLens.Field.field @"minConfs"+name ::+ forall f s a.+ (Prelude.Functor f, Data.ProtoLens.Field.HasField s "name" a) =>+ Lens.Family2.LensLike' f s a+name = Data.ProtoLens.Field.field @"name"+nextBroadcastHeight ::+ forall f s a.+ (Prelude.Functor f,+ Data.ProtoLens.Field.HasField s "nextBroadcastHeight" a) =>+ Lens.Family2.LensLike' f s a+nextBroadcastHeight+ = Data.ProtoLens.Field.field @"nextBroadcastHeight"+outpoint ::+ forall f s a.+ (Prelude.Functor f,+ Data.ProtoLens.Field.HasField s "outpoint" a) =>+ Lens.Family2.LensLike' f s a+outpoint = Data.ProtoLens.Field.field @"outpoint"+outputs ::+ forall f s a.+ (Prelude.Functor f, Data.ProtoLens.Field.HasField s "outputs" a) =>+ Lens.Family2.LensLike' f s a+outputs = Data.ProtoLens.Field.field @"outputs"+overwrite ::+ forall f s a.+ (Prelude.Functor f,+ Data.ProtoLens.Field.HasField s "overwrite" a) =>+ Lens.Family2.LensLike' f s a+overwrite = Data.ProtoLens.Field.field @"overwrite"+pendingSweeps ::+ forall f s a.+ (Prelude.Functor f,+ Data.ProtoLens.Field.HasField s "pendingSweeps" a) =>+ Lens.Family2.LensLike' f s a+pendingSweeps = Data.ProtoLens.Field.field @"pendingSweeps"+psbt ::+ forall f s a.+ (Prelude.Functor f, Data.ProtoLens.Field.HasField s "psbt" a) =>+ Lens.Family2.LensLike' f s a+psbt = Data.ProtoLens.Field.field @"psbt"+publicKey ::+ forall f s a.+ (Prelude.Functor f,+ Data.ProtoLens.Field.HasField s "publicKey" a) =>+ Lens.Family2.LensLike' f s a+publicKey = Data.ProtoLens.Field.field @"publicKey"+publishError ::+ forall f s a.+ (Prelude.Functor f,+ Data.ProtoLens.Field.HasField s "publishError" a) =>+ Lens.Family2.LensLike' f s a+publishError = Data.ProtoLens.Field.field @"publishError"+raw ::+ forall f s a.+ (Prelude.Functor f, Data.ProtoLens.Field.HasField s "raw" a) =>+ Lens.Family2.LensLike' f s a+raw = Data.ProtoLens.Field.field @"raw"+rawFinalTx ::+ forall f s a.+ (Prelude.Functor f,+ Data.ProtoLens.Field.HasField s "rawFinalTx" a) =>+ Lens.Family2.LensLike' f s a+rawFinalTx = Data.ProtoLens.Field.field @"rawFinalTx"+rawTx ::+ forall f s a.+ (Prelude.Functor f, Data.ProtoLens.Field.HasField s "rawTx" a) =>+ Lens.Family2.LensLike' f s a+rawTx = Data.ProtoLens.Field.field @"rawTx"+requestedConfTarget ::+ forall f s a.+ (Prelude.Functor f,+ Data.ProtoLens.Field.HasField s "requestedConfTarget" a) =>+ Lens.Family2.LensLike' f s a+requestedConfTarget+ = Data.ProtoLens.Field.field @"requestedConfTarget"+requestedSatPerByte ::+ forall f s a.+ (Prelude.Functor f,+ Data.ProtoLens.Field.HasField s "requestedSatPerByte" a) =>+ Lens.Family2.LensLike' f s a+requestedSatPerByte+ = Data.ProtoLens.Field.field @"requestedSatPerByte"+requestedSatPerVbyte ::+ forall f s a.+ (Prelude.Functor f,+ Data.ProtoLens.Field.HasField s "requestedSatPerVbyte" a) =>+ Lens.Family2.LensLike' f s a+requestedSatPerVbyte+ = Data.ProtoLens.Field.field @"requestedSatPerVbyte"+satPerByte ::+ forall f s a.+ (Prelude.Functor f,+ Data.ProtoLens.Field.HasField s "satPerByte" a) =>+ Lens.Family2.LensLike' f s a+satPerByte = Data.ProtoLens.Field.field @"satPerByte"+satPerKw ::+ forall f s a.+ (Prelude.Functor f,+ Data.ProtoLens.Field.HasField s "satPerKw" a) =>+ Lens.Family2.LensLike' f s a+satPerKw = Data.ProtoLens.Field.field @"satPerKw"+satPerVbyte ::+ forall f s a.+ (Prelude.Functor f,+ Data.ProtoLens.Field.HasField s "satPerVbyte" a) =>+ Lens.Family2.LensLike' f s a+satPerVbyte = Data.ProtoLens.Field.field @"satPerVbyte"+signedPsbt ::+ forall f s a.+ (Prelude.Functor f,+ Data.ProtoLens.Field.HasField s "signedPsbt" a) =>+ Lens.Family2.LensLike' f s a+signedPsbt = Data.ProtoLens.Field.field @"signedPsbt"+spendUnconfirmed ::+ forall f s a.+ (Prelude.Functor f,+ Data.ProtoLens.Field.HasField s "spendUnconfirmed" a) =>+ Lens.Family2.LensLike' f s a+spendUnconfirmed = Data.ProtoLens.Field.field @"spendUnconfirmed"+targetConf ::+ forall f s a.+ (Prelude.Functor f,+ Data.ProtoLens.Field.HasField s "targetConf" a) =>+ Lens.Family2.LensLike' f s a+targetConf = Data.ProtoLens.Field.field @"targetConf"+transactionDetails ::+ forall f s a.+ (Prelude.Functor f,+ Data.ProtoLens.Field.HasField s "transactionDetails" a) =>+ Lens.Family2.LensLike' f s a+transactionDetails+ = Data.ProtoLens.Field.field @"transactionDetails"+transactionIds ::+ forall f s a.+ (Prelude.Functor f,+ Data.ProtoLens.Field.HasField s "transactionIds" a) =>+ Lens.Family2.LensLike' f s a+transactionIds = Data.ProtoLens.Field.field @"transactionIds"+txHex ::+ forall f s a.+ (Prelude.Functor f, Data.ProtoLens.Field.HasField s "txHex" a) =>+ Lens.Family2.LensLike' f s a+txHex = Data.ProtoLens.Field.field @"txHex"+txid ::+ forall f s a.+ (Prelude.Functor f, Data.ProtoLens.Field.HasField s "txid" a) =>+ Lens.Family2.LensLike' f s a+txid = Data.ProtoLens.Field.field @"txid"+type' ::+ forall f s a.+ (Prelude.Functor f, Data.ProtoLens.Field.HasField s "type'" a) =>+ Lens.Family2.LensLike' f s a+type' = Data.ProtoLens.Field.field @"type'"+utxos ::+ forall f s a.+ (Prelude.Functor f, Data.ProtoLens.Field.HasField s "utxos" a) =>+ Lens.Family2.LensLike' f s a+utxos = Data.ProtoLens.Field.field @"utxos"+value ::+ forall f s a.+ (Prelude.Functor f, Data.ProtoLens.Field.HasField s "value" a) =>+ Lens.Family2.LensLike' f s a+value = Data.ProtoLens.Field.field @"value"+vec'accounts ::+ forall f s a.+ (Prelude.Functor f,+ Data.ProtoLens.Field.HasField s "vec'accounts" a) =>+ Lens.Family2.LensLike' f s a+vec'accounts = Data.ProtoLens.Field.field @"vec'accounts"+vec'dryRunExternalAddrs ::+ forall f s a.+ (Prelude.Functor f,+ Data.ProtoLens.Field.HasField s "vec'dryRunExternalAddrs" a) =>+ Lens.Family2.LensLike' f s a+vec'dryRunExternalAddrs+ = Data.ProtoLens.Field.field @"vec'dryRunExternalAddrs"+vec'dryRunInternalAddrs ::+ forall f s a.+ (Prelude.Functor f,+ Data.ProtoLens.Field.HasField s "vec'dryRunInternalAddrs" a) =>+ Lens.Family2.LensLike' f s a+vec'dryRunInternalAddrs+ = Data.ProtoLens.Field.field @"vec'dryRunInternalAddrs"+vec'inputs ::+ forall f s a.+ (Prelude.Functor f,+ Data.ProtoLens.Field.HasField s "vec'inputs" a) =>+ Lens.Family2.LensLike' f s a+vec'inputs = Data.ProtoLens.Field.field @"vec'inputs"+vec'lockedUtxos ::+ forall f s a.+ (Prelude.Functor f,+ Data.ProtoLens.Field.HasField s "vec'lockedUtxos" a) =>+ Lens.Family2.LensLike' f s a+vec'lockedUtxos = Data.ProtoLens.Field.field @"vec'lockedUtxos"+vec'outputs ::+ forall f s a.+ (Prelude.Functor f,+ Data.ProtoLens.Field.HasField s "vec'outputs" a) =>+ Lens.Family2.LensLike' f s a+vec'outputs = Data.ProtoLens.Field.field @"vec'outputs"+vec'pendingSweeps ::+ forall f s a.+ (Prelude.Functor f,+ Data.ProtoLens.Field.HasField s "vec'pendingSweeps" a) =>+ Lens.Family2.LensLike' f s a+vec'pendingSweeps = Data.ProtoLens.Field.field @"vec'pendingSweeps"+vec'transactionIds ::+ forall f s a.+ (Prelude.Functor f,+ Data.ProtoLens.Field.HasField s "vec'transactionIds" a) =>+ Lens.Family2.LensLike' f s a+vec'transactionIds+ = Data.ProtoLens.Field.field @"vec'transactionIds"+vec'utxos ::+ forall f s a.+ (Prelude.Functor f,+ Data.ProtoLens.Field.HasField s "vec'utxos" a) =>+ Lens.Family2.LensLike' f s a+vec'utxos = Data.ProtoLens.Field.field @"vec'utxos"+verbose ::+ forall f s a.+ (Prelude.Functor f, Data.ProtoLens.Field.HasField s "verbose" a) =>+ Lens.Family2.LensLike' f s a+verbose = Data.ProtoLens.Field.field @"verbose"+watchOnly ::+ forall f s a.+ (Prelude.Functor f,+ Data.ProtoLens.Field.HasField s "watchOnly" a) =>+ Lens.Family2.LensLike' f s a+watchOnly = Data.ProtoLens.Field.field @"watchOnly"+witnessType ::+ forall f s a.+ (Prelude.Functor f,+ Data.ProtoLens.Field.HasField s "witnessType" a) =>+ Lens.Family2.LensLike' f s a+witnessType = Data.ProtoLens.Field.field @"witnessType"
@@ -0,0 +1,2893 @@+{- This file was auto-generated from walletunlocker.proto by the proto-lens-protoc program. -}+{-# LANGUAGE ScopedTypeVariables, DataKinds, TypeFamilies, UndecidableInstances, GeneralizedNewtypeDeriving, MultiParamTypeClasses, FlexibleContexts, FlexibleInstances, PatternSynonyms, MagicHash, NoImplicitPrelude, BangPatterns, TypeApplications, OverloadedStrings, DerivingStrategies, DeriveGeneric#-}+{-# OPTIONS_GHC -Wno-unused-imports#-}+{-# OPTIONS_GHC -Wno-duplicate-exports#-}+{-# OPTIONS_GHC -Wno-dodgy-exports#-}+module Proto.Walletunlocker (+ WalletUnlocker(..), ChangePasswordRequest(),+ ChangePasswordResponse(), GenSeedRequest(), GenSeedResponse(),+ InitWalletRequest(), InitWalletResponse(), UnlockWalletRequest(),+ UnlockWalletResponse(), WatchOnly(), WatchOnlyAccount()+ ) where+import qualified Data.ProtoLens.Runtime.Control.DeepSeq as Control.DeepSeq+import qualified Data.ProtoLens.Runtime.Data.ProtoLens.Prism as Data.ProtoLens.Prism+import qualified Text.PrettyPrint.GenericPretty.Instance+import qualified GHC.Generics+import qualified Text.PrettyPrint.GenericPretty+import qualified Data.ProtoLens.Runtime.Prelude as Prelude+import qualified Data.ProtoLens.Runtime.Data.Int as Data.Int+import qualified Data.ProtoLens.Runtime.Data.Monoid as Data.Monoid+import qualified Data.ProtoLens.Runtime.Data.Word as Data.Word+import qualified Data.ProtoLens.Runtime.Data.ProtoLens as Data.ProtoLens+import qualified Data.ProtoLens.Runtime.Data.ProtoLens.Encoding.Bytes as Data.ProtoLens.Encoding.Bytes+import qualified Data.ProtoLens.Runtime.Data.ProtoLens.Encoding.Growing as Data.ProtoLens.Encoding.Growing+import qualified Data.ProtoLens.Runtime.Data.ProtoLens.Encoding.Parser.Unsafe as Data.ProtoLens.Encoding.Parser.Unsafe+import qualified Data.ProtoLens.Runtime.Data.ProtoLens.Encoding.Wire as Data.ProtoLens.Encoding.Wire+import qualified Data.ProtoLens.Runtime.Data.ProtoLens.Field as Data.ProtoLens.Field+import qualified Data.ProtoLens.Runtime.Data.ProtoLens.Message.Enum as Data.ProtoLens.Message.Enum+import qualified Data.ProtoLens.Runtime.Data.ProtoLens.Service.Types as Data.ProtoLens.Service.Types+import qualified Data.ProtoLens.Runtime.Lens.Family2 as Lens.Family2+import qualified Data.ProtoLens.Runtime.Lens.Family2.Unchecked as Lens.Family2.Unchecked+import qualified Data.ProtoLens.Runtime.Data.Text as Data.Text+import qualified Data.ProtoLens.Runtime.Data.Map as Data.Map+import qualified Data.ProtoLens.Runtime.Data.ByteString as Data.ByteString+import qualified Data.ProtoLens.Runtime.Data.ByteString.Char8 as Data.ByteString.Char8+import qualified Data.ProtoLens.Runtime.Data.Text.Encoding as Data.Text.Encoding+import qualified Data.ProtoLens.Runtime.Data.Vector as Data.Vector+import qualified Data.ProtoLens.Runtime.Data.Vector.Generic as Data.Vector.Generic+import qualified Data.ProtoLens.Runtime.Data.Vector.Unboxed as Data.Vector.Unboxed+import qualified Data.ProtoLens.Runtime.Text.Read as Text.Read+import qualified Proto.Lnrpc.Ln1+{- | Fields :+ + * 'Proto.Walletunlocker_Fields.currentPassword' @:: Lens' ChangePasswordRequest Data.ByteString.ByteString@+ * 'Proto.Walletunlocker_Fields.newPassword' @:: Lens' ChangePasswordRequest Data.ByteString.ByteString@+ * 'Proto.Walletunlocker_Fields.statelessInit' @:: Lens' ChangePasswordRequest Prelude.Bool@+ * 'Proto.Walletunlocker_Fields.newMacaroonRootKey' @:: Lens' ChangePasswordRequest Prelude.Bool@ -}+data ChangePasswordRequest+ = ChangePasswordRequest'_constructor {_ChangePasswordRequest'currentPassword :: !Data.ByteString.ByteString,+ _ChangePasswordRequest'newPassword :: !Data.ByteString.ByteString,+ _ChangePasswordRequest'statelessInit :: !Prelude.Bool,+ _ChangePasswordRequest'newMacaroonRootKey :: !Prelude.Bool,+ _ChangePasswordRequest'_unknownFields :: !Data.ProtoLens.FieldSet}+ deriving stock (Prelude.Eq, Prelude.Ord, GHC.Generics.Generic)+instance Prelude.Show ChangePasswordRequest where+ showsPrec _ __x __s+ = Prelude.showChar+ '{'+ (Prelude.showString+ (Data.ProtoLens.showMessageShort __x) (Prelude.showChar '}' __s))+instance Text.PrettyPrint.GenericPretty.Out ChangePasswordRequest+instance Data.ProtoLens.Field.HasField ChangePasswordRequest "currentPassword" Data.ByteString.ByteString where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _ChangePasswordRequest'currentPassword+ (\ x__ y__ -> x__ {_ChangePasswordRequest'currentPassword = y__}))+ Prelude.id+instance Data.ProtoLens.Field.HasField ChangePasswordRequest "newPassword" Data.ByteString.ByteString where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _ChangePasswordRequest'newPassword+ (\ x__ y__ -> x__ {_ChangePasswordRequest'newPassword = y__}))+ Prelude.id+instance Data.ProtoLens.Field.HasField ChangePasswordRequest "statelessInit" Prelude.Bool where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _ChangePasswordRequest'statelessInit+ (\ x__ y__ -> x__ {_ChangePasswordRequest'statelessInit = y__}))+ Prelude.id+instance Data.ProtoLens.Field.HasField ChangePasswordRequest "newMacaroonRootKey" Prelude.Bool where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _ChangePasswordRequest'newMacaroonRootKey+ (\ x__ y__+ -> x__ {_ChangePasswordRequest'newMacaroonRootKey = y__}))+ Prelude.id+instance Data.ProtoLens.Message ChangePasswordRequest where+ messageName _ = Data.Text.pack "lnrpc.ChangePasswordRequest"+ packedMessageDescriptor _+ = "\n\+ \\NAKChangePasswordRequest\DC2)\n\+ \\DLEcurrent_password\CAN\SOH \SOH(\fR\SIcurrentPassword\DC2!\n\+ \\fnew_password\CAN\STX \SOH(\fR\vnewPassword\DC2%\n\+ \\SOstateless_init\CAN\ETX \SOH(\bR\rstatelessInit\DC21\n\+ \\NAKnew_macaroon_root_key\CAN\EOT \SOH(\bR\DC2newMacaroonRootKey"+ packedFileDescriptor _ = packedFileDescriptor+ fieldsByTag+ = let+ currentPassword__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "current_password"+ (Data.ProtoLens.ScalarField Data.ProtoLens.BytesField ::+ Data.ProtoLens.FieldTypeDescriptor Data.ByteString.ByteString)+ (Data.ProtoLens.PlainField+ Data.ProtoLens.Optional+ (Data.ProtoLens.Field.field @"currentPassword")) ::+ Data.ProtoLens.FieldDescriptor ChangePasswordRequest+ newPassword__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "new_password"+ (Data.ProtoLens.ScalarField Data.ProtoLens.BytesField ::+ Data.ProtoLens.FieldTypeDescriptor Data.ByteString.ByteString)+ (Data.ProtoLens.PlainField+ Data.ProtoLens.Optional+ (Data.ProtoLens.Field.field @"newPassword")) ::+ Data.ProtoLens.FieldDescriptor ChangePasswordRequest+ statelessInit__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "stateless_init"+ (Data.ProtoLens.ScalarField Data.ProtoLens.BoolField ::+ Data.ProtoLens.FieldTypeDescriptor Prelude.Bool)+ (Data.ProtoLens.PlainField+ Data.ProtoLens.Optional+ (Data.ProtoLens.Field.field @"statelessInit")) ::+ Data.ProtoLens.FieldDescriptor ChangePasswordRequest+ newMacaroonRootKey__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "new_macaroon_root_key"+ (Data.ProtoLens.ScalarField Data.ProtoLens.BoolField ::+ Data.ProtoLens.FieldTypeDescriptor Prelude.Bool)+ (Data.ProtoLens.PlainField+ Data.ProtoLens.Optional+ (Data.ProtoLens.Field.field @"newMacaroonRootKey")) ::+ Data.ProtoLens.FieldDescriptor ChangePasswordRequest+ in+ Data.Map.fromList+ [(Data.ProtoLens.Tag 1, currentPassword__field_descriptor),+ (Data.ProtoLens.Tag 2, newPassword__field_descriptor),+ (Data.ProtoLens.Tag 3, statelessInit__field_descriptor),+ (Data.ProtoLens.Tag 4, newMacaroonRootKey__field_descriptor)]+ unknownFields+ = Lens.Family2.Unchecked.lens+ _ChangePasswordRequest'_unknownFields+ (\ x__ y__ -> x__ {_ChangePasswordRequest'_unknownFields = y__})+ defMessage+ = ChangePasswordRequest'_constructor+ {_ChangePasswordRequest'currentPassword = Data.ProtoLens.fieldDefault,+ _ChangePasswordRequest'newPassword = Data.ProtoLens.fieldDefault,+ _ChangePasswordRequest'statelessInit = Data.ProtoLens.fieldDefault,+ _ChangePasswordRequest'newMacaroonRootKey = Data.ProtoLens.fieldDefault,+ _ChangePasswordRequest'_unknownFields = []}+ parseMessage+ = let+ loop ::+ ChangePasswordRequest+ -> Data.ProtoLens.Encoding.Bytes.Parser ChangePasswordRequest+ loop x+ = do end <- Data.ProtoLens.Encoding.Bytes.atEnd+ if end then+ do (let missing = []+ in+ if Prelude.null missing then+ Prelude.return ()+ else+ Prelude.fail+ ((Prelude.++)+ "Missing required fields: "+ (Prelude.show (missing :: [Prelude.String]))))+ Prelude.return+ (Lens.Family2.over+ Data.ProtoLens.unknownFields (\ !t -> Prelude.reverse t) x)+ else+ do tag <- Data.ProtoLens.Encoding.Bytes.getVarInt+ case tag of+ 10+ -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (do len <- Data.ProtoLens.Encoding.Bytes.getVarInt+ Data.ProtoLens.Encoding.Bytes.getBytes+ (Prelude.fromIntegral len))+ "current_password"+ loop+ (Lens.Family2.set+ (Data.ProtoLens.Field.field @"currentPassword") y x)+ 18+ -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (do len <- Data.ProtoLens.Encoding.Bytes.getVarInt+ Data.ProtoLens.Encoding.Bytes.getBytes+ (Prelude.fromIntegral len))+ "new_password"+ loop+ (Lens.Family2.set (Data.ProtoLens.Field.field @"newPassword") y x)+ 24+ -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (Prelude.fmap+ ((Prelude./=) 0) Data.ProtoLens.Encoding.Bytes.getVarInt)+ "stateless_init"+ loop+ (Lens.Family2.set+ (Data.ProtoLens.Field.field @"statelessInit") y x)+ 32+ -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (Prelude.fmap+ ((Prelude./=) 0) Data.ProtoLens.Encoding.Bytes.getVarInt)+ "new_macaroon_root_key"+ loop+ (Lens.Family2.set+ (Data.ProtoLens.Field.field @"newMacaroonRootKey") y x)+ wire+ -> do !y <- Data.ProtoLens.Encoding.Wire.parseTaggedValueFromWire+ wire+ loop+ (Lens.Family2.over+ Data.ProtoLens.unknownFields (\ !t -> (:) y t) x)+ in+ (Data.ProtoLens.Encoding.Bytes.<?>)+ (do loop Data.ProtoLens.defMessage) "ChangePasswordRequest"+ buildMessage+ = \ _x+ -> (Data.Monoid.<>)+ (let+ _v+ = Lens.Family2.view+ (Data.ProtoLens.Field.field @"currentPassword") _x+ in+ if (Prelude.==) _v Data.ProtoLens.fieldDefault then+ Data.Monoid.mempty+ else+ (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 10)+ ((\ bs+ -> (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt+ (Prelude.fromIntegral (Data.ByteString.length bs)))+ (Data.ProtoLens.Encoding.Bytes.putBytes bs))+ _v))+ ((Data.Monoid.<>)+ (let+ _v+ = Lens.Family2.view (Data.ProtoLens.Field.field @"newPassword") _x+ in+ if (Prelude.==) _v Data.ProtoLens.fieldDefault then+ Data.Monoid.mempty+ else+ (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 18)+ ((\ bs+ -> (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt+ (Prelude.fromIntegral (Data.ByteString.length bs)))+ (Data.ProtoLens.Encoding.Bytes.putBytes bs))+ _v))+ ((Data.Monoid.<>)+ (let+ _v+ = Lens.Family2.view+ (Data.ProtoLens.Field.field @"statelessInit") _x+ in+ if (Prelude.==) _v Data.ProtoLens.fieldDefault then+ Data.Monoid.mempty+ else+ (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 24)+ ((Prelude..)+ Data.ProtoLens.Encoding.Bytes.putVarInt (\ b -> if b then 1 else 0)+ _v))+ ((Data.Monoid.<>)+ (let+ _v+ = Lens.Family2.view+ (Data.ProtoLens.Field.field @"newMacaroonRootKey") _x+ in+ if (Prelude.==) _v Data.ProtoLens.fieldDefault then+ Data.Monoid.mempty+ else+ (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 32)+ ((Prelude..)+ Data.ProtoLens.Encoding.Bytes.putVarInt+ (\ b -> if b then 1 else 0) _v))+ (Data.ProtoLens.Encoding.Wire.buildFieldSet+ (Lens.Family2.view Data.ProtoLens.unknownFields _x)))))+instance Control.DeepSeq.NFData ChangePasswordRequest where+ rnf+ = \ x__+ -> Control.DeepSeq.deepseq+ (_ChangePasswordRequest'_unknownFields x__)+ (Control.DeepSeq.deepseq+ (_ChangePasswordRequest'currentPassword x__)+ (Control.DeepSeq.deepseq+ (_ChangePasswordRequest'newPassword x__)+ (Control.DeepSeq.deepseq+ (_ChangePasswordRequest'statelessInit x__)+ (Control.DeepSeq.deepseq+ (_ChangePasswordRequest'newMacaroonRootKey x__) ()))))+{- | Fields :+ + * 'Proto.Walletunlocker_Fields.adminMacaroon' @:: Lens' ChangePasswordResponse Data.ByteString.ByteString@ -}+data ChangePasswordResponse+ = ChangePasswordResponse'_constructor {_ChangePasswordResponse'adminMacaroon :: !Data.ByteString.ByteString,+ _ChangePasswordResponse'_unknownFields :: !Data.ProtoLens.FieldSet}+ deriving stock (Prelude.Eq, Prelude.Ord, GHC.Generics.Generic)+instance Prelude.Show ChangePasswordResponse where+ showsPrec _ __x __s+ = Prelude.showChar+ '{'+ (Prelude.showString+ (Data.ProtoLens.showMessageShort __x) (Prelude.showChar '}' __s))+instance Text.PrettyPrint.GenericPretty.Out ChangePasswordResponse+instance Data.ProtoLens.Field.HasField ChangePasswordResponse "adminMacaroon" Data.ByteString.ByteString where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _ChangePasswordResponse'adminMacaroon+ (\ x__ y__ -> x__ {_ChangePasswordResponse'adminMacaroon = y__}))+ Prelude.id+instance Data.ProtoLens.Message ChangePasswordResponse where+ messageName _ = Data.Text.pack "lnrpc.ChangePasswordResponse"+ packedMessageDescriptor _+ = "\n\+ \\SYNChangePasswordResponse\DC2%\n\+ \\SOadmin_macaroon\CAN\SOH \SOH(\fR\radminMacaroon"+ packedFileDescriptor _ = packedFileDescriptor+ fieldsByTag+ = let+ adminMacaroon__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "admin_macaroon"+ (Data.ProtoLens.ScalarField Data.ProtoLens.BytesField ::+ Data.ProtoLens.FieldTypeDescriptor Data.ByteString.ByteString)+ (Data.ProtoLens.PlainField+ Data.ProtoLens.Optional+ (Data.ProtoLens.Field.field @"adminMacaroon")) ::+ Data.ProtoLens.FieldDescriptor ChangePasswordResponse+ in+ Data.Map.fromList+ [(Data.ProtoLens.Tag 1, adminMacaroon__field_descriptor)]+ unknownFields+ = Lens.Family2.Unchecked.lens+ _ChangePasswordResponse'_unknownFields+ (\ x__ y__ -> x__ {_ChangePasswordResponse'_unknownFields = y__})+ defMessage+ = ChangePasswordResponse'_constructor+ {_ChangePasswordResponse'adminMacaroon = Data.ProtoLens.fieldDefault,+ _ChangePasswordResponse'_unknownFields = []}+ parseMessage+ = let+ loop ::+ ChangePasswordResponse+ -> Data.ProtoLens.Encoding.Bytes.Parser ChangePasswordResponse+ loop x+ = do end <- Data.ProtoLens.Encoding.Bytes.atEnd+ if end then+ do (let missing = []+ in+ if Prelude.null missing then+ Prelude.return ()+ else+ Prelude.fail+ ((Prelude.++)+ "Missing required fields: "+ (Prelude.show (missing :: [Prelude.String]))))+ Prelude.return+ (Lens.Family2.over+ Data.ProtoLens.unknownFields (\ !t -> Prelude.reverse t) x)+ else+ do tag <- Data.ProtoLens.Encoding.Bytes.getVarInt+ case tag of+ 10+ -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (do len <- Data.ProtoLens.Encoding.Bytes.getVarInt+ Data.ProtoLens.Encoding.Bytes.getBytes+ (Prelude.fromIntegral len))+ "admin_macaroon"+ loop+ (Lens.Family2.set+ (Data.ProtoLens.Field.field @"adminMacaroon") y x)+ wire+ -> do !y <- Data.ProtoLens.Encoding.Wire.parseTaggedValueFromWire+ wire+ loop+ (Lens.Family2.over+ Data.ProtoLens.unknownFields (\ !t -> (:) y t) x)+ in+ (Data.ProtoLens.Encoding.Bytes.<?>)+ (do loop Data.ProtoLens.defMessage) "ChangePasswordResponse"+ buildMessage+ = \ _x+ -> (Data.Monoid.<>)+ (let+ _v+ = Lens.Family2.view+ (Data.ProtoLens.Field.field @"adminMacaroon") _x+ in+ if (Prelude.==) _v Data.ProtoLens.fieldDefault then+ Data.Monoid.mempty+ else+ (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 10)+ ((\ bs+ -> (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt+ (Prelude.fromIntegral (Data.ByteString.length bs)))+ (Data.ProtoLens.Encoding.Bytes.putBytes bs))+ _v))+ (Data.ProtoLens.Encoding.Wire.buildFieldSet+ (Lens.Family2.view Data.ProtoLens.unknownFields _x))+instance Control.DeepSeq.NFData ChangePasswordResponse where+ rnf+ = \ x__+ -> Control.DeepSeq.deepseq+ (_ChangePasswordResponse'_unknownFields x__)+ (Control.DeepSeq.deepseq+ (_ChangePasswordResponse'adminMacaroon x__) ())+{- | Fields :+ + * 'Proto.Walletunlocker_Fields.aezeedPassphrase' @:: Lens' GenSeedRequest Data.ByteString.ByteString@+ * 'Proto.Walletunlocker_Fields.seedEntropy' @:: Lens' GenSeedRequest Data.ByteString.ByteString@ -}+data GenSeedRequest+ = GenSeedRequest'_constructor {_GenSeedRequest'aezeedPassphrase :: !Data.ByteString.ByteString,+ _GenSeedRequest'seedEntropy :: !Data.ByteString.ByteString,+ _GenSeedRequest'_unknownFields :: !Data.ProtoLens.FieldSet}+ deriving stock (Prelude.Eq, Prelude.Ord, GHC.Generics.Generic)+instance Prelude.Show GenSeedRequest where+ showsPrec _ __x __s+ = Prelude.showChar+ '{'+ (Prelude.showString+ (Data.ProtoLens.showMessageShort __x) (Prelude.showChar '}' __s))+instance Text.PrettyPrint.GenericPretty.Out GenSeedRequest+instance Data.ProtoLens.Field.HasField GenSeedRequest "aezeedPassphrase" Data.ByteString.ByteString where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _GenSeedRequest'aezeedPassphrase+ (\ x__ y__ -> x__ {_GenSeedRequest'aezeedPassphrase = y__}))+ Prelude.id+instance Data.ProtoLens.Field.HasField GenSeedRequest "seedEntropy" Data.ByteString.ByteString where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _GenSeedRequest'seedEntropy+ (\ x__ y__ -> x__ {_GenSeedRequest'seedEntropy = y__}))+ Prelude.id+instance Data.ProtoLens.Message GenSeedRequest where+ messageName _ = Data.Text.pack "lnrpc.GenSeedRequest"+ packedMessageDescriptor _+ = "\n\+ \\SOGenSeedRequest\DC2+\n\+ \\DC1aezeed_passphrase\CAN\SOH \SOH(\fR\DLEaezeedPassphrase\DC2!\n\+ \\fseed_entropy\CAN\STX \SOH(\fR\vseedEntropy"+ packedFileDescriptor _ = packedFileDescriptor+ fieldsByTag+ = let+ aezeedPassphrase__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "aezeed_passphrase"+ (Data.ProtoLens.ScalarField Data.ProtoLens.BytesField ::+ Data.ProtoLens.FieldTypeDescriptor Data.ByteString.ByteString)+ (Data.ProtoLens.PlainField+ Data.ProtoLens.Optional+ (Data.ProtoLens.Field.field @"aezeedPassphrase")) ::+ Data.ProtoLens.FieldDescriptor GenSeedRequest+ seedEntropy__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "seed_entropy"+ (Data.ProtoLens.ScalarField Data.ProtoLens.BytesField ::+ Data.ProtoLens.FieldTypeDescriptor Data.ByteString.ByteString)+ (Data.ProtoLens.PlainField+ Data.ProtoLens.Optional+ (Data.ProtoLens.Field.field @"seedEntropy")) ::+ Data.ProtoLens.FieldDescriptor GenSeedRequest+ in+ Data.Map.fromList+ [(Data.ProtoLens.Tag 1, aezeedPassphrase__field_descriptor),+ (Data.ProtoLens.Tag 2, seedEntropy__field_descriptor)]+ unknownFields+ = Lens.Family2.Unchecked.lens+ _GenSeedRequest'_unknownFields+ (\ x__ y__ -> x__ {_GenSeedRequest'_unknownFields = y__})+ defMessage+ = GenSeedRequest'_constructor+ {_GenSeedRequest'aezeedPassphrase = Data.ProtoLens.fieldDefault,+ _GenSeedRequest'seedEntropy = Data.ProtoLens.fieldDefault,+ _GenSeedRequest'_unknownFields = []}+ parseMessage+ = let+ loop ::+ GenSeedRequest+ -> Data.ProtoLens.Encoding.Bytes.Parser GenSeedRequest+ loop x+ = do end <- Data.ProtoLens.Encoding.Bytes.atEnd+ if end then+ do (let missing = []+ in+ if Prelude.null missing then+ Prelude.return ()+ else+ Prelude.fail+ ((Prelude.++)+ "Missing required fields: "+ (Prelude.show (missing :: [Prelude.String]))))+ Prelude.return+ (Lens.Family2.over+ Data.ProtoLens.unknownFields (\ !t -> Prelude.reverse t) x)+ else+ do tag <- Data.ProtoLens.Encoding.Bytes.getVarInt+ case tag of+ 10+ -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (do len <- Data.ProtoLens.Encoding.Bytes.getVarInt+ Data.ProtoLens.Encoding.Bytes.getBytes+ (Prelude.fromIntegral len))+ "aezeed_passphrase"+ loop+ (Lens.Family2.set+ (Data.ProtoLens.Field.field @"aezeedPassphrase") y x)+ 18+ -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (do len <- Data.ProtoLens.Encoding.Bytes.getVarInt+ Data.ProtoLens.Encoding.Bytes.getBytes+ (Prelude.fromIntegral len))+ "seed_entropy"+ loop+ (Lens.Family2.set (Data.ProtoLens.Field.field @"seedEntropy") y x)+ wire+ -> do !y <- Data.ProtoLens.Encoding.Wire.parseTaggedValueFromWire+ wire+ loop+ (Lens.Family2.over+ Data.ProtoLens.unknownFields (\ !t -> (:) y t) x)+ in+ (Data.ProtoLens.Encoding.Bytes.<?>)+ (do loop Data.ProtoLens.defMessage) "GenSeedRequest"+ buildMessage+ = \ _x+ -> (Data.Monoid.<>)+ (let+ _v+ = Lens.Family2.view+ (Data.ProtoLens.Field.field @"aezeedPassphrase") _x+ in+ if (Prelude.==) _v Data.ProtoLens.fieldDefault then+ Data.Monoid.mempty+ else+ (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 10)+ ((\ bs+ -> (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt+ (Prelude.fromIntegral (Data.ByteString.length bs)))+ (Data.ProtoLens.Encoding.Bytes.putBytes bs))+ _v))+ ((Data.Monoid.<>)+ (let+ _v+ = Lens.Family2.view (Data.ProtoLens.Field.field @"seedEntropy") _x+ in+ if (Prelude.==) _v Data.ProtoLens.fieldDefault then+ Data.Monoid.mempty+ else+ (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 18)+ ((\ bs+ -> (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt+ (Prelude.fromIntegral (Data.ByteString.length bs)))+ (Data.ProtoLens.Encoding.Bytes.putBytes bs))+ _v))+ (Data.ProtoLens.Encoding.Wire.buildFieldSet+ (Lens.Family2.view Data.ProtoLens.unknownFields _x)))+instance Control.DeepSeq.NFData GenSeedRequest where+ rnf+ = \ x__+ -> Control.DeepSeq.deepseq+ (_GenSeedRequest'_unknownFields x__)+ (Control.DeepSeq.deepseq+ (_GenSeedRequest'aezeedPassphrase x__)+ (Control.DeepSeq.deepseq (_GenSeedRequest'seedEntropy x__) ()))+{- | Fields :+ + * 'Proto.Walletunlocker_Fields.cipherSeedMnemonic' @:: Lens' GenSeedResponse [Data.Text.Text]@+ * 'Proto.Walletunlocker_Fields.vec'cipherSeedMnemonic' @:: Lens' GenSeedResponse (Data.Vector.Vector Data.Text.Text)@+ * 'Proto.Walletunlocker_Fields.encipheredSeed' @:: Lens' GenSeedResponse Data.ByteString.ByteString@ -}+data GenSeedResponse+ = GenSeedResponse'_constructor {_GenSeedResponse'cipherSeedMnemonic :: !(Data.Vector.Vector Data.Text.Text),+ _GenSeedResponse'encipheredSeed :: !Data.ByteString.ByteString,+ _GenSeedResponse'_unknownFields :: !Data.ProtoLens.FieldSet}+ deriving stock (Prelude.Eq, Prelude.Ord, GHC.Generics.Generic)+instance Prelude.Show GenSeedResponse where+ showsPrec _ __x __s+ = Prelude.showChar+ '{'+ (Prelude.showString+ (Data.ProtoLens.showMessageShort __x) (Prelude.showChar '}' __s))+instance Text.PrettyPrint.GenericPretty.Out GenSeedResponse+instance Data.ProtoLens.Field.HasField GenSeedResponse "cipherSeedMnemonic" [Data.Text.Text] where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _GenSeedResponse'cipherSeedMnemonic+ (\ x__ y__ -> x__ {_GenSeedResponse'cipherSeedMnemonic = y__}))+ (Lens.Family2.Unchecked.lens+ Data.Vector.Generic.toList+ (\ _ y__ -> Data.Vector.Generic.fromList y__))+instance Data.ProtoLens.Field.HasField GenSeedResponse "vec'cipherSeedMnemonic" (Data.Vector.Vector Data.Text.Text) where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _GenSeedResponse'cipherSeedMnemonic+ (\ x__ y__ -> x__ {_GenSeedResponse'cipherSeedMnemonic = y__}))+ Prelude.id+instance Data.ProtoLens.Field.HasField GenSeedResponse "encipheredSeed" Data.ByteString.ByteString where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _GenSeedResponse'encipheredSeed+ (\ x__ y__ -> x__ {_GenSeedResponse'encipheredSeed = y__}))+ Prelude.id+instance Data.ProtoLens.Message GenSeedResponse where+ messageName _ = Data.Text.pack "lnrpc.GenSeedResponse"+ packedMessageDescriptor _+ = "\n\+ \\SIGenSeedResponse\DC20\n\+ \\DC4cipher_seed_mnemonic\CAN\SOH \ETX(\tR\DC2cipherSeedMnemonic\DC2'\n\+ \\SIenciphered_seed\CAN\STX \SOH(\fR\SOencipheredSeed"+ packedFileDescriptor _ = packedFileDescriptor+ fieldsByTag+ = let+ cipherSeedMnemonic__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "cipher_seed_mnemonic"+ (Data.ProtoLens.ScalarField Data.ProtoLens.StringField ::+ Data.ProtoLens.FieldTypeDescriptor Data.Text.Text)+ (Data.ProtoLens.RepeatedField+ Data.ProtoLens.Unpacked+ (Data.ProtoLens.Field.field @"cipherSeedMnemonic")) ::+ Data.ProtoLens.FieldDescriptor GenSeedResponse+ encipheredSeed__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "enciphered_seed"+ (Data.ProtoLens.ScalarField Data.ProtoLens.BytesField ::+ Data.ProtoLens.FieldTypeDescriptor Data.ByteString.ByteString)+ (Data.ProtoLens.PlainField+ Data.ProtoLens.Optional+ (Data.ProtoLens.Field.field @"encipheredSeed")) ::+ Data.ProtoLens.FieldDescriptor GenSeedResponse+ in+ Data.Map.fromList+ [(Data.ProtoLens.Tag 1, cipherSeedMnemonic__field_descriptor),+ (Data.ProtoLens.Tag 2, encipheredSeed__field_descriptor)]+ unknownFields+ = Lens.Family2.Unchecked.lens+ _GenSeedResponse'_unknownFields+ (\ x__ y__ -> x__ {_GenSeedResponse'_unknownFields = y__})+ defMessage+ = GenSeedResponse'_constructor+ {_GenSeedResponse'cipherSeedMnemonic = Data.Vector.Generic.empty,+ _GenSeedResponse'encipheredSeed = Data.ProtoLens.fieldDefault,+ _GenSeedResponse'_unknownFields = []}+ parseMessage+ = let+ loop ::+ GenSeedResponse+ -> Data.ProtoLens.Encoding.Growing.Growing Data.Vector.Vector Data.ProtoLens.Encoding.Growing.RealWorld Data.Text.Text+ -> Data.ProtoLens.Encoding.Bytes.Parser GenSeedResponse+ loop x mutable'cipherSeedMnemonic+ = do end <- Data.ProtoLens.Encoding.Bytes.atEnd+ if end then+ do frozen'cipherSeedMnemonic <- Data.ProtoLens.Encoding.Parser.Unsafe.unsafeLiftIO+ (Data.ProtoLens.Encoding.Growing.unsafeFreeze+ mutable'cipherSeedMnemonic)+ (let missing = []+ in+ if Prelude.null missing then+ Prelude.return ()+ else+ Prelude.fail+ ((Prelude.++)+ "Missing required fields: "+ (Prelude.show (missing :: [Prelude.String]))))+ Prelude.return+ (Lens.Family2.over+ Data.ProtoLens.unknownFields (\ !t -> Prelude.reverse t)+ (Lens.Family2.set+ (Data.ProtoLens.Field.field @"vec'cipherSeedMnemonic")+ frozen'cipherSeedMnemonic x))+ else+ do tag <- Data.ProtoLens.Encoding.Bytes.getVarInt+ case tag of+ 10+ -> do !y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (do value <- do len <- Data.ProtoLens.Encoding.Bytes.getVarInt+ Data.ProtoLens.Encoding.Bytes.getBytes+ (Prelude.fromIntegral len)+ Data.ProtoLens.Encoding.Bytes.runEither+ (case Data.Text.Encoding.decodeUtf8' value of+ (Prelude.Left err)+ -> Prelude.Left (Prelude.show err)+ (Prelude.Right r) -> Prelude.Right r))+ "cipher_seed_mnemonic"+ v <- Data.ProtoLens.Encoding.Parser.Unsafe.unsafeLiftIO+ (Data.ProtoLens.Encoding.Growing.append+ mutable'cipherSeedMnemonic y)+ loop x v+ 18+ -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (do len <- Data.ProtoLens.Encoding.Bytes.getVarInt+ Data.ProtoLens.Encoding.Bytes.getBytes+ (Prelude.fromIntegral len))+ "enciphered_seed"+ loop+ (Lens.Family2.set+ (Data.ProtoLens.Field.field @"encipheredSeed") y x)+ mutable'cipherSeedMnemonic+ wire+ -> do !y <- Data.ProtoLens.Encoding.Wire.parseTaggedValueFromWire+ wire+ loop+ (Lens.Family2.over+ Data.ProtoLens.unknownFields (\ !t -> (:) y t) x)+ mutable'cipherSeedMnemonic+ in+ (Data.ProtoLens.Encoding.Bytes.<?>)+ (do mutable'cipherSeedMnemonic <- Data.ProtoLens.Encoding.Parser.Unsafe.unsafeLiftIO+ Data.ProtoLens.Encoding.Growing.new+ loop Data.ProtoLens.defMessage mutable'cipherSeedMnemonic)+ "GenSeedResponse"+ buildMessage+ = \ _x+ -> (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.foldMapBuilder+ (\ _v+ -> (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 10)+ ((Prelude..)+ (\ bs+ -> (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt+ (Prelude.fromIntegral (Data.ByteString.length bs)))+ (Data.ProtoLens.Encoding.Bytes.putBytes bs))+ Data.Text.Encoding.encodeUtf8 _v))+ (Lens.Family2.view+ (Data.ProtoLens.Field.field @"vec'cipherSeedMnemonic") _x))+ ((Data.Monoid.<>)+ (let+ _v+ = Lens.Family2.view+ (Data.ProtoLens.Field.field @"encipheredSeed") _x+ in+ if (Prelude.==) _v Data.ProtoLens.fieldDefault then+ Data.Monoid.mempty+ else+ (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 18)+ ((\ bs+ -> (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt+ (Prelude.fromIntegral (Data.ByteString.length bs)))+ (Data.ProtoLens.Encoding.Bytes.putBytes bs))+ _v))+ (Data.ProtoLens.Encoding.Wire.buildFieldSet+ (Lens.Family2.view Data.ProtoLens.unknownFields _x)))+instance Control.DeepSeq.NFData GenSeedResponse where+ rnf+ = \ x__+ -> Control.DeepSeq.deepseq+ (_GenSeedResponse'_unknownFields x__)+ (Control.DeepSeq.deepseq+ (_GenSeedResponse'cipherSeedMnemonic x__)+ (Control.DeepSeq.deepseq (_GenSeedResponse'encipheredSeed x__) ()))+{- | Fields :+ + * 'Proto.Walletunlocker_Fields.walletPassword' @:: Lens' InitWalletRequest Data.ByteString.ByteString@+ * 'Proto.Walletunlocker_Fields.cipherSeedMnemonic' @:: Lens' InitWalletRequest [Data.Text.Text]@+ * 'Proto.Walletunlocker_Fields.vec'cipherSeedMnemonic' @:: Lens' InitWalletRequest (Data.Vector.Vector Data.Text.Text)@+ * 'Proto.Walletunlocker_Fields.aezeedPassphrase' @:: Lens' InitWalletRequest Data.ByteString.ByteString@+ * 'Proto.Walletunlocker_Fields.recoveryWindow' @:: Lens' InitWalletRequest Data.Int.Int32@+ * 'Proto.Walletunlocker_Fields.channelBackups' @:: Lens' InitWalletRequest Proto.Lnrpc.Ln1.ChanBackupSnapshot@+ * 'Proto.Walletunlocker_Fields.maybe'channelBackups' @:: Lens' InitWalletRequest (Prelude.Maybe Proto.Lnrpc.Ln1.ChanBackupSnapshot)@+ * 'Proto.Walletunlocker_Fields.statelessInit' @:: Lens' InitWalletRequest Prelude.Bool@+ * 'Proto.Walletunlocker_Fields.extendedMasterKey' @:: Lens' InitWalletRequest Data.Text.Text@+ * 'Proto.Walletunlocker_Fields.extendedMasterKeyBirthdayTimestamp' @:: Lens' InitWalletRequest Data.Word.Word64@+ * 'Proto.Walletunlocker_Fields.watchOnly' @:: Lens' InitWalletRequest WatchOnly@+ * 'Proto.Walletunlocker_Fields.maybe'watchOnly' @:: Lens' InitWalletRequest (Prelude.Maybe WatchOnly)@ -}+data InitWalletRequest+ = InitWalletRequest'_constructor {_InitWalletRequest'walletPassword :: !Data.ByteString.ByteString,+ _InitWalletRequest'cipherSeedMnemonic :: !(Data.Vector.Vector Data.Text.Text),+ _InitWalletRequest'aezeedPassphrase :: !Data.ByteString.ByteString,+ _InitWalletRequest'recoveryWindow :: !Data.Int.Int32,+ _InitWalletRequest'channelBackups :: !(Prelude.Maybe Proto.Lnrpc.Ln1.ChanBackupSnapshot),+ _InitWalletRequest'statelessInit :: !Prelude.Bool,+ _InitWalletRequest'extendedMasterKey :: !Data.Text.Text,+ _InitWalletRequest'extendedMasterKeyBirthdayTimestamp :: !Data.Word.Word64,+ _InitWalletRequest'watchOnly :: !(Prelude.Maybe WatchOnly),+ _InitWalletRequest'_unknownFields :: !Data.ProtoLens.FieldSet}+ deriving stock (Prelude.Eq, Prelude.Ord, GHC.Generics.Generic)+instance Prelude.Show InitWalletRequest where+ showsPrec _ __x __s+ = Prelude.showChar+ '{'+ (Prelude.showString+ (Data.ProtoLens.showMessageShort __x) (Prelude.showChar '}' __s))+instance Text.PrettyPrint.GenericPretty.Out InitWalletRequest+instance Data.ProtoLens.Field.HasField InitWalletRequest "walletPassword" Data.ByteString.ByteString where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _InitWalletRequest'walletPassword+ (\ x__ y__ -> x__ {_InitWalletRequest'walletPassword = y__}))+ Prelude.id+instance Data.ProtoLens.Field.HasField InitWalletRequest "cipherSeedMnemonic" [Data.Text.Text] where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _InitWalletRequest'cipherSeedMnemonic+ (\ x__ y__ -> x__ {_InitWalletRequest'cipherSeedMnemonic = y__}))+ (Lens.Family2.Unchecked.lens+ Data.Vector.Generic.toList+ (\ _ y__ -> Data.Vector.Generic.fromList y__))+instance Data.ProtoLens.Field.HasField InitWalletRequest "vec'cipherSeedMnemonic" (Data.Vector.Vector Data.Text.Text) where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _InitWalletRequest'cipherSeedMnemonic+ (\ x__ y__ -> x__ {_InitWalletRequest'cipherSeedMnemonic = y__}))+ Prelude.id+instance Data.ProtoLens.Field.HasField InitWalletRequest "aezeedPassphrase" Data.ByteString.ByteString where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _InitWalletRequest'aezeedPassphrase+ (\ x__ y__ -> x__ {_InitWalletRequest'aezeedPassphrase = y__}))+ Prelude.id+instance Data.ProtoLens.Field.HasField InitWalletRequest "recoveryWindow" Data.Int.Int32 where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _InitWalletRequest'recoveryWindow+ (\ x__ y__ -> x__ {_InitWalletRequest'recoveryWindow = y__}))+ Prelude.id+instance Data.ProtoLens.Field.HasField InitWalletRequest "channelBackups" Proto.Lnrpc.Ln1.ChanBackupSnapshot where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _InitWalletRequest'channelBackups+ (\ x__ y__ -> x__ {_InitWalletRequest'channelBackups = y__}))+ (Data.ProtoLens.maybeLens Data.ProtoLens.defMessage)+instance Data.ProtoLens.Field.HasField InitWalletRequest "maybe'channelBackups" (Prelude.Maybe Proto.Lnrpc.Ln1.ChanBackupSnapshot) where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _InitWalletRequest'channelBackups+ (\ x__ y__ -> x__ {_InitWalletRequest'channelBackups = y__}))+ Prelude.id+instance Data.ProtoLens.Field.HasField InitWalletRequest "statelessInit" Prelude.Bool where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _InitWalletRequest'statelessInit+ (\ x__ y__ -> x__ {_InitWalletRequest'statelessInit = y__}))+ Prelude.id+instance Data.ProtoLens.Field.HasField InitWalletRequest "extendedMasterKey" Data.Text.Text where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _InitWalletRequest'extendedMasterKey+ (\ x__ y__ -> x__ {_InitWalletRequest'extendedMasterKey = y__}))+ Prelude.id+instance Data.ProtoLens.Field.HasField InitWalletRequest "extendedMasterKeyBirthdayTimestamp" Data.Word.Word64 where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _InitWalletRequest'extendedMasterKeyBirthdayTimestamp+ (\ x__ y__+ -> x__+ {_InitWalletRequest'extendedMasterKeyBirthdayTimestamp = y__}))+ Prelude.id+instance Data.ProtoLens.Field.HasField InitWalletRequest "watchOnly" WatchOnly where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _InitWalletRequest'watchOnly+ (\ x__ y__ -> x__ {_InitWalletRequest'watchOnly = y__}))+ (Data.ProtoLens.maybeLens Data.ProtoLens.defMessage)+instance Data.ProtoLens.Field.HasField InitWalletRequest "maybe'watchOnly" (Prelude.Maybe WatchOnly) where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _InitWalletRequest'watchOnly+ (\ x__ y__ -> x__ {_InitWalletRequest'watchOnly = y__}))+ Prelude.id+instance Data.ProtoLens.Message InitWalletRequest where+ messageName _ = Data.Text.pack "lnrpc.InitWalletRequest"+ packedMessageDescriptor _+ = "\n\+ \\DC1InitWalletRequest\DC2'\n\+ \\SIwallet_password\CAN\SOH \SOH(\fR\SOwalletPassword\DC20\n\+ \\DC4cipher_seed_mnemonic\CAN\STX \ETX(\tR\DC2cipherSeedMnemonic\DC2+\n\+ \\DC1aezeed_passphrase\CAN\ETX \SOH(\fR\DLEaezeedPassphrase\DC2'\n\+ \\SIrecovery_window\CAN\EOT \SOH(\ENQR\SOrecoveryWindow\DC2B\n\+ \\SIchannel_backups\CAN\ENQ \SOH(\v2\EM.lnrpc.ChanBackupSnapshotR\SOchannelBackups\DC2%\n\+ \\SOstateless_init\CAN\ACK \SOH(\bR\rstatelessInit\DC2.\n\+ \\DC3extended_master_key\CAN\a \SOH(\tR\DC1extendedMasterKey\DC2R\n\+ \&extended_master_key_birthday_timestamp\CAN\b \SOH(\EOTR\"extendedMasterKeyBirthdayTimestamp\DC2/\n\+ \\n\+ \watch_only\CAN\t \SOH(\v2\DLE.lnrpc.WatchOnlyR\twatchOnly"+ packedFileDescriptor _ = packedFileDescriptor+ fieldsByTag+ = let+ walletPassword__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "wallet_password"+ (Data.ProtoLens.ScalarField Data.ProtoLens.BytesField ::+ Data.ProtoLens.FieldTypeDescriptor Data.ByteString.ByteString)+ (Data.ProtoLens.PlainField+ Data.ProtoLens.Optional+ (Data.ProtoLens.Field.field @"walletPassword")) ::+ Data.ProtoLens.FieldDescriptor InitWalletRequest+ cipherSeedMnemonic__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "cipher_seed_mnemonic"+ (Data.ProtoLens.ScalarField Data.ProtoLens.StringField ::+ Data.ProtoLens.FieldTypeDescriptor Data.Text.Text)+ (Data.ProtoLens.RepeatedField+ Data.ProtoLens.Unpacked+ (Data.ProtoLens.Field.field @"cipherSeedMnemonic")) ::+ Data.ProtoLens.FieldDescriptor InitWalletRequest+ aezeedPassphrase__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "aezeed_passphrase"+ (Data.ProtoLens.ScalarField Data.ProtoLens.BytesField ::+ Data.ProtoLens.FieldTypeDescriptor Data.ByteString.ByteString)+ (Data.ProtoLens.PlainField+ Data.ProtoLens.Optional+ (Data.ProtoLens.Field.field @"aezeedPassphrase")) ::+ Data.ProtoLens.FieldDescriptor InitWalletRequest+ recoveryWindow__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "recovery_window"+ (Data.ProtoLens.ScalarField Data.ProtoLens.Int32Field ::+ Data.ProtoLens.FieldTypeDescriptor Data.Int.Int32)+ (Data.ProtoLens.PlainField+ Data.ProtoLens.Optional+ (Data.ProtoLens.Field.field @"recoveryWindow")) ::+ Data.ProtoLens.FieldDescriptor InitWalletRequest+ channelBackups__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "channel_backups"+ (Data.ProtoLens.MessageField Data.ProtoLens.MessageType ::+ Data.ProtoLens.FieldTypeDescriptor Proto.Lnrpc.Ln1.ChanBackupSnapshot)+ (Data.ProtoLens.OptionalField+ (Data.ProtoLens.Field.field @"maybe'channelBackups")) ::+ Data.ProtoLens.FieldDescriptor InitWalletRequest+ statelessInit__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "stateless_init"+ (Data.ProtoLens.ScalarField Data.ProtoLens.BoolField ::+ Data.ProtoLens.FieldTypeDescriptor Prelude.Bool)+ (Data.ProtoLens.PlainField+ Data.ProtoLens.Optional+ (Data.ProtoLens.Field.field @"statelessInit")) ::+ Data.ProtoLens.FieldDescriptor InitWalletRequest+ extendedMasterKey__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "extended_master_key"+ (Data.ProtoLens.ScalarField Data.ProtoLens.StringField ::+ Data.ProtoLens.FieldTypeDescriptor Data.Text.Text)+ (Data.ProtoLens.PlainField+ Data.ProtoLens.Optional+ (Data.ProtoLens.Field.field @"extendedMasterKey")) ::+ Data.ProtoLens.FieldDescriptor InitWalletRequest+ extendedMasterKeyBirthdayTimestamp__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "extended_master_key_birthday_timestamp"+ (Data.ProtoLens.ScalarField Data.ProtoLens.UInt64Field ::+ Data.ProtoLens.FieldTypeDescriptor Data.Word.Word64)+ (Data.ProtoLens.PlainField+ Data.ProtoLens.Optional+ (Data.ProtoLens.Field.field+ @"extendedMasterKeyBirthdayTimestamp")) ::+ Data.ProtoLens.FieldDescriptor InitWalletRequest+ watchOnly__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "watch_only"+ (Data.ProtoLens.MessageField Data.ProtoLens.MessageType ::+ Data.ProtoLens.FieldTypeDescriptor WatchOnly)+ (Data.ProtoLens.OptionalField+ (Data.ProtoLens.Field.field @"maybe'watchOnly")) ::+ Data.ProtoLens.FieldDescriptor InitWalletRequest+ in+ Data.Map.fromList+ [(Data.ProtoLens.Tag 1, walletPassword__field_descriptor),+ (Data.ProtoLens.Tag 2, cipherSeedMnemonic__field_descriptor),+ (Data.ProtoLens.Tag 3, aezeedPassphrase__field_descriptor),+ (Data.ProtoLens.Tag 4, recoveryWindow__field_descriptor),+ (Data.ProtoLens.Tag 5, channelBackups__field_descriptor),+ (Data.ProtoLens.Tag 6, statelessInit__field_descriptor),+ (Data.ProtoLens.Tag 7, extendedMasterKey__field_descriptor),+ (Data.ProtoLens.Tag 8, + extendedMasterKeyBirthdayTimestamp__field_descriptor),+ (Data.ProtoLens.Tag 9, watchOnly__field_descriptor)]+ unknownFields+ = Lens.Family2.Unchecked.lens+ _InitWalletRequest'_unknownFields+ (\ x__ y__ -> x__ {_InitWalletRequest'_unknownFields = y__})+ defMessage+ = InitWalletRequest'_constructor+ {_InitWalletRequest'walletPassword = Data.ProtoLens.fieldDefault,+ _InitWalletRequest'cipherSeedMnemonic = Data.Vector.Generic.empty,+ _InitWalletRequest'aezeedPassphrase = Data.ProtoLens.fieldDefault,+ _InitWalletRequest'recoveryWindow = Data.ProtoLens.fieldDefault,+ _InitWalletRequest'channelBackups = Prelude.Nothing,+ _InitWalletRequest'statelessInit = Data.ProtoLens.fieldDefault,+ _InitWalletRequest'extendedMasterKey = Data.ProtoLens.fieldDefault,+ _InitWalletRequest'extendedMasterKeyBirthdayTimestamp = Data.ProtoLens.fieldDefault,+ _InitWalletRequest'watchOnly = Prelude.Nothing,+ _InitWalletRequest'_unknownFields = []}+ parseMessage+ = let+ loop ::+ InitWalletRequest+ -> Data.ProtoLens.Encoding.Growing.Growing Data.Vector.Vector Data.ProtoLens.Encoding.Growing.RealWorld Data.Text.Text+ -> Data.ProtoLens.Encoding.Bytes.Parser InitWalletRequest+ loop x mutable'cipherSeedMnemonic+ = do end <- Data.ProtoLens.Encoding.Bytes.atEnd+ if end then+ do frozen'cipherSeedMnemonic <- Data.ProtoLens.Encoding.Parser.Unsafe.unsafeLiftIO+ (Data.ProtoLens.Encoding.Growing.unsafeFreeze+ mutable'cipherSeedMnemonic)+ (let missing = []+ in+ if Prelude.null missing then+ Prelude.return ()+ else+ Prelude.fail+ ((Prelude.++)+ "Missing required fields: "+ (Prelude.show (missing :: [Prelude.String]))))+ Prelude.return+ (Lens.Family2.over+ Data.ProtoLens.unknownFields (\ !t -> Prelude.reverse t)+ (Lens.Family2.set+ (Data.ProtoLens.Field.field @"vec'cipherSeedMnemonic")+ frozen'cipherSeedMnemonic x))+ else+ do tag <- Data.ProtoLens.Encoding.Bytes.getVarInt+ case tag of+ 10+ -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (do len <- Data.ProtoLens.Encoding.Bytes.getVarInt+ Data.ProtoLens.Encoding.Bytes.getBytes+ (Prelude.fromIntegral len))+ "wallet_password"+ loop+ (Lens.Family2.set+ (Data.ProtoLens.Field.field @"walletPassword") y x)+ mutable'cipherSeedMnemonic+ 18+ -> do !y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (do value <- do len <- Data.ProtoLens.Encoding.Bytes.getVarInt+ Data.ProtoLens.Encoding.Bytes.getBytes+ (Prelude.fromIntegral len)+ Data.ProtoLens.Encoding.Bytes.runEither+ (case Data.Text.Encoding.decodeUtf8' value of+ (Prelude.Left err)+ -> Prelude.Left (Prelude.show err)+ (Prelude.Right r) -> Prelude.Right r))+ "cipher_seed_mnemonic"+ v <- Data.ProtoLens.Encoding.Parser.Unsafe.unsafeLiftIO+ (Data.ProtoLens.Encoding.Growing.append+ mutable'cipherSeedMnemonic y)+ loop x v+ 26+ -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (do len <- Data.ProtoLens.Encoding.Bytes.getVarInt+ Data.ProtoLens.Encoding.Bytes.getBytes+ (Prelude.fromIntegral len))+ "aezeed_passphrase"+ loop+ (Lens.Family2.set+ (Data.ProtoLens.Field.field @"aezeedPassphrase") y x)+ mutable'cipherSeedMnemonic+ 32+ -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (Prelude.fmap+ Prelude.fromIntegral+ Data.ProtoLens.Encoding.Bytes.getVarInt)+ "recovery_window"+ loop+ (Lens.Family2.set+ (Data.ProtoLens.Field.field @"recoveryWindow") y x)+ mutable'cipherSeedMnemonic+ 42+ -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (do len <- Data.ProtoLens.Encoding.Bytes.getVarInt+ Data.ProtoLens.Encoding.Bytes.isolate+ (Prelude.fromIntegral len) Data.ProtoLens.parseMessage)+ "channel_backups"+ loop+ (Lens.Family2.set+ (Data.ProtoLens.Field.field @"channelBackups") y x)+ mutable'cipherSeedMnemonic+ 48+ -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (Prelude.fmap+ ((Prelude./=) 0) Data.ProtoLens.Encoding.Bytes.getVarInt)+ "stateless_init"+ loop+ (Lens.Family2.set+ (Data.ProtoLens.Field.field @"statelessInit") y x)+ mutable'cipherSeedMnemonic+ 58+ -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (do value <- do len <- Data.ProtoLens.Encoding.Bytes.getVarInt+ Data.ProtoLens.Encoding.Bytes.getBytes+ (Prelude.fromIntegral len)+ Data.ProtoLens.Encoding.Bytes.runEither+ (case Data.Text.Encoding.decodeUtf8' value of+ (Prelude.Left err)+ -> Prelude.Left (Prelude.show err)+ (Prelude.Right r) -> Prelude.Right r))+ "extended_master_key"+ loop+ (Lens.Family2.set+ (Data.ProtoLens.Field.field @"extendedMasterKey") y x)+ mutable'cipherSeedMnemonic+ 64+ -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ Data.ProtoLens.Encoding.Bytes.getVarInt+ "extended_master_key_birthday_timestamp"+ loop+ (Lens.Family2.set+ (Data.ProtoLens.Field.field+ @"extendedMasterKeyBirthdayTimestamp")+ y x)+ mutable'cipherSeedMnemonic+ 74+ -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (do len <- Data.ProtoLens.Encoding.Bytes.getVarInt+ Data.ProtoLens.Encoding.Bytes.isolate+ (Prelude.fromIntegral len) Data.ProtoLens.parseMessage)+ "watch_only"+ loop+ (Lens.Family2.set (Data.ProtoLens.Field.field @"watchOnly") y x)+ mutable'cipherSeedMnemonic+ wire+ -> do !y <- Data.ProtoLens.Encoding.Wire.parseTaggedValueFromWire+ wire+ loop+ (Lens.Family2.over+ Data.ProtoLens.unknownFields (\ !t -> (:) y t) x)+ mutable'cipherSeedMnemonic+ in+ (Data.ProtoLens.Encoding.Bytes.<?>)+ (do mutable'cipherSeedMnemonic <- Data.ProtoLens.Encoding.Parser.Unsafe.unsafeLiftIO+ Data.ProtoLens.Encoding.Growing.new+ loop Data.ProtoLens.defMessage mutable'cipherSeedMnemonic)+ "InitWalletRequest"+ buildMessage+ = \ _x+ -> (Data.Monoid.<>)+ (let+ _v+ = Lens.Family2.view+ (Data.ProtoLens.Field.field @"walletPassword") _x+ in+ if (Prelude.==) _v Data.ProtoLens.fieldDefault then+ Data.Monoid.mempty+ else+ (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 10)+ ((\ bs+ -> (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt+ (Prelude.fromIntegral (Data.ByteString.length bs)))+ (Data.ProtoLens.Encoding.Bytes.putBytes bs))+ _v))+ ((Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.foldMapBuilder+ (\ _v+ -> (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 18)+ ((Prelude..)+ (\ bs+ -> (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt+ (Prelude.fromIntegral (Data.ByteString.length bs)))+ (Data.ProtoLens.Encoding.Bytes.putBytes bs))+ Data.Text.Encoding.encodeUtf8 _v))+ (Lens.Family2.view+ (Data.ProtoLens.Field.field @"vec'cipherSeedMnemonic") _x))+ ((Data.Monoid.<>)+ (let+ _v+ = Lens.Family2.view+ (Data.ProtoLens.Field.field @"aezeedPassphrase") _x+ in+ if (Prelude.==) _v Data.ProtoLens.fieldDefault then+ Data.Monoid.mempty+ else+ (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 26)+ ((\ bs+ -> (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt+ (Prelude.fromIntegral (Data.ByteString.length bs)))+ (Data.ProtoLens.Encoding.Bytes.putBytes bs))+ _v))+ ((Data.Monoid.<>)+ (let+ _v+ = Lens.Family2.view+ (Data.ProtoLens.Field.field @"recoveryWindow") _x+ in+ if (Prelude.==) _v Data.ProtoLens.fieldDefault then+ Data.Monoid.mempty+ else+ (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 32)+ ((Prelude..)+ Data.ProtoLens.Encoding.Bytes.putVarInt Prelude.fromIntegral _v))+ ((Data.Monoid.<>)+ (case+ Lens.Family2.view+ (Data.ProtoLens.Field.field @"maybe'channelBackups") _x+ of+ Prelude.Nothing -> Data.Monoid.mempty+ (Prelude.Just _v)+ -> (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 42)+ ((Prelude..)+ (\ bs+ -> (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt+ (Prelude.fromIntegral (Data.ByteString.length bs)))+ (Data.ProtoLens.Encoding.Bytes.putBytes bs))+ Data.ProtoLens.encodeMessage _v))+ ((Data.Monoid.<>)+ (let+ _v+ = Lens.Family2.view+ (Data.ProtoLens.Field.field @"statelessInit") _x+ in+ if (Prelude.==) _v Data.ProtoLens.fieldDefault then+ Data.Monoid.mempty+ else+ (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 48)+ ((Prelude..)+ Data.ProtoLens.Encoding.Bytes.putVarInt+ (\ b -> if b then 1 else 0) _v))+ ((Data.Monoid.<>)+ (let+ _v+ = Lens.Family2.view+ (Data.ProtoLens.Field.field @"extendedMasterKey") _x+ in+ if (Prelude.==) _v Data.ProtoLens.fieldDefault then+ Data.Monoid.mempty+ else+ (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 58)+ ((Prelude..)+ (\ bs+ -> (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt+ (Prelude.fromIntegral+ (Data.ByteString.length bs)))+ (Data.ProtoLens.Encoding.Bytes.putBytes bs))+ Data.Text.Encoding.encodeUtf8 _v))+ ((Data.Monoid.<>)+ (let+ _v+ = Lens.Family2.view+ (Data.ProtoLens.Field.field+ @"extendedMasterKeyBirthdayTimestamp")+ _x+ in+ if (Prelude.==) _v Data.ProtoLens.fieldDefault then+ Data.Monoid.mempty+ else+ (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 64)+ (Data.ProtoLens.Encoding.Bytes.putVarInt _v))+ ((Data.Monoid.<>)+ (case+ Lens.Family2.view+ (Data.ProtoLens.Field.field @"maybe'watchOnly") _x+ of+ Prelude.Nothing -> Data.Monoid.mempty+ (Prelude.Just _v)+ -> (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 74)+ ((Prelude..)+ (\ bs+ -> (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt+ (Prelude.fromIntegral+ (Data.ByteString.length bs)))+ (Data.ProtoLens.Encoding.Bytes.putBytes+ bs))+ Data.ProtoLens.encodeMessage _v))+ (Data.ProtoLens.Encoding.Wire.buildFieldSet+ (Lens.Family2.view Data.ProtoLens.unknownFields _x))))))))))+instance Control.DeepSeq.NFData InitWalletRequest where+ rnf+ = \ x__+ -> Control.DeepSeq.deepseq+ (_InitWalletRequest'_unknownFields x__)+ (Control.DeepSeq.deepseq+ (_InitWalletRequest'walletPassword x__)+ (Control.DeepSeq.deepseq+ (_InitWalletRequest'cipherSeedMnemonic x__)+ (Control.DeepSeq.deepseq+ (_InitWalletRequest'aezeedPassphrase x__)+ (Control.DeepSeq.deepseq+ (_InitWalletRequest'recoveryWindow x__)+ (Control.DeepSeq.deepseq+ (_InitWalletRequest'channelBackups x__)+ (Control.DeepSeq.deepseq+ (_InitWalletRequest'statelessInit x__)+ (Control.DeepSeq.deepseq+ (_InitWalletRequest'extendedMasterKey x__)+ (Control.DeepSeq.deepseq+ (_InitWalletRequest'extendedMasterKeyBirthdayTimestamp x__)+ (Control.DeepSeq.deepseq+ (_InitWalletRequest'watchOnly x__) ())))))))))+{- | Fields :+ + * 'Proto.Walletunlocker_Fields.adminMacaroon' @:: Lens' InitWalletResponse Data.ByteString.ByteString@ -}+data InitWalletResponse+ = InitWalletResponse'_constructor {_InitWalletResponse'adminMacaroon :: !Data.ByteString.ByteString,+ _InitWalletResponse'_unknownFields :: !Data.ProtoLens.FieldSet}+ deriving stock (Prelude.Eq, Prelude.Ord, GHC.Generics.Generic)+instance Prelude.Show InitWalletResponse where+ showsPrec _ __x __s+ = Prelude.showChar+ '{'+ (Prelude.showString+ (Data.ProtoLens.showMessageShort __x) (Prelude.showChar '}' __s))+instance Text.PrettyPrint.GenericPretty.Out InitWalletResponse+instance Data.ProtoLens.Field.HasField InitWalletResponse "adminMacaroon" Data.ByteString.ByteString where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _InitWalletResponse'adminMacaroon+ (\ x__ y__ -> x__ {_InitWalletResponse'adminMacaroon = y__}))+ Prelude.id+instance Data.ProtoLens.Message InitWalletResponse where+ messageName _ = Data.Text.pack "lnrpc.InitWalletResponse"+ packedMessageDescriptor _+ = "\n\+ \\DC2InitWalletResponse\DC2%\n\+ \\SOadmin_macaroon\CAN\SOH \SOH(\fR\radminMacaroon"+ packedFileDescriptor _ = packedFileDescriptor+ fieldsByTag+ = let+ adminMacaroon__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "admin_macaroon"+ (Data.ProtoLens.ScalarField Data.ProtoLens.BytesField ::+ Data.ProtoLens.FieldTypeDescriptor Data.ByteString.ByteString)+ (Data.ProtoLens.PlainField+ Data.ProtoLens.Optional+ (Data.ProtoLens.Field.field @"adminMacaroon")) ::+ Data.ProtoLens.FieldDescriptor InitWalletResponse+ in+ Data.Map.fromList+ [(Data.ProtoLens.Tag 1, adminMacaroon__field_descriptor)]+ unknownFields+ = Lens.Family2.Unchecked.lens+ _InitWalletResponse'_unknownFields+ (\ x__ y__ -> x__ {_InitWalletResponse'_unknownFields = y__})+ defMessage+ = InitWalletResponse'_constructor+ {_InitWalletResponse'adminMacaroon = Data.ProtoLens.fieldDefault,+ _InitWalletResponse'_unknownFields = []}+ parseMessage+ = let+ loop ::+ InitWalletResponse+ -> Data.ProtoLens.Encoding.Bytes.Parser InitWalletResponse+ loop x+ = do end <- Data.ProtoLens.Encoding.Bytes.atEnd+ if end then+ do (let missing = []+ in+ if Prelude.null missing then+ Prelude.return ()+ else+ Prelude.fail+ ((Prelude.++)+ "Missing required fields: "+ (Prelude.show (missing :: [Prelude.String]))))+ Prelude.return+ (Lens.Family2.over+ Data.ProtoLens.unknownFields (\ !t -> Prelude.reverse t) x)+ else+ do tag <- Data.ProtoLens.Encoding.Bytes.getVarInt+ case tag of+ 10+ -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (do len <- Data.ProtoLens.Encoding.Bytes.getVarInt+ Data.ProtoLens.Encoding.Bytes.getBytes+ (Prelude.fromIntegral len))+ "admin_macaroon"+ loop+ (Lens.Family2.set+ (Data.ProtoLens.Field.field @"adminMacaroon") y x)+ wire+ -> do !y <- Data.ProtoLens.Encoding.Wire.parseTaggedValueFromWire+ wire+ loop+ (Lens.Family2.over+ Data.ProtoLens.unknownFields (\ !t -> (:) y t) x)+ in+ (Data.ProtoLens.Encoding.Bytes.<?>)+ (do loop Data.ProtoLens.defMessage) "InitWalletResponse"+ buildMessage+ = \ _x+ -> (Data.Monoid.<>)+ (let+ _v+ = Lens.Family2.view+ (Data.ProtoLens.Field.field @"adminMacaroon") _x+ in+ if (Prelude.==) _v Data.ProtoLens.fieldDefault then+ Data.Monoid.mempty+ else+ (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 10)+ ((\ bs+ -> (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt+ (Prelude.fromIntegral (Data.ByteString.length bs)))+ (Data.ProtoLens.Encoding.Bytes.putBytes bs))+ _v))+ (Data.ProtoLens.Encoding.Wire.buildFieldSet+ (Lens.Family2.view Data.ProtoLens.unknownFields _x))+instance Control.DeepSeq.NFData InitWalletResponse where+ rnf+ = \ x__+ -> Control.DeepSeq.deepseq+ (_InitWalletResponse'_unknownFields x__)+ (Control.DeepSeq.deepseq+ (_InitWalletResponse'adminMacaroon x__) ())+{- | Fields :+ + * 'Proto.Walletunlocker_Fields.walletPassword' @:: Lens' UnlockWalletRequest Data.ByteString.ByteString@+ * 'Proto.Walletunlocker_Fields.recoveryWindow' @:: Lens' UnlockWalletRequest Data.Int.Int32@+ * 'Proto.Walletunlocker_Fields.channelBackups' @:: Lens' UnlockWalletRequest Proto.Lnrpc.Ln1.ChanBackupSnapshot@+ * 'Proto.Walletunlocker_Fields.maybe'channelBackups' @:: Lens' UnlockWalletRequest (Prelude.Maybe Proto.Lnrpc.Ln1.ChanBackupSnapshot)@+ * 'Proto.Walletunlocker_Fields.statelessInit' @:: Lens' UnlockWalletRequest Prelude.Bool@ -}+data UnlockWalletRequest+ = UnlockWalletRequest'_constructor {_UnlockWalletRequest'walletPassword :: !Data.ByteString.ByteString,+ _UnlockWalletRequest'recoveryWindow :: !Data.Int.Int32,+ _UnlockWalletRequest'channelBackups :: !(Prelude.Maybe Proto.Lnrpc.Ln1.ChanBackupSnapshot),+ _UnlockWalletRequest'statelessInit :: !Prelude.Bool,+ _UnlockWalletRequest'_unknownFields :: !Data.ProtoLens.FieldSet}+ deriving stock (Prelude.Eq, Prelude.Ord, GHC.Generics.Generic)+instance Prelude.Show UnlockWalletRequest where+ showsPrec _ __x __s+ = Prelude.showChar+ '{'+ (Prelude.showString+ (Data.ProtoLens.showMessageShort __x) (Prelude.showChar '}' __s))+instance Text.PrettyPrint.GenericPretty.Out UnlockWalletRequest+instance Data.ProtoLens.Field.HasField UnlockWalletRequest "walletPassword" Data.ByteString.ByteString where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _UnlockWalletRequest'walletPassword+ (\ x__ y__ -> x__ {_UnlockWalletRequest'walletPassword = y__}))+ Prelude.id+instance Data.ProtoLens.Field.HasField UnlockWalletRequest "recoveryWindow" Data.Int.Int32 where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _UnlockWalletRequest'recoveryWindow+ (\ x__ y__ -> x__ {_UnlockWalletRequest'recoveryWindow = y__}))+ Prelude.id+instance Data.ProtoLens.Field.HasField UnlockWalletRequest "channelBackups" Proto.Lnrpc.Ln1.ChanBackupSnapshot where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _UnlockWalletRequest'channelBackups+ (\ x__ y__ -> x__ {_UnlockWalletRequest'channelBackups = y__}))+ (Data.ProtoLens.maybeLens Data.ProtoLens.defMessage)+instance Data.ProtoLens.Field.HasField UnlockWalletRequest "maybe'channelBackups" (Prelude.Maybe Proto.Lnrpc.Ln1.ChanBackupSnapshot) where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _UnlockWalletRequest'channelBackups+ (\ x__ y__ -> x__ {_UnlockWalletRequest'channelBackups = y__}))+ Prelude.id+instance Data.ProtoLens.Field.HasField UnlockWalletRequest "statelessInit" Prelude.Bool where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _UnlockWalletRequest'statelessInit+ (\ x__ y__ -> x__ {_UnlockWalletRequest'statelessInit = y__}))+ Prelude.id+instance Data.ProtoLens.Message UnlockWalletRequest where+ messageName _ = Data.Text.pack "lnrpc.UnlockWalletRequest"+ packedMessageDescriptor _+ = "\n\+ \\DC3UnlockWalletRequest\DC2'\n\+ \\SIwallet_password\CAN\SOH \SOH(\fR\SOwalletPassword\DC2'\n\+ \\SIrecovery_window\CAN\STX \SOH(\ENQR\SOrecoveryWindow\DC2B\n\+ \\SIchannel_backups\CAN\ETX \SOH(\v2\EM.lnrpc.ChanBackupSnapshotR\SOchannelBackups\DC2%\n\+ \\SOstateless_init\CAN\EOT \SOH(\bR\rstatelessInit"+ packedFileDescriptor _ = packedFileDescriptor+ fieldsByTag+ = let+ walletPassword__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "wallet_password"+ (Data.ProtoLens.ScalarField Data.ProtoLens.BytesField ::+ Data.ProtoLens.FieldTypeDescriptor Data.ByteString.ByteString)+ (Data.ProtoLens.PlainField+ Data.ProtoLens.Optional+ (Data.ProtoLens.Field.field @"walletPassword")) ::+ Data.ProtoLens.FieldDescriptor UnlockWalletRequest+ recoveryWindow__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "recovery_window"+ (Data.ProtoLens.ScalarField Data.ProtoLens.Int32Field ::+ Data.ProtoLens.FieldTypeDescriptor Data.Int.Int32)+ (Data.ProtoLens.PlainField+ Data.ProtoLens.Optional+ (Data.ProtoLens.Field.field @"recoveryWindow")) ::+ Data.ProtoLens.FieldDescriptor UnlockWalletRequest+ channelBackups__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "channel_backups"+ (Data.ProtoLens.MessageField Data.ProtoLens.MessageType ::+ Data.ProtoLens.FieldTypeDescriptor Proto.Lnrpc.Ln1.ChanBackupSnapshot)+ (Data.ProtoLens.OptionalField+ (Data.ProtoLens.Field.field @"maybe'channelBackups")) ::+ Data.ProtoLens.FieldDescriptor UnlockWalletRequest+ statelessInit__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "stateless_init"+ (Data.ProtoLens.ScalarField Data.ProtoLens.BoolField ::+ Data.ProtoLens.FieldTypeDescriptor Prelude.Bool)+ (Data.ProtoLens.PlainField+ Data.ProtoLens.Optional+ (Data.ProtoLens.Field.field @"statelessInit")) ::+ Data.ProtoLens.FieldDescriptor UnlockWalletRequest+ in+ Data.Map.fromList+ [(Data.ProtoLens.Tag 1, walletPassword__field_descriptor),+ (Data.ProtoLens.Tag 2, recoveryWindow__field_descriptor),+ (Data.ProtoLens.Tag 3, channelBackups__field_descriptor),+ (Data.ProtoLens.Tag 4, statelessInit__field_descriptor)]+ unknownFields+ = Lens.Family2.Unchecked.lens+ _UnlockWalletRequest'_unknownFields+ (\ x__ y__ -> x__ {_UnlockWalletRequest'_unknownFields = y__})+ defMessage+ = UnlockWalletRequest'_constructor+ {_UnlockWalletRequest'walletPassword = Data.ProtoLens.fieldDefault,+ _UnlockWalletRequest'recoveryWindow = Data.ProtoLens.fieldDefault,+ _UnlockWalletRequest'channelBackups = Prelude.Nothing,+ _UnlockWalletRequest'statelessInit = Data.ProtoLens.fieldDefault,+ _UnlockWalletRequest'_unknownFields = []}+ parseMessage+ = let+ loop ::+ UnlockWalletRequest+ -> Data.ProtoLens.Encoding.Bytes.Parser UnlockWalletRequest+ loop x+ = do end <- Data.ProtoLens.Encoding.Bytes.atEnd+ if end then+ do (let missing = []+ in+ if Prelude.null missing then+ Prelude.return ()+ else+ Prelude.fail+ ((Prelude.++)+ "Missing required fields: "+ (Prelude.show (missing :: [Prelude.String]))))+ Prelude.return+ (Lens.Family2.over+ Data.ProtoLens.unknownFields (\ !t -> Prelude.reverse t) x)+ else+ do tag <- Data.ProtoLens.Encoding.Bytes.getVarInt+ case tag of+ 10+ -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (do len <- Data.ProtoLens.Encoding.Bytes.getVarInt+ Data.ProtoLens.Encoding.Bytes.getBytes+ (Prelude.fromIntegral len))+ "wallet_password"+ loop+ (Lens.Family2.set+ (Data.ProtoLens.Field.field @"walletPassword") y x)+ 16+ -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (Prelude.fmap+ Prelude.fromIntegral+ Data.ProtoLens.Encoding.Bytes.getVarInt)+ "recovery_window"+ loop+ (Lens.Family2.set+ (Data.ProtoLens.Field.field @"recoveryWindow") y x)+ 26+ -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (do len <- Data.ProtoLens.Encoding.Bytes.getVarInt+ Data.ProtoLens.Encoding.Bytes.isolate+ (Prelude.fromIntegral len) Data.ProtoLens.parseMessage)+ "channel_backups"+ loop+ (Lens.Family2.set+ (Data.ProtoLens.Field.field @"channelBackups") y x)+ 32+ -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (Prelude.fmap+ ((Prelude./=) 0) Data.ProtoLens.Encoding.Bytes.getVarInt)+ "stateless_init"+ loop+ (Lens.Family2.set+ (Data.ProtoLens.Field.field @"statelessInit") y x)+ wire+ -> do !y <- Data.ProtoLens.Encoding.Wire.parseTaggedValueFromWire+ wire+ loop+ (Lens.Family2.over+ Data.ProtoLens.unknownFields (\ !t -> (:) y t) x)+ in+ (Data.ProtoLens.Encoding.Bytes.<?>)+ (do loop Data.ProtoLens.defMessage) "UnlockWalletRequest"+ buildMessage+ = \ _x+ -> (Data.Monoid.<>)+ (let+ _v+ = Lens.Family2.view+ (Data.ProtoLens.Field.field @"walletPassword") _x+ in+ if (Prelude.==) _v Data.ProtoLens.fieldDefault then+ Data.Monoid.mempty+ else+ (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 10)+ ((\ bs+ -> (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt+ (Prelude.fromIntegral (Data.ByteString.length bs)))+ (Data.ProtoLens.Encoding.Bytes.putBytes bs))+ _v))+ ((Data.Monoid.<>)+ (let+ _v+ = Lens.Family2.view+ (Data.ProtoLens.Field.field @"recoveryWindow") _x+ in+ if (Prelude.==) _v Data.ProtoLens.fieldDefault then+ Data.Monoid.mempty+ else+ (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 16)+ ((Prelude..)+ Data.ProtoLens.Encoding.Bytes.putVarInt Prelude.fromIntegral _v))+ ((Data.Monoid.<>)+ (case+ Lens.Family2.view+ (Data.ProtoLens.Field.field @"maybe'channelBackups") _x+ of+ Prelude.Nothing -> Data.Monoid.mempty+ (Prelude.Just _v)+ -> (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 26)+ ((Prelude..)+ (\ bs+ -> (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt+ (Prelude.fromIntegral (Data.ByteString.length bs)))+ (Data.ProtoLens.Encoding.Bytes.putBytes bs))+ Data.ProtoLens.encodeMessage _v))+ ((Data.Monoid.<>)+ (let+ _v+ = Lens.Family2.view+ (Data.ProtoLens.Field.field @"statelessInit") _x+ in+ if (Prelude.==) _v Data.ProtoLens.fieldDefault then+ Data.Monoid.mempty+ else+ (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 32)+ ((Prelude..)+ Data.ProtoLens.Encoding.Bytes.putVarInt+ (\ b -> if b then 1 else 0) _v))+ (Data.ProtoLens.Encoding.Wire.buildFieldSet+ (Lens.Family2.view Data.ProtoLens.unknownFields _x)))))+instance Control.DeepSeq.NFData UnlockWalletRequest where+ rnf+ = \ x__+ -> Control.DeepSeq.deepseq+ (_UnlockWalletRequest'_unknownFields x__)+ (Control.DeepSeq.deepseq+ (_UnlockWalletRequest'walletPassword x__)+ (Control.DeepSeq.deepseq+ (_UnlockWalletRequest'recoveryWindow x__)+ (Control.DeepSeq.deepseq+ (_UnlockWalletRequest'channelBackups x__)+ (Control.DeepSeq.deepseq+ (_UnlockWalletRequest'statelessInit x__) ()))))+{- | Fields :+ -}+data UnlockWalletResponse+ = UnlockWalletResponse'_constructor {_UnlockWalletResponse'_unknownFields :: !Data.ProtoLens.FieldSet}+ deriving stock (Prelude.Eq, Prelude.Ord, GHC.Generics.Generic)+instance Prelude.Show UnlockWalletResponse where+ showsPrec _ __x __s+ = Prelude.showChar+ '{'+ (Prelude.showString+ (Data.ProtoLens.showMessageShort __x) (Prelude.showChar '}' __s))+instance Text.PrettyPrint.GenericPretty.Out UnlockWalletResponse+instance Data.ProtoLens.Message UnlockWalletResponse where+ messageName _ = Data.Text.pack "lnrpc.UnlockWalletResponse"+ packedMessageDescriptor _+ = "\n\+ \\DC4UnlockWalletResponse"+ packedFileDescriptor _ = packedFileDescriptor+ fieldsByTag = let in Data.Map.fromList []+ unknownFields+ = Lens.Family2.Unchecked.lens+ _UnlockWalletResponse'_unknownFields+ (\ x__ y__ -> x__ {_UnlockWalletResponse'_unknownFields = y__})+ defMessage+ = UnlockWalletResponse'_constructor+ {_UnlockWalletResponse'_unknownFields = []}+ parseMessage+ = let+ loop ::+ UnlockWalletResponse+ -> Data.ProtoLens.Encoding.Bytes.Parser UnlockWalletResponse+ loop x+ = do end <- Data.ProtoLens.Encoding.Bytes.atEnd+ if end then+ do (let missing = []+ in+ if Prelude.null missing then+ Prelude.return ()+ else+ Prelude.fail+ ((Prelude.++)+ "Missing required fields: "+ (Prelude.show (missing :: [Prelude.String]))))+ Prelude.return+ (Lens.Family2.over+ Data.ProtoLens.unknownFields (\ !t -> Prelude.reverse t) x)+ else+ do tag <- Data.ProtoLens.Encoding.Bytes.getVarInt+ case tag of {+ wire+ -> do !y <- Data.ProtoLens.Encoding.Wire.parseTaggedValueFromWire+ wire+ loop+ (Lens.Family2.over+ Data.ProtoLens.unknownFields (\ !t -> (:) y t) x) }+ in+ (Data.ProtoLens.Encoding.Bytes.<?>)+ (do loop Data.ProtoLens.defMessage) "UnlockWalletResponse"+ buildMessage+ = \ _x+ -> Data.ProtoLens.Encoding.Wire.buildFieldSet+ (Lens.Family2.view Data.ProtoLens.unknownFields _x)+instance Control.DeepSeq.NFData UnlockWalletResponse where+ rnf+ = \ x__+ -> Control.DeepSeq.deepseq+ (_UnlockWalletResponse'_unknownFields x__) ()+{- | Fields :+ + * 'Proto.Walletunlocker_Fields.masterKeyBirthdayTimestamp' @:: Lens' WatchOnly Data.Word.Word64@+ * 'Proto.Walletunlocker_Fields.masterKeyFingerprint' @:: Lens' WatchOnly Data.ByteString.ByteString@+ * 'Proto.Walletunlocker_Fields.accounts' @:: Lens' WatchOnly [WatchOnlyAccount]@+ * 'Proto.Walletunlocker_Fields.vec'accounts' @:: Lens' WatchOnly (Data.Vector.Vector WatchOnlyAccount)@ -}+data WatchOnly+ = WatchOnly'_constructor {_WatchOnly'masterKeyBirthdayTimestamp :: !Data.Word.Word64,+ _WatchOnly'masterKeyFingerprint :: !Data.ByteString.ByteString,+ _WatchOnly'accounts :: !(Data.Vector.Vector WatchOnlyAccount),+ _WatchOnly'_unknownFields :: !Data.ProtoLens.FieldSet}+ deriving stock (Prelude.Eq, Prelude.Ord, GHC.Generics.Generic)+instance Prelude.Show WatchOnly where+ showsPrec _ __x __s+ = Prelude.showChar+ '{'+ (Prelude.showString+ (Data.ProtoLens.showMessageShort __x) (Prelude.showChar '}' __s))+instance Text.PrettyPrint.GenericPretty.Out WatchOnly+instance Data.ProtoLens.Field.HasField WatchOnly "masterKeyBirthdayTimestamp" Data.Word.Word64 where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _WatchOnly'masterKeyBirthdayTimestamp+ (\ x__ y__ -> x__ {_WatchOnly'masterKeyBirthdayTimestamp = y__}))+ Prelude.id+instance Data.ProtoLens.Field.HasField WatchOnly "masterKeyFingerprint" Data.ByteString.ByteString where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _WatchOnly'masterKeyFingerprint+ (\ x__ y__ -> x__ {_WatchOnly'masterKeyFingerprint = y__}))+ Prelude.id+instance Data.ProtoLens.Field.HasField WatchOnly "accounts" [WatchOnlyAccount] where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _WatchOnly'accounts (\ x__ y__ -> x__ {_WatchOnly'accounts = y__}))+ (Lens.Family2.Unchecked.lens+ Data.Vector.Generic.toList+ (\ _ y__ -> Data.Vector.Generic.fromList y__))+instance Data.ProtoLens.Field.HasField WatchOnly "vec'accounts" (Data.Vector.Vector WatchOnlyAccount) where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _WatchOnly'accounts (\ x__ y__ -> x__ {_WatchOnly'accounts = y__}))+ Prelude.id+instance Data.ProtoLens.Message WatchOnly where+ messageName _ = Data.Text.pack "lnrpc.WatchOnly"+ packedMessageDescriptor _+ = "\n\+ \\tWatchOnly\DC2A\n\+ \\GSmaster_key_birthday_timestamp\CAN\SOH \SOH(\EOTR\SUBmasterKeyBirthdayTimestamp\DC24\n\+ \\SYNmaster_key_fingerprint\CAN\STX \SOH(\fR\DC4masterKeyFingerprint\DC23\n\+ \\baccounts\CAN\ETX \ETX(\v2\ETB.lnrpc.WatchOnlyAccountR\baccounts"+ packedFileDescriptor _ = packedFileDescriptor+ fieldsByTag+ = let+ masterKeyBirthdayTimestamp__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "master_key_birthday_timestamp"+ (Data.ProtoLens.ScalarField Data.ProtoLens.UInt64Field ::+ Data.ProtoLens.FieldTypeDescriptor Data.Word.Word64)+ (Data.ProtoLens.PlainField+ Data.ProtoLens.Optional+ (Data.ProtoLens.Field.field @"masterKeyBirthdayTimestamp")) ::+ Data.ProtoLens.FieldDescriptor WatchOnly+ masterKeyFingerprint__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "master_key_fingerprint"+ (Data.ProtoLens.ScalarField Data.ProtoLens.BytesField ::+ Data.ProtoLens.FieldTypeDescriptor Data.ByteString.ByteString)+ (Data.ProtoLens.PlainField+ Data.ProtoLens.Optional+ (Data.ProtoLens.Field.field @"masterKeyFingerprint")) ::+ Data.ProtoLens.FieldDescriptor WatchOnly+ accounts__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "accounts"+ (Data.ProtoLens.MessageField Data.ProtoLens.MessageType ::+ Data.ProtoLens.FieldTypeDescriptor WatchOnlyAccount)+ (Data.ProtoLens.RepeatedField+ Data.ProtoLens.Unpacked+ (Data.ProtoLens.Field.field @"accounts")) ::+ Data.ProtoLens.FieldDescriptor WatchOnly+ in+ Data.Map.fromList+ [(Data.ProtoLens.Tag 1, + masterKeyBirthdayTimestamp__field_descriptor),+ (Data.ProtoLens.Tag 2, masterKeyFingerprint__field_descriptor),+ (Data.ProtoLens.Tag 3, accounts__field_descriptor)]+ unknownFields+ = Lens.Family2.Unchecked.lens+ _WatchOnly'_unknownFields+ (\ x__ y__ -> x__ {_WatchOnly'_unknownFields = y__})+ defMessage+ = WatchOnly'_constructor+ {_WatchOnly'masterKeyBirthdayTimestamp = Data.ProtoLens.fieldDefault,+ _WatchOnly'masterKeyFingerprint = Data.ProtoLens.fieldDefault,+ _WatchOnly'accounts = Data.Vector.Generic.empty,+ _WatchOnly'_unknownFields = []}+ parseMessage+ = let+ loop ::+ WatchOnly+ -> Data.ProtoLens.Encoding.Growing.Growing Data.Vector.Vector Data.ProtoLens.Encoding.Growing.RealWorld WatchOnlyAccount+ -> Data.ProtoLens.Encoding.Bytes.Parser WatchOnly+ loop x mutable'accounts+ = do end <- Data.ProtoLens.Encoding.Bytes.atEnd+ if end then+ do frozen'accounts <- Data.ProtoLens.Encoding.Parser.Unsafe.unsafeLiftIO+ (Data.ProtoLens.Encoding.Growing.unsafeFreeze+ mutable'accounts)+ (let missing = []+ in+ if Prelude.null missing then+ Prelude.return ()+ else+ Prelude.fail+ ((Prelude.++)+ "Missing required fields: "+ (Prelude.show (missing :: [Prelude.String]))))+ Prelude.return+ (Lens.Family2.over+ Data.ProtoLens.unknownFields (\ !t -> Prelude.reverse t)+ (Lens.Family2.set+ (Data.ProtoLens.Field.field @"vec'accounts") frozen'accounts x))+ else+ do tag <- Data.ProtoLens.Encoding.Bytes.getVarInt+ case tag of+ 8 -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ Data.ProtoLens.Encoding.Bytes.getVarInt+ "master_key_birthday_timestamp"+ loop+ (Lens.Family2.set+ (Data.ProtoLens.Field.field @"masterKeyBirthdayTimestamp") y x)+ mutable'accounts+ 18+ -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (do len <- Data.ProtoLens.Encoding.Bytes.getVarInt+ Data.ProtoLens.Encoding.Bytes.getBytes+ (Prelude.fromIntegral len))+ "master_key_fingerprint"+ loop+ (Lens.Family2.set+ (Data.ProtoLens.Field.field @"masterKeyFingerprint") y x)+ mutable'accounts+ 26+ -> do !y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (do len <- Data.ProtoLens.Encoding.Bytes.getVarInt+ Data.ProtoLens.Encoding.Bytes.isolate+ (Prelude.fromIntegral len)+ Data.ProtoLens.parseMessage)+ "accounts"+ v <- Data.ProtoLens.Encoding.Parser.Unsafe.unsafeLiftIO+ (Data.ProtoLens.Encoding.Growing.append mutable'accounts y)+ loop x v+ wire+ -> do !y <- Data.ProtoLens.Encoding.Wire.parseTaggedValueFromWire+ wire+ loop+ (Lens.Family2.over+ Data.ProtoLens.unknownFields (\ !t -> (:) y t) x)+ mutable'accounts+ in+ (Data.ProtoLens.Encoding.Bytes.<?>)+ (do mutable'accounts <- Data.ProtoLens.Encoding.Parser.Unsafe.unsafeLiftIO+ Data.ProtoLens.Encoding.Growing.new+ loop Data.ProtoLens.defMessage mutable'accounts)+ "WatchOnly"+ buildMessage+ = \ _x+ -> (Data.Monoid.<>)+ (let+ _v+ = Lens.Family2.view+ (Data.ProtoLens.Field.field @"masterKeyBirthdayTimestamp") _x+ in+ if (Prelude.==) _v Data.ProtoLens.fieldDefault then+ Data.Monoid.mempty+ else+ (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 8)+ (Data.ProtoLens.Encoding.Bytes.putVarInt _v))+ ((Data.Monoid.<>)+ (let+ _v+ = Lens.Family2.view+ (Data.ProtoLens.Field.field @"masterKeyFingerprint") _x+ in+ if (Prelude.==) _v Data.ProtoLens.fieldDefault then+ Data.Monoid.mempty+ else+ (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 18)+ ((\ bs+ -> (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt+ (Prelude.fromIntegral (Data.ByteString.length bs)))+ (Data.ProtoLens.Encoding.Bytes.putBytes bs))+ _v))+ ((Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.foldMapBuilder+ (\ _v+ -> (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 26)+ ((Prelude..)+ (\ bs+ -> (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt+ (Prelude.fromIntegral (Data.ByteString.length bs)))+ (Data.ProtoLens.Encoding.Bytes.putBytes bs))+ Data.ProtoLens.encodeMessage _v))+ (Lens.Family2.view+ (Data.ProtoLens.Field.field @"vec'accounts") _x))+ (Data.ProtoLens.Encoding.Wire.buildFieldSet+ (Lens.Family2.view Data.ProtoLens.unknownFields _x))))+instance Control.DeepSeq.NFData WatchOnly where+ rnf+ = \ x__+ -> Control.DeepSeq.deepseq+ (_WatchOnly'_unknownFields x__)+ (Control.DeepSeq.deepseq+ (_WatchOnly'masterKeyBirthdayTimestamp x__)+ (Control.DeepSeq.deepseq+ (_WatchOnly'masterKeyFingerprint x__)+ (Control.DeepSeq.deepseq (_WatchOnly'accounts x__) ())))+{- | Fields :+ + * 'Proto.Walletunlocker_Fields.purpose' @:: Lens' WatchOnlyAccount Data.Word.Word32@+ * 'Proto.Walletunlocker_Fields.coinType' @:: Lens' WatchOnlyAccount Data.Word.Word32@+ * 'Proto.Walletunlocker_Fields.account' @:: Lens' WatchOnlyAccount Data.Word.Word32@+ * 'Proto.Walletunlocker_Fields.xpub' @:: Lens' WatchOnlyAccount Data.Text.Text@ -}+data WatchOnlyAccount+ = WatchOnlyAccount'_constructor {_WatchOnlyAccount'purpose :: !Data.Word.Word32,+ _WatchOnlyAccount'coinType :: !Data.Word.Word32,+ _WatchOnlyAccount'account :: !Data.Word.Word32,+ _WatchOnlyAccount'xpub :: !Data.Text.Text,+ _WatchOnlyAccount'_unknownFields :: !Data.ProtoLens.FieldSet}+ deriving stock (Prelude.Eq, Prelude.Ord, GHC.Generics.Generic)+instance Prelude.Show WatchOnlyAccount where+ showsPrec _ __x __s+ = Prelude.showChar+ '{'+ (Prelude.showString+ (Data.ProtoLens.showMessageShort __x) (Prelude.showChar '}' __s))+instance Text.PrettyPrint.GenericPretty.Out WatchOnlyAccount+instance Data.ProtoLens.Field.HasField WatchOnlyAccount "purpose" Data.Word.Word32 where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _WatchOnlyAccount'purpose+ (\ x__ y__ -> x__ {_WatchOnlyAccount'purpose = y__}))+ Prelude.id+instance Data.ProtoLens.Field.HasField WatchOnlyAccount "coinType" Data.Word.Word32 where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _WatchOnlyAccount'coinType+ (\ x__ y__ -> x__ {_WatchOnlyAccount'coinType = y__}))+ Prelude.id+instance Data.ProtoLens.Field.HasField WatchOnlyAccount "account" Data.Word.Word32 where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _WatchOnlyAccount'account+ (\ x__ y__ -> x__ {_WatchOnlyAccount'account = y__}))+ Prelude.id+instance Data.ProtoLens.Field.HasField WatchOnlyAccount "xpub" Data.Text.Text where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _WatchOnlyAccount'xpub+ (\ x__ y__ -> x__ {_WatchOnlyAccount'xpub = y__}))+ Prelude.id+instance Data.ProtoLens.Message WatchOnlyAccount where+ messageName _ = Data.Text.pack "lnrpc.WatchOnlyAccount"+ packedMessageDescriptor _+ = "\n\+ \\DLEWatchOnlyAccount\DC2\CAN\n\+ \\apurpose\CAN\SOH \SOH(\rR\apurpose\DC2\ESC\n\+ \\tcoin_type\CAN\STX \SOH(\rR\bcoinType\DC2\CAN\n\+ \\aaccount\CAN\ETX \SOH(\rR\aaccount\DC2\DC2\n\+ \\EOTxpub\CAN\EOT \SOH(\tR\EOTxpub"+ packedFileDescriptor _ = packedFileDescriptor+ fieldsByTag+ = let+ purpose__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "purpose"+ (Data.ProtoLens.ScalarField Data.ProtoLens.UInt32Field ::+ Data.ProtoLens.FieldTypeDescriptor Data.Word.Word32)+ (Data.ProtoLens.PlainField+ Data.ProtoLens.Optional (Data.ProtoLens.Field.field @"purpose")) ::+ Data.ProtoLens.FieldDescriptor WatchOnlyAccount+ coinType__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "coin_type"+ (Data.ProtoLens.ScalarField Data.ProtoLens.UInt32Field ::+ Data.ProtoLens.FieldTypeDescriptor Data.Word.Word32)+ (Data.ProtoLens.PlainField+ Data.ProtoLens.Optional+ (Data.ProtoLens.Field.field @"coinType")) ::+ Data.ProtoLens.FieldDescriptor WatchOnlyAccount+ account__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "account"+ (Data.ProtoLens.ScalarField Data.ProtoLens.UInt32Field ::+ Data.ProtoLens.FieldTypeDescriptor Data.Word.Word32)+ (Data.ProtoLens.PlainField+ Data.ProtoLens.Optional (Data.ProtoLens.Field.field @"account")) ::+ Data.ProtoLens.FieldDescriptor WatchOnlyAccount+ xpub__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "xpub"+ (Data.ProtoLens.ScalarField Data.ProtoLens.StringField ::+ Data.ProtoLens.FieldTypeDescriptor Data.Text.Text)+ (Data.ProtoLens.PlainField+ Data.ProtoLens.Optional (Data.ProtoLens.Field.field @"xpub")) ::+ Data.ProtoLens.FieldDescriptor WatchOnlyAccount+ in+ Data.Map.fromList+ [(Data.ProtoLens.Tag 1, purpose__field_descriptor),+ (Data.ProtoLens.Tag 2, coinType__field_descriptor),+ (Data.ProtoLens.Tag 3, account__field_descriptor),+ (Data.ProtoLens.Tag 4, xpub__field_descriptor)]+ unknownFields+ = Lens.Family2.Unchecked.lens+ _WatchOnlyAccount'_unknownFields+ (\ x__ y__ -> x__ {_WatchOnlyAccount'_unknownFields = y__})+ defMessage+ = WatchOnlyAccount'_constructor+ {_WatchOnlyAccount'purpose = Data.ProtoLens.fieldDefault,+ _WatchOnlyAccount'coinType = Data.ProtoLens.fieldDefault,+ _WatchOnlyAccount'account = Data.ProtoLens.fieldDefault,+ _WatchOnlyAccount'xpub = Data.ProtoLens.fieldDefault,+ _WatchOnlyAccount'_unknownFields = []}+ parseMessage+ = let+ loop ::+ WatchOnlyAccount+ -> Data.ProtoLens.Encoding.Bytes.Parser WatchOnlyAccount+ loop x+ = do end <- Data.ProtoLens.Encoding.Bytes.atEnd+ if end then+ do (let missing = []+ in+ if Prelude.null missing then+ Prelude.return ()+ else+ Prelude.fail+ ((Prelude.++)+ "Missing required fields: "+ (Prelude.show (missing :: [Prelude.String]))))+ Prelude.return+ (Lens.Family2.over+ Data.ProtoLens.unknownFields (\ !t -> Prelude.reverse t) x)+ else+ do tag <- Data.ProtoLens.Encoding.Bytes.getVarInt+ case tag of+ 8 -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (Prelude.fmap+ Prelude.fromIntegral+ Data.ProtoLens.Encoding.Bytes.getVarInt)+ "purpose"+ loop (Lens.Family2.set (Data.ProtoLens.Field.field @"purpose") y x)+ 16+ -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (Prelude.fmap+ Prelude.fromIntegral+ Data.ProtoLens.Encoding.Bytes.getVarInt)+ "coin_type"+ loop+ (Lens.Family2.set (Data.ProtoLens.Field.field @"coinType") y x)+ 24+ -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (Prelude.fmap+ Prelude.fromIntegral+ Data.ProtoLens.Encoding.Bytes.getVarInt)+ "account"+ loop (Lens.Family2.set (Data.ProtoLens.Field.field @"account") y x)+ 34+ -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (do value <- do len <- Data.ProtoLens.Encoding.Bytes.getVarInt+ Data.ProtoLens.Encoding.Bytes.getBytes+ (Prelude.fromIntegral len)+ Data.ProtoLens.Encoding.Bytes.runEither+ (case Data.Text.Encoding.decodeUtf8' value of+ (Prelude.Left err)+ -> Prelude.Left (Prelude.show err)+ (Prelude.Right r) -> Prelude.Right r))+ "xpub"+ loop (Lens.Family2.set (Data.ProtoLens.Field.field @"xpub") y x)+ wire+ -> do !y <- Data.ProtoLens.Encoding.Wire.parseTaggedValueFromWire+ wire+ loop+ (Lens.Family2.over+ Data.ProtoLens.unknownFields (\ !t -> (:) y t) x)+ in+ (Data.ProtoLens.Encoding.Bytes.<?>)+ (do loop Data.ProtoLens.defMessage) "WatchOnlyAccount"+ buildMessage+ = \ _x+ -> (Data.Monoid.<>)+ (let+ _v = Lens.Family2.view (Data.ProtoLens.Field.field @"purpose") _x+ in+ if (Prelude.==) _v Data.ProtoLens.fieldDefault then+ Data.Monoid.mempty+ else+ (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 8)+ ((Prelude..)+ Data.ProtoLens.Encoding.Bytes.putVarInt Prelude.fromIntegral _v))+ ((Data.Monoid.<>)+ (let+ _v = Lens.Family2.view (Data.ProtoLens.Field.field @"coinType") _x+ in+ if (Prelude.==) _v Data.ProtoLens.fieldDefault then+ Data.Monoid.mempty+ else+ (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 16)+ ((Prelude..)+ Data.ProtoLens.Encoding.Bytes.putVarInt Prelude.fromIntegral _v))+ ((Data.Monoid.<>)+ (let+ _v = Lens.Family2.view (Data.ProtoLens.Field.field @"account") _x+ in+ if (Prelude.==) _v Data.ProtoLens.fieldDefault then+ Data.Monoid.mempty+ else+ (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 24)+ ((Prelude..)+ Data.ProtoLens.Encoding.Bytes.putVarInt Prelude.fromIntegral _v))+ ((Data.Monoid.<>)+ (let _v = Lens.Family2.view (Data.ProtoLens.Field.field @"xpub") _x+ in+ if (Prelude.==) _v Data.ProtoLens.fieldDefault then+ Data.Monoid.mempty+ else+ (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 34)+ ((Prelude..)+ (\ bs+ -> (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt+ (Prelude.fromIntegral (Data.ByteString.length bs)))+ (Data.ProtoLens.Encoding.Bytes.putBytes bs))+ Data.Text.Encoding.encodeUtf8 _v))+ (Data.ProtoLens.Encoding.Wire.buildFieldSet+ (Lens.Family2.view Data.ProtoLens.unknownFields _x)))))+instance Control.DeepSeq.NFData WatchOnlyAccount where+ rnf+ = \ x__+ -> Control.DeepSeq.deepseq+ (_WatchOnlyAccount'_unknownFields x__)+ (Control.DeepSeq.deepseq+ (_WatchOnlyAccount'purpose x__)+ (Control.DeepSeq.deepseq+ (_WatchOnlyAccount'coinType x__)+ (Control.DeepSeq.deepseq+ (_WatchOnlyAccount'account x__)+ (Control.DeepSeq.deepseq (_WatchOnlyAccount'xpub x__) ()))))+data WalletUnlocker = WalletUnlocker {}+instance Data.ProtoLens.Service.Types.Service WalletUnlocker where+ type ServiceName WalletUnlocker = "WalletUnlocker"+ type ServicePackage WalletUnlocker = "lnrpc"+ type ServiceMethods WalletUnlocker = '["changePassword",+ "genSeed",+ "initWallet",+ "unlockWallet"]+ packedServiceDescriptor _+ = "\n\+ \\SOWalletUnlocker\DC28\n\+ \\aGenSeed\DC2\NAK.lnrpc.GenSeedRequest\SUB\SYN.lnrpc.GenSeedResponse\DC2A\n\+ \\n\+ \InitWallet\DC2\CAN.lnrpc.InitWalletRequest\SUB\EM.lnrpc.InitWalletResponse\DC2G\n\+ \\fUnlockWallet\DC2\SUB.lnrpc.UnlockWalletRequest\SUB\ESC.lnrpc.UnlockWalletResponse\DC2M\n\+ \\SOChangePassword\DC2\FS.lnrpc.ChangePasswordRequest\SUB\GS.lnrpc.ChangePasswordResponse"+instance Data.ProtoLens.Service.Types.HasMethodImpl WalletUnlocker "genSeed" where+ type MethodName WalletUnlocker "genSeed" = "GenSeed"+ type MethodInput WalletUnlocker "genSeed" = GenSeedRequest+ type MethodOutput WalletUnlocker "genSeed" = GenSeedResponse+ type MethodStreamingType WalletUnlocker "genSeed" = 'Data.ProtoLens.Service.Types.NonStreaming+instance Data.ProtoLens.Service.Types.HasMethodImpl WalletUnlocker "initWallet" where+ type MethodName WalletUnlocker "initWallet" = "InitWallet"+ type MethodInput WalletUnlocker "initWallet" = InitWalletRequest+ type MethodOutput WalletUnlocker "initWallet" = InitWalletResponse+ type MethodStreamingType WalletUnlocker "initWallet" = 'Data.ProtoLens.Service.Types.NonStreaming+instance Data.ProtoLens.Service.Types.HasMethodImpl WalletUnlocker "unlockWallet" where+ type MethodName WalletUnlocker "unlockWallet" = "UnlockWallet"+ type MethodInput WalletUnlocker "unlockWallet" = UnlockWalletRequest+ type MethodOutput WalletUnlocker "unlockWallet" = UnlockWalletResponse+ type MethodStreamingType WalletUnlocker "unlockWallet" = 'Data.ProtoLens.Service.Types.NonStreaming+instance Data.ProtoLens.Service.Types.HasMethodImpl WalletUnlocker "changePassword" where+ type MethodName WalletUnlocker "changePassword" = "ChangePassword"+ type MethodInput WalletUnlocker "changePassword" = ChangePasswordRequest+ type MethodOutput WalletUnlocker "changePassword" = ChangePasswordResponse+ type MethodStreamingType WalletUnlocker "changePassword" = 'Data.ProtoLens.Service.Types.NonStreaming+packedFileDescriptor :: Data.ByteString.ByteString+packedFileDescriptor+ = "\n\+ \\DC4walletunlocker.proto\DC2\ENQlnrpc\SUB\SIlnrpc/ln1.proto\"`\n\+ \\SOGenSeedRequest\DC2+\n\+ \\DC1aezeed_passphrase\CAN\SOH \SOH(\fR\DLEaezeedPassphrase\DC2!\n\+ \\fseed_entropy\CAN\STX \SOH(\fR\vseedEntropy\"l\n\+ \\SIGenSeedResponse\DC20\n\+ \\DC4cipher_seed_mnemonic\CAN\SOH \ETX(\tR\DC2cipherSeedMnemonic\DC2'\n\+ \\SIenciphered_seed\CAN\STX \SOH(\fR\SOencipheredSeed\"\228\ETX\n\+ \\DC1InitWalletRequest\DC2'\n\+ \\SIwallet_password\CAN\SOH \SOH(\fR\SOwalletPassword\DC20\n\+ \\DC4cipher_seed_mnemonic\CAN\STX \ETX(\tR\DC2cipherSeedMnemonic\DC2+\n\+ \\DC1aezeed_passphrase\CAN\ETX \SOH(\fR\DLEaezeedPassphrase\DC2'\n\+ \\SIrecovery_window\CAN\EOT \SOH(\ENQR\SOrecoveryWindow\DC2B\n\+ \\SIchannel_backups\CAN\ENQ \SOH(\v2\EM.lnrpc.ChanBackupSnapshotR\SOchannelBackups\DC2%\n\+ \\SOstateless_init\CAN\ACK \SOH(\bR\rstatelessInit\DC2.\n\+ \\DC3extended_master_key\CAN\a \SOH(\tR\DC1extendedMasterKey\DC2R\n\+ \&extended_master_key_birthday_timestamp\CAN\b \SOH(\EOTR\"extendedMasterKeyBirthdayTimestamp\DC2/\n\+ \\n\+ \watch_only\CAN\t \SOH(\v2\DLE.lnrpc.WatchOnlyR\twatchOnly\";\n\+ \\DC2InitWalletResponse\DC2%\n\+ \\SOadmin_macaroon\CAN\SOH \SOH(\fR\radminMacaroon\"\185\SOH\n\+ \\tWatchOnly\DC2A\n\+ \\GSmaster_key_birthday_timestamp\CAN\SOH \SOH(\EOTR\SUBmasterKeyBirthdayTimestamp\DC24\n\+ \\SYNmaster_key_fingerprint\CAN\STX \SOH(\fR\DC4masterKeyFingerprint\DC23\n\+ \\baccounts\CAN\ETX \ETX(\v2\ETB.lnrpc.WatchOnlyAccountR\baccounts\"w\n\+ \\DLEWatchOnlyAccount\DC2\CAN\n\+ \\apurpose\CAN\SOH \SOH(\rR\apurpose\DC2\ESC\n\+ \\tcoin_type\CAN\STX \SOH(\rR\bcoinType\DC2\CAN\n\+ \\aaccount\CAN\ETX \SOH(\rR\aaccount\DC2\DC2\n\+ \\EOTxpub\CAN\EOT \SOH(\tR\EOTxpub\"\210\SOH\n\+ \\DC3UnlockWalletRequest\DC2'\n\+ \\SIwallet_password\CAN\SOH \SOH(\fR\SOwalletPassword\DC2'\n\+ \\SIrecovery_window\CAN\STX \SOH(\ENQR\SOrecoveryWindow\DC2B\n\+ \\SIchannel_backups\CAN\ETX \SOH(\v2\EM.lnrpc.ChanBackupSnapshotR\SOchannelBackups\DC2%\n\+ \\SOstateless_init\CAN\EOT \SOH(\bR\rstatelessInit\"\SYN\n\+ \\DC4UnlockWalletResponse\"\191\SOH\n\+ \\NAKChangePasswordRequest\DC2)\n\+ \\DLEcurrent_password\CAN\SOH \SOH(\fR\SIcurrentPassword\DC2!\n\+ \\fnew_password\CAN\STX \SOH(\fR\vnewPassword\DC2%\n\+ \\SOstateless_init\CAN\ETX \SOH(\bR\rstatelessInit\DC21\n\+ \\NAKnew_macaroon_root_key\CAN\EOT \SOH(\bR\DC2newMacaroonRootKey\"?\n\+ \\SYNChangePasswordResponse\DC2%\n\+ \\SOadmin_macaroon\CAN\SOH \SOH(\fR\radminMacaroon2\165\STX\n\+ \\SOWalletUnlocker\DC28\n\+ \\aGenSeed\DC2\NAK.lnrpc.GenSeedRequest\SUB\SYN.lnrpc.GenSeedResponse\DC2A\n\+ \\n\+ \InitWallet\DC2\CAN.lnrpc.InitWalletRequest\SUB\EM.lnrpc.InitWalletResponse\DC2G\n\+ \\fUnlockWallet\DC2\SUB.lnrpc.UnlockWalletRequest\SUB\ESC.lnrpc.UnlockWalletResponse\DC2M\n\+ \\SOChangePassword\DC2\FS.lnrpc.ChangePasswordRequest\SUB\GS.lnrpc.ChangePasswordResponseB'Z%github.com/lightningnetwork/lnd/lnrpcJ\153e\n\+ \\a\DC2\ENQ\NUL\NUL\202\STX\SOH\n\+ \\b\n\+ \\SOH\f\DC2\ETX\NUL\NUL\DC2\n\+ \\t\n\+ \\STX\ETX\NUL\DC2\ETX\STX\NUL\EM\n\+ \\b\n\+ \\SOH\STX\DC2\ETX\EOT\NUL\SO\n\+ \\b\n\+ \\SOH\b\DC2\ETX\ACK\NUL<\n\+ \\t\n\+ \\STX\b\v\DC2\ETX\ACK\NUL<\n\+ \\187\ACK\n\+ \\STX\ACK\NUL\DC2\EOT\FS\NULD\SOH\SUB\136\SOH WalletUnlocker is a service that is used to set up a wallet password for\n\+ \ lnd at first startup, and unlock a previously set up wallet.\n\+ \2\163\ENQ\n\+ \ Comments in this file will be directly parsed into the API\n\+ \ Documentation as descriptions of the associated method, message, or field.\n\+ \ These descriptions should go right above the definition of the object, and\n\+ \ can be in either block or // comment format.\n\+ \\n\+ \ An RPC method can be matched to an lncli command by placing a line in the\n\+ \ beginning of the description in exactly the following format:\n\+ \ lncli: `methodname`\n\+ \\n\+ \ Failure to specify the exact name of the command will cause documentation\n\+ \ generation to fail.\n\+ \\n\+ \ More information on how exactly the gRPC documentation is generated from\n\+ \ this proto file can be found here:\n\+ \ https://github.com/lightninglabs/lightning-api\n\+ \\n\+ \\n\+ \\n\+ \\ETX\ACK\NUL\SOH\DC2\ETX\FS\b\SYN\n\+ \\200\ETX\n\+ \\EOT\ACK\NUL\STX\NUL\DC2\ETX'\EOT;\SUB\186\ETX\n\+ \GenSeed is the first method that should be used to instantiate a new lnd\n\+ \instance. This method allows a caller to generate a new aezeed cipher seed\n\+ \given an optional passphrase. If provided, the passphrase will be necessary\n\+ \to decrypt the cipherseed to expose the internal wallet seed.\n\+ \\n\+ \Once the cipherseed is obtained and verified by the user, the InitWallet\n\+ \method should be used to commit the newly generated seed, and create the\n\+ \wallet.\n\+ \\n\+ \\f\n\+ \\ENQ\ACK\NUL\STX\NUL\SOH\DC2\ETX'\b\SI\n\+ \\f\n\+ \\ENQ\ACK\NUL\STX\NUL\STX\DC2\ETX'\DC1\US\n\+ \\f\n\+ \\ENQ\ACK\NUL\STX\NUL\ETX\DC2\ETX'*9\n\+ \\133\ENQ\n\+ \\EOT\ACK\NUL\STX\SOH\DC2\ETX7\EOTD\SUB\247\EOT\n\+ \InitWallet is used when lnd is starting up for the first time to fully\n\+ \initialize the daemon and its internal wallet. At the very least a wallet\n\+ \password must be provided. This will be used to encrypt sensitive material\n\+ \on disk.\n\+ \\n\+ \In the case of a recovery scenario, the user can also specify their aezeed\n\+ \mnemonic and passphrase. If set, then the daemon will use this prior state\n\+ \to initialize its internal wallet.\n\+ \\n\+ \Alternatively, this can be used along with the GenSeed RPC to obtain a\n\+ \seed, then present it to the user. Once it has been verified by the user,\n\+ \the seed can be fed into this RPC in order to commit the new wallet.\n\+ \\n\+ \\f\n\+ \\ENQ\ACK\NUL\STX\SOH\SOH\DC2\ETX7\b\DC2\n\+ \\f\n\+ \\ENQ\ACK\NUL\STX\SOH\STX\DC2\ETX7\DC4%\n\+ \\f\n\+ \\ENQ\ACK\NUL\STX\SOH\ETX\DC2\ETX70B\n\+ \z\n\+ \\EOT\ACK\NUL\STX\STX\DC2\ETX=\EOTJ\SUBm lncli: `unlock`\n\+ \UnlockWallet is used at startup of lnd to provide a password to unlock\n\+ \the wallet database.\n\+ \\n\+ \\f\n\+ \\ENQ\ACK\NUL\STX\STX\SOH\DC2\ETX=\b\DC4\n\+ \\f\n\+ \\ENQ\ACK\NUL\STX\STX\STX\DC2\ETX=\SYN)\n\+ \\f\n\+ \\ENQ\ACK\NUL\STX\STX\ETX\DC2\ETX=4H\n\+ \\166\SOH\n\+ \\EOT\ACK\NUL\STX\ETX\DC2\ETXC\EOTP\SUB\152\SOH lncli: `changepassword`\n\+ \ChangePassword changes the password of the encrypted wallet. This will\n\+ \automatically unlock the wallet database if successful.\n\+ \\n\+ \\f\n\+ \\ENQ\ACK\NUL\STX\ETX\SOH\DC2\ETXC\b\SYN\n\+ \\f\n\+ \\ENQ\ACK\NUL\STX\ETX\STX\DC2\ETXC\CAN-\n\+ \\f\n\+ \\ENQ\ACK\NUL\STX\ETX\ETX\DC2\ETXC8N\n\+ \\n\+ \\n\+ \\STX\EOT\NUL\DC2\EOTF\NULT\SOH\n\+ \\n\+ \\n\+ \\ETX\EOT\NUL\SOH\DC2\ETXF\b\SYN\n\+ \\191\SOH\n\+ \\EOT\EOT\NUL\STX\NUL\DC2\ETXL\EOT \SUB\177\SOH\n\+ \aezeed_passphrase is an optional user provided passphrase that will be used\n\+ \to encrypt the generated aezeed cipher seed. When using REST, this field\n\+ \must be encoded as base64.\n\+ \\n\+ \\f\n\+ \\ENQ\EOT\NUL\STX\NUL\ENQ\DC2\ETXL\EOT\t\n\+ \\f\n\+ \\ENQ\EOT\NUL\STX\NUL\SOH\DC2\ETXL\n\+ \\ESC\n\+ \\f\n\+ \\ENQ\EOT\NUL\STX\NUL\ETX\DC2\ETXL\RS\US\n\+ \\211\SOH\n\+ \\EOT\EOT\NUL\STX\SOH\DC2\ETXS\EOT\ESC\SUB\197\SOH\n\+ \seed_entropy is an optional 16-bytes generated via CSPRNG. If not\n\+ \specified, then a fresh set of randomness will be used to create the seed.\n\+ \When using REST, this field must be encoded as base64.\n\+ \\n\+ \\f\n\+ \\ENQ\EOT\NUL\STX\SOH\ENQ\DC2\ETXS\EOT\t\n\+ \\f\n\+ \\ENQ\EOT\NUL\STX\SOH\SOH\DC2\ETXS\n\+ \\SYN\n\+ \\f\n\+ \\ENQ\EOT\NUL\STX\SOH\ETX\DC2\ETXS\EM\SUB\n\+ \\n\+ \\n\+ \\STX\EOT\SOH\DC2\EOTU\NULd\SOH\n\+ \\n\+ \\n\+ \\ETX\EOT\SOH\SOH\DC2\ETXU\b\ETB\n\+ \\194\STX\n\+ \\EOT\EOT\SOH\STX\NUL\DC2\ETX]\EOT-\SUB\180\STX\n\+ \cipher_seed_mnemonic is a 24-word mnemonic that encodes a prior aezeed\n\+ \cipher seed obtained by the user. This field is optional, as if not\n\+ \provided, then the daemon will generate a new cipher seed for the user.\n\+ \Otherwise, then the daemon will attempt to recover the wallet state linked\n\+ \to this cipher seed.\n\+ \\n\+ \\f\n\+ \\ENQ\EOT\SOH\STX\NUL\EOT\DC2\ETX]\EOT\f\n\+ \\f\n\+ \\ENQ\EOT\SOH\STX\NUL\ENQ\DC2\ETX]\r\DC3\n\+ \\f\n\+ \\ENQ\EOT\SOH\STX\NUL\SOH\DC2\ETX]\DC4(\n\+ \\f\n\+ \\ENQ\EOT\SOH\STX\NUL\ETX\DC2\ETX]+,\n\+ \\146\SOH\n\+ \\EOT\EOT\SOH\STX\SOH\DC2\ETXc\EOT\RS\SUB\132\SOH\n\+ \enciphered_seed are the raw aezeed cipher seed bytes. This is the raw\n\+ \cipher text before run through our mnemonic encoding scheme.\n\+ \\n\+ \\f\n\+ \\ENQ\EOT\SOH\STX\SOH\ENQ\DC2\ETXc\EOT\t\n\+ \\f\n\+ \\ENQ\EOT\SOH\STX\SOH\SOH\DC2\ETXc\n\+ \\EM\n\+ \\f\n\+ \\ENQ\EOT\SOH\STX\SOH\ETX\DC2\ETXc\FS\GS\n\+ \\v\n\+ \\STX\EOT\STX\DC2\ENQf\NUL\187\SOH\SOH\n\+ \\n\+ \\n\+ \\ETX\EOT\STX\SOH\DC2\ETXf\b\EM\n\+ \\252\SOH\n\+ \\EOT\EOT\STX\STX\NUL\DC2\ETXm\EOT\RS\SUB\238\SOH\n\+ \wallet_password is the passphrase that should be used to encrypt the\n\+ \wallet. This MUST be at least 8 chars in length. After creation, this\n\+ \password is required to unlock the daemon. When using REST, this field\n\+ \must be encoded as base64.\n\+ \\n\+ \\f\n\+ \\ENQ\EOT\STX\STX\NUL\ENQ\DC2\ETXm\EOT\t\n\+ \\f\n\+ \\ENQ\EOT\STX\STX\NUL\SOH\DC2\ETXm\n\+ \\EM\n\+ \\f\n\+ \\ENQ\EOT\STX\STX\NUL\ETX\DC2\ETXm\FS\GS\n\+ \\196\SOH\n\+ \\EOT\EOT\STX\STX\SOH\DC2\ETXt\EOT-\SUB\182\SOH\n\+ \cipher_seed_mnemonic is a 24-word mnemonic that encodes a prior aezeed\n\+ \cipher seed obtained by the user. This may have been generated by the\n\+ \GenSeed method, or be an existing seed.\n\+ \\n\+ \\f\n\+ \\ENQ\EOT\STX\STX\SOH\EOT\DC2\ETXt\EOT\f\n\+ \\f\n\+ \\ENQ\EOT\STX\STX\SOH\ENQ\DC2\ETXt\r\DC3\n\+ \\f\n\+ \\ENQ\EOT\STX\STX\SOH\SOH\DC2\ETXt\DC4(\n\+ \\f\n\+ \\ENQ\EOT\STX\STX\SOH\ETX\DC2\ETXt+,\n\+ \\191\SOH\n\+ \\EOT\EOT\STX\STX\STX\DC2\ETX{\EOT \SUB\177\SOH\n\+ \aezeed_passphrase is an optional user provided passphrase that will be used\n\+ \to encrypt the generated aezeed cipher seed. When using REST, this field\n\+ \must be encoded as base64.\n\+ \\n\+ \\f\n\+ \\ENQ\EOT\STX\STX\STX\ENQ\DC2\ETX{\EOT\t\n\+ \\f\n\+ \\ENQ\EOT\STX\STX\STX\SOH\DC2\ETX{\n\+ \\ESC\n\+ \\f\n\+ \\ENQ\EOT\STX\STX\STX\ETX\DC2\ETX{\RS\US\n\+ \\212\STX\n\+ \\EOT\EOT\STX\STX\ETX\DC2\EOT\132\SOH\EOT\RS\SUB\197\STX\n\+ \recovery_window is an optional argument specifying the address lookahead\n\+ \when restoring a wallet seed. The recovery window applies to each\n\+ \individual branch of the BIP44 derivation paths. Supplying a recovery\n\+ \window of zero indicates that no addresses should be recovered, such after\n\+ \the first initialization of the wallet.\n\+ \\n\+ \\r\n\+ \\ENQ\EOT\STX\STX\ETX\ENQ\DC2\EOT\132\SOH\EOT\t\n\+ \\r\n\+ \\ENQ\EOT\STX\STX\ETX\SOH\DC2\EOT\132\SOH\n\+ \\EM\n\+ \\r\n\+ \\ENQ\EOT\STX\STX\ETX\ETX\DC2\EOT\132\SOH\FS\GS\n\+ \\203\ETX\n\+ \\EOT\EOT\STX\STX\EOT\DC2\EOT\142\SOH\EOT+\SUB\188\ETX\n\+ \channel_backups is an optional argument that allows clients to recover the\n\+ \settled funds within a set of channels. This should be populated if the\n\+ \user was unable to close out all channels and sweep funds before partial or\n\+ \total data loss occurred. If specified, then after on-chain recovery of\n\+ \funds, lnd begin to carry out the data loss recovery protocol in order to\n\+ \recover the funds in each channel from a remote force closed transaction.\n\+ \\n\+ \\r\n\+ \\ENQ\EOT\STX\STX\EOT\ACK\DC2\EOT\142\SOH\EOT\SYN\n\+ \\r\n\+ \\ENQ\EOT\STX\STX\EOT\SOH\DC2\EOT\142\SOH\ETB&\n\+ \\r\n\+ \\ENQ\EOT\STX\STX\EOT\ETX\DC2\EOT\142\SOH)*\n\+ \\171\STX\n\+ \\EOT\EOT\STX\STX\ENQ\DC2\EOT\150\SOH\EOT\FS\SUB\156\STX\n\+ \stateless_init is an optional argument instructing the daemon NOT to create\n\+ \any *.macaroon files in its filesystem. If this parameter is set, then the\n\+ \admin macaroon returned in the response MUST be stored by the caller of the\n\+ \RPC as otherwise all access to the daemon will be lost!\n\+ \\n\+ \\r\n\+ \\ENQ\EOT\STX\STX\ENQ\ENQ\DC2\EOT\150\SOH\EOT\b\n\+ \\r\n\+ \\ENQ\EOT\STX\STX\ENQ\SOH\DC2\EOT\150\SOH\t\ETB\n\+ \\r\n\+ \\ENQ\EOT\STX\STX\ENQ\ETX\DC2\EOT\150\SOH\SUB\ESC\n\+ \\191\ACK\n\+ \\EOT\EOT\STX\STX\ACK\DC2\EOT\166\SOH\EOT#\SUB\176\ACK\n\+ \extended_master_key is an alternative to specifying cipher_seed_mnemonic and\n\+ \aezeed_passphrase. Instead of deriving the master root key from the entropy\n\+ \of an aezeed cipher seed, the given extended master root key is used\n\+ \directly as the wallet's master key. This allows users to import/use a\n\+ \master key from another wallet. When doing so, lnd still uses its default\n\+ \SegWit only (BIP49/84) derivation paths and funds from custom/non-default\n\+ \derivation paths will not automatically appear in the on-chain wallet. Using\n\+ \an 'xprv' instead of an aezeed also has the disadvantage that the wallet's\n\+ \birthday is not known as that is an information that's only encoded in the\n\+ \aezeed, not the xprv. Therefore a birthday needs to be specified in\n\+ \extended_master_key_birthday_timestamp or a \"safe\" default value will be\n\+ \used.\n\+ \\n\+ \\r\n\+ \\ENQ\EOT\STX\STX\ACK\ENQ\DC2\EOT\166\SOH\EOT\n\+ \\n\+ \\r\n\+ \\ENQ\EOT\STX\STX\ACK\SOH\DC2\EOT\166\SOH\v\RS\n\+ \\r\n\+ \\ENQ\EOT\STX\STX\ACK\ETX\DC2\EOT\166\SOH!\"\n\+ \\216\ETX\n\+ \\EOT\EOT\STX\STX\a\DC2\EOT\177\SOH\EOT6\SUB\201\ETX\n\+ \extended_master_key_birthday_timestamp is the optional unix timestamp in\n\+ \seconds to use as the wallet's birthday when using an extended master key\n\+ \to restore the wallet. lnd will only start scanning for funds in blocks that\n\+ \are after the birthday which can speed up the process significantly. If the\n\+ \birthday is not known, this should be left at its default value of 0 in\n\+ \which case lnd will start scanning from the first SegWit block (481824 on\n\+ \mainnet).\n\+ \\n\+ \\r\n\+ \\ENQ\EOT\STX\STX\a\ENQ\DC2\EOT\177\SOH\EOT\n\+ \\n\+ \\r\n\+ \\ENQ\EOT\STX\STX\a\SOH\DC2\EOT\177\SOH\v1\n\+ \\r\n\+ \\ENQ\EOT\STX\STX\a\ETX\DC2\EOT\177\SOH45\n\+ \\243\STX\n\+ \\EOT\EOT\STX\STX\b\DC2\EOT\186\SOH\EOT\GS\SUB\228\STX\n\+ \watch_only is the third option of initializing a wallet: by importing\n\+ \account xpubs only and therefore creating a watch-only wallet that does not\n\+ \contain any private keys. That means the wallet won't be able to sign for\n\+ \any of the keys and _needs_ to be run with a remote signer that has the\n\+ \corresponding private keys and can serve signing RPC requests.\n\+ \\n\+ \\r\n\+ \\ENQ\EOT\STX\STX\b\ACK\DC2\EOT\186\SOH\EOT\r\n\+ \\r\n\+ \\ENQ\EOT\STX\STX\b\SOH\DC2\EOT\186\SOH\SO\CAN\n\+ \\r\n\+ \\ENQ\EOT\STX\STX\b\ETX\DC2\EOT\186\SOH\ESC\FS\n\+ \\f\n\+ \\STX\EOT\ETX\DC2\ACK\188\SOH\NUL\197\SOH\SOH\n\+ \\v\n\+ \\ETX\EOT\ETX\SOH\DC2\EOT\188\SOH\b\SUB\n\+ \\229\STX\n\+ \\EOT\EOT\ETX\STX\NUL\DC2\EOT\196\SOH\EOT\GS\SUB\214\STX\n\+ \The binary serialized admin macaroon that can be used to access the daemon\n\+ \after creating the wallet. If the stateless_init parameter was set to true,\n\+ \this is the ONLY copy of the macaroon and MUST be stored safely by the\n\+ \caller. Otherwise a copy of this macaroon is also persisted on disk by the\n\+ \daemon, together with other macaroon files.\n\+ \\n\+ \\r\n\+ \\ENQ\EOT\ETX\STX\NUL\ENQ\DC2\EOT\196\SOH\EOT\t\n\+ \\r\n\+ \\ENQ\EOT\ETX\STX\NUL\SOH\DC2\EOT\196\SOH\n\+ \\CAN\n\+ \\r\n\+ \\ENQ\EOT\ETX\STX\NUL\ETX\DC2\EOT\196\SOH\ESC\FS\n\+ \\f\n\+ \\STX\EOT\EOT\DC2\ACK\199\SOH\NUL\225\SOH\SOH\n\+ \\v\n\+ \\ETX\EOT\EOT\SOH\DC2\EOT\199\SOH\b\DC1\n\+ \\240\STX\n\+ \\EOT\EOT\EOT\STX\NUL\DC2\EOT\207\SOH\EOT-\SUB\225\STX\n\+ \The unix timestamp in seconds of when the master key was created. lnd will\n\+ \only start scanning for funds in blocks that are after the birthday which\n\+ \can speed up the process significantly. If the birthday is not known, this\n\+ \should be left at its default value of 0 in which case lnd will start\n\+ \scanning from the first SegWit block (481824 on mainnet).\n\+ \\n\+ \\r\n\+ \\ENQ\EOT\EOT\STX\NUL\ENQ\DC2\EOT\207\SOH\EOT\n\+ \\n\+ \\r\n\+ \\ENQ\EOT\EOT\STX\NUL\SOH\DC2\EOT\207\SOH\v(\n\+ \\r\n\+ \\ENQ\EOT\EOT\STX\NUL\ETX\DC2\EOT\207\SOH+,\n\+ \\146\STX\n\+ \\EOT\EOT\EOT\STX\SOH\DC2\EOT\215\SOH\EOT%\SUB\131\STX\n\+ \The fingerprint of the root key (also known as the key with derivation path\n\+ \m/) from which the account public keys were derived from. This may be\n\+ \required by some hardware wallets for proper identification and signing. The\n\+ \bytes must be in big-endian order.\n\+ \\n\+ \\r\n\+ \\ENQ\EOT\EOT\STX\SOH\ENQ\DC2\EOT\215\SOH\EOT\t\n\+ \\r\n\+ \\ENQ\EOT\EOT\STX\SOH\SOH\DC2\EOT\215\SOH\n\+ \ \n\+ \\r\n\+ \\ENQ\EOT\EOT\STX\SOH\ETX\DC2\EOT\215\SOH#$\n\+ \\246\STX\n\+ \\EOT\EOT\EOT\STX\STX\DC2\EOT\224\SOH\EOT+\SUB\231\STX\n\+ \The list of accounts to import. There _must_ be an account for all of lnd's\n\+ \main key scopes: BIP49/BIP84 (m/49'/0'/0', m/84'/0'/0', note that the\n\+ \coin type is always 0, even for testnet/regtest) and lnd's internal key\n\+ \scope (m/1017'/<coin_type>'/<account>'), where account is the key family as\n\+ \defined in `keychain/derivation.go` (currently indices 0 to 9).\n\+ \\n\+ \\r\n\+ \\ENQ\EOT\EOT\STX\STX\EOT\DC2\EOT\224\SOH\EOT\f\n\+ \\r\n\+ \\ENQ\EOT\EOT\STX\STX\ACK\DC2\EOT\224\SOH\r\GS\n\+ \\r\n\+ \\ENQ\EOT\EOT\STX\STX\SOH\DC2\EOT\224\SOH\RS&\n\+ \\r\n\+ \\ENQ\EOT\EOT\STX\STX\ETX\DC2\EOT\224\SOH)*\n\+ \\f\n\+ \\STX\EOT\ENQ\DC2\ACK\227\SOH\NUL\254\SOH\SOH\n\+ \\v\n\+ \\ETX\EOT\ENQ\SOH\DC2\EOT\227\SOH\b\CAN\n\+ \b\n\+ \\EOT\EOT\ENQ\STX\NUL\DC2\EOT\232\SOH\EOT\ETB\SUBT\n\+ \Purpose is the first number in the derivation path, must be either 49, 84\n\+ \or 1017.\n\+ \\n\+ \\r\n\+ \\ENQ\EOT\ENQ\STX\NUL\ENQ\DC2\EOT\232\SOH\EOT\n\+ \\n\+ \\r\n\+ \\ENQ\EOT\ENQ\STX\NUL\SOH\DC2\EOT\232\SOH\v\DC2\n\+ \\r\n\+ \\ENQ\EOT\ENQ\STX\NUL\ETX\DC2\EOT\232\SOH\NAK\SYN\n\+ \\183\SOH\n\+ \\EOT\EOT\ENQ\STX\SOH\DC2\EOT\239\SOH\EOT\EM\SUB\168\SOH\n\+ \Coin type is the second number in the derivation path, this is _always_ 0\n\+ \for purposes 49 and 84. It only needs to be set to 1 for purpose 1017 on\n\+ \testnet or regtest.\n\+ \\n\+ \\r\n\+ \\ENQ\EOT\ENQ\STX\SOH\ENQ\DC2\EOT\239\SOH\EOT\n\+ \\n\+ \\r\n\+ \\ENQ\EOT\ENQ\STX\SOH\SOH\DC2\EOT\239\SOH\v\DC4\n\+ \\r\n\+ \\ENQ\EOT\ENQ\STX\SOH\ETX\DC2\EOT\239\SOH\ETB\CAN\n\+ \\215\STX\n\+ \\EOT\EOT\ENQ\STX\STX\DC2\EOT\248\SOH\EOT\ETB\SUB\200\STX\n\+ \Account is the third number in the derivation path. For purposes 49 and 84\n\+ \at least the default account (index 0) needs to be created but optional\n\+ \additional accounts are allowed. For purpose 1017 there needs to be exactly\n\+ \one account for each of the key families defined in `keychain/derivation.go`\n\+ \(currently indices 0 to 9)\n\+ \\n\+ \\r\n\+ \\ENQ\EOT\ENQ\STX\STX\ENQ\DC2\EOT\248\SOH\EOT\n\+ \\n\+ \\r\n\+ \\ENQ\EOT\ENQ\STX\STX\SOH\DC2\EOT\248\SOH\v\DC2\n\+ \\r\n\+ \\ENQ\EOT\ENQ\STX\STX\ETX\DC2\EOT\248\SOH\NAK\SYN\n\+ \I\n\+ \\EOT\EOT\ENQ\STX\ETX\DC2\EOT\253\SOH\EOT\DC4\SUB;\n\+ \The extended public key at depth 3 for the given account.\n\+ \\n\+ \\r\n\+ \\ENQ\EOT\ENQ\STX\ETX\ENQ\DC2\EOT\253\SOH\EOT\n\+ \\n\+ \\r\n\+ \\ENQ\EOT\ENQ\STX\ETX\SOH\DC2\EOT\253\SOH\v\SI\n\+ \\r\n\+ \\ENQ\EOT\ENQ\STX\ETX\ETX\DC2\EOT\253\SOH\DC2\DC3\n\+ \\f\n\+ \\STX\EOT\ACK\DC2\ACK\128\STX\NUL\160\STX\SOH\n\+ \\v\n\+ \\ETX\EOT\ACK\SOH\DC2\EOT\128\STX\b\ESC\n\+ \\239\SOH\n\+ \\EOT\EOT\ACK\STX\NUL\DC2\EOT\134\STX\EOT\RS\SUB\224\SOH\n\+ \wallet_password should be the current valid passphrase for the daemon. This\n\+ \will be required to decrypt on-disk material that the daemon requires to\n\+ \function properly. When using REST, this field must be encoded as base64.\n\+ \\n\+ \\r\n\+ \\ENQ\EOT\ACK\STX\NUL\ENQ\DC2\EOT\134\STX\EOT\t\n\+ \\r\n\+ \\ENQ\EOT\ACK\STX\NUL\SOH\DC2\EOT\134\STX\n\+ \\EM\n\+ \\r\n\+ \\ENQ\EOT\ACK\STX\NUL\ETX\DC2\EOT\134\STX\FS\GS\n\+ \\212\STX\n\+ \\EOT\EOT\ACK\STX\SOH\DC2\EOT\143\STX\EOT\RS\SUB\197\STX\n\+ \recovery_window is an optional argument specifying the address lookahead\n\+ \when restoring a wallet seed. The recovery window applies to each\n\+ \individual branch of the BIP44 derivation paths. Supplying a recovery\n\+ \window of zero indicates that no addresses should be recovered, such after\n\+ \the first initialization of the wallet.\n\+ \\n\+ \\r\n\+ \\ENQ\EOT\ACK\STX\SOH\ENQ\DC2\EOT\143\STX\EOT\t\n\+ \\r\n\+ \\ENQ\EOT\ACK\STX\SOH\SOH\DC2\EOT\143\STX\n\+ \\EM\n\+ \\r\n\+ \\ENQ\EOT\ACK\STX\SOH\ETX\DC2\EOT\143\STX\FS\GS\n\+ \\203\ETX\n\+ \\EOT\EOT\ACK\STX\STX\DC2\EOT\153\STX\EOT+\SUB\188\ETX\n\+ \channel_backups is an optional argument that allows clients to recover the\n\+ \settled funds within a set of channels. This should be populated if the\n\+ \user was unable to close out all channels and sweep funds before partial or\n\+ \total data loss occurred. If specified, then after on-chain recovery of\n\+ \funds, lnd begin to carry out the data loss recovery protocol in order to\n\+ \recover the funds in each channel from a remote force closed transaction.\n\+ \\n\+ \\r\n\+ \\ENQ\EOT\ACK\STX\STX\ACK\DC2\EOT\153\STX\EOT\SYN\n\+ \\r\n\+ \\ENQ\EOT\ACK\STX\STX\SOH\DC2\EOT\153\STX\ETB&\n\+ \\r\n\+ \\ENQ\EOT\ACK\STX\STX\ETX\DC2\EOT\153\STX)*\n\+ \\132\SOH\n\+ \\EOT\EOT\ACK\STX\ETX\DC2\EOT\159\STX\EOT\FS\SUBv\n\+ \stateless_init is an optional argument instructing the daemon NOT to create\n\+ \any *.macaroon files in its file system.\n\+ \\n\+ \\r\n\+ \\ENQ\EOT\ACK\STX\ETX\ENQ\DC2\EOT\159\STX\EOT\b\n\+ \\r\n\+ \\ENQ\EOT\ACK\STX\ETX\SOH\DC2\EOT\159\STX\t\ETB\n\+ \\r\n\+ \\ENQ\EOT\ACK\STX\ETX\ETX\DC2\EOT\159\STX\SUB\ESC\n\+ \\f\n\+ \\STX\EOT\a\DC2\ACK\161\STX\NUL\162\STX\SOH\n\+ \\v\n\+ \\ETX\EOT\a\SOH\DC2\EOT\161\STX\b\FS\n\+ \\f\n\+ \\STX\EOT\b\DC2\ACK\164\STX\NUL\191\STX\SOH\n\+ \\v\n\+ \\ETX\EOT\b\SOH\DC2\EOT\164\STX\b\GS\n\+ \\154\SOH\n\+ \\EOT\EOT\b\STX\NUL\DC2\EOT\169\STX\EOT\US\SUB\139\SOH\n\+ \current_password should be the current valid passphrase used to unlock the\n\+ \daemon. When using REST, this field must be encoded as base64.\n\+ \\n\+ \\r\n\+ \\ENQ\EOT\b\STX\NUL\ENQ\DC2\EOT\169\STX\EOT\t\n\+ \\r\n\+ \\ENQ\EOT\b\STX\NUL\SOH\DC2\EOT\169\STX\n\+ \\SUB\n\+ \\r\n\+ \\ENQ\EOT\b\STX\NUL\ETX\DC2\EOT\169\STX\GS\RS\n\+ \\155\SOH\n\+ \\EOT\EOT\b\STX\SOH\DC2\EOT\175\STX\EOT\ESC\SUB\140\SOH\n\+ \new_password should be the new passphrase that will be needed to unlock the\n\+ \daemon. When using REST, this field must be encoded as base64.\n\+ \\n\+ \\r\n\+ \\ENQ\EOT\b\STX\SOH\ENQ\DC2\EOT\175\STX\EOT\t\n\+ \\r\n\+ \\ENQ\EOT\b\STX\SOH\SOH\DC2\EOT\175\STX\n\+ \\SYN\n\+ \\r\n\+ \\ENQ\EOT\b\STX\SOH\ETX\DC2\EOT\175\STX\EM\SUB\n\+ \\171\STX\n\+ \\EOT\EOT\b\STX\STX\DC2\EOT\183\STX\EOT\FS\SUB\156\STX\n\+ \stateless_init is an optional argument instructing the daemon NOT to create\n\+ \any *.macaroon files in its filesystem. If this parameter is set, then the\n\+ \admin macaroon returned in the response MUST be stored by the caller of the\n\+ \RPC as otherwise all access to the daemon will be lost!\n\+ \\n\+ \\r\n\+ \\ENQ\EOT\b\STX\STX\ENQ\DC2\EOT\183\STX\EOT\b\n\+ \\r\n\+ \\ENQ\EOT\b\STX\STX\SOH\DC2\EOT\183\STX\t\ETB\n\+ \\r\n\+ \\ENQ\EOT\b\STX\STX\ETX\DC2\EOT\183\STX\SUB\ESC\n\+ \\192\SOH\n\+ \\EOT\EOT\b\STX\ETX\DC2\EOT\190\STX\EOT#\SUB\177\SOH\n\+ \new_macaroon_root_key is an optional argument instructing the daemon to\n\+ \rotate the macaroon root key when set to true. This will invalidate all\n\+ \previously generated macaroons.\n\+ \\n\+ \\r\n\+ \\ENQ\EOT\b\STX\ETX\ENQ\DC2\EOT\190\STX\EOT\b\n\+ \\r\n\+ \\ENQ\EOT\b\STX\ETX\SOH\DC2\EOT\190\STX\t\RS\n\+ \\r\n\+ \\ENQ\EOT\b\STX\ETX\ETX\DC2\EOT\190\STX!\"\n\+ \\f\n\+ \\STX\EOT\t\DC2\ACK\192\STX\NUL\202\STX\SOH\n\+ \\v\n\+ \\ETX\EOT\t\SOH\DC2\EOT\192\STX\b\RS\n\+ \\183\ETX\n\+ \\EOT\EOT\t\STX\NUL\DC2\EOT\201\STX\EOT\GS\SUB\168\ETX\n\+ \The binary serialized admin macaroon that can be used to access the daemon\n\+ \after rotating the macaroon root key. If both the stateless_init and\n\+ \new_macaroon_root_key parameter were set to true, this is the ONLY copy of\n\+ \the macaroon that was created from the new root key and MUST be stored\n\+ \safely by the caller. Otherwise a copy of this macaroon is also persisted on\n\+ \disk by the daemon, together with other macaroon files.\n\+ \\n\+ \\r\n\+ \\ENQ\EOT\t\STX\NUL\ENQ\DC2\EOT\201\STX\EOT\t\n\+ \\r\n\+ \\ENQ\EOT\t\STX\NUL\SOH\DC2\EOT\201\STX\n\+ \\CAN\n\+ \\r\n\+ \\ENQ\EOT\t\STX\NUL\ETX\DC2\EOT\201\STX\ESC\FSb\ACKproto3"
@@ -0,0 +1,190 @@+{- This file was auto-generated from walletunlocker.proto by the proto-lens-protoc program. -}+{-# LANGUAGE ScopedTypeVariables, DataKinds, TypeFamilies, UndecidableInstances, GeneralizedNewtypeDeriving, MultiParamTypeClasses, FlexibleContexts, FlexibleInstances, PatternSynonyms, MagicHash, NoImplicitPrelude, BangPatterns, TypeApplications, OverloadedStrings, DerivingStrategies, DeriveGeneric#-}+{-# OPTIONS_GHC -Wno-unused-imports#-}+{-# OPTIONS_GHC -Wno-duplicate-exports#-}+{-# OPTIONS_GHC -Wno-dodgy-exports#-}+module Proto.Walletunlocker_Fields where+import qualified Data.ProtoLens.Runtime.Prelude as Prelude+import qualified Data.ProtoLens.Runtime.Data.Int as Data.Int+import qualified Data.ProtoLens.Runtime.Data.Monoid as Data.Monoid+import qualified Data.ProtoLens.Runtime.Data.Word as Data.Word+import qualified Data.ProtoLens.Runtime.Data.ProtoLens as Data.ProtoLens+import qualified Data.ProtoLens.Runtime.Data.ProtoLens.Encoding.Bytes as Data.ProtoLens.Encoding.Bytes+import qualified Data.ProtoLens.Runtime.Data.ProtoLens.Encoding.Growing as Data.ProtoLens.Encoding.Growing+import qualified Data.ProtoLens.Runtime.Data.ProtoLens.Encoding.Parser.Unsafe as Data.ProtoLens.Encoding.Parser.Unsafe+import qualified Data.ProtoLens.Runtime.Data.ProtoLens.Encoding.Wire as Data.ProtoLens.Encoding.Wire+import qualified Data.ProtoLens.Runtime.Data.ProtoLens.Field as Data.ProtoLens.Field+import qualified Data.ProtoLens.Runtime.Data.ProtoLens.Message.Enum as Data.ProtoLens.Message.Enum+import qualified Data.ProtoLens.Runtime.Data.ProtoLens.Service.Types as Data.ProtoLens.Service.Types+import qualified Data.ProtoLens.Runtime.Lens.Family2 as Lens.Family2+import qualified Data.ProtoLens.Runtime.Lens.Family2.Unchecked as Lens.Family2.Unchecked+import qualified Data.ProtoLens.Runtime.Data.Text as Data.Text+import qualified Data.ProtoLens.Runtime.Data.Map as Data.Map+import qualified Data.ProtoLens.Runtime.Data.ByteString as Data.ByteString+import qualified Data.ProtoLens.Runtime.Data.ByteString.Char8 as Data.ByteString.Char8+import qualified Data.ProtoLens.Runtime.Data.Text.Encoding as Data.Text.Encoding+import qualified Data.ProtoLens.Runtime.Data.Vector as Data.Vector+import qualified Data.ProtoLens.Runtime.Data.Vector.Generic as Data.Vector.Generic+import qualified Data.ProtoLens.Runtime.Data.Vector.Unboxed as Data.Vector.Unboxed+import qualified Data.ProtoLens.Runtime.Text.Read as Text.Read+import qualified Proto.Lnrpc.Ln1+account ::+ forall f s a.+ (Prelude.Functor f, Data.ProtoLens.Field.HasField s "account" a) =>+ Lens.Family2.LensLike' f s a+account = Data.ProtoLens.Field.field @"account"+accounts ::+ forall f s a.+ (Prelude.Functor f,+ Data.ProtoLens.Field.HasField s "accounts" a) =>+ Lens.Family2.LensLike' f s a+accounts = Data.ProtoLens.Field.field @"accounts"+adminMacaroon ::+ forall f s a.+ (Prelude.Functor f,+ Data.ProtoLens.Field.HasField s "adminMacaroon" a) =>+ Lens.Family2.LensLike' f s a+adminMacaroon = Data.ProtoLens.Field.field @"adminMacaroon"+aezeedPassphrase ::+ forall f s a.+ (Prelude.Functor f,+ Data.ProtoLens.Field.HasField s "aezeedPassphrase" a) =>+ Lens.Family2.LensLike' f s a+aezeedPassphrase = Data.ProtoLens.Field.field @"aezeedPassphrase"+channelBackups ::+ forall f s a.+ (Prelude.Functor f,+ Data.ProtoLens.Field.HasField s "channelBackups" a) =>+ Lens.Family2.LensLike' f s a+channelBackups = Data.ProtoLens.Field.field @"channelBackups"+cipherSeedMnemonic ::+ forall f s a.+ (Prelude.Functor f,+ Data.ProtoLens.Field.HasField s "cipherSeedMnemonic" a) =>+ Lens.Family2.LensLike' f s a+cipherSeedMnemonic+ = Data.ProtoLens.Field.field @"cipherSeedMnemonic"+coinType ::+ forall f s a.+ (Prelude.Functor f,+ Data.ProtoLens.Field.HasField s "coinType" a) =>+ Lens.Family2.LensLike' f s a+coinType = Data.ProtoLens.Field.field @"coinType"+currentPassword ::+ forall f s a.+ (Prelude.Functor f,+ Data.ProtoLens.Field.HasField s "currentPassword" a) =>+ Lens.Family2.LensLike' f s a+currentPassword = Data.ProtoLens.Field.field @"currentPassword"+encipheredSeed ::+ forall f s a.+ (Prelude.Functor f,+ Data.ProtoLens.Field.HasField s "encipheredSeed" a) =>+ Lens.Family2.LensLike' f s a+encipheredSeed = Data.ProtoLens.Field.field @"encipheredSeed"+extendedMasterKey ::+ forall f s a.+ (Prelude.Functor f,+ Data.ProtoLens.Field.HasField s "extendedMasterKey" a) =>+ Lens.Family2.LensLike' f s a+extendedMasterKey = Data.ProtoLens.Field.field @"extendedMasterKey"+extendedMasterKeyBirthdayTimestamp ::+ forall f s a.+ (Prelude.Functor f,+ Data.ProtoLens.Field.HasField s "extendedMasterKeyBirthdayTimestamp" a) =>+ Lens.Family2.LensLike' f s a+extendedMasterKeyBirthdayTimestamp+ = Data.ProtoLens.Field.field @"extendedMasterKeyBirthdayTimestamp"+masterKeyBirthdayTimestamp ::+ forall f s a.+ (Prelude.Functor f,+ Data.ProtoLens.Field.HasField s "masterKeyBirthdayTimestamp" a) =>+ Lens.Family2.LensLike' f s a+masterKeyBirthdayTimestamp+ = Data.ProtoLens.Field.field @"masterKeyBirthdayTimestamp"+masterKeyFingerprint ::+ forall f s a.+ (Prelude.Functor f,+ Data.ProtoLens.Field.HasField s "masterKeyFingerprint" a) =>+ Lens.Family2.LensLike' f s a+masterKeyFingerprint+ = Data.ProtoLens.Field.field @"masterKeyFingerprint"+maybe'channelBackups ::+ forall f s a.+ (Prelude.Functor f,+ Data.ProtoLens.Field.HasField s "maybe'channelBackups" a) =>+ Lens.Family2.LensLike' f s a+maybe'channelBackups+ = Data.ProtoLens.Field.field @"maybe'channelBackups"+maybe'watchOnly ::+ forall f s a.+ (Prelude.Functor f,+ Data.ProtoLens.Field.HasField s "maybe'watchOnly" a) =>+ Lens.Family2.LensLike' f s a+maybe'watchOnly = Data.ProtoLens.Field.field @"maybe'watchOnly"+newMacaroonRootKey ::+ forall f s a.+ (Prelude.Functor f,+ Data.ProtoLens.Field.HasField s "newMacaroonRootKey" a) =>+ Lens.Family2.LensLike' f s a+newMacaroonRootKey+ = Data.ProtoLens.Field.field @"newMacaroonRootKey"+newPassword ::+ forall f s a.+ (Prelude.Functor f,+ Data.ProtoLens.Field.HasField s "newPassword" a) =>+ Lens.Family2.LensLike' f s a+newPassword = Data.ProtoLens.Field.field @"newPassword"+purpose ::+ forall f s a.+ (Prelude.Functor f, Data.ProtoLens.Field.HasField s "purpose" a) =>+ Lens.Family2.LensLike' f s a+purpose = Data.ProtoLens.Field.field @"purpose"+recoveryWindow ::+ forall f s a.+ (Prelude.Functor f,+ Data.ProtoLens.Field.HasField s "recoveryWindow" a) =>+ Lens.Family2.LensLike' f s a+recoveryWindow = Data.ProtoLens.Field.field @"recoveryWindow"+seedEntropy ::+ forall f s a.+ (Prelude.Functor f,+ Data.ProtoLens.Field.HasField s "seedEntropy" a) =>+ Lens.Family2.LensLike' f s a+seedEntropy = Data.ProtoLens.Field.field @"seedEntropy"+statelessInit ::+ forall f s a.+ (Prelude.Functor f,+ Data.ProtoLens.Field.HasField s "statelessInit" a) =>+ Lens.Family2.LensLike' f s a+statelessInit = Data.ProtoLens.Field.field @"statelessInit"+vec'accounts ::+ forall f s a.+ (Prelude.Functor f,+ Data.ProtoLens.Field.HasField s "vec'accounts" a) =>+ Lens.Family2.LensLike' f s a+vec'accounts = Data.ProtoLens.Field.field @"vec'accounts"+vec'cipherSeedMnemonic ::+ forall f s a.+ (Prelude.Functor f,+ Data.ProtoLens.Field.HasField s "vec'cipherSeedMnemonic" a) =>+ Lens.Family2.LensLike' f s a+vec'cipherSeedMnemonic+ = Data.ProtoLens.Field.field @"vec'cipherSeedMnemonic"+walletPassword ::+ forall f s a.+ (Prelude.Functor f,+ Data.ProtoLens.Field.HasField s "walletPassword" a) =>+ Lens.Family2.LensLike' f s a+walletPassword = Data.ProtoLens.Field.field @"walletPassword"+watchOnly ::+ forall f s a.+ (Prelude.Functor f,+ Data.ProtoLens.Field.HasField s "watchOnly" a) =>+ Lens.Family2.LensLike' f s a+watchOnly = Data.ProtoLens.Field.field @"watchOnly"+xpub ::+ forall f s a.+ (Prelude.Functor f, Data.ProtoLens.Field.HasField s "xpub" a) =>+ Lens.Family2.LensLike' f s a+xpub = Data.ProtoLens.Field.field @"xpub"
@@ -0,0 +1,452 @@+{- This file was auto-generated from watchtowerrpc/watchtower.proto by the proto-lens-protoc program. -}+{-# LANGUAGE ScopedTypeVariables, DataKinds, TypeFamilies, UndecidableInstances, GeneralizedNewtypeDeriving, MultiParamTypeClasses, FlexibleContexts, FlexibleInstances, PatternSynonyms, MagicHash, NoImplicitPrelude, BangPatterns, TypeApplications, OverloadedStrings, DerivingStrategies, DeriveGeneric#-}+{-# OPTIONS_GHC -Wno-unused-imports#-}+{-# OPTIONS_GHC -Wno-duplicate-exports#-}+{-# OPTIONS_GHC -Wno-dodgy-exports#-}+module Proto.Watchtowerrpc.Watchtower (+ Watchtower(..), GetInfoRequest(), GetInfoResponse()+ ) where+import qualified Data.ProtoLens.Runtime.Control.DeepSeq as Control.DeepSeq+import qualified Data.ProtoLens.Runtime.Data.ProtoLens.Prism as Data.ProtoLens.Prism+import qualified Text.PrettyPrint.GenericPretty.Instance+import qualified GHC.Generics+import qualified Text.PrettyPrint.GenericPretty+import qualified Data.ProtoLens.Runtime.Prelude as Prelude+import qualified Data.ProtoLens.Runtime.Data.Int as Data.Int+import qualified Data.ProtoLens.Runtime.Data.Monoid as Data.Monoid+import qualified Data.ProtoLens.Runtime.Data.Word as Data.Word+import qualified Data.ProtoLens.Runtime.Data.ProtoLens as Data.ProtoLens+import qualified Data.ProtoLens.Runtime.Data.ProtoLens.Encoding.Bytes as Data.ProtoLens.Encoding.Bytes+import qualified Data.ProtoLens.Runtime.Data.ProtoLens.Encoding.Growing as Data.ProtoLens.Encoding.Growing+import qualified Data.ProtoLens.Runtime.Data.ProtoLens.Encoding.Parser.Unsafe as Data.ProtoLens.Encoding.Parser.Unsafe+import qualified Data.ProtoLens.Runtime.Data.ProtoLens.Encoding.Wire as Data.ProtoLens.Encoding.Wire+import qualified Data.ProtoLens.Runtime.Data.ProtoLens.Field as Data.ProtoLens.Field+import qualified Data.ProtoLens.Runtime.Data.ProtoLens.Message.Enum as Data.ProtoLens.Message.Enum+import qualified Data.ProtoLens.Runtime.Data.ProtoLens.Service.Types as Data.ProtoLens.Service.Types+import qualified Data.ProtoLens.Runtime.Lens.Family2 as Lens.Family2+import qualified Data.ProtoLens.Runtime.Lens.Family2.Unchecked as Lens.Family2.Unchecked+import qualified Data.ProtoLens.Runtime.Data.Text as Data.Text+import qualified Data.ProtoLens.Runtime.Data.Map as Data.Map+import qualified Data.ProtoLens.Runtime.Data.ByteString as Data.ByteString+import qualified Data.ProtoLens.Runtime.Data.ByteString.Char8 as Data.ByteString.Char8+import qualified Data.ProtoLens.Runtime.Data.Text.Encoding as Data.Text.Encoding+import qualified Data.ProtoLens.Runtime.Data.Vector as Data.Vector+import qualified Data.ProtoLens.Runtime.Data.Vector.Generic as Data.Vector.Generic+import qualified Data.ProtoLens.Runtime.Data.Vector.Unboxed as Data.Vector.Unboxed+import qualified Data.ProtoLens.Runtime.Text.Read as Text.Read+{- | Fields :+ -}+data GetInfoRequest+ = GetInfoRequest'_constructor {_GetInfoRequest'_unknownFields :: !Data.ProtoLens.FieldSet}+ deriving stock (Prelude.Eq, Prelude.Ord, GHC.Generics.Generic)+instance Prelude.Show GetInfoRequest where+ showsPrec _ __x __s+ = Prelude.showChar+ '{'+ (Prelude.showString+ (Data.ProtoLens.showMessageShort __x) (Prelude.showChar '}' __s))+instance Text.PrettyPrint.GenericPretty.Out GetInfoRequest+instance Data.ProtoLens.Message GetInfoRequest where+ messageName _ = Data.Text.pack "watchtowerrpc.GetInfoRequest"+ packedMessageDescriptor _+ = "\n\+ \\SOGetInfoRequest"+ packedFileDescriptor _ = packedFileDescriptor+ fieldsByTag = let in Data.Map.fromList []+ unknownFields+ = Lens.Family2.Unchecked.lens+ _GetInfoRequest'_unknownFields+ (\ x__ y__ -> x__ {_GetInfoRequest'_unknownFields = y__})+ defMessage+ = GetInfoRequest'_constructor {_GetInfoRequest'_unknownFields = []}+ parseMessage+ = let+ loop ::+ GetInfoRequest+ -> Data.ProtoLens.Encoding.Bytes.Parser GetInfoRequest+ loop x+ = do end <- Data.ProtoLens.Encoding.Bytes.atEnd+ if end then+ do (let missing = []+ in+ if Prelude.null missing then+ Prelude.return ()+ else+ Prelude.fail+ ((Prelude.++)+ "Missing required fields: "+ (Prelude.show (missing :: [Prelude.String]))))+ Prelude.return+ (Lens.Family2.over+ Data.ProtoLens.unknownFields (\ !t -> Prelude.reverse t) x)+ else+ do tag <- Data.ProtoLens.Encoding.Bytes.getVarInt+ case tag of {+ wire+ -> do !y <- Data.ProtoLens.Encoding.Wire.parseTaggedValueFromWire+ wire+ loop+ (Lens.Family2.over+ Data.ProtoLens.unknownFields (\ !t -> (:) y t) x) }+ in+ (Data.ProtoLens.Encoding.Bytes.<?>)+ (do loop Data.ProtoLens.defMessage) "GetInfoRequest"+ buildMessage+ = \ _x+ -> Data.ProtoLens.Encoding.Wire.buildFieldSet+ (Lens.Family2.view Data.ProtoLens.unknownFields _x)+instance Control.DeepSeq.NFData GetInfoRequest where+ rnf+ = \ x__+ -> Control.DeepSeq.deepseq (_GetInfoRequest'_unknownFields x__) ()+{- | Fields :+ + * 'Proto.Watchtowerrpc.Watchtower_Fields.pubkey' @:: Lens' GetInfoResponse Data.ByteString.ByteString@+ * 'Proto.Watchtowerrpc.Watchtower_Fields.listeners' @:: Lens' GetInfoResponse [Data.Text.Text]@+ * 'Proto.Watchtowerrpc.Watchtower_Fields.vec'listeners' @:: Lens' GetInfoResponse (Data.Vector.Vector Data.Text.Text)@+ * 'Proto.Watchtowerrpc.Watchtower_Fields.uris' @:: Lens' GetInfoResponse [Data.Text.Text]@+ * 'Proto.Watchtowerrpc.Watchtower_Fields.vec'uris' @:: Lens' GetInfoResponse (Data.Vector.Vector Data.Text.Text)@ -}+data GetInfoResponse+ = GetInfoResponse'_constructor {_GetInfoResponse'pubkey :: !Data.ByteString.ByteString,+ _GetInfoResponse'listeners :: !(Data.Vector.Vector Data.Text.Text),+ _GetInfoResponse'uris :: !(Data.Vector.Vector Data.Text.Text),+ _GetInfoResponse'_unknownFields :: !Data.ProtoLens.FieldSet}+ deriving stock (Prelude.Eq, Prelude.Ord, GHC.Generics.Generic)+instance Prelude.Show GetInfoResponse where+ showsPrec _ __x __s+ = Prelude.showChar+ '{'+ (Prelude.showString+ (Data.ProtoLens.showMessageShort __x) (Prelude.showChar '}' __s))+instance Text.PrettyPrint.GenericPretty.Out GetInfoResponse+instance Data.ProtoLens.Field.HasField GetInfoResponse "pubkey" Data.ByteString.ByteString where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _GetInfoResponse'pubkey+ (\ x__ y__ -> x__ {_GetInfoResponse'pubkey = y__}))+ Prelude.id+instance Data.ProtoLens.Field.HasField GetInfoResponse "listeners" [Data.Text.Text] where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _GetInfoResponse'listeners+ (\ x__ y__ -> x__ {_GetInfoResponse'listeners = y__}))+ (Lens.Family2.Unchecked.lens+ Data.Vector.Generic.toList+ (\ _ y__ -> Data.Vector.Generic.fromList y__))+instance Data.ProtoLens.Field.HasField GetInfoResponse "vec'listeners" (Data.Vector.Vector Data.Text.Text) where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _GetInfoResponse'listeners+ (\ x__ y__ -> x__ {_GetInfoResponse'listeners = y__}))+ Prelude.id+instance Data.ProtoLens.Field.HasField GetInfoResponse "uris" [Data.Text.Text] where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _GetInfoResponse'uris+ (\ x__ y__ -> x__ {_GetInfoResponse'uris = y__}))+ (Lens.Family2.Unchecked.lens+ Data.Vector.Generic.toList+ (\ _ y__ -> Data.Vector.Generic.fromList y__))+instance Data.ProtoLens.Field.HasField GetInfoResponse "vec'uris" (Data.Vector.Vector Data.Text.Text) where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _GetInfoResponse'uris+ (\ x__ y__ -> x__ {_GetInfoResponse'uris = y__}))+ Prelude.id+instance Data.ProtoLens.Message GetInfoResponse where+ messageName _ = Data.Text.pack "watchtowerrpc.GetInfoResponse"+ packedMessageDescriptor _+ = "\n\+ \\SIGetInfoResponse\DC2\SYN\n\+ \\ACKpubkey\CAN\SOH \SOH(\fR\ACKpubkey\DC2\FS\n\+ \\tlisteners\CAN\STX \ETX(\tR\tlisteners\DC2\DC2\n\+ \\EOTuris\CAN\ETX \ETX(\tR\EOTuris"+ packedFileDescriptor _ = packedFileDescriptor+ fieldsByTag+ = let+ pubkey__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "pubkey"+ (Data.ProtoLens.ScalarField Data.ProtoLens.BytesField ::+ Data.ProtoLens.FieldTypeDescriptor Data.ByteString.ByteString)+ (Data.ProtoLens.PlainField+ Data.ProtoLens.Optional (Data.ProtoLens.Field.field @"pubkey")) ::+ Data.ProtoLens.FieldDescriptor GetInfoResponse+ listeners__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "listeners"+ (Data.ProtoLens.ScalarField Data.ProtoLens.StringField ::+ Data.ProtoLens.FieldTypeDescriptor Data.Text.Text)+ (Data.ProtoLens.RepeatedField+ Data.ProtoLens.Unpacked+ (Data.ProtoLens.Field.field @"listeners")) ::+ Data.ProtoLens.FieldDescriptor GetInfoResponse+ uris__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "uris"+ (Data.ProtoLens.ScalarField Data.ProtoLens.StringField ::+ Data.ProtoLens.FieldTypeDescriptor Data.Text.Text)+ (Data.ProtoLens.RepeatedField+ Data.ProtoLens.Unpacked (Data.ProtoLens.Field.field @"uris")) ::+ Data.ProtoLens.FieldDescriptor GetInfoResponse+ in+ Data.Map.fromList+ [(Data.ProtoLens.Tag 1, pubkey__field_descriptor),+ (Data.ProtoLens.Tag 2, listeners__field_descriptor),+ (Data.ProtoLens.Tag 3, uris__field_descriptor)]+ unknownFields+ = Lens.Family2.Unchecked.lens+ _GetInfoResponse'_unknownFields+ (\ x__ y__ -> x__ {_GetInfoResponse'_unknownFields = y__})+ defMessage+ = GetInfoResponse'_constructor+ {_GetInfoResponse'pubkey = Data.ProtoLens.fieldDefault,+ _GetInfoResponse'listeners = Data.Vector.Generic.empty,+ _GetInfoResponse'uris = Data.Vector.Generic.empty,+ _GetInfoResponse'_unknownFields = []}+ parseMessage+ = let+ loop ::+ GetInfoResponse+ -> Data.ProtoLens.Encoding.Growing.Growing Data.Vector.Vector Data.ProtoLens.Encoding.Growing.RealWorld Data.Text.Text+ -> Data.ProtoLens.Encoding.Growing.Growing Data.Vector.Vector Data.ProtoLens.Encoding.Growing.RealWorld Data.Text.Text+ -> Data.ProtoLens.Encoding.Bytes.Parser GetInfoResponse+ loop x mutable'listeners mutable'uris+ = do end <- Data.ProtoLens.Encoding.Bytes.atEnd+ if end then+ do frozen'listeners <- Data.ProtoLens.Encoding.Parser.Unsafe.unsafeLiftIO+ (Data.ProtoLens.Encoding.Growing.unsafeFreeze+ mutable'listeners)+ frozen'uris <- Data.ProtoLens.Encoding.Parser.Unsafe.unsafeLiftIO+ (Data.ProtoLens.Encoding.Growing.unsafeFreeze mutable'uris)+ (let missing = []+ in+ if Prelude.null missing then+ Prelude.return ()+ else+ Prelude.fail+ ((Prelude.++)+ "Missing required fields: "+ (Prelude.show (missing :: [Prelude.String]))))+ Prelude.return+ (Lens.Family2.over+ Data.ProtoLens.unknownFields (\ !t -> Prelude.reverse t)+ (Lens.Family2.set+ (Data.ProtoLens.Field.field @"vec'listeners") frozen'listeners+ (Lens.Family2.set+ (Data.ProtoLens.Field.field @"vec'uris") frozen'uris x)))+ else+ do tag <- Data.ProtoLens.Encoding.Bytes.getVarInt+ case tag of+ 10+ -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (do len <- Data.ProtoLens.Encoding.Bytes.getVarInt+ Data.ProtoLens.Encoding.Bytes.getBytes+ (Prelude.fromIntegral len))+ "pubkey"+ loop+ (Lens.Family2.set (Data.ProtoLens.Field.field @"pubkey") y x)+ mutable'listeners mutable'uris+ 18+ -> do !y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (do value <- do len <- Data.ProtoLens.Encoding.Bytes.getVarInt+ Data.ProtoLens.Encoding.Bytes.getBytes+ (Prelude.fromIntegral len)+ Data.ProtoLens.Encoding.Bytes.runEither+ (case Data.Text.Encoding.decodeUtf8' value of+ (Prelude.Left err)+ -> Prelude.Left (Prelude.show err)+ (Prelude.Right r) -> Prelude.Right r))+ "listeners"+ v <- Data.ProtoLens.Encoding.Parser.Unsafe.unsafeLiftIO+ (Data.ProtoLens.Encoding.Growing.append mutable'listeners y)+ loop x v mutable'uris+ 26+ -> do !y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (do value <- do len <- Data.ProtoLens.Encoding.Bytes.getVarInt+ Data.ProtoLens.Encoding.Bytes.getBytes+ (Prelude.fromIntegral len)+ Data.ProtoLens.Encoding.Bytes.runEither+ (case Data.Text.Encoding.decodeUtf8' value of+ (Prelude.Left err)+ -> Prelude.Left (Prelude.show err)+ (Prelude.Right r) -> Prelude.Right r))+ "uris"+ v <- Data.ProtoLens.Encoding.Parser.Unsafe.unsafeLiftIO+ (Data.ProtoLens.Encoding.Growing.append mutable'uris y)+ loop x mutable'listeners v+ wire+ -> do !y <- Data.ProtoLens.Encoding.Wire.parseTaggedValueFromWire+ wire+ loop+ (Lens.Family2.over+ Data.ProtoLens.unknownFields (\ !t -> (:) y t) x)+ mutable'listeners mutable'uris+ in+ (Data.ProtoLens.Encoding.Bytes.<?>)+ (do mutable'listeners <- Data.ProtoLens.Encoding.Parser.Unsafe.unsafeLiftIO+ Data.ProtoLens.Encoding.Growing.new+ mutable'uris <- Data.ProtoLens.Encoding.Parser.Unsafe.unsafeLiftIO+ Data.ProtoLens.Encoding.Growing.new+ loop Data.ProtoLens.defMessage mutable'listeners mutable'uris)+ "GetInfoResponse"+ buildMessage+ = \ _x+ -> (Data.Monoid.<>)+ (let+ _v = Lens.Family2.view (Data.ProtoLens.Field.field @"pubkey") _x+ in+ if (Prelude.==) _v Data.ProtoLens.fieldDefault then+ Data.Monoid.mempty+ else+ (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 10)+ ((\ bs+ -> (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt+ (Prelude.fromIntegral (Data.ByteString.length bs)))+ (Data.ProtoLens.Encoding.Bytes.putBytes bs))+ _v))+ ((Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.foldMapBuilder+ (\ _v+ -> (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 18)+ ((Prelude..)+ (\ bs+ -> (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt+ (Prelude.fromIntegral (Data.ByteString.length bs)))+ (Data.ProtoLens.Encoding.Bytes.putBytes bs))+ Data.Text.Encoding.encodeUtf8 _v))+ (Lens.Family2.view+ (Data.ProtoLens.Field.field @"vec'listeners") _x))+ ((Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.foldMapBuilder+ (\ _v+ -> (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 26)+ ((Prelude..)+ (\ bs+ -> (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt+ (Prelude.fromIntegral (Data.ByteString.length bs)))+ (Data.ProtoLens.Encoding.Bytes.putBytes bs))+ Data.Text.Encoding.encodeUtf8 _v))+ (Lens.Family2.view (Data.ProtoLens.Field.field @"vec'uris") _x))+ (Data.ProtoLens.Encoding.Wire.buildFieldSet+ (Lens.Family2.view Data.ProtoLens.unknownFields _x))))+instance Control.DeepSeq.NFData GetInfoResponse where+ rnf+ = \ x__+ -> Control.DeepSeq.deepseq+ (_GetInfoResponse'_unknownFields x__)+ (Control.DeepSeq.deepseq+ (_GetInfoResponse'pubkey x__)+ (Control.DeepSeq.deepseq+ (_GetInfoResponse'listeners x__)+ (Control.DeepSeq.deepseq (_GetInfoResponse'uris x__) ())))+data Watchtower = Watchtower {}+instance Data.ProtoLens.Service.Types.Service Watchtower where+ type ServiceName Watchtower = "Watchtower"+ type ServicePackage Watchtower = "watchtowerrpc"+ type ServiceMethods Watchtower = '["getInfo"]+ packedServiceDescriptor _+ = "\n\+ \\n\+ \Watchtower\DC2H\n\+ \\aGetInfo\DC2\GS.watchtowerrpc.GetInfoRequest\SUB\RS.watchtowerrpc.GetInfoResponse"+instance Data.ProtoLens.Service.Types.HasMethodImpl Watchtower "getInfo" where+ type MethodName Watchtower "getInfo" = "GetInfo"+ type MethodInput Watchtower "getInfo" = GetInfoRequest+ type MethodOutput Watchtower "getInfo" = GetInfoResponse+ type MethodStreamingType Watchtower "getInfo" = 'Data.ProtoLens.Service.Types.NonStreaming+packedFileDescriptor :: Data.ByteString.ByteString+packedFileDescriptor+ = "\n\+ \\RSwatchtowerrpc/watchtower.proto\DC2\rwatchtowerrpc\"\DLE\n\+ \\SOGetInfoRequest\"[\n\+ \\SIGetInfoResponse\DC2\SYN\n\+ \\ACKpubkey\CAN\SOH \SOH(\fR\ACKpubkey\DC2\FS\n\+ \\tlisteners\CAN\STX \ETX(\tR\tlisteners\DC2\DC2\n\+ \\EOTuris\CAN\ETX \ETX(\tR\EOTuris2V\n\+ \\n\+ \Watchtower\DC2H\n\+ \\aGetInfo\DC2\GS.watchtowerrpc.GetInfoRequest\SUB\RS.watchtowerrpc.GetInfoResponseB5Z3github.com/lightningnetwork/lnd/lnrpc/watchtowerrpcJ\254\ENQ\n\+ \\ACK\DC2\EOT\NUL\NUL\GS\SOH\n\+ \\b\n\+ \\SOH\f\DC2\ETX\NUL\NUL\DC2\n\+ \\b\n\+ \\SOH\STX\DC2\ETX\STX\NUL\SYN\n\+ \\b\n\+ \\SOH\b\DC2\ETX\EOT\NULJ\n\+ \\t\n\+ \\STX\b\v\DC2\ETX\EOT\NULJ\n\+ \o\n\+ \\STX\ACK\NUL\DC2\EOT\b\NUL\SI\SOH\SUBc Watchtower is a service that grants access to the watchtower server\n\+ \ functionality of the daemon.\n\+ \\n\+ \\n\+ \\n\+ \\ETX\ACK\NUL\SOH\DC2\ETX\b\b\DC2\n\+ \\192\SOH\n\+ \\EOT\ACK\NUL\STX\NUL\DC2\ETX\SO\EOT;\SUB\178\SOH lncli: tower info\n\+ \GetInfo returns general information concerning the companion watchtower\n\+ \including its public key and URIs where the server is currently\n\+ \listening for clients.\n\+ \\n\+ \\f\n\+ \\ENQ\ACK\NUL\STX\NUL\SOH\DC2\ETX\SO\b\SI\n\+ \\f\n\+ \\ENQ\ACK\NUL\STX\NUL\STX\DC2\ETX\SO\DC1\US\n\+ \\f\n\+ \\ENQ\ACK\NUL\STX\NUL\ETX\DC2\ETX\SO*9\n\+ \\n\+ \\n\+ \\STX\EOT\NUL\DC2\EOT\DC1\NUL\DC2\SOH\n\+ \\n\+ \\n\+ \\ETX\EOT\NUL\SOH\DC2\ETX\DC1\b\SYN\n\+ \\n\+ \\n\+ \\STX\EOT\SOH\DC2\EOT\DC4\NUL\GS\SOH\n\+ \\n\+ \\n\+ \\ETX\EOT\SOH\SOH\DC2\ETX\DC4\b\ETB\n\+ \0\n\+ \\EOT\EOT\SOH\STX\NUL\DC2\ETX\SYN\EOT\NAK\SUB# The public key of the watchtower.\n\+ \\n\+ \\f\n\+ \\ENQ\EOT\SOH\STX\NUL\ENQ\DC2\ETX\SYN\EOT\t\n\+ \\f\n\+ \\ENQ\EOT\SOH\STX\NUL\SOH\DC2\ETX\SYN\n\+ \\DLE\n\+ \\f\n\+ \\ENQ\EOT\SOH\STX\NUL\ETX\DC2\ETX\SYN\DC3\DC4\n\+ \9\n\+ \\EOT\EOT\SOH\STX\SOH\DC2\ETX\EM\EOT\"\SUB, The listening addresses of the watchtower.\n\+ \\n\+ \\f\n\+ \\ENQ\EOT\SOH\STX\SOH\EOT\DC2\ETX\EM\EOT\f\n\+ \\f\n\+ \\ENQ\EOT\SOH\STX\SOH\ENQ\DC2\ETX\EM\r\DC3\n\+ \\f\n\+ \\ENQ\EOT\SOH\STX\SOH\SOH\DC2\ETX\EM\DC4\GS\n\+ \\f\n\+ \\ENQ\EOT\SOH\STX\SOH\ETX\DC2\ETX\EM !\n\+ \*\n\+ \\EOT\EOT\SOH\STX\STX\DC2\ETX\FS\EOT\GS\SUB\GS The URIs of the watchtower.\n\+ \\n\+ \\f\n\+ \\ENQ\EOT\SOH\STX\STX\EOT\DC2\ETX\FS\EOT\f\n\+ \\f\n\+ \\ENQ\EOT\SOH\STX\STX\ENQ\DC2\ETX\FS\r\DC3\n\+ \\f\n\+ \\ENQ\EOT\SOH\STX\STX\SOH\DC2\ETX\FS\DC4\CAN\n\+ \\f\n\+ \\ENQ\EOT\SOH\STX\STX\ETX\DC2\ETX\FS\ESC\FSb\ACKproto3"
@@ -0,0 +1,57 @@+{- This file was auto-generated from watchtowerrpc/watchtower.proto by the proto-lens-protoc program. -}+{-# LANGUAGE ScopedTypeVariables, DataKinds, TypeFamilies, UndecidableInstances, GeneralizedNewtypeDeriving, MultiParamTypeClasses, FlexibleContexts, FlexibleInstances, PatternSynonyms, MagicHash, NoImplicitPrelude, BangPatterns, TypeApplications, OverloadedStrings, DerivingStrategies, DeriveGeneric#-}+{-# OPTIONS_GHC -Wno-unused-imports#-}+{-# OPTIONS_GHC -Wno-duplicate-exports#-}+{-# OPTIONS_GHC -Wno-dodgy-exports#-}+module Proto.Watchtowerrpc.Watchtower_Fields where+import qualified Data.ProtoLens.Runtime.Prelude as Prelude+import qualified Data.ProtoLens.Runtime.Data.Int as Data.Int+import qualified Data.ProtoLens.Runtime.Data.Monoid as Data.Monoid+import qualified Data.ProtoLens.Runtime.Data.Word as Data.Word+import qualified Data.ProtoLens.Runtime.Data.ProtoLens as Data.ProtoLens+import qualified Data.ProtoLens.Runtime.Data.ProtoLens.Encoding.Bytes as Data.ProtoLens.Encoding.Bytes+import qualified Data.ProtoLens.Runtime.Data.ProtoLens.Encoding.Growing as Data.ProtoLens.Encoding.Growing+import qualified Data.ProtoLens.Runtime.Data.ProtoLens.Encoding.Parser.Unsafe as Data.ProtoLens.Encoding.Parser.Unsafe+import qualified Data.ProtoLens.Runtime.Data.ProtoLens.Encoding.Wire as Data.ProtoLens.Encoding.Wire+import qualified Data.ProtoLens.Runtime.Data.ProtoLens.Field as Data.ProtoLens.Field+import qualified Data.ProtoLens.Runtime.Data.ProtoLens.Message.Enum as Data.ProtoLens.Message.Enum+import qualified Data.ProtoLens.Runtime.Data.ProtoLens.Service.Types as Data.ProtoLens.Service.Types+import qualified Data.ProtoLens.Runtime.Lens.Family2 as Lens.Family2+import qualified Data.ProtoLens.Runtime.Lens.Family2.Unchecked as Lens.Family2.Unchecked+import qualified Data.ProtoLens.Runtime.Data.Text as Data.Text+import qualified Data.ProtoLens.Runtime.Data.Map as Data.Map+import qualified Data.ProtoLens.Runtime.Data.ByteString as Data.ByteString+import qualified Data.ProtoLens.Runtime.Data.ByteString.Char8 as Data.ByteString.Char8+import qualified Data.ProtoLens.Runtime.Data.Text.Encoding as Data.Text.Encoding+import qualified Data.ProtoLens.Runtime.Data.Vector as Data.Vector+import qualified Data.ProtoLens.Runtime.Data.Vector.Generic as Data.Vector.Generic+import qualified Data.ProtoLens.Runtime.Data.Vector.Unboxed as Data.Vector.Unboxed+import qualified Data.ProtoLens.Runtime.Text.Read as Text.Read+listeners ::+ forall f s a.+ (Prelude.Functor f,+ Data.ProtoLens.Field.HasField s "listeners" a) =>+ Lens.Family2.LensLike' f s a+listeners = Data.ProtoLens.Field.field @"listeners"+pubkey ::+ forall f s a.+ (Prelude.Functor f, Data.ProtoLens.Field.HasField s "pubkey" a) =>+ Lens.Family2.LensLike' f s a+pubkey = Data.ProtoLens.Field.field @"pubkey"+uris ::+ forall f s a.+ (Prelude.Functor f, Data.ProtoLens.Field.HasField s "uris" a) =>+ Lens.Family2.LensLike' f s a+uris = Data.ProtoLens.Field.field @"uris"+vec'listeners ::+ forall f s a.+ (Prelude.Functor f,+ Data.ProtoLens.Field.HasField s "vec'listeners" a) =>+ Lens.Family2.LensLike' f s a+vec'listeners = Data.ProtoLens.Field.field @"vec'listeners"+vec'uris ::+ forall f s a.+ (Prelude.Functor f,+ Data.ProtoLens.Field.HasField s "vec'uris" a) =>+ Lens.Family2.LensLike' f s a+vec'uris = Data.ProtoLens.Field.field @"vec'uris"
@@ -0,0 +1,2883 @@+{- This file was auto-generated from wtclientrpc/wtclient.proto by the proto-lens-protoc program. -}+{-# LANGUAGE ScopedTypeVariables, DataKinds, TypeFamilies, UndecidableInstances, GeneralizedNewtypeDeriving, MultiParamTypeClasses, FlexibleContexts, FlexibleInstances, PatternSynonyms, MagicHash, NoImplicitPrelude, BangPatterns, TypeApplications, OverloadedStrings, DerivingStrategies, DeriveGeneric#-}+{-# OPTIONS_GHC -Wno-unused-imports#-}+{-# OPTIONS_GHC -Wno-duplicate-exports#-}+{-# OPTIONS_GHC -Wno-dodgy-exports#-}+module Proto.Wtclientrpc.Wtclient (+ WatchtowerClient(..), AddTowerRequest(), AddTowerResponse(),+ GetTowerInfoRequest(), ListTowersRequest(), ListTowersResponse(),+ PolicyRequest(), PolicyResponse(), PolicyType(..), PolicyType(),+ PolicyType'UnrecognizedValue, RemoveTowerRequest(),+ RemoveTowerResponse(), StatsRequest(), StatsResponse(), Tower(),+ TowerSession()+ ) where+import qualified Data.ProtoLens.Runtime.Control.DeepSeq as Control.DeepSeq+import qualified Data.ProtoLens.Runtime.Data.ProtoLens.Prism as Data.ProtoLens.Prism+import qualified Text.PrettyPrint.GenericPretty.Instance+import qualified GHC.Generics+import qualified Text.PrettyPrint.GenericPretty+import qualified Data.ProtoLens.Runtime.Prelude as Prelude+import qualified Data.ProtoLens.Runtime.Data.Int as Data.Int+import qualified Data.ProtoLens.Runtime.Data.Monoid as Data.Monoid+import qualified Data.ProtoLens.Runtime.Data.Word as Data.Word+import qualified Data.ProtoLens.Runtime.Data.ProtoLens as Data.ProtoLens+import qualified Data.ProtoLens.Runtime.Data.ProtoLens.Encoding.Bytes as Data.ProtoLens.Encoding.Bytes+import qualified Data.ProtoLens.Runtime.Data.ProtoLens.Encoding.Growing as Data.ProtoLens.Encoding.Growing+import qualified Data.ProtoLens.Runtime.Data.ProtoLens.Encoding.Parser.Unsafe as Data.ProtoLens.Encoding.Parser.Unsafe+import qualified Data.ProtoLens.Runtime.Data.ProtoLens.Encoding.Wire as Data.ProtoLens.Encoding.Wire+import qualified Data.ProtoLens.Runtime.Data.ProtoLens.Field as Data.ProtoLens.Field+import qualified Data.ProtoLens.Runtime.Data.ProtoLens.Message.Enum as Data.ProtoLens.Message.Enum+import qualified Data.ProtoLens.Runtime.Data.ProtoLens.Service.Types as Data.ProtoLens.Service.Types+import qualified Data.ProtoLens.Runtime.Lens.Family2 as Lens.Family2+import qualified Data.ProtoLens.Runtime.Lens.Family2.Unchecked as Lens.Family2.Unchecked+import qualified Data.ProtoLens.Runtime.Data.Text as Data.Text+import qualified Data.ProtoLens.Runtime.Data.Map as Data.Map+import qualified Data.ProtoLens.Runtime.Data.ByteString as Data.ByteString+import qualified Data.ProtoLens.Runtime.Data.ByteString.Char8 as Data.ByteString.Char8+import qualified Data.ProtoLens.Runtime.Data.Text.Encoding as Data.Text.Encoding+import qualified Data.ProtoLens.Runtime.Data.Vector as Data.Vector+import qualified Data.ProtoLens.Runtime.Data.Vector.Generic as Data.Vector.Generic+import qualified Data.ProtoLens.Runtime.Data.Vector.Unboxed as Data.Vector.Unboxed+import qualified Data.ProtoLens.Runtime.Text.Read as Text.Read+{- | Fields :+ + * 'Proto.Wtclientrpc.Wtclient_Fields.pubkey' @:: Lens' AddTowerRequest Data.ByteString.ByteString@+ * 'Proto.Wtclientrpc.Wtclient_Fields.address' @:: Lens' AddTowerRequest Data.Text.Text@ -}+data AddTowerRequest+ = AddTowerRequest'_constructor {_AddTowerRequest'pubkey :: !Data.ByteString.ByteString,+ _AddTowerRequest'address :: !Data.Text.Text,+ _AddTowerRequest'_unknownFields :: !Data.ProtoLens.FieldSet}+ deriving stock (Prelude.Eq, Prelude.Ord, GHC.Generics.Generic)+instance Prelude.Show AddTowerRequest where+ showsPrec _ __x __s+ = Prelude.showChar+ '{'+ (Prelude.showString+ (Data.ProtoLens.showMessageShort __x) (Prelude.showChar '}' __s))+instance Text.PrettyPrint.GenericPretty.Out AddTowerRequest+instance Data.ProtoLens.Field.HasField AddTowerRequest "pubkey" Data.ByteString.ByteString where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _AddTowerRequest'pubkey+ (\ x__ y__ -> x__ {_AddTowerRequest'pubkey = y__}))+ Prelude.id+instance Data.ProtoLens.Field.HasField AddTowerRequest "address" Data.Text.Text where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _AddTowerRequest'address+ (\ x__ y__ -> x__ {_AddTowerRequest'address = y__}))+ Prelude.id+instance Data.ProtoLens.Message AddTowerRequest where+ messageName _ = Data.Text.pack "wtclientrpc.AddTowerRequest"+ packedMessageDescriptor _+ = "\n\+ \\SIAddTowerRequest\DC2\SYN\n\+ \\ACKpubkey\CAN\SOH \SOH(\fR\ACKpubkey\DC2\CAN\n\+ \\aaddress\CAN\STX \SOH(\tR\aaddress"+ packedFileDescriptor _ = packedFileDescriptor+ fieldsByTag+ = let+ pubkey__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "pubkey"+ (Data.ProtoLens.ScalarField Data.ProtoLens.BytesField ::+ Data.ProtoLens.FieldTypeDescriptor Data.ByteString.ByteString)+ (Data.ProtoLens.PlainField+ Data.ProtoLens.Optional (Data.ProtoLens.Field.field @"pubkey")) ::+ Data.ProtoLens.FieldDescriptor AddTowerRequest+ address__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "address"+ (Data.ProtoLens.ScalarField Data.ProtoLens.StringField ::+ Data.ProtoLens.FieldTypeDescriptor Data.Text.Text)+ (Data.ProtoLens.PlainField+ Data.ProtoLens.Optional (Data.ProtoLens.Field.field @"address")) ::+ Data.ProtoLens.FieldDescriptor AddTowerRequest+ in+ Data.Map.fromList+ [(Data.ProtoLens.Tag 1, pubkey__field_descriptor),+ (Data.ProtoLens.Tag 2, address__field_descriptor)]+ unknownFields+ = Lens.Family2.Unchecked.lens+ _AddTowerRequest'_unknownFields+ (\ x__ y__ -> x__ {_AddTowerRequest'_unknownFields = y__})+ defMessage+ = AddTowerRequest'_constructor+ {_AddTowerRequest'pubkey = Data.ProtoLens.fieldDefault,+ _AddTowerRequest'address = Data.ProtoLens.fieldDefault,+ _AddTowerRequest'_unknownFields = []}+ parseMessage+ = let+ loop ::+ AddTowerRequest+ -> Data.ProtoLens.Encoding.Bytes.Parser AddTowerRequest+ loop x+ = do end <- Data.ProtoLens.Encoding.Bytes.atEnd+ if end then+ do (let missing = []+ in+ if Prelude.null missing then+ Prelude.return ()+ else+ Prelude.fail+ ((Prelude.++)+ "Missing required fields: "+ (Prelude.show (missing :: [Prelude.String]))))+ Prelude.return+ (Lens.Family2.over+ Data.ProtoLens.unknownFields (\ !t -> Prelude.reverse t) x)+ else+ do tag <- Data.ProtoLens.Encoding.Bytes.getVarInt+ case tag of+ 10+ -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (do len <- Data.ProtoLens.Encoding.Bytes.getVarInt+ Data.ProtoLens.Encoding.Bytes.getBytes+ (Prelude.fromIntegral len))+ "pubkey"+ loop (Lens.Family2.set (Data.ProtoLens.Field.field @"pubkey") y x)+ 18+ -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (do value <- do len <- Data.ProtoLens.Encoding.Bytes.getVarInt+ Data.ProtoLens.Encoding.Bytes.getBytes+ (Prelude.fromIntegral len)+ Data.ProtoLens.Encoding.Bytes.runEither+ (case Data.Text.Encoding.decodeUtf8' value of+ (Prelude.Left err)+ -> Prelude.Left (Prelude.show err)+ (Prelude.Right r) -> Prelude.Right r))+ "address"+ loop (Lens.Family2.set (Data.ProtoLens.Field.field @"address") y x)+ wire+ -> do !y <- Data.ProtoLens.Encoding.Wire.parseTaggedValueFromWire+ wire+ loop+ (Lens.Family2.over+ Data.ProtoLens.unknownFields (\ !t -> (:) y t) x)+ in+ (Data.ProtoLens.Encoding.Bytes.<?>)+ (do loop Data.ProtoLens.defMessage) "AddTowerRequest"+ buildMessage+ = \ _x+ -> (Data.Monoid.<>)+ (let+ _v = Lens.Family2.view (Data.ProtoLens.Field.field @"pubkey") _x+ in+ if (Prelude.==) _v Data.ProtoLens.fieldDefault then+ Data.Monoid.mempty+ else+ (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 10)+ ((\ bs+ -> (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt+ (Prelude.fromIntegral (Data.ByteString.length bs)))+ (Data.ProtoLens.Encoding.Bytes.putBytes bs))+ _v))+ ((Data.Monoid.<>)+ (let+ _v = Lens.Family2.view (Data.ProtoLens.Field.field @"address") _x+ in+ if (Prelude.==) _v Data.ProtoLens.fieldDefault then+ Data.Monoid.mempty+ else+ (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 18)+ ((Prelude..)+ (\ bs+ -> (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt+ (Prelude.fromIntegral (Data.ByteString.length bs)))+ (Data.ProtoLens.Encoding.Bytes.putBytes bs))+ Data.Text.Encoding.encodeUtf8 _v))+ (Data.ProtoLens.Encoding.Wire.buildFieldSet+ (Lens.Family2.view Data.ProtoLens.unknownFields _x)))+instance Control.DeepSeq.NFData AddTowerRequest where+ rnf+ = \ x__+ -> Control.DeepSeq.deepseq+ (_AddTowerRequest'_unknownFields x__)+ (Control.DeepSeq.deepseq+ (_AddTowerRequest'pubkey x__)+ (Control.DeepSeq.deepseq (_AddTowerRequest'address x__) ()))+{- | Fields :+ -}+data AddTowerResponse+ = AddTowerResponse'_constructor {_AddTowerResponse'_unknownFields :: !Data.ProtoLens.FieldSet}+ deriving stock (Prelude.Eq, Prelude.Ord, GHC.Generics.Generic)+instance Prelude.Show AddTowerResponse where+ showsPrec _ __x __s+ = Prelude.showChar+ '{'+ (Prelude.showString+ (Data.ProtoLens.showMessageShort __x) (Prelude.showChar '}' __s))+instance Text.PrettyPrint.GenericPretty.Out AddTowerResponse+instance Data.ProtoLens.Message AddTowerResponse where+ messageName _ = Data.Text.pack "wtclientrpc.AddTowerResponse"+ packedMessageDescriptor _+ = "\n\+ \\DLEAddTowerResponse"+ packedFileDescriptor _ = packedFileDescriptor+ fieldsByTag = let in Data.Map.fromList []+ unknownFields+ = Lens.Family2.Unchecked.lens+ _AddTowerResponse'_unknownFields+ (\ x__ y__ -> x__ {_AddTowerResponse'_unknownFields = y__})+ defMessage+ = AddTowerResponse'_constructor+ {_AddTowerResponse'_unknownFields = []}+ parseMessage+ = let+ loop ::+ AddTowerResponse+ -> Data.ProtoLens.Encoding.Bytes.Parser AddTowerResponse+ loop x+ = do end <- Data.ProtoLens.Encoding.Bytes.atEnd+ if end then+ do (let missing = []+ in+ if Prelude.null missing then+ Prelude.return ()+ else+ Prelude.fail+ ((Prelude.++)+ "Missing required fields: "+ (Prelude.show (missing :: [Prelude.String]))))+ Prelude.return+ (Lens.Family2.over+ Data.ProtoLens.unknownFields (\ !t -> Prelude.reverse t) x)+ else+ do tag <- Data.ProtoLens.Encoding.Bytes.getVarInt+ case tag of {+ wire+ -> do !y <- Data.ProtoLens.Encoding.Wire.parseTaggedValueFromWire+ wire+ loop+ (Lens.Family2.over+ Data.ProtoLens.unknownFields (\ !t -> (:) y t) x) }+ in+ (Data.ProtoLens.Encoding.Bytes.<?>)+ (do loop Data.ProtoLens.defMessage) "AddTowerResponse"+ buildMessage+ = \ _x+ -> Data.ProtoLens.Encoding.Wire.buildFieldSet+ (Lens.Family2.view Data.ProtoLens.unknownFields _x)+instance Control.DeepSeq.NFData AddTowerResponse where+ rnf+ = \ x__+ -> Control.DeepSeq.deepseq+ (_AddTowerResponse'_unknownFields x__) ()+{- | Fields :+ + * 'Proto.Wtclientrpc.Wtclient_Fields.pubkey' @:: Lens' GetTowerInfoRequest Data.ByteString.ByteString@+ * 'Proto.Wtclientrpc.Wtclient_Fields.includeSessions' @:: Lens' GetTowerInfoRequest Prelude.Bool@ -}+data GetTowerInfoRequest+ = GetTowerInfoRequest'_constructor {_GetTowerInfoRequest'pubkey :: !Data.ByteString.ByteString,+ _GetTowerInfoRequest'includeSessions :: !Prelude.Bool,+ _GetTowerInfoRequest'_unknownFields :: !Data.ProtoLens.FieldSet}+ deriving stock (Prelude.Eq, Prelude.Ord, GHC.Generics.Generic)+instance Prelude.Show GetTowerInfoRequest where+ showsPrec _ __x __s+ = Prelude.showChar+ '{'+ (Prelude.showString+ (Data.ProtoLens.showMessageShort __x) (Prelude.showChar '}' __s))+instance Text.PrettyPrint.GenericPretty.Out GetTowerInfoRequest+instance Data.ProtoLens.Field.HasField GetTowerInfoRequest "pubkey" Data.ByteString.ByteString where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _GetTowerInfoRequest'pubkey+ (\ x__ y__ -> x__ {_GetTowerInfoRequest'pubkey = y__}))+ Prelude.id+instance Data.ProtoLens.Field.HasField GetTowerInfoRequest "includeSessions" Prelude.Bool where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _GetTowerInfoRequest'includeSessions+ (\ x__ y__ -> x__ {_GetTowerInfoRequest'includeSessions = y__}))+ Prelude.id+instance Data.ProtoLens.Message GetTowerInfoRequest where+ messageName _ = Data.Text.pack "wtclientrpc.GetTowerInfoRequest"+ packedMessageDescriptor _+ = "\n\+ \\DC3GetTowerInfoRequest\DC2\SYN\n\+ \\ACKpubkey\CAN\SOH \SOH(\fR\ACKpubkey\DC2)\n\+ \\DLEinclude_sessions\CAN\STX \SOH(\bR\SIincludeSessions"+ packedFileDescriptor _ = packedFileDescriptor+ fieldsByTag+ = let+ pubkey__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "pubkey"+ (Data.ProtoLens.ScalarField Data.ProtoLens.BytesField ::+ Data.ProtoLens.FieldTypeDescriptor Data.ByteString.ByteString)+ (Data.ProtoLens.PlainField+ Data.ProtoLens.Optional (Data.ProtoLens.Field.field @"pubkey")) ::+ Data.ProtoLens.FieldDescriptor GetTowerInfoRequest+ includeSessions__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "include_sessions"+ (Data.ProtoLens.ScalarField Data.ProtoLens.BoolField ::+ Data.ProtoLens.FieldTypeDescriptor Prelude.Bool)+ (Data.ProtoLens.PlainField+ Data.ProtoLens.Optional+ (Data.ProtoLens.Field.field @"includeSessions")) ::+ Data.ProtoLens.FieldDescriptor GetTowerInfoRequest+ in+ Data.Map.fromList+ [(Data.ProtoLens.Tag 1, pubkey__field_descriptor),+ (Data.ProtoLens.Tag 2, includeSessions__field_descriptor)]+ unknownFields+ = Lens.Family2.Unchecked.lens+ _GetTowerInfoRequest'_unknownFields+ (\ x__ y__ -> x__ {_GetTowerInfoRequest'_unknownFields = y__})+ defMessage+ = GetTowerInfoRequest'_constructor+ {_GetTowerInfoRequest'pubkey = Data.ProtoLens.fieldDefault,+ _GetTowerInfoRequest'includeSessions = Data.ProtoLens.fieldDefault,+ _GetTowerInfoRequest'_unknownFields = []}+ parseMessage+ = let+ loop ::+ GetTowerInfoRequest+ -> Data.ProtoLens.Encoding.Bytes.Parser GetTowerInfoRequest+ loop x+ = do end <- Data.ProtoLens.Encoding.Bytes.atEnd+ if end then+ do (let missing = []+ in+ if Prelude.null missing then+ Prelude.return ()+ else+ Prelude.fail+ ((Prelude.++)+ "Missing required fields: "+ (Prelude.show (missing :: [Prelude.String]))))+ Prelude.return+ (Lens.Family2.over+ Data.ProtoLens.unknownFields (\ !t -> Prelude.reverse t) x)+ else+ do tag <- Data.ProtoLens.Encoding.Bytes.getVarInt+ case tag of+ 10+ -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (do len <- Data.ProtoLens.Encoding.Bytes.getVarInt+ Data.ProtoLens.Encoding.Bytes.getBytes+ (Prelude.fromIntegral len))+ "pubkey"+ loop (Lens.Family2.set (Data.ProtoLens.Field.field @"pubkey") y x)+ 16+ -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (Prelude.fmap+ ((Prelude./=) 0) Data.ProtoLens.Encoding.Bytes.getVarInt)+ "include_sessions"+ loop+ (Lens.Family2.set+ (Data.ProtoLens.Field.field @"includeSessions") y x)+ wire+ -> do !y <- Data.ProtoLens.Encoding.Wire.parseTaggedValueFromWire+ wire+ loop+ (Lens.Family2.over+ Data.ProtoLens.unknownFields (\ !t -> (:) y t) x)+ in+ (Data.ProtoLens.Encoding.Bytes.<?>)+ (do loop Data.ProtoLens.defMessage) "GetTowerInfoRequest"+ buildMessage+ = \ _x+ -> (Data.Monoid.<>)+ (let+ _v = Lens.Family2.view (Data.ProtoLens.Field.field @"pubkey") _x+ in+ if (Prelude.==) _v Data.ProtoLens.fieldDefault then+ Data.Monoid.mempty+ else+ (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 10)+ ((\ bs+ -> (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt+ (Prelude.fromIntegral (Data.ByteString.length bs)))+ (Data.ProtoLens.Encoding.Bytes.putBytes bs))+ _v))+ ((Data.Monoid.<>)+ (let+ _v+ = Lens.Family2.view+ (Data.ProtoLens.Field.field @"includeSessions") _x+ in+ if (Prelude.==) _v Data.ProtoLens.fieldDefault then+ Data.Monoid.mempty+ else+ (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 16)+ ((Prelude..)+ Data.ProtoLens.Encoding.Bytes.putVarInt (\ b -> if b then 1 else 0)+ _v))+ (Data.ProtoLens.Encoding.Wire.buildFieldSet+ (Lens.Family2.view Data.ProtoLens.unknownFields _x)))+instance Control.DeepSeq.NFData GetTowerInfoRequest where+ rnf+ = \ x__+ -> Control.DeepSeq.deepseq+ (_GetTowerInfoRequest'_unknownFields x__)+ (Control.DeepSeq.deepseq+ (_GetTowerInfoRequest'pubkey x__)+ (Control.DeepSeq.deepseq+ (_GetTowerInfoRequest'includeSessions x__) ()))+{- | Fields :+ + * 'Proto.Wtclientrpc.Wtclient_Fields.includeSessions' @:: Lens' ListTowersRequest Prelude.Bool@ -}+data ListTowersRequest+ = ListTowersRequest'_constructor {_ListTowersRequest'includeSessions :: !Prelude.Bool,+ _ListTowersRequest'_unknownFields :: !Data.ProtoLens.FieldSet}+ deriving stock (Prelude.Eq, Prelude.Ord, GHC.Generics.Generic)+instance Prelude.Show ListTowersRequest where+ showsPrec _ __x __s+ = Prelude.showChar+ '{'+ (Prelude.showString+ (Data.ProtoLens.showMessageShort __x) (Prelude.showChar '}' __s))+instance Text.PrettyPrint.GenericPretty.Out ListTowersRequest+instance Data.ProtoLens.Field.HasField ListTowersRequest "includeSessions" Prelude.Bool where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _ListTowersRequest'includeSessions+ (\ x__ y__ -> x__ {_ListTowersRequest'includeSessions = y__}))+ Prelude.id+instance Data.ProtoLens.Message ListTowersRequest where+ messageName _ = Data.Text.pack "wtclientrpc.ListTowersRequest"+ packedMessageDescriptor _+ = "\n\+ \\DC1ListTowersRequest\DC2)\n\+ \\DLEinclude_sessions\CAN\SOH \SOH(\bR\SIincludeSessions"+ packedFileDescriptor _ = packedFileDescriptor+ fieldsByTag+ = let+ includeSessions__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "include_sessions"+ (Data.ProtoLens.ScalarField Data.ProtoLens.BoolField ::+ Data.ProtoLens.FieldTypeDescriptor Prelude.Bool)+ (Data.ProtoLens.PlainField+ Data.ProtoLens.Optional+ (Data.ProtoLens.Field.field @"includeSessions")) ::+ Data.ProtoLens.FieldDescriptor ListTowersRequest+ in+ Data.Map.fromList+ [(Data.ProtoLens.Tag 1, includeSessions__field_descriptor)]+ unknownFields+ = Lens.Family2.Unchecked.lens+ _ListTowersRequest'_unknownFields+ (\ x__ y__ -> x__ {_ListTowersRequest'_unknownFields = y__})+ defMessage+ = ListTowersRequest'_constructor+ {_ListTowersRequest'includeSessions = Data.ProtoLens.fieldDefault,+ _ListTowersRequest'_unknownFields = []}+ parseMessage+ = let+ loop ::+ ListTowersRequest+ -> Data.ProtoLens.Encoding.Bytes.Parser ListTowersRequest+ loop x+ = do end <- Data.ProtoLens.Encoding.Bytes.atEnd+ if end then+ do (let missing = []+ in+ if Prelude.null missing then+ Prelude.return ()+ else+ Prelude.fail+ ((Prelude.++)+ "Missing required fields: "+ (Prelude.show (missing :: [Prelude.String]))))+ Prelude.return+ (Lens.Family2.over+ Data.ProtoLens.unknownFields (\ !t -> Prelude.reverse t) x)+ else+ do tag <- Data.ProtoLens.Encoding.Bytes.getVarInt+ case tag of+ 8 -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (Prelude.fmap+ ((Prelude./=) 0) Data.ProtoLens.Encoding.Bytes.getVarInt)+ "include_sessions"+ loop+ (Lens.Family2.set+ (Data.ProtoLens.Field.field @"includeSessions") y x)+ wire+ -> do !y <- Data.ProtoLens.Encoding.Wire.parseTaggedValueFromWire+ wire+ loop+ (Lens.Family2.over+ Data.ProtoLens.unknownFields (\ !t -> (:) y t) x)+ in+ (Data.ProtoLens.Encoding.Bytes.<?>)+ (do loop Data.ProtoLens.defMessage) "ListTowersRequest"+ buildMessage+ = \ _x+ -> (Data.Monoid.<>)+ (let+ _v+ = Lens.Family2.view+ (Data.ProtoLens.Field.field @"includeSessions") _x+ in+ if (Prelude.==) _v Data.ProtoLens.fieldDefault then+ Data.Monoid.mempty+ else+ (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 8)+ ((Prelude..)+ Data.ProtoLens.Encoding.Bytes.putVarInt (\ b -> if b then 1 else 0)+ _v))+ (Data.ProtoLens.Encoding.Wire.buildFieldSet+ (Lens.Family2.view Data.ProtoLens.unknownFields _x))+instance Control.DeepSeq.NFData ListTowersRequest where+ rnf+ = \ x__+ -> Control.DeepSeq.deepseq+ (_ListTowersRequest'_unknownFields x__)+ (Control.DeepSeq.deepseq+ (_ListTowersRequest'includeSessions x__) ())+{- | Fields :+ + * 'Proto.Wtclientrpc.Wtclient_Fields.towers' @:: Lens' ListTowersResponse [Tower]@+ * 'Proto.Wtclientrpc.Wtclient_Fields.vec'towers' @:: Lens' ListTowersResponse (Data.Vector.Vector Tower)@ -}+data ListTowersResponse+ = ListTowersResponse'_constructor {_ListTowersResponse'towers :: !(Data.Vector.Vector Tower),+ _ListTowersResponse'_unknownFields :: !Data.ProtoLens.FieldSet}+ deriving stock (Prelude.Eq, Prelude.Ord, GHC.Generics.Generic)+instance Prelude.Show ListTowersResponse where+ showsPrec _ __x __s+ = Prelude.showChar+ '{'+ (Prelude.showString+ (Data.ProtoLens.showMessageShort __x) (Prelude.showChar '}' __s))+instance Text.PrettyPrint.GenericPretty.Out ListTowersResponse+instance Data.ProtoLens.Field.HasField ListTowersResponse "towers" [Tower] where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _ListTowersResponse'towers+ (\ x__ y__ -> x__ {_ListTowersResponse'towers = y__}))+ (Lens.Family2.Unchecked.lens+ Data.Vector.Generic.toList+ (\ _ y__ -> Data.Vector.Generic.fromList y__))+instance Data.ProtoLens.Field.HasField ListTowersResponse "vec'towers" (Data.Vector.Vector Tower) where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _ListTowersResponse'towers+ (\ x__ y__ -> x__ {_ListTowersResponse'towers = y__}))+ Prelude.id+instance Data.ProtoLens.Message ListTowersResponse where+ messageName _ = Data.Text.pack "wtclientrpc.ListTowersResponse"+ packedMessageDescriptor _+ = "\n\+ \\DC2ListTowersResponse\DC2*\n\+ \\ACKtowers\CAN\SOH \ETX(\v2\DC2.wtclientrpc.TowerR\ACKtowers"+ packedFileDescriptor _ = packedFileDescriptor+ fieldsByTag+ = let+ towers__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "towers"+ (Data.ProtoLens.MessageField Data.ProtoLens.MessageType ::+ Data.ProtoLens.FieldTypeDescriptor Tower)+ (Data.ProtoLens.RepeatedField+ Data.ProtoLens.Unpacked (Data.ProtoLens.Field.field @"towers")) ::+ Data.ProtoLens.FieldDescriptor ListTowersResponse+ in+ Data.Map.fromList+ [(Data.ProtoLens.Tag 1, towers__field_descriptor)]+ unknownFields+ = Lens.Family2.Unchecked.lens+ _ListTowersResponse'_unknownFields+ (\ x__ y__ -> x__ {_ListTowersResponse'_unknownFields = y__})+ defMessage+ = ListTowersResponse'_constructor+ {_ListTowersResponse'towers = Data.Vector.Generic.empty,+ _ListTowersResponse'_unknownFields = []}+ parseMessage+ = let+ loop ::+ ListTowersResponse+ -> Data.ProtoLens.Encoding.Growing.Growing Data.Vector.Vector Data.ProtoLens.Encoding.Growing.RealWorld Tower+ -> Data.ProtoLens.Encoding.Bytes.Parser ListTowersResponse+ loop x mutable'towers+ = do end <- Data.ProtoLens.Encoding.Bytes.atEnd+ if end then+ do frozen'towers <- Data.ProtoLens.Encoding.Parser.Unsafe.unsafeLiftIO+ (Data.ProtoLens.Encoding.Growing.unsafeFreeze+ mutable'towers)+ (let missing = []+ in+ if Prelude.null missing then+ Prelude.return ()+ else+ Prelude.fail+ ((Prelude.++)+ "Missing required fields: "+ (Prelude.show (missing :: [Prelude.String]))))+ Prelude.return+ (Lens.Family2.over+ Data.ProtoLens.unknownFields (\ !t -> Prelude.reverse t)+ (Lens.Family2.set+ (Data.ProtoLens.Field.field @"vec'towers") frozen'towers x))+ else+ do tag <- Data.ProtoLens.Encoding.Bytes.getVarInt+ case tag of+ 10+ -> do !y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (do len <- Data.ProtoLens.Encoding.Bytes.getVarInt+ Data.ProtoLens.Encoding.Bytes.isolate+ (Prelude.fromIntegral len)+ Data.ProtoLens.parseMessage)+ "towers"+ v <- Data.ProtoLens.Encoding.Parser.Unsafe.unsafeLiftIO+ (Data.ProtoLens.Encoding.Growing.append mutable'towers y)+ loop x v+ wire+ -> do !y <- Data.ProtoLens.Encoding.Wire.parseTaggedValueFromWire+ wire+ loop+ (Lens.Family2.over+ Data.ProtoLens.unknownFields (\ !t -> (:) y t) x)+ mutable'towers+ in+ (Data.ProtoLens.Encoding.Bytes.<?>)+ (do mutable'towers <- Data.ProtoLens.Encoding.Parser.Unsafe.unsafeLiftIO+ Data.ProtoLens.Encoding.Growing.new+ loop Data.ProtoLens.defMessage mutable'towers)+ "ListTowersResponse"+ buildMessage+ = \ _x+ -> (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.foldMapBuilder+ (\ _v+ -> (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 10)+ ((Prelude..)+ (\ bs+ -> (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt+ (Prelude.fromIntegral (Data.ByteString.length bs)))+ (Data.ProtoLens.Encoding.Bytes.putBytes bs))+ Data.ProtoLens.encodeMessage _v))+ (Lens.Family2.view (Data.ProtoLens.Field.field @"vec'towers") _x))+ (Data.ProtoLens.Encoding.Wire.buildFieldSet+ (Lens.Family2.view Data.ProtoLens.unknownFields _x))+instance Control.DeepSeq.NFData ListTowersResponse where+ rnf+ = \ x__+ -> Control.DeepSeq.deepseq+ (_ListTowersResponse'_unknownFields x__)+ (Control.DeepSeq.deepseq (_ListTowersResponse'towers x__) ())+{- | Fields :+ + * 'Proto.Wtclientrpc.Wtclient_Fields.policyType' @:: Lens' PolicyRequest PolicyType@ -}+data PolicyRequest+ = PolicyRequest'_constructor {_PolicyRequest'policyType :: !PolicyType,+ _PolicyRequest'_unknownFields :: !Data.ProtoLens.FieldSet}+ deriving stock (Prelude.Eq, Prelude.Ord, GHC.Generics.Generic)+instance Prelude.Show PolicyRequest where+ showsPrec _ __x __s+ = Prelude.showChar+ '{'+ (Prelude.showString+ (Data.ProtoLens.showMessageShort __x) (Prelude.showChar '}' __s))+instance Text.PrettyPrint.GenericPretty.Out PolicyRequest+instance Data.ProtoLens.Field.HasField PolicyRequest "policyType" PolicyType where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _PolicyRequest'policyType+ (\ x__ y__ -> x__ {_PolicyRequest'policyType = y__}))+ Prelude.id+instance Data.ProtoLens.Message PolicyRequest where+ messageName _ = Data.Text.pack "wtclientrpc.PolicyRequest"+ packedMessageDescriptor _+ = "\n\+ \\rPolicyRequest\DC28\n\+ \\vpolicy_type\CAN\SOH \SOH(\SO2\ETB.wtclientrpc.PolicyTypeR\n\+ \policyType"+ packedFileDescriptor _ = packedFileDescriptor+ fieldsByTag+ = let+ policyType__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "policy_type"+ (Data.ProtoLens.ScalarField Data.ProtoLens.EnumField ::+ Data.ProtoLens.FieldTypeDescriptor PolicyType)+ (Data.ProtoLens.PlainField+ Data.ProtoLens.Optional+ (Data.ProtoLens.Field.field @"policyType")) ::+ Data.ProtoLens.FieldDescriptor PolicyRequest+ in+ Data.Map.fromList+ [(Data.ProtoLens.Tag 1, policyType__field_descriptor)]+ unknownFields+ = Lens.Family2.Unchecked.lens+ _PolicyRequest'_unknownFields+ (\ x__ y__ -> x__ {_PolicyRequest'_unknownFields = y__})+ defMessage+ = PolicyRequest'_constructor+ {_PolicyRequest'policyType = Data.ProtoLens.fieldDefault,+ _PolicyRequest'_unknownFields = []}+ parseMessage+ = let+ loop ::+ PolicyRequest -> Data.ProtoLens.Encoding.Bytes.Parser PolicyRequest+ loop x+ = do end <- Data.ProtoLens.Encoding.Bytes.atEnd+ if end then+ do (let missing = []+ in+ if Prelude.null missing then+ Prelude.return ()+ else+ Prelude.fail+ ((Prelude.++)+ "Missing required fields: "+ (Prelude.show (missing :: [Prelude.String]))))+ Prelude.return+ (Lens.Family2.over+ Data.ProtoLens.unknownFields (\ !t -> Prelude.reverse t) x)+ else+ do tag <- Data.ProtoLens.Encoding.Bytes.getVarInt+ case tag of+ 8 -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (Prelude.fmap+ Prelude.toEnum+ (Prelude.fmap+ Prelude.fromIntegral+ Data.ProtoLens.Encoding.Bytes.getVarInt))+ "policy_type"+ loop+ (Lens.Family2.set (Data.ProtoLens.Field.field @"policyType") y x)+ wire+ -> do !y <- Data.ProtoLens.Encoding.Wire.parseTaggedValueFromWire+ wire+ loop+ (Lens.Family2.over+ Data.ProtoLens.unknownFields (\ !t -> (:) y t) x)+ in+ (Data.ProtoLens.Encoding.Bytes.<?>)+ (do loop Data.ProtoLens.defMessage) "PolicyRequest"+ buildMessage+ = \ _x+ -> (Data.Monoid.<>)+ (let+ _v+ = Lens.Family2.view (Data.ProtoLens.Field.field @"policyType") _x+ in+ if (Prelude.==) _v Data.ProtoLens.fieldDefault then+ Data.Monoid.mempty+ else+ (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 8)+ ((Prelude..)+ ((Prelude..)+ Data.ProtoLens.Encoding.Bytes.putVarInt Prelude.fromIntegral)+ Prelude.fromEnum _v))+ (Data.ProtoLens.Encoding.Wire.buildFieldSet+ (Lens.Family2.view Data.ProtoLens.unknownFields _x))+instance Control.DeepSeq.NFData PolicyRequest where+ rnf+ = \ x__+ -> Control.DeepSeq.deepseq+ (_PolicyRequest'_unknownFields x__)+ (Control.DeepSeq.deepseq (_PolicyRequest'policyType x__) ())+{- | Fields :+ + * 'Proto.Wtclientrpc.Wtclient_Fields.maxUpdates' @:: Lens' PolicyResponse Data.Word.Word32@+ * 'Proto.Wtclientrpc.Wtclient_Fields.sweepSatPerByte' @:: Lens' PolicyResponse Data.Word.Word32@+ * 'Proto.Wtclientrpc.Wtclient_Fields.sweepSatPerVbyte' @:: Lens' PolicyResponse Data.Word.Word32@ -}+data PolicyResponse+ = PolicyResponse'_constructor {_PolicyResponse'maxUpdates :: !Data.Word.Word32,+ _PolicyResponse'sweepSatPerByte :: !Data.Word.Word32,+ _PolicyResponse'sweepSatPerVbyte :: !Data.Word.Word32,+ _PolicyResponse'_unknownFields :: !Data.ProtoLens.FieldSet}+ deriving stock (Prelude.Eq, Prelude.Ord, GHC.Generics.Generic)+instance Prelude.Show PolicyResponse where+ showsPrec _ __x __s+ = Prelude.showChar+ '{'+ (Prelude.showString+ (Data.ProtoLens.showMessageShort __x) (Prelude.showChar '}' __s))+instance Text.PrettyPrint.GenericPretty.Out PolicyResponse+instance Data.ProtoLens.Field.HasField PolicyResponse "maxUpdates" Data.Word.Word32 where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _PolicyResponse'maxUpdates+ (\ x__ y__ -> x__ {_PolicyResponse'maxUpdates = y__}))+ Prelude.id+instance Data.ProtoLens.Field.HasField PolicyResponse "sweepSatPerByte" Data.Word.Word32 where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _PolicyResponse'sweepSatPerByte+ (\ x__ y__ -> x__ {_PolicyResponse'sweepSatPerByte = y__}))+ Prelude.id+instance Data.ProtoLens.Field.HasField PolicyResponse "sweepSatPerVbyte" Data.Word.Word32 where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _PolicyResponse'sweepSatPerVbyte+ (\ x__ y__ -> x__ {_PolicyResponse'sweepSatPerVbyte = y__}))+ Prelude.id+instance Data.ProtoLens.Message PolicyResponse where+ messageName _ = Data.Text.pack "wtclientrpc.PolicyResponse"+ packedMessageDescriptor _+ = "\n\+ \\SOPolicyResponse\DC2\US\n\+ \\vmax_updates\CAN\SOH \SOH(\rR\n\+ \maxUpdates\DC2/\n\+ \\DC2sweep_sat_per_byte\CAN\STX \SOH(\rR\SIsweepSatPerByteB\STX\CAN\SOH\DC2-\n\+ \\DC3sweep_sat_per_vbyte\CAN\ETX \SOH(\rR\DLEsweepSatPerVbyte"+ packedFileDescriptor _ = packedFileDescriptor+ fieldsByTag+ = let+ maxUpdates__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "max_updates"+ (Data.ProtoLens.ScalarField Data.ProtoLens.UInt32Field ::+ Data.ProtoLens.FieldTypeDescriptor Data.Word.Word32)+ (Data.ProtoLens.PlainField+ Data.ProtoLens.Optional+ (Data.ProtoLens.Field.field @"maxUpdates")) ::+ Data.ProtoLens.FieldDescriptor PolicyResponse+ sweepSatPerByte__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "sweep_sat_per_byte"+ (Data.ProtoLens.ScalarField Data.ProtoLens.UInt32Field ::+ Data.ProtoLens.FieldTypeDescriptor Data.Word.Word32)+ (Data.ProtoLens.PlainField+ Data.ProtoLens.Optional+ (Data.ProtoLens.Field.field @"sweepSatPerByte")) ::+ Data.ProtoLens.FieldDescriptor PolicyResponse+ sweepSatPerVbyte__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "sweep_sat_per_vbyte"+ (Data.ProtoLens.ScalarField Data.ProtoLens.UInt32Field ::+ Data.ProtoLens.FieldTypeDescriptor Data.Word.Word32)+ (Data.ProtoLens.PlainField+ Data.ProtoLens.Optional+ (Data.ProtoLens.Field.field @"sweepSatPerVbyte")) ::+ Data.ProtoLens.FieldDescriptor PolicyResponse+ in+ Data.Map.fromList+ [(Data.ProtoLens.Tag 1, maxUpdates__field_descriptor),+ (Data.ProtoLens.Tag 2, sweepSatPerByte__field_descriptor),+ (Data.ProtoLens.Tag 3, sweepSatPerVbyte__field_descriptor)]+ unknownFields+ = Lens.Family2.Unchecked.lens+ _PolicyResponse'_unknownFields+ (\ x__ y__ -> x__ {_PolicyResponse'_unknownFields = y__})+ defMessage+ = PolicyResponse'_constructor+ {_PolicyResponse'maxUpdates = Data.ProtoLens.fieldDefault,+ _PolicyResponse'sweepSatPerByte = Data.ProtoLens.fieldDefault,+ _PolicyResponse'sweepSatPerVbyte = Data.ProtoLens.fieldDefault,+ _PolicyResponse'_unknownFields = []}+ parseMessage+ = let+ loop ::+ PolicyResponse+ -> Data.ProtoLens.Encoding.Bytes.Parser PolicyResponse+ loop x+ = do end <- Data.ProtoLens.Encoding.Bytes.atEnd+ if end then+ do (let missing = []+ in+ if Prelude.null missing then+ Prelude.return ()+ else+ Prelude.fail+ ((Prelude.++)+ "Missing required fields: "+ (Prelude.show (missing :: [Prelude.String]))))+ Prelude.return+ (Lens.Family2.over+ Data.ProtoLens.unknownFields (\ !t -> Prelude.reverse t) x)+ else+ do tag <- Data.ProtoLens.Encoding.Bytes.getVarInt+ case tag of+ 8 -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (Prelude.fmap+ Prelude.fromIntegral+ Data.ProtoLens.Encoding.Bytes.getVarInt)+ "max_updates"+ loop+ (Lens.Family2.set (Data.ProtoLens.Field.field @"maxUpdates") y x)+ 16+ -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (Prelude.fmap+ Prelude.fromIntegral+ Data.ProtoLens.Encoding.Bytes.getVarInt)+ "sweep_sat_per_byte"+ loop+ (Lens.Family2.set+ (Data.ProtoLens.Field.field @"sweepSatPerByte") y x)+ 24+ -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (Prelude.fmap+ Prelude.fromIntegral+ Data.ProtoLens.Encoding.Bytes.getVarInt)+ "sweep_sat_per_vbyte"+ loop+ (Lens.Family2.set+ (Data.ProtoLens.Field.field @"sweepSatPerVbyte") y x)+ wire+ -> do !y <- Data.ProtoLens.Encoding.Wire.parseTaggedValueFromWire+ wire+ loop+ (Lens.Family2.over+ Data.ProtoLens.unknownFields (\ !t -> (:) y t) x)+ in+ (Data.ProtoLens.Encoding.Bytes.<?>)+ (do loop Data.ProtoLens.defMessage) "PolicyResponse"+ buildMessage+ = \ _x+ -> (Data.Monoid.<>)+ (let+ _v+ = Lens.Family2.view (Data.ProtoLens.Field.field @"maxUpdates") _x+ in+ if (Prelude.==) _v Data.ProtoLens.fieldDefault then+ Data.Monoid.mempty+ else+ (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 8)+ ((Prelude..)+ Data.ProtoLens.Encoding.Bytes.putVarInt Prelude.fromIntegral _v))+ ((Data.Monoid.<>)+ (let+ _v+ = Lens.Family2.view+ (Data.ProtoLens.Field.field @"sweepSatPerByte") _x+ in+ if (Prelude.==) _v Data.ProtoLens.fieldDefault then+ Data.Monoid.mempty+ else+ (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 16)+ ((Prelude..)+ Data.ProtoLens.Encoding.Bytes.putVarInt Prelude.fromIntegral _v))+ ((Data.Monoid.<>)+ (let+ _v+ = Lens.Family2.view+ (Data.ProtoLens.Field.field @"sweepSatPerVbyte") _x+ in+ if (Prelude.==) _v Data.ProtoLens.fieldDefault then+ Data.Monoid.mempty+ else+ (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 24)+ ((Prelude..)+ Data.ProtoLens.Encoding.Bytes.putVarInt Prelude.fromIntegral _v))+ (Data.ProtoLens.Encoding.Wire.buildFieldSet+ (Lens.Family2.view Data.ProtoLens.unknownFields _x))))+instance Control.DeepSeq.NFData PolicyResponse where+ rnf+ = \ x__+ -> Control.DeepSeq.deepseq+ (_PolicyResponse'_unknownFields x__)+ (Control.DeepSeq.deepseq+ (_PolicyResponse'maxUpdates x__)+ (Control.DeepSeq.deepseq+ (_PolicyResponse'sweepSatPerByte x__)+ (Control.DeepSeq.deepseq+ (_PolicyResponse'sweepSatPerVbyte x__) ())))+newtype PolicyType'UnrecognizedValue+ = PolicyType'UnrecognizedValue Data.Int.Int32+ deriving stock (Prelude.Eq,+ Prelude.Ord,+ Prelude.Show,+ GHC.Generics.Generic)+instance Text.PrettyPrint.GenericPretty.Out PolicyType'UnrecognizedValue+data PolicyType+ = LEGACY |+ ANCHOR |+ PolicyType'Unrecognized !PolicyType'UnrecognizedValue+ deriving stock (Prelude.Show,+ Prelude.Eq,+ Prelude.Ord,+ GHC.Generics.Generic)+instance Data.ProtoLens.MessageEnum PolicyType where+ maybeToEnum 0 = Prelude.Just LEGACY+ maybeToEnum 1 = Prelude.Just ANCHOR+ maybeToEnum k+ = Prelude.Just+ (PolicyType'Unrecognized+ (PolicyType'UnrecognizedValue (Prelude.fromIntegral k)))+ showEnum LEGACY = "LEGACY"+ showEnum ANCHOR = "ANCHOR"+ showEnum (PolicyType'Unrecognized (PolicyType'UnrecognizedValue k))+ = Prelude.show k+ readEnum k+ | (Prelude.==) k "LEGACY" = Prelude.Just LEGACY+ | (Prelude.==) k "ANCHOR" = Prelude.Just ANCHOR+ | Prelude.otherwise+ = (Prelude.>>=) (Text.Read.readMaybe k) Data.ProtoLens.maybeToEnum+instance Prelude.Bounded PolicyType where+ minBound = LEGACY+ maxBound = ANCHOR+instance Prelude.Enum PolicyType where+ toEnum k__+ = Prelude.maybe+ (Prelude.error+ ((Prelude.++)+ "toEnum: unknown value for enum PolicyType: " (Prelude.show k__)))+ Prelude.id (Data.ProtoLens.maybeToEnum k__)+ fromEnum LEGACY = 0+ fromEnum ANCHOR = 1+ fromEnum (PolicyType'Unrecognized (PolicyType'UnrecognizedValue k))+ = Prelude.fromIntegral k+ succ ANCHOR+ = Prelude.error+ "PolicyType.succ: bad argument ANCHOR. This value would be out of bounds."+ succ LEGACY = ANCHOR+ succ (PolicyType'Unrecognized _)+ = Prelude.error "PolicyType.succ: bad argument: unrecognized value"+ pred LEGACY+ = Prelude.error+ "PolicyType.pred: bad argument LEGACY. This value would be out of bounds."+ pred ANCHOR = LEGACY+ pred (PolicyType'Unrecognized _)+ = Prelude.error "PolicyType.pred: bad argument: unrecognized value"+ enumFrom = Data.ProtoLens.Message.Enum.messageEnumFrom+ enumFromTo = Data.ProtoLens.Message.Enum.messageEnumFromTo+ enumFromThen = Data.ProtoLens.Message.Enum.messageEnumFromThen+ enumFromThenTo = Data.ProtoLens.Message.Enum.messageEnumFromThenTo+instance Data.ProtoLens.FieldDefault PolicyType where+ fieldDefault = LEGACY+instance Control.DeepSeq.NFData PolicyType where+ rnf x__ = Prelude.seq x__ ()+instance Text.PrettyPrint.GenericPretty.Out PolicyType+{- | Fields :+ + * 'Proto.Wtclientrpc.Wtclient_Fields.pubkey' @:: Lens' RemoveTowerRequest Data.ByteString.ByteString@+ * 'Proto.Wtclientrpc.Wtclient_Fields.address' @:: Lens' RemoveTowerRequest Data.Text.Text@ -}+data RemoveTowerRequest+ = RemoveTowerRequest'_constructor {_RemoveTowerRequest'pubkey :: !Data.ByteString.ByteString,+ _RemoveTowerRequest'address :: !Data.Text.Text,+ _RemoveTowerRequest'_unknownFields :: !Data.ProtoLens.FieldSet}+ deriving stock (Prelude.Eq, Prelude.Ord, GHC.Generics.Generic)+instance Prelude.Show RemoveTowerRequest where+ showsPrec _ __x __s+ = Prelude.showChar+ '{'+ (Prelude.showString+ (Data.ProtoLens.showMessageShort __x) (Prelude.showChar '}' __s))+instance Text.PrettyPrint.GenericPretty.Out RemoveTowerRequest+instance Data.ProtoLens.Field.HasField RemoveTowerRequest "pubkey" Data.ByteString.ByteString where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _RemoveTowerRequest'pubkey+ (\ x__ y__ -> x__ {_RemoveTowerRequest'pubkey = y__}))+ Prelude.id+instance Data.ProtoLens.Field.HasField RemoveTowerRequest "address" Data.Text.Text where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _RemoveTowerRequest'address+ (\ x__ y__ -> x__ {_RemoveTowerRequest'address = y__}))+ Prelude.id+instance Data.ProtoLens.Message RemoveTowerRequest where+ messageName _ = Data.Text.pack "wtclientrpc.RemoveTowerRequest"+ packedMessageDescriptor _+ = "\n\+ \\DC2RemoveTowerRequest\DC2\SYN\n\+ \\ACKpubkey\CAN\SOH \SOH(\fR\ACKpubkey\DC2\CAN\n\+ \\aaddress\CAN\STX \SOH(\tR\aaddress"+ packedFileDescriptor _ = packedFileDescriptor+ fieldsByTag+ = let+ pubkey__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "pubkey"+ (Data.ProtoLens.ScalarField Data.ProtoLens.BytesField ::+ Data.ProtoLens.FieldTypeDescriptor Data.ByteString.ByteString)+ (Data.ProtoLens.PlainField+ Data.ProtoLens.Optional (Data.ProtoLens.Field.field @"pubkey")) ::+ Data.ProtoLens.FieldDescriptor RemoveTowerRequest+ address__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "address"+ (Data.ProtoLens.ScalarField Data.ProtoLens.StringField ::+ Data.ProtoLens.FieldTypeDescriptor Data.Text.Text)+ (Data.ProtoLens.PlainField+ Data.ProtoLens.Optional (Data.ProtoLens.Field.field @"address")) ::+ Data.ProtoLens.FieldDescriptor RemoveTowerRequest+ in+ Data.Map.fromList+ [(Data.ProtoLens.Tag 1, pubkey__field_descriptor),+ (Data.ProtoLens.Tag 2, address__field_descriptor)]+ unknownFields+ = Lens.Family2.Unchecked.lens+ _RemoveTowerRequest'_unknownFields+ (\ x__ y__ -> x__ {_RemoveTowerRequest'_unknownFields = y__})+ defMessage+ = RemoveTowerRequest'_constructor+ {_RemoveTowerRequest'pubkey = Data.ProtoLens.fieldDefault,+ _RemoveTowerRequest'address = Data.ProtoLens.fieldDefault,+ _RemoveTowerRequest'_unknownFields = []}+ parseMessage+ = let+ loop ::+ RemoveTowerRequest+ -> Data.ProtoLens.Encoding.Bytes.Parser RemoveTowerRequest+ loop x+ = do end <- Data.ProtoLens.Encoding.Bytes.atEnd+ if end then+ do (let missing = []+ in+ if Prelude.null missing then+ Prelude.return ()+ else+ Prelude.fail+ ((Prelude.++)+ "Missing required fields: "+ (Prelude.show (missing :: [Prelude.String]))))+ Prelude.return+ (Lens.Family2.over+ Data.ProtoLens.unknownFields (\ !t -> Prelude.reverse t) x)+ else+ do tag <- Data.ProtoLens.Encoding.Bytes.getVarInt+ case tag of+ 10+ -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (do len <- Data.ProtoLens.Encoding.Bytes.getVarInt+ Data.ProtoLens.Encoding.Bytes.getBytes+ (Prelude.fromIntegral len))+ "pubkey"+ loop (Lens.Family2.set (Data.ProtoLens.Field.field @"pubkey") y x)+ 18+ -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (do value <- do len <- Data.ProtoLens.Encoding.Bytes.getVarInt+ Data.ProtoLens.Encoding.Bytes.getBytes+ (Prelude.fromIntegral len)+ Data.ProtoLens.Encoding.Bytes.runEither+ (case Data.Text.Encoding.decodeUtf8' value of+ (Prelude.Left err)+ -> Prelude.Left (Prelude.show err)+ (Prelude.Right r) -> Prelude.Right r))+ "address"+ loop (Lens.Family2.set (Data.ProtoLens.Field.field @"address") y x)+ wire+ -> do !y <- Data.ProtoLens.Encoding.Wire.parseTaggedValueFromWire+ wire+ loop+ (Lens.Family2.over+ Data.ProtoLens.unknownFields (\ !t -> (:) y t) x)+ in+ (Data.ProtoLens.Encoding.Bytes.<?>)+ (do loop Data.ProtoLens.defMessage) "RemoveTowerRequest"+ buildMessage+ = \ _x+ -> (Data.Monoid.<>)+ (let+ _v = Lens.Family2.view (Data.ProtoLens.Field.field @"pubkey") _x+ in+ if (Prelude.==) _v Data.ProtoLens.fieldDefault then+ Data.Monoid.mempty+ else+ (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 10)+ ((\ bs+ -> (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt+ (Prelude.fromIntegral (Data.ByteString.length bs)))+ (Data.ProtoLens.Encoding.Bytes.putBytes bs))+ _v))+ ((Data.Monoid.<>)+ (let+ _v = Lens.Family2.view (Data.ProtoLens.Field.field @"address") _x+ in+ if (Prelude.==) _v Data.ProtoLens.fieldDefault then+ Data.Monoid.mempty+ else+ (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 18)+ ((Prelude..)+ (\ bs+ -> (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt+ (Prelude.fromIntegral (Data.ByteString.length bs)))+ (Data.ProtoLens.Encoding.Bytes.putBytes bs))+ Data.Text.Encoding.encodeUtf8 _v))+ (Data.ProtoLens.Encoding.Wire.buildFieldSet+ (Lens.Family2.view Data.ProtoLens.unknownFields _x)))+instance Control.DeepSeq.NFData RemoveTowerRequest where+ rnf+ = \ x__+ -> Control.DeepSeq.deepseq+ (_RemoveTowerRequest'_unknownFields x__)+ (Control.DeepSeq.deepseq+ (_RemoveTowerRequest'pubkey x__)+ (Control.DeepSeq.deepseq (_RemoveTowerRequest'address x__) ()))+{- | Fields :+ -}+data RemoveTowerResponse+ = RemoveTowerResponse'_constructor {_RemoveTowerResponse'_unknownFields :: !Data.ProtoLens.FieldSet}+ deriving stock (Prelude.Eq, Prelude.Ord, GHC.Generics.Generic)+instance Prelude.Show RemoveTowerResponse where+ showsPrec _ __x __s+ = Prelude.showChar+ '{'+ (Prelude.showString+ (Data.ProtoLens.showMessageShort __x) (Prelude.showChar '}' __s))+instance Text.PrettyPrint.GenericPretty.Out RemoveTowerResponse+instance Data.ProtoLens.Message RemoveTowerResponse where+ messageName _ = Data.Text.pack "wtclientrpc.RemoveTowerResponse"+ packedMessageDescriptor _+ = "\n\+ \\DC3RemoveTowerResponse"+ packedFileDescriptor _ = packedFileDescriptor+ fieldsByTag = let in Data.Map.fromList []+ unknownFields+ = Lens.Family2.Unchecked.lens+ _RemoveTowerResponse'_unknownFields+ (\ x__ y__ -> x__ {_RemoveTowerResponse'_unknownFields = y__})+ defMessage+ = RemoveTowerResponse'_constructor+ {_RemoveTowerResponse'_unknownFields = []}+ parseMessage+ = let+ loop ::+ RemoveTowerResponse+ -> Data.ProtoLens.Encoding.Bytes.Parser RemoveTowerResponse+ loop x+ = do end <- Data.ProtoLens.Encoding.Bytes.atEnd+ if end then+ do (let missing = []+ in+ if Prelude.null missing then+ Prelude.return ()+ else+ Prelude.fail+ ((Prelude.++)+ "Missing required fields: "+ (Prelude.show (missing :: [Prelude.String]))))+ Prelude.return+ (Lens.Family2.over+ Data.ProtoLens.unknownFields (\ !t -> Prelude.reverse t) x)+ else+ do tag <- Data.ProtoLens.Encoding.Bytes.getVarInt+ case tag of {+ wire+ -> do !y <- Data.ProtoLens.Encoding.Wire.parseTaggedValueFromWire+ wire+ loop+ (Lens.Family2.over+ Data.ProtoLens.unknownFields (\ !t -> (:) y t) x) }+ in+ (Data.ProtoLens.Encoding.Bytes.<?>)+ (do loop Data.ProtoLens.defMessage) "RemoveTowerResponse"+ buildMessage+ = \ _x+ -> Data.ProtoLens.Encoding.Wire.buildFieldSet+ (Lens.Family2.view Data.ProtoLens.unknownFields _x)+instance Control.DeepSeq.NFData RemoveTowerResponse where+ rnf+ = \ x__+ -> Control.DeepSeq.deepseq+ (_RemoveTowerResponse'_unknownFields x__) ()+{- | Fields :+ -}+data StatsRequest+ = StatsRequest'_constructor {_StatsRequest'_unknownFields :: !Data.ProtoLens.FieldSet}+ deriving stock (Prelude.Eq, Prelude.Ord, GHC.Generics.Generic)+instance Prelude.Show StatsRequest where+ showsPrec _ __x __s+ = Prelude.showChar+ '{'+ (Prelude.showString+ (Data.ProtoLens.showMessageShort __x) (Prelude.showChar '}' __s))+instance Text.PrettyPrint.GenericPretty.Out StatsRequest+instance Data.ProtoLens.Message StatsRequest where+ messageName _ = Data.Text.pack "wtclientrpc.StatsRequest"+ packedMessageDescriptor _+ = "\n\+ \\fStatsRequest"+ packedFileDescriptor _ = packedFileDescriptor+ fieldsByTag = let in Data.Map.fromList []+ unknownFields+ = Lens.Family2.Unchecked.lens+ _StatsRequest'_unknownFields+ (\ x__ y__ -> x__ {_StatsRequest'_unknownFields = y__})+ defMessage+ = StatsRequest'_constructor {_StatsRequest'_unknownFields = []}+ parseMessage+ = let+ loop ::+ StatsRequest -> Data.ProtoLens.Encoding.Bytes.Parser StatsRequest+ loop x+ = do end <- Data.ProtoLens.Encoding.Bytes.atEnd+ if end then+ do (let missing = []+ in+ if Prelude.null missing then+ Prelude.return ()+ else+ Prelude.fail+ ((Prelude.++)+ "Missing required fields: "+ (Prelude.show (missing :: [Prelude.String]))))+ Prelude.return+ (Lens.Family2.over+ Data.ProtoLens.unknownFields (\ !t -> Prelude.reverse t) x)+ else+ do tag <- Data.ProtoLens.Encoding.Bytes.getVarInt+ case tag of {+ wire+ -> do !y <- Data.ProtoLens.Encoding.Wire.parseTaggedValueFromWire+ wire+ loop+ (Lens.Family2.over+ Data.ProtoLens.unknownFields (\ !t -> (:) y t) x) }+ in+ (Data.ProtoLens.Encoding.Bytes.<?>)+ (do loop Data.ProtoLens.defMessage) "StatsRequest"+ buildMessage+ = \ _x+ -> Data.ProtoLens.Encoding.Wire.buildFieldSet+ (Lens.Family2.view Data.ProtoLens.unknownFields _x)+instance Control.DeepSeq.NFData StatsRequest where+ rnf+ = \ x__+ -> Control.DeepSeq.deepseq (_StatsRequest'_unknownFields x__) ()+{- | Fields :+ + * 'Proto.Wtclientrpc.Wtclient_Fields.numBackups' @:: Lens' StatsResponse Data.Word.Word32@+ * 'Proto.Wtclientrpc.Wtclient_Fields.numPendingBackups' @:: Lens' StatsResponse Data.Word.Word32@+ * 'Proto.Wtclientrpc.Wtclient_Fields.numFailedBackups' @:: Lens' StatsResponse Data.Word.Word32@+ * 'Proto.Wtclientrpc.Wtclient_Fields.numSessionsAcquired' @:: Lens' StatsResponse Data.Word.Word32@+ * 'Proto.Wtclientrpc.Wtclient_Fields.numSessionsExhausted' @:: Lens' StatsResponse Data.Word.Word32@ -}+data StatsResponse+ = StatsResponse'_constructor {_StatsResponse'numBackups :: !Data.Word.Word32,+ _StatsResponse'numPendingBackups :: !Data.Word.Word32,+ _StatsResponse'numFailedBackups :: !Data.Word.Word32,+ _StatsResponse'numSessionsAcquired :: !Data.Word.Word32,+ _StatsResponse'numSessionsExhausted :: !Data.Word.Word32,+ _StatsResponse'_unknownFields :: !Data.ProtoLens.FieldSet}+ deriving stock (Prelude.Eq, Prelude.Ord, GHC.Generics.Generic)+instance Prelude.Show StatsResponse where+ showsPrec _ __x __s+ = Prelude.showChar+ '{'+ (Prelude.showString+ (Data.ProtoLens.showMessageShort __x) (Prelude.showChar '}' __s))+instance Text.PrettyPrint.GenericPretty.Out StatsResponse+instance Data.ProtoLens.Field.HasField StatsResponse "numBackups" Data.Word.Word32 where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _StatsResponse'numBackups+ (\ x__ y__ -> x__ {_StatsResponse'numBackups = y__}))+ Prelude.id+instance Data.ProtoLens.Field.HasField StatsResponse "numPendingBackups" Data.Word.Word32 where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _StatsResponse'numPendingBackups+ (\ x__ y__ -> x__ {_StatsResponse'numPendingBackups = y__}))+ Prelude.id+instance Data.ProtoLens.Field.HasField StatsResponse "numFailedBackups" Data.Word.Word32 where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _StatsResponse'numFailedBackups+ (\ x__ y__ -> x__ {_StatsResponse'numFailedBackups = y__}))+ Prelude.id+instance Data.ProtoLens.Field.HasField StatsResponse "numSessionsAcquired" Data.Word.Word32 where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _StatsResponse'numSessionsAcquired+ (\ x__ y__ -> x__ {_StatsResponse'numSessionsAcquired = y__}))+ Prelude.id+instance Data.ProtoLens.Field.HasField StatsResponse "numSessionsExhausted" Data.Word.Word32 where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _StatsResponse'numSessionsExhausted+ (\ x__ y__ -> x__ {_StatsResponse'numSessionsExhausted = y__}))+ Prelude.id+instance Data.ProtoLens.Message StatsResponse where+ messageName _ = Data.Text.pack "wtclientrpc.StatsResponse"+ packedMessageDescriptor _+ = "\n\+ \\rStatsResponse\DC2\US\n\+ \\vnum_backups\CAN\SOH \SOH(\rR\n\+ \numBackups\DC2.\n\+ \\DC3num_pending_backups\CAN\STX \SOH(\rR\DC1numPendingBackups\DC2,\n\+ \\DC2num_failed_backups\CAN\ETX \SOH(\rR\DLEnumFailedBackups\DC22\n\+ \\NAKnum_sessions_acquired\CAN\EOT \SOH(\rR\DC3numSessionsAcquired\DC24\n\+ \\SYNnum_sessions_exhausted\CAN\ENQ \SOH(\rR\DC4numSessionsExhausted"+ packedFileDescriptor _ = packedFileDescriptor+ fieldsByTag+ = let+ numBackups__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "num_backups"+ (Data.ProtoLens.ScalarField Data.ProtoLens.UInt32Field ::+ Data.ProtoLens.FieldTypeDescriptor Data.Word.Word32)+ (Data.ProtoLens.PlainField+ Data.ProtoLens.Optional+ (Data.ProtoLens.Field.field @"numBackups")) ::+ Data.ProtoLens.FieldDescriptor StatsResponse+ numPendingBackups__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "num_pending_backups"+ (Data.ProtoLens.ScalarField Data.ProtoLens.UInt32Field ::+ Data.ProtoLens.FieldTypeDescriptor Data.Word.Word32)+ (Data.ProtoLens.PlainField+ Data.ProtoLens.Optional+ (Data.ProtoLens.Field.field @"numPendingBackups")) ::+ Data.ProtoLens.FieldDescriptor StatsResponse+ numFailedBackups__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "num_failed_backups"+ (Data.ProtoLens.ScalarField Data.ProtoLens.UInt32Field ::+ Data.ProtoLens.FieldTypeDescriptor Data.Word.Word32)+ (Data.ProtoLens.PlainField+ Data.ProtoLens.Optional+ (Data.ProtoLens.Field.field @"numFailedBackups")) ::+ Data.ProtoLens.FieldDescriptor StatsResponse+ numSessionsAcquired__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "num_sessions_acquired"+ (Data.ProtoLens.ScalarField Data.ProtoLens.UInt32Field ::+ Data.ProtoLens.FieldTypeDescriptor Data.Word.Word32)+ (Data.ProtoLens.PlainField+ Data.ProtoLens.Optional+ (Data.ProtoLens.Field.field @"numSessionsAcquired")) ::+ Data.ProtoLens.FieldDescriptor StatsResponse+ numSessionsExhausted__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "num_sessions_exhausted"+ (Data.ProtoLens.ScalarField Data.ProtoLens.UInt32Field ::+ Data.ProtoLens.FieldTypeDescriptor Data.Word.Word32)+ (Data.ProtoLens.PlainField+ Data.ProtoLens.Optional+ (Data.ProtoLens.Field.field @"numSessionsExhausted")) ::+ Data.ProtoLens.FieldDescriptor StatsResponse+ in+ Data.Map.fromList+ [(Data.ProtoLens.Tag 1, numBackups__field_descriptor),+ (Data.ProtoLens.Tag 2, numPendingBackups__field_descriptor),+ (Data.ProtoLens.Tag 3, numFailedBackups__field_descriptor),+ (Data.ProtoLens.Tag 4, numSessionsAcquired__field_descriptor),+ (Data.ProtoLens.Tag 5, numSessionsExhausted__field_descriptor)]+ unknownFields+ = Lens.Family2.Unchecked.lens+ _StatsResponse'_unknownFields+ (\ x__ y__ -> x__ {_StatsResponse'_unknownFields = y__})+ defMessage+ = StatsResponse'_constructor+ {_StatsResponse'numBackups = Data.ProtoLens.fieldDefault,+ _StatsResponse'numPendingBackups = Data.ProtoLens.fieldDefault,+ _StatsResponse'numFailedBackups = Data.ProtoLens.fieldDefault,+ _StatsResponse'numSessionsAcquired = Data.ProtoLens.fieldDefault,+ _StatsResponse'numSessionsExhausted = Data.ProtoLens.fieldDefault,+ _StatsResponse'_unknownFields = []}+ parseMessage+ = let+ loop ::+ StatsResponse -> Data.ProtoLens.Encoding.Bytes.Parser StatsResponse+ loop x+ = do end <- Data.ProtoLens.Encoding.Bytes.atEnd+ if end then+ do (let missing = []+ in+ if Prelude.null missing then+ Prelude.return ()+ else+ Prelude.fail+ ((Prelude.++)+ "Missing required fields: "+ (Prelude.show (missing :: [Prelude.String]))))+ Prelude.return+ (Lens.Family2.over+ Data.ProtoLens.unknownFields (\ !t -> Prelude.reverse t) x)+ else+ do tag <- Data.ProtoLens.Encoding.Bytes.getVarInt+ case tag of+ 8 -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (Prelude.fmap+ Prelude.fromIntegral+ Data.ProtoLens.Encoding.Bytes.getVarInt)+ "num_backups"+ loop+ (Lens.Family2.set (Data.ProtoLens.Field.field @"numBackups") y x)+ 16+ -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (Prelude.fmap+ Prelude.fromIntegral+ Data.ProtoLens.Encoding.Bytes.getVarInt)+ "num_pending_backups"+ loop+ (Lens.Family2.set+ (Data.ProtoLens.Field.field @"numPendingBackups") y x)+ 24+ -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (Prelude.fmap+ Prelude.fromIntegral+ Data.ProtoLens.Encoding.Bytes.getVarInt)+ "num_failed_backups"+ loop+ (Lens.Family2.set+ (Data.ProtoLens.Field.field @"numFailedBackups") y x)+ 32+ -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (Prelude.fmap+ Prelude.fromIntegral+ Data.ProtoLens.Encoding.Bytes.getVarInt)+ "num_sessions_acquired"+ loop+ (Lens.Family2.set+ (Data.ProtoLens.Field.field @"numSessionsAcquired") y x)+ 40+ -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (Prelude.fmap+ Prelude.fromIntegral+ Data.ProtoLens.Encoding.Bytes.getVarInt)+ "num_sessions_exhausted"+ loop+ (Lens.Family2.set+ (Data.ProtoLens.Field.field @"numSessionsExhausted") y x)+ wire+ -> do !y <- Data.ProtoLens.Encoding.Wire.parseTaggedValueFromWire+ wire+ loop+ (Lens.Family2.over+ Data.ProtoLens.unknownFields (\ !t -> (:) y t) x)+ in+ (Data.ProtoLens.Encoding.Bytes.<?>)+ (do loop Data.ProtoLens.defMessage) "StatsResponse"+ buildMessage+ = \ _x+ -> (Data.Monoid.<>)+ (let+ _v+ = Lens.Family2.view (Data.ProtoLens.Field.field @"numBackups") _x+ in+ if (Prelude.==) _v Data.ProtoLens.fieldDefault then+ Data.Monoid.mempty+ else+ (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 8)+ ((Prelude..)+ Data.ProtoLens.Encoding.Bytes.putVarInt Prelude.fromIntegral _v))+ ((Data.Monoid.<>)+ (let+ _v+ = Lens.Family2.view+ (Data.ProtoLens.Field.field @"numPendingBackups") _x+ in+ if (Prelude.==) _v Data.ProtoLens.fieldDefault then+ Data.Monoid.mempty+ else+ (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 16)+ ((Prelude..)+ Data.ProtoLens.Encoding.Bytes.putVarInt Prelude.fromIntegral _v))+ ((Data.Monoid.<>)+ (let+ _v+ = Lens.Family2.view+ (Data.ProtoLens.Field.field @"numFailedBackups") _x+ in+ if (Prelude.==) _v Data.ProtoLens.fieldDefault then+ Data.Monoid.mempty+ else+ (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 24)+ ((Prelude..)+ Data.ProtoLens.Encoding.Bytes.putVarInt Prelude.fromIntegral _v))+ ((Data.Monoid.<>)+ (let+ _v+ = Lens.Family2.view+ (Data.ProtoLens.Field.field @"numSessionsAcquired") _x+ in+ if (Prelude.==) _v Data.ProtoLens.fieldDefault then+ Data.Monoid.mempty+ else+ (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 32)+ ((Prelude..)+ Data.ProtoLens.Encoding.Bytes.putVarInt Prelude.fromIntegral _v))+ ((Data.Monoid.<>)+ (let+ _v+ = Lens.Family2.view+ (Data.ProtoLens.Field.field @"numSessionsExhausted") _x+ in+ if (Prelude.==) _v Data.ProtoLens.fieldDefault then+ Data.Monoid.mempty+ else+ (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 40)+ ((Prelude..)+ Data.ProtoLens.Encoding.Bytes.putVarInt Prelude.fromIntegral+ _v))+ (Data.ProtoLens.Encoding.Wire.buildFieldSet+ (Lens.Family2.view Data.ProtoLens.unknownFields _x))))))+instance Control.DeepSeq.NFData StatsResponse where+ rnf+ = \ x__+ -> Control.DeepSeq.deepseq+ (_StatsResponse'_unknownFields x__)+ (Control.DeepSeq.deepseq+ (_StatsResponse'numBackups x__)+ (Control.DeepSeq.deepseq+ (_StatsResponse'numPendingBackups x__)+ (Control.DeepSeq.deepseq+ (_StatsResponse'numFailedBackups x__)+ (Control.DeepSeq.deepseq+ (_StatsResponse'numSessionsAcquired x__)+ (Control.DeepSeq.deepseq+ (_StatsResponse'numSessionsExhausted x__) ())))))+{- | Fields :+ + * 'Proto.Wtclientrpc.Wtclient_Fields.pubkey' @:: Lens' Tower Data.ByteString.ByteString@+ * 'Proto.Wtclientrpc.Wtclient_Fields.addresses' @:: Lens' Tower [Data.Text.Text]@+ * 'Proto.Wtclientrpc.Wtclient_Fields.vec'addresses' @:: Lens' Tower (Data.Vector.Vector Data.Text.Text)@+ * 'Proto.Wtclientrpc.Wtclient_Fields.activeSessionCandidate' @:: Lens' Tower Prelude.Bool@+ * 'Proto.Wtclientrpc.Wtclient_Fields.numSessions' @:: Lens' Tower Data.Word.Word32@+ * 'Proto.Wtclientrpc.Wtclient_Fields.sessions' @:: Lens' Tower [TowerSession]@+ * 'Proto.Wtclientrpc.Wtclient_Fields.vec'sessions' @:: Lens' Tower (Data.Vector.Vector TowerSession)@ -}+data Tower+ = Tower'_constructor {_Tower'pubkey :: !Data.ByteString.ByteString,+ _Tower'addresses :: !(Data.Vector.Vector Data.Text.Text),+ _Tower'activeSessionCandidate :: !Prelude.Bool,+ _Tower'numSessions :: !Data.Word.Word32,+ _Tower'sessions :: !(Data.Vector.Vector TowerSession),+ _Tower'_unknownFields :: !Data.ProtoLens.FieldSet}+ deriving stock (Prelude.Eq, Prelude.Ord, GHC.Generics.Generic)+instance Prelude.Show Tower where+ showsPrec _ __x __s+ = Prelude.showChar+ '{'+ (Prelude.showString+ (Data.ProtoLens.showMessageShort __x) (Prelude.showChar '}' __s))+instance Text.PrettyPrint.GenericPretty.Out Tower+instance Data.ProtoLens.Field.HasField Tower "pubkey" Data.ByteString.ByteString where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _Tower'pubkey (\ x__ y__ -> x__ {_Tower'pubkey = y__}))+ Prelude.id+instance Data.ProtoLens.Field.HasField Tower "addresses" [Data.Text.Text] where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _Tower'addresses (\ x__ y__ -> x__ {_Tower'addresses = y__}))+ (Lens.Family2.Unchecked.lens+ Data.Vector.Generic.toList+ (\ _ y__ -> Data.Vector.Generic.fromList y__))+instance Data.ProtoLens.Field.HasField Tower "vec'addresses" (Data.Vector.Vector Data.Text.Text) where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _Tower'addresses (\ x__ y__ -> x__ {_Tower'addresses = y__}))+ Prelude.id+instance Data.ProtoLens.Field.HasField Tower "activeSessionCandidate" Prelude.Bool where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _Tower'activeSessionCandidate+ (\ x__ y__ -> x__ {_Tower'activeSessionCandidate = y__}))+ Prelude.id+instance Data.ProtoLens.Field.HasField Tower "numSessions" Data.Word.Word32 where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _Tower'numSessions (\ x__ y__ -> x__ {_Tower'numSessions = y__}))+ Prelude.id+instance Data.ProtoLens.Field.HasField Tower "sessions" [TowerSession] where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _Tower'sessions (\ x__ y__ -> x__ {_Tower'sessions = y__}))+ (Lens.Family2.Unchecked.lens+ Data.Vector.Generic.toList+ (\ _ y__ -> Data.Vector.Generic.fromList y__))+instance Data.ProtoLens.Field.HasField Tower "vec'sessions" (Data.Vector.Vector TowerSession) where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _Tower'sessions (\ x__ y__ -> x__ {_Tower'sessions = y__}))+ Prelude.id+instance Data.ProtoLens.Message Tower where+ messageName _ = Data.Text.pack "wtclientrpc.Tower"+ packedMessageDescriptor _+ = "\n\+ \\ENQTower\DC2\SYN\n\+ \\ACKpubkey\CAN\SOH \SOH(\fR\ACKpubkey\DC2\FS\n\+ \\taddresses\CAN\STX \ETX(\tR\taddresses\DC28\n\+ \\CANactive_session_candidate\CAN\ETX \SOH(\bR\SYNactiveSessionCandidate\DC2!\n\+ \\fnum_sessions\CAN\EOT \SOH(\rR\vnumSessions\DC25\n\+ \\bsessions\CAN\ENQ \ETX(\v2\EM.wtclientrpc.TowerSessionR\bsessions"+ packedFileDescriptor _ = packedFileDescriptor+ fieldsByTag+ = let+ pubkey__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "pubkey"+ (Data.ProtoLens.ScalarField Data.ProtoLens.BytesField ::+ Data.ProtoLens.FieldTypeDescriptor Data.ByteString.ByteString)+ (Data.ProtoLens.PlainField+ Data.ProtoLens.Optional (Data.ProtoLens.Field.field @"pubkey")) ::+ Data.ProtoLens.FieldDescriptor Tower+ addresses__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "addresses"+ (Data.ProtoLens.ScalarField Data.ProtoLens.StringField ::+ Data.ProtoLens.FieldTypeDescriptor Data.Text.Text)+ (Data.ProtoLens.RepeatedField+ Data.ProtoLens.Unpacked+ (Data.ProtoLens.Field.field @"addresses")) ::+ Data.ProtoLens.FieldDescriptor Tower+ activeSessionCandidate__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "active_session_candidate"+ (Data.ProtoLens.ScalarField Data.ProtoLens.BoolField ::+ Data.ProtoLens.FieldTypeDescriptor Prelude.Bool)+ (Data.ProtoLens.PlainField+ Data.ProtoLens.Optional+ (Data.ProtoLens.Field.field @"activeSessionCandidate")) ::+ Data.ProtoLens.FieldDescriptor Tower+ numSessions__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "num_sessions"+ (Data.ProtoLens.ScalarField Data.ProtoLens.UInt32Field ::+ Data.ProtoLens.FieldTypeDescriptor Data.Word.Word32)+ (Data.ProtoLens.PlainField+ Data.ProtoLens.Optional+ (Data.ProtoLens.Field.field @"numSessions")) ::+ Data.ProtoLens.FieldDescriptor Tower+ sessions__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "sessions"+ (Data.ProtoLens.MessageField Data.ProtoLens.MessageType ::+ Data.ProtoLens.FieldTypeDescriptor TowerSession)+ (Data.ProtoLens.RepeatedField+ Data.ProtoLens.Unpacked+ (Data.ProtoLens.Field.field @"sessions")) ::+ Data.ProtoLens.FieldDescriptor Tower+ in+ Data.Map.fromList+ [(Data.ProtoLens.Tag 1, pubkey__field_descriptor),+ (Data.ProtoLens.Tag 2, addresses__field_descriptor),+ (Data.ProtoLens.Tag 3, activeSessionCandidate__field_descriptor),+ (Data.ProtoLens.Tag 4, numSessions__field_descriptor),+ (Data.ProtoLens.Tag 5, sessions__field_descriptor)]+ unknownFields+ = Lens.Family2.Unchecked.lens+ _Tower'_unknownFields+ (\ x__ y__ -> x__ {_Tower'_unknownFields = y__})+ defMessage+ = Tower'_constructor+ {_Tower'pubkey = Data.ProtoLens.fieldDefault,+ _Tower'addresses = Data.Vector.Generic.empty,+ _Tower'activeSessionCandidate = Data.ProtoLens.fieldDefault,+ _Tower'numSessions = Data.ProtoLens.fieldDefault,+ _Tower'sessions = Data.Vector.Generic.empty,+ _Tower'_unknownFields = []}+ parseMessage+ = let+ loop ::+ Tower+ -> Data.ProtoLens.Encoding.Growing.Growing Data.Vector.Vector Data.ProtoLens.Encoding.Growing.RealWorld Data.Text.Text+ -> Data.ProtoLens.Encoding.Growing.Growing Data.Vector.Vector Data.ProtoLens.Encoding.Growing.RealWorld TowerSession+ -> Data.ProtoLens.Encoding.Bytes.Parser Tower+ loop x mutable'addresses mutable'sessions+ = do end <- Data.ProtoLens.Encoding.Bytes.atEnd+ if end then+ do frozen'addresses <- Data.ProtoLens.Encoding.Parser.Unsafe.unsafeLiftIO+ (Data.ProtoLens.Encoding.Growing.unsafeFreeze+ mutable'addresses)+ frozen'sessions <- Data.ProtoLens.Encoding.Parser.Unsafe.unsafeLiftIO+ (Data.ProtoLens.Encoding.Growing.unsafeFreeze+ mutable'sessions)+ (let missing = []+ in+ if Prelude.null missing then+ Prelude.return ()+ else+ Prelude.fail+ ((Prelude.++)+ "Missing required fields: "+ (Prelude.show (missing :: [Prelude.String]))))+ Prelude.return+ (Lens.Family2.over+ Data.ProtoLens.unknownFields (\ !t -> Prelude.reverse t)+ (Lens.Family2.set+ (Data.ProtoLens.Field.field @"vec'addresses") frozen'addresses+ (Lens.Family2.set+ (Data.ProtoLens.Field.field @"vec'sessions") frozen'sessions x)))+ else+ do tag <- Data.ProtoLens.Encoding.Bytes.getVarInt+ case tag of+ 10+ -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (do len <- Data.ProtoLens.Encoding.Bytes.getVarInt+ Data.ProtoLens.Encoding.Bytes.getBytes+ (Prelude.fromIntegral len))+ "pubkey"+ loop+ (Lens.Family2.set (Data.ProtoLens.Field.field @"pubkey") y x)+ mutable'addresses mutable'sessions+ 18+ -> do !y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (do value <- do len <- Data.ProtoLens.Encoding.Bytes.getVarInt+ Data.ProtoLens.Encoding.Bytes.getBytes+ (Prelude.fromIntegral len)+ Data.ProtoLens.Encoding.Bytes.runEither+ (case Data.Text.Encoding.decodeUtf8' value of+ (Prelude.Left err)+ -> Prelude.Left (Prelude.show err)+ (Prelude.Right r) -> Prelude.Right r))+ "addresses"+ v <- Data.ProtoLens.Encoding.Parser.Unsafe.unsafeLiftIO+ (Data.ProtoLens.Encoding.Growing.append mutable'addresses y)+ loop x v mutable'sessions+ 24+ -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (Prelude.fmap+ ((Prelude./=) 0) Data.ProtoLens.Encoding.Bytes.getVarInt)+ "active_session_candidate"+ loop+ (Lens.Family2.set+ (Data.ProtoLens.Field.field @"activeSessionCandidate") y x)+ mutable'addresses mutable'sessions+ 32+ -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (Prelude.fmap+ Prelude.fromIntegral+ Data.ProtoLens.Encoding.Bytes.getVarInt)+ "num_sessions"+ loop+ (Lens.Family2.set (Data.ProtoLens.Field.field @"numSessions") y x)+ mutable'addresses mutable'sessions+ 42+ -> do !y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (do len <- Data.ProtoLens.Encoding.Bytes.getVarInt+ Data.ProtoLens.Encoding.Bytes.isolate+ (Prelude.fromIntegral len)+ Data.ProtoLens.parseMessage)+ "sessions"+ v <- Data.ProtoLens.Encoding.Parser.Unsafe.unsafeLiftIO+ (Data.ProtoLens.Encoding.Growing.append mutable'sessions y)+ loop x mutable'addresses v+ wire+ -> do !y <- Data.ProtoLens.Encoding.Wire.parseTaggedValueFromWire+ wire+ loop+ (Lens.Family2.over+ Data.ProtoLens.unknownFields (\ !t -> (:) y t) x)+ mutable'addresses mutable'sessions+ in+ (Data.ProtoLens.Encoding.Bytes.<?>)+ (do mutable'addresses <- Data.ProtoLens.Encoding.Parser.Unsafe.unsafeLiftIO+ Data.ProtoLens.Encoding.Growing.new+ mutable'sessions <- Data.ProtoLens.Encoding.Parser.Unsafe.unsafeLiftIO+ Data.ProtoLens.Encoding.Growing.new+ loop Data.ProtoLens.defMessage mutable'addresses mutable'sessions)+ "Tower"+ buildMessage+ = \ _x+ -> (Data.Monoid.<>)+ (let+ _v = Lens.Family2.view (Data.ProtoLens.Field.field @"pubkey") _x+ in+ if (Prelude.==) _v Data.ProtoLens.fieldDefault then+ Data.Monoid.mempty+ else+ (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 10)+ ((\ bs+ -> (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt+ (Prelude.fromIntegral (Data.ByteString.length bs)))+ (Data.ProtoLens.Encoding.Bytes.putBytes bs))+ _v))+ ((Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.foldMapBuilder+ (\ _v+ -> (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 18)+ ((Prelude..)+ (\ bs+ -> (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt+ (Prelude.fromIntegral (Data.ByteString.length bs)))+ (Data.ProtoLens.Encoding.Bytes.putBytes bs))+ Data.Text.Encoding.encodeUtf8 _v))+ (Lens.Family2.view+ (Data.ProtoLens.Field.field @"vec'addresses") _x))+ ((Data.Monoid.<>)+ (let+ _v+ = Lens.Family2.view+ (Data.ProtoLens.Field.field @"activeSessionCandidate") _x+ in+ if (Prelude.==) _v Data.ProtoLens.fieldDefault then+ Data.Monoid.mempty+ else+ (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 24)+ ((Prelude..)+ Data.ProtoLens.Encoding.Bytes.putVarInt (\ b -> if b then 1 else 0)+ _v))+ ((Data.Monoid.<>)+ (let+ _v+ = Lens.Family2.view (Data.ProtoLens.Field.field @"numSessions") _x+ in+ if (Prelude.==) _v Data.ProtoLens.fieldDefault then+ Data.Monoid.mempty+ else+ (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 32)+ ((Prelude..)+ Data.ProtoLens.Encoding.Bytes.putVarInt Prelude.fromIntegral _v))+ ((Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.foldMapBuilder+ (\ _v+ -> (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 42)+ ((Prelude..)+ (\ bs+ -> (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt+ (Prelude.fromIntegral+ (Data.ByteString.length bs)))+ (Data.ProtoLens.Encoding.Bytes.putBytes bs))+ Data.ProtoLens.encodeMessage _v))+ (Lens.Family2.view+ (Data.ProtoLens.Field.field @"vec'sessions") _x))+ (Data.ProtoLens.Encoding.Wire.buildFieldSet+ (Lens.Family2.view Data.ProtoLens.unknownFields _x))))))+instance Control.DeepSeq.NFData Tower where+ rnf+ = \ x__+ -> Control.DeepSeq.deepseq+ (_Tower'_unknownFields x__)+ (Control.DeepSeq.deepseq+ (_Tower'pubkey x__)+ (Control.DeepSeq.deepseq+ (_Tower'addresses x__)+ (Control.DeepSeq.deepseq+ (_Tower'activeSessionCandidate x__)+ (Control.DeepSeq.deepseq+ (_Tower'numSessions x__)+ (Control.DeepSeq.deepseq (_Tower'sessions x__) ())))))+{- | Fields :+ + * 'Proto.Wtclientrpc.Wtclient_Fields.numBackups' @:: Lens' TowerSession Data.Word.Word32@+ * 'Proto.Wtclientrpc.Wtclient_Fields.numPendingBackups' @:: Lens' TowerSession Data.Word.Word32@+ * 'Proto.Wtclientrpc.Wtclient_Fields.maxBackups' @:: Lens' TowerSession Data.Word.Word32@+ * 'Proto.Wtclientrpc.Wtclient_Fields.sweepSatPerByte' @:: Lens' TowerSession Data.Word.Word32@+ * 'Proto.Wtclientrpc.Wtclient_Fields.sweepSatPerVbyte' @:: Lens' TowerSession Data.Word.Word32@ -}+data TowerSession+ = TowerSession'_constructor {_TowerSession'numBackups :: !Data.Word.Word32,+ _TowerSession'numPendingBackups :: !Data.Word.Word32,+ _TowerSession'maxBackups :: !Data.Word.Word32,+ _TowerSession'sweepSatPerByte :: !Data.Word.Word32,+ _TowerSession'sweepSatPerVbyte :: !Data.Word.Word32,+ _TowerSession'_unknownFields :: !Data.ProtoLens.FieldSet}+ deriving stock (Prelude.Eq, Prelude.Ord, GHC.Generics.Generic)+instance Prelude.Show TowerSession where+ showsPrec _ __x __s+ = Prelude.showChar+ '{'+ (Prelude.showString+ (Data.ProtoLens.showMessageShort __x) (Prelude.showChar '}' __s))+instance Text.PrettyPrint.GenericPretty.Out TowerSession+instance Data.ProtoLens.Field.HasField TowerSession "numBackups" Data.Word.Word32 where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _TowerSession'numBackups+ (\ x__ y__ -> x__ {_TowerSession'numBackups = y__}))+ Prelude.id+instance Data.ProtoLens.Field.HasField TowerSession "numPendingBackups" Data.Word.Word32 where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _TowerSession'numPendingBackups+ (\ x__ y__ -> x__ {_TowerSession'numPendingBackups = y__}))+ Prelude.id+instance Data.ProtoLens.Field.HasField TowerSession "maxBackups" Data.Word.Word32 where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _TowerSession'maxBackups+ (\ x__ y__ -> x__ {_TowerSession'maxBackups = y__}))+ Prelude.id+instance Data.ProtoLens.Field.HasField TowerSession "sweepSatPerByte" Data.Word.Word32 where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _TowerSession'sweepSatPerByte+ (\ x__ y__ -> x__ {_TowerSession'sweepSatPerByte = y__}))+ Prelude.id+instance Data.ProtoLens.Field.HasField TowerSession "sweepSatPerVbyte" Data.Word.Word32 where+ fieldOf _+ = (Prelude..)+ (Lens.Family2.Unchecked.lens+ _TowerSession'sweepSatPerVbyte+ (\ x__ y__ -> x__ {_TowerSession'sweepSatPerVbyte = y__}))+ Prelude.id+instance Data.ProtoLens.Message TowerSession where+ messageName _ = Data.Text.pack "wtclientrpc.TowerSession"+ packedMessageDescriptor _+ = "\n\+ \\fTowerSession\DC2\US\n\+ \\vnum_backups\CAN\SOH \SOH(\rR\n\+ \numBackups\DC2.\n\+ \\DC3num_pending_backups\CAN\STX \SOH(\rR\DC1numPendingBackups\DC2\US\n\+ \\vmax_backups\CAN\ETX \SOH(\rR\n\+ \maxBackups\DC2/\n\+ \\DC2sweep_sat_per_byte\CAN\EOT \SOH(\rR\SIsweepSatPerByteB\STX\CAN\SOH\DC2-\n\+ \\DC3sweep_sat_per_vbyte\CAN\ENQ \SOH(\rR\DLEsweepSatPerVbyte"+ packedFileDescriptor _ = packedFileDescriptor+ fieldsByTag+ = let+ numBackups__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "num_backups"+ (Data.ProtoLens.ScalarField Data.ProtoLens.UInt32Field ::+ Data.ProtoLens.FieldTypeDescriptor Data.Word.Word32)+ (Data.ProtoLens.PlainField+ Data.ProtoLens.Optional+ (Data.ProtoLens.Field.field @"numBackups")) ::+ Data.ProtoLens.FieldDescriptor TowerSession+ numPendingBackups__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "num_pending_backups"+ (Data.ProtoLens.ScalarField Data.ProtoLens.UInt32Field ::+ Data.ProtoLens.FieldTypeDescriptor Data.Word.Word32)+ (Data.ProtoLens.PlainField+ Data.ProtoLens.Optional+ (Data.ProtoLens.Field.field @"numPendingBackups")) ::+ Data.ProtoLens.FieldDescriptor TowerSession+ maxBackups__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "max_backups"+ (Data.ProtoLens.ScalarField Data.ProtoLens.UInt32Field ::+ Data.ProtoLens.FieldTypeDescriptor Data.Word.Word32)+ (Data.ProtoLens.PlainField+ Data.ProtoLens.Optional+ (Data.ProtoLens.Field.field @"maxBackups")) ::+ Data.ProtoLens.FieldDescriptor TowerSession+ sweepSatPerByte__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "sweep_sat_per_byte"+ (Data.ProtoLens.ScalarField Data.ProtoLens.UInt32Field ::+ Data.ProtoLens.FieldTypeDescriptor Data.Word.Word32)+ (Data.ProtoLens.PlainField+ Data.ProtoLens.Optional+ (Data.ProtoLens.Field.field @"sweepSatPerByte")) ::+ Data.ProtoLens.FieldDescriptor TowerSession+ sweepSatPerVbyte__field_descriptor+ = Data.ProtoLens.FieldDescriptor+ "sweep_sat_per_vbyte"+ (Data.ProtoLens.ScalarField Data.ProtoLens.UInt32Field ::+ Data.ProtoLens.FieldTypeDescriptor Data.Word.Word32)+ (Data.ProtoLens.PlainField+ Data.ProtoLens.Optional+ (Data.ProtoLens.Field.field @"sweepSatPerVbyte")) ::+ Data.ProtoLens.FieldDescriptor TowerSession+ in+ Data.Map.fromList+ [(Data.ProtoLens.Tag 1, numBackups__field_descriptor),+ (Data.ProtoLens.Tag 2, numPendingBackups__field_descriptor),+ (Data.ProtoLens.Tag 3, maxBackups__field_descriptor),+ (Data.ProtoLens.Tag 4, sweepSatPerByte__field_descriptor),+ (Data.ProtoLens.Tag 5, sweepSatPerVbyte__field_descriptor)]+ unknownFields+ = Lens.Family2.Unchecked.lens+ _TowerSession'_unknownFields+ (\ x__ y__ -> x__ {_TowerSession'_unknownFields = y__})+ defMessage+ = TowerSession'_constructor+ {_TowerSession'numBackups = Data.ProtoLens.fieldDefault,+ _TowerSession'numPendingBackups = Data.ProtoLens.fieldDefault,+ _TowerSession'maxBackups = Data.ProtoLens.fieldDefault,+ _TowerSession'sweepSatPerByte = Data.ProtoLens.fieldDefault,+ _TowerSession'sweepSatPerVbyte = Data.ProtoLens.fieldDefault,+ _TowerSession'_unknownFields = []}+ parseMessage+ = let+ loop ::+ TowerSession -> Data.ProtoLens.Encoding.Bytes.Parser TowerSession+ loop x+ = do end <- Data.ProtoLens.Encoding.Bytes.atEnd+ if end then+ do (let missing = []+ in+ if Prelude.null missing then+ Prelude.return ()+ else+ Prelude.fail+ ((Prelude.++)+ "Missing required fields: "+ (Prelude.show (missing :: [Prelude.String]))))+ Prelude.return+ (Lens.Family2.over+ Data.ProtoLens.unknownFields (\ !t -> Prelude.reverse t) x)+ else+ do tag <- Data.ProtoLens.Encoding.Bytes.getVarInt+ case tag of+ 8 -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (Prelude.fmap+ Prelude.fromIntegral+ Data.ProtoLens.Encoding.Bytes.getVarInt)+ "num_backups"+ loop+ (Lens.Family2.set (Data.ProtoLens.Field.field @"numBackups") y x)+ 16+ -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (Prelude.fmap+ Prelude.fromIntegral+ Data.ProtoLens.Encoding.Bytes.getVarInt)+ "num_pending_backups"+ loop+ (Lens.Family2.set+ (Data.ProtoLens.Field.field @"numPendingBackups") y x)+ 24+ -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (Prelude.fmap+ Prelude.fromIntegral+ Data.ProtoLens.Encoding.Bytes.getVarInt)+ "max_backups"+ loop+ (Lens.Family2.set (Data.ProtoLens.Field.field @"maxBackups") y x)+ 32+ -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (Prelude.fmap+ Prelude.fromIntegral+ Data.ProtoLens.Encoding.Bytes.getVarInt)+ "sweep_sat_per_byte"+ loop+ (Lens.Family2.set+ (Data.ProtoLens.Field.field @"sweepSatPerByte") y x)+ 40+ -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)+ (Prelude.fmap+ Prelude.fromIntegral+ Data.ProtoLens.Encoding.Bytes.getVarInt)+ "sweep_sat_per_vbyte"+ loop+ (Lens.Family2.set+ (Data.ProtoLens.Field.field @"sweepSatPerVbyte") y x)+ wire+ -> do !y <- Data.ProtoLens.Encoding.Wire.parseTaggedValueFromWire+ wire+ loop+ (Lens.Family2.over+ Data.ProtoLens.unknownFields (\ !t -> (:) y t) x)+ in+ (Data.ProtoLens.Encoding.Bytes.<?>)+ (do loop Data.ProtoLens.defMessage) "TowerSession"+ buildMessage+ = \ _x+ -> (Data.Monoid.<>)+ (let+ _v+ = Lens.Family2.view (Data.ProtoLens.Field.field @"numBackups") _x+ in+ if (Prelude.==) _v Data.ProtoLens.fieldDefault then+ Data.Monoid.mempty+ else+ (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 8)+ ((Prelude..)+ Data.ProtoLens.Encoding.Bytes.putVarInt Prelude.fromIntegral _v))+ ((Data.Monoid.<>)+ (let+ _v+ = Lens.Family2.view+ (Data.ProtoLens.Field.field @"numPendingBackups") _x+ in+ if (Prelude.==) _v Data.ProtoLens.fieldDefault then+ Data.Monoid.mempty+ else+ (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 16)+ ((Prelude..)+ Data.ProtoLens.Encoding.Bytes.putVarInt Prelude.fromIntegral _v))+ ((Data.Monoid.<>)+ (let+ _v+ = Lens.Family2.view (Data.ProtoLens.Field.field @"maxBackups") _x+ in+ if (Prelude.==) _v Data.ProtoLens.fieldDefault then+ Data.Monoid.mempty+ else+ (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 24)+ ((Prelude..)+ Data.ProtoLens.Encoding.Bytes.putVarInt Prelude.fromIntegral _v))+ ((Data.Monoid.<>)+ (let+ _v+ = Lens.Family2.view+ (Data.ProtoLens.Field.field @"sweepSatPerByte") _x+ in+ if (Prelude.==) _v Data.ProtoLens.fieldDefault then+ Data.Monoid.mempty+ else+ (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 32)+ ((Prelude..)+ Data.ProtoLens.Encoding.Bytes.putVarInt Prelude.fromIntegral _v))+ ((Data.Monoid.<>)+ (let+ _v+ = Lens.Family2.view+ (Data.ProtoLens.Field.field @"sweepSatPerVbyte") _x+ in+ if (Prelude.==) _v Data.ProtoLens.fieldDefault then+ Data.Monoid.mempty+ else+ (Data.Monoid.<>)+ (Data.ProtoLens.Encoding.Bytes.putVarInt 40)+ ((Prelude..)+ Data.ProtoLens.Encoding.Bytes.putVarInt Prelude.fromIntegral+ _v))+ (Data.ProtoLens.Encoding.Wire.buildFieldSet+ (Lens.Family2.view Data.ProtoLens.unknownFields _x))))))+instance Control.DeepSeq.NFData TowerSession where+ rnf+ = \ x__+ -> Control.DeepSeq.deepseq+ (_TowerSession'_unknownFields x__)+ (Control.DeepSeq.deepseq+ (_TowerSession'numBackups x__)+ (Control.DeepSeq.deepseq+ (_TowerSession'numPendingBackups x__)+ (Control.DeepSeq.deepseq+ (_TowerSession'maxBackups x__)+ (Control.DeepSeq.deepseq+ (_TowerSession'sweepSatPerByte x__)+ (Control.DeepSeq.deepseq+ (_TowerSession'sweepSatPerVbyte x__) ())))))+data WatchtowerClient = WatchtowerClient {}+instance Data.ProtoLens.Service.Types.Service WatchtowerClient where+ type ServiceName WatchtowerClient = "WatchtowerClient"+ type ServicePackage WatchtowerClient = "wtclientrpc"+ type ServiceMethods WatchtowerClient = '["addTower",+ "getTowerInfo",+ "listTowers",+ "policy",+ "removeTower",+ "stats"]+ packedServiceDescriptor _+ = "\n\+ \\DLEWatchtowerClient\DC2G\n\+ \\bAddTower\DC2\FS.wtclientrpc.AddTowerRequest\SUB\GS.wtclientrpc.AddTowerResponse\DC2P\n\+ \\vRemoveTower\DC2\US.wtclientrpc.RemoveTowerRequest\SUB .wtclientrpc.RemoveTowerResponse\DC2M\n\+ \\n\+ \ListTowers\DC2\RS.wtclientrpc.ListTowersRequest\SUB\US.wtclientrpc.ListTowersResponse\DC2D\n\+ \\fGetTowerInfo\DC2 .wtclientrpc.GetTowerInfoRequest\SUB\DC2.wtclientrpc.Tower\DC2>\n\+ \\ENQStats\DC2\EM.wtclientrpc.StatsRequest\SUB\SUB.wtclientrpc.StatsResponse\DC2A\n\+ \\ACKPolicy\DC2\SUB.wtclientrpc.PolicyRequest\SUB\ESC.wtclientrpc.PolicyResponse"+instance Data.ProtoLens.Service.Types.HasMethodImpl WatchtowerClient "addTower" where+ type MethodName WatchtowerClient "addTower" = "AddTower"+ type MethodInput WatchtowerClient "addTower" = AddTowerRequest+ type MethodOutput WatchtowerClient "addTower" = AddTowerResponse+ type MethodStreamingType WatchtowerClient "addTower" = 'Data.ProtoLens.Service.Types.NonStreaming+instance Data.ProtoLens.Service.Types.HasMethodImpl WatchtowerClient "removeTower" where+ type MethodName WatchtowerClient "removeTower" = "RemoveTower"+ type MethodInput WatchtowerClient "removeTower" = RemoveTowerRequest+ type MethodOutput WatchtowerClient "removeTower" = RemoveTowerResponse+ type MethodStreamingType WatchtowerClient "removeTower" = 'Data.ProtoLens.Service.Types.NonStreaming+instance Data.ProtoLens.Service.Types.HasMethodImpl WatchtowerClient "listTowers" where+ type MethodName WatchtowerClient "listTowers" = "ListTowers"+ type MethodInput WatchtowerClient "listTowers" = ListTowersRequest+ type MethodOutput WatchtowerClient "listTowers" = ListTowersResponse+ type MethodStreamingType WatchtowerClient "listTowers" = 'Data.ProtoLens.Service.Types.NonStreaming+instance Data.ProtoLens.Service.Types.HasMethodImpl WatchtowerClient "getTowerInfo" where+ type MethodName WatchtowerClient "getTowerInfo" = "GetTowerInfo"+ type MethodInput WatchtowerClient "getTowerInfo" = GetTowerInfoRequest+ type MethodOutput WatchtowerClient "getTowerInfo" = Tower+ type MethodStreamingType WatchtowerClient "getTowerInfo" = 'Data.ProtoLens.Service.Types.NonStreaming+instance Data.ProtoLens.Service.Types.HasMethodImpl WatchtowerClient "stats" where+ type MethodName WatchtowerClient "stats" = "Stats"+ type MethodInput WatchtowerClient "stats" = StatsRequest+ type MethodOutput WatchtowerClient "stats" = StatsResponse+ type MethodStreamingType WatchtowerClient "stats" = 'Data.ProtoLens.Service.Types.NonStreaming+instance Data.ProtoLens.Service.Types.HasMethodImpl WatchtowerClient "policy" where+ type MethodName WatchtowerClient "policy" = "Policy"+ type MethodInput WatchtowerClient "policy" = PolicyRequest+ type MethodOutput WatchtowerClient "policy" = PolicyResponse+ type MethodStreamingType WatchtowerClient "policy" = 'Data.ProtoLens.Service.Types.NonStreaming+packedFileDescriptor :: Data.ByteString.ByteString+packedFileDescriptor+ = "\n\+ \\SUBwtclientrpc/wtclient.proto\DC2\vwtclientrpc\"C\n\+ \\SIAddTowerRequest\DC2\SYN\n\+ \\ACKpubkey\CAN\SOH \SOH(\fR\ACKpubkey\DC2\CAN\n\+ \\aaddress\CAN\STX \SOH(\tR\aaddress\"\DC2\n\+ \\DLEAddTowerResponse\"F\n\+ \\DC2RemoveTowerRequest\DC2\SYN\n\+ \\ACKpubkey\CAN\SOH \SOH(\fR\ACKpubkey\DC2\CAN\n\+ \\aaddress\CAN\STX \SOH(\tR\aaddress\"\NAK\n\+ \\DC3RemoveTowerResponse\"X\n\+ \\DC3GetTowerInfoRequest\DC2\SYN\n\+ \\ACKpubkey\CAN\SOH \SOH(\fR\ACKpubkey\DC2)\n\+ \\DLEinclude_sessions\CAN\STX \SOH(\bR\SIincludeSessions\"\224\SOH\n\+ \\fTowerSession\DC2\US\n\+ \\vnum_backups\CAN\SOH \SOH(\rR\n\+ \numBackups\DC2.\n\+ \\DC3num_pending_backups\CAN\STX \SOH(\rR\DC1numPendingBackups\DC2\US\n\+ \\vmax_backups\CAN\ETX \SOH(\rR\n\+ \maxBackups\DC2/\n\+ \\DC2sweep_sat_per_byte\CAN\EOT \SOH(\rR\SIsweepSatPerByteB\STX\CAN\SOH\DC2-\n\+ \\DC3sweep_sat_per_vbyte\CAN\ENQ \SOH(\rR\DLEsweepSatPerVbyte\"\209\SOH\n\+ \\ENQTower\DC2\SYN\n\+ \\ACKpubkey\CAN\SOH \SOH(\fR\ACKpubkey\DC2\FS\n\+ \\taddresses\CAN\STX \ETX(\tR\taddresses\DC28\n\+ \\CANactive_session_candidate\CAN\ETX \SOH(\bR\SYNactiveSessionCandidate\DC2!\n\+ \\fnum_sessions\CAN\EOT \SOH(\rR\vnumSessions\DC25\n\+ \\bsessions\CAN\ENQ \ETX(\v2\EM.wtclientrpc.TowerSessionR\bsessions\">\n\+ \\DC1ListTowersRequest\DC2)\n\+ \\DLEinclude_sessions\CAN\SOH \SOH(\bR\SIincludeSessions\"@\n\+ \\DC2ListTowersResponse\DC2*\n\+ \\ACKtowers\CAN\SOH \ETX(\v2\DC2.wtclientrpc.TowerR\ACKtowers\"\SO\n\+ \\fStatsRequest\"\248\SOH\n\+ \\rStatsResponse\DC2\US\n\+ \\vnum_backups\CAN\SOH \SOH(\rR\n\+ \numBackups\DC2.\n\+ \\DC3num_pending_backups\CAN\STX \SOH(\rR\DC1numPendingBackups\DC2,\n\+ \\DC2num_failed_backups\CAN\ETX \SOH(\rR\DLEnumFailedBackups\DC22\n\+ \\NAKnum_sessions_acquired\CAN\EOT \SOH(\rR\DC3numSessionsAcquired\DC24\n\+ \\SYNnum_sessions_exhausted\CAN\ENQ \SOH(\rR\DC4numSessionsExhausted\"I\n\+ \\rPolicyRequest\DC28\n\+ \\vpolicy_type\CAN\SOH \SOH(\SO2\ETB.wtclientrpc.PolicyTypeR\n\+ \policyType\"\145\SOH\n\+ \\SOPolicyResponse\DC2\US\n\+ \\vmax_updates\CAN\SOH \SOH(\rR\n\+ \maxUpdates\DC2/\n\+ \\DC2sweep_sat_per_byte\CAN\STX \SOH(\rR\SIsweepSatPerByteB\STX\CAN\SOH\DC2-\n\+ \\DC3sweep_sat_per_vbyte\CAN\ETX \SOH(\rR\DLEsweepSatPerVbyte*$\n\+ \\n\+ \PolicyType\DC2\n\+ \\n\+ \\ACKLEGACY\DLE\NUL\DC2\n\+ \\n\+ \\ACKANCHOR\DLE\SOH2\197\ETX\n\+ \\DLEWatchtowerClient\DC2G\n\+ \\bAddTower\DC2\FS.wtclientrpc.AddTowerRequest\SUB\GS.wtclientrpc.AddTowerResponse\DC2P\n\+ \\vRemoveTower\DC2\US.wtclientrpc.RemoveTowerRequest\SUB .wtclientrpc.RemoveTowerResponse\DC2M\n\+ \\n\+ \ListTowers\DC2\RS.wtclientrpc.ListTowersRequest\SUB\US.wtclientrpc.ListTowersResponse\DC2D\n\+ \\fGetTowerInfo\DC2 .wtclientrpc.GetTowerInfoRequest\SUB\DC2.wtclientrpc.Tower\DC2>\n\+ \\ENQStats\DC2\EM.wtclientrpc.StatsRequest\SUB\SUB.wtclientrpc.StatsResponse\DC2A\n\+ \\ACKPolicy\DC2\SUB.wtclientrpc.PolicyRequest\SUB\ESC.wtclientrpc.PolicyResponseB3Z1github.com/lightningnetwork/lnd/lnrpc/wtclientrpcJ\160.\n\+ \\a\DC2\ENQ\NUL\NUL\192\SOH\SOH\n\+ \\b\n\+ \\SOH\f\DC2\ETX\NUL\NUL\DC2\n\+ \\b\n\+ \\SOH\STX\DC2\ETX\STX\NUL\DC4\n\+ \\b\n\+ \\SOH\b\DC2\ETX\EOT\NULH\n\+ \\t\n\+ \\STX\b\v\DC2\ETX\EOT\NULH\n\+ \u\n\+ \\STX\ACK\NUL\DC2\EOT\b\NUL$\SOH\SUBi WatchtowerClient is a service that grants access to the watchtower client\n\+ \ functionality of the daemon.\n\+ \\n\+ \\n\+ \\n\+ \\ETX\ACK\NUL\SOH\DC2\ETX\b\b\CAN\n\+ \\251\SOH\n\+ \\EOT\ACK\NUL\STX\NUL\DC2\ETX\SI\EOT>\SUB\237\SOH\n\+ \AddTower adds a new watchtower reachable at the given address and\n\+ \considers it for new sessions. If the watchtower already exists, then\n\+ \any new addresses included will be considered when dialing it for\n\+ \session negotiations and backups.\n\+ \\n\+ \\f\n\+ \\ENQ\ACK\NUL\STX\NUL\SOH\DC2\ETX\SI\b\DLE\n\+ \\f\n\+ \\ENQ\ACK\NUL\STX\NUL\STX\DC2\ETX\SI\DC2!\n\+ \\f\n\+ \\ENQ\ACK\NUL\STX\NUL\ETX\DC2\ETX\SI,<\n\+ \\160\STX\n\+ \\EOT\ACK\NUL\STX\SOH\DC2\ETX\ETB\EOTG\SUB\146\STX\n\+ \RemoveTower removes a watchtower from being considered for future session\n\+ \negotiations and from being used for any subsequent backups until it's added\n\+ \again. If an address is provided, then this RPC only serves as a way of\n\+ \removing the address from the watchtower instead.\n\+ \\n\+ \\f\n\+ \\ENQ\ACK\NUL\STX\SOH\SOH\DC2\ETX\ETB\b\DC3\n\+ \\f\n\+ \\ENQ\ACK\NUL\STX\SOH\STX\DC2\ETX\ETB\NAK'\n\+ \\f\n\+ \\ENQ\ACK\NUL\STX\SOH\ETX\DC2\ETX\ETB2E\n\+ \U\n\+ \\EOT\ACK\NUL\STX\STX\DC2\ETX\SUB\EOTD\SUBH ListTowers returns the list of watchtowers registered with the client.\n\+ \\n\+ \\f\n\+ \\ENQ\ACK\NUL\STX\STX\SOH\DC2\ETX\SUB\b\DC2\n\+ \\f\n\+ \\ENQ\ACK\NUL\STX\STX\STX\DC2\ETX\SUB\DC4%\n\+ \\f\n\+ \\ENQ\ACK\NUL\STX\STX\ETX\DC2\ETX\SUB0B\n\+ \N\n\+ \\EOT\ACK\NUL\STX\ETX\DC2\ETX\GS\EOT;\SUBA GetTowerInfo retrieves information for a registered watchtower.\n\+ \\n\+ \\f\n\+ \\ENQ\ACK\NUL\STX\ETX\SOH\DC2\ETX\GS\b\DC4\n\+ \\f\n\+ \\ENQ\ACK\NUL\STX\ETX\STX\DC2\ETX\GS\SYN)\n\+ \\f\n\+ \\ENQ\ACK\NUL\STX\ETX\ETX\DC2\ETX\GS49\n\+ \R\n\+ \\EOT\ACK\NUL\STX\EOT\DC2\ETX \EOT5\SUBE Stats returns the in-memory statistics of the client since startup.\n\+ \\n\+ \\f\n\+ \\ENQ\ACK\NUL\STX\EOT\SOH\DC2\ETX \b\r\n\+ \\f\n\+ \\ENQ\ACK\NUL\STX\EOT\STX\DC2\ETX \SI\ESC\n\+ \\f\n\+ \\ENQ\ACK\NUL\STX\EOT\ETX\DC2\ETX &3\n\+ \P\n\+ \\EOT\ACK\NUL\STX\ENQ\DC2\ETX#\EOT8\SUBC Policy returns the active watchtower client policy configuration.\n\+ \\n\+ \\f\n\+ \\ENQ\ACK\NUL\STX\ENQ\SOH\DC2\ETX#\b\SO\n\+ \\f\n\+ \\ENQ\ACK\NUL\STX\ENQ\STX\DC2\ETX#\DLE\GS\n\+ \\f\n\+ \\ENQ\ACK\NUL\STX\ENQ\ETX\DC2\ETX#(6\n\+ \\n\+ \\n\+ \\STX\EOT\NUL\DC2\EOT&\NUL,\SOH\n\+ \\n\+ \\n\+ \\ETX\EOT\NUL\SOH\DC2\ETX&\b\ETB\n\+ \C\n\+ \\EOT\EOT\NUL\STX\NUL\DC2\ETX(\EOT\NAK\SUB6 The identifying public key of the watchtower to add.\n\+ \\n\+ \\f\n\+ \\ENQ\EOT\NUL\STX\NUL\ENQ\DC2\ETX(\EOT\t\n\+ \\f\n\+ \\ENQ\EOT\NUL\STX\NUL\SOH\DC2\ETX(\n\+ \\DLE\n\+ \\f\n\+ \\ENQ\EOT\NUL\STX\NUL\ETX\DC2\ETX(\DC3\DC4\n\+ \B\n\+ \\EOT\EOT\NUL\STX\SOH\DC2\ETX+\EOT\ETB\SUB5 A network address the watchtower is reachable over.\n\+ \\n\+ \\f\n\+ \\ENQ\EOT\NUL\STX\SOH\ENQ\DC2\ETX+\EOT\n\+ \\n\+ \\f\n\+ \\ENQ\EOT\NUL\STX\SOH\SOH\DC2\ETX+\v\DC2\n\+ \\f\n\+ \\ENQ\EOT\NUL\STX\SOH\ETX\DC2\ETX+\NAK\SYN\n\+ \\n\+ \\n\+ \\STX\EOT\SOH\DC2\EOT.\NUL/\SOH\n\+ \\n\+ \\n\+ \\ETX\EOT\SOH\SOH\DC2\ETX.\b\CAN\n\+ \\n\+ \\n\+ \\STX\EOT\STX\DC2\EOT1\NUL;\SOH\n\+ \\n\+ \\n\+ \\ETX\EOT\STX\SOH\DC2\ETX1\b\SUB\n\+ \F\n\+ \\EOT\EOT\STX\STX\NUL\DC2\ETX3\EOT\NAK\SUB9 The identifying public key of the watchtower to remove.\n\+ \\n\+ \\f\n\+ \\ENQ\EOT\STX\STX\NUL\ENQ\DC2\ETX3\EOT\t\n\+ \\f\n\+ \\ENQ\EOT\STX\STX\NUL\SOH\DC2\ETX3\n\+ \\DLE\n\+ \\f\n\+ \\ENQ\EOT\STX\STX\NUL\ETX\DC2\ETX3\DC3\DC4\n\+ \\196\SOH\n\+ \\EOT\EOT\STX\STX\SOH\DC2\ETX:\EOT\ETB\SUB\182\SOH\n\+ \If set, then the record for this address will be removed, indicating that is\n\+ \is stale. Otherwise, the watchtower will no longer be used for future\n\+ \session negotiations and backups.\n\+ \\n\+ \\f\n\+ \\ENQ\EOT\STX\STX\SOH\ENQ\DC2\ETX:\EOT\n\+ \\n\+ \\f\n\+ \\ENQ\EOT\STX\STX\SOH\SOH\DC2\ETX:\v\DC2\n\+ \\f\n\+ \\ENQ\EOT\STX\STX\SOH\ETX\DC2\ETX:\NAK\SYN\n\+ \\n\+ \\n\+ \\STX\EOT\ETX\DC2\EOT=\NUL>\SOH\n\+ \\n\+ \\n\+ \\ETX\EOT\ETX\SOH\DC2\ETX=\b\ESC\n\+ \\n\+ \\n\+ \\STX\EOT\EOT\DC2\EOT@\NULF\SOH\n\+ \\n\+ \\n\+ \\ETX\EOT\EOT\SOH\DC2\ETX@\b\ESC\n\+ \X\n\+ \\EOT\EOT\EOT\STX\NUL\DC2\ETXB\EOT\NAK\SUBK The identifying public key of the watchtower to retrieve information for.\n\+ \\n\+ \\f\n\+ \\ENQ\EOT\EOT\STX\NUL\ENQ\DC2\ETXB\EOT\t\n\+ \\f\n\+ \\ENQ\EOT\EOT\STX\NUL\SOH\DC2\ETXB\n\+ \\DLE\n\+ \\f\n\+ \\ENQ\EOT\EOT\STX\NUL\ETX\DC2\ETXB\DC3\DC4\n\+ \V\n\+ \\EOT\EOT\EOT\STX\SOH\DC2\ETXE\EOT\RS\SUBI Whether we should include sessions with the watchtower in the response.\n\+ \\n\+ \\f\n\+ \\ENQ\EOT\EOT\STX\SOH\ENQ\DC2\ETXE\EOT\b\n\+ \\f\n\+ \\ENQ\EOT\EOT\STX\SOH\SOH\DC2\ETXE\t\EM\n\+ \\f\n\+ \\ENQ\EOT\EOT\STX\SOH\ETX\DC2\ETXE\FS\GS\n\+ \\n\+ \\n\+ \\STX\EOT\ENQ\DC2\EOTH\NULd\SOH\n\+ \\n\+ \\n\+ \\ETX\EOT\ENQ\SOH\DC2\ETXH\b\DC4\n\+ \d\n\+ \\EOT\EOT\ENQ\STX\NUL\DC2\ETXM\EOT\ESC\SUBW\n\+ \The total number of successful backups that have been made to the\n\+ \watchtower session.\n\+ \\n\+ \\f\n\+ \\ENQ\EOT\ENQ\STX\NUL\ENQ\DC2\ETXM\EOT\n\+ \\n\+ \\f\n\+ \\ENQ\EOT\ENQ\STX\NUL\SOH\DC2\ETXM\v\SYN\n\+ \\f\n\+ \\ENQ\EOT\ENQ\STX\NUL\ETX\DC2\ETXM\EM\SUB\n\+ \z\n\+ \\EOT\EOT\ENQ\STX\SOH\DC2\ETXS\EOT#\SUBm\n\+ \The total number of backups in the session that are currently pending to be\n\+ \acknowledged by the watchtower.\n\+ \\n\+ \\f\n\+ \\ENQ\EOT\ENQ\STX\SOH\ENQ\DC2\ETXS\EOT\n\+ \\n\+ \\f\n\+ \\ENQ\EOT\ENQ\STX\SOH\SOH\DC2\ETXS\v\RS\n\+ \\f\n\+ \\ENQ\EOT\ENQ\STX\SOH\ETX\DC2\ETXS!\"\n\+ \O\n\+ \\EOT\EOT\ENQ\STX\STX\DC2\ETXV\EOT\ESC\SUBB The maximum number of backups allowed by the watchtower session.\n\+ \\n\+ \\f\n\+ \\ENQ\EOT\ENQ\STX\STX\ENQ\DC2\ETXV\EOT\n\+ \\n\+ \\f\n\+ \\ENQ\EOT\ENQ\STX\STX\SOH\DC2\ETXV\v\SYN\n\+ \\f\n\+ \\ENQ\EOT\ENQ\STX\STX\ETX\DC2\ETXV\EM\SUB\n\+ \\187\SOH\n\+ \\EOT\EOT\ENQ\STX\ETX\DC2\ETX]\EOT6\SUB\173\SOH\n\+ \Deprecated, use sweep_sat_per_vbyte.\n\+ \The fee rate, in satoshis per vbyte, that will be used by the watchtower for\n\+ \the justice transaction in the event of a channel breach.\n\+ \\n\+ \\f\n\+ \\ENQ\EOT\ENQ\STX\ETX\ENQ\DC2\ETX]\EOT\n\+ \\n\+ \\f\n\+ \\ENQ\EOT\ENQ\STX\ETX\SOH\DC2\ETX]\v\GS\n\+ \\f\n\+ \\ENQ\EOT\ENQ\STX\ETX\ETX\DC2\ETX] !\n\+ \\f\n\+ \\ENQ\EOT\ENQ\STX\ETX\b\DC2\ETX]\"5\n\+ \\r\n\+ \\ACK\EOT\ENQ\STX\ETX\b\ETX\DC2\ETX]#4\n\+ \\150\SOH\n\+ \\EOT\EOT\ENQ\STX\EOT\DC2\ETXc\EOT#\SUB\136\SOH\n\+ \The fee rate, in satoshis per vbyte, that will be used by the watchtower for\n\+ \the justice transaction in the event of a channel breach.\n\+ \\n\+ \\f\n\+ \\ENQ\EOT\ENQ\STX\EOT\ENQ\DC2\ETXc\EOT\n\+ \\n\+ \\f\n\+ \\ENQ\EOT\ENQ\STX\EOT\SOH\DC2\ETXc\v\RS\n\+ \\f\n\+ \\ENQ\EOT\ENQ\STX\EOT\ETX\DC2\ETXc!\"\n\+ \\n\+ \\n\+ \\STX\EOT\ACK\DC2\EOTf\NULu\SOH\n\+ \\n\+ \\n\+ \\ETX\EOT\ACK\SOH\DC2\ETXf\b\r\n\+ \<\n\+ \\EOT\EOT\ACK\STX\NUL\DC2\ETXh\EOT\NAK\SUB/ The identifying public key of the watchtower.\n\+ \\n\+ \\f\n\+ \\ENQ\EOT\ACK\STX\NUL\ENQ\DC2\ETXh\EOT\t\n\+ \\f\n\+ \\ENQ\EOT\ACK\STX\NUL\SOH\DC2\ETXh\n\+ \\DLE\n\+ \\f\n\+ \\ENQ\EOT\ACK\STX\NUL\ETX\DC2\ETXh\DC3\DC4\n\+ \F\n\+ \\EOT\EOT\ACK\STX\SOH\DC2\ETXk\EOT\"\SUB9 The list of addresses the watchtower is reachable over.\n\+ \\n\+ \\f\n\+ \\ENQ\EOT\ACK\STX\SOH\EOT\DC2\ETXk\EOT\f\n\+ \\f\n\+ \\ENQ\EOT\ACK\STX\SOH\ENQ\DC2\ETXk\r\DC3\n\+ \\f\n\+ \\ENQ\EOT\ACK\STX\SOH\SOH\DC2\ETXk\DC4\GS\n\+ \\f\n\+ \\ENQ\EOT\ACK\STX\SOH\ETX\DC2\ETXk !\n\+ \P\n\+ \\EOT\EOT\ACK\STX\STX\DC2\ETXn\EOT&\SUBC Whether the watchtower is currently a candidate for new sessions.\n\+ \\n\+ \\f\n\+ \\ENQ\EOT\ACK\STX\STX\ENQ\DC2\ETXn\EOT\b\n\+ \\f\n\+ \\ENQ\EOT\ACK\STX\STX\SOH\DC2\ETXn\t!\n\+ \\f\n\+ \\ENQ\EOT\ACK\STX\STX\ETX\DC2\ETXn$%\n\+ \T\n\+ \\EOT\EOT\ACK\STX\ETX\DC2\ETXq\EOT\FS\SUBG The number of sessions that have been negotiated with the watchtower.\n\+ \\n\+ \\f\n\+ \\ENQ\EOT\ACK\STX\ETX\ENQ\DC2\ETXq\EOT\n\+ \\n\+ \\f\n\+ \\ENQ\EOT\ACK\STX\ETX\SOH\DC2\ETXq\v\ETB\n\+ \\f\n\+ \\ENQ\EOT\ACK\STX\ETX\ETX\DC2\ETXq\SUB\ESC\n\+ \R\n\+ \\EOT\EOT\ACK\STX\EOT\DC2\ETXt\EOT'\SUBE The list of sessions that have been negotiated with the watchtower.\n\+ \\n\+ \\f\n\+ \\ENQ\EOT\ACK\STX\EOT\EOT\DC2\ETXt\EOT\f\n\+ \\f\n\+ \\ENQ\EOT\ACK\STX\EOT\ACK\DC2\ETXt\r\EM\n\+ \\f\n\+ \\ENQ\EOT\ACK\STX\EOT\SOH\DC2\ETXt\SUB\"\n\+ \\f\n\+ \\ENQ\EOT\ACK\STX\EOT\ETX\DC2\ETXt%&\n\+ \\n\+ \\n\+ \\STX\EOT\a\DC2\EOTw\NULz\SOH\n\+ \\n\+ \\n\+ \\ETX\EOT\a\SOH\DC2\ETXw\b\EM\n\+ \V\n\+ \\EOT\EOT\a\STX\NUL\DC2\ETXy\EOT\RS\SUBI Whether we should include sessions with the watchtower in the response.\n\+ \\n\+ \\f\n\+ \\ENQ\EOT\a\STX\NUL\ENQ\DC2\ETXy\EOT\b\n\+ \\f\n\+ \\ENQ\EOT\a\STX\NUL\SOH\DC2\ETXy\t\EM\n\+ \\f\n\+ \\ENQ\EOT\a\STX\NUL\ETX\DC2\ETXy\FS\GS\n\+ \\n\+ \\n\+ \\STX\EOT\b\DC2\EOT|\NUL\DEL\SOH\n\+ \\n\+ \\n\+ \\ETX\EOT\b\SOH\DC2\ETX|\b\SUB\n\+ \A\n\+ \\EOT\EOT\b\STX\NUL\DC2\ETX~\EOT\RS\SUB4 The list of watchtowers available for new backups.\n\+ \\n\+ \\f\n\+ \\ENQ\EOT\b\STX\NUL\EOT\DC2\ETX~\EOT\f\n\+ \\f\n\+ \\ENQ\EOT\b\STX\NUL\ACK\DC2\ETX~\r\DC2\n\+ \\f\n\+ \\ENQ\EOT\b\STX\NUL\SOH\DC2\ETX~\DC3\EM\n\+ \\f\n\+ \\ENQ\EOT\b\STX\NUL\ETX\DC2\ETX~\FS\GS\n\+ \\f\n\+ \\STX\EOT\t\DC2\ACK\129\SOH\NUL\130\SOH\SOH\n\+ \\v\n\+ \\ETX\EOT\t\SOH\DC2\EOT\129\SOH\b\DC4\n\+ \\f\n\+ \\STX\EOT\n\+ \\DC2\ACK\132\SOH\NUL\156\SOH\SOH\n\+ \\v\n\+ \\ETX\EOT\n\+ \\SOH\DC2\EOT\132\SOH\b\NAK\n\+ \a\n\+ \\EOT\EOT\n\+ \\STX\NUL\DC2\EOT\137\SOH\EOT\ESC\SUBS\n\+ \The total number of backups made to all active and exhausted watchtower\n\+ \sessions.\n\+ \\n\+ \\r\n\+ \\ENQ\EOT\n\+ \\STX\NUL\ENQ\DC2\EOT\137\SOH\EOT\n\+ \\n\+ \\r\n\+ \\ENQ\EOT\n\+ \\STX\NUL\SOH\DC2\EOT\137\SOH\v\SYN\n\+ \\r\n\+ \\ENQ\EOT\n\+ \\STX\NUL\ETX\DC2\EOT\137\SOH\EM\SUB\n\+ \\128\SOH\n\+ \\EOT\EOT\n\+ \\STX\SOH\DC2\EOT\143\SOH\EOT#\SUBr\n\+ \The total number of backups that are pending to be acknowledged by all\n\+ \active and exhausted watchtower sessions.\n\+ \\n\+ \\r\n\+ \\ENQ\EOT\n\+ \\STX\SOH\ENQ\DC2\EOT\143\SOH\EOT\n\+ \\n\+ \\r\n\+ \\ENQ\EOT\n\+ \\STX\SOH\SOH\DC2\EOT\143\SOH\v\RS\n\+ \\r\n\+ \\ENQ\EOT\n\+ \\STX\SOH\ETX\DC2\EOT\143\SOH!\"\n\+ \y\n\+ \\EOT\EOT\n\+ \\STX\STX\DC2\EOT\149\SOH\EOT\"\SUBk\n\+ \The total number of backups that all active and exhausted watchtower\n\+ \sessions have failed to acknowledge.\n\+ \\n\+ \\r\n\+ \\ENQ\EOT\n\+ \\STX\STX\ENQ\DC2\EOT\149\SOH\EOT\n\+ \\n\+ \\r\n\+ \\ENQ\EOT\n\+ \\STX\STX\SOH\DC2\EOT\149\SOH\v\GS\n\+ \\r\n\+ \\ENQ\EOT\n\+ \\STX\STX\ETX\DC2\EOT\149\SOH !\n\+ \E\n\+ \\EOT\EOT\n\+ \\STX\ETX\DC2\EOT\152\SOH\EOT%\SUB7 The total number of new sessions made to watchtowers.\n\+ \\n\+ \\r\n\+ \\ENQ\EOT\n\+ \\STX\ETX\ENQ\DC2\EOT\152\SOH\EOT\n\+ \\n\+ \\r\n\+ \\ENQ\EOT\n\+ \\STX\ETX\SOH\DC2\EOT\152\SOH\v \n\+ \\r\n\+ \\ENQ\EOT\n\+ \\STX\ETX\ETX\DC2\EOT\152\SOH#$\n\+ \Q\n\+ \\EOT\EOT\n\+ \\STX\EOT\DC2\EOT\155\SOH\EOT&\SUBC The total number of watchtower sessions that have been exhausted.\n\+ \\n\+ \\r\n\+ \\ENQ\EOT\n\+ \\STX\EOT\ENQ\DC2\EOT\155\SOH\EOT\n\+ \\n\+ \\r\n\+ \\ENQ\EOT\n\+ \\STX\EOT\SOH\DC2\EOT\155\SOH\v!\n\+ \\r\n\+ \\ENQ\EOT\n\+ \\STX\EOT\ETX\DC2\EOT\155\SOH$%\n\+ \\f\n\+ \\STX\ENQ\NUL\DC2\ACK\158\SOH\NUL\164\SOH\SOH\n\+ \\v\n\+ \\ETX\ENQ\NUL\SOH\DC2\EOT\158\SOH\ENQ\SI\n\+ \@\n\+ \\EOT\ENQ\NUL\STX\NUL\DC2\EOT\160\SOH\EOT\SI\SUB2 Selects the policy from the legacy tower client.\n\+ \\n\+ \\r\n\+ \\ENQ\ENQ\NUL\STX\NUL\SOH\DC2\EOT\160\SOH\EOT\n\+ \\n\+ \\r\n\+ \\ENQ\ENQ\NUL\STX\NUL\STX\DC2\EOT\160\SOH\r\SO\n\+ \@\n\+ \\EOT\ENQ\NUL\STX\SOH\DC2\EOT\163\SOH\EOT\SI\SUB2 Selects the policy from the anchor tower client.\n\+ \\n\+ \\r\n\+ \\ENQ\ENQ\NUL\STX\SOH\SOH\DC2\EOT\163\SOH\EOT\n\+ \\n\+ \\r\n\+ \\ENQ\ENQ\NUL\STX\SOH\STX\DC2\EOT\163\SOH\r\SO\n\+ \\f\n\+ \\STX\EOT\v\DC2\ACK\166\SOH\NUL\171\SOH\SOH\n\+ \\v\n\+ \\ETX\EOT\v\SOH\DC2\EOT\166\SOH\b\NAK\n\+ \R\n\+ \\EOT\EOT\v\STX\NUL\DC2\EOT\170\SOH\EOT\US\SUBD\n\+ \The client type from which to retrieve the active offering policy.\n\+ \\n\+ \\r\n\+ \\ENQ\EOT\v\STX\NUL\ACK\DC2\EOT\170\SOH\EOT\SO\n\+ \\r\n\+ \\ENQ\EOT\v\STX\NUL\SOH\DC2\EOT\170\SOH\SI\SUB\n\+ \\r\n\+ \\ENQ\EOT\v\STX\NUL\ETX\DC2\EOT\170\SOH\GS\RS\n\+ \\f\n\+ \\STX\EOT\f\DC2\ACK\173\SOH\NUL\192\SOH\SOH\n\+ \\v\n\+ \\ETX\EOT\f\SOH\DC2\EOT\173\SOH\b\SYN\n\+ \f\n\+ \\EOT\EOT\f\STX\NUL\DC2\EOT\178\SOH\EOT\ESC\SUBX\n\+ \The maximum number of updates each session we negotiate with watchtowers\n\+ \should allow.\n\+ \\n\+ \\r\n\+ \\ENQ\EOT\f\STX\NUL\ENQ\DC2\EOT\178\SOH\EOT\n\+ \\n\+ \\r\n\+ \\ENQ\EOT\f\STX\NUL\SOH\DC2\EOT\178\SOH\v\SYN\n\+ \\r\n\+ \\ENQ\EOT\f\STX\NUL\ETX\DC2\EOT\178\SOH\EM\SUB\n\+ \\181\SOH\n\+ \\EOT\EOT\f\STX\SOH\DC2\EOT\185\SOH\EOT6\SUB\166\SOH\n\+ \Deprecated, use sweep_sat_per_vbyte.\n\+ \The fee rate, in satoshis per vbyte, that will be used by watchtowers for\n\+ \justice transactions in response to channel breaches.\n\+ \\n\+ \\r\n\+ \\ENQ\EOT\f\STX\SOH\ENQ\DC2\EOT\185\SOH\EOT\n\+ \\n\+ \\r\n\+ \\ENQ\EOT\f\STX\SOH\SOH\DC2\EOT\185\SOH\v\GS\n\+ \\r\n\+ \\ENQ\EOT\f\STX\SOH\ETX\DC2\EOT\185\SOH !\n\+ \\r\n\+ \\ENQ\EOT\f\STX\SOH\b\DC2\EOT\185\SOH\"5\n\+ \\SO\n\+ \\ACK\EOT\f\STX\SOH\b\ETX\DC2\EOT\185\SOH#4\n\+ \\144\SOH\n\+ \\EOT\EOT\f\STX\STX\DC2\EOT\191\SOH\EOT#\SUB\129\SOH\n\+ \The fee rate, in satoshis per vbyte, that will be used by watchtowers for\n\+ \justice transactions in response to channel breaches.\n\+ \\n\+ \\r\n\+ \\ENQ\EOT\f\STX\STX\ENQ\DC2\EOT\191\SOH\EOT\n\+ \\n\+ \\r\n\+ \\ENQ\EOT\f\STX\STX\SOH\DC2\EOT\191\SOH\v\RS\n\+ \\r\n\+ \\ENQ\EOT\f\STX\STX\ETX\DC2\EOT\191\SOH!\"b\ACKproto3"
@@ -0,0 +1,155 @@+{- This file was auto-generated from wtclientrpc/wtclient.proto by the proto-lens-protoc program. -}+{-# LANGUAGE ScopedTypeVariables, DataKinds, TypeFamilies, UndecidableInstances, GeneralizedNewtypeDeriving, MultiParamTypeClasses, FlexibleContexts, FlexibleInstances, PatternSynonyms, MagicHash, NoImplicitPrelude, BangPatterns, TypeApplications, OverloadedStrings, DerivingStrategies, DeriveGeneric#-}+{-# OPTIONS_GHC -Wno-unused-imports#-}+{-# OPTIONS_GHC -Wno-duplicate-exports#-}+{-# OPTIONS_GHC -Wno-dodgy-exports#-}+module Proto.Wtclientrpc.Wtclient_Fields where+import qualified Data.ProtoLens.Runtime.Prelude as Prelude+import qualified Data.ProtoLens.Runtime.Data.Int as Data.Int+import qualified Data.ProtoLens.Runtime.Data.Monoid as Data.Monoid+import qualified Data.ProtoLens.Runtime.Data.Word as Data.Word+import qualified Data.ProtoLens.Runtime.Data.ProtoLens as Data.ProtoLens+import qualified Data.ProtoLens.Runtime.Data.ProtoLens.Encoding.Bytes as Data.ProtoLens.Encoding.Bytes+import qualified Data.ProtoLens.Runtime.Data.ProtoLens.Encoding.Growing as Data.ProtoLens.Encoding.Growing+import qualified Data.ProtoLens.Runtime.Data.ProtoLens.Encoding.Parser.Unsafe as Data.ProtoLens.Encoding.Parser.Unsafe+import qualified Data.ProtoLens.Runtime.Data.ProtoLens.Encoding.Wire as Data.ProtoLens.Encoding.Wire+import qualified Data.ProtoLens.Runtime.Data.ProtoLens.Field as Data.ProtoLens.Field+import qualified Data.ProtoLens.Runtime.Data.ProtoLens.Message.Enum as Data.ProtoLens.Message.Enum+import qualified Data.ProtoLens.Runtime.Data.ProtoLens.Service.Types as Data.ProtoLens.Service.Types+import qualified Data.ProtoLens.Runtime.Lens.Family2 as Lens.Family2+import qualified Data.ProtoLens.Runtime.Lens.Family2.Unchecked as Lens.Family2.Unchecked+import qualified Data.ProtoLens.Runtime.Data.Text as Data.Text+import qualified Data.ProtoLens.Runtime.Data.Map as Data.Map+import qualified Data.ProtoLens.Runtime.Data.ByteString as Data.ByteString+import qualified Data.ProtoLens.Runtime.Data.ByteString.Char8 as Data.ByteString.Char8+import qualified Data.ProtoLens.Runtime.Data.Text.Encoding as Data.Text.Encoding+import qualified Data.ProtoLens.Runtime.Data.Vector as Data.Vector+import qualified Data.ProtoLens.Runtime.Data.Vector.Generic as Data.Vector.Generic+import qualified Data.ProtoLens.Runtime.Data.Vector.Unboxed as Data.Vector.Unboxed+import qualified Data.ProtoLens.Runtime.Text.Read as Text.Read+activeSessionCandidate ::+ forall f s a.+ (Prelude.Functor f,+ Data.ProtoLens.Field.HasField s "activeSessionCandidate" a) =>+ Lens.Family2.LensLike' f s a+activeSessionCandidate+ = Data.ProtoLens.Field.field @"activeSessionCandidate"+address ::+ forall f s a.+ (Prelude.Functor f, Data.ProtoLens.Field.HasField s "address" a) =>+ Lens.Family2.LensLike' f s a+address = Data.ProtoLens.Field.field @"address"+addresses ::+ forall f s a.+ (Prelude.Functor f,+ Data.ProtoLens.Field.HasField s "addresses" a) =>+ Lens.Family2.LensLike' f s a+addresses = Data.ProtoLens.Field.field @"addresses"+includeSessions ::+ forall f s a.+ (Prelude.Functor f,+ Data.ProtoLens.Field.HasField s "includeSessions" a) =>+ Lens.Family2.LensLike' f s a+includeSessions = Data.ProtoLens.Field.field @"includeSessions"+maxBackups ::+ forall f s a.+ (Prelude.Functor f,+ Data.ProtoLens.Field.HasField s "maxBackups" a) =>+ Lens.Family2.LensLike' f s a+maxBackups = Data.ProtoLens.Field.field @"maxBackups"+maxUpdates ::+ forall f s a.+ (Prelude.Functor f,+ Data.ProtoLens.Field.HasField s "maxUpdates" a) =>+ Lens.Family2.LensLike' f s a+maxUpdates = Data.ProtoLens.Field.field @"maxUpdates"+numBackups ::+ forall f s a.+ (Prelude.Functor f,+ Data.ProtoLens.Field.HasField s "numBackups" a) =>+ Lens.Family2.LensLike' f s a+numBackups = Data.ProtoLens.Field.field @"numBackups"+numFailedBackups ::+ forall f s a.+ (Prelude.Functor f,+ Data.ProtoLens.Field.HasField s "numFailedBackups" a) =>+ Lens.Family2.LensLike' f s a+numFailedBackups = Data.ProtoLens.Field.field @"numFailedBackups"+numPendingBackups ::+ forall f s a.+ (Prelude.Functor f,+ Data.ProtoLens.Field.HasField s "numPendingBackups" a) =>+ Lens.Family2.LensLike' f s a+numPendingBackups = Data.ProtoLens.Field.field @"numPendingBackups"+numSessions ::+ forall f s a.+ (Prelude.Functor f,+ Data.ProtoLens.Field.HasField s "numSessions" a) =>+ Lens.Family2.LensLike' f s a+numSessions = Data.ProtoLens.Field.field @"numSessions"+numSessionsAcquired ::+ forall f s a.+ (Prelude.Functor f,+ Data.ProtoLens.Field.HasField s "numSessionsAcquired" a) =>+ Lens.Family2.LensLike' f s a+numSessionsAcquired+ = Data.ProtoLens.Field.field @"numSessionsAcquired"+numSessionsExhausted ::+ forall f s a.+ (Prelude.Functor f,+ Data.ProtoLens.Field.HasField s "numSessionsExhausted" a) =>+ Lens.Family2.LensLike' f s a+numSessionsExhausted+ = Data.ProtoLens.Field.field @"numSessionsExhausted"+policyType ::+ forall f s a.+ (Prelude.Functor f,+ Data.ProtoLens.Field.HasField s "policyType" a) =>+ Lens.Family2.LensLike' f s a+policyType = Data.ProtoLens.Field.field @"policyType"+pubkey ::+ forall f s a.+ (Prelude.Functor f, Data.ProtoLens.Field.HasField s "pubkey" a) =>+ Lens.Family2.LensLike' f s a+pubkey = Data.ProtoLens.Field.field @"pubkey"+sessions ::+ forall f s a.+ (Prelude.Functor f,+ Data.ProtoLens.Field.HasField s "sessions" a) =>+ Lens.Family2.LensLike' f s a+sessions = Data.ProtoLens.Field.field @"sessions"+sweepSatPerByte ::+ forall f s a.+ (Prelude.Functor f,+ Data.ProtoLens.Field.HasField s "sweepSatPerByte" a) =>+ Lens.Family2.LensLike' f s a+sweepSatPerByte = Data.ProtoLens.Field.field @"sweepSatPerByte"+sweepSatPerVbyte ::+ forall f s a.+ (Prelude.Functor f,+ Data.ProtoLens.Field.HasField s "sweepSatPerVbyte" a) =>+ Lens.Family2.LensLike' f s a+sweepSatPerVbyte = Data.ProtoLens.Field.field @"sweepSatPerVbyte"+towers ::+ forall f s a.+ (Prelude.Functor f, Data.ProtoLens.Field.HasField s "towers" a) =>+ Lens.Family2.LensLike' f s a+towers = Data.ProtoLens.Field.field @"towers"+vec'addresses ::+ forall f s a.+ (Prelude.Functor f,+ Data.ProtoLens.Field.HasField s "vec'addresses" a) =>+ Lens.Family2.LensLike' f s a+vec'addresses = Data.ProtoLens.Field.field @"vec'addresses"+vec'sessions ::+ forall f s a.+ (Prelude.Functor f,+ Data.ProtoLens.Field.HasField s "vec'sessions" a) =>+ Lens.Family2.LensLike' f s a+vec'sessions = Data.ProtoLens.Field.field @"vec'sessions"+vec'towers ::+ forall f s a.+ (Prelude.Functor f,+ Data.ProtoLens.Field.HasField s "vec'towers" a) =>+ Lens.Family2.LensLike' f s a+vec'towers = Data.ProtoLens.Field.field @"vec'towers"
@@ -0,0 +1,55 @@+module LndClient.ChanBakSpec+ ( spec,+ )+where++import qualified LndClient.Data.ChannelBackup as Bak+import LndClient.Import+import LndClient.LndTest+import LndClient.RPC.Katip+import LndClient.TestApp+import Test.Hspec++spec :: Spec+spec = do+ it "export SUCCEEDED" $+ withEnv $ do+ cp <- setupOneChannel Alice Bob+ let goodBak bak =+ ( not+ . null+ . Bak.unSingleChanBackupBlob+ $ Bak.chanBackup bak+ )+ && (Bak.chanPoint bak == cp)+ let goodBaks = \case+ [bak] -> goodBak bak+ _ -> False+ alice <- getLndEnv Alice+ bob <- getLndEnv Bob+ bakA <- liftLndResult =<< exportChannelBackup alice cp+ bakB <- liftLndResult =<< exportChannelBackup bob cp+ baksA <- liftLndResult =<< exportAllChannelBackups alice+ baksB <- liftLndResult =<< exportAllChannelBackups bob+ liftIO $ do+ --+ -- TODO : this fails for some reason,+ -- backups are different+ --+ -- baksA `shouldBe` [bakA]+ bakA `shouldSatisfy` goodBak+ bakB `shouldSatisfy` goodBak+ baksA `shouldSatisfy` goodBaks+ baksB `shouldSatisfy` goodBaks+ it "restore SUCCEEDED" $+ withEnv $ do+ cp <- setupOneChannel Alice Bob+ alice <- getLndEnv Alice+ bakA <- liftLndResult =<< exportChannelBackup alice cp+ liftLndResult =<< restoreChannelBackups alice [bakA]+ liftIO $ do+ --+ -- TODO : verify unconfirmed balance increase+ -- through walletBalance.+ --+ True `shouldBe` True
@@ -0,0 +1,167 @@+{-# LANGUAGE FlexibleContexts #-}+{-# LANGUAGE TemplateHaskell #-}++module LndClient.PsbtSpec+ ( spec,+ )+where++import qualified Data.Map as M+import qualified LndClient.Data.FinalizePsbt as FNP+import qualified LndClient.Data.FundPsbt as FP+import qualified LndClient.Data.FundingPsbtFinalize as FPF+import qualified LndClient.Data.FundingPsbtVerify as FSS+import qualified LndClient.Data.FundingStateStep as FSS+import LndClient.Data.GetInfo (GetInfoResponse (..))+import qualified LndClient.Data.ListUnspent as LU+import qualified LndClient.Data.NewAddress as NA+import LndClient.Data.OpenChannel+import qualified LndClient.Data.OutPoint as OP+import qualified LndClient.Data.PsbtShim as PS+import qualified LndClient.Data.PublishTransaction as PT+import qualified LndClient.Data.SendCoins as SC+import LndClient.Import+import LndClient.LndTest+import LndClient.RPC.Katip+import LndClient.TestApp+import Test.Hspec+import qualified UnliftIO.STM as T+import LndClient.Data.ChannelPoint++genAddr :: (KatipContext f, MonadUnliftIO f) => LndEnv -> f Text+genAddr lnd =+ fmap NA.address $+ liftLndResult =<< newAddress lnd (NA.NewAddressRequest NA.WITNESS_PUBKEY_HASH Nothing)++findUtxosByTxId :: (KatipContext m, MonadUnliftIO m) => LndEnv -> ByteString -> m [LU.Utxo]+findUtxosByTxId lnd txid' = do+ utxos <- LU.utxos <$> (liftLndResult =<< listUnspent lnd (LU.ListUnspentRequest 0 10 ""))+ pure $ filter (\u -> txid' == OP.txid (LU.outpoint u)) utxos++psbtVerifyReq :: PendingChannelId -> Psbt -> FSS.FundingStateStepRequest+psbtVerifyReq pcid fp =+ FSS.FundingStateStepPsbtVerifyRequest $+ FSS.FundingPsbtVerify+ { FSS.pendingChanId = pcid,+ FSS.fundedPsbt = fp,+ FSS.skipFinalize = False+ }++psbtFinalizeReq :: PendingChannelId -> Psbt -> FSS.FundingStateStepRequest+psbtFinalizeReq pcid sp =+ FSS.FundingStateStepPsbtFinalizeRequest $+ FPF.FundingPsbtFinalize+ { FPF.signedPsbt = sp,+ FPF.pendingChanId = pcid,+ FPF.finalRawTx = RawTx ""+ }++fundPsbtToAddr :: LndTest m Owner => Text -> MSat -> m FP.FundPsbtResponse+fundPsbtToAddr fAddr amt = do+ lndBob <- getLndEnv Bob+ lndAlice <- getLndEnv Alice+ addrAlice <- genAddr lndAlice+ mine 10 Bob+ let bankAmt = amt * 2+ sendTrx <- liftLndResult =<< sendCoins lndBob (SC.SendCoinsRequest addrAlice bankAmt False)+ mine 2 Bob+ txid <- liftLndResult $ txIdParser $ SC.txid sendTrx+ utxos <- findUtxosByTxId lndAlice txid+ --print $ "Found in Alice unspent list:" ++ show utxos+ let temp = FP.TxTemplate (LU.outpoint <$> utxos) (M.fromList [(fAddr, amt)])+ let fr = FP.FundPsbtRequest "" temp 2 False (FP.SatPerVbyte 2)+ liftLndResult =<< fundPsbt lndAlice fr++signPsbt :: LndTest m Owner => FP.FundPsbtResponse -> m FNP.FinalizePsbtResponse+signPsbt psbt' = do+ lndAlice <- getLndEnv Alice+ liftLndResult =<< finalizePsbt lndAlice (FNP.FinalizePsbtRequest (FP.fundedPsbt psbt') "")++openChannelPsbt :: (LndTest m Owner) => LndEnv -> NodePubKey -> MSat -> m (Either Text ChannelPoint)+openChannelPsbt lndEnv toPubKey locFundAmt = do+ chan <- T.newTChanIO+ pcid <- newPendingChanId+ let psbtShim =+ PS.PsbtShim+ { PS.pendingChanId = pcid,+ PS.basePsbt = Nothing,+ PS.noPublish = False+ }+ let openChannelRequest =+ OpenChannelRequest+ { nodePubkey = toPubKey,+ localFundingAmount = locFundAmt,+ pushMSat = Nothing,+ targetConf = Nothing,+ mSatPerByte = Nothing,+ private = Nothing,+ minHtlcMsat = Nothing,+ remoteCsvDelay = Nothing,+ minConfs = Nothing,+ spendUnconfirmed = Nothing,+ closeAddress = Nothing,+ fundingShim = Just psbtShim+ }+ void $ spawnLink $ liftLndResult =<< openChannel (void . T.atomically . T.writeTChan chan) lndEnv openChannelRequest+ fundStep pcid chan+ where+ fundStep pcid chan = do+ upd <- T.atomically $ T.readTChan chan+ $(logTM) DebugS $ logStr $ "Got chan status update" <> inspect upd+ case upd of+ OpenStatusUpdate _ (Just (OpenStatusUpdatePsbtFund (ReadyForPsbtFunding faddr famt _))) -> do+ $(logTM) DebugS $ logStr $ "Chan ready for funding at addr:" <> inspect faddr <> " with amt:" <> inspect famt+ psbtResp <- fundPsbtToAddr faddr famt+ let psbt' = Psbt $ FP.fundedPsbt psbtResp+ void $ liftLndResult =<< fundingStateStep lndEnv (psbtVerifyReq pcid psbt')+ sPsbtResp <- signPsbt psbtResp+ $(logTM) DebugS $ logStr $ "Used psbt for funding:" <> inspect sPsbtResp+ void $ liftLndResult =<< fundingStateStep lndEnv (psbtFinalizeReq pcid (Psbt $ FNP.signedPsbt sPsbtResp))+ fundStep pcid chan+ OpenStatusUpdate _ (Just (OpenStatusUpdateChanPending p)) -> do+ $(logTM) DebugS $ logStr $ "Chan is pending... mining..." <> inspect p+ mine 3 Bob+ fundStep pcid chan+ OpenStatusUpdate _ (Just (OpenStatusUpdateChanOpen (ChannelOpenUpdate cp))) -> do+ $(logTM) DebugS $ logStr $ "Chan is open" <> inspect cp+ pure (Right cp)+ _ -> pure (Left "Unexpected update")++spec :: Spec+spec = do+ it "fundPsbt" $+ withEnv $ do+ lndBob <- getLndEnv Bob+ lndAlice <- getLndEnv Alice+ addrAlice <- genAddr lndAlice+ addrBob <- genAddr lndBob+ --print $ "Alice addr: " <> addrAlice+ --print $ "Bob addr: " <> addrBob+ mine 10 Bob+ let amt = MSat 200000000+ let psbtBackAmt = MSat 100000000+ sendTrx <- liftLndResult =<< sendCoins lndBob (SC.SendCoinsRequest addrAlice amt False)+ --print $ "Bob sends to Alice:" ++ show amt ++ " with txid: " ++ show (SC.txid sendTrx)+ mine 2 Bob+ txid <- liftLndResult $ txIdParser $ SC.txid sendTrx+ utxos <- findUtxosByTxId lndAlice txid+ --print $ "Found in Alice unspent list:" ++ show utxos+ let temp = FP.TxTemplate (LU.outpoint <$> utxos) (M.fromList [(addrBob, psbtBackAmt)])+ let fr = FP.FundPsbtRequest "" temp 2 False (FP.SatPerVbyte 2)+ psbt' <- liftLndResult =<< fundPsbt lndAlice fr+ fin <- liftLndResult =<< finalizePsbt lndAlice (FNP.FinalizePsbtRequest (FP.fundedPsbt psbt') "")+ --print $ "Final psbt from Alice:" ++ show finPsbt+ let txPsbt = FNP.rawFinalTx fin+ --print $ "Final transaction to publish" ++ show (txIdHex txPsbt)+ res <-+ liftLndResult+ =<< publishTransaction lndAlice (PT.PublishTransactionRequest txPsbt "hehe")+ mine 1 Bob+ liftIO $ shouldBe (PT.publishError res) ""+ it "openChannel with psbt" $+ withEnv $ do+ bob <- getLndEnv Bob+ alice <- getLndEnv Alice+ GetInfoResponse bobPubKey _ _ <- liftLndResult =<< getInfo bob+ cp <- openChannelPsbt alice bobPubKey (MSat 266600000)+ liftIO $ shouldSatisfy cp isRight
@@ -1,10 +1,8 @@ {-# LANGUAGE DuplicateRecordFields #-} {-# LANGUAGE FlexibleContexts #-} {-# LANGUAGE FlexibleInstances #-}-{-# LANGUAGE GeneralisedNewtypeDeriving #-} {-# LANGUAGE MultiParamTypeClasses #-} {-# LANGUAGE OverloadedStrings #-}-{-# LANGUAGE TupleSections #-} {-# LANGUAGE TypeFamilies #-} module LndClient.RPCSpec@@ -12,6 +10,7 @@ ) where +import qualified Control.Concurrent.Async as Async import LndClient.Data.AddHodlInvoice as HodlInvoice (AddHodlInvoiceRequest (..)) import LndClient.Data.AddInvoice as AddInvoice ( AddInvoiceRequest (..),@@ -29,11 +28,17 @@ ListInvoiceResponse (..), ) import LndClient.Data.OpenChannel (OpenChannelRequest (..))-import LndClient.Data.PayReq as PayReq (PayReq (..))+import qualified LndClient.Data.PayReq as PayReq+import LndClient.Data.Payment as Payment (Payment (..), PaymentStatus (..))+import LndClient.Data.PendingChannels (PendingChannelsResponse (..)) import LndClient.Data.SendPayment (SendPaymentRequest (..))+import LndClient.Data.SignMessage import LndClient.Data.SubscribeInvoices ( SubscribeInvoicesRequest (..), )+import qualified LndClient.Data.TrackPayment as TrackPayment+import LndClient.Data.VerifyMessage+import qualified LndClient.Data.WalletBalance as Wallet import LndClient.Import import LndClient.LndTest import LndClient.QRCode@@ -48,289 +53,443 @@ x <- readLndEnv envLndSyncGrpcTimeout x `shouldBe` newGrpcTimeout 59 envLndAsyncGrpcTimeout x `shouldBe` Nothing- it "decodePayReq" $ withEnv $ do- lnd <- getLndEnv Bob- x0 <- liftLndResult =<< addInvoice lnd addInvoiceRequest- x1 <-- liftLndResult- =<< decodePayReq lnd (AddInvoice.paymentRequest x0)- liftIO $ do- PayReq.paymentHash x1- `shouldBe` AddInvoice.rHash x0- PayReq.numMsat x1- `shouldBe` AddInvoice.valueMsat addInvoiceRequest- Just (PayReq.expiry x1)- `shouldBe` AddInvoice.expiry addInvoiceRequest- it "lookupInvoice" $ withEnv $ do- lnd <- getLndEnv Bob- x0 <- liftLndResult =<< addInvoice lnd addInvoiceRequest- x1 <- liftLndResult =<< lookupInvoice lnd (AddInvoice.rHash x0)- liftIO $ do- Invoice.rHash x1- `shouldBe` AddInvoice.rHash x0- Invoice.paymentRequest x1- `shouldBe` AddInvoice.paymentRequest x0- Invoice.addIndex x1- `shouldBe` AddInvoice.addIndex x0- Just (Invoice.memo x1)- `shouldBe` AddInvoice.memo addInvoiceRequest- Invoice.valueMsat x1- `shouldBe` AddInvoice.valueMsat addInvoiceRequest- it "addInvoice" $ withEnv $ do- lnd <- getLndEnv Bob- res <- addInvoice lnd addInvoiceRequest- liftIO $ res `shouldSatisfy` isRight- it "addInvoiceQrCode" $ withEnv $ do- lnd <- getLndEnv Bob- res <- liftLndResult =<< addInvoice lnd addInvoiceRequest- let qr = qrPngDataUrl qrDefOpts (AddInvoice.paymentRequest res)- liftIO $ qr `shouldSatisfy` isJust- it "addNormalInvoice" $ withEnv $ do- queue <- getInvoiceTChan Bob- lnd <- getLndEnv Bob- inv <- liftLndResult =<< addInvoice lnd addInvoiceRequest- res <-- receiveInvoice- (AddInvoice.rHash inv)- Invoice.OPEN- queue- liftIO $ res `shouldSatisfy` isRight- it "settleNormalInvoice" $ withEnv $ do- void $ setupOneChannel Alice Bob- chan <- getInvoiceTChan Bob- bob <- getLndEnv Bob- inv <- liftLndResult =<< addInvoice bob addInvoiceRequest- let rh = AddInvoice.rHash inv- liftLndResult- =<< receiveInvoice rh Invoice.OPEN chan- alice <- getLndEnv Alice- let pr = AddInvoice.paymentRequest inv- let spr = SendPaymentRequest pr $ MSat 1000000- void $ liftLndResult =<< sendPayment alice spr- res <- receiveInvoice rh Invoice.SETTLED chan- liftIO $ res `shouldSatisfy` isRight- it "addHodlInvoice" $ withEnv $ do- lnd <- getLndEnv Bob- r <- newRPreimage- let req =- AddHodlInvoiceRequest- { memo = Just "HELLO",- hash = newRHash r,- valueMsat = MSat 1000000,- expiry = Just $ Seconds 1000- }- x0 <- addHodlInvoice lnd req- x1 <- ensureHodlInvoice lnd req- liftIO $ do- x0 `shouldSatisfy` isRight- x0 `shouldBe` AddInvoice.paymentRequest <$> x1- it "watchNormal" $ withEnv $ do- bob <- getLndEnv Bob- w <- Watcher.spawnLink bob subscribeInvoicesChan ignore3- chan <- Watcher.dupLndTChan w- Watcher.watch w subscribeInvoicesRequest- inv <- liftLndResult =<< addInvoice bob addInvoiceRequest- res <-- receiveInvoice- (AddInvoice.rHash inv)- Invoice.OPEN- chan- Watcher.delete w- liftIO $ res `shouldSatisfy` isRight- it "watchUnit" $ withEnv $ do- bob <- getLndEnv Bob- alice <- getLndEnv Alice- w <- Watcher.spawnLinkUnit bob subscribeChannelEventsChan ignore2- chan <- Watcher.dupLndTChan w- Watcher.watchUnit w- GetInfoResponse bobPubKey _ _ <- liftLndResult =<< getInfo bob- let openChannelRequest =- OpenChannelRequest- { nodePubkey = bobPubKey,- localFundingAmount = MSat 20000000,- pushSat = Just $ MSat 1000000,- targetConf = Nothing,- satPerByte = Nothing,- private = Nothing,- minHtlcMsat = Nothing,- remoteCsvDelay = Nothing,- minConfs = Nothing,- spendUnconfirmed = Nothing,- closeAddress = Nothing+ it "decodePayReq" $+ withEnv $ do+ lnd <- getLndEnv Bob+ x0 <- liftLndResult =<< addInvoice lnd addInvoiceRequest+ ct <- liftIO getCurrentTime+ GetInfoResponse pub _ _ <- liftLndResult =<< getInfo lnd+ x1 <-+ liftLndResult+ =<< decodePayReq lnd (AddInvoice.paymentRequest x0)+ let dt =+ picosecondsToDiffTime+ . (* 1000000000000)+ . (`div` 1000000000000)+ . diffTimeToPicoseconds+ $ utctDayTime ct+ let expSec = Seconds 1000+ let utc = ct {utctDayTime = dt}+ liftIO $+ x1+ `shouldBe` PayReq.PayReq+ { PayReq.destination = pub,+ PayReq.paymentHash = AddInvoice.rHash x0,+ PayReq.numMsat = AddInvoice.valueMsat addInvoiceRequest,+ PayReq.expiry = Seconds 1000,+ PayReq.timestamp = ct {utctDayTime = dt},+ PayReq.expiresAt = PayReq.addSeconds expSec utc }- cp <- liftLndResult =<< openChannelSync alice openChannelRequest- res <- receiveActiveChannel proxyOwner cp chan- Watcher.delete w- liftIO $ res `shouldSatisfy` isRight- it "unWatch" $ withEnv $ do- lnd <- getLndEnv Bob- w <-- Watcher.spawnLink+ liftIO $ do+ PayReq.paymentHash x1+ `shouldBe` AddInvoice.rHash x0+ PayReq.numMsat x1+ `shouldBe` AddInvoice.valueMsat addInvoiceRequest+ Just (PayReq.expiry x1)+ `shouldBe` AddInvoice.expiry addInvoiceRequest+ it "lookupInvoice" $+ withEnv $ do+ lnd <- getLndEnv Bob+ x0 <- liftLndResult =<< addInvoice lnd addInvoiceRequest+ x1 <- liftLndResult =<< lookupInvoice lnd (AddInvoice.rHash x0)+ liftIO $ do+ Invoice.rHash x1+ `shouldBe` AddInvoice.rHash x0+ Invoice.paymentRequest x1+ `shouldBe` AddInvoice.paymentRequest x0+ Invoice.addIndex x1+ `shouldBe` AddInvoice.addIndex x0+ Just (Invoice.memo x1)+ `shouldBe` AddInvoice.memo addInvoiceRequest+ Invoice.valueMsat x1+ `shouldBe` AddInvoice.valueMsat addInvoiceRequest+ it "addInvoice" $+ withEnv $ do+ lnd <- getLndEnv Bob+ res <- addInvoice lnd addInvoiceRequest+ liftIO $ res `shouldSatisfy` isRight+ it "addInvoiceQrCode" $+ withEnv $ do+ lnd <- getLndEnv Bob+ res <- liftLndResult =<< addInvoice lnd addInvoiceRequest+ let qr = qrPngDataUrl qrDefOpts (AddInvoice.paymentRequest res)+ liftIO $ qr `shouldSatisfy` isJust+ it "addNormalInvoice" $+ withEnv $ do+ queue <- getInvoiceTChan Bob+ lnd <- getLndEnv Bob+ inv <- liftLndResult =<< addInvoice lnd addInvoiceRequest+ res <-+ receiveInvoice+ lnd+ (AddInvoice.rHash inv)+ Invoice.OPEN+ queue+ liftIO $ res `shouldSatisfy` isRight+ it "settleNormalInvoice" $+ withEnv $ do+ void $ setupOneChannel Alice Bob+ chan <- getInvoiceTChan Bob+ bob <- getLndEnv Bob+ inv <- liftLndResult =<< addInvoice bob addInvoiceRequest+ let rh = AddInvoice.rHash inv+ liftLndResult+ =<< receiveInvoice bob rh Invoice.OPEN chan+ alice <- getLndEnv Alice+ let pr = AddInvoice.paymentRequest inv+ let spr = SendPaymentRequest pr (MSat 1000000) Nothing+ void $ liftLndResult =<< sendPayment alice spr+ res <- receiveInvoice bob rh Invoice.SETTLED chan+ liftIO $ res `shouldSatisfy` isRight+ it "addHodlInvoice" $+ withEnv $ do+ lnd <- getLndEnv Bob+ r <- newRPreimage+ let req =+ AddHodlInvoiceRequest+ { memo = Just "HELLO",+ hash = newRHash r,+ valueMsat = MSat 1000000,+ expiry = Just $ Seconds 1000+ }+ x0 <- addHodlInvoice lnd req+ x1 <- ensureHodlInvoice lnd req+ liftIO $ do+ x0 `shouldSatisfy` isRight+ x0 `shouldBe` AddInvoice.paymentRequest <$> x1+ it "watchNormal" $+ withEnv $ do+ bob <- getLndEnv Bob+ Watcher.withWatcher bob subscribeInvoicesChan ignore3 $ \w -> do+ chan <- Watcher.dupLndTChan w+ Watcher.watch w subscribeInvoicesRequest+ inv <- liftLndResult =<< addInvoice bob addInvoiceRequest+ res <-+ receiveInvoice+ bob+ (AddInvoice.rHash inv)+ Invoice.OPEN+ chan+ liftIO $ res `shouldSatisfy` isRight+ it "watchUnit" $+ withEnv $ do+ bob <- getLndEnv Bob+ alice <- getLndEnv Alice+ Watcher.withWatcherUnit bob subscribeChannelEventsChan ignore2 $ \w -> do+ chan <- Watcher.dupLndTChan w+ Watcher.watchUnit w+ GetInfoResponse bobPubKey _ _ <- liftLndResult =<< getInfo bob+ let openChannelRequest =+ OpenChannelRequest+ { nodePubkey = bobPubKey,+ localFundingAmount = MSat 20000000,+ pushMSat = Just $ MSat 1000000,+ targetConf = Nothing,+ mSatPerByte = Nothing,+ private = Nothing,+ minHtlcMsat = Nothing,+ remoteCsvDelay = Nothing,+ minConfs = Nothing,+ spendUnconfirmed = Nothing,+ closeAddress = Nothing,+ fundingShim = Nothing+ }+ cp <- liftLndResult =<< openChannelSync alice openChannelRequest+ res <- receiveActiveChannel proxyOwner cp chan+ liftIO $ res `shouldSatisfy` isRight+ it "unWatch" $+ withEnv $ do+ lnd <- getLndEnv Bob+ Watcher.withWatcher lnd subscribeInvoicesChan -- can unWatch from the callback- $ \w k _ -> Watcher.unWatch w k- chan <- Watcher.dupLndTChan w- Watcher.watch w subscribeInvoicesRequest- void . liftLndResult =<< addInvoice lnd addInvoiceRequest- -- can unWatch from the outside as well- Watcher.unWatch w subscribeInvoicesRequest- purgeChan chan- void . liftLndResult =<< addInvoice lnd addInvoiceRequest- res <- readTChanTimeout (MicroSecondsDelay 500000) chan- Watcher.delete w- liftIO $ res `shouldBe` Nothing- it "ensureHodlInvoice" $ withEnv $ do- r <- newRPreimage- let req =- AddHodlInvoiceRequest- { memo = Just "HELLO",- hash = newRHash r,- valueMsat = MSat 1000000,- expiry = Just $ Seconds 1000- }- bob <- getLndEnv Bob- res <- ensureHodlInvoice bob req- liftIO $ res `shouldSatisfy` isRight- it "cancelInvoice" $ withEnv $ do- void $ setupOneChannel Alice Bob- r <- newRPreimage- let rh = newRHash r- let hipr =- AddHodlInvoiceRequest- Nothing- rh- (MSat 1000000)- Nothing- bob <- getLndEnv Bob- q <- getInvoiceTChan Bob- qq <- getSingleInvoiceTChan Bob- pr <-+ (\w k _ -> Watcher.unWatch w k)+ $ \w -> do+ chan <- Watcher.dupLndTChan w+ Watcher.watch w subscribeInvoicesRequest+ void . liftLndResult =<< addInvoice lnd addInvoiceRequest+ -- can unWatch from the outside as well+ Watcher.unWatch w subscribeInvoicesRequest+ purgeChan chan+ void . liftLndResult =<< addInvoice lnd addInvoiceRequest+ res <- readTChanTimeout (MicroSecondsDelay 500000) chan+ liftIO $ res `shouldBe` Nothing+ it "ensureHodlInvoice" $+ withEnv $ do+ r <- newRPreimage+ let req =+ AddHodlInvoiceRequest+ { memo = Just "HELLO",+ hash = newRHash r,+ valueMsat = MSat 1000000,+ expiry = Just $ Seconds 1000+ }+ bob <- getLndEnv Bob+ res <- ensureHodlInvoice bob req+ liftIO $ res `shouldSatisfy` isRight+ it "cancelInvoice" $+ withEnv $ do+ void $ setupOneChannel Alice Bob+ r <- newRPreimage+ let rh = newRHash r+ let hipr =+ AddHodlInvoiceRequest+ Nothing+ rh+ (MSat 1000000)+ Nothing+ bob <- getLndEnv Bob+ q <- getInvoiceTChan Bob+ qq <- getSingleInvoiceTChan Bob+ pr <-+ liftLndResult+ =<< addHodlInvoice bob hipr+ watchSingleInvoice Bob rh liftLndResult- =<< addHodlInvoice bob hipr- watchSingleInvoice Bob rh- liftLndResult- =<< receiveInvoice rh Invoice.OPEN q- let spr = SendPaymentRequest pr $ MSat 1000000- alice <- getLndEnv Alice- withSpawnLink- (liftLndResult =<< sendPayment alice spr)- ( const $ do- --- -- NOTE : this is working only in coingaming LND fork- -- which is fixing this bug- -- https://github.com/lightningnetwork/lnd/issues/4544- --- liftLndResult- =<< receiveInvoice rh Invoice.ACCEPTED qq- res <- cancelInvoice bob rh- liftLndResult- =<< receiveInvoice rh Invoice.CANCELED qq- liftIO $ res `shouldSatisfy` isRight- )- it "settleInvoice" $ withEnv $ do- void $ setupOneChannel Alice Bob- r <- newRPreimage- let rh = newRHash r- let hipr =- AddHodlInvoiceRequest Nothing rh (MSat 1000000) Nothing- bob <- getLndEnv Bob- q <- getInvoiceTChan Bob- qq <- getSingleInvoiceTChan Bob- pr <- liftLndResult =<< addHodlInvoice bob hipr- watchSingleInvoice Bob rh- liftLndResult- =<< receiveInvoice rh Invoice.OPEN q- let spr = SendPaymentRequest pr $ MSat 1000000- alice <- getLndEnv Alice- withSpawnLink- (liftLndResult =<< sendPayment alice spr)- ( const $ do- --- -- NOTE : this is working only in coingaming LND fork- -- which is fixing this bug- -- https://github.com/lightningnetwork/lnd/issues/4544- --- liftLndResult- =<< receiveInvoice rh Invoice.ACCEPTED qq- res <- settleInvoice bob r+ =<< receiveInvoice bob rh Invoice.OPEN q+ let spr = SendPaymentRequest pr (MSat 1000000) Nothing+ alice <- getLndEnv Alice+ withSpawnLink+ (liftLndResult =<< sendPayment alice spr)+ ( const $ do+ --+ -- NOTE : this is working only in coingaming LND fork+ -- which is fixing this bug+ -- https://github.com/lightningnetwork/lnd/issues/4544+ --+ liftLndResult+ =<< receiveInvoice bob rh Invoice.ACCEPTED qq+ res <- cancelInvoice bob rh+ liftLndResult+ =<< receiveInvoice bob rh Invoice.CANCELED qq+ liftIO $ res `shouldSatisfy` isRight+ )+ it "settleInvoice" $+ withEnv $ do+ void $ setupOneChannel Alice Bob+ r <- newRPreimage+ let rh = newRHash r+ let hipr =+ AddHodlInvoiceRequest Nothing rh (MSat 1000000) Nothing+ bob <- getLndEnv Bob+ q <- getInvoiceTChan Bob+ qq <- getSingleInvoiceTChan Bob+ pr <- liftLndResult =<< addHodlInvoice bob hipr+ watchSingleInvoice Bob rh+ liftLndResult+ =<< receiveInvoice bob rh Invoice.OPEN q+ let spr = SendPaymentRequest pr (MSat 1000000) Nothing+ alice <- getLndEnv Alice+ withSpawnLink+ (liftLndResult =<< sendPayment alice spr)+ ( const $ do+ --+ -- NOTE : this is working only in coingaming LND fork+ -- which is fixing this bug+ -- https://github.com/lightningnetwork/lnd/issues/4544+ --+ liftLndResult+ =<< receiveInvoice bob rh Invoice.ACCEPTED qq+ res <- settleInvoice bob r+ liftLndResult+ =<< receiveInvoice bob rh Invoice.SETTLED qq+ liftIO $ res `shouldSatisfy` isRight+ )+ it "listInvoices" $+ withEnv $ do+ lnd <- getLndEnv Bob+ rh <-+ AddInvoice.rHash+ <$> (liftLndResult =<< addInvoice lnd addInvoiceRequest)+ let listReq =+ ListInvoiceRequest+ { pendingOnly = True,+ indexOffset = AddIndex 0,+ numMaxInvoices = 0,+ reversed = False+ }+ xs <-+ ListInvoices.invoices+ <$> (liftLndResult =<< listInvoices lnd listReq)+ liftIO $ xs `shouldSatisfy` any ((rh ==) . Invoice.rHash)+ it "listChannelAndClose" $+ withEnv $ do+ void $ setupOneChannel Alice Bob+ lnd <- getLndEnv Bob+ let listReq = ListChannelsRequest False False False False Nothing+ cs0 <- liftLndResult =<< listChannels lnd listReq+ lazyConnectNodes proxyOwner+ cp <-+ liftMaybe "ChannelPoint is required" $+ Channel.channelPoint <$> safeHead cs0+ withSpawnLink+ ( closeChannel+ (const $ return ())+ lnd+ (CloseChannelRequest cp False Nothing Nothing Nothing)+ )+ ( const $ do+ liftLndResult =<< receiveClosedChannels proxyOwner [cp]+ cs1 <- liftLndResult =<< listChannels lnd listReq+ liftIO $ (length cs0 - length cs1) `shouldBe` 1+ )+ it "closedChannels" $+ withEnv $ do+ cp <- setupOneChannel Alice Bob+ closeAllChannels proxyOwner+ lnd <- getLndEnv Bob+ res <- liftLndResult =<< closedChannels lnd ClosedChannels.defReq+ liftIO $ res `shouldSatisfy` any ((cp ==) . CloseChannel.chPoint)+ it "subscriptionCanBeCancelled" $+ withEnv $ do+ bob <- getLndEnv Bob+ alice <- getLndEnv Alice+ GetInfoResponse bobPubKey _ _ <- liftLndResult =<< getInfo bob+ let openChannelRequest =+ OpenChannelRequest+ { nodePubkey = bobPubKey,+ localFundingAmount = MSat 20000000,+ pushMSat = Just $ MSat 1000000,+ targetConf = Nothing,+ mSatPerByte = Nothing,+ private = Nothing,+ minHtlcMsat = Nothing,+ remoteCsvDelay = Nothing,+ minConfs = Nothing,+ spendUnconfirmed = Nothing,+ closeAddress = Nothing,+ fundingShim = Nothing+ }+ a <-+ spawnLink $ liftLndResult- =<< receiveInvoice rh Invoice.SETTLED qq- liftIO $ res `shouldSatisfy` isRight- )- it "listInvoices" $ withEnv $ do- lnd <- getLndEnv Bob- rh <-- AddInvoice.rHash- <$> (liftLndResult =<< addInvoice lnd addInvoiceRequest)- let listReq =- ListInvoiceRequest- { pendingOnly = False,- indexOffset = AddIndex 0,- numMaxInvoices = 0,- reversed = False- }- xs <-- ListInvoices.invoices- <$> (liftLndResult =<< listInvoices lnd listReq)- liftIO $ xs `shouldSatisfy` any ((rh ==) . Invoice.rHash)- it "listChannelAndClose" $ withEnv $ do- void $ setupOneChannel Alice Bob- lnd <- getLndEnv Bob- let listReq = ListChannelsRequest False False False False Nothing- cs0 <- liftLndResult =<< listChannels lnd listReq- lazyConnectNodes proxyOwner- cp <-- liftMaybe "ChannelPoint is required" $- Channel.channelPoint <$> safeHead cs0- withSpawnLink- ( closeChannel- (const $ return ())- lnd- (CloseChannelRequest cp False Nothing Nothing Nothing)- )- ( const $ do- liftLndResult =<< receiveClosedChannels proxyOwner [cp]- cs1 <- liftLndResult =<< listChannels lnd listReq- liftIO $ (length cs0 - length cs1) `shouldBe` 1- )- it "closedChannels" $ withEnv $ do- cp <- setupOneChannel Alice Bob- closeAllChannels proxyOwner- lnd <- getLndEnv Bob- res <- closedChannels lnd ClosedChannels.defReq- liftIO $- res- `shouldSatisfy` ( \case- Left {} -> False- Right xs -> any ((cp ==) . CloseChannel.chPoint) xs- )+ =<< openChannel (const $ return ()) alice openChannelRequest+ liftIO $ do+ res <- Async.race (sleep $ MicroSecondsDelay 100000) $ Async.cancel a+ res `shouldSatisfy` isRight+ it "trackPaymentV2" $+ withEnv $+ do+ void $ setupOneChannel Alice Bob+ --+ -- prepare invoice and subscription+ --+ alice <- getLndEnv Alice+ bob <- getLndEnv Bob+ inv <- liftLndResult =<< addInvoice bob addInvoiceRequest+ let req =+ SendPaymentRequest+ (AddInvoice.paymentRequest inv)+ (AddInvoice.valueMsat addInvoiceRequest)+ Nothing+ --+ -- spawn payment watcher and settle invoice+ --+ Watcher.withWatcher alice trackPaymentV2Chan (\_ _ _ -> pure ()) $ \w -> do+ void $ liftLndResult =<< sendPayment alice req+ chan <- Watcher.dupLndTChan w+ Watcher.watch w $+ TrackPayment.TrackPaymentRequest (AddInvoice.rHash inv) False+ res <- readTChanTimeout (MicroSecondsDelay 2000000) chan+ liftIO $ res `shouldSatisfy` isJust+ it "signVerify" $+ withEnv $ do+ alice <- getLndEnv Alice+ bob <- getLndEnv Bob+ --+ -- TODO : verifyMessage will work only in case+ -- where both (double-hash and compact) flags+ -- are set to False. Investigate why.+ --+ SignMessageResponse sig <-+ liftLndResult+ =<< signMessage alice (SignMessageRequest "test" (KeyLocator 6 0) False False)+ GetInfoResponse pubKey _ _ <-+ liftLndResult+ =<< getInfo alice+ VerifyMessageResponse res <-+ liftLndResult+ =<< verifyMessage bob (VerifyMessageRequest "test" sig (coerce pubKey))+ liftIO $+ res `shouldBe` True+ it "waitForGrpc" $+ withEnv $ do+ res <- waitForGrpc =<< getLndEnv Alice+ liftIO $ res `shouldSatisfy` isRight+ it "setupChannelAndClose" $+ withEnv $ do+ lndAlice <- getLndEnv Alice+ lndBob <- getLndEnv Bob+ GetInfoResponse merchantPubKey _ _ <-+ liftLndResult =<< getInfo lndBob+ let openChannelRequest =+ OpenChannelRequest+ { nodePubkey = merchantPubKey,+ localFundingAmount = MSat 200000000,+ pushMSat = Just $ MSat 10000000,+ targetConf = Nothing,+ mSatPerByte = Nothing,+ private = Nothing,+ minHtlcMsat = Nothing,+ remoteCsvDelay = Nothing,+ minConfs = Nothing,+ spendUnconfirmed = Nothing,+ closeAddress = Nothing,+ fundingShim = Nothing+ }+ _ <-+ liftLndResult+ =<< openChannelSync lndAlice openChannelRequest+ sleep $ MicroSecondsDelay 100000+ res <- pendingChannels =<< getLndEnv Alice+ let pc = case res of+ Left {} -> fail "Pending channels fail"+ Right (PendingChannelsResponse _ x _ _ _) -> x+ liftIO $ pc `shouldNotSatisfy` null+ it "trackPaymentV2Sync SUCCEEDED" $+ withEnv $+ do+ void $ setupOneChannel Alice Bob+ alice <- getLndEnv Alice+ bob <- getLndEnv Bob+ inv <- liftLndResult =<< addInvoice bob addInvoiceRequest+ let req =+ SendPaymentRequest+ (AddInvoice.paymentRequest inv)+ (AddInvoice.valueMsat addInvoiceRequest)+ Nothing+ let tpreq = TrackPayment.TrackPaymentRequest (AddInvoice.rHash inv) False+ _ <- sendPayment alice req+ tp <- liftLndResult =<< trackPaymentSync alice tpreq+ liftIO $ Payment.state tp `shouldBe` Payment.SUCCEEDED+ it "trackPaymentV2Sync FAILED" $+ withEnv $+ do+ void $ setupZeroChannels proxyOwner+ alice <- getLndEnv Alice+ bob <- getLndEnv Bob+ inv <- liftLndResult =<< addInvoice bob addInvoiceRequest+ let req =+ SendPaymentRequest+ (AddInvoice.paymentRequest inv)+ (AddInvoice.valueMsat addInvoiceRequest)+ Nothing+ let tpreq = TrackPayment.TrackPaymentRequest (AddInvoice.rHash inv) False+ _ <- sendPayment alice req+ tp <- liftLndResult =<< trackPaymentSync alice tpreq+ liftIO $ Payment.state tp `shouldBe` Payment.FAILED+ it "walletBalance" $+ withEnv $ do+ void $ setupOneChannel Alice Bob+ lnd <- getLndEnv Alice+ res <- liftLndResult =<< walletBalance lnd+ print res+ liftIO $ do+ Wallet.totalBalance res `shouldSatisfy` (> 0)+ Wallet.confirmedBalance res `shouldSatisfy` (> 0)+ Wallet.unconfirmedBalance res `shouldBe` 0 where- --- -- TODO : fix this, it's not really working for some reason- -- LND says "payment isn't initiated" error in logs- --- --it "trackPaymentV2" $ withEnv $ do- -- setupOneChannel- -- --- -- -- prepare invoice and subscription- -- --- -- bob <- getLndEnv Bob- -- inv <- liftLndResult =<< addInvoice bob addInvoiceRequest- -- let rh = AddInvoice.rHash inv- -- let pr = AddInvoice.paymentRequest inv- -- let spr = SendPaymentRequest pr $ MSat 1000- -- --- -- -- spawn payment watcher and settle invoice- -- --- -- w <- Watcher.spawnLink bob trackPaymentV2Chan $ \_ _ _ -> pure ()- -- chan <- Watcher.dupLndTChan w- -- Watcher.watch w $ TrackPaymentRequest rh False- -- alice <- getLndEnv Alice- -- void $ liftLndResult =<< sendPayment alice spr- -- res <- readTChanTimeout (MicroSecondsDelay 500000) chan- -- Watcher.delete w- -- liftIO $ res `shouldSatisfy` isJust subscribeInvoicesRequest = SubscribeInvoicesRequest (Just $ AddIndex 1) Nothing addInvoiceRequest =
@@ -1,160 +0,0 @@-{-# LANGUAGE DeriveFunctor #-}-{-# LANGUAGE DuplicateRecordFields #-}-{-# LANGUAGE FlexibleContexts #-}-{-# LANGUAGE FlexibleInstances #-}-{-# LANGUAGE GeneralisedNewtypeDeriving #-}-{-# LANGUAGE LambdaCase #-}-{-# LANGUAGE MultiParamTypeClasses #-}-{-# LANGUAGE OverloadedStrings #-}-{-# LANGUAGE TypeFamilies #-}--module LndClient.TestApp- ( withEnv,- Owner (..),- proxyOwner,- )-where--import LndClient.Data.LndEnv-import LndClient.Import-import LndClient.LndTest-import qualified Network.Bitcoin as BTC (Client)-import Network.GRPC.Client.Helpers (GrpcClientConfig (..))--data Env- = Env- { envAlice :: TestEnv,- envBob :: TestEnv,- envBtc :: BTC.Client,- envKatipNS :: Namespace,- envKatipCTX :: LogContexts,- envKatipLE :: LogEnv- }--data Owner = Alice | Bob- deriving (Eq, Ord, Show, Bounded, Enum)--proxyOwner :: Proxy Owner-proxyOwner = Proxy--newBobEnv :: LndEnv -> LndEnv-newBobEnv x =- x- { envLndConfig =- (envLndConfig x)- { _grpcClientConfigPort = 11009- },- envLndCipherSeedMnemonic =- Just $- CipherSeedMnemonic- [ "absent",- "betray",- "direct",- "scheme",- "sunset",- "mechanic",- "exhaust",- "suggest",- "boy",- "arena",- "sketch",- "bone",- "news",- "south",- "way",- "survey",- "clip",- "dutch",- "depart",- "green",- "furnace",- "wire",- "wave",- "fall"- ],- envLndAezeedPassphrase = Nothing- }--readEnv :: IO Env-readEnv = do- handleScribe <-- mkHandleScribeWithFormatter- bracketFormat- ColorIfTerminal- stdout- (permitItem DebugS)- V2- le <-- registerScribe "stdout" handleScribe defaultScribeSettings- =<< initLogEnv "LndClient" "test"- bc <- newBtcClient btcEnv- aliceLndEnv <- liftIO readLndEnv- runKatipContextT le (mempty :: LogContexts) mempty $ do- alice <-- newTestEnv- aliceLndEnv- $ NodeLocation "localhost:9735"- bob <-- newTestEnv- (newBobEnv aliceLndEnv)- $ NodeLocation "localhost:9734"- pure- Env- { envAlice = alice,- envBob = bob,- envBtc = bc,- envKatipLE = le,- envKatipCTX = mempty,- envKatipNS = mempty- }--withEnv :: AppM IO () -> IO ()-withEnv this = do- env <- readEnv- runApp env $ setupZeroChannels proxyOwner >> this- void . closeScribes $ envKatipLE env--btcEnv :: BtcEnv-btcEnv =- BtcEnv- { btcUrl = BtcUrl "http://localhost:18443",- btcLogin = BtcLogin "developer",- btcPassword = BtcPassword "developer"- }--newtype AppM m a- = AppM- { unAppM :: ReaderT Env m a- }- deriving (Functor, Applicative, Monad, MonadIO, MonadReader Env)--instance (MonadUnliftIO m) => MonadUnliftIO (AppM m) where- withRunInIO run = AppM (withRunInIO (\k -> run (k . unAppM)))- askUnliftIO =- AppM- ( fmap- (\(UnliftIO run) -> UnliftIO (run . unAppM))- askUnliftIO- )--instance (MonadIO m) => Katip (AppM m) where- getLogEnv = asks envKatipLE- localLogEnv f (AppM m) =- AppM (local (\s -> s {envKatipLE = f (envKatipLE s)}) m)--instance (MonadIO m) => KatipContext (AppM m) where- getKatipContext = asks envKatipCTX- localKatipContext f (AppM m) =- AppM (local (\s -> s {envKatipCTX = f (envKatipCTX s)}) m)- getKatipNamespace = asks envKatipNS- localKatipNamespace f (AppM m) =- AppM (local (\s -> s {envKatipNS = f (envKatipNS s)}) m)--instance (MonadUnliftIO m) => LndTest (AppM m) Owner where- getBtcClient = const $ asks envBtc- getTestEnv = \case- Alice -> asks envAlice- Bob -> asks envBob--runApp :: Env -> AppM m a -> m a-runApp env app = runReaderT (unAppM app) env
@@ -0,0 +1,164 @@+{-# LANGUAGE DeriveFunctor #-}+{-# LANGUAGE DuplicateRecordFields #-}+{-# LANGUAGE FlexibleContexts #-}+{-# LANGUAGE FlexibleInstances #-}+{-# LANGUAGE GeneralisedNewtypeDeriving #-}+{-# LANGUAGE LambdaCase #-}+{-# LANGUAGE MultiParamTypeClasses #-}+{-# LANGUAGE OverloadedStrings #-}+{-# LANGUAGE TypeFamilies #-}++module LndClient.TestApp+ ( withEnv,+ Owner (..),+ proxyOwner,+ )+where++import LndClient.Data.LndEnv+import LndClient.Import+import LndClient.LndTest+import qualified Network.Bitcoin as BTC (Client)+import Network.GRPC.Client.Helpers (Address (..), GrpcClientConfig (..))++data Env = Env+ { envAlice :: TestEnv,+ envBob :: TestEnv,+ envBtc :: BTC.Client,+ envKatipNS :: Namespace,+ envKatipCTX :: LogContexts,+ envKatipLE :: LogEnv+ }++data Owner = Alice | Bob+ deriving stock+ ( Eq,+ Ord,+ Show,+ Bounded,+ Enum,+ Generic+ )++instance Out Owner++proxyOwner :: Proxy Owner+proxyOwner = Proxy++newBobEnv :: LndEnv -> LndEnv+newBobEnv env =+ env+ { envLndConfig =+ lnd+ { _grpcClientConfigAddress =+ case _grpcClientConfigAddress lnd of+ AddressTCP host _ -> AddressTCP host 11009+ x -> x+ },+ envLndCipherSeedMnemonic =+ Just $+ CipherSeedMnemonic+ [ "absent",+ "betray",+ "direct",+ "scheme",+ "sunset",+ "mechanic",+ "exhaust",+ "suggest",+ "boy",+ "arena",+ "sketch",+ "bone",+ "news",+ "south",+ "way",+ "survey",+ "clip",+ "dutch",+ "depart",+ "green",+ "furnace",+ "wire",+ "wave",+ "fall"+ ],+ envLndAezeedPassphrase = Nothing+ }+ where+ lnd = envLndConfig env++withEnv :: AppM IO () -> IO ()+withEnv action = do+ bc <- newBtcClient btcEnv+ aliceLndEnv <- liftIO readLndEnv+ handleScribe <-+ mkHandleScribeWithFormatter+ bracketFormat+ ColorIfTerminal+ stdout+ ( permitItem+ . fromMaybe DebugS+ $ envLndLogSeverity aliceLndEnv+ )+ V2+ let newLogEnv =+ registerScribe "stdout" handleScribe defaultScribeSettings+ =<< initLogEnv "LndClient" "test"+ bracket newLogEnv rmLogEnv $ \le ->+ runKatipContextT le (mempty :: LogContexts) mempty $ do+ withTestEnv aliceLndEnv (NodeLocation "localhost:9735") $ \alice ->+ withTestEnv (newBobEnv aliceLndEnv) (NodeLocation "localhost:9734") $ \bob ->+ liftIO $+ runApp+ Env+ { envAlice = alice,+ envBob = bob,+ envBtc = bc,+ envKatipLE = le,+ envKatipCTX = mempty,+ envKatipNS = mempty+ }+ $ do+ setupZeroChannels proxyOwner+ action+ where+ rmLogEnv :: LogEnv -> IO ()+ rmLogEnv =+ void . liftIO . closeScribes++btcEnv :: BtcEnv+btcEnv =+ BtcEnv+ { btcUrl = BtcUrl "http://localhost:18443",+ btcLogin = BtcLogin "developer",+ btcPassword = BtcPassword "developer"+ }++newtype AppM m a = AppM+ { unAppM :: ReaderT Env m a+ }+ deriving stock (Functor)+ deriving newtype (Applicative, Monad, MonadIO, MonadReader Env, MonadUnliftIO)++instance (MonadIO m) => Katip (AppM m) where+ getLogEnv = asks envKatipLE+ localLogEnv f (AppM m) =+ AppM (local (\s -> s {envKatipLE = f (envKatipLE s)}) m)++instance (MonadIO m) => KatipContext (AppM m) where+ getKatipContext = asks envKatipCTX+ localKatipContext f (AppM m) =+ AppM (local (\s -> s {envKatipCTX = f (envKatipCTX s)}) m)+ getKatipNamespace = asks envKatipNS+ localKatipNamespace f (AppM m) =+ AppM (local (\s -> s {envKatipNS = f (envKatipNS s)}) m)++instance (MonadUnliftIO m) => LndTest (AppM m) Owner where+ getBtcClient = const $ asks envBtc+ getTestEnv = \case+ Alice -> asks envAlice+ Bob -> asks envBob++runApp :: Env -> AppM m a -> m a+runApp env app = runReaderT (unAppM app) env