.claude/skills/permit2-types/SKILL.md
TypeScript type references for Permit2 SDK. Use when writing TypeScript code with Permit2.
npx skillsauth add cyotee/crane permit2-typesInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
Reference types from @uniswap/permit2-sdk.
import { SignatureTransfer } from '@uniswap/permit2-sdk'
interface PermitTransferFrom {
permitted: {
token: string
amount: bigint
}
spender: string
nonce: bigint
deadline: bigint
}
interface Witness {
witness: any
witnessTypeName: string
witnessType: Record<string, TypedDataField[]>
}
interface PermitTransferFromData {
domain: {
name: 'Permit2'
chainId: number
verifyingContract: string
}
types: Record<string, TypedDataField[]>
values: PermitTransferFrom
}
import { AllowanceTransfer } from '@uniswap/permit2-sdk'
interface PermitSingle {
details: {
token: string
amount: bigint
expiration: bigint
nonce: bigint
}
spender: string
sigDeadline: bigint
}
import { PERMIT2_ADDRESS, MaxUint48, MaxUint160, MaxUint256 } from '@uniswap/permit2-sdk'
// Canonical address (same on all chains)
PERMIT2_ADDRESS // '0x000000000022D473030F116dDEE9F6B43aC78BA3'
development
Review UI code for Web Interface Guidelines compliance. Use when asked to "review my UI", "check accessibility", "audit design", "review UX", or "check my site against best practices".
documentation
Write to contracts and send transactions. Use when executing state-changing contract functions.
development
HTTP and WebSocket transports for blockchain connectivity. Use when configuring network connections.
data-ai
Read contract data with type-safe ABI. Use when querying smart contract view/pure functions.