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

accesscontrol source pure

Functions 4

func AssertIsAdminOrigin

1func AssertIsAdminOrigin(isAdmin AuthCheck)
source

AssertIsAdminOrigin checks the transaction signer, not the direct caller realm. Use it only for explicit delegation APIs that intentionally allow code-realm relays.

Types 1

type AuthCheck

func
1type AuthCheck func(address) bool
source

AuthCheck must be owned by the calling realm/package. Do not pass callbacks received from untrusted callers.

Imports 1

  • chain/runtime/unsafe stdlib

Source Files 3