@xyo-network/blocknative-ethereum-gas-plugin 2.75.14 → 2.75.16

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (84) hide show
  1. package/dist/browser/Config.d.cts +1 -1
  2. package/dist/browser/Config.d.cts.map +1 -1
  3. package/dist/browser/Config.d.mts +1 -1
  4. package/dist/browser/Config.d.mts.map +1 -1
  5. package/dist/browser/Config.d.ts +1 -1
  6. package/dist/browser/Config.d.ts.map +1 -1
  7. package/dist/browser/Witness.d.cts +3 -2
  8. package/dist/browser/Witness.d.cts.map +1 -1
  9. package/dist/browser/Witness.d.mts +3 -2
  10. package/dist/browser/Witness.d.mts.map +1 -1
  11. package/dist/browser/Witness.d.ts +3 -2
  12. package/dist/browser/Witness.d.ts.map +1 -1
  13. package/dist/browser/index.cjs +2 -2
  14. package/dist/browser/index.cjs.map +1 -1
  15. package/dist/browser/index.js +1 -1
  16. package/dist/browser/index.js.map +1 -1
  17. package/dist/docs.json +657 -314
  18. package/dist/node/Config.d.cts +1 -1
  19. package/dist/node/Config.d.cts.map +1 -1
  20. package/dist/node/Config.d.mts +1 -1
  21. package/dist/node/Config.d.mts.map +1 -1
  22. package/dist/node/Config.d.ts +1 -1
  23. package/dist/node/Config.d.ts.map +1 -1
  24. package/dist/node/Witness.d.cts +3 -2
  25. package/dist/node/Witness.d.cts.map +1 -1
  26. package/dist/node/Witness.d.mts +3 -2
  27. package/dist/node/Witness.d.mts.map +1 -1
  28. package/dist/node/Witness.d.ts +3 -2
  29. package/dist/node/Witness.d.ts.map +1 -1
  30. package/dist/node/index.js +2 -2
  31. package/dist/node/index.js.map +1 -1
  32. package/dist/node/index.mjs +1 -1
  33. package/dist/node/index.mjs.map +1 -1
  34. package/package.json +13 -12
  35. package/src/Config.ts +1 -1
  36. package/src/Witness.ts +3 -2
  37. package/dist/browser/Config.cjs +0 -19
  38. package/dist/browser/Config.cjs.map +0 -1
  39. package/dist/browser/Config.js +0 -1
  40. package/dist/browser/Config.js.map +0 -1
  41. package/dist/browser/Plugin.cjs +0 -68
  42. package/dist/browser/Plugin.cjs.map +0 -1
  43. package/dist/browser/Plugin.js +0 -47
  44. package/dist/browser/Plugin.js.map +0 -1
  45. package/dist/browser/Schema.cjs +0 -27
  46. package/dist/browser/Schema.cjs.map +0 -1
  47. package/dist/browser/Schema.js +0 -6
  48. package/dist/browser/Schema.js.map +0 -1
  49. package/dist/browser/Witness.cjs +0 -53
  50. package/dist/browser/Witness.cjs.map +0 -1
  51. package/dist/browser/Witness.js +0 -32
  52. package/dist/browser/Witness.js.map +0 -1
  53. package/dist/browser/lib/getGasFromBlocknative.cjs +0 -33
  54. package/dist/browser/lib/getGasFromBlocknative.cjs.map +0 -1
  55. package/dist/browser/lib/getGasFromBlocknative.js +0 -12
  56. package/dist/browser/lib/getGasFromBlocknative.js.map +0 -1
  57. package/dist/browser/lib/index.cjs +0 -35
  58. package/dist/browser/lib/index.cjs.map +0 -1
  59. package/dist/browser/lib/index.js +0 -12
  60. package/dist/browser/lib/index.js.map +0 -1
  61. package/dist/node/Config.js +0 -19
  62. package/dist/node/Config.js.map +0 -1
  63. package/dist/node/Config.mjs +0 -1
  64. package/dist/node/Config.mjs.map +0 -1
  65. package/dist/node/Plugin.js +0 -72
  66. package/dist/node/Plugin.js.map +0 -1
  67. package/dist/node/Plugin.mjs +0 -47
  68. package/dist/node/Plugin.mjs.map +0 -1
  69. package/dist/node/Schema.js +0 -31
  70. package/dist/node/Schema.js.map +0 -1
  71. package/dist/node/Schema.mjs +0 -6
  72. package/dist/node/Schema.mjs.map +0 -1
  73. package/dist/node/Witness.js +0 -57
  74. package/dist/node/Witness.js.map +0 -1
  75. package/dist/node/Witness.mjs +0 -32
  76. package/dist/node/Witness.mjs.map +0 -1
  77. package/dist/node/lib/getGasFromBlocknative.js +0 -37
  78. package/dist/node/lib/getGasFromBlocknative.js.map +0 -1
  79. package/dist/node/lib/getGasFromBlocknative.mjs +0 -12
  80. package/dist/node/lib/getGasFromBlocknative.mjs.map +0 -1
  81. package/dist/node/lib/index.js +0 -39
  82. package/dist/node/lib/index.js.map +0 -1
  83. package/dist/node/lib/index.mjs +0 -12
  84. package/dist/node/lib/index.mjs.map +0 -1
