@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,240 @@
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/divineGas.ts
21
+ var divineGas_exports = {};
22
+ __export(divineGas_exports, {
23
+ divineGas: () => divineGas
24
+ });
25
+ module.exports = __toCommonJS(divineGas_exports);
26
+ var import_gas_price_payload_plugin = require("@xyo-network/gas-price-payload-plugin");
27
+ var import_payload_builder = require("@xyo-network/payload-builder");
28
+
29
+ // src/lib/average.ts
30
+ var import_exists = require("@xylabs/exists");
31
+ var listAverage = (x) => x?.length ? x.reduce((a, b) => a + b) / x.length : void 0;
32
+ var averageProperty = (data, propertyExpression) => {
33
+ return listAverage(data.map(propertyExpression).filter(import_exists.exists));
34
+ };
35
+ var average = (input) => {
36
+ const data = input?.filter(import_exists.exists) || [];
37
+ const averaged = {
38
+ baseFee: averageProperty(data, (x) => x.baseFee),
39
+ feePerGas: {
40
+ high: averageProperty(data, (x) => x.feePerGas.high),
41
+ low: averageProperty(data, (x) => x.feePerGas.low),
42
+ medium: averageProperty(data, (x) => x.feePerGas.medium),
43
+ veryHigh: averageProperty(data, (x) => x.feePerGas.veryHigh)
44
+ },
45
+ priorityFeePerGas: {
46
+ high: averageProperty(data, (x) => x.priorityFeePerGas.high),
47
+ low: averageProperty(data, (x) => x.priorityFeePerGas.low),
48
+ medium: averageProperty(data, (x) => x.priorityFeePerGas.medium),
49
+ veryHigh: averageProperty(data, (x) => x.priorityFeePerGas.veryHigh)
50
+ }
51
+ };
52
+ return averaged;
53
+ };
54
+
55
+ // src/lib/identities/isEthereumGasBlocknativePayload.ts
56
+ var import_blocknative_ethereum_gas_payload_plugin = require("@xyo-network/blocknative-ethereum-gas-payload-plugin");
57
+ var isEthereumGasBlocknativePayload = (payload) => {
58
+ return payload?.schema === import_blocknative_ethereum_gas_payload_plugin.EthereumGasBlocknativeSchema;
59
+ };
60
+
61
+ // src/lib/identities/isEthereumGasEtherchainV2Payload.ts
62
+ var import_etherchain_gas_ethereum_blockchain_payload_plugins = require("@xyo-network/etherchain-gas-ethereum-blockchain-payload-plugins");
63
+ var isEthereumGasEtherchainV2Payload = (payload) => {
64
+ return payload?.schema === import_etherchain_gas_ethereum_blockchain_payload_plugins.EthereumGasEtherchainV2Schema;
65
+ };
66
+
67
+ // src/lib/identities/isEthereumGasEtherscanPayload.ts
68
+ var import_etherscan_ethereum_gas_payload_plugin = require("@xyo-network/etherscan-ethereum-gas-payload-plugin");
69
+ var isEthereumGasEtherscanPayload = (payload) => {
70
+ return payload?.schema === import_etherscan_ethereum_gas_payload_plugin.EthereumGasEtherscanSchema;
71
+ };
72
+
73
+ // src/lib/identities/isEthereumGasEthersPayload.ts
74
+ var import_ethers_ethereum_gas_payload_plugin = require("@xyo-network/ethers-ethereum-gas-payload-plugin");
75
+ var isEthereumGasEthersPayload = (payload) => {
76
+ return payload?.schema === import_ethers_ethereum_gas_payload_plugin.EthereumGasEthersSchema;
77
+ };
78
+
79
+ // src/lib/identities/isEthereumGasEthgasstationPayload.ts
80
+ var import_ethgasstation_ethereum_gas_payload_plugin = require("@xyo-network/ethgasstation-ethereum-gas-payload-plugin");
81
+ var isEthereumGasEthgasstationPayload = (payload) => {
82
+ return payload?.schema === import_ethgasstation_ethereum_gas_payload_plugin.EthereumGasEthgasstationSchema;
83
+ };
84
+
85
+ // src/lib/transforms/transformGasFromBlocknative.ts
86
+ var import_regression = require("regression");
87
+ var getBaseFee = (payload) => {
88
+ return payload?.blockPrices?.[0]?.baseFeePerGas;
89
+ };
90
+ var getFeePerGas = (payload) => {
91
+ const sorted = payload.blockPrices?.[0].estimatedPrices?.sort((a, b) => a.confidence - b.confidence);
92
+ const trend = (0, import_regression.linear)([
93
+ [0, sorted?.[0].price],
94
+ [1, sorted?.[1].price],
95
+ [2, sorted?.[2].price],
96
+ [3, sorted?.[3].price],
97
+ [4, sorted?.[4].price]
98
+ ]);
99
+ const feePerGas = {
100
+ low: trend.predict(0.5)[1],
101
+ medium: trend.predict(1.5)[1],
102
+ high: trend.predict(2.5)[1],
103
+ veryHigh: trend.predict(3.5)[1]
104
+ };
105
+ return feePerGas;
106
+ };
107
+ var getPriorityFeePerGas = (payload) => {
108
+ const sorted = payload.blockPrices?.[0].estimatedPrices?.sort((a, b) => a.confidence - b.confidence);
109
+ const trend = (0, import_regression.linear)([
110
+ [0, sorted?.[0].maxPriorityFeePerGas],
111
+ [1, sorted?.[1].maxPriorityFeePerGas],
112
+ [2, sorted?.[2].maxPriorityFeePerGas],
113
+ [3, sorted?.[3].maxPriorityFeePerGas],
114
+ [4, sorted?.[4].maxPriorityFeePerGas]
115
+ ]);
116
+ const priorityFeePerGas = {
117
+ low: trend.predict(0.5)[1],
118
+ medium: trend.predict(1.5)[1],
119
+ high: trend.predict(2.5)[1],
120
+ veryHigh: trend.predict(3.5)[1]
121
+ };
122
+ return priorityFeePerGas;
123
+ };
124
+ var transformGasFromBlocknative = (payload) => {
125
+ const baseFee = getBaseFee(payload);
126
+ const feePerGas = getFeePerGas(payload);
127
+ const priorityFeePerGas = getPriorityFeePerGas(payload);
128
+ return { baseFee, feePerGas, priorityFeePerGas };
129
+ };
130
+
131
+ // src/lib/transforms/transformGasFromEtherchainV2.ts
132
+ var getFeePerGas2 = (payload) => {
133
+ const { slow, standard, fast, rapid } = payload.data;
134
+ const low = slow / 1e9;
135
+ const medium = standard / 1e9;
136
+ const high = fast / 1e9;
137
+ const veryHigh = rapid / 1e9;
138
+ return { high, low, medium, veryHigh };
139
+ };
140
+ var transformGasFromEtherchainV2 = (payload) => {
141
+ const baseFee = void 0;
142
+ const feePerGas = getFeePerGas2(payload);
143
+ const priorityFeePerGas = {};
144
+ return { baseFee, feePerGas, priorityFeePerGas };
145
+ };
146
+
147
+ // src/lib/transforms/transformGasFromEthers.ts
148
+ var getBaseFee2 = (payload) => {
149
+ const { lastBaseFeePerGas } = payload;
150
+ return lastBaseFeePerGas ? lastBaseFeePerGas / 1e9 : void 0;
151
+ };
152
+ var getFeePerGas3 = (payload) => {
153
+ const { maxFeePerGas } = payload;
154
+ const high = maxFeePerGas ? maxFeePerGas / 1e9 : void 0;
155
+ return { high };
156
+ };
157
+ var getPriorityFeePerGas2 = (payload) => {
158
+ const { maxPriorityFeePerGas } = payload;
159
+ const high = maxPriorityFeePerGas ? maxPriorityFeePerGas / 1e9 : void 0;
160
+ return { high };
161
+ };
162
+ var transformGasFromEthers = (payload) => {
163
+ const baseFee = getBaseFee2(payload);
164
+ const feePerGas = getFeePerGas3(payload);
165
+ const priorityFeePerGas = getPriorityFeePerGas2(payload);
166
+ return { baseFee, feePerGas, priorityFeePerGas };
167
+ };
168
+
169
+ // src/lib/transforms/transformGasFromEtherscan.ts
170
+ var import_regression2 = require("regression");
171
+ var getBaseFee3 = (payload) => {
172
+ const { suggestBaseFee } = payload.result;
173
+ return parseFloat(suggestBaseFee);
174
+ };
175
+ var getFeePerGas4 = (payload) => {
176
+ const { FastGasPrice, ProposeGasPrice, SafeGasPrice } = payload.result;
177
+ const low = parseFloat(SafeGasPrice);
178
+ const medium = parseFloat(ProposeGasPrice);
179
+ const high = parseFloat(FastGasPrice);
180
+ const veryHigh = (0, import_regression2.linear)([
181
+ [0, low],
182
+ [1, medium],
183
+ [2, high]
184
+ ]).predict(3)[1];
185
+ return { high, low, medium, veryHigh };
186
+ };
187
+ var transformGasFromEtherscan = (payload) => {
188
+ const baseFee = getBaseFee3(payload);
189
+ const feePerGas = getFeePerGas4(payload);
190
+ const priorityFeePerGas = {};
191
+ return { baseFee, feePerGas, priorityFeePerGas };
192
+ };
193
+
194
+ // src/lib/transforms/transformGasFromEthgasstation.ts
195
+ var import_regression3 = require("regression");
196
+ var getBaseFee4 = (payload) => {
197
+ const { baseFee } = payload;
198
+ return baseFee;
199
+ };
200
+ var getFeePerGas5 = (payload) => {
201
+ const { standard: medium, fast: high, instant: veryHigh } = payload.gasPrice;
202
+ const trend = (0, import_regression3.linear)([
203
+ [1, medium],
204
+ [2, high],
205
+ [3, veryHigh]
206
+ ]);
207
+ const low = trend.predict(0)[1];
208
+ return { low, medium, high, veryHigh };
209
+ };
210
+ var getPriorityFeePerGas3 = (payload) => {
211
+ const { standard: medium, fast: high, instant: veryHigh } = payload.priorityFee;
212
+ const trend = (0, import_regression3.linear)([
213
+ [1, medium],
214
+ [2, high],
215
+ [3, veryHigh]
216
+ ]);
217
+ const low = trend.predict(0)[1];
218
+ return { low, medium, high, veryHigh };
219
+ };
220
+ var transformGasFromEthgasstation = (payload) => {
221
+ const baseFee = getBaseFee4(payload);
222
+ const feePerGas = getFeePerGas5(payload);
223
+ const priorityFeePerGas = getPriorityFeePerGas3(payload);
224
+ return { baseFee, feePerGas, priorityFeePerGas };
225
+ };
226
+
227
+ // src/lib/divineGas.ts
228
+ var divineGas = (payloads) => {
229
+ const blocknative = payloads.filter(isEthereumGasBlocknativePayload).map(transformGasFromBlocknative);
230
+ const etherchainV2 = payloads.filter(isEthereumGasEtherchainV2Payload).map(transformGasFromEtherchainV2);
231
+ const ethers = payloads.filter(isEthereumGasEthersPayload).map(transformGasFromEthers);
232
+ const etherscan = payloads.filter(isEthereumGasEtherscanPayload).map(transformGasFromEtherscan);
233
+ const ethgasstation = payloads.filter(isEthereumGasEthgasstationPayload).map(transformGasFromEthgasstation);
234
+ const transactionCosts = [...blocknative, ...etherchainV2, ...ethers, ...etherscan, ...ethgasstation];
235
+ const avg = average(transactionCosts);
236
+ const timestamp = Date.now();
237
+ const payload = new import_payload_builder.PayloadBuilder({ schema: import_gas_price_payload_plugin.EthereumGasSchema }).fields({ ...avg, timestamp }).build();
238
+ return payload;
239
+ };
240
+ //# sourceMappingURL=divineGas.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../../src/lib/divineGas.ts","../../../src/lib/average.ts","../../../src/lib/identities/isEthereumGasBlocknativePayload.ts","../../../src/lib/identities/isEthereumGasEtherchainV2Payload.ts","../../../src/lib/identities/isEthereumGasEtherscanPayload.ts","../../../src/lib/identities/isEthereumGasEthersPayload.ts","../../../src/lib/identities/isEthereumGasEthgasstationPayload.ts","../../../src/lib/transforms/transformGasFromBlocknative.ts","../../../src/lib/transforms/transformGasFromEtherchainV2.ts","../../../src/lib/transforms/transformGasFromEthers.ts","../../../src/lib/transforms/transformGasFromEtherscan.ts","../../../src/lib/transforms/transformGasFromEthgasstation.ts"],"sourcesContent":["import { EthereumGasPayload, EthereumGasSchema, FeeData } from '@xyo-network/gas-price-payload-plugin'\nimport { PayloadBuilder } from '@xyo-network/payload-builder'\nimport { Payload } from '@xyo-network/payload-model'\n\nimport { average } from './average'\nimport {\n isEthereumGasBlocknativePayload,\n isEthereumGasEtherchainV2Payload,\n isEthereumGasEtherscanPayload,\n isEthereumGasEthersPayload,\n isEthereumGasEthgasstationPayload,\n} from './identities'\nimport {\n transformGasFromBlocknative,\n transformGasFromEtherchainV2,\n transformGasFromEthers,\n transformGasFromEtherscan,\n transformGasFromEthgasstation,\n} from './transforms'\n\nexport const divineGas = (payloads: Payload[]): EthereumGasPayload => {\n const blocknative = payloads.filter(isEthereumGasBlocknativePayload).map(transformGasFromBlocknative)\n const etherchainV2 = payloads.filter(isEthereumGasEtherchainV2Payload).map(transformGasFromEtherchainV2)\n const ethers = payloads.filter(isEthereumGasEthersPayload).map(transformGasFromEthers)\n const etherscan = payloads.filter(isEthereumGasEtherscanPayload).map(transformGasFromEtherscan)\n const ethgasstation = payloads.filter(isEthereumGasEthgasstationPayload).map(transformGasFromEthgasstation)\n const transactionCosts: FeeData[] = [...blocknative, ...etherchainV2, ...ethers, ...etherscan, ...ethgasstation]\n const avg = average(transactionCosts)\n const timestamp = Date.now()\n const payload = new PayloadBuilder<EthereumGasPayload>({ schema: EthereumGasSchema }).fields({ ...avg, timestamp }).build()\n return payload\n}\n","import { exists } from '@xylabs/exists'\nimport { FeeData } from '@xyo-network/gas-price-payload-plugin'\n\n/**\n * Averages an array of numbers\n * @param x Averages an array of numbers\n * @returns The average of the array of numbers or undefined if the\n * array is empty or undefined\n */\nconst listAverage = (x?: number[]) => (x?.length ? x.reduce((a, b) => a + b) / x.length : undefined)\n\n/**\n * Averages the property indicates by the supplied property\n * expression across the array of FeeData\n * @param data The array of data to average\n * @param propertyExpression The expression for the property to\n * average\n * @returns The average of the supplied property across the array\n */\nconst averageProperty = (data: FeeData[], propertyExpression: (x: FeeData) => number | undefined) => {\n return listAverage(data.map(propertyExpression).filter(exists))\n}\n\n/**\n * Averages the supplied FeeData\n * @param input An array of FeeData or undefined\n * @returns The average of the supplied FeeData\n */\nexport const average = (input?: (FeeData | undefined)[]): FeeData => {\n const data = input?.filter(exists) || []\n const averaged: FeeData = {\n baseFee: averageProperty(data, (x) => x.baseFee),\n feePerGas: {\n high: averageProperty(data, (x) => x.feePerGas.high),\n low: averageProperty(data, (x) => x.feePerGas.low),\n medium: averageProperty(data, (x) => x.feePerGas.medium),\n veryHigh: averageProperty(data, (x) => x.feePerGas.veryHigh),\n },\n priorityFeePerGas: {\n high: averageProperty(data, (x) => x.priorityFeePerGas.high),\n low: averageProperty(data, (x) => x.priorityFeePerGas.low),\n medium: averageProperty(data, (x) => x.priorityFeePerGas.medium),\n veryHigh: averageProperty(data, (x) => x.priorityFeePerGas.veryHigh),\n },\n }\n return averaged\n}\n","import { EthereumGasBlocknativePayload, EthereumGasBlocknativeSchema } from '@xyo-network/blocknative-ethereum-gas-payload-plugin'\nimport { Payload } from '@xyo-network/payload-model'\n\nexport const isEthereumGasBlocknativePayload = (payload?: Payload | null): payload is EthereumGasBlocknativePayload => {\n return payload?.schema === EthereumGasBlocknativeSchema\n}\n","import { EthereumGasEtherchainV2Payload, EthereumGasEtherchainV2Schema } from '@xyo-network/etherchain-gas-ethereum-blockchain-payload-plugins'\nimport { Payload } from '@xyo-network/payload-model'\n\nexport const isEthereumGasEtherchainV2Payload = (payload?: Payload | null): payload is EthereumGasEtherchainV2Payload => {\n return payload?.schema === EthereumGasEtherchainV2Schema\n}\n","import { EthereumGasEtherscanPayload, EthereumGasEtherscanSchema } from '@xyo-network/etherscan-ethereum-gas-payload-plugin'\nimport { Payload } from '@xyo-network/payload-model'\n\nexport const isEthereumGasEtherscanPayload = (payload?: Payload | null): payload is EthereumGasEtherscanPayload => {\n return payload?.schema === EthereumGasEtherscanSchema\n}\n","import { EthereumGasEthersPayload, EthereumGasEthersSchema } from '@xyo-network/ethers-ethereum-gas-payload-plugin'\nimport { Payload } from '@xyo-network/payload-model'\n\nexport const isEthereumGasEthersPayload = (payload?: Payload | null): payload is EthereumGasEthersPayload => {\n return payload?.schema === EthereumGasEthersSchema\n}\n","import { EthereumGasEthgasstationPayload, EthereumGasEthgasstationSchema } from '@xyo-network/ethgasstation-ethereum-gas-payload-plugin'\nimport { Payload } from '@xyo-network/payload-model'\n\nexport const isEthereumGasEthgasstationPayload = (payload?: Payload | null): payload is EthereumGasEthgasstationPayload => {\n return payload?.schema === EthereumGasEthgasstationSchema\n}\n","/* eslint-disable sort-keys-fix/sort-keys-fix */\nimport { EthereumGasBlocknativePayload } from '@xyo-network/blocknative-ethereum-gas-payload-plugin'\nimport { FeeData, FeePerGas, PriorityFeePerGas } from '@xyo-network/gas-price-payload-plugin'\nimport { linear } from 'regression'\n\nconst getBaseFee = (payload: EthereumGasBlocknativePayload): number | undefined => {\n return payload?.blockPrices?.[0]?.baseFeePerGas\n}\n\nconst getFeePerGas = (payload: EthereumGasBlocknativePayload): Partial<FeePerGas> => {\n const sorted = payload.blockPrices?.[0].estimatedPrices?.sort((a, b) => a.confidence - b.confidence)\n const trend = linear([\n [0, sorted?.[0].price],\n [1, sorted?.[1].price],\n [2, sorted?.[2].price],\n [3, sorted?.[3].price],\n [4, sorted?.[4].price],\n ])\n const feePerGas: FeePerGas = {\n low: trend.predict(0.5)[1],\n medium: trend.predict(1.5)[1],\n high: trend.predict(2.5)[1],\n veryHigh: trend.predict(3.5)[1],\n }\n return feePerGas\n}\n\nconst getPriorityFeePerGas = (payload: EthereumGasBlocknativePayload): Partial<PriorityFeePerGas> => {\n const sorted = payload.blockPrices?.[0].estimatedPrices?.sort((a, b) => a.confidence - b.confidence)\n const trend = linear([\n [0, sorted?.[0].maxPriorityFeePerGas],\n [1, sorted?.[1].maxPriorityFeePerGas],\n [2, sorted?.[2].maxPriorityFeePerGas],\n [3, sorted?.[3].maxPriorityFeePerGas],\n [4, sorted?.[4].maxPriorityFeePerGas],\n ])\n const priorityFeePerGas: PriorityFeePerGas = {\n low: trend.predict(0.5)[1],\n medium: trend.predict(1.5)[1],\n high: trend.predict(2.5)[1],\n veryHigh: trend.predict(3.5)[1],\n }\n return priorityFeePerGas\n}\n\nexport const transformGasFromBlocknative = (payload: EthereumGasBlocknativePayload): FeeData => {\n const baseFee = getBaseFee(payload)\n const feePerGas = getFeePerGas(payload)\n const priorityFeePerGas = getPriorityFeePerGas(payload)\n return { baseFee, feePerGas, priorityFeePerGas }\n}\n","import { EthereumGasEtherchainV2Payload } from '@xyo-network/etherchain-gas-ethereum-blockchain-payload-plugins'\nimport { FeeData, FeePerGas } from '@xyo-network/gas-price-payload-plugin'\n\nconst getFeePerGas = (payload: EthereumGasEtherchainV2Payload): Partial<FeePerGas> => {\n const { slow, standard, fast, rapid } = payload.data\n const low = slow / 1_000_000_000\n const medium = standard / 1_000_000_000\n const high = fast / 1_000_000_000\n const veryHigh = rapid / 1_000_000_000\n return { high, low, medium, veryHigh }\n}\n\nexport const transformGasFromEtherchainV2 = (payload: EthereumGasEtherchainV2Payload): FeeData => {\n const baseFee = undefined\n const feePerGas = getFeePerGas(payload)\n const priorityFeePerGas = {}\n return { baseFee, feePerGas, priorityFeePerGas }\n}\n","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","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","/* 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":"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","names":["getFeePerGas","getBaseFee","getFeePerGas","getPriorityFeePerGas","import_regression","getBaseFee","getFeePerGas","import_regression","getBaseFee","getFeePerGas","getPriorityFeePerGas"]}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"divineGas.d.ts","sourceRoot":"","sources":["../../../src/lib/divineGas.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAA8B,MAAM,uCAAuC,CAAA;AAEtG,OAAO,EAAE,OAAO,EAAE,MAAM,4BAA4B,CAAA;AAkBpD,eAAO,MAAM,SAAS,aAAc,OAAO,EAAE,KAAG,kBAW/C,CAAA"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"divineGas.d.ts","sourceRoot":"","sources":["../../../src/lib/divineGas.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAA8B,MAAM,uCAAuC,CAAA;AAEtG,OAAO,EAAE,OAAO,EAAE,MAAM,4BAA4B,CAAA;AAkBpD,eAAO,MAAM,SAAS,aAAc,OAAO,EAAE,KAAG,kBAW/C,CAAA"}
@@ -0,0 +1,4 @@
1
+ import { EthereumGasPayload } from '@xyo-network/gas-price-payload-plugin';
2
+ import { Payload } from '@xyo-network/payload-model';
3
+ export declare const divineGas: (payloads: Payload[]) => EthereumGasPayload;
4
+ //# sourceMappingURL=divineGas.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"divineGas.d.ts","sourceRoot":"","sources":["../../../src/lib/divineGas.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAA8B,MAAM,uCAAuC,CAAA;AAEtG,OAAO,EAAE,OAAO,EAAE,MAAM,4BAA4B,CAAA;AAkBpD,eAAO,MAAM,SAAS,aAAc,OAAO,EAAE,KAAG,kBAW/C,CAAA"}
@@ -0,0 +1,33 @@
1
+ import { EthereumGasSchema } from "@xyo-network/gas-price-payload-plugin";
2
+ import { PayloadBuilder } from "@xyo-network/payload-builder";
3
+ import { average } from "./average";
4
+ import {
5
+ isEthereumGasBlocknativePayload,
6
+ isEthereumGasEtherchainV2Payload,
7
+ isEthereumGasEtherscanPayload,
8
+ isEthereumGasEthersPayload,
9
+ isEthereumGasEthgasstationPayload
10
+ } from "./identities";
11
+ import {
12
+ transformGasFromBlocknative,
13
+ transformGasFromEtherchainV2,
14
+ transformGasFromEthers,
15
+ transformGasFromEtherscan,
16
+ transformGasFromEthgasstation
17
+ } from "./transforms";
18
+ const divineGas = (payloads) => {
19
+ const blocknative = payloads.filter(isEthereumGasBlocknativePayload).map(transformGasFromBlocknative);
20
+ const etherchainV2 = payloads.filter(isEthereumGasEtherchainV2Payload).map(transformGasFromEtherchainV2);
21
+ const ethers = payloads.filter(isEthereumGasEthersPayload).map(transformGasFromEthers);
22
+ const etherscan = payloads.filter(isEthereumGasEtherscanPayload).map(transformGasFromEtherscan);
23
+ const ethgasstation = payloads.filter(isEthereumGasEthgasstationPayload).map(transformGasFromEthgasstation);
24
+ const transactionCosts = [...blocknative, ...etherchainV2, ...ethers, ...etherscan, ...ethgasstation];
25
+ const avg = average(transactionCosts);
26
+ const timestamp = Date.now();
27
+ const payload = new PayloadBuilder({ schema: EthereumGasSchema }).fields({ ...avg, timestamp }).build();
28
+ return payload;
29
+ };
30
+ export {
31
+ divineGas
32
+ };
33
+ //# sourceMappingURL=divineGas.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../../src/lib/divineGas.ts"],"sourcesContent":["import { EthereumGasPayload, EthereumGasSchema, FeeData } from '@xyo-network/gas-price-payload-plugin'\nimport { PayloadBuilder } from '@xyo-network/payload-builder'\nimport { Payload } from '@xyo-network/payload-model'\n\nimport { average } from './average'\nimport {\n isEthereumGasBlocknativePayload,\n isEthereumGasEtherchainV2Payload,\n isEthereumGasEtherscanPayload,\n isEthereumGasEthersPayload,\n isEthereumGasEthgasstationPayload,\n} from './identities'\nimport {\n transformGasFromBlocknative,\n transformGasFromEtherchainV2,\n transformGasFromEthers,\n transformGasFromEtherscan,\n transformGasFromEthgasstation,\n} from './transforms'\n\nexport const divineGas = (payloads: Payload[]): EthereumGasPayload => {\n const blocknative = payloads.filter(isEthereumGasBlocknativePayload).map(transformGasFromBlocknative)\n const etherchainV2 = payloads.filter(isEthereumGasEtherchainV2Payload).map(transformGasFromEtherchainV2)\n const ethers = payloads.filter(isEthereumGasEthersPayload).map(transformGasFromEthers)\n const etherscan = payloads.filter(isEthereumGasEtherscanPayload).map(transformGasFromEtherscan)\n const ethgasstation = payloads.filter(isEthereumGasEthgasstationPayload).map(transformGasFromEthgasstation)\n const transactionCosts: FeeData[] = [...blocknative, ...etherchainV2, ...ethers, ...etherscan, ...ethgasstation]\n const avg = average(transactionCosts)\n const timestamp = Date.now()\n const payload = new PayloadBuilder<EthereumGasPayload>({ schema: EthereumGasSchema }).fields({ ...avg, timestamp }).build()\n return payload\n}\n"],"mappings":"AAAA,SAA6B,yBAAkC;AAC/D,SAAS,sBAAsB;AAG/B,SAAS,eAAe;AACxB;AAAA,EACE;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,OACK;AACP;AAAA,EACE;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,OACK;AAEA,MAAM,YAAY,CAAC,aAA4C;AACpE,QAAM,cAAc,SAAS,OAAO,+BAA+B,EAAE,IAAI,2BAA2B;AACpG,QAAM,eAAe,SAAS,OAAO,gCAAgC,EAAE,IAAI,4BAA4B;AACvG,QAAM,SAAS,SAAS,OAAO,0BAA0B,EAAE,IAAI,sBAAsB;AACrF,QAAM,YAAY,SAAS,OAAO,6BAA6B,EAAE,IAAI,yBAAyB;AAC9F,QAAM,gBAAgB,SAAS,OAAO,iCAAiC,EAAE,IAAI,6BAA6B;AAC1G,QAAM,mBAA8B,CAAC,GAAG,aAAa,GAAG,cAAc,GAAG,QAAQ,GAAG,WAAW,GAAG,aAAa;AAC/G,QAAM,MAAM,QAAQ,gBAAgB;AACpC,QAAM,YAAY,KAAK,IAAI;AAC3B,QAAM,UAAU,IAAI,eAAmC,EAAE,QAAQ,kBAAkB,CAAC,EAAE,OAAO,EAAE,GAAG,KAAK,UAAU,CAAC,EAAE,MAAM;AAC1H,SAAO;AACT;","names":[]}
@@ -0,0 +1,60 @@
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/identities/index.ts
21
+ var identities_exports = {};
22
+ __export(identities_exports, {
23
+ isEthereumGasBlocknativePayload: () => isEthereumGasBlocknativePayload,
24
+ isEthereumGasEtherchainV2Payload: () => isEthereumGasEtherchainV2Payload,
25
+ isEthereumGasEthersPayload: () => isEthereumGasEthersPayload,
26
+ isEthereumGasEtherscanPayload: () => isEthereumGasEtherscanPayload,
27
+ isEthereumGasEthgasstationPayload: () => isEthereumGasEthgasstationPayload
28
+ });
29
+ module.exports = __toCommonJS(identities_exports);
30
+
31
+ // src/lib/identities/isEthereumGasBlocknativePayload.ts
32
+ var import_blocknative_ethereum_gas_payload_plugin = require("@xyo-network/blocknative-ethereum-gas-payload-plugin");
33
+ var isEthereumGasBlocknativePayload = (payload) => {
34
+ return payload?.schema === import_blocknative_ethereum_gas_payload_plugin.EthereumGasBlocknativeSchema;
35
+ };
36
+
37
+ // src/lib/identities/isEthereumGasEtherchainV2Payload.ts
38
+ var import_etherchain_gas_ethereum_blockchain_payload_plugins = require("@xyo-network/etherchain-gas-ethereum-blockchain-payload-plugins");
39
+ var isEthereumGasEtherchainV2Payload = (payload) => {
40
+ return payload?.schema === import_etherchain_gas_ethereum_blockchain_payload_plugins.EthereumGasEtherchainV2Schema;
41
+ };
42
+
43
+ // src/lib/identities/isEthereumGasEtherscanPayload.ts
44
+ var import_etherscan_ethereum_gas_payload_plugin = require("@xyo-network/etherscan-ethereum-gas-payload-plugin");
45
+ var isEthereumGasEtherscanPayload = (payload) => {
46
+ return payload?.schema === import_etherscan_ethereum_gas_payload_plugin.EthereumGasEtherscanSchema;
47
+ };
48
+
49
+ // src/lib/identities/isEthereumGasEthersPayload.ts
50
+ var import_ethers_ethereum_gas_payload_plugin = require("@xyo-network/ethers-ethereum-gas-payload-plugin");
51
+ var isEthereumGasEthersPayload = (payload) => {
52
+ return payload?.schema === import_ethers_ethereum_gas_payload_plugin.EthereumGasEthersSchema;
53
+ };
54
+
55
+ // src/lib/identities/isEthereumGasEthgasstationPayload.ts
56
+ var import_ethgasstation_ethereum_gas_payload_plugin = require("@xyo-network/ethgasstation-ethereum-gas-payload-plugin");
57
+ var isEthereumGasEthgasstationPayload = (payload) => {
58
+ return payload?.schema === import_ethgasstation_ethereum_gas_payload_plugin.EthereumGasEthgasstationSchema;
59
+ };
60
+ //# sourceMappingURL=index.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../../../src/lib/identities/index.ts","../../../../src/lib/identities/isEthereumGasBlocknativePayload.ts","../../../../src/lib/identities/isEthereumGasEtherchainV2Payload.ts","../../../../src/lib/identities/isEthereumGasEtherscanPayload.ts","../../../../src/lib/identities/isEthereumGasEthersPayload.ts","../../../../src/lib/identities/isEthereumGasEthgasstationPayload.ts"],"sourcesContent":["export * from './isEthereumGasBlocknativePayload'\nexport * from './isEthereumGasEtherchainV2Payload'\nexport * from './isEthereumGasEtherscanPayload'\nexport * from './isEthereumGasEthersPayload'\nexport * from './isEthereumGasEthgasstationPayload'\n","import { EthereumGasBlocknativePayload, EthereumGasBlocknativeSchema } from '@xyo-network/blocknative-ethereum-gas-payload-plugin'\nimport { Payload } from '@xyo-network/payload-model'\n\nexport const isEthereumGasBlocknativePayload = (payload?: Payload | null): payload is EthereumGasBlocknativePayload => {\n return payload?.schema === EthereumGasBlocknativeSchema\n}\n","import { EthereumGasEtherchainV2Payload, EthereumGasEtherchainV2Schema } from '@xyo-network/etherchain-gas-ethereum-blockchain-payload-plugins'\nimport { Payload } from '@xyo-network/payload-model'\n\nexport const isEthereumGasEtherchainV2Payload = (payload?: Payload | null): payload is EthereumGasEtherchainV2Payload => {\n return payload?.schema === EthereumGasEtherchainV2Schema\n}\n","import { EthereumGasEtherscanPayload, EthereumGasEtherscanSchema } from '@xyo-network/etherscan-ethereum-gas-payload-plugin'\nimport { Payload } from '@xyo-network/payload-model'\n\nexport const isEthereumGasEtherscanPayload = (payload?: Payload | null): payload is EthereumGasEtherscanPayload => {\n return payload?.schema === EthereumGasEtherscanSchema\n}\n","import { EthereumGasEthersPayload, EthereumGasEthersSchema } from '@xyo-network/ethers-ethereum-gas-payload-plugin'\nimport { Payload } from '@xyo-network/payload-model'\n\nexport const isEthereumGasEthersPayload = (payload?: Payload | null): payload is EthereumGasEthersPayload => {\n return payload?.schema === EthereumGasEthersSchema\n}\n","import { EthereumGasEthgasstationPayload, EthereumGasEthgasstationSchema } from '@xyo-network/ethgasstation-ethereum-gas-payload-plugin'\nimport { Payload } from '@xyo-network/payload-model'\n\nexport const isEthereumGasEthgasstationPayload = (payload?: Payload | null): payload is EthereumGasEthgasstationPayload => {\n return payload?.schema === EthereumGasEthgasstationSchema\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;;;ACAA,qDAA4E;AAGrE,IAAM,kCAAkC,CAAC,YAAuE;AACrH,SAAO,SAAS,WAAW;AAC7B;;;ACLA,gEAA8E;AAGvE,IAAM,mCAAmC,CAAC,YAAwE;AACvH,SAAO,SAAS,WAAW;AAC7B;;;ACLA,mDAAwE;AAGjE,IAAM,gCAAgC,CAAC,YAAqE;AACjH,SAAO,SAAS,WAAW;AAC7B;;;ACLA,gDAAkE;AAG3D,IAAM,6BAA6B,CAAC,YAAkE;AAC3G,SAAO,SAAS,WAAW;AAC7B;;;ACLA,uDAAgF;AAGzE,IAAM,oCAAoC,CAAC,YAAyE;AACzH,SAAO,SAAS,WAAW;AAC7B;","names":[]}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/lib/identities/index.ts"],"names":[],"mappings":"AAAA,cAAc,mCAAmC,CAAA;AACjD,cAAc,oCAAoC,CAAA;AAClD,cAAc,iCAAiC,CAAA;AAC/C,cAAc,8BAA8B,CAAA;AAC5C,cAAc,qCAAqC,CAAA"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/lib/identities/index.ts"],"names":[],"mappings":"AAAA,cAAc,mCAAmC,CAAA;AACjD,cAAc,oCAAoC,CAAA;AAClD,cAAc,iCAAiC,CAAA;AAC/C,cAAc,8BAA8B,CAAA;AAC5C,cAAc,qCAAqC,CAAA"}
@@ -0,0 +1,6 @@
1
+ export * from './isEthereumGasBlocknativePayload';
2
+ export * from './isEthereumGasEtherchainV2Payload';
3
+ export * from './isEthereumGasEtherscanPayload';
4
+ export * from './isEthereumGasEthersPayload';
5
+ export * from './isEthereumGasEthgasstationPayload';
6
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/lib/identities/index.ts"],"names":[],"mappings":"AAAA,cAAc,mCAAmC,CAAA;AACjD,cAAc,oCAAoC,CAAA;AAClD,cAAc,iCAAiC,CAAA;AAC/C,cAAc,8BAA8B,CAAA;AAC5C,cAAc,qCAAqC,CAAA"}
@@ -0,0 +1,6 @@
1
+ export * from "./isEthereumGasBlocknativePayload";
2
+ export * from "./isEthereumGasEtherchainV2Payload";
3
+ export * from "./isEthereumGasEtherscanPayload";
4
+ export * from "./isEthereumGasEthersPayload";
5
+ export * from "./isEthereumGasEthgasstationPayload";
6
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../../../src/lib/identities/index.ts"],"sourcesContent":["export * from './isEthereumGasBlocknativePayload'\nexport * from './isEthereumGasEtherchainV2Payload'\nexport * from './isEthereumGasEtherscanPayload'\nexport * from './isEthereumGasEthersPayload'\nexport * from './isEthereumGasEthgasstationPayload'\n"],"mappings":"AAAA,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;","names":[]}
@@ -0,0 +1,30 @@
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/identities/isEthereumGasBlocknativePayload.ts
21
+ var isEthereumGasBlocknativePayload_exports = {};
22
+ __export(isEthereumGasBlocknativePayload_exports, {
23
+ isEthereumGasBlocknativePayload: () => isEthereumGasBlocknativePayload
24
+ });
25
+ module.exports = __toCommonJS(isEthereumGasBlocknativePayload_exports);
26
+ var import_blocknative_ethereum_gas_payload_plugin = require("@xyo-network/blocknative-ethereum-gas-payload-plugin");
27
+ var isEthereumGasBlocknativePayload = (payload) => {
28
+ return payload?.schema === import_blocknative_ethereum_gas_payload_plugin.EthereumGasBlocknativeSchema;
29
+ };
30
+ //# sourceMappingURL=isEthereumGasBlocknativePayload.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../../../src/lib/identities/isEthereumGasBlocknativePayload.ts"],"sourcesContent":["import { EthereumGasBlocknativePayload, EthereumGasBlocknativeSchema } from '@xyo-network/blocknative-ethereum-gas-payload-plugin'\nimport { Payload } from '@xyo-network/payload-model'\n\nexport const isEthereumGasBlocknativePayload = (payload?: Payload | null): payload is EthereumGasBlocknativePayload => {\n return payload?.schema === EthereumGasBlocknativeSchema\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,qDAA4E;AAGrE,IAAM,kCAAkC,CAAC,YAAuE;AACrH,SAAO,SAAS,WAAW;AAC7B;","names":[]}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"isEthereumGasBlocknativePayload.d.ts","sourceRoot":"","sources":["../../../../src/lib/identities/isEthereumGasBlocknativePayload.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,OAAO,EAAE,MAAM,4BAA4B,CAAA;AAEpD,eAAO,MAAM,+BAA+B,aAAc,OAAO,GAAG,IAAI;;;CAEvE,CAAA"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"isEthereumGasBlocknativePayload.d.ts","sourceRoot":"","sources":["../../../../src/lib/identities/isEthereumGasBlocknativePayload.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,OAAO,EAAE,MAAM,4BAA4B,CAAA;AAEpD,eAAO,MAAM,+BAA+B,aAAc,OAAO,GAAG,IAAI;;;CAEvE,CAAA"}
@@ -0,0 +1,6 @@
1
+ import { Payload } from '@xyo-network/payload-model';
2
+ export declare const isEthereumGasBlocknativePayload: (payload?: Payload | null) => payload is import("@xyo-network/payload-model").SchemaFields & import("@xyo-network/payload-model").PayloadFields & import("@xyo-network/blocknative-ethereum-gas-payload-plugin").EthereumGasBlocknativeResponse & {
3
+ schema: "network.xyo.blockchain.ethereum.gas.blocknative";
4
+ timestamp: number;
5
+ };
6
+ //# sourceMappingURL=isEthereumGasBlocknativePayload.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"isEthereumGasBlocknativePayload.d.ts","sourceRoot":"","sources":["../../../../src/lib/identities/isEthereumGasBlocknativePayload.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,OAAO,EAAE,MAAM,4BAA4B,CAAA;AAEpD,eAAO,MAAM,+BAA+B,aAAc,OAAO,GAAG,IAAI;;;CAEvE,CAAA"}
@@ -0,0 +1,8 @@
1
+ import { EthereumGasBlocknativeSchema } from "@xyo-network/blocknative-ethereum-gas-payload-plugin";
2
+ const isEthereumGasBlocknativePayload = (payload) => {
3
+ return payload?.schema === EthereumGasBlocknativeSchema;
4
+ };
5
+ export {
6
+ isEthereumGasBlocknativePayload
7
+ };
8
+ //# sourceMappingURL=isEthereumGasBlocknativePayload.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../../../src/lib/identities/isEthereumGasBlocknativePayload.ts"],"sourcesContent":["import { EthereumGasBlocknativePayload, EthereumGasBlocknativeSchema } from '@xyo-network/blocknative-ethereum-gas-payload-plugin'\nimport { Payload } from '@xyo-network/payload-model'\n\nexport const isEthereumGasBlocknativePayload = (payload?: Payload | null): payload is EthereumGasBlocknativePayload => {\n return payload?.schema === EthereumGasBlocknativeSchema\n}\n"],"mappings":"AAAA,SAAwC,oCAAoC;AAGrE,MAAM,kCAAkC,CAAC,YAAuE;AACrH,SAAO,SAAS,WAAW;AAC7B;","names":[]}
@@ -0,0 +1,30 @@
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/identities/isEthereumGasEtherchainV2Payload.ts
21
+ var isEthereumGasEtherchainV2Payload_exports = {};
22
+ __export(isEthereumGasEtherchainV2Payload_exports, {
23
+ isEthereumGasEtherchainV2Payload: () => isEthereumGasEtherchainV2Payload
24
+ });
25
+ module.exports = __toCommonJS(isEthereumGasEtherchainV2Payload_exports);
26
+ var import_etherchain_gas_ethereum_blockchain_payload_plugins = require("@xyo-network/etherchain-gas-ethereum-blockchain-payload-plugins");
27
+ var isEthereumGasEtherchainV2Payload = (payload) => {
28
+ return payload?.schema === import_etherchain_gas_ethereum_blockchain_payload_plugins.EthereumGasEtherchainV2Schema;
29
+ };
30
+ //# sourceMappingURL=isEthereumGasEtherchainV2Payload.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../../../src/lib/identities/isEthereumGasEtherchainV2Payload.ts"],"sourcesContent":["import { EthereumGasEtherchainV2Payload, EthereumGasEtherchainV2Schema } from '@xyo-network/etherchain-gas-ethereum-blockchain-payload-plugins'\nimport { Payload } from '@xyo-network/payload-model'\n\nexport const isEthereumGasEtherchainV2Payload = (payload?: Payload | null): payload is EthereumGasEtherchainV2Payload => {\n return payload?.schema === EthereumGasEtherchainV2Schema\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,gEAA8E;AAGvE,IAAM,mCAAmC,CAAC,YAAwE;AACvH,SAAO,SAAS,WAAW;AAC7B;","names":[]}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"isEthereumGasEtherchainV2Payload.d.ts","sourceRoot":"","sources":["../../../../src/lib/identities/isEthereumGasEtherchainV2Payload.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,OAAO,EAAE,MAAM,4BAA4B,CAAA;AAEpD,eAAO,MAAM,gCAAgC,aAAc,OAAO,GAAG,IAAI;;;CAExE,CAAA"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"isEthereumGasEtherchainV2Payload.d.ts","sourceRoot":"","sources":["../../../../src/lib/identities/isEthereumGasEtherchainV2Payload.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,OAAO,EAAE,MAAM,4BAA4B,CAAA;AAEpD,eAAO,MAAM,gCAAgC,aAAc,OAAO,GAAG,IAAI;;;CAExE,CAAA"}
@@ -0,0 +1,6 @@
1
+ import { Payload } from '@xyo-network/payload-model';
2
+ export declare const isEthereumGasEtherchainV2Payload: (payload?: Payload | null) => payload is import("@xyo-network/payload-model").SchemaFields & import("@xyo-network/payload-model").PayloadFields & import("@xyo-network/etherchain-gas-ethereum-blockchain-payload-plugins").EthereumGasEtherchainV2Response & {
3
+ schema: "network.xyo.blockchain.ethereum.gas.etherchain.v2";
4
+ timestamp: number;
5
+ };
6
+ //# sourceMappingURL=isEthereumGasEtherchainV2Payload.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"isEthereumGasEtherchainV2Payload.d.ts","sourceRoot":"","sources":["../../../../src/lib/identities/isEthereumGasEtherchainV2Payload.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,OAAO,EAAE,MAAM,4BAA4B,CAAA;AAEpD,eAAO,MAAM,gCAAgC,aAAc,OAAO,GAAG,IAAI;;;CAExE,CAAA"}
@@ -0,0 +1,8 @@
1
+ import { EthereumGasEtherchainV2Schema } from "@xyo-network/etherchain-gas-ethereum-blockchain-payload-plugins";
2
+ const isEthereumGasEtherchainV2Payload = (payload) => {
3
+ return payload?.schema === EthereumGasEtherchainV2Schema;
4
+ };
5
+ export {
6
+ isEthereumGasEtherchainV2Payload
7
+ };
8
+ //# sourceMappingURL=isEthereumGasEtherchainV2Payload.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../../../src/lib/identities/isEthereumGasEtherchainV2Payload.ts"],"sourcesContent":["import { EthereumGasEtherchainV2Payload, EthereumGasEtherchainV2Schema } from '@xyo-network/etherchain-gas-ethereum-blockchain-payload-plugins'\nimport { Payload } from '@xyo-network/payload-model'\n\nexport const isEthereumGasEtherchainV2Payload = (payload?: Payload | null): payload is EthereumGasEtherchainV2Payload => {\n return payload?.schema === EthereumGasEtherchainV2Schema\n}\n"],"mappings":"AAAA,SAAyC,qCAAqC;AAGvE,MAAM,mCAAmC,CAAC,YAAwE;AACvH,SAAO,SAAS,WAAW;AAC7B;","names":[]}
@@ -0,0 +1,30 @@
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/identities/isEthereumGasEthersPayload.ts
21
+ var isEthereumGasEthersPayload_exports = {};
22
+ __export(isEthereumGasEthersPayload_exports, {
23
+ isEthereumGasEthersPayload: () => isEthereumGasEthersPayload
24
+ });
25
+ module.exports = __toCommonJS(isEthereumGasEthersPayload_exports);
26
+ var import_ethers_ethereum_gas_payload_plugin = require("@xyo-network/ethers-ethereum-gas-payload-plugin");
27
+ var isEthereumGasEthersPayload = (payload) => {
28
+ return payload?.schema === import_ethers_ethereum_gas_payload_plugin.EthereumGasEthersSchema;
29
+ };
30
+ //# sourceMappingURL=isEthereumGasEthersPayload.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../../../src/lib/identities/isEthereumGasEthersPayload.ts"],"sourcesContent":["import { EthereumGasEthersPayload, EthereumGasEthersSchema } from '@xyo-network/ethers-ethereum-gas-payload-plugin'\nimport { Payload } from '@xyo-network/payload-model'\n\nexport const isEthereumGasEthersPayload = (payload?: Payload | null): payload is EthereumGasEthersPayload => {\n return payload?.schema === EthereumGasEthersSchema\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,gDAAkE;AAG3D,IAAM,6BAA6B,CAAC,YAAkE;AAC3G,SAAO,SAAS,WAAW;AAC7B;","names":[]}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"isEthereumGasEthersPayload.d.ts","sourceRoot":"","sources":["../../../../src/lib/identities/isEthereumGasEthersPayload.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,OAAO,EAAE,MAAM,4BAA4B,CAAA;AAEpD,eAAO,MAAM,0BAA0B,aAAc,OAAO,GAAG,IAAI;;;CAElE,CAAA"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"isEthereumGasEthersPayload.d.ts","sourceRoot":"","sources":["../../../../src/lib/identities/isEthereumGasEthersPayload.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,OAAO,EAAE,MAAM,4BAA4B,CAAA;AAEpD,eAAO,MAAM,0BAA0B,aAAc,OAAO,GAAG,IAAI;;;CAElE,CAAA"}