1
This commit is contained in:
parent
fe2df1481a
commit
294d5566bc
57
doc/AANft.py
Normal file
57
doc/AANft.py
Normal file
@ -0,0 +1,57 @@
|
|||||||
|
import _common
|
||||||
|
|
||||||
|
class AANft(object):
|
||||||
|
|
||||||
|
def __init__(self):
|
||||||
|
self.apis = [
|
||||||
|
{
|
||||||
|
'name': '/hero/home_meta/:net_id',
|
||||||
|
'desc': '获取英雄nft元信息主页',
|
||||||
|
'group': '!AANft',
|
||||||
|
'url': 'https://nft-test.kingsome.cn/hero/home_meta/:net_id',
|
||||||
|
'params': [
|
||||||
|
[':net_id', '', '链id'],
|
||||||
|
],
|
||||||
|
'response': [
|
||||||
|
_common.NftHomeMeta(),
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
'name': '/gold_bullion/home_meta/:net_id',
|
||||||
|
'desc': '获取金砖nft元信息主页',
|
||||||
|
'group': '!AANft',
|
||||||
|
'url': 'https://nft-test.kingsome.cn/gold_bullion/home_meta/:net_id',
|
||||||
|
'params': [
|
||||||
|
[':net_id', '', '链id'],
|
||||||
|
],
|
||||||
|
'response': [
|
||||||
|
_common.NftHomeMeta(),
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
'name': '/hero/meta/:net_id/:token_id',
|
||||||
|
'desc': '获取英雄nft元信息',
|
||||||
|
'group': '!AANft',
|
||||||
|
'url': 'https://nft-test.kingsome.cn/hero/meta/:net_id/:token_id',
|
||||||
|
'params': [
|
||||||
|
[':net_id', '', '链id'],
|
||||||
|
[':token_id', '', 'tokenId'],
|
||||||
|
],
|
||||||
|
'response': [
|
||||||
|
_common.NftHomeMeta(),
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
'name': '/gold_bullion/meta/:net_id/:token_id',
|
||||||
|
'desc': '获取金砖nft元信息',
|
||||||
|
'group': '!AANft',
|
||||||
|
'url': 'https://nft-test.kingsome.cn/gold_bullion/meta/:net_id/:token_id',
|
||||||
|
'params': [
|
||||||
|
[':net_id', '', '链id'],
|
||||||
|
[':token_id', '', 'tokenId'],
|
||||||
|
],
|
||||||
|
'response': [
|
||||||
|
_common.NftHomeMeta(),
|
||||||
|
]
|
||||||
|
},
|
||||||
|
]
|
@ -1669,3 +1669,14 @@ class MFTransactionRequest(object):
|
|||||||
['to', '', '调用的目标合约地址'],
|
['to', '', '调用的目标合约地址'],
|
||||||
['data', '', '包含报文相关的字节字符串'],
|
['data', '', '包含报文相关的字节字符串'],
|
||||||
]
|
]
|
||||||
|
|
||||||
|
class NftHomeMeta(object):
|
||||||
|
|
||||||
|
def __init__(self):
|
||||||
|
self.fields = [
|
||||||
|
['name', '', 'nft名字'],
|
||||||
|
['symbol', '', 'symbol'],
|
||||||
|
['description', '', 'nft描述'],
|
||||||
|
['image', '', 'nft图片地址'],
|
||||||
|
['external_link', '', 'nft链接'],
|
||||||
|
]
|
||||||
|
Loading…
x
Reference in New Issue
Block a user