@ledgerhq/device-signer-kit-solana 0.0.0-transactionInspector-resolutionObj-20250916153045 → 0.0.0-trusted-names-native-transfer-1-20260121120757

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 (259) hide show
  1. package/README.md +113 -24
  2. package/lib/cjs/api/SignerSolana.js +1 -1
  3. package/lib/cjs/api/SignerSolana.js.map +1 -1
  4. package/lib/cjs/api/SignerSolanaBuilder.js +1 -1
  5. package/lib/cjs/api/SignerSolanaBuilder.js.map +3 -3
  6. package/lib/cjs/api/SolanaTools.js +1 -1
  7. package/lib/cjs/api/SolanaTools.js.map +1 -1
  8. package/lib/cjs/api/app-binder/SignMessageDeviceActionTypes.js.map +1 -1
  9. package/lib/cjs/api/app-binder/SignTransactionDeviceActionTypes.js +1 -1
  10. package/lib/cjs/api/app-binder/SignTransactionDeviceActionTypes.js.map +3 -3
  11. package/lib/cjs/api/index.js +1 -1
  12. package/lib/cjs/api/index.js.map +2 -2
  13. package/lib/cjs/api/model/SolanaTransactionOptionalConfig.js +2 -0
  14. package/lib/cjs/api/model/SolanaTransactionOptionalConfig.js.map +7 -0
  15. package/lib/cjs/api/model/TransactionResolutionContext.js +1 -1
  16. package/lib/cjs/api/model/TransactionResolutionContext.js.map +3 -3
  17. package/lib/cjs/internal/DefaultSignerSolana.js +1 -1
  18. package/lib/cjs/internal/DefaultSignerSolana.js.map +3 -3
  19. package/lib/cjs/internal/app-binder/SolanaAppBinder.js +1 -1
  20. package/lib/cjs/internal/app-binder/SolanaAppBinder.js.map +3 -3
  21. package/lib/cjs/internal/app-binder/SolanaAppBinder.test.js +1 -1
  22. package/lib/cjs/internal/app-binder/SolanaAppBinder.test.js.map +3 -3
  23. package/lib/cjs/internal/app-binder/command/GetAppConfigurationCommand.js +1 -1
  24. package/lib/cjs/internal/app-binder/command/GetAppConfigurationCommand.js.map +2 -2
  25. package/lib/cjs/internal/app-binder/command/GetAppConfigurationCommand.test.js +1 -1
  26. package/lib/cjs/internal/app-binder/command/GetAppConfigurationCommand.test.js.map +2 -2
  27. package/lib/cjs/internal/app-binder/command/GetChallengeCommand.js +1 -1
  28. package/lib/cjs/internal/app-binder/command/GetChallengeCommand.js.map +2 -2
  29. package/lib/cjs/internal/app-binder/command/GetChallengeCommand.test.js +1 -1
  30. package/lib/cjs/internal/app-binder/command/GetChallengeCommand.test.js.map +2 -2
  31. package/lib/cjs/internal/app-binder/command/GetPubKeyCommand.js +1 -1
  32. package/lib/cjs/internal/app-binder/command/GetPubKeyCommand.js.map +3 -3
  33. package/lib/cjs/internal/app-binder/command/GetPubKeyCommand.test.js +1 -1
  34. package/lib/cjs/internal/app-binder/command/GetPubKeyCommand.test.js.map +2 -2
  35. package/lib/cjs/internal/app-binder/command/ProvideTLVDescriptorCommand.js +1 -1
  36. package/lib/cjs/internal/app-binder/command/ProvideTLVDescriptorCommand.js.map +2 -2
  37. package/lib/cjs/internal/app-binder/command/ProvideTLVDescriptorCommand.test.js +1 -1
  38. package/lib/cjs/internal/app-binder/command/ProvideTLVDescriptorCommand.test.js.map +2 -2
  39. package/lib/cjs/internal/app-binder/command/ProvideTLVTransactionInstructionDescriptorCommand.js +2 -0
  40. package/lib/cjs/internal/app-binder/command/ProvideTLVTransactionInstructionDescriptorCommand.js.map +7 -0
  41. package/lib/cjs/internal/app-binder/command/ProvideTLVTransactionInstructionDescriptorCommand.test.js +2 -0
  42. package/lib/cjs/internal/app-binder/command/ProvideTLVTransactionInstructionDescriptorCommand.test.js.map +7 -0
  43. package/lib/cjs/internal/app-binder/command/SignOffChainMessageCommand.js +1 -1
  44. package/lib/cjs/internal/app-binder/command/SignOffChainMessageCommand.js.map +3 -3
  45. package/lib/cjs/internal/app-binder/command/SignOffChainMessageCommand.test.js +1 -1
  46. package/lib/cjs/internal/app-binder/command/SignOffChainMessageCommand.test.js.map +3 -3
  47. package/lib/cjs/internal/app-binder/command/SignTransactionCommand.js +1 -1
  48. package/lib/cjs/internal/app-binder/command/SignTransactionCommand.js.map +3 -3
  49. package/lib/cjs/internal/app-binder/command/SignTransactionCommand.test.js +1 -1
  50. package/lib/cjs/internal/app-binder/command/SignTransactionCommand.test.js.map +3 -3
  51. package/lib/cjs/internal/app-binder/device-action/SignTransactionDeviceAction.js +1 -1
  52. package/lib/cjs/internal/app-binder/device-action/SignTransactionDeviceAction.js.map +3 -3
  53. package/lib/cjs/internal/app-binder/device-action/SignTransactionDeviceAction.test.js +1 -1
  54. package/lib/cjs/internal/app-binder/device-action/SignTransactionDeviceAction.test.js.map +3 -3
  55. package/lib/cjs/internal/app-binder/services/GenerateSolanaTransaction.test.js.map +3 -3
  56. package/lib/cjs/internal/app-binder/services/TransactionInspector.js +1 -1
  57. package/lib/cjs/internal/app-binder/services/TransactionInspector.js.map +3 -3
  58. package/lib/cjs/internal/app-binder/services/TransactionInspector.test.js +2 -0
  59. package/lib/cjs/internal/app-binder/services/TransactionInspector.test.js.map +7 -0
  60. package/lib/cjs/internal/app-binder/services/bs58Encoder.js +2 -0
  61. package/lib/cjs/internal/app-binder/services/bs58Encoder.js.map +7 -0
  62. package/lib/cjs/internal/app-binder/services/utils/DefaultSolanaMessageNormaliser.js +2 -0
  63. package/lib/cjs/internal/app-binder/services/utils/DefaultSolanaMessageNormaliser.js.map +7 -0
  64. package/lib/cjs/internal/app-binder/services/utils/DefaultSolanaMessageNormaliser.test.js +2 -0
  65. package/lib/cjs/internal/app-binder/services/utils/DefaultSolanaMessageNormaliser.test.js.map +7 -0
  66. package/lib/cjs/internal/app-binder/services/utils/NullLoggerPublisherService.js +2 -0
  67. package/lib/cjs/internal/app-binder/services/utils/NullLoggerPublisherService.js.map +7 -0
  68. package/lib/cjs/internal/app-binder/services/utils/NullLoggerPublisherService.test.js +2 -0
  69. package/lib/cjs/internal/app-binder/services/utils/NullLoggerPublisherService.test.js.map +7 -0
  70. package/lib/cjs/internal/app-binder/services/utils/transactionDecoders.js +1 -1
  71. package/lib/cjs/internal/app-binder/services/utils/transactionDecoders.js.map +3 -3
  72. package/lib/cjs/internal/app-binder/task/BuildTransactionContextTask.js +1 -1
  73. package/lib/cjs/internal/app-binder/task/BuildTransactionContextTask.js.map +3 -3
  74. package/lib/cjs/internal/app-binder/task/BuildTransactionContextTask.test.js +1 -1
  75. package/lib/cjs/internal/app-binder/task/BuildTransactionContextTask.test.js.map +3 -3
  76. package/lib/cjs/internal/app-binder/task/ProvideTransactionContextTask.js +1 -1
  77. package/lib/cjs/internal/app-binder/task/ProvideTransactionContextTask.js.map +3 -3
  78. package/lib/cjs/internal/app-binder/task/ProvideTransactionContextTask.test.js +1 -1
  79. package/lib/cjs/internal/app-binder/task/ProvideTransactionContextTask.test.js.map +3 -3
  80. package/lib/cjs/internal/app-binder/task/SendSignMessageTask.js +1 -1
  81. package/lib/cjs/internal/app-binder/task/SendSignMessageTask.js.map +3 -3
  82. package/lib/cjs/internal/app-binder/task/SendSignMessageTask.test.js +3 -1
  83. package/lib/cjs/internal/app-binder/task/SendSignMessageTask.test.js.map +3 -3
  84. package/lib/cjs/internal/di.js +1 -1
  85. package/lib/cjs/internal/di.js.map +3 -3
  86. package/lib/cjs/internal/externalTypes.js +1 -1
  87. package/lib/cjs/internal/externalTypes.js.map +2 -2
  88. package/lib/cjs/internal/use-cases/transaction/SignTransactionUseCase.js +1 -1
  89. package/lib/cjs/internal/use-cases/transaction/SignTransactionUseCase.js.map +3 -3
  90. package/lib/cjs/internal/use-cases/transaction/SignTransactionUseCase.test.js +1 -1
  91. package/lib/cjs/internal/use-cases/transaction/SignTransactionUseCase.test.js.map +2 -2
  92. package/lib/cjs/package.json +40 -36
  93. package/lib/esm/api/SignerSolanaBuilder.js +1 -1
  94. package/lib/esm/api/SignerSolanaBuilder.js.map +3 -3
  95. package/lib/esm/api/app-binder/SignTransactionDeviceActionTypes.js +1 -0
  96. package/lib/esm/api/app-binder/SignTransactionDeviceActionTypes.js.map +4 -4
  97. package/lib/esm/api/index.js +1 -1
  98. package/lib/esm/api/index.js.map +2 -2
  99. package/lib/esm/api/model/SolanaTransactionOptionalConfig.js +1 -0
  100. package/lib/esm/api/model/TransactionResolutionContext.js +1 -0
  101. package/lib/esm/api/model/TransactionResolutionContext.js.map +4 -4
  102. package/lib/esm/internal/DefaultSignerSolana.js.map +3 -3
  103. package/lib/esm/internal/app-binder/SolanaAppBinder.js +1 -1
  104. package/lib/esm/internal/app-binder/SolanaAppBinder.js.map +3 -3
  105. package/lib/esm/internal/app-binder/SolanaAppBinder.test.js +1 -1
  106. package/lib/esm/internal/app-binder/SolanaAppBinder.test.js.map +3 -3
  107. package/lib/esm/internal/app-binder/command/GetAppConfigurationCommand.js +1 -1
  108. package/lib/esm/internal/app-binder/command/GetAppConfigurationCommand.js.map +2 -2
  109. package/lib/esm/internal/app-binder/command/GetAppConfigurationCommand.test.js +1 -1
  110. package/lib/esm/internal/app-binder/command/GetAppConfigurationCommand.test.js.map +2 -2
  111. package/lib/esm/internal/app-binder/command/GetChallengeCommand.js +1 -1
  112. package/lib/esm/internal/app-binder/command/GetChallengeCommand.js.map +2 -2
  113. package/lib/esm/internal/app-binder/command/GetChallengeCommand.test.js +1 -1
  114. package/lib/esm/internal/app-binder/command/GetChallengeCommand.test.js.map +2 -2
  115. package/lib/esm/internal/app-binder/command/GetPubKeyCommand.js +1 -1
  116. package/lib/esm/internal/app-binder/command/GetPubKeyCommand.js.map +3 -3
  117. package/lib/esm/internal/app-binder/command/GetPubKeyCommand.test.js +1 -1
  118. package/lib/esm/internal/app-binder/command/GetPubKeyCommand.test.js.map +2 -2
  119. package/lib/esm/internal/app-binder/command/ProvideTLVDescriptorCommand.js +1 -1
  120. package/lib/esm/internal/app-binder/command/ProvideTLVDescriptorCommand.js.map +2 -2
  121. package/lib/esm/internal/app-binder/command/ProvideTLVDescriptorCommand.test.js +1 -1
  122. package/lib/esm/internal/app-binder/command/ProvideTLVDescriptorCommand.test.js.map +2 -2
  123. package/lib/esm/internal/app-binder/command/ProvideTLVTransactionInstructionDescriptorCommand.js +2 -0
  124. package/lib/esm/internal/app-binder/command/ProvideTLVTransactionInstructionDescriptorCommand.js.map +7 -0
  125. package/lib/esm/internal/app-binder/command/ProvideTLVTransactionInstructionDescriptorCommand.test.js +2 -0
  126. package/lib/esm/internal/app-binder/command/ProvideTLVTransactionInstructionDescriptorCommand.test.js.map +7 -0
  127. package/lib/esm/internal/app-binder/command/SignOffChainMessageCommand.js +1 -1
  128. package/lib/esm/internal/app-binder/command/SignOffChainMessageCommand.js.map +3 -3
  129. package/lib/esm/internal/app-binder/command/SignOffChainMessageCommand.test.js +1 -1
  130. package/lib/esm/internal/app-binder/command/SignOffChainMessageCommand.test.js.map +3 -3
  131. package/lib/esm/internal/app-binder/command/SignTransactionCommand.js +1 -1
  132. package/lib/esm/internal/app-binder/command/SignTransactionCommand.js.map +3 -3
  133. package/lib/esm/internal/app-binder/command/SignTransactionCommand.test.js +1 -1
  134. package/lib/esm/internal/app-binder/command/SignTransactionCommand.test.js.map +3 -3
  135. package/lib/esm/internal/app-binder/device-action/SignTransactionDeviceAction.js +1 -1
  136. package/lib/esm/internal/app-binder/device-action/SignTransactionDeviceAction.js.map +3 -3
  137. package/lib/esm/internal/app-binder/device-action/SignTransactionDeviceAction.test.js +1 -1
  138. package/lib/esm/internal/app-binder/device-action/SignTransactionDeviceAction.test.js.map +3 -3
  139. package/lib/esm/internal/app-binder/services/GenerateSolanaTransaction.test.js.map +3 -3
  140. package/lib/esm/internal/app-binder/services/TransactionInspector.js +1 -1
  141. package/lib/esm/internal/app-binder/services/TransactionInspector.js.map +3 -3
  142. package/lib/esm/internal/app-binder/services/TransactionInspector.test.js +2 -0
  143. package/lib/esm/internal/app-binder/services/TransactionInspector.test.js.map +7 -0
  144. package/lib/esm/internal/app-binder/services/bs58Encoder.js +2 -0
  145. package/lib/esm/internal/app-binder/services/bs58Encoder.js.map +7 -0
  146. package/lib/esm/internal/app-binder/services/utils/DefaultSolanaMessageNormaliser.js +2 -0
  147. package/lib/esm/internal/app-binder/services/utils/DefaultSolanaMessageNormaliser.js.map +7 -0
  148. package/lib/esm/internal/app-binder/services/utils/DefaultSolanaMessageNormaliser.test.js +2 -0
  149. package/lib/esm/internal/app-binder/services/utils/DefaultSolanaMessageNormaliser.test.js.map +7 -0
  150. package/lib/esm/internal/app-binder/services/utils/NullLoggerPublisherService.js +2 -0
  151. package/lib/esm/internal/app-binder/services/utils/NullLoggerPublisherService.js.map +7 -0
  152. package/lib/esm/internal/app-binder/services/utils/NullLoggerPublisherService.test.js +2 -0
  153. package/lib/esm/internal/app-binder/services/utils/NullLoggerPublisherService.test.js.map +7 -0
  154. package/lib/esm/internal/app-binder/services/utils/transactionDecoders.js +1 -1
  155. package/lib/esm/internal/app-binder/services/utils/transactionDecoders.js.map +3 -3
  156. package/lib/esm/internal/app-binder/task/BuildTransactionContextTask.js +1 -1
  157. package/lib/esm/internal/app-binder/task/BuildTransactionContextTask.js.map +3 -3
  158. package/lib/esm/internal/app-binder/task/BuildTransactionContextTask.test.js +1 -1
  159. package/lib/esm/internal/app-binder/task/BuildTransactionContextTask.test.js.map +3 -3
  160. package/lib/esm/internal/app-binder/task/ProvideTransactionContextTask.js +1 -1
  161. package/lib/esm/internal/app-binder/task/ProvideTransactionContextTask.js.map +3 -3
  162. package/lib/esm/internal/app-binder/task/ProvideTransactionContextTask.test.js +1 -1
  163. package/lib/esm/internal/app-binder/task/ProvideTransactionContextTask.test.js.map +3 -3
  164. package/lib/esm/internal/app-binder/task/SendSignMessageTask.js +1 -1
  165. package/lib/esm/internal/app-binder/task/SendSignMessageTask.js.map +3 -3
  166. package/lib/esm/internal/app-binder/task/SendSignMessageTask.test.js +3 -1
  167. package/lib/esm/internal/app-binder/task/SendSignMessageTask.test.js.map +3 -3
  168. package/lib/esm/internal/di.js +1 -1
  169. package/lib/esm/internal/di.js.map +3 -3
  170. package/lib/esm/internal/externalTypes.js +1 -1
  171. package/lib/esm/internal/externalTypes.js.map +2 -2
  172. package/lib/esm/internal/use-cases/transaction/SignTransactionUseCase.js +1 -1
  173. package/lib/esm/internal/use-cases/transaction/SignTransactionUseCase.js.map +3 -3
  174. package/lib/esm/internal/use-cases/transaction/SignTransactionUseCase.test.js +1 -1
  175. package/lib/esm/internal/use-cases/transaction/SignTransactionUseCase.test.js.map +2 -2
  176. package/lib/esm/package.json +40 -36
  177. package/lib/types/api/SignerSolana.d.ts +2 -3
  178. package/lib/types/api/SignerSolana.d.ts.map +1 -1
  179. package/lib/types/api/SignerSolanaBuilder.d.ts.map +1 -1
  180. package/lib/types/api/SolanaTools.d.ts +1 -2
  181. package/lib/types/api/SolanaTools.d.ts.map +1 -1
  182. package/lib/types/api/app-binder/SignMessageDeviceActionTypes.d.ts +3 -2
  183. package/lib/types/api/app-binder/SignMessageDeviceActionTypes.d.ts.map +1 -1
  184. package/lib/types/api/app-binder/SignTransactionDeviceActionTypes.d.ts +12 -3
  185. package/lib/types/api/app-binder/SignTransactionDeviceActionTypes.d.ts.map +1 -1
  186. package/lib/types/api/index.d.ts +2 -1
  187. package/lib/types/api/index.d.ts.map +1 -1
  188. package/lib/types/api/model/SolanaTransactionOptionalConfig.d.ts +7 -0
  189. package/lib/types/api/model/SolanaTransactionOptionalConfig.d.ts.map +1 -0
  190. package/lib/types/api/model/TransactionResolutionContext.d.ts +7 -0
  191. package/lib/types/api/model/TransactionResolutionContext.d.ts.map +1 -1
  192. package/lib/types/internal/DefaultSignerSolana.d.ts +293 -2
  193. package/lib/types/internal/DefaultSignerSolana.d.ts.map +1 -1
  194. package/lib/types/internal/app-binder/SolanaAppBinder.d.ts +5 -5
  195. package/lib/types/internal/app-binder/SolanaAppBinder.d.ts.map +1 -1
  196. package/lib/types/internal/app-binder/command/GetAppConfigurationCommand.d.ts +1 -0
  197. package/lib/types/internal/app-binder/command/GetAppConfigurationCommand.d.ts.map +1 -1
  198. package/lib/types/internal/app-binder/command/GetChallengeCommand.d.ts +1 -0
  199. package/lib/types/internal/app-binder/command/GetChallengeCommand.d.ts.map +1 -1
  200. package/lib/types/internal/app-binder/command/GetPubKeyCommand.d.ts +4 -1
  201. package/lib/types/internal/app-binder/command/GetPubKeyCommand.d.ts.map +1 -1
  202. package/lib/types/internal/app-binder/command/ProvideTLVDescriptorCommand.d.ts +1 -0
  203. package/lib/types/internal/app-binder/command/ProvideTLVDescriptorCommand.d.ts.map +1 -1
  204. package/lib/types/internal/app-binder/command/ProvideTLVTransactionInstructionDescriptorCommand.d.ts +29 -0
  205. package/lib/types/internal/app-binder/command/ProvideTLVTransactionInstructionDescriptorCommand.d.ts.map +1 -0
  206. package/lib/types/internal/app-binder/command/ProvideTLVTransactionInstructionDescriptorCommand.test.d.ts +2 -0
  207. package/lib/types/internal/app-binder/command/ProvideTLVTransactionInstructionDescriptorCommand.test.d.ts.map +1 -0
  208. package/lib/types/internal/app-binder/command/SignOffChainMessageCommand.d.ts +14 -9
  209. package/lib/types/internal/app-binder/command/SignOffChainMessageCommand.d.ts.map +1 -1
  210. package/lib/types/internal/app-binder/command/SignTransactionCommand.d.ts +3 -0
  211. package/lib/types/internal/app-binder/command/SignTransactionCommand.d.ts.map +1 -1
  212. package/lib/types/internal/app-binder/device-action/SignTransactionDeviceAction.d.ts +10 -3
  213. package/lib/types/internal/app-binder/device-action/SignTransactionDeviceAction.d.ts.map +1 -1
  214. package/lib/types/internal/app-binder/services/TransactionInspector.d.ts +13 -11
  215. package/lib/types/internal/app-binder/services/TransactionInspector.d.ts.map +1 -1
  216. package/lib/types/internal/app-binder/services/TransactionInspector.test.d.ts +2 -0
  217. package/lib/types/internal/app-binder/services/TransactionInspector.test.d.ts.map +1 -0
  218. package/lib/types/internal/app-binder/services/bs58Encoder.d.ts +9 -0
  219. package/lib/types/internal/app-binder/services/bs58Encoder.d.ts.map +1 -0
  220. package/lib/types/internal/app-binder/services/utils/DefaultSolanaMessageNormaliser.d.ts +8 -0
  221. package/lib/types/internal/app-binder/services/utils/DefaultSolanaMessageNormaliser.d.ts.map +1 -0
  222. package/lib/types/internal/app-binder/services/utils/DefaultSolanaMessageNormaliser.test.d.ts +2 -0
  223. package/lib/types/internal/app-binder/services/utils/DefaultSolanaMessageNormaliser.test.d.ts.map +1 -0
  224. package/lib/types/internal/app-binder/services/utils/NullLoggerPublisherService.d.ts +3 -0
  225. package/lib/types/internal/app-binder/services/utils/NullLoggerPublisherService.d.ts.map +1 -0
  226. package/lib/types/internal/app-binder/services/utils/NullLoggerPublisherService.test.d.ts +2 -0
  227. package/lib/types/internal/app-binder/services/utils/NullLoggerPublisherService.test.d.ts.map +1 -0
  228. package/lib/types/internal/app-binder/services/utils/transactionDecoders.d.ts.map +1 -1
  229. package/lib/types/internal/app-binder/task/BuildTransactionContextTask.d.ts +9 -12
  230. package/lib/types/internal/app-binder/task/BuildTransactionContextTask.d.ts.map +1 -1
  231. package/lib/types/internal/app-binder/task/ProvideTransactionContextTask.d.ts +14 -7
  232. package/lib/types/internal/app-binder/task/ProvideTransactionContextTask.d.ts.map +1 -1
  233. package/lib/types/internal/app-binder/task/SendSignMessageTask.d.ts +22 -6
  234. package/lib/types/internal/app-binder/task/SendSignMessageTask.d.ts.map +1 -1
  235. package/lib/types/internal/di.d.ts.map +1 -1
  236. package/lib/types/internal/externalTypes.d.ts +1 -0
  237. package/lib/types/internal/externalTypes.d.ts.map +1 -1
  238. package/lib/types/internal/use-cases/transaction/SignTransactionUseCase.d.ts +2 -4
  239. package/lib/types/internal/use-cases/transaction/SignTransactionUseCase.d.ts.map +1 -1
  240. package/lib/types/tsconfig.prod.tsbuildinfo +1 -1
  241. package/package.json +33 -29
  242. package/lib/cjs/api/model/TransactionOptions.js +0 -2
  243. package/lib/cjs/api/model/TransactionOptions.js.map +0 -7
  244. package/lib/cjs/internal/app-binder/command/ProvideTrustedNamePKICommand.js +0 -2
  245. package/lib/cjs/internal/app-binder/command/ProvideTrustedNamePKICommand.js.map +0 -7
  246. package/lib/cjs/internal/app-binder/command/ProvideTrustedNamePKICommand.test.js +0 -2
  247. package/lib/cjs/internal/app-binder/command/ProvideTrustedNamePKICommand.test.js.map +0 -7
  248. package/lib/esm/api/model/TransactionOptions.js +0 -1
  249. package/lib/esm/internal/app-binder/command/ProvideTrustedNamePKICommand.js +0 -2
  250. package/lib/esm/internal/app-binder/command/ProvideTrustedNamePKICommand.js.map +0 -7
  251. package/lib/esm/internal/app-binder/command/ProvideTrustedNamePKICommand.test.js +0 -2
  252. package/lib/esm/internal/app-binder/command/ProvideTrustedNamePKICommand.test.js.map +0 -7
  253. package/lib/types/api/model/TransactionOptions.d.ts +0 -8
  254. package/lib/types/api/model/TransactionOptions.d.ts.map +0 -1
  255. package/lib/types/internal/app-binder/command/ProvideTrustedNamePKICommand.d.ts +0 -13
  256. package/lib/types/internal/app-binder/command/ProvideTrustedNamePKICommand.d.ts.map +0 -1
  257. package/lib/types/internal/app-binder/command/ProvideTrustedNamePKICommand.test.d.ts +0 -2
  258. package/lib/types/internal/app-binder/command/ProvideTrustedNamePKICommand.test.d.ts.map +0 -1
  259. /package/lib/esm/api/model/{TransactionOptions.js.map → SolanaTransactionOptionalConfig.js.map} +0 -0
