Skip to content
Back to skills

Permit2 Types

ASecurity

TypeScript type references for Permit2 SDK. Use when writing TypeScript code with Permit2.

  • 9 stars
  • 0 votes
  • 0 copies
  • 1 view
  • Added September 10, 2026
developmenttypescript

Security analysis

A100/100

Scanned September 10, 2026

npx -y skills add cyotee/indexedex --skill permit2-types --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Permit2 Types?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Permit2 Types
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/cyotee-permit2-types/badge)](https://www.skillsdirectory.com/skills/cyotee-permit2-types)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: permit2-types
description: TypeScript type references for Permit2 SDK. Use when writing TypeScript code with Permit2.
---

# Permit2 TypeScript Types

Reference types from `@uniswap/permit2-sdk`.

## SignatureTransfer Types

```typescript
import { SignatureTransfer } from '@uniswap/permit2-sdk'
```

### PermitTransferFrom

```typescript
interface PermitTransferFrom {
  permitted: {
    token: string
    amount: bigint
  }
  spender: string
  nonce: bigint
  deadline: bigint
}
```

### Witness

```typescript
interface Witness {
  witness: any
  witnessTypeName: string
  witnessType: Record<string, TypedDataField[]>
}
```

### PermitTransferFromData

```typescript
interface PermitTransferFromData {
  domain: {
    name: 'Permit2'
    chainId: number
    verifyingContract: string
  }
  types: Record<string, TypedDataField[]>
  values: PermitTransferFrom
}
```

## AllowanceTransfer Types

```typescript
import { AllowanceTransfer } from '@uniswap/permit2-sdk'
```

### PermitSingle

```typescript
interface PermitSingle {
  details: {
    token: string
    amount: bigint
    expiration: bigint
    nonce: bigint
  }
  spender: string
  sigDeadline: bigint
}
```

## Constants

```typescript
import { PERMIT2_ADDRESS, MaxUint48, MaxUint160, MaxUint256 } from '@uniswap/permit2-sdk'

// Canonical address (same on all chains)
PERMIT2_ADDRESS // '0x000000000022D473030F116dDEE9F6B43aC78BA3'
```

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…