Skip to content

scamsniffer/EIP712-Readability

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

EIP712-Readability

The SDK can parse structured data from EIP-712 messages, which ensures that users understand information related to asset security before signing. This includes ERC20 approval, NFT listing, and other relevant details.

Install

yarn add @scamsniffer/eip712-readability

Usage

import { Security, parseRequest } from "@scamsniffer/eip712-readability";

const eip721TypedMessage = ....;
const parsedMessage = parseRequest(eip721TypedMessage);

if (parsedMessage.kind === "nft") {
  // Built-in price-based NFT Listing check
  const hasIssueMesssages = await Security.checkNFTMessages([parsedMessage.detail]);
  if (hasIssueMesssages.length) {
    console.log("Suspicious messages detected")
  }
}

Supported Protocols

Permit

  • Permit2
  • ERC20 Permit
  • Dai Permit

NFT Protocols

  • Seaport
  • Seaport-1.4
  • Blur
  • LooksRare
  • Element
  • ZeroEx-V4

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published