@buildonspark/issuer-sdk 0.0.22 → 0.0.24

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 (385) hide show
  1. package/dist/chunk-GB7N6I5O.js +48 -0
  2. package/dist/index.cjs +518 -0
  3. package/dist/index.d.cts +110 -0
  4. package/dist/index.d.ts +110 -0
  5. package/dist/index.js +497 -0
  6. package/dist/types.cjs +77 -0
  7. package/dist/types.d.cts +99 -0
  8. package/dist/{issuer-sdk/src/types.d.ts → types.d.ts} +14 -12
  9. package/dist/types.js +12 -0
  10. package/package.json +31 -32
  11. package/src/examples/example.ts +1 -1
  12. package/src/index.ts +1 -0
  13. package/src/interface/wallet-interface.ts +7 -6
  14. package/src/{issuer-sdk.ts → issuer-spark-wallet.ts} +5 -5
  15. package/src/tests/integration/spark.test.ts +3 -12
  16. package/src/types.ts +1 -2
  17. package/src/utils/constants.ts +2 -2
  18. package/dist/issuer-sdk/src/interface/wallet-interface.d.ts +0 -67
  19. package/dist/issuer-sdk/src/interface/wallet-interface.js +0 -2
  20. package/dist/issuer-sdk/src/interface/wallet-interface.js.map +0 -1
  21. package/dist/issuer-sdk/src/issuer-sdk.d.ts +0 -43
  22. package/dist/issuer-sdk/src/issuer-sdk.js +0 -153
  23. package/dist/issuer-sdk/src/issuer-sdk.js.map +0 -1
  24. package/dist/issuer-sdk/src/proto/common.d.ts +0 -58
  25. package/dist/issuer-sdk/src/proto/common.js +0 -350
  26. package/dist/issuer-sdk/src/proto/common.js.map +0 -1
  27. package/dist/issuer-sdk/src/proto/google/protobuf/descriptor.d.ts +0 -1228
  28. package/dist/issuer-sdk/src/proto/google/protobuf/descriptor.js +0 -5070
  29. package/dist/issuer-sdk/src/proto/google/protobuf/descriptor.js.map +0 -1
  30. package/dist/issuer-sdk/src/proto/google/protobuf/duration.d.ts +0 -99
  31. package/dist/issuer-sdk/src/proto/google/protobuf/duration.js +0 -90
  32. package/dist/issuer-sdk/src/proto/google/protobuf/duration.js.map +0 -1
  33. package/dist/issuer-sdk/src/proto/google/protobuf/empty.d.ts +0 -33
  34. package/dist/issuer-sdk/src/proto/google/protobuf/empty.js +0 -46
  35. package/dist/issuer-sdk/src/proto/google/protobuf/empty.js.map +0 -1
  36. package/dist/issuer-sdk/src/proto/google/protobuf/timestamp.d.ts +0 -128
  37. package/dist/issuer-sdk/src/proto/google/protobuf/timestamp.js +0 -90
  38. package/dist/issuer-sdk/src/proto/google/protobuf/timestamp.js.map +0 -1
  39. package/dist/issuer-sdk/src/proto/mock.d.ts +0 -48
  40. package/dist/issuer-sdk/src/proto/mock.js +0 -103
  41. package/dist/issuer-sdk/src/proto/mock.js.map +0 -1
  42. package/dist/issuer-sdk/src/proto/spark.d.ts +0 -1101
  43. package/dist/issuer-sdk/src/proto/spark.js +0 -9565
  44. package/dist/issuer-sdk/src/proto/spark.js.map +0 -1
  45. package/dist/issuer-sdk/src/proto/spark_authn.d.ts +0 -111
  46. package/dist/issuer-sdk/src/proto/spark_authn.js +0 -517
  47. package/dist/issuer-sdk/src/proto/spark_authn.js.map +0 -1
  48. package/dist/issuer-sdk/src/proto/validate/validate.d.ts +0 -1087
  49. package/dist/issuer-sdk/src/proto/validate/validate.js +0 -4437
  50. package/dist/issuer-sdk/src/proto/validate/validate.js.map +0 -1
  51. package/dist/issuer-sdk/src/services/freeze.d.ts +0 -11
  52. package/dist/issuer-sdk/src/services/freeze.js +0 -44
  53. package/dist/issuer-sdk/src/services/freeze.js.map +0 -1
  54. package/dist/issuer-sdk/src/services/token-transactions.d.ts +0 -8
  55. package/dist/issuer-sdk/src/services/token-transactions.js +0 -27
  56. package/dist/issuer-sdk/src/services/token-transactions.js.map +0 -1
  57. package/dist/issuer-sdk/src/tests/integration/spark.test.d.ts +0 -1
  58. package/dist/issuer-sdk/src/tests/integration/spark.test.js +0 -373
  59. package/dist/issuer-sdk/src/tests/integration/spark.test.js.map +0 -1
  60. package/dist/issuer-sdk/src/types.js +0 -33
  61. package/dist/issuer-sdk/src/types.js.map +0 -1
  62. package/dist/issuer-sdk/src/utils/constants.d.ts +0 -16
  63. package/dist/issuer-sdk/src/utils/constants.js +0 -18
  64. package/dist/issuer-sdk/src/utils/constants.js.map +0 -1
  65. package/dist/issuer-sdk/src/utils/enum-mappers.d.ts +0 -6
  66. package/dist/issuer-sdk/src/utils/enum-mappers.js +0 -66
  67. package/dist/issuer-sdk/src/utils/enum-mappers.js.map +0 -1
  68. package/dist/issuer-sdk/src/utils/token-hashing.d.ts +0 -2
  69. package/dist/issuer-sdk/src/utils/token-hashing.js +0 -45
  70. package/dist/issuer-sdk/src/utils/token-hashing.js.map +0 -1
  71. package/dist/issuer-sdk/src/utils/type-mappers.d.ts +0 -4
  72. package/dist/issuer-sdk/src/utils/type-mappers.js +0 -106
  73. package/dist/issuer-sdk/src/utils/type-mappers.js.map +0 -1
  74. package/dist/spark-sdk/src/graphql/client.d.ts +0 -29
  75. package/dist/spark-sdk/src/graphql/client.js +0 -246
  76. package/dist/spark-sdk/src/graphql/client.js.map +0 -1
  77. package/dist/spark-sdk/src/graphql/mutations/CompleteCoopExit.d.ts +0 -1
  78. package/dist/spark-sdk/src/graphql/mutations/CompleteCoopExit.js +0 -19
  79. package/dist/spark-sdk/src/graphql/mutations/CompleteCoopExit.js.map +0 -1
  80. package/dist/spark-sdk/src/graphql/mutations/CompleteLeavesSwap.d.ts +0 -1
  81. package/dist/spark-sdk/src/graphql/mutations/CompleteLeavesSwap.js +0 -17
  82. package/dist/spark-sdk/src/graphql/mutations/CompleteLeavesSwap.js.map +0 -1
  83. package/dist/spark-sdk/src/graphql/mutations/RequestCoopExit.d.ts +0 -1
  84. package/dist/spark-sdk/src/graphql/mutations/RequestCoopExit.js +0 -20
  85. package/dist/spark-sdk/src/graphql/mutations/RequestCoopExit.js.map +0 -1
  86. package/dist/spark-sdk/src/graphql/mutations/RequestLightningReceive.d.ts +0 -1
  87. package/dist/spark-sdk/src/graphql/mutations/RequestLightningReceive.js +0 -26
  88. package/dist/spark-sdk/src/graphql/mutations/RequestLightningReceive.js.map +0 -1
  89. package/dist/spark-sdk/src/graphql/mutations/RequestLightningSend.d.ts +0 -1
  90. package/dist/spark-sdk/src/graphql/mutations/RequestLightningSend.js +0 -18
  91. package/dist/spark-sdk/src/graphql/mutations/RequestLightningSend.js.map +0 -1
  92. package/dist/spark-sdk/src/graphql/mutations/RequestSwapLeaves.d.ts +0 -1
  93. package/dist/spark-sdk/src/graphql/mutations/RequestSwapLeaves.js +0 -24
  94. package/dist/spark-sdk/src/graphql/mutations/RequestSwapLeaves.js.map +0 -1
  95. package/dist/spark-sdk/src/graphql/objects/BitcoinNetwork.d.ts +0 -17
  96. package/dist/spark-sdk/src/graphql/objects/BitcoinNetwork.js +0 -20
  97. package/dist/spark-sdk/src/graphql/objects/BitcoinNetwork.js.map +0 -1
  98. package/dist/spark-sdk/src/graphql/objects/CompleteCoopExitInput.d.ts +0 -7
  99. package/dist/spark-sdk/src/graphql/objects/CompleteCoopExitInput.js +0 -14
  100. package/dist/spark-sdk/src/graphql/objects/CompleteCoopExitInput.js.map +0 -1
  101. package/dist/spark-sdk/src/graphql/objects/CompleteCoopExitOutput.d.ts +0 -7
  102. package/dist/spark-sdk/src/graphql/objects/CompleteCoopExitOutput.js +0 -19
  103. package/dist/spark-sdk/src/graphql/objects/CompleteCoopExitOutput.js.map +0 -1
  104. package/dist/spark-sdk/src/graphql/objects/CompleteLeavesSwapInput.d.ts +0 -8
  105. package/dist/spark-sdk/src/graphql/objects/CompleteLeavesSwapInput.js +0 -16
  106. package/dist/spark-sdk/src/graphql/objects/CompleteLeavesSwapInput.js.map +0 -1
  107. package/dist/spark-sdk/src/graphql/objects/CompleteLeavesSwapOutput.d.ts +0 -7
  108. package/dist/spark-sdk/src/graphql/objects/CompleteLeavesSwapOutput.js +0 -19
  109. package/dist/spark-sdk/src/graphql/objects/CompleteLeavesSwapOutput.js.map +0 -1
  110. package/dist/spark-sdk/src/graphql/objects/CompleteSeedReleaseInput.d.ts +0 -7
  111. package/dist/spark-sdk/src/graphql/objects/CompleteSeedReleaseInput.js +0 -14
  112. package/dist/spark-sdk/src/graphql/objects/CompleteSeedReleaseInput.js.map +0 -1
  113. package/dist/spark-sdk/src/graphql/objects/CompleteSeedReleaseOutput.d.ts +0 -7
  114. package/dist/spark-sdk/src/graphql/objects/CompleteSeedReleaseOutput.js +0 -17
  115. package/dist/spark-sdk/src/graphql/objects/CompleteSeedReleaseOutput.js.map +0 -1
  116. package/dist/spark-sdk/src/graphql/objects/Connection.d.ts +0 -16
  117. package/dist/spark-sdk/src/graphql/objects/Connection.js +0 -56
  118. package/dist/spark-sdk/src/graphql/objects/Connection.js.map +0 -1
  119. package/dist/spark-sdk/src/graphql/objects/CoopExitFeeEstimateInput.d.ts +0 -7
  120. package/dist/spark-sdk/src/graphql/objects/CoopExitFeeEstimateInput.js +0 -14
  121. package/dist/spark-sdk/src/graphql/objects/CoopExitFeeEstimateInput.js.map +0 -1
  122. package/dist/spark-sdk/src/graphql/objects/CoopExitFeeEstimateOutput.d.ts +0 -8
  123. package/dist/spark-sdk/src/graphql/objects/CoopExitFeeEstimateOutput.js +0 -26
  124. package/dist/spark-sdk/src/graphql/objects/CoopExitFeeEstimateOutput.js.map +0 -1
  125. package/dist/spark-sdk/src/graphql/objects/CoopExitRequest.d.ts +0 -35
  126. package/dist/spark-sdk/src/graphql/objects/CoopExitRequest.js +0 -68
  127. package/dist/spark-sdk/src/graphql/objects/CoopExitRequest.js.map +0 -1
  128. package/dist/spark-sdk/src/graphql/objects/CurrencyAmount.d.ts +0 -24
  129. package/dist/spark-sdk/src/graphql/objects/CurrencyAmount.js +0 -30
  130. package/dist/spark-sdk/src/graphql/objects/CurrencyAmount.js.map +0 -1
  131. package/dist/spark-sdk/src/graphql/objects/CurrencyUnit.d.ts +0 -29
  132. package/dist/spark-sdk/src/graphql/objects/CurrencyUnit.js +0 -32
  133. package/dist/spark-sdk/src/graphql/objects/CurrencyUnit.js.map +0 -1
  134. package/dist/spark-sdk/src/graphql/objects/Entity.d.ts +0 -16
  135. package/dist/spark-sdk/src/graphql/objects/Entity.js +0 -169
  136. package/dist/spark-sdk/src/graphql/objects/Entity.js.map +0 -1
  137. package/dist/spark-sdk/src/graphql/objects/GetChallengeInput.d.ts +0 -6
  138. package/dist/spark-sdk/src/graphql/objects/GetChallengeInput.js +0 -12
  139. package/dist/spark-sdk/src/graphql/objects/GetChallengeInput.js.map +0 -1
  140. package/dist/spark-sdk/src/graphql/objects/GetChallengeOutput.d.ts +0 -7
  141. package/dist/spark-sdk/src/graphql/objects/GetChallengeOutput.js +0 -17
  142. package/dist/spark-sdk/src/graphql/objects/GetChallengeOutput.js.map +0 -1
  143. package/dist/spark-sdk/src/graphql/objects/Invoice.d.ts +0 -15
  144. package/dist/spark-sdk/src/graphql/objects/Invoice.js +0 -45
  145. package/dist/spark-sdk/src/graphql/objects/Invoice.js.map +0 -1
  146. package/dist/spark-sdk/src/graphql/objects/Leaf.d.ts +0 -11
  147. package/dist/spark-sdk/src/graphql/objects/Leaf.js +0 -29
  148. package/dist/spark-sdk/src/graphql/objects/Leaf.js.map +0 -1
  149. package/dist/spark-sdk/src/graphql/objects/LeavesSwapFeeEstimateInput.d.ts +0 -6
  150. package/dist/spark-sdk/src/graphql/objects/LeavesSwapFeeEstimateInput.js +0 -12
  151. package/dist/spark-sdk/src/graphql/objects/LeavesSwapFeeEstimateInput.js.map +0 -1
  152. package/dist/spark-sdk/src/graphql/objects/LeavesSwapFeeEstimateOutput.d.ts +0 -8
  153. package/dist/spark-sdk/src/graphql/objects/LeavesSwapFeeEstimateOutput.js +0 -26
  154. package/dist/spark-sdk/src/graphql/objects/LeavesSwapFeeEstimateOutput.js.map +0 -1
  155. package/dist/spark-sdk/src/graphql/objects/LeavesSwapRequest.d.ts +0 -42
  156. package/dist/spark-sdk/src/graphql/objects/LeavesSwapRequest.js +0 -123
  157. package/dist/spark-sdk/src/graphql/objects/LeavesSwapRequest.js.map +0 -1
  158. package/dist/spark-sdk/src/graphql/objects/LightningReceiveFeeEstimateInput.d.ts +0 -8
  159. package/dist/spark-sdk/src/graphql/objects/LightningReceiveFeeEstimateInput.js +0 -15
  160. package/dist/spark-sdk/src/graphql/objects/LightningReceiveFeeEstimateInput.js.map +0 -1
  161. package/dist/spark-sdk/src/graphql/objects/LightningReceiveFeeEstimateOutput.d.ts +0 -8
  162. package/dist/spark-sdk/src/graphql/objects/LightningReceiveFeeEstimateOutput.js +0 -26
  163. package/dist/spark-sdk/src/graphql/objects/LightningReceiveFeeEstimateOutput.js.map +0 -1
  164. package/dist/spark-sdk/src/graphql/objects/LightningReceiveRequest.d.ts +0 -34
  165. package/dist/spark-sdk/src/graphql/objects/LightningReceiveRequest.js +0 -97
  166. package/dist/spark-sdk/src/graphql/objects/LightningReceiveRequest.js.map +0 -1
  167. package/dist/spark-sdk/src/graphql/objects/LightningReceiveRequestStatus.d.ts +0 -18
  168. package/dist/spark-sdk/src/graphql/objects/LightningReceiveRequestStatus.js +0 -21
  169. package/dist/spark-sdk/src/graphql/objects/LightningReceiveRequestStatus.js.map +0 -1
  170. package/dist/spark-sdk/src/graphql/objects/LightningSendFeeEstimateInput.d.ts +0 -6
  171. package/dist/spark-sdk/src/graphql/objects/LightningSendFeeEstimateInput.js +0 -12
  172. package/dist/spark-sdk/src/graphql/objects/LightningSendFeeEstimateInput.js.map +0 -1
  173. package/dist/spark-sdk/src/graphql/objects/LightningSendFeeEstimateOutput.d.ts +0 -8
  174. package/dist/spark-sdk/src/graphql/objects/LightningSendFeeEstimateOutput.js +0 -26
  175. package/dist/spark-sdk/src/graphql/objects/LightningSendFeeEstimateOutput.js.map +0 -1
  176. package/dist/spark-sdk/src/graphql/objects/LightningSendRequest.d.ts +0 -35
  177. package/dist/spark-sdk/src/graphql/objects/LightningSendRequest.js +0 -82
  178. package/dist/spark-sdk/src/graphql/objects/LightningSendRequest.js.map +0 -1
  179. package/dist/spark-sdk/src/graphql/objects/LightningSendRequestStatus.d.ts +0 -15
  180. package/dist/spark-sdk/src/graphql/objects/LightningSendRequestStatus.js +0 -18
  181. package/dist/spark-sdk/src/graphql/objects/LightningSendRequestStatus.js.map +0 -1
  182. package/dist/spark-sdk/src/graphql/objects/NotifyReceiverTransferInput.d.ts +0 -7
  183. package/dist/spark-sdk/src/graphql/objects/NotifyReceiverTransferInput.js +0 -14
  184. package/dist/spark-sdk/src/graphql/objects/NotifyReceiverTransferInput.js.map +0 -1
  185. package/dist/spark-sdk/src/graphql/objects/PageInfo.d.ts +0 -11
  186. package/dist/spark-sdk/src/graphql/objects/PageInfo.js +0 -26
  187. package/dist/spark-sdk/src/graphql/objects/PageInfo.js.map +0 -1
  188. package/dist/spark-sdk/src/graphql/objects/Provider.d.ts +0 -7
  189. package/dist/spark-sdk/src/graphql/objects/Provider.js +0 -14
  190. package/dist/spark-sdk/src/graphql/objects/Provider.js.map +0 -1
  191. package/dist/spark-sdk/src/graphql/objects/RequestCoopExitInput.d.ts +0 -7
  192. package/dist/spark-sdk/src/graphql/objects/RequestCoopExitInput.js +0 -14
  193. package/dist/spark-sdk/src/graphql/objects/RequestCoopExitInput.js.map +0 -1
  194. package/dist/spark-sdk/src/graphql/objects/RequestCoopExitOutput.d.ts +0 -7
  195. package/dist/spark-sdk/src/graphql/objects/RequestCoopExitOutput.js +0 -19
  196. package/dist/spark-sdk/src/graphql/objects/RequestCoopExitOutput.js.map +0 -1
  197. package/dist/spark-sdk/src/graphql/objects/RequestLeavesSwapInput.d.ts +0 -11
  198. package/dist/spark-sdk/src/graphql/objects/RequestLeavesSwapInput.js +0 -22
  199. package/dist/spark-sdk/src/graphql/objects/RequestLeavesSwapInput.js.map +0 -1
  200. package/dist/spark-sdk/src/graphql/objects/RequestLeavesSwapOutput.d.ts +0 -7
  201. package/dist/spark-sdk/src/graphql/objects/RequestLeavesSwapOutput.js +0 -19
  202. package/dist/spark-sdk/src/graphql/objects/RequestLeavesSwapOutput.js.map +0 -1
  203. package/dist/spark-sdk/src/graphql/objects/RequestLightningReceiveInput.d.ts +0 -16
  204. package/dist/spark-sdk/src/graphql/objects/RequestLightningReceiveInput.js +0 -21
  205. package/dist/spark-sdk/src/graphql/objects/RequestLightningReceiveInput.js.map +0 -1
  206. package/dist/spark-sdk/src/graphql/objects/RequestLightningReceiveOutput.d.ts +0 -7
  207. package/dist/spark-sdk/src/graphql/objects/RequestLightningReceiveOutput.js +0 -19
  208. package/dist/spark-sdk/src/graphql/objects/RequestLightningReceiveOutput.js.map +0 -1
  209. package/dist/spark-sdk/src/graphql/objects/RequestLightningSendInput.d.ts +0 -7
  210. package/dist/spark-sdk/src/graphql/objects/RequestLightningSendInput.js +0 -14
  211. package/dist/spark-sdk/src/graphql/objects/RequestLightningSendInput.js.map +0 -1
  212. package/dist/spark-sdk/src/graphql/objects/RequestLightningSendOutput.d.ts +0 -7
  213. package/dist/spark-sdk/src/graphql/objects/RequestLightningSendOutput.js +0 -19
  214. package/dist/spark-sdk/src/graphql/objects/RequestLightningSendOutput.js.map +0 -1
  215. package/dist/spark-sdk/src/graphql/objects/SparkCoopExitRequestStatus.d.ts +0 -14
  216. package/dist/spark-sdk/src/graphql/objects/SparkCoopExitRequestStatus.js +0 -17
  217. package/dist/spark-sdk/src/graphql/objects/SparkCoopExitRequestStatus.js.map +0 -1
  218. package/dist/spark-sdk/src/graphql/objects/SparkLeavesSwapRequestStatus.d.ts +0 -14
  219. package/dist/spark-sdk/src/graphql/objects/SparkLeavesSwapRequestStatus.js +0 -17
  220. package/dist/spark-sdk/src/graphql/objects/SparkLeavesSwapRequestStatus.js.map +0 -1
  221. package/dist/spark-sdk/src/graphql/objects/SparkTransferToLeavesConnection.d.ts +0 -19
  222. package/dist/spark-sdk/src/graphql/objects/SparkTransferToLeavesConnection.js +0 -45
  223. package/dist/spark-sdk/src/graphql/objects/SparkTransferToLeavesConnection.js.map +0 -1
  224. package/dist/spark-sdk/src/graphql/objects/SparkWalletUser.d.ts +0 -21
  225. package/dist/spark-sdk/src/graphql/objects/SparkWalletUser.js +0 -45
  226. package/dist/spark-sdk/src/graphql/objects/SparkWalletUser.js.map +0 -1
  227. package/dist/spark-sdk/src/graphql/objects/StartSeedReleaseInput.d.ts +0 -6
  228. package/dist/spark-sdk/src/graphql/objects/StartSeedReleaseInput.js +0 -12
  229. package/dist/spark-sdk/src/graphql/objects/StartSeedReleaseInput.js.map +0 -1
  230. package/dist/spark-sdk/src/graphql/objects/SwapLeaf.d.ts +0 -9
  231. package/dist/spark-sdk/src/graphql/objects/SwapLeaf.js +0 -23
  232. package/dist/spark-sdk/src/graphql/objects/SwapLeaf.js.map +0 -1
  233. package/dist/spark-sdk/src/graphql/objects/Transfer.d.ts +0 -24
  234. package/dist/spark-sdk/src/graphql/objects/Transfer.js +0 -82
  235. package/dist/spark-sdk/src/graphql/objects/Transfer.js.map +0 -1
  236. package/dist/spark-sdk/src/graphql/objects/UserLeafInput.d.ts +0 -8
  237. package/dist/spark-sdk/src/graphql/objects/UserLeafInput.js +0 -16
  238. package/dist/spark-sdk/src/graphql/objects/UserLeafInput.js.map +0 -1
  239. package/dist/spark-sdk/src/graphql/objects/UserRequest.d.ts +0 -22
  240. package/dist/spark-sdk/src/graphql/objects/UserRequest.js +0 -310
  241. package/dist/spark-sdk/src/graphql/objects/UserRequest.js.map +0 -1
  242. package/dist/spark-sdk/src/graphql/objects/VerifyChallengeInput.d.ts +0 -10
  243. package/dist/spark-sdk/src/graphql/objects/VerifyChallengeInput.js +0 -20
  244. package/dist/spark-sdk/src/graphql/objects/VerifyChallengeInput.js.map +0 -1
  245. package/dist/spark-sdk/src/graphql/objects/VerifyChallengeOutput.d.ts +0 -7
  246. package/dist/spark-sdk/src/graphql/objects/VerifyChallengeOutput.js +0 -17
  247. package/dist/spark-sdk/src/graphql/objects/VerifyChallengeOutput.js.map +0 -1
  248. package/dist/spark-sdk/src/graphql/objects/WalletUserIdentityPublicKeyInput.d.ts +0 -6
  249. package/dist/spark-sdk/src/graphql/objects/WalletUserIdentityPublicKeyInput.js +0 -12
  250. package/dist/spark-sdk/src/graphql/objects/WalletUserIdentityPublicKeyInput.js.map +0 -1
  251. package/dist/spark-sdk/src/graphql/objects/WalletUserIdentityPublicKeyOutput.d.ts +0 -7
  252. package/dist/spark-sdk/src/graphql/objects/WalletUserIdentityPublicKeyOutput.js +0 -17
  253. package/dist/spark-sdk/src/graphql/objects/WalletUserIdentityPublicKeyOutput.js.map +0 -1
  254. package/dist/spark-sdk/src/graphql/objects/index.d.ts +0 -53
  255. package/dist/spark-sdk/src/graphql/objects/index.js +0 -14
  256. package/dist/spark-sdk/src/graphql/objects/index.js.map +0 -1
  257. package/dist/spark-sdk/src/graphql/queries/CoopExitFeeEstimate.d.ts +0 -1
  258. package/dist/spark-sdk/src/graphql/queries/CoopExitFeeEstimate.js +0 -18
  259. package/dist/spark-sdk/src/graphql/queries/CoopExitFeeEstimate.js.map +0 -1
  260. package/dist/spark-sdk/src/graphql/queries/LeavesSwapFeeEstimate.d.ts +0 -1
  261. package/dist/spark-sdk/src/graphql/queries/LeavesSwapFeeEstimate.js +0 -16
  262. package/dist/spark-sdk/src/graphql/queries/LeavesSwapFeeEstimate.js.map +0 -1
  263. package/dist/spark-sdk/src/graphql/queries/LightningReceiveFeeEstimate.d.ts +0 -1
  264. package/dist/spark-sdk/src/graphql/queries/LightningReceiveFeeEstimate.js +0 -18
  265. package/dist/spark-sdk/src/graphql/queries/LightningReceiveFeeEstimate.js.map +0 -1
  266. package/dist/spark-sdk/src/graphql/queries/LightningSendFeeEstimate.d.ts +0 -1
  267. package/dist/spark-sdk/src/graphql/queries/LightningSendFeeEstimate.js +0 -16
  268. package/dist/spark-sdk/src/graphql/queries/LightningSendFeeEstimate.js.map +0 -1
  269. package/dist/spark-sdk/src/graphql/queries/UserRequest.d.ts +0 -1
  270. package/dist/spark-sdk/src/graphql/queries/UserRequest.js +0 -10
  271. package/dist/spark-sdk/src/graphql/queries/UserRequest.js.map +0 -1
  272. package/dist/spark-sdk/src/proto/common.d.ts +0 -58
  273. package/dist/spark-sdk/src/proto/common.js +0 -350
  274. package/dist/spark-sdk/src/proto/common.js.map +0 -1
  275. package/dist/spark-sdk/src/proto/google/protobuf/empty.d.ts +0 -33
  276. package/dist/spark-sdk/src/proto/google/protobuf/empty.js +0 -46
  277. package/dist/spark-sdk/src/proto/google/protobuf/empty.js.map +0 -1
  278. package/dist/spark-sdk/src/proto/google/protobuf/timestamp.d.ts +0 -128
  279. package/dist/spark-sdk/src/proto/google/protobuf/timestamp.js +0 -90
  280. package/dist/spark-sdk/src/proto/google/protobuf/timestamp.js.map +0 -1
  281. package/dist/spark-sdk/src/proto/mock.d.ts +0 -48
  282. package/dist/spark-sdk/src/proto/mock.js +0 -103
  283. package/dist/spark-sdk/src/proto/mock.js.map +0 -1
  284. package/dist/spark-sdk/src/proto/spark.d.ts +0 -1209
  285. package/dist/spark-sdk/src/proto/spark.js +0 -10516
  286. package/dist/spark-sdk/src/proto/spark.js.map +0 -1
  287. package/dist/spark-sdk/src/proto/spark_authn.d.ts +0 -111
  288. package/dist/spark-sdk/src/proto/spark_authn.js +0 -517
  289. package/dist/spark-sdk/src/proto/spark_authn.js.map +0 -1
  290. package/dist/spark-sdk/src/services/config.d.ts +0 -17
  291. package/dist/spark-sdk/src/services/config.js +0 -54
  292. package/dist/spark-sdk/src/services/config.js.map +0 -1
  293. package/dist/spark-sdk/src/services/connection.d.ts +0 -22
  294. package/dist/spark-sdk/src/services/connection.js +0 -180
  295. package/dist/spark-sdk/src/services/connection.js.map +0 -1
  296. package/dist/spark-sdk/src/services/coop-exit.d.ts +0 -20
  297. package/dist/spark-sdk/src/services/coop-exit.js +0 -101
  298. package/dist/spark-sdk/src/services/coop-exit.js.map +0 -1
  299. package/dist/spark-sdk/src/services/deposit.d.ts +0 -21
  300. package/dist/spark-sdk/src/services/deposit.js +0 -214
  301. package/dist/spark-sdk/src/services/deposit.js.map +0 -1
  302. package/dist/spark-sdk/src/services/lightning.d.ts +0 -32
  303. package/dist/spark-sdk/src/services/lightning.js +0 -210
  304. package/dist/spark-sdk/src/services/lightning.js.map +0 -1
  305. package/dist/spark-sdk/src/services/lrc20.d.ts +0 -5
  306. package/dist/spark-sdk/src/services/lrc20.js +0 -27
  307. package/dist/spark-sdk/src/services/lrc20.js.map +0 -1
  308. package/dist/spark-sdk/src/services/token-transactions.d.ts +0 -16
  309. package/dist/spark-sdk/src/services/token-transactions.js +0 -299
  310. package/dist/spark-sdk/src/services/token-transactions.js.map +0 -1
  311. package/dist/spark-sdk/src/services/transfer.d.ts +0 -66
  312. package/dist/spark-sdk/src/services/transfer.js +0 -791
  313. package/dist/spark-sdk/src/services/transfer.js.map +0 -1
  314. package/dist/spark-sdk/src/services/tree-creation.d.ts +0 -29
  315. package/dist/spark-sdk/src/services/tree-creation.js +0 -399
  316. package/dist/spark-sdk/src/services/tree-creation.js.map +0 -1
  317. package/dist/spark-sdk/src/services/wallet-config.d.ts +0 -23
  318. package/dist/spark-sdk/src/services/wallet-config.js +0 -107
  319. package/dist/spark-sdk/src/services/wallet-config.js.map +0 -1
  320. package/dist/spark-sdk/src/signer/signer.d.ts +0 -106
  321. package/dist/spark-sdk/src/signer/signer.js +0 -275
  322. package/dist/spark-sdk/src/signer/signer.js.map +0 -1
  323. package/dist/spark-sdk/src/spark-sdk.d.ts +0 -414
  324. package/dist/spark-sdk/src/spark-sdk.js +0 -1285
  325. package/dist/spark-sdk/src/spark-sdk.js.map +0 -1
  326. package/dist/spark-sdk/src/tests/utils/test-faucet.d.ts +0 -24
  327. package/dist/spark-sdk/src/tests/utils/test-faucet.js +0 -182
  328. package/dist/spark-sdk/src/tests/utils/test-faucet.js.map +0 -1
  329. package/dist/spark-sdk/src/types/grpc.d.ts +0 -6
  330. package/dist/spark-sdk/src/types/grpc.js +0 -2
  331. package/dist/spark-sdk/src/types/grpc.js.map +0 -1
  332. package/dist/spark-sdk/src/types/index.d.ts +0 -3
  333. package/dist/spark-sdk/src/types/index.js +0 -4
  334. package/dist/spark-sdk/src/types/index.js.map +0 -1
  335. package/dist/spark-sdk/src/utils/adaptor-signature.d.ts +0 -7
  336. package/dist/spark-sdk/src/utils/adaptor-signature.js +0 -114
  337. package/dist/spark-sdk/src/utils/adaptor-signature.js.map +0 -1
  338. package/dist/spark-sdk/src/utils/bitcoin.d.ts +0 -12
  339. package/dist/spark-sdk/src/utils/bitcoin.js +0 -87
  340. package/dist/spark-sdk/src/utils/bitcoin.js.map +0 -1
  341. package/dist/spark-sdk/src/utils/crypto.d.ts +0 -1
  342. package/dist/spark-sdk/src/utils/crypto.js +0 -14
  343. package/dist/spark-sdk/src/utils/crypto.js.map +0 -1
  344. package/dist/spark-sdk/src/utils/index.d.ts +0 -12
  345. package/dist/spark-sdk/src/utils/index.js +0 -13
  346. package/dist/spark-sdk/src/utils/index.js.map +0 -1
  347. package/dist/spark-sdk/src/utils/keys.d.ts +0 -9
  348. package/dist/spark-sdk/src/utils/keys.js +0 -73
  349. package/dist/spark-sdk/src/utils/keys.js.map +0 -1
  350. package/dist/spark-sdk/src/utils/mempool.d.ts +0 -1
  351. package/dist/spark-sdk/src/utils/mempool.js +0 -29
  352. package/dist/spark-sdk/src/utils/mempool.js.map +0 -1
  353. package/dist/spark-sdk/src/utils/network.d.ts +0 -36
  354. package/dist/spark-sdk/src/utils/network.js +0 -65
  355. package/dist/spark-sdk/src/utils/network.js.map +0 -1
  356. package/dist/spark-sdk/src/utils/proof.d.ts +0 -1
  357. package/dist/spark-sdk/src/utils/proof.js +0 -12
  358. package/dist/spark-sdk/src/utils/proof.js.map +0 -1
  359. package/dist/spark-sdk/src/utils/response-validation.d.ts +0 -1
  360. package/dist/spark-sdk/src/utils/response-validation.js +0 -16
  361. package/dist/spark-sdk/src/utils/response-validation.js.map +0 -1
  362. package/dist/spark-sdk/src/utils/secret-sharing.d.ts +0 -26
  363. package/dist/spark-sdk/src/utils/secret-sharing.js +0 -174
  364. package/dist/spark-sdk/src/utils/secret-sharing.js.map +0 -1
  365. package/dist/spark-sdk/src/utils/signing.d.ts +0 -12
  366. package/dist/spark-sdk/src/utils/signing.js +0 -67
  367. package/dist/spark-sdk/src/utils/signing.js.map +0 -1
  368. package/dist/spark-sdk/src/utils/token-hashing.d.ts +0 -3
  369. package/dist/spark-sdk/src/utils/token-hashing.js +0 -116
  370. package/dist/spark-sdk/src/utils/token-hashing.js.map +0 -1
  371. package/dist/spark-sdk/src/utils/token-keyshares.d.ts +0 -5
  372. package/dist/spark-sdk/src/utils/token-keyshares.js +0 -17
  373. package/dist/spark-sdk/src/utils/token-keyshares.js.map +0 -1
  374. package/dist/spark-sdk/src/utils/token-transactions.d.ts +0 -5
  375. package/dist/spark-sdk/src/utils/token-transactions.js +0 -40
  376. package/dist/spark-sdk/src/utils/token-transactions.js.map +0 -1
  377. package/dist/spark-sdk/src/utils/transaction.d.ts +0 -9
  378. package/dist/spark-sdk/src/utils/transaction.js +0 -35
  379. package/dist/spark-sdk/src/utils/transaction.js.map +0 -1
  380. package/dist/spark-sdk/src/utils/wasm-wrapper.d.ts +0 -2
  381. package/dist/spark-sdk/src/utils/wasm-wrapper.js +0 -46
  382. package/dist/spark-sdk/src/utils/wasm-wrapper.js.map +0 -1
  383. package/dist/spark-sdk/src/utils/wasm.d.ts +0 -54
  384. package/dist/spark-sdk/src/utils/wasm.js +0 -26
  385. package/dist/spark-sdk/src/utils/wasm.js.map +0 -1
