@xyo-network/gas-price-plugin 2.67.0-rc.1 → 2.67.0-rc.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.
- package/dist/cjs/Diviner.js +1 -1
- package/dist/cjs/Diviner.js.map +1 -1
- package/dist/esm/Diviner.js +2 -2
- package/dist/esm/Diviner.js.map +1 -1
- package/dist/types/Diviner.d.ts +2 -2
- package/dist/types/Diviner.d.ts.map +1 -1
- package/dist/types/Plugin.d.ts +43 -1
- package/dist/types/Plugin.d.ts.map +1 -1
- package/package.json +14 -14
- package/src/Diviner.ts +2 -2
package/dist/cjs/Diviner.js
CHANGED
|
@@ -5,7 +5,7 @@ const abstract_diviner_1 = require("@xyo-network/abstract-diviner");
|
|
|
5
5
|
const gas_price_payload_plugin_1 = require("@xyo-network/gas-price-payload-plugin");
|
|
6
6
|
const lib_1 = require("./lib");
|
|
7
7
|
const Schema_1 = require("./Schema");
|
|
8
|
-
class EthereumGasDiviner extends abstract_diviner_1.
|
|
8
|
+
class EthereumGasDiviner extends abstract_diviner_1.AbstractDiviner {
|
|
9
9
|
divineHandler(payloads) {
|
|
10
10
|
const cost = (0, lib_1.divineGas)(payloads !== null && payloads !== void 0 ? payloads : []);
|
|
11
11
|
return [cost];
|
package/dist/cjs/Diviner.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Diviner.js","sourceRoot":"","sources":["../../src/Diviner.ts"],"names":[],"mappings":";;;AAAA,
|
|
1
|
+
{"version":3,"file":"Diviner.js","sourceRoot":"","sources":["../../src/Diviner.ts"],"names":[],"mappings":";;;AAAA,oEAA+D;AAE/D,oFAAyE;AAKzE,+BAAiC;AACjC,qCAAyD;AAKzD,MAAa,kBACX,SAAQ,kCAAwB;IAMb,aAAa,CAAC,QAAoB;QACnD,MAAM,IAAI,GAAG,IAAA,eAAS,EAAC,QAAQ,aAAR,QAAQ,cAAR,QAAQ,GAAI,EAAE,CAAC,CAAA;QACtC,OAAO,CAAC,IAAI,CAAC,CAAA;IACf,CAAC;;AAVH,gDAWC;AAP0B,gCAAa,GAAa,CAAC,uCAA8B,CAAC,CAAA;AACnE,+BAAY,GAAW,4CAAiB,CAAA"}
|
package/dist/esm/Diviner.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { AbstractDiviner } from '@xyo-network/abstract-diviner';
|
|
2
2
|
import { EthereumGasSchema } from '@xyo-network/gas-price-payload-plugin';
|
|
3
3
|
import { divineGas } from './lib';
|
|
4
4
|
import { EthereumGasDivinerConfigSchema } from './Schema';
|
|
5
|
-
export class EthereumGasDiviner extends
|
|
5
|
+
export class EthereumGasDiviner extends AbstractDiviner {
|
|
6
6
|
static configSchemas = [EthereumGasDivinerConfigSchema];
|
|
7
7
|
static targetSchema = EthereumGasSchema;
|
|
8
8
|
divineHandler(payloads) {
|
package/dist/esm/Diviner.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Diviner.js","sourceRoot":"","sources":["../../src/Diviner.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"Diviner.js","sourceRoot":"","sources":["../../src/Diviner.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,+BAA+B,CAAA;AAE/D,OAAO,EAAE,iBAAiB,EAAE,MAAM,uCAAuC,CAAA;AAKzE,OAAO,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA;AACjC,OAAO,EAAE,8BAA8B,EAAE,MAAM,UAAU,CAAA;AAKzD,MAAM,OAAO,kBACX,SAAQ,eAAwB;IAGhC,MAAM,CAAmB,aAAa,GAAa,CAAC,8BAA8B,CAAC,CAAA;IACnF,MAAM,CAAU,YAAY,GAAW,iBAAiB,CAAA;IAErC,aAAa,CAAC,QAAoB;QACnD,MAAM,IAAI,GAAG,SAAS,CAAC,QAAQ,IAAI,EAAE,CAAC,CAAA;QACtC,OAAO,CAAC,IAAI,CAAC,CAAA;IACf,CAAC"}
|
package/dist/types/Diviner.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { AbstractDiviner } from '@xyo-network/abstract-diviner';
|
|
2
2
|
import { DivinerConfig, DivinerModule, DivinerParams } from '@xyo-network/diviner';
|
|
3
3
|
import { AnyConfigSchema } from '@xyo-network/module';
|
|
4
4
|
import { Payload } from '@xyo-network/payload-model';
|
|
@@ -8,7 +8,7 @@ export type EthereumGasDivinerConfig = DivinerConfig<{
|
|
|
8
8
|
schema: EthereumGasDivinerConfigSchema;
|
|
9
9
|
}>;
|
|
10
10
|
export type EthereumGasDivinerParams = DivinerParams<AnyConfigSchema<EthereumGasDivinerConfig>>;
|
|
11
|
-
export declare class EthereumGasDiviner<TParams extends EthereumGasDivinerParams = EthereumGasDivinerParams> extends
|
|
11
|
+
export declare class EthereumGasDiviner<TParams extends EthereumGasDivinerParams = EthereumGasDivinerParams> extends AbstractDiviner<TParams> implements DivinerModule {
|
|
12
12
|
static readonly configSchemas: string[];
|
|
13
13
|
static targetSchema: string;
|
|
14
14
|
protected divineHandler(payloads?: Payload[]): Promisable<Payload[]>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Diviner.d.ts","sourceRoot":"","sources":["../../src/Diviner.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,
|
|
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"}
|
package/dist/types/Plugin.d.ts
CHANGED
|
@@ -1,3 +1,45 @@
|
|
|
1
1
|
import { EthereumGasDiviner } from './Diviner';
|
|
2
|
-
export declare const EthereumGasPlugin: () => import("@xyo-network/payloadset-plugin").PayloadSetDivinerPlugin<EthereumGasDiviner<import("
|
|
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
|
+
accountDerivationPath?: string | undefined;
|
|
5
|
+
config: import("@xyo-network/payload-model").SchemaFields & import("@xyo-network/payload-model").PayloadFields & {
|
|
6
|
+
readonly archivist?: import("@xyo-network/module-model").ArchivistModuleConfig | undefined;
|
|
7
|
+
readonly name?: string | undefined;
|
|
8
|
+
readonly paging?: Record<string, {
|
|
9
|
+
size?: number | undefined;
|
|
10
|
+
}> | undefined;
|
|
11
|
+
readonly schema: string;
|
|
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 storeQueries?: boolean | undefined;
|
|
18
|
+
} & Omit<Omit<import("@xyo-network/payload-model").SchemaFields & import("@xyo-network/payload-model").PayloadFields & {
|
|
19
|
+
readonly archivist?: import("@xyo-network/module-model").ArchivistModuleConfig | undefined;
|
|
20
|
+
readonly name?: string | undefined;
|
|
21
|
+
readonly paging?: Record<string, {
|
|
22
|
+
size?: number | undefined;
|
|
23
|
+
}> | undefined;
|
|
24
|
+
readonly schema: "network.xyo.blockchain.ethereum.gas.diviner.config";
|
|
25
|
+
readonly security?: {
|
|
26
|
+
readonly allowAnonymous?: boolean | undefined;
|
|
27
|
+
readonly allowed?: Record<string, (string | import("@xyo-network/module-model").CosigningAddressSet)[]> | undefined;
|
|
28
|
+
readonly disallowed?: Record<string, string[]> | undefined;
|
|
29
|
+
} | undefined;
|
|
30
|
+
readonly storeQueries?: boolean | undefined;
|
|
31
|
+
} & Omit<{
|
|
32
|
+
schema: "network.xyo.blockchain.ethereum.gas.diviner.config";
|
|
33
|
+
} & Omit<{
|
|
34
|
+
schema: "network.xyo.blockchain.ethereum.gas.diviner.config";
|
|
35
|
+
}, "schema">, "schema"> & {
|
|
36
|
+
schema: "network.xyo.blockchain.ethereum.gas.diviner.config";
|
|
37
|
+
}, "schema"> & {
|
|
38
|
+
schema: string;
|
|
39
|
+
}, "schema"> & {
|
|
40
|
+
schema: string;
|
|
41
|
+
};
|
|
42
|
+
ephemeralQueryAccountEnabled?: boolean | undefined;
|
|
43
|
+
wallet?: import("@xyo-network/wallet-model").WalletInstance | undefined;
|
|
44
|
+
}>>;
|
|
3
45
|
//# sourceMappingURL=Plugin.d.ts.map
|
|
@@ -1 +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,
|
|
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"}
|
package/package.json
CHANGED
|
@@ -11,19 +11,19 @@
|
|
|
11
11
|
},
|
|
12
12
|
"dependencies": {
|
|
13
13
|
"@xylabs/exists": "^2.9.3",
|
|
14
|
-
"@xyo-network/abstract-diviner": "~2.67.0-rc.
|
|
15
|
-
"@xyo-network/blocknative-ethereum-gas-payload-plugin": "~2.67.0-rc.
|
|
16
|
-
"@xyo-network/diviner": "~2.67.0-rc.
|
|
17
|
-
"@xyo-network/etherchain-gas-ethereum-blockchain-payload-plugins": "~2.67.0-rc.
|
|
18
|
-
"@xyo-network/ethers-ethereum-gas-payload-plugin": "~2.67.0-rc.
|
|
19
|
-
"@xyo-network/etherscan-ethereum-gas-payload-plugin": "~2.67.0-rc.
|
|
20
|
-
"@xyo-network/ethgasstation-ethereum-gas-payload-plugin": "~2.67.0-rc.
|
|
21
|
-
"@xyo-network/gas-price-payload-plugin": "~2.67.0-rc.
|
|
22
|
-
"@xyo-network/module": "~2.67.0-rc.
|
|
23
|
-
"@xyo-network/payload-builder": "~2.67.0-rc.
|
|
24
|
-
"@xyo-network/payload-model": "~2.67.0-rc.
|
|
25
|
-
"@xyo-network/payloadset-plugin": "~2.67.0-rc.
|
|
26
|
-
"@xyo-network/promise": "~2.67.0-rc.
|
|
14
|
+
"@xyo-network/abstract-diviner": "~2.67.0-rc.3",
|
|
15
|
+
"@xyo-network/blocknative-ethereum-gas-payload-plugin": "~2.67.0-rc.3",
|
|
16
|
+
"@xyo-network/diviner": "~2.67.0-rc.3",
|
|
17
|
+
"@xyo-network/etherchain-gas-ethereum-blockchain-payload-plugins": "~2.67.0-rc.3",
|
|
18
|
+
"@xyo-network/ethers-ethereum-gas-payload-plugin": "~2.67.0-rc.3",
|
|
19
|
+
"@xyo-network/etherscan-ethereum-gas-payload-plugin": "~2.67.0-rc.3",
|
|
20
|
+
"@xyo-network/ethgasstation-ethereum-gas-payload-plugin": "~2.67.0-rc.3",
|
|
21
|
+
"@xyo-network/gas-price-payload-plugin": "~2.67.0-rc.3",
|
|
22
|
+
"@xyo-network/module": "~2.67.0-rc.3",
|
|
23
|
+
"@xyo-network/payload-builder": "~2.67.0-rc.3",
|
|
24
|
+
"@xyo-network/payload-model": "~2.67.0-rc.3",
|
|
25
|
+
"@xyo-network/payloadset-plugin": "~2.67.0-rc.3",
|
|
26
|
+
"@xyo-network/promise": "~2.67.0-rc.3",
|
|
27
27
|
"regression": "^2.0.1"
|
|
28
28
|
},
|
|
29
29
|
"devDependencies": {
|
|
@@ -83,6 +83,6 @@
|
|
|
83
83
|
},
|
|
84
84
|
"sideEffects": false,
|
|
85
85
|
"types": "dist/types/index.d.ts",
|
|
86
|
-
"version": "2.67.0-rc.
|
|
86
|
+
"version": "2.67.0-rc.3",
|
|
87
87
|
"stableVersion": "2.66.9"
|
|
88
88
|
}
|
package/src/Diviner.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { AbstractDiviner } from '@xyo-network/abstract-diviner'
|
|
2
2
|
import { DivinerConfig, DivinerModule, DivinerParams } from '@xyo-network/diviner'
|
|
3
3
|
import { EthereumGasSchema } from '@xyo-network/gas-price-payload-plugin'
|
|
4
4
|
import { AnyConfigSchema } from '@xyo-network/module'
|
|
@@ -12,7 +12,7 @@ export type EthereumGasDivinerConfig = DivinerConfig<{ schema: EthereumGasDivine
|
|
|
12
12
|
export type EthereumGasDivinerParams = DivinerParams<AnyConfigSchema<EthereumGasDivinerConfig>>
|
|
13
13
|
|
|
14
14
|
export class EthereumGasDiviner<TParams extends EthereumGasDivinerParams = EthereumGasDivinerParams>
|
|
15
|
-
extends
|
|
15
|
+
extends AbstractDiviner<TParams>
|
|
16
16
|
implements DivinerModule
|
|
17
17
|
{
|
|
18
18
|
static override readonly configSchemas: string[] = [EthereumGasDivinerConfigSchema]
|