@xyo-network/gas-price-plugin 2.42.15 → 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.
- package/dist/cjs/Diviner.d.ts +1 -1
- package/dist/cjs/Diviner.d.ts.map +1 -1
- package/dist/cjs/Plugin.d.ts +1 -1
- package/dist/cjs/Plugin.js +2 -2
- package/dist/cjs/Plugin.js.map +1 -1
- package/dist/cjs/lib/divineGas.d.ts +2 -2
- package/dist/cjs/lib/divineGas.d.ts.map +1 -1
- package/dist/cjs/lib/divineGas.js +2 -2
- package/dist/cjs/lib/divineGas.js.map +1 -1
- package/dist/cjs/lib/identities/isXyoEthereumGasBlocknativePayload.d.ts +2 -2
- package/dist/cjs/lib/identities/isXyoEthereumGasBlocknativePayload.d.ts.map +1 -1
- package/dist/cjs/lib/identities/isXyoEthereumGasEtherchainV1Payload.d.ts +2 -2
- package/dist/cjs/lib/identities/isXyoEthereumGasEtherchainV1Payload.d.ts.map +1 -1
- package/dist/cjs/lib/identities/isXyoEthereumGasEtherchainV2Payload.d.ts +2 -2
- package/dist/cjs/lib/identities/isXyoEthereumGasEtherchainV2Payload.d.ts.map +1 -1
- package/dist/cjs/lib/identities/isXyoEthereumGasEthersPayload.d.ts +2 -2
- package/dist/cjs/lib/identities/isXyoEthereumGasEthersPayload.d.ts.map +1 -1
- package/dist/cjs/lib/identities/isXyoEthereumGasEtherscanPayload.d.ts +2 -2
- package/dist/cjs/lib/identities/isXyoEthereumGasEtherscanPayload.d.ts.map +1 -1
- package/dist/cjs/lib/identities/isXyoEthereumGasEthgasstationPayload.d.ts +2 -2
- package/dist/cjs/lib/identities/isXyoEthereumGasEthgasstationPayload.d.ts.map +1 -1
- package/dist/docs.json +91 -91
- package/dist/esm/Diviner.d.ts +1 -1
- package/dist/esm/Diviner.d.ts.map +1 -1
- package/dist/esm/Plugin.d.ts +1 -1
- package/dist/esm/Plugin.js +1 -1
- package/dist/esm/Plugin.js.map +1 -1
- package/dist/esm/lib/divineGas.d.ts +2 -2
- package/dist/esm/lib/divineGas.d.ts.map +1 -1
- package/dist/esm/lib/divineGas.js +1 -1
- package/dist/esm/lib/divineGas.js.map +1 -1
- package/dist/esm/lib/identities/isXyoEthereumGasBlocknativePayload.d.ts +2 -2
- package/dist/esm/lib/identities/isXyoEthereumGasBlocknativePayload.d.ts.map +1 -1
- package/dist/esm/lib/identities/isXyoEthereumGasEtherchainV1Payload.d.ts +2 -2
- package/dist/esm/lib/identities/isXyoEthereumGasEtherchainV1Payload.d.ts.map +1 -1
- package/dist/esm/lib/identities/isXyoEthereumGasEtherchainV2Payload.d.ts +2 -2
- package/dist/esm/lib/identities/isXyoEthereumGasEtherchainV2Payload.d.ts.map +1 -1
- package/dist/esm/lib/identities/isXyoEthereumGasEthersPayload.d.ts +2 -2
- package/dist/esm/lib/identities/isXyoEthereumGasEthersPayload.d.ts.map +1 -1
- package/dist/esm/lib/identities/isXyoEthereumGasEtherscanPayload.d.ts +2 -2
- package/dist/esm/lib/identities/isXyoEthereumGasEtherscanPayload.d.ts.map +1 -1
- package/dist/esm/lib/identities/isXyoEthereumGasEthgasstationPayload.d.ts +2 -2
- package/dist/esm/lib/identities/isXyoEthereumGasEthgasstationPayload.d.ts.map +1 -1
- package/package.json +17 -15
- package/src/Diviner.spec.ts +1 -1
- package/src/Diviner.ts +1 -1
- package/src/Plugin.ts +1 -1
- package/src/lib/divineGas.ts +2 -1
- package/src/lib/identities/isXyoEthereumGasBlocknativePayload.ts +1 -1
- package/src/lib/identities/isXyoEthereumGasEtherchainV1Payload.ts +1 -1
- package/src/lib/identities/isXyoEthereumGasEtherchainV2Payload.ts +1 -1
- package/src/lib/identities/isXyoEthereumGasEthersPayload.ts +1 -1
- package/src/lib/identities/isXyoEthereumGasEtherscanPayload.ts +1 -1
- package/src/lib/identities/isXyoEthereumGasEthgasstationPayload.ts +1 -1
package/dist/esm/Diviner.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { AbstractDiviner, DivinerConfig } from '@xyo-network/diviner';
|
|
2
2
|
import { ModuleParams } from '@xyo-network/module';
|
|
3
|
-
import { XyoPayloads } from '@xyo-network/payload';
|
|
3
|
+
import { XyoPayloads } from '@xyo-network/payload-model';
|
|
4
4
|
import { Promisable } from '@xyo-network/promise';
|
|
5
5
|
import { XyoEthereumGasDivinerConfigSchema } from './Schema';
|
|
6
6
|
export type XyoEthereumGasDivinerConfig = DivinerConfig<{
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Diviner.d.ts","sourceRoot":"","sources":["../../src/Diviner.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,aAAa,EAA+B,MAAM,sBAAsB,CAAA;AAElG,OAAO,EAAE,YAAY,EAAE,MAAM,qBAAqB,CAAA;AAClD,OAAO,EAAE,WAAW,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"Diviner.d.ts","sourceRoot":"","sources":["../../src/Diviner.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,aAAa,EAA+B,MAAM,sBAAsB,CAAA;AAElG,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,eAAe;IACxD,OAAgB,YAAY,uDAAoC;IAChE,OAAgB,YAAY,wCAAuB;WAE7B,MAAM,CAAC,MAAM,CAAC,EAAE,YAAY,CAAC,2BAA2B,CAAC;IAI/D,MAAM,CAAC,QAAQ,EAAE,WAAW,GAAG,UAAU,CAAC,WAAW,CAAC;IAK7D,OAAO;CAGjB"}
|
package/dist/esm/Plugin.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ModuleParams } from '@xyo-network/module';
|
|
2
2
|
import { PayloadSetDivinerPlugin } from '@xyo-network/payloadset-plugin';
|
|
3
|
-
export declare const XyoEthereumGasPlugin: () => PayloadSetDivinerPlugin<ModuleParams<import("@xyo-network/payload").SchemaFields & import("@xyo-network/payload").PayloadFields & {
|
|
3
|
+
export declare const XyoEthereumGasPlugin: () => PayloadSetDivinerPlugin<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;
|
package/dist/esm/Plugin.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { XyoEthereumGasSchema } from '@xyo-network/gas-price-payload-plugin';
|
|
2
|
-
import { PayloadSetSchema } from '@xyo-network/payload';
|
|
2
|
+
import { PayloadSetSchema } from '@xyo-network/payload-model';
|
|
3
3
|
import { createPayloadSetPlugin } from '@xyo-network/payloadset-plugin';
|
|
4
4
|
import { XyoEthereumGasDiviner } from './Diviner';
|
|
5
5
|
export const XyoEthereumGasPlugin = () => createPayloadSetPlugin({ required: { [XyoEthereumGasSchema]: 1 }, schema: PayloadSetSchema }, {
|
package/dist/esm/Plugin.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Plugin.js","sourceRoot":"","sources":["../../src/Plugin.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,oBAAoB,EAAE,MAAM,uCAAuC,CAAA;AAE5E,OAAO,EAAE,gBAAgB,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"Plugin.js","sourceRoot":"","sources":["../../src/Plugin.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,oBAAoB,EAAE,MAAM,uCAAuC,CAAA;AAE5E,OAAO,EAAE,gBAAgB,EAAE,MAAM,4BAA4B,CAAA;AAC7D,OAAO,EAAE,sBAAsB,EAA2B,MAAM,gCAAgC,CAAA;AAEhG,OAAO,EAAE,qBAAqB,EAA+B,MAAM,WAAW,CAAA;AAE9E,MAAM,CAAC,MAAM,oBAAoB,GAAG,GAAG,EAAE,CACvC,sBAAsB,CACpB,EAAE,QAAQ,EAAE,EAAE,CAAC,oBAAoB,CAAC,EAAE,CAAC,EAAE,EAAE,MAAM,EAAE,gBAAgB,EAAE,EACrE;IACE,OAAO,EAAE,KAAK,EAAE,MAAM,EAAE,EAAE;QACxB,OAAO,MAAM,qBAAqB,CAAC,MAAM,CAAC,MAAM,CAAC,CAAA;IACnD,CAAC;CACF,CACF,CAAA"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { XyoEthereumGasPayload } from '@xyo-network/gas-price-payload-plugin';
|
|
2
|
-
import { XyoPayloads } from '@xyo-network/payload';
|
|
3
|
-
export declare const divineGas: (payloads: XyoPayloads<import("@xyo-network/payload").SchemaFields & import("@xyo-network/payload").PayloadFields & {
|
|
2
|
+
import { XyoPayloads } from '@xyo-network/payload-model';
|
|
3
|
+
export declare const divineGas: (payloads: XyoPayloads<import("@xyo-network/payload-model").SchemaFields & import("@xyo-network/payload-model").PayloadFields & {
|
|
4
4
|
schema: string;
|
|
5
5
|
}>) => XyoEthereumGasPayload;
|
|
6
6
|
//# sourceMappingURL=divineGas.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"divineGas.d.ts","sourceRoot":"","sources":["../../../src/lib/divineGas.ts"],"names":[],"mappings":"AAAA,OAAO,EAAW,qBAAqB,EAAwB,MAAM,uCAAuC,CAAA;
|
|
1
|
+
{"version":3,"file":"divineGas.d.ts","sourceRoot":"","sources":["../../../src/lib/divineGas.ts"],"names":[],"mappings":"AAAA,OAAO,EAAW,qBAAqB,EAAwB,MAAM,uCAAuC,CAAA;AAE5G,OAAO,EAAE,WAAW,EAAE,MAAM,4BAA4B,CAAA;AAoBxD,eAAO,MAAM,SAAS;;OAA4B,qBAYjD,CAAA"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { XyoEthereumGasSchema } from '@xyo-network/gas-price-payload-plugin';
|
|
2
|
-
import { XyoPayloadBuilder } from '@xyo-network/payload';
|
|
2
|
+
import { XyoPayloadBuilder } from '@xyo-network/payload-builder';
|
|
3
3
|
import { average } from './average';
|
|
4
4
|
import { isXyoEthereumGasBlocknativePayload, isXyoEthereumGasEtherchainV1Payload, isXyoEthereumGasEtherchainV2Payload, isXyoEthereumGasEtherscanPayload, isXyoEthereumGasEthersPayload, isXyoEthereumGasEthgasstationPayload, } from './identities';
|
|
5
5
|
import { transformGasFromBlocknative, transformGasFromEtherchainV1, transformGasFromEtherchainV2, transformGasFromEthers, transformGasFromEtherscan, transformGasFromEthgasstation, } from './transforms';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"divineGas.js","sourceRoot":"","sources":["../../../src/lib/divineGas.ts"],"names":[],"mappings":"AAAA,OAAO,EAAkC,oBAAoB,EAAE,MAAM,uCAAuC,CAAA;AAC5G,OAAO,EAAE,iBAAiB,
|
|
1
|
+
{"version":3,"file":"divineGas.js","sourceRoot":"","sources":["../../../src/lib/divineGas.ts"],"names":[],"mappings":"AAAA,OAAO,EAAkC,oBAAoB,EAAE,MAAM,uCAAuC,CAAA;AAC5G,OAAO,EAAE,iBAAiB,EAAE,MAAM,8BAA8B,CAAA;AAGhE,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAA;AACnC,OAAO,EACL,kCAAkC,EAClC,mCAAmC,EACnC,mCAAmC,EACnC,gCAAgC,EAChC,6BAA6B,EAC7B,oCAAoC,GACrC,MAAM,cAAc,CAAA;AACrB,OAAO,EACL,2BAA2B,EAC3B,4BAA4B,EAC5B,4BAA4B,EAC5B,sBAAsB,EACtB,yBAAyB,EACzB,6BAA6B,GAC9B,MAAM,cAAc,CAAA;AAErB,MAAM,CAAC,MAAM,SAAS,GAAG,CAAC,QAAqB,EAAyB,EAAE;IACxE,MAAM,WAAW,GAAG,QAAQ,CAAC,MAAM,CAAC,kCAAkC,CAAC,CAAC,GAAG,CAAC,2BAA2B,CAAC,CAAA;IACxG,MAAM,YAAY,GAAG,QAAQ,CAAC,MAAM,CAAC,mCAAmC,CAAC,CAAC,GAAG,CAAC,4BAA4B,CAAC,CAAA;IAC3G,MAAM,YAAY,GAAG,QAAQ,CAAC,MAAM,CAAC,mCAAmC,CAAC,CAAC,GAAG,CAAC,4BAA4B,CAAC,CAAA;IAC3G,MAAM,MAAM,GAAG,QAAQ,CAAC,MAAM,CAAC,6BAA6B,CAAC,CAAC,GAAG,CAAC,sBAAsB,CAAC,CAAA;IACzF,MAAM,SAAS,GAAG,QAAQ,CAAC,MAAM,CAAC,gCAAgC,CAAC,CAAC,GAAG,CAAC,yBAAyB,CAAC,CAAA;IAClG,MAAM,aAAa,GAAG,QAAQ,CAAC,MAAM,CAAC,oCAAoC,CAAC,CAAC,GAAG,CAAC,6BAA6B,CAAC,CAAA;IAC9G,MAAM,gBAAgB,GAAc,CAAC,GAAG,WAAW,EAAE,GAAG,YAAY,EAAE,GAAG,YAAY,EAAE,GAAG,MAAM,EAAE,GAAG,SAAS,EAAE,GAAG,aAAa,CAAC,CAAA;IACjI,MAAM,GAAG,GAAG,OAAO,CAAC,gBAAgB,CAAC,CAAA;IACrC,MAAM,SAAS,GAAG,IAAI,CAAC,GAAG,EAAE,CAAA;IAC5B,MAAM,OAAO,GAAG,IAAI,iBAAiB,CAAwB,EAAE,MAAM,EAAE,oBAAoB,EAAE,CAAC,CAAC,MAAM,CAAC,EAAE,GAAG,GAAG,EAAE,SAAS,EAAE,CAAC,CAAC,KAAK,EAAE,CAAA;IACpI,OAAO,OAAO,CAAA;AAChB,CAAC,CAAA"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { XyoPayload } from '@xyo-network/payload';
|
|
2
|
-
export declare const isXyoEthereumGasBlocknativePayload: (payload?: XyoPayload | null) => payload is import("@xyo-network/payload").SchemaFields & import("@xyo-network/payload").PayloadFields & import("@xyo-network/blocknative-ethereum-gas-payload-plugin").EthereumGasBlocknativeResponse & {
|
|
1
|
+
import { XyoPayload } from '@xyo-network/payload-model';
|
|
2
|
+
export declare const isXyoEthereumGasBlocknativePayload: (payload?: XyoPayload | null) => payload is import("@xyo-network/payload-model").SchemaFields & import("@xyo-network/payload-model").PayloadFields & import("@xyo-network/blocknative-ethereum-gas-payload-plugin").EthereumGasBlocknativeResponse & {
|
|
3
3
|
schema: "network.xyo.blockchain.ethereum.gas.blocknative";
|
|
4
4
|
timestamp: number;
|
|
5
5
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"isXyoEthereumGasBlocknativePayload.d.ts","sourceRoot":"","sources":["../../../../src/lib/identities/isXyoEthereumGasBlocknativePayload.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,UAAU,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"isXyoEthereumGasBlocknativePayload.d.ts","sourceRoot":"","sources":["../../../../src/lib/identities/isXyoEthereumGasBlocknativePayload.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,UAAU,EAAE,MAAM,4BAA4B,CAAA;AAEvD,eAAO,MAAM,kCAAkC,aAAc,UAAU,GAAG,IAAI;;;CAE7E,CAAA"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { XyoPayload } from '@xyo-network/payload';
|
|
2
|
-
export declare const isXyoEthereumGasEtherchainV1Payload: (payload?: XyoPayload | null) => payload is import("@xyo-network/payload").SchemaFields & import("@xyo-network/payload").PayloadFields & import("@xyo-network/etherchain-gas-ethereum-blockchain-payload-plugins").EthereumGasEtherchainV1Response & {
|
|
1
|
+
import { XyoPayload } from '@xyo-network/payload-model';
|
|
2
|
+
export declare const isXyoEthereumGasEtherchainV1Payload: (payload?: XyoPayload | null) => payload is import("@xyo-network/payload-model").SchemaFields & import("@xyo-network/payload-model").PayloadFields & import("@xyo-network/etherchain-gas-ethereum-blockchain-payload-plugins").EthereumGasEtherchainV1Response & {
|
|
3
3
|
schema: "network.xyo.blockchain.ethereum.gas.etherchain.v1";
|
|
4
4
|
timestamp: number;
|
|
5
5
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"isXyoEthereumGasEtherchainV1Payload.d.ts","sourceRoot":"","sources":["../../../../src/lib/identities/isXyoEthereumGasEtherchainV1Payload.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,UAAU,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"isXyoEthereumGasEtherchainV1Payload.d.ts","sourceRoot":"","sources":["../../../../src/lib/identities/isXyoEthereumGasEtherchainV1Payload.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,UAAU,EAAE,MAAM,4BAA4B,CAAA;AAEvD,eAAO,MAAM,mCAAmC,aAAc,UAAU,GAAG,IAAI;;;CAE9E,CAAA"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { XyoPayload } from '@xyo-network/payload';
|
|
2
|
-
export declare const isXyoEthereumGasEtherchainV2Payload: (payload?: XyoPayload | null) => payload is import("@xyo-network/payload").SchemaFields & import("@xyo-network/payload").PayloadFields & import("@xyo-network/etherchain-gas-ethereum-blockchain-payload-plugins").EthereumGasEtherchainV2Response & {
|
|
1
|
+
import { XyoPayload } from '@xyo-network/payload-model';
|
|
2
|
+
export declare const isXyoEthereumGasEtherchainV2Payload: (payload?: XyoPayload | null) => payload is import("@xyo-network/payload-model").SchemaFields & import("@xyo-network/payload-model").PayloadFields & import("@xyo-network/etherchain-gas-ethereum-blockchain-payload-plugins").EthereumGasEtherchainV2Response & {
|
|
3
3
|
schema: "network.xyo.blockchain.ethereum.gas.etherchain.v2";
|
|
4
4
|
timestamp: number;
|
|
5
5
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"isXyoEthereumGasEtherchainV2Payload.d.ts","sourceRoot":"","sources":["../../../../src/lib/identities/isXyoEthereumGasEtherchainV2Payload.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,UAAU,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"isXyoEthereumGasEtherchainV2Payload.d.ts","sourceRoot":"","sources":["../../../../src/lib/identities/isXyoEthereumGasEtherchainV2Payload.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,UAAU,EAAE,MAAM,4BAA4B,CAAA;AAEvD,eAAO,MAAM,mCAAmC,aAAc,UAAU,GAAG,IAAI;;;CAE9E,CAAA"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { XyoPayload } from '@xyo-network/payload';
|
|
2
|
-
export declare const isXyoEthereumGasEthersPayload: (payload?: XyoPayload | null) => payload is import("@xyo-network/payload").SchemaFields & import("@xyo-network/payload").PayloadFields & import("@xyo-network/ethers-ethereum-gas-payload-plugin").EthereumGasEthersResponse & {
|
|
1
|
+
import { XyoPayload } from '@xyo-network/payload-model';
|
|
2
|
+
export declare const isXyoEthereumGasEthersPayload: (payload?: XyoPayload | null) => payload is import("@xyo-network/payload-model").SchemaFields & import("@xyo-network/payload-model").PayloadFields & import("@xyo-network/ethers-ethereum-gas-payload-plugin").EthereumGasEthersResponse & {
|
|
3
3
|
schema: "network.xyo.blockchain.ethereum.gas.ethers";
|
|
4
4
|
timestamp: number;
|
|
5
5
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"isXyoEthereumGasEthersPayload.d.ts","sourceRoot":"","sources":["../../../../src/lib/identities/isXyoEthereumGasEthersPayload.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,UAAU,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"isXyoEthereumGasEthersPayload.d.ts","sourceRoot":"","sources":["../../../../src/lib/identities/isXyoEthereumGasEthersPayload.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,UAAU,EAAE,MAAM,4BAA4B,CAAA;AAEvD,eAAO,MAAM,6BAA6B,aAAc,UAAU,GAAG,IAAI;;;CAExE,CAAA"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { XyoPayload } from '@xyo-network/payload';
|
|
2
|
-
export declare const isXyoEthereumGasEtherscanPayload: (payload?: XyoPayload | null) => payload is import("@xyo-network/payload").SchemaFields & import("@xyo-network/payload").PayloadFields & import("@xyo-network/etherscan-ethereum-gas-payload-plugin").EthereumGasEtherscanResponse & {
|
|
1
|
+
import { XyoPayload } from '@xyo-network/payload-model';
|
|
2
|
+
export declare const isXyoEthereumGasEtherscanPayload: (payload?: XyoPayload | null) => payload is import("@xyo-network/payload-model").SchemaFields & import("@xyo-network/payload-model").PayloadFields & import("@xyo-network/etherscan-ethereum-gas-payload-plugin").EthereumGasEtherscanResponse & {
|
|
3
3
|
schema: "network.xyo.blockchain.ethereum.gas.etherscan";
|
|
4
4
|
timestamp: number;
|
|
5
5
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"isXyoEthereumGasEtherscanPayload.d.ts","sourceRoot":"","sources":["../../../../src/lib/identities/isXyoEthereumGasEtherscanPayload.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,UAAU,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"isXyoEthereumGasEtherscanPayload.d.ts","sourceRoot":"","sources":["../../../../src/lib/identities/isXyoEthereumGasEtherscanPayload.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,UAAU,EAAE,MAAM,4BAA4B,CAAA;AAEvD,eAAO,MAAM,gCAAgC,aAAc,UAAU,GAAG,IAAI;;;CAE3E,CAAA"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { XyoPayload } from '@xyo-network/payload';
|
|
2
|
-
export declare const isXyoEthereumGasEthgasstationPayload: (payload?: XyoPayload | null) => payload is import("@xyo-network/payload").SchemaFields & import("@xyo-network/payload").PayloadFields & import("@xyo-network/ethgasstation-ethereum-gas-payload-plugin").EthereumGasEthgasstationResponse & {
|
|
1
|
+
import { XyoPayload } from '@xyo-network/payload-model';
|
|
2
|
+
export declare const isXyoEthereumGasEthgasstationPayload: (payload?: XyoPayload | null) => payload is import("@xyo-network/payload-model").SchemaFields & import("@xyo-network/payload-model").PayloadFields & import("@xyo-network/ethgasstation-ethereum-gas-payload-plugin").EthereumGasEthgasstationResponse & {
|
|
3
3
|
schema: "network.xyo.blockchain.ethereum.gas.ethgasstation";
|
|
4
4
|
timestamp: number;
|
|
5
5
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"isXyoEthereumGasEthgasstationPayload.d.ts","sourceRoot":"","sources":["../../../../src/lib/identities/isXyoEthereumGasEthgasstationPayload.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,UAAU,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"isXyoEthereumGasEthgasstationPayload.d.ts","sourceRoot":"","sources":["../../../../src/lib/identities/isXyoEthereumGasEthgasstationPayload.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,UAAU,EAAE,MAAM,4BAA4B,CAAA;AAEvD,eAAO,MAAM,oCAAoC,aAAc,UAAU,GAAG,IAAI;;;CAE/E,CAAA"}
|
package/package.json
CHANGED
|
@@ -10,18 +10,19 @@
|
|
|
10
10
|
"url": "https://github.com/XYOracleNetwork/sdk-xyo-client-js/issues"
|
|
11
11
|
},
|
|
12
12
|
"dependencies": {
|
|
13
|
-
"@xylabs/exists": "^2.6.
|
|
14
|
-
"@xyo-network/blocknative-ethereum-gas-payload-plugin": "^2.42.
|
|
15
|
-
"@xyo-network/diviner": "^2.42.
|
|
16
|
-
"@xyo-network/etherchain-gas-ethereum-blockchain-payload-plugins": "^2.42.
|
|
17
|
-
"@xyo-network/ethers-ethereum-gas-payload-plugin": "^2.42.
|
|
18
|
-
"@xyo-network/etherscan-ethereum-gas-payload-plugin": "^2.42.
|
|
19
|
-
"@xyo-network/ethgasstation-ethereum-gas-payload-plugin": "^2.42.
|
|
20
|
-
"@xyo-network/gas-price-payload-plugin": "^2.42.
|
|
21
|
-
"@xyo-network/module": "^2.42.
|
|
22
|
-
"@xyo-network/payload": "^2.42.15",
|
|
23
|
-
"@xyo-network/
|
|
24
|
-
"@xyo-network/
|
|
13
|
+
"@xylabs/exists": "^2.6.12",
|
|
14
|
+
"@xyo-network/blocknative-ethereum-gas-payload-plugin": "^2.42.16",
|
|
15
|
+
"@xyo-network/diviner": "^2.42.16",
|
|
16
|
+
"@xyo-network/etherchain-gas-ethereum-blockchain-payload-plugins": "^2.42.16",
|
|
17
|
+
"@xyo-network/ethers-ethereum-gas-payload-plugin": "^2.42.16",
|
|
18
|
+
"@xyo-network/etherscan-ethereum-gas-payload-plugin": "^2.42.16",
|
|
19
|
+
"@xyo-network/ethgasstation-ethereum-gas-payload-plugin": "^2.42.16",
|
|
20
|
+
"@xyo-network/gas-price-payload-plugin": "^2.42.16",
|
|
21
|
+
"@xyo-network/module": "^2.42.16",
|
|
22
|
+
"@xyo-network/payload-builder": "^2.42.15",
|
|
23
|
+
"@xyo-network/payload-model": "^2.42.15",
|
|
24
|
+
"@xyo-network/payloadset-plugin": "^2.42.16",
|
|
25
|
+
"@xyo-network/promise": "^2.42.16",
|
|
25
26
|
"regression": "^2.0.1"
|
|
26
27
|
},
|
|
27
28
|
"devDependencies": {
|
|
@@ -34,7 +35,7 @@
|
|
|
34
35
|
"@uniswap/sdk": "^3.0.3",
|
|
35
36
|
"@uniswap/sdk-core": "^3.1.0",
|
|
36
37
|
"@uniswap/v3-sdk": "^3.9.0",
|
|
37
|
-
"@xylabs/ts-scripts-yarn3": "^2.10.
|
|
38
|
+
"@xylabs/ts-scripts-yarn3": "^2.10.25",
|
|
38
39
|
"@xyo-network/typechain": "^2.0.4",
|
|
39
40
|
"@xyo-network/uniswap-typechain": "^2.0.4"
|
|
40
41
|
},
|
|
@@ -48,7 +49,8 @@
|
|
|
48
49
|
"@uniswap/sdk-core": "^3.1.0",
|
|
49
50
|
"@uniswap/v3-sdk": "^3.9.0",
|
|
50
51
|
"@xyo-network/typechain": "^2.0.3",
|
|
51
|
-
"@xyo-network/uniswap-typechain": "^2.0.3"
|
|
52
|
+
"@xyo-network/uniswap-typechain": "^2.0.3",
|
|
53
|
+
"axios": "^1.2.1"
|
|
52
54
|
},
|
|
53
55
|
"description": "Primary SDK for using XYO Protocol 2.0",
|
|
54
56
|
"browser": "dist/esm/index.js",
|
|
@@ -83,5 +85,5 @@
|
|
|
83
85
|
},
|
|
84
86
|
"sideEffects": false,
|
|
85
87
|
"types": "dist/esm/index.d.ts",
|
|
86
|
-
"version": "2.42.
|
|
88
|
+
"version": "2.42.16"
|
|
87
89
|
}
|
package/src/Diviner.spec.ts
CHANGED
|
@@ -11,7 +11,7 @@ import { XyoEthereumGasEthersWitness, XyoEthereumGasEthersWitnessConfigSchema }
|
|
|
11
11
|
import { XyoEthereumGasEtherscanWitness, XyoEthereumGasEtherscanWitnessConfigSchema } from '@xyo-network/etherscan-ethereum-gas-plugin'
|
|
12
12
|
import { XyoEthereumGasEthgasstationWitness, XyoEthereumGasEthgasstationWitnessConfigSchema } from '@xyo-network/ethgasstation-ethereum-gas-plugin'
|
|
13
13
|
import { XyoEthereumGasPayload, XyoEthereumGasSchema } from '@xyo-network/gas-price-payload-plugin'
|
|
14
|
-
import { XyoPayload } from '@xyo-network/payload'
|
|
14
|
+
import { XyoPayload } from '@xyo-network/payload-model'
|
|
15
15
|
|
|
16
16
|
import { XyoEthereumGasDiviner } from './Diviner'
|
|
17
17
|
import {
|
package/src/Diviner.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { AbstractDiviner, DivinerConfig, XyoDivinerDivineQuerySchema } from '@xyo-network/diviner'
|
|
2
2
|
import { XyoEthereumGasSchema } from '@xyo-network/gas-price-payload-plugin'
|
|
3
3
|
import { ModuleParams } from '@xyo-network/module'
|
|
4
|
-
import { XyoPayloads } from '@xyo-network/payload'
|
|
4
|
+
import { XyoPayloads } from '@xyo-network/payload-model'
|
|
5
5
|
import { Promisable } from '@xyo-network/promise'
|
|
6
6
|
|
|
7
7
|
import { divineGas } from './lib'
|
package/src/Plugin.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { XyoEthereumGasSchema } from '@xyo-network/gas-price-payload-plugin'
|
|
2
2
|
import { ModuleParams } from '@xyo-network/module'
|
|
3
|
-
import { PayloadSetSchema } from '@xyo-network/payload'
|
|
3
|
+
import { PayloadSetSchema } from '@xyo-network/payload-model'
|
|
4
4
|
import { createPayloadSetPlugin, PayloadSetDivinerPlugin } from '@xyo-network/payloadset-plugin'
|
|
5
5
|
|
|
6
6
|
import { XyoEthereumGasDiviner, XyoEthereumGasDivinerConfig } from './Diviner'
|
package/src/lib/divineGas.ts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { FeeData, XyoEthereumGasPayload, XyoEthereumGasSchema } from '@xyo-network/gas-price-payload-plugin'
|
|
2
|
-
import { XyoPayloadBuilder
|
|
2
|
+
import { XyoPayloadBuilder } from '@xyo-network/payload-builder'
|
|
3
|
+
import { XyoPayloads } from '@xyo-network/payload-model'
|
|
3
4
|
|
|
4
5
|
import { average } from './average'
|
|
5
6
|
import {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { XyoEthereumGasBlocknativePayload, XyoEthereumGasBlocknativeSchema } from '@xyo-network/blocknative-ethereum-gas-payload-plugin'
|
|
2
|
-
import { XyoPayload } from '@xyo-network/payload'
|
|
2
|
+
import { XyoPayload } from '@xyo-network/payload-model'
|
|
3
3
|
|
|
4
4
|
export const isXyoEthereumGasBlocknativePayload = (payload?: XyoPayload | null): payload is XyoEthereumGasBlocknativePayload => {
|
|
5
5
|
return payload?.schema === XyoEthereumGasBlocknativeSchema
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { XyoEthereumGasEtherchainV1Payload, XyoEthereumGasEtherchainV1Schema } from '@xyo-network/etherchain-gas-ethereum-blockchain-payload-plugins'
|
|
2
|
-
import { XyoPayload } from '@xyo-network/payload'
|
|
2
|
+
import { XyoPayload } from '@xyo-network/payload-model'
|
|
3
3
|
|
|
4
4
|
export const isXyoEthereumGasEtherchainV1Payload = (payload?: XyoPayload | null): payload is XyoEthereumGasEtherchainV1Payload => {
|
|
5
5
|
return payload?.schema === XyoEthereumGasEtherchainV1Schema
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { XyoEthereumGasEtherchainV2Payload, XyoEthereumGasEtherchainV2Schema } from '@xyo-network/etherchain-gas-ethereum-blockchain-payload-plugins'
|
|
2
|
-
import { XyoPayload } from '@xyo-network/payload'
|
|
2
|
+
import { XyoPayload } from '@xyo-network/payload-model'
|
|
3
3
|
|
|
4
4
|
export const isXyoEthereumGasEtherchainV2Payload = (payload?: XyoPayload | null): payload is XyoEthereumGasEtherchainV2Payload => {
|
|
5
5
|
return payload?.schema === XyoEthereumGasEtherchainV2Schema
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { XyoEthereumGasEthersPayload, XyoEthereumGasEthersSchema } from '@xyo-network/ethers-ethereum-gas-payload-plugin'
|
|
2
|
-
import { XyoPayload } from '@xyo-network/payload'
|
|
2
|
+
import { XyoPayload } from '@xyo-network/payload-model'
|
|
3
3
|
|
|
4
4
|
export const isXyoEthereumGasEthersPayload = (payload?: XyoPayload | null): payload is XyoEthereumGasEthersPayload => {
|
|
5
5
|
return payload?.schema === XyoEthereumGasEthersSchema
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { XyoEthereumGasEtherscanPayload, XyoEthereumGasEtherscanSchema } from '@xyo-network/etherscan-ethereum-gas-payload-plugin'
|
|
2
|
-
import { XyoPayload } from '@xyo-network/payload'
|
|
2
|
+
import { XyoPayload } from '@xyo-network/payload-model'
|
|
3
3
|
|
|
4
4
|
export const isXyoEthereumGasEtherscanPayload = (payload?: XyoPayload | null): payload is XyoEthereumGasEtherscanPayload => {
|
|
5
5
|
return payload?.schema === XyoEthereumGasEtherscanSchema
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { XyoEthereumGasEthgasstationPayload, XyoEthereumGasEthgasstationSchema } from '@xyo-network/ethgasstation-ethereum-gas-payload-plugin'
|
|
2
|
-
import { XyoPayload } from '@xyo-network/payload'
|
|
2
|
+
import { XyoPayload } from '@xyo-network/payload-model'
|
|
3
3
|
|
|
4
4
|
export const isXyoEthereumGasEthgasstationPayload = (payload?: XyoPayload | null): payload is XyoEthereumGasEthgasstationPayload => {
|
|
5
5
|
return payload?.schema === XyoEthereumGasEthgasstationSchema
|