@xyo-network/gas-price-plugin 2.74.5 → 2.75.2

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 (554) 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.cts.map +1 -0
  4. package/dist/browser/Diviner.d.mts.map +1 -0
  5. package/dist/browser/Diviner.d.ts +16 -0
  6. package/dist/browser/Diviner.d.ts.map +1 -0
  7. package/dist/browser/Diviner.js +16 -0
  8. package/dist/browser/Diviner.js.map +1 -0
  9. package/dist/browser/Plugin.cjs +272 -0
  10. package/dist/browser/Plugin.cjs.map +1 -0
  11. package/dist/browser/Plugin.d.cts.map +1 -0
  12. package/dist/browser/Plugin.d.mts.map +1 -0
  13. package/dist/browser/Plugin.d.ts +50 -0
  14. package/dist/browser/Plugin.d.ts.map +1 -0
  15. package/dist/browser/Plugin.js +16 -0
  16. package/dist/browser/Plugin.js.map +1 -0
  17. package/dist/browser/Schema.cjs +29 -0
  18. package/dist/browser/Schema.cjs.map +1 -0
  19. package/dist/browser/Schema.d.cts.map +1 -0
  20. package/dist/browser/Schema.d.mts.map +1 -0
  21. package/dist/browser/Schema.d.ts +5 -0
  22. package/dist/browser/Schema.d.ts.map +1 -0
  23. package/dist/browser/Schema.js +7 -0
  24. package/dist/browser/Schema.js.map +1 -0
  25. package/dist/{index.js → browser/index.cjs} +1 -8
  26. package/dist/browser/index.cjs.map +1 -0
  27. package/dist/browser/index.d.cts.map +1 -0
  28. package/dist/browser/index.d.mts.map +1 -0
  29. package/dist/browser/index.d.ts +6 -0
  30. package/dist/browser/index.d.ts.map +1 -0
  31. package/dist/browser/index.js +9 -0
  32. package/dist/browser/index.js.map +1 -0
  33. package/dist/browser/lib/average.cjs +50 -0
  34. package/dist/browser/lib/average.cjs.map +1 -0
  35. package/dist/browser/lib/average.d.cts.map +1 -0
  36. package/dist/browser/lib/average.d.mts.map +1 -0
  37. package/dist/browser/lib/average.d.ts +8 -0
  38. package/dist/browser/lib/average.d.ts.map +1 -0
  39. package/dist/browser/lib/average.js +28 -0
  40. package/dist/browser/lib/average.js.map +1 -0
  41. package/dist/browser/lib/divineGas.cjs +240 -0
  42. package/dist/browser/lib/divineGas.cjs.map +1 -0
  43. package/dist/browser/lib/divineGas.d.cts.map +1 -0
  44. package/dist/browser/lib/divineGas.d.mts.map +1 -0
  45. package/dist/browser/lib/divineGas.d.ts +4 -0
  46. package/dist/browser/lib/divineGas.d.ts.map +1 -0
  47. package/dist/browser/lib/divineGas.js +33 -0
  48. package/dist/browser/lib/divineGas.js.map +1 -0
  49. package/dist/browser/lib/identities/index.cjs +60 -0
  50. package/dist/browser/lib/identities/index.cjs.map +1 -0
  51. package/dist/browser/lib/identities/index.d.cts.map +1 -0
  52. package/dist/browser/lib/identities/index.d.mts.map +1 -0
  53. package/dist/browser/lib/identities/index.d.ts +6 -0
  54. package/dist/browser/lib/identities/index.d.ts.map +1 -0
  55. package/dist/browser/lib/identities/index.js +6 -0
  56. package/dist/browser/lib/identities/index.js.map +1 -0
  57. package/dist/browser/lib/identities/isEthereumGasBlocknativePayload.cjs +30 -0
  58. package/dist/browser/lib/identities/isEthereumGasBlocknativePayload.cjs.map +1 -0
  59. package/dist/browser/lib/identities/isEthereumGasBlocknativePayload.d.cts.map +1 -0
  60. package/dist/browser/lib/identities/isEthereumGasBlocknativePayload.d.mts.map +1 -0
  61. package/dist/browser/lib/identities/isEthereumGasBlocknativePayload.d.ts +6 -0
  62. package/dist/browser/lib/identities/isEthereumGasBlocknativePayload.d.ts.map +1 -0
  63. package/dist/browser/lib/identities/isEthereumGasBlocknativePayload.js +8 -0
  64. package/dist/browser/lib/identities/isEthereumGasBlocknativePayload.js.map +1 -0
  65. package/dist/browser/lib/identities/isEthereumGasEtherchainV2Payload.cjs +30 -0
  66. package/dist/browser/lib/identities/isEthereumGasEtherchainV2Payload.cjs.map +1 -0
  67. package/dist/browser/lib/identities/isEthereumGasEtherchainV2Payload.d.cts.map +1 -0
  68. package/dist/browser/lib/identities/isEthereumGasEtherchainV2Payload.d.mts.map +1 -0
  69. package/dist/browser/lib/identities/isEthereumGasEtherchainV2Payload.d.ts +6 -0
  70. package/dist/browser/lib/identities/isEthereumGasEtherchainV2Payload.d.ts.map +1 -0
  71. package/dist/browser/lib/identities/isEthereumGasEtherchainV2Payload.js +8 -0
  72. package/dist/browser/lib/identities/isEthereumGasEtherchainV2Payload.js.map +1 -0
  73. package/dist/browser/lib/identities/isEthereumGasEthersPayload.cjs +30 -0
  74. package/dist/browser/lib/identities/isEthereumGasEthersPayload.cjs.map +1 -0
  75. package/dist/browser/lib/identities/isEthereumGasEthersPayload.d.cts.map +1 -0
  76. package/dist/browser/lib/identities/isEthereumGasEthersPayload.d.mts.map +1 -0
  77. package/dist/browser/lib/identities/isEthereumGasEthersPayload.d.ts +6 -0
  78. package/dist/browser/lib/identities/isEthereumGasEthersPayload.d.ts.map +1 -0
  79. package/dist/browser/lib/identities/isEthereumGasEthersPayload.js +8 -0
  80. package/dist/browser/lib/identities/isEthereumGasEthersPayload.js.map +1 -0
  81. package/dist/browser/lib/identities/isEthereumGasEtherscanPayload.cjs +30 -0
  82. package/dist/browser/lib/identities/isEthereumGasEtherscanPayload.cjs.map +1 -0
  83. package/dist/browser/lib/identities/isEthereumGasEtherscanPayload.d.cts.map +1 -0
  84. package/dist/browser/lib/identities/isEthereumGasEtherscanPayload.d.mts.map +1 -0
  85. package/dist/browser/lib/identities/isEthereumGasEtherscanPayload.d.ts +6 -0
  86. package/dist/browser/lib/identities/isEthereumGasEtherscanPayload.d.ts.map +1 -0
  87. package/dist/browser/lib/identities/isEthereumGasEtherscanPayload.js +8 -0
  88. package/dist/browser/lib/identities/isEthereumGasEtherscanPayload.js.map +1 -0
  89. package/dist/browser/lib/identities/isEthereumGasEthgasstationPayload.cjs +30 -0
  90. package/dist/browser/lib/identities/isEthereumGasEthgasstationPayload.cjs.map +1 -0
  91. package/dist/browser/lib/identities/isEthereumGasEthgasstationPayload.d.cts.map +1 -0
  92. package/dist/browser/lib/identities/isEthereumGasEthgasstationPayload.d.mts.map +1 -0
  93. package/dist/browser/lib/identities/isEthereumGasEthgasstationPayload.d.ts +6 -0
  94. package/dist/browser/lib/identities/isEthereumGasEthgasstationPayload.d.ts.map +1 -0
  95. package/dist/browser/lib/identities/isEthereumGasEthgasstationPayload.js +8 -0
  96. package/dist/browser/lib/identities/isEthereumGasEthgasstationPayload.js.map +1 -0
  97. package/dist/browser/lib/index.cjs +242 -0
  98. package/dist/browser/lib/index.cjs.map +1 -0
  99. package/dist/browser/lib/index.d.cts.map +1 -0
  100. package/dist/browser/lib/index.d.mts.map +1 -0
  101. package/dist/browser/lib/index.d.ts +2 -0
  102. package/dist/browser/lib/index.d.ts.map +1 -0
  103. package/dist/browser/lib/index.js +2 -0
  104. package/dist/browser/lib/index.js.map +1 -0
  105. package/dist/browser/lib/transforms/index.cjs +172 -0
  106. package/dist/browser/lib/transforms/index.cjs.map +1 -0
  107. package/dist/browser/lib/transforms/index.d.cts.map +1 -0
  108. package/dist/browser/lib/transforms/index.d.mts.map +1 -0
  109. package/dist/browser/lib/transforms/index.d.ts +6 -0
  110. package/dist/browser/lib/transforms/index.d.ts.map +1 -0
  111. package/dist/browser/lib/transforms/index.js +6 -0
  112. package/dist/browser/lib/transforms/index.js.map +1 -0
  113. package/dist/browser/lib/transforms/transformGasFromBlocknative.cjs +70 -0
  114. package/dist/browser/lib/transforms/transformGasFromBlocknative.cjs.map +1 -0
  115. package/dist/browser/lib/transforms/transformGasFromBlocknative.d.cts.map +1 -0
  116. package/dist/browser/lib/transforms/transformGasFromBlocknative.d.mts.map +1 -0
  117. package/dist/browser/lib/transforms/transformGasFromBlocknative.d.ts +4 -0
  118. package/dist/browser/lib/transforms/transformGasFromBlocknative.d.ts.map +1 -0
  119. package/dist/browser/lib/transforms/transformGasFromBlocknative.js +48 -0
  120. package/dist/browser/lib/transforms/transformGasFromBlocknative.js.map +1 -0
  121. package/dist/browser/lib/transforms/transformGasFromEtherchainV2.cjs +40 -0
  122. package/dist/browser/lib/transforms/transformGasFromEtherchainV2.cjs.map +1 -0
  123. package/dist/browser/lib/transforms/transformGasFromEtherchainV2.d.cts.map +1 -0
  124. package/dist/browser/lib/transforms/transformGasFromEtherchainV2.d.mts.map +1 -0
  125. package/dist/browser/lib/transforms/transformGasFromEtherchainV2.d.ts +4 -0
  126. package/dist/browser/lib/transforms/transformGasFromEtherchainV2.d.ts.map +1 -0
  127. package/dist/browser/lib/transforms/transformGasFromEtherchainV2.js +18 -0
  128. package/dist/browser/lib/transforms/transformGasFromEtherchainV2.js.map +1 -0
  129. package/dist/browser/lib/transforms/transformGasFromEthers.cjs +46 -0
  130. package/dist/browser/lib/transforms/transformGasFromEthers.cjs.map +1 -0
  131. package/dist/browser/lib/transforms/transformGasFromEthers.d.cts.map +1 -0
  132. package/dist/browser/lib/transforms/transformGasFromEthers.d.mts.map +1 -0
  133. package/dist/browser/lib/transforms/transformGasFromEthers.d.ts +4 -0
  134. package/dist/browser/lib/transforms/transformGasFromEthers.d.ts.map +1 -0
  135. package/dist/browser/lib/transforms/transformGasFromEthers.js +24 -0
  136. package/dist/browser/lib/transforms/transformGasFromEthers.js.map +1 -0
  137. package/dist/browser/lib/transforms/transformGasFromEtherscan.cjs +49 -0
  138. package/dist/browser/lib/transforms/transformGasFromEtherscan.cjs.map +1 -0
  139. package/dist/browser/lib/transforms/transformGasFromEtherscan.d.cts.map +1 -0
  140. package/dist/browser/lib/transforms/transformGasFromEtherscan.d.mts.map +1 -0
  141. package/dist/browser/lib/transforms/transformGasFromEtherscan.d.ts +4 -0
  142. package/dist/browser/lib/transforms/transformGasFromEtherscan.d.ts.map +1 -0
  143. package/dist/browser/lib/transforms/transformGasFromEtherscan.js +27 -0
  144. package/dist/browser/lib/transforms/transformGasFromEtherscan.js.map +1 -0
  145. package/dist/browser/lib/transforms/transformGasFromEthgasstation.cjs +57 -0
  146. package/dist/browser/lib/transforms/transformGasFromEthgasstation.cjs.map +1 -0
  147. package/dist/browser/lib/transforms/transformGasFromEthgasstation.d.cts.map +1 -0
  148. package/dist/browser/lib/transforms/transformGasFromEthgasstation.d.mts.map +1 -0
  149. package/dist/browser/lib/transforms/transformGasFromEthgasstation.d.ts +4 -0
  150. package/dist/browser/lib/transforms/transformGasFromEthgasstation.d.ts.map +1 -0
  151. package/dist/browser/lib/transforms/transformGasFromEthgasstation.js +35 -0
  152. package/dist/browser/lib/transforms/transformGasFromEthgasstation.js.map +1 -0
  153. package/dist/browser/test/index.cjs +189 -0
  154. package/dist/browser/test/index.cjs.map +1 -0
  155. package/dist/browser/test/index.d.cts.map +1 -0
  156. package/dist/browser/test/index.d.mts.map +1 -0
  157. package/dist/browser/test/index.d.ts +6 -0
  158. package/dist/browser/test/index.d.ts.map +1 -0
  159. package/dist/browser/test/index.js +6 -0
  160. package/dist/browser/test/index.js.map +1 -0
  161. package/dist/browser/test/sampleBlocknativeGas.cjs +118 -0
  162. package/dist/browser/test/sampleBlocknativeGas.cjs.map +1 -0
  163. package/dist/browser/test/sampleBlocknativeGas.d.cts.map +1 -0
  164. package/dist/browser/test/sampleBlocknativeGas.d.mts.map +1 -0
  165. package/dist/browser/test/sampleBlocknativeGas.d.ts +3 -0
  166. package/dist/browser/test/sampleBlocknativeGas.d.ts.map +1 -0
  167. package/dist/browser/test/sampleBlocknativeGas.js +96 -0
  168. package/dist/browser/test/sampleBlocknativeGas.js.map +1 -0
  169. package/dist/browser/test/sampleEtherchainGasV2.cjs +40 -0
  170. package/dist/browser/test/sampleEtherchainGasV2.cjs.map +1 -0
  171. package/dist/browser/test/sampleEtherchainGasV2.d.cts.map +1 -0
  172. package/dist/browser/test/sampleEtherchainGasV2.d.mts.map +1 -0
  173. package/dist/browser/test/sampleEtherchainGasV2.d.ts +3 -0
  174. package/dist/browser/test/sampleEtherchainGasV2.d.ts.map +1 -0
  175. package/dist/browser/test/sampleEtherchainGasV2.js +18 -0
  176. package/dist/browser/test/sampleEtherchainGasV2.js.map +1 -0
  177. package/dist/browser/test/sampleEthersGas.cjs +35 -0
  178. package/dist/browser/test/sampleEthersGas.cjs.map +1 -0
  179. package/dist/browser/test/sampleEthersGas.d.cts.map +1 -0
  180. package/dist/browser/test/sampleEthersGas.d.mts.map +1 -0
  181. package/dist/browser/test/sampleEthersGas.d.ts +3 -0
  182. package/dist/browser/test/sampleEthersGas.d.ts.map +1 -0
  183. package/dist/browser/test/sampleEthersGas.js +13 -0
  184. package/dist/browser/test/sampleEthersGas.js.map +1 -0
  185. package/dist/browser/test/sampleEtherscanGas.cjs +41 -0
  186. package/dist/browser/test/sampleEtherscanGas.cjs.map +1 -0
  187. package/dist/browser/test/sampleEtherscanGas.d.cts.map +1 -0
  188. package/dist/browser/test/sampleEtherscanGas.d.mts.map +1 -0
  189. package/dist/browser/test/sampleEtherscanGas.d.ts +3 -0
  190. package/dist/browser/test/sampleEtherscanGas.d.ts.map +1 -0
  191. package/dist/browser/test/sampleEtherscanGas.js +19 -0
  192. package/dist/browser/test/sampleEtherscanGas.js.map +1 -0
  193. package/dist/browser/test/sampleEthgasstationGas.cjs +45 -0
  194. package/dist/browser/test/sampleEthgasstationGas.cjs.map +1 -0
  195. package/dist/browser/test/sampleEthgasstationGas.d.cts.map +1 -0
  196. package/dist/browser/test/sampleEthgasstationGas.d.mts.map +1 -0
  197. package/dist/browser/test/sampleEthgasstationGas.d.ts +3 -0
  198. package/dist/browser/test/sampleEthgasstationGas.d.ts.map +1 -0
  199. package/dist/browser/test/sampleEthgasstationGas.js +23 -0
  200. package/dist/browser/test/sampleEthgasstationGas.js.map +1 -0
  201. package/dist/docs.json +534 -534
  202. package/dist/node/Diviner.d.cts +16 -0
  203. package/dist/node/Diviner.d.cts.map +1 -0
  204. package/dist/node/Diviner.d.mts +16 -0
  205. package/dist/node/Diviner.d.mts.map +1 -0
  206. package/dist/node/Diviner.d.ts +16 -0
  207. package/dist/node/Diviner.d.ts.map +1 -0
  208. package/dist/node/Diviner.js +264 -0
  209. package/dist/node/Diviner.js.map +1 -0
  210. package/dist/node/Diviner.mjs +239 -0
  211. package/dist/node/Diviner.mjs.map +1 -0
  212. package/dist/node/Plugin.d.cts +50 -0
  213. package/dist/node/Plugin.d.cts.map +1 -0
  214. package/dist/node/Plugin.d.mts +50 -0
  215. package/dist/node/Plugin.d.mts.map +1 -0
  216. package/dist/node/Plugin.d.ts +50 -0
  217. package/dist/node/Plugin.d.ts.map +1 -0
  218. package/dist/node/Plugin.js +279 -0
  219. package/dist/node/Plugin.js.map +1 -0
  220. package/dist/node/Plugin.mjs +254 -0
  221. package/dist/node/Plugin.mjs.map +1 -0
  222. package/dist/node/Schema.d.cts +5 -0
  223. package/dist/node/Schema.d.cts.map +1 -0
  224. package/dist/node/Schema.d.mts +5 -0
  225. package/dist/node/Schema.d.mts.map +1 -0
  226. package/dist/node/Schema.d.ts +5 -0
  227. package/dist/node/Schema.d.ts.map +1 -0
  228. package/dist/node/Schema.js +34 -0
  229. package/dist/node/Schema.js.map +1 -0
  230. package/dist/node/Schema.mjs +8 -0
  231. package/dist/node/Schema.mjs.map +1 -0
  232. package/dist/node/index.d.cts +6 -0
  233. package/dist/node/index.d.cts.map +1 -0
  234. package/dist/node/index.d.mts +6 -0
  235. package/dist/node/index.d.mts.map +1 -0
  236. package/dist/node/index.d.ts +6 -0
  237. package/dist/node/index.d.ts.map +1 -0
  238. package/dist/node/index.js +292 -0
  239. package/dist/node/index.js.map +1 -0
  240. package/dist/{index.mjs → node/index.mjs} +23 -20
  241. package/dist/node/index.mjs.map +1 -0
  242. package/dist/node/lib/average.d.cts +8 -0
  243. package/dist/node/lib/average.d.cts.map +1 -0
  244. package/dist/node/lib/average.d.mts +8 -0
  245. package/dist/node/lib/average.d.mts.map +1 -0
  246. package/dist/node/lib/average.d.ts +8 -0
  247. package/dist/node/lib/average.d.ts.map +1 -0
  248. package/dist/node/lib/average.js +54 -0
  249. package/dist/node/lib/average.js.map +1 -0
  250. package/dist/node/lib/average.mjs +29 -0
  251. package/dist/node/lib/average.mjs.map +1 -0
  252. package/dist/node/lib/divineGas.d.cts +4 -0
  253. package/dist/node/lib/divineGas.d.cts.map +1 -0
  254. package/dist/node/lib/divineGas.d.mts +4 -0
  255. package/dist/node/lib/divineGas.d.mts.map +1 -0
  256. package/dist/node/lib/divineGas.d.ts +4 -0
  257. package/dist/node/lib/divineGas.d.ts.map +1 -0
  258. package/dist/node/lib/divineGas.js +247 -0
  259. package/dist/node/lib/divineGas.js.map +1 -0
  260. package/dist/node/lib/divineGas.mjs +222 -0
  261. package/dist/node/lib/divineGas.mjs.map +1 -0
  262. package/dist/node/lib/identities/index.d.cts +6 -0
  263. package/dist/node/lib/identities/index.d.cts.map +1 -0
  264. package/dist/node/lib/identities/index.d.mts +6 -0
  265. package/dist/node/lib/identities/index.d.mts.map +1 -0
  266. package/dist/node/lib/identities/index.d.ts +6 -0
  267. package/dist/node/lib/identities/index.d.ts.map +1 -0
  268. package/dist/node/lib/identities/index.js +68 -0
  269. package/dist/node/lib/identities/index.js.map +1 -0
  270. package/dist/node/lib/identities/index.mjs +37 -0
  271. package/dist/node/lib/identities/index.mjs.map +1 -0
  272. package/dist/node/lib/identities/isEthereumGasBlocknativePayload.d.cts +6 -0
  273. package/dist/node/lib/identities/isEthereumGasBlocknativePayload.d.cts.map +1 -0
  274. package/dist/node/lib/identities/isEthereumGasBlocknativePayload.d.mts +6 -0
  275. package/dist/node/lib/identities/isEthereumGasBlocknativePayload.d.mts.map +1 -0
  276. package/dist/node/lib/identities/isEthereumGasBlocknativePayload.d.ts +6 -0
  277. package/dist/node/lib/identities/isEthereumGasBlocknativePayload.d.ts.map +1 -0
  278. package/dist/node/lib/identities/isEthereumGasBlocknativePayload.js +34 -0
  279. package/dist/node/lib/identities/isEthereumGasBlocknativePayload.js.map +1 -0
  280. package/dist/node/lib/identities/isEthereumGasBlocknativePayload.mjs +9 -0
  281. package/dist/node/lib/identities/isEthereumGasBlocknativePayload.mjs.map +1 -0
  282. package/dist/node/lib/identities/isEthereumGasEtherchainV2Payload.d.cts +6 -0
  283. package/dist/node/lib/identities/isEthereumGasEtherchainV2Payload.d.cts.map +1 -0
  284. package/dist/node/lib/identities/isEthereumGasEtherchainV2Payload.d.mts +6 -0
  285. package/dist/node/lib/identities/isEthereumGasEtherchainV2Payload.d.mts.map +1 -0
  286. package/dist/node/lib/identities/isEthereumGasEtherchainV2Payload.d.ts +6 -0
  287. package/dist/node/lib/identities/isEthereumGasEtherchainV2Payload.d.ts.map +1 -0
  288. package/dist/node/lib/identities/isEthereumGasEtherchainV2Payload.js +34 -0
  289. package/dist/node/lib/identities/isEthereumGasEtherchainV2Payload.js.map +1 -0
  290. package/dist/node/lib/identities/isEthereumGasEtherchainV2Payload.mjs +9 -0
  291. package/dist/node/lib/identities/isEthereumGasEtherchainV2Payload.mjs.map +1 -0
  292. package/dist/node/lib/identities/isEthereumGasEthersPayload.d.cts +6 -0
  293. package/dist/node/lib/identities/isEthereumGasEthersPayload.d.cts.map +1 -0
  294. package/dist/node/lib/identities/isEthereumGasEthersPayload.d.mts +6 -0
  295. package/dist/node/lib/identities/isEthereumGasEthersPayload.d.mts.map +1 -0
  296. package/dist/node/lib/identities/isEthereumGasEthersPayload.d.ts +6 -0
  297. package/dist/node/lib/identities/isEthereumGasEthersPayload.d.ts.map +1 -0
  298. package/dist/node/lib/identities/isEthereumGasEthersPayload.js +34 -0
  299. package/dist/node/lib/identities/isEthereumGasEthersPayload.js.map +1 -0
  300. package/dist/node/lib/identities/isEthereumGasEthersPayload.mjs +9 -0
  301. package/dist/node/lib/identities/isEthereumGasEthersPayload.mjs.map +1 -0
  302. package/dist/node/lib/identities/isEthereumGasEtherscanPayload.d.cts +6 -0
  303. package/dist/node/lib/identities/isEthereumGasEtherscanPayload.d.cts.map +1 -0
  304. package/dist/node/lib/identities/isEthereumGasEtherscanPayload.d.mts +6 -0
  305. package/dist/node/lib/identities/isEthereumGasEtherscanPayload.d.mts.map +1 -0
  306. package/dist/node/lib/identities/isEthereumGasEtherscanPayload.d.ts +6 -0
  307. package/dist/node/lib/identities/isEthereumGasEtherscanPayload.d.ts.map +1 -0
  308. package/dist/node/lib/identities/isEthereumGasEtherscanPayload.js +34 -0
  309. package/dist/node/lib/identities/isEthereumGasEtherscanPayload.js.map +1 -0
  310. package/dist/node/lib/identities/isEthereumGasEtherscanPayload.mjs +9 -0
  311. package/dist/node/lib/identities/isEthereumGasEtherscanPayload.mjs.map +1 -0
  312. package/dist/node/lib/identities/isEthereumGasEthgasstationPayload.d.cts +6 -0
  313. package/dist/node/lib/identities/isEthereumGasEthgasstationPayload.d.cts.map +1 -0
  314. package/dist/node/lib/identities/isEthereumGasEthgasstationPayload.d.mts +6 -0
  315. package/dist/node/lib/identities/isEthereumGasEthgasstationPayload.d.mts.map +1 -0
  316. package/dist/node/lib/identities/isEthereumGasEthgasstationPayload.d.ts +6 -0
  317. package/dist/node/lib/identities/isEthereumGasEthgasstationPayload.d.ts.map +1 -0
  318. package/dist/node/lib/identities/isEthereumGasEthgasstationPayload.js +34 -0
  319. package/dist/node/lib/identities/isEthereumGasEthgasstationPayload.js.map +1 -0
  320. package/dist/node/lib/identities/isEthereumGasEthgasstationPayload.mjs +9 -0
  321. package/dist/node/lib/identities/isEthereumGasEthgasstationPayload.mjs.map +1 -0
  322. package/dist/node/lib/index.d.cts +2 -0
  323. package/dist/node/lib/index.d.cts.map +1 -0
  324. package/dist/node/lib/index.d.mts +2 -0
  325. package/dist/node/lib/index.d.mts.map +1 -0
  326. package/dist/node/lib/index.d.ts +2 -0
  327. package/dist/node/lib/index.d.ts.map +1 -0
  328. package/dist/node/lib/index.js +249 -0
  329. package/dist/node/lib/index.js.map +1 -0
  330. package/dist/node/lib/index.mjs +222 -0
  331. package/dist/node/lib/index.mjs.map +1 -0
  332. package/dist/node/lib/transforms/index.d.cts +6 -0
  333. package/dist/node/lib/transforms/index.d.cts.map +1 -0
  334. package/dist/node/lib/transforms/index.d.mts +6 -0
  335. package/dist/node/lib/transforms/index.d.mts.map +1 -0
  336. package/dist/node/lib/transforms/index.d.ts +6 -0
  337. package/dist/node/lib/transforms/index.d.ts.map +1 -0
  338. package/dist/node/lib/transforms/index.js +183 -0
  339. package/dist/node/lib/transforms/index.js.map +1 -0
  340. package/dist/node/lib/transforms/index.mjs +152 -0
  341. package/dist/node/lib/transforms/index.mjs.map +1 -0
  342. package/dist/node/lib/transforms/transformGasFromBlocknative.d.cts +4 -0
  343. package/dist/node/lib/transforms/transformGasFromBlocknative.d.cts.map +1 -0
  344. package/dist/node/lib/transforms/transformGasFromBlocknative.d.mts +4 -0
  345. package/dist/node/lib/transforms/transformGasFromBlocknative.d.mts.map +1 -0
  346. package/dist/node/lib/transforms/transformGasFromBlocknative.d.ts +4 -0
  347. package/dist/node/lib/transforms/transformGasFromBlocknative.d.ts.map +1 -0
  348. package/dist/node/lib/transforms/transformGasFromBlocknative.js +77 -0
  349. package/dist/node/lib/transforms/transformGasFromBlocknative.js.map +1 -0
  350. package/dist/node/lib/transforms/transformGasFromBlocknative.mjs +52 -0
  351. package/dist/node/lib/transforms/transformGasFromBlocknative.mjs.map +1 -0
  352. package/dist/node/lib/transforms/transformGasFromEtherchainV2.d.cts +4 -0
  353. package/dist/node/lib/transforms/transformGasFromEtherchainV2.d.cts.map +1 -0
  354. package/dist/node/lib/transforms/transformGasFromEtherchainV2.d.mts +4 -0
  355. package/dist/node/lib/transforms/transformGasFromEtherchainV2.d.mts.map +1 -0
  356. package/dist/node/lib/transforms/transformGasFromEtherchainV2.d.ts +4 -0
  357. package/dist/node/lib/transforms/transformGasFromEtherchainV2.d.ts.map +1 -0
  358. package/dist/node/lib/transforms/transformGasFromEtherchainV2.js +44 -0
  359. package/dist/node/lib/transforms/transformGasFromEtherchainV2.js.map +1 -0
  360. package/dist/node/lib/transforms/transformGasFromEtherchainV2.mjs +19 -0
  361. package/dist/node/lib/transforms/transformGasFromEtherchainV2.mjs.map +1 -0
  362. package/dist/node/lib/transforms/transformGasFromEthers.d.cts +4 -0
  363. package/dist/node/lib/transforms/transformGasFromEthers.d.cts.map +1 -0
  364. package/dist/node/lib/transforms/transformGasFromEthers.d.mts +4 -0
  365. package/dist/node/lib/transforms/transformGasFromEthers.d.mts.map +1 -0
  366. package/dist/node/lib/transforms/transformGasFromEthers.d.ts +4 -0
  367. package/dist/node/lib/transforms/transformGasFromEthers.d.ts.map +1 -0
  368. package/dist/node/lib/transforms/transformGasFromEthers.js +50 -0
  369. package/dist/node/lib/transforms/transformGasFromEthers.js.map +1 -0
  370. package/dist/node/lib/transforms/transformGasFromEthers.mjs +25 -0
  371. package/dist/node/lib/transforms/transformGasFromEthers.mjs.map +1 -0
  372. package/dist/node/lib/transforms/transformGasFromEtherscan.d.cts +4 -0
  373. package/dist/node/lib/transforms/transformGasFromEtherscan.d.cts.map +1 -0
  374. package/dist/node/lib/transforms/transformGasFromEtherscan.d.mts +4 -0
  375. package/dist/node/lib/transforms/transformGasFromEtherscan.d.mts.map +1 -0
  376. package/dist/node/lib/transforms/transformGasFromEtherscan.d.ts +4 -0
  377. package/dist/node/lib/transforms/transformGasFromEtherscan.d.ts.map +1 -0
  378. package/dist/node/lib/transforms/transformGasFromEtherscan.js +53 -0
  379. package/dist/node/lib/transforms/transformGasFromEtherscan.js.map +1 -0
  380. package/dist/node/lib/transforms/transformGasFromEtherscan.mjs +28 -0
  381. package/dist/node/lib/transforms/transformGasFromEtherscan.mjs.map +1 -0
  382. package/dist/node/lib/transforms/transformGasFromEthgasstation.d.cts +4 -0
  383. package/dist/node/lib/transforms/transformGasFromEthgasstation.d.cts.map +1 -0
  384. package/dist/node/lib/transforms/transformGasFromEthgasstation.d.mts +4 -0
  385. package/dist/node/lib/transforms/transformGasFromEthgasstation.d.mts.map +1 -0
  386. package/dist/node/lib/transforms/transformGasFromEthgasstation.d.ts +4 -0
  387. package/dist/node/lib/transforms/transformGasFromEthgasstation.d.ts.map +1 -0
  388. package/dist/node/lib/transforms/transformGasFromEthgasstation.js +61 -0
  389. package/dist/node/lib/transforms/transformGasFromEthgasstation.js.map +1 -0
  390. package/dist/node/lib/transforms/transformGasFromEthgasstation.mjs +36 -0
  391. package/dist/node/lib/transforms/transformGasFromEthgasstation.mjs.map +1 -0
  392. package/dist/node/test/index.d.cts +6 -0
  393. package/dist/node/test/index.d.cts.map +1 -0
  394. package/dist/node/test/index.d.mts +6 -0
  395. package/dist/node/test/index.d.mts.map +1 -0
  396. package/dist/node/test/index.d.ts +6 -0
  397. package/dist/node/test/index.d.ts.map +1 -0
  398. package/dist/node/test/index.js +197 -0
  399. package/dist/node/test/index.js.map +1 -0
  400. package/dist/node/test/index.mjs +166 -0
  401. package/dist/node/test/index.mjs.map +1 -0
  402. package/dist/node/test/sampleBlocknativeGas.d.cts +3 -0
  403. package/dist/node/test/sampleBlocknativeGas.d.cts.map +1 -0
  404. package/dist/node/test/sampleBlocknativeGas.d.mts +3 -0
  405. package/dist/node/test/sampleBlocknativeGas.d.mts.map +1 -0
  406. package/dist/node/test/sampleBlocknativeGas.d.ts +3 -0
  407. package/dist/node/test/sampleBlocknativeGas.d.ts.map +1 -0
  408. package/dist/node/test/sampleBlocknativeGas.js +122 -0
  409. package/dist/node/test/sampleBlocknativeGas.js.map +1 -0
  410. package/dist/node/test/sampleBlocknativeGas.mjs +97 -0
  411. package/dist/node/test/sampleBlocknativeGas.mjs.map +1 -0
  412. package/dist/node/test/sampleEtherchainGasV2.d.cts +3 -0
  413. package/dist/node/test/sampleEtherchainGasV2.d.cts.map +1 -0
  414. package/dist/node/test/sampleEtherchainGasV2.d.mts +3 -0
  415. package/dist/node/test/sampleEtherchainGasV2.d.mts.map +1 -0
  416. package/dist/node/test/sampleEtherchainGasV2.d.ts +3 -0
  417. package/dist/node/test/sampleEtherchainGasV2.d.ts.map +1 -0
  418. package/dist/node/test/sampleEtherchainGasV2.js +44 -0
  419. package/dist/node/test/sampleEtherchainGasV2.js.map +1 -0
  420. package/dist/node/test/sampleEtherchainGasV2.mjs +19 -0
  421. package/dist/node/test/sampleEtherchainGasV2.mjs.map +1 -0
  422. package/dist/node/test/sampleEthersGas.d.cts +3 -0
  423. package/dist/node/test/sampleEthersGas.d.cts.map +1 -0
  424. package/dist/node/test/sampleEthersGas.d.mts +3 -0
  425. package/dist/node/test/sampleEthersGas.d.mts.map +1 -0
  426. package/dist/node/test/sampleEthersGas.d.ts +3 -0
  427. package/dist/node/test/sampleEthersGas.d.ts.map +1 -0
  428. package/dist/node/test/sampleEthersGas.js +39 -0
  429. package/dist/node/test/sampleEthersGas.js.map +1 -0
  430. package/dist/node/test/sampleEthersGas.mjs +14 -0
  431. package/dist/node/test/sampleEthersGas.mjs.map +1 -0
  432. package/dist/node/test/sampleEtherscanGas.d.cts +3 -0
  433. package/dist/node/test/sampleEtherscanGas.d.cts.map +1 -0
  434. package/dist/node/test/sampleEtherscanGas.d.mts +3 -0
  435. package/dist/node/test/sampleEtherscanGas.d.mts.map +1 -0
  436. package/dist/node/test/sampleEtherscanGas.d.ts +3 -0
  437. package/dist/node/test/sampleEtherscanGas.d.ts.map +1 -0
  438. package/dist/node/test/sampleEtherscanGas.js +45 -0
  439. package/dist/node/test/sampleEtherscanGas.js.map +1 -0
  440. package/dist/node/test/sampleEtherscanGas.mjs +20 -0
  441. package/dist/node/test/sampleEtherscanGas.mjs.map +1 -0
  442. package/dist/node/test/sampleEthgasstationGas.d.cts +3 -0
  443. package/dist/node/test/sampleEthgasstationGas.d.cts.map +1 -0
  444. package/dist/node/test/sampleEthgasstationGas.d.mts +3 -0
  445. package/dist/node/test/sampleEthgasstationGas.d.mts.map +1 -0
  446. package/dist/node/test/sampleEthgasstationGas.d.ts +3 -0
  447. package/dist/node/test/sampleEthgasstationGas.d.ts.map +1 -0
  448. package/dist/node/test/sampleEthgasstationGas.js +49 -0
  449. package/dist/node/test/sampleEthgasstationGas.js.map +1 -0
  450. package/dist/node/test/sampleEthgasstationGas.mjs +24 -0
  451. package/dist/node/test/sampleEthgasstationGas.mjs.map +1 -0
  452. package/package.json +39 -36
  453. package/dist/Diviner.d.mts.map +0 -1
  454. package/dist/Diviner.d.ts.map +0 -1
  455. package/dist/Plugin.d.mts.map +0 -1
  456. package/dist/Plugin.d.ts.map +0 -1
  457. package/dist/Schema.d.mts.map +0 -1
  458. package/dist/Schema.d.ts.map +0 -1
  459. package/dist/index.d.mts.map +0 -1
  460. package/dist/index.d.ts.map +0 -1
  461. package/dist/index.js.map +0 -1
  462. package/dist/index.mjs.map +0 -1
  463. package/dist/lib/average.d.mts.map +0 -1
  464. package/dist/lib/average.d.ts.map +0 -1
  465. package/dist/lib/divineGas.d.mts.map +0 -1
  466. package/dist/lib/divineGas.d.ts.map +0 -1
  467. package/dist/lib/identities/index.d.mts.map +0 -1
  468. package/dist/lib/identities/index.d.ts.map +0 -1
  469. package/dist/lib/identities/isEthereumGasBlocknativePayload.d.mts.map +0 -1
  470. package/dist/lib/identities/isEthereumGasBlocknativePayload.d.ts.map +0 -1
  471. package/dist/lib/identities/isEthereumGasEtherchainV2Payload.d.mts.map +0 -1
  472. package/dist/lib/identities/isEthereumGasEtherchainV2Payload.d.ts.map +0 -1
  473. package/dist/lib/identities/isEthereumGasEthersPayload.d.mts.map +0 -1
  474. package/dist/lib/identities/isEthereumGasEthersPayload.d.ts.map +0 -1
  475. package/dist/lib/identities/isEthereumGasEtherscanPayload.d.mts.map +0 -1
  476. package/dist/lib/identities/isEthereumGasEtherscanPayload.d.ts.map +0 -1
  477. package/dist/lib/identities/isEthereumGasEthgasstationPayload.d.mts.map +0 -1
  478. package/dist/lib/identities/isEthereumGasEthgasstationPayload.d.ts.map +0 -1
  479. package/dist/lib/index.d.mts.map +0 -1
  480. package/dist/lib/index.d.ts.map +0 -1
  481. package/dist/lib/transforms/index.d.mts.map +0 -1
  482. package/dist/lib/transforms/index.d.ts.map +0 -1
  483. package/dist/lib/transforms/transformGasFromBlocknative.d.mts.map +0 -1
  484. package/dist/lib/transforms/transformGasFromBlocknative.d.ts.map +0 -1
  485. package/dist/lib/transforms/transformGasFromEtherchainV2.d.mts.map +0 -1
  486. package/dist/lib/transforms/transformGasFromEtherchainV2.d.ts.map +0 -1
  487. package/dist/lib/transforms/transformGasFromEthers.d.mts.map +0 -1
  488. package/dist/lib/transforms/transformGasFromEthers.d.ts.map +0 -1
  489. package/dist/lib/transforms/transformGasFromEtherscan.d.mts.map +0 -1
  490. package/dist/lib/transforms/transformGasFromEtherscan.d.ts.map +0 -1
  491. package/dist/lib/transforms/transformGasFromEthgasstation.d.mts.map +0 -1
  492. package/dist/lib/transforms/transformGasFromEthgasstation.d.ts.map +0 -1
  493. package/dist/test/index.d.mts.map +0 -1
  494. package/dist/test/index.d.ts.map +0 -1
  495. package/dist/test/sampleBlocknativeGas.d.mts.map +0 -1
  496. package/dist/test/sampleBlocknativeGas.d.ts.map +0 -1
  497. package/dist/test/sampleEtherchainGasV2.d.mts.map +0 -1
  498. package/dist/test/sampleEtherchainGasV2.d.ts.map +0 -1
  499. package/dist/test/sampleEthersGas.d.mts.map +0 -1
  500. package/dist/test/sampleEthersGas.d.ts.map +0 -1
  501. package/dist/test/sampleEtherscanGas.d.mts.map +0 -1
  502. package/dist/test/sampleEtherscanGas.d.ts.map +0 -1
  503. package/dist/test/sampleEthgasstationGas.d.mts.map +0 -1
  504. package/dist/test/sampleEthgasstationGas.d.ts.map +0 -1
  505. /package/dist/{Diviner.d.mts → browser/Diviner.d.cts} +0 -0
  506. /package/dist/{Diviner.d.ts → browser/Diviner.d.mts} +0 -0
  507. /package/dist/{Plugin.d.mts → browser/Plugin.d.cts} +0 -0
  508. /package/dist/{Plugin.d.ts → browser/Plugin.d.mts} +0 -0
  509. /package/dist/{Schema.d.mts → browser/Schema.d.cts} +0 -0
  510. /package/dist/{Schema.d.ts → browser/Schema.d.mts} +0 -0
  511. /package/dist/{index.d.mts → browser/index.d.cts} +0 -0
  512. /package/dist/{index.d.ts → browser/index.d.mts} +0 -0
  513. /package/dist/{lib/average.d.mts → browser/lib/average.d.cts} +0 -0
  514. /package/dist/{lib/average.d.ts → browser/lib/average.d.mts} +0 -0
  515. /package/dist/{lib/divineGas.d.mts → browser/lib/divineGas.d.cts} +0 -0
  516. /package/dist/{lib/divineGas.d.ts → browser/lib/divineGas.d.mts} +0 -0
  517. /package/dist/{lib/identities/index.d.mts → browser/lib/identities/index.d.cts} +0 -0
  518. /package/dist/{lib/identities/index.d.ts → browser/lib/identities/index.d.mts} +0 -0
  519. /package/dist/{lib/identities/isEthereumGasBlocknativePayload.d.mts → browser/lib/identities/isEthereumGasBlocknativePayload.d.cts} +0 -0
  520. /package/dist/{lib/identities/isEthereumGasBlocknativePayload.d.ts → browser/lib/identities/isEthereumGasBlocknativePayload.d.mts} +0 -0
  521. /package/dist/{lib/identities/isEthereumGasEtherchainV2Payload.d.mts → browser/lib/identities/isEthereumGasEtherchainV2Payload.d.cts} +0 -0
  522. /package/dist/{lib/identities/isEthereumGasEtherchainV2Payload.d.ts → browser/lib/identities/isEthereumGasEtherchainV2Payload.d.mts} +0 -0
  523. /package/dist/{lib/identities/isEthereumGasEthersPayload.d.mts → browser/lib/identities/isEthereumGasEthersPayload.d.cts} +0 -0
  524. /package/dist/{lib/identities/isEthereumGasEthersPayload.d.ts → browser/lib/identities/isEthereumGasEthersPayload.d.mts} +0 -0
  525. /package/dist/{lib/identities/isEthereumGasEtherscanPayload.d.mts → browser/lib/identities/isEthereumGasEtherscanPayload.d.cts} +0 -0
  526. /package/dist/{lib/identities/isEthereumGasEtherscanPayload.d.ts → browser/lib/identities/isEthereumGasEtherscanPayload.d.mts} +0 -0
  527. /package/dist/{lib/identities/isEthereumGasEthgasstationPayload.d.mts → browser/lib/identities/isEthereumGasEthgasstationPayload.d.cts} +0 -0
  528. /package/dist/{lib/identities/isEthereumGasEthgasstationPayload.d.ts → browser/lib/identities/isEthereumGasEthgasstationPayload.d.mts} +0 -0
  529. /package/dist/{lib/index.d.mts → browser/lib/index.d.cts} +0 -0
  530. /package/dist/{lib/index.d.ts → browser/lib/index.d.mts} +0 -0
  531. /package/dist/{lib/transforms/index.d.mts → browser/lib/transforms/index.d.cts} +0 -0
  532. /package/dist/{lib/transforms/index.d.ts → browser/lib/transforms/index.d.mts} +0 -0
  533. /package/dist/{lib/transforms/transformGasFromBlocknative.d.mts → browser/lib/transforms/transformGasFromBlocknative.d.cts} +0 -0
  534. /package/dist/{lib/transforms/transformGasFromBlocknative.d.ts → browser/lib/transforms/transformGasFromBlocknative.d.mts} +0 -0
  535. /package/dist/{lib/transforms/transformGasFromEtherchainV2.d.mts → browser/lib/transforms/transformGasFromEtherchainV2.d.cts} +0 -0
  536. /package/dist/{lib/transforms/transformGasFromEtherchainV2.d.ts → browser/lib/transforms/transformGasFromEtherchainV2.d.mts} +0 -0
  537. /package/dist/{lib/transforms/transformGasFromEthers.d.mts → browser/lib/transforms/transformGasFromEthers.d.cts} +0 -0
  538. /package/dist/{lib/transforms/transformGasFromEthers.d.ts → browser/lib/transforms/transformGasFromEthers.d.mts} +0 -0
  539. /package/dist/{lib/transforms/transformGasFromEtherscan.d.mts → browser/lib/transforms/transformGasFromEtherscan.d.cts} +0 -0
  540. /package/dist/{lib/transforms/transformGasFromEtherscan.d.ts → browser/lib/transforms/transformGasFromEtherscan.d.mts} +0 -0
  541. /package/dist/{lib/transforms/transformGasFromEthgasstation.d.mts → browser/lib/transforms/transformGasFromEthgasstation.d.cts} +0 -0
  542. /package/dist/{lib/transforms/transformGasFromEthgasstation.d.ts → browser/lib/transforms/transformGasFromEthgasstation.d.mts} +0 -0
  543. /package/dist/{test/index.d.mts → browser/test/index.d.cts} +0 -0
  544. /package/dist/{test/index.d.ts → browser/test/index.d.mts} +0 -0
  545. /package/dist/{test/sampleBlocknativeGas.d.mts → browser/test/sampleBlocknativeGas.d.cts} +0 -0
  546. /package/dist/{test/sampleBlocknativeGas.d.ts → browser/test/sampleBlocknativeGas.d.mts} +0 -0
  547. /package/dist/{test/sampleEtherchainGasV2.d.mts → browser/test/sampleEtherchainGasV2.d.cts} +0 -0
  548. /package/dist/{test/sampleEtherchainGasV2.d.ts → browser/test/sampleEtherchainGasV2.d.mts} +0 -0
  549. /package/dist/{test/sampleEthersGas.d.mts → browser/test/sampleEthersGas.d.cts} +0 -0
  550. /package/dist/{test/sampleEthersGas.d.ts → browser/test/sampleEthersGas.d.mts} +0 -0
  551. /package/dist/{test/sampleEtherscanGas.d.mts → browser/test/sampleEtherscanGas.d.cts} +0 -0
  552. /package/dist/{test/sampleEtherscanGas.d.ts → browser/test/sampleEtherscanGas.d.mts} +0 -0
  553. /package/dist/{test/sampleEthgasstationGas.d.mts → browser/test/sampleEthgasstationGas.d.cts} +0 -0
  554. /package/dist/{test/sampleEthgasstationGas.d.ts → browser/test/sampleEthgasstationGas.d.mts} +0 -0
