UNPKG

@dolomite-exchange/dolomite-margin

Version:

Ethereum Smart Contracts and TypeScript library used for the DolomiteMargin trading protocol

12 lines (11 loc) 838 B
import { address, Integer } from '../types'; export declare function hexStringToBytes(hex: string): number[][]; export declare function bytesToHexString(input: (number[] | string)[]): string; export declare function toBytes(...args: (string | number | Integer | boolean)[]): number[][]; export declare function toBytesNoPadding(...args: (string | number | Integer | boolean)[]): number[][]; export declare function argToBytes(val: string | number | Integer | boolean, shouldPad?: boolean): number[]; export declare function addressToBytes32(input: address): string; export declare function hashString(input: string): string; export declare function hashBytes(input: string): string; export declare function stripHexPrefix(input: string): string; export declare function addressesAreEqual(addressOne: string, addressTwo: string): boolean;