@xyo-network/gas-price-plugin 2.73.4 → 2.74.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (103) hide show
  1. package/dist/Diviner.d.mts +16 -0
  2. package/dist/Diviner.d.mts.map +1 -0
  3. package/dist/Diviner.d.ts +16 -0
  4. package/dist/Diviner.d.ts.map +1 -0
  5. package/dist/Plugin.d.mts +50 -0
  6. package/dist/Plugin.d.mts.map +1 -0
  7. package/dist/Plugin.d.ts +50 -0
  8. package/dist/Plugin.d.ts.map +1 -0
  9. package/dist/Schema.d.mts +5 -0
  10. package/dist/Schema.d.mts.map +1 -0
  11. package/dist/Schema.d.ts +5 -0
  12. package/dist/Schema.d.ts.map +1 -0
  13. package/dist/docs.json +7055 -7735
  14. package/dist/index.d.mts +6 -77
  15. package/dist/index.d.mts.map +1 -0
  16. package/dist/index.d.ts +6 -77
  17. package/dist/index.d.ts.map +1 -0
  18. package/dist/lib/average.d.mts +8 -0
  19. package/dist/lib/average.d.mts.map +1 -0
  20. package/dist/lib/average.d.ts +8 -0
  21. package/dist/lib/average.d.ts.map +1 -0
  22. package/dist/lib/divineGas.d.mts +4 -0
  23. package/dist/lib/divineGas.d.mts.map +1 -0
  24. package/dist/lib/divineGas.d.ts +4 -0
  25. package/dist/lib/divineGas.d.ts.map +1 -0
  26. package/dist/lib/identities/index.d.mts +6 -0
  27. package/dist/lib/identities/index.d.mts.map +1 -0
  28. package/dist/lib/identities/index.d.ts +6 -0
  29. package/dist/lib/identities/index.d.ts.map +1 -0
  30. package/dist/lib/identities/isEthereumGasBlocknativePayload.d.mts +6 -0
  31. package/dist/lib/identities/isEthereumGasBlocknativePayload.d.mts.map +1 -0
  32. package/dist/lib/identities/isEthereumGasBlocknativePayload.d.ts +6 -0
  33. package/dist/lib/identities/isEthereumGasBlocknativePayload.d.ts.map +1 -0
  34. package/dist/lib/identities/isEthereumGasEtherchainV2Payload.d.mts +6 -0
  35. package/dist/lib/identities/isEthereumGasEtherchainV2Payload.d.mts.map +1 -0
  36. package/dist/lib/identities/isEthereumGasEtherchainV2Payload.d.ts +6 -0
  37. package/dist/lib/identities/isEthereumGasEtherchainV2Payload.d.ts.map +1 -0
  38. package/dist/lib/identities/isEthereumGasEthersPayload.d.mts +6 -0
  39. package/dist/lib/identities/isEthereumGasEthersPayload.d.mts.map +1 -0
  40. package/dist/lib/identities/isEthereumGasEthersPayload.d.ts +6 -0
  41. package/dist/lib/identities/isEthereumGasEthersPayload.d.ts.map +1 -0
  42. package/dist/lib/identities/isEthereumGasEtherscanPayload.d.mts +6 -0
  43. package/dist/lib/identities/isEthereumGasEtherscanPayload.d.mts.map +1 -0
  44. package/dist/lib/identities/isEthereumGasEtherscanPayload.d.ts +6 -0
  45. package/dist/lib/identities/isEthereumGasEtherscanPayload.d.ts.map +1 -0
  46. package/dist/lib/identities/isEthereumGasEthgasstationPayload.d.mts +6 -0
  47. package/dist/lib/identities/isEthereumGasEthgasstationPayload.d.mts.map +1 -0
  48. package/dist/lib/identities/isEthereumGasEthgasstationPayload.d.ts +6 -0
  49. package/dist/lib/identities/isEthereumGasEthgasstationPayload.d.ts.map +1 -0
  50. package/dist/lib/index.d.mts +2 -0
  51. package/dist/lib/index.d.mts.map +1 -0
  52. package/dist/lib/index.d.ts +2 -0
  53. package/dist/lib/index.d.ts.map +1 -0
  54. package/dist/lib/transforms/index.d.mts +6 -0
  55. package/dist/lib/transforms/index.d.mts.map +1 -0
  56. package/dist/lib/transforms/index.d.ts +6 -0
  57. package/dist/lib/transforms/index.d.ts.map +1 -0
  58. package/dist/lib/transforms/transformGasFromBlocknative.d.mts +4 -0
  59. package/dist/lib/transforms/transformGasFromBlocknative.d.mts.map +1 -0
  60. package/dist/lib/transforms/transformGasFromBlocknative.d.ts +4 -0
  61. package/dist/lib/transforms/transformGasFromBlocknative.d.ts.map +1 -0
  62. package/dist/lib/transforms/transformGasFromEtherchainV2.d.mts +4 -0
  63. package/dist/lib/transforms/transformGasFromEtherchainV2.d.mts.map +1 -0
  64. package/dist/lib/transforms/transformGasFromEtherchainV2.d.ts +4 -0
  65. package/dist/lib/transforms/transformGasFromEtherchainV2.d.ts.map +1 -0
  66. package/dist/lib/transforms/transformGasFromEthers.d.mts +4 -0
  67. package/dist/lib/transforms/transformGasFromEthers.d.mts.map +1 -0
  68. package/dist/lib/transforms/transformGasFromEthers.d.ts +4 -0
  69. package/dist/lib/transforms/transformGasFromEthers.d.ts.map +1 -0
  70. package/dist/lib/transforms/transformGasFromEtherscan.d.mts +4 -0
  71. package/dist/lib/transforms/transformGasFromEtherscan.d.mts.map +1 -0
  72. package/dist/lib/transforms/transformGasFromEtherscan.d.ts +4 -0
  73. package/dist/lib/transforms/transformGasFromEtherscan.d.ts.map +1 -0
  74. package/dist/lib/transforms/transformGasFromEthgasstation.d.mts +4 -0
  75. package/dist/lib/transforms/transformGasFromEthgasstation.d.mts.map +1 -0
  76. package/dist/lib/transforms/transformGasFromEthgasstation.d.ts +4 -0
  77. package/dist/lib/transforms/transformGasFromEthgasstation.d.ts.map +1 -0
  78. package/dist/test/index.d.mts +6 -0
  79. package/dist/test/index.d.mts.map +1 -0
  80. package/dist/test/index.d.ts +6 -0
  81. package/dist/test/index.d.ts.map +1 -0
  82. package/dist/test/sampleBlocknativeGas.d.mts +3 -0
  83. package/dist/test/sampleBlocknativeGas.d.mts.map +1 -0
  84. package/dist/test/sampleBlocknativeGas.d.ts +3 -0
  85. package/dist/test/sampleBlocknativeGas.d.ts.map +1 -0
  86. package/dist/test/sampleEtherchainGasV2.d.mts +3 -0
  87. package/dist/test/sampleEtherchainGasV2.d.mts.map +1 -0
  88. package/dist/test/sampleEtherchainGasV2.d.ts +3 -0
  89. package/dist/test/sampleEtherchainGasV2.d.ts.map +1 -0
  90. package/dist/test/sampleEthersGas.d.mts +3 -0
  91. package/dist/test/sampleEthersGas.d.mts.map +1 -0
  92. package/dist/test/sampleEthersGas.d.ts +3 -0
  93. package/dist/test/sampleEthersGas.d.ts.map +1 -0
  94. package/dist/test/sampleEtherscanGas.d.mts +3 -0
  95. package/dist/test/sampleEtherscanGas.d.mts.map +1 -0
  96. package/dist/test/sampleEtherscanGas.d.ts +3 -0
  97. package/dist/test/sampleEtherscanGas.d.ts.map +1 -0
  98. package/dist/test/sampleEthgasstationGas.d.mts +3 -0
  99. package/dist/test/sampleEthgasstationGas.d.mts.map +1 -0
  100. package/dist/test/sampleEthgasstationGas.d.ts +3 -0
  101. package/dist/test/sampleEthgasstationGas.d.ts.map +1 -0
  102. package/package.json +17 -23
  103. package/tsup.config.ts +0 -16
