
Security News
White House Authorizes Private Companies to Conduct Offensive Cyber Operations
A new federal program will let vetted U.S. cybersecurity firms help investigate and disrupt foreign cybercrime groups under government direction.
@hashlock-tech/shared-types
Advanced tools
Shared TypeScript types, HTLC contract addresses + ABIs, and theme tokens for Hashlock Markets
TypeScript types, HTLC contract addresses + ABIs, and theme tokens shared across the Hashlock Markets ecosystem.
Consumers:
Hashlock-Tech/cayman-hashlock — backend + web frontendHashlock-Tech/hashlock-wallet — self-custodial mobile walletHashlock-Tech/hashlock-mcp — MCP server for AI agentsThe wallet is a separate repository from the backend (different release cycle, App Store signing, mobile-specific tooling) but it has to agree with the backend on:
TradeStatus, HTLCStatus, RFQStatus, QuoteStatus, etc.)Hosting this in one published package means a contract change is a versioned event everyone sees, instead of a silent drift between three repos.
| Surface | Backend file | This package |
|---|---|---|
| Domain enums | cayman-hashlock/backend/shared/src/types/trading.ts | src/domain.ts |
| HTLC contract addresses | cayman-hashlock/backend/shared/src/blockchain/registry.ts | src/contracts/index.ts |
| Theme tokens | cayman-hashlock/web/tailwind.config.ts | src/theme/index.ts |
When the backend changes, bump this package's patch version and republish. The CI in cayman-hashlock enforces that enum string values match.
pnpm add @hashlock-tech/shared-types
import { TradeStatus, HTLCStatus, ChainType, CHAIN_IDS } from '@hashlock-tech/shared-types';
import { HTLC_CONTRACTS, PLATFORM_FEE_BPS } from '@hashlock-tech/shared-types/contracts';
import { colors, fonts, space } from '@hashlock-tech/shared-types/theme';
const sepoliaHtlc = HTLC_CONTRACTS[CHAIN_IDS.ETHEREUM_SEPOLIA]?.etherFee;
Maintainers only:
pnpm version patch # or minor / major
git tag v$(jq -r .version package.json)
git push --tags
pnpm publish --access public
The git tag MUST exist before pnpm publish so gitHead in the published package.json resolves to the right commit (memory: feedback_publish_tag_before_npm.md).
MIT — see LICENSE.
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.

Security News
A new federal program will let vetted U.S. cybersecurity firms help investigate and disrupt foreign cybercrime groups under government direction.

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.