178 lines
6.3 KiB
Python
178 lines
6.3 KiB
Python
# -*- coding: utf-8 -*-
|
||
|
||
import _common
|
||
|
||
class BlockChain(object):
|
||
|
||
def __init__(self):
|
||
self.apis = [
|
||
{
|
||
'name': 'getTransactionList',
|
||
'desc': '获取列交易列表',
|
||
'group': 'BlockChain',
|
||
'url': 'webapp/index.php?c=BlockChain&a=getTransactionList',
|
||
'params': [
|
||
],
|
||
'response': [
|
||
_common.RspHead(),
|
||
]
|
||
},
|
||
{
|
||
'name': 'active721Nft',
|
||
'desc': '激活721nft',
|
||
'group': 'BlockChain',
|
||
'url': 'webapp/index.php?c=BlockChain&a=active721Nft',
|
||
'params': [
|
||
['type', 0, '1:英雄 2:枪械'],
|
||
['uniid', 0, '唯一id'],
|
||
],
|
||
'response': [
|
||
_common.RspHead(),
|
||
['trans_id', '', '事务id'],
|
||
['!params', [''], '合约参数列表'],
|
||
]
|
||
},
|
||
{
|
||
'name': 'active1155Nft',
|
||
'desc': '激活721nft',
|
||
'group': 'BlockChain',
|
||
'url': 'webapp/index.php?c=BlockChain&a=active1155Nft',
|
||
'params': [
|
||
['type', 0, '1:英雄 2:枪械'],
|
||
['uniid', 0, '唯一id'],
|
||
],
|
||
'response': [
|
||
_common.RspHead(),
|
||
['trans_id', '', '事务id'],
|
||
['!params', [''], '合约参数列表'],
|
||
]
|
||
},
|
||
{
|
||
'name': 'reportActiveResult',
|
||
'desc': '上报激活结果',
|
||
'group': 'BlockChain',
|
||
'url': 'webapp/index.php?c=BlockChain&a=reportActiveResult',
|
||
'params': [
|
||
['trans_id', '', '事务id'],
|
||
['result', '', '合约返回值'],
|
||
],
|
||
'response': [
|
||
_common.RspHead(),
|
||
]
|
||
},
|
||
{
|
||
'name': 'evolve721Nft',
|
||
'desc': 'nft进阶(英雄,武器)',
|
||
'group': 'BlockChain',
|
||
'url': 'webapp/index.php?c=BlockChain&a=active1155Nft',
|
||
'params': [
|
||
['type', 0, '1:英雄 2:枪械'],
|
||
['token_id1', 0, 'tokenid1'],
|
||
['token_id2', 0, 'tokenid2'],
|
||
],
|
||
'response': [
|
||
_common.RspHead(),
|
||
['trans_id', '', '事务id'],
|
||
['!params', [''], '合约参数列表'],
|
||
]
|
||
},
|
||
{
|
||
'name': 'reportEvolve721NftResult',
|
||
'desc': '上报nft进阶(英雄、武器)结果',
|
||
'group': 'BlockChain',
|
||
'url': 'webapp/index.php?c=BlockChain&a=reportEvolve721NftResult',
|
||
'params': [
|
||
['trans_id', '', '事务id'],
|
||
['result', '', '合约返回值'],
|
||
],
|
||
'response': [
|
||
_common.RspHead(),
|
||
]
|
||
},
|
||
{
|
||
'name': 'evolveChip',
|
||
'desc': '芯片进阶',
|
||
'group': 'BlockChain',
|
||
'url': 'webapp/index.php?c=BlockChain&a=evolveChip',
|
||
'params': [
|
||
['token_id1', 0, 'tokenid1'],
|
||
['token_id2', 0, 'tokenid2'],
|
||
],
|
||
'response': [
|
||
_common.RspHead(),
|
||
['trans_id', '', '事务id'],
|
||
['!params', [''], '合约参数列表'],
|
||
]
|
||
},
|
||
{
|
||
'name': 'reportEvolveChipResult',
|
||
'desc': '上报芯片进阶结果',
|
||
'group': 'BlockChain',
|
||
'url': 'webapp/index.php?c=BlockChain&a=reportEvolveChipResult',
|
||
'params': [
|
||
['trans_id', '', '事务id'],
|
||
['result', '', '合约返回值'],
|
||
],
|
||
'response': [
|
||
_common.RspHead(),
|
||
]
|
||
},
|
||
{
|
||
'name': 'mintShardBatchUser',
|
||
'desc': '碎片生成',
|
||
'group': 'BlockChain',
|
||
'url': 'webapp/index.php?c=BlockChain&a=mintShardBatchUser',
|
||
'params': [
|
||
['token_id1', 0, 'tokenid1'],
|
||
['token_id2', 0, 'tokenid2'],
|
||
],
|
||
'response': [
|
||
_common.RspHead(),
|
||
['trans_id', '', '事务id'],
|
||
['!params', [''], '合约参数列表'],
|
||
]
|
||
},
|
||
{
|
||
'name': 'reportMintShardBatchUserResult',
|
||
'desc': '上报碎片生成结果',
|
||
'group': 'BlockChain',
|
||
'url': 'webapp/index.php?c=BlockChain&a=reportMintShardBatchUserResult',
|
||
'params': [
|
||
['trans_id', '', '事务id'],
|
||
['result', '', '合约返回值'],
|
||
],
|
||
'response': [
|
||
_common.RspHead(),
|
||
]
|
||
},
|
||
{
|
||
'name': 'shardMixByUser',
|
||
'desc': '碎片合成',
|
||
'group': 'BlockChain',
|
||
'url': 'webapp/index.php?c=BlockChain&a=shardMixByUser',
|
||
'params': [
|
||
['token_id1', 0, 'tokenid1'],
|
||
['token_id2', 0, 'tokenid2'],
|
||
],
|
||
'response': [
|
||
_common.RspHead(),
|
||
['trans_id', '', '事务id'],
|
||
['!params', [''], '合约参数列表'],
|
||
]
|
||
},
|
||
{
|
||
'name': 'reportShardMixByUserUserResult',
|
||
'desc': '上报碎片合成结果',
|
||
'group': 'BlockChain',
|
||
'url': 'webapp/index.php?c=BlockChain&a=reportShardMixByUserResult',
|
||
'params': [
|
||
['trans_id', '', '事务id'],
|
||
['result', '', '合约返回值'],
|
||
],
|
||
'response': [
|
||
_common.RspHead(),
|
||
]
|
||
},
|
||
|
||
]
|