Telos

sendtelostkn

Contract

The data structures defined by this contract.

  • Action parameter in addwhitelist

    {
      "name": "addwhitelist",
      "base": "",
      "fields": [
        {
          "name": "contract",
          "type": "name"
        },
        {
          "name": "minimum_coupon",
          "type": "asset"
        }
      ]
    }
  • Action parameter in claim

    {
      "name": "claim",
      "base": "",
      "fields": [
        {
          "name": "account",
          "type": "name"
        },
        {
          "name": "secret",
          "type": "string"
        }
      ]
    }
  • Table row type of coupons

    {
      "name": "coupon",
      "base": "",
      "fields": [
        {
          "name": "key",
          "type": "uint64"
        },
        {
          "name": "coupon_id",
          "type": "uint64"
        },
        {
          "name": "timestamp",
          "type": "time_point_sec"
        },
        {
          "name": "expires",
          "type": "time_point_sec"
        },
        {
          "name": "from",
          "type": "name"
        },
        {
          "name": "contract",
          "type": "name"
        },
        {
          "name": "quantity",
          "type": "asset"
        },
        {
          "name": "hash",
          "type": "checksum256"
        },
        {
          "name": "block_num",
          "type": "uint64"
        },
        {
          "name": "trxid",
          "type": "checksum256"
        }
      ]
    }
  • Action parameter in expire

    {
      "name": "expire",
      "base": "",
      "fields": [
        {
          "name": "count",
          "type": "uint16"
        }
      ]
    }
  • Action parameter in removewlist

    {
      "name": "removewlist",
      "base": "",
      "fields": [
        {
          "name": "symbol",
          "type": "symbol_code"
        }
      ]
    }
  • Table row type of settings

    {
      "name": "setting",
      "base": "",
      "fields": [
        {
          "name": "fee",
          "type": "uint64"
        },
        {
          "name": "coupon_num",
          "type": "uint64"
        }
      ]
    }
  • Action parameter in setwhitelist

    {
      "name": "setwhitelist",
      "base": "",
      "fields": [
        {
          "name": "symbol",
          "type": "symbol_code"
        },
        {
          "name": "enabled",
          "type": "bool"
        }
      ]
    }
  • Table row type of whitelists

    {
      "name": "whitelist",
      "base": "",
      "fields": [
        {
          "name": "contract",
          "type": "name"
        },
        {
          "name": "minimum_coupon",
          "type": "asset"
        },
        {
          "name": "enabled",
          "type": "bool"
        }
      ]
    }