@@ -12,7 +12,7 @@ export type NormalizedMessage = {
12
12
  compiledInstructions: NormalizedCompiledIx[];
13
13
  allKeys: PublicKey[];
14
14
  };
15
- export interface TxInspectorResult {
15
+ export type TxInspectorResult = {
16
16
  transactionType: SolanaTransactionTypes;
17
17
  data: {
18
18
  tokenAddress?: string;
@@ -21,21 +21,23 @@ export interface TxInspectorResult {
21
21
  mintAddress: string;
22
22
  };
23
23
  };
24
- }
24
+ };
25
25
  export declare class TransactionInspector {
26
- private readonly rawTransactionBytes;
27
- private readonly tokenAddress?;
28
- private readonly createATA?;
29
- constructor(rawTransactionBytes: Uint8Array, tokenAddress?: string | null | undefined, createATA?: {
26
+ private readonly RPCURL;
27
+ constructor(injectedRPCURL?: string | undefined);
28
+ inspectTransactionType(rawTransactionBytes: Uint8Array, tokenAddress?: string | undefined, createATA?: {
30
29
  address: string;
31
30
  mintAddress: string;
32
- } | null | undefined);
33
- inspectTransactionType(): Promise<TxInspectorResult>;
31
+ } | undefined): Promise<TxInspectorResult>;
34
32
  /**
35
33
  * Normalise any tx (legacy or v0) into { compiledInstructions, allKeys }.
36
- * For v0, auto-fetch looked-up addresses from ALT(s) via the baked-in connection.
34
+ * For v0, auto-fetch looked-up addresses from ALT(s) via the connection.
35
+ */
36
+ static normaliseMessage(rawBytes: Uint8Array, rpcURL?: string): Promise<NormalizedMessage>;
37
+ private static tryDeserialiseVersioned;
38
+ /**
39
+ * For v0, fetch looked-up addresses from ALT(s) via the connection
37
40
  */
38
- private normaliseMessage;
39
- private tryDeserialiseVersioned;
41
+ private static resolveLookedUpAddressesFromMessage;
40
42
  }
