@xyo-network/gas-price-plugin 2.75.14 → 2.75.16

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 (217) hide show
  1. package/dist/browser/Diviner.d.cts +1 -1
  2. package/dist/browser/Diviner.d.cts.map +1 -1
  3. package/dist/browser/Diviner.d.mts +1 -1
  4. package/dist/browser/Diviner.d.mts.map +1 -1
  5. package/dist/browser/Diviner.d.ts +1 -1
  6. package/dist/browser/Diviner.d.ts.map +1 -1
  7. package/dist/browser/Plugin.d.cts +2 -2
  8. package/dist/browser/Plugin.d.mts +2 -2
  9. package/dist/browser/Plugin.d.ts +2 -2
  10. package/dist/browser/index.cjs.map +1 -1
  11. package/dist/browser/index.js.map +1 -1
  12. package/dist/docs.json +799 -402
  13. package/dist/node/Diviner.d.cts +1 -1
  14. package/dist/node/Diviner.d.cts.map +1 -1
  15. package/dist/node/Diviner.d.mts +1 -1
  16. package/dist/node/Diviner.d.mts.map +1 -1
  17. package/dist/node/Diviner.d.ts +1 -1
  18. package/dist/node/Diviner.d.ts.map +1 -1
  19. package/dist/node/Plugin.d.cts +2 -2
  20. package/dist/node/Plugin.d.mts +2 -2
  21. package/dist/node/Plugin.d.ts +2 -2
  22. package/dist/node/index.js.map +1 -1
  23. package/dist/node/index.mjs.map +1 -1
  24. package/package.json +22 -22
  25. package/src/Diviner.ts +1 -1
  26. package/dist/browser/Diviner.cjs +0 -257
  27. package/dist/browser/Diviner.cjs.map +0 -1
  28. package/dist/browser/Diviner.js +0 -236
  29. package/dist/browser/Diviner.js.map +0 -1
  30. package/dist/browser/Plugin.cjs +0 -272
  31. package/dist/browser/Plugin.cjs.map +0 -1
  32. package/dist/browser/Plugin.js +0 -251
  33. package/dist/browser/Plugin.js.map +0 -1
  34. package/dist/browser/Schema.cjs +0 -29
  35. package/dist/browser/Schema.cjs.map +0 -1
  36. package/dist/browser/Schema.js +0 -8
  37. package/dist/browser/Schema.js.map +0 -1
  38. package/dist/browser/lib/average.cjs +0 -50
  39. package/dist/browser/lib/average.cjs.map +0 -1
  40. package/dist/browser/lib/average.js +0 -29
  41. package/dist/browser/lib/average.js.map +0 -1
  42. package/dist/browser/lib/divineGas.cjs +0 -240
  43. package/dist/browser/lib/divineGas.cjs.map +0 -1
  44. package/dist/browser/lib/divineGas.js +0 -219
  45. package/dist/browser/lib/divineGas.js.map +0 -1
  46. package/dist/browser/lib/identities/index.cjs +0 -60
  47. package/dist/browser/lib/identities/index.cjs.map +0 -1
  48. package/dist/browser/lib/identities/index.js +0 -37
  49. package/dist/browser/lib/identities/index.js.map +0 -1
  50. package/dist/browser/lib/identities/isEthereumGasBlocknativePayload.cjs +0 -30
  51. package/dist/browser/lib/identities/isEthereumGasBlocknativePayload.cjs.map +0 -1
  52. package/dist/browser/lib/identities/isEthereumGasBlocknativePayload.js +0 -9
  53. package/dist/browser/lib/identities/isEthereumGasBlocknativePayload.js.map +0 -1
  54. package/dist/browser/lib/identities/isEthereumGasEtherchainV2Payload.cjs +0 -30
  55. package/dist/browser/lib/identities/isEthereumGasEtherchainV2Payload.cjs.map +0 -1
  56. package/dist/browser/lib/identities/isEthereumGasEtherchainV2Payload.js +0 -9
  57. package/dist/browser/lib/identities/isEthereumGasEtherchainV2Payload.js.map +0 -1
  58. package/dist/browser/lib/identities/isEthereumGasEthersPayload.cjs +0 -30
  59. package/dist/browser/lib/identities/isEthereumGasEthersPayload.cjs.map +0 -1
  60. package/dist/browser/lib/identities/isEthereumGasEthersPayload.js +0 -9
  61. package/dist/browser/lib/identities/isEthereumGasEthersPayload.js.map +0 -1
  62. package/dist/browser/lib/identities/isEthereumGasEtherscanPayload.cjs +0 -30
  63. package/dist/browser/lib/identities/isEthereumGasEtherscanPayload.cjs.map +0 -1
  64. package/dist/browser/lib/identities/isEthereumGasEtherscanPayload.js +0 -9
  65. package/dist/browser/lib/identities/isEthereumGasEtherscanPayload.js.map +0 -1
  66. package/dist/browser/lib/identities/isEthereumGasEthgasstationPayload.cjs +0 -30
  67. package/dist/browser/lib/identities/isEthereumGasEthgasstationPayload.cjs.map +0 -1
  68. package/dist/browser/lib/identities/isEthereumGasEthgasstationPayload.js +0 -9
  69. package/dist/browser/lib/identities/isEthereumGasEthgasstationPayload.js.map +0 -1
  70. package/dist/browser/lib/index.cjs +0 -242
  71. package/dist/browser/lib/index.cjs.map +0 -1
  72. package/dist/browser/lib/index.js +0 -219
  73. package/dist/browser/lib/index.js.map +0 -1
  74. package/dist/browser/lib/transforms/index.cjs +0 -172
  75. package/dist/browser/lib/transforms/index.cjs.map +0 -1
  76. package/dist/browser/lib/transforms/index.js +0 -149
  77. package/dist/browser/lib/transforms/index.js.map +0 -1
  78. package/dist/browser/lib/transforms/transformGasFromBlocknative.cjs +0 -70
  79. package/dist/browser/lib/transforms/transformGasFromBlocknative.cjs.map +0 -1
  80. package/dist/browser/lib/transforms/transformGasFromBlocknative.js +0 -49
  81. package/dist/browser/lib/transforms/transformGasFromBlocknative.js.map +0 -1
  82. package/dist/browser/lib/transforms/transformGasFromEtherchainV2.cjs +0 -40
  83. package/dist/browser/lib/transforms/transformGasFromEtherchainV2.cjs.map +0 -1
  84. package/dist/browser/lib/transforms/transformGasFromEtherchainV2.js +0 -19
  85. package/dist/browser/lib/transforms/transformGasFromEtherchainV2.js.map +0 -1
  86. package/dist/browser/lib/transforms/transformGasFromEthers.cjs +0 -46
  87. package/dist/browser/lib/transforms/transformGasFromEthers.cjs.map +0 -1
  88. package/dist/browser/lib/transforms/transformGasFromEthers.js +0 -25
  89. package/dist/browser/lib/transforms/transformGasFromEthers.js.map +0 -1
  90. package/dist/browser/lib/transforms/transformGasFromEtherscan.cjs +0 -49
  91. package/dist/browser/lib/transforms/transformGasFromEtherscan.cjs.map +0 -1
  92. package/dist/browser/lib/transforms/transformGasFromEtherscan.js +0 -28
  93. package/dist/browser/lib/transforms/transformGasFromEtherscan.js.map +0 -1
  94. package/dist/browser/lib/transforms/transformGasFromEthgasstation.cjs +0 -57
  95. package/dist/browser/lib/transforms/transformGasFromEthgasstation.cjs.map +0 -1
  96. package/dist/browser/lib/transforms/transformGasFromEthgasstation.js +0 -36
  97. package/dist/browser/lib/transforms/transformGasFromEthgasstation.js.map +0 -1
  98. package/dist/browser/test/index.cjs +0 -189
  99. package/dist/browser/test/index.cjs.map +0 -1
  100. package/dist/browser/test/index.js +0 -166
  101. package/dist/browser/test/index.js.map +0 -1
  102. package/dist/browser/test/sampleBlocknativeGas.cjs +0 -118
  103. package/dist/browser/test/sampleBlocknativeGas.cjs.map +0 -1
  104. package/dist/browser/test/sampleBlocknativeGas.js +0 -97
  105. package/dist/browser/test/sampleBlocknativeGas.js.map +0 -1
  106. package/dist/browser/test/sampleEtherchainGasV2.cjs +0 -40
  107. package/dist/browser/test/sampleEtherchainGasV2.cjs.map +0 -1
  108. package/dist/browser/test/sampleEtherchainGasV2.js +0 -19
  109. package/dist/browser/test/sampleEtherchainGasV2.js.map +0 -1
  110. package/dist/browser/test/sampleEthersGas.cjs +0 -35
  111. package/dist/browser/test/sampleEthersGas.cjs.map +0 -1
  112. package/dist/browser/test/sampleEthersGas.js +0 -14
  113. package/dist/browser/test/sampleEthersGas.js.map +0 -1
  114. package/dist/browser/test/sampleEtherscanGas.cjs +0 -41
  115. package/dist/browser/test/sampleEtherscanGas.cjs.map +0 -1
  116. package/dist/browser/test/sampleEtherscanGas.js +0 -20
  117. package/dist/browser/test/sampleEtherscanGas.js.map +0 -1
  118. package/dist/browser/test/sampleEthgasstationGas.cjs +0 -45
  119. package/dist/browser/test/sampleEthgasstationGas.cjs.map +0 -1
  120. package/dist/browser/test/sampleEthgasstationGas.js +0 -24
  121. package/dist/browser/test/sampleEthgasstationGas.js.map +0 -1
  122. package/dist/node/Diviner.js +0 -264
  123. package/dist/node/Diviner.js.map +0 -1
  124. package/dist/node/Diviner.mjs +0 -239
  125. package/dist/node/Diviner.mjs.map +0 -1
  126. package/dist/node/Plugin.js +0 -279
  127. package/dist/node/Plugin.js.map +0 -1
  128. package/dist/node/Plugin.mjs +0 -254
  129. package/dist/node/Plugin.mjs.map +0 -1
  130. package/dist/node/Schema.js +0 -34
  131. package/dist/node/Schema.js.map +0 -1
  132. package/dist/node/Schema.mjs +0 -8
  133. package/dist/node/Schema.mjs.map +0 -1
  134. package/dist/node/lib/average.js +0 -54
  135. package/dist/node/lib/average.js.map +0 -1
  136. package/dist/node/lib/average.mjs +0 -29
  137. package/dist/node/lib/average.mjs.map +0 -1
  138. package/dist/node/lib/divineGas.js +0 -247
  139. package/dist/node/lib/divineGas.js.map +0 -1
  140. package/dist/node/lib/divineGas.mjs +0 -222
  141. package/dist/node/lib/divineGas.mjs.map +0 -1
  142. package/dist/node/lib/identities/index.js +0 -68
  143. package/dist/node/lib/identities/index.js.map +0 -1
  144. package/dist/node/lib/identities/index.mjs +0 -37
  145. package/dist/node/lib/identities/index.mjs.map +0 -1
  146. package/dist/node/lib/identities/isEthereumGasBlocknativePayload.js +0 -34
  147. package/dist/node/lib/identities/isEthereumGasBlocknativePayload.js.map +0 -1
  148. package/dist/node/lib/identities/isEthereumGasBlocknativePayload.mjs +0 -9
  149. package/dist/node/lib/identities/isEthereumGasBlocknativePayload.mjs.map +0 -1
  150. package/dist/node/lib/identities/isEthereumGasEtherchainV2Payload.js +0 -34
  151. package/dist/node/lib/identities/isEthereumGasEtherchainV2Payload.js.map +0 -1
  152. package/dist/node/lib/identities/isEthereumGasEtherchainV2Payload.mjs +0 -9
  153. package/dist/node/lib/identities/isEthereumGasEtherchainV2Payload.mjs.map +0 -1
  154. package/dist/node/lib/identities/isEthereumGasEthersPayload.js +0 -34
  155. package/dist/node/lib/identities/isEthereumGasEthersPayload.js.map +0 -1
  156. package/dist/node/lib/identities/isEthereumGasEthersPayload.mjs +0 -9
  157. package/dist/node/lib/identities/isEthereumGasEthersPayload.mjs.map +0 -1
  158. package/dist/node/lib/identities/isEthereumGasEtherscanPayload.js +0 -34
  159. package/dist/node/lib/identities/isEthereumGasEtherscanPayload.js.map +0 -1
  160. package/dist/node/lib/identities/isEthereumGasEtherscanPayload.mjs +0 -9
  161. package/dist/node/lib/identities/isEthereumGasEtherscanPayload.mjs.map +0 -1
  162. package/dist/node/lib/identities/isEthereumGasEthgasstationPayload.js +0 -34
  163. package/dist/node/lib/identities/isEthereumGasEthgasstationPayload.js.map +0 -1
  164. package/dist/node/lib/identities/isEthereumGasEthgasstationPayload.mjs +0 -9
  165. package/dist/node/lib/identities/isEthereumGasEthgasstationPayload.mjs.map +0 -1
  166. package/dist/node/lib/index.js +0 -249
  167. package/dist/node/lib/index.js.map +0 -1
  168. package/dist/node/lib/index.mjs +0 -222
  169. package/dist/node/lib/index.mjs.map +0 -1
  170. package/dist/node/lib/transforms/index.js +0 -183
  171. package/dist/node/lib/transforms/index.js.map +0 -1
  172. package/dist/node/lib/transforms/index.mjs +0 -152
  173. package/dist/node/lib/transforms/index.mjs.map +0 -1
  174. package/dist/node/lib/transforms/transformGasFromBlocknative.js +0 -77
  175. package/dist/node/lib/transforms/transformGasFromBlocknative.js.map +0 -1
  176. package/dist/node/lib/transforms/transformGasFromBlocknative.mjs +0 -52
  177. package/dist/node/lib/transforms/transformGasFromBlocknative.mjs.map +0 -1
  178. package/dist/node/lib/transforms/transformGasFromEtherchainV2.js +0 -44
  179. package/dist/node/lib/transforms/transformGasFromEtherchainV2.js.map +0 -1
  180. package/dist/node/lib/transforms/transformGasFromEtherchainV2.mjs +0 -19
  181. package/dist/node/lib/transforms/transformGasFromEtherchainV2.mjs.map +0 -1
  182. package/dist/node/lib/transforms/transformGasFromEthers.js +0 -50
  183. package/dist/node/lib/transforms/transformGasFromEthers.js.map +0 -1
  184. package/dist/node/lib/transforms/transformGasFromEthers.mjs +0 -25
  185. package/dist/node/lib/transforms/transformGasFromEthers.mjs.map +0 -1
  186. package/dist/node/lib/transforms/transformGasFromEtherscan.js +0 -53
  187. package/dist/node/lib/transforms/transformGasFromEtherscan.js.map +0 -1
  188. package/dist/node/lib/transforms/transformGasFromEtherscan.mjs +0 -28
  189. package/dist/node/lib/transforms/transformGasFromEtherscan.mjs.map +0 -1
  190. package/dist/node/lib/transforms/transformGasFromEthgasstation.js +0 -61
  191. package/dist/node/lib/transforms/transformGasFromEthgasstation.js.map +0 -1
  192. package/dist/node/lib/transforms/transformGasFromEthgasstation.mjs +0 -36
  193. package/dist/node/lib/transforms/transformGasFromEthgasstation.mjs.map +0 -1
  194. package/dist/node/test/index.js +0 -197
  195. package/dist/node/test/index.js.map +0 -1
  196. package/dist/node/test/index.mjs +0 -166
  197. package/dist/node/test/index.mjs.map +0 -1
  198. package/dist/node/test/sampleBlocknativeGas.js +0 -122
  199. package/dist/node/test/sampleBlocknativeGas.js.map +0 -1
  200. package/dist/node/test/sampleBlocknativeGas.mjs +0 -97
  201. package/dist/node/test/sampleBlocknativeGas.mjs.map +0 -1
  202. package/dist/node/test/sampleEtherchainGasV2.js +0 -44
  203. package/dist/node/test/sampleEtherchainGasV2.js.map +0 -1
  204. package/dist/node/test/sampleEtherchainGasV2.mjs +0 -19
  205. package/dist/node/test/sampleEtherchainGasV2.mjs.map +0 -1
  206. package/dist/node/test/sampleEthersGas.js +0 -39
  207. package/dist/node/test/sampleEthersGas.js.map +0 -1
  208. package/dist/node/test/sampleEthersGas.mjs +0 -14
  209. package/dist/node/test/sampleEthersGas.mjs.map +0 -1
  210. package/dist/node/test/sampleEtherscanGas.js +0 -45
  211. package/dist/node/test/sampleEtherscanGas.js.map +0 -1
  212. package/dist/node/test/sampleEtherscanGas.mjs +0 -20
  213. package/dist/node/test/sampleEtherscanGas.mjs.map +0 -1
  214. package/dist/node/test/sampleEthgasstationGas.js +0 -49
  215. package/dist/node/test/sampleEthgasstationGas.js.map +0 -1
  216. package/dist/node/test/sampleEthgasstationGas.mjs +0 -24
  217. package/dist/node/test/sampleEthgasstationGas.mjs.map +0 -1
