@xyo-network/gas-price-plugin 2.75.15 → 2.75.17

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 (194) hide show
  1. package/dist/docs.json +26 -26
  2. package/package.json +22 -22
  3. package/dist/browser/Diviner.cjs +0 -257
  4. package/dist/browser/Diviner.cjs.map +0 -1
  5. package/dist/browser/Diviner.js +0 -236
  6. package/dist/browser/Diviner.js.map +0 -1
  7. package/dist/browser/Plugin.cjs +0 -272
  8. package/dist/browser/Plugin.cjs.map +0 -1
  9. package/dist/browser/Plugin.js +0 -251
  10. package/dist/browser/Plugin.js.map +0 -1
  11. package/dist/browser/Schema.cjs +0 -29
  12. package/dist/browser/Schema.cjs.map +0 -1
  13. package/dist/browser/Schema.js +0 -8
  14. package/dist/browser/Schema.js.map +0 -1
  15. package/dist/browser/lib/average.cjs +0 -50
  16. package/dist/browser/lib/average.cjs.map +0 -1
  17. package/dist/browser/lib/average.js +0 -29
  18. package/dist/browser/lib/average.js.map +0 -1
  19. package/dist/browser/lib/divineGas.cjs +0 -240
  20. package/dist/browser/lib/divineGas.cjs.map +0 -1
  21. package/dist/browser/lib/divineGas.js +0 -219
  22. package/dist/browser/lib/divineGas.js.map +0 -1
  23. package/dist/browser/lib/identities/index.cjs +0 -60
  24. package/dist/browser/lib/identities/index.cjs.map +0 -1
  25. package/dist/browser/lib/identities/index.js +0 -37
  26. package/dist/browser/lib/identities/index.js.map +0 -1
  27. package/dist/browser/lib/identities/isEthereumGasBlocknativePayload.cjs +0 -30
  28. package/dist/browser/lib/identities/isEthereumGasBlocknativePayload.cjs.map +0 -1
  29. package/dist/browser/lib/identities/isEthereumGasBlocknativePayload.js +0 -9
  30. package/dist/browser/lib/identities/isEthereumGasBlocknativePayload.js.map +0 -1
  31. package/dist/browser/lib/identities/isEthereumGasEtherchainV2Payload.cjs +0 -30
  32. package/dist/browser/lib/identities/isEthereumGasEtherchainV2Payload.cjs.map +0 -1
  33. package/dist/browser/lib/identities/isEthereumGasEtherchainV2Payload.js +0 -9
  34. package/dist/browser/lib/identities/isEthereumGasEtherchainV2Payload.js.map +0 -1
  35. package/dist/browser/lib/identities/isEthereumGasEthersPayload.cjs +0 -30
  36. package/dist/browser/lib/identities/isEthereumGasEthersPayload.cjs.map +0 -1
  37. package/dist/browser/lib/identities/isEthereumGasEthersPayload.js +0 -9
  38. package/dist/browser/lib/identities/isEthereumGasEthersPayload.js.map +0 -1
  39. package/dist/browser/lib/identities/isEthereumGasEtherscanPayload.cjs +0 -30
  40. package/dist/browser/lib/identities/isEthereumGasEtherscanPayload.cjs.map +0 -1
  41. package/dist/browser/lib/identities/isEthereumGasEtherscanPayload.js +0 -9
  42. package/dist/browser/lib/identities/isEthereumGasEtherscanPayload.js.map +0 -1
  43. package/dist/browser/lib/identities/isEthereumGasEthgasstationPayload.cjs +0 -30
  44. package/dist/browser/lib/identities/isEthereumGasEthgasstationPayload.cjs.map +0 -1
  45. package/dist/browser/lib/identities/isEthereumGasEthgasstationPayload.js +0 -9
  46. package/dist/browser/lib/identities/isEthereumGasEthgasstationPayload.js.map +0 -1
  47. package/dist/browser/lib/index.cjs +0 -242
  48. package/dist/browser/lib/index.cjs.map +0 -1
  49. package/dist/browser/lib/index.js +0 -219
  50. package/dist/browser/lib/index.js.map +0 -1
  51. package/dist/browser/lib/transforms/index.cjs +0 -172
  52. package/dist/browser/lib/transforms/index.cjs.map +0 -1
  53. package/dist/browser/lib/transforms/index.js +0 -149
  54. package/dist/browser/lib/transforms/index.js.map +0 -1
  55. package/dist/browser/lib/transforms/transformGasFromBlocknative.cjs +0 -70
  56. package/dist/browser/lib/transforms/transformGasFromBlocknative.cjs.map +0 -1
  57. package/dist/browser/lib/transforms/transformGasFromBlocknative.js +0 -49
  58. package/dist/browser/lib/transforms/transformGasFromBlocknative.js.map +0 -1
  59. package/dist/browser/lib/transforms/transformGasFromEtherchainV2.cjs +0 -40
  60. package/dist/browser/lib/transforms/transformGasFromEtherchainV2.cjs.map +0 -1
  61. package/dist/browser/lib/transforms/transformGasFromEtherchainV2.js +0 -19
  62. package/dist/browser/lib/transforms/transformGasFromEtherchainV2.js.map +0 -1
  63. package/dist/browser/lib/transforms/transformGasFromEthers.cjs +0 -46
  64. package/dist/browser/lib/transforms/transformGasFromEthers.cjs.map +0 -1
  65. package/dist/browser/lib/transforms/transformGasFromEthers.js +0 -25
  66. package/dist/browser/lib/transforms/transformGasFromEthers.js.map +0 -1
  67. package/dist/browser/lib/transforms/transformGasFromEtherscan.cjs +0 -49
  68. package/dist/browser/lib/transforms/transformGasFromEtherscan.cjs.map +0 -1
  69. package/dist/browser/lib/transforms/transformGasFromEtherscan.js +0 -28
  70. package/dist/browser/lib/transforms/transformGasFromEtherscan.js.map +0 -1
  71. package/dist/browser/lib/transforms/transformGasFromEthgasstation.cjs +0 -57
  72. package/dist/browser/lib/transforms/transformGasFromEthgasstation.cjs.map +0 -1
  73. package/dist/browser/lib/transforms/transformGasFromEthgasstation.js +0 -36
  74. package/dist/browser/lib/transforms/transformGasFromEthgasstation.js.map +0 -1
  75. package/dist/browser/test/index.cjs +0 -189
  76. package/dist/browser/test/index.cjs.map +0 -1
  77. package/dist/browser/test/index.js +0 -166
  78. package/dist/browser/test/index.js.map +0 -1
  79. package/dist/browser/test/sampleBlocknativeGas.cjs +0 -118
  80. package/dist/browser/test/sampleBlocknativeGas.cjs.map +0 -1
  81. package/dist/browser/test/sampleBlocknativeGas.js +0 -97
  82. package/dist/browser/test/sampleBlocknativeGas.js.map +0 -1
  83. package/dist/browser/test/sampleEtherchainGasV2.cjs +0 -40
  84. package/dist/browser/test/sampleEtherchainGasV2.cjs.map +0 -1
  85. package/dist/browser/test/sampleEtherchainGasV2.js +0 -19
  86. package/dist/browser/test/sampleEtherchainGasV2.js.map +0 -1
  87. package/dist/browser/test/sampleEthersGas.cjs +0 -35
  88. package/dist/browser/test/sampleEthersGas.cjs.map +0 -1
  89. package/dist/browser/test/sampleEthersGas.js +0 -14
  90. package/dist/browser/test/sampleEthersGas.js.map +0 -1
  91. package/dist/browser/test/sampleEtherscanGas.cjs +0 -41
  92. package/dist/browser/test/sampleEtherscanGas.cjs.map +0 -1
  93. package/dist/browser/test/sampleEtherscanGas.js +0 -20
  94. package/dist/browser/test/sampleEtherscanGas.js.map +0 -1
  95. package/dist/browser/test/sampleEthgasstationGas.cjs +0 -45
  96. package/dist/browser/test/sampleEthgasstationGas.cjs.map +0 -1
  97. package/dist/browser/test/sampleEthgasstationGas.js +0 -24
  98. package/dist/browser/test/sampleEthgasstationGas.js.map +0 -1
  99. package/dist/node/Diviner.js +0 -264
  100. package/dist/node/Diviner.js.map +0 -1
  101. package/dist/node/Diviner.mjs +0 -239
  102. package/dist/node/Diviner.mjs.map +0 -1
  103. package/dist/node/Plugin.js +0 -279
  104. package/dist/node/Plugin.js.map +0 -1
  105. package/dist/node/Plugin.mjs +0 -254
  106. package/dist/node/Plugin.mjs.map +0 -1
  107. package/dist/node/Schema.js +0 -34
  108. package/dist/node/Schema.js.map +0 -1
  109. package/dist/node/Schema.mjs +0 -8
  110. package/dist/node/Schema.mjs.map +0 -1
  111. package/dist/node/lib/average.js +0 -54
  112. package/dist/node/lib/average.js.map +0 -1
  113. package/dist/node/lib/average.mjs +0 -29
  114. package/dist/node/lib/average.mjs.map +0 -1
  115. package/dist/node/lib/divineGas.js +0 -247
  116. package/dist/node/lib/divineGas.js.map +0 -1
  117. package/dist/node/lib/divineGas.mjs +0 -222
  118. package/dist/node/lib/divineGas.mjs.map +0 -1
  119. package/dist/node/lib/identities/index.js +0 -68
  120. package/dist/node/lib/identities/index.js.map +0 -1
  121. package/dist/node/lib/identities/index.mjs +0 -37
  122. package/dist/node/lib/identities/index.mjs.map +0 -1
  123. package/dist/node/lib/identities/isEthereumGasBlocknativePayload.js +0 -34
  124. package/dist/node/lib/identities/isEthereumGasBlocknativePayload.js.map +0 -1
  125. package/dist/node/lib/identities/isEthereumGasBlocknativePayload.mjs +0 -9
  126. package/dist/node/lib/identities/isEthereumGasBlocknativePayload.mjs.map +0 -1
  127. package/dist/node/lib/identities/isEthereumGasEtherchainV2Payload.js +0 -34
  128. package/dist/node/lib/identities/isEthereumGasEtherchainV2Payload.js.map +0 -1
  129. package/dist/node/lib/identities/isEthereumGasEtherchainV2Payload.mjs +0 -9
  130. package/dist/node/lib/identities/isEthereumGasEtherchainV2Payload.mjs.map +0 -1
  131. package/dist/node/lib/identities/isEthereumGasEthersPayload.js +0 -34
  132. package/dist/node/lib/identities/isEthereumGasEthersPayload.js.map +0 -1
  133. package/dist/node/lib/identities/isEthereumGasEthersPayload.mjs +0 -9
  134. package/dist/node/lib/identities/isEthereumGasEthersPayload.mjs.map +0 -1
  135. package/dist/node/lib/identities/isEthereumGasEtherscanPayload.js +0 -34
  136. package/dist/node/lib/identities/isEthereumGasEtherscanPayload.js.map +0 -1
  137. package/dist/node/lib/identities/isEthereumGasEtherscanPayload.mjs +0 -9
  138. package/dist/node/lib/identities/isEthereumGasEtherscanPayload.mjs.map +0 -1
  139. package/dist/node/lib/identities/isEthereumGasEthgasstationPayload.js +0 -34
  140. package/dist/node/lib/identities/isEthereumGasEthgasstationPayload.js.map +0 -1
  141. package/dist/node/lib/identities/isEthereumGasEthgasstationPayload.mjs +0 -9
  142. package/dist/node/lib/identities/isEthereumGasEthgasstationPayload.mjs.map +0 -1
  143. package/dist/node/lib/index.js +0 -249
  144. package/dist/node/lib/index.js.map +0 -1
  145. package/dist/node/lib/index.mjs +0 -222
  146. package/dist/node/lib/index.mjs.map +0 -1
  147. package/dist/node/lib/transforms/index.js +0 -183
  148. package/dist/node/lib/transforms/index.js.map +0 -1
  149. package/dist/node/lib/transforms/index.mjs +0 -152
  150. package/dist/node/lib/transforms/index.mjs.map +0 -1
  151. package/dist/node/lib/transforms/transformGasFromBlocknative.js +0 -77
  152. package/dist/node/lib/transforms/transformGasFromBlocknative.js.map +0 -1
  153. package/dist/node/lib/transforms/transformGasFromBlocknative.mjs +0 -52
  154. package/dist/node/lib/transforms/transformGasFromBlocknative.mjs.map +0 -1
  155. package/dist/node/lib/transforms/transformGasFromEtherchainV2.js +0 -44
  156. package/dist/node/lib/transforms/transformGasFromEtherchainV2.js.map +0 -1
  157. package/dist/node/lib/transforms/transformGasFromEtherchainV2.mjs +0 -19
  158. package/dist/node/lib/transforms/transformGasFromEtherchainV2.mjs.map +0 -1
  159. package/dist/node/lib/transforms/transformGasFromEthers.js +0 -50
  160. package/dist/node/lib/transforms/transformGasFromEthers.js.map +0 -1
  161. package/dist/node/lib/transforms/transformGasFromEthers.mjs +0 -25
  162. package/dist/node/lib/transforms/transformGasFromEthers.mjs.map +0 -1
  163. package/dist/node/lib/transforms/transformGasFromEtherscan.js +0 -53
  164. package/dist/node/lib/transforms/transformGasFromEtherscan.js.map +0 -1
  165. package/dist/node/lib/transforms/transformGasFromEtherscan.mjs +0 -28
  166. package/dist/node/lib/transforms/transformGasFromEtherscan.mjs.map +0 -1
  167. package/dist/node/lib/transforms/transformGasFromEthgasstation.js +0 -61
  168. package/dist/node/lib/transforms/transformGasFromEthgasstation.js.map +0 -1
  169. package/dist/node/lib/transforms/transformGasFromEthgasstation.mjs +0 -36
  170. package/dist/node/lib/transforms/transformGasFromEthgasstation.mjs.map +0 -1
  171. package/dist/node/test/index.js +0 -197
  172. package/dist/node/test/index.js.map +0 -1
  173. package/dist/node/test/index.mjs +0 -166
  174. package/dist/node/test/index.mjs.map +0 -1
  175. package/dist/node/test/sampleBlocknativeGas.js +0 -122
  176. package/dist/node/test/sampleBlocknativeGas.js.map +0 -1
  177. package/dist/node/test/sampleBlocknativeGas.mjs +0 -97
  178. package/dist/node/test/sampleBlocknativeGas.mjs.map +0 -1
  179. package/dist/node/test/sampleEtherchainGasV2.js +0 -44
  180. package/dist/node/test/sampleEtherchainGasV2.js.map +0 -1
  181. package/dist/node/test/sampleEtherchainGasV2.mjs +0 -19
  182. package/dist/node/test/sampleEtherchainGasV2.mjs.map +0 -1
  183. package/dist/node/test/sampleEthersGas.js +0 -39
  184. package/dist/node/test/sampleEthersGas.js.map +0 -1
  185. package/dist/node/test/sampleEthersGas.mjs +0 -14
  186. package/dist/node/test/sampleEthersGas.mjs.map +0 -1
  187. package/dist/node/test/sampleEtherscanGas.js +0 -45
  188. package/dist/node/test/sampleEtherscanGas.js.map +0 -1
  189. package/dist/node/test/sampleEtherscanGas.mjs +0 -20
  190. package/dist/node/test/sampleEtherscanGas.mjs.map +0 -1
  191. package/dist/node/test/sampleEthgasstationGas.js +0 -49
  192. package/dist/node/test/sampleEthgasstationGas.js.map +0 -1
  193. package/dist/node/test/sampleEthgasstationGas.mjs +0 -24
  194. package/dist/node/test/sampleEthgasstationGas.mjs.map +0 -1
