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

memba_bridge_v1 package

Overview

Package memba_bridge_v1 governs the ten Memba application realms published before memba_gov. It becomes each app's admin through the app's own two-step handover, so the apps' code does not change, and turns memba_gov approvals into the app's owner-only calls.

Every governed entrypoint is a direct call by a seated member. It reads the app's live pre-state, encodes it with the call's arguments and the app's tenure (how many times the bridge has accepted it), and consumes exactly that approval from memba_gov before calling the app: an approval voted on another state, app, action, argument or tenure never matches. Action ids are "<app>.<Op>"; the invalidation scope is the app, or an object of it where actions are independent.

Accept, ExpirePause and the reads need no vote. EmergencyPause needs a seated member, no vote, and expires by itself. Approval tells a proposer exactly what an entrypoint call would consume, from the same code.

Function

Approval

func Approval(call string) string

Approval returns, as JSON, the proposal a governed entrypoint call would consume if made now: target this realm, with the action, args, scope and minimum class given. call is the entrypoint's name and its arguments after pid, daoauth-encoded in order (strings s:, addresses a:, integers i: or u:, booleans b:). It refuses a call its entrypoint would refuse before voting, and holds only while the state it binds is unchanged.

Param

Command

gnokey query vm/qeval -remote "https://rpc.gno.land" -data "gno.land/r/samcrew/memba_bridge_v1.Approval()"

Result