@ledgerhq/cryptoassets 12.1.0-nightly.1 → 12.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (801) hide show
  1. package/.turbo/turbo-build.log +1 -1
  2. package/CHANGELOG.md +12 -4
  3. package/lib/crypto-assets-importer/exchange/bep20.d.ts.map +1 -1
  4. package/lib/crypto-assets-importer/exchange/bep20.js +1 -7
  5. package/lib/crypto-assets-importer/exchange/bep20.js.map +1 -1
  6. package/lib/crypto-assets-importer/exchange/coins.d.ts.map +1 -1
  7. package/lib/crypto-assets-importer/exchange/coins.js +1 -7
  8. package/lib/crypto-assets-importer/exchange/coins.js.map +1 -1
  9. package/lib/crypto-assets-importer/exchange/erc20.d.ts.map +1 -1
  10. package/lib/crypto-assets-importer/exchange/erc20.js +1 -7
  11. package/lib/crypto-assets-importer/exchange/erc20.js.map +1 -1
  12. package/lib/crypto-assets-importer/fetch/fetch.test.js +2 -3
  13. package/lib/crypto-assets-importer/fetch/fetch.test.js.map +1 -1
  14. package/lib/crypto-assets-importer/fetch/index.d.ts +1 -1
  15. package/lib/crypto-assets-importer/fetch/index.d.ts.map +1 -1
  16. package/lib/crypto-assets-importer/fetch/index.js +2 -2
  17. package/lib/crypto-assets-importer/fetch/index.js.map +1 -1
  18. package/lib/crypto-assets-importer/importers/asa/asa.test.js +2 -5
  19. package/lib/crypto-assets-importer/importers/asa/asa.test.js.map +1 -1
  20. package/lib/crypto-assets-importer/importers/asa/index.d.ts.map +1 -1
  21. package/lib/crypto-assets-importer/importers/asa/index.js +1 -6
  22. package/lib/crypto-assets-importer/importers/asa/index.js.map +1 -1
  23. package/lib/crypto-assets-importer/importers/bep20/bep20.test.js +2 -5
  24. package/lib/crypto-assets-importer/importers/bep20/bep20.test.js.map +1 -1
  25. package/lib/crypto-assets-importer/importers/bep20/index.d.ts.map +1 -1
  26. package/lib/crypto-assets-importer/importers/bep20/index.js +2 -7
  27. package/lib/crypto-assets-importer/importers/bep20/index.js.map +1 -1
  28. package/lib/crypto-assets-importer/importers/cardanoNative/cardanoNative.test.js +2 -5
  29. package/lib/crypto-assets-importer/importers/cardanoNative/cardanoNative.test.js.map +1 -1
  30. package/lib/crypto-assets-importer/importers/cardanoNative/index.d.ts.map +1 -1
  31. package/lib/crypto-assets-importer/importers/cardanoNative/index.js +2 -7
  32. package/lib/crypto-assets-importer/importers/cardanoNative/index.js.map +1 -1
  33. package/lib/crypto-assets-importer/importers/eip712/eip712.test.js +3 -7
  34. package/lib/crypto-assets-importer/importers/eip712/eip712.test.js.map +1 -1
  35. package/lib/crypto-assets-importer/importers/eip712/index.d.ts.map +1 -1
  36. package/lib/crypto-assets-importer/importers/eip712/index.js +2 -8
  37. package/lib/crypto-assets-importer/importers/eip712/index.js.map +1 -1
  38. package/lib/crypto-assets-importer/importers/erc20/erc20.test.js +2 -5
  39. package/lib/crypto-assets-importer/importers/erc20/erc20.test.js.map +1 -1
  40. package/lib/crypto-assets-importer/importers/erc20/index.d.ts.map +1 -1
  41. package/lib/crypto-assets-importer/importers/erc20/index.js +1 -6
  42. package/lib/crypto-assets-importer/importers/erc20/index.js.map +1 -1
  43. package/lib/crypto-assets-importer/importers/erc20-signature/erc20-signature.test.js +3 -9
  44. package/lib/crypto-assets-importer/importers/erc20-signature/erc20-signature.test.js.map +1 -1
  45. package/lib/crypto-assets-importer/importers/erc20-signature/index.d.ts.map +1 -1
  46. package/lib/crypto-assets-importer/importers/erc20-signature/index.js +2 -10
  47. package/lib/crypto-assets-importer/importers/erc20-signature/index.js.map +1 -1
  48. package/lib/crypto-assets-importer/importers/esdt/esdt.test.js +2 -5
  49. package/lib/crypto-assets-importer/importers/esdt/esdt.test.js.map +1 -1
  50. package/lib/crypto-assets-importer/importers/esdt/index.d.ts.map +1 -1
  51. package/lib/crypto-assets-importer/importers/esdt/index.js +1 -6
  52. package/lib/crypto-assets-importer/importers/esdt/index.js.map +1 -1
  53. package/lib/crypto-assets-importer/importers/evm/evm.test.js +8 -10
  54. package/lib/crypto-assets-importer/importers/evm/evm.test.js.map +1 -1
  55. package/lib/crypto-assets-importer/importers/evm/index.d.ts.map +1 -1
  56. package/lib/crypto-assets-importer/importers/evm/index.js +6 -50
  57. package/lib/crypto-assets-importer/importers/evm/index.js.map +1 -1
  58. package/lib/crypto-assets-importer/importers/polygon/index.d.ts.map +1 -1
  59. package/lib/crypto-assets-importer/importers/polygon/index.js +1 -6
  60. package/lib/crypto-assets-importer/importers/polygon/index.js.map +1 -1
  61. package/lib/crypto-assets-importer/importers/polygon/polygon.test.js +2 -5
  62. package/lib/crypto-assets-importer/importers/polygon/polygon.test.js.map +1 -1
  63. package/lib/crypto-assets-importer/importers/spl/index.d.ts.map +1 -1
  64. package/lib/crypto-assets-importer/importers/spl/index.js +1 -6
  65. package/lib/crypto-assets-importer/importers/spl/index.js.map +1 -1
  66. package/lib/crypto-assets-importer/importers/spl/spl.test.js +2 -5
  67. package/lib/crypto-assets-importer/importers/spl/spl.test.js.map +1 -1
  68. package/lib/crypto-assets-importer/importers/stellar/index.d.ts.map +1 -1
  69. package/lib/crypto-assets-importer/importers/stellar/index.js +1 -6
  70. package/lib/crypto-assets-importer/importers/stellar/index.js.map +1 -1
  71. package/lib/crypto-assets-importer/importers/stellar/stellar.test.js +2 -5
  72. package/lib/crypto-assets-importer/importers/stellar/stellar.test.js.map +1 -1
  73. package/lib/crypto-assets-importer/importers/trc20/index.d.ts.map +1 -1
  74. package/lib/crypto-assets-importer/importers/trc20/index.js +1 -6
  75. package/lib/crypto-assets-importer/importers/trc20/index.js.map +1 -1
  76. package/lib/crypto-assets-importer/importers/trc20/trc20.test.js +2 -5
  77. package/lib/crypto-assets-importer/importers/trc20/trc20.test.js.map +1 -1
  78. package/lib/crypto-assets-importer/index.js +0 -2
  79. package/lib/crypto-assets-importer/index.js.map +1 -1
  80. package/lib/data/asa.d.ts +0 -1
  81. package/lib/data/asa.d.ts.map +1 -1
  82. package/lib/data/asa.js +0 -3
  83. package/lib/data/asa.js.map +1 -1
  84. package/lib/data/bep20.d.ts +0 -1
  85. package/lib/data/bep20.d.ts.map +1 -1
  86. package/lib/data/bep20.js +0 -3
  87. package/lib/data/bep20.js.map +1 -1
  88. package/lib/data/cardanoNative.d.ts +0 -1
  89. package/lib/data/cardanoNative.d.ts.map +1 -1
  90. package/lib/data/cardanoNative.js +0 -3
  91. package/lib/data/cardanoNative.js.map +1 -1
  92. package/lib/data/eip712.d.ts +747 -3
  93. package/lib/data/eip712.d.ts.map +1 -1
  94. package/lib/data/eip712.js +2040 -8
  95. package/lib/data/eip712.js.map +1 -1
  96. package/lib/data/erc20-signatures.d.ts +2 -3
  97. package/lib/data/erc20-signatures.d.ts.map +1 -1
  98. package/lib/data/erc20-signatures.js +1 -8
  99. package/lib/data/erc20-signatures.js.map +1 -1
  100. package/lib/data/erc20.d.ts +0 -1
  101. package/lib/data/erc20.d.ts.map +1 -1
  102. package/lib/data/erc20.js +0 -3
  103. package/lib/data/erc20.js.map +1 -1
  104. package/lib/data/esdt.d.ts +0 -1
  105. package/lib/data/esdt.d.ts.map +1 -1
  106. package/lib/data/esdt.js +0 -3
  107. package/lib/data/esdt.js.map +1 -1
  108. package/lib/data/evm/1/index.d.ts +5 -4
  109. package/lib/data/evm/1/index.d.ts.map +1 -1
  110. package/lib/data/evm/1/index.js +3 -9
  111. package/lib/data/evm/1/index.js.map +1 -1
  112. package/lib/data/evm/10/index.d.ts +5 -4
  113. package/lib/data/evm/10/index.d.ts.map +1 -1
  114. package/lib/data/evm/10/index.js +3 -9
  115. package/lib/data/evm/10/index.js.map +1 -1
  116. package/lib/data/evm/106/index.d.ts +5 -4
  117. package/lib/data/evm/106/index.d.ts.map +1 -1
  118. package/lib/data/evm/106/index.js +3 -9
  119. package/lib/data/evm/106/index.js.map +1 -1
  120. package/lib/data/evm/1088/index.d.ts +5 -4
  121. package/lib/data/evm/1088/index.d.ts.map +1 -1
  122. package/lib/data/evm/1088/index.js +3 -9
  123. package/lib/data/evm/1088/index.js.map +1 -1
  124. package/lib/data/evm/1101/index.d.ts +5 -4
  125. package/lib/data/evm/1101/index.d.ts.map +1 -1
  126. package/lib/data/evm/1101/index.js +3 -9
  127. package/lib/data/evm/1101/index.js.map +1 -1
  128. package/lib/data/evm/11155111/index.d.ts +5 -4
  129. package/lib/data/evm/11155111/index.d.ts.map +1 -1
  130. package/lib/data/evm/11155111/index.js +3 -9
  131. package/lib/data/evm/11155111/index.js.map +1 -1
  132. package/lib/data/evm/1284/index.d.ts +5 -4
  133. package/lib/data/evm/1284/index.d.ts.map +1 -1
  134. package/lib/data/evm/1284/index.js +3 -9
  135. package/lib/data/evm/1284/index.js.map +1 -1
  136. package/lib/data/evm/137/index.d.ts +5 -4
  137. package/lib/data/evm/137/index.d.ts.map +1 -1
  138. package/lib/data/evm/137/index.js +3 -9
  139. package/lib/data/evm/137/index.js.map +1 -1
  140. package/lib/data/evm/1442/index.d.ts +5 -4
  141. package/lib/data/evm/1442/index.d.ts.map +1 -1
  142. package/lib/data/evm/1442/index.js +3 -9
  143. package/lib/data/evm/1442/index.js.map +1 -1
  144. package/lib/data/evm/199/index.d.ts +5 -4
  145. package/lib/data/evm/199/index.d.ts.map +1 -1
  146. package/lib/data/evm/199/index.js +3 -9
  147. package/lib/data/evm/199/index.js.map +1 -1
  148. package/lib/data/evm/245022934/index.d.ts +5 -4
  149. package/lib/data/evm/245022934/index.d.ts.map +1 -1
  150. package/lib/data/evm/245022934/index.js +3 -9
  151. package/lib/data/evm/245022934/index.js.map +1 -1
  152. package/lib/data/evm/246/index.d.ts +5 -4
  153. package/lib/data/evm/246/index.d.ts.map +1 -1
  154. package/lib/data/evm/246/index.js +3 -9
  155. package/lib/data/evm/246/index.js.map +1 -1
  156. package/lib/data/evm/25/index.d.ts +5 -4
  157. package/lib/data/evm/25/index.d.ts.map +1 -1
  158. package/lib/data/evm/25/index.js +3 -9
  159. package/lib/data/evm/25/index.js.map +1 -1
  160. package/lib/data/evm/250/index.d.ts +5 -4
  161. package/lib/data/evm/250/index.d.ts.map +1 -1
  162. package/lib/data/evm/250/index.js +3 -9
  163. package/lib/data/evm/250/index.js.map +1 -1
  164. package/lib/data/evm/3/index.d.ts +5 -4
  165. package/lib/data/evm/3/index.d.ts.map +1 -1
  166. package/lib/data/evm/3/index.js +3 -9
  167. package/lib/data/evm/3/index.js.map +1 -1
  168. package/lib/data/evm/30/index.d.ts +5 -4
  169. package/lib/data/evm/30/index.d.ts.map +1 -1
  170. package/lib/data/evm/30/index.js +3 -9
  171. package/lib/data/evm/30/index.js.map +1 -1
  172. package/lib/data/evm/40/index.d.ts +5 -4
  173. package/lib/data/evm/40/index.d.ts.map +1 -1
  174. package/lib/data/evm/40/index.js +3 -9
  175. package/lib/data/evm/40/index.js.map +1 -1
  176. package/lib/data/evm/420/index.d.ts +5 -4
  177. package/lib/data/evm/420/index.d.ts.map +1 -1
  178. package/lib/data/evm/420/index.js +3 -9
  179. package/lib/data/evm/420/index.js.map +1 -1
  180. package/lib/data/evm/42161/index.d.ts +5 -4
  181. package/lib/data/evm/42161/index.d.ts.map +1 -1
  182. package/lib/data/evm/42161/index.js +3 -9
  183. package/lib/data/evm/42161/index.js.map +1 -1
  184. package/lib/data/evm/43114/index.d.ts +5 -4
  185. package/lib/data/evm/43114/index.d.ts.map +1 -1
  186. package/lib/data/evm/43114/index.js +3 -9
  187. package/lib/data/evm/43114/index.js.map +1 -1
  188. package/lib/data/evm/5/index.d.ts +5 -4
  189. package/lib/data/evm/5/index.d.ts.map +1 -1
  190. package/lib/data/evm/5/index.js +3 -9
  191. package/lib/data/evm/5/index.js.map +1 -1
  192. package/lib/data/evm/56/index.d.ts +5 -4
  193. package/lib/data/evm/56/index.d.ts.map +1 -1
  194. package/lib/data/evm/56/index.js +3 -9
  195. package/lib/data/evm/56/index.js.map +1 -1
  196. package/lib/data/evm/57/index.d.ts +5 -4
  197. package/lib/data/evm/57/index.d.ts.map +1 -1
  198. package/lib/data/evm/57/index.js +3 -9
  199. package/lib/data/evm/57/index.js.map +1 -1
  200. package/lib/data/evm/59144/index.d.ts +5 -4
  201. package/lib/data/evm/59144/index.d.ts.map +1 -1
  202. package/lib/data/evm/59144/index.js +3 -9
  203. package/lib/data/evm/59144/index.js.map +1 -1
  204. package/lib/data/evm/592/index.d.ts +5 -4
  205. package/lib/data/evm/592/index.d.ts.map +1 -1
  206. package/lib/data/evm/592/index.js +3 -9
  207. package/lib/data/evm/592/index.js.map +1 -1
  208. package/lib/data/evm/8217/index.d.ts +5 -4
  209. package/lib/data/evm/8217/index.d.ts.map +1 -1
  210. package/lib/data/evm/8217/index.js +3 -9
  211. package/lib/data/evm/8217/index.js.map +1 -1
  212. package/lib/data/evm/8453/index.d.ts +5 -4
  213. package/lib/data/evm/8453/index.d.ts.map +1 -1
  214. package/lib/data/evm/8453/index.js +3 -9
  215. package/lib/data/evm/8453/index.js.map +1 -1
  216. package/lib/data/evm/index.d.ts +0 -116
  217. package/lib/data/evm/index.d.ts.map +1 -1
  218. package/lib/data/evm/index.js +1 -115
  219. package/lib/data/evm/index.js.map +1 -1
  220. package/lib/data/exchange/bep20.d.ts +0 -1
  221. package/lib/data/exchange/bep20.d.ts.map +1 -1
  222. package/lib/data/exchange/bep20.js +0 -3
  223. package/lib/data/exchange/bep20.js.map +1 -1
  224. package/lib/data/exchange/coins.d.ts +0 -1
  225. package/lib/data/exchange/coins.d.ts.map +1 -1
  226. package/lib/data/exchange/coins.js +0 -3
  227. package/lib/data/exchange/coins.js.map +1 -1
  228. package/lib/data/exchange/erc20.d.ts +0 -1
  229. package/lib/data/exchange/erc20.d.ts.map +1 -1
  230. package/lib/data/exchange/erc20.js +0 -3
  231. package/lib/data/exchange/erc20.js.map +1 -1
  232. package/lib/data/polygon-erc20.d.ts +0 -1
  233. package/lib/data/polygon-erc20.d.ts.map +1 -1
  234. package/lib/data/polygon-erc20.js +0 -3
  235. package/lib/data/polygon-erc20.js.map +1 -1
  236. package/lib/data/spl.d.ts +0 -1
  237. package/lib/data/spl.d.ts.map +1 -1
  238. package/lib/data/spl.js +0 -3
  239. package/lib/data/spl.js.map +1 -1
  240. package/lib/data/stellar.d.ts +0 -1
  241. package/lib/data/stellar.d.ts.map +1 -1
  242. package/lib/data/stellar.js +0 -3
  243. package/lib/data/stellar.js.map +1 -1
  244. package/lib/data/trc20.d.ts +0 -1
  245. package/lib/data/trc20.d.ts.map +1 -1
  246. package/lib/data/trc20.js +0 -3
  247. package/lib/data/trc20.js.map +1 -1
  248. package/lib/exchange.d.ts.map +1 -1
  249. package/lib/exchange.js +1 -2
  250. package/lib/exchange.js.map +1 -1
  251. package/lib-es/crypto-assets-importer/exchange/bep20.d.ts.map +1 -1
  252. package/lib-es/crypto-assets-importer/exchange/bep20.js +1 -7
  253. package/lib-es/crypto-assets-importer/exchange/bep20.js.map +1 -1
  254. package/lib-es/crypto-assets-importer/exchange/coins.d.ts.map +1 -1
  255. package/lib-es/crypto-assets-importer/exchange/coins.js +1 -7
  256. package/lib-es/crypto-assets-importer/exchange/coins.js.map +1 -1
  257. package/lib-es/crypto-assets-importer/exchange/erc20.d.ts.map +1 -1
  258. package/lib-es/crypto-assets-importer/exchange/erc20.js +1 -7
  259. package/lib-es/crypto-assets-importer/exchange/erc20.js.map +1 -1
  260. package/lib-es/crypto-assets-importer/fetch/fetch.test.js +2 -3
  261. package/lib-es/crypto-assets-importer/fetch/fetch.test.js.map +1 -1
  262. package/lib-es/crypto-assets-importer/fetch/index.d.ts +1 -1
  263. package/lib-es/crypto-assets-importer/fetch/index.d.ts.map +1 -1
  264. package/lib-es/crypto-assets-importer/fetch/index.js +2 -2
  265. package/lib-es/crypto-assets-importer/fetch/index.js.map +1 -1
  266. package/lib-es/crypto-assets-importer/importers/asa/asa.test.js +2 -5
  267. package/lib-es/crypto-assets-importer/importers/asa/asa.test.js.map +1 -1
  268. package/lib-es/crypto-assets-importer/importers/asa/index.d.ts.map +1 -1
  269. package/lib-es/crypto-assets-importer/importers/asa/index.js +1 -6
  270. package/lib-es/crypto-assets-importer/importers/asa/index.js.map +1 -1
  271. package/lib-es/crypto-assets-importer/importers/bep20/bep20.test.js +2 -5
  272. package/lib-es/crypto-assets-importer/importers/bep20/bep20.test.js.map +1 -1
  273. package/lib-es/crypto-assets-importer/importers/bep20/index.d.ts.map +1 -1
  274. package/lib-es/crypto-assets-importer/importers/bep20/index.js +2 -7
  275. package/lib-es/crypto-assets-importer/importers/bep20/index.js.map +1 -1
  276. package/lib-es/crypto-assets-importer/importers/cardanoNative/cardanoNative.test.js +2 -5
  277. package/lib-es/crypto-assets-importer/importers/cardanoNative/cardanoNative.test.js.map +1 -1
  278. package/lib-es/crypto-assets-importer/importers/cardanoNative/index.d.ts.map +1 -1
  279. package/lib-es/crypto-assets-importer/importers/cardanoNative/index.js +2 -7
  280. package/lib-es/crypto-assets-importer/importers/cardanoNative/index.js.map +1 -1
  281. package/lib-es/crypto-assets-importer/importers/eip712/eip712.test.js +3 -7
  282. package/lib-es/crypto-assets-importer/importers/eip712/eip712.test.js.map +1 -1
  283. package/lib-es/crypto-assets-importer/importers/eip712/index.d.ts.map +1 -1
  284. package/lib-es/crypto-assets-importer/importers/eip712/index.js +2 -8
  285. package/lib-es/crypto-assets-importer/importers/eip712/index.js.map +1 -1
  286. package/lib-es/crypto-assets-importer/importers/erc20/erc20.test.js +2 -5
  287. package/lib-es/crypto-assets-importer/importers/erc20/erc20.test.js.map +1 -1
  288. package/lib-es/crypto-assets-importer/importers/erc20/index.d.ts.map +1 -1
  289. package/lib-es/crypto-assets-importer/importers/erc20/index.js +1 -6
  290. package/lib-es/crypto-assets-importer/importers/erc20/index.js.map +1 -1
  291. package/lib-es/crypto-assets-importer/importers/erc20-signature/erc20-signature.test.js +3 -9
  292. package/lib-es/crypto-assets-importer/importers/erc20-signature/erc20-signature.test.js.map +1 -1
  293. package/lib-es/crypto-assets-importer/importers/erc20-signature/index.d.ts.map +1 -1
  294. package/lib-es/crypto-assets-importer/importers/erc20-signature/index.js +2 -10
  295. package/lib-es/crypto-assets-importer/importers/erc20-signature/index.js.map +1 -1
  296. package/lib-es/crypto-assets-importer/importers/esdt/esdt.test.js +2 -5
  297. package/lib-es/crypto-assets-importer/importers/esdt/esdt.test.js.map +1 -1
  298. package/lib-es/crypto-assets-importer/importers/esdt/index.d.ts.map +1 -1
  299. package/lib-es/crypto-assets-importer/importers/esdt/index.js +1 -6
  300. package/lib-es/crypto-assets-importer/importers/esdt/index.js.map +1 -1
  301. package/lib-es/crypto-assets-importer/importers/evm/evm.test.js +8 -10
  302. package/lib-es/crypto-assets-importer/importers/evm/evm.test.js.map +1 -1
  303. package/lib-es/crypto-assets-importer/importers/evm/index.d.ts.map +1 -1
  304. package/lib-es/crypto-assets-importer/importers/evm/index.js +6 -50
  305. package/lib-es/crypto-assets-importer/importers/evm/index.js.map +1 -1
  306. package/lib-es/crypto-assets-importer/importers/polygon/index.d.ts.map +1 -1
  307. package/lib-es/crypto-assets-importer/importers/polygon/index.js +1 -6
  308. package/lib-es/crypto-assets-importer/importers/polygon/index.js.map +1 -1
  309. package/lib-es/crypto-assets-importer/importers/polygon/polygon.test.js +2 -5
  310. package/lib-es/crypto-assets-importer/importers/polygon/polygon.test.js.map +1 -1
  311. package/lib-es/crypto-assets-importer/importers/spl/index.d.ts.map +1 -1
  312. package/lib-es/crypto-assets-importer/importers/spl/index.js +1 -6
  313. package/lib-es/crypto-assets-importer/importers/spl/index.js.map +1 -1
  314. package/lib-es/crypto-assets-importer/importers/spl/spl.test.js +2 -5
  315. package/lib-es/crypto-assets-importer/importers/spl/spl.test.js.map +1 -1
  316. package/lib-es/crypto-assets-importer/importers/stellar/index.d.ts.map +1 -1
  317. package/lib-es/crypto-assets-importer/importers/stellar/index.js +1 -6
  318. package/lib-es/crypto-assets-importer/importers/stellar/index.js.map +1 -1
  319. package/lib-es/crypto-assets-importer/importers/stellar/stellar.test.js +2 -5
  320. package/lib-es/crypto-assets-importer/importers/stellar/stellar.test.js.map +1 -1
  321. package/lib-es/crypto-assets-importer/importers/trc20/index.d.ts.map +1 -1
  322. package/lib-es/crypto-assets-importer/importers/trc20/index.js +1 -6
  323. package/lib-es/crypto-assets-importer/importers/trc20/index.js.map +1 -1
  324. package/lib-es/crypto-assets-importer/importers/trc20/trc20.test.js +2 -5
  325. package/lib-es/crypto-assets-importer/importers/trc20/trc20.test.js.map +1 -1
  326. package/lib-es/crypto-assets-importer/index.js +0 -2
  327. package/lib-es/crypto-assets-importer/index.js.map +1 -1
  328. package/lib-es/data/asa.d.ts +0 -1
  329. package/lib-es/data/asa.d.ts.map +1 -1
  330. package/lib-es/data/asa.js +0 -1
  331. package/lib-es/data/asa.js.map +1 -1
  332. package/lib-es/data/bep20.d.ts +0 -1
  333. package/lib-es/data/bep20.d.ts.map +1 -1
  334. package/lib-es/data/bep20.js +0 -1
  335. package/lib-es/data/bep20.js.map +1 -1
  336. package/lib-es/data/cardanoNative.d.ts +0 -1
  337. package/lib-es/data/cardanoNative.d.ts.map +1 -1
  338. package/lib-es/data/cardanoNative.js +0 -1
  339. package/lib-es/data/cardanoNative.js.map +1 -1
  340. package/lib-es/data/eip712.d.ts +747 -3
  341. package/lib-es/data/eip712.d.ts.map +1 -1
  342. package/lib-es/data/eip712.js +2040 -3
  343. package/lib-es/data/eip712.js.map +1 -1
  344. package/lib-es/data/erc20-signatures.d.ts +2 -3
  345. package/lib-es/data/erc20-signatures.d.ts.map +1 -1
  346. package/lib-es/data/erc20-signatures.js +1 -3
  347. package/lib-es/data/erc20-signatures.js.map +1 -1
  348. package/lib-es/data/erc20.d.ts +0 -1
  349. package/lib-es/data/erc20.d.ts.map +1 -1
  350. package/lib-es/data/erc20.js +0 -1
  351. package/lib-es/data/erc20.js.map +1 -1
  352. package/lib-es/data/esdt.d.ts +0 -1
  353. package/lib-es/data/esdt.d.ts.map +1 -1
  354. package/lib-es/data/esdt.js +0 -1
  355. package/lib-es/data/esdt.js.map +1 -1
  356. package/lib-es/data/evm/1/index.d.ts +5 -4
  357. package/lib-es/data/evm/1/index.d.ts.map +1 -1
  358. package/lib-es/data/evm/1/index.js +3 -4
  359. package/lib-es/data/evm/1/index.js.map +1 -1
  360. package/lib-es/data/evm/10/index.d.ts +5 -4
  361. package/lib-es/data/evm/10/index.d.ts.map +1 -1
  362. package/lib-es/data/evm/10/index.js +3 -4
  363. package/lib-es/data/evm/10/index.js.map +1 -1
  364. package/lib-es/data/evm/106/index.d.ts +5 -4
  365. package/lib-es/data/evm/106/index.d.ts.map +1 -1
  366. package/lib-es/data/evm/106/index.js +3 -4
  367. package/lib-es/data/evm/106/index.js.map +1 -1
  368. package/lib-es/data/evm/1088/index.d.ts +5 -4
  369. package/lib-es/data/evm/1088/index.d.ts.map +1 -1
  370. package/lib-es/data/evm/1088/index.js +3 -4
  371. package/lib-es/data/evm/1088/index.js.map +1 -1
  372. package/lib-es/data/evm/1101/index.d.ts +5 -4
  373. package/lib-es/data/evm/1101/index.d.ts.map +1 -1
  374. package/lib-es/data/evm/1101/index.js +3 -4
  375. package/lib-es/data/evm/1101/index.js.map +1 -1
  376. package/lib-es/data/evm/11155111/index.d.ts +5 -4
  377. package/lib-es/data/evm/11155111/index.d.ts.map +1 -1
  378. package/lib-es/data/evm/11155111/index.js +3 -4
  379. package/lib-es/data/evm/11155111/index.js.map +1 -1
  380. package/lib-es/data/evm/1284/index.d.ts +5 -4
  381. package/lib-es/data/evm/1284/index.d.ts.map +1 -1
  382. package/lib-es/data/evm/1284/index.js +3 -4
  383. package/lib-es/data/evm/1284/index.js.map +1 -1
  384. package/lib-es/data/evm/137/index.d.ts +5 -4
  385. package/lib-es/data/evm/137/index.d.ts.map +1 -1
  386. package/lib-es/data/evm/137/index.js +3 -4
  387. package/lib-es/data/evm/137/index.js.map +1 -1
  388. package/lib-es/data/evm/1442/index.d.ts +5 -4
  389. package/lib-es/data/evm/1442/index.d.ts.map +1 -1
  390. package/lib-es/data/evm/1442/index.js +3 -4
  391. package/lib-es/data/evm/1442/index.js.map +1 -1
  392. package/lib-es/data/evm/199/index.d.ts +5 -4
  393. package/lib-es/data/evm/199/index.d.ts.map +1 -1
  394. package/lib-es/data/evm/199/index.js +3 -4
  395. package/lib-es/data/evm/199/index.js.map +1 -1
  396. package/lib-es/data/evm/245022934/index.d.ts +5 -4
  397. package/lib-es/data/evm/245022934/index.d.ts.map +1 -1
  398. package/lib-es/data/evm/245022934/index.js +3 -4
  399. package/lib-es/data/evm/245022934/index.js.map +1 -1
  400. package/lib-es/data/evm/246/index.d.ts +5 -4
  401. package/lib-es/data/evm/246/index.d.ts.map +1 -1
  402. package/lib-es/data/evm/246/index.js +3 -4
  403. package/lib-es/data/evm/246/index.js.map +1 -1
  404. package/lib-es/data/evm/25/index.d.ts +5 -4
  405. package/lib-es/data/evm/25/index.d.ts.map +1 -1
  406. package/lib-es/data/evm/25/index.js +3 -4
  407. package/lib-es/data/evm/25/index.js.map +1 -1
  408. package/lib-es/data/evm/250/index.d.ts +5 -4
  409. package/lib-es/data/evm/250/index.d.ts.map +1 -1
  410. package/lib-es/data/evm/250/index.js +3 -4
  411. package/lib-es/data/evm/250/index.js.map +1 -1
  412. package/lib-es/data/evm/3/index.d.ts +5 -4
  413. package/lib-es/data/evm/3/index.d.ts.map +1 -1
  414. package/lib-es/data/evm/3/index.js +3 -4
  415. package/lib-es/data/evm/3/index.js.map +1 -1
  416. package/lib-es/data/evm/30/index.d.ts +5 -4
  417. package/lib-es/data/evm/30/index.d.ts.map +1 -1
  418. package/lib-es/data/evm/30/index.js +3 -4
  419. package/lib-es/data/evm/30/index.js.map +1 -1
  420. package/lib-es/data/evm/40/index.d.ts +5 -4
  421. package/lib-es/data/evm/40/index.d.ts.map +1 -1
  422. package/lib-es/data/evm/40/index.js +3 -4
  423. package/lib-es/data/evm/40/index.js.map +1 -1
  424. package/lib-es/data/evm/420/index.d.ts +5 -4
  425. package/lib-es/data/evm/420/index.d.ts.map +1 -1
  426. package/lib-es/data/evm/420/index.js +3 -4
  427. package/lib-es/data/evm/420/index.js.map +1 -1
  428. package/lib-es/data/evm/42161/index.d.ts +5 -4
  429. package/lib-es/data/evm/42161/index.d.ts.map +1 -1
  430. package/lib-es/data/evm/42161/index.js +3 -4
  431. package/lib-es/data/evm/42161/index.js.map +1 -1
  432. package/lib-es/data/evm/43114/index.d.ts +5 -4
  433. package/lib-es/data/evm/43114/index.d.ts.map +1 -1
  434. package/lib-es/data/evm/43114/index.js +3 -4
  435. package/lib-es/data/evm/43114/index.js.map +1 -1
  436. package/lib-es/data/evm/5/index.d.ts +5 -4
  437. package/lib-es/data/evm/5/index.d.ts.map +1 -1
  438. package/lib-es/data/evm/5/index.js +3 -4
  439. package/lib-es/data/evm/5/index.js.map +1 -1
  440. package/lib-es/data/evm/56/index.d.ts +5 -4
  441. package/lib-es/data/evm/56/index.d.ts.map +1 -1
  442. package/lib-es/data/evm/56/index.js +3 -4
  443. package/lib-es/data/evm/56/index.js.map +1 -1
  444. package/lib-es/data/evm/57/index.d.ts +5 -4
  445. package/lib-es/data/evm/57/index.d.ts.map +1 -1
  446. package/lib-es/data/evm/57/index.js +3 -4
  447. package/lib-es/data/evm/57/index.js.map +1 -1
  448. package/lib-es/data/evm/59144/index.d.ts +5 -4
  449. package/lib-es/data/evm/59144/index.d.ts.map +1 -1
  450. package/lib-es/data/evm/59144/index.js +3 -4
  451. package/lib-es/data/evm/59144/index.js.map +1 -1
  452. package/lib-es/data/evm/592/index.d.ts +5 -4
  453. package/lib-es/data/evm/592/index.d.ts.map +1 -1
  454. package/lib-es/data/evm/592/index.js +3 -4
  455. package/lib-es/data/evm/592/index.js.map +1 -1
  456. package/lib-es/data/evm/8217/index.d.ts +5 -4
  457. package/lib-es/data/evm/8217/index.d.ts.map +1 -1
  458. package/lib-es/data/evm/8217/index.js +3 -4
  459. package/lib-es/data/evm/8217/index.js.map +1 -1
  460. package/lib-es/data/evm/8453/index.d.ts +5 -4
  461. package/lib-es/data/evm/8453/index.d.ts.map +1 -1
  462. package/lib-es/data/evm/8453/index.js +3 -4
  463. package/lib-es/data/evm/8453/index.js.map +1 -1
  464. package/lib-es/data/evm/index.d.ts +0 -116
  465. package/lib-es/data/evm/index.d.ts.map +1 -1
  466. package/lib-es/data/evm/index.js +0 -114
  467. package/lib-es/data/evm/index.js.map +1 -1
  468. package/lib-es/data/exchange/bep20.d.ts +0 -1
  469. package/lib-es/data/exchange/bep20.d.ts.map +1 -1
  470. package/lib-es/data/exchange/bep20.js +0 -1
  471. package/lib-es/data/exchange/bep20.js.map +1 -1
  472. package/lib-es/data/exchange/coins.d.ts +0 -1
  473. package/lib-es/data/exchange/coins.d.ts.map +1 -1
  474. package/lib-es/data/exchange/coins.js +0 -1
  475. package/lib-es/data/exchange/coins.js.map +1 -1
  476. package/lib-es/data/exchange/erc20.d.ts +0 -1
  477. package/lib-es/data/exchange/erc20.d.ts.map +1 -1
  478. package/lib-es/data/exchange/erc20.js +0 -1
  479. package/lib-es/data/exchange/erc20.js.map +1 -1
  480. package/lib-es/data/polygon-erc20.d.ts +0 -1
  481. package/lib-es/data/polygon-erc20.d.ts.map +1 -1
  482. package/lib-es/data/polygon-erc20.js +0 -1
  483. package/lib-es/data/polygon-erc20.js.map +1 -1
  484. package/lib-es/data/spl.d.ts +0 -1
  485. package/lib-es/data/spl.d.ts.map +1 -1
  486. package/lib-es/data/spl.js +0 -1
  487. package/lib-es/data/spl.js.map +1 -1
  488. package/lib-es/data/stellar.d.ts +0 -1
  489. package/lib-es/data/stellar.d.ts.map +1 -1
  490. package/lib-es/data/stellar.js +0 -1
  491. package/lib-es/data/stellar.js.map +1 -1
  492. package/lib-es/data/trc20.d.ts +0 -1
  493. package/lib-es/data/trc20.d.ts.map +1 -1
  494. package/lib-es/data/trc20.js +0 -1
  495. package/lib-es/data/trc20.js.map +1 -1
  496. package/lib-es/exchange.d.ts.map +1 -1
  497. package/lib-es/exchange.js +1 -2
  498. package/lib-es/exchange.js.map +1 -1
  499. package/package.json +2 -2
  500. package/src/crypto-assets-importer/exchange/bep20.ts +1 -7
  501. package/src/crypto-assets-importer/exchange/coins.ts +1 -7
  502. package/src/crypto-assets-importer/exchange/erc20.ts +1 -7
  503. package/src/crypto-assets-importer/fetch/fetch.test.ts +2 -5
  504. package/src/crypto-assets-importer/fetch/index.ts +3 -3
  505. package/src/crypto-assets-importer/importers/asa/asa.test.ts +2 -7
  506. package/src/crypto-assets-importer/importers/asa/index.ts +1 -7
  507. package/src/crypto-assets-importer/importers/bep20/bep20.test.ts +2 -7
  508. package/src/crypto-assets-importer/importers/bep20/index.ts +3 -8
  509. package/src/crypto-assets-importer/importers/cardanoNative/cardanoNative.test.ts +2 -11
  510. package/src/crypto-assets-importer/importers/cardanoNative/index.ts +2 -9
  511. package/src/crypto-assets-importer/importers/eip712/eip712.test.ts +3 -9
  512. package/src/crypto-assets-importer/importers/eip712/index.ts +2 -9
  513. package/src/crypto-assets-importer/importers/erc20/erc20.test.ts +2 -7
  514. package/src/crypto-assets-importer/importers/erc20/index.ts +1 -6
  515. package/src/crypto-assets-importer/importers/erc20-signature/erc20-signature.test.ts +3 -15
  516. package/src/crypto-assets-importer/importers/erc20-signature/index.ts +2 -11
  517. package/src/crypto-assets-importer/importers/esdt/esdt.test.ts +2 -7
  518. package/src/crypto-assets-importer/importers/esdt/index.ts +1 -7
  519. package/src/crypto-assets-importer/importers/evm/evm.test.ts +7 -17
  520. package/src/crypto-assets-importer/importers/evm/index.ts +6 -66
  521. package/src/crypto-assets-importer/importers/polygon/index.ts +1 -6
  522. package/src/crypto-assets-importer/importers/polygon/polygon.test.ts +2 -11
  523. package/src/crypto-assets-importer/importers/spl/index.ts +1 -6
  524. package/src/crypto-assets-importer/importers/spl/spl.test.ts +2 -7
  525. package/src/crypto-assets-importer/importers/stellar/index.ts +1 -7
  526. package/src/crypto-assets-importer/importers/stellar/stellar.test.ts +2 -7
  527. package/src/crypto-assets-importer/importers/trc20/index.ts +1 -7
  528. package/src/crypto-assets-importer/importers/trc20/trc20.test.ts +2 -7
  529. package/src/crypto-assets-importer/index.ts +0 -2
  530. package/src/data/asa.ts +0 -2
  531. package/src/data/bep20.ts +0 -2
  532. package/src/data/cardanoNative.ts +0 -2
  533. package/src/data/eip712.ts +2040 -3
  534. package/src/data/erc20-signatures.ts +1 -5
  535. package/src/data/erc20.ts +0 -2
  536. package/src/data/esdt.ts +0 -2
  537. package/src/data/evm/1/index.ts +4 -4
  538. package/src/data/evm/10/index.ts +4 -4
  539. package/src/data/evm/106/index.ts +4 -4
  540. package/src/data/evm/1088/index.ts +4 -4
  541. package/src/data/evm/1101/index.ts +4 -4
  542. package/src/data/evm/11155111/index.ts +4 -4
  543. package/src/data/evm/1284/index.ts +4 -4
  544. package/src/data/evm/137/index.ts +4 -4
  545. package/src/data/evm/1442/index.ts +4 -4
  546. package/src/data/evm/199/index.ts +4 -4
  547. package/src/data/evm/245022934/index.ts +4 -4
  548. package/src/data/evm/246/index.ts +4 -4
  549. package/src/data/evm/25/index.ts +4 -4
  550. package/src/data/evm/250/index.ts +4 -4
  551. package/src/data/evm/3/index.ts +4 -4
  552. package/src/data/evm/30/index.ts +4 -4
  553. package/src/data/evm/40/index.ts +4 -4
  554. package/src/data/evm/420/index.ts +4 -4
  555. package/src/data/evm/42161/index.ts +4 -4
  556. package/src/data/evm/43114/index.ts +4 -4
  557. package/src/data/evm/5/index.ts +4 -4
  558. package/src/data/evm/56/index.ts +4 -4
  559. package/src/data/evm/57/index.ts +4 -4
  560. package/src/data/evm/59144/index.ts +4 -4
  561. package/src/data/evm/592/index.ts +4 -4
  562. package/src/data/evm/8217/index.ts +4 -4
  563. package/src/data/evm/8453/index.ts +4 -4
  564. package/src/data/evm/index.ts +0 -118
  565. package/src/data/exchange/bep20.ts +0 -2
  566. package/src/data/exchange/coins.ts +0 -2
  567. package/src/data/exchange/erc20.ts +0 -2
  568. package/src/data/polygon-erc20.ts +0 -2
  569. package/src/data/spl.ts +0 -2
  570. package/src/data/stellar.ts +0 -2
  571. package/src/data/trc20.ts +0 -2
  572. package/src/exchange.ts +1 -2
  573. package/lib/crypto-assets-importer/exchange/trc20.d.ts +0 -2
  574. package/lib/crypto-assets-importer/exchange/trc20.d.ts.map +0 -1
  575. package/lib/crypto-assets-importer/exchange/trc20.js +0 -39
  576. package/lib/crypto-assets-importer/exchange/trc20.js.map +0 -1
  577. package/lib/data/asa-hash.json +0 -1
  578. package/lib/data/bep20-hash.json +0 -1
  579. package/lib/data/cardanoNative-hash.json +0 -1
  580. package/lib/data/eip712-hash.json +0 -1
  581. package/lib/data/eip712.json +0 -1
  582. package/lib/data/erc20-hash.json +0 -1
  583. package/lib/data/erc20-signatures-hash.json +0 -1
  584. package/lib/data/erc20-signatures.json +0 -1
  585. package/lib/data/esdt-hash.json +0 -1
  586. package/lib/data/evm/1/erc20-hash.json +0 -1
  587. package/lib/data/evm/1/erc20-signatures-hash.json +0 -1
  588. package/lib/data/evm/10/erc20-hash.json +0 -1
  589. package/lib/data/evm/10/erc20-signatures-hash.json +0 -1
  590. package/lib/data/evm/106/erc20-hash.json +0 -1
  591. package/lib/data/evm/106/erc20-signatures-hash.json +0 -1
  592. package/lib/data/evm/1088/erc20-hash.json +0 -1
  593. package/lib/data/evm/1088/erc20-signatures-hash.json +0 -1
  594. package/lib/data/evm/1101/erc20-hash.json +0 -1
  595. package/lib/data/evm/1101/erc20-signatures-hash.json +0 -1
  596. package/lib/data/evm/11155111/erc20-hash.json +0 -1
  597. package/lib/data/evm/11155111/erc20-signatures-hash.json +0 -1
  598. package/lib/data/evm/1284/erc20-hash.json +0 -1
  599. package/lib/data/evm/1284/erc20-signatures-hash.json +0 -1
  600. package/lib/data/evm/137/erc20-hash.json +0 -1
  601. package/lib/data/evm/137/erc20-signatures-hash.json +0 -1
  602. package/lib/data/evm/1442/erc20-hash.json +0 -1
  603. package/lib/data/evm/1442/erc20-signatures-hash.json +0 -1
  604. package/lib/data/evm/199/erc20-hash.json +0 -1
  605. package/lib/data/evm/199/erc20-signatures-hash.json +0 -1
  606. package/lib/data/evm/245022934/erc20-hash.json +0 -1
  607. package/lib/data/evm/245022934/erc20-signatures-hash.json +0 -1
  608. package/lib/data/evm/246/erc20-hash.json +0 -1
  609. package/lib/data/evm/246/erc20-signatures-hash.json +0 -1
  610. package/lib/data/evm/25/erc20-hash.json +0 -1
  611. package/lib/data/evm/25/erc20-signatures-hash.json +0 -1
  612. package/lib/data/evm/250/erc20-hash.json +0 -1
  613. package/lib/data/evm/250/erc20-signatures-hash.json +0 -1
  614. package/lib/data/evm/3/erc20-hash.json +0 -1
  615. package/lib/data/evm/3/erc20-signatures-hash.json +0 -1
  616. package/lib/data/evm/30/erc20-hash.json +0 -1
  617. package/lib/data/evm/30/erc20-signatures-hash.json +0 -1
  618. package/lib/data/evm/40/erc20-hash.json +0 -1
  619. package/lib/data/evm/40/erc20-signatures-hash.json +0 -1
  620. package/lib/data/evm/420/erc20-hash.json +0 -1
  621. package/lib/data/evm/420/erc20-signatures-hash.json +0 -1
  622. package/lib/data/evm/42161/erc20-hash.json +0 -1
  623. package/lib/data/evm/42161/erc20-signatures-hash.json +0 -1
  624. package/lib/data/evm/43114/erc20-hash.json +0 -1
  625. package/lib/data/evm/43114/erc20-signatures-hash.json +0 -1
  626. package/lib/data/evm/5/erc20-hash.json +0 -1
  627. package/lib/data/evm/5/erc20-signatures-hash.json +0 -1
  628. package/lib/data/evm/56/erc20-hash.json +0 -1
  629. package/lib/data/evm/56/erc20-signatures-hash.json +0 -1
  630. package/lib/data/evm/57/erc20-hash.json +0 -1
  631. package/lib/data/evm/57/erc20-signatures-hash.json +0 -1
  632. package/lib/data/evm/59144/erc20-hash.json +0 -1
  633. package/lib/data/evm/59144/erc20-signatures-hash.json +0 -1
  634. package/lib/data/evm/592/erc20-hash.json +0 -1
  635. package/lib/data/evm/592/erc20-signatures-hash.json +0 -1
  636. package/lib/data/evm/8217/erc20-hash.json +0 -1
  637. package/lib/data/evm/8217/erc20-signatures-hash.json +0 -1
  638. package/lib/data/evm/8453/erc20-hash.json +0 -1
  639. package/lib/data/evm/8453/erc20-signatures-hash.json +0 -1
  640. package/lib/data/exchange/bep20-hash.json +0 -1
  641. package/lib/data/exchange/coin-hash.json +0 -1
  642. package/lib/data/exchange/erc20-hash.json +0 -1
  643. package/lib/data/exchange/trc20.d.ts +0 -4
  644. package/lib/data/exchange/trc20.d.ts.map +0 -1
  645. package/lib/data/exchange/trc20.js +0 -8
  646. package/lib/data/exchange/trc20.js.map +0 -1
  647. package/lib/data/exchange/trc20.json +0 -1
  648. package/lib/data/polygon-erc20-hash.json +0 -1
  649. package/lib/data/spl-hash.json +0 -1
  650. package/lib/data/stellar-hash.json +0 -1
  651. package/lib/data/trc20-hash.json +0 -1
  652. package/lib-es/crypto-assets-importer/exchange/trc20.d.ts +0 -2
  653. package/lib-es/crypto-assets-importer/exchange/trc20.d.ts.map +0 -1
  654. package/lib-es/crypto-assets-importer/exchange/trc20.js +0 -32
  655. package/lib-es/crypto-assets-importer/exchange/trc20.js.map +0 -1
  656. package/lib-es/data/asa-hash.json +0 -1
  657. package/lib-es/data/bep20-hash.json +0 -1
  658. package/lib-es/data/cardanoNative-hash.json +0 -1
  659. package/lib-es/data/eip712-hash.json +0 -1
  660. package/lib-es/data/eip712.json +0 -1
  661. package/lib-es/data/erc20-hash.json +0 -1
  662. package/lib-es/data/erc20-signatures-hash.json +0 -1
  663. package/lib-es/data/erc20-signatures.json +0 -1
  664. package/lib-es/data/esdt-hash.json +0 -1
  665. package/lib-es/data/evm/1/erc20-hash.json +0 -1
  666. package/lib-es/data/evm/1/erc20-signatures-hash.json +0 -1
  667. package/lib-es/data/evm/10/erc20-hash.json +0 -1
  668. package/lib-es/data/evm/10/erc20-signatures-hash.json +0 -1
  669. package/lib-es/data/evm/106/erc20-hash.json +0 -1
  670. package/lib-es/data/evm/106/erc20-signatures-hash.json +0 -1
  671. package/lib-es/data/evm/1088/erc20-hash.json +0 -1
  672. package/lib-es/data/evm/1088/erc20-signatures-hash.json +0 -1
  673. package/lib-es/data/evm/1101/erc20-hash.json +0 -1
  674. package/lib-es/data/evm/1101/erc20-signatures-hash.json +0 -1
  675. package/lib-es/data/evm/11155111/erc20-hash.json +0 -1
  676. package/lib-es/data/evm/11155111/erc20-signatures-hash.json +0 -1
  677. package/lib-es/data/evm/1284/erc20-hash.json +0 -1
  678. package/lib-es/data/evm/1284/erc20-signatures-hash.json +0 -1
  679. package/lib-es/data/evm/137/erc20-hash.json +0 -1
  680. package/lib-es/data/evm/137/erc20-signatures-hash.json +0 -1
  681. package/lib-es/data/evm/1442/erc20-hash.json +0 -1
  682. package/lib-es/data/evm/1442/erc20-signatures-hash.json +0 -1
  683. package/lib-es/data/evm/199/erc20-hash.json +0 -1
  684. package/lib-es/data/evm/199/erc20-signatures-hash.json +0 -1
  685. package/lib-es/data/evm/245022934/erc20-hash.json +0 -1
  686. package/lib-es/data/evm/245022934/erc20-signatures-hash.json +0 -1
  687. package/lib-es/data/evm/246/erc20-hash.json +0 -1
  688. package/lib-es/data/evm/246/erc20-signatures-hash.json +0 -1
  689. package/lib-es/data/evm/25/erc20-hash.json +0 -1
  690. package/lib-es/data/evm/25/erc20-signatures-hash.json +0 -1
  691. package/lib-es/data/evm/250/erc20-hash.json +0 -1
  692. package/lib-es/data/evm/250/erc20-signatures-hash.json +0 -1
  693. package/lib-es/data/evm/3/erc20-hash.json +0 -1
  694. package/lib-es/data/evm/3/erc20-signatures-hash.json +0 -1
  695. package/lib-es/data/evm/30/erc20-hash.json +0 -1
  696. package/lib-es/data/evm/30/erc20-signatures-hash.json +0 -1
  697. package/lib-es/data/evm/40/erc20-hash.json +0 -1
  698. package/lib-es/data/evm/40/erc20-signatures-hash.json +0 -1
  699. package/lib-es/data/evm/420/erc20-hash.json +0 -1
  700. package/lib-es/data/evm/420/erc20-signatures-hash.json +0 -1
  701. package/lib-es/data/evm/42161/erc20-hash.json +0 -1
  702. package/lib-es/data/evm/42161/erc20-signatures-hash.json +0 -1
  703. package/lib-es/data/evm/43114/erc20-hash.json +0 -1
  704. package/lib-es/data/evm/43114/erc20-signatures-hash.json +0 -1
  705. package/lib-es/data/evm/5/erc20-hash.json +0 -1
  706. package/lib-es/data/evm/5/erc20-signatures-hash.json +0 -1
  707. package/lib-es/data/evm/56/erc20-hash.json +0 -1
  708. package/lib-es/data/evm/56/erc20-signatures-hash.json +0 -1
  709. package/lib-es/data/evm/57/erc20-hash.json +0 -1
  710. package/lib-es/data/evm/57/erc20-signatures-hash.json +0 -1
  711. package/lib-es/data/evm/59144/erc20-hash.json +0 -1
  712. package/lib-es/data/evm/59144/erc20-signatures-hash.json +0 -1
  713. package/lib-es/data/evm/592/erc20-hash.json +0 -1
  714. package/lib-es/data/evm/592/erc20-signatures-hash.json +0 -1
  715. package/lib-es/data/evm/8217/erc20-hash.json +0 -1
  716. package/lib-es/data/evm/8217/erc20-signatures-hash.json +0 -1
  717. package/lib-es/data/evm/8453/erc20-hash.json +0 -1
  718. package/lib-es/data/evm/8453/erc20-signatures-hash.json +0 -1
  719. package/lib-es/data/exchange/bep20-hash.json +0 -1
  720. package/lib-es/data/exchange/coin-hash.json +0 -1
  721. package/lib-es/data/exchange/erc20-hash.json +0 -1
  722. package/lib-es/data/exchange/trc20.d.ts +0 -4
  723. package/lib-es/data/exchange/trc20.d.ts.map +0 -1
  724. package/lib-es/data/exchange/trc20.js +0 -3
  725. package/lib-es/data/exchange/trc20.js.map +0 -1
  726. package/lib-es/data/exchange/trc20.json +0 -1
  727. package/lib-es/data/polygon-erc20-hash.json +0 -1
  728. package/lib-es/data/spl-hash.json +0 -1
  729. package/lib-es/data/stellar-hash.json +0 -1
  730. package/lib-es/data/trc20-hash.json +0 -1
  731. package/src/crypto-assets-importer/exchange/trc20.ts +0 -30
  732. package/src/data/asa-hash.json +0 -1
  733. package/src/data/bep20-hash.json +0 -1
  734. package/src/data/cardanoNative-hash.json +0 -1
  735. package/src/data/eip712-hash.json +0 -1
  736. package/src/data/erc20-hash.json +0 -1
  737. package/src/data/erc20-signatures-hash.json +0 -1
  738. package/src/data/esdt-hash.json +0 -1
  739. package/src/data/evm/1/erc20-hash.json +0 -1
  740. package/src/data/evm/1/erc20-signatures-hash.json +0 -1
  741. package/src/data/evm/10/erc20-hash.json +0 -1
  742. package/src/data/evm/10/erc20-signatures-hash.json +0 -1
  743. package/src/data/evm/106/erc20-hash.json +0 -1
  744. package/src/data/evm/106/erc20-signatures-hash.json +0 -1
  745. package/src/data/evm/1088/erc20-hash.json +0 -1
  746. package/src/data/evm/1088/erc20-signatures-hash.json +0 -1
  747. package/src/data/evm/1101/erc20-hash.json +0 -1
  748. package/src/data/evm/1101/erc20-signatures-hash.json +0 -1
  749. package/src/data/evm/11155111/erc20-hash.json +0 -1
  750. package/src/data/evm/11155111/erc20-signatures-hash.json +0 -1
  751. package/src/data/evm/1284/erc20-hash.json +0 -1
  752. package/src/data/evm/1284/erc20-signatures-hash.json +0 -1
  753. package/src/data/evm/137/erc20-hash.json +0 -1
  754. package/src/data/evm/137/erc20-signatures-hash.json +0 -1
  755. package/src/data/evm/1442/erc20-hash.json +0 -1
  756. package/src/data/evm/1442/erc20-signatures-hash.json +0 -1
  757. package/src/data/evm/199/erc20-hash.json +0 -1
  758. package/src/data/evm/199/erc20-signatures-hash.json +0 -1
  759. package/src/data/evm/245022934/erc20-hash.json +0 -1
  760. package/src/data/evm/245022934/erc20-signatures-hash.json +0 -1
  761. package/src/data/evm/246/erc20-hash.json +0 -1
  762. package/src/data/evm/246/erc20-signatures-hash.json +0 -1
  763. package/src/data/evm/25/erc20-hash.json +0 -1
  764. package/src/data/evm/25/erc20-signatures-hash.json +0 -1
  765. package/src/data/evm/250/erc20-hash.json +0 -1
  766. package/src/data/evm/250/erc20-signatures-hash.json +0 -1
  767. package/src/data/evm/3/erc20-hash.json +0 -1
  768. package/src/data/evm/3/erc20-signatures-hash.json +0 -1
  769. package/src/data/evm/30/erc20-hash.json +0 -1
  770. package/src/data/evm/30/erc20-signatures-hash.json +0 -1
  771. package/src/data/evm/40/erc20-hash.json +0 -1
  772. package/src/data/evm/40/erc20-signatures-hash.json +0 -1
  773. package/src/data/evm/420/erc20-hash.json +0 -1
  774. package/src/data/evm/420/erc20-signatures-hash.json +0 -1
  775. package/src/data/evm/42161/erc20-hash.json +0 -1
  776. package/src/data/evm/42161/erc20-signatures-hash.json +0 -1
  777. package/src/data/evm/43114/erc20-hash.json +0 -1
  778. package/src/data/evm/43114/erc20-signatures-hash.json +0 -1
  779. package/src/data/evm/5/erc20-hash.json +0 -1
  780. package/src/data/evm/5/erc20-signatures-hash.json +0 -1
  781. package/src/data/evm/56/erc20-hash.json +0 -1
  782. package/src/data/evm/56/erc20-signatures-hash.json +0 -1
  783. package/src/data/evm/57/erc20-hash.json +0 -1
  784. package/src/data/evm/57/erc20-signatures-hash.json +0 -1
  785. package/src/data/evm/59144/erc20-hash.json +0 -1
  786. package/src/data/evm/59144/erc20-signatures-hash.json +0 -1
  787. package/src/data/evm/592/erc20-hash.json +0 -1
  788. package/src/data/evm/592/erc20-signatures-hash.json +0 -1
  789. package/src/data/evm/8217/erc20-hash.json +0 -1
  790. package/src/data/evm/8217/erc20-signatures-hash.json +0 -1
  791. package/src/data/evm/8453/erc20-hash.json +0 -1
  792. package/src/data/evm/8453/erc20-signatures-hash.json +0 -1
  793. package/src/data/exchange/bep20-hash.json +0 -1
  794. package/src/data/exchange/coin-hash.json +0 -1
  795. package/src/data/exchange/erc20-hash.json +0 -1
  796. package/src/data/exchange/trc20.json +0 -1
  797. package/src/data/exchange/trc20.ts +0 -5
  798. package/src/data/polygon-erc20-hash.json +0 -1
  799. package/src/data/spl-hash.json +0 -1
  800. package/src/data/stellar-hash.json +0 -1
  801. package/src/data/trc20-hash.json +0 -1
