Jungle 4 (Testnet)

todoapp12345

合约

此合约定义的数据结构。

  • add中的操作参数

    {
      "name": "add",
      "base": "",
      "fields": [
        {
          "name": "author",
          "type": "name"
        },
        {
          "name": "description",
          "type": "string"
        }
      ]
    }
  • erase中的操作参数

    {
      "name": "erase",
      "base": "",
      "fields": [
        {
          "name": "author",
          "type": "name"
        },
        {
          "name": "id",
          "type": "uint64"
        }
      ]
    }
  • eraseall中的操作参数

    {
      "name": "eraseall",
      "base": "",
      "fields": [
        {
          "name": "author",
          "type": "name"
        }
      ]
    }
  • setcomplete中的操作参数

    {
      "name": "setcomplete",
      "base": "",
      "fields": [
        {
          "name": "author",
          "type": "name"
        },
        {
          "name": "id",
          "type": "uint64"
        },
        {
          "name": "complete",
          "type": "bool"
        }
      ]
    }
  • todos 的表格行类型

    add 的操作返回类型

    {
      "name": "todo_row",
      "base": "",
      "fields": [
        {
          "name": "id",
          "type": "uint64"
        },
        {
          "name": "author",
          "type": "name"
        },
        {
          "name": "timestamp",
          "type": "time_point"
        },
        {
          "name": "description",
          "type": "string"
        },
        {
          "name": "completed",
          "type": "uint64"
        }
      ]
    }