Skip to content

Commit

Permalink
Merge pull request #1 from KYVENetwork/dev
Browse files Browse the repository at this point in the history
feat: pass version into core package
  • Loading branch information
troykessler authored Oct 20, 2021
2 parents fc3dd97 + 627234a commit 59a0967
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 10 deletions.
9 changes: 5 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,16 +1,17 @@
{
"name": "@kyve/evm",
"version": "0.0.3",
"license": "MIT",
"scripts": {
"build": "tsc",
"build:binaries": "tsc && pkg ./dist/index.js --out-path out",
"start": "node ./dist/index.js",
"build:binaries": "tsc && pkg ./dist/src/index.js --out-path out",
"start": "node ./dist/src/index.js",
"format": "prettier --write ."
},
"dependencies": {
"@kyve/core": "^0.0.5",
"@kyve/core": "^0.0.6",
"commander": "^8.2.0",
"ethers": "^5.4.7",
"ethers": "^5.5.1",
"object-hash": "^2.2.0"
},
"devDependencies": {
Expand Down
3 changes: 3 additions & 0 deletions src/index.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import KYVE from "@kyve/core";
import { Command } from "commander";
import { readFileSync } from "fs";
import { version } from "../package.json";
import uploadFunction from "./upload";
import validateFunction from "./validate";

Expand Down Expand Up @@ -31,6 +32,7 @@ cli.option(
true
);
cli.option("-e, --email <string>", "The email of the mantainer. [optional]");
cli.version(version, "-v, --version");

(async () => {
await cli.parseAsync();
Expand All @@ -39,6 +41,7 @@ cli.option("-e, --email <string>", "The email of the mantainer. [optional]");
const node = new KYVE(
options.pool,
"@kyve/evm",
version,
options.stake,
options.privateKey,
options.keyfile && JSON.parse(readFileSync(options.keyfile, "utf-8")),
Expand Down
3 changes: 2 additions & 1 deletion tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@
"compilerOptions": {
"strict": true,
"outDir": "dist",
"esModuleInterop": true
"esModuleInterop": true,
"resolveJsonModule": true
},
"files": ["src/index.ts"]
}
11 changes: 6 additions & 5 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -361,16 +361,17 @@
"@ethersproject/properties" "^5.5.0"
"@ethersproject/strings" "^5.5.0"

"@kyve/core@^0.0.5":
version "0.0.5"
resolved "https://registry.yarnpkg.com/@kyve/core/-/core-0.0.5.tgz#556777c26776199e9026a8a9e016f54dadb6623b"
integrity sha512-tSqLmFMVIyYFStp5MYjSzkSpUlJaKiqxxS2IDZy3NWHlgXy00yxMUUHo+9i40djyIhlNPVMJmCCpgMuj/81qzQ==
"@kyve/core@^0.0.6":
version "0.0.6"
resolved "https://registry.yarnpkg.com/@kyve/core/-/core-0.0.6.tgz#98bb3c5052bbd6b37f48354cea8c0f1e7e2c3d7e"
integrity sha512-dQ03JvI7eViQwmQP4ruOT1vEj2NvCZrBUFmyySxE18Iw+6BzXSO8C9PeNBnB4TI9Uub4y+mHkxNSsy4YKN/olA==
dependencies:
arweave "^1.10.17"
base64url "^3.0.1"
ethers "^5.4.7"
prando "^6.0.1"
rxjs "^7.4.0"
semver "^7.3.5"
tslog "^3.2.2"
unique-names-generator "^4.6.0"

Expand Down Expand Up @@ -703,7 +704,7 @@ esutils@^2.0.2:
resolved "https://registry.yarnpkg.com/esutils/-/esutils-2.0.3.tgz#74d2eb4de0b8da1293711910d50775b9b710ef64"
integrity sha512-kVscqXk4OCp68SZ0dkgEKVi6/8ij300KBWTJq32P/dYeWTSwK41WyTxalN1eRmA5Z9UU/LX9D7FWSmV9SAYx6g==

ethers@^5.4.7:
ethers@^5.4.7, ethers@^5.5.1:
version "5.5.1"
resolved "https://registry.yarnpkg.com/ethers/-/ethers-5.5.1.tgz#d3259a95a42557844aa543906c537106c0406fbf"
integrity sha512-RodEvUFZI+EmFcE6bwkuJqpCYHazdzeR1nMzg+YWQSmQEsNtfl1KHGfp/FWZYl48bI/g7cgBeP2IlPthjiVngw==
Expand Down

0 comments on commit 59a0967

Please sign in to comment.