Compare commits
65 Commits
Author | SHA1 | Date |
---|---|---|
semantic-release-bot | 5bb31563a8 | |
Derrick Hammer | add3a0ad9f | |
Derrick Hammer | 54690bea7f | |
semantic-release-bot | 708c8a4599 | |
Derrick Hammer | ebc8b3e51e | |
Derrick Hammer | 2eb3ac3cf9 | |
Derrick Hammer | 245bddae67 | |
semantic-release-bot | 5d198fd79f | |
Derrick Hammer | b0f915f0bf | |
Derrick Hammer | 2a71bc97e3 | |
Derrick Hammer | 52b1817d46 | |
semantic-release-bot | 8589578979 | |
Derrick Hammer | 23b1482fa4 | |
Derrick Hammer | 754d3c425d | |
Derrick Hammer | d6efe228d4 | |
semantic-release-bot | cfdae6773e | |
Derrick Hammer | 292fb470e2 | |
Derrick Hammer | cdd3309ea1 | |
semantic-release-bot | 8518292b26 | |
Derrick Hammer | 35bd5132f5 | |
semantic-release-bot | 6d31f7e8ae | |
Derrick Hammer | cfb17f14da | |
Derrick Hammer | 58f87c8a0a | |
semantic-release-bot | ced0755695 | |
Derrick Hammer | b3f55a08f9 | |
Derrick Hammer | 1f617b6ef4 | |
semantic-release-bot | b66a140049 | |
Derrick Hammer | 837b904305 | |
Derrick Hammer | 85e50154ba | |
semantic-release-bot | cc4c60bf38 | |
Derrick Hammer | af2c998fa5 | |
Derrick Hammer | da59c69afd | |
semantic-release-bot | 41afde687f | |
Derrick Hammer | 5839454d65 | |
Derrick Hammer | 04b0fcf2a8 | |
semantic-release-bot | a6bc14cf19 | |
Derrick Hammer | 3fb4619d49 | |
Derrick Hammer | eb6a5d9419 | |
semantic-release-bot | ad538c7646 | |
Derrick Hammer | 578ce866bb | |
Derrick Hammer | 5e0fbba4fc | |
semantic-release-bot | fa91ecb522 | |
Derrick Hammer | c9d59b36c1 | |
Derrick Hammer | 1130a9a597 | |
semantic-release-bot | f8d03e833e | |
Derrick Hammer | c62b66f985 | |
semantic-release-bot | ab65bee8d5 | |
Derrick Hammer | f523a2d844 | |
Derrick Hammer | a84aeb38e5 | |
Derrick Hammer | dff60fdf32 | |
semantic-release-bot | b2162aa719 | |
Derrick Hammer | 21b00ecfb6 | |
Derrick Hammer | 2a7eb58354 | |
Derrick Hammer | d0764d3f01 | |
Derrick Hammer | 07a27c0e95 | |
semantic-release-bot | 393c9db605 | |
Derrick Hammer | 4860fd4e19 | |
Derrick Hammer | 1d503bacce | |
semantic-release-bot | cda3ba1bab | |
Derrick Hammer | 1302e44a22 | |
Derrick Hammer | 4faf83e8aa | |
semantic-release-bot | 8dbac7d8f6 | |
Derrick Hammer | 10471a48f9 | |
Derrick Hammer | 2368491114 | |
Derrick Hammer | f89046fdab |
|
@ -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
|
|
@ -0,0 +1,5 @@
|
||||||
|
{
|
||||||
|
"preset": [
|
||||||
|
"@lumeweb/node-library-preset"
|
||||||
|
]
|
||||||
|
}
|
|
@ -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)
|
|
@ -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
|
|
|
@ -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"}
|
|
|
@ -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);
|
|
|
@ -1,3 +0,0 @@
|
||||||
export { createClient } from "./client.js";
|
|
||||||
export { createProvider } from "./provider.js";
|
|
||||||
//# sourceMappingURL=index.d.ts.map
|
|
|
@ -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"}
|
|
|
@ -1,2 +0,0 @@
|
||||||
export { createClient } from "./client.js";
|
|
||||||
export { createProvider } from "./provider.js";
|
|
|
@ -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
|
|
|
@ -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"}
|
|
|
@ -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());
|
|
||||||
}
|
|
File diff suppressed because it is too large
Load Diff
40
package.json
40
package.json
|
@ -1,24 +1,30 @@
|
||||||
{
|
{
|
||||||
"name": "@lumeweb/kernel-eth-client",
|
"name": "@lumeweb/kernel-eth-client",
|
||||||
"version": "0.1.0",
|
"version": "0.1.0-develop.17",
|
||||||
"type": "module",
|
"type": "module",
|
||||||
"main": "dist/index.js",
|
"main": "lib/index.js",
|
||||||
"dependencies": {
|
"repository": {
|
||||||
"@lumeweb/libkernel-universal": "git+https://git.lumeweb.com/LumeWeb/libkernel-universal.git",
|
"type": "git",
|
||||||
"@lumeweb/rpc-client": "git+https://git.lumeweb.com/LumeWeb/rpc-client.git",
|
"url": "gitea@git.lumeweb.com:LumeWeb/kernel-eth-client.git"
|
||||||
"buffer": "^6.0.3",
|
|
||||||
"ethers": "^6.2.2",
|
|
||||||
"libkernel": "^0.1.48",
|
|
||||||
"libkmodule": "^0.2.53",
|
|
||||||
"libskynet": "^0.0.62"
|
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@lumeweb/cfg": "git+https://git.lumeweb.com/LumeWeb/cfg.git",
|
"@lumeweb/node-library-preset": "^0.2.7",
|
||||||
"@lumeweb/interface-relay": "git+https://git.lumeweb.com/LumeWeb/interface-relay.git",
|
"presetter": "*"
|
||||||
"@types/b4a": "^1.6.0",
|
},
|
||||||
"@types/node": "^18.15.5",
|
"readme": "ERROR: No README data found!",
|
||||||
"@types/node-cache": "^4.2.5",
|
"scripts": {
|
||||||
"prettier": "^2.8.6",
|
"prepare": "presetter bootstrap",
|
||||||
"typescript": "^5.0.2"
|
"build": "run build",
|
||||||
|
"semantic-release": "semantic-release"
|
||||||
|
},
|
||||||
|
"dependencies": {
|
||||||
|
"@lumeweb/libkernel": "^0.1.0-develop.66",
|
||||||
|
"ethers": "^6.6.3"
|
||||||
|
},
|
||||||
|
"files": [
|
||||||
|
"lib"
|
||||||
|
],
|
||||||
|
"publishConfig": {
|
||||||
|
"access": "public"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -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 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);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
export const createClient = factory<EthClient>(EthClient, RPC_MODULE);
|
export const createClient = factory<EthClient>(EthClient, MODULE);
|
||||||
|
|
|
@ -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"
|
|
||||||
]
|
|
||||||
}
|
|
Loading…
Reference in New Issue