Telos

trees

Contract

The data structures defined by this contract.

  • Table row type of accounts

    {
      "name": "account",
      "base": "",
      "fields": [
        {
          "name": "balance",
          "type": "asset"
        }
      ]
    }
  • Action parameter in claimcorco

    {
      "name": "claimcorco",
      "base": "",
      "fields": [
        {
          "name": "owner",
          "type": "name"
        }
      ]
    }
  • Action parameter in close

    {
      "name": "close",
      "base": "",
      "fields": [
        {
          "name": "owner",
          "type": "name"
        },
        {
          "name": "symbol",
          "type": "symbol"
        }
      ]
    }
  • Action parameter in closecycle

    {
      "name": "closecycle",
      "base": "",
      "fields": [
        {
          "name": "forest_id",
          "type": "uint64"
        },
        {
          "name": "date_closed",
          "type": "time_point_sec"
        },
        {
          "name": "carbon_captured",
          "type": "asset"
        }
      ]
    }
  • Table row type of corcocoins

    {
      "name": "corcocoin",
      "base": "",
      "fields": [
        {
          "name": "id",
          "type": "uint64"
        },
        {
          "name": "owner",
          "type": "name"
        },
        {
          "name": "forest_id",
          "type": "uint32"
        },
        {
          "name": "cycle",
          "type": "uint8"
        },
        {
          "name": "co2_captured",
          "type": "asset"
        },
        {
          "name": "balance",
          "type": "asset"
        },
        {
          "name": "date_issued",
          "type": "time_point_sec"
        },
        {
          "name": "date_matures",
          "type": "time_point_sec"
        }
      ]
    }
  • Action parameter in create

    {
      "name": "create",
      "base": "",
      "fields": [
        {
          "name": "issuer",
          "type": "name"
        },
        {
          "name": "maximum_supply",
          "type": "asset"
        }
      ]
    }
  • Table row type of stat

    {
      "name": "currency_stats",
      "base": "",
      "fields": [
        {
          "name": "supply",
          "type": "asset"
        },
        {
          "name": "max_supply",
          "type": "asset"
        },
        {
          "name": "issuer",
          "type": "name"
        }
      ]
    }
  • Table row type of forests

    {
      "name": "forest",
      "base": "",
      "fields": [
        {
          "name": "id",
          "type": "uint64"
        },
        {
          "name": "project_owner",
          "type": "name"
        },
        {
          "name": "land_owner",
          "type": "name"
        },
        {
          "name": "forest_name",
          "type": "string"
        },
        {
          "name": "date_planted",
          "type": "time_point_sec"
        },
        {
          "name": "forest_state",
          "type": "uint8"
        },
        {
          "name": "area",
          "type": "asset"
        },
        {
          "name": "tree_count",
          "type": "uint32"
        },
        {
          "name": "sponsored_count",
          "type": "uint32"
        },
        {
          "name": "last_expiry",
          "type": "time_point_sec"
        },
        {
          "name": "cycle_start",
          "type": "time_point_sec"
        },
        {
          "name": "cycle_end",
          "type": "time_point_sec"
        },
        {
          "name": "cycle_num",
          "type": "uint8"
        },
        {
          "name": "cycle_co2_captured",
          "type": "asset"
        },
        {
          "name": "total_co2_captured",
          "type": "asset"
        },
        {
          "name": "cycle_co2_claimed",
          "type": "asset"
        },
        {
          "name": "total_co2_claimed",
          "type": "asset"
        },
        {
          "name": "boundary",
          "type": "string"
        },
        {
          "name": "species",
          "type": "string"
        },
        {
          "name": "metadata",
          "type": "string"
        }
      ]
    }
  • Action parameter in init

    {
      "name": "init",
      "base": "",
      "fields": [
        {
          "name": "maximum_supply",
          "type": "asset"
        },
        {
          "name": "co2_token",
          "type": "symbol"
        },
        {
          "name": "area_token",
          "type": "symbol"
        }
      ]
    }
  • Action parameter in issue

    {
      "name": "issue",
      "base": "",
      "fields": [
        {
          "name": "to",
          "type": "name"
        },
        {
          "name": "quantity",
          "type": "asset"
        },
        {
          "name": "memo",
          "type": "string"
        }
      ]
    }
  • Action parameter in newforest

    {
      "name": "newforest",
      "base": "",
      "fields": [
        {
          "name": "project_owner",
          "type": "name"
        },
        {
          "name": "land_owner",
          "type": "name"
        },
        {
          "name": "forest_name",
          "type": "string"
        },
        {
          "name": "date_planted",
          "type": "time_point_sec"
        },
        {
          "name": "area",
          "type": "asset"
        },
        {
          "name": "boundary",
          "type": "string"
        }
      ]
    }
  • Action parameter in open

    {
      "name": "open",
      "base": "",
      "fields": [
        {
          "name": "owner",
          "type": "name"
        },
        {
          "name": "symbol",
          "type": "symbol"
        },
        {
          "name": "ram_payer",
          "type": "name"
        }
      ]
    }
  • Action parameter in openforest

    {
      "name": "openforest",
      "base": "",
      "fields": [
        {
          "name": "id",
          "type": "uint64"
        }
      ]
    }
  • Action parameter in planttree

    {
      "name": "planttree",
      "base": "",
      "fields": [
        {
          "name": "forest_id",
          "type": "uint64"
        },
        {
          "name": "owner",
          "type": "name"
        },
        {
          "name": "species",
          "type": "string"
        },
        {
          "name": "location",
          "type": "string"
        },
        {
          "name": "image_hash",
          "type": "string"
        },
        {
          "name": "metadata",
          "type": "string"
        }
      ]
    }
  • Action parameter in retire

    {
      "name": "retire",
      "base": "",
      "fields": [
        {
          "name": "quantity",
          "type": "asset"
        },
        {
          "name": "memo",
          "type": "string"
        }
      ]
    }
  • Action parameter in setboundary

    {
      "name": "setboundary",
      "base": "",
      "fields": [
        {
          "name": "id",
          "type": "uint64"
        },
        {
          "name": "area",
          "type": "asset"
        },
        {
          "name": "boundary",
          "type": "string"
        }
      ]
    }
  • Action parameter in setmetadata

    {
      "name": "setmetadata",
      "base": "",
      "fields": [
        {
          "name": "id",
          "type": "uint64"
        },
        {
          "name": "metadata",
          "type": "string"
        }
      ]
    }
  • Table row type of settings

    {
      "name": "setting",
      "base": "",
      "fields": [
        {
          "name": "forest_count",
          "type": "uint32"
        },
        {
          "name": "tree_count",
          "type": "uint32"
        },
        {
          "name": "corco_num",
          "type": "uint32"
        },
        {
          "name": "owner_record_num",
          "type": "uint32"
        },
        {
          "name": "community_token",
          "type": "asset"
        },
        {
          "name": "co2_captured",
          "type": "asset"
        },
        {
          "name": "co2_claimed",
          "type": "asset"
        },
        {
          "name": "total_area",
          "type": "asset"
        },
        {
          "name": "enabled",
          "type": "bool"
        }
      ]
    }
  • Struct property of transfer_record

    {
      "name": "transaction_rec",
      "base": "",
      "fields": [
        {
          "name": "timestamp",
          "type": "time_point_sec"
        },
        {
          "name": "from",
          "type": "name"
        },
        {
          "name": "to",
          "type": "name"
        },
        {
          "name": "tree_ids",
          "type": "uint64[]"
        },
        {
          "name": "memo",
          "type": "string"
        },
        {
          "name": "transaction_id",
          "type": "checksum256"
        }
      ]
    }
  • Action parameter in transcorco

    {
      "name": "transcorco",
      "base": "",
      "fields": [
        {
          "name": "from",
          "type": "name"
        },
        {
          "name": "coin_id",
          "type": "uint64"
        },
        {
          "name": "to",
          "type": "name"
        },
        {
          "name": "quantity",
          "type": "asset"
        },
        {
          "name": "memo",
          "type": "string"
        }
      ]
    }
  • Action parameter in transfer

    {
      "name": "transfer",
      "base": "",
      "fields": [
        {
          "name": "from",
          "type": "name"
        },
        {
          "name": "to",
          "type": "name"
        },
        {
          "name": "quantity",
          "type": "asset"
        },
        {
          "name": "memo",
          "type": "string"
        }
      ]
    }
  • Table row type of transfers

    {
      "name": "transfer_record",
      "base": "",
      "fields": [
        {
          "name": "id",
          "type": "uint64"
        },
        {
          "name": "account",
          "type": "name"
        },
        {
          "name": "transaction",
          "type": "transaction_rec"
        }
      ]
    }
  • Action parameter in transfertree

    {
      "name": "transfertree",
      "base": "",
      "fields": [
        {
          "name": "from",
          "type": "name"
        },
        {
          "name": "to",
          "type": "name"
        },
        {
          "name": "tree_ids",
          "type": "uint64[]"
        },
        {
          "name": "memo",
          "type": "string"
        }
      ]
    }
  • Table row type of trees

    {
      "name": "tree",
      "base": "",
      "fields": [
        {
          "name": "id",
          "type": "uint64"
        },
        {
          "name": "owner",
          "type": "name"
        },
        {
          "name": "is_sponsored",
          "type": "bool"
        },
        {
          "name": "forest_id",
          "type": "uint32"
        },
        {
          "name": "species",
          "type": "string"
        },
        {
          "name": "location",
          "type": "string"
        },
        {
          "name": "image_hash",
          "type": "string"
        },
        {
          "name": "metadata",
          "type": "string"
        }
      ]
    }
  • Table row type of treeowners

    {
      "name": "treeowner",
      "base": "",
      "fields": [
        {
          "name": "id",
          "type": "uint64"
        },
        {
          "name": "forest_id",
          "type": "uint32"
        },
        {
          "name": "owner",
          "type": "name"
        },
        {
          "name": "tree_count",
          "type": "uint32"
        },
        {
          "name": "cycle_issued",
          "type": "uint8"
        },
        {
          "name": "last_update",
          "type": "time_point_sec"
        },
        {
          "name": "tree_sec",
          "type": "uint64"
        }
      ]
    }
  • Action parameter in trxreport

    {
      "name": "trxreport",
      "base": "",
      "fields": [
        {
          "name": "from",
          "type": "name"
        },
        {
          "name": "to",
          "type": "name"
        },
        {
          "name": "tree_id",
          "type": "uint64"
        },
        {
          "name": "memo",
          "type": "string"
        },
        {
          "name": "forest_id",
          "type": "uint64"
        },
        {
          "name": "species",
          "type": "string"
        },
        {
          "name": "location",
          "type": "string"
        },
        {
          "name": "image_hash",
          "type": "string"
        },
        {
          "name": "metadata",
          "type": "string"
        }
      ]
    }
  • Action parameter in updateauth

    {
      "name": "updateauth",
      "base": "",
      "fields": [
        {
          "name": "account",
          "type": "name"
        },
        {
          "name": "active_key",
          "type": "public_key"
        }
      ]
    }
  • Action parameter in updateforest

    {
      "name": "updateforest",
      "base": "",
      "fields": [
        {
          "name": "id",
          "type": "uint64"
        },
        {
          "name": "forest_name",
          "type": "string"
        }
      ]
    }
  • Action parameter in updatetree

    {
      "name": "updatetree",
      "base": "",
      "fields": [
        {
          "name": "tree_id",
          "type": "uint64"
        },
        {
          "name": "image_hash",
          "type": "string"
        },
        {
          "name": "metadata",
          "type": "string"
        },
        {
          "name": "memo",
          "type": "string"
        }
      ]
    }