Vaulta

chexfunction

Contract

{
  "version": "eosio::abi/1.1",
  "types": [],
  "structs": [
    {
      "name": "addtoken",
      "base": "",
      "fields": [
        {
          "name": "token",
          "type": "token_t"
        }
      ]
    },
    {
      "name": "config",
      "base": "",
      "fields": [
        {
          "name": "config",
          "type": "config_t"
        }
      ]
    },
    {
      "name": "config_t",
      "base": "",
      "fields": [
        {
          "name": "chex_contract",
          "type": "name"
        },
        {
          "name": "transfer_contract",
          "type": "name"
        },
        {
          "name": "exchange_contract",
          "type": "name"
        },
        {
          "name": "burn_contract",
          "type": "name"
        },
        {
          "name": "market_id",
          "type": "uint64"
        }
      ]
    },
    {
      "name": "convert",
      "base": "",
      "fields": [
        {
          "name": "quantity",
          "type": "asset"
        }
      ]
    },
    {
      "name": "distribute",
      "base": "",
      "fields": [
        {
          "name": "fraction",
          "type": "float64"
        }
      ]
    },
    {
      "name": "extended_symbol",
      "base": "",
      "fields": [
        {
          "name": "sym",
          "type": "symbol"
        },
        {
          "name": "contract",
          "type": "name"
        }
      ]
    },
    {
      "name": "token_t",
      "base": "",
      "fields": [
        {
          "name": "id",
          "type": "uint64"
        },
        {
          "name": "token",
          "type": "extended_symbol"
        }
      ]
    }
  ],
  "actions": [
    {
      "name": "addtoken",
      "type": "addtoken",
      "ricardian_contract": ""
    },
    {
      "name": "config",
      "type": "config",
      "ricardian_contract": ""
    },
    {
      "name": "convert",
      "type": "convert",
      "ricardian_contract": "This converts CHEX into EOS using the Bancor algorithm"
    },
    {
      "name": "distribute",
      "type": "distribute",
      "ricardian_contract": "This distributes CHEX to CHEX holders and burns some CHEX according to the smart matching algorithm"
    }
  ],
  "tables": [
    {
      "name": "config",
      "index_type": "i64",
      "key_names": [],
      "key_types": [],
      "type": "config_t"
    },
    {
      "name": "tokens",
      "index_type": "i64",
      "key_names": [],
      "key_types": [],
      "type": "token_t"
    }
  ],
  "ricardian_clauses": [],
  "error_messages": [],
  "abi_extensions": [],
  "variants": [],
  "action_results": []
}