@ledgerhq/device-signer-kit-ethereum 0.0.0-20250214001047

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 (774) hide show
  1. package/LICENSE.MD +202 -0
  2. package/README.md +367 -0
  3. package/lib/cjs/api/SignerEth.js +2 -0
  4. package/lib/cjs/api/SignerEth.js.map +7 -0
  5. package/lib/cjs/api/SignerEthBuilder.js +2 -0
  6. package/lib/cjs/api/SignerEthBuilder.js.map +7 -0
  7. package/lib/cjs/api/SignerEthBuilder.test.js +2 -0
  8. package/lib/cjs/api/SignerEthBuilder.test.js.map +7 -0
  9. package/lib/cjs/api/app-binder/GetAddressCommandTypes.js +2 -0
  10. package/lib/cjs/api/app-binder/GetAddressCommandTypes.js.map +7 -0
  11. package/lib/cjs/api/app-binder/GetAddressDeviceActionTypes.js +2 -0
  12. package/lib/cjs/api/app-binder/GetAddressDeviceActionTypes.js.map +7 -0
  13. package/lib/cjs/api/app-binder/SignPersonalMessageDeviceActionTypes.js +2 -0
  14. package/lib/cjs/api/app-binder/SignPersonalMessageDeviceActionTypes.js.map +7 -0
  15. package/lib/cjs/api/app-binder/SignTransactionDeviceActionTypes.js +2 -0
  16. package/lib/cjs/api/app-binder/SignTransactionDeviceActionTypes.js.map +7 -0
  17. package/lib/cjs/api/app-binder/SignTypedDataDeviceActionTypes.js +2 -0
  18. package/lib/cjs/api/app-binder/SignTypedDataDeviceActionTypes.js.map +7 -0
  19. package/lib/cjs/api/index.js +2 -0
  20. package/lib/cjs/api/index.js.map +7 -0
  21. package/lib/cjs/api/model/Address.js +2 -0
  22. package/lib/cjs/api/model/Address.js.map +7 -0
  23. package/lib/cjs/api/model/AddressOptions.js +2 -0
  24. package/lib/cjs/api/model/AddressOptions.js.map +7 -0
  25. package/lib/cjs/api/model/Signature.js +2 -0
  26. package/lib/cjs/api/model/Signature.js.map +7 -0
  27. package/lib/cjs/api/model/TransactionOptions.js +2 -0
  28. package/lib/cjs/api/model/TransactionOptions.js.map +7 -0
  29. package/lib/cjs/api/model/TransactionType.js +2 -0
  30. package/lib/cjs/api/model/TransactionType.js.map +7 -0
  31. package/lib/cjs/api/model/TypedData.js +2 -0
  32. package/lib/cjs/api/model/TypedData.js.map +7 -0
  33. package/lib/cjs/index.js +2 -0
  34. package/lib/cjs/index.js.map +7 -0
  35. package/lib/cjs/internal/DefaultSignerEth.js +2 -0
  36. package/lib/cjs/internal/DefaultSignerEth.js.map +7 -0
  37. package/lib/cjs/internal/DefaultSignerEth.test.js +2 -0
  38. package/lib/cjs/internal/DefaultSignerEth.test.js.map +7 -0
  39. package/lib/cjs/internal/address/di/addressModule.js +2 -0
  40. package/lib/cjs/internal/address/di/addressModule.js.map +7 -0
  41. package/lib/cjs/internal/address/di/addressModule.test.js +2 -0
  42. package/lib/cjs/internal/address/di/addressModule.test.js.map +7 -0
  43. package/lib/cjs/internal/address/di/addressTypes.js +2 -0
  44. package/lib/cjs/internal/address/di/addressTypes.js.map +7 -0
  45. package/lib/cjs/internal/address/use-case/GetAddressUseCase.js +2 -0
  46. package/lib/cjs/internal/address/use-case/GetAddressUseCase.js.map +7 -0
  47. package/lib/cjs/internal/address/use-case/GetAddressUseCase.test.js +2 -0
  48. package/lib/cjs/internal/address/use-case/GetAddressUseCase.test.js.map +7 -0
  49. package/lib/cjs/internal/app-binder/EthAppBinder.js +2 -0
  50. package/lib/cjs/internal/app-binder/EthAppBinder.js.map +7 -0
  51. package/lib/cjs/internal/app-binder/EthAppBinder.test.js +2 -0
  52. package/lib/cjs/internal/app-binder/EthAppBinder.test.js.map +7 -0
  53. package/lib/cjs/internal/app-binder/command/GetAddressCommand.js +2 -0
  54. package/lib/cjs/internal/app-binder/command/GetAddressCommand.js.map +7 -0
  55. package/lib/cjs/internal/app-binder/command/GetAddressCommand.test.js +2 -0
  56. package/lib/cjs/internal/app-binder/command/GetAddressCommand.test.js.map +7 -0
  57. package/lib/cjs/internal/app-binder/command/GetChallengeCommand.js +2 -0
  58. package/lib/cjs/internal/app-binder/command/GetChallengeCommand.js.map +7 -0
  59. package/lib/cjs/internal/app-binder/command/GetChallengeCommand.test.js +2 -0
  60. package/lib/cjs/internal/app-binder/command/GetChallengeCommand.test.js.map +7 -0
  61. package/lib/cjs/internal/app-binder/command/ProvideEnumCommand.js +2 -0
  62. package/lib/cjs/internal/app-binder/command/ProvideEnumCommand.js.map +7 -0
  63. package/lib/cjs/internal/app-binder/command/ProvideEnumCommand.test.js +2 -0
  64. package/lib/cjs/internal/app-binder/command/ProvideEnumCommand.test.js.map +7 -0
  65. package/lib/cjs/internal/app-binder/command/ProvideNFTInformationCommand.js +2 -0
  66. package/lib/cjs/internal/app-binder/command/ProvideNFTInformationCommand.js.map +7 -0
  67. package/lib/cjs/internal/app-binder/command/ProvideNFTInformationCommand.test.js +2 -0
  68. package/lib/cjs/internal/app-binder/command/ProvideNFTInformationCommand.test.js.map +7 -0
  69. package/lib/cjs/internal/app-binder/command/ProvideTokenInformationCommand.js +2 -0
  70. package/lib/cjs/internal/app-binder/command/ProvideTokenInformationCommand.js.map +7 -0
  71. package/lib/cjs/internal/app-binder/command/ProvideTokenInformationCommand.test.js +2 -0
  72. package/lib/cjs/internal/app-binder/command/ProvideTokenInformationCommand.test.js.map +7 -0
  73. package/lib/cjs/internal/app-binder/command/ProvideTransactionFieldDescriptionCommand.js +2 -0
  74. package/lib/cjs/internal/app-binder/command/ProvideTransactionFieldDescriptionCommand.js.map +7 -0
  75. package/lib/cjs/internal/app-binder/command/ProvideTransactionFieldDescriptionCommand.test.js +2 -0
  76. package/lib/cjs/internal/app-binder/command/ProvideTransactionFieldDescriptionCommand.test.js.map +7 -0
  77. package/lib/cjs/internal/app-binder/command/ProvideTransactionInformationCommand.js +2 -0
  78. package/lib/cjs/internal/app-binder/command/ProvideTransactionInformationCommand.js.map +7 -0
  79. package/lib/cjs/internal/app-binder/command/ProvideTransactionInformationCommand.test.js +2 -0
  80. package/lib/cjs/internal/app-binder/command/ProvideTransactionInformationCommand.test.js.map +7 -0
  81. package/lib/cjs/internal/app-binder/command/ProvideTrustedNameCommand.js +2 -0
  82. package/lib/cjs/internal/app-binder/command/ProvideTrustedNameCommand.js.map +7 -0
  83. package/lib/cjs/internal/app-binder/command/ProvideTrustedNameCommand.test.js +2 -0
  84. package/lib/cjs/internal/app-binder/command/ProvideTrustedNameCommand.test.js.map +7 -0
  85. package/lib/cjs/internal/app-binder/command/SendEIP712FilteringCommand.js +2 -0
  86. package/lib/cjs/internal/app-binder/command/SendEIP712FilteringCommand.js.map +7 -0
  87. package/lib/cjs/internal/app-binder/command/SendEIP712FilteringCommand.test.js +2 -0
  88. package/lib/cjs/internal/app-binder/command/SendEIP712FilteringCommand.test.js.map +7 -0
  89. package/lib/cjs/internal/app-binder/command/SendEIP712StructDefinitionCommand.js +2 -0
  90. package/lib/cjs/internal/app-binder/command/SendEIP712StructDefinitionCommand.js.map +7 -0
  91. package/lib/cjs/internal/app-binder/command/SendEIP712StructDefinitionCommand.test.js +2 -0
  92. package/lib/cjs/internal/app-binder/command/SendEIP712StructDefinitionCommand.test.js.map +7 -0
  93. package/lib/cjs/internal/app-binder/command/SendEIP712StructImplemCommand.js +2 -0
  94. package/lib/cjs/internal/app-binder/command/SendEIP712StructImplemCommand.js.map +7 -0
  95. package/lib/cjs/internal/app-binder/command/SendEIP712StructImplemCommand.test.js +2 -0
  96. package/lib/cjs/internal/app-binder/command/SendEIP712StructImplemCommand.test.js.map +7 -0
  97. package/lib/cjs/internal/app-binder/command/SetExternalPluginCommand.js +2 -0
  98. package/lib/cjs/internal/app-binder/command/SetExternalPluginCommand.js.map +7 -0
  99. package/lib/cjs/internal/app-binder/command/SetExternalPluginCommand.test.js +7 -0
  100. package/lib/cjs/internal/app-binder/command/SetExternalPluginCommand.test.js.map +7 -0
  101. package/lib/cjs/internal/app-binder/command/SetPluginCommand.js +2 -0
  102. package/lib/cjs/internal/app-binder/command/SetPluginCommand.js.map +7 -0
  103. package/lib/cjs/internal/app-binder/command/SetPluginCommand.test.js +6 -0
  104. package/lib/cjs/internal/app-binder/command/SetPluginCommand.test.js.map +7 -0
  105. package/lib/cjs/internal/app-binder/command/SignEIP712Command.js +2 -0
  106. package/lib/cjs/internal/app-binder/command/SignEIP712Command.js.map +7 -0
  107. package/lib/cjs/internal/app-binder/command/SignEIP712Command.test.js +2 -0
  108. package/lib/cjs/internal/app-binder/command/SignEIP712Command.test.js.map +7 -0
  109. package/lib/cjs/internal/app-binder/command/SignPersonalMessageCommand.js +2 -0
  110. package/lib/cjs/internal/app-binder/command/SignPersonalMessageCommand.js.map +7 -0
  111. package/lib/cjs/internal/app-binder/command/SignPersonalMessageCommand.test.js +2 -0
  112. package/lib/cjs/internal/app-binder/command/SignPersonalMessageCommand.test.js.map +7 -0
  113. package/lib/cjs/internal/app-binder/command/SignTransactionCommand.js +2 -0
  114. package/lib/cjs/internal/app-binder/command/SignTransactionCommand.js.map +7 -0
  115. package/lib/cjs/internal/app-binder/command/SignTransactionCommand.test.js +2 -0
  116. package/lib/cjs/internal/app-binder/command/SignTransactionCommand.test.js.map +7 -0
  117. package/lib/cjs/internal/app-binder/command/StartTransactionCommand.js +2 -0
  118. package/lib/cjs/internal/app-binder/command/StartTransactionCommand.js.map +7 -0
  119. package/lib/cjs/internal/app-binder/command/StartTransactionCommand.test.js +2 -0
  120. package/lib/cjs/internal/app-binder/command/StartTransactionCommand.test.js.map +7 -0
  121. package/lib/cjs/internal/app-binder/command/StoreTransactionCommand.js +2 -0
  122. package/lib/cjs/internal/app-binder/command/StoreTransactionCommand.js.map +7 -0
  123. package/lib/cjs/internal/app-binder/command/StoreTransactionCommand.test.js +2 -0
  124. package/lib/cjs/internal/app-binder/command/StoreTransactionCommand.test.js.map +7 -0
  125. package/lib/cjs/internal/app-binder/command/utils/ethAppErrors.js +2 -0
  126. package/lib/cjs/internal/app-binder/command/utils/ethAppErrors.js.map +7 -0
  127. package/lib/cjs/internal/app-binder/command/utils/ethAppErrors.test.js +2 -0
  128. package/lib/cjs/internal/app-binder/command/utils/ethAppErrors.test.js.map +7 -0
  129. package/lib/cjs/internal/app-binder/constant/plugins.js +2 -0
  130. package/lib/cjs/internal/app-binder/constant/plugins.js.map +7 -0
  131. package/lib/cjs/internal/app-binder/device-action/SignTransaction/SignTransactionDeviceAction.js +2 -0
  132. package/lib/cjs/internal/app-binder/device-action/SignTransaction/SignTransactionDeviceAction.js.map +7 -0
  133. package/lib/cjs/internal/app-binder/device-action/SignTransaction/SignTransactionDeviceAction.test.js +2 -0
  134. package/lib/cjs/internal/app-binder/device-action/SignTransaction/SignTransactionDeviceAction.test.js.map +7 -0
  135. package/lib/cjs/internal/app-binder/device-action/SignTypedData/SignTypedDataDeviceAction.js +2 -0
  136. package/lib/cjs/internal/app-binder/device-action/SignTypedData/SignTypedDataDeviceAction.js.map +7 -0
  137. package/lib/cjs/internal/app-binder/device-action/SignTypedData/SignTypedDataDeviceAction.test.js +2 -0
  138. package/lib/cjs/internal/app-binder/device-action/SignTypedData/SignTypedDataDeviceAction.test.js.map +7 -0
  139. package/lib/cjs/internal/app-binder/device-action/__test-utils__/makeInternalApi.js +2 -0
  140. package/lib/cjs/internal/app-binder/device-action/__test-utils__/makeInternalApi.js.map +7 -0
  141. package/lib/cjs/internal/app-binder/device-action/__test-utils__/setupOpenAppDAMock.js +2 -0
  142. package/lib/cjs/internal/app-binder/device-action/__test-utils__/setupOpenAppDAMock.js.map +7 -0
  143. package/lib/cjs/internal/app-binder/device-action/__test-utils__/testDeviceActionStates.js +2 -0
  144. package/lib/cjs/internal/app-binder/device-action/__test-utils__/testDeviceActionStates.js.map +7 -0
  145. package/lib/cjs/internal/app-binder/di/appBinderModule.js +2 -0
  146. package/lib/cjs/internal/app-binder/di/appBinderModule.js.map +7 -0
  147. package/lib/cjs/internal/app-binder/di/appBinderTypes.js +2 -0
  148. package/lib/cjs/internal/app-binder/di/appBinderTypes.js.map +7 -0
  149. package/lib/cjs/internal/app-binder/task/BuildEIP712ContextTask.js +2 -0
  150. package/lib/cjs/internal/app-binder/task/BuildEIP712ContextTask.js.map +7 -0
  151. package/lib/cjs/internal/app-binder/task/BuildEIP712ContextTask.test.js +2 -0
  152. package/lib/cjs/internal/app-binder/task/BuildEIP712ContextTask.test.js.map +7 -0
  153. package/lib/cjs/internal/app-binder/task/BuildTransactionContextTask.js +2 -0
  154. package/lib/cjs/internal/app-binder/task/BuildTransactionContextTask.js.map +7 -0
  155. package/lib/cjs/internal/app-binder/task/BuildTransactionContextTask.test.js +2 -0
  156. package/lib/cjs/internal/app-binder/task/BuildTransactionContextTask.test.js.map +7 -0
  157. package/lib/cjs/internal/app-binder/task/ProvideEIP712ContextTask.js +2 -0
  158. package/lib/cjs/internal/app-binder/task/ProvideEIP712ContextTask.js.map +7 -0
  159. package/lib/cjs/internal/app-binder/task/ProvideEIP712ContextTask.test.js +2 -0
  160. package/lib/cjs/internal/app-binder/task/ProvideEIP712ContextTask.test.js.map +7 -0
  161. package/lib/cjs/internal/app-binder/task/ProvideTransactionContextTask.js +2 -0
  162. package/lib/cjs/internal/app-binder/task/ProvideTransactionContextTask.js.map +7 -0
  163. package/lib/cjs/internal/app-binder/task/ProvideTransactionContextTask.test.js +2 -0
  164. package/lib/cjs/internal/app-binder/task/ProvideTransactionContextTask.test.js.map +7 -0
  165. package/lib/cjs/internal/app-binder/task/ProvideTransactionFieldDescriptionTask.js +2 -0
  166. package/lib/cjs/internal/app-binder/task/ProvideTransactionFieldDescriptionTask.js.map +7 -0
  167. package/lib/cjs/internal/app-binder/task/ProvideTransactionFieldDescriptionTask.test.js +2 -0
  168. package/lib/cjs/internal/app-binder/task/ProvideTransactionFieldDescriptionTask.test.js.map +7 -0
  169. package/lib/cjs/internal/app-binder/task/ProvideTransactionGenericContextTask.js +2 -0
  170. package/lib/cjs/internal/app-binder/task/ProvideTransactionGenericContextTask.js.map +7 -0
  171. package/lib/cjs/internal/app-binder/task/ProvideTransactionGenericContextTask.test.js +2 -0
  172. package/lib/cjs/internal/app-binder/task/ProvideTransactionGenericContextTask.test.js.map +7 -0
  173. package/lib/cjs/internal/app-binder/task/SendCommandInChunksTask.js +2 -0
  174. package/lib/cjs/internal/app-binder/task/SendCommandInChunksTask.js.map +7 -0
  175. package/lib/cjs/internal/app-binder/task/SendEIP712StructImplemTask.js +2 -0
  176. package/lib/cjs/internal/app-binder/task/SendEIP712StructImplemTask.js.map +7 -0
  177. package/lib/cjs/internal/app-binder/task/SendEIP712StructImplemTask.test.js +2 -0
  178. package/lib/cjs/internal/app-binder/task/SendEIP712StructImplemTask.test.js.map +7 -0
  179. package/lib/cjs/internal/app-binder/task/SendPayloadInChunksTask.js +2 -0
  180. package/lib/cjs/internal/app-binder/task/SendPayloadInChunksTask.js.map +7 -0
  181. package/lib/cjs/internal/app-binder/task/SendPayloadInChunksTask.test.js +2 -0
  182. package/lib/cjs/internal/app-binder/task/SendPayloadInChunksTask.test.js.map +7 -0
  183. package/lib/cjs/internal/app-binder/task/SendSignPersonalMessageTask.js +2 -0
  184. package/lib/cjs/internal/app-binder/task/SendSignPersonalMessageTask.js.map +7 -0
  185. package/lib/cjs/internal/app-binder/task/SendSignPersonalMessageTask.test.js +2 -0
  186. package/lib/cjs/internal/app-binder/task/SendSignPersonalMessageTask.test.js.map +7 -0
  187. package/lib/cjs/internal/app-binder/task/SendSignTransactionTask.js +2 -0
  188. package/lib/cjs/internal/app-binder/task/SendSignTransactionTask.js.map +7 -0
  189. package/lib/cjs/internal/app-binder/task/SendSignTransactionTask.test.js +2 -0
  190. package/lib/cjs/internal/app-binder/task/SendSignTransactionTask.test.js.map +7 -0
  191. package/lib/cjs/internal/di.js +2 -0
  192. package/lib/cjs/internal/di.js.map +7 -0
  193. package/lib/cjs/internal/externalTypes.js +2 -0
  194. package/lib/cjs/internal/externalTypes.js.map +7 -0
  195. package/lib/cjs/internal/message/di/messageModule.js +2 -0
  196. package/lib/cjs/internal/message/di/messageModule.js.map +7 -0
  197. package/lib/cjs/internal/message/di/messageModule.test.js +2 -0
  198. package/lib/cjs/internal/message/di/messageModule.test.js.map +7 -0
  199. package/lib/cjs/internal/message/di/messageTypes.js +2 -0
  200. package/lib/cjs/internal/message/di/messageTypes.js.map +7 -0
  201. package/lib/cjs/internal/message/use-case/SignMessageUseCase.js +2 -0
  202. package/lib/cjs/internal/message/use-case/SignMessageUseCase.js.map +7 -0
  203. package/lib/cjs/internal/message/use-case/SignMessageUseCase.test.js +2 -0
  204. package/lib/cjs/internal/message/use-case/SignMessageUseCase.test.js.map +7 -0
  205. package/lib/cjs/internal/shared/utils/PayloadUtils.js +2 -0
  206. package/lib/cjs/internal/shared/utils/PayloadUtils.js.map +7 -0
  207. package/lib/cjs/internal/shared/utils/PayloadUtils.test.js +2 -0
  208. package/lib/cjs/internal/shared/utils/PayloadUtils.test.js.map +7 -0
  209. package/lib/cjs/internal/transaction/di/transactionModule.js +2 -0
  210. package/lib/cjs/internal/transaction/di/transactionModule.js.map +7 -0
  211. package/lib/cjs/internal/transaction/di/transactionModule.test.js +2 -0
  212. package/lib/cjs/internal/transaction/di/transactionModule.test.js.map +7 -0
  213. package/lib/cjs/internal/transaction/di/transactionTypes.js +2 -0
  214. package/lib/cjs/internal/transaction/di/transactionTypes.js.map +7 -0
  215. package/lib/cjs/internal/transaction/service/mapper/EthersRawTransactionMapper.js +2 -0
  216. package/lib/cjs/internal/transaction/service/mapper/EthersRawTransactionMapper.js.map +7 -0
  217. package/lib/cjs/internal/transaction/service/mapper/EthersRawTransactionMapper.test.js +2 -0
  218. package/lib/cjs/internal/transaction/service/mapper/EthersRawTransactionMapper.test.js.map +7 -0
  219. package/lib/cjs/internal/transaction/service/mapper/TransactionMapper.js +2 -0
  220. package/lib/cjs/internal/transaction/service/mapper/TransactionMapper.js.map +7 -0
  221. package/lib/cjs/internal/transaction/service/mapper/TransactionMapperService.js +2 -0
  222. package/lib/cjs/internal/transaction/service/mapper/TransactionMapperService.js.map +7 -0
  223. package/lib/cjs/internal/transaction/service/mapper/TransactionMapperService.test.js +2 -0
  224. package/lib/cjs/internal/transaction/service/mapper/TransactionMapperService.test.js.map +7 -0
  225. package/lib/cjs/internal/transaction/service/mapper/model/TransactionMapperResult.js +2 -0
  226. package/lib/cjs/internal/transaction/service/mapper/model/TransactionMapperResult.js.map +7 -0
  227. package/lib/cjs/internal/transaction/service/parser/TransactionParserService.js +2 -0
  228. package/lib/cjs/internal/transaction/service/parser/TransactionParserService.js.map +7 -0
  229. package/lib/cjs/internal/transaction/service/parser/TransactionParserService.test.js +2 -0
  230. package/lib/cjs/internal/transaction/service/parser/TransactionParserService.test.js.map +7 -0
  231. package/lib/cjs/internal/transaction/use-case/SignTransactionUseCase.js +2 -0
  232. package/lib/cjs/internal/transaction/use-case/SignTransactionUseCase.js.map +7 -0
  233. package/lib/cjs/internal/transaction/use-case/SignTransactionUseCase.test.js +2 -0
  234. package/lib/cjs/internal/transaction/use-case/SignTransactionUseCase.test.js.map +7 -0
  235. package/lib/cjs/internal/typed-data/di/typedDataModule.js +2 -0
  236. package/lib/cjs/internal/typed-data/di/typedDataModule.js.map +7 -0
  237. package/lib/cjs/internal/typed-data/di/typedDataModule.test.js +2 -0
  238. package/lib/cjs/internal/typed-data/di/typedDataModule.test.js.map +7 -0
  239. package/lib/cjs/internal/typed-data/di/typedDataTypes.js +2 -0
  240. package/lib/cjs/internal/typed-data/di/typedDataTypes.js.map +7 -0
  241. package/lib/cjs/internal/typed-data/model/Types.js +2 -0
  242. package/lib/cjs/internal/typed-data/model/Types.js.map +7 -0
  243. package/lib/cjs/internal/typed-data/service/DefaultTypedDataParserService.js +2 -0
  244. package/lib/cjs/internal/typed-data/service/DefaultTypedDataParserService.js.map +7 -0
  245. package/lib/cjs/internal/typed-data/service/TypedDataEncoder.js +2 -0
  246. package/lib/cjs/internal/typed-data/service/TypedDataEncoder.js.map +7 -0
  247. package/lib/cjs/internal/typed-data/service/TypedDataEncoder.test.js +2 -0
  248. package/lib/cjs/internal/typed-data/service/TypedDataEncoder.test.js.map +7 -0
  249. package/lib/cjs/internal/typed-data/service/TypedDataParser.js +2 -0
  250. package/lib/cjs/internal/typed-data/service/TypedDataParser.js.map +7 -0
  251. package/lib/cjs/internal/typed-data/service/TypedDataParser.test.js +2 -0
  252. package/lib/cjs/internal/typed-data/service/TypedDataParser.test.js.map +7 -0
  253. package/lib/cjs/internal/typed-data/service/TypedDataParserService.js +2 -0
  254. package/lib/cjs/internal/typed-data/service/TypedDataParserService.js.map +7 -0
  255. package/lib/cjs/internal/typed-data/use-case/SignTypedDataUseCase.js +2 -0
  256. package/lib/cjs/internal/typed-data/use-case/SignTypedDataUseCase.js.map +7 -0
  257. package/lib/cjs/internal/typed-data/use-case/SignTypedDataUseCase.test.js +2 -0
  258. package/lib/cjs/internal/typed-data/use-case/SignTypedDataUseCase.test.js.map +7 -0
  259. package/lib/cjs/package.json +63 -0
  260. package/lib/esm/api/SignerEth.js +1 -0
  261. package/lib/esm/api/SignerEth.js.map +7 -0
  262. package/lib/esm/api/SignerEthBuilder.js +2 -0
  263. package/lib/esm/api/SignerEthBuilder.js.map +7 -0
  264. package/lib/esm/api/SignerEthBuilder.test.js +2 -0
  265. package/lib/esm/api/SignerEthBuilder.test.js.map +7 -0
  266. package/lib/esm/api/app-binder/GetAddressCommandTypes.js +1 -0
  267. package/lib/esm/api/app-binder/GetAddressCommandTypes.js.map +7 -0
  268. package/lib/esm/api/app-binder/GetAddressDeviceActionTypes.js +1 -0
  269. package/lib/esm/api/app-binder/GetAddressDeviceActionTypes.js.map +7 -0
  270. package/lib/esm/api/app-binder/SignPersonalMessageDeviceActionTypes.js +1 -0
  271. package/lib/esm/api/app-binder/SignPersonalMessageDeviceActionTypes.js.map +7 -0
  272. package/lib/esm/api/app-binder/SignTransactionDeviceActionTypes.js +1 -0
  273. package/lib/esm/api/app-binder/SignTransactionDeviceActionTypes.js.map +7 -0
  274. package/lib/esm/api/app-binder/SignTypedDataDeviceActionTypes.js +1 -0
  275. package/lib/esm/api/app-binder/SignTypedDataDeviceActionTypes.js.map +7 -0
  276. package/lib/esm/api/index.js +2 -0
  277. package/lib/esm/api/index.js.map +7 -0
  278. package/lib/esm/api/model/Address.js +1 -0
  279. package/lib/esm/api/model/Address.js.map +7 -0
  280. package/lib/esm/api/model/AddressOptions.js +1 -0
  281. package/lib/esm/api/model/AddressOptions.js.map +7 -0
  282. package/lib/esm/api/model/Signature.js +1 -0
  283. package/lib/esm/api/model/Signature.js.map +7 -0
  284. package/lib/esm/api/model/TransactionOptions.js +1 -0
  285. package/lib/esm/api/model/TransactionOptions.js.map +7 -0
  286. package/lib/esm/api/model/TransactionType.js +2 -0
  287. package/lib/esm/api/model/TransactionType.js.map +7 -0
  288. package/lib/esm/api/model/TypedData.js +1 -0
  289. package/lib/esm/api/model/TypedData.js.map +7 -0
  290. package/lib/esm/index.js +2 -0
  291. package/lib/esm/index.js.map +7 -0
  292. package/lib/esm/internal/DefaultSignerEth.js +2 -0
  293. package/lib/esm/internal/DefaultSignerEth.js.map +7 -0
  294. package/lib/esm/internal/DefaultSignerEth.test.js +2 -0
  295. package/lib/esm/internal/DefaultSignerEth.test.js.map +7 -0
  296. package/lib/esm/internal/address/di/addressModule.js +2 -0
  297. package/lib/esm/internal/address/di/addressModule.js.map +7 -0
  298. package/lib/esm/internal/address/di/addressModule.test.js +2 -0
  299. package/lib/esm/internal/address/di/addressModule.test.js.map +7 -0
  300. package/lib/esm/internal/address/di/addressTypes.js +2 -0
  301. package/lib/esm/internal/address/di/addressTypes.js.map +7 -0
  302. package/lib/esm/internal/address/use-case/GetAddressUseCase.js +2 -0
  303. package/lib/esm/internal/address/use-case/GetAddressUseCase.js.map +7 -0
  304. package/lib/esm/internal/address/use-case/GetAddressUseCase.test.js +2 -0
  305. package/lib/esm/internal/address/use-case/GetAddressUseCase.test.js.map +7 -0
  306. package/lib/esm/internal/app-binder/EthAppBinder.js +2 -0
  307. package/lib/esm/internal/app-binder/EthAppBinder.js.map +7 -0
  308. package/lib/esm/internal/app-binder/EthAppBinder.test.js +2 -0
  309. package/lib/esm/internal/app-binder/EthAppBinder.test.js.map +7 -0
  310. package/lib/esm/internal/app-binder/command/GetAddressCommand.js +2 -0
  311. package/lib/esm/internal/app-binder/command/GetAddressCommand.js.map +7 -0
  312. package/lib/esm/internal/app-binder/command/GetAddressCommand.test.js +2 -0
  313. package/lib/esm/internal/app-binder/command/GetAddressCommand.test.js.map +7 -0
  314. package/lib/esm/internal/app-binder/command/GetChallengeCommand.js +2 -0
  315. package/lib/esm/internal/app-binder/command/GetChallengeCommand.js.map +7 -0
  316. package/lib/esm/internal/app-binder/command/GetChallengeCommand.test.js +2 -0
  317. package/lib/esm/internal/app-binder/command/GetChallengeCommand.test.js.map +7 -0
  318. package/lib/esm/internal/app-binder/command/ProvideEnumCommand.js +2 -0
  319. package/lib/esm/internal/app-binder/command/ProvideEnumCommand.js.map +7 -0
  320. package/lib/esm/internal/app-binder/command/ProvideEnumCommand.test.js +2 -0
  321. package/lib/esm/internal/app-binder/command/ProvideEnumCommand.test.js.map +7 -0
  322. package/lib/esm/internal/app-binder/command/ProvideNFTInformationCommand.js +2 -0
  323. package/lib/esm/internal/app-binder/command/ProvideNFTInformationCommand.js.map +7 -0
  324. package/lib/esm/internal/app-binder/command/ProvideNFTInformationCommand.test.js +2 -0
  325. package/lib/esm/internal/app-binder/command/ProvideNFTInformationCommand.test.js.map +7 -0
  326. package/lib/esm/internal/app-binder/command/ProvideTokenInformationCommand.js +2 -0
  327. package/lib/esm/internal/app-binder/command/ProvideTokenInformationCommand.js.map +7 -0
  328. package/lib/esm/internal/app-binder/command/ProvideTokenInformationCommand.test.js +2 -0
  329. package/lib/esm/internal/app-binder/command/ProvideTokenInformationCommand.test.js.map +7 -0
  330. package/lib/esm/internal/app-binder/command/ProvideTransactionFieldDescriptionCommand.js +2 -0
  331. package/lib/esm/internal/app-binder/command/ProvideTransactionFieldDescriptionCommand.js.map +7 -0
  332. package/lib/esm/internal/app-binder/command/ProvideTransactionFieldDescriptionCommand.test.js +2 -0
  333. package/lib/esm/internal/app-binder/command/ProvideTransactionFieldDescriptionCommand.test.js.map +7 -0
  334. package/lib/esm/internal/app-binder/command/ProvideTransactionInformationCommand.js +2 -0
  335. package/lib/esm/internal/app-binder/command/ProvideTransactionInformationCommand.js.map +7 -0
  336. package/lib/esm/internal/app-binder/command/ProvideTransactionInformationCommand.test.js +2 -0
  337. package/lib/esm/internal/app-binder/command/ProvideTransactionInformationCommand.test.js.map +7 -0
  338. package/lib/esm/internal/app-binder/command/ProvideTrustedNameCommand.js +2 -0
  339. package/lib/esm/internal/app-binder/command/ProvideTrustedNameCommand.js.map +7 -0
  340. package/lib/esm/internal/app-binder/command/ProvideTrustedNameCommand.test.js +2 -0
  341. package/lib/esm/internal/app-binder/command/ProvideTrustedNameCommand.test.js.map +7 -0
  342. package/lib/esm/internal/app-binder/command/SendEIP712FilteringCommand.js +2 -0
  343. package/lib/esm/internal/app-binder/command/SendEIP712FilteringCommand.js.map +7 -0
  344. package/lib/esm/internal/app-binder/command/SendEIP712FilteringCommand.test.js +2 -0
  345. package/lib/esm/internal/app-binder/command/SendEIP712FilteringCommand.test.js.map +7 -0
  346. package/lib/esm/internal/app-binder/command/SendEIP712StructDefinitionCommand.js +2 -0
  347. package/lib/esm/internal/app-binder/command/SendEIP712StructDefinitionCommand.js.map +7 -0
  348. package/lib/esm/internal/app-binder/command/SendEIP712StructDefinitionCommand.test.js +2 -0
  349. package/lib/esm/internal/app-binder/command/SendEIP712StructDefinitionCommand.test.js.map +7 -0
  350. package/lib/esm/internal/app-binder/command/SendEIP712StructImplemCommand.js +2 -0
  351. package/lib/esm/internal/app-binder/command/SendEIP712StructImplemCommand.js.map +7 -0
  352. package/lib/esm/internal/app-binder/command/SendEIP712StructImplemCommand.test.js +2 -0
  353. package/lib/esm/internal/app-binder/command/SendEIP712StructImplemCommand.test.js.map +7 -0
  354. package/lib/esm/internal/app-binder/command/SetExternalPluginCommand.js +2 -0
  355. package/lib/esm/internal/app-binder/command/SetExternalPluginCommand.js.map +7 -0
  356. package/lib/esm/internal/app-binder/command/SetExternalPluginCommand.test.js +7 -0
  357. package/lib/esm/internal/app-binder/command/SetExternalPluginCommand.test.js.map +7 -0
  358. package/lib/esm/internal/app-binder/command/SetPluginCommand.js +2 -0
  359. package/lib/esm/internal/app-binder/command/SetPluginCommand.js.map +7 -0
  360. package/lib/esm/internal/app-binder/command/SetPluginCommand.test.js +6 -0
  361. package/lib/esm/internal/app-binder/command/SetPluginCommand.test.js.map +7 -0
  362. package/lib/esm/internal/app-binder/command/SignEIP712Command.js +2 -0
  363. package/lib/esm/internal/app-binder/command/SignEIP712Command.js.map +7 -0
  364. package/lib/esm/internal/app-binder/command/SignEIP712Command.test.js +2 -0
  365. package/lib/esm/internal/app-binder/command/SignEIP712Command.test.js.map +7 -0
  366. package/lib/esm/internal/app-binder/command/SignPersonalMessageCommand.js +2 -0
  367. package/lib/esm/internal/app-binder/command/SignPersonalMessageCommand.js.map +7 -0
  368. package/lib/esm/internal/app-binder/command/SignPersonalMessageCommand.test.js +2 -0
  369. package/lib/esm/internal/app-binder/command/SignPersonalMessageCommand.test.js.map +7 -0
  370. package/lib/esm/internal/app-binder/command/SignTransactionCommand.js +2 -0
  371. package/lib/esm/internal/app-binder/command/SignTransactionCommand.js.map +7 -0
  372. package/lib/esm/internal/app-binder/command/SignTransactionCommand.test.js +2 -0
  373. package/lib/esm/internal/app-binder/command/SignTransactionCommand.test.js.map +7 -0
  374. package/lib/esm/internal/app-binder/command/StartTransactionCommand.js +2 -0
  375. package/lib/esm/internal/app-binder/command/StartTransactionCommand.js.map +7 -0
  376. package/lib/esm/internal/app-binder/command/StartTransactionCommand.test.js +2 -0
  377. package/lib/esm/internal/app-binder/command/StartTransactionCommand.test.js.map +7 -0
  378. package/lib/esm/internal/app-binder/command/StoreTransactionCommand.js +2 -0
  379. package/lib/esm/internal/app-binder/command/StoreTransactionCommand.js.map +7 -0
  380. package/lib/esm/internal/app-binder/command/StoreTransactionCommand.test.js +2 -0
  381. package/lib/esm/internal/app-binder/command/StoreTransactionCommand.test.js.map +7 -0
  382. package/lib/esm/internal/app-binder/command/utils/ethAppErrors.js +2 -0
  383. package/lib/esm/internal/app-binder/command/utils/ethAppErrors.js.map +7 -0
  384. package/lib/esm/internal/app-binder/command/utils/ethAppErrors.test.js +2 -0
  385. package/lib/esm/internal/app-binder/command/utils/ethAppErrors.test.js.map +7 -0
  386. package/lib/esm/internal/app-binder/constant/plugins.js +2 -0
  387. package/lib/esm/internal/app-binder/constant/plugins.js.map +7 -0
  388. package/lib/esm/internal/app-binder/device-action/SignTransaction/SignTransactionDeviceAction.js +2 -0
  389. package/lib/esm/internal/app-binder/device-action/SignTransaction/SignTransactionDeviceAction.js.map +7 -0
  390. package/lib/esm/internal/app-binder/device-action/SignTransaction/SignTransactionDeviceAction.test.js +2 -0
  391. package/lib/esm/internal/app-binder/device-action/SignTransaction/SignTransactionDeviceAction.test.js.map +7 -0
  392. package/lib/esm/internal/app-binder/device-action/SignTypedData/SignTypedDataDeviceAction.js +2 -0
  393. package/lib/esm/internal/app-binder/device-action/SignTypedData/SignTypedDataDeviceAction.js.map +7 -0
  394. package/lib/esm/internal/app-binder/device-action/SignTypedData/SignTypedDataDeviceAction.test.js +2 -0
  395. package/lib/esm/internal/app-binder/device-action/SignTypedData/SignTypedDataDeviceAction.test.js.map +7 -0
  396. package/lib/esm/internal/app-binder/device-action/__test-utils__/makeInternalApi.js +2 -0
  397. package/lib/esm/internal/app-binder/device-action/__test-utils__/makeInternalApi.js.map +7 -0
  398. package/lib/esm/internal/app-binder/device-action/__test-utils__/setupOpenAppDAMock.js +2 -0
  399. package/lib/esm/internal/app-binder/device-action/__test-utils__/setupOpenAppDAMock.js.map +7 -0
  400. package/lib/esm/internal/app-binder/device-action/__test-utils__/testDeviceActionStates.js +2 -0
  401. package/lib/esm/internal/app-binder/device-action/__test-utils__/testDeviceActionStates.js.map +7 -0
  402. package/lib/esm/internal/app-binder/di/appBinderModule.js +2 -0
  403. package/lib/esm/internal/app-binder/di/appBinderModule.js.map +7 -0
  404. package/lib/esm/internal/app-binder/di/appBinderTypes.js +2 -0
  405. package/lib/esm/internal/app-binder/di/appBinderTypes.js.map +7 -0
  406. package/lib/esm/internal/app-binder/task/BuildEIP712ContextTask.js +2 -0
  407. package/lib/esm/internal/app-binder/task/BuildEIP712ContextTask.js.map +7 -0
  408. package/lib/esm/internal/app-binder/task/BuildEIP712ContextTask.test.js +2 -0
  409. package/lib/esm/internal/app-binder/task/BuildEIP712ContextTask.test.js.map +7 -0
  410. package/lib/esm/internal/app-binder/task/BuildTransactionContextTask.js +2 -0
  411. package/lib/esm/internal/app-binder/task/BuildTransactionContextTask.js.map +7 -0
  412. package/lib/esm/internal/app-binder/task/BuildTransactionContextTask.test.js +2 -0
  413. package/lib/esm/internal/app-binder/task/BuildTransactionContextTask.test.js.map +7 -0
  414. package/lib/esm/internal/app-binder/task/ProvideEIP712ContextTask.js +2 -0
  415. package/lib/esm/internal/app-binder/task/ProvideEIP712ContextTask.js.map +7 -0
  416. package/lib/esm/internal/app-binder/task/ProvideEIP712ContextTask.test.js +2 -0
  417. package/lib/esm/internal/app-binder/task/ProvideEIP712ContextTask.test.js.map +7 -0
  418. package/lib/esm/internal/app-binder/task/ProvideTransactionContextTask.js +2 -0
  419. package/lib/esm/internal/app-binder/task/ProvideTransactionContextTask.js.map +7 -0
  420. package/lib/esm/internal/app-binder/task/ProvideTransactionContextTask.test.js +2 -0
  421. package/lib/esm/internal/app-binder/task/ProvideTransactionContextTask.test.js.map +7 -0
  422. package/lib/esm/internal/app-binder/task/ProvideTransactionFieldDescriptionTask.js +2 -0
  423. package/lib/esm/internal/app-binder/task/ProvideTransactionFieldDescriptionTask.js.map +7 -0
  424. package/lib/esm/internal/app-binder/task/ProvideTransactionFieldDescriptionTask.test.js +2 -0
  425. package/lib/esm/internal/app-binder/task/ProvideTransactionFieldDescriptionTask.test.js.map +7 -0
  426. package/lib/esm/internal/app-binder/task/ProvideTransactionGenericContextTask.js +2 -0
  427. package/lib/esm/internal/app-binder/task/ProvideTransactionGenericContextTask.js.map +7 -0
  428. package/lib/esm/internal/app-binder/task/ProvideTransactionGenericContextTask.test.js +2 -0
  429. package/lib/esm/internal/app-binder/task/ProvideTransactionGenericContextTask.test.js.map +7 -0
  430. package/lib/esm/internal/app-binder/task/SendCommandInChunksTask.js +2 -0
  431. package/lib/esm/internal/app-binder/task/SendCommandInChunksTask.js.map +7 -0
  432. package/lib/esm/internal/app-binder/task/SendEIP712StructImplemTask.js +2 -0
  433. package/lib/esm/internal/app-binder/task/SendEIP712StructImplemTask.js.map +7 -0
  434. package/lib/esm/internal/app-binder/task/SendEIP712StructImplemTask.test.js +2 -0
  435. package/lib/esm/internal/app-binder/task/SendEIP712StructImplemTask.test.js.map +7 -0
  436. package/lib/esm/internal/app-binder/task/SendPayloadInChunksTask.js +2 -0
  437. package/lib/esm/internal/app-binder/task/SendPayloadInChunksTask.js.map +7 -0
  438. package/lib/esm/internal/app-binder/task/SendPayloadInChunksTask.test.js +2 -0
  439. package/lib/esm/internal/app-binder/task/SendPayloadInChunksTask.test.js.map +7 -0
  440. package/lib/esm/internal/app-binder/task/SendSignPersonalMessageTask.js +2 -0
  441. package/lib/esm/internal/app-binder/task/SendSignPersonalMessageTask.js.map +7 -0
  442. package/lib/esm/internal/app-binder/task/SendSignPersonalMessageTask.test.js +2 -0
  443. package/lib/esm/internal/app-binder/task/SendSignPersonalMessageTask.test.js.map +7 -0
  444. package/lib/esm/internal/app-binder/task/SendSignTransactionTask.js +2 -0
  445. package/lib/esm/internal/app-binder/task/SendSignTransactionTask.js.map +7 -0
  446. package/lib/esm/internal/app-binder/task/SendSignTransactionTask.test.js +2 -0
  447. package/lib/esm/internal/app-binder/task/SendSignTransactionTask.test.js.map +7 -0
  448. package/lib/esm/internal/di.js +2 -0
  449. package/lib/esm/internal/di.js.map +7 -0
  450. package/lib/esm/internal/externalTypes.js +2 -0
  451. package/lib/esm/internal/externalTypes.js.map +7 -0
  452. package/lib/esm/internal/message/di/messageModule.js +2 -0
  453. package/lib/esm/internal/message/di/messageModule.js.map +7 -0
  454. package/lib/esm/internal/message/di/messageModule.test.js +2 -0
  455. package/lib/esm/internal/message/di/messageModule.test.js.map +7 -0
  456. package/lib/esm/internal/message/di/messageTypes.js +2 -0
  457. package/lib/esm/internal/message/di/messageTypes.js.map +7 -0
  458. package/lib/esm/internal/message/use-case/SignMessageUseCase.js +2 -0
  459. package/lib/esm/internal/message/use-case/SignMessageUseCase.js.map +7 -0
  460. package/lib/esm/internal/message/use-case/SignMessageUseCase.test.js +2 -0
  461. package/lib/esm/internal/message/use-case/SignMessageUseCase.test.js.map +7 -0
  462. package/lib/esm/internal/shared/utils/PayloadUtils.js +2 -0
  463. package/lib/esm/internal/shared/utils/PayloadUtils.js.map +7 -0
  464. package/lib/esm/internal/shared/utils/PayloadUtils.test.js +2 -0
  465. package/lib/esm/internal/shared/utils/PayloadUtils.test.js.map +7 -0
  466. package/lib/esm/internal/transaction/di/transactionModule.js +2 -0
  467. package/lib/esm/internal/transaction/di/transactionModule.js.map +7 -0
  468. package/lib/esm/internal/transaction/di/transactionModule.test.js +2 -0
  469. package/lib/esm/internal/transaction/di/transactionModule.test.js.map +7 -0
  470. package/lib/esm/internal/transaction/di/transactionTypes.js +2 -0
  471. package/lib/esm/internal/transaction/di/transactionTypes.js.map +7 -0
  472. package/lib/esm/internal/transaction/service/mapper/EthersRawTransactionMapper.js +2 -0
  473. package/lib/esm/internal/transaction/service/mapper/EthersRawTransactionMapper.js.map +7 -0
  474. package/lib/esm/internal/transaction/service/mapper/EthersRawTransactionMapper.test.js +2 -0
  475. package/lib/esm/internal/transaction/service/mapper/EthersRawTransactionMapper.test.js.map +7 -0
  476. package/lib/esm/internal/transaction/service/mapper/TransactionMapper.js +1 -0
  477. package/lib/esm/internal/transaction/service/mapper/TransactionMapper.js.map +7 -0
  478. package/lib/esm/internal/transaction/service/mapper/TransactionMapperService.js +2 -0
  479. package/lib/esm/internal/transaction/service/mapper/TransactionMapperService.js.map +7 -0
  480. package/lib/esm/internal/transaction/service/mapper/TransactionMapperService.test.js +2 -0
  481. package/lib/esm/internal/transaction/service/mapper/TransactionMapperService.test.js.map +7 -0
  482. package/lib/esm/internal/transaction/service/mapper/model/TransactionMapperResult.js +1 -0
  483. package/lib/esm/internal/transaction/service/mapper/model/TransactionMapperResult.js.map +7 -0
  484. package/lib/esm/internal/transaction/service/parser/TransactionParserService.js +2 -0
  485. package/lib/esm/internal/transaction/service/parser/TransactionParserService.js.map +7 -0
  486. package/lib/esm/internal/transaction/service/parser/TransactionParserService.test.js +2 -0
  487. package/lib/esm/internal/transaction/service/parser/TransactionParserService.test.js.map +7 -0
  488. package/lib/esm/internal/transaction/use-case/SignTransactionUseCase.js +2 -0
  489. package/lib/esm/internal/transaction/use-case/SignTransactionUseCase.js.map +7 -0
  490. package/lib/esm/internal/transaction/use-case/SignTransactionUseCase.test.js +2 -0
  491. package/lib/esm/internal/transaction/use-case/SignTransactionUseCase.test.js.map +7 -0
  492. package/lib/esm/internal/typed-data/di/typedDataModule.js +2 -0
  493. package/lib/esm/internal/typed-data/di/typedDataModule.js.map +7 -0
  494. package/lib/esm/internal/typed-data/di/typedDataModule.test.js +2 -0
  495. package/lib/esm/internal/typed-data/di/typedDataModule.test.js.map +7 -0
  496. package/lib/esm/internal/typed-data/di/typedDataTypes.js +2 -0
  497. package/lib/esm/internal/typed-data/di/typedDataTypes.js.map +7 -0
  498. package/lib/esm/internal/typed-data/model/Types.js +2 -0
  499. package/lib/esm/internal/typed-data/model/Types.js.map +7 -0
  500. package/lib/esm/internal/typed-data/service/DefaultTypedDataParserService.js +2 -0
  501. package/lib/esm/internal/typed-data/service/DefaultTypedDataParserService.js.map +7 -0
  502. package/lib/esm/internal/typed-data/service/TypedDataEncoder.js +2 -0
  503. package/lib/esm/internal/typed-data/service/TypedDataEncoder.js.map +7 -0
  504. package/lib/esm/internal/typed-data/service/TypedDataEncoder.test.js +2 -0
  505. package/lib/esm/internal/typed-data/service/TypedDataEncoder.test.js.map +7 -0
  506. package/lib/esm/internal/typed-data/service/TypedDataParser.js +2 -0
  507. package/lib/esm/internal/typed-data/service/TypedDataParser.js.map +7 -0
  508. package/lib/esm/internal/typed-data/service/TypedDataParser.test.js +2 -0
  509. package/lib/esm/internal/typed-data/service/TypedDataParser.test.js.map +7 -0
  510. package/lib/esm/internal/typed-data/service/TypedDataParserService.js +1 -0
  511. package/lib/esm/internal/typed-data/service/TypedDataParserService.js.map +7 -0
  512. package/lib/esm/internal/typed-data/use-case/SignTypedDataUseCase.js +2 -0
  513. package/lib/esm/internal/typed-data/use-case/SignTypedDataUseCase.js.map +7 -0
  514. package/lib/esm/internal/typed-data/use-case/SignTypedDataUseCase.test.js +2 -0
  515. package/lib/esm/internal/typed-data/use-case/SignTypedDataUseCase.test.js.map +7 -0
  516. package/lib/esm/package.json +63 -0
  517. package/lib/types/api/SignerEth.d.ts +14 -0
  518. package/lib/types/api/SignerEth.d.ts.map +1 -0
  519. package/lib/types/api/SignerEthBuilder.d.ts +37 -0
  520. package/lib/types/api/SignerEthBuilder.d.ts.map +1 -0
  521. package/lib/types/api/SignerEthBuilder.test.d.ts +2 -0
  522. package/lib/types/api/SignerEthBuilder.test.d.ts.map +1 -0
  523. package/lib/types/api/app-binder/GetAddressCommandTypes.d.ts +11 -0
  524. package/lib/types/api/app-binder/GetAddressCommandTypes.d.ts.map +1 -0
  525. package/lib/types/api/app-binder/GetAddressDeviceActionTypes.d.ts +10 -0
  526. package/lib/types/api/app-binder/GetAddressDeviceActionTypes.d.ts.map +1 -0
  527. package/lib/types/api/app-binder/SignPersonalMessageDeviceActionTypes.d.ts +12 -0
  528. package/lib/types/api/app-binder/SignPersonalMessageDeviceActionTypes.d.ts.map +1 -0
  529. package/lib/types/api/app-binder/SignTransactionDeviceActionTypes.d.ts +37 -0
  530. package/lib/types/api/app-binder/SignTransactionDeviceActionTypes.d.ts.map +1 -0
  531. package/lib/types/api/app-binder/SignTypedDataDeviceActionTypes.d.ts +28 -0
  532. package/lib/types/api/app-binder/SignTypedDataDeviceActionTypes.d.ts.map +1 -0
  533. package/lib/types/api/index.d.ts +13 -0
  534. package/lib/types/api/index.d.ts.map +1 -0
  535. package/lib/types/api/model/Address.d.ts +7 -0
  536. package/lib/types/api/model/Address.d.ts.map +1 -0
  537. package/lib/types/api/model/AddressOptions.d.ts +5 -0
  538. package/lib/types/api/model/AddressOptions.d.ts.map +1 -0
  539. package/lib/types/api/model/Signature.d.ts +7 -0
  540. package/lib/types/api/model/Signature.d.ts.map +1 -0
  541. package/lib/types/api/model/TransactionOptions.d.ts +4 -0
  542. package/lib/types/api/model/TransactionOptions.d.ts.map +1 -0
  543. package/lib/types/api/model/TransactionType.d.ts +11 -0
  544. package/lib/types/api/model/TransactionType.d.ts.map +1 -0
  545. package/lib/types/api/model/TypedData.d.ts +18 -0
  546. package/lib/types/api/model/TypedData.d.ts.map +1 -0
  547. package/lib/types/index.d.ts +3 -0
  548. package/lib/types/index.d.ts.map +1 -0
  549. package/lib/types/internal/DefaultSignerEth.d.ts +25 -0
  550. package/lib/types/internal/DefaultSignerEth.d.ts.map +1 -0
  551. package/lib/types/internal/DefaultSignerEth.test.d.ts +2 -0
  552. package/lib/types/internal/DefaultSignerEth.test.d.ts.map +1 -0
  553. package/lib/types/internal/address/di/addressModule.d.ts +3 -0
  554. package/lib/types/internal/address/di/addressModule.d.ts.map +1 -0
  555. package/lib/types/internal/address/di/addressModule.test.d.ts +2 -0
  556. package/lib/types/internal/address/di/addressModule.test.d.ts.map +1 -0
  557. package/lib/types/internal/address/di/addressTypes.d.ts +4 -0
  558. package/lib/types/internal/address/di/addressTypes.d.ts.map +1 -0
  559. package/lib/types/internal/address/use-case/GetAddressUseCase.d.ts +9 -0
  560. package/lib/types/internal/address/use-case/GetAddressUseCase.d.ts.map +1 -0
  561. package/lib/types/internal/address/use-case/GetAddressUseCase.test.d.ts +2 -0
  562. package/lib/types/internal/address/use-case/GetAddressUseCase.test.d.ts.map +1 -0
  563. package/lib/types/internal/app-binder/EthAppBinder.d.ts +39 -0
  564. package/lib/types/internal/app-binder/EthAppBinder.d.ts.map +1 -0
  565. package/lib/types/internal/app-binder/EthAppBinder.test.d.ts +2 -0
  566. package/lib/types/internal/app-binder/EthAppBinder.test.d.ts.map +1 -0
  567. package/lib/types/internal/app-binder/command/GetAddressCommand.d.ts +11 -0
  568. package/lib/types/internal/app-binder/command/GetAddressCommand.d.ts.map +1 -0
  569. package/lib/types/internal/app-binder/command/GetAddressCommand.test.d.ts +2 -0
  570. package/lib/types/internal/app-binder/command/GetAddressCommand.test.d.ts.map +1 -0
  571. package/lib/types/internal/app-binder/command/GetChallengeCommand.d.ts +12 -0
  572. package/lib/types/internal/app-binder/command/GetChallengeCommand.d.ts.map +1 -0
  573. package/lib/types/internal/app-binder/command/GetChallengeCommand.test.d.ts +2 -0
  574. package/lib/types/internal/app-binder/command/GetChallengeCommand.test.d.ts.map +1 -0
  575. package/lib/types/internal/app-binder/command/ProvideEnumCommand.d.ts +20 -0
  576. package/lib/types/internal/app-binder/command/ProvideEnumCommand.d.ts.map +1 -0
  577. package/lib/types/internal/app-binder/command/ProvideEnumCommand.test.d.ts +2 -0
  578. package/lib/types/internal/app-binder/command/ProvideEnumCommand.test.d.ts.map +1 -0
  579. package/lib/types/internal/app-binder/command/ProvideNFTInformationCommand.d.ts +16 -0
  580. package/lib/types/internal/app-binder/command/ProvideNFTInformationCommand.d.ts.map +1 -0
  581. package/lib/types/internal/app-binder/command/ProvideNFTInformationCommand.test.d.ts +2 -0
  582. package/lib/types/internal/app-binder/command/ProvideNFTInformationCommand.test.d.ts.map +1 -0
  583. package/lib/types/internal/app-binder/command/ProvideTokenInformationCommand.d.ts +16 -0
  584. package/lib/types/internal/app-binder/command/ProvideTokenInformationCommand.d.ts.map +1 -0
  585. package/lib/types/internal/app-binder/command/ProvideTokenInformationCommand.test.d.ts +2 -0
  586. package/lib/types/internal/app-binder/command/ProvideTokenInformationCommand.test.d.ts.map +1 -0
  587. package/lib/types/internal/app-binder/command/ProvideTransactionFieldDescriptionCommand.d.ts +20 -0
  588. package/lib/types/internal/app-binder/command/ProvideTransactionFieldDescriptionCommand.d.ts.map +1 -0
  589. package/lib/types/internal/app-binder/command/ProvideTransactionFieldDescriptionCommand.test.d.ts +2 -0
  590. package/lib/types/internal/app-binder/command/ProvideTransactionFieldDescriptionCommand.test.d.ts.map +1 -0
  591. package/lib/types/internal/app-binder/command/ProvideTransactionInformationCommand.d.ts +20 -0
  592. package/lib/types/internal/app-binder/command/ProvideTransactionInformationCommand.d.ts.map +1 -0
  593. package/lib/types/internal/app-binder/command/ProvideTransactionInformationCommand.test.d.ts +2 -0
  594. package/lib/types/internal/app-binder/command/ProvideTransactionInformationCommand.test.d.ts.map +1 -0
  595. package/lib/types/internal/app-binder/command/ProvideTrustedNameCommand.d.ts +21 -0
  596. package/lib/types/internal/app-binder/command/ProvideTrustedNameCommand.d.ts.map +1 -0
  597. package/lib/types/internal/app-binder/command/ProvideTrustedNameCommand.test.d.ts +2 -0
  598. package/lib/types/internal/app-binder/command/ProvideTrustedNameCommand.test.d.ts.map +1 -0
  599. package/lib/types/internal/app-binder/command/SendEIP712FilteringCommand.d.ts +51 -0
  600. package/lib/types/internal/app-binder/command/SendEIP712FilteringCommand.d.ts.map +1 -0
  601. package/lib/types/internal/app-binder/command/SendEIP712FilteringCommand.test.d.ts +2 -0
  602. package/lib/types/internal/app-binder/command/SendEIP712FilteringCommand.test.d.ts.map +1 -0
  603. package/lib/types/internal/app-binder/command/SendEIP712StructDefinitionCommand.d.ts +27 -0
  604. package/lib/types/internal/app-binder/command/SendEIP712StructDefinitionCommand.d.ts.map +1 -0
  605. package/lib/types/internal/app-binder/command/SendEIP712StructDefinitionCommand.test.d.ts +2 -0
  606. package/lib/types/internal/app-binder/command/SendEIP712StructDefinitionCommand.test.d.ts.map +1 -0
  607. package/lib/types/internal/app-binder/command/SendEIP712StructImplemCommand.d.ts +32 -0
  608. package/lib/types/internal/app-binder/command/SendEIP712StructImplemCommand.d.ts.map +1 -0
  609. package/lib/types/internal/app-binder/command/SendEIP712StructImplemCommand.test.d.ts +2 -0
  610. package/lib/types/internal/app-binder/command/SendEIP712StructImplemCommand.test.d.ts.map +1 -0
  611. package/lib/types/internal/app-binder/command/SetExternalPluginCommand.d.ts +15 -0
  612. package/lib/types/internal/app-binder/command/SetExternalPluginCommand.d.ts.map +1 -0
  613. package/lib/types/internal/app-binder/command/SetExternalPluginCommand.test.d.ts +2 -0
  614. package/lib/types/internal/app-binder/command/SetExternalPluginCommand.test.d.ts.map +1 -0
  615. package/lib/types/internal/app-binder/command/SetPluginCommand.d.ts +16 -0
  616. package/lib/types/internal/app-binder/command/SetPluginCommand.d.ts.map +1 -0
  617. package/lib/types/internal/app-binder/command/SetPluginCommand.test.d.ts +2 -0
  618. package/lib/types/internal/app-binder/command/SetPluginCommand.test.d.ts.map +1 -0
  619. package/lib/types/internal/app-binder/command/SignEIP712Command.d.ts +27 -0
  620. package/lib/types/internal/app-binder/command/SignEIP712Command.d.ts.map +1 -0
  621. package/lib/types/internal/app-binder/command/SignEIP712Command.test.d.ts +2 -0
  622. package/lib/types/internal/app-binder/command/SignEIP712Command.test.d.ts.map +1 -0
  623. package/lib/types/internal/app-binder/command/SignPersonalMessageCommand.d.ts +23 -0
  624. package/lib/types/internal/app-binder/command/SignPersonalMessageCommand.d.ts.map +1 -0
  625. package/lib/types/internal/app-binder/command/SignPersonalMessageCommand.test.d.ts +2 -0
  626. package/lib/types/internal/app-binder/command/SignPersonalMessageCommand.test.d.ts.map +1 -0
  627. package/lib/types/internal/app-binder/command/SignTransactionCommand.d.ts +26 -0
  628. package/lib/types/internal/app-binder/command/SignTransactionCommand.d.ts.map +1 -0
  629. package/lib/types/internal/app-binder/command/SignTransactionCommand.test.d.ts +2 -0
  630. package/lib/types/internal/app-binder/command/SignTransactionCommand.test.d.ts.map +1 -0
  631. package/lib/types/internal/app-binder/command/StartTransactionCommand.d.ts +14 -0
  632. package/lib/types/internal/app-binder/command/StartTransactionCommand.d.ts.map +1 -0
  633. package/lib/types/internal/app-binder/command/StartTransactionCommand.test.d.ts +2 -0
  634. package/lib/types/internal/app-binder/command/StartTransactionCommand.test.d.ts.map +1 -0
  635. package/lib/types/internal/app-binder/command/StoreTransactionCommand.d.ts +25 -0
  636. package/lib/types/internal/app-binder/command/StoreTransactionCommand.d.ts.map +1 -0
  637. package/lib/types/internal/app-binder/command/StoreTransactionCommand.test.d.ts +2 -0
  638. package/lib/types/internal/app-binder/command/StoreTransactionCommand.test.d.ts.map +1 -0
  639. package/lib/types/internal/app-binder/command/utils/ethAppErrors.d.ts +8 -0
  640. package/lib/types/internal/app-binder/command/utils/ethAppErrors.d.ts.map +1 -0
  641. package/lib/types/internal/app-binder/command/utils/ethAppErrors.test.d.ts +2 -0
  642. package/lib/types/internal/app-binder/command/utils/ethAppErrors.test.d.ts.map +1 -0
  643. package/lib/types/internal/app-binder/constant/plugins.d.ts +2 -0
  644. package/lib/types/internal/app-binder/constant/plugins.d.ts.map +1 -0
  645. package/lib/types/internal/app-binder/device-action/SignTransaction/SignTransactionDeviceAction.d.ts +54 -0
  646. package/lib/types/internal/app-binder/device-action/SignTransaction/SignTransactionDeviceAction.d.ts.map +1 -0
  647. package/lib/types/internal/app-binder/device-action/SignTransaction/SignTransactionDeviceAction.test.d.ts +2 -0
  648. package/lib/types/internal/app-binder/device-action/SignTransaction/SignTransactionDeviceAction.test.d.ts.map +1 -0
  649. package/lib/types/internal/app-binder/device-action/SignTypedData/SignTypedDataDeviceAction.d.ts +39 -0
  650. package/lib/types/internal/app-binder/device-action/SignTypedData/SignTypedDataDeviceAction.d.ts.map +1 -0
  651. package/lib/types/internal/app-binder/device-action/SignTypedData/SignTypedDataDeviceAction.test.d.ts +2 -0
  652. package/lib/types/internal/app-binder/device-action/SignTypedData/SignTypedDataDeviceAction.test.d.ts.map +1 -0
  653. package/lib/types/internal/app-binder/device-action/__test-utils__/makeInternalApi.d.ts +4 -0
  654. package/lib/types/internal/app-binder/device-action/__test-utils__/makeInternalApi.d.ts.map +1 -0
  655. package/lib/types/internal/app-binder/device-action/__test-utils__/setupOpenAppDAMock.d.ts +2 -0
  656. package/lib/types/internal/app-binder/device-action/__test-utils__/setupOpenAppDAMock.d.ts.map +1 -0
  657. package/lib/types/internal/app-binder/device-action/__test-utils__/testDeviceActionStates.d.ts +15 -0
  658. package/lib/types/internal/app-binder/device-action/__test-utils__/testDeviceActionStates.d.ts.map +1 -0
  659. package/lib/types/internal/app-binder/di/appBinderModule.d.ts +3 -0
  660. package/lib/types/internal/app-binder/di/appBinderModule.d.ts.map +1 -0
  661. package/lib/types/internal/app-binder/di/appBinderTypes.d.ts +4 -0
  662. package/lib/types/internal/app-binder/di/appBinderTypes.d.ts.map +1 -0
  663. package/lib/types/internal/app-binder/task/BuildEIP712ContextTask.d.ts +16 -0
  664. package/lib/types/internal/app-binder/task/BuildEIP712ContextTask.d.ts.map +1 -0
  665. package/lib/types/internal/app-binder/task/BuildEIP712ContextTask.test.d.ts +2 -0
  666. package/lib/types/internal/app-binder/task/BuildEIP712ContextTask.test.d.ts.map +1 -0
  667. package/lib/types/internal/app-binder/task/BuildTransactionContextTask.d.ts +27 -0
  668. package/lib/types/internal/app-binder/task/BuildTransactionContextTask.d.ts.map +1 -0
  669. package/lib/types/internal/app-binder/task/BuildTransactionContextTask.test.d.ts +2 -0
  670. package/lib/types/internal/app-binder/task/BuildTransactionContextTask.test.d.ts.map +1 -0
  671. package/lib/types/internal/app-binder/task/ProvideEIP712ContextTask.d.ts +35 -0
  672. package/lib/types/internal/app-binder/task/ProvideEIP712ContextTask.d.ts.map +1 -0
  673. package/lib/types/internal/app-binder/task/ProvideEIP712ContextTask.test.d.ts +2 -0
  674. package/lib/types/internal/app-binder/task/ProvideEIP712ContextTask.test.d.ts.map +1 -0
  675. package/lib/types/internal/app-binder/task/ProvideTransactionContextTask.d.ts +37 -0
  676. package/lib/types/internal/app-binder/task/ProvideTransactionContextTask.d.ts.map +1 -0
  677. package/lib/types/internal/app-binder/task/ProvideTransactionContextTask.test.d.ts +2 -0
  678. package/lib/types/internal/app-binder/task/ProvideTransactionContextTask.test.d.ts.map +1 -0
  679. package/lib/types/internal/app-binder/task/ProvideTransactionFieldDescriptionTask.d.ts +80 -0
  680. package/lib/types/internal/app-binder/task/ProvideTransactionFieldDescriptionTask.d.ts.map +1 -0
  681. package/lib/types/internal/app-binder/task/ProvideTransactionFieldDescriptionTask.test.d.ts +2 -0
  682. package/lib/types/internal/app-binder/task/ProvideTransactionFieldDescriptionTask.test.d.ts.map +1 -0
  683. package/lib/types/internal/app-binder/task/ProvideTransactionGenericContextTask.d.ts +27 -0
  684. package/lib/types/internal/app-binder/task/ProvideTransactionGenericContextTask.d.ts.map +1 -0
  685. package/lib/types/internal/app-binder/task/ProvideTransactionGenericContextTask.test.d.ts +2 -0
  686. package/lib/types/internal/app-binder/task/ProvideTransactionGenericContextTask.test.d.ts.map +1 -0
  687. package/lib/types/internal/app-binder/task/SendCommandInChunksTask.d.ts +17 -0
  688. package/lib/types/internal/app-binder/task/SendCommandInChunksTask.d.ts.map +1 -0
  689. package/lib/types/internal/app-binder/task/SendEIP712StructImplemTask.d.ts +20 -0
  690. package/lib/types/internal/app-binder/task/SendEIP712StructImplemTask.d.ts.map +1 -0
  691. package/lib/types/internal/app-binder/task/SendEIP712StructImplemTask.test.d.ts +2 -0
  692. package/lib/types/internal/app-binder/task/SendEIP712StructImplemTask.test.d.ts.map +1 -0
  693. package/lib/types/internal/app-binder/task/SendPayloadInChunksTask.d.ts +15 -0
  694. package/lib/types/internal/app-binder/task/SendPayloadInChunksTask.d.ts.map +1 -0
  695. package/lib/types/internal/app-binder/task/SendPayloadInChunksTask.test.d.ts +2 -0
  696. package/lib/types/internal/app-binder/task/SendPayloadInChunksTask.test.d.ts.map +1 -0
  697. package/lib/types/internal/app-binder/task/SendSignPersonalMessageTask.d.ts +15 -0
  698. package/lib/types/internal/app-binder/task/SendSignPersonalMessageTask.d.ts.map +1 -0
  699. package/lib/types/internal/app-binder/task/SendSignPersonalMessageTask.test.d.ts +2 -0
  700. package/lib/types/internal/app-binder/task/SendSignPersonalMessageTask.test.d.ts.map +1 -0
  701. package/lib/types/internal/app-binder/task/SendSignTransactionTask.d.ts +21 -0
  702. package/lib/types/internal/app-binder/task/SendSignTransactionTask.d.ts.map +1 -0
  703. package/lib/types/internal/app-binder/task/SendSignTransactionTask.test.d.ts +2 -0
  704. package/lib/types/internal/app-binder/task/SendSignTransactionTask.test.d.ts.map +1 -0
  705. package/lib/types/internal/di.d.ts +10 -0
  706. package/lib/types/internal/di.d.ts.map +1 -0
  707. package/lib/types/internal/externalTypes.d.ts +6 -0
  708. package/lib/types/internal/externalTypes.d.ts.map +1 -0
  709. package/lib/types/internal/message/di/messageModule.d.ts +3 -0
  710. package/lib/types/internal/message/di/messageModule.d.ts.map +1 -0
  711. package/lib/types/internal/message/di/messageModule.test.d.ts +2 -0
  712. package/lib/types/internal/message/di/messageModule.test.d.ts.map +1 -0
  713. package/lib/types/internal/message/di/messageTypes.d.ts +4 -0
  714. package/lib/types/internal/message/di/messageTypes.d.ts.map +1 -0
  715. package/lib/types/internal/message/use-case/SignMessageUseCase.d.ts +8 -0
  716. package/lib/types/internal/message/use-case/SignMessageUseCase.d.ts.map +1 -0
  717. package/lib/types/internal/message/use-case/SignMessageUseCase.test.d.ts +2 -0
  718. package/lib/types/internal/message/use-case/SignMessageUseCase.test.d.ts.map +1 -0
  719. package/lib/types/internal/shared/utils/PayloadUtils.d.ts +5 -0
  720. package/lib/types/internal/shared/utils/PayloadUtils.d.ts.map +1 -0
  721. package/lib/types/internal/shared/utils/PayloadUtils.test.d.ts +2 -0
  722. package/lib/types/internal/shared/utils/PayloadUtils.test.d.ts.map +1 -0
  723. package/lib/types/internal/transaction/di/transactionModule.d.ts +3 -0
  724. package/lib/types/internal/transaction/di/transactionModule.d.ts.map +1 -0
  725. package/lib/types/internal/transaction/di/transactionModule.test.d.ts +2 -0
  726. package/lib/types/internal/transaction/di/transactionModule.test.d.ts.map +1 -0
  727. package/lib/types/internal/transaction/di/transactionTypes.d.ts +7 -0
  728. package/lib/types/internal/transaction/di/transactionTypes.d.ts.map +1 -0
  729. package/lib/types/internal/transaction/service/mapper/EthersRawTransactionMapper.d.ts +7 -0
  730. package/lib/types/internal/transaction/service/mapper/EthersRawTransactionMapper.d.ts.map +1 -0
  731. package/lib/types/internal/transaction/service/mapper/EthersRawTransactionMapper.test.d.ts +2 -0
  732. package/lib/types/internal/transaction/service/mapper/EthersRawTransactionMapper.test.d.ts.map +1 -0
  733. package/lib/types/internal/transaction/service/mapper/TransactionMapper.d.ts +6 -0
  734. package/lib/types/internal/transaction/service/mapper/TransactionMapper.d.ts.map +1 -0
  735. package/lib/types/internal/transaction/service/mapper/TransactionMapperService.d.ts +9 -0
  736. package/lib/types/internal/transaction/service/mapper/TransactionMapperService.d.ts.map +1 -0
  737. package/lib/types/internal/transaction/service/mapper/TransactionMapperService.test.d.ts +2 -0
  738. package/lib/types/internal/transaction/service/mapper/TransactionMapperService.test.d.ts.map +1 -0
  739. package/lib/types/internal/transaction/service/mapper/model/TransactionMapperResult.d.ts +18 -0
  740. package/lib/types/internal/transaction/service/mapper/model/TransactionMapperResult.d.ts.map +1 -0
  741. package/lib/types/internal/transaction/service/parser/TransactionParserService.d.ts +11 -0
  742. package/lib/types/internal/transaction/service/parser/TransactionParserService.d.ts.map +1 -0
  743. package/lib/types/internal/transaction/service/parser/TransactionParserService.test.d.ts +2 -0
  744. package/lib/types/internal/transaction/service/parser/TransactionParserService.test.d.ts.map +1 -0
  745. package/lib/types/internal/transaction/use-case/SignTransactionUseCase.d.ts +9 -0
  746. package/lib/types/internal/transaction/use-case/SignTransactionUseCase.d.ts.map +1 -0
  747. package/lib/types/internal/transaction/use-case/SignTransactionUseCase.test.d.ts +2 -0
  748. package/lib/types/internal/transaction/use-case/SignTransactionUseCase.test.d.ts.map +1 -0
  749. package/lib/types/internal/typed-data/di/typedDataModule.d.ts +3 -0
  750. package/lib/types/internal/typed-data/di/typedDataModule.d.ts.map +1 -0
  751. package/lib/types/internal/typed-data/di/typedDataModule.test.d.ts +2 -0
  752. package/lib/types/internal/typed-data/di/typedDataModule.test.d.ts.map +1 -0
  753. package/lib/types/internal/typed-data/di/typedDataTypes.d.ts +5 -0
  754. package/lib/types/internal/typed-data/di/typedDataTypes.d.ts.map +1 -0
  755. package/lib/types/internal/typed-data/model/Types.d.ts +41 -0
  756. package/lib/types/internal/typed-data/model/Types.d.ts.map +1 -0
  757. package/lib/types/internal/typed-data/service/DefaultTypedDataParserService.d.ts +7 -0
  758. package/lib/types/internal/typed-data/service/DefaultTypedDataParserService.d.ts.map +1 -0
  759. package/lib/types/internal/typed-data/service/TypedDataEncoder.d.ts +10 -0
  760. package/lib/types/internal/typed-data/service/TypedDataEncoder.d.ts.map +1 -0
  761. package/lib/types/internal/typed-data/service/TypedDataEncoder.test.d.ts +2 -0
  762. package/lib/types/internal/typed-data/service/TypedDataEncoder.test.d.ts.map +1 -0
  763. package/lib/types/internal/typed-data/service/TypedDataParser.d.ts +73 -0
  764. package/lib/types/internal/typed-data/service/TypedDataParser.d.ts.map +1 -0
  765. package/lib/types/internal/typed-data/service/TypedDataParser.test.d.ts +2 -0
  766. package/lib/types/internal/typed-data/service/TypedDataParser.test.d.ts.map +1 -0
  767. package/lib/types/internal/typed-data/service/TypedDataParserService.d.ts +12 -0
  768. package/lib/types/internal/typed-data/service/TypedDataParserService.d.ts.map +1 -0
  769. package/lib/types/internal/typed-data/use-case/SignTypedDataUseCase.d.ts +11 -0
  770. package/lib/types/internal/typed-data/use-case/SignTypedDataUseCase.d.ts.map +1 -0
  771. package/lib/types/internal/typed-data/use-case/SignTypedDataUseCase.test.d.ts +2 -0
  772. package/lib/types/internal/typed-data/use-case/SignTypedDataUseCase.test.d.ts.map +1 -0
  773. package/lib/types/tsconfig.prod.tsbuildinfo +1 -0
  774. package/package.json +62 -0
