@xyo-network/etherchain-ethereum-gas-v2-plugin 5.5.1 → 6.0.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.
@@ -47,4 +47,4 @@ export {
47
47
  EthereumGasEtherchainV2WitnessConfigSchema,
48
48
  EthereumGasEtherchainV2Plugin as default
49
49
  };
50
- //# sourceMappingURL=index.mjs.map
50
+ //# sourceMappingURL=index.mjs.map
@@ -1 +1,7 @@
1
- {"version":3,"sources":["../../src/Plugin.ts","../../src/Witness.ts","../../src/lib/getV2GasFromEtherchain.ts","../../src/Schema.ts"],"sourcesContent":["import { EthereumGasEtherchainV2Schema } from '@xyo-network/etherchain-ethereum-gas-v2-payload-plugin'\nimport { PayloadSetSchema } from '@xyo-network/payload-model'\nimport { createPayloadSetWitnessPlugin } from '@xyo-network/sdk-js'\n\nimport { EtherchainEthereumGasWitnessV2 } from './Witness.ts'\n\nexport const EthereumGasEtherchainV2Plugin = () =>\n createPayloadSetWitnessPlugin(\n { required: { [EthereumGasEtherchainV2Schema]: 1 }, schema: PayloadSetSchema },\n {\n witness: async (params) => {\n return (await EtherchainEthereumGasWitnessV2.create(params)) as EtherchainEthereumGasWitnessV2\n },\n },\n )\n","import type { EthereumGasEtherchainV2Payload } from '@xyo-network/etherchain-ethereum-gas-v2-payload-plugin'\nimport { EthereumGasEtherchainV2Schema } from '@xyo-network/etherchain-ethereum-gas-v2-payload-plugin'\nimport type { AnyConfigSchema } from '@xyo-network/module-model'\nimport type { Payload, Schema } from '@xyo-network/payload-model'\nimport { AbstractWitness } from '@xyo-network/witness-abstract'\nimport type { WitnessParams } from '@xyo-network/witness-model'\n\nimport type { EthereumGasEtherchainV2WitnessConfig } from './Config.ts'\nimport { getV2GasFromEtherchain } from './lib/index.ts'\nimport { EthereumGasEtherchainV2WitnessConfigSchema } from './Schema.ts'\n\nexport type EtherchainEthereumGasWitnessV2Params = WitnessParams<AnyConfigSchema<EthereumGasEtherchainV2WitnessConfig>>\n\nexport class EtherchainEthereumGasWitnessV2 extends AbstractWitness<EtherchainEthereumGasWitnessV2Params> {\n static override readonly configSchemas: Schema[] = [...super.configSchemas, EthereumGasEtherchainV2WitnessConfigSchema]\n static override readonly defaultConfigSchema: Schema = EthereumGasEtherchainV2WitnessConfigSchema\n\n protected override async observeHandler(): Promise<Payload[]> {\n const payload: EthereumGasEtherchainV2Payload = {\n ...(await getV2GasFromEtherchain()),\n schema: EthereumGasEtherchainV2Schema,\n timestamp: Date.now(),\n }\n return [payload]\n }\n}\n","import { assertEx, fetchJsonClient } from '@xylabs/sdk-js'\nimport type { EthereumGasEtherchainV2Response } from '@xyo-network/etherchain-ethereum-gas-v2-payload-plugin'\n\nconst url = 'https://beaconcha.in/api/v1/execution/gasnow'\n\nexport const getV2GasFromEtherchain = async (): Promise<EthereumGasEtherchainV2Response> => {\n return assertEx((await fetchJsonClient.get<EthereumGasEtherchainV2Response>(url)).data, () => 'Empty Etherchain response')\n}\n","import { asSchema } from '@xyo-network/payload-model'\n\nexport type EthereumGasEtherchainV2WitnessConfigSchema = typeof EthereumGasEtherchainV2WitnessConfigSchema\nexport const EthereumGasEtherchainV2WitnessConfigSchema\n = asSchema('network.xyo.blockchain.ethereum.gas.etherchain.v2.witness.config', true)\n"],"mappings":";AAAA,SAAS,iCAAAA,sCAAqC;AAC9C,SAAS,wBAAwB;AACjC,SAAS,qCAAqC;;;ACD9C,SAAS,qCAAqC;AAG9C,SAAS,uBAAuB;;;ACJhC,SAAS,UAAU,uBAAuB;AAG1C,IAAM,MAAM;AAEL,IAAM,yBAAyB,YAAsD;AAC1F,SAAO,UAAU,MAAM,gBAAgB,IAAqC,GAAG,GAAG,MAAM,MAAM,2BAA2B;AAC3H;;;ACPA,SAAS,gBAAgB;AAGlB,IAAM,6CACT,SAAS,oEAAoE,IAAI;;;AFS9E,IAAM,iCAAN,cAA6C,gBAAsD;AAAA,EACxG,OAAyB,gBAA0B,CAAC,GAAG,MAAM,eAAe,0CAA0C;AAAA,EACtH,OAAyB,sBAA8B;AAAA,EAEvD,MAAyB,iBAAqC;AAC5D,UAAM,UAA0C;AAAA,MAC9C,GAAI,MAAM,uBAAuB;AAAA,MACjC,QAAQ;AAAA,MACR,WAAW,KAAK,IAAI;AAAA,IACtB;AACA,WAAO,CAAC,OAAO;AAAA,EACjB;AACF;;;ADnBO,IAAM,gCAAgC,MAC3C;AAAA,EACE,EAAE,UAAU,EAAE,CAACC,8BAA6B,GAAG,EAAE,GAAG,QAAQ,iBAAiB;AAAA,EAC7E;AAAA,IACE,SAAS,OAAO,WAAW;AACzB,aAAQ,MAAM,+BAA+B,OAAO,MAAM;AAAA,IAC5D;AAAA,EACF;AACF;","names":["EthereumGasEtherchainV2Schema","EthereumGasEtherchainV2Schema"]}
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../src/Plugin.ts", "../../src/Witness.ts", "../../src/lib/getV2GasFromEtherchain.ts", "../../src/Schema.ts"],
4
+ "sourcesContent": ["import { EthereumGasEtherchainV2Schema } from '@xyo-network/etherchain-ethereum-gas-v2-payload-plugin'\nimport { PayloadSetSchema } from '@xyo-network/payload-model'\nimport { createPayloadSetWitnessPlugin } from '@xyo-network/sdk-js'\n\nimport { EtherchainEthereumGasWitnessV2 } from './Witness.ts'\n\nexport const EthereumGasEtherchainV2Plugin = () =>\n createPayloadSetWitnessPlugin(\n { required: { [EthereumGasEtherchainV2Schema]: 1 }, schema: PayloadSetSchema },\n {\n witness: async (params) => {\n return (await EtherchainEthereumGasWitnessV2.create(params)) as EtherchainEthereumGasWitnessV2\n },\n },\n )\n", "import type { EthereumGasEtherchainV2Payload } from '@xyo-network/etherchain-ethereum-gas-v2-payload-plugin'\nimport { EthereumGasEtherchainV2Schema } from '@xyo-network/etherchain-ethereum-gas-v2-payload-plugin'\nimport type { AnyConfigSchema } from '@xyo-network/module-model'\nimport type { Payload, Schema } from '@xyo-network/payload-model'\nimport { AbstractWitness } from '@xyo-network/witness-abstract'\nimport type { WitnessParams } from '@xyo-network/witness-model'\n\nimport type { EthereumGasEtherchainV2WitnessConfig } from './Config.ts'\nimport { getV2GasFromEtherchain } from './lib/index.ts'\nimport { EthereumGasEtherchainV2WitnessConfigSchema } from './Schema.ts'\n\nexport type EtherchainEthereumGasWitnessV2Params = WitnessParams<AnyConfigSchema<EthereumGasEtherchainV2WitnessConfig>>\n\nexport class EtherchainEthereumGasWitnessV2 extends AbstractWitness<EtherchainEthereumGasWitnessV2Params> {\n static override readonly configSchemas: Schema[] = [...super.configSchemas, EthereumGasEtherchainV2WitnessConfigSchema]\n static override readonly defaultConfigSchema: Schema = EthereumGasEtherchainV2WitnessConfigSchema\n\n protected override async observeHandler(): Promise<Payload[]> {\n const payload: EthereumGasEtherchainV2Payload = {\n ...(await getV2GasFromEtherchain()),\n schema: EthereumGasEtherchainV2Schema,\n timestamp: Date.now(),\n }\n return [payload]\n }\n}\n", "import { assertEx, fetchJsonClient } from '@xylabs/sdk-js'\nimport type { EthereumGasEtherchainV2Response } from '@xyo-network/etherchain-ethereum-gas-v2-payload-plugin'\n\nconst url = 'https://beaconcha.in/api/v1/execution/gasnow'\n\nexport const getV2GasFromEtherchain = async (): Promise<EthereumGasEtherchainV2Response> => {\n return assertEx((await fetchJsonClient.get<EthereumGasEtherchainV2Response>(url)).data, () => 'Empty Etherchain response')\n}\n", "import { asSchema } from '@xyo-network/payload-model'\n\nexport type EthereumGasEtherchainV2WitnessConfigSchema = typeof EthereumGasEtherchainV2WitnessConfigSchema\nexport const EthereumGasEtherchainV2WitnessConfigSchema\n = asSchema('network.xyo.blockchain.ethereum.gas.etherchain.v2.witness.config', true)\n"],
5
+ "mappings": ";AAAA,SAAS,iCAAAA,sCAAqC;AAC9C,SAAS,wBAAwB;AACjC,SAAS,qCAAqC;;;ACD9C,SAAS,qCAAqC;AAG9C,SAAS,uBAAuB;;;ACJhC,SAAS,UAAU,uBAAuB;AAG1C,IAAM,MAAM;AAEL,IAAM,yBAAyB,YAAsD;AAC1F,SAAO,UAAU,MAAM,gBAAgB,IAAqC,GAAG,GAAG,MAAM,MAAM,2BAA2B;AAC3H;;;ACPA,SAAS,gBAAgB;AAGlB,IAAM,6CACT,SAAS,oEAAoE,IAAI;;;AFS9E,IAAM,iCAAN,cAA6C,gBAAsD;AAAA,EACxG,OAAyB,gBAA0B,CAAC,GAAG,MAAM,eAAe,0CAA0C;AAAA,EACtH,OAAyB,sBAA8B;AAAA,EAEvD,MAAyB,iBAAqC;AAC5D,UAAM,UAA0C;AAAA,MAC9C,GAAI,MAAM,uBAAuB;AAAA,MACjC,QAAQ;AAAA,MACR,WAAW,KAAK,IAAI;AAAA,IACtB;AACA,WAAO,CAAC,OAAO;AAAA,EACjB;AACF;;;ADnBO,IAAM,gCAAgC,MAC3C;AAAA,EACE,EAAE,UAAU,EAAE,CAACC,8BAA6B,GAAG,EAAE,GAAG,QAAQ,iBAAiB;AAAA,EAC7E;AAAA,IACE,SAAS,OAAO,WAAW;AACzB,aAAQ,MAAM,+BAA+B,OAAO,MAAM;AAAA,IAC5D;AAAA,EACF;AACF;",
6
+ "names": ["EthereumGasEtherchainV2Schema", "EthereumGasEtherchainV2Schema"]
7
+ }
@@ -47,4 +47,4 @@ export {
47
47
  EthereumGasEtherchainV2WitnessConfigSchema,
48
48
  EthereumGasEtherchainV2Plugin as default
49
49
  };
