@xyo-network/blocknative-ethereum-gas-plugin 7.0.1 → 7.0.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.
@@ -7,7 +7,7 @@ import { EthereumGasBlocknativeSchema } from "@xyo-network/blocknative-ethereum-
7
7
  import { AbstractWitness, PayloadBuilder } from "@xyo-network/sdk";
8
8
 
9
9
  // src/lib/getGasFromBlocknative.ts
10
- import { assertEx, fetchJsonClient } from "@xylabs/sdk";
10
+ import { assertEx, fetchJsonClient } from "@ariestools/sdk";
11
11
  var url = "https://api.blocknative.com/gasprices/blockprices";
12
12
  var Authorization = "9d3e23c3-e31d-4f9c-9d7c-c579cb75d226";
13
13
  var config = { headers: { Authorization } };
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["../../src/Plugin.ts", "../../src/Witness.ts", "../../src/lib/getGasFromBlocknative.ts", "../../src/Schema.ts"],
4
- "sourcesContent": ["import { EthereumGasBlocknativeSchema } from '@xyo-network/blocknative-ethereum-gas-payload-plugin'\nimport { createPayloadSetWitnessPlugin, PayloadSetSchema } from '@xyo-network/sdk'\n\nimport { EthereumGasBlocknativeWitness } from './Witness.ts'\n\nexport const EthereumGasBlocknativePlugin = () =>\n createPayloadSetWitnessPlugin<EthereumGasBlocknativeWitness>(\n { required: { [EthereumGasBlocknativeSchema]: 1 }, schema: PayloadSetSchema },\n {\n witness: async (params) => {\n return (await EthereumGasBlocknativeWitness.create(params))\n },\n },\n )\n", "import type { EthereumGasBlocknativePayload } from '@xyo-network/blocknative-ethereum-gas-payload-plugin'\nimport { EthereumGasBlocknativeSchema } from '@xyo-network/blocknative-ethereum-gas-payload-plugin'\nimport type {\n AnyConfigSchema, Payload, Schema,\n} from '@xyo-network/sdk'\nimport { AbstractWitness, PayloadBuilder } from '@xyo-network/sdk'\nimport type { TimestampWitnessParams } from '@xyo-network/witness-timestamp'\n\nimport type { EthereumGasBlocknativeWitnessConfig } from './Config.ts'\nimport { getGasFromBlocknative } from './lib/index.ts'\nimport { EthereumGasBlocknativeWitnessConfigSchema } from './Schema.ts'\n\nexport type EthereumGasBlocknativeWitnessParams = TimestampWitnessParams<AnyConfigSchema<EthereumGasBlocknativeWitnessConfig>>\nexport class EthereumGasBlocknativeWitness extends AbstractWitness<EthereumGasBlocknativeWitnessParams> {\n static override readonly configSchemas: Schema[] = [...super.configSchemas, EthereumGasBlocknativeWitnessConfigSchema]\n static override readonly defaultConfigSchema: Schema = EthereumGasBlocknativeWitnessConfigSchema\n\n protected override async observeHandler(): Promise<Payload[]> {\n const fields = await getGasFromBlocknative()\n const builder = new PayloadBuilder<EthereumGasBlocknativePayload>({ schema: EthereumGasBlocknativeSchema })\n const payload = builder\n .fields(fields)\n .build()\n return [payload]\n }\n}\n", "import { assertEx, fetchJsonClient } from '@xylabs/sdk'\nimport type { EthereumGasBlocknativeResponse } from '@xyo-network/blocknative-ethereum-gas-payload-plugin'\n\nconst url = 'https://api.blocknative.com/gasprices/blockprices'\n\nconst Authorization = '9d3e23c3-e31d-4f9c-9d7c-c579cb75d226'\nconst config = { headers: { Authorization } }\n\nexport const getGasFromBlocknative = async (): Promise<EthereumGasBlocknativeResponse> => {\n const response = await fetchJsonClient.get<EthereumGasBlocknativeResponse>(url, config)\n return assertEx(response.data, () => 'Empty Blocknative response')\n}\n", "import { asSchema } from '@xyo-network/sdk'\n\nexport type EthereumGasBlocknativeWitnessConfigSchema = typeof EthereumGasBlocknativeWitnessConfigSchema\nexport const EthereumGasBlocknativeWitnessConfigSchema\n = asSchema('network.xyo.blockchain.ethereum.gas.blocknative.witness.config', true)\n"],
4
+ "sourcesContent": ["import { EthereumGasBlocknativeSchema } from '@xyo-network/blocknative-ethereum-gas-payload-plugin'\nimport { createPayloadSetWitnessPlugin, PayloadSetSchema } from '@xyo-network/sdk'\n\nimport { EthereumGasBlocknativeWitness } from './Witness.ts'\n\nexport const EthereumGasBlocknativePlugin = () =>\n createPayloadSetWitnessPlugin<EthereumGasBlocknativeWitness>(\n { required: { [EthereumGasBlocknativeSchema]: 1 }, schema: PayloadSetSchema },\n {\n witness: async (params) => {\n return (await EthereumGasBlocknativeWitness.create(params))\n },\n },\n )\n", "import type { EthereumGasBlocknativePayload } from '@xyo-network/blocknative-ethereum-gas-payload-plugin'\nimport { EthereumGasBlocknativeSchema } from '@xyo-network/blocknative-ethereum-gas-payload-plugin'\nimport type {\n AnyConfigSchema, Payload, Schema,\n} from '@xyo-network/sdk'\nimport { AbstractWitness, PayloadBuilder } from '@xyo-network/sdk'\nimport type { TimestampWitnessParams } from '@xyo-network/witness-timestamp'\n\nimport type { EthereumGasBlocknativeWitnessConfig } from './Config.ts'\nimport { getGasFromBlocknative } from './lib/index.ts'\nimport { EthereumGasBlocknativeWitnessConfigSchema } from './Schema.ts'\n\nexport type EthereumGasBlocknativeWitnessParams = TimestampWitnessParams<AnyConfigSchema<EthereumGasBlocknativeWitnessConfig>>\nexport class EthereumGasBlocknativeWitness extends AbstractWitness<EthereumGasBlocknativeWitnessParams> {\n static override readonly configSchemas: Schema[] = [...super.configSchemas, EthereumGasBlocknativeWitnessConfigSchema]\n static override readonly defaultConfigSchema: Schema = EthereumGasBlocknativeWitnessConfigSchema\n\n protected override async observeHandler(): Promise<Payload[]> {\n const fields = await getGasFromBlocknative()\n const builder = new PayloadBuilder<EthereumGasBlocknativePayload>({ schema: EthereumGasBlocknativeSchema })\n const payload = builder\n .fields(fields)\n .build()\n return [payload]\n }\n}\n", "import { assertEx, fetchJsonClient } from '@ariestools/sdk'\nimport type { EthereumGasBlocknativeResponse } from '@xyo-network/blocknative-ethereum-gas-payload-plugin'\n\nconst url = 'https://api.blocknative.com/gasprices/blockprices'\n\nconst Authorization = '9d3e23c3-e31d-4f9c-9d7c-c579cb75d226'\nconst config = { headers: { Authorization } }\n\nexport const getGasFromBlocknative = async (): Promise<EthereumGasBlocknativeResponse> => {\n const response = await fetchJsonClient.get<EthereumGasBlocknativeResponse>(url, config)\n return assertEx(response.data, () => 'Empty Blocknative response')\n}\n", "import { asSchema } from '@xyo-network/sdk'\n\nexport type EthereumGasBlocknativeWitnessConfigSchema = typeof EthereumGasBlocknativeWitnessConfigSchema\nexport const EthereumGasBlocknativeWitnessConfigSchema\n = asSchema('network.xyo.blockchain.ethereum.gas.blocknative.witness.config', true)\n"],
5
5
  "mappings": ";AAAA,SAAS,gCAAAA,qCAAoC;AAC7C,SAAS,+BAA+B,wBAAwB;;;ACAhE,SAAS,oCAAoC;AAI7C,SAAS,iBAAiB,sBAAsB;;;ACLhD,SAAS,UAAU,uBAAuB;AAG1C,IAAM,MAAM;AAEZ,IAAM,gBAAgB;AACtB,IAAM,SAAS,EAAE,SAAS,EAAE,cAAc,EAAE;AAErC,IAAM,wBAAwB,YAAqD;AACxF,QAAM,WAAW,MAAM,gBAAgB,IAAoC,KAAK,MAAM;AACtF,SAAO,SAAS,SAAS,MAAM,MAAM,4BAA4B;AACnE;;;ACXA,SAAS,gBAAgB;AAGlB,IAAM,4CACT,SAAS,kEAAkE,IAAI;;;AFS5E,IAAM,gCAAN,cAA4C,gBAAqD;AAAA,EACtG,OAAyB,gBAA0B,CAAC,GAAG,MAAM,eAAe,yCAAyC;AAAA,EACrH,OAAyB,sBAA8B;AAAA,EAEvD,MAAyB,iBAAqC;AAC5D,UAAM,SAAS,MAAM,sBAAsB;AAC3C,UAAM,UAAU,IAAI,eAA8C,EAAE,QAAQ,6BAA6B,CAAC;AAC1G,UAAM,UAAU,QACb,OAAO,MAAM,EACb,MAAM;AACT,WAAO,CAAC,OAAO;AAAA,EACjB;AACF;;;ADpBO,IAAM,+BAA+B,MAC1C;AAAA,EACE,EAAE,UAAU,EAAE,CAACC,6BAA4B,GAAG,EAAE,GAAG,QAAQ,iBAAiB;AAAA,EAC5E;AAAA,IACE,SAAS,OAAO,WAAW;AACzB,aAAQ,MAAM,8BAA8B,OAAO,MAAM;AAAA,IAC3D;AAAA,EACF;AACF;",
