Requirements
Points Adapters requires Deno, a modern JavaScript/TypeScript runtime.Why Deno?
Points Adapters uses Deno because:- Native TypeScript support - No build step required
- Built-in tooling - Formatter, linter, and test runner included
- Modern APIs - Uses Web standard APIs like
fetch - Secure by default - Explicit permissions for file, network, and environment access
- Fast - Optimized for performance
Installing Deno
If you don’t have Deno installed, install it using one of these methods:After installation, you may need to add Deno to your PATH. Follow the instructions shown in your terminal.
Setting Up Points Adapters
Install Dependencies
Install the required dependencies:This command reads the
deno.json configuration and installs all necessary packages including:viem- Ethereum utility functionslodash-es- Utility functionstext-case- Text formatting utilities
Project Structure
After installation, you’ll have the following structure:Configuration
Theconfig.json file allows you to customize adapter testing:
Configuration Options
addresses- Array of wallet addresses to test adapters withdisabledAdapters- Array of adapter names to skip during health checksdiscordWebhookUrl- Optional Discord webhook URL for failure notificationstimeout- Timeout in milliseconds for each adapter test (default: 30000)
Running Adapters
There are two main ways to run adapters:Test a Single Adapter
Test a specific adapter with an address:The
-A flag grants all permissions. For production use, you should specify only the required permissions like --allow-net and --allow-read.Health Check All Adapters
Test all adapters with configured addresses:- Run all enabled adapters
- Test with all configured addresses
- Report success/failure for each
- Send Discord notifications for failures (if configured)
Environment Variables
You can customize behavior using environment variables:CORS Proxy URL
Change the CORS proxy URL for development:https://c-proxy.dorime.org/
Fast Load Mode
Skip CORS testing for faster development:IDE Setup
Visual Studio Code
Install the official Deno extension:- Open VS Code
- Go to Extensions (Cmd/Ctrl + Shift + X)
- Search for “Deno”
- Install the official Deno extension by Denoland
- Open Command Palette (Cmd/Ctrl + Shift + P)
- Type “Deno: Initialize Workspace Configuration”
- Select “Yes” to enable Deno
.vscode/settings.json file:
Other IDEs
Deno has official support for:- JetBrains IDEs (IntelliJ IDEA, WebStorm) - Install the Deno plugin
- Neovim - Use
deno lspwith your LSP client - Sublime Text - Install the LSP-Deno package
Permissions
Deno uses explicit permissions for security. Here’s what Points Adapters needs:--allow-net- Network access to fetch points from protocol APIs--allow-read- Read adapter files and configuration--allow-env- Access environment variables for configuration
-A (all permissions), you can use:
Troubleshooting
”Command not found: deno”
Make sure Deno is in your PATH. After installation, you may need to:source ~/.bashrc.
Module resolution errors
If you see import errors, try clearing the Deno cache:Permission denied errors
Make sure you’re granting the necessary permissions with-A or specific flags like --allow-net.
Next Steps
Quickstart
Run your first adapter in 5 minutes
Creating Adapters
Learn how to build new protocol adapters
API Reference
Explore the complete API documentation
Testing Adapters
Test and validate your adapters