Module Overview
Module Name arena_badges
Module Reference 53aa99d16e
Verification Status Unverifiable
Age 3 days
Sender dotdotdot
More Info
Deployed in block 52,004,015
Deployed in tx 268f
Methods 15
Contracts 1
Module Build Info
Verification Status:Unverifiable
Build Image Used:N/A
Build Command Used:N/A
Archive Hash:N/A
Link to Source Code:N/A
Explanation:No embedded build information found.
Module Schema
Initialization

Parameters
{
  "admin": {
    "Enum": [
      {
        "None": []
      },
      {
        "Some": [
          "<AccountAddress>"
        ]
      }
    ]
  },
  "metadata_base": "<String>",
  "operator": {
    "Enum": [
      {
        "None": []
      },
      {
        "Some": [
          "<AccountAddress>"
        ]
      }
    ]
  }
}
Errors
None
Event
{
  "Enum": [
    {
      "Mint": [
        {
          "amount": "<String of size at most 74 containing an unsigned integer.>",
          "owner": {
            "Enum": [
              {
                "Account": [
                  "<AccountAddress>"
                ]
              },
              {
                "Contract": [
                  {
                    "index": "<UInt64>",
                    "subindex": "<UInt64>"
                  }
                ]
              }
            ]
          },
          "token_id": "<String with lowercase hex>"
        }
      ]
    },
    {
      "TokenMetadata": [
        {
          "metadata_url": {
            "hash": {
              "Enum": [
                {
                  "None": []
                },
                {
                  "Some": [
                    "<String of size 64 containing lowercase hex characters.>"
                  ]
                }
              ]
            },
            "url": "<String>"
          },
          "token_id": "<String with lowercase hex>"
        }
      ]
    },
    {
      "Awarded": [
        {
          "agent": "<String>",
          "badge": "<String with lowercase hex>",
          "owner": "<AccountAddress>",
          "round": "<UInt64>"
        }
      ]
    },
    {
      "Struck": [
        {
          "account": "<AccountAddress>",
          "at": "<Timestamp (e.g. `2000-01-01T12:00:00Z`)>",
          "reason": [
            "<UInt8>",
            "<UInt8>",
            "<UInt8>",
            "<UInt8>",
            "<UInt8>",
            "<UInt8>",
            "<UInt8>",
            "<UInt8>",
            "<UInt8>",
            "<UInt8>",
            "<UInt8>",
            "<UInt8>",
            "<UInt8>",
            "<UInt8>",
            "<UInt8>",
            "<UInt8>",
            "<UInt8>",
            "<UInt8>",
            "<UInt8>",
            "<UInt8>",
            "<UInt8>",
            "<UInt8>",
            "<UInt8>",
            "<UInt8>",
            "<UInt8>",
            "<UInt8>",
            "<UInt8>",
            "<UInt8>",
            "<UInt8>",
            "<UInt8>",
            "<UInt8>",
            "<UInt8>"
          ],
          "round": "<UInt64>"
        }
      ]
    },
    {
      "Blocked": [
        {
          "account": "<AccountAddress>",
          "reason": [
            "<UInt8>",
            "<UInt8>",
            "<UInt8>",
            "<UInt8>",
            "<UInt8>",
            "<UInt8>",
            "<UInt8>",
            "<UInt8>",
            "<UInt8>",
            "<UInt8>",
            "<UInt8>",
            "<UInt8>",
            "<UInt8>",
            "<UInt8>",
            "<UInt8>",
            "<UInt8>",
            "<UInt8>",
            "<UInt8>",
            "<UInt8>",
            "<UInt8>",
            "<UInt8>",
            "<UInt8>",
            "<UInt8>",
            "<UInt8>",
            "<UInt8>",
            "<UInt8>",
            "<UInt8>",
            "<UInt8>",
            "<UInt8>",
            "<UInt8>",
            "<UInt8>",
            "<UInt8>"
          ],
          "until": "<Timestamp (e.g. `2000-01-01T12:00:00Z`)>"
        }
      ]
    },
    {
      "OperatorSet": [
        {
          "Enum": [
            {
              "None": []
            },
            {
              "Some": [
                "<AccountAddress>"
              ]
            }
          ]
        }
      ]
    }
  ]
}
Methods