50
- //# sourceMappingURL=index.mjs.map
50
+ //# sourceMappingURL=index.mjs.map
@@ -1 +1,7 @@
1
- {"version":3,"sources":["../../src/Plugin.ts","../../src/Witness.ts","../../src/lib/getV2GasFromEtherchain.ts","../../src/Schema.ts"],"sourcesContent":["import { EthereumGasEtherchainV2Schema } from '@xyo-network/etherchain-ethereum-gas-v2-payload-plugin'\nimport { PayloadSetSchema } from '@xyo-network/payload-model'\nimport { createPayloadSetWitnessPlugin } from '@xyo-network/sdk-js'\n\nimport { EtherchainEthereumGasWitnessV2 } from './Witness.ts'\n\nexport const EthereumGasEtherchainV2Plugin = () =>\n createPayloadSetWitnessPlugin(\n { required: { [EthereumGasEtherchainV2Schema]: 1 }, schema: PayloadSetSchema },\n {\n witness: async (params) => {\n return (await EtherchainEthereumGasWitnessV2.create(params)) as EtherchainEthereumGasWitnessV2\n },\n },\n )\n","import type { EthereumGasEtherchainV2Payload } from '@xyo-network/etherchain-ethereum-gas-v2-payload-plugin'\nimport { EthereumGasEtherchainV2Schema } from '@xyo-network/etherchain-ethereum-gas-v2-payload-plugin'\nimport type { AnyConfigSchema } from '@xyo-network/module-model'\nimport type { Payload, Schema } from '@xyo-network/payload-model'\nimport { AbstractWitness } from '@xyo-network/witness-abstract'\nimport type { WitnessParams } from '@xyo-network/witness-model'\n\nimport type { EthereumGasEtherchainV2WitnessConfig } from './Config.ts'\nimport { getV2GasFromEtherchain } from './lib/index.ts'\nimport { EthereumGasEtherchainV2WitnessConfigSchema } from './Schema.ts'\n\nexport type EtherchainEthereumGasWitnessV2Params = WitnessParams<AnyConfigSchema<EthereumGasEtherchainV2WitnessConfig>>\n\nexport class EtherchainEthereumGasWitnessV2 extends AbstractWitness<EtherchainEthereumGasWitnessV2Params> {\n static override readonly configSchemas: Schema[] = [...super.configSchemas, EthereumGasEtherchainV2WitnessConfigSchema]\n static override readonly defaultConfigSchema: Schema = EthereumGasEtherchainV2WitnessConfigSchema\n\n protected override async observeHandler(): Promise<Payload[]> {\n const payload: EthereumGasEtherchainV2Payload = {\n ...(await getV2GasFromEtherchain()),\n schema: EthereumGasEtherchainV2Schema,\n timestamp: Date.now(),\n }\n return [payload]\n }\n}\n","import { assertEx, fetchJsonClient } from '@xylabs/sdk-js'\nimport type { EthereumGasEtherchainV2Response } from '@xyo-network/etherchain-ethereum-gas-v2-payload-plugin'\n\nconst url = 'https://beaconcha.in/api/v1/execution/gasnow'\n\nexport const getV2GasFromEtherchain = async (): Promise<EthereumGasEtherchainV2Response> => {\n return assertEx((await fetchJsonClient.get<EthereumGasEtherchainV2Response>(url)).data, () => 'Empty Etherchain response')\n}\n","import { asSchema } from '@xyo-network/payload-model'\n\nexport type EthereumGasEtherchainV2WitnessConfigSchema = typeof EthereumGasEtherchainV2WitnessConfigSchema\nexport const EthereumGasEtherchainV2WitnessConfigSchema\n = asSchema('network.xyo.blockchain.ethereum.gas.etherchain.v2.witness.config', true)\n"],"mappings":";AAAA,SAAS,iCAAAA,sCAAqC;AAC9C,SAAS,wBAAwB;AACjC,SAAS,qCAAqC;;;ACD9C,SAAS,qCAAqC;AAG9C,SAAS,uBAAuB;;;ACJhC,SAAS,UAAU,uBAAuB;AAG1C,IAAM,MAAM;AAEL,IAAM,yBAAyB,YAAsD;AAC1F,SAAO,UAAU,MAAM,gBAAgB,IAAqC,GAAG,GAAG,MAAM,MAAM,2BAA2B;AAC3H;;;ACPA,SAAS,gBAAgB;AAGlB,IAAM,6CACT,SAAS,oEAAoE,IAAI;;;AFS9E,IAAM,iCAAN,cAA6C,gBAAsD;AAAA,EACxG,OAAyB,gBAA0B,CAAC,GAAG,MAAM,eAAe,0CAA0C;AAAA,EACtH,OAAyB,sBAA8B;AAAA,EAEvD,MAAyB,iBAAqC;AAC5D,UAAM,UAA0C;AAAA,MAC9C,GAAI,MAAM,uBAAuB;AAAA,MACjC,QAAQ;AAAA,MACR,WAAW,KAAK,IAAI;AAAA,IACtB;AACA,WAAO,CAAC,OAAO;AAAA,EACjB;AACF;;;ADnBO,IAAM,gCAAgC,MAC3C;AAAA,EACE,EAAE,UAAU,EAAE,CAACC,8BAA6B,GAAG,EAAE,GAAG,QAAQ,iBAAiB;AAAA,EAC7E;AAAA,IACE,SAAS,OAAO,WAAW;AACzB,aAAQ,MAAM,+BAA+B,OAAO,MAAM;AAAA,IAC5D;AAAA,EACF;AACF;","names":["EthereumGasEtherchainV2Schema","EthereumGasEtherchainV2Schema"]}
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../src/Plugin.ts", "../../src/Witness.ts", "../../src/lib/getV2GasFromEtherchain.ts", "../../src/Schema.ts"],
4
+ "sourcesContent": ["import { EthereumGasEtherchainV2Schema } from '@xyo-network/etherchain-ethereum-gas-v2-payload-plugin'\nimport { PayloadSetSchema } from '@xyo-network/payload-model'\nimport { createPayloadSetWitnessPlugin } from '@xyo-network/sdk-js'\n\nimport { EtherchainEthereumGasWitnessV2 } from './Witness.ts'\n\nexport const EthereumGasEtherchainV2Plugin = () =>\n createPayloadSetWitnessPlugin(\n { required: { [EthereumGasEtherchainV2Schema]: 1 }, schema: PayloadSetSchema },\n {\n witness: async (params) => {\n return (await EtherchainEthereumGasWitnessV2.create(params)) as EtherchainEthereumGasWitnessV2\n },\n },\n )\n", "import type { EthereumGasEtherchainV2Payload } from '@xyo-network/etherchain-ethereum-gas-v2-payload-plugin'\nimport { EthereumGasEtherchainV2Schema } from '@xyo-network/etherchain-ethereum-gas-v2-payload-plugin'\nimport type { AnyConfigSchema } from '@xyo-network/module-model'\nimport type { Payload, Schema } from '@xyo-network/payload-model'\nimport { AbstractWitness } from '@xyo-network/witness-abstract'\nimport type { WitnessParams } from '@xyo-network/witness-model'\n\nimport type { EthereumGasEtherchainV2WitnessConfig } from './Config.ts'\nimport { getV2GasFromEtherchain } from './lib/index.ts'\nimport { EthereumGasEtherchainV2WitnessConfigSchema } from './Schema.ts'\n\nexport type EtherchainEthereumGasWitnessV2Params = WitnessParams<AnyConfigSchema<EthereumGasEtherchainV2WitnessConfig>>\n\nexport class EtherchainEthereumGasWitnessV2 extends AbstractWitness<EtherchainEthereumGasWitnessV2Params> {\n static override readonly configSchemas: Schema[] = [...super.configSchemas, EthereumGasEtherchainV2WitnessConfigSchema]\n static override readonly defaultConfigSchema: Schema = EthereumGasEtherchainV2WitnessConfigSchema\n\n protected override async observeHandler(): Promise<Payload[]> {\n const payload: EthereumGasEtherchainV2Payload = {\n ...(await getV2GasFromEtherchain()),\n schema: EthereumGasEtherchainV2Schema,\n timestamp: Date.now(),\n }\n return [payload]\n }\n}\n", "import { assertEx, fetchJsonClient } from '@xylabs/sdk-js'\nimport type { EthereumGasEtherchainV2Response } from '@xyo-network/etherchain-ethereum-gas-v2-payload-plugin'\n\nconst url = 'https://beaconcha.in/api/v1/execution/gasnow'\n\nexport const getV2GasFromEtherchain = async (): Promise<EthereumGasEtherchainV2Response> => {\n return assertEx((await fetchJsonClient.get<EthereumGasEtherchainV2Response>(url)).data, () => 'Empty Etherchain response')\n}\n", "import { asSchema } from '@xyo-network/payload-model'\n\nexport type EthereumGasEtherchainV2WitnessConfigSchema = typeof EthereumGasEtherchainV2WitnessConfigSchema\nexport const EthereumGasEtherchainV2WitnessConfigSchema\n = asSchema('network.xyo.blockchain.ethereum.gas.etherchain.v2.witness.config', true)\n"],
5
+ "mappings": ";AAAA,SAAS,iCAAAA,sCAAqC;AAC9C,SAAS,wBAAwB;AACjC,SAAS,qCAAqC;;;ACD9C,SAAS,qCAAqC;AAG9C,SAAS,uBAAuB;;;ACJhC,SAAS,UAAU,uBAAuB;AAG1C,IAAM,MAAM;AAEL,IAAM,yBAAyB,YAAsD;AAC1F,SAAO,UAAU,MAAM,gBAAgB,IAAqC,GAAG,GAAG,MAAM,MAAM,2BAA2B;AAC3H;;;ACPA,SAAS,gBAAgB;AAGlB,IAAM,6CACT,SAAS,oEAAoE,IAAI;;;AFS9E,IAAM,iCAAN,cAA6C,gBAAsD;AAAA,EACxG,OAAyB,gBAA0B,CAAC,GAAG,MAAM,eAAe,0CAA0C;AAAA,EACtH,OAAyB,sBAA8B;AAAA,EAEvD,MAAyB,iBAAqC;AAC5D,UAAM,UAA0C;AAAA,MAC9C,GAAI,MAAM,uBAAuB;AAAA,MACjC,QAAQ;AAAA,MACR,WAAW,KAAK,IAAI;AAAA,IACtB;AACA,WAAO,CAAC,OAAO;AAAA,EACjB;AACF;;;ADnBO,IAAM,gCAAgC,MAC3C;AAAA,EACE,EAAE,UAAU,EAAE,CAACC,8BAA6B,GAAG,EAAE,GAAG,QAAQ,iBAAiB;AAAA,EAC7E;AAAA,IACE,SAAS,OAAO,WAAW;AACzB,aAAQ,MAAM,+BAA+B,OAAO,MAAM;AAAA,IAC5D;AAAA,EACF;AACF;",
6
+ "names": ["EthereumGasEtherchainV2Schema", "EthereumGasEtherchainV2Schema"]
7
+ }
@@ -47,4 +47,4 @@ export {
47
47
  EthereumGasEtherchainV2WitnessConfigSchema,
48
48
  EthereumGasEtherchainV2Plugin as default
49
49
  };
