Skip to content

v2.2.0

Compare
Choose a tag to compare
@martiliones martiliones released this 17 Dec 19:51
· 4 commits to master since this release
838527b

Added

  • Export validator utils:

    function isPassphrase(passphrase: unknown): passphrase is string;
    function isAdmAddress(address: unknown): address is AdamantAddress;
    function isAdmPublicKey(publicKey: unknown): publicKey is string;
    function isAdmVoteForPublicKey(publicKey: unknown): publicKey is string;
    function isAdmVoteForAddress(address: unknown): boolean;
    function isAdmVoteForDelegateName(delegateName: unknown): delegateName is string;
    function validateMessage(
      message: string,
      messageType: MessageType = MessageType.Chat
    ): { success: false, error: string } | { success: true };
    function isDelegateName(name: unknown): name is string;
    function admToSats(amount: number): number;