vegaprotocol / vega-monitoring

MVP to store more data for metrics
MIT License
2 stars 1 forks source link

set of fixes and improvements for monitoring #21

Closed daniel1302 closed 7 months ago

daniel1302 commented 7 months ago

Changes:

On chain monitoring

There is a new structure that defines stuff We want to monitor.

  [[Monitoring.EthereumChain]]
    Period = "1m15s"
    ChainId = 100
    NetworkId = 100
    RPCEndpoint = "https://rpc.ankr.com/gnosis/XXXXXXX"

    Accounts = [
      "0xda81a723E748C782284Bbb06AB74e3D0A9dBBC77",
      "0xd653d30e3e9aec42f98f2eb43d1a0ba40cc71e7a",
      "0xd653d30e3e9aec42f98f2eb43d1a0ba40cc71e7a"
    ]

    [[Monitoring.EthereumChain.Calls]]
      Address = "0x719abd606155442c21b7d561426d42bd0e40a776"
      Abi = "[{\n    \"inputs\": [\n      {\n        \"internalType\": \"bytes32\",\n        \"name\": \"id\",\n        \"type\": \"bytes32\"\n      }\n    ],\n    \"name\": \"getPrice\",\n    \"outputs\": [\n      {\n        \"internalType\": \"int256\",\n        \"name\": \"\",\n        \"type\": \"int256\"\n      }\n    ],\n    \"stateMutability\": \"view\",\n    \"type\": \"function\"\n    }]"
      Method = "getPrice"
      Args = [
        "0xc63e2a7f37a04e5e614c07238bedb25dcc38927fba8fe890597a593c0b2fa4ad"
      ]
      OutputTransform = "float_price:18"