WAX

ads.waxdao

合约

此合约定义的数据结构。

  • 的结构体属性 ad_slots

    {
      "name": "AD_SLOT_DATA",
      "base": "",
      "fields": [
        {
          "name": "owner",
          "type": "name"
        },
        {
          "name": "is_available",
          "type": "uint8"
        },
        {
          "name": "ipfs_hash",
          "type": "string"
        },
        {
          "name": "url",
          "type": "string"
        }
      ]
    }
  • adslots 的表格行类型

    {
      "name": "ad_slots",
      "base": "",
      "fields": [
        {
          "name": "timestamp",
          "type": "uint64"
        },
        {
          "name": "ad_slot_a",
          "type": "AD_SLOT_DATA"
        },
        {
          "name": "ad_slot_b",
          "type": "AD_SLOT_DATA"
        },
        {
          "name": "ad_slot_c",
          "type": "AD_SLOT_DATA"
        }
      ]
    }
  • addnewslots中的操作参数

    {
      "name": "addnewslots",
      "base": "",
      "fields": [
        {
          "name": "user",
          "type": "name"
        },
        {
          "name": "quantity",
          "type": "uint64"
        }
      ]
    }
  • assertnewad中的操作参数

    {
      "name": "assertnewad",
      "base": "",
      "fields": [
        {
          "name": "wallet",
          "type": "name"
        },
        {
          "name": "timestamps",
          "type": "uint64[]"
        },
        {
          "name": "ipfs_hash",
          "type": "string"
        },
        {
          "name": "url",
          "type": "string"
        }
      ]
    }
  • config 的表格行类型

    {
      "name": "config",
      "base": "",
      "fields": [
        {
          "name": "ID",
          "type": "uint64"
        },
        {
          "name": "status",
          "type": "uint8"
        },
        {
          "name": "initial_timestamp",
          "type": "uint64"
        },
        {
          "name": "next_timestamp",
          "type": "uint64"
        },
        {
          "name": "seconds_per_ad",
          "type": "uint64"
        },
        {
          "name": "orders_counter",
          "type": "uint64"
        }
      ]
    }
  • initadslots中的操作参数

    {
      "name": "initadslots",
      "base": "",
      "fields": [
        {
          "name": "user",
          "type": "name"
        }
      ]
    }
  • initconfig中的操作参数

    {
      "name": "initconfig",
      "base": "",
      "fields": [
        {
          "name": "user",
          "type": "name"
        }
      ]
    }
  • logorder中的操作参数

    {
      "name": "logorder",
      "base": "",
      "fields": [
        {
          "name": "wallet",
          "type": "name"
        },
        {
          "name": "timestamps",
          "type": "uint64[]"
        },
        {
          "name": "amount_paid",
          "type": "asset"
        }
      ]
    }
  • orders 的表格行类型

    {
      "name": "pending_orders",
      "base": "",
      "fields": [
        {
          "name": "wallet",
          "type": "name"
        },
        {
          "name": "timestamps",
          "type": "uint64[]"
        },
        {
          "name": "ipfs_hash",
          "type": "string"
        },
        {
          "name": "url",
          "type": "string"
        }
      ]
    }
  • remslots中的操作参数

    {
      "name": "remslots",
      "base": "",
      "fields": [
        {
          "name": "user",
          "type": "name"
        },
        {
          "name": "quantity",
          "type": "uint64"
        }
      ]
    }