mirror of
https://github.com/cosmos/cosmjs.git
synced 2025-03-10 21:49:15 +00:00
Remove levelup/leveldown functionality from CLI
This commit is contained in:
parent
d7cf91eb4c
commit
d46b59db4f
2
packages/cli/.gitignore
vendored
2
packages/cli/.gitignore
vendored
@ -1,5 +1,3 @@
|
||||
build/
|
||||
dist/
|
||||
docs/
|
||||
|
||||
selftest_userprofile_db/
|
||||
|
@ -43,7 +43,6 @@
|
||||
"babylon": "^6.18.0",
|
||||
"colors": "^1.3.3",
|
||||
"diff": "^4",
|
||||
"leveldown": "^5.0.0",
|
||||
"recast": "^0.18.0",
|
||||
"ts-node": "^8",
|
||||
"typescript": "~3.7"
|
||||
|
@ -122,8 +122,6 @@ export function main(originalArgs: readonly string[]): void {
|
||||
console.info(colors.yellow("Available imports:"));
|
||||
console.info(colors.yellow(" * http"));
|
||||
console.info(colors.yellow(" * https"));
|
||||
console.info(colors.yellow(" * leveldown"));
|
||||
console.info(colors.yellow(" * levelup"));
|
||||
console.info(colors.yellow(" * from long"));
|
||||
console.info(colors.yellow(" - Long"));
|
||||
for (const moduleName of imports.keys()) {
|
||||
@ -139,8 +137,6 @@ export function main(originalArgs: readonly string[]): void {
|
||||
console.info(colors.yellow(" - toHex"));
|
||||
|
||||
let init = `
|
||||
import leveldown = require('leveldown');
|
||||
import levelup from "levelup";
|
||||
import * as http from 'http';
|
||||
import * as https from 'https';
|
||||
import Long from "long";
|
||||
@ -170,9 +166,6 @@ export function main(originalArgs: readonly string[]): void {
|
||||
|
||||
const profile = new UserProfile();
|
||||
const wallet = profile.addWallet(Ed25519HdWallet.fromMnemonic("degree tackle suggest window test behind mesh extra cover prepare oak script"));
|
||||
const db = levelup(leveldown('./selftest_userprofile_db'));
|
||||
await profile.storeIn(db, "secret passwd");
|
||||
const profileFromDb = await UserProfile.loadFrom(db, "secret passwd");
|
||||
|
||||
console.info("Done testing, will exit now.");
|
||||
process.exit(0);
|
||||
|
19
yarn.lock
19
yarn.lock
@ -4898,15 +4898,6 @@ level-supports@~1.0.0:
|
||||
dependencies:
|
||||
xtend "^4.0.2"
|
||||
|
||||
leveldown@^5.0.0:
|
||||
version "5.4.1"
|
||||
resolved "https://registry.yarnpkg.com/leveldown/-/leveldown-5.4.1.tgz#83a8fdd9bb52b1ed69be2ef59822b6cdfcdb51ec"
|
||||
integrity sha512-3lMPc7eU3yj5g+qF1qlALInzIYnkySIosR1AsUKFjL9D8fYbTLuENBAeDRZXIG4qeWOAyqRItOoLu2v2avWiMA==
|
||||
dependencies:
|
||||
abstract-leveldown "~6.2.1"
|
||||
napi-macros "~2.0.0"
|
||||
node-gyp-build "~4.1.0"
|
||||
|
||||
levelup@^4.0.0:
|
||||
version "4.3.2"
|
||||
resolved "https://registry.yarnpkg.com/levelup/-/levelup-4.3.2.tgz#31c5b1b29f146d1d35d692e01a6da4d28fa55ebd"
|
||||
@ -5517,11 +5508,6 @@ nanomatch@^1.2.9:
|
||||
snapdragon "^0.8.1"
|
||||
to-regex "^3.0.1"
|
||||
|
||||
napi-macros@~2.0.0:
|
||||
version "2.0.0"
|
||||
resolved "https://registry.yarnpkg.com/napi-macros/-/napi-macros-2.0.0.tgz#2b6bae421e7b96eb687aa6c77a7858640670001b"
|
||||
integrity sha512-A0xLykHtARfueITVDernsAWdtIMbOJgKgcluwENp3AlsKN/PloyO10HtmoqnFAQAcxPkgZN7wdfPfEd0zNGxbg==
|
||||
|
||||
natural-compare@^1.4.0:
|
||||
version "1.4.0"
|
||||
resolved "https://registry.yarnpkg.com/natural-compare/-/natural-compare-1.4.0.tgz#4abebfeed7541f2c27acfb29bdbbd15c8d5ba4f7"
|
||||
@ -5556,11 +5542,6 @@ node-fetch@^2.3.0, node-fetch@^2.5.0:
|
||||
resolved "https://registry.yarnpkg.com/node-fetch/-/node-fetch-2.6.0.tgz#e633456386d4aa55863f676a7ab0daa8fdecb0fd"
|
||||
integrity sha512-8dG4H5ujfvFiqDmVu9fQ5bOHUC15JMjMY/Zumv26oOvvVJjM67KF8koCWIabKQ1GJIa9r2mMZscBq/TbdOcmNA==
|
||||
|
||||
node-gyp-build@~4.1.0:
|
||||
version "4.1.1"
|
||||
resolved "https://registry.yarnpkg.com/node-gyp-build/-/node-gyp-build-4.1.1.tgz#d7270b5d86717068d114cc57fff352f96d745feb"
|
||||
integrity sha512-dSq1xmcPDKPZ2EED2S6zw/b9NKsqzXRE6dVr8TVQnI3FJOTteUMuqF3Qqs6LZg+mLGYJWqQzMbIjMtJqTv87nQ==
|
||||
|
||||
node-gyp@^5.0.2:
|
||||
version "5.0.7"
|
||||
resolved "https://registry.yarnpkg.com/node-gyp/-/node-gyp-5.0.7.tgz#dd4225e735e840cf2870e4037c2ed9c28a31719e"
|
||||
|
Loading…
x
Reference in New Issue
Block a user