50
- //# sourceMappingURL=index.mjs.map
50
+ //# sourceMappingURL=index.mjs.map
@@ -1 +1,7 @@
1
- {"version":3,"sources":["../../src/Plugin.ts","../../src/Witness.ts","../../src/lib/getV2GasFromEtherchain.ts","../../src/Schema.ts"],"sourcesContent":["import { EthereumGasEtherchainV2Schema } from '@xyo-network/etherchain-ethereum-gas-v2-payload-plugin'\nimport { PayloadSetSchema } from '@xyo-network/payload-model'\nimport { createPayloadSetWitnessPlugin } from '@xyo-network/sdk-js'\n\nimport { EtherchainEthereumGasWitnessV2 } from './Witness.ts'\n\nexport const EthereumGasEtherchainV2Plugin = () =>\n createPayloadSetWitnessPlugin(\n { required: { [EthereumGasEtherchainV2Schema]: 1 }, schema: PayloadSetSchema },\n {\n witness: async (params) => {\n return (await EtherchainEthereumGasWitnessV2.create(params)) as EtherchainEthereumGasWitnessV2\n },\n },\n )\n","import type { EthereumGasEtherchainV2Payload } from '@xyo-network/etherchain-ethereum-gas-v2-payload-plugin'\nimport { EthereumGasEtherchainV2Schema } from '@xyo-network/etherchain-ethereum-gas-v2-payload-plugin'\nimport type { AnyConfigSchema } from '@xyo-network/module-model'\nimport type { Payload, Schema } from '@xyo-network/payload-model'\nimport { AbstractWitness } from '@xyo-network/witness-abstract'\nimport type { WitnessParams } from '@xyo-network/witness-model'\n\nimport type { EthereumGasEtherchainV2WitnessConfig } from './Config.ts'\nimport { getV2GasFromEtherchain } from './lib/index.ts'\nimport { EthereumGasEtherchainV2WitnessConfigSchema } from './Schema.ts'\n\nexport type EtherchainEthereumGasWitnessV2Params = WitnessParams<AnyConfigSchema<EthereumGasEtherchainV2WitnessConfig>>\n\nexport class EtherchainEthereumGasWitnessV2 extends AbstractWitness<EtherchainEthereumGasWitnessV2Params> {\n static override readonly configSchemas: Schema[] = [...super.configSchemas, EthereumGasEtherchainV2WitnessConfigSchema]\n static override readonly defaultConfigSchema: Schema = EthereumGasEtherchainV2WitnessConfigSchema\n\n protected override async observeHandler(): Promise<Payload[]> {\n const payload: EthereumGasEtherchainV2Payload = {\n ...(await getV2GasFromEtherchain()),\n schema: EthereumGasEtherchainV2Schema,\n timestamp: Date.now(),\n }\n return [payload]\n }\n}\n","import { assertEx, fetchJsonClient } from '@xylabs/sdk-js'\nimport type { EthereumGasEtherchainV2Response } from '@xyo-network/etherchain-ethereum-gas-v2-payload-plugin'\n\nconst url = 'https://beaconcha.in/api/v1/execution/gasnow'\n\nexport const getV2GasFromEtherchain = async (): Promise<EthereumGasEtherchainV2Response> => {\n return assertEx((await fetchJsonClient.get<EthereumGasEtherchainV2Response>(url)).data, () => 'Empty Etherchain response')\n}\n","import { asSchema } from '@xyo-network/payload-model'\n\nexport type EthereumGasEtherchainV2WitnessConfigSchema = typeof EthereumGasEtherchainV2WitnessConfigSchema\nexport const EthereumGasEtherchainV2WitnessConfigSchema\n = asSchema('network.xyo.blockchain.ethereum.gas.etherchain.v2.witness.config', true)\n"],"mappings":";AAAA,SAAS,iCAAAA,sCAAqC;AAC9C,SAAS,wBAAwB;AACjC,SAAS,qCAAqC;;;ACD9C,SAAS,qCAAqC;AAG9C,SAAS,uBAAuB;;;ACJhC,SAAS,UAAU,uBAAuB;AAG1C,IAAM,MAAM;AAEL,IAAM,yBAAyB,YAAsD;AAC1F,SAAO,UAAU,MAAM,gBAAgB,IAAqC,GAAG,GAAG,MAAM,MAAM,2BAA2B;AAC3H;;;ACPA,SAAS,gBAAgB;AAGlB,IAAM,6CACT,SAAS,oEAAoE,IAAI;;;AFS9E,IAAM,iCAAN,cAA6C,gBAAsD;AAAA,EACxG,OAAyB,gBAA0B,CAAC,GAAG,MAAM,eAAe,0CAA0C;AAAA,EACtH,OAAyB,sBAA8B;AAAA,EAEvD,MAAyB,iBAAqC;AAC5D,UAAM,UAA0C;AAAA,MAC9C,GAAI,MAAM,uBAAuB;AAAA,MACjC,QAAQ;AAAA,MACR,WAAW,KAAK,IAAI;AAAA,IACtB;AACA,WAAO,CAAC,OAAO;AAAA,EACjB;AACF;;;ADnBO,IAAM,gCAAgC,MAC3C;AAAA,EACE,EAAE,UAAU,EAAE,CAACC,8BAA6B,GAAG,EAAE,GAAG,QAAQ,iBAAiB;AAAA,EAC7E;AAAA,IACE,SAAS,OAAO,WAAW;AACzB,aAAQ,MAAM,+BAA+B,OAAO,MAAM;AAAA,IAC5D;AAAA,EACF;AACF;","names":["EthereumGasEtherchainV2Schema","EthereumGasEtherchainV2Schema"]}
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../src/Plugin.ts", "../../src/Witness.ts", "../../src/lib/getV2GasFromEtherchain.ts", "../../src/Schema.ts"],
4
+ "sourcesContent": ["import { EthereumGasEtherchainV2Schema } from '@xyo-network/etherchain-ethereum-gas-v2-payload-plugin'\nimport { PayloadSetSchema } from '@xyo-network/payload-model'\nimport { createPayloadSetWitnessPlugin } from '@xyo-network/sdk-js'\n\nimport { EtherchainEthereumGasWitnessV2 } from './Witness.ts'\n\nexport const EthereumGasEtherchainV2Plugin = () =>\n createPayloadSetWitnessPlugin(\n { required: { [EthereumGasEtherchainV2Schema]: 1 }, schema: PayloadSetSchema },\n {\n witness: async (params) => {\n return (await EtherchainEthereumGasWitnessV2.create(params)) as EtherchainEthereumGasWitnessV2\n },\n },\n )\n", "import type { EthereumGasEtherchainV2Payload } from '@xyo-network/etherchain-ethereum-gas-v2-payload-plugin'\nimport { EthereumGasEtherchainV2Schema } from '@xyo-network/etherchain-ethereum-gas-v2-payload-plugin'\nimport type { AnyConfigSchema } from '@xyo-network/module-model'\nimport type { Payload, Schema } from '@xyo-network/payload-model'\nimport { AbstractWitness } from '@xyo-network/witness-abstract'\nimport type { WitnessParams } from '@xyo-network/witness-model'\n\nimport type { EthereumGasEtherchainV2WitnessConfig } from './Config.ts'\nimport { getV2GasFromEtherchain } from './lib/index.ts'\nimport { EthereumGasEtherchainV2WitnessConfigSchema } from './Schema.ts'\n\nexport type EtherchainEthereumGasWitnessV2Params = WitnessParams<AnyConfigSchema<EthereumGasEtherchainV2WitnessConfig>>\n\nexport class EtherchainEthereumGasWitnessV2 extends AbstractWitness<EtherchainEthereumGasWitnessV2Params> {\n static override readonly configSchemas: Schema[] = [...super.configSchemas, EthereumGasEtherchainV2WitnessConfigSchema]\n static override readonly defaultConfigSchema: Schema = EthereumGasEtherchainV2WitnessConfigSchema\n\n protected override async observeHandler(): Promise<Payload[]> {\n const payload: EthereumGasEtherchainV2Payload = {\n ...(await getV2GasFromEtherchain()),\n schema: EthereumGasEtherchainV2Schema,\n timestamp: Date.now(),\n }\n return [payload]\n }\n}\n", "import { assertEx, fetchJsonClient } from '@xylabs/sdk-js'\nimport type { EthereumGasEtherchainV2Response } from '@xyo-network/etherchain-ethereum-gas-v2-payload-plugin'\n\nconst url = 'https://beaconcha.in/api/v1/execution/gasnow'\n\nexport const getV2GasFromEtherchain = async (): Promise<EthereumGasEtherchainV2Response> => {\n return assertEx((await fetchJsonClient.get<EthereumGasEtherchainV2Response>(url)).data, () => 'Empty Etherchain response')\n}\n", "import { asSchema } from '@xyo-network/payload-model'\n\nexport type EthereumGasEtherchainV2WitnessConfigSchema = typeof EthereumGasEtherchainV2WitnessConfigSchema\nexport const EthereumGasEtherchainV2WitnessConfigSchema\n = asSchema('network.xyo.blockchain.ethereum.gas.etherchain.v2.witness.config', true)\n"],
5
+ "mappings": ";AAAA,SAAS,iCAAAA,sCAAqC;AAC9C,SAAS,wBAAwB;AACjC,SAAS,qCAAqC;;;ACD9C,SAAS,qCAAqC;AAG9C,SAAS,uBAAuB;;;ACJhC,SAAS,UAAU,uBAAuB;AAG1C,IAAM,MAAM;AAEL,IAAM,yBAAyB,YAAsD;AAC1F,SAAO,UAAU,MAAM,gBAAgB,IAAqC,GAAG,GAAG,MAAM,MAAM,2BAA2B;AAC3H;;;ACPA,SAAS,gBAAgB;AAGlB,IAAM,6CACT,SAAS,oEAAoE,IAAI;;;AFS9E,IAAM,iCAAN,cAA6C,gBAAsD;AAAA,EACxG,OAAyB,gBAA0B,CAAC,GAAG,MAAM,eAAe,0CAA0C;AAAA,EACtH,OAAyB,sBAA8B;AAAA,EAEvD,MAAyB,iBAAqC;AAC5D,UAAM,UAA0C;AAAA,MAC9C,GAAI,MAAM,uBAAuB;AAAA,MACjC,QAAQ;AAAA,MACR,WAAW,KAAK,IAAI;AAAA,IACtB;AACA,WAAO,CAAC,OAAO;AAAA,EACjB;AACF;;;ADnBO,IAAM,gCAAgC,MAC3C;AAAA,EACE,EAAE,UAAU,EAAE,CAACC,8BAA6B,GAAG,EAAE,GAAG,QAAQ,iBAAiB;AAAA,EAC7E;AAAA,IACE,SAAS,OAAO,WAAW;AACzB,aAAQ,MAAM,+BAA+B,OAAO,MAAM;AAAA,IAC5D;AAAA,EACF;AACF;",
6
+ "names": ["EthereumGasEtherchainV2Schema", "EthereumGasEtherchainV2Schema"]
7
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xyo-network/etherchain-ethereum-gas-v2-plugin",
3
- "version": "5.5.1",
3
+ "version": "6.0.0",
4
4
  "description": "Typescript/Javascript Plugins for XYO Platform",
