Vaulta

battlebricks

Contract

  • Struct base type of configs

    Struct property of upsertcfg

    {
      "name": "struct_config",
      "base": "",
      "fields": [
        {
          "name": "config_id",
          "type": "uint32"
        },
        {
          "name": "activate",
          "type": "uint8"
        },
        {
          "name": "order",
          "type": "uint16"
        },
        {
          "name": "min",
          "type": "uint16"
        },
        {
          "name": "max",
          "type": "uint16"
        },
        {
          "name": "sponsor",
          "type": "asset"
        },
        {
          "name": "cost",
          "type": "asset"
        },
        {
          "name": "entry_limit",
          "type": "uint8"
        },
        {
          "name": "retry_limit",
          "type": "uint8"
        },
        {
          "name": "retry_cost",
          "type": "asset"
        },
        {
          "name": "regist_at",
          "type": "uint32"
        },
        {
          "name": "lang",
          "type": "struct_lang[]"
        },
        {
          "name": "rank_cut",
          "type": "uint16"
        },
        {
          "name": "map_min",
          "type": "uint16"
        },
        {
          "name": "map_max",
          "type": "uint16"
        },
        {
          "name": "period",
          "type": "uint32"
        },
        {
          "name": "rt_win",
          "type": "uint16"
        },
        {
          "name": "rt_care",
          "type": "uint16"
        },
        {
          "name": "rt_wf_att",
          "type": "uint16"
        },
        {
          "name": "rt_wf_prz",
          "type": "uint16"
        },
        {
          "name": "rt_wr_att",
          "type": "uint16"
        },
        {
          "name": "rt_wr_prz",
          "type": "uint16"
        },
        {
          "name": "rt_lf_att",
          "type": "uint16"
        },
        {
          "name": "rt_lr_att",
          "type": "uint16"
        },
        {
          "name": "active_pt",
          "type": "uint16"
        }
      ]
    }