Move hasher module to top level
This commit is contained in:
parent
db4459893a
commit
15c480b8bf
@ -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";
|
||||
|
||||
|
||||
@ -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;
|
||||
|
||||
@ -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", () => {
|
||||
@ -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
|
||||
Loading…
Reference in New Issue
Block a user