@xyo-network/gas-price-plugin 2.75.0 → 2.75.3
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.
- package/dist/browser/Diviner.d.cts +16 -0
- package/dist/browser/Diviner.d.cts.map +1 -0
- package/dist/browser/Diviner.js +5 -225
- package/dist/browser/Diviner.js.map +1 -1
- package/dist/browser/Plugin.d.cts +50 -0
- package/dist/browser/Plugin.d.cts.map +1 -0
- package/dist/browser/Plugin.js +4 -239
- package/dist/browser/Plugin.js.map +1 -1
- package/dist/browser/Schema.d.cts +5 -0
- package/dist/browser/Schema.d.cts.map +1 -0
- package/dist/browser/Schema.js +2 -3
- package/dist/browser/Schema.js.map +1 -1
- package/dist/browser/index.d.cts +6 -0
- package/dist/browser/index.d.cts.map +1 -0
- package/dist/browser/index.js +3 -253
- package/dist/browser/index.js.map +1 -1
- package/dist/browser/lib/average.d.cts +8 -0
- package/dist/browser/lib/average.d.cts.map +1 -0
- package/dist/browser/lib/average.js +3 -4
- package/dist/browser/lib/average.js.map +1 -1
- package/dist/browser/lib/divineGas.d.cts +4 -0
- package/dist/browser/lib/divineGas.d.cts.map +1 -0
- package/dist/browser/lib/divineGas.js +16 -202
- package/dist/browser/lib/divineGas.js.map +1 -1
- package/dist/browser/lib/identities/index.d.cts +6 -0
- package/dist/browser/lib/identities/index.d.cts.map +1 -0
- package/dist/browser/lib/identities/index.js +5 -36
- package/dist/browser/lib/identities/index.js.map +1 -1
- package/dist/browser/lib/identities/isEthereumGasBlocknativePayload.d.cts +6 -0
- package/dist/browser/lib/identities/isEthereumGasBlocknativePayload.d.cts.map +1 -0
- package/dist/browser/lib/identities/isEthereumGasBlocknativePayload.js +1 -2
- package/dist/browser/lib/identities/isEthereumGasBlocknativePayload.js.map +1 -1
- package/dist/browser/lib/identities/isEthereumGasEtherchainV2Payload.d.cts +6 -0
- package/dist/browser/lib/identities/isEthereumGasEtherchainV2Payload.d.cts.map +1 -0
- package/dist/browser/lib/identities/isEthereumGasEtherchainV2Payload.js +1 -2
- package/dist/browser/lib/identities/isEthereumGasEtherchainV2Payload.js.map +1 -1
- package/dist/browser/lib/identities/isEthereumGasEthersPayload.d.cts +6 -0
- package/dist/browser/lib/identities/isEthereumGasEthersPayload.d.cts.map +1 -0
- package/dist/browser/lib/identities/isEthereumGasEthersPayload.js +1 -2
- package/dist/browser/lib/identities/isEthereumGasEthersPayload.js.map +1 -1
- package/dist/browser/lib/identities/isEthereumGasEtherscanPayload.d.cts +6 -0
- package/dist/browser/lib/identities/isEthereumGasEtherscanPayload.d.cts.map +1 -0
- package/dist/browser/lib/identities/isEthereumGasEtherscanPayload.js +1 -2
- package/dist/browser/lib/identities/isEthereumGasEtherscanPayload.js.map +1 -1
- package/dist/browser/lib/identities/isEthereumGasEthgasstationPayload.d.cts +6 -0
- package/dist/browser/lib/identities/isEthereumGasEthgasstationPayload.d.cts.map +1 -0
- package/dist/browser/lib/identities/isEthereumGasEthgasstationPayload.js +1 -2
- package/dist/browser/lib/identities/isEthereumGasEthgasstationPayload.js.map +1 -1
- package/dist/browser/lib/index.d.cts +2 -0
- package/dist/browser/lib/index.d.cts.map +1 -0
- package/dist/browser/lib/index.js +1 -218
- package/dist/browser/lib/index.js.map +1 -1
- package/dist/browser/lib/transforms/index.d.cts +6 -0
- package/dist/browser/lib/transforms/index.d.cts.map +1 -0
- package/dist/browser/lib/transforms/index.js +5 -148
- package/dist/browser/lib/transforms/index.js.map +1 -1
- package/dist/browser/lib/transforms/transformGasFromBlocknative.d.cts +4 -0
- package/dist/browser/lib/transforms/transformGasFromBlocknative.d.cts.map +1 -0
- package/dist/browser/lib/transforms/transformGasFromBlocknative.js +4 -5
- package/dist/browser/lib/transforms/transformGasFromBlocknative.js.map +1 -1
- package/dist/browser/lib/transforms/transformGasFromEtherchainV2.d.cts +4 -0
- package/dist/browser/lib/transforms/transformGasFromEtherchainV2.d.cts.map +1 -0
- package/dist/browser/lib/transforms/transformGasFromEtherchainV2.js +2 -3
- package/dist/browser/lib/transforms/transformGasFromEtherchainV2.js.map +1 -1
- package/dist/browser/lib/transforms/transformGasFromEthers.d.cts +4 -0
- package/dist/browser/lib/transforms/transformGasFromEthers.d.cts.map +1 -0
- package/dist/browser/lib/transforms/transformGasFromEthers.js +4 -5
- package/dist/browser/lib/transforms/transformGasFromEthers.js.map +1 -1
- package/dist/browser/lib/transforms/transformGasFromEtherscan.d.cts +4 -0
- package/dist/browser/lib/transforms/transformGasFromEtherscan.d.cts.map +1 -0
- package/dist/browser/lib/transforms/transformGasFromEtherscan.js +3 -4
- package/dist/browser/lib/transforms/transformGasFromEtherscan.js.map +1 -1
- package/dist/browser/lib/transforms/transformGasFromEthgasstation.d.cts +4 -0
- package/dist/browser/lib/transforms/transformGasFromEthgasstation.d.cts.map +1 -0
- package/dist/browser/lib/transforms/transformGasFromEthgasstation.js +4 -5
- package/dist/browser/lib/transforms/transformGasFromEthgasstation.js.map +1 -1
- package/dist/browser/test/index.d.cts +6 -0
- package/dist/browser/test/index.d.cts.map +1 -0
- package/dist/browser/test/index.js +5 -165
- package/dist/browser/test/index.js.map +1 -1
- package/dist/browser/test/sampleBlocknativeGas.d.cts +3 -0
- package/dist/browser/test/sampleBlocknativeGas.d.cts.map +1 -0
- package/dist/browser/test/sampleBlocknativeGas.js +1 -2
- package/dist/browser/test/sampleBlocknativeGas.js.map +1 -1
- package/dist/browser/test/sampleEtherchainGasV2.d.cts +3 -0
- package/dist/browser/test/sampleEtherchainGasV2.d.cts.map +1 -0
- package/dist/browser/test/sampleEtherchainGasV2.js +1 -2
- package/dist/browser/test/sampleEtherchainGasV2.js.map +1 -1
- package/dist/browser/test/sampleEthersGas.d.cts +3 -0
- package/dist/browser/test/sampleEthersGas.d.cts.map +1 -0
- package/dist/browser/test/sampleEthersGas.js +1 -2
- package/dist/browser/test/sampleEthersGas.js.map +1 -1
- package/dist/browser/test/sampleEtherscanGas.d.cts +3 -0
- package/dist/browser/test/sampleEtherscanGas.d.cts.map +1 -0
- package/dist/browser/test/sampleEtherscanGas.js +1 -2
- package/dist/browser/test/sampleEtherscanGas.js.map +1 -1
- package/dist/browser/test/sampleEthgasstationGas.d.cts +3 -0
- package/dist/browser/test/sampleEthgasstationGas.d.cts.map +1 -0
- package/dist/browser/test/sampleEthgasstationGas.js +1 -2
- package/dist/browser/test/sampleEthgasstationGas.js.map +1 -1
- package/dist/docs.json +21982 -0
- package/dist/node/Diviner.d.cts +16 -0
- package/dist/node/Diviner.d.cts.map +1 -0
- package/dist/node/Diviner.js +231 -7
- package/dist/node/Diviner.js.map +1 -1
- package/dist/node/Diviner.mjs +228 -5
- package/dist/node/Diviner.mjs.map +1 -1
- package/dist/node/Plugin.d.cts +50 -0
- package/dist/node/Plugin.d.cts.map +1 -0
- package/dist/node/Plugin.js +244 -5
- package/dist/node/Plugin.js.map +1 -1
- package/dist/node/Plugin.mjs +242 -4
- package/dist/node/Plugin.mjs.map +1 -1
- package/dist/node/Schema.d.cts +5 -0
- package/dist/node/Schema.d.cts.map +1 -0
- package/dist/node/Schema.js +4 -2
- package/dist/node/Schema.js.map +1 -1
- package/dist/node/Schema.mjs +3 -2
- package/dist/node/Schema.mjs.map +1 -1
- package/dist/node/index.d.cts +6 -0
- package/dist/node/index.d.cts.map +1 -0
- package/dist/node/index.js +265 -9
- package/dist/node/index.js.map +1 -1
- package/dist/node/index.mjs +256 -3
- package/dist/node/index.mjs.map +1 -1
- package/dist/node/lib/average.d.cts +8 -0
- package/dist/node/lib/average.d.cts.map +1 -0
- package/dist/node/lib/average.js +6 -4
- package/dist/node/lib/average.js.map +1 -1
- package/dist/node/lib/average.mjs +5 -4
- package/dist/node/lib/average.mjs.map +1 -1
- package/dist/node/lib/divineGas.d.cts +4 -0
- package/dist/node/lib/divineGas.d.cts.map +1 -0
- package/dist/node/lib/divineGas.js +212 -10
- package/dist/node/lib/divineGas.js.map +1 -1
- package/dist/node/lib/divineGas.mjs +205 -16
- package/dist/node/lib/divineGas.mjs.map +1 -1
- package/dist/node/lib/identities/index.d.cts +6 -0
- package/dist/node/lib/identities/index.d.cts.map +1 -0
- package/dist/node/lib/identities/index.js +48 -11
- package/dist/node/lib/identities/index.js.map +1 -1
- package/dist/node/lib/identities/index.mjs +36 -5
- package/dist/node/lib/identities/index.mjs.map +1 -1
- package/dist/node/lib/identities/isEthereumGasBlocknativePayload.d.cts +6 -0
- package/dist/node/lib/identities/isEthereumGasBlocknativePayload.d.cts.map +1 -0
- package/dist/node/lib/identities/isEthereumGasBlocknativePayload.js +4 -2
- package/dist/node/lib/identities/isEthereumGasBlocknativePayload.js.map +1 -1
- package/dist/node/lib/identities/isEthereumGasBlocknativePayload.mjs +3 -2
- package/dist/node/lib/identities/isEthereumGasBlocknativePayload.mjs.map +1 -1
- package/dist/node/lib/identities/isEthereumGasEtherchainV2Payload.d.cts +6 -0
- package/dist/node/lib/identities/isEthereumGasEtherchainV2Payload.d.cts.map +1 -0
- package/dist/node/lib/identities/isEthereumGasEtherchainV2Payload.js +4 -2
- package/dist/node/lib/identities/isEthereumGasEtherchainV2Payload.js.map +1 -1
- package/dist/node/lib/identities/isEthereumGasEtherchainV2Payload.mjs +3 -2
- package/dist/node/lib/identities/isEthereumGasEtherchainV2Payload.mjs.map +1 -1
- package/dist/node/lib/identities/isEthereumGasEthersPayload.d.cts +6 -0
- package/dist/node/lib/identities/isEthereumGasEthersPayload.d.cts.map +1 -0
- package/dist/node/lib/identities/isEthereumGasEthersPayload.js +4 -2
- package/dist/node/lib/identities/isEthereumGasEthersPayload.js.map +1 -1
- package/dist/node/lib/identities/isEthereumGasEthersPayload.mjs +3 -2
- package/dist/node/lib/identities/isEthereumGasEthersPayload.mjs.map +1 -1
- package/dist/node/lib/identities/isEthereumGasEtherscanPayload.d.cts +6 -0
- package/dist/node/lib/identities/isEthereumGasEtherscanPayload.d.cts.map +1 -0
- package/dist/node/lib/identities/isEthereumGasEtherscanPayload.js +4 -2
- package/dist/node/lib/identities/isEthereumGasEtherscanPayload.js.map +1 -1
- package/dist/node/lib/identities/isEthereumGasEtherscanPayload.mjs +3 -2
- package/dist/node/lib/identities/isEthereumGasEtherscanPayload.mjs.map +1 -1
- package/dist/node/lib/identities/isEthereumGasEthgasstationPayload.d.cts +6 -0
- package/dist/node/lib/identities/isEthereumGasEthgasstationPayload.d.cts.map +1 -0
- package/dist/node/lib/identities/isEthereumGasEthgasstationPayload.js +4 -2
- package/dist/node/lib/identities/isEthereumGasEthgasstationPayload.js.map +1 -1
- package/dist/node/lib/identities/isEthereumGasEthgasstationPayload.mjs +3 -2
- package/dist/node/lib/identities/isEthereumGasEthgasstationPayload.mjs.map +1 -1
- package/dist/node/lib/index.d.cts +2 -0
- package/dist/node/lib/index.d.cts.map +1 -0
- package/dist/node/lib/index.js +229 -3
- package/dist/node/lib/index.js.map +1 -1
- package/dist/node/lib/index.mjs +221 -1
- package/dist/node/lib/index.mjs.map +1 -1
- package/dist/node/lib/transforms/index.d.cts +6 -0
- package/dist/node/lib/transforms/index.d.cts.map +1 -0
- package/dist/node/lib/transforms/index.js +163 -11
- package/dist/node/lib/transforms/index.js.map +1 -1
- package/dist/node/lib/transforms/index.mjs +151 -5
- package/dist/node/lib/transforms/index.mjs.map +1 -1
- package/dist/node/lib/transforms/transformGasFromBlocknative.d.cts +4 -0
- package/dist/node/lib/transforms/transformGasFromBlocknative.d.cts.map +1 -0
- package/dist/node/lib/transforms/transformGasFromBlocknative.js +22 -17
- package/dist/node/lib/transforms/transformGasFromBlocknative.js.map +1 -1
- package/dist/node/lib/transforms/transformGasFromBlocknative.mjs +21 -17
- package/dist/node/lib/transforms/transformGasFromBlocknative.mjs.map +1 -1
- package/dist/node/lib/transforms/transformGasFromEtherchainV2.d.cts +4 -0
- package/dist/node/lib/transforms/transformGasFromEtherchainV2.d.cts.map +1 -0
- package/dist/node/lib/transforms/transformGasFromEtherchainV2.js +4 -2
- package/dist/node/lib/transforms/transformGasFromEtherchainV2.js.map +1 -1
- package/dist/node/lib/transforms/transformGasFromEtherchainV2.mjs +3 -2
- package/dist/node/lib/transforms/transformGasFromEtherchainV2.mjs.map +1 -1
- package/dist/node/lib/transforms/transformGasFromEthers.d.cts +4 -0
- package/dist/node/lib/transforms/transformGasFromEthers.d.cts.map +1 -0
- package/dist/node/lib/transforms/transformGasFromEthers.js +6 -4
- package/dist/node/lib/transforms/transformGasFromEthers.js.map +1 -1
- package/dist/node/lib/transforms/transformGasFromEthers.mjs +5 -4
- package/dist/node/lib/transforms/transformGasFromEthers.mjs.map +1 -1
- package/dist/node/lib/transforms/transformGasFromEtherscan.d.cts +4 -0
- package/dist/node/lib/transforms/transformGasFromEtherscan.d.cts.map +1 -0
- package/dist/node/lib/transforms/transformGasFromEtherscan.js +5 -3
- package/dist/node/lib/transforms/transformGasFromEtherscan.js.map +1 -1
- package/dist/node/lib/transforms/transformGasFromEtherscan.mjs +4 -3
- package/dist/node/lib/transforms/transformGasFromEtherscan.mjs.map +1 -1
- package/dist/node/lib/transforms/transformGasFromEthgasstation.d.cts +4 -0
- package/dist/node/lib/transforms/transformGasFromEthgasstation.d.cts.map +1 -0
- package/dist/node/lib/transforms/transformGasFromEthgasstation.js +6 -4
- package/dist/node/lib/transforms/transformGasFromEthgasstation.js.map +1 -1
- package/dist/node/lib/transforms/transformGasFromEthgasstation.mjs +5 -4
- package/dist/node/lib/transforms/transformGasFromEthgasstation.mjs.map +1 -1
- package/dist/node/test/index.d.cts +6 -0
- package/dist/node/test/index.d.cts.map +1 -0
- package/dist/node/test/index.js +177 -11
- package/dist/node/test/index.js.map +1 -1
- package/dist/node/test/index.mjs +165 -5
- package/dist/node/test/index.mjs.map +1 -1
- package/dist/node/test/sampleBlocknativeGas.d.cts +3 -0
- package/dist/node/test/sampleBlocknativeGas.d.cts.map +1 -0
- package/dist/node/test/sampleBlocknativeGas.js +3 -1
- package/dist/node/test/sampleBlocknativeGas.js.map +1 -1
- package/dist/node/test/sampleBlocknativeGas.mjs +2 -1
- package/dist/node/test/sampleBlocknativeGas.mjs.map +1 -1
- package/dist/node/test/sampleEtherchainGasV2.d.cts +3 -0
- package/dist/node/test/sampleEtherchainGasV2.d.cts.map +1 -0
- package/dist/node/test/sampleEtherchainGasV2.js +3 -1
- package/dist/node/test/sampleEtherchainGasV2.js.map +1 -1
- package/dist/node/test/sampleEtherchainGasV2.mjs +2 -1
- package/dist/node/test/sampleEtherchainGasV2.mjs.map +1 -1
- package/dist/node/test/sampleEthersGas.d.cts +3 -0
- package/dist/node/test/sampleEthersGas.d.cts.map +1 -0
- package/dist/node/test/sampleEthersGas.js +3 -1
- package/dist/node/test/sampleEthersGas.js.map +1 -1
- package/dist/node/test/sampleEthersGas.mjs +2 -1
- package/dist/node/test/sampleEthersGas.mjs.map +1 -1
- package/dist/node/test/sampleEtherscanGas.d.cts +3 -0
- package/dist/node/test/sampleEtherscanGas.d.cts.map +1 -0
- package/dist/node/test/sampleEtherscanGas.js +3 -1
- package/dist/node/test/sampleEtherscanGas.js.map +1 -1
- package/dist/node/test/sampleEtherscanGas.mjs +2 -1
- package/dist/node/test/sampleEtherscanGas.mjs.map +1 -1
- package/dist/node/test/sampleEthgasstationGas.d.cts +3 -0
- package/dist/node/test/sampleEthgasstationGas.d.cts.map +1 -0
- package/dist/node/test/sampleEthgasstationGas.js +3 -1
- package/dist/node/test/sampleEthgasstationGas.js.map +1 -1
- package/dist/node/test/sampleEthgasstationGas.mjs +2 -1
- package/dist/node/test/sampleEthgasstationGas.mjs.map +1 -1
- package/package.json +19 -19
package/dist/node/test/index.js
CHANGED
|
@@ -3,6 +3,10 @@ var __defProp = Object.defineProperty;
|
|
|
3
3
|
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
4
|
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
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
|
+
};
|
|
6
10
|
var __copyProps = (to, from, except, desc) => {
|
|
7
11
|
if (from && typeof from === "object" || typeof from === "function") {
|
|
8
12
|
for (let key of __getOwnPropNames(from))
|
|
@@ -11,21 +15,183 @@ var __copyProps = (to, from, except, desc) => {
|
|
|
11
15
|
}
|
|
12
16
|
return to;
|
|
13
17
|
};
|
|
14
|
-
var __reExport = (target, mod, secondTarget) => (__copyProps(target, mod, "default"), secondTarget && __copyProps(secondTarget, mod, "default"));
|
|
15
18
|
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
19
|
+
|
|
20
|
+
// src/test/index.ts
|
|
16
21
|
var test_exports = {};
|
|
22
|
+
__export(test_exports, {
|
|
23
|
+
sampleBlocknativeGas: () => sampleBlocknativeGas,
|
|
24
|
+
sampleEtherchainGasV2: () => sampleEtherchainGasV2,
|
|
25
|
+
sampleEthersGas: () => sampleEthersGas,
|
|
26
|
+
sampleEtherscanGas: () => sampleEtherscanGas,
|
|
27
|
+
sampleEthgasstationGas: () => sampleEthgasstationGas
|
|
28
|
+
});
|
|
17
29
|
module.exports = __toCommonJS(test_exports);
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
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
|
+
};
|
|
23
189
|
// Annotate the CommonJS export names for ESM import in node:
|
|
24
190
|
0 && (module.exports = {
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
191
|
+
sampleBlocknativeGas,
|
|
192
|
+
sampleEtherchainGasV2,
|
|
193
|
+
sampleEthersGas,
|
|
194
|
+
sampleEtherscanGas,
|
|
195
|
+
sampleEthgasstationGas
|
|
30
196
|
});
|
|
31
197
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../src/test/index.ts"],"sourcesContent":["export * from './sampleBlocknativeGas'\nexport * from './sampleEtherchainGasV2'\nexport * from './sampleEtherscanGas'\nexport * from './sampleEthersGas'\nexport * from './sampleEthgasstationGas'\n"],"mappings":"
|
|
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":[]}
|
package/dist/node/test/index.mjs
CHANGED
|
@@ -1,6 +1,166 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
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
|
+
};
|
|
6
166
|
//# sourceMappingURL=index.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../src/test/
|
|
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":[]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sampleBlocknativeGas.d.ts","sourceRoot":"","sources":["../../../src/test/sampleBlocknativeGas.ts"],"names":[],"mappings":"AAAA,OAAO,EAAoB,6BAA6B,EAAgC,MAAM,sDAAsD,CAAA;AAEpJ,eAAO,MAAM,oBAAoB,EAAE,6BA0FlC,CAAA"}
|
|
@@ -16,13 +16,15 @@ var __copyProps = (to, from, except, desc) => {
|
|
|
16
16
|
return to;
|
|
17
17
|
};
|
|
18
18
|
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
19
|
+
|
|
20
|
+
// src/test/sampleBlocknativeGas.ts
|
|
19
21
|
var sampleBlocknativeGas_exports = {};
|
|
20
22
|
__export(sampleBlocknativeGas_exports, {
|
|
21
23
|
sampleBlocknativeGas: () => sampleBlocknativeGas
|
|
22
24
|
});
|
|
23
25
|
module.exports = __toCommonJS(sampleBlocknativeGas_exports);
|
|
24
26
|
var import_blocknative_ethereum_gas_payload_plugin = require("@xyo-network/blocknative-ethereum-gas-payload-plugin");
|
|
25
|
-
|
|
27
|
+
var sampleBlocknativeGas = {
|
|
26
28
|
blockPrices: [
|
|
27
29
|
{
|
|
28
30
|
baseFeePerGas: 13.691764456,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../src/test/sampleBlocknativeGas.ts"],"sourcesContent":["import { EstimatedBaseFee, EthereumGasBlocknativePayload, EthereumGasBlocknativeSchema } from '@xyo-network/blocknative-ethereum-gas-payload-plugin'\n\nexport const sampleBlocknativeGas: EthereumGasBlocknativePayload = {\n blockPrices: [\n {\n baseFeePerGas: 13.691764456,\n blockNumber: 16028191,\n estimatedPrices: [\n {\n confidence: 99,\n maxFeePerGas: 22.04,\n maxPriorityFeePerGas: 1.09,\n price: 14,\n },\n {\n confidence: 95,\n maxFeePerGas: 21.58,\n maxPriorityFeePerGas: 0.63,\n price: 14,\n },\n {\n confidence: 90,\n maxFeePerGas: 21.25,\n maxPriorityFeePerGas: 0.3,\n price: 13,\n },\n {\n confidence: 80,\n maxFeePerGas: 21.16,\n maxPriorityFeePerGas: 0.21,\n price: 13,\n },\n {\n confidence: 70,\n maxFeePerGas: 21.12,\n maxPriorityFeePerGas: 0.17,\n price: 13,\n },\n ],\n estimatedTransactionCount: 69,\n },\n ],\n currentBlockNumber: 16028190,\n estimatedBaseFees: [\n {\n 'pending+1': [\n {\n baseFee: 15.41,\n confidence: 99,\n },\n ],\n },\n {\n 'pending+2': [\n {\n baseFee: 17.32,\n confidence: 99,\n },\n ],\n },\n {\n 'pending+3': [\n {\n baseFee: 19.17,\n confidence: 99,\n },\n ],\n },\n {\n 'pending+4': [\n {\n baseFee: 20.12,\n confidence: 99,\n },\n ],\n },\n {\n 'pending+5': [\n {\n baseFee: 20.95,\n confidence: 99,\n },\n ],\n },\n ] as unknown as EstimatedBaseFee[],\n maxPrice: 36,\n msSinceLastBlock: 3643,\n network: 'main',\n schema: EthereumGasBlocknativeSchema,\n system: 'ethereum',\n timestamp: 1668697958837,\n unit: 'gwei',\n}\n"],"mappings":"
|
|
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 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../src/test/sampleBlocknativeGas.ts"],"sourcesContent":["import { EstimatedBaseFee, EthereumGasBlocknativePayload, EthereumGasBlocknativeSchema } from '@xyo-network/blocknative-ethereum-gas-payload-plugin'\n\nexport const sampleBlocknativeGas: EthereumGasBlocknativePayload = {\n blockPrices: [\n {\n baseFeePerGas: 13.691764456,\n blockNumber: 16028191,\n estimatedPrices: [\n {\n confidence: 99,\n maxFeePerGas: 22.04,\n maxPriorityFeePerGas: 1.09,\n price: 14,\n },\n {\n confidence: 95,\n maxFeePerGas: 21.58,\n maxPriorityFeePerGas: 0.63,\n price: 14,\n },\n {\n confidence: 90,\n maxFeePerGas: 21.25,\n maxPriorityFeePerGas: 0.3,\n price: 13,\n },\n {\n confidence: 80,\n maxFeePerGas: 21.16,\n maxPriorityFeePerGas: 0.21,\n price: 13,\n },\n {\n confidence: 70,\n maxFeePerGas: 21.12,\n maxPriorityFeePerGas: 0.17,\n price: 13,\n },\n ],\n estimatedTransactionCount: 69,\n },\n ],\n currentBlockNumber: 16028190,\n estimatedBaseFees: [\n {\n 'pending+1': [\n {\n baseFee: 15.41,\n confidence: 99,\n },\n ],\n },\n {\n 'pending+2': [\n {\n baseFee: 17.32,\n confidence: 99,\n },\n ],\n },\n {\n 'pending+3': [\n {\n baseFee: 19.17,\n confidence: 99,\n },\n ],\n },\n {\n 'pending+4': [\n {\n baseFee: 20.12,\n confidence: 99,\n },\n ],\n },\n {\n 'pending+5': [\n {\n baseFee: 20.95,\n confidence: 99,\n },\n ],\n },\n ] as unknown as EstimatedBaseFee[],\n maxPrice: 36,\n msSinceLastBlock: 3643,\n network: 'main',\n schema: EthereumGasBlocknativeSchema,\n system: 'ethereum',\n timestamp: 1668697958837,\n unit: 'gwei',\n}\n"],"mappings":"AAAA,SAA0D,oCAAoC;AAEvF,
|
|
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":[]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sampleEtherchainGasV2.d.ts","sourceRoot":"","sources":["../../../src/test/sampleEtherchainGasV2.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,8BAA8B,EAAiC,MAAM,iEAAiE,CAAA;AAE/I,eAAO,MAAM,qBAAqB,EAAE,8BAYnC,CAAA"}
|
|
@@ -16,13 +16,15 @@ var __copyProps = (to, from, except, desc) => {
|
|
|
16
16
|
return to;
|
|
17
17
|
};
|
|
18
18
|
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
19
|
+
|
|
20
|
+
// src/test/sampleEtherchainGasV2.ts
|
|
19
21
|
var sampleEtherchainGasV2_exports = {};
|
|
20
22
|
__export(sampleEtherchainGasV2_exports, {
|
|
21
23
|
sampleEtherchainGasV2: () => sampleEtherchainGasV2
|
|
22
24
|
});
|
|
23
25
|
module.exports = __toCommonJS(sampleEtherchainGasV2_exports);
|
|
24
26
|
var import_etherchain_gas_ethereum_blockchain_payload_plugins = require("@xyo-network/etherchain-gas-ethereum-blockchain-payload-plugins");
|
|
25
|
-
|
|
27
|
+
var sampleEtherchainGasV2 = {
|
|
26
28
|
code: 200,
|
|
27
29
|
data: {
|
|
28
30
|
fast: 19803047330,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../src/test/sampleEtherchainGasV2.ts"],"sourcesContent":["import { EthereumGasEtherchainV2Payload, EthereumGasEtherchainV2Schema } from '@xyo-network/etherchain-gas-ethereum-blockchain-payload-plugins'\n\nexport const sampleEtherchainGasV2: EthereumGasEtherchainV2Payload = {\n code: 200,\n data: {\n fast: 19803047330,\n priceUSD: 1195.77,\n rapid: 29714286170,\n slow: 11200000000,\n standard: 12000000000,\n timestamp: 1668621234096,\n },\n schema: EthereumGasEtherchainV2Schema,\n timestamp: 1668621240790,\n}\n"],"mappings":"
|
|
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":[]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../src/test/sampleEtherchainGasV2.ts"],"sourcesContent":["import { EthereumGasEtherchainV2Payload, EthereumGasEtherchainV2Schema } from '@xyo-network/etherchain-gas-ethereum-blockchain-payload-plugins'\n\nexport const sampleEtherchainGasV2: EthereumGasEtherchainV2Payload = {\n code: 200,\n data: {\n fast: 19803047330,\n priceUSD: 1195.77,\n rapid: 29714286170,\n slow: 11200000000,\n standard: 12000000000,\n timestamp: 1668621234096,\n },\n schema: EthereumGasEtherchainV2Schema,\n timestamp: 1668621240790,\n}\n"],"mappings":"AAAA,SAAyC,qCAAqC;AAEvE,
|
|
1
|
+
{"version":3,"sources":["../../../src/test/sampleEtherchainGasV2.ts"],"sourcesContent":["import { EthereumGasEtherchainV2Payload, EthereumGasEtherchainV2Schema } from '@xyo-network/etherchain-gas-ethereum-blockchain-payload-plugins'\n\nexport const sampleEtherchainGasV2: EthereumGasEtherchainV2Payload = {\n code: 200,\n data: {\n fast: 19803047330,\n priceUSD: 1195.77,\n rapid: 29714286170,\n slow: 11200000000,\n standard: 12000000000,\n timestamp: 1668621234096,\n },\n schema: EthereumGasEtherchainV2Schema,\n timestamp: 1668621240790,\n}\n"],"mappings":";AAAA,SAAyC,qCAAqC;AAEvE,IAAM,wBAAwD;AAAA,EACnE,MAAM;AAAA,EACN,MAAM;AAAA,IACJ,MAAM;AAAA,IACN,UAAU;AAAA,IACV,OAAO;AAAA,IACP,MAAM;AAAA,IACN,UAAU;AAAA,IACV,WAAW;AAAA,EACb;AAAA,EACA,QAAQ;AAAA,EACR,WAAW;AACb;","names":[]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sampleEthersGas.d.ts","sourceRoot":"","sources":["../../../src/test/sampleEthersGas.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,wBAAwB,EAA2B,MAAM,iDAAiD,CAAA;AAEnH,eAAO,MAAM,eAAe,EAAE,wBAO7B,CAAA"}
|
|
@@ -16,13 +16,15 @@ var __copyProps = (to, from, except, desc) => {
|
|
|
16
16
|
return to;
|
|
17
17
|
};
|
|
18
18
|
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
19
|
+
|
|
20
|
+
// src/test/sampleEthersGas.ts
|
|
19
21
|
var sampleEthersGas_exports = {};
|
|
20
22
|
__export(sampleEthersGas_exports, {
|
|
21
23
|
sampleEthersGas: () => sampleEthersGas
|
|
22
24
|
});
|
|
23
25
|
module.exports = __toCommonJS(sampleEthersGas_exports);
|
|
24
26
|
var import_ethers_ethereum_gas_payload_plugin = require("@xyo-network/ethers-ethereum-gas-payload-plugin");
|
|
25
|
-
|
|
27
|
+
var sampleEthersGas = {
|
|
26
28
|
gasPrice: 13547863640,
|
|
27
29
|
lastBaseFeePerGas: 13447862081,
|
|
28
30
|
maxFeePerGas: 28395724162,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../src/test/sampleEthersGas.ts"],"sourcesContent":["import { EthereumGasEthersPayload, EthereumGasEthersSchema } from '@xyo-network/ethers-ethereum-gas-payload-plugin'\n\nexport const sampleEthersGas: EthereumGasEthersPayload = {\n gasPrice: 13547863640,\n lastBaseFeePerGas: 13447862081,\n maxFeePerGas: 28395724162,\n maxPriorityFeePerGas: 1500000000,\n schema: EthereumGasEthersSchema,\n timestamp: 1668697958837,\n}\n"],"mappings":"
|
|
1
|
+
{"version":3,"sources":["../../../src/test/sampleEthersGas.ts"],"sourcesContent":["import { EthereumGasEthersPayload, EthereumGasEthersSchema } from '@xyo-network/ethers-ethereum-gas-payload-plugin'\n\nexport const sampleEthersGas: EthereumGasEthersPayload = {\n gasPrice: 13547863640,\n lastBaseFeePerGas: 13447862081,\n maxFeePerGas: 28395724162,\n maxPriorityFeePerGas: 1500000000,\n schema: EthereumGasEthersSchema,\n timestamp: 1668697958837,\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,gDAAkE;AAE3D,IAAM,kBAA4C;AAAA,EACvD,UAAU;AAAA,EACV,mBAAmB;AAAA,EACnB,cAAc;AAAA,EACd,sBAAsB;AAAA,EACtB,QAAQ;AAAA,EACR,WAAW;AACb;","names":[]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../src/test/sampleEthersGas.ts"],"sourcesContent":["import { EthereumGasEthersPayload, EthereumGasEthersSchema } from '@xyo-network/ethers-ethereum-gas-payload-plugin'\n\nexport const sampleEthersGas: EthereumGasEthersPayload = {\n gasPrice: 13547863640,\n lastBaseFeePerGas: 13447862081,\n maxFeePerGas: 28395724162,\n maxPriorityFeePerGas: 1500000000,\n schema: EthereumGasEthersSchema,\n timestamp: 1668697958837,\n}\n"],"mappings":"AAAA,SAAmC,+BAA+B;AAE3D,
|
|
1
|
+
{"version":3,"sources":["../../../src/test/sampleEthersGas.ts"],"sourcesContent":["import { EthereumGasEthersPayload, EthereumGasEthersSchema } from '@xyo-network/ethers-ethereum-gas-payload-plugin'\n\nexport const sampleEthersGas: EthereumGasEthersPayload = {\n gasPrice: 13547863640,\n lastBaseFeePerGas: 13447862081,\n maxFeePerGas: 28395724162,\n maxPriorityFeePerGas: 1500000000,\n schema: EthereumGasEthersSchema,\n timestamp: 1668697958837,\n}\n"],"mappings":";AAAA,SAAmC,+BAA+B;AAE3D,IAAM,kBAA4C;AAAA,EACvD,UAAU;AAAA,EACV,mBAAmB;AAAA,EACnB,cAAc;AAAA,EACd,sBAAsB;AAAA,EACtB,QAAQ;AAAA,EACR,WAAW;AACb;","names":[]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sampleEtherscanGas.d.ts","sourceRoot":"","sources":["../../../src/test/sampleEtherscanGas.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,2BAA2B,EAA8B,MAAM,oDAAoD,CAAA;AAE5H,eAAO,MAAM,kBAAkB,EAAE,2BAahC,CAAA"}
|
|
@@ -16,13 +16,15 @@ var __copyProps = (to, from, except, desc) => {
|
|
|
16
16
|
return to;
|
|
17
17
|
};
|
|
18
18
|
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
19
|
+
|
|
20
|
+
// src/test/sampleEtherscanGas.ts
|
|
19
21
|
var sampleEtherscanGas_exports = {};
|
|
20
22
|
__export(sampleEtherscanGas_exports, {
|
|
21
23
|
sampleEtherscanGas: () => sampleEtherscanGas
|
|
22
24
|
});
|
|
23
25
|
module.exports = __toCommonJS(sampleEtherscanGas_exports);
|
|
24
26
|
var import_etherscan_ethereum_gas_payload_plugin = require("@xyo-network/etherscan-ethereum-gas-payload-plugin");
|
|
25
|
-
|
|
27
|
+
var sampleEtherscanGas = {
|
|
26
28
|
message: "OK",
|
|
27
29
|
result: {
|
|
28
30
|
FastGasPrice: "30",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../src/test/sampleEtherscanGas.ts"],"sourcesContent":["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"],"mappings":"
|
|
1
|
+
{"version":3,"sources":["../../../src/test/sampleEtherscanGas.ts"],"sourcesContent":["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"],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,mDAAwE;AAEjE,IAAM,qBAAkD;AAAA,EAC7D,SAAS;AAAA,EACT,QAAQ;AAAA,IACN,cAAc;AAAA,IACd,WAAW;AAAA,IACX,iBAAiB;AAAA,IACjB,cAAc;AAAA,IACd,cAAc;AAAA,IACd,gBAAgB;AAAA,EAClB;AAAA,EACA,QAAQ;AAAA,EACR,QAAQ;AAAA,EACR,WAAW;AACb;","names":[]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../src/test/sampleEtherscanGas.ts"],"sourcesContent":["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"],"mappings":"AAAA,SAAsC,kCAAkC;AAEjE,
|
|
1
|
+
{"version":3,"sources":["../../../src/test/sampleEtherscanGas.ts"],"sourcesContent":["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"],"mappings":";AAAA,SAAsC,kCAAkC;AAEjE,IAAM,qBAAkD;AAAA,EAC7D,SAAS;AAAA,EACT,QAAQ;AAAA,IACN,cAAc;AAAA,IACd,WAAW;AAAA,IACX,iBAAiB;AAAA,IACjB,cAAc;AAAA,IACd,cAAc;AAAA,IACd,gBAAgB;AAAA,EAClB;AAAA,EACA,QAAQ;AAAA,EACR,QAAQ;AAAA,EACR,WAAW;AACb;","names":[]}
|