1
This commit is contained in:
parent
96df7903ab
commit
55029efca5
@ -1,18 +1,30 @@
|
||||
const log = require('j7/log');
|
||||
const bcutils = require('j7/bcutils');
|
||||
const utils = require('j7/utils');
|
||||
const BaseEventProcess = require('../common/BaseEventProcess');
|
||||
const metaFactory = require('../../../metadata/factory');
|
||||
|
||||
class Transfer extends BaseEventProcess {
|
||||
|
||||
async start() {
|
||||
const returnValues = this.getReturnValues();
|
||||
const from = returnValues['from'];
|
||||
const to = returnValues['to'];
|
||||
const tokenId = returnValues['tokenId'];
|
||||
|
||||
await this.add721NftRefresh
|
||||
(
|
||||
this.getNetId(),
|
||||
this.getContractAddress(),
|
||||
this.getContractName(),
|
||||
returnValues['tokenId']
|
||||
tokenId
|
||||
);
|
||||
if (bcutils.isSysAddress(from)) {
|
||||
const airDropMeta = metaFactory.getAirDrop(tokenId);
|
||||
if (airDropMeta) {
|
||||
|
||||
}
|
||||
}
|
||||
await this.markOk();
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user