@xyo-network/gas-price-plugin 2.46.4 → 2.47.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.
- package/dist/cjs/Diviner.js +1 -1
- package/dist/cjs/Diviner.js.map +1 -1
- package/dist/docs.json +920 -527
- package/dist/esm/Diviner.js +1 -1
- package/dist/esm/Diviner.js.map +1 -1
- package/dist/types/Diviner.d.ts +3 -3
- package/dist/types/Diviner.d.ts.map +1 -1
- package/dist/types/Plugin.d.ts +3 -1
- package/dist/types/Plugin.d.ts.map +1 -1
- package/package.json +13 -13
- package/src/Diviner.ts +4 -4
- package/src/Plugin.ts +1 -1
package/dist/esm/Diviner.js
CHANGED
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,eAAe,
|
|
1
|
+
{"version":3,"file":"Diviner.js","sourceRoot":"","sources":["../../src/Diviner.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAgC,MAAM,sBAAsB,CAAA;AACpF,OAAO,EAAE,oBAAoB,EAAE,MAAM,uCAAuC,CAAA;AAK5E,OAAO,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA;AACjC,OAAO,EAAE,iCAAiC,EAAE,MAAM,UAAU,CAAA;AAI5D,MAAM,OAAO,qBAAsB,SAAQ,eAAe;IACxD,MAAM,CAAU,YAAY,GAAG,iCAAiC,CAAA;IAChE,MAAM,CAAU,YAAY,GAAG,oBAAoB,CAAA;IAEnD,MAAM,CAAU,KAAK,CAAC,MAAM,CAAC,MAAkD;QAC7E,OAAO,CAAC,MAAM,KAAK,CAAC,MAAM,CAAC,MAAM,CAAC,CAA0B,CAAA;IAC9D,CAAC;IAEe,MAAM,CAAC,QAAsB;QAC3C,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 { AbstractDiviner, DivinerConfig } from '@xyo-network/diviner';
|
|
1
|
+
import { AbstractDiviner, DivinerConfig, DivinerModule } from '@xyo-network/diviner';
|
|
2
2
|
import { ModuleParams } from '@xyo-network/module';
|
|
3
3
|
import { XyoPayloads } from '@xyo-network/payload-model';
|
|
4
4
|
import { Promisable } from '@xyo-network/promise';
|
|
@@ -6,10 +6,10 @@ import { XyoEthereumGasDivinerConfigSchema } from './Schema';
|
|
|
6
6
|
export type XyoEthereumGasDivinerConfig = DivinerConfig<{
|
|
7
7
|
schema: XyoEthereumGasDivinerConfigSchema;
|
|
8
8
|
}>;
|
|
9
|
-
export declare class XyoEthereumGasDiviner extends AbstractDiviner {
|
|
9
|
+
export declare class XyoEthereumGasDiviner extends AbstractDiviner implements DivinerModule {
|
|
10
10
|
static configSchema: "network.xyo.blockchain.ethereum.gas.diviner.config";
|
|
11
11
|
static targetSchema: "network.xyo.blockchain.ethereum.gas";
|
|
12
12
|
static create(params?: ModuleParams<XyoEthereumGasDivinerConfig>): Promise<XyoEthereumGasDiviner>;
|
|
13
|
-
divine(payloads
|
|
13
|
+
divine(payloads?: XyoPayloads): Promisable<XyoPayloads>;
|
|
14
14
|
}
|
|
15
15
|
//# sourceMappingURL=Diviner.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Diviner.d.ts","sourceRoot":"","sources":["../../src/Diviner.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,aAAa,EAAE,MAAM,sBAAsB,CAAA;
|
|
1
|
+
{"version":3,"file":"Diviner.d.ts","sourceRoot":"","sources":["../../src/Diviner.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,aAAa,EAAE,aAAa,EAAE,MAAM,sBAAsB,CAAA;AAEpF,OAAO,EAAE,YAAY,EAAE,MAAM,qBAAqB,CAAA;AAClD,OAAO,EAAE,WAAW,EAAE,MAAM,4BAA4B,CAAA;AACxD,OAAO,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAA;AAGjD,OAAO,EAAE,iCAAiC,EAAE,MAAM,UAAU,CAAA;AAE5D,MAAM,MAAM,2BAA2B,GAAG,aAAa,CAAC;IAAE,MAAM,EAAE,iCAAiC,CAAA;CAAE,CAAC,CAAA;AAEtG,qBAAa,qBAAsB,SAAQ,eAAgB,YAAW,aAAa;IACjF,OAAgB,YAAY,uDAAoC;IAChE,OAAgB,YAAY,wCAAuB;WAE7B,MAAM,CAAC,MAAM,CAAC,EAAE,YAAY,CAAC,2BAA2B,CAAC;IAI/D,MAAM,CAAC,QAAQ,CAAC,EAAE,WAAW,GAAG,UAAU,CAAC,WAAW,CAAC;CAIxE"}
|
package/dist/types/Plugin.d.ts
CHANGED
|
@@ -1,8 +1,10 @@
|
|
|
1
1
|
import { ModuleParams } from '@xyo-network/module';
|
|
2
2
|
import { PayloadSetDivinerPlugin } from '@xyo-network/payloadset-plugin';
|
|
3
|
-
|
|
3
|
+
import { XyoEthereumGasDiviner } from './Diviner';
|
|
4
|
+
export declare const XyoEthereumGasPlugin: () => PayloadSetDivinerPlugin<XyoEthereumGasDiviner, ModuleParams<import("@xyo-network/payload-model").SchemaFields & import("@xyo-network/payload-model").PayloadFields & {
|
|
4
5
|
name?: string | undefined;
|
|
5
6
|
security?: {
|
|
7
|
+
allowAnonymous?: boolean | undefined;
|
|
6
8
|
allowed?: Record<string, (string | import("@xyo-network/module").CosigningAddressSet)[]> | undefined;
|
|
7
9
|
disallowed?: Record<string, string[]> | undefined;
|
|
8
10
|
} | undefined;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Plugin.d.ts","sourceRoot":"","sources":["../../src/Plugin.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,YAAY,EAAE,MAAM,qBAAqB,CAAA;AAElD,OAAO,EAA0B,uBAAuB,EAAE,MAAM,gCAAgC,CAAA;
|
|
1
|
+
{"version":3,"file":"Plugin.d.ts","sourceRoot":"","sources":["../../src/Plugin.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,YAAY,EAAE,MAAM,qBAAqB,CAAA;AAElD,OAAO,EAA0B,uBAAuB,EAAE,MAAM,gCAAgC,CAAA;AAEhG,OAAO,EAAE,qBAAqB,EAA+B,MAAM,WAAW,CAAA;AAE9E,eAAO,MAAM,oBAAoB;;;;;;;;;;;GAQ9B,CAAA"}
|
package/package.json
CHANGED
|
@@ -11,18 +11,18 @@
|
|
|
11
11
|
},
|
|
12
12
|
"dependencies": {
|
|
13
13
|
"@xylabs/exists": "^2.7.1",
|
|
14
|
-
"@xyo-network/blocknative-ethereum-gas-payload-plugin": "^2.
|
|
15
|
-
"@xyo-network/diviner": "^2.
|
|
16
|
-
"@xyo-network/etherchain-gas-ethereum-blockchain-payload-plugins": "^2.
|
|
17
|
-
"@xyo-network/ethers-ethereum-gas-payload-plugin": "^2.
|
|
18
|
-
"@xyo-network/etherscan-ethereum-gas-payload-plugin": "^2.
|
|
19
|
-
"@xyo-network/ethgasstation-ethereum-gas-payload-plugin": "^2.
|
|
20
|
-
"@xyo-network/gas-price-payload-plugin": "^2.
|
|
21
|
-
"@xyo-network/module": "^2.
|
|
22
|
-
"@xyo-network/payload-builder": "^2.
|
|
23
|
-
"@xyo-network/payload-model": "^2.
|
|
24
|
-
"@xyo-network/payloadset-plugin": "^2.
|
|
25
|
-
"@xyo-network/promise": "^2.
|
|
14
|
+
"@xyo-network/blocknative-ethereum-gas-payload-plugin": "^2.47.1",
|
|
15
|
+
"@xyo-network/diviner": "^2.47.1",
|
|
16
|
+
"@xyo-network/etherchain-gas-ethereum-blockchain-payload-plugins": "^2.47.1",
|
|
17
|
+
"@xyo-network/ethers-ethereum-gas-payload-plugin": "^2.47.1",
|
|
18
|
+
"@xyo-network/etherscan-ethereum-gas-payload-plugin": "^2.47.1",
|
|
19
|
+
"@xyo-network/ethgasstation-ethereum-gas-payload-plugin": "^2.47.1",
|
|
20
|
+
"@xyo-network/gas-price-payload-plugin": "^2.47.1",
|
|
21
|
+
"@xyo-network/module": "^2.47.1",
|
|
22
|
+
"@xyo-network/payload-builder": "^2.47.1",
|
|
23
|
+
"@xyo-network/payload-model": "^2.47.1",
|
|
24
|
+
"@xyo-network/payloadset-plugin": "^2.47.1",
|
|
25
|
+
"@xyo-network/promise": "^2.47.1",
|
|
26
26
|
"regression": "^2.0.1"
|
|
27
27
|
},
|
|
28
28
|
"devDependencies": {
|
|
@@ -82,5 +82,5 @@
|
|
|
82
82
|
},
|
|
83
83
|
"sideEffects": false,
|
|
84
84
|
"types": "dist/types/index.d.ts",
|
|
85
|
-
"version": "2.
|
|
85
|
+
"version": "2.47.1"
|
|
86
86
|
}
|
package/src/Diviner.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { AbstractDiviner, DivinerConfig } from '@xyo-network/diviner'
|
|
1
|
+
import { AbstractDiviner, DivinerConfig, DivinerModule } from '@xyo-network/diviner'
|
|
2
2
|
import { XyoEthereumGasSchema } from '@xyo-network/gas-price-payload-plugin'
|
|
3
3
|
import { ModuleParams } from '@xyo-network/module'
|
|
4
4
|
import { XyoPayloads } from '@xyo-network/payload-model'
|
|
@@ -9,7 +9,7 @@ import { XyoEthereumGasDivinerConfigSchema } from './Schema'
|
|
|
9
9
|
|
|
10
10
|
export type XyoEthereumGasDivinerConfig = DivinerConfig<{ schema: XyoEthereumGasDivinerConfigSchema }>
|
|
11
11
|
|
|
12
|
-
export class XyoEthereumGasDiviner extends AbstractDiviner {
|
|
12
|
+
export class XyoEthereumGasDiviner extends AbstractDiviner implements DivinerModule {
|
|
13
13
|
static override configSchema = XyoEthereumGasDivinerConfigSchema
|
|
14
14
|
static override targetSchema = XyoEthereumGasSchema
|
|
15
15
|
|
|
@@ -17,8 +17,8 @@ export class XyoEthereumGasDiviner extends AbstractDiviner {
|
|
|
17
17
|
return (await super.create(params)) as XyoEthereumGasDiviner
|
|
18
18
|
}
|
|
19
19
|
|
|
20
|
-
public override divine(payloads
|
|
21
|
-
const cost = divineGas(payloads)
|
|
20
|
+
public override divine(payloads?: XyoPayloads): Promisable<XyoPayloads> {
|
|
21
|
+
const cost = divineGas(payloads ?? [])
|
|
22
22
|
return [cost]
|
|
23
23
|
}
|
|
24
24
|
}
|
package/src/Plugin.ts
CHANGED
|
@@ -6,7 +6,7 @@ import { createPayloadSetPlugin, PayloadSetDivinerPlugin } from '@xyo-network/pa
|
|
|
6
6
|
import { XyoEthereumGasDiviner, XyoEthereumGasDivinerConfig } from './Diviner'
|
|
7
7
|
|
|
8
8
|
export const XyoEthereumGasPlugin = () =>
|
|
9
|
-
createPayloadSetPlugin<PayloadSetDivinerPlugin<ModuleParams<XyoEthereumGasDivinerConfig>>>(
|
|
9
|
+
createPayloadSetPlugin<PayloadSetDivinerPlugin<XyoEthereumGasDiviner, ModuleParams<XyoEthereumGasDivinerConfig>>>(
|
|
10
10
|
{ required: { [XyoEthereumGasSchema]: 1 }, schema: PayloadSetSchema },
|
|
11
11
|
{
|
|
12
12
|
diviner: async (params) => {
|