Telos

dclimateiot1

Contract

The data structures defined by this contract.

  • Action parameter in addrewardtype

    {
      "name": "addrewardtype",
      "base": "",
      "fields": [
        {
          "name": "amount_per_hour",
          "type": "float32"
        },
        {
          "name": "token_contract",
          "type": "name"
        },
        {
          "name": "symbol_letters",
          "type": "string"
        },
        {
          "name": "precision",
          "type": "uint8"
        },
        {
          "name": "usd_denominated",
          "type": "bool"
        }
      ]
    }
  • Action parameter in clearall

    {
      "name": "clearall",
      "base": "",
      "fields": []
    }
  • Table row type of observations

    {
      "name": "observations",
      "base": "",
      "fields": [
        {
          "name": "unix_time",
          "type": "uint64"
        },
        {
          "name": "temperature_c",
          "type": "float32"
        },
        {
          "name": "humidity_percent",
          "type": "float32"
        },
        {
          "name": "flags",
          "type": "uint8"
        }
      ]
    }
  • Table row type of rewards

    {
      "name": "rewards",
      "base": "",
      "fields": [
        {
          "name": "token_contract",
          "type": "name"
        },
        {
          "name": "usd_denominated",
          "type": "bool"
        },
        {
          "name": "amount_per_hour",
          "type": "float32"
        },
        {
          "name": "symbol_letters",
          "type": "string"
        },
        {
          "name": "precision",
          "type": "uint8"
        }
      ]
    }
  • Action parameter in setstation

    {
      "name": "setstation",
      "base": "",
      "fields": [
        {
          "name": "latitude",
          "type": "float32"
        },
        {
          "name": "longitude",
          "type": "float32"
        },
        {
          "name": "elevation",
          "type": "float32"
        },
        {
          "name": "missing",
          "type": "float32"
        },
        {
          "name": "seconds_to_reward",
          "type": "uint16"
        },
        {
          "name": "owner",
          "type": "name"
        }
      ]
    }
  • Table row type of station

    {
      "name": "station",
      "base": "",
      "fields": [
        {
          "name": "id",
          "type": "name"
        },
        {
          "name": "owner",
          "type": "name"
        },
        {
          "name": "latitude",
          "type": "float32"
        },
        {
          "name": "longitude",
          "type": "float32"
        },
        {
          "name": "elevation",
          "type": "float32"
        },
        {
          "name": "missing",
          "type": "float32"
        },
        {
          "name": "last_reward",
          "type": "uint64"
        },
        {
          "name": "seconds_to_reward",
          "type": "uint16"
        }
      ]
    }
  • Action parameter in updateobs

    {
      "name": "updateobs",
      "base": "",
      "fields": [
        {
          "name": "unix_time_s",
          "type": "uint64"
        },
        {
          "name": "temperature_c",
          "type": "float32"
        },
        {
          "name": "humidity_percent",
          "type": "float32"
        },
        {
          "name": "flags",
          "type": "uint8"
        }
      ]
    }