
Research
/Security News
737 Chrome VPN Extensions Linked to Brand Impersonation and Browser Traffic Redirection
The campaign amassed more than 75,000 installs by targeting Russian-speaking users seeking access to blocked services.
@tasknet-protocol/shared
Advanced tools
Shared constants, types, and utilities for the TaskNet Protocol.
npm install @tasknet-protocol/shared
# or
pnpm add @tasknet-protocol/shared
import {
STATUS,
VERIFICATION,
PRIORITY,
PROTOCOL,
SUI_DECIMALS,
} from "@tasknet-protocol/shared";
// Task status codes
STATUS.POSTED; // 0 - Task created, awaiting worker
STATUS.RESERVED; // 1 - Worker reserved the task
STATUS.ACCEPTED; // 2 - Worker accepted the task
STATUS.SUBMITTED; // 3 - Worker submitted output
STATUS.VERIFIED; // 4 - Output verified
STATUS.REJECTED; // 5 - Output rejected
STATUS.SETTLED; // 6 - Payment settled
STATUS.CANCELLED; // 7 - Task cancelled
STATUS.EXPIRED; // 8 - Task expired
// Verification types
VERIFICATION.DETERMINISTIC; // 0 - Hash-based verification
VERIFICATION.REQUESTER_CONFIRM; // 1 - Requester confirms
VERIFICATION.TIME_BOUND; // 2 - Auto-approve after timeout
// Priority tiers
PRIORITY.STANDARD; // 0 - Normal priority
PRIORITY.PRIORITY; // 1 - Higher priority
PRIORITY.URGENT; // 2 - Highest priority
// Protocol constants
PROTOCOL.FEE_BPS; // 200 (2% platform fee)
import {
SUI_DECIMALS,
MIST_PER_SUI,
formatSui,
parseSui,
} from "@tasknet-protocol/shared";
// Constants
SUI_DECIMALS; // 9
MIST_PER_SUI; // 1_000_000_000n
// Format MIST to human-readable SUI
formatSui(1_500_000_000n); // "1.50 SUI"
formatSui(500_000n); // "0.00 SUI"
// Parse SUI string to MIST
parseSui("1.5"); // 1_500_000_000n
parseSui("0.001"); // 1_000_000n
import type {
Agent,
AgentStats,
Skill,
Task,
TaskEvent,
Badge,
TaskStatus,
VerificationType,
PriorityTier,
PaginatedResponse,
} from "@tasknet-protocol/shared";
All exports from this package are also available in @tasknet-protocol/sdk:
import { STATUS, formatSui } from "@tasknet-protocol/sdk";
MIT
FAQs
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Research
/Security News
The campaign amassed more than 75,000 installs by targeting Russian-speaking users seeking access to blocked services.

Company News
Open source maintainers are under more pressure than ever. We're raising our open source program from the Team plan to the Business plan, free.

Security News
The supply chain control that delays freshly published gems now covers lockfile generation and gem vendoring in Ruby projects.