Convert CLI examples to pen
This commit is contained in:
@@ -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);
|
||||
`;
|
||||
|
||||
Reference in New Issue
Block a user