@xyo-network/etherchain-ethereum-gas-v2-plugin 7.0.3 → 7.0.4

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,5 +1,2 @@
1
- export * from './Config.ts';
2
- export { EthereumGasEtherchainV2Plugin as default, EthereumGasEtherchainV2Plugin } from './Plugin.ts';
3
- export * from './Schema.ts';
4
- export * from './Witness.ts';
1
+ export * from '@xyo-network/payloadset-plugins/etherchain-ethereum-gas-v2';
5
2
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,aAAa,CAAA;AAC3B,OAAO,EAAE,6BAA6B,IAAI,OAAO,EAAE,6BAA6B,EAAE,MAAM,aAAa,CAAA;AACrG,cAAc,aAAa,CAAA;AAC3B,cAAc,cAAc,CAAA"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AACA,cAAc,4DAA4D,CAAA"}
@@ -1,50 +1,3 @@
1
- // src/Plugin.ts
2
- import { EthereumGasEtherchainV2Schema as EthereumGasEtherchainV2Schema2 } from "@xyo-network/etherchain-ethereum-gas-v2-payload-plugin";
3
- import { createPayloadSetWitnessPlugin, PayloadSetSchema } from "@xyo-network/sdk";
4
-
5
- // src/Witness.ts
6
- import { EthereumGasEtherchainV2Schema } from "@xyo-network/etherchain-ethereum-gas-v2-payload-plugin";
7
- import { AbstractWitness } from "@xyo-network/sdk";
8
-
9
- // src/lib/getV2GasFromEtherchain.ts
10
- import { assertEx, fetchJsonClient } from "@ariestools/sdk";
11
- var url = "https://beaconcha.in/api/v1/execution/gasnow";
12
- var getV2GasFromEtherchain = async () => {
13
- const response = await fetchJsonClient.get(url);
14
- return assertEx(response.data, () => "Empty Etherchain response");
15
- };
16
-
17
- // src/Schema.ts
18
- import { asSchema } from "@xyo-network/sdk";
19
- var EthereumGasEtherchainV2WitnessConfigSchema = asSchema("network.xyo.blockchain.ethereum.gas.etherchain.v2.witness.config", true);
20
-
21
- // src/Witness.ts
22
- var EtherchainEthereumGasWitnessV2 = class extends AbstractWitness {
23
- static configSchemas = [...super.configSchemas, EthereumGasEtherchainV2WitnessConfigSchema];
24
- static defaultConfigSchema = EthereumGasEtherchainV2WitnessConfigSchema;
25
- async observeHandler() {
26
- const payload = {
27
- ...await getV2GasFromEtherchain(),
28
- schema: EthereumGasEtherchainV2Schema,
29
- timestamp: Date.now()
30
- };
31
- return [payload];
32
- }
33
- };
34
-
35
- // src/Plugin.ts
36
- var EthereumGasEtherchainV2Plugin = () => createPayloadSetWitnessPlugin(
37
- { required: { [EthereumGasEtherchainV2Schema2]: 1 }, schema: PayloadSetSchema },
38
- {
39
- witness: async (params) => {
40
- return await EtherchainEthereumGasWitnessV2.create(params);
41
- }
42
- }
43
- );
44
- export {
45
- EtherchainEthereumGasWitnessV2,
46
- EthereumGasEtherchainV2Plugin,
47
- EthereumGasEtherchainV2WitnessConfigSchema,
48
- EthereumGasEtherchainV2Plugin as default
49
- };
1
+ // src/index.ts
2
+ export * from "@xyo-network/payloadset-plugins/etherchain-ethereum-gas-v2";
50
3
  //# sourceMappingURL=index.mjs.map
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "version": 3,
3
- "sources": ["../../src/Plugin.ts", "../../src/Witness.ts", "../../src/lib/getV2GasFromEtherchain.ts", "../../src/Schema.ts"],
4
- "sourcesContent": ["import { EthereumGasEtherchainV2Schema } from '@xyo-network/etherchain-ethereum-gas-v2-payload-plugin'\nimport { createPayloadSetWitnessPlugin, PayloadSetSchema } from '@xyo-network/sdk'\n\nimport { EtherchainEthereumGasWitnessV2 } from './Witness.ts'\n\nexport const EthereumGasEtherchainV2Plugin = () =>\n createPayloadSetWitnessPlugin(\n { required: { [EthereumGasEtherchainV2Schema]: 1 }, schema: PayloadSetSchema },\n {\n witness: async (params) => {\n return (await EtherchainEthereumGasWitnessV2.create(params))\n },\n },\n )\n", "import type { EthereumGasEtherchainV2Payload } from '@xyo-network/etherchain-ethereum-gas-v2-payload-plugin'\nimport { EthereumGasEtherchainV2Schema } from '@xyo-network/etherchain-ethereum-gas-v2-payload-plugin'\nimport type {\n AnyConfigSchema, Payload, Schema, WitnessParams,\n} from '@xyo-network/sdk'\nimport { AbstractWitness } from '@xyo-network/sdk'\n\nimport type { EthereumGasEtherchainV2WitnessConfig } from './Config.ts'\nimport { getV2GasFromEtherchain } from './lib/index.ts'\nimport { EthereumGasEtherchainV2WitnessConfigSchema } from './Schema.ts'\n\nexport type EtherchainEthereumGasWitnessV2Params = WitnessParams<AnyConfigSchema<EthereumGasEtherchainV2WitnessConfig>>\n\nexport class EtherchainEthereumGasWitnessV2 extends AbstractWitness<EtherchainEthereumGasWitnessV2Params> {\n static override readonly configSchemas: Schema[] = [...super.configSchemas, EthereumGasEtherchainV2WitnessConfigSchema]\n static override readonly defaultConfigSchema: Schema = EthereumGasEtherchainV2WitnessConfigSchema\n\n protected override async observeHandler(): Promise<Payload[]> {\n const payload: EthereumGasEtherchainV2Payload = {\n ...(await getV2GasFromEtherchain()),\n schema: EthereumGasEtherchainV2Schema,\n timestamp: Date.now(),\n }\n return [payload]\n }\n}\n", "import { assertEx, fetchJsonClient } from '@ariestools/sdk'\nimport type { EthereumGasEtherchainV2Response } from '@xyo-network/etherchain-ethereum-gas-v2-payload-plugin'\n\nconst url = 'https://beaconcha.in/api/v1/execution/gasnow'\n\nexport const getV2GasFromEtherchain = async (): Promise<EthereumGasEtherchainV2Response> => {\n const response = await fetchJsonClient.get<EthereumGasEtherchainV2Response>(url)\n return assertEx(response.data, () => 'Empty Etherchain response')\n}\n", "import { asSchema } from '@xyo-network/sdk'\n\nexport type EthereumGasEtherchainV2WitnessConfigSchema = typeof EthereumGasEtherchainV2WitnessConfigSchema\nexport const EthereumGasEtherchainV2WitnessConfigSchema\n = asSchema('network.xyo.blockchain.ethereum.gas.etherchain.v2.witness.config', true)\n"],
5
- "mappings": ";AAAA,SAAS,iCAAAA,sCAAqC;AAC9C,SAAS,+BAA+B,wBAAwB;;;ACAhE,SAAS,qCAAqC;AAI9C,SAAS,uBAAuB;;;ACLhC,SAAS,UAAU,uBAAuB;AAG1C,IAAM,MAAM;AAEL,IAAM,yBAAyB,YAAsD;AAC1F,QAAM,WAAW,MAAM,gBAAgB,IAAqC,GAAG;AAC/E,SAAO,SAAS,SAAS,MAAM,MAAM,2BAA2B;AAClE;;;ACRA,SAAS,gBAAgB;AAGlB,IAAM,6CACT,SAAS,oEAAoE,IAAI;;;AFS9E,IAAM,iCAAN,cAA6C,gBAAsD;AAAA,EACxG,OAAyB,gBAA0B,CAAC,GAAG,MAAM,eAAe,0CAA0C;AAAA,EACtH,OAAyB,sBAA8B;AAAA,EAEvD,MAAyB,iBAAqC;AAC5D,UAAM,UAA0C;AAAA,MAC9C,GAAI,MAAM,uBAAuB;AAAA,MACjC,QAAQ;AAAA,MACR,WAAW,KAAK,IAAI;AAAA,IACtB;AACA,WAAO,CAAC,OAAO;AAAA,EACjB;AACF;;;ADpBO,IAAM,gCAAgC,MAC3C;AAAA,EACE,EAAE,UAAU,EAAE,CAACC,8BAA6B,GAAG,EAAE,GAAG,QAAQ,iBAAiB;AAAA,EAC7E;AAAA,IACE,SAAS,OAAO,WAAW;AACzB,aAAQ,MAAM,+BAA+B,OAAO,MAAM;AAAA,IAC5D;AAAA,EACF;AACF;",
6
- "names": ["EthereumGasEtherchainV2Schema", "EthereumGasEtherchainV2Schema"]
3
+ "sources": ["../../src/index.ts"],
4
+ "sourcesContent": ["// Compatibility shim: this package re-exports from @xyo-network/payloadset-plugins/etherchain-ethereum-gas-v2.\nexport * from '@xyo-network/payloadset-plugins/etherchain-ethereum-gas-v2'\n"],
5
+ "mappings": ";AACA,cAAc;",
6
+ "names": []
7
7
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xyo-network/etherchain-ethereum-gas-v2-plugin",
3
- "version": "7.0.3",
3
+ "version": "7.0.4",
4
4
  "description": "Typescript/Javascript Plugins for XYO Platform",