41
43
  //# sourceMappingURL=TransactionInspector.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"TransactionInspector.d.ts","sourceRoot":"","sources":["../../../../../src/internal/app-binder/services/TransactionInspector.ts"],"names":[],"mappings":"AAKA,OAAO,EAEL,KAAK,SAAS,EAKf,MAAM,iBAAiB,CAAC;AAQzB,oBAAY,sBAAsB;IAChC,QAAQ,aAAa;IACrB,GAAG,QAAQ;CACZ;AAED,MAAM,MAAM,oBAAoB,GAAG;IACjC,cAAc,EAAE,MAAM,CAAC;IACvB,iBAAiB,EAAE,MAAM,EAAE,CAAC;IAC5B,IAAI,EAAE,UAAU,CAAC;CAClB,CAAC;AAEF,MAAM,MAAM,iBAAiB,GAAG;IAC9B,oBAAoB,EAAE,oBAAoB,EAAE,CAAC;IAC7C,OAAO,EAAE,SAAS,EAAE,CAAC;CACtB,CAAC;AAEF,MAAM,WAAW,iBAAiB;IAChC,eAAe,EAAE,sBAAsB,CAAC;IACxC,IAAI,EAAE;QACJ,YAAY,CAAC,EAAE,MAAM,CAAC;QACtB,SAAS,CAAC,EAAE;YAAE,OAAO,EAAE,MAAM,CAAC;YAAC,WAAW,EAAE,MAAM,CAAA;SAAE,CAAC;KACtD,CAAC;CACH;AAcD,qBAAa,oBAAoB;IAE7B,OAAO,CAAC,QAAQ,CAAC,mBAAmB;IACpC,OAAO,CAAC,QAAQ,CAAC,YAAY,CAAC;IAC9B,OAAO,CAAC,QAAQ,CAAC,SAAS,CAAC;gBAFV,mBAAmB,EAAE,UAAU,EAC/B,YAAY,CAAC,EAAE,MAAM,GAAG,IAAI,YAAA,EAC5B,SAAS,CAAC,EAAE;QAC3B,OAAO,EAAE,MAAM,CAAC;QAChB,WAAW,EAAE,MAAM,CAAC;KACrB,GAAG,IAAI,YAAA;IAGG,sBAAsB,IAAI,OAAO,CAAC,iBAAiB,CAAC;IA6EjE;;;OAGG;YACW,gBAAgB;IA0F9B,OAAO,CAAC,uBAAuB;CAchC"}
