Skip to content

Commit

Permalink
replace RequestExecuted with TokensClaimed
Browse files Browse the repository at this point in the history
  • Loading branch information
nkrishang committed Nov 8, 2022
1 parent 3590f3e commit 8fe55c1
Show file tree
Hide file tree
Showing 2 changed files with 36 additions and 1 deletion.
17 changes: 16 additions & 1 deletion contracts/tiered-drop/TieredDrop.sol
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,19 @@ contract TieredDrop is
/// @dev Mapping from hash(tier, "minted") -> total minted in tier.
mapping(bytes32 => uint256) private totalsForTier;

/*///////////////////////////////////////////////////////////////
Events
//////////////////////////////////////////////////////////////*/

/// @notice Emitted when tokens are claimed via `claimWithSignature`.
event TokensClaimed(
address indexed claimer,
address indexed receiver,
uint256 startTokenId,
uint256 quantityClaimed,
string[] tiersInPriority
);

/*///////////////////////////////////////////////////////////////
Constructor + initializer logic
//////////////////////////////////////////////////////////////*/
Expand Down Expand Up @@ -261,7 +274,9 @@ contract TieredDrop is
// Mint tokens.
transferTokensOnClaim(to, quantity, tiersInPriority);

emit RequestExecuted(_msgSender(), signer, _req);
emit TokensClaimed(_msgSender(), to, tokenIdToMint, quantity, tiersInPriority);

// emit RequestExecuted(_msgSender(), signer, _req);
}

/*///////////////////////////////////////////////////////////////
Expand Down
20 changes: 20 additions & 0 deletions docs/TieredDrop.md
Original file line number Diff line number Diff line change
Expand Up @@ -1336,6 +1336,26 @@ event TokenURIRevealed(uint256 indexed index, string revealedURI)
| index `indexed` | uint256 | undefined |
| revealedURI | string | undefined |

### TokensClaimed

```solidity
event TokensClaimed(address indexed claimer, address indexed receiver, uint256 startTokenId, uint256 quantityClaimed, string[] tiersInPriority)
```

Emitted when tokens are claimed via `claimWithSignature`.



#### Parameters

| Name | Type | Description |
|---|---|---|
| claimer `indexed` | address | undefined |
| receiver `indexed` | address | undefined |
| startTokenId | uint256 | undefined |
| quantityClaimed | uint256 | undefined |
| tiersInPriority | string[] | undefined |

### TokensLazyMinted

```solidity
Expand Down

0 comments on commit 8fe55c1

Please sign in to comment.