@@ -1,35 +0,0 @@
1
- "use strict";
2
- var __defProp = Object.defineProperty;
3
- var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
- var __getOwnPropNames = Object.getOwnPropertyNames;
5
- var __hasOwnProp = Object.prototype.hasOwnProperty;
6
- var __export = (target, all) => {
7
- for (var name in all)
8
- __defProp(target, name, { get: all[name], enumerable: true });
9
- };
10
- var __copyProps = (to, from, except, desc) => {
11
- if (from && typeof from === "object" || typeof from === "function") {
12
- for (let key of __getOwnPropNames(from))
13
- if (!__hasOwnProp.call(to, key) && key !== except)
14
- __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
15
- }
16
- return to;
17
- };
18
- var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
19
-
20
- // src/lib/index.ts
21
- var lib_exports = {};
22
- __export(lib_exports, {
23
- getGasFromBlocknative: () => getGasFromBlocknative
24
- });
25
- module.exports = __toCommonJS(lib_exports);
26
-
27
- // src/lib/getGasFromBlocknative.ts
28
- var import_axios = require("@xyo-network/axios");
29
- var url = "https://api.blocknative.com/gasprices/blockprices";
30
- var Authorization = "9d3e23c3-e31d-4f9c-9d7c-c579cb75d226";
31
- var config = { headers: { Authorization } };
32
- var getGasFromBlocknative = async () => {
33
- return (await import_axios.axios.get(url, config)).data;
34
- };
35
- //# sourceMappingURL=index.cjs.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../../../src/lib/index.ts","../../../src/lib/getGasFromBlocknative.ts"],"sourcesContent":["export * from './getGasFromBlocknative'\n","import { axios } from '@xyo-network/axios'\nimport { EthereumGasBlocknativeResponse } from '@xyo-network/blocknative-ethereum-gas-payload-plugin'\n\nconst url = 'https://api.blocknative.com/gasprices/blockprices'\n\nconst Authorization = '9d3e23c3-e31d-4f9c-9d7c-c579cb75d226'\nconst config = { headers: { Authorization } }\n\nexport const getGasFromBlocknative = async (): Promise<EthereumGasBlocknativeResponse> => {\n return (await axios.get<EthereumGasBlocknativeResponse>(url, config)).data\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;;;ACAA,mBAAsB;AAGtB,IAAM,MAAM;AAEZ,IAAM,gBAAgB;AACtB,IAAM,SAAS,EAAE,SAAS,EAAE,cAAc,EAAE;AAErC,IAAM,wBAAwB,YAAqD;AACxF,UAAQ,MAAM,mBAAM,IAAoC,KAAK,MAAM,GAAG;AACxE;","names":[]}
@@ -1,12 +0,0 @@
1
- // src/lib/getGasFromBlocknative.ts
2
- import { axios } from "@xyo-network/axios";
3
- var url = "https://api.blocknative.com/gasprices/blockprices";
4
- var Authorization = "9d3e23c3-e31d-4f9c-9d7c-c579cb75d226";
5
- var config = { headers: { Authorization } };
6
- var getGasFromBlocknative = async () => {
7
- return (await axios.get(url, config)).data;
8
- };
9
- export {
10
- getGasFromBlocknative
11
- };
12
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../../../src/lib/getGasFromBlocknative.ts"],"sourcesContent":["import { axios } from '@xyo-network/axios'\nimport { EthereumGasBlocknativeResponse } from '@xyo-network/blocknative-ethereum-gas-payload-plugin'\n\nconst url = 'https://api.blocknative.com/gasprices/blockprices'\n\nconst Authorization = '9d3e23c3-e31d-4f9c-9d7c-c579cb75d226'\nconst config = { headers: { Authorization } }\n\nexport const getGasFromBlocknative = async (): Promise<EthereumGasBlocknativeResponse> => {\n return (await axios.get<EthereumGasBlocknativeResponse>(url, config)).data\n}\n"],"mappings":";AAAA,SAAS,aAAa;AAGtB,IAAM,MAAM;AAEZ,IAAM,gBAAgB;AACtB,IAAM,SAAS,EAAE,SAAS,EAAE,cAAc,EAAE;AAErC,IAAM,wBAAwB,YAAqD;AACxF,UAAQ,MAAM,MAAM,IAAoC,KAAK,MAAM,GAAG;AACxE;","names":[]}
@@ -1,19 +0,0 @@
1
- "use strict";
2
- var __defProp = Object.defineProperty;
3
- var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
- var __getOwnPropNames = Object.getOwnPropertyNames;
5
- var __hasOwnProp = Object.prototype.hasOwnProperty;
6
- var __copyProps = (to, from, except, desc) => {
7
- if (from && typeof from === "object" || typeof from === "function") {
8
- for (let key of __getOwnPropNames(from))
9
- if (!__hasOwnProp.call(to, key) && key !== except)
10
- __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
11
- }
12
- return to;
13
- };
14
- var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
15
-
16
- // src/Config.ts
17
- var Config_exports = {};
18
- module.exports = __toCommonJS(Config_exports);
19
- //# sourceMappingURL=Config.js.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../../src/Config.ts"],"sourcesContent":["import { TimestampWitnessConfig } from '@xyo-network/witness'\n\nimport { EthereumGasBlocknativeWitnessConfigSchema } from './Schema'\n\nexport type EthereumGasBlocknativeWitnessConfig = TimestampWitnessConfig<{\n schema: EthereumGasBlocknativeWitnessConfigSchema\n}>\n"],"mappings":";;;;;;;;;;;;;;;;AAAA;AAAA;","names":[]}
@@ -1 +0,0 @@
1
- //# sourceMappingURL=Config.mjs.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
@@ -1,72 +0,0 @@
1
- "use strict";
2
- var __defProp = Object.defineProperty;
3
- var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
- var __getOwnPropNames = Object.getOwnPropertyNames;
5
- var __hasOwnProp = Object.prototype.hasOwnProperty;
6
- var __export = (target, all) => {
7
- for (var name in all)
8
- __defProp(target, name, { get: all[name], enumerable: true });
9
- };
10
- var __copyProps = (to, from, except, desc) => {
11
- if (from && typeof from === "object" || typeof from === "function") {
12
- for (let key of __getOwnPropNames(from))
13
- if (!__hasOwnProp.call(to, key) && key !== except)
14
- __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
15
- }
16
- return to;
17
- };
18
- var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
19
-
20
- // src/Plugin.ts
21
- var Plugin_exports = {};
22
- __export(Plugin_exports, {
23
- EthereumGasBlocknativePlugin: () => EthereumGasBlocknativePlugin
24
- });
25
- module.exports = __toCommonJS(Plugin_exports);
26
- var import_blocknative_ethereum_gas_payload_plugin2 = require("@xyo-network/blocknative-ethereum-gas-payload-plugin");
27
- var import_payload_model = require("@xyo-network/payload-model");
28
- var import_payloadset_plugin = require("@xyo-network/payloadset-plugin");
29
-
30
- // src/Witness.ts
31
- var import_blocknative_ethereum_gas_payload_plugin = require("@xyo-network/blocknative-ethereum-gas-payload-plugin");
32
- var import_payload_builder = require("@xyo-network/payload-builder");
33
- var import_witness = require("@xyo-network/witness");
34
-
35
- // src/lib/getGasFromBlocknative.ts
36
- var import_axios = require("@xyo-network/axios");
37
- var url = "https://api.blocknative.com/gasprices/blockprices";
38
- var Authorization = "9d3e23c3-e31d-4f9c-9d7c-c579cb75d226";
39
- var config = { headers: { Authorization } };
40
- var getGasFromBlocknative = async () => {
41
- return (await import_axios.axios.get(url, config)).data;
42
- };
43
-
44
- // src/Schema.ts
45
- var EthereumGasBlocknativeWitnessConfigSchema = "network.xyo.blockchain.ethereum.gas.blocknative.witness.config";
46
-
47
- // src/Witness.ts
48
- var EthereumGasBlocknativeWitness = class extends import_witness.AbstractWitness {
49
- static configSchemas = [EthereumGasBlocknativeWitnessConfigSchema];
50
- async observeHandler() {
51
- const fields = await getGasFromBlocknative();
52
- const payload = new import_payload_builder.PayloadBuilder({
53
- schema: import_blocknative_ethereum_gas_payload_plugin.EthereumGasBlocknativeSchema
54
- }).fields(fields).build();
55
- return [payload];
56
- }
57
- };
58
-
59
- // src/Plugin.ts
60
- var EthereumGasBlocknativePlugin = () => (0, import_payloadset_plugin.createPayloadSetWitnessPlugin)(
61
- { required: { [import_blocknative_ethereum_gas_payload_plugin2.EthereumGasBlocknativeSchema]: 1 }, schema: import_payload_model.PayloadSetSchema },
62
- {
63
- witness: async (params) => {
64
- return await EthereumGasBlocknativeWitness.create(params);
65
- }
66
- }
67
- );
68
- // Annotate the CommonJS export names for ESM import in node:
69
- 0 && (module.exports = {
70
- EthereumGasBlocknativePlugin
71
- });
72
- //# sourceMappingURL=Plugin.js.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../../src/Plugin.ts","../../src/Witness.ts","../../src/lib/getGasFromBlocknative.ts","../../src/Schema.ts"],"sourcesContent":["import { EthereumGasBlocknativeSchema } from '@xyo-network/blocknative-ethereum-gas-payload-plugin'\nimport { PayloadSetSchema } from '@xyo-network/payload-model'\nimport { createPayloadSetWitnessPlugin } from '@xyo-network/payloadset-plugin'\n\nimport { EthereumGasBlocknativeWitness } from './Witness'\n\nexport const EthereumGasBlocknativePlugin = () =>\n createPayloadSetWitnessPlugin<EthereumGasBlocknativeWitness>(\n { required: { [EthereumGasBlocknativeSchema]: 1 }, schema: PayloadSetSchema },\n {\n witness: async (params) => {\n return (await EthereumGasBlocknativeWitness.create(params)) as EthereumGasBlocknativeWitness\n },\n },\n )\n","import { EthereumGasBlocknativePayload, EthereumGasBlocknativeSchema } from '@xyo-network/blocknative-ethereum-gas-payload-plugin'\nimport { AnyConfigSchema } from '@xyo-network/module'\nimport { PayloadBuilder } from '@xyo-network/payload-builder'\nimport { Payload } from '@xyo-network/payload-model'\nimport { AbstractWitness, TimestampWitnessParams } from '@xyo-network/witness'\n\nimport { EthereumGasBlocknativeWitnessConfig } from './Config'\nimport { getGasFromBlocknative } from './lib'\nimport { EthereumGasBlocknativeWitnessConfigSchema } from './Schema'\n\nexport type EthereumGasBlocknativeWitnessParams = TimestampWitnessParams<AnyConfigSchema<EthereumGasBlocknativeWitnessConfig>>\nexport class EthereumGasBlocknativeWitness extends AbstractWitness<EthereumGasBlocknativeWitnessParams> {\n static override configSchemas = [EthereumGasBlocknativeWitnessConfigSchema]\n\n protected override async observeHandler(): Promise<Payload[]> {\n const fields = await getGasFromBlocknative()\n const payload = new PayloadBuilder<EthereumGasBlocknativePayload>({\n schema: EthereumGasBlocknativeSchema,\n })\n .fields(fields)\n .build()\n return [payload]\n }\n}\n","import { axios } from '@xyo-network/axios'\nimport { EthereumGasBlocknativeResponse } from '@xyo-network/blocknative-ethereum-gas-payload-plugin'\n\nconst url = 'https://api.blocknative.com/gasprices/blockprices'\n\nconst Authorization = '9d3e23c3-e31d-4f9c-9d7c-c579cb75d226'\nconst config = { headers: { Authorization } }\n\nexport const getGasFromBlocknative = async (): Promise<EthereumGasBlocknativeResponse> => {\n return (await axios.get<EthereumGasBlocknativeResponse>(url, config)).data\n}\n","export type EthereumGasBlocknativeWitnessConfigSchema = 'network.xyo.blockchain.ethereum.gas.blocknative.witness.config'\nexport const EthereumGasBlocknativeWitnessConfigSchema: EthereumGasBlocknativeWitnessConfigSchema =\n 'network.xyo.blockchain.ethereum.gas.blocknative.witness.config'\n"],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,IAAAA,kDAA6C;AAC7C,2BAAiC;AACjC,+BAA8C;;;ACF9C,qDAA4E;AAE5E,6BAA+B;AAE/B,qBAAwD;;;ACJxD,mBAAsB;AAGtB,IAAM,MAAM;AAEZ,IAAM,gBAAgB;AACtB,IAAM,SAAS,EAAE,SAAS,EAAE,cAAc,EAAE;AAErC,IAAM,wBAAwB,YAAqD;AACxF,UAAQ,MAAM,mBAAM,IAAoC,KAAK,MAAM,GAAG;AACxE;;;ACTO,IAAM,4CACX;;;AFSK,IAAM,gCAAN,cAA4C,+BAAqD;AAAA,EACtG,OAAgB,gBAAgB,CAAC,yCAAyC;AAAA,EAE1E,MAAyB,iBAAqC;AAC5D,UAAM,SAAS,MAAM,sBAAsB;AAC3C,UAAM,UAAU,IAAI,sCAA8C;AAAA,MAChE,QAAQ;AAAA,IACV,CAAC,EACE,OAAO,MAAM,EACb,MAAM;AACT,WAAO,CAAC,OAAO;AAAA,EACjB;AACF;;;ADjBO,IAAM,+BAA+B,UAC1C;AAAA,EACE,EAAE,UAAU,EAAE,CAAC,4EAA4B,GAAG,EAAE,GAAG,QAAQ,sCAAiB;AAAA,EAC5E;AAAA,IACE,SAAS,OAAO,WAAW;AACzB,aAAQ,MAAM,8BAA8B,OAAO,MAAM;AAAA,IAC3D;AAAA,EACF;AACF;","names":["import_blocknative_ethereum_gas_payload_plugin"]}
@@ -1,47 +0,0 @@
1
- // src/Plugin.ts
2
- import { EthereumGasBlocknativeSchema as EthereumGasBlocknativeSchema2 } from "@xyo-network/blocknative-ethereum-gas-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 { EthereumGasBlocknativeSchema } from "@xyo-network/blocknative-ethereum-gas-payload-plugin";
8
- import { PayloadBuilder } from "@xyo-network/payload-builder";
9
- import { AbstractWitness } from "@xyo-network/witness";
10
-
11
- // src/lib/getGasFromBlocknative.ts
12
- import { axios } from "@xyo-network/axios";
13
- var url = "https://api.blocknative.com/gasprices/blockprices";
14
- var Authorization = "9d3e23c3-e31d-4f9c-9d7c-c579cb75d226";
15
- var config = { headers: { Authorization } };
16
- var getGasFromBlocknative = async () => {
17
- return (await axios.get(url, config)).data;
18
- };
19
-
20
- // src/Schema.ts
21
- var EthereumGasBlocknativeWitnessConfigSchema = "network.xyo.blockchain.ethereum.gas.blocknative.witness.config";
22
-
23
- // src/Witness.ts
24
- var EthereumGasBlocknativeWitness = class extends AbstractWitness {
25
- static configSchemas = [EthereumGasBlocknativeWitnessConfigSchema];
26
- async observeHandler() {
27
- const fields = await getGasFromBlocknative();
28
- const payload = new PayloadBuilder({
29
- schema: EthereumGasBlocknativeSchema
30
- }).fields(fields).build();
31
- return [payload];
32
- }
33
- };
34
-
35
- // src/Plugin.ts
36
- var EthereumGasBlocknativePlugin = () => createPayloadSetWitnessPlugin(
37
- { required: { [EthereumGasBlocknativeSchema2]: 1 }, schema: PayloadSetSchema },
38
- {
39
- witness: async (params) => {
40
- return await EthereumGasBlocknativeWitness.create(params);
41
- }
42
- }
43
- );
44
- export {
45
- EthereumGasBlocknativePlugin
46
- };
47
- //# sourceMappingURL=Plugin.mjs.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../../src/Plugin.ts","../../src/Witness.ts","../../src/lib/getGasFromBlocknative.ts","../../src/Schema.ts"],"sourcesContent":["import { EthereumGasBlocknativeSchema } from '@xyo-network/blocknative-ethereum-gas-payload-plugin'\nimport { PayloadSetSchema } from '@xyo-network/payload-model'\nimport { createPayloadSetWitnessPlugin } from '@xyo-network/payloadset-plugin'\n\nimport { EthereumGasBlocknativeWitness } from './Witness'\n\nexport const EthereumGasBlocknativePlugin = () =>\n createPayloadSetWitnessPlugin<EthereumGasBlocknativeWitness>(\n { required: { [EthereumGasBlocknativeSchema]: 1 }, schema: PayloadSetSchema },\n {\n witness: async (params) => {\n return (await EthereumGasBlocknativeWitness.create(params)) as EthereumGasBlocknativeWitness\n },\n },\n )\n","import { EthereumGasBlocknativePayload, EthereumGasBlocknativeSchema } from '@xyo-network/blocknative-ethereum-gas-payload-plugin'\nimport { AnyConfigSchema } from '@xyo-network/module'\nimport { PayloadBuilder } from '@xyo-network/payload-builder'\nimport { Payload } from '@xyo-network/payload-model'\nimport { AbstractWitness, TimestampWitnessParams } from '@xyo-network/witness'\n\nimport { EthereumGasBlocknativeWitnessConfig } from './Config'\nimport { getGasFromBlocknative } from './lib'\nimport { EthereumGasBlocknativeWitnessConfigSchema } from './Schema'\n\nexport type EthereumGasBlocknativeWitnessParams = TimestampWitnessParams<AnyConfigSchema<EthereumGasBlocknativeWitnessConfig>>\nexport class EthereumGasBlocknativeWitness extends AbstractWitness<EthereumGasBlocknativeWitnessParams> {\n static override configSchemas = [EthereumGasBlocknativeWitnessConfigSchema]\n\n protected override async observeHandler(): Promise<Payload[]> {\n const fields = await getGasFromBlocknative()\n const payload = new PayloadBuilder<EthereumGasBlocknativePayload>({\n schema: EthereumGasBlocknativeSchema,\n })\n .fields(fields)\n .build()\n return [payload]\n }\n}\n","import { axios } from '@xyo-network/axios'\nimport { EthereumGasBlocknativeResponse } from '@xyo-network/blocknative-ethereum-gas-payload-plugin'\n\nconst url = 'https://api.blocknative.com/gasprices/blockprices'\n\nconst Authorization = '9d3e23c3-e31d-4f9c-9d7c-c579cb75d226'\nconst config = { headers: { Authorization } }\n\nexport const getGasFromBlocknative = async (): Promise<EthereumGasBlocknativeResponse> => {\n return (await axios.get<EthereumGasBlocknativeResponse>(url, config)).data\n}\n","export type EthereumGasBlocknativeWitnessConfigSchema = 'network.xyo.blockchain.ethereum.gas.blocknative.witness.config'\nexport const EthereumGasBlocknativeWitnessConfigSchema: EthereumGasBlocknativeWitnessConfigSchema =\n 'network.xyo.blockchain.ethereum.gas.blocknative.witness.config'\n"],"mappings":";AAAA,SAAS,gCAAAA,qCAAoC;AAC7C,SAAS,wBAAwB;AACjC,SAAS,qCAAqC;;;ACF9C,SAAwC,oCAAoC;AAE5E,SAAS,sBAAsB;AAE/B,SAAS,uBAA+C;;;ACJxD,SAAS,aAAa;AAGtB,IAAM,MAAM;AAEZ,IAAM,gBAAgB;AACtB,IAAM,SAAS,EAAE,SAAS,EAAE,cAAc,EAAE;AAErC,IAAM,wBAAwB,YAAqD;AACxF,UAAQ,MAAM,MAAM,IAAoC,KAAK,MAAM,GAAG;AACxE;;;ACTO,IAAM,4CACX;;;AFSK,IAAM,gCAAN,cAA4C,gBAAqD;AAAA,EACtG,OAAgB,gBAAgB,CAAC,yCAAyC;AAAA,EAE1E,MAAyB,iBAAqC;AAC5D,UAAM,SAAS,MAAM,sBAAsB;AAC3C,UAAM,UAAU,IAAI,eAA8C;AAAA,MAChE,QAAQ;AAAA,IACV,CAAC,EACE,OAAO,MAAM,EACb,MAAM;AACT,WAAO,CAAC,OAAO;AAAA,EACjB;AACF;;;ADjBO,IAAM,+BAA+B,MAC1C;AAAA,EACE,EAAE,UAAU,EAAE,CAACC,6BAA4B,GAAG,EAAE,GAAG,QAAQ,iBAAiB;AAAA,EAC5E;AAAA,IACE,SAAS,OAAO,WAAW;AACzB,aAAQ,MAAM,8BAA8B,OAAO,MAAM;AAAA,IAC3D;AAAA,EACF;AACF;","names":["EthereumGasBlocknativeSchema","EthereumGasBlocknativeSchema"]}
@@ -1,31 +0,0 @@
1
- "use strict";
2
- var __defProp = Object.defineProperty;
3
- var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
- var __getOwnPropNames = Object.getOwnPropertyNames;
5
- var __hasOwnProp = Object.prototype.hasOwnProperty;
6
- var __export = (target, all) => {
7
- for (var name in all)
8
- __defProp(target, name, { get: all[name], enumerable: true });
9
- };
10
- var __copyProps = (to, from, except, desc) => {
11
- if (from && typeof from === "object" || typeof from === "function") {
12
- for (let key of __getOwnPropNames(from))
13
- if (!__hasOwnProp.call(to, key) && key !== except)
14
- __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
15
- }
16
- return to;
17
- };
18
- var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
19
-
20
- // src/Schema.ts
21
- var Schema_exports = {};
22
- __export(Schema_exports, {
23
- EthereumGasBlocknativeWitnessConfigSchema: () => EthereumGasBlocknativeWitnessConfigSchema
24
- });
25
- module.exports = __toCommonJS(Schema_exports);
26
- var EthereumGasBlocknativeWitnessConfigSchema = "network.xyo.blockchain.ethereum.gas.blocknative.witness.config";
27
- // Annotate the CommonJS export names for ESM import in node:
28
- 0 && (module.exports = {
29
- EthereumGasBlocknativeWitnessConfigSchema
30
- });
31
- //# sourceMappingURL=Schema.js.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../../src/Schema.ts"],"sourcesContent":["export type EthereumGasBlocknativeWitnessConfigSchema = 'network.xyo.blockchain.ethereum.gas.blocknative.witness.config'\nexport const EthereumGasBlocknativeWitnessConfigSchema: EthereumGasBlocknativeWitnessConfigSchema =\n 'network.xyo.blockchain.ethereum.gas.blocknative.witness.config'\n"],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AACO,IAAM,4CACX;","names":[]}
@@ -1,6 +0,0 @@
1
- // src/Schema.ts
2
- var EthereumGasBlocknativeWitnessConfigSchema = "network.xyo.blockchain.ethereum.gas.blocknative.witness.config";
3
- export {
4
- EthereumGasBlocknativeWitnessConfigSchema
5
- };
6
- //# sourceMappingURL=Schema.mjs.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../../src/Schema.ts"],"sourcesContent":["export type EthereumGasBlocknativeWitnessConfigSchema = 'network.xyo.blockchain.ethereum.gas.blocknative.witness.config'\nexport const EthereumGasBlocknativeWitnessConfigSchema: EthereumGasBlocknativeWitnessConfigSchema =\n 'network.xyo.blockchain.ethereum.gas.blocknative.witness.config'\n"],"mappings":";AACO,IAAM,4CACX;","names":[]}
@@ -1,57 +0,0 @@
1
- "use strict";
2
- var __defProp = Object.defineProperty;
3
- var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
- var __getOwnPropNames = Object.getOwnPropertyNames;
5
- var __hasOwnProp = Object.prototype.hasOwnProperty;
6
- var __export = (target, all) => {
7
- for (var name in all)
8
- __defProp(target, name, { get: all[name], enumerable: true });
9
- };
10
- var __copyProps = (to, from, except, desc) => {
11
- if (from && typeof from === "object" || typeof from === "function") {
12
- for (let key of __getOwnPropNames(from))
13
- if (!__hasOwnProp.call(to, key) && key !== except)
14
- __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
15
- }
16
- return to;
17
- };
18
- var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
19
-
20
- // src/Witness.ts
21
- var Witness_exports = {};
22
- __export(Witness_exports, {
23
- EthereumGasBlocknativeWitness: () => EthereumGasBlocknativeWitness
24
- });
25
- module.exports = __toCommonJS(Witness_exports);
26
- var import_blocknative_ethereum_gas_payload_plugin = require("@xyo-network/blocknative-ethereum-gas-payload-plugin");
27
- var import_payload_builder = require("@xyo-network/payload-builder");
28
- var import_witness = require("@xyo-network/witness");
29
-
30
- // src/lib/getGasFromBlocknative.ts
31
- var import_axios = require("@xyo-network/axios");
32
- var url = "https://api.blocknative.com/gasprices/blockprices";
33
- var Authorization = "9d3e23c3-e31d-4f9c-9d7c-c579cb75d226";
34
- var config = { headers: { Authorization } };
35
- var getGasFromBlocknative = async () => {
36
- return (await import_axios.axios.get(url, config)).data;
37
- };
38
-
39
- // src/Schema.ts
40
- var EthereumGasBlocknativeWitnessConfigSchema = "network.xyo.blockchain.ethereum.gas.blocknative.witness.config";
41
-
42
- // src/Witness.ts
43
- var EthereumGasBlocknativeWitness = class extends import_witness.AbstractWitness {
44
- static configSchemas = [EthereumGasBlocknativeWitnessConfigSchema];
45
- async observeHandler() {
46
- const fields = await getGasFromBlocknative();
47
- const payload = new import_payload_builder.PayloadBuilder({
48
- schema: import_blocknative_ethereum_gas_payload_plugin.EthereumGasBlocknativeSchema
49
- }).fields(fields).build();
50
- return [payload];
51
- }
52
- };
53
- // Annotate the CommonJS export names for ESM import in node:
54
- 0 && (module.exports = {
55
- EthereumGasBlocknativeWitness
56
- });
57
- //# sourceMappingURL=Witness.js.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../../src/Witness.ts","../../src/lib/getGasFromBlocknative.ts","../../src/Schema.ts"],"sourcesContent":["import { EthereumGasBlocknativePayload, EthereumGasBlocknativeSchema } from '@xyo-network/blocknative-ethereum-gas-payload-plugin'\nimport { AnyConfigSchema } from '@xyo-network/module'\nimport { PayloadBuilder } from '@xyo-network/payload-builder'\nimport { Payload } from '@xyo-network/payload-model'\nimport { AbstractWitness, TimestampWitnessParams } from '@xyo-network/witness'\n\nimport { EthereumGasBlocknativeWitnessConfig } from './Config'\nimport { getGasFromBlocknative } from './lib'\nimport { EthereumGasBlocknativeWitnessConfigSchema } from './Schema'\n\nexport type EthereumGasBlocknativeWitnessParams = TimestampWitnessParams<AnyConfigSchema<EthereumGasBlocknativeWitnessConfig>>\nexport class EthereumGasBlocknativeWitness extends AbstractWitness<EthereumGasBlocknativeWitnessParams> {\n static override configSchemas = [EthereumGasBlocknativeWitnessConfigSchema]\n\n protected override async observeHandler(): Promise<Payload[]> {\n const fields = await getGasFromBlocknative()\n const payload = new PayloadBuilder<EthereumGasBlocknativePayload>({\n schema: EthereumGasBlocknativeSchema,\n })\n .fields(fields)\n .build()\n return [payload]\n }\n}\n","import { axios } from '@xyo-network/axios'\nimport { EthereumGasBlocknativeResponse } from '@xyo-network/blocknative-ethereum-gas-payload-plugin'\n\nconst url = 'https://api.blocknative.com/gasprices/blockprices'\n\nconst Authorization = '9d3e23c3-e31d-4f9c-9d7c-c579cb75d226'\nconst config = { headers: { Authorization } }\n\nexport const getGasFromBlocknative = async (): Promise<EthereumGasBlocknativeResponse> => {\n return (await axios.get<EthereumGasBlocknativeResponse>(url, config)).data\n}\n","export type EthereumGasBlocknativeWitnessConfigSchema = 'network.xyo.blockchain.ethereum.gas.blocknative.witness.config'\nexport const EthereumGasBlocknativeWitnessConfigSchema: EthereumGasBlocknativeWitnessConfigSchema =\n 'network.xyo.blockchain.ethereum.gas.blocknative.witness.config'\n"],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,qDAA4E;AAE5E,6BAA+B;AAE/B,qBAAwD;;;ACJxD,mBAAsB;AAGtB,IAAM,MAAM;AAEZ,IAAM,gBAAgB;AACtB,IAAM,SAAS,EAAE,SAAS,EAAE,cAAc,EAAE;AAErC,IAAM,wBAAwB,YAAqD;AACxF,UAAQ,MAAM,mBAAM,IAAoC,KAAK,MAAM,GAAG;AACxE;;;ACTO,IAAM,4CACX;;;AFSK,IAAM,gCAAN,cAA4C,+BAAqD;AAAA,EACtG,OAAgB,gBAAgB,CAAC,yCAAyC;AAAA,EAE1E,MAAyB,iBAAqC;AAC5D,UAAM,SAAS,MAAM,sBAAsB;AAC3C,UAAM,UAAU,IAAI,sCAA8C;AAAA,MAChE,QAAQ;AAAA,IACV,CAAC,EACE,OAAO,MAAM,EACb,MAAM;AACT,WAAO,CAAC,OAAO;AAAA,EACjB;AACF;","names":[]}
@@ -1,32 +0,0 @@
1
- // src/Witness.ts
2
- import { EthereumGasBlocknativeSchema } from "@xyo-network/blocknative-ethereum-gas-payload-plugin";
3
- import { PayloadBuilder } from "@xyo-network/payload-builder";
4
- import { AbstractWitness } from "@xyo-network/witness";
5
-
6
- // src/lib/getGasFromBlocknative.ts
7
- import { axios } from "@xyo-network/axios";
8
- var url = "https://api.blocknative.com/gasprices/blockprices";
9
- var Authorization = "9d3e23c3-e31d-4f9c-9d7c-c579cb75d226";
10
- var config = { headers: { Authorization } };
11
- var getGasFromBlocknative = async () => {
12
- return (await axios.get(url, config)).data;
13
- };
14
-
15
- // src/Schema.ts
16
- var EthereumGasBlocknativeWitnessConfigSchema = "network.xyo.blockchain.ethereum.gas.blocknative.witness.config";
17
-
18
- // src/Witness.ts
19
- var EthereumGasBlocknativeWitness = class extends AbstractWitness {
20
- static configSchemas = [EthereumGasBlocknativeWitnessConfigSchema];
21
- async observeHandler() {
22
- const fields = await getGasFromBlocknative();
23
- const payload = new PayloadBuilder({
24
- schema: EthereumGasBlocknativeSchema
25
- }).fields(fields).build();
26
- return [payload];
27
- }
28
- };
29
- export {
30
- EthereumGasBlocknativeWitness
31
- };
32
- //# sourceMappingURL=Witness.mjs.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../../src/Witness.ts","../../src/lib/getGasFromBlocknative.ts","../../src/Schema.ts"],"sourcesContent":["import { EthereumGasBlocknativePayload, EthereumGasBlocknativeSchema } from '@xyo-network/blocknative-ethereum-gas-payload-plugin'\nimport { AnyConfigSchema } from '@xyo-network/module'\nimport { PayloadBuilder } from '@xyo-network/payload-builder'\nimport { Payload } from '@xyo-network/payload-model'\nimport { AbstractWitness, TimestampWitnessParams } from '@xyo-network/witness'\n\nimport { EthereumGasBlocknativeWitnessConfig } from './Config'\nimport { getGasFromBlocknative } from './lib'\nimport { EthereumGasBlocknativeWitnessConfigSchema } from './Schema'\n\nexport type EthereumGasBlocknativeWitnessParams = TimestampWitnessParams<AnyConfigSchema<EthereumGasBlocknativeWitnessConfig>>\nexport class EthereumGasBlocknativeWitness extends AbstractWitness<EthereumGasBlocknativeWitnessParams> {\n static override configSchemas = [EthereumGasBlocknativeWitnessConfigSchema]\n\n protected override async observeHandler(): Promise<Payload[]> {\n const fields = await getGasFromBlocknative()\n const payload = new PayloadBuilder<EthereumGasBlocknativePayload>({\n schema: EthereumGasBlocknativeSchema,\n })\n .fields(fields)\n .build()\n return [payload]\n }\n}\n","import { axios } from '@xyo-network/axios'\nimport { EthereumGasBlocknativeResponse } from '@xyo-network/blocknative-ethereum-gas-payload-plugin'\n\nconst url = 'https://api.blocknative.com/gasprices/blockprices'\n\nconst Authorization = '9d3e23c3-e31d-4f9c-9d7c-c579cb75d226'\nconst config = { headers: { Authorization } }\n\nexport const getGasFromBlocknative = async (): Promise<EthereumGasBlocknativeResponse> => {\n return (await axios.get<EthereumGasBlocknativeResponse>(url, config)).data\n}\n","export type EthereumGasBlocknativeWitnessConfigSchema = 'network.xyo.blockchain.ethereum.gas.blocknative.witness.config'\nexport const EthereumGasBlocknativeWitnessConfigSchema: EthereumGasBlocknativeWitnessConfigSchema =\n 'network.xyo.blockchain.ethereum.gas.blocknative.witness.config'\n"],"mappings":";AAAA,SAAwC,oCAAoC;AAE5E,SAAS,sBAAsB;AAE/B,SAAS,uBAA+C;;;ACJxD,SAAS,aAAa;AAGtB,IAAM,MAAM;AAEZ,IAAM,gBAAgB;AACtB,IAAM,SAAS,EAAE,SAAS,EAAE,cAAc,EAAE;AAErC,IAAM,wBAAwB,YAAqD;AACxF,UAAQ,MAAM,MAAM,IAAoC,KAAK,MAAM,GAAG;AACxE;;;ACTO,IAAM,4CACX;;;AFSK,IAAM,gCAAN,cAA4C,gBAAqD;AAAA,EACtG,OAAgB,gBAAgB,CAAC,yCAAyC;AAAA,EAE1E,MAAyB,iBAAqC;AAC5D,UAAM,SAAS,MAAM,sBAAsB;AAC3C,UAAM,UAAU,IAAI,eAA8C;AAAA,MAChE,QAAQ;AAAA,IACV,CAAC,EACE,OAAO,MAAM,EACb,MAAM;AACT,WAAO,CAAC,OAAO;AAAA,EACjB;AACF;","names":[]}
@@ -1,37 +0,0 @@
1
- "use strict";
2
- var __defProp = Object.defineProperty;
3
- var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
- var __getOwnPropNames = Object.getOwnPropertyNames;
5
- var __hasOwnProp = Object.prototype.hasOwnProperty;
6
- var __export = (target, all) => {
7
- for (var name in all)
8
- __defProp(target, name, { get: all[name], enumerable: true });
9
- };
10
- var __copyProps = (to, from, except, desc) => {
11
- if (from && typeof from === "object" || typeof from === "function") {
12
- for (let key of __getOwnPropNames(from))
13
- if (!__hasOwnProp.call(to, key) && key !== except)
14
- __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
15
- }
16
- return to;
17
- };
18
- var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
19
-
20
- // src/lib/getGasFromBlocknative.ts
21
- var getGasFromBlocknative_exports = {};
22
- __export(getGasFromBlocknative_exports, {
23
- getGasFromBlocknative: () => getGasFromBlocknative
24
- });
25
- module.exports = __toCommonJS(getGasFromBlocknative_exports);
26
- var import_axios = require("@xyo-network/axios");
27
- var url = "https://api.blocknative.com/gasprices/blockprices";
28
- var Authorization = "9d3e23c3-e31d-4f9c-9d7c-c579cb75d226";
29
- var config = { headers: { Authorization } };
30
- var getGasFromBlocknative = async () => {
31
- return (await import_axios.axios.get(url, config)).data;
32
- };
33
- // Annotate the CommonJS export names for ESM import in node:
34
- 0 && (module.exports = {
35
- getGasFromBlocknative
36
- });
37
- //# sourceMappingURL=getGasFromBlocknative.js.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../../../src/lib/getGasFromBlocknative.ts"],"sourcesContent":["import { axios } from '@xyo-network/axios'\nimport { EthereumGasBlocknativeResponse } from '@xyo-network/blocknative-ethereum-gas-payload-plugin'\n\nconst url = 'https://api.blocknative.com/gasprices/blockprices'\n\nconst Authorization = '9d3e23c3-e31d-4f9c-9d7c-c579cb75d226'\nconst config = { headers: { Authorization } }\n\nexport const getGasFromBlocknative = async (): Promise<EthereumGasBlocknativeResponse> => {\n return (await axios.get<EthereumGasBlocknativeResponse>(url, config)).data\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,mBAAsB;AAGtB,IAAM,MAAM;AAEZ,IAAM,gBAAgB;AACtB,IAAM,SAAS,EAAE,SAAS,EAAE,cAAc,EAAE;AAErC,IAAM,wBAAwB,YAAqD;AACxF,UAAQ,MAAM,mBAAM,IAAoC,KAAK,MAAM,GAAG;AACxE;","names":[]}
@@ -1,12 +0,0 @@
1
- // src/lib/getGasFromBlocknative.ts
2
- import { axios } from "@xyo-network/axios";
3
- var url = "https://api.blocknative.com/gasprices/blockprices";
4
- var Authorization = "9d3e23c3-e31d-4f9c-9d7c-c579cb75d226";
5
- var config = { headers: { Authorization } };
6
- var getGasFromBlocknative = async () => {
7
- return (await axios.get(url, config)).data;
8
- };
9
- export {
10
- getGasFromBlocknative
11
- };
12
- //# sourceMappingURL=getGasFromBlocknative.mjs.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../../../src/lib/getGasFromBlocknative.ts"],"sourcesContent":["import { axios } from '@xyo-network/axios'\nimport { EthereumGasBlocknativeResponse } from '@xyo-network/blocknative-ethereum-gas-payload-plugin'\n\nconst url = 'https://api.blocknative.com/gasprices/blockprices'\n\nconst Authorization = '9d3e23c3-e31d-4f9c-9d7c-c579cb75d226'\nconst config = { headers: { Authorization } }\n\nexport const getGasFromBlocknative = async (): Promise<EthereumGasBlocknativeResponse> => {\n return (await axios.get<EthereumGasBlocknativeResponse>(url, config)).data\n}\n"],"mappings":";AAAA,SAAS,aAAa;AAGtB,IAAM,MAAM;AAEZ,IAAM,gBAAgB;AACtB,IAAM,SAAS,EAAE,SAAS,EAAE,cAAc,EAAE;AAErC,IAAM,wBAAwB,YAAqD;AACxF,UAAQ,MAAM,MAAM,IAAoC,KAAK,MAAM,GAAG;AACxE;","names":[]}
@@ -1,39 +0,0 @@
1
- "use strict";
2
- var __defProp = Object.defineProperty;
3
- var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
- var __getOwnPropNames = Object.getOwnPropertyNames;
5
- var __hasOwnProp = Object.prototype.hasOwnProperty;
6
- var __export = (target, all) => {
7
- for (var name in all)
8
- __defProp(target, name, { get: all[name], enumerable: true });
9
- };
10
- var __copyProps = (to, from, except, desc) => {
11
- if (from && typeof from === "object" || typeof from === "function") {
12
- for (let key of __getOwnPropNames(from))
13
- if (!__hasOwnProp.call(to, key) && key !== except)
14
- __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
15
- }
16
- return to;
17
- };
18
- var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
19
-
20
- // src/lib/index.ts
21
- var lib_exports = {};
22
- __export(lib_exports, {
23
- getGasFromBlocknative: () => getGasFromBlocknative
24
- });
25
- module.exports = __toCommonJS(lib_exports);
26
-
27
- // src/lib/getGasFromBlocknative.ts
28
- var import_axios = require("@xyo-network/axios");
29
- var url = "https://api.blocknative.com/gasprices/blockprices";
30
- var Authorization = "9d3e23c3-e31d-4f9c-9d7c-c579cb75d226";
31
- var config = { headers: { Authorization } };
32
- var getGasFromBlocknative = async () => {
33
- return (await import_axios.axios.get(url, config)).data;
34
- };
35
- // Annotate the CommonJS export names for ESM import in node:
36
- 0 && (module.exports = {
37
- getGasFromBlocknative
38
- });
39
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../../../src/lib/index.ts","../../../src/lib/getGasFromBlocknative.ts"],"sourcesContent":["export * from './getGasFromBlocknative'\n","import { axios } from '@xyo-network/axios'\nimport { EthereumGasBlocknativeResponse } from '@xyo-network/blocknative-ethereum-gas-payload-plugin'\n\nconst url = 'https://api.blocknative.com/gasprices/blockprices'\n\nconst Authorization = '9d3e23c3-e31d-4f9c-9d7c-c579cb75d226'\nconst config = { headers: { Authorization } }\n\nexport const getGasFromBlocknative = async (): Promise<EthereumGasBlocknativeResponse> => {\n return (await axios.get<EthereumGasBlocknativeResponse>(url, config)).data\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;;;ACAA,mBAAsB;AAGtB,IAAM,MAAM;AAEZ,IAAM,gBAAgB;AACtB,IAAM,SAAS,EAAE,SAAS,EAAE,cAAc,EAAE;AAErC,IAAM,wBAAwB,YAAqD;AACxF,UAAQ,MAAM,mBAAM,IAAoC,KAAK,MAAM,GAAG;AACxE;","names":[]}
@@ -1,12 +0,0 @@
1
- // src/lib/getGasFromBlocknative.ts
2
- import { axios } from "@xyo-network/axios";
3
- var url = "https://api.blocknative.com/gasprices/blockprices";
4
- var Authorization = "9d3e23c3-e31d-4f9c-9d7c-c579cb75d226";
5
- var config = { headers: { Authorization } };
6
- var getGasFromBlocknative = async () => {
7
- return (await axios.get(url, config)).data;
8
- };
9
- export {
10
- getGasFromBlocknative
11
- };
12
- //# sourceMappingURL=index.mjs.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../../../src/lib/getGasFromBlocknative.ts"],"sourcesContent":["import { axios } from '@xyo-network/axios'\nimport { EthereumGasBlocknativeResponse } from '@xyo-network/blocknative-ethereum-gas-payload-plugin'\n\nconst url = 'https://api.blocknative.com/gasprices/blockprices'\n\nconst Authorization = '9d3e23c3-e31d-4f9c-9d7c-c579cb75d226'\nconst config = { headers: { Authorization } }\n\nexport const getGasFromBlocknative = async (): Promise<EthereumGasBlocknativeResponse> => {\n return (await axios.get<EthereumGasBlocknativeResponse>(url, config)).data\n}\n"],"mappings":";AAAA,SAAS,aAAa;AAGtB,IAAM,MAAM;AAEZ,IAAM,gBAAgB;AACtB,IAAM,SAAS,EAAE,SAAS,EAAE,cAAc,EAAE;AAErC,IAAM,wBAAwB,YAAqD;AACxF,UAAQ,MAAM,MAAM,IAAoC,KAAK,MAAM,GAAG;AACxE;","names":[]}