Parameters
{
  "agent": "<String>",
  "badge": "<String with lowercase hex>",
  "owner": "<AccountAddress>",
  "round": "<UInt64>"
}
Errors
{
  "Enum": [
    {
      "ParseParams": []
    },
    {
      "Unauthorized": []
    },
    {
      "OnlyAccount": []
    },
    {
      "UnknownBadge": []
    },
    {
      "AlreadyHeld": []
    },
    {
      "Soulbound": []
    },
    {
      "LogFull": []
    },
    {
      "BadExpiry": []
    }
  ]
}
Return
None

Parameters
[
  {
    "amount": "<String of size at most 74 containing an unsigned integer.>",
    "data": "<String with lowercase hex>",
    "from": {
      "Enum": [
        {
          "Account": [
            "<AccountAddress>"
          ]
        },
        {
          "Contract": [
            {
              "index": "<UInt64>",
              "subindex": "<UInt64>"
            }
          ]
        }
      ]
    },
    "to": {
      "Enum": [
        {
          "Account": [
            "<AccountAddress>"
          ]
        },
        {
          "Contract": [
            {
              "index": "<UInt64>",
              "subindex": "<UInt64>"
            },
            "<String>"
          ]
        }
      ]
    },
    "token_id": "<String with lowercase hex>"
  }
]
Errors
{
  "Enum": [
    {
      "ParseParams": []
    },
    {
      "Unauthorized": []
    },
    {
      "OnlyAccount": []
    },
    {
      "UnknownBadge": []
    },
    {
      "AlreadyHeld": []
    },
    {
      "Soulbound": []
    },
    {
      "LogFull": []
    },
    {
      "BadExpiry": []
    }
  ]
}
Return
None

Parameters
[
  {
    "address": {
      "Enum": [
        {
          "Account": [
            "<AccountAddress>"
          ]
        },
        {
          "Contract": [
            {
              "index": "<UInt64>",
              "subindex": "<UInt64>"
            }
          ]
        }
      ]
    },
    "token_id": "<String with lowercase hex>"
  }
]
Errors
{
  "Enum": [
    {
      "ParseParams": []
    },
    {
      "Unauthorized": []
    },
    {
      "OnlyAccount": []
    },
    {
      "UnknownBadge": []
    },
    {
      "AlreadyHeld": []
    },
    {
      "Soulbound": []
    },
    {
      "LogFull": []
    },
    {
      "BadExpiry": []
    }
  ]
}
Return
[
  "<String of size at most 74 containing an unsigned integer.>"
]

Parameters
[
  {
    "address": {
      "Enum": [
        {
          "Account": [
            "<AccountAddress>"
          ]
        },
        {
          "Contract": [
            {
              "index": "<UInt64>",
              "subindex": "<UInt64>"
            }
          ]
        }
      ]
    },
    "owner": {
      "Enum": [
        {
          "Account": [
            "<AccountAddress>"
          ]
        },
        {
          "Contract": [
            {
              "index": "<UInt64>",
              "subindex": "<UInt64>"
            }
          ]
        }
      ]
    }
  }
]
Errors
{
  "Enum": [
    {
      "ParseParams": []
    },
    {
      "Unauthorized": []
    },
    {
      "OnlyAccount": []
    },
    {
      "UnknownBadge": []
    },
    {
      "AlreadyHeld": []
    },
    {
      "Soulbound": []
    },
    {
      "LogFull": []
    },
    {
      "BadExpiry": []
    }
  ]
}
Return
[
  "<Bool>"
]

Parameters
[
  "<String with lowercase hex>"
]
Errors
{
  "Enum": [
    {
      "ParseParams": []
    },
    {
      "Unauthorized": []
    },
    {
      "OnlyAccount": []
    },
    {
      "UnknownBadge": []
    },
    {
      "AlreadyHeld": []
    },
    {
      "Soulbound": []
    },
    {
      "LogFull": []
    },
    {
      "BadExpiry": []
    }
  ]
}
Return
[
  {
    "hash": {
      "Enum": [
        {
          "None": []
        },
        {
          "Some": [
            "<String of size 64 containing lowercase hex characters.>"
          ]
        }
      ]
    },
    "url": "<String>"
  }
]

