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

GetBalanceOf

func(tokenPath string) (int64, .uverse.error)

GetBalanceOf returns the community pool's balance for a registered token. Parameters: - tokenPath: registry key/path of the token contract whose balance is queried Returns: - balance: token units held by the configured community-pool address, or 0 when validation fails - err: nil when tokenPath is valid and registered; non-nil for an invalid or unregistered tokenPath

Open
OID
0050b0…6eac:3
GetBalanceOf details

Inspect func

TransferToken

func(tokenPath string, to .uverse.address, amount int64)

TransferToken transfers token units from the community pool to an address. Parameters: - cur: current realm context; callers use cross(cur) when crossing into this realm - tokenPath: registry key/path of the registered token to transfer - to: recipient address for the token units - amount: number of token units to transfer; transfer failure panics through the safe wrapper Only callable by admin or governance while withdrawals are not halted. Governance is the recommended normal route. While governance is not yet mature, admin access is retained for emergency-only use as an operational policy, not a contract-enforced condition. Admin calls do not require an approved proposal; emergency status is not checked and admin access does not expire automatically.

Open
OID
0050b0…6eac:5
TransferToken details

Inspect func

Render

func(path string) string

Render shows the authorities and withdrawal gate used by treasury transfers.

Open
OID
0050b0…6eac:6
Render details

Inspect func
GetBalanceOf : func(tokenPath string) (int64, .uverse.error) Inspect
TransferToken : func(tokenPath string, to .uverse.address, amount int64) Inspect
Render : func(path string) string Inspect