Compare commits

..

No commits in common. "v0.1.0-develop.8" and "v0.1.0-develop.7" have entirely different histories.

4 changed files with 23 additions and 18 deletions

View File

@ -1,5 +1,3 @@
# [0.1.0-develop.8](https://git.lumeweb.com/LumeWeb/kernel-eth-client/compare/v0.1.0-develop.7...v0.1.0-develop.8) (2023-07-23)
# [0.1.0-develop.7](https://git.lumeweb.com/LumeWeb/kernel-eth-client/compare/v0.1.0-develop.6...v0.1.0-develop.7) (2023-07-23) # [0.1.0-develop.7](https://git.lumeweb.com/LumeWeb/kernel-eth-client/compare/v0.1.0-develop.6...v0.1.0-develop.7) (2023-07-23)
# [0.1.0-develop.6](https://git.lumeweb.com/LumeWeb/kernel-eth-client/compare/v0.1.0-develop.5...v0.1.0-develop.6) (2023-07-23) # [0.1.0-develop.6](https://git.lumeweb.com/LumeWeb/kernel-eth-client/compare/v0.1.0-develop.5...v0.1.0-develop.6) (2023-07-23)

23
npm-shrinkwrap.json generated
View File

@ -1,14 +1,14 @@
{ {
"name": "@lumeweb/kernel-eth-client", "name": "@lumeweb/kernel-eth-client",
"version": "0.1.0-develop.8", "version": "0.1.0-develop.7",
"lockfileVersion": 3, "lockfileVersion": 3,
"requires": true, "requires": true,
"packages": { "packages": {
"": { "": {
"name": "@lumeweb/kernel-eth-client", "name": "@lumeweb/kernel-eth-client",
"version": "0.1.0-develop.8", "version": "0.1.0-develop.7",
"dependencies": { "dependencies": {
"@lumeweb/libkernel": "^0.1.0-develop.27", "@lumeweb/libkernel": "^0.1.0-develop.20",
"ethers": "^6.6.3" "ethers": "^6.6.3"
}, },
"devDependencies": { "devDependencies": {
@ -1684,13 +1684,12 @@
} }
}, },
"node_modules/@lumeweb/libkernel": { "node_modules/@lumeweb/libkernel": {
"version": "0.1.0-develop.27", "version": "0.1.0-develop.20",
"resolved": "https://registry.npmjs.org/@lumeweb/libkernel/-/libkernel-0.1.0-develop.27.tgz", "resolved": "https://registry.npmjs.org/@lumeweb/libkernel/-/libkernel-0.1.0-develop.20.tgz",
"integrity": "sha512-XkO16wzr2k1j9CrraVrL5vm5ysY+wJGwfJf9/PAknpLGko8j8Z/TbO5h/Q43iNjYjLlwBL2cGngX8orCZBWVDA==", "integrity": "sha512-z7yRk6B0P0bxPe+a4Xm5/Bl6eIfkDCB2IJhNK2Gm+o7j4RbWbizRk79+zgBFWMrYzo8bVrpBKK7nGI3iNOgT9g==",
"dependencies": { "dependencies": {
"@lumeweb/libweb": "0.2.0-develop.27", "@lumeweb/libweb": "0.2.0-develop.26",
"emittery": "^1.0.1", "emittery": "^1.0.1"
"p-defer": "^4.0.0"
} }
}, },
"node_modules/@lumeweb/libkernel/node_modules/emittery": { "node_modules/@lumeweb/libkernel/node_modules/emittery": {
@ -1739,9 +1738,9 @@
} }
}, },
"node_modules/@lumeweb/libweb": { "node_modules/@lumeweb/libweb": {
"version": "0.2.0-develop.27", "version": "0.2.0-develop.26",
"resolved": "https://registry.npmjs.org/@lumeweb/libweb/-/libweb-0.2.0-develop.27.tgz", "resolved": "https://registry.npmjs.org/@lumeweb/libweb/-/libweb-0.2.0-develop.26.tgz",
"integrity": "sha512-obS4a6mcHJNoWXy5fCDuGAIVMee0ivK8q/q0semqoS3v0PS7t7sUmRX5ajyCwGbACXYqEdq3vU7RwzxhUkuNGg==", "integrity": "sha512-XRIDiqRFqlEbcwjxAfkv7UYnyTflN3Q4rki8YAd9QrLQM2vycslgPLYS53vVJVL9GPH93V5J9z2V4DPQZlOOkQ==",
"dependencies": { "dependencies": {
"@lumeweb/community-portals": "^0.1.0-develop.6", "@lumeweb/community-portals": "^0.1.0-develop.6",
"@lumeweb/libportal": "^0.2.0-develop.16", "@lumeweb/libportal": "^0.2.0-develop.16",

View File

@ -1,6 +1,6 @@
{ {
"name": "@lumeweb/kernel-eth-client", "name": "@lumeweb/kernel-eth-client",
"version": "0.1.0-develop.8", "version": "0.1.0-develop.7",
"type": "module", "type": "module",
"main": "lib/index.js", "main": "lib/index.js",
"repository": { "repository": {
@ -18,7 +18,7 @@
"semantic-release": "semantic-release" "semantic-release": "semantic-release"
}, },
"dependencies": { "dependencies": {
"@lumeweb/libkernel": "^0.1.0-develop.27", "@lumeweb/libkernel": "^0.1.0-develop.20",
"ethers": "^6.6.3" "ethers": "^6.6.3"
}, },
"files": [ "files": [

View File

@ -1,10 +1,18 @@
import { factory, NetworkClient } from "@lumeweb/libkernel/module"; import { Client, factory } from "@lumeweb/libkernel/module";
const MODULE = "zduNWtikeTg3FwuNKBNLnWLFJ2ERg4BuDXymerS1gxcbQr5kQ4u2mXtUoq"; const MODULE = "zduNWtikeTg3FwuNKBNLnWLFJ2ERg4BuDXymerS1gxcbQr5kQ4u2mXtUoq";
export class EthClient extends NetworkClient { export class EthClient extends Client {
public async ready() {
return this.callModuleReturn("ready");
}
public async method(method: string, params: any) { public async method(method: string, params: any) {
return this.callModuleReturn(method, params); return this.callModuleReturn(method, params);
} }
public async register() {
return this.callModuleReturn("register");
}
} }
export const createClient = factory<EthClient>(EthClient, MODULE); export const createClient = factory<EthClient>(EthClient, MODULE);