Skip to content

Commit c0bd649

Browse files
authored
Merge pull request #1054 from lightninglabs/taprpc-module
tapd: use taprpc module
2 parents 7e0b198 + 0a22bc7 commit c0bd649

File tree

10 files changed

+52
-1147
lines changed

10 files changed

+52
-1147
lines changed

.github/actions/setup-go/action.yml

-37
Original file line numberDiff line numberDiff line change
@@ -7,12 +7,6 @@ inputs:
77
key-prefix:
88
description: "A prefix to use for the cache key, to separate cache entries from other workflows"
99
required: false
10-
use-build-cache:
11-
description: "Whether to use the build cache"
12-
required: false
13-
# Boolean values aren't supported in the workflow syntax, so we use a
14-
# string. To not confuse the value with true/false, we use 'yes' and 'no'.
15-
default: 'yes'
1610

1711
runs:
1812
using: "composite"
@@ -29,37 +23,6 @@ runs:
2923
with:
3024
go-version: '${{ inputs.go-version }}'
3125

32-
- name: go module and build cache
33-
if: ${{ inputs.use-build-cache == 'yes' }}
34-
uses: actions/cache@v4
35-
with:
36-
# In order:
37-
# * Module download cache
38-
# * Build cache (Linux)
39-
# * Build cache (Mac)
40-
# * Build cache (Windows)
41-
path: |
42-
~/go/pkg/mod
43-
~/.cache/go-build
44-
~/Library/Caches/go-build
45-
~\AppData\Local\go-build
46-
key: ${{ runner.os }}-go-${{ inputs.go-version }}-${{ inputs.key-prefix }}-${{ github.job }}-${{ hashFiles('**/go.sum') }}
47-
restore-keys: |
48-
${{ runner.os }}-go-${{ inputs.go-version }}-${{ inputs.key-prefix }}-${{ github.job }}-
49-
${{ runner.os }}-go-${{ inputs.go-version }}-${{ inputs.key-prefix }}-
50-
51-
- name: go module cache
52-
if: ${{ inputs.use-build-cache == 'no' }}
53-
uses: actions/cache@v4
54-
with:
55-
# Just the module download cache.
56-
path: |
57-
~/go/pkg/mod
58-
key: ${{ runner.os }}-go-${{ inputs.go-version }}-${{ inputs.key-prefix }}-no-build-cache-${{ github.job }}-${{ hashFiles('**/go.sum') }}
59-
restore-keys: |
60-
${{ runner.os }}-go-${{ inputs.go-version }}-${{ inputs.key-prefix }}-no-build-cache-${{ github.job }}-
61-
${{ runner.os }}-go-${{ inputs.go-version }}-${{ inputs.key-prefix }}-no-build-cache-
62-
6326
- name: set GOPATH
6427
shell: bash
6528
run: |

.github/workflows/main.yml

-2
Original file line numberDiff line numberDiff line change
@@ -125,8 +125,6 @@ jobs:
125125
uses: ./.github/actions/setup-go
126126
with:
127127
go-version: '${{ env.GO_VERSION }}'
128-
key-prefix: cross-compile
129-
use-build-cache: 'no'
130128

131129
- name: build release for all architectures (skip app build)
132130
run: make go-release sys="${{ matrix.sys }}"