Parameters
"<AccountAddress>"
Errors
{
  "Enum": [
    {
      "ParseParams": []
    },
    {
      "Unauthorized": []
    },
    {
      "OnlyAccount": []
    },
    {
      "UnknownBadge": []
    },
    {
      "AlreadyHeld": []
    },
    {
      "Soulbound": []
    },
    {
      "LogFull": []
    },
    {
      "BadExpiry": []
    }
  ]
}
Return
[
  "<String with lowercase hex>"
]

Parameters
None
Errors
{
  "Enum": [
    {
      "ParseParams": []
    },
    {
      "Unauthorized": []
    },
    {
      "OnlyAccount": []
    },
    {
      "UnknownBadge": []
    },
    {
      "AlreadyHeld": []
    },
    {
      "Soulbound": []
    },
    {
      "LogFull": []
    },
    {
      "BadExpiry": []
    }
  ]
}
Return
[
  {
    "badge": "<String with lowercase hex>",
    "supply": "<UInt32>"
  }
]

Parameters
[
  "<String>"
]
Errors
{
  "Enum": [
    {
      "ParseParams": []
    },
    {
      "Unauthorized": []
    },
    {
      "OnlyAccount": []
    },
    {
      "UnknownBadge": []
    },
    {
      "AlreadyHeld": []
    },
    {
      "Soulbound": []
    },
    {
      "LogFull": []
    },
    {
      "BadExpiry": []
    }
  ]
}
Return
[
  {
    "Enum": [
      {
        "NoSupport": []
      },
      {
        "Support": []
      },
      {
        "SupportBy": [
          [
            {
              "index": "<UInt64>",
              "subindex": "<UInt64>"
            }
          ]
        ]
      }
    ]
  }
]

Parameters
{
  "account": "<AccountAddress>",
  "reason": [
    "<UInt8>",
    "<UInt8>",
    "<UInt8>",
    "<UInt8>",
    "<UInt8>",
    "<UInt8>",
    "<UInt8>",
    "<UInt8>",
    "<UInt8>",
    "<UInt8>",
    "<UInt8>",
    "<UInt8>",
    "<UInt8>",
    "<UInt8>",
    "<UInt8>",
    "<UInt8>",
    "<UInt8>",
    "<UInt8>",
    "<UInt8>",
    "<UInt8>",
    "<UInt8>",
    "<UInt8>",
    "<UInt8>",
    "<UInt8>",
    "<UInt8>",
    "<UInt8>",
    "<UInt8>",
    "<UInt8>",
    "<UInt8>",
    "<UInt8>",
    "<UInt8>",
    "<UInt8>"
  ],
  "round": "<UInt64>"
}
Errors
{
  "Enum": [
    {
      "ParseParams": []
    },
    {
      "Unauthorized": []
    },
    {
      "OnlyAccount": []
    },
    {
      "UnknownBadge": []
    },
    {
      "AlreadyHeld": []
    },
    {
      "Soulbound": []
    },
    {
      "LogFull": []
    },
    {
      "BadExpiry": []
    }
  ]
}
Return
None

