UNPKG

@axiom-crypto/tools

Version:

Useful data, field, and byte manipulation tools for Axiom.

12 lines (11 loc) 798 B
import { ethers } from "ethers"; export declare function getNumBytes(hexStr: string | undefined | null): number; export declare function bytes32(data: string | number | ethers.BigNumberish): string; export declare function bytes32OrNull(data: string | number | ethers.BigNumberish | undefined | null): string | null; export declare function toLeHex(data: string, numBytes: number): string; export declare function resizeArray(arr: string[], size: number, defaultValue: string): string[]; export declare function validateAddress(address: string): void; export declare function validateBytes4(bytes: string): void; export declare function validateBytes32(bytes32: string): void; export declare function removeZerosLeft(hex: string): string; export declare function shortenedHex(num: number): string;