{"id":51349765,"url":"https://github.com/azeth-protocol/common","last_synced_at":"2026-07-02T15:04:56.485Z","repository":{"id":342638599,"uuid":"1173673092","full_name":"azeth-protocol/common","owner":"azeth-protocol","description":"Shared types, constants, ABIs, and errors for Azeth — trust infrastructure for the machine economy","archived":false,"fork":false,"pushed_at":"2026-06-03T11:13:54.000Z","size":15229,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-06-03T12:09:15.950Z","etag":null,"topics":["account-abstraction","ai-agents","base","blockchain","erc-4337","erc-8004","ethereum","machine-economy","payments","smart-accounts","trust-registry","typescript","usdc","viem","x402"],"latest_commit_sha":null,"homepage":"https://azeth.ai","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/azeth-protocol.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2026-03-05T16:16:06.000Z","updated_at":"2026-06-03T11:13:58.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/azeth-protocol/common","commit_stats":null,"previous_names":["azeth-protocol/common"],"tags_count":9,"template":false,"template_full_name":null,"purl":"pkg:github/azeth-protocol/common","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/azeth-protocol%2Fcommon","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/azeth-protocol%2Fcommon/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/azeth-protocol%2Fcommon/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/azeth-protocol%2Fcommon/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/azeth-protocol","download_url":"https://codeload.github.com/azeth-protocol/common/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/azeth-protocol%2Fcommon/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":35051962,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-07-02T02:00:06.368Z","response_time":173,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["account-abstraction","ai-agents","base","blockchain","erc-4337","erc-8004","ethereum","machine-economy","payments","smart-accounts","trust-registry","typescript","usdc","viem","x402"],"created_at":"2026-07-02T15:04:55.665Z","updated_at":"2026-07-02T15:04:56.469Z","avatar_url":"https://github.com/azeth-protocol.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# @azeth/common\n\nShared types, constants, ABIs, and errors for the [Azeth](https://azeth.ai) trust infrastructure.\n\n## Installation\n\n```bash\nnpm install @azeth/common\n# or\npnpm add @azeth/common\n```\n\n## What's Included\n\n### Types\n\n- **Account** -- `ParticipantIdentity`, `Guardrails`, `AzethContractAddresses`\n- **Payments** -- `X402PaymentRequirement`, `PaymentAgreement`\n- **Reputation** -- `OnChainOpinion`, `WeightedReputation`, `PaymentDelta`\n- **Registry** -- `RegistryEntry`, `DiscoveryParams`, `CatalogEntry`\n- **Messaging** -- `XMTPMessage`, `StructuredMessage`, `MessageRouterOptions`\n- **Balances** -- `TokenBalanceUSD`, `AccountBalanceUSD`, `AggregatedBalanceResult`\n\n### Constants\n\n- `AZETH_CONTRACTS` -- deployed contract addresses per chain\n- `ERC8004_REGISTRY` / `ERC8004_REPUTATION_REGISTRY` -- external registry addresses\n- `ENTRYPOINT_V07` -- ERC-4337 EntryPoint v0.7\n- `SUPPORTED_CHAINS` -- Base, Base Sepolia, Ethereum, Ethereum Sepolia\n- `TOKENS` -- USDC and WETH addresses per chain\n- `getBundlerUrl()`, `getPaymasterUrl()` -- chain-aware URL helpers\n\n### ABIs\n\n```typescript\nimport { AzethFactoryABI, GuardianModuleABI } from '@azeth/common/abis';\n```\n\n### Errors\n\n```typescript\nimport { AzethError } from '@azeth/common';\n\ntry {\n  // ...\n} catch (err) {\n  if (err instanceof AzethError) {\n    console.error(err.code, err.message);\n    // codes: BUDGET_EXCEEDED, GUARDIAN_REJECTED, INSUFFICIENT_BALANCE, ...\n  }\n}\n```\n\n### Validation Utilities\n\n```typescript\nimport { validateAddress, validateChainName, isValidUrl } from '@azeth/common';\n\nvalidateAddress('0x...');      // throws AzethError on invalid\nvalidateChainName('base');     // resolves aliases like 'base-sepolia' -\u003e 'baseSepolia'\n```\n\n## License\n\nMIT\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fazeth-protocol%2Fcommon","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fazeth-protocol%2Fcommon","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fazeth-protocol%2Fcommon/lists"}