Parameters
{
  "account": "<AccountAddress>",
  "reason": [
    "<UInt8>",
    "<UInt8>",
    "<UInt8>",
    "<UInt8>",
    "<UInt8>",
    "<UInt8>",
    "<UInt8>",
    "<UInt8>",
    "<UInt8>",
    "<UInt8>",
    "<UInt8>",
    "<UInt8>",
    "<UInt8>",
    "<UInt8>",
    "<UInt8>",
    "<UInt8>",
    "<UInt8>",
    "<UInt8>",
    "<UInt8>",
    "<UInt8>",
    "<UInt8>",
    "<UInt8>",
    "<UInt8>",
    "<UInt8>",
    "<UInt8>",
    "<UInt8>",
    "<UInt8>",
    "<UInt8>",
    "<UInt8>",
    "<UInt8>",
    "<UInt8>",
    "<UInt8>"
  ],
  "until": "<Timestamp (e.g. `2000-01-01T12:00:00Z`)>"
}
Errors
{
  "Enum": [
    {
      "ParseParams": []
    },
    {
      "Unauthorized": []
    },
    {
      "OnlyAccount": []
    },
    {
      "UnknownBadge": []
    },
    {
      "AlreadyHeld": []
    },
    {
      "Soulbound": []
    },
    {
      "LogFull": []
    },
    {
      "BadExpiry": []
    }
  ]
}
Return
None

Parameters
"<AccountAddress>"
Errors
{
  "Enum": [
    {
      "ParseParams": []
    },
    {
      "Unauthorized": []
    },
    {
      "OnlyAccount": []
    },
    {
      "UnknownBadge": []
    },
    {
      "AlreadyHeld": []
    },
    {
      "Soulbound": []
    },
    {
      "LogFull": []
    },
    {
      "BadExpiry": []
    }
  ]
}
Return
{
  "blocked_until": {
    "Enum": [
      {
        "None": []
      },
      {
        "Some": [
          "<Timestamp (e.g. `2000-01-01T12:00:00Z`)>"
        ]
      }
    ]
  },
  "strikes": [
    {
      "account": "<AccountAddress>",
      "at": "<Timestamp (e.g. `2000-01-01T12:00:00Z`)>",
      "reason": [
        "<UInt8>",
        "<UInt8>",
        "<UInt8>",
        "<UInt8>",
        "<UInt8>",
        "<UInt8>",
        "<UInt8>",
        "<UInt8>",
        "<UInt8>",
        "<UInt8>",
        "<UInt8>",
        "<UInt8>",
        "<UInt8>",
        "<UInt8>",
        "<UInt8>",
        "<UInt8>",
        "<UInt8>",
        "<UInt8>",
        "<UInt8>",
        "<UInt8>",
        "<UInt8>",
        "<UInt8>",
        "<UInt8>",
        "<UInt8>",
        "<UInt8>",
        "<UInt8>",
        "<UInt8>",
        "<UInt8>",
        "<UInt8>",
        "<UInt8>",
        "<UInt8>",
        "<UInt8>"
      ],
      "round": "<UInt64>"
    }
  ]
}

Parameters
{
  "Enum": [
    {
      "None": []
    },
    {
      "Some": [
        "<AccountAddress>"
      ]
    }
  ]
}
Errors
{
  "Enum": [
    {
      "ParseParams": []
    },
    {
      "Unauthorized": []
    },
    {
      "OnlyAccount": []
    },
    {
      "UnknownBadge": []
    },
    {
      "AlreadyHeld": []
    },
    {
      "Soulbound": []
    },
    {
      "LogFull": []
    },
    {
      "BadExpiry": []
    }
  ]
}
Return
None

Parameters
None
Errors
None
Return
{
  "Enum": [
    {
      "None": []
    },
    {
      "Some": [
        "<AccountAddress>"
      ]
    }
  ]
}

Parameters
None
Errors
None
Return
"<AccountAddress>"

Parameters
[
  {
    "operator": {
      "Enum": [
        {
          "Account": [
            "<AccountAddress>"
          ]
        },
        {
          "Contract": [
            {
              "index": "<UInt64>",
              "subindex": "<UInt64>"
            }
          ]
        }
      ]
    },
    "update": {
      "Enum": [
        {
          "Remove": []
        },
        {
          "Add": []
        }
      ]
    }
  }
]
Errors
{
  "Enum": [
    {
      "ParseParams": []
    },
    {
      "Unauthorized": []
    },
    {
      "OnlyAccount": []
    },
    {
      "UnknownBadge": []
    },
    {
      "AlreadyHeld": []
    },
    {
      "Soulbound": []
    },
    {
      "LogFull": []
    },
    {
      "BadExpiry": []
    }
  ]
}
Return
None
Module Usage