5
5
  "homepage": "https://xyo.network",
6
6
  "bugs": {
@@ -31,7 +31,7 @@
31
31
  "README.md"
32
32
  ],
33
33
  "dependencies": {
34
- "@xyo-network/etherchain-ethereum-gas-v2-payload-plugin": "~5.5.1"
34
+ "@xyo-network/etherchain-ethereum-gas-v2-payload-plugin": "~6.0.0"
35
35
  },
36
36
  "devDependencies": {
37
37
  "@bitauth/libauth": "~3.0.0",
@@ -40,105 +40,105 @@
40
40
  "@opentelemetry/sdk-trace-base": "^2.7.1",
41
41
  "@scure/base": "^2.2.0",
42
42
  "@scure/bip39": "~2.2.0",
43
- "@xylabs/geo": "^5.1.1",
44
- "@xylabs/sdk-js": "^5.1.1",
45
- "@xylabs/threads": "^5.1.1",
46
- "@xylabs/toolchain": "~7.13.4",
47
- "@xylabs/tsconfig": "~7.13.4",
48
- "@xylabs/vitest-extended": "~5.1.1",
49
- "@xyo-network/account": "~5.6.1",
50
- "@xyo-network/account-model": "^5.6.2",
51
- "@xyo-network/api": "~5.6.1",
52
- "@xyo-network/api-models": "~5.6.2",
53
- "@xyo-network/boundwitness-builder": "~5.6.1",
54
- "@xyo-network/boundwitness-model": "^5.6.2",
55
- "@xyo-network/boundwitness-wrapper": "~5.6.1",
56
- "@xyo-network/config-payload-plugin": "~5.6.2",
57
- "@xyo-network/huri": "~5.6.1",
58
- "@xyo-network/manifest-model": "~5.6.2",
59
- "@xyo-network/module-model": "^5.6.3",
60
- "@xyo-network/payload-builder": "~5.6.1",
61
- "@xyo-network/payload-model": "^5.6.2",
62
- "@xyo-network/payload-plugin": "~5.6.2",
63
- "@xyo-network/payload-wrapper": "~5.6.1",
64
- "@xyo-network/query-payload-plugin": "~5.6.2",
65
- "@xyo-network/sdk-js": "^5.6.3",
66
- "@xyo-network/sdk-protocol-js": "~5.6.2",
67
- "@xyo-network/wallet": "~5.6.1",
68
- "@xyo-network/wallet-model": "~5.6.2",
69
- "@xyo-network/witness-abstract": "^5.6.3",
70
- "@xyo-network/witness-model": "^5.6.3",
43
+ "@xylabs/geo": "~6.0",
44
+ "@xylabs/sdk-js": "~6.0",
45
+ "@xylabs/threads": "~6.0",
46
+ "@xylabs/toolchain": "~8.1.1",
47
+ "@xylabs/tsconfig": "~8.1.1",
48
+ "@xylabs/vitest-extended": "~6.0.2",
49
+ "@xyo-network/account": "~6.0",
50
+ "@xyo-network/account-model": "~6.0",
51
+ "@xyo-network/api": "~6.0",
52
+ "@xyo-network/api-models": "~6.0",
53
+ "@xyo-network/boundwitness-builder": "~6.0",
54
+ "@xyo-network/boundwitness-model": "~6.0",
55
+ "@xyo-network/boundwitness-wrapper": "~6.0",
56
+ "@xyo-network/config-payload-plugin": "~6.0",
57
+ "@xyo-network/huri": "~6.0",
58
+ "@xyo-network/manifest-model": "~6.0",
59
+ "@xyo-network/module-model": "~6.0",
60
+ "@xyo-network/payload-builder": "~6.0",
61
+ "@xyo-network/payload-model": "~6.0",
62
+ "@xyo-network/payload-plugin": "~6.0",
63
+ "@xyo-network/payload-wrapper": "~6.0",
64
+ "@xyo-network/query-payload-plugin": "~6.0",
65
+ "@xyo-network/sdk-js": "~6.0",
66
+ "@xyo-network/sdk-protocol-js": "~6.0",
67
+ "@xyo-network/wallet": "~6.0",
68
+ "@xyo-network/wallet-model": "~6.0",
69
+ "@xyo-network/witness-abstract": "~6.0",
70
+ "@xyo-network/witness-model": "~6.0",
71
71
  "ajv": "^8.20.0",
72
72
  "async-mutex": "^0.5.0",
73
73
  "bn.js": "^5.2.3",
74
74
  "buffer": "^6.0.3",
75
75
  "chalk": "^5.6.2",
76
76
  "debug": "~4.4.3",
77
- "eslint": "^10.3.0",
77
+ "eslint": "^10.4.0",
78
78
  "ethers": "^6.16.0",
79
79
  "hash-wasm": "^4.12.0",
80
80
  "idb": "^8.0.3",
81
- "lru-cache": "^11.3.6",
82
- "mapbox-gl": "~3.23.1",
81
+ "lru-cache": "^11.5.0",
82
+ "mapbox-gl": "~3.24",
83
83
  "observable-fns": "~0.6.1",
84
84
  "pako": "~2.1.0",
85
85
  "store2": "~2.14.4",
86
- "typescript": "~5.9.3",
87
- "vite": "^8.0.10",
88
- "vitest": "^4.1.5",
86
+ "typescript": "~6.0.3",
87
+ "vite": "^8.0.13",
88
+ "vitest": "^4.1.7",
89
89
  "wasm-feature-detect": "~1.8.0",
90
90
  "webextension-polyfill": "^0.12.0",
91
91
  "zod": "^4.4.3"
92
92
  },
