@asyncswap/engine-rpc 0.0.7 → 0.0.8
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/engine-api.d.ts +13 -0
- package/dist/engine-api.d.ts.map +1 -0
- package/dist/engine-api.js +10 -0
- package/dist/engine-api.js.map +1 -0
- package/dist/index.d.ts +2 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +2 -0
- package/dist/index.js.map +1 -0
- package/package.json +6 -2
- package/CHANGELOG.md +0 -57
- package/example.ts +0 -6
- package/tsconfig.json +0 -33
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { BaseClient } from "@asyncswap/jsonrpc";
|
|
2
|
+
export declare class EngineExecutionClient extends BaseClient<EngineMethodsSpec> {
|
|
3
|
+
constructor(url: string, jwt_token: string);
|
|
4
|
+
}
|
|
5
|
+
export type EngineRpcMethods<MethodsSpec extends Record<string, {
|
|
6
|
+
params: readonly unknown[];
|
|
7
|
+
result: unknown;
|
|
8
|
+
}>> = {
|
|
9
|
+
[Method in keyof MethodsSpec]: (...params: MethodsSpec[Method]["params"]) => Promise<MethodsSpec[Method]["result"]>;
|
|
10
|
+
};
|
|
11
|
+
export interface EngineExecutionClient extends EngineRpcMethods<EngineMethodsSpec> {
|
|
12
|
+
}
|
|
13
|
+
//# sourceMappingURL=engine-api.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"engine-api.d.ts","sourceRoot":"","sources":["../src/engine-api.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,oBAAoB,CAAC;AAEhD,qBAAa,qBAAsB,SAAQ,UAAU,CAAC,iBAAiB,CAAC;gBAC1D,GAAG,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM;CAM3C;AAED,MAAM,MAAM,gBAAgB,CAC1B,WAAW,SAAS,MAAM,CACxB,MAAM,EACN;IAAE,MAAM,EAAE,SAAS,OAAO,EAAE,CAAC;IAAC,MAAM,EAAE,OAAO,CAAA;CAAE,CAChD,IACC;KACC,MAAM,IAAI,MAAM,WAAW,GAAG,CAC7B,GAAG,MAAM,EAAE,WAAW,CAAC,MAAM,CAAC,CAAC,QAAQ,CAAC,KACrC,OAAO,CAAC,WAAW,CAAC,MAAM,CAAC,CAAC,QAAQ,CAAC,CAAC;CAC5C,CAAC;AAEJ,MAAM,WAAW,qBACf,SAAQ,gBAAgB,CAAC,iBAAiB,CAAC;CAAI"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { BaseClient } from "@asyncswap/jsonrpc";
|
|
2
|
+
export class EngineExecutionClient extends BaseClient {
|
|
3
|
+
constructor(url, jwt_token) {
|
|
4
|
+
super(url);
|
|
5
|
+
this.headers = {
|
|
6
|
+
Authorization: `Bearer ${jwt_token}`,
|
|
7
|
+
};
|
|
8
|
+
}
|
|
9
|
+
}
|
|
10
|
+
//# sourceMappingURL=engine-api.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"engine-api.js","sourceRoot":"","sources":["../src/engine-api.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,oBAAoB,CAAC;AAEhD,MAAM,OAAO,qBAAsB,SAAQ,UAA6B;IACtE,YAAY,GAAW,EAAE,SAAiB;QACxC,KAAK,CAAC,GAAG,CAAC,CAAC;QACX,IAAI,CAAC,OAAO,GAAG;YACb,aAAa,EAAE,UAAU,SAAS,EAAE;SACrC,CAAC;IACJ,CAAC;CACF"}
|
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,cAAc,CAAC"}
|
package/dist/index.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,cAAc,CAAC"}
|
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"name": "@asyncswap/engine-rpc",
|
|
3
3
|
"description": "A library for Ethereum engine api JSON-RPC spec.",
|
|
4
4
|
"author": "Meek Msaki",
|
|
5
|
-
"version": "0.0.
|
|
5
|
+
"version": "0.0.8",
|
|
6
6
|
"license": "MIT",
|
|
7
7
|
"type": "module",
|
|
8
8
|
"main": "dist/index.js",
|
|
@@ -14,6 +14,10 @@
|
|
|
14
14
|
"execution-client",
|
|
15
15
|
"json-rpc"
|
|
16
16
|
],
|
|
17
|
+
"files": [
|
|
18
|
+
"dist",
|
|
19
|
+
"src"
|
|
20
|
+
],
|
|
17
21
|
"homepage": "https://github.com/asyncswap/eth-libs/tree/main/packages/engine-rpc",
|
|
18
22
|
"repository": {
|
|
19
23
|
"type": "git",
|
|
@@ -39,6 +43,6 @@
|
|
|
39
43
|
"typescript": "^5"
|
|
40
44
|
},
|
|
41
45
|
"dependencies": {
|
|
42
|
-
"@asyncswap/jsonrpc": "^0.4.
|
|
46
|
+
"@asyncswap/jsonrpc": "^0.4.12"
|
|
43
47
|
}
|
|
44
48
|
}
|
package/CHANGELOG.md
DELETED
|
@@ -1,57 +0,0 @@
|
|
|
1
|
-
# @asyncswap/engine-rpc
|
|
2
|
-
|
|
3
|
-
## 0.0.7
|
|
4
|
-
|
|
5
|
-
### Patch Changes
|
|
6
|
-
|
|
7
|
-
- 2f7dece: fixes build
|
|
8
|
-
- Updated dependencies [2f7dece]
|
|
9
|
-
- @asyncswap/jsonrpc@0.4.11
|
|
10
|
-
|
|
11
|
-
## 0.0.6
|
|
12
|
-
|
|
13
|
-
### Patch Changes
|
|
14
|
-
|
|
15
|
-
- 69a2d7e: patch types updates
|
|
16
|
-
- Updated dependencies [69a2d7e]
|
|
17
|
-
- @asyncswap/jsonrpc@0.4.10
|
|
18
|
-
|
|
19
|
-
## 0.0.5
|
|
20
|
-
|
|
21
|
-
### Patch Changes
|
|
22
|
-
|
|
23
|
-
- dc792b1: (refactor): change to `withHeaders` option and update BaseClient source
|
|
24
|
-
- Updated dependencies [dc792b1]
|
|
25
|
-
- @asyncswap/jsonrpc@0.4.9
|
|
26
|
-
|
|
27
|
-
## 0.0.4
|
|
28
|
-
|
|
29
|
-
### Patch Changes
|
|
30
|
-
|
|
31
|
-
- e9fc1df: remove biome dep
|
|
32
|
-
- Updated dependencies [e9fc1df]
|
|
33
|
-
- @asyncswap/eth-rpc@0.4.9
|
|
34
|
-
|
|
35
|
-
## 0.0.3
|
|
36
|
-
|
|
37
|
-
### Patch Changes
|
|
38
|
-
|
|
39
|
-
- 494a28f: update package location
|
|
40
|
-
|
|
41
|
-
## 0.0.2
|
|
42
|
-
|
|
43
|
-
### Patch Changes
|
|
44
|
-
|
|
45
|
-
- 863d9b8: udpate example
|
|
46
|
-
|
|
47
|
-
## 0.0.1
|
|
48
|
-
|
|
49
|
-
### Patch Changes
|
|
50
|
-
|
|
51
|
-
- 97a6143: engine rpc spec
|
|
52
|
-
|
|
53
|
-
- Adds class for engine api spec
|
|
54
|
-
- Add example and docs
|
|
55
|
-
|
|
56
|
-
- Updated dependencies [cad9042]
|
|
57
|
-
- @asyncswap/eth-rpc@0.4.8
|
package/example.ts
DELETED
package/tsconfig.json
DELETED
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"compilerOptions": {
|
|
3
|
-
// Environment setup & latest features
|
|
4
|
-
"lib": ["ESNext"],
|
|
5
|
-
"target": "ESNext",
|
|
6
|
-
"module": "Preserve",
|
|
7
|
-
"moduleDetection": "force",
|
|
8
|
-
"jsx": "react-jsx",
|
|
9
|
-
"allowJs": true,
|
|
10
|
-
// Bundler mode
|
|
11
|
-
"sourceMap": true,
|
|
12
|
-
"declaration": true,
|
|
13
|
-
"declarationMap": true,
|
|
14
|
-
"moduleResolution": "bundler",
|
|
15
|
-
"outDir": "dist",
|
|
16
|
-
"rootDir": "src",
|
|
17
|
-
"allowImportingTsExtensions": false,
|
|
18
|
-
"verbatimModuleSyntax": true,
|
|
19
|
-
"noEmit": false,
|
|
20
|
-
// Best practices
|
|
21
|
-
"strict": true,
|
|
22
|
-
"skipLibCheck": true,
|
|
23
|
-
"noFallthroughCasesInSwitch": true,
|
|
24
|
-
"noUncheckedIndexedAccess": true,
|
|
25
|
-
"noImplicitOverride": true,
|
|
26
|
-
// Some stricter flags (disabled by default)
|
|
27
|
-
"noUnusedLocals": false,
|
|
28
|
-
"noUnusedParameters": false,
|
|
29
|
-
"noPropertyAccessFromIndexSignature": false
|
|
30
|
-
},
|
|
31
|
-
"include": ["src/**/*"],
|
|
32
|
-
"exclude": ["example.ts"]
|
|
33
|
-
}
|