@xyo-network/ethers-ethereum-gas-plugin 3.4.1 → 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.
@@ -0,0 +1,6 @@
1
+ import { WitnessConfig } from '@xyo-network/witness-model';
2
+ import { EthereumGasEthersWitnessConfigSchema } from './Schema.ts';
3
+ export type EthereumGasEthersWitnessConfig = WitnessConfig<{
4
+ schema: EthereumGasEthersWitnessConfigSchema;
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,oCAAoC,EAAE,MAAM,aAAa,CAAA;AAElE,MAAM,MAAM,8BAA8B,GAAG,aAAa,CAAC;IACzD,MAAM,EAAE,oCAAoC,CAAA;CAC7C,CAAC,CAAA"}
@@ -0,0 +1,15 @@
1
+ import { EthereumGasEthersWitness } from './Witness.ts';
2
+ export declare const EthereumGasEthersPlugin: () => import("@xyo-network/payloadset-plugin").PayloadSetWitnessPlugin<EthereumGasEthersWitness<import(".store/@xylabs-object-npm-4.5.1-e31c389195/package").BaseParamsFields & {
3
+ account?: import(".store/@xyo-network-account-model-virtual-26592e0d6e/package").AccountInstance | "random";
4
+ addToResolvers?: boolean;
5
+ additionalSigners?: import(".store/@xyo-network-account-model-virtual-26592e0d6e/package").AccountInstance[];
6
+ allowNameResolution?: boolean;
7
+ config: import("@xyo-network/module-model").AnyConfigSchema<import("./Config.ts").EthereumGasEthersWitnessConfig>;
8
+ ephemeralQueryAccountEnabled?: boolean;
9
+ moduleIdentifierTransformers?: import("@xyo-network/module-model").ModuleIdentifierTransformer[];
10
+ privateChildren?: import("@xyo-network/module-model").ModuleInstance[];
11
+ publicChildren?: import("@xyo-network/module-model").ModuleInstance[];
12
+ } & {
13
+ provider?: import("ethers").Provider;
14
+ }>>;
15
+ //# sourceMappingURL=Plugin.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Plugin.d.ts","sourceRoot":"","sources":["../../src/Plugin.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,wBAAwB,EAAE,MAAM,cAAc,CAAA;AAEvD,eAAO,MAAM,uBAAuB;;;;;;;;;;;;GAQjC,CAAA"}
@@ -0,0 +1,3 @@
1
+ export type EthereumGasEthersWitnessConfigSchema = 'network.xyo.blockchain.ethereum.gas.ethers.witness.config';
2
+ export declare const EthereumGasEthersWitnessConfigSchema: EthereumGasEthersWitnessConfigSchema;
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,oCAAoC,GAAG,2DAA2D,CAAA;AAC9G,eAAO,MAAM,oCAAoC,EAAE,oCAAkG,CAAA"}
@@ -0,0 +1,17 @@
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 { Provider } from 'ethers';
6
+ import { EthereumGasEthersWitnessConfig } from './Config.ts';
7
+ export type EthereumGasEthersWitnessParams = WitnessParams<AnyConfigSchema<EthereumGasEthersWitnessConfig>, {
8
+ provider?: Provider;
9
+ }>;
10
+ export declare class EthereumGasEthersWitness<TParams extends EthereumGasEthersWitnessParams = EthereumGasEthersWitnessParams> extends AbstractWitness<TParams> {
11
+ static readonly configSchemas: Schema[];
12
+ static readonly defaultConfigSchema: Schema;
13
+ private _provider?;
14
+ protected get provider(): Provider | undefined;
15
+ protected observeHandler(): Promise<Payload[]>;
16
+ }
17
+ //# sourceMappingURL=Witness.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Witness.d.ts","sourceRoot":"","sources":["../../src/Witness.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,eAAe,EAAE,MAAM,+BAA+B,CAAA;AAE/D,OAAO,EAAE,eAAe,EAAE,MAAM,2BAA2B,CAAA;AAE3D,OAAO,EAAE,OAAO,EAAE,MAAM,EAAE,MAAM,4BAA4B,CAAA;AAC5D,OAAO,EAAE,aAAa,EAAE,MAAM,4BAA4B,CAAA;AAC1D,OAAO,EAAE,QAAQ,EAAE,MAAM,QAAQ,CAAA;AAEjC,OAAO,EAAE,8BAA8B,EAAE,MAAM,aAAa,CAAA;AAI5D,MAAM,MAAM,8BAA8B,GAAG,aAAa,CACxD,eAAe,CAAC,8BAA8B,CAAC,EAC/C;IACE,QAAQ,CAAC,EAAE,QAAQ,CAAA;CACpB,CACF,CAAA;AAED,qBAAa,wBAAwB,CACnC,OAAO,SAAS,8BAA8B,GAAG,8BAA8B,CAC/E,SAAQ,eAAe,CAAC,OAAO,CAAC;IAChC,gBAAyB,aAAa,EAAE,MAAM,EAAE,CAAiE;IACjH,gBAAyB,mBAAmB,EAAE,MAAM,CAAuC;IAE3F,OAAO,CAAC,SAAS,CAAC,CAAU;IAE5B,SAAS,KAAK,QAAQ,yBAGrB;cAEwB,cAAc,IAAI,OAAO,CAAC,OAAO,EAAE,CAAC;CAM9D"}
@@ -1,79 +1,5 @@
1
- import { WitnessConfig, WitnessParams } from '@xyo-network/witness-model';
2
- import * as _xyo_network_payloadset_plugin from '@xyo-network/payloadset-plugin';
3
- import * as ethers from 'ethers';
4
- import { Provider } from 'ethers';
5
- import * as _store__xylabs_logger_npm_4_5_1_a411051254_package from '.store/@xylabs-logger-npm-4.5.1-a411051254/package';
6
- import * as _xyo_network_module_model from '@xyo-network/module-model';
7
- import { AnyConfigSchema } from '@xyo-network/module-model';
8
- import * as _xyo_network_payload_model from '@xyo-network/payload-model';
9
- import { Schema, Payload } from '@xyo-network/payload-model';
10
- import * as _store__xyo_network_account_model_virtual_3a3814c98f_package from '.store/@xyo-network-account-model-virtual-3a3814c98f/package';
11
- import * as _store__xylabs_object_npm_4_5_1_e31c389195_package from '.store/@xylabs-object-npm-4.5.1-e31c389195/package';
12
- import { AbstractWitness } from '@xyo-network/abstract-witness';
13
-
14
- type EthereumGasEthersWitnessConfigSchema = 'network.xyo.blockchain.ethereum.gas.ethers.witness.config';
15
- declare const EthereumGasEthersWitnessConfigSchema: EthereumGasEthersWitnessConfigSchema;
16
-
17
- type EthereumGasEthersWitnessConfig = WitnessConfig<{
18
- schema: EthereumGasEthersWitnessConfigSchema;
19
- }>;
20
-
21
- type EthereumGasEthersWitnessParams = WitnessParams<AnyConfigSchema<EthereumGasEthersWitnessConfig>, {
22
- provider?: Provider;
23
- }>;
24
- declare class EthereumGasEthersWitness<TParams extends EthereumGasEthersWitnessParams = EthereumGasEthersWitnessParams> extends AbstractWitness<TParams> {
25
- static readonly configSchemas: Schema[];
26
- static readonly defaultConfigSchema: Schema;
27
- private _provider?;
28
- protected get provider(): Provider | undefined;
29
- protected observeHandler(): Promise<Payload[]>;
30
- }
31
-
32
- declare const EthereumGasEthersPlugin: () => _xyo_network_payloadset_plugin.PayloadSetWitnessPlugin<EthereumGasEthersWitness<_store__xylabs_object_npm_4_5_1_e31c389195_package.BaseParamsFields & {
33
- account?: _store__xyo_network_account_model_virtual_3a3814c98f_package.AccountInstance | "random";
34
- addToResolvers?: boolean;
35
- additionalSigners?: _store__xyo_network_account_model_virtual_3a3814c98f_package.AccountInstance[];
36
- allowNameResolution?: boolean;
37
- config: _store__xylabs_object_npm_4_5_1_e31c389195_package.DeepRestrictToStringKeys<{
38
- schema: _xyo_network_payload_model.Schema;
39
- readonly archiving?: {
40
- readonly archivists?: string[] | undefined;
41
- readonly queries?: string[] | undefined;
42
- } | undefined;
43
- readonly allowedQueries?: string[] | undefined;
44
- readonly archivist?: _xyo_network_module_model.ModuleIdentifier | undefined;
45
- readonly consoleLogger?: _store__xylabs_logger_npm_4_5_1_a411051254_package.LogLevel | undefined;
46
- readonly labels?: {
47
- [x: string]: string | undefined;
48
- } | undefined;
49
- readonly name?: _xyo_network_module_model.ModuleName | undefined;
50
- readonly paging?: {
51
- [x: string]: {
52
- size?: number | undefined;
53
- };
54
- } | undefined;
55
- readonly retry?: {
56
- backoff?: number | undefined;
57
- interval?: number | undefined;
58
- retries?: number | undefined;
59
- } | undefined;
60
- readonly security?: {
61
- readonly allowAnonymous?: boolean | undefined;
62
- readonly allowed?: {
63
- [x: string]: (Lowercase<string> | Lowercase<string>[])[];
64
- } | undefined;
65
- readonly disallowed?: {
66
- [x: string]: Lowercase<string>[];
67
- } | undefined;
68
- } | undefined;
69
- readonly sign?: boolean | undefined;
70
- readonly storeQueries?: boolean | undefined;
71
- readonly timestamp?: boolean | undefined;
72
- }>;
73
- ephemeralQueryAccountEnabled?: boolean;
74
- moduleIdentifierTransformers?: _xyo_network_module_model.ModuleIdentifierTransformer[];
75
- } & {
76
- provider?: ethers.Provider;
77
- }>>;
78
-
79
- export { EthereumGasEthersPlugin, EthereumGasEthersWitness, type EthereumGasEthersWitnessConfig, EthereumGasEthersWitnessConfigSchema, type EthereumGasEthersWitnessParams, EthereumGasEthersPlugin as default };
1
+ export * from './Config.ts';
2
+ export { EthereumGasEthersPlugin as default, EthereumGasEthersPlugin } 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,uBAAuB,IAAI,OAAO,EAAE,uBAAuB,EAAE,MAAM,aAAa,CAAA;AACzF,cAAc,aAAa,CAAA;AAC3B,cAAc,cAAc,CAAA"}
@@ -1 +1 @@
1
- {"version":3,"sources":["../../src/Plugin.ts","../../src/Witness.ts","../../src/lib/getGasFromEthers.ts","../../src/Schema.ts"],"sourcesContent":["import { EthereumGasEthersSchema } from '@xyo-network/ethers-ethereum-gas-payload-plugin'\nimport { PayloadSetSchema } from '@xyo-network/payload-model'\nimport { createPayloadSetWitnessPlugin } from '@xyo-network/payloadset-plugin'\n\nimport { EthereumGasEthersWitness } from './Witness.ts'\n\nexport const EthereumGasEthersPlugin = () =>\n createPayloadSetWitnessPlugin<EthereumGasEthersWitness>(\n { required: { [EthereumGasEthersSchema]: 1 }, schema: PayloadSetSchema },\n {\n witness: async (params) => {\n return await EthereumGasEthersWitness.create(params)\n },\n },\n )\n","import { assertEx } from '@xylabs/assert'\nimport { AbstractWitness } from '@xyo-network/abstract-witness'\nimport type { EthereumGasEthersPayload } from '@xyo-network/ethers-ethereum-gas-payload-plugin'\nimport { EthereumGasEthersSchema } from '@xyo-network/ethers-ethereum-gas-payload-plugin'\nimport type { AnyConfigSchema } from '@xyo-network/module-model'\nimport { PayloadBuilder } from '@xyo-network/payload-builder'\nimport type { Payload, Schema } from '@xyo-network/payload-model'\nimport type { WitnessParams } from '@xyo-network/witness-model'\nimport type { Provider } from 'ethers'\n\nimport type { EthereumGasEthersWitnessConfig } from './Config.ts'\nimport { getGasFromEthers } from './lib/index.ts'\nimport { EthereumGasEthersWitnessConfigSchema } from './Schema.ts'\n\nexport type EthereumGasEthersWitnessParams = WitnessParams<\n AnyConfigSchema<EthereumGasEthersWitnessConfig>,\n {\n provider?: Provider\n }\n>\n\nexport class EthereumGasEthersWitness<\n TParams extends EthereumGasEthersWitnessParams = EthereumGasEthersWitnessParams,\n> extends AbstractWitness<TParams> {\n static override readonly configSchemas: Schema[] = [...super.configSchemas, EthereumGasEthersWitnessConfigSchema]\n static override readonly defaultConfigSchema: Schema = EthereumGasEthersWitnessConfigSchema\n\n private _provider?: Provider\n\n protected get provider() {\n this._provider = this._provider ?? this.params?.provider\n return this._provider\n }\n\n protected override async observeHandler(): Promise<Payload[]> {\n const payload = new PayloadBuilder<EthereumGasEthersPayload>({ schema: EthereumGasEthersSchema })\n .fields(await getGasFromEthers(assertEx(this.provider, () => 'Provider Required')))\n .build()\n return [payload]\n }\n}\n","import type { EthereumGasEthersResponse } from '@xyo-network/ethers-ethereum-gas-payload-plugin'\nimport type { Provider } from 'ethers'\n\nconst formatFeeDataValue = (value: bigint | null) => {\n return value ? Number(value) : null\n}\n\nexport const getGasFromEthers = async (provider: Provider): Promise<EthereumGasEthersResponse> => {\n // https://docs.ethers.io/v5/api/providers/provider/#Provider-getFeeData\n const feeData = await provider.getFeeData()\n const formattedFeeData: EthereumGasEthersResponse = {\n gasPrice: formatFeeDataValue(feeData.gasPrice),\n maxFeePerGas: formatFeeDataValue(feeData.maxFeePerGas),\n maxPriorityFeePerGas: formatFeeDataValue(feeData.maxPriorityFeePerGas),\n timestamp: Date.now(),\n }\n return formattedFeeData\n}\n","export type EthereumGasEthersWitnessConfigSchema = 'network.xyo.blockchain.ethereum.gas.ethers.witness.config'\nexport const EthereumGasEthersWitnessConfigSchema: EthereumGasEthersWitnessConfigSchema = 'network.xyo.blockchain.ethereum.gas.ethers.witness.config'\n"],"mappings":";AAAA,SAAS,2BAAAA,gCAA+B;AACxC,SAAS,wBAAwB;AACjC,SAAS,qCAAqC;;;ACF9C,SAAS,gBAAgB;AACzB,SAAS,uBAAuB;AAEhC,SAAS,+BAA+B;AAExC,SAAS,sBAAsB;;;ACF/B,IAAM,qBAAqB,CAAC,UAAyB;AACnD,SAAO,QAAQ,OAAO,KAAK,IAAI;AACjC;AAEO,IAAM,mBAAmB,OAAO,aAA2D;AAEhG,QAAM,UAAU,MAAM,SAAS,WAAW;AAC1C,QAAM,mBAA8C;AAAA,IAClD,UAAU,mBAAmB,QAAQ,QAAQ;AAAA,IAC7C,cAAc,mBAAmB,QAAQ,YAAY;AAAA,IACrD,sBAAsB,mBAAmB,QAAQ,oBAAoB;AAAA,IACrE,WAAW,KAAK,IAAI;AAAA,EACtB;AACA,SAAO;AACT;;;AChBO,IAAM,uCAA6E;;;AFoBnF,IAAM,2BAAN,cAEG,gBAAyB;AAAA,EACjC,OAAyB,gBAA0B,CAAC,GAAG,MAAM,eAAe,oCAAoC;AAAA,EAChH,OAAyB,sBAA8B;AAAA,EAE/C;AAAA,EAER,IAAc,WAAW;AACvB,SAAK,YAAY,KAAK,aAAa,KAAK,QAAQ;AAChD,WAAO,KAAK;AAAA,EACd;AAAA,EAEA,MAAyB,iBAAqC;AAC5D,UAAM,UAAU,IAAI,eAAyC,EAAE,QAAQ,wBAAwB,CAAC,EAC7F,OAAO,MAAM,iBAAiB,SAAS,KAAK,UAAU,MAAM,mBAAmB,CAAC,CAAC,EACjF,MAAM;AACT,WAAO,CAAC,OAAO;AAAA,EACjB;AACF;;;ADlCO,IAAM,0BAA0B,MACrC;AAAA,EACE,EAAE,UAAU,EAAE,CAACC,wBAAuB,GAAG,EAAE,GAAG,QAAQ,iBAAiB;AAAA,EACvE;AAAA,IACE,SAAS,OAAO,WAAW;AACzB,aAAO,MAAM,yBAAyB,OAAO,MAAM;AAAA,IACrD;AAAA,EACF;AACF;","names":["EthereumGasEthersSchema","EthereumGasEthersSchema"]}
1
+ {"version":3,"sources":["../../src/Plugin.ts","../../src/Witness.ts","../../src/lib/getGasFromEthers.ts","../../src/Schema.ts"],"sourcesContent":["import { EthereumGasEthersSchema } from '@xyo-network/ethers-ethereum-gas-payload-plugin'\nimport { PayloadSetSchema } from '@xyo-network/payload-model'\nimport { createPayloadSetWitnessPlugin } from '@xyo-network/payloadset-plugin'\n\nimport { EthereumGasEthersWitness } from './Witness.ts'\n\nexport const EthereumGasEthersPlugin = () =>\n createPayloadSetWitnessPlugin<EthereumGasEthersWitness>(\n { required: { [EthereumGasEthersSchema]: 1 }, schema: PayloadSetSchema },\n {\n witness: async (params) => {\n return await EthereumGasEthersWitness.create(params)\n },\n },\n )\n","import { assertEx } from '@xylabs/assert'\nimport { AbstractWitness } from '@xyo-network/abstract-witness'\nimport { EthereumGasEthersPayload, EthereumGasEthersSchema } from '@xyo-network/ethers-ethereum-gas-payload-plugin'\nimport { AnyConfigSchema } from '@xyo-network/module-model'\nimport { PayloadBuilder } from '@xyo-network/payload-builder'\nimport { Payload, Schema } from '@xyo-network/payload-model'\nimport { WitnessParams } from '@xyo-network/witness-model'\nimport { Provider } from 'ethers'\n\nimport { EthereumGasEthersWitnessConfig } from './Config.ts'\nimport { getGasFromEthers } from './lib/index.ts'\nimport { EthereumGasEthersWitnessConfigSchema } from './Schema.ts'\n\nexport type EthereumGasEthersWitnessParams = WitnessParams<\n AnyConfigSchema<EthereumGasEthersWitnessConfig>,\n {\n provider?: Provider\n }\n>\n\nexport class EthereumGasEthersWitness<\n TParams extends EthereumGasEthersWitnessParams = EthereumGasEthersWitnessParams,\n> extends AbstractWitness<TParams> {\n static override readonly configSchemas: Schema[] = [...super.configSchemas, EthereumGasEthersWitnessConfigSchema]\n static override readonly defaultConfigSchema: Schema = EthereumGasEthersWitnessConfigSchema\n\n private _provider?: Provider\n\n protected get provider() {\n this._provider = this._provider ?? this.params?.provider\n return this._provider\n }\n\n protected override async observeHandler(): Promise<Payload[]> {\n const payload = new PayloadBuilder<EthereumGasEthersPayload>({ schema: EthereumGasEthersSchema })\n .fields(await getGasFromEthers(assertEx(this.provider, () => 'Provider Required')))\n .build()\n return [payload]\n }\n}\n","import { EthereumGasEthersResponse } from '@xyo-network/ethers-ethereum-gas-payload-plugin'\nimport { Provider } from 'ethers'\n\nconst formatFeeDataValue = (value: bigint | null) => {\n return value ? Number(value) : null\n}\n\nexport const getGasFromEthers = async (provider: Provider): Promise<EthereumGasEthersResponse> => {\n // https://docs.ethers.io/v5/api/providers/provider/#Provider-getFeeData\n const feeData = await provider.getFeeData()\n const formattedFeeData: EthereumGasEthersResponse = {\n gasPrice: formatFeeDataValue(feeData.gasPrice),\n maxFeePerGas: formatFeeDataValue(feeData.maxFeePerGas),\n maxPriorityFeePerGas: formatFeeDataValue(feeData.maxPriorityFeePerGas),\n timestamp: Date.now(),\n }\n return formattedFeeData\n}\n","export type EthereumGasEthersWitnessConfigSchema = 'network.xyo.blockchain.ethereum.gas.ethers.witness.config'\nexport const EthereumGasEthersWitnessConfigSchema: EthereumGasEthersWitnessConfigSchema = 'network.xyo.blockchain.ethereum.gas.ethers.witness.config'\n"],"mappings":";AAAA,SAAS,2BAAAA,gCAA+B;AACxC,SAAS,wBAAwB;AACjC,SAAS,qCAAqC;;;ACF9C,SAAS,gBAAgB;AACzB,SAAS,uBAAuB;AAChC,SAAmC,+BAA+B;AAElE,SAAS,sBAAsB;;;ACD/B,IAAM,qBAAqB,CAAC,UAAyB;AACnD,SAAO,QAAQ,OAAO,KAAK,IAAI;AACjC;AAEO,IAAM,mBAAmB,OAAO,aAA2D;AAEhG,QAAM,UAAU,MAAM,SAAS,WAAW;AAC1C,QAAM,mBAA8C;AAAA,IAClD,UAAU,mBAAmB,QAAQ,QAAQ;AAAA,IAC7C,cAAc,mBAAmB,QAAQ,YAAY;AAAA,IACrD,sBAAsB,mBAAmB,QAAQ,oBAAoB;AAAA,IACrE,WAAW,KAAK,IAAI;AAAA,EACtB;AACA,SAAO;AACT;;;AChBO,IAAM,uCAA6E;;;AFmBnF,IAAM,2BAAN,cAEG,gBAAyB;AAAA,EACjC,OAAyB,gBAA0B,CAAC,GAAG,MAAM,eAAe,oCAAoC;AAAA,EAChH,OAAyB,sBAA8B;AAAA,EAE/C;AAAA,EAER,IAAc,WAAW;AACvB,SAAK,YAAY,KAAK,aAAa,KAAK,QAAQ;AAChD,WAAO,KAAK;AAAA,EACd;AAAA,EAEA,MAAyB,iBAAqC;AAC5D,UAAM,UAAU,IAAI,eAAyC,EAAE,QAAQ,wBAAwB,CAAC,EAC7F,OAAO,MAAM,iBAAiB,SAAS,KAAK,UAAU,MAAM,mBAAmB,CAAC,CAAC,EACjF,MAAM;AACT,WAAO,CAAC,OAAO;AAAA,EACjB;AACF;;;ADjCO,IAAM,0BAA0B,MACrC;AAAA,EACE,EAAE,UAAU,EAAE,CAACC,wBAAuB,GAAG,EAAE,GAAG,QAAQ,iBAAiB;AAAA,EACvE;AAAA,IACE,SAAS,OAAO,WAAW;AACzB,aAAO,MAAM,yBAAyB,OAAO,MAAM;AAAA,IACrD;AAAA,EACF;AACF;","names":["EthereumGasEthersSchema","EthereumGasEthersSchema"]}
@@ -0,0 +1,4 @@
1
+ import { EthereumGasEthersResponse } from '@xyo-network/ethers-ethereum-gas-payload-plugin';
2
+ import { Provider } from 'ethers';
3
+ export declare const getGasFromEthers: (provider: Provider) => Promise<EthereumGasEthersResponse>;
4
+ //# sourceMappingURL=getGasFromEthers.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"getGasFromEthers.d.ts","sourceRoot":"","sources":["../../../src/lib/getGasFromEthers.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,yBAAyB,EAAE,MAAM,iDAAiD,CAAA;AAC3F,OAAO,EAAE,QAAQ,EAAE,MAAM,QAAQ,CAAA;AAMjC,eAAO,MAAM,gBAAgB,GAAU,UAAU,QAAQ,KAAG,OAAO,CAAC,yBAAyB,CAU5F,CAAA"}
@@ -0,0 +1,2 @@
1
+ export * from './getGasFromEthers.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,uBAAuB,CAAA"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xyo-network/ethers-ethereum-gas-plugin",
3
- "version": "3.4.1",
3
+ "version": "3.4.3",
4
4
  "description": "Typescript/Javascript Plugins for XYO Platform",
5
5
  "homepage": "https://xyo.network",
6
6
  "bugs": {
@@ -30,23 +30,23 @@
30
30
  "types": "dist/neutral/index.d.ts",
31
31
  "dependencies": {
32
32
  "@xylabs/assert": "^4.5.1",
33
- "@xyo-network/abstract-witness": "^3.8.5",
34
- "@xyo-network/ethers-ethereum-gas-payload-plugin": "^3.4.1",
35
- "@xyo-network/module-model": "^3.8.5",
36
- "@xyo-network/payload-builder": "^3.8.5",
37
- "@xyo-network/payload-model": "^3.8.5",
38
- "@xyo-network/payloadset-plugin": "^3.8.5",
39
- "@xyo-network/witness-model": "^3.8.5",
33
+ "@xyo-network/abstract-witness": "^3.9.23",
34
+ "@xyo-network/ethers-ethereum-gas-payload-plugin": "^3.4.3",
35
+ "@xyo-network/module-model": "^3.9.23",
36
+ "@xyo-network/payload-builder": "^3.9.23",
37
+ "@xyo-network/payload-model": "^3.9.23",
38
+ "@xyo-network/payloadset-plugin": "^3.9.23",
39
+ "@xyo-network/witness-model": "^3.9.23",
40
40
  "ethers": "^6.13.5"
41
41
  },
42
42
  "devDependencies": {
43
- "@xylabs/ts-scripts-yarn3": "^5.0.22",
44
- "@xylabs/tsconfig": "^5.0.22",
43
+ "@xylabs/ts-scripts-yarn3": "^5.0.39",
44
+ "@xylabs/tsconfig": "^5.0.39",
45
45
  "@xylabs/vitest-extended": "^4.5.1",
46
- "@xyo-network/payload-wrapper": "^3.8.5",
47
- "@xyo-network/witness-blockchain-abstract": "^3.8.5",
48
- "typescript": "^5.7.3",
49
- "vitest": "^3.0.5"
46
+ "@xyo-network/payload-wrapper": "^3.9.23",
47
+ "@xyo-network/witness-blockchain-abstract": "^3.9.23",
48
+ "typescript": "^5.8.2",
49
+ "vitest": "^3.0.7"
50
50
  },
51
51
  "publishConfig": {
52
52
  "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 { EthereumGasEthersWitnessConfigSchema } from './Schema.ts'
3
+ import { EthereumGasEthersWitnessConfigSchema } from './Schema.ts'
4
4
 
5
5
  export type EthereumGasEthersWitnessConfig = WitnessConfig<{
6
6
  schema: EthereumGasEthersWitnessConfigSchema
package/src/Witness.ts CHANGED
@@ -1,14 +1,13 @@
1
1
  import { assertEx } from '@xylabs/assert'
2
2
  import { AbstractWitness } from '@xyo-network/abstract-witness'
3
- import type { EthereumGasEthersPayload } from '@xyo-network/ethers-ethereum-gas-payload-plugin'
4
- import { EthereumGasEthersSchema } from '@xyo-network/ethers-ethereum-gas-payload-plugin'
5
- import type { AnyConfigSchema } from '@xyo-network/module-model'
3
+ import { EthereumGasEthersPayload, EthereumGasEthersSchema } from '@xyo-network/ethers-ethereum-gas-payload-plugin'
4
+ import { AnyConfigSchema } from '@xyo-network/module-model'
6
5
  import { PayloadBuilder } from '@xyo-network/payload-builder'
7
- import type { Payload, Schema } from '@xyo-network/payload-model'
8
- import type { WitnessParams } from '@xyo-network/witness-model'
9
- import type { Provider } from 'ethers'
6
+ import { Payload, Schema } from '@xyo-network/payload-model'
7
+ import { WitnessParams } from '@xyo-network/witness-model'
8
+ import { Provider } from 'ethers'
10
9
 
11
- import type { EthereumGasEthersWitnessConfig } from './Config.ts'
10
+ import { EthereumGasEthersWitnessConfig } from './Config.ts'
12
11
  import { getGasFromEthers } from './lib/index.ts'
13
12
  import { EthereumGasEthersWitnessConfigSchema } from './Schema.ts'
14
13
 
@@ -1,5 +1,5 @@
1
- import type { EthereumGasEthersResponse } from '@xyo-network/ethers-ethereum-gas-payload-plugin'
2
- import type { Provider } from 'ethers'
1
+ import { EthereumGasEthersResponse } from '@xyo-network/ethers-ethereum-gas-payload-plugin'
2
+ import { Provider } from 'ethers'
3
3
 
4
4
  const formatFeeDataValue = (value: bigint | null) => {
5
5
  return value ? Number(value) : null
package/xy.config.ts CHANGED
@@ -1,4 +1,4 @@
1
- import type { XyTsupConfig } from '@xylabs/ts-scripts-yarn3'
1
+ import { XyTsupConfig } from '@xylabs/ts-scripts-yarn3'
2
2
  const config: XyTsupConfig = {
3
3
  compile: {
4
4
  browser: {},