Convert CLI examples to pen

This commit is contained in:
Simon Warta
2020-02-07 09:35:24 +01:00
parent d46b59db4f
commit 11d369b4a1
4 changed files with 3 additions and 49 deletions
-40
View File
@@ -50,29 +50,6 @@ export function main(originalArgs: readonly string[]): void {
"types",
],
],
[
"@iov/bcp",
[
"Address",
"Algorithm",
"ChainId",
"Nonce",
"PrehashType",
"PubkeyBytes",
"SendTransaction",
"SignableBytes",
"TokenTicker",
"TransactionId",
// block info
"BlockInfoPending",
"BlockInfoSucceeded",
"BlockInfoFailed",
"BlockInfo",
"isBlockInfoPending",
"isBlockInfoSucceeded",
"isBlockInfoFailed",
],
],
[
"@iov/crypto",
[
@@ -101,20 +78,6 @@ export function main(originalArgs: readonly string[]): void {
"Uint64",
],
],
[
"@iov/keycontrol",
[
"Ed25519HdWallet",
"HdPaths",
"Keyring",
"Secp256k1HdWallet",
"UserProfile",
"Wallet",
"WalletId",
"WalletImplementationIdString",
"WalletSerializationString",
],
],
["@iov/utils", ["sleep"]],
]);
@@ -164,9 +127,6 @@ export function main(originalArgs: readonly string[]): void {
const data = Encoding.toAscii("foo bar");
const signature = await pen.createSignature(data);
const profile = new UserProfile();
const wallet = profile.addWallet(Ed25519HdWallet.fromMnemonic("degree tackle suggest window test behind mesh extra cover prepare oak script"));
console.info("Done testing, will exit now.");
process.exit(0);
`;