@xyo-network/etherchain-ethereum-gas-v2-plugin 3.4.2 → 3.4.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (49) hide show
  1. package/dist/browser/Config.d.ts +6 -0
  2. package/dist/browser/Config.d.ts.map +1 -0
  3. package/dist/browser/Plugin.d.ts +12 -0
  4. package/dist/browser/Plugin.d.ts.map +1 -0
  5. package/dist/browser/Schema.d.ts +3 -0
  6. package/dist/browser/Schema.d.ts.map +1 -0
  7. package/dist/browser/Witness.d.ts +12 -0
  8. package/dist/browser/Witness.d.ts.map +1 -0
  9. package/dist/browser/index.d.ts +5 -46
  10. package/dist/browser/index.d.ts.map +1 -0
  11. package/dist/browser/index.mjs.map +1 -1
  12. package/dist/browser/lib/getV2GasFromEtherchain.d.ts +3 -0
  13. package/dist/browser/lib/getV2GasFromEtherchain.d.ts.map +1 -0
  14. package/dist/browser/lib/index.d.ts +2 -0
  15. package/dist/browser/lib/index.d.ts.map +1 -0
  16. package/dist/neutral/Config.d.ts +6 -0
  17. package/dist/neutral/Config.d.ts.map +1 -0
  18. package/dist/neutral/Plugin.d.ts +12 -0
  19. package/dist/neutral/Plugin.d.ts.map +1 -0
  20. package/dist/neutral/Schema.d.ts +3 -0
  21. package/dist/neutral/Schema.d.ts.map +1 -0
  22. package/dist/neutral/Witness.d.ts +12 -0
  23. package/dist/neutral/Witness.d.ts.map +1 -0
  24. package/dist/neutral/index.d.ts +5 -46
  25. package/dist/neutral/index.d.ts.map +1 -0
  26. package/dist/neutral/index.mjs.map +1 -1
  27. package/dist/neutral/lib/getV2GasFromEtherchain.d.ts +3 -0
  28. package/dist/neutral/lib/getV2GasFromEtherchain.d.ts.map +1 -0
  29. package/dist/neutral/lib/index.d.ts +2 -0
  30. package/dist/neutral/lib/index.d.ts.map +1 -0
  31. package/dist/node/Config.d.ts +6 -0
  32. package/dist/node/Config.d.ts.map +1 -0
  33. package/dist/node/Plugin.d.ts +12 -0
  34. package/dist/node/Plugin.d.ts.map +1 -0
  35. package/dist/node/Schema.d.ts +3 -0
  36. package/dist/node/Schema.d.ts.map +1 -0
  37. package/dist/node/Witness.d.ts +12 -0
  38. package/dist/node/Witness.d.ts.map +1 -0
  39. package/dist/node/index.d.ts +5 -46
  40. package/dist/node/index.d.ts.map +1 -0
  41. package/dist/node/index.mjs.map +1 -1
  42. package/dist/node/lib/getV2GasFromEtherchain.d.ts +3 -0
  43. package/dist/node/lib/getV2GasFromEtherchain.d.ts.map +1 -0
  44. package/dist/node/lib/index.d.ts +2 -0
  45. package/dist/node/lib/index.d.ts.map +1 -0
  46. package/package.json +12 -12
  47. package/src/Config.ts +2 -2
  48. package/src/Witness.ts +5 -6
  49. package/src/lib/getV2GasFromEtherchain.ts +1 -1
@@ -0,0 +1,6 @@
1
+ import { WitnessConfig } from '@xyo-network/witness-model';
2
+ import { EthereumGasEtherchainV2WitnessConfigSchema } from './Schema.ts';
3
+ export type EthereumGasEtherchainV2WitnessConfig = WitnessConfig<{
4
+ schema: EthereumGasEtherchainV2WitnessConfigSchema;
5
+ }>;
6
+ //# sourceMappingURL=Config.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Config.d.ts","sourceRoot":"","sources":["../../src/Config.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,4BAA4B,CAAA;AAE1D,OAAO,EAAE,0CAA0C,EAAE,MAAM,aAAa,CAAA;AAExE,MAAM,MAAM,oCAAoC,GAAG,aAAa,CAAC;IAC/D,MAAM,EAAE,0CAA0C,CAAA;CACnD,CAAC,CAAA"}
@@ -0,0 +1,12 @@
1
+ export declare const EthereumGasEtherchainV2Plugin: () => import("@xyo-network/payloadset-plugin").PayloadSetWitnessPlugin<import("@xyo-network/witness-model").WitnessModule<import(".store/@xylabs-object-npm-4.5.1-e31c389195/package").BaseParamsFields & {
2
+ account?: import(".store/@xyo-network-account-model-virtual-26592e0d6e/package").AccountInstance | "random";
3
+ addToResolvers?: boolean;
4
+ additionalSigners?: import(".store/@xyo-network-account-model-virtual-26592e0d6e/package").AccountInstance[];
5
+ allowNameResolution?: boolean;
6
+ config: import("@xyo-network/module-model").AnyConfigSchema<import("@xyo-network/witness-model").WitnessConfig>;
7
+ ephemeralQueryAccountEnabled?: boolean;
8
+ moduleIdentifierTransformers?: import("@xyo-network/module-model").ModuleIdentifierTransformer[];
9
+ privateChildren?: import("@xyo-network/module-model").ModuleInstance[];
10
+ publicChildren?: import("@xyo-network/module-model").ModuleInstance[];
11
+ }, import("@xyo-network/witness-model").WitnessModuleEventData>>;
12
+ //# sourceMappingURL=Plugin.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Plugin.d.ts","sourceRoot":"","sources":["../../src/Plugin.ts"],"names":[],"mappings":"AAMA,eAAO,MAAM,6BAA6B;;;;;;;;;;gEAQvC,CAAA"}
@@ -0,0 +1,3 @@
1
+ export type EthereumGasEtherchainV2WitnessConfigSchema = 'network.xyo.blockchain.ethereum.gas.etherchain.v2.witness.config';
2
+ export declare const EthereumGasEtherchainV2WitnessConfigSchema: EthereumGasEtherchainV2WitnessConfigSchema;
3
+ //# sourceMappingURL=Schema.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Schema.d.ts","sourceRoot":"","sources":["../../src/Schema.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,0CAA0C,GAAG,kEAAkE,CAAA;AAC3H,eAAO,MAAM,0CAA0C,EAAE,0CACa,CAAA"}
@@ -0,0 +1,12 @@
1
+ import { AbstractWitness } from '@xyo-network/abstract-witness';
2
+ import { AnyConfigSchema } from '@xyo-network/module-model';
3
+ import { Payload, Schema } from '@xyo-network/payload-model';
4
+ import { WitnessParams } from '@xyo-network/witness-model';
5
+ import { EthereumGasEtherchainV2WitnessConfig } from './Config.ts';
6
+ export type EtherchainEthereumGasWitnessV2Params = WitnessParams<AnyConfigSchema<EthereumGasEtherchainV2WitnessConfig>>;
7
+ export declare class EtherchainEthereumGasWitnessV2 extends AbstractWitness<EtherchainEthereumGasWitnessV2Params> {
8
+ static readonly configSchemas: Schema[];
9
+ static readonly defaultConfigSchema: Schema;
10
+ protected observeHandler(): Promise<Payload[]>;
11
+ }
12
+ //# sourceMappingURL=Witness.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Witness.d.ts","sourceRoot":"","sources":["../../src/Witness.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,+BAA+B,CAAA;AAE/D,OAAO,EAAE,eAAe,EAAE,MAAM,2BAA2B,CAAA;AAC3D,OAAO,EAAE,OAAO,EAAE,MAAM,EAAE,MAAM,4BAA4B,CAAA;AAC5D,OAAO,EAAE,aAAa,EAAE,MAAM,4BAA4B,CAAA;AAE1D,OAAO,EAAE,oCAAoC,EAAE,MAAM,aAAa,CAAA;AAIlE,MAAM,MAAM,oCAAoC,GAAG,aAAa,CAAC,eAAe,CAAC,oCAAoC,CAAC,CAAC,CAAA;AAEvH,qBAAa,8BAA+B,SAAQ,eAAe,CAAC,oCAAoC,CAAC;IACvG,gBAAyB,aAAa,EAAE,MAAM,EAAE,CAAuE;IACvH,gBAAyB,mBAAmB,EAAE,MAAM,CAA6C;cAExE,cAAc,IAAI,OAAO,CAAC,OAAO,EAAE,CAAC;CAQ9D"}
@@ -1,46 +1,5 @@
1
- import * as _xyo_network_witness_model from '@xyo-network/witness-model';
2
- import { WitnessConfig, WitnessParams } from '@xyo-network/witness-model';
3
- import * as _xyo_network_payloadset_plugin from '@xyo-network/payloadset-plugin';
4
- import * as _xyo_network_payload_model from '@xyo-network/payload-model';
5
- import { Schema, Payload } from '@xyo-network/payload-model';
6
- import * as _store__xylabs_object_npm_4_5_1_e31c389195_package from '.store/@xylabs-object-npm-4.5.1-e31c389195/package';
7
- import { AbstractWitness } from '@xyo-network/abstract-witness';
8
- import { AnyConfigSchema } from '@xyo-network/module-model';
9
-
10
- type EthereumGasEtherchainV2WitnessConfigSchema = 'network.xyo.blockchain.ethereum.gas.etherchain.v2.witness.config';
11
- declare const EthereumGasEtherchainV2WitnessConfigSchema: EthereumGasEtherchainV2WitnessConfigSchema;
12
-
13
- type EthereumGasEtherchainV2WitnessConfig = WitnessConfig<{
14
- schema: EthereumGasEtherchainV2WitnessConfigSchema;
15
- }>;
16
-
17
- declare const EthereumGasEtherchainV2Plugin: () => _xyo_network_payloadset_plugin.PayloadSetWitnessPlugin<_xyo_network_witness_model.WitnessModule<_store__xylabs_object_npm_4_5_1_e31c389195_package.BaseParamsFields & {
18
- account?: _xyo_network_account_model.AccountInstance | "random";
19
- addToResolvers?: boolean;
20
- additionalSigners?: _xyo_network_account_model.AccountInstance[];
21
- allowNameResolution?: boolean;
22
- config: _xyo_network_module_model.AnyConfigSchema<_xyo_network_witness_model.WitnessConfig<void, void>>;
23
- ephemeralQueryAccountEnabled?: boolean;
24
- moduleIdentifierTransformers?: _xyo_network_module_model.ModuleIdentifierTransformer[];
25
- privateChildren?: _xyo_network_module_model.ModuleInstance[];
26
- publicChildren?: _xyo_network_module_model.ModuleInstance[];
27
- }, _xyo_network_witness_model.WitnessModuleEventData<_xyo_network_module_model.ModuleInstance<_store__xylabs_object_npm_4_5_1_e31c389195_package.BaseParamsFields & {
28
- account?: _xyo_network_account_model.AccountInstance | "random";
29
- addToResolvers?: boolean;
30
- additionalSigners?: _xyo_network_account_model.AccountInstance[];
31
- allowNameResolution?: boolean;
32
- config: _xyo_network_module_model.AnyConfigSchema<_xyo_network_module_model.ModuleConfig<void, void>>;
33
- ephemeralQueryAccountEnabled?: boolean;
34
- moduleIdentifierTransformers?: _xyo_network_module_model.ModuleIdentifierTransformer[];
35
- privateChildren?: _xyo_network_module_model.ModuleInstance[];
36
- publicChildren?: _xyo_network_module_model.ModuleInstance[];
37
- }, _xyo_network_module_model.ModuleEventData<object>>, _xyo_network_payload_model.Payload, _xyo_network_payload_model.Payload>>>;
38
-
39
- type EtherchainEthereumGasWitnessV2Params = WitnessParams<AnyConfigSchema<EthereumGasEtherchainV2WitnessConfig>>;
40
- declare class EtherchainEthereumGasWitnessV2 extends AbstractWitness<EtherchainEthereumGasWitnessV2Params> {
41
- static readonly configSchemas: Schema[];
42
- static readonly defaultConfigSchema: Schema;
43
- protected observeHandler(): Promise<Payload[]>;
44
- }
45
-
46
- export { EtherchainEthereumGasWitnessV2, type EtherchainEthereumGasWitnessV2Params, EthereumGasEtherchainV2Plugin, type EthereumGasEtherchainV2WitnessConfig, EthereumGasEtherchainV2WitnessConfigSchema, EthereumGasEtherchainV2Plugin as default };
1
+ export * from './Config.ts';
2
+ export { EthereumGasEtherchainV2Plugin as default, EthereumGasEtherchainV2Plugin } from './Plugin.ts';
3
+ export * from './Schema.ts';
4
+ export * from './Witness.ts';
5
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,aAAa,CAAA;AAC3B,OAAO,EAAE,6BAA6B,IAAI,OAAO,EAAE,6BAA6B,EAAE,MAAM,aAAa,CAAA;AACrG,cAAc,aAAa,CAAA;AAC3B,cAAc,cAAc,CAAA"}
@@ -1 +1 @@
1
- {"version":3,"sources":["../../src/Plugin.ts","../../src/Witness.ts","../../src/lib/getV2GasFromEtherchain.ts","../../src/Schema.ts"],"sourcesContent":["import { EthereumGasEtherchainV2Schema } from '@xyo-network/etherchain-ethereum-gas-v2-payload-plugin'\nimport { PayloadSetSchema } from '@xyo-network/payload-model'\nimport { createPayloadSetWitnessPlugin } from '@xyo-network/payloadset-plugin'\n\nimport { EtherchainEthereumGasWitnessV2 } from './Witness.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 { AbstractWitness } from '@xyo-network/abstract-witness'\nimport 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 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 { axios } from '@xylabs/axios'\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 (await axios.get<EthereumGasEtherchainV2Response>(url)).data\n}\n","export type EthereumGasEtherchainV2WitnessConfigSchema = 'network.xyo.blockchain.ethereum.gas.etherchain.v2.witness.config'\nexport const EthereumGasEtherchainV2WitnessConfigSchema: EthereumGasEtherchainV2WitnessConfigSchema\n = 'network.xyo.blockchain.ethereum.gas.etherchain.v2.witness.config'\n"],"mappings":";AAAA,SAAS,iCAAAA,sCAAqC;AAC9C,SAAS,wBAAwB;AACjC,SAAS,qCAAqC;;;ACF9C,SAAS,uBAAuB;AAEhC,SAAS,qCAAqC;;;ACF9C,SAAS,aAAa;AAGtB,IAAM,MAAM;AAEL,IAAM,yBAAyB,YAAsD;AAC1F,UAAQ,MAAM,MAAM,IAAqC,GAAG,GAAG;AACjE;;;ACNO,IAAM,6CACT;;;AFWG,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
+ {"version":3,"sources":["../../src/Plugin.ts","../../src/Witness.ts","../../src/lib/getV2GasFromEtherchain.ts","../../src/Schema.ts"],"sourcesContent":["import { EthereumGasEtherchainV2Schema } from '@xyo-network/etherchain-ethereum-gas-v2-payload-plugin'\nimport { PayloadSetSchema } from '@xyo-network/payload-model'\nimport { createPayloadSetWitnessPlugin } from '@xyo-network/payloadset-plugin'\n\nimport { EtherchainEthereumGasWitnessV2 } from './Witness.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 { AbstractWitness } from '@xyo-network/abstract-witness'\nimport { EthereumGasEtherchainV2Payload, EthereumGasEtherchainV2Schema } from '@xyo-network/etherchain-ethereum-gas-v2-payload-plugin'\nimport { AnyConfigSchema } from '@xyo-network/module-model'\nimport { Payload, Schema } from '@xyo-network/payload-model'\nimport { WitnessParams } from '@xyo-network/witness-model'\n\nimport { 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 { axios } from '@xylabs/axios'\nimport { EthereumGasEtherchainV2Response } from '@xyo-network/etherchain-ethereum-gas-v2-payload-plugin'\n\nconst url = 'https://beaconcha.in/api/v1/execution/gasnow'\n\nexport const getV2GasFromEtherchain = async (): Promise<EthereumGasEtherchainV2Response> => {\n return (await axios.get<EthereumGasEtherchainV2Response>(url)).data\n}\n","export type EthereumGasEtherchainV2WitnessConfigSchema = 'network.xyo.blockchain.ethereum.gas.etherchain.v2.witness.config'\nexport const EthereumGasEtherchainV2WitnessConfigSchema: EthereumGasEtherchainV2WitnessConfigSchema\n = 'network.xyo.blockchain.ethereum.gas.etherchain.v2.witness.config'\n"],"mappings":";AAAA,SAAS,iCAAAA,sCAAqC;AAC9C,SAAS,wBAAwB;AACjC,SAAS,qCAAqC;;;ACF9C,SAAS,uBAAuB;AAChC,SAAyC,qCAAqC;;;ACD9E,SAAS,aAAa;AAGtB,IAAM,MAAM;AAEL,IAAM,yBAAyB,YAAsD;AAC1F,UAAQ,MAAM,MAAM,IAAqC,GAAG,GAAG;AACjE;;;ACNO,IAAM,6CACT;;;AFUG,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;;;ADlBO,IAAM,gCAAgC,MAC3C;AAAA,EACE,EAAE,UAAU,EAAE,CAACC,8BAA6B,GAAG,EAAE,GAAG,QAAQ,iBAAiB;AAAA,EAC7E;AAAA,IACE,SAAS,OAAO,WAAW;AACzB,aAAQ,MAAM,+BAA+B,OAAO,MAAM;AAAA,IAC5D;AAAA,EACF;AACF;","names":["EthereumGasEtherchainV2Schema","EthereumGasEtherchainV2Schema"]}
@@ -0,0 +1,3 @@
1
+ import { EthereumGasEtherchainV2Response } from '@xyo-network/etherchain-ethereum-gas-v2-payload-plugin';
2
+ export declare const getV2GasFromEtherchain: () => Promise<EthereumGasEtherchainV2Response>;
3
+ //# sourceMappingURL=getV2GasFromEtherchain.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"getV2GasFromEtherchain.d.ts","sourceRoot":"","sources":["../../../src/lib/getV2GasFromEtherchain.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,+BAA+B,EAAE,MAAM,wDAAwD,CAAA;AAIxG,eAAO,MAAM,sBAAsB,QAAa,OAAO,CAAC,+BAA+B,CAEtF,CAAA"}
@@ -0,0 +1,2 @@
1
+ export * from './getV2GasFromEtherchain.ts';
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/lib/index.ts"],"names":[],"mappings":"AAAA,cAAc,6BAA6B,CAAA"}
@@ -0,0 +1,6 @@
1
+ import { WitnessConfig } from '@xyo-network/witness-model';
2
+ import { EthereumGasEtherchainV2WitnessConfigSchema } from './Schema.ts';
3
+ export type EthereumGasEtherchainV2WitnessConfig = WitnessConfig<{
4
+ schema: EthereumGasEtherchainV2WitnessConfigSchema;
5
+ }>;
6
+ //# sourceMappingURL=Config.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Config.d.ts","sourceRoot":"","sources":["../../src/Config.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,4BAA4B,CAAA;AAE1D,OAAO,EAAE,0CAA0C,EAAE,MAAM,aAAa,CAAA;AAExE,MAAM,MAAM,oCAAoC,GAAG,aAAa,CAAC;IAC/D,MAAM,EAAE,0CAA0C,CAAA;CACnD,CAAC,CAAA"}
@@ -0,0 +1,12 @@
1
+ export declare const EthereumGasEtherchainV2Plugin: () => import("@xyo-network/payloadset-plugin").PayloadSetWitnessPlugin<import("@xyo-network/witness-model").WitnessModule<import(".store/@xylabs-object-npm-4.5.1-e31c389195/package").BaseParamsFields & {
2
+ account?: import(".store/@xyo-network-account-model-virtual-26592e0d6e/package").AccountInstance | "random";
3
+ addToResolvers?: boolean;
4
+ additionalSigners?: import(".store/@xyo-network-account-model-virtual-26592e0d6e/package").AccountInstance[];
5
+ allowNameResolution?: boolean;
6
+ config: import("@xyo-network/module-model").AnyConfigSchema<import("@xyo-network/witness-model").WitnessConfig>;
7
+ ephemeralQueryAccountEnabled?: boolean;
8
+ moduleIdentifierTransformers?: import("@xyo-network/module-model").ModuleIdentifierTransformer[];
9
+ privateChildren?: import("@xyo-network/module-model").ModuleInstance[];
10
+ publicChildren?: import("@xyo-network/module-model").ModuleInstance[];
11
+ }, import("@xyo-network/witness-model").WitnessModuleEventData>>;
12
+ //# sourceMappingURL=Plugin.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Plugin.d.ts","sourceRoot":"","sources":["../../src/Plugin.ts"],"names":[],"mappings":"AAMA,eAAO,MAAM,6BAA6B;;;;;;;;;;gEAQvC,CAAA"}
@@ -0,0 +1,3 @@
1
+ export type EthereumGasEtherchainV2WitnessConfigSchema = 'network.xyo.blockchain.ethereum.gas.etherchain.v2.witness.config';
2
+ export declare const EthereumGasEtherchainV2WitnessConfigSchema: EthereumGasEtherchainV2WitnessConfigSchema;
3
+ //# sourceMappingURL=Schema.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Schema.d.ts","sourceRoot":"","sources":["../../src/Schema.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,0CAA0C,GAAG,kEAAkE,CAAA;AAC3H,eAAO,MAAM,0CAA0C,EAAE,0CACa,CAAA"}
@@ -0,0 +1,12 @@
1
+ import { AbstractWitness } from '@xyo-network/abstract-witness';
2
+ import { AnyConfigSchema } from '@xyo-network/module-model';
3
+ import { Payload, Schema } from '@xyo-network/payload-model';
4
+ import { WitnessParams } from '@xyo-network/witness-model';
5
+ import { EthereumGasEtherchainV2WitnessConfig } from './Config.ts';
6
+ export type EtherchainEthereumGasWitnessV2Params = WitnessParams<AnyConfigSchema<EthereumGasEtherchainV2WitnessConfig>>;
7
+ export declare class EtherchainEthereumGasWitnessV2 extends AbstractWitness<EtherchainEthereumGasWitnessV2Params> {
8
+ static readonly configSchemas: Schema[];
9
+ static readonly defaultConfigSchema: Schema;
10
+ protected observeHandler(): Promise<Payload[]>;
11
+ }
12
+ //# sourceMappingURL=Witness.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Witness.d.ts","sourceRoot":"","sources":["../../src/Witness.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,+BAA+B,CAAA;AAE/D,OAAO,EAAE,eAAe,EAAE,MAAM,2BAA2B,CAAA;AAC3D,OAAO,EAAE,OAAO,EAAE,MAAM,EAAE,MAAM,4BAA4B,CAAA;AAC5D,OAAO,EAAE,aAAa,EAAE,MAAM,4BAA4B,CAAA;AAE1D,OAAO,EAAE,oCAAoC,EAAE,MAAM,aAAa,CAAA;AAIlE,MAAM,MAAM,oCAAoC,GAAG,aAAa,CAAC,eAAe,CAAC,oCAAoC,CAAC,CAAC,CAAA;AAEvH,qBAAa,8BAA+B,SAAQ,eAAe,CAAC,oCAAoC,CAAC;IACvG,gBAAyB,aAAa,EAAE,MAAM,EAAE,CAAuE;IACvH,gBAAyB,mBAAmB,EAAE,MAAM,CAA6C;cAExE,cAAc,IAAI,OAAO,CAAC,OAAO,EAAE,CAAC;CAQ9D"}
@@ -1,46 +1,5 @@
1
- import * as _xyo_network_witness_model from '@xyo-network/witness-model';
2
- import { WitnessConfig, WitnessParams } from '@xyo-network/witness-model';
3
- import * as _xyo_network_payloadset_plugin from '@xyo-network/payloadset-plugin';
4
- import * as _xyo_network_payload_model from '@xyo-network/payload-model';
5
- import { Schema, Payload } from '@xyo-network/payload-model';
6
- import * as _store__xylabs_object_npm_4_5_1_e31c389195_package from '.store/@xylabs-object-npm-4.5.1-e31c389195/package';
7
- import { AbstractWitness } from '@xyo-network/abstract-witness';
8
- import { AnyConfigSchema } from '@xyo-network/module-model';
9
-
10
- type EthereumGasEtherchainV2WitnessConfigSchema = 'network.xyo.blockchain.ethereum.gas.etherchain.v2.witness.config';
11
- declare const EthereumGasEtherchainV2WitnessConfigSchema: EthereumGasEtherchainV2WitnessConfigSchema;
12
-
13
- type EthereumGasEtherchainV2WitnessConfig = WitnessConfig<{
14
- schema: EthereumGasEtherchainV2WitnessConfigSchema;
15
- }>;
16
-
17
- declare const EthereumGasEtherchainV2Plugin: () => _xyo_network_payloadset_plugin.PayloadSetWitnessPlugin<_xyo_network_witness_model.WitnessModule<_store__xylabs_object_npm_4_5_1_e31c389195_package.BaseParamsFields & {
18
- account?: _xyo_network_account_model.AccountInstance | "random";
19
- addToResolvers?: boolean;
20
- additionalSigners?: _xyo_network_account_model.AccountInstance[];
21
- allowNameResolution?: boolean;
22
- config: _xyo_network_module_model.AnyConfigSchema<_xyo_network_witness_model.WitnessConfig<void, void>>;
23
- ephemeralQueryAccountEnabled?: boolean;
24
- moduleIdentifierTransformers?: _xyo_network_module_model.ModuleIdentifierTransformer[];
25
- privateChildren?: _xyo_network_module_model.ModuleInstance[];
26
- publicChildren?: _xyo_network_module_model.ModuleInstance[];
27
- }, _xyo_network_witness_model.WitnessModuleEventData<_xyo_network_module_model.ModuleInstance<_store__xylabs_object_npm_4_5_1_e31c389195_package.BaseParamsFields & {
28
- account?: _xyo_network_account_model.AccountInstance | "random";
29
- addToResolvers?: boolean;
30
- additionalSigners?: _xyo_network_account_model.AccountInstance[];
31
- allowNameResolution?: boolean;
32
- config: _xyo_network_module_model.AnyConfigSchema<_xyo_network_module_model.ModuleConfig<void, void>>;
33
- ephemeralQueryAccountEnabled?: boolean;
34
- moduleIdentifierTransformers?: _xyo_network_module_model.ModuleIdentifierTransformer[];
35
- privateChildren?: _xyo_network_module_model.ModuleInstance[];
36
- publicChildren?: _xyo_network_module_model.ModuleInstance[];
37
- }, _xyo_network_module_model.ModuleEventData<object>>, _xyo_network_payload_model.Payload, _xyo_network_payload_model.Payload>>>;
38
-
39
- type EtherchainEthereumGasWitnessV2Params = WitnessParams<AnyConfigSchema<EthereumGasEtherchainV2WitnessConfig>>;
40
- declare class EtherchainEthereumGasWitnessV2 extends AbstractWitness<EtherchainEthereumGasWitnessV2Params> {
41
- static readonly configSchemas: Schema[];
42
- static readonly defaultConfigSchema: Schema;
43
- protected observeHandler(): Promise<Payload[]>;
44
- }
45
-
46
- export { EtherchainEthereumGasWitnessV2, type EtherchainEthereumGasWitnessV2Params, EthereumGasEtherchainV2Plugin, type EthereumGasEtherchainV2WitnessConfig, EthereumGasEtherchainV2WitnessConfigSchema, EthereumGasEtherchainV2Plugin as default };
1
+ export * from './Config.ts';
2
+ export { EthereumGasEtherchainV2Plugin as default, EthereumGasEtherchainV2Plugin } from './Plugin.ts';
3
+ export * from './Schema.ts';
4
+ export * from './Witness.ts';
5
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,aAAa,CAAA;AAC3B,OAAO,EAAE,6BAA6B,IAAI,OAAO,EAAE,6BAA6B,EAAE,MAAM,aAAa,CAAA;AACrG,cAAc,aAAa,CAAA;AAC3B,cAAc,cAAc,CAAA"}
@@ -1 +1 @@
1
- {"version":3,"sources":["../../src/Plugin.ts","../../src/Witness.ts","../../src/lib/getV2GasFromEtherchain.ts","../../src/Schema.ts"],"sourcesContent":["import { EthereumGasEtherchainV2Schema } from '@xyo-network/etherchain-ethereum-gas-v2-payload-plugin'\nimport { PayloadSetSchema } from '@xyo-network/payload-model'\nimport { createPayloadSetWitnessPlugin } from '@xyo-network/payloadset-plugin'\n\nimport { EtherchainEthereumGasWitnessV2 } from './Witness.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 { AbstractWitness } from '@xyo-network/abstract-witness'\nimport 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 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 { axios } from '@xylabs/axios'\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 (await axios.get<EthereumGasEtherchainV2Response>(url)).data\n}\n","export type EthereumGasEtherchainV2WitnessConfigSchema = 'network.xyo.blockchain.ethereum.gas.etherchain.v2.witness.config'\nexport const EthereumGasEtherchainV2WitnessConfigSchema: EthereumGasEtherchainV2WitnessConfigSchema\n = 'network.xyo.blockchain.ethereum.gas.etherchain.v2.witness.config'\n"],"mappings":";AAAA,SAAS,iCAAAA,sCAAqC;AAC9C,SAAS,wBAAwB;AACjC,SAAS,qCAAqC;;;ACF9C,SAAS,uBAAuB;AAEhC,SAAS,qCAAqC;;;ACF9C,SAAS,aAAa;AAGtB,IAAM,MAAM;AAEL,IAAM,yBAAyB,YAAsD;AAC1F,UAAQ,MAAM,MAAM,IAAqC,GAAG,GAAG;AACjE;;;ACNO,IAAM,6CACT;;;AFWG,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
+ {"version":3,"sources":["../../src/Plugin.ts","../../src/Witness.ts","../../src/lib/getV2GasFromEtherchain.ts","../../src/Schema.ts"],"sourcesContent":["import { EthereumGasEtherchainV2Schema } from '@xyo-network/etherchain-ethereum-gas-v2-payload-plugin'\nimport { PayloadSetSchema } from '@xyo-network/payload-model'\nimport { createPayloadSetWitnessPlugin } from '@xyo-network/payloadset-plugin'\n\nimport { EtherchainEthereumGasWitnessV2 } from './Witness.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 { AbstractWitness } from '@xyo-network/abstract-witness'\nimport { EthereumGasEtherchainV2Payload, EthereumGasEtherchainV2Schema } from '@xyo-network/etherchain-ethereum-gas-v2-payload-plugin'\nimport { AnyConfigSchema } from '@xyo-network/module-model'\nimport { Payload, Schema } from '@xyo-network/payload-model'\nimport { WitnessParams } from '@xyo-network/witness-model'\n\nimport { 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 { axios } from '@xylabs/axios'\nimport { EthereumGasEtherchainV2Response } from '@xyo-network/etherchain-ethereum-gas-v2-payload-plugin'\n\nconst url = 'https://beaconcha.in/api/v1/execution/gasnow'\n\nexport const getV2GasFromEtherchain = async (): Promise<EthereumGasEtherchainV2Response> => {\n return (await axios.get<EthereumGasEtherchainV2Response>(url)).data\n}\n","export type EthereumGasEtherchainV2WitnessConfigSchema = 'network.xyo.blockchain.ethereum.gas.etherchain.v2.witness.config'\nexport const EthereumGasEtherchainV2WitnessConfigSchema: EthereumGasEtherchainV2WitnessConfigSchema\n = 'network.xyo.blockchain.ethereum.gas.etherchain.v2.witness.config'\n"],"mappings":";AAAA,SAAS,iCAAAA,sCAAqC;AAC9C,SAAS,wBAAwB;AACjC,SAAS,qCAAqC;;;ACF9C,SAAS,uBAAuB;AAChC,SAAyC,qCAAqC;;;ACD9E,SAAS,aAAa;AAGtB,IAAM,MAAM;AAEL,IAAM,yBAAyB,YAAsD;AAC1F,UAAQ,MAAM,MAAM,IAAqC,GAAG,GAAG;AACjE;;;ACNO,IAAM,6CACT;;;AFUG,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;;;ADlBO,IAAM,gCAAgC,MAC3C;AAAA,EACE,EAAE,UAAU,EAAE,CAACC,8BAA6B,GAAG,EAAE,GAAG,QAAQ,iBAAiB;AAAA,EAC7E;AAAA,IACE,SAAS,OAAO,WAAW;AACzB,aAAQ,MAAM,+BAA+B,OAAO,MAAM;AAAA,IAC5D;AAAA,EACF;AACF;","names":["EthereumGasEtherchainV2Schema","EthereumGasEtherchainV2Schema"]}
@@ -0,0 +1,3 @@
1
+ import { EthereumGasEtherchainV2Response } from '@xyo-network/etherchain-ethereum-gas-v2-payload-plugin';
2
+ export declare const getV2GasFromEtherchain: () => Promise<EthereumGasEtherchainV2Response>;
3
+ //# sourceMappingURL=getV2GasFromEtherchain.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"getV2GasFromEtherchain.d.ts","sourceRoot":"","sources":["../../../src/lib/getV2GasFromEtherchain.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,+BAA+B,EAAE,MAAM,wDAAwD,CAAA;AAIxG,eAAO,MAAM,sBAAsB,QAAa,OAAO,CAAC,+BAA+B,CAEtF,CAAA"}
@@ -0,0 +1,2 @@
1
+ export * from './getV2GasFromEtherchain.ts';
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/lib/index.ts"],"names":[],"mappings":"AAAA,cAAc,6BAA6B,CAAA"}
@@ -0,0 +1,6 @@
1
+ import { WitnessConfig } from '@xyo-network/witness-model';
2
+ import { EthereumGasEtherchainV2WitnessConfigSchema } from './Schema.ts';
3
+ export type EthereumGasEtherchainV2WitnessConfig = WitnessConfig<{
4
+ schema: EthereumGasEtherchainV2WitnessConfigSchema;
5
+ }>;
6
+ //# sourceMappingURL=Config.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Config.d.ts","sourceRoot":"","sources":["../../src/Config.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,4BAA4B,CAAA;AAE1D,OAAO,EAAE,0CAA0C,EAAE,MAAM,aAAa,CAAA;AAExE,MAAM,MAAM,oCAAoC,GAAG,aAAa,CAAC;IAC/D,MAAM,EAAE,0CAA0C,CAAA;CACnD,CAAC,CAAA"}
@@ -0,0 +1,12 @@
1
+ export declare const EthereumGasEtherchainV2Plugin: () => import("@xyo-network/payloadset-plugin").PayloadSetWitnessPlugin<import("@xyo-network/witness-model").WitnessModule<import(".store/@xylabs-object-npm-4.5.1-e31c389195/package").BaseParamsFields & {
2
+ account?: import(".store/@xyo-network-account-model-virtual-26592e0d6e/package").AccountInstance | "random";
3
+ addToResolvers?: boolean;
4
+ additionalSigners?: import(".store/@xyo-network-account-model-virtual-26592e0d6e/package").AccountInstance[];
5
+ allowNameResolution?: boolean;
6
+ config: import("@xyo-network/module-model").AnyConfigSchema<import("@xyo-network/witness-model").WitnessConfig>;
7
+ ephemeralQueryAccountEnabled?: boolean;
8
+ moduleIdentifierTransformers?: import("@xyo-network/module-model").ModuleIdentifierTransformer[];
9
+ privateChildren?: import("@xyo-network/module-model").ModuleInstance[];
10
+ publicChildren?: import("@xyo-network/module-model").ModuleInstance[];
11
+ }, import("@xyo-network/witness-model").WitnessModuleEventData>>;
12
+ //# sourceMappingURL=Plugin.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Plugin.d.ts","sourceRoot":"","sources":["../../src/Plugin.ts"],"names":[],"mappings":"AAMA,eAAO,MAAM,6BAA6B;;;;;;;;;;gEAQvC,CAAA"}
@@ -0,0 +1,3 @@
1
+ export type EthereumGasEtherchainV2WitnessConfigSchema = 'network.xyo.blockchain.ethereum.gas.etherchain.v2.witness.config';
2
+ export declare const EthereumGasEtherchainV2WitnessConfigSchema: EthereumGasEtherchainV2WitnessConfigSchema;
3
+ //# sourceMappingURL=Schema.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Schema.d.ts","sourceRoot":"","sources":["../../src/Schema.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,0CAA0C,GAAG,kEAAkE,CAAA;AAC3H,eAAO,MAAM,0CAA0C,EAAE,0CACa,CAAA"}
@@ -0,0 +1,12 @@
1
+ import { AbstractWitness } from '@xyo-network/abstract-witness';
2
+ import { AnyConfigSchema } from '@xyo-network/module-model';
3
+ import { Payload, Schema } from '@xyo-network/payload-model';
4
+ import { WitnessParams } from '@xyo-network/witness-model';
5
+ import { EthereumGasEtherchainV2WitnessConfig } from './Config.ts';
6
+ export type EtherchainEthereumGasWitnessV2Params = WitnessParams<AnyConfigSchema<EthereumGasEtherchainV2WitnessConfig>>;
7
+ export declare class EtherchainEthereumGasWitnessV2 extends AbstractWitness<EtherchainEthereumGasWitnessV2Params> {
8
+ static readonly configSchemas: Schema[];
9
+ static readonly defaultConfigSchema: Schema;
10
+ protected observeHandler(): Promise<Payload[]>;
11
+ }
12
+ //# sourceMappingURL=Witness.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Witness.d.ts","sourceRoot":"","sources":["../../src/Witness.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,+BAA+B,CAAA;AAE/D,OAAO,EAAE,eAAe,EAAE,MAAM,2BAA2B,CAAA;AAC3D,OAAO,EAAE,OAAO,EAAE,MAAM,EAAE,MAAM,4BAA4B,CAAA;AAC5D,OAAO,EAAE,aAAa,EAAE,MAAM,4BAA4B,CAAA;AAE1D,OAAO,EAAE,oCAAoC,EAAE,MAAM,aAAa,CAAA;AAIlE,MAAM,MAAM,oCAAoC,GAAG,aAAa,CAAC,eAAe,CAAC,oCAAoC,CAAC,CAAC,CAAA;AAEvH,qBAAa,8BAA+B,SAAQ,eAAe,CAAC,oCAAoC,CAAC;IACvG,gBAAyB,aAAa,EAAE,MAAM,EAAE,CAAuE;IACvH,gBAAyB,mBAAmB,EAAE,MAAM,CAA6C;cAExE,cAAc,IAAI,OAAO,CAAC,OAAO,EAAE,CAAC;CAQ9D"}
@@ -1,46 +1,5 @@
1
- import * as _xyo_network_witness_model from '@xyo-network/witness-model';
2
- import { WitnessConfig, WitnessParams } from '@xyo-network/witness-model';
3
- import * as _xyo_network_payloadset_plugin from '@xyo-network/payloadset-plugin';
4
- import * as _xyo_network_payload_model from '@xyo-network/payload-model';
5
- import { Schema, Payload } from '@xyo-network/payload-model';
6
- import * as _store__xylabs_object_npm_4_5_1_e31c389195_package from '.store/@xylabs-object-npm-4.5.1-e31c389195/package';
7
- import { AbstractWitness } from '@xyo-network/abstract-witness';
8
- import { AnyConfigSchema } from '@xyo-network/module-model';
9
-
10
- type EthereumGasEtherchainV2WitnessConfigSchema = 'network.xyo.blockchain.ethereum.gas.etherchain.v2.witness.config';
11
- declare const EthereumGasEtherchainV2WitnessConfigSchema: EthereumGasEtherchainV2WitnessConfigSchema;
12
-
13
- type EthereumGasEtherchainV2WitnessConfig = WitnessConfig<{
14
- schema: EthereumGasEtherchainV2WitnessConfigSchema;
15
- }>;
16
-
17
- declare const EthereumGasEtherchainV2Plugin: () => _xyo_network_payloadset_plugin.PayloadSetWitnessPlugin<_xyo_network_witness_model.WitnessModule<_store__xylabs_object_npm_4_5_1_e31c389195_package.BaseParamsFields & {
18
- account?: _xyo_network_account_model.AccountInstance | "random";
19
- addToResolvers?: boolean;
20
- additionalSigners?: _xyo_network_account_model.AccountInstance[];
21
- allowNameResolution?: boolean;
22
- config: _xyo_network_module_model.AnyConfigSchema<_xyo_network_witness_model.WitnessConfig<void, void>>;
23
- ephemeralQueryAccountEnabled?: boolean;
24
- moduleIdentifierTransformers?: _xyo_network_module_model.ModuleIdentifierTransformer[];
25
- privateChildren?: _xyo_network_module_model.ModuleInstance[];
26
- publicChildren?: _xyo_network_module_model.ModuleInstance[];
27
- }, _xyo_network_witness_model.WitnessModuleEventData<_xyo_network_module_model.ModuleInstance<_store__xylabs_object_npm_4_5_1_e31c389195_package.BaseParamsFields & {
28
- account?: _xyo_network_account_model.AccountInstance | "random";
29
- addToResolvers?: boolean;
30
- additionalSigners?: _xyo_network_account_model.AccountInstance[];
31
- allowNameResolution?: boolean;
32
- config: _xyo_network_module_model.AnyConfigSchema<_xyo_network_module_model.ModuleConfig<void, void>>;
33
- ephemeralQueryAccountEnabled?: boolean;
34
- moduleIdentifierTransformers?: _xyo_network_module_model.ModuleIdentifierTransformer[];
35
- privateChildren?: _xyo_network_module_model.ModuleInstance[];
36
- publicChildren?: _xyo_network_module_model.ModuleInstance[];
37
- }, _xyo_network_module_model.ModuleEventData<object>>, _xyo_network_payload_model.Payload, _xyo_network_payload_model.Payload>>>;
38
-
39
- type EtherchainEthereumGasWitnessV2Params = WitnessParams<AnyConfigSchema<EthereumGasEtherchainV2WitnessConfig>>;
40
- declare class EtherchainEthereumGasWitnessV2 extends AbstractWitness<EtherchainEthereumGasWitnessV2Params> {
41
- static readonly configSchemas: Schema[];
42
- static readonly defaultConfigSchema: Schema;
43
- protected observeHandler(): Promise<Payload[]>;
44
- }
45
-
46
- export { EtherchainEthereumGasWitnessV2, type EtherchainEthereumGasWitnessV2Params, EthereumGasEtherchainV2Plugin, type EthereumGasEtherchainV2WitnessConfig, EthereumGasEtherchainV2WitnessConfigSchema, EthereumGasEtherchainV2Plugin as default };
1
+ export * from './Config.ts';
2
+ export { EthereumGasEtherchainV2Plugin as default, EthereumGasEtherchainV2Plugin } from './Plugin.ts';
3
+ export * from './Schema.ts';
4
+ export * from './Witness.ts';
5
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,aAAa,CAAA;AAC3B,OAAO,EAAE,6BAA6B,IAAI,OAAO,EAAE,6BAA6B,EAAE,MAAM,aAAa,CAAA;AACrG,cAAc,aAAa,CAAA;AAC3B,cAAc,cAAc,CAAA"}
@@ -1 +1 @@
1
- {"version":3,"sources":["../../src/Plugin.ts","../../src/Witness.ts","../../src/lib/getV2GasFromEtherchain.ts","../../src/Schema.ts"],"sourcesContent":["import { EthereumGasEtherchainV2Schema } from '@xyo-network/etherchain-ethereum-gas-v2-payload-plugin'\nimport { PayloadSetSchema } from '@xyo-network/payload-model'\nimport { createPayloadSetWitnessPlugin } from '@xyo-network/payloadset-plugin'\n\nimport { EtherchainEthereumGasWitnessV2 } from './Witness.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 { AbstractWitness } from '@xyo-network/abstract-witness'\nimport 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 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 { axios } from '@xylabs/axios'\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 (await axios.get<EthereumGasEtherchainV2Response>(url)).data\n}\n","export type EthereumGasEtherchainV2WitnessConfigSchema = 'network.xyo.blockchain.ethereum.gas.etherchain.v2.witness.config'\nexport const EthereumGasEtherchainV2WitnessConfigSchema: EthereumGasEtherchainV2WitnessConfigSchema\n = 'network.xyo.blockchain.ethereum.gas.etherchain.v2.witness.config'\n"],"mappings":";AAAA,SAAS,iCAAAA,sCAAqC;AAC9C,SAAS,wBAAwB;AACjC,SAAS,qCAAqC;;;ACF9C,SAAS,uBAAuB;AAEhC,SAAS,qCAAqC;;;ACF9C,SAAS,aAAa;AAGtB,IAAM,MAAM;AAEL,IAAM,yBAAyB,YAAsD;AAC1F,UAAQ,MAAM,MAAM,IAAqC,GAAG,GAAG;AACjE;;;ACNO,IAAM,6CACT;;;AFWG,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
+ {"version":3,"sources":["../../src/Plugin.ts","../../src/Witness.ts","../../src/lib/getV2GasFromEtherchain.ts","../../src/Schema.ts"],"sourcesContent":["import { EthereumGasEtherchainV2Schema } from '@xyo-network/etherchain-ethereum-gas-v2-payload-plugin'\nimport { PayloadSetSchema } from '@xyo-network/payload-model'\nimport { createPayloadSetWitnessPlugin } from '@xyo-network/payloadset-plugin'\n\nimport { EtherchainEthereumGasWitnessV2 } from './Witness.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 { AbstractWitness } from '@xyo-network/abstract-witness'\nimport { EthereumGasEtherchainV2Payload, EthereumGasEtherchainV2Schema } from '@xyo-network/etherchain-ethereum-gas-v2-payload-plugin'\nimport { AnyConfigSchema } from '@xyo-network/module-model'\nimport { Payload, Schema } from '@xyo-network/payload-model'\nimport { WitnessParams } from '@xyo-network/witness-model'\n\nimport { 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 { axios } from '@xylabs/axios'\nimport { EthereumGasEtherchainV2Response } from '@xyo-network/etherchain-ethereum-gas-v2-payload-plugin'\n\nconst url = 'https://beaconcha.in/api/v1/execution/gasnow'\n\nexport const getV2GasFromEtherchain = async (): Promise<EthereumGasEtherchainV2Response> => {\n return (await axios.get<EthereumGasEtherchainV2Response>(url)).data\n}\n","export type EthereumGasEtherchainV2WitnessConfigSchema = 'network.xyo.blockchain.ethereum.gas.etherchain.v2.witness.config'\nexport const EthereumGasEtherchainV2WitnessConfigSchema: EthereumGasEtherchainV2WitnessConfigSchema\n = 'network.xyo.blockchain.ethereum.gas.etherchain.v2.witness.config'\n"],"mappings":";AAAA,SAAS,iCAAAA,sCAAqC;AAC9C,SAAS,wBAAwB;AACjC,SAAS,qCAAqC;;;ACF9C,SAAS,uBAAuB;AAChC,SAAyC,qCAAqC;;;ACD9E,SAAS,aAAa;AAGtB,IAAM,MAAM;AAEL,IAAM,yBAAyB,YAAsD;AAC1F,UAAQ,MAAM,MAAM,IAAqC,GAAG,GAAG;AACjE;;;ACNO,IAAM,6CACT;;;AFUG,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;;;ADlBO,IAAM,gCAAgC,MAC3C;AAAA,EACE,EAAE,UAAU,EAAE,CAACC,8BAA6B,GAAG,EAAE,GAAG,QAAQ,iBAAiB;AAAA,EAC7E;AAAA,IACE,SAAS,OAAO,WAAW;AACzB,aAAQ,MAAM,+BAA+B,OAAO,MAAM;AAAA,IAC5D;AAAA,EACF;AACF;","names":["EthereumGasEtherchainV2Schema","EthereumGasEtherchainV2Schema"]}
@@ -0,0 +1,3 @@
1
+ import { EthereumGasEtherchainV2Response } from '@xyo-network/etherchain-ethereum-gas-v2-payload-plugin';
2
+ export declare const getV2GasFromEtherchain: () => Promise<EthereumGasEtherchainV2Response>;
3
+ //# sourceMappingURL=getV2GasFromEtherchain.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"getV2GasFromEtherchain.d.ts","sourceRoot":"","sources":["../../../src/lib/getV2GasFromEtherchain.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,+BAA+B,EAAE,MAAM,wDAAwD,CAAA;AAIxG,eAAO,MAAM,sBAAsB,QAAa,OAAO,CAAC,+BAA+B,CAEtF,CAAA"}
@@ -0,0 +1,2 @@
1
+ export * from './getV2GasFromEtherchain.ts';
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/lib/index.ts"],"names":[],"mappings":"AAAA,cAAc,6BAA6B,CAAA"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xyo-network/etherchain-ethereum-gas-v2-plugin",
3
- "version": "3.4.2",
3
+ "version": "3.4.3",
4
4
  "description": "Typescript/Javascript Plugins for XYO Platform",
5
5
  "homepage": "https://xyo.network",
6
6
  "bugs": {
@@ -30,20 +30,20 @@
30
30
  "types": "dist/neutral/index.d.ts",
31
31
  "dependencies": {
32
32
  "@xylabs/axios": "^4.5.1",
33
- "@xyo-network/abstract-witness": "^3.9.16",
34
- "@xyo-network/etherchain-ethereum-gas-v2-payload-plugin": "^3.4.2",
35
- "@xyo-network/module-model": "^3.9.16",
36
- "@xyo-network/payload-model": "^3.9.16",
37
- "@xyo-network/payloadset-plugin": "^3.9.16",
38
- "@xyo-network/witness-model": "^3.9.16"
33
+ "@xyo-network/abstract-witness": "^3.9.23",
34
+ "@xyo-network/etherchain-ethereum-gas-v2-payload-plugin": "^3.4.3",
35
+ "@xyo-network/module-model": "^3.9.23",
36
+ "@xyo-network/payload-model": "^3.9.23",
37
+ "@xyo-network/payloadset-plugin": "^3.9.23",
38
+ "@xyo-network/witness-model": "^3.9.23"
39
39
  },
40
40
  "devDependencies": {
41
- "@xylabs/ts-scripts-yarn3": "^5.0.24",
42
- "@xylabs/tsconfig": "^5.0.24",
41
+ "@xylabs/ts-scripts-yarn3": "^5.0.39",
42
+ "@xylabs/tsconfig": "^5.0.39",
43
43
  "@xylabs/vitest-extended": "^4.5.1",
44
- "@xyo-network/payload-wrapper": "^3.9.16",
45
- "typescript": "^5.7.3",
46
- "vitest": "^3.0.6"
44
+ "@xyo-network/payload-wrapper": "^3.9.23",
45
+ "typescript": "^5.8.2",
46
+ "vitest": "^3.0.7"
47
47
  },
48
48
  "publishConfig": {
49
49
  "access": "public"
package/src/Config.ts CHANGED
@@ -1,6 +1,6 @@
1
- import type { WitnessConfig } from '@xyo-network/witness-model'
1
+ import { WitnessConfig } from '@xyo-network/witness-model'
2
2
 
3
- import type { EthereumGasEtherchainV2WitnessConfigSchema } from './Schema.ts'
3
+ import { EthereumGasEtherchainV2WitnessConfigSchema } from './Schema.ts'
4
4
 
5
5
  export type EthereumGasEtherchainV2WitnessConfig = WitnessConfig<{
6
6
  schema: EthereumGasEtherchainV2WitnessConfigSchema
package/src/Witness.ts CHANGED
@@ -1,11 +1,10 @@
1
1
  import { AbstractWitness } from '@xyo-network/abstract-witness'
2
- import type { EthereumGasEtherchainV2Payload } from '@xyo-network/etherchain-ethereum-gas-v2-payload-plugin'
3
- import { EthereumGasEtherchainV2Schema } from '@xyo-network/etherchain-ethereum-gas-v2-payload-plugin'
4
- import type { AnyConfigSchema } from '@xyo-network/module-model'
5
- import type { Payload, Schema } from '@xyo-network/payload-model'
6
- import type { WitnessParams } from '@xyo-network/witness-model'
2
+ import { EthereumGasEtherchainV2Payload, EthereumGasEtherchainV2Schema } from '@xyo-network/etherchain-ethereum-gas-v2-payload-plugin'
3
+ import { AnyConfigSchema } from '@xyo-network/module-model'
4
+ import { Payload, Schema } from '@xyo-network/payload-model'
5
+ import { WitnessParams } from '@xyo-network/witness-model'
7
6
 
8
- import type { EthereumGasEtherchainV2WitnessConfig } from './Config.ts'
7
+ import { EthereumGasEtherchainV2WitnessConfig } from './Config.ts'
9
8
  import { getV2GasFromEtherchain } from './lib/index.ts'
10
9
  import { EthereumGasEtherchainV2WitnessConfigSchema } from './Schema.ts'
11
10
 
@@ -1,5 +1,5 @@
1
1
  import { axios } from '@xylabs/axios'
2
- import type { EthereumGasEtherchainV2Response } from '@xyo-network/etherchain-ethereum-gas-v2-payload-plugin'
2
+ import { EthereumGasEtherchainV2Response } from '@xyo-network/etherchain-ethereum-gas-v2-payload-plugin'
3
3
 
4
4
  const url = 'https://beaconcha.in/api/v1/execution/gasnow'
5
5