@xyo-network/blocknative-ethereum-gas-plugin 6.0.0 → 6.0.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.
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Plugin.d.ts","sourceRoot":"","sources":["../../src/Plugin.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"Plugin.d.ts","sourceRoot":"","sources":["../../src/Plugin.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,6BAA6B,EAAE,MAAM,cAAc,CAAA;AAE5D,eAAO,MAAM,4BAA4B,4FAQtC,CAAA"}
|
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
import type { AnyConfigSchema } from '@xyo-network/
|
|
2
|
-
import
|
|
3
|
-
import { AbstractWitness } from '@xyo-network/witness-abstract';
|
|
1
|
+
import type { AnyConfigSchema, Payload, Schema } from '@xyo-network/sdk-js';
|
|
2
|
+
import { AbstractWitness } from '@xyo-network/sdk-js';
|
|
4
3
|
import type { TimestampWitnessParams } from '@xyo-network/witness-timestamp';
|
|
5
4
|
import type { EthereumGasBlocknativeWitnessConfig } from './Config.ts';
|
|
6
5
|
export type EthereumGasBlocknativeWitnessParams = TimestampWitnessParams<AnyConfigSchema<EthereumGasBlocknativeWitnessConfig>>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Witness.d.ts","sourceRoot":"","sources":["../../src/Witness.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,
|
|
1
|
+
{"version":3,"file":"Witness.d.ts","sourceRoot":"","sources":["../../src/Witness.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EACV,eAAe,EAAE,OAAO,EAAE,MAAM,EACjC,MAAM,qBAAqB,CAAA;AAC5B,OAAO,EAAE,eAAe,EAAkB,MAAM,qBAAqB,CAAA;AACrE,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,gCAAgC,CAAA;AAE5E,OAAO,KAAK,EAAE,mCAAmC,EAAE,MAAM,aAAa,CAAA;AAItE,MAAM,MAAM,mCAAmC,GAAG,sBAAsB,CAAC,eAAe,CAAC,mCAAmC,CAAC,CAAC,CAAA;AAC9H,qBAAa,6BAA8B,SAAQ,eAAe,CAAC,mCAAmC,CAAC;IACrG,gBAAyB,aAAa,EAAE,MAAM,EAAE,CAAsE;IACtH,gBAAyB,mBAAmB,EAAE,MAAM,CAA4C;cAEvE,cAAc,IAAI,OAAO,CAAC,OAAO,EAAE,CAAC;CAO9D"}
|
package/dist/neutral/index.mjs
CHANGED
|
@@ -1,12 +1,10 @@
|
|
|
1
1
|
// src/Plugin.ts
|
|
2
2
|
import { EthereumGasBlocknativeSchema as EthereumGasBlocknativeSchema2 } from "@xyo-network/blocknative-ethereum-gas-payload-plugin";
|
|
3
|
-
import { PayloadSetSchema } from "@xyo-network/
|
|
4
|
-
import { createPayloadSetWitnessPlugin } from "@xyo-network/sdk-js";
|
|
3
|
+
import { createPayloadSetWitnessPlugin, PayloadSetSchema } from "@xyo-network/sdk-js";
|
|
5
4
|
|
|
6
5
|
// src/Witness.ts
|
|
7
6
|
import { EthereumGasBlocknativeSchema } from "@xyo-network/blocknative-ethereum-gas-payload-plugin";
|
|
8
|
-
import { PayloadBuilder } from "@xyo-network/sdk-js";
|
|
9
|
-
import { AbstractWitness } from "@xyo-network/witness-abstract";
|
|
7
|
+
import { AbstractWitness, PayloadBuilder } from "@xyo-network/sdk-js";
|
|
10
8
|
|
|
11
9
|
// src/lib/getGasFromBlocknative.ts
|
|
12
10
|
import { assertEx, fetchJsonClient } from "@xylabs/sdk-js";
|
|
@@ -18,7 +16,7 @@ var getGasFromBlocknative = async () => {
|
|
|
18
16
|
};
|
|
19
17
|
|
|
20
18
|
// src/Schema.ts
|
|
21
|
-
import { asSchema } from "@xyo-network/
|
|
19
|
+
import { asSchema } from "@xyo-network/sdk-js";
|
|
22
20
|
var EthereumGasBlocknativeWitnessConfigSchema = asSchema("network.xyo.blockchain.ethereum.gas.blocknative.witness.config", true);
|
|
23
21
|
|
|
24
22
|
// src/Witness.ts
|
|
@@ -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 { PayloadSetSchema } from '@xyo-network/
|
|
5
|
-
"mappings": ";AAAA,SAAS,gCAAAA,qCAAoC;AAC7C,SAAS,wBAAwB
|
|
4
|
+
"sourcesContent": ["import { EthereumGasBlocknativeSchema } from '@xyo-network/blocknative-ethereum-gas-payload-plugin'\nimport { createPayloadSetWitnessPlugin, PayloadSetSchema } from '@xyo-network/sdk-js'\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)) as EthereumGasBlocknativeWitness\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-js'\nimport { AbstractWitness, PayloadBuilder } from '@xyo-network/sdk-js'\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 payload = new PayloadBuilder<EthereumGasBlocknativePayload>({ schema: EthereumGasBlocknativeSchema })\n .fields(fields)\n .build()\n return [payload]\n }\n}\n", "import { assertEx, fetchJsonClient } from '@xylabs/sdk-js'\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 return assertEx((await fetchJsonClient.get<EthereumGasBlocknativeResponse>(url, config)).data, () => 'Empty Blocknative response')\n}\n", "import { asSchema } from '@xyo-network/sdk-js'\n\nexport type EthereumGasBlocknativeWitnessConfigSchema = typeof EthereumGasBlocknativeWitnessConfigSchema\nexport const EthereumGasBlocknativeWitnessConfigSchema\n = asSchema('network.xyo.blockchain.ethereum.gas.blocknative.witness.config', true)\n"],
|
|
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,SAAO,UAAU,MAAM,gBAAgB,IAAoC,KAAK,MAAM,GAAG,MAAM,MAAM,4BAA4B;AACnI;;;ACVA,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,EACvG,OAAO,MAAM,EACb,MAAM;AACT,WAAO,CAAC,OAAO;AAAA,EACjB;AACF;;;ADnBO,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": "6.0.
|
|
3
|
+
"version": "6.0.1",
|
|
4
4
|
"description": "Typescript/Javascript Plugins for XYO Platform",
|
|
5
5
|
"homepage": "https://xyo.network",
|
|
6
6
|
"bugs": {
|
|
@@ -31,43 +31,42 @@
|
|
|
31
31
|
"README.md"
|
|
32
32
|
],
|
|
33
33
|
"dependencies": {
|
|
34
|
-
"@xyo-network/blocknative-ethereum-gas-payload-plugin": "~6.0.
|
|
34
|
+
"@xyo-network/blocknative-ethereum-gas-payload-plugin": "~6.0.1"
|
|
35
35
|
},
|
|
36
36
|
"devDependencies": {
|
|
37
37
|
"@bitauth/libauth": "~3.0.0",
|
|
38
38
|
"@metamask/providers": "^22.1.1",
|
|
39
|
+
"@noble/post-quantum": "~0.6.1",
|
|
39
40
|
"@opentelemetry/api": "^1.9.1",
|
|
40
41
|
"@opentelemetry/sdk-trace-base": "^2.7.1",
|
|
41
42
|
"@scure/base": "^2.2.0",
|
|
42
43
|
"@scure/bip39": "~2.2.0",
|
|
43
|
-
"@xylabs/geo": "
|
|
44
|
-
"@xylabs/sdk-js": "
|
|
45
|
-
"@xylabs/threads": "
|
|
46
|
-
"@xylabs/toolchain": "~8.1.
|
|
47
|
-
"@xylabs/tsconfig": "~8.1.
|
|
44
|
+
"@xylabs/geo": "^6.0.2",
|
|
45
|
+
"@xylabs/sdk-js": "^6.0.2",
|
|
46
|
+
"@xylabs/threads": "^6.0.2",
|
|
47
|
+
"@xylabs/toolchain": "~8.1.4",
|
|
48
|
+
"@xylabs/tsconfig": "~8.1.4",
|
|
48
49
|
"@xylabs/vitest-extended": "~6.0.2",
|
|
49
|
-
"@xyo-network/account": "~6.0",
|
|
50
|
-
"@xyo-network/account-model": "
|
|
51
|
-
"@xyo-network/api": "~6.0",
|
|
52
|
-
"@xyo-network/api-models": "~6.0",
|
|
53
|
-
"@xyo-network/boundwitness-builder": "~6.0",
|
|
54
|
-
"@xyo-network/boundwitness-model": "
|
|
55
|
-
"@xyo-network/boundwitness-wrapper": "~6.0",
|
|
56
|
-
"@xyo-network/config-payload-plugin": "~6.0",
|
|
57
|
-
"@xyo-network/huri": "~6.0",
|
|
58
|
-
"@xyo-network/manifest-model": "~6.0",
|
|
59
|
-
"@xyo-network/
|
|
60
|
-
"@xyo-network/payload-
|
|
61
|
-
"@xyo-network/payload-
|
|
62
|
-
"@xyo-network/payload-
|
|
63
|
-
"@xyo-network/payload-
|
|
64
|
-
"@xyo-network/
|
|
65
|
-
"@xyo-network/sdk-js": "~6.0",
|
|
66
|
-
"@xyo-network/
|
|
67
|
-
"@xyo-network/wallet": "~6.0",
|
|
68
|
-
"@xyo-network/
|
|
69
|
-
"@xyo-network/witness-abstract": "~6.0",
|
|
70
|
-
"@xyo-network/witness-timestamp": "~6.0",
|
|
50
|
+
"@xyo-network/account": "~6.0.4",
|
|
51
|
+
"@xyo-network/account-model": "^6.0.4",
|
|
52
|
+
"@xyo-network/api": "~6.0.4",
|
|
53
|
+
"@xyo-network/api-models": "~6.0.4",
|
|
54
|
+
"@xyo-network/boundwitness-builder": "~6.0.4",
|
|
55
|
+
"@xyo-network/boundwitness-model": "^6.0.4",
|
|
56
|
+
"@xyo-network/boundwitness-wrapper": "~6.0.4",
|
|
57
|
+
"@xyo-network/config-payload-plugin": "~6.0.4",
|
|
58
|
+
"@xyo-network/huri": "~6.0.4",
|
|
59
|
+
"@xyo-network/manifest-model": "~6.0.4",
|
|
60
|
+
"@xyo-network/payload-builder": "~6.0.4",
|
|
61
|
+
"@xyo-network/payload-model": "^6.0.4",
|
|
62
|
+
"@xyo-network/payload-plugin": "~6.0.4",
|
|
63
|
+
"@xyo-network/payload-wrapper": "~6.0.4",
|
|
64
|
+
"@xyo-network/query-payload-plugin": "~6.0.4",
|
|
65
|
+
"@xyo-network/sdk-js": "^6.0.0",
|
|
66
|
+
"@xyo-network/sdk-protocol-js": "~6.0.4",
|
|
67
|
+
"@xyo-network/wallet": "~6.0.4",
|
|
68
|
+
"@xyo-network/wallet-model": "~6.0.4",
|
|
69
|
+
"@xyo-network/witness-timestamp": "^6.0.0",
|
|
71
70
|
"ajv": "^8.20.0",
|
|
72
71
|
"async-mutex": "^0.5.0",
|
|
73
72
|
"bn.js": "^5.2.3",
|
|
@@ -78,13 +77,13 @@
|
|
|
78
77
|
"ethers": "^6.16.0",
|
|
79
78
|
"hash-wasm": "^4.12.0",
|
|
80
79
|
"idb": "^8.0.3",
|
|
81
|
-
"lru-cache": "^11.
|
|
82
|
-
"mapbox-gl": "
|
|
80
|
+
"lru-cache": "^11.3.6",
|
|
81
|
+
"mapbox-gl": "^3.23.1",
|
|
83
82
|
"observable-fns": "~0.6.1",
|
|
84
83
|
"pako": "~2.1.0",
|
|
85
84
|
"store2": "~2.14.4",
|
|
86
85
|
"typescript": "~6.0.3",
|
|
87
|
-
"vite": "^8.0.
|
|
86
|
+
"vite": "^8.0.14",
|
|
88
87
|
"vitest": "^4.1.7",
|
|
89
88
|
"wasm-feature-detect": "~1.8.0",
|
|
90
89
|
"webextension-polyfill": "^0.12.0",
|
|
@@ -93,6 +92,7 @@
|
|
|
93
92
|
"peerDependencies": {
|
|
94
93
|
"@bitauth/libauth": "~3.0",
|
|
95
94
|
"@metamask/providers": "^22.1",
|
|
95
|
+
"@noble/post-quantum": "~0.6.1",
|
|
96
96
|
"@opentelemetry/api": "^1.9",
|
|
97
97
|
"@opentelemetry/sdk-trace-base": "^2.7",
|
|
98
98
|
"@scure/base": "^2.2",
|
|
@@ -110,7 +110,6 @@
|
|
|
110
110
|
"@xyo-network/config-payload-plugin": "~6.0",
|
|
111
111
|
"@xyo-network/huri": "~6.0",
|
|
112
112
|
"@xyo-network/manifest-model": "~6.0",
|
|
113
|
-
"@xyo-network/module-model": "^6.0",
|
|
114
113
|
"@xyo-network/payload-builder": "~6.0",
|
|
115
114
|
"@xyo-network/payload-model": "^6.0",
|
|
116
115
|
"@xyo-network/payload-plugin": "~6.0",
|
|
@@ -120,7 +119,6 @@
|
|
|
120
119
|
"@xyo-network/sdk-protocol-js": "~6.0",
|
|
121
120
|
"@xyo-network/wallet": "~6.0",
|
|
122
121
|
"@xyo-network/wallet-model": "~6.0",
|
|
123
|
-
"@xyo-network/witness-abstract": "^6.0",
|
|
124
122
|
"@xyo-network/witness-timestamp": "^6.0",
|
|
125
123
|
"ajv": "^8.20",
|
|
126
124
|
"async-mutex": "^0.5",
|
|
@@ -132,7 +130,7 @@
|
|
|
132
130
|
"hash-wasm": "^4.12",
|
|
133
131
|
"idb": "^8.0",
|
|
134
132
|
"lru-cache": "^11.3",
|
|
135
|
-
"mapbox-gl": "
|
|
133
|
+
"mapbox-gl": "^3.23",
|
|
136
134
|
"observable-fns": "~0.6",
|
|
137
135
|
"pako": "~2.1",
|
|
138
136
|
"store2": "~2.14",
|