cmd/litcli/ln.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@ import (
1212
"github.com/lightninglabs/taproot-assets/asset"
1313
"github.com/lightninglabs/taproot-assets/rfq"
1414
"github.com/lightninglabs/taproot-assets/rfqmath"
15+
"github.com/lightninglabs/taproot-assets/rpcutils"
1516
"github.com/lightninglabs/taproot-assets/taprpc"
16-
"github.com/lightninglabs/taproot-assets/taprpc/rfqrpc"
1717
tchrpc "github.com/lightninglabs/taproot-assets/taprpc/tapchannelrpc"
1818
"github.com/lightningnetwork/lnd/cmd/commands"
1919
"github.com/lightningnetwork/lnd/lnrpc"
@@ -218,7 +218,7 @@ func (w *resultStreamWrapper) Recv() (*lnrpc.Payment, error) {
218218
case *tchrpc.SendPaymentResponse_AcceptedSellOrder:
219219
quote := r.AcceptedSellOrder
220220
rpcRate := quote.BidAssetRate
221-
rate, err := rfqrpc.UnmarshalFixedPoint(rpcRate)
221+
rate, err := rpcutils.UnmarshalRfqFixedPoint(rpcRate)
222222
if err != nil {
223223
return nil, fmt.Errorf("unable to unmarshal fixed "+
224224
"point: %w", err)

go.mod

+7-6
Original file line numberDiff line numberDiff line change
@@ -22,13 +22,14 @@ require (
2222
github.com/lightninglabs/lightning-terminal/autopilotserverrpc v0.0.2
2323
github.com/lightninglabs/lightning-terminal/litrpc v1.0.1
2424
github.com/lightninglabs/lndclient v0.19.0-4
25-
github.com/lightninglabs/loop v0.31.0-beta.0.20250425065236-7e81916829d9
26-
github.com/lightninglabs/loop/looprpc v1.0.6
27-
github.com/lightninglabs/loop/swapserverrpc v1.0.13
25+
github.com/lightninglabs/loop v0.31.0-beta.0.20250502080242-8ef7584f9f56
26+
github.com/lightninglabs/loop/looprpc v1.0.7
27+
github.com/lightninglabs/loop/swapserverrpc v1.0.14
2828
github.com/lightninglabs/pool v0.6.5-beta.0.20250305125211-4e860ec4e77f
2929
github.com/lightninglabs/pool/auctioneerrpc v1.1.3-0.20250305125211-4e860ec4e77f
3030
github.com/lightninglabs/pool/poolrpc v1.0.1-0.20250305125211-4e860ec4e77f
31-
github.com/lightninglabs/taproot-assets v0.5.2-0.20250501125658-7b383050ae89
31+
github.com/lightninglabs/taproot-assets v0.5.2-0.20250502070549-52257227c8f8
32+
github.com/lightninglabs/taproot-assets/taprpc v1.0.1
3233
github.com/lightningnetwork/lnd v0.19.0-beta.rc3
3334
github.com/lightningnetwork/lnd/cert v1.2.2
3435
github.com/lightningnetwork/lnd/clock v1.1.1
@@ -49,7 +50,7 @@ require (
4950
golang.org/x/sync v0.12.0
5051
google.golang.org/grpc v1.65.0
5152
google.golang.org/protobuf v1.34.2
52-
gopkg.in/macaroon-bakery.v2 v2.1.0
53+
gopkg.in/macaroon-bakery.v2 v2.3.0
5354
gopkg.in/macaroon.v2 v2.1.0
5455
modernc.org/sqlite v1.34.5
5556
)
@@ -97,6 +98,7 @@ require (
9798
github.com/fortytw2/leaktest v1.3.0 // indirect
9899
github.com/go-logr/logr v1.4.2 // indirect
99100
github.com/go-logr/stdr v1.2.2 // indirect
101+
github.com/go-macaroon-bakery/macaroonpb v1.0.0 // indirect
100102
github.com/go-viper/mapstructure/v2 v2.2.1 // indirect
101103
github.com/goccy/go-yaml v1.15.23 // indirect
102104
github.com/gogo/protobuf v1.3.2 // indirect
@@ -130,7 +132,6 @@ require (
130132
github.com/jonboulle/clockwork v0.2.2 // indirect
131133
github.com/jrick/logrotate v1.1.2 // indirect
132134
github.com/json-iterator/go v1.1.12 // indirect
133-
github.com/juju/loggo v1.0.0 // indirect
134135
github.com/kkdai/bstream v1.0.0 // indirect
135136
github.com/klauspost/compress v1.17.9 // indirect
136137
github.com/klauspost/cpuid/v2 v2.2.7 // indirect

0 commit comments

Comments
 (0)