@xyo-network/gas-price-plugin 2.74.4 → 2.75.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 (454) hide show
  1. package/dist/browser/Diviner.cjs +257 -0
  2. package/dist/browser/Diviner.cjs.map +1 -0
  3. package/dist/browser/Diviner.d.mts.map +1 -0
  4. package/dist/browser/Diviner.d.ts.map +1 -0
  5. package/dist/browser/Diviner.js +236 -0
  6. package/dist/browser/Diviner.js.map +1 -0
  7. package/dist/browser/Plugin.cjs +272 -0
  8. package/dist/browser/Plugin.cjs.map +1 -0
  9. package/dist/browser/Plugin.d.mts.map +1 -0
  10. package/dist/browser/Plugin.d.ts.map +1 -0
  11. package/dist/browser/Plugin.js +251 -0
  12. package/dist/browser/Plugin.js.map +1 -0
  13. package/dist/browser/Schema.cjs +29 -0
  14. package/dist/browser/Schema.cjs.map +1 -0
  15. package/dist/browser/Schema.d.mts.map +1 -0
  16. package/dist/browser/Schema.d.ts.map +1 -0
  17. package/dist/browser/Schema.js +8 -0
  18. package/dist/browser/Schema.js.map +1 -0
  19. package/dist/{index.js → browser/index.cjs} +1 -8
  20. package/dist/browser/index.cjs.map +1 -0
  21. package/dist/browser/index.d.mts.map +1 -0
  22. package/dist/browser/index.d.ts.map +1 -0
  23. package/dist/{index.mjs → browser/index.js} +1 -1
  24. package/dist/browser/index.js.map +1 -0
  25. package/dist/browser/lib/average.cjs +50 -0
  26. package/dist/browser/lib/average.cjs.map +1 -0
  27. package/dist/browser/lib/average.d.mts.map +1 -0
  28. package/dist/browser/lib/average.d.ts.map +1 -0
  29. package/dist/browser/lib/average.js +29 -0
  30. package/dist/browser/lib/average.js.map +1 -0
  31. package/dist/browser/lib/divineGas.cjs +240 -0
  32. package/dist/browser/lib/divineGas.cjs.map +1 -0
  33. package/dist/browser/lib/divineGas.d.mts.map +1 -0
  34. package/dist/browser/lib/divineGas.d.ts.map +1 -0
  35. package/dist/browser/lib/divineGas.js +219 -0
  36. package/dist/browser/lib/divineGas.js.map +1 -0
  37. package/dist/browser/lib/identities/index.cjs +60 -0
  38. package/dist/browser/lib/identities/index.cjs.map +1 -0
  39. package/dist/browser/lib/identities/index.d.mts.map +1 -0
  40. package/dist/browser/lib/identities/index.d.ts.map +1 -0
  41. package/dist/browser/lib/identities/index.js +37 -0
  42. package/dist/browser/lib/identities/index.js.map +1 -0
  43. package/dist/browser/lib/identities/isEthereumGasBlocknativePayload.cjs +30 -0
  44. package/dist/browser/lib/identities/isEthereumGasBlocknativePayload.cjs.map +1 -0
  45. package/dist/browser/lib/identities/isEthereumGasBlocknativePayload.d.mts.map +1 -0
  46. package/dist/browser/lib/identities/isEthereumGasBlocknativePayload.d.ts.map +1 -0
  47. package/dist/browser/lib/identities/isEthereumGasBlocknativePayload.js +9 -0
  48. package/dist/browser/lib/identities/isEthereumGasBlocknativePayload.js.map +1 -0
  49. package/dist/browser/lib/identities/isEthereumGasEtherchainV2Payload.cjs +30 -0
  50. package/dist/browser/lib/identities/isEthereumGasEtherchainV2Payload.cjs.map +1 -0
  51. package/dist/browser/lib/identities/isEthereumGasEtherchainV2Payload.d.mts.map +1 -0
  52. package/dist/browser/lib/identities/isEthereumGasEtherchainV2Payload.d.ts.map +1 -0
  53. package/dist/browser/lib/identities/isEthereumGasEtherchainV2Payload.js +9 -0
  54. package/dist/browser/lib/identities/isEthereumGasEtherchainV2Payload.js.map +1 -0
  55. package/dist/browser/lib/identities/isEthereumGasEthersPayload.cjs +30 -0
  56. package/dist/browser/lib/identities/isEthereumGasEthersPayload.cjs.map +1 -0
  57. package/dist/browser/lib/identities/isEthereumGasEthersPayload.d.mts.map +1 -0
  58. package/dist/browser/lib/identities/isEthereumGasEthersPayload.d.ts.map +1 -0
  59. package/dist/browser/lib/identities/isEthereumGasEthersPayload.js +9 -0
  60. package/dist/browser/lib/identities/isEthereumGasEthersPayload.js.map +1 -0
  61. package/dist/browser/lib/identities/isEthereumGasEtherscanPayload.cjs +30 -0
  62. package/dist/browser/lib/identities/isEthereumGasEtherscanPayload.cjs.map +1 -0
  63. package/dist/browser/lib/identities/isEthereumGasEtherscanPayload.d.mts.map +1 -0
  64. package/dist/browser/lib/identities/isEthereumGasEtherscanPayload.d.ts.map +1 -0
  65. package/dist/browser/lib/identities/isEthereumGasEtherscanPayload.js +9 -0
  66. package/dist/browser/lib/identities/isEthereumGasEtherscanPayload.js.map +1 -0
  67. package/dist/browser/lib/identities/isEthereumGasEthgasstationPayload.cjs +30 -0
  68. package/dist/browser/lib/identities/isEthereumGasEthgasstationPayload.cjs.map +1 -0
  69. package/dist/browser/lib/identities/isEthereumGasEthgasstationPayload.d.mts.map +1 -0
  70. package/dist/browser/lib/identities/isEthereumGasEthgasstationPayload.d.ts.map +1 -0
  71. package/dist/browser/lib/identities/isEthereumGasEthgasstationPayload.js +9 -0
  72. package/dist/browser/lib/identities/isEthereumGasEthgasstationPayload.js.map +1 -0
  73. package/dist/browser/lib/index.cjs +242 -0
  74. package/dist/browser/lib/index.cjs.map +1 -0
  75. package/dist/browser/lib/index.d.mts.map +1 -0
  76. package/dist/browser/lib/index.d.ts.map +1 -0
  77. package/dist/browser/lib/index.js +219 -0
  78. package/dist/browser/lib/index.js.map +1 -0
  79. package/dist/browser/lib/transforms/index.cjs +172 -0
  80. package/dist/browser/lib/transforms/index.cjs.map +1 -0
  81. package/dist/browser/lib/transforms/index.d.mts.map +1 -0
  82. package/dist/browser/lib/transforms/index.d.ts.map +1 -0
  83. package/dist/browser/lib/transforms/index.js +149 -0
  84. package/dist/browser/lib/transforms/index.js.map +1 -0
  85. package/dist/browser/lib/transforms/transformGasFromBlocknative.cjs +70 -0
  86. package/dist/browser/lib/transforms/transformGasFromBlocknative.cjs.map +1 -0
  87. package/dist/browser/lib/transforms/transformGasFromBlocknative.d.mts.map +1 -0
  88. package/dist/browser/lib/transforms/transformGasFromBlocknative.d.ts.map +1 -0
  89. package/dist/browser/lib/transforms/transformGasFromBlocknative.js +49 -0
  90. package/dist/browser/lib/transforms/transformGasFromBlocknative.js.map +1 -0
  91. package/dist/browser/lib/transforms/transformGasFromEtherchainV2.cjs +40 -0
  92. package/dist/browser/lib/transforms/transformGasFromEtherchainV2.cjs.map +1 -0
  93. package/dist/browser/lib/transforms/transformGasFromEtherchainV2.d.mts.map +1 -0
  94. package/dist/browser/lib/transforms/transformGasFromEtherchainV2.d.ts.map +1 -0
  95. package/dist/browser/lib/transforms/transformGasFromEtherchainV2.js +19 -0
  96. package/dist/browser/lib/transforms/transformGasFromEtherchainV2.js.map +1 -0
  97. package/dist/browser/lib/transforms/transformGasFromEthers.cjs +46 -0
  98. package/dist/browser/lib/transforms/transformGasFromEthers.cjs.map +1 -0
  99. package/dist/browser/lib/transforms/transformGasFromEthers.d.mts.map +1 -0
  100. package/dist/browser/lib/transforms/transformGasFromEthers.d.ts.map +1 -0
  101. package/dist/browser/lib/transforms/transformGasFromEthers.js +25 -0
  102. package/dist/browser/lib/transforms/transformGasFromEthers.js.map +1 -0
  103. package/dist/browser/lib/transforms/transformGasFromEtherscan.cjs +49 -0
  104. package/dist/browser/lib/transforms/transformGasFromEtherscan.cjs.map +1 -0
  105. package/dist/browser/lib/transforms/transformGasFromEtherscan.d.mts.map +1 -0
  106. package/dist/browser/lib/transforms/transformGasFromEtherscan.d.ts.map +1 -0
  107. package/dist/browser/lib/transforms/transformGasFromEtherscan.js +28 -0
  108. package/dist/browser/lib/transforms/transformGasFromEtherscan.js.map +1 -0
  109. package/dist/browser/lib/transforms/transformGasFromEthgasstation.cjs +57 -0
  110. package/dist/browser/lib/transforms/transformGasFromEthgasstation.cjs.map +1 -0
  111. package/dist/browser/lib/transforms/transformGasFromEthgasstation.d.mts.map +1 -0
  112. package/dist/browser/lib/transforms/transformGasFromEthgasstation.d.ts.map +1 -0
  113. package/dist/browser/lib/transforms/transformGasFromEthgasstation.js +36 -0
  114. package/dist/browser/lib/transforms/transformGasFromEthgasstation.js.map +1 -0
  115. package/dist/browser/test/index.cjs +189 -0
  116. package/dist/browser/test/index.cjs.map +1 -0
  117. package/dist/browser/test/index.d.mts.map +1 -0
  118. package/dist/browser/test/index.d.ts.map +1 -0
  119. package/dist/browser/test/index.js +166 -0
  120. package/dist/browser/test/index.js.map +1 -0
  121. package/dist/browser/test/sampleBlocknativeGas.cjs +118 -0
  122. package/dist/browser/test/sampleBlocknativeGas.cjs.map +1 -0
  123. package/dist/browser/test/sampleBlocknativeGas.d.mts.map +1 -0
  124. package/dist/browser/test/sampleBlocknativeGas.d.ts.map +1 -0
  125. package/dist/browser/test/sampleBlocknativeGas.js +97 -0
  126. package/dist/browser/test/sampleBlocknativeGas.js.map +1 -0
  127. package/dist/browser/test/sampleEtherchainGasV2.cjs +40 -0
  128. package/dist/browser/test/sampleEtherchainGasV2.cjs.map +1 -0
  129. package/dist/browser/test/sampleEtherchainGasV2.d.mts.map +1 -0
  130. package/dist/browser/test/sampleEtherchainGasV2.d.ts.map +1 -0
  131. package/dist/browser/test/sampleEtherchainGasV2.js +19 -0
  132. package/dist/browser/test/sampleEtherchainGasV2.js.map +1 -0
  133. package/dist/browser/test/sampleEthersGas.cjs +35 -0
  134. package/dist/browser/test/sampleEthersGas.cjs.map +1 -0
  135. package/dist/browser/test/sampleEthersGas.d.mts.map +1 -0
  136. package/dist/browser/test/sampleEthersGas.d.ts.map +1 -0
  137. package/dist/browser/test/sampleEthersGas.js +14 -0
  138. package/dist/browser/test/sampleEthersGas.js.map +1 -0
  139. package/dist/browser/test/sampleEtherscanGas.cjs +41 -0
  140. package/dist/browser/test/sampleEtherscanGas.cjs.map +1 -0
  141. package/dist/browser/test/sampleEtherscanGas.d.mts.map +1 -0
  142. package/dist/browser/test/sampleEtherscanGas.d.ts.map +1 -0
  143. package/dist/browser/test/sampleEtherscanGas.js +20 -0
  144. package/dist/browser/test/sampleEtherscanGas.js.map +1 -0
  145. package/dist/browser/test/sampleEthgasstationGas.cjs +45 -0
  146. package/dist/browser/test/sampleEthgasstationGas.cjs.map +1 -0
  147. package/dist/browser/test/sampleEthgasstationGas.d.mts.map +1 -0
  148. package/dist/browser/test/sampleEthgasstationGas.d.ts.map +1 -0
  149. package/dist/browser/test/sampleEthgasstationGas.js +24 -0
  150. package/dist/browser/test/sampleEthgasstationGas.js.map +1 -0
  151. package/dist/node/Diviner.d.mts +16 -0
  152. package/dist/node/Diviner.d.mts.map +1 -0
  153. package/dist/node/Diviner.d.ts +16 -0
  154. package/dist/node/Diviner.d.ts.map +1 -0
  155. package/dist/node/Diviner.js +40 -0
  156. package/dist/node/Diviner.js.map +1 -0
  157. package/dist/node/Diviner.mjs +16 -0
  158. package/dist/node/Diviner.mjs.map +1 -0
  159. package/dist/node/Plugin.d.mts +50 -0
  160. package/dist/node/Plugin.d.mts.map +1 -0
  161. package/dist/node/Plugin.d.ts +50 -0
  162. package/dist/node/Plugin.d.ts.map +1 -0
  163. package/dist/node/Plugin.js +40 -0
  164. package/dist/node/Plugin.js.map +1 -0
  165. package/dist/node/Plugin.mjs +16 -0
  166. package/dist/node/Plugin.mjs.map +1 -0
  167. package/dist/node/Schema.d.mts +5 -0
  168. package/dist/node/Schema.d.mts.map +1 -0
  169. package/dist/node/Schema.d.ts +5 -0
  170. package/dist/node/Schema.d.ts.map +1 -0
  171. package/dist/node/Schema.js +32 -0
  172. package/dist/node/Schema.js.map +1 -0
  173. package/dist/node/Schema.mjs +7 -0
  174. package/dist/node/Schema.mjs.map +1 -0
  175. package/dist/node/index.d.mts +6 -0
  176. package/dist/node/index.d.mts.map +1 -0
  177. package/dist/node/index.d.ts +6 -0
  178. package/dist/node/index.d.ts.map +1 -0
  179. package/dist/node/index.js +36 -0
  180. package/dist/node/index.js.map +1 -0
  181. package/dist/node/index.mjs +9 -0
  182. package/dist/node/index.mjs.map +1 -0
  183. package/dist/node/lib/average.d.mts +8 -0
  184. package/dist/node/lib/average.d.mts.map +1 -0
  185. package/dist/node/lib/average.d.ts +8 -0
  186. package/dist/node/lib/average.d.ts.map +1 -0
  187. package/dist/node/lib/average.js +52 -0
  188. package/dist/node/lib/average.js.map +1 -0
  189. package/dist/node/lib/average.mjs +28 -0
  190. package/dist/node/lib/average.mjs.map +1 -0
  191. package/dist/node/lib/divineGas.d.mts +4 -0
  192. package/dist/node/lib/divineGas.d.mts.map +1 -0
  193. package/dist/node/lib/divineGas.d.ts +4 -0
  194. package/dist/node/lib/divineGas.d.ts.map +1 -0
  195. package/dist/node/lib/divineGas.js +45 -0
  196. package/dist/node/lib/divineGas.js.map +1 -0
  197. package/dist/node/lib/divineGas.mjs +33 -0
  198. package/dist/node/lib/divineGas.mjs.map +1 -0
  199. package/dist/node/lib/identities/index.d.mts +6 -0
  200. package/dist/node/lib/identities/index.d.mts.map +1 -0
  201. package/dist/node/lib/identities/index.d.ts +6 -0
  202. package/dist/node/lib/identities/index.d.ts.map +1 -0
  203. package/dist/node/lib/identities/index.js +31 -0
  204. package/dist/node/lib/identities/index.js.map +1 -0
  205. package/dist/node/lib/identities/index.mjs +6 -0
  206. package/dist/node/lib/identities/index.mjs.map +1 -0
  207. package/dist/node/lib/identities/isEthereumGasBlocknativePayload.d.mts +6 -0
  208. package/dist/node/lib/identities/isEthereumGasBlocknativePayload.d.mts.map +1 -0
  209. package/dist/node/lib/identities/isEthereumGasBlocknativePayload.d.ts +6 -0
  210. package/dist/node/lib/identities/isEthereumGasBlocknativePayload.d.ts.map +1 -0
  211. package/dist/node/lib/identities/isEthereumGasBlocknativePayload.js +32 -0
  212. package/dist/node/lib/identities/isEthereumGasBlocknativePayload.js.map +1 -0
  213. package/dist/node/lib/identities/isEthereumGasBlocknativePayload.mjs +8 -0
  214. package/dist/node/lib/identities/isEthereumGasBlocknativePayload.mjs.map +1 -0
  215. package/dist/node/lib/identities/isEthereumGasEtherchainV2Payload.d.mts +6 -0
  216. package/dist/node/lib/identities/isEthereumGasEtherchainV2Payload.d.mts.map +1 -0
  217. package/dist/node/lib/identities/isEthereumGasEtherchainV2Payload.d.ts +6 -0
  218. package/dist/node/lib/identities/isEthereumGasEtherchainV2Payload.d.ts.map +1 -0
  219. package/dist/node/lib/identities/isEthereumGasEtherchainV2Payload.js +32 -0
  220. package/dist/node/lib/identities/isEthereumGasEtherchainV2Payload.js.map +1 -0
  221. package/dist/node/lib/identities/isEthereumGasEtherchainV2Payload.mjs +8 -0
  222. package/dist/node/lib/identities/isEthereumGasEtherchainV2Payload.mjs.map +1 -0
  223. package/dist/node/lib/identities/isEthereumGasEthersPayload.d.mts +6 -0
  224. package/dist/node/lib/identities/isEthereumGasEthersPayload.d.mts.map +1 -0
  225. package/dist/node/lib/identities/isEthereumGasEthersPayload.d.ts +6 -0
  226. package/dist/node/lib/identities/isEthereumGasEthersPayload.d.ts.map +1 -0
  227. package/dist/node/lib/identities/isEthereumGasEthersPayload.js +32 -0
  228. package/dist/node/lib/identities/isEthereumGasEthersPayload.js.map +1 -0
  229. package/dist/node/lib/identities/isEthereumGasEthersPayload.mjs +8 -0
  230. package/dist/node/lib/identities/isEthereumGasEthersPayload.mjs.map +1 -0
  231. package/dist/node/lib/identities/isEthereumGasEtherscanPayload.d.mts +6 -0
  232. package/dist/node/lib/identities/isEthereumGasEtherscanPayload.d.mts.map +1 -0
  233. package/dist/node/lib/identities/isEthereumGasEtherscanPayload.d.ts +6 -0
  234. package/dist/node/lib/identities/isEthereumGasEtherscanPayload.d.ts.map +1 -0
  235. package/dist/node/lib/identities/isEthereumGasEtherscanPayload.js +32 -0
  236. package/dist/node/lib/identities/isEthereumGasEtherscanPayload.js.map +1 -0
  237. package/dist/node/lib/identities/isEthereumGasEtherscanPayload.mjs +8 -0
  238. package/dist/node/lib/identities/isEthereumGasEtherscanPayload.mjs.map +1 -0
  239. package/dist/node/lib/identities/isEthereumGasEthgasstationPayload.d.mts +6 -0
  240. package/dist/node/lib/identities/isEthereumGasEthgasstationPayload.d.mts.map +1 -0
  241. package/dist/node/lib/identities/isEthereumGasEthgasstationPayload.d.ts +6 -0
  242. package/dist/node/lib/identities/isEthereumGasEthgasstationPayload.d.ts.map +1 -0
  243. package/dist/node/lib/identities/isEthereumGasEthgasstationPayload.js +32 -0
  244. package/dist/node/lib/identities/isEthereumGasEthgasstationPayload.js.map +1 -0
  245. package/dist/node/lib/identities/isEthereumGasEthgasstationPayload.mjs +8 -0
  246. package/dist/node/lib/identities/isEthereumGasEthgasstationPayload.mjs.map +1 -0
  247. package/dist/node/lib/index.d.mts +2 -0
  248. package/dist/node/lib/index.d.mts.map +1 -0
  249. package/dist/node/lib/index.d.ts +2 -0
  250. package/dist/node/lib/index.d.ts.map +1 -0
  251. package/dist/node/lib/index.js +23 -0
  252. package/dist/node/lib/index.js.map +1 -0
  253. package/dist/node/lib/index.mjs +2 -0
  254. package/dist/node/lib/index.mjs.map +1 -0
  255. package/dist/node/lib/transforms/index.d.mts +6 -0
  256. package/dist/node/lib/transforms/index.d.mts.map +1 -0
  257. package/dist/node/lib/transforms/index.d.ts +6 -0
  258. package/dist/node/lib/transforms/index.d.ts.map +1 -0
  259. package/dist/node/lib/transforms/index.js +31 -0
  260. package/dist/node/lib/transforms/index.js.map +1 -0
  261. package/dist/node/lib/transforms/index.mjs +6 -0
  262. package/dist/node/lib/transforms/index.mjs.map +1 -0
  263. package/dist/node/lib/transforms/transformGasFromBlocknative.d.mts +4 -0
  264. package/dist/node/lib/transforms/transformGasFromBlocknative.d.mts.map +1 -0
  265. package/dist/node/lib/transforms/transformGasFromBlocknative.d.ts +4 -0
  266. package/dist/node/lib/transforms/transformGasFromBlocknative.d.ts.map +1 -0
  267. package/dist/node/lib/transforms/transformGasFromBlocknative.js +72 -0
  268. package/dist/node/lib/transforms/transformGasFromBlocknative.js.map +1 -0
  269. package/dist/node/lib/transforms/transformGasFromBlocknative.mjs +48 -0
  270. package/dist/node/lib/transforms/transformGasFromBlocknative.mjs.map +1 -0
  271. package/dist/node/lib/transforms/transformGasFromEtherchainV2.d.mts +4 -0
  272. package/dist/node/lib/transforms/transformGasFromEtherchainV2.d.mts.map +1 -0
  273. package/dist/node/lib/transforms/transformGasFromEtherchainV2.d.ts +4 -0
  274. package/dist/node/lib/transforms/transformGasFromEtherchainV2.d.ts.map +1 -0
  275. package/dist/node/lib/transforms/transformGasFromEtherchainV2.js +42 -0
  276. package/dist/node/lib/transforms/transformGasFromEtherchainV2.js.map +1 -0
  277. package/dist/node/lib/transforms/transformGasFromEtherchainV2.mjs +18 -0
  278. package/dist/node/lib/transforms/transformGasFromEtherchainV2.mjs.map +1 -0
  279. package/dist/node/lib/transforms/transformGasFromEthers.d.mts +4 -0
  280. package/dist/node/lib/transforms/transformGasFromEthers.d.mts.map +1 -0
  281. package/dist/node/lib/transforms/transformGasFromEthers.d.ts +4 -0
  282. package/dist/node/lib/transforms/transformGasFromEthers.d.ts.map +1 -0
  283. package/dist/node/lib/transforms/transformGasFromEthers.js +48 -0
  284. package/dist/node/lib/transforms/transformGasFromEthers.js.map +1 -0
  285. package/dist/node/lib/transforms/transformGasFromEthers.mjs +24 -0
  286. package/dist/node/lib/transforms/transformGasFromEthers.mjs.map +1 -0
  287. package/dist/node/lib/transforms/transformGasFromEtherscan.d.mts +4 -0
  288. package/dist/node/lib/transforms/transformGasFromEtherscan.d.mts.map +1 -0
  289. package/dist/node/lib/transforms/transformGasFromEtherscan.d.ts +4 -0
  290. package/dist/node/lib/transforms/transformGasFromEtherscan.d.ts.map +1 -0
  291. package/dist/node/lib/transforms/transformGasFromEtherscan.js +51 -0
  292. package/dist/node/lib/transforms/transformGasFromEtherscan.js.map +1 -0
  293. package/dist/node/lib/transforms/transformGasFromEtherscan.mjs +27 -0
  294. package/dist/node/lib/transforms/transformGasFromEtherscan.mjs.map +1 -0
  295. package/dist/node/lib/transforms/transformGasFromEthgasstation.d.mts +4 -0
  296. package/dist/node/lib/transforms/transformGasFromEthgasstation.d.mts.map +1 -0
  297. package/dist/node/lib/transforms/transformGasFromEthgasstation.d.ts +4 -0
  298. package/dist/node/lib/transforms/transformGasFromEthgasstation.d.ts.map +1 -0
  299. package/dist/node/lib/transforms/transformGasFromEthgasstation.js +59 -0
  300. package/dist/node/lib/transforms/transformGasFromEthgasstation.js.map +1 -0
  301. package/dist/node/lib/transforms/transformGasFromEthgasstation.mjs +35 -0
  302. package/dist/node/lib/transforms/transformGasFromEthgasstation.mjs.map +1 -0
  303. package/dist/node/test/index.d.mts +6 -0
  304. package/dist/node/test/index.d.mts.map +1 -0
  305. package/dist/node/test/index.d.ts +6 -0
  306. package/dist/node/test/index.d.ts.map +1 -0
  307. package/dist/node/test/index.js +31 -0
  308. package/dist/node/test/index.js.map +1 -0
  309. package/dist/node/test/index.mjs +6 -0
  310. package/dist/node/test/index.mjs.map +1 -0
  311. package/dist/node/test/sampleBlocknativeGas.d.mts +3 -0
  312. package/dist/node/test/sampleBlocknativeGas.d.mts.map +1 -0
  313. package/dist/node/test/sampleBlocknativeGas.d.ts +3 -0
  314. package/dist/node/test/sampleBlocknativeGas.d.ts.map +1 -0
  315. package/dist/node/test/sampleBlocknativeGas.js +120 -0
  316. package/dist/node/test/sampleBlocknativeGas.js.map +1 -0
  317. package/dist/node/test/sampleBlocknativeGas.mjs +96 -0
  318. package/dist/node/test/sampleBlocknativeGas.mjs.map +1 -0
  319. package/dist/node/test/sampleEtherchainGasV2.d.mts +3 -0
  320. package/dist/node/test/sampleEtherchainGasV2.d.mts.map +1 -0
  321. package/dist/node/test/sampleEtherchainGasV2.d.ts +3 -0
  322. package/dist/node/test/sampleEtherchainGasV2.d.ts.map +1 -0
  323. package/dist/node/test/sampleEtherchainGasV2.js +42 -0
  324. package/dist/node/test/sampleEtherchainGasV2.js.map +1 -0
  325. package/dist/node/test/sampleEtherchainGasV2.mjs +18 -0
  326. package/dist/node/test/sampleEtherchainGasV2.mjs.map +1 -0
  327. package/dist/node/test/sampleEthersGas.d.mts +3 -0
  328. package/dist/node/test/sampleEthersGas.d.mts.map +1 -0
  329. package/dist/node/test/sampleEthersGas.d.ts +3 -0
  330. package/dist/node/test/sampleEthersGas.d.ts.map +1 -0
  331. package/dist/node/test/sampleEthersGas.js +37 -0
  332. package/dist/node/test/sampleEthersGas.js.map +1 -0
  333. package/dist/node/test/sampleEthersGas.mjs +13 -0
  334. package/dist/node/test/sampleEthersGas.mjs.map +1 -0
  335. package/dist/node/test/sampleEtherscanGas.d.mts +3 -0
  336. package/dist/node/test/sampleEtherscanGas.d.mts.map +1 -0
  337. package/dist/node/test/sampleEtherscanGas.d.ts +3 -0
  338. package/dist/node/test/sampleEtherscanGas.d.ts.map +1 -0
  339. package/dist/node/test/sampleEtherscanGas.js +43 -0
  340. package/dist/node/test/sampleEtherscanGas.js.map +1 -0
  341. package/dist/node/test/sampleEtherscanGas.mjs +19 -0
  342. package/dist/node/test/sampleEtherscanGas.mjs.map +1 -0
  343. package/dist/node/test/sampleEthgasstationGas.d.mts +3 -0
  344. package/dist/node/test/sampleEthgasstationGas.d.mts.map +1 -0
  345. package/dist/node/test/sampleEthgasstationGas.d.ts +3 -0
  346. package/dist/node/test/sampleEthgasstationGas.d.ts.map +1 -0
  347. package/dist/node/test/sampleEthgasstationGas.js +47 -0
  348. package/dist/node/test/sampleEthgasstationGas.js.map +1 -0
  349. package/dist/node/test/sampleEthgasstationGas.mjs +23 -0
  350. package/dist/node/test/sampleEthgasstationGas.mjs.map +1 -0
  351. package/package.json +38 -35
  352. package/dist/Diviner.d.mts.map +0 -1
  353. package/dist/Diviner.d.ts.map +0 -1
  354. package/dist/Plugin.d.mts.map +0 -1
  355. package/dist/Plugin.d.ts.map +0 -1
  356. package/dist/Schema.d.mts.map +0 -1
  357. package/dist/Schema.d.ts.map +0 -1
  358. package/dist/docs.json +0 -21982
  359. package/dist/index.d.mts.map +0 -1
  360. package/dist/index.d.ts.map +0 -1
  361. package/dist/index.js.map +0 -1
  362. package/dist/index.mjs.map +0 -1
  363. package/dist/lib/average.d.mts.map +0 -1
  364. package/dist/lib/average.d.ts.map +0 -1
  365. package/dist/lib/divineGas.d.mts.map +0 -1
  366. package/dist/lib/divineGas.d.ts.map +0 -1
  367. package/dist/lib/identities/index.d.mts.map +0 -1
  368. package/dist/lib/identities/index.d.ts.map +0 -1
  369. package/dist/lib/identities/isEthereumGasBlocknativePayload.d.mts.map +0 -1
  370. package/dist/lib/identities/isEthereumGasBlocknativePayload.d.ts.map +0 -1
  371. package/dist/lib/identities/isEthereumGasEtherchainV2Payload.d.mts.map +0 -1
  372. package/dist/lib/identities/isEthereumGasEtherchainV2Payload.d.ts.map +0 -1
  373. package/dist/lib/identities/isEthereumGasEthersPayload.d.mts.map +0 -1
  374. package/dist/lib/identities/isEthereumGasEthersPayload.d.ts.map +0 -1
  375. package/dist/lib/identities/isEthereumGasEtherscanPayload.d.mts.map +0 -1
  376. package/dist/lib/identities/isEthereumGasEtherscanPayload.d.ts.map +0 -1
  377. package/dist/lib/identities/isEthereumGasEthgasstationPayload.d.mts.map +0 -1
  378. package/dist/lib/identities/isEthereumGasEthgasstationPayload.d.ts.map +0 -1
  379. package/dist/lib/index.d.mts.map +0 -1
  380. package/dist/lib/index.d.ts.map +0 -1
  381. package/dist/lib/transforms/index.d.mts.map +0 -1
  382. package/dist/lib/transforms/index.d.ts.map +0 -1
  383. package/dist/lib/transforms/transformGasFromBlocknative.d.mts.map +0 -1
  384. package/dist/lib/transforms/transformGasFromBlocknative.d.ts.map +0 -1
  385. package/dist/lib/transforms/transformGasFromEtherchainV2.d.mts.map +0 -1
  386. package/dist/lib/transforms/transformGasFromEtherchainV2.d.ts.map +0 -1
  387. package/dist/lib/transforms/transformGasFromEthers.d.mts.map +0 -1
  388. package/dist/lib/transforms/transformGasFromEthers.d.ts.map +0 -1
  389. package/dist/lib/transforms/transformGasFromEtherscan.d.mts.map +0 -1
  390. package/dist/lib/transforms/transformGasFromEtherscan.d.ts.map +0 -1
  391. package/dist/lib/transforms/transformGasFromEthgasstation.d.mts.map +0 -1
  392. package/dist/lib/transforms/transformGasFromEthgasstation.d.ts.map +0 -1
  393. package/dist/test/index.d.mts.map +0 -1
  394. package/dist/test/index.d.ts.map +0 -1
  395. package/dist/test/sampleBlocknativeGas.d.mts.map +0 -1
  396. package/dist/test/sampleBlocknativeGas.d.ts.map +0 -1
  397. package/dist/test/sampleEtherchainGasV2.d.mts.map +0 -1
  398. package/dist/test/sampleEtherchainGasV2.d.ts.map +0 -1
  399. package/dist/test/sampleEthersGas.d.mts.map +0 -1
  400. package/dist/test/sampleEthersGas.d.ts.map +0 -1
  401. package/dist/test/sampleEtherscanGas.d.mts.map +0 -1
  402. package/dist/test/sampleEtherscanGas.d.ts.map +0 -1
  403. package/dist/test/sampleEthgasstationGas.d.mts.map +0 -1
  404. package/dist/test/sampleEthgasstationGas.d.ts.map +0 -1
  405. /package/dist/{Diviner.d.mts → browser/Diviner.d.mts} +0 -0
  406. /package/dist/{Diviner.d.ts → browser/Diviner.d.ts} +0 -0
  407. /package/dist/{Plugin.d.mts → browser/Plugin.d.mts} +0 -0
  408. /package/dist/{Plugin.d.ts → browser/Plugin.d.ts} +0 -0
  409. /package/dist/{Schema.d.mts → browser/Schema.d.mts} +0 -0
  410. /package/dist/{Schema.d.ts → browser/Schema.d.ts} +0 -0
  411. /package/dist/{index.d.mts → browser/index.d.mts} +0 -0
  412. /package/dist/{index.d.ts → browser/index.d.ts} +0 -0
  413. /package/dist/{lib → browser/lib}/average.d.mts +0 -0
  414. /package/dist/{lib → browser/lib}/average.d.ts +0 -0
  415. /package/dist/{lib → browser/lib}/divineGas.d.mts +0 -0
  416. /package/dist/{lib → browser/lib}/divineGas.d.ts +0 -0
  417. /package/dist/{lib → browser/lib}/identities/index.d.mts +0 -0
  418. /package/dist/{lib → browser/lib}/identities/index.d.ts +0 -0
  419. /package/dist/{lib → browser/lib}/identities/isEthereumGasBlocknativePayload.d.mts +0 -0
  420. /package/dist/{lib → browser/lib}/identities/isEthereumGasBlocknativePayload.d.ts +0 -0
  421. /package/dist/{lib → browser/lib}/identities/isEthereumGasEtherchainV2Payload.d.mts +0 -0
  422. /package/dist/{lib → browser/lib}/identities/isEthereumGasEtherchainV2Payload.d.ts +0 -0
  423. /package/dist/{lib → browser/lib}/identities/isEthereumGasEthersPayload.d.mts +0 -0
  424. /package/dist/{lib → browser/lib}/identities/isEthereumGasEthersPayload.d.ts +0 -0
  425. /package/dist/{lib → browser/lib}/identities/isEthereumGasEtherscanPayload.d.mts +0 -0
  426. /package/dist/{lib → browser/lib}/identities/isEthereumGasEtherscanPayload.d.ts +0 -0
  427. /package/dist/{lib → browser/lib}/identities/isEthereumGasEthgasstationPayload.d.mts +0 -0
  428. /package/dist/{lib → browser/lib}/identities/isEthereumGasEthgasstationPayload.d.ts +0 -0
  429. /package/dist/{lib → browser/lib}/index.d.mts +0 -0
  430. /package/dist/{lib → browser/lib}/index.d.ts +0 -0
  431. /package/dist/{lib → browser/lib}/transforms/index.d.mts +0 -0
  432. /package/dist/{lib → browser/lib}/transforms/index.d.ts +0 -0
  433. /package/dist/{lib → browser/lib}/transforms/transformGasFromBlocknative.d.mts +0 -0
  434. /package/dist/{lib → browser/lib}/transforms/transformGasFromBlocknative.d.ts +0 -0
  435. /package/dist/{lib → browser/lib}/transforms/transformGasFromEtherchainV2.d.mts +0 -0
  436. /package/dist/{lib → browser/lib}/transforms/transformGasFromEtherchainV2.d.ts +0 -0
  437. /package/dist/{lib → browser/lib}/transforms/transformGasFromEthers.d.mts +0 -0
  438. /package/dist/{lib → browser/lib}/transforms/transformGasFromEthers.d.ts +0 -0
  439. /package/dist/{lib → browser/lib}/transforms/transformGasFromEtherscan.d.mts +0 -0
  440. /package/dist/{lib → browser/lib}/transforms/transformGasFromEtherscan.d.ts +0 -0
  441. /package/dist/{lib → browser/lib}/transforms/transformGasFromEthgasstation.d.mts +0 -0
  442. /package/dist/{lib → browser/lib}/transforms/transformGasFromEthgasstation.d.ts +0 -0
  443. /package/dist/{test → browser/test}/index.d.mts +0 -0
  444. /package/dist/{test → browser/test}/index.d.ts +0 -0
  445. /package/dist/{test → browser/test}/sampleBlocknativeGas.d.mts +0 -0
  446. /package/dist/{test → browser/test}/sampleBlocknativeGas.d.ts +0 -0
  447. /package/dist/{test → browser/test}/sampleEtherchainGasV2.d.mts +0 -0
  448. /package/dist/{test → browser/test}/sampleEtherchainGasV2.d.ts +0 -0
  449. /package/dist/{test → browser/test}/sampleEthersGas.d.mts +0 -0
  450. /package/dist/{test → browser/test}/sampleEthersGas.d.ts +0 -0
  451. /package/dist/{test → browser/test}/sampleEtherscanGas.d.mts +0 -0
  452. /package/dist/{test → browser/test}/sampleEtherscanGas.d.ts +0 -0
  453. /package/dist/{test → browser/test}/sampleEthgasstationGas.d.mts +0 -0
  454. /package/dist/{test → browser/test}/sampleEthgasstationGas.d.ts +0 -0
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../../../src/lib/transforms/transformGasFromEthers.ts"],"sourcesContent":["import { EthereumGasEthersPayload } from '@xyo-network/ethers-ethereum-gas-payload-plugin'\nimport { FeeData, FeePerGas, PriorityFeePerGas } from '@xyo-network/gas-price-payload-plugin'\n\nconst getBaseFee = (payload: EthereumGasEthersPayload): number | undefined => {\n const { lastBaseFeePerGas } = payload\n return lastBaseFeePerGas ? lastBaseFeePerGas / 1_000_000_000 : undefined\n}\n\nconst getFeePerGas = (payload: EthereumGasEthersPayload): Partial<FeePerGas> => {\n const { maxFeePerGas } = payload\n const high = maxFeePerGas ? maxFeePerGas / 1_000_000_000 : undefined\n return { high }\n}\n\nconst getPriorityFeePerGas = (payload: EthereumGasEthersPayload): Partial<PriorityFeePerGas> => {\n const { maxPriorityFeePerGas } = payload\n const high = maxPriorityFeePerGas ? maxPriorityFeePerGas / 1_000_000_000 : undefined\n return { high }\n}\n\nexport const transformGasFromEthers = (payload: EthereumGasEthersPayload): FeeData => {\n const baseFee = getBaseFee(payload)\n const feePerGas = getFeePerGas(payload)\n const priorityFeePerGas = getPriorityFeePerGas(payload)\n return { baseFee, feePerGas, priorityFeePerGas }\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAGA,IAAM,aAAa,CAAC,YAA0D;AAC5E,QAAM,EAAE,kBAAkB,IAAI;AAC9B,SAAO,oBAAoB,oBAAoB,MAAgB;AACjE;AAEA,IAAM,eAAe,CAAC,YAA0D;AAC9E,QAAM,EAAE,aAAa,IAAI;AACzB,QAAM,OAAO,eAAe,eAAe,MAAgB;AAC3D,SAAO,EAAE,KAAK;AAChB;AAEA,IAAM,uBAAuB,CAAC,YAAkE;AAC9F,QAAM,EAAE,qBAAqB,IAAI;AACjC,QAAM,OAAO,uBAAuB,uBAAuB,MAAgB;AAC3E,SAAO,EAAE,KAAK;AAChB;AAEO,IAAM,yBAAyB,CAAC,YAA+C;AACpF,QAAM,UAAU,WAAW,OAAO;AAClC,QAAM,YAAY,aAAa,OAAO;AACtC,QAAM,oBAAoB,qBAAqB,OAAO;AACtD,SAAO,EAAE,SAAS,WAAW,kBAAkB;AACjD;","names":[]}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"transformGasFromEthers.d.ts","sourceRoot":"","sources":["../../../../src/lib/transforms/transformGasFromEthers.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,wBAAwB,EAAE,MAAM,iDAAiD,CAAA;AAC1F,OAAO,EAAE,OAAO,EAAgC,MAAM,uCAAuC,CAAA;AAmB7F,eAAO,MAAM,sBAAsB,YAAa,wBAAwB,KAAG,OAK1E,CAAA"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"transformGasFromEthers.d.ts","sourceRoot":"","sources":["../../../../src/lib/transforms/transformGasFromEthers.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,wBAAwB,EAAE,MAAM,iDAAiD,CAAA;AAC1F,OAAO,EAAE,OAAO,EAAgC,MAAM,uCAAuC,CAAA;AAmB7F,eAAO,MAAM,sBAAsB,YAAa,wBAAwB,KAAG,OAK1E,CAAA"}
@@ -0,0 +1,25 @@
1
+ // src/lib/transforms/transformGasFromEthers.ts
2
+ var getBaseFee = (payload) => {
3
+ const { lastBaseFeePerGas } = payload;
4
+ return lastBaseFeePerGas ? lastBaseFeePerGas / 1e9 : void 0;
5
+ };
6
+ var getFeePerGas = (payload) => {
7
+ const { maxFeePerGas } = payload;
8
+ const high = maxFeePerGas ? maxFeePerGas / 1e9 : void 0;
9
+ return { high };
10
+ };
11
+ var getPriorityFeePerGas = (payload) => {
12
+ const { maxPriorityFeePerGas } = payload;
13
+ const high = maxPriorityFeePerGas ? maxPriorityFeePerGas / 1e9 : void 0;
14
+ return { high };
15
+ };
16
+ var transformGasFromEthers = (payload) => {
17
+ const baseFee = getBaseFee(payload);
18
+ const feePerGas = getFeePerGas(payload);
19
+ const priorityFeePerGas = getPriorityFeePerGas(payload);
20
+ return { baseFee, feePerGas, priorityFeePerGas };
21
+ };
22
+ export {
23
+ transformGasFromEthers
24
+ };
25
+ //# sourceMappingURL=transformGasFromEthers.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../../../src/lib/transforms/transformGasFromEthers.ts"],"sourcesContent":["import { EthereumGasEthersPayload } from '@xyo-network/ethers-ethereum-gas-payload-plugin'\nimport { FeeData, FeePerGas, PriorityFeePerGas } from '@xyo-network/gas-price-payload-plugin'\n\nconst getBaseFee = (payload: EthereumGasEthersPayload): number | undefined => {\n const { lastBaseFeePerGas } = payload\n return lastBaseFeePerGas ? lastBaseFeePerGas / 1_000_000_000 : undefined\n}\n\nconst getFeePerGas = (payload: EthereumGasEthersPayload): Partial<FeePerGas> => {\n const { maxFeePerGas } = payload\n const high = maxFeePerGas ? maxFeePerGas / 1_000_000_000 : undefined\n return { high }\n}\n\nconst getPriorityFeePerGas = (payload: EthereumGasEthersPayload): Partial<PriorityFeePerGas> => {\n const { maxPriorityFeePerGas } = payload\n const high = maxPriorityFeePerGas ? maxPriorityFeePerGas / 1_000_000_000 : undefined\n return { high }\n}\n\nexport const transformGasFromEthers = (payload: EthereumGasEthersPayload): FeeData => {\n const baseFee = getBaseFee(payload)\n const feePerGas = getFeePerGas(payload)\n const priorityFeePerGas = getPriorityFeePerGas(payload)\n return { baseFee, feePerGas, priorityFeePerGas }\n}\n"],"mappings":";AAGA,IAAM,aAAa,CAAC,YAA0D;AAC5E,QAAM,EAAE,kBAAkB,IAAI;AAC9B,SAAO,oBAAoB,oBAAoB,MAAgB;AACjE;AAEA,IAAM,eAAe,CAAC,YAA0D;AAC9E,QAAM,EAAE,aAAa,IAAI;AACzB,QAAM,OAAO,eAAe,eAAe,MAAgB;AAC3D,SAAO,EAAE,KAAK;AAChB;AAEA,IAAM,uBAAuB,CAAC,YAAkE;AAC9F,QAAM,EAAE,qBAAqB,IAAI;AACjC,QAAM,OAAO,uBAAuB,uBAAuB,MAAgB;AAC3E,SAAO,EAAE,KAAK;AAChB;AAEO,IAAM,yBAAyB,CAAC,YAA+C;AACpF,QAAM,UAAU,WAAW,OAAO;AAClC,QAAM,YAAY,aAAa,OAAO;AACtC,QAAM,oBAAoB,qBAAqB,OAAO;AACtD,SAAO,EAAE,SAAS,WAAW,kBAAkB;AACjD;","names":[]}
@@ -0,0 +1,49 @@
1
+ "use strict";
2
+ var __defProp = Object.defineProperty;
3
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
+ var __getOwnPropNames = Object.getOwnPropertyNames;
5
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
6
+ var __export = (target, all) => {
7
+ for (var name in all)
8
+ __defProp(target, name, { get: all[name], enumerable: true });
9
+ };
10
+ var __copyProps = (to, from, except, desc) => {
11
+ if (from && typeof from === "object" || typeof from === "function") {
12
+ for (let key of __getOwnPropNames(from))
13
+ if (!__hasOwnProp.call(to, key) && key !== except)
14
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
15
+ }
16
+ return to;
17
+ };
18
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
19
+
20
+ // src/lib/transforms/transformGasFromEtherscan.ts
21
+ var transformGasFromEtherscan_exports = {};
22
+ __export(transformGasFromEtherscan_exports, {
23
+ transformGasFromEtherscan: () => transformGasFromEtherscan
24
+ });
25
+ module.exports = __toCommonJS(transformGasFromEtherscan_exports);
26
+ var import_regression = require("regression");
27
+ var getBaseFee = (payload) => {
28
+ const { suggestBaseFee } = payload.result;
29
+ return parseFloat(suggestBaseFee);
30
+ };
31
+ var getFeePerGas = (payload) => {
32
+ const { FastGasPrice, ProposeGasPrice, SafeGasPrice } = payload.result;
33
+ const low = parseFloat(SafeGasPrice);
34
+ const medium = parseFloat(ProposeGasPrice);
35
+ const high = parseFloat(FastGasPrice);
36
+ const veryHigh = (0, import_regression.linear)([
37
+ [0, low],
38
+ [1, medium],
39
+ [2, high]
40
+ ]).predict(3)[1];
41
+ return { high, low, medium, veryHigh };
42
+ };
43
+ var transformGasFromEtherscan = (payload) => {
44
+ const baseFee = getBaseFee(payload);
45
+ const feePerGas = getFeePerGas(payload);
46
+ const priorityFeePerGas = {};
47
+ return { baseFee, feePerGas, priorityFeePerGas };
48
+ };
49
+ //# sourceMappingURL=transformGasFromEtherscan.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../../../src/lib/transforms/transformGasFromEtherscan.ts"],"sourcesContent":["import { EthereumGasEtherscanPayload } from '@xyo-network/etherscan-ethereum-gas-payload-plugin'\nimport { FeeData, FeePerGas } from '@xyo-network/gas-price-payload-plugin'\nimport { linear } from 'regression'\n\nconst getBaseFee = (payload: EthereumGasEtherscanPayload): number | undefined => {\n const { suggestBaseFee } = payload.result\n return parseFloat(suggestBaseFee)\n}\n\nconst getFeePerGas = (payload: EthereumGasEtherscanPayload): Partial<FeePerGas> => {\n const { FastGasPrice, ProposeGasPrice, SafeGasPrice } = payload.result\n const low = parseFloat(SafeGasPrice)\n const medium = parseFloat(ProposeGasPrice)\n const high = parseFloat(FastGasPrice)\n const veryHigh = linear([\n [0, low],\n [1, medium],\n [2, high],\n ]).predict(3)[1]\n return { high, low, medium, veryHigh }\n}\n\nexport const transformGasFromEtherscan = (payload: EthereumGasEtherscanPayload): FeeData => {\n const baseFee = getBaseFee(payload)\n const feePerGas = getFeePerGas(payload)\n const priorityFeePerGas = {}\n return { baseFee, feePerGas, priorityFeePerGas }\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAEA,wBAAuB;AAEvB,IAAM,aAAa,CAAC,YAA6D;AAC/E,QAAM,EAAE,eAAe,IAAI,QAAQ;AACnC,SAAO,WAAW,cAAc;AAClC;AAEA,IAAM,eAAe,CAAC,YAA6D;AACjF,QAAM,EAAE,cAAc,iBAAiB,aAAa,IAAI,QAAQ;AAChE,QAAM,MAAM,WAAW,YAAY;AACnC,QAAM,SAAS,WAAW,eAAe;AACzC,QAAM,OAAO,WAAW,YAAY;AACpC,QAAM,eAAW,0BAAO;AAAA,IACtB,CAAC,GAAG,GAAG;AAAA,IACP,CAAC,GAAG,MAAM;AAAA,IACV,CAAC,GAAG,IAAI;AAAA,EACV,CAAC,EAAE,QAAQ,CAAC,EAAE,CAAC;AACf,SAAO,EAAE,MAAM,KAAK,QAAQ,SAAS;AACvC;AAEO,IAAM,4BAA4B,CAAC,YAAkD;AAC1F,QAAM,UAAU,WAAW,OAAO;AAClC,QAAM,YAAY,aAAa,OAAO;AACtC,QAAM,oBAAoB,CAAC;AAC3B,SAAO,EAAE,SAAS,WAAW,kBAAkB;AACjD;","names":[]}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"transformGasFromEtherscan.d.ts","sourceRoot":"","sources":["../../../../src/lib/transforms/transformGasFromEtherscan.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,2BAA2B,EAAE,MAAM,oDAAoD,CAAA;AAChG,OAAO,EAAE,OAAO,EAAa,MAAM,uCAAuC,CAAA;AAqB1E,eAAO,MAAM,yBAAyB,YAAa,2BAA2B,KAAG,OAKhF,CAAA"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"transformGasFromEtherscan.d.ts","sourceRoot":"","sources":["../../../../src/lib/transforms/transformGasFromEtherscan.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,2BAA2B,EAAE,MAAM,oDAAoD,CAAA;AAChG,OAAO,EAAE,OAAO,EAAa,MAAM,uCAAuC,CAAA;AAqB1E,eAAO,MAAM,yBAAyB,YAAa,2BAA2B,KAAG,OAKhF,CAAA"}
@@ -0,0 +1,28 @@
1
+ // src/lib/transforms/transformGasFromEtherscan.ts
2
+ import { linear } from "regression";
3
+ var getBaseFee = (payload) => {
4
+ const { suggestBaseFee } = payload.result;
5
+ return parseFloat(suggestBaseFee);
6
+ };
7
+ var getFeePerGas = (payload) => {
8
+ const { FastGasPrice, ProposeGasPrice, SafeGasPrice } = payload.result;
9
+ const low = parseFloat(SafeGasPrice);
10
+ const medium = parseFloat(ProposeGasPrice);
11
+ const high = parseFloat(FastGasPrice);
12
+ const veryHigh = linear([
13
+ [0, low],
14
+ [1, medium],
15
+ [2, high]
16
+ ]).predict(3)[1];
17
+ return { high, low, medium, veryHigh };
18
+ };
19
+ var transformGasFromEtherscan = (payload) => {
20
+ const baseFee = getBaseFee(payload);
21
+ const feePerGas = getFeePerGas(payload);
22
+ const priorityFeePerGas = {};
23
+ return { baseFee, feePerGas, priorityFeePerGas };
24
+ };
25
+ export {
26
+ transformGasFromEtherscan
27
+ };
28
+ //# sourceMappingURL=transformGasFromEtherscan.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../../../src/lib/transforms/transformGasFromEtherscan.ts"],"sourcesContent":["import { EthereumGasEtherscanPayload } from '@xyo-network/etherscan-ethereum-gas-payload-plugin'\nimport { FeeData, FeePerGas } from '@xyo-network/gas-price-payload-plugin'\nimport { linear } from 'regression'\n\nconst getBaseFee = (payload: EthereumGasEtherscanPayload): number | undefined => {\n const { suggestBaseFee } = payload.result\n return parseFloat(suggestBaseFee)\n}\n\nconst getFeePerGas = (payload: EthereumGasEtherscanPayload): Partial<FeePerGas> => {\n const { FastGasPrice, ProposeGasPrice, SafeGasPrice } = payload.result\n const low = parseFloat(SafeGasPrice)\n const medium = parseFloat(ProposeGasPrice)\n const high = parseFloat(FastGasPrice)\n const veryHigh = linear([\n [0, low],\n [1, medium],\n [2, high],\n ]).predict(3)[1]\n return { high, low, medium, veryHigh }\n}\n\nexport const transformGasFromEtherscan = (payload: EthereumGasEtherscanPayload): FeeData => {\n const baseFee = getBaseFee(payload)\n const feePerGas = getFeePerGas(payload)\n const priorityFeePerGas = {}\n return { baseFee, feePerGas, priorityFeePerGas }\n}\n"],"mappings":";AAEA,SAAS,cAAc;AAEvB,IAAM,aAAa,CAAC,YAA6D;AAC/E,QAAM,EAAE,eAAe,IAAI,QAAQ;AACnC,SAAO,WAAW,cAAc;AAClC;AAEA,IAAM,eAAe,CAAC,YAA6D;AACjF,QAAM,EAAE,cAAc,iBAAiB,aAAa,IAAI,QAAQ;AAChE,QAAM,MAAM,WAAW,YAAY;AACnC,QAAM,SAAS,WAAW,eAAe;AACzC,QAAM,OAAO,WAAW,YAAY;AACpC,QAAM,WAAW,OAAO;AAAA,IACtB,CAAC,GAAG,GAAG;AAAA,IACP,CAAC,GAAG,MAAM;AAAA,IACV,CAAC,GAAG,IAAI;AAAA,EACV,CAAC,EAAE,QAAQ,CAAC,EAAE,CAAC;AACf,SAAO,EAAE,MAAM,KAAK,QAAQ,SAAS;AACvC;AAEO,IAAM,4BAA4B,CAAC,YAAkD;AAC1F,QAAM,UAAU,WAAW,OAAO;AAClC,QAAM,YAAY,aAAa,OAAO;AACtC,QAAM,oBAAoB,CAAC;AAC3B,SAAO,EAAE,SAAS,WAAW,kBAAkB;AACjD;","names":[]}
@@ -0,0 +1,57 @@
1
+ "use strict";
2
+ var __defProp = Object.defineProperty;
3
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
+ var __getOwnPropNames = Object.getOwnPropertyNames;
5
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
6
+ var __export = (target, all) => {
7
+ for (var name in all)
8
+ __defProp(target, name, { get: all[name], enumerable: true });
9
+ };
10
+ var __copyProps = (to, from, except, desc) => {
11
+ if (from && typeof from === "object" || typeof from === "function") {
12
+ for (let key of __getOwnPropNames(from))
13
+ if (!__hasOwnProp.call(to, key) && key !== except)
14
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
15
+ }
16
+ return to;
17
+ };
18
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
19
+
20
+ // src/lib/transforms/transformGasFromEthgasstation.ts
21
+ var transformGasFromEthgasstation_exports = {};
22
+ __export(transformGasFromEthgasstation_exports, {
23
+ transformGasFromEthgasstation: () => transformGasFromEthgasstation
24
+ });
25
+ module.exports = __toCommonJS(transformGasFromEthgasstation_exports);
26
+ var import_regression = require("regression");
27
+ var getBaseFee = (payload) => {
28
+ const { baseFee } = payload;
29
+ return baseFee;
30
+ };
31
+ var getFeePerGas = (payload) => {
32
+ const { standard: medium, fast: high, instant: veryHigh } = payload.gasPrice;
33
+ const trend = (0, import_regression.linear)([
34
+ [1, medium],
35
+ [2, high],
36
+ [3, veryHigh]
37
+ ]);
38
+ const low = trend.predict(0)[1];
39
+ return { low, medium, high, veryHigh };
40
+ };
41
+ var getPriorityFeePerGas = (payload) => {
42
+ const { standard: medium, fast: high, instant: veryHigh } = payload.priorityFee;
43
+ const trend = (0, import_regression.linear)([
44
+ [1, medium],
45
+ [2, high],
46
+ [3, veryHigh]
47
+ ]);
48
+ const low = trend.predict(0)[1];
49
+ return { low, medium, high, veryHigh };
50
+ };
51
+ var transformGasFromEthgasstation = (payload) => {
52
+ const baseFee = getBaseFee(payload);
53
+ const feePerGas = getFeePerGas(payload);
54
+ const priorityFeePerGas = getPriorityFeePerGas(payload);
55
+ return { baseFee, feePerGas, priorityFeePerGas };
56
+ };
57
+ //# sourceMappingURL=transformGasFromEthgasstation.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../../../src/lib/transforms/transformGasFromEthgasstation.ts"],"sourcesContent":["/* eslint-disable sort-keys-fix/sort-keys-fix */\nimport { EthereumGasEthgasstationPayload } from '@xyo-network/ethgasstation-ethereum-gas-payload-plugin'\nimport { FeeData, FeePerGas, PriorityFeePerGas } from '@xyo-network/gas-price-payload-plugin'\nimport { linear } from 'regression'\n\nconst getBaseFee = (payload: EthereumGasEthgasstationPayload): number | undefined => {\n const { baseFee } = payload\n return baseFee\n}\n\nconst getFeePerGas = (payload: EthereumGasEthgasstationPayload): Partial<FeePerGas> => {\n const { standard: medium, fast: high, instant: veryHigh } = payload.gasPrice\n const trend = linear([\n [1, medium],\n [2, high],\n [3, veryHigh],\n ])\n const low = trend.predict(0)[1]\n return { low, medium, high, veryHigh }\n}\n\nconst getPriorityFeePerGas = (payload: EthereumGasEthgasstationPayload): Partial<PriorityFeePerGas> => {\n const { standard: medium, fast: high, instant: veryHigh } = payload.priorityFee\n const trend = linear([\n [1, medium],\n [2, high],\n [3, veryHigh],\n ])\n const low = trend.predict(0)[1]\n return { low, medium, high, veryHigh }\n}\n\nexport const transformGasFromEthgasstation = (payload: EthereumGasEthgasstationPayload): FeeData => {\n const baseFee = getBaseFee(payload)\n const feePerGas = getFeePerGas(payload)\n const priorityFeePerGas = getPriorityFeePerGas(payload)\n return { baseFee, feePerGas, priorityFeePerGas }\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAGA,wBAAuB;AAEvB,IAAM,aAAa,CAAC,YAAiE;AACnF,QAAM,EAAE,QAAQ,IAAI;AACpB,SAAO;AACT;AAEA,IAAM,eAAe,CAAC,YAAiE;AACrF,QAAM,EAAE,UAAU,QAAQ,MAAM,MAAM,SAAS,SAAS,IAAI,QAAQ;AACpE,QAAM,YAAQ,0BAAO;AAAA,IACnB,CAAC,GAAG,MAAM;AAAA,IACV,CAAC,GAAG,IAAI;AAAA,IACR,CAAC,GAAG,QAAQ;AAAA,EACd,CAAC;AACD,QAAM,MAAM,MAAM,QAAQ,CAAC,EAAE,CAAC;AAC9B,SAAO,EAAE,KAAK,QAAQ,MAAM,SAAS;AACvC;AAEA,IAAM,uBAAuB,CAAC,YAAyE;AACrG,QAAM,EAAE,UAAU,QAAQ,MAAM,MAAM,SAAS,SAAS,IAAI,QAAQ;AACpE,QAAM,YAAQ,0BAAO;AAAA,IACnB,CAAC,GAAG,MAAM;AAAA,IACV,CAAC,GAAG,IAAI;AAAA,IACR,CAAC,GAAG,QAAQ;AAAA,EACd,CAAC;AACD,QAAM,MAAM,MAAM,QAAQ,CAAC,EAAE,CAAC;AAC9B,SAAO,EAAE,KAAK,QAAQ,MAAM,SAAS;AACvC;AAEO,IAAM,gCAAgC,CAAC,YAAsD;AAClG,QAAM,UAAU,WAAW,OAAO;AAClC,QAAM,YAAY,aAAa,OAAO;AACtC,QAAM,oBAAoB,qBAAqB,OAAO;AACtD,SAAO,EAAE,SAAS,WAAW,kBAAkB;AACjD;","names":[]}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"transformGasFromEthgasstation.d.ts","sourceRoot":"","sources":["../../../../src/lib/transforms/transformGasFromEthgasstation.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,+BAA+B,EAAE,MAAM,wDAAwD,CAAA;AACxG,OAAO,EAAE,OAAO,EAAgC,MAAM,uCAAuC,CAAA;AA8B7F,eAAO,MAAM,6BAA6B,YAAa,+BAA+B,KAAG,OAKxF,CAAA"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"transformGasFromEthgasstation.d.ts","sourceRoot":"","sources":["../../../../src/lib/transforms/transformGasFromEthgasstation.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,+BAA+B,EAAE,MAAM,wDAAwD,CAAA;AACxG,OAAO,EAAE,OAAO,EAAgC,MAAM,uCAAuC,CAAA;AA8B7F,eAAO,MAAM,6BAA6B,YAAa,+BAA+B,KAAG,OAKxF,CAAA"}
@@ -0,0 +1,36 @@
1
+ // src/lib/transforms/transformGasFromEthgasstation.ts
2
+ import { linear } from "regression";
3
+ var getBaseFee = (payload) => {
4
+ const { baseFee } = payload;
5
+ return baseFee;
6
+ };
7
+ var getFeePerGas = (payload) => {
8
+ const { standard: medium, fast: high, instant: veryHigh } = payload.gasPrice;
9
+ const trend = linear([
10
+ [1, medium],
11
+ [2, high],
12
+ [3, veryHigh]
13
+ ]);
14
+ const low = trend.predict(0)[1];
15
+ return { low, medium, high, veryHigh };
16
+ };
17
+ var getPriorityFeePerGas = (payload) => {
18
+ const { standard: medium, fast: high, instant: veryHigh } = payload.priorityFee;
19
+ const trend = linear([
20
+ [1, medium],
21
+ [2, high],
22
+ [3, veryHigh]
23
+ ]);
24
+ const low = trend.predict(0)[1];
25
+ return { low, medium, high, veryHigh };
26
+ };
27
+ var transformGasFromEthgasstation = (payload) => {
28
+ const baseFee = getBaseFee(payload);
29
+ const feePerGas = getFeePerGas(payload);
30
+ const priorityFeePerGas = getPriorityFeePerGas(payload);
31
+ return { baseFee, feePerGas, priorityFeePerGas };
32
+ };
33
+ export {
34
+ transformGasFromEthgasstation
35
+ };
36
+ //# sourceMappingURL=transformGasFromEthgasstation.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../../../src/lib/transforms/transformGasFromEthgasstation.ts"],"sourcesContent":["/* eslint-disable sort-keys-fix/sort-keys-fix */\nimport { EthereumGasEthgasstationPayload } from '@xyo-network/ethgasstation-ethereum-gas-payload-plugin'\nimport { FeeData, FeePerGas, PriorityFeePerGas } from '@xyo-network/gas-price-payload-plugin'\nimport { linear } from 'regression'\n\nconst getBaseFee = (payload: EthereumGasEthgasstationPayload): number | undefined => {\n const { baseFee } = payload\n return baseFee\n}\n\nconst getFeePerGas = (payload: EthereumGasEthgasstationPayload): Partial<FeePerGas> => {\n const { standard: medium, fast: high, instant: veryHigh } = payload.gasPrice\n const trend = linear([\n [1, medium],\n [2, high],\n [3, veryHigh],\n ])\n const low = trend.predict(0)[1]\n return { low, medium, high, veryHigh }\n}\n\nconst getPriorityFeePerGas = (payload: EthereumGasEthgasstationPayload): Partial<PriorityFeePerGas> => {\n const { standard: medium, fast: high, instant: veryHigh } = payload.priorityFee\n const trend = linear([\n [1, medium],\n [2, high],\n [3, veryHigh],\n ])\n const low = trend.predict(0)[1]\n return { low, medium, high, veryHigh }\n}\n\nexport const transformGasFromEthgasstation = (payload: EthereumGasEthgasstationPayload): FeeData => {\n const baseFee = getBaseFee(payload)\n const feePerGas = getFeePerGas(payload)\n const priorityFeePerGas = getPriorityFeePerGas(payload)\n return { baseFee, feePerGas, priorityFeePerGas }\n}\n"],"mappings":";AAGA,SAAS,cAAc;AAEvB,IAAM,aAAa,CAAC,YAAiE;AACnF,QAAM,EAAE,QAAQ,IAAI;AACpB,SAAO;AACT;AAEA,IAAM,eAAe,CAAC,YAAiE;AACrF,QAAM,EAAE,UAAU,QAAQ,MAAM,MAAM,SAAS,SAAS,IAAI,QAAQ;AACpE,QAAM,QAAQ,OAAO;AAAA,IACnB,CAAC,GAAG,MAAM;AAAA,IACV,CAAC,GAAG,IAAI;AAAA,IACR,CAAC,GAAG,QAAQ;AAAA,EACd,CAAC;AACD,QAAM,MAAM,MAAM,QAAQ,CAAC,EAAE,CAAC;AAC9B,SAAO,EAAE,KAAK,QAAQ,MAAM,SAAS;AACvC;AAEA,IAAM,uBAAuB,CAAC,YAAyE;AACrG,QAAM,EAAE,UAAU,QAAQ,MAAM,MAAM,SAAS,SAAS,IAAI,QAAQ;AACpE,QAAM,QAAQ,OAAO;AAAA,IACnB,CAAC,GAAG,MAAM;AAAA,IACV,CAAC,GAAG,IAAI;AAAA,IACR,CAAC,GAAG,QAAQ;AAAA,EACd,CAAC;AACD,QAAM,MAAM,MAAM,QAAQ,CAAC,EAAE,CAAC;AAC9B,SAAO,EAAE,KAAK,QAAQ,MAAM,SAAS;AACvC;AAEO,IAAM,gCAAgC,CAAC,YAAsD;AAClG,QAAM,UAAU,WAAW,OAAO;AAClC,QAAM,YAAY,aAAa,OAAO;AACtC,QAAM,oBAAoB,qBAAqB,OAAO;AACtD,SAAO,EAAE,SAAS,WAAW,kBAAkB;AACjD;","names":[]}
@@ -0,0 +1,189 @@
1
+ "use strict";
2
+ var __defProp = Object.defineProperty;
3
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
+ var __getOwnPropNames = Object.getOwnPropertyNames;
5
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
6
+ var __export = (target, all) => {
7
+ for (var name in all)
8
+ __defProp(target, name, { get: all[name], enumerable: true });
9
+ };
10
+ var __copyProps = (to, from, except, desc) => {
11
+ if (from && typeof from === "object" || typeof from === "function") {
12
+ for (let key of __getOwnPropNames(from))
13
+ if (!__hasOwnProp.call(to, key) && key !== except)
14
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
15
+ }
16
+ return to;
17
+ };
18
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
19
+
20
+ // src/test/index.ts
21
+ var test_exports = {};
22
+ __export(test_exports, {
23
+ sampleBlocknativeGas: () => sampleBlocknativeGas,
24
+ sampleEtherchainGasV2: () => sampleEtherchainGasV2,
25
+ sampleEthersGas: () => sampleEthersGas,
26
+ sampleEtherscanGas: () => sampleEtherscanGas,
27
+ sampleEthgasstationGas: () => sampleEthgasstationGas
28
+ });
29
+ module.exports = __toCommonJS(test_exports);
30
+
31
+ // src/test/sampleBlocknativeGas.ts
32
+ var import_blocknative_ethereum_gas_payload_plugin = require("@xyo-network/blocknative-ethereum-gas-payload-plugin");
33
+ var sampleBlocknativeGas = {
34
+ blockPrices: [
35
+ {
36
+ baseFeePerGas: 13.691764456,
37
+ blockNumber: 16028191,
38
+ estimatedPrices: [
39
+ {
40
+ confidence: 99,
41
+ maxFeePerGas: 22.04,
42
+ maxPriorityFeePerGas: 1.09,
43
+ price: 14
44
+ },
45
+ {
46
+ confidence: 95,
47
+ maxFeePerGas: 21.58,
48
+ maxPriorityFeePerGas: 0.63,
49
+ price: 14
50
+ },
51
+ {
52
+ confidence: 90,
53
+ maxFeePerGas: 21.25,
54
+ maxPriorityFeePerGas: 0.3,
55
+ price: 13
56
+ },
57
+ {
58
+ confidence: 80,
59
+ maxFeePerGas: 21.16,
60
+ maxPriorityFeePerGas: 0.21,
61
+ price: 13
62
+ },
63
+ {
64
+ confidence: 70,
65
+ maxFeePerGas: 21.12,
66
+ maxPriorityFeePerGas: 0.17,
67
+ price: 13
68
+ }
69
+ ],
70
+ estimatedTransactionCount: 69
71
+ }
72
+ ],
73
+ currentBlockNumber: 16028190,
74
+ estimatedBaseFees: [
75
+ {
76
+ "pending+1": [
77
+ {
78
+ baseFee: 15.41,
79
+ confidence: 99
80
+ }
81
+ ]
82
+ },
83
+ {
84
+ "pending+2": [
85
+ {
86
+ baseFee: 17.32,
87
+ confidence: 99
88
+ }
89
+ ]
90
+ },
91
+ {
92
+ "pending+3": [
93
+ {
94
+ baseFee: 19.17,
95
+ confidence: 99
96
+ }
97
+ ]
98
+ },
99
+ {
100
+ "pending+4": [
101
+ {
102
+ baseFee: 20.12,
103
+ confidence: 99
104
+ }
105
+ ]
106
+ },
107
+ {
108
+ "pending+5": [
109
+ {
110
+ baseFee: 20.95,
111
+ confidence: 99
112
+ }
113
+ ]
114
+ }
115
+ ],
116
+ maxPrice: 36,
117
+ msSinceLastBlock: 3643,
118
+ network: "main",
119
+ schema: import_blocknative_ethereum_gas_payload_plugin.EthereumGasBlocknativeSchema,
120
+ system: "ethereum",
121
+ timestamp: 1668697958837,
122
+ unit: "gwei"
123
+ };
124
+
125
+ // src/test/sampleEtherchainGasV2.ts
126
+ var import_etherchain_gas_ethereum_blockchain_payload_plugins = require("@xyo-network/etherchain-gas-ethereum-blockchain-payload-plugins");
127
+ var sampleEtherchainGasV2 = {
128
+ code: 200,
129
+ data: {
130
+ fast: 19803047330,
131
+ priceUSD: 1195.77,
132
+ rapid: 29714286170,
133
+ slow: 112e8,
134
+ standard: 12e9,
135
+ timestamp: 1668621234096
136
+ },
137
+ schema: import_etherchain_gas_ethereum_blockchain_payload_plugins.EthereumGasEtherchainV2Schema,
138
+ timestamp: 1668621240790
139
+ };
140
+
141
+ // src/test/sampleEtherscanGas.ts
142
+ var import_etherscan_ethereum_gas_payload_plugin = require("@xyo-network/etherscan-ethereum-gas-payload-plugin");
143
+ var sampleEtherscanGas = {
144
+ message: "OK",
145
+ result: {
146
+ FastGasPrice: "30",
147
+ LastBlock: "15990556",
148
+ ProposeGasPrice: "29",
149
+ SafeGasPrice: "28",
150
+ gasUsedRatio: "0.416266666666667,0.5672862,0.540979033333333,0.342410966666667,0.389071233333333",
151
+ suggestBaseFee: "27.616709247"
152
+ },
153
+ schema: import_etherscan_ethereum_gas_payload_plugin.EthereumGasEtherscanSchema,
154
+ status: "1",
155
+ timestamp: 1668697958837
156
+ };
157
+
158
+ // src/test/sampleEthersGas.ts
159
+ var import_ethers_ethereum_gas_payload_plugin = require("@xyo-network/ethers-ethereum-gas-payload-plugin");
160
+ var sampleEthersGas = {
161
+ gasPrice: 13547863640,
162
+ lastBaseFeePerGas: 13447862081,
163
+ maxFeePerGas: 28395724162,
164
+ maxPriorityFeePerGas: 15e8,
165
+ schema: import_ethers_ethereum_gas_payload_plugin.EthereumGasEthersSchema,
166
+ timestamp: 1668697958837
167
+ };
168
+
169
+ // src/test/sampleEthgasstationGas.ts
170
+ var import_ethgasstation_ethereum_gas_payload_plugin = require("@xyo-network/ethgasstation-ethereum-gas-payload-plugin");
171
+ var sampleEthgasstationGas = {
172
+ baseFee: 10,
173
+ blockNumber: 16028883,
174
+ blockTime: 11.88,
175
+ gasPrice: {
176
+ fast: 12,
177
+ instant: 13,
178
+ standard: 12
179
+ },
180
+ nextBaseFee: 10,
181
+ priorityFee: {
182
+ fast: 2,
183
+ instant: 2,
184
+ standard: 2
185
+ },
186
+ schema: import_ethgasstation_ethereum_gas_payload_plugin.EthereumGasEthgasstationSchema,
187
+ timestamp: 1668697958837
188
+ };
189
+ //# sourceMappingURL=index.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../../src/test/index.ts","../../../src/test/sampleBlocknativeGas.ts","../../../src/test/sampleEtherchainGasV2.ts","../../../src/test/sampleEtherscanGas.ts","../../../src/test/sampleEthersGas.ts","../../../src/test/sampleEthgasstationGas.ts"],"sourcesContent":["export * from './sampleBlocknativeGas'\nexport * from './sampleEtherchainGasV2'\nexport * from './sampleEtherscanGas'\nexport * from './sampleEthersGas'\nexport * from './sampleEthgasstationGas'\n","import { EstimatedBaseFee, EthereumGasBlocknativePayload, EthereumGasBlocknativeSchema } from '@xyo-network/blocknative-ethereum-gas-payload-plugin'\n\nexport const sampleBlocknativeGas: EthereumGasBlocknativePayload = {\n blockPrices: [\n {\n baseFeePerGas: 13.691764456,\n blockNumber: 16028191,\n estimatedPrices: [\n {\n confidence: 99,\n maxFeePerGas: 22.04,\n maxPriorityFeePerGas: 1.09,\n price: 14,\n },\n {\n confidence: 95,\n maxFeePerGas: 21.58,\n maxPriorityFeePerGas: 0.63,\n price: 14,\n },\n {\n confidence: 90,\n maxFeePerGas: 21.25,\n maxPriorityFeePerGas: 0.3,\n price: 13,\n },\n {\n confidence: 80,\n maxFeePerGas: 21.16,\n maxPriorityFeePerGas: 0.21,\n price: 13,\n },\n {\n confidence: 70,\n maxFeePerGas: 21.12,\n maxPriorityFeePerGas: 0.17,\n price: 13,\n },\n ],\n estimatedTransactionCount: 69,\n },\n ],\n currentBlockNumber: 16028190,\n estimatedBaseFees: [\n {\n 'pending+1': [\n {\n baseFee: 15.41,\n confidence: 99,\n },\n ],\n },\n {\n 'pending+2': [\n {\n baseFee: 17.32,\n confidence: 99,\n },\n ],\n },\n {\n 'pending+3': [\n {\n baseFee: 19.17,\n confidence: 99,\n },\n ],\n },\n {\n 'pending+4': [\n {\n baseFee: 20.12,\n confidence: 99,\n },\n ],\n },\n {\n 'pending+5': [\n {\n baseFee: 20.95,\n confidence: 99,\n },\n ],\n },\n ] as unknown as EstimatedBaseFee[],\n maxPrice: 36,\n msSinceLastBlock: 3643,\n network: 'main',\n schema: EthereumGasBlocknativeSchema,\n system: 'ethereum',\n timestamp: 1668697958837,\n unit: 'gwei',\n}\n","import { EthereumGasEtherchainV2Payload, EthereumGasEtherchainV2Schema } from '@xyo-network/etherchain-gas-ethereum-blockchain-payload-plugins'\n\nexport const sampleEtherchainGasV2: EthereumGasEtherchainV2Payload = {\n code: 200,\n data: {\n fast: 19803047330,\n priceUSD: 1195.77,\n rapid: 29714286170,\n slow: 11200000000,\n standard: 12000000000,\n timestamp: 1668621234096,\n },\n schema: EthereumGasEtherchainV2Schema,\n timestamp: 1668621240790,\n}\n","import { EthereumGasEtherscanPayload, EthereumGasEtherscanSchema } from '@xyo-network/etherscan-ethereum-gas-payload-plugin'\n\nexport const sampleEtherscanGas: EthereumGasEtherscanPayload = {\n message: 'OK',\n result: {\n FastGasPrice: '30',\n LastBlock: '15990556',\n ProposeGasPrice: '29',\n SafeGasPrice: '28',\n gasUsedRatio: '0.416266666666667,0.5672862,0.540979033333333,0.342410966666667,0.389071233333333',\n suggestBaseFee: '27.616709247',\n },\n schema: EthereumGasEtherscanSchema,\n status: '1',\n timestamp: 1668697958837,\n}\n","import { EthereumGasEthersPayload, EthereumGasEthersSchema } from '@xyo-network/ethers-ethereum-gas-payload-plugin'\n\nexport const sampleEthersGas: EthereumGasEthersPayload = {\n gasPrice: 13547863640,\n lastBaseFeePerGas: 13447862081,\n maxFeePerGas: 28395724162,\n maxPriorityFeePerGas: 1500000000,\n schema: EthereumGasEthersSchema,\n timestamp: 1668697958837,\n}\n","import { EthereumGasEthgasstationPayload, EthereumGasEthgasstationSchema } from '@xyo-network/ethgasstation-ethereum-gas-payload-plugin'\n\nexport const sampleEthgasstationGas: EthereumGasEthgasstationPayload = {\n baseFee: 10,\n blockNumber: 16028883,\n blockTime: 11.88,\n gasPrice: {\n fast: 12,\n instant: 13,\n standard: 12,\n },\n nextBaseFee: 10,\n priorityFee: {\n fast: 2,\n instant: 2,\n standard: 2,\n },\n schema: EthereumGasEthgasstationSchema,\n timestamp: 1668697958837,\n}\n"],"mappings":"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","names":[]}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/test/index.ts"],"names":[],"mappings":"AAAA,cAAc,wBAAwB,CAAA;AACtC,cAAc,yBAAyB,CAAA;AACvC,cAAc,sBAAsB,CAAA;AACpC,cAAc,mBAAmB,CAAA;AACjC,cAAc,0BAA0B,CAAA"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/test/index.ts"],"names":[],"mappings":"AAAA,cAAc,wBAAwB,CAAA;AACtC,cAAc,yBAAyB,CAAA;AACvC,cAAc,sBAAsB,CAAA;AACpC,cAAc,mBAAmB,CAAA;AACjC,cAAc,0BAA0B,CAAA"}
@@ -0,0 +1,166 @@
1
+ // src/test/sampleBlocknativeGas.ts
2
+ import { EthereumGasBlocknativeSchema } from "@xyo-network/blocknative-ethereum-gas-payload-plugin";
3
+ var sampleBlocknativeGas = {
4
+ blockPrices: [
5
+ {
6
+ baseFeePerGas: 13.691764456,
7
+ blockNumber: 16028191,
8
+ estimatedPrices: [
9
+ {
10
+ confidence: 99,
11
+ maxFeePerGas: 22.04,
12
+ maxPriorityFeePerGas: 1.09,
13
+ price: 14
14
+ },
15
+ {
16
+ confidence: 95,
17
+ maxFeePerGas: 21.58,
18
+ maxPriorityFeePerGas: 0.63,
19
+ price: 14
20
+ },
21
+ {
22
+ confidence: 90,
23
+ maxFeePerGas: 21.25,
24
+ maxPriorityFeePerGas: 0.3,
25
+ price: 13
26
+ },
27
+ {
28
+ confidence: 80,
29
+ maxFeePerGas: 21.16,
30
+ maxPriorityFeePerGas: 0.21,
31
+ price: 13
32
+ },
33
+ {
34
+ confidence: 70,
35
+ maxFeePerGas: 21.12,
36
+ maxPriorityFeePerGas: 0.17,
37
+ price: 13
38
+ }
39
+ ],
40
+ estimatedTransactionCount: 69
41
+ }
42
+ ],
43
+ currentBlockNumber: 16028190,
44
+ estimatedBaseFees: [
45
+ {
46
+ "pending+1": [
47
+ {
48
+ baseFee: 15.41,
49
+ confidence: 99
50
+ }
51
+ ]
52
+ },
53
+ {
54
+ "pending+2": [
55
+ {
56
+ baseFee: 17.32,
57
+ confidence: 99
58
+ }
59
+ ]
60
+ },
61
+ {
62
+ "pending+3": [
63
+ {
64
+ baseFee: 19.17,
65
+ confidence: 99
66
+ }
67
+ ]
68
+ },
69
+ {
70
+ "pending+4": [
71
+ {
72
+ baseFee: 20.12,
73
+ confidence: 99
74
+ }
75
+ ]
76
+ },
77
+ {
78
+ "pending+5": [
79
+ {
80
+ baseFee: 20.95,
81
+ confidence: 99
82
+ }
83
+ ]
84
+ }
85
+ ],
86
+ maxPrice: 36,
87
+ msSinceLastBlock: 3643,
88
+ network: "main",
89
+ schema: EthereumGasBlocknativeSchema,
90
+ system: "ethereum",
91
+ timestamp: 1668697958837,
92
+ unit: "gwei"
93
+ };
94
+
95
+ // src/test/sampleEtherchainGasV2.ts
96
+ import { EthereumGasEtherchainV2Schema } from "@xyo-network/etherchain-gas-ethereum-blockchain-payload-plugins";
97
+ var sampleEtherchainGasV2 = {
98
+ code: 200,
99
+ data: {
100
+ fast: 19803047330,
101
+ priceUSD: 1195.77,
102
+ rapid: 29714286170,
103
+ slow: 112e8,
104
+ standard: 12e9,
105
+ timestamp: 1668621234096
106
+ },
107
+ schema: EthereumGasEtherchainV2Schema,
108
+ timestamp: 1668621240790
109
+ };
110
+
111
+ // src/test/sampleEtherscanGas.ts
112
+ import { EthereumGasEtherscanSchema } from "@xyo-network/etherscan-ethereum-gas-payload-plugin";
113
+ var sampleEtherscanGas = {
114
+ message: "OK",
115
+ result: {
116
+ FastGasPrice: "30",
117
+ LastBlock: "15990556",
118
+ ProposeGasPrice: "29",
119
+ SafeGasPrice: "28",
120
+ gasUsedRatio: "0.416266666666667,0.5672862,0.540979033333333,0.342410966666667,0.389071233333333",
121
+ suggestBaseFee: "27.616709247"
122
+ },
123
+ schema: EthereumGasEtherscanSchema,
124
+ status: "1",
125
+ timestamp: 1668697958837
126
+ };
127
+
128
+ // src/test/sampleEthersGas.ts
129
+ import { EthereumGasEthersSchema } from "@xyo-network/ethers-ethereum-gas-payload-plugin";
130
+ var sampleEthersGas = {
131
+ gasPrice: 13547863640,
132
+ lastBaseFeePerGas: 13447862081,
133
+ maxFeePerGas: 28395724162,
134
+ maxPriorityFeePerGas: 15e8,
135
+ schema: EthereumGasEthersSchema,
136
+ timestamp: 1668697958837
137
+ };
138
+
139
+ // src/test/sampleEthgasstationGas.ts
140
+ import { EthereumGasEthgasstationSchema } from "@xyo-network/ethgasstation-ethereum-gas-payload-plugin";
141
+ var sampleEthgasstationGas = {
142
+ baseFee: 10,
143
+ blockNumber: 16028883,
144
+ blockTime: 11.88,
145
+ gasPrice: {
146
+ fast: 12,
147
+ instant: 13,
148
+ standard: 12
149
+ },
150
+ nextBaseFee: 10,
151
+ priorityFee: {
152
+ fast: 2,
153
+ instant: 2,
154
+ standard: 2
155
+ },
156
+ schema: EthereumGasEthgasstationSchema,
157
+ timestamp: 1668697958837
158
+ };
159
+ export {
160
+ sampleBlocknativeGas,
161
+ sampleEtherchainGasV2,
162
+ sampleEthersGas,
163
+ sampleEtherscanGas,
164
+ sampleEthgasstationGas
165
+ };
166
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../../src/test/sampleBlocknativeGas.ts","../../../src/test/sampleEtherchainGasV2.ts","../../../src/test/sampleEtherscanGas.ts","../../../src/test/sampleEthersGas.ts","../../../src/test/sampleEthgasstationGas.ts"],"sourcesContent":["import { EstimatedBaseFee, EthereumGasBlocknativePayload, EthereumGasBlocknativeSchema } from '@xyo-network/blocknative-ethereum-gas-payload-plugin'\n\nexport const sampleBlocknativeGas: EthereumGasBlocknativePayload = {\n blockPrices: [\n {\n baseFeePerGas: 13.691764456,\n blockNumber: 16028191,\n estimatedPrices: [\n {\n confidence: 99,\n maxFeePerGas: 22.04,\n maxPriorityFeePerGas: 1.09,\n price: 14,\n },\n {\n confidence: 95,\n maxFeePerGas: 21.58,\n maxPriorityFeePerGas: 0.63,\n price: 14,\n },\n {\n confidence: 90,\n maxFeePerGas: 21.25,\n maxPriorityFeePerGas: 0.3,\n price: 13,\n },\n {\n confidence: 80,\n maxFeePerGas: 21.16,\n maxPriorityFeePerGas: 0.21,\n price: 13,\n },\n {\n confidence: 70,\n maxFeePerGas: 21.12,\n maxPriorityFeePerGas: 0.17,\n price: 13,\n },\n ],\n estimatedTransactionCount: 69,\n },\n ],\n currentBlockNumber: 16028190,\n estimatedBaseFees: [\n {\n 'pending+1': [\n {\n baseFee: 15.41,\n confidence: 99,\n },\n ],\n },\n {\n 'pending+2': [\n {\n baseFee: 17.32,\n confidence: 99,\n },\n ],\n },\n {\n 'pending+3': [\n {\n baseFee: 19.17,\n confidence: 99,\n },\n ],\n },\n {\n 'pending+4': [\n {\n baseFee: 20.12,\n confidence: 99,\n },\n ],\n },\n {\n 'pending+5': [\n {\n baseFee: 20.95,\n confidence: 99,\n },\n ],\n },\n ] as unknown as EstimatedBaseFee[],\n maxPrice: 36,\n msSinceLastBlock: 3643,\n network: 'main',\n schema: EthereumGasBlocknativeSchema,\n system: 'ethereum',\n timestamp: 1668697958837,\n unit: 'gwei',\n}\n","import { EthereumGasEtherchainV2Payload, EthereumGasEtherchainV2Schema } from '@xyo-network/etherchain-gas-ethereum-blockchain-payload-plugins'\n\nexport const sampleEtherchainGasV2: EthereumGasEtherchainV2Payload = {\n code: 200,\n data: {\n fast: 19803047330,\n priceUSD: 1195.77,\n rapid: 29714286170,\n slow: 11200000000,\n standard: 12000000000,\n timestamp: 1668621234096,\n },\n schema: EthereumGasEtherchainV2Schema,\n timestamp: 1668621240790,\n}\n","import { EthereumGasEtherscanPayload, EthereumGasEtherscanSchema } from '@xyo-network/etherscan-ethereum-gas-payload-plugin'\n\nexport const sampleEtherscanGas: EthereumGasEtherscanPayload = {\n message: 'OK',\n result: {\n FastGasPrice: '30',\n LastBlock: '15990556',\n ProposeGasPrice: '29',\n SafeGasPrice: '28',\n gasUsedRatio: '0.416266666666667,0.5672862,0.540979033333333,0.342410966666667,0.389071233333333',\n suggestBaseFee: '27.616709247',\n },\n schema: EthereumGasEtherscanSchema,\n status: '1',\n timestamp: 1668697958837,\n}\n","import { EthereumGasEthersPayload, EthereumGasEthersSchema } from '@xyo-network/ethers-ethereum-gas-payload-plugin'\n\nexport const sampleEthersGas: EthereumGasEthersPayload = {\n gasPrice: 13547863640,\n lastBaseFeePerGas: 13447862081,\n maxFeePerGas: 28395724162,\n maxPriorityFeePerGas: 1500000000,\n schema: EthereumGasEthersSchema,\n timestamp: 1668697958837,\n}\n","import { EthereumGasEthgasstationPayload, EthereumGasEthgasstationSchema } from '@xyo-network/ethgasstation-ethereum-gas-payload-plugin'\n\nexport const sampleEthgasstationGas: EthereumGasEthgasstationPayload = {\n baseFee: 10,\n blockNumber: 16028883,\n blockTime: 11.88,\n gasPrice: {\n fast: 12,\n instant: 13,\n standard: 12,\n },\n nextBaseFee: 10,\n priorityFee: {\n fast: 2,\n instant: 2,\n standard: 2,\n },\n schema: EthereumGasEthgasstationSchema,\n timestamp: 1668697958837,\n}\n"],"mappings":"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","names":[]}