Skip to content

Commit ef1b70b

Browse files
bhandrasffranr
authored andcommitted
taprpc: convert taprpc to a Go submodule
Convert taprpc into a separate Go module. This change allows WASM clients to depend only on this smaller module, avoiding the need to import all exported symbols from the taproot-assets package.
1 parent 1bed088 commit ef1b70b

File tree

4 files changed

+980
-21
lines changed

4 files changed

+980
-21
lines changed

go.mod

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ require (
2929
github.com/lightninglabs/lightning-node-connect/hashmailrpc v1.0.2
3030
github.com/lightninglabs/lndclient v0.19.0-4
3131
github.com/lightninglabs/neutrino/cache v1.1.2
32+
github.com/lightninglabs/taproot-assets/taprpc v1.0.0
3233
github.com/lightningnetwork/lnd v0.19.0-beta.rc2.0.20250423092132-a35ace7371af
3334
github.com/lightningnetwork/lnd/cert v1.2.2
3435
github.com/lightningnetwork/lnd/clock v1.1.1
@@ -117,7 +118,7 @@ require (
117118
github.com/jonboulle/clockwork v0.2.2 // indirect
118119
github.com/jrick/logrotate v1.1.2 // indirect
119120
github.com/json-iterator/go v1.1.12 // indirect
120-
github.com/juju/loggo v0.0.0-20210728185423-eebad3a902c4 // indirect
121+
github.com/juju/loggo v1.0.0 // indirect
121122
github.com/kkdai/bstream v1.0.0 // indirect
122123
github.com/klauspost/compress v1.17.9 // indirect
123124
github.com/klauspost/cpuid/v2 v2.2.7 // indirect
@@ -209,3 +210,6 @@ require (
209210
// We want to format raw bytes as hex instead of base64. The forked version
210211
// allows us to specify that as an option.
211212
replace google.golang.org/protobuf => github.com/lightninglabs/protobuf-go-hex-display v1.33.0-hex-display
213+
214+
// Note this is a temproary replace and will be removed when taprpc is tagged.
215+
replace github.com/lightninglabs/taproot-assets/taprpc => ./taprpc

go.sum

Lines changed: 10 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -432,24 +432,16 @@ github.com/json-iterator/go v1.1.12/go.mod h1:e30LSqwooZae/UwlEbR2852Gd8hjQvJoHm
432432
github.com/jstemmer/go-junit-report v0.0.0-20190106144839-af01ea7f8024/go.mod h1:6v2b51hI/fHJwM22ozAgKL4VKDeJcHhJFhtBdhmNjmU=
433433
github.com/jstemmer/go-junit-report v0.9.1/go.mod h1:Brl9GWCQeLvo8nXZwPNNblvFj/XSXhF0NWZEnDohbsk=
434434
github.com/juju/ansiterm v0.0.0-20180109212912-720a0952cc2a/go.mod h1:UJSiEoRfvx3hP73CvoARgeLjaIOjybY9vj8PUPPFGeU=
435-
github.com/juju/clock v0.0.0-20220203021603-d9deb868a28a h1:Az/6CM/P5guGHNy7r6TkOCctv3lDmN3W1uhku7QMupk=
436-
github.com/juju/clock v0.0.0-20220203021603-d9deb868a28a/go.mod h1:GZ/FY8Cqw3KHG6DwRVPUKbSPTAwyrU28xFi5cqZnLsc=
437-
github.com/juju/collections v0.0.0-20220203020748-febd7cad8a7a h1:d7eZO8OS/ZXxdP0uq3E8CdoA1qNFaecAv90UxrxaY2k=
438-
github.com/juju/collections v0.0.0-20220203020748-febd7cad8a7a/go.mod h1:JWeZdyttIEbkR51z2S13+J+aCuHVe0F6meRy+P0YGDo=
439-
github.com/juju/errors v0.0.0-20220331221717-b38fca44723b h1:AxFeSQJfcm2O3ov1wqAkTKYFsnMw2g1B4PkYujfAdkY=
440-
github.com/juju/errors v0.0.0-20220331221717-b38fca44723b/go.mod h1:jMGj9DWF/qbo91ODcfJq6z/RYc3FX3taCBZMCcpI4Ls=
441-
github.com/juju/loggo v0.0.0-20210728185423-eebad3a902c4 h1:NO5tuyw++EGLnz56Q8KMyDZRwJwWO8jQnj285J3FOmY=
442-
github.com/juju/loggo v0.0.0-20210728185423-eebad3a902c4/go.mod h1:NIXFioti1SmKAlKNuUwbMenNdef59IF52+ZzuOmHYkg=
443-
github.com/juju/mgo/v2 v2.0.0-20220111072304-f200228f1090 h1:zX5GoH3Jp8k1EjUFkApu/YZAYEn0PYQfg/U6IDyNyYs=
444-
github.com/juju/mgo/v2 v2.0.0-20220111072304-f200228f1090/go.mod h1:N614SE0a4e+ih2rg96Vi2PeC3cTpUOWgCTv3Cgk974c=
445-
github.com/juju/retry v0.0.0-20220204093819-62423bf33287 h1:U+7oMWEglXfiikIppNexButZRwKPlzLBGKYSNCXzXf8=
446-
github.com/juju/retry v0.0.0-20220204093819-62423bf33287/go.mod h1:SssN1eYeK3A2qjnFGTiVMbdzGJ2BfluaJblJXvuvgqA=
447-
github.com/juju/testing v0.0.0-20220203020004-a0ff61f03494 h1:XEDzpuZb8Ma7vLja3+5hzUqVTvAqm5Y+ygvnDs5iTMM=
448-
github.com/juju/testing v0.0.0-20220203020004-a0ff61f03494/go.mod h1:rUquetT0ALL48LHZhyRGvjjBH8xZaZ8dFClulKK5wK4=
449-
github.com/juju/utils/v3 v3.0.0-20220203023959-c3fbc78a33b0 h1:bn+2Adl1yWqYjm3KSFlFqsvfLg2eq+XNL7GGMYApdVw=
450-
github.com/juju/utils/v3 v3.0.0-20220203023959-c3fbc78a33b0/go.mod h1:8csUcj1VRkfjNIRzBFWzLFCMLwLqsRWvkmhfVAUwbC4=
451-
github.com/juju/version/v2 v2.0.0-20220204124744-fc9915e3d935 h1:6YoyzXVW1XkqN86y2s/rz365Jm7EiAy39v2G5ikzvHU=
452-
github.com/juju/version/v2 v2.0.0-20220204124744-fc9915e3d935/go.mod h1:ZeFjNy+UFEWJDDPdzW7Cm9NeU6dsViGaFYhXzycLQrw=
435+
github.com/juju/clock v1.1.1 h1:NvgHG9DQmOpBevgt6gzkyimdWBooLXDy1cQn89qJzBI=
436+
github.com/juju/clock v1.1.1/go.mod h1:HIBvJ8kiV/n7UHwKuCkdYL4l/MDECztHR2sAvWDxxf0=
437+
github.com/juju/errors v1.0.0 h1:yiq7kjCLll1BiaRuNY53MGI0+EQ3rF6GB+wvboZDefM=
438+
github.com/juju/errors v1.0.0/go.mod h1:B5x9thDqx0wIMH3+aLIMP9HjItInYWObRovoCFM5Qe8=
439+
github.com/juju/loggo v1.0.0 h1:Y6ZMQOGR9Aj3BGkiWx7HBbIx6zNwNkxhVNOHU2i1bl0=
440+
github.com/juju/loggo v1.0.0/go.mod h1:NIXFioti1SmKAlKNuUwbMenNdef59IF52+ZzuOmHYkg=
441+
github.com/juju/testing v1.0.2 h1:OR90RqCd9CJONxXamZAjLknpZdtqDyxqW8IwCbgw3i4=
442+
github.com/juju/testing v1.0.2/go.mod h1:h3Vd2rzB57KrdsBEy6R7bmSKPzP76BnNavt7i8PerwQ=
443+
github.com/juju/utils/v3 v3.2.0 h1:RkEgTHbrPoOqTuOSaob52B1gLkpeMLd5fZj/4kFzb1k=
444+
github.com/juju/utils/v3 v3.2.0/go.mod h1:nAj3sHtdYfAkvnkqttTy3Xzm2HzkD9Hfgnc+upOW2Z8=
453445
github.com/julienschmidt/httprouter v1.2.0/go.mod h1:SYymIcj16QtmaHHD7aYtjjsJG7VTCxuUUipMqKk8s4w=
454446
github.com/julienschmidt/httprouter v1.3.0/go.mod h1:JR6WtHb+2LUe8TCKY3cZOxFyyO8IZAc4RVcycCCAKdM=
455447
github.com/kisielk/errcheck v1.5.0/go.mod h1:pFxgyoBC7bSaBwPgfKdkLd5X25qrDl4LWUI2bnpBCr8=
@@ -677,8 +669,6 @@ github.com/ugorji/go/codec v1.1.7 h1:2SvQaVZ1ouYrrKKwoSk2pzd4A9evlKJb9oTL+OaLUSs
677669
github.com/ugorji/go/codec v1.1.7/go.mod h1:Ax+UKWsSmolVDwsd+7N3ZtXu+yMGCf907BLYF3GoBXY=
678670
github.com/urfave/cli v1.22.14 h1:ebbhrRiGK2i4naQJr+1Xj92HXZCrK7MsyTS/ob3HnAk=
679671
github.com/urfave/cli v1.22.14/go.mod h1:X0eDS6pD6Exaclxm99NJ3FiCDRED7vIHpx2mDOHLvkA=
680-
github.com/xdg-go/stringprep v1.0.4 h1:XLI/Ng3O1Atzq0oBs3TWm+5ZVgkq2aqdlvP9JtoZ6c8=
681-
github.com/xdg-go/stringprep v1.0.4/go.mod h1:mPGuuIYwz7CmR2bT9j4GbQqutWS1zV24gijq1dTyGkM=
682672
github.com/xeipuuv/gojsonpointer v0.0.0-20180127040702-4e3ac2762d5f h1:J9EGpcZtP0E/raorCMxlFGSTBrsSlaDGf3jU/qvAE2c=
683673
github.com/xeipuuv/gojsonpointer v0.0.0-20180127040702-4e3ac2762d5f/go.mod h1:N2zxlSyiKSe5eX1tZViRH5QA0qijqEDrYZiPEAiq3wU=
684674
github.com/xeipuuv/gojsonreference v0.0.0-20180127040603-bd5ef7bd5415 h1:EzJWgHovont7NscjpAxXsDA8S8BMYve8Y5+7cuRE7R0=

taprpc/go.mod

Lines changed: 185 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,185 @@
1+
module github.com/lightninglabs/taproot-assets/taprpc
2+
3+
go 1.23.6
4+
5+
require (
6+
github.com/btcsuite/btcd v0.24.3-0.20250318170759-4f4ea81776d6
7+
github.com/btcsuite/btcd/btcec/v2 v2.3.4
8+
github.com/grpc-ecosystem/grpc-gateway/v2 v2.16.0
9+
github.com/lightningnetwork/lnd v0.19.0-beta.rc2.0.20250423092132-a35ace7371af
10+
google.golang.org/grpc v1.59.0
11+
google.golang.org/protobuf v1.33.0
12+
)
13+
14+
require (
15+
github.com/Azure/go-ansiterm v0.0.0-20230124172434-306776ec8161 // indirect
16+
github.com/Microsoft/go-winio v0.6.1 // indirect
17+
github.com/Nvveen/Gotty v0.0.0-20120604004816-cd527374f1e5 // indirect
18+
github.com/aead/chacha20 v0.0.0-20180709150244-8b13a72661da // indirect
19+
github.com/aead/siphash v1.0.1 // indirect
20+
github.com/beorn7/perks v1.0.1 // indirect
21+
github.com/btcsuite/btcd/btcutil v1.1.5 // indirect
22+
github.com/btcsuite/btcd/btcutil/psbt v1.1.8 // indirect
23+
github.com/btcsuite/btcd/chaincfg/chainhash v1.1.0 // indirect
24+
github.com/btcsuite/btclog v0.0.0-20241003133417-09c4e92e319c // indirect
25+
github.com/btcsuite/btclog/v2 v2.0.1-0.20250110154127-3ae4bf1cb318 // indirect
26+
github.com/btcsuite/btcwallet v0.16.13 // indirect
27+
github.com/btcsuite/btcwallet/wallet/txauthor v1.3.5 // indirect
28+
github.com/btcsuite/btcwallet/wallet/txrules v1.2.2 // indirect
29+
github.com/btcsuite/btcwallet/wallet/txsizes v1.2.5 // indirect
30+
github.com/btcsuite/btcwallet/walletdb v1.5.1 // indirect
31+
github.com/btcsuite/btcwallet/wtxmgr v1.5.6 // indirect
32+
github.com/btcsuite/go-socks v0.0.0-20170105172521-4720035b7bfd // indirect
33+
github.com/btcsuite/websocket v0.0.0-20150119174127-31079b680792 // indirect
34+
github.com/btcsuite/winsvc v1.0.0 // indirect
35+
github.com/cenkalti/backoff/v4 v4.2.1 // indirect
36+
github.com/cespare/xxhash/v2 v2.2.0 // indirect
37+
github.com/containerd/continuity v0.3.0 // indirect
38+
github.com/coreos/go-semver v0.3.0 // indirect
39+
github.com/coreos/go-systemd/v22 v22.3.2 // indirect
40+
github.com/davecgh/go-spew v1.1.1 // indirect
41+
github.com/decred/dcrd/crypto/blake256 v1.0.1 // indirect
42+
github.com/decred/dcrd/dcrec/secp256k1/v4 v4.3.0 // indirect
43+
github.com/decred/dcrd/lru v1.1.2 // indirect
44+
github.com/docker/cli v20.10.17+incompatible // indirect
45+
github.com/docker/docker v24.0.7+incompatible // indirect
46+
github.com/docker/go-connections v0.4.0 // indirect
47+
github.com/docker/go-units v0.5.0 // indirect
48+
github.com/dustin/go-humanize v1.0.1 // indirect
49+
github.com/fergusstrange/embedded-postgres v1.25.0 // indirect
50+
github.com/go-errors/errors v1.0.1 // indirect
51+
github.com/go-logr/logr v1.3.0 // indirect
52+
github.com/go-logr/stdr v1.2.2 // indirect
53+
github.com/gofrs/uuid v4.2.0+incompatible // indirect
54+
github.com/gogo/protobuf v1.3.2 // indirect
55+
github.com/golang-jwt/jwt/v4 v4.4.2 // indirect
56+
github.com/golang-migrate/migrate/v4 v4.17.0 // indirect
57+
github.com/golang/protobuf v1.5.3 // indirect
58+
github.com/golang/snappy v0.0.4 // indirect
59+
github.com/google/btree v1.0.1 // indirect
60+
github.com/google/shlex v0.0.0-20191202100458-e7afc7fbc510 // indirect
61+
github.com/google/uuid v1.6.0 // indirect
62+
github.com/gorilla/websocket v1.5.0 // indirect
63+
github.com/grpc-ecosystem/go-grpc-middleware v1.3.0 // indirect
64+
github.com/grpc-ecosystem/go-grpc-prometheus v1.2.0 // indirect
65+
github.com/grpc-ecosystem/grpc-gateway v1.16.0 // indirect
66+
github.com/hashicorp/errwrap v1.1.0 // indirect
67+
github.com/hashicorp/go-multierror v1.1.1 // indirect
68+
github.com/hashicorp/golang-lru/v2 v2.0.7 // indirect
69+
github.com/imdario/mergo v0.3.12 // indirect
70+
github.com/jackc/chunkreader/v2 v2.0.1 // indirect
71+
github.com/jackc/pgconn v1.14.3 // indirect
72+
github.com/jackc/pgerrcode v0.0.0-20240316143900-6e2875d9b438 // indirect
73+
github.com/jackc/pgio v1.0.0 // indirect
74+
github.com/jackc/pgpassfile v1.0.0 // indirect
75+
github.com/jackc/pgproto3/v2 v2.3.3 // indirect
76+
github.com/jackc/pgservicefile v0.0.0-20221227161230-091c0ba34f0a // indirect
77+
github.com/jackc/pgtype v1.14.0 // indirect
78+
github.com/jackc/pgx/v4 v4.18.2 // indirect
79+
github.com/jackc/pgx/v5 v5.3.1 // indirect
80+
github.com/jessevdk/go-flags v1.4.0 // indirect
81+
github.com/jonboulle/clockwork v0.2.2 // indirect
82+
github.com/jrick/logrotate v1.1.2 // indirect
83+
github.com/json-iterator/go v1.1.11 // indirect
84+
github.com/juju/clock v1.1.1 // indirect
85+
github.com/juju/errors v1.0.0 // indirect
86+
github.com/juju/loggo v1.0.0 // indirect
87+
github.com/juju/testing v1.0.2 // indirect
88+
github.com/juju/utils/v3 v3.2.0 // indirect
89+
github.com/kkdai/bstream v1.0.0 // indirect
90+
github.com/klauspost/compress v1.17.9 // indirect
91+
github.com/lib/pq v1.10.9 // indirect
92+
github.com/lightninglabs/gozmq v0.0.0-20191113021534-d20a764486bf // indirect
93+
github.com/lightninglabs/neutrino v0.16.1 // indirect
94+
github.com/lightninglabs/neutrino/cache v1.1.2 // indirect
95+
github.com/lightningnetwork/lightning-onion v1.2.1-0.20240712235311-98bd56499dfb // indirect
96+
github.com/lightningnetwork/lnd/clock v1.1.1 // indirect
97+
github.com/lightningnetwork/lnd/fn/v2 v2.0.8 // indirect
98+
github.com/lightningnetwork/lnd/healthcheck v1.2.6 // indirect
99+
github.com/lightningnetwork/lnd/kvdb v1.4.15 // indirect
100+
github.com/lightningnetwork/lnd/queue v1.1.1 // indirect
101+
github.com/lightningnetwork/lnd/sqldb v1.0.9 // indirect
102+
github.com/lightningnetwork/lnd/ticker v1.1.1 // indirect
103+
github.com/lightningnetwork/lnd/tlv v1.3.0 // indirect
104+
github.com/lightningnetwork/lnd/tor v1.1.6 // indirect
105+
github.com/ltcsuite/ltcd v0.0.0-20190101042124-f37f8bf35796 // indirect
106+
github.com/mattn/go-isatty v0.0.20 // indirect
107+
github.com/matttproud/golang_protobuf_extensions v1.0.1 // indirect
108+
github.com/miekg/dns v1.1.43 // indirect
109+
github.com/mitchellh/mapstructure v1.4.1 // indirect
110+
github.com/moby/term v0.5.0 // indirect
111+
github.com/modern-go/concurrent v0.0.0-20180306012644-bacd9c7ef1dd // indirect
112+
github.com/modern-go/reflect2 v1.0.1 // indirect
113+
github.com/ncruces/go-strftime v0.1.9 // indirect
114+
github.com/opencontainers/go-digest v1.0.0 // indirect
115+
github.com/opencontainers/image-spec v1.0.2 // indirect
116+
github.com/opencontainers/runc v1.1.12 // indirect
117+
github.com/ory/dockertest/v3 v3.10.0 // indirect
118+
github.com/pkg/errors v0.9.1 // indirect
119+
github.com/pmezard/go-difflib v1.0.0 // indirect
120+
github.com/prometheus/client_golang v1.11.1 // indirect
121+
github.com/prometheus/client_model v0.2.0 // indirect
122+
github.com/prometheus/common v0.26.0 // indirect
123+
github.com/prometheus/procfs v0.6.0 // indirect
124+
github.com/remyoudompheng/bigfft v0.0.0-20230129092748-24d4a6f8daec // indirect
125+
github.com/rogpeppe/fastuuid v1.2.0 // indirect
126+
github.com/sirupsen/logrus v1.9.2 // indirect
127+
github.com/soheilhy/cmux v0.1.5 // indirect
128+
github.com/spf13/pflag v1.0.5 // indirect
129+
github.com/stretchr/objx v0.5.2 // indirect
130+
github.com/stretchr/testify v1.9.0 // indirect
131+
github.com/syndtr/goleveldb v1.0.1-0.20210819022825-2ae1ddf74ef7 // indirect
132+
github.com/tmc/grpc-websocket-proxy v0.0.0-20201229170055-e5319fda7802 // indirect
133+
github.com/xeipuuv/gojsonpointer v0.0.0-20180127040702-4e3ac2762d5f // indirect
134+
github.com/xeipuuv/gojsonreference v0.0.0-20180127040603-bd5ef7bd5415 // indirect
135+
github.com/xeipuuv/gojsonschema v1.2.0 // indirect
136+
github.com/xi2/xz v0.0.0-20171230120015-48954b6210f8 // indirect
137+
github.com/xiang90/probing v0.0.0-20190116061207-43a291ad63a2 // indirect
138+
go.etcd.io/bbolt v1.3.11 // indirect
139+
go.etcd.io/etcd/api/v3 v3.5.12 // indirect
140+
go.etcd.io/etcd/client/pkg/v3 v3.5.12 // indirect
141+
go.etcd.io/etcd/client/v2 v2.305.12 // indirect
142+
go.etcd.io/etcd/client/v3 v3.5.12 // indirect
143+
go.etcd.io/etcd/pkg/v3 v3.5.12 // indirect
144+
go.etcd.io/etcd/raft/v3 v3.5.12 // indirect
145+
go.etcd.io/etcd/server/v3 v3.5.12 // indirect
146+
go.opentelemetry.io/contrib/instrumentation/google.golang.org/grpc/otelgrpc v0.46.0 // indirect
147+
go.opentelemetry.io/otel v1.20.0 // indirect
148+
go.opentelemetry.io/otel/exporters/otlp/otlptrace v1.20.0 // indirect
149+
go.opentelemetry.io/otel/exporters/otlp/otlptrace/otlptracegrpc v1.20.0 // indirect
150+
go.opentelemetry.io/otel/metric v1.20.0 // indirect
151+
go.opentelemetry.io/otel/sdk v1.20.0 // indirect
152+
go.opentelemetry.io/otel/trace v1.20.0 // indirect
153+
go.opentelemetry.io/proto/otlp v1.0.0 // indirect
154+
go.uber.org/atomic v1.7.0 // indirect
155+
go.uber.org/multierr v1.6.0 // indirect
156+
go.uber.org/zap v1.17.0 // indirect
157+
golang.org/x/crypto v0.22.0 // indirect
158+
golang.org/x/exp v0.0.0-20240325151524-a685a6edb6d8 // indirect
159+
golang.org/x/mod v0.16.0 // indirect
160+
golang.org/x/net v0.24.0 // indirect
161+
golang.org/x/sync v0.7.0 // indirect
162+
golang.org/x/sys v0.19.0 // indirect
163+
golang.org/x/term v0.19.0 // indirect
164+
golang.org/x/text v0.14.0 // indirect
165+
golang.org/x/time v0.3.0 // indirect
166+
golang.org/x/tools v0.19.0 // indirect
167+
google.golang.org/genproto v0.0.0-20231016165738-49dd2c1f3d0b // indirect
168+
google.golang.org/genproto/googleapis/api v0.0.0-20231016165738-49dd2c1f3d0b // indirect
169+
google.golang.org/genproto/googleapis/rpc v0.0.0-20231030173426-d783a09b4405 // indirect
170+
gopkg.in/errgo.v1 v1.0.1 // indirect
171+
gopkg.in/macaroon-bakery.v2 v2.0.1 // indirect
172+
gopkg.in/macaroon.v2 v2.0.0 // indirect
173+
gopkg.in/natefinch/lumberjack.v2 v2.0.0 // indirect
174+
gopkg.in/yaml.v2 v2.4.0 // indirect
175+
gopkg.in/yaml.v3 v3.0.1 // indirect
176+
modernc.org/gc/v3 v3.0.0-20240107210532-573471604cb6 // indirect
177+
modernc.org/libc v1.49.3 // indirect
178+
modernc.org/mathutil v1.6.0 // indirect
179+
modernc.org/memory v1.8.0 // indirect
180+
modernc.org/sqlite v1.29.10 // indirect
181+
modernc.org/strutil v1.2.0 // indirect
182+
modernc.org/token v1.1.0 // indirect
183+
pgregory.net/rapid v1.2.0 // indirect
184+
sigs.k8s.io/yaml v1.2.0 // indirect
185+
)

0 commit comments

Comments
 (0)