-
Notifications
You must be signed in to change notification settings - Fork 27
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* move `GetTokenVersion` and `configuration.TokenVersion` from https://github.com/trustwallet/backend/blob/master/internal/repository/postgres/models/token.go#L57-L90 to `go-primitives` * Rename `TokenVersionNext` to `TokenVersionUndefined`, and add test to make sure every tokentype has a tokenversion implemented * * Change GetTokenVersion signature so that it can return error now * Added Token Versions for KRC20, RONIN, BEP8, WAVES, STELLAR, NRC20 * Return ErrUnknownTokenType when given string is not a supported tokenType * Remove unused TokenVersionLatest
- Loading branch information
Teddy Budiono Hermawan
authored
Jun 3, 2022
1 parent
a7d8b52
commit 8cc2a53
Showing
2 changed files
with
184 additions
and
1 deletion.
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