This commit is contained in:
aozhiwei 2023-07-15 15:29:32 +08:00
parent 13177e2439
commit 6ae002a4f6
3 changed files with 44 additions and 0 deletions

View File

@ -0,0 +1,21 @@
const log = require('j7/log');
const utils = require('j7/utils');
const BaseEventProcess = require('../common/BaseEventProcess');
class Transfer extends BaseEventProcess {
async start() {
const returnValues = this.getReturnValues();
await this.add721NftRefresh
(
this.getNetId(),
this.getContractAddress(),
this.getContractName(),
returnValues['tokenId']
);
await this.markOk();
}
}
module.exports = Transfer;

View File

@ -0,0 +1,21 @@
const log = require('j7/log');
const utils = require('j7/utils');
const BaseEventProcess = require('../common/BaseEventProcess');
class Transfer extends BaseEventProcess {
async start() {
const returnValues = this.getReturnValues();
await this.add721NftRefresh
(
this.getNetId(),
this.getContractAddress(),
this.getContractName(),
returnValues['tokenId']
);
await this.markOk();
}
}
module.exports = Transfer;

View File

@ -20,6 +20,8 @@ async function add(clsName, modName) {
async function init() {
await add('HERO.Transfer', 'HERO/transfer');
await add('CHIP.Transfer', 'CHIP/transfer');
await add('Gacha.Transfer', 'Gacha/transfer');
await add('Genesis.Transfer', 'Genesis/transfer');
await add('UserMinterFactory.TokenMinted', 'UserMinterFactory/activate721nft');
await add('BENftMarket.SellOrder', 'BENftMarket/sell_order');
await add('BENftMarket.CancelOrder', 'BENftMarket/cancel_order');