Telos

ballot.start

Contract

The data structures defined by this contract.

  • Action parameter in addtags

    {
      "name": "addtags",
      "base": "",
      "fields": [
        {
          "name": "ballot_id",
          "type": "uint64"
        },
        {
          "name": "tags",
          "type": "pair_name_string[]"
        }
      ]
    }
  • Action parameter in addtoken

    {
      "name": "addtoken",
      "base": "",
      "fields": [
        {
          "name": "token_contract",
          "type": "name"
        }
      ]
    }
  • Table row type of ballots

    {
      "name": "ballots_row",
      "base": "",
      "fields": [
        {
          "name": "id",
          "type": "uint64"
        },
        {
          "name": "owner",
          "type": "name"
        },
        {
          "name": "pool_type",
          "type": "name"
        },
        {
          "name": "title",
          "type": "string"
        },
        {
          "name": "avatar",
          "type": "string"
        },
        {
          "name": "tag_line",
          "type": "string"
        },
        {
          "name": "description",
          "type": "string"
        },
        {
          "name": "status",
          "type": "name"
        },
        {
          "name": "base_token",
          "type": "extended_symbol"
        },
        {
          "name": "swap_ratio",
          "type": "extended_asset"
        },
        {
          "name": "soft_cap",
          "type": "asset"
        },
        {
          "name": "hard_cap",
          "type": "asset"
        },
        {
          "name": "minimum_swap",
          "type": "asset"
        },
        {
          "name": "maximum_swap",
          "type": "asset"
        },
        {
          "name": "offer",
          "type": "asset"
        },
        {
          "name": "ballot_close",
          "type": "time_point_sec"
        },
        {
          "name": "pool_open",
          "type": "time_point_sec"
        },
        {
          "name": "private_end",
          "type": "time_point_sec"
        },
        {
          "name": "public_end",
          "type": "time_point_sec"
        },
        {
          "name": "discount",
          "type": "uint16"
        },
        {
          "name": "token_lockup",
          "type": "bool"
        },
        {
          "name": "lockup_percent",
          "type": "uint16"
        },
        {
          "name": "lockup_period",
          "type": "uint16"
        },
        {
          "name": "whitelist",
          "type": "name[]"
        },
        {
          "name": "web_links",
          "type": "pair_name_string[]"
        },
        {
          "name": "tags",
          "type": "pair_name_string[]"
        },
        {
          "name": "votes",
          "type": "pair_name_asset[]"
        }
      ]
    }
  • Action parameter in cancelballot

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

    {
      "name": "chown",
      "base": "",
      "fields": [
        {
          "name": "ballot_id",
          "type": "uint64"
        },
        {
          "name": "newowner",
          "type": "name"
        }
      ]
    }
  • Action parameter in closeballot

    {
      "name": "closeballot",
      "base": "",
      "fields": [
        {
          "name": "id",
          "type": "uint64"
        }
      ]
    }
  • Table row type of config

    {
      "name": "config",
      "base": "",
      "fields": [
        {
          "name": "pools_account",
          "type": "name"
        },
        {
          "name": "quorum",
          "type": "double_t"
        },
        {
          "name": "lead",
          "type": "double_t"
        },
        {
          "name": "rewards_share",
          "type": "double_t"
        },
        {
          "name": "rewards_account",
          "type": "name"
        },
        {
          "name": "enabled",
          "type": "bool"
        },
        {
          "name": "last_ballot_id",
          "type": "uint64"
        }
      ]
    }
  • Table row type of stat

    {
      "name": "currency_stats",
      "base": "",
      "fields": [
        {
          "name": "supply",
          "type": "asset"
        },
        {
          "name": "max_supply",
          "type": "asset"
        },
        {
          "name": "issuer",
          "type": "name"
        }
      ]
    }
  • Struct property of ballots_row

    Struct property of settings

    Struct property of updateballot

    {
      "name": "extended_symbol",
      "base": "",
      "fields": [
        {
          "name": "sym",
          "type": "symbol"
        },
        {
          "name": "contract",
          "type": "name"
        }
      ]
    }
  • Action parameter in init

    {
      "name": "init",
      "base": "",
      "fields": [
        {
          "name": "pools_account",
          "type": "name"
        },
        {
          "name": "quorum",
          "type": "double_t"
        },
        {
          "name": "lead",
          "type": "double_t"
        },
        {
          "name": "rewards_share",
          "type": "double_t"
        },
        {
          "name": "rewards_account",
          "type": "name"
        },
        {
          "name": "enabled",
          "type": "bool"
        }
      ]
    }
  • Action parameter in newballot

    {
      "name": "newballot",
      "base": "",
      "fields": [
        {
          "name": "owner",
          "type": "name"
        },
        {
          "name": "swap_token",
          "type": "extended_asset"
        }
      ]
    }
  • Action parameter in openballot

    {
      "name": "openballot",
      "base": "",
      "fields": [
        {
          "name": "id",
          "type": "uint64"
        }
      ]
    }
  • Struct property of ballots_row

    {
      "name": "pair_name_asset",
      "base": "",
      "fields": [
        {
          "name": "key",
          "type": "name"
        },
        {
          "name": "value",
          "type": "asset"
        }
      ]
    }
  • Struct property of addtags

    Struct property of ballots_row

    Struct property of updateballot

    {
      "name": "pair_name_string",
      "base": "",
      "fields": [
        {
          "name": "key",
          "type": "name"
        },
        {
          "name": "value",
          "type": "string"
        }
      ]
    }
  • {
      "name": "pair_time_point_sec_asset",
      "base": "",
      "fields": [
        {
          "name": "first",
          "type": "time_point_sec"
        },
        {
          "name": "second",
          "type": "asset"
        }
      ]
    }
  • Action parameter in refreshvotes

    {
      "name": "refreshvotes",
      "base": "",
      "fields": [
        {
          "name": "ballot_id",
          "type": "uint64"
        },
        {
          "name": "limit",
          "type": "uint64"
        }
      ]
    }
  • Action parameter in rmtags

    {
      "name": "rmtags",
      "base": "",
      "fields": [
        {
          "name": "ballot_id",
          "type": "uint64"
        },
        {
          "name": "tags",
          "type": "name[]"
        }
      ]
    }
  • Action parameter in setlockup

    {
      "name": "setlockup",
      "base": "",
      "fields": [
        {
          "name": "ballot_id",
          "type": "uint64"
        },
        {
          "name": "token_lockup",
          "type": "bool"
        },
        {
          "name": "lockup_fraction",
          "type": "double_t"
        },
        {
          "name": "lockup_period",
          "type": "uint16"
        }
      ]
    }
  • Table row type of settings

    {
      "name": "settings",
      "base": "",
      "fields": [
        {
          "name": "admin",
          "type": "name"
        },
        {
          "name": "platform_token",
          "type": "extended_symbol"
        },
        {
          "name": "featured_pools",
          "type": "uint64[]"
        },
        {
          "name": "listing_fee",
          "type": "asset"
        },
        {
          "name": "premium_access_fee",
          "type": "asset"
        },
        {
          "name": "social_fee",
          "type": "asset"
        },
        {
          "name": "lockup_buckets",
          "type": "uint32"
        },
        {
          "name": "unstake_buckets",
          "type": "uint32"
        },
        {
          "name": "social_buckets",
          "type": "uint32"
        },
        {
          "name": "fee_account",
          "type": "name"
        },
        {
          "name": "success_fee",
          "type": "double_t"
        },
        {
          "name": "website",
          "type": "string"
        },
        {
          "name": "contact",
          "type": "string"
        },
        {
          "name": "sourcecode",
          "type": "string"
        },
        {
          "name": "enabled",
          "type": "bool"
        },
        {
          "name": "last_pool_id",
          "type": "uint64"
        },
        {
          "name": "last_pool_account_id",
          "type": "uint64"
        },
        {
          "name": "last_token_id",
          "type": "uint64"
        },
        {
          "name": "stake_pool",
          "type": "asset"
        }
      ]
    }
  • Table row type of stakebalance

    {
      "name": "stake_balance",
      "base": "",
      "fields": [
        {
          "name": "owner",
          "type": "name"
        },
        {
          "name": "liquid",
          "type": "asset"
        },
        {
          "name": "staked",
          "type": "asset"
        },
        {
          "name": "unstaking",
          "type": "asset"
        },
        {
          "name": "stake_maturities",
          "type": "pair_time_point_sec_asset[]"
        }
      ]
    }
  • Table row type of trustedtoken

    {
      "name": "trusted_token",
      "base": "",
      "fields": [
        {
          "name": "contract",
          "type": "name"
        }
      ]
    }
  • Action parameter in updateballot

    {
      "name": "updateballot",
      "base": "",
      "fields": [
        {
          "name": "id",
          "type": "uint64"
        },
        {
          "name": "title",
          "type": "string"
        },
        {
          "name": "avatar",
          "type": "string"
        },
        {
          "name": "tag_line",
          "type": "string"
        },
        {
          "name": "description",
          "type": "string"
        },
        {
          "name": "base_token",
          "type": "extended_symbol"
        },
        {
          "name": "swap_ratio",
          "type": "extended_asset"
        },
        {
          "name": "soft_cap",
          "type": "asset"
        },
        {
          "name": "hard_cap",
          "type": "asset"
        },
        {
          "name": "minimum_swap",
          "type": "asset"
        },
        {
          "name": "maximum_swap",
          "type": "asset"
        },
        {
          "name": "ballot_close",
          "type": "time_point_sec"
        },
        {
          "name": "pool_open",
          "type": "time_point_sec"
        },
        {
          "name": "private_end",
          "type": "time_point_sec"
        },
        {
          "name": "public_end",
          "type": "time_point_sec"
        },
        {
          "name": "whitelist",
          "type": "name[]"
        },
        {
          "name": "web_links",
          "type": "pair_name_string[]"
        }
      ]
    }
  • Action parameter in vote

    {
      "name": "vote",
      "base": "",
      "fields": [
        {
          "name": "account",
          "type": "name"
        },
        {
          "name": "ballot_id",
          "type": "uint64"
        },
        {
          "name": "vote",
          "type": "int8"
        }
      ]
    }
  • Table row type of votes

    {
      "name": "votes_row",
      "base": "",
      "fields": [
        {
          "name": "account",
          "type": "name"
        },
        {
          "name": "vote",
          "type": "asset"
        }
      ]
    }
  • Table row type of wallets

    {
      "name": "wallet",
      "base": "",
      "fields": [
        {
          "name": "balance",
          "type": "asset"
        },
        {
          "name": "contract",
          "type": "name"
        }
      ]
    }