@xyo-network/etherchain-ethereum-gas-v2-plugin 2.99.4 → 2.99.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/browser/Config.d.cts +1 -1
- package/dist/browser/Config.d.mts +1 -1
- package/dist/browser/Config.d.ts +1 -1
- package/dist/browser/Plugin.d.cts +4 -4
- package/dist/browser/Plugin.d.mts +4 -4
- package/dist/browser/Plugin.d.ts +4 -4
- package/dist/browser/Schema.d.cts.map +1 -1
- package/dist/browser/Schema.d.mts.map +1 -1
- package/dist/browser/Schema.d.ts.map +1 -1
- package/dist/browser/Witness.d.cts +1 -1
- package/dist/browser/Witness.d.mts +1 -1
- package/dist/browser/Witness.d.ts +1 -1
- package/dist/browser/index.cjs.map +1 -1
- package/dist/browser/index.d.cts +4 -4
- package/dist/browser/index.d.mts +4 -4
- package/dist/browser/index.d.ts +4 -4
- package/dist/browser/{index.js → index.mjs} +1 -1
- package/dist/{node/index.js.map → browser/index.mjs.map} +1 -1
- package/dist/browser/lib/index.d.cts +1 -1
- package/dist/browser/lib/index.d.mts +1 -1
- package/dist/browser/lib/index.d.ts +1 -1
- package/dist/neutral/Config.d.cts +1 -1
- package/dist/neutral/Config.d.mts +1 -1
- package/dist/neutral/Config.d.ts +1 -1
- package/dist/neutral/Plugin.d.cts +4 -4
- package/dist/neutral/Plugin.d.mts +4 -4
- package/dist/neutral/Plugin.d.ts +4 -4
- package/dist/neutral/Schema.d.cts.map +1 -1
- package/dist/neutral/Schema.d.mts.map +1 -1
- package/dist/neutral/Schema.d.ts.map +1 -1
- package/dist/neutral/Witness.d.cts +1 -1
- package/dist/neutral/Witness.d.mts +1 -1
- package/dist/neutral/Witness.d.ts +1 -1
- package/dist/neutral/index.cjs.map +1 -1
- package/dist/neutral/index.d.cts +4 -4
- package/dist/neutral/index.d.mts +4 -4
- package/dist/neutral/index.d.ts +4 -4
- package/dist/{node/index.js → neutral/index.mjs} +1 -1
- package/dist/{browser/index.js.map → neutral/index.mjs.map} +1 -1
- package/dist/neutral/lib/index.d.cts +1 -1
- package/dist/neutral/lib/index.d.mts +1 -1
- package/dist/neutral/lib/index.d.ts +1 -1
- package/dist/node/Config.d.cts +1 -1
- package/dist/node/Config.d.mts +1 -1
- package/dist/node/Config.d.ts +1 -1
- package/dist/node/Plugin.d.cts +4 -4
- package/dist/node/Plugin.d.mts +4 -4
- package/dist/node/Plugin.d.ts +4 -4
- package/dist/node/Schema.d.cts.map +1 -1
- package/dist/node/Schema.d.mts.map +1 -1
- package/dist/node/Schema.d.ts.map +1 -1
- package/dist/node/Witness.d.cts +1 -1
- package/dist/node/Witness.d.mts +1 -1
- package/dist/node/Witness.d.ts +1 -1
- package/dist/node/index.cjs.map +1 -1
- package/dist/node/index.d.cts +4 -4
- package/dist/node/index.d.mts +4 -4
- package/dist/node/index.d.ts +4 -4
- package/dist/{neutral/index.js → node/index.mjs} +1 -1
- package/dist/{neutral/index.js.map → node/index.mjs.map} +1 -1
- package/dist/node/lib/index.d.cts +1 -1
- package/dist/node/lib/index.d.mts +1 -1
- package/dist/node/lib/index.d.ts +1 -1
- package/package.json +15 -15
- package/src/Config.ts +1 -1
- package/src/Plugin.ts +1 -1
- package/src/Schema.ts +2 -2
- package/src/Witness.ts +3 -3
- package/src/index.ts +4 -4
- package/src/lib/index.ts +1 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { WitnessConfig } from '@xyo-network/witness-model';
|
|
2
|
-
import { EthereumGasEtherchainV2WitnessConfigSchema } from './Schema.
|
|
2
|
+
import { EthereumGasEtherchainV2WitnessConfigSchema } from './Schema.ts';
|
|
3
3
|
export type EthereumGasEtherchainV2WitnessConfig = WitnessConfig<{
|
|
4
4
|
schema: EthereumGasEtherchainV2WitnessConfigSchema;
|
|
5
5
|
}>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { WitnessConfig } from '@xyo-network/witness-model';
|
|
2
|
-
import { EthereumGasEtherchainV2WitnessConfigSchema } from './Schema.
|
|
2
|
+
import { EthereumGasEtherchainV2WitnessConfigSchema } from './Schema.ts';
|
|
3
3
|
export type EthereumGasEtherchainV2WitnessConfig = WitnessConfig<{
|
|
4
4
|
schema: EthereumGasEtherchainV2WitnessConfigSchema;
|
|
5
5
|
}>;
|
package/dist/browser/Config.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { WitnessConfig } from '@xyo-network/witness-model';
|
|
2
|
-
import { EthereumGasEtherchainV2WitnessConfigSchema } from './Schema.
|
|
2
|
+
import { EthereumGasEtherchainV2WitnessConfigSchema } from './Schema.ts';
|
|
3
3
|
export type EthereumGasEtherchainV2WitnessConfig = WitnessConfig<{
|
|
4
4
|
schema: EthereumGasEtherchainV2WitnessConfigSchema;
|
|
5
5
|
}>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export declare const EthereumGasEtherchainV2Plugin: () => import("@xyo-network/payloadset-plugin").PayloadSetWitnessPlugin<import("@xyo-network/witness-model").WitnessModule<import("
|
|
1
|
+
export declare const EthereumGasEtherchainV2Plugin: () => import("@xyo-network/payloadset-plugin").PayloadSetWitnessPlugin<import("@xyo-network/witness-model").WitnessModule<import(".store/@xylabs-object-npm-3.6.12-443b813787/package").BaseParamsFields & {
|
|
2
2
|
account?: import("@xyo-network/account-model").AccountInstance | "random";
|
|
3
3
|
addToResolvers?: boolean;
|
|
4
4
|
additionalSigners?: import("@xyo-network/account-model").AccountInstance[];
|
|
@@ -12,10 +12,10 @@ export declare const EthereumGasEtherchainV2Plugin: () => import("@xyo-network/p
|
|
|
12
12
|
};
|
|
13
13
|
ephemeralQueryAccountEnabled?: boolean;
|
|
14
14
|
moduleIdentifierTransformers?: import("@xyo-network/module-model").ModuleIdentifierTransformer[];
|
|
15
|
-
}, import("@xyo-network/witness-model").WitnessModuleEventData<import("@xyo-network/module-model").ModuleInstance<import("
|
|
16
|
-
account?: import("
|
|
15
|
+
}, import("@xyo-network/witness-model").WitnessModuleEventData<import("@xyo-network/module-model").ModuleInstance<import(".store/@xylabs-object-npm-3.6.12-443b813787/package").BaseParamsFields & {
|
|
16
|
+
account?: import(".store/@xyo-network-account-model-virtual-c593258ccf/package").AccountInstance | "random";
|
|
17
17
|
addToResolvers?: boolean;
|
|
18
|
-
additionalSigners?: import("
|
|
18
|
+
additionalSigners?: import(".store/@xyo-network-account-model-virtual-c593258ccf/package").AccountInstance[];
|
|
19
19
|
allowNameResolution?: boolean;
|
|
20
20
|
config: import("@xyo-network/payload-model").SchemaFields & import("@xyo-network/payload-model").PayloadFields & Omit<import("@xyo-network/module-model").ArchivingModuleConfig & import("@xyo-network/module-model").ModuleConfigFields & import("@xyo-network/payload-model").SchemaFields & import("@xyo-network/payload-model").PayloadFields & {
|
|
21
21
|
schema: "network.xyo.module.config";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export declare const EthereumGasEtherchainV2Plugin: () => import("@xyo-network/payloadset-plugin").PayloadSetWitnessPlugin<import("@xyo-network/witness-model").WitnessModule<import("
|
|
1
|
+
export declare const EthereumGasEtherchainV2Plugin: () => import("@xyo-network/payloadset-plugin").PayloadSetWitnessPlugin<import("@xyo-network/witness-model").WitnessModule<import(".store/@xylabs-object-npm-3.6.12-443b813787/package").BaseParamsFields & {
|
|
2
2
|
account?: import("@xyo-network/account-model").AccountInstance | "random";
|
|
3
3
|
addToResolvers?: boolean;
|
|
4
4
|
additionalSigners?: import("@xyo-network/account-model").AccountInstance[];
|
|
@@ -12,10 +12,10 @@ export declare const EthereumGasEtherchainV2Plugin: () => import("@xyo-network/p
|
|
|
12
12
|
};
|
|
13
13
|
ephemeralQueryAccountEnabled?: boolean;
|
|
14
14
|
moduleIdentifierTransformers?: import("@xyo-network/module-model").ModuleIdentifierTransformer[];
|
|
15
|
-
}, import("@xyo-network/witness-model").WitnessModuleEventData<import("@xyo-network/module-model").ModuleInstance<import("
|
|
16
|
-
account?: import("
|
|
15
|
+
}, import("@xyo-network/witness-model").WitnessModuleEventData<import("@xyo-network/module-model").ModuleInstance<import(".store/@xylabs-object-npm-3.6.12-443b813787/package").BaseParamsFields & {
|
|
16
|
+
account?: import(".store/@xyo-network-account-model-virtual-c593258ccf/package").AccountInstance | "random";
|
|
17
17
|
addToResolvers?: boolean;
|
|
18
|
-
additionalSigners?: import("
|
|
18
|
+
additionalSigners?: import(".store/@xyo-network-account-model-virtual-c593258ccf/package").AccountInstance[];
|
|
19
19
|
allowNameResolution?: boolean;
|
|
20
20
|
config: import("@xyo-network/payload-model").SchemaFields & import("@xyo-network/payload-model").PayloadFields & Omit<import("@xyo-network/module-model").ArchivingModuleConfig & import("@xyo-network/module-model").ModuleConfigFields & import("@xyo-network/payload-model").SchemaFields & import("@xyo-network/payload-model").PayloadFields & {
|
|
21
21
|
schema: "network.xyo.module.config";
|
package/dist/browser/Plugin.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export declare const EthereumGasEtherchainV2Plugin: () => import("@xyo-network/payloadset-plugin").PayloadSetWitnessPlugin<import("@xyo-network/witness-model").WitnessModule<import("
|
|
1
|
+
export declare const EthereumGasEtherchainV2Plugin: () => import("@xyo-network/payloadset-plugin").PayloadSetWitnessPlugin<import("@xyo-network/witness-model").WitnessModule<import(".store/@xylabs-object-npm-3.6.12-443b813787/package").BaseParamsFields & {
|
|
2
2
|
account?: import("@xyo-network/account-model").AccountInstance | "random";
|
|
3
3
|
addToResolvers?: boolean;
|
|
4
4
|
additionalSigners?: import("@xyo-network/account-model").AccountInstance[];
|
|
@@ -12,10 +12,10 @@ export declare const EthereumGasEtherchainV2Plugin: () => import("@xyo-network/p
|
|
|
12
12
|
};
|
|
13
13
|
ephemeralQueryAccountEnabled?: boolean;
|
|
14
14
|
moduleIdentifierTransformers?: import("@xyo-network/module-model").ModuleIdentifierTransformer[];
|
|
15
|
-
}, import("@xyo-network/witness-model").WitnessModuleEventData<import("@xyo-network/module-model").ModuleInstance<import("
|
|
16
|
-
account?: import("
|
|
15
|
+
}, import("@xyo-network/witness-model").WitnessModuleEventData<import("@xyo-network/module-model").ModuleInstance<import(".store/@xylabs-object-npm-3.6.12-443b813787/package").BaseParamsFields & {
|
|
16
|
+
account?: import(".store/@xyo-network-account-model-virtual-c593258ccf/package").AccountInstance | "random";
|
|
17
17
|
addToResolvers?: boolean;
|
|
18
|
-
additionalSigners?: import("
|
|
18
|
+
additionalSigners?: import(".store/@xyo-network-account-model-virtual-c593258ccf/package").AccountInstance[];
|
|
19
19
|
allowNameResolution?: boolean;
|
|
20
20
|
config: import("@xyo-network/payload-model").SchemaFields & import("@xyo-network/payload-model").PayloadFields & Omit<import("@xyo-network/module-model").ArchivingModuleConfig & import("@xyo-network/module-model").ModuleConfigFields & import("@xyo-network/payload-model").SchemaFields & import("@xyo-network/payload-model").PayloadFields & {
|
|
21
21
|
schema: "network.xyo.module.config";
|
|
@@ -1 +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,
|
|
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"}
|
|
@@ -1 +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,
|
|
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"}
|
|
@@ -1 +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,
|
|
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"}
|
|
@@ -2,7 +2,7 @@ import { AbstractWitness } from '@xyo-network/abstract-witness';
|
|
|
2
2
|
import { AnyConfigSchema } from '@xyo-network/module-model';
|
|
3
3
|
import { Payload, Schema } from '@xyo-network/payload-model';
|
|
4
4
|
import { WitnessParams } from '@xyo-network/witness-model';
|
|
5
|
-
import { EthereumGasEtherchainV2WitnessConfig } from './Config.
|
|
5
|
+
import { EthereumGasEtherchainV2WitnessConfig } from './Config.ts';
|
|
6
6
|
export type EtherchainEthereumGasWitnessV2Params = WitnessParams<AnyConfigSchema<EthereumGasEtherchainV2WitnessConfig>>;
|
|
7
7
|
export declare class EtherchainEthereumGasWitnessV2 extends AbstractWitness<EtherchainEthereumGasWitnessV2Params> {
|
|
8
8
|
static readonly configSchemas: Schema[];
|
|
@@ -2,7 +2,7 @@ import { AbstractWitness } from '@xyo-network/abstract-witness';
|
|
|
2
2
|
import { AnyConfigSchema } from '@xyo-network/module-model';
|
|
3
3
|
import { Payload, Schema } from '@xyo-network/payload-model';
|
|
4
4
|
import { WitnessParams } from '@xyo-network/witness-model';
|
|
5
|
-
import { EthereumGasEtherchainV2WitnessConfig } from './Config.
|
|
5
|
+
import { EthereumGasEtherchainV2WitnessConfig } from './Config.ts';
|
|
6
6
|
export type EtherchainEthereumGasWitnessV2Params = WitnessParams<AnyConfigSchema<EthereumGasEtherchainV2WitnessConfig>>;
|
|
7
7
|
export declare class EtherchainEthereumGasWitnessV2 extends AbstractWitness<EtherchainEthereumGasWitnessV2Params> {
|
|
8
8
|
static readonly configSchemas: Schema[];
|
|
@@ -2,7 +2,7 @@ import { AbstractWitness } from '@xyo-network/abstract-witness';
|
|
|
2
2
|
import { AnyConfigSchema } from '@xyo-network/module-model';
|
|
3
3
|
import { Payload, Schema } from '@xyo-network/payload-model';
|
|
4
4
|
import { WitnessParams } from '@xyo-network/witness-model';
|
|
5
|
-
import { EthereumGasEtherchainV2WitnessConfig } from './Config.
|
|
5
|
+
import { EthereumGasEtherchainV2WitnessConfig } from './Config.ts';
|
|
6
6
|
export type EtherchainEthereumGasWitnessV2Params = WitnessParams<AnyConfigSchema<EthereumGasEtherchainV2WitnessConfig>>;
|
|
7
7
|
export declare class EtherchainEthereumGasWitnessV2 extends AbstractWitness<EtherchainEthereumGasWitnessV2Params> {
|
|
8
8
|
static readonly configSchemas: Schema[];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/index.ts","../../src/Plugin.ts","../../src/Witness.ts","../../src/lib/getV2GasFromEtherchain.ts","../../src/Schema.ts"],"sourcesContent":["export * from './Config.
|
|
1
|
+
{"version":3,"sources":["../../src/index.ts","../../src/Plugin.ts","../../src/Witness.ts","../../src/lib/getV2GasFromEtherchain.ts","../../src/Schema.ts"],"sourcesContent":["export * from './Config.ts'\n// eslint-disable-next-line import/no-default-export\nexport { EthereumGasEtherchainV2Plugin as default, EthereumGasEtherchainV2Plugin } from './Plugin.ts'\nexport * from './Schema.ts'\nexport * from './Witness.ts'\n","import { EthereumGasEtherchainV2Schema } from '@xyo-network/etherchain-ethereum-gas-v2-payload-plugin'\nimport { PayloadSetSchema } from '@xyo-network/payload-model'\nimport { createPayloadSetWitnessPlugin } from '@xyo-network/payloadset-plugin'\n\nimport { EtherchainEthereumGasWitnessV2 } from './Witness.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;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;;;ACAA,IAAAA,oDAA8C;AAC9C,2BAAiC;AACjC,+BAA8C;;;ACF9C,8BAAgC;AAChC,uDAA8E;;;ACD9E,mBAAsB;AAGtB,IAAM,MAAM;AAEL,IAAM,yBAAyB,YAAsD;AAC1F,UAAQ,MAAM,mBAAM,IAAqC,GAAG,GAAG;AACjE;;;ACNO,IAAM,6CACT;;;AFUG,IAAM,iCAAN,cAA6C,wCAAsD;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,UAC3C;AAAA,EACE,EAAE,UAAU,EAAE,CAAC,+EAA6B,GAAG,EAAE,GAAG,QAAQ,sCAAiB;AAAA,EAC7E;AAAA,IACE,SAAS,OAAO,WAAW;AACzB,aAAQ,MAAM,+BAA+B,OAAO,MAAM;AAAA,IAC5D;AAAA,EACF;AACF;","names":["import_etherchain_ethereum_gas_v2_payload_plugin"]}
|
package/dist/browser/index.d.cts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export * from './Config.
|
|
2
|
-
export { EthereumGasEtherchainV2Plugin as default, EthereumGasEtherchainV2Plugin } from './Plugin.
|
|
3
|
-
export * from './Schema.
|
|
4
|
-
export * from './Witness.
|
|
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
5
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/browser/index.d.mts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export * from './Config.
|
|
2
|
-
export { EthereumGasEtherchainV2Plugin as default, EthereumGasEtherchainV2Plugin } from './Plugin.
|
|
3
|
-
export * from './Schema.
|
|
4
|
-
export * from './Witness.
|
|
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
5
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/browser/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export * from './Config.
|
|
2
|
-
export { EthereumGasEtherchainV2Plugin as default, EthereumGasEtherchainV2Plugin } from './Plugin.
|
|
3
|
-
export * from './Schema.
|
|
4
|
-
export * from './Witness.
|
|
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
5
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -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.
|
|
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"]}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export * from './getV2GasFromEtherchain.
|
|
1
|
+
export * from './getV2GasFromEtherchain.ts';
|
|
2
2
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export * from './getV2GasFromEtherchain.
|
|
1
|
+
export * from './getV2GasFromEtherchain.ts';
|
|
2
2
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export * from './getV2GasFromEtherchain.
|
|
1
|
+
export * from './getV2GasFromEtherchain.ts';
|
|
2
2
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { WitnessConfig } from '@xyo-network/witness-model';
|
|
2
|
-
import { EthereumGasEtherchainV2WitnessConfigSchema } from './Schema.
|
|
2
|
+
import { EthereumGasEtherchainV2WitnessConfigSchema } from './Schema.ts';
|
|
3
3
|
export type EthereumGasEtherchainV2WitnessConfig = WitnessConfig<{
|
|
4
4
|
schema: EthereumGasEtherchainV2WitnessConfigSchema;
|
|
5
5
|
}>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { WitnessConfig } from '@xyo-network/witness-model';
|
|
2
|
-
import { EthereumGasEtherchainV2WitnessConfigSchema } from './Schema.
|
|
2
|
+
import { EthereumGasEtherchainV2WitnessConfigSchema } from './Schema.ts';
|
|
3
3
|
export type EthereumGasEtherchainV2WitnessConfig = WitnessConfig<{
|
|
4
4
|
schema: EthereumGasEtherchainV2WitnessConfigSchema;
|
|
5
5
|
}>;
|
package/dist/neutral/Config.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { WitnessConfig } from '@xyo-network/witness-model';
|
|
2
|
-
import { EthereumGasEtherchainV2WitnessConfigSchema } from './Schema.
|
|
2
|
+
import { EthereumGasEtherchainV2WitnessConfigSchema } from './Schema.ts';
|
|
3
3
|
export type EthereumGasEtherchainV2WitnessConfig = WitnessConfig<{
|
|
4
4
|
schema: EthereumGasEtherchainV2WitnessConfigSchema;
|
|
5
5
|
}>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export declare const EthereumGasEtherchainV2Plugin: () => import("@xyo-network/payloadset-plugin").PayloadSetWitnessPlugin<import("@xyo-network/witness-model").WitnessModule<import("
|
|
1
|
+
export declare const EthereumGasEtherchainV2Plugin: () => import("@xyo-network/payloadset-plugin").PayloadSetWitnessPlugin<import("@xyo-network/witness-model").WitnessModule<import(".store/@xylabs-object-npm-3.6.12-443b813787/package").BaseParamsFields & {
|
|
2
2
|
account?: import("@xyo-network/account-model").AccountInstance | "random";
|
|
3
3
|
addToResolvers?: boolean;
|
|
4
4
|
additionalSigners?: import("@xyo-network/account-model").AccountInstance[];
|
|
@@ -12,10 +12,10 @@ export declare const EthereumGasEtherchainV2Plugin: () => import("@xyo-network/p
|
|
|
12
12
|
};
|
|
13
13
|
ephemeralQueryAccountEnabled?: boolean;
|
|
14
14
|
moduleIdentifierTransformers?: import("@xyo-network/module-model").ModuleIdentifierTransformer[];
|
|
15
|
-
}, import("@xyo-network/witness-model").WitnessModuleEventData<import("@xyo-network/module-model").ModuleInstance<import("
|
|
16
|
-
account?: import("
|
|
15
|
+
}, import("@xyo-network/witness-model").WitnessModuleEventData<import("@xyo-network/module-model").ModuleInstance<import(".store/@xylabs-object-npm-3.6.12-443b813787/package").BaseParamsFields & {
|
|
16
|
+
account?: import(".store/@xyo-network-account-model-virtual-c593258ccf/package").AccountInstance | "random";
|
|
17
17
|
addToResolvers?: boolean;
|
|
18
|
-
additionalSigners?: import("
|
|
18
|
+
additionalSigners?: import(".store/@xyo-network-account-model-virtual-c593258ccf/package").AccountInstance[];
|
|
19
19
|
allowNameResolution?: boolean;
|
|
20
20
|
config: import("@xyo-network/payload-model").SchemaFields & import("@xyo-network/payload-model").PayloadFields & Omit<import("@xyo-network/module-model").ArchivingModuleConfig & import("@xyo-network/module-model").ModuleConfigFields & import("@xyo-network/payload-model").SchemaFields & import("@xyo-network/payload-model").PayloadFields & {
|
|
21
21
|
schema: "network.xyo.module.config";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export declare const EthereumGasEtherchainV2Plugin: () => import("@xyo-network/payloadset-plugin").PayloadSetWitnessPlugin<import("@xyo-network/witness-model").WitnessModule<import("
|
|
1
|
+
export declare const EthereumGasEtherchainV2Plugin: () => import("@xyo-network/payloadset-plugin").PayloadSetWitnessPlugin<import("@xyo-network/witness-model").WitnessModule<import(".store/@xylabs-object-npm-3.6.12-443b813787/package").BaseParamsFields & {
|
|
2
2
|
account?: import("@xyo-network/account-model").AccountInstance | "random";
|
|
3
3
|
addToResolvers?: boolean;
|
|
4
4
|
additionalSigners?: import("@xyo-network/account-model").AccountInstance[];
|
|
@@ -12,10 +12,10 @@ export declare const EthereumGasEtherchainV2Plugin: () => import("@xyo-network/p
|
|
|
12
12
|
};
|
|
13
13
|
ephemeralQueryAccountEnabled?: boolean;
|
|
14
14
|
moduleIdentifierTransformers?: import("@xyo-network/module-model").ModuleIdentifierTransformer[];
|
|
15
|
-
}, import("@xyo-network/witness-model").WitnessModuleEventData<import("@xyo-network/module-model").ModuleInstance<import("
|
|
16
|
-
account?: import("
|
|
15
|
+
}, import("@xyo-network/witness-model").WitnessModuleEventData<import("@xyo-network/module-model").ModuleInstance<import(".store/@xylabs-object-npm-3.6.12-443b813787/package").BaseParamsFields & {
|
|
16
|
+
account?: import(".store/@xyo-network-account-model-virtual-c593258ccf/package").AccountInstance | "random";
|
|
17
17
|
addToResolvers?: boolean;
|
|
18
|
-
additionalSigners?: import("
|
|
18
|
+
additionalSigners?: import(".store/@xyo-network-account-model-virtual-c593258ccf/package").AccountInstance[];
|
|
19
19
|
allowNameResolution?: boolean;
|
|
20
20
|
config: import("@xyo-network/payload-model").SchemaFields & import("@xyo-network/payload-model").PayloadFields & Omit<import("@xyo-network/module-model").ArchivingModuleConfig & import("@xyo-network/module-model").ModuleConfigFields & import("@xyo-network/payload-model").SchemaFields & import("@xyo-network/payload-model").PayloadFields & {
|
|
21
21
|
schema: "network.xyo.module.config";
|
package/dist/neutral/Plugin.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export declare const EthereumGasEtherchainV2Plugin: () => import("@xyo-network/payloadset-plugin").PayloadSetWitnessPlugin<import("@xyo-network/witness-model").WitnessModule<import("
|
|
1
|
+
export declare const EthereumGasEtherchainV2Plugin: () => import("@xyo-network/payloadset-plugin").PayloadSetWitnessPlugin<import("@xyo-network/witness-model").WitnessModule<import(".store/@xylabs-object-npm-3.6.12-443b813787/package").BaseParamsFields & {
|
|
2
2
|
account?: import("@xyo-network/account-model").AccountInstance | "random";
|
|
3
3
|
addToResolvers?: boolean;
|
|
4
4
|
additionalSigners?: import("@xyo-network/account-model").AccountInstance[];
|
|
@@ -12,10 +12,10 @@ export declare const EthereumGasEtherchainV2Plugin: () => import("@xyo-network/p
|
|
|
12
12
|
};
|
|
13
13
|
ephemeralQueryAccountEnabled?: boolean;
|
|
14
14
|
moduleIdentifierTransformers?: import("@xyo-network/module-model").ModuleIdentifierTransformer[];
|
|
15
|
-
}, import("@xyo-network/witness-model").WitnessModuleEventData<import("@xyo-network/module-model").ModuleInstance<import("
|
|
16
|
-
account?: import("
|
|
15
|
+
}, import("@xyo-network/witness-model").WitnessModuleEventData<import("@xyo-network/module-model").ModuleInstance<import(".store/@xylabs-object-npm-3.6.12-443b813787/package").BaseParamsFields & {
|
|
16
|
+
account?: import(".store/@xyo-network-account-model-virtual-c593258ccf/package").AccountInstance | "random";
|
|
17
17
|
addToResolvers?: boolean;
|
|
18
|
-
additionalSigners?: import("
|
|
18
|
+
additionalSigners?: import(".store/@xyo-network-account-model-virtual-c593258ccf/package").AccountInstance[];
|
|
19
19
|
allowNameResolution?: boolean;
|
|
20
20
|
config: import("@xyo-network/payload-model").SchemaFields & import("@xyo-network/payload-model").PayloadFields & Omit<import("@xyo-network/module-model").ArchivingModuleConfig & import("@xyo-network/module-model").ModuleConfigFields & import("@xyo-network/payload-model").SchemaFields & import("@xyo-network/payload-model").PayloadFields & {
|
|
21
21
|
schema: "network.xyo.module.config";
|
|
@@ -1 +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,
|
|
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"}
|
|
@@ -1 +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,
|
|
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"}
|
|
@@ -1 +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,
|
|
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"}
|
|
@@ -2,7 +2,7 @@ import { AbstractWitness } from '@xyo-network/abstract-witness';
|
|
|
2
2
|
import { AnyConfigSchema } from '@xyo-network/module-model';
|
|
3
3
|
import { Payload, Schema } from '@xyo-network/payload-model';
|
|
4
4
|
import { WitnessParams } from '@xyo-network/witness-model';
|
|
5
|
-
import { EthereumGasEtherchainV2WitnessConfig } from './Config.
|
|
5
|
+
import { EthereumGasEtherchainV2WitnessConfig } from './Config.ts';
|
|
6
6
|
export type EtherchainEthereumGasWitnessV2Params = WitnessParams<AnyConfigSchema<EthereumGasEtherchainV2WitnessConfig>>;
|
|
7
7
|
export declare class EtherchainEthereumGasWitnessV2 extends AbstractWitness<EtherchainEthereumGasWitnessV2Params> {
|
|
8
8
|
static readonly configSchemas: Schema[];
|
|
@@ -2,7 +2,7 @@ import { AbstractWitness } from '@xyo-network/abstract-witness';
|
|
|
2
2
|
import { AnyConfigSchema } from '@xyo-network/module-model';
|
|
3
3
|
import { Payload, Schema } from '@xyo-network/payload-model';
|
|
4
4
|
import { WitnessParams } from '@xyo-network/witness-model';
|
|
5
|
-
import { EthereumGasEtherchainV2WitnessConfig } from './Config.
|
|
5
|
+
import { EthereumGasEtherchainV2WitnessConfig } from './Config.ts';
|
|
6
6
|
export type EtherchainEthereumGasWitnessV2Params = WitnessParams<AnyConfigSchema<EthereumGasEtherchainV2WitnessConfig>>;
|
|
7
7
|
export declare class EtherchainEthereumGasWitnessV2 extends AbstractWitness<EtherchainEthereumGasWitnessV2Params> {
|
|
8
8
|
static readonly configSchemas: Schema[];
|
|
@@ -2,7 +2,7 @@ import { AbstractWitness } from '@xyo-network/abstract-witness';
|
|
|
2
2
|
import { AnyConfigSchema } from '@xyo-network/module-model';
|
|
3
3
|
import { Payload, Schema } from '@xyo-network/payload-model';
|
|
4
4
|
import { WitnessParams } from '@xyo-network/witness-model';
|
|
5
|
-
import { EthereumGasEtherchainV2WitnessConfig } from './Config.
|
|
5
|
+
import { EthereumGasEtherchainV2WitnessConfig } from './Config.ts';
|
|
6
6
|
export type EtherchainEthereumGasWitnessV2Params = WitnessParams<AnyConfigSchema<EthereumGasEtherchainV2WitnessConfig>>;
|
|
7
7
|
export declare class EtherchainEthereumGasWitnessV2 extends AbstractWitness<EtherchainEthereumGasWitnessV2Params> {
|
|
8
8
|
static readonly configSchemas: Schema[];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/index.ts","../../src/Plugin.ts","../../src/Witness.ts","../../src/lib/getV2GasFromEtherchain.ts","../../src/Schema.ts"],"sourcesContent":["export * from './Config.
|
|
1
|
+
{"version":3,"sources":["../../src/index.ts","../../src/Plugin.ts","../../src/Witness.ts","../../src/lib/getV2GasFromEtherchain.ts","../../src/Schema.ts"],"sourcesContent":["export * from './Config.ts'\n// eslint-disable-next-line import/no-default-export\nexport { EthereumGasEtherchainV2Plugin as default, EthereumGasEtherchainV2Plugin } from './Plugin.ts'\nexport * from './Schema.ts'\nexport * from './Witness.ts'\n","import { EthereumGasEtherchainV2Schema } from '@xyo-network/etherchain-ethereum-gas-v2-payload-plugin'\nimport { PayloadSetSchema } from '@xyo-network/payload-model'\nimport { createPayloadSetWitnessPlugin } from '@xyo-network/payloadset-plugin'\n\nimport { EtherchainEthereumGasWitnessV2 } from './Witness.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;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;;;ACAA,IAAAA,oDAA8C;AAC9C,2BAAiC;AACjC,+BAA8C;;;ACF9C,8BAAgC;AAChC,uDAA8E;;;ACD9E,mBAAsB;AAGtB,IAAM,MAAM;AAEL,IAAM,yBAAyB,YAAsD;AAC1F,UAAQ,MAAM,mBAAM,IAAqC,GAAG,GAAG;AACjE;;;ACNO,IAAM,6CACT;;;AFUG,IAAM,iCAAN,cAA6C,wCAAsD;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,UAC3C;AAAA,EACE,EAAE,UAAU,EAAE,CAAC,+EAA6B,GAAG,EAAE,GAAG,QAAQ,sCAAiB;AAAA,EAC7E;AAAA,IACE,SAAS,OAAO,WAAW;AACzB,aAAQ,MAAM,+BAA+B,OAAO,MAAM;AAAA,IAC5D;AAAA,EACF;AACF;","names":["import_etherchain_ethereum_gas_v2_payload_plugin"]}
|
package/dist/neutral/index.d.cts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export * from './Config.
|
|
2
|
-
export { EthereumGasEtherchainV2Plugin as default, EthereumGasEtherchainV2Plugin } from './Plugin.
|
|
3
|
-
export * from './Schema.
|
|
4
|
-
export * from './Witness.
|
|
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
5
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/neutral/index.d.mts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export * from './Config.
|
|
2
|
-
export { EthereumGasEtherchainV2Plugin as default, EthereumGasEtherchainV2Plugin } from './Plugin.
|
|
3
|
-
export * from './Schema.
|
|
4
|
-
export * from './Witness.
|
|
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
5
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/neutral/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export * from './Config.
|
|
2
|
-
export { EthereumGasEtherchainV2Plugin as default, EthereumGasEtherchainV2Plugin } from './Plugin.
|
|
3
|
-
export * from './Schema.
|
|
4
|
-
export * from './Witness.
|
|
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
5
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -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.
|
|
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"]}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export * from './getV2GasFromEtherchain.
|
|
1
|
+
export * from './getV2GasFromEtherchain.ts';
|
|
2
2
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export * from './getV2GasFromEtherchain.
|
|
1
|
+
export * from './getV2GasFromEtherchain.ts';
|
|
2
2
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export * from './getV2GasFromEtherchain.
|
|
1
|
+
export * from './getV2GasFromEtherchain.ts';
|
|
2
2
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/node/Config.d.cts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { WitnessConfig } from '@xyo-network/witness-model';
|
|
2
|
-
import { EthereumGasEtherchainV2WitnessConfigSchema } from './Schema.
|
|
2
|
+
import { EthereumGasEtherchainV2WitnessConfigSchema } from './Schema.ts';
|
|
3
3
|
export type EthereumGasEtherchainV2WitnessConfig = WitnessConfig<{
|
|
4
4
|
schema: EthereumGasEtherchainV2WitnessConfigSchema;
|
|
5
5
|
}>;
|
package/dist/node/Config.d.mts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { WitnessConfig } from '@xyo-network/witness-model';
|
|
2
|
-
import { EthereumGasEtherchainV2WitnessConfigSchema } from './Schema.
|
|
2
|
+
import { EthereumGasEtherchainV2WitnessConfigSchema } from './Schema.ts';
|
|
3
3
|
export type EthereumGasEtherchainV2WitnessConfig = WitnessConfig<{
|
|
4
4
|
schema: EthereumGasEtherchainV2WitnessConfigSchema;
|
|
5
5
|
}>;
|
package/dist/node/Config.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { WitnessConfig } from '@xyo-network/witness-model';
|
|
2
|
-
import { EthereumGasEtherchainV2WitnessConfigSchema } from './Schema.
|
|
2
|
+
import { EthereumGasEtherchainV2WitnessConfigSchema } from './Schema.ts';
|
|
3
3
|
export type EthereumGasEtherchainV2WitnessConfig = WitnessConfig<{
|
|
4
4
|
schema: EthereumGasEtherchainV2WitnessConfigSchema;
|
|
5
5
|
}>;
|
package/dist/node/Plugin.d.cts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export declare const EthereumGasEtherchainV2Plugin: () => import("@xyo-network/payloadset-plugin").PayloadSetWitnessPlugin<import("@xyo-network/witness-model").WitnessModule<import("
|
|
1
|
+
export declare const EthereumGasEtherchainV2Plugin: () => import("@xyo-network/payloadset-plugin").PayloadSetWitnessPlugin<import("@xyo-network/witness-model").WitnessModule<import(".store/@xylabs-object-npm-3.6.12-443b813787/package").BaseParamsFields & {
|
|
2
2
|
account?: import("@xyo-network/account-model").AccountInstance | "random";
|
|
3
3
|
addToResolvers?: boolean;
|
|
4
4
|
additionalSigners?: import("@xyo-network/account-model").AccountInstance[];
|
|
@@ -12,10 +12,10 @@ export declare const EthereumGasEtherchainV2Plugin: () => import("@xyo-network/p
|
|
|
12
12
|
};
|
|
13
13
|
ephemeralQueryAccountEnabled?: boolean;
|
|
14
14
|
moduleIdentifierTransformers?: import("@xyo-network/module-model").ModuleIdentifierTransformer[];
|
|
15
|
-
}, import("@xyo-network/witness-model").WitnessModuleEventData<import("@xyo-network/module-model").ModuleInstance<import("
|
|
16
|
-
account?: import("
|
|
15
|
+
}, import("@xyo-network/witness-model").WitnessModuleEventData<import("@xyo-network/module-model").ModuleInstance<import(".store/@xylabs-object-npm-3.6.12-443b813787/package").BaseParamsFields & {
|
|
16
|
+
account?: import(".store/@xyo-network-account-model-virtual-c593258ccf/package").AccountInstance | "random";
|
|
17
17
|
addToResolvers?: boolean;
|
|
18
|
-
additionalSigners?: import("
|
|
18
|
+
additionalSigners?: import(".store/@xyo-network-account-model-virtual-c593258ccf/package").AccountInstance[];
|
|
19
19
|
allowNameResolution?: boolean;
|
|
20
20
|
config: import("@xyo-network/payload-model").SchemaFields & import("@xyo-network/payload-model").PayloadFields & Omit<import("@xyo-network/module-model").ArchivingModuleConfig & import("@xyo-network/module-model").ModuleConfigFields & import("@xyo-network/payload-model").SchemaFields & import("@xyo-network/payload-model").PayloadFields & {
|
|
21
21
|
schema: "network.xyo.module.config";
|
package/dist/node/Plugin.d.mts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export declare const EthereumGasEtherchainV2Plugin: () => import("@xyo-network/payloadset-plugin").PayloadSetWitnessPlugin<import("@xyo-network/witness-model").WitnessModule<import("
|
|
1
|
+
export declare const EthereumGasEtherchainV2Plugin: () => import("@xyo-network/payloadset-plugin").PayloadSetWitnessPlugin<import("@xyo-network/witness-model").WitnessModule<import(".store/@xylabs-object-npm-3.6.12-443b813787/package").BaseParamsFields & {
|
|
2
2
|
account?: import("@xyo-network/account-model").AccountInstance | "random";
|
|
3
3
|
addToResolvers?: boolean;
|
|
4
4
|
additionalSigners?: import("@xyo-network/account-model").AccountInstance[];
|
|
@@ -12,10 +12,10 @@ export declare const EthereumGasEtherchainV2Plugin: () => import("@xyo-network/p
|
|
|
12
12
|
};
|
|
13
13
|
ephemeralQueryAccountEnabled?: boolean;
|
|
14
14
|
moduleIdentifierTransformers?: import("@xyo-network/module-model").ModuleIdentifierTransformer[];
|
|
15
|
-
}, import("@xyo-network/witness-model").WitnessModuleEventData<import("@xyo-network/module-model").ModuleInstance<import("
|
|
16
|
-
account?: import("
|
|
15
|
+
}, import("@xyo-network/witness-model").WitnessModuleEventData<import("@xyo-network/module-model").ModuleInstance<import(".store/@xylabs-object-npm-3.6.12-443b813787/package").BaseParamsFields & {
|
|
16
|
+
account?: import(".store/@xyo-network-account-model-virtual-c593258ccf/package").AccountInstance | "random";
|
|
17
17
|
addToResolvers?: boolean;
|
|
18
|
-
additionalSigners?: import("
|
|
18
|
+
additionalSigners?: import(".store/@xyo-network-account-model-virtual-c593258ccf/package").AccountInstance[];
|
|
19
19
|
allowNameResolution?: boolean;
|
|
20
20
|
config: import("@xyo-network/payload-model").SchemaFields & import("@xyo-network/payload-model").PayloadFields & Omit<import("@xyo-network/module-model").ArchivingModuleConfig & import("@xyo-network/module-model").ModuleConfigFields & import("@xyo-network/payload-model").SchemaFields & import("@xyo-network/payload-model").PayloadFields & {
|
|
21
21
|
schema: "network.xyo.module.config";
|
package/dist/node/Plugin.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export declare const EthereumGasEtherchainV2Plugin: () => import("@xyo-network/payloadset-plugin").PayloadSetWitnessPlugin<import("@xyo-network/witness-model").WitnessModule<import("
|
|
1
|
+
export declare const EthereumGasEtherchainV2Plugin: () => import("@xyo-network/payloadset-plugin").PayloadSetWitnessPlugin<import("@xyo-network/witness-model").WitnessModule<import(".store/@xylabs-object-npm-3.6.12-443b813787/package").BaseParamsFields & {
|
|
2
2
|
account?: import("@xyo-network/account-model").AccountInstance | "random";
|
|
3
3
|
addToResolvers?: boolean;
|
|
4
4
|
additionalSigners?: import("@xyo-network/account-model").AccountInstance[];
|
|
@@ -12,10 +12,10 @@ export declare const EthereumGasEtherchainV2Plugin: () => import("@xyo-network/p
|
|
|
12
12
|
};
|
|
13
13
|
ephemeralQueryAccountEnabled?: boolean;
|
|
14
14
|
moduleIdentifierTransformers?: import("@xyo-network/module-model").ModuleIdentifierTransformer[];
|
|
15
|
-
}, import("@xyo-network/witness-model").WitnessModuleEventData<import("@xyo-network/module-model").ModuleInstance<import("
|
|
16
|
-
account?: import("
|
|
15
|
+
}, import("@xyo-network/witness-model").WitnessModuleEventData<import("@xyo-network/module-model").ModuleInstance<import(".store/@xylabs-object-npm-3.6.12-443b813787/package").BaseParamsFields & {
|
|
16
|
+
account?: import(".store/@xyo-network-account-model-virtual-c593258ccf/package").AccountInstance | "random";
|
|
17
17
|
addToResolvers?: boolean;
|
|
18
|
-
additionalSigners?: import("
|
|
18
|
+
additionalSigners?: import(".store/@xyo-network-account-model-virtual-c593258ccf/package").AccountInstance[];
|
|
19
19
|
allowNameResolution?: boolean;
|
|
20
20
|
config: import("@xyo-network/payload-model").SchemaFields & import("@xyo-network/payload-model").PayloadFields & Omit<import("@xyo-network/module-model").ArchivingModuleConfig & import("@xyo-network/module-model").ModuleConfigFields & import("@xyo-network/payload-model").SchemaFields & import("@xyo-network/payload-model").PayloadFields & {
|
|
21
21
|
schema: "network.xyo.module.config";
|
|
@@ -1 +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,
|
|
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"}
|
|
@@ -1 +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,
|
|
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"}
|
|
@@ -1 +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,
|
|
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"}
|
package/dist/node/Witness.d.cts
CHANGED
|
@@ -2,7 +2,7 @@ import { AbstractWitness } from '@xyo-network/abstract-witness';
|
|
|
2
2
|
import { AnyConfigSchema } from '@xyo-network/module-model';
|
|
3
3
|
import { Payload, Schema } from '@xyo-network/payload-model';
|
|
4
4
|
import { WitnessParams } from '@xyo-network/witness-model';
|
|
5
|
-
import { EthereumGasEtherchainV2WitnessConfig } from './Config.
|
|
5
|
+
import { EthereumGasEtherchainV2WitnessConfig } from './Config.ts';
|
|
6
6
|
export type EtherchainEthereumGasWitnessV2Params = WitnessParams<AnyConfigSchema<EthereumGasEtherchainV2WitnessConfig>>;
|
|
7
7
|
export declare class EtherchainEthereumGasWitnessV2 extends AbstractWitness<EtherchainEthereumGasWitnessV2Params> {
|
|
8
8
|
static readonly configSchemas: Schema[];
|
package/dist/node/Witness.d.mts
CHANGED
|
@@ -2,7 +2,7 @@ import { AbstractWitness } from '@xyo-network/abstract-witness';
|
|
|
2
2
|
import { AnyConfigSchema } from '@xyo-network/module-model';
|
|
3
3
|
import { Payload, Schema } from '@xyo-network/payload-model';
|
|
4
4
|
import { WitnessParams } from '@xyo-network/witness-model';
|
|
5
|
-
import { EthereumGasEtherchainV2WitnessConfig } from './Config.
|
|
5
|
+
import { EthereumGasEtherchainV2WitnessConfig } from './Config.ts';
|
|
6
6
|
export type EtherchainEthereumGasWitnessV2Params = WitnessParams<AnyConfigSchema<EthereumGasEtherchainV2WitnessConfig>>;
|
|
7
7
|
export declare class EtherchainEthereumGasWitnessV2 extends AbstractWitness<EtherchainEthereumGasWitnessV2Params> {
|
|
8
8
|
static readonly configSchemas: Schema[];
|
package/dist/node/Witness.d.ts
CHANGED
|
@@ -2,7 +2,7 @@ import { AbstractWitness } from '@xyo-network/abstract-witness';
|
|
|
2
2
|
import { AnyConfigSchema } from '@xyo-network/module-model';
|
|
3
3
|
import { Payload, Schema } from '@xyo-network/payload-model';
|
|
4
4
|
import { WitnessParams } from '@xyo-network/witness-model';
|
|
5
|
-
import { EthereumGasEtherchainV2WitnessConfig } from './Config.
|
|
5
|
+
import { EthereumGasEtherchainV2WitnessConfig } from './Config.ts';
|
|
6
6
|
export type EtherchainEthereumGasWitnessV2Params = WitnessParams<AnyConfigSchema<EthereumGasEtherchainV2WitnessConfig>>;
|
|
7
7
|
export declare class EtherchainEthereumGasWitnessV2 extends AbstractWitness<EtherchainEthereumGasWitnessV2Params> {
|
|
8
8
|
static readonly configSchemas: Schema[];
|
package/dist/node/index.cjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/index.ts","../../src/Plugin.ts","../../src/Witness.ts","../../src/lib/getV2GasFromEtherchain.ts","../../src/Schema.ts"],"sourcesContent":["export * from './Config.
|
|
1
|
+
{"version":3,"sources":["../../src/index.ts","../../src/Plugin.ts","../../src/Witness.ts","../../src/lib/getV2GasFromEtherchain.ts","../../src/Schema.ts"],"sourcesContent":["export * from './Config.ts'\n// eslint-disable-next-line import/no-default-export\nexport { EthereumGasEtherchainV2Plugin as default, EthereumGasEtherchainV2Plugin } from './Plugin.ts'\nexport * from './Schema.ts'\nexport * from './Witness.ts'\n","import { EthereumGasEtherchainV2Schema } from '@xyo-network/etherchain-ethereum-gas-v2-payload-plugin'\nimport { PayloadSetSchema } from '@xyo-network/payload-model'\nimport { createPayloadSetWitnessPlugin } from '@xyo-network/payloadset-plugin'\n\nimport { EtherchainEthereumGasWitnessV2 } from './Witness.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;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;;;ACAA,IAAAA,oDAA8C;AAC9C,2BAAiC;AACjC,+BAA8C;;;ACF9C,8BAAgC;AAChC,uDAA8E;;;ACD9E,mBAAsB;AAGtB,IAAM,MAAM;AAEL,IAAM,yBAAyB,YAAsD;AAC1F,UAAQ,MAAM,mBAAM,IAAqC,GAAG,GAAG;AACjE;;;ACNO,IAAM,6CACT;;;AFUG,IAAM,iCAAN,cAA6C,wCAAsD;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,UAC3C;AAAA,EACE,EAAE,UAAU,EAAE,CAAC,+EAA6B,GAAG,EAAE,GAAG,QAAQ,sCAAiB;AAAA,EAC7E;AAAA,IACE,SAAS,OAAO,WAAW;AACzB,aAAQ,MAAM,+BAA+B,OAAO,MAAM;AAAA,IAC5D;AAAA,EACF;AACF;","names":["import_etherchain_ethereum_gas_v2_payload_plugin"]}
|
package/dist/node/index.d.cts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export * from './Config.
|
|
2
|
-
export { EthereumGasEtherchainV2Plugin as default, EthereumGasEtherchainV2Plugin } from './Plugin.
|
|
3
|
-
export * from './Schema.
|
|
4
|
-
export * from './Witness.
|
|
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
5
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/node/index.d.mts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export * from './Config.
|
|
2
|
-
export { EthereumGasEtherchainV2Plugin as default, EthereumGasEtherchainV2Plugin } from './Plugin.
|
|
3
|
-
export * from './Schema.
|
|
4
|
-
export * from './Witness.
|
|
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
5
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/node/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export * from './Config.
|
|
2
|
-
export { EthereumGasEtherchainV2Plugin as default, EthereumGasEtherchainV2Plugin } from './Plugin.
|
|
3
|
-
export * from './Schema.
|
|
4
|
-
export * from './Witness.
|
|
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
5
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -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.
|
|
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"]}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export * from './getV2GasFromEtherchain.
|
|
1
|
+
export * from './getV2GasFromEtherchain.ts';
|
|
2
2
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export * from './getV2GasFromEtherchain.
|
|
1
|
+
export * from './getV2GasFromEtherchain.ts';
|
|
2
2
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/node/lib/index.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export * from './getV2GasFromEtherchain.
|
|
1
|
+
export * from './getV2GasFromEtherchain.ts';
|
|
2
2
|
//# sourceMappingURL=index.d.ts.map
|
package/package.json
CHANGED
|
@@ -10,19 +10,19 @@
|
|
|
10
10
|
"url": "https://github.com/XYOracleNetwork/plugins/issues"
|
|
11
11
|
},
|
|
12
12
|
"dependencies": {
|
|
13
|
-
"@xylabs/axios": "^3.6.
|
|
14
|
-
"@xyo-network/abstract-witness": "^2.
|
|
15
|
-
"@xyo-network/etherchain-ethereum-gas-v2-payload-plugin": "^2.99.
|
|
16
|
-
"@xyo-network/module-model": "^2.
|
|
17
|
-
"@xyo-network/payload-model": "^2.
|
|
18
|
-
"@xyo-network/payloadset-plugin": "^2.
|
|
19
|
-
"@xyo-network/witness-model": "^2.
|
|
13
|
+
"@xylabs/axios": "^3.6.12",
|
|
14
|
+
"@xyo-network/abstract-witness": "^2.111.3",
|
|
15
|
+
"@xyo-network/etherchain-ethereum-gas-v2-payload-plugin": "^2.99.6",
|
|
16
|
+
"@xyo-network/module-model": "^2.111.3",
|
|
17
|
+
"@xyo-network/payload-model": "^2.111.3",
|
|
18
|
+
"@xyo-network/payloadset-plugin": "^2.111.3",
|
|
19
|
+
"@xyo-network/witness-model": "^2.111.3"
|
|
20
20
|
},
|
|
21
21
|
"devDependencies": {
|
|
22
|
-
"@xylabs/ts-scripts-yarn3": "^3.
|
|
23
|
-
"@xylabs/tsconfig": "^3.
|
|
24
|
-
"@xyo-network/payload-wrapper": "^2.
|
|
25
|
-
"typescript": "^5.5.
|
|
22
|
+
"@xylabs/ts-scripts-yarn3": "^3.15.14",
|
|
23
|
+
"@xylabs/tsconfig": "^3.15.14",
|
|
24
|
+
"@xyo-network/payload-wrapper": "^2.111.3",
|
|
25
|
+
"typescript": "^5.5.4"
|
|
26
26
|
},
|
|
27
27
|
"description": "Typescript/Javascript Plugins for XYO Platform",
|
|
28
28
|
"types": "dist/node/index.d.ts",
|
|
@@ -35,7 +35,7 @@
|
|
|
35
35
|
},
|
|
36
36
|
"import": {
|
|
37
37
|
"types": "./dist/browser/index.d.mts",
|
|
38
|
-
"default": "./dist/browser/index.
|
|
38
|
+
"default": "./dist/browser/index.mjs"
|
|
39
39
|
}
|
|
40
40
|
},
|
|
41
41
|
"node": {
|
|
@@ -45,14 +45,14 @@
|
|
|
45
45
|
},
|
|
46
46
|
"import": {
|
|
47
47
|
"types": "./dist/node/index.d.mts",
|
|
48
|
-
"default": "./dist/node/index.
|
|
48
|
+
"default": "./dist/node/index.mjs"
|
|
49
49
|
}
|
|
50
50
|
}
|
|
51
51
|
},
|
|
52
52
|
"./package.json": "./package.json"
|
|
53
53
|
},
|
|
54
54
|
"main": "dist/node/index.cjs",
|
|
55
|
-
"module": "dist/node/index.
|
|
55
|
+
"module": "dist/node/index.mjs",
|
|
56
56
|
"homepage": "https://xyo.network",
|
|
57
57
|
"license": "LGPL-3.0-only",
|
|
58
58
|
"publishConfig": {
|
|
@@ -63,6 +63,6 @@
|
|
|
63
63
|
"url": "https://github.com/XYOracleNetwork/plugins.git"
|
|
64
64
|
},
|
|
65
65
|
"sideEffects": false,
|
|
66
|
-
"version": "2.99.
|
|
66
|
+
"version": "2.99.6",
|
|
67
67
|
"type": "module"
|
|
68
68
|
}
|
package/src/Config.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { WitnessConfig } from '@xyo-network/witness-model'
|
|
2
2
|
|
|
3
|
-
import { EthereumGasEtherchainV2WitnessConfigSchema } from './Schema.
|
|
3
|
+
import { EthereumGasEtherchainV2WitnessConfigSchema } from './Schema.ts'
|
|
4
4
|
|
|
5
5
|
export type EthereumGasEtherchainV2WitnessConfig = WitnessConfig<{
|
|
6
6
|
schema: EthereumGasEtherchainV2WitnessConfigSchema
|
package/src/Plugin.ts
CHANGED
|
@@ -2,7 +2,7 @@ import { EthereumGasEtherchainV2Schema } from '@xyo-network/etherchain-ethereum-
|
|
|
2
2
|
import { PayloadSetSchema } from '@xyo-network/payload-model'
|
|
3
3
|
import { createPayloadSetWitnessPlugin } from '@xyo-network/payloadset-plugin'
|
|
4
4
|
|
|
5
|
-
import { EtherchainEthereumGasWitnessV2 } from './Witness.
|
|
5
|
+
import { EtherchainEthereumGasWitnessV2 } from './Witness.ts'
|
|
6
6
|
|
|
7
7
|
export const EthereumGasEtherchainV2Plugin = () =>
|
|
8
8
|
createPayloadSetWitnessPlugin(
|
package/src/Schema.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
export type EthereumGasEtherchainV2WitnessConfigSchema = 'network.xyo.blockchain.ethereum.gas.etherchain.v2.witness.config'
|
|
2
|
-
export const EthereumGasEtherchainV2WitnessConfigSchema: EthereumGasEtherchainV2WitnessConfigSchema
|
|
3
|
-
'network.xyo.blockchain.ethereum.gas.etherchain.v2.witness.config'
|
|
2
|
+
export const EthereumGasEtherchainV2WitnessConfigSchema: EthereumGasEtherchainV2WitnessConfigSchema
|
|
3
|
+
= 'network.xyo.blockchain.ethereum.gas.etherchain.v2.witness.config'
|
package/src/Witness.ts
CHANGED
|
@@ -4,9 +4,9 @@ import { AnyConfigSchema } from '@xyo-network/module-model'
|
|
|
4
4
|
import { Payload, Schema } from '@xyo-network/payload-model'
|
|
5
5
|
import { WitnessParams } from '@xyo-network/witness-model'
|
|
6
6
|
|
|
7
|
-
import { EthereumGasEtherchainV2WitnessConfig } from './Config.
|
|
8
|
-
import { getV2GasFromEtherchain } from './lib/index.
|
|
9
|
-
import { EthereumGasEtherchainV2WitnessConfigSchema } from './Schema.
|
|
7
|
+
import { EthereumGasEtherchainV2WitnessConfig } from './Config.ts'
|
|
8
|
+
import { getV2GasFromEtherchain } from './lib/index.ts'
|
|
9
|
+
import { EthereumGasEtherchainV2WitnessConfigSchema } from './Schema.ts'
|
|
10
10
|
|
|
11
11
|
export type EtherchainEthereumGasWitnessV2Params = WitnessParams<AnyConfigSchema<EthereumGasEtherchainV2WitnessConfig>>
|
|
12
12
|
|
package/src/index.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export * from './Config.
|
|
1
|
+
export * from './Config.ts'
|
|
2
2
|
// eslint-disable-next-line import/no-default-export
|
|
3
|
-
export { EthereumGasEtherchainV2Plugin as default, EthereumGasEtherchainV2Plugin } from './Plugin.
|
|
4
|
-
export * from './Schema.
|
|
5
|
-
export * from './Witness.
|
|
3
|
+
export { EthereumGasEtherchainV2Plugin as default, EthereumGasEtherchainV2Plugin } from './Plugin.ts'
|
|
4
|
+
export * from './Schema.ts'
|
|
5
|
+
export * from './Witness.ts'
|
package/src/lib/index.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export * from './getV2GasFromEtherchain.
|
|
1
|
+
export * from './getV2GasFromEtherchain.ts'
|