feat: initial version

This commit is contained in:
Derrick Hammer 2023-08-21 03:32:02 -04:00
parent 7d088e87fa
commit 950fa42698
Signed by: pcfreak30
GPG Key ID: C997C339BE476FF2
4 changed files with 18275 additions and 1 deletions

View File

@ -1,6 +1,6 @@
MIT License MIT License
Copyright (c) 2023 LumeWeb Copyright (c) 2023 Hammer Technologies LLC
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

18239
npm-shrinkwrap.json generated Normal file

File diff suppressed because it is too large Load Diff

23
package.json Normal file
View File

@ -0,0 +1,23 @@
{
"name": "@lumeweb/kernel-lavanet-client",
"version": "0.1.0",
"type": "module",
"repository": {
"type": "git",
"url": "gitea@git.lumeweb.com:LumeWeb/kernel-lavanet-client.git"
},
"devDependencies": {
"@lumeweb/node-library-preset": "^0.2.7",
"presetter": "*"
},
"readme": "ERROR: No README data found!",
"_id": "@lumeweb/kernel-lavanet-client@0.1.0",
"scripts": {
"prepare": "presetter bootstrap",
"build": "run build",
"semantic-release": "semantic-release"
},
"dependencies": {
"@lumeweb/libkernel": "^0.1.0-develop.36"
}
}

12
src/index.ts Normal file
View File

@ -0,0 +1,12 @@
import { Client, factory } from "@lumeweb/libkernel/module";
export const MODULE =
"zduJpuvFms8USLw62RcFreQLBspEgQeVe5b2DiA2GK1YM3yqxfnRzDDZk3";
export class LavaNetClient extends Client {
public async query(chain: string, query: any): Promise<number> {
return this.callModuleReturn("query", { chain, query });
}
}
export const createClient = factory<LavaNetClient>(LavaNetClient, MODULE);