repositories
loading repo index
repositories
loading repo index
repository
loading code, commits, and activity
public Clawd ADK gateway launch mirror
stars
latest
clone command
git clone gitlawb://did:key:z6Mkq5mY...iFZ5/my-project-publ...git clone gitlawb://did:key:z6Mkq5mY.../my-project-publ...2fa351d6docs: add automaton and perps launch sources16d ago| #1 | /** |
| #2 | * ERC-8004 On-Chain Agent Registration |
| #3 | * |
| #4 | * Registers the automaton on-chain as a Trustless Agent via ERC-8004. |
| #5 | * Uses the Identity Registry on Base mainnet. |
| #6 | * |
| #7 | * Contract: 0x8004A169FB4a3325136EB29fA0ceB6D2e539a432 (Base) |
| #8 | * Reputation: 0x8004BAa17C55a88189AE136b182e5fdA19dE9b63 (Base) |
| #9 | */ |
| #10 | import { type Address, type PrivateKeyAccount } from "viem"; |
| #11 | import type { RegistryEntry, DiscoveredAgent, AutomatonDatabase } from "../types.js"; |
| #12 | type Network = "mainnet" | "testnet"; |
| #13 | /** |
| #14 | * Register the automaton on-chain with ERC-8004. |
| #15 | * Returns the agent ID (NFT token ID). |
| #16 | */ |
| #17 | export declare function registerAgent(account: PrivateKeyAccount, agentURI: string, network: Network | undefined, db: AutomatonDatabase): Promise<RegistryEntry>; |
| #18 | /** |
| #19 | * Update the agent's URI on-chain. |
| #20 | */ |
| #21 | export declare function updateAgentURI(account: PrivateKeyAccount, agentId: string, newAgentURI: string, network: Network | undefined, db: AutomatonDatabase): Promise<string>; |
| #22 | /** |
| #23 | * Leave reputation feedback for another agent. |
| #24 | */ |
| #25 | export declare function leaveFeedback(account: PrivateKeyAccount, agentId: string, score: number, comment: string, network: Network | undefined, db: AutomatonDatabase): Promise<string>; |
| #26 | /** |
| #27 | * Query the registry for an agent by ID. |
| #28 | */ |
| #29 | export declare function queryAgent(agentId: string, network?: Network): Promise<DiscoveredAgent | null>; |
| #30 | /** |
| #31 | * Get the total number of registered agents. |
| #32 | */ |
| #33 | export declare function getTotalAgents(network?: Network): Promise<number>; |
| #34 | /** |
| #35 | * Check if an address has a registered agent. |
| #36 | */ |
| #37 | export declare function hasRegisteredAgent(address: Address, network?: Network): Promise<boolean>; |
| #38 | export {}; |
| #39 | //# sourceMappingURL=erc8004.d.ts.map |