forta-network / forta-bot-sdk

Forta Detection Bot SDK and CLI tool
MIT License
71 stars 38 forks source link

Use arrays for finding sources #324

Closed aomerk closed 1 year ago

aomerk commented 1 year ago

Example protobuf response:

{
    "errors": [],
    "findings": [
        {
            "addresses": [],
            "labels": [],
            "relatedAlerts": [],
            "metadata": {},
            "indicators": {},
            "protocol": "ethereum",
            "severity": "LOW",
            "type": "INFORMATION",
            "alertId": "FORTA-1",
            "name": "Alert with chain source",
            "description": "Test Alert ",
            "private": false,
            "uniqueKey": "ali",
            "source": {
                "transactions": [],
                "blocks": [],
                "urls": [],
                "chains": [
                    {
                        "chainId": "999"
                    }
                ],
                "alerts": [],
                "customSources": []
            }
        }
    ],
    "metadata": {
        "timestamp": "2023-08-03T06:38:11.645Z"
    },
    "status": "SUCCESS",
    "timestamp": "",
    "latencyMs": 0,
    "private": false
}