@@ -0,0 +1,35 @@
1
+ import { linear } from "regression";
2
+ const getBaseFee = (payload) => {
3
+ const { baseFee } = payload;
4
+ return baseFee;
5
+ };
6
+ const getFeePerGas = (payload) => {
7
+ const { standard: medium, fast: high, instant: veryHigh } = payload.gasPrice;
8
+ const trend = linear([
9
+ [1, medium],
10
+ [2, high],
11
+ [3, veryHigh]
12
+ ]);
13
+ const low = trend.predict(0)[1];
14
+ return { low, medium, high, veryHigh };
15
+ };
16
+ const getPriorityFeePerGas = (payload) => {
17
+ const { standard: medium, fast: high, instant: veryHigh } = payload.priorityFee;
18
+ const trend = linear([
19
+ [1, medium],
20
+ [2, high],
21
+ [3, veryHigh]
22
+ ]);
23
+ const low = trend.predict(0)[1];
24
+ return { low, medium, high, veryHigh };
25
+ };
26
+ const transformGasFromEthgasstation = (payload) => {
27
+ const baseFee = getBaseFee(payload);
28
+ const feePerGas = getFeePerGas(payload);
29
+ const priorityFeePerGas = getPriorityFeePerGas(payload);
30
+ return { baseFee, feePerGas, priorityFeePerGas };
31
+ };
32
+ export {
33
+ transformGasFromEthgasstation
34
+ };
35
+ //# 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,MAAM,aAAa,CAAC,YAAiE;AACnF,QAAM,EAAE,QAAQ,IAAI;AACpB,SAAO;AACT;AAEA,MAAM,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,MAAM,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,MAAM,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":";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;;;ACAA,qDAA8F;AAEvF,IAAM,uBAAsD;AAAA,EACjE,aAAa;AAAA,IACX;AAAA,MACE,eAAe;AAAA,MACf,aAAa;AAAA,MACb,iBAAiB;AAAA,QACf;AAAA,UACE,YAAY;AAAA,UACZ,cAAc;AAAA,UACd,sBAAsB;AAAA,UACtB,OAAO;AAAA,QACT;AAAA,QACA;AAAA,UACE,YAAY;AAAA,UACZ,cAAc;AAAA,UACd,sBAAsB;AAAA,UACtB,OAAO;AAAA,QACT;AAAA,QACA;AAAA,UACE,YAAY;AAAA,UACZ,cAAc;AAAA,UACd,sBAAsB;AAAA,UACtB,OAAO;AAAA,QACT;AAAA,QACA;AAAA,UACE,YAAY;AAAA,UACZ,cAAc;AAAA,UACd,sBAAsB;AAAA,UACtB,OAAO;AAAA,QACT;AAAA,QACA;AAAA,UACE,YAAY;AAAA,UACZ,cAAc;AAAA,UACd,sBAAsB;AAAA,UACtB,OAAO;AAAA,QACT;AAAA,MACF;AAAA,MACA,2BAA2B;AAAA,IAC7B;AAAA,EACF;AAAA,EACA,oBAAoB;AAAA,EACpB,mBAAmB;AAAA,IACjB;AAAA,MACE,aAAa;AAAA,QACX;AAAA,UACE,SAAS;AAAA,UACT,YAAY;AAAA,QACd;AAAA,MACF;AAAA,IACF;AAAA,IACA;AAAA,MACE,aAAa;AAAA,QACX;AAAA,UACE,SAAS;AAAA,UACT,YAAY;AAAA,QACd;AAAA,MACF;AAAA,IACF;AAAA,IACA;AAAA,MACE,aAAa;AAAA,QACX;AAAA,UACE,SAAS;AAAA,UACT,YAAY;AAAA,QACd;AAAA,MACF;AAAA,IACF;AAAA,IACA;AAAA,MACE,aAAa;AAAA,QACX;AAAA,UACE,SAAS;AAAA,UACT,YAAY;AAAA,QACd;AAAA,MACF;AAAA,IACF;AAAA,IACA;AAAA,MACE,aAAa;AAAA,QACX;AAAA,UACE,SAAS;AAAA,UACT,YAAY;AAAA,QACd;AAAA,MACF;AAAA,IACF;AAAA,EACF;AAAA,EACA,UAAU;AAAA,EACV,kBAAkB;AAAA,EAClB,SAAS;AAAA,EACT,QAAQ;AAAA,EACR,QAAQ;AAAA,EACR,WAAW;AAAA,EACX,MAAM;AACR;;;AC5FA,gEAA8E;AAEvE,IAAM,wBAAwD;AAAA,EACnE,MAAM;AAAA,EACN,MAAM;AAAA,IACJ,MAAM;AAAA,IACN,UAAU;AAAA,IACV,OAAO;AAAA,IACP,MAAM;AAAA,IACN,UAAU;AAAA,IACV,WAAW;AAAA,EACb;AAAA,EACA,QAAQ;AAAA,EACR,WAAW;AACb;;;ACdA,mDAAwE;AAEjE,IAAM,qBAAkD;AAAA,EAC7D,SAAS;AAAA,EACT,QAAQ;AAAA,IACN,cAAc;AAAA,IACd,WAAW;AAAA,IACX,iBAAiB;AAAA,IACjB,cAAc;AAAA,IACd,cAAc;AAAA,IACd,gBAAgB;AAAA,EAClB;AAAA,EACA,QAAQ;AAAA,EACR,QAAQ;AAAA,EACR,WAAW;AACb;;;ACfA,gDAAkE;AAE3D,IAAM,kBAA4C;AAAA,EACvD,UAAU;AAAA,EACV,mBAAmB;AAAA,EACnB,cAAc;AAAA,EACd,sBAAsB;AAAA,EACtB,QAAQ;AAAA,EACR,WAAW;AACb;;;ACTA,uDAAgF;AAEzE,IAAM,yBAA0D;AAAA,EACrE,SAAS;AAAA,EACT,aAAa;AAAA,EACb,WAAW;AAAA,EACX,UAAU;AAAA,IACR,MAAM;AAAA,IACN,SAAS;AAAA,IACT,UAAU;AAAA,EACZ;AAAA,EACA,aAAa;AAAA,EACb,aAAa;AAAA,IACX,MAAM;AAAA,IACN,SAAS;AAAA,IACT,UAAU;AAAA,EACZ;AAAA,EACA,QAAQ;AAAA,EACR,WAAW;AACb;","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,6 @@
1
+ export * from './sampleBlocknativeGas';
2
+ export * from './sampleEtherchainGasV2';
3
+ export * from './sampleEtherscanGas';
4
+ export * from './sampleEthersGas';
5
+ export * from './sampleEthgasstationGas';
6
+ //# sourceMappingURL=index.d.ts.map
@@ -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,6 @@
1
+ export * from "./sampleBlocknativeGas";
2
+ export * from "./sampleEtherchainGasV2";
3
+ export * from "./sampleEtherscanGas";
4
+ export * from "./sampleEthersGas";
5
+ export * from "./sampleEthgasstationGas";
6
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../../src/test/index.ts"],"sourcesContent":["export * from './sampleBlocknativeGas'\nexport * from './sampleEtherchainGasV2'\nexport * from './sampleEtherscanGas'\nexport * from './sampleEthersGas'\nexport * from './sampleEthgasstationGas'\n"],"mappings":"AAAA,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;","names":[]}
@@ -0,0 +1,118 @@
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/sampleBlocknativeGas.ts
21
+ var sampleBlocknativeGas_exports = {};
22
+ __export(sampleBlocknativeGas_exports, {
23
+ sampleBlocknativeGas: () => sampleBlocknativeGas
24
+ });
25
+ module.exports = __toCommonJS(sampleBlocknativeGas_exports);
26
+ var import_blocknative_ethereum_gas_payload_plugin = require("@xyo-network/blocknative-ethereum-gas-payload-plugin");
27
+ var sampleBlocknativeGas = {
28
+ blockPrices: [
29
+ {
30
+ baseFeePerGas: 13.691764456,
31
+ blockNumber: 16028191,
32
+ estimatedPrices: [
33
+ {
34
+ confidence: 99,
35
+ maxFeePerGas: 22.04,
36
+ maxPriorityFeePerGas: 1.09,
37
+ price: 14
38
+ },
39
+ {
40
+ confidence: 95,
41
+ maxFeePerGas: 21.58,
42
+ maxPriorityFeePerGas: 0.63,
43
+ price: 14
44
+ },
45
+ {
46
+ confidence: 90,
47
+ maxFeePerGas: 21.25,
48
+ maxPriorityFeePerGas: 0.3,
49
+ price: 13
50
+ },
51
+ {
52
+ confidence: 80,
53
+ maxFeePerGas: 21.16,
54
+ maxPriorityFeePerGas: 0.21,
55
+ price: 13
56
+ },
57
+ {
58
+ confidence: 70,
59
+ maxFeePerGas: 21.12,
60
+ maxPriorityFeePerGas: 0.17,
61
+ price: 13
62
+ }
63
+ ],
64
+ estimatedTransactionCount: 69
65
+ }
66
+ ],
67
+ currentBlockNumber: 16028190,
68
+ estimatedBaseFees: [
69
+ {
70
+ "pending+1": [
71
+ {
72
+ baseFee: 15.41,
73
+ confidence: 99
74
+ }
75
+ ]
76
+ },
77
+ {
78
+ "pending+2": [
79
+ {
80
+ baseFee: 17.32,
81
+ confidence: 99
82
+ }
83
+ ]
84
+ },
85
+ {
86
+ "pending+3": [
87
+ {
88
+ baseFee: 19.17,
89
+ confidence: 99
90
+ }
91
+ ]
92
+ },
93
+ {
94
+ "pending+4": [
95
+ {
96
+ baseFee: 20.12,
97
+ confidence: 99
98
+ }
99
+ ]
100
+ },
101
+ {
102
+ "pending+5": [
103
+ {
104
+ baseFee: 20.95,
105
+ confidence: 99
106
+ }
107
+ ]
108
+ }
109
+ ],
110
+ maxPrice: 36,
111
+ msSinceLastBlock: 3643,
112
+ network: "main",
113
+ schema: import_blocknative_ethereum_gas_payload_plugin.EthereumGasBlocknativeSchema,
114
+ system: "ethereum",
115
+ timestamp: 1668697958837,
116
+ unit: "gwei"
117
+ };
118
+ //# sourceMappingURL=sampleBlocknativeGas.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../../src/test/sampleBlocknativeGas.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"],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,qDAA8F;AAEvF,IAAM,uBAAsD;AAAA,EACjE,aAAa;AAAA,IACX;AAAA,MACE,eAAe;AAAA,MACf,aAAa;AAAA,MACb,iBAAiB;AAAA,QACf;AAAA,UACE,YAAY;AAAA,UACZ,cAAc;AAAA,UACd,sBAAsB;AAAA,UACtB,OAAO;AAAA,QACT;AAAA,QACA;AAAA,UACE,YAAY;AAAA,UACZ,cAAc;AAAA,UACd,sBAAsB;AAAA,UACtB,OAAO;AAAA,QACT;AAAA,QACA;AAAA,UACE,YAAY;AAAA,UACZ,cAAc;AAAA,UACd,sBAAsB;AAAA,UACtB,OAAO;AAAA,QACT;AAAA,QACA;AAAA,UACE,YAAY;AAAA,UACZ,cAAc;AAAA,UACd,sBAAsB;AAAA,UACtB,OAAO;AAAA,QACT;AAAA,QACA;AAAA,UACE,YAAY;AAAA,UACZ,cAAc;AAAA,UACd,sBAAsB;AAAA,UACtB,OAAO;AAAA,QACT;AAAA,MACF;AAAA,MACA,2BAA2B;AAAA,IAC7B;AAAA,EACF;AAAA,EACA,oBAAoB;AAAA,EACpB,mBAAmB;AAAA,IACjB;AAAA,MACE,aAAa;AAAA,QACX;AAAA,UACE,SAAS;AAAA,UACT,YAAY;AAAA,QACd;AAAA,MACF;AAAA,IACF;AAAA,IACA;AAAA,MACE,aAAa;AAAA,QACX;AAAA,UACE,SAAS;AAAA,UACT,YAAY;AAAA,QACd;AAAA,MACF;AAAA,IACF;AAAA,IACA;AAAA,MACE,aAAa;AAAA,QACX;AAAA,UACE,SAAS;AAAA,UACT,YAAY;AAAA,QACd;AAAA,MACF;AAAA,IACF;AAAA,IACA;AAAA,MACE,aAAa;AAAA,QACX;AAAA,UACE,SAAS;AAAA,UACT,YAAY;AAAA,QACd;AAAA,MACF;AAAA,IACF;AAAA,IACA;AAAA,MACE,aAAa;AAAA,QACX;AAAA,UACE,SAAS;AAAA,UACT,YAAY;AAAA,QACd;AAAA,MACF;AAAA,IACF;AAAA,EACF;AAAA,EACA,UAAU;AAAA,EACV,kBAAkB;AAAA,EAClB,SAAS;AAAA,EACT,QAAQ;AAAA,EACR,QAAQ;AAAA,EACR,WAAW;AAAA,EACX,MAAM;AACR;","names":[]}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"sampleBlocknativeGas.d.ts","sourceRoot":"","sources":["../../../src/test/sampleBlocknativeGas.ts"],"names":[],"mappings":"AAAA,OAAO,EAAoB,6BAA6B,EAAgC,MAAM,sDAAsD,CAAA;AAEpJ,eAAO,MAAM,oBAAoB,EAAE,6BA0FlC,CAAA"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"sampleBlocknativeGas.d.ts","sourceRoot":"","sources":["../../../src/test/sampleBlocknativeGas.ts"],"names":[],"mappings":"AAAA,OAAO,EAAoB,6BAA6B,EAAgC,MAAM,sDAAsD,CAAA;AAEpJ,eAAO,MAAM,oBAAoB,EAAE,6BA0FlC,CAAA"}
@@ -0,0 +1,3 @@
1
+ import { EthereumGasBlocknativePayload } from '@xyo-network/blocknative-ethereum-gas-payload-plugin';
2
+ export declare const sampleBlocknativeGas: EthereumGasBlocknativePayload;
3
+ //# sourceMappingURL=sampleBlocknativeGas.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"sampleBlocknativeGas.d.ts","sourceRoot":"","sources":["../../../src/test/sampleBlocknativeGas.ts"],"names":[],"mappings":"AAAA,OAAO,EAAoB,6BAA6B,EAAgC,MAAM,sDAAsD,CAAA;AAEpJ,eAAO,MAAM,oBAAoB,EAAE,6BA0FlC,CAAA"}
@@ -0,0 +1,96 @@
1
+ import { EthereumGasBlocknativeSchema } from "@xyo-network/blocknative-ethereum-gas-payload-plugin";
2
+ const sampleBlocknativeGas = {
3
+ blockPrices: [
4
+ {
5
+ baseFeePerGas: 13.691764456,
6
+ blockNumber: 16028191,
7
+ estimatedPrices: [
8
+ {
9
+ confidence: 99,
10
+ maxFeePerGas: 22.04,
11
+ maxPriorityFeePerGas: 1.09,
12
+ price: 14
13
+ },
14
+ {
15
+ confidence: 95,
16
+ maxFeePerGas: 21.58,
17
+ maxPriorityFeePerGas: 0.63,
18
+ price: 14
19
+ },
20
+ {
21
+ confidence: 90,
22
+ maxFeePerGas: 21.25,
23
+ maxPriorityFeePerGas: 0.3,
24
+ price: 13
25
+ },
26
+ {
27
+ confidence: 80,
28
+ maxFeePerGas: 21.16,
29
+ maxPriorityFeePerGas: 0.21,
30
+ price: 13
31
+ },
32
+ {
33
+ confidence: 70,
34
+ maxFeePerGas: 21.12,
35
+ maxPriorityFeePerGas: 0.17,
36
+ price: 13
37
+ }
38
+ ],
39
+ estimatedTransactionCount: 69
40
+ }
41
+ ],
42
+ currentBlockNumber: 16028190,
43
+ estimatedBaseFees: [
44
+ {
45
+ "pending+1": [
46
+ {
47
+ baseFee: 15.41,
48
+ confidence: 99
49
+ }
50
+ ]
51
+ },
52
+ {
53
+ "pending+2": [
54
+ {
55
+ baseFee: 17.32,
56
+ confidence: 99
57
+ }
58
+ ]
59
+ },
60
+ {
61
+ "pending+3": [
62
+ {
63
+ baseFee: 19.17,
64
+ confidence: 99
65
+ }
66
+ ]
67
+ },
68
+ {
69
+ "pending+4": [
70
+ {
71
+ baseFee: 20.12,
72
+ confidence: 99
73
+ }
74
+ ]
75
+ },
76
+ {
77
+ "pending+5": [
78
+ {
79
+ baseFee: 20.95,
80
+ confidence: 99
81
+ }
82
+ ]
83
+ }
84
+ ],
85
+ maxPrice: 36,
86
+ msSinceLastBlock: 3643,
87
+ network: "main",
88
+ schema: EthereumGasBlocknativeSchema,
89
+ system: "ethereum",
90
+ timestamp: 1668697958837,
91
+ unit: "gwei"
92
+ };
93
+ export {
94
+ sampleBlocknativeGas
95
+ };
96
+ //# sourceMappingURL=sampleBlocknativeGas.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../../src/test/sampleBlocknativeGas.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"],"mappings":"AAAA,SAA0D,oCAAoC;AAEvF,MAAM,uBAAsD;AAAA,EACjE,aAAa;AAAA,IACX;AAAA,MACE,eAAe;AAAA,MACf,aAAa;AAAA,MACb,iBAAiB;AAAA,QACf;AAAA,UACE,YAAY;AAAA,UACZ,cAAc;AAAA,UACd,sBAAsB;AAAA,UACtB,OAAO;AAAA,QACT;AAAA,QACA;AAAA,UACE,YAAY;AAAA,UACZ,cAAc;AAAA,UACd,sBAAsB;AAAA,UACtB,OAAO;AAAA,QACT;AAAA,QACA;AAAA,UACE,YAAY;AAAA,UACZ,cAAc;AAAA,UACd,sBAAsB;AAAA,UACtB,OAAO;AAAA,QACT;AAAA,QACA;AAAA,UACE,YAAY;AAAA,UACZ,cAAc;AAAA,UACd,sBAAsB;AAAA,UACtB,OAAO;AAAA,QACT;AAAA,QACA;AAAA,UACE,YAAY;AAAA,UACZ,cAAc;AAAA,UACd,sBAAsB;AAAA,UACtB,OAAO;AAAA,QACT;AAAA,MACF;AAAA,MACA,2BAA2B;AAAA,IAC7B;AAAA,EACF;AAAA,EACA,oBAAoB;AAAA,EACpB,mBAAmB;AAAA,IACjB;AAAA,MACE,aAAa;AAAA,QACX;AAAA,UACE,SAAS;AAAA,UACT,YAAY;AAAA,QACd;AAAA,MACF;AAAA,IACF;AAAA,IACA;AAAA,MACE,aAAa;AAAA,QACX;AAAA,UACE,SAAS;AAAA,UACT,YAAY;AAAA,QACd;AAAA,MACF;AAAA,IACF;AAAA,IACA;AAAA,MACE,aAAa;AAAA,QACX;AAAA,UACE,SAAS;AAAA,UACT,YAAY;AAAA,QACd;AAAA,MACF;AAAA,IACF;AAAA,IACA;AAAA,MACE,aAAa;AAAA,QACX;AAAA,UACE,SAAS;AAAA,UACT,YAAY;AAAA,QACd;AAAA,MACF;AAAA,IACF;AAAA,IACA;AAAA,MACE,aAAa;AAAA,QACX;AAAA,UACE,SAAS;AAAA,UACT,YAAY;AAAA,QACd;AAAA,MACF;AAAA,IACF;AAAA,EACF;AAAA,EACA,UAAU;AAAA,EACV,kBAAkB;AAAA,EAClB,SAAS;AAAA,EACT,QAAQ;AAAA,EACR,QAAQ;AAAA,EACR,WAAW;AAAA,EACX,MAAM;AACR;","names":[]}
@@ -0,0 +1,40 @@
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/sampleEtherchainGasV2.ts
21
+ var sampleEtherchainGasV2_exports = {};
22
+ __export(sampleEtherchainGasV2_exports, {
23
+ sampleEtherchainGasV2: () => sampleEtherchainGasV2
24
+ });
25
+ module.exports = __toCommonJS(sampleEtherchainGasV2_exports);
26
+ var import_etherchain_gas_ethereum_blockchain_payload_plugins = require("@xyo-network/etherchain-gas-ethereum-blockchain-payload-plugins");
27
+ var sampleEtherchainGasV2 = {
28
+ code: 200,
29
+ data: {
30
+ fast: 19803047330,
31
+ priceUSD: 1195.77,
32
+ rapid: 29714286170,
33
+ slow: 112e8,
34
+ standard: 12e9,
35
+ timestamp: 1668621234096
36
+ },
37
+ schema: import_etherchain_gas_ethereum_blockchain_payload_plugins.EthereumGasEtherchainV2Schema,
38
+ timestamp: 1668621240790
39
+ };
40
+ //# sourceMappingURL=sampleEtherchainGasV2.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../../src/test/sampleEtherchainGasV2.ts"],"sourcesContent":["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"],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,gEAA8E;AAEvE,IAAM,wBAAwD;AAAA,EACnE,MAAM;AAAA,EACN,MAAM;AAAA,IACJ,MAAM;AAAA,IACN,UAAU;AAAA,IACV,OAAO;AAAA,IACP,MAAM;AAAA,IACN,UAAU;AAAA,IACV,WAAW;AAAA,EACb;AAAA,EACA,QAAQ;AAAA,EACR,WAAW;AACb;","names":[]}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"sampleEtherchainGasV2.d.ts","sourceRoot":"","sources":["../../../src/test/sampleEtherchainGasV2.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,8BAA8B,EAAiC,MAAM,iEAAiE,CAAA;AAE/I,eAAO,MAAM,qBAAqB,EAAE,8BAYnC,CAAA"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"sampleEtherchainGasV2.d.ts","sourceRoot":"","sources":["../../../src/test/sampleEtherchainGasV2.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,8BAA8B,EAAiC,MAAM,iEAAiE,CAAA;AAE/I,eAAO,MAAM,qBAAqB,EAAE,8BAYnC,CAAA"}
@@ -0,0 +1,3 @@
1
+ import { EthereumGasEtherchainV2Payload } from '@xyo-network/etherchain-gas-ethereum-blockchain-payload-plugins';
2
+ export declare const sampleEtherchainGasV2: EthereumGasEtherchainV2Payload;
3
+ //# sourceMappingURL=sampleEtherchainGasV2.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"sampleEtherchainGasV2.d.ts","sourceRoot":"","sources":["../../../src/test/sampleEtherchainGasV2.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,8BAA8B,EAAiC,MAAM,iEAAiE,CAAA;AAE/I,eAAO,MAAM,qBAAqB,EAAE,8BAYnC,CAAA"}
@@ -0,0 +1,18 @@
1
+ import { EthereumGasEtherchainV2Schema } from "@xyo-network/etherchain-gas-ethereum-blockchain-payload-plugins";
2
+ const sampleEtherchainGasV2 = {
3
+ code: 200,
4
+ data: {
5
+ fast: 19803047330,
6
+ priceUSD: 1195.77,
7
+ rapid: 29714286170,
8
+ slow: 112e8,
9
+ standard: 12e9,
10
+ timestamp: 1668621234096
11
+ },
12
+ schema: EthereumGasEtherchainV2Schema,
13
+ timestamp: 1668621240790
14
+ };
15
+ export {
16
+ sampleEtherchainGasV2
17
+ };
18
+ //# sourceMappingURL=sampleEtherchainGasV2.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../../src/test/sampleEtherchainGasV2.ts"],"sourcesContent":["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"],"mappings":"AAAA,SAAyC,qCAAqC;AAEvE,MAAM,wBAAwD;AAAA,EACnE,MAAM;AAAA,EACN,MAAM;AAAA,IACJ,MAAM;AAAA,IACN,UAAU;AAAA,IACV,OAAO;AAAA,IACP,MAAM;AAAA,IACN,UAAU;AAAA,IACV,WAAW;AAAA,EACb;AAAA,EACA,QAAQ;AAAA,EACR,WAAW;AACb;","names":[]}
@@ -0,0 +1,35 @@
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/sampleEthersGas.ts
21
+ var sampleEthersGas_exports = {};
22
+ __export(sampleEthersGas_exports, {
23
+ sampleEthersGas: () => sampleEthersGas
24
+ });
25
+ module.exports = __toCommonJS(sampleEthersGas_exports);
26
+ var import_ethers_ethereum_gas_payload_plugin = require("@xyo-network/ethers-ethereum-gas-payload-plugin");
27
+ var sampleEthersGas = {
28
+ gasPrice: 13547863640,
29
+ lastBaseFeePerGas: 13447862081,
30
+ maxFeePerGas: 28395724162,
31
+ maxPriorityFeePerGas: 15e8,
32
+ schema: import_ethers_ethereum_gas_payload_plugin.EthereumGasEthersSchema,
33
+ timestamp: 1668697958837
34
+ };
35
+ //# sourceMappingURL=sampleEthersGas.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../../src/test/sampleEthersGas.ts"],"sourcesContent":["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"],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,gDAAkE;AAE3D,IAAM,kBAA4C;AAAA,EACvD,UAAU;AAAA,EACV,mBAAmB;AAAA,EACnB,cAAc;AAAA,EACd,sBAAsB;AAAA,EACtB,QAAQ;AAAA,EACR,WAAW;AACb;","names":[]}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"sampleEthersGas.d.ts","sourceRoot":"","sources":["../../../src/test/sampleEthersGas.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,wBAAwB,EAA2B,MAAM,iDAAiD,CAAA;AAEnH,eAAO,MAAM,eAAe,EAAE,wBAO7B,CAAA"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"sampleEthersGas.d.ts","sourceRoot":"","sources":["../../../src/test/sampleEthersGas.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,wBAAwB,EAA2B,MAAM,iDAAiD,CAAA;AAEnH,eAAO,MAAM,eAAe,EAAE,wBAO7B,CAAA"}