user minter factory 增加事件
This commit is contained in:
parent
0c02247e4f
commit
a0c5f7615f
File diff suppressed because one or more lines are too long
@ -16,6 +16,14 @@ contract UserMinterFactory is
|
|||||||
|
|
||||||
address public executor;
|
address public executor;
|
||||||
|
|
||||||
|
event TokenMinted(
|
||||||
|
address indexed nftAddress,
|
||||||
|
address indexed to,
|
||||||
|
uint256 indexed nonce,
|
||||||
|
uint256 startTime,
|
||||||
|
uint256[] ids
|
||||||
|
);
|
||||||
|
|
||||||
constructor() HasSignature("UserMinterFactory", "1") {}
|
constructor() HasSignature("UserMinterFactory", "1") {}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -40,6 +48,7 @@ contract UserMinterFactory is
|
|||||||
checkSigner(executor, criteriaMessageHash, signature);
|
checkSigner(executor, criteriaMessageHash, signature);
|
||||||
IAsset(nftAddress).batchMint(to, tokenIds);
|
IAsset(nftAddress).batchMint(to, tokenIds);
|
||||||
_useSignature(signature);
|
_useSignature(signature);
|
||||||
|
emit TokenMinted(nftAddress, to, saltNonce, startTime, tokenIds);
|
||||||
}
|
}
|
||||||
|
|
||||||
function addTokenSupport(address nftToken) external onlyOwner {
|
function addTokenSupport(address nftToken) external onlyOwner {
|
||||||
|
@ -51,6 +51,6 @@
|
|||||||
"name": "UserMinterFactory",
|
"name": "UserMinterFactory",
|
||||||
"type": "logic",
|
"type": "logic",
|
||||||
"json": "assets/contracts/UserMinterFactory.json",
|
"json": "assets/contracts/UserMinterFactory.json",
|
||||||
"address": "0x014ea60aD9842fb28d3B0BfeCb1bb8EF46c17E34"
|
"address": "0x0973C4ecDd44Aad50A7Dbe5fa450e7b6242C3a1d"
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
|
Loading…
x
Reference in New Issue
Block a user