1
+ {"version":3,"file":"TransactionInspector.d.ts","sourceRoot":"","sources":["../../../../../src/internal/app-binder/services/TransactionInspector.ts"],"names":[],"mappings":"AAKA,OAAO,EAEL,KAAK,SAAS,EAKf,MAAM,iBAAiB,CAAC;AAQzB,oBAAY,sBAAsB;IAChC,QAAQ,aAAa;IACrB,GAAG,QAAQ;CACZ;AAED,MAAM,MAAM,oBAAoB,GAAG;IACjC,cAAc,EAAE,MAAM,CAAC;IACvB,iBAAiB,EAAE,MAAM,EAAE,CAAC;IAC5B,IAAI,EAAE,UAAU,CAAC;CAClB,CAAC;AAEF,MAAM,MAAM,iBAAiB,GAAG;IAC9B,oBAAoB,EAAE,oBAAoB,EAAE,CAAC;IAC7C,OAAO,EAAE,SAAS,EAAE,CAAC;CACtB,CAAC;AAEF,MAAM,MAAM,iBAAiB,GAAG;IAC9B,eAAe,EAAE,sBAAsB,CAAC;IACxC,IAAI,EAAE;QACJ,YAAY,CAAC,EAAE,MAAM,CAAC;QACtB,SAAS,CAAC,EAAE;YAAE,OAAO,EAAE,MAAM,CAAC;YAAC,WAAW,EAAE,MAAM,CAAA;SAAE,CAAC;KACtD,CAAC;CACH,CAAC;AAeF,qBAAa,oBAAoB;IAC/B,OAAO,CAAC,QAAQ,CAAC,MAAM,CAAqB;gBAChC,cAAc,CAAC,EAAE,MAAM,GAAG,SAAS;IAIlC,sBAAsB,CACjC,mBAAmB,EAAE,UAAU,EAC/B,YAAY,CAAC,EAAE,MAAM,GAAG,SAAS,EACjC,SAAS,CAAC,EACN;QACE,OAAO,EAAE,MAAM,CAAC;QAChB,WAAW,EAAE,MAAM,CAAC;KACrB,GACD,SAAS,GACZ,OAAO,CAAC,iBAAiB,CAAC;IAiF7B;;;OAGG;WACU,gBAAgB,CAC3B,QAAQ,EAAE,UAAU,EACpB,MAAM,CAAC,EAAE,MAAM,GACd,OAAO,CAAC,iBAAiB,CAAC;IAgG7B,OAAO,CAAC,MAAM,CAAC,uBAAuB;IAetC;;OAEG;mBACkB,mCAAmC;CA8BzD"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=TransactionInspector.test.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"TransactionInspector.test.d.ts","sourceRoot":"","sources":["../../../../../src/internal/app-binder/services/TransactionInspector.test.ts"],"names":[],"mappings":""}
@@ -0,0 +1,9 @@
1
+ export interface Bs58Encoder {
2
+ encode(data: Uint8Array): string;
3
+ decode(encoded: string): Uint8Array;
4
+ }
5
+ export declare class DefaultBs58Encoder {
6
+ static encode(data: Uint8Array): string;
7
+ static decode(encoded: string): Uint8Array;
8
+ }
9
+ //# sourceMappingURL=bs58Encoder.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"bs58Encoder.d.ts","sourceRoot":"","sources":["../../../../../src/internal/app-binder/services/bs58Encoder.ts"],"names":[],"mappings":"AAEA,MAAM,WAAW,WAAW;IAC1B,MAAM,CAAC,IAAI,EAAE,UAAU,GAAG,MAAM,CAAC;IACjC,MAAM,CAAC,OAAO,EAAE,MAAM,GAAG,UAAU,CAAC;CACrC;AAED,qBAAa,kBAAkB;IAC7B,MAAM,CAAC,MAAM,CAAC,IAAI,EAAE,UAAU,GAAG,MAAM;IAGvC,MAAM,CAAC,MAAM,CAAC,OAAO,EAAE,MAAM,GAAG,UAAU;CAG3C"}
@@ -0,0 +1,8 @@
1
+ import type { NormalizedMessage } from "../../../app-binder/services/TransactionInspector";
2
+ export interface SolanaMessageNormaliserConstructor {
3
+ normaliseMessage(rawBytes: Uint8Array): Promise<NormalizedMessage>;
4
+ }
5
+ export declare class DefaultSolanaMessageNormaliser {
6
+ static normaliseMessage(rawBytes: Uint8Array): Promise<NormalizedMessage>;
7
+ }
8
+ //# sourceMappingURL=DefaultSolanaMessageNormaliser.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"DefaultSolanaMessageNormaliser.d.ts","sourceRoot":"","sources":["../../../../../../src/internal/app-binder/services/utils/DefaultSolanaMessageNormaliser.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,oDAAoD,CAAC;AAG5F,MAAM,WAAW,kCAAkC;IACjD,gBAAgB,CAAC,QAAQ,EAAE,UAAU,GAAG,OAAO,CAAC,iBAAiB,CAAC,CAAC;CACpE;AAED,qBAAa,8BAA8B;WAC5B,gBAAgB,CAC3B,QAAQ,EAAE,UAAU,GACnB,OAAO,CAAC,iBAAiB,CAAC;CAG9B"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=DefaultSolanaMessageNormaliser.test.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"DefaultSolanaMessageNormaliser.test.d.ts","sourceRoot":"","sources":["../../../../../../src/internal/app-binder/services/utils/DefaultSolanaMessageNormaliser.test.ts"],"names":[],"mappings":""}
@@ -0,0 +1,3 @@
1
+ import type { LoggerPublisherService } from "@ledgerhq/device-management-kit";
2
+ export declare const NullLoggerPublisherService: (tag: string) => LoggerPublisherService;
3
+ //# sourceMappingURL=NullLoggerPublisherService.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"NullLoggerPublisherService.d.ts","sourceRoot":"","sources":["../../../../../../src/internal/app-binder/services/utils/NullLoggerPublisherService.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,iCAAiC,CAAC;AAE9E,eAAO,MAAM,0BAA0B,EAAE,CACvC,GAAG,EAAE,MAAM,KACR,sBAcH,CAAC"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=NullLoggerPublisherService.test.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"NullLoggerPublisherService.test.d.ts","sourceRoot":"","sources":["../../../../../../src/internal/app-binder/services/utils/NullLoggerPublisherService.test.ts"],"names":[],"mappings":""}
@@ -1 +1 @@
1
- {"version":3,"file":"transactionDecoders.d.ts","sourceRoot":"","sources":["../../../../../../src/internal/app-binder/services/utils/transactionDecoders.ts"],"names":[],"mappings":"AAkBA,OAAO,EAAE,KAAK,SAAS,EAAE,KAAK,sBAAsB,EAAE,MAAM,iBAAiB,CAAC;AAE9E,OAAO,EACL,KAAK,oBAAoB,EACzB,KAAK,iBAAiB,EACtB,KAAK,iBAAiB,EACvB,MAAM,oDAAoD,CAAC;AAE5D,MAAM,MAAM,SAAS,GAAG;IACtB,SAAS,EAAE,SAAS,CAAC;IACrB,MAAM,EAAE,oBAAoB,CAAC;IAC7B,OAAO,EAAE,iBAAiB,CAAC;IAC3B,WAAW,EAAE,sBAAsB,CAAC;CACrC,CAAC;AAEF,MAAM,MAAM,OAAO,GAAG;IACpB,IAAI,EAAE,CAAC,GAAG,EAAE,SAAS,KAAK,OAAO,CAAC;IAClC,MAAM,EAAE,CAAC,GAAG,EAAE,SAAS,KAAK,iBAAiB,CAAC,MAAM,CAAC,GAAG,IAAI,CAAC;CAC9D,CAAC;AAaF,eAAO,MAAM,QAAQ,EAAE,OAAO,EAyM7B,CAAC"}
1
+ {"version":3,"file":"transactionDecoders.d.ts","sourceRoot":"","sources":["../../../../../../src/internal/app-binder/services/utils/transactionDecoders.ts"],"names":[],"mappings":"AAmBA,OAAO,EACL,KAAK,SAAS,EAGd,KAAK,sBAAsB,EAC5B,MAAM,iBAAiB,CAAC;AAEzB,OAAO,EACL,KAAK,oBAAoB,EACzB,KAAK,iBAAiB,EACtB,KAAK,iBAAiB,EACvB,MAAM,oDAAoD,CAAC;AAE5D,MAAM,MAAM,SAAS,GAAG;IACtB,SAAS,EAAE,SAAS,CAAC;IACrB,MAAM,EAAE,oBAAoB,CAAC;IAC7B,OAAO,EAAE,iBAAiB,CAAC;IAC3B,WAAW,EAAE,sBAAsB,CAAC;CACrC,CAAC;AAEF,MAAM,MAAM,OAAO,GAAG;IACpB,IAAI,EAAE,CAAC,GAAG,EAAE,SAAS,KAAK,OAAO,CAAC;IAClC,MAAM,EAAE,CAAC,GAAG,EAAE,SAAS,KAAK,iBAAiB,CAAC,MAAM,CAAC,GAAG,IAAI,CAAC;CAC9D,CAAC;AAaF,eAAO,MAAM,QAAQ,EAAE,OAAO,EAsQ7B,CAAC"}
@@ -1,23 +1,20 @@
1
- import { type ContextModule, type PkiCertificate } from "@ledgerhq/context-module";
2
- import { type InternalApi } from "@ledgerhq/device-management-kit";
3
- import { type TransactionOptions } from "../../../api/model/TransactionOptions";
1
+ import { type ContextModule, type PkiCertificate, type SolanaContextLoaderResults } from "@ledgerhq/context-module";
2
+ import { type InternalApi, type LoggerPublisherService } from "@ledgerhq/device-management-kit";
3
+ import { type TransactionResolutionContext } from "../../../api/model/TransactionResolutionContext";
4
4
  export type SolanaBuildContextResult = {
5
- challenge: string | undefined;
6
- addressResult: {
7
- tokenAccount: string;
8
- owner: string;
9
- contract: string;
10
- };
11
- calCertificate: PkiCertificate;
12
- descriptor: Uint8Array;
5
+ trustedNamePKICertificate: PkiCertificate;
6
+ tlvDescriptor: Uint8Array;
7
+ loadersResults: SolanaContextLoaderResults;
13
8
  };