@@ -16,15 +16,9 @@ type CardanoNativeToken = [
16
16
  export const importCardanoNativeTokens = async (outputDir: string) => {
17
17
  try {
18
18
  console.log("importing cardanoNative tokens...");
19
- const [cardanoNativeTokens, hash] =
20
- await fetchTokens<CardanoNativeToken[]>("cardanoNative.json");
19
+ const cardanoNativeTokens = await fetchTokens<CardanoNativeToken[]>("cardanoNative.json");
21
20
  const filePath = path.join(outputDir, "cardanoNative");
22
21
 
23
- fs.writeFileSync(`${filePath}.json`, JSON.stringify(cardanoNativeTokens));
24
- if (hash) {
25
- fs.writeFileSync(`${filePath}-hash.json`, JSON.stringify(hash));
26
- }
27
-
28
22
  const cardanoNativeTypeStringified = `export type CardanoNativeToken = [
29
23
  string, // parentCurrencyId
30
24
  string, // policyId
@@ -36,14 +30,13 @@ export const importCardanoNativeTokens = async (outputDir: string) => {
36
30
  boolean // disableCountervalue
37
31
  ];`;
38
32
 
33
+ fs.writeFileSync(`${filePath}.json`, JSON.stringify(cardanoNativeTokens));
39
34
  fs.writeFileSync(
40
35
  `${filePath}.ts`,
41
36
  `${cardanoNativeTypeStringified}
42
37
 
43
38
  import tokens from "./cardanoNative.json";
44
39
 
45
- ${hash ? `export { default as hash } from "./cardanoNative-hash.json";` : null}
46
-
47
40
  export default tokens as CardanoNativeToken[];
48
41
  `,
49
42
  );
@@ -22,9 +22,7 @@ const mockedAxios = jest.spyOn(axios, "get");
22
22
 
23
23
  describe("import EIP 712 tokens", () => {
24
24
  beforeEach(() => {
25
- mockedAxios.mockImplementation(() =>
26
- Promise.resolve({ data: eip712Tokens, headers: { etag: "etagHash" } }),
27
- );
25
+ mockedAxios.mockImplementation(() => Promise.resolve({ data: eip712Tokens }));
28
26
  });
29
27
 
30
28
  afterEach(() => {
@@ -32,10 +30,7 @@ describe("import EIP 712 tokens", () => {
32
30
  });
33
31
 
34
32
  it("should output the file in the correct format", async () => {
35
- const expectedFile = `import EIP712 from "./eip712.json";
36
- export { default as hash } from "./eip712-hash.json";
37
- export default EIP712;
38
- `;
33
+ const expectedFile = `export default ${JSON.stringify(eip712Tokens, null, 2)};`;
39
34
 
40
35
  const mockedFs = (fs.writeFileSync = jest.fn());
41
36
 
@@ -43,7 +38,6 @@ export default EIP712;
43
38
 
44
39
  expect(mockedAxios).toHaveBeenCalledWith(expect.stringMatching(/.*\/eip712.json/));
45
40
  expect(mockedFs).toHaveBeenNthCalledWith(1, "eip712.json", JSON.stringify(eip712Tokens));
46
- expect(mockedFs).toHaveBeenNthCalledWith(2, "eip712-hash.json", JSON.stringify("etagHash"));
47
- expect(mockedFs).toHaveBeenNthCalledWith(3, "eip712.ts", expectedFile);
41
+ expect(mockedFs).toHaveBeenNthCalledWith(2, "eip712.ts", expectedFile);
48
42
  });
49
43
  });
@@ -13,18 +13,11 @@ type EIP712 = {
13
13
  export const importEIP712 = async (outputDir: string) => {
14
14
  console.log("importing ERC712 tokens....");
15
15
  try {
16
- const [eip712, hash] = await fetchTokens<EIP712>("eip712.json");
16
+ const eip712 = await fetchTokens<EIP712>("eip712.json");
17
17
  if (eip712) {
18
18
  const filePath = path.join(outputDir, "eip712");
19
+ const tsContent = `export default ${JSON.stringify(eip712, null, 2)};`;
19
20
  fs.writeFileSync(`${filePath}.json`, JSON.stringify(eip712));
20
- if (hash) {
21
- fs.writeFileSync(`${filePath}-hash.json`, JSON.stringify(hash));
22
- }
23
-
24
- const tsContent = `import EIP712 from "./eip712.json";
25
- ${hash ? `export { default as hash } from "./eip712-hash.json";` : null}
26
- export default EIP712;
27
- `;
28
21
  fs.writeFileSync(`${filePath}.ts`, tsContent);
29
22
  console.log("importing ERC712 tokens sucess");
30
23
  }
@@ -8,9 +8,7 @@ const mockedAxios = jest.spyOn(axios, "get");
8
8
 
9
9
  describe("import ERC20", () => {
10
10
  beforeEach(() => {
11
- mockedAxios.mockImplementation(() =>
12
- Promise.resolve({ data: erc20, headers: { etag: "etagHash" } }),
13
- );
11
+ mockedAxios.mockImplementation(() => Promise.resolve({ data: erc20 }));
14
12
  });
15
13
 
16
14
  afterEach(() => {
@@ -34,8 +32,6 @@ describe("import ERC20", () => {
34
32
 
35
33
  import tokens from "./erc20.json";
36
34
 
37
- export { default as hash } from "./erc20-hash.json";
38
-
39
35
  export default tokens as ERC20Token[];
40
36
  `;
41
37
 
@@ -45,7 +41,6 @@ export default tokens as ERC20Token[];
45
41
 
46
42
  expect(mockedAxios).toHaveBeenCalledWith(expect.stringMatching(/.*\/erc20.json/));
47
43
  expect(mockedFs).toHaveBeenNthCalledWith(1, "erc20.json", JSON.stringify(erc20));
48
- expect(mockedFs).toHaveBeenNthCalledWith(2, "erc20-hash.json", JSON.stringify("etagHash"));
49
- expect(mockedFs).toHaveBeenNthCalledWith(3, "erc20.ts", expectedFile);
44
+ expect(mockedFs).toHaveBeenNthCalledWith(2, "erc20.ts", expectedFile);
50
45
  });
51
46
  });
@@ -19,14 +19,11 @@ type ERC20Token = [
19
19
  export const importERC20 = async (outputDir: string) => {
20
20
  try {
21
21
  console.log("importing ERC20 tokens....");
22
- const [erc20, hash] = await fetchTokens<ERC20Token>("erc20.json");
22
+ const erc20 = await fetchTokens<ERC20Token>("erc20.json");
23
23
 
24
24
  if (erc20) {
25
25
  const filePath = path.join(outputDir, "erc20");
26
26
  fs.writeFileSync(`${filePath}.json`, JSON.stringify(erc20));
27
- if (hash) {
28
- fs.writeFileSync(`${filePath}-hash.json`, JSON.stringify(hash));
29
- }
30
27
 
31
28
  const erc20TokenTypeStringified = `export type ERC20Token = [
32
29
  string, // parent currency id
@@ -46,8 +43,6 @@ export const importERC20 = async (outputDir: string) => {
46
43
 
47
44
  import tokens from "./erc20.json";
48
45
 
49
- ${hash ? `export { default as hash } from "./erc20-hash.json";` : null}
50
-
51
46
  export default tokens as ERC20Token[];
52
47
  `;
53
48
 
@@ -7,9 +7,7 @@ const erc20Signatures = "erc20Signature";
7
7
  describe("import Cardano Native tokens", () => {
8
8
  beforeEach(() => {
9
9
  const mockedAxios = jest.spyOn(axios, "get");
10
- mockedAxios.mockImplementation(() =>
11
- Promise.resolve({ data: erc20Signatures, headers: { etag: "etagHash" } }),
12
- );
10
+ mockedAxios.mockImplementation(() => Promise.resolve({ data: erc20Signatures }));
13
11
  });
14
12
 
15
13
  afterEach(() => {
@@ -17,12 +15,7 @@ describe("import Cardano Native tokens", () => {
17
15
  });
18
16
 
19
17
  it("should output the file in the correct format", async () => {
20
- const expectedFile = `import ERC20Signatures from "./erc20-signatures.json";
21
-
22
- export { default as hash } from "./erc20-signatures-hash.json";
23
-
24
- export default ERC20Signatures;
25
- `;
18
+ const expectedFile = `export default ${JSON.stringify(erc20Signatures, null, 2)};`;
26
19
 
27
20
  const mockedFs = (fs.writeFileSync = jest.fn());
28
21
 
@@ -33,11 +26,6 @@ export default ERC20Signatures;
33
26
  "erc20-signatures.json",
34
27
  JSON.stringify(erc20Signatures),
35
28
  );
36
- expect(mockedFs).toHaveBeenNthCalledWith(
37
- 2,
38
- "erc20-signatures-hash.json",
39
- JSON.stringify("etagHash"),
40
- );
41
- expect(mockedFs).toHaveBeenNthCalledWith(3, "erc20-signatures.ts", expectedFile);
29
+ expect(mockedFs).toHaveBeenNthCalledWith(2, "erc20-signatures.ts", expectedFile);
42
30
  });
43
31
  });
@@ -5,22 +5,13 @@ import { fetchTokens } from "../../fetch";
5
5
  export const importERC20Signatures = async (outputDir: string) => {
6
6
  console.log("importing erc20 signatures...");
7
7
  try {
8
- const [erc20Signatures, hash] = await fetchTokens<string>("erc20-signatures.json");
8
+ const erc20Signatures = await fetchTokens<string>("erc20-signatures.json");
9
9
  const filePath = path.join(outputDir, "erc20-signatures");
10
10
  if (erc20Signatures) {
11
11
  fs.writeFileSync(`${filePath}.json`, JSON.stringify(erc20Signatures));
12
- if (hash) {
13
- fs.writeFileSync(`${filePath}-hash.json`, JSON.stringify(hash));
14
- }
15
-
16
12
  fs.writeFileSync(
17
13
  `${filePath}.ts`,
18
- `import ERC20Signatures from "./erc20-signatures.json";
19
-
20
- ${hash ? `export { default as hash } from "./erc20-signatures-hash.json";` : null}
21
-
22
- export default ERC20Signatures;
23
- `,
14
+ `export default ${JSON.stringify(erc20Signatures, null, 2)};`,
24
15
  );
25
16
  console.log("importing erc20 signatures: success");
26
17
  }
@@ -8,9 +8,7 @@ const mockedAxios = jest.spyOn(axios, "get");
8
8
 
9
9
  describe("import ESDT tokens", () => {
10
10
  beforeEach(() => {
11
- mockedAxios.mockImplementation(() =>
12
- Promise.resolve({ data: esdtTokens, headers: { etag: "etagHash" } }),
13
- );
11
+ mockedAxios.mockImplementation(() => Promise.resolve({ data: esdtTokens }));
14
12
  });
15
13
 
16
14
  afterEach(() => {
@@ -29,8 +27,6 @@ describe("import ESDT tokens", () => {
29
27
 
30
28
  import tokens from "./esdt.json";
31
29
 
32
- export { default as hash } from "./esdt-hash.json";
33
-
34
30
  export default tokens as ElrondESDTToken[];
35
31
  `;
36
32
 
@@ -40,7 +36,6 @@ export default tokens as ElrondESDTToken[];
40
36
 
41
37
  expect(mockedAxios).toHaveBeenCalledWith(expect.stringMatching(/.*\/esdt.json/));
42
38
  expect(mockedFs).toHaveBeenNthCalledWith(1, "esdt.json", JSON.stringify(esdtTokens));
43
- expect(mockedFs).toHaveBeenNthCalledWith(2, "esdt-hash.json", JSON.stringify("etagHash"));
44
- expect(mockedFs).toHaveBeenNthCalledWith(3, "esdt.ts", expectedFile);
39
+ expect(mockedFs).toHaveBeenNthCalledWith(2, "esdt.ts", expectedFile);
45
40
  });
46
41
  });
@@ -14,7 +14,7 @@ type ElrondESDTToken = [
14
14
  export const importESDTTokens = async (outputDir: string) => {
15
15
  try {
16
16
  console.log("importing esdt tokens...");
17
- const [esdtTokens, hash] = await fetchTokens<ElrondESDTToken[]>("esdt.json");
17
+ const esdtTokens = await fetchTokens<ElrondESDTToken[]>("esdt.json");
18
18
  const filePath = path.join(outputDir, "esdt");
19
19
 
20
20
  const estTypeStringified = `export type ElrondESDTToken = [
@@ -27,18 +27,12 @@ export const importESDTTokens = async (outputDir: string) => {
27
27
  ];`;
28
28
 
29
29
  fs.writeFileSync(`${filePath}.json`, JSON.stringify(esdtTokens));
30
- if (hash) {
31
- fs.writeFileSync(`${filePath}-hash.json`, JSON.stringify(hash));
32
- }
33
-
34
30
  fs.writeFileSync(
35
31
  `${filePath}.ts`,
36
32
  `${estTypeStringified}
37
33
 
38
34
  import tokens from "./esdt.json";
39
35
 
40
- ${hash ? `export { default as hash } from "./esdt-hash.json";` : null}
41
-
42
36
  export default tokens as ElrondESDTToken[];
43
37
  `,
44
38
  );
@@ -13,9 +13,9 @@ describe("import EVM Token", () => {
13
13
  const mockedAxios = jest.spyOn(axios, "get");
14
14
  mockedAxios.mockImplementation(url => {
15
15
  if (url.endsWith("erc20.json")) {
16
- return Promise.resolve({ data: evmToken, headers: { etag: "etagHash" } });
16
+ return Promise.resolve({ data: evmToken });
17
17
  } else if (url.endsWith("erc20-signatures.json")) {
18
- return Promise.resolve({ data: evmTokenSignature, headers: { etag: "signatureEtagHash" } });
18
+ return Promise.resolve({ data: evmTokenSignature });
19
19
  }
20
20
 
21
21
  return Promise.reject("Unexpected route call");
@@ -31,28 +31,18 @@ describe("import EVM Token", () => {
31
31
 
32
32
  await importTokenByChainId(".", 1);
33
33
 
34
- const expectedIndex = `export { default as tokens } from "./erc20.json";
35
- export { default as signatures } from "./erc20-signatures.json";
36
- export { default as hash } from "./erc20-hash.json";
37
- export { default as signaturesHash } from "./erc20-signatures-hash.json";
34
+ const expectedIndex = `import tokens from "./erc20.json";
35
+ import signatures from "./erc20-signatures.json";
36
+
37
+ export default { tokens, signatures };
38
38
  `;
39
39
 
40
40
  expect(mockedFs).toHaveBeenNthCalledWith(1, "evm/1/erc20.json", JSON.stringify(evmToken));
41
41
  expect(mockedFs).toHaveBeenNthCalledWith(
42
42
  2,
43
- "evm/1/erc20-hash.json",
44
- JSON.stringify("etagHash"),
45
- );
46
- expect(mockedFs).toHaveBeenNthCalledWith(
47
- 3,
48
- "evm/1/erc20-signatures-hash.json",
49
- JSON.stringify("signatureEtagHash"),
50
- );
51
- expect(mockedFs).toHaveBeenNthCalledWith(
52
- 4,
53
43
  "evm/1/erc20-signatures.json",
54
44
  JSON.stringify(evmTokenSignature),
55
45
  );
56
- expect(mockedFs).toHaveBeenNthCalledWith(5, "evm/1/index.ts", expectedIndex);
46
+ expect(mockedFs).toHaveBeenNthCalledWith(3, "evm/1/index.ts", expectedIndex);
57
47
  });
58
48
  });
@@ -23,14 +23,12 @@ const chainNames = new Map<number, string>();
23
23
  export const importTokenByChainId = async (outputDir: string, chainId: number) => {
24
24
  try {
25
25
  console.log(`importing chain with chainId: ${chainId}...`);
26
- const [erc20, hash] = await fetchTokens<EVMToken[]>(`evm/${chainId}/erc20.json`);
27
- const [erc20Signatures, signatureHash] = await fetchTokens<string>(
28
- `evm/${chainId}/erc20-signatures.json`,
29
- );
30
- const indexTsStringified = `export { default as tokens } from "./erc20.json";
31
- export { default as signatures } from "./erc20-signatures.json";
32
- ${hash ? `export { default as hash } from "./erc20-hash.json";` : ""}
33
- ${signatureHash ? `export { default as signaturesHash } from "./erc20-signatures-hash.json";` : ""}
26
+ const erc20 = await fetchTokens<EVMToken[]>(`evm/${chainId}/erc20.json`);
27
+ const erc20Signatures = await fetchTokens<string>(`evm/${chainId}/erc20-signatures.json`);
28
+ const indexTsStringified = `import tokens from "./erc20.json";
29
+ import signatures from "./erc20-signatures.json";
30
+
31
+ export default { tokens, signatures };
34
32
  `;
35
33
 
36
34
  if (erc20 && erc20Signatures) {
@@ -42,16 +40,6 @@ ${signatureHash ? `export { default as signaturesHash } from "./erc20-signatures
42
40
  const [coinName] = erc20[0];
43
41
  chainNames.set(chainId, coinName);
44
42
  await fs.writeFile(path.join(dirPath, "erc20.json"), JSON.stringify(erc20));
45
- if (hash) {
46
- await fs.writeFile(path.join(dirPath, "erc20-hash.json"), JSON.stringify(hash));
47
- }
48
- if (signatureHash) {
49
- await fs.writeFile(
50
- path.join(dirPath, "erc20-signatures-hash.json"),
51
- JSON.stringify(signatureHash),
52
- );
53
- }
54
-
55
43
  await fs.writeFile(
56
44
  path.join(dirPath, "erc20-signatures.json"),
57
45
  JSON.stringify(erc20Signatures),
@@ -86,16 +74,6 @@ export const importEVMTokens = async (outputDir: string) => {
86
74
  .filter(Boolean)
87
75
  .join(";" + String.fromCharCode(10))};
88
76
 
89
- ${supportedChainIds
90
- .map(chainId =>
91
- chainNames.has(chainId) &&
92
- existsSync(path.join(outputDir, "evm", chainId.toString(), "erc20-hash.json"))
93
- ? `import ${chainNames.get(chainId)}_tokens_hash from "./${chainId}/erc20-hash.json"`
94
- : null,
95
- )
96
- .filter(Boolean)
97
- .join(";" + String.fromCharCode(10))};
98
-
99
77
  ${supportedChainIds
100
78
  .map(chainId =>
101
79
  chainNames.has(chainId)
@@ -105,18 +83,6 @@ ${supportedChainIds
105
83
  .filter(Boolean)
106
84
  .join(";" + String.fromCharCode(10))};
107
85
 
108
- ${supportedChainIds
109
- .map(chainId =>
110
- chainNames.has(chainId) &&
111
- existsSync(path.join(outputDir, "evm", chainId.toString(), "erc20-signatures-hash.json"))
112
- ? `import ${chainNames.get(
113
- chainId,
114
- )}_signatures_hash from "./${chainId}/erc20-signatures-hash.json"`
115
- : null,
116
- )
117
- .filter(Boolean)
118
- .join(";" + String.fromCharCode(10))};
119
-
120
86
  export const tokens = {
121
87
  ${supportedChainIds
122
88
  .map(chainId =>
@@ -135,35 +101,9 @@ ${supportedChainIds
135
101
  .join("," + String.fromCharCode(10))},
136
102
  };
137
103
 
138
- export const hashes = {
139
- ${supportedChainIds
140
- .map(chainId =>
141
- chainNames.has(chainId) &&
142
- existsSync(path.join(outputDir, "evm", chainId.toString(), "erc20-hash.json"))
143
- ? ` ${chainId}: ${chainNames.get(chainId)}_tokens_hash`
144
- : null,
145
- )
146
- .filter(Boolean)
147
- .join("," + String.fromCharCode(10))},
148
- };
149
-
150
- export const signatureHashes = {
151
- ${supportedChainIds
152
- .map(chainId =>
153
- chainNames.has(chainId) &&
154
- existsSync(path.join(outputDir, "evm", chainId.toString(), "erc20-signatures-hash.json"))
155
- ? ` ${chainId}: ${chainNames.get(chainId)}_signatures_hash`
156
- : null,
157
- )
158
- .filter(Boolean)
159
- .join("," + String.fromCharCode(10))},
160
- };
161
-
162
104
  export default {
163
105
  tokens,
164
106
  signatures,
165
- hashes,
166
- signatureHashes,
167
107
  };
168
108
  `;
169
109
 
@@ -19,13 +19,10 @@ type PolygonToken = [
19
19
  export const importPolygonTokens = async (outputDir: string) => {
20
20
  try {
21
21
  console.log("importing polygon tokens...");
22
- const [polygonTokens, hash] = await fetchTokens<PolygonToken[]>("polygon-erc20.json");
22
+ const polygonTokens = await fetchTokens<PolygonToken[]>("polygon-erc20.json");
23
23
 
24
24
  const filePath = path.join(outputDir, "polygon-erc20");
25
25
  fs.writeFileSync(`${filePath}.json`, JSON.stringify(polygonTokens));
26
- if (hash) {
27
- fs.writeFileSync(`${filePath}-hash.json`, JSON.stringify(hash));
28
- }
29
26
 
30
27
  const tokenTypeStringified = `export type PolygonERC20Token = [
31
28
  string, // parent currency id
@@ -47,8 +44,6 @@ export const importPolygonTokens = async (outputDir: string) => {
47
44
 
48
45
  import tokens from "./polygon-erc20.json";
49
46
 
50
- ${hash ? `export { default as hash } from "./polygon-erc20-hash.json";` : null}
51
-
52
47
  export default tokens as PolygonERC20Token[];
53
48
  `,
54
49
  );
@@ -21,9 +21,7 @@ const mockedAxios = jest.spyOn(axios, "get");
21
21
 
22
22
  describe("import poylgon erc20", () => {
23
23
  beforeEach(() => {
24
- mockedAxios.mockImplementation(() =>
25
- Promise.resolve({ data: poylgonErc20, headers: { etag: "etagHash" } }),
26
- );
24
+ mockedAxios.mockImplementation(() => Promise.resolve({ data: poylgonErc20 }));
27
25
  });
28
26
 
29
27
  afterEach(() => {
@@ -47,8 +45,6 @@ describe("import poylgon erc20", () => {
47
45
 
48
46
  import tokens from "./polygon-erc20.json";
49
47
 
50
- export { default as hash } from "./polygon-erc20-hash.json";
51
-
52
48
  export default tokens as PolygonERC20Token[];
53
49
  `;
54
50
 
@@ -58,11 +54,6 @@ export default tokens as PolygonERC20Token[];
58
54
 
59
55
  expect(mockedAxios).toHaveBeenCalledWith(expect.stringMatching(/.*\/polygon-erc20.json/));
60
56
  expect(mockedFs).toHaveBeenNthCalledWith(1, "polygon-erc20.json", JSON.stringify(poylgonErc20));
61
- expect(mockedFs).toHaveBeenNthCalledWith(
62
- 2,
63
- "polygon-erc20-hash.json",
64
- JSON.stringify("etagHash"),
65
- );
66
- expect(mockedFs).toHaveBeenNthCalledWith(3, "polygon-erc20.ts", expectedFile);
57
+ expect(mockedFs).toHaveBeenNthCalledWith(2, "polygon-erc20.ts", expectedFile);
67
58
  });
68
59
  });
@@ -14,7 +14,7 @@ type SPLToken = [
14
14
  export const importSPLTokens = async (outputDir: string) => {
15
15
  try {
16
16
  console.log("importing spl tokens...");
17
- const [splTokens, hash] = await fetchTokens<SPLToken[]>("spl.json");
17
+ const splTokens = await fetchTokens<SPLToken[]>("spl.json");
18
18
  const filePath = path.join(outputDir, "spl");
19
19
 
20
20
  const splTypeStringified = `export type SPLToken = [
@@ -27,17 +27,12 @@ export const importSPLTokens = async (outputDir: string) => {
27
27
  ];`;
28
28
 
29
29
  fs.writeFileSync(`${filePath}.json`, JSON.stringify(splTokens));
30
- if (hash) {
31
- fs.writeFileSync(`${filePath}-hash.json`, JSON.stringify(hash));
32
- }
33
30
  fs.writeFileSync(
34
31
  `${filePath}.ts`,
35
32
  `${splTypeStringified}
36
33
 
37
34
  import tokens from "./spl.json";
38
35
 
39
- ${hash ? `export { default as hash } from "./spl-hash.json";` : null}
40
-
41
36
  export default tokens as SPLToken[];
42
37
  `,
43
38
  );
@@ -8,9 +8,7 @@ const mockedAxios = jest.spyOn(axios, "get");
8
8
 
9
9
  describe("import Spl tokens", () => {
10
10
  beforeEach(() => {
11
- mockedAxios.mockImplementation(() =>
12
- Promise.resolve({ data: splTokens, headers: { etag: "etagHash" } }),
13
- );
11
+ mockedAxios.mockImplementation(() => Promise.resolve({ data: splTokens }));
14
12
  });
15
13
 
16
14
  afterEach(() => {
@@ -29,8 +27,6 @@ describe("import Spl tokens", () => {
29
27
 
30
28
  import tokens from "./spl.json";
31
29
 
32
- export { default as hash } from "./spl-hash.json";
33
-
34
30
  export default tokens as SPLToken[];
35
31
  `;
36
32
 
@@ -40,7 +36,6 @@ export default tokens as SPLToken[];
40
36
 
41
37
  expect(mockedAxios).toHaveBeenCalledWith(expect.stringMatching(/.*\/spl.json/));
42
38
  expect(mockedFs).toHaveBeenNthCalledWith(1, "spl.json", JSON.stringify(splTokens));
43
- expect(mockedFs).toHaveBeenNthCalledWith(2, "spl-hash.json", JSON.stringify("etagHash"));
44
- expect(mockedFs).toHaveBeenNthCalledWith(3, "spl.ts", expectedFile);
39
+ expect(mockedFs).toHaveBeenNthCalledWith(2, "spl.ts", expectedFile);
45
40
  });
46
41
  });
@@ -14,7 +14,7 @@ type StellarToken = [
14
14
  export const importStellarTokens = async (outputDir: string) => {
15
15
  try {
16
16
  console.log("importing stellar tokens...");
17
- const [stellarTokens, hash] = await fetchTokens<StellarToken[]>("stellar.json");
17
+ const stellarTokens = await fetchTokens<StellarToken[]>("stellar.json");
18
18
  const filePath = path.join(outputDir, "stellar");
19
19
 
20
20
  const stellarTypeStringified = `export type StellarToken = [
@@ -27,18 +27,12 @@ export const importStellarTokens = async (outputDir: string) => {
27
27
  ];`;
28
28
 
29
29
  fs.writeFileSync(`${filePath}.json`, JSON.stringify(stellarTokens));
30
- if (hash) {
31
- fs.writeFileSync(`${filePath}-hash.json`, JSON.stringify(hash));
32
- }
33
-
34
30
  fs.writeFileSync(
35
31
  `${filePath}.ts`,
36
32
  `${stellarTypeStringified}
37
33
 
38
34
  import tokens from "./stellar.json";
39
35
 
40
- ${hash ? `export { default as hash } from "./stellar-hash.json";` : null}
41
-
42
36
  export default tokens as StellarToken[];
43
37
  `,
44
38
  );
@@ -8,9 +8,7 @@ const mockedAxios = jest.spyOn(axios, "get");
8
8
 
9
9
  describe("import ESDT tokens", () => {
10
10
  beforeEach(() => {
11
- mockedAxios.mockImplementation(() =>
12
- Promise.resolve({ data: stellarTokens, headers: { etag: "etagHash" } }),
13
- );
11
+ mockedAxios.mockImplementation(() => Promise.resolve({ data: stellarTokens }));
14
12
  });
15
13
 
16
14
  afterEach(() => {
@@ -29,8 +27,6 @@ describe("import ESDT tokens", () => {
29
27
 
30
28
  import tokens from "./stellar.json";
31
29
 
32
- export { default as hash } from "./stellar-hash.json";
33
-
34
30
  export default tokens as StellarToken[];
35
31
  `;
36
32
 
@@ -40,7 +36,6 @@ export default tokens as StellarToken[];
40
36
 
41
37
  expect(mockedAxios).toHaveBeenCalledWith(expect.stringMatching(/.*\/stellar.json/));
42
38
  expect(mockedFs).toHaveBeenNthCalledWith(1, "stellar.json", JSON.stringify(stellarTokens));
43
- expect(mockedFs).toHaveBeenNthCalledWith(2, "stellar-hash.json", JSON.stringify("etagHash"));
44
- expect(mockedFs).toHaveBeenNthCalledWith(3, "stellar.ts", expectedFile);
39
+ expect(mockedFs).toHaveBeenNthCalledWith(2, "stellar.ts", expectedFile);
45
40
  });
46
41
  });
@@ -16,7 +16,7 @@ type TRC20Token = [
16
16
  export const importTRC20Tokens = async (outputDir: string) => {
17
17
  try {
18
18
  console.log("importing trc20 tokens...");
19
- const [trc20tokens, hash] = await fetchTokens<TRC20Token[]>("trc20.json");
19
+ const trc20tokens = await fetchTokens<TRC20Token[]>("trc20.json");
20
20
  const filePath = path.join(outputDir, "trc20");
21
21
 
22
22
  const trc20TypeStringified = `export type TRC20Token = [
@@ -31,18 +31,12 @@ export const importTRC20Tokens = async (outputDir: string) => {
31
31
  ];`;
32
32
 
33
33
  fs.writeFileSync(`${filePath}.json`, JSON.stringify(trc20tokens));
34
- if (hash) {
35
- fs.writeFileSync(`${filePath}-hash.json`, JSON.stringify(hash));
36
- }
37
-
38
34
  fs.writeFileSync(
39
35
  `${filePath}.ts`,
40
36
  `${trc20TypeStringified}
41
37
 
42
38
  import tokens from "./trc20.json";
43
39
 
44
- ${hash ? `export { default as hash } from "./trc20-hash.json";` : null}
45
-
46
40
  export default tokens as TRC20Token[];
47
41
  `,
48
42
  );
@@ -8,9 +8,7 @@ const mockedAxios = jest.spyOn(axios, "get");
8
8
 
9
9
  describe("import ESDT tokens", () => {
10
10
  beforeEach(() => {
11
- mockedAxios.mockImplementation(() =>
12
- Promise.resolve({ data: trc20Tokens, headers: { etag: "etagHash" } }),
13
- );
11
+ mockedAxios.mockImplementation(() => Promise.resolve({ data: trc20Tokens }));
14
12
  });
15
13
 
16
14
  afterEach(() => {
@@ -31,8 +29,6 @@ describe("import ESDT tokens", () => {
31
29
 
32
30
  import tokens from "./trc20.json";
33
31
 
34
- export { default as hash } from "./trc20-hash.json";
35
-
36
32
  export default tokens as TRC20Token[];
37
33
  `;
38
34
 
@@ -42,7 +38,6 @@ export default tokens as TRC20Token[];
42
38
 
43
39
  expect(mockedAxios).toHaveBeenCalledWith(expect.stringMatching(/.*\/trc20.json/));
44
40
  expect(mockedFs).toHaveBeenNthCalledWith(1, "trc20.json", JSON.stringify(trc20Tokens));
45
- expect(mockedFs).toHaveBeenNthCalledWith(2, "trc20-hash.json", JSON.stringify("etagHash"));
46
- expect(mockedFs).toHaveBeenNthCalledWith(3, "trc20.ts", expectedFile);
41
+ expect(mockedFs).toHaveBeenNthCalledWith(2, "trc20.ts", expectedFile);
47
42
  });
48
43
  });
@@ -16,7 +16,6 @@ import { importTRC20Tokens } from "./importers/trc20";
16
16
  import { importBEP20Exchange } from "./exchange/bep20";
17
17
  import { importERC20Exchange } from "./exchange/erc20";
18
18
  import { importCoinsExchange } from "./exchange/coins";
19
- import { importTRC20Exchange } from "./exchange/trc20";
20
19
 
21
20
  import { importERC20Signatures } from "./importers/erc20-signature";
22
21
 
@@ -46,7 +45,6 @@ const importExchangeTokens = async () => {
46
45
  importBEP20Exchange(outputFolder),
47
46
  importERC20Exchange(outputFolder),
48
47
  importCoinsExchange(outputFolder),
49
- importTRC20Exchange(outputFolder),
50
48
  ];
51
49
 
52
50
  await Promise.allSettled(promises);