@@ -0,0 +1,16 @@
1
+ import { AbstractDiviner } from '@xyo-network/abstract-diviner';
2
+ import { DivinerConfig, DivinerModule, DivinerParams } from '@xyo-network/diviner';
3
+ import { AnyConfigSchema } from '@xyo-network/module';
4
+ import { Payload } from '@xyo-network/payload-model';
5
+ import { Promisable } from '@xyo-network/promise';
6
+ import { EthereumGasDivinerConfigSchema } from './Schema';
7
+ export type EthereumGasDivinerConfig = DivinerConfig<{
8
+ schema: EthereumGasDivinerConfigSchema;
9
+ }>;
10
+ export type EthereumGasDivinerParams = DivinerParams<AnyConfigSchema<EthereumGasDivinerConfig>>;
11
+ export declare class EthereumGasDiviner<TParams extends EthereumGasDivinerParams = EthereumGasDivinerParams> extends AbstractDiviner<TParams> implements DivinerModule {
12
+ static readonly configSchemas: string[];
13
+ static targetSchema: string;
14
+ protected divineHandler(payloads?: Payload[]): Promisable<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,EAAE,aAAa,EAAE,aAAa,EAAE,aAAa,EAAE,MAAM,sBAAsB,CAAA;AAElF,OAAO,EAAE,eAAe,EAAE,MAAM,qBAAqB,CAAA;AACrD,OAAO,EAAE,OAAO,EAAE,MAAM,4BAA4B,CAAA;AACpD,OAAO,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAA;AAGjD,OAAO,EAAE,8BAA8B,EAAE,MAAM,UAAU,CAAA;AAEzD,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;IAExB,gBAAyB,aAAa,EAAE,MAAM,EAAE,CAAmC;IACnF,OAAgB,YAAY,EAAE,MAAM,CAAoB;cAErC,aAAa,CAAC,QAAQ,CAAC,EAAE,OAAO,EAAE,GAAG,UAAU,CAAC,OAAO,EAAE,CAAC;CAI9E"}
@@ -0,0 +1,16 @@
1
+ import { AbstractDiviner } from '@xyo-network/abstract-diviner';
2
+ import { DivinerConfig, DivinerModule, DivinerParams } from '@xyo-network/diviner';
3
+ import { AnyConfigSchema } from '@xyo-network/module';
4
+ import { Payload } from '@xyo-network/payload-model';
5
+ import { Promisable } from '@xyo-network/promise';
6
+ import { EthereumGasDivinerConfigSchema } from './Schema';
7
+ export type EthereumGasDivinerConfig = DivinerConfig<{
8
+ schema: EthereumGasDivinerConfigSchema;
9
+ }>;
10
+ export type EthereumGasDivinerParams = DivinerParams<AnyConfigSchema<EthereumGasDivinerConfig>>;
11
+ export declare class EthereumGasDiviner<TParams extends EthereumGasDivinerParams = EthereumGasDivinerParams> extends AbstractDiviner<TParams> implements DivinerModule {
12
+ static readonly configSchemas: string[];
13
+ static targetSchema: string;
14
+ protected divineHandler(payloads?: Payload[]): Promisable<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,EAAE,aAAa,EAAE,aAAa,EAAE,aAAa,EAAE,MAAM,sBAAsB,CAAA;AAElF,OAAO,EAAE,eAAe,EAAE,MAAM,qBAAqB,CAAA;AACrD,OAAO,EAAE,OAAO,EAAE,MAAM,4BAA4B,CAAA;AACpD,OAAO,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAA;AAGjD,OAAO,EAAE,8BAA8B,EAAE,MAAM,UAAU,CAAA;AAEzD,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;IAExB,gBAAyB,aAAa,EAAE,MAAM,EAAE,CAAmC;IACnF,OAAgB,YAAY,EAAE,MAAM,CAAoB;cAErC,aAAa,CAAC,QAAQ,CAAC,EAAE,OAAO,EAAE,GAAG,UAAU,CAAC,OAAO,EAAE,CAAC;CAI9E"}
@@ -0,0 +1,50 @@
1
+ import { EthereumGasDiviner } from './Diviner';
2
+ export declare const EthereumGasPlugin: () => import("@xyo-network/payloadset-plugin").PayloadSetDivinerPlugin<EthereumGasDiviner<import("@xyo-network/core").BaseParamsFields & {
3
+ account?: import("@xyo-network/account-model").AccountInstance | "random" | undefined;
4
+ config: import("@xyo-network/payload-model").SchemaFields & import("@xyo-network/payload-model").PayloadFields & Omit<{
5
+ accountDerivationPath?: string | undefined;
6
+ readonly archivist?: import("@xyo-network/module-model").ArchivistModuleConfig | undefined;
7
+ readonly labels?: import("@xyo-network/module-model").Labels | undefined;
8
+ readonly name?: string | undefined;
9
+ readonly paging?: Record<string, {
10
+ size?: number | undefined;
11
+ }> | undefined;
12
+ readonly security?: {
13
+ readonly allowAnonymous?: boolean | undefined;
14
+ readonly allowed?: Record<string, (string | import("@xyo-network/module-model").CosigningAddressSet)[]> | undefined;
15
+ readonly disallowed?: Record<string, string[]> | undefined;
16
+ } | undefined;
17
+ readonly sign?: boolean | undefined;
18
+ readonly storeQueries?: boolean | undefined;
19
+ readonly timestamp?: boolean | undefined;
20
+ } & Omit<import("@xyo-network/payload-model").SchemaFields & import("@xyo-network/payload-model").PayloadFields & Omit<{
21
+ accountDerivationPath?: string | undefined;
22
+ readonly archivist?: import("@xyo-network/module-model").ArchivistModuleConfig | undefined;
23
+ readonly labels?: import("@xyo-network/module-model").Labels | undefined;
24
+ readonly name?: string | undefined;
25
+ readonly paging?: Record<string, {
26
+ size?: number | undefined;
27
+ }> | undefined;
28
+ readonly security?: {
29
+ readonly allowAnonymous?: boolean | undefined;
30
+ readonly allowed?: Record<string, (string | import("@xyo-network/module-model").CosigningAddressSet)[]> | undefined;
31
+ readonly disallowed?: Record<string, string[]> | undefined;
32
+ } | undefined;
33
+ readonly sign?: boolean | undefined;
34
+ readonly storeQueries?: boolean | undefined;
35
+ readonly timestamp?: boolean | undefined;
36
+ } & {
37
+ schema: "network.xyo.blockchain.ethereum.gas.diviner.config";
38
+ } & Omit<{
39
+ schema: "network.xyo.blockchain.ethereum.gas.diviner.config";
40
+ }, "schema">, "schema"> & {
41
+ schema: "network.xyo.blockchain.ethereum.gas.diviner.config";
42
+ }, "schema"> & {
43
+ schema: string;
44
+ }, "schema"> & {
45
+ schema: string;
46
+ };
47
+ ephemeralQueryAccountEnabled?: boolean | undefined;
48
+ wallet?: import("@xyo-network/wallet-model").WalletInstance | undefined;
49
+ }>>;
50
+ //# 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,WAAW,CAAA;AAE9C,eAAO,MAAM,iBAAiB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAQ3B,CAAA"}
@@ -0,0 +1,50 @@
1
+ import { EthereumGasDiviner } from './Diviner';
2
+ export declare const EthereumGasPlugin: () => import("@xyo-network/payloadset-plugin").PayloadSetDivinerPlugin<EthereumGasDiviner<import("@xyo-network/core").BaseParamsFields & {
3
+ account?: import("@xyo-network/account-model").AccountInstance | "random" | undefined;
4
+ config: import("@xyo-network/payload-model").SchemaFields & import("@xyo-network/payload-model").PayloadFields & Omit<{
5
+ accountDerivationPath?: string | undefined;
6
+ readonly archivist?: import("@xyo-network/module-model").ArchivistModuleConfig | undefined;
7
+ readonly labels?: import("@xyo-network/module-model").Labels | undefined;
8
+ readonly name?: string | undefined;
9
+ readonly paging?: Record<string, {
10
+ size?: number | undefined;
11
+ }> | undefined;
12
+ readonly security?: {
13
+ readonly allowAnonymous?: boolean | undefined;
14
+ readonly allowed?: Record<string, (string | import("@xyo-network/module-model").CosigningAddressSet)[]> | undefined;
15
+ readonly disallowed?: Record<string, string[]> | undefined;
16
+ } | undefined;
17
+ readonly sign?: boolean | undefined;
18
+ readonly storeQueries?: boolean | undefined;
19
+ readonly timestamp?: boolean | undefined;
20
+ } & Omit<import("@xyo-network/payload-model").SchemaFields & import("@xyo-network/payload-model").PayloadFields & Omit<{
21
+ accountDerivationPath?: string | undefined;
22
+ readonly archivist?: import("@xyo-network/module-model").ArchivistModuleConfig | undefined;
23
+ readonly labels?: import("@xyo-network/module-model").Labels | undefined;
24
+ readonly name?: string | undefined;
25
+ readonly paging?: Record<string, {
26
+ size?: number | undefined;
27
+ }> | undefined;
28
+ readonly security?: {
29
+ readonly allowAnonymous?: boolean | undefined;
30
+ readonly allowed?: Record<string, (string | import("@xyo-network/module-model").CosigningAddressSet)[]> | undefined;
31
+ readonly disallowed?: Record<string, string[]> | undefined;
32
+ } | undefined;
33
+ readonly sign?: boolean | undefined;
34
+ readonly storeQueries?: boolean | undefined;
35
+ readonly timestamp?: boolean | undefined;
36
+ } & {
37
+ schema: "network.xyo.blockchain.ethereum.gas.diviner.config";
38
+ } & Omit<{
39
+ schema: "network.xyo.blockchain.ethereum.gas.diviner.config";
40
+ }, "schema">, "schema"> & {
41
+ schema: "network.xyo.blockchain.ethereum.gas.diviner.config";
42
+ }, "schema"> & {
43
+ schema: string;
44
+ }, "schema"> & {
45
+ schema: string;
46
+ };
47
+ ephemeralQueryAccountEnabled?: boolean | undefined;
48
+ wallet?: import("@xyo-network/wallet-model").WalletInstance | undefined;
49
+ }>>;
50
+ //# 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,WAAW,CAAA;AAE9C,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,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"}