game2006api/doc/Staking.py
aozhiwei dda18828aa 1
2023-08-26 08:00:09 +08:00

58 lines
2.0 KiB
Python

# -*- coding: utf-8 -*-
import _common
class Staking(object):
def __init__(self):
self.apis = [
{
'name': 'info',
'desc': '获取质押信息',
'group': 'Staking',
'url': 'webapp/index.php?c=Staking&a=info',
'params': [
_common.ReqHead(),
],
'response': [
_common.RspHead(),
['total_staking_value', '', '质押总ceg价值'],
['daily_staking_value', '', '当天总ceg价值'],
['planet', _common.Staking(), '星球质押'],
['badge', _common.Staking(), '徽章质押'],
['cec', _common.Staking(), 'cec质押'],
]
},
{
'name': 'stacking',
'desc': '质押中nft列表',
'group': 'Staking',
'url': 'webapp/index.php?c=Staking&a=stacking',
'params': [
_common.ReqHead(),
['type', '', '1: planet 2: badge 3:cec'],
],
'response': [
_common.RspHead(),
['type', '', '1: planet 2: badge 3:cec'],
['stacked_quant', '', '当前该类型质押总数'],
['!items', [_common.StakingDetail()], '质押列表'],
]
},
{
'name': 'history',
'desc': '领取历史',
'group': 'Staking',
'url': 'webapp/index.php?c=Staking&a=history',
'params': [
_common.ReqHead(),
['from_time', '', '开始时间(utc时间)'],
['to_time', '', '结束时间(utc时间)'],
],
'response': [
_common.RspHead(),
['!items', [_common.StakingDetail()], '领取历史'],
]
},
]