93
93
  "peerDependencies": {
94
- "@bitauth/libauth": ">=3.0.0 <3.1",
95
- "@metamask/providers": ">=22.1.1 <23",
96
- "@opentelemetry/api": ">=1.9.1 <2",
97
- "@opentelemetry/sdk-trace-base": ">=2.7.1 <3",
98
- "@scure/base": ">=2.2.0 <3",
99
- "@scure/bip39": ">=2.2.0 <2.3",
100
- "@xylabs/geo": ">=5.1.1 <6",
101
- "@xylabs/sdk-js": ">=5.1.1 <6",
102
- "@xylabs/threads": ">=5.1.1 <6",
103
- "@xyo-network/account": ">=5.6.1 <5.7",
104
- "@xyo-network/account-model": ">=5.6.2 <6",
105
- "@xyo-network/api": ">=5.6.1 <5.7",
106
- "@xyo-network/api-models": ">=5.6.2 <5.7",
107
- "@xyo-network/boundwitness-builder": ">=5.6.1 <5.7",
108
- "@xyo-network/boundwitness-model": ">=5.6.2 <6",
109
- "@xyo-network/boundwitness-wrapper": ">=5.6.1 <5.7",
110
- "@xyo-network/config-payload-plugin": ">=5.6.2 <5.7",
111
- "@xyo-network/huri": ">=5.6.1 <5.7",
112
- "@xyo-network/manifest-model": ">=5.6.2 <5.7",
113
- "@xyo-network/module-model": ">=5.6.3 <6",
114
- "@xyo-network/payload-builder": ">=5.6.1 <5.7",
115
- "@xyo-network/payload-model": ">=5.6.2 <6",
116
- "@xyo-network/payload-plugin": ">=5.6.2 <5.7",
117
- "@xyo-network/payload-wrapper": ">=5.6.1 <5.7",
118
- "@xyo-network/query-payload-plugin": ">=5.6.2 <5.7",
119
- "@xyo-network/sdk-js": ">=5.6.3 <6",
120
- "@xyo-network/sdk-protocol-js": ">=5.6.2 <5.7",
121
- "@xyo-network/wallet": ">=5.6.1 <5.7",
122
- "@xyo-network/wallet-model": ">=5.6.2 <5.7",
123
- "@xyo-network/witness-abstract": ">=5.6.3 <6",
124
- "@xyo-network/witness-model": ">=5.6.3 <6",
125
- "ajv": ">=8.20.0 <9",
126
- "async-mutex": ">=0.5.0 <1",
127
- "bn.js": ">=5.2.3 <6",
128
- "buffer": ">=6.0.3 <7",
129
- "chalk": ">=5.6.2 <6",
130
- "debug": ">=4.4.3 <4.5",
131
- "ethers": ">=6.16.0 <7",
132
- "hash-wasm": ">=4.12.0 <5",
133
- "idb": ">=8.0.3 <9",
134
- "lru-cache": ">=11.3.6 <12",
135
- "mapbox-gl": ">=3.23.1 <3.24",
136
- "observable-fns": ">=0.6.1 <0.7",
137
- "pako": ">=2.1.0 <2.2",
138
- "store2": ">=2.14.4 <2.15",
139
- "wasm-feature-detect": ">=1.8.0 <1.9",
140
- "webextension-polyfill": ">=0.12.0 <1",
141
- "zod": ">=4.4.3 <5"
94
+ "@bitauth/libauth": "~3.0",
95
+ "@metamask/providers": "^22.1",
96
+ "@opentelemetry/api": "^1.9",
97
+ "@opentelemetry/sdk-trace-base": "^2.7",
98
+ "@scure/base": "^2.2",
99
+ "@scure/bip39": "~2.2",
100
+ "@xylabs/geo": "^6.0",
101
+ "@xylabs/sdk-js": "^6.0",
102
+ "@xylabs/threads": "^6.0",
103
+ "@xyo-network/account": "~6.0",
104
+ "@xyo-network/account-model": "^6.0",
105
+ "@xyo-network/api": "~6.0",
106
+ "@xyo-network/api-models": "~6.0",
107
+ "@xyo-network/boundwitness-builder": "~6.0",
108
+ "@xyo-network/boundwitness-model": "^6.0",
109
+ "@xyo-network/boundwitness-wrapper": "~6.0",
110
+ "@xyo-network/config-payload-plugin": "~6.0",
111
+ "@xyo-network/huri": "~6.0",
112
+ "@xyo-network/manifest-model": "~6.0",
113
+ "@xyo-network/module-model": "^6.0",
114
+ "@xyo-network/payload-builder": "~6.0",
115
+ "@xyo-network/payload-model": "^6.0",
116
+ "@xyo-network/payload-plugin": "~6.0",
117
+ "@xyo-network/payload-wrapper": "~6.0",
118
+ "@xyo-network/query-payload-plugin": "~6.0",
119
+ "@xyo-network/sdk-js": "^6.0",
120
+ "@xyo-network/sdk-protocol-js": "~6.0",
121
+ "@xyo-network/wallet": "~6.0",
122
+ "@xyo-network/wallet-model": "~6.0",
123
+ "@xyo-network/witness-abstract": "^6.0",
124
+ "@xyo-network/witness-model": "^6.0",
125
+ "ajv": "^8.20",
126
+ "async-mutex": "^0.5",
127
+ "bn.js": "^5.2",
128
+ "buffer": "^6.0",
129
+ "chalk": "^5.6",
130
+ "debug": "~4.4",
131
+ "ethers": "^6.16",
132
+ "hash-wasm": "^4.12",
133
+ "idb": "^8.0",
134
+ "lru-cache": "^11.3",
135
+ "mapbox-gl": "~3.24",
136
+ "observable-fns": "~0.6",
137
+ "pako": "~2.1",
138
+ "store2": "~2.14",
139
+ "wasm-feature-detect": "~1.8",
140
+ "webextension-polyfill": "^0.12",
141
+ "zod": "^4.4"
142
142
  },
143
143
  "publishConfig": {
144
144
  "access": "public"