Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

document erc721 burnScheduledPrefix #35

Merged
merged 2 commits into from
Apr 6, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@ extensions:
contractAddress: "0x01...ef"
startBlockHeight: 7654321
scheduledPrefix: "newnft"
# optional
burnScheduledPrefix: "nftburn"
```

### Meaning
Expand All @@ -32,6 +34,20 @@ where:
- `tokenId` is the ID of the newly minted token (in base 10),
- `mintData` is the string emitted when the NFT was minted for PaimaERC721 NFTs (used for specifying the type of Stateful NFT). For classical ERC721 contracts, it will always be an empty string.


**If** `burnScheduledPrefix` is set, burn events are also emitted with the format:

```
prefix|owner|tokenId
```

where:

- `prefix` is the value of `burnScheduledPrefix` in the config file.
- `owner` is the address that burned the token.
- `tokenId` is the ID of the burned token (in base 10),


### Utility functions

- `getNftOwner`, to fetch the address which owns the NFT with the specified token ID:
Expand Down
Loading