CtrlK
BlogDocsLog inGet started
Tessl Logo

tessl/npm-solana--web3-js

Comprehensive JavaScript SDK for building Solana blockchain applications with modern architecture and type safety

92

1.29x
Quality

Pending

Does it follow best practices?

Impact

92%

1.29x

Average score across 10 eval scenarios

SecuritybySnyk

Pending

The risk profile of this skill

Overview
Eval results
Files

criteria.jsonevals/scenario-2/

{
  "context": "This criteria evaluates how well the engineer uses @solana/web3.js package's address validation and creation functions. The focus is on proper usage of the address() function for creating addresses, isAddress() for type guard validation, and correct handling of Address types throughout the implementation.",
  "type": "weighted_checklist",
  "checklist": [
    {
      "name": "address() usage",
      "description": "Uses the address() function from @solana/web3.js to create Address types from valid strings in the createAddress() function",
      "max_score": 25
    },
    {
      "name": "isAddress() type guard",
      "description": "Uses the isAddress() function from @solana/web3.js for validating addresses in the isValidAddress() function",
      "max_score": 20
    },
    {
      "name": "Error handling",
      "description": "Properly handles errors thrown by address() when given invalid input, allowing the error to propagate in createAddress() and catching it appropriately in validateAddresses()",
      "max_score": 15
    },
    {
      "name": "Batch validation",
      "description": "Implements validateAddresses() using isAddress() or try-catch with address() to filter valid addresses from an array",
      "max_score": 20
    },
    {
      "name": "Address comparison",
      "description": "Implements areAddressesEqual() by comparing Address types, either using direct equality comparison or string conversion",
      "max_score": 10
    },
    {
      "name": "Type imports",
      "description": "Correctly imports the Address type and necessary functions (address, isAddress) from @solana/web3.js",
      "max_score": 10
    }
  ]
}

tile.json