@asyncswap/eth-rpc 0.4.10 → 0.4.12
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/CHANGELOG.md +16 -0
- package/package.json +2 -2
- package/src/eth-api.ts +7 -8
- package/tsconfig.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,21 @@
|
|
|
1
1
|
# @asyncswap/eth-rpc
|
|
2
2
|
|
|
3
|
+
## 0.4.12
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- 2f7dece: fixes build
|
|
8
|
+
- Updated dependencies [2f7dece]
|
|
9
|
+
- @asyncswap/jsonrpc@0.4.11
|
|
10
|
+
|
|
11
|
+
## 0.4.11
|
|
12
|
+
|
|
13
|
+
### Patch Changes
|
|
14
|
+
|
|
15
|
+
- 69a2d7e: patch types updates
|
|
16
|
+
- Updated dependencies [69a2d7e]
|
|
17
|
+
- @asyncswap/jsonrpc@0.4.10
|
|
18
|
+
|
|
3
19
|
## 0.4.10
|
|
4
20
|
|
|
5
21
|
### Patch Changes
|
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"name": "@asyncswap/eth-rpc",
|
|
3
3
|
"description": "A library for ethereum execution clients apis.",
|
|
4
4
|
"author": "Meek Msaki",
|
|
5
|
-
"version": "0.4.
|
|
5
|
+
"version": "0.4.12",
|
|
6
6
|
"license": "MIT",
|
|
7
7
|
"type": "module",
|
|
8
8
|
"main": "dist/index.js",
|
|
@@ -40,6 +40,6 @@
|
|
|
40
40
|
"typescript": "^5"
|
|
41
41
|
},
|
|
42
42
|
"dependencies": {
|
|
43
|
-
"@asyncswap/jsonrpc": "^0.4.
|
|
43
|
+
"@asyncswap/jsonrpc": "^0.4.11"
|
|
44
44
|
}
|
|
45
45
|
}
|
package/src/eth-api.ts
CHANGED
|
@@ -7,15 +7,14 @@ export class ExecutionClient extends BaseClient<EthMethodsSpec> {
|
|
|
7
7
|
}
|
|
8
8
|
|
|
9
9
|
export type EthRpcMethods<
|
|
10
|
-
|
|
10
|
+
MethodsSpec extends Record<
|
|
11
|
+
string,
|
|
12
|
+
{ params: readonly unknown[]; result: unknown }
|
|
13
|
+
>,
|
|
11
14
|
> = {
|
|
12
|
-
[
|
|
15
|
+
[Method in keyof MethodsSpec]: (
|
|
16
|
+
...params: MethodsSpec[Method]["params"]
|
|
17
|
+
) => Promise<MethodsSpec[Method]["result"]>;
|
|
13
18
|
};
|
|
14
19
|
|
|
15
20
|
export interface ExecutionClient extends EthRpcMethods<EthMethodsSpec> { }
|
|
16
|
-
|
|
17
|
-
/**
|
|
18
|
-
* @deprecated Use `ExecutionClient` instead.
|
|
19
|
-
* This method will be removed in v0.5.0.
|
|
20
|
-
*/
|
|
21
|
-
export class EthExecutionClient extends ExecutionClient { }
|