@xyo-network/gas-price-plugin 2.61.1 → 2.61.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/Diviner.js +5 -5
- package/dist/cjs/Diviner.js.map +1 -1
- package/dist/cjs/Plugin.js +4 -4
- package/dist/cjs/Plugin.js.map +1 -1
- package/dist/cjs/Schema.js +3 -3
- package/dist/cjs/Schema.js.map +1 -1
- package/dist/cjs/index.js +3 -3
- package/dist/cjs/index.js.map +1 -1
- package/dist/cjs/lib/divineGas.js +6 -6
- package/dist/cjs/lib/divineGas.js.map +1 -1
- package/dist/cjs/lib/identities/index.js +5 -5
- package/dist/cjs/lib/identities/index.js.map +1 -1
- package/dist/cjs/lib/identities/isEthereumGasBlocknativePayload.js +9 -0
- package/dist/cjs/lib/identities/isEthereumGasBlocknativePayload.js.map +1 -0
- package/dist/cjs/lib/identities/{isXyoEthereumGasEtherchainV2Payload.js → isEthereumGasEtherchainV2Payload.js} +5 -5
- package/dist/cjs/lib/identities/isEthereumGasEtherchainV2Payload.js.map +1 -0
- package/dist/cjs/lib/identities/isEthereumGasEthersPayload.js +9 -0
- package/dist/cjs/lib/identities/isEthereumGasEthersPayload.js.map +1 -0
- package/dist/cjs/lib/identities/isEthereumGasEtherscanPayload.js +9 -0
- package/dist/cjs/lib/identities/isEthereumGasEtherscanPayload.js.map +1 -0
- package/dist/cjs/lib/identities/isEthereumGasEthgasstationPayload.js +9 -0
- package/dist/cjs/lib/identities/isEthereumGasEthgasstationPayload.js.map +1 -0
- package/dist/cjs/lib/transforms/transformGasFromBlocknative.js.map +1 -1
- package/dist/cjs/lib/transforms/transformGasFromEtherchainV2.js.map +1 -1
- package/dist/cjs/lib/transforms/transformGasFromEthers.js.map +1 -1
- package/dist/cjs/lib/transforms/transformGasFromEtherscan.js.map +1 -1
- package/dist/cjs/lib/transforms/transformGasFromEthgasstation.js.map +1 -1
- package/dist/cjs/test/sampleBlocknativeGas.js +1 -1
- package/dist/cjs/test/sampleBlocknativeGas.js.map +1 -1
- package/dist/cjs/test/sampleEtherchainGasV2.js +1 -1
- package/dist/cjs/test/sampleEtherchainGasV2.js.map +1 -1
- package/dist/cjs/test/sampleEthersGas.js +1 -1
- package/dist/cjs/test/sampleEthersGas.js.map +1 -1
- package/dist/cjs/test/sampleEtherscanGas.js +1 -1
- package/dist/cjs/test/sampleEtherscanGas.js.map +1 -1
- package/dist/cjs/test/sampleEthgasstationGas.js +1 -1
- package/dist/cjs/test/sampleEthgasstationGas.js.map +1 -1
- package/dist/docs.json +106 -106
- package/dist/esm/Diviner.js +5 -5
- package/dist/esm/Diviner.js.map +1 -1
- package/dist/esm/Plugin.js +4 -4
- package/dist/esm/Plugin.js.map +1 -1
- package/dist/esm/Schema.js +2 -2
- package/dist/esm/Schema.js.map +1 -1
- package/dist/esm/index.js +3 -3
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/lib/divineGas.js +8 -8
- package/dist/esm/lib/divineGas.js.map +1 -1
- package/dist/esm/lib/identities/index.js +5 -5
- package/dist/esm/lib/identities/index.js.map +1 -1
- package/dist/esm/lib/identities/isEthereumGasBlocknativePayload.js +5 -0
- package/dist/esm/lib/identities/isEthereumGasBlocknativePayload.js.map +1 -0
- package/dist/esm/lib/identities/isEthereumGasEtherchainV2Payload.js +5 -0
- package/dist/esm/lib/identities/isEthereumGasEtherchainV2Payload.js.map +1 -0
- package/dist/esm/lib/identities/isEthereumGasEthersPayload.js +5 -0
- package/dist/esm/lib/identities/isEthereumGasEthersPayload.js.map +1 -0
- package/dist/esm/lib/identities/isEthereumGasEtherscanPayload.js +5 -0
- package/dist/esm/lib/identities/isEthereumGasEtherscanPayload.js.map +1 -0
- package/dist/esm/lib/identities/isEthereumGasEthgasstationPayload.js +5 -0
- package/dist/esm/lib/identities/isEthereumGasEthgasstationPayload.js.map +1 -0
- package/dist/esm/lib/transforms/transformGasFromBlocknative.js.map +1 -1
- package/dist/esm/lib/transforms/transformGasFromEtherchainV2.js.map +1 -1
- package/dist/esm/lib/transforms/transformGasFromEthers.js.map +1 -1
- package/dist/esm/lib/transforms/transformGasFromEtherscan.js.map +1 -1
- package/dist/esm/lib/transforms/transformGasFromEthgasstation.js.map +1 -1
- package/dist/esm/test/sampleBlocknativeGas.js +2 -2
- package/dist/esm/test/sampleBlocknativeGas.js.map +1 -1
- package/dist/esm/test/sampleEtherchainGasV2.js +2 -2
- package/dist/esm/test/sampleEtherchainGasV2.js.map +1 -1
- package/dist/esm/test/sampleEthersGas.js +2 -2
- package/dist/esm/test/sampleEthersGas.js.map +1 -1
- package/dist/esm/test/sampleEtherscanGas.js +2 -2
- package/dist/esm/test/sampleEtherscanGas.js.map +1 -1
- package/dist/esm/test/sampleEthgasstationGas.js +2 -2
- package/dist/esm/test/sampleEthgasstationGas.js.map +1 -1
- package/dist/types/Diviner.d.ts +5 -5
- package/dist/types/Diviner.d.ts.map +1 -1
- package/dist/types/Plugin.d.ts +2 -2
- package/dist/types/Plugin.d.ts.map +1 -1
- package/dist/types/Schema.d.ts +4 -4
- package/dist/types/Schema.d.ts.map +1 -1
- package/dist/types/index.d.ts +3 -3
- package/dist/types/index.d.ts.map +1 -1
- package/dist/types/lib/divineGas.d.ts +2 -2
- package/dist/types/lib/divineGas.d.ts.map +1 -1
- package/dist/types/lib/identities/index.d.ts +5 -5
- package/dist/types/lib/identities/index.d.ts.map +1 -1
- package/dist/types/lib/identities/isEthereumGasBlocknativePayload.d.ts +6 -0
- package/dist/types/lib/identities/isEthereumGasBlocknativePayload.d.ts.map +1 -0
- package/dist/types/lib/identities/isEthereumGasEtherchainV2Payload.d.ts +6 -0
- package/dist/types/lib/identities/isEthereumGasEtherchainV2Payload.d.ts.map +1 -0
- package/dist/types/lib/identities/isEthereumGasEthersPayload.d.ts +6 -0
- package/dist/types/lib/identities/isEthereumGasEthersPayload.d.ts.map +1 -0
- package/dist/types/lib/identities/isEthereumGasEtherscanPayload.d.ts +6 -0
- package/dist/types/lib/identities/isEthereumGasEtherscanPayload.d.ts.map +1 -0
- package/dist/types/lib/identities/isEthereumGasEthgasstationPayload.d.ts +6 -0
- package/dist/types/lib/identities/isEthereumGasEthgasstationPayload.d.ts.map +1 -0
- package/dist/types/lib/transforms/transformGasFromBlocknative.d.ts +2 -2
- package/dist/types/lib/transforms/transformGasFromBlocknative.d.ts.map +1 -1
- package/dist/types/lib/transforms/transformGasFromEtherchainV2.d.ts +2 -2
- package/dist/types/lib/transforms/transformGasFromEtherchainV2.d.ts.map +1 -1
- package/dist/types/lib/transforms/transformGasFromEthers.d.ts +2 -2
- package/dist/types/lib/transforms/transformGasFromEthers.d.ts.map +1 -1
- package/dist/types/lib/transforms/transformGasFromEtherscan.d.ts +2 -2
- package/dist/types/lib/transforms/transformGasFromEtherscan.d.ts.map +1 -1
- package/dist/types/lib/transforms/transformGasFromEthgasstation.d.ts +2 -2
- package/dist/types/lib/transforms/transformGasFromEthgasstation.d.ts.map +1 -1
- package/dist/types/test/sampleBlocknativeGas.d.ts +2 -2
- package/dist/types/test/sampleBlocknativeGas.d.ts.map +1 -1
- package/dist/types/test/sampleEtherchainGasV2.d.ts +2 -2
- package/dist/types/test/sampleEtherchainGasV2.d.ts.map +1 -1
- package/dist/types/test/sampleEthersGas.d.ts +2 -2
- package/dist/types/test/sampleEthersGas.d.ts.map +1 -1
- package/dist/types/test/sampleEtherscanGas.d.ts +2 -2
- package/dist/types/test/sampleEtherscanGas.d.ts.map +1 -1
- package/dist/types/test/sampleEthgasstationGas.d.ts +2 -2
- package/dist/types/test/sampleEthgasstationGas.d.ts.map +1 -1
- package/package.json +15 -15
- package/src/Diviner.ts +7 -7
- package/src/Plugin.ts +6 -6
- package/src/Schema.ts +4 -4
- package/src/index.ts +3 -3
- package/src/lib/divineGas.ts +13 -13
- package/src/lib/identities/index.ts +5 -5
- package/src/lib/identities/isEthereumGasBlocknativePayload.ts +6 -0
- package/src/lib/identities/isEthereumGasEtherchainV2Payload.ts +6 -0
- package/src/lib/identities/isEthereumGasEthersPayload.ts +6 -0
- package/src/lib/identities/isEthereumGasEtherscanPayload.ts +6 -0
- package/src/lib/identities/isEthereumGasEthgasstationPayload.ts +6 -0
- package/src/lib/transforms/transformGasFromBlocknative.ts +5 -5
- package/src/lib/transforms/transformGasFromEtherchainV2.ts +3 -3
- package/src/lib/transforms/transformGasFromEthers.ts +5 -5
- package/src/lib/transforms/transformGasFromEtherscan.ts +4 -4
- package/src/lib/transforms/transformGasFromEthgasstation.ts +5 -5
- package/src/test/sampleBlocknativeGas.ts +3 -7
- package/src/test/sampleEtherchainGasV2.ts +3 -3
- package/src/test/sampleEthersGas.ts +3 -3
- package/src/test/sampleEtherscanGas.ts +3 -3
- package/src/test/sampleEthgasstationGas.ts +3 -3
- package/dist/cjs/lib/identities/isXyoEthereumGasBlocknativePayload.js +0 -9
- package/dist/cjs/lib/identities/isXyoEthereumGasBlocknativePayload.js.map +0 -1
- package/dist/cjs/lib/identities/isXyoEthereumGasEtherchainV2Payload.js.map +0 -1
- package/dist/cjs/lib/identities/isXyoEthereumGasEthersPayload.js +0 -9
- package/dist/cjs/lib/identities/isXyoEthereumGasEthersPayload.js.map +0 -1
- package/dist/cjs/lib/identities/isXyoEthereumGasEtherscanPayload.js +0 -9
- package/dist/cjs/lib/identities/isXyoEthereumGasEtherscanPayload.js.map +0 -1
- package/dist/cjs/lib/identities/isXyoEthereumGasEthgasstationPayload.js +0 -9
- package/dist/cjs/lib/identities/isXyoEthereumGasEthgasstationPayload.js.map +0 -1
- package/dist/esm/lib/identities/isXyoEthereumGasBlocknativePayload.js +0 -5
- package/dist/esm/lib/identities/isXyoEthereumGasBlocknativePayload.js.map +0 -1
- package/dist/esm/lib/identities/isXyoEthereumGasEtherchainV2Payload.js +0 -5
- package/dist/esm/lib/identities/isXyoEthereumGasEtherchainV2Payload.js.map +0 -1
- package/dist/esm/lib/identities/isXyoEthereumGasEthersPayload.js +0 -5
- package/dist/esm/lib/identities/isXyoEthereumGasEthersPayload.js.map +0 -1
- package/dist/esm/lib/identities/isXyoEthereumGasEtherscanPayload.js +0 -5
- package/dist/esm/lib/identities/isXyoEthereumGasEtherscanPayload.js.map +0 -1
- package/dist/esm/lib/identities/isXyoEthereumGasEthgasstationPayload.js +0 -5
- package/dist/esm/lib/identities/isXyoEthereumGasEthgasstationPayload.js.map +0 -1
- package/dist/types/lib/identities/isXyoEthereumGasBlocknativePayload.d.ts +0 -6
- package/dist/types/lib/identities/isXyoEthereumGasBlocknativePayload.d.ts.map +0 -1
- package/dist/types/lib/identities/isXyoEthereumGasEtherchainV2Payload.d.ts +0 -6
- package/dist/types/lib/identities/isXyoEthereumGasEtherchainV2Payload.d.ts.map +0 -1
- package/dist/types/lib/identities/isXyoEthereumGasEthersPayload.d.ts +0 -6
- package/dist/types/lib/identities/isXyoEthereumGasEthersPayload.d.ts.map +0 -1
- package/dist/types/lib/identities/isXyoEthereumGasEtherscanPayload.d.ts +0 -6
- package/dist/types/lib/identities/isXyoEthereumGasEtherscanPayload.d.ts.map +0 -1
- package/dist/types/lib/identities/isXyoEthereumGasEthgasstationPayload.d.ts +0 -6
- package/dist/types/lib/identities/isXyoEthereumGasEthgasstationPayload.d.ts.map +0 -1
- package/src/lib/identities/isXyoEthereumGasBlocknativePayload.ts +0 -6
- package/src/lib/identities/isXyoEthereumGasEtherchainV2Payload.ts +0 -6
- package/src/lib/identities/isXyoEthereumGasEthersPayload.ts +0 -6
- package/src/lib/identities/isXyoEthereumGasEtherscanPayload.ts +0 -6
- package/src/lib/identities/isXyoEthereumGasEthgasstationPayload.ts +0 -6
package/dist/cjs/Diviner.js
CHANGED
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
3
|
+
exports.EthereumGasDiviner = void 0;
|
|
4
4
|
const abstract_diviner_1 = require("@xyo-network/abstract-diviner");
|
|
5
5
|
const gas_price_payload_plugin_1 = require("@xyo-network/gas-price-payload-plugin");
|
|
6
6
|
const lib_1 = require("./lib");
|
|
7
7
|
const Schema_1 = require("./Schema");
|
|
8
|
-
class
|
|
8
|
+
class EthereumGasDiviner extends abstract_diviner_1.AbstractDiviner {
|
|
9
9
|
divine(payloads) {
|
|
10
10
|
const cost = (0, lib_1.divineGas)(payloads !== null && payloads !== void 0 ? payloads : []);
|
|
11
11
|
return [cost];
|
|
12
12
|
}
|
|
13
13
|
}
|
|
14
|
-
exports.
|
|
15
|
-
|
|
16
|
-
|
|
14
|
+
exports.EthereumGasDiviner = EthereumGasDiviner;
|
|
15
|
+
EthereumGasDiviner.configSchema = Schema_1.EthereumGasDivinerConfigSchema;
|
|
16
|
+
EthereumGasDiviner.targetSchema = gas_price_payload_plugin_1.EthereumGasSchema;
|
|
17
17
|
//# sourceMappingURL=Diviner.js.map
|
package/dist/cjs/Diviner.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Diviner.js","sourceRoot":"","sources":["../../src/Diviner.ts"],"names":[],"mappings":";;;AAAA,oEAA+D;AAE/D,
|
|
1
|
+
{"version":3,"file":"Diviner.js","sourceRoot":"","sources":["../../src/Diviner.ts"],"names":[],"mappings":";;;AAAA,oEAA+D;AAE/D,oFAAyE;AAKzE,+BAAiC;AACjC,qCAAyD;AAKzD,MAAa,kBACX,SAAQ,kCAAwB;IAMvB,MAAM,CAAC,QAAoB;QAClC,MAAM,IAAI,GAAG,IAAA,eAAS,EAAC,QAAQ,aAAR,QAAQ,cAAR,QAAQ,GAAI,EAAE,CAAC,CAAA;QACtC,OAAO,CAAC,IAAI,CAAC,CAAA;IACf,CAAC;;AAVH,gDAWC;AAPiB,+BAAY,GAAW,uCAA8B,CAAA;AACrD,+BAAY,GAAW,4CAAiB,CAAA"}
|
package/dist/cjs/Plugin.js
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
3
|
+
exports.EthereumGasPlugin = void 0;
|
|
4
4
|
const tslib_1 = require("tslib");
|
|
5
5
|
const gas_price_payload_plugin_1 = require("@xyo-network/gas-price-payload-plugin");
|
|
6
6
|
const payload_model_1 = require("@xyo-network/payload-model");
|
|
7
7
|
const payloadset_plugin_1 = require("@xyo-network/payloadset-plugin");
|
|
8
8
|
const Diviner_1 = require("./Diviner");
|
|
9
|
-
const
|
|
9
|
+
const EthereumGasPlugin = () => (0, payloadset_plugin_1.createPayloadSetDivinerPlugin)({ required: { [gas_price_payload_plugin_1.EthereumGasSchema]: 1 }, schema: payload_model_1.PayloadSetSchema }, {
|
|
10
10
|
diviner: (params) => tslib_1.__awaiter(void 0, void 0, void 0, function* () {
|
|
11
|
-
return (yield Diviner_1.
|
|
11
|
+
return (yield Diviner_1.EthereumGasDiviner.create(params));
|
|
12
12
|
}),
|
|
13
13
|
});
|
|
14
|
-
exports.
|
|
14
|
+
exports.EthereumGasPlugin = EthereumGasPlugin;
|
|
15
15
|
//# sourceMappingURL=Plugin.js.map
|
package/dist/cjs/Plugin.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Plugin.js","sourceRoot":"","sources":["../../src/Plugin.ts"],"names":[],"mappings":";;;;AAAA,
|
|
1
|
+
{"version":3,"file":"Plugin.js","sourceRoot":"","sources":["../../src/Plugin.ts"],"names":[],"mappings":";;;;AAAA,oFAAyE;AACzE,8DAA6D;AAC7D,sEAA8E;AAE9E,uCAA8C;AAEvC,MAAM,iBAAiB,GAAG,GAAG,EAAE,CACpC,IAAA,iDAA6B,EAC3B,EAAE,QAAQ,EAAE,EAAE,CAAC,4CAAiB,CAAC,EAAE,CAAC,EAAE,EAAE,MAAM,EAAE,gCAAgB,EAAE,EAClE;IACE,OAAO,EAAE,CAAO,MAAM,EAAE,EAAE;QACxB,OAAO,CAAC,MAAM,4BAAkB,CAAC,MAAM,CAAC,MAAM,CAAC,CAAuB,CAAA;IACxE,CAAC,CAAA;CACF,CACF,CAAA;AARU,QAAA,iBAAiB,qBAQ3B"}
|
package/dist/cjs/Schema.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
4
|
-
exports.
|
|
5
|
-
exports.
|
|
3
|
+
exports.EthereumGasDivinerConfigSchema = exports.EthereumGasDivinerQuerySchema = void 0;
|
|
4
|
+
exports.EthereumGasDivinerQuerySchema = 'network.xyo.blockchain.ethereum.gas.diviner.query';
|
|
5
|
+
exports.EthereumGasDivinerConfigSchema = 'network.xyo.blockchain.ethereum.gas.diviner.config';
|
|
6
6
|
//# sourceMappingURL=Schema.js.map
|
package/dist/cjs/Schema.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Schema.js","sourceRoot":"","sources":["../../src/Schema.ts"],"names":[],"mappings":";;;AACa,QAAA,
|
|
1
|
+
{"version":3,"file":"Schema.js","sourceRoot":"","sources":["../../src/Schema.ts"],"names":[],"mappings":";;;AACa,QAAA,6BAA6B,GAAkC,mDAAmD,CAAA;AAGlH,QAAA,8BAA8B,GAAmC,oDAAoD,CAAA"}
|
package/dist/cjs/index.js
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
3
|
+
exports.EthereumGasPlugin = void 0;
|
|
4
4
|
const tslib_1 = require("tslib");
|
|
5
5
|
const Plugin_1 = require("./Plugin");
|
|
6
|
-
Object.defineProperty(exports, "
|
|
6
|
+
Object.defineProperty(exports, "EthereumGasPlugin", { enumerable: true, get: function () { return Plugin_1.EthereumGasPlugin; } });
|
|
7
7
|
tslib_1.__exportStar(require("./Diviner"), exports);
|
|
8
8
|
tslib_1.__exportStar(require("./Schema"), exports);
|
|
9
9
|
// eslint-disable-next-line import/no-default-export
|
|
10
|
-
exports.default = Plugin_1.
|
|
10
|
+
exports.default = Plugin_1.EthereumGasPlugin;
|
|
11
11
|
//# sourceMappingURL=index.js.map
|
package/dist/cjs/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":";;;;AAAA,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":";;;;AAAA,qCAA4C;AAKnC,kGALA,0BAAiB,OAKA;AAH1B,oDAAyB;AACzB,mDAAwB;AAIxB,oDAAoD;AACpD,kBAAe,0BAAiB,CAAA"}
|
|
@@ -7,15 +7,15 @@ const average_1 = require("./average");
|
|
|
7
7
|
const identities_1 = require("./identities");
|
|
8
8
|
const transforms_1 = require("./transforms");
|
|
9
9
|
const divineGas = (payloads) => {
|
|
10
|
-
const blocknative = payloads.filter(identities_1.
|
|
11
|
-
const etherchainV2 = payloads.filter(identities_1.
|
|
12
|
-
const ethers = payloads.filter(identities_1.
|
|
13
|
-
const etherscan = payloads.filter(identities_1.
|
|
14
|
-
const ethgasstation = payloads.filter(identities_1.
|
|
10
|
+
const blocknative = payloads.filter(identities_1.isEthereumGasBlocknativePayload).map(transforms_1.transformGasFromBlocknative);
|
|
11
|
+
const etherchainV2 = payloads.filter(identities_1.isEthereumGasEtherchainV2Payload).map(transforms_1.transformGasFromEtherchainV2);
|
|
12
|
+
const ethers = payloads.filter(identities_1.isEthereumGasEthersPayload).map(transforms_1.transformGasFromEthers);
|
|
13
|
+
const etherscan = payloads.filter(identities_1.isEthereumGasEtherscanPayload).map(transforms_1.transformGasFromEtherscan);
|
|
14
|
+
const ethgasstation = payloads.filter(identities_1.isEthereumGasEthgasstationPayload).map(transforms_1.transformGasFromEthgasstation);
|
|
15
15
|
const transactionCosts = [...blocknative, ...etherchainV2, ...ethers, ...etherscan, ...ethgasstation];
|
|
16
16
|
const avg = (0, average_1.average)(transactionCosts);
|
|
17
17
|
const timestamp = Date.now();
|
|
18
|
-
const payload = new payload_builder_1.PayloadBuilder({ schema: gas_price_payload_plugin_1.
|
|
18
|
+
const payload = new payload_builder_1.PayloadBuilder({ schema: gas_price_payload_plugin_1.EthereumGasSchema }).fields(Object.assign(Object.assign({}, avg), { timestamp })).build();
|
|
19
19
|
return payload;
|
|
20
20
|
};
|
|
21
21
|
exports.divineGas = divineGas;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"divineGas.js","sourceRoot":"","sources":["../../../src/lib/divineGas.ts"],"names":[],"mappings":";;;AAAA,
|
|
1
|
+
{"version":3,"file":"divineGas.js","sourceRoot":"","sources":["../../../src/lib/divineGas.ts"],"names":[],"mappings":";;;AAAA,oFAAsG;AACtG,kEAA6D;AAG7D,uCAAmC;AACnC,6CAMqB;AACrB,6CAMqB;AAEd,MAAM,SAAS,GAAG,CAAC,QAAmB,EAAsB,EAAE;IACnE,MAAM,WAAW,GAAG,QAAQ,CAAC,MAAM,CAAC,4CAA+B,CAAC,CAAC,GAAG,CAAC,wCAA2B,CAAC,CAAA;IACrG,MAAM,YAAY,GAAG,QAAQ,CAAC,MAAM,CAAC,6CAAgC,CAAC,CAAC,GAAG,CAAC,yCAA4B,CAAC,CAAA;IACxG,MAAM,MAAM,GAAG,QAAQ,CAAC,MAAM,CAAC,uCAA0B,CAAC,CAAC,GAAG,CAAC,mCAAsB,CAAC,CAAA;IACtF,MAAM,SAAS,GAAG,QAAQ,CAAC,MAAM,CAAC,0CAA6B,CAAC,CAAC,GAAG,CAAC,sCAAyB,CAAC,CAAA;IAC/F,MAAM,aAAa,GAAG,QAAQ,CAAC,MAAM,CAAC,8CAAiC,CAAC,CAAC,GAAG,CAAC,0CAA6B,CAAC,CAAA;IAC3G,MAAM,gBAAgB,GAAc,CAAC,GAAG,WAAW,EAAE,GAAG,YAAY,EAAE,GAAG,MAAM,EAAE,GAAG,SAAS,EAAE,GAAG,aAAa,CAAC,CAAA;IAChH,MAAM,GAAG,GAAG,IAAA,iBAAO,EAAC,gBAAgB,CAAC,CAAA;IACrC,MAAM,SAAS,GAAG,IAAI,CAAC,GAAG,EAAE,CAAA;IAC5B,MAAM,OAAO,GAAG,IAAI,gCAAc,CAAqB,EAAE,MAAM,EAAE,4CAAiB,EAAE,CAAC,CAAC,MAAM,iCAAM,GAAG,KAAE,SAAS,IAAG,CAAC,KAAK,EAAE,CAAA;IAC3H,OAAO,OAAO,CAAA;AAChB,CAAC,CAAA;AAXY,QAAA,SAAS,aAWrB"}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
const tslib_1 = require("tslib");
|
|
4
|
-
tslib_1.__exportStar(require("./
|
|
5
|
-
tslib_1.__exportStar(require("./
|
|
6
|
-
tslib_1.__exportStar(require("./
|
|
7
|
-
tslib_1.__exportStar(require("./
|
|
8
|
-
tslib_1.__exportStar(require("./
|
|
4
|
+
tslib_1.__exportStar(require("./isEthereumGasBlocknativePayload"), exports);
|
|
5
|
+
tslib_1.__exportStar(require("./isEthereumGasEtherchainV2Payload"), exports);
|
|
6
|
+
tslib_1.__exportStar(require("./isEthereumGasEtherscanPayload"), exports);
|
|
7
|
+
tslib_1.__exportStar(require("./isEthereumGasEthersPayload"), exports);
|
|
8
|
+
tslib_1.__exportStar(require("./isEthereumGasEthgasstationPayload"), exports);
|
|
9
9
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/lib/identities/index.ts"],"names":[],"mappings":";;;AAAA
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/lib/identities/index.ts"],"names":[],"mappings":";;;AAAA,4EAAiD;AACjD,6EAAkD;AAClD,0EAA+C;AAC/C,uEAA4C;AAC5C,8EAAmD"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.isEthereumGasBlocknativePayload = void 0;
|
|
4
|
+
const blocknative_ethereum_gas_payload_plugin_1 = require("@xyo-network/blocknative-ethereum-gas-payload-plugin");
|
|
5
|
+
const isEthereumGasBlocknativePayload = (payload) => {
|
|
6
|
+
return (payload === null || payload === void 0 ? void 0 : payload.schema) === blocknative_ethereum_gas_payload_plugin_1.EthereumGasBlocknativeSchema;
|
|
7
|
+
};
|
|
8
|
+
exports.isEthereumGasBlocknativePayload = isEthereumGasBlocknativePayload;
|
|
9
|
+
//# sourceMappingURL=isEthereumGasBlocknativePayload.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"isEthereumGasBlocknativePayload.js","sourceRoot":"","sources":["../../../../src/lib/identities/isEthereumGasBlocknativePayload.ts"],"names":[],"mappings":";;;AAAA,kHAAkI;AAG3H,MAAM,+BAA+B,GAAG,CAAC,OAAwB,EAA4C,EAAE;IACpH,OAAO,CAAA,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,MAAM,MAAK,sEAA4B,CAAA;AACzD,CAAC,CAAA;AAFY,QAAA,+BAA+B,mCAE3C"}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
3
|
+
exports.isEthereumGasEtherchainV2Payload = void 0;
|
|
4
4
|
const etherchain_gas_ethereum_blockchain_payload_plugins_1 = require("@xyo-network/etherchain-gas-ethereum-blockchain-payload-plugins");
|
|
5
|
-
const
|
|
6
|
-
return (payload === null || payload === void 0 ? void 0 : payload.schema) === etherchain_gas_ethereum_blockchain_payload_plugins_1.
|
|
5
|
+
const isEthereumGasEtherchainV2Payload = (payload) => {
|
|
6
|
+
return (payload === null || payload === void 0 ? void 0 : payload.schema) === etherchain_gas_ethereum_blockchain_payload_plugins_1.EthereumGasEtherchainV2Schema;
|
|
7
7
|
};
|
|
8
|
-
exports.
|
|
9
|
-
//# sourceMappingURL=
|
|
8
|
+
exports.isEthereumGasEtherchainV2Payload = isEthereumGasEtherchainV2Payload;
|
|
9
|
+
//# sourceMappingURL=isEthereumGasEtherchainV2Payload.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"isEthereumGasEtherchainV2Payload.js","sourceRoot":"","sources":["../../../../src/lib/identities/isEthereumGasEtherchainV2Payload.ts"],"names":[],"mappings":";;;AAAA,wIAA+I;AAGxI,MAAM,gCAAgC,GAAG,CAAC,OAAwB,EAA6C,EAAE;IACtH,OAAO,CAAA,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,MAAM,MAAK,kFAA6B,CAAA;AAC1D,CAAC,CAAA;AAFY,QAAA,gCAAgC,oCAE5C"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.isEthereumGasEthersPayload = void 0;
|
|
4
|
+
const ethers_ethereum_gas_payload_plugin_1 = require("@xyo-network/ethers-ethereum-gas-payload-plugin");
|
|
5
|
+
const isEthereumGasEthersPayload = (payload) => {
|
|
6
|
+
return (payload === null || payload === void 0 ? void 0 : payload.schema) === ethers_ethereum_gas_payload_plugin_1.EthereumGasEthersSchema;
|
|
7
|
+
};
|
|
8
|
+
exports.isEthereumGasEthersPayload = isEthereumGasEthersPayload;
|
|
9
|
+
//# sourceMappingURL=isEthereumGasEthersPayload.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"isEthereumGasEthersPayload.js","sourceRoot":"","sources":["../../../../src/lib/identities/isEthereumGasEthersPayload.ts"],"names":[],"mappings":";;;AAAA,wGAAmH;AAG5G,MAAM,0BAA0B,GAAG,CAAC,OAAwB,EAAuC,EAAE;IAC1G,OAAO,CAAA,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,MAAM,MAAK,4DAAuB,CAAA;AACpD,CAAC,CAAA;AAFY,QAAA,0BAA0B,8BAEtC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.isEthereumGasEtherscanPayload = void 0;
|
|
4
|
+
const etherscan_ethereum_gas_payload_plugin_1 = require("@xyo-network/etherscan-ethereum-gas-payload-plugin");
|
|
5
|
+
const isEthereumGasEtherscanPayload = (payload) => {
|
|
6
|
+
return (payload === null || payload === void 0 ? void 0 : payload.schema) === etherscan_ethereum_gas_payload_plugin_1.EthereumGasEtherscanSchema;
|
|
7
|
+
};
|
|
8
|
+
exports.isEthereumGasEtherscanPayload = isEthereumGasEtherscanPayload;
|
|
9
|
+
//# sourceMappingURL=isEthereumGasEtherscanPayload.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"isEthereumGasEtherscanPayload.js","sourceRoot":"","sources":["../../../../src/lib/identities/isEthereumGasEtherscanPayload.ts"],"names":[],"mappings":";;;AAAA,8GAA4H;AAGrH,MAAM,6BAA6B,GAAG,CAAC,OAAwB,EAA0C,EAAE;IAChH,OAAO,CAAA,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,MAAM,MAAK,kEAA0B,CAAA;AACvD,CAAC,CAAA;AAFY,QAAA,6BAA6B,iCAEzC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.isEthereumGasEthgasstationPayload = void 0;
|
|
4
|
+
const ethgasstation_ethereum_gas_payload_plugin_1 = require("@xyo-network/ethgasstation-ethereum-gas-payload-plugin");
|
|
5
|
+
const isEthereumGasEthgasstationPayload = (payload) => {
|
|
6
|
+
return (payload === null || payload === void 0 ? void 0 : payload.schema) === ethgasstation_ethereum_gas_payload_plugin_1.EthereumGasEthgasstationSchema;
|
|
7
|
+
};
|
|
8
|
+
exports.isEthereumGasEthgasstationPayload = isEthereumGasEthgasstationPayload;
|
|
9
|
+
//# sourceMappingURL=isEthereumGasEthgasstationPayload.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"isEthereumGasEthgasstationPayload.js","sourceRoot":"","sources":["../../../../src/lib/identities/isEthereumGasEthgasstationPayload.ts"],"names":[],"mappings":";;;AAAA,sHAAwI;AAGjI,MAAM,iCAAiC,GAAG,CAAC,OAAwB,EAA8C,EAAE;IACxH,OAAO,CAAA,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,MAAM,MAAK,0EAA8B,CAAA;AAC3D,CAAC,CAAA;AAFY,QAAA,iCAAiC,qCAE7C"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"transformGasFromBlocknative.js","sourceRoot":"","sources":["../../../../src/lib/transforms/transformGasFromBlocknative.ts"],"names":[],"mappings":";;;AAGA,2CAAmC;AAEnC,MAAM,UAAU,GAAG,CAAC,
|
|
1
|
+
{"version":3,"file":"transformGasFromBlocknative.js","sourceRoot":"","sources":["../../../../src/lib/transforms/transformGasFromBlocknative.ts"],"names":[],"mappings":"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"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"transformGasFromEtherchainV2.js","sourceRoot":"","sources":["../../../../src/lib/transforms/transformGasFromEtherchainV2.ts"],"names":[],"mappings":";;;AAGA,MAAM,YAAY,GAAG,CAAC,
|
|
1
|
+
{"version":3,"file":"transformGasFromEtherchainV2.js","sourceRoot":"","sources":["../../../../src/lib/transforms/transformGasFromEtherchainV2.ts"],"names":[],"mappings":";;;AAGA,MAAM,YAAY,GAAG,CAAC,OAAuC,EAAsB,EAAE;IACnF,MAAM,EAAE,IAAI,EAAE,QAAQ,EAAE,IAAI,EAAE,KAAK,EAAE,GAAG,OAAO,CAAC,IAAI,CAAA;IACpD,MAAM,GAAG,GAAG,IAAI,GAAG,UAAa,CAAA;IAChC,MAAM,MAAM,GAAG,QAAQ,GAAG,UAAa,CAAA;IACvC,MAAM,IAAI,GAAG,IAAI,GAAG,UAAa,CAAA;IACjC,MAAM,QAAQ,GAAG,KAAK,GAAG,UAAa,CAAA;IACtC,OAAO,EAAE,IAAI,EAAE,GAAG,EAAE,MAAM,EAAE,QAAQ,EAAE,CAAA;AACxC,CAAC,CAAA;AAEM,MAAM,4BAA4B,GAAG,CAAC,OAAuC,EAAW,EAAE;IAC/F,MAAM,OAAO,GAAG,SAAS,CAAA;IACzB,MAAM,SAAS,GAAG,YAAY,CAAC,OAAO,CAAC,CAAA;IACvC,MAAM,iBAAiB,GAAG,EAAE,CAAA;IAC5B,OAAO,EAAE,OAAO,EAAE,SAAS,EAAE,iBAAiB,EAAE,CAAA;AAClD,CAAC,CAAA;AALY,QAAA,4BAA4B,gCAKxC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"transformGasFromEthers.js","sourceRoot":"","sources":["../../../../src/lib/transforms/transformGasFromEthers.ts"],"names":[],"mappings":";;;AAGA,MAAM,UAAU,GAAG,CAAC,
|
|
1
|
+
{"version":3,"file":"transformGasFromEthers.js","sourceRoot":"","sources":["../../../../src/lib/transforms/transformGasFromEthers.ts"],"names":[],"mappings":";;;AAGA,MAAM,UAAU,GAAG,CAAC,OAAiC,EAAsB,EAAE;IAC3E,MAAM,EAAE,iBAAiB,EAAE,GAAG,OAAO,CAAA;IACrC,OAAO,iBAAiB,CAAC,CAAC,CAAC,iBAAiB,GAAG,UAAa,CAAC,CAAC,CAAC,SAAS,CAAA;AAC1E,CAAC,CAAA;AAED,MAAM,YAAY,GAAG,CAAC,OAAiC,EAAsB,EAAE;IAC7E,MAAM,EAAE,YAAY,EAAE,GAAG,OAAO,CAAA;IAChC,MAAM,IAAI,GAAG,YAAY,CAAC,CAAC,CAAC,YAAY,GAAG,UAAa,CAAC,CAAC,CAAC,SAAS,CAAA;IACpE,OAAO,EAAE,IAAI,EAAE,CAAA;AACjB,CAAC,CAAA;AAED,MAAM,oBAAoB,GAAG,CAAC,OAAiC,EAA8B,EAAE;IAC7F,MAAM,EAAE,oBAAoB,EAAE,GAAG,OAAO,CAAA;IACxC,MAAM,IAAI,GAAG,oBAAoB,CAAC,CAAC,CAAC,oBAAoB,GAAG,UAAa,CAAC,CAAC,CAAC,SAAS,CAAA;IACpF,OAAO,EAAE,IAAI,EAAE,CAAA;AACjB,CAAC,CAAA;AAEM,MAAM,sBAAsB,GAAG,CAAC,OAAiC,EAAW,EAAE;IACnF,MAAM,OAAO,GAAG,UAAU,CAAC,OAAO,CAAC,CAAA;IACnC,MAAM,SAAS,GAAG,YAAY,CAAC,OAAO,CAAC,CAAA;IACvC,MAAM,iBAAiB,GAAG,oBAAoB,CAAC,OAAO,CAAC,CAAA;IACvD,OAAO,EAAE,OAAO,EAAE,SAAS,EAAE,iBAAiB,EAAE,CAAA;AAClD,CAAC,CAAA;AALY,QAAA,sBAAsB,0BAKlC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"transformGasFromEtherscan.js","sourceRoot":"","sources":["../../../../src/lib/transforms/transformGasFromEtherscan.ts"],"names":[],"mappings":";;;AAEA,2CAAmC;AAEnC,MAAM,UAAU,GAAG,CAAC,
|
|
1
|
+
{"version":3,"file":"transformGasFromEtherscan.js","sourceRoot":"","sources":["../../../../src/lib/transforms/transformGasFromEtherscan.ts"],"names":[],"mappings":";;;AAEA,2CAAmC;AAEnC,MAAM,UAAU,GAAG,CAAC,OAAoC,EAAsB,EAAE;IAC9E,MAAM,EAAE,cAAc,EAAE,GAAG,OAAO,CAAC,MAAM,CAAA;IACzC,OAAO,UAAU,CAAC,cAAc,CAAC,CAAA;AACnC,CAAC,CAAA;AAED,MAAM,YAAY,GAAG,CAAC,OAAoC,EAAsB,EAAE;IAChF,MAAM,EAAE,YAAY,EAAE,eAAe,EAAE,YAAY,EAAE,GAAG,OAAO,CAAC,MAAM,CAAA;IACtE,MAAM,GAAG,GAAG,UAAU,CAAC,YAAY,CAAC,CAAA;IACpC,MAAM,MAAM,GAAG,UAAU,CAAC,eAAe,CAAC,CAAA;IAC1C,MAAM,IAAI,GAAG,UAAU,CAAC,YAAY,CAAC,CAAA;IACrC,MAAM,QAAQ,GAAG,IAAA,mBAAM,EAAC;QACtB,CAAC,CAAC,EAAE,GAAG,CAAC;QACR,CAAC,CAAC,EAAE,MAAM,CAAC;QACX,CAAC,CAAC,EAAE,IAAI,CAAC;KACV,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAA;IAChB,OAAO,EAAE,IAAI,EAAE,GAAG,EAAE,MAAM,EAAE,QAAQ,EAAE,CAAA;AACxC,CAAC,CAAA;AAEM,MAAM,yBAAyB,GAAG,CAAC,OAAoC,EAAW,EAAE;IACzF,MAAM,OAAO,GAAG,UAAU,CAAC,OAAO,CAAC,CAAA;IACnC,MAAM,SAAS,GAAG,YAAY,CAAC,OAAO,CAAC,CAAA;IACvC,MAAM,iBAAiB,GAAG,EAAE,CAAA;IAC5B,OAAO,EAAE,OAAO,EAAE,SAAS,EAAE,iBAAiB,EAAE,CAAA;AAClD,CAAC,CAAA;AALY,QAAA,yBAAyB,6BAKrC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"transformGasFromEthgasstation.js","sourceRoot":"","sources":["../../../../src/lib/transforms/transformGasFromEthgasstation.ts"],"names":[],"mappings":";;;AAGA,2CAAmC;AAEnC,MAAM,UAAU,GAAG,CAAC,
|
|
1
|
+
{"version":3,"file":"transformGasFromEthgasstation.js","sourceRoot":"","sources":["../../../../src/lib/transforms/transformGasFromEthgasstation.ts"],"names":[],"mappings":";;;AAGA,2CAAmC;AAEnC,MAAM,UAAU,GAAG,CAAC,OAAwC,EAAsB,EAAE;IAClF,MAAM,EAAE,OAAO,EAAE,GAAG,OAAO,CAAA;IAC3B,OAAO,OAAO,CAAA;AAChB,CAAC,CAAA;AAED,MAAM,YAAY,GAAG,CAAC,OAAwC,EAAsB,EAAE;IACpF,MAAM,EAAE,QAAQ,EAAE,MAAM,EAAE,IAAI,EAAE,IAAI,EAAE,OAAO,EAAE,QAAQ,EAAE,GAAG,OAAO,CAAC,QAAQ,CAAA;IAC5E,MAAM,KAAK,GAAG,IAAA,mBAAM,EAAC;QACnB,CAAC,CAAC,EAAE,MAAM,CAAC;QACX,CAAC,CAAC,EAAE,IAAI,CAAC;QACT,CAAC,CAAC,EAAE,QAAQ,CAAC;KACd,CAAC,CAAA;IACF,MAAM,GAAG,GAAG,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAA;IAC/B,OAAO,EAAE,GAAG,EAAE,MAAM,EAAE,IAAI,EAAE,QAAQ,EAAE,CAAA;AACxC,CAAC,CAAA;AAED,MAAM,oBAAoB,GAAG,CAAC,OAAwC,EAA8B,EAAE;IACpG,MAAM,EAAE,QAAQ,EAAE,MAAM,EAAE,IAAI,EAAE,IAAI,EAAE,OAAO,EAAE,QAAQ,EAAE,GAAG,OAAO,CAAC,WAAW,CAAA;IAC/E,MAAM,KAAK,GAAG,IAAA,mBAAM,EAAC;QACnB,CAAC,CAAC,EAAE,MAAM,CAAC;QACX,CAAC,CAAC,EAAE,IAAI,CAAC;QACT,CAAC,CAAC,EAAE,QAAQ,CAAC;KACd,CAAC,CAAA;IACF,MAAM,GAAG,GAAG,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAA;IAC/B,OAAO,EAAE,GAAG,EAAE,MAAM,EAAE,IAAI,EAAE,QAAQ,EAAE,CAAA;AACxC,CAAC,CAAA;AAEM,MAAM,6BAA6B,GAAG,CAAC,OAAwC,EAAW,EAAE;IACjG,MAAM,OAAO,GAAG,UAAU,CAAC,OAAO,CAAC,CAAA;IACnC,MAAM,SAAS,GAAG,YAAY,CAAC,OAAO,CAAC,CAAA;IACvC,MAAM,iBAAiB,GAAG,oBAAoB,CAAC,OAAO,CAAC,CAAA;IACvD,OAAO,EAAE,OAAO,EAAE,SAAS,EAAE,iBAAiB,EAAE,CAAA;AAClD,CAAC,CAAA;AALY,QAAA,6BAA6B,iCAKzC"}
|
|
@@ -88,7 +88,7 @@ exports.sampleBlocknativeGas = {
|
|
|
88
88
|
maxPrice: 36,
|
|
89
89
|
msSinceLastBlock: 3643,
|
|
90
90
|
network: 'main',
|
|
91
|
-
schema: blocknative_ethereum_gas_payload_plugin_1.
|
|
91
|
+
schema: blocknative_ethereum_gas_payload_plugin_1.EthereumGasBlocknativeSchema,
|
|
92
92
|
system: 'ethereum',
|
|
93
93
|
timestamp: 1668697958837,
|
|
94
94
|
unit: 'gwei',
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sampleBlocknativeGas.js","sourceRoot":"","sources":["../../../src/test/sampleBlocknativeGas.ts"],"names":[],"mappings":";;;AAAA,
|
|
1
|
+
{"version":3,"file":"sampleBlocknativeGas.js","sourceRoot":"","sources":["../../../src/test/sampleBlocknativeGas.ts"],"names":[],"mappings":";;;AAAA,kHAAoJ;AAEvI,QAAA,oBAAoB,GAAkC;IACjE,WAAW,EAAE;QACX;YACE,aAAa,EAAE,YAAY;YAC3B,WAAW,EAAE,QAAQ;YACrB,eAAe,EAAE;gBACf;oBACE,UAAU,EAAE,EAAE;oBACd,YAAY,EAAE,KAAK;oBACnB,oBAAoB,EAAE,IAAI;oBAC1B,KAAK,EAAE,EAAE;iBACV;gBACD;oBACE,UAAU,EAAE,EAAE;oBACd,YAAY,EAAE,KAAK;oBACnB,oBAAoB,EAAE,IAAI;oBAC1B,KAAK,EAAE,EAAE;iBACV;gBACD;oBACE,UAAU,EAAE,EAAE;oBACd,YAAY,EAAE,KAAK;oBACnB,oBAAoB,EAAE,GAAG;oBACzB,KAAK,EAAE,EAAE;iBACV;gBACD;oBACE,UAAU,EAAE,EAAE;oBACd,YAAY,EAAE,KAAK;oBACnB,oBAAoB,EAAE,IAAI;oBAC1B,KAAK,EAAE,EAAE;iBACV;gBACD;oBACE,UAAU,EAAE,EAAE;oBACd,YAAY,EAAE,KAAK;oBACnB,oBAAoB,EAAE,IAAI;oBAC1B,KAAK,EAAE,EAAE;iBACV;aACF;YACD,yBAAyB,EAAE,EAAE;SAC9B;KACF;IACD,kBAAkB,EAAE,QAAQ;IAC5B,iBAAiB,EAAE;QACjB;YACE,WAAW,EAAE;gBACX;oBACE,OAAO,EAAE,KAAK;oBACd,UAAU,EAAE,EAAE;iBACf;aACF;SACF;QACD;YACE,WAAW,EAAE;gBACX;oBACE,OAAO,EAAE,KAAK;oBACd,UAAU,EAAE,EAAE;iBACf;aACF;SACF;QACD;YACE,WAAW,EAAE;gBACX;oBACE,OAAO,EAAE,KAAK;oBACd,UAAU,EAAE,EAAE;iBACf;aACF;SACF;QACD;YACE,WAAW,EAAE;gBACX;oBACE,OAAO,EAAE,KAAK;oBACd,UAAU,EAAE,EAAE;iBACf;aACF;SACF;QACD;YACE,WAAW,EAAE;gBACX;oBACE,OAAO,EAAE,KAAK;oBACd,UAAU,EAAE,EAAE;iBACf;aACF;SACF;KAC+B;IAClC,QAAQ,EAAE,EAAE;IACZ,gBAAgB,EAAE,IAAI;IACtB,OAAO,EAAE,MAAM;IACf,MAAM,EAAE,sEAA4B;IACpC,MAAM,EAAE,UAAU;IAClB,SAAS,EAAE,aAAa;IACxB,IAAI,EAAE,MAAM;CACb,CAAA"}
|
|
@@ -12,7 +12,7 @@ exports.sampleEtherchainGasV2 = {
|
|
|
12
12
|
standard: 12000000000,
|
|
13
13
|
timestamp: 1668621234096,
|
|
14
14
|
},
|
|
15
|
-
schema: etherchain_gas_ethereum_blockchain_payload_plugins_1.
|
|
15
|
+
schema: etherchain_gas_ethereum_blockchain_payload_plugins_1.EthereumGasEtherchainV2Schema,
|
|
16
16
|
timestamp: 1668621240790,
|
|
17
17
|
};
|
|
18
18
|
//# sourceMappingURL=sampleEtherchainGasV2.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sampleEtherchainGasV2.js","sourceRoot":"","sources":["../../../src/test/sampleEtherchainGasV2.ts"],"names":[],"mappings":";;;AAAA,
|
|
1
|
+
{"version":3,"file":"sampleEtherchainGasV2.js","sourceRoot":"","sources":["../../../src/test/sampleEtherchainGasV2.ts"],"names":[],"mappings":";;;AAAA,wIAA+I;AAElI,QAAA,qBAAqB,GAAmC;IACnE,IAAI,EAAE,GAAG;IACT,IAAI,EAAE;QACJ,IAAI,EAAE,WAAW;QACjB,QAAQ,EAAE,OAAO;QACjB,KAAK,EAAE,WAAW;QAClB,IAAI,EAAE,WAAW;QACjB,QAAQ,EAAE,WAAW;QACrB,SAAS,EAAE,aAAa;KACzB;IACD,MAAM,EAAE,kFAA6B;IACrC,SAAS,EAAE,aAAa;CACzB,CAAA"}
|
|
@@ -7,7 +7,7 @@ exports.sampleEthersGas = {
|
|
|
7
7
|
lastBaseFeePerGas: 13447862081,
|
|
8
8
|
maxFeePerGas: 28395724162,
|
|
9
9
|
maxPriorityFeePerGas: 1500000000,
|
|
10
|
-
schema: ethers_ethereum_gas_payload_plugin_1.
|
|
10
|
+
schema: ethers_ethereum_gas_payload_plugin_1.EthereumGasEthersSchema,
|
|
11
11
|
timestamp: 1668697958837,
|
|
12
12
|
};
|
|
13
13
|
//# sourceMappingURL=sampleEthersGas.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sampleEthersGas.js","sourceRoot":"","sources":["../../../src/test/sampleEthersGas.ts"],"names":[],"mappings":";;;AAAA,
|
|
1
|
+
{"version":3,"file":"sampleEthersGas.js","sourceRoot":"","sources":["../../../src/test/sampleEthersGas.ts"],"names":[],"mappings":";;;AAAA,wGAAmH;AAEtG,QAAA,eAAe,GAA6B;IACvD,QAAQ,EAAE,WAAW;IACrB,iBAAiB,EAAE,WAAW;IAC9B,YAAY,EAAE,WAAW;IACzB,oBAAoB,EAAE,UAAU;IAChC,MAAM,EAAE,4DAAuB;IAC/B,SAAS,EAAE,aAAa;CACzB,CAAA"}
|
|
@@ -12,7 +12,7 @@ exports.sampleEtherscanGas = {
|
|
|
12
12
|
gasUsedRatio: '0.416266666666667,0.5672862,0.540979033333333,0.342410966666667,0.389071233333333',
|
|
13
13
|
suggestBaseFee: '27.616709247',
|
|
14
14
|
},
|
|
15
|
-
schema: etherscan_ethereum_gas_payload_plugin_1.
|
|
15
|
+
schema: etherscan_ethereum_gas_payload_plugin_1.EthereumGasEtherscanSchema,
|
|
16
16
|
status: '1',
|
|
17
17
|
timestamp: 1668697958837,
|
|
18
18
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sampleEtherscanGas.js","sourceRoot":"","sources":["../../../src/test/sampleEtherscanGas.ts"],"names":[],"mappings":";;;AAAA,
|
|
1
|
+
{"version":3,"file":"sampleEtherscanGas.js","sourceRoot":"","sources":["../../../src/test/sampleEtherscanGas.ts"],"names":[],"mappings":";;;AAAA,8GAA4H;AAE/G,QAAA,kBAAkB,GAAgC;IAC7D,OAAO,EAAE,IAAI;IACb,MAAM,EAAE;QACN,YAAY,EAAE,IAAI;QAClB,SAAS,EAAE,UAAU;QACrB,eAAe,EAAE,IAAI;QACrB,YAAY,EAAE,IAAI;QAClB,YAAY,EAAE,mFAAmF;QACjG,cAAc,EAAE,cAAc;KAC/B;IACD,MAAM,EAAE,kEAA0B;IAClC,MAAM,EAAE,GAAG;IACX,SAAS,EAAE,aAAa;CACzB,CAAA"}
|
|
@@ -17,7 +17,7 @@ exports.sampleEthgasstationGas = {
|
|
|
17
17
|
instant: 2,
|
|
18
18
|
standard: 2,
|
|
19
19
|
},
|
|
20
|
-
schema: ethgasstation_ethereum_gas_payload_plugin_1.
|
|
20
|
+
schema: ethgasstation_ethereum_gas_payload_plugin_1.EthereumGasEthgasstationSchema,
|
|
21
21
|
timestamp: 1668697958837,
|
|
22
22
|
};
|
|
23
23
|
//# sourceMappingURL=sampleEthgasstationGas.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sampleEthgasstationGas.js","sourceRoot":"","sources":["../../../src/test/sampleEthgasstationGas.ts"],"names":[],"mappings":";;;AAAA,
|
|
1
|
+
{"version":3,"file":"sampleEthgasstationGas.js","sourceRoot":"","sources":["../../../src/test/sampleEthgasstationGas.ts"],"names":[],"mappings":";;;AAAA,sHAAwI;AAE3H,QAAA,sBAAsB,GAAoC;IACrE,OAAO,EAAE,EAAE;IACX,WAAW,EAAE,QAAQ;IACrB,SAAS,EAAE,KAAK;IAChB,QAAQ,EAAE;QACR,IAAI,EAAE,EAAE;QACR,OAAO,EAAE,EAAE;QACX,QAAQ,EAAE,EAAE;KACb;IACD,WAAW,EAAE,EAAE;IACf,WAAW,EAAE;QACX,IAAI,EAAE,CAAC;QACP,OAAO,EAAE,CAAC;QACV,QAAQ,EAAE,CAAC;KACZ;IACD,MAAM,EAAE,0EAA8B;IACtC,SAAS,EAAE,aAAa;CACzB,CAAA"}
|