@sun-protocol/permit2-sdk
v1.0.0
Published
Permit2 SDK for TRON — TypeScript library for Permit2 allowance transfers
Readme
Permit2 SDK
A TypeScript SDK for Permit2 on TRON and EVM-compatible chains.
Installation
npm install @sun-frontend/permit2-sdkConfiguration
For private GitLab registry, create a .npmrc file in your project root:
@sun-frontend:registry=https://g.teches.link/api/v4/projects/465/packages/npm/
//g.teches.link/api/v4/projects/465/packages/npm/:_authToken=${YOUR_GITLAB_TOKEN}Usage
import { AllowanceTransfer } from '@sun-frontend/permit2-sdk';
// Your code hereDevelopment
# Install dependencies
npm install
# Build the SDK
npm run build
# Watch mode for development
npm run dev
# Run tests
npm test
# Lint code
npm run lint
# Format code
npm run formatPublishing
# Build and publish to GitLab registry
npm run build
npm publish