@xyo-network/etherscan-ethereum-gas-plugin 2.42.14 → 2.42.16

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.
@@ -1,6 +1,6 @@
1
1
  import { ModuleParams } from '@xyo-network/module';
2
2
  import { PayloadSetWitnessPlugin } from '@xyo-network/payloadset-plugin';
3
- export declare const XyoEthereumGasEtherscanPlugin: () => PayloadSetWitnessPlugin<ModuleParams<import("@xyo-network/payload").SchemaFields & import("@xyo-network/payload").PayloadFields & {
3
+ export declare const XyoEthereumGasEtherscanPlugin: () => PayloadSetWitnessPlugin<ModuleParams<import("@xyo-network/payload-model").SchemaFields & import("@xyo-network/payload-model").PayloadFields & {
4
4
  security?: {
5
5
  allowed?: Record<string, string[][]> | undefined;
6
6
  disallowed?: Record<string, string[]> | undefined;
@@ -9,7 +9,7 @@ export declare const XyoEthereumGasEtherscanPlugin: () => PayloadSetWitnessPlugi
9
9
  apiKey: string;
10
10
  schema: "network.xyo.blockchain.ethereum.gas.etherscan.witness.config";
11
11
  } & {
12
- targetSet?: (import("@xyo-network/payload").SchemaFields & import("@xyo-network/payload").PayloadFields & import("@xyo-network/payload").PayloadSet & {
12
+ targetSet?: (import("@xyo-network/payload-model").SchemaFields & import("@xyo-network/payload-model").PayloadFields & import("@xyo-network/payload-model").PayloadSet & {
13
13
  schema: "network.xyo.payload.set";
14
14
  }) | undefined;
15
15
  }>>;
@@ -3,10 +3,10 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.XyoEthereumGasEtherscanPlugin = void 0;
4
4
  const tslib_1 = require("tslib");
5
5
  const etherscan_ethereum_gas_payload_plugin_1 = require("@xyo-network/etherscan-ethereum-gas-payload-plugin");
6
- const payload_1 = require("@xyo-network/payload");
6
+ const payload_model_1 = require("@xyo-network/payload-model");
7
7
  const payloadset_plugin_1 = require("@xyo-network/payloadset-plugin");
8
8
  const Witness_1 = require("./Witness");
9
- const XyoEthereumGasEtherscanPlugin = () => (0, payloadset_plugin_1.createPayloadSetPlugin)({ required: { [etherscan_ethereum_gas_payload_plugin_1.XyoEthereumGasEtherscanSchema]: 1 }, schema: payload_1.PayloadSetSchema }, {
9
+ const XyoEthereumGasEtherscanPlugin = () => (0, payloadset_plugin_1.createPayloadSetPlugin)({ required: { [etherscan_ethereum_gas_payload_plugin_1.XyoEthereumGasEtherscanSchema]: 1 }, schema: payload_model_1.PayloadSetSchema }, {
10
10
  witness: (params) => tslib_1.__awaiter(void 0, void 0, void 0, function* () {
11
11
  const result = yield Witness_1.XyoEthereumGasEtherscanWitness.create(params);
12
12
  return result;
@@ -1 +1 @@
1
- {"version":3,"file":"Plugin.js","sourceRoot":"","sources":["../../src/Plugin.ts"],"names":[],"mappings":";;;;AAAA,8GAAkG;AAElG,kDAAuD;AACvD,sEAAgG;AAGhG,uCAA0D;AAEnD,MAAM,6BAA6B,GAAG,GAAG,EAAE,CAChD,IAAA,0CAAsB,EACpB,EAAE,QAAQ,EAAE,EAAE,CAAC,qEAA6B,CAAC,EAAE,CAAC,EAAE,EAAE,MAAM,EAAE,0BAAgB,EAAE,EAC9E;IACE,OAAO,EAAE,CAAO,MAAM,EAAE,EAAE;QACxB,MAAM,MAAM,GAAG,MAAM,wCAA8B,CAAC,MAAM,CAAC,MAAM,CAAC,CAAA;QAClE,OAAO,MAAM,CAAA;IACf,CAAC,CAAA;CACF,CACF,CAAA;AATU,QAAA,6BAA6B,iCASvC"}
1
+ {"version":3,"file":"Plugin.js","sourceRoot":"","sources":["../../src/Plugin.ts"],"names":[],"mappings":";;;;AAAA,8GAAkG;AAElG,8DAA6D;AAC7D,sEAAgG;AAGhG,uCAA0D;AAEnD,MAAM,6BAA6B,GAAG,GAAG,EAAE,CAChD,IAAA,0CAAsB,EACpB,EAAE,QAAQ,EAAE,EAAE,CAAC,qEAA6B,CAAC,EAAE,CAAC,EAAE,EAAE,MAAM,EAAE,gCAAgB,EAAE,EAC9E;IACE,OAAO,EAAE,CAAO,MAAM,EAAE,EAAE;QACxB,MAAM,MAAM,GAAG,MAAM,wCAA8B,CAAC,MAAM,CAAC,MAAM,CAAC,CAAA;QAClE,OAAO,MAAM,CAAA;IACf,CAAC,CAAA;CACF,CACF,CAAA;AATU,QAAA,6BAA6B,iCASvC"}
@@ -1,5 +1,5 @@
1
1
  import { ModuleParams } from '@xyo-network/module';
2
- import { XyoPayload } from '@xyo-network/payload';
2
+ import { XyoPayload } from '@xyo-network/payload-model';
3
3
  import { TimestampWitness } from '@xyo-network/witness';
4
4
  import { XyoEthereumGasEtherscanWitnessConfig } from './Config';
5
5
  export declare class XyoEthereumGasEtherscanWitness extends TimestampWitness<XyoEthereumGasEtherscanWitnessConfig> {
@@ -1 +1 @@
1
- {"version":3,"file":"Witness.d.ts","sourceRoot":"","sources":["../../src/Witness.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,YAAY,EAAE,MAAM,qBAAqB,CAAA;AAClD,OAAO,EAAE,UAAU,EAAqB,MAAM,sBAAsB,CAAA;AACpE,OAAO,EAAE,gBAAgB,EAAE,MAAM,sBAAsB,CAAA;AAEvD,OAAO,EAAE,oCAAoC,EAAE,MAAM,UAAU,CAAA;AAI/D,qBAAa,8BAA+B,SAAQ,gBAAgB,CAAC,oCAAoC,CAAC;IACxG,OAAgB,YAAY,iEAA6C;WAEnD,MAAM,CAAC,MAAM,CAAC,EAAE,YAAY,CAAC,oCAAoC,CAAC,GAAG,OAAO,CAAC,8BAA8B,CAAC;IAKnH,OAAO,IAAI,OAAO,CAAC,UAAU,EAAE,CAAC;CAOhD"}
1
+ {"version":3,"file":"Witness.d.ts","sourceRoot":"","sources":["../../src/Witness.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,YAAY,EAAE,MAAM,qBAAqB,CAAA;AAElD,OAAO,EAAE,UAAU,EAAE,MAAM,4BAA4B,CAAA;AACvD,OAAO,EAAE,gBAAgB,EAAE,MAAM,sBAAsB,CAAA;AAEvD,OAAO,EAAE,oCAAoC,EAAE,MAAM,UAAU,CAAA;AAI/D,qBAAa,8BAA+B,SAAQ,gBAAgB,CAAC,oCAAoC,CAAC;IACxG,OAAgB,YAAY,iEAA6C;WAEnD,MAAM,CAAC,MAAM,CAAC,EAAE,YAAY,CAAC,oCAAoC,CAAC,GAAG,OAAO,CAAC,8BAA8B,CAAC;IAKnH,OAAO,IAAI,OAAO,CAAC,UAAU,EAAE,CAAC;CAOhD"}
@@ -4,7 +4,7 @@ exports.XyoEthereumGasEtherscanWitness = void 0;
4
4
  const tslib_1 = require("tslib");
5
5
  const assert_1 = require("@xylabs/assert");
6
6
  const etherscan_ethereum_gas_payload_plugin_1 = require("@xyo-network/etherscan-ethereum-gas-payload-plugin");
7
- const payload_1 = require("@xyo-network/payload");
7
+ const payload_builder_1 = require("@xyo-network/payload-builder");
8
8
  const witness_1 = require("@xyo-network/witness");
9
9
  const lib_1 = require("./lib");
10
10
  const Schema_1 = require("./Schema");
@@ -26,7 +26,7 @@ class XyoEthereumGasEtherscanWitness extends witness_1.TimestampWitness {
26
26
  var _a;
27
27
  return tslib_1.__awaiter(this, void 0, void 0, function* () {
28
28
  const apiKey = (0, assert_1.assertEx)((_a = this.config) === null || _a === void 0 ? void 0 : _a.apiKey, 'apiKey is required');
29
- const payload = new payload_1.XyoPayloadBuilder({ schema: etherscan_ethereum_gas_payload_plugin_1.XyoEthereumGasEtherscanSchema })
29
+ const payload = new payload_builder_1.XyoPayloadBuilder({ schema: etherscan_ethereum_gas_payload_plugin_1.XyoEthereumGasEtherscanSchema })
30
30
  .fields(yield (0, lib_1.getGasFromEtherscan)(apiKey))
31
31
  .build();
32
32
  return _super.observe.call(this, [payload]);
@@ -1 +1 @@
1
- {"version":3,"file":"Witness.js","sourceRoot":"","sources":["../../src/Witness.ts"],"names":[],"mappings":";;;;AAAA,2CAAyC;AACzC,8GAAkI;AAElI,kDAAoE;AACpE,kDAAuD;AAGvD,+BAA2C;AAC3C,qCAAqE;AAErE,MAAa,8BAA+B,SAAQ,0BAAsD;IAGx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