@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,56 @@
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
+ import { LightsparkException } from '@lightsparkdev/core';
7
+ export const ConnectionFromJson = (obj) => {
8
+ if (obj["__typename"] == "SparkTransferToLeavesConnection") {
9
+ return {
10
+ count: obj["spark_transfer_to_leaves_connection_count"],
11
+ pageInfo: PageInfoFromJson(obj["spark_transfer_to_leaves_connection_page_info"]),
12
+ entities: obj["spark_transfer_to_leaves_connection_entities"].map((e) => LeafFromJson(e)),
13
+ typename: "SparkTransferToLeavesConnection",
14
+ };
15
+ }
16
+ throw new LightsparkException("DeserializationError", `Couldn't find a concrete type for interface Connection corresponding to the typename=${obj["__typename"]}`);
17
+ };
18
+ export const ConnectionToJson = (obj) => {
19
+ if (obj.typename == "SparkTransferToLeavesConnection") {
20
+ const sparkTransferToLeavesConnection = obj;
21
+ return {
22
+ __typename: "SparkTransferToLeavesConnection", spark_transfer_to_leaves_connection_count: sparkTransferToLeavesConnection.count,
23
+ spark_transfer_to_leaves_connection_page_info: PageInfoToJson(sparkTransferToLeavesConnection.pageInfo),
24
+ spark_transfer_to_leaves_connection_entities: sparkTransferToLeavesConnection.entities.map((e) => LeafToJson(e)),
25
+ };
26
+ }
27
+ throw new LightsparkException("DeserializationError", `Couldn't find a concrete type for interface Connection corresponding to the typename=${obj.typename}`);
28
+ };
29
+ export const FRAGMENT = `
30
+ fragment ConnectionFragment on Connection {
31
+ __typename
32
+ ... on SparkTransferToLeavesConnection {
33
+ __typename
34
+ spark_transfer_to_leaves_connection_count: count
35
+ spark_transfer_to_leaves_connection_page_info: page_info {
36
+ __typename
37
+ page_info_has_next_page: has_next_page
38
+ page_info_has_previous_page: has_previous_page
39
+ page_info_start_cursor: start_cursor
40
+ page_info_end_cursor: end_cursor
41
+ }
42
+ spark_transfer_to_leaves_connection_entities: entities {
43
+ __typename
44
+ leaf_amount: amount {
45
+ __typename
46
+ currency_amount_original_value: original_value
47
+ currency_amount_original_unit: original_unit
48
+ currency_amount_preferred_currency_unit: preferred_currency_unit
49
+ currency_amount_preferred_currency_value_rounded: preferred_currency_value_rounded
50
+ currency_amount_preferred_currency_value_approx: preferred_currency_value_approx
51
+ }
52
+ leaf_spark_node_id: spark_node_id
53
+ }
54
+ }
55
+ }`;
56
+ //# sourceMappingURL=Connection.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Connection.js","sourceRoot":"","sources":["../../../src/graphql/objects/Connection.ts"],"names":[],"mappings":"AACA,0EAA0E;AAG1E,OAAO,EAAC,YAAY,EAAC,MAAM,WAAW,CAAC;AAEvC,OAAO,EAAC,cAAc,EAAC,MAAM,eAAe,CAAC;AAC7C,OAAO,EAAC,gBAAgB,EAAC,MAAM,eAAe,CAAC;AAC/C,OAAO,EAAC,UAAU,EAAC,MAAM,WAAW,CAAC;AAErC,OAAO,EAAE,mBAAmB,EAAE,MAAM,qBAAqB,CAAC;AAuB1D,MAAM,CAAC,MAAM,kBAAkB,GAAG,CAAC,GAAQ,EAAc,EAAE;IACvD,IAAI,GAAG,CAAC,YAAY,CAAC,IAAI,iCAAiC,EAAE,CAAC;QACzD,OAAO;YACH,KAAK,EAAE,GAAG,CAAC,2CAA2C,CAAC;YACvD,QAAQ,EAAE,gBAAgB,CAAC,GAAG,CAAC,+CAA+C,CAAC,CAAC;YAChF,QAAQ,EAAE,GAAG,CAAC,8CAA8C,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,YAAY,CAAC,CAAC,CAAC,CAAC;YACrG,QAAQ,EAAE,iCAAiC;SACC,CAAC;IAE7C,CAAC;IAAI,MAAM,IAAI,mBAAmB,CAAC,sBAAsB,EAAE,wFAAwF,GAAG,CAAC,YAAY,CAAC,EAAE,CAAC,CAAA;AACvK,CAAC,CAAA;AACD,MAAM,CAAC,MAAM,gBAAgB,GAAG,CAAC,GAAe,EAAO,EAAE;IACrD,IAAI,GAAG,CAAC,QAAQ,IAAI,iCAAiC,EAAE,CAAC;QACrD,MAAM,+BAA+B,GAAG,GAAsC,CAAC;QACtF,OAAO;YACP,UAAU,EAAE,iCAAiC,EAAC,yCAAyC,EAAE,+BAA+B,CAAC,KAAK;YAC9H,6CAA6C,EAAE,cAAc,CAAC,+BAA+B,CAAC,QAAQ,CAAC;YACvG,4CAA4C,EAAE,+BAA+B,CAAC,QAAQ,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,UAAU,CAAC,CAAC,CAAC,CAAC;SAEvG,CAAA;IAET,CAAC;IAAI,MAAM,IAAI,mBAAmB,CAAC,sBAAsB,EAAE,wFAAwF,GAAG,CAAC,QAAQ,EAAE,CAAC,CAAA;AAClK,CAAC,CAAA;AAGG,MAAM,CAAC,MAAM,QAAQ,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;EA0B1B,CAAC"}
@@ -0,0 +1,7 @@
1
+ interface CoopExitFeeEstimateInput {
2
+ leafExternalIds: string[];
3
+ withdrawalAddress: string;
4
+ }
5
+ export declare const CoopExitFeeEstimateInputFromJson: (obj: any) => CoopExitFeeEstimateInput;
6
+ export declare const CoopExitFeeEstimateInputToJson: (obj: CoopExitFeeEstimateInput) => any;
7
+ export default CoopExitFeeEstimateInput;
@@ -0,0 +1,14 @@
1
+ // Copyright ©, 2023-present, Lightspark Group, Inc. - All Rights Reserved
2
+ export const CoopExitFeeEstimateInputFromJson = (obj) => {
3
+ return {
4
+ leafExternalIds: obj["coop_exit_fee_estimate_input_leaf_external_ids"],
5
+ withdrawalAddress: obj["coop_exit_fee_estimate_input_withdrawal_address"],
6
+ };
7
+ };
8
+ export const CoopExitFeeEstimateInputToJson = (obj) => {
9
+ return {
10
+ coop_exit_fee_estimate_input_leaf_external_ids: obj.leafExternalIds,
11
+ coop_exit_fee_estimate_input_withdrawal_address: obj.withdrawalAddress,
12
+ };
13
+ };
14
+ //# sourceMappingURL=CoopExitFeeEstimateInput.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"CoopExitFeeEstimateInput.js","sourceRoot":"","sources":["../../../src/graphql/objects/CoopExitFeeEstimateInput.ts"],"names":[],"mappings":"AACA,0EAA0E;AAkB1E,MAAM,CAAC,MAAM,gCAAgC,GAAG,CAAC,GAAQ,EAA4B,EAAE;IACnF,OAAO;QACH,eAAe,EAAE,GAAG,CAAC,gDAAgD,CAAC;QACtE,iBAAiB,EAAE,GAAG,CAAC,iDAAiD,CAAC;KAE5C,CAAC;AAEtC,CAAC,CAAA;AACD,MAAM,CAAC,MAAM,8BAA8B,GAAG,CAAC,GAA6B,EAAO,EAAE;IACrF,OAAO;QACP,8CAA8C,EAAE,GAAG,CAAC,eAAe;QACnE,+CAA+C,EAAE,GAAG,CAAC,iBAAiB;KAE7D,CAAA;AAET,CAAC,CAAA"}
@@ -0,0 +1,8 @@
1
+ import CurrencyAmount from './CurrencyAmount.js';
2
+ interface CoopExitFeeEstimateOutput {
3
+ feeEstimate: CurrencyAmount;
4
+ }
5
+ export declare const CoopExitFeeEstimateOutputFromJson: (obj: any) => CoopExitFeeEstimateOutput;
6
+ export declare const CoopExitFeeEstimateOutputToJson: (obj: CoopExitFeeEstimateOutput) => any;
7
+ export declare const FRAGMENT = "\nfragment CoopExitFeeEstimateOutputFragment on CoopExitFeeEstimateOutput {\n __typename\n coop_exit_fee_estimate_output_fee_estimate: fee_estimate {\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}";
8
+ export default CoopExitFeeEstimateOutput;
@@ -0,0 +1,26 @@
1
+ // Copyright ©, 2023-present, Lightspark Group, Inc. - All Rights Reserved
2
+ import { CurrencyAmountFromJson } from './CurrencyAmount.js';
3
+ import { CurrencyAmountToJson } from './CurrencyAmount.js';
4
+ export const CoopExitFeeEstimateOutputFromJson = (obj) => {
5
+ return {
6
+ feeEstimate: CurrencyAmountFromJson(obj["coop_exit_fee_estimate_output_fee_estimate"]),
7
+ };
8
+ };
9
+ export const CoopExitFeeEstimateOutputToJson = (obj) => {
10
+ return {
11
+ coop_exit_fee_estimate_output_fee_estimate: CurrencyAmountToJson(obj.feeEstimate),
12
+ };
13
+ };
14
+ export const FRAGMENT = `
15
+ fragment CoopExitFeeEstimateOutputFragment on CoopExitFeeEstimateOutput {
16
+ __typename
17
+ coop_exit_fee_estimate_output_fee_estimate: fee_estimate {
18
+ __typename
19
+ currency_amount_original_value: original_value
20
+ currency_amount_original_unit: original_unit
21
+ currency_amount_preferred_currency_unit: preferred_currency_unit
22
+ currency_amount_preferred_currency_value_rounded: preferred_currency_value_rounded
23
+ currency_amount_preferred_currency_value_approx: preferred_currency_value_approx
24
+ }
25
+ }`;
26
+ //# sourceMappingURL=CoopExitFeeEstimateOutput.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"CoopExitFeeEstimateOutput.js","sourceRoot":"","sources":["../../../src/graphql/objects/CoopExitFeeEstimateOutput.ts"],"names":[],"mappings":"AACA,0EAA0E;AAG1E,OAAO,EAAC,sBAAsB,EAAC,MAAM,qBAAqB,CAAC;AAC3D,OAAO,EAAC,oBAAoB,EAAC,MAAM,qBAAqB,CAAC;AAczD,MAAM,CAAC,MAAM,iCAAiC,GAAG,CAAC,GAAQ,EAA6B,EAAE;IACrF,OAAO;QACH,WAAW,EAAE,sBAAsB,CAAC,GAAG,CAAC,4CAA4C,CAAC,CAAC;KAExD,CAAC;AAEvC,CAAC,CAAA;AACD,MAAM,CAAC,MAAM,+BAA+B,GAAG,CAAC,GAA8B,EAAO,EAAE;IACvF,OAAO;QACP,0CAA0C,EAAE,oBAAoB,CAAC,GAAG,CAAC,WAAW,CAAC;KAExE,CAAA;AAET,CAAC,CAAA;AAGG,MAAM,CAAC,MAAM,QAAQ,GAAG;;;;;;;;;;;EAW1B,CAAC"}
@@ -0,0 +1,32 @@
1
+ import SparkCoopExitRequestStatus from './SparkCoopExitRequestStatus.js';
2
+ import CurrencyAmount from './CurrencyAmount.js';
3
+ import { Query } from '@lightsparkdev/core';
4
+ interface CoopExitRequest {
5
+ /**
6
+ * The unique identifier of this entity across all Lightspark systems. Should be treated as an opaque
7
+ * string.
8
+ **/
9
+ id: string;
10
+ /** The date and time when the entity was first created. **/
11
+ createdAt: string;
12
+ /** The date and time when the entity was last updated. **/
13
+ updatedAt: string;
14
+ /**
15
+ * The fee includes what user pays for the coop exit and the L1 broadcast fee. The amount user will
16
+ * receive on L1 is total_amount - fee.
17
+ **/
18
+ fee: CurrencyAmount;
19
+ /** The status of the request. **/
20
+ status: SparkCoopExitRequestStatus;
21
+ /** The time when the coop exit request expires and the UTXOs are released. **/
22
+ expiresAt: string;
23
+ /** The raw connector transaction. **/
24
+ rawConnectorTransaction: string;
25
+ /** The typename of the object **/
26
+ typename: string;
27
+ }
28
+ export declare const CoopExitRequestFromJson: (obj: any) => CoopExitRequest;
29
+ export declare const CoopExitRequestToJson: (obj: CoopExitRequest) => any;
30
+ export declare const FRAGMENT = "\nfragment CoopExitRequestFragment on CoopExitRequest {\n __typename\n coop_exit_request_id: id\n coop_exit_request_created_at: created_at\n coop_exit_request_updated_at: updated_at\n coop_exit_request_fee: fee {\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 coop_exit_request_status: status\n coop_exit_request_expires_at: expires_at\n coop_exit_request_raw_connector_transaction: raw_connector_transaction\n}";
31
+ export declare const getCoopExitRequestQuery: (id: string) => Query<CoopExitRequest>;
32
+ export default CoopExitRequest;
@@ -0,0 +1,64 @@
1
+ // Copyright ©, 2023-present, Lightspark Group, Inc. - All Rights Reserved
2
+ import { CurrencyAmountFromJson } from './CurrencyAmount.js';
3
+ import SparkCoopExitRequestStatus from './SparkCoopExitRequestStatus.js';
4
+ import { isObject } from '@lightsparkdev/core';
5
+ import { CurrencyAmountToJson } from './CurrencyAmount.js';
6
+ export const CoopExitRequestFromJson = (obj) => {
7
+ return {
8
+ id: obj["coop_exit_request_id"],
9
+ createdAt: obj["coop_exit_request_created_at"],
10
+ updatedAt: obj["coop_exit_request_updated_at"],
11
+ fee: CurrencyAmountFromJson(obj["coop_exit_request_fee"]),
12
+ status: SparkCoopExitRequestStatus[obj["coop_exit_request_status"]] ?? SparkCoopExitRequestStatus.FUTURE_VALUE,
13
+ expiresAt: obj["coop_exit_request_expires_at"],
14
+ rawConnectorTransaction: obj["coop_exit_request_raw_connector_transaction"],
15
+ typename: "CoopExitRequest",
16
+ };
17
+ };
18
+ export const CoopExitRequestToJson = (obj) => {
19
+ return {
20
+ __typename: "CoopExitRequest", coop_exit_request_id: obj.id,
21
+ coop_exit_request_created_at: obj.createdAt,
22
+ coop_exit_request_updated_at: obj.updatedAt,
23
+ coop_exit_request_fee: CurrencyAmountToJson(obj.fee),
24
+ coop_exit_request_status: obj.status,
25
+ coop_exit_request_expires_at: obj.expiresAt,
26
+ coop_exit_request_raw_connector_transaction: obj.rawConnectorTransaction,
27
+ };
28
+ };
29
+ export const FRAGMENT = `
30
+ fragment CoopExitRequestFragment on CoopExitRequest {
31
+ __typename
32
+ coop_exit_request_id: id
33
+ coop_exit_request_created_at: created_at
34
+ coop_exit_request_updated_at: updated_at
35
+ coop_exit_request_fee: fee {
36
+ __typename
37
+ currency_amount_original_value: original_value
38
+ currency_amount_original_unit: original_unit
39
+ currency_amount_preferred_currency_unit: preferred_currency_unit
40
+ currency_amount_preferred_currency_value_rounded: preferred_currency_value_rounded
41
+ currency_amount_preferred_currency_value_approx: preferred_currency_value_approx
42
+ }
43
+ coop_exit_request_status: status
44
+ coop_exit_request_expires_at: expires_at
45
+ coop_exit_request_raw_connector_transaction: raw_connector_transaction
46
+ }`;
47
+ export const getCoopExitRequestQuery = (id) => {
48
+ return {
49
+ queryPayload: `
50
+ query GetCoopExitRequest($id: ID!) {
51
+ entity(id: $id) {
52
+ ... on CoopExitRequest {
53
+ ...CoopExitRequestFragment
54
+ }
55
+ }
56
+ }
57
+
58
+ ${FRAGMENT}
59
+ `,
60
+ variables: { id },
61
+ constructObject: (data) => isObject(data) && "entity" in data && isObject(data.entity) ? CoopExitRequestFromJson(data.entity) : null,
62
+ };
63
+ };
64
+ //# sourceMappingURL=CoopExitRequest.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"CoopExitRequest.js","sourceRoot":"","sources":["../../../src/graphql/objects/CoopExitRequest.ts"],"names":[],"mappings":"AACA,0EAA0E;AAG1E,OAAO,EAAC,sBAAsB,EAAC,MAAM,qBAAqB,CAAC;AAC3D,OAAO,0BAA0B,MAAM,iCAAiC,CAAC;AAEzE,OAAO,EAAS,QAAQ,EAAE,MAAM,qBAAqB,CAAC;AACtD,OAAO,EAAC,oBAAoB,EAAC,MAAM,qBAAqB,CAAC;AAyCzD,MAAM,CAAC,MAAM,uBAAuB,GAAG,CAAC,GAAQ,EAAmB,EAAE;IACjE,OAAO;QACH,EAAE,EAAE,GAAG,CAAC,sBAAsB,CAAC;QAC/B,SAAS,EAAE,GAAG,CAAC,8BAA8B,CAAC;QAC9C,SAAS,EAAE,GAAG,CAAC,8BAA8B,CAAC;QAC9C,GAAG,EAAE,sBAAsB,CAAC,GAAG,CAAC,uBAAuB,CAAC,CAAC;QACzD,MAAM,EAAE,0BAA0B,CAAC,GAAG,CAAC,0BAA0B,CAAC,CAAC,IAAI,0BAA0B,CAAC,YAAY;QAC9G,SAAS,EAAE,GAAG,CAAC,8BAA8B,CAAC;QAC9C,uBAAuB,EAAE,GAAG,CAAC,6CAA6C,CAAC;QACnF,QAAQ,EAAE,iBAAiB;KACC,CAAC;AAE7B,CAAC,CAAA;AACD,MAAM,CAAC,MAAM,qBAAqB,GAAG,CAAC,GAAoB,EAAO,EAAE;IACnE,OAAO;QACP,UAAU,EAAE,iBAAiB,EAAC,oBAAoB,EAAE,GAAG,CAAC,EAAE;QAC1D,4BAA4B,EAAE,GAAG,CAAC,SAAS;QAC3C,4BAA4B,EAAE,GAAG,CAAC,SAAS;QAC3C,qBAAqB,EAAE,oBAAoB,CAAC,GAAG,CAAC,GAAG,CAAC;QACpD,wBAAwB,EAAE,GAAG,CAAC,MAAM;QACpC,4BAA4B,EAAE,GAAG,CAAC,SAAS;QAC3C,2CAA2C,EAAE,GAAG,CAAC,uBAAuB;KAE/D,CAAA;AAET,CAAC,CAAA;AAGG,MAAM,CAAC,MAAM,QAAQ,GAAG;;;;;;;;;;;;;;;;;EAiB1B,CAAC;AAIC,MAAM,CAAC,MAAM,uBAAuB,GAAG,CAAC,EAAU,EAA0B,EAAE;IAC1E,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,uBAAuB,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,IAAI;KAChJ,CAAA;AACL,CAAC,CAAA"}
@@ -0,0 +1,24 @@
1
+ import CurrencyUnit from './CurrencyUnit.js';
2
+ /** This object represents the value and unit for an amount of currency. **/
3
+ interface CurrencyAmount {
4
+ /** The original numeric value for this CurrencyAmount. **/
5
+ originalValue: number;
6
+ /** The original unit of currency for this CurrencyAmount. **/
7
+ originalUnit: CurrencyUnit;
8
+ /** The unit of user's preferred currency. **/
9
+ preferredCurrencyUnit: CurrencyUnit;
10
+ /**
11
+ * The rounded numeric value for this CurrencyAmount in the very base level of user's preferred
12
+ * currency. For example, for USD, the value will be in cents.
13
+ **/
14
+ preferredCurrencyValueRounded: number;
15
+ /**
16
+ * The approximate float value for this CurrencyAmount in the very base level of user's preferred
17
+ * currency. For example, for USD, the value will be in cents.
18
+ **/
19
+ preferredCurrencyValueApprox: number;
20
+ }
21
+ export declare const CurrencyAmountFromJson: (obj: any) => CurrencyAmount;
22
+ export declare const CurrencyAmountToJson: (obj: CurrencyAmount) => any;
23
+ export declare const FRAGMENT = "\nfragment CurrencyAmountFragment on CurrencyAmount {\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}";
24
+ export default CurrencyAmount;
@@ -0,0 +1,30 @@
1
+ // Copyright ©, 2023-present, Lightspark Group, Inc. - All Rights Reserved
2
+ import CurrencyUnit from './CurrencyUnit.js';
3
+ export const CurrencyAmountFromJson = (obj) => {
4
+ return {
5
+ originalValue: obj["currency_amount_original_value"],
6
+ originalUnit: CurrencyUnit[obj["currency_amount_original_unit"]] ?? CurrencyUnit.FUTURE_VALUE,
7
+ preferredCurrencyUnit: CurrencyUnit[obj["currency_amount_preferred_currency_unit"]] ?? CurrencyUnit.FUTURE_VALUE,
8
+ preferredCurrencyValueRounded: obj["currency_amount_preferred_currency_value_rounded"],
9
+ preferredCurrencyValueApprox: obj["currency_amount_preferred_currency_value_approx"],
10
+ };
11
+ };
12
+ export const CurrencyAmountToJson = (obj) => {
13
+ return {
14
+ currency_amount_original_value: obj.originalValue,
15
+ currency_amount_original_unit: obj.originalUnit,
16
+ currency_amount_preferred_currency_unit: obj.preferredCurrencyUnit,
17
+ currency_amount_preferred_currency_value_rounded: obj.preferredCurrencyValueRounded,
18
+ currency_amount_preferred_currency_value_approx: obj.preferredCurrencyValueApprox,
19
+ };
20
+ };
21
+ export const FRAGMENT = `
22
+ fragment CurrencyAmountFragment on CurrencyAmount {
23
+ __typename
24
+ currency_amount_original_value: original_value
25
+ currency_amount_original_unit: original_unit
26
+ currency_amount_preferred_currency_unit: preferred_currency_unit
27
+ currency_amount_preferred_currency_value_rounded: preferred_currency_value_rounded
28
+ currency_amount_preferred_currency_value_approx: preferred_currency_value_approx
29
+ }`;
30
+ //# sourceMappingURL=CurrencyAmount.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"CurrencyAmount.js","sourceRoot":"","sources":["../../../src/graphql/objects/CurrencyAmount.ts"],"names":[],"mappings":"AACA,0EAA0E;AAG1E,OAAO,YAAY,MAAM,mBAAmB,CAAC;AAgC7C,MAAM,CAAC,MAAM,sBAAsB,GAAG,CAAC,GAAQ,EAAkB,EAAE;IAC/D,OAAO;QACH,aAAa,EAAE,GAAG,CAAC,gCAAgC,CAAC;QACpD,YAAY,EAAE,YAAY,CAAC,GAAG,CAAC,+BAA+B,CAAC,CAAC,IAAI,YAAY,CAAC,YAAY;QAC7F,qBAAqB,EAAE,YAAY,CAAC,GAAG,CAAC,yCAAyC,CAAC,CAAC,IAAI,YAAY,CAAC,YAAY;QAChH,6BAA6B,EAAE,GAAG,CAAC,kDAAkD,CAAC;QACtF,4BAA4B,EAAE,GAAG,CAAC,iDAAiD,CAAC;KAEjE,CAAC;AAE5B,CAAC,CAAA;AACD,MAAM,CAAC,MAAM,oBAAoB,GAAG,CAAC,GAAmB,EAAO,EAAE;IACjE,OAAO;QACP,8BAA8B,EAAE,GAAG,CAAC,aAAa;QACjD,6BAA6B,EAAE,GAAG,CAAC,YAAY;QAC/C,uCAAuC,EAAE,GAAG,CAAC,qBAAqB;QAClE,gDAAgD,EAAE,GAAG,CAAC,6BAA6B;QACnF,+CAA+C,EAAE,GAAG,CAAC,4BAA4B;KAExE,CAAA;AAET,CAAC,CAAA;AAGG,MAAM,CAAC,MAAM,QAAQ,GAAG;;;;;;;;EAQ1B,CAAC"}
@@ -0,0 +1,27 @@
1
+ /** This enum identifies the unit of currency associated with a CurrencyAmount. **/
2
+ export declare enum CurrencyUnit {
3
+ /**
4
+ * This is an enum value that represents values that could be added in the future.
5
+ * Clients should support unknown values as more of them could be added without notice.
6
+ */
7
+ FUTURE_VALUE = "FUTURE_VALUE",
8
+ /** Bitcoin is the cryptocurrency native to the Bitcoin network. It is used as the native medium for value transfer for the Lightning Network. **/
9
+ BITCOIN = "BITCOIN",
10
+ /** 0.00000001 (10e-8) Bitcoin or one hundred millionth of a Bitcoin. This is the unit most commonly used in Lightning transactions. **/
11
+ SATOSHI = "SATOSHI",
12
+ /** 0.001 Satoshi, or 10e-11 Bitcoin. We recommend using the Satoshi unit instead when possible. **/
13
+ MILLISATOSHI = "MILLISATOSHI",
14
+ /** United States Dollar. **/
15
+ USD = "USD",
16
+ /** Mexican Peso. **/
17
+ MXN = "MXN",
18
+ /** Philippine Peso. **/
19
+ PHP = "PHP",
20
+ /** 0.000000001 (10e-9) Bitcoin or a billionth of a Bitcoin. We recommend using the Satoshi unit instead when possible. **/
21
+ NANOBITCOIN = "NANOBITCOIN",
22
+ /** 0.000001 (10e-6) Bitcoin or a millionth of a Bitcoin. We recommend using the Satoshi unit instead when possible. **/
23
+ MICROBITCOIN = "MICROBITCOIN",
24
+ /** 0.001 (10e-3) Bitcoin or a thousandth of a Bitcoin. We recommend using the Satoshi unit instead when possible. **/
25
+ MILLIBITCOIN = "MILLIBITCOIN"
26
+ }
27
+ export default CurrencyUnit;
@@ -0,0 +1,30 @@
1
+ // Copyright ©, 2023-present, Lightspark Group, Inc. - All Rights Reserved
2
+ /** This enum identifies the unit of currency associated with a CurrencyAmount. **/
3
+ export var CurrencyUnit;
4
+ (function (CurrencyUnit) {
5
+ /**
6
+ * This is an enum value that represents values that could be added in the future.
7
+ * Clients should support unknown values as more of them could be added without notice.
8
+ */
9
+ CurrencyUnit["FUTURE_VALUE"] = "FUTURE_VALUE";
10
+ /** Bitcoin is the cryptocurrency native to the Bitcoin network. It is used as the native medium for value transfer for the Lightning Network. **/
11
+ CurrencyUnit["BITCOIN"] = "BITCOIN";
12
+ /** 0.00000001 (10e-8) Bitcoin or one hundred millionth of a Bitcoin. This is the unit most commonly used in Lightning transactions. **/
13
+ CurrencyUnit["SATOSHI"] = "SATOSHI";
14
+ /** 0.001 Satoshi, or 10e-11 Bitcoin. We recommend using the Satoshi unit instead when possible. **/
15
+ CurrencyUnit["MILLISATOSHI"] = "MILLISATOSHI";
16
+ /** United States Dollar. **/
17
+ CurrencyUnit["USD"] = "USD";
18
+ /** Mexican Peso. **/
19
+ CurrencyUnit["MXN"] = "MXN";
20
+ /** Philippine Peso. **/
21
+ CurrencyUnit["PHP"] = "PHP";
22
+ /** 0.000000001 (10e-9) Bitcoin or a billionth of a Bitcoin. We recommend using the Satoshi unit instead when possible. **/
23
+ CurrencyUnit["NANOBITCOIN"] = "NANOBITCOIN";
24
+ /** 0.000001 (10e-6) Bitcoin or a millionth of a Bitcoin. We recommend using the Satoshi unit instead when possible. **/
25
+ CurrencyUnit["MICROBITCOIN"] = "MICROBITCOIN";
26
+ /** 0.001 (10e-3) Bitcoin or a thousandth of a Bitcoin. We recommend using the Satoshi unit instead when possible. **/
27
+ CurrencyUnit["MILLIBITCOIN"] = "MILLIBITCOIN";
28
+ })(CurrencyUnit || (CurrencyUnit = {}));
29
+ export default CurrencyUnit;
30
+ //# sourceMappingURL=CurrencyUnit.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"CurrencyUnit.js","sourceRoot":"","sources":["../../../src/graphql/objects/CurrencyUnit.ts"],"names":[],"mappings":"AACA,0EAA0E;AAE1E,mFAAmF;AACnF,MAAM,CAAN,IAAY,YAyBX;AAzBD,WAAY,YAAY;IACxB;;;OAGG;IACF,6CAA6B,CAAA;IAC9B,kJAAkJ;IAClJ,mCAAmB,CAAA;IACnB,wIAAwI;IACxI,mCAAmB,CAAA;IACnB,oGAAoG;IACpG,6CAA6B,CAAA;IAC7B,6BAA6B;IAC7B,2BAAW,CAAA;IACX,qBAAqB;IACrB,2BAAW,CAAA;IACX,wBAAwB;IACxB,2BAAW,CAAA;IACX,2HAA2H;IAC3H,2CAA2B,CAAA;IAC3B,wHAAwH;IACxH,6CAA6B,CAAA;IAC7B,sHAAsH;IACtH,6CAA6B,CAAA;AAE7B,CAAC,EAzBW,YAAY,KAAZ,YAAY,QAyBvB;AAED,eAAe,YAAY,CAAC"}
@@ -0,0 +1,16 @@
1
+ /** This interface is used by all the entities in the Lightspark system. It defines a few core fields that are available everywhere. Any object that implements this interface can be queried using the `entity` query and its ID. **/
2
+ interface Entity {
3
+ /**
4
+ * The unique identifier of this entity across all Lightspark systems. Should be treated as an opaque
5
+ * string.
6
+ **/
7
+ id: string;
8
+ /** The date and time when the entity was first created. **/
9
+ createdAt: string;
10
+ /** The date and time when the entity was last updated. **/
11
+ updatedAt: string;
12
+ /** The typename of the object **/
13
+ typename: string;
14
+ }
15
+ export declare const FRAGMENT = "\nfragment EntityFragment on Entity {\n __typename\n ... on CoopExitRequest {\n __typename\n coop_exit_request_id: id\n coop_exit_request_created_at: created_at\n coop_exit_request_updated_at: updated_at\n coop_exit_request_fee: fee {\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 coop_exit_request_status: status\n coop_exit_request_expires_at: expires_at\n coop_exit_request_raw_connector_transaction: raw_connector_transaction\n }\n ... on LeavesSwapRequest {\n __typename\n leaves_swap_request_id: id\n leaves_swap_request_created_at: created_at\n leaves_swap_request_updated_at: updated_at\n leaves_swap_request_status: status\n leaves_swap_request_inbound_transfer: inbound_transfer {\n __typename\n transfer_total_amount: total_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 transfer_spark_id: spark_id\n }\n leaves_swap_request_outbound_transfer: outbound_transfer {\n __typename\n transfer_total_amount: total_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 transfer_spark_id: spark_id\n }\n leaves_swap_request_expires_at: expires_at\n leaves_swap_request_swap_leaves: swap_leaves {\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 }\n }\n ... on LightningReceiveRequest {\n __typename\n lightning_receive_request_id: id\n lightning_receive_request_created_at: created_at\n lightning_receive_request_updated_at: updated_at\n lightning_receive_request_invoice: invoice {\n __typename\n invoice_encoded_envoice: encoded_envoice\n invoice_bitcoin_network: bitcoin_network\n invoice_payment_hash: payment_hash\n invoice_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 invoice_created_at: created_at\n invoice_expires_at: expires_at\n invoice_memo: memo\n }\n lightning_receive_request_fee: fee {\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 lightning_receive_request_status: status\n lightning_receive_request_transfer: transfer {\n __typename\n transfer_total_amount: total_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 transfer_spark_id: spark_id\n }\n }\n ... on LightningSendRequest {\n __typename\n lightning_send_request_id: id\n lightning_send_request_created_at: created_at\n lightning_send_request_updated_at: updated_at\n lightning_send_request_encoded_invoice: encoded_invoice\n lightning_send_request_fee: fee {\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 lightning_send_request_idempotency_key: idempotency_key\n lightning_send_request_status: status\n lightning_send_request_transfer: transfer {\n __typename\n transfer_total_amount: total_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 transfer_spark_id: spark_id\n }\n }\n ... on WalletUser {\n __typename\n wallet_user_id: id\n wallet_user_created_at: created_at\n wallet_user_updated_at: updated_at\n wallet_user_identity_public_key: identity_public_key\n }\n}";
16
+ export default Entity;
@@ -0,0 +1,141 @@
1
+ // Copyright ©, 2023-present, Lightspark Group, Inc. - All Rights Reserved
2
+ export const FRAGMENT = `
3
+ fragment EntityFragment on Entity {
4
+ __typename
5
+ ... on CoopExitRequest {
6
+ __typename
7
+ coop_exit_request_id: id
8
+ coop_exit_request_created_at: created_at
9
+ coop_exit_request_updated_at: updated_at
10
+ coop_exit_request_fee: fee {
11
+ __typename
12
+ currency_amount_original_value: original_value
13
+ currency_amount_original_unit: original_unit
14
+ currency_amount_preferred_currency_unit: preferred_currency_unit
15
+ currency_amount_preferred_currency_value_rounded: preferred_currency_value_rounded
16
+ currency_amount_preferred_currency_value_approx: preferred_currency_value_approx
17
+ }
18
+ coop_exit_request_status: status
19
+ coop_exit_request_expires_at: expires_at
20
+ coop_exit_request_raw_connector_transaction: raw_connector_transaction
21
+ }
22
+ ... on LeavesSwapRequest {
23
+ __typename
24
+ leaves_swap_request_id: id
25
+ leaves_swap_request_created_at: created_at
26
+ leaves_swap_request_updated_at: updated_at
27
+ leaves_swap_request_status: status
28
+ leaves_swap_request_inbound_transfer: inbound_transfer {
29
+ __typename
30
+ transfer_total_amount: total_amount {
31
+ __typename
32
+ currency_amount_original_value: original_value
33
+ currency_amount_original_unit: original_unit
34
+ currency_amount_preferred_currency_unit: preferred_currency_unit
35
+ currency_amount_preferred_currency_value_rounded: preferred_currency_value_rounded
36
+ currency_amount_preferred_currency_value_approx: preferred_currency_value_approx
37
+ }
38
+ transfer_spark_id: spark_id
39
+ }
40
+ leaves_swap_request_outbound_transfer: outbound_transfer {
41
+ __typename
42
+ transfer_total_amount: total_amount {
43
+ __typename
44
+ currency_amount_original_value: original_value
45
+ currency_amount_original_unit: original_unit
46
+ currency_amount_preferred_currency_unit: preferred_currency_unit
47
+ currency_amount_preferred_currency_value_rounded: preferred_currency_value_rounded
48
+ currency_amount_preferred_currency_value_approx: preferred_currency_value_approx
49
+ }
50
+ transfer_spark_id: spark_id
51
+ }
52
+ leaves_swap_request_expires_at: expires_at
53
+ leaves_swap_request_swap_leaves: swap_leaves {
54
+ __typename
55
+ swap_leaf_leaf_id: leaf_id
56
+ swap_leaf_raw_unsigned_refund_transaction: raw_unsigned_refund_transaction
57
+ swap_leaf_adaptor_signed_signature: adaptor_signed_signature
58
+ }
59
+ }
60
+ ... on LightningReceiveRequest {
61
+ __typename
62
+ lightning_receive_request_id: id
63
+ lightning_receive_request_created_at: created_at
64
+ lightning_receive_request_updated_at: updated_at
65
+ lightning_receive_request_invoice: invoice {
66
+ __typename
67
+ invoice_encoded_envoice: encoded_envoice
68
+ invoice_bitcoin_network: bitcoin_network
69
+ invoice_payment_hash: payment_hash
70
+ invoice_amount: amount {
71
+ __typename
72
+ currency_amount_original_value: original_value
73
+ currency_amount_original_unit: original_unit
74
+ currency_amount_preferred_currency_unit: preferred_currency_unit
75
+ currency_amount_preferred_currency_value_rounded: preferred_currency_value_rounded
76
+ currency_amount_preferred_currency_value_approx: preferred_currency_value_approx
77
+ }
78
+ invoice_created_at: created_at
79
+ invoice_expires_at: expires_at
80
+ invoice_memo: memo
81
+ }
82
+ lightning_receive_request_fee: fee {
83
+ __typename
84
+ currency_amount_original_value: original_value
85
+ currency_amount_original_unit: original_unit
86
+ currency_amount_preferred_currency_unit: preferred_currency_unit
87
+ currency_amount_preferred_currency_value_rounded: preferred_currency_value_rounded
88
+ currency_amount_preferred_currency_value_approx: preferred_currency_value_approx
89
+ }
90
+ lightning_receive_request_status: status
91
+ lightning_receive_request_transfer: transfer {
92
+ __typename
93
+ transfer_total_amount: total_amount {
94
+ __typename
95
+ currency_amount_original_value: original_value
96
+ currency_amount_original_unit: original_unit
97
+ currency_amount_preferred_currency_unit: preferred_currency_unit
98
+ currency_amount_preferred_currency_value_rounded: preferred_currency_value_rounded
99
+ currency_amount_preferred_currency_value_approx: preferred_currency_value_approx
100
+ }
101
+ transfer_spark_id: spark_id
102
+ }
103
+ }
104
+ ... on LightningSendRequest {
105
+ __typename
106
+ lightning_send_request_id: id
107
+ lightning_send_request_created_at: created_at
108
+ lightning_send_request_updated_at: updated_at
109
+ lightning_send_request_encoded_invoice: encoded_invoice
110
+ lightning_send_request_fee: fee {
111
+ __typename
112
+ currency_amount_original_value: original_value
113
+ currency_amount_original_unit: original_unit
114
+ currency_amount_preferred_currency_unit: preferred_currency_unit
115
+ currency_amount_preferred_currency_value_rounded: preferred_currency_value_rounded
116
+ currency_amount_preferred_currency_value_approx: preferred_currency_value_approx
117
+ }
118
+ lightning_send_request_idempotency_key: idempotency_key
119
+ lightning_send_request_status: status
120
+ lightning_send_request_transfer: transfer {
121
+ __typename
122
+ transfer_total_amount: total_amount {
123
+ __typename
124
+ currency_amount_original_value: original_value
125
+ currency_amount_original_unit: original_unit
126
+ currency_amount_preferred_currency_unit: preferred_currency_unit
127
+ currency_amount_preferred_currency_value_rounded: preferred_currency_value_rounded
128
+ currency_amount_preferred_currency_value_approx: preferred_currency_value_approx
129
+ }
130
+ transfer_spark_id: spark_id
131
+ }
132
+ }
133
+ ... on WalletUser {
134
+ __typename
135
+ wallet_user_id: id
136
+ wallet_user_created_at: created_at
137
+ wallet_user_updated_at: updated_at
138
+ wallet_user_identity_public_key: identity_public_key
139
+ }
140
+ }`;
141
+ //# sourceMappingURL=Entity.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Entity.js","sourceRoot":"","sources":["../../../src/graphql/objects/Entity.ts"],"names":[],"mappings":"AACA,0EAA0E;AAiCtE,MAAM,CAAC,MAAM,QAAQ,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EA0I1B,CAAC"}
@@ -0,0 +1,15 @@
1
+ import BitcoinNetwork from './BitcoinNetwork.js';
2
+ import CurrencyAmount from './CurrencyAmount.js';
3
+ interface Invoice {
4
+ encodedEnvoice: string;
5
+ bitcoinNetwork: BitcoinNetwork;
6
+ paymentHash: string;
7
+ amount: CurrencyAmount;
8
+ createdAt: string;
9
+ expiresAt: string;
10
+ memo?: string | undefined;
11
+ }
12
+ export declare const InvoiceFromJson: (obj: any) => Invoice;
13
+ export declare const InvoiceToJson: (obj: Invoice) => any;
14
+ export declare const FRAGMENT = "\nfragment InvoiceFragment on Invoice {\n __typename\n invoice_encoded_envoice: encoded_envoice\n invoice_bitcoin_network: bitcoin_network\n invoice_payment_hash: payment_hash\n invoice_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 invoice_created_at: created_at\n invoice_expires_at: expires_at\n invoice_memo: memo\n}";
15
+ export default Invoice;
@@ -0,0 +1,45 @@
1
+ // Copyright ©, 2023-present, Lightspark Group, Inc. - All Rights Reserved
2
+ import BitcoinNetwork from './BitcoinNetwork.js';
3
+ import { CurrencyAmountFromJson } from './CurrencyAmount.js';
4
+ import { CurrencyAmountToJson } from './CurrencyAmount.js';
5
+ export const InvoiceFromJson = (obj) => {
6
+ return {
7
+ encodedEnvoice: obj["invoice_encoded_envoice"],
8
+ bitcoinNetwork: BitcoinNetwork[obj["invoice_bitcoin_network"]] ?? BitcoinNetwork.FUTURE_VALUE,
9
+ paymentHash: obj["invoice_payment_hash"],
10
+ amount: CurrencyAmountFromJson(obj["invoice_amount"]),
11
+ createdAt: obj["invoice_created_at"],
12
+ expiresAt: obj["invoice_expires_at"],
13
+ memo: obj["invoice_memo"],
14
+ };
15
+ };
16
+ export const InvoiceToJson = (obj) => {
17
+ return {
18
+ invoice_encoded_envoice: obj.encodedEnvoice,
19
+ invoice_bitcoin_network: obj.bitcoinNetwork,
20
+ invoice_payment_hash: obj.paymentHash,
21
+ invoice_amount: CurrencyAmountToJson(obj.amount),
22
+ invoice_created_at: obj.createdAt,
23
+ invoice_expires_at: obj.expiresAt,
24
+ invoice_memo: obj.memo,
25
+ };
26
+ };
27
+ export const FRAGMENT = `
28
+ fragment InvoiceFragment on Invoice {
29
+ __typename
30
+ invoice_encoded_envoice: encoded_envoice
31
+ invoice_bitcoin_network: bitcoin_network
32
+ invoice_payment_hash: payment_hash
33
+ invoice_amount: amount {
34
+ __typename
35
+ currency_amount_original_value: original_value
36
+ currency_amount_original_unit: original_unit
37
+ currency_amount_preferred_currency_unit: preferred_currency_unit
38
+ currency_amount_preferred_currency_value_rounded: preferred_currency_value_rounded
39
+ currency_amount_preferred_currency_value_approx: preferred_currency_value_approx
40
+ }
41
+ invoice_created_at: created_at
42
+ invoice_expires_at: expires_at
43
+ invoice_memo: memo
44
+ }`;
45
+ //# sourceMappingURL=Invoice.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Invoice.js","sourceRoot":"","sources":["../../../src/graphql/objects/Invoice.ts"],"names":[],"mappings":"AACA,0EAA0E;AAG1E,OAAO,cAAc,MAAM,qBAAqB,CAAC;AACjD,OAAO,EAAC,sBAAsB,EAAC,MAAM,qBAAqB,CAAC;AAC3D,OAAO,EAAC,oBAAoB,EAAC,MAAM,qBAAqB,CAAC;AA0BzD,MAAM,CAAC,MAAM,eAAe,GAAG,CAAC,GAAQ,EAAW,EAAE;IACjD,OAAO;QACH,cAAc,EAAE,GAAG,CAAC,yBAAyB,CAAC;QAC9C,cAAc,EAAE,cAAc,CAAC,GAAG,CAAC,yBAAyB,CAAC,CAAC,IAAI,cAAc,CAAC,YAAY;QAC7F,WAAW,EAAE,GAAG,CAAC,sBAAsB,CAAC;QACxC,MAAM,EAAE,sBAAsB,CAAC,GAAG,CAAC,gBAAgB,CAAC,CAAC;QACrD,SAAS,EAAE,GAAG,CAAC,oBAAoB,CAAC;QACpC,SAAS,EAAE,GAAG,CAAC,oBAAoB,CAAC;QACpC,IAAI,EAAE,GAAG,CAAC,cAAc,CAAC;KAEb,CAAC;AAErB,CAAC,CAAA;AACD,MAAM,CAAC,MAAM,aAAa,GAAG,CAAC,GAAY,EAAO,EAAE;IACnD,OAAO;QACP,uBAAuB,EAAE,GAAG,CAAC,cAAc;QAC3C,uBAAuB,EAAE,GAAG,CAAC,cAAc;QAC3C,oBAAoB,EAAE,GAAG,CAAC,WAAW;QACrC,cAAc,EAAE,oBAAoB,CAAC,GAAG,CAAC,MAAM,CAAC;QAChD,kBAAkB,EAAE,GAAG,CAAC,SAAS;QACjC,kBAAkB,EAAE,GAAG,CAAC,SAAS;QACjC,YAAY,EAAE,GAAG,CAAC,IAAI;KAEb,CAAA;AAET,CAAC,CAAA;AAGG,MAAM,CAAC,MAAM,QAAQ,GAAG;;;;;;;;;;;;;;;;;EAiB1B,CAAC"}
@@ -0,0 +1,11 @@
1
+ import CurrencyAmount from './CurrencyAmount.js';
2
+ interface Leaf {
3
+ /** The amount of the leaf. **/
4
+ amount: CurrencyAmount;
5
+ /** The id of the leaf known at signing operators. **/
6
+ sparkNodeId: string;
7
+ }
8
+ export declare const LeafFromJson: (obj: any) => Leaf;
9
+ export declare const LeafToJson: (obj: Leaf) => any;
10
+ export declare const FRAGMENT = "\nfragment LeafFragment on Leaf {\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}";
11
+ export default Leaf;