Compare commits

..

65 Commits

Author SHA1 Message Date
semantic-release-bot 5bb31563a8 chore(release): 0.1.0-develop.17 [skip ci]
# [0.1.0-develop.17](https://git.lumeweb.com/LumeWeb/kernel-eth-client/compare/v0.1.0-develop.16...v0.1.0-develop.17) (2023-10-12)
2023-10-12 13:54:30 +00:00
Derrick Hammer add3a0ad9f
dep: update libkernel 2023-10-12 09:53:24 -04:00
Derrick Hammer 54690bea7f
dep: update module hash 2023-10-12 09:52:21 -04:00
semantic-release-bot 708c8a4599 chore(release): 0.1.0-develop.16 [skip ci]
# [0.1.0-develop.16](https://git.lumeweb.com/LumeWeb/kernel-eth-client/compare/v0.1.0-develop.15...v0.1.0-develop.16) (2023-09-04)
2023-09-04 10:26:01 +00:00
Derrick Hammer ebc8b3e51e
Merge remote-tracking branch 'origin/develop' into develop 2023-09-04 06:24:58 -04:00
Derrick Hammer 2eb3ac3cf9
dep: update module hash 2023-09-04 06:24:51 -04:00
Derrick Hammer 245bddae67
dep: update libkernel 2023-09-04 06:24:39 -04:00
semantic-release-bot 5d198fd79f chore(release): 0.1.0-develop.15 [skip ci]
# [0.1.0-develop.15](https://git.lumeweb.com/LumeWeb/kernel-eth-client/compare/v0.1.0-develop.14...v0.1.0-develop.15) (2023-09-03)
2023-09-03 05:23:27 +00:00
Derrick Hammer b0f915f0bf
Merge remote-tracking branch 'origin/develop' into develop 2023-09-03 01:22:28 -04:00
Derrick Hammer 2a71bc97e3
dep: update libkernel 2023-09-03 01:22:24 -04:00
Derrick Hammer 52b1817d46
dep: update module hash 2023-09-03 01:21:42 -04:00
semantic-release-bot 8589578979 chore(release): 0.1.0-develop.14 [skip ci]
# [0.1.0-develop.14](https://git.lumeweb.com/LumeWeb/kernel-eth-client/compare/v0.1.0-develop.13...v0.1.0-develop.14) (2023-09-02)
2023-09-02 17:52:03 +00:00
Derrick Hammer 23b1482fa4
Merge remote-tracking branch 'origin/develop' into develop 2023-09-02 13:50:56 -04:00
Derrick Hammer 754d3c425d
dep: update libkernel 2023-09-02 13:50:48 -04:00
Derrick Hammer d6efe228d4
dep: update module hash 2023-09-02 13:50:16 -04:00
semantic-release-bot cfdae6773e chore(release): 0.1.0-develop.13 [skip ci]
# [0.1.0-develop.13](https://git.lumeweb.com/LumeWeb/kernel-eth-client/compare/v0.1.0-develop.12...v0.1.0-develop.13) (2023-07-29)
2023-07-29 16:41:22 +00:00
Derrick Hammer 292fb470e2
Merge remote-tracking branch 'origin/develop' into develop 2023-07-29 12:40:04 -04:00
Derrick Hammer cdd3309ea1
dep: update module hash 2023-07-29 12:40:00 -04:00
semantic-release-bot 8518292b26 chore(release): 0.1.0-develop.12 [skip ci]
# [0.1.0-develop.12](https://git.lumeweb.com/LumeWeb/kernel-eth-client/compare/v0.1.0-develop.11...v0.1.0-develop.12) (2023-07-29)
2023-07-29 04:01:01 +00:00
Derrick Hammer 35bd5132f5
dep: update module hash 2023-07-28 23:59:46 -04:00
semantic-release-bot 6d31f7e8ae chore(release): 0.1.0-develop.11 [skip ci]
# [0.1.0-develop.11](https://git.lumeweb.com/LumeWeb/kernel-eth-client/compare/v0.1.0-develop.10...v0.1.0-develop.11) (2023-07-24)
2023-07-24 18:37:57 +00:00
Derrick Hammer cfb17f14da
Merge remote-tracking branch 'origin/develop' into develop 2023-07-24 14:36:57 -04:00
Derrick Hammer 58f87c8a0a
dep: update module hash 2023-07-24 14:36:54 -04:00
semantic-release-bot ced0755695 chore(release): 0.1.0-develop.10 [skip ci]
# [0.1.0-develop.10](https://git.lumeweb.com/LumeWeb/kernel-eth-client/compare/v0.1.0-develop.9...v0.1.0-develop.10) (2023-07-24)
2023-07-24 18:16:35 +00:00
Derrick Hammer b3f55a08f9
Merge remote-tracking branch 'origin/develop' into develop 2023-07-24 14:15:32 -04:00
Derrick Hammer 1f617b6ef4
dep: update module hash 2023-07-24 14:15:28 -04:00
semantic-release-bot b66a140049 chore(release): 0.1.0-develop.9 [skip ci]
# [0.1.0-develop.9](https://git.lumeweb.com/LumeWeb/kernel-eth-client/compare/v0.1.0-develop.8...v0.1.0-develop.9) (2023-07-23)
2023-07-23 18:55:36 +00:00
Derrick Hammer 837b904305
Merge remote-tracking branch 'origin/develop' into develop 2023-07-23 14:54:36 -04:00
Derrick Hammer 85e50154ba
dep: update module hash 2023-07-23 14:54:32 -04:00
semantic-release-bot cc4c60bf38 chore(release): 0.1.0-develop.8 [skip ci]
# [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)
2023-07-23 17:40:40 +00:00
Derrick Hammer af2c998fa5
Merge remote-tracking branch 'origin/develop' into develop 2023-07-23 13:39:42 -04:00
Derrick Hammer da59c69afd
refactor: have EthClient extend NetworkClient 2023-07-23 13:39:37 -04:00
semantic-release-bot 41afde687f chore(release): 0.1.0-develop.7 [skip ci]
# [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)
2023-07-23 16:21:17 +00:00
Derrick Hammer 5839454d65
Merge remote-tracking branch 'origin/develop' into develop 2023-07-23 12:20:12 -04:00
Derrick Hammer 04b0fcf2a8
dep: update module hash 2023-07-23 12:20:09 -04:00
semantic-release-bot a6bc14cf19 chore(release): 0.1.0-develop.6 [skip ci]
# [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)
2023-07-23 01:00:35 +00:00
Derrick Hammer 3fb4619d49
Merge remote-tracking branch 'origin/develop' into develop 2023-07-22 20:59:42 -04:00
Derrick Hammer eb6a5d9419
dep: update module hash 2023-07-22 20:59:35 -04:00
semantic-release-bot ad538c7646 chore(release): 0.1.0-develop.5 [skip ci]
# [0.1.0-develop.5](https://git.lumeweb.com/LumeWeb/kernel-eth-client/compare/v0.1.0-develop.4...v0.1.0-develop.5) (2023-07-22)
2023-07-22 00:55:34 +00:00
Derrick Hammer 578ce866bb
Merge remote-tracking branch 'origin/develop' into develop 2023-07-21 20:54:38 -04:00
Derrick Hammer 5e0fbba4fc
dep: update module hash 2023-07-21 20:54:32 -04:00
semantic-release-bot fa91ecb522 chore(release): 0.1.0-develop.4 [skip ci]
# [0.1.0-develop.4](https://git.lumeweb.com/LumeWeb/kernel-eth-client/compare/v0.1.0-develop.3...v0.1.0-develop.4) (2023-07-21)
2023-07-21 17:46:37 +00:00
Derrick Hammer c9d59b36c1
Merge remote-tracking branch 'origin/develop' into develop 2023-07-21 13:45:38 -04:00
Derrick Hammer 1130a9a597
dep: update module hash 2023-07-21 13:45:34 -04:00
semantic-release-bot f8d03e833e chore(release): 0.1.0-develop.3 [skip ci]
# [0.1.0-develop.3](https://git.lumeweb.com/LumeWeb/kernel-eth-client/compare/v0.1.0-develop.2...v0.1.0-develop.3) (2023-07-19)
2023-07-19 22:14:10 +00:00
Derrick Hammer c62b66f985
dep: ethers should not be a dev dependency 2023-07-19 18:13:06 -04:00
semantic-release-bot ab65bee8d5 chore(release): 0.1.0-develop.2 [skip ci]
# [0.1.0-develop.2](https://git.lumeweb.com/LumeWeb/kernel-eth-client/compare/v0.1.0-develop.1...v0.1.0-develop.2) (2023-07-19)
2023-07-19 17:38:54 +00:00
Derrick Hammer f523a2d844
dep: update module hash 2023-07-19 13:37:58 -04:00
Derrick Hammer a84aeb38e5
Merge remote-tracking branch 'origin/develop' into develop 2023-07-19 13:04:00 -04:00
Derrick Hammer dff60fdf32
style: format 2023-07-19 13:03:54 -04:00
semantic-release-bot b2162aa719 chore(release): 0.1.0-develop.1 [skip ci]
# [0.1.0-develop.1](https://git.lumeweb.com/LumeWeb/kernel-eth-client/compare/v0.0.2-develop.3...v0.1.0-develop.1) (2023-07-19)

