naftiko: 1.0.0-alpha2 info: label: Chainlens — Contract-Events-Controller description: 'Chainlens — Contract-Events-Controller. 1 operations. Lead operation: Chainlens Retrieve all events for this contract.. Self-contained Naftiko capability covering one Chainlens business surface.' tags: - Chainlens - Contract-Events-Controller created: '2026-05-19' modified: '2026-05-19' binds: - namespace: env keys: CHAINLENS_API_KEY: CHAINLENS_API_KEY capability: consumes: - type: http namespace: chainlens-contract-events-controller baseUri: '' description: Chainlens — Contract-Events-Controller business capability. Self-contained, no shared references. resources: - name: contracts-addressHash-events path: /contracts/{addressHash}/events operations: - name: getcontractevents method: GET description: Chainlens Retrieve all events for this contract. outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: addressHash in: path type: string description: The address hash identifying the contract. required: true - name: query in: query type: string required: true exposes: - type: rest namespace: chainlens-contract-events-controller-rest port: 8080 description: REST adapter for Chainlens — Contract-Events-Controller. One Spectral-compliant resource per consumed operation, prefixed with /v1. resources: - path: /v1/contracts/{addresshash}/events name: contracts-addresshash-events description: REST surface for contracts-addressHash-events. operations: - method: GET name: getcontractevents description: Chainlens Retrieve all events for this contract. call: chainlens-contract-events-controller.getcontractevents with: addressHash: rest.addressHash query: rest.query outputParameters: - type: object mapping: $. - type: mcp namespace: chainlens-contract-events-controller-mcp port: 9090 transport: http description: MCP adapter for Chainlens — Contract-Events-Controller. One tool per consumed operation, routed inline through this capability's consumes block. tools: - name: chainlens-retrieve-all-events-this description: Chainlens Retrieve all events for this contract. hints: readOnly: true destructive: false idempotent: true call: chainlens-contract-events-controller.getcontractevents with: addressHash: tools.addressHash query: tools.query outputParameters: - type: object mapping: $.