Are you an LLM? Read llms.txt for a summary of the docs, or llms-full.txt for the full context.
Skip to content

Addr

A Dango account or contract address. NewType("Addr", str) — at runtime it is a plain str.

Definition

Addr = NewType("Addr", str)

Construction

from dango.utils.types import Addr
 
addr = Addr("0x90bc84df68d1aa59a857e04ed529e9a26edbea4f")

Notes

  • The NewType exists for type-checker enforcement. At runtime there is no class — isinstance(addr, Addr) does NOT work; use isinstance(addr, str).
  • Always wrap raw strings in Addr(...) at call sites to keep the type checker happy.

See also