### Features

* add register for network registry ([2a7eb58](2a7eb58354))
2023-07-19 16:51:57 +00:00
Derrick Hammer 21b00ecfb6
Merge remote-tracking branch 'origin/develop' into develop 2023-07-19 12:50:56 -04:00
Derrick Hammer 2a7eb58354
feat: add register for network registry 2023-07-19 12:50:45 -04:00
Derrick Hammer d0764d3f01
dep: update libkernel 2023-07-19 12:50:22 -04:00
Derrick Hammer 07a27c0e95
dep: update module hash 2023-07-19 12:49:14 -04:00
semantic-release-bot 393c9db605 chore(release): 0.0.2-develop.3 [skip ci]
## [0.0.2-develop.3](https://git.lumeweb.com/LumeWeb/kernel-eth-client/compare/v0.0.2-develop.2...v0.0.2-develop.3) (2023-07-15)
2023-07-15 10:06:53 +00:00
Derrick Hammer 4860fd4e19
Merge remote-tracking branch 'origin/develop' into develop 2023-07-15 06:05:43 -04:00
Derrick Hammer 1d503bacce
dep: update module hash 2023-07-15 06:05:36 -04:00
semantic-release-bot cda3ba1bab chore(release): 0.0.2-develop.2 [skip ci]
## [0.0.2-develop.2](https://git.lumeweb.com/LumeWeb/kernel-eth-client/compare/v0.0.2-develop.1...v0.0.2-develop.2) (2023-07-15)
2023-07-15 09:55:39 +00:00
Derrick Hammer 1302e44a22
Merge remote-tracking branch 'origin/develop' into develop 2023-07-15 05:54:35 -04:00
Derrick Hammer 4faf83e8aa
dep: update module hash 2023-07-15 05:54:30 -04:00
semantic-release-bot 8dbac7d8f6 chore(release): 0.0.2-develop.1 [skip ci]
## [0.0.2-develop.1](https://git.lumeweb.com/LumeWeb/kernel-eth-client/compare/v0.0.1...v0.0.2-develop.1) (2023-07-14)
2023-07-14 08:41:46 +00:00
Derrick Hammer 10471a48f9
ci: setup 2023-07-14 04:39:18 -04:00
Derrick Hammer 2368491114
dep: update module hash 2023-07-14 04:39:18 -04:00
Derrick Hammer f89046fdab
refactor: move to new build system and sdks 2023-07-14 04:39:17 -04:00
16 changed files with 18548 additions and 97 deletions