5
5
  "homepage": "https://xyo.network",
6
6
  "bugs": {
@@ -31,12 +31,15 @@
31
31
  "README.md"
32
32
  ],
33
33
  "dependencies": {
34
- "@xyo-network/etherchain-ethereum-gas-v2-payload-plugin": "~7.0.3"
34
+ "@xyo-network/payloadset-plugins": "~7.0.4"
35
35
  },
36
36
  "devDependencies": {
37
- "@ariestools/sdk": "~8.0.2",
38
- "@ariestools/threads": "~8.0.2",
39
- "@ariestools/vitest-extended": "~8.0.2",
37
+ "@ariestools/crypto": "~8.0.3",
38
+ "@ariestools/eth-address": "~8.0.3",
39
+ "@ariestools/sdk": "~8.0.3",
40
+ "@ariestools/threads": "~8.0.3",
41
+ "@ariestools/toolchain": "~8.6.12",
42
+ "@ariestools/tsconfig": "~8.6.12",
40
43
  "@bitauth/libauth": "~3.0.0",
41
44
  "@metamask/providers": "~22.1.1",
42
45
  "@noble/post-quantum": "~0.6.1",
@@ -44,29 +47,54 @@
44
47
  "@opentelemetry/sdk-trace-base": "~2.9.0",
45
48
  "@scure/base": "~2.2.0",
46
49
  "@scure/bip39": "~2.2.0",
47
- "@xylabs/toolchain": "~8.6.5",
48
- "@xylabs/tsconfig": "~8.6.5",
49
- "@xyo-network/sdk": "~7.0.9",
50
- "@xyo-network/sdk-protocol": "~7.0.14",
50
+ "@uniswap/v3-sdk": "~3.31.0",
51
+ "@xyo-network/diviner-hash-lease": "~7.0.11",
52
+ "@xyo-network/diviner-indexing": "~7.0.11",
53
+ "@xyo-network/open-zeppelin-typechain": "~4.1.3",
54
+ "@xyo-network/sdk": "~7.0.11",
55
+ "@xyo-network/sdk-protocol": "~7.0.15",
56
+ "@xyo-network/uniswap-typechain": "~4.1.3",
57
+ "@xyo-network/witness-blockchain-abstract": "~7.0.11",
58
+ "@xyo-network/witness-evm-abstract": "~7.0.11",
59
+ "@xyo-network/witness-timestamp": "~7.0.11",
51
60
  "ajv": "~8.20.0",
52
61
  "async-mutex": "~0.5.0",
62
+ "base64-js": "~1.5.1",
63
+ "bowser": "~2.14.1",
64
+ "crypto-js": "~4.2.0",
53
65
  "debug": "~4.4.3",
66
+ "es6-dynamic-template": "~2.0.0",
54
67
  "eslint": "~10.6.0",
55
68
  "eslint-import-resolver-typescript": "~4.4.5",
56
69
  "ethers": "~6.17.0",
70
+ "file-type": "~22.0.1",
71
+ "fluent-ffmpeg": "~2.1.3",
72
+ "geotiff": "~3.0.5",
73
+ "gm": "~1.25.1",
74
+ "graphql": "~17.0.2",
75
+ "hasbin": "~1.2.3",
57
76
  "hash-wasm": "~4.12.0",
58
77
  "idb": "~8.0.3",
59
78
  "lru-cache": "~11.5.1",
79
+ "node-screenlogic": "~2.1.1",
60
80
  "observable-fns": "~0.6.1",
81
+ "parse-data-url": "~6.0.0",
82
+ "prom-client": "~15.1.3",
83
+ "regression": "~2.0.1",
84
+ "sha.js": "~2.4.12",
85
+ "svg-parser": "~2.0.4",
86
+ "systeminformation": "~5.31.14",
61
87
  "typescript": "~6.0.3",
62
- "vite": "~8.1.3",
63
- "vitest": "~4.1.9",
88
+ "uuid": "~14.0.1",
64
89
  "webextension-polyfill": "~0.12.0",
90
+ "xml2js": "~0.6.2",
65
91
  "zod": "~4.4.3"
66
92
  },
