@xyo-network/blocknative-ethereum-gas-plugin 6.0.0 → 6.0.2
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.2",
|
|
4
4
|
"description": "Typescript/Javascript Plugins for XYO Platform",
|
|
5
5
|
"homepage": "https://xyo.network",
|
|
6
6
|
"bugs": {
|
|
@@ -31,68 +31,47 @@
|
|
|
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.2"
|
|
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.
|
|
48
|
-
"@xylabs/vitest-extended": "~6.0.
|
|
49
|
-
"@xyo-network/
|
|
50
|
-
"@xyo-network/
|
|
51
|
-
"@xyo-network/
|
|
52
|
-
"@xyo-network/api-models": "~6.0",
|
|
53
|
-
"@xyo-network/boundwitness-builder": "~6.0",
|
|
54
|
-
"@xyo-network/boundwitness-model": "~6.0",
|
|
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/module-model": "~6.0",
|
|
60
|
-
"@xyo-network/payload-builder": "~6.0",
|
|
61
|
-
"@xyo-network/payload-model": "~6.0",
|
|
62
|
-
"@xyo-network/payload-plugin": "~6.0",
|
|
63
|
-
"@xyo-network/payload-wrapper": "~6.0",
|
|
64
|
-
"@xyo-network/query-payload-plugin": "~6.0",
|
|
65
|
-
"@xyo-network/sdk-js": "~6.0",
|
|
66
|
-
"@xyo-network/sdk-protocol-js": "~6.0",
|
|
67
|
-
"@xyo-network/wallet": "~6.0",
|
|
68
|
-
"@xyo-network/wallet-model": "~6.0",
|
|
69
|
-
"@xyo-network/witness-abstract": "~6.0",
|
|
70
|
-
"@xyo-network/witness-timestamp": "~6.0",
|
|
44
|
+
"@xylabs/geo": "^6.0.6",
|
|
45
|
+
"@xylabs/sdk-js": "^6.0.6",
|
|
46
|
+
"@xylabs/threads": "^6.0.6",
|
|
47
|
+
"@xylabs/toolchain": "~8.1.11",
|
|
48
|
+
"@xylabs/tsconfig": "~8.1.11",
|
|
49
|
+
"@xylabs/vitest-extended": "~6.0.6",
|
|
50
|
+
"@xyo-network/sdk-js": "^6.0.2",
|
|
51
|
+
"@xyo-network/sdk-protocol-js": "~6.0.7",
|
|
52
|
+
"@xyo-network/witness-timestamp": "^6.0.2",
|
|
71
53
|
"ajv": "^8.20.0",
|
|
72
54
|
"async-mutex": "^0.5.0",
|
|
73
55
|
"bn.js": "^5.2.3",
|
|
74
56
|
"buffer": "^6.0.3",
|
|
75
|
-
"chalk": "^5.6.2",
|
|
76
57
|
"debug": "~4.4.3",
|
|
77
|
-
"eslint": "^10.4.
|
|
58
|
+
"eslint": "^10.4.1",
|
|
78
59
|
"ethers": "^6.16.0",
|
|
79
60
|
"hash-wasm": "^4.12.0",
|
|
80
61
|
"idb": "^8.0.3",
|
|
81
|
-
"lru-cache": "^11.5.
|
|
82
|
-
"mapbox-gl": "~3.24",
|
|
62
|
+
"lru-cache": "^11.5.1",
|
|
83
63
|
"observable-fns": "~0.6.1",
|
|
84
64
|
"pako": "~2.1.0",
|
|
85
|
-
"store2": "~2.14.4",
|
|
86
65
|
"typescript": "~6.0.3",
|
|
87
|
-
"vite": "^8.0.
|
|
88
|
-
"vitest": "^4.1.
|
|
89
|
-
"wasm-feature-detect": "~1.8.0",
|
|
66
|
+
"vite": "^8.0.16",
|
|
67
|
+
"vitest": "^4.1.8",
|
|
90
68
|
"webextension-polyfill": "^0.12.0",
|
|
91
69
|
"zod": "^4.4.3"
|
|
92
70
|
},
|
|
93
71
|
"peerDependencies": {
|
|
94
72
|
"@bitauth/libauth": "~3.0",
|
|
95
73
|
"@metamask/providers": "^22.1",
|
|
74
|
+
"@noble/post-quantum": "~0.6.1",
|
|
96
75
|
"@opentelemetry/api": "^1.9",
|
|
97
76
|
"@opentelemetry/sdk-trace-base": "^2.7",
|
|
98
77
|
"@scure/base": "^2.2",
|
|
@@ -100,43 +79,20 @@
|
|
|
100
79
|
"@xylabs/geo": "^6.0",
|
|
101
80
|
"@xylabs/sdk-js": "^6.0",
|
|
102
81
|
"@xylabs/threads": "^6.0",
|
|
103
|
-
"@xyo-network/account": "~6.0",
|
|
104
|
-
"@xyo-network/account-model": "^6.0",
|
|
105
|
-
"@xyo-network/api": "~6.0",
|
|
106
|
-
"@xyo-network/api-models": "~6.0",
|
|
107
|
-
"@xyo-network/boundwitness-builder": "~6.0",
|
|
108
|
-
"@xyo-network/boundwitness-model": "^6.0",
|
|
109
|
-
"@xyo-network/boundwitness-wrapper": "~6.0",
|
|
110
|
-
"@xyo-network/config-payload-plugin": "~6.0",
|
|
111
|
-
"@xyo-network/huri": "~6.0",
|
|
112
|
-
"@xyo-network/manifest-model": "~6.0",
|
|
113
|
-
"@xyo-network/module-model": "^6.0",
|
|
114
|
-
"@xyo-network/payload-builder": "~6.0",
|
|
115
|
-
"@xyo-network/payload-model": "^6.0",
|
|
116
|
-
"@xyo-network/payload-plugin": "~6.0",
|
|
117
|
-
"@xyo-network/payload-wrapper": "~6.0",
|
|
118
|
-
"@xyo-network/query-payload-plugin": "~6.0",
|
|
119
82
|
"@xyo-network/sdk-js": "^6.0",
|
|
120
83
|
"@xyo-network/sdk-protocol-js": "~6.0",
|
|
121
|
-
"@xyo-network/wallet": "~6.0",
|
|
122
|
-
"@xyo-network/wallet-model": "~6.0",
|
|
123
|
-
"@xyo-network/witness-abstract": "^6.0",
|
|
124
84
|
"@xyo-network/witness-timestamp": "^6.0",
|
|
125
85
|
"ajv": "^8.20",
|
|
126
86
|
"async-mutex": "^0.5",
|
|
127
87
|
"bn.js": "^5.2",
|
|
128
88
|
"buffer": "^6.0",
|
|
129
|
-
"chalk": "^5.6",
|
|
130
89
|
"debug": "~4.4",
|
|
131
90
|
"ethers": "^6.16",
|
|
132
91
|
"hash-wasm": "^4.12",
|
|
133
92
|
"idb": "^8.0",
|
|
134
93
|
"lru-cache": "^11.3",
|
|
135
|
-
"mapbox-gl": "~3.24",
|
|
136
94
|
"observable-fns": "~0.6",
|
|
137
95
|
"pako": "~2.1",
|
|
138
|
-
"store2": "~2.14",
|
|
139
|
-
"wasm-feature-detect": "~1.8",
|
|
140
96
|
"webextension-polyfill": "^0.12",
|
|
141
97
|
"zod": "^4.4"
|
|
142
98
|
},
|