-
Notifications
You must be signed in to change notification settings - Fork 22
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: add more function to eventNFT (#65)
- Loading branch information
1 parent
4b239c9
commit e426af4
Showing
2 changed files
with
21 additions
and
18 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,11 @@ | ||
use starknet::ContractAddress; | ||
|
||
/// @title Event NFT Interface | ||
/// @notice Interface for minting and burning event-specific NFTs | ||
/// @dev Implements basic NFT functionality for event attendance tracking | ||
#[starknet::interface] | ||
pub trait IEventNFT<TContractState> { | ||
fn mint_nft(ref self: TContractState, user_address: ContractAddress) -> u256; | ||
fn burn_nft(ref self: TContractState, user_address: ContractAddress, token_id: u256); | ||
fn get_user_token_id(self: @TContractState, user_address: ContractAddress) -> u256; | ||
fn name(self: @TContractState) -> ByteArray; | ||
fn symbol(self: @TContractState) -> ByteArray; | ||
fn token_uri(self: @TContractState, token_id: u256) -> ByteArray; | ||
} |