diff --git a/server/bin_dev/web3bcspider/config/web3bcspider.cluster.json b/server/bin_dev/web3bcspider/config/web3bcspider.cluster.json index 908d905..3d59605 100644 --- a/server/bin_dev/web3bcspider/config/web3bcspider.cluster.json +++ b/server/bin_dev/web3bcspider/config/web3bcspider.cluster.json @@ -57,6 +57,16 @@ "contract_name": "FounderTag", "event_name": "Transfer", "init_block": 5070523 + }, + { + "contract_name": "NFTLock", + "event_name": "Lock", + "init_block": 5070523 + }, + { + "contract_name": "NFTLock", + "event_name": "UnLock", + "init_block": 5070523 } ], "refresh_erc721": [ diff --git a/server/common/bcconst.js b/server/common/bcconst.js index f1f5b19..2397831 100644 --- a/server/common/bcconst.js +++ b/server/common/bcconst.js @@ -10,6 +10,7 @@ const BC_NFT_PLANET = 8; const BC_NFT_EXPLORER = 9; const BC_NFT_GOLD_BULLION = 11; const BC_NFT_NORMAL_HERO = 12; +const BC_NFT_FOUNDER_TAG = 13; const BC_FUNC_CREATION = 1; 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_GOLD_BULLION = BC_NFT_GOLD_BULLION; 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_GUILD = BC_FUNC_GUILD; diff --git a/server/common/contract.js b/server/common/contract.js index da707ab..3aa8634 100644 --- a/server/common/contract.js +++ b/server/common/contract.js @@ -17,6 +17,7 @@ const GameItemMarket_INSTANCE_NAME = 'GameItemMarket'; const GameItemMall_INSTANCE_NAME = 'GameItemMall'; const Genesis_INSTANCE_NAME = 'Genesis'; const GoldBullion_INSTANCE_NAME = 'GoldBrick'; +const FounderTag_INSTANCE_NAME = 'FounderTag'; function getNftNameByTokenType(tokenType) { switch (Number(tokenType)) { @@ -55,6 +56,16 @@ function getNftNameByTokenType(tokenType) { return NORMAL_HERO_INSTANCE_NAME; } 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: { return ''; @@ -79,5 +90,6 @@ 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.FounderTag_INSTANCE_NAME = FounderTag_INSTANCE_NAME; exports.getNftNameByTokenType = getNftNameByTokenType;