@xyo-network/etherchain-ethereum-gas-v2-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/Config.d.cts +6 -0
- package/dist/browser/Config.d.cts.map +1 -0
- package/dist/browser/Plugin.d.cts +2 -0
- package/dist/browser/Plugin.d.cts.map +1 -0
- package/dist/browser/Plugin.js +4 -33
- package/dist/browser/Plugin.js.map +1 -1
- package/dist/browser/Schema.d.cts +3 -0
- package/dist/browser/Schema.d.cts.map +1 -0
- package/dist/browser/Schema.js +1 -2
- package/dist/browser/Schema.js.map +1 -1
- package/dist/browser/Witness.d.cts +10 -0
- package/dist/browser/Witness.d.cts.map +1 -0
- package/dist/browser/Witness.js +4 -15
- package/dist/browser/Witness.js.map +1 -1
- package/dist/browser/index.d.cts +7 -0
- package/dist/browser/index.d.cts.map +1 -0
- package/dist/browser/index.js +4 -45
- package/dist/browser/index.js.map +1 -1
- package/dist/browser/lib/getV2GasFromEtherchain.d.cts +3 -0
- package/dist/browser/lib/getV2GasFromEtherchain.d.cts.map +1 -0
- package/dist/browser/lib/getV2GasFromEtherchain.js +2 -3
- package/dist/browser/lib/getV2GasFromEtherchain.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 -9
- package/dist/browser/lib/index.js.map +1 -1
- package/dist/docs.json +53729 -0
- package/dist/node/Config.d.cts +6 -0
- package/dist/node/Config.d.cts.map +1 -0
- package/dist/node/Config.js +2 -0
- package/dist/node/Config.js.map +1 -1
- package/dist/node/Plugin.d.cts +2 -0
- package/dist/node/Plugin.d.cts.map +1 -0
- package/dist/node/Plugin.js +35 -5
- package/dist/node/Plugin.js.map +1 -1
- package/dist/node/Plugin.mjs +33 -4
- package/dist/node/Plugin.mjs.map +1 -1
- package/dist/node/Schema.d.cts +3 -0
- package/dist/node/Schema.d.cts.map +1 -0
- package/dist/node/Schema.js +3 -1
- package/dist/node/Schema.js.map +1 -1
- package/dist/node/Schema.mjs +2 -1
- package/dist/node/Schema.mjs.map +1 -1
- package/dist/node/Witness.d.cts +10 -0
- package/dist/node/Witness.d.cts.map +1 -0
- package/dist/node/Witness.js +18 -6
- package/dist/node/Witness.js.map +1 -1
- package/dist/node/Witness.mjs +15 -4
- package/dist/node/Witness.mjs.map +1 -1
- package/dist/node/index.d.cts +7 -0
- package/dist/node/index.d.cts.map +1 -0
- package/dist/node/index.js +52 -10
- package/dist/node/index.js.map +1 -1
- package/dist/node/index.mjs +45 -4
- package/dist/node/index.mjs.map +1 -1
- package/dist/node/lib/getV2GasFromEtherchain.d.cts +3 -0
- package/dist/node/lib/getV2GasFromEtherchain.d.cts.map +1 -0
- package/dist/node/lib/getV2GasFromEtherchain.js +4 -2
- package/dist/node/lib/getV2GasFromEtherchain.js.map +1 -1
- package/dist/node/lib/getV2GasFromEtherchain.mjs +3 -2
- package/dist/node/lib/getV2GasFromEtherchain.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 +17 -3
- package/dist/node/lib/index.js.map +1 -1
- package/dist/node/lib/index.mjs +9 -1
- package/dist/node/lib/index.mjs.map +1 -1
- package/package.json +10 -10
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { WitnessConfig } from '@xyo-network/witness';
|
|
2
|
+
import { EthereumGasEtherchainV2WitnessConfigSchema } from './Schema';
|
|
3
|
+
export type EthereumGasEtherchainV2WitnessConfig = WitnessConfig<{
|
|
4
|
+
schema: EthereumGasEtherchainV2WitnessConfigSchema;
|
|
5
|
+
}>;
|
|
6
|
+
//# sourceMappingURL=Config.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Config.d.ts","sourceRoot":"","sources":["../../src/Config.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,sBAAsB,CAAA;AAEpD,OAAO,EAAE,0CAA0C,EAAE,MAAM,UAAU,CAAA;AAErE,MAAM,MAAM,oCAAoC,GAAG,aAAa,CAAC;IAC/D,MAAM,EAAE,0CAA0C,CAAA;CACnD,CAAC,CAAA"}
|
package/dist/node/Config.js
CHANGED
|
@@ -12,6 +12,8 @@ var __copyProps = (to, from, except, desc) => {
|
|
|
12
12
|
return to;
|
|
13
13
|
};
|
|
14
14
|
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
15
|
+
|
|
16
|
+
// src/Config.ts
|
|
15
17
|
var Config_exports = {};
|
|
16
18
|
module.exports = __toCommonJS(Config_exports);
|
|
17
19
|
//# sourceMappingURL=Config.js.map
|
package/dist/node/Config.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/Config.ts"],"sourcesContent":["import { WitnessConfig } from '@xyo-network/witness'\n\nimport { EthereumGasEtherchainV2WitnessConfigSchema } from './Schema'\n\nexport type EthereumGasEtherchainV2WitnessConfig = WitnessConfig<{\n schema: EthereumGasEtherchainV2WitnessConfigSchema\n}>\n"],"mappings":"
|
|
1
|
+
{"version":3,"sources":["../../src/Config.ts"],"sourcesContent":["import { WitnessConfig } from '@xyo-network/witness'\n\nimport { EthereumGasEtherchainV2WitnessConfigSchema } from './Schema'\n\nexport type EthereumGasEtherchainV2WitnessConfig = WitnessConfig<{\n schema: EthereumGasEtherchainV2WitnessConfigSchema\n}>\n"],"mappings":";;;;;;;;;;;;;;;;AAAA;AAAA;","names":[]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Plugin.d.ts","sourceRoot":"","sources":["../../src/Plugin.ts"],"names":[],"mappings":"AAMA,eAAO,MAAM,6BAA6B,4HAQvC,CAAA"}
|
package/dist/node/Plugin.js
CHANGED
|
@@ -16,20 +16,50 @@ 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/Plugin.ts
|
|
19
21
|
var Plugin_exports = {};
|
|
20
22
|
__export(Plugin_exports, {
|
|
21
23
|
EthereumGasEtherchainV2Plugin: () => EthereumGasEtherchainV2Plugin
|
|
22
24
|
});
|
|
23
25
|
module.exports = __toCommonJS(Plugin_exports);
|
|
24
|
-
var
|
|
26
|
+
var import_etherchain_ethereum_gas_v2_payload_plugin2 = require("@xyo-network/etherchain-ethereum-gas-v2-payload-plugin");
|
|
25
27
|
var import_payload_model = require("@xyo-network/payload-model");
|
|
26
28
|
var import_payloadset_plugin = require("@xyo-network/payloadset-plugin");
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
29
|
+
|
|
30
|
+
// src/Witness.ts
|
|
31
|
+
var import_etherchain_ethereum_gas_v2_payload_plugin = require("@xyo-network/etherchain-ethereum-gas-v2-payload-plugin");
|
|
32
|
+
var import_witness = require("@xyo-network/witness");
|
|
33
|
+
|
|
34
|
+
// src/lib/getV2GasFromEtherchain.ts
|
|
35
|
+
var import_axios = require("@xyo-network/axios");
|
|
36
|
+
var url = "https://beaconcha.in/api/v1/execution/gasnow";
|
|
37
|
+
var getV2GasFromEtherchain = async () => {
|
|
38
|
+
return (await import_axios.axios.get(url)).data;
|
|
39
|
+
};
|
|
40
|
+
|
|
41
|
+
// src/Schema.ts
|
|
42
|
+
var EthereumGasEtherchainV2WitnessConfigSchema = "network.xyo.blockchain.ethereum.gas.etherchain.v2.witness.config";
|
|
43
|
+
|
|
44
|
+
// src/Witness.ts
|
|
45
|
+
var EtherchainEthereumGasWitnessV2 = class extends import_witness.AbstractWitness {
|
|
46
|
+
static configSchemas = [EthereumGasEtherchainV2WitnessConfigSchema];
|
|
47
|
+
async observeHandler() {
|
|
48
|
+
const payload = {
|
|
49
|
+
...await getV2GasFromEtherchain(),
|
|
50
|
+
schema: import_etherchain_ethereum_gas_v2_payload_plugin.EthereumGasEtherchainV2Schema,
|
|
51
|
+
timestamp: Date.now()
|
|
52
|
+
};
|
|
53
|
+
return [payload];
|
|
54
|
+
}
|
|
55
|
+
};
|
|
56
|
+
|
|
57
|
+
// src/Plugin.ts
|
|
58
|
+
var EthereumGasEtherchainV2Plugin = () => (0, import_payloadset_plugin.createPayloadSetWitnessPlugin)(
|
|
59
|
+
{ required: { [import_etherchain_ethereum_gas_v2_payload_plugin2.EthereumGasEtherchainV2Schema]: 1 }, schema: import_payload_model.PayloadSetSchema },
|
|
30
60
|
{
|
|
31
61
|
witness: async (params) => {
|
|
32
|
-
return await
|
|
62
|
+
return await EtherchainEthereumGasWitnessV2.create(params);
|
|
33
63
|
}
|
|
34
64
|
}
|
|
35
65
|
);
|
package/dist/node/Plugin.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/Plugin.ts"],"sourcesContent":["import { EthereumGasEtherchainV2Schema } from '@xyo-network/etherchain-ethereum-gas-v2-payload-plugin'\nimport { PayloadSetSchema } from '@xyo-network/payload-model'\nimport { createPayloadSetWitnessPlugin } from '@xyo-network/payloadset-plugin'\n\nimport { EtherchainEthereumGasWitnessV2 } from './Witness'\n\nexport const EthereumGasEtherchainV2Plugin = () =>\n createPayloadSetWitnessPlugin(\n { required: { [EthereumGasEtherchainV2Schema]: 1 }, schema: PayloadSetSchema },\n {\n witness: async (params) => {\n return (await EtherchainEthereumGasWitnessV2.create(params)) as EtherchainEthereumGasWitnessV2\n },\n },\n )\n"],"mappings":"
|
|
1
|
+
{"version":3,"sources":["../../src/Plugin.ts","../../src/Witness.ts","../../src/lib/getV2GasFromEtherchain.ts","../../src/Schema.ts"],"sourcesContent":["import { EthereumGasEtherchainV2Schema } from '@xyo-network/etherchain-ethereum-gas-v2-payload-plugin'\nimport { PayloadSetSchema } from '@xyo-network/payload-model'\nimport { createPayloadSetWitnessPlugin } from '@xyo-network/payloadset-plugin'\n\nimport { EtherchainEthereumGasWitnessV2 } from './Witness'\n\nexport const EthereumGasEtherchainV2Plugin = () =>\n createPayloadSetWitnessPlugin(\n { required: { [EthereumGasEtherchainV2Schema]: 1 }, schema: PayloadSetSchema },\n {\n witness: async (params) => {\n return (await EtherchainEthereumGasWitnessV2.create(params)) as EtherchainEthereumGasWitnessV2\n },\n },\n )\n","import { EthereumGasEtherchainV2Payload, EthereumGasEtherchainV2Schema } from '@xyo-network/etherchain-ethereum-gas-v2-payload-plugin'\nimport { AnyConfigSchema } from '@xyo-network/module'\nimport { Payload } from '@xyo-network/payload-model'\nimport { AbstractWitness, WitnessParams } from '@xyo-network/witness'\n\nimport { EthereumGasEtherchainV2WitnessConfig } from './Config'\nimport { getV2GasFromEtherchain } from './lib'\nimport { EthereumGasEtherchainV2WitnessConfigSchema } from './Schema'\n\nexport type EtherchainEthereumGasWitnessV2Params = WitnessParams<AnyConfigSchema<EthereumGasEtherchainV2WitnessConfig>>\n\nexport class EtherchainEthereumGasWitnessV2 extends AbstractWitness<EtherchainEthereumGasWitnessV2Params> {\n static override configSchemas = [EthereumGasEtherchainV2WitnessConfigSchema]\n\n protected override async observeHandler(): Promise<Payload[]> {\n const payload: EthereumGasEtherchainV2Payload = {\n ...(await getV2GasFromEtherchain()),\n schema: EthereumGasEtherchainV2Schema,\n timestamp: Date.now(),\n }\n return [payload]\n }\n}\n","import { axios } from '@xyo-network/axios'\nimport { EthereumGasEtherchainV2Response } from '@xyo-network/etherchain-ethereum-gas-v2-payload-plugin'\n\nconst url = 'https://beaconcha.in/api/v1/execution/gasnow'\n\nexport const getV2GasFromEtherchain = async (): Promise<EthereumGasEtherchainV2Response> => {\n return (await axios.get<EthereumGasEtherchainV2Response>(url)).data\n}\n","export type EthereumGasEtherchainV2WitnessConfigSchema = 'network.xyo.blockchain.ethereum.gas.etherchain.v2.witness.config'\nexport const EthereumGasEtherchainV2WitnessConfigSchema: EthereumGasEtherchainV2WitnessConfigSchema =\n 'network.xyo.blockchain.ethereum.gas.etherchain.v2.witness.config'\n"],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,IAAAA,oDAA8C;AAC9C,2BAAiC;AACjC,+BAA8C;;;ACF9C,uDAA8E;AAG9E,qBAA+C;;;ACH/C,mBAAsB;AAGtB,IAAM,MAAM;AAEL,IAAM,yBAAyB,YAAsD;AAC1F,UAAQ,MAAM,mBAAM,IAAqC,GAAG,GAAG;AACjE;;;ACNO,IAAM,6CACX;;;AFSK,IAAM,iCAAN,cAA6C,+BAAsD;AAAA,EACxG,OAAgB,gBAAgB,CAAC,0CAA0C;AAAA,EAE3E,MAAyB,iBAAqC;AAC5D,UAAM,UAA0C;AAAA,MAC9C,GAAI,MAAM,uBAAuB;AAAA,MACjC,QAAQ;AAAA,MACR,WAAW,KAAK,IAAI;AAAA,IACtB;AACA,WAAO,CAAC,OAAO;AAAA,EACjB;AACF;;;ADhBO,IAAM,gCAAgC,UAC3C;AAAA,EACE,EAAE,UAAU,EAAE,CAAC,+EAA6B,GAAG,EAAE,GAAG,QAAQ,sCAAiB;AAAA,EAC7E;AAAA,IACE,SAAS,OAAO,WAAW;AACzB,aAAQ,MAAM,+BAA+B,OAAO,MAAM;AAAA,IAC5D;AAAA,EACF;AACF;","names":["import_etherchain_ethereum_gas_v2_payload_plugin"]}
|
package/dist/node/Plugin.mjs
CHANGED
|
@@ -1,9 +1,38 @@
|
|
|
1
|
-
|
|
1
|
+
// src/Plugin.ts
|
|
2
|
+
import { EthereumGasEtherchainV2Schema as EthereumGasEtherchainV2Schema2 } from "@xyo-network/etherchain-ethereum-gas-v2-payload-plugin";
|
|
2
3
|
import { PayloadSetSchema } from "@xyo-network/payload-model";
|
|
3
4
|
import { createPayloadSetWitnessPlugin } from "@xyo-network/payloadset-plugin";
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
5
|
+
|
|
6
|
+
// src/Witness.ts
|
|
7
|
+
import { EthereumGasEtherchainV2Schema } from "@xyo-network/etherchain-ethereum-gas-v2-payload-plugin";
|
|
8
|
+
import { AbstractWitness } from "@xyo-network/witness";
|
|
9
|
+
|
|
10
|
+
// src/lib/getV2GasFromEtherchain.ts
|
|
11
|
+
import { axios } from "@xyo-network/axios";
|
|
12
|
+
var url = "https://beaconcha.in/api/v1/execution/gasnow";
|
|
13
|
+
var getV2GasFromEtherchain = async () => {
|
|
14
|
+
return (await axios.get(url)).data;
|
|
15
|
+
};
|
|
16
|
+
|
|
17
|
+
// src/Schema.ts
|
|
18
|
+
var EthereumGasEtherchainV2WitnessConfigSchema = "network.xyo.blockchain.ethereum.gas.etherchain.v2.witness.config";
|
|
19
|
+
|
|
20
|
+
// src/Witness.ts
|
|
21
|
+
var EtherchainEthereumGasWitnessV2 = class extends AbstractWitness {
|
|
22
|
+
static configSchemas = [EthereumGasEtherchainV2WitnessConfigSchema];
|
|
23
|
+
async observeHandler() {
|
|
24
|
+
const payload = {
|
|
25
|
+
...await getV2GasFromEtherchain(),
|
|
26
|
+
schema: EthereumGasEtherchainV2Schema,
|
|
27
|
+
timestamp: Date.now()
|
|
28
|
+
};
|
|
29
|
+
return [payload];
|
|
30
|
+
}
|
|
31
|
+
};
|
|
32
|
+
|
|
33
|
+
// src/Plugin.ts
|
|
34
|
+
var EthereumGasEtherchainV2Plugin = () => createPayloadSetWitnessPlugin(
|
|
35
|
+
{ required: { [EthereumGasEtherchainV2Schema2]: 1 }, schema: PayloadSetSchema },
|
|
7
36
|
{
|
|
8
37
|
witness: async (params) => {
|
|
9
38
|
return await EtherchainEthereumGasWitnessV2.create(params);
|
package/dist/node/Plugin.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/Plugin.ts"],"sourcesContent":["import { EthereumGasEtherchainV2Schema } from '@xyo-network/etherchain-ethereum-gas-v2-payload-plugin'\nimport { PayloadSetSchema } from '@xyo-network/payload-model'\nimport { createPayloadSetWitnessPlugin } from '@xyo-network/payloadset-plugin'\n\nimport { EtherchainEthereumGasWitnessV2 } from './Witness'\n\nexport const EthereumGasEtherchainV2Plugin = () =>\n createPayloadSetWitnessPlugin(\n { required: { [EthereumGasEtherchainV2Schema]: 1 }, schema: PayloadSetSchema },\n {\n witness: async (params) => {\n return (await EtherchainEthereumGasWitnessV2.create(params)) as EtherchainEthereumGasWitnessV2\n },\n },\n )\n"],"mappings":"AAAA,SAAS,
|
|
1
|
+
{"version":3,"sources":["../../src/Plugin.ts","../../src/Witness.ts","../../src/lib/getV2GasFromEtherchain.ts","../../src/Schema.ts"],"sourcesContent":["import { EthereumGasEtherchainV2Schema } from '@xyo-network/etherchain-ethereum-gas-v2-payload-plugin'\nimport { PayloadSetSchema } from '@xyo-network/payload-model'\nimport { createPayloadSetWitnessPlugin } from '@xyo-network/payloadset-plugin'\n\nimport { EtherchainEthereumGasWitnessV2 } from './Witness'\n\nexport const EthereumGasEtherchainV2Plugin = () =>\n createPayloadSetWitnessPlugin(\n { required: { [EthereumGasEtherchainV2Schema]: 1 }, schema: PayloadSetSchema },\n {\n witness: async (params) => {\n return (await EtherchainEthereumGasWitnessV2.create(params)) as EtherchainEthereumGasWitnessV2\n },\n },\n )\n","import { EthereumGasEtherchainV2Payload, EthereumGasEtherchainV2Schema } from '@xyo-network/etherchain-ethereum-gas-v2-payload-plugin'\nimport { AnyConfigSchema } from '@xyo-network/module'\nimport { Payload } from '@xyo-network/payload-model'\nimport { AbstractWitness, WitnessParams } from '@xyo-network/witness'\n\nimport { EthereumGasEtherchainV2WitnessConfig } from './Config'\nimport { getV2GasFromEtherchain } from './lib'\nimport { EthereumGasEtherchainV2WitnessConfigSchema } from './Schema'\n\nexport type EtherchainEthereumGasWitnessV2Params = WitnessParams<AnyConfigSchema<EthereumGasEtherchainV2WitnessConfig>>\n\nexport class EtherchainEthereumGasWitnessV2 extends AbstractWitness<EtherchainEthereumGasWitnessV2Params> {\n static override configSchemas = [EthereumGasEtherchainV2WitnessConfigSchema]\n\n protected override async observeHandler(): Promise<Payload[]> {\n const payload: EthereumGasEtherchainV2Payload = {\n ...(await getV2GasFromEtherchain()),\n schema: EthereumGasEtherchainV2Schema,\n timestamp: Date.now(),\n }\n return [payload]\n }\n}\n","import { axios } from '@xyo-network/axios'\nimport { EthereumGasEtherchainV2Response } from '@xyo-network/etherchain-ethereum-gas-v2-payload-plugin'\n\nconst url = 'https://beaconcha.in/api/v1/execution/gasnow'\n\nexport const getV2GasFromEtherchain = async (): Promise<EthereumGasEtherchainV2Response> => {\n return (await axios.get<EthereumGasEtherchainV2Response>(url)).data\n}\n","export type EthereumGasEtherchainV2WitnessConfigSchema = 'network.xyo.blockchain.ethereum.gas.etherchain.v2.witness.config'\nexport const EthereumGasEtherchainV2WitnessConfigSchema: EthereumGasEtherchainV2WitnessConfigSchema =\n 'network.xyo.blockchain.ethereum.gas.etherchain.v2.witness.config'\n"],"mappings":";AAAA,SAAS,iCAAAA,sCAAqC;AAC9C,SAAS,wBAAwB;AACjC,SAAS,qCAAqC;;;ACF9C,SAAyC,qCAAqC;AAG9E,SAAS,uBAAsC;;;ACH/C,SAAS,aAAa;AAGtB,IAAM,MAAM;AAEL,IAAM,yBAAyB,YAAsD;AAC1F,UAAQ,MAAM,MAAM,IAAqC,GAAG,GAAG;AACjE;;;ACNO,IAAM,6CACX;;;AFSK,IAAM,iCAAN,cAA6C,gBAAsD;AAAA,EACxG,OAAgB,gBAAgB,CAAC,0CAA0C;AAAA,EAE3E,MAAyB,iBAAqC;AAC5D,UAAM,UAA0C;AAAA,MAC9C,GAAI,MAAM,uBAAuB;AAAA,MACjC,QAAQ;AAAA,MACR,WAAW,KAAK,IAAI;AAAA,IACtB;AACA,WAAO,CAAC,OAAO;AAAA,EACjB;AACF;;;ADhBO,IAAM,gCAAgC,MAC3C;AAAA,EACE,EAAE,UAAU,EAAE,CAACC,8BAA6B,GAAG,EAAE,GAAG,QAAQ,iBAAiB;AAAA,EAC7E;AAAA,IACE,SAAS,OAAO,WAAW;AACzB,aAAQ,MAAM,+BAA+B,OAAO,MAAM;AAAA,IAC5D;AAAA,EACF;AACF;","names":["EthereumGasEtherchainV2Schema","EthereumGasEtherchainV2Schema"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Schema.d.ts","sourceRoot":"","sources":["../../src/Schema.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,0CAA0C,GAAG,kEAAkE,CAAA;AAC3H,eAAO,MAAM,0CAA0C,EAAE,0CACW,CAAA"}
|
package/dist/node/Schema.js
CHANGED
|
@@ -16,12 +16,14 @@ 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/Schema.ts
|
|
19
21
|
var Schema_exports = {};
|
|
20
22
|
__export(Schema_exports, {
|
|
21
23
|
EthereumGasEtherchainV2WitnessConfigSchema: () => EthereumGasEtherchainV2WitnessConfigSchema
|
|
22
24
|
});
|
|
23
25
|
module.exports = __toCommonJS(Schema_exports);
|
|
24
|
-
|
|
26
|
+
var EthereumGasEtherchainV2WitnessConfigSchema = "network.xyo.blockchain.ethereum.gas.etherchain.v2.witness.config";
|
|
25
27
|
// Annotate the CommonJS export names for ESM import in node:
|
|
26
28
|
0 && (module.exports = {
|
|
27
29
|
EthereumGasEtherchainV2WitnessConfigSchema
|
package/dist/node/Schema.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/Schema.ts"],"sourcesContent":["export type EthereumGasEtherchainV2WitnessConfigSchema = 'network.xyo.blockchain.ethereum.gas.etherchain.v2.witness.config'\nexport const EthereumGasEtherchainV2WitnessConfigSchema: EthereumGasEtherchainV2WitnessConfigSchema =\n 'network.xyo.blockchain.ethereum.gas.etherchain.v2.witness.config'\n"],"mappings":"
|
|
1
|
+
{"version":3,"sources":["../../src/Schema.ts"],"sourcesContent":["export type EthereumGasEtherchainV2WitnessConfigSchema = 'network.xyo.blockchain.ethereum.gas.etherchain.v2.witness.config'\nexport const EthereumGasEtherchainV2WitnessConfigSchema: EthereumGasEtherchainV2WitnessConfigSchema =\n 'network.xyo.blockchain.ethereum.gas.etherchain.v2.witness.config'\n"],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AACO,IAAM,6CACX;","names":[]}
|
package/dist/node/Schema.mjs
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
|
|
1
|
+
// src/Schema.ts
|
|
2
|
+
var EthereumGasEtherchainV2WitnessConfigSchema = "network.xyo.blockchain.ethereum.gas.etherchain.v2.witness.config";
|
|
2
3
|
export {
|
|
3
4
|
EthereumGasEtherchainV2WitnessConfigSchema
|
|
4
5
|
};
|
package/dist/node/Schema.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/Schema.ts"],"sourcesContent":["export type EthereumGasEtherchainV2WitnessConfigSchema = 'network.xyo.blockchain.ethereum.gas.etherchain.v2.witness.config'\nexport const EthereumGasEtherchainV2WitnessConfigSchema: EthereumGasEtherchainV2WitnessConfigSchema =\n 'network.xyo.blockchain.ethereum.gas.etherchain.v2.witness.config'\n"],"mappings":"AACO,
|
|
1
|
+
{"version":3,"sources":["../../src/Schema.ts"],"sourcesContent":["export type EthereumGasEtherchainV2WitnessConfigSchema = 'network.xyo.blockchain.ethereum.gas.etherchain.v2.witness.config'\nexport const EthereumGasEtherchainV2WitnessConfigSchema: EthereumGasEtherchainV2WitnessConfigSchema =\n 'network.xyo.blockchain.ethereum.gas.etherchain.v2.witness.config'\n"],"mappings":";AACO,IAAM,6CACX;","names":[]}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { AnyConfigSchema } from '@xyo-network/module';
|
|
2
|
+
import { Payload } from '@xyo-network/payload-model';
|
|
3
|
+
import { AbstractWitness, WitnessParams } from '@xyo-network/witness';
|
|
4
|
+
import { EthereumGasEtherchainV2WitnessConfig } from './Config';
|
|
5
|
+
export type EtherchainEthereumGasWitnessV2Params = WitnessParams<AnyConfigSchema<EthereumGasEtherchainV2WitnessConfig>>;
|
|
6
|
+
export declare class EtherchainEthereumGasWitnessV2 extends AbstractWitness<EtherchainEthereumGasWitnessV2Params> {
|
|
7
|
+
static configSchemas: "network.xyo.blockchain.ethereum.gas.etherchain.v2.witness.config"[];
|
|
8
|
+
protected observeHandler(): Promise<Payload[]>;
|
|
9
|
+
}
|
|
10
|
+
//# sourceMappingURL=Witness.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Witness.d.ts","sourceRoot":"","sources":["../../src/Witness.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,eAAe,EAAE,MAAM,qBAAqB,CAAA;AACrD,OAAO,EAAE,OAAO,EAAE,MAAM,4BAA4B,CAAA;AACpD,OAAO,EAAE,eAAe,EAAE,aAAa,EAAE,MAAM,sBAAsB,CAAA;AAErE,OAAO,EAAE,oCAAoC,EAAE,MAAM,UAAU,CAAA;AAI/D,MAAM,MAAM,oCAAoC,GAAG,aAAa,CAAC,eAAe,CAAC,oCAAoC,CAAC,CAAC,CAAA;AAEvH,qBAAa,8BAA+B,SAAQ,eAAe,CAAC,oCAAoC,CAAC;IACvG,OAAgB,aAAa,uEAA+C;cAEnD,cAAc,IAAI,OAAO,CAAC,OAAO,EAAE,CAAC;CAQ9D"}
|
package/dist/node/Witness.js
CHANGED
|
@@ -16,6 +16,8 @@ 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/Witness.ts
|
|
19
21
|
var Witness_exports = {};
|
|
20
22
|
__export(Witness_exports, {
|
|
21
23
|
EtherchainEthereumGasWitnessV2: () => EtherchainEthereumGasWitnessV2
|
|
@@ -23,19 +25,29 @@ __export(Witness_exports, {
|
|
|
23
25
|
module.exports = __toCommonJS(Witness_exports);
|
|
24
26
|
var import_etherchain_ethereum_gas_v2_payload_plugin = require("@xyo-network/etherchain-ethereum-gas-v2-payload-plugin");
|
|
25
27
|
var import_witness = require("@xyo-network/witness");
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
28
|
+
|
|
29
|
+
// src/lib/getV2GasFromEtherchain.ts
|
|
30
|
+
var import_axios = require("@xyo-network/axios");
|
|
31
|
+
var url = "https://beaconcha.in/api/v1/execution/gasnow";
|
|
32
|
+
var getV2GasFromEtherchain = async () => {
|
|
33
|
+
return (await import_axios.axios.get(url)).data;
|
|
34
|
+
};
|
|
35
|
+
|
|
36
|
+
// src/Schema.ts
|
|
37
|
+
var EthereumGasEtherchainV2WitnessConfigSchema = "network.xyo.blockchain.ethereum.gas.etherchain.v2.witness.config";
|
|
38
|
+
|
|
39
|
+
// src/Witness.ts
|
|
40
|
+
var EtherchainEthereumGasWitnessV2 = class extends import_witness.AbstractWitness {
|
|
41
|
+
static configSchemas = [EthereumGasEtherchainV2WitnessConfigSchema];
|
|
30
42
|
async observeHandler() {
|
|
31
43
|
const payload = {
|
|
32
|
-
...await
|
|
44
|
+
...await getV2GasFromEtherchain(),
|
|
33
45
|
schema: import_etherchain_ethereum_gas_v2_payload_plugin.EthereumGasEtherchainV2Schema,
|
|
34
46
|
timestamp: Date.now()
|
|
35
47
|
};
|
|
36
48
|
return [payload];
|
|
37
49
|
}
|
|
38
|
-
}
|
|
50
|
+
};
|
|
39
51
|
// Annotate the CommonJS export names for ESM import in node:
|
|
40
52
|
0 && (module.exports = {
|
|
41
53
|
EtherchainEthereumGasWitnessV2
|
package/dist/node/Witness.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/Witness.ts"],"sourcesContent":["import { EthereumGasEtherchainV2Payload, EthereumGasEtherchainV2Schema } from '@xyo-network/etherchain-ethereum-gas-v2-payload-plugin'\nimport { AnyConfigSchema } from '@xyo-network/module'\nimport { Payload } from '@xyo-network/payload-model'\nimport { AbstractWitness, WitnessParams } from '@xyo-network/witness'\n\nimport { EthereumGasEtherchainV2WitnessConfig } from './Config'\nimport { getV2GasFromEtherchain } from './lib'\nimport { EthereumGasEtherchainV2WitnessConfigSchema } from './Schema'\n\nexport type EtherchainEthereumGasWitnessV2Params = WitnessParams<AnyConfigSchema<EthereumGasEtherchainV2WitnessConfig>>\n\nexport class EtherchainEthereumGasWitnessV2 extends AbstractWitness<EtherchainEthereumGasWitnessV2Params> {\n static override configSchemas = [EthereumGasEtherchainV2WitnessConfigSchema]\n\n protected override async observeHandler(): Promise<Payload[]> {\n const payload: EthereumGasEtherchainV2Payload = {\n ...(await getV2GasFromEtherchain()),\n schema: EthereumGasEtherchainV2Schema,\n timestamp: Date.now(),\n }\n return [payload]\n }\n}\n"],"mappings":"
|
|
1
|
+
{"version":3,"sources":["../../src/Witness.ts","../../src/lib/getV2GasFromEtherchain.ts","../../src/Schema.ts"],"sourcesContent":["import { EthereumGasEtherchainV2Payload, EthereumGasEtherchainV2Schema } from '@xyo-network/etherchain-ethereum-gas-v2-payload-plugin'\nimport { AnyConfigSchema } from '@xyo-network/module'\nimport { Payload } from '@xyo-network/payload-model'\nimport { AbstractWitness, WitnessParams } from '@xyo-network/witness'\n\nimport { EthereumGasEtherchainV2WitnessConfig } from './Config'\nimport { getV2GasFromEtherchain } from './lib'\nimport { EthereumGasEtherchainV2WitnessConfigSchema } from './Schema'\n\nexport type EtherchainEthereumGasWitnessV2Params = WitnessParams<AnyConfigSchema<EthereumGasEtherchainV2WitnessConfig>>\n\nexport class EtherchainEthereumGasWitnessV2 extends AbstractWitness<EtherchainEthereumGasWitnessV2Params> {\n static override configSchemas = [EthereumGasEtherchainV2WitnessConfigSchema]\n\n protected override async observeHandler(): Promise<Payload[]> {\n const payload: EthereumGasEtherchainV2Payload = {\n ...(await getV2GasFromEtherchain()),\n schema: EthereumGasEtherchainV2Schema,\n timestamp: Date.now(),\n }\n return [payload]\n }\n}\n","import { axios } from '@xyo-network/axios'\nimport { EthereumGasEtherchainV2Response } from '@xyo-network/etherchain-ethereum-gas-v2-payload-plugin'\n\nconst url = 'https://beaconcha.in/api/v1/execution/gasnow'\n\nexport const getV2GasFromEtherchain = async (): Promise<EthereumGasEtherchainV2Response> => {\n return (await axios.get<EthereumGasEtherchainV2Response>(url)).data\n}\n","export type EthereumGasEtherchainV2WitnessConfigSchema = 'network.xyo.blockchain.ethereum.gas.etherchain.v2.witness.config'\nexport const EthereumGasEtherchainV2WitnessConfigSchema: EthereumGasEtherchainV2WitnessConfigSchema =\n 'network.xyo.blockchain.ethereum.gas.etherchain.v2.witness.config'\n"],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,uDAA8E;AAG9E,qBAA+C;;;ACH/C,mBAAsB;AAGtB,IAAM,MAAM;AAEL,IAAM,yBAAyB,YAAsD;AAC1F,UAAQ,MAAM,mBAAM,IAAqC,GAAG,GAAG;AACjE;;;ACNO,IAAM,6CACX;;;AFSK,IAAM,iCAAN,cAA6C,+BAAsD;AAAA,EACxG,OAAgB,gBAAgB,CAAC,0CAA0C;AAAA,EAE3E,MAAyB,iBAAqC;AAC5D,UAAM,UAA0C;AAAA,MAC9C,GAAI,MAAM,uBAAuB;AAAA,MACjC,QAAQ;AAAA,MACR,WAAW,KAAK,IAAI;AAAA,IACtB;AACA,WAAO,CAAC,OAAO;AAAA,EACjB;AACF;","names":[]}
|
package/dist/node/Witness.mjs
CHANGED
|
@@ -1,8 +1,19 @@
|
|
|
1
|
+
// src/Witness.ts
|
|
1
2
|
import { EthereumGasEtherchainV2Schema } from "@xyo-network/etherchain-ethereum-gas-v2-payload-plugin";
|
|
2
3
|
import { AbstractWitness } from "@xyo-network/witness";
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
4
|
+
|
|
5
|
+
// src/lib/getV2GasFromEtherchain.ts
|
|
6
|
+
import { axios } from "@xyo-network/axios";
|
|
7
|
+
var url = "https://beaconcha.in/api/v1/execution/gasnow";
|
|
8
|
+
var getV2GasFromEtherchain = async () => {
|
|
9
|
+
return (await axios.get(url)).data;
|
|
10
|
+
};
|
|
11
|
+
|
|
12
|
+
// src/Schema.ts
|
|
13
|
+
var EthereumGasEtherchainV2WitnessConfigSchema = "network.xyo.blockchain.ethereum.gas.etherchain.v2.witness.config";
|
|
14
|
+
|
|
15
|
+
// src/Witness.ts
|
|
16
|
+
var EtherchainEthereumGasWitnessV2 = class extends AbstractWitness {
|
|
6
17
|
static configSchemas = [EthereumGasEtherchainV2WitnessConfigSchema];
|
|
7
18
|
async observeHandler() {
|
|
8
19
|
const payload = {
|
|
@@ -12,7 +23,7 @@ class EtherchainEthereumGasWitnessV2 extends AbstractWitness {
|
|
|
12
23
|
};
|
|
13
24
|
return [payload];
|
|
14
25
|
}
|
|
15
|
-
}
|
|
26
|
+
};
|
|
16
27
|
export {
|
|
17
28
|
EtherchainEthereumGasWitnessV2
|
|
18
29
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/Witness.ts"],"sourcesContent":["import { EthereumGasEtherchainV2Payload, EthereumGasEtherchainV2Schema } from '@xyo-network/etherchain-ethereum-gas-v2-payload-plugin'\nimport { AnyConfigSchema } from '@xyo-network/module'\nimport { Payload } from '@xyo-network/payload-model'\nimport { AbstractWitness, WitnessParams } from '@xyo-network/witness'\n\nimport { EthereumGasEtherchainV2WitnessConfig } from './Config'\nimport { getV2GasFromEtherchain } from './lib'\nimport { EthereumGasEtherchainV2WitnessConfigSchema } from './Schema'\n\nexport type EtherchainEthereumGasWitnessV2Params = WitnessParams<AnyConfigSchema<EthereumGasEtherchainV2WitnessConfig>>\n\nexport class EtherchainEthereumGasWitnessV2 extends AbstractWitness<EtherchainEthereumGasWitnessV2Params> {\n static override configSchemas = [EthereumGasEtherchainV2WitnessConfigSchema]\n\n protected override async observeHandler(): Promise<Payload[]> {\n const payload: EthereumGasEtherchainV2Payload = {\n ...(await getV2GasFromEtherchain()),\n schema: EthereumGasEtherchainV2Schema,\n timestamp: Date.now(),\n }\n return [payload]\n }\n}\n"],"mappings":"AAAA,SAAyC,qCAAqC;AAG9E,SAAS,uBAAsC
|
|
1
|
+
{"version":3,"sources":["../../src/Witness.ts","../../src/lib/getV2GasFromEtherchain.ts","../../src/Schema.ts"],"sourcesContent":["import { EthereumGasEtherchainV2Payload, EthereumGasEtherchainV2Schema } from '@xyo-network/etherchain-ethereum-gas-v2-payload-plugin'\nimport { AnyConfigSchema } from '@xyo-network/module'\nimport { Payload } from '@xyo-network/payload-model'\nimport { AbstractWitness, WitnessParams } from '@xyo-network/witness'\n\nimport { EthereumGasEtherchainV2WitnessConfig } from './Config'\nimport { getV2GasFromEtherchain } from './lib'\nimport { EthereumGasEtherchainV2WitnessConfigSchema } from './Schema'\n\nexport type EtherchainEthereumGasWitnessV2Params = WitnessParams<AnyConfigSchema<EthereumGasEtherchainV2WitnessConfig>>\n\nexport class EtherchainEthereumGasWitnessV2 extends AbstractWitness<EtherchainEthereumGasWitnessV2Params> {\n static override configSchemas = [EthereumGasEtherchainV2WitnessConfigSchema]\n\n protected override async observeHandler(): Promise<Payload[]> {\n const payload: EthereumGasEtherchainV2Payload = {\n ...(await getV2GasFromEtherchain()),\n schema: EthereumGasEtherchainV2Schema,\n timestamp: Date.now(),\n }\n return [payload]\n }\n}\n","import { axios } from '@xyo-network/axios'\nimport { EthereumGasEtherchainV2Response } from '@xyo-network/etherchain-ethereum-gas-v2-payload-plugin'\n\nconst url = 'https://beaconcha.in/api/v1/execution/gasnow'\n\nexport const getV2GasFromEtherchain = async (): Promise<EthereumGasEtherchainV2Response> => {\n return (await axios.get<EthereumGasEtherchainV2Response>(url)).data\n}\n","export type EthereumGasEtherchainV2WitnessConfigSchema = 'network.xyo.blockchain.ethereum.gas.etherchain.v2.witness.config'\nexport const EthereumGasEtherchainV2WitnessConfigSchema: EthereumGasEtherchainV2WitnessConfigSchema =\n 'network.xyo.blockchain.ethereum.gas.etherchain.v2.witness.config'\n"],"mappings":";AAAA,SAAyC,qCAAqC;AAG9E,SAAS,uBAAsC;;;ACH/C,SAAS,aAAa;AAGtB,IAAM,MAAM;AAEL,IAAM,yBAAyB,YAAsD;AAC1F,UAAQ,MAAM,MAAM,IAAqC,GAAG,GAAG;AACjE;;;ACNO,IAAM,6CACX;;;AFSK,IAAM,iCAAN,cAA6C,gBAAsD;AAAA,EACxG,OAAgB,gBAAgB,CAAC,0CAA0C;AAAA,EAE3E,MAAyB,iBAAqC;AAC5D,UAAM,UAA0C;AAAA,MAC9C,GAAI,MAAM,uBAAuB;AAAA,MACjC,QAAQ;AAAA,MACR,WAAW,KAAK,IAAI;AAAA,IACtB;AACA,WAAO,CAAC,OAAO;AAAA,EACjB;AACF;","names":[]}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { EthereumGasEtherchainV2Plugin } from './Plugin';
|
|
2
|
+
export * from './Config';
|
|
3
|
+
export * from './Schema';
|
|
4
|
+
export * from './Witness';
|
|
5
|
+
export { EthereumGasEtherchainV2Plugin };
|
|
6
|
+
export default EthereumGasEtherchainV2Plugin;
|
|
7
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,6BAA6B,EAAE,MAAM,UAAU,CAAA;AAExD,cAAc,UAAU,CAAA;AACxB,cAAc,UAAU,CAAA;AACxB,cAAc,WAAW,CAAA;AAEzB,OAAO,EAAE,6BAA6B,EAAE,CAAA;AAGxC,eAAe,6BAA6B,CAAA"}
|
package/dist/node/index.js
CHANGED
|
@@ -15,24 +15,66 @@ var __copyProps = (to, from, except, desc) => {
|
|
|
15
15
|
}
|
|
16
16
|
return to;
|
|
17
17
|
};
|
|
18
|
-
var __reExport = (target, mod, secondTarget) => (__copyProps(target, mod, "default"), secondTarget && __copyProps(secondTarget, mod, "default"));
|
|
19
18
|
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
19
|
+
|
|
20
|
+
// src/index.ts
|
|
20
21
|
var src_exports = {};
|
|
21
22
|
__export(src_exports, {
|
|
22
|
-
|
|
23
|
+
EtherchainEthereumGasWitnessV2: () => EtherchainEthereumGasWitnessV2,
|
|
24
|
+
EthereumGasEtherchainV2Plugin: () => EthereumGasEtherchainV2Plugin,
|
|
25
|
+
EthereumGasEtherchainV2WitnessConfigSchema: () => EthereumGasEtherchainV2WitnessConfigSchema,
|
|
23
26
|
default: () => src_default
|
|
24
27
|
});
|
|
25
28
|
module.exports = __toCommonJS(src_exports);
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
var
|
|
29
|
+
|
|
30
|
+
// src/Plugin.ts
|
|
31
|
+
var import_etherchain_ethereum_gas_v2_payload_plugin2 = require("@xyo-network/etherchain-ethereum-gas-v2-payload-plugin");
|
|
32
|
+
var import_payload_model = require("@xyo-network/payload-model");
|
|
33
|
+
var import_payloadset_plugin = require("@xyo-network/payloadset-plugin");
|
|
34
|
+
|
|
35
|
+
// src/Witness.ts
|
|
36
|
+
var import_etherchain_ethereum_gas_v2_payload_plugin = require("@xyo-network/etherchain-ethereum-gas-v2-payload-plugin");
|
|
37
|
+
var import_witness = require("@xyo-network/witness");
|
|
38
|
+
|
|
39
|
+
// src/lib/getV2GasFromEtherchain.ts
|
|
40
|
+
var import_axios = require("@xyo-network/axios");
|
|
41
|
+
var url = "https://beaconcha.in/api/v1/execution/gasnow";
|
|
42
|
+
var getV2GasFromEtherchain = async () => {
|
|
43
|
+
return (await import_axios.axios.get(url)).data;
|
|
44
|
+
};
|
|
45
|
+
|
|
46
|
+
// src/Schema.ts
|
|
47
|
+
var EthereumGasEtherchainV2WitnessConfigSchema = "network.xyo.blockchain.ethereum.gas.etherchain.v2.witness.config";
|
|
48
|
+
|
|
49
|
+
// src/Witness.ts
|
|
50
|
+
var EtherchainEthereumGasWitnessV2 = class extends import_witness.AbstractWitness {
|
|
51
|
+
static configSchemas = [EthereumGasEtherchainV2WitnessConfigSchema];
|
|
52
|
+
async observeHandler() {
|
|
53
|
+
const payload = {
|
|
54
|
+
...await getV2GasFromEtherchain(),
|
|
55
|
+
schema: import_etherchain_ethereum_gas_v2_payload_plugin.EthereumGasEtherchainV2Schema,
|
|
56
|
+
timestamp: Date.now()
|
|
57
|
+
};
|
|
58
|
+
return [payload];
|
|
59
|
+
}
|
|
60
|
+
};
|
|
61
|
+
|
|
62
|
+
// src/Plugin.ts
|
|
63
|
+
var EthereumGasEtherchainV2Plugin = () => (0, import_payloadset_plugin.createPayloadSetWitnessPlugin)(
|
|
64
|
+
{ required: { [import_etherchain_ethereum_gas_v2_payload_plugin2.EthereumGasEtherchainV2Schema]: 1 }, schema: import_payload_model.PayloadSetSchema },
|
|
65
|
+
{
|
|
66
|
+
witness: async (params) => {
|
|
67
|
+
return await EtherchainEthereumGasWitnessV2.create(params);
|
|
68
|
+
}
|
|
69
|
+
}
|
|
70
|
+
);
|
|
71
|
+
|
|
72
|
+
// src/index.ts
|
|
73
|
+
var src_default = EthereumGasEtherchainV2Plugin;
|
|
31
74
|
// Annotate the CommonJS export names for ESM import in node:
|
|
32
75
|
0 && (module.exports = {
|
|
76
|
+
EtherchainEthereumGasWitnessV2,
|
|
33
77
|
EthereumGasEtherchainV2Plugin,
|
|
34
|
-
|
|
35
|
-
...require("./Schema"),
|
|
36
|
-
...require("./Witness")
|
|
78
|
+
EthereumGasEtherchainV2WitnessConfigSchema
|
|
37
79
|
});
|
|
38
80
|
//# sourceMappingURL=index.js.map
|
package/dist/node/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/index.ts"],"sourcesContent":["import { EthereumGasEtherchainV2Plugin } from './Plugin'\n\nexport * from './Config'\nexport * from './Schema'\nexport * from './Witness'\n\nexport { EthereumGasEtherchainV2Plugin }\n\n// eslint-disable-next-line import/no-default-export\nexport default EthereumGasEtherchainV2Plugin\n"],"mappings":"
|
|
1
|
+
{"version":3,"sources":["../../src/index.ts","../../src/Plugin.ts","../../src/Witness.ts","../../src/lib/getV2GasFromEtherchain.ts","../../src/Schema.ts"],"sourcesContent":["import { EthereumGasEtherchainV2Plugin } from './Plugin'\n\nexport * from './Config'\nexport * from './Schema'\nexport * from './Witness'\n\nexport { EthereumGasEtherchainV2Plugin }\n\n// eslint-disable-next-line import/no-default-export\nexport default EthereumGasEtherchainV2Plugin\n","import { EthereumGasEtherchainV2Schema } from '@xyo-network/etherchain-ethereum-gas-v2-payload-plugin'\nimport { PayloadSetSchema } from '@xyo-network/payload-model'\nimport { createPayloadSetWitnessPlugin } from '@xyo-network/payloadset-plugin'\n\nimport { EtherchainEthereumGasWitnessV2 } from './Witness'\n\nexport const EthereumGasEtherchainV2Plugin = () =>\n createPayloadSetWitnessPlugin(\n { required: { [EthereumGasEtherchainV2Schema]: 1 }, schema: PayloadSetSchema },\n {\n witness: async (params) => {\n return (await EtherchainEthereumGasWitnessV2.create(params)) as EtherchainEthereumGasWitnessV2\n },\n },\n )\n","import { EthereumGasEtherchainV2Payload, EthereumGasEtherchainV2Schema } from '@xyo-network/etherchain-ethereum-gas-v2-payload-plugin'\nimport { AnyConfigSchema } from '@xyo-network/module'\nimport { Payload } from '@xyo-network/payload-model'\nimport { AbstractWitness, WitnessParams } from '@xyo-network/witness'\n\nimport { EthereumGasEtherchainV2WitnessConfig } from './Config'\nimport { getV2GasFromEtherchain } from './lib'\nimport { EthereumGasEtherchainV2WitnessConfigSchema } from './Schema'\n\nexport type EtherchainEthereumGasWitnessV2Params = WitnessParams<AnyConfigSchema<EthereumGasEtherchainV2WitnessConfig>>\n\nexport class EtherchainEthereumGasWitnessV2 extends AbstractWitness<EtherchainEthereumGasWitnessV2Params> {\n static override configSchemas = [EthereumGasEtherchainV2WitnessConfigSchema]\n\n protected override async observeHandler(): Promise<Payload[]> {\n const payload: EthereumGasEtherchainV2Payload = {\n ...(await getV2GasFromEtherchain()),\n schema: EthereumGasEtherchainV2Schema,\n timestamp: Date.now(),\n }\n return [payload]\n }\n}\n","import { axios } from '@xyo-network/axios'\nimport { EthereumGasEtherchainV2Response } from '@xyo-network/etherchain-ethereum-gas-v2-payload-plugin'\n\nconst url = 'https://beaconcha.in/api/v1/execution/gasnow'\n\nexport const getV2GasFromEtherchain = async (): Promise<EthereumGasEtherchainV2Response> => {\n return (await axios.get<EthereumGasEtherchainV2Response>(url)).data\n}\n","export type EthereumGasEtherchainV2WitnessConfigSchema = 'network.xyo.blockchain.ethereum.gas.etherchain.v2.witness.config'\nexport const EthereumGasEtherchainV2WitnessConfigSchema: EthereumGasEtherchainV2WitnessConfigSchema =\n 'network.xyo.blockchain.ethereum.gas.etherchain.v2.witness.config'\n"],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;;;ACAA,IAAAA,oDAA8C;AAC9C,2BAAiC;AACjC,+BAA8C;;;ACF9C,uDAA8E;AAG9E,qBAA+C;;;ACH/C,mBAAsB;AAGtB,IAAM,MAAM;AAEL,IAAM,yBAAyB,YAAsD;AAC1F,UAAQ,MAAM,mBAAM,IAAqC,GAAG,GAAG;AACjE;;;ACNO,IAAM,6CACX;;;AFSK,IAAM,iCAAN,cAA6C,+BAAsD;AAAA,EACxG,OAAgB,gBAAgB,CAAC,0CAA0C;AAAA,EAE3E,MAAyB,iBAAqC;AAC5D,UAAM,UAA0C;AAAA,MAC9C,GAAI,MAAM,uBAAuB;AAAA,MACjC,QAAQ;AAAA,MACR,WAAW,KAAK,IAAI;AAAA,IACtB;AACA,WAAO,CAAC,OAAO;AAAA,EACjB;AACF;;;ADhBO,IAAM,gCAAgC,UAC3C;AAAA,EACE,EAAE,UAAU,EAAE,CAAC,+EAA6B,GAAG,EAAE,GAAG,QAAQ,sCAAiB;AAAA,EAC7E;AAAA,IACE,SAAS,OAAO,WAAW;AACzB,aAAQ,MAAM,+BAA+B,OAAO,MAAM;AAAA,IAC5D;AAAA,EACF;AACF;;;ADLF,IAAO,cAAQ;","names":["import_etherchain_ethereum_gas_v2_payload_plugin"]}
|
package/dist/node/index.mjs
CHANGED
|
@@ -1,10 +1,51 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
1
|
+
// src/Plugin.ts
|
|
2
|
+
import { EthereumGasEtherchainV2Schema as EthereumGasEtherchainV2Schema2 } from "@xyo-network/etherchain-ethereum-gas-v2-payload-plugin";
|
|
3
|
+
import { PayloadSetSchema } from "@xyo-network/payload-model";
|
|
4
|
+
import { createPayloadSetWitnessPlugin } from "@xyo-network/payloadset-plugin";
|
|
5
|
+
|
|
6
|
+
// src/Witness.ts
|
|
7
|
+
import { EthereumGasEtherchainV2Schema } from "@xyo-network/etherchain-ethereum-gas-v2-payload-plugin";
|
|
8
|
+
import { AbstractWitness } from "@xyo-network/witness";
|
|
9
|
+
|
|
10
|
+
// src/lib/getV2GasFromEtherchain.ts
|
|
11
|
+
import { axios } from "@xyo-network/axios";
|
|
12
|
+
var url = "https://beaconcha.in/api/v1/execution/gasnow";
|
|
13
|
+
var getV2GasFromEtherchain = async () => {
|
|
14
|
+
return (await axios.get(url)).data;
|
|
15
|
+
};
|
|
16
|
+
|
|
17
|
+
// src/Schema.ts
|
|
18
|
+
var EthereumGasEtherchainV2WitnessConfigSchema = "network.xyo.blockchain.ethereum.gas.etherchain.v2.witness.config";
|
|
19
|
+
|
|
20
|
+
// src/Witness.ts
|
|
21
|
+
var EtherchainEthereumGasWitnessV2 = class extends AbstractWitness {
|
|
22
|
+
static configSchemas = [EthereumGasEtherchainV2WitnessConfigSchema];
|
|
23
|
+
async observeHandler() {
|
|
24
|
+
const payload = {
|
|
25
|
+
...await getV2GasFromEtherchain(),
|
|
26
|
+
schema: EthereumGasEtherchainV2Schema,
|
|
27
|
+
timestamp: Date.now()
|
|
28
|
+
};
|
|
29
|
+
return [payload];
|
|
30
|
+
}
|
|
31
|
+
};
|
|
32
|
+
|
|
33
|
+
// src/Plugin.ts
|
|
34
|
+
var EthereumGasEtherchainV2Plugin = () => createPayloadSetWitnessPlugin(
|
|
35
|
+
{ required: { [EthereumGasEtherchainV2Schema2]: 1 }, schema: PayloadSetSchema },
|
|
36
|
+
{
|
|
37
|
+
witness: async (params) => {
|
|
38
|
+
return await EtherchainEthereumGasWitnessV2.create(params);
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
);
|
|
42
|
+
|
|
43
|
+
// src/index.ts
|
|
5
44
|
var src_default = EthereumGasEtherchainV2Plugin;
|
|
6
45
|
export {
|
|
46
|
+
EtherchainEthereumGasWitnessV2,
|
|
7
47
|
EthereumGasEtherchainV2Plugin,
|
|
48
|
+
EthereumGasEtherchainV2WitnessConfigSchema,
|
|
8
49
|
src_default as default
|
|
9
50
|
};
|
|
10
51
|
//# sourceMappingURL=index.mjs.map
|
package/dist/node/index.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/index.ts"],"sourcesContent":["import { EthereumGasEtherchainV2Plugin } from './Plugin'\n\nexport * from './Config'\nexport * from './Schema'\nexport * from './Witness'\n\nexport { EthereumGasEtherchainV2Plugin }\n\n// eslint-disable-next-line import/no-default-export\nexport default EthereumGasEtherchainV2Plugin\n"],"mappings":"AAAA,SAAS,qCAAqC;
|
|
1
|
+
{"version":3,"sources":["../../src/Plugin.ts","../../src/Witness.ts","../../src/lib/getV2GasFromEtherchain.ts","../../src/Schema.ts","../../src/index.ts"],"sourcesContent":["import { EthereumGasEtherchainV2Schema } from '@xyo-network/etherchain-ethereum-gas-v2-payload-plugin'\nimport { PayloadSetSchema } from '@xyo-network/payload-model'\nimport { createPayloadSetWitnessPlugin } from '@xyo-network/payloadset-plugin'\n\nimport { EtherchainEthereumGasWitnessV2 } from './Witness'\n\nexport const EthereumGasEtherchainV2Plugin = () =>\n createPayloadSetWitnessPlugin(\n { required: { [EthereumGasEtherchainV2Schema]: 1 }, schema: PayloadSetSchema },\n {\n witness: async (params) => {\n return (await EtherchainEthereumGasWitnessV2.create(params)) as EtherchainEthereumGasWitnessV2\n },\n },\n )\n","import { EthereumGasEtherchainV2Payload, EthereumGasEtherchainV2Schema } from '@xyo-network/etherchain-ethereum-gas-v2-payload-plugin'\nimport { AnyConfigSchema } from '@xyo-network/module'\nimport { Payload } from '@xyo-network/payload-model'\nimport { AbstractWitness, WitnessParams } from '@xyo-network/witness'\n\nimport { EthereumGasEtherchainV2WitnessConfig } from './Config'\nimport { getV2GasFromEtherchain } from './lib'\nimport { EthereumGasEtherchainV2WitnessConfigSchema } from './Schema'\n\nexport type EtherchainEthereumGasWitnessV2Params = WitnessParams<AnyConfigSchema<EthereumGasEtherchainV2WitnessConfig>>\n\nexport class EtherchainEthereumGasWitnessV2 extends AbstractWitness<EtherchainEthereumGasWitnessV2Params> {\n static override configSchemas = [EthereumGasEtherchainV2WitnessConfigSchema]\n\n protected override async observeHandler(): Promise<Payload[]> {\n const payload: EthereumGasEtherchainV2Payload = {\n ...(await getV2GasFromEtherchain()),\n schema: EthereumGasEtherchainV2Schema,\n timestamp: Date.now(),\n }\n return [payload]\n }\n}\n","import { axios } from '@xyo-network/axios'\nimport { EthereumGasEtherchainV2Response } from '@xyo-network/etherchain-ethereum-gas-v2-payload-plugin'\n\nconst url = 'https://beaconcha.in/api/v1/execution/gasnow'\n\nexport const getV2GasFromEtherchain = async (): Promise<EthereumGasEtherchainV2Response> => {\n return (await axios.get<EthereumGasEtherchainV2Response>(url)).data\n}\n","export type EthereumGasEtherchainV2WitnessConfigSchema = 'network.xyo.blockchain.ethereum.gas.etherchain.v2.witness.config'\nexport const EthereumGasEtherchainV2WitnessConfigSchema: EthereumGasEtherchainV2WitnessConfigSchema =\n 'network.xyo.blockchain.ethereum.gas.etherchain.v2.witness.config'\n","import { EthereumGasEtherchainV2Plugin } from './Plugin'\n\nexport * from './Config'\nexport * from './Schema'\nexport * from './Witness'\n\nexport { EthereumGasEtherchainV2Plugin }\n\n// eslint-disable-next-line import/no-default-export\nexport default EthereumGasEtherchainV2Plugin\n"],"mappings":";AAAA,SAAS,iCAAAA,sCAAqC;AAC9C,SAAS,wBAAwB;AACjC,SAAS,qCAAqC;;;ACF9C,SAAyC,qCAAqC;AAG9E,SAAS,uBAAsC;;;ACH/C,SAAS,aAAa;AAGtB,IAAM,MAAM;AAEL,IAAM,yBAAyB,YAAsD;AAC1F,UAAQ,MAAM,MAAM,IAAqC,GAAG,GAAG;AACjE;;;ACNO,IAAM,6CACX;;;AFSK,IAAM,iCAAN,cAA6C,gBAAsD;AAAA,EACxG,OAAgB,gBAAgB,CAAC,0CAA0C;AAAA,EAE3E,MAAyB,iBAAqC;AAC5D,UAAM,UAA0C;AAAA,MAC9C,GAAI,MAAM,uBAAuB;AAAA,MACjC,QAAQ;AAAA,MACR,WAAW,KAAK,IAAI;AAAA,IACtB;AACA,WAAO,CAAC,OAAO;AAAA,EACjB;AACF;;;ADhBO,IAAM,gCAAgC,MAC3C;AAAA,EACE,EAAE,UAAU,EAAE,CAACC,8BAA6B,GAAG,EAAE,GAAG,QAAQ,iBAAiB;AAAA,EAC7E;AAAA,IACE,SAAS,OAAO,WAAW;AACzB,aAAQ,MAAM,+BAA+B,OAAO,MAAM;AAAA,IAC5D;AAAA,EACF;AACF;;;AILF,IAAO,cAAQ;","names":["EthereumGasEtherchainV2Schema","EthereumGasEtherchainV2Schema"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getV2GasFromEtherchain.d.ts","sourceRoot":"","sources":["../../../src/lib/getV2GasFromEtherchain.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,+BAA+B,EAAE,MAAM,wDAAwD,CAAA;AAIxG,eAAO,MAAM,sBAAsB,QAAa,QAAQ,+BAA+B,CAEtF,CAAA"}
|
|
@@ -16,14 +16,16 @@ 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/lib/getV2GasFromEtherchain.ts
|
|
19
21
|
var getV2GasFromEtherchain_exports = {};
|
|
20
22
|
__export(getV2GasFromEtherchain_exports, {
|
|
21
23
|
getV2GasFromEtherchain: () => getV2GasFromEtherchain
|
|
22
24
|
});
|
|
23
25
|
module.exports = __toCommonJS(getV2GasFromEtherchain_exports);
|
|
24
26
|
var import_axios = require("@xyo-network/axios");
|
|
25
|
-
|
|
26
|
-
|
|
27
|
+
var url = "https://beaconcha.in/api/v1/execution/gasnow";
|
|
28
|
+
var getV2GasFromEtherchain = async () => {
|
|
27
29
|
return (await import_axios.axios.get(url)).data;
|
|
28
30
|
};
|
|
29
31
|
// Annotate the CommonJS export names for ESM import in node:
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../src/lib/getV2GasFromEtherchain.ts"],"sourcesContent":["import { axios } from '@xyo-network/axios'\nimport { EthereumGasEtherchainV2Response } from '@xyo-network/etherchain-ethereum-gas-v2-payload-plugin'\n\nconst url = 'https://beaconcha.in/api/v1/execution/gasnow'\n\nexport const getV2GasFromEtherchain = async (): Promise<EthereumGasEtherchainV2Response> => {\n return (await axios.get<EthereumGasEtherchainV2Response>(url)).data\n}\n"],"mappings":"
|
|
1
|
+
{"version":3,"sources":["../../../src/lib/getV2GasFromEtherchain.ts"],"sourcesContent":["import { axios } from '@xyo-network/axios'\nimport { EthereumGasEtherchainV2Response } from '@xyo-network/etherchain-ethereum-gas-v2-payload-plugin'\n\nconst url = 'https://beaconcha.in/api/v1/execution/gasnow'\n\nexport const getV2GasFromEtherchain = async (): Promise<EthereumGasEtherchainV2Response> => {\n return (await axios.get<EthereumGasEtherchainV2Response>(url)).data\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,mBAAsB;AAGtB,IAAM,MAAM;AAEL,IAAM,yBAAyB,YAAsD;AAC1F,UAAQ,MAAM,mBAAM,IAAqC,GAAG,GAAG;AACjE;","names":[]}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
+
// src/lib/getV2GasFromEtherchain.ts
|
|
1
2
|
import { axios } from "@xyo-network/axios";
|
|
2
|
-
|
|
3
|
-
|
|
3
|
+
var url = "https://beaconcha.in/api/v1/execution/gasnow";
|
|
4
|
+
var getV2GasFromEtherchain = async () => {
|
|
4
5
|
return (await axios.get(url)).data;
|
|
5
6
|
};
|
|
6
7
|
export {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../src/lib/getV2GasFromEtherchain.ts"],"sourcesContent":["import { axios } from '@xyo-network/axios'\nimport { EthereumGasEtherchainV2Response } from '@xyo-network/etherchain-ethereum-gas-v2-payload-plugin'\n\nconst url = 'https://beaconcha.in/api/v1/execution/gasnow'\n\nexport const getV2GasFromEtherchain = async (): Promise<EthereumGasEtherchainV2Response> => {\n return (await axios.get<EthereumGasEtherchainV2Response>(url)).data\n}\n"],"mappings":"AAAA,SAAS,aAAa;AAGtB,
|
|
1
|
+
{"version":3,"sources":["../../../src/lib/getV2GasFromEtherchain.ts"],"sourcesContent":["import { axios } from '@xyo-network/axios'\nimport { EthereumGasEtherchainV2Response } from '@xyo-network/etherchain-ethereum-gas-v2-payload-plugin'\n\nconst url = 'https://beaconcha.in/api/v1/execution/gasnow'\n\nexport const getV2GasFromEtherchain = async (): Promise<EthereumGasEtherchainV2Response> => {\n return (await axios.get<EthereumGasEtherchainV2Response>(url)).data\n}\n"],"mappings":";AAAA,SAAS,aAAa;AAGtB,IAAM,MAAM;AAEL,IAAM,yBAAyB,YAAsD;AAC1F,UAAQ,MAAM,MAAM,IAAqC,GAAG,GAAG;AACjE;","names":[]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/lib/index.ts"],"names":[],"mappings":"AAAA,cAAc,0BAA0B,CAAA"}
|
package/dist/node/lib/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,13 +15,23 @@ 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/lib/index.ts
|
|
16
21
|
var lib_exports = {};
|
|
22
|
+
__export(lib_exports, {
|
|
23
|
+
getV2GasFromEtherchain: () => getV2GasFromEtherchain
|
|
24
|
+
});
|
|
17
25
|
module.exports = __toCommonJS(lib_exports);
|
|
18
|
-
|
|
26
|
+
|
|
27
|
+
// src/lib/getV2GasFromEtherchain.ts
|
|
28
|
+
var import_axios = require("@xyo-network/axios");
|
|
29
|
+
var url = "https://beaconcha.in/api/v1/execution/gasnow";
|
|
30
|
+
var getV2GasFromEtherchain = async () => {
|
|
31
|
+
return (await import_axios.axios.get(url)).data;
|
|
32
|
+
};
|
|
19
33
|
// Annotate the CommonJS export names for ESM import in node:
|
|
20
34
|
0 && (module.exports = {
|
|
21
|
-
|
|
35
|
+
getV2GasFromEtherchain
|
|
22
36
|
});
|
|
23
37
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../src/lib/index.ts"],"sourcesContent":["export * from './getV2GasFromEtherchain'\n"],"mappings":"
|
|
1
|
+
{"version":3,"sources":["../../../src/lib/index.ts","../../../src/lib/getV2GasFromEtherchain.ts"],"sourcesContent":["export * from './getV2GasFromEtherchain'\n","import { axios } from '@xyo-network/axios'\nimport { EthereumGasEtherchainV2Response } from '@xyo-network/etherchain-ethereum-gas-v2-payload-plugin'\n\nconst url = 'https://beaconcha.in/api/v1/execution/gasnow'\n\nexport const getV2GasFromEtherchain = async (): Promise<EthereumGasEtherchainV2Response> => {\n return (await axios.get<EthereumGasEtherchainV2Response>(url)).data\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;;;ACAA,mBAAsB;AAGtB,IAAM,MAAM;AAEL,IAAM,yBAAyB,YAAsD;AAC1F,UAAQ,MAAM,mBAAM,IAAqC,GAAG,GAAG;AACjE;","names":[]}
|