Sign In

@azeth/common

Package Overview
Dependencies
Maintainers
1
Versions
25
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@azeth/common

Shared types, constants, ABIs, and errors for the Azeth trust infrastructure

latest
Source
npmnpm
Version
0.2.24
Version published
Maintainers
1
Created
Source

@azeth/common

Shared types, constants, ABIs, and errors for the Azeth trust infrastructure.

Installation

npm install @azeth/common
# or
pnpm add @azeth/common

What's Included

Types

  • Account -- ParticipantIdentity, Guardrails, AzethContractAddresses
  • Payments -- X402PaymentRequirement, PaymentAgreement
  • Reputation -- OnChainOpinion, WeightedReputation, PaymentDelta
  • Registry -- RegistryEntry, DiscoveryParams, CatalogEntry
  • Messaging -- XMTPMessage, StructuredMessage, MessageRouterOptions
  • Balances -- TokenBalanceUSD, AccountBalanceUSD, AggregatedBalanceResult

Constants

  • AZETH_CONTRACTS -- deployed contract addresses per chain
  • ERC8004_REGISTRY / ERC8004_REPUTATION_REGISTRY -- external registry addresses
  • ENTRYPOINT_V07 -- ERC-4337 EntryPoint v0.7
  • SUPPORTED_CHAINS -- Base, Base Sepolia, Ethereum, Ethereum Sepolia
  • TOKENS -- USDC and WETH addresses per chain
  • getBundlerUrl(), getPaymasterUrl() -- chain-aware URL helpers

ABIs

import { AzethFactoryABI, GuardianModuleABI } from '@azeth/common/abis';

Errors

import { AzethError } from '@azeth/common';

try {
  // ...
} catch (err) {
  if (err instanceof AzethError) {
    console.error(err.code, err.message);
    // codes: BUDGET_EXCEEDED, GUARDIAN_REJECTED, INSUFFICIENT_BALANCE, ...
  }
}

Validation Utilities

import { validateAddress, validateChainName, isValidUrl } from '@azeth/common';

validateAddress('0x...');      // throws AzethError on invalid
validateChainName('base');     // resolves aliases like 'base-sepolia' -> 'baseSepolia'

License

MIT

Keywords

azeth

FAQs

Package last updated on 02 Jul 2026

Did you know?

Socket

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.

Install

Related posts