6
6
  "names": ["EthereumGasBlocknativeSchema", "EthereumGasBlocknativeSchema"]
7
7
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xyo-network/blocknative-ethereum-gas-plugin",
3
- "version": "7.0.1",
3
+ "version": "7.0.3",
4
4
  "description": "Typescript/Javascript Plugins for XYO Platform",
5
5
  "homepage": "https://xyo.network",
6
6
  "bugs": {
@@ -31,63 +31,64 @@
31
31
  "README.md"
32
32
  ],
33
33
  "dependencies": {
34
- "@xyo-network/blocknative-ethereum-gas-payload-plugin": "~7.0.1"
34
+ "@xyo-network/blocknative-ethereum-gas-payload-plugin": "~7.0.3"
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
40
  "@bitauth/libauth": "~3.0.0",
41
+ "@metamask/providers": "~22.1.1",
38
42
  "@noble/post-quantum": "~0.6.1",
43
+ "@opentelemetry/api": "~1.9.1",
44
+ "@opentelemetry/sdk-trace-base": "~2.9.0",
45
+ "@scure/base": "~2.2.0",
46
+ "@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",
51
+ "@xyo-network/witness-timestamp": "~7.0.9",
52
+ "ajv": "~8.20.0",
53
+ "async-mutex": "~0.5.0",
54
+ "debug": "~4.4.3",
55
+ "eslint": "~10.6.0",
56
+ "eslint-import-resolver-typescript": "~4.4.5",
57
+ "ethers": "~6.17.0",
58
+ "hash-wasm": "~4.12.0",
59
+ "idb": "~8.0.3",
60
+ "lru-cache": "~11.5.1",
61
+ "observable-fns": "~0.6.1",
62
+ "typescript": "~6.0.3",
63
+ "vite": "~8.1.3",
64
+ "vitest": "~4.1.9",
65
+ "webextension-polyfill": "~0.12.0",
66
+ "zod": "~4.4.3"
67
+ },
68
+ "peerDependencies": {
69
+ "@ariestools/sdk": "^8.0.2",
70
+ "@ariestools/threads": "^8.0.2",
71
+ "@bitauth/libauth": "^3.0.0",
72
+ "@metamask/providers": "^22.1.1",
73
+ "@noble/post-quantum": "^0.6.1",
39
74
  "@opentelemetry/api": "^1.9.1",
40
- "@opentelemetry/sdk-trace-base": "^2.8.0",
75
+ "@opentelemetry/sdk-trace-base": "^2.9.0",
41
76
  "@scure/base": "^2.2.0",
42
- "@scure/bip39": "~2.2.0",
43
- "@xylabs/geo": "^7.0.1",
44
- "@xylabs/sdk": "^7.0.1",
45
- "@xylabs/threads": "^7.0.1",
46
- "@xylabs/toolchain": "~8.5.3",
47
- "@xylabs/tsconfig": "~8.5.3",
48
- "@xylabs/vitest-extended": "^7.0.1",
49
- "@xyo-network/sdk": "~7.0.3",
50
- "@xyo-network/sdk-protocol": "^7.0.4",
51
- "@xyo-network/witness-timestamp": "^7.0.3",
77
+ "@scure/bip39": "^2.2.0",
78
+ "@xyo-network/sdk": "^7.0.9",
79
+ "@xyo-network/sdk-protocol": "^7.0.14",
80
+ "@xyo-network/witness-timestamp": "^7.0.9",
52
81
  "ajv": "^8.20.0",
53
82
  "async-mutex": "^0.5.0",
54
- "browserslist": "4.28.4",
55
- "debug": "~4.4.3",
56
- "eslint": "^10.6.0",
57
- "eslint-import-resolver-typescript": "^4.4.5",
83
+ "debug": "^4.4.3",
58
84
  "ethers": "^6.17.0",
59
85
  "hash-wasm": "^4.12.0",
60
86
  "idb": "^8.0.3",
61
87
  "lru-cache": "^11.5.1",
62
- "observable-fns": "~0.6.1",
63
- "typescript": "~6.0.3",
64
- "vite": "^8.1.0",
65
- "vitest": "^4.1.9",
88
+ "observable-fns": "^0.6.1",
89
+ "webextension-polyfill": "^0.12.0",
66
90
  "zod": "^4.4.3"
67
91
  },
68
- "peerDependencies": {
69
- "@bitauth/libauth": "~3.0",
70
- "@noble/post-quantum": "~0.6.1",
71
- "@opentelemetry/api": "^1.9",
72
- "@opentelemetry/sdk-trace-base": "^2.7",
73
- "@scure/base": "^2.2",
74
- "@scure/bip39": "~2.2",
75
- "@xylabs/geo": "^7.0",
76
- "@xylabs/sdk": "^7.0",
77
- "@xylabs/threads": "^7.0",
78
- "@xyo-network/sdk": "^7.0",
79
- "@xyo-network/sdk-protocol": "^7.0",
80
- "@xyo-network/witness-timestamp": "^7.0",
81
- "ajv": "^8.20",
82
- "async-mutex": "^0.5",
83
- "debug": "~4.4",
84
- "ethers": "^6.16",
85
- "hash-wasm": "^4.12",
86
- "idb": "^8.0",
87
- "lru-cache": "^11.3",
88
- "observable-fns": "~0.6",
89
- "zod": "^4.4"
90
- },
91
92
  "engines": {
92
93
  "node": "^24"
93
94
  },