67
93
  "peerDependencies": {
68
- "@ariestools/sdk": "^8.0.2",
69
- "@ariestools/threads": "^8.0.2",
94
+ "@ariestools/crypto": "^8.0.3",
95
+ "@ariestools/eth-address": "^8.0.3",
96
+ "@ariestools/sdk": "^8.0.3",
97
+ "@ariestools/threads": "^8.0.3",
70
98
  "@bitauth/libauth": "^3.0.0",
71
99
  "@metamask/providers": "^22.1.1",
72
100
  "@noble/post-quantum": "^0.6.1",
@@ -74,17 +102,44 @@
74
102
  "@opentelemetry/sdk-trace-base": "^2.9.0",
75
103
  "@scure/base": "^2.2.0",
76
104
  "@scure/bip39": "^2.2.0",
77
- "@xyo-network/sdk": "^7.0.9",
78
- "@xyo-network/sdk-protocol": "^7.0.14",
105
+ "@uniswap/v3-sdk": "^3.31.0",
106
+ "@xyo-network/diviner-hash-lease": "^7.0.11",
107
+ "@xyo-network/diviner-indexing": "^7.0.11",
108
+ "@xyo-network/open-zeppelin-typechain": "^4.1.3",
109
+ "@xyo-network/sdk": "^7.0.11",
110
+ "@xyo-network/sdk-protocol": "^7.0.15",
111
+ "@xyo-network/uniswap-typechain": "^4.1.3",
112
+ "@xyo-network/witness-blockchain-abstract": "^7.0.11",
113
+ "@xyo-network/witness-evm-abstract": "^7.0.11",
114
+ "@xyo-network/witness-timestamp": "^7.0.11",
79
115
  "ajv": "^8.20.0",
80
116
  "async-mutex": "^0.5.0",
117
+ "base64-js": "^1.5.1",
118
+ "bowser": "^2.14.1",
119
+ "crypto-js": "^4.2.0",
81
120
  "debug": "^4.4.3",
121
+ "es6-dynamic-template": "^2.0.0",
82
122
  "ethers": "^6.17.0",
123
+ "file-type": "^22.0.1",
124
+ "fluent-ffmpeg": "^2.1.3",
125
+ "geotiff": "^3.0.5",
126
+ "gm": "^1.25.1",
127
+ "graphql": "^17.0.2",
128
+ "hasbin": "^1.2.3",
83
129
  "hash-wasm": "^4.12.0",
84
130
  "idb": "^8.0.3",
85
131
  "lru-cache": "^11.5.1",
132
+ "node-screenlogic": "^2.1.1",
86
133
  "observable-fns": "^0.6.1",
134
+ "parse-data-url": "^6.0.0",
135
+ "prom-client": "^15.1.3",
136
+ "regression": "^2.0.1",
137
+ "sha.js": "^2.4.12",
138
+ "svg-parser": "^2.0.4",
139
+ "systeminformation": "^5.31.14",
140
+ "uuid": "^14.0.1",
87
141
  "webextension-polyfill": "^0.12.0",
142
+ "xml2js": "^0.6.2",
88
143
  "zod": "^4.4.3"
89
144
  },
