errNotRegistered
untyped stringValue
"[GNOSWAP-COMMON-001] token is not registered"
errNotHandleNativeCoin
untyped stringValue
"[GNOSWAP-COMMON-002] handle native coin is not allowed"
errInvalidTokenKey
untyped stringValue
"[GNOSWAP-COMMON-003] invalid token key"
newErrorWithDetail
func(message string, detail string) string- OID
- 09b476…9466:3
newErrorWithDetail details
init.4
func()- OID
- 09b476…9466:5
init.4 details
registerCommonV1
func()- OID
- 09b476…9466:7
registerCommonV1 details
commonV1
typecommonV1 executes token operations against gno.land/r/nt/grc20reg/v0.
Value
v1.commonV1
NewCommonV1
func() common.ICommonNewCommonV1 returns the common implementation backed by the registered GRC20 token registry. Returns: - implementation: new ICommon implementation instance
- OID
- 09b476…9466:8
NewCommonV1 details
isTokenKeyChar
func(c int32) boolToken keys ("\<realm path>.\<SYMBOL>") are embedded verbatim in pool paths ("\<key0>:\<key1>:\<fee>") and router routes ("\<pool>\*POOL\*\<pool>,\<route>"), so the key charset is an allowlist rather than a blocklist of separators: package-path characters plus '.' plus the GRC20 symbol charset.
- OID
- 09b476…9466:10
isTokenKeyChar details
validateTokenKey
func(tokenKey string) .uverse.error- OID
- 09b476…9466:12
validateTokenKey details
errNotRegistered
:
untyped string
="[GNOSWAP-COMMON-001] token is not registered"
errNotHandleNativeCoin
:
untyped string
="[GNOSWAP-COMMON-002] handle native coin is not allowed"
errInvalidTokenKey
:
untyped string
="[GNOSWAP-COMMON-003] invalid token key"
newErrorWithDetail : func(message string, detail string) string Inspect
init.4 : func() Inspect
registerCommonV1 : func() Inspect
commonV1
:
type
=v1.commonV1