@@ -1,60 +0,0 @@
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
@@ -1 +0,0 @@
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":[]}
@@ -1,37 +0,0 @@
1
- // src/lib/identities/isEthereumGasBlocknativePayload.ts
2
- import { EthereumGasBlocknativeSchema } from "@xyo-network/blocknative-ethereum-gas-payload-plugin";
3
- var isEthereumGasBlocknativePayload = (payload) => {
4
- return payload?.schema === EthereumGasBlocknativeSchema;
5
- };
6
-
7
- // src/lib/identities/isEthereumGasEtherchainV2Payload.ts
8
- import { EthereumGasEtherchainV2Schema } from "@xyo-network/etherchain-gas-ethereum-blockchain-payload-plugins";
9
- var isEthereumGasEtherchainV2Payload = (payload) => {
10
- return payload?.schema === EthereumGasEtherchainV2Schema;
11
- };
12
-
13
- // src/lib/identities/isEthereumGasEtherscanPayload.ts
14
- import { EthereumGasEtherscanSchema } from "@xyo-network/etherscan-ethereum-gas-payload-plugin";
15
- var isEthereumGasEtherscanPayload = (payload) => {
16
- return payload?.schema === EthereumGasEtherscanSchema;
17
- };
18
-
19
- // src/lib/identities/isEthereumGasEthersPayload.ts
20
- import { EthereumGasEthersSchema } from "@xyo-network/ethers-ethereum-gas-payload-plugin";
21
- var isEthereumGasEthersPayload = (payload) => {
22
- return payload?.schema === EthereumGasEthersSchema;
23
- };
24
-
25
- // src/lib/identities/isEthereumGasEthgasstationPayload.ts
26
- import { EthereumGasEthgasstationSchema } from "@xyo-network/ethgasstation-ethereum-gas-payload-plugin";
27
- var isEthereumGasEthgasstationPayload = (payload) => {
28
- return payload?.schema === EthereumGasEthgasstationSchema;
29
- };
30
- export {
31
- isEthereumGasBlocknativePayload,
32
- isEthereumGasEtherchainV2Payload,
33
- isEthereumGasEthersPayload,
34
- isEthereumGasEtherscanPayload,
35
- isEthereumGasEthgasstationPayload
36
- };
37
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../../../../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":["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,SAAwC,oCAAoC;AAGrE,IAAM,kCAAkC,CAAC,YAAuE;AACrH,SAAO,SAAS,WAAW;AAC7B;;;ACLA,SAAyC,qCAAqC;AAGvE,IAAM,mCAAmC,CAAC,YAAwE;AACvH,SAAO,SAAS,WAAW;AAC7B;;;ACLA,SAAsC,kCAAkC;AAGjE,IAAM,gCAAgC,CAAC,YAAqE;AACjH,SAAO,SAAS,WAAW;AAC7B;;;ACLA,SAAmC,+BAA+B;AAG3D,IAAM,6BAA6B,CAAC,YAAkE;AAC3G,SAAO,SAAS,WAAW;AAC7B;;;ACLA,SAA0C,sCAAsC;AAGzE,IAAM,oCAAoC,CAAC,YAAyE;AACzH,SAAO,SAAS,WAAW;AAC7B;","names":[]}
@@ -1,30 +0,0 @@
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
@@ -1 +0,0 @@
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":[]}
@@ -1,9 +0,0 @@
1
- // src/lib/identities/isEthereumGasBlocknativePayload.ts
2
- import { EthereumGasBlocknativeSchema } from "@xyo-network/blocknative-ethereum-gas-payload-plugin";
3
- var isEthereumGasBlocknativePayload = (payload) => {
4
- return payload?.schema === EthereumGasBlocknativeSchema;
5
- };
6
- export {
7
- isEthereumGasBlocknativePayload
8
- };
9
- //# sourceMappingURL=isEthereumGasBlocknativePayload.js.map
@@ -1 +0,0 @@
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,IAAM,kCAAkC,CAAC,YAAuE;AACrH,SAAO,SAAS,WAAW;AAC7B;","names":[]}
@@ -1,30 +0,0 @@
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
@@ -1 +0,0 @@
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":[]}
@@ -1,9 +0,0 @@
1
- // src/lib/identities/isEthereumGasEtherchainV2Payload.ts
2
- import { EthereumGasEtherchainV2Schema } from "@xyo-network/etherchain-gas-ethereum-blockchain-payload-plugins";
3
- var isEthereumGasEtherchainV2Payload = (payload) => {
4
- return payload?.schema === EthereumGasEtherchainV2Schema;
5
- };
6
- export {
7
- isEthereumGasEtherchainV2Payload
8
- };
9
- //# sourceMappingURL=isEthereumGasEtherchainV2Payload.js.map
@@ -1 +0,0 @@
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,IAAM,mCAAmC,CAAC,YAAwE;AACvH,SAAO,SAAS,WAAW;AAC7B;","names":[]}
@@ -1,30 +0,0 @@
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
@@ -1 +0,0 @@
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":[]}
@@ -1,9 +0,0 @@
1
- // src/lib/identities/isEthereumGasEthersPayload.ts
2
- import { EthereumGasEthersSchema } from "@xyo-network/ethers-ethereum-gas-payload-plugin";
3
- var isEthereumGasEthersPayload = (payload) => {
4
- return payload?.schema === EthereumGasEthersSchema;
5
- };
6
- export {
7
- isEthereumGasEthersPayload
8
- };
9
- //# sourceMappingURL=isEthereumGasEthersPayload.js.map
@@ -1 +0,0 @@
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,SAAmC,+BAA+B;AAG3D,IAAM,6BAA6B,CAAC,YAAkE;AAC3G,SAAO,SAAS,WAAW;AAC7B;","names":[]}
@@ -1,30 +0,0 @@
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/isEthereumGasEtherscanPayload.ts
21
- var isEthereumGasEtherscanPayload_exports = {};
22
- __export(isEthereumGasEtherscanPayload_exports, {
23
- isEthereumGasEtherscanPayload: () => isEthereumGasEtherscanPayload
24
- });
25
- module.exports = __toCommonJS(isEthereumGasEtherscanPayload_exports);
26
- var import_etherscan_ethereum_gas_payload_plugin = require("@xyo-network/etherscan-ethereum-gas-payload-plugin");
27
- var isEthereumGasEtherscanPayload = (payload) => {
28
- return payload?.schema === import_etherscan_ethereum_gas_payload_plugin.EthereumGasEtherscanSchema;
29
- };
30
- //# sourceMappingURL=isEthereumGasEtherscanPayload.cjs.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../../../../src/lib/identities/isEthereumGasEtherscanPayload.ts"],"sourcesContent":["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"],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,mDAAwE;AAGjE,IAAM,gCAAgC,CAAC,YAAqE;AACjH,SAAO,SAAS,WAAW;AAC7B;","names":[]}
@@ -1,9 +0,0 @@
1
- // src/lib/identities/isEthereumGasEtherscanPayload.ts
2
- import { EthereumGasEtherscanSchema } from "@xyo-network/etherscan-ethereum-gas-payload-plugin";
3
- var isEthereumGasEtherscanPayload = (payload) => {
4
- return payload?.schema === EthereumGasEtherscanSchema;
5
- };
6
- export {
7
- isEthereumGasEtherscanPayload
8
- };
9
- //# sourceMappingURL=isEthereumGasEtherscanPayload.js.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../../../../src/lib/identities/isEthereumGasEtherscanPayload.ts"],"sourcesContent":["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"],"mappings":";AAAA,SAAsC,kCAAkC;AAGjE,IAAM,gCAAgC,CAAC,YAAqE;AACjH,SAAO,SAAS,WAAW;AAC7B;","names":[]}
@@ -1,30 +0,0 @@
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/isEthereumGasEthgasstationPayload.ts
21
- var isEthereumGasEthgasstationPayload_exports = {};
22
- __export(isEthereumGasEthgasstationPayload_exports, {
23
- isEthereumGasEthgasstationPayload: () => isEthereumGasEthgasstationPayload
24
- });
25
- module.exports = __toCommonJS(isEthereumGasEthgasstationPayload_exports);
26
- var import_ethgasstation_ethereum_gas_payload_plugin = require("@xyo-network/ethgasstation-ethereum-gas-payload-plugin");
27
- var isEthereumGasEthgasstationPayload = (payload) => {
28
- return payload?.schema === import_ethgasstation_ethereum_gas_payload_plugin.EthereumGasEthgasstationSchema;
29
- };
30
- //# sourceMappingURL=isEthereumGasEthgasstationPayload.cjs.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../../../../src/lib/identities/isEthereumGasEthgasstationPayload.ts"],"sourcesContent":["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,uDAAgF;AAGzE,IAAM,oCAAoC,CAAC,YAAyE;AACzH,SAAO,SAAS,WAAW;AAC7B;","names":[]}
@@ -1,9 +0,0 @@
1
- // src/lib/identities/isEthereumGasEthgasstationPayload.ts
2
- import { EthereumGasEthgasstationSchema } from "@xyo-network/ethgasstation-ethereum-gas-payload-plugin";
3
- var isEthereumGasEthgasstationPayload = (payload) => {
4
- return payload?.schema === EthereumGasEthgasstationSchema;
5
- };
6
- export {
7
- isEthereumGasEthgasstationPayload
8
- };
9
- //# sourceMappingURL=isEthereumGasEthgasstationPayload.js.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../../../../src/lib/identities/isEthereumGasEthgasstationPayload.ts"],"sourcesContent":["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,SAA0C,sCAAsC;AAGzE,IAAM,oCAAoC,CAAC,YAAyE;AACzH,SAAO,SAAS,WAAW;AAC7B;","names":[]}
@@ -1,242 +0,0 @@
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/index.ts
21
- var lib_exports = {};
22
- __export(lib_exports, {
23
- divineGas: () => divineGas
24
- });
25
- module.exports = __toCommonJS(lib_exports);
26
-
27
- // src/lib/divineGas.ts
28
- var import_gas_price_payload_plugin = require("@xyo-network/gas-price-payload-plugin");
29
- var import_payload_builder = require("@xyo-network/payload-builder");
30
-
31
- // src/lib/average.ts
32
- var import_exists = require("@xylabs/exists");
33
- var listAverage = (x) => x?.length ? x.reduce((a, b) => a + b) / x.length : void 0;
34
- var averageProperty = (data, propertyExpression) => {
35
- return listAverage(data.map(propertyExpression).filter(import_exists.exists));
36
- };
37
- var average = (input) => {
38
- const data = input?.filter(import_exists.exists) || [];
39
- const averaged = {
40
- baseFee: averageProperty(data, (x) => x.baseFee),
41
- feePerGas: {
42
- high: averageProperty(data, (x) => x.feePerGas.high),
43
- low: averageProperty(data, (x) => x.feePerGas.low),
44
- medium: averageProperty(data, (x) => x.feePerGas.medium),
45
- veryHigh: averageProperty(data, (x) => x.feePerGas.veryHigh)
46
- },
47
- priorityFeePerGas: {
48
- high: averageProperty(data, (x) => x.priorityFeePerGas.high),
49
- low: averageProperty(data, (x) => x.priorityFeePerGas.low),
50
- medium: averageProperty(data, (x) => x.priorityFeePerGas.medium),
51
- veryHigh: averageProperty(data, (x) => x.priorityFeePerGas.veryHigh)
52
- }
53
- };
54
- return averaged;
55
- };
56
-
57
- // src/lib/identities/isEthereumGasBlocknativePayload.ts
58
- var import_blocknative_ethereum_gas_payload_plugin = require("@xyo-network/blocknative-ethereum-gas-payload-plugin");
59
- var isEthereumGasBlocknativePayload = (payload) => {
60
- return payload?.schema === import_blocknative_ethereum_gas_payload_plugin.EthereumGasBlocknativeSchema;
61
- };
62
-
63
- // src/lib/identities/isEthereumGasEtherchainV2Payload.ts
64
- var import_etherchain_gas_ethereum_blockchain_payload_plugins = require("@xyo-network/etherchain-gas-ethereum-blockchain-payload-plugins");
65
- var isEthereumGasEtherchainV2Payload = (payload) => {
66
- return payload?.schema === import_etherchain_gas_ethereum_blockchain_payload_plugins.EthereumGasEtherchainV2Schema;
67
- };
68
-
69
- // src/lib/identities/isEthereumGasEtherscanPayload.ts
70
- var import_etherscan_ethereum_gas_payload_plugin = require("@xyo-network/etherscan-ethereum-gas-payload-plugin");
71
- var isEthereumGasEtherscanPayload = (payload) => {
72
- return payload?.schema === import_etherscan_ethereum_gas_payload_plugin.EthereumGasEtherscanSchema;
73
- };
74
-
75
- // src/lib/identities/isEthereumGasEthersPayload.ts
76
- var import_ethers_ethereum_gas_payload_plugin = require("@xyo-network/ethers-ethereum-gas-payload-plugin");
77
- var isEthereumGasEthersPayload = (payload) => {
78
- return payload?.schema === import_ethers_ethereum_gas_payload_plugin.EthereumGasEthersSchema;
79
- };
80
-
81
- // src/lib/identities/isEthereumGasEthgasstationPayload.ts
82
- var import_ethgasstation_ethereum_gas_payload_plugin = require("@xyo-network/ethgasstation-ethereum-gas-payload-plugin");
83
- var isEthereumGasEthgasstationPayload = (payload) => {
84
- return payload?.schema === import_ethgasstation_ethereum_gas_payload_plugin.EthereumGasEthgasstationSchema;
85
- };
86
-
87
- // src/lib/transforms/transformGasFromBlocknative.ts
88
- var import_regression = require("regression");
89
- var getBaseFee = (payload) => {
90
- return payload?.blockPrices?.[0]?.baseFeePerGas;
91
- };
92
- var getFeePerGas = (payload) => {
93
- const sorted = payload.blockPrices?.[0].estimatedPrices?.sort((a, b) => a.confidence - b.confidence);
94
- const trend = (0, import_regression.linear)([
95
- [0, sorted?.[0].price],
96
- [1, sorted?.[1].price],
97
- [2, sorted?.[2].price],
98
- [3, sorted?.[3].price],
99
- [4, sorted?.[4].price]
100
- ]);
101
- const feePerGas = {
102
- low: trend.predict(0.5)[1],
103
- medium: trend.predict(1.5)[1],
104
- high: trend.predict(2.5)[1],
105
- veryHigh: trend.predict(3.5)[1]
106
- };
107
- return feePerGas;
108
- };
109
- var getPriorityFeePerGas = (payload) => {
110
- const sorted = payload.blockPrices?.[0].estimatedPrices?.sort((a, b) => a.confidence - b.confidence);
111
- const trend = (0, import_regression.linear)([
112
- [0, sorted?.[0].maxPriorityFeePerGas],
113
- [1, sorted?.[1].maxPriorityFeePerGas],
114
- [2, sorted?.[2].maxPriorityFeePerGas],
115
- [3, sorted?.[3].maxPriorityFeePerGas],
116
- [4, sorted?.[4].maxPriorityFeePerGas]
117
- ]);
118
- const priorityFeePerGas = {
119
- low: trend.predict(0.5)[1],
120
- medium: trend.predict(1.5)[1],
121
- high: trend.predict(2.5)[1],
122
- veryHigh: trend.predict(3.5)[1]
123
- };
124
- return priorityFeePerGas;
125
- };
126
- var transformGasFromBlocknative = (payload) => {
127
- const baseFee = getBaseFee(payload);
128
- const feePerGas = getFeePerGas(payload);
129
- const priorityFeePerGas = getPriorityFeePerGas(payload);
130
- return { baseFee, feePerGas, priorityFeePerGas };
131
- };
132
-
133
- // src/lib/transforms/transformGasFromEtherchainV2.ts
134
- var getFeePerGas2 = (payload) => {
135
- const { slow, standard, fast, rapid } = payload.data;
136
- const low = slow / 1e9;
137
- const medium = standard / 1e9;
138
- const high = fast / 1e9;
139
- const veryHigh = rapid / 1e9;
140
- return { high, low, medium, veryHigh };
141
- };
142
- var transformGasFromEtherchainV2 = (payload) => {
143
- const baseFee = void 0;
144
- const feePerGas = getFeePerGas2(payload);
145
- const priorityFeePerGas = {};
146
- return { baseFee, feePerGas, priorityFeePerGas };
147
- };
148
-
149
- // src/lib/transforms/transformGasFromEthers.ts
150
- var getBaseFee2 = (payload) => {
151
- const { lastBaseFeePerGas } = payload;
152
- return lastBaseFeePerGas ? lastBaseFeePerGas / 1e9 : void 0;
153
- };
154
- var getFeePerGas3 = (payload) => {
155
- const { maxFeePerGas } = payload;
156
- const high = maxFeePerGas ? maxFeePerGas / 1e9 : void 0;
157
- return { high };
158
- };
159
- var getPriorityFeePerGas2 = (payload) => {
160
- const { maxPriorityFeePerGas } = payload;
161
- const high = maxPriorityFeePerGas ? maxPriorityFeePerGas / 1e9 : void 0;
162
- return { high };
163
- };
164
- var transformGasFromEthers = (payload) => {
165
- const baseFee = getBaseFee2(payload);
166
- const feePerGas = getFeePerGas3(payload);
167
- const priorityFeePerGas = getPriorityFeePerGas2(payload);
168
- return { baseFee, feePerGas, priorityFeePerGas };
169
- };
170
-
171
- // src/lib/transforms/transformGasFromEtherscan.ts
172
- var import_regression2 = require("regression");
173
- var getBaseFee3 = (payload) => {
174
- const { suggestBaseFee } = payload.result;
175
- return parseFloat(suggestBaseFee);
176
- };
177
- var getFeePerGas4 = (payload) => {
178
- const { FastGasPrice, ProposeGasPrice, SafeGasPrice } = payload.result;
179
- const low = parseFloat(SafeGasPrice);
180
- const medium = parseFloat(ProposeGasPrice);
181
- const high = parseFloat(FastGasPrice);
182
- const veryHigh = (0, import_regression2.linear)([
183
- [0, low],
184
- [1, medium],
185
- [2, high]
186
- ]).predict(3)[1];
187
- return { high, low, medium, veryHigh };
188
- };
189
- var transformGasFromEtherscan = (payload) => {
190
- const baseFee = getBaseFee3(payload);
191
- const feePerGas = getFeePerGas4(payload);
192
- const priorityFeePerGas = {};
193
- return { baseFee, feePerGas, priorityFeePerGas };
194
- };
195
-
196
- // src/lib/transforms/transformGasFromEthgasstation.ts
197
- var import_regression3 = require("regression");
198
- var getBaseFee4 = (payload) => {
199
- const { baseFee } = payload;
200
- return baseFee;
201
- };
202
- var getFeePerGas5 = (payload) => {
203
- const { standard: medium, fast: high, instant: veryHigh } = payload.gasPrice;
204
- const trend = (0, import_regression3.linear)([
205
- [1, medium],
206
- [2, high],
207
- [3, veryHigh]
208
- ]);
209
- const low = trend.predict(0)[1];
210
- return { low, medium, high, veryHigh };
211
- };
212
- var getPriorityFeePerGas3 = (payload) => {
213
- const { standard: medium, fast: high, instant: veryHigh } = payload.priorityFee;
214
- const trend = (0, import_regression3.linear)([
215
- [1, medium],
216
- [2, high],
217
- [3, veryHigh]
218
- ]);
219
- const low = trend.predict(0)[1];
220
- return { low, medium, high, veryHigh };
221
- };
222
- var transformGasFromEthgasstation = (payload) => {
223
- const baseFee = getBaseFee4(payload);
224
- const feePerGas = getFeePerGas5(payload);
225
- const priorityFeePerGas = getPriorityFeePerGas3(payload);
226
- return { baseFee, feePerGas, priorityFeePerGas };
227
- };
228
-
229
- // src/lib/divineGas.ts
230
- var divineGas = (payloads) => {
231
- const blocknative = payloads.filter(isEthereumGasBlocknativePayload).map(transformGasFromBlocknative);
232
- const etherchainV2 = payloads.filter(isEthereumGasEtherchainV2Payload).map(transformGasFromEtherchainV2);
233
- const ethers = payloads.filter(isEthereumGasEthersPayload).map(transformGasFromEthers);
234
- const etherscan = payloads.filter(isEthereumGasEtherscanPayload).map(transformGasFromEtherscan);
235
- const ethgasstation = payloads.filter(isEthereumGasEthgasstationPayload).map(transformGasFromEthgasstation);
236
- const transactionCosts = [...blocknative, ...etherchainV2, ...ethers, ...etherscan, ...ethgasstation];
237
- const avg = average(transactionCosts);
238
- const timestamp = Date.now();
239
- const payload = new import_payload_builder.PayloadBuilder({ schema: import_gas_price_payload_plugin.EthereumGasSchema }).fields({ ...avg, timestamp }).build();
240
- return payload;
241
- };
242
- //# sourceMappingURL=index.cjs.map