Search Apps Documentation Source Content File Folder Download Copy Actions Download State String Boolean Number Struct Map Slice Pointer Function Closure Reference Nil Package Type Interface Unknown

v1 state

Back to all declarations

errNotRegistered

untyped string

Value

"[GNOSWAP-COMMON-001] token is not registered"

errNotHandleNativeCoin

untyped string

Value

"[GNOSWAP-COMMON-002] handle native coin is not allowed"

errInvalidTokenKey

untyped string

Value

"[GNOSWAP-COMMON-003] invalid token key"

newErrorWithDetail

func(message string, detail string) string
Open
OID
09b476…9466:3
newErrorWithDetail details

Inspect func

commonV1

type

commonV1 executes token operations against gno.land/r/nt/grc20reg/v0.

Value

v1.commonV1

NewCommonV1

func() common.ICommon

NewCommonV1 returns the common implementation backed by the registered GRC20 token registry. Returns: - implementation: new ICommon implementation instance

Open
OID
09b476…9466:8
NewCommonV1 details

Inspect func

isTokenKeyChar

func(c int32) bool

Token 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.

Open
OID
09b476…9466:10
isTokenKeyChar details

Inspect func

validateTokenKey

func(tokenKey string) .uverse.error
Open
OID
09b476…9466:12
validateTokenKey details

Inspect func
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
NewCommonV1 : func() common.ICommon Inspect
isTokenKeyChar : func(c int32) bool Inspect
validateTokenKey : func(tokenKey string) .uverse.error Inspect