forked from cerc-io/cosmos-explorer
16 lines
347 B
TypeScript
16 lines
347 B
TypeScript
import { sha256 } from "@cosmjs/crypto";
|
|
import { toHex } from "@cosmjs/encoding";
|
|
|
|
export function newPageRequest(param: {
|
|
key?: Uint8Array,
|
|
limit?: number,
|
|
offset?: number,
|
|
countTotal?: boolean,
|
|
reverse?: boolean
|
|
}) {
|
|
return param
|
|
}
|
|
|
|
export function hashTx(raw: Uint8Array) {
|
|
return toHex(sha256(raw)).toUpperCase()
|
|
} |