@@ -1,197 +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/test/index.ts
21
- var test_exports = {};
22
- __export(test_exports, {
23
- sampleBlocknativeGas: () => sampleBlocknativeGas,
24
- sampleEtherchainGasV2: () => sampleEtherchainGasV2,
25
- sampleEthersGas: () => sampleEthersGas,
26
- sampleEtherscanGas: () => sampleEtherscanGas,
27
- sampleEthgasstationGas: () => sampleEthgasstationGas
28
- });
29
- module.exports = __toCommonJS(test_exports);
30
-
31
- // src/test/sampleBlocknativeGas.ts
32
- var import_blocknative_ethereum_gas_payload_plugin = require("@xyo-network/blocknative-ethereum-gas-payload-plugin");
33
- var sampleBlocknativeGas = {
34
- blockPrices: [
35
- {
36
- baseFeePerGas: 13.691764456,
37
- blockNumber: 16028191,
38
- estimatedPrices: [
39
- {
40
- confidence: 99,
41
- maxFeePerGas: 22.04,
42
- maxPriorityFeePerGas: 1.09,
43
- price: 14
44
- },
45
- {
46
- confidence: 95,
47
- maxFeePerGas: 21.58,
48
- maxPriorityFeePerGas: 0.63,
49
- price: 14
50
- },
51
- {
52
- confidence: 90,
53
- maxFeePerGas: 21.25,
54
- maxPriorityFeePerGas: 0.3,
55
- price: 13
56
- },
57
- {
58
- confidence: 80,
59
- maxFeePerGas: 21.16,
60
- maxPriorityFeePerGas: 0.21,
61
- price: 13
62
- },
63
- {
64
- confidence: 70,
65
- maxFeePerGas: 21.12,
66
- maxPriorityFeePerGas: 0.17,
67
- price: 13
68
- }
69
- ],
70
- estimatedTransactionCount: 69
71
- }
72
- ],
73
- currentBlockNumber: 16028190,
74
- estimatedBaseFees: [
75
- {
76
- "pending+1": [
77
- {
78
- baseFee: 15.41,
79
- confidence: 99
80
- }
81
- ]
82
- },
83
- {
84
- "pending+2": [
85
- {
86
- baseFee: 17.32,
87
- confidence: 99
88
- }
89
- ]
90
- },
91
- {
92
- "pending+3": [
93
- {
94
- baseFee: 19.17,
95
- confidence: 99
96
- }
97
- ]
98
- },
99
- {
100
- "pending+4": [
101
- {
102
- baseFee: 20.12,
103
- confidence: 99
104
- }
105
- ]
106
- },
107
- {
108
- "pending+5": [
109
- {
110
- baseFee: 20.95,
111
- confidence: 99
112
- }
113
- ]
114
- }
115
- ],
116
- maxPrice: 36,
117
- msSinceLastBlock: 3643,
118
- network: "main",
119
- schema: import_blocknative_ethereum_gas_payload_plugin.EthereumGasBlocknativeSchema,
120
- system: "ethereum",
121
- timestamp: 1668697958837,
122
- unit: "gwei"
123
- };
124
-
125
- // src/test/sampleEtherchainGasV2.ts
126
- var import_etherchain_gas_ethereum_blockchain_payload_plugins = require("@xyo-network/etherchain-gas-ethereum-blockchain-payload-plugins");
127
- var sampleEtherchainGasV2 = {
128
- code: 200,
129
- data: {
130
- fast: 19803047330,
131
- priceUSD: 1195.77,
132
- rapid: 29714286170,
133
- slow: 112e8,
134
- standard: 12e9,
135
- timestamp: 1668621234096
136
- },
137
- schema: import_etherchain_gas_ethereum_blockchain_payload_plugins.EthereumGasEtherchainV2Schema,
138
- timestamp: 1668621240790
139
- };
140
-
141
- // src/test/sampleEtherscanGas.ts
142
- var import_etherscan_ethereum_gas_payload_plugin = require("@xyo-network/etherscan-ethereum-gas-payload-plugin");
143
- var sampleEtherscanGas = {
144
- message: "OK",
145
- result: {
146
- FastGasPrice: "30",
147
- LastBlock: "15990556",
148
- ProposeGasPrice: "29",
149
- SafeGasPrice: "28",
150
- gasUsedRatio: "0.416266666666667,0.5672862,0.540979033333333,0.342410966666667,0.389071233333333",
151
- suggestBaseFee: "27.616709247"
152
- },
153
- schema: import_etherscan_ethereum_gas_payload_plugin.EthereumGasEtherscanSchema,
154
- status: "1",
155
- timestamp: 1668697958837
156
- };
157
-
158
- // src/test/sampleEthersGas.ts
159
- var import_ethers_ethereum_gas_payload_plugin = require("@xyo-network/ethers-ethereum-gas-payload-plugin");
160
- var sampleEthersGas = {
161
- gasPrice: 13547863640,
162
- lastBaseFeePerGas: 13447862081,
163
- maxFeePerGas: 28395724162,
164
- maxPriorityFeePerGas: 15e8,
165
- schema: import_ethers_ethereum_gas_payload_plugin.EthereumGasEthersSchema,
166
- timestamp: 1668697958837
167
- };
168
-
169
- // src/test/sampleEthgasstationGas.ts
170
- var import_ethgasstation_ethereum_gas_payload_plugin = require("@xyo-network/ethgasstation-ethereum-gas-payload-plugin");
171
- var sampleEthgasstationGas = {
172
- baseFee: 10,
173
- blockNumber: 16028883,
174
- blockTime: 11.88,
175
- gasPrice: {
176
- fast: 12,
177
- instant: 13,
178
- standard: 12
179
- },
180
- nextBaseFee: 10,
181
- priorityFee: {
182
- fast: 2,
183
- instant: 2,
184
- standard: 2
185
- },
186
- schema: import_ethgasstation_ethereum_gas_payload_plugin.EthereumGasEthgasstationSchema,
187
- timestamp: 1668697958837
188
- };
189
- // Annotate the CommonJS export names for ESM import in node:
190
- 0 && (module.exports = {
191
- sampleBlocknativeGas,
192
- sampleEtherchainGasV2,
193
- sampleEthersGas,
194
- sampleEtherscanGas,
195
- sampleEthgasstationGas
196
- });
197
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../../../src/test/index.ts","../../../src/test/sampleBlocknativeGas.ts","../../../src/test/sampleEtherchainGasV2.ts","../../../src/test/sampleEtherscanGas.ts","../../../src/test/sampleEthersGas.ts","../../../src/test/sampleEthgasstationGas.ts"],"sourcesContent":["export * from './sampleBlocknativeGas'\nexport * from './sampleEtherchainGasV2'\nexport * from './sampleEtherscanGas'\nexport * from './sampleEthersGas'\nexport * from './sampleEthgasstationGas'\n","import { EstimatedBaseFee, EthereumGasBlocknativePayload, EthereumGasBlocknativeSchema } from '@xyo-network/blocknative-ethereum-gas-payload-plugin'\n\nexport const sampleBlocknativeGas: EthereumGasBlocknativePayload = {\n blockPrices: [\n {\n baseFeePerGas: 13.691764456,\n blockNumber: 16028191,\n estimatedPrices: [\n {\n confidence: 99,\n maxFeePerGas: 22.04,\n maxPriorityFeePerGas: 1.09,\n price: 14,\n },\n {\n confidence: 95,\n maxFeePerGas: 21.58,\n maxPriorityFeePerGas: 0.63,\n price: 14,\n },\n {\n confidence: 90,\n maxFeePerGas: 21.25,\n maxPriorityFeePerGas: 0.3,\n price: 13,\n },\n {\n confidence: 80,\n maxFeePerGas: 21.16,\n maxPriorityFeePerGas: 0.21,\n price: 13,\n },\n {\n confidence: 70,\n maxFeePerGas: 21.12,\n maxPriorityFeePerGas: 0.17,\n price: 13,\n },\n ],\n estimatedTransactionCount: 69,\n },\n ],\n currentBlockNumber: 16028190,\n estimatedBaseFees: [\n {\n 'pending+1': [\n {\n baseFee: 15.41,\n confidence: 99,\n },\n ],\n },\n {\n 'pending+2': [\n {\n baseFee: 17.32,\n confidence: 99,\n },\n ],\n },\n {\n 'pending+3': [\n {\n baseFee: 19.17,\n confidence: 99,\n },\n ],\n },\n {\n 'pending+4': [\n {\n baseFee: 20.12,\n confidence: 99,\n },\n ],\n },\n {\n 'pending+5': [\n {\n baseFee: 20.95,\n confidence: 99,\n },\n ],\n },\n ] as unknown as EstimatedBaseFee[],\n maxPrice: 36,\n msSinceLastBlock: 3643,\n network: 'main',\n schema: EthereumGasBlocknativeSchema,\n system: 'ethereum',\n timestamp: 1668697958837,\n unit: 'gwei',\n}\n","import { EthereumGasEtherchainV2Payload, EthereumGasEtherchainV2Schema } from '@xyo-network/etherchain-gas-ethereum-blockchain-payload-plugins'\n\nexport const sampleEtherchainGasV2: EthereumGasEtherchainV2Payload = {\n code: 200,\n data: {\n fast: 19803047330,\n priceUSD: 1195.77,\n rapid: 29714286170,\n slow: 11200000000,\n standard: 12000000000,\n timestamp: 1668621234096,\n },\n schema: EthereumGasEtherchainV2Schema,\n timestamp: 1668621240790,\n}\n","import { EthereumGasEtherscanPayload, EthereumGasEtherscanSchema } from '@xyo-network/etherscan-ethereum-gas-payload-plugin'\n\nexport const sampleEtherscanGas: EthereumGasEtherscanPayload = {\n message: 'OK',\n result: {\n FastGasPrice: '30',\n LastBlock: '15990556',\n ProposeGasPrice: '29',\n SafeGasPrice: '28',\n gasUsedRatio: '0.416266666666667,0.5672862,0.540979033333333,0.342410966666667,0.389071233333333',\n suggestBaseFee: '27.616709247',\n },\n schema: EthereumGasEtherscanSchema,\n status: '1',\n timestamp: 1668697958837,\n}\n","import { EthereumGasEthersPayload, EthereumGasEthersSchema } from '@xyo-network/ethers-ethereum-gas-payload-plugin'\n\nexport const sampleEthersGas: EthereumGasEthersPayload = {\n gasPrice: 13547863640,\n lastBaseFeePerGas: 13447862081,\n maxFeePerGas: 28395724162,\n maxPriorityFeePerGas: 1500000000,\n schema: EthereumGasEthersSchema,\n timestamp: 1668697958837,\n}\n","import { EthereumGasEthgasstationPayload, EthereumGasEthgasstationSchema } from '@xyo-network/ethgasstation-ethereum-gas-payload-plugin'\n\nexport const sampleEthgasstationGas: EthereumGasEthgasstationPayload = {\n baseFee: 10,\n blockNumber: 16028883,\n blockTime: 11.88,\n gasPrice: {\n fast: 12,\n instant: 13,\n standard: 12,\n },\n nextBaseFee: 10,\n priorityFee: {\n fast: 2,\n instant: 2,\n standard: 2,\n },\n schema: EthereumGasEthgasstationSchema,\n timestamp: 1668697958837,\n}\n"],"mappings":"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","names":[]}
@@ -1,166 +0,0 @@
1
- // src/test/sampleBlocknativeGas.ts
2
- import { EthereumGasBlocknativeSchema } from "@xyo-network/blocknative-ethereum-gas-payload-plugin";
3
- var sampleBlocknativeGas = {
4
- blockPrices: [
5
- {
6
- baseFeePerGas: 13.691764456,
7
- blockNumber: 16028191,
8
- estimatedPrices: [
9
- {
10
- confidence: 99,
11
- maxFeePerGas: 22.04,
12
- maxPriorityFeePerGas: 1.09,
13
- price: 14
14
- },
15
- {
16
- confidence: 95,
17
- maxFeePerGas: 21.58,
18
- maxPriorityFeePerGas: 0.63,
19
- price: 14
20
- },
21
- {
22
- confidence: 90,
23
- maxFeePerGas: 21.25,
24
- maxPriorityFeePerGas: 0.3,
25
- price: 13
26
- },
27
- {
28
- confidence: 80,
29
- maxFeePerGas: 21.16,
30
- maxPriorityFeePerGas: 0.21,
31
- price: 13
32
- },
33
- {
34
- confidence: 70,
35
- maxFeePerGas: 21.12,
36
- maxPriorityFeePerGas: 0.17,
37
- price: 13
38
- }
39
- ],
40
- estimatedTransactionCount: 69
41
- }
42
- ],
43
- currentBlockNumber: 16028190,
44
- estimatedBaseFees: [
45
- {
46
- "pending+1": [
47
- {
48
- baseFee: 15.41,
49
- confidence: 99
50
- }
51
- ]
52
- },
53
- {
54
- "pending+2": [
55
- {
56
- baseFee: 17.32,
57
- confidence: 99
58
- }
59
- ]
60
- },
61
- {
62
- "pending+3": [
63
- {
64
- baseFee: 19.17,
65
- confidence: 99
66
- }
67
- ]
68
- },
69
- {
70
- "pending+4": [
71
- {
72
- baseFee: 20.12,
73
- confidence: 99
74
- }
75
- ]
76
- },
77
- {
78
- "pending+5": [
79
- {
80
- baseFee: 20.95,
81
- confidence: 99
82
- }
83
- ]
84
- }
85
- ],
86
- maxPrice: 36,
87
- msSinceLastBlock: 3643,
88
- network: "main",
89
- schema: EthereumGasBlocknativeSchema,
90
- system: "ethereum",
91
- timestamp: 1668697958837,
92
- unit: "gwei"
93
- };
94
-
95
- // src/test/sampleEtherchainGasV2.ts
96
- import { EthereumGasEtherchainV2Schema } from "@xyo-network/etherchain-gas-ethereum-blockchain-payload-plugins";
97
- var sampleEtherchainGasV2 = {
98
- code: 200,
99
- data: {
100
- fast: 19803047330,
101
- priceUSD: 1195.77,
102
- rapid: 29714286170,
103
- slow: 112e8,
104
- standard: 12e9,
105
- timestamp: 1668621234096
106
- },
107
- schema: EthereumGasEtherchainV2Schema,
108
- timestamp: 1668621240790
109
- };
110
-
111
- // src/test/sampleEtherscanGas.ts
112
- import { EthereumGasEtherscanSchema } from "@xyo-network/etherscan-ethereum-gas-payload-plugin";
113
- var sampleEtherscanGas = {
114
- message: "OK",
115
- result: {
116
- FastGasPrice: "30",
117
- LastBlock: "15990556",
118
- ProposeGasPrice: "29",
119
- SafeGasPrice: "28",
120
- gasUsedRatio: "0.416266666666667,0.5672862,0.540979033333333,0.342410966666667,0.389071233333333",
121
- suggestBaseFee: "27.616709247"
122
- },
123
- schema: EthereumGasEtherscanSchema,
124
- status: "1",
125
- timestamp: 1668697958837
126
- };
127
-
128
- // src/test/sampleEthersGas.ts
129
- import { EthereumGasEthersSchema } from "@xyo-network/ethers-ethereum-gas-payload-plugin";
130
- var sampleEthersGas = {
131
- gasPrice: 13547863640,
132
- lastBaseFeePerGas: 13447862081,
133
- maxFeePerGas: 28395724162,
134
- maxPriorityFeePerGas: 15e8,
135
- schema: EthereumGasEthersSchema,
136
- timestamp: 1668697958837
137
- };
138
-
139
- // src/test/sampleEthgasstationGas.ts
140
- import { EthereumGasEthgasstationSchema } from "@xyo-network/ethgasstation-ethereum-gas-payload-plugin";
141
- var sampleEthgasstationGas = {
142
- baseFee: 10,
143
- blockNumber: 16028883,
144
- blockTime: 11.88,
145
- gasPrice: {
146
- fast: 12,
147
- instant: 13,
148
- standard: 12
149
- },
150
- nextBaseFee: 10,
151
- priorityFee: {
152
- fast: 2,
153
- instant: 2,
154
- standard: 2
155
- },
156
- schema: EthereumGasEthgasstationSchema,
157
- timestamp: 1668697958837
158
- };
159
- export {
160
- sampleBlocknativeGas,
161
- sampleEtherchainGasV2,
162
- sampleEthersGas,
163
- sampleEtherscanGas,
164
- sampleEthgasstationGas
165
- };
166
- //# sourceMappingURL=index.mjs.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../../../src/test/sampleBlocknativeGas.ts","../../../src/test/sampleEtherchainGasV2.ts","../../../src/test/sampleEtherscanGas.ts","../../../src/test/sampleEthersGas.ts","../../../src/test/sampleEthgasstationGas.ts"],"sourcesContent":["import { EstimatedBaseFee, EthereumGasBlocknativePayload, EthereumGasBlocknativeSchema } from '@xyo-network/blocknative-ethereum-gas-payload-plugin'\n\nexport const sampleBlocknativeGas: EthereumGasBlocknativePayload = {\n blockPrices: [\n {\n baseFeePerGas: 13.691764456,\n blockNumber: 16028191,\n estimatedPrices: [\n {\n confidence: 99,\n maxFeePerGas: 22.04,\n maxPriorityFeePerGas: 1.09,\n price: 14,\n },\n {\n confidence: 95,\n maxFeePerGas: 21.58,\n maxPriorityFeePerGas: 0.63,\n price: 14,\n },\n {\n confidence: 90,\n maxFeePerGas: 21.25,\n maxPriorityFeePerGas: 0.3,\n price: 13,\n },\n {\n confidence: 80,\n maxFeePerGas: 21.16,\n maxPriorityFeePerGas: 0.21,\n price: 13,\n },\n {\n confidence: 70,\n maxFeePerGas: 21.12,\n maxPriorityFeePerGas: 0.17,\n price: 13,\n },\n ],\n estimatedTransactionCount: 69,\n },\n ],\n currentBlockNumber: 16028190,\n estimatedBaseFees: [\n {\n 'pending+1': [\n {\n baseFee: 15.41,\n confidence: 99,\n },\n ],\n },\n {\n 'pending+2': [\n {\n baseFee: 17.32,\n confidence: 99,\n },\n ],\n },\n {\n 'pending+3': [\n {\n baseFee: 19.17,\n confidence: 99,\n },\n ],\n },\n {\n 'pending+4': [\n {\n baseFee: 20.12,\n confidence: 99,\n },\n ],\n },\n {\n 'pending+5': [\n {\n baseFee: 20.95,\n confidence: 99,\n },\n ],\n },\n ] as unknown as EstimatedBaseFee[],\n maxPrice: 36,\n msSinceLastBlock: 3643,\n network: 'main',\n schema: EthereumGasBlocknativeSchema,\n system: 'ethereum',\n timestamp: 1668697958837,\n unit: 'gwei',\n}\n","import { EthereumGasEtherchainV2Payload, EthereumGasEtherchainV2Schema } from '@xyo-network/etherchain-gas-ethereum-blockchain-payload-plugins'\n\nexport const sampleEtherchainGasV2: EthereumGasEtherchainV2Payload = {\n code: 200,\n data: {\n fast: 19803047330,\n priceUSD: 1195.77,\n rapid: 29714286170,\n slow: 11200000000,\n standard: 12000000000,\n timestamp: 1668621234096,\n },\n schema: EthereumGasEtherchainV2Schema,\n timestamp: 1668621240790,\n}\n","import { EthereumGasEtherscanPayload, EthereumGasEtherscanSchema } from '@xyo-network/etherscan-ethereum-gas-payload-plugin'\n\nexport const sampleEtherscanGas: EthereumGasEtherscanPayload = {\n message: 'OK',\n result: {\n FastGasPrice: '30',\n LastBlock: '15990556',\n ProposeGasPrice: '29',\n SafeGasPrice: '28',\n gasUsedRatio: '0.416266666666667,0.5672862,0.540979033333333,0.342410966666667,0.389071233333333',\n suggestBaseFee: '27.616709247',\n },\n schema: EthereumGasEtherscanSchema,\n status: '1',\n timestamp: 1668697958837,\n}\n","import { EthereumGasEthersPayload, EthereumGasEthersSchema } from '@xyo-network/ethers-ethereum-gas-payload-plugin'\n\nexport const sampleEthersGas: EthereumGasEthersPayload = {\n gasPrice: 13547863640,\n lastBaseFeePerGas: 13447862081,\n maxFeePerGas: 28395724162,\n maxPriorityFeePerGas: 1500000000,\n schema: EthereumGasEthersSchema,\n timestamp: 1668697958837,\n}\n","import { EthereumGasEthgasstationPayload, EthereumGasEthgasstationSchema } from '@xyo-network/ethgasstation-ethereum-gas-payload-plugin'\n\nexport const sampleEthgasstationGas: EthereumGasEthgasstationPayload = {\n baseFee: 10,\n blockNumber: 16028883,\n blockTime: 11.88,\n gasPrice: {\n fast: 12,\n instant: 13,\n standard: 12,\n },\n nextBaseFee: 10,\n priorityFee: {\n fast: 2,\n instant: 2,\n standard: 2,\n },\n schema: EthereumGasEthgasstationSchema,\n timestamp: 1668697958837,\n}\n"],"mappings":"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","names":[]}
@@ -1,122 +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/test/sampleBlocknativeGas.ts
21
- var sampleBlocknativeGas_exports = {};
22
- __export(sampleBlocknativeGas_exports, {
23
- sampleBlocknativeGas: () => sampleBlocknativeGas
24
- });
25
- module.exports = __toCommonJS(sampleBlocknativeGas_exports);
26
- var import_blocknative_ethereum_gas_payload_plugin = require("@xyo-network/blocknative-ethereum-gas-payload-plugin");
27
- var sampleBlocknativeGas = {
28
- blockPrices: [
29
- {
30
- baseFeePerGas: 13.691764456,
31
- blockNumber: 16028191,
32
- estimatedPrices: [
33
- {
34
- confidence: 99,
35
- maxFeePerGas: 22.04,
36
- maxPriorityFeePerGas: 1.09,
37
- price: 14
38
- },
39
- {
40
- confidence: 95,
41
- maxFeePerGas: 21.58,
42
- maxPriorityFeePerGas: 0.63,
43
- price: 14
44
- },
45
- {
46
- confidence: 90,
47
- maxFeePerGas: 21.25,
48
- maxPriorityFeePerGas: 0.3,
49
- price: 13
50
- },
51
- {
52
- confidence: 80,
53
- maxFeePerGas: 21.16,
54
- maxPriorityFeePerGas: 0.21,
55
- price: 13
56
- },
57
- {
58
- confidence: 70,
59
- maxFeePerGas: 21.12,
60
- maxPriorityFeePerGas: 0.17,
61
- price: 13
62
- }
63
- ],
64
- estimatedTransactionCount: 69
65
- }
66
- ],
67
- currentBlockNumber: 16028190,
68
- estimatedBaseFees: [
69
- {
70
- "pending+1": [
71
- {
72
- baseFee: 15.41,
73
- confidence: 99
74
- }
75
- ]
76
- },
77
- {
78
- "pending+2": [
79
- {
80
- baseFee: 17.32,
81
- confidence: 99
82
- }
83
- ]
84
- },
85
- {
86
- "pending+3": [
87
- {
88
- baseFee: 19.17,
89
- confidence: 99
90
- }
91
- ]
92
- },
93
- {
94
- "pending+4": [
95
- {
96
- baseFee: 20.12,
97
- confidence: 99
98
- }
99
- ]
100
- },
101
- {
102
- "pending+5": [
103
- {
104
- baseFee: 20.95,
105
- confidence: 99
106
- }
107
- ]
108
- }
109
- ],
110
- maxPrice: 36,
111
- msSinceLastBlock: 3643,
112
- network: "main",
113
- schema: import_blocknative_ethereum_gas_payload_plugin.EthereumGasBlocknativeSchema,
114
- system: "ethereum",
115
- timestamp: 1668697958837,
116
- unit: "gwei"
117
- };
118
- // Annotate the CommonJS export names for ESM import in node:
119
- 0 && (module.exports = {
120
- sampleBlocknativeGas
121
- });
122
- //# sourceMappingURL=sampleBlocknativeGas.js.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../../../src/test/sampleBlocknativeGas.ts"],"sourcesContent":["import { EstimatedBaseFee, EthereumGasBlocknativePayload, EthereumGasBlocknativeSchema } from '@xyo-network/blocknative-ethereum-gas-payload-plugin'\n\nexport const sampleBlocknativeGas: EthereumGasBlocknativePayload = {\n blockPrices: [\n {\n baseFeePerGas: 13.691764456,\n blockNumber: 16028191,\n estimatedPrices: [\n {\n confidence: 99,\n maxFeePerGas: 22.04,\n maxPriorityFeePerGas: 1.09,\n price: 14,\n },\n {\n confidence: 95,\n maxFeePerGas: 21.58,\n maxPriorityFeePerGas: 0.63,\n price: 14,\n },\n {\n confidence: 90,\n maxFeePerGas: 21.25,\n maxPriorityFeePerGas: 0.3,\n price: 13,\n },\n {\n confidence: 80,\n maxFeePerGas: 21.16,\n maxPriorityFeePerGas: 0.21,\n price: 13,\n },\n {\n confidence: 70,\n maxFeePerGas: 21.12,\n maxPriorityFeePerGas: 0.17,\n price: 13,\n },\n ],\n estimatedTransactionCount: 69,\n },\n ],\n currentBlockNumber: 16028190,\n estimatedBaseFees: [\n {\n 'pending+1': [\n {\n baseFee: 15.41,\n confidence: 99,\n },\n ],\n },\n {\n 'pending+2': [\n {\n baseFee: 17.32,\n confidence: 99,\n },\n ],\n },\n {\n 'pending+3': [\n {\n baseFee: 19.17,\n confidence: 99,\n },\n ],\n },\n {\n 'pending+4': [\n {\n baseFee: 20.12,\n confidence: 99,\n },\n ],\n },\n {\n 'pending+5': [\n {\n baseFee: 20.95,\n confidence: 99,\n },\n ],\n },\n ] as unknown as EstimatedBaseFee[],\n maxPrice: 36,\n msSinceLastBlock: 3643,\n network: 'main',\n schema: EthereumGasBlocknativeSchema,\n system: 'ethereum',\n timestamp: 1668697958837,\n unit: 'gwei',\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,qDAA8F;AAEvF,IAAM,uBAAsD;AAAA,EACjE,aAAa;AAAA,IACX;AAAA,MACE,eAAe;AAAA,MACf,aAAa;AAAA,MACb,iBAAiB;AAAA,QACf;AAAA,UACE,YAAY;AAAA,UACZ,cAAc;AAAA,UACd,sBAAsB;AAAA,UACtB,OAAO;AAAA,QACT;AAAA,QACA;AAAA,UACE,YAAY;AAAA,UACZ,cAAc;AAAA,UACd,sBAAsB;AAAA,UACtB,OAAO;AAAA,QACT;AAAA,QACA;AAAA,UACE,YAAY;AAAA,UACZ,cAAc;AAAA,UACd,sBAAsB;AAAA,UACtB,OAAO;AAAA,QACT;AAAA,QACA;AAAA,UACE,YAAY;AAAA,UACZ,cAAc;AAAA,UACd,sBAAsB;AAAA,UACtB,OAAO;AAAA,QACT;AAAA,QACA;AAAA,UACE,YAAY;AAAA,UACZ,cAAc;AAAA,UACd,sBAAsB;AAAA,UACtB,OAAO;AAAA,QACT;AAAA,MACF;AAAA,MACA,2BAA2B;AAAA,IAC7B;AAAA,EACF;AAAA,EACA,oBAAoB;AAAA,EACpB,mBAAmB;AAAA,IACjB;AAAA,MACE,aAAa;AAAA,QACX;AAAA,UACE,SAAS;AAAA,UACT,YAAY;AAAA,QACd;AAAA,MACF;AAAA,IACF;AAAA,IACA;AAAA,MACE,aAAa;AAAA,QACX;AAAA,UACE,SAAS;AAAA,UACT,YAAY;AAAA,QACd;AAAA,MACF;AAAA,IACF;AAAA,IACA;AAAA,MACE,aAAa;AAAA,QACX;AAAA,UACE,SAAS;AAAA,UACT,YAAY;AAAA,QACd;AAAA,MACF;AAAA,IACF;AAAA,IACA;AAAA,MACE,aAAa;AAAA,QACX;AAAA,UACE,SAAS;AAAA,UACT,YAAY;AAAA,QACd;AAAA,MACF;AAAA,IACF;AAAA,IACA;AAAA,MACE,aAAa;AAAA,QACX;AAAA,UACE,SAAS;AAAA,UACT,YAAY;AAAA,QACd;AAAA,MACF;AAAA,IACF;AAAA,EACF;AAAA,EACA,UAAU;AAAA,EACV,kBAAkB;AAAA,EAClB,SAAS;AAAA,EACT,QAAQ;AAAA,EACR,QAAQ;AAAA,EACR,WAAW;AAAA,EACX,MAAM;AACR;","names":[]}
@@ -1,97 +0,0 @@
1
- // src/test/sampleBlocknativeGas.ts
2
- import { EthereumGasBlocknativeSchema } from "@xyo-network/blocknative-ethereum-gas-payload-plugin";
3
- var sampleBlocknativeGas = {
4
- blockPrices: [
5
- {
6
- baseFeePerGas: 13.691764456,
7
- blockNumber: 16028191,
8
- estimatedPrices: [
9
- {
10
- confidence: 99,
11
- maxFeePerGas: 22.04,
12
- maxPriorityFeePerGas: 1.09,
13
- price: 14
14
- },
15
- {
16
- confidence: 95,
17
- maxFeePerGas: 21.58,
18
- maxPriorityFeePerGas: 0.63,
19
- price: 14
20
- },
21
- {
22
- confidence: 90,
23
- maxFeePerGas: 21.25,
24
- maxPriorityFeePerGas: 0.3,
25
- price: 13
26
- },
27
- {
28
- confidence: 80,
29
- maxFeePerGas: 21.16,
30
- maxPriorityFeePerGas: 0.21,
31
- price: 13
32
- },
33
- {
34
- confidence: 70,
35
- maxFeePerGas: 21.12,
36
- maxPriorityFeePerGas: 0.17,
37
- price: 13
38
- }
39
- ],
40
- estimatedTransactionCount: 69
41
- }
42
- ],
43
- currentBlockNumber: 16028190,
44
- estimatedBaseFees: [
45
- {
46
- "pending+1": [
47
- {
48
- baseFee: 15.41,
49
- confidence: 99
50
- }
51
- ]
52
- },
53
- {
54
- "pending+2": [
55
- {
56
- baseFee: 17.32,
57
- confidence: 99
58
- }
59
- ]
60
- },
61
- {
62
- "pending+3": [
63
- {
64
- baseFee: 19.17,
65
- confidence: 99
66
- }
67
- ]
68
- },
69
- {
70
- "pending+4": [
71
- {
72
- baseFee: 20.12,
73
- confidence: 99
74
- }
75
- ]
76
- },
77
- {
78
- "pending+5": [
79
- {
80
- baseFee: 20.95,
81
- confidence: 99
82
- }
83
- ]
84
- }
85
- ],
86
- maxPrice: 36,
87
- msSinceLastBlock: 3643,
88
- network: "main",
89
- schema: EthereumGasBlocknativeSchema,
90
- system: "ethereum",
91
- timestamp: 1668697958837,
92
- unit: "gwei"
93
- };
94
- export {
95
- sampleBlocknativeGas
96
- };
97
- //# sourceMappingURL=sampleBlocknativeGas.mjs.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../../../src/test/sampleBlocknativeGas.ts"],"sourcesContent":["import { EstimatedBaseFee, EthereumGasBlocknativePayload, EthereumGasBlocknativeSchema } from '@xyo-network/blocknative-ethereum-gas-payload-plugin'\n\nexport const sampleBlocknativeGas: EthereumGasBlocknativePayload = {\n blockPrices: [\n {\n baseFeePerGas: 13.691764456,\n blockNumber: 16028191,\n estimatedPrices: [\n {\n confidence: 99,\n maxFeePerGas: 22.04,\n maxPriorityFeePerGas: 1.09,\n price: 14,\n },\n {\n confidence: 95,\n maxFeePerGas: 21.58,\n maxPriorityFeePerGas: 0.63,\n price: 14,\n },\n {\n confidence: 90,\n maxFeePerGas: 21.25,\n maxPriorityFeePerGas: 0.3,\n price: 13,\n },\n {\n confidence: 80,\n maxFeePerGas: 21.16,\n maxPriorityFeePerGas: 0.21,\n price: 13,\n },\n {\n confidence: 70,\n maxFeePerGas: 21.12,\n maxPriorityFeePerGas: 0.17,\n price: 13,\n },\n ],\n estimatedTransactionCount: 69,\n },\n ],\n currentBlockNumber: 16028190,\n estimatedBaseFees: [\n {\n 'pending+1': [\n {\n baseFee: 15.41,\n confidence: 99,\n },\n ],\n },\n {\n 'pending+2': [\n {\n baseFee: 17.32,\n confidence: 99,\n },\n ],\n },\n {\n 'pending+3': [\n {\n baseFee: 19.17,\n confidence: 99,\n },\n ],\n },\n {\n 'pending+4': [\n {\n baseFee: 20.12,\n confidence: 99,\n },\n ],\n },\n {\n 'pending+5': [\n {\n baseFee: 20.95,\n confidence: 99,\n },\n ],\n },\n ] as unknown as EstimatedBaseFee[],\n maxPrice: 36,\n msSinceLastBlock: 3643,\n network: 'main',\n schema: EthereumGasBlocknativeSchema,\n system: 'ethereum',\n timestamp: 1668697958837,\n unit: 'gwei',\n}\n"],"mappings":";AAAA,SAA0D,oCAAoC;AAEvF,IAAM,uBAAsD;AAAA,EACjE,aAAa;AAAA,IACX;AAAA,MACE,eAAe;AAAA,MACf,aAAa;AAAA,MACb,iBAAiB;AAAA,QACf;AAAA,UACE,YAAY;AAAA,UACZ,cAAc;AAAA,UACd,sBAAsB;AAAA,UACtB,OAAO;AAAA,QACT;AAAA,QACA;AAAA,UACE,YAAY;AAAA,UACZ,cAAc;AAAA,UACd,sBAAsB;AAAA,UACtB,OAAO;AAAA,QACT;AAAA,QACA;AAAA,UACE,YAAY;AAAA,UACZ,cAAc;AAAA,UACd,sBAAsB;AAAA,UACtB,OAAO;AAAA,QACT;AAAA,QACA;AAAA,UACE,YAAY;AAAA,UACZ,cAAc;AAAA,UACd,sBAAsB;AAAA,UACtB,OAAO;AAAA,QACT;AAAA,QACA;AAAA,UACE,YAAY;AAAA,UACZ,cAAc;AAAA,UACd,sBAAsB;AAAA,UACtB,OAAO;AAAA,QACT;AAAA,MACF;AAAA,MACA,2BAA2B;AAAA,IAC7B;AAAA,EACF;AAAA,EACA,oBAAoB;AAAA,EACpB,mBAAmB;AAAA,IACjB;AAAA,MACE,aAAa;AAAA,QACX;AAAA,UACE,SAAS;AAAA,UACT,YAAY;AAAA,QACd;AAAA,MACF;AAAA,IACF;AAAA,IACA;AAAA,MACE,aAAa;AAAA,QACX;AAAA,UACE,SAAS;AAAA,UACT,YAAY;AAAA,QACd;AAAA,MACF;AAAA,IACF;AAAA,IACA;AAAA,MACE,aAAa;AAAA,QACX;AAAA,UACE,SAAS;AAAA,UACT,YAAY;AAAA,QACd;AAAA,MACF;AAAA,IACF;AAAA,IACA;AAAA,MACE,aAAa;AAAA,QACX;AAAA,UACE,SAAS;AAAA,UACT,YAAY;AAAA,QACd;AAAA,MACF;AAAA,IACF;AAAA,IACA;AAAA,MACE,aAAa;AAAA,QACX;AAAA,UACE,SAAS;AAAA,UACT,YAAY;AAAA,QACd;AAAA,MACF;AAAA,IACF;AAAA,EACF;AAAA,EACA,UAAU;AAAA,EACV,kBAAkB;AAAA,EAClB,SAAS;AAAA,EACT,QAAQ;AAAA,EACR,QAAQ;AAAA,EACR,WAAW;AAAA,EACX,MAAM;AACR;","names":[]}
@@ -1,44 +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/test/sampleEtherchainGasV2.ts
21
- var sampleEtherchainGasV2_exports = {};
22
- __export(sampleEtherchainGasV2_exports, {
23
- sampleEtherchainGasV2: () => sampleEtherchainGasV2
24
- });
25
- module.exports = __toCommonJS(sampleEtherchainGasV2_exports);
26
- var import_etherchain_gas_ethereum_blockchain_payload_plugins = require("@xyo-network/etherchain-gas-ethereum-blockchain-payload-plugins");
27
- var sampleEtherchainGasV2 = {
28
- code: 200,
29
- data: {
30
- fast: 19803047330,
31
- priceUSD: 1195.77,
32
- rapid: 29714286170,
33
- slow: 112e8,
34
- standard: 12e9,
35
- timestamp: 1668621234096
36
- },
37
- schema: import_etherchain_gas_ethereum_blockchain_payload_plugins.EthereumGasEtherchainV2Schema,
38
- timestamp: 1668621240790
39
- };
40
- // Annotate the CommonJS export names for ESM import in node:
41
- 0 && (module.exports = {
42
- sampleEtherchainGasV2
43
- });
44
- //# sourceMappingURL=sampleEtherchainGasV2.js.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../../../src/test/sampleEtherchainGasV2.ts"],"sourcesContent":["import { EthereumGasEtherchainV2Payload, EthereumGasEtherchainV2Schema } from '@xyo-network/etherchain-gas-ethereum-blockchain-payload-plugins'\n\nexport const sampleEtherchainGasV2: EthereumGasEtherchainV2Payload = {\n code: 200,\n data: {\n fast: 19803047330,\n priceUSD: 1195.77,\n rapid: 29714286170,\n slow: 11200000000,\n standard: 12000000000,\n timestamp: 1668621234096,\n },\n schema: EthereumGasEtherchainV2Schema,\n timestamp: 1668621240790,\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,gEAA8E;AAEvE,IAAM,wBAAwD;AAAA,EACnE,MAAM;AAAA,EACN,MAAM;AAAA,IACJ,MAAM;AAAA,IACN,UAAU;AAAA,IACV,OAAO;AAAA,IACP,MAAM;AAAA,IACN,UAAU;AAAA,IACV,WAAW;AAAA,EACb;AAAA,EACA,QAAQ;AAAA,EACR,WAAW;AACb;","names":[]}