MTthoas / Dex

Dex website project
5 stars 1 forks source link

[BC] Create contract: TokenManager #59

Closed Ronfflex closed 6 months ago

Ronfflex commented 6 months ago

Contract to manage the creation and listing of different tokens (ERC-20 or ERC-721 standards).

Create a function (listToken) that allows the contract owner or authorized administrators to list a new token on the platform. This function should validate the token contract address, store the token information in the appropriate data structure, and emit an event for token listing.

Create a function (delistToken) that allows the contract owner or authorized administrators to delist a token from the platform. This function should remove the token information from the appropriate data structure and emit an event for token delisting.

Create functions to retrieve information about listed tokens, such as token name, symbol, and other relevant metadata. Provide functions to retrieve a list of all listed token addresses or IDs.

Don't forget to add Event, Error handling and Documentation.

MTthoas commented 6 months ago

Put screens in your futures PR approving your code and showing that features. For every features that can be cool

Ronfflex commented 6 months ago

image

image

Need to find the exact 'expectRevert'. but how ?

Ronfflex commented 6 months ago

image

More ideas of tests ?

Ronfflex commented 6 months ago

Used ERC-20 standard