maia-core-sdk
Version:
⚒️ An SDK for building applications on top of Maia DAO Ecosytem
17 lines (16 loc) • 664 B
TypeScript
/**
* Validates that an address is a valid EIP-55 checksummed Ethereum address
*/
export declare const isValidChecksummedAddress: (address?: string | undefined) => boolean;
/**
* Validates that a hash is a valid bytes32 format (64 hex characters)
*/
export declare const isValidBytes32: (hash?: string | undefined) => boolean;
/**
* Checks if a field is an address (not a hash or other value)
*/
export declare const isAddressField: (key: string, value: string) => boolean;
/**
* Asserts that an address is checksummed with a clear error message
*/
export declare const expectChecksummedAddress: (address: string, context: string) => void;