@@ -1,20 +0,0 @@
1
- // Copyright ©, 2023-present, Lightspark Group, Inc. - All Rights Reserved
2
- /** This is an enum identifying a particular Bitcoin Network. **/
3
- export var BitcoinNetwork;
4
- (function (BitcoinNetwork) {
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
- BitcoinNetwork["FUTURE_VALUE"] = "FUTURE_VALUE";
10
- /** The production version of the Bitcoin Blockchain. **/
11
- BitcoinNetwork["MAINNET"] = "MAINNET";
12
- /** A test version of the Bitcoin Blockchain, maintained by Lightspark. **/
13
- BitcoinNetwork["REGTEST"] = "REGTEST";
14
- /** A test version of the Bitcoin Blockchain, maintained by a centralized organization. Not in use at Lightspark. **/
15
- BitcoinNetwork["SIGNET"] = "SIGNET";
16
- /** A test version of the Bitcoin Blockchain, publicly available. **/
17
- BitcoinNetwork["TESTNET"] = "TESTNET";
18
- })(BitcoinNetwork || (BitcoinNetwork = {}));
19
- export default BitcoinNetwork;
20
- //# sourceMappingURL=BitcoinNetwork.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"BitcoinNetwork.js","sourceRoot":"","sources":["../../../../../../spark-sdk/src/graphql/objects/BitcoinNetwork.ts"],"names":[],"mappings":"AACA,0EAA0E;AAE1E,iEAAiE;AACjE,MAAM,CAAN,IAAY,cAeX;AAfD,WAAY,cAAc;IAC1B;;;OAGG;IACF,+CAA6B,CAAA;IAC9B,yDAAyD;IACzD,qCAAmB,CAAA;IACnB,2EAA2E;IAC3E,qCAAmB,CAAA;IACnB,qHAAqH;IACrH,mCAAiB,CAAA;IACjB,qEAAqE;IACrE,qCAAmB,CAAA;AAEnB,CAAC,EAfW,cAAc,KAAd,cAAc,QAezB;AAED,eAAe,cAAc,CAAC"}
@@ -1,7 +0,0 @@
1
- interface CompleteCoopExitInput {
2
- userOutboundTransferExternalId: string;
3
- coopExitRequestId: string;
4
- }
5
- export declare const CompleteCoopExitInputFromJson: (obj: any) => CompleteCoopExitInput;
6
- export declare const CompleteCoopExitInputToJson: (obj: CompleteCoopExitInput) => any;
7
- export default CompleteCoopExitInput;
@@ -1,14 +0,0 @@
1
- // Copyright ©, 2023-present, Lightspark Group, Inc. - All Rights Reserved
2
- export const CompleteCoopExitInputFromJson = (obj) => {
3
- return {
4
- userOutboundTransferExternalId: obj["complete_coop_exit_input_user_outbound_transfer_external_id"],
5
- coopExitRequestId: obj["complete_coop_exit_input_coop_exit_request_id"],
6
- };
7
- };
8
- export const CompleteCoopExitInputToJson = (obj) => {
9
- return {
10
- complete_coop_exit_input_user_outbound_transfer_external_id: obj.userOutboundTransferExternalId,
11
- complete_coop_exit_input_coop_exit_request_id: obj.coopExitRequestId,
12
- };
13
- };
14
- //# sourceMappingURL=CompleteCoopExitInput.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"CompleteCoopExitInput.js","sourceRoot":"","sources":["../../../../../../spark-sdk/src/graphql/objects/CompleteCoopExitInput.ts"],"names":[],"mappings":"AACA,0EAA0E;AAkB1E,MAAM,CAAC,MAAM,6BAA6B,GAAG,CAAC,GAAQ,EAAyB,EAAE;IAC7E,OAAO;QACH,8BAA8B,EAAE,GAAG,CAAC,6DAA6D,CAAC;QAClG,iBAAiB,EAAE,GAAG,CAAC,+CAA+C,CAAC;KAE7C,CAAC;AAEnC,CAAC,CAAA;AACD,MAAM,CAAC,MAAM,2BAA2B,GAAG,CAAC,GAA0B,EAAO,EAAE;IAC/E,OAAO;QACP,2DAA2D,EAAE,GAAG,CAAC,8BAA8B;QAC/F,6CAA6C,EAAE,GAAG,CAAC,iBAAiB;KAE3D,CAAA;AAET,CAAC,CAAA"}
@@ -1,7 +0,0 @@
1
- interface CompleteCoopExitOutput {
2
- requestId: string;
3
- }
4
- export declare const CompleteCoopExitOutputFromJson: (obj: any) => CompleteCoopExitOutput;
5
- export declare const CompleteCoopExitOutputToJson: (obj: CompleteCoopExitOutput) => any;
6
- export declare const FRAGMENT = "\nfragment CompleteCoopExitOutputFragment on CompleteCoopExitOutput {\n __typename\n complete_coop_exit_output_request: request {\n id\n }\n}";
7
- export default CompleteCoopExitOutput;
@@ -1,19 +0,0 @@
1
- // Copyright ©, 2023-present, Lightspark Group, Inc. - All Rights Reserved
2
- export const CompleteCoopExitOutputFromJson = (obj) => {
3
- return {
4
- requestId: obj["complete_coop_exit_output_request"].id,
5
- };
6
- };
7
- export const CompleteCoopExitOutputToJson = (obj) => {
8
- return {
9
- complete_coop_exit_output_request: { id: obj.requestId },
10
- };
11
- };
12
- export const FRAGMENT = `
13
- fragment CompleteCoopExitOutputFragment on CompleteCoopExitOutput {
14
- __typename
15
- complete_coop_exit_output_request: request {
16
- id
17
- }
18
- }`;
19
- //# sourceMappingURL=CompleteCoopExitOutput.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"CompleteCoopExitOutput.js","sourceRoot":"","sources":["../../../../../../spark-sdk/src/graphql/objects/CompleteCoopExitOutput.ts"],"names":[],"mappings":"AACA,0EAA0E;AAgB1E,MAAM,CAAC,MAAM,8BAA8B,GAAG,CAAC,GAAQ,EAA0B,EAAE;IAC/E,OAAO;QACH,SAAS,EAAE,GAAG,CAAC,mCAAmC,CAAC,CAAC,EAAE;KAE3B,CAAC;AAEpC,CAAC,CAAA;AACD,MAAM,CAAC,MAAM,4BAA4B,GAAG,CAAC,GAA2B,EAAO,EAAE;IACjF,OAAO;QACP,iCAAiC,EAAE,EAAE,EAAE,EAAE,GAAG,CAAC,SAAS,EAAE;KAE/C,CAAA;AAET,CAAC,CAAA;AAGG,MAAM,CAAC,MAAM,QAAQ,GAAG;;;;;;EAM1B,CAAC"}
@@ -1,8 +0,0 @@
1
- interface CompleteLeavesSwapInput {
2
- adaptorSecretKey: string;
3
- userOutboundTransferExternalId: string;
4
- leavesSwapRequestId: string;
5
- }
6
- export declare const CompleteLeavesSwapInputFromJson: (obj: any) => CompleteLeavesSwapInput;
7
- export declare const CompleteLeavesSwapInputToJson: (obj: CompleteLeavesSwapInput) => any;
8
- export default CompleteLeavesSwapInput;
@@ -1,16 +0,0 @@
1
- // Copyright ©, 2023-present, Lightspark Group, Inc. - All Rights Reserved
2
- export const CompleteLeavesSwapInputFromJson = (obj) => {
3
- return {
4
- adaptorSecretKey: obj["complete_leaves_swap_input_adaptor_secret_key"],
5
- userOutboundTransferExternalId: obj["complete_leaves_swap_input_user_outbound_transfer_external_id"],
6
- leavesSwapRequestId: obj["complete_leaves_swap_input_leaves_swap_request_id"],
7
- };
8
- };
9
- export const CompleteLeavesSwapInputToJson = (obj) => {
10
- return {
11
- complete_leaves_swap_input_adaptor_secret_key: obj.adaptorSecretKey,
12
- complete_leaves_swap_input_user_outbound_transfer_external_id: obj.userOutboundTransferExternalId,
13
- complete_leaves_swap_input_leaves_swap_request_id: obj.leavesSwapRequestId,
14
- };
15
- };
16
- //# sourceMappingURL=CompleteLeavesSwapInput.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"CompleteLeavesSwapInput.js","sourceRoot":"","sources":["../../../../../../spark-sdk/src/graphql/objects/CompleteLeavesSwapInput.ts"],"names":[],"mappings":"AACA,0EAA0E;AAoB1E,MAAM,CAAC,MAAM,+BAA+B,GAAG,CAAC,GAAQ,EAA2B,EAAE;IACjF,OAAO;QACH,gBAAgB,EAAE,GAAG,CAAC,+CAA+C,CAAC;QACtE,8BAA8B,EAAE,GAAG,CAAC,+DAA+D,CAAC;QACpG,mBAAmB,EAAE,GAAG,CAAC,mDAAmD,CAAC;KAEjD,CAAC;AAErC,CAAC,CAAA;AACD,MAAM,CAAC,MAAM,6BAA6B,GAAG,CAAC,GAA4B,EAAO,EAAE;IACnF,OAAO;QACP,6CAA6C,EAAE,GAAG,CAAC,gBAAgB;QACnE,6DAA6D,EAAE,GAAG,CAAC,8BAA8B;QACjG,iDAAiD,EAAE,GAAG,CAAC,mBAAmB;KAEjE,CAAA;AAET,CAAC,CAAA"}
@@ -1,7 +0,0 @@
1
- interface CompleteLeavesSwapOutput {
2
- requestId: string;
3
- }
4
- export declare const CompleteLeavesSwapOutputFromJson: (obj: any) => CompleteLeavesSwapOutput;
5
- export declare const CompleteLeavesSwapOutputToJson: (obj: CompleteLeavesSwapOutput) => any;
6
- export declare const FRAGMENT = "\nfragment CompleteLeavesSwapOutputFragment on CompleteLeavesSwapOutput {\n __typename\n complete_leaves_swap_output_request: request {\n id\n }\n}";
7
- export default CompleteLeavesSwapOutput;
@@ -1,19 +0,0 @@
1
- // Copyright ©, 2023-present, Lightspark Group, Inc. - All Rights Reserved
2
- export const CompleteLeavesSwapOutputFromJson = (obj) => {
3
- return {
4
- requestId: obj["complete_leaves_swap_output_request"].id,
5
- };
6
- };
7
- export const CompleteLeavesSwapOutputToJson = (obj) => {
8
- return {
9
- complete_leaves_swap_output_request: { id: obj.requestId },
10
- };
11
- };
12
- export const FRAGMENT = `
13
- fragment CompleteLeavesSwapOutputFragment on CompleteLeavesSwapOutput {
14
- __typename
15
- complete_leaves_swap_output_request: request {
16
- id
17
- }
18
- }`;
19
- //# sourceMappingURL=CompleteLeavesSwapOutput.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"CompleteLeavesSwapOutput.js","sourceRoot":"","sources":["../../../../../../spark-sdk/src/graphql/objects/CompleteLeavesSwapOutput.ts"],"names":[],"mappings":"AACA,0EAA0E;AAgB1E,MAAM,CAAC,MAAM,gCAAgC,GAAG,CAAC,GAAQ,EAA4B,EAAE;IACnF,OAAO;QACH,SAAS,EAAE,GAAG,CAAC,qCAAqC,CAAC,CAAC,EAAE;KAE3B,CAAC;AAEtC,CAAC,CAAA;AACD,MAAM,CAAC,MAAM,8BAA8B,GAAG,CAAC,GAA6B,EAAO,EAAE;IACrF,OAAO;QACP,mCAAmC,EAAE,EAAE,EAAE,EAAE,GAAG,CAAC,SAAS,EAAE;KAEjD,CAAA;AAET,CAAC,CAAA;AAGG,MAAM,CAAC,MAAM,QAAQ,GAAG;;;;;;EAM1B,CAAC"}
@@ -1,7 +0,0 @@
1
- interface CompleteSeedReleaseInput {
2
- phoneNumber: string;
3
- code: string;
4
- }
5
- export declare const CompleteSeedReleaseInputFromJson: (obj: any) => CompleteSeedReleaseInput;
6
- export declare const CompleteSeedReleaseInputToJson: (obj: CompleteSeedReleaseInput) => any;
7
- export default CompleteSeedReleaseInput;
@@ -1,14 +0,0 @@
1
- // Copyright ©, 2023-present, Lightspark Group, Inc. - All Rights Reserved
2
- export const CompleteSeedReleaseInputFromJson = (obj) => {
3
- return {
4
- phoneNumber: obj["complete_seed_release_input_phone_number"],
5
- code: obj["complete_seed_release_input_code"],
6
- };
7
- };
8
- export const CompleteSeedReleaseInputToJson = (obj) => {
9
- return {
10
- complete_seed_release_input_phone_number: obj.phoneNumber,
11
- complete_seed_release_input_code: obj.code,
12
- };
13
- };
14
- //# sourceMappingURL=CompleteSeedReleaseInput.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"CompleteSeedReleaseInput.js","sourceRoot":"","sources":["../../../../../../spark-sdk/src/graphql/objects/CompleteSeedReleaseInput.ts"],"names":[],"mappings":"AACA,0EAA0E;AAkB1E,MAAM,CAAC,MAAM,gCAAgC,GAAG,CAAC,GAAQ,EAA4B,EAAE;IACnF,OAAO;QACH,WAAW,EAAE,GAAG,CAAC,0CAA0C,CAAC;QAC5D,IAAI,EAAE,GAAG,CAAC,kCAAkC,CAAC;KAEhB,CAAC;AAEtC,CAAC,CAAA;AACD,MAAM,CAAC,MAAM,8BAA8B,GAAG,CAAC,GAA6B,EAAO,EAAE;IACrF,OAAO;QACP,wCAAwC,EAAE,GAAG,CAAC,WAAW;QACzD,gCAAgC,EAAE,GAAG,CAAC,IAAI;KAEjC,CAAA;AAET,CAAC,CAAA"}
@@ -1,7 +0,0 @@
1
- interface CompleteSeedReleaseOutput {
2
- seed: string;
3
- }
4
- export declare const CompleteSeedReleaseOutputFromJson: (obj: any) => CompleteSeedReleaseOutput;
5
- export declare const CompleteSeedReleaseOutputToJson: (obj: CompleteSeedReleaseOutput) => any;
6
- export declare const FRAGMENT = "\nfragment CompleteSeedReleaseOutputFragment on CompleteSeedReleaseOutput {\n __typename\n complete_seed_release_output_seed: seed\n}";
7
- export default CompleteSeedReleaseOutput;
@@ -1,17 +0,0 @@
1
- // Copyright ©, 2023-present, Lightspark Group, Inc. - All Rights Reserved
2
- export const CompleteSeedReleaseOutputFromJson = (obj) => {
3
- return {
4
- seed: obj["complete_seed_release_output_seed"],
5
- };
6
- };
7
- export const CompleteSeedReleaseOutputToJson = (obj) => {
8
- return {
9
- complete_seed_release_output_seed: obj.seed,
10
- };
11
- };
12
- export const FRAGMENT = `
13
- fragment CompleteSeedReleaseOutputFragment on CompleteSeedReleaseOutput {
14
- __typename
15
- complete_seed_release_output_seed: seed
16
- }`;
17
- //# sourceMappingURL=CompleteSeedReleaseOutput.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"CompleteSeedReleaseOutput.js","sourceRoot":"","sources":["../../../../../../spark-sdk/src/graphql/objects/CompleteSeedReleaseOutput.ts"],"names":[],"mappings":"AACA,0EAA0E;AAgB1E,MAAM,CAAC,MAAM,iCAAiC,GAAG,CAAC,GAAQ,EAA6B,EAAE;IACrF,OAAO;QACH,IAAI,EAAE,GAAG,CAAC,mCAAmC,CAAC;KAEhB,CAAC;AAEvC,CAAC,CAAA;AACD,MAAM,CAAC,MAAM,+BAA+B,GAAG,CAAC,GAA8B,EAAO,EAAE;IACvF,OAAO;QACP,iCAAiC,EAAE,GAAG,CAAC,IAAI;KAElC,CAAA;AAET,CAAC,CAAA;AAGG,MAAM,CAAC,MAAM,QAAQ,GAAG;;;;EAI1B,CAAC"}
@@ -1,16 +0,0 @@
1
- import PageInfo from './PageInfo.js';
2
- interface Connection {
3
- /**
4
- * The total count of objects in this connection, using the current filters. It is different from the
5
- * number of objects returned in the current page (in the `entities` field).
6
- **/
7
- count: number;
8
- /** An object that holds pagination information about the objects in this connection. **/
9
- pageInfo: PageInfo;
10
- /** The typename of the object **/
11
- typename: string;
12
- }
13
- export declare const ConnectionFromJson: (obj: any) => Connection;
14
- export declare const ConnectionToJson: (obj: Connection) => any;
15
- export declare const FRAGMENT = "\nfragment ConnectionFragment on Connection {\n __typename\n ... 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 }\n}";
16
- export default Connection;
@@ -1,56 +0,0 @@
1
- // Copyright ©, 2023-present, Lightspark Group, Inc. - All Rights Reserved
2
- import { PageInfoToJson } from './PageInfo.js';
3
- import { PageInfoFromJson } from './PageInfo.js';
4
- import { LightsparkException } from '@lightsparkdev/core';
5
- import { LeafFromJson } from './Leaf.js';
6
- import { LeafToJson } from './Leaf.js';
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
@@ -1 +0,0 @@
1
- {"version":3,"file":"Connection.js","sourceRoot":"","sources":["../../../../../../spark-sdk/src/graphql/objects/Connection.ts"],"names":[],"mappings":"AACA,0EAA0E;AAG1E,OAAO,EAAC,cAAc,EAAC,MAAM,eAAe,CAAC;AAC7C,OAAO,EAAC,gBAAgB,EAAC,MAAM,eAAe,CAAC;AAE/C,OAAO,EAAE,mBAAmB,EAAE,MAAM,qBAAqB,CAAC;AAC1D,OAAO,EAAC,YAAY,EAAC,MAAM,WAAW,CAAC;AAEvC,OAAO,EAAC,UAAU,EAAC,MAAM,WAAW,CAAC;AAuBrC,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"}
@@ -1,7 +0,0 @@
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;
@@ -1,14 +0,0 @@
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
@@ -1 +0,0 @@
1
- {"version":3,"file":"CoopExitFeeEstimateInput.js","sourceRoot":"","sources":["../../../../../../spark-sdk/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"}
@@ -1,8 +0,0 @@
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;
@@ -1,26 +0,0 @@
1
- // Copyright ©, 2023-present, Lightspark Group, Inc. - All Rights Reserved
2
- import { CurrencyAmountToJson } from './CurrencyAmount.js';
3
- import { CurrencyAmountFromJson } 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
@@ -1 +0,0 @@
1
- {"version":3,"file":"CoopExitFeeEstimateOutput.js","sourceRoot":"","sources":["../../../../../../spark-sdk/src/graphql/objects/CoopExitFeeEstimateOutput.ts"],"names":[],"mappings":"AACA,0EAA0E;AAI1E,OAAO,EAAC,oBAAoB,EAAC,MAAM,qBAAqB,CAAC;AACzD,OAAO,EAAC,sBAAsB,EAAC,MAAM,qBAAqB,CAAC;AAa3D,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"}
@@ -1,35 +0,0 @@
1
- import BitcoinNetwork from './BitcoinNetwork.js';
2
- import CurrencyAmount from './CurrencyAmount.js';
3
- import { Query } from '@lightsparkdev/core';
4
- import SparkCoopExitRequestStatus from './SparkCoopExitRequestStatus.js';
5
- interface CoopExitRequest {
6
- /**
7
- * The unique identifier of this entity across all Lightspark systems. Should be treated as an opaque
8
- * string.
9
- **/
10
- id: string;
11
- /** The date and time when the entity was first created. **/
12
- createdAt: string;
13
- /** The date and time when the entity was last updated. **/
14
- updatedAt: string;
15
- /** The network the lightning send request is on. **/
16
- network: BitcoinNetwork;
17
- /**
18
- * The fee includes what user pays for the coop exit and the L1 broadcast fee. The amount user will
19
- * receive on L1 is total_amount - fee.
20
- **/
21
- fee: CurrencyAmount;
22
- /** The status of the request. **/
23
- status: SparkCoopExitRequestStatus;
24
- /** The time when the coop exit request expires and the UTXOs are released. **/
25
- expiresAt: string;
26
- /** The raw connector transaction. **/
27
- rawConnectorTransaction: string;
28
- /** The typename of the object **/
29
- typename: string;
30
- }
31
- export declare const CoopExitRequestFromJson: (obj: any) => CoopExitRequest;
32
- export declare const CoopExitRequestToJson: (obj: CoopExitRequest) => any;
33
- 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_network: network\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}";
34
- export declare const getCoopExitRequestQuery: (id: string) => Query<CoopExitRequest>;
35
- export default CoopExitRequest;
@@ -1,68 +0,0 @@
1
- // Copyright ©, 2023-present, Lightspark Group, Inc. - All Rights Reserved
2
- import BitcoinNetwork from './BitcoinNetwork.js';
3
- import { CurrencyAmountToJson } from './CurrencyAmount.js';
4
- import { CurrencyAmountFromJson } from './CurrencyAmount.js';
5
- import { isObject } from '@lightsparkdev/core';
6
- import SparkCoopExitRequestStatus from './SparkCoopExitRequestStatus.js';
7
- export const CoopExitRequestFromJson = (obj) => {
8
- return {
9
- id: obj["coop_exit_request_id"],
10
- createdAt: obj["coop_exit_request_created_at"],
11
- updatedAt: obj["coop_exit_request_updated_at"],
12
- network: BitcoinNetwork[obj["coop_exit_request_network"]] ?? BitcoinNetwork.FUTURE_VALUE,
13
- fee: CurrencyAmountFromJson(obj["coop_exit_request_fee"]),
14
- status: SparkCoopExitRequestStatus[obj["coop_exit_request_status"]] ?? SparkCoopExitRequestStatus.FUTURE_VALUE,
15
- expiresAt: obj["coop_exit_request_expires_at"],
16
- rawConnectorTransaction: obj["coop_exit_request_raw_connector_transaction"],
17
- typename: "CoopExitRequest",
18
- };
19
- };
20
- export const CoopExitRequestToJson = (obj) => {
21
- return {
22
- __typename: "CoopExitRequest", coop_exit_request_id: obj.id,
23
- coop_exit_request_created_at: obj.createdAt,
24
- coop_exit_request_updated_at: obj.updatedAt,
25
- coop_exit_request_network: obj.network,
26
- coop_exit_request_fee: CurrencyAmountToJson(obj.fee),
27
- coop_exit_request_status: obj.status,
28
- coop_exit_request_expires_at: obj.expiresAt,
29
- coop_exit_request_raw_connector_transaction: obj.rawConnectorTransaction,
30
- };
31
- };
32
- export const FRAGMENT = `
33
- fragment CoopExitRequestFragment on CoopExitRequest {
34
- __typename
35
- coop_exit_request_id: id
36
- coop_exit_request_created_at: created_at
37
- coop_exit_request_updated_at: updated_at
38
- coop_exit_request_network: network
39
- coop_exit_request_fee: fee {
40
- __typename
41
- currency_amount_original_value: original_value
42
- currency_amount_original_unit: original_unit
43
- currency_amount_preferred_currency_unit: preferred_currency_unit
44
- currency_amount_preferred_currency_value_rounded: preferred_currency_value_rounded
45
- currency_amount_preferred_currency_value_approx: preferred_currency_value_approx
46
- }
47
- coop_exit_request_status: status
48
- coop_exit_request_expires_at: expires_at
49
- coop_exit_request_raw_connector_transaction: raw_connector_transaction
50
- }`;
51
- export const getCoopExitRequestQuery = (id) => {
52
- return {
53
- queryPayload: `
54
- query GetCoopExitRequest($id: ID!) {
55
- entity(id: $id) {
56
- ... on CoopExitRequest {
57
- ...CoopExitRequestFragment
58
- }
59
- }
60
- }
61
-
62
- ${FRAGMENT}
63
- `,
64
- variables: { id },
65
- constructObject: (data) => isObject(data) && "entity" in data && isObject(data.entity) ? CoopExitRequestFromJson(data.entity) : null,
66
- };
67
- };
68
- //# sourceMappingURL=CoopExitRequest.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"CoopExitRequest.js","sourceRoot":"","sources":["../../../../../../spark-sdk/src/graphql/objects/CoopExitRequest.ts"],"names":[],"mappings":"AACA,0EAA0E;AAI1E,OAAO,cAAc,MAAM,qBAAqB,CAAC;AACjD,OAAO,EAAC,oBAAoB,EAAC,MAAM,qBAAqB,CAAC;AACzD,OAAO,EAAC,sBAAsB,EAAC,MAAM,qBAAqB,CAAC;AAE3D,OAAO,EAAS,QAAQ,EAAE,MAAM,qBAAqB,CAAC;AACtD,OAAO,0BAA0B,MAAM,iCAAiC,CAAC;AA4CzE,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,OAAO,EAAE,cAAc,CAAC,GAAG,CAAC,2BAA2B,CAAC,CAAC,IAAI,cAAc,CAAC,YAAY;QACxF,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,yBAAyB,EAAE,GAAG,CAAC,OAAO;QACtC,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;;;;;;;;;;;;;;;;;;EAkB1B,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"}
@@ -1,24 +0,0 @@
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;
@@ -1,30 +0,0 @@
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
@@ -1 +0,0 @@
1
- {"version":3,"file":"CurrencyAmount.js","sourceRoot":"","sources":["../../../../../../spark-sdk/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"}
@@ -1,29 +0,0 @@
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
- /** Euro. **/
21
- EUR = "EUR",
22
- /** 0.000000001 (10e-9) Bitcoin or a billionth of a Bitcoin. We recommend using the Satoshi unit instead when possible. **/
23
- NANOBITCOIN = "NANOBITCOIN",
24
- /** 0.000001 (10e-6) Bitcoin or a millionth of a Bitcoin. We recommend using the Satoshi unit instead when possible. **/
25
- MICROBITCOIN = "MICROBITCOIN",
26
- /** 0.001 (10e-3) Bitcoin or a thousandth of a Bitcoin. We recommend using the Satoshi unit instead when possible. **/
27
- MILLIBITCOIN = "MILLIBITCOIN"
28
- }
29
- export default CurrencyUnit;
@@ -1,32 +0,0 @@
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
- /** Euro. **/
23
- CurrencyUnit["EUR"] = "EUR";
24
- /** 0.000000001 (10e-9) Bitcoin or a billionth of a Bitcoin. We recommend using the Satoshi unit instead when possible. **/
25
- CurrencyUnit["NANOBITCOIN"] = "NANOBITCOIN";
26
- /** 0.000001 (10e-6) Bitcoin or a millionth of a Bitcoin. We recommend using the Satoshi unit instead when possible. **/
27
- CurrencyUnit["MICROBITCOIN"] = "MICROBITCOIN";
28
- /** 0.001 (10e-3) Bitcoin or a thousandth of a Bitcoin. We recommend using the Satoshi unit instead when possible. **/
29
- CurrencyUnit["MILLIBITCOIN"] = "MILLIBITCOIN";
30
- })(CurrencyUnit || (CurrencyUnit = {}));
31
- export default CurrencyUnit;
32
- //# sourceMappingURL=CurrencyUnit.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"CurrencyUnit.js","sourceRoot":"","sources":["../../../../../../spark-sdk/src/graphql/objects/CurrencyUnit.ts"],"names":[],"mappings":"AACA,0EAA0E;AAE1E,mFAAmF;AACnF,MAAM,CAAN,IAAY,YA2BX;AA3BD,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,aAAa;IACb,2BAAW,CAAA;IACX,2HAA2H;IAC3H,2CAA2B,CAAA;IAC3B,wHAAwH;IACxH,6CAA6B,CAAA;IAC7B,sHAAsH;IACtH,6CAA6B,CAAA;AAE7B,CAAC,EA3BW,YAAY,KAAZ,YAAY,QA2BvB;AAED,eAAe,YAAY,CAAC"}