@xyo-network/gas-price-plugin 3.4.2 → 3.4.4
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/types/Diviner.d.ts +16 -0
- package/dist/types/Diviner.d.ts.map +1 -0
- package/dist/types/Plugin.d.ts +13 -0
- package/dist/types/Plugin.d.ts.map +1 -0
- package/dist/types/Schema.d.ts +5 -0
- package/dist/types/Schema.d.ts.map +1 -0
- package/dist/types/index.d.ts +4 -0
- package/dist/types/index.d.ts.map +1 -0
- package/dist/types/lib/average.d.ts +8 -0
- package/dist/types/lib/average.d.ts.map +1 -0
- package/dist/types/lib/divineGas.d.ts +4 -0
- package/dist/types/lib/divineGas.d.ts.map +1 -0
- package/dist/types/lib/identities/index.d.ts +6 -0
- package/dist/types/lib/identities/index.d.ts.map +1 -0
- package/dist/types/lib/identities/isEthereumGasBlocknativePayload.d.ts +4 -0
- package/dist/types/lib/identities/isEthereumGasBlocknativePayload.d.ts.map +1 -0
- package/dist/types/lib/identities/isEthereumGasEtherchainV2Payload.d.ts +4 -0
- package/dist/types/lib/identities/isEthereumGasEtherchainV2Payload.d.ts.map +1 -0
- package/dist/types/lib/identities/isEthereumGasEthersPayload.d.ts +4 -0
- package/dist/types/lib/identities/isEthereumGasEthersPayload.d.ts.map +1 -0
- package/dist/types/lib/identities/isEthereumGasEtherscanPayload.d.ts +4 -0
- package/dist/types/lib/identities/isEthereumGasEtherscanPayload.d.ts.map +1 -0
- package/dist/types/lib/identities/isEthereumGasEthgasstationPayload.d.ts +4 -0
- package/dist/types/lib/identities/isEthereumGasEthgasstationPayload.d.ts.map +1 -0
- package/dist/types/lib/index.d.ts +2 -0
- package/dist/types/lib/index.d.ts.map +1 -0
- package/dist/types/lib/transforms/index.d.ts +6 -0
- package/dist/types/lib/transforms/index.d.ts.map +1 -0
- package/dist/types/lib/transforms/transformGasFromBlocknative.d.ts +4 -0
- package/dist/types/lib/transforms/transformGasFromBlocknative.d.ts.map +1 -0
- package/dist/types/lib/transforms/transformGasFromEtherchainV2.d.ts +4 -0
- package/dist/types/lib/transforms/transformGasFromEtherchainV2.d.ts.map +1 -0
- package/dist/types/lib/transforms/transformGasFromEthers.d.ts +4 -0
- package/dist/types/lib/transforms/transformGasFromEthers.d.ts.map +1 -0
- package/dist/types/lib/transforms/transformGasFromEtherscan.d.ts +4 -0
- package/dist/types/lib/transforms/transformGasFromEtherscan.d.ts.map +1 -0
- package/dist/types/lib/transforms/transformGasFromEthgasstation.d.ts +4 -0
- package/dist/types/lib/transforms/transformGasFromEthgasstation.d.ts.map +1 -0
- package/dist/types/test/index.d.ts +6 -0
- package/dist/types/test/index.d.ts.map +1 -0
- package/dist/types/test/sampleBlocknativeGas.d.ts +3 -0
- package/dist/types/test/sampleBlocknativeGas.d.ts.map +1 -0
- package/dist/types/test/sampleEtherchainGasV2.d.ts +3 -0
- package/dist/types/test/sampleEtherchainGasV2.d.ts.map +1 -0
- package/dist/types/test/sampleEthersGas.d.ts +3 -0
- package/dist/types/test/sampleEthersGas.d.ts.map +1 -0
- package/dist/types/test/sampleEtherscanGas.d.ts +3 -0
- package/dist/types/test/sampleEtherscanGas.d.ts.map +1 -0
- package/dist/types/test/sampleEthgasstationGas.d.ts +3 -0
- package/dist/types/test/sampleEthgasstationGas.d.ts.map +1 -0
- package/package.json +26 -26
- package/dist/neutral/index.d.ts +0 -38
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { AbstractDiviner } from '@xyo-network/diviner-abstract';
|
|
2
|
+
import type { DivinerConfig, DivinerModule, DivinerParams } from '@xyo-network/diviner-model';
|
|
3
|
+
import type { AnyConfigSchema } from '@xyo-network/module-model';
|
|
4
|
+
import type { Payload, Schema } from '@xyo-network/payload-model';
|
|
5
|
+
import { EthereumGasDivinerConfigSchema } from './Schema.ts';
|
|
6
|
+
export type EthereumGasDivinerConfig = DivinerConfig<{
|
|
7
|
+
schema: EthereumGasDivinerConfigSchema;
|
|
8
|
+
}>;
|
|
9
|
+
export type EthereumGasDivinerParams = DivinerParams<AnyConfigSchema<EthereumGasDivinerConfig>>;
|
|
10
|
+
export declare class EthereumGasDiviner<TParams extends EthereumGasDivinerParams = EthereumGasDivinerParams> extends AbstractDiviner<TParams> implements DivinerModule {
|
|
11
|
+
static readonly configSchemas: Schema[];
|
|
12
|
+
static readonly defaultConfigSchema: Schema;
|
|
13
|
+
static readonly targetSchema: string;
|
|
14
|
+
protected divineHandler(payloads?: Payload[]): Payload[];
|
|
15
|
+
}
|
|
16
|
+
//# sourceMappingURL=Diviner.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Diviner.d.ts","sourceRoot":"","sources":["../../src/Diviner.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,+BAA+B,CAAA;AAC/D,OAAO,KAAK,EACV,aAAa,EAAE,aAAa,EAAE,aAAa,EAC5C,MAAM,4BAA4B,CAAA;AAEnC,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,2BAA2B,CAAA;AAChE,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,EAAE,MAAM,4BAA4B,CAAA;AAGjE,OAAO,EAAE,8BAA8B,EAAE,MAAM,aAAa,CAAA;AAE5D,MAAM,MAAM,wBAAwB,GAAG,aAAa,CAAC;IAAE,MAAM,EAAE,8BAA8B,CAAA;CAAE,CAAC,CAAA;AAChG,MAAM,MAAM,wBAAwB,GAAG,aAAa,CAAC,eAAe,CAAC,wBAAwB,CAAC,CAAC,CAAA;AAE/F,qBAAa,kBAAkB,CAAC,OAAO,SAAS,wBAAwB,GAAG,wBAAwB,CACjG,SAAQ,eAAe,CAAC,OAAO,CAC/B,YAAW,aAAa;IACxB,gBAAyB,aAAa,EAAE,MAAM,EAAE,CAA2D;IAC3G,gBAAyB,mBAAmB,EAAE,MAAM,CAAiC;IACrF,gBAAyB,YAAY,EAAE,MAAM,CAAoB;cAE9C,aAAa,CAAC,QAAQ,CAAC,EAAE,OAAO,EAAE,GAAG,OAAO,EAAE;CAIlE"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { EthereumGasDiviner } from './Diviner.ts';
|
|
2
|
+
export declare const EthereumGasPlugin: () => import("@xyo-network/payloadset-plugin").PayloadSetDivinerPlugin<EthereumGasDiviner<import(".store/@xylabs-object-npm-4.6.0-7a48a8c82f/package").BaseParamsFields & {
|
|
3
|
+
account?: import(".store/@xyo-network-account-model-virtual-89e38357fa/package").AccountInstance | "random";
|
|
4
|
+
addToResolvers?: boolean;
|
|
5
|
+
additionalSigners?: import(".store/@xyo-network-account-model-virtual-89e38357fa/package").AccountInstance[];
|
|
6
|
+
allowNameResolution?: boolean;
|
|
7
|
+
config: import("@xyo-network/module-model").AnyConfigSchema<import("./Diviner.ts").EthereumGasDivinerConfig>;
|
|
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
|
+
//# 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,kBAAkB,EAAE,MAAM,cAAc,CAAA;AAEjD,eAAO,MAAM,iBAAiB;;;;;;;;;;GAQ3B,CAAA"}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
export type EthereumGasDivinerQuerySchema = 'network.xyo.blockchain.ethereum.gas.diviner.query';
|
|
2
|
+
export declare const EthereumGasDivinerQuerySchema: EthereumGasDivinerQuerySchema;
|
|
3
|
+
export type EthereumGasDivinerConfigSchema = 'network.xyo.blockchain.ethereum.gas.diviner.config';
|
|
4
|
+
export declare const EthereumGasDivinerConfigSchema: EthereumGasDivinerConfigSchema;
|
|
5
|
+
//# 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,6BAA6B,GAAG,mDAAmD,CAAA;AAC/F,eAAO,MAAM,6BAA6B,EAAE,6BAAmF,CAAA;AAE/H,MAAM,MAAM,8BAA8B,GAAG,oDAAoD,CAAA;AACjG,eAAO,MAAM,8BAA8B,EAAE,8BAAqF,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,cAAc,CAAA;AAC5B,OAAO,EAAE,iBAAiB,IAAI,OAAO,EAAE,iBAAiB,EAAE,MAAM,aAAa,CAAA;AAC7E,cAAc,aAAa,CAAA"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { FeeData } from '@xyo-network/gas-price-payload-plugin';
|
|
2
|
+
/**
|
|
3
|
+
* Averages the supplied FeeData
|
|
4
|
+
* @param input An array of FeeData or undefined
|
|
5
|
+
* @returns The average of the supplied FeeData
|
|
6
|
+
*/
|
|
7
|
+
export declare const average: (input?: (FeeData | undefined)[]) => FeeData;
|
|
8
|
+
//# sourceMappingURL=average.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"average.d.ts","sourceRoot":"","sources":["../../../src/lib/average.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,uCAAuC,CAAA;AAuBpE;;;;GAIG;AACH,eAAO,MAAM,OAAO,GAAI,QAAQ,CAAC,OAAO,GAAG,SAAS,CAAC,EAAE,KAAG,OAkBzD,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"divineGas.d.ts","sourceRoot":"","sources":["../../../src/lib/divineGas.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,kBAAkB,EAAW,MAAM,uCAAuC,CAAA;AAGxF,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,4BAA4B,CAAA;AAkBzD,eAAO,MAAM,SAAS,GAAI,UAAU,OAAO,EAAE,KAAG,kBAW/C,CAAA"}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
export * from './isEthereumGasBlocknativePayload.ts';
|
|
2
|
+
export * from './isEthereumGasEtherchainV2Payload.ts';
|
|
3
|
+
export * from './isEthereumGasEtherscanPayload.ts';
|
|
4
|
+
export * from './isEthereumGasEthersPayload.ts';
|
|
5
|
+
export * from './isEthereumGasEthgasstationPayload.ts';
|
|
6
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/lib/identities/index.ts"],"names":[],"mappings":"AAAA,cAAc,sCAAsC,CAAA;AACpD,cAAc,uCAAuC,CAAA;AACrD,cAAc,oCAAoC,CAAA;AAClD,cAAc,iCAAiC,CAAA;AAC/C,cAAc,wCAAwC,CAAA"}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import type { EthereumGasBlocknativePayload } from '@xyo-network/blocknative-ethereum-gas-payload-plugin';
|
|
2
|
+
import type { Payload } from '@xyo-network/payload-model';
|
|
3
|
+
export declare const isEthereumGasBlocknativePayload: (payload?: Payload | null) => payload is EthereumGasBlocknativePayload;
|
|
4
|
+
//# sourceMappingURL=isEthereumGasBlocknativePayload.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"isEthereumGasBlocknativePayload.d.ts","sourceRoot":"","sources":["../../../../src/lib/identities/isEthereumGasBlocknativePayload.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,6BAA6B,EAAE,MAAM,sDAAsD,CAAA;AAEzG,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,4BAA4B,CAAA;AAEzD,eAAO,MAAM,+BAA+B,GAAI,UAAU,OAAO,GAAG,IAAI,KAAG,OAAO,IAAI,6BAErF,CAAA"}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import type { EthereumGasEtherchainV2Payload } from '@xyo-network/etherchain-gas-ethereum-blockchain-payload-plugins';
|
|
2
|
+
import type { Payload } from '@xyo-network/payload-model';
|
|
3
|
+
export declare const isEthereumGasEtherchainV2Payload: (payload?: Payload | null) => payload is EthereumGasEtherchainV2Payload;
|
|
4
|
+
//# sourceMappingURL=isEthereumGasEtherchainV2Payload.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"isEthereumGasEtherchainV2Payload.d.ts","sourceRoot":"","sources":["../../../../src/lib/identities/isEthereumGasEtherchainV2Payload.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,8BAA8B,EAAE,MAAM,iEAAiE,CAAA;AAErH,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,4BAA4B,CAAA;AAEzD,eAAO,MAAM,gCAAgC,GAAI,UAAU,OAAO,GAAG,IAAI,KAAG,OAAO,IAAI,8BAEtF,CAAA"}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import type { EthereumGasEthersPayload } from '@xyo-network/ethers-ethereum-gas-payload-plugin';
|
|
2
|
+
import type { Payload } from '@xyo-network/payload-model';
|
|
3
|
+
export declare const isEthereumGasEthersPayload: (payload?: Payload | null) => payload is EthereumGasEthersPayload;
|
|
4
|
+
//# sourceMappingURL=isEthereumGasEthersPayload.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"isEthereumGasEthersPayload.d.ts","sourceRoot":"","sources":["../../../../src/lib/identities/isEthereumGasEthersPayload.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,iDAAiD,CAAA;AAE/F,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,4BAA4B,CAAA;AAEzD,eAAO,MAAM,0BAA0B,GAAI,UAAU,OAAO,GAAG,IAAI,KAAG,OAAO,IAAI,wBAEhF,CAAA"}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import type { EthereumGasEtherscanPayload } from '@xyo-network/etherscan-ethereum-gas-payload-plugin';
|
|
2
|
+
import type { Payload } from '@xyo-network/payload-model';
|
|
3
|
+
export declare const isEthereumGasEtherscanPayload: (payload?: Payload | null) => payload is EthereumGasEtherscanPayload;
|
|
4
|
+
//# sourceMappingURL=isEthereumGasEtherscanPayload.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"isEthereumGasEtherscanPayload.d.ts","sourceRoot":"","sources":["../../../../src/lib/identities/isEthereumGasEtherscanPayload.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,2BAA2B,EAAE,MAAM,oDAAoD,CAAA;AAErG,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,4BAA4B,CAAA;AAEzD,eAAO,MAAM,6BAA6B,GAAI,UAAU,OAAO,GAAG,IAAI,KAAG,OAAO,IAAI,2BAEnF,CAAA"}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import type { EthereumGasEthgasstationPayload } from '@xyo-network/ethgasstation-ethereum-gas-payload-plugin';
|
|
2
|
+
import type { Payload } from '@xyo-network/payload-model';
|
|
3
|
+
export declare const isEthereumGasEthgasstationPayload: (payload?: Payload | null) => payload is EthereumGasEthgasstationPayload;
|
|
4
|
+
//# sourceMappingURL=isEthereumGasEthgasstationPayload.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"isEthereumGasEthgasstationPayload.d.ts","sourceRoot":"","sources":["../../../../src/lib/identities/isEthereumGasEthgasstationPayload.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,+BAA+B,EAAE,MAAM,wDAAwD,CAAA;AAE7G,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,4BAA4B,CAAA;AAEzD,eAAO,MAAM,iCAAiC,GAAI,UAAU,OAAO,GAAG,IAAI,KAAG,OAAO,IAAI,+BAEvF,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/lib/index.ts"],"names":[],"mappings":"AAAA,cAAc,gBAAgB,CAAA"}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
export * from './transformGasFromBlocknative.ts';
|
|
2
|
+
export * from './transformGasFromEtherchainV2.ts';
|
|
3
|
+
export * from './transformGasFromEthers.ts';
|
|
4
|
+
export * from './transformGasFromEtherscan.ts';
|
|
5
|
+
export * from './transformGasFromEthgasstation.ts';
|
|
6
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/lib/transforms/index.ts"],"names":[],"mappings":"AAAA,cAAc,kCAAkC,CAAA;AAChD,cAAc,mCAAmC,CAAA;AACjD,cAAc,6BAA6B,CAAA;AAC3C,cAAc,gCAAgC,CAAA;AAC9C,cAAc,oCAAoC,CAAA"}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import type { EthereumGasBlocknativePayload } from '@xyo-network/blocknative-ethereum-gas-payload-plugin';
|
|
2
|
+
import type { FeeData } from '@xyo-network/gas-price-payload-plugin';
|
|
3
|
+
export declare const transformGasFromBlocknative: (payload: EthereumGasBlocknativePayload) => FeeData;
|
|
4
|
+
//# sourceMappingURL=transformGasFromBlocknative.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"transformGasFromBlocknative.d.ts","sourceRoot":"","sources":["../../../../src/lib/transforms/transformGasFromBlocknative.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,6BAA6B,EAAE,MAAM,sDAAsD,CAAA;AACzG,OAAO,KAAK,EACV,OAAO,EACR,MAAM,uCAAuC,CAAA;AA2C9C,eAAO,MAAM,2BAA2B,GAAI,SAAS,6BAA6B,KAAG,OAOpF,CAAA"}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import type { EthereumGasEtherchainV2Payload } from '@xyo-network/etherchain-gas-ethereum-blockchain-payload-plugins';
|
|
2
|
+
import type { FeeData } from '@xyo-network/gas-price-payload-plugin';
|
|
3
|
+
export declare const transformGasFromEtherchainV2: (payload: EthereumGasEtherchainV2Payload) => FeeData;
|
|
4
|
+
//# sourceMappingURL=transformGasFromEtherchainV2.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"transformGasFromEtherchainV2.d.ts","sourceRoot":"","sources":["../../../../src/lib/transforms/transformGasFromEtherchainV2.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,8BAA8B,EAAE,MAAM,iEAAiE,CAAA;AACrH,OAAO,KAAK,EAAE,OAAO,EAAa,MAAM,uCAAuC,CAAA;AAe/E,eAAO,MAAM,4BAA4B,GAAI,SAAS,8BAA8B,KAAG,OAOtF,CAAA"}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import type { EthereumGasEthersPayload } from '@xyo-network/ethers-ethereum-gas-payload-plugin';
|
|
2
|
+
import type { FeeData } from '@xyo-network/gas-price-payload-plugin';
|
|
3
|
+
export declare const transformGasFromEthers: (payload: EthereumGasEthersPayload) => FeeData;
|
|
4
|
+
//# sourceMappingURL=transformGasFromEthers.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"transformGasFromEthers.d.ts","sourceRoot":"","sources":["../../../../src/lib/transforms/transformGasFromEthers.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,iDAAiD,CAAA;AAC/F,OAAO,KAAK,EACV,OAAO,EACR,MAAM,uCAAuC,CAAA;AAmB9C,eAAO,MAAM,sBAAsB,GAAI,SAAS,wBAAwB,KAAG,OAO1E,CAAA"}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import type { EthereumGasEtherscanPayload } from '@xyo-network/etherscan-ethereum-gas-payload-plugin';
|
|
2
|
+
import type { FeeData } from '@xyo-network/gas-price-payload-plugin';
|
|
3
|
+
export declare const transformGasFromEtherscan: (payload: EthereumGasEtherscanPayload) => FeeData;
|
|
4
|
+
//# sourceMappingURL=transformGasFromEtherscan.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"transformGasFromEtherscan.d.ts","sourceRoot":"","sources":["../../../../src/lib/transforms/transformGasFromEtherscan.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,2BAA2B,EAAE,MAAM,oDAAoD,CAAA;AACrG,OAAO,KAAK,EAAE,OAAO,EAAa,MAAM,uCAAuC,CAAA;AAyB/E,eAAO,MAAM,yBAAyB,GAAI,SAAS,2BAA2B,KAAG,OAOhF,CAAA"}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import type { EthereumGasEthgasstationPayload } from '@xyo-network/ethgasstation-ethereum-gas-payload-plugin';
|
|
2
|
+
import type { FeeData } from '@xyo-network/gas-price-payload-plugin';
|
|
3
|
+
export declare const transformGasFromEthgasstation: (payload: EthereumGasEthgasstationPayload) => FeeData;
|
|
4
|
+
//# sourceMappingURL=transformGasFromEthgasstation.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"transformGasFromEthgasstation.d.ts","sourceRoot":"","sources":["../../../../src/lib/transforms/transformGasFromEthgasstation.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,+BAA+B,EAAE,MAAM,wDAAwD,CAAA;AAC7G,OAAO,KAAK,EACV,OAAO,EACR,MAAM,uCAAuC,CAAA;AAsC9C,eAAO,MAAM,6BAA6B,GAAI,SAAS,+BAA+B,KAAG,OAOxF,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/test/index.ts"],"names":[],"mappings":"AAAA,cAAc,2BAA2B,CAAA;AACzC,cAAc,4BAA4B,CAAA;AAC1C,cAAc,yBAAyB,CAAA;AACvC,cAAc,sBAAsB,CAAA;AACpC,cAAc,6BAA6B,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sampleBlocknativeGas.d.ts","sourceRoot":"","sources":["../../../src/test/sampleBlocknativeGas.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAoB,6BAA6B,EAAE,MAAM,sDAAsD,CAAA;AAG3H,eAAO,MAAM,oBAAoB,EAAE,6BA0FlC,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sampleEtherchainGasV2.d.ts","sourceRoot":"","sources":["../../../src/test/sampleEtherchainGasV2.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,8BAA8B,EAAE,MAAM,iEAAiE,CAAA;AAGrH,eAAO,MAAM,qBAAqB,EAAE,8BAYnC,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sampleEthersGas.d.ts","sourceRoot":"","sources":["../../../src/test/sampleEthersGas.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,iDAAiD,CAAA;AAG/F,eAAO,MAAM,eAAe,EAAE,wBAM7B,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sampleEtherscanGas.d.ts","sourceRoot":"","sources":["../../../src/test/sampleEtherscanGas.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,2BAA2B,EAAE,MAAM,oDAAoD,CAAA;AAGrG,eAAO,MAAM,kBAAkB,EAAE,2BAahC,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sampleEthgasstationGas.d.ts","sourceRoot":"","sources":["../../../src/test/sampleEthgasstationGas.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,+BAA+B,EAAE,MAAM,wDAAwD,CAAA;AAG7G,eAAO,MAAM,sBAAsB,EAAE,+BAiBpC,CAAA"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@xyo-network/gas-price-plugin",
|
|
3
|
-
"version": "3.4.
|
|
3
|
+
"version": "3.4.4",
|
|
4
4
|
"description": "Typescript/Javascript Plugins for XYO Platform",
|
|
5
5
|
"homepage": "https://xyo.network",
|
|
6
6
|
"bugs": {
|
|
@@ -21,41 +21,41 @@
|
|
|
21
21
|
"type": "module",
|
|
22
22
|
"exports": {
|
|
23
23
|
".": {
|
|
24
|
-
"types": "./dist/
|
|
24
|
+
"types": "./dist/types/index.d.ts",
|
|
25
25
|
"default": "./dist/neutral/index.mjs"
|
|
26
26
|
},
|
|
27
27
|
"./package.json": "./package.json"
|
|
28
28
|
},
|
|
29
29
|
"module": "dist/neutral/index.mjs",
|
|
30
|
-
"types": "dist/
|
|
30
|
+
"types": "dist/types/index.d.ts",
|
|
31
31
|
"dependencies": {
|
|
32
|
-
"@xylabs/exists": "^4.
|
|
33
|
-
"@xyo-network/blocknative-ethereum-gas-payload-plugin": "^3.4.
|
|
34
|
-
"@xyo-network/diviner-abstract": "^3.9.
|
|
35
|
-
"@xyo-network/diviner-model": "^3.9.
|
|
36
|
-
"@xyo-network/etherchain-gas-ethereum-blockchain-payload-plugins": "^3.4.
|
|
37
|
-
"@xyo-network/ethers-ethereum-gas-payload-plugin": "^3.4.
|
|
38
|
-
"@xyo-network/etherscan-ethereum-gas-payload-plugin": "^3.4.
|
|
39
|
-
"@xyo-network/ethgasstation-ethereum-gas-payload-plugin": "^3.4.
|
|
40
|
-
"@xyo-network/gas-price-payload-plugin": "^3.4.
|
|
41
|
-
"@xyo-network/module-model": "^3.9.
|
|
42
|
-
"@xyo-network/payload-builder": "^3.9.
|
|
43
|
-
"@xyo-network/payload-model": "^3.9.
|
|
44
|
-
"@xyo-network/payloadset-plugin": "^3.9.
|
|
32
|
+
"@xylabs/exists": "^4.6.0",
|
|
33
|
+
"@xyo-network/blocknative-ethereum-gas-payload-plugin": "^3.4.4",
|
|
34
|
+
"@xyo-network/diviner-abstract": "^3.9.36",
|
|
35
|
+
"@xyo-network/diviner-model": "^3.9.36",
|
|
36
|
+
"@xyo-network/etherchain-gas-ethereum-blockchain-payload-plugins": "^3.4.4",
|
|
37
|
+
"@xyo-network/ethers-ethereum-gas-payload-plugin": "^3.4.4",
|
|
38
|
+
"@xyo-network/etherscan-ethereum-gas-payload-plugin": "^3.4.4",
|
|
39
|
+
"@xyo-network/ethgasstation-ethereum-gas-payload-plugin": "^3.4.4",
|
|
40
|
+
"@xyo-network/gas-price-payload-plugin": "^3.4.4",
|
|
41
|
+
"@xyo-network/module-model": "^3.9.36",
|
|
42
|
+
"@xyo-network/payload-builder": "^3.9.36",
|
|
43
|
+
"@xyo-network/payload-model": "^3.9.36",
|
|
44
|
+
"@xyo-network/payloadset-plugin": "^3.9.36",
|
|
45
45
|
"regression": "^2.0.1"
|
|
46
46
|
},
|
|
47
47
|
"devDependencies": {
|
|
48
48
|
"@types/regression": "^2.0.6",
|
|
49
|
-
"@xylabs/ts-scripts-yarn3": "^
|
|
50
|
-
"@xylabs/tsconfig": "^
|
|
51
|
-
"@xylabs/vitest-extended": "^4.
|
|
52
|
-
"@xyo-network/blocknative-ethereum-gas-plugin": "^3.4.
|
|
53
|
-
"@xyo-network/etherchain-gas-ethereum-blockchain-plugins": "^3.4.
|
|
54
|
-
"@xyo-network/ethers-ethereum-gas-plugin": "^3.4.
|
|
55
|
-
"@xyo-network/etherscan-ethereum-gas-plugin": "^3.4.
|
|
56
|
-
"@xyo-network/witness-blockchain-abstract": "^3.9.
|
|
57
|
-
"typescript": "^5.
|
|
58
|
-
"vitest": "^3.0.
|
|
49
|
+
"@xylabs/ts-scripts-yarn3": "^6.0.5",
|
|
50
|
+
"@xylabs/tsconfig": "^6.0.5",
|
|
51
|
+
"@xylabs/vitest-extended": "^4.6.0",
|
|
52
|
+
"@xyo-network/blocknative-ethereum-gas-plugin": "^3.4.4",
|
|
53
|
+
"@xyo-network/etherchain-gas-ethereum-blockchain-plugins": "^3.4.4",
|
|
54
|
+
"@xyo-network/ethers-ethereum-gas-plugin": "^3.4.4",
|
|
55
|
+
"@xyo-network/etherscan-ethereum-gas-plugin": "^3.4.4",
|
|
56
|
+
"@xyo-network/witness-blockchain-abstract": "^3.9.36",
|
|
57
|
+
"typescript": "^5.8.2",
|
|
58
|
+
"vitest": "^3.0.8"
|
|
59
59
|
},
|
|
60
60
|
"publishConfig": {
|
|
61
61
|
"access": "public"
|
package/dist/neutral/index.d.ts
DELETED
|
@@ -1,38 +0,0 @@
|
|
|
1
|
-
import { AbstractDiviner } from '@xyo-network/diviner-abstract';
|
|
2
|
-
import { DivinerParams, DivinerConfig, DivinerModule } from '@xyo-network/diviner-model';
|
|
3
|
-
import * as _xyo_network_module_model from '@xyo-network/module-model';
|
|
4
|
-
import { AnyConfigSchema } from '@xyo-network/module-model';
|
|
5
|
-
import { Schema, Payload } from '@xyo-network/payload-model';
|
|
6
|
-
import * as _xyo_network_payloadset_plugin from '@xyo-network/payloadset-plugin';
|
|
7
|
-
import * as _store__xyo_network_account_model_virtual_8ffda77307_package from '.store/@xyo-network-account-model-virtual-8ffda77307/package';
|
|
8
|
-
import * as _store__xylabs_object_npm_4_5_1_e31c389195_package from '.store/@xylabs-object-npm-4.5.1-e31c389195/package';
|
|
9
|
-
|
|
10
|
-
type EthereumGasDivinerQuerySchema = 'network.xyo.blockchain.ethereum.gas.diviner.query';
|
|
11
|
-
declare const EthereumGasDivinerQuerySchema: EthereumGasDivinerQuerySchema;
|
|
12
|
-
type EthereumGasDivinerConfigSchema = 'network.xyo.blockchain.ethereum.gas.diviner.config';
|
|
13
|
-
declare const EthereumGasDivinerConfigSchema: EthereumGasDivinerConfigSchema;
|
|
14
|
-
|
|
15
|
-
type EthereumGasDivinerConfig = DivinerConfig<{
|
|
16
|
-
schema: EthereumGasDivinerConfigSchema;
|
|
17
|
-
}>;
|
|
18
|
-
type EthereumGasDivinerParams = DivinerParams<AnyConfigSchema<EthereumGasDivinerConfig>>;
|
|
19
|
-
declare class EthereumGasDiviner<TParams extends EthereumGasDivinerParams = EthereumGasDivinerParams> extends AbstractDiviner<TParams> implements DivinerModule {
|
|
20
|
-
static readonly configSchemas: Schema[];
|
|
21
|
-
static readonly defaultConfigSchema: Schema;
|
|
22
|
-
static readonly targetSchema: string;
|
|
23
|
-
protected divineHandler(payloads?: Payload[]): Payload[];
|
|
24
|
-
}
|
|
25
|
-
|
|
26
|
-
declare const EthereumGasPlugin: () => _xyo_network_payloadset_plugin.PayloadSetDivinerPlugin<EthereumGasDiviner<_store__xylabs_object_npm_4_5_1_e31c389195_package.BaseParamsFields & {
|
|
27
|
-
account?: _store__xyo_network_account_model_virtual_8ffda77307_package.AccountInstance | "random";
|
|
28
|
-
addToResolvers?: boolean;
|
|
29
|
-
additionalSigners?: _store__xyo_network_account_model_virtual_8ffda77307_package.AccountInstance[];
|
|
30
|
-
allowNameResolution?: boolean;
|
|
31
|
-
config: _xyo_network_module_model.AnyConfigSchema<EthereumGasDivinerConfig>;
|
|
32
|
-
ephemeralQueryAccountEnabled?: boolean;
|
|
33
|
-
moduleIdentifierTransformers?: _xyo_network_module_model.ModuleIdentifierTransformer[];
|
|
34
|
-
privateChildren?: _xyo_network_module_model.ModuleInstance[];
|
|
35
|
-
publicChildren?: _xyo_network_module_model.ModuleInstance[];
|
|
36
|
-
}>>;
|
|
37
|
-
|
|
38
|
-
export { EthereumGasDiviner, type EthereumGasDivinerConfig, EthereumGasDivinerConfigSchema, type EthereumGasDivinerParams, EthereumGasDivinerQuerySchema, EthereumGasPlugin, EthereumGasPlugin as default };
|