This commit is contained in:
aozhiwei 2024-06-19 17:10:09 +08:00
parent e64a89861b
commit 90f7d35d29
4 changed files with 29548 additions and 2079 deletions

View File

@ -6,6 +6,11 @@
"contract_name": "CFHero",
"event_name": "Transfer",
"table_name": "t_721nft_transfer"
},
{
"contract_name": "GoldBrick",
"event_name": "Transfer",
"table_name": "t_721nft_transfer"
}
]
}

File diff suppressed because it is too large Load Diff

View File

@ -15,6 +15,7 @@ const BENftMall_INSTANCE_NAME = 'BENftMall';
const GameItemMarket_INSTANCE_NAME = 'GameItemMarket';
const GameItemMall_INSTANCE_NAME = 'GameItemMall';
const Genesis_INSTANCE_NAME = 'Genesis';
const GoldBullion_INSTANCE_NAME = 'GoldBrick';
function getNftNameByTokenType(tokenType) {
switch (Number(tokenType)) {
@ -43,6 +44,11 @@ function getNftNameByTokenType(tokenType) {
return Genesis_INSTANCE_NAME;
}
break;
case bcconst.BC_NFT_GOLD_BULLION:
{
return GoldBullion_INSTANCE_NAME;
}
break;
default:
{
return '';
@ -65,5 +71,6 @@ exports.BENftMall_INSTANCE_NAME = BENftMall_INSTANCE_NAME;
exports.GameItemMarket_INSTANCE_NAME = GameItemMarket_INSTANCE_NAME;
exports.GameItemMall_INSTANCE_NAME = GameItemMall_INSTANCE_NAME;
exports.Genesis_INSTANCE_NAME = Genesis_INSTANCE_NAME;
exports.GoldBullion_INSTANCE_NAME = GoldBullion_INSTANCE_NAME;
exports.getNftNameByTokenType = getNftNameByTokenType;

View File

@ -66,6 +66,7 @@ async function activate721Nft(session) {
const {err, seqId} = await transModel.add(account, session.requestToJson(), netId);
if (err) {
console.log(err);
session.rspErr(500, 'server internal error');
return;
}