@buildonspark/spark-sdk 0.1.40 → 0.1.41

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 (692) hide show
  1. package/CHANGELOG.md +8 -0
  2. package/README.md +1 -1
  3. package/dist/{RequestLightningSendInput-DfmfqzZo.d.cts → RequestLightningSendInput-DXcLoiCe.d.cts} +10 -2
  4. package/dist/{RequestLightningSendInput-CJtcHOnu.d.ts → RequestLightningSendInput-mXUWn_cp.d.ts} +10 -2
  5. package/dist/address/index.cjs +138 -6
  6. package/dist/address/index.d.cts +18 -6
  7. package/dist/address/index.d.ts +18 -6
  8. package/dist/address/index.js +5 -2
  9. package/dist/{chunk-FWQPAPXK.js → chunk-2ZXXLPG2.js} +1 -1
  10. package/dist/{chunk-S7KD6DDL.js → chunk-6YVPOQ2A.js} +41 -20
  11. package/dist/{chunk-ZUVYYR5T.js → chunk-7EFSUADA.js} +1 -0
  12. package/dist/{chunk-NS4UZRQ7.js → chunk-ABZA6R5S.js} +1 -1
  13. package/dist/{chunk-57XLH3ZR.js → chunk-ATEHMLKP.js} +23 -23
  14. package/dist/{chunk-5MNQB2T4.js → chunk-J5W5Q2ZP.js} +336 -71
  15. package/dist/{chunk-LHT4QTFK.js → chunk-KKSU7OZO.js} +137 -49
  16. package/dist/{chunk-C5LTJBI7.js → chunk-M6A4KFIG.js} +125 -226
  17. package/dist/{chunk-A74XSEW3.js → chunk-MIVX3GHD.js} +1 -1
  18. package/dist/{chunk-I4JI6TYN.js → chunk-ROKY5KS4.js} +21 -1
  19. package/dist/{chunk-2CDJZQN4.js → chunk-TM4TOEOX.js} +24 -6
  20. package/dist/{chunk-RFCXPGDM.js → chunk-UKT6OFLO.js} +99 -31
  21. package/dist/chunk-VA7MV4MZ.js +1073 -0
  22. package/dist/{chunk-ED3ZAFDI.js → chunk-YEZDPUFY.js} +61 -5
  23. package/dist/{chunk-W2VXS35Y.js → chunk-ZXDE2XMU.js} +5 -2
  24. package/dist/graphql/objects/index.cjs +6 -3
  25. package/dist/graphql/objects/index.d.cts +4 -4
  26. package/dist/graphql/objects/index.d.ts +4 -4
  27. package/dist/graphql/objects/index.js +1 -1
  28. package/dist/{index-CLdtdMU4.d.cts → index-CFh4uWzi.d.cts} +22 -5
  29. package/dist/{index-BDEYgYxP.d.ts → index-OSDtPMmC.d.ts} +22 -5
  30. package/dist/index.cjs +2299 -940
  31. package/dist/index.d.cts +8 -7
  32. package/dist/index.d.ts +8 -7
  33. package/dist/index.js +30 -24
  34. package/dist/index.node.cjs +2299 -940
  35. package/dist/index.node.d.cts +9 -8
  36. package/dist/index.node.d.ts +9 -8
  37. package/dist/index.node.js +30 -24
  38. package/dist/native/index.cjs +2303 -944
  39. package/dist/native/index.d.cts +436 -256
  40. package/dist/native/index.d.ts +436 -256
  41. package/dist/native/index.js +2150 -795
  42. package/dist/{network-CCgyIsGl.d.ts → network-BF2GYPye.d.ts} +1 -1
  43. package/dist/{network-B10hBoHp.d.cts → network-BiwBmoOg.d.cts} +1 -1
  44. package/dist/proto/lrc20.d.cts +1 -1
  45. package/dist/proto/lrc20.d.ts +1 -1
  46. package/dist/proto/lrc20.js +2 -2
  47. package/dist/proto/spark.cjs +125 -226
  48. package/dist/proto/spark.d.cts +1 -1
  49. package/dist/proto/spark.d.ts +1 -1
  50. package/dist/proto/spark.js +3 -5
  51. package/dist/proto/spark_token.cjs +1364 -0
  52. package/dist/proto/spark_token.d.cts +209 -0
  53. package/dist/proto/spark_token.d.ts +209 -0
  54. package/dist/proto/spark_token.js +32 -0
  55. package/dist/{sdk-types-BuVMn2rX.d.cts → sdk-types-CfhdFnsA.d.cts} +1 -1
  56. package/dist/{sdk-types-BeI6DM_M.d.ts → sdk-types-MnQrHolg.d.ts} +1 -1
  57. package/dist/services/config.cjs +35 -28
  58. package/dist/services/config.d.cts +5 -4
  59. package/dist/services/config.d.ts +5 -4
  60. package/dist/services/config.js +6 -6
  61. package/dist/services/connection.cjs +1108 -306
  62. package/dist/services/connection.d.cts +9 -4
  63. package/dist/services/connection.d.ts +9 -4
  64. package/dist/services/connection.js +3 -2
  65. package/dist/services/index.cjs +1686 -489
  66. package/dist/services/index.d.cts +5 -4
  67. package/dist/services/index.d.ts +5 -4
  68. package/dist/services/index.js +14 -12
  69. package/dist/services/lrc-connection.d.cts +4 -4
  70. package/dist/services/lrc-connection.d.ts +4 -4
  71. package/dist/services/lrc-connection.js +3 -3
  72. package/dist/services/token-transactions.cjs +636 -246
  73. package/dist/services/token-transactions.d.cts +18 -7
  74. package/dist/services/token-transactions.d.ts +18 -7
  75. package/dist/services/token-transactions.js +5 -4
  76. package/dist/services/wallet-config.cjs +1 -0
  77. package/dist/services/wallet-config.d.cts +5 -4
  78. package/dist/services/wallet-config.d.ts +5 -4
  79. package/dist/services/wallet-config.js +1 -1
  80. package/dist/signer/signer.cjs +99 -29
  81. package/dist/signer/signer.d.cts +2 -2
  82. package/dist/signer/signer.d.ts +2 -2
  83. package/dist/signer/signer.js +8 -4
  84. package/dist/{signer-CYwn7h9U.d.cts → signer-BhLS7SYR.d.cts} +31 -13
  85. package/dist/{signer-C5h1DpjF.d.ts → signer-CylxIujU.d.ts} +31 -13
  86. package/dist/{spark-DXYE9gMM.d.cts → spark-DjR1b3TC.d.cts} +13 -21
  87. package/dist/{spark-DXYE9gMM.d.ts → spark-DjR1b3TC.d.ts} +13 -21
  88. package/dist/types/index.cjs +130 -227
  89. package/dist/types/index.d.cts +4 -4
  90. package/dist/types/index.d.ts +4 -4
  91. package/dist/types/index.js +3 -3
  92. package/dist/utils/index.cjs +279 -2
  93. package/dist/utils/index.d.cts +10 -6
  94. package/dist/utils/index.d.ts +10 -6
  95. package/dist/utils/index.js +17 -12
  96. package/package.json +6 -2
  97. package/src/address/address.ts +41 -6
  98. package/src/graphql/client.ts +15 -0
  99. package/src/graphql/objects/Transfer.ts +7 -0
  100. package/src/graphql/queries/Transfer.ts +10 -0
  101. package/src/proto/spark.ts +215 -337
  102. package/src/proto/spark_token.ts +1407 -0
  103. package/src/services/config.ts +4 -0
  104. package/src/services/connection.ts +37 -1
  105. package/src/services/token-transactions.ts +425 -74
  106. package/src/services/wallet-config.ts +2 -0
  107. package/src/signer/signer.ts +143 -43
  108. package/src/spark-wallet/spark-wallet.ts +81 -3
  109. package/src/tests/integration/transfer.test.ts +186 -214
  110. package/src/tests/signer.test.ts +34 -0
  111. package/src/tests/transaction.test.ts +12 -0
  112. package/src/tests/xchain-address.test.ts +28 -0
  113. package/src/utils/index.ts +1 -0
  114. package/src/utils/transaction.ts +30 -2
  115. package/src/utils/xchain-address.ts +36 -0
  116. package/android/build/.transforms/040d8fa2b9716b9d83b2ee652456153b/results.bin +0 -1
  117. package/android/build/.transforms/040d8fa2b9716b9d83b2ee652456153b/transformed/classes/classes_dex/classes.dex +0 -0
  118. package/android/build/.transforms/2d0f5d3b1e10a4215d771884270da0bd/results.bin +0 -1
  119. package/android/build/.transforms/2d0f5d3b1e10a4215d771884270da0bd/transformed/classes/classes_dex/classes.dex +0 -0
  120. package/android/build/.transforms/54700a025e43a95050ec1055d0701a4f/results.bin +0 -1
  121. package/android/build/.transforms/54700a025e43a95050ec1055d0701a4f/transformed/bundleLibRuntimeToDirDebug/bundleLibRuntimeToDirDebug_dex/com/sparkfrost/BuildConfig.dex +0 -0
  122. package/android/build/.transforms/54700a025e43a95050ec1055d0701a4f/transformed/bundleLibRuntimeToDirDebug/bundleLibRuntimeToDirDebug_dex/com/sparkfrost/SparkFrostModule$Companion.dex +0 -0
  123. package/android/build/.transforms/54700a025e43a95050ec1055d0701a4f/transformed/bundleLibRuntimeToDirDebug/bundleLibRuntimeToDirDebug_dex/com/sparkfrost/SparkFrostModule.dex +0 -0
  124. package/android/build/.transforms/54700a025e43a95050ec1055d0701a4f/transformed/bundleLibRuntimeToDirDebug/bundleLibRuntimeToDirDebug_dex/com/sparkfrost/SparkFrostPackage.dex +0 -0
  125. package/android/build/.transforms/54700a025e43a95050ec1055d0701a4f/transformed/bundleLibRuntimeToDirDebug/bundleLibRuntimeToDirDebug_dex/uniffi/spark_frost/Disposable$Companion.dex +0 -0
  126. package/android/build/.transforms/54700a025e43a95050ec1055d0701a4f/transformed/bundleLibRuntimeToDirDebug/bundleLibRuntimeToDirDebug_dex/uniffi/spark_frost/Disposable.dex +0 -0
  127. package/android/build/.transforms/54700a025e43a95050ec1055d0701a4f/transformed/bundleLibRuntimeToDirDebug/bundleLibRuntimeToDirDebug_dex/uniffi/spark_frost/DummyTx$Companion.dex +0 -0
  128. package/android/build/.transforms/54700a025e43a95050ec1055d0701a4f/transformed/bundleLibRuntimeToDirDebug/bundleLibRuntimeToDirDebug_dex/uniffi/spark_frost/DummyTx.dex +0 -0
  129. package/android/build/.transforms/54700a025e43a95050ec1055d0701a4f/transformed/bundleLibRuntimeToDirDebug/bundleLibRuntimeToDirDebug_dex/uniffi/spark_frost/Exception$ErrorHandler.dex +0 -0
  130. package/android/build/.transforms/54700a025e43a95050ec1055d0701a4f/transformed/bundleLibRuntimeToDirDebug/bundleLibRuntimeToDirDebug_dex/uniffi/spark_frost/Exception$Spark.dex +0 -0
  131. package/android/build/.transforms/54700a025e43a95050ec1055d0701a4f/transformed/bundleLibRuntimeToDirDebug/bundleLibRuntimeToDirDebug_dex/uniffi/spark_frost/Exception.dex +0 -0
  132. package/android/build/.transforms/54700a025e43a95050ec1055d0701a4f/transformed/bundleLibRuntimeToDirDebug/bundleLibRuntimeToDirDebug_dex/uniffi/spark_frost/FfiConverter$DefaultImpls.dex +0 -0
  133. package/android/build/.transforms/54700a025e43a95050ec1055d0701a4f/transformed/bundleLibRuntimeToDirDebug/bundleLibRuntimeToDirDebug_dex/uniffi/spark_frost/FfiConverter.dex +0 -0
  134. package/android/build/.transforms/54700a025e43a95050ec1055d0701a4f/transformed/bundleLibRuntimeToDirDebug/bundleLibRuntimeToDirDebug_dex/uniffi/spark_frost/FfiConverterBoolean.dex +0 -0
  135. package/android/build/.transforms/54700a025e43a95050ec1055d0701a4f/transformed/bundleLibRuntimeToDirDebug/bundleLibRuntimeToDirDebug_dex/uniffi/spark_frost/FfiConverterByteArray.dex +0 -0
  136. package/android/build/.transforms/54700a025e43a95050ec1055d0701a4f/transformed/bundleLibRuntimeToDirDebug/bundleLibRuntimeToDirDebug_dex/uniffi/spark_frost/FfiConverterMapStringByteArray.dex +0 -0
  137. package/android/build/.transforms/54700a025e43a95050ec1055d0701a4f/transformed/bundleLibRuntimeToDirDebug/bundleLibRuntimeToDirDebug_dex/uniffi/spark_frost/FfiConverterMapStringTypeSigningCommitment.dex +0 -0
  138. package/android/build/.transforms/54700a025e43a95050ec1055d0701a4f/transformed/bundleLibRuntimeToDirDebug/bundleLibRuntimeToDirDebug_dex/uniffi/spark_frost/FfiConverterOptionalByteArray.dex +0 -0
  139. package/android/build/.transforms/54700a025e43a95050ec1055d0701a4f/transformed/bundleLibRuntimeToDirDebug/bundleLibRuntimeToDirDebug_dex/uniffi/spark_frost/FfiConverterRustBuffer$DefaultImpls.dex +0 -0
  140. package/android/build/.transforms/54700a025e43a95050ec1055d0701a4f/transformed/bundleLibRuntimeToDirDebug/bundleLibRuntimeToDirDebug_dex/uniffi/spark_frost/FfiConverterRustBuffer.dex +0 -0
  141. package/android/build/.transforms/54700a025e43a95050ec1055d0701a4f/transformed/bundleLibRuntimeToDirDebug/bundleLibRuntimeToDirDebug_dex/uniffi/spark_frost/FfiConverterSequenceString.dex +0 -0
  142. package/android/build/.transforms/54700a025e43a95050ec1055d0701a4f/transformed/bundleLibRuntimeToDirDebug/bundleLibRuntimeToDirDebug_dex/uniffi/spark_frost/FfiConverterString.dex +0 -0
  143. package/android/build/.transforms/54700a025e43a95050ec1055d0701a4f/transformed/bundleLibRuntimeToDirDebug/bundleLibRuntimeToDirDebug_dex/uniffi/spark_frost/FfiConverterTypeDummyTx.dex +0 -0
  144. package/android/build/.transforms/54700a025e43a95050ec1055d0701a4f/transformed/bundleLibRuntimeToDirDebug/bundleLibRuntimeToDirDebug_dex/uniffi/spark_frost/FfiConverterTypeError.dex +0 -0
  145. package/android/build/.transforms/54700a025e43a95050ec1055d0701a4f/transformed/bundleLibRuntimeToDirDebug/bundleLibRuntimeToDirDebug_dex/uniffi/spark_frost/FfiConverterTypeKeyPackage.dex +0 -0
  146. package/android/build/.transforms/54700a025e43a95050ec1055d0701a4f/transformed/bundleLibRuntimeToDirDebug/bundleLibRuntimeToDirDebug_dex/uniffi/spark_frost/FfiConverterTypeNonceResult.dex +0 -0
  147. package/android/build/.transforms/54700a025e43a95050ec1055d0701a4f/transformed/bundleLibRuntimeToDirDebug/bundleLibRuntimeToDirDebug_dex/uniffi/spark_frost/FfiConverterTypeSigningCommitment.dex +0 -0
  148. package/android/build/.transforms/54700a025e43a95050ec1055d0701a4f/transformed/bundleLibRuntimeToDirDebug/bundleLibRuntimeToDirDebug_dex/uniffi/spark_frost/FfiConverterTypeSigningNonce.dex +0 -0
  149. package/android/build/.transforms/54700a025e43a95050ec1055d0701a4f/transformed/bundleLibRuntimeToDirDebug/bundleLibRuntimeToDirDebug_dex/uniffi/spark_frost/FfiConverterTypeTransactionResult.dex +0 -0
  150. package/android/build/.transforms/54700a025e43a95050ec1055d0701a4f/transformed/bundleLibRuntimeToDirDebug/bundleLibRuntimeToDirDebug_dex/uniffi/spark_frost/FfiConverterUInt.dex +0 -0
  151. package/android/build/.transforms/54700a025e43a95050ec1055d0701a4f/transformed/bundleLibRuntimeToDirDebug/bundleLibRuntimeToDirDebug_dex/uniffi/spark_frost/FfiConverterULong.dex +0 -0
  152. package/android/build/.transforms/54700a025e43a95050ec1055d0701a4f/transformed/bundleLibRuntimeToDirDebug/bundleLibRuntimeToDirDebug_dex/uniffi/spark_frost/FfiConverterUShort.dex +0 -0
  153. package/android/build/.transforms/54700a025e43a95050ec1055d0701a4f/transformed/bundleLibRuntimeToDirDebug/bundleLibRuntimeToDirDebug_dex/uniffi/spark_frost/ForeignBytes$ByValue.dex +0 -0
  154. package/android/build/.transforms/54700a025e43a95050ec1055d0701a4f/transformed/bundleLibRuntimeToDirDebug/bundleLibRuntimeToDirDebug_dex/uniffi/spark_frost/ForeignBytes.dex +0 -0
  155. package/android/build/.transforms/54700a025e43a95050ec1055d0701a4f/transformed/bundleLibRuntimeToDirDebug/bundleLibRuntimeToDirDebug_dex/uniffi/spark_frost/InternalException.dex +0 -0
  156. package/android/build/.transforms/54700a025e43a95050ec1055d0701a4f/transformed/bundleLibRuntimeToDirDebug/bundleLibRuntimeToDirDebug_dex/uniffi/spark_frost/KeyPackage$Companion.dex +0 -0
  157. package/android/build/.transforms/54700a025e43a95050ec1055d0701a4f/transformed/bundleLibRuntimeToDirDebug/bundleLibRuntimeToDirDebug_dex/uniffi/spark_frost/KeyPackage.dex +0 -0
  158. package/android/build/.transforms/54700a025e43a95050ec1055d0701a4f/transformed/bundleLibRuntimeToDirDebug/bundleLibRuntimeToDirDebug_dex/uniffi/spark_frost/NoPointer.dex +0 -0
  159. package/android/build/.transforms/54700a025e43a95050ec1055d0701a4f/transformed/bundleLibRuntimeToDirDebug/bundleLibRuntimeToDirDebug_dex/uniffi/spark_frost/NonceResult$Companion.dex +0 -0
  160. package/android/build/.transforms/54700a025e43a95050ec1055d0701a4f/transformed/bundleLibRuntimeToDirDebug/bundleLibRuntimeToDirDebug_dex/uniffi/spark_frost/NonceResult.dex +0 -0
  161. package/android/build/.transforms/54700a025e43a95050ec1055d0701a4f/transformed/bundleLibRuntimeToDirDebug/bundleLibRuntimeToDirDebug_dex/uniffi/spark_frost/RustBuffer$ByReference.dex +0 -0
  162. package/android/build/.transforms/54700a025e43a95050ec1055d0701a4f/transformed/bundleLibRuntimeToDirDebug/bundleLibRuntimeToDirDebug_dex/uniffi/spark_frost/RustBuffer$ByValue.dex +0 -0
  163. package/android/build/.transforms/54700a025e43a95050ec1055d0701a4f/transformed/bundleLibRuntimeToDirDebug/bundleLibRuntimeToDirDebug_dex/uniffi/spark_frost/RustBuffer$Companion.dex +0 -0
  164. package/android/build/.transforms/54700a025e43a95050ec1055d0701a4f/transformed/bundleLibRuntimeToDirDebug/bundleLibRuntimeToDirDebug_dex/uniffi/spark_frost/RustBuffer.dex +0 -0
  165. package/android/build/.transforms/54700a025e43a95050ec1055d0701a4f/transformed/bundleLibRuntimeToDirDebug/bundleLibRuntimeToDirDebug_dex/uniffi/spark_frost/RustBufferByReference.dex +0 -0
  166. package/android/build/.transforms/54700a025e43a95050ec1055d0701a4f/transformed/bundleLibRuntimeToDirDebug/bundleLibRuntimeToDirDebug_dex/uniffi/spark_frost/SigningCommitment$Companion.dex +0 -0
  167. package/android/build/.transforms/54700a025e43a95050ec1055d0701a4f/transformed/bundleLibRuntimeToDirDebug/bundleLibRuntimeToDirDebug_dex/uniffi/spark_frost/SigningCommitment.dex +0 -0
  168. package/android/build/.transforms/54700a025e43a95050ec1055d0701a4f/transformed/bundleLibRuntimeToDirDebug/bundleLibRuntimeToDirDebug_dex/uniffi/spark_frost/SigningNonce$Companion.dex +0 -0
  169. package/android/build/.transforms/54700a025e43a95050ec1055d0701a4f/transformed/bundleLibRuntimeToDirDebug/bundleLibRuntimeToDirDebug_dex/uniffi/spark_frost/SigningNonce.dex +0 -0
  170. package/android/build/.transforms/54700a025e43a95050ec1055d0701a4f/transformed/bundleLibRuntimeToDirDebug/bundleLibRuntimeToDirDebug_dex/uniffi/spark_frost/Spark_frostKt.dex +0 -0
  171. package/android/build/.transforms/54700a025e43a95050ec1055d0701a4f/transformed/bundleLibRuntimeToDirDebug/bundleLibRuntimeToDirDebug_dex/uniffi/spark_frost/TransactionResult$Companion.dex +0 -0
  172. package/android/build/.transforms/54700a025e43a95050ec1055d0701a4f/transformed/bundleLibRuntimeToDirDebug/bundleLibRuntimeToDirDebug_dex/uniffi/spark_frost/TransactionResult.dex +0 -0
  173. package/android/build/.transforms/54700a025e43a95050ec1055d0701a4f/transformed/bundleLibRuntimeToDirDebug/bundleLibRuntimeToDirDebug_dex/uniffi/spark_frost/UniffiCallbackInterfaceFree.dex +0 -0
  174. package/android/build/.transforms/54700a025e43a95050ec1055d0701a4f/transformed/bundleLibRuntimeToDirDebug/bundleLibRuntimeToDirDebug_dex/uniffi/spark_frost/UniffiForeignFuture$UniffiByValue.dex +0 -0
  175. package/android/build/.transforms/54700a025e43a95050ec1055d0701a4f/transformed/bundleLibRuntimeToDirDebug/bundleLibRuntimeToDirDebug_dex/uniffi/spark_frost/UniffiForeignFuture.dex +0 -0
  176. package/android/build/.transforms/54700a025e43a95050ec1055d0701a4f/transformed/bundleLibRuntimeToDirDebug/bundleLibRuntimeToDirDebug_dex/uniffi/spark_frost/UniffiForeignFutureCompleteF32.dex +0 -0
  177. package/android/build/.transforms/54700a025e43a95050ec1055d0701a4f/transformed/bundleLibRuntimeToDirDebug/bundleLibRuntimeToDirDebug_dex/uniffi/spark_frost/UniffiForeignFutureCompleteF64.dex +0 -0
  178. package/android/build/.transforms/54700a025e43a95050ec1055d0701a4f/transformed/bundleLibRuntimeToDirDebug/bundleLibRuntimeToDirDebug_dex/uniffi/spark_frost/UniffiForeignFutureCompleteI16.dex +0 -0
  179. package/android/build/.transforms/54700a025e43a95050ec1055d0701a4f/transformed/bundleLibRuntimeToDirDebug/bundleLibRuntimeToDirDebug_dex/uniffi/spark_frost/UniffiForeignFutureCompleteI32.dex +0 -0
  180. package/android/build/.transforms/54700a025e43a95050ec1055d0701a4f/transformed/bundleLibRuntimeToDirDebug/bundleLibRuntimeToDirDebug_dex/uniffi/spark_frost/UniffiForeignFutureCompleteI64.dex +0 -0
  181. package/android/build/.transforms/54700a025e43a95050ec1055d0701a4f/transformed/bundleLibRuntimeToDirDebug/bundleLibRuntimeToDirDebug_dex/uniffi/spark_frost/UniffiForeignFutureCompleteI8.dex +0 -0
  182. package/android/build/.transforms/54700a025e43a95050ec1055d0701a4f/transformed/bundleLibRuntimeToDirDebug/bundleLibRuntimeToDirDebug_dex/uniffi/spark_frost/UniffiForeignFutureCompletePointer.dex +0 -0
  183. package/android/build/.transforms/54700a025e43a95050ec1055d0701a4f/transformed/bundleLibRuntimeToDirDebug/bundleLibRuntimeToDirDebug_dex/uniffi/spark_frost/UniffiForeignFutureCompleteRustBuffer.dex +0 -0
  184. package/android/build/.transforms/54700a025e43a95050ec1055d0701a4f/transformed/bundleLibRuntimeToDirDebug/bundleLibRuntimeToDirDebug_dex/uniffi/spark_frost/UniffiForeignFutureCompleteU16.dex +0 -0
  185. package/android/build/.transforms/54700a025e43a95050ec1055d0701a4f/transformed/bundleLibRuntimeToDirDebug/bundleLibRuntimeToDirDebug_dex/uniffi/spark_frost/UniffiForeignFutureCompleteU32.dex +0 -0
  186. package/android/build/.transforms/54700a025e43a95050ec1055d0701a4f/transformed/bundleLibRuntimeToDirDebug/bundleLibRuntimeToDirDebug_dex/uniffi/spark_frost/UniffiForeignFutureCompleteU64.dex +0 -0
  187. package/android/build/.transforms/54700a025e43a95050ec1055d0701a4f/transformed/bundleLibRuntimeToDirDebug/bundleLibRuntimeToDirDebug_dex/uniffi/spark_frost/UniffiForeignFutureCompleteU8.dex +0 -0
  188. package/android/build/.transforms/54700a025e43a95050ec1055d0701a4f/transformed/bundleLibRuntimeToDirDebug/bundleLibRuntimeToDirDebug_dex/uniffi/spark_frost/UniffiForeignFutureCompleteVoid.dex +0 -0
  189. package/android/build/.transforms/54700a025e43a95050ec1055d0701a4f/transformed/bundleLibRuntimeToDirDebug/bundleLibRuntimeToDirDebug_dex/uniffi/spark_frost/UniffiForeignFutureFree.dex +0 -0
  190. package/android/build/.transforms/54700a025e43a95050ec1055d0701a4f/transformed/bundleLibRuntimeToDirDebug/bundleLibRuntimeToDirDebug_dex/uniffi/spark_frost/UniffiForeignFutureStructF32$UniffiByValue.dex +0 -0
  191. package/android/build/.transforms/54700a025e43a95050ec1055d0701a4f/transformed/bundleLibRuntimeToDirDebug/bundleLibRuntimeToDirDebug_dex/uniffi/spark_frost/UniffiForeignFutureStructF32.dex +0 -0
  192. package/android/build/.transforms/54700a025e43a95050ec1055d0701a4f/transformed/bundleLibRuntimeToDirDebug/bundleLibRuntimeToDirDebug_dex/uniffi/spark_frost/UniffiForeignFutureStructF64$UniffiByValue.dex +0 -0
  193. package/android/build/.transforms/54700a025e43a95050ec1055d0701a4f/transformed/bundleLibRuntimeToDirDebug/bundleLibRuntimeToDirDebug_dex/uniffi/spark_frost/UniffiForeignFutureStructF64.dex +0 -0
  194. package/android/build/.transforms/54700a025e43a95050ec1055d0701a4f/transformed/bundleLibRuntimeToDirDebug/bundleLibRuntimeToDirDebug_dex/uniffi/spark_frost/UniffiForeignFutureStructI16$UniffiByValue.dex +0 -0
  195. package/android/build/.transforms/54700a025e43a95050ec1055d0701a4f/transformed/bundleLibRuntimeToDirDebug/bundleLibRuntimeToDirDebug_dex/uniffi/spark_frost/UniffiForeignFutureStructI16.dex +0 -0
  196. package/android/build/.transforms/54700a025e43a95050ec1055d0701a4f/transformed/bundleLibRuntimeToDirDebug/bundleLibRuntimeToDirDebug_dex/uniffi/spark_frost/UniffiForeignFutureStructI32$UniffiByValue.dex +0 -0
  197. package/android/build/.transforms/54700a025e43a95050ec1055d0701a4f/transformed/bundleLibRuntimeToDirDebug/bundleLibRuntimeToDirDebug_dex/uniffi/spark_frost/UniffiForeignFutureStructI32.dex +0 -0
  198. package/android/build/.transforms/54700a025e43a95050ec1055d0701a4f/transformed/bundleLibRuntimeToDirDebug/bundleLibRuntimeToDirDebug_dex/uniffi/spark_frost/UniffiForeignFutureStructI64$UniffiByValue.dex +0 -0
  199. package/android/build/.transforms/54700a025e43a95050ec1055d0701a4f/transformed/bundleLibRuntimeToDirDebug/bundleLibRuntimeToDirDebug_dex/uniffi/spark_frost/UniffiForeignFutureStructI64.dex +0 -0
  200. package/android/build/.transforms/54700a025e43a95050ec1055d0701a4f/transformed/bundleLibRuntimeToDirDebug/bundleLibRuntimeToDirDebug_dex/uniffi/spark_frost/UniffiForeignFutureStructI8$UniffiByValue.dex +0 -0
  201. package/android/build/.transforms/54700a025e43a95050ec1055d0701a4f/transformed/bundleLibRuntimeToDirDebug/bundleLibRuntimeToDirDebug_dex/uniffi/spark_frost/UniffiForeignFutureStructI8.dex +0 -0
  202. package/android/build/.transforms/54700a025e43a95050ec1055d0701a4f/transformed/bundleLibRuntimeToDirDebug/bundleLibRuntimeToDirDebug_dex/uniffi/spark_frost/UniffiForeignFutureStructPointer$UniffiByValue.dex +0 -0
  203. package/android/build/.transforms/54700a025e43a95050ec1055d0701a4f/transformed/bundleLibRuntimeToDirDebug/bundleLibRuntimeToDirDebug_dex/uniffi/spark_frost/UniffiForeignFutureStructPointer.dex +0 -0
  204. package/android/build/.transforms/54700a025e43a95050ec1055d0701a4f/transformed/bundleLibRuntimeToDirDebug/bundleLibRuntimeToDirDebug_dex/uniffi/spark_frost/UniffiForeignFutureStructRustBuffer$UniffiByValue.dex +0 -0
  205. package/android/build/.transforms/54700a025e43a95050ec1055d0701a4f/transformed/bundleLibRuntimeToDirDebug/bundleLibRuntimeToDirDebug_dex/uniffi/spark_frost/UniffiForeignFutureStructRustBuffer.dex +0 -0
  206. package/android/build/.transforms/54700a025e43a95050ec1055d0701a4f/transformed/bundleLibRuntimeToDirDebug/bundleLibRuntimeToDirDebug_dex/uniffi/spark_frost/UniffiForeignFutureStructU16$UniffiByValue.dex +0 -0
  207. package/android/build/.transforms/54700a025e43a95050ec1055d0701a4f/transformed/bundleLibRuntimeToDirDebug/bundleLibRuntimeToDirDebug_dex/uniffi/spark_frost/UniffiForeignFutureStructU16.dex +0 -0
  208. package/android/build/.transforms/54700a025e43a95050ec1055d0701a4f/transformed/bundleLibRuntimeToDirDebug/bundleLibRuntimeToDirDebug_dex/uniffi/spark_frost/UniffiForeignFutureStructU32$UniffiByValue.dex +0 -0
  209. package/android/build/.transforms/54700a025e43a95050ec1055d0701a4f/transformed/bundleLibRuntimeToDirDebug/bundleLibRuntimeToDirDebug_dex/uniffi/spark_frost/UniffiForeignFutureStructU32.dex +0 -0
  210. package/android/build/.transforms/54700a025e43a95050ec1055d0701a4f/transformed/bundleLibRuntimeToDirDebug/bundleLibRuntimeToDirDebug_dex/uniffi/spark_frost/UniffiForeignFutureStructU64$UniffiByValue.dex +0 -0
  211. package/android/build/.transforms/54700a025e43a95050ec1055d0701a4f/transformed/bundleLibRuntimeToDirDebug/bundleLibRuntimeToDirDebug_dex/uniffi/spark_frost/UniffiForeignFutureStructU64.dex +0 -0
  212. package/android/build/.transforms/54700a025e43a95050ec1055d0701a4f/transformed/bundleLibRuntimeToDirDebug/bundleLibRuntimeToDirDebug_dex/uniffi/spark_frost/UniffiForeignFutureStructU8$UniffiByValue.dex +0 -0
  213. package/android/build/.transforms/54700a025e43a95050ec1055d0701a4f/transformed/bundleLibRuntimeToDirDebug/bundleLibRuntimeToDirDebug_dex/uniffi/spark_frost/UniffiForeignFutureStructU8.dex +0 -0
  214. package/android/build/.transforms/54700a025e43a95050ec1055d0701a4f/transformed/bundleLibRuntimeToDirDebug/bundleLibRuntimeToDirDebug_dex/uniffi/spark_frost/UniffiForeignFutureStructVoid$UniffiByValue.dex +0 -0
  215. package/android/build/.transforms/54700a025e43a95050ec1055d0701a4f/transformed/bundleLibRuntimeToDirDebug/bundleLibRuntimeToDirDebug_dex/uniffi/spark_frost/UniffiForeignFutureStructVoid.dex +0 -0
  216. package/android/build/.transforms/54700a025e43a95050ec1055d0701a4f/transformed/bundleLibRuntimeToDirDebug/bundleLibRuntimeToDirDebug_dex/uniffi/spark_frost/UniffiHandleMap.dex +0 -0
  217. package/android/build/.transforms/54700a025e43a95050ec1055d0701a4f/transformed/bundleLibRuntimeToDirDebug/bundleLibRuntimeToDirDebug_dex/uniffi/spark_frost/UniffiLib$Companion.dex +0 -0
  218. package/android/build/.transforms/54700a025e43a95050ec1055d0701a4f/transformed/bundleLibRuntimeToDirDebug/bundleLibRuntimeToDirDebug_dex/uniffi/spark_frost/UniffiLib.dex +0 -0
  219. package/android/build/.transforms/54700a025e43a95050ec1055d0701a4f/transformed/bundleLibRuntimeToDirDebug/bundleLibRuntimeToDirDebug_dex/uniffi/spark_frost/UniffiNullRustCallStatusErrorHandler.dex +0 -0
  220. package/android/build/.transforms/54700a025e43a95050ec1055d0701a4f/transformed/bundleLibRuntimeToDirDebug/bundleLibRuntimeToDirDebug_dex/uniffi/spark_frost/UniffiRustCallStatus$ByValue.dex +0 -0
  221. package/android/build/.transforms/54700a025e43a95050ec1055d0701a4f/transformed/bundleLibRuntimeToDirDebug/bundleLibRuntimeToDirDebug_dex/uniffi/spark_frost/UniffiRustCallStatus$Companion.dex +0 -0
  222. package/android/build/.transforms/54700a025e43a95050ec1055d0701a4f/transformed/bundleLibRuntimeToDirDebug/bundleLibRuntimeToDirDebug_dex/uniffi/spark_frost/UniffiRustCallStatus.dex +0 -0
  223. package/android/build/.transforms/54700a025e43a95050ec1055d0701a4f/transformed/bundleLibRuntimeToDirDebug/bundleLibRuntimeToDirDebug_dex/uniffi/spark_frost/UniffiRustCallStatusErrorHandler.dex +0 -0
  224. package/android/build/.transforms/54700a025e43a95050ec1055d0701a4f/transformed/bundleLibRuntimeToDirDebug/bundleLibRuntimeToDirDebug_dex/uniffi/spark_frost/UniffiRustFutureContinuationCallback.dex +0 -0
  225. package/android/build/.transforms/54700a025e43a95050ec1055d0701a4f/transformed/bundleLibRuntimeToDirDebug/desugar_graph.bin +0 -0
  226. package/android/build/.transforms/e8692d599b9d4e384b089536c21e4db7/results.bin +0 -1
  227. package/android/build/.transforms/e8692d599b9d4e384b089536c21e4db7/transformed/bundleLibRuntimeToDirDebug/bundleLibRuntimeToDirDebug_dex/com/sparkfrost/BuildConfig.dex +0 -0
  228. package/android/build/.transforms/e8692d599b9d4e384b089536c21e4db7/transformed/bundleLibRuntimeToDirDebug/bundleLibRuntimeToDirDebug_dex/com/sparkfrost/SparkFrostModule$Companion.dex +0 -0
  229. package/android/build/.transforms/e8692d599b9d4e384b089536c21e4db7/transformed/bundleLibRuntimeToDirDebug/bundleLibRuntimeToDirDebug_dex/com/sparkfrost/SparkFrostModule.dex +0 -0
  230. package/android/build/.transforms/e8692d599b9d4e384b089536c21e4db7/transformed/bundleLibRuntimeToDirDebug/bundleLibRuntimeToDirDebug_dex/com/sparkfrost/SparkFrostPackage.dex +0 -0
  231. package/android/build/.transforms/e8692d599b9d4e384b089536c21e4db7/transformed/bundleLibRuntimeToDirDebug/bundleLibRuntimeToDirDebug_dex/uniffi/spark_frost/Disposable$Companion.dex +0 -0
  232. package/android/build/.transforms/e8692d599b9d4e384b089536c21e4db7/transformed/bundleLibRuntimeToDirDebug/bundleLibRuntimeToDirDebug_dex/uniffi/spark_frost/Disposable.dex +0 -0
  233. package/android/build/.transforms/e8692d599b9d4e384b089536c21e4db7/transformed/bundleLibRuntimeToDirDebug/bundleLibRuntimeToDirDebug_dex/uniffi/spark_frost/DummyTx$Companion.dex +0 -0
  234. package/android/build/.transforms/e8692d599b9d4e384b089536c21e4db7/transformed/bundleLibRuntimeToDirDebug/bundleLibRuntimeToDirDebug_dex/uniffi/spark_frost/DummyTx.dex +0 -0
  235. package/android/build/.transforms/e8692d599b9d4e384b089536c21e4db7/transformed/bundleLibRuntimeToDirDebug/bundleLibRuntimeToDirDebug_dex/uniffi/spark_frost/Exception$ErrorHandler.dex +0 -0
  236. package/android/build/.transforms/e8692d599b9d4e384b089536c21e4db7/transformed/bundleLibRuntimeToDirDebug/bundleLibRuntimeToDirDebug_dex/uniffi/spark_frost/Exception$Spark.dex +0 -0
  237. package/android/build/.transforms/e8692d599b9d4e384b089536c21e4db7/transformed/bundleLibRuntimeToDirDebug/bundleLibRuntimeToDirDebug_dex/uniffi/spark_frost/Exception.dex +0 -0
  238. package/android/build/.transforms/e8692d599b9d4e384b089536c21e4db7/transformed/bundleLibRuntimeToDirDebug/bundleLibRuntimeToDirDebug_dex/uniffi/spark_frost/FfiConverter$DefaultImpls.dex +0 -0
  239. package/android/build/.transforms/e8692d599b9d4e384b089536c21e4db7/transformed/bundleLibRuntimeToDirDebug/bundleLibRuntimeToDirDebug_dex/uniffi/spark_frost/FfiConverter.dex +0 -0
  240. package/android/build/.transforms/e8692d599b9d4e384b089536c21e4db7/transformed/bundleLibRuntimeToDirDebug/bundleLibRuntimeToDirDebug_dex/uniffi/spark_frost/FfiConverterBoolean.dex +0 -0
  241. package/android/build/.transforms/e8692d599b9d4e384b089536c21e4db7/transformed/bundleLibRuntimeToDirDebug/bundleLibRuntimeToDirDebug_dex/uniffi/spark_frost/FfiConverterByteArray.dex +0 -0
  242. package/android/build/.transforms/e8692d599b9d4e384b089536c21e4db7/transformed/bundleLibRuntimeToDirDebug/bundleLibRuntimeToDirDebug_dex/uniffi/spark_frost/FfiConverterMapStringByteArray.dex +0 -0
  243. package/android/build/.transforms/e8692d599b9d4e384b089536c21e4db7/transformed/bundleLibRuntimeToDirDebug/bundleLibRuntimeToDirDebug_dex/uniffi/spark_frost/FfiConverterMapStringTypeSigningCommitment.dex +0 -0
  244. package/android/build/.transforms/e8692d599b9d4e384b089536c21e4db7/transformed/bundleLibRuntimeToDirDebug/bundleLibRuntimeToDirDebug_dex/uniffi/spark_frost/FfiConverterOptionalByteArray.dex +0 -0
  245. package/android/build/.transforms/e8692d599b9d4e384b089536c21e4db7/transformed/bundleLibRuntimeToDirDebug/bundleLibRuntimeToDirDebug_dex/uniffi/spark_frost/FfiConverterRustBuffer$DefaultImpls.dex +0 -0
  246. package/android/build/.transforms/e8692d599b9d4e384b089536c21e4db7/transformed/bundleLibRuntimeToDirDebug/bundleLibRuntimeToDirDebug_dex/uniffi/spark_frost/FfiConverterRustBuffer.dex +0 -0
  247. package/android/build/.transforms/e8692d599b9d4e384b089536c21e4db7/transformed/bundleLibRuntimeToDirDebug/bundleLibRuntimeToDirDebug_dex/uniffi/spark_frost/FfiConverterSequenceString.dex +0 -0
  248. package/android/build/.transforms/e8692d599b9d4e384b089536c21e4db7/transformed/bundleLibRuntimeToDirDebug/bundleLibRuntimeToDirDebug_dex/uniffi/spark_frost/FfiConverterString.dex +0 -0
  249. package/android/build/.transforms/e8692d599b9d4e384b089536c21e4db7/transformed/bundleLibRuntimeToDirDebug/bundleLibRuntimeToDirDebug_dex/uniffi/spark_frost/FfiConverterTypeDummyTx.dex +0 -0
  250. package/android/build/.transforms/e8692d599b9d4e384b089536c21e4db7/transformed/bundleLibRuntimeToDirDebug/bundleLibRuntimeToDirDebug_dex/uniffi/spark_frost/FfiConverterTypeError.dex +0 -0
  251. package/android/build/.transforms/e8692d599b9d4e384b089536c21e4db7/transformed/bundleLibRuntimeToDirDebug/bundleLibRuntimeToDirDebug_dex/uniffi/spark_frost/FfiConverterTypeKeyPackage.dex +0 -0
  252. package/android/build/.transforms/e8692d599b9d4e384b089536c21e4db7/transformed/bundleLibRuntimeToDirDebug/bundleLibRuntimeToDirDebug_dex/uniffi/spark_frost/FfiConverterTypeNonceResult.dex +0 -0
  253. package/android/build/.transforms/e8692d599b9d4e384b089536c21e4db7/transformed/bundleLibRuntimeToDirDebug/bundleLibRuntimeToDirDebug_dex/uniffi/spark_frost/FfiConverterTypeSigningCommitment.dex +0 -0
  254. package/android/build/.transforms/e8692d599b9d4e384b089536c21e4db7/transformed/bundleLibRuntimeToDirDebug/bundleLibRuntimeToDirDebug_dex/uniffi/spark_frost/FfiConverterTypeSigningNonce.dex +0 -0
  255. package/android/build/.transforms/e8692d599b9d4e384b089536c21e4db7/transformed/bundleLibRuntimeToDirDebug/bundleLibRuntimeToDirDebug_dex/uniffi/spark_frost/FfiConverterTypeTransactionResult.dex +0 -0
  256. package/android/build/.transforms/e8692d599b9d4e384b089536c21e4db7/transformed/bundleLibRuntimeToDirDebug/bundleLibRuntimeToDirDebug_dex/uniffi/spark_frost/FfiConverterUInt.dex +0 -0
  257. package/android/build/.transforms/e8692d599b9d4e384b089536c21e4db7/transformed/bundleLibRuntimeToDirDebug/bundleLibRuntimeToDirDebug_dex/uniffi/spark_frost/FfiConverterULong.dex +0 -0
  258. package/android/build/.transforms/e8692d599b9d4e384b089536c21e4db7/transformed/bundleLibRuntimeToDirDebug/bundleLibRuntimeToDirDebug_dex/uniffi/spark_frost/FfiConverterUShort.dex +0 -0
  259. package/android/build/.transforms/e8692d599b9d4e384b089536c21e4db7/transformed/bundleLibRuntimeToDirDebug/bundleLibRuntimeToDirDebug_dex/uniffi/spark_frost/ForeignBytes$ByValue.dex +0 -0
  260. package/android/build/.transforms/e8692d599b9d4e384b089536c21e4db7/transformed/bundleLibRuntimeToDirDebug/bundleLibRuntimeToDirDebug_dex/uniffi/spark_frost/ForeignBytes.dex +0 -0
  261. package/android/build/.transforms/e8692d599b9d4e384b089536c21e4db7/transformed/bundleLibRuntimeToDirDebug/bundleLibRuntimeToDirDebug_dex/uniffi/spark_frost/InternalException.dex +0 -0
  262. package/android/build/.transforms/e8692d599b9d4e384b089536c21e4db7/transformed/bundleLibRuntimeToDirDebug/bundleLibRuntimeToDirDebug_dex/uniffi/spark_frost/KeyPackage$Companion.dex +0 -0
  263. package/android/build/.transforms/e8692d599b9d4e384b089536c21e4db7/transformed/bundleLibRuntimeToDirDebug/bundleLibRuntimeToDirDebug_dex/uniffi/spark_frost/KeyPackage.dex +0 -0
  264. package/android/build/.transforms/e8692d599b9d4e384b089536c21e4db7/transformed/bundleLibRuntimeToDirDebug/bundleLibRuntimeToDirDebug_dex/uniffi/spark_frost/NoPointer.dex +0 -0
  265. package/android/build/.transforms/e8692d599b9d4e384b089536c21e4db7/transformed/bundleLibRuntimeToDirDebug/bundleLibRuntimeToDirDebug_dex/uniffi/spark_frost/NonceResult$Companion.dex +0 -0
  266. package/android/build/.transforms/e8692d599b9d4e384b089536c21e4db7/transformed/bundleLibRuntimeToDirDebug/bundleLibRuntimeToDirDebug_dex/uniffi/spark_frost/NonceResult.dex +0 -0
  267. package/android/build/.transforms/e8692d599b9d4e384b089536c21e4db7/transformed/bundleLibRuntimeToDirDebug/bundleLibRuntimeToDirDebug_dex/uniffi/spark_frost/RustBuffer$ByReference.dex +0 -0
  268. package/android/build/.transforms/e8692d599b9d4e384b089536c21e4db7/transformed/bundleLibRuntimeToDirDebug/bundleLibRuntimeToDirDebug_dex/uniffi/spark_frost/RustBuffer$ByValue.dex +0 -0
  269. package/android/build/.transforms/e8692d599b9d4e384b089536c21e4db7/transformed/bundleLibRuntimeToDirDebug/bundleLibRuntimeToDirDebug_dex/uniffi/spark_frost/RustBuffer$Companion.dex +0 -0
  270. package/android/build/.transforms/e8692d599b9d4e384b089536c21e4db7/transformed/bundleLibRuntimeToDirDebug/bundleLibRuntimeToDirDebug_dex/uniffi/spark_frost/RustBuffer.dex +0 -0
  271. package/android/build/.transforms/e8692d599b9d4e384b089536c21e4db7/transformed/bundleLibRuntimeToDirDebug/bundleLibRuntimeToDirDebug_dex/uniffi/spark_frost/RustBufferByReference.dex +0 -0
  272. package/android/build/.transforms/e8692d599b9d4e384b089536c21e4db7/transformed/bundleLibRuntimeToDirDebug/bundleLibRuntimeToDirDebug_dex/uniffi/spark_frost/SigningCommitment$Companion.dex +0 -0
  273. package/android/build/.transforms/e8692d599b9d4e384b089536c21e4db7/transformed/bundleLibRuntimeToDirDebug/bundleLibRuntimeToDirDebug_dex/uniffi/spark_frost/SigningCommitment.dex +0 -0
  274. package/android/build/.transforms/e8692d599b9d4e384b089536c21e4db7/transformed/bundleLibRuntimeToDirDebug/bundleLibRuntimeToDirDebug_dex/uniffi/spark_frost/SigningNonce$Companion.dex +0 -0
  275. package/android/build/.transforms/e8692d599b9d4e384b089536c21e4db7/transformed/bundleLibRuntimeToDirDebug/bundleLibRuntimeToDirDebug_dex/uniffi/spark_frost/SigningNonce.dex +0 -0
  276. package/android/build/.transforms/e8692d599b9d4e384b089536c21e4db7/transformed/bundleLibRuntimeToDirDebug/bundleLibRuntimeToDirDebug_dex/uniffi/spark_frost/Spark_frostKt.dex +0 -0
  277. package/android/build/.transforms/e8692d599b9d4e384b089536c21e4db7/transformed/bundleLibRuntimeToDirDebug/bundleLibRuntimeToDirDebug_dex/uniffi/spark_frost/TransactionResult$Companion.dex +0 -0
  278. package/android/build/.transforms/e8692d599b9d4e384b089536c21e4db7/transformed/bundleLibRuntimeToDirDebug/bundleLibRuntimeToDirDebug_dex/uniffi/spark_frost/TransactionResult.dex +0 -0
  279. package/android/build/.transforms/e8692d599b9d4e384b089536c21e4db7/transformed/bundleLibRuntimeToDirDebug/bundleLibRuntimeToDirDebug_dex/uniffi/spark_frost/UniffiCallbackInterfaceFree.dex +0 -0
  280. package/android/build/.transforms/e8692d599b9d4e384b089536c21e4db7/transformed/bundleLibRuntimeToDirDebug/bundleLibRuntimeToDirDebug_dex/uniffi/spark_frost/UniffiForeignFuture$UniffiByValue.dex +0 -0
  281. package/android/build/.transforms/e8692d599b9d4e384b089536c21e4db7/transformed/bundleLibRuntimeToDirDebug/bundleLibRuntimeToDirDebug_dex/uniffi/spark_frost/UniffiForeignFuture.dex +0 -0
  282. package/android/build/.transforms/e8692d599b9d4e384b089536c21e4db7/transformed/bundleLibRuntimeToDirDebug/bundleLibRuntimeToDirDebug_dex/uniffi/spark_frost/UniffiForeignFutureCompleteF32.dex +0 -0
  283. package/android/build/.transforms/e8692d599b9d4e384b089536c21e4db7/transformed/bundleLibRuntimeToDirDebug/bundleLibRuntimeToDirDebug_dex/uniffi/spark_frost/UniffiForeignFutureCompleteF64.dex +0 -0
  284. package/android/build/.transforms/e8692d599b9d4e384b089536c21e4db7/transformed/bundleLibRuntimeToDirDebug/bundleLibRuntimeToDirDebug_dex/uniffi/spark_frost/UniffiForeignFutureCompleteI16.dex +0 -0
  285. package/android/build/.transforms/e8692d599b9d4e384b089536c21e4db7/transformed/bundleLibRuntimeToDirDebug/bundleLibRuntimeToDirDebug_dex/uniffi/spark_frost/UniffiForeignFutureCompleteI32.dex +0 -0
  286. package/android/build/.transforms/e8692d599b9d4e384b089536c21e4db7/transformed/bundleLibRuntimeToDirDebug/bundleLibRuntimeToDirDebug_dex/uniffi/spark_frost/UniffiForeignFutureCompleteI64.dex +0 -0
  287. package/android/build/.transforms/e8692d599b9d4e384b089536c21e4db7/transformed/bundleLibRuntimeToDirDebug/bundleLibRuntimeToDirDebug_dex/uniffi/spark_frost/UniffiForeignFutureCompleteI8.dex +0 -0
  288. package/android/build/.transforms/e8692d599b9d4e384b089536c21e4db7/transformed/bundleLibRuntimeToDirDebug/bundleLibRuntimeToDirDebug_dex/uniffi/spark_frost/UniffiForeignFutureCompletePointer.dex +0 -0
  289. package/android/build/.transforms/e8692d599b9d4e384b089536c21e4db7/transformed/bundleLibRuntimeToDirDebug/bundleLibRuntimeToDirDebug_dex/uniffi/spark_frost/UniffiForeignFutureCompleteRustBuffer.dex +0 -0
  290. package/android/build/.transforms/e8692d599b9d4e384b089536c21e4db7/transformed/bundleLibRuntimeToDirDebug/bundleLibRuntimeToDirDebug_dex/uniffi/spark_frost/UniffiForeignFutureCompleteU16.dex +0 -0
  291. package/android/build/.transforms/e8692d599b9d4e384b089536c21e4db7/transformed/bundleLibRuntimeToDirDebug/bundleLibRuntimeToDirDebug_dex/uniffi/spark_frost/UniffiForeignFutureCompleteU32.dex +0 -0
  292. package/android/build/.transforms/e8692d599b9d4e384b089536c21e4db7/transformed/bundleLibRuntimeToDirDebug/bundleLibRuntimeToDirDebug_dex/uniffi/spark_frost/UniffiForeignFutureCompleteU64.dex +0 -0
  293. package/android/build/.transforms/e8692d599b9d4e384b089536c21e4db7/transformed/bundleLibRuntimeToDirDebug/bundleLibRuntimeToDirDebug_dex/uniffi/spark_frost/UniffiForeignFutureCompleteU8.dex +0 -0
  294. package/android/build/.transforms/e8692d599b9d4e384b089536c21e4db7/transformed/bundleLibRuntimeToDirDebug/bundleLibRuntimeToDirDebug_dex/uniffi/spark_frost/UniffiForeignFutureCompleteVoid.dex +0 -0
  295. package/android/build/.transforms/e8692d599b9d4e384b089536c21e4db7/transformed/bundleLibRuntimeToDirDebug/bundleLibRuntimeToDirDebug_dex/uniffi/spark_frost/UniffiForeignFutureFree.dex +0 -0
  296. package/android/build/.transforms/e8692d599b9d4e384b089536c21e4db7/transformed/bundleLibRuntimeToDirDebug/bundleLibRuntimeToDirDebug_dex/uniffi/spark_frost/UniffiForeignFutureStructF32$UniffiByValue.dex +0 -0
  297. package/android/build/.transforms/e8692d599b9d4e384b089536c21e4db7/transformed/bundleLibRuntimeToDirDebug/bundleLibRuntimeToDirDebug_dex/uniffi/spark_frost/UniffiForeignFutureStructF32.dex +0 -0
  298. package/android/build/.transforms/e8692d599b9d4e384b089536c21e4db7/transformed/bundleLibRuntimeToDirDebug/bundleLibRuntimeToDirDebug_dex/uniffi/spark_frost/UniffiForeignFutureStructF64$UniffiByValue.dex +0 -0
  299. package/android/build/.transforms/e8692d599b9d4e384b089536c21e4db7/transformed/bundleLibRuntimeToDirDebug/bundleLibRuntimeToDirDebug_dex/uniffi/spark_frost/UniffiForeignFutureStructF64.dex +0 -0
  300. package/android/build/.transforms/e8692d599b9d4e384b089536c21e4db7/transformed/bundleLibRuntimeToDirDebug/bundleLibRuntimeToDirDebug_dex/uniffi/spark_frost/UniffiForeignFutureStructI16$UniffiByValue.dex +0 -0
  301. package/android/build/.transforms/e8692d599b9d4e384b089536c21e4db7/transformed/bundleLibRuntimeToDirDebug/bundleLibRuntimeToDirDebug_dex/uniffi/spark_frost/UniffiForeignFutureStructI16.dex +0 -0
  302. package/android/build/.transforms/e8692d599b9d4e384b089536c21e4db7/transformed/bundleLibRuntimeToDirDebug/bundleLibRuntimeToDirDebug_dex/uniffi/spark_frost/UniffiForeignFutureStructI32$UniffiByValue.dex +0 -0
  303. package/android/build/.transforms/e8692d599b9d4e384b089536c21e4db7/transformed/bundleLibRuntimeToDirDebug/bundleLibRuntimeToDirDebug_dex/uniffi/spark_frost/UniffiForeignFutureStructI32.dex +0 -0
  304. package/android/build/.transforms/e8692d599b9d4e384b089536c21e4db7/transformed/bundleLibRuntimeToDirDebug/bundleLibRuntimeToDirDebug_dex/uniffi/spark_frost/UniffiForeignFutureStructI64$UniffiByValue.dex +0 -0
  305. package/android/build/.transforms/e8692d599b9d4e384b089536c21e4db7/transformed/bundleLibRuntimeToDirDebug/bundleLibRuntimeToDirDebug_dex/uniffi/spark_frost/UniffiForeignFutureStructI64.dex +0 -0
  306. package/android/build/.transforms/e8692d599b9d4e384b089536c21e4db7/transformed/bundleLibRuntimeToDirDebug/bundleLibRuntimeToDirDebug_dex/uniffi/spark_frost/UniffiForeignFutureStructI8$UniffiByValue.dex +0 -0
  307. package/android/build/.transforms/e8692d599b9d4e384b089536c21e4db7/transformed/bundleLibRuntimeToDirDebug/bundleLibRuntimeToDirDebug_dex/uniffi/spark_frost/UniffiForeignFutureStructI8.dex +0 -0
  308. package/android/build/.transforms/e8692d599b9d4e384b089536c21e4db7/transformed/bundleLibRuntimeToDirDebug/bundleLibRuntimeToDirDebug_dex/uniffi/spark_frost/UniffiForeignFutureStructPointer$UniffiByValue.dex +0 -0
  309. package/android/build/.transforms/e8692d599b9d4e384b089536c21e4db7/transformed/bundleLibRuntimeToDirDebug/bundleLibRuntimeToDirDebug_dex/uniffi/spark_frost/UniffiForeignFutureStructPointer.dex +0 -0
  310. package/android/build/.transforms/e8692d599b9d4e384b089536c21e4db7/transformed/bundleLibRuntimeToDirDebug/bundleLibRuntimeToDirDebug_dex/uniffi/spark_frost/UniffiForeignFutureStructRustBuffer$UniffiByValue.dex +0 -0
  311. package/android/build/.transforms/e8692d599b9d4e384b089536c21e4db7/transformed/bundleLibRuntimeToDirDebug/bundleLibRuntimeToDirDebug_dex/uniffi/spark_frost/UniffiForeignFutureStructRustBuffer.dex +0 -0
  312. package/android/build/.transforms/e8692d599b9d4e384b089536c21e4db7/transformed/bundleLibRuntimeToDirDebug/bundleLibRuntimeToDirDebug_dex/uniffi/spark_frost/UniffiForeignFutureStructU16$UniffiByValue.dex +0 -0
  313. package/android/build/.transforms/e8692d599b9d4e384b089536c21e4db7/transformed/bundleLibRuntimeToDirDebug/bundleLibRuntimeToDirDebug_dex/uniffi/spark_frost/UniffiForeignFutureStructU16.dex +0 -0
  314. package/android/build/.transforms/e8692d599b9d4e384b089536c21e4db7/transformed/bundleLibRuntimeToDirDebug/bundleLibRuntimeToDirDebug_dex/uniffi/spark_frost/UniffiForeignFutureStructU32$UniffiByValue.dex +0 -0
  315. package/android/build/.transforms/e8692d599b9d4e384b089536c21e4db7/transformed/bundleLibRuntimeToDirDebug/bundleLibRuntimeToDirDebug_dex/uniffi/spark_frost/UniffiForeignFutureStructU32.dex +0 -0
  316. package/android/build/.transforms/e8692d599b9d4e384b089536c21e4db7/transformed/bundleLibRuntimeToDirDebug/bundleLibRuntimeToDirDebug_dex/uniffi/spark_frost/UniffiForeignFutureStructU64$UniffiByValue.dex +0 -0
  317. package/android/build/.transforms/e8692d599b9d4e384b089536c21e4db7/transformed/bundleLibRuntimeToDirDebug/bundleLibRuntimeToDirDebug_dex/uniffi/spark_frost/UniffiForeignFutureStructU64.dex +0 -0
  318. package/android/build/.transforms/e8692d599b9d4e384b089536c21e4db7/transformed/bundleLibRuntimeToDirDebug/bundleLibRuntimeToDirDebug_dex/uniffi/spark_frost/UniffiForeignFutureStructU8$UniffiByValue.dex +0 -0
  319. package/android/build/.transforms/e8692d599b9d4e384b089536c21e4db7/transformed/bundleLibRuntimeToDirDebug/bundleLibRuntimeToDirDebug_dex/uniffi/spark_frost/UniffiForeignFutureStructU8.dex +0 -0
  320. package/android/build/.transforms/e8692d599b9d4e384b089536c21e4db7/transformed/bundleLibRuntimeToDirDebug/bundleLibRuntimeToDirDebug_dex/uniffi/spark_frost/UniffiForeignFutureStructVoid$UniffiByValue.dex +0 -0
  321. package/android/build/.transforms/e8692d599b9d4e384b089536c21e4db7/transformed/bundleLibRuntimeToDirDebug/bundleLibRuntimeToDirDebug_dex/uniffi/spark_frost/UniffiForeignFutureStructVoid.dex +0 -0
  322. package/android/build/.transforms/e8692d599b9d4e384b089536c21e4db7/transformed/bundleLibRuntimeToDirDebug/bundleLibRuntimeToDirDebug_dex/uniffi/spark_frost/UniffiHandleMap.dex +0 -0
  323. package/android/build/.transforms/e8692d599b9d4e384b089536c21e4db7/transformed/bundleLibRuntimeToDirDebug/bundleLibRuntimeToDirDebug_dex/uniffi/spark_frost/UniffiLib$Companion.dex +0 -0
  324. package/android/build/.transforms/e8692d599b9d4e384b089536c21e4db7/transformed/bundleLibRuntimeToDirDebug/bundleLibRuntimeToDirDebug_dex/uniffi/spark_frost/UniffiLib.dex +0 -0
  325. package/android/build/.transforms/e8692d599b9d4e384b089536c21e4db7/transformed/bundleLibRuntimeToDirDebug/bundleLibRuntimeToDirDebug_dex/uniffi/spark_frost/UniffiNullRustCallStatusErrorHandler.dex +0 -0
  326. package/android/build/.transforms/e8692d599b9d4e384b089536c21e4db7/transformed/bundleLibRuntimeToDirDebug/bundleLibRuntimeToDirDebug_dex/uniffi/spark_frost/UniffiRustCallStatus$ByValue.dex +0 -0
  327. package/android/build/.transforms/e8692d599b9d4e384b089536c21e4db7/transformed/bundleLibRuntimeToDirDebug/bundleLibRuntimeToDirDebug_dex/uniffi/spark_frost/UniffiRustCallStatus$Companion.dex +0 -0
  328. package/android/build/.transforms/e8692d599b9d4e384b089536c21e4db7/transformed/bundleLibRuntimeToDirDebug/bundleLibRuntimeToDirDebug_dex/uniffi/spark_frost/UniffiRustCallStatus.dex +0 -0
  329. package/android/build/.transforms/e8692d599b9d4e384b089536c21e4db7/transformed/bundleLibRuntimeToDirDebug/bundleLibRuntimeToDirDebug_dex/uniffi/spark_frost/UniffiRustCallStatusErrorHandler.dex +0 -0
  330. package/android/build/.transforms/e8692d599b9d4e384b089536c21e4db7/transformed/bundleLibRuntimeToDirDebug/bundleLibRuntimeToDirDebug_dex/uniffi/spark_frost/UniffiRustFutureContinuationCallback.dex +0 -0
  331. package/android/build/.transforms/e8692d599b9d4e384b089536c21e4db7/transformed/bundleLibRuntimeToDirDebug/desugar_graph.bin +0 -0
  332. package/android/build/generated/source/buildConfig/debug/com/sparkfrost/BuildConfig.java +0 -10
  333. package/android/build/intermediates/aapt_friendly_merged_manifests/debug/processDebugManifest/aapt/AndroidManifest.xml +0 -7
  334. package/android/build/intermediates/aapt_friendly_merged_manifests/debug/processDebugManifest/aapt/output-metadata.json +0 -18
  335. package/android/build/intermediates/aar_metadata/debug/writeDebugAarMetadata/aar-metadata.properties +0 -6
  336. package/android/build/intermediates/annotation_processor_list/debug/javaPreCompileDebug/annotationProcessors.json +0 -1
  337. package/android/build/intermediates/compile_library_classes_jar/debug/bundleLibCompileToJarDebug/classes.jar +0 -0
  338. package/android/build/intermediates/compile_r_class_jar/debug/generateDebugRFile/R.jar +0 -0
  339. package/android/build/intermediates/incremental/debug/packageDebugResources/compile-file-map.properties +0 -1
  340. package/android/build/intermediates/incremental/debug/packageDebugResources/merger.xml +0 -2
  341. package/android/build/intermediates/incremental/mergeDebugJniLibFolders/merger.xml +0 -2
  342. package/android/build/intermediates/incremental/mergeDebugShaders/merger.xml +0 -2
  343. package/android/build/intermediates/incremental/packageDebugAssets/merger.xml +0 -2
  344. package/android/build/intermediates/java_res/debug/processDebugJavaRes/out/META-INF/buildonspark_spark-sdk_debug.kotlin_module +0 -0
  345. package/android/build/intermediates/javac/debug/compileDebugJavaWithJavac/classes/com/sparkfrost/BuildConfig.class +0 -0
  346. package/android/build/intermediates/library_jni/debug/copyDebugJniLibsProjectOnly/jni/arm64-v8a/libspark_frost.so +0 -0
  347. package/android/build/intermediates/library_jni/debug/copyDebugJniLibsProjectOnly/jni/arm64-v8a/libuniffi_spark_frost.so +0 -0
  348. package/android/build/intermediates/library_jni/debug/copyDebugJniLibsProjectOnly/jni/armeabi-v7a/libspark_frost.so +0 -0
  349. package/android/build/intermediates/library_jni/debug/copyDebugJniLibsProjectOnly/jni/armeabi-v7a/libuniffi_spark_frost.so +0 -0
  350. package/android/build/intermediates/library_jni/debug/copyDebugJniLibsProjectOnly/jni/x86/libspark_frost.so +0 -0
  351. package/android/build/intermediates/library_jni/debug/copyDebugJniLibsProjectOnly/jni/x86/libuniffi_spark_frost.so +0 -0
  352. package/android/build/intermediates/library_jni/debug/copyDebugJniLibsProjectOnly/jni/x86_64/libspark_frost.so +0 -0
  353. package/android/build/intermediates/library_jni/debug/copyDebugJniLibsProjectOnly/jni/x86_64/libuniffi_spark_frost.so +0 -0
  354. package/android/build/intermediates/local_only_symbol_list/debug/parseDebugLocalResources/R-def.txt +0 -2
  355. package/android/build/intermediates/manifest_merge_blame_file/debug/processDebugManifest/manifest-merger-blame-debug-report.txt +0 -7
  356. package/android/build/intermediates/merged_jni_libs/debug/mergeDebugJniLibFolders/out/arm64-v8a/libspark_frost.so +0 -0
  357. package/android/build/intermediates/merged_jni_libs/debug/mergeDebugJniLibFolders/out/arm64-v8a/libuniffi_spark_frost.so +0 -0
  358. package/android/build/intermediates/merged_jni_libs/debug/mergeDebugJniLibFolders/out/armeabi-v7a/libspark_frost.so +0 -0
  359. package/android/build/intermediates/merged_jni_libs/debug/mergeDebugJniLibFolders/out/armeabi-v7a/libuniffi_spark_frost.so +0 -0
  360. package/android/build/intermediates/merged_jni_libs/debug/mergeDebugJniLibFolders/out/x86/libspark_frost.so +0 -0
  361. package/android/build/intermediates/merged_jni_libs/debug/mergeDebugJniLibFolders/out/x86/libuniffi_spark_frost.so +0 -0
  362. package/android/build/intermediates/merged_jni_libs/debug/mergeDebugJniLibFolders/out/x86_64/libspark_frost.so +0 -0
  363. package/android/build/intermediates/merged_jni_libs/debug/mergeDebugJniLibFolders/out/x86_64/libuniffi_spark_frost.so +0 -0
  364. package/android/build/intermediates/merged_manifest/debug/processDebugManifest/AndroidManifest.xml +0 -7
  365. package/android/build/intermediates/merged_native_libs/debug/mergeDebugNativeLibs/out/lib/arm64-v8a/libspark_frost.so +0 -0
  366. package/android/build/intermediates/merged_native_libs/debug/mergeDebugNativeLibs/out/lib/arm64-v8a/libuniffi_spark_frost.so +0 -0
  367. package/android/build/intermediates/merged_native_libs/debug/mergeDebugNativeLibs/out/lib/armeabi-v7a/libspark_frost.so +0 -0
  368. package/android/build/intermediates/merged_native_libs/debug/mergeDebugNativeLibs/out/lib/armeabi-v7a/libuniffi_spark_frost.so +0 -0
  369. package/android/build/intermediates/merged_native_libs/debug/mergeDebugNativeLibs/out/lib/x86/libspark_frost.so +0 -0
  370. package/android/build/intermediates/merged_native_libs/debug/mergeDebugNativeLibs/out/lib/x86/libuniffi_spark_frost.so +0 -0
  371. package/android/build/intermediates/merged_native_libs/debug/mergeDebugNativeLibs/out/lib/x86_64/libspark_frost.so +0 -0
  372. package/android/build/intermediates/merged_native_libs/debug/mergeDebugNativeLibs/out/lib/x86_64/libuniffi_spark_frost.so +0 -0
  373. package/android/build/intermediates/navigation_json/debug/extractDeepLinksDebug/navigation.json +0 -1
  374. package/android/build/intermediates/nested_resources_validation_report/debug/generateDebugResources/nestedResourcesValidationReport.txt +0 -1
  375. package/android/build/intermediates/runtime_library_classes_dir/debug/bundleLibRuntimeToDirDebug/META-INF/buildonspark_spark-sdk_debug.kotlin_module +0 -0
  376. package/android/build/intermediates/runtime_library_classes_dir/debug/bundleLibRuntimeToDirDebug/com/sparkfrost/BuildConfig.class +0 -0
  377. package/android/build/intermediates/runtime_library_classes_dir/debug/bundleLibRuntimeToDirDebug/com/sparkfrost/SparkFrostModule$Companion.class +0 -0
  378. package/android/build/intermediates/runtime_library_classes_dir/debug/bundleLibRuntimeToDirDebug/com/sparkfrost/SparkFrostModule.class +0 -0
  379. package/android/build/intermediates/runtime_library_classes_dir/debug/bundleLibRuntimeToDirDebug/com/sparkfrost/SparkFrostPackage.class +0 -0
  380. package/android/build/intermediates/runtime_library_classes_dir/debug/bundleLibRuntimeToDirDebug/uniffi/spark_frost/Disposable$Companion.class +0 -0
  381. package/android/build/intermediates/runtime_library_classes_dir/debug/bundleLibRuntimeToDirDebug/uniffi/spark_frost/Disposable.class +0 -0
  382. package/android/build/intermediates/runtime_library_classes_dir/debug/bundleLibRuntimeToDirDebug/uniffi/spark_frost/DummyTx$Companion.class +0 -0
  383. package/android/build/intermediates/runtime_library_classes_dir/debug/bundleLibRuntimeToDirDebug/uniffi/spark_frost/DummyTx.class +0 -0
  384. package/android/build/intermediates/runtime_library_classes_dir/debug/bundleLibRuntimeToDirDebug/uniffi/spark_frost/Exception$ErrorHandler.class +0 -0
  385. package/android/build/intermediates/runtime_library_classes_dir/debug/bundleLibRuntimeToDirDebug/uniffi/spark_frost/Exception$Spark.class +0 -0
  386. package/android/build/intermediates/runtime_library_classes_dir/debug/bundleLibRuntimeToDirDebug/uniffi/spark_frost/Exception.class +0 -0
  387. package/android/build/intermediates/runtime_library_classes_dir/debug/bundleLibRuntimeToDirDebug/uniffi/spark_frost/FfiConverter$DefaultImpls.class +0 -0
  388. package/android/build/intermediates/runtime_library_classes_dir/debug/bundleLibRuntimeToDirDebug/uniffi/spark_frost/FfiConverter.class +0 -0
  389. package/android/build/intermediates/runtime_library_classes_dir/debug/bundleLibRuntimeToDirDebug/uniffi/spark_frost/FfiConverterBoolean.class +0 -0
  390. package/android/build/intermediates/runtime_library_classes_dir/debug/bundleLibRuntimeToDirDebug/uniffi/spark_frost/FfiConverterByteArray.class +0 -0
  391. package/android/build/intermediates/runtime_library_classes_dir/debug/bundleLibRuntimeToDirDebug/uniffi/spark_frost/FfiConverterMapStringByteArray.class +0 -0
  392. package/android/build/intermediates/runtime_library_classes_dir/debug/bundleLibRuntimeToDirDebug/uniffi/spark_frost/FfiConverterMapStringTypeSigningCommitment.class +0 -0
  393. package/android/build/intermediates/runtime_library_classes_dir/debug/bundleLibRuntimeToDirDebug/uniffi/spark_frost/FfiConverterOptionalByteArray.class +0 -0
  394. package/android/build/intermediates/runtime_library_classes_dir/debug/bundleLibRuntimeToDirDebug/uniffi/spark_frost/FfiConverterRustBuffer$DefaultImpls.class +0 -0
  395. package/android/build/intermediates/runtime_library_classes_dir/debug/bundleLibRuntimeToDirDebug/uniffi/spark_frost/FfiConverterRustBuffer.class +0 -0
  396. package/android/build/intermediates/runtime_library_classes_dir/debug/bundleLibRuntimeToDirDebug/uniffi/spark_frost/FfiConverterSequenceString.class +0 -0
  397. package/android/build/intermediates/runtime_library_classes_dir/debug/bundleLibRuntimeToDirDebug/uniffi/spark_frost/FfiConverterString.class +0 -0
  398. package/android/build/intermediates/runtime_library_classes_dir/debug/bundleLibRuntimeToDirDebug/uniffi/spark_frost/FfiConverterTypeDummyTx.class +0 -0
  399. package/android/build/intermediates/runtime_library_classes_dir/debug/bundleLibRuntimeToDirDebug/uniffi/spark_frost/FfiConverterTypeError.class +0 -0
  400. package/android/build/intermediates/runtime_library_classes_dir/debug/bundleLibRuntimeToDirDebug/uniffi/spark_frost/FfiConverterTypeKeyPackage.class +0 -0
  401. package/android/build/intermediates/runtime_library_classes_dir/debug/bundleLibRuntimeToDirDebug/uniffi/spark_frost/FfiConverterTypeNonceResult.class +0 -0
  402. package/android/build/intermediates/runtime_library_classes_dir/debug/bundleLibRuntimeToDirDebug/uniffi/spark_frost/FfiConverterTypeSigningCommitment.class +0 -0
  403. package/android/build/intermediates/runtime_library_classes_dir/debug/bundleLibRuntimeToDirDebug/uniffi/spark_frost/FfiConverterTypeSigningNonce.class +0 -0
  404. package/android/build/intermediates/runtime_library_classes_dir/debug/bundleLibRuntimeToDirDebug/uniffi/spark_frost/FfiConverterTypeTransactionResult.class +0 -0
  405. package/android/build/intermediates/runtime_library_classes_dir/debug/bundleLibRuntimeToDirDebug/uniffi/spark_frost/FfiConverterUInt.class +0 -0
  406. package/android/build/intermediates/runtime_library_classes_dir/debug/bundleLibRuntimeToDirDebug/uniffi/spark_frost/FfiConverterULong.class +0 -0
  407. package/android/build/intermediates/runtime_library_classes_dir/debug/bundleLibRuntimeToDirDebug/uniffi/spark_frost/FfiConverterUShort.class +0 -0
  408. package/android/build/intermediates/runtime_library_classes_dir/debug/bundleLibRuntimeToDirDebug/uniffi/spark_frost/ForeignBytes$ByValue.class +0 -0
  409. package/android/build/intermediates/runtime_library_classes_dir/debug/bundleLibRuntimeToDirDebug/uniffi/spark_frost/ForeignBytes.class +0 -0
  410. package/android/build/intermediates/runtime_library_classes_dir/debug/bundleLibRuntimeToDirDebug/uniffi/spark_frost/InternalException.class +0 -0
  411. package/android/build/intermediates/runtime_library_classes_dir/debug/bundleLibRuntimeToDirDebug/uniffi/spark_frost/KeyPackage$Companion.class +0 -0
  412. package/android/build/intermediates/runtime_library_classes_dir/debug/bundleLibRuntimeToDirDebug/uniffi/spark_frost/KeyPackage.class +0 -0
  413. package/android/build/intermediates/runtime_library_classes_dir/debug/bundleLibRuntimeToDirDebug/uniffi/spark_frost/NoPointer.class +0 -0
  414. package/android/build/intermediates/runtime_library_classes_dir/debug/bundleLibRuntimeToDirDebug/uniffi/spark_frost/NonceResult$Companion.class +0 -0
  415. package/android/build/intermediates/runtime_library_classes_dir/debug/bundleLibRuntimeToDirDebug/uniffi/spark_frost/NonceResult.class +0 -0
  416. package/android/build/intermediates/runtime_library_classes_dir/debug/bundleLibRuntimeToDirDebug/uniffi/spark_frost/RustBuffer$ByReference.class +0 -0
  417. package/android/build/intermediates/runtime_library_classes_dir/debug/bundleLibRuntimeToDirDebug/uniffi/spark_frost/RustBuffer$ByValue.class +0 -0
  418. package/android/build/intermediates/runtime_library_classes_dir/debug/bundleLibRuntimeToDirDebug/uniffi/spark_frost/RustBuffer$Companion.class +0 -0
  419. package/android/build/intermediates/runtime_library_classes_dir/debug/bundleLibRuntimeToDirDebug/uniffi/spark_frost/RustBuffer.class +0 -0
  420. package/android/build/intermediates/runtime_library_classes_dir/debug/bundleLibRuntimeToDirDebug/uniffi/spark_frost/RustBufferByReference.class +0 -0
  421. package/android/build/intermediates/runtime_library_classes_dir/debug/bundleLibRuntimeToDirDebug/uniffi/spark_frost/SigningCommitment$Companion.class +0 -0
  422. package/android/build/intermediates/runtime_library_classes_dir/debug/bundleLibRuntimeToDirDebug/uniffi/spark_frost/SigningCommitment.class +0 -0
  423. package/android/build/intermediates/runtime_library_classes_dir/debug/bundleLibRuntimeToDirDebug/uniffi/spark_frost/SigningNonce$Companion.class +0 -0
  424. package/android/build/intermediates/runtime_library_classes_dir/debug/bundleLibRuntimeToDirDebug/uniffi/spark_frost/SigningNonce.class +0 -0
  425. package/android/build/intermediates/runtime_library_classes_dir/debug/bundleLibRuntimeToDirDebug/uniffi/spark_frost/Spark_frostKt.class +0 -0
  426. package/android/build/intermediates/runtime_library_classes_dir/debug/bundleLibRuntimeToDirDebug/uniffi/spark_frost/TransactionResult$Companion.class +0 -0
  427. package/android/build/intermediates/runtime_library_classes_dir/debug/bundleLibRuntimeToDirDebug/uniffi/spark_frost/TransactionResult.class +0 -0
  428. package/android/build/intermediates/runtime_library_classes_dir/debug/bundleLibRuntimeToDirDebug/uniffi/spark_frost/UniffiCallbackInterfaceFree.class +0 -0
  429. package/android/build/intermediates/runtime_library_classes_dir/debug/bundleLibRuntimeToDirDebug/uniffi/spark_frost/UniffiForeignFuture$UniffiByValue.class +0 -0
  430. package/android/build/intermediates/runtime_library_classes_dir/debug/bundleLibRuntimeToDirDebug/uniffi/spark_frost/UniffiForeignFuture.class +0 -0
  431. package/android/build/intermediates/runtime_library_classes_dir/debug/bundleLibRuntimeToDirDebug/uniffi/spark_frost/UniffiForeignFutureCompleteF32.class +0 -0
  432. package/android/build/intermediates/runtime_library_classes_dir/debug/bundleLibRuntimeToDirDebug/uniffi/spark_frost/UniffiForeignFutureCompleteF64.class +0 -0
  433. package/android/build/intermediates/runtime_library_classes_dir/debug/bundleLibRuntimeToDirDebug/uniffi/spark_frost/UniffiForeignFutureCompleteI16.class +0 -0
  434. package/android/build/intermediates/runtime_library_classes_dir/debug/bundleLibRuntimeToDirDebug/uniffi/spark_frost/UniffiForeignFutureCompleteI32.class +0 -0
  435. package/android/build/intermediates/runtime_library_classes_dir/debug/bundleLibRuntimeToDirDebug/uniffi/spark_frost/UniffiForeignFutureCompleteI64.class +0 -0
  436. package/android/build/intermediates/runtime_library_classes_dir/debug/bundleLibRuntimeToDirDebug/uniffi/spark_frost/UniffiForeignFutureCompleteI8.class +0 -0
  437. package/android/build/intermediates/runtime_library_classes_dir/debug/bundleLibRuntimeToDirDebug/uniffi/spark_frost/UniffiForeignFutureCompletePointer.class +0 -0
  438. package/android/build/intermediates/runtime_library_classes_dir/debug/bundleLibRuntimeToDirDebug/uniffi/spark_frost/UniffiForeignFutureCompleteRustBuffer.class +0 -0
  439. package/android/build/intermediates/runtime_library_classes_dir/debug/bundleLibRuntimeToDirDebug/uniffi/spark_frost/UniffiForeignFutureCompleteU16.class +0 -0
  440. package/android/build/intermediates/runtime_library_classes_dir/debug/bundleLibRuntimeToDirDebug/uniffi/spark_frost/UniffiForeignFutureCompleteU32.class +0 -0
  441. package/android/build/intermediates/runtime_library_classes_dir/debug/bundleLibRuntimeToDirDebug/uniffi/spark_frost/UniffiForeignFutureCompleteU64.class +0 -0
  442. package/android/build/intermediates/runtime_library_classes_dir/debug/bundleLibRuntimeToDirDebug/uniffi/spark_frost/UniffiForeignFutureCompleteU8.class +0 -0
  443. package/android/build/intermediates/runtime_library_classes_dir/debug/bundleLibRuntimeToDirDebug/uniffi/spark_frost/UniffiForeignFutureCompleteVoid.class +0 -0
  444. package/android/build/intermediates/runtime_library_classes_dir/debug/bundleLibRuntimeToDirDebug/uniffi/spark_frost/UniffiForeignFutureFree.class +0 -0
  445. package/android/build/intermediates/runtime_library_classes_dir/debug/bundleLibRuntimeToDirDebug/uniffi/spark_frost/UniffiForeignFutureStructF32$UniffiByValue.class +0 -0
  446. package/android/build/intermediates/runtime_library_classes_dir/debug/bundleLibRuntimeToDirDebug/uniffi/spark_frost/UniffiForeignFutureStructF32.class +0 -0
  447. package/android/build/intermediates/runtime_library_classes_dir/debug/bundleLibRuntimeToDirDebug/uniffi/spark_frost/UniffiForeignFutureStructF64$UniffiByValue.class +0 -0
  448. package/android/build/intermediates/runtime_library_classes_dir/debug/bundleLibRuntimeToDirDebug/uniffi/spark_frost/UniffiForeignFutureStructF64.class +0 -0
  449. package/android/build/intermediates/runtime_library_classes_dir/debug/bundleLibRuntimeToDirDebug/uniffi/spark_frost/UniffiForeignFutureStructI16$UniffiByValue.class +0 -0
  450. package/android/build/intermediates/runtime_library_classes_dir/debug/bundleLibRuntimeToDirDebug/uniffi/spark_frost/UniffiForeignFutureStructI16.class +0 -0
  451. package/android/build/intermediates/runtime_library_classes_dir/debug/bundleLibRuntimeToDirDebug/uniffi/spark_frost/UniffiForeignFutureStructI32$UniffiByValue.class +0 -0
  452. package/android/build/intermediates/runtime_library_classes_dir/debug/bundleLibRuntimeToDirDebug/uniffi/spark_frost/UniffiForeignFutureStructI32.class +0 -0
  453. package/android/build/intermediates/runtime_library_classes_dir/debug/bundleLibRuntimeToDirDebug/uniffi/spark_frost/UniffiForeignFutureStructI64$UniffiByValue.class +0 -0
  454. package/android/build/intermediates/runtime_library_classes_dir/debug/bundleLibRuntimeToDirDebug/uniffi/spark_frost/UniffiForeignFutureStructI64.class +0 -0
  455. package/android/build/intermediates/runtime_library_classes_dir/debug/bundleLibRuntimeToDirDebug/uniffi/spark_frost/UniffiForeignFutureStructI8$UniffiByValue.class +0 -0
  456. package/android/build/intermediates/runtime_library_classes_dir/debug/bundleLibRuntimeToDirDebug/uniffi/spark_frost/UniffiForeignFutureStructI8.class +0 -0
  457. package/android/build/intermediates/runtime_library_classes_dir/debug/bundleLibRuntimeToDirDebug/uniffi/spark_frost/UniffiForeignFutureStructPointer$UniffiByValue.class +0 -0
  458. package/android/build/intermediates/runtime_library_classes_dir/debug/bundleLibRuntimeToDirDebug/uniffi/spark_frost/UniffiForeignFutureStructPointer.class +0 -0
  459. package/android/build/intermediates/runtime_library_classes_dir/debug/bundleLibRuntimeToDirDebug/uniffi/spark_frost/UniffiForeignFutureStructRustBuffer$UniffiByValue.class +0 -0
  460. package/android/build/intermediates/runtime_library_classes_dir/debug/bundleLibRuntimeToDirDebug/uniffi/spark_frost/UniffiForeignFutureStructRustBuffer.class +0 -0
  461. package/android/build/intermediates/runtime_library_classes_dir/debug/bundleLibRuntimeToDirDebug/uniffi/spark_frost/UniffiForeignFutureStructU16$UniffiByValue.class +0 -0
  462. package/android/build/intermediates/runtime_library_classes_dir/debug/bundleLibRuntimeToDirDebug/uniffi/spark_frost/UniffiForeignFutureStructU16.class +0 -0
  463. package/android/build/intermediates/runtime_library_classes_dir/debug/bundleLibRuntimeToDirDebug/uniffi/spark_frost/UniffiForeignFutureStructU32$UniffiByValue.class +0 -0
  464. package/android/build/intermediates/runtime_library_classes_dir/debug/bundleLibRuntimeToDirDebug/uniffi/spark_frost/UniffiForeignFutureStructU32.class +0 -0
  465. package/android/build/intermediates/runtime_library_classes_dir/debug/bundleLibRuntimeToDirDebug/uniffi/spark_frost/UniffiForeignFutureStructU64$UniffiByValue.class +0 -0
  466. package/android/build/intermediates/runtime_library_classes_dir/debug/bundleLibRuntimeToDirDebug/uniffi/spark_frost/UniffiForeignFutureStructU64.class +0 -0
  467. package/android/build/intermediates/runtime_library_classes_dir/debug/bundleLibRuntimeToDirDebug/uniffi/spark_frost/UniffiForeignFutureStructU8$UniffiByValue.class +0 -0
  468. package/android/build/intermediates/runtime_library_classes_dir/debug/bundleLibRuntimeToDirDebug/uniffi/spark_frost/UniffiForeignFutureStructU8.class +0 -0
  469. package/android/build/intermediates/runtime_library_classes_dir/debug/bundleLibRuntimeToDirDebug/uniffi/spark_frost/UniffiForeignFutureStructVoid$UniffiByValue.class +0 -0
  470. package/android/build/intermediates/runtime_library_classes_dir/debug/bundleLibRuntimeToDirDebug/uniffi/spark_frost/UniffiForeignFutureStructVoid.class +0 -0
  471. package/android/build/intermediates/runtime_library_classes_dir/debug/bundleLibRuntimeToDirDebug/uniffi/spark_frost/UniffiHandleMap.class +0 -0
  472. package/android/build/intermediates/runtime_library_classes_dir/debug/bundleLibRuntimeToDirDebug/uniffi/spark_frost/UniffiLib$Companion.class +0 -0
  473. package/android/build/intermediates/runtime_library_classes_dir/debug/bundleLibRuntimeToDirDebug/uniffi/spark_frost/UniffiLib.class +0 -0
  474. package/android/build/intermediates/runtime_library_classes_dir/debug/bundleLibRuntimeToDirDebug/uniffi/spark_frost/UniffiNullRustCallStatusErrorHandler.class +0 -0
  475. package/android/build/intermediates/runtime_library_classes_dir/debug/bundleLibRuntimeToDirDebug/uniffi/spark_frost/UniffiRustCallStatus$ByValue.class +0 -0
  476. package/android/build/intermediates/runtime_library_classes_dir/debug/bundleLibRuntimeToDirDebug/uniffi/spark_frost/UniffiRustCallStatus$Companion.class +0 -0
  477. package/android/build/intermediates/runtime_library_classes_dir/debug/bundleLibRuntimeToDirDebug/uniffi/spark_frost/UniffiRustCallStatus.class +0 -0
  478. package/android/build/intermediates/runtime_library_classes_dir/debug/bundleLibRuntimeToDirDebug/uniffi/spark_frost/UniffiRustCallStatusErrorHandler.class +0 -0
  479. package/android/build/intermediates/runtime_library_classes_dir/debug/bundleLibRuntimeToDirDebug/uniffi/spark_frost/UniffiRustFutureContinuationCallback.class +0 -0
  480. package/android/build/intermediates/runtime_library_classes_jar/debug/bundleLibRuntimeToJarDebug/classes.jar +0 -0
  481. package/android/build/intermediates/symbol_list_with_package_name/debug/generateDebugRFile/package-aware-r.txt +0 -1
  482. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/inputs/source-to-output.tab +0 -0
  483. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/inputs/source-to-output.tab.keystream +0 -0
  484. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/inputs/source-to-output.tab.keystream.len +0 -0
  485. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/inputs/source-to-output.tab.len +0 -0
  486. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/inputs/source-to-output.tab.values.at +0 -0
  487. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/inputs/source-to-output.tab_i +0 -0
  488. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/inputs/source-to-output.tab_i.len +0 -0
  489. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/class-attributes.tab +0 -0
  490. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/class-attributes.tab.keystream +0 -0
  491. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/class-attributes.tab.keystream.len +0 -0
  492. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/class-attributes.tab.len +0 -0
  493. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/class-attributes.tab.values.at +0 -0
  494. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/class-attributes.tab_i +0 -0
  495. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/class-attributes.tab_i.len +0 -0
  496. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/class-fq-name-to-source.tab +0 -0
  497. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/class-fq-name-to-source.tab.keystream +0 -0
  498. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/class-fq-name-to-source.tab.keystream.len +0 -0
  499. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/class-fq-name-to-source.tab.len +0 -0
  500. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/class-fq-name-to-source.tab.values.at +0 -0
  501. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/class-fq-name-to-source.tab_i +0 -0
  502. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/class-fq-name-to-source.tab_i.len +0 -0
  503. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/constants.tab +0 -0
  504. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/constants.tab.keystream +0 -0
  505. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/constants.tab.keystream.len +0 -0
  506. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/constants.tab.len +0 -0
  507. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/constants.tab.values.at +0 -0
  508. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/constants.tab_i +0 -0
  509. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/constants.tab_i.len +0 -0
  510. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/inline-functions.tab +0 -0
  511. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/inline-functions.tab.keystream +0 -0
  512. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/inline-functions.tab.keystream.len +0 -0
  513. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/inline-functions.tab.len +0 -0
  514. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/inline-functions.tab.values.at +0 -0
  515. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/inline-functions.tab_i +0 -0
  516. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/inline-functions.tab_i.len +0 -0
  517. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/internal-name-to-source.tab +0 -0
  518. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/internal-name-to-source.tab.keystream +0 -0
  519. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/internal-name-to-source.tab.keystream.len +0 -0
  520. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/internal-name-to-source.tab.len +0 -0
  521. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/internal-name-to-source.tab.values.at +0 -0
  522. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/internal-name-to-source.tab_i +0 -0
  523. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/internal-name-to-source.tab_i.len +0 -0
  524. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/package-parts.tab +0 -0
  525. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/package-parts.tab.keystream +0 -0
  526. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/package-parts.tab.keystream.len +0 -0
  527. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/package-parts.tab.len +0 -0
  528. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/package-parts.tab.values.at +0 -0
  529. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/package-parts.tab_i +0 -0
  530. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/package-parts.tab_i.len +0 -0
  531. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/proto.tab +0 -0
  532. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/proto.tab.keystream +0 -0
  533. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/proto.tab.keystream.len +0 -0
  534. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/proto.tab.len +0 -0
  535. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/proto.tab.values +0 -0
  536. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/proto.tab.values.at +0 -0
  537. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/proto.tab.values.s +0 -1
  538. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/proto.tab_i +0 -0
  539. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/proto.tab_i.len +0 -0
  540. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/source-to-classes.tab +0 -0
  541. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/source-to-classes.tab.keystream +0 -0
  542. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/source-to-classes.tab.keystream.len +0 -0
  543. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/source-to-classes.tab.len +0 -0
  544. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/source-to-classes.tab.values.at +0 -0
  545. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/source-to-classes.tab_i +0 -0
  546. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/source-to-classes.tab_i.len +0 -0
  547. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/subtypes.tab +0 -0
  548. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/subtypes.tab.keystream +0 -0
  549. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/subtypes.tab.keystream.len +0 -0
  550. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/subtypes.tab.len +0 -0
  551. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/subtypes.tab.values.at +0 -0
  552. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/subtypes.tab_i +0 -0
  553. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/subtypes.tab_i.len +0 -0
  554. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/supertypes.tab +0 -0
  555. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/supertypes.tab.keystream +0 -0
  556. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/supertypes.tab.keystream.len +0 -0
  557. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/supertypes.tab.len +0 -0
  558. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/supertypes.tab.values.at +0 -0
  559. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/supertypes.tab_i +0 -0
  560. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/supertypes.tab_i.len +0 -0
  561. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/counters.tab +0 -2
  562. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/file-to-id.tab +0 -0
  563. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/file-to-id.tab.keystream +0 -0
  564. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/file-to-id.tab.keystream.len +0 -0
  565. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/file-to-id.tab.len +0 -0
  566. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/file-to-id.tab.values.at +0 -0
  567. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/file-to-id.tab_i +0 -0
  568. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/file-to-id.tab_i.len +0 -0
  569. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/id-to-file.tab +0 -0
  570. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/id-to-file.tab.keystream +0 -0
  571. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/id-to-file.tab.keystream.len +0 -0
  572. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/id-to-file.tab.len +0 -0
  573. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/id-to-file.tab.values.at +0 -0
  574. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/id-to-file.tab_i +0 -0
  575. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/id-to-file.tab_i.len +0 -0
  576. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/lookups.tab +0 -0
  577. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/lookups.tab.keystream +0 -0
  578. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/lookups.tab.keystream.len +0 -0
  579. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/lookups.tab.len +0 -0
  580. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/lookups.tab.values.at +0 -0
  581. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/lookups.tab_i +0 -0
  582. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/lookups.tab_i.len +0 -0
  583. package/android/build/kotlin/compileDebugKotlin/cacheable/last-build.bin +0 -0
  584. package/android/build/kotlin/compileDebugKotlin/classpath-snapshot/shrunk-classpath-snapshot.bin +0 -0
  585. package/android/build/kotlin/compileDebugKotlin/local-state/build-history.bin +0 -0
  586. package/android/build/outputs/logs/manifest-merger-debug-report.txt +0 -16
  587. package/android/build/tmp/compileDebugJavaWithJavac/previous-compilation-data.bin +0 -0
  588. package/android/build/tmp/kotlin-classes/debug/META-INF/buildonspark_spark-sdk_debug.kotlin_module +0 -0
  589. package/android/build/tmp/kotlin-classes/debug/com/sparkfrost/SparkFrostModule$Companion.class +0 -0
  590. package/android/build/tmp/kotlin-classes/debug/com/sparkfrost/SparkFrostModule.class +0 -0
  591. package/android/build/tmp/kotlin-classes/debug/com/sparkfrost/SparkFrostPackage.class +0 -0
  592. package/android/build/tmp/kotlin-classes/debug/uniffi/spark_frost/Disposable$Companion.class +0 -0
  593. package/android/build/tmp/kotlin-classes/debug/uniffi/spark_frost/Disposable.class +0 -0
  594. package/android/build/tmp/kotlin-classes/debug/uniffi/spark_frost/DummyTx$Companion.class +0 -0
  595. package/android/build/tmp/kotlin-classes/debug/uniffi/spark_frost/DummyTx.class +0 -0
  596. package/android/build/tmp/kotlin-classes/debug/uniffi/spark_frost/Exception$ErrorHandler.class +0 -0
  597. package/android/build/tmp/kotlin-classes/debug/uniffi/spark_frost/Exception$Spark.class +0 -0
  598. package/android/build/tmp/kotlin-classes/debug/uniffi/spark_frost/Exception.class +0 -0
  599. package/android/build/tmp/kotlin-classes/debug/uniffi/spark_frost/FfiConverter$DefaultImpls.class +0 -0
  600. package/android/build/tmp/kotlin-classes/debug/uniffi/spark_frost/FfiConverter.class +0 -0
  601. package/android/build/tmp/kotlin-classes/debug/uniffi/spark_frost/FfiConverterBoolean.class +0 -0
  602. package/android/build/tmp/kotlin-classes/debug/uniffi/spark_frost/FfiConverterByteArray.class +0 -0
  603. package/android/build/tmp/kotlin-classes/debug/uniffi/spark_frost/FfiConverterMapStringByteArray.class +0 -0
  604. package/android/build/tmp/kotlin-classes/debug/uniffi/spark_frost/FfiConverterMapStringTypeSigningCommitment.class +0 -0
  605. package/android/build/tmp/kotlin-classes/debug/uniffi/spark_frost/FfiConverterOptionalByteArray.class +0 -0
  606. package/android/build/tmp/kotlin-classes/debug/uniffi/spark_frost/FfiConverterRustBuffer$DefaultImpls.class +0 -0
  607. package/android/build/tmp/kotlin-classes/debug/uniffi/spark_frost/FfiConverterRustBuffer.class +0 -0
  608. package/android/build/tmp/kotlin-classes/debug/uniffi/spark_frost/FfiConverterSequenceString.class +0 -0
  609. package/android/build/tmp/kotlin-classes/debug/uniffi/spark_frost/FfiConverterString.class +0 -0
  610. package/android/build/tmp/kotlin-classes/debug/uniffi/spark_frost/FfiConverterTypeDummyTx.class +0 -0
  611. package/android/build/tmp/kotlin-classes/debug/uniffi/spark_frost/FfiConverterTypeError.class +0 -0
  612. package/android/build/tmp/kotlin-classes/debug/uniffi/spark_frost/FfiConverterTypeKeyPackage.class +0 -0
  613. package/android/build/tmp/kotlin-classes/debug/uniffi/spark_frost/FfiConverterTypeNonceResult.class +0 -0
  614. package/android/build/tmp/kotlin-classes/debug/uniffi/spark_frost/FfiConverterTypeSigningCommitment.class +0 -0
  615. package/android/build/tmp/kotlin-classes/debug/uniffi/spark_frost/FfiConverterTypeSigningNonce.class +0 -0
  616. package/android/build/tmp/kotlin-classes/debug/uniffi/spark_frost/FfiConverterTypeTransactionResult.class +0 -0
  617. package/android/build/tmp/kotlin-classes/debug/uniffi/spark_frost/FfiConverterUInt.class +0 -0
  618. package/android/build/tmp/kotlin-classes/debug/uniffi/spark_frost/FfiConverterULong.class +0 -0
  619. package/android/build/tmp/kotlin-classes/debug/uniffi/spark_frost/FfiConverterUShort.class +0 -0
  620. package/android/build/tmp/kotlin-classes/debug/uniffi/spark_frost/ForeignBytes$ByValue.class +0 -0
  621. package/android/build/tmp/kotlin-classes/debug/uniffi/spark_frost/ForeignBytes.class +0 -0
  622. package/android/build/tmp/kotlin-classes/debug/uniffi/spark_frost/InternalException.class +0 -0
  623. package/android/build/tmp/kotlin-classes/debug/uniffi/spark_frost/KeyPackage$Companion.class +0 -0
  624. package/android/build/tmp/kotlin-classes/debug/uniffi/spark_frost/KeyPackage.class +0 -0
  625. package/android/build/tmp/kotlin-classes/debug/uniffi/spark_frost/NoPointer.class +0 -0
  626. package/android/build/tmp/kotlin-classes/debug/uniffi/spark_frost/NonceResult$Companion.class +0 -0
  627. package/android/build/tmp/kotlin-classes/debug/uniffi/spark_frost/NonceResult.class +0 -0
  628. package/android/build/tmp/kotlin-classes/debug/uniffi/spark_frost/RustBuffer$ByReference.class +0 -0
  629. package/android/build/tmp/kotlin-classes/debug/uniffi/spark_frost/RustBuffer$ByValue.class +0 -0
  630. package/android/build/tmp/kotlin-classes/debug/uniffi/spark_frost/RustBuffer$Companion.class +0 -0
  631. package/android/build/tmp/kotlin-classes/debug/uniffi/spark_frost/RustBuffer.class +0 -0
  632. package/android/build/tmp/kotlin-classes/debug/uniffi/spark_frost/RustBufferByReference.class +0 -0
  633. package/android/build/tmp/kotlin-classes/debug/uniffi/spark_frost/SigningCommitment$Companion.class +0 -0
  634. package/android/build/tmp/kotlin-classes/debug/uniffi/spark_frost/SigningCommitment.class +0 -0
  635. package/android/build/tmp/kotlin-classes/debug/uniffi/spark_frost/SigningNonce$Companion.class +0 -0
  636. package/android/build/tmp/kotlin-classes/debug/uniffi/spark_frost/SigningNonce.class +0 -0
  637. package/android/build/tmp/kotlin-classes/debug/uniffi/spark_frost/Spark_frostKt.class +0 -0
  638. package/android/build/tmp/kotlin-classes/debug/uniffi/spark_frost/TransactionResult$Companion.class +0 -0
  639. package/android/build/tmp/kotlin-classes/debug/uniffi/spark_frost/TransactionResult.class +0 -0
  640. package/android/build/tmp/kotlin-classes/debug/uniffi/spark_frost/UniffiCallbackInterfaceFree.class +0 -0
  641. package/android/build/tmp/kotlin-classes/debug/uniffi/spark_frost/UniffiForeignFuture$UniffiByValue.class +0 -0
  642. package/android/build/tmp/kotlin-classes/debug/uniffi/spark_frost/UniffiForeignFuture.class +0 -0
  643. package/android/build/tmp/kotlin-classes/debug/uniffi/spark_frost/UniffiForeignFutureCompleteF32.class +0 -0
  644. package/android/build/tmp/kotlin-classes/debug/uniffi/spark_frost/UniffiForeignFutureCompleteF64.class +0 -0
  645. package/android/build/tmp/kotlin-classes/debug/uniffi/spark_frost/UniffiForeignFutureCompleteI16.class +0 -0
  646. package/android/build/tmp/kotlin-classes/debug/uniffi/spark_frost/UniffiForeignFutureCompleteI32.class +0 -0
  647. package/android/build/tmp/kotlin-classes/debug/uniffi/spark_frost/UniffiForeignFutureCompleteI64.class +0 -0
  648. package/android/build/tmp/kotlin-classes/debug/uniffi/spark_frost/UniffiForeignFutureCompleteI8.class +0 -0
  649. package/android/build/tmp/kotlin-classes/debug/uniffi/spark_frost/UniffiForeignFutureCompletePointer.class +0 -0
  650. package/android/build/tmp/kotlin-classes/debug/uniffi/spark_frost/UniffiForeignFutureCompleteRustBuffer.class +0 -0
  651. package/android/build/tmp/kotlin-classes/debug/uniffi/spark_frost/UniffiForeignFutureCompleteU16.class +0 -0
  652. package/android/build/tmp/kotlin-classes/debug/uniffi/spark_frost/UniffiForeignFutureCompleteU32.class +0 -0
  653. package/android/build/tmp/kotlin-classes/debug/uniffi/spark_frost/UniffiForeignFutureCompleteU64.class +0 -0
  654. package/android/build/tmp/kotlin-classes/debug/uniffi/spark_frost/UniffiForeignFutureCompleteU8.class +0 -0
  655. package/android/build/tmp/kotlin-classes/debug/uniffi/spark_frost/UniffiForeignFutureCompleteVoid.class +0 -0
  656. package/android/build/tmp/kotlin-classes/debug/uniffi/spark_frost/UniffiForeignFutureFree.class +0 -0
  657. package/android/build/tmp/kotlin-classes/debug/uniffi/spark_frost/UniffiForeignFutureStructF32$UniffiByValue.class +0 -0
  658. package/android/build/tmp/kotlin-classes/debug/uniffi/spark_frost/UniffiForeignFutureStructF32.class +0 -0
  659. package/android/build/tmp/kotlin-classes/debug/uniffi/spark_frost/UniffiForeignFutureStructF64$UniffiByValue.class +0 -0
  660. package/android/build/tmp/kotlin-classes/debug/uniffi/spark_frost/UniffiForeignFutureStructF64.class +0 -0
  661. package/android/build/tmp/kotlin-classes/debug/uniffi/spark_frost/UniffiForeignFutureStructI16$UniffiByValue.class +0 -0
  662. package/android/build/tmp/kotlin-classes/debug/uniffi/spark_frost/UniffiForeignFutureStructI16.class +0 -0
  663. package/android/build/tmp/kotlin-classes/debug/uniffi/spark_frost/UniffiForeignFutureStructI32$UniffiByValue.class +0 -0
  664. package/android/build/tmp/kotlin-classes/debug/uniffi/spark_frost/UniffiForeignFutureStructI32.class +0 -0
  665. package/android/build/tmp/kotlin-classes/debug/uniffi/spark_frost/UniffiForeignFutureStructI64$UniffiByValue.class +0 -0
  666. package/android/build/tmp/kotlin-classes/debug/uniffi/spark_frost/UniffiForeignFutureStructI64.class +0 -0
  667. package/android/build/tmp/kotlin-classes/debug/uniffi/spark_frost/UniffiForeignFutureStructI8$UniffiByValue.class +0 -0
  668. package/android/build/tmp/kotlin-classes/debug/uniffi/spark_frost/UniffiForeignFutureStructI8.class +0 -0
  669. package/android/build/tmp/kotlin-classes/debug/uniffi/spark_frost/UniffiForeignFutureStructPointer$UniffiByValue.class +0 -0
  670. package/android/build/tmp/kotlin-classes/debug/uniffi/spark_frost/UniffiForeignFutureStructPointer.class +0 -0
  671. package/android/build/tmp/kotlin-classes/debug/uniffi/spark_frost/UniffiForeignFutureStructRustBuffer$UniffiByValue.class +0 -0
  672. package/android/build/tmp/kotlin-classes/debug/uniffi/spark_frost/UniffiForeignFutureStructRustBuffer.class +0 -0
  673. package/android/build/tmp/kotlin-classes/debug/uniffi/spark_frost/UniffiForeignFutureStructU16$UniffiByValue.class +0 -0
  674. package/android/build/tmp/kotlin-classes/debug/uniffi/spark_frost/UniffiForeignFutureStructU16.class +0 -0
  675. package/android/build/tmp/kotlin-classes/debug/uniffi/spark_frost/UniffiForeignFutureStructU32$UniffiByValue.class +0 -0
  676. package/android/build/tmp/kotlin-classes/debug/uniffi/spark_frost/UniffiForeignFutureStructU32.class +0 -0
  677. package/android/build/tmp/kotlin-classes/debug/uniffi/spark_frost/UniffiForeignFutureStructU64$UniffiByValue.class +0 -0
  678. package/android/build/tmp/kotlin-classes/debug/uniffi/spark_frost/UniffiForeignFutureStructU64.class +0 -0
  679. package/android/build/tmp/kotlin-classes/debug/uniffi/spark_frost/UniffiForeignFutureStructU8$UniffiByValue.class +0 -0
  680. package/android/build/tmp/kotlin-classes/debug/uniffi/spark_frost/UniffiForeignFutureStructU8.class +0 -0
  681. package/android/build/tmp/kotlin-classes/debug/uniffi/spark_frost/UniffiForeignFutureStructVoid$UniffiByValue.class +0 -0
  682. package/android/build/tmp/kotlin-classes/debug/uniffi/spark_frost/UniffiForeignFutureStructVoid.class +0 -0
  683. package/android/build/tmp/kotlin-classes/debug/uniffi/spark_frost/UniffiHandleMap.class +0 -0
  684. package/android/build/tmp/kotlin-classes/debug/uniffi/spark_frost/UniffiLib$Companion.class +0 -0
  685. package/android/build/tmp/kotlin-classes/debug/uniffi/spark_frost/UniffiLib.class +0 -0
  686. package/android/build/tmp/kotlin-classes/debug/uniffi/spark_frost/UniffiNullRustCallStatusErrorHandler.class +0 -0
  687. package/android/build/tmp/kotlin-classes/debug/uniffi/spark_frost/UniffiRustCallStatus$ByValue.class +0 -0
  688. package/android/build/tmp/kotlin-classes/debug/uniffi/spark_frost/UniffiRustCallStatus$Companion.class +0 -0
  689. package/android/build/tmp/kotlin-classes/debug/uniffi/spark_frost/UniffiRustCallStatus.class +0 -0
  690. package/android/build/tmp/kotlin-classes/debug/uniffi/spark_frost/UniffiRustCallStatusErrorHandler.class +0 -0
  691. package/android/build/tmp/kotlin-classes/debug/uniffi/spark_frost/UniffiRustFutureContinuationCallback.class +0 -0
  692. /package/{android/build/intermediates/compile_symbol_list/debug/generateDebugRFile/R.txt → dist/chunk-L3EHBOUX.js} +0 -0
@@ -746,6 +746,7 @@ import {
746
746
  Receipt
747
747
  } from "@buildonspark/lrc20-sdk";
748
748
  import { sha256 } from "@noble/hashes/sha2";
749
+ import { taprootTweakPrivKey } from "@scure/btc-signer/utils";
749
750
  var sparkFrostModule = void 0;
750
751
  var getSparkFrostModule = async () => {
751
752
  if (isReactNative) {
@@ -757,8 +758,8 @@ var getSparkFrostModule = async () => {
757
758
  return sparkFrostModule;
758
759
  };
759
760
  var HARDENED_OFFSET = 2147483648;
760
- var DefaultHDKeyGenerator = class {
761
- async deriveHDKeysFromSeed(seed, accountNumber) {
761
+ var DefaultSparkKeysGenerator = class {
762
+ async deriveKeysFromSeed(seed, accountNumber) {
762
763
  const hdkey = HDKey.fromMasterSeed(seed);
763
764
  if (!hdkey.privateKey || !hdkey.publicKey) {
764
765
  throw new ValidationError("Failed to derive keys from seed", {
@@ -779,27 +780,21 @@ var DefaultHDKeyGenerator = class {
779
780
  );
780
781
  }
781
782
  return {
782
- masterKey: {
783
- hdKey: hdkey,
784
- privateKey: hdkey.privateKey,
785
- publicKey: hdkey.publicKey
786
- },
783
+ masterPublicKey: hdkey.publicKey,
787
784
  identityKey: {
788
- hdKey: identityKey,
789
785
  privateKey: identityKey.privateKey,
790
786
  publicKey: identityKey.publicKey
791
787
  },
792
- signingKey: {
788
+ signingHDKey: {
793
789
  hdKey: signingKey,
794
790
  privateKey: signingKey.privateKey,
795
791
  publicKey: signingKey.publicKey
796
792
  },
797
793
  depositKey: {
798
- hdKey: depositKey,
799
794
  privateKey: depositKey.privateKey,
800
795
  publicKey: depositKey.publicKey
801
796
  },
802
- staticDepositKey: {
797
+ staticDepositHDKey: {
803
798
  hdKey: staticDepositKey,
804
799
  privateKey: staticDepositKey.privateKey,
805
800
  publicKey: staticDepositKey.publicKey
@@ -808,7 +803,7 @@ var DefaultHDKeyGenerator = class {
808
803
  }
809
804
  };
810
805
  var DefaultSparkSigner = class {
811
- masterKey = null;
806
+ masterPublicKey = null;
812
807
  identityKey = null;
813
808
  signingKey = null;
814
809
  depositKey = null;
@@ -817,14 +812,16 @@ var DefaultSparkSigner = class {
817
812
  // <hex, hex>
818
813
  publicKeyToPrivateKeyMap = /* @__PURE__ */ new Map();
819
814
  commitmentToNonceMap = /* @__PURE__ */ new Map();
820
- hdKeyGenerator;
821
- constructor({ hdKeyGenerator } = {}) {
822
- this.hdKeyGenerator = hdKeyGenerator ?? new DefaultHDKeyGenerator();
815
+ keysGenerator;
816
+ constructor({
817
+ sparkKeysGenerator
818
+ } = {}) {
819
+ this.keysGenerator = sparkKeysGenerator ?? new DefaultSparkKeysGenerator();
823
820
  }
824
821
  deriveSigningKey(hash) {
825
- if (!this.masterKey) {
822
+ if (!this.signingKey) {
826
823
  throw new ValidationError("Private key not initialized", {
827
- field: "masterKey"
824
+ field: "signingKey"
828
825
  });
829
826
  }
830
827
  const view = new DataView(hash.buffer);
@@ -838,9 +835,9 @@ var DefaultSparkSigner = class {
838
835
  return newPrivateKey;
839
836
  }
840
837
  async restoreSigningKeysFromLeafs(leafs) {
841
- if (!this.masterKey) {
842
- throw new ValidationError("Master key is not set", {
843
- field: "masterKey"
838
+ if (!this.signingKey) {
839
+ throw new ValidationError("Signing key is not set", {
840
+ field: "signingKey"
844
841
  });
845
842
  }
846
843
  for (const leaf of leafs) {
@@ -960,9 +957,9 @@ var DefaultSparkSigner = class {
960
957
  return Array.from(this.publicKeyToPrivateKeyMap.keys()).map(hexToBytes);
961
958
  }
962
959
  async generatePublicKey(hash) {
963
- if (!this.masterKey) {
960
+ if (!this.signingKey) {
964
961
  throw new ValidationError("Private key is not set", {
965
- field: "masterKey"
962
+ field: "signingKey"
966
963
  });
967
964
  }
968
965
  let newPrivateKey = null;
@@ -1098,10 +1095,16 @@ var DefaultSparkSigner = class {
1098
1095
  if (typeof seed === "string") {
1099
1096
  seed = hexToBytes(seed);
1100
1097
  }
1101
- const { masterKey, identityKey, signingKey, depositKey, staticDepositKey } = await this.hdKeyGenerator.deriveHDKeysFromSeed(seed, accountNumber ?? 0);
1102
- this.masterKey = masterKey.hdKey;
1103
- this.identityKey = identityKey.hdKey;
1104
- this.depositKey = depositKey.hdKey;
1098
+ const {
1099
+ masterPublicKey,
1100
+ identityKey,
1101
+ signingHDKey: signingKey,
1102
+ depositKey,
1103
+ staticDepositHDKey: staticDepositKey
1104
+ } = await this.keysGenerator.deriveKeysFromSeed(seed, accountNumber ?? 0);
1105
+ this.masterPublicKey = masterPublicKey;
1106
+ this.identityKey = identityKey;
1107
+ this.depositKey = depositKey;
1105
1108
  this.signingKey = signingKey.hdKey;
1106
1109
  this.staticDepositKey = staticDepositKey.hdKey;
1107
1110
  this.publicKeyToPrivateKeyMap.set(
@@ -1190,10 +1193,10 @@ var DefaultSparkSigner = class {
1190
1193
  };
1191
1194
  }
1192
1195
  async getMasterPublicKey() {
1193
- if (!this.masterKey?.publicKey) {
1196
+ if (!this.masterPublicKey) {
1194
1197
  throw new Error("Private key is not set");
1195
1198
  }
1196
- return this.masterKey.publicKey;
1199
+ return this.masterPublicKey;
1197
1200
  }
1198
1201
  async validateMessageWithIdentityKey(message, signature) {
1199
1202
  if (!this.identityKey?.publicKey) {
@@ -1319,16 +1322,17 @@ var ReactNativeSparkSigner = class extends DefaultSparkSigner {
1319
1322
  import { isNode as isNode4, mapCurrencyAmount } from "@lightsparkdev/core";
1320
1323
  import {
1321
1324
  bytesToHex as bytesToHex12,
1322
- bytesToNumberBE as bytesToNumberBE7,
1325
+ bytesToNumberBE as bytesToNumberBE8,
1323
1326
  equalBytes as equalBytes5,
1324
- hexToBytes as hexToBytes13
1327
+ hexToBytes as hexToBytes13,
1328
+ numberToVarBytesBE
1325
1329
  } from "@noble/curves/abstract/utils";
1326
1330
  import { secp256k1 as secp256k115 } from "@noble/curves/secp256k1";
1327
1331
  import { validateMnemonic } from "@scure/bip39";
1328
1332
  import { wordlist as wordlist2 } from "@scure/bip39/wordlists/english";
1329
1333
  import { Address as Address6, OutScript as OutScript5, Transaction as Transaction9 } from "@scure/btc-signer";
1330
1334
  import { Mutex } from "async-mutex";
1331
- import { uuidv7 as uuidv74 } from "uuidv7";
1335
+ import { uuidv7 as uuidv75, uuidv7obj } from "uuidv7";
1332
1336
 
1333
1337
  // src/graphql/client.ts
1334
1338
  import {
@@ -1516,9 +1520,10 @@ var SparkTransferToLeavesConnectionFromJson = (obj) => {
1516
1520
 
1517
1521
  // src/graphql/objects/Transfer.ts
1518
1522
  var Transfer = class {
1519
- constructor(totalAmount, sparkId) {
1523
+ constructor(totalAmount, sparkId, userRequestId) {
1520
1524
  this.totalAmount = totalAmount;
1521
1525
  this.sparkId = sparkId;
1526
+ this.userRequestId = userRequestId;
1522
1527
  autoBind(this);
1523
1528
  }
1524
1529
  async getLeaves(client, first = void 0, after = void 0) {
@@ -1564,16 +1569,34 @@ query FetchSparkTransferToLeavesConnection($entity_id: ID!, $first: Int, $after:
1564
1569
  toJson() {
1565
1570
  return {
1566
1571
  transfer_total_amount: CurrencyAmountToJson(this.totalAmount),
1567
- transfer_spark_id: this.sparkId
1572
+ transfer_spark_id: this.sparkId,
1573
+ transfer_user_request: { id: this.userRequestId }
1568
1574
  };
1569
1575
  }
1570
1576
  };
1571
1577
  var TransferFromJson = (obj) => {
1572
1578
  return new Transfer(
1573
1579
  CurrencyAmountFromJson(obj["transfer_total_amount"]),
1574
- obj["transfer_spark_id"]
1580
+ obj["transfer_spark_id"],
1581
+ obj["transfer_user_request"]?.id ?? void 0
1575
1582
  );
1576
1583
  };
1584
+ var FRAGMENT2 = `
1585
+ fragment TransferFragment on Transfer {
1586
+ __typename
1587
+ transfer_total_amount: total_amount {
1588
+ __typename
1589
+ currency_amount_original_value: original_value
1590
+ currency_amount_original_unit: original_unit
1591
+ currency_amount_preferred_currency_unit: preferred_currency_unit
1592
+ currency_amount_preferred_currency_value_rounded: preferred_currency_value_rounded
1593
+ currency_amount_preferred_currency_value_approx: preferred_currency_value_approx
1594
+ }
1595
+ transfer_spark_id: spark_id
1596
+ transfer_user_request: user_request {
1597
+ id
1598
+ }
1599
+ }`;
1577
1600
 
1578
1601
  // src/graphql/objects/CoopExitRequest.ts
1579
1602
  var CoopExitRequestFromJson = (obj) => {
@@ -1595,7 +1618,7 @@ var CoopExitRequestFromJson = (obj) => {
1595
1618
  transfer: !!obj["coop_exit_request_transfer"] ? TransferFromJson(obj["coop_exit_request_transfer"]) : void 0
1596
1619
  };
1597
1620
  };
1598
- var FRAGMENT2 = `
1621
+ var FRAGMENT3 = `
1599
1622
  fragment CoopExitRequestFragment on CoopExitRequest {
1600
1623
  __typename
1601
1624
  coop_exit_request_id: id
@@ -1653,7 +1676,7 @@ var CompleteCoopExit = `
1653
1676
  }
1654
1677
  }
1655
1678
 
1656
- ${FRAGMENT2}
1679
+ ${FRAGMENT3}
1657
1680
  `;
1658
1681
 
1659
1682
  // src/graphql/objects/LeavesSwapRequest.ts
@@ -1709,7 +1732,7 @@ var LeavesSwapRequestFromJson = (obj) => {
1709
1732
  expiresAt: obj["leaves_swap_request_expires_at"]
1710
1733
  };
1711
1734
  };
1712
- var FRAGMENT3 = `
1735
+ var FRAGMENT4 = `
1713
1736
  fragment LeavesSwapRequestFragment on LeavesSwapRequest {
1714
1737
  __typename
1715
1738
  leaves_swap_request_id: id
@@ -1788,7 +1811,7 @@ var CompleteLeavesSwap = `
1788
1811
  }
1789
1812
  }
1790
1813
 
1791
- ${FRAGMENT3}
1814
+ ${FRAGMENT4}
1792
1815
  `;
1793
1816
 
1794
1817
  // src/graphql/objects/GetChallengeOutput.ts
@@ -1797,7 +1820,7 @@ var GetChallengeOutputFromJson = (obj) => {
1797
1820
  protectedChallenge: obj["get_challenge_output_protected_challenge"]
1798
1821
  };
1799
1822
  };
1800
- var FRAGMENT4 = `
1823
+ var FRAGMENT5 = `
1801
1824
  fragment GetChallengeOutputFragment on GetChallengeOutput {
1802
1825
  __typename
1803
1826
  get_challenge_output_protected_challenge: protected_challenge
@@ -1815,7 +1838,7 @@ var GetChallenge = `
1815
1838
  }
1816
1839
  }
1817
1840
 
1818
- ${FRAGMENT4}
1841
+ ${FRAGMENT5}
1819
1842
  `;
1820
1843
 
1821
1844
  // src/graphql/mutations/RequestCoopExit.ts
@@ -1839,7 +1862,7 @@ var RequestCoopExit = `
1839
1862
  }
1840
1863
  }
1841
1864
  }
1842
- ${FRAGMENT2}
1865
+ ${FRAGMENT3}
1843
1866
  `;
1844
1867
 
1845
1868
  // src/graphql/objects/LightningReceiveRequest.ts
@@ -1889,7 +1912,7 @@ var LightningReceiveRequestFromJson = (obj) => {
1889
1912
  paymentPreimage: obj["lightning_receive_request_payment_preimage"]
1890
1913
  };
1891
1914
  };
1892
- var FRAGMENT5 = `
1915
+ var FRAGMENT6 = `
1893
1916
  fragment LightningReceiveRequestFragment on LightningReceiveRequest {
1894
1917
  __typename
1895
1918
  lightning_receive_request_id: id
@@ -1958,7 +1981,7 @@ var RequestLightningReceive = `
1958
1981
  }
1959
1982
  }
1960
1983
  }
1961
- ${FRAGMENT5}
1984
+ ${FRAGMENT6}
1962
1985
  `;
1963
1986
 
1964
1987
  // src/graphql/objects/LightningSendRequest.ts
@@ -1994,7 +2017,7 @@ var LightningSendRequestFromJson = (obj) => {
1994
2017
  paymentPreimage: obj["lightning_send_request_payment_preimage"]
1995
2018
  };
1996
2019
  };
1997
- var FRAGMENT6 = `
2020
+ var FRAGMENT7 = `
1998
2021
  fragment LightningSendRequestFragment on LightningSendRequest {
1999
2022
  __typename
2000
2023
  lightning_send_request_id: id
@@ -2042,7 +2065,7 @@ var RequestLightningSend = `
2042
2065
  }
2043
2066
  }
2044
2067
  }
2045
- ${FRAGMENT6}
2068
+ ${FRAGMENT7}
2046
2069
  `;
2047
2070
 
2048
2071
  // src/graphql/mutations/RequestSwapLeaves.ts
@@ -2068,7 +2091,7 @@ var RequestSwapLeaves = `
2068
2091
  }
2069
2092
  }
2070
2093
  }
2071
- ${FRAGMENT3}
2094
+ ${FRAGMENT4}
2072
2095
  `;
2073
2096
 
2074
2097
  // src/graphql/objects/VerifyChallengeOutput.ts
@@ -2078,7 +2101,7 @@ var VerifyChallengeOutputFromJson = (obj) => {
2078
2101
  sessionToken: obj["verify_challenge_output_session_token"]
2079
2102
  };
2080
2103
  };
2081
- var FRAGMENT7 = `
2104
+ var FRAGMENT8 = `
2082
2105
  fragment VerifyChallengeOutputFragment on VerifyChallengeOutput {
2083
2106
  __typename
2084
2107
  verify_challenge_output_valid_until: valid_until
@@ -2103,7 +2126,7 @@ var VerifyChallenge = `
2103
2126
  }
2104
2127
  }
2105
2128
 
2106
- ${FRAGMENT7}
2129
+ ${FRAGMENT8}
2107
2130
  `;
2108
2131
 
2109
2132
  // src/graphql/objects/ClaimStaticDepositRequestType.ts
@@ -2131,7 +2154,7 @@ var CoopExitFeeEstimatesOutputFromJson = (obj) => {
2131
2154
  speedSlow: !!obj["coop_exit_fee_estimates_output_speed_slow"] ? CoopExitFeeEstimateFromJson(obj["coop_exit_fee_estimates_output_speed_slow"]) : void 0
2132
2155
  };
2133
2156
  };
2134
- var FRAGMENT8 = `
2157
+ var FRAGMENT9 = `
2135
2158
  fragment CoopExitFeeEstimatesOutputFragment on CoopExitFeeEstimatesOutput {
2136
2159
  __typename
2137
2160
  coop_exit_fee_estimates_output_speed_fast: speed_fast {
@@ -2199,7 +2222,7 @@ var LeavesSwapFeeEstimateOutputFromJson = (obj) => {
2199
2222
  feeEstimate: CurrencyAmountFromJson(obj["leaves_swap_fee_estimate_output_fee_estimate"])
2200
2223
  };
2201
2224
  };
2202
- var FRAGMENT9 = `
2225
+ var FRAGMENT10 = `
2203
2226
  fragment LeavesSwapFeeEstimateOutputFragment on LeavesSwapFeeEstimateOutput {
2204
2227
  __typename
2205
2228
  leaves_swap_fee_estimate_output_fee_estimate: fee_estimate {
@@ -2218,7 +2241,7 @@ var LightningSendFeeEstimateOutputFromJson = (obj) => {
2218
2241
  feeEstimate: CurrencyAmountFromJson(obj["lightning_send_fee_estimate_output_fee_estimate"])
2219
2242
  };
2220
2243
  };
2221
- var FRAGMENT10 = `
2244
+ var FRAGMENT11 = `
2222
2245
  fragment LightningSendFeeEstimateOutputFragment on LightningSendFeeEstimateOutput {
2223
2246
  __typename
2224
2247
  lightning_send_fee_estimate_output_fee_estimate: fee_estimate {
@@ -2241,7 +2264,7 @@ var StaticDepositQuoteOutputFromJson = (obj) => {
2241
2264
  signature: obj["static_deposit_quote_output_signature"]
2242
2265
  };
2243
2266
  };
2244
- var FRAGMENT11 = `
2267
+ var FRAGMENT12 = `
2245
2268
  fragment StaticDepositQuoteOutputFragment on StaticDepositQuoteOutput {
2246
2269
  __typename
2247
2270
  static_deposit_quote_output_transaction_id: transaction_id
@@ -2266,7 +2289,7 @@ var CoopExitFeeEstimate2 = `
2266
2289
  ...CoopExitFeeEstimatesOutputFragment
2267
2290
  }
2268
2291
  }
2269
- ${FRAGMENT8}
2292
+ ${FRAGMENT9}
2270
2293
  `;
2271
2294
 
2272
2295
  // src/graphql/queries/GetClaimDepositQuote.ts
@@ -2286,7 +2309,7 @@ var GetClaimDepositQuote = `
2286
2309
  ...StaticDepositQuoteOutputFragment
2287
2310
  }
2288
2311
  }
2289
- ${FRAGMENT11}
2312
+ ${FRAGMENT12}
2290
2313
  `;
2291
2314
 
2292
2315
  // src/graphql/queries/LeavesSwapFeeEstimate.ts
@@ -2302,7 +2325,7 @@ var LeavesSwapFeeEstimate = `
2302
2325
  ...LeavesSwapFeeEstimateOutputFragment
2303
2326
  }
2304
2327
  }
2305
- ${FRAGMENT9}
2328
+ ${FRAGMENT10}
2306
2329
  `;
2307
2330
 
2308
2331
  // src/graphql/queries/LightningSendFeeEstimate.ts
@@ -2318,12 +2341,22 @@ var LightningSendFeeEstimate = `
2318
2341
  ...LightningSendFeeEstimateOutputFragment
2319
2342
  }
2320
2343
  }
2321
- ${FRAGMENT10}
2344
+ ${FRAGMENT11}
2345
+ `;
2346
+
2347
+ // src/graphql/queries/Transfer.ts
2348
+ var GetTransfer = `
2349
+ query Transfer($transfer_spark_id: UUID!) {
2350
+ transfer(transfer_spark_id: $transfer_spark_id) {
2351
+ ...TransferFragment
2352
+ }
2353
+ }
2354
+ ${FRAGMENT2}
2322
2355
  `;
2323
2356
 
2324
2357
  // src/graphql/objects/UserRequest.ts
2325
2358
  import { LightsparkException, isObject as isObject5 } from "@lightsparkdev/core";
2326
- var FRAGMENT12 = `
2359
+ var FRAGMENT13 = `
2327
2360
  fragment UserRequestFragment on UserRequest {
2328
2361
  __typename
2329
2362
  ... on ClaimStaticDeposit {
@@ -2535,7 +2568,7 @@ var UserRequest2 = `
2535
2568
  ...UserRequestFragment
2536
2569
  }
2537
2570
  }
2538
- ${FRAGMENT12}
2571
+ ${FRAGMENT13}
2539
2572
  `;
2540
2573
 
2541
2574
  // src/graphql/client.ts
@@ -2861,6 +2894,17 @@ var SspClient = class {
2861
2894
  }
2862
2895
  });
2863
2896
  }
2897
+ async getTransfer(id) {
2898
+ return await this.executeRawQuery({
2899
+ queryPayload: GetTransfer,
2900
+ variables: {
2901
+ transfer_spark_id: id
2902
+ },
2903
+ constructObject: (response) => {
2904
+ return TransferFromJson(response.transfer);
2905
+ }
2906
+ });
2907
+ }
2864
2908
  async getChallenge() {
2865
2909
  return await this.executeRawQuery(
2866
2910
  {
@@ -3232,14 +3276,14 @@ function isSet2(value) {
3232
3276
  }
3233
3277
 
3234
3278
  // src/proto/spark.ts
3235
- var Network = /* @__PURE__ */ ((Network5) => {
3236
- Network5[Network5["UNSPECIFIED"] = 0] = "UNSPECIFIED";
3237
- Network5[Network5["MAINNET"] = 1] = "MAINNET";
3238
- Network5[Network5["REGTEST"] = 2] = "REGTEST";
3239
- Network5[Network5["TESTNET"] = 3] = "TESTNET";
3240
- Network5[Network5["SIGNET"] = 4] = "SIGNET";
3241
- Network5[Network5["UNRECOGNIZED"] = -1] = "UNRECOGNIZED";
3242
- return Network5;
3279
+ var Network = /* @__PURE__ */ ((Network6) => {
3280
+ Network6[Network6["UNSPECIFIED"] = 0] = "UNSPECIFIED";
3281
+ Network6[Network6["MAINNET"] = 1] = "MAINNET";
3282
+ Network6[Network6["REGTEST"] = 2] = "REGTEST";
3283
+ Network6[Network6["TESTNET"] = 3] = "TESTNET";
3284
+ Network6[Network6["SIGNET"] = 4] = "SIGNET";
3285
+ Network6[Network6["UNRECOGNIZED"] = -1] = "UNRECOGNIZED";
3286
+ return Network6;
3243
3287
  })(Network || {});
3244
3288
  function networkFromJSON(object) {
3245
3289
  switch (object) {
@@ -3289,6 +3333,9 @@ function tokenTransactionStatusFromJSON(object) {
3289
3333
  case 1:
3290
3334
  case "TOKEN_TRANSACTION_SIGNED":
3291
3335
  return 1 /* TOKEN_TRANSACTION_SIGNED */;
3336
+ case 5:
3337
+ case "TOKEN_TRANSACTION_REVEALED":
3338
+ return 5 /* TOKEN_TRANSACTION_REVEALED */;
3292
3339
  case 2:
3293
3340
  case "TOKEN_TRANSACTION_FINALIZED":
3294
3341
  return 2 /* TOKEN_TRANSACTION_FINALIZED */;
@@ -3313,6 +3360,8 @@ function tokenTransactionStatusToJSON(object) {
3313
3360
  return "TOKEN_TRANSACTION_STARTED";
3314
3361
  case 1 /* TOKEN_TRANSACTION_SIGNED */:
3315
3362
  return "TOKEN_TRANSACTION_SIGNED";
3363
+ case 5 /* TOKEN_TRANSACTION_REVEALED */:
3364
+ return "TOKEN_TRANSACTION_REVEALED";
3316
3365
  case 2 /* TOKEN_TRANSACTION_FINALIZED */:
3317
3366
  return "TOKEN_TRANSACTION_FINALIZED";
3318
3367
  case 3 /* TOKEN_TRANSACTION_STARTED_CANCELLED */:
@@ -8013,59 +8062,6 @@ var SecretShare = {
8013
8062
  return message;
8014
8063
  }
8015
8064
  };
8016
- function createBaseSecretProof() {
8017
- return { proofs: [] };
8018
- }
8019
- var SecretProof = {
8020
- encode(message, writer = new BinaryWriter4()) {
8021
- for (const v of message.proofs) {
8022
- writer.uint32(10).bytes(v);
8023
- }
8024
- return writer;
8025
- },
8026
- decode(input, length) {
8027
- const reader = input instanceof BinaryReader4 ? input : new BinaryReader4(input);
8028
- let end = length === void 0 ? reader.len : reader.pos + length;
8029
- const message = createBaseSecretProof();
8030
- while (reader.pos < end) {
8031
- const tag = reader.uint32();
8032
- switch (tag >>> 3) {
8033
- case 1: {
8034
- if (tag !== 10) {
8035
- break;
8036
- }
8037
- message.proofs.push(reader.bytes());
8038
- continue;
8039
- }
8040
- }
8041
- if ((tag & 7) === 4 || tag === 0) {
8042
- break;
8043
- }
8044
- reader.skip(tag & 7);
8045
- }
8046
- return message;
8047
- },
8048
- fromJSON(object) {
8049
- return {
8050
- proofs: globalThis.Array.isArray(object?.proofs) ? object.proofs.map((e) => bytesFromBase642(e)) : []
8051
- };
8052
- },
8053
- toJSON(message) {
8054
- const obj = {};
8055
- if (message.proofs?.length) {
8056
- obj.proofs = message.proofs.map((e) => base64FromBytes2(e));
8057
- }
8058
- return obj;
8059
- },
8060
- create(base) {
8061
- return SecretProof.fromPartial(base ?? {});
8062
- },
8063
- fromPartial(object) {
8064
- const message = createBaseSecretProof();
8065
- message.proofs = object.proofs?.map((e) => e) || [];
8066
- return message;
8067
- }
8068
- };
8069
8065
  function createBaseLeafRefundTxSigningJob() {
8070
8066
  return { leafId: "", refundTxSigningJob: void 0 };
8071
8067
  }
@@ -8478,7 +8474,6 @@ function createBaseStartTransferRequest() {
8478
8474
  leavesToSend: [],
8479
8475
  receiverIdentityPublicKey: new Uint8Array(0),
8480
8476
  expiryTime: void 0,
8481
- keyTweakProofs: {},
8482
8477
  transferPackage: void 0
8483
8478
  };
8484
8479
  }
@@ -8499,9 +8494,6 @@ var StartTransferRequest = {
8499
8494
  if (message.expiryTime !== void 0) {
8500
8495
  Timestamp.encode(toTimestamp(message.expiryTime), writer.uint32(42).fork()).join();
8501
8496
  }
8502
- Object.entries(message.keyTweakProofs).forEach(([key, value]) => {
8503
- StartTransferRequest_KeyTweakProofsEntry.encode({ key, value }, writer.uint32(50).fork()).join();
8504
- });
8505
8497
  if (message.transferPackage !== void 0) {
8506
8498
  TransferPackage.encode(message.transferPackage, writer.uint32(58).fork()).join();
8507
8499
  }
@@ -8549,16 +8541,6 @@ var StartTransferRequest = {
8549
8541
  message.expiryTime = fromTimestamp(Timestamp.decode(reader, reader.uint32()));
8550
8542
  continue;
8551
8543
  }
8552
- case 6: {
8553
- if (tag !== 50) {
8554
- break;
8555
- }
8556
- const entry6 = StartTransferRequest_KeyTweakProofsEntry.decode(reader, reader.uint32());
8557
- if (entry6.value !== void 0) {
8558
- message.keyTweakProofs[entry6.key] = entry6.value;
8559
- }
8560
- continue;
8561
- }
8562
8544
  case 7: {
8563
8545
  if (tag !== 58) {
8564
8546
  break;
@@ -8581,10 +8563,6 @@ var StartTransferRequest = {
8581
8563
  leavesToSend: globalThis.Array.isArray(object?.leavesToSend) ? object.leavesToSend.map((e) => LeafRefundTxSigningJob.fromJSON(e)) : [],
8582
8564
  receiverIdentityPublicKey: isSet3(object.receiverIdentityPublicKey) ? bytesFromBase642(object.receiverIdentityPublicKey) : new Uint8Array(0),
8583
8565
  expiryTime: isSet3(object.expiryTime) ? fromJsonTimestamp(object.expiryTime) : void 0,
8584
- keyTweakProofs: isObject8(object.keyTweakProofs) ? Object.entries(object.keyTweakProofs).reduce((acc, [key, value]) => {
8585
- acc[key] = SecretProof.fromJSON(value);
8586
- return acc;
8587
- }, {}) : {},
8588
8566
  transferPackage: isSet3(object.transferPackage) ? TransferPackage.fromJSON(object.transferPackage) : void 0
8589
8567
  };
8590
8568
  },
@@ -8605,15 +8583,6 @@ var StartTransferRequest = {
8605
8583
  if (message.expiryTime !== void 0) {
8606
8584
  obj.expiryTime = message.expiryTime.toISOString();
8607
8585
  }
8608
- if (message.keyTweakProofs) {
8609
- const entries = Object.entries(message.keyTweakProofs);
8610
- if (entries.length > 0) {
8611
- obj.keyTweakProofs = {};
8612
- entries.forEach(([k, v]) => {
8613
- obj.keyTweakProofs[k] = SecretProof.toJSON(v);
8614
- });
8615
- }
8616
- }
8617
8586
  if (message.transferPackage !== void 0) {
8618
8587
  obj.transferPackage = TransferPackage.toJSON(message.transferPackage);
8619
8588
  }
@@ -8629,87 +8598,10 @@ var StartTransferRequest = {
8629
8598
  message.leavesToSend = object.leavesToSend?.map((e) => LeafRefundTxSigningJob.fromPartial(e)) || [];
8630
8599
  message.receiverIdentityPublicKey = object.receiverIdentityPublicKey ?? new Uint8Array(0);
8631
8600
  message.expiryTime = object.expiryTime ?? void 0;
8632
- message.keyTweakProofs = Object.entries(object.keyTweakProofs ?? {}).reduce(
8633
- (acc, [key, value]) => {
8634
- if (value !== void 0) {
8635
- acc[key] = SecretProof.fromPartial(value);
8636
- }
8637
- return acc;
8638
- },
8639
- {}
8640
- );
8641
8601
  message.transferPackage = object.transferPackage !== void 0 && object.transferPackage !== null ? TransferPackage.fromPartial(object.transferPackage) : void 0;
8642
8602
  return message;
8643
8603
  }
8644
8604
  };
8645
- function createBaseStartTransferRequest_KeyTweakProofsEntry() {
8646
- return { key: "", value: void 0 };
8647
- }
8648
- var StartTransferRequest_KeyTweakProofsEntry = {
8649
- encode(message, writer = new BinaryWriter4()) {
8650
- if (message.key !== "") {
8651
- writer.uint32(10).string(message.key);
8652
- }
8653
- if (message.value !== void 0) {
8654
- SecretProof.encode(message.value, writer.uint32(18).fork()).join();
8655
- }
8656
- return writer;
8657
- },
8658
- decode(input, length) {
8659
- const reader = input instanceof BinaryReader4 ? input : new BinaryReader4(input);
8660
- let end = length === void 0 ? reader.len : reader.pos + length;
8661
- const message = createBaseStartTransferRequest_KeyTweakProofsEntry();
8662
- while (reader.pos < end) {
8663
- const tag = reader.uint32();
8664
- switch (tag >>> 3) {
8665
- case 1: {
8666
- if (tag !== 10) {
8667
- break;
8668
- }
8669
- message.key = reader.string();
8670
- continue;
8671
- }
8672
- case 2: {
8673
- if (tag !== 18) {
8674
- break;
8675
- }
8676
- message.value = SecretProof.decode(reader, reader.uint32());
8677
- continue;
8678
- }
8679
- }
8680
- if ((tag & 7) === 4 || tag === 0) {
8681
- break;
8682
- }
8683
- reader.skip(tag & 7);
8684
- }
8685
- return message;
8686
- },
8687
- fromJSON(object) {
8688
- return {
8689
- key: isSet3(object.key) ? globalThis.String(object.key) : "",
8690
- value: isSet3(object.value) ? SecretProof.fromJSON(object.value) : void 0
8691
- };
8692
- },
8693
- toJSON(message) {
8694
- const obj = {};
8695
- if (message.key !== "") {
8696
- obj.key = message.key;
8697
- }
8698
- if (message.value !== void 0) {
8699
- obj.value = SecretProof.toJSON(message.value);
8700
- }
8701
- return obj;
8702
- },
8703
- create(base) {
8704
- return StartTransferRequest_KeyTweakProofsEntry.fromPartial(base ?? {});
8705
- },
8706
- fromPartial(object) {
8707
- const message = createBaseStartTransferRequest_KeyTweakProofsEntry();
8708
- message.key = object.key ?? "";
8709
- message.value = object.value !== void 0 && object.value !== null ? SecretProof.fromPartial(object.value) : void 0;
8710
- return message;
8711
- }
8712
- };
8713
8605
  function createBaseStartTransferResponse() {
8714
8606
  return { transfer: void 0, signingResults: [] };
8715
8607
  }
@@ -9309,12 +9201,7 @@ var FinalizeTransferRequest = {
9309
9201
  }
9310
9202
  };
9311
9203
  function createBaseFinalizeTransferWithTransferPackageRequest() {
9312
- return {
9313
- transferId: "",
9314
- ownerIdentityPublicKey: new Uint8Array(0),
9315
- transferPackage: void 0,
9316
- refundSignatures: {}
9317
- };
9204
+ return { transferId: "", ownerIdentityPublicKey: new Uint8Array(0), transferPackage: void 0 };
9318
9205
  }
9319
9206
  var FinalizeTransferWithTransferPackageRequest = {
9320
9207
  encode(message, writer = new BinaryWriter4()) {
@@ -9327,12 +9214,6 @@ var FinalizeTransferWithTransferPackageRequest = {
9327
9214
  if (message.transferPackage !== void 0) {
9328
9215
  TransferPackage.encode(message.transferPackage, writer.uint32(26).fork()).join();
9329
9216
  }
9330
- Object.entries(message.refundSignatures).forEach(([key, value]) => {
9331
- FinalizeTransferWithTransferPackageRequest_RefundSignaturesEntry.encode(
9332
- { key, value },
9333
- writer.uint32(34).fork()
9334
- ).join();
9335
- });
9336
9217
  return writer;
9337
9218
  },
9338
9219
  decode(input, length) {
@@ -9363,19 +9244,6 @@ var FinalizeTransferWithTransferPackageRequest = {
9363
9244
  message.transferPackage = TransferPackage.decode(reader, reader.uint32());
9364
9245
  continue;
9365
9246
  }
9366
- case 4: {
9367
- if (tag !== 34) {
9368
- break;
9369
- }
9370
- const entry4 = FinalizeTransferWithTransferPackageRequest_RefundSignaturesEntry.decode(
9371
- reader,
9372
- reader.uint32()
9373
- );
9374
- if (entry4.value !== void 0) {
9375
- message.refundSignatures[entry4.key] = entry4.value;
9376
- }
9377
- continue;
9378
- }
9379
9247
  }
9380
9248
  if ((tag & 7) === 4 || tag === 0) {
9381
9249
  break;
@@ -9388,11 +9256,7 @@ var FinalizeTransferWithTransferPackageRequest = {
9388
9256
  return {
9389
9257
  transferId: isSet3(object.transferId) ? globalThis.String(object.transferId) : "",
9390
9258
  ownerIdentityPublicKey: isSet3(object.ownerIdentityPublicKey) ? bytesFromBase642(object.ownerIdentityPublicKey) : new Uint8Array(0),
9391
- transferPackage: isSet3(object.transferPackage) ? TransferPackage.fromJSON(object.transferPackage) : void 0,
9392
- refundSignatures: isObject8(object.refundSignatures) ? Object.entries(object.refundSignatures).reduce((acc, [key, value]) => {
9393
- acc[key] = bytesFromBase642(value);
9394
- return acc;
9395
- }, {}) : {}
9259
+ transferPackage: isSet3(object.transferPackage) ? TransferPackage.fromJSON(object.transferPackage) : void 0
9396
9260
  };
9397
9261
  },
9398
9262
  toJSON(message) {
@@ -9406,15 +9270,6 @@ var FinalizeTransferWithTransferPackageRequest = {
9406
9270
  if (message.transferPackage !== void 0) {
9407
9271
  obj.transferPackage = TransferPackage.toJSON(message.transferPackage);
9408
9272
  }
9409
- if (message.refundSignatures) {
9410
- const entries = Object.entries(message.refundSignatures);
9411
- if (entries.length > 0) {
9412
- obj.refundSignatures = {};
9413
- entries.forEach(([k, v]) => {
9414
- obj.refundSignatures[k] = base64FromBytes2(v);
9415
- });
9416
- }
9417
- }
9418
9273
  return obj;
9419
9274
  },
9420
9275
  create(base) {
@@ -9425,35 +9280,23 @@ var FinalizeTransferWithTransferPackageRequest = {
9425
9280
  message.transferId = object.transferId ?? "";
9426
9281
  message.ownerIdentityPublicKey = object.ownerIdentityPublicKey ?? new Uint8Array(0);
9427
9282
  message.transferPackage = object.transferPackage !== void 0 && object.transferPackage !== null ? TransferPackage.fromPartial(object.transferPackage) : void 0;
9428
- message.refundSignatures = Object.entries(object.refundSignatures ?? {}).reduce(
9429
- (acc, [key, value]) => {
9430
- if (value !== void 0) {
9431
- acc[key] = value;
9432
- }
9433
- return acc;
9434
- },
9435
- {}
9436
- );
9437
9283
  return message;
9438
9284
  }
9439
9285
  };
9440
- function createBaseFinalizeTransferWithTransferPackageRequest_RefundSignaturesEntry() {
9441
- return { key: "", value: new Uint8Array(0) };
9286
+ function createBaseFinalizeTransferResponse() {
9287
+ return { transfer: void 0 };
9442
9288
  }
9443
- var FinalizeTransferWithTransferPackageRequest_RefundSignaturesEntry = {
9289
+ var FinalizeTransferResponse = {
9444
9290
  encode(message, writer = new BinaryWriter4()) {
9445
- if (message.key !== "") {
9446
- writer.uint32(10).string(message.key);
9447
- }
9448
- if (message.value.length !== 0) {
9449
- writer.uint32(18).bytes(message.value);
9291
+ if (message.transfer !== void 0) {
9292
+ Transfer6.encode(message.transfer, writer.uint32(10).fork()).join();
9450
9293
  }
9451
9294
  return writer;
9452
9295
  },
9453
9296
  decode(input, length) {
9454
9297
  const reader = input instanceof BinaryReader4 ? input : new BinaryReader4(input);
9455
9298
  let end = length === void 0 ? reader.len : reader.pos + length;
9456
- const message = createBaseFinalizeTransferWithTransferPackageRequest_RefundSignaturesEntry();
9299
+ const message = createBaseFinalizeTransferResponse();
9457
9300
  while (reader.pos < end) {
9458
9301
  const tag = reader.uint32();
9459
9302
  switch (tag >>> 3) {
@@ -9461,14 +9304,7 @@ var FinalizeTransferWithTransferPackageRequest_RefundSignaturesEntry = {
9461
9304
  if (tag !== 10) {
9462
9305
  break;
9463
9306
  }
9464
- message.key = reader.string();
9465
- continue;
9466
- }
9467
- case 2: {
9468
- if (tag !== 18) {
9469
- break;
9470
- }
9471
- message.value = reader.bytes();
9307
+ message.transfer = Transfer6.decode(reader, reader.uint32());
9472
9308
  continue;
9473
9309
  }
9474
9310
  }
@@ -9480,70 +9316,12 @@ var FinalizeTransferWithTransferPackageRequest_RefundSignaturesEntry = {
9480
9316
  return message;
9481
9317
  },
9482
9318
  fromJSON(object) {
9483
- return {
9484
- key: isSet3(object.key) ? globalThis.String(object.key) : "",
9485
- value: isSet3(object.value) ? bytesFromBase642(object.value) : new Uint8Array(0)
9486
- };
9319
+ return { transfer: isSet3(object.transfer) ? Transfer6.fromJSON(object.transfer) : void 0 };
9487
9320
  },
9488
9321
  toJSON(message) {
9489
9322
  const obj = {};
9490
- if (message.key !== "") {
9491
- obj.key = message.key;
9492
- }
9493
- if (message.value.length !== 0) {
9494
- obj.value = base64FromBytes2(message.value);
9495
- }
9496
- return obj;
9497
- },
9498
- create(base) {
9499
- return FinalizeTransferWithTransferPackageRequest_RefundSignaturesEntry.fromPartial(base ?? {});
9500
- },
9501
- fromPartial(object) {
9502
- const message = createBaseFinalizeTransferWithTransferPackageRequest_RefundSignaturesEntry();
9503
- message.key = object.key ?? "";
9504
- message.value = object.value ?? new Uint8Array(0);
9505
- return message;
9506
- }
9507
- };
9508
- function createBaseFinalizeTransferResponse() {
9509
- return { transfer: void 0 };
9510
- }
9511
- var FinalizeTransferResponse = {
9512
- encode(message, writer = new BinaryWriter4()) {
9513
- if (message.transfer !== void 0) {
9514
- Transfer6.encode(message.transfer, writer.uint32(10).fork()).join();
9515
- }
9516
- return writer;
9517
- },
9518
- decode(input, length) {
9519
- const reader = input instanceof BinaryReader4 ? input : new BinaryReader4(input);
9520
- let end = length === void 0 ? reader.len : reader.pos + length;
9521
- const message = createBaseFinalizeTransferResponse();
9522
- while (reader.pos < end) {
9523
- const tag = reader.uint32();
9524
- switch (tag >>> 3) {
9525
- case 1: {
9526
- if (tag !== 10) {
9527
- break;
9528
- }
9529
- message.transfer = Transfer6.decode(reader, reader.uint32());
9530
- continue;
9531
- }
9532
- }
9533
- if ((tag & 7) === 4 || tag === 0) {
9534
- break;
9535
- }
9536
- reader.skip(tag & 7);
9537
- }
9538
- return message;
9539
- },
9540
- fromJSON(object) {
9541
- return { transfer: isSet3(object.transfer) ? Transfer6.fromJSON(object.transfer) : void 0 };
9542
- },
9543
- toJSON(message) {
9544
- const obj = {};
9545
- if (message.transfer !== void 0) {
9546
- obj.transfer = Transfer6.toJSON(message.transfer);
9323
+ if (message.transfer !== void 0) {
9324
+ obj.transfer = Transfer6.toJSON(message.transfer);
9547
9325
  }
9548
9326
  return obj;
9549
9327
  },
@@ -14701,13 +14479,16 @@ var QueryBalanceResponse_NodeBalancesEntry = {
14701
14479
  }
14702
14480
  };
14703
14481
  function createBaseSparkAddress() {
14704
- return { identityPublicKey: new Uint8Array(0) };
14482
+ return { identityPublicKey: new Uint8Array(0), paymentIntentFields: void 0 };
14705
14483
  }
14706
14484
  var SparkAddress = {
14707
14485
  encode(message, writer = new BinaryWriter4()) {
14708
14486
  if (message.identityPublicKey.length !== 0) {
14709
14487
  writer.uint32(10).bytes(message.identityPublicKey);
14710
14488
  }
14489
+ if (message.paymentIntentFields !== void 0) {
14490
+ PaymentIntentFields.encode(message.paymentIntentFields, writer.uint32(18).fork()).join();
14491
+ }
14711
14492
  return writer;
14712
14493
  },
14713
14494
  decode(input, length) {
@@ -14724,6 +14505,13 @@ var SparkAddress = {
14724
14505
  message.identityPublicKey = reader.bytes();
14725
14506
  continue;
14726
14507
  }
14508
+ case 2: {
14509
+ if (tag !== 18) {
14510
+ break;
14511
+ }
14512
+ message.paymentIntentFields = PaymentIntentFields.decode(reader, reader.uint32());
14513
+ continue;
14514
+ }
14727
14515
  }
14728
14516
  if ((tag & 7) === 4 || tag === 0) {
14729
14517
  break;
@@ -14734,7 +14522,8 @@ var SparkAddress = {
14734
14522
  },
14735
14523
  fromJSON(object) {
14736
14524
  return {
14737
- identityPublicKey: isSet3(object.identityPublicKey) ? bytesFromBase642(object.identityPublicKey) : new Uint8Array(0)
14525
+ identityPublicKey: isSet3(object.identityPublicKey) ? bytesFromBase642(object.identityPublicKey) : new Uint8Array(0),
14526
+ paymentIntentFields: isSet3(object.paymentIntentFields) ? PaymentIntentFields.fromJSON(object.paymentIntentFields) : void 0
14738
14527
  };
14739
14528
  },
14740
14529
  toJSON(message) {
@@ -14742,6 +14531,9 @@ var SparkAddress = {
14742
14531
  if (message.identityPublicKey.length !== 0) {
14743
14532
  obj.identityPublicKey = base64FromBytes2(message.identityPublicKey);
14744
14533
  }
14534
+ if (message.paymentIntentFields !== void 0) {
14535
+ obj.paymentIntentFields = PaymentIntentFields.toJSON(message.paymentIntentFields);
14536
+ }
14745
14537
  return obj;
14746
14538
  },
14747
14539
  create(base) {
@@ -14750,6 +14542,105 @@ var SparkAddress = {
14750
14542
  fromPartial(object) {
14751
14543
  const message = createBaseSparkAddress();
14752
14544
  message.identityPublicKey = object.identityPublicKey ?? new Uint8Array(0);
14545
+ message.paymentIntentFields = object.paymentIntentFields !== void 0 && object.paymentIntentFields !== null ? PaymentIntentFields.fromPartial(object.paymentIntentFields) : void 0;
14546
+ return message;
14547
+ }
14548
+ };
14549
+ function createBasePaymentIntentFields() {
14550
+ return { id: new Uint8Array(0), assetIdentifier: void 0, assetAmount: new Uint8Array(0), memo: void 0 };
14551
+ }
14552
+ var PaymentIntentFields = {
14553
+ encode(message, writer = new BinaryWriter4()) {
14554
+ if (message.id.length !== 0) {
14555
+ writer.uint32(10).bytes(message.id);
14556
+ }
14557
+ if (message.assetIdentifier !== void 0) {
14558
+ writer.uint32(18).bytes(message.assetIdentifier);
14559
+ }
14560
+ if (message.assetAmount.length !== 0) {
14561
+ writer.uint32(26).bytes(message.assetAmount);
14562
+ }
14563
+ if (message.memo !== void 0) {
14564
+ writer.uint32(34).string(message.memo);
14565
+ }
14566
+ return writer;
14567
+ },
14568
+ decode(input, length) {
14569
+ const reader = input instanceof BinaryReader4 ? input : new BinaryReader4(input);
14570
+ let end = length === void 0 ? reader.len : reader.pos + length;
14571
+ const message = createBasePaymentIntentFields();
14572
+ while (reader.pos < end) {
14573
+ const tag = reader.uint32();
14574
+ switch (tag >>> 3) {
14575
+ case 1: {
14576
+ if (tag !== 10) {
14577
+ break;
14578
+ }
14579
+ message.id = reader.bytes();
14580
+ continue;
14581
+ }
14582
+ case 2: {
14583
+ if (tag !== 18) {
14584
+ break;
14585
+ }
14586
+ message.assetIdentifier = reader.bytes();
14587
+ continue;
14588
+ }
14589
+ case 3: {
14590
+ if (tag !== 26) {
14591
+ break;
14592
+ }
14593
+ message.assetAmount = reader.bytes();
14594
+ continue;
14595
+ }
14596
+ case 4: {
14597
+ if (tag !== 34) {
14598
+ break;
14599
+ }
14600
+ message.memo = reader.string();
14601
+ continue;
14602
+ }
14603
+ }
14604
+ if ((tag & 7) === 4 || tag === 0) {
14605
+ break;
14606
+ }
14607
+ reader.skip(tag & 7);
14608
+ }
14609
+ return message;
14610
+ },
14611
+ fromJSON(object) {
14612
+ return {
14613
+ id: isSet3(object.id) ? bytesFromBase642(object.id) : new Uint8Array(0),
14614
+ assetIdentifier: isSet3(object.assetIdentifier) ? bytesFromBase642(object.assetIdentifier) : void 0,
14615
+ assetAmount: isSet3(object.assetAmount) ? bytesFromBase642(object.assetAmount) : new Uint8Array(0),
14616
+ memo: isSet3(object.memo) ? globalThis.String(object.memo) : void 0
14617
+ };
14618
+ },
14619
+ toJSON(message) {
14620
+ const obj = {};
14621
+ if (message.id.length !== 0) {
14622
+ obj.id = base64FromBytes2(message.id);
14623
+ }
14624
+ if (message.assetIdentifier !== void 0) {
14625
+ obj.assetIdentifier = base64FromBytes2(message.assetIdentifier);
14626
+ }
14627
+ if (message.assetAmount.length !== 0) {
14628
+ obj.assetAmount = base64FromBytes2(message.assetAmount);
14629
+ }
14630
+ if (message.memo !== void 0) {
14631
+ obj.memo = message.memo;
14632
+ }
14633
+ return obj;
14634
+ },
14635
+ create(base) {
14636
+ return PaymentIntentFields.fromPartial(base ?? {});
14637
+ },
14638
+ fromPartial(object) {
14639
+ const message = createBasePaymentIntentFields();
14640
+ message.id = object.id ?? new Uint8Array(0);
14641
+ message.assetIdentifier = object.assetIdentifier ?? void 0;
14642
+ message.assetAmount = object.assetAmount ?? new Uint8Array(0);
14643
+ message.memo = object.memo ?? void 0;
14753
14644
  return message;
14754
14645
  }
14755
14646
  };
@@ -16277,13 +16168,13 @@ function isSet3(value) {
16277
16168
  import { NetworkType as Lrc20NetworkType } from "@buildonspark/lrc20-sdk";
16278
16169
  import * as btc from "@scure/btc-signer";
16279
16170
  import * as bitcoin from "bitcoinjs-lib";
16280
- var Network2 = /* @__PURE__ */ ((Network5) => {
16281
- Network5[Network5["MAINNET"] = 0] = "MAINNET";
16282
- Network5[Network5["TESTNET"] = 1] = "TESTNET";
16283
- Network5[Network5["SIGNET"] = 2] = "SIGNET";
16284
- Network5[Network5["REGTEST"] = 3] = "REGTEST";
16285
- Network5[Network5["LOCAL"] = 4] = "LOCAL";
16286
- return Network5;
16171
+ var Network2 = /* @__PURE__ */ ((Network6) => {
16172
+ Network6[Network6["MAINNET"] = 0] = "MAINNET";
16173
+ Network6[Network6["TESTNET"] = 1] = "TESTNET";
16174
+ Network6[Network6["SIGNET"] = 2] = "SIGNET";
16175
+ Network6[Network6["REGTEST"] = 3] = "REGTEST";
16176
+ Network6[Network6["LOCAL"] = 4] = "LOCAL";
16177
+ return Network6;
16287
16178
  })(Network2 || {});
16288
16179
  var NetworkToProto = {
16289
16180
  [0 /* MAINNET */]: 1 /* MAINNET */,
@@ -16475,6 +16366,7 @@ var BASE_CONFIG = {
16475
16366
  threshold: 2,
16476
16367
  signingOperators: getLocalSigningOperators(),
16477
16368
  tokenSignatures: "SCHNORR",
16369
+ tokenTransactionVersion: "V0",
16478
16370
  electrsUrl: getElectrsUrl("LOCAL"),
16479
16371
  expectedWithdrawBondSats: 1e4,
16480
16372
  expectedWithdrawRelativeBlockLocktime: 1e3,
@@ -16682,6 +16574,9 @@ var WalletConfigService = class {
16682
16574
  getTokenSignatures() {
16683
16575
  return this.config.tokenSignatures;
16684
16576
  }
16577
+ getTokenTransactionVersion() {
16578
+ return this.config.tokenTransactionVersion;
16579
+ }
16685
16580
  getElectrsUrl() {
16686
16581
  return this.config.electrsUrl;
16687
16582
  }
@@ -17456,108 +17351,1159 @@ function isSet5(value) {
17456
17351
  return value !== null && value !== void 0;
17457
17352
  }
17458
17353
 
17459
- // src/services/connection.ts
17460
- var ConnectionManager = class {
17461
- config;
17462
- clients = /* @__PURE__ */ new Map();
17463
- // We are going to .unref() the underlying channels for stream clients
17464
- // to prevent the stream from keeping the process alive
17465
- // Using a different map to avoid unforeseen problems with unary calls
17466
- streamClients = /* @__PURE__ */ new Map();
17467
- constructor(config) {
17468
- this.config = config;
17469
- }
17470
- // When initializing wallet, go ahead and instantiate all clients
17471
- async createClients() {
17472
- await Promise.all(
17473
- Object.values(this.config.getSigningOperators()).map((operator) => {
17474
- this.createSparkClient(operator.address);
17475
- })
17476
- );
17477
- }
17478
- async closeConnections() {
17479
- await Promise.all(
17480
- Array.from(this.clients.values()).map(
17481
- (client) => client.client.close?.()
17482
- )
17483
- );
17484
- this.clients.clear();
17485
- }
17486
- async createMockClient(address2) {
17487
- const channel = await this.createChannelWithTLS(address2);
17488
- const isNodeChannel = "close" in channel;
17489
- if (isNode2 && isNodeChannel && !isBun) {
17490
- const grpcModule = await import("nice-grpc");
17491
- const { createClient } = "default" in grpcModule ? grpcModule.default : grpcModule;
17492
- const client = createClient(MockServiceDefinition, channel);
17493
- return { ...client, close: () => channel.close() };
17494
- } else if (!isNodeChannel) {
17495
- const grpcModule = await import("nice-grpc-web");
17496
- const { createClient } = "default" in grpcModule ? grpcModule.default : grpcModule;
17497
- const client = createClient(MockServiceDefinition, channel);
17498
- return { ...client, close: () => {
17499
- } };
17500
- } else {
17501
- throw new Error("Channel does not have close in NodeJS environment");
17354
+ // src/proto/spark_token.ts
17355
+ import { BinaryReader as BinaryReader7, BinaryWriter as BinaryWriter7 } from "@bufbuild/protobuf/wire";
17356
+ function createBaseTokenOutputToSpend2() {
17357
+ return { prevTokenTransactionHash: new Uint8Array(0), prevTokenTransactionVout: 0 };
17358
+ }
17359
+ var TokenOutputToSpend2 = {
17360
+ encode(message, writer = new BinaryWriter7()) {
17361
+ if (message.prevTokenTransactionHash.length !== 0) {
17362
+ writer.uint32(10).bytes(message.prevTokenTransactionHash);
17502
17363
  }
17503
- }
17504
- async createChannelWithTLS(address2, certPath) {
17505
- try {
17506
- if (isNode2 && !isBun) {
17507
- const grpcModule = await import("nice-grpc");
17508
- const { ChannelCredentials, createChannel } = "default" in grpcModule ? grpcModule.default : grpcModule;
17509
- if (certPath) {
17510
- try {
17511
- const fs2 = await import("fs");
17512
- const cert = fs2.readFileSync(certPath);
17513
- return createChannel(address2, ChannelCredentials.createSsl(cert));
17514
- } catch (error) {
17515
- console.error("Error reading certificate:", error);
17516
- return createChannel(
17517
- address2,
17518
- ChannelCredentials.createSsl(null, null, null, {
17519
- rejectUnauthorized: false
17520
- })
17521
- );
17364
+ if (message.prevTokenTransactionVout !== 0) {
17365
+ writer.uint32(16).uint32(message.prevTokenTransactionVout);
17366
+ }
17367
+ return writer;
17368
+ },
17369
+ decode(input, length) {
17370
+ const reader = input instanceof BinaryReader7 ? input : new BinaryReader7(input);
17371
+ let end = length === void 0 ? reader.len : reader.pos + length;
17372
+ const message = createBaseTokenOutputToSpend2();
17373
+ while (reader.pos < end) {
17374
+ const tag = reader.uint32();
17375
+ switch (tag >>> 3) {
17376
+ case 1: {
17377
+ if (tag !== 10) {
17378
+ break;
17522
17379
  }
17523
- } else {
17524
- return createChannel(
17525
- address2,
17526
- ChannelCredentials.createSsl(null, null, null, {
17527
- rejectUnauthorized: false
17528
- })
17529
- );
17380
+ message.prevTokenTransactionHash = reader.bytes();
17381
+ continue;
17382
+ }
17383
+ case 2: {
17384
+ if (tag !== 16) {
17385
+ break;
17386
+ }
17387
+ message.prevTokenTransactionVout = reader.uint32();
17388
+ continue;
17530
17389
  }
17531
- } else {
17532
- const grpcModule = await import("nice-grpc-web");
17533
- const { createChannel, FetchTransport } = "default" in grpcModule ? grpcModule.default : grpcModule;
17534
- const { XHRTransport } = await import("./xhr-transport-WHMS3FGG.js");
17535
- return createChannel(
17536
- address2,
17537
- isReactNative ? XHRTransport() : FetchTransport()
17538
- );
17539
17390
  }
17540
- } catch (error) {
17541
- console.error("Channel creation error:", error);
17542
- throw new NetworkError(
17543
- "Failed to create channel",
17544
- {
17545
- url: address2,
17546
- operation: "createChannel",
17547
- errorCount: 1,
17548
- errors: error instanceof Error ? error.message : String(error)
17549
- },
17550
- error
17551
- );
17552
- }
17553
- }
17554
- async createSparkStreamClient(address2, certPath) {
17555
- if (this.streamClients.has(address2)) {
17556
- return this.streamClients.get(address2).client;
17391
+ if ((tag & 7) === 4 || tag === 0) {
17392
+ break;
17393
+ }
17394
+ reader.skip(tag & 7);
17557
17395
  }
17558
- const authToken = await this.authenticate(address2);
17559
- const channel = await this.createChannelWithTLS(address2, certPath);
17560
- const middleware = this.createMiddleware(address2, authToken);
17396
+ return message;
17397
+ },
17398
+ fromJSON(object) {
17399
+ return {
17400
+ prevTokenTransactionHash: isSet6(object.prevTokenTransactionHash) ? bytesFromBase645(object.prevTokenTransactionHash) : new Uint8Array(0),
17401
+ prevTokenTransactionVout: isSet6(object.prevTokenTransactionVout) ? globalThis.Number(object.prevTokenTransactionVout) : 0
17402
+ };
17403
+ },
17404
+ toJSON(message) {
17405
+ const obj = {};
17406
+ if (message.prevTokenTransactionHash.length !== 0) {
17407
+ obj.prevTokenTransactionHash = base64FromBytes5(message.prevTokenTransactionHash);
17408
+ }
17409
+ if (message.prevTokenTransactionVout !== 0) {
17410
+ obj.prevTokenTransactionVout = Math.round(message.prevTokenTransactionVout);
17411
+ }
17412
+ return obj;
17413
+ },
17414
+ create(base) {
17415
+ return TokenOutputToSpend2.fromPartial(base ?? {});
17416
+ },
17417
+ fromPartial(object) {
17418
+ const message = createBaseTokenOutputToSpend2();
17419
+ message.prevTokenTransactionHash = object.prevTokenTransactionHash ?? new Uint8Array(0);
17420
+ message.prevTokenTransactionVout = object.prevTokenTransactionVout ?? 0;
17421
+ return message;
17422
+ }
17423
+ };
17424
+ function createBaseTokenTransferInput2() {
17425
+ return { outputsToSpend: [] };
17426
+ }
17427
+ var TokenTransferInput2 = {
17428
+ encode(message, writer = new BinaryWriter7()) {
17429
+ for (const v of message.outputsToSpend) {
17430
+ TokenOutputToSpend2.encode(v, writer.uint32(10).fork()).join();
17431
+ }
17432
+ return writer;
17433
+ },
17434
+ decode(input, length) {
17435
+ const reader = input instanceof BinaryReader7 ? input : new BinaryReader7(input);
17436
+ let end = length === void 0 ? reader.len : reader.pos + length;
17437
+ const message = createBaseTokenTransferInput2();
17438
+ while (reader.pos < end) {
17439
+ const tag = reader.uint32();
17440
+ switch (tag >>> 3) {
17441
+ case 1: {
17442
+ if (tag !== 10) {
17443
+ break;
17444
+ }
17445
+ message.outputsToSpend.push(TokenOutputToSpend2.decode(reader, reader.uint32()));
17446
+ continue;
17447
+ }
17448
+ }
17449
+ if ((tag & 7) === 4 || tag === 0) {
17450
+ break;
17451
+ }
17452
+ reader.skip(tag & 7);
17453
+ }
17454
+ return message;
17455
+ },
17456
+ fromJSON(object) {
17457
+ return {
17458
+ outputsToSpend: globalThis.Array.isArray(object?.outputsToSpend) ? object.outputsToSpend.map((e) => TokenOutputToSpend2.fromJSON(e)) : []
17459
+ };
17460
+ },
17461
+ toJSON(message) {
17462
+ const obj = {};
17463
+ if (message.outputsToSpend?.length) {
17464
+ obj.outputsToSpend = message.outputsToSpend.map((e) => TokenOutputToSpend2.toJSON(e));
17465
+ }
17466
+ return obj;
17467
+ },
17468
+ create(base) {
17469
+ return TokenTransferInput2.fromPartial(base ?? {});
17470
+ },
17471
+ fromPartial(object) {
17472
+ const message = createBaseTokenTransferInput2();
17473
+ message.outputsToSpend = object.outputsToSpend?.map((e) => TokenOutputToSpend2.fromPartial(e)) || [];
17474
+ return message;
17475
+ }
17476
+ };
17477
+ function createBaseTokenMintInput2() {
17478
+ return { issuerPublicKey: new Uint8Array(0), issuerProvidedTimestamp: 0 };
17479
+ }
17480
+ var TokenMintInput2 = {
17481
+ encode(message, writer = new BinaryWriter7()) {
17482
+ if (message.issuerPublicKey.length !== 0) {
17483
+ writer.uint32(10).bytes(message.issuerPublicKey);
17484
+ }
17485
+ if (message.issuerProvidedTimestamp !== 0) {
17486
+ writer.uint32(16).uint64(message.issuerProvidedTimestamp);
17487
+ }
17488
+ return writer;
17489
+ },
17490
+ decode(input, length) {
17491
+ const reader = input instanceof BinaryReader7 ? input : new BinaryReader7(input);
17492
+ let end = length === void 0 ? reader.len : reader.pos + length;
17493
+ const message = createBaseTokenMintInput2();
17494
+ while (reader.pos < end) {
17495
+ const tag = reader.uint32();
17496
+ switch (tag >>> 3) {
17497
+ case 1: {
17498
+ if (tag !== 10) {
17499
+ break;
17500
+ }
17501
+ message.issuerPublicKey = reader.bytes();
17502
+ continue;
17503
+ }
17504
+ case 2: {
17505
+ if (tag !== 16) {
17506
+ break;
17507
+ }
17508
+ message.issuerProvidedTimestamp = longToNumber4(reader.uint64());
17509
+ continue;
17510
+ }
17511
+ }
17512
+ if ((tag & 7) === 4 || tag === 0) {
17513
+ break;
17514
+ }
17515
+ reader.skip(tag & 7);
17516
+ }
17517
+ return message;
17518
+ },
17519
+ fromJSON(object) {
17520
+ return {
17521
+ issuerPublicKey: isSet6(object.issuerPublicKey) ? bytesFromBase645(object.issuerPublicKey) : new Uint8Array(0),
17522
+ issuerProvidedTimestamp: isSet6(object.issuerProvidedTimestamp) ? globalThis.Number(object.issuerProvidedTimestamp) : 0
17523
+ };
17524
+ },
17525
+ toJSON(message) {
17526
+ const obj = {};
17527
+ if (message.issuerPublicKey.length !== 0) {
17528
+ obj.issuerPublicKey = base64FromBytes5(message.issuerPublicKey);
17529
+ }
17530
+ if (message.issuerProvidedTimestamp !== 0) {
17531
+ obj.issuerProvidedTimestamp = Math.round(message.issuerProvidedTimestamp);
17532
+ }
17533
+ return obj;
17534
+ },
17535
+ create(base) {
17536
+ return TokenMintInput2.fromPartial(base ?? {});
17537
+ },
17538
+ fromPartial(object) {
17539
+ const message = createBaseTokenMintInput2();
17540
+ message.issuerPublicKey = object.issuerPublicKey ?? new Uint8Array(0);
17541
+ message.issuerProvidedTimestamp = object.issuerProvidedTimestamp ?? 0;
17542
+ return message;
17543
+ }
17544
+ };
17545
+ function createBaseTokenOutput2() {
17546
+ return {
17547
+ id: void 0,
17548
+ ownerPublicKey: new Uint8Array(0),
17549
+ revocationCommitment: void 0,
17550
+ withdrawBondSats: void 0,
17551
+ withdrawRelativeBlockLocktime: void 0,
17552
+ tokenPublicKey: new Uint8Array(0),
17553
+ tokenAmount: new Uint8Array(0)
17554
+ };
17555
+ }
17556
+ var TokenOutput2 = {
17557
+ encode(message, writer = new BinaryWriter7()) {
17558
+ if (message.id !== void 0) {
17559
+ writer.uint32(10).string(message.id);
17560
+ }
17561
+ if (message.ownerPublicKey.length !== 0) {
17562
+ writer.uint32(18).bytes(message.ownerPublicKey);
17563
+ }
17564
+ if (message.revocationCommitment !== void 0) {
17565
+ writer.uint32(26).bytes(message.revocationCommitment);
17566
+ }
17567
+ if (message.withdrawBondSats !== void 0) {
17568
+ writer.uint32(32).uint64(message.withdrawBondSats);
17569
+ }
17570
+ if (message.withdrawRelativeBlockLocktime !== void 0) {
17571
+ writer.uint32(40).uint64(message.withdrawRelativeBlockLocktime);
17572
+ }
17573
+ if (message.tokenPublicKey.length !== 0) {
17574
+ writer.uint32(50).bytes(message.tokenPublicKey);
17575
+ }
17576
+ if (message.tokenAmount.length !== 0) {
17577
+ writer.uint32(58).bytes(message.tokenAmount);
17578
+ }
17579
+ return writer;
17580
+ },
17581
+ decode(input, length) {
17582
+ const reader = input instanceof BinaryReader7 ? input : new BinaryReader7(input);
17583
+ let end = length === void 0 ? reader.len : reader.pos + length;
17584
+ const message = createBaseTokenOutput2();
17585
+ while (reader.pos < end) {
17586
+ const tag = reader.uint32();
17587
+ switch (tag >>> 3) {
17588
+ case 1: {
17589
+ if (tag !== 10) {
17590
+ break;
17591
+ }
17592
+ message.id = reader.string();
17593
+ continue;
17594
+ }
17595
+ case 2: {
17596
+ if (tag !== 18) {
17597
+ break;
17598
+ }
17599
+ message.ownerPublicKey = reader.bytes();
17600
+ continue;
17601
+ }
17602
+ case 3: {
17603
+ if (tag !== 26) {
17604
+ break;
17605
+ }
17606
+ message.revocationCommitment = reader.bytes();
17607
+ continue;
17608
+ }
17609
+ case 4: {
17610
+ if (tag !== 32) {
17611
+ break;
17612
+ }
17613
+ message.withdrawBondSats = longToNumber4(reader.uint64());
17614
+ continue;
17615
+ }
17616
+ case 5: {
17617
+ if (tag !== 40) {
17618
+ break;
17619
+ }
17620
+ message.withdrawRelativeBlockLocktime = longToNumber4(reader.uint64());
17621
+ continue;
17622
+ }
17623
+ case 6: {
17624
+ if (tag !== 50) {
17625
+ break;
17626
+ }
17627
+ message.tokenPublicKey = reader.bytes();
17628
+ continue;
17629
+ }
17630
+ case 7: {
17631
+ if (tag !== 58) {
17632
+ break;
17633
+ }
17634
+ message.tokenAmount = reader.bytes();
17635
+ continue;
17636
+ }
17637
+ }
17638
+ if ((tag & 7) === 4 || tag === 0) {
17639
+ break;
17640
+ }
17641
+ reader.skip(tag & 7);
17642
+ }
17643
+ return message;
17644
+ },
17645
+ fromJSON(object) {
17646
+ return {
17647
+ id: isSet6(object.id) ? globalThis.String(object.id) : void 0,
17648
+ ownerPublicKey: isSet6(object.ownerPublicKey) ? bytesFromBase645(object.ownerPublicKey) : new Uint8Array(0),
17649
+ revocationCommitment: isSet6(object.revocationCommitment) ? bytesFromBase645(object.revocationCommitment) : void 0,
17650
+ withdrawBondSats: isSet6(object.withdrawBondSats) ? globalThis.Number(object.withdrawBondSats) : void 0,
17651
+ withdrawRelativeBlockLocktime: isSet6(object.withdrawRelativeBlockLocktime) ? globalThis.Number(object.withdrawRelativeBlockLocktime) : void 0,
17652
+ tokenPublicKey: isSet6(object.tokenPublicKey) ? bytesFromBase645(object.tokenPublicKey) : new Uint8Array(0),
17653
+ tokenAmount: isSet6(object.tokenAmount) ? bytesFromBase645(object.tokenAmount) : new Uint8Array(0)
17654
+ };
17655
+ },
17656
+ toJSON(message) {
17657
+ const obj = {};
17658
+ if (message.id !== void 0) {
17659
+ obj.id = message.id;
17660
+ }
17661
+ if (message.ownerPublicKey.length !== 0) {
17662
+ obj.ownerPublicKey = base64FromBytes5(message.ownerPublicKey);
17663
+ }
17664
+ if (message.revocationCommitment !== void 0) {
17665
+ obj.revocationCommitment = base64FromBytes5(message.revocationCommitment);
17666
+ }
17667
+ if (message.withdrawBondSats !== void 0) {
17668
+ obj.withdrawBondSats = Math.round(message.withdrawBondSats);
17669
+ }
17670
+ if (message.withdrawRelativeBlockLocktime !== void 0) {
17671
+ obj.withdrawRelativeBlockLocktime = Math.round(message.withdrawRelativeBlockLocktime);
17672
+ }
17673
+ if (message.tokenPublicKey.length !== 0) {
17674
+ obj.tokenPublicKey = base64FromBytes5(message.tokenPublicKey);
17675
+ }
17676
+ if (message.tokenAmount.length !== 0) {
17677
+ obj.tokenAmount = base64FromBytes5(message.tokenAmount);
17678
+ }
17679
+ return obj;
17680
+ },
17681
+ create(base) {
17682
+ return TokenOutput2.fromPartial(base ?? {});
17683
+ },
17684
+ fromPartial(object) {
17685
+ const message = createBaseTokenOutput2();
17686
+ message.id = object.id ?? void 0;
17687
+ message.ownerPublicKey = object.ownerPublicKey ?? new Uint8Array(0);
17688
+ message.revocationCommitment = object.revocationCommitment ?? void 0;
17689
+ message.withdrawBondSats = object.withdrawBondSats ?? void 0;
17690
+ message.withdrawRelativeBlockLocktime = object.withdrawRelativeBlockLocktime ?? void 0;
17691
+ message.tokenPublicKey = object.tokenPublicKey ?? new Uint8Array(0);
17692
+ message.tokenAmount = object.tokenAmount ?? new Uint8Array(0);
17693
+ return message;
17694
+ }
17695
+ };
17696
+ function createBaseTokenTransaction2() {
17697
+ return {
17698
+ version: 0,
17699
+ tokenInputs: void 0,
17700
+ tokenOutputs: [],
17701
+ sparkOperatorIdentityPublicKeys: [],
17702
+ expiryTime: void 0,
17703
+ network: 0
17704
+ };
17705
+ }
17706
+ var TokenTransaction2 = {
17707
+ encode(message, writer = new BinaryWriter7()) {
17708
+ if (message.version !== 0) {
17709
+ writer.uint32(8).uint32(message.version);
17710
+ }
17711
+ switch (message.tokenInputs?.$case) {
17712
+ case "mintInput":
17713
+ TokenMintInput2.encode(message.tokenInputs.mintInput, writer.uint32(18).fork()).join();
17714
+ break;
17715
+ case "transferInput":
17716
+ TokenTransferInput2.encode(message.tokenInputs.transferInput, writer.uint32(26).fork()).join();
17717
+ break;
17718
+ }
17719
+ for (const v of message.tokenOutputs) {
17720
+ TokenOutput2.encode(v, writer.uint32(34).fork()).join();
17721
+ }
17722
+ for (const v of message.sparkOperatorIdentityPublicKeys) {
17723
+ writer.uint32(42).bytes(v);
17724
+ }
17725
+ if (message.expiryTime !== void 0) {
17726
+ Timestamp.encode(toTimestamp2(message.expiryTime), writer.uint32(50).fork()).join();
17727
+ }
17728
+ if (message.network !== 0) {
17729
+ writer.uint32(56).int32(message.network);
17730
+ }
17731
+ return writer;
17732
+ },
17733
+ decode(input, length) {
17734
+ const reader = input instanceof BinaryReader7 ? input : new BinaryReader7(input);
17735
+ let end = length === void 0 ? reader.len : reader.pos + length;
17736
+ const message = createBaseTokenTransaction2();
17737
+ while (reader.pos < end) {
17738
+ const tag = reader.uint32();
17739
+ switch (tag >>> 3) {
17740
+ case 1: {
17741
+ if (tag !== 8) {
17742
+ break;
17743
+ }
17744
+ message.version = reader.uint32();
17745
+ continue;
17746
+ }
17747
+ case 2: {
17748
+ if (tag !== 18) {
17749
+ break;
17750
+ }
17751
+ message.tokenInputs = { $case: "mintInput", mintInput: TokenMintInput2.decode(reader, reader.uint32()) };
17752
+ continue;
17753
+ }
17754
+ case 3: {
17755
+ if (tag !== 26) {
17756
+ break;
17757
+ }
17758
+ message.tokenInputs = {
17759
+ $case: "transferInput",
17760
+ transferInput: TokenTransferInput2.decode(reader, reader.uint32())
17761
+ };
17762
+ continue;
17763
+ }
17764
+ case 4: {
17765
+ if (tag !== 34) {
17766
+ break;
17767
+ }
17768
+ message.tokenOutputs.push(TokenOutput2.decode(reader, reader.uint32()));
17769
+ continue;
17770
+ }
17771
+ case 5: {
17772
+ if (tag !== 42) {
17773
+ break;
17774
+ }
17775
+ message.sparkOperatorIdentityPublicKeys.push(reader.bytes());
17776
+ continue;
17777
+ }
17778
+ case 6: {
17779
+ if (tag !== 50) {
17780
+ break;
17781
+ }
17782
+ message.expiryTime = fromTimestamp2(Timestamp.decode(reader, reader.uint32()));
17783
+ continue;
17784
+ }
17785
+ case 7: {
17786
+ if (tag !== 56) {
17787
+ break;
17788
+ }
17789
+ message.network = reader.int32();
17790
+ continue;
17791
+ }
17792
+ }
17793
+ if ((tag & 7) === 4 || tag === 0) {
17794
+ break;
17795
+ }
17796
+ reader.skip(tag & 7);
17797
+ }
17798
+ return message;
17799
+ },
17800
+ fromJSON(object) {
17801
+ return {
17802
+ version: isSet6(object.version) ? globalThis.Number(object.version) : 0,
17803
+ tokenInputs: isSet6(object.mintInput) ? { $case: "mintInput", mintInput: TokenMintInput2.fromJSON(object.mintInput) } : isSet6(object.transferInput) ? { $case: "transferInput", transferInput: TokenTransferInput2.fromJSON(object.transferInput) } : void 0,
17804
+ tokenOutputs: globalThis.Array.isArray(object?.tokenOutputs) ? object.tokenOutputs.map((e) => TokenOutput2.fromJSON(e)) : [],
17805
+ sparkOperatorIdentityPublicKeys: globalThis.Array.isArray(object?.sparkOperatorIdentityPublicKeys) ? object.sparkOperatorIdentityPublicKeys.map((e) => bytesFromBase645(e)) : [],
17806
+ expiryTime: isSet6(object.expiryTime) ? fromJsonTimestamp2(object.expiryTime) : void 0,
17807
+ network: isSet6(object.network) ? networkFromJSON(object.network) : 0
17808
+ };
17809
+ },
17810
+ toJSON(message) {
17811
+ const obj = {};
17812
+ if (message.version !== 0) {
17813
+ obj.version = Math.round(message.version);
17814
+ }
17815
+ if (message.tokenInputs?.$case === "mintInput") {
17816
+ obj.mintInput = TokenMintInput2.toJSON(message.tokenInputs.mintInput);
17817
+ } else if (message.tokenInputs?.$case === "transferInput") {
17818
+ obj.transferInput = TokenTransferInput2.toJSON(message.tokenInputs.transferInput);
17819
+ }
17820
+ if (message.tokenOutputs?.length) {
17821
+ obj.tokenOutputs = message.tokenOutputs.map((e) => TokenOutput2.toJSON(e));
17822
+ }
17823
+ if (message.sparkOperatorIdentityPublicKeys?.length) {
17824
+ obj.sparkOperatorIdentityPublicKeys = message.sparkOperatorIdentityPublicKeys.map((e) => base64FromBytes5(e));
17825
+ }
17826
+ if (message.expiryTime !== void 0) {
17827
+ obj.expiryTime = message.expiryTime.toISOString();
17828
+ }
17829
+ if (message.network !== 0) {
17830
+ obj.network = networkToJSON(message.network);
17831
+ }
17832
+ return obj;
17833
+ },
17834
+ create(base) {
17835
+ return TokenTransaction2.fromPartial(base ?? {});
17836
+ },
17837
+ fromPartial(object) {
17838
+ const message = createBaseTokenTransaction2();
17839
+ message.version = object.version ?? 0;
17840
+ switch (object.tokenInputs?.$case) {
17841
+ case "mintInput": {
17842
+ if (object.tokenInputs?.mintInput !== void 0 && object.tokenInputs?.mintInput !== null) {
17843
+ message.tokenInputs = {
17844
+ $case: "mintInput",
17845
+ mintInput: TokenMintInput2.fromPartial(object.tokenInputs.mintInput)
17846
+ };
17847
+ }
17848
+ break;
17849
+ }
17850
+ case "transferInput": {
17851
+ if (object.tokenInputs?.transferInput !== void 0 && object.tokenInputs?.transferInput !== null) {
17852
+ message.tokenInputs = {
17853
+ $case: "transferInput",
17854
+ transferInput: TokenTransferInput2.fromPartial(object.tokenInputs.transferInput)
17855
+ };
17856
+ }
17857
+ break;
17858
+ }
17859
+ }
17860
+ message.tokenOutputs = object.tokenOutputs?.map((e) => TokenOutput2.fromPartial(e)) || [];
17861
+ message.sparkOperatorIdentityPublicKeys = object.sparkOperatorIdentityPublicKeys?.map((e) => e) || [];
17862
+ message.expiryTime = object.expiryTime ?? void 0;
17863
+ message.network = object.network ?? 0;
17864
+ return message;
17865
+ }
17866
+ };
17867
+ function createBaseSignatureWithIndex2() {
17868
+ return { signature: new Uint8Array(0), inputIndex: 0 };
17869
+ }
17870
+ var SignatureWithIndex2 = {
17871
+ encode(message, writer = new BinaryWriter7()) {
17872
+ if (message.signature.length !== 0) {
17873
+ writer.uint32(10).bytes(message.signature);
17874
+ }
17875
+ if (message.inputIndex !== 0) {
17876
+ writer.uint32(16).uint32(message.inputIndex);
17877
+ }
17878
+ return writer;
17879
+ },
17880
+ decode(input, length) {
17881
+ const reader = input instanceof BinaryReader7 ? input : new BinaryReader7(input);
17882
+ let end = length === void 0 ? reader.len : reader.pos + length;
17883
+ const message = createBaseSignatureWithIndex2();
17884
+ while (reader.pos < end) {
17885
+ const tag = reader.uint32();
17886
+ switch (tag >>> 3) {
17887
+ case 1: {
17888
+ if (tag !== 10) {
17889
+ break;
17890
+ }
17891
+ message.signature = reader.bytes();
17892
+ continue;
17893
+ }
17894
+ case 2: {
17895
+ if (tag !== 16) {
17896
+ break;
17897
+ }
17898
+ message.inputIndex = reader.uint32();
17899
+ continue;
17900
+ }
17901
+ }
17902
+ if ((tag & 7) === 4 || tag === 0) {
17903
+ break;
17904
+ }
17905
+ reader.skip(tag & 7);
17906
+ }
17907
+ return message;
17908
+ },
17909
+ fromJSON(object) {
17910
+ return {
17911
+ signature: isSet6(object.signature) ? bytesFromBase645(object.signature) : new Uint8Array(0),
17912
+ inputIndex: isSet6(object.inputIndex) ? globalThis.Number(object.inputIndex) : 0
17913
+ };
17914
+ },
17915
+ toJSON(message) {
17916
+ const obj = {};
17917
+ if (message.signature.length !== 0) {
17918
+ obj.signature = base64FromBytes5(message.signature);
17919
+ }
17920
+ if (message.inputIndex !== 0) {
17921
+ obj.inputIndex = Math.round(message.inputIndex);
17922
+ }
17923
+ return obj;
17924
+ },
17925
+ create(base) {
17926
+ return SignatureWithIndex2.fromPartial(base ?? {});
17927
+ },
17928
+ fromPartial(object) {
17929
+ const message = createBaseSignatureWithIndex2();
17930
+ message.signature = object.signature ?? new Uint8Array(0);
17931
+ message.inputIndex = object.inputIndex ?? 0;
17932
+ return message;
17933
+ }
17934
+ };
17935
+ function createBaseInputTtxoSignaturesPerOperator() {
17936
+ return { ttxoSignatures: [], operatorIdentityPublicKey: new Uint8Array(0) };
17937
+ }
17938
+ var InputTtxoSignaturesPerOperator = {
17939
+ encode(message, writer = new BinaryWriter7()) {
17940
+ for (const v of message.ttxoSignatures) {
17941
+ SignatureWithIndex2.encode(v, writer.uint32(10).fork()).join();
17942
+ }
17943
+ if (message.operatorIdentityPublicKey.length !== 0) {
17944
+ writer.uint32(18).bytes(message.operatorIdentityPublicKey);
17945
+ }
17946
+ return writer;
17947
+ },
17948
+ decode(input, length) {
17949
+ const reader = input instanceof BinaryReader7 ? input : new BinaryReader7(input);
17950
+ let end = length === void 0 ? reader.len : reader.pos + length;
17951
+ const message = createBaseInputTtxoSignaturesPerOperator();
17952
+ while (reader.pos < end) {
17953
+ const tag = reader.uint32();
17954
+ switch (tag >>> 3) {
17955
+ case 1: {
17956
+ if (tag !== 10) {
17957
+ break;
17958
+ }
17959
+ message.ttxoSignatures.push(SignatureWithIndex2.decode(reader, reader.uint32()));
17960
+ continue;
17961
+ }
17962
+ case 2: {
17963
+ if (tag !== 18) {
17964
+ break;
17965
+ }
17966
+ message.operatorIdentityPublicKey = reader.bytes();
17967
+ continue;
17968
+ }
17969
+ }
17970
+ if ((tag & 7) === 4 || tag === 0) {
17971
+ break;
17972
+ }
17973
+ reader.skip(tag & 7);
17974
+ }
17975
+ return message;
17976
+ },
17977
+ fromJSON(object) {
17978
+ return {
17979
+ ttxoSignatures: globalThis.Array.isArray(object?.ttxoSignatures) ? object.ttxoSignatures.map((e) => SignatureWithIndex2.fromJSON(e)) : [],
17980
+ operatorIdentityPublicKey: isSet6(object.operatorIdentityPublicKey) ? bytesFromBase645(object.operatorIdentityPublicKey) : new Uint8Array(0)
17981
+ };
17982
+ },
17983
+ toJSON(message) {
17984
+ const obj = {};
17985
+ if (message.ttxoSignatures?.length) {
17986
+ obj.ttxoSignatures = message.ttxoSignatures.map((e) => SignatureWithIndex2.toJSON(e));
17987
+ }
17988
+ if (message.operatorIdentityPublicKey.length !== 0) {
17989
+ obj.operatorIdentityPublicKey = base64FromBytes5(message.operatorIdentityPublicKey);
17990
+ }
17991
+ return obj;
17992
+ },
17993
+ create(base) {
17994
+ return InputTtxoSignaturesPerOperator.fromPartial(base ?? {});
17995
+ },
17996
+ fromPartial(object) {
17997
+ const message = createBaseInputTtxoSignaturesPerOperator();
17998
+ message.ttxoSignatures = object.ttxoSignatures?.map((e) => SignatureWithIndex2.fromPartial(e)) || [];
17999
+ message.operatorIdentityPublicKey = object.operatorIdentityPublicKey ?? new Uint8Array(0);
18000
+ return message;
18001
+ }
18002
+ };
18003
+ function createBaseStartTransactionRequest() {
18004
+ return {
18005
+ identityPublicKey: new Uint8Array(0),
18006
+ partialTokenTransaction: void 0,
18007
+ partialTokenTransactionOwnerSignatures: [],
18008
+ validityDurationSeconds: 0
18009
+ };
18010
+ }
18011
+ var StartTransactionRequest = {
18012
+ encode(message, writer = new BinaryWriter7()) {
18013
+ if (message.identityPublicKey.length !== 0) {
18014
+ writer.uint32(10).bytes(message.identityPublicKey);
18015
+ }
18016
+ if (message.partialTokenTransaction !== void 0) {
18017
+ TokenTransaction2.encode(message.partialTokenTransaction, writer.uint32(18).fork()).join();
18018
+ }
18019
+ for (const v of message.partialTokenTransactionOwnerSignatures) {
18020
+ SignatureWithIndex2.encode(v, writer.uint32(26).fork()).join();
18021
+ }
18022
+ if (message.validityDurationSeconds !== 0) {
18023
+ writer.uint32(32).uint64(message.validityDurationSeconds);
18024
+ }
18025
+ return writer;
18026
+ },
18027
+ decode(input, length) {
18028
+ const reader = input instanceof BinaryReader7 ? input : new BinaryReader7(input);
18029
+ let end = length === void 0 ? reader.len : reader.pos + length;
18030
+ const message = createBaseStartTransactionRequest();
18031
+ while (reader.pos < end) {
18032
+ const tag = reader.uint32();
18033
+ switch (tag >>> 3) {
18034
+ case 1: {
18035
+ if (tag !== 10) {
18036
+ break;
18037
+ }
18038
+ message.identityPublicKey = reader.bytes();
18039
+ continue;
18040
+ }
18041
+ case 2: {
18042
+ if (tag !== 18) {
18043
+ break;
18044
+ }
18045
+ message.partialTokenTransaction = TokenTransaction2.decode(reader, reader.uint32());
18046
+ continue;
18047
+ }
18048
+ case 3: {
18049
+ if (tag !== 26) {
18050
+ break;
18051
+ }
18052
+ message.partialTokenTransactionOwnerSignatures.push(SignatureWithIndex2.decode(reader, reader.uint32()));
18053
+ continue;
18054
+ }
18055
+ case 4: {
18056
+ if (tag !== 32) {
18057
+ break;
18058
+ }
18059
+ message.validityDurationSeconds = longToNumber4(reader.uint64());
18060
+ continue;
18061
+ }
18062
+ }
18063
+ if ((tag & 7) === 4 || tag === 0) {
18064
+ break;
18065
+ }
18066
+ reader.skip(tag & 7);
18067
+ }
18068
+ return message;
18069
+ },
18070
+ fromJSON(object) {
18071
+ return {
18072
+ identityPublicKey: isSet6(object.identityPublicKey) ? bytesFromBase645(object.identityPublicKey) : new Uint8Array(0),
18073
+ partialTokenTransaction: isSet6(object.partialTokenTransaction) ? TokenTransaction2.fromJSON(object.partialTokenTransaction) : void 0,
18074
+ partialTokenTransactionOwnerSignatures: globalThis.Array.isArray(object?.partialTokenTransactionOwnerSignatures) ? object.partialTokenTransactionOwnerSignatures.map((e) => SignatureWithIndex2.fromJSON(e)) : [],
18075
+ validityDurationSeconds: isSet6(object.validityDurationSeconds) ? globalThis.Number(object.validityDurationSeconds) : 0
18076
+ };
18077
+ },
18078
+ toJSON(message) {
18079
+ const obj = {};
18080
+ if (message.identityPublicKey.length !== 0) {
18081
+ obj.identityPublicKey = base64FromBytes5(message.identityPublicKey);
18082
+ }
18083
+ if (message.partialTokenTransaction !== void 0) {
18084
+ obj.partialTokenTransaction = TokenTransaction2.toJSON(message.partialTokenTransaction);
18085
+ }
18086
+ if (message.partialTokenTransactionOwnerSignatures?.length) {
18087
+ obj.partialTokenTransactionOwnerSignatures = message.partialTokenTransactionOwnerSignatures.map(
18088
+ (e) => SignatureWithIndex2.toJSON(e)
18089
+ );
18090
+ }
18091
+ if (message.validityDurationSeconds !== 0) {
18092
+ obj.validityDurationSeconds = Math.round(message.validityDurationSeconds);
18093
+ }
18094
+ return obj;
18095
+ },
18096
+ create(base) {
18097
+ return StartTransactionRequest.fromPartial(base ?? {});
18098
+ },
18099
+ fromPartial(object) {
18100
+ const message = createBaseStartTransactionRequest();
18101
+ message.identityPublicKey = object.identityPublicKey ?? new Uint8Array(0);
18102
+ message.partialTokenTransaction = object.partialTokenTransaction !== void 0 && object.partialTokenTransaction !== null ? TokenTransaction2.fromPartial(object.partialTokenTransaction) : void 0;
18103
+ message.partialTokenTransactionOwnerSignatures = object.partialTokenTransactionOwnerSignatures?.map((e) => SignatureWithIndex2.fromPartial(e)) || [];
18104
+ message.validityDurationSeconds = object.validityDurationSeconds ?? 0;
18105
+ return message;
18106
+ }
18107
+ };
18108
+ function createBaseStartTransactionResponse() {
18109
+ return { finalTokenTransaction: void 0, keyshareInfo: void 0 };
18110
+ }
18111
+ var StartTransactionResponse = {
18112
+ encode(message, writer = new BinaryWriter7()) {
18113
+ if (message.finalTokenTransaction !== void 0) {
18114
+ TokenTransaction2.encode(message.finalTokenTransaction, writer.uint32(10).fork()).join();
18115
+ }
18116
+ if (message.keyshareInfo !== void 0) {
18117
+ SigningKeyshare.encode(message.keyshareInfo, writer.uint32(18).fork()).join();
18118
+ }
18119
+ return writer;
18120
+ },
18121
+ decode(input, length) {
18122
+ const reader = input instanceof BinaryReader7 ? input : new BinaryReader7(input);
18123
+ let end = length === void 0 ? reader.len : reader.pos + length;
18124
+ const message = createBaseStartTransactionResponse();
18125
+ while (reader.pos < end) {
18126
+ const tag = reader.uint32();
18127
+ switch (tag >>> 3) {
18128
+ case 1: {
18129
+ if (tag !== 10) {
18130
+ break;
18131
+ }
18132
+ message.finalTokenTransaction = TokenTransaction2.decode(reader, reader.uint32());
18133
+ continue;
18134
+ }
18135
+ case 2: {
18136
+ if (tag !== 18) {
18137
+ break;
18138
+ }
18139
+ message.keyshareInfo = SigningKeyshare.decode(reader, reader.uint32());
18140
+ continue;
18141
+ }
18142
+ }
18143
+ if ((tag & 7) === 4 || tag === 0) {
18144
+ break;
18145
+ }
18146
+ reader.skip(tag & 7);
18147
+ }
18148
+ return message;
18149
+ },
18150
+ fromJSON(object) {
18151
+ return {
18152
+ finalTokenTransaction: isSet6(object.finalTokenTransaction) ? TokenTransaction2.fromJSON(object.finalTokenTransaction) : void 0,
18153
+ keyshareInfo: isSet6(object.keyshareInfo) ? SigningKeyshare.fromJSON(object.keyshareInfo) : void 0
18154
+ };
18155
+ },
18156
+ toJSON(message) {
18157
+ const obj = {};
18158
+ if (message.finalTokenTransaction !== void 0) {
18159
+ obj.finalTokenTransaction = TokenTransaction2.toJSON(message.finalTokenTransaction);
18160
+ }
18161
+ if (message.keyshareInfo !== void 0) {
18162
+ obj.keyshareInfo = SigningKeyshare.toJSON(message.keyshareInfo);
18163
+ }
18164
+ return obj;
18165
+ },
18166
+ create(base) {
18167
+ return StartTransactionResponse.fromPartial(base ?? {});
18168
+ },
18169
+ fromPartial(object) {
18170
+ const message = createBaseStartTransactionResponse();
18171
+ message.finalTokenTransaction = object.finalTokenTransaction !== void 0 && object.finalTokenTransaction !== null ? TokenTransaction2.fromPartial(object.finalTokenTransaction) : void 0;
18172
+ message.keyshareInfo = object.keyshareInfo !== void 0 && object.keyshareInfo !== null ? SigningKeyshare.fromPartial(object.keyshareInfo) : void 0;
18173
+ return message;
18174
+ }
18175
+ };
18176
+ function createBaseCommitTransactionRequest() {
18177
+ return {
18178
+ finalTokenTransaction: void 0,
18179
+ finalTokenTransactionHash: new Uint8Array(0),
18180
+ inputTtxoSignaturesPerOperator: [],
18181
+ ownerIdentityPublicKey: new Uint8Array(0)
18182
+ };
18183
+ }
18184
+ var CommitTransactionRequest = {
18185
+ encode(message, writer = new BinaryWriter7()) {
18186
+ if (message.finalTokenTransaction !== void 0) {
18187
+ TokenTransaction2.encode(message.finalTokenTransaction, writer.uint32(10).fork()).join();
18188
+ }
18189
+ if (message.finalTokenTransactionHash.length !== 0) {
18190
+ writer.uint32(18).bytes(message.finalTokenTransactionHash);
18191
+ }
18192
+ for (const v of message.inputTtxoSignaturesPerOperator) {
18193
+ InputTtxoSignaturesPerOperator.encode(v, writer.uint32(26).fork()).join();
18194
+ }
18195
+ if (message.ownerIdentityPublicKey.length !== 0) {
18196
+ writer.uint32(34).bytes(message.ownerIdentityPublicKey);
18197
+ }
18198
+ return writer;
18199
+ },
18200
+ decode(input, length) {
18201
+ const reader = input instanceof BinaryReader7 ? input : new BinaryReader7(input);
18202
+ let end = length === void 0 ? reader.len : reader.pos + length;
18203
+ const message = createBaseCommitTransactionRequest();
18204
+ while (reader.pos < end) {
18205
+ const tag = reader.uint32();
18206
+ switch (tag >>> 3) {
18207
+ case 1: {
18208
+ if (tag !== 10) {
18209
+ break;
18210
+ }
18211
+ message.finalTokenTransaction = TokenTransaction2.decode(reader, reader.uint32());
18212
+ continue;
18213
+ }
18214
+ case 2: {
18215
+ if (tag !== 18) {
18216
+ break;
18217
+ }
18218
+ message.finalTokenTransactionHash = reader.bytes();
18219
+ continue;
18220
+ }
18221
+ case 3: {
18222
+ if (tag !== 26) {
18223
+ break;
18224
+ }
18225
+ message.inputTtxoSignaturesPerOperator.push(InputTtxoSignaturesPerOperator.decode(reader, reader.uint32()));
18226
+ continue;
18227
+ }
18228
+ case 4: {
18229
+ if (tag !== 34) {
18230
+ break;
18231
+ }
18232
+ message.ownerIdentityPublicKey = reader.bytes();
18233
+ continue;
18234
+ }
18235
+ }
18236
+ if ((tag & 7) === 4 || tag === 0) {
18237
+ break;
18238
+ }
18239
+ reader.skip(tag & 7);
18240
+ }
18241
+ return message;
18242
+ },
18243
+ fromJSON(object) {
18244
+ return {
18245
+ finalTokenTransaction: isSet6(object.finalTokenTransaction) ? TokenTransaction2.fromJSON(object.finalTokenTransaction) : void 0,
18246
+ finalTokenTransactionHash: isSet6(object.finalTokenTransactionHash) ? bytesFromBase645(object.finalTokenTransactionHash) : new Uint8Array(0),
18247
+ inputTtxoSignaturesPerOperator: globalThis.Array.isArray(object?.inputTtxoSignaturesPerOperator) ? object.inputTtxoSignaturesPerOperator.map((e) => InputTtxoSignaturesPerOperator.fromJSON(e)) : [],
18248
+ ownerIdentityPublicKey: isSet6(object.ownerIdentityPublicKey) ? bytesFromBase645(object.ownerIdentityPublicKey) : new Uint8Array(0)
18249
+ };
18250
+ },
18251
+ toJSON(message) {
18252
+ const obj = {};
18253
+ if (message.finalTokenTransaction !== void 0) {
18254
+ obj.finalTokenTransaction = TokenTransaction2.toJSON(message.finalTokenTransaction);
18255
+ }
18256
+ if (message.finalTokenTransactionHash.length !== 0) {
18257
+ obj.finalTokenTransactionHash = base64FromBytes5(message.finalTokenTransactionHash);
18258
+ }
18259
+ if (message.inputTtxoSignaturesPerOperator?.length) {
18260
+ obj.inputTtxoSignaturesPerOperator = message.inputTtxoSignaturesPerOperator.map(
18261
+ (e) => InputTtxoSignaturesPerOperator.toJSON(e)
18262
+ );
18263
+ }
18264
+ if (message.ownerIdentityPublicKey.length !== 0) {
18265
+ obj.ownerIdentityPublicKey = base64FromBytes5(message.ownerIdentityPublicKey);
18266
+ }
18267
+ return obj;
18268
+ },
18269
+ create(base) {
18270
+ return CommitTransactionRequest.fromPartial(base ?? {});
18271
+ },
18272
+ fromPartial(object) {
18273
+ const message = createBaseCommitTransactionRequest();
18274
+ message.finalTokenTransaction = object.finalTokenTransaction !== void 0 && object.finalTokenTransaction !== null ? TokenTransaction2.fromPartial(object.finalTokenTransaction) : void 0;
18275
+ message.finalTokenTransactionHash = object.finalTokenTransactionHash ?? new Uint8Array(0);
18276
+ message.inputTtxoSignaturesPerOperator = object.inputTtxoSignaturesPerOperator?.map((e) => InputTtxoSignaturesPerOperator.fromPartial(e)) || [];
18277
+ message.ownerIdentityPublicKey = object.ownerIdentityPublicKey ?? new Uint8Array(0);
18278
+ return message;
18279
+ }
18280
+ };
18281
+ function createBaseCommitTransactionResponse() {
18282
+ return {};
18283
+ }
18284
+ var CommitTransactionResponse = {
18285
+ encode(_, writer = new BinaryWriter7()) {
18286
+ return writer;
18287
+ },
18288
+ decode(input, length) {
18289
+ const reader = input instanceof BinaryReader7 ? input : new BinaryReader7(input);
18290
+ let end = length === void 0 ? reader.len : reader.pos + length;
18291
+ const message = createBaseCommitTransactionResponse();
18292
+ while (reader.pos < end) {
18293
+ const tag = reader.uint32();
18294
+ switch (tag >>> 3) {
18295
+ }
18296
+ if ((tag & 7) === 4 || tag === 0) {
18297
+ break;
18298
+ }
18299
+ reader.skip(tag & 7);
18300
+ }
18301
+ return message;
18302
+ },
18303
+ fromJSON(_) {
18304
+ return {};
18305
+ },
18306
+ toJSON(_) {
18307
+ const obj = {};
18308
+ return obj;
18309
+ },
18310
+ create(base) {
18311
+ return CommitTransactionResponse.fromPartial(base ?? {});
18312
+ },
18313
+ fromPartial(_) {
18314
+ const message = createBaseCommitTransactionResponse();
18315
+ return message;
18316
+ }
18317
+ };
18318
+ var SparkTokenServiceDefinition = {
18319
+ name: "SparkTokenService",
18320
+ fullName: "spark_token.SparkTokenService",
18321
+ methods: {
18322
+ /**
18323
+ * Start process to create final token transaction with all inputs required
18324
+ * from user and SOs (including revocation secret commitment)
18325
+ */
18326
+ start_transaction: {
18327
+ name: "start_transaction",
18328
+ requestType: StartTransactionRequest,
18329
+ requestStream: false,
18330
+ responseType: StartTransactionResponse,
18331
+ responseStream: false,
18332
+ options: {}
18333
+ },
18334
+ /**
18335
+ * Complete the transaction and commit it with all SOs. This will be
18336
+ * coordinated by one SO.
18337
+ */
18338
+ commit_transaction: {
18339
+ name: "commit_transaction",
18340
+ requestType: CommitTransactionRequest,
18341
+ requestStream: false,
18342
+ responseType: CommitTransactionResponse,
18343
+ responseStream: false,
18344
+ options: {}
18345
+ }
18346
+ }
18347
+ };
18348
+ function bytesFromBase645(b64) {
18349
+ if (globalThis.Buffer) {
18350
+ return Uint8Array.from(globalThis.Buffer.from(b64, "base64"));
18351
+ } else {
18352
+ const bin = globalThis.atob(b64);
18353
+ const arr = new Uint8Array(bin.length);
18354
+ for (let i = 0; i < bin.length; ++i) {
18355
+ arr[i] = bin.charCodeAt(i);
18356
+ }
18357
+ return arr;
18358
+ }
18359
+ }
18360
+ function base64FromBytes5(arr) {
18361
+ if (globalThis.Buffer) {
18362
+ return globalThis.Buffer.from(arr).toString("base64");
18363
+ } else {
18364
+ const bin = [];
18365
+ arr.forEach((byte) => {
18366
+ bin.push(globalThis.String.fromCharCode(byte));
18367
+ });
18368
+ return globalThis.btoa(bin.join(""));
18369
+ }
18370
+ }
18371
+ function toTimestamp2(date) {
18372
+ const seconds = Math.trunc(date.getTime() / 1e3);
18373
+ const nanos = date.getTime() % 1e3 * 1e6;
18374
+ return { seconds, nanos };
18375
+ }
18376
+ function fromTimestamp2(t) {
18377
+ let millis = (t.seconds || 0) * 1e3;
18378
+ millis += (t.nanos || 0) / 1e6;
18379
+ return new globalThis.Date(millis);
18380
+ }
18381
+ function fromJsonTimestamp2(o) {
18382
+ if (o instanceof globalThis.Date) {
18383
+ return o;
18384
+ } else if (typeof o === "string") {
18385
+ return new globalThis.Date(o);
18386
+ } else {
18387
+ return fromTimestamp2(Timestamp.fromJSON(o));
18388
+ }
18389
+ }
18390
+ function longToNumber4(int64) {
18391
+ const num = globalThis.Number(int64.toString());
18392
+ if (num > globalThis.Number.MAX_SAFE_INTEGER) {
18393
+ throw new globalThis.Error("Value is larger than Number.MAX_SAFE_INTEGER");
18394
+ }
18395
+ if (num < globalThis.Number.MIN_SAFE_INTEGER) {
18396
+ throw new globalThis.Error("Value is smaller than Number.MIN_SAFE_INTEGER");
18397
+ }
18398
+ return num;
18399
+ }
18400
+ function isSet6(value) {
18401
+ return value !== null && value !== void 0;
18402
+ }
18403
+
18404
+ // src/services/connection.ts
18405
+ var ConnectionManager = class {
18406
+ config;
18407
+ clients = /* @__PURE__ */ new Map();
18408
+ tokenClients = /* @__PURE__ */ new Map();
18409
+ // We are going to .unref() the underlying channels for stream clients
18410
+ // to prevent the stream from keeping the process alive
18411
+ // Using a different map to avoid unforeseen problems with unary calls
18412
+ streamClients = /* @__PURE__ */ new Map();
18413
+ constructor(config) {
18414
+ this.config = config;
18415
+ }
18416
+ // When initializing wallet, go ahead and instantiate all clients
18417
+ async createClients() {
18418
+ await Promise.all(
18419
+ Object.values(this.config.getSigningOperators()).map((operator) => {
18420
+ this.createSparkClient(operator.address);
18421
+ })
18422
+ );
18423
+ }
18424
+ async closeConnections() {
18425
+ await Promise.all(
18426
+ Array.from(this.clients.values()).map(
18427
+ (client) => client.client.close?.()
18428
+ )
18429
+ );
18430
+ this.clients.clear();
18431
+ }
18432
+ async createMockClient(address2) {
18433
+ const channel = await this.createChannelWithTLS(address2);
18434
+ const isNodeChannel = "close" in channel;
18435
+ if (isNode2 && isNodeChannel && !isBun) {
18436
+ const grpcModule = await import("nice-grpc");
18437
+ const { createClient } = "default" in grpcModule ? grpcModule.default : grpcModule;
18438
+ const client = createClient(MockServiceDefinition, channel);
18439
+ return { ...client, close: () => channel.close() };
18440
+ } else if (!isNodeChannel) {
18441
+ const grpcModule = await import("nice-grpc-web");
18442
+ const { createClient } = "default" in grpcModule ? grpcModule.default : grpcModule;
18443
+ const client = createClient(MockServiceDefinition, channel);
18444
+ return { ...client, close: () => {
18445
+ } };
18446
+ } else {
18447
+ throw new Error("Channel does not have close in NodeJS environment");
18448
+ }
18449
+ }
18450
+ async createChannelWithTLS(address2, certPath) {
18451
+ try {
18452
+ if (isNode2 && !isBun) {
18453
+ const grpcModule = await import("nice-grpc");
18454
+ const { ChannelCredentials, createChannel } = "default" in grpcModule ? grpcModule.default : grpcModule;
18455
+ if (certPath) {
18456
+ try {
18457
+ const fs2 = await import("fs");
18458
+ const cert = fs2.readFileSync(certPath);
18459
+ return createChannel(address2, ChannelCredentials.createSsl(cert));
18460
+ } catch (error) {
18461
+ console.error("Error reading certificate:", error);
18462
+ return createChannel(
18463
+ address2,
18464
+ ChannelCredentials.createSsl(null, null, null, {
18465
+ rejectUnauthorized: false
18466
+ })
18467
+ );
18468
+ }
18469
+ } else {
18470
+ return createChannel(
18471
+ address2,
18472
+ ChannelCredentials.createSsl(null, null, null, {
18473
+ rejectUnauthorized: false
18474
+ })
18475
+ );
18476
+ }
18477
+ } else {
18478
+ const grpcModule = await import("nice-grpc-web");
18479
+ const { createChannel, FetchTransport } = "default" in grpcModule ? grpcModule.default : grpcModule;
18480
+ const { XHRTransport } = await import("./xhr-transport-WHMS3FGG.js");
18481
+ return createChannel(
18482
+ address2,
18483
+ isReactNative ? XHRTransport() : FetchTransport()
18484
+ );
18485
+ }
18486
+ } catch (error) {
18487
+ console.error("Channel creation error:", error);
18488
+ throw new NetworkError(
18489
+ "Failed to create channel",
18490
+ {
18491
+ url: address2,
18492
+ operation: "createChannel",
18493
+ errorCount: 1,
18494
+ errors: error instanceof Error ? error.message : String(error)
18495
+ },
18496
+ error
18497
+ );
18498
+ }
18499
+ }
18500
+ async createSparkStreamClient(address2, certPath) {
18501
+ if (this.streamClients.has(address2)) {
18502
+ return this.streamClients.get(address2).client;
18503
+ }
18504
+ const authToken = await this.authenticate(address2);
18505
+ const channel = await this.createChannelWithTLS(address2, certPath);
18506
+ const middleware = this.createMiddleware(address2, authToken);
17561
18507
  const client = await this.createGrpcClient(
17562
18508
  SparkServiceDefinition,
17563
18509
  channel,
@@ -17583,6 +18529,22 @@ var ConnectionManager = class {
17583
18529
  this.clients.set(address2, { client, authToken });
17584
18530
  return client;
17585
18531
  }
18532
+ async createSparkTokenClient(address2, certPath) {
18533
+ if (this.tokenClients.has(address2)) {
18534
+ return this.tokenClients.get(address2).client;
18535
+ }
18536
+ const authToken = await this.authenticate(address2);
18537
+ const channel = await this.createChannelWithTLS(address2, certPath);
18538
+ const middleware = this.createMiddleware(address2, authToken);
18539
+ const tokenClient = await this.createGrpcClient(
18540
+ SparkTokenServiceDefinition,
18541
+ channel,
18542
+ true,
18543
+ middleware
18544
+ );
18545
+ this.tokenClients.set(address2, { client: tokenClient, authToken });
18546
+ return tokenClient;
18547
+ }
17586
18548
  async getStreamChannel(address2) {
17587
18549
  return this.streamClients.get(address2)?.channel;
17588
18550
  }
@@ -17927,17 +18889,35 @@ function getTransactionSequence(currSequence) {
17927
18889
  const timelock = getCurrentTimelock(currSequence);
17928
18890
  return 1 << 30 | timelock;
17929
18891
  }
18892
+ function checkIfValidSequence(currSequence) {
18893
+ const TIME_LOCK_ACTIVE = (currSequence || 0) & 2147483648;
18894
+ if (TIME_LOCK_ACTIVE !== 0) {
18895
+ throw new ValidationError("Timelock not active", {
18896
+ field: "currSequence",
18897
+ value: currSequence
18898
+ });
18899
+ }
18900
+ const RELATIVE_TIME_LOCK_ACTIVE = (currSequence || 0) & 4194304;
18901
+ if (RELATIVE_TIME_LOCK_ACTIVE !== 0) {
18902
+ throw new ValidationError("Block based timelock not active", {
18903
+ field: "currSequence",
18904
+ value: currSequence
18905
+ });
18906
+ }
18907
+ }
17930
18908
  function getNextTransactionSequence(currSequence, forRefresh) {
18909
+ checkIfValidSequence(currSequence);
17931
18910
  const currentTimelock = getCurrentTimelock(currSequence);
17932
18911
  const nextTimelock = currentTimelock - TIME_LOCK_INTERVAL;
18912
+ checkIfValidSequence(nextTimelock);
17933
18913
  if (forRefresh && nextTimelock <= 100 && currentTimelock > 0) {
17934
18914
  return {
17935
18915
  nextSequence: 1 << 30 | nextTimelock,
17936
18916
  needRefresh: true
17937
18917
  };
17938
18918
  }
17939
- if (nextTimelock < 0) {
17940
- throw new ValidationError("timelock interval is less than or equal to 0", {
18919
+ if (nextTimelock < 100) {
18920
+ throw new ValidationError("timelock interval is less than 100", {
17941
18921
  field: "nextTimelock",
17942
18922
  value: nextTimelock
17943
18923
  });
@@ -20135,7 +21115,7 @@ import { retryMiddleware as retryMiddleware2 } from "nice-grpc-client-middleware
20135
21115
  import { Metadata as Metadata2 } from "nice-grpc-common";
20136
21116
 
20137
21117
  // src/proto/lrc20.ts
20138
- import { BinaryReader as BinaryReader7, BinaryWriter as BinaryWriter7 } from "@bufbuild/protobuf/wire";
21118
+ import { BinaryReader as BinaryReader8, BinaryWriter as BinaryWriter8 } from "@bufbuild/protobuf/wire";
20139
21119
  function layerFromJSON(object) {
20140
21120
  switch (object) {
20141
21121
  case 0:
@@ -20300,7 +21280,7 @@ function createBaseSendSparkSignatureRequest() {
20300
21280
  };
20301
21281
  }
20302
21282
  var SendSparkSignatureRequest = {
20303
- encode(message, writer = new BinaryWriter7()) {
21283
+ encode(message, writer = new BinaryWriter8()) {
20304
21284
  if (message.finalTokenTransaction !== void 0) {
20305
21285
  TokenTransaction.encode(message.finalTokenTransaction, writer.uint32(10).fork()).join();
20306
21286
  }
@@ -20316,7 +21296,7 @@ var SendSparkSignatureRequest = {
20316
21296
  return writer;
20317
21297
  },
20318
21298
  decode(input, length) {
20319
- const reader = input instanceof BinaryReader7 ? input : new BinaryReader7(input);
21299
+ const reader = input instanceof BinaryReader8 ? input : new BinaryReader8(input);
20320
21300
  let end = length === void 0 ? reader.len : reader.pos + length;
20321
21301
  const message = createBaseSendSparkSignatureRequest();
20322
21302
  while (reader.pos < end) {
@@ -20360,9 +21340,9 @@ var SendSparkSignatureRequest = {
20360
21340
  },
20361
21341
  fromJSON(object) {
20362
21342
  return {
20363
- finalTokenTransaction: isSet6(object.finalTokenTransaction) ? TokenTransaction.fromJSON(object.finalTokenTransaction) : void 0,
21343
+ finalTokenTransaction: isSet7(object.finalTokenTransaction) ? TokenTransaction.fromJSON(object.finalTokenTransaction) : void 0,
20364
21344
  operatorSpecificSignatures: globalThis.Array.isArray(object?.operatorSpecificSignatures) ? object.operatorSpecificSignatures.map((e) => OperatorSpecificOwnerSignature.fromJSON(e)) : [],
20365
- operatorSignatureData: isSet6(object.operatorSignatureData) ? SparkOperatorSignatureData.fromJSON(object.operatorSignatureData) : void 0,
21345
+ operatorSignatureData: isSet7(object.operatorSignatureData) ? SparkOperatorSignatureData.fromJSON(object.operatorSignatureData) : void 0,
20366
21346
  revocationSecrets: globalThis.Array.isArray(object?.revocationSecrets) ? object.revocationSecrets.map((e) => RevocationSecretWithIndex.fromJSON(e)) : []
20367
21347
  };
20368
21348
  },
@@ -20400,7 +21380,7 @@ function createBaseSparkOperatorSignatureData() {
20400
21380
  return { sparkOperatorSignature: new Uint8Array(0), operatorIdentityPublicKey: new Uint8Array(0) };
20401
21381
  }
20402
21382
  var SparkOperatorSignatureData = {
20403
- encode(message, writer = new BinaryWriter7()) {
21383
+ encode(message, writer = new BinaryWriter8()) {
20404
21384
  if (message.sparkOperatorSignature.length !== 0) {
20405
21385
  writer.uint32(10).bytes(message.sparkOperatorSignature);
20406
21386
  }
@@ -20410,7 +21390,7 @@ var SparkOperatorSignatureData = {
20410
21390
  return writer;
20411
21391
  },
20412
21392
  decode(input, length) {
20413
- const reader = input instanceof BinaryReader7 ? input : new BinaryReader7(input);
21393
+ const reader = input instanceof BinaryReader8 ? input : new BinaryReader8(input);
20414
21394
  let end = length === void 0 ? reader.len : reader.pos + length;
20415
21395
  const message = createBaseSparkOperatorSignatureData();
20416
21396
  while (reader.pos < end) {
@@ -20440,17 +21420,17 @@ var SparkOperatorSignatureData = {
20440
21420
  },
20441
21421
  fromJSON(object) {
20442
21422
  return {
20443
- sparkOperatorSignature: isSet6(object.sparkOperatorSignature) ? bytesFromBase645(object.sparkOperatorSignature) : new Uint8Array(0),
20444
- operatorIdentityPublicKey: isSet6(object.operatorIdentityPublicKey) ? bytesFromBase645(object.operatorIdentityPublicKey) : new Uint8Array(0)
21423
+ sparkOperatorSignature: isSet7(object.sparkOperatorSignature) ? bytesFromBase646(object.sparkOperatorSignature) : new Uint8Array(0),
21424
+ operatorIdentityPublicKey: isSet7(object.operatorIdentityPublicKey) ? bytesFromBase646(object.operatorIdentityPublicKey) : new Uint8Array(0)
20445
21425
  };
20446
21426
  },
20447
21427
  toJSON(message) {
20448
21428
  const obj = {};
20449
21429
  if (message.sparkOperatorSignature.length !== 0) {
20450
- obj.sparkOperatorSignature = base64FromBytes5(message.sparkOperatorSignature);
21430
+ obj.sparkOperatorSignature = base64FromBytes6(message.sparkOperatorSignature);
20451
21431
  }
20452
21432
  if (message.operatorIdentityPublicKey.length !== 0) {
20453
- obj.operatorIdentityPublicKey = base64FromBytes5(message.operatorIdentityPublicKey);
21433
+ obj.operatorIdentityPublicKey = base64FromBytes6(message.operatorIdentityPublicKey);
20454
21434
  }
20455
21435
  return obj;
20456
21436
  },
@@ -20468,14 +21448,14 @@ function createBaseGetSparkTxRequest() {
20468
21448
  return { finalTokenTransactionHash: new Uint8Array(0) };
20469
21449
  }
20470
21450
  var GetSparkTxRequest = {
20471
- encode(message, writer = new BinaryWriter7()) {
21451
+ encode(message, writer = new BinaryWriter8()) {
20472
21452
  if (message.finalTokenTransactionHash.length !== 0) {
20473
21453
  writer.uint32(10).bytes(message.finalTokenTransactionHash);
20474
21454
  }
20475
21455
  return writer;
20476
21456
  },
20477
21457
  decode(input, length) {
20478
- const reader = input instanceof BinaryReader7 ? input : new BinaryReader7(input);
21458
+ const reader = input instanceof BinaryReader8 ? input : new BinaryReader8(input);
20479
21459
  let end = length === void 0 ? reader.len : reader.pos + length;
20480
21460
  const message = createBaseGetSparkTxRequest();
20481
21461
  while (reader.pos < end) {
@@ -20498,13 +21478,13 @@ var GetSparkTxRequest = {
20498
21478
  },
20499
21479
  fromJSON(object) {
20500
21480
  return {
20501
- finalTokenTransactionHash: isSet6(object.finalTokenTransactionHash) ? bytesFromBase645(object.finalTokenTransactionHash) : new Uint8Array(0)
21481
+ finalTokenTransactionHash: isSet7(object.finalTokenTransactionHash) ? bytesFromBase646(object.finalTokenTransactionHash) : new Uint8Array(0)
20502
21482
  };
20503
21483
  },
20504
21484
  toJSON(message) {
20505
21485
  const obj = {};
20506
21486
  if (message.finalTokenTransactionHash.length !== 0) {
20507
- obj.finalTokenTransactionHash = base64FromBytes5(message.finalTokenTransactionHash);
21487
+ obj.finalTokenTransactionHash = base64FromBytes6(message.finalTokenTransactionHash);
20508
21488
  }
20509
21489
  return obj;
20510
21490
  },
@@ -20521,14 +21501,14 @@ function createBaseVerifySparkTxRequest() {
20521
21501
  return { finalTokenTransaction: void 0 };
20522
21502
  }
20523
21503
  var VerifySparkTxRequest = {
20524
- encode(message, writer = new BinaryWriter7()) {
21504
+ encode(message, writer = new BinaryWriter8()) {
20525
21505
  if (message.finalTokenTransaction !== void 0) {
20526
21506
  TokenTransaction.encode(message.finalTokenTransaction, writer.uint32(10).fork()).join();
20527
21507
  }
20528
21508
  return writer;
20529
21509
  },
20530
21510
  decode(input, length) {
20531
- const reader = input instanceof BinaryReader7 ? input : new BinaryReader7(input);
21511
+ const reader = input instanceof BinaryReader8 ? input : new BinaryReader8(input);
20532
21512
  let end = length === void 0 ? reader.len : reader.pos + length;
20533
21513
  const message = createBaseVerifySparkTxRequest();
20534
21514
  while (reader.pos < end) {
@@ -20551,7 +21531,7 @@ var VerifySparkTxRequest = {
20551
21531
  },
20552
21532
  fromJSON(object) {
20553
21533
  return {
20554
- finalTokenTransaction: isSet6(object.finalTokenTransaction) ? TokenTransaction.fromJSON(object.finalTokenTransaction) : void 0
21534
+ finalTokenTransaction: isSet7(object.finalTokenTransaction) ? TokenTransaction.fromJSON(object.finalTokenTransaction) : void 0
20555
21535
  };
20556
21536
  },
20557
21537
  toJSON(message) {
@@ -20574,7 +21554,7 @@ function createBaseListSparkTxsRequest() {
20574
21554
  return { pageToken: void 0, pageSize: void 0 };
20575
21555
  }
20576
21556
  var ListSparkTxsRequest = {
20577
- encode(message, writer = new BinaryWriter7()) {
21557
+ encode(message, writer = new BinaryWriter8()) {
20578
21558
  if (message.pageToken !== void 0) {
20579
21559
  writer.uint32(10).bytes(message.pageToken);
20580
21560
  }
@@ -20584,7 +21564,7 @@ var ListSparkTxsRequest = {
20584
21564
  return writer;
20585
21565
  },
20586
21566
  decode(input, length) {
20587
- const reader = input instanceof BinaryReader7 ? input : new BinaryReader7(input);
21567
+ const reader = input instanceof BinaryReader8 ? input : new BinaryReader8(input);
20588
21568
  let end = length === void 0 ? reader.len : reader.pos + length;
20589
21569
  const message = createBaseListSparkTxsRequest();
20590
21570
  while (reader.pos < end) {
@@ -20614,14 +21594,14 @@ var ListSparkTxsRequest = {
20614
21594
  },
20615
21595
  fromJSON(object) {
20616
21596
  return {
20617
- pageToken: isSet6(object.pageToken) ? bytesFromBase645(object.pageToken) : void 0,
20618
- pageSize: isSet6(object.pageSize) ? globalThis.Number(object.pageSize) : void 0
21597
+ pageToken: isSet7(object.pageToken) ? bytesFromBase646(object.pageToken) : void 0,
21598
+ pageSize: isSet7(object.pageSize) ? globalThis.Number(object.pageSize) : void 0
20619
21599
  };
20620
21600
  },
20621
21601
  toJSON(message) {
20622
21602
  const obj = {};
20623
21603
  if (message.pageToken !== void 0) {
20624
- obj.pageToken = base64FromBytes5(message.pageToken);
21604
+ obj.pageToken = base64FromBytes6(message.pageToken);
20625
21605
  }
20626
21606
  if (message.pageSize !== void 0) {
20627
21607
  obj.pageSize = Math.round(message.pageSize);
@@ -20642,7 +21622,7 @@ function createBaseListWithdrawnOutputsRequest() {
20642
21622
  return { blockhash: void 0, pageToken: void 0, pageSize: void 0 };
20643
21623
  }
20644
21624
  var ListWithdrawnOutputsRequest = {
20645
- encode(message, writer = new BinaryWriter7()) {
21625
+ encode(message, writer = new BinaryWriter8()) {
20646
21626
  if (message.blockhash !== void 0) {
20647
21627
  writer.uint32(10).bytes(message.blockhash);
20648
21628
  }
@@ -20655,7 +21635,7 @@ var ListWithdrawnOutputsRequest = {
20655
21635
  return writer;
20656
21636
  },
20657
21637
  decode(input, length) {
20658
- const reader = input instanceof BinaryReader7 ? input : new BinaryReader7(input);
21638
+ const reader = input instanceof BinaryReader8 ? input : new BinaryReader8(input);
20659
21639
  let end = length === void 0 ? reader.len : reader.pos + length;
20660
21640
  const message = createBaseListWithdrawnOutputsRequest();
20661
21641
  while (reader.pos < end) {
@@ -20692,15 +21672,15 @@ var ListWithdrawnOutputsRequest = {
20692
21672
  },
20693
21673
  fromJSON(object) {
20694
21674
  return {
20695
- blockhash: isSet6(object.blockhash) ? bytesFromBase645(object.blockhash) : void 0,
20696
- pageToken: isSet6(object.pageToken) ? globalThis.String(object.pageToken) : void 0,
20697
- pageSize: isSet6(object.pageSize) ? globalThis.Number(object.pageSize) : void 0
21675
+ blockhash: isSet7(object.blockhash) ? bytesFromBase646(object.blockhash) : void 0,
21676
+ pageToken: isSet7(object.pageToken) ? globalThis.String(object.pageToken) : void 0,
21677
+ pageSize: isSet7(object.pageSize) ? globalThis.Number(object.pageSize) : void 0
20698
21678
  };
20699
21679
  },
20700
21680
  toJSON(message) {
20701
21681
  const obj = {};
20702
21682
  if (message.blockhash !== void 0) {
20703
- obj.blockhash = base64FromBytes5(message.blockhash);
21683
+ obj.blockhash = base64FromBytes6(message.blockhash);
20704
21684
  }
20705
21685
  if (message.pageToken !== void 0) {
20706
21686
  obj.pageToken = message.pageToken;
@@ -20725,7 +21705,7 @@ function createBaseListSparkTxsResponse() {
20725
21705
  return { tokenTransactions: [], nextPageToken: void 0 };
20726
21706
  }
20727
21707
  var ListSparkTxsResponse = {
20728
- encode(message, writer = new BinaryWriter7()) {
21708
+ encode(message, writer = new BinaryWriter8()) {
20729
21709
  for (const v of message.tokenTransactions) {
20730
21710
  TokenTransactionResponse.encode(v, writer.uint32(10).fork()).join();
20731
21711
  }
@@ -20735,7 +21715,7 @@ var ListSparkTxsResponse = {
20735
21715
  return writer;
20736
21716
  },
20737
21717
  decode(input, length) {
20738
- const reader = input instanceof BinaryReader7 ? input : new BinaryReader7(input);
21718
+ const reader = input instanceof BinaryReader8 ? input : new BinaryReader8(input);
20739
21719
  let end = length === void 0 ? reader.len : reader.pos + length;
20740
21720
  const message = createBaseListSparkTxsResponse();
20741
21721
  while (reader.pos < end) {
@@ -20766,7 +21746,7 @@ var ListSparkTxsResponse = {
20766
21746
  fromJSON(object) {
20767
21747
  return {
20768
21748
  tokenTransactions: globalThis.Array.isArray(object?.tokenTransactions) ? object.tokenTransactions.map((e) => TokenTransactionResponse.fromJSON(e)) : [],
20769
- nextPageToken: isSet6(object.nextPageToken) ? bytesFromBase645(object.nextPageToken) : void 0
21749
+ nextPageToken: isSet7(object.nextPageToken) ? bytesFromBase646(object.nextPageToken) : void 0
20770
21750
  };
20771
21751
  },
20772
21752
  toJSON(message) {
@@ -20775,7 +21755,7 @@ var ListSparkTxsResponse = {
20775
21755
  obj.tokenTransactions = message.tokenTransactions.map((e) => TokenTransactionResponse.toJSON(e));
20776
21756
  }
20777
21757
  if (message.nextPageToken !== void 0) {
20778
- obj.nextPageToken = base64FromBytes5(message.nextPageToken);
21758
+ obj.nextPageToken = base64FromBytes6(message.nextPageToken);
20779
21759
  }
20780
21760
  return obj;
20781
21761
  },
@@ -20793,9 +21773,9 @@ function createBaseListWithdrawnOutputsResponse() {
20793
21773
  return { outputs: [], nextPageToken: void 0 };
20794
21774
  }
20795
21775
  var ListWithdrawnOutputsResponse = {
20796
- encode(message, writer = new BinaryWriter7()) {
21776
+ encode(message, writer = new BinaryWriter8()) {
20797
21777
  for (const v of message.outputs) {
20798
- TokenOutput2.encode(v, writer.uint32(10).fork()).join();
21778
+ TokenOutput3.encode(v, writer.uint32(10).fork()).join();
20799
21779
  }
20800
21780
  if (message.nextPageToken !== void 0) {
20801
21781
  writer.uint32(18).string(message.nextPageToken);
@@ -20803,7 +21783,7 @@ var ListWithdrawnOutputsResponse = {
20803
21783
  return writer;
20804
21784
  },
20805
21785
  decode(input, length) {
20806
- const reader = input instanceof BinaryReader7 ? input : new BinaryReader7(input);
21786
+ const reader = input instanceof BinaryReader8 ? input : new BinaryReader8(input);
20807
21787
  let end = length === void 0 ? reader.len : reader.pos + length;
20808
21788
  const message = createBaseListWithdrawnOutputsResponse();
20809
21789
  while (reader.pos < end) {
@@ -20813,7 +21793,7 @@ var ListWithdrawnOutputsResponse = {
20813
21793
  if (tag !== 10) {
20814
21794
  break;
20815
21795
  }
20816
- message.outputs.push(TokenOutput2.decode(reader, reader.uint32()));
21796
+ message.outputs.push(TokenOutput3.decode(reader, reader.uint32()));
20817
21797
  continue;
20818
21798
  }
20819
21799
  case 2: {
@@ -20833,14 +21813,14 @@ var ListWithdrawnOutputsResponse = {
20833
21813
  },
20834
21814
  fromJSON(object) {
20835
21815
  return {
20836
- outputs: globalThis.Array.isArray(object?.outputs) ? object.outputs.map((e) => TokenOutput2.fromJSON(e)) : [],
20837
- nextPageToken: isSet6(object.nextPageToken) ? globalThis.String(object.nextPageToken) : void 0
21816
+ outputs: globalThis.Array.isArray(object?.outputs) ? object.outputs.map((e) => TokenOutput3.fromJSON(e)) : [],
21817
+ nextPageToken: isSet7(object.nextPageToken) ? globalThis.String(object.nextPageToken) : void 0
20838
21818
  };
20839
21819
  },
20840
21820
  toJSON(message) {
20841
21821
  const obj = {};
20842
21822
  if (message.outputs?.length) {
20843
- obj.outputs = message.outputs.map((e) => TokenOutput2.toJSON(e));
21823
+ obj.outputs = message.outputs.map((e) => TokenOutput3.toJSON(e));
20844
21824
  }
20845
21825
  if (message.nextPageToken !== void 0) {
20846
21826
  obj.nextPageToken = message.nextPageToken;
@@ -20852,7 +21832,7 @@ var ListWithdrawnOutputsResponse = {
20852
21832
  },
20853
21833
  fromPartial(object) {
20854
21834
  const message = createBaseListWithdrawnOutputsResponse();
20855
- message.outputs = object.outputs?.map((e) => TokenOutput2.fromPartial(e)) || [];
21835
+ message.outputs = object.outputs?.map((e) => TokenOutput3.fromPartial(e)) || [];
20856
21836
  message.nextPageToken = object.nextPageToken ?? void 0;
20857
21837
  return message;
20858
21838
  }
@@ -20861,14 +21841,14 @@ function createBaseGetSparkTxResponse() {
20861
21841
  return { finalTokenTransaction: void 0 };
20862
21842
  }
20863
21843
  var GetSparkTxResponse = {
20864
- encode(message, writer = new BinaryWriter7()) {
21844
+ encode(message, writer = new BinaryWriter8()) {
20865
21845
  if (message.finalTokenTransaction !== void 0) {
20866
21846
  TokenTransaction.encode(message.finalTokenTransaction, writer.uint32(10).fork()).join();
20867
21847
  }
20868
21848
  return writer;
20869
21849
  },
20870
21850
  decode(input, length) {
20871
- const reader = input instanceof BinaryReader7 ? input : new BinaryReader7(input);
21851
+ const reader = input instanceof BinaryReader8 ? input : new BinaryReader8(input);
20872
21852
  let end = length === void 0 ? reader.len : reader.pos + length;
20873
21853
  const message = createBaseGetSparkTxResponse();
20874
21854
  while (reader.pos < end) {
@@ -20891,7 +21871,7 @@ var GetSparkTxResponse = {
20891
21871
  },
20892
21872
  fromJSON(object) {
20893
21873
  return {
20894
- finalTokenTransaction: isSet6(object.finalTokenTransaction) ? TokenTransaction.fromJSON(object.finalTokenTransaction) : void 0
21874
+ finalTokenTransaction: isSet7(object.finalTokenTransaction) ? TokenTransaction.fromJSON(object.finalTokenTransaction) : void 0
20895
21875
  };
20896
21876
  },
20897
21877
  toJSON(message) {
@@ -20914,7 +21894,7 @@ function createBaseFreezeTokensRequest2() {
20914
21894
  return { freezeTokensPayload: void 0, issuerSignature: new Uint8Array(0) };
20915
21895
  }
20916
21896
  var FreezeTokensRequest2 = {
20917
- encode(message, writer = new BinaryWriter7()) {
21897
+ encode(message, writer = new BinaryWriter8()) {
20918
21898
  if (message.freezeTokensPayload !== void 0) {
20919
21899
  FreezeTokensPayload2.encode(message.freezeTokensPayload, writer.uint32(10).fork()).join();
20920
21900
  }
@@ -20924,7 +21904,7 @@ var FreezeTokensRequest2 = {
20924
21904
  return writer;
20925
21905
  },
20926
21906
  decode(input, length) {
20927
- const reader = input instanceof BinaryReader7 ? input : new BinaryReader7(input);
21907
+ const reader = input instanceof BinaryReader8 ? input : new BinaryReader8(input);
20928
21908
  let end = length === void 0 ? reader.len : reader.pos + length;
20929
21909
  const message = createBaseFreezeTokensRequest2();
20930
21910
  while (reader.pos < end) {
@@ -20954,8 +21934,8 @@ var FreezeTokensRequest2 = {
20954
21934
  },
20955
21935
  fromJSON(object) {
20956
21936
  return {
20957
- freezeTokensPayload: isSet6(object.freezeTokensPayload) ? FreezeTokensPayload2.fromJSON(object.freezeTokensPayload) : void 0,
20958
- issuerSignature: isSet6(object.issuerSignature) ? bytesFromBase645(object.issuerSignature) : new Uint8Array(0)
21937
+ freezeTokensPayload: isSet7(object.freezeTokensPayload) ? FreezeTokensPayload2.fromJSON(object.freezeTokensPayload) : void 0,
21938
+ issuerSignature: isSet7(object.issuerSignature) ? bytesFromBase646(object.issuerSignature) : new Uint8Array(0)
20959
21939
  };
20960
21940
  },
20961
21941
  toJSON(message) {
@@ -20964,7 +21944,7 @@ var FreezeTokensRequest2 = {
20964
21944
  obj.freezeTokensPayload = FreezeTokensPayload2.toJSON(message.freezeTokensPayload);
20965
21945
  }
20966
21946
  if (message.issuerSignature.length !== 0) {
20967
- obj.issuerSignature = base64FromBytes5(message.issuerSignature);
21947
+ obj.issuerSignature = base64FromBytes6(message.issuerSignature);
20968
21948
  }
20969
21949
  return obj;
20970
21950
  },
@@ -20982,7 +21962,7 @@ function createBaseFreezeTokensResponse2() {
20982
21962
  return { impactedOutputIds: [], impactedTokenAmount: [] };
20983
21963
  }
20984
21964
  var FreezeTokensResponse2 = {
20985
- encode(message, writer = new BinaryWriter7()) {
21965
+ encode(message, writer = new BinaryWriter8()) {
20986
21966
  for (const v of message.impactedOutputIds) {
20987
21967
  writer.uint32(10).string(v);
20988
21968
  }
@@ -20992,7 +21972,7 @@ var FreezeTokensResponse2 = {
20992
21972
  return writer;
20993
21973
  },
20994
21974
  decode(input, length) {
20995
- const reader = input instanceof BinaryReader7 ? input : new BinaryReader7(input);
21975
+ const reader = input instanceof BinaryReader8 ? input : new BinaryReader8(input);
20996
21976
  let end = length === void 0 ? reader.len : reader.pos + length;
20997
21977
  const message = createBaseFreezeTokensResponse2();
20998
21978
  while (reader.pos < end) {
@@ -21023,7 +22003,7 @@ var FreezeTokensResponse2 = {
21023
22003
  fromJSON(object) {
21024
22004
  return {
21025
22005
  impactedOutputIds: globalThis.Array.isArray(object?.impactedOutputIds) ? object.impactedOutputIds.map((e) => globalThis.String(e)) : [],
21026
- impactedTokenAmount: globalThis.Array.isArray(object?.impactedTokenAmount) ? object.impactedTokenAmount.map((e) => bytesFromBase645(e)) : []
22006
+ impactedTokenAmount: globalThis.Array.isArray(object?.impactedTokenAmount) ? object.impactedTokenAmount.map((e) => bytesFromBase646(e)) : []
21027
22007
  };
21028
22008
  },
21029
22009
  toJSON(message) {
@@ -21032,7 +22012,7 @@ var FreezeTokensResponse2 = {
21032
22012
  obj.impactedOutputIds = message.impactedOutputIds;
21033
22013
  }
21034
22014
  if (message.impactedTokenAmount?.length) {
21035
- obj.impactedTokenAmount = message.impactedTokenAmount.map((e) => base64FromBytes5(e));
22015
+ obj.impactedTokenAmount = message.impactedTokenAmount.map((e) => base64FromBytes6(e));
21036
22016
  }
21037
22017
  return obj;
21038
22018
  },
@@ -21058,7 +22038,7 @@ function createBaseListAllTokenTransactionsRequest() {
21058
22038
  };
21059
22039
  }
21060
22040
  var ListAllTokenTransactionsRequest = {
21061
- encode(message, writer = new BinaryWriter7()) {
22041
+ encode(message, writer = new BinaryWriter8()) {
21062
22042
  if (message.cursor !== void 0) {
21063
22043
  ListAllTokenTransactionsCursor.encode(message.cursor, writer.uint32(10).fork()).join();
21064
22044
  }
@@ -21072,10 +22052,10 @@ var ListAllTokenTransactionsRequest = {
21072
22052
  writer.uint32(34).bytes(message.tokenPublicKey);
21073
22053
  }
21074
22054
  if (message.beforeTimestamp !== void 0) {
21075
- Timestamp.encode(toTimestamp2(message.beforeTimestamp), writer.uint32(42).fork()).join();
22055
+ Timestamp.encode(toTimestamp3(message.beforeTimestamp), writer.uint32(42).fork()).join();
21076
22056
  }
21077
22057
  if (message.afterTimestamp !== void 0) {
21078
- Timestamp.encode(toTimestamp2(message.afterTimestamp), writer.uint32(50).fork()).join();
22058
+ Timestamp.encode(toTimestamp3(message.afterTimestamp), writer.uint32(50).fork()).join();
21079
22059
  }
21080
22060
  writer.uint32(58).fork();
21081
22061
  for (const v of message.operationTypes) {
@@ -21085,7 +22065,7 @@ var ListAllTokenTransactionsRequest = {
21085
22065
  return writer;
21086
22066
  },
21087
22067
  decode(input, length) {
21088
- const reader = input instanceof BinaryReader7 ? input : new BinaryReader7(input);
22068
+ const reader = input instanceof BinaryReader8 ? input : new BinaryReader8(input);
21089
22069
  let end = length === void 0 ? reader.len : reader.pos + length;
21090
22070
  const message = createBaseListAllTokenTransactionsRequest();
21091
22071
  while (reader.pos < end) {
@@ -21123,14 +22103,14 @@ var ListAllTokenTransactionsRequest = {
21123
22103
  if (tag !== 42) {
21124
22104
  break;
21125
22105
  }
21126
- message.beforeTimestamp = fromTimestamp2(Timestamp.decode(reader, reader.uint32()));
22106
+ message.beforeTimestamp = fromTimestamp3(Timestamp.decode(reader, reader.uint32()));
21127
22107
  continue;
21128
22108
  }
21129
22109
  case 6: {
21130
22110
  if (tag !== 50) {
21131
22111
  break;
21132
22112
  }
21133
- message.afterTimestamp = fromTimestamp2(Timestamp.decode(reader, reader.uint32()));
22113
+ message.afterTimestamp = fromTimestamp3(Timestamp.decode(reader, reader.uint32()));
21134
22114
  continue;
21135
22115
  }
21136
22116
  case 7: {
@@ -21157,12 +22137,12 @@ var ListAllTokenTransactionsRequest = {
21157
22137
  },
21158
22138
  fromJSON(object) {
21159
22139
  return {
21160
- cursor: isSet6(object.cursor) ? ListAllTokenTransactionsCursor.fromJSON(object.cursor) : void 0,
21161
- pageSize: isSet6(object.pageSize) ? globalThis.Number(object.pageSize) : void 0,
21162
- ownerPublicKey: isSet6(object.ownerPublicKey) ? bytesFromBase645(object.ownerPublicKey) : void 0,
21163
- tokenPublicKey: isSet6(object.tokenPublicKey) ? bytesFromBase645(object.tokenPublicKey) : void 0,
21164
- beforeTimestamp: isSet6(object.beforeTimestamp) ? fromJsonTimestamp2(object.beforeTimestamp) : void 0,
21165
- afterTimestamp: isSet6(object.afterTimestamp) ? fromJsonTimestamp2(object.afterTimestamp) : void 0,
22140
+ cursor: isSet7(object.cursor) ? ListAllTokenTransactionsCursor.fromJSON(object.cursor) : void 0,
22141
+ pageSize: isSet7(object.pageSize) ? globalThis.Number(object.pageSize) : void 0,
22142
+ ownerPublicKey: isSet7(object.ownerPublicKey) ? bytesFromBase646(object.ownerPublicKey) : void 0,
22143
+ tokenPublicKey: isSet7(object.tokenPublicKey) ? bytesFromBase646(object.tokenPublicKey) : void 0,
22144
+ beforeTimestamp: isSet7(object.beforeTimestamp) ? fromJsonTimestamp3(object.beforeTimestamp) : void 0,
22145
+ afterTimestamp: isSet7(object.afterTimestamp) ? fromJsonTimestamp3(object.afterTimestamp) : void 0,
21166
22146
  operationTypes: globalThis.Array.isArray(object?.operationTypes) ? object.operationTypes.map((e) => operationTypeFromJSON(e)) : []
21167
22147
  };
21168
22148
  },
@@ -21175,10 +22155,10 @@ var ListAllTokenTransactionsRequest = {
21175
22155
  obj.pageSize = Math.round(message.pageSize);
21176
22156
  }
21177
22157
  if (message.ownerPublicKey !== void 0) {
21178
- obj.ownerPublicKey = base64FromBytes5(message.ownerPublicKey);
22158
+ obj.ownerPublicKey = base64FromBytes6(message.ownerPublicKey);
21179
22159
  }
21180
22160
  if (message.tokenPublicKey !== void 0) {
21181
- obj.tokenPublicKey = base64FromBytes5(message.tokenPublicKey);
22161
+ obj.tokenPublicKey = base64FromBytes6(message.tokenPublicKey);
21182
22162
  }
21183
22163
  if (message.beforeTimestamp !== void 0) {
21184
22164
  obj.beforeTimestamp = message.beforeTimestamp.toISOString();
@@ -21210,7 +22190,7 @@ function createBaseListAllTokenTransactionsResponse() {
21210
22190
  return { transactions: [], nextCursor: void 0 };
21211
22191
  }
21212
22192
  var ListAllTokenTransactionsResponse = {
21213
- encode(message, writer = new BinaryWriter7()) {
22193
+ encode(message, writer = new BinaryWriter8()) {
21214
22194
  for (const v of message.transactions) {
21215
22195
  Transaction6.encode(v, writer.uint32(10).fork()).join();
21216
22196
  }
@@ -21220,7 +22200,7 @@ var ListAllTokenTransactionsResponse = {
21220
22200
  return writer;
21221
22201
  },
21222
22202
  decode(input, length) {
21223
- const reader = input instanceof BinaryReader7 ? input : new BinaryReader7(input);
22203
+ const reader = input instanceof BinaryReader8 ? input : new BinaryReader8(input);
21224
22204
  let end = length === void 0 ? reader.len : reader.pos + length;
21225
22205
  const message = createBaseListAllTokenTransactionsResponse();
21226
22206
  while (reader.pos < end) {
@@ -21251,7 +22231,7 @@ var ListAllTokenTransactionsResponse = {
21251
22231
  fromJSON(object) {
21252
22232
  return {
21253
22233
  transactions: globalThis.Array.isArray(object?.transactions) ? object.transactions.map((e) => Transaction6.fromJSON(e)) : [],
21254
- nextCursor: isSet6(object.nextCursor) ? ListAllTokenTransactionsCursor.fromJSON(object.nextCursor) : void 0
22234
+ nextCursor: isSet7(object.nextCursor) ? ListAllTokenTransactionsCursor.fromJSON(object.nextCursor) : void 0
21255
22235
  };
21256
22236
  },
21257
22237
  toJSON(message) {
@@ -21278,14 +22258,14 @@ function createBaseBlockInfoResponse() {
21278
22258
  return { blockInfo: void 0 };
21279
22259
  }
21280
22260
  var BlockInfoResponse = {
21281
- encode(message, writer = new BinaryWriter7()) {
22261
+ encode(message, writer = new BinaryWriter8()) {
21282
22262
  if (message.blockInfo !== void 0) {
21283
22263
  BlockInfo.encode(message.blockInfo, writer.uint32(10).fork()).join();
21284
22264
  }
21285
22265
  return writer;
21286
22266
  },
21287
22267
  decode(input, length) {
21288
- const reader = input instanceof BinaryReader7 ? input : new BinaryReader7(input);
22268
+ const reader = input instanceof BinaryReader8 ? input : new BinaryReader8(input);
21289
22269
  let end = length === void 0 ? reader.len : reader.pos + length;
21290
22270
  const message = createBaseBlockInfoResponse();
21291
22271
  while (reader.pos < end) {
@@ -21307,7 +22287,7 @@ var BlockInfoResponse = {
21307
22287
  return message;
21308
22288
  },
21309
22289
  fromJSON(object) {
21310
- return { blockInfo: isSet6(object.blockInfo) ? BlockInfo.fromJSON(object.blockInfo) : void 0 };
22290
+ return { blockInfo: isSet7(object.blockInfo) ? BlockInfo.fromJSON(object.blockInfo) : void 0 };
21311
22291
  },
21312
22292
  toJSON(message) {
21313
22293
  const obj = {};
@@ -21329,7 +22309,7 @@ function createBaseSendRawTxRequest() {
21329
22309
  return { tx: "", maxBurnAmount: void 0 };
21330
22310
  }
21331
22311
  var SendRawTxRequest = {
21332
- encode(message, writer = new BinaryWriter7()) {
22312
+ encode(message, writer = new BinaryWriter8()) {
21333
22313
  if (message.tx !== "") {
21334
22314
  writer.uint32(10).string(message.tx);
21335
22315
  }
@@ -21339,7 +22319,7 @@ var SendRawTxRequest = {
21339
22319
  return writer;
21340
22320
  },
21341
22321
  decode(input, length) {
21342
- const reader = input instanceof BinaryReader7 ? input : new BinaryReader7(input);
22322
+ const reader = input instanceof BinaryReader8 ? input : new BinaryReader8(input);
21343
22323
  let end = length === void 0 ? reader.len : reader.pos + length;
21344
22324
  const message = createBaseSendRawTxRequest();
21345
22325
  while (reader.pos < end) {
@@ -21356,7 +22336,7 @@ var SendRawTxRequest = {
21356
22336
  if (tag !== 16) {
21357
22337
  break;
21358
22338
  }
21359
- message.maxBurnAmount = longToNumber4(reader.uint64());
22339
+ message.maxBurnAmount = longToNumber5(reader.uint64());
21360
22340
  continue;
21361
22341
  }
21362
22342
  }
@@ -21369,8 +22349,8 @@ var SendRawTxRequest = {
21369
22349
  },
21370
22350
  fromJSON(object) {
21371
22351
  return {
21372
- tx: isSet6(object.tx) ? globalThis.String(object.tx) : "",
21373
- maxBurnAmount: isSet6(object.maxBurnAmount) ? globalThis.Number(object.maxBurnAmount) : void 0
22352
+ tx: isSet7(object.tx) ? globalThis.String(object.tx) : "",
22353
+ maxBurnAmount: isSet7(object.maxBurnAmount) ? globalThis.Number(object.maxBurnAmount) : void 0
21374
22354
  };
21375
22355
  },
21376
22356
  toJSON(message) {
@@ -21397,14 +22377,14 @@ function createBaseGetTokenPubkeyInfoRequest() {
21397
22377
  return { publicKeys: [] };
21398
22378
  }
21399
22379
  var GetTokenPubkeyInfoRequest = {
21400
- encode(message, writer = new BinaryWriter7()) {
22380
+ encode(message, writer = new BinaryWriter8()) {
21401
22381
  for (const v of message.publicKeys) {
21402
22382
  writer.uint32(10).bytes(v);
21403
22383
  }
21404
22384
  return writer;
21405
22385
  },
21406
22386
  decode(input, length) {
21407
- const reader = input instanceof BinaryReader7 ? input : new BinaryReader7(input);
22387
+ const reader = input instanceof BinaryReader8 ? input : new BinaryReader8(input);
21408
22388
  let end = length === void 0 ? reader.len : reader.pos + length;
21409
22389
  const message = createBaseGetTokenPubkeyInfoRequest();
21410
22390
  while (reader.pos < end) {
@@ -21427,13 +22407,13 @@ var GetTokenPubkeyInfoRequest = {
21427
22407
  },
21428
22408
  fromJSON(object) {
21429
22409
  return {
21430
- publicKeys: globalThis.Array.isArray(object?.publicKeys) ? object.publicKeys.map((e) => bytesFromBase645(e)) : []
22410
+ publicKeys: globalThis.Array.isArray(object?.publicKeys) ? object.publicKeys.map((e) => bytesFromBase646(e)) : []
21431
22411
  };
21432
22412
  },
21433
22413
  toJSON(message) {
21434
22414
  const obj = {};
21435
22415
  if (message.publicKeys?.length) {
21436
- obj.publicKeys = message.publicKeys.map((e) => base64FromBytes5(e));
22416
+ obj.publicKeys = message.publicKeys.map((e) => base64FromBytes6(e));
21437
22417
  }
21438
22418
  return obj;
21439
22419
  },
@@ -21450,14 +22430,14 @@ function createBaseGetTokenPubkeyInfoResponse() {
21450
22430
  return { tokenPubkeyInfos: [] };
21451
22431
  }
21452
22432
  var GetTokenPubkeyInfoResponse = {
21453
- encode(message, writer = new BinaryWriter7()) {
22433
+ encode(message, writer = new BinaryWriter8()) {
21454
22434
  for (const v of message.tokenPubkeyInfos) {
21455
22435
  TokenPubkeyInfo.encode(v, writer.uint32(10).fork()).join();
21456
22436
  }
21457
22437
  return writer;
21458
22438
  },
21459
22439
  decode(input, length) {
21460
- const reader = input instanceof BinaryReader7 ? input : new BinaryReader7(input);
22440
+ const reader = input instanceof BinaryReader8 ? input : new BinaryReader8(input);
21461
22441
  let end = length === void 0 ? reader.len : reader.pos + length;
21462
22442
  const message = createBaseGetTokenPubkeyInfoResponse();
21463
22443
  while (reader.pos < end) {
@@ -21503,7 +22483,7 @@ function createBaseTokenPubkeyInfo() {
21503
22483
  return { announcement: void 0, totalSupply: new Uint8Array(0), owner: void 0, logoUrl: void 0 };
21504
22484
  }
21505
22485
  var TokenPubkeyInfo = {
21506
- encode(message, writer = new BinaryWriter7()) {
22486
+ encode(message, writer = new BinaryWriter8()) {
21507
22487
  if (message.announcement !== void 0) {
21508
22488
  TokenPubkeyAnnouncement.encode(message.announcement, writer.uint32(10).fork()).join();
21509
22489
  }
@@ -21519,7 +22499,7 @@ var TokenPubkeyInfo = {
21519
22499
  return writer;
21520
22500
  },
21521
22501
  decode(input, length) {
21522
- const reader = input instanceof BinaryReader7 ? input : new BinaryReader7(input);
22502
+ const reader = input instanceof BinaryReader8 ? input : new BinaryReader8(input);
21523
22503
  let end = length === void 0 ? reader.len : reader.pos + length;
21524
22504
  const message = createBaseTokenPubkeyInfo();
21525
22505
  while (reader.pos < end) {
@@ -21563,10 +22543,10 @@ var TokenPubkeyInfo = {
21563
22543
  },
21564
22544
  fromJSON(object) {
21565
22545
  return {
21566
- announcement: isSet6(object.announcement) ? TokenPubkeyAnnouncement.fromJSON(object.announcement) : void 0,
21567
- totalSupply: isSet6(object.totalSupply) ? bytesFromBase645(object.totalSupply) : new Uint8Array(0),
21568
- owner: isSet6(object.owner) ? bytesFromBase645(object.owner) : void 0,
21569
- logoUrl: isSet6(object.logoUrl) ? globalThis.String(object.logoUrl) : void 0
22546
+ announcement: isSet7(object.announcement) ? TokenPubkeyAnnouncement.fromJSON(object.announcement) : void 0,
22547
+ totalSupply: isSet7(object.totalSupply) ? bytesFromBase646(object.totalSupply) : new Uint8Array(0),
22548
+ owner: isSet7(object.owner) ? bytesFromBase646(object.owner) : void 0,
22549
+ logoUrl: isSet7(object.logoUrl) ? globalThis.String(object.logoUrl) : void 0
21570
22550
  };
21571
22551
  },
21572
22552
  toJSON(message) {
@@ -21575,10 +22555,10 @@ var TokenPubkeyInfo = {
21575
22555
  obj.announcement = TokenPubkeyAnnouncement.toJSON(message.announcement);
21576
22556
  }
21577
22557
  if (message.totalSupply.length !== 0) {
21578
- obj.totalSupply = base64FromBytes5(message.totalSupply);
22558
+ obj.totalSupply = base64FromBytes6(message.totalSupply);
21579
22559
  }
21580
22560
  if (message.owner !== void 0) {
21581
- obj.owner = base64FromBytes5(message.owner);
22561
+ obj.owner = base64FromBytes6(message.owner);
21582
22562
  }
21583
22563
  if (message.logoUrl !== void 0) {
21584
22564
  obj.logoUrl = message.logoUrl;
@@ -21597,7 +22577,7 @@ var TokenPubkeyInfo = {
21597
22577
  return message;
21598
22578
  }
21599
22579
  };
21600
- function createBaseTokenOutput2() {
22580
+ function createBaseTokenOutput3() {
21601
22581
  return {
21602
22582
  id: "",
21603
22583
  ownerPublicKey: new Uint8Array(0),
@@ -21609,8 +22589,8 @@ function createBaseTokenOutput2() {
21609
22589
  isFrozen: void 0
21610
22590
  };
21611
22591
  }
21612
- var TokenOutput2 = {
21613
- encode(message, writer = new BinaryWriter7()) {
22592
+ var TokenOutput3 = {
22593
+ encode(message, writer = new BinaryWriter8()) {
21614
22594
  if (message.id !== "") {
21615
22595
  writer.uint32(10).string(message.id);
21616
22596
  }
@@ -21638,9 +22618,9 @@ var TokenOutput2 = {
21638
22618
  return writer;
21639
22619
  },
21640
22620
  decode(input, length) {
21641
- const reader = input instanceof BinaryReader7 ? input : new BinaryReader7(input);
22621
+ const reader = input instanceof BinaryReader8 ? input : new BinaryReader8(input);
21642
22622
  let end = length === void 0 ? reader.len : reader.pos + length;
21643
- const message = createBaseTokenOutput2();
22623
+ const message = createBaseTokenOutput3();
21644
22624
  while (reader.pos < end) {
21645
22625
  const tag = reader.uint32();
21646
22626
  switch (tag >>> 3) {
@@ -21669,14 +22649,14 @@ var TokenOutput2 = {
21669
22649
  if (tag !== 32) {
21670
22650
  break;
21671
22651
  }
21672
- message.withdrawalBondSats = longToNumber4(reader.uint64());
22652
+ message.withdrawalBondSats = longToNumber5(reader.uint64());
21673
22653
  continue;
21674
22654
  }
21675
22655
  case 5: {
21676
22656
  if (tag !== 40) {
21677
22657
  break;
21678
22658
  }
21679
- message.withdrawalLocktime = longToNumber4(reader.uint64());
22659
+ message.withdrawalLocktime = longToNumber5(reader.uint64());
21680
22660
  continue;
21681
22661
  }
21682
22662
  case 6: {
@@ -21710,14 +22690,14 @@ var TokenOutput2 = {
21710
22690
  },
21711
22691
  fromJSON(object) {
21712
22692
  return {
21713
- id: isSet6(object.id) ? globalThis.String(object.id) : "",
21714
- ownerPublicKey: isSet6(object.ownerPublicKey) ? bytesFromBase645(object.ownerPublicKey) : new Uint8Array(0),
21715
- revocationCommitment: isSet6(object.revocationCommitment) ? bytesFromBase645(object.revocationCommitment) : new Uint8Array(0),
21716
- withdrawalBondSats: isSet6(object.withdrawalBondSats) ? globalThis.Number(object.withdrawalBondSats) : 0,
21717
- withdrawalLocktime: isSet6(object.withdrawalLocktime) ? globalThis.Number(object.withdrawalLocktime) : 0,
21718
- tokenPublicKey: isSet6(object.tokenPublicKey) ? bytesFromBase645(object.tokenPublicKey) : new Uint8Array(0),
21719
- tokenAmount: isSet6(object.tokenAmount) ? bytesFromBase645(object.tokenAmount) : new Uint8Array(0),
21720
- isFrozen: isSet6(object.isFrozen) ? globalThis.Boolean(object.isFrozen) : void 0
22693
+ id: isSet7(object.id) ? globalThis.String(object.id) : "",
22694
+ ownerPublicKey: isSet7(object.ownerPublicKey) ? bytesFromBase646(object.ownerPublicKey) : new Uint8Array(0),
22695
+ revocationCommitment: isSet7(object.revocationCommitment) ? bytesFromBase646(object.revocationCommitment) : new Uint8Array(0),
22696
+ withdrawalBondSats: isSet7(object.withdrawalBondSats) ? globalThis.Number(object.withdrawalBondSats) : 0,
22697
+ withdrawalLocktime: isSet7(object.withdrawalLocktime) ? globalThis.Number(object.withdrawalLocktime) : 0,
22698
+ tokenPublicKey: isSet7(object.tokenPublicKey) ? bytesFromBase646(object.tokenPublicKey) : new Uint8Array(0),
22699
+ tokenAmount: isSet7(object.tokenAmount) ? bytesFromBase646(object.tokenAmount) : new Uint8Array(0),
22700
+ isFrozen: isSet7(object.isFrozen) ? globalThis.Boolean(object.isFrozen) : void 0
21721
22701
  };
21722
22702
  },
21723
22703
  toJSON(message) {
@@ -21726,10 +22706,10 @@ var TokenOutput2 = {
21726
22706
  obj.id = message.id;
21727
22707
  }
21728
22708
  if (message.ownerPublicKey.length !== 0) {
21729
- obj.ownerPublicKey = base64FromBytes5(message.ownerPublicKey);
22709
+ obj.ownerPublicKey = base64FromBytes6(message.ownerPublicKey);
21730
22710
  }
21731
22711
  if (message.revocationCommitment.length !== 0) {
21732
- obj.revocationCommitment = base64FromBytes5(message.revocationCommitment);
22712
+ obj.revocationCommitment = base64FromBytes6(message.revocationCommitment);
21733
22713
  }
21734
22714
  if (message.withdrawalBondSats !== 0) {
21735
22715
  obj.withdrawalBondSats = Math.round(message.withdrawalBondSats);
@@ -21738,10 +22718,10 @@ var TokenOutput2 = {
21738
22718
  obj.withdrawalLocktime = Math.round(message.withdrawalLocktime);
21739
22719
  }
21740
22720
  if (message.tokenPublicKey.length !== 0) {
21741
- obj.tokenPublicKey = base64FromBytes5(message.tokenPublicKey);
22721
+ obj.tokenPublicKey = base64FromBytes6(message.tokenPublicKey);
21742
22722
  }
21743
22723
  if (message.tokenAmount.length !== 0) {
21744
- obj.tokenAmount = base64FromBytes5(message.tokenAmount);
22724
+ obj.tokenAmount = base64FromBytes6(message.tokenAmount);
21745
22725
  }
21746
22726
  if (message.isFrozen !== void 0) {
21747
22727
  obj.isFrozen = message.isFrozen;
@@ -21749,10 +22729,10 @@ var TokenOutput2 = {
21749
22729
  return obj;
21750
22730
  },
21751
22731
  create(base) {
21752
- return TokenOutput2.fromPartial(base ?? {});
22732
+ return TokenOutput3.fromPartial(base ?? {});
21753
22733
  },
21754
22734
  fromPartial(object) {
21755
- const message = createBaseTokenOutput2();
22735
+ const message = createBaseTokenOutput3();
21756
22736
  message.id = object.id ?? "";
21757
22737
  message.ownerPublicKey = object.ownerPublicKey ?? new Uint8Array(0);
21758
22738
  message.revocationCommitment = object.revocationCommitment ?? new Uint8Array(0);
@@ -21774,7 +22754,7 @@ function createBaseFreezeTokensPayload2() {
21774
22754
  };
21775
22755
  }
21776
22756
  var FreezeTokensPayload2 = {
21777
- encode(message, writer = new BinaryWriter7()) {
22757
+ encode(message, writer = new BinaryWriter8()) {
21778
22758
  if (message.ownerPublicKey.length !== 0) {
21779
22759
  writer.uint32(10).bytes(message.ownerPublicKey);
21780
22760
  }
@@ -21793,7 +22773,7 @@ var FreezeTokensPayload2 = {
21793
22773
  return writer;
21794
22774
  },
21795
22775
  decode(input, length) {
21796
- const reader = input instanceof BinaryReader7 ? input : new BinaryReader7(input);
22776
+ const reader = input instanceof BinaryReader8 ? input : new BinaryReader8(input);
21797
22777
  let end = length === void 0 ? reader.len : reader.pos + length;
21798
22778
  const message = createBaseFreezeTokensPayload2();
21799
22779
  while (reader.pos < end) {
@@ -21817,7 +22797,7 @@ var FreezeTokensPayload2 = {
21817
22797
  if (tag !== 24) {
21818
22798
  break;
21819
22799
  }
21820
- message.timestamp = longToNumber4(reader.uint64());
22800
+ message.timestamp = longToNumber5(reader.uint64());
21821
22801
  continue;
21822
22802
  }
21823
22803
  case 4: {
@@ -21844,26 +22824,26 @@ var FreezeTokensPayload2 = {
21844
22824
  },
21845
22825
  fromJSON(object) {
21846
22826
  return {
21847
- ownerPublicKey: isSet6(object.ownerPublicKey) ? bytesFromBase645(object.ownerPublicKey) : new Uint8Array(0),
21848
- tokenPublicKey: isSet6(object.tokenPublicKey) ? bytesFromBase645(object.tokenPublicKey) : new Uint8Array(0),
21849
- timestamp: isSet6(object.timestamp) ? globalThis.Number(object.timestamp) : 0,
21850
- operatorIdentityPublicKey: isSet6(object.operatorIdentityPublicKey) ? bytesFromBase645(object.operatorIdentityPublicKey) : new Uint8Array(0),
21851
- shouldUnfreeze: isSet6(object.shouldUnfreeze) ? globalThis.Boolean(object.shouldUnfreeze) : false
22827
+ ownerPublicKey: isSet7(object.ownerPublicKey) ? bytesFromBase646(object.ownerPublicKey) : new Uint8Array(0),
22828
+ tokenPublicKey: isSet7(object.tokenPublicKey) ? bytesFromBase646(object.tokenPublicKey) : new Uint8Array(0),
22829
+ timestamp: isSet7(object.timestamp) ? globalThis.Number(object.timestamp) : 0,
22830
+ operatorIdentityPublicKey: isSet7(object.operatorIdentityPublicKey) ? bytesFromBase646(object.operatorIdentityPublicKey) : new Uint8Array(0),
22831
+ shouldUnfreeze: isSet7(object.shouldUnfreeze) ? globalThis.Boolean(object.shouldUnfreeze) : false
21852
22832
  };
21853
22833
  },
21854
22834
  toJSON(message) {
21855
22835
  const obj = {};
21856
22836
  if (message.ownerPublicKey.length !== 0) {
21857
- obj.ownerPublicKey = base64FromBytes5(message.ownerPublicKey);
22837
+ obj.ownerPublicKey = base64FromBytes6(message.ownerPublicKey);
21858
22838
  }
21859
22839
  if (message.tokenPublicKey.length !== 0) {
21860
- obj.tokenPublicKey = base64FromBytes5(message.tokenPublicKey);
22840
+ obj.tokenPublicKey = base64FromBytes6(message.tokenPublicKey);
21861
22841
  }
21862
22842
  if (message.timestamp !== 0) {
21863
22843
  obj.timestamp = Math.round(message.timestamp);
21864
22844
  }
21865
22845
  if (message.operatorIdentityPublicKey.length !== 0) {
21866
- obj.operatorIdentityPublicKey = base64FromBytes5(message.operatorIdentityPublicKey);
22846
+ obj.operatorIdentityPublicKey = base64FromBytes6(message.operatorIdentityPublicKey);
21867
22847
  }
21868
22848
  if (message.shouldUnfreeze !== false) {
21869
22849
  obj.shouldUnfreeze = message.shouldUnfreeze;
@@ -21887,7 +22867,7 @@ function createBaseTokenTransactionResponse() {
21887
22867
  return { finalized: false, finalTokenTransaction: void 0, finalTokenTransactionHash: new Uint8Array(0) };
21888
22868
  }
21889
22869
  var TokenTransactionResponse = {
21890
- encode(message, writer = new BinaryWriter7()) {
22870
+ encode(message, writer = new BinaryWriter8()) {
21891
22871
  if (message.finalized !== false) {
21892
22872
  writer.uint32(8).bool(message.finalized);
21893
22873
  }
@@ -21900,7 +22880,7 @@ var TokenTransactionResponse = {
21900
22880
  return writer;
21901
22881
  },
21902
22882
  decode(input, length) {
21903
- const reader = input instanceof BinaryReader7 ? input : new BinaryReader7(input);
22883
+ const reader = input instanceof BinaryReader8 ? input : new BinaryReader8(input);
21904
22884
  let end = length === void 0 ? reader.len : reader.pos + length;
21905
22885
  const message = createBaseTokenTransactionResponse();
21906
22886
  while (reader.pos < end) {
@@ -21937,9 +22917,9 @@ var TokenTransactionResponse = {
21937
22917
  },
21938
22918
  fromJSON(object) {
21939
22919
  return {
21940
- finalized: isSet6(object.finalized) ? globalThis.Boolean(object.finalized) : false,
21941
- finalTokenTransaction: isSet6(object.finalTokenTransaction) ? TokenTransaction.fromJSON(object.finalTokenTransaction) : void 0,
21942
- finalTokenTransactionHash: isSet6(object.finalTokenTransactionHash) ? bytesFromBase645(object.finalTokenTransactionHash) : new Uint8Array(0)
22920
+ finalized: isSet7(object.finalized) ? globalThis.Boolean(object.finalized) : false,
22921
+ finalTokenTransaction: isSet7(object.finalTokenTransaction) ? TokenTransaction.fromJSON(object.finalTokenTransaction) : void 0,
22922
+ finalTokenTransactionHash: isSet7(object.finalTokenTransactionHash) ? bytesFromBase646(object.finalTokenTransactionHash) : new Uint8Array(0)
21943
22923
  };
21944
22924
  },
21945
22925
  toJSON(message) {
@@ -21951,7 +22931,7 @@ var TokenTransactionResponse = {
21951
22931
  obj.finalTokenTransaction = TokenTransaction.toJSON(message.finalTokenTransaction);
21952
22932
  }
21953
22933
  if (message.finalTokenTransactionHash.length !== 0) {
21954
- obj.finalTokenTransactionHash = base64FromBytes5(message.finalTokenTransactionHash);
22934
+ obj.finalTokenTransactionHash = base64FromBytes6(message.finalTokenTransactionHash);
21955
22935
  }
21956
22936
  return obj;
21957
22937
  },
@@ -21970,7 +22950,7 @@ function createBaseTransaction() {
21970
22950
  return { transaction: void 0 };
21971
22951
  }
21972
22952
  var Transaction6 = {
21973
- encode(message, writer = new BinaryWriter7()) {
22953
+ encode(message, writer = new BinaryWriter8()) {
21974
22954
  switch (message.transaction?.$case) {
21975
22955
  case "onChain":
21976
22956
  OnChainTransaction.encode(message.transaction.onChain, writer.uint32(10).fork()).join();
@@ -21982,7 +22962,7 @@ var Transaction6 = {
21982
22962
  return writer;
21983
22963
  },
21984
22964
  decode(input, length) {
21985
- const reader = input instanceof BinaryReader7 ? input : new BinaryReader7(input);
22965
+ const reader = input instanceof BinaryReader8 ? input : new BinaryReader8(input);
21986
22966
  let end = length === void 0 ? reader.len : reader.pos + length;
21987
22967
  const message = createBaseTransaction();
21988
22968
  while (reader.pos < end) {
@@ -22012,7 +22992,7 @@ var Transaction6 = {
22012
22992
  },
22013
22993
  fromJSON(object) {
22014
22994
  return {
22015
- transaction: isSet6(object.onChain) ? { $case: "onChain", onChain: OnChainTransaction.fromJSON(object.onChain) } : isSet6(object.spark) ? { $case: "spark", spark: SparkTransaction.fromJSON(object.spark) } : void 0
22995
+ transaction: isSet7(object.onChain) ? { $case: "onChain", onChain: OnChainTransaction.fromJSON(object.onChain) } : isSet7(object.spark) ? { $case: "spark", spark: SparkTransaction.fromJSON(object.spark) } : void 0
22016
22996
  };
22017
22997
  },
22018
22998
  toJSON(message) {
@@ -22053,7 +23033,7 @@ function createBaseListAllTokenTransactionsCursor() {
22053
23033
  return { lastTransactionHash: new Uint8Array(0), layer: 0 };
22054
23034
  }
22055
23035
  var ListAllTokenTransactionsCursor = {
22056
- encode(message, writer = new BinaryWriter7()) {
23036
+ encode(message, writer = new BinaryWriter8()) {
22057
23037
  if (message.lastTransactionHash.length !== 0) {
22058
23038
  writer.uint32(10).bytes(message.lastTransactionHash);
22059
23039
  }
@@ -22063,7 +23043,7 @@ var ListAllTokenTransactionsCursor = {
22063
23043
  return writer;
22064
23044
  },
22065
23045
  decode(input, length) {
22066
- const reader = input instanceof BinaryReader7 ? input : new BinaryReader7(input);
23046
+ const reader = input instanceof BinaryReader8 ? input : new BinaryReader8(input);
22067
23047
  let end = length === void 0 ? reader.len : reader.pos + length;
22068
23048
  const message = createBaseListAllTokenTransactionsCursor();
22069
23049
  while (reader.pos < end) {
@@ -22093,14 +23073,14 @@ var ListAllTokenTransactionsCursor = {
22093
23073
  },
22094
23074
  fromJSON(object) {
22095
23075
  return {
22096
- lastTransactionHash: isSet6(object.lastTransactionHash) ? bytesFromBase645(object.lastTransactionHash) : new Uint8Array(0),
22097
- layer: isSet6(object.layer) ? layerFromJSON(object.layer) : 0
23076
+ lastTransactionHash: isSet7(object.lastTransactionHash) ? bytesFromBase646(object.lastTransactionHash) : new Uint8Array(0),
23077
+ layer: isSet7(object.layer) ? layerFromJSON(object.layer) : 0
22098
23078
  };
22099
23079
  },
22100
23080
  toJSON(message) {
22101
23081
  const obj = {};
22102
23082
  if (message.lastTransactionHash.length !== 0) {
22103
- obj.lastTransactionHash = base64FromBytes5(message.lastTransactionHash);
23083
+ obj.lastTransactionHash = base64FromBytes6(message.lastTransactionHash);
22104
23084
  }
22105
23085
  if (message.layer !== 0) {
22106
23086
  obj.layer = layerToJSON(message.layer);
@@ -22121,7 +23101,7 @@ function createBaseOnChainTokenOutput() {
22121
23101
  return { rawTx: new Uint8Array(0), vout: 0, amountSats: 0, tokenPublicKey: void 0, tokenAmount: void 0 };
22122
23102
  }
22123
23103
  var OnChainTokenOutput = {
22124
- encode(message, writer = new BinaryWriter7()) {
23104
+ encode(message, writer = new BinaryWriter8()) {
22125
23105
  if (message.rawTx.length !== 0) {
22126
23106
  writer.uint32(10).bytes(message.rawTx);
22127
23107
  }
@@ -22140,7 +23120,7 @@ var OnChainTokenOutput = {
22140
23120
  return writer;
22141
23121
  },
22142
23122
  decode(input, length) {
22143
- const reader = input instanceof BinaryReader7 ? input : new BinaryReader7(input);
23123
+ const reader = input instanceof BinaryReader8 ? input : new BinaryReader8(input);
22144
23124
  let end = length === void 0 ? reader.len : reader.pos + length;
22145
23125
  const message = createBaseOnChainTokenOutput();
22146
23126
  while (reader.pos < end) {
@@ -22164,7 +23144,7 @@ var OnChainTokenOutput = {
22164
23144
  if (tag !== 24) {
22165
23145
  break;
22166
23146
  }
22167
- message.amountSats = longToNumber4(reader.uint64());
23147
+ message.amountSats = longToNumber5(reader.uint64());
22168
23148
  continue;
22169
23149
  }
22170
23150
  case 4: {
@@ -22191,17 +23171,17 @@ var OnChainTokenOutput = {
22191
23171
  },
22192
23172
  fromJSON(object) {
22193
23173
  return {
22194
- rawTx: isSet6(object.rawTx) ? bytesFromBase645(object.rawTx) : new Uint8Array(0),
22195
- vout: isSet6(object.vout) ? globalThis.Number(object.vout) : 0,
22196
- amountSats: isSet6(object.amountSats) ? globalThis.Number(object.amountSats) : 0,
22197
- tokenPublicKey: isSet6(object.tokenPublicKey) ? globalThis.String(object.tokenPublicKey) : void 0,
22198
- tokenAmount: isSet6(object.tokenAmount) ? bytesFromBase645(object.tokenAmount) : void 0
23174
+ rawTx: isSet7(object.rawTx) ? bytesFromBase646(object.rawTx) : new Uint8Array(0),
23175
+ vout: isSet7(object.vout) ? globalThis.Number(object.vout) : 0,
23176
+ amountSats: isSet7(object.amountSats) ? globalThis.Number(object.amountSats) : 0,
23177
+ tokenPublicKey: isSet7(object.tokenPublicKey) ? globalThis.String(object.tokenPublicKey) : void 0,
23178
+ tokenAmount: isSet7(object.tokenAmount) ? bytesFromBase646(object.tokenAmount) : void 0
22199
23179
  };
22200
23180
  },
22201
23181
  toJSON(message) {
22202
23182
  const obj = {};
22203
23183
  if (message.rawTx.length !== 0) {
22204
- obj.rawTx = base64FromBytes5(message.rawTx);
23184
+ obj.rawTx = base64FromBytes6(message.rawTx);
22205
23185
  }
22206
23186
  if (message.vout !== 0) {
22207
23187
  obj.vout = Math.round(message.vout);
@@ -22213,7 +23193,7 @@ var OnChainTokenOutput = {
22213
23193
  obj.tokenPublicKey = message.tokenPublicKey;
22214
23194
  }
22215
23195
  if (message.tokenAmount !== void 0) {
22216
- obj.tokenAmount = base64FromBytes5(message.tokenAmount);
23196
+ obj.tokenAmount = base64FromBytes6(message.tokenAmount);
22217
23197
  }
22218
23198
  return obj;
22219
23199
  },
@@ -22243,7 +23223,7 @@ function createBaseOnChainTransaction() {
22243
23223
  };
22244
23224
  }
22245
23225
  var OnChainTransaction = {
22246
- encode(message, writer = new BinaryWriter7()) {
23226
+ encode(message, writer = new BinaryWriter8()) {
22247
23227
  if (message.operationType !== 0) {
22248
23228
  writer.uint32(8).int32(message.operationType);
22249
23229
  }
@@ -22263,15 +23243,15 @@ var OnChainTransaction = {
22263
23243
  OnChainTokenOutput.encode(v, writer.uint32(50).fork()).join();
22264
23244
  }
22265
23245
  if (message.broadcastedAt !== void 0) {
22266
- Timestamp.encode(toTimestamp2(message.broadcastedAt), writer.uint32(58).fork()).join();
23246
+ Timestamp.encode(toTimestamp3(message.broadcastedAt), writer.uint32(58).fork()).join();
22267
23247
  }
22268
23248
  if (message.confirmedAt !== void 0) {
22269
- Timestamp.encode(toTimestamp2(message.confirmedAt), writer.uint32(66).fork()).join();
23249
+ Timestamp.encode(toTimestamp3(message.confirmedAt), writer.uint32(66).fork()).join();
22270
23250
  }
22271
23251
  return writer;
22272
23252
  },
22273
23253
  decode(input, length) {
22274
- const reader = input instanceof BinaryReader7 ? input : new BinaryReader7(input);
23254
+ const reader = input instanceof BinaryReader8 ? input : new BinaryReader8(input);
22275
23255
  let end = length === void 0 ? reader.len : reader.pos + length;
22276
23256
  const message = createBaseOnChainTransaction();
22277
23257
  while (reader.pos < end) {
@@ -22323,14 +23303,14 @@ var OnChainTransaction = {
22323
23303
  if (tag !== 58) {
22324
23304
  break;
22325
23305
  }
22326
- message.broadcastedAt = fromTimestamp2(Timestamp.decode(reader, reader.uint32()));
23306
+ message.broadcastedAt = fromTimestamp3(Timestamp.decode(reader, reader.uint32()));
22327
23307
  continue;
22328
23308
  }
22329
23309
  case 8: {
22330
23310
  if (tag !== 66) {
22331
23311
  break;
22332
23312
  }
22333
- message.confirmedAt = fromTimestamp2(Timestamp.decode(reader, reader.uint32()));
23313
+ message.confirmedAt = fromTimestamp3(Timestamp.decode(reader, reader.uint32()));
22334
23314
  continue;
22335
23315
  }
22336
23316
  }
@@ -22343,14 +23323,14 @@ var OnChainTransaction = {
22343
23323
  },
22344
23324
  fromJSON(object) {
22345
23325
  return {
22346
- operationType: isSet6(object.operationType) ? operationTypeFromJSON(object.operationType) : 0,
22347
- transactionHash: isSet6(object.transactionHash) ? bytesFromBase645(object.transactionHash) : new Uint8Array(0),
22348
- rawtx: isSet6(object.rawtx) ? bytesFromBase645(object.rawtx) : new Uint8Array(0),
22349
- status: isSet6(object.status) ? onChainTransactionStatusFromJSON(object.status) : 0,
23326
+ operationType: isSet7(object.operationType) ? operationTypeFromJSON(object.operationType) : 0,
23327
+ transactionHash: isSet7(object.transactionHash) ? bytesFromBase646(object.transactionHash) : new Uint8Array(0),
23328
+ rawtx: isSet7(object.rawtx) ? bytesFromBase646(object.rawtx) : new Uint8Array(0),
23329
+ status: isSet7(object.status) ? onChainTransactionStatusFromJSON(object.status) : 0,
22350
23330
  inputs: globalThis.Array.isArray(object?.inputs) ? object.inputs.map((e) => OnChainTokenOutput.fromJSON(e)) : [],
22351
23331
  outputs: globalThis.Array.isArray(object?.outputs) ? object.outputs.map((e) => OnChainTokenOutput.fromJSON(e)) : [],
22352
- broadcastedAt: isSet6(object.broadcastedAt) ? fromJsonTimestamp2(object.broadcastedAt) : void 0,
22353
- confirmedAt: isSet6(object.confirmedAt) ? fromJsonTimestamp2(object.confirmedAt) : void 0
23332
+ broadcastedAt: isSet7(object.broadcastedAt) ? fromJsonTimestamp3(object.broadcastedAt) : void 0,
23333
+ confirmedAt: isSet7(object.confirmedAt) ? fromJsonTimestamp3(object.confirmedAt) : void 0
22354
23334
  };
22355
23335
  },
22356
23336
  toJSON(message) {
@@ -22359,10 +23339,10 @@ var OnChainTransaction = {
22359
23339
  obj.operationType = operationTypeToJSON(message.operationType);
22360
23340
  }
22361
23341
  if (message.transactionHash.length !== 0) {
22362
- obj.transactionHash = base64FromBytes5(message.transactionHash);
23342
+ obj.transactionHash = base64FromBytes6(message.transactionHash);
22363
23343
  }
22364
23344
  if (message.rawtx.length !== 0) {
22365
- obj.rawtx = base64FromBytes5(message.rawtx);
23345
+ obj.rawtx = base64FromBytes6(message.rawtx);
22366
23346
  }
22367
23347
  if (message.status !== 0) {
22368
23348
  obj.status = onChainTransactionStatusToJSON(message.status);
@@ -22409,7 +23389,7 @@ function createBaseSparkTransaction() {
22409
23389
  };
22410
23390
  }
22411
23391
  var SparkTransaction = {
22412
- encode(message, writer = new BinaryWriter7()) {
23392
+ encode(message, writer = new BinaryWriter8()) {
22413
23393
  if (message.operationType !== 0) {
22414
23394
  writer.uint32(8).int32(message.operationType);
22415
23395
  }
@@ -22420,7 +23400,7 @@ var SparkTransaction = {
22420
23400
  writer.uint32(24).int32(message.status);
22421
23401
  }
22422
23402
  if (message.confirmedAt !== void 0) {
22423
- Timestamp.encode(toTimestamp2(message.confirmedAt), writer.uint32(34).fork()).join();
23403
+ Timestamp.encode(toTimestamp3(message.confirmedAt), writer.uint32(34).fork()).join();
22424
23404
  }
22425
23405
  for (const v of message.leavesToCreate) {
22426
23406
  SparkLeaf.encode(v, writer.uint32(42).fork()).join();
@@ -22434,7 +23414,7 @@ var SparkTransaction = {
22434
23414
  return writer;
22435
23415
  },
22436
23416
  decode(input, length) {
22437
- const reader = input instanceof BinaryReader7 ? input : new BinaryReader7(input);
23417
+ const reader = input instanceof BinaryReader8 ? input : new BinaryReader8(input);
22438
23418
  let end = length === void 0 ? reader.len : reader.pos + length;
22439
23419
  const message = createBaseSparkTransaction();
22440
23420
  while (reader.pos < end) {
@@ -22465,7 +23445,7 @@ var SparkTransaction = {
22465
23445
  if (tag !== 34) {
22466
23446
  break;
22467
23447
  }
22468
- message.confirmedAt = fromTimestamp2(Timestamp.decode(reader, reader.uint32()));
23448
+ message.confirmedAt = fromTimestamp3(Timestamp.decode(reader, reader.uint32()));
22469
23449
  continue;
22470
23450
  }
22471
23451
  case 5: {
@@ -22499,13 +23479,13 @@ var SparkTransaction = {
22499
23479
  },
22500
23480
  fromJSON(object) {
22501
23481
  return {
22502
- operationType: isSet6(object.operationType) ? operationTypeFromJSON(object.operationType) : 0,
22503
- transactionHash: isSet6(object.transactionHash) ? bytesFromBase645(object.transactionHash) : new Uint8Array(0),
22504
- status: isSet6(object.status) ? sparkTransactionStatusFromJSON(object.status) : 0,
22505
- confirmedAt: isSet6(object.confirmedAt) ? fromJsonTimestamp2(object.confirmedAt) : void 0,
23482
+ operationType: isSet7(object.operationType) ? operationTypeFromJSON(object.operationType) : 0,
23483
+ transactionHash: isSet7(object.transactionHash) ? bytesFromBase646(object.transactionHash) : new Uint8Array(0),
23484
+ status: isSet7(object.status) ? sparkTransactionStatusFromJSON(object.status) : 0,
23485
+ confirmedAt: isSet7(object.confirmedAt) ? fromJsonTimestamp3(object.confirmedAt) : void 0,
22506
23486
  leavesToCreate: globalThis.Array.isArray(object?.leavesToCreate) ? object.leavesToCreate.map((e) => SparkLeaf.fromJSON(e)) : [],
22507
23487
  leavesToSpend: globalThis.Array.isArray(object?.leavesToSpend) ? object.leavesToSpend.map((e) => SparkLeaf.fromJSON(e)) : [],
22508
- sparkOperatorIdentityPublicKeys: globalThis.Array.isArray(object?.sparkOperatorIdentityPublicKeys) ? object.sparkOperatorIdentityPublicKeys.map((e) => bytesFromBase645(e)) : []
23488
+ sparkOperatorIdentityPublicKeys: globalThis.Array.isArray(object?.sparkOperatorIdentityPublicKeys) ? object.sparkOperatorIdentityPublicKeys.map((e) => bytesFromBase646(e)) : []
22509
23489
  };
22510
23490
  },
22511
23491
  toJSON(message) {
@@ -22514,7 +23494,7 @@ var SparkTransaction = {
22514
23494
  obj.operationType = operationTypeToJSON(message.operationType);
22515
23495
  }
22516
23496
  if (message.transactionHash.length !== 0) {
22517
- obj.transactionHash = base64FromBytes5(message.transactionHash);
23497
+ obj.transactionHash = base64FromBytes6(message.transactionHash);
22518
23498
  }
22519
23499
  if (message.status !== 0) {
22520
23500
  obj.status = sparkTransactionStatusToJSON(message.status);
@@ -22529,7 +23509,7 @@ var SparkTransaction = {
22529
23509
  obj.leavesToSpend = message.leavesToSpend.map((e) => SparkLeaf.toJSON(e));
22530
23510
  }
22531
23511
  if (message.sparkOperatorIdentityPublicKeys?.length) {
22532
- obj.sparkOperatorIdentityPublicKeys = message.sparkOperatorIdentityPublicKeys.map((e) => base64FromBytes5(e));
23512
+ obj.sparkOperatorIdentityPublicKeys = message.sparkOperatorIdentityPublicKeys.map((e) => base64FromBytes6(e));
22533
23513
  }
22534
23514
  return obj;
22535
23515
  },
@@ -22565,7 +23545,7 @@ function createBaseSparkLeaf() {
22565
23545
  };
22566
23546
  }
22567
23547
  var SparkLeaf = {
22568
- encode(message, writer = new BinaryWriter7()) {
23548
+ encode(message, writer = new BinaryWriter8()) {
22569
23549
  if (message.tokenPublicKey.length !== 0) {
22570
23550
  writer.uint32(10).bytes(message.tokenPublicKey);
22571
23551
  }
@@ -22605,7 +23585,7 @@ var SparkLeaf = {
22605
23585
  return writer;
22606
23586
  },
22607
23587
  decode(input, length) {
22608
- const reader = input instanceof BinaryReader7 ? input : new BinaryReader7(input);
23588
+ const reader = input instanceof BinaryReader8 ? input : new BinaryReader8(input);
22609
23589
  let end = length === void 0 ? reader.len : reader.pos + length;
22610
23590
  const message = createBaseSparkLeaf();
22611
23591
  while (reader.pos < end) {
@@ -22643,14 +23623,14 @@ var SparkLeaf = {
22643
23623
  if (tag !== 40) {
22644
23624
  break;
22645
23625
  }
22646
- message.withdrawalBondSats = longToNumber4(reader.uint64());
23626
+ message.withdrawalBondSats = longToNumber5(reader.uint64());
22647
23627
  continue;
22648
23628
  }
22649
23629
  case 6: {
22650
23630
  if (tag !== 48) {
22651
23631
  break;
22652
23632
  }
22653
- message.withdrawalLocktime = longToNumber4(reader.uint64());
23633
+ message.withdrawalLocktime = longToNumber5(reader.uint64());
22654
23634
  continue;
22655
23635
  }
22656
23636
  case 7: {
@@ -22705,33 +23685,33 @@ var SparkLeaf = {
22705
23685
  },
22706
23686
  fromJSON(object) {
22707
23687
  return {
22708
- tokenPublicKey: isSet6(object.tokenPublicKey) ? bytesFromBase645(object.tokenPublicKey) : new Uint8Array(0),
22709
- id: isSet6(object.id) ? globalThis.String(object.id) : "",
22710
- ownerPublicKey: isSet6(object.ownerPublicKey) ? bytesFromBase645(object.ownerPublicKey) : new Uint8Array(0),
22711
- revocationPublicKey: isSet6(object.revocationPublicKey) ? bytesFromBase645(object.revocationPublicKey) : new Uint8Array(0),
22712
- withdrawalBondSats: isSet6(object.withdrawalBondSats) ? globalThis.Number(object.withdrawalBondSats) : 0,
22713
- withdrawalLocktime: isSet6(object.withdrawalLocktime) ? globalThis.Number(object.withdrawalLocktime) : 0,
22714
- tokenAmount: isSet6(object.tokenAmount) ? bytesFromBase645(object.tokenAmount) : new Uint8Array(0),
22715
- createTxHash: isSet6(object.createTxHash) ? bytesFromBase645(object.createTxHash) : new Uint8Array(0),
22716
- createTxVoutIndex: isSet6(object.createTxVoutIndex) ? globalThis.Number(object.createTxVoutIndex) : 0,
22717
- spendTxHash: isSet6(object.spendTxHash) ? bytesFromBase645(object.spendTxHash) : void 0,
22718
- spendTxVoutIndex: isSet6(object.spendTxVoutIndex) ? globalThis.Number(object.spendTxVoutIndex) : void 0,
22719
- isFrozen: isSet6(object.isFrozen) ? globalThis.Boolean(object.isFrozen) : void 0
23688
+ tokenPublicKey: isSet7(object.tokenPublicKey) ? bytesFromBase646(object.tokenPublicKey) : new Uint8Array(0),
23689
+ id: isSet7(object.id) ? globalThis.String(object.id) : "",
23690
+ ownerPublicKey: isSet7(object.ownerPublicKey) ? bytesFromBase646(object.ownerPublicKey) : new Uint8Array(0),
23691
+ revocationPublicKey: isSet7(object.revocationPublicKey) ? bytesFromBase646(object.revocationPublicKey) : new Uint8Array(0),
23692
+ withdrawalBondSats: isSet7(object.withdrawalBondSats) ? globalThis.Number(object.withdrawalBondSats) : 0,
23693
+ withdrawalLocktime: isSet7(object.withdrawalLocktime) ? globalThis.Number(object.withdrawalLocktime) : 0,
23694
+ tokenAmount: isSet7(object.tokenAmount) ? bytesFromBase646(object.tokenAmount) : new Uint8Array(0),
23695
+ createTxHash: isSet7(object.createTxHash) ? bytesFromBase646(object.createTxHash) : new Uint8Array(0),
23696
+ createTxVoutIndex: isSet7(object.createTxVoutIndex) ? globalThis.Number(object.createTxVoutIndex) : 0,
23697
+ spendTxHash: isSet7(object.spendTxHash) ? bytesFromBase646(object.spendTxHash) : void 0,
23698
+ spendTxVoutIndex: isSet7(object.spendTxVoutIndex) ? globalThis.Number(object.spendTxVoutIndex) : void 0,
23699
+ isFrozen: isSet7(object.isFrozen) ? globalThis.Boolean(object.isFrozen) : void 0
22720
23700
  };
22721
23701
  },
22722
23702
  toJSON(message) {
22723
23703
  const obj = {};
22724
23704
  if (message.tokenPublicKey.length !== 0) {
22725
- obj.tokenPublicKey = base64FromBytes5(message.tokenPublicKey);
23705
+ obj.tokenPublicKey = base64FromBytes6(message.tokenPublicKey);
22726
23706
  }
22727
23707
  if (message.id !== "") {
22728
23708
  obj.id = message.id;
22729
23709
  }
22730
23710
  if (message.ownerPublicKey.length !== 0) {
22731
- obj.ownerPublicKey = base64FromBytes5(message.ownerPublicKey);
23711
+ obj.ownerPublicKey = base64FromBytes6(message.ownerPublicKey);
22732
23712
  }
22733
23713
  if (message.revocationPublicKey.length !== 0) {
22734
- obj.revocationPublicKey = base64FromBytes5(message.revocationPublicKey);
23714
+ obj.revocationPublicKey = base64FromBytes6(message.revocationPublicKey);
22735
23715
  }
22736
23716
  if (message.withdrawalBondSats !== 0) {
22737
23717
  obj.withdrawalBondSats = Math.round(message.withdrawalBondSats);
@@ -22740,16 +23720,16 @@ var SparkLeaf = {
22740
23720
  obj.withdrawalLocktime = Math.round(message.withdrawalLocktime);
22741
23721
  }
22742
23722
  if (message.tokenAmount.length !== 0) {
22743
- obj.tokenAmount = base64FromBytes5(message.tokenAmount);
23723
+ obj.tokenAmount = base64FromBytes6(message.tokenAmount);
22744
23724
  }
22745
23725
  if (message.createTxHash.length !== 0) {
22746
- obj.createTxHash = base64FromBytes5(message.createTxHash);
23726
+ obj.createTxHash = base64FromBytes6(message.createTxHash);
22747
23727
  }
22748
23728
  if (message.createTxVoutIndex !== 0) {
22749
23729
  obj.createTxVoutIndex = Math.round(message.createTxVoutIndex);
22750
23730
  }
22751
23731
  if (message.spendTxHash !== void 0) {
22752
- obj.spendTxHash = base64FromBytes5(message.spendTxHash);
23732
+ obj.spendTxHash = base64FromBytes6(message.spendTxHash);
22753
23733
  }
22754
23734
  if (message.spendTxVoutIndex !== void 0) {
22755
23735
  obj.spendTxVoutIndex = Math.round(message.spendTxVoutIndex);
@@ -22783,7 +23763,7 @@ function createBaseBlockInfo() {
22783
23763
  return { blockHash: new Uint8Array(0), blockHeight: 0, minedAt: void 0 };
22784
23764
  }
22785
23765
  var BlockInfo = {
22786
- encode(message, writer = new BinaryWriter7()) {
23766
+ encode(message, writer = new BinaryWriter8()) {
22787
23767
  if (message.blockHash.length !== 0) {
22788
23768
  writer.uint32(10).bytes(message.blockHash);
22789
23769
  }
@@ -22791,12 +23771,12 @@ var BlockInfo = {
22791
23771
  writer.uint32(16).uint32(message.blockHeight);
22792
23772
  }
22793
23773
  if (message.minedAt !== void 0) {
22794
- Timestamp.encode(toTimestamp2(message.minedAt), writer.uint32(34).fork()).join();
23774
+ Timestamp.encode(toTimestamp3(message.minedAt), writer.uint32(34).fork()).join();
22795
23775
  }
22796
23776
  return writer;
22797
23777
  },
22798
23778
  decode(input, length) {
22799
- const reader = input instanceof BinaryReader7 ? input : new BinaryReader7(input);
23779
+ const reader = input instanceof BinaryReader8 ? input : new BinaryReader8(input);
22800
23780
  let end = length === void 0 ? reader.len : reader.pos + length;
22801
23781
  const message = createBaseBlockInfo();
22802
23782
  while (reader.pos < end) {
@@ -22820,7 +23800,7 @@ var BlockInfo = {
22820
23800
  if (tag !== 34) {
22821
23801
  break;
22822
23802
  }
22823
- message.minedAt = fromTimestamp2(Timestamp.decode(reader, reader.uint32()));
23803
+ message.minedAt = fromTimestamp3(Timestamp.decode(reader, reader.uint32()));
22824
23804
  continue;
22825
23805
  }
22826
23806
  }
@@ -22833,15 +23813,15 @@ var BlockInfo = {
22833
23813
  },
22834
23814
  fromJSON(object) {
22835
23815
  return {
22836
- blockHash: isSet6(object.blockHash) ? bytesFromBase645(object.blockHash) : new Uint8Array(0),
22837
- blockHeight: isSet6(object.blockHeight) ? globalThis.Number(object.blockHeight) : 0,
22838
- minedAt: isSet6(object.minedAt) ? fromJsonTimestamp2(object.minedAt) : void 0
23816
+ blockHash: isSet7(object.blockHash) ? bytesFromBase646(object.blockHash) : new Uint8Array(0),
23817
+ blockHeight: isSet7(object.blockHeight) ? globalThis.Number(object.blockHeight) : 0,
23818
+ minedAt: isSet7(object.minedAt) ? fromJsonTimestamp3(object.minedAt) : void 0
22839
23819
  };
22840
23820
  },
22841
23821
  toJSON(message) {
22842
23822
  const obj = {};
22843
23823
  if (message.blockHash.length !== 0) {
22844
- obj.blockHash = base64FromBytes5(message.blockHash);
23824
+ obj.blockHash = base64FromBytes6(message.blockHash);
22845
23825
  }
22846
23826
  if (message.blockHeight !== 0) {
22847
23827
  obj.blockHeight = Math.round(message.blockHeight);
@@ -22866,14 +23846,14 @@ function createBaseTokenPubkey() {
22866
23846
  return { publicKey: new Uint8Array(0) };
22867
23847
  }
22868
23848
  var TokenPubkey = {
22869
- encode(message, writer = new BinaryWriter7()) {
23849
+ encode(message, writer = new BinaryWriter8()) {
22870
23850
  if (message.publicKey.length !== 0) {
22871
23851
  writer.uint32(10).bytes(message.publicKey);
22872
23852
  }
22873
23853
  return writer;
22874
23854
  },
22875
23855
  decode(input, length) {
22876
- const reader = input instanceof BinaryReader7 ? input : new BinaryReader7(input);
23856
+ const reader = input instanceof BinaryReader8 ? input : new BinaryReader8(input);
22877
23857
  let end = length === void 0 ? reader.len : reader.pos + length;
22878
23858
  const message = createBaseTokenPubkey();
22879
23859
  while (reader.pos < end) {
@@ -22895,12 +23875,12 @@ var TokenPubkey = {
22895
23875
  return message;
22896
23876
  },
22897
23877
  fromJSON(object) {
22898
- return { publicKey: isSet6(object.publicKey) ? bytesFromBase645(object.publicKey) : new Uint8Array(0) };
23878
+ return { publicKey: isSet7(object.publicKey) ? bytesFromBase646(object.publicKey) : new Uint8Array(0) };
22899
23879
  },
22900
23880
  toJSON(message) {
22901
23881
  const obj = {};
22902
23882
  if (message.publicKey.length !== 0) {
22903
- obj.publicKey = base64FromBytes5(message.publicKey);
23883
+ obj.publicKey = base64FromBytes6(message.publicKey);
22904
23884
  }
22905
23885
  return obj;
22906
23886
  },
@@ -22924,7 +23904,7 @@ function createBaseTokenPubkeyAnnouncement() {
22924
23904
  };
22925
23905
  }
22926
23906
  var TokenPubkeyAnnouncement = {
22927
- encode(message, writer = new BinaryWriter7()) {
23907
+ encode(message, writer = new BinaryWriter8()) {
22928
23908
  if (message.publicKey !== void 0) {
22929
23909
  TokenPubkey.encode(message.publicKey, writer.uint32(10).fork()).join();
22930
23910
  }
@@ -22946,7 +23926,7 @@ var TokenPubkeyAnnouncement = {
22946
23926
  return writer;
22947
23927
  },
22948
23928
  decode(input, length) {
22949
- const reader = input instanceof BinaryReader7 ? input : new BinaryReader7(input);
23929
+ const reader = input instanceof BinaryReader8 ? input : new BinaryReader8(input);
22950
23930
  let end = length === void 0 ? reader.len : reader.pos + length;
22951
23931
  const message = createBaseTokenPubkeyAnnouncement();
22952
23932
  while (reader.pos < end) {
@@ -23004,12 +23984,12 @@ var TokenPubkeyAnnouncement = {
23004
23984
  },
23005
23985
  fromJSON(object) {
23006
23986
  return {
23007
- publicKey: isSet6(object.publicKey) ? TokenPubkey.fromJSON(object.publicKey) : void 0,
23008
- name: isSet6(object.name) ? globalThis.String(object.name) : "",
23009
- symbol: isSet6(object.symbol) ? globalThis.String(object.symbol) : "",
23010
- decimal: isSet6(object.decimal) ? bytesFromBase645(object.decimal) : new Uint8Array(0),
23011
- maxSupply: isSet6(object.maxSupply) ? bytesFromBase645(object.maxSupply) : new Uint8Array(0),
23012
- isFreezable: isSet6(object.isFreezable) ? globalThis.Boolean(object.isFreezable) : false
23987
+ publicKey: isSet7(object.publicKey) ? TokenPubkey.fromJSON(object.publicKey) : void 0,
23988
+ name: isSet7(object.name) ? globalThis.String(object.name) : "",
23989
+ symbol: isSet7(object.symbol) ? globalThis.String(object.symbol) : "",
23990
+ decimal: isSet7(object.decimal) ? bytesFromBase646(object.decimal) : new Uint8Array(0),
23991
+ maxSupply: isSet7(object.maxSupply) ? bytesFromBase646(object.maxSupply) : new Uint8Array(0),
23992
+ isFreezable: isSet7(object.isFreezable) ? globalThis.Boolean(object.isFreezable) : false
23013
23993
  };
23014
23994
  },
23015
23995
  toJSON(message) {
@@ -23024,10 +24004,10 @@ var TokenPubkeyAnnouncement = {
23024
24004
  obj.symbol = message.symbol;
23025
24005
  }
23026
24006
  if (message.decimal.length !== 0) {
23027
- obj.decimal = base64FromBytes5(message.decimal);
24007
+ obj.decimal = base64FromBytes6(message.decimal);
23028
24008
  }
23029
24009
  if (message.maxSupply.length !== 0) {
23030
- obj.maxSupply = base64FromBytes5(message.maxSupply);
24010
+ obj.maxSupply = base64FromBytes6(message.maxSupply);
23031
24011
  }
23032
24012
  if (message.isFreezable !== false) {
23033
24013
  obj.isFreezable = message.isFreezable;
@@ -23134,7 +24114,7 @@ var SparkServiceDefinition2 = {
23134
24114
  }
23135
24115
  }
23136
24116
  };
23137
- function bytesFromBase645(b64) {
24117
+ function bytesFromBase646(b64) {
23138
24118
  if (globalThis.Buffer) {
23139
24119
  return Uint8Array.from(globalThis.Buffer.from(b64, "base64"));
23140
24120
  } else {
@@ -23146,7 +24126,7 @@ function bytesFromBase645(b64) {
23146
24126
  return arr;
23147
24127
  }
23148
24128
  }
23149
- function base64FromBytes5(arr) {
24129
+ function base64FromBytes6(arr) {
23150
24130
  if (globalThis.Buffer) {
23151
24131
  return globalThis.Buffer.from(arr).toString("base64");
23152
24132
  } else {
@@ -23157,26 +24137,26 @@ function base64FromBytes5(arr) {
23157
24137
  return globalThis.btoa(bin.join(""));
23158
24138
  }
23159
24139
  }
23160
- function toTimestamp2(date) {
24140
+ function toTimestamp3(date) {
23161
24141
  const seconds = Math.trunc(date.getTime() / 1e3);
23162
24142
  const nanos = date.getTime() % 1e3 * 1e6;
23163
24143
  return { seconds, nanos };
23164
24144
  }
23165
- function fromTimestamp2(t) {
24145
+ function fromTimestamp3(t) {
23166
24146
  let millis = (t.seconds || 0) * 1e3;
23167
24147
  millis += (t.nanos || 0) / 1e6;
23168
24148
  return new globalThis.Date(millis);
23169
24149
  }
23170
- function fromJsonTimestamp2(o) {
24150
+ function fromJsonTimestamp3(o) {
23171
24151
  if (o instanceof globalThis.Date) {
23172
24152
  return o;
23173
24153
  } else if (typeof o === "string") {
23174
24154
  return new globalThis.Date(o);
23175
24155
  } else {
23176
- return fromTimestamp2(Timestamp.fromJSON(o));
24156
+ return fromTimestamp3(Timestamp.fromJSON(o));
23177
24157
  }
23178
24158
  }
23179
- function longToNumber4(int64) {
24159
+ function longToNumber5(int64) {
23180
24160
  const num = globalThis.Number(int64.toString());
23181
24161
  if (num > globalThis.Number.MAX_SAFE_INTEGER) {
23182
24162
  throw new globalThis.Error("Value is larger than Number.MAX_SAFE_INTEGER");
@@ -23186,7 +24166,7 @@ function longToNumber4(int64) {
23186
24166
  }
23187
24167
  return num;
23188
24168
  }
23189
- function isSet6(value) {
24169
+ function isSet7(value) {
23190
24170
  return value !== null && value !== void 0;
23191
24171
  }
23192
24172
 
@@ -23345,32 +24325,11 @@ var Lrc20ConnectionManager = class {
23345
24325
  // src/services/token-transactions.ts
23346
24326
  import {
23347
24327
  bytesToHex as bytesToHex9,
23348
- bytesToNumberBE as bytesToNumberBE6,
24328
+ bytesToNumberBE as bytesToNumberBE7,
23349
24329
  numberToBytesBE as numberToBytesBE5
23350
24330
  } from "@noble/curves/abstract/utils";
23351
24331
  import { secp256k1 as secp256k113 } from "@noble/curves/secp256k1";
23352
24332
 
23353
- // src/utils/response-validation.ts
23354
- function collectResponses(responses) {
23355
- const successfulResponses = responses.filter(
23356
- (result) => result.status === "fulfilled"
23357
- ).map((result) => result.value);
23358
- const failedResponses = responses.filter(
23359
- (result) => result.status === "rejected"
23360
- );
23361
- if (failedResponses.length > 0) {
23362
- const errors = failedResponses.map((result) => result.reason).join("\n");
23363
- throw new NetworkError(
23364
- `${failedResponses.length} out of ${responses.length} requests failed, please try again`,
23365
- {
23366
- errorCount: failedResponses.length,
23367
- errors
23368
- }
23369
- );
23370
- }
23371
- return successfulResponses;
23372
- }
23373
-
23374
24333
  // src/utils/token-hashing.ts
23375
24334
  import { sha256 as sha25611 } from "@noble/hashes/sha2";
23376
24335
  function hashTokenTransaction(tokenTransaction, partialHash = false) {
@@ -23670,23 +24629,6 @@ function hashOperatorSpecificTokenTransactionSignablePayload(payload) {
23670
24629
  return finalHashObj.digest();
23671
24630
  }
23672
24631
 
23673
- // src/utils/token-keyshares.ts
23674
- import { secp256k1 as secp256k111 } from "@noble/curves/secp256k1";
23675
- function recoverRevocationSecretFromKeyshares(keyshares, threshold) {
23676
- const shares = keyshares.map((keyshare) => ({
23677
- fieldModulus: BigInt("0x" + secp256k111.CURVE.n.toString(16)),
23678
- // secp256k1 curve order
23679
- threshold,
23680
- index: BigInt(keyshare.operatorIndex),
23681
- share: BigInt(
23682
- "0x" + Buffer.from(keyshare.keyshare.keyshare).toString("hex")
23683
- ),
23684
- proofs: []
23685
- }));
23686
- const recoveredSecret = recoverSecret(shares);
23687
- return bigIntToPrivateKey(recoveredSecret);
23688
- }
23689
-
23690
24632
  // src/utils/token-transactions.ts
23691
24633
  import { bytesToHex as bytesToHex7, bytesToNumberBE as bytesToNumberBE5 } from "@noble/curves/abstract/utils";
23692
24634
  function calculateAvailableTokenAmount(outputLeaves) {
@@ -23984,9 +24926,11 @@ function validateTokenTransaction(finalTokenTransaction, partialTokenTransaction
23984
24926
  import { hexToBytes as hexToBytes9 } from "@noble/hashes/utils";
23985
24927
 
23986
24928
  // src/address/address.ts
23987
- import { secp256k1 as secp256k112 } from "@noble/curves/secp256k1";
24929
+ import { secp256k1 as secp256k111 } from "@noble/curves/secp256k1";
23988
24930
  import { bytesToHex as bytesToHex8, hexToBytes as hexToBytes8 } from "@noble/hashes/utils";
23989
24931
  import { bech32m } from "@scure/base";
24932
+ import { UUID } from "uuidv7";
24933
+ import { bytesToNumberBE as bytesToNumberBE6 } from "@noble/curves/abstract/utils";
23990
24934
  var AddressNetwork = {
23991
24935
  MAINNET: "sp",
23992
24936
  TESTNET: "spt",
@@ -23997,15 +24941,20 @@ var AddressNetwork = {
23997
24941
  function encodeSparkAddress(payload) {
23998
24942
  try {
23999
24943
  isValidPublicKey(payload.identityPublicKey);
24944
+ let paymentIntentFields;
24945
+ if (payload.paymentIntentFields) {
24946
+ paymentIntentFields = payload.paymentIntentFields;
24947
+ }
24000
24948
  const sparkAddressProto = SparkAddress.create({
24001
- identityPublicKey: hexToBytes8(payload.identityPublicKey)
24949
+ identityPublicKey: hexToBytes8(payload.identityPublicKey),
24950
+ paymentIntentFields
24002
24951
  });
24003
24952
  const serializedPayload = SparkAddress.encode(sparkAddressProto).finish();
24004
24953
  const words = bech32m.toWords(serializedPayload);
24005
24954
  return bech32m.encode(
24006
24955
  AddressNetwork[payload.network],
24007
24956
  words,
24008
- 200
24957
+ 500
24009
24958
  );
24010
24959
  } catch (error) {
24011
24960
  throw new ValidationError(
@@ -24020,7 +24969,7 @@ function encodeSparkAddress(payload) {
24020
24969
  }
24021
24970
  function decodeSparkAddress(address2, network) {
24022
24971
  try {
24023
- const decoded = bech32m.decode(address2, 200);
24972
+ const decoded = bech32m.decode(address2, 500);
24024
24973
  if (decoded.prefix !== AddressNetwork[network]) {
24025
24974
  throw new ValidationError("Invalid Spark address prefix", {
24026
24975
  field: "address",
@@ -24031,7 +24980,17 @@ function decodeSparkAddress(address2, network) {
24031
24980
  const payload = SparkAddress.decode(bech32m.fromWords(decoded.words));
24032
24981
  const publicKey = bytesToHex8(payload.identityPublicKey);
24033
24982
  isValidPublicKey(publicKey);
24034
- return publicKey;
24983
+ const paymentIntentFields = payload.paymentIntentFields;
24984
+ return {
24985
+ identityPublicKey: publicKey,
24986
+ network,
24987
+ paymentIntentFields: paymentIntentFields && {
24988
+ id: UUID.ofInner(paymentIntentFields.id).toString(),
24989
+ assetIdentifier: paymentIntentFields.assetIdentifier ? bytesToHex8(paymentIntentFields.assetIdentifier) : void 0,
24990
+ assetAmount: bytesToNumberBE6(paymentIntentFields.assetAmount),
24991
+ memo: paymentIntentFields.memo
24992
+ }
24993
+ };
24035
24994
  } catch (error) {
24036
24995
  if (error instanceof ValidationError) {
24037
24996
  throw error;
@@ -24048,7 +25007,7 @@ function decodeSparkAddress(address2, network) {
24048
25007
  }
24049
25008
  function isValidPublicKey(publicKey) {
24050
25009
  try {
24051
- const point = secp256k112.ProjectivePoint.fromHex(publicKey);
25010
+ const point = secp256k111.ProjectivePoint.fromHex(publicKey);
24052
25011
  point.assertValidity();
24053
25012
  } catch (error) {
24054
25013
  throw new ValidationError(
@@ -24062,6 +25021,44 @@ function isValidPublicKey(publicKey) {
24062
25021
  }
24063
25022
  }
24064
25023
 
25024
+ // src/utils/response-validation.ts
25025
+ function collectResponses(responses) {
25026
+ const successfulResponses = responses.filter(
25027
+ (result) => result.status === "fulfilled"
25028
+ ).map((result) => result.value);
25029
+ const failedResponses = responses.filter(
25030
+ (result) => result.status === "rejected"
25031
+ );
25032
+ if (failedResponses.length > 0) {
25033
+ const errors = failedResponses.map((result) => result.reason).join("\n");
25034
+ throw new NetworkError(
25035
+ `${failedResponses.length} out of ${responses.length} requests failed, please try again`,
25036
+ {
25037
+ errorCount: failedResponses.length,
25038
+ errors
25039
+ }
25040
+ );
25041
+ }
25042
+ return successfulResponses;
25043
+ }
25044
+
25045
+ // src/utils/token-keyshares.ts
25046
+ import { secp256k1 as secp256k112 } from "@noble/curves/secp256k1";
25047
+ function recoverRevocationSecretFromKeyshares(keyshares, threshold) {
25048
+ const shares = keyshares.map((keyshare) => ({
25049
+ fieldModulus: BigInt("0x" + secp256k112.CURVE.n.toString(16)),
25050
+ // secp256k1 curve order
25051
+ threshold,
25052
+ index: BigInt(keyshare.operatorIndex),
25053
+ share: BigInt(
25054
+ "0x" + Buffer.from(keyshare.keyshare.keyshare).toString("hex")
25055
+ ),
25056
+ proofs: []
25057
+ }));
25058
+ const recoveredSecret = recoverSecret(shares);
25059
+ return bigIntToPrivateKey(recoveredSecret);
25060
+ }
25061
+
24065
25062
  // src/services/token-transactions.ts
24066
25063
  var MAX_TOKEN_OUTPUTS = 500;
24067
25064
  var TokenTransactionService = class {
@@ -24130,15 +25127,23 @@ var TokenTransactionService = class {
24130
25127
  this.config.getNetworkType()
24131
25128
  );
24132
25129
  return {
24133
- receiverSparkAddress: hexToBytes9(receiverAddress),
25130
+ receiverSparkAddress: hexToBytes9(receiverAddress.identityPublicKey),
24134
25131
  tokenPublicKey: hexToBytes9(transfer.tokenPublicKey),
24135
25132
  tokenAmount: transfer.tokenAmount
24136
25133
  };
24137
25134
  });
24138
- const tokenTransaction = await this.constructTransferTokenTransaction(
24139
- outputsToUse,
24140
- tokenOutputData
24141
- );
25135
+ let tokenTransaction;
25136
+ if (this.config.getTokenTransactionVersion() === "V0") {
25137
+ tokenTransaction = await this.constructTransferTokenTransactionV0(
25138
+ outputsToUse,
25139
+ tokenOutputData
25140
+ );
25141
+ } else {
25142
+ tokenTransaction = await this.constructTransferTokenTransaction(
25143
+ outputsToUse,
25144
+ tokenOutputData
25145
+ );
25146
+ }
24142
25147
  const txId = await this.broadcastTokenTransaction(
24143
25148
  tokenTransaction,
24144
25149
  outputsToUse.map((output) => output.output.ownerPublicKey),
@@ -24146,7 +25151,7 @@ var TokenTransactionService = class {
24146
25151
  );
24147
25152
  return txId;
24148
25153
  }
24149
- async constructTransferTokenTransaction(selectedOutputs, tokenOutputData) {
25154
+ async constructTransferTokenTransactionV0(selectedOutputs, tokenOutputData) {
24150
25155
  const availableTokenAmount = calculateAvailableTokenAmount(selectedOutputs);
24151
25156
  const totalRequestedAmount = tokenOutputData.reduce(
24152
25157
  (sum, output) => sum + output.tokenAmount,
@@ -24181,6 +25186,43 @@ var TokenTransactionService = class {
24181
25186
  sparkOperatorIdentityPublicKeys: this.collectOperatorIdentityPublicKeys()
24182
25187
  };
24183
25188
  }
25189
+ async constructTransferTokenTransaction(selectedOutputs, tokenOutputData) {
25190
+ const availableTokenAmount = calculateAvailableTokenAmount(selectedOutputs);
25191
+ const totalRequestedAmount = tokenOutputData.reduce(
25192
+ (sum, output) => sum + output.tokenAmount,
25193
+ 0n
25194
+ );
25195
+ const tokenOutputs = tokenOutputData.map((output) => ({
25196
+ ownerPublicKey: output.receiverSparkAddress,
25197
+ tokenPublicKey: output.tokenPublicKey,
25198
+ tokenAmount: numberToBytesBE5(output.tokenAmount, 16)
25199
+ }));
25200
+ if (availableTokenAmount > totalRequestedAmount) {
25201
+ const changeAmount = availableTokenAmount - totalRequestedAmount;
25202
+ const firstTokenPublicKey = tokenOutputData[0].tokenPublicKey;
25203
+ tokenOutputs.push({
25204
+ ownerPublicKey: await this.config.signer.getIdentityPublicKey(),
25205
+ tokenPublicKey: firstTokenPublicKey,
25206
+ tokenAmount: numberToBytesBE5(changeAmount, 16)
25207
+ });
25208
+ }
25209
+ return {
25210
+ version: 1,
25211
+ network: this.config.getNetworkProto(),
25212
+ tokenInputs: {
25213
+ $case: "transferInput",
25214
+ transferInput: {
25215
+ outputsToSpend: selectedOutputs.map((output) => ({
25216
+ prevTokenTransactionHash: output.previousTransactionHash,
25217
+ prevTokenTransactionVout: output.previousTransactionVout
25218
+ }))
25219
+ }
25220
+ },
25221
+ tokenOutputs,
25222
+ sparkOperatorIdentityPublicKeys: this.collectOperatorIdentityPublicKeys(),
25223
+ expiryTime: void 0
25224
+ };
25225
+ }
24184
25226
  collectOperatorIdentityPublicKeys() {
24185
25227
  const operatorKeys = [];
24186
25228
  for (const [_, operator] of Object.entries(
@@ -24192,13 +25234,30 @@ var TokenTransactionService = class {
24192
25234
  }
24193
25235
  async broadcastTokenTransaction(tokenTransaction, outputsToSpendSigningPublicKeys, outputsToSpendCommitments) {
24194
25236
  const signingOperators = this.config.getSigningOperators();
24195
- const { finalTokenTransaction, finalTokenTransactionHash, threshold } = await this.startTokenTransaction(
25237
+ if (!isTokenTransaction(tokenTransaction)) {
25238
+ return this.broadcastTokenTransactionV0(
25239
+ tokenTransaction,
25240
+ signingOperators,
25241
+ outputsToSpendSigningPublicKeys,
25242
+ outputsToSpendCommitments
25243
+ );
25244
+ } else {
25245
+ return this.broadcastTokenTransactionV1(
25246
+ tokenTransaction,
25247
+ signingOperators,
25248
+ outputsToSpendSigningPublicKeys,
25249
+ outputsToSpendCommitments
25250
+ );
25251
+ }
25252
+ }
25253
+ async broadcastTokenTransactionV0(tokenTransaction, signingOperators, outputsToSpendSigningPublicKeys, outputsToSpendCommitments) {
25254
+ const { finalTokenTransaction, finalTokenTransactionHash, threshold } = await this.startTokenTransactionV0(
24196
25255
  tokenTransaction,
24197
25256
  signingOperators,
24198
25257
  outputsToSpendSigningPublicKeys,
24199
25258
  outputsToSpendCommitments
24200
25259
  );
24201
- const { successfulSignatures } = await this.signTokenTransaction(
25260
+ const { successfulSignatures } = await this.signTokenTransactionV0(
24202
25261
  finalTokenTransaction,
24203
25262
  finalTokenTransactionHash,
24204
25263
  signingOperators
@@ -24281,7 +25340,21 @@ var TokenTransactionService = class {
24281
25340
  }
24282
25341
  return bytesToHex9(finalTokenTransactionHash);
24283
25342
  }
24284
- async startTokenTransaction(tokenTransaction, signingOperators, outputsToSpendSigningPublicKeys, outputsToSpendCommitments) {
25343
+ async broadcastTokenTransactionV1(tokenTransaction, signingOperators, outputsToSpendSigningPublicKeys, outputsToSpendCommitments) {
25344
+ const { finalTokenTransaction, finalTokenTransactionHash, threshold } = await this.startTokenTransaction(
25345
+ tokenTransaction,
25346
+ signingOperators,
25347
+ outputsToSpendSigningPublicKeys,
25348
+ outputsToSpendCommitments
25349
+ );
25350
+ await this.signTokenTransaction(
25351
+ finalTokenTransaction,
25352
+ finalTokenTransactionHash,
25353
+ signingOperators
25354
+ );
25355
+ return bytesToHex9(finalTokenTransactionHash);
25356
+ }
25357
+ async startTokenTransactionV0(tokenTransaction, signingOperators, outputsToSpendSigningPublicKeys, outputsToSpendCommitments) {
24285
25358
  const sparkClient = await this.connectionManager.createSparkClient(
24286
25359
  this.config.getCoordinatorAddress()
24287
25360
  );
@@ -24376,7 +25449,99 @@ var TokenTransactionService = class {
24376
25449
  threshold: startResponse.keyshareInfo.threshold
24377
25450
  };
24378
25451
  }
24379
- async signTokenTransaction(finalTokenTransaction, finalTokenTransactionHash, signingOperators) {
25452
+ async startTokenTransaction(tokenTransaction, signingOperators, outputsToSpendSigningPublicKeys, outputsToSpendCommitments) {
25453
+ const sparkClient = await this.connectionManager.createSparkTokenClient(
25454
+ this.config.getCoordinatorAddress()
25455
+ );
25456
+ const partialTokenTransactionHash = hashTokenTransaction(
25457
+ tokenTransaction,
25458
+ true
25459
+ );
25460
+ const ownerSignaturesWithIndex = [];
25461
+ if (tokenTransaction.tokenInputs.$case === "mintInput") {
25462
+ const issuerPublicKey = tokenTransaction.tokenInputs.mintInput.issuerPublicKey;
25463
+ if (!issuerPublicKey) {
25464
+ throw new ValidationError("Invalid mint input", {
25465
+ field: "issuerPublicKey",
25466
+ value: null,
25467
+ expected: "Non-null issuer public key"
25468
+ });
25469
+ }
25470
+ const ownerSignature = await this.signMessageWithKey(
25471
+ partialTokenTransactionHash,
25472
+ issuerPublicKey
25473
+ );
25474
+ ownerSignaturesWithIndex.push({
25475
+ signature: ownerSignature,
25476
+ inputIndex: 0
25477
+ });
25478
+ } else if (tokenTransaction.tokenInputs.$case === "transferInput") {
25479
+ if (!outputsToSpendSigningPublicKeys || !outputsToSpendCommitments) {
25480
+ throw new ValidationError("Invalid transfer input", {
25481
+ field: "outputsToSpend",
25482
+ value: {
25483
+ signingPublicKeys: outputsToSpendSigningPublicKeys,
25484
+ revocationPublicKeys: outputsToSpendCommitments
25485
+ },
25486
+ expected: "Non-null signing and revocation public keys"
25487
+ });
25488
+ }
25489
+ for (const [i, key] of outputsToSpendSigningPublicKeys.entries()) {
25490
+ if (!key) {
25491
+ throw new ValidationError("Invalid signing key", {
25492
+ field: "outputsToSpendSigningPublicKeys",
25493
+ value: i,
25494
+ expected: "Non-null signing key"
25495
+ });
25496
+ }
25497
+ const ownerSignature = await this.signMessageWithKey(
25498
+ partialTokenTransactionHash,
25499
+ key
25500
+ );
25501
+ ownerSignaturesWithIndex.push({
25502
+ signature: ownerSignature,
25503
+ inputIndex: i
25504
+ });
25505
+ }
25506
+ }
25507
+ const startResponse = await sparkClient.start_transaction(
25508
+ {
25509
+ identityPublicKey: await this.config.signer.getIdentityPublicKey(),
25510
+ partialTokenTransaction: tokenTransaction
25511
+ },
25512
+ {
25513
+ retry: true,
25514
+ retryableStatuses: ["UNKNOWN", "UNAVAILABLE", "CANCELLED", "INTERNAL"],
25515
+ retryMaxAttempts: 3
25516
+ }
25517
+ );
25518
+ if (!startResponse.finalTokenTransaction) {
25519
+ throw new Error("Final token transaction missing in start response");
25520
+ }
25521
+ if (!startResponse.keyshareInfo) {
25522
+ throw new Error("Keyshare info missing in start response");
25523
+ }
25524
+ validateTokenTransaction(
25525
+ startResponse.finalTokenTransaction,
25526
+ tokenTransaction,
25527
+ signingOperators,
25528
+ startResponse.keyshareInfo,
25529
+ this.config.getExpectedWithdrawBondSats(),
25530
+ this.config.getExpectedWithdrawRelativeBlockLocktime(),
25531
+ this.config.getThreshold()
25532
+ );
25533
+ const finalTokenTransaction = startResponse.finalTokenTransaction;
25534
+ const finalTokenTransactionHash = hashTokenTransaction(
25535
+ finalTokenTransaction,
25536
+ false
25537
+ );
25538
+ return {
25539
+ finalTokenTransaction,
25540
+ finalTokenTransactionHash,
25541
+ threshold: startResponse.keyshareInfo.threshold
25542
+ };
25543
+ }
25544
+ async signTokenTransactionV0(finalTokenTransaction, finalTokenTransactionHash, signingOperators) {
24380
25545
  const soSignatures = await Promise.allSettled(
24381
25546
  Object.entries(signingOperators).map(
24382
25547
  async ([identifier, operator], index) => {
@@ -24473,49 +25638,44 @@ var TokenTransactionService = class {
24473
25638
  successfulSignatures
24474
25639
  };
24475
25640
  }
24476
- async finalizeTokenTransaction(finalTokenTransaction, revocationSecrets, threshold) {
24477
- const signingOperators = this.config.getSigningOperators();
24478
- const soResponses = await Promise.allSettled(
24479
- Object.entries(signingOperators).map(async ([identifier, operator]) => {
24480
- const internalSparkClient = await this.connectionManager.createSparkClient(operator.address);
24481
- const identityPublicKey = await this.config.signer.getIdentityPublicKey();
24482
- try {
24483
- const response = await internalSparkClient.finalize_token_transaction(
24484
- {
24485
- finalTokenTransaction,
24486
- revocationSecrets,
24487
- identityPublicKey
24488
- },
24489
- {
24490
- retry: true,
24491
- retryableStatuses: [
24492
- "UNKNOWN",
24493
- "UNAVAILABLE",
24494
- "CANCELLED",
24495
- "INTERNAL"
24496
- ],
24497
- retryMaxAttempts: 3
24498
- }
24499
- );
24500
- return {
24501
- identifier,
24502
- response
24503
- };
24504
- } catch (error) {
24505
- throw new NetworkError(
24506
- "Failed to finalize token transaction",
24507
- {
24508
- operation: "finalize_token_transaction",
24509
- errorCount: 1,
24510
- errors: error instanceof Error ? error.message : String(error)
24511
- },
24512
- error
24513
- );
24514
- }
24515
- })
25641
+ async signTokenTransaction(finalTokenTransaction, finalTokenTransactionHash, signingOperators) {
25642
+ const coordinatorClient = await this.connectionManager.createSparkTokenClient(
25643
+ this.config.getCoordinatorAddress()
24516
25644
  );
24517
- collectResponses(soResponses);
24518
- return finalTokenTransaction;
25645
+ const inputTtxoSignaturesPerOperator = await this.createSignaturesForOperators(
25646
+ finalTokenTransaction,
25647
+ finalTokenTransactionHash,
25648
+ signingOperators
25649
+ );
25650
+ try {
25651
+ await coordinatorClient.commit_transaction(
25652
+ {
25653
+ finalTokenTransaction,
25654
+ inputTtxoSignaturesPerOperator,
25655
+ ownerIdentityPublicKey: await this.config.signer.getIdentityPublicKey()
25656
+ },
25657
+ {
25658
+ retry: true,
25659
+ retryableStatuses: [
25660
+ "UNKNOWN",
25661
+ "UNAVAILABLE",
25662
+ "CANCELLED",
25663
+ "INTERNAL"
25664
+ ],
25665
+ retryMaxAttempts: 3
25666
+ }
25667
+ );
25668
+ } catch (error) {
25669
+ throw new NetworkError(
25670
+ "Failed to sign token transaction",
25671
+ {
25672
+ operation: "sign_token_transaction",
25673
+ errorCount: 1,
25674
+ errors: error instanceof Error ? error.message : String(error)
25675
+ },
25676
+ error
25677
+ );
25678
+ }
24519
25679
  }
24520
25680
  async fetchOwnedTokenOutputs(ownerPublicKeys, tokenPublicKeys) {
24521
25681
  const sparkClient = await this.connectionManager.createSparkClient(
@@ -24562,7 +25722,7 @@ var TokenTransactionService = class {
24562
25722
  });
24563
25723
  }
24564
25724
  const exactMatch = tokenOutputs.find(
24565
- (item) => bytesToNumberBE6(item.output.tokenAmount) === tokenAmount
25725
+ (item) => bytesToNumberBE7(item.output.tokenAmount) === tokenAmount
24566
25726
  );
24567
25727
  if (exactMatch) {
24568
25728
  return [exactMatch];
@@ -24573,7 +25733,7 @@ var TokenTransactionService = class {
24573
25733
  for (const outputWithPreviousTransactionData of tokenOutputs) {
24574
25734
  if (remainingAmount <= 0n) break;
24575
25735
  selectedOutputs.push(outputWithPreviousTransactionData);
24576
- remainingAmount -= bytesToNumberBE6(
25736
+ remainingAmount -= bytesToNumberBE7(
24577
25737
  outputWithPreviousTransactionData.output.tokenAmount
24578
25738
  );
24579
25739
  }
@@ -24589,13 +25749,13 @@ var TokenTransactionService = class {
24589
25749
  if (strategy === "SMALL_FIRST") {
24590
25750
  tokenOutputs.sort((a, b) => {
24591
25751
  return Number(
24592
- bytesToNumberBE6(a.output.tokenAmount) - bytesToNumberBE6(b.output.tokenAmount)
25752
+ bytesToNumberBE7(a.output.tokenAmount) - bytesToNumberBE7(b.output.tokenAmount)
24593
25753
  );
24594
25754
  });
24595
25755
  } else {
24596
25756
  tokenOutputs.sort((a, b) => {
24597
25757
  return Number(
24598
- bytesToNumberBE6(b.output.tokenAmount) - bytesToNumberBE6(a.output.tokenAmount)
25758
+ bytesToNumberBE7(b.output.tokenAmount) - bytesToNumberBE7(a.output.tokenAmount)
24599
25759
  );
24600
25760
  });
24601
25761
  }
@@ -24620,7 +25780,107 @@ var TokenTransactionService = class {
24620
25780
  }
24621
25781
  }
24622
25782
  }
25783
+ async finalizeTokenTransaction(finalTokenTransaction, revocationSecrets, threshold) {
25784
+ const signingOperators = this.config.getSigningOperators();
25785
+ const soResponses = await Promise.allSettled(
25786
+ Object.entries(signingOperators).map(async ([identifier, operator]) => {
25787
+ const internalSparkClient = await this.connectionManager.createSparkClient(operator.address);
25788
+ const identityPublicKey = await this.config.signer.getIdentityPublicKey();
25789
+ try {
25790
+ const response = await internalSparkClient.finalize_token_transaction(
25791
+ {
25792
+ finalTokenTransaction,
25793
+ revocationSecrets,
25794
+ identityPublicKey
25795
+ },
25796
+ {
25797
+ retry: true,
25798
+ retryableStatuses: [
25799
+ "UNKNOWN",
25800
+ "UNAVAILABLE",
25801
+ "CANCELLED",
25802
+ "INTERNAL"
25803
+ ],
25804
+ retryMaxAttempts: 3
25805
+ }
25806
+ );
25807
+ return {
25808
+ identifier,
25809
+ response
25810
+ };
25811
+ } catch (error) {
25812
+ throw new NetworkError(
25813
+ "Failed to finalize token transaction",
25814
+ {
25815
+ operation: "finalize_token_transaction",
25816
+ errorCount: 1,
25817
+ errors: error instanceof Error ? error.message : String(error)
25818
+ },
25819
+ error
25820
+ );
25821
+ }
25822
+ })
25823
+ );
25824
+ collectResponses(soResponses);
25825
+ return finalTokenTransaction;
25826
+ }
25827
+ async createSignaturesForOperators(finalTokenTransaction, finalTokenTransactionHash, signingOperators) {
25828
+ const inputTtxoSignaturesPerOperator = [];
25829
+ for (const [_, operator] of Object.entries(signingOperators)) {
25830
+ let ttxoSignatures = [];
25831
+ if (finalTokenTransaction.tokenInputs.$case === "mintInput") {
25832
+ const issuerPublicKey = finalTokenTransaction.tokenInputs.mintInput.issuerPublicKey;
25833
+ if (!issuerPublicKey) {
25834
+ throw new ValidationError("Invalid mint input", {
25835
+ field: "issuerPublicKey",
25836
+ value: null,
25837
+ expected: "Non-null issuer public key"
25838
+ });
25839
+ }
25840
+ const payload = {
25841
+ finalTokenTransactionHash,
25842
+ operatorIdentityPublicKey: hexToBytes9(operator.identityPublicKey)
25843
+ };
25844
+ const payloadHash = await hashOperatorSpecificTokenTransactionSignablePayload(payload);
25845
+ const ownerSignature = await this.signMessageWithKey(
25846
+ payloadHash,
25847
+ issuerPublicKey
25848
+ );
25849
+ ttxoSignatures.push({
25850
+ signature: ownerSignature,
25851
+ inputIndex: 0
25852
+ });
25853
+ } else if (finalTokenTransaction.tokenInputs.$case === "transferInput") {
25854
+ const transferInput = finalTokenTransaction.tokenInputs.transferInput;
25855
+ for (let i = 0; i < transferInput.outputsToSpend.length; i++) {
25856
+ const payload = {
25857
+ finalTokenTransactionHash,
25858
+ operatorIdentityPublicKey: hexToBytes9(operator.identityPublicKey)
25859
+ };
25860
+ const payloadHash = await hashOperatorSpecificTokenTransactionSignablePayload(payload);
25861
+ let ownerSignature;
25862
+ if (this.config.getTokenSignatures() === "SCHNORR") {
25863
+ ownerSignature = await this.config.signer.signSchnorrWithIdentityKey(payloadHash);
25864
+ } else {
25865
+ ownerSignature = await this.config.signer.signMessageWithIdentityKey(payloadHash);
25866
+ }
25867
+ ttxoSignatures.push({
25868
+ signature: ownerSignature,
25869
+ inputIndex: i
25870
+ });
25871
+ }
25872
+ }
25873
+ inputTtxoSignaturesPerOperator.push({
25874
+ ttxoSignatures,
25875
+ operatorIdentityPublicKey: hexToBytes9(operator.identityPublicKey)
25876
+ });
25877
+ }
25878
+ return inputTtxoSignaturesPerOperator;
25879
+ }
24623
25880
  };
25881
+ function isTokenTransaction(tokenTransaction) {
25882
+ return "version" in tokenTransaction && "expiryTime" in tokenTransaction;
25883
+ }
24624
25884
 
24625
25885
  // src/services/tree-creation.ts
24626
25886
  import { hexToBytes as hexToBytes10 } from "@noble/curves/abstract/utils";
@@ -25169,7 +26429,7 @@ import { bytesToHex as bytesToHex10, hexToBytes as hexToBytes12 } from "@noble/c
25169
26429
  import { schnorr as schnorr5, secp256k1 as secp256k114 } from "@noble/curves/secp256k1";
25170
26430
  import * as btc4 from "@scure/btc-signer";
25171
26431
  import { Address as Address5, OutScript as OutScript4, SigHash as SigHash2, Transaction as Transaction8 } from "@scure/btc-signer";
25172
- import { taprootTweakPrivKey } from "@scure/btc-signer/utils";
26432
+ import { taprootTweakPrivKey as taprootTweakPrivKey2 } from "@scure/btc-signer/utils";
25173
26433
  var STATIC_FAUCET_KEY = hexToBytes12(
25174
26434
  "deadbeef1337cafe4242424242424242deadbeef1337cafe4242424242424242"
25175
26435
  );
@@ -25352,7 +26612,7 @@ var BitcoinFaucet = class _BitcoinFaucet {
25352
26612
  new Array(unsignedTx.inputsLength).fill(fundingTxOut.amount)
25353
26613
  );
25354
26614
  const merkleRoot = new Uint8Array();
25355
- const tweakedKey = taprootTweakPrivKey(key, merkleRoot);
26615
+ const tweakedKey = taprootTweakPrivKey2(key, merkleRoot);
25356
26616
  if (!tweakedKey)
25357
26617
  throw new Error("Invalid private key for taproot tweaking");
25358
26618
  const signature = schnorr5.sign(sighash, tweakedKey);
@@ -25945,6 +27205,48 @@ var SparkWallet = class _SparkWallet extends EventEmitter {
25945
27205
  }
25946
27206
  return this.sparkAddress;
25947
27207
  }
27208
+ async createSparkPaymentIntent(assetIdentifier, assetAmount = BigInt(0), memo) {
27209
+ const MAX_UINT128 = BigInt("340282366920938463463374607431768211455");
27210
+ if (assetAmount < 0 || assetAmount > MAX_UINT128) {
27211
+ throw new ValidationError(
27212
+ "Asset amount must be between 0 and MAX_UINT128",
27213
+ {
27214
+ field: "assetAmount",
27215
+ value: assetAmount
27216
+ }
27217
+ );
27218
+ }
27219
+ if (memo) {
27220
+ const encoder = new TextEncoder();
27221
+ const memoBytes = encoder.encode(memo);
27222
+ if (memoBytes.length > 120) {
27223
+ throw new ValidationError(
27224
+ "Memo exceeds the maximum allowed byte length of 120.",
27225
+ {
27226
+ field: "memo",
27227
+ value: memo,
27228
+ expected: "less than 120 bytes"
27229
+ }
27230
+ );
27231
+ }
27232
+ }
27233
+ if (assetIdentifier) {
27234
+ isValidPublicKey(assetIdentifier);
27235
+ }
27236
+ const paymentRequest = encodeSparkAddress({
27237
+ identityPublicKey: bytesToHex12(
27238
+ await this.config.signer.getIdentityPublicKey()
27239
+ ),
27240
+ network: this.config.getNetworkType(),
27241
+ paymentIntentFields: {
27242
+ id: uuidv7obj().bytes,
27243
+ assetIdentifier: assetIdentifier ? hexToBytes13(assetIdentifier) : void 0,
27244
+ assetAmount: numberToVarBytesBE(assetAmount),
27245
+ memo
27246
+ }
27247
+ });
27248
+ return paymentRequest;
27249
+ }
25948
27250
  /**
25949
27251
  * Initializes the wallet using either a mnemonic phrase or a raw seed.
25950
27252
  * initWallet will also claim any pending incoming lightning payment, spark transfer,
@@ -26145,7 +27447,7 @@ var SparkWallet = class _SparkWallet extends EventEmitter {
26145
27447
  totalAmountSats: leavesBatch.reduce((acc, leaf) => acc + leaf.value, 0),
26146
27448
  // TODO: Request fee from SSP
26147
27449
  feeSats: 0,
26148
- idempotencyKey: uuidv74()
27450
+ idempotencyKey: uuidv75()
26149
27451
  });
26150
27452
  if (!request) {
26151
27453
  throw new Error("Failed to request leaves swap. No response returned.");
@@ -26247,8 +27549,8 @@ var SparkWallet = class _SparkWallet extends EventEmitter {
26247
27549
  tokenPublicKey: bytesToHex12(info.announcement.publicKey.publicKey),
26248
27550
  tokenName: info.announcement.name,
26249
27551
  tokenSymbol: info.announcement.symbol,
26250
- tokenDecimals: Number(bytesToNumberBE7(info.announcement.decimal)),
26251
- maxSupply: bytesToNumberBE7(info.announcement.maxSupply)
27552
+ tokenDecimals: Number(bytesToNumberBE8(info.announcement.decimal)),
27553
+ maxSupply: bytesToNumberBE8(info.announcement.maxSupply)
26252
27554
  }));
26253
27555
  }
26254
27556
  /**
@@ -26291,8 +27593,8 @@ var SparkWallet = class _SparkWallet extends EventEmitter {
26291
27593
  tokenPublicKey,
26292
27594
  tokenName: info.announcement.name,
26293
27595
  tokenSymbol: info.announcement.symbol,
26294
- tokenDecimals: Number(bytesToNumberBE7(info.announcement.decimal)),
26295
- maxSupply: bytesToNumberBE7(info.announcement.maxSupply)
27596
+ tokenDecimals: Number(bytesToNumberBE8(info.announcement.decimal)),
27597
+ maxSupply: bytesToNumberBE8(info.announcement.maxSupply)
26296
27598
  }
26297
27599
  });
26298
27600
  }
@@ -26344,7 +27646,7 @@ var SparkWallet = class _SparkWallet extends EventEmitter {
26344
27646
  * @private
26345
27647
  */
26346
27648
  async generateDepositAddress(isStatic) {
26347
- const leafId = uuidv74();
27649
+ const leafId = uuidv75();
26348
27650
  let signingPubkey;
26349
27651
  if (isStatic) {
26350
27652
  signingPubkey = await this.config.signer.generateStaticDepositKey(0);
@@ -26531,7 +27833,7 @@ var SparkWallet = class _SparkWallet extends EventEmitter {
26531
27833
  const sparkClient = await this.connectionManager.createSparkClient(
26532
27834
  this.config.getCoordinatorAddress()
26533
27835
  );
26534
- const transferId = uuidv74();
27836
+ const transferId = uuidv75();
26535
27837
  const swapResponse = await sparkClient.initiate_utxo_swap({
26536
27838
  onChainUtxo: {
26537
27839
  txid: hexToBytes13(depositTransactionId),
@@ -26963,7 +28265,7 @@ var SparkWallet = class _SparkWallet extends EventEmitter {
26963
28265
  const signerIdentityPublicKey = await this.config.signer.getIdentityPublicKey();
26964
28266
  const isSelfTransfer = equalBytes5(
26965
28267
  signerIdentityPublicKey,
26966
- hexToBytes13(receiverAddress)
28268
+ hexToBytes13(receiverAddress.identityPublicKey)
26967
28269
  );
26968
28270
  return await this.withLeaves(async () => {
26969
28271
  let leavesToSend = await this.selectLeaves(amountSats);
@@ -26980,7 +28282,7 @@ var SparkWallet = class _SparkWallet extends EventEmitter {
26980
28282
  );
26981
28283
  const transfer = await this.transferService.sendTransferWithKeyTweaks(
26982
28284
  leafKeyTweaks,
26983
- hexToBytes13(receiverAddress)
28285
+ hexToBytes13(receiverAddress.identityPublicKey)
26984
28286
  );
26985
28287
  const leavesToRemove = new Set(leavesToSend.map((leaf) => leaf.id));
26986
28288
  this.leaves = this.leaves.filter((leaf) => !leavesToRemove.has(leaf.id));
@@ -27639,7 +28941,7 @@ var SparkWallet = class _SparkWallet extends EventEmitter {
27639
28941
  const coopExitRequest = await sspClient.requestCoopExit({
27640
28942
  leafExternalIds: leavesToSend.map((leaf) => leaf.id),
27641
28943
  withdrawalAddress: onchainAddress,
27642
- idempotencyKey: uuidv74(),
28944
+ idempotencyKey: uuidv75(),
27643
28945
  exitSpeed,
27644
28946
  withdrawAll: true
27645
28947
  });
@@ -27703,6 +29005,27 @@ var SparkWallet = class _SparkWallet extends EventEmitter {
27703
29005
  });
27704
29006
  return feeEstimate;
27705
29007
  }
29008
+ /**
29009
+ * Gets a transfer that has been sent by the SSP to the wallet.
29010
+ *
29011
+ * @param {string} id - The ID of the transfer
29012
+ * @returns {Promise<GraphQLTransferObj | null>} The transfer
29013
+ */
29014
+ async getTransferFromSsp(id) {
29015
+ const sspClient = this.getSspClient();
29016
+ return await sspClient.getTransfer(id);
29017
+ }
29018
+ /**
29019
+ * Gets a transfer, that the wallet is a participant of, in the Spark network.
29020
+ * Only contains data about the spark->spark transfer, use getTransferFromSsp if you're
29021
+ * looking for information related to a lightning transfer.
29022
+ *
29023
+ * @param {string} id - The ID of the transfer
29024
+ * @returns {Promise<Transfer | undefined>} The transfer
29025
+ */
29026
+ async getTransfer(id) {
29027
+ return await this.transferService.queryTransfer(id);
29028
+ }
27706
29029
  // ***** Token Flow *****
27707
29030
  /**
27708
29031
  * Synchronizes token outputs for the wallet.
@@ -28792,6 +30115,36 @@ function constructFeeBumpTx(txHex, utxos, feeRate, previousFeeBumpTx) {
28792
30115
  correctedParentTx: correctedTxHex !== txHex ? correctedTxHex : void 0
28793
30116
  };
28794
30117
  }
30118
+
30119
+ // src/utils/xchain-address.ts
30120
+ import * as btc6 from "@scure/btc-signer";
30121
+ var networkByType = {
30122
+ MAINNET: btc6.NETWORK,
30123
+ TESTNET: btc6.TEST_NETWORK,
30124
+ REGTEST: {
30125
+ ...btc6.TEST_NETWORK,
30126
+ bech32: "bcrt"
30127
+ }
30128
+ };
30129
+ function getSparkAddressFromTaproot(taprootAddress) {
30130
+ for (const networkType of ["MAINNET", "TESTNET", "REGTEST"]) {
30131
+ try {
30132
+ const result = btc6.Address(networkByType[networkType]).decode(taprootAddress);
30133
+ if (result.type === "tr") {
30134
+ const outputPublicKey = result.pubkey;
30135
+ return encodeSparkAddress({
30136
+ identityPublicKey: Buffer.concat([
30137
+ Buffer.from([2]),
30138
+ outputPublicKey
30139
+ ]).toString("hex"),
30140
+ network: networkType
30141
+ });
30142
+ }
30143
+ } catch (_) {
30144
+ }
30145
+ }
30146
+ throw new ValidationError("Invalid taproot address");
30147
+ }
28795
30148
  export {
28796
30149
  AuthenticationError,
28797
30150
  ConfigurationError,
@@ -28816,6 +30169,7 @@ export {
28816
30169
  bigIntToPrivateKey,
28817
30170
  calculateAvailableTokenAmount,
28818
30171
  checkIfSelectedOutputsAreAvailable,
30172
+ checkIfValidSequence,
28819
30173
  collectResponses,
28820
30174
  computeTaprootKeyNoScript,
28821
30175
  computerLagrangeCoefficients,
@@ -28850,6 +30204,7 @@ export {
28850
30204
  getRandomSigningNonce,
28851
30205
  getSigHashFromTx,
28852
30206
  getSigningCommitmentFromNonce,
30207
+ getSparkAddressFromTaproot,
28853
30208
  getTransactionSequence,
28854
30209
  getTransferPackageSigningPayload,
28855
30210
  getTxFromRawTxBytes,