37 lines
1.2 KiB
Python
37 lines
1.2 KiB
Python
|
|
import _common
|
|
|
|
class Currency(object):
|
|
|
|
def __init__(self):
|
|
self.apis = [
|
|
{
|
|
'name': 'addCurrency',
|
|
'desc': '添加货币地址',
|
|
'group': 'Currency',
|
|
'url': 'webapp/index.php?c=Currency&a=addCurrency',
|
|
'params': [
|
|
_common.ReqHead(),
|
|
['net_id', 0, '链id'],
|
|
['address', '', '货币地址'],
|
|
['symbol', '', '符号'],
|
|
['precision', 0, '精度'],
|
|
['type', 0, '1:ERC721 2:ERC1155 3:ERC20'],
|
|
],
|
|
'response': [
|
|
_common.RspHead(),
|
|
]
|
|
},{
|
|
'name': 'currencyList',
|
|
'desc': '列表',
|
|
'group': 'Currency',
|
|
'url': 'webapp/index.php?c=Currency&a=currencyList',
|
|
'params': [
|
|
_common.ReqHead(),
|
|
],
|
|
'response': [
|
|
_common.RspHead(),
|
|
['!list', [_common.Currency()], '列表信息'],
|
|
]
|
|
},
|
|
] |