WAX

ptpxy.worlds

合约

此合约定义的数据结构。

  • activate中的操作参数

    {
      "name": "activate",
      "base": "",
      "fields": [
        {
          "name": "active",
          "type": "bool"
        },
        {
          "name": "points_manager",
          "type": "name"
        }
      ]
    }
  • addbudget中的操作参数

    {
      "name": "addbudget",
      "base": "",
      "fields": [
        {
          "name": "allocator",
          "type": "name"
        },
        {
          "name": "points_manager",
          "type": "name"
        },
        {
          "name": "budget",
          "type": "uint64"
        }
      ]
    }
  • addpoints中的操作参数

    {
      "name": "addpoints",
      "base": "",
      "fields": [
        {
          "name": "points_manager",
          "type": "name"
        },
        {
          "name": "user",
          "type": "name"
        },
        {
          "name": "points",
          "type": "uint32"
        }
      ]
    }
  • allocations 的表格行类型

    {
      "name": "allocations",
      "base": "",
      "fields": [
        {
          "name": "account",
          "type": "name"
        },
        {
          "name": "allocated",
          "type": "float64"
        }
      ]
    }
  • allocators 的表格行类型

    {
      "name": "allocator",
      "base": "",
      "fields": [
        {
          "name": "allocator",
          "type": "name"
        },
        {
          "name": "budget",
          "type": "float64"
        },
        {
          "name": "allocated",
          "type": "float64"
        }
      ]
    }
  • exitdebug中的操作参数

    {
      "name": "exitdebug",
      "base": "",
      "fields": [
        {
          "name": "points_manager",
          "type": "name"
        }
      ]
    }
  • globals 的表格行类型

    {
      "name": "globals",
      "base": "",
      "fields": [
        {
          "name": "active",
          "type": "bool"
        },
        {
          "name": "debug_mode",
          "type": "bool"
        },
        {
          "name": "multiplier",
          "type": "float32"
        },
        {
          "name": "batchProcess",
          "type": "bool"
        },
        {
          "name": "running_total",
          "type": "uint64"
        },
        {
          "name": "period_total",
          "type": "uint64"
        },
        {
          "name": "period_budget",
          "type": "uint64"
        },
        {
          "name": "period_end",
          "type": "time_point_sec"
        },
        {
          "name": "period_duration",
          "type": "uint32"
        }
      ]
    }
  • points 的表格行类型

    {
      "name": "points_row",
      "base": "",
      "fields": [
        {
          "name": "user",
          "type": "name"
        },
        {
          "name": "total_points",
          "type": "uint32"
        }
      ]
    }
  • pointsconfig 的表格行类型

    {
      "name": "pointsconfig",
      "base": "",
      "fields": [
        {
          "name": "active",
          "type": "bool"
        },
        {
          "name": "debug_mode",
          "type": "bool"
        },
        {
          "name": "multiplier",
          "type": "float64"
        },
        {
          "name": "batchProcess",
          "type": "bool"
        },
        {
          "name": "running_total",
          "type": "float64"
        },
        {
          "name": "period_total",
          "type": "float64"
        },
        {
          "name": "period_budget",
          "type": "float64"
        },
        {
          "name": "period_end",
          "type": "time_point_sec"
        },
        {
          "name": "period_duration",
          "type": "uint32"
        }
      ]
    }
  • processbatch中的操作参数

    {
      "name": "processbatch",
      "base": "",
      "fields": [
        {
          "name": "points_manager",
          "type": "name"
        },
        {
          "name": "batch_size",
          "type": "uint16"
        }
      ]
    }
  • setallocator中的操作参数

    {
      "name": "setallocator",
      "base": "",
      "fields": [
        {
          "name": "allocator",
          "type": "name"
        },
        {
          "name": "budget",
          "type": "float64"
        }
      ]
    }
  • setbudget中的操作参数

    {
      "name": "setbudget",
      "base": "",
      "fields": [
        {
          "name": "allocator",
          "type": "name"
        },
        {
          "name": "points_manager",
          "type": "name"
        },
        {
          "name": "budget",
          "type": "uint64"
        },
        {
          "name": "n_days",
          "type": "uint32"
        },
        {
          "name": "batch_process",
          "type": "bool"
        }
      ]
    }
  • setglobals中的操作参数

    {
      "name": "setglobals",
      "base": "",
      "fields": [
        {
          "name": "points_manager",
          "type": "name"
        },
        {
          "name": "budget",
          "type": "uint64"
        },
        {
          "name": "duration",
          "type": "uint32"
        },
        {
          "name": "start",
          "type": "time_point_sec"
        },
        {
          "name": "multiplier",
          "type": "float64"
        },
        {
          "name": "batch_process",
          "type": "bool"
        },
        {
          "name": "active",
          "type": "bool"
        },
        {
          "name": "debug_mode",
          "type": "bool"
        }
      ]
    }
  • updglobals中的操作参数

    {
      "name": "updglobals",
      "base": "",
      "fields": [
        {
          "name": "points_manager",
          "type": "name"
        },
        {
          "name": "budget",
          "type": "uint64?"
        },
        {
          "name": "duration",
          "type": "uint32?"
        },
        {
          "name": "multiplier",
          "type": "float64?"
        },
        {
          "name": "batch_process",
          "type": "bool?"
        },
        {
          "name": "active",
          "type": "bool"
        },
        {
          "name": "debug_mode",
          "type": "bool"
        }
      ]
    }
  • withdrawbudg中的操作参数

    {
      "name": "withdrawbudg",
      "base": "",
      "fields": [
        {
          "name": "allocator",
          "type": "name"
        },
        {
          "name": "points_manager",
          "type": "name"
        },
        {
          "name": "budget",
          "type": "uint64?"
        }
      ]
    }