# -*- 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(), ['!transactions', [_common.NftTransaction()], '交易列表'] ] }, { 'name': 'getTransactionInfo', 'desc': '查看链交易状态', 'group': 'BlockChain', 'url': 'webapp/index.php?c=BlockChain&a=getTransactionInfo', 'params': [ ['trans_id', '', '事务id'], ], 'response': [ _common.RspHead(), ['data', _common.NftTransaction(), '交易记录'] ] }, { 'name': 'reportResult', 'desc': '上报链调用结果', 'group': 'BlockChain', 'url': 'webapp/index.php?c=BlockChain&a=reportResult', 'params': [ ['trans_id', '', '事务id'], ['result', '', '合约返回值'], ], 'response': [ _common.RspHead(), ] }, { 'name': 'getJumpInfo', 'desc': '获取跳转信息', 'group': 'BlockChain', 'url': 'webapp/index.php?c=BlockChain&a=getJumpInfo', 'params': [ ['trans_id', '', '事务id'], ], 'response': [ _common.RspHead(), ['action', 0,'动作 1:特定英雄详情,2:特定枪械详情,3:NFTs芯片列表,4:英雄进阶介面,5:枪械进阶介面,6:芯片升级介面,7:NFTs碎片列表 ,8:目标英雄详情介面的Chip页签,9:目标枪械详情介面的Chip页签 '], ['!params', [''], '参数列表 params[0]: token_id'], ] }, { 'name': 'mint', 'desc': '激活nft', 'group': 'BlockChain', 'url': 'webapp/index.php?c=BlockChain&a=mint', 'params': [ ['item_id', '', '指定的英雄id或者武器id'], ['token_ids', '', 'token_ids多个用|分割'], ], 'response': [ _common.RspHead(), ['trans_id', '', '事务id'], ['!params', [''], '合约参数列表'], ] } ]