@bitgo-beta/abstract-lightning 1.0.1-beta.34 → 1.0.1-beta.341
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +171 -0
- package/dist/src/abstractLightningCoin.d.ts +0 -1
- package/dist/src/abstractLightningCoin.d.ts.map +1 -1
- package/dist/src/abstractLightningCoin.js +1 -1
- package/dist/src/codecs/api/backup.d.ts +15 -0
- package/dist/src/codecs/api/backup.d.ts.map +1 -0
- package/dist/src/codecs/api/backup.js +47 -0
- package/dist/src/codecs/api/balance.d.ts +114 -0
- package/dist/src/codecs/api/balance.d.ts.map +1 -0
- package/dist/src/codecs/api/balance.js +92 -0
- package/dist/src/codecs/api/index.d.ts +7 -0
- package/dist/src/codecs/api/index.d.ts.map +1 -0
- package/dist/src/codecs/api/index.js +23 -0
- package/dist/src/codecs/api/invoice.d.ts +54 -0
- package/dist/src/codecs/api/invoice.d.ts.map +1 -0
- package/dist/src/codecs/api/invoice.js +105 -0
- package/dist/src/codecs/api/payment.d.ts +49 -0
- package/dist/src/codecs/api/payment.d.ts.map +1 -0
- package/dist/src/codecs/api/payment.js +105 -0
- package/dist/src/codecs/api/transaction.d.ts +82 -0
- package/dist/src/codecs/api/transaction.d.ts.map +1 -0
- package/dist/src/codecs/api/transaction.js +104 -0
- package/dist/src/codecs/api/wallet.d.ts +72 -0
- package/dist/src/codecs/api/wallet.d.ts.map +1 -0
- package/dist/src/codecs/api/wallet.js +75 -0
- package/dist/src/codecs/index.d.ts +3 -0
- package/dist/src/codecs/index.d.ts.map +1 -0
- package/dist/src/codecs/index.js +19 -0
- package/dist/src/codecs/shared.d.ts +7 -0
- package/dist/src/codecs/shared.d.ts.map +1 -0
- package/dist/src/codecs/shared.js +42 -0
- package/dist/src/index.d.ts +3 -0
- package/dist/src/index.d.ts.map +1 -1
- package/dist/src/index.js +4 -1
- package/dist/src/lightning/index.d.ts +4 -0
- package/dist/src/lightning/index.d.ts.map +1 -0
- package/dist/src/lightning/index.js +20 -0
- package/dist/src/lightning/lightningUtils.d.ts +59 -0
- package/dist/src/lightning/lightningUtils.d.ts.map +1 -0
- package/dist/src/lightning/lightningUtils.js +224 -0
- package/dist/src/lightning/signableJson.d.ts +17 -0
- package/dist/src/lightning/signableJson.d.ts.map +1 -0
- package/dist/src/lightning/signableJson.js +29 -0
- package/dist/src/lightning/signature.d.ts +22 -0
- package/dist/src/lightning/signature.d.ts.map +1 -0
- package/dist/src/lightning/signature.js +69 -0
- package/dist/src/wallet/index.d.ts +3 -0
- package/dist/src/wallet/index.d.ts.map +1 -0
- package/dist/src/wallet/index.js +19 -0
- package/dist/src/wallet/lightning.d.ts +71 -0
- package/dist/src/wallet/lightning.d.ts.map +1 -0
- package/dist/src/wallet/lightning.js +121 -0
- package/dist/src/wallet/wallet.d.ts +7 -0
- package/dist/src/wallet/wallet.d.ts.map +1 -0
- package/dist/src/wallet/wallet.js +15 -0
- package/package.json +12 -4
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,177 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
# [2.0.0](https://github.com/BitGo/BitGoJS/compare/@bitgo/abstract-lightning@1.2.44...@bitgo/abstract-lightning@2.0.0) (2025-02-20)
|
|
7
|
+
|
|
8
|
+
### Features
|
|
9
|
+
|
|
10
|
+
- **abstract-lightning:** move lnv2 logic from sdk-core ([5c9114d](https://github.com/BitGo/BitGoJS/commit/5c9114d6a4dbdd5a130bde7cb897ff6f1f8132e0))
|
|
11
|
+
- **abstract-lightning:** wire up lnv2 invoices ([dba5411](https://github.com/BitGo/BitGoJS/commit/dba5411dea805ab3bf5e3937736d5c0d6f166e49))
|
|
12
|
+
|
|
13
|
+
### BREAKING CHANGES
|
|
14
|
+
|
|
15
|
+
- **abstract-lightning:** Lightning v2
|
|
16
|
+
|
|
17
|
+
## [1.2.44](https://github.com/BitGo/BitGoJS/compare/@bitgo/abstract-lightning@1.2.42...@bitgo/abstract-lightning@1.2.44) (2025-02-19)
|
|
18
|
+
|
|
19
|
+
**Note:** Version bump only for package @bitgo/abstract-lightning
|
|
20
|
+
|
|
21
|
+
## [1.2.43](https://github.com/BitGo/BitGoJS/compare/@bitgo/abstract-lightning@1.2.42...@bitgo/abstract-lightning@1.2.43) (2025-02-11)
|
|
22
|
+
|
|
23
|
+
**Note:** Version bump only for package @bitgo/abstract-lightning
|
|
24
|
+
|
|
25
|
+
## [1.2.42](https://github.com/BitGo/BitGoJS/compare/@bitgo/abstract-lightning@1.2.41...@bitgo/abstract-lightning@1.2.42) (2025-02-05)
|
|
26
|
+
|
|
27
|
+
**Note:** Version bump only for package @bitgo/abstract-lightning
|
|
28
|
+
|
|
29
|
+
## [1.2.41](https://github.com/BitGo/BitGoJS/compare/@bitgo/abstract-lightning@1.2.40...@bitgo/abstract-lightning@1.2.41) (2025-01-28)
|
|
30
|
+
|
|
31
|
+
**Note:** Version bump only for package @bitgo/abstract-lightning
|
|
32
|
+
|
|
33
|
+
## [1.2.40](https://github.com/BitGo/BitGoJS/compare/@bitgo/abstract-lightning@1.2.39...@bitgo/abstract-lightning@1.2.40) (2025-01-23)
|
|
34
|
+
|
|
35
|
+
**Note:** Version bump only for package @bitgo/abstract-lightning
|
|
36
|
+
|
|
37
|
+
## [1.2.39](https://github.com/BitGo/BitGoJS/compare/@bitgo/abstract-lightning@1.2.38...@bitgo/abstract-lightning@1.2.39) (2025-01-23)
|
|
38
|
+
|
|
39
|
+
**Note:** Version bump only for package @bitgo/abstract-lightning
|
|
40
|
+
|
|
41
|
+
## [1.2.38](https://github.com/BitGo/BitGoJS/compare/@bitgo/abstract-lightning@1.2.37...@bitgo/abstract-lightning@1.2.38) (2025-01-20)
|
|
42
|
+
|
|
43
|
+
**Note:** Version bump only for package @bitgo/abstract-lightning
|
|
44
|
+
|
|
45
|
+
## [1.2.37](https://github.com/BitGo/BitGoJS/compare/@bitgo/abstract-lightning@1.2.36...@bitgo/abstract-lightning@1.2.37) (2025-01-15)
|
|
46
|
+
|
|
47
|
+
**Note:** Version bump only for package @bitgo/abstract-lightning
|
|
48
|
+
|
|
49
|
+
## [1.2.36](https://github.com/BitGo/BitGoJS/compare/@bitgo/abstract-lightning@1.2.35...@bitgo/abstract-lightning@1.2.36) (2025-01-09)
|
|
50
|
+
|
|
51
|
+
**Note:** Version bump only for package @bitgo/abstract-lightning
|
|
52
|
+
|
|
53
|
+
## [1.2.35](https://github.com/BitGo/BitGoJS/compare/@bitgo/abstract-lightning@1.2.34...@bitgo/abstract-lightning@1.2.35) (2025-01-03)
|
|
54
|
+
|
|
55
|
+
**Note:** Version bump only for package @bitgo/abstract-lightning
|
|
56
|
+
|
|
57
|
+
## [1.2.34](https://github.com/BitGo/BitGoJS/compare/@bitgo/abstract-lightning@1.2.33...@bitgo/abstract-lightning@1.2.34) (2024-12-24)
|
|
58
|
+
|
|
59
|
+
**Note:** Version bump only for package @bitgo/abstract-lightning
|
|
60
|
+
|
|
61
|
+
## [1.2.33](https://github.com/BitGo/BitGoJS/compare/@bitgo/abstract-lightning@1.2.32...@bitgo/abstract-lightning@1.2.33) (2024-12-19)
|
|
62
|
+
|
|
63
|
+
**Note:** Version bump only for package @bitgo/abstract-lightning
|
|
64
|
+
|
|
65
|
+
## [1.2.32](https://github.com/BitGo/BitGoJS/compare/@bitgo/abstract-lightning@1.2.30...@bitgo/abstract-lightning@1.2.32) (2024-12-17)
|
|
66
|
+
|
|
67
|
+
**Note:** Version bump only for package @bitgo/abstract-lightning
|
|
68
|
+
|
|
69
|
+
## [1.2.31](https://github.com/BitGo/BitGoJS/compare/@bitgo/abstract-lightning@1.2.30...@bitgo/abstract-lightning@1.2.31) (2024-12-17)
|
|
70
|
+
|
|
71
|
+
**Note:** Version bump only for package @bitgo/abstract-lightning
|
|
72
|
+
|
|
73
|
+
## [1.2.30](https://github.com/BitGo/BitGoJS/compare/@bitgo/abstract-lightning@1.2.29...@bitgo/abstract-lightning@1.2.30) (2024-12-12)
|
|
74
|
+
|
|
75
|
+
**Note:** Version bump only for package @bitgo/abstract-lightning
|
|
76
|
+
|
|
77
|
+
## [1.2.29](https://github.com/BitGo/BitGoJS/compare/@bitgo/abstract-lightning@1.2.28...@bitgo/abstract-lightning@1.2.29) (2024-12-11)
|
|
78
|
+
|
|
79
|
+
**Note:** Version bump only for package @bitgo/abstract-lightning
|
|
80
|
+
|
|
81
|
+
## [1.2.28](https://github.com/BitGo/BitGoJS/compare/@bitgo/abstract-lightning@1.2.27...@bitgo/abstract-lightning@1.2.28) (2024-12-03)
|
|
82
|
+
|
|
83
|
+
**Note:** Version bump only for package @bitgo/abstract-lightning
|
|
84
|
+
|
|
85
|
+
## [1.2.27](https://github.com/BitGo/BitGoJS/compare/@bitgo/abstract-lightning@1.2.26...@bitgo/abstract-lightning@1.2.27) (2024-11-26)
|
|
86
|
+
|
|
87
|
+
**Note:** Version bump only for package @bitgo/abstract-lightning
|
|
88
|
+
|
|
89
|
+
## [1.2.26](https://github.com/BitGo/BitGoJS/compare/@bitgo/abstract-lightning@1.2.25...@bitgo/abstract-lightning@1.2.26) (2024-11-21)
|
|
90
|
+
|
|
91
|
+
**Note:** Version bump only for package @bitgo/abstract-lightning
|
|
92
|
+
|
|
93
|
+
## [1.2.25](https://github.com/BitGo/BitGoJS/compare/@bitgo/abstract-lightning@1.2.23...@bitgo/abstract-lightning@1.2.25) (2024-11-19)
|
|
94
|
+
|
|
95
|
+
**Note:** Version bump only for package @bitgo/abstract-lightning
|
|
96
|
+
|
|
97
|
+
## [1.2.24](https://github.com/BitGo/BitGoJS/compare/@bitgo/abstract-lightning@1.2.23...@bitgo/abstract-lightning@1.2.24) (2024-11-14)
|
|
98
|
+
|
|
99
|
+
**Note:** Version bump only for package @bitgo/abstract-lightning
|
|
100
|
+
|
|
101
|
+
## [1.2.23](https://github.com/BitGo/BitGoJS/compare/@bitgo/abstract-lightning@1.2.22...@bitgo/abstract-lightning@1.2.23) (2024-11-08)
|
|
102
|
+
|
|
103
|
+
**Note:** Version bump only for package @bitgo/abstract-lightning
|
|
104
|
+
|
|
105
|
+
## [1.2.22](https://github.com/BitGo/BitGoJS/compare/@bitgo/abstract-lightning@1.2.21...@bitgo/abstract-lightning@1.2.22) (2024-11-07)
|
|
106
|
+
|
|
107
|
+
**Note:** Version bump only for package @bitgo/abstract-lightning
|
|
108
|
+
|
|
109
|
+
## [1.2.21](https://github.com/BitGo/BitGoJS/compare/@bitgo/abstract-lightning@1.2.20...@bitgo/abstract-lightning@1.2.21) (2024-11-01)
|
|
110
|
+
|
|
111
|
+
**Note:** Version bump only for package @bitgo/abstract-lightning
|
|
112
|
+
|
|
113
|
+
## [1.2.20](https://github.com/BitGo/BitGoJS/compare/@bitgo/abstract-lightning@1.2.19...@bitgo/abstract-lightning@1.2.20) (2024-10-22)
|
|
114
|
+
|
|
115
|
+
**Note:** Version bump only for package @bitgo/abstract-lightning
|
|
116
|
+
|
|
117
|
+
## [1.2.19](https://github.com/BitGo/BitGoJS/compare/@bitgo/abstract-lightning@1.2.18...@bitgo/abstract-lightning@1.2.19) (2024-10-15)
|
|
118
|
+
|
|
119
|
+
**Note:** Version bump only for package @bitgo/abstract-lightning
|
|
120
|
+
|
|
121
|
+
## [1.2.18](https://github.com/BitGo/BitGoJS/compare/@bitgo/abstract-lightning@1.2.17...@bitgo/abstract-lightning@1.2.18) (2024-10-08)
|
|
122
|
+
|
|
123
|
+
**Note:** Version bump only for package @bitgo/abstract-lightning
|
|
124
|
+
|
|
125
|
+
## [1.2.17](https://github.com/BitGo/BitGoJS/compare/@bitgo/abstract-lightning@1.2.16...@bitgo/abstract-lightning@1.2.17) (2024-10-04)
|
|
126
|
+
|
|
127
|
+
**Note:** Version bump only for package @bitgo/abstract-lightning
|
|
128
|
+
|
|
129
|
+
## [1.2.16](https://github.com/BitGo/BitGoJS/compare/@bitgo/abstract-lightning@1.2.15...@bitgo/abstract-lightning@1.2.16) (2024-09-24)
|
|
130
|
+
|
|
131
|
+
**Note:** Version bump only for package @bitgo/abstract-lightning
|
|
132
|
+
|
|
133
|
+
## [1.2.15](https://github.com/BitGo/BitGoJS/compare/@bitgo/abstract-lightning@1.2.14...@bitgo/abstract-lightning@1.2.15) (2024-09-19)
|
|
134
|
+
|
|
135
|
+
**Note:** Version bump only for package @bitgo/abstract-lightning
|
|
136
|
+
|
|
137
|
+
## [1.2.14](https://github.com/BitGo/BitGoJS/compare/@bitgo/abstract-lightning@1.2.13...@bitgo/abstract-lightning@1.2.14) (2024-09-16)
|
|
138
|
+
|
|
139
|
+
**Note:** Version bump only for package @bitgo/abstract-lightning
|
|
140
|
+
|
|
141
|
+
## [1.2.13](https://github.com/BitGo/BitGoJS/compare/@bitgo/abstract-lightning@1.2.12...@bitgo/abstract-lightning@1.2.13) (2024-09-10)
|
|
142
|
+
|
|
143
|
+
**Note:** Version bump only for package @bitgo/abstract-lightning
|
|
144
|
+
|
|
145
|
+
## [1.2.12](https://github.com/BitGo/BitGoJS/compare/@bitgo/abstract-lightning@1.2.11...@bitgo/abstract-lightning@1.2.12) (2024-09-03)
|
|
146
|
+
|
|
147
|
+
**Note:** Version bump only for package @bitgo/abstract-lightning
|
|
148
|
+
|
|
149
|
+
## [1.2.11](https://github.com/BitGo/BitGoJS/compare/@bitgo/abstract-lightning@1.2.10...@bitgo/abstract-lightning@1.2.11) (2024-08-29)
|
|
150
|
+
|
|
151
|
+
**Note:** Version bump only for package @bitgo/abstract-lightning
|
|
152
|
+
|
|
153
|
+
## [1.2.10](https://github.com/BitGo/BitGoJS/compare/@bitgo/abstract-lightning@1.2.9...@bitgo/abstract-lightning@1.2.10) (2024-08-27)
|
|
154
|
+
|
|
155
|
+
**Note:** Version bump only for package @bitgo/abstract-lightning
|
|
156
|
+
|
|
157
|
+
## [1.2.9](https://github.com/BitGo/BitGoJS/compare/@bitgo/abstract-lightning@1.2.7...@bitgo/abstract-lightning@1.2.9) (2024-08-20)
|
|
158
|
+
|
|
159
|
+
**Note:** Version bump only for package @bitgo/abstract-lightning
|
|
160
|
+
|
|
161
|
+
## [1.2.8](https://github.com/BitGo/BitGoJS/compare/@bitgo/abstract-lightning@1.2.7...@bitgo/abstract-lightning@1.2.8) (2024-08-13)
|
|
162
|
+
|
|
163
|
+
**Note:** Version bump only for package @bitgo/abstract-lightning
|
|
164
|
+
|
|
165
|
+
## [1.2.7](https://github.com/BitGo/BitGoJS/compare/@bitgo/abstract-lightning@1.2.6...@bitgo/abstract-lightning@1.2.7) (2024-08-07)
|
|
166
|
+
|
|
167
|
+
**Note:** Version bump only for package @bitgo/abstract-lightning
|
|
168
|
+
|
|
169
|
+
## [1.2.6](https://github.com/BitGo/BitGoJS/compare/@bitgo/abstract-lightning@1.2.5...@bitgo/abstract-lightning@1.2.6) (2024-07-30)
|
|
170
|
+
|
|
171
|
+
**Note:** Version bump only for package @bitgo/abstract-lightning
|
|
172
|
+
|
|
173
|
+
## [1.2.5](https://github.com/BitGo/BitGoJS/compare/@bitgo/abstract-lightning@1.2.4...@bitgo/abstract-lightning@1.2.5) (2024-07-24)
|
|
174
|
+
|
|
175
|
+
**Note:** Version bump only for package @bitgo/abstract-lightning
|
|
176
|
+
|
|
6
177
|
## [1.2.4](https://github.com/BitGo/BitGoJS/compare/@bitgo/abstract-lightning@1.2.3...@bitgo/abstract-lightning@1.2.4) (2024-07-16)
|
|
7
178
|
|
|
8
179
|
**Note:** Version bump only for package @bitgo/abstract-lightning
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
/// <reference types="node" />
|
|
2
1
|
import { BaseCoin, BitGoBase, KeyPair, ParsedTransaction, ParseTransactionOptions, SignedTransaction, SignTransactionOptions, VerifyAddressOptions, VerifyTransactionOptions } from '@bitgo-beta/sdk-core';
|
|
3
2
|
import * as utxolib from '@bitgo-beta/utxo-lib';
|
|
4
3
|
export declare abstract class AbstractLightningCoin extends BaseCoin {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"abstractLightningCoin.d.ts","sourceRoot":"","sources":["../../src/abstractLightningCoin.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"abstractLightningCoin.d.ts","sourceRoot":"","sources":["../../src/abstractLightningCoin.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,QAAQ,EACR,SAAS,EACT,OAAO,EACP,iBAAiB,EACjB,uBAAuB,EACvB,iBAAiB,EACjB,sBAAsB,EACtB,oBAAoB,EACpB,wBAAwB,EACzB,MAAM,sBAAsB,CAAC;AAC9B,OAAO,KAAK,OAAO,MAAM,sBAAsB,CAAC;AAIhD,8BAAsB,qBAAsB,SAAQ,QAAQ;IAC1D,OAAO,CAAC,QAAQ,CAAC,QAAQ,CAAkB;IAC3C,SAAS,aAAa,KAAK,EAAE,SAAS,EAAE,OAAO,EAAE,OAAO,CAAC,OAAO;IAKhE,aAAa,IAAI,MAAM;IAIvB,iBAAiB,CAAC,MAAM,EAAE,wBAAwB,GAAG,OAAO,CAAC,OAAO,CAAC;IAIrE,eAAe,CAAC,MAAM,EAAE,oBAAoB,GAAG,OAAO,CAAC,OAAO,CAAC;IAI/D,gBAAgB,CAAC,MAAM,EAAE,uBAAuB,GAAG,OAAO,CAAC,iBAAiB,CAAC;IAI7E,eAAe,CAAC,IAAI,CAAC,EAAE,MAAM,GAAG,OAAO;IAcvC,UAAU,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO;IAIhC,cAAc,CAAC,OAAO,EAAE,MAAM,GAAG,OAAO;IAIxC,eAAe,CAAC,MAAM,EAAE,sBAAsB,GAAG,OAAO,CAAC,iBAAiB,CAAC;CAG5E"}
|
|
@@ -45,4 +45,4 @@ class AbstractLightningCoin extends sdk_core_1.BaseCoin {
|
|
|
45
45
|
}
|
|
46
46
|
}
|
|
47
47
|
exports.AbstractLightningCoin = AbstractLightningCoin;
|
|
48
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
48
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLC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XRlIGtleSBhbmQgYSAyNTZcbiAgICAgIC8vIGJpdCBjaGFpbiBjb2RlLCBib3RoIG9mIHdoaWNoIG11c3QgYmUgcmFuZG9tLiA1MTIgYml0cyBpcyB0aGVyZWZvcmUgdGhlXG4gICAgICAvLyBtYXhpbXVtIGVudHJvcHkgYW5kIGdpdmVzIHVzIG1heGltdW0gc2VjdXJpdHkgYWdhaW5zdCBjcmFja2luZy5cbiAgICAgIHNlZWQgPSByYW5kb21CeXRlcyg1MTIgLyA4KTtcbiAgICB9XG4gICAgY29uc3QgZXh0ZW5kZWRLZXkgPSBiaXAzMi5mcm9tU2VlZChzZWVkKTtcbiAgICByZXR1cm4ge1xuICAgICAgcHViOiBleHRlbmRlZEtleS5uZXV0ZXJlZCgpLnRvQmFzZTU4KCksXG4gICAgICBwcnY6IGV4dGVuZGVkS2V5LnRvQmFzZTU4KCksXG4gICAgfTtcbiAgfVxuXG4gIGlzVmFsaWRQdWIocHViOiBzdHJpbmcpOiBib29sZWFuIHtcbiAgICB0aHJvdyBuZXcgRXJyb3IoJ01ldGhvZCBub3QgaW1wbGVtZW50ZWQuJyk7XG4gIH1cblxuICBpc1ZhbGlkQWRkcmVzcyhhZGRyZXNzOiBzdHJpbmcpOiBib29sZWFuIHtcbiAgICB0aHJvdyBuZXcgRXJyb3IoJ01ldGhvZCBub3QgaW1wbGVtZW50ZWQuJyk7XG4gIH1cblxuICBzaWduVHJhbnNhY3Rpb24ocGFyYW1zOiBTaWduVHJhbnNhY3Rpb25PcHRpb25zKTogUHJvbWlzZTxTaWduZWRUcmFuc2FjdGlvbj4ge1xuICAgIHRocm93IG5ldyBFcnJvcignTWV0aG9kIG5vdCBpbXBsZW1lbnRlZC4nKTtcbiAgfVxufVxuIl19
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import * as t from 'io-ts';
|
|
2
|
+
export declare const ChanPoints: t.ExactC<t.TypeC<{
|
|
3
|
+
fundingTxid: t.StringC;
|
|
4
|
+
outputIndex: t.NumberC;
|
|
5
|
+
}>>;
|
|
6
|
+
export type ChanPoints = t.TypeOf<typeof ChanPoints>;
|
|
7
|
+
export declare const BackupResponse: t.ExactC<t.TypeC<{
|
|
8
|
+
chanPoints: t.ArrayC<t.ExactC<t.TypeC<{
|
|
9
|
+
fundingTxid: t.StringC;
|
|
10
|
+
outputIndex: t.NumberC;
|
|
11
|
+
}>>>;
|
|
12
|
+
multiChanBackup: t.StringC;
|
|
13
|
+
}>>;
|
|
14
|
+
export type BackupResponse = t.TypeOf<typeof BackupResponse>;
|
|
15
|
+
//# sourceMappingURL=backup.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"backup.d.ts","sourceRoot":"","sources":["../../../../src/codecs/api/backup.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,OAAO,CAAC;AAI3B,eAAO,MAAM,UAAU;;;GAMtB,CAAC;AAEF,MAAM,MAAM,UAAU,GAAG,CAAC,CAAC,MAAM,CAAC,OAAO,UAAU,CAAC,CAAC;AAErD,eAAO,MAAM,cAAc;;;;;;GAM1B,CAAC;AAEF,MAAM,MAAM,cAAc,GAAG,CAAC,CAAC,MAAM,CAAC,OAAO,cAAc,CAAC,CAAC"}
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
+
}) : function(o, v) {
|
|
16
|
+
o["default"] = v;
|
|
17
|
+
});
|
|
18
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
19
|
+
var ownKeys = function(o) {
|
|
20
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
21
|
+
var ar = [];
|
|
22
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
23
|
+
return ar;
|
|
24
|
+
};
|
|
25
|
+
return ownKeys(o);
|
|
26
|
+
};
|
|
27
|
+
return function (mod) {
|
|
28
|
+
if (mod && mod.__esModule) return mod;
|
|
29
|
+
var result = {};
|
|
30
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
31
|
+
__setModuleDefault(result, mod);
|
|
32
|
+
return result;
|
|
33
|
+
};
|
|
34
|
+
})();
|
|
35
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
36
|
+
exports.BackupResponse = exports.ChanPoints = void 0;
|
|
37
|
+
const t = __importStar(require("io-ts"));
|
|
38
|
+
// codecs for lightning wallet channel backup api
|
|
39
|
+
exports.ChanPoints = t.strict({
|
|
40
|
+
fundingTxid: t.string,
|
|
41
|
+
outputIndex: t.number,
|
|
42
|
+
}, 'ChanPoints');
|
|
43
|
+
exports.BackupResponse = t.strict({
|
|
44
|
+
chanPoints: t.array(exports.ChanPoints),
|
|
45
|
+
multiChanBackup: t.string,
|
|
46
|
+
}, 'BackupResponse');
|
|
47
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYmFja3VwLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vc3JjL2NvZGVjcy9hcGkvYmFja3VwLnRzIl0sIm5hbWVzIjpbXSw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ZXhwb3J0IHR5cGUgQmFja3VwUmVzcG9uc2UgPSB0LlR5cGVPZjx0eXBlb2YgQmFja3VwUmVzcG9uc2U+O1xuIl19
|
|
@@ -0,0 +1,114 @@
|
|
|
1
|
+
import * as t from 'io-ts';
|
|
2
|
+
export declare const LndAmount: t.ExactC<t.TypeC<{
|
|
3
|
+
sat: import("io-ts-types/BigIntFromString").BigIntFromStringC;
|
|
4
|
+
msat: import("io-ts-types/BigIntFromString").BigIntFromStringC;
|
|
5
|
+
}>>;
|
|
6
|
+
export type LndAmount = t.TypeOf<typeof LndAmount>;
|
|
7
|
+
export declare const ChannelBalance: t.ExactC<t.TypeC<{
|
|
8
|
+
/** The balance on your side of the channel and what you the user can spend. */
|
|
9
|
+
localBalance: t.ExactC<t.TypeC<{
|
|
10
|
+
sat: import("io-ts-types/BigIntFromString").BigIntFromStringC;
|
|
11
|
+
msat: import("io-ts-types/BigIntFromString").BigIntFromStringC;
|
|
12
|
+
}>>;
|
|
13
|
+
/** The balance on the other side of the channel, what your channel partner can controls. */
|
|
14
|
+
remoteBalance: t.ExactC<t.TypeC<{
|
|
15
|
+
sat: import("io-ts-types/BigIntFromString").BigIntFromStringC;
|
|
16
|
+
msat: import("io-ts-types/BigIntFromString").BigIntFromStringC;
|
|
17
|
+
}>>;
|
|
18
|
+
/** Sum of local unsettled balances. */
|
|
19
|
+
unsettledLocalBalance: t.ExactC<t.TypeC<{
|
|
20
|
+
sat: import("io-ts-types/BigIntFromString").BigIntFromStringC;
|
|
21
|
+
msat: import("io-ts-types/BigIntFromString").BigIntFromStringC;
|
|
22
|
+
}>>;
|
|
23
|
+
/** Sum of remote unsettled balances. */
|
|
24
|
+
unsettledRemoteBalance: t.ExactC<t.TypeC<{
|
|
25
|
+
sat: import("io-ts-types/BigIntFromString").BigIntFromStringC;
|
|
26
|
+
msat: import("io-ts-types/BigIntFromString").BigIntFromStringC;
|
|
27
|
+
}>>;
|
|
28
|
+
/** Sum of local pending balances. */
|
|
29
|
+
pendingOpenLocalBalance: t.ExactC<t.TypeC<{
|
|
30
|
+
sat: import("io-ts-types/BigIntFromString").BigIntFromStringC;
|
|
31
|
+
msat: import("io-ts-types/BigIntFromString").BigIntFromStringC;
|
|
32
|
+
}>>;
|
|
33
|
+
/** Sum of local remote balances. */
|
|
34
|
+
pendingOpenRemoteBalance: t.ExactC<t.TypeC<{
|
|
35
|
+
sat: import("io-ts-types/BigIntFromString").BigIntFromStringC;
|
|
36
|
+
msat: import("io-ts-types/BigIntFromString").BigIntFromStringC;
|
|
37
|
+
}>>;
|
|
38
|
+
}>>;
|
|
39
|
+
export type ChannelBalance = t.TypeOf<typeof ChannelBalance>;
|
|
40
|
+
export declare const LndWalletBalance: t.ExactC<t.TypeC<{
|
|
41
|
+
/** Total balance, confirmed and unconfirmed */
|
|
42
|
+
totalBalance: import("io-ts-types/BigIntFromString").BigIntFromStringC;
|
|
43
|
+
confirmedBalance: import("io-ts-types/BigIntFromString").BigIntFromStringC;
|
|
44
|
+
unconfirmedBalance: import("io-ts-types/BigIntFromString").BigIntFromStringC;
|
|
45
|
+
lockedBalance: import("io-ts-types/BigIntFromString").BigIntFromStringC;
|
|
46
|
+
reservedBalanceAnchorChan: import("io-ts-types/BigIntFromString").BigIntFromStringC;
|
|
47
|
+
}>>;
|
|
48
|
+
export type LndWalletBalance = t.TypeOf<typeof LndWalletBalance>;
|
|
49
|
+
/**
|
|
50
|
+
The balances as returned from lnd.
|
|
51
|
+
|
|
52
|
+
Wallet Balance
|
|
53
|
+
https://api.lightning.community/api/lnd/lightning/wallet-balance/index.html
|
|
54
|
+
|
|
55
|
+
Channel Balance
|
|
56
|
+
https://api.lightning.community/api/lnd/lightning/channel-balance/index.html
|
|
57
|
+
*/
|
|
58
|
+
export declare const LndBalance: t.ExactC<t.TypeC<{
|
|
59
|
+
offchain: t.ExactC<t.TypeC<{
|
|
60
|
+
/** The balance on your side of the channel and what you the user can spend. */
|
|
61
|
+
localBalance: t.ExactC<t.TypeC<{
|
|
62
|
+
sat: import("io-ts-types/BigIntFromString").BigIntFromStringC;
|
|
63
|
+
msat: import("io-ts-types/BigIntFromString").BigIntFromStringC;
|
|
64
|
+
}>>;
|
|
65
|
+
/** The balance on the other side of the channel, what your channel partner can controls. */
|
|
66
|
+
remoteBalance: t.ExactC<t.TypeC<{
|
|
67
|
+
sat: import("io-ts-types/BigIntFromString").BigIntFromStringC;
|
|
68
|
+
msat: import("io-ts-types/BigIntFromString").BigIntFromStringC;
|
|
69
|
+
}>>;
|
|
70
|
+
/** Sum of local unsettled balances. */
|
|
71
|
+
unsettledLocalBalance: t.ExactC<t.TypeC<{
|
|
72
|
+
sat: import("io-ts-types/BigIntFromString").BigIntFromStringC;
|
|
73
|
+
msat: import("io-ts-types/BigIntFromString").BigIntFromStringC;
|
|
74
|
+
}>>;
|
|
75
|
+
/** Sum of remote unsettled balances. */
|
|
76
|
+
unsettledRemoteBalance: t.ExactC<t.TypeC<{
|
|
77
|
+
sat: import("io-ts-types/BigIntFromString").BigIntFromStringC;
|
|
78
|
+
msat: import("io-ts-types/BigIntFromString").BigIntFromStringC;
|
|
79
|
+
}>>;
|
|
80
|
+
/** Sum of local pending balances. */
|
|
81
|
+
pendingOpenLocalBalance: t.ExactC<t.TypeC<{
|
|
82
|
+
sat: import("io-ts-types/BigIntFromString").BigIntFromStringC;
|
|
83
|
+
msat: import("io-ts-types/BigIntFromString").BigIntFromStringC;
|
|
84
|
+
}>>;
|
|
85
|
+
/** Sum of local remote balances. */
|
|
86
|
+
pendingOpenRemoteBalance: t.ExactC<t.TypeC<{
|
|
87
|
+
sat: import("io-ts-types/BigIntFromString").BigIntFromStringC;
|
|
88
|
+
msat: import("io-ts-types/BigIntFromString").BigIntFromStringC;
|
|
89
|
+
}>>;
|
|
90
|
+
}>>;
|
|
91
|
+
onchain: t.ExactC<t.TypeC<{
|
|
92
|
+
/** Total balance, confirmed and unconfirmed */
|
|
93
|
+
totalBalance: import("io-ts-types/BigIntFromString").BigIntFromStringC;
|
|
94
|
+
confirmedBalance: import("io-ts-types/BigIntFromString").BigIntFromStringC;
|
|
95
|
+
unconfirmedBalance: import("io-ts-types/BigIntFromString").BigIntFromStringC;
|
|
96
|
+
lockedBalance: import("io-ts-types/BigIntFromString").BigIntFromStringC;
|
|
97
|
+
reservedBalanceAnchorChan: import("io-ts-types/BigIntFromString").BigIntFromStringC;
|
|
98
|
+
}>>;
|
|
99
|
+
totalLimboBalance: import("io-ts-types/BigIntFromString").BigIntFromStringC;
|
|
100
|
+
}>>;
|
|
101
|
+
export type LndBalance = t.TypeOf<typeof LndBalance>;
|
|
102
|
+
export declare const LndGetBalancesResponse: t.ExactC<t.TypeC<{
|
|
103
|
+
inboundBalance: import("io-ts-types/BigIntFromString").BigIntFromStringC;
|
|
104
|
+
inboundPendingBalance: import("io-ts-types/BigIntFromString").BigIntFromStringC;
|
|
105
|
+
inboundUnsettledBalance: import("io-ts-types/BigIntFromString").BigIntFromStringC;
|
|
106
|
+
outboundBalance: import("io-ts-types/BigIntFromString").BigIntFromStringC;
|
|
107
|
+
outboundPendingBalance: import("io-ts-types/BigIntFromString").BigIntFromStringC;
|
|
108
|
+
outboundUnsettledBalance: import("io-ts-types/BigIntFromString").BigIntFromStringC;
|
|
109
|
+
spendableBalanceString: import("io-ts-types/BigIntFromString").BigIntFromStringC;
|
|
110
|
+
balanceString: import("io-ts-types/BigIntFromString").BigIntFromStringC;
|
|
111
|
+
confirmedBalanceString: import("io-ts-types/BigIntFromString").BigIntFromStringC;
|
|
112
|
+
}>>;
|
|
113
|
+
export type LndGetBalancesResponse = t.TypeOf<typeof LndGetBalancesResponse>;
|
|
114
|
+
//# sourceMappingURL=balance.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"balance.d.ts","sourceRoot":"","sources":["../../../../src/codecs/api/balance.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,OAAO,CAAC;AAK3B,eAAO,MAAM,SAAS;;;GAMrB,CAAC;AAEF,MAAM,MAAM,SAAS,GAAG,CAAC,CAAC,MAAM,CAAC,OAAO,SAAS,CAAC,CAAC;AAEnD,eAAO,MAAM,cAAc;IAEvB,+EAA+E;;;;;IAE/E,4FAA4F;;;;;IAE5F,uCAAuC;;;;;IAEvC,wCAAwC;;;;;IAExC,qCAAqC;;;;;IAErC,oCAAoC;;;;;GAIvC,CAAC;AAEF,MAAM,MAAM,cAAc,GAAG,CAAC,CAAC,MAAM,CAAC,OAAO,cAAc,CAAC,CAAC;AAE7D,eAAO,MAAM,gBAAgB;IAEzB,+CAA+C;;;;;;GAQlD,CAAC;AAEF,MAAM,MAAM,gBAAgB,GAAG,CAAC,CAAC,MAAM,CAAC,OAAO,gBAAgB,CAAC,CAAC;AAEjE;;;;;;;;GAQG;AACH,eAAO,MAAM,UAAU;;QAzCnB,+EAA+E;;;;;QAE/E,4FAA4F;;;;;QAE5F,uCAAuC;;;;;QAEvC,wCAAwC;;;;;QAExC,qCAAqC;;;;;QAErC,oCAAoC;;;;;;;QAUpC,+CAA+C;;;;;;;;GA4BlD,CAAC;AAEF,MAAM,MAAM,UAAU,GAAG,CAAC,CAAC,MAAM,CAAC,OAAO,UAAU,CAAC,CAAC;AAErD,eAAO,MAAM,sBAAsB;;;;;;;;;;GAclC,CAAC;AAEF,MAAM,MAAM,sBAAsB,GAAG,CAAC,CAAC,MAAM,CAAC,OAAO,sBAAsB,CAAC,CAAC"}
|
|
@@ -0,0 +1,92 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
+
}) : function(o, v) {
|
|
16
|
+
o["default"] = v;
|
|
17
|
+
});
|
|
18
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
19
|
+
var ownKeys = function(o) {
|
|
20
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
21
|
+
var ar = [];
|
|
22
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
23
|
+
return ar;
|
|
24
|
+
};
|
|
25
|
+
return ownKeys(o);
|
|
26
|
+
};
|
|
27
|
+
return function (mod) {
|
|
28
|
+
if (mod && mod.__esModule) return mod;
|
|
29
|
+
var result = {};
|
|
30
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
31
|
+
__setModuleDefault(result, mod);
|
|
32
|
+
return result;
|
|
33
|
+
};
|
|
34
|
+
})();
|
|
35
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
36
|
+
exports.LndGetBalancesResponse = exports.LndBalance = exports.LndWalletBalance = exports.ChannelBalance = exports.LndAmount = void 0;
|
|
37
|
+
const t = __importStar(require("io-ts"));
|
|
38
|
+
const BigIntFromString_1 = require("io-ts-types/BigIntFromString");
|
|
39
|
+
// codecs for lightning wallet balance api
|
|
40
|
+
exports.LndAmount = t.strict({
|
|
41
|
+
sat: BigIntFromString_1.BigIntFromString,
|
|
42
|
+
msat: BigIntFromString_1.BigIntFromString,
|
|
43
|
+
}, 'LndAmount');
|
|
44
|
+
exports.ChannelBalance = t.strict({
|
|
45
|
+
/** The balance on your side of the channel and what you the user can spend. */
|
|
46
|
+
localBalance: exports.LndAmount,
|
|
47
|
+
/** The balance on the other side of the channel, what your channel partner can controls. */
|
|
48
|
+
remoteBalance: exports.LndAmount,
|
|
49
|
+
/** Sum of local unsettled balances. */
|
|
50
|
+
unsettledLocalBalance: exports.LndAmount,
|
|
51
|
+
/** Sum of remote unsettled balances. */
|
|
52
|
+
unsettledRemoteBalance: exports.LndAmount,
|
|
53
|
+
/** Sum of local pending balances. */
|
|
54
|
+
pendingOpenLocalBalance: exports.LndAmount,
|
|
55
|
+
/** Sum of local remote balances. */
|
|
56
|
+
pendingOpenRemoteBalance: exports.LndAmount,
|
|
57
|
+
}, 'ChannelBalance');
|
|
58
|
+
exports.LndWalletBalance = t.strict({
|
|
59
|
+
/** Total balance, confirmed and unconfirmed */
|
|
60
|
+
totalBalance: BigIntFromString_1.BigIntFromString,
|
|
61
|
+
confirmedBalance: BigIntFromString_1.BigIntFromString,
|
|
62
|
+
unconfirmedBalance: BigIntFromString_1.BigIntFromString,
|
|
63
|
+
lockedBalance: BigIntFromString_1.BigIntFromString,
|
|
64
|
+
reservedBalanceAnchorChan: BigIntFromString_1.BigIntFromString,
|
|
65
|
+
}, 'LndWalletBalance');
|
|
66
|
+
/**
|
|
67
|
+
The balances as returned from lnd.
|
|
68
|
+
|
|
69
|
+
Wallet Balance
|
|
70
|
+
https://api.lightning.community/api/lnd/lightning/wallet-balance/index.html
|
|
71
|
+
|
|
72
|
+
Channel Balance
|
|
73
|
+
https://api.lightning.community/api/lnd/lightning/channel-balance/index.html
|
|
74
|
+
*/
|
|
75
|
+
exports.LndBalance = t.strict({
|
|
76
|
+
offchain: exports.ChannelBalance,
|
|
77
|
+
onchain: exports.LndWalletBalance,
|
|
78
|
+
totalLimboBalance: BigIntFromString_1.BigIntFromString,
|
|
79
|
+
}, 'LndBalance');
|
|
80
|
+
exports.LndGetBalancesResponse = t.strict({
|
|
81
|
+
inboundBalance: BigIntFromString_1.BigIntFromString,
|
|
82
|
+
inboundPendingBalance: BigIntFromString_1.BigIntFromString,
|
|
83
|
+
inboundUnsettledBalance: BigIntFromString_1.BigIntFromString,
|
|
84
|
+
outboundBalance: BigIntFromString_1.BigIntFromString,
|
|
85
|
+
outboundPendingBalance: BigIntFromString_1.BigIntFromString,
|
|
86
|
+
outboundUnsettledBalance: BigIntFromString_1.BigIntFromString,
|
|
87
|
+
// wallet balances, names forced by type in AbstractCoin
|
|
88
|
+
spendableBalanceString: BigIntFromString_1.BigIntFromString,
|
|
89
|
+
balanceString: BigIntFromString_1.BigIntFromString,
|
|
90
|
+
confirmedBalanceString: BigIntFromString_1.BigIntFromString,
|
|
91
|
+
}, 'LndGetBalancesResponse');
|
|
92
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYmFsYW5jZS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uL3NyYy9jb2RlY3MvYXBpL2JhbGFuY2UudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7O0FBQUEseUNBQTJCO0FBQzNCLG1FQUFnRTtBQUVoRSwwQ0FBMEM7QUFFN0IsUUFBQSxTQUFTLEdBQUcsQ0FBQyxDQUFDLE1BQU0sQ0FDL0I7SUFDRSxHQUFHLEVBQUUsbUNBQWdCO0lBQ3JCLElBQUksRUFBRSxtQ0FBZ0I7Q0FDdkIsRUFDRCxXQUFXLENBQ1osQ0FBQztBQUlXLFFBQUEsY0FBYyxHQUFHLENBQUMsQ0FBQyxNQUFNLENBQ3BDO0lBQ0UsK0VBQStFO0lBQy9FLFlBQVksRUFBRSxpQkFBUztJQUN2Qiw0RkFBNEY7SUFDNUYsYUFBYSxFQUFFLGlCQUFTO0lBQ3hCLHVDQUF1QztJQUN2QyxxQkFBcUIsRUFBRSxpQkFBUztJQUNoQyx3Q0FBd0M7SUFDeEMsc0JBQXNCLEVBQUUsaUJBQVM7SUFDakMscUN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yxcbiAgICBjb25maXJtZWRCYWxhbmNlU3RyaW5nOiBCaWdJbnRGcm9tU3RyaW5nLFxuICB9LFxuICAnTG5kR2V0QmFsYW5jZXNSZXNwb25zZSdcbik7XG5cbmV4cG9ydCB0eXBlIExuZEdldEJhbGFuY2VzUmVzcG9uc2UgPSB0LlR5cGVPZjx0eXBlb2YgTG5kR2V0QmFsYW5jZXNSZXNwb25zZT47XG4iXX0=
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/codecs/api/index.ts"],"names":[],"mappings":"AAAA,cAAc,UAAU,CAAC;AACzB,cAAc,WAAW,CAAC;AAC1B,cAAc,WAAW,CAAC;AAC1B,cAAc,WAAW,CAAC;AAC1B,cAAc,eAAe,CAAC;AAC9B,cAAc,UAAU,CAAC"}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./backup"), exports);
|
|
18
|
+
__exportStar(require("./balance"), exports);
|
|
19
|
+
__exportStar(require("./invoice"), exports);
|
|
20
|
+
__exportStar(require("./payment"), exports);
|
|
21
|
+
__exportStar(require("./transaction"), exports);
|
|
22
|
+
__exportStar(require("./wallet"), exports);
|
|
23
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi9zcmMvY29kZWNzL2FwaS9pbmRleC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7Ozs7Ozs7Ozs7Ozs7O0FBQUEsMkNBQXlCO0FBQ3pCLDRDQUEwQjtBQUMxQiw0Q0FBMEI7QUFDMUIsNENBQTBCO0FBQzFCLGdEQUE4QjtBQUM5QiwyQ0FBeUIiLCJzb3VyY2VzQ29udGVudCI6WyJleHBvcnQgKiBmcm9tICcuL2JhY2t1cCc7XG5leHBvcnQgKiBmcm9tICcuL2JhbGFuY2UnO1xuZXhwb3J0ICogZnJvbSAnLi9pbnZvaWNlJztcbmV4cG9ydCAqIGZyb20gJy4vcGF5bWVudCc7XG5leHBvcnQgKiBmcm9tICcuL3RyYW5zYWN0aW9uJztcbmV4cG9ydCAqIGZyb20gJy4vd2FsbGV0JztcbiJdfQ==
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
import * as t from 'io-ts';
|
|
2
|
+
export declare const InvoiceStatus: t.UnionC<[t.LiteralC<"open">, t.LiteralC<"settled">, t.LiteralC<"canceled">]>;
|
|
3
|
+
export type InvoiceStatus = t.TypeOf<typeof InvoiceStatus>;
|
|
4
|
+
export declare const CreateInvoiceBody: t.IntersectionC<[t.TypeC<{
|
|
5
|
+
valueMsat: import("io-ts-types/BigIntFromString").BigIntFromStringC;
|
|
6
|
+
}>, t.PartialC<{
|
|
7
|
+
memo: t.StringC;
|
|
8
|
+
expiry: t.NumberC;
|
|
9
|
+
}>]>;
|
|
10
|
+
export type CreateInvoiceBody = t.TypeOf<typeof CreateInvoiceBody>;
|
|
11
|
+
/**
|
|
12
|
+
* A representation of the data tracked by the indexer for an invoice it has
|
|
13
|
+
* created within lnd.
|
|
14
|
+
*/
|
|
15
|
+
export declare const Invoice: t.IntersectionC<[t.TypeC<{
|
|
16
|
+
valueMsat: import("io-ts-types/BigIntFromString").BigIntFromStringC;
|
|
17
|
+
paymentHash: t.StringC;
|
|
18
|
+
/** The BOLT #11 encoded invoice string */
|
|
19
|
+
invoice: t.StringC;
|
|
20
|
+
/** The public BitGo walletId to which this invoice belongs */
|
|
21
|
+
walletId: t.StringC;
|
|
22
|
+
status: t.UnionC<[t.LiteralC<"open">, t.LiteralC<"settled">, t.LiteralC<"canceled">]>;
|
|
23
|
+
/** A date in ISO format representing when this invoice expires. */
|
|
24
|
+
expiresAt: import("io-ts-types/DateFromISOString").DateFromISOStringC;
|
|
25
|
+
}>, t.PartialC<{
|
|
26
|
+
memo: t.StringC;
|
|
27
|
+
}>]>;
|
|
28
|
+
export type Invoice = t.TypeOf<typeof Invoice>;
|
|
29
|
+
export declare const InvoiceInfo: t.IntersectionC<[t.TypeC<{
|
|
30
|
+
valueMsat: import("io-ts-types/BigIntFromString").BigIntFromStringC;
|
|
31
|
+
paymentHash: t.StringC;
|
|
32
|
+
invoice: t.StringC;
|
|
33
|
+
walletId: t.StringC;
|
|
34
|
+
status: t.UnionC<[t.LiteralC<"open">, t.LiteralC<"settled">, t.LiteralC<"canceled">]>;
|
|
35
|
+
expiresAt: import("io-ts-types/DateFromISOString").DateFromISOStringC;
|
|
36
|
+
createdAt: import("io-ts-types/DateFromISOString").DateFromISOStringC;
|
|
37
|
+
updatedAt: import("io-ts-types/DateFromISOString").DateFromISOStringC;
|
|
38
|
+
}>, t.PartialC<{
|
|
39
|
+
/**
|
|
40
|
+
* The number of millisats actually paid to this invoice, this may be greater
|
|
41
|
+
* than the amount requested by the invoice, since lightning allows overpaying
|
|
42
|
+
* (but not underpaying) invoices.
|
|
43
|
+
*/
|
|
44
|
+
amtPaidMsat: import("io-ts-types/BigIntFromString").BigIntFromStringC;
|
|
45
|
+
}>]>;
|
|
46
|
+
export type InvoiceInfo = t.TypeOf<typeof InvoiceInfo>;
|
|
47
|
+
export declare const InvoiceQuery: t.PartialC<{
|
|
48
|
+
status: t.UnionC<[t.LiteralC<"open">, t.LiteralC<"settled">, t.LiteralC<"canceled">]>;
|
|
49
|
+
limit: import("io-ts-types/BigIntFromString").BigIntFromStringC;
|
|
50
|
+
startDate: import("io-ts-types/DateFromISOString").DateFromISOStringC;
|
|
51
|
+
endDate: import("io-ts-types/DateFromISOString").DateFromISOStringC;
|
|
52
|
+
}>;
|
|
53
|
+
export type InvoiceQuery = t.TypeOf<typeof InvoiceQuery>;
|
|
54
|
+
//# sourceMappingURL=invoice.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"invoice.d.ts","sourceRoot":"","sources":["../../../../src/codecs/api/invoice.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,OAAO,CAAC;AAM3B,eAAO,MAAM,aAAa,+EAWzB,CAAC;AACF,MAAM,MAAM,aAAa,GAAG,CAAC,CAAC,MAAM,CAAC,OAAO,aAAa,CAAC,CAAC;AAE3D,eAAO,MAAM,iBAAiB;;;;;IAW7B,CAAC;AACF,MAAM,MAAM,iBAAiB,GAAG,CAAC,CAAC,MAAM,CAAC,OAAO,iBAAiB,CAAC,CAAC;AAEnE;;;GAGG;AACH,eAAO,MAAM,OAAO;;;IAKd,0CAA0C;;IAE1C,8DAA8D;;;IAG9D,mEAAmE;;;;IAQxE,CAAC;AACF,MAAM,MAAM,OAAO,GAAG,CAAC,CAAC,MAAM,CAAC,OAAO,OAAO,CAAC,CAAC;AAE/C,eAAO,MAAM,WAAW;;;;;;;;;;IAalB;;;;OAIG;;IAKR,CAAC;AACF,MAAM,MAAM,WAAW,GAAG,CAAC,CAAC,MAAM,CAAC,OAAO,WAAW,CAAC,CAAC;AAEvD,eAAO,MAAM,YAAY;;;;;EAQxB,CAAC;AAEF,MAAM,MAAM,YAAY,GAAG,CAAC,CAAC,MAAM,CAAC,OAAO,YAAY,CAAC,CAAC"}
|