14
9
  export type BuildTransactionContextTaskArgs = {
15
10
  readonly contextModule: ContextModule;
16
- readonly options: TransactionOptions;
11
+ readonly options: TransactionResolutionContext;
12
+ readonly loggerFactory: (tag: string) => LoggerPublisherService;
17
13
  };
18
14
  export declare class BuildTransactionContextTask {
19
15
  private readonly api;
20
16
  private readonly args;
17
+ private readonly _logger;
21
18
  constructor(api: InternalApi, args: BuildTransactionContextTaskArgs);
22
19
  run(): Promise<SolanaBuildContextResult>;
23
20
  }
@@ -1 +1 @@
1
- {"version":3,"file":"BuildTransactionContextTask.d.ts","sourceRoot":"","sources":["../../../../../src/internal/app-binder/task/BuildTransactionContextTask.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,aAAa,EAClB,KAAK,cAAc,EACpB,MAAM,0BAA0B,CAAC;AAClC,OAAO,EACL,KAAK,WAAW,EAEjB,MAAM,iCAAiC,CAAC;AAEzC,OAAO,EAAE,KAAK,kBAAkB,EAAE,MAAM,+BAA+B,CAAC;AAGxE,MAAM,MAAM,wBAAwB,GAAG;IACrC,SAAS,EAAE,MAAM,GAAG,SAAS,CAAC;IAC9B,aAAa,EAAE;QACb,YAAY,EAAE,MAAM,CAAC;QACrB,KAAK,EAAE,MAAM,CAAC;QACd,QAAQ,EAAE,MAAM,CAAC;KAClB,CAAC;IACF,cAAc,EAAE,cAAc,CAAC;IAC/B,UAAU,EAAE,UAAU,CAAC;CACxB,CAAC;AAEF,MAAM,MAAM,+BAA+B,GAAG;IAC5C,QAAQ,CAAC,aAAa,EAAE,aAAa,CAAC;IACtC,QAAQ,CAAC,OAAO,EAAE,kBAAkB,CAAC;CACtC,CAAC;AAEF,qBAAa,2BAA2B;IAEpC,OAAO,CAAC,QAAQ,CAAC,GAAG;IACpB,OAAO,CAAC,QAAQ,CAAC,IAAI;gBADJ,GAAG,EAAE,WAAW,EAChB,IAAI,EAAE,+BAA+B;IAGlD,GAAG,IAAI,OAAO,CAAC,wBAAwB,CAAC;CAqC/C"}
1
+ {"version":3,"file":"BuildTransactionContextTask.d.ts","sourceRoot":"","sources":["../../../../../src/internal/app-binder/task/BuildTransactionContextTask.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,aAAa,EAClB,KAAK,cAAc,EACnB,KAAK,0BAA0B,EAChC,MAAM,0BAA0B,CAAC;AAClC,OAAO,EACL,KAAK,WAAW,EAEhB,KAAK,sBAAsB,EAC5B,MAAM,iCAAiC,CAAC;AAEzC,OAAO,EAAE,KAAK,4BAA4B,EAAE,MAAM,yCAAyC,CAAC;AAG5F,MAAM,MAAM,wBAAwB,GAAG;IACrC,yBAAyB,EAAE,cAAc,CAAC;IAC1C,aAAa,EAAE,UAAU,CAAC;IAC1B,cAAc,EAAE,0BAA0B,CAAC;CAC5C,CAAC;AAEF,MAAM,MAAM,+BAA+B,GAAG;IAC5C,QAAQ,CAAC,aAAa,EAAE,aAAa,CAAC;IACtC,QAAQ,CAAC,OAAO,EAAE,4BAA4B,CAAC;IAC/C,QAAQ,CAAC,aAAa,EAAE,CAAC,GAAG,EAAE,MAAM,KAAK,sBAAsB,CAAC;CACjE,CAAC;AAEF,qBAAa,2BAA2B;IAGpC,OAAO,CAAC,QAAQ,CAAC,GAAG;IACpB,OAAO,CAAC,QAAQ,CAAC,IAAI;IAHvB,OAAO,CAAC,QAAQ,CAAC,OAAO,CAAyB;gBAE9B,GAAG,EAAE,WAAW,EAChB,IAAI,EAAE,+BAA+B;IAKlD,GAAG,IAAI,OAAO,CAAC,wBAAwB,CAAC;CAuD/C"}
@@ -1,15 +1,22 @@
1
- import { type PkiCertificate } from "@ledgerhq/context-module";
2
- import { type CommandErrorResult, type InternalApi } from "@ledgerhq/device-management-kit";
1
+ import { type CommandErrorResult, type InternalApi, type LoggerPublisherService } from "@ledgerhq/device-management-kit";
3
2
  import { type Maybe } from "purify-ts";
4
3
  import { type SolanaAppErrorCodes } from "../../app-binder/command/utils/SolanaApplicationErrors";
5
- export type SolanaContextForDevice = {
6
- descriptor: Uint8Array;
7
- certificate: PkiCertificate;
4
+ import { type SolanaMessageNormaliserConstructor } from "../../app-binder/services/utils/DefaultSolanaMessageNormaliser";
5
+ import { type SolanaBuildContextResult } from "./BuildTransactionContextTask";
6
+ export declare const SWAP_MODE = "test";
7
+ export type ProvideSolanaTransactionContextTaskArgs = SolanaBuildContextResult & {
8
+ readonly transactionBytes: Uint8Array;
9
+ readonly loggerFactory: (tag: string) => LoggerPublisherService;
10
+ readonly normaliser?: SolanaMessageNormaliserConstructor;
8
11
  };
9
12
  export declare class ProvideSolanaTransactionContextTask {
10
13
  private readonly api;
11
- private readonly context;
12
- constructor(api: InternalApi, context: SolanaContextForDevice);
14
+ private readonly args;
15
+ private readonly _logger;
16
+ private readonly _normaliser;
17
+ constructor(api: InternalApi, args: ProvideSolanaTransactionContextTaskArgs);
13
18
  run(): Promise<Maybe<CommandErrorResult<SolanaAppErrorCodes>>>;
19
+ private provideTokenMetadataContext;
20
+ private provideSwapContext;
14
21
  }
15
22
  //# sourceMappingURL=ProvideTransactionContextTask.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"ProvideTransactionContextTask.d.ts","sourceRoot":"","sources":["../../../../../src/internal/app-binder/task/ProvideTransactionContextTask.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,cAAc,EAAE,MAAM,0BAA0B,CAAC;AAC/D,OAAO,EACL,KAAK,kBAAkB,EACvB,KAAK,WAAW,EAEjB,MAAM,iCAAiC,CAAC;AACzC,OAAO,EAAE,KAAK,KAAK,EAAW,MAAM,WAAW,CAAC;AAIhD,OAAO,EAAE,KAAK,mBAAmB,EAAE,MAAM,4DAA4D,CAAC;AAEtG,MAAM,MAAM,sBAAsB,GAAG;IACnC,UAAU,EAAE,UAAU,CAAC;IACvB,WAAW,EAAE,cAAc,CAAC;CAC7B,CAAC;AAEF,qBAAa,mCAAmC;IAE5C,OAAO,CAAC,QAAQ,CAAC,GAAG;IACpB,OAAO,CAAC,QAAQ,CAAC,OAAO;gBADP,GAAG,EAAE,WAAW,EAChB,OAAO,EAAE,sBAAsB;IAG5C,GAAG,IAAI,OAAO,CAAC,KAAK,CAAC,kBAAkB,CAAC,mBAAmB,CAAC,CAAC,CAAC;CAwBrE"}
1
+ {"version":3,"file":"ProvideTransactionContextTask.d.ts","sourceRoot":"","sources":["../../../../../src/internal/app-binder/task/ProvideTransactionContextTask.ts"],"names":[],"mappings":"AAKA,OAAO,EACL,KAAK,kBAAkB,EACvB,KAAK,WAAW,EAGhB,KAAK,sBAAsB,EAC5B,MAAM,iCAAiC,CAAC;AACzC,OAAO,EAAE,KAAK,KAAK,EAAW,MAAM,WAAW,CAAC;AAIhD,OAAO,EAAE,KAAK,mBAAmB,EAAE,MAAM,4DAA4D,CAAC;AACtG,OAAO,EAEL,KAAK,kCAAkC,EACxC,MAAM,oEAAoE,CAAC;AAE5E,OAAO,EAAE,KAAK,wBAAwB,EAAE,MAAM,+BAA+B,CAAC;AAE9E,eAAO,MAAM,SAAS,SAAS,CAAC;AAEhC,MAAM,MAAM,uCAAuC,GACjD,wBAAwB,GAAG;IACzB,QAAQ,CAAC,gBAAgB,EAAE,UAAU,CAAC;IACtC,QAAQ,CAAC,aAAa,EAAE,CAAC,GAAG,EAAE,MAAM,KAAK,sBAAsB,CAAC;IAChE,QAAQ,CAAC,UAAU,CAAC,EAAE,kCAAkC,CAAC;CAC1D,CAAC;AAEJ,qBAAa,mCAAmC;IAI5C,OAAO,CAAC,QAAQ,CAAC,GAAG;IACpB,OAAO,CAAC,QAAQ,CAAC,IAAI;IAJvB,OAAO,CAAC,QAAQ,CAAC,OAAO,CAAyB;IACjD,OAAO,CAAC,QAAQ,CAAC,WAAW,CAAqC;gBAE9C,GAAG,EAAE,WAAW,EAChB,IAAI,EAAE,uCAAuC;IAM1D,GAAG,IAAI,OAAO,CAAC,KAAK,CAAC,kBAAkB,CAAC,mBAAmB,CAAC,CAAC,CAAC;YAgFtD,2BAA2B;YAqC3B,kBAAkB;CA2CjC"}
@@ -1,24 +1,40 @@
1
1
  import { type CommandResult, type InternalApi } from "@ledgerhq/device-management-kit";
2
- import { type Signature } from "../../../api/index";
3
2
  import { type SolanaAppErrorCodes } from "../../app-binder/command/utils/SolanaApplicationErrors";
3
+ import { type Bs58Encoder } from "../../app-binder/services/bs58Encoder";
4
+ export declare enum MessageFormat {
5
+ Ascii = 0,
6
+ Utf8 = 1,
7
+ Utf8LongV0 = 2
8
+ }
9
+ export declare const MAX_MESSAGE_LENGTH = 65515;
4
10
  export type SendSignMessageTaskArgs = {
5
11
  sendingData: Uint8Array;
6
12
  derivationPath: string;
7
13
  };
8
- export type SendSignMessageTaskRunFunctionReturn = Promise<CommandResult<Signature, SolanaAppErrorCodes>>;
9
- export declare const MAX_MESSAGE_LENGTH = 65535;
14
+ export type SendSignMessageTaskRunFunctionReturn = Promise<CommandResult<{
15
+ signature: string;
16
+ }, SolanaAppErrorCodes>>;
10
17
  export declare class SendSignMessageTask {
11
18
  private api;
12
19
  private args;
13
- constructor(api: InternalApi, args: SendSignMessageTaskArgs);
20
+ private readonly bs58Encoder;
21
+ constructor(api: InternalApi, args: SendSignMessageTaskArgs, bs58Encoder?: Bs58Encoder);
14
22
  run(): SendSignMessageTaskRunFunctionReturn;
23
+ private _isUTF8;
24
+ private _findMessageFormat;
25
+ private _isPrintableASCII;
15
26
  /**
16
- * builds the serialised off-chain message header and body
27
+ * build serialised off-chain message header + body
28
+ * when `isLegacy` is true, build the short legacy header (no app-domain or signers).
17
29
  */
18
30
  private _buildFullMessage;
31
+ private _isInvalidOffchainHeaderError;
19
32
  /**
20
- * builds the APDU command to send to the device
33
+ * build APDU payload:
34
+ * [signerCount=1][derivationsCount][each 4-byte index][OCM message]
21
35
  */
22
36
  private _buildApduCommand;
37
+ private _sendInChunks;
38
+ private _buildEnvelopeBase58;
23
39
  }
24
40
  //# sourceMappingURL=SendSignMessageTask.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"SendSignMessageTask.d.ts","sourceRoot":"","sources":["../../../../../src/internal/app-binder/task/SendSignMessageTask.ts"],"names":[],"mappings":"AAAA,OAAO,EAGL,KAAK,aAAa,EAElB,KAAK,WAAW,EAEjB,MAAM,iCAAiC,CAAC;AAIzC,OAAO,EAAE,KAAK,SAAS,EAAE,MAAM,YAAY,CAAC;AAG5C,OAAO,EAAE,KAAK,mBAAmB,EAAE,MAAM,4DAA4D,CAAC;AAEtG,MAAM,MAAM,uBAAuB,GAAG;IACpC,WAAW,EAAE,UAAU,CAAC;IACxB,cAAc,EAAE,MAAM,CAAC;CACxB,CAAC;AAEF,MAAM,MAAM,oCAAoC,GAAG,OAAO,CACxD,aAAa,CAAC,SAAS,EAAE,mBAAmB,CAAC,CAC9C,CAAC;AAEF,eAAO,MAAM,kBAAkB,QAAS,CAAC;AAEzC,qBAAa,mBAAmB;IAE5B,OAAO,CAAC,GAAG;IACX,OAAO,CAAC,IAAI;gBADJ,GAAG,EAAE,WAAW,EAChB,IAAI,EAAE,uBAAuB;IAGjC,GAAG,IAAI,oCAAoC;IAgDjD;;OAEG;IACH,OAAO,CAAC,iBAAiB;IA4BzB;;OAEG;IACH,OAAO,CAAC,iBAAiB;CA0B1B"}
1
+ {"version":3,"file":"SendSignMessageTask.d.ts","sourceRoot":"","sources":["../../../../../src/internal/app-binder/task/SendSignMessageTask.ts"],"names":[],"mappings":"AAAA,OAAO,EAEL,KAAK,aAAa,EAElB,KAAK,WAAW,EAGjB,MAAM,iCAAiC,CAAC;AAQzC,OAAO,EAAE,KAAK,mBAAmB,EAAE,MAAM,4DAA4D,CAAC;AACtG,OAAO,EACL,KAAK,WAAW,EAEjB,MAAM,2CAA2C,CAAC;AA8BnD,oBAAY,aAAa;IACvB,KAAK,IAAI;IACT,IAAI,IAAI;IACR,UAAU,IAAI;CACf;AAED,eAAO,MAAM,kBAAkB,QAAyB,CAAC;AAEzD,MAAM,MAAM,uBAAuB,GAAG;IACpC,WAAW,EAAE,UAAU,CAAC;IACxB,cAAc,EAAE,MAAM,CAAC;CACxB,CAAC;AAEF,MAAM,MAAM,oCAAoC,GAAG,OAAO,CACxD,aAAa,CAAC;IAAE,SAAS,EAAE,MAAM,CAAA;CAAE,EAAE,mBAAmB,CAAC,CAC1D,CAAC;AAEF,qBAAa,mBAAmB;IAE5B,OAAO,CAAC,GAAG;IACX,OAAO,CAAC,IAAI;IACZ,OAAO,CAAC,QAAQ,CAAC,WAAW;gBAFpB,GAAG,EAAE,WAAW,EAChB,IAAI,EAAE,uBAAuB,EACpB,WAAW,GAAE,WAAgC;IAG1D,GAAG,IAAI,oCAAoC;IA+EjD,OAAO,CAAC,OAAO;IASf,OAAO,CAAC,kBAAkB;IAuB1B,OAAO,CAAC,iBAAiB;IASzB;;;OAGG;IACH,OAAO,CAAC,iBAAiB;IA4CzB,OAAO,CAAC,6BAA6B;IAcrC;;;OAGG;IACH,OAAO,CAAC,iBAAiB;YAiBX,aAAa;IAiB3B,OAAO,CAAC,oBAAoB;CAkB7B"}
@@ -1 +1 @@
1
- {"version":3,"file":"di.d.ts","sourceRoot":"","sources":["../../../src/internal/di.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,aAAa,EAAE,MAAM,0BAA0B,CAAC;AAC9D,OAAO,EACL,KAAK,mBAAmB,EACxB,KAAK,eAAe,EACrB,MAAM,iCAAiC,CAAC;AACzC,OAAO,EAAE,SAAS,EAAE,MAAM,WAAW,CAAC;AAMtC,MAAM,MAAM,kBAAkB,GAAG;IAC/B,GAAG,EAAE,mBAAmB,CAAC;IACzB,SAAS,EAAE,eAAe,CAAC;IAC3B,aAAa,EAAE,aAAa,CAAC;CAC9B,CAAC;AACF,eAAO,MAAM,aAAa,GAAI,oCAI3B,kBAAkB,cAcpB,CAAC"}
1
+ {"version":3,"file":"di.d.ts","sourceRoot":"","sources":["../../../src/internal/di.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,aAAa,EAAE,MAAM,0BAA0B,CAAC;AAC9D,OAAO,EACL,KAAK,mBAAmB,EACxB,KAAK,eAAe,EAErB,MAAM,iCAAiC,CAAC;AACzC,OAAO,EAAE,SAAS,EAAE,MAAM,WAAW,CAAC;AAOtC,MAAM,MAAM,kBAAkB,GAAG;IAC/B,GAAG,EAAE,mBAAmB,CAAC;IACzB,SAAS,EAAE,eAAe,CAAC;IAC3B,aAAa,EAAE,aAAa,CAAC;CAC9B,CAAC;AAEF,eAAO,MAAM,aAAa,GAAI,oCAI3B,kBAAkB,cAyBpB,CAAC"}
@@ -2,5 +2,6 @@ export declare const externalTypes: {
2
2
  Dmk: symbol;
3
3
  SessionId: symbol;
4
4
  ContextModule: symbol;
5
+ DmkLoggerFactory: symbol;
5
6
  };
6
7
  //# sourceMappingURL=externalTypes.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"externalTypes.d.ts","sourceRoot":"","sources":["../../../src/internal/externalTypes.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,aAAa;;;;CAIzB,CAAC"}
1
+ {"version":3,"file":"externalTypes.d.ts","sourceRoot":"","sources":["../../../src/internal/externalTypes.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,aAAa;;;;;CAKzB,CAAC"}
@@ -1,12 +1,10 @@
1
1
  import { SignTransactionDAReturnType } from "../../../api/app-binder/SignTransactionDeviceActionTypes";
2
+ import { SolanaTransactionOptionalConfig } from "../../../api/model/SolanaTransactionOptionalConfig";
2
3
  import { Transaction } from "../../../api/model/Transaction";
3
- import { TransactionResolutionContext } from "../../../api/model/TransactionResolutionContext";
4
4
  import { SolanaAppBinder } from "../../app-binder/SolanaAppBinder";
5
5
  export declare class SignTransactionUseCase {
6
6
  private appBinder;
7
7
  constructor(appBinder: SolanaAppBinder);
8
- execute(derivationPath: string, transaction: Transaction, resolutionContext?: TransactionResolutionContext, options?: {
9
- skipOpenApp?: boolean;
10
- }): SignTransactionDAReturnType;
8
+ execute(derivationPath: string, transaction: Transaction, solanaTransactionOptionalConfig?: SolanaTransactionOptionalConfig): SignTransactionDAReturnType;
11
9
  }
12
10
  //# sourceMappingURL=SignTransactionUseCase.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"SignTransactionUseCase.d.ts","sourceRoot":"","sources":["../../../../../src/internal/use-cases/transaction/SignTransactionUseCase.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,2BAA2B,EAAE,MAAM,kDAAkD,CAAC;AAC/F,OAAO,EAAE,WAAW,EAAE,MAAM,wBAAwB,CAAC;AACrD,OAAO,EAAE,4BAA4B,EAAE,MAAM,yCAAyC,CAAC;AAEvF,OAAO,EAAE,eAAe,EAAE,MAAM,sCAAsC,CAAC;AAEvE,qBACa,sBAAsB;IAEG,OAAO,CAAC,SAAS;gBAAT,SAAS,EAAE,eAAe;IAGtE,OAAO,CACL,cAAc,EAAE,MAAM,EACtB,WAAW,EAAE,WAAW,EACxB,iBAAiB,CAAC,EAAE,4BAA4B,EAChD,OAAO,CAAC,EAAE;QACR,WAAW,CAAC,EAAE,OAAO,CAAC;KACvB,GACA,2BAA2B;CAQ/B"}
1
+ {"version":3,"file":"SignTransactionUseCase.d.ts","sourceRoot":"","sources":["../../../../../src/internal/use-cases/transaction/SignTransactionUseCase.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,2BAA2B,EAAE,MAAM,kDAAkD,CAAC;AAC/F,OAAO,EAAE,+BAA+B,EAAE,MAAM,4CAA4C,CAAC;AAC7F,OAAO,EAAE,WAAW,EAAE,MAAM,wBAAwB,CAAC;AAErD,OAAO,EAAE,eAAe,EAAE,MAAM,sCAAsC,CAAC;AAEvE,qBACa,sBAAsB;IAEG,OAAO,CAAC,SAAS;gBAAT,SAAS,EAAE,eAAe;IAGtE,OAAO,CACL,cAAc,EAAE,MAAM,EACtB,WAAW,EAAE,WAAW,EACxB,+BAA+B,CAAC,EAAE,+BAA+B,GAChE,2BAA2B;CAO/B"}