@argent/x-shared 1.78.12 → 1.79.1

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 (504) hide show
  1. package/dist/.ts-temp/tsconfig.tsbuildinfo +1 -1
  2. package/dist/_virtual/_rolldown/runtime.cjs +1 -0
  3. package/dist/_virtual/_rolldown/runtime.js +20 -0
  4. package/dist/index.cjs +1 -1
  5. package/dist/index.js +112 -488
  6. package/dist/node_modules/.pnpm/@noble_curves@1.0.0/node_modules/@noble/curves/esm/_shortw_utils.cjs +1 -1
  7. package/dist/node_modules/.pnpm/@noble_curves@1.0.0/node_modules/@noble/curves/esm/_shortw_utils.js +11 -11
  8. package/dist/node_modules/.pnpm/@noble_curves@1.0.0/node_modules/@noble/curves/esm/abstract/curve.cjs +1 -1
  9. package/dist/node_modules/.pnpm/@noble_curves@1.0.0/node_modules/@noble/curves/esm/abstract/curve.js +62 -85
  10. package/dist/node_modules/.pnpm/@noble_curves@1.0.0/node_modules/@noble/curves/esm/abstract/modular.cjs +1 -1
  11. package/dist/node_modules/.pnpm/@noble_curves@1.0.0/node_modules/@noble/curves/esm/abstract/modular.js +153 -190
  12. package/dist/node_modules/.pnpm/@noble_curves@1.0.0/node_modules/@noble/curves/esm/abstract/poseidon.cjs +1 -1
  13. package/dist/node_modules/.pnpm/@noble_curves@1.0.0/node_modules/@noble/curves/esm/abstract/poseidon.js +56 -65
  14. package/dist/node_modules/.pnpm/@noble_curves@1.0.0/node_modules/@noble/curves/esm/abstract/utils.cjs +1 -1
  15. package/dist/node_modules/.pnpm/@noble_curves@1.0.0/node_modules/@noble/curves/esm/abstract/utils.js +125 -151
  16. package/dist/node_modules/.pnpm/@noble_curves@1.0.0/node_modules/@noble/curves/esm/abstract/weierstrass.cjs +1 -1
  17. package/dist/node_modules/.pnpm/@noble_curves@1.0.0/node_modules/@noble/curves/esm/abstract/weierstrass.js +470 -575
  18. package/dist/node_modules/.pnpm/@noble_hashes@1.3.0/node_modules/@noble/hashes/esm/_assert.cjs +1 -1
  19. package/dist/node_modules/.pnpm/@noble_hashes@1.3.0/node_modules/@noble/hashes/esm/_assert.js +26 -40
  20. package/dist/node_modules/.pnpm/@noble_hashes@1.3.0/node_modules/@noble/hashes/esm/crypto.cjs +1 -1
  21. package/dist/node_modules/.pnpm/@noble_hashes@1.3.0/node_modules/@noble/hashes/esm/crypto.js +4 -4
  22. package/dist/node_modules/.pnpm/@noble_hashes@1.3.0/node_modules/@noble/hashes/esm/hmac.cjs +1 -1
  23. package/dist/node_modules/.pnpm/@noble_hashes@1.3.0/node_modules/@noble/hashes/esm/hmac.js +38 -42
  24. package/dist/node_modules/.pnpm/@noble_hashes@1.3.0/node_modules/@noble/hashes/esm/utils.cjs +1 -1
  25. package/dist/node_modules/.pnpm/@noble_hashes@1.3.0/node_modules/@noble/hashes/esm/utils.js +28 -42
  26. package/dist/node_modules/.pnpm/@noble_hashes@1.3.3/node_modules/@noble/hashes/esm/_assert.cjs +1 -1
  27. package/dist/node_modules/.pnpm/@noble_hashes@1.3.3/node_modules/@noble/hashes/esm/_assert.js +17 -26
  28. package/dist/node_modules/.pnpm/@noble_hashes@1.3.3/node_modules/@noble/hashes/esm/_sha2.cjs +1 -1
  29. package/dist/node_modules/.pnpm/@noble_hashes@1.3.3/node_modules/@noble/hashes/esm/_sha2.js +52 -59
  30. package/dist/node_modules/.pnpm/@noble_hashes@1.3.3/node_modules/@noble/hashes/esm/_u64.cjs +1 -1
  31. package/dist/node_modules/.pnpm/@noble_hashes@1.3.3/node_modules/@noble/hashes/esm/_u64.js +20 -19
  32. package/dist/node_modules/.pnpm/@noble_hashes@1.3.3/node_modules/@noble/hashes/esm/sha256.cjs +1 -1
  33. package/dist/node_modules/.pnpm/@noble_hashes@1.3.3/node_modules/@noble/hashes/esm/sha256.js +118 -113
  34. package/dist/node_modules/.pnpm/@noble_hashes@1.3.3/node_modules/@noble/hashes/esm/sha3.cjs +1 -1
  35. package/dist/node_modules/.pnpm/@noble_hashes@1.3.3/node_modules/@noble/hashes/esm/sha3.js +95 -105
  36. package/dist/node_modules/.pnpm/@noble_hashes@1.3.3/node_modules/@noble/hashes/esm/utils.cjs +1 -1
  37. package/dist/node_modules/.pnpm/@noble_hashes@1.3.3/node_modules/@noble/hashes/esm/utils.js +26 -32
  38. package/dist/node_modules/.pnpm/@noble_hashes@2.0.0/node_modules/@noble/hashes/_md.cjs +1 -1
  39. package/dist/node_modules/.pnpm/@noble_hashes@2.0.0/node_modules/@noble/hashes/_md.js +71 -82
  40. package/dist/node_modules/.pnpm/@noble_hashes@2.0.0/node_modules/@noble/hashes/_u64.cjs +1 -1
  41. package/dist/node_modules/.pnpm/@noble_hashes@2.0.0/node_modules/@noble/hashes/_u64.js +20 -20
  42. package/dist/node_modules/.pnpm/@noble_hashes@2.0.0/node_modules/@noble/hashes/sha2.cjs +1 -1
  43. package/dist/node_modules/.pnpm/@noble_hashes@2.0.0/node_modules/@noble/hashes/sha2.js +125 -124
  44. package/dist/node_modules/.pnpm/@noble_hashes@2.0.0/node_modules/@noble/hashes/sha3.cjs +1 -1
  45. package/dist/node_modules/.pnpm/@noble_hashes@2.0.0/node_modules/@noble/hashes/sha3.js +102 -116
  46. package/dist/node_modules/.pnpm/@noble_hashes@2.0.0/node_modules/@noble/hashes/utils.cjs +1 -1
  47. package/dist/node_modules/.pnpm/@noble_hashes@2.0.0/node_modules/@noble/hashes/utils.js +62 -76
  48. package/dist/node_modules/.pnpm/bignumber.js@9.1.2/node_modules/bignumber.js/bignumber.cjs +1 -1
  49. package/dist/node_modules/.pnpm/bignumber.js@9.1.2/node_modules/bignumber.js/bignumber.js +519 -614
  50. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_Hash.cjs +1 -1
  51. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_Hash.js +15 -19
  52. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_ListCache.cjs +1 -1
  53. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_ListCache.js +15 -19
  54. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_Map.cjs +1 -1
  55. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_Map.js +6 -6
  56. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_MapCache.cjs +1 -1
  57. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_MapCache.js +15 -19
  58. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_Set.cjs +1 -1
  59. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_Set.js +5 -5
  60. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_SetCache.cjs +1 -1
  61. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_SetCache.js +10 -12
  62. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_Symbol.cjs +1 -1
  63. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_Symbol.js +5 -5
  64. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_arrayIncludes.cjs +1 -1
  65. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_arrayIncludes.js +6 -7
  66. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_arrayIncludesWith.cjs +1 -1
  67. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_arrayIncludesWith.js +6 -8
  68. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_assocIndexOf.cjs +1 -1
  69. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_assocIndexOf.js +7 -9
  70. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseFindIndex.cjs +1 -1
  71. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseFindIndex.js +6 -8
  72. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseGetTag.cjs +1 -1
  73. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseGetTag.js +9 -9
  74. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseIndexOf.cjs +1 -1
  75. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseIndexOf.js +7 -7
  76. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseIsNaN.cjs +1 -1
  77. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseIsNaN.js +5 -5
  78. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseIsNative.cjs +1 -1
  79. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseIsNative.js +10 -15
  80. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseUniq.cjs +1 -1
  81. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseUniq.js +26 -32
  82. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_cacheHas.cjs +1 -1
  83. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_cacheHas.js +5 -5
  84. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_coreJsData.cjs +1 -1
  85. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_coreJsData.js +5 -5
  86. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_createSet.cjs +1 -1
  87. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_createSet.js +7 -7
  88. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_freeGlobal.cjs +1 -1
  89. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_freeGlobal.js +4 -4
  90. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_getMapData.cjs +1 -1
  91. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_getMapData.js +6 -6
  92. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_getNative.cjs +1 -1
  93. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_getNative.js +8 -8
  94. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_getRawTag.cjs +1 -1
  95. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_getRawTag.js +12 -13
  96. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_getValue.cjs +1 -1
  97. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_getValue.js +5 -5
  98. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_hashClear.cjs +1 -1
  99. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_hashClear.js +6 -6
  100. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_hashDelete.cjs +1 -1
  101. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_hashDelete.js +6 -6
  102. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_hashGet.cjs +1 -1
  103. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_hashGet.js +11 -11
  104. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_hashHas.cjs +1 -1
  105. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_hashHas.js +8 -8
  106. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_hashSet.cjs +1 -1
  107. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_hashSet.js +7 -7
  108. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_isKeyable.cjs +1 -1
  109. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_isKeyable.js +6 -6
  110. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_isMasked.cjs +1 -1
  111. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_isMasked.js +9 -9
  112. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_listCacheClear.cjs +1 -1
  113. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_listCacheClear.js +5 -5
  114. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_listCacheDelete.cjs +1 -1
  115. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_listCacheDelete.js +8 -11
  116. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_listCacheGet.cjs +1 -1
  117. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_listCacheGet.js +7 -7
  118. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_listCacheHas.cjs +1 -1
  119. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_listCacheHas.js +6 -6
  120. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_listCacheSet.cjs +1 -1
  121. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_listCacheSet.js +6 -6
  122. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_mapCacheClear.cjs +1 -1
  123. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_mapCacheClear.js +11 -11
  124. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_mapCacheDelete.cjs +1 -1
  125. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_mapCacheDelete.js +7 -7
  126. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_mapCacheGet.cjs +1 -1
  127. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_mapCacheGet.js +6 -6
  128. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_mapCacheHas.cjs +1 -1
  129. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_mapCacheHas.js +6 -6
  130. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_mapCacheSet.cjs +1 -1
  131. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_mapCacheSet.js +7 -7
  132. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_nativeCreate.cjs +1 -1
  133. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_nativeCreate.js +4 -4
  134. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_objectToString.cjs +1 -1
  135. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_objectToString.js +6 -6
  136. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_root.cjs +1 -1
  137. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_root.js +4 -4
  138. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_setCacheAdd.cjs +1 -1
  139. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_setCacheAdd.js +6 -6
  140. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_setCacheHas.cjs +1 -1
  141. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_setCacheHas.js +5 -5
  142. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_setToArray.cjs +1 -1
  143. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_setToArray.js +8 -8
  144. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_strictIndexOf.cjs +1 -1
  145. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_strictIndexOf.js +6 -8
  146. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_toSource.cjs +1 -1
  147. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_toSource.js +14 -16
  148. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/eq.cjs +1 -1
  149. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/eq.js +5 -5
  150. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/isFunction.cjs +1 -1
  151. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/isFunction.js +10 -11
  152. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/isObject.cjs +1 -1
  153. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/isObject.js +6 -6
  154. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/noop.cjs +1 -1
  155. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/noop.js +4 -5
  156. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/uniqWith.cjs +1 -1
  157. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/uniqWith.js +6 -6
  158. package/dist/node_modules/.pnpm/micro-starknet@0.2.3/node_modules/micro-starknet/lib/esm/index.cjs +1 -1
  159. package/dist/node_modules/.pnpm/micro-starknet@0.2.3/node_modules/micro-starknet/lib/esm/index.js +121 -118
  160. package/dist/node_modules/.pnpm/numeral@2.0.6/node_modules/numeral/numeral.cjs +1 -1
  161. package/dist/node_modules/.pnpm/numeral@2.0.6/node_modules/numeral/numeral.js +377 -417
  162. package/dist/node_modules/.pnpm/semver@6.3.1/node_modules/semver/semver.cjs +1 -1
  163. package/dist/node_modules/.pnpm/semver@6.3.1/node_modules/semver/semver.js +546 -635
  164. package/dist/paymaster.cjs +1 -1
  165. package/dist/paymaster.js +3 -9
  166. package/dist/simulation.cjs +1 -1
  167. package/dist/simulation.js +22 -90
  168. package/dist/src/account/account.model.cjs +1 -1
  169. package/dist/src/account/account.model.js +58 -52
  170. package/dist/src/account/accountv4.cjs +1 -1
  171. package/dist/src/account/accountv4.js +9 -11
  172. package/dist/src/account/preferences.model.cjs +1 -1
  173. package/dist/src/account/preferences.model.js +12 -10
  174. package/dist/src/accountNameGenerator/colors.cjs +1 -1
  175. package/dist/src/accountNameGenerator/colors.js +24 -24
  176. package/dist/src/accountNameGenerator/index.cjs +1 -1
  177. package/dist/src/accountNameGenerator/index.js +23 -23
  178. package/dist/src/accountNameGenerator/x-names.json.cjs +1 -1
  179. package/dist/src/accountNameGenerator/x-names.json.js +1922 -7
  180. package/dist/src/assets/tokens.json.cjs +1 -1
  181. package/dist/src/assets/tokens.json.js +180 -180
  182. package/dist/src/backend/schema.cjs +1 -1
  183. package/dist/src/backend/schema.js +9 -12
  184. package/dist/src/backend/sessionKeys/schema.cjs +1 -1
  185. package/dist/src/backend/sessionKeys/schema.js +27 -30
  186. package/dist/src/bigdecimal/constants.cjs +1 -1
  187. package/dist/src/bigdecimal/constants.js +6 -3
  188. package/dist/src/bigdecimal/createUnitsSchema.cjs +1 -1
  189. package/dist/src/bigdecimal/createUnitsSchema.js +7 -7
  190. package/dist/src/bigdecimal/formatUnits.cjs +1 -1
  191. package/dist/src/bigdecimal/formatUnits.js +9 -10
  192. package/dist/src/bigdecimal/index.cjs +1 -1
  193. package/dist/src/bigdecimal/index.js +45 -41
  194. package/dist/src/bigdecimal/lib.cjs +1 -1
  195. package/dist/src/bigdecimal/lib.js +105 -117
  196. package/dist/src/bigdecimal/parseUnits.cjs +1 -1
  197. package/dist/src/bigdecimal/parseUnits.js +18 -21
  198. package/dist/src/bigdecimal/utils.cjs +1 -1
  199. package/dist/src/bigdecimal/utils.js +33 -30
  200. package/dist/src/cache/CacheService.cjs +1 -1
  201. package/dist/src/cache/CacheService.js +32 -36
  202. package/dist/src/chains/starknet/address.cjs +1 -1
  203. package/dist/src/chains/starknet/address.js +73 -117
  204. package/dist/src/chains/starknet/addressDomain.cjs +1 -1
  205. package/dist/src/chains/starknet/addressDomain.js +14 -29
  206. package/dist/src/chains/starknet/addressInput.cjs +1 -1
  207. package/dist/src/chains/starknet/addressInput.js +6 -7
  208. package/dist/src/chains/starknet/argentName.cjs +1 -1
  209. package/dist/src/chains/starknet/argentName.js +10 -14
  210. package/dist/src/chains/starknet/cairoVersionSchema.cjs +1 -1
  211. package/dist/src/chains/starknet/cairoVersionSchema.js +5 -5
  212. package/dist/src/chains/starknet/constants.cjs +1 -1
  213. package/dist/src/chains/starknet/constants.js +4 -10
  214. package/dist/src/chains/starknet/getAddressFromArgentName.cjs +1 -1
  215. package/dist/src/chains/starknet/getAddressFromArgentName.js +38 -46
  216. package/dist/src/chains/starknet/getAddressFromStarkName.cjs +1 -1
  217. package/dist/src/chains/starknet/getAddressFromStarkName.js +59 -66
  218. package/dist/src/chains/starknet/network.cjs +1 -1
  219. package/dist/src/chains/starknet/network.js +20 -26
  220. package/dist/src/chains/starknet/services/address/StarknetAddressService.cjs +1 -1
  221. package/dist/src/chains/starknet/services/address/StarknetAddressService.js +31 -36
  222. package/dist/src/chains/starknet/services/deploymentData/constants.cjs +1 -1
  223. package/dist/src/chains/starknet/services/deploymentData/constants.js +14 -21
  224. package/dist/src/chains/starknet/services/deploymentData/deploymentData.schema.cjs +1 -1
  225. package/dist/src/chains/starknet/services/deploymentData/deploymentData.schema.js +15 -17
  226. package/dist/src/chains/starknet/services/deploymentData/findImplementationForAccount.cjs +1 -1
  227. package/dist/src/chains/starknet/services/deploymentData/findImplementationForAccount.js +61 -65
  228. package/dist/src/chains/starknet/services/deploymentData/getAccountClassHash.cjs +1 -1
  229. package/dist/src/chains/starknet/services/deploymentData/getAccountClassHash.js +46 -65
  230. package/dist/src/chains/starknet/starknetId.cjs +1 -1
  231. package/dist/src/chains/starknet/starknetId.js +10 -14
  232. package/dist/src/currencyFetchService/CurrencyFetchService.cjs +1 -1
  233. package/dist/src/currencyFetchService/CurrencyFetchService.js +13 -18
  234. package/dist/src/currencyFetchService/types.ts.cjs +1 -1
  235. package/dist/src/currencyFetchService/types.ts.js +9 -12
  236. package/dist/src/errors/account.cjs +1 -1
  237. package/dist/src/errors/account.js +12 -13
  238. package/dist/src/errors/address.cjs +1 -1
  239. package/dist/src/errors/address.js +11 -12
  240. package/dist/src/errors/baseErrors.cjs +1 -1
  241. package/dist/src/errors/baseErrors.js +14 -14
  242. package/dist/src/errors/call.cjs +1 -1
  243. package/dist/src/errors/call.js +12 -13
  244. package/dist/src/errors/network.cjs +1 -1
  245. package/dist/src/errors/network.js +11 -12
  246. package/dist/src/errors/review.cjs +1 -1
  247. package/dist/src/errors/review.js +11 -12
  248. package/dist/src/errors/swap.cjs +1 -1
  249. package/dist/src/errors/swap.js +12 -13
  250. package/dist/src/features/paymaster/IPaymasterService.d.ts +2 -1
  251. package/dist/src/features/paymaster/PaymasterService.cjs +1 -1
  252. package/dist/src/features/paymaster/PaymasterService.d.ts +3 -1
  253. package/dist/src/features/paymaster/PaymasterService.js +73 -86
  254. package/dist/src/features/paymaster/types.cjs +1 -1
  255. package/dist/src/features/paymaster/types.d.ts +20 -2
  256. package/dist/src/features/paymaster/types.js +41 -39
  257. package/dist/src/features/simulation/activity/normalize.cjs +1 -1
  258. package/dist/src/features/simulation/activity/normalize.js +36 -38
  259. package/dist/src/features/simulation/activity/schema.cjs +1 -1
  260. package/dist/src/features/simulation/activity/schema.js +224 -250
  261. package/dist/src/features/simulation/activity/utils/createNativeActivity.cjs +1 -1
  262. package/dist/src/features/simulation/activity/utils/createNativeActivity.js +23 -27
  263. package/dist/src/features/simulation/activity/utils/getAnyActivityTitle.cjs +1 -1
  264. package/dist/src/features/simulation/activity/utils/getAnyActivityTitle.js +14 -21
  265. package/dist/src/features/simulation/activity/utils/getOverallLastModified.cjs +1 -1
  266. package/dist/src/features/simulation/activity/utils/getOverallLastModified.js +5 -5
  267. package/dist/src/features/simulation/activity/utils/hasDelegationActivity.cjs +1 -1
  268. package/dist/src/features/simulation/activity/utils/hasDelegationActivity.js +4 -4
  269. package/dist/src/features/simulation/activity/utils/isAddMultisigSignersActivity.cjs +1 -1
  270. package/dist/src/features/simulation/activity/utils/isAddMultisigSignersActivity.js +15 -19
  271. package/dist/src/features/simulation/activity/utils/isChangeMultisigThresholdActivity.cjs +1 -1
  272. package/dist/src/features/simulation/activity/utils/isChangeMultisigThresholdActivity.js +15 -19
  273. package/dist/src/features/simulation/activity/utils/isMulticallWithDeploymentActivity.cjs +1 -1
  274. package/dist/src/features/simulation/activity/utils/isMulticallWithDeploymentActivity.js +5 -5
  275. package/dist/src/features/simulation/activity/utils/isRejectOnChainActivity.cjs +1 -1
  276. package/dist/src/features/simulation/activity/utils/isRejectOnChainActivity.js +19 -21
  277. package/dist/src/features/simulation/activity/utils/isRemoveMultisigSignersActivity.cjs +1 -1
  278. package/dist/src/features/simulation/activity/utils/isRemoveMultisigSignersActivity.js +15 -19
  279. package/dist/src/features/simulation/activity/utils/isSwapActivity.cjs +1 -1
  280. package/dist/src/features/simulation/activity/utils/isSwapActivity.js +17 -18
  281. package/dist/src/features/simulation/activity/utils/isUpgradeActivity.cjs +1 -1
  282. package/dist/src/features/simulation/activity/utils/isUpgradeActivity.js +15 -19
  283. package/dist/src/features/simulation/activity/utils/parseAccountActivities.cjs +1 -1
  284. package/dist/src/features/simulation/activity/utils/parseAccountActivities.js +12 -12
  285. package/dist/src/features/simulation/activity/utils/parseFinanceActivities.cjs +1 -1
  286. package/dist/src/features/simulation/activity/utils/parseFinanceActivities.js +32 -32
  287. package/dist/src/features/simulation/fees/schema.cjs +1 -1
  288. package/dist/src/features/simulation/fees/schema.js +33 -47
  289. package/dist/src/features/simulation/transactionReview/getErrorMessageAndLabelFromSimulation.cjs +1 -1
  290. package/dist/src/features/simulation/transactionReview/getErrorMessageAndLabelFromSimulation.js +15 -17
  291. package/dist/src/features/simulation/transactionReview/getMessageFromSimulationError.cjs +1 -1
  292. package/dist/src/features/simulation/transactionReview/getMessageFromSimulationError.js +5 -5
  293. package/dist/src/features/simulation/transactionReview/schema.cjs +1 -1
  294. package/dist/src/features/simulation/transactionReview/schema.js +221 -242
  295. package/dist/src/features/simulation/warning/helper.cjs +1 -1
  296. package/dist/src/features/simulation/warning/helper.js +12 -11
  297. package/dist/src/features/simulation/warning/schema.cjs +1 -1
  298. package/dist/src/features/simulation/warning/schema.js +10 -11
  299. package/dist/src/features/swap/models/order.model.cjs +1 -1
  300. package/dist/src/features/swap/models/order.model.js +16 -19
  301. package/dist/src/features/swap/models/quote.model.cjs +1 -1
  302. package/dist/src/features/swap/models/quote.model.js +31 -35
  303. package/dist/src/features/swap/models/trade.model.cjs +1 -1
  304. package/dist/src/features/swap/models/trade.model.js +25 -27
  305. package/dist/src/features/swap/services/SwapSharedService.cjs +1 -1
  306. package/dist/src/features/swap/services/SwapSharedService.js +71 -75
  307. package/dist/src/features/swap/services/SwapTransactionService.cjs +1 -1
  308. package/dist/src/features/swap/services/SwapTransactionService.js +57 -63
  309. package/dist/src/features/swap/utils/slippage.cjs +1 -1
  310. package/dist/src/features/swap/utils/slippage.js +18 -25
  311. package/dist/src/features/swap/utils/totalFee.cjs +1 -1
  312. package/dist/src/features/swap/utils/totalFee.js +12 -12
  313. package/dist/src/http/DateService.cjs +1 -1
  314. package/dist/src/http/DateService.js +15 -18
  315. package/dist/src/http/HttpError.cjs +1 -1
  316. package/dist/src/http/HttpError.js +7 -7
  317. package/dist/src/http/HttpService.cjs +1 -1
  318. package/dist/src/http/HttpService.js +117 -134
  319. package/dist/src/http/IHttpService.cjs +1 -1
  320. package/dist/src/http/IHttpService.js +6 -6
  321. package/dist/src/http/SWRService.cjs +1 -1
  322. package/dist/src/http/SWRService.js +50 -57
  323. package/dist/src/http/fetcher.cjs +1 -1
  324. package/dist/src/http/fetcher.js +29 -35
  325. package/dist/src/http/time.cjs +1 -1
  326. package/dist/src/http/time.js +15 -18
  327. package/dist/src/knownDapps/KnownDappsBackendService.cjs +1 -1
  328. package/dist/src/knownDapps/KnownDappsBackendService.js +13 -14
  329. package/dist/src/knownDapps/schema.cjs +1 -1
  330. package/dist/src/knownDapps/schema.js +41 -44
  331. package/dist/src/knownDapps/utils/getDapplandUrl.cjs +1 -1
  332. package/dist/src/knownDapps/utils/getDapplandUrl.js +7 -8
  333. package/dist/src/nameResolution/ResolveNameService.cjs +1 -1
  334. package/dist/src/nameResolution/ResolveNameService.js +34 -41
  335. package/dist/src/nameResolution/schema.cjs +1 -1
  336. package/dist/src/nameResolution/schema.js +20 -25
  337. package/dist/src/nfts/BackendNftService.cjs +1 -1
  338. package/dist/src/nfts/BackendNftService.js +103 -116
  339. package/dist/src/nfts/BackendPaginationError.cjs +1 -1
  340. package/dist/src/nfts/BackendPaginationError.js +11 -12
  341. package/dist/src/nfts/utils.cjs +1 -1
  342. package/dist/src/nfts/utils.js +11 -14
  343. package/dist/src/onchainRecovery/OnchainRecoveryService.cjs +1 -1
  344. package/dist/src/onchainRecovery/OnchainRecoveryService.js +38 -68
  345. package/dist/src/onchainRecovery/schema.cjs +1 -1
  346. package/dist/src/onchainRecovery/schema.js +35 -49
  347. package/dist/src/platform/isBraveBrowser.cjs +1 -1
  348. package/dist/src/platform/isBraveBrowser.js +8 -10
  349. package/dist/src/platform/isBrowser.cjs +1 -1
  350. package/dist/src/platform/isBrowser.js +17 -22
  351. package/dist/src/signer/mergeOwnerGuardianSignatures.cjs +1 -1
  352. package/dist/src/signer/mergeOwnerGuardianSignatures.js +28 -30
  353. package/dist/src/signer/multisigner.cjs +1 -1
  354. package/dist/src/signer/multisigner.js +16 -17
  355. package/dist/src/signer/seedphrase.cjs +1 -1
  356. package/dist/src/signer/seedphrase.js +7 -7
  357. package/dist/src/staking/schema.cjs +1 -1
  358. package/dist/src/staking/schema.js +146 -162
  359. package/dist/src/storage/base.cjs +1 -1
  360. package/dist/src/storage/base.js +33 -34
  361. package/dist/src/storage/utils.cjs +1 -1
  362. package/dist/src/storage/utils.js +19 -28
  363. package/dist/src/tokens/balances.cjs +1 -1
  364. package/dist/src/tokens/balances.js +34 -38
  365. package/dist/src/tokens/constants.cjs +1 -1
  366. package/dist/src/tokens/constants.js +4 -4
  367. package/dist/src/tokens/convertCurrencyValueToTokenAmount.cjs +1 -1
  368. package/dist/src/tokens/convertCurrencyValueToTokenAmount.js +8 -9
  369. package/dist/src/tokens/convertTokenAmountToCurrencyValue.cjs +1 -1
  370. package/dist/src/tokens/convertTokenAmountToCurrencyValue.js +14 -15
  371. package/dist/src/tokens/convertTokenUnitAmountWithDecimals.cjs +1 -1
  372. package/dist/src/tokens/convertTokenUnitAmountWithDecimals.js +8 -9
  373. package/dist/src/tokens/ensureDecimals.cjs +1 -1
  374. package/dist/src/tokens/ensureDecimals.js +4 -4
  375. package/dist/src/tokens/getCurrencySymbol.cjs +1 -1
  376. package/dist/src/tokens/getCurrencySymbol.js +14 -14
  377. package/dist/src/tokens/isUnlimitedAmount.cjs +1 -1
  378. package/dist/src/tokens/isUnlimitedAmount.js +5 -5
  379. package/dist/src/tokens/prettifyCurrencyValue.cjs +1 -1
  380. package/dist/src/tokens/prettifyCurrencyValue.js +13 -14
  381. package/dist/src/tokens/prettifyTokenAmount.cjs +1 -1
  382. package/dist/src/tokens/prettifyTokenAmount.js +22 -22
  383. package/dist/src/tokens/service/implementation.cjs +1 -1
  384. package/dist/src/tokens/service/implementation.js +28 -40
  385. package/dist/src/tokens/service/tokenError.cjs +1 -1
  386. package/dist/src/tokens/service/tokenError.js +11 -12
  387. package/dist/src/tokens/service/types/backend.model.cjs +1 -1
  388. package/dist/src/tokens/service/types/backend.model.js +128 -163
  389. package/dist/src/tokens/service/types/defiPosition.model.cjs +1 -1
  390. package/dist/src/tokens/service/types/defiPosition.model.js +83 -99
  391. package/dist/src/tokens/service/types/defiPositionType.model.cjs +1 -1
  392. package/dist/src/tokens/service/types/defiPositionType.model.js +9 -9
  393. package/dist/src/tokens/service/types/unclaimedRewards.model.cjs +1 -1
  394. package/dist/src/tokens/service/types/unclaimedRewards.model.js +15 -16
  395. package/dist/src/tokens/service/types/webToken.model.cjs +1 -1
  396. package/dist/src/tokens/service/types/webToken.model.js +28 -51
  397. package/dist/src/tokens/utils.cjs +1 -1
  398. package/dist/src/tokens/utils.js +5 -9
  399. package/dist/src/transactions/amount.cjs +1 -1
  400. package/dist/src/transactions/amount.js +17 -24
  401. package/dist/src/transactions/buildTransactions.cjs +1 -1
  402. package/dist/src/transactions/buildTransactions.js +30 -33
  403. package/dist/src/transactions/errors.cjs +1 -1
  404. package/dist/src/transactions/errors.js +11 -18
  405. package/dist/src/transactions/estimate/adjustment.cjs +1 -1
  406. package/dist/src/transactions/estimate/adjustment.js +6 -6
  407. package/dist/src/transactions/estimate/argentMaxFee.cjs +1 -1
  408. package/dist/src/transactions/estimate/argentMaxFee.js +10 -13
  409. package/dist/src/transactions/estimate/error.cjs +1 -1
  410. package/dist/src/transactions/estimate/error.js +12 -13
  411. package/dist/src/transactions/estimate/model.cjs +1 -1
  412. package/dist/src/transactions/estimate/model.js +18 -13
  413. package/dist/src/transactions/estimate/utils.cjs +1 -1
  414. package/dist/src/transactions/estimate/utils.js +139 -172
  415. package/dist/src/transactions/findTransfersAndApprovals.cjs +1 -1
  416. package/dist/src/transactions/findTransfersAndApprovals.js +34 -30
  417. package/dist/src/transactions/getPrettyRcpError.cjs +1 -1
  418. package/dist/src/transactions/getPrettyRcpError.js +8 -10
  419. package/dist/src/transactions/service/implementation.cjs +1 -1
  420. package/dist/src/transactions/service/implementation.js +187 -208
  421. package/dist/src/transactions/service/types.cjs +1 -1
  422. package/dist/src/transactions/service/types.js +9 -9
  423. package/dist/src/transactions/service/utils.cjs +1 -1
  424. package/dist/src/transactions/service/utils.js +24 -25
  425. package/dist/src/transactions/transactionExecuteTypes.cjs +1 -1
  426. package/dist/src/transactions/transactionExecuteTypes.js +8 -9
  427. package/dist/src/transactions/transactionReviewTypes.cjs +1 -1
  428. package/dist/src/transactions/transactionReviewTypes.js +9 -9
  429. package/dist/src/transactions/transactionVersion.cjs +1 -1
  430. package/dist/src/transactions/transactionVersion.js +8 -13
  431. package/dist/src/transactions/txv3.cjs +1 -1
  432. package/dist/src/transactions/txv3.js +10 -11
  433. package/dist/src/utils/address.cjs +1 -1
  434. package/dist/src/utils/address.js +4 -4
  435. package/dist/src/utils/arrays.cjs +1 -1
  436. package/dist/src/utils/arrays.js +4 -4
  437. package/dist/src/utils/avatarImage.cjs +4 -4
  438. package/dist/src/utils/avatarImage.js +35 -40
  439. package/dist/src/utils/base58.cjs +1 -1
  440. package/dist/src/utils/base58.js +12 -15
  441. package/dist/src/utils/bigNumber.cjs +1 -1
  442. package/dist/src/utils/bigNumber.d.ts +1 -1
  443. package/dist/src/utils/bigNumber.js +5 -7
  444. package/dist/src/utils/bips.cjs +1 -1
  445. package/dist/src/utils/bips.js +12 -10
  446. package/dist/src/utils/daysBetween.cjs +1 -1
  447. package/dist/src/utils/daysBetween.js +6 -6
  448. package/dist/src/utils/env.cjs +1 -1
  449. package/dist/src/utils/env.js +4 -4
  450. package/dist/src/utils/hex.cjs +1 -1
  451. package/dist/src/utils/hex.js +7 -8
  452. package/dist/src/utils/id.cjs +1 -1
  453. package/dist/src/utils/id.js +7 -7
  454. package/dist/src/utils/initials.cjs +1 -1
  455. package/dist/src/utils/initials.js +12 -15
  456. package/dist/src/utils/isContractDeployed.cjs +1 -1
  457. package/dist/src/utils/isContractDeployed.js +9 -9
  458. package/dist/src/utils/nonNullable.cjs +1 -1
  459. package/dist/src/utils/nonNullable.js +6 -6
  460. package/dist/src/utils/number/abbreviateNumber.cjs +1 -1
  461. package/dist/src/utils/number/abbreviateNumber.js +13 -14
  462. package/dist/src/utils/number/isAllowedAddressHexInputValue.cjs +1 -1
  463. package/dist/src/utils/number/isAllowedAddressHexInputValue.js +4 -7
  464. package/dist/src/utils/number/isAllowedNumericInputValue.cjs +1 -1
  465. package/dist/src/utils/number/isAllowedNumericInputValue.js +5 -5
  466. package/dist/src/utils/number/isNumeric.cjs +1 -1
  467. package/dist/src/utils/number/isNumeric.js +4 -4
  468. package/dist/src/utils/number/prettifyNumber.cjs +1 -1
  469. package/dist/src/utils/number/prettifyNumber.js +65 -75
  470. package/dist/src/utils/parseAmount.cjs +1 -1
  471. package/dist/src/utils/parseAmount.js +10 -11
  472. package/dist/src/utils/pluralise.cjs +1 -1
  473. package/dist/src/utils/pluralise.js +4 -4
  474. package/dist/src/utils/readFileAsString.cjs +1 -1
  475. package/dist/src/utils/readFileAsString.js +6 -6
  476. package/dist/src/utils/retryUntilInitialised.cjs +1 -1
  477. package/dist/src/utils/retryUntilInitialised.js +21 -20
  478. package/dist/src/utils/schemas.cjs +1 -1
  479. package/dist/src/utils/schemas.js +29 -26
  480. package/dist/src/utils/starknet/starknet.cjs +1 -1
  481. package/dist/src/utils/starknet/starknet.js +64 -77
  482. package/dist/src/utils/starknet/starknetLibTypes.cjs +1 -1
  483. package/dist/src/utils/starknet/starknetLibTypes.js +7 -7
  484. package/dist/src/utils/starknet/starknetSchemas.cjs +1 -1
  485. package/dist/src/utils/starknet/starknetSchemas.js +84 -99
  486. package/dist/src/utils/transactions.cjs +1 -1
  487. package/dist/src/utils/transactions.js +10 -10
  488. package/dist/src/utils/url/urlWithQuery.cjs +1 -1
  489. package/dist/src/utils/url/urlWithQuery.js +8 -8
  490. package/dist/src/utils/voidify.cjs +1 -1
  491. package/dist/src/utils/voidify.js +7 -7
  492. package/dist/swap.cjs +1 -1
  493. package/dist/swap.js +8 -22
  494. package/package.json +15 -15
  495. package/dist/_virtual/_commonjsHelpers.cjs +0 -1
  496. package/dist/_virtual/_commonjsHelpers.js +0 -6
  497. package/dist/_virtual/numeral.cjs +0 -1
  498. package/dist/_virtual/numeral.js +0 -7
  499. package/dist/_virtual/numeral2.cjs +0 -1
  500. package/dist/_virtual/numeral2.js +0 -4
  501. package/dist/_virtual/semver.cjs +0 -1
  502. package/dist/_virtual/semver.js +0 -7
  503. package/dist/_virtual/semver2.cjs +0 -1
  504. package/dist/_virtual/semver2.js +0 -4
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("zod"),d=require("../warning/schema.cjs"),A=require("../fees/schema.cjs"),a=require("../../../chains/starknet/address.cjs"),T=e.z.object({name:e.z.string(),url:e.z.string(),position:e.z.number()}),i=e.z.object({address:e.z.string(),name:e.z.string(),symbol:e.z.string().optional(),decimals:e.z.number().optional(),unknown:e.z.boolean(),iconUrl:e.z.string().optional(),type:e.z.string()}),s=e.z.discriminatedUnion("type",[e.z.object({type:e.z.literal("amount"),label:e.z.string(),token:i,amount:e.z.string(),usd:e.z.string(),editable:e.z.boolean()}),e.z.object({type:e.z.literal("address"),label:e.z.string(),address:e.z.string(),addressName:e.z.string().optional(),verified:e.z.boolean().optional()}),e.z.object({type:e.z.literal("timestamp"),label:e.z.string(),value:e.z.string()}),e.z.object({type:e.z.literal("token_address"),label:e.z.string(),token:i}),e.z.object({type:e.z.literal("calldata"),label:e.z.string(),entrypoint:e.z.string(),calldata:e.z.array(e.z.string())}),e.z.object({type:e.z.literal("class_hash"),label:e.z.string(),classHash:e.z.string()}),e.z.object({type:e.z.literal("text"),label:e.z.string(),text:e.z.string()}),e.z.object({type:e.z.literal("nft"),label:e.z.string(),token:i})]),u=e.z.object({name:e.z.string(),properties:e.z.array(s),defaultProperties:e.z.array(s).optional()}),g=e.z.union([e.z.literal("verified"),e.z.literal("neutral"),e.z.literal("partial"),e.z.literal("warn")]),b=e.z.object({unknown_token:e.z.unknown().optional(),date_of_addition:e.z.string().optional(),contract_address:a.addressSchema.optional(),reason:e.z.string().optional(),value:e.z.any().optional()}),r=e.z.object({reason:d.reasonsSchema,details:b.optional(),severity:d.severitySchema}),S=e.z.object({assessment:g,warnings:e.z.array(r).optional(),assessmentReasons:e.z.array(e.z.string()).optional(),assessmentDetails:e.z.object({contract_address:e.z.string()}).optional(),action:u}),h=e.z.object({name:e.z.string(),description:e.z.string(),logoUrl:e.z.string().optional(),iconUrl:e.z.string().optional(),argentVerified:e.z.boolean(),links:e.z.array(T)}),y=e.z.object({assessment:e.z.union([e.z.literal("verified"),e.z.literal("neutral"),e.z.literal("partial"),e.z.literal("warn")]),warnings:e.z.array(r).optional(),assessmentDetails:e.z.object({contract_address:e.z.string()}).optional(),targetedDapp:h.optional(),reviews:e.z.array(S)}).optional(),j=e.z.object({banner:e.z.string().nullable().optional(),preview:e.z.string().nullable().optional(),full:e.z.string().nullable().optional(),original:e.z.string().nullable().optional()}),B=e.z.object({twitter:e.z.string().optional(),external:e.z.string().optional(),discord:e.z.string().optional()}),l=e.z.object({address:a.addressSchemaArgentBackend,decimals:e.z.number().optional(),symbol:e.z.string().optional(),name:e.z.string(),description:e.z.string().optional(),type:e.z.string().optional(),usdValue:e.z.string().optional(),iconUrl:e.z.string().optional(),unknown:e.z.boolean().optional(),imageUrls:j.optional(),links:B.optional()}),D=e.z.object({tokenAddress:a.addressSchemaArgentBackend,owner:a.addressSchemaArgentBackend,spender:a.addressSchemaArgentBackend,value:e.z.string().optional(),approvalForAll:e.z.boolean(),details:l.optional()}),F=e.z.object({tokenAddress:a.addressSchemaArgentBackend,from:a.addressSchemaArgentBackend,to:a.addressSchemaArgentBackend,tokenId:e.z.string().optional(),value:e.z.string().optional(),details:l.optional()}),n=e.z.union([e.z.string(),e.z.number(),e.z.bigint()]).transform(t=>parseInt(t.toString(),10)),c=e.z.object({address:a.addressSchemaArgentBackend,unknown:e.z.boolean(),type:e.z.literal("ERC20")}),o=e.z.object({maxAmount:n,maxPricePerUnit:n}),f=e.z.object({l1Gas:o,l1DataGas:o,l2Gas:o}),k=e.z.object({token:c,overallFee:n,maxFee:n,defaultTip:n.optional()}),z=e.z.object({overallFee:n,resourceBounds:f,unit:e.z.string().transform(t=>t.toUpperCase()).pipe(e.z.literal("FRI")),token:c,defaultTip:n.optional()}),v=z.or(k),U=e.z.object({type:e.z.string(),label:e.z.string(),tokenId:e.z.string().optional(),value:e.z.string().optional(),token:l,sent:e.z.boolean().optional(),ccyValue:e.z.string().optional(),currency:e.z.string().optional(),tokenIdDetails:e.z.object({name:e.z.string().optional(),description:e.z.string().optional(),imageUrls:j.optional()}).optional()}),O=e.z.object({approvals:e.z.array(D).optional(),transfers:e.z.array(F).optional(),calculatedNonce:e.z.string().optional(),feeEstimation:z,feeEstimations:e.z.array(v),summary:e.z.array(U).optional()}),R=e.z.object({label:e.z.string().optional(),code:e.z.number().optional(),message:e.z.string().optional(),error:e.z.string().optional()}),w=e.z.object({reviewOfTransaction:y,simulation:O,simulationError:e.z.undefined().optional()}),E=e.z.object({reviewOfTransaction:y,simulation:e.z.undefined().optional(),simulationError:R}),m=w.or(E),p=e.z.object({subsidiseDeployment:e.z.boolean(),subsidiseTransaction:e.z.boolean()}),N=e.z.object({transactions:e.z.array(m).optional(),canSubsidise:e.z.boolean().optional(),subsidyStatus:p.optional()}),P=e.z.object({transactions:e.z.array(m).optional(),canSubsidise:e.z.boolean().optional(),subsidyStatus:p.optional(),enrichedFeeEstimation:e.z.array(A.estimatedFeesSchema).optional(),isBackendDown:e.z.boolean().default(!1).optional()});function _(t){return w.safeParse(t).success}function x(t){return E.safeParse(t).success}exports.actionSchema=u;exports.assessmentSchema=g;exports.enrichedSimulateAndReviewSchema=P;exports.feeEstimationGasSchema=o;exports.feeEstimationNativeOrPaymasterSchema=v;exports.feeEstimationResourceBoundSchema=f;exports.feeEstimationSchema=z;exports.isNotTransactionSimulationError=_;exports.isTransactionSimulationError=x;exports.paymasterFeeEstimationSchema=k;exports.paymasterFeeTokenSchema=c;exports.propertySchema=s;exports.reviewSchema=S;exports.simulateAndReviewSchema=N;exports.subsidyStatusSchema=p;exports.targetedDappSchema=h;exports.transactionSimulationOrErrorSchema=m;exports.warningDetailsSchema=b;exports.warningSchema=r;
1
+ require(`../../../../_virtual/_rolldown/runtime.cjs`);const e=require(`../../../chains/starknet/address.cjs`),t=require(`../fees/schema.cjs`),n=require(`../warning/schema.cjs`);let r=require(`zod`);var i=r.z.object({name:r.z.string(),url:r.z.string(),position:r.z.number()}),a=r.z.object({address:r.z.string(),name:r.z.string(),symbol:r.z.string().optional(),decimals:r.z.number().optional(),unknown:r.z.boolean(),iconUrl:r.z.string().optional(),type:r.z.string()}),o=r.z.discriminatedUnion(`type`,[r.z.object({type:r.z.literal(`amount`),label:r.z.string(),token:a,amount:r.z.string(),usd:r.z.string(),editable:r.z.boolean()}),r.z.object({type:r.z.literal(`address`),label:r.z.string(),address:r.z.string(),addressName:r.z.string().optional(),verified:r.z.boolean().optional()}),r.z.object({type:r.z.literal(`timestamp`),label:r.z.string(),value:r.z.string()}),r.z.object({type:r.z.literal(`token_address`),label:r.z.string(),token:a}),r.z.object({type:r.z.literal(`calldata`),label:r.z.string(),entrypoint:r.z.string(),calldata:r.z.array(r.z.string())}),r.z.object({type:r.z.literal(`class_hash`),label:r.z.string(),classHash:r.z.string()}),r.z.object({type:r.z.literal(`text`),label:r.z.string(),text:r.z.string()}),r.z.object({type:r.z.literal(`nft`),label:r.z.string(),token:a})]),s=r.z.object({name:r.z.string(),properties:r.z.array(o),defaultProperties:r.z.array(o).optional()}),c=r.z.union([r.z.literal(`verified`),r.z.literal(`neutral`),r.z.literal(`partial`),r.z.literal(`warn`)]),l=r.z.object({unknown_token:r.z.unknown().optional(),date_of_addition:r.z.string().optional(),contract_address:e.addressSchema.optional(),reason:r.z.string().optional(),value:r.z.any().optional()}),u=r.z.object({reason:n.reasonsSchema,details:l.optional(),severity:n.severitySchema}),d=r.z.object({assessment:c,warnings:r.z.array(u).optional(),assessmentReasons:r.z.array(r.z.string()).optional(),assessmentDetails:r.z.object({contract_address:r.z.string()}).optional(),action:s}),f=r.z.object({name:r.z.string(),description:r.z.string(),logoUrl:r.z.string().optional(),iconUrl:r.z.string().optional(),argentVerified:r.z.boolean(),links:r.z.array(i)}),p=r.z.object({assessment:r.z.union([r.z.literal(`verified`),r.z.literal(`neutral`),r.z.literal(`partial`),r.z.literal(`warn`)]),warnings:r.z.array(u).optional(),assessmentDetails:r.z.object({contract_address:r.z.string()}).optional(),targetedDapp:f.optional(),reviews:r.z.array(d)}).optional(),m=r.z.object({banner:r.z.string().nullable().optional(),preview:r.z.string().nullable().optional(),full:r.z.string().nullable().optional(),original:r.z.string().nullable().optional()}),h=r.z.object({twitter:r.z.string().optional(),external:r.z.string().optional(),discord:r.z.string().optional()}),g=r.z.object({address:e.addressSchemaArgentBackend,decimals:r.z.number().optional(),symbol:r.z.string().optional(),name:r.z.string(),description:r.z.string().optional(),type:r.z.string().optional(),usdValue:r.z.string().optional(),iconUrl:r.z.string().optional(),unknown:r.z.boolean().optional(),imageUrls:m.optional(),links:h.optional()}),_=r.z.object({tokenAddress:e.addressSchemaArgentBackend,owner:e.addressSchemaArgentBackend,spender:e.addressSchemaArgentBackend,value:r.z.string().optional(),approvalForAll:r.z.boolean(),details:g.optional()}),v=r.z.object({tokenAddress:e.addressSchemaArgentBackend,from:e.addressSchemaArgentBackend,to:e.addressSchemaArgentBackend,tokenId:r.z.string().optional(),value:r.z.string().optional(),details:g.optional()}),y=r.z.union([r.z.string(),r.z.number(),r.z.bigint()]).transform(e=>parseInt(e.toString(),10)),b=r.z.object({address:e.addressSchemaArgentBackend,unknown:r.z.boolean(),type:r.z.literal(`ERC20`)}),x=r.z.object({maxAmount:y,maxPricePerUnit:y}),S=r.z.object({l1Gas:x,l1DataGas:x,l2Gas:x}),C=r.z.object({token:b,overallFee:y,maxFee:y,defaultTip:y.optional()}),w=r.z.object({overallFee:y,resourceBounds:S,unit:r.z.string().transform(e=>e.toUpperCase()).pipe(r.z.literal(`FRI`)),token:b,defaultTip:y.optional()}),T=w.or(C),E=r.z.object({type:r.z.string(),label:r.z.string(),tokenId:r.z.string().optional(),value:r.z.string().optional(),token:g,sent:r.z.boolean().optional(),ccyValue:r.z.string().optional(),currency:r.z.string().optional(),tokenIdDetails:r.z.object({name:r.z.string().optional(),description:r.z.string().optional(),imageUrls:m.optional()}).optional()}),D=r.z.object({approvals:r.z.array(_).optional(),transfers:r.z.array(v).optional(),calculatedNonce:r.z.string().optional(),feeEstimation:w,feeEstimations:r.z.array(T),summary:r.z.array(E).optional()}),O=r.z.object({label:r.z.string().optional(),code:r.z.number().optional(),message:r.z.string().optional(),error:r.z.string().optional()}),k=r.z.object({reviewOfTransaction:p,simulation:D,simulationError:r.z.undefined().optional()}),A=r.z.object({reviewOfTransaction:p,simulation:r.z.undefined().optional(),simulationError:O}),j=k.or(A),M=r.z.object({subsidiseDeployment:r.z.boolean(),subsidiseTransaction:r.z.boolean()}),N=r.z.object({transactions:r.z.array(j).optional(),canSubsidise:r.z.boolean().optional(),subsidyStatus:M.optional()}),P=r.z.object({transactions:r.z.array(j).optional(),canSubsidise:r.z.boolean().optional(),subsidyStatus:M.optional(),enrichedFeeEstimation:r.z.array(t.estimatedFeesSchema).optional(),isBackendDown:r.z.boolean().default(!1).optional()});function F(e){return k.safeParse(e).success}function I(e){return A.safeParse(e).success}exports.actionSchema=s,exports.assessmentSchema=c,exports.enrichedSimulateAndReviewSchema=P,exports.feeEstimationGasSchema=x,exports.feeEstimationNativeOrPaymasterSchema=T,exports.feeEstimationResourceBoundSchema=S,exports.feeEstimationSchema=w,exports.isNotTransactionSimulationError=F,exports.isTransactionSimulationError=I,exports.paymasterFeeEstimationSchema=C,exports.paymasterFeeTokenSchema=b,exports.propertySchema=o,exports.reviewSchema=d,exports.simulateAndReviewSchema=N,exports.subsidyStatusSchema=M,exports.targetedDappSchema=f,exports.transactionSimulationOrErrorSchema=j,exports.warningDetailsSchema=l,exports.warningSchema=u;
@@ -1,245 +1,224 @@
1
- import { z as t } from "zod";
2
- import { severitySchema as y, reasonsSchema as h } from "../warning/schema.js";
3
- import { estimatedFeesSchema as j } from "../fees/schema.js";
4
- import { addressSchema as f, addressSchemaArgentBackend as a } from "../../../chains/starknet/address.js";
5
- const k = t.object({
6
- name: t.string(),
7
- url: t.string(),
8
- position: t.number()
9
- }), e = t.object({
10
- address: t.string(),
11
- name: t.string(),
12
- symbol: t.string().optional(),
13
- decimals: t.number().optional(),
14
- unknown: t.boolean(),
15
- iconUrl: t.string().optional(),
16
- type: t.string()
17
- }), r = t.discriminatedUnion("type", [
18
- t.object({
19
- type: t.literal("amount"),
20
- label: t.string(),
21
- token: e,
22
- amount: t.string(),
23
- usd: t.string(),
24
- editable: t.boolean()
25
- }),
26
- t.object({
27
- type: t.literal("address"),
28
- label: t.string(),
29
- address: t.string(),
30
- addressName: t.string().optional(),
31
- // tbd whether it's isVerified or verified
32
- verified: t.boolean().optional()
33
- }),
34
- t.object({
35
- type: t.literal("timestamp"),
36
- label: t.string(),
37
- value: t.string()
38
- }),
39
- t.object({
40
- type: t.literal("token_address"),
41
- label: t.string(),
42
- token: e
43
- }),
44
- t.object({
45
- type: t.literal("calldata"),
46
- label: t.string(),
47
- entrypoint: t.string(),
48
- calldata: t.array(t.string())
49
- }),
50
- t.object({
51
- type: t.literal("class_hash"),
52
- label: t.string(),
53
- classHash: t.string()
54
- }),
55
- t.object({
56
- type: t.literal("text"),
57
- label: t.string(),
58
- text: t.string()
59
- }),
60
- t.object({
61
- type: t.literal("nft"),
62
- label: t.string(),
63
- token: e
64
- })
65
- ]), v = t.object({
66
- name: t.string(),
67
- properties: t.array(r),
68
- defaultProperties: t.array(r).optional()
69
- }), w = t.union([
70
- t.literal("verified"),
71
- t.literal("neutral"),
72
- t.literal("partial"),
73
- t.literal("warn")
74
- ]), E = t.object({
75
- unknown_token: t.unknown().optional(),
76
- date_of_addition: t.string().optional(),
77
- contract_address: f.optional(),
78
- reason: t.string().optional(),
79
- value: t.any().optional()
80
- }), l = t.object({
81
- reason: h,
82
- details: E.optional(),
83
- severity: y
84
- }), D = t.object({
85
- assessment: w,
86
- warnings: t.array(l).optional(),
87
- assessmentReasons: t.array(t.string()).optional(),
88
- assessmentDetails: t.object({
89
- contract_address: t.string()
90
- }).optional(),
91
- action: v
92
- }), U = t.object({
93
- name: t.string(),
94
- description: t.string(),
95
- logoUrl: t.string().optional(),
96
- iconUrl: t.string().optional(),
97
- argentVerified: t.boolean(),
98
- links: t.array(k)
99
- }), c = t.object({
100
- assessment: t.union([
101
- t.literal("verified"),
102
- t.literal("neutral"),
103
- t.literal("partial"),
104
- t.literal("warn")
105
- ]),
106
- warnings: t.array(l).optional(),
107
- assessmentDetails: t.object({
108
- contract_address: t.string()
109
- }).optional(),
110
- targetedDapp: U.optional(),
111
- reviews: t.array(D)
112
- }).optional(), p = t.object({
113
- banner: t.string().nullable().optional(),
114
- preview: t.string().nullable().optional(),
115
- full: t.string().nullable().optional(),
116
- original: t.string().nullable().optional()
117
- }), F = t.object({
118
- twitter: t.string().optional(),
119
- external: t.string().optional(),
120
- discord: t.string().optional()
121
- }), s = t.object({
122
- address: a,
123
- decimals: t.number().optional(),
124
- symbol: t.string().optional(),
125
- name: t.string(),
126
- description: t.string().optional(),
127
- type: t.string().optional(),
128
- usdValue: t.string().optional(),
129
- iconUrl: t.string().optional(),
130
- unknown: t.boolean().optional(),
131
- imageUrls: p.optional(),
132
- links: F.optional()
133
- }), T = t.object({
134
- tokenAddress: a,
135
- owner: a,
136
- spender: a,
137
- value: t.string().optional(),
138
- approvalForAll: t.boolean(),
139
- details: s.optional()
140
- }), A = t.object({
141
- tokenAddress: a,
142
- from: a,
143
- to: a,
144
- tokenId: t.string().optional(),
145
- value: t.string().optional(),
146
- details: s.optional()
147
- }), n = t.union([t.string(), t.number(), t.bigint()]).transform((o) => parseInt(o.toString(), 10)), m = t.object({
148
- address: a,
149
- unknown: t.boolean(),
150
- type: t.literal("ERC20")
151
- }), i = t.object({
152
- maxAmount: n,
153
- maxPricePerUnit: n
154
- }), _ = t.object({
155
- l1Gas: i,
156
- l1DataGas: i,
157
- l2Gas: i
158
- }), x = t.object({
159
- token: m,
160
- overallFee: n,
161
- maxFee: n,
162
- defaultTip: n.optional()
163
- }), d = t.object({
164
- overallFee: n,
165
- resourceBounds: _,
166
- unit: t.string().transform((o) => o.toUpperCase()).pipe(t.literal("FRI")),
167
- token: m,
168
- defaultTip: n.optional()
169
- }), N = d.or(x), O = t.object({
170
- type: t.string(),
171
- label: t.string(),
172
- tokenId: t.string().optional(),
173
- value: t.string().optional(),
174
- token: s,
175
- sent: t.boolean().optional(),
176
- ccyValue: t.string().optional(),
177
- // currency value
178
- currency: t.string().optional(),
179
- // currency code
180
- tokenIdDetails: t.object({
181
- name: t.string().optional(),
182
- description: t.string().optional(),
183
- imageUrls: p.optional()
184
- }).optional()
185
- }), P = t.object({
186
- approvals: t.array(T).optional(),
187
- transfers: t.array(A).optional(),
188
- calculatedNonce: t.string().optional(),
189
- feeEstimation: d,
190
- feeEstimations: t.array(N),
191
- summary: t.array(O).optional()
192
- }), R = t.object({
193
- label: t.string().optional(),
194
- code: t.number().optional(),
195
- message: t.string().optional(),
196
- error: t.string().optional()
197
- }), b = t.object({
198
- reviewOfTransaction: c,
199
- simulation: P,
200
- simulationError: t.undefined().optional()
201
- }), g = t.object({
202
- reviewOfTransaction: c,
203
- simulation: t.undefined().optional(),
204
- simulationError: R
205
- }), u = b.or(g), S = t.object({
206
- subsidiseDeployment: t.boolean(),
207
- subsidiseTransaction: t.boolean()
208
- }), C = t.object({
209
- transactions: t.array(u).optional(),
210
- canSubsidise: t.boolean().optional(),
211
- subsidyStatus: S.optional()
212
- }), z = t.object({
213
- transactions: t.array(u).optional(),
214
- canSubsidise: t.boolean().optional(),
215
- subsidyStatus: S.optional(),
216
- enrichedFeeEstimation: t.array(j).optional(),
217
- isBackendDown: t.boolean().default(!1).optional()
1
+ import { addressSchema as e, addressSchemaArgentBackend as t } from "../../../chains/starknet/address.js";
2
+ import { estimatedFeesSchema as n } from "../fees/schema.js";
3
+ import { reasonsSchema as r, severitySchema as i } from "../warning/schema.js";
4
+ import { z as a } from "zod";
5
+ //#region src/features/simulation/transactionReview/schema.ts
6
+ var o = a.object({
7
+ name: a.string(),
8
+ url: a.string(),
9
+ position: a.number()
10
+ }), s = a.object({
11
+ address: a.string(),
12
+ name: a.string(),
13
+ symbol: a.string().optional(),
14
+ decimals: a.number().optional(),
15
+ unknown: a.boolean(),
16
+ iconUrl: a.string().optional(),
17
+ type: a.string()
18
+ }), c = a.discriminatedUnion("type", [
19
+ a.object({
20
+ type: a.literal("amount"),
21
+ label: a.string(),
22
+ token: s,
23
+ amount: a.string(),
24
+ usd: a.string(),
25
+ editable: a.boolean()
26
+ }),
27
+ a.object({
28
+ type: a.literal("address"),
29
+ label: a.string(),
30
+ address: a.string(),
31
+ addressName: a.string().optional(),
32
+ verified: a.boolean().optional()
33
+ }),
34
+ a.object({
35
+ type: a.literal("timestamp"),
36
+ label: a.string(),
37
+ value: a.string()
38
+ }),
39
+ a.object({
40
+ type: a.literal("token_address"),
41
+ label: a.string(),
42
+ token: s
43
+ }),
44
+ a.object({
45
+ type: a.literal("calldata"),
46
+ label: a.string(),
47
+ entrypoint: a.string(),
48
+ calldata: a.array(a.string())
49
+ }),
50
+ a.object({
51
+ type: a.literal("class_hash"),
52
+ label: a.string(),
53
+ classHash: a.string()
54
+ }),
55
+ a.object({
56
+ type: a.literal("text"),
57
+ label: a.string(),
58
+ text: a.string()
59
+ }),
60
+ a.object({
61
+ type: a.literal("nft"),
62
+ label: a.string(),
63
+ token: s
64
+ })
65
+ ]), l = a.object({
66
+ name: a.string(),
67
+ properties: a.array(c),
68
+ defaultProperties: a.array(c).optional()
69
+ }), u = a.union([
70
+ a.literal("verified"),
71
+ a.literal("neutral"),
72
+ a.literal("partial"),
73
+ a.literal("warn")
74
+ ]), d = a.object({
75
+ unknown_token: a.unknown().optional(),
76
+ date_of_addition: a.string().optional(),
77
+ contract_address: e.optional(),
78
+ reason: a.string().optional(),
79
+ value: a.any().optional()
80
+ }), f = a.object({
81
+ reason: r,
82
+ details: d.optional(),
83
+ severity: i
84
+ }), p = a.object({
85
+ assessment: u,
86
+ warnings: a.array(f).optional(),
87
+ assessmentReasons: a.array(a.string()).optional(),
88
+ assessmentDetails: a.object({ contract_address: a.string() }).optional(),
89
+ action: l
90
+ }), m = a.object({
91
+ name: a.string(),
92
+ description: a.string(),
93
+ logoUrl: a.string().optional(),
94
+ iconUrl: a.string().optional(),
95
+ argentVerified: a.boolean(),
96
+ links: a.array(o)
97
+ }), h = a.object({
98
+ assessment: a.union([
99
+ a.literal("verified"),
100
+ a.literal("neutral"),
101
+ a.literal("partial"),
102
+ a.literal("warn")
103
+ ]),
104
+ warnings: a.array(f).optional(),
105
+ assessmentDetails: a.object({ contract_address: a.string() }).optional(),
106
+ targetedDapp: m.optional(),
107
+ reviews: a.array(p)
108
+ }).optional(), g = a.object({
109
+ banner: a.string().nullable().optional(),
110
+ preview: a.string().nullable().optional(),
111
+ full: a.string().nullable().optional(),
112
+ original: a.string().nullable().optional()
113
+ }), _ = a.object({
114
+ twitter: a.string().optional(),
115
+ external: a.string().optional(),
116
+ discord: a.string().optional()
117
+ }), v = a.object({
118
+ address: t,
119
+ decimals: a.number().optional(),
120
+ symbol: a.string().optional(),
121
+ name: a.string(),
122
+ description: a.string().optional(),
123
+ type: a.string().optional(),
124
+ usdValue: a.string().optional(),
125
+ iconUrl: a.string().optional(),
126
+ unknown: a.boolean().optional(),
127
+ imageUrls: g.optional(),
128
+ links: _.optional()
129
+ }), y = a.object({
130
+ tokenAddress: t,
131
+ owner: t,
132
+ spender: t,
133
+ value: a.string().optional(),
134
+ approvalForAll: a.boolean(),
135
+ details: v.optional()
136
+ }), b = a.object({
137
+ tokenAddress: t,
138
+ from: t,
139
+ to: t,
140
+ tokenId: a.string().optional(),
141
+ value: a.string().optional(),
142
+ details: v.optional()
143
+ }), x = a.union([
144
+ a.string(),
145
+ a.number(),
146
+ a.bigint()
147
+ ]).transform((e) => parseInt(e.toString(), 10)), S = a.object({
148
+ address: t,
149
+ unknown: a.boolean(),
150
+ type: a.literal("ERC20")
151
+ }), C = a.object({
152
+ maxAmount: x,
153
+ maxPricePerUnit: x
154
+ }), w = a.object({
155
+ l1Gas: C,
156
+ l1DataGas: C,
157
+ l2Gas: C
158
+ }), T = a.object({
159
+ token: S,
160
+ overallFee: x,
161
+ maxFee: x,
162
+ defaultTip: x.optional()
163
+ }), E = a.object({
164
+ overallFee: x,
165
+ resourceBounds: w,
166
+ unit: a.string().transform((e) => e.toUpperCase()).pipe(a.literal("FRI")),
167
+ token: S,
168
+ defaultTip: x.optional()
169
+ }), D = E.or(T), O = a.object({
170
+ type: a.string(),
171
+ label: a.string(),
172
+ tokenId: a.string().optional(),
173
+ value: a.string().optional(),
174
+ token: v,
175
+ sent: a.boolean().optional(),
176
+ ccyValue: a.string().optional(),
177
+ currency: a.string().optional(),
178
+ tokenIdDetails: a.object({
179
+ name: a.string().optional(),
180
+ description: a.string().optional(),
181
+ imageUrls: g.optional()
182
+ }).optional()
183
+ }), k = a.object({
184
+ approvals: a.array(y).optional(),
185
+ transfers: a.array(b).optional(),
186
+ calculatedNonce: a.string().optional(),
187
+ feeEstimation: E,
188
+ feeEstimations: a.array(D),
189
+ summary: a.array(O).optional()
190
+ }), A = a.object({
191
+ label: a.string().optional(),
192
+ code: a.number().optional(),
193
+ message: a.string().optional(),
194
+ error: a.string().optional()
195
+ }), j = a.object({
196
+ reviewOfTransaction: h,
197
+ simulation: k,
198
+ simulationError: a.undefined().optional()
199
+ }), M = a.object({
200
+ reviewOfTransaction: h,
201
+ simulation: a.undefined().optional(),
202
+ simulationError: A
203
+ }), N = j.or(M), P = a.object({
204
+ subsidiseDeployment: a.boolean(),
205
+ subsidiseTransaction: a.boolean()
206
+ }), F = a.object({
207
+ transactions: a.array(N).optional(),
208
+ canSubsidise: a.boolean().optional(),
209
+ subsidyStatus: P.optional()
210
+ }), I = a.object({
211
+ transactions: a.array(N).optional(),
212
+ canSubsidise: a.boolean().optional(),
213
+ subsidyStatus: P.optional(),
214
+ enrichedFeeEstimation: a.array(n).optional(),
215
+ isBackendDown: a.boolean().default(!1).optional()
218
216
  });
219
- function H(o) {
220
- return b.safeParse(o).success;
217
+ function L(e) {
218
+ return j.safeParse(e).success;
221
219
  }
222
- function q(o) {
223
- return g.safeParse(o).success;
220
+ function R(e) {
221
+ return M.safeParse(e).success;
224
222
  }
225
- export {
226
- v as actionSchema,
227
- w as assessmentSchema,
228
- z as enrichedSimulateAndReviewSchema,
229
- i as feeEstimationGasSchema,
230
- N as feeEstimationNativeOrPaymasterSchema,
231
- _ as feeEstimationResourceBoundSchema,
232
- d as feeEstimationSchema,
233
- H as isNotTransactionSimulationError,
234
- q as isTransactionSimulationError,
235
- x as paymasterFeeEstimationSchema,
236
- m as paymasterFeeTokenSchema,
237
- r as propertySchema,
238
- D as reviewSchema,
239
- C as simulateAndReviewSchema,
240
- S as subsidyStatusSchema,
241
- U as targetedDappSchema,
242
- u as transactionSimulationOrErrorSchema,
243
- E as warningDetailsSchema,
244
- l as warningSchema
245
- };
223
+ //#endregion
224
+ export { l as actionSchema, u as assessmentSchema, I as enrichedSimulateAndReviewSchema, C as feeEstimationGasSchema, D as feeEstimationNativeOrPaymasterSchema, w as feeEstimationResourceBoundSchema, E as feeEstimationSchema, L as isNotTransactionSimulationError, R as isTransactionSimulationError, T as paymasterFeeEstimationSchema, S as paymasterFeeTokenSchema, c as propertySchema, p as reviewSchema, F as simulateAndReviewSchema, P as subsidyStatusSchema, m as targetedDappSchema, N as transactionSimulationOrErrorSchema, d as warningDetailsSchema, f as warningSchema };
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=e=>{if(e.length===0)return null;const t=["critical","high","caution","info"];return e.reduce((r,i)=>{const n=t.indexOf(i.severity),c=t.indexOf(r.severity);return n<c?i:r},e[0])};exports.getHighestSeverity=o;
1
+ var e=e=>{if(e.length===0)return null;let t=[`critical`,`high`,`caution`,`info`];return e.reduce((e,n)=>t.indexOf(n.severity)<t.indexOf(e.severity)?n:e,e[0])};exports.getHighestSeverity=e;
@@ -1,12 +1,13 @@
1
- const o = (e) => {
2
- if (e.length === 0)
3
- return null;
4
- const t = ["critical", "high", "caution", "info"];
5
- return e.reduce((r, i) => {
6
- const n = t.indexOf(i.severity), c = t.indexOf(r.severity);
7
- return n < c ? i : r;
8
- }, e[0]);
9
- };
10
- export {
11
- o as getHighestSeverity
1
+ //#region src/features/simulation/warning/helper.ts
2
+ var e = (e) => {
3
+ if (e.length === 0) return null;
4
+ let t = [
5
+ "critical",
6
+ "high",
7
+ "caution",
8
+ "info"
9
+ ];
10
+ return e.reduce((e, n) => t.indexOf(n.severity) < t.indexOf(e.severity) ? n : e, e[0]);
12
11
  };
12
+ //#endregion
13
+ export { e as getHighestSeverity };
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("zod"),t=e.z.union([e.z.literal("critical"),e.z.literal("high"),e.z.literal("caution"),e.z.literal("info")]),i=e.z.string();exports.reasonsSchema=i;exports.severitySchema=t;
1
+ require(`../../../../_virtual/_rolldown/runtime.cjs`);let e=require(`zod`);var t=e.z.union([e.z.literal(`critical`),e.z.literal(`high`),e.z.literal(`caution`),e.z.literal(`info`)]),n=e.z.string();exports.reasonsSchema=n,exports.severitySchema=t;
@@ -1,11 +1,10 @@
1
- import { z as i } from "zod";
2
- const r = i.union([
3
- i.literal("critical"),
4
- i.literal("high"),
5
- i.literal("caution"),
6
- i.literal("info")
7
- ]), e = i.string();
8
- export {
9
- e as reasonsSchema,
10
- r as severitySchema
11
- };
1
+ import { z as e } from "zod";
2
+ //#region src/features/simulation/warning/schema.ts
3
+ var t = e.union([
4
+ e.literal("critical"),
5
+ e.literal("high"),
6
+ e.literal("caution"),
7
+ e.literal("info")
8
+ ]), n = e.string();
9
+ //#endregion
10
+ export { n as reasonsSchema, t as severitySchema };
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("zod"),s=require("./quote.model.cjs"),r=require("../../../chains/starknet/address.cjs"),t=require("../../../utils/starknet/starknet.cjs"),c=e.z.object({chain:e.z.literal("starknet"),sellToken:r.addressSchema,buyToken:r.addressSchema,sellAmount:e.z.string(),buyAmount:e.z.string(),accountAddress:r.addressSchema,slippage:e.z.number().transform(a=>a.toString()),data:s.SwapDataSchema}),n=e.z.object({calls:e.z.array(t.callSchema)});exports.SwapOrderRequestSchema=c;exports.SwapOrderResponseSchema=n;
1
+ require(`../../../../_virtual/_rolldown/runtime.cjs`);const e=require(`../../../chains/starknet/address.cjs`),t=require(`../../../utils/starknet/starknet.cjs`),n=require(`./quote.model.cjs`);let r=require(`zod`);var i=r.z.object({chain:r.z.literal(`starknet`),sellToken:e.addressSchema,buyToken:e.addressSchema,sellAmount:r.z.string(),buyAmount:r.z.string(),accountAddress:e.addressSchema,slippage:r.z.number().transform(e=>e.toString()),data:n.SwapDataSchema}),a=r.z.object({calls:r.z.array(t.callSchema)});exports.SwapOrderRequestSchema=i,exports.SwapOrderResponseSchema=a;
@@ -1,20 +1,17 @@
1
- import { z as r } from "zod";
2
- import { SwapDataSchema as t } from "./quote.model.js";
3
1
  import { addressSchema as e } from "../../../chains/starknet/address.js";
4
- import { callSchema as o } from "../../../utils/starknet/starknet.js";
5
- const l = r.object({
6
- chain: r.literal("starknet"),
7
- sellToken: e,
8
- buyToken: e,
9
- sellAmount: r.string(),
10
- buyAmount: r.string(),
11
- accountAddress: e,
12
- slippage: r.number().transform((a) => a.toString()),
13
- data: t
14
- }), p = r.object({
15
- calls: r.array(o)
16
- });
17
- export {
18
- l as SwapOrderRequestSchema,
19
- p as SwapOrderResponseSchema
20
- };
2
+ import { callSchema as t } from "../../../utils/starknet/starknet.js";
3
+ import { SwapDataSchema as n } from "./quote.model.js";
4
+ import { z as r } from "zod";
5
+ //#region src/features/swap/models/order.model.ts
6
+ var i = r.object({
7
+ chain: r.literal("starknet"),
8
+ sellToken: e,
9
+ buyToken: e,
10
+ sellAmount: r.string(),
11
+ buyAmount: r.string(),
12
+ accountAddress: e,
13
+ slippage: r.number().transform((e) => e.toString()),
14
+ data: n
15
+ }), a = r.object({ calls: r.array(t) });
16
+ //#endregion
17
+ export { i as SwapOrderRequestSchema, a as SwapOrderResponseSchema };
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("zod"),r=require("../../../chains/starknet/address.cjs"),t=e.z.object({quoteId:e.z.string()}),n=e.z.lazy(()=>e.z.object({name:e.z.string(),percent:e.z.number(),sellToken:r.addressSchema,buyToken:r.addressSchema,routes:e.z.array(n)})),a=e.z.object({sellToken:r.addressSchema,sellAmount:e.z.string(),sellAmountInCurrency:e.z.string(),buyToken:r.addressSchema,buyAmount:e.z.string(),buyAmountInCurrency:e.z.string(),expiresAt:e.z.number(),expiresIn:e.z.number(),dexCount:e.z.number(),routes:e.z.array(n),providerName:e.z.string(),providerFee:e.z.string(),providerFeeInCurrency:e.z.string(),providerFeePercentage:e.z.number(),argentFee:e.z.string(),argentFeeInCurrency:e.z.string(),argentFeePercentage:e.z.number(),feeToken:r.addressSchema,data:t});exports.SwapDataSchema=t;exports.SwapQuoteResponseSchema=a;exports.SwapQuoteRouteSchema=n;
1
+ require(`../../../../_virtual/_rolldown/runtime.cjs`);const e=require(`../../../chains/starknet/address.cjs`);let t=require(`zod`);var n=t.z.object({quoteId:t.z.string()}),r=t.z.lazy(()=>t.z.object({name:t.z.string(),percent:t.z.number(),sellToken:e.addressSchema,buyToken:e.addressSchema,routes:t.z.array(r)})),i=t.z.object({sellToken:e.addressSchema,sellAmount:t.z.string(),sellAmountInCurrency:t.z.string(),buyToken:e.addressSchema,buyAmount:t.z.string(),buyAmountInCurrency:t.z.string(),expiresAt:t.z.number(),expiresIn:t.z.number(),dexCount:t.z.number(),routes:t.z.array(r),providerName:t.z.string(),providerFee:t.z.string(),providerFeeInCurrency:t.z.string(),providerFeePercentage:t.z.number(),argentFee:t.z.string(),argentFeeInCurrency:t.z.string(),argentFeePercentage:t.z.number(),feeToken:e.addressSchema,data:n});exports.SwapDataSchema=n,exports.SwapQuoteResponseSchema=i,exports.SwapQuoteRouteSchema=r;