Realm

gno.land/r/gnoswap/access

Render

this realm has no Render() output

Query (read-only)

non-crossing functions · no tx, no wallet needed
AssertHasAnyRole(caller string, roleNames ...string)
AssertIsAdmin(caller string)
AssertIsAdminOrGovernance(caller string)
AssertIsAuthorized(roleName string, caller string)
AssertIsEmission(caller string)
AssertIsGovernance(caller string)
AssertIsGovStaker(caller string)
AssertIsGovXGNS(caller string)
AssertIsLaunchpad(caller string)
AssertIsPool(caller string)
AssertIsPosition(caller string)
AssertIsProtocolFee(caller string)
AssertIsRouter(caller string)
AssertIsStaker(caller string)
AssertIsValidAddress(addr string)
GetAddress(role string) → string, bool
GetRoleAddresses() → map[string].uverse.address
IsAuthorized(role string, caller string) → bool
MustGetAddress(role string) → string

Call functions (state-changing)

signs a tx via Adena
RemoveRole(roleName string)
SetRoleAddress(roleName string, roleAddress string)

All exported functions (22)

show raw signatures
NameParamsReturns
SetRoleAddress [{"Name": "cur", "Type": "interface {.seal func(); Address func() .uverse.address; IsCode func() bool; IsCurrent func() bool; IsEphemeral func() bool; IsUser func() bool; IsUserCall func() bool; IsUserRun func() bool; PkgPath func() string; Previous func() .uverse.realm; String func() string; Sub func(string) .uverse.realm; Subpath func() string}", "Value": ""}, {"Name": "roleName", "Type": "string", "Value": ""}, {"Name": "roleAddress", "Type": "string", "Value": ""}]
RemoveRole [{"Name": "cur", "Type": "interface {.seal func(); Address func() .uverse.address; IsCode func() bool; IsCurrent func() bool; IsEphemeral func() bool; IsUser func() bool; IsUserCall func() bool; IsUserRun func() bool; PkgPath func() string; Previous func() .uverse.realm; String func() string; Sub func(string) .uverse.realm; Subpath func() string}", "Value": ""}, {"Name": "roleName", "Type": "string", "Value": ""}]
IsAuthorized [{"Name": "role", "Type": "string", "Value": ""}, {"Name": "caller", "Type": "string", "Value": ""}] [{"Name": ".res.0", "Type": "bool", "Value": ""}]
GetAddress [{"Name": "role", "Type": "string", "Value": ""}] [{"Name": ".res.0", "Type": "string", "Value": ""}, {"Name": ".res.1", "Type": "bool", "Value": ""}]
GetRoleAddresses [{"Name": ".res.0", "Type": "map[string].uverse.address", "Value": ""}]
MustGetAddress [{"Name": "role", "Type": "string", "Value": ""}] [{"Name": ".res.0", "Type": "string", "Value": ""}]
AssertIsAdminOrGovernance [{"Name": "caller", "Type": "string", "Value": ""}]
AssertIsAdmin [{"Name": "caller", "Type": "string", "Value": ""}]
AssertIsGovernance [{"Name": "caller", "Type": "string", "Value": ""}]
AssertIsGovStaker [{"Name": "caller", "Type": "string", "Value": ""}]
AssertIsRouter [{"Name": "caller", "Type": "string", "Value": ""}]
AssertIsPool [{"Name": "caller", "Type": "string", "Value": ""}]
AssertIsPosition [{"Name": "caller", "Type": "string", "Value": ""}]
AssertIsStaker [{"Name": "caller", "Type": "string", "Value": ""}]
AssertIsLaunchpad [{"Name": "caller", "Type": "string", "Value": ""}]
AssertIsEmission [{"Name": "caller", "Type": "string", "Value": ""}]
AssertIsProtocolFee [{"Name": "caller", "Type": "string", "Value": ""}]
AssertIsGovXGNS [{"Name": "caller", "Type": "string", "Value": ""}]
AssertIsAuthorized [{"Name": "roleName", "Type": "string", "Value": ""}, {"Name": "caller", "Type": "string", "Value": ""}]
AssertHasAnyRole [{"Name": "caller", "Type": "string", "Value": ""}, {"Name": "roleNames", "Type": "...string", "Value": ""}]
AssertIsValidAddress [{"Name": "addr", "Type": "string", "Value": ""}]
AssertIsUser [{"Name": ".arg_0", "Type": "int", "Value": ""}, {"Name": "rlm", "Type": "interface {.seal func(); Address func() .uverse.address; IsCode func() bool; IsCurrent func() bool; IsEphemeral func() bool; IsUser func() bool; IsUserCall func() bool; IsUserRun func() bool; PkgPath func() string; Previous func() .uverse.realm; String func() string; Sub func(string) .uverse.realm; Subpath func() string}", "Value": ""}]

Files

Storage

{
  "raw": "storage: 24438, deposit: 2443800"
}