Skip to content

Commit

Permalink
GSW-1846 refactor gnft (#443)
Browse files Browse the repository at this point in the history
* fix: remove deprecated requrie from gno.mod
* refactor: use avl.Tree
* refactor: use ownable package to check caller's privilege
* fix: SetTokenURILast should only handle last minted token
* feat: private `setTokenURI` to generate and set uri
* fix: append/remove token id from list
* feat: `SafeTransferFrom` place holder function to satisfy igrc721
* fix: prevent overwrite of tokenURI
* refactor: support grc721 interface

---------

Co-authored-by: Dongwon <[email protected]>
Co-authored-by: 0xTopaz <[email protected]>
Co-authored-by: 0xTopaz <[email protected]>
  • Loading branch information
4 people authored Dec 27, 2024
1 parent 913ed41 commit 3433e61
Show file tree
Hide file tree
Showing 8 changed files with 964 additions and 241 deletions.
5 changes: 4 additions & 1 deletion _deploy/r/gnoswap/gnft/errors.gno
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,10 @@ import (
)

var (
errNoPermission = errors.New("[GNOSWAP-GNFT-001] caller has no permission")
errNoPermission = errors.New("[GNOSWAP-GNFT-001] caller has no permission")
errCannotSetURI = errors.New("[GNOSWAP-GNFT-002] cannot set URI")
errNoTokenForCaller = errors.New("[GNOSWAP-GNFT-003] no token for caller")
errInvalidAddress = errors.New("[GNOSWAP-GNFT-004] invalid addresss")
)

func addDetailToError(err error, detail string) string {
Expand Down
Loading

0 comments on commit 3433e61

Please sign in to comment.