Move hasher module to top level

This commit is contained in:
Simon Warta 2021-02-23 12:12:21 +01:00
parent db4459893a
commit 15c480b8bf
4 changed files with 5 additions and 12 deletions

View File

@ -1,6 +1,6 @@
/* eslint-disable @typescript-eslint/naming-convention */
import { Adaptor } from "../../adaptor";
import { hashBlock, hashTx } from "./hasher";
import { hashBlock, hashTx } from "../../hasher";
import { Params } from "./requests";
import { Responses } from "./responses";

View File

@ -17,10 +17,10 @@ import {
may,
optional,
} from "../../encodings";
import { hashTx } from "../../hasher";
import * as responses from "../../responses";
import { SubscriptionEvent } from "../../rpcclients";
import { BlockIdFlag, CommitSignature, ValidatorPubkey } from "../../types";
import { hashTx } from "./hasher";
interface AbciInfoResult {
readonly response: RpcAbciInfoResponse;

View File

@ -1,7 +1,7 @@
import { fromBase64, fromHex } from "@cosmjs/encoding";
import { ReadonlyDate } from "readonly-date";
import { ReadonlyDateWithNanoseconds } from "../../dates";
import { ReadonlyDateWithNanoseconds } from "./dates";
import { hashBlock, hashTx } from "./hasher";
describe("Hasher", () => {

View File

@ -1,14 +1,7 @@
import { Sha256, sha256 } from "@cosmjs/crypto";
import {
encodeBlockId,
encodeBytes,
encodeInt,
encodeString,
encodeTime,
encodeVersion,
} from "../../encodings";
import { Header } from "../../responses";
import { encodeBlockId, encodeBytes, encodeInt, encodeString, encodeTime, encodeVersion } from "./encodings";
import { Header } from "./responses";
// hash is sha256
// https://github.com/tendermint/tendermint/blob/master/UPGRADING.md#v0260