package/LICENSE.MD ADDED
@@ -0,0 +1,202 @@
1
+
2
+ Apache License
3
+ Version 2.0, January 2004
4
+ http://www.apache.org/licenses/
5
+
6
+ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
7
+
8
+ 1. Definitions.
9
+
10
+ "License" shall mean the terms and conditions for use, reproduction,
11
+ and distribution as defined by Sections 1 through 9 of this document.
12
+
13
+ "Licensor" shall mean the copyright owner or entity authorized by
14
+ the copyright owner that is granting the License.
15
+
16
+ "Legal Entity" shall mean the union of the acting entity and all
17
+ other entities that control, are controlled by, or are under common
18
+ control with that entity. For the purposes of this definition,
19
+ "control" means (i) the power, direct or indirect, to cause the
20
+ direction or management of such entity, whether by contract or
21
+ otherwise, or (ii) ownership of fifty percent (50%) or more of the
22
+ outstanding shares, or (iii) beneficial ownership of such entity.
23
+
24
+ "You" (or "Your") shall mean an individual or Legal Entity
25
+ exercising permissions granted by this License.
26
+
27
+ "Source" form shall mean the preferred form for making modifications,
28
+ including but not limited to software source code, documentation
29
+ source, and configuration files.
30
+
31
+ "Object" form shall mean any form resulting from mechanical
32
+ transformation or translation of a Source form, including but
33
+ not limited to compiled object code, generated documentation,
34
+ and conversions to other media types.
35
+
36
+ "Work" shall mean the work of authorship, whether in Source or
37
+ Object form, made available under the License, as indicated by a
38
+ copyright notice that is included in or attached to the work
39
+ (an example is provided in the Appendix below).
40
+
41
+ "Derivative Works" shall mean any work, whether in Source or Object
42
+ form, that is based on (or derived from) the Work and for which the
43
+ editorial revisions, annotations, elaborations, or other modifications
44
+ represent, as a whole, an original work of authorship. For the purposes
45
+ of this License, Derivative Works shall not include works that remain
46
+ separable from, or merely link (or bind by name) to the interfaces of,
47
+ the Work and Derivative Works thereof.
48
+
49
+ "Contribution" shall mean any work of authorship, including
50
+ the original version of the Work and any modifications or additions
51
+ to that Work or Derivative Works thereof, that is intentionally
52
+ submitted to Licensor for inclusion in the Work by the copyright owner
53
+ or by an individual or Legal Entity authorized to submit on behalf of
54
+ the copyright owner. For the purposes of this definition, "submitted"
55
+ means any form of electronic, verbal, or written communication sent
56
+ to the Licensor or its representatives, including but not limited to
57
+ communication on electronic mailing lists, source code control systems,
58
+ and issue tracking systems that are managed by, or on behalf of, the
59
+ Licensor for the purpose of discussing and improving the Work, but
60
+ excluding communication that is conspicuously marked or otherwise
61
+ designated in writing by the copyright owner as "Not a Contribution."
62
+
63
+ "Contributor" shall mean Licensor and any individual or Legal Entity
64
+ on behalf of whom a Contribution has been received by Licensor and
65
+ subsequently incorporated within the Work.
66
+
67
+ 2. Grant of Copyright License. Subject to the terms and conditions of
68
+ this License, each Contributor hereby grants to You a perpetual,
69
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
70
+ copyright license to reproduce, prepare Derivative Works of,
71
+ publicly display, publicly perform, sublicense, and distribute the
72
+ Work and such Derivative Works in Source or Object form.
73
+
74
+ 3. Grant of Patent License. Subject to the terms and conditions of
75
+ this License, each Contributor hereby grants to You a perpetual,
76
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
77
+ (except as stated in this section) patent license to make, have made,
78
+ use, offer to sell, sell, import, and otherwise transfer the Work,
79
+ where such license applies only to those patent claims licensable
80
+ by such Contributor that are necessarily infringed by their
81
+ Contribution(s) alone or by combination of their Contribution(s)
82
+ with the Work to which such Contribution(s) was submitted. If You
83
+ institute patent litigation against any entity (including a
84
+ cross-claim or counterclaim in a lawsuit) alleging that the Work
85
+ or a Contribution incorporated within the Work constitutes direct
86
+ or contributory patent infringement, then any patent licenses
87
+ granted to You under this License for that Work shall terminate
88
+ as of the date such litigation is filed.
89
+
90
+ 4. Redistribution. You may reproduce and distribute copies of the
91
+ Work or Derivative Works thereof in any medium, with or without
92
+ modifications, and in Source or Object form, provided that You
93
+ meet the following conditions:
94
+
95
+ (a) You must give any other recipients of the Work or
96
+ Derivative Works a copy of this License; and
97
+
98
+ (b) You must cause any modified files to carry prominent notices
99
+ stating that You changed the files; and
100
+
101
+ (c) You must retain, in the Source form of any Derivative Works
102
+ that You distribute, all copyright, patent, trademark, and
103
+ attribution notices from the Source form of the Work,
104
+ excluding those notices that do not pertain to any part of
105
+ the Derivative Works; and
106
+
107
+ (d) If the Work includes a "NOTICE" text file as part of its
108
+ distribution, then any Derivative Works that You distribute must
109
+ include a readable copy of the attribution notices contained
110
+ within such NOTICE file, excluding those notices that do not
111
+ pertain to any part of the Derivative Works, in at least one
112
+ of the following places: within a NOTICE text file distributed
113
+ as part of the Derivative Works; within the Source form or
114
+ documentation, if provided along with the Derivative Works; or,
115
+ within a display generated by the Derivative Works, if and
116
+ wherever such third-party notices normally appear. The contents
117
+ of the NOTICE file are for informational purposes only and
118
+ do not modify the License. You may add Your own attribution
119
+ notices within Derivative Works that You distribute, alongside
120
+ or as an addendum to the NOTICE text from the Work, provided
121
+ that such additional attribution notices cannot be construed
122
+ as modifying the License.
123
+
124
+ You may add Your own copyright statement to Your modifications and
125
+ may provide additional or different license terms and conditions
126
+ for use, reproduction, or distribution of Your modifications, or
127
+ for any such Derivative Works as a whole, provided Your use,
128
+ reproduction, and distribution of the Work otherwise complies with
129
+ the conditions stated in this License.
130
+
131
+ 5. Submission of Contributions. Unless You explicitly state otherwise,
132
+ any Contribution intentionally submitted for inclusion in the Work
133
+ by You to the Licensor shall be under the terms and conditions of
134
+ this License, without any additional terms or conditions.
135
+ Notwithstanding the above, nothing herein shall supersede or modify
136
+ the terms of any separate license agreement you may have executed
137
+ with Licensor regarding such Contributions.
138
+
139
+ 6. Trademarks. This License does not grant permission to use the trade
140
+ names, trademarks, service marks, or product names of the Licensor,
141
+ except as required for reasonable and customary use in describing the
142
+ origin of the Work and reproducing the content of the NOTICE file.
143
+
144
+ 7. Disclaimer of Warranty. Unless required by applicable law or
145
+ agreed to in writing, Licensor provides the Work (and each
146
+ Contributor provides its Contributions) on an "AS IS" BASIS,
147
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
148
+ implied, including, without limitation, any warranties or conditions
149
+ of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
150
+ PARTICULAR PURPOSE. You are solely responsible for determining the
151
+ appropriateness of using or redistributing the Work and assume any
152
+ risks associated with Your exercise of permissions under this License.
153
+
154
+ 8. Limitation of Liability. In no event and under no legal theory,
155
+ whether in tort (including negligence), contract, or otherwise,
156
+ unless required by applicable law (such as deliberate and grossly
157
+ negligent acts) or agreed to in writing, shall any Contributor be
158
+ liable to You for damages, including any direct, indirect, special,
159
+ incidental, or consequential damages of any character arising as a
160
+ result of this License or out of the use or inability to use the
161
+ Work (including but not limited to damages for loss of goodwill,
162
+ work stoppage, computer failure or malfunction, or any and all
163
+ other commercial damages or losses), even if such Contributor
164
+ has been advised of the possibility of such damages.
165
+
166
+ 9. Accepting Warranty or Additional Liability. While redistributing
167
+ the Work or Derivative Works thereof, You may choose to offer,
168
+ and charge a fee for, acceptance of support, warranty, indemnity,
169
+ or other liability obligations and/or rights consistent with this
170
+ License. However, in accepting such obligations, You may act only
171
+ on Your own behalf and on Your sole responsibility, not on behalf
172
+ of any other Contributor, and only if You agree to indemnify,
173
+ defend, and hold each Contributor harmless for any liability
174
+ incurred by, or claims asserted against, such Contributor by reason
175
+ of your accepting any such warranty or additional liability.
176
+
177
+ END OF TERMS AND CONDITIONS
178
+
179
+ APPENDIX: How to apply the Apache License to your work.
180
+
181
+ To apply the Apache License to your work, attach the following
182
+ boilerplate notice, with the fields enclosed by brackets "[]"
183
+ replaced with your own identifying information. (Don't include
184
+ the brackets!) The text should be enclosed in the appropriate
185
+ comment syntax for the file format. We also recommend that a
186
+ file or class name and description of purpose be included on the
187
+ same "printed page" as the copyright notice for easier
188
+ identification within third-party archives.
189
+
190
+ Copyright 2024-present Ledger
191
+
192
+ Licensed under the Apache License, Version 2.0 (the "License");
193
+ you may not use this file except in compliance with the License.
194
+ You may obtain a copy of the License at
195
+
196
+ http://www.apache.org/licenses/LICENSE-2.0
197
+
198
+ Unless required by applicable law or agreed to in writing, software
199
+ distributed under the License is distributed on an "AS IS" BASIS,
200
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
201
+ See the License for the specific language governing permissions and
202
+ limitations under the License.
package/README.md ADDED
@@ -0,0 +1,367 @@
1
+ # Ledger Ethereum Signer
2
+
3
+ This module provides the implementation of the Ledger Ethereum signer of the Device Management Kit. It enables interaction with the Ethereum application on a Ledger device including:
4
+
5
+ - Retrieving the Ethereum address using a given derivation path;
6
+ - Signing an Ethereum transaction ([Clear Signing](https://www.ledger.com/academy/topics/ledgersolutions/what-is-clear-signing));
7
+ - Signing a message displayed on a Ledger device;
8
+ - Signing an [EIP-712](https://eips.ethereum.org/EIPS/eip-712) specified message.
9
+
10
+ ## 🔹 Index
11
+
12
+ 1. [How it works](#-how-it-works)
13
+ 2. [Installation](#-installation)
14
+ 3. [Initialisation](#-initialisation)
15
+ 4. [Use Cases](#-use-cases)
16
+ - [Get Address](#use-case-1-get-address)
17
+ - [Sign Transaction](#use-case-2-sign-transaction)
18
+ - [Sign Message](#use-case-3-sign-message)
19
+ - [Sign Typed Data](#use-case-4-sign-typed-data)
20
+ 5. [Observable Behavior](#-observable-behavior)
21
+ 6. [Example](#-example)
22
+
23
+ ## 🔹 How it works
24
+
25
+ The Ledger Ethereum Signer utilizes the advanced capabilities of the Ledger device to provide secure operations for end users. It takes advantage of the interface provided by the Device Management Kit to establish communication with the Ledger device and execute various operations, including signing transactions. The communication with the Ledger device is performed using [APDU](https://en.wikipedia.org/wiki/Smart_card_application_protocol_data_unit)s (Application Protocol Data Units), which are encapsulated within the `Command` object. These commands are then organized into tasks, allowing for the execution of complex operations with one or more APDUs. The tasks are further encapsulated within `DeviceAction` objects to handle different real-world scenarios. Finally, the Signer exposes dedicated and independent use cases that can be directly utilized by end users.
26
+
27
+ ## 🔹 Installation
28
+
29
+ > **Note:** This module is not standalone; it depends on the [@ledgerhq/device-management-kit](https://github.com/LedgerHQ/device-sdk-ts/tree/develop/packages/device-management-kit) package, so you need to install it first.
30
+
31
+ To install the `device-signer-kit-ethereum` package, run the following command:
32
+
33
+ ```sh
34
+ npm install @ledgerhq/device-signer-kit-ethereum
35
+ ```
36
+
37
+ ## 🔹 Initialisation
38
+
39
+ To initialise an Ethereum signer instance, you need a Ledger Device Management Kit instance and the ID of the session of the connected device. Use the `SignerEthBuilder` along with the [Context Module](https://github.com/LedgerHQ/device-sdk-ts/tree/develop/packages/signer/context-module) by default developed by Ledger:
40
+
41
+ ```typescript
42
+ // Initialise an Ethereum signer instance using default context module
43
+ const signerEth = new SignerEthBuilder({ sdk, sessionId }).build();
44
+ ```
45
+
46
+ You can also configure the context module yourself:
47
+
48
+ ```typescript
49
+ // Initialise an Ethereum signer instance using customized context module
50
+ const signerEth = new SignerEthBuilder({ sdk, sessionId })
51
+ .withContextModule(customContextModule)
52
+ .build();
53
+ ```
54
+
55
+ ## 🔹 Use Cases
56
+
57
+ The `SignerEthBuilder.build()` method will return a `SignerEth` instance that exposes 4 dedicated methods, each of which calls an independent use case. Each use case will return an object that contains an observable and a method called `cancel`.
58
+
59
+ ---
60
+
61
+ ### Use Case 1: Get Address
62
+
63
+ This method allows users to retrieve the Ethereum address according to given `derivationPath`.
64
+
65
+ ```typescript
66
+ const { observable, cancel } = signerEth.getAddress(derivationPath, options);
67
+ ```
68
+
69
+ #### **Parameters**
70
+
71
+ - `derivationPath`
72
+
73
+ - **Required**
74
+ - **Type:** `string` (e.g., `"44'/60'/0'/0/0"`)
75
+ - The derivation path used for the Ethereum address. See [here](https://www.ledger.com/blog/understanding-crypto-addresses-and-derivation-paths) for more information.
76
+
77
+ - `options`
78
+
79
+ - Optional
80
+ - Type: `AddressOptions`
81
+
82
+ ```typescript
83
+ type AddressOptions = {
84
+ checkOnDevice?: boolean;
85
+ returnChainCode?: boolean;
86
+ };
87
+ ```
88
+
89
+ - `checkOnDevice`: An optional boolean indicating whether user confirmation on the device is required (`true`) or not (`false`).
90
+ - `returnChainCode`: An optional boolean indicating whether the chain code should be returned (`true`) or not (`false`).
91
+
92
+ #### **Returns**
93
+
94
+ - `observable` Emits DeviceActionState updates, including the following details:
95
+
96
+ ```typescript
97
+ type GetAddressCommandResponse = {
98
+ publicKey: string; // Public key derived from the given path
99
+ address: `0x${string}`; // Ethereum address in hex format
100
+ chainCode?: string; // Optional chain code
101
+ };
102
+ ```
103
+
104
+ - `cancel` A function to cancel the action on the Ledger device.
105
+
106
+ ---
107
+
108
+ ### Use Case 2: Sign Transaction
109
+
110
+ This method enables users to securely sign transactions using clear signing on Ledger devices.
111
+
112
+ ```typescript
113
+ const { observable, cancel } = signerEth.signTransaction(
114
+ derivationPath,
115
+ transaction,
116
+ options,
117
+ );
118
+ ```
119
+
120
+ #### **Parameters**
121
+
122
+ - `derivationPath`
123
+
124
+ - **Required**
125
+ - **Type:** `string` (e.g., `"44'/60'/0'/0/0"`)
126
+ - The derivation path used in the transaction. See [here](https://www.ledger.com/blog/understanding-crypto-addresses-and-derivation-paths) for more information.
127
+
128
+ - `transaction`
129
+
130
+ - **Required**
131
+ - **Type:**`Uint8Array`
132
+ - The transaction buffer that needs to be signed.
133
+
134
+ - `options`
135
+
136
+ - **Optional**
137
+ - **Type:** `TransactionOptions`
138
+
139
+ ```typescript
140
+ type TransactionOptions = {
141
+ domain?: string;
142
+ };
143
+ ```
144
+
145
+ - `domain` An optional string representing the domain present in the transaction. Currently, only ENS domains are supported.
146
+
147
+ #### **Returns**
148
+
149
+ - `observable` Emits DeviceActionState updates, including the following details:
150
+
151
+ ```typescript
152
+ type Signature = {
153
+ r: `0x${string}`; // R component of the signature
154
+ s: `0x${string}`; // S component of the signature
155
+ v: number; // Recovery parameter
156
+ };
157
+ ```
158
+
159
+ - `cancel` A function to cancel the action on the Ledger device.
160
+
161
+ ---
162
+
163
+ ### Use Case 3: Sign Message
164
+
165
+ This method allows users to sign a text string that is displayed on Ledger devices.
166
+
167
+ ```typescript
168
+ const { observable, cancel } = signerEth.signMessage(derivationPath, message);
169
+ ```
170
+
171
+ #### **Parameters**
172
+
173
+ - `derivationPath`
174
+
175
+ - **Required**
176
+ - **Type:** `string` (e.g., `"44'/60'/0'/0/0"`)
177
+ - The derivation path used by the Ethereum message. See [here](https://www.ledger.com/blog/understanding-crypto-addresses-and-derivation-paths) for more information.
178
+
179
+ - `message`
180
+
181
+ - **Required**
182
+ - **Type:** `string`
183
+ - The message to be signed, which will be displayed on the Ledger device.
184
+
185
+ #### **Returns**
186
+
187
+ - `observable` Emits DeviceActionState updates, including the following details:
188
+
189
+ ```typescript
190
+ type Signature = {
191
+ r: `0x${string}`; // R component of the signature
192
+ s: `0x${string}`; // S component of the signature
193
+ v: number; // Recovery parameter
194
+ };
195
+ ```
196
+
197
+ - `cancel` A function to cancel the action on the Ledger device.
198
+
199
+ ---
200
+
201
+ ### Use Case 4: Sign Typed Data
202
+
203
+ This method enables users to sign an Ethereum message following the [EIP-712](https://eips.ethereum.org/EIPS/eip-712) specification.
204
+
205
+ ```typescript
206
+ const { observable, cancel } = signerEth.signTypedData(
207
+ derivationPath,
208
+ typedData,
209
+ );
210
+ ```
211
+
212
+ #### **Parameters**
213
+
214
+ - `derivationPath`
215
+
216
+ - **Required**
217
+ - **Type:** `string` (e.g., `"44'/60'/0'/0/0"`)
218
+ - The derivation path used by the Ethereum message. See [here](https://www.ledger.com/blog/understanding-crypto-addresses-and-derivation-paths) for more information.
219
+
220
+ - `typedData`
221
+
222
+ - **Required**
223
+ - **Type:** `TypedData`
224
+
225
+ ```typescript
226
+ interface TypedData {
227
+ domain: TypedDataDomain;
228
+ types: Record<string, Array<TypedDataField>>;
229
+ primaryType: string;
230
+ message: Record<string, unknown>;
231
+ }
232
+
233
+ interface TypedDataDomain {
234
+ name?: string;
235
+ version?: string;
236
+ chainId?: number;
237
+ verifyingContract?: string;
238
+ salt?: string;
239
+ }
240
+
241
+ interface TypedDataField {
242
+ name: string;
243
+ type: string;
244
+ }
245
+ ```
246
+
247
+ - The typed data as defined at [EIP-712](https://eips.ethereum.org/EIPS/eip-712).
248
+
249
+ #### **Returns**
250
+
251
+ - `observable` Emits DeviceActionState updates, including the following details:
252
+
253
+ ```typescript
254
+ type Signature = {
255
+ r: `0x${string}`; // R component of the signature
256
+ s: `0x${string}`; // S component of the signature
257
+ v: number; // Recovery parameter
258
+ };
259
+ ```
260
+
261
+ - `cancel` A function to cancel the action on the Ledger device.
262
+
263
+ ## 🔹 Observable Behavior
264
+
265
+ Each method returns an [Observable](https://rxjs.dev/guide/observable) emitting updates structured as [`DeviceActionState`](https://github.com/LedgerHQ/device-sdk-ts/blob/develop/packages/device-management-kit/src/api/device-action/model/DeviceActionState.ts). These updates reflect the operation’s progress and status:
266
+
267
+ - **NotStarted**: The operation hasn’t started.
268
+ - **Pending**: The operation is in progress and may require user interaction.
269
+ - **Stopped**: The operation was canceled or stopped.
270
+ - **Completed**: The operation completed successfully, with results available.
271
+ - **Error**: An error occurred.
272
+
273
+ **Example Observable Subscription:**
274
+
275
+ ```typescript
276
+ observable.subscribe({
277
+ next: (state: DeviceActionState) => {
278
+ switch (state.status) {
279
+ case DeviceActionStatus.NotStarted: {
280
+ console.log("The action is not started yet.");
281
+ break;
282
+ }
283
+ case DeviceActionStatus.Pending: {
284
+ const {
285
+ intermediateValue: { requiredUserInteraction },
286
+ } = state;
287
+ // Access the intermediate value here, explained below
288
+ console.log(
289
+ "The action is pending and the intermediate value is: ",
290
+ intermediateValue,
291
+ );
292
+ break;
293
+ }
294
+ case DeviceActionStatus.Stopped: {
295
+ console.log("The action has been stopped.");
296
+ break;
297
+ }
298
+ case DeviceActionStatus.Completed: {
299
+ const { output } = state;
300
+ // Access the output of the completed action here
301
+ console.log("The action has been completed: ", output);
302
+ break;
303
+ }
304
+ case DeviceActionStatus.Error: {
305
+ const { error } = state;
306
+ // Access the error here if occurred
307
+ console.log("An error occurred during the action: ", error);
308
+ break;
309
+ }
310
+ }
311
+ },
312
+ });
313
+ ```
314
+
315
+ **Intermediate Values in Pending Status:**
316
+
317
+ When the status is DeviceActionStatus.Pending, the state will include an `intermediateValue` object that provides useful information for interaction:
318
+
319
+ ```typescript
320
+ const { requiredUserInteraction } = intermediateValue;
321
+
322
+ switch (requiredUserInteraction) {
323
+ case UserInteractionRequired.SignPersonalMessage: {
324
+ // User needs to sign the message displayed on the device
325
+ console.log("User needs to sign the message displayed on the device.");
326
+ break;
327
+ }
328
+ case UserInteractionRequired.SignTypedData: {
329
+ // User needs to sign the typed data displayed on the device
330
+ console.log("User needs to sign the typed data displayed on the device.");
331
+ break;
332
+ }
333
+ case UserInteractionRequired.SignTransaction: {
334
+ // User needs to sign the transaction displayed on the device
335
+ console.log("User needs to sign the transaction displayed on the device.");
336
+ break;
337
+ }
338
+ case UserInteractionRequired.VerifyAddress: {
339
+ // User needs to verify the address displayed on the device
340
+ console.log("User needs to verify the address displayed on the device.");
341
+ break;
342
+ }
343
+ case UserInteractionRequired.None: {
344
+ // No user action required
345
+ console.log("No user action needed.");
346
+ break;
347
+ }
348
+ case UserInteractionRequired.UnlockDevice: {
349
+ // User needs to unlock the device
350
+ console.log("The user needs to unlock the device.");
351
+ break;
352
+ }
353
+ case UserInteractionRequired.ConfirmOpenApp: {
354
+ // User needs to confirm on the device to open the app
355
+ console.log("The user needs to confirm on the device to open the app.");
356
+ break;
357
+ }
358
+ default:
359
+ // Type guard to ensure all cases are handled
360
+ const uncaughtUserInteraction: never = requiredUserInteraction;
361
+ console.error("Unhandled user interaction case:", uncaughtUserInteraction);
362
+ }
363
+ ```
364
+
365
+ ## 🔹 Example
366
+
367
+ We encourage you to explore the Ethereum Signer by trying it out in our online [sample application](https://app.devicesdk.ledger-test.com/). Experience how it works and see its capabilities in action. Of course, you will need a Ledger device connected.
@@ -0,0 +1,2 @@
1
+ "use strict";var i=Object.defineProperty;var s=Object.getOwnPropertyDescriptor;var o=Object.getOwnPropertyNames;var p=Object.prototype.hasOwnProperty;var y=(e,t,a,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let r of o(t))!p.call(e,r)&&r!==a&&i(e,r,{get:()=>t[r],enumerable:!(n=s(t,r))||n.enumerable});return e};var d=e=>y(i({},"__esModule",{value:!0}),e);var g={};module.exports=d(g);
2
+ //# sourceMappingURL=SignerEth.js.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../../src/api/SignerEth.ts"],
4
+ "sourcesContent": ["import { type GetAddressDAReturnType } from \"@api/app-binder/GetAddressDeviceActionTypes\";\nimport { type SignTypedDataDAReturnType } from \"@api/app-binder/SignTypedDataDeviceActionTypes\";\nimport { type AddressOptions } from \"@api/model/AddressOptions\";\nimport { type TransactionOptions } from \"@api/model/TransactionOptions\";\nimport { type TypedData } from \"@api/model/TypedData\";\n\nimport { type SignPersonalMessageDAReturnType } from \"./app-binder/SignPersonalMessageDeviceActionTypes\";\nimport { type SignTransactionDAReturnType } from \"./app-binder/SignTransactionDeviceActionTypes\";\n\nexport interface SignerEth {\n signTransaction: (\n derivationPath: string,\n transaction: Uint8Array,\n options?: TransactionOptions,\n ) => SignTransactionDAReturnType;\n signMessage: (\n derivationPath: string,\n message: string | Uint8Array,\n ) => SignPersonalMessageDAReturnType;\n signTypedData: (\n derivationPath: string,\n typedData: TypedData,\n ) => SignTypedDataDAReturnType;\n getAddress: (\n derivationPath: string,\n options?: AddressOptions,\n ) => GetAddressDAReturnType;\n}\n"],
5
+ "mappings": "+WAAA,IAAAA,EAAA,kBAAAC,EAAAD",
6
+ "names": ["SignerEth_exports", "__toCommonJS"]
7
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";var s=Object.defineProperty;var u=Object.getOwnPropertyDescriptor;var l=Object.getOwnPropertyNames;var c=Object.prototype.hasOwnProperty;var m=(t,e)=>{for(var i in e)s(t,i,{get:e[i],enumerable:!0})},h=(t,e,i,n)=>{if(e&&typeof e=="object"||typeof e=="function")for(let o of l(e))!c.call(t,o)&&o!==i&&s(t,o,{get:()=>e[o],enumerable:!(n=u(e,o))||n.enumerable});return t};var M=t=>h(s({},"__esModule",{value:!0}),t);var a={};m(a,{SignerEthBuilder:()=>p});module.exports=M(a);var r=require("@ledgerhq/context-module"),d=require("../internal/DefaultSignerEth");class p{_dmk;_sessionId;_contextModule;constructor({dmk:e,sessionId:i}){this._dmk=e,this._sessionId=i,this._contextModule=new r.ContextModuleBuilder().build()}withContextModule(e){return this._contextModule=e,this}build(){return new d.DefaultSignerEth({dmk:this._dmk,sessionId:this._sessionId,contextModule:this._contextModule})}}0&&(module.exports={SignerEthBuilder});
2
+ //# sourceMappingURL=SignerEthBuilder.js.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../../src/api/SignerEthBuilder.ts"],
4
+ "sourcesContent": ["import {\n type ContextModule,\n ContextModuleBuilder,\n} from \"@ledgerhq/context-module\";\nimport {\n type DeviceManagementKit,\n type DeviceSessionId,\n} from \"@ledgerhq/device-management-kit\";\n\nimport { DefaultSignerEth } from \"@internal/DefaultSignerEth\";\n\ntype SignerEthBuilderConstructorArgs = {\n dmk: DeviceManagementKit;\n sessionId: DeviceSessionId;\n};\n\n/**\n * Builder for the `SignerEth` class.\n *\n * @example\n * ```\n * const dmk = new SignerEthBuilder(dmk)\n * .build();\n * ```\n */\nexport class SignerEthBuilder {\n private _dmk: DeviceManagementKit;\n private _sessionId: DeviceSessionId;\n private _contextModule: ContextModule;\n\n constructor({ dmk, sessionId }: SignerEthBuilderConstructorArgs) {\n this._dmk = dmk;\n this._sessionId = sessionId;\n // default context module for ETH\n this._contextModule = new ContextModuleBuilder().build();\n }\n\n /**\n * Override the default context module\n *\n * @param contextModule\n * @returns this\n */\n withContextModule(contextModule: ContextModule) {\n this._contextModule = contextModule;\n return this;\n }\n\n /**\n * Build the ethereum signer\n *\n * @returns the ethereum signer\n */\n public build() {\n return new DefaultSignerEth({\n dmk: this._dmk,\n sessionId: this._sessionId,\n contextModule: this._contextModule,\n });\n }\n}\n"],
5
+ "mappings": "yaAAA,IAAAA,EAAA,GAAAC,EAAAD,EAAA,sBAAAE,IAAA,eAAAC,EAAAH,GAAA,IAAAI,EAGO,oCAMPC,EAAiC,sCAgB1B,MAAMH,CAAiB,CACpB,KACA,WACA,eAER,YAAY,CAAE,IAAAI,EAAK,UAAAC,CAAU,EAAoC,CAC/D,KAAK,KAAOD,EACZ,KAAK,WAAaC,EAElB,KAAK,eAAiB,IAAI,uBAAqB,EAAE,MAAM,CACzD,CAQA,kBAAkBC,EAA8B,CAC9C,YAAK,eAAiBA,EACf,IACT,CAOO,OAAQ,CACb,OAAO,IAAI,mBAAiB,CAC1B,IAAK,KAAK,KACV,UAAW,KAAK,WAChB,cAAe,KAAK,cACtB,CAAC,CACH,CACF",
6
+ "names": ["SignerEthBuilder_exports", "__export", "SignerEthBuilder", "__toCommonJS", "import_context_module", "import_DefaultSignerEth", "dmk", "sessionId", "contextModule"]
7
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";var t=require("./SignerEthBuilder");describe("SignerEthBuilder",()=>{const o={};test("should be an instance of SignerEth",()=>{const e=new t.SignerEthBuilder({dmk:o,sessionId:""});e.build(),expect(e).toBeInstanceOf(t.SignerEthBuilder)}),test("should instanciate with default context module",()=>{const e=new t.SignerEthBuilder({dmk:o,sessionId:""});e.build(),expect(e._contextModule).toBeDefined(),expect(e._contextModule._loaders).toHaveLength(5)}),test("should instanciate with custom context module",()=>{const e=new t.SignerEthBuilder({dmk:o,sessionId:""}),n={};e.withContextModule(n).build(),expect(e._contextModule).toBe(n)})});
2
+ //# sourceMappingURL=SignerEthBuilder.test.js.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../../src/api/SignerEthBuilder.test.ts"],
4
+ "sourcesContent": ["import {\n type ContextLoader,\n type ContextModule,\n} from \"@ledgerhq/context-module\";\nimport { type DeviceManagementKit } from \"@ledgerhq/device-management-kit\";\n\nimport { SignerEthBuilder } from \"@api/SignerEthBuilder\";\n\ndescribe(\"SignerEthBuilder\", () => {\n const dmk: DeviceManagementKit = {} as DeviceManagementKit;\n\n test(\"should be an instance of SignerEth\", () => {\n // GIVEN\n const builder = new SignerEthBuilder({ dmk, sessionId: \"\" });\n\n // WHEN\n builder.build();\n\n // THEN\n expect(builder).toBeInstanceOf(SignerEthBuilder);\n });\n\n test(\"should instanciate with default context module\", () => {\n // GIVEN\n const builder = new SignerEthBuilder({ dmk, sessionId: \"\" });\n\n // WHEN\n builder.build();\n\n // THEN\n expect(builder[\"_contextModule\"]).toBeDefined();\n expect(\n (builder[\"_contextModule\"] as unknown as { _loaders: ContextLoader[] })\n ._loaders,\n ).toHaveLength(5);\n });\n\n test(\"should instanciate with custom context module\", () => {\n // GIVEN\n const builder = new SignerEthBuilder({ dmk, sessionId: \"\" });\n const contextModule = {} as ContextModule;\n\n // WHEN\n builder.withContextModule(contextModule).build();\n\n // THEN\n expect(builder[\"_contextModule\"]).toBe(contextModule);\n });\n});\n"],
5
+ "mappings": "aAMA,IAAAA,EAAiC,iCAEjC,SAAS,mBAAoB,IAAM,CACjC,MAAMC,EAA2B,CAAC,EAElC,KAAK,qCAAsC,IAAM,CAE/C,MAAMC,EAAU,IAAI,mBAAiB,CAAE,IAAAD,EAAK,UAAW,EAAG,CAAC,EAG3DC,EAAQ,MAAM,EAGd,OAAOA,CAAO,EAAE,eAAe,kBAAgB,CACjD,CAAC,EAED,KAAK,iDAAkD,IAAM,CAE3D,MAAMA,EAAU,IAAI,mBAAiB,CAAE,IAAAD,EAAK,UAAW,EAAG,CAAC,EAG3DC,EAAQ,MAAM,EAGd,OAAOA,EAAQ,cAAiB,EAAE,YAAY,EAC9C,OACGA,EAAQ,eACN,QACL,EAAE,aAAa,CAAC,CAClB,CAAC,EAED,KAAK,gDAAiD,IAAM,CAE1D,MAAMA,EAAU,IAAI,mBAAiB,CAAE,IAAAD,EAAK,UAAW,EAAG,CAAC,EACrDE,EAAgB,CAAC,EAGvBD,EAAQ,kBAAkBC,CAAa,EAAE,MAAM,EAG/C,OAAOD,EAAQ,cAAiB,EAAE,KAAKC,CAAa,CACtD,CAAC,CACH,CAAC",
6
+ "names": ["import_SignerEthBuilder", "dmk", "builder", "contextModule"]
7
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";var d=Object.defineProperty;var s=Object.getOwnPropertyDescriptor;var t=Object.getOwnPropertyNames;var i=Object.prototype.hasOwnProperty;var l=(n,e,a,o)=>{if(e&&typeof e=="object"||typeof e=="function")for(let r of t(e))!i.call(n,r)&&r!==a&&d(n,r,{get:()=>e[r],enumerable:!(o=s(e,r))||o.enumerable});return n};var y=n=>l(d({},"__esModule",{value:!0}),n);var p={};module.exports=y(p);
2
+ //# sourceMappingURL=GetAddressCommandTypes.js.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../../../src/api/app-binder/GetAddressCommandTypes.ts"],
4
+ "sourcesContent": ["export type GetAddressCommandResponse = {\n readonly publicKey: string;\n readonly address: `0x${string}`;\n readonly chainCode?: string;\n};\n\nexport type GetAddressCommandArgs = {\n readonly derivationPath: string;\n readonly checkOnDevice?: boolean;\n readonly returnChainCode?: boolean;\n};\n"],
5
+ "mappings": "+WAAA,IAAAA,EAAA,kBAAAC,EAAAD",
6
+ "names": ["GetAddressCommandTypes_exports", "__toCommonJS"]
7
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";var p=Object.defineProperty;var o=Object.getOwnPropertyDescriptor;var s=Object.getOwnPropertyNames;var A=Object.prototype.hasOwnProperty;var m=(r,e,n,d)=>{if(e&&typeof e=="object"||typeof e=="function")for(let t of s(e))!A.call(r,t)&&t!==n&&p(r,t,{get:()=>e[t],enumerable:!(d=o(e,t))||d.enumerable});return r};var u=r=>m(p({},"__esModule",{value:!0}),r);var i={};module.exports=u(i);
2
+ //# sourceMappingURL=GetAddressDeviceActionTypes.js.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../../../src/api/app-binder/GetAddressDeviceActionTypes.ts"],
4
+ "sourcesContent": ["import {\n type CommandErrorResult,\n type ExecuteDeviceActionReturnType,\n type OpenAppDAError,\n type SendCommandInAppDAIntermediateValue,\n type SendCommandInAppDAOutput,\n type UserInteractionRequired,\n} from \"@ledgerhq/device-management-kit\";\n\nimport { type GetAddressCommandResponse } from \"@api/app-binder/GetAddressCommandTypes\";\nimport { type EthErrorCodes } from \"@internal/app-binder/command/utils/ethAppErrors\";\n\ntype GetAddressDAUserInteractionRequired =\n | UserInteractionRequired.None\n | UserInteractionRequired.VerifyAddress;\n\nexport type GetAddressDAOutput =\n SendCommandInAppDAOutput<GetAddressCommandResponse>;\nexport type GetAddressDAError =\n | OpenAppDAError\n | CommandErrorResult<EthErrorCodes>[\"error\"];\nexport type GetAddressDAIntermediateValue =\n SendCommandInAppDAIntermediateValue<GetAddressDAUserInteractionRequired>;\n\nexport type GetAddressDAReturnType = ExecuteDeviceActionReturnType<\n GetAddressDAOutput,\n GetAddressDAError,\n GetAddressDAIntermediateValue\n>;\n"],
5
+ "mappings": "+WAAA,IAAAA,EAAA,kBAAAC,EAAAD",
6
+ "names": ["GetAddressDeviceActionTypes_exports", "__toCommonJS"]
7
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";var o=Object.defineProperty;var p=Object.getOwnPropertyDescriptor;var a=Object.getOwnPropertyNames;var i=Object.prototype.hasOwnProperty;var g=(r,e,s,n)=>{if(e&&typeof e=="object"||typeof e=="function")for(let t of a(e))!i.call(r,t)&&t!==s&&o(r,t,{get:()=>e[t],enumerable:!(n=p(e,t))||n.enumerable});return r};var u=r=>g(o({},"__esModule",{value:!0}),r);var A={};module.exports=u(A);
2
+ //# sourceMappingURL=SignPersonalMessageDeviceActionTypes.js.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../../../src/api/app-binder/SignPersonalMessageDeviceActionTypes.ts"],
4
+ "sourcesContent": ["import {\n type CommandErrorResult,\n type ExecuteDeviceActionReturnType,\n type OpenAppDAError,\n type OpenAppDARequiredInteraction,\n type UserInteractionRequired,\n} from \"@ledgerhq/device-management-kit\";\n\nimport { type Signature } from \"@api/model/Signature\";\nimport { type EthErrorCodes } from \"@internal/app-binder/command/utils/ethAppErrors\";\n\nexport type SignPersonalMessageDAOutput = Signature;\n\nexport type SignPersonalMessageDAError =\n | OpenAppDAError\n | CommandErrorResult<EthErrorCodes>[\"error\"];\n\ntype SignPersonalMessageDARequiredInteraction =\n | OpenAppDARequiredInteraction\n | UserInteractionRequired.SignPersonalMessage;\n\nexport type SignPersonalMessageDAIntermediateValue = {\n requiredUserInteraction: SignPersonalMessageDARequiredInteraction;\n};\n\nexport type SignPersonalMessageDAReturnType = ExecuteDeviceActionReturnType<\n SignPersonalMessageDAOutput,\n SignPersonalMessageDAError,\n SignPersonalMessageDAIntermediateValue\n>;\n"],
5
+ "mappings": "+WAAA,IAAAA,EAAA,kBAAAC,EAAAD",
6
+ "names": ["SignPersonalMessageDeviceActionTypes_exports", "__toCommonJS"]
7
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";var a=Object.defineProperty;var i=Object.getOwnPropertyDescriptor;var p=Object.getOwnPropertyNames;var c=Object.prototype.hasOwnProperty;var s=(r,e,o,t)=>{if(e&&typeof e=="object"||typeof e=="function")for(let n of p(e))!c.call(r,n)&&n!==o&&a(r,n,{get:()=>e[n],enumerable:!(t=i(e,n))||t.enumerable});return r};var y=r=>s(a({},"__esModule",{value:!0}),r);var l={};module.exports=y(l);
2
+ //# sourceMappingURL=SignTransactionDeviceActionTypes.js.map