This commit is contained in:
aozhiwei 2024-06-17 14:19:16 +08:00
parent 8dab52631b
commit 83a0c06d38
6 changed files with 48027 additions and 11 deletions

File diff suppressed because it is too large Load Diff

View File

@ -6,16 +6,6 @@
"contract_name": "CFHero", "contract_name": "CFHero",
"event_name": "Transfer", "event_name": "Transfer",
"table_name": "t_721nft_transfer" "table_name": "t_721nft_transfer"
},
{
"contract_name": "NFTLock",
"event_name": "Lock",
"table_name": "t_721nft_transfer"
},
{
"contract_name": "NFTLock",
"event_name": "UnLock",
"table_name": "t_721nft_transfer"
} }
] ]
} }

View File

@ -6,7 +6,8 @@
{ {
"net_id": 13473, "net_id": 13473,
"air_drop": [ "air_drop": [
"24060301" "24060301",
"24060302"
] ]
} }
] ]

File diff suppressed because it is too large Load Diff

View File

@ -15,11 +15,13 @@ class Transfer extends BaseEventProcess {
await this.mustBeMint(to, tokenId, bcconst.BC_NFT_HERO); await this.mustBeMint(to, tokenId, bcconst.BC_NFT_HERO);
if (bcutils.isSysAddress(from)) { if (bcutils.isSysAddress(from)) {
console.log(tokenId, this.getNetId());
const airDropMeta = metaFactory.getAirDrop( const airDropMeta = metaFactory.getAirDrop(
tokenId, tokenId,
this.getNetId(), this.getNetId(),
bcconst.BC_NFT_HERO, bcconst.BC_NFT_HERO,
this.getContractAddress()); this.getContractAddress());
console.log(airDropMeta);
if (airDropMeta) { if (airDropMeta) {
await this.apiMint(to, tokenId, airDropMeta); await this.apiMint(to, tokenId, airDropMeta);
} else { } else {

View File

@ -10,6 +10,9 @@ const common = require('./common');
const startTokenId = 6240603010000001; const startTokenId = 6240603010000001;
const endTokenId = 6240603010003001; const endTokenId = 6240603010003001;
//const startTokenId = 6240603010010001;
//const endTokenId = 6240603010013001;
function mint() { function mint() {
let seqId = 1; let seqId = 1;
const outJson = []; const outJson = [];