Merge branch '0.22'

This commit is contained in:
Simon Warta
2020-08-11 10:20:09 +02:00
51 changed files with 385 additions and 140 deletions
+11 -1
View File
@@ -89,6 +89,10 @@ export async function main(originalArgs: readonly string[]): Promise<void> {
[
"coin",
"coins",
"decodeAminoPubkey",
"decodeBech32Pubkey",
"encodeAminoPubkey",
"encodeBech32Pubkey",
"encodeSecp256k1Pubkey",
"encodeSecp256k1Signature",
"logs",
@@ -112,7 +116,7 @@ export async function main(originalArgs: readonly string[]): Promise<void> {
],
],
["@cosmjs/math", ["Decimal", "Int53", "Uint32", "Uint53", "Uint64"]],
["@cosmjs/utils", ["assert", "sleep"]],
["@cosmjs/utils", ["assert", "arrayContentEquals", "sleep"]],
]);
console.info(colors.green("Initializing session for you. Have fun!"));
@@ -156,6 +160,12 @@ export async function main(originalArgs: readonly string[]): Promise<void> {
const data = toAscii("foo bar");
const signature = await wallet.sign(address, data);
const bechPubkey = "coralvalconspub1zcjduepqvxg72ccnl9r65fv0wn3amlk4sfzqfe2k36l073kjx2qyaf6sk23qw7j8wq";
assert(encodeBech32Pubkey(decodeBech32Pubkey(bechPubkey), "coralvalconspub") == bechPubkey);
const aminoPubkey = fromHex("eb5ae98721034f04181eeba35391b858633a765c4a0c189697b40d216354d50890d350c70290");
assert(arrayContentEquals(encodeAminoPubkey(decodeAminoPubkey(aminoPubkey)), aminoPubkey));
console.info("Done testing, will exit now.");
process.exit(0);
`;