Commit graph

400 commits

Author SHA1 Message Date
Elle Mouton
00a8a39aa8
frdrpc/rpcserver: rename createDefaultMacaroonFile
Rename createDefaultMacaroonFile to withMacaroonService since this is
now a more appropriate name.
2022-06-23 17:26:41 +02:00
Elle Mouton
8a59081473
multi: use lndclient MacaroonService
Since the code for creating and using a macaroon service is the same for
multiple projects (pool, loop, faraday & litd), the code has been
unified in lndclient. So this commit removes the macaroon service code
and instead uses the lndclient code.

Since the default key for the macaroon db is now a shared secret with
LND, faraday requires LND's admin macaroon so that this secret can be
derived. So this commit also updates all references of LND's `readme`
macaroon to the `admin` macaroon.
2022-06-23 17:26:41 +02:00
Oliver Gugger
dd4329d258
Merge pull request #147 from lightninglabs/faraday-0-2-8
Use GitHub auto-generated release notes for next release, bump version to v0.2.8-alpha
2022-06-23 17:17:28 +02:00
Oliver Gugger
89e0a058b2
Merge pull request #143 from lightninglabs/alexbosworth-patch-2
docs: fix harmony link to point at standard
2022-06-23 10:45:45 +02:00
Oliver Gugger
f74eaf6f8c
version: bump to version 0.2.8-alpha 2022-06-23 10:40:53 +02:00
Oliver Gugger
2df9885e35
GitHub+release_notes: switch over to auto-generated release notes 2022-06-23 10:40:29 +02:00
Oliver Gugger
0f76143080
Merge pull request #146 from ellemouton/movePermsToOwnDir
frdrpcserver: move RequiredPermissions to dedicated dir
2022-06-14 15:59:54 +02:00
Elle Mouton
21cc003ce1
frdrpcserver: move RequiredPermissions to dedicated dir
This commit moves the RequiredPermissions map to its own directory so
that projects importing the permissions list dont need to import all the
dependencies of the frdrpcserver package.
2022-06-14 15:48:02 +02:00
Oliver Gugger
cd1e56982f
Merge pull request #145 from guggero/json-stubs
frdrpc: add JSON/WASM client stubs for LNC, move server code into own package
2022-05-03 16:44:21 +02:00
Oliver Gugger
eb75383869
release_notes: add notes about JSON/WASM stubs 2022-05-02 12:24:44 +02:00
Oliver Gugger
6f4c01d0f6
frdrpc+frdrpcserver: move RPC server into own package
To avoid the frdrpc package having dependencies to other libraries and
making using the JSON/WASM stubs hard, we extract all the business logic
and RPC server code into its own package called frdrpcserver.
2022-05-02 12:24:44 +02:00
Oliver Gugger
0c086710e7
GitHub+make: compile JSON/WASM stubs 2022-04-29 14:20:47 +02:00
Oliver Gugger
0de47187c4
frdrpc: generate JSON/WASM client stubs 2022-04-29 14:20:46 +02:00
Oliver Gugger
d602082a71
Merge pull request #144 from lightninglabs/btcec-v2-upgrade
multi: bump btcec/v2 and btcutil to new versions
2022-03-28 08:40:33 +02:00
positiveblue
d24b4e2557
multi: bump btcec/v2 and btcutil to new versions 2022-03-25 16:55:04 +01:00
Alex Bosworth
c98220a611
docs: fix harmony link to point at standard
Change the harmony format link to point at the new repository
2022-01-20 16:57:06 -08:00
Oliver Gugger
c46f395ad3
Merge pull request #142 from guggero/lnd-cert-path-expansion
config: clean and expand lnd tls cert path
2022-01-19 15:15:02 +01:00
Oliver Gugger
83dee8bfe8
config: clean and expand lnd tls cert path
The lncfg.CleanAndExpandPath() call was missing for the lnd TLS
certificate path.
2022-01-19 09:52:28 +01:00
Carla Kirk-Cohen
95acc4e4de
Merge pull request #139 from lightninglabs/alexbosworth-patch-1
docs: fix broken harmony link
2022-01-13 08:28:32 +02:00
Alex Bosworth
4b8237aeed
docs: fix broken harmony link
Fixes #138
2022-01-12 21:09:17 -08:00
Oliver Gugger
12b66ac753
Merge pull request #136 from guggero/lnd-14-final
multi: bump lnd to v0.14.0-beta final, release v0.2.7-alpha
2021-11-18 14:01:57 +01:00
Oliver Gugger
bc23e3aacb
multi: bump lnd to v0.14.0-beta final, release v0.2.7-alpha 2021-11-18 13:49:15 +01:00
Oliver Gugger
a68cb47ee2
Merge pull request #134 from lightninglabs/macaroon-stateless
Macaroon stateless
2021-11-05 10:47:27 +01:00
Oliver Gugger
8c1f25dae3
rpcserver: stop macaroon service correctly 2021-11-04 14:09:15 +01:00
Turtle
e3c2c14bd1
frdrpc: conditionally create default macaroon file
In some cases we don't want the default macaroon file to be created on
disk, so we allow passing in a boolean that toggles the macaroon
creation.
2021-11-04 14:09:14 +01:00
Oliver Gugger
f8a995369c
Merge pull request #133 from lightninglabs/lnd-14
multi: bump lnd compile time dependency to v0.14.0-beta.rc1
2021-11-04 11:32:47 +01:00
Oliver Gugger
9f9e8a832e
multi: bump lnd compile time dependency to v0.14.0-beta.rc1 2021-11-03 19:24:23 +01:00
Carla Kirk-Cohen
f4dd97a0fd
Merge pull request #130 from carlaKC/mod-update
multi: bump lndclient version
2021-09-15 09:07:58 +02:00
carla
5180779806
multi: bump lndclient version 2021-09-14 08:49:48 +02:00
Carla Kirk-Cohen
8c48fc9cbe
Merge pull request #129 from carlaKC/fiat-coingecko
fiat: add coingecko source
2021-09-01 09:13:42 +02:00
carla
0979587eeb
release_notes: add coin gecko and default source update 2021-09-01 09:07:37 +02:00
carla
3a515ae086
frcli: add coingecko option 2021-09-01 09:07:36 +02:00
carla
99769f63a9
multi: surface coingecko on rpc 2021-09-01 09:07:35 +02:00
carla
ed8dc3c98d
fiat: add coingecko query and parsing 2021-09-01 09:07:34 +02:00
carla
199b144216
multi: move rpc fiat parsing into single helper and switch default to coindesk
Coincap are deprecating their API, in this commit we switch the default
backend for when there is no backend set to coindesk, and do some
refactoring to simplify our rpc parsing a bit.
2021-09-01 09:07:33 +02:00
Carla Kirk-Cohen
f953eeaa9e
Merge pull request #122 from ellemouton/customPrices
multi: custom fiat prices
2021-08-30 09:39:12 +02:00
Elle Mouton
07ec73e23f
frdrpc: validate custom pricepoints
This commit adds a server side check that ensures that at least one
price point is provided that has a timestamp preceding the start time.
2021-08-27 17:00:01 +02:00
Elle Mouton
e478853361
frcli: filter custom prices by timestamp
This commit filters the custom price points provided using the given
start and end timestamps. This is done so that only the necessary time
stamps are sent to the server.
2021-08-27 16:59:44 +02:00
Elle Mouton
f064bb228d
multi: add custom price options to RPC methods
This commit adds the options required for the custom fiat price data to
the RPC methods. These methods include the NodeAudit and ExchangeRate
methods.
2021-08-27 16:27:44 +02:00
Elle Mouton
bffe524896
cmd/frcli: rename csv function to writeToCSV
Rename the csv function to writeToCSV so that the csv package can be
imported in a future commit without needing to rename the import.
2021-08-27 16:25:41 +02:00
Elle Mouton
504762194e
fiat: add new custom price case to NewPriceSource
Add new CustomPriceBackend option to NewPriceSource function that
initialises the customPrices implementation of the fiatBackend
interface.
2021-08-27 16:13:34 +02:00
Elle Mouton
71b47dc8ee
multi: add PriceSourceConfig struct
Add a PriceSourceConfig struct to consolidate the options required for
initialising a new PriceSource.
2021-08-27 16:12:25 +02:00
Elle Mouton
66ad73ad87
fiat: add customprice impl of fiatBackend
This commit adds a new implementation of the fiatBackend interface which
uses user provided prices data.
2021-08-27 16:08:42 +02:00
Elle Mouton
36188ebdfe
multi: update RPC to show the fiat currency
Update the RPC methods (exchange rate and node report) so that they show
the fiat currency that the bitcoin price is quoted in.
2021-08-27 16:06:54 +02:00
Elle Mouton
dffb00929f
fiat: add Currency field to the Price struct
Add Currency field to the price struct so that Price can be used to
represent any currency.
2021-08-27 16:02:01 +02:00
Elle Mouton
4a7199f38d
multi: rename MsatToUSD func to MsatToFiat
Rename the MsatToUSD functino to MsatToFiat so that the name is
appropriate for multiple currencies.
2021-08-27 16:01:51 +02:00
Elle Mouton
b6404b7c40
accounting: rename usdPrice func type to fiatPrice
Rename usdPrice func type to fiatPrice so that the name is appropriate
for multiple fiat currencies.
2021-08-27 15:55:09 +02:00
Elle Mouton
8b213c7640
multi: rename USDPrice struct to Price
Rename the USDPrice struct to Price so that it can be used to represent
more than 1 currency.
2021-08-27 15:54:13 +02:00
Oliver Gugger
4b83f95476
Merge pull request #128 from lightninglabs/grpc-gateway-update
mod+frdrpc: update lnd to master with grpc-gateway upgrade
2021-07-30 12:02:01 +02:00
Oliver Gugger
165414a15a
multi: update lnd master with grpc-gateway upgrade
To make faraday work with the latest lnd version inside of LiT, we need
to upgrade the grpc-gateway library to the same v2 version here too.
2021-07-29 17:00:39 +02:00