Vaulta

pools.ogx

Contract

The data structures defined by this contract.

  • Action parameter in addpools

    {
      "name": "addpools",
      "base": "",
      "fields": [
        {
          "name": "id",
          "type": "uint64"
        },
        {
          "name": "type",
          "type": "uint64"
        },
        {
          "name": "stake_code",
          "type": "name"
        },
        {
          "name": "stake_sym",
          "type": "symbol"
        },
        {
          "name": "code",
          "type": "name"
        },
        {
          "name": "sym",
          "type": "symbol"
        },
        {
          "name": "weight",
          "type": "asset"
        },
        {
          "name": "status",
          "type": "uint64"
        },
        {
          "name": "start",
          "type": "uint64"
        },
        {
          "name": "rewards_duration",
          "type": "uint64"
        }
      ]
    }
  • Action parameter in changelog

    {
      "name": "changelog",
      "base": "",
      "fields": [
        {
          "name": "mid",
          "type": "uint64"
        },
        {
          "name": "user",
          "type": "name"
        },
        {
          "name": "q0",
          "type": "asset"
        },
        {
          "name": "q1",
          "type": "asset"
        },
        {
          "name": "bal0",
          "type": "asset"
        },
        {
          "name": "bal1",
          "type": "asset"
        },
        {
          "name": "token",
          "type": "uint64"
        }
      ]
    }
  • Action parameter in claim

    {
      "name": "claim",
      "base": "",
      "fields": [
        {
          "name": "mid",
          "type": "uint64"
        },
        {
          "name": "user",
          "type": "name"
        }
      ]
    }
  • Action parameter in delpools

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

    {
      "name": "log",
      "base": "",
      "fields": [
        {
          "name": "contract",
          "type": "name"
        },
        {
          "name": "event",
          "type": "name"
        },
        {
          "name": "args",
          "type": "string[]"
        },
        {
          "name": "millis",
          "type": "uint64"
        }
      ]
    }
  • Table row type of miners

    {
      "name": "miner",
      "base": "",
      "fields": [
        {
          "name": "owner",
          "type": "name"
        },
        {
          "name": "token",
          "type": "uint64"
        },
        {
          "name": "stake_balance",
          "type": "asset"
        },
        {
          "name": "reward",
          "type": "asset"
        },
        {
          "name": "reward_per_token_paid",
          "type": "asset"
        },
        {
          "name": "claimed",
          "type": "asset"
        },
        {
          "name": "last_claimed",
          "type": "uint64"
        }
      ]
    }
  • Table row type of ponds

    {
      "name": "pond",
      "base": "",
      "fields": [
        {
          "name": "id",
          "type": "uint64"
        },
        {
          "name": "type",
          "type": "uint64"
        },
        {
          "name": "stake_code",
          "type": "name"
        },
        {
          "name": "stake_sym",
          "type": "symbol"
        },
        {
          "name": "code",
          "type": "name"
        },
        {
          "name": "sym",
          "type": "symbol"
        },
        {
          "name": "weight",
          "type": "asset"
        },
        {
          "name": "status",
          "type": "uint64"
        },
        {
          "name": "start",
          "type": "uint64"
        },
        {
          "name": "rewards_duration",
          "type": "uint64"
        },
        {
          "name": "balance",
          "type": "asset"
        },
        {
          "name": "total_token",
          "type": "uint64"
        },
        {
          "name": "reward_rate",
          "type": "asset"
        },
        {
          "name": "last_update_time",
          "type": "uint64"
        },
        {
          "name": "reward_pt_stored",
          "type": "asset"
        },
        {
          "name": "period_finish",
          "type": "uint64"
        }
      ]
    }
  • Action parameter in settle

    {
      "name": "settle",
      "base": "",
      "fields": [
        {
          "name": "mid",
          "type": "uint64"
        },
        {
          "name": "user",
          "type": "name"
        }
      ]
    }
  • Action parameter in startpools

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

    {
      "name": "tokenchange",
      "base": "",
      "fields": [
        {
          "name": "code",
          "type": "symbol_code"
        },
        {
          "name": "owner",
          "type": "name"
        },
        {
          "name": "pre_amount",
          "type": "uint64"
        },
        {
          "name": "now_amount",
          "type": "uint64"
        }
      ]
    }
  • Action parameter in transfer

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

    {
      "name": "updatepools",
      "base": "",
      "fields": [
        {
          "name": "id",
          "type": "uint64"
        },
        {
          "name": "type",
          "type": "uint64"
        },
        {
          "name": "stake_code",
          "type": "name"
        },
        {
          "name": "stake_sym",
          "type": "symbol"
        },
        {
          "name": "code",
          "type": "name"
        },
        {
          "name": "sym",
          "type": "symbol"
        },
        {
          "name": "weight",
          "type": "asset"
        },
        {
          "name": "status",
          "type": "uint64"
        },
        {
          "name": "start",
          "type": "uint64"
        },
        {
          "name": "rewards_duration",
          "type": "uint64"
        }
      ]
    }
  • Action parameter in withdraw

    {
      "name": "withdraw",
      "base": "",
      "fields": [
        {
          "name": "mid",
          "type": "uint64"
        },
        {
          "name": "user",
          "type": "name"
        },
        {
          "name": "amount",
          "type": "asset"
        }
      ]
    }