90
145
  "engines": {
@@ -92,5 +147,6 @@
92
147
  },
93
148
  "publishConfig": {
94
149
  "access": "public"
95
- }
150
+ },
151
+ "deprecated": "Use @xyo-network/payloadset-plugins/etherchain-ethereum-gas-v2 instead. Replace @xyo-network/etherchain-ethereum-gas-v2-plugin with @xyo-network/payloadset-plugins/etherchain-ethereum-gas-v2. This package is a compatibility shim only and will not receive further updates."
96
152
  }
@@ -1,6 +0,0 @@
1
- import type { WitnessConfig } from '@xyo-network/sdk';
2
- import type { EthereumGasEtherchainV2WitnessConfigSchema } from './Schema.ts';
3
- export type EthereumGasEtherchainV2WitnessConfig = WitnessConfig<{
4
- schema: EthereumGasEtherchainV2WitnessConfigSchema;
5
- }>;
6
- //# sourceMappingURL=Config.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"Config.d.ts","sourceRoot":"","sources":["../../src/Config.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAA;AAErD,OAAO,KAAK,EAAE,0CAA0C,EAAE,MAAM,aAAa,CAAA;AAE7E,MAAM,MAAM,oCAAoC,GAAG,aAAa,CAAC;IAC/D,MAAM,EAAE,0CAA0C,CAAA;CACnD,CAAC,CAAA"}
@@ -1,2 +0,0 @@
1
- export declare const EthereumGasEtherchainV2Plugin: () => import("@xyo-network/sdk").PayloadSetWitnessPlugin<import("@xyo-network/sdk").WitnessModule<import("@xyo-network/sdk").WitnessParams<import("@xyo-network/sdk").AnyConfigSchema<import("@xyo-network/sdk").WitnessConfig>>, import("@xyo-network/sdk").WitnessModuleEventData>>;
2
- //# sourceMappingURL=Plugin.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"Plugin.d.ts","sourceRoot":"","sources":["../../src/Plugin.ts"],"names":[],"mappings":"AAKA,eAAO,MAAM,6BAA6B,uRAQvC,CAAA"}
@@ -1,5 +0,0 @@
1
- export type EthereumGasEtherchainV2WitnessConfigSchema = typeof EthereumGasEtherchainV2WitnessConfigSchema;
2
- export declare const EthereumGasEtherchainV2WitnessConfigSchema: "network.xyo.blockchain.ethereum.gas.etherchain.v2.witness.config" & {
3
- readonly __schema: true;
4
- };
5
- //# sourceMappingURL=Schema.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"Schema.d.ts","sourceRoot":"","sources":["../../src/Schema.ts"],"names":[],"mappings":"AAEA,MAAM,MAAM,0CAA0C,GAAG,OAAO,0CAA0C,CAAA;AAC1G,eAAO,MAAM,0CAA0C;;CAC+B,CAAA"}
@@ -1,10 +0,0 @@
1
- import type { AnyConfigSchema, Payload, Schema, WitnessParams } from '@xyo-network/sdk';
2
- import { AbstractWitness } from '@xyo-network/sdk';
3
- import type { EthereumGasEtherchainV2WitnessConfig } from './Config.ts';
4
- export type EtherchainEthereumGasWitnessV2Params = WitnessParams<AnyConfigSchema<EthereumGasEtherchainV2WitnessConfig>>;
5
- export declare class EtherchainEthereumGasWitnessV2 extends AbstractWitness<EtherchainEthereumGasWitnessV2Params> {
6
- static readonly configSchemas: Schema[];
7
- static readonly defaultConfigSchema: Schema;
8
- protected observeHandler(): Promise<Payload[]>;
9
- }
10
- //# sourceMappingURL=Witness.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"Witness.d.ts","sourceRoot":"","sources":["../../src/Witness.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EACV,eAAe,EAAE,OAAO,EAAE,MAAM,EAAE,aAAa,EAChD,MAAM,kBAAkB,CAAA;AACzB,OAAO,EAAE,eAAe,EAAE,MAAM,kBAAkB,CAAA;AAElD,OAAO,KAAK,EAAE,oCAAoC,EAAE,MAAM,aAAa,CAAA;AAIvE,MAAM,MAAM,oCAAoC,GAAG,aAAa,CAAC,eAAe,CAAC,oCAAoC,CAAC,CAAC,CAAA;AAEvH,qBAAa,8BAA+B,SAAQ,eAAe,CAAC,oCAAoC,CAAC;IACvG,gBAAyB,aAAa,EAAE,MAAM,EAAE,CAAuE;IACvH,gBAAyB,mBAAmB,EAAE,MAAM,CAA6C;cAExE,cAAc,IAAI,OAAO,CAAC,OAAO,EAAE,CAAC;CAQ9D"}
@@ -1,3 +0,0 @@
1
- import type { EthereumGasEtherchainV2Response } from '@xyo-network/etherchain-ethereum-gas-v2-payload-plugin';
2
- export declare const getV2GasFromEtherchain: () => Promise<EthereumGasEtherchainV2Response>;
3
- //# sourceMappingURL=getV2GasFromEtherchain.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"getV2GasFromEtherchain.d.ts","sourceRoot":"","sources":["../../../src/lib/getV2GasFromEtherchain.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,+BAA+B,EAAE,MAAM,wDAAwD,CAAA;AAI7G,eAAO,MAAM,sBAAsB,QAAa,OAAO,CAAC,+BAA+B,CAGtF,CAAA"}
@@ -1,2 +0,0 @@
1
- export * from './getV2GasFromEtherchain.ts';
2
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/lib/index.ts"],"names":[],"mappings":"AAAA,cAAc,6BAA6B,CAAA"}