This commit is contained in:
aozhiwei 2024-07-18 14:47:07 +08:00
parent 862dc0155f
commit 9d44e82274
3 changed files with 24 additions and 0 deletions

View File

@ -57,6 +57,16 @@
"contract_name": "FounderTag", "contract_name": "FounderTag",
"event_name": "Transfer", "event_name": "Transfer",
"init_block": 5070523 "init_block": 5070523
},
{
"contract_name": "NFTLock",
"event_name": "Lock",
"init_block": 5070523
},
{
"contract_name": "NFTLock",
"event_name": "UnLock",
"init_block": 5070523
} }
], ],
"refresh_erc721": [ "refresh_erc721": [

View File

@ -10,6 +10,7 @@ const BC_NFT_PLANET = 8;
const BC_NFT_EXPLORER = 9; const BC_NFT_EXPLORER = 9;
const BC_NFT_GOLD_BULLION = 11; const BC_NFT_GOLD_BULLION = 11;
const BC_NFT_NORMAL_HERO = 12; const BC_NFT_NORMAL_HERO = 12;
const BC_NFT_FOUNDER_TAG = 13;
const BC_FUNC_CREATION = 1; const BC_FUNC_CREATION = 1;
const BC_FUNC_GUILD = 3; const BC_FUNC_GUILD = 3;
@ -38,6 +39,7 @@ exports.BC_NFT_PLANET = BC_NFT_PLANET;
exports.BC_NFT_EXPLORER = BC_NFT_EXPLORER; exports.BC_NFT_EXPLORER = BC_NFT_EXPLORER;
exports.BC_NFT_GOLD_BULLION = BC_NFT_GOLD_BULLION; exports.BC_NFT_GOLD_BULLION = BC_NFT_GOLD_BULLION;
exports.BC_NFT_NORMAL_HERO = BC_NFT_NORMAL_HERO; exports.BC_NFT_NORMAL_HERO = BC_NFT_NORMAL_HERO;
exports.BC_NFT_FOUNDER_TAG = BC_NFT_FOUNDER_TAG;
exports.BC_FUNC_CREATION = BC_FUNC_CREATION; exports.BC_FUNC_CREATION = BC_FUNC_CREATION;
exports.BC_FUNC_GUILD = BC_FUNC_GUILD; exports.BC_FUNC_GUILD = BC_FUNC_GUILD;

View File

@ -17,6 +17,7 @@ const GameItemMarket_INSTANCE_NAME = 'GameItemMarket';
const GameItemMall_INSTANCE_NAME = 'GameItemMall'; const GameItemMall_INSTANCE_NAME = 'GameItemMall';
const Genesis_INSTANCE_NAME = 'Genesis'; const Genesis_INSTANCE_NAME = 'Genesis';
const GoldBullion_INSTANCE_NAME = 'GoldBrick'; const GoldBullion_INSTANCE_NAME = 'GoldBrick';
const FounderTag_INSTANCE_NAME = 'FounderTag';
function getNftNameByTokenType(tokenType) { function getNftNameByTokenType(tokenType) {
switch (Number(tokenType)) { switch (Number(tokenType)) {
@ -55,6 +56,16 @@ function getNftNameByTokenType(tokenType) {
return NORMAL_HERO_INSTANCE_NAME; return NORMAL_HERO_INSTANCE_NAME;
} }
break; break;
case bcconst.BC_NFT_NORMAL_HERO:
{
return NORMAL_HERO_INSTANCE_NAME;
}
break;
case bcconst.BC_NFT_FOUNDER_TAG:
{
return FounderTag_INSTANCE_NAME;
}
break;
default: default:
{ {
return ''; return '';
@ -79,5 +90,6 @@ exports.GameItemMarket_INSTANCE_NAME = GameItemMarket_INSTANCE_NAME;
exports.GameItemMall_INSTANCE_NAME = GameItemMall_INSTANCE_NAME; exports.GameItemMall_INSTANCE_NAME = GameItemMall_INSTANCE_NAME;
exports.Genesis_INSTANCE_NAME = Genesis_INSTANCE_NAME; exports.Genesis_INSTANCE_NAME = Genesis_INSTANCE_NAME;
exports.GoldBullion_INSTANCE_NAME = GoldBullion_INSTANCE_NAME; exports.GoldBullion_INSTANCE_NAME = GoldBullion_INSTANCE_NAME;
exports.FounderTag_INSTANCE_NAME = FounderTag_INSTANCE_NAME;
exports.getNftNameByTokenType = getNftNameByTokenType; exports.getNftNameByTokenType = getNftNameByTokenType;