Telos

snapshots.tf

Contract

The data structures defined by this contract.

  • Table row type of snapshots

    {
      "name": "balance",
      "base": "",
      "fields": [
        {
          "name": "account",
          "type": "name"
        },
        {
          "name": "amount",
          "type": "uint64"
        }
      ]
    }
  • Action parameter in define

    {
      "name": "define",
      "base": "",
      "fields": [
        {
          "name": "snapshot_id",
          "type": "uint64"
        },
        {
          "name": "owner",
          "type": "name"
        },
        {
          "name": "snapshot_block",
          "type": "uint64"
        },
        {
          "name": "expire_block",
          "type": "uint64"
        }
      ]
    }
  • Action parameter in remove

    {
      "name": "remove",
      "base": "",
      "fields": [
        {
          "name": "snapshot_id",
          "type": "uint64"
        },
        {
          "name": "count",
          "type": "uint32"
        }
      ]
    }
  • Action parameter in setbalance

    {
      "name": "setbalance",
      "base": "",
      "fields": [
        {
          "name": "snapshot_id",
          "type": "uint64"
        },
        {
          "name": "account",
          "type": "name"
        },
        {
          "name": "amount",
          "type": "uint64"
        }
      ]
    }
  • Table row type of snapmeta

    {
      "name": "snapshot",
      "base": "",
      "fields": [
        {
          "name": "snapshot_id",
          "type": "uint64"
        },
        {
          "name": "owner",
          "type": "name"
        },
        {
          "name": "snapshot_block",
          "type": "uint64"
        },
        {
          "name": "expire_block",
          "type": "uint64"
        },
        {
          "name": "last_updated",
          "type": "uint32"
        },
        {
          "name": "max_supply",
          "type": "uint64"
        }
      ]
    }