← Back to Realms

Realm

gno.land/r/gnoswap/common/v1

Overview

Realm Path
gno.land/r/gnoswap/common/v1
Exported Functions
1
State Entries
4
Source Files
7
Total Package Entries
10

Exported Functions

1 exported function

State

4 state entries

Source Code

FILES
errors.gno
go
1package common
2
3import (
4	"gno.land/p/nt/ufmt/v0"
5)
6
7const (
8	errNotRegistered       = "[GNOSWAP-COMMON-001] token is not registered"
9	errNotHandleNativeCoin = "[GNOSWAP-COMMON-002] handle native coin is not allowed"
10	errInvalidTokenKey     = "[GNOSWAP-COMMON-003] invalid token key"
11)
12
13func newErrorWithDetail(message string, detail string) string {
14	return ufmt.Errorf("%s || %s", message, detail).Error()
15}
16

Raw Package Data

Raw JSON data