Jungle 4 (Testnet)

blog.gm

Contract

The data structures defined by this contract.

  • Table row type of blogcontent

    {
      "name": "blog_content",
      "base": "",
      "fields": [
        {
          "name": "title",
          "type": "string"
        },
        {
          "name": "body",
          "type": "string"
        },
        {
          "name": "excerpt",
          "type": "string"
        },
        {
          "name": "slug",
          "type": "string"
        },
        {
          "name": "image",
          "type": "string"
        },
        {
          "name": "tags",
          "type": "string[]"
        },
        {
          "name": "categories",
          "type": "string[]"
        }
      ]
    }
  • Table row type of config

    {
      "name": "config_row",
      "base": "",
      "fields": [
        {
          "name": "max_title_length",
          "type": "uint32"
        },
        {
          "name": "max_body_length",
          "type": "uint32"
        },
        {
          "name": "max_excerpt_length",
          "type": "uint32"
        },
        {
          "name": "max_comment_length",
          "type": "uint32"
        },
        {
          "name": "max_slug_length",
          "type": "uint32"
        },
        {
          "name": "max_image_length",
          "type": "uint32"
        },
        {
          "name": "max_tags",
          "type": "uint8"
        },
        {
          "name": "max_categories",
          "type": "uint8"
        },
        {
          "name": "max_tag_length",
          "type": "uint32"
        }
      ]
    }
  • Action parameter in reset

    {
      "name": "reset",
      "base": "",
      "fields": []
    }
  • Action parameter in setconfig

    {
      "name": "setconfig",
      "base": "",
      "fields": [
        {
          "name": "channel",
          "type": "name"
        },
        {
          "name": "max_title_length",
          "type": "uint32"
        },
        {
          "name": "max_body_length",
          "type": "uint32"
        },
        {
          "name": "max_excerpt_length",
          "type": "uint32"
        },
        {
          "name": "max_comment_length",
          "type": "uint32"
        },
        {
          "name": "max_slug_length",
          "type": "uint32"
        },
        {
          "name": "max_image_length",
          "type": "uint32"
        },
        {
          "name": "max_tags",
          "type": "uint8"
        },
        {
          "name": "max_categories",
          "type": "uint8"
        },
        {
          "name": "max_tag_length",
          "type": "uint32"
        }
      ]
    }