13
.github/workflows/ci.yml vendored Normal file
View File

@ -0,0 +1,13 @@
name: Build/Publish
on:
push:
branches:
- master
- develop
- develop-*
jobs:
main:
uses: lumeweb/github-node-deploy-workflow/.github/workflows/main.yml@master
secrets: inherit

5
.presetterrc.json Normal file
View File

@ -0,0 +1,5 @@
{
"preset": [
"@lumeweb/node-library-preset"
]
}

44
CHANGELOG.md Normal file
View File

@ -0,0 +1,44 @@
# [0.1.0-develop.17](https://git.lumeweb.com/LumeWeb/kernel-eth-client/compare/v0.1.0-develop.16...v0.1.0-develop.17) (2023-10-12)
# [0.1.0-develop.16](https://git.lumeweb.com/LumeWeb/kernel-eth-client/compare/v0.1.0-develop.15...v0.1.0-develop.16) (2023-09-04)
# [0.1.0-develop.15](https://git.lumeweb.com/LumeWeb/kernel-eth-client/compare/v0.1.0-develop.14...v0.1.0-develop.15) (2023-09-03)
# [0.1.0-develop.14](https://git.lumeweb.com/LumeWeb/kernel-eth-client/compare/v0.1.0-develop.13...v0.1.0-develop.14) (2023-09-02)
# [0.1.0-develop.13](https://git.lumeweb.com/LumeWeb/kernel-eth-client/compare/v0.1.0-develop.12...v0.1.0-develop.13) (2023-07-29)
# [0.1.0-develop.12](https://git.lumeweb.com/LumeWeb/kernel-eth-client/compare/v0.1.0-develop.11...v0.1.0-develop.12) (2023-07-29)
# [0.1.0-develop.11](https://git.lumeweb.com/LumeWeb/kernel-eth-client/compare/v0.1.0-develop.10...v0.1.0-develop.11) (2023-07-24)
# [0.1.0-develop.10](https://git.lumeweb.com/LumeWeb/kernel-eth-client/compare/v0.1.0-develop.9...v0.1.0-develop.10) (2023-07-24)
# [0.1.0-develop.9](https://git.lumeweb.com/LumeWeb/kernel-eth-client/compare/v0.1.0-develop.8...v0.1.0-develop.9) (2023-07-23)
# [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.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.5](https://git.lumeweb.com/LumeWeb/kernel-eth-client/compare/v0.1.0-develop.4...v0.1.0-develop.5) (2023-07-22)
# [0.1.0-develop.4](https://git.lumeweb.com/LumeWeb/kernel-eth-client/compare/v0.1.0-develop.3...v0.1.0-develop.4) (2023-07-21)
# [0.1.0-develop.3](https://git.lumeweb.com/LumeWeb/kernel-eth-client/compare/v0.1.0-develop.2...v0.1.0-develop.3) (2023-07-19)
# [0.1.0-develop.2](https://git.lumeweb.com/LumeWeb/kernel-eth-client/compare/v0.1.0-develop.1...v0.1.0-develop.2) (2023-07-19)
# [0.1.0-develop.1](https://git.lumeweb.com/LumeWeb/kernel-eth-client/compare/v0.0.2-develop.3...v0.1.0-develop.1) (2023-07-19)
### Features
* add register for network registry ([2a7eb58](https://git.lumeweb.com/LumeWeb/kernel-eth-client/commit/2a7eb58354839bfdea96504f00b17f0841dae869))
## [0.0.2-develop.3](https://git.lumeweb.com/LumeWeb/kernel-eth-client/compare/v0.0.2-develop.2...v0.0.2-develop.3) (2023-07-15)
## [0.0.2-develop.2](https://git.lumeweb.com/LumeWeb/kernel-eth-client/compare/v0.0.2-develop.1...v0.0.2-develop.2) (2023-07-15)
## [0.0.2-develop.1](https://git.lumeweb.com/LumeWeb/kernel-eth-client/compare/v0.0.1...v0.0.2-develop.1) (2023-07-14)

7
dist/client.d.ts vendored
View File

@ -1,7 +0,0 @@
import { Client } from "@lumeweb/libkernel-universal";
export declare class EthClient extends Client {
ready(): Promise<any>;
method(method: string, params: any): Promise<any>;
}
export declare const createClient: (...args: any) => EthClient;
//# sourceMappingURL=client.d.ts.map

View File

@ -1 +0,0 @@
{"version":3,"file":"client.d.ts","sourceRoot":"","sources":["../src/client.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAW,MAAM,8BAA8B,CAAC;AAI/D,qBAAa,SAAU,SAAQ,MAAM;IACtB,KAAK;IAGL,MAAM,CAAC,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,GAAG;CAGhD;AAED,eAAO,MAAM,YAAY,6BAA4C,CAAC"}

11
dist/client.js vendored
View File

@ -1,11 +0,0 @@
import { Client, factory } from "@lumeweb/libkernel-universal";
const RPC_MODULE = "AABzXaYbh-KuCx3ZUUz-oeeMQsZb3kR1BbYSQ-8LSsBmAA";
export class EthClient extends Client {
async ready() {
return this.callModuleReturn("ready");
}
async method(method, params) {
return this.callModuleReturn(method, params);
}
}
export const createClient = factory(EthClient, RPC_MODULE);

3
dist/index.d.ts vendored
View File

@ -1,3 +0,0 @@
export { createClient } from "./client.js";
export { createProvider } from "./provider.js";
//# sourceMappingURL=index.d.ts.map

1
dist/index.d.ts.map vendored
View File

@ -1 +0,0 @@
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,aAAa,CAAC;AAC3C,OAAO,EAAE,cAAc,EAAE,MAAM,eAAe,CAAC"}

2
dist/index.js vendored
View File

@ -1,2 +0,0 @@
export { createClient } from "./client.js";
export { createProvider } from "./provider.js";

12
dist/provider.d.ts vendored
View File

@ -1,12 +0,0 @@
import { Eip1193Provider, ethers } from "ethers";
export declare class Provider implements Eip1193Provider {
private client;
request(args: RequestArguments): Promise<unknown>;
}
interface RequestArguments {
readonly method: string;
readonly params?: readonly unknown[] | object;
}
export declare function createProvider(): ethers.BrowserProvider;
export {};
//# sourceMappingURL=provider.d.ts.map

View File

@ -1 +0,0 @@
{"version":3,"file":"provider.d.ts","sourceRoot":"","sources":["../src/provider.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAC;AAGjD,qBAAa,QAAS,YAAW,eAAe;IAC9C,OAAO,CAAC,MAAM,CAA6B;IAE9B,OAAO,CAAC,IAAI,EAAE,gBAAgB,GAAG,OAAO,CAAC,OAAO,CAAC;CAG/D;AAED,UAAU,gBAAgB;IACxB,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAC;IACxB,QAAQ,CAAC,MAAM,CAAC,EAAE,SAAS,OAAO,EAAE,GAAG,MAAM,CAAC;CAC/C;AAED,wBAAgB,cAAc,IAAI,MAAM,CAAC,eAAe,CAEvD"}

11
dist/provider.js vendored
View File

@ -1,11 +0,0 @@
import { ethers } from "ethers";
import { createClient } from "./client.js";
export class Provider {
client = createClient();
async request(args) {
return this.client.method(args.method, args.params);
}
}
export function createProvider() {
return new ethers.BrowserProvider(new Provider());
}

18459
npm-shrinkwrap.json generated Normal file

File diff suppressed because it is too large Load Diff

View File

@ -1,24 +1,30 @@
{
"name": "@lumeweb/kernel-eth-client",
"version": "0.1.0",
"version": "0.1.0-develop.17",
"type": "module",
"main": "dist/index.js",
"dependencies": {
"@lumeweb/libkernel-universal": "git+https://git.lumeweb.com/LumeWeb/libkernel-universal.git",
"@lumeweb/rpc-client": "git+https://git.lumeweb.com/LumeWeb/rpc-client.git",
"buffer": "^6.0.3",
"ethers": "^6.2.2",
"libkernel": "^0.1.48",
"libkmodule": "^0.2.53",
"libskynet": "^0.0.62"
"main": "lib/index.js",
"repository": {
"type": "git",
"url": "gitea@git.lumeweb.com:LumeWeb/kernel-eth-client.git"
},
"devDependencies": {
"@lumeweb/cfg": "git+https://git.lumeweb.com/LumeWeb/cfg.git",
"@lumeweb/interface-relay": "git+https://git.lumeweb.com/LumeWeb/interface-relay.git",
"@types/b4a": "^1.6.0",
"@types/node": "^18.15.5",
"@types/node-cache": "^4.2.5",
"prettier": "^2.8.6",
"typescript": "^5.0.2"
"@lumeweb/node-library-preset": "^0.2.7",
"presetter": "*"
},
"readme": "ERROR: No README data found!",
"scripts": {
"prepare": "presetter bootstrap",
"build": "run build",
"semantic-release": "semantic-release"
},
"dependencies": {
"@lumeweb/libkernel": "^0.1.0-develop.66",
"ethers": "^6.6.3"
},
"files": [
"lib"
],
"publishConfig": {
"access": "public"
}
}

View File

@ -1,14 +1,10 @@
import { Client, factory } from "@lumeweb/libkernel-universal";
import { factory, NetworkClient } from "@lumeweb/libkernel/module";
const MODULE = "zrjM21LqarPeeRGM9WPQGncA4cLFwzBqgq6kvio7S7HtwrT";
const RPC_MODULE = "AABzXaYbh-KuCx3ZUUz-oeeMQsZb3kR1BbYSQ-8LSsBmAA";
export class EthClient extends Client {
public async ready() {
return this.callModuleReturn("ready");
}
export class EthClient extends NetworkClient {
public async method(method: string, params: any) {
return this.callModuleReturn(method, params);
}
}
export const createClient = factory<EthClient>(EthClient, RPC_MODULE);
export const createClient = factory<EthClient>(EthClient, MODULE);

View File

@ -1,23 +0,0 @@
{
"compilerOptions": {
"declaration": true,
"strict": true,
"module": "esnext",
"target": "esnext",
"esModuleInterop": true,
"sourceMap": false,
"rootDir": "src",
"outDir": "dist",
"typeRoots": [
"node_modules/@types",
],
"moduleResolution": "nodenext",
"declarationMap": true,
"declarationDir": "dist",
"emitDeclarationOnly": false,
"allowJs": true
},
"include": [
"src"
]
}