@xyo-network/blocknative-ethereum-gas-plugin 2.97.0-rc.1 → 2.97.0
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/index.cjs +1 -73
- package/dist/browser/index.cjs.map +1 -1
- package/dist/browser/index.js +1 -50
- package/dist/browser/index.js.map +1 -1
- package/dist/browser/lib/getGasFromBlocknative.d.cts.map +1 -1
- package/dist/browser/lib/getGasFromBlocknative.d.mts.map +1 -1
- package/dist/browser/lib/getGasFromBlocknative.d.ts.map +1 -1
- package/dist/neutral/index.cjs +1 -73
- package/dist/neutral/index.cjs.map +1 -1
- package/dist/neutral/index.js +1 -50
- package/dist/neutral/index.js.map +1 -1
- package/dist/neutral/lib/getGasFromBlocknative.d.cts.map +1 -1
- package/dist/neutral/lib/getGasFromBlocknative.d.mts.map +1 -1
- package/dist/neutral/lib/getGasFromBlocknative.d.ts.map +1 -1
- package/dist/node/index.cjs +1 -79
- package/dist/node/index.cjs.map +1 -1
- package/dist/node/index.js +1 -50
- package/dist/node/index.js.map +1 -1
- package/dist/node/lib/getGasFromBlocknative.d.cts.map +1 -1
- package/dist/node/lib/getGasFromBlocknative.d.mts.map +1 -1
- package/dist/node/lib/getGasFromBlocknative.d.ts.map +1 -1
- package/package.json +14 -15
package/dist/browser/index.cjs
CHANGED
|
@@ -1,74 +1,2 @@
|
|
|
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/index.ts
|
|
21
|
-
var src_exports = {};
|
|
22
|
-
__export(src_exports, {
|
|
23
|
-
EthereumGasBlocknativePlugin: () => EthereumGasBlocknativePlugin,
|
|
24
|
-
EthereumGasBlocknativeWitness: () => EthereumGasBlocknativeWitness,
|
|
25
|
-
EthereumGasBlocknativeWitnessConfigSchema: () => EthereumGasBlocknativeWitnessConfigSchema,
|
|
26
|
-
default: () => EthereumGasBlocknativePlugin
|
|
27
|
-
});
|
|
28
|
-
module.exports = __toCommonJS(src_exports);
|
|
29
|
-
|
|
30
|
-
// src/Plugin.ts
|
|
31
|
-
var import_blocknative_ethereum_gas_payload_plugin2 = require("@xyo-network/blocknative-ethereum-gas-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_abstract_witness = require("@xyo-network/abstract-witness");
|
|
37
|
-
var import_blocknative_ethereum_gas_payload_plugin = require("@xyo-network/blocknative-ethereum-gas-payload-plugin");
|
|
38
|
-
var import_payload_builder = require("@xyo-network/payload-builder");
|
|
39
|
-
|
|
40
|
-
// src/lib/getGasFromBlocknative.ts
|
|
41
|
-
var import_axios = require("@xylabs/axios");
|
|
42
|
-
var url = "https://api.blocknative.com/gasprices/blockprices";
|
|
43
|
-
var Authorization = "9d3e23c3-e31d-4f9c-9d7c-c579cb75d226";
|
|
44
|
-
var config = { headers: { Authorization } };
|
|
45
|
-
var getGasFromBlocknative = async () => {
|
|
46
|
-
return (await import_axios.axios.get(url, config)).data;
|
|
47
|
-
};
|
|
48
|
-
|
|
49
|
-
// src/Schema.ts
|
|
50
|
-
var EthereumGasBlocknativeWitnessConfigSchema = "network.xyo.blockchain.ethereum.gas.blocknative.witness.config";
|
|
51
|
-
|
|
52
|
-
// src/Witness.ts
|
|
53
|
-
var EthereumGasBlocknativeWitness = class extends import_abstract_witness.AbstractWitness {
|
|
54
|
-
static configSchemas = [...super.configSchemas, EthereumGasBlocknativeWitnessConfigSchema];
|
|
55
|
-
static defaultConfigSchema = EthereumGasBlocknativeWitnessConfigSchema;
|
|
56
|
-
async observeHandler() {
|
|
57
|
-
const fields = await getGasFromBlocknative();
|
|
58
|
-
const payload = await new import_payload_builder.PayloadBuilder({
|
|
59
|
-
schema: import_blocknative_ethereum_gas_payload_plugin.EthereumGasBlocknativeSchema
|
|
60
|
-
}).fields(fields).build();
|
|
61
|
-
return [payload];
|
|
62
|
-
}
|
|
63
|
-
};
|
|
64
|
-
|
|
65
|
-
// src/Plugin.ts
|
|
66
|
-
var EthereumGasBlocknativePlugin = () => (0, import_payloadset_plugin.createPayloadSetWitnessPlugin)(
|
|
67
|
-
{ required: { [import_blocknative_ethereum_gas_payload_plugin2.EthereumGasBlocknativeSchema]: 1 }, schema: import_payload_model.PayloadSetSchema },
|
|
68
|
-
{
|
|
69
|
-
witness: async (params) => {
|
|
70
|
-
return await EthereumGasBlocknativeWitness.create(params);
|
|
71
|
-
}
|
|
72
|
-
}
|
|
73
|
-
);
|
|
1
|
+
"use strict";var i=Object.defineProperty;var v=Object.getOwnPropertyDescriptor;var g=Object.getOwnPropertyNames;var B=Object.prototype.hasOwnProperty;var G=(t,e)=>{for(var a in e)i(t,a,{get:e[a],enumerable:!0})},y=(t,e,a,m)=>{if(e&&typeof e=="object"||typeof e=="function")for(let o of g(e))!B.call(t,o)&&o!==a&&i(t,o,{get:()=>e[o],enumerable:!(m=v(e,o))||m.enumerable});return t};var E=t=>y(i({},"__esModule",{value:!0}),t);var W={};G(W,{EthereumGasBlocknativePlugin:()=>n,EthereumGasBlocknativeWitness:()=>r,EthereumGasBlocknativeWitnessConfigSchema:()=>s,default:()=>n});module.exports=E(W);var u=require("@xyo-network/blocknative-ethereum-gas-payload-plugin"),d=require("@xyo-network/payload-model"),k=require("@xyo-network/payloadset-plugin");var h=require("@xyo-network/abstract-witness"),p=require("@xyo-network/blocknative-ethereum-gas-payload-plugin"),f=require("@xyo-network/payload-builder");var c=require("@xylabs/axios"),P="https://api.blocknative.com/gasprices/blockprices",S="9d3e23c3-e31d-4f9c-9d7c-c579cb75d226",x={headers:{Authorization:S}},l=async()=>(await c.axios.get(P,x)).data;var s="network.xyo.blockchain.ethereum.gas.blocknative.witness.config";var r=class extends h.AbstractWitness{static configSchemas=[...super.configSchemas,s];static defaultConfigSchema=s;async observeHandler(){let e=await l();return[await new f.PayloadBuilder({schema:p.EthereumGasBlocknativeSchema}).fields(e).build()]}};var n=()=>(0,k.createPayloadSetWitnessPlugin)({required:{[u.EthereumGasBlocknativeSchema]:1},schema:d.PayloadSetSchema},{witness:async t=>await r.create(t)});
|
|
74
2
|
//# sourceMappingURL=index.cjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/index.ts","../../src/Plugin.ts","../../src/Witness.ts","../../src/lib/getGasFromBlocknative.ts","../../src/Schema.ts"],"sourcesContent":["export * from './Config'\nexport { EthereumGasBlocknativePlugin as default, EthereumGasBlocknativePlugin } from './Plugin'\nexport * from './Schema'\nexport * from './Witness'\n","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 { AbstractWitness } from '@xyo-network/abstract-witness'\nimport { EthereumGasBlocknativePayload, EthereumGasBlocknativeSchema } from '@xyo-network/blocknative-ethereum-gas-payload-plugin'\nimport { AnyConfigSchema } from '@xyo-network/module-model'\nimport { PayloadBuilder } from '@xyo-network/payload-builder'\nimport { Payload, Schema } from '@xyo-network/payload-model'\nimport { TimestampWitnessParams } from '@xyo-network/witness-timestamp'\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 readonly configSchemas: Schema[] = [...super.configSchemas, EthereumGasBlocknativeWitnessConfigSchema]\n static override readonly defaultConfigSchema: Schema = EthereumGasBlocknativeWitnessConfigSchema\n\n protected override async observeHandler(): Promise<Payload[]> {\n const fields = await getGasFromBlocknative()\n const payload = await new PayloadBuilder<EthereumGasBlocknativePayload>({\n schema: EthereumGasBlocknativeSchema,\n })\n .fields(fields)\n .build()\n return [payload]\n }\n}\n","import { axios } from '@xylabs/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":"
|
|
1
|
+
{"version":3,"sources":["../../src/index.ts","../../src/Plugin.ts","../../src/Witness.ts","../../src/lib/getGasFromBlocknative.ts","../../src/Schema.ts"],"sourcesContent":["export * from './Config'\nexport { EthereumGasBlocknativePlugin as default, EthereumGasBlocknativePlugin } from './Plugin'\nexport * from './Schema'\nexport * from './Witness'\n","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 { AbstractWitness } from '@xyo-network/abstract-witness'\nimport { EthereumGasBlocknativePayload, EthereumGasBlocknativeSchema } from '@xyo-network/blocknative-ethereum-gas-payload-plugin'\nimport { AnyConfigSchema } from '@xyo-network/module-model'\nimport { PayloadBuilder } from '@xyo-network/payload-builder'\nimport { Payload, Schema } from '@xyo-network/payload-model'\nimport { TimestampWitnessParams } from '@xyo-network/witness-timestamp'\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 readonly configSchemas: Schema[] = [...super.configSchemas, EthereumGasBlocknativeWitnessConfigSchema]\n static override readonly defaultConfigSchema: Schema = EthereumGasBlocknativeWitnessConfigSchema\n\n protected override async observeHandler(): Promise<Payload[]> {\n const fields = await getGasFromBlocknative()\n const payload = await new PayloadBuilder<EthereumGasBlocknativePayload>({\n schema: EthereumGasBlocknativeSchema,\n })\n .fields(fields)\n .build()\n return [payload]\n }\n}\n","import { axios } from '@xylabs/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":"yaAAA,IAAAA,EAAA,GAAAC,EAAAD,EAAA,kCAAAE,EAAA,kCAAAC,EAAA,8CAAAC,EAAA,YAAAF,IAAA,eAAAG,EAAAL,GCAA,IAAAM,EAA6C,gEAC7CC,EAAiC,sCACjCC,EAA8C,0CCF9C,IAAAC,EAAgC,yCAChCC,EAA4E,gEAE5EC,EAA+B,wCCH/B,IAAAC,EAAsB,yBAGhBC,EAAM,oDAENC,EAAgB,uCAChBC,EAAS,CAAE,QAAS,CAAE,cAAAD,CAAc,CAAE,EAE/BE,EAAwB,UAC3B,MAAM,QAAM,IAAoCH,EAAKE,CAAM,GAAG,KCRjE,IAAME,EACX,iEFUK,IAAMC,EAAN,cAA4C,iBAAqD,CACtG,OAAyB,cAA0B,CAAC,GAAG,MAAM,cAAeC,CAAyC,EACrH,OAAyB,oBAA8BA,EAEvD,MAAyB,gBAAqC,CAC5D,IAAMC,EAAS,MAAMC,EAAsB,EAM3C,MAAO,CALS,MAAM,IAAI,iBAA8C,CACtE,OAAQ,8BACV,CAAC,EACE,OAAOD,CAAM,EACb,MAAM,CACM,CACjB,CACF,EDnBO,IAAME,EAA+B,OAC1C,iCACE,CAAE,SAAU,CAAE,CAAC,8BAA4B,EAAG,CAAE,EAAG,OAAQ,kBAAiB,EAC5E,CACE,QAAS,MAAOC,GACN,MAAMC,EAA8B,OAAOD,CAAM,CAE7D,CACF","names":["src_exports","__export","EthereumGasBlocknativePlugin","EthereumGasBlocknativeWitness","EthereumGasBlocknativeWitnessConfigSchema","__toCommonJS","import_blocknative_ethereum_gas_payload_plugin","import_payload_model","import_payloadset_plugin","import_abstract_witness","import_blocknative_ethereum_gas_payload_plugin","import_payload_builder","import_axios","url","Authorization","config","getGasFromBlocknative","EthereumGasBlocknativeWitnessConfigSchema","EthereumGasBlocknativeWitness","EthereumGasBlocknativeWitnessConfigSchema","fields","getGasFromBlocknative","EthereumGasBlocknativePlugin","params","EthereumGasBlocknativeWitness"]}
|
package/dist/browser/index.js
CHANGED
|
@@ -1,51 +1,2 @@
|
|
|
1
|
-
|
|
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 { AbstractWitness } from "@xyo-network/abstract-witness";
|
|
8
|
-
import { EthereumGasBlocknativeSchema } from "@xyo-network/blocknative-ethereum-gas-payload-plugin";
|
|
9
|
-
import { PayloadBuilder } from "@xyo-network/payload-builder";
|
|
10
|
-
|
|
11
|
-
// src/lib/getGasFromBlocknative.ts
|
|
12
|
-
import { axios } from "@xylabs/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 = [...super.configSchemas, EthereumGasBlocknativeWitnessConfigSchema];
|
|
26
|
-
static defaultConfigSchema = EthereumGasBlocknativeWitnessConfigSchema;
|
|
27
|
-
async observeHandler() {
|
|
28
|
-
const fields = await getGasFromBlocknative();
|
|
29
|
-
const payload = await new PayloadBuilder({
|
|
30
|
-
schema: EthereumGasBlocknativeSchema
|
|
31
|
-
}).fields(fields).build();
|
|
32
|
-
return [payload];
|
|
33
|
-
}
|
|
34
|
-
};
|
|
35
|
-
|
|
36
|
-
// src/Plugin.ts
|
|
37
|
-
var EthereumGasBlocknativePlugin = () => createPayloadSetWitnessPlugin(
|
|
38
|
-
{ required: { [EthereumGasBlocknativeSchema2]: 1 }, schema: PayloadSetSchema },
|
|
39
|
-
{
|
|
40
|
-
witness: async (params) => {
|
|
41
|
-
return await EthereumGasBlocknativeWitness.create(params);
|
|
42
|
-
}
|
|
43
|
-
}
|
|
44
|
-
);
|
|
45
|
-
export {
|
|
46
|
-
EthereumGasBlocknativePlugin,
|
|
47
|
-
EthereumGasBlocknativeWitness,
|
|
48
|
-
EthereumGasBlocknativeWitnessConfigSchema,
|
|
49
|
-
EthereumGasBlocknativePlugin as default
|
|
50
|
-
};
|
|
1
|
+
import{EthereumGasBlocknativeSchema as f}from"@xyo-network/blocknative-ethereum-gas-payload-plugin";import{PayloadSetSchema as u}from"@xyo-network/payload-model";import{createPayloadSetWitnessPlugin as d}from"@xyo-network/payloadset-plugin";import{AbstractWitness as l}from"@xyo-network/abstract-witness";import{EthereumGasBlocknativeSchema as h}from"@xyo-network/blocknative-ethereum-gas-payload-plugin";import{PayloadBuilder as p}from"@xyo-network/payload-builder";import{axios as i}from"@xylabs/axios";var n="https://api.blocknative.com/gasprices/blockprices",m="9d3e23c3-e31d-4f9c-9d7c-c579cb75d226",c={headers:{Authorization:m}},o=async()=>(await i.get(n,c)).data;var t="network.xyo.blockchain.ethereum.gas.blocknative.witness.config";var e=class extends l{static configSchemas=[...super.configSchemas,t];static defaultConfigSchema=t;async observeHandler(){let s=await o();return[await new p({schema:h}).fields(s).build()]}};var r=()=>d({required:{[f]:1},schema:u},{witness:async a=>await e.create(a)});export{r as EthereumGasBlocknativePlugin,e as EthereumGasBlocknativeWitness,t as EthereumGasBlocknativeWitnessConfigSchema,r as default};
|
|
51
2
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
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 { AbstractWitness } from '@xyo-network/abstract-witness'\nimport { EthereumGasBlocknativePayload, EthereumGasBlocknativeSchema } from '@xyo-network/blocknative-ethereum-gas-payload-plugin'\nimport { AnyConfigSchema } from '@xyo-network/module-model'\nimport { PayloadBuilder } from '@xyo-network/payload-builder'\nimport { Payload, Schema } from '@xyo-network/payload-model'\nimport { TimestampWitnessParams } from '@xyo-network/witness-timestamp'\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 readonly configSchemas: Schema[] = [...super.configSchemas, EthereumGasBlocknativeWitnessConfigSchema]\n static override readonly defaultConfigSchema: Schema = EthereumGasBlocknativeWitnessConfigSchema\n\n protected override async observeHandler(): Promise<Payload[]> {\n const fields = await getGasFromBlocknative()\n const payload = await new PayloadBuilder<EthereumGasBlocknativePayload>({\n schema: EthereumGasBlocknativeSchema,\n })\n .fields(fields)\n .build()\n return [payload]\n }\n}\n","import { axios } from '@xylabs/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":"
|
|
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 { AbstractWitness } from '@xyo-network/abstract-witness'\nimport { EthereumGasBlocknativePayload, EthereumGasBlocknativeSchema } from '@xyo-network/blocknative-ethereum-gas-payload-plugin'\nimport { AnyConfigSchema } from '@xyo-network/module-model'\nimport { PayloadBuilder } from '@xyo-network/payload-builder'\nimport { Payload, Schema } from '@xyo-network/payload-model'\nimport { TimestampWitnessParams } from '@xyo-network/witness-timestamp'\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 readonly configSchemas: Schema[] = [...super.configSchemas, EthereumGasBlocknativeWitnessConfigSchema]\n static override readonly defaultConfigSchema: Schema = EthereumGasBlocknativeWitnessConfigSchema\n\n protected override async observeHandler(): Promise<Payload[]> {\n const fields = await getGasFromBlocknative()\n const payload = await new PayloadBuilder<EthereumGasBlocknativePayload>({\n schema: EthereumGasBlocknativeSchema,\n })\n .fields(fields)\n .build()\n return [payload]\n }\n}\n","import { axios } from '@xylabs/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,OAAS,gCAAAA,MAAoC,uDAC7C,OAAS,oBAAAC,MAAwB,6BACjC,OAAS,iCAAAC,MAAqC,iCCF9C,OAAS,mBAAAC,MAAuB,gCAChC,OAAwC,gCAAAC,MAAoC,uDAE5E,OAAS,kBAAAC,MAAsB,+BCH/B,OAAS,SAAAC,MAAa,gBAGtB,IAAMC,EAAM,oDAENC,EAAgB,uCAChBC,EAAS,CAAE,QAAS,CAAE,cAAAD,CAAc,CAAE,EAE/BE,EAAwB,UAC3B,MAAMJ,EAAM,IAAoCC,EAAKE,CAAM,GAAG,KCRjE,IAAME,EACX,iEFUK,IAAMC,EAAN,cAA4CC,CAAqD,CACtG,OAAyB,cAA0B,CAAC,GAAG,MAAM,cAAeC,CAAyC,EACrH,OAAyB,oBAA8BA,EAEvD,MAAyB,gBAAqC,CAC5D,IAAMC,EAAS,MAAMC,EAAsB,EAM3C,MAAO,CALS,MAAM,IAAIC,EAA8C,CACtE,OAAQC,CACV,CAAC,EACE,OAAOH,CAAM,EACb,MAAM,CACM,CACjB,CACF,EDnBO,IAAMI,EAA+B,IAC1CC,EACE,CAAE,SAAU,CAAE,CAACC,CAA4B,EAAG,CAAE,EAAG,OAAQC,CAAiB,EAC5E,CACE,QAAS,MAAOC,GACN,MAAMC,EAA8B,OAAOD,CAAM,CAE7D,CACF","names":["EthereumGasBlocknativeSchema","PayloadSetSchema","createPayloadSetWitnessPlugin","AbstractWitness","EthereumGasBlocknativeSchema","PayloadBuilder","axios","url","Authorization","config","getGasFromBlocknative","EthereumGasBlocknativeWitnessConfigSchema","EthereumGasBlocknativeWitness","AbstractWitness","EthereumGasBlocknativeWitnessConfigSchema","fields","getGasFromBlocknative","PayloadBuilder","EthereumGasBlocknativeSchema","EthereumGasBlocknativePlugin","createPayloadSetWitnessPlugin","EthereumGasBlocknativeSchema","PayloadSetSchema","params","EthereumGasBlocknativeWitness"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getGasFromBlocknative.d.ts","sourceRoot":"","sources":["../../../src/lib/getGasFromBlocknative.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,8BAA8B,EAAE,MAAM,sDAAsD,CAAA;AAOrG,eAAO,MAAM,qBAAqB,QAAa,
|
|
1
|
+
{"version":3,"file":"getGasFromBlocknative.d.ts","sourceRoot":"","sources":["../../../src/lib/getGasFromBlocknative.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,8BAA8B,EAAE,MAAM,sDAAsD,CAAA;AAOrG,eAAO,MAAM,qBAAqB,QAAa,OAAO,CAAC,8BAA8B,CAEpF,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getGasFromBlocknative.d.ts","sourceRoot":"","sources":["../../../src/lib/getGasFromBlocknative.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,8BAA8B,EAAE,MAAM,sDAAsD,CAAA;AAOrG,eAAO,MAAM,qBAAqB,QAAa,
|
|
1
|
+
{"version":3,"file":"getGasFromBlocknative.d.ts","sourceRoot":"","sources":["../../../src/lib/getGasFromBlocknative.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,8BAA8B,EAAE,MAAM,sDAAsD,CAAA;AAOrG,eAAO,MAAM,qBAAqB,QAAa,OAAO,CAAC,8BAA8B,CAEpF,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getGasFromBlocknative.d.ts","sourceRoot":"","sources":["../../../src/lib/getGasFromBlocknative.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,8BAA8B,EAAE,MAAM,sDAAsD,CAAA;AAOrG,eAAO,MAAM,qBAAqB,QAAa,
|
|
1
|
+
{"version":3,"file":"getGasFromBlocknative.d.ts","sourceRoot":"","sources":["../../../src/lib/getGasFromBlocknative.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,8BAA8B,EAAE,MAAM,sDAAsD,CAAA;AAOrG,eAAO,MAAM,qBAAqB,QAAa,OAAO,CAAC,8BAA8B,CAEpF,CAAA"}
|
package/dist/neutral/index.cjs
CHANGED
|
@@ -1,74 +1,2 @@
|
|
|
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/index.ts
|
|
21
|
-
var src_exports = {};
|
|
22
|
-
__export(src_exports, {
|
|
23
|
-
EthereumGasBlocknativePlugin: () => EthereumGasBlocknativePlugin,
|
|
24
|
-
EthereumGasBlocknativeWitness: () => EthereumGasBlocknativeWitness,
|
|
25
|
-
EthereumGasBlocknativeWitnessConfigSchema: () => EthereumGasBlocknativeWitnessConfigSchema,
|
|
26
|
-
default: () => EthereumGasBlocknativePlugin
|
|
27
|
-
});
|
|
28
|
-
module.exports = __toCommonJS(src_exports);
|
|
29
|
-
|
|
30
|
-
// src/Plugin.ts
|
|
31
|
-
var import_blocknative_ethereum_gas_payload_plugin2 = require("@xyo-network/blocknative-ethereum-gas-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_abstract_witness = require("@xyo-network/abstract-witness");
|
|
37
|
-
var import_blocknative_ethereum_gas_payload_plugin = require("@xyo-network/blocknative-ethereum-gas-payload-plugin");
|
|
38
|
-
var import_payload_builder = require("@xyo-network/payload-builder");
|
|
39
|
-
|
|
40
|
-
// src/lib/getGasFromBlocknative.ts
|
|
41
|
-
var import_axios = require("@xylabs/axios");
|
|
42
|
-
var url = "https://api.blocknative.com/gasprices/blockprices";
|
|
43
|
-
var Authorization = "9d3e23c3-e31d-4f9c-9d7c-c579cb75d226";
|
|
44
|
-
var config = { headers: { Authorization } };
|
|
45
|
-
var getGasFromBlocknative = async () => {
|
|
46
|
-
return (await import_axios.axios.get(url, config)).data;
|
|
47
|
-
};
|
|
48
|
-
|
|
49
|
-
// src/Schema.ts
|
|
50
|
-
var EthereumGasBlocknativeWitnessConfigSchema = "network.xyo.blockchain.ethereum.gas.blocknative.witness.config";
|
|
51
|
-
|
|
52
|
-
// src/Witness.ts
|
|
53
|
-
var EthereumGasBlocknativeWitness = class extends import_abstract_witness.AbstractWitness {
|
|
54
|
-
static configSchemas = [...super.configSchemas, EthereumGasBlocknativeWitnessConfigSchema];
|
|
55
|
-
static defaultConfigSchema = EthereumGasBlocknativeWitnessConfigSchema;
|
|
56
|
-
async observeHandler() {
|
|
57
|
-
const fields = await getGasFromBlocknative();
|
|
58
|
-
const payload = await new import_payload_builder.PayloadBuilder({
|
|
59
|
-
schema: import_blocknative_ethereum_gas_payload_plugin.EthereumGasBlocknativeSchema
|
|
60
|
-
}).fields(fields).build();
|
|
61
|
-
return [payload];
|
|
62
|
-
}
|
|
63
|
-
};
|
|
64
|
-
|
|
65
|
-
// src/Plugin.ts
|
|
66
|
-
var EthereumGasBlocknativePlugin = () => (0, import_payloadset_plugin.createPayloadSetWitnessPlugin)(
|
|
67
|
-
{ required: { [import_blocknative_ethereum_gas_payload_plugin2.EthereumGasBlocknativeSchema]: 1 }, schema: import_payload_model.PayloadSetSchema },
|
|
68
|
-
{
|
|
69
|
-
witness: async (params) => {
|
|
70
|
-
return await EthereumGasBlocknativeWitness.create(params);
|
|
71
|
-
}
|
|
72
|
-
}
|
|
73
|
-
);
|
|
1
|
+
"use strict";var i=Object.defineProperty;var v=Object.getOwnPropertyDescriptor;var g=Object.getOwnPropertyNames;var B=Object.prototype.hasOwnProperty;var G=(t,e)=>{for(var a in e)i(t,a,{get:e[a],enumerable:!0})},y=(t,e,a,m)=>{if(e&&typeof e=="object"||typeof e=="function")for(let o of g(e))!B.call(t,o)&&o!==a&&i(t,o,{get:()=>e[o],enumerable:!(m=v(e,o))||m.enumerable});return t};var E=t=>y(i({},"__esModule",{value:!0}),t);var W={};G(W,{EthereumGasBlocknativePlugin:()=>n,EthereumGasBlocknativeWitness:()=>r,EthereumGasBlocknativeWitnessConfigSchema:()=>s,default:()=>n});module.exports=E(W);var u=require("@xyo-network/blocknative-ethereum-gas-payload-plugin"),d=require("@xyo-network/payload-model"),k=require("@xyo-network/payloadset-plugin");var h=require("@xyo-network/abstract-witness"),p=require("@xyo-network/blocknative-ethereum-gas-payload-plugin"),f=require("@xyo-network/payload-builder");var c=require("@xylabs/axios"),P="https://api.blocknative.com/gasprices/blockprices",S="9d3e23c3-e31d-4f9c-9d7c-c579cb75d226",x={headers:{Authorization:S}},l=async()=>(await c.axios.get(P,x)).data;var s="network.xyo.blockchain.ethereum.gas.blocknative.witness.config";var r=class extends h.AbstractWitness{static configSchemas=[...super.configSchemas,s];static defaultConfigSchema=s;async observeHandler(){let e=await l();return[await new f.PayloadBuilder({schema:p.EthereumGasBlocknativeSchema}).fields(e).build()]}};var n=()=>(0,k.createPayloadSetWitnessPlugin)({required:{[u.EthereumGasBlocknativeSchema]:1},schema:d.PayloadSetSchema},{witness:async t=>await r.create(t)});
|
|
74
2
|
//# sourceMappingURL=index.cjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/index.ts","../../src/Plugin.ts","../../src/Witness.ts","../../src/lib/getGasFromBlocknative.ts","../../src/Schema.ts"],"sourcesContent":["export * from './Config'\nexport { EthereumGasBlocknativePlugin as default, EthereumGasBlocknativePlugin } from './Plugin'\nexport * from './Schema'\nexport * from './Witness'\n","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 { AbstractWitness } from '@xyo-network/abstract-witness'\nimport { EthereumGasBlocknativePayload, EthereumGasBlocknativeSchema } from '@xyo-network/blocknative-ethereum-gas-payload-plugin'\nimport { AnyConfigSchema } from '@xyo-network/module-model'\nimport { PayloadBuilder } from '@xyo-network/payload-builder'\nimport { Payload, Schema } from '@xyo-network/payload-model'\nimport { TimestampWitnessParams } from '@xyo-network/witness-timestamp'\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 readonly configSchemas: Schema[] = [...super.configSchemas, EthereumGasBlocknativeWitnessConfigSchema]\n static override readonly defaultConfigSchema: Schema = EthereumGasBlocknativeWitnessConfigSchema\n\n protected override async observeHandler(): Promise<Payload[]> {\n const fields = await getGasFromBlocknative()\n const payload = await new PayloadBuilder<EthereumGasBlocknativePayload>({\n schema: EthereumGasBlocknativeSchema,\n })\n .fields(fields)\n .build()\n return [payload]\n }\n}\n","import { axios } from '@xylabs/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":"
|
|
1
|
+
{"version":3,"sources":["../../src/index.ts","../../src/Plugin.ts","../../src/Witness.ts","../../src/lib/getGasFromBlocknative.ts","../../src/Schema.ts"],"sourcesContent":["export * from './Config'\nexport { EthereumGasBlocknativePlugin as default, EthereumGasBlocknativePlugin } from './Plugin'\nexport * from './Schema'\nexport * from './Witness'\n","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 { AbstractWitness } from '@xyo-network/abstract-witness'\nimport { EthereumGasBlocknativePayload, EthereumGasBlocknativeSchema } from '@xyo-network/blocknative-ethereum-gas-payload-plugin'\nimport { AnyConfigSchema } from '@xyo-network/module-model'\nimport { PayloadBuilder } from '@xyo-network/payload-builder'\nimport { Payload, Schema } from '@xyo-network/payload-model'\nimport { TimestampWitnessParams } from '@xyo-network/witness-timestamp'\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 readonly configSchemas: Schema[] = [...super.configSchemas, EthereumGasBlocknativeWitnessConfigSchema]\n static override readonly defaultConfigSchema: Schema = EthereumGasBlocknativeWitnessConfigSchema\n\n protected override async observeHandler(): Promise<Payload[]> {\n const fields = await getGasFromBlocknative()\n const payload = await new PayloadBuilder<EthereumGasBlocknativePayload>({\n schema: EthereumGasBlocknativeSchema,\n })\n .fields(fields)\n .build()\n return [payload]\n }\n}\n","import { axios } from '@xylabs/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":"yaAAA,IAAAA,EAAA,GAAAC,EAAAD,EAAA,kCAAAE,EAAA,kCAAAC,EAAA,8CAAAC,EAAA,YAAAF,IAAA,eAAAG,EAAAL,GCAA,IAAAM,EAA6C,gEAC7CC,EAAiC,sCACjCC,EAA8C,0CCF9C,IAAAC,EAAgC,yCAChCC,EAA4E,gEAE5EC,EAA+B,wCCH/B,IAAAC,EAAsB,yBAGhBC,EAAM,oDAENC,EAAgB,uCAChBC,EAAS,CAAE,QAAS,CAAE,cAAAD,CAAc,CAAE,EAE/BE,EAAwB,UAC3B,MAAM,QAAM,IAAoCH,EAAKE,CAAM,GAAG,KCRjE,IAAME,EACX,iEFUK,IAAMC,EAAN,cAA4C,iBAAqD,CACtG,OAAyB,cAA0B,CAAC,GAAG,MAAM,cAAeC,CAAyC,EACrH,OAAyB,oBAA8BA,EAEvD,MAAyB,gBAAqC,CAC5D,IAAMC,EAAS,MAAMC,EAAsB,EAM3C,MAAO,CALS,MAAM,IAAI,iBAA8C,CACtE,OAAQ,8BACV,CAAC,EACE,OAAOD,CAAM,EACb,MAAM,CACM,CACjB,CACF,EDnBO,IAAME,EAA+B,OAC1C,iCACE,CAAE,SAAU,CAAE,CAAC,8BAA4B,EAAG,CAAE,EAAG,OAAQ,kBAAiB,EAC5E,CACE,QAAS,MAAOC,GACN,MAAMC,EAA8B,OAAOD,CAAM,CAE7D,CACF","names":["src_exports","__export","EthereumGasBlocknativePlugin","EthereumGasBlocknativeWitness","EthereumGasBlocknativeWitnessConfigSchema","__toCommonJS","import_blocknative_ethereum_gas_payload_plugin","import_payload_model","import_payloadset_plugin","import_abstract_witness","import_blocknative_ethereum_gas_payload_plugin","import_payload_builder","import_axios","url","Authorization","config","getGasFromBlocknative","EthereumGasBlocknativeWitnessConfigSchema","EthereumGasBlocknativeWitness","EthereumGasBlocknativeWitnessConfigSchema","fields","getGasFromBlocknative","EthereumGasBlocknativePlugin","params","EthereumGasBlocknativeWitness"]}
|
package/dist/neutral/index.js
CHANGED
|
@@ -1,51 +1,2 @@
|
|
|
1
|
-
|
|
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 { AbstractWitness } from "@xyo-network/abstract-witness";
|
|
8
|
-
import { EthereumGasBlocknativeSchema } from "@xyo-network/blocknative-ethereum-gas-payload-plugin";
|
|
9
|
-
import { PayloadBuilder } from "@xyo-network/payload-builder";
|
|
10
|
-
|
|
11
|
-
// src/lib/getGasFromBlocknative.ts
|
|
12
|
-
import { axios } from "@xylabs/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 = [...super.configSchemas, EthereumGasBlocknativeWitnessConfigSchema];
|
|
26
|
-
static defaultConfigSchema = EthereumGasBlocknativeWitnessConfigSchema;
|
|
27
|
-
async observeHandler() {
|
|
28
|
-
const fields = await getGasFromBlocknative();
|
|
29
|
-
const payload = await new PayloadBuilder({
|
|
30
|
-
schema: EthereumGasBlocknativeSchema
|
|
31
|
-
}).fields(fields).build();
|
|
32
|
-
return [payload];
|
|
33
|
-
}
|
|
34
|
-
};
|
|
35
|
-
|
|
36
|
-
// src/Plugin.ts
|
|
37
|
-
var EthereumGasBlocknativePlugin = () => createPayloadSetWitnessPlugin(
|
|
38
|
-
{ required: { [EthereumGasBlocknativeSchema2]: 1 }, schema: PayloadSetSchema },
|
|
39
|
-
{
|
|
40
|
-
witness: async (params) => {
|
|
41
|
-
return await EthereumGasBlocknativeWitness.create(params);
|
|
42
|
-
}
|
|
43
|
-
}
|
|
44
|
-
);
|
|
45
|
-
export {
|
|
46
|
-
EthereumGasBlocknativePlugin,
|
|
47
|
-
EthereumGasBlocknativeWitness,
|
|
48
|
-
EthereumGasBlocknativeWitnessConfigSchema,
|
|
49
|
-
EthereumGasBlocknativePlugin as default
|
|
50
|
-
};
|
|
1
|
+
import{EthereumGasBlocknativeSchema as f}from"@xyo-network/blocknative-ethereum-gas-payload-plugin";import{PayloadSetSchema as u}from"@xyo-network/payload-model";import{createPayloadSetWitnessPlugin as d}from"@xyo-network/payloadset-plugin";import{AbstractWitness as l}from"@xyo-network/abstract-witness";import{EthereumGasBlocknativeSchema as h}from"@xyo-network/blocknative-ethereum-gas-payload-plugin";import{PayloadBuilder as p}from"@xyo-network/payload-builder";import{axios as i}from"@xylabs/axios";var n="https://api.blocknative.com/gasprices/blockprices",m="9d3e23c3-e31d-4f9c-9d7c-c579cb75d226",c={headers:{Authorization:m}},o=async()=>(await i.get(n,c)).data;var t="network.xyo.blockchain.ethereum.gas.blocknative.witness.config";var e=class extends l{static configSchemas=[...super.configSchemas,t];static defaultConfigSchema=t;async observeHandler(){let s=await o();return[await new p({schema:h}).fields(s).build()]}};var r=()=>d({required:{[f]:1},schema:u},{witness:async a=>await e.create(a)});export{r as EthereumGasBlocknativePlugin,e as EthereumGasBlocknativeWitness,t as EthereumGasBlocknativeWitnessConfigSchema,r as default};
|
|
51
2
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
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 { AbstractWitness } from '@xyo-network/abstract-witness'\nimport { EthereumGasBlocknativePayload, EthereumGasBlocknativeSchema } from '@xyo-network/blocknative-ethereum-gas-payload-plugin'\nimport { AnyConfigSchema } from '@xyo-network/module-model'\nimport { PayloadBuilder } from '@xyo-network/payload-builder'\nimport { Payload, Schema } from '@xyo-network/payload-model'\nimport { TimestampWitnessParams } from '@xyo-network/witness-timestamp'\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 readonly configSchemas: Schema[] = [...super.configSchemas, EthereumGasBlocknativeWitnessConfigSchema]\n static override readonly defaultConfigSchema: Schema = EthereumGasBlocknativeWitnessConfigSchema\n\n protected override async observeHandler(): Promise<Payload[]> {\n const fields = await getGasFromBlocknative()\n const payload = await new PayloadBuilder<EthereumGasBlocknativePayload>({\n schema: EthereumGasBlocknativeSchema,\n })\n .fields(fields)\n .build()\n return [payload]\n }\n}\n","import { axios } from '@xylabs/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":"
|
|
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 { AbstractWitness } from '@xyo-network/abstract-witness'\nimport { EthereumGasBlocknativePayload, EthereumGasBlocknativeSchema } from '@xyo-network/blocknative-ethereum-gas-payload-plugin'\nimport { AnyConfigSchema } from '@xyo-network/module-model'\nimport { PayloadBuilder } from '@xyo-network/payload-builder'\nimport { Payload, Schema } from '@xyo-network/payload-model'\nimport { TimestampWitnessParams } from '@xyo-network/witness-timestamp'\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 readonly configSchemas: Schema[] = [...super.configSchemas, EthereumGasBlocknativeWitnessConfigSchema]\n static override readonly defaultConfigSchema: Schema = EthereumGasBlocknativeWitnessConfigSchema\n\n protected override async observeHandler(): Promise<Payload[]> {\n const fields = await getGasFromBlocknative()\n const payload = await new PayloadBuilder<EthereumGasBlocknativePayload>({\n schema: EthereumGasBlocknativeSchema,\n })\n .fields(fields)\n .build()\n return [payload]\n }\n}\n","import { axios } from '@xylabs/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,OAAS,gCAAAA,MAAoC,uDAC7C,OAAS,oBAAAC,MAAwB,6BACjC,OAAS,iCAAAC,MAAqC,iCCF9C,OAAS,mBAAAC,MAAuB,gCAChC,OAAwC,gCAAAC,MAAoC,uDAE5E,OAAS,kBAAAC,MAAsB,+BCH/B,OAAS,SAAAC,MAAa,gBAGtB,IAAMC,EAAM,oDAENC,EAAgB,uCAChBC,EAAS,CAAE,QAAS,CAAE,cAAAD,CAAc,CAAE,EAE/BE,EAAwB,UAC3B,MAAMJ,EAAM,IAAoCC,EAAKE,CAAM,GAAG,KCRjE,IAAME,EACX,iEFUK,IAAMC,EAAN,cAA4CC,CAAqD,CACtG,OAAyB,cAA0B,CAAC,GAAG,MAAM,cAAeC,CAAyC,EACrH,OAAyB,oBAA8BA,EAEvD,MAAyB,gBAAqC,CAC5D,IAAMC,EAAS,MAAMC,EAAsB,EAM3C,MAAO,CALS,MAAM,IAAIC,EAA8C,CACtE,OAAQC,CACV,CAAC,EACE,OAAOH,CAAM,EACb,MAAM,CACM,CACjB,CACF,EDnBO,IAAMI,EAA+B,IAC1CC,EACE,CAAE,SAAU,CAAE,CAACC,CAA4B,EAAG,CAAE,EAAG,OAAQC,CAAiB,EAC5E,CACE,QAAS,MAAOC,GACN,MAAMC,EAA8B,OAAOD,CAAM,CAE7D,CACF","names":["EthereumGasBlocknativeSchema","PayloadSetSchema","createPayloadSetWitnessPlugin","AbstractWitness","EthereumGasBlocknativeSchema","PayloadBuilder","axios","url","Authorization","config","getGasFromBlocknative","EthereumGasBlocknativeWitnessConfigSchema","EthereumGasBlocknativeWitness","AbstractWitness","EthereumGasBlocknativeWitnessConfigSchema","fields","getGasFromBlocknative","PayloadBuilder","EthereumGasBlocknativeSchema","EthereumGasBlocknativePlugin","createPayloadSetWitnessPlugin","EthereumGasBlocknativeSchema","PayloadSetSchema","params","EthereumGasBlocknativeWitness"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getGasFromBlocknative.d.ts","sourceRoot":"","sources":["../../../src/lib/getGasFromBlocknative.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,8BAA8B,EAAE,MAAM,sDAAsD,CAAA;AAOrG,eAAO,MAAM,qBAAqB,QAAa,
|
|
1
|
+
{"version":3,"file":"getGasFromBlocknative.d.ts","sourceRoot":"","sources":["../../../src/lib/getGasFromBlocknative.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,8BAA8B,EAAE,MAAM,sDAAsD,CAAA;AAOrG,eAAO,MAAM,qBAAqB,QAAa,OAAO,CAAC,8BAA8B,CAEpF,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getGasFromBlocknative.d.ts","sourceRoot":"","sources":["../../../src/lib/getGasFromBlocknative.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,8BAA8B,EAAE,MAAM,sDAAsD,CAAA;AAOrG,eAAO,MAAM,qBAAqB,QAAa,
|
|
1
|
+
{"version":3,"file":"getGasFromBlocknative.d.ts","sourceRoot":"","sources":["../../../src/lib/getGasFromBlocknative.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,8BAA8B,EAAE,MAAM,sDAAsD,CAAA;AAOrG,eAAO,MAAM,qBAAqB,QAAa,OAAO,CAAC,8BAA8B,CAEpF,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getGasFromBlocknative.d.ts","sourceRoot":"","sources":["../../../src/lib/getGasFromBlocknative.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,8BAA8B,EAAE,MAAM,sDAAsD,CAAA;AAOrG,eAAO,MAAM,qBAAqB,QAAa,
|
|
1
|
+
{"version":3,"file":"getGasFromBlocknative.d.ts","sourceRoot":"","sources":["../../../src/lib/getGasFromBlocknative.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,8BAA8B,EAAE,MAAM,sDAAsD,CAAA;AAOrG,eAAO,MAAM,qBAAqB,QAAa,OAAO,CAAC,8BAA8B,CAEpF,CAAA"}
|
package/dist/node/index.cjs
CHANGED
|
@@ -1,80 +1,2 @@
|
|
|
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/index.ts
|
|
21
|
-
var src_exports = {};
|
|
22
|
-
__export(src_exports, {
|
|
23
|
-
EthereumGasBlocknativePlugin: () => EthereumGasBlocknativePlugin,
|
|
24
|
-
EthereumGasBlocknativeWitness: () => EthereumGasBlocknativeWitness,
|
|
25
|
-
EthereumGasBlocknativeWitnessConfigSchema: () => EthereumGasBlocknativeWitnessConfigSchema,
|
|
26
|
-
default: () => EthereumGasBlocknativePlugin
|
|
27
|
-
});
|
|
28
|
-
module.exports = __toCommonJS(src_exports);
|
|
29
|
-
|
|
30
|
-
// src/Plugin.ts
|
|
31
|
-
var import_blocknative_ethereum_gas_payload_plugin2 = require("@xyo-network/blocknative-ethereum-gas-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_abstract_witness = require("@xyo-network/abstract-witness");
|
|
37
|
-
var import_blocknative_ethereum_gas_payload_plugin = require("@xyo-network/blocknative-ethereum-gas-payload-plugin");
|
|
38
|
-
var import_payload_builder = require("@xyo-network/payload-builder");
|
|
39
|
-
|
|
40
|
-
// src/lib/getGasFromBlocknative.ts
|
|
41
|
-
var import_axios = require("@xylabs/axios");
|
|
42
|
-
var url = "https://api.blocknative.com/gasprices/blockprices";
|
|
43
|
-
var Authorization = "9d3e23c3-e31d-4f9c-9d7c-c579cb75d226";
|
|
44
|
-
var config = { headers: { Authorization } };
|
|
45
|
-
var getGasFromBlocknative = async () => {
|
|
46
|
-
return (await import_axios.axios.get(url, config)).data;
|
|
47
|
-
};
|
|
48
|
-
|
|
49
|
-
// src/Schema.ts
|
|
50
|
-
var EthereumGasBlocknativeWitnessConfigSchema = "network.xyo.blockchain.ethereum.gas.blocknative.witness.config";
|
|
51
|
-
|
|
52
|
-
// src/Witness.ts
|
|
53
|
-
var EthereumGasBlocknativeWitness = class extends import_abstract_witness.AbstractWitness {
|
|
54
|
-
static configSchemas = [...super.configSchemas, EthereumGasBlocknativeWitnessConfigSchema];
|
|
55
|
-
static defaultConfigSchema = EthereumGasBlocknativeWitnessConfigSchema;
|
|
56
|
-
async observeHandler() {
|
|
57
|
-
const fields = await getGasFromBlocknative();
|
|
58
|
-
const payload = await new import_payload_builder.PayloadBuilder({
|
|
59
|
-
schema: import_blocknative_ethereum_gas_payload_plugin.EthereumGasBlocknativeSchema
|
|
60
|
-
}).fields(fields).build();
|
|
61
|
-
return [payload];
|
|
62
|
-
}
|
|
63
|
-
};
|
|
64
|
-
|
|
65
|
-
// src/Plugin.ts
|
|
66
|
-
var EthereumGasBlocknativePlugin = () => (0, import_payloadset_plugin.createPayloadSetWitnessPlugin)(
|
|
67
|
-
{ required: { [import_blocknative_ethereum_gas_payload_plugin2.EthereumGasBlocknativeSchema]: 1 }, schema: import_payload_model.PayloadSetSchema },
|
|
68
|
-
{
|
|
69
|
-
witness: async (params) => {
|
|
70
|
-
return await EthereumGasBlocknativeWitness.create(params);
|
|
71
|
-
}
|
|
72
|
-
}
|
|
73
|
-
);
|
|
74
|
-
// Annotate the CommonJS export names for ESM import in node:
|
|
75
|
-
0 && (module.exports = {
|
|
76
|
-
EthereumGasBlocknativePlugin,
|
|
77
|
-
EthereumGasBlocknativeWitness,
|
|
78
|
-
EthereumGasBlocknativeWitnessConfigSchema
|
|
79
|
-
});
|
|
1
|
+
"use strict";var i=Object.defineProperty;var v=Object.getOwnPropertyDescriptor;var g=Object.getOwnPropertyNames;var B=Object.prototype.hasOwnProperty;var G=(t,e)=>{for(var a in e)i(t,a,{get:e[a],enumerable:!0})},y=(t,e,a,m)=>{if(e&&typeof e=="object"||typeof e=="function")for(let o of g(e))!B.call(t,o)&&o!==a&&i(t,o,{get:()=>e[o],enumerable:!(m=v(e,o))||m.enumerable});return t};var E=t=>y(i({},"__esModule",{value:!0}),t);var W={};G(W,{EthereumGasBlocknativePlugin:()=>n,EthereumGasBlocknativeWitness:()=>r,EthereumGasBlocknativeWitnessConfigSchema:()=>s,default:()=>n});module.exports=E(W);var u=require("@xyo-network/blocknative-ethereum-gas-payload-plugin"),d=require("@xyo-network/payload-model"),k=require("@xyo-network/payloadset-plugin");var h=require("@xyo-network/abstract-witness"),p=require("@xyo-network/blocknative-ethereum-gas-payload-plugin"),f=require("@xyo-network/payload-builder");var c=require("@xylabs/axios"),P="https://api.blocknative.com/gasprices/blockprices",S="9d3e23c3-e31d-4f9c-9d7c-c579cb75d226",x={headers:{Authorization:S}},l=async()=>(await c.axios.get(P,x)).data;var s="network.xyo.blockchain.ethereum.gas.blocknative.witness.config";var r=class extends h.AbstractWitness{static configSchemas=[...super.configSchemas,s];static defaultConfigSchema=s;async observeHandler(){let e=await l();return[await new f.PayloadBuilder({schema:p.EthereumGasBlocknativeSchema}).fields(e).build()]}};var n=()=>(0,k.createPayloadSetWitnessPlugin)({required:{[u.EthereumGasBlocknativeSchema]:1},schema:d.PayloadSetSchema},{witness:async t=>await r.create(t)});0&&(module.exports={EthereumGasBlocknativePlugin,EthereumGasBlocknativeWitness,EthereumGasBlocknativeWitnessConfigSchema});
|
|
80
2
|
//# sourceMappingURL=index.cjs.map
|
package/dist/node/index.cjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/index.ts","../../src/Plugin.ts","../../src/Witness.ts","../../src/lib/getGasFromBlocknative.ts","../../src/Schema.ts"],"sourcesContent":["export * from './Config'\nexport { EthereumGasBlocknativePlugin as default, EthereumGasBlocknativePlugin } from './Plugin'\nexport * from './Schema'\nexport * from './Witness'\n","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 { AbstractWitness } from '@xyo-network/abstract-witness'\nimport { EthereumGasBlocknativePayload, EthereumGasBlocknativeSchema } from '@xyo-network/blocknative-ethereum-gas-payload-plugin'\nimport { AnyConfigSchema } from '@xyo-network/module-model'\nimport { PayloadBuilder } from '@xyo-network/payload-builder'\nimport { Payload, Schema } from '@xyo-network/payload-model'\nimport { TimestampWitnessParams } from '@xyo-network/witness-timestamp'\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 readonly configSchemas: Schema[] = [...super.configSchemas, EthereumGasBlocknativeWitnessConfigSchema]\n static override readonly defaultConfigSchema: Schema = EthereumGasBlocknativeWitnessConfigSchema\n\n protected override async observeHandler(): Promise<Payload[]> {\n const fields = await getGasFromBlocknative()\n const payload = await new PayloadBuilder<EthereumGasBlocknativePayload>({\n schema: EthereumGasBlocknativeSchema,\n })\n .fields(fields)\n .build()\n return [payload]\n }\n}\n","import { axios } from '@xylabs/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":"
|
|
1
|
+
{"version":3,"sources":["../../src/index.ts","../../src/Plugin.ts","../../src/Witness.ts","../../src/lib/getGasFromBlocknative.ts","../../src/Schema.ts"],"sourcesContent":["export * from './Config'\nexport { EthereumGasBlocknativePlugin as default, EthereumGasBlocknativePlugin } from './Plugin'\nexport * from './Schema'\nexport * from './Witness'\n","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 { AbstractWitness } from '@xyo-network/abstract-witness'\nimport { EthereumGasBlocknativePayload, EthereumGasBlocknativeSchema } from '@xyo-network/blocknative-ethereum-gas-payload-plugin'\nimport { AnyConfigSchema } from '@xyo-network/module-model'\nimport { PayloadBuilder } from '@xyo-network/payload-builder'\nimport { Payload, Schema } from '@xyo-network/payload-model'\nimport { TimestampWitnessParams } from '@xyo-network/witness-timestamp'\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 readonly configSchemas: Schema[] = [...super.configSchemas, EthereumGasBlocknativeWitnessConfigSchema]\n static override readonly defaultConfigSchema: Schema = EthereumGasBlocknativeWitnessConfigSchema\n\n protected override async observeHandler(): Promise<Payload[]> {\n const fields = await getGasFromBlocknative()\n const payload = await new PayloadBuilder<EthereumGasBlocknativePayload>({\n schema: EthereumGasBlocknativeSchema,\n })\n .fields(fields)\n .build()\n return [payload]\n }\n}\n","import { axios } from '@xylabs/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":"yaAAA,IAAAA,EAAA,GAAAC,EAAAD,EAAA,kCAAAE,EAAA,kCAAAC,EAAA,8CAAAC,EAAA,YAAAF,IAAA,eAAAG,EAAAL,GCAA,IAAAM,EAA6C,gEAC7CC,EAAiC,sCACjCC,EAA8C,0CCF9C,IAAAC,EAAgC,yCAChCC,EAA4E,gEAE5EC,EAA+B,wCCH/B,IAAAC,EAAsB,yBAGhBC,EAAM,oDAENC,EAAgB,uCAChBC,EAAS,CAAE,QAAS,CAAE,cAAAD,CAAc,CAAE,EAE/BE,EAAwB,UAC3B,MAAM,QAAM,IAAoCH,EAAKE,CAAM,GAAG,KCRjE,IAAME,EACX,iEFUK,IAAMC,EAAN,cAA4C,iBAAqD,CACtG,OAAyB,cAA0B,CAAC,GAAG,MAAM,cAAeC,CAAyC,EACrH,OAAyB,oBAA8BA,EAEvD,MAAyB,gBAAqC,CAC5D,IAAMC,EAAS,MAAMC,EAAsB,EAM3C,MAAO,CALS,MAAM,IAAI,iBAA8C,CACtE,OAAQ,8BACV,CAAC,EACE,OAAOD,CAAM,EACb,MAAM,CACM,CACjB,CACF,EDnBO,IAAME,EAA+B,OAC1C,iCACE,CAAE,SAAU,CAAE,CAAC,8BAA4B,EAAG,CAAE,EAAG,OAAQ,kBAAiB,EAC5E,CACE,QAAS,MAAOC,GACN,MAAMC,EAA8B,OAAOD,CAAM,CAE7D,CACF","names":["src_exports","__export","EthereumGasBlocknativePlugin","EthereumGasBlocknativeWitness","EthereumGasBlocknativeWitnessConfigSchema","__toCommonJS","import_blocknative_ethereum_gas_payload_plugin","import_payload_model","import_payloadset_plugin","import_abstract_witness","import_blocknative_ethereum_gas_payload_plugin","import_payload_builder","import_axios","url","Authorization","config","getGasFromBlocknative","EthereumGasBlocknativeWitnessConfigSchema","EthereumGasBlocknativeWitness","EthereumGasBlocknativeWitnessConfigSchema","fields","getGasFromBlocknative","EthereumGasBlocknativePlugin","params","EthereumGasBlocknativeWitness"]}
|
package/dist/node/index.js
CHANGED
|
@@ -1,51 +1,2 @@
|
|
|
1
|
-
|
|
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 { AbstractWitness } from "@xyo-network/abstract-witness";
|
|
8
|
-
import { EthereumGasBlocknativeSchema } from "@xyo-network/blocknative-ethereum-gas-payload-plugin";
|
|
9
|
-
import { PayloadBuilder } from "@xyo-network/payload-builder";
|
|
10
|
-
|
|
11
|
-
// src/lib/getGasFromBlocknative.ts
|
|
12
|
-
import { axios } from "@xylabs/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 = [...super.configSchemas, EthereumGasBlocknativeWitnessConfigSchema];
|
|
26
|
-
static defaultConfigSchema = EthereumGasBlocknativeWitnessConfigSchema;
|
|
27
|
-
async observeHandler() {
|
|
28
|
-
const fields = await getGasFromBlocknative();
|
|
29
|
-
const payload = await new PayloadBuilder({
|
|
30
|
-
schema: EthereumGasBlocknativeSchema
|
|
31
|
-
}).fields(fields).build();
|
|
32
|
-
return [payload];
|
|
33
|
-
}
|
|
34
|
-
};
|
|
35
|
-
|
|
36
|
-
// src/Plugin.ts
|
|
37
|
-
var EthereumGasBlocknativePlugin = () => createPayloadSetWitnessPlugin(
|
|
38
|
-
{ required: { [EthereumGasBlocknativeSchema2]: 1 }, schema: PayloadSetSchema },
|
|
39
|
-
{
|
|
40
|
-
witness: async (params) => {
|
|
41
|
-
return await EthereumGasBlocknativeWitness.create(params);
|
|
42
|
-
}
|
|
43
|
-
}
|
|
44
|
-
);
|
|
45
|
-
export {
|
|
46
|
-
EthereumGasBlocknativePlugin,
|
|
47
|
-
EthereumGasBlocknativeWitness,
|
|
48
|
-
EthereumGasBlocknativeWitnessConfigSchema,
|
|
49
|
-
EthereumGasBlocknativePlugin as default
|
|
50
|
-
};
|
|
1
|
+
import{EthereumGasBlocknativeSchema as f}from"@xyo-network/blocknative-ethereum-gas-payload-plugin";import{PayloadSetSchema as u}from"@xyo-network/payload-model";import{createPayloadSetWitnessPlugin as d}from"@xyo-network/payloadset-plugin";import{AbstractWitness as l}from"@xyo-network/abstract-witness";import{EthereumGasBlocknativeSchema as h}from"@xyo-network/blocknative-ethereum-gas-payload-plugin";import{PayloadBuilder as p}from"@xyo-network/payload-builder";import{axios as i}from"@xylabs/axios";var n="https://api.blocknative.com/gasprices/blockprices",m="9d3e23c3-e31d-4f9c-9d7c-c579cb75d226",c={headers:{Authorization:m}},o=async()=>(await i.get(n,c)).data;var t="network.xyo.blockchain.ethereum.gas.blocknative.witness.config";var e=class extends l{static configSchemas=[...super.configSchemas,t];static defaultConfigSchema=t;async observeHandler(){let s=await o();return[await new p({schema:h}).fields(s).build()]}};var r=()=>d({required:{[f]:1},schema:u},{witness:async a=>await e.create(a)});export{r as EthereumGasBlocknativePlugin,e as EthereumGasBlocknativeWitness,t as EthereumGasBlocknativeWitnessConfigSchema,r as default};
|
|
51
2
|
//# sourceMappingURL=index.js.map
|
package/dist/node/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
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 { AbstractWitness } from '@xyo-network/abstract-witness'\nimport { EthereumGasBlocknativePayload, EthereumGasBlocknativeSchema } from '@xyo-network/blocknative-ethereum-gas-payload-plugin'\nimport { AnyConfigSchema } from '@xyo-network/module-model'\nimport { PayloadBuilder } from '@xyo-network/payload-builder'\nimport { Payload, Schema } from '@xyo-network/payload-model'\nimport { TimestampWitnessParams } from '@xyo-network/witness-timestamp'\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 readonly configSchemas: Schema[] = [...super.configSchemas, EthereumGasBlocknativeWitnessConfigSchema]\n static override readonly defaultConfigSchema: Schema = EthereumGasBlocknativeWitnessConfigSchema\n\n protected override async observeHandler(): Promise<Payload[]> {\n const fields = await getGasFromBlocknative()\n const payload = await new PayloadBuilder<EthereumGasBlocknativePayload>({\n schema: EthereumGasBlocknativeSchema,\n })\n .fields(fields)\n .build()\n return [payload]\n }\n}\n","import { axios } from '@xylabs/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":"
|
|
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 { AbstractWitness } from '@xyo-network/abstract-witness'\nimport { EthereumGasBlocknativePayload, EthereumGasBlocknativeSchema } from '@xyo-network/blocknative-ethereum-gas-payload-plugin'\nimport { AnyConfigSchema } from '@xyo-network/module-model'\nimport { PayloadBuilder } from '@xyo-network/payload-builder'\nimport { Payload, Schema } from '@xyo-network/payload-model'\nimport { TimestampWitnessParams } from '@xyo-network/witness-timestamp'\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 readonly configSchemas: Schema[] = [...super.configSchemas, EthereumGasBlocknativeWitnessConfigSchema]\n static override readonly defaultConfigSchema: Schema = EthereumGasBlocknativeWitnessConfigSchema\n\n protected override async observeHandler(): Promise<Payload[]> {\n const fields = await getGasFromBlocknative()\n const payload = await new PayloadBuilder<EthereumGasBlocknativePayload>({\n schema: EthereumGasBlocknativeSchema,\n })\n .fields(fields)\n .build()\n return [payload]\n }\n}\n","import { axios } from '@xylabs/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,OAAS,gCAAAA,MAAoC,uDAC7C,OAAS,oBAAAC,MAAwB,6BACjC,OAAS,iCAAAC,MAAqC,iCCF9C,OAAS,mBAAAC,MAAuB,gCAChC,OAAwC,gCAAAC,MAAoC,uDAE5E,OAAS,kBAAAC,MAAsB,+BCH/B,OAAS,SAAAC,MAAa,gBAGtB,IAAMC,EAAM,oDAENC,EAAgB,uCAChBC,EAAS,CAAE,QAAS,CAAE,cAAAD,CAAc,CAAE,EAE/BE,EAAwB,UAC3B,MAAMJ,EAAM,IAAoCC,EAAKE,CAAM,GAAG,KCRjE,IAAME,EACX,iEFUK,IAAMC,EAAN,cAA4CC,CAAqD,CACtG,OAAyB,cAA0B,CAAC,GAAG,MAAM,cAAeC,CAAyC,EACrH,OAAyB,oBAA8BA,EAEvD,MAAyB,gBAAqC,CAC5D,IAAMC,EAAS,MAAMC,EAAsB,EAM3C,MAAO,CALS,MAAM,IAAIC,EAA8C,CACtE,OAAQC,CACV,CAAC,EACE,OAAOH,CAAM,EACb,MAAM,CACM,CACjB,CACF,EDnBO,IAAMI,EAA+B,IAC1CC,EACE,CAAE,SAAU,CAAE,CAACC,CAA4B,EAAG,CAAE,EAAG,OAAQC,CAAiB,EAC5E,CACE,QAAS,MAAOC,GACN,MAAMC,EAA8B,OAAOD,CAAM,CAE7D,CACF","names":["EthereumGasBlocknativeSchema","PayloadSetSchema","createPayloadSetWitnessPlugin","AbstractWitness","EthereumGasBlocknativeSchema","PayloadBuilder","axios","url","Authorization","config","getGasFromBlocknative","EthereumGasBlocknativeWitnessConfigSchema","EthereumGasBlocknativeWitness","AbstractWitness","EthereumGasBlocknativeWitnessConfigSchema","fields","getGasFromBlocknative","PayloadBuilder","EthereumGasBlocknativeSchema","EthereumGasBlocknativePlugin","createPayloadSetWitnessPlugin","EthereumGasBlocknativeSchema","PayloadSetSchema","params","EthereumGasBlocknativeWitness"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getGasFromBlocknative.d.ts","sourceRoot":"","sources":["../../../src/lib/getGasFromBlocknative.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,8BAA8B,EAAE,MAAM,sDAAsD,CAAA;AAOrG,eAAO,MAAM,qBAAqB,QAAa,
|
|
1
|
+
{"version":3,"file":"getGasFromBlocknative.d.ts","sourceRoot":"","sources":["../../../src/lib/getGasFromBlocknative.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,8BAA8B,EAAE,MAAM,sDAAsD,CAAA;AAOrG,eAAO,MAAM,qBAAqB,QAAa,OAAO,CAAC,8BAA8B,CAEpF,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getGasFromBlocknative.d.ts","sourceRoot":"","sources":["../../../src/lib/getGasFromBlocknative.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,8BAA8B,EAAE,MAAM,sDAAsD,CAAA;AAOrG,eAAO,MAAM,qBAAqB,QAAa,
|
|
1
|
+
{"version":3,"file":"getGasFromBlocknative.d.ts","sourceRoot":"","sources":["../../../src/lib/getGasFromBlocknative.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,8BAA8B,EAAE,MAAM,sDAAsD,CAAA;AAOrG,eAAO,MAAM,qBAAqB,QAAa,OAAO,CAAC,8BAA8B,CAEpF,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getGasFromBlocknative.d.ts","sourceRoot":"","sources":["../../../src/lib/getGasFromBlocknative.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,8BAA8B,EAAE,MAAM,sDAAsD,CAAA;AAOrG,eAAO,MAAM,qBAAqB,QAAa,
|
|
1
|
+
{"version":3,"file":"getGasFromBlocknative.d.ts","sourceRoot":"","sources":["../../../src/lib/getGasFromBlocknative.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,8BAA8B,EAAE,MAAM,sDAAsD,CAAA;AAOrG,eAAO,MAAM,qBAAqB,QAAa,OAAO,CAAC,8BAA8B,CAEpF,CAAA"}
|
package/package.json
CHANGED
|
@@ -11,20 +11,20 @@
|
|
|
11
11
|
},
|
|
12
12
|
"dependencies": {
|
|
13
13
|
"@xylabs/axios": "^3.5.1",
|
|
14
|
-
"@xyo-network/abstract-witness": "
|
|
15
|
-
"@xyo-network/blocknative-ethereum-gas-payload-plugin": "~2.97.0
|
|
16
|
-
"@xyo-network/module-model": "
|
|
17
|
-
"@xyo-network/payload-builder": "
|
|
18
|
-
"@xyo-network/payload-model": "
|
|
19
|
-
"@xyo-network/payloadset-plugin": "
|
|
20
|
-
"@xyo-network/witness-timestamp": "
|
|
14
|
+
"@xyo-network/abstract-witness": "^2.107.0",
|
|
15
|
+
"@xyo-network/blocknative-ethereum-gas-payload-plugin": "~2.97.0",
|
|
16
|
+
"@xyo-network/module-model": "^2.107.0",
|
|
17
|
+
"@xyo-network/payload-builder": "^2.107.0",
|
|
18
|
+
"@xyo-network/payload-model": "^2.107.0",
|
|
19
|
+
"@xyo-network/payloadset-plugin": "^2.107.0",
|
|
20
|
+
"@xyo-network/witness-timestamp": "^2.107.0"
|
|
21
21
|
},
|
|
22
22
|
"devDependencies": {
|
|
23
|
-
"@xylabs/ts-scripts-yarn3": "^3.11.
|
|
24
|
-
"@xylabs/tsconfig": "^3.11.
|
|
25
|
-
"@xyo-network/account": "
|
|
26
|
-
"@xyo-network/payload-wrapper": "
|
|
27
|
-
"typescript": "^5.
|
|
23
|
+
"@xylabs/ts-scripts-yarn3": "^3.11.8",
|
|
24
|
+
"@xylabs/tsconfig": "^3.11.8",
|
|
25
|
+
"@xyo-network/account": "^2.107.0",
|
|
26
|
+
"@xyo-network/payload-wrapper": "^2.107.0",
|
|
27
|
+
"typescript": "^5.5.2"
|
|
28
28
|
},
|
|
29
29
|
"description": "Typescript/Javascript Plugins for XYO Platform",
|
|
30
30
|
"types": "dist/node/index.d.ts",
|
|
@@ -65,7 +65,6 @@
|
|
|
65
65
|
"url": "https://github.com/XYOracleNetwork/plugins.git"
|
|
66
66
|
},
|
|
67
67
|
"sideEffects": false,
|
|
68
|
-
"version": "2.97.0
|
|
69
|
-
"type": "module"
|
|
70
|
-
"stableVersion": "2.96.0"
|
|
68
|
+
"version": "2.97.0",
|
|
69
|
+
"type": "module"
|
|
71
70
|
}
|