@buildonspark/spark-sdk 0.0.0

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.
Files changed (314) hide show
  1. package/dist/graphql/client.d.ts +24 -0
  2. package/dist/graphql/client.js +177 -0
  3. package/dist/graphql/client.js.map +1 -0
  4. package/dist/graphql/mutations/CompleteCoopExit.d.ts +1 -0
  5. package/dist/graphql/mutations/CompleteCoopExit.js +19 -0
  6. package/dist/graphql/mutations/CompleteCoopExit.js.map +1 -0
  7. package/dist/graphql/mutations/CompleteLeavesSwap.d.ts +1 -0
  8. package/dist/graphql/mutations/CompleteLeavesSwap.js +17 -0
  9. package/dist/graphql/mutations/CompleteLeavesSwap.js.map +1 -0
  10. package/dist/graphql/mutations/RequestCoopExit.d.ts +1 -0
  11. package/dist/graphql/mutations/RequestCoopExit.js +20 -0
  12. package/dist/graphql/mutations/RequestCoopExit.js.map +1 -0
  13. package/dist/graphql/mutations/RequestLightningReceive.d.ts +1 -0
  14. package/dist/graphql/mutations/RequestLightningReceive.js +26 -0
  15. package/dist/graphql/mutations/RequestLightningReceive.js.map +1 -0
  16. package/dist/graphql/mutations/RequestLightningSend.d.ts +1 -0
  17. package/dist/graphql/mutations/RequestLightningSend.js +18 -0
  18. package/dist/graphql/mutations/RequestLightningSend.js.map +1 -0
  19. package/dist/graphql/mutations/RequestSwapLeaves.d.ts +1 -0
  20. package/dist/graphql/mutations/RequestSwapLeaves.js +26 -0
  21. package/dist/graphql/mutations/RequestSwapLeaves.js.map +1 -0
  22. package/dist/graphql/objects/BitcoinNetwork.d.ts +17 -0
  23. package/dist/graphql/objects/BitcoinNetwork.js +20 -0
  24. package/dist/graphql/objects/BitcoinNetwork.js.map +1 -0
  25. package/dist/graphql/objects/CompleteCoopExitInput.d.ts +7 -0
  26. package/dist/graphql/objects/CompleteCoopExitInput.js +14 -0
  27. package/dist/graphql/objects/CompleteCoopExitInput.js.map +1 -0
  28. package/dist/graphql/objects/CompleteCoopExitOutput.d.ts +7 -0
  29. package/dist/graphql/objects/CompleteCoopExitOutput.js +19 -0
  30. package/dist/graphql/objects/CompleteCoopExitOutput.js.map +1 -0
  31. package/dist/graphql/objects/CompleteLeavesSwapInput.d.ts +8 -0
  32. package/dist/graphql/objects/CompleteLeavesSwapInput.js +16 -0
  33. package/dist/graphql/objects/CompleteLeavesSwapInput.js.map +1 -0
  34. package/dist/graphql/objects/CompleteLeavesSwapOutput.d.ts +7 -0
  35. package/dist/graphql/objects/CompleteLeavesSwapOutput.js +19 -0
  36. package/dist/graphql/objects/CompleteLeavesSwapOutput.js.map +1 -0
  37. package/dist/graphql/objects/Connection.d.ts +16 -0
  38. package/dist/graphql/objects/Connection.js +56 -0
  39. package/dist/graphql/objects/Connection.js.map +1 -0
  40. package/dist/graphql/objects/CoopExitFeeEstimateInput.d.ts +7 -0
  41. package/dist/graphql/objects/CoopExitFeeEstimateInput.js +14 -0
  42. package/dist/graphql/objects/CoopExitFeeEstimateInput.js.map +1 -0
  43. package/dist/graphql/objects/CoopExitFeeEstimateOutput.d.ts +8 -0
  44. package/dist/graphql/objects/CoopExitFeeEstimateOutput.js +26 -0
  45. package/dist/graphql/objects/CoopExitFeeEstimateOutput.js.map +1 -0
  46. package/dist/graphql/objects/CoopExitRequest.d.ts +32 -0
  47. package/dist/graphql/objects/CoopExitRequest.js +64 -0
  48. package/dist/graphql/objects/CoopExitRequest.js.map +1 -0
  49. package/dist/graphql/objects/CurrencyAmount.d.ts +24 -0
  50. package/dist/graphql/objects/CurrencyAmount.js +30 -0
  51. package/dist/graphql/objects/CurrencyAmount.js.map +1 -0
  52. package/dist/graphql/objects/CurrencyUnit.d.ts +27 -0
  53. package/dist/graphql/objects/CurrencyUnit.js +30 -0
  54. package/dist/graphql/objects/CurrencyUnit.js.map +1 -0
  55. package/dist/graphql/objects/Entity.d.ts +16 -0
  56. package/dist/graphql/objects/Entity.js +141 -0
  57. package/dist/graphql/objects/Entity.js.map +1 -0
  58. package/dist/graphql/objects/Invoice.d.ts +15 -0
  59. package/dist/graphql/objects/Invoice.js +45 -0
  60. package/dist/graphql/objects/Invoice.js.map +1 -0
  61. package/dist/graphql/objects/Leaf.d.ts +11 -0
  62. package/dist/graphql/objects/Leaf.js +29 -0
  63. package/dist/graphql/objects/Leaf.js.map +1 -0
  64. package/dist/graphql/objects/LeavesSwapFeeEstimateInput.d.ts +6 -0
  65. package/dist/graphql/objects/LeavesSwapFeeEstimateInput.js +12 -0
  66. package/dist/graphql/objects/LeavesSwapFeeEstimateInput.js.map +1 -0
  67. package/dist/graphql/objects/LeavesSwapFeeEstimateOutput.d.ts +8 -0
  68. package/dist/graphql/objects/LeavesSwapFeeEstimateOutput.js +26 -0
  69. package/dist/graphql/objects/LeavesSwapFeeEstimateOutput.js.map +1 -0
  70. package/dist/graphql/objects/LeavesSwapRequest.d.ts +32 -0
  71. package/dist/graphql/objects/LeavesSwapRequest.js +87 -0
  72. package/dist/graphql/objects/LeavesSwapRequest.js.map +1 -0
  73. package/dist/graphql/objects/LightningReceiveFeeEstimateInput.d.ts +8 -0
  74. package/dist/graphql/objects/LightningReceiveFeeEstimateInput.js +15 -0
  75. package/dist/graphql/objects/LightningReceiveFeeEstimateInput.js.map +1 -0
  76. package/dist/graphql/objects/LightningReceiveFeeEstimateOutput.d.ts +8 -0
  77. package/dist/graphql/objects/LightningReceiveFeeEstimateOutput.js +26 -0
  78. package/dist/graphql/objects/LightningReceiveFeeEstimateOutput.js.map +1 -0
  79. package/dist/graphql/objects/LightningReceiveRequest.d.ts +31 -0
  80. package/dist/graphql/objects/LightningReceiveRequest.js +93 -0
  81. package/dist/graphql/objects/LightningReceiveRequest.js.map +1 -0
  82. package/dist/graphql/objects/LightningReceiveRequestStatus.d.ts +16 -0
  83. package/dist/graphql/objects/LightningReceiveRequestStatus.js +19 -0
  84. package/dist/graphql/objects/LightningReceiveRequestStatus.js.map +1 -0
  85. package/dist/graphql/objects/LightningSendFeeEstimateInput.d.ts +6 -0
  86. package/dist/graphql/objects/LightningSendFeeEstimateInput.js +12 -0
  87. package/dist/graphql/objects/LightningSendFeeEstimateInput.js.map +1 -0
  88. package/dist/graphql/objects/LightningSendFeeEstimateOutput.d.ts +8 -0
  89. package/dist/graphql/objects/LightningSendFeeEstimateOutput.js +26 -0
  90. package/dist/graphql/objects/LightningSendFeeEstimateOutput.js.map +1 -0
  91. package/dist/graphql/objects/LightningSendRequest.d.ts +32 -0
  92. package/dist/graphql/objects/LightningSendRequest.js +78 -0
  93. package/dist/graphql/objects/LightningSendRequest.js.map +1 -0
  94. package/dist/graphql/objects/LightningSendRequestStatus.d.ts +15 -0
  95. package/dist/graphql/objects/LightningSendRequestStatus.js +18 -0
  96. package/dist/graphql/objects/LightningSendRequestStatus.js.map +1 -0
  97. package/dist/graphql/objects/PageInfo.d.ts +11 -0
  98. package/dist/graphql/objects/PageInfo.js +26 -0
  99. package/dist/graphql/objects/PageInfo.js.map +1 -0
  100. package/dist/graphql/objects/RequestCoopExitInput.d.ts +7 -0
  101. package/dist/graphql/objects/RequestCoopExitInput.js +14 -0
  102. package/dist/graphql/objects/RequestCoopExitInput.js.map +1 -0
  103. package/dist/graphql/objects/RequestCoopExitOutput.d.ts +7 -0
  104. package/dist/graphql/objects/RequestCoopExitOutput.js +19 -0
  105. package/dist/graphql/objects/RequestCoopExitOutput.js.map +1 -0
  106. package/dist/graphql/objects/RequestLeavesSwapInput.d.ts +13 -0
  107. package/dist/graphql/objects/RequestLeavesSwapInput.js +25 -0
  108. package/dist/graphql/objects/RequestLeavesSwapInput.js.map +1 -0
  109. package/dist/graphql/objects/RequestLeavesSwapOutput.d.ts +7 -0
  110. package/dist/graphql/objects/RequestLeavesSwapOutput.js +19 -0
  111. package/dist/graphql/objects/RequestLeavesSwapOutput.js.map +1 -0
  112. package/dist/graphql/objects/RequestLightningReceiveInput.d.ts +16 -0
  113. package/dist/graphql/objects/RequestLightningReceiveInput.js +21 -0
  114. package/dist/graphql/objects/RequestLightningReceiveInput.js.map +1 -0
  115. package/dist/graphql/objects/RequestLightningReceiveOutput.d.ts +7 -0
  116. package/dist/graphql/objects/RequestLightningReceiveOutput.js +19 -0
  117. package/dist/graphql/objects/RequestLightningReceiveOutput.js.map +1 -0
  118. package/dist/graphql/objects/RequestLightningSendInput.d.ts +7 -0
  119. package/dist/graphql/objects/RequestLightningSendInput.js +14 -0
  120. package/dist/graphql/objects/RequestLightningSendInput.js.map +1 -0
  121. package/dist/graphql/objects/RequestLightningSendOutput.d.ts +7 -0
  122. package/dist/graphql/objects/RequestLightningSendOutput.js +19 -0
  123. package/dist/graphql/objects/RequestLightningSendOutput.js.map +1 -0
  124. package/dist/graphql/objects/SparkCoopExitRequestStatus.d.ts +11 -0
  125. package/dist/graphql/objects/SparkCoopExitRequestStatus.js +14 -0
  126. package/dist/graphql/objects/SparkCoopExitRequestStatus.js.map +1 -0
  127. package/dist/graphql/objects/SparkLeavesSwapRequestStatus.d.ts +11 -0
  128. package/dist/graphql/objects/SparkLeavesSwapRequestStatus.js +14 -0
  129. package/dist/graphql/objects/SparkLeavesSwapRequestStatus.js.map +1 -0
  130. package/dist/graphql/objects/SparkTransferToLeavesConnection.d.ts +19 -0
  131. package/dist/graphql/objects/SparkTransferToLeavesConnection.js +45 -0
  132. package/dist/graphql/objects/SparkTransferToLeavesConnection.js.map +1 -0
  133. package/dist/graphql/objects/SwapLeaf.d.ts +9 -0
  134. package/dist/graphql/objects/SwapLeaf.js +23 -0
  135. package/dist/graphql/objects/SwapLeaf.js.map +1 -0
  136. package/dist/graphql/objects/Transfer.d.ts +24 -0
  137. package/dist/graphql/objects/Transfer.js +82 -0
  138. package/dist/graphql/objects/Transfer.js.map +1 -0
  139. package/dist/graphql/objects/UserLeafInput.d.ts +8 -0
  140. package/dist/graphql/objects/UserLeafInput.js +16 -0
  141. package/dist/graphql/objects/UserLeafInput.js.map +1 -0
  142. package/dist/graphql/objects/WalletUser.d.ts +21 -0
  143. package/dist/graphql/objects/WalletUser.js +48 -0
  144. package/dist/graphql/objects/WalletUser.js.map +1 -0
  145. package/dist/graphql/objects/index.d.ts +41 -0
  146. package/dist/graphql/objects/index.js +13 -0
  147. package/dist/graphql/objects/index.js.map +1 -0
  148. package/dist/graphql/queries/CoopExitFeeEstimate.d.ts +1 -0
  149. package/dist/graphql/queries/CoopExitFeeEstimate.js +18 -0
  150. package/dist/graphql/queries/CoopExitFeeEstimate.js.map +1 -0
  151. package/dist/graphql/queries/CurrentUser.d.ts +1 -0
  152. package/dist/graphql/queries/CurrentUser.js +10 -0
  153. package/dist/graphql/queries/CurrentUser.js.map +1 -0
  154. package/dist/graphql/queries/LightningReceiveFeeEstimate.d.ts +1 -0
  155. package/dist/graphql/queries/LightningReceiveFeeEstimate.js +18 -0
  156. package/dist/graphql/queries/LightningReceiveFeeEstimate.js.map +1 -0
  157. package/dist/graphql/queries/LightningSendFeeEstimate.d.ts +1 -0
  158. package/dist/graphql/queries/LightningSendFeeEstimate.js +16 -0
  159. package/dist/graphql/queries/LightningSendFeeEstimate.js.map +1 -0
  160. package/dist/proto/common.d.ts +58 -0
  161. package/dist/proto/common.js +350 -0
  162. package/dist/proto/common.js.map +1 -0
  163. package/dist/proto/google/protobuf/descriptor.d.ts +1228 -0
  164. package/dist/proto/google/protobuf/descriptor.js +5070 -0
  165. package/dist/proto/google/protobuf/descriptor.js.map +1 -0
  166. package/dist/proto/google/protobuf/duration.d.ts +99 -0
  167. package/dist/proto/google/protobuf/duration.js +90 -0
  168. package/dist/proto/google/protobuf/duration.js.map +1 -0
  169. package/dist/proto/google/protobuf/empty.d.ts +33 -0
  170. package/dist/proto/google/protobuf/empty.js +46 -0
  171. package/dist/proto/google/protobuf/empty.js.map +1 -0
  172. package/dist/proto/google/protobuf/timestamp.d.ts +128 -0
  173. package/dist/proto/google/protobuf/timestamp.js +90 -0
  174. package/dist/proto/google/protobuf/timestamp.js.map +1 -0
  175. package/dist/proto/mock.d.ts +48 -0
  176. package/dist/proto/mock.js +103 -0
  177. package/dist/proto/mock.js.map +1 -0
  178. package/dist/proto/spark.d.ts +1101 -0
  179. package/dist/proto/spark.js +9565 -0
  180. package/dist/proto/spark.js.map +1 -0
  181. package/dist/proto/spark_authn.d.ts +111 -0
  182. package/dist/proto/spark_authn.js +517 -0
  183. package/dist/proto/spark_authn.js.map +1 -0
  184. package/dist/proto/validate/validate.d.ts +1087 -0
  185. package/dist/proto/validate/validate.js +4437 -0
  186. package/dist/proto/validate/validate.js.map +1 -0
  187. package/dist/services/config.d.ts +24 -0
  188. package/dist/services/config.js +29 -0
  189. package/dist/services/config.js.map +1 -0
  190. package/dist/services/connection.d.ts +21 -0
  191. package/dist/services/connection.js +154 -0
  192. package/dist/services/connection.js.map +1 -0
  193. package/dist/services/coop-exit.d.ts +20 -0
  194. package/dist/services/coop-exit.js +102 -0
  195. package/dist/services/coop-exit.js.map +1 -0
  196. package/dist/services/deposit.d.ts +21 -0
  197. package/dist/services/deposit.js +214 -0
  198. package/dist/services/deposit.js.map +1 -0
  199. package/dist/services/lightning.d.ts +31 -0
  200. package/dist/services/lightning.js +196 -0
  201. package/dist/services/lightning.js.map +1 -0
  202. package/dist/services/token-transactions.d.ts +17 -0
  203. package/dist/services/token-transactions.js +297 -0
  204. package/dist/services/token-transactions.js.map +1 -0
  205. package/dist/services/transfer.d.ts +63 -0
  206. package/dist/services/transfer.js +499 -0
  207. package/dist/services/transfer.js.map +1 -0
  208. package/dist/services/tree-creation.d.ts +30 -0
  209. package/dist/services/tree-creation.js +404 -0
  210. package/dist/services/tree-creation.js.map +1 -0
  211. package/dist/signer/signer.d.ts +97 -0
  212. package/dist/signer/signer.js +239 -0
  213. package/dist/signer/signer.js.map +1 -0
  214. package/dist/spark-sdk.d.ts +87 -0
  215. package/dist/spark-sdk.js +675 -0
  216. package/dist/spark-sdk.js.map +1 -0
  217. package/dist/tests/adaptor-signature.test.d.ts +1 -0
  218. package/dist/tests/adaptor-signature.test.js +34 -0
  219. package/dist/tests/adaptor-signature.test.js.map +1 -0
  220. package/dist/tests/bitcoin.test.d.ts +1 -0
  221. package/dist/tests/bitcoin.test.js +77 -0
  222. package/dist/tests/bitcoin.test.js.map +1 -0
  223. package/dist/tests/coop-exit.test.d.ts +1 -0
  224. package/dist/tests/coop-exit.test.js +140 -0
  225. package/dist/tests/coop-exit.test.js.map +1 -0
  226. package/dist/tests/deposit.test.d.ts +1 -0
  227. package/dist/tests/deposit.test.js +57 -0
  228. package/dist/tests/deposit.test.js.map +1 -0
  229. package/dist/tests/keys.test.d.ts +1 -0
  230. package/dist/tests/keys.test.js +53 -0
  231. package/dist/tests/keys.test.js.map +1 -0
  232. package/dist/tests/lightning.test.d.ts +1 -0
  233. package/dist/tests/lightning.test.js +175 -0
  234. package/dist/tests/lightning.test.js.map +1 -0
  235. package/dist/tests/secret-sharing.test.d.ts +1 -0
  236. package/dist/tests/secret-sharing.test.js +41 -0
  237. package/dist/tests/secret-sharing.test.js.map +1 -0
  238. package/dist/tests/swap.test.d.ts +1 -0
  239. package/dist/tests/swap.test.js +131 -0
  240. package/dist/tests/swap.test.js.map +1 -0
  241. package/dist/tests/test-util.d.ts +24 -0
  242. package/dist/tests/test-util.js +137 -0
  243. package/dist/tests/test-util.js.map +1 -0
  244. package/dist/tests/tokens.test.d.ts +1 -0
  245. package/dist/tests/tokens.test.js +42 -0
  246. package/dist/tests/tokens.test.js.map +1 -0
  247. package/dist/tests/transfer.test.d.ts +1 -0
  248. package/dist/tests/transfer.test.js +175 -0
  249. package/dist/tests/transfer.test.js.map +1 -0
  250. package/dist/tests/tree-creation.test.d.ts +1 -0
  251. package/dist/tests/tree-creation.test.js +32 -0
  252. package/dist/tests/tree-creation.test.js.map +1 -0
  253. package/dist/tests/utils/spark-testing-wallet.d.ts +14 -0
  254. package/dist/tests/utils/spark-testing-wallet.js +13 -0
  255. package/dist/tests/utils/spark-testing-wallet.js.map +1 -0
  256. package/dist/tests/utils/test-faucet.d.ts +22 -0
  257. package/dist/tests/utils/test-faucet.js +148 -0
  258. package/dist/tests/utils/test-faucet.js.map +1 -0
  259. package/dist/types/index.d.ts +3 -0
  260. package/dist/types/index.js +4 -0
  261. package/dist/types/index.js.map +1 -0
  262. package/dist/utils/adaptor-signature.d.ts +7 -0
  263. package/dist/utils/adaptor-signature.js +114 -0
  264. package/dist/utils/adaptor-signature.js.map +1 -0
  265. package/dist/utils/bitcoin.d.ts +12 -0
  266. package/dist/utils/bitcoin.js +87 -0
  267. package/dist/utils/bitcoin.js.map +1 -0
  268. package/dist/utils/crypto.d.ts +1 -0
  269. package/dist/utils/crypto.js +14 -0
  270. package/dist/utils/crypto.js.map +1 -0
  271. package/dist/utils/index.d.ts +14 -0
  272. package/dist/utils/index.js +15 -0
  273. package/dist/utils/index.js.map +1 -0
  274. package/dist/utils/keys.d.ts +7 -0
  275. package/dist/utils/keys.js +68 -0
  276. package/dist/utils/keys.js.map +1 -0
  277. package/dist/utils/network.d.ts +11 -0
  278. package/dist/utils/network.js +26 -0
  279. package/dist/utils/network.js.map +1 -0
  280. package/dist/utils/proof.d.ts +1 -0
  281. package/dist/utils/proof.js +12 -0
  282. package/dist/utils/proof.js.map +1 -0
  283. package/dist/utils/response-validation.d.ts +1 -0
  284. package/dist/utils/response-validation.js +16 -0
  285. package/dist/utils/response-validation.js.map +1 -0
  286. package/dist/utils/secret-sharing.d.ts +26 -0
  287. package/dist/utils/secret-sharing.js +175 -0
  288. package/dist/utils/secret-sharing.js.map +1 -0
  289. package/dist/utils/signing.d.ts +12 -0
  290. package/dist/utils/signing.js +67 -0
  291. package/dist/utils/signing.js.map +1 -0
  292. package/dist/utils/token-hashing.d.ts +3 -0
  293. package/dist/utils/token-hashing.js +117 -0
  294. package/dist/utils/token-hashing.js.map +1 -0
  295. package/dist/utils/token-keyshares.d.ts +5 -0
  296. package/dist/utils/token-keyshares.js +17 -0
  297. package/dist/utils/token-keyshares.js.map +1 -0
  298. package/dist/utils/token-transactions.d.ts +5 -0
  299. package/dist/utils/token-transactions.js +40 -0
  300. package/dist/utils/token-transactions.js.map +1 -0
  301. package/dist/utils/transaction.d.ts +8 -0
  302. package/dist/utils/transaction.js +33 -0
  303. package/dist/utils/transaction.js.map +1 -0
  304. package/dist/utils/wasm-wrapper.d.ts +2 -0
  305. package/dist/utils/wasm-wrapper.js +36 -0
  306. package/dist/utils/wasm-wrapper.js.map +1 -0
  307. package/dist/utils/wasm.d.ts +54 -0
  308. package/dist/utils/wasm.js +26 -0
  309. package/dist/utils/wasm.js.map +1 -0
  310. package/dist/wasm/spark_bindings.d.ts +229 -0
  311. package/dist/wasm/spark_bindings.js +1097 -0
  312. package/dist/wasm/spark_bindings.js.map +1 -0
  313. package/dist/wasm/spark_bindings_bg.wasm +0 -0
  314. package/package.json +140 -0
@@ -0,0 +1,78 @@
1
+ // Copyright ©, 2023-present, Lightspark Group, Inc. - All Rights Reserved
2
+ import { CurrencyAmountFromJson } from './CurrencyAmount.js';
3
+ import { isObject } from '@lightsparkdev/core';
4
+ import { TransferFromJson } from './Transfer.js';
5
+ import { CurrencyAmountToJson } from './CurrencyAmount.js';
6
+ import LightningSendRequestStatus from './LightningSendRequestStatus.js';
7
+ export const LightningSendRequestFromJson = (obj) => {
8
+ return {
9
+ id: obj["lightning_send_request_id"],
10
+ createdAt: obj["lightning_send_request_created_at"],
11
+ updatedAt: obj["lightning_send_request_updated_at"],
12
+ encodedInvoice: obj["lightning_send_request_encoded_invoice"],
13
+ fee: CurrencyAmountFromJson(obj["lightning_send_request_fee"]),
14
+ idempotencyKey: obj["lightning_send_request_idempotency_key"],
15
+ status: LightningSendRequestStatus[obj["lightning_send_request_status"]] ?? LightningSendRequestStatus.FUTURE_VALUE,
16
+ typename: "LightningSendRequest", transfer: (!!obj["lightning_send_request_transfer"] ? TransferFromJson(obj["lightning_send_request_transfer"]) : undefined),
17
+ };
18
+ };
19
+ export const LightningSendRequestToJson = (obj) => {
20
+ return {
21
+ __typename: "LightningSendRequest", lightning_send_request_id: obj.id,
22
+ lightning_send_request_created_at: obj.createdAt,
23
+ lightning_send_request_updated_at: obj.updatedAt,
24
+ lightning_send_request_encoded_invoice: obj.encodedInvoice,
25
+ lightning_send_request_fee: CurrencyAmountToJson(obj.fee),
26
+ lightning_send_request_idempotency_key: obj.idempotencyKey,
27
+ lightning_send_request_status: obj.status,
28
+ lightning_send_request_transfer: (obj.transfer ? obj.transfer.toJson() : undefined),
29
+ };
30
+ };
31
+ export const FRAGMENT = `
32
+ fragment LightningSendRequestFragment on LightningSendRequest {
33
+ __typename
34
+ lightning_send_request_id: id
35
+ lightning_send_request_created_at: created_at
36
+ lightning_send_request_updated_at: updated_at
37
+ lightning_send_request_encoded_invoice: encoded_invoice
38
+ lightning_send_request_fee: fee {
39
+ __typename
40
+ currency_amount_original_value: original_value
41
+ currency_amount_original_unit: original_unit
42
+ currency_amount_preferred_currency_unit: preferred_currency_unit
43
+ currency_amount_preferred_currency_value_rounded: preferred_currency_value_rounded
44
+ currency_amount_preferred_currency_value_approx: preferred_currency_value_approx
45
+ }
46
+ lightning_send_request_idempotency_key: idempotency_key
47
+ lightning_send_request_status: status
48
+ lightning_send_request_transfer: transfer {
49
+ __typename
50
+ transfer_total_amount: total_amount {
51
+ __typename
52
+ currency_amount_original_value: original_value
53
+ currency_amount_original_unit: original_unit
54
+ currency_amount_preferred_currency_unit: preferred_currency_unit
55
+ currency_amount_preferred_currency_value_rounded: preferred_currency_value_rounded
56
+ currency_amount_preferred_currency_value_approx: preferred_currency_value_approx
57
+ }
58
+ transfer_spark_id: spark_id
59
+ }
60
+ }`;
61
+ export const getLightningSendRequestQuery = (id) => {
62
+ return {
63
+ queryPayload: `
64
+ query GetLightningSendRequest($id: ID!) {
65
+ entity(id: $id) {
66
+ ... on LightningSendRequest {
67
+ ...LightningSendRequestFragment
68
+ }
69
+ }
70
+ }
71
+
72
+ ${FRAGMENT}
73
+ `,
74
+ variables: { id },
75
+ constructObject: (data) => isObject(data) && "entity" in data && isObject(data.entity) ? LightningSendRequestFromJson(data.entity) : null,
76
+ };
77
+ };
78
+ //# sourceMappingURL=LightningSendRequest.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"LightningSendRequest.js","sourceRoot":"","sources":["../../../src/graphql/objects/LightningSendRequest.ts"],"names":[],"mappings":"AACA,0EAA0E;AAG1E,OAAO,EAAC,sBAAsB,EAAC,MAAM,qBAAqB,CAAC;AAG3D,OAAO,EAAS,QAAQ,EAAE,MAAM,qBAAqB,CAAC;AACtD,OAAO,EAAC,gBAAgB,EAAC,MAAM,eAAe,CAAC;AAC/C,OAAO,EAAC,oBAAoB,EAAC,MAAM,qBAAqB,CAAC;AACzD,OAAO,0BAA0B,MAAM,iCAAiC,CAAC;AAyCzE,MAAM,CAAC,MAAM,4BAA4B,GAAG,CAAC,GAAQ,EAAwB,EAAE;IAC3E,OAAO;QACH,EAAE,EAAE,GAAG,CAAC,2BAA2B,CAAC;QACpC,SAAS,EAAE,GAAG,CAAC,mCAAmC,CAAC;QACnD,SAAS,EAAE,GAAG,CAAC,mCAAmC,CAAC;QACnD,cAAc,EAAE,GAAG,CAAC,wCAAwC,CAAC;QAC7D,GAAG,EAAE,sBAAsB,CAAC,GAAG,CAAC,4BAA4B,CAAC,CAAC;QAC9D,cAAc,EAAE,GAAG,CAAC,wCAAwC,CAAC;QAC7D,MAAM,EAAE,0BAA0B,CAAC,GAAG,CAAC,+BAA+B,CAAC,CAAC,IAAI,0BAA0B,CAAC,YAAY;QAC3H,QAAQ,EAAE,sBAAsB,EAAS,QAAQ,EAAE,CAAC,CAAC,CAAC,GAAG,CAAC,iCAAiC,CAAC,CAAC,CAAC,CAAC,gBAAgB,CAAC,GAAG,CAAC,iCAAiC,CAAC,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC;KAEnI,CAAC;AAElC,CAAC,CAAA;AACD,MAAM,CAAC,MAAM,0BAA0B,GAAG,CAAC,GAAyB,EAAO,EAAE;IAC7E,OAAO;QACP,UAAU,EAAE,sBAAsB,EAAC,yBAAyB,EAAE,GAAG,CAAC,EAAE;QACpE,iCAAiC,EAAE,GAAG,CAAC,SAAS;QAChD,iCAAiC,EAAE,GAAG,CAAC,SAAS;QAChD,sCAAsC,EAAE,GAAG,CAAC,cAAc;QAC1D,0BAA0B,EAAE,oBAAoB,CAAC,GAAG,CAAC,GAAG,CAAC;QACzD,sCAAsC,EAAE,GAAG,CAAC,cAAc;QAC1D,6BAA6B,EAAE,GAAG,CAAC,MAAM;QACzC,+BAA+B,EAAE,CAAC,GAAG,CAAC,QAAQ,CAAC,CAAC,CAAC,GAAG,CAAC,QAAQ,CAAC,MAAM,EAAE,CAAC,CAAC,CAAC,SAAS,CAAC;KAE1E,CAAA;AAET,CAAC,CAAA;AAGG,MAAM,CAAC,MAAM,QAAQ,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EA6B1B,CAAC;AAIC,MAAM,CAAC,MAAM,4BAA4B,GAAG,CAAC,EAAU,EAA+B,EAAE;IACpF,OAAO;QACH,YAAY,EAAE;;;;;;;;;EASxB,QAAQ;CACT;QACW,SAAS,EAAE,EAAC,EAAE,EAAC;QACf,eAAe,EAAE,CAAC,IAAa,EAAE,EAAE,CAAC,QAAQ,CAAC,IAAI,CAAC,IAAI,QAAQ,IAAI,IAAI,IAAI,QAAQ,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,4BAA4B,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,IAAI;KACrJ,CAAA;AACL,CAAC,CAAA"}
@@ -0,0 +1,15 @@
1
+ export declare enum LightningSendRequestStatus {
2
+ /**
3
+ * This is an enum value that represents values that could be added in the future.
4
+ * Clients should support unknown values as more of them could be added without notice.
5
+ */
6
+ FUTURE_VALUE = "FUTURE_VALUE",
7
+ CREATED = "CREATED",
8
+ REQUEST_VALIDATED = "REQUEST_VALIDATED",
9
+ LIGHTNING_PAYMENT_INITIATED = "LIGHTNING_PAYMENT_INITIATED",
10
+ LIGHTNING_PAYMENT_FAILED = "LIGHTNING_PAYMENT_FAILED",
11
+ LIGHTNING_PAYMENT_SUCCEEDED = "LIGHTNING_PAYMENT_SUCCEEDED",
12
+ PREIMAGE_PROVIDED = "PREIMAGE_PROVIDED",
13
+ TRANSFER_COMPLETED = "TRANSFER_COMPLETED"
14
+ }
15
+ export default LightningSendRequestStatus;
@@ -0,0 +1,18 @@
1
+ // Copyright ©, 2023-present, Lightspark Group, Inc. - All Rights Reserved
2
+ export var LightningSendRequestStatus;
3
+ (function (LightningSendRequestStatus) {
4
+ /**
5
+ * This is an enum value that represents values that could be added in the future.
6
+ * Clients should support unknown values as more of them could be added without notice.
7
+ */
8
+ LightningSendRequestStatus["FUTURE_VALUE"] = "FUTURE_VALUE";
9
+ LightningSendRequestStatus["CREATED"] = "CREATED";
10
+ LightningSendRequestStatus["REQUEST_VALIDATED"] = "REQUEST_VALIDATED";
11
+ LightningSendRequestStatus["LIGHTNING_PAYMENT_INITIATED"] = "LIGHTNING_PAYMENT_INITIATED";
12
+ LightningSendRequestStatus["LIGHTNING_PAYMENT_FAILED"] = "LIGHTNING_PAYMENT_FAILED";
13
+ LightningSendRequestStatus["LIGHTNING_PAYMENT_SUCCEEDED"] = "LIGHTNING_PAYMENT_SUCCEEDED";
14
+ LightningSendRequestStatus["PREIMAGE_PROVIDED"] = "PREIMAGE_PROVIDED";
15
+ LightningSendRequestStatus["TRANSFER_COMPLETED"] = "TRANSFER_COMPLETED";
16
+ })(LightningSendRequestStatus || (LightningSendRequestStatus = {}));
17
+ export default LightningSendRequestStatus;
18
+ //# sourceMappingURL=LightningSendRequestStatus.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"LightningSendRequestStatus.js","sourceRoot":"","sources":["../../../src/graphql/objects/LightningSendRequestStatus.ts"],"names":[],"mappings":"AACA,0EAA0E;AAG1E,MAAM,CAAN,IAAY,0BAqBX;AArBD,WAAY,0BAA0B;IACtC;;;OAGG;IACF,2DAA6B,CAAA;IAE9B,iDAAmB,CAAA;IAEnB,qEAAuC,CAAA;IAEvC,yFAA2D,CAAA;IAE3D,mFAAqD,CAAA;IAErD,yFAA2D,CAAA;IAE3D,qEAAuC,CAAA;IAEvC,uEAAyC,CAAA;AAEzC,CAAC,EArBW,0BAA0B,KAA1B,0BAA0B,QAqBrC;AAED,eAAe,0BAA0B,CAAC"}
@@ -0,0 +1,11 @@
1
+ /** This is an object representing information about a page returned by the Lightspark API. For more information, please see the “Pagination” section of our API docs for more information about its usage. **/
2
+ interface PageInfo {
3
+ hasNextPage?: boolean | undefined;
4
+ hasPreviousPage?: boolean | undefined;
5
+ startCursor?: string | undefined;
6
+ endCursor?: string | undefined;
7
+ }
8
+ export declare const PageInfoFromJson: (obj: any) => PageInfo;
9
+ export declare const PageInfoToJson: (obj: PageInfo) => any;
10
+ export declare const FRAGMENT = "\nfragment PageInfoFragment on PageInfo {\n __typename\n page_info_has_next_page: has_next_page\n page_info_has_previous_page: has_previous_page\n page_info_start_cursor: start_cursor\n page_info_end_cursor: end_cursor\n}";
11
+ export default PageInfo;
@@ -0,0 +1,26 @@
1
+ // Copyright ©, 2023-present, Lightspark Group, Inc. - All Rights Reserved
2
+ export const PageInfoFromJson = (obj) => {
3
+ return {
4
+ hasNextPage: obj["page_info_has_next_page"],
5
+ hasPreviousPage: obj["page_info_has_previous_page"],
6
+ startCursor: obj["page_info_start_cursor"],
7
+ endCursor: obj["page_info_end_cursor"],
8
+ };
9
+ };
10
+ export const PageInfoToJson = (obj) => {
11
+ return {
12
+ page_info_has_next_page: obj.hasNextPage,
13
+ page_info_has_previous_page: obj.hasPreviousPage,
14
+ page_info_start_cursor: obj.startCursor,
15
+ page_info_end_cursor: obj.endCursor,
16
+ };
17
+ };
18
+ export const FRAGMENT = `
19
+ fragment PageInfoFragment on PageInfo {
20
+ __typename
21
+ page_info_has_next_page: has_next_page
22
+ page_info_has_previous_page: has_previous_page
23
+ page_info_start_cursor: start_cursor
24
+ page_info_end_cursor: end_cursor
25
+ }`;
26
+ //# sourceMappingURL=PageInfo.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"PageInfo.js","sourceRoot":"","sources":["../../../src/graphql/objects/PageInfo.ts"],"names":[],"mappings":"AACA,0EAA0E;AAsB1E,MAAM,CAAC,MAAM,gBAAgB,GAAG,CAAC,GAAQ,EAAY,EAAE;IACnD,OAAO;QACH,WAAW,EAAE,GAAG,CAAC,yBAAyB,CAAC;QAC3C,eAAe,EAAE,GAAG,CAAC,6BAA6B,CAAC;QACnD,WAAW,EAAE,GAAG,CAAC,wBAAwB,CAAC;QAC1C,SAAS,EAAE,GAAG,CAAC,sBAAsB,CAAC;KAEzB,CAAC;AAEtB,CAAC,CAAA;AACD,MAAM,CAAC,MAAM,cAAc,GAAG,CAAC,GAAa,EAAO,EAAE;IACrD,OAAO;QACP,uBAAuB,EAAE,GAAG,CAAC,WAAW;QACxC,2BAA2B,EAAE,GAAG,CAAC,eAAe;QAChD,sBAAsB,EAAE,GAAG,CAAC,WAAW;QACvC,oBAAoB,EAAE,GAAG,CAAC,SAAS;KAE1B,CAAA;AAET,CAAC,CAAA;AAGG,MAAM,CAAC,MAAM,QAAQ,GAAG;;;;;;;EAO1B,CAAC"}
@@ -0,0 +1,7 @@
1
+ interface RequestCoopExitInput {
2
+ leafExternalIds: string[];
3
+ withdrawalAddress: string;
4
+ }
5
+ export declare const RequestCoopExitInputFromJson: (obj: any) => RequestCoopExitInput;
6
+ export declare const RequestCoopExitInputToJson: (obj: RequestCoopExitInput) => any;
7
+ export default RequestCoopExitInput;
@@ -0,0 +1,14 @@
1
+ // Copyright ©, 2023-present, Lightspark Group, Inc. - All Rights Reserved
2
+ export const RequestCoopExitInputFromJson = (obj) => {
3
+ return {
4
+ leafExternalIds: obj["request_coop_exit_input_leaf_external_ids"],
5
+ withdrawalAddress: obj["request_coop_exit_input_withdrawal_address"],
6
+ };
7
+ };
8
+ export const RequestCoopExitInputToJson = (obj) => {
9
+ return {
10
+ request_coop_exit_input_leaf_external_ids: obj.leafExternalIds,
11
+ request_coop_exit_input_withdrawal_address: obj.withdrawalAddress,
12
+ };
13
+ };
14
+ //# sourceMappingURL=RequestCoopExitInput.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"RequestCoopExitInput.js","sourceRoot":"","sources":["../../../src/graphql/objects/RequestCoopExitInput.ts"],"names":[],"mappings":"AACA,0EAA0E;AAkB1E,MAAM,CAAC,MAAM,4BAA4B,GAAG,CAAC,GAAQ,EAAwB,EAAE;IAC3E,OAAO;QACH,eAAe,EAAE,GAAG,CAAC,2CAA2C,CAAC;QACjE,iBAAiB,EAAE,GAAG,CAAC,4CAA4C,CAAC;KAE3C,CAAC;AAElC,CAAC,CAAA;AACD,MAAM,CAAC,MAAM,0BAA0B,GAAG,CAAC,GAAyB,EAAO,EAAE;IAC7E,OAAO;QACP,yCAAyC,EAAE,GAAG,CAAC,eAAe;QAC9D,0CAA0C,EAAE,GAAG,CAAC,iBAAiB;KAExD,CAAA;AAET,CAAC,CAAA"}
@@ -0,0 +1,7 @@
1
+ interface RequestCoopExitOutput {
2
+ requestId: string;
3
+ }
4
+ export declare const RequestCoopExitOutputFromJson: (obj: any) => RequestCoopExitOutput;
5
+ export declare const RequestCoopExitOutputToJson: (obj: RequestCoopExitOutput) => any;
6
+ export declare const FRAGMENT = "\nfragment RequestCoopExitOutputFragment on RequestCoopExitOutput {\n __typename\n request_coop_exit_output_request: request {\n id\n }\n}";
7
+ export default RequestCoopExitOutput;
@@ -0,0 +1,19 @@
1
+ // Copyright ©, 2023-present, Lightspark Group, Inc. - All Rights Reserved
2
+ export const RequestCoopExitOutputFromJson = (obj) => {
3
+ return {
4
+ requestId: obj["request_coop_exit_output_request"].id,
5
+ };
6
+ };
7
+ export const RequestCoopExitOutputToJson = (obj) => {
8
+ return {
9
+ request_coop_exit_output_request: { id: obj.requestId },
10
+ };
11
+ };
12
+ export const FRAGMENT = `
13
+ fragment RequestCoopExitOutputFragment on RequestCoopExitOutput {
14
+ __typename
15
+ request_coop_exit_output_request: request {
16
+ id
17
+ }
18
+ }`;
19
+ //# sourceMappingURL=RequestCoopExitOutput.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"RequestCoopExitOutput.js","sourceRoot":"","sources":["../../../src/graphql/objects/RequestCoopExitOutput.ts"],"names":[],"mappings":"AACA,0EAA0E;AAgB1E,MAAM,CAAC,MAAM,6BAA6B,GAAG,CAAC,GAAQ,EAAyB,EAAE;IAC7E,OAAO;QACH,SAAS,EAAE,GAAG,CAAC,kCAAkC,CAAC,CAAC,EAAE;KAE3B,CAAC;AAEnC,CAAC,CAAA;AACD,MAAM,CAAC,MAAM,2BAA2B,GAAG,CAAC,GAA0B,EAAO,EAAE;IAC/E,OAAO;QACP,gCAAgC,EAAE,EAAE,EAAE,EAAE,GAAG,CAAC,SAAS,EAAE;KAE9C,CAAA;AAET,CAAC,CAAA;AAGG,MAAM,CAAC,MAAM,QAAQ,GAAG;;;;;;EAM1B,CAAC"}
@@ -0,0 +1,13 @@
1
+ import BitcoinNetwork from './BitcoinNetwork.js';
2
+ import UserLeafInput from './UserLeafInput.js';
3
+ interface RequestLeavesSwapInput {
4
+ adaptorPubkey: string;
5
+ totalAmountSats: number;
6
+ targetAmountSats: number;
7
+ feeSats: number;
8
+ network: BitcoinNetwork;
9
+ userLeaves: UserLeafInput[];
10
+ }
11
+ export declare const RequestLeavesSwapInputFromJson: (obj: any) => RequestLeavesSwapInput;
12
+ export declare const RequestLeavesSwapInputToJson: (obj: RequestLeavesSwapInput) => any;
13
+ export default RequestLeavesSwapInput;
@@ -0,0 +1,25 @@
1
+ // Copyright ©, 2023-present, Lightspark Group, Inc. - All Rights Reserved
2
+ import { UserLeafInputFromJson } from './UserLeafInput.js';
3
+ import BitcoinNetwork from './BitcoinNetwork.js';
4
+ import { UserLeafInputToJson } from './UserLeafInput.js';
5
+ export const RequestLeavesSwapInputFromJson = (obj) => {
6
+ return {
7
+ adaptorPubkey: obj["request_leaves_swap_input_adaptor_pubkey"],
8
+ totalAmountSats: obj["request_leaves_swap_input_total_amount_sats"],
9
+ targetAmountSats: obj["request_leaves_swap_input_target_amount_sats"],
10
+ feeSats: obj["request_leaves_swap_input_fee_sats"],
11
+ network: BitcoinNetwork[obj["request_leaves_swap_input_network"]] ?? BitcoinNetwork.FUTURE_VALUE,
12
+ userLeaves: obj["request_leaves_swap_input_user_leaves"].map((e) => UserLeafInputFromJson(e)),
13
+ };
14
+ };
15
+ export const RequestLeavesSwapInputToJson = (obj) => {
16
+ return {
17
+ request_leaves_swap_input_adaptor_pubkey: obj.adaptorPubkey,
18
+ request_leaves_swap_input_total_amount_sats: obj.totalAmountSats,
19
+ request_leaves_swap_input_target_amount_sats: obj.targetAmountSats,
20
+ request_leaves_swap_input_fee_sats: obj.feeSats,
21
+ request_leaves_swap_input_network: obj.network,
22
+ request_leaves_swap_input_user_leaves: obj.userLeaves.map((e) => UserLeafInputToJson(e)),
23
+ };
24
+ };
25
+ //# sourceMappingURL=RequestLeavesSwapInput.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"RequestLeavesSwapInput.js","sourceRoot":"","sources":["../../../src/graphql/objects/RequestLeavesSwapInput.ts"],"names":[],"mappings":"AACA,0EAA0E;AAG1E,OAAO,EAAC,qBAAqB,EAAC,MAAM,oBAAoB,CAAC;AACzD,OAAO,cAAc,MAAM,qBAAqB,CAAC;AACjD,OAAO,EAAC,mBAAmB,EAAC,MAAM,oBAAoB,CAAC;AAwBvD,MAAM,CAAC,MAAM,8BAA8B,GAAG,CAAC,GAAQ,EAA0B,EAAE;IAC/E,OAAO;QACH,aAAa,EAAE,GAAG,CAAC,0CAA0C,CAAC;QAC9D,eAAe,EAAE,GAAG,CAAC,6CAA6C,CAAC;QACnE,gBAAgB,EAAE,GAAG,CAAC,8CAA8C,CAAC;QACrE,OAAO,EAAE,GAAG,CAAC,oCAAoC,CAAC;QAClD,OAAO,EAAE,cAAc,CAAC,GAAG,CAAC,mCAAmC,CAAC,CAAC,IAAI,cAAc,CAAC,YAAY;QAChG,UAAU,EAAE,GAAG,CAAC,uCAAuC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,qBAAqB,CAAC,CAAC,CAAC,CAAC;KAElE,CAAC;AAEpC,CAAC,CAAA;AACD,MAAM,CAAC,MAAM,4BAA4B,GAAG,CAAC,GAA2B,EAAO,EAAE;IACjF,OAAO;QACP,wCAAwC,EAAE,GAAG,CAAC,aAAa;QAC3D,2CAA2C,EAAE,GAAG,CAAC,eAAe;QAChE,4CAA4C,EAAE,GAAG,CAAC,gBAAgB;QAClE,kCAAkC,EAAE,GAAG,CAAC,OAAO;QAC/C,iCAAiC,EAAE,GAAG,CAAC,OAAO;QAC9C,qCAAqC,EAAE,GAAG,CAAC,UAAU,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,mBAAmB,CAAC,CAAC,CAAC,CAAC;KAE/E,CAAA;AAET,CAAC,CAAA"}
@@ -0,0 +1,7 @@
1
+ interface RequestLeavesSwapOutput {
2
+ requestId: string;
3
+ }
4
+ export declare const RequestLeavesSwapOutputFromJson: (obj: any) => RequestLeavesSwapOutput;
5
+ export declare const RequestLeavesSwapOutputToJson: (obj: RequestLeavesSwapOutput) => any;
6
+ export declare const FRAGMENT = "\nfragment RequestLeavesSwapOutputFragment on RequestLeavesSwapOutput {\n __typename\n request_leaves_swap_output_request: request {\n id\n }\n}";
7
+ export default RequestLeavesSwapOutput;
@@ -0,0 +1,19 @@
1
+ // Copyright ©, 2023-present, Lightspark Group, Inc. - All Rights Reserved
2
+ export const RequestLeavesSwapOutputFromJson = (obj) => {
3
+ return {
4
+ requestId: obj["request_leaves_swap_output_request"].id,
5
+ };
6
+ };
7
+ export const RequestLeavesSwapOutputToJson = (obj) => {
8
+ return {
9
+ request_leaves_swap_output_request: { id: obj.requestId },
10
+ };
11
+ };
12
+ export const FRAGMENT = `
13
+ fragment RequestLeavesSwapOutputFragment on RequestLeavesSwapOutput {
14
+ __typename
15
+ request_leaves_swap_output_request: request {
16
+ id
17
+ }
18
+ }`;
19
+ //# sourceMappingURL=RequestLeavesSwapOutput.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"RequestLeavesSwapOutput.js","sourceRoot":"","sources":["../../../src/graphql/objects/RequestLeavesSwapOutput.ts"],"names":[],"mappings":"AACA,0EAA0E;AAgB1E,MAAM,CAAC,MAAM,+BAA+B,GAAG,CAAC,GAAQ,EAA2B,EAAE;IACjF,OAAO;QACH,SAAS,EAAE,GAAG,CAAC,oCAAoC,CAAC,CAAC,EAAE;KAE3B,CAAC;AAErC,CAAC,CAAA;AACD,MAAM,CAAC,MAAM,6BAA6B,GAAG,CAAC,GAA4B,EAAO,EAAE;IACnF,OAAO;QACP,kCAAkC,EAAE,EAAE,EAAE,EAAE,GAAG,CAAC,SAAS,EAAE;KAEhD,CAAA;AAET,CAAC,CAAA;AAGG,MAAM,CAAC,MAAM,QAAQ,GAAG;;;;;;EAM1B,CAAC"}
@@ -0,0 +1,16 @@
1
+ import BitcoinNetwork from './BitcoinNetwork.js';
2
+ interface RequestLightningReceiveInput {
3
+ /** The bitcoin network the lightning invoice is created on. **/
4
+ network: BitcoinNetwork;
5
+ /** The amount for which the lightning invoice should be created in satoshis. **/
6
+ amountSats: number;
7
+ /** The 32-byte hash of the payment preimage to use when generating the lightning invoice. **/
8
+ paymentHash: string;
9
+ /** The expiry of the lightning invoice in seconds. Default value is 3600 (1 hour). **/
10
+ expirySecs?: number | undefined;
11
+ /** The memo to include in the lightning invoice. **/
12
+ memo?: string | undefined;
13
+ }
14
+ export declare const RequestLightningReceiveInputFromJson: (obj: any) => RequestLightningReceiveInput;
15
+ export declare const RequestLightningReceiveInputToJson: (obj: RequestLightningReceiveInput) => any;
16
+ export default RequestLightningReceiveInput;
@@ -0,0 +1,21 @@
1
+ // Copyright ©, 2023-present, Lightspark Group, Inc. - All Rights Reserved
2
+ import BitcoinNetwork from './BitcoinNetwork.js';
3
+ export const RequestLightningReceiveInputFromJson = (obj) => {
4
+ return {
5
+ network: BitcoinNetwork[obj["request_lightning_receive_input_network"]] ?? BitcoinNetwork.FUTURE_VALUE,
6
+ amountSats: obj["request_lightning_receive_input_amount_sats"],
7
+ paymentHash: obj["request_lightning_receive_input_payment_hash"],
8
+ expirySecs: obj["request_lightning_receive_input_expiry_secs"],
9
+ memo: obj["request_lightning_receive_input_memo"],
10
+ };
11
+ };
12
+ export const RequestLightningReceiveInputToJson = (obj) => {
13
+ return {
14
+ request_lightning_receive_input_network: obj.network,
15
+ request_lightning_receive_input_amount_sats: obj.amountSats,
16
+ request_lightning_receive_input_payment_hash: obj.paymentHash,
17
+ request_lightning_receive_input_expiry_secs: obj.expirySecs,
18
+ request_lightning_receive_input_memo: obj.memo,
19
+ };
20
+ };
21
+ //# sourceMappingURL=RequestLightningReceiveInput.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"RequestLightningReceiveInput.js","sourceRoot":"","sources":["../../../src/graphql/objects/RequestLightningReceiveInput.ts"],"names":[],"mappings":"AACA,0EAA0E;AAG1E,OAAO,cAAc,MAAM,qBAAqB,CAAC;AA0BjD,MAAM,CAAC,MAAM,oCAAoC,GAAG,CAAC,GAAQ,EAAgC,EAAE;IAC3F,OAAO;QACH,OAAO,EAAE,cAAc,CAAC,GAAG,CAAC,yCAAyC,CAAC,CAAC,IAAI,cAAc,CAAC,YAAY;QACtG,UAAU,EAAE,GAAG,CAAC,6CAA6C,CAAC;QAC9D,WAAW,EAAE,GAAG,CAAC,8CAA8C,CAAC;QAChE,UAAU,EAAE,GAAG,CAAC,6CAA6C,CAAC;QAC9D,IAAI,EAAE,GAAG,CAAC,sCAAsC,CAAC;KAEhB,CAAC;AAE1C,CAAC,CAAA;AACD,MAAM,CAAC,MAAM,kCAAkC,GAAG,CAAC,GAAiC,EAAO,EAAE;IAC7F,OAAO;QACP,uCAAuC,EAAE,GAAG,CAAC,OAAO;QACpD,2CAA2C,EAAE,GAAG,CAAC,UAAU;QAC3D,4CAA4C,EAAE,GAAG,CAAC,WAAW;QAC7D,2CAA2C,EAAE,GAAG,CAAC,UAAU;QAC3D,oCAAoC,EAAE,GAAG,CAAC,IAAI;KAErC,CAAA;AAET,CAAC,CAAA"}
@@ -0,0 +1,7 @@
1
+ interface RequestLightningReceiveOutput {
2
+ requestId: string;
3
+ }
4
+ export declare const RequestLightningReceiveOutputFromJson: (obj: any) => RequestLightningReceiveOutput;
5
+ export declare const RequestLightningReceiveOutputToJson: (obj: RequestLightningReceiveOutput) => any;
6
+ export declare const FRAGMENT = "\nfragment RequestLightningReceiveOutputFragment on RequestLightningReceiveOutput {\n __typename\n request_lightning_receive_output_request: request {\n id\n }\n}";
7
+ export default RequestLightningReceiveOutput;
@@ -0,0 +1,19 @@
1
+ // Copyright ©, 2023-present, Lightspark Group, Inc. - All Rights Reserved
2
+ export const RequestLightningReceiveOutputFromJson = (obj) => {
3
+ return {
4
+ requestId: obj["request_lightning_receive_output_request"].id,
5
+ };
6
+ };
7
+ export const RequestLightningReceiveOutputToJson = (obj) => {
8
+ return {
9
+ request_lightning_receive_output_request: { id: obj.requestId },
10
+ };
11
+ };
12
+ export const FRAGMENT = `
13
+ fragment RequestLightningReceiveOutputFragment on RequestLightningReceiveOutput {
14
+ __typename
15
+ request_lightning_receive_output_request: request {
16
+ id
17
+ }
18
+ }`;
19
+ //# sourceMappingURL=RequestLightningReceiveOutput.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"RequestLightningReceiveOutput.js","sourceRoot":"","sources":["../../../src/graphql/objects/RequestLightningReceiveOutput.ts"],"names":[],"mappings":"AACA,0EAA0E;AAgB1E,MAAM,CAAC,MAAM,qCAAqC,GAAG,CAAC,GAAQ,EAAiC,EAAE;IAC7F,OAAO;QACH,SAAS,EAAE,GAAG,CAAC,0CAA0C,CAAC,CAAC,EAAE;KAE3B,CAAC;AAE3C,CAAC,CAAA;AACD,MAAM,CAAC,MAAM,mCAAmC,GAAG,CAAC,GAAkC,EAAO,EAAE;IAC/F,OAAO;QACP,wCAAwC,EAAE,EAAE,EAAE,EAAE,GAAG,CAAC,SAAS,EAAE;KAEtD,CAAA;AAET,CAAC,CAAA;AAGG,MAAM,CAAC,MAAM,QAAQ,GAAG;;;;;;EAM1B,CAAC"}
@@ -0,0 +1,7 @@
1
+ interface RequestLightningSendInput {
2
+ encodedInvoice: string;
3
+ idempotencyKey: string;
4
+ }
5
+ export declare const RequestLightningSendInputFromJson: (obj: any) => RequestLightningSendInput;
6
+ export declare const RequestLightningSendInputToJson: (obj: RequestLightningSendInput) => any;
7
+ export default RequestLightningSendInput;
@@ -0,0 +1,14 @@
1
+ // Copyright ©, 2023-present, Lightspark Group, Inc. - All Rights Reserved
2
+ export const RequestLightningSendInputFromJson = (obj) => {
3
+ return {
4
+ encodedInvoice: obj["request_lightning_send_input_encoded_invoice"],
5
+ idempotencyKey: obj["request_lightning_send_input_idempotency_key"],
6
+ };
7
+ };
8
+ export const RequestLightningSendInputToJson = (obj) => {
9
+ return {
10
+ request_lightning_send_input_encoded_invoice: obj.encodedInvoice,
11
+ request_lightning_send_input_idempotency_key: obj.idempotencyKey,
12
+ };
13
+ };
14
+ //# sourceMappingURL=RequestLightningSendInput.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"RequestLightningSendInput.js","sourceRoot":"","sources":["../../../src/graphql/objects/RequestLightningSendInput.ts"],"names":[],"mappings":"AACA,0EAA0E;AAkB1E,MAAM,CAAC,MAAM,iCAAiC,GAAG,CAAC,GAAQ,EAA6B,EAAE;IACrF,OAAO;QACH,cAAc,EAAE,GAAG,CAAC,8CAA8C,CAAC;QACnE,cAAc,EAAE,GAAG,CAAC,8CAA8C,CAAC;KAErC,CAAC;AAEvC,CAAC,CAAA;AACD,MAAM,CAAC,MAAM,+BAA+B,GAAG,CAAC,GAA8B,EAAO,EAAE;IACvF,OAAO;QACP,4CAA4C,EAAE,GAAG,CAAC,cAAc;QAChE,4CAA4C,EAAE,GAAG,CAAC,cAAc;KAEvD,CAAA;AAET,CAAC,CAAA"}
@@ -0,0 +1,7 @@
1
+ interface RequestLightningSendOutput {
2
+ requestId: string;
3
+ }
4
+ export declare const RequestLightningSendOutputFromJson: (obj: any) => RequestLightningSendOutput;
5
+ export declare const RequestLightningSendOutputToJson: (obj: RequestLightningSendOutput) => any;
6
+ export declare const FRAGMENT = "\nfragment RequestLightningSendOutputFragment on RequestLightningSendOutput {\n __typename\n request_lightning_send_output_request: request {\n id\n }\n}";
7
+ export default RequestLightningSendOutput;
@@ -0,0 +1,19 @@
1
+ // Copyright ©, 2023-present, Lightspark Group, Inc. - All Rights Reserved
2
+ export const RequestLightningSendOutputFromJson = (obj) => {
3
+ return {
4
+ requestId: obj["request_lightning_send_output_request"].id,
5
+ };
6
+ };
7
+ export const RequestLightningSendOutputToJson = (obj) => {
8
+ return {
9
+ request_lightning_send_output_request: { id: obj.requestId },
10
+ };
11
+ };
12
+ export const FRAGMENT = `
13
+ fragment RequestLightningSendOutputFragment on RequestLightningSendOutput {
14
+ __typename
15
+ request_lightning_send_output_request: request {
16
+ id
17
+ }
18
+ }`;
19
+ //# sourceMappingURL=RequestLightningSendOutput.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"RequestLightningSendOutput.js","sourceRoot":"","sources":["../../../src/graphql/objects/RequestLightningSendOutput.ts"],"names":[],"mappings":"AACA,0EAA0E;AAgB1E,MAAM,CAAC,MAAM,kCAAkC,GAAG,CAAC,GAAQ,EAA8B,EAAE;IACvF,OAAO;QACH,SAAS,EAAE,GAAG,CAAC,uCAAuC,CAAC,CAAC,EAAE;KAE3B,CAAC;AAExC,CAAC,CAAA;AACD,MAAM,CAAC,MAAM,gCAAgC,GAAG,CAAC,GAA+B,EAAO,EAAE;IACzF,OAAO;QACP,qCAAqC,EAAE,EAAE,EAAE,EAAE,GAAG,CAAC,SAAS,EAAE;KAEnD,CAAA;AAET,CAAC,CAAA;AAGG,MAAM,CAAC,MAAM,QAAQ,GAAG;;;;;;EAM1B,CAAC"}
@@ -0,0 +1,11 @@
1
+ export declare enum SparkCoopExitRequestStatus {
2
+ /**
3
+ * This is an enum value that represents values that could be added in the future.
4
+ * Clients should support unknown values as more of them could be added without notice.
5
+ */
6
+ FUTURE_VALUE = "FUTURE_VALUE",
7
+ INITIATED = "INITIATED",
8
+ FAILED = "FAILED",
9
+ SUCCEEDED = "SUCCEEDED"
10
+ }
11
+ export default SparkCoopExitRequestStatus;
@@ -0,0 +1,14 @@
1
+ // Copyright ©, 2023-present, Lightspark Group, Inc. - All Rights Reserved
2
+ export var SparkCoopExitRequestStatus;
3
+ (function (SparkCoopExitRequestStatus) {
4
+ /**
5
+ * This is an enum value that represents values that could be added in the future.
6
+ * Clients should support unknown values as more of them could be added without notice.
7
+ */
8
+ SparkCoopExitRequestStatus["FUTURE_VALUE"] = "FUTURE_VALUE";
9
+ SparkCoopExitRequestStatus["INITIATED"] = "INITIATED";
10
+ SparkCoopExitRequestStatus["FAILED"] = "FAILED";
11
+ SparkCoopExitRequestStatus["SUCCEEDED"] = "SUCCEEDED";
12
+ })(SparkCoopExitRequestStatus || (SparkCoopExitRequestStatus = {}));
13
+ export default SparkCoopExitRequestStatus;
14
+ //# sourceMappingURL=SparkCoopExitRequestStatus.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"SparkCoopExitRequestStatus.js","sourceRoot":"","sources":["../../../src/graphql/objects/SparkCoopExitRequestStatus.ts"],"names":[],"mappings":"AACA,0EAA0E;AAG1E,MAAM,CAAN,IAAY,0BAaX;AAbD,WAAY,0BAA0B;IACtC;;;OAGG;IACF,2DAA6B,CAAA;IAE9B,qDAAuB,CAAA;IAEvB,+CAAiB,CAAA;IAEjB,qDAAuB,CAAA;AAEvB,CAAC,EAbW,0BAA0B,KAA1B,0BAA0B,QAarC;AAED,eAAe,0BAA0B,CAAC"}
@@ -0,0 +1,11 @@
1
+ export declare enum SparkLeavesSwapRequestStatus {
2
+ /**
3
+ * This is an enum value that represents values that could be added in the future.
4
+ * Clients should support unknown values as more of them could be added without notice.
5
+ */
6
+ FUTURE_VALUE = "FUTURE_VALUE",
7
+ INITIATED = "INITIATED",
8
+ FAILED = "FAILED",
9
+ SUCCEEDED = "SUCCEEDED"
10
+ }
11
+ export default SparkLeavesSwapRequestStatus;
@@ -0,0 +1,14 @@
1
+ // Copyright ©, 2023-present, Lightspark Group, Inc. - All Rights Reserved
2
+ export var SparkLeavesSwapRequestStatus;
3
+ (function (SparkLeavesSwapRequestStatus) {
4
+ /**
5
+ * This is an enum value that represents values that could be added in the future.
6
+ * Clients should support unknown values as more of them could be added without notice.
7
+ */
8
+ SparkLeavesSwapRequestStatus["FUTURE_VALUE"] = "FUTURE_VALUE";
9
+ SparkLeavesSwapRequestStatus["INITIATED"] = "INITIATED";
10
+ SparkLeavesSwapRequestStatus["FAILED"] = "FAILED";
11
+ SparkLeavesSwapRequestStatus["SUCCEEDED"] = "SUCCEEDED";
12
+ })(SparkLeavesSwapRequestStatus || (SparkLeavesSwapRequestStatus = {}));
13
+ export default SparkLeavesSwapRequestStatus;
14
+ //# sourceMappingURL=SparkLeavesSwapRequestStatus.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"SparkLeavesSwapRequestStatus.js","sourceRoot":"","sources":["../../../src/graphql/objects/SparkLeavesSwapRequestStatus.ts"],"names":[],"mappings":"AACA,0EAA0E;AAG1E,MAAM,CAAN,IAAY,4BAaX;AAbD,WAAY,4BAA4B;IACxC;;;OAGG;IACF,6DAA6B,CAAA;IAE9B,uDAAuB,CAAA;IAEvB,iDAAiB,CAAA;IAEjB,uDAAuB,CAAA;AAEvB,CAAC,EAbW,4BAA4B,KAA5B,4BAA4B,QAavC;AAED,eAAe,4BAA4B,CAAC"}
@@ -0,0 +1,19 @@
1
+ import PageInfo from './PageInfo.js';
2
+ import Leaf from './Leaf.js';
3
+ interface SparkTransferToLeavesConnection {
4
+ /**
5
+ * The total count of objects in this connection, using the current filters. It is different from the
6
+ * number of objects returned in the current page (in the `entities` field).
7
+ **/
8
+ count: number;
9
+ /** An object that holds pagination information about the objects in this connection. **/
10
+ pageInfo: PageInfo;
11
+ /** The leaves for the current page of this connection. **/
12
+ entities: Leaf[];
13
+ /** The typename of the object **/
14
+ typename: string;
15
+ }
16
+ export declare const SparkTransferToLeavesConnectionFromJson: (obj: any) => SparkTransferToLeavesConnection;
17
+ export declare const SparkTransferToLeavesConnectionToJson: (obj: SparkTransferToLeavesConnection) => any;
18
+ export declare const FRAGMENT = "\nfragment SparkTransferToLeavesConnectionFragment on SparkTransferToLeavesConnection {\n __typename\n spark_transfer_to_leaves_connection_count: count\n spark_transfer_to_leaves_connection_page_info: page_info {\n __typename\n page_info_has_next_page: has_next_page\n page_info_has_previous_page: has_previous_page\n page_info_start_cursor: start_cursor\n page_info_end_cursor: end_cursor\n }\n spark_transfer_to_leaves_connection_entities: entities {\n __typename\n leaf_amount: amount {\n __typename\n currency_amount_original_value: original_value\n currency_amount_original_unit: original_unit\n currency_amount_preferred_currency_unit: preferred_currency_unit\n currency_amount_preferred_currency_value_rounded: preferred_currency_value_rounded\n currency_amount_preferred_currency_value_approx: preferred_currency_value_approx\n }\n leaf_spark_node_id: spark_node_id\n }\n}";
19
+ export default SparkTransferToLeavesConnection;
@@ -0,0 +1,45 @@
1
+ // Copyright ©, 2023-present, Lightspark Group, Inc. - All Rights Reserved
2
+ import { LeafFromJson } from './Leaf.js';
3
+ import { PageInfoToJson } from './PageInfo.js';
4
+ import { PageInfoFromJson } from './PageInfo.js';
5
+ import { LeafToJson } from './Leaf.js';
6
+ export const SparkTransferToLeavesConnectionFromJson = (obj) => {
7
+ return {
8
+ count: obj["spark_transfer_to_leaves_connection_count"],
9
+ pageInfo: PageInfoFromJson(obj["spark_transfer_to_leaves_connection_page_info"]),
10
+ entities: obj["spark_transfer_to_leaves_connection_entities"].map((e) => LeafFromJson(e)),
11
+ typename: "SparkTransferToLeavesConnection",
12
+ };
13
+ };
14
+ export const SparkTransferToLeavesConnectionToJson = (obj) => {
15
+ return {
16
+ __typename: "SparkTransferToLeavesConnection", spark_transfer_to_leaves_connection_count: obj.count,
17
+ spark_transfer_to_leaves_connection_page_info: PageInfoToJson(obj.pageInfo),
18
+ spark_transfer_to_leaves_connection_entities: obj.entities.map((e) => LeafToJson(e)),
19
+ };
20
+ };
21
+ export const FRAGMENT = `
22
+ fragment SparkTransferToLeavesConnectionFragment on SparkTransferToLeavesConnection {
23
+ __typename
24
+ spark_transfer_to_leaves_connection_count: count
25
+ spark_transfer_to_leaves_connection_page_info: page_info {
26
+ __typename
27
+ page_info_has_next_page: has_next_page
28
+ page_info_has_previous_page: has_previous_page
29
+ page_info_start_cursor: start_cursor
30
+ page_info_end_cursor: end_cursor
31
+ }
32
+ spark_transfer_to_leaves_connection_entities: entities {
33
+ __typename
34
+ leaf_amount: amount {
35
+ __typename
36
+ currency_amount_original_value: original_value
37
+ currency_amount_original_unit: original_unit
38
+ currency_amount_preferred_currency_unit: preferred_currency_unit
39
+ currency_amount_preferred_currency_value_rounded: preferred_currency_value_rounded
40
+ currency_amount_preferred_currency_value_approx: preferred_currency_value_approx
41
+ }
42
+ leaf_spark_node_id: spark_node_id
43
+ }
44
+ }`;
45
+ //# sourceMappingURL=SparkTransferToLeavesConnection.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"SparkTransferToLeavesConnection.js","sourceRoot":"","sources":["../../../src/graphql/objects/SparkTransferToLeavesConnection.ts"],"names":[],"mappings":"AACA,0EAA0E;AAG1E,OAAO,EAAC,YAAY,EAAC,MAAM,WAAW,CAAC;AACvC,OAAO,EAAC,cAAc,EAAC,MAAM,eAAe,CAAC;AAE7C,OAAO,EAAC,gBAAgB,EAAC,MAAM,eAAe,CAAC;AAE/C,OAAO,EAAC,UAAU,EAAC,MAAM,WAAW,CAAC;AA0BrC,MAAM,CAAC,MAAM,uCAAuC,GAAG,CAAC,GAAQ,EAAmC,EAAE;IACjG,OAAO;QACH,KAAK,EAAE,GAAG,CAAC,2CAA2C,CAAC;QACvD,QAAQ,EAAE,gBAAgB,CAAC,GAAG,CAAC,+CAA+C,CAAC,CAAC;QAChF,QAAQ,EAAE,GAAG,CAAC,8CAA8C,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,YAAY,CAAC,CAAC,CAAC,CAAC;QACjG,QAAQ,EAAE,iCAAiC;KACC,CAAC;AAE7C,CAAC,CAAA;AACD,MAAM,CAAC,MAAM,qCAAqC,GAAG,CAAC,GAAoC,EAAO,EAAE;IACnG,OAAO;QACP,UAAU,EAAE,iCAAiC,EAAC,yCAAyC,EAAE,GAAG,CAAC,KAAK;QAClG,6CAA6C,EAAE,cAAc,CAAC,GAAG,CAAC,QAAQ,CAAC;QAC3E,4CAA4C,EAAE,GAAG,CAAC,QAAQ,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,UAAU,CAAC,CAAC,CAAC,CAAC;KAE3E,CAAA;AAET,CAAC,CAAA;AAGG,MAAM,CAAC,MAAM,QAAQ,GAAG;;;;;;;;;;;;;;;;;;;;;;;EAuB1B,CAAC"}
@@ -0,0 +1,9 @@
1
+ interface SwapLeaf {
2
+ leafId: string;
3
+ rawUnsignedRefundTransaction: string;
4
+ adaptorSignedSignature: string;
5
+ }
6
+ export declare const SwapLeafFromJson: (obj: any) => SwapLeaf;
7
+ export declare const SwapLeafToJson: (obj: SwapLeaf) => any;
8
+ export declare const FRAGMENT = "\nfragment SwapLeafFragment on SwapLeaf {\n __typename\n swap_leaf_leaf_id: leaf_id\n swap_leaf_raw_unsigned_refund_transaction: raw_unsigned_refund_transaction\n swap_leaf_adaptor_signed_signature: adaptor_signed_signature\n}";
9
+ export default SwapLeaf;
@@ -0,0 +1,23 @@
1
+ // Copyright ©, 2023-present, Lightspark Group, Inc. - All Rights Reserved
2
+ export const SwapLeafFromJson = (obj) => {
3
+ return {
4
+ leafId: obj["swap_leaf_leaf_id"],
5
+ rawUnsignedRefundTransaction: obj["swap_leaf_raw_unsigned_refund_transaction"],
6
+ adaptorSignedSignature: obj["swap_leaf_adaptor_signed_signature"],
7
+ };
8
+ };
9
+ export const SwapLeafToJson = (obj) => {
10
+ return {
11
+ swap_leaf_leaf_id: obj.leafId,
12
+ swap_leaf_raw_unsigned_refund_transaction: obj.rawUnsignedRefundTransaction,
13
+ swap_leaf_adaptor_signed_signature: obj.adaptorSignedSignature,
14
+ };
15
+ };
16
+ export const FRAGMENT = `
17
+ fragment SwapLeafFragment on SwapLeaf {
18
+ __typename
19
+ swap_leaf_leaf_id: leaf_id
20
+ swap_leaf_raw_unsigned_refund_transaction: raw_unsigned_refund_transaction
21
+ swap_leaf_adaptor_signed_signature: adaptor_signed_signature
22
+ }`;
23
+ //# sourceMappingURL=SwapLeaf.js.map