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

esdts-improvements #270

Merged
merged 14 commits into from
Apr 11, 2024
Merged

esdts-improvements #270

merged 14 commits into from
Apr 11, 2024

Conversation

BeniaminDrasovean
Copy link
Contributor

No description provided.

// NonFungibleV2 defines the token type for ESDT non fungible tokens
NonFungibleV2
// Meta defines the token type for ESDT meta tokens
Meta
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We have SFT as well. Plus bring here the DynamicNFT, DynamicSFT, DynamicMeta as well.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Added.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

change the order of semiFungible and Meta - maybe add MetaFungible - to have a complete name.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

+1

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done.

return uint32(NonFungible), nil
case NonFungibleESDTv2:
return uint32(NonFungibleV2), nil
case MetaESDT:
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

add the more types, dynamics as well.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

MetaFungibleESDT

@BeniaminDrasovean BeniaminDrasovean changed the title add NonFungibleESDTv2 to constants update estd token constants Nov 2, 2023
@BeniaminDrasovean BeniaminDrasovean changed the base branch from rc/v1.6.0 to rc/v1.7.0 November 23, 2023 10:12
@BeniaminDrasovean BeniaminDrasovean changed the title update estd token constants esdts-improvements Nov 23, 2023
sasurobert
sasurobert previously approved these changes Nov 28, 2023
@@ -177,3 +177,32 @@ func ConvertToEvenHexBigInt(value *big.Int) string {

return str
}

// ConvertESDTTypeToUint32 converts the esdt type to uint32
func ConvertESDTTypeToUint32(esdtType string) (uint32, error) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

tests?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Added.

// NonFungibleV2 defines the token type for ESDT non fungible tokens
NonFungibleV2
// Meta defines the token type for ESDT meta tokens
Meta
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

+1

@sasurobert sasurobert changed the base branch from rc/v1.7.0 to rc/v1.7.next1 March 6, 2024 13:34
@sasurobert sasurobert marked this pull request as ready for review March 6, 2024 13:34
@sasurobert sasurobert merged commit 60f5662 into rc/v1.7.next1 Apr 11, 2024
2 checks passed
@sasurobert sasurobert deleted the update-estd-token-constants branch April 11, 2024 09:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants