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 state

Back to all declarations

Grant

func(pid uint64, app string, who .uverse.address)
Open
OID
07379d…debd:3
Grant details

Inspect func

Revoke

func(pid uint64, app string, who .uverse.address)
Open
OID
07379d…debd:5
Revoke details

Inspect func

role

func(pid uint64, app string, who .uverse.address, grant bool)
Open
OID
07379d…debd:6
role details

Inspect func

rolePlan

func(app string, who .uverse.address, grant bool) memba_bridge_v1.plan
Open
OID
07379d…debd:7
rolePlan details

Inspect func

hasRole

func(app string, who .uverse.address) bool
Open
OID
07379d…debd:8
hasRole details

Inspect func

Curate

func(pid uint64, op string, pkgPath string, reason string)

Curate runs a curator action on one listing: approve, reject (with a reason), delist, restore or clearflags. Every approval binds the listing's status; approve and restore, which publish, also bind its content, and clearflags binds the flags it clears. Editing or flagging a listing thus cannot void a reject or delist vote, and cannot slip new content past one.

Open
OID
07379d…debd:9
Curate details

Inspect func

curatePlan

func(op string, pkgPath string, reason string) memba_bridge_v1.plan
Open
OID
07379d…debd:10
curatePlan details

Inspect func

SetRegistrationFee

func(pid uint64, fee int64)
Open
OID
07379d…debd:11
SetRegistrationFee details

Inspect func

registrationFeePlan

func(fee int64) memba_bridge_v1.plan
Open
OID
07379d…debd:12
registrationFeePlan details

Inspect func

SetTreasury

func(pid uint64, app string, addr .uverse.address)

SetTreasury points the fees of market\_config (which escrow also pays into) or of the App Store at addr.

Open
OID
07379d…debd:13
SetTreasury details

Inspect func

treasuryPlan

func(app string, addr .uverse.address) memba_bridge_v1.plan
Open
OID
07379d…debd:14
treasuryPlan details

Inspect func

SetFee

func(pid uint64, lane string, bps int64)
Open
OID
07379d…debd:15
SetFee details

Inspect func

feePlan

func(lane string, bps int64) memba_bridge_v1.plan
Open
OID
07379d…debd:16
feePlan details

Inspect func

ResolveDispute

func(pid uint64, contractID string, milestone int, refund bool)

ResolveDispute settles one disputed milestone: refund pays the client the whole amount, otherwise the freelancer is paid less the fee. Either way escrow pays out at most the milestone's amount, which is checked. A milestone is disputed at most once (a resolution is final); binding the height of that dispute means no approval can be voted before it exists.

Open
OID
07379d…debd:17
ResolveDispute details

Inspect func

disputePlan

func(contractID string, milestone int, refund bool) (memba_bridge_v1.plan, int64)

disputePlan returns the approval and the milestone's amount.

Open
OID
07379d…debd:18
disputePlan details

Inspect func

ProposeFeeRecipient

func(pid uint64, addr .uverse.address)

ProposeFeeRecipient stages escrow's fallback fee recipient, used only when market\_config's treasury is unusable.

Open
OID
07379d…debd:20
ProposeFeeRecipient details

Inspect func

feeRecipientPlan

func(addr .uverse.address) memba_bridge_v1.plan
Open
OID
07379d…debd:21
feeRecipientPlan details

Inspect func

CancelFeeRecipient

func(pid uint64)
Open
OID
07379d…debd:22
CancelFeeRecipient details

Inspect func

cancelFeeRecipientPlan

func() memba_bridge_v1.plan
Open
OID
07379d…debd:23
cancelFeeRecipientPlan details

Inspect func

HideReview

func(pid uint64, id uint64)
Open
OID
07379d…debd:24
HideReview details

Inspect func

HideComment

func(pid uint64, id uint64)
Open
OID
07379d…debd:25
HideComment details

Inspect func

Unhide

func(pid uint64, id uint64)

Unhide shows an item again and dismisses its flags.

Open
OID
07379d…debd:26
Unhide details

Inspect func

moderate

func(pid uint64, op string, id uint64)

moderate binds the item's kind and visibility; Unhide, which shows the item again, also binds its content, so an author editing it can neither void a hide vote nor slip new text past an unhide vote.

Open
OID
07379d…debd:27
moderate details

Inspect func

moderationPlan

func(op string, id uint64) memba_bridge_v1.plan
Open
OID
07379d…debd:28
moderationPlan details

Inspect func

SetQuestSigner

func(pid uint64, pubKeyHex string)

SetQuestSigner rotates the key every quest voucher is checked against.

Open
OID
07379d…debd:29
SetQuestSigner details

Inspect func

signerPlan

func(pubKeyHex string) memba_bridge_v1.plan
Open
OID
07379d…debd:30
signerPlan details

Inspect func

AddMember

func(pid uint64, app string, addr .uverse.address, roles string)

AddMember adds a new member; it never rewrites an existing member's roles.

Open
OID
07379d…debd:31
AddMember details

Inspect func

RemoveMember

func(pid uint64, app string, addr .uverse.address)
Open
OID
07379d…debd:32
RemoveMember details

Inspect func

SetRoles

func(pid uint64, app string, addr .uverse.address, roles string)
Open
OID
07379d…debd:33
SetRoles details

Inspect func

member

func(pid uint64, app string, op string, who .uverse.address, roles string)
Open
OID
07379d…debd:34
member details

Inspect func

memberPlan

func(app string, op string, who .uverse.address, roles string) memba_bridge_v1.plan
Open
OID
07379d…debd:35
memberPlan details

Inspect func

validRoles

func(r string) bool

validRoles accepts a non-empty, ordered, duplicate-free subset of admin,dev,ops,member.

Open
OID
07379d…debd:36
validRoles details

Inspect func

CreateChannel

func(pid uint64, app string, name string, description string, ctype string)

CreateChannel adds a channel. Channels are permanent (at most 20).

Open
OID
07379d…debd:37
CreateChannel details

Inspect func

channelPlan

func(app string, name string, description string, ctype string) memba_bridge_v1.plan
Open
OID
07379d…debd:38
channelPlan details

Inspect func

channelName

func(name string) bool

channelName is the apps' own channel-name rule.

Open
OID
07379d…debd:39
channelName details

Inspect func

appMarket

untyped string

Value

"memba_market_config"

appEscrow

untyped string

Value

"escrow_v4"

appAppstore

untyped string

Value

"memba_appstore_v3"

appReviews

untyped string

Value

"memba_reviews_v2"

appQuest

untyped string

Value

"memba_quest_attestation_v1"

appArcade

untyped string

Value

"memba_arcade_leaderboard_v1"

appBadges

untyped string

Value

"gnobuilders_badges_v2"

appFeed

untyped string

Value

"memba_feed_v1"

appChannels

untyped string

Value

"memba_dao_channels_v2"

appFeedback

untyped string

Value

"memba_feedback_v2"

self

.uverse.address

Value

<gnolang.StringValue>

protected

map[.uverse.address]bool
Open
OID
07379d…debd:44
protected details

Inspect map

tenure

map[string]uint64

// app -> times the bridge accepted it

Open
OID
07379d…debd:46
tenure details

Inspect map

pausedUntil

map[string]time.Time

// app -> end of the bridge's pause

Open
OID
07379d…debd:48
pausedUntil details

Inspect map

episodes

map[string]uint64

// app -> pauses the bridge started

Open
OID
07379d…debd:50
episodes details

Inspect map

lastPause

map[string]time.Time

// member id -> last emergency pause

Open
OID
07379d…debd:52
lastPause details

Inspect map

plan

type

A plan is the approval one governed call needs: action app.op, args (completed by the app's tenure, which voids approvals voted while the app was away), the invalidation scope and the minimum class.

Value

memba_bridge_v1.plan

newPlan

func(app string, op string, args *daoauth.Args, scope string, class int) memba_bridge_v1.plan

newPlan refuses an approval for an app the bridge does not govern now: no call could consume it.

Open
OID
07379d…debd:56
newPlan details

Inspect func

approve

func(pid uint64, p memba_bridge_v1.plan)

approve consumes proposal pid for p; memba\_gov checks the executor, the bridge's direct caller, is a seated member.

Open
OID
07379d…debd:57
approve details

Inspect func

Approval

func(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.

Open
OID
07379d…debd:58
Approval details

Inspect func

call

type

call reads an Approval call's fields in order, each with its tag.

Value

memba_bridge_v1.call

parseCall

func(s string) *memba_bridge_v1.call
Open
OID
07379d…debd:59
parseCall details

Inspect func

quote

func(s string) string

quote returns s, printable ASCII, as a JSON string with \< > & escaped.

Open
OID
07379d…debd:60
quote details

Inspect func

arg

func(a .uverse.address) .uverse.address
Open
OID
07379d…debd:62
arg details

Inspect func

canonical

func(a .uverse.address) .uverse.address
Open
OID
07379d…debd:63
canonical details

Inspect func

Accept

func(app string)

Accept takes the admin role the 2-of-3 nominated the bridge for. It needs no vote: the nomination is the decision. A paused app is refused: only a pause the bridge started can be ended by its rules.

Open
OID
07379d…debd:64
Accept details

Inspect func

TransferAdmin

func(pid uint64, app string, to .uverse.address)

TransferAdmin stages to as the app's next admin: the 2-of-3, a successor bridge, or anyone the DAO names. The recipient accepts by its own call.

Open
OID
07379d…debd:65
TransferAdmin details

Inspect func

transferPlan

func(app string, to .uverse.address) memba_bridge_v1.plan
Open
OID
07379d…debd:66
transferPlan details

Inspect func

CancelTransfer

func(pid uint64, app string)

CancelTransfer withdraws a staged admin before the recipient accepts.

Open
OID
07379d…debd:67
CancelTransfer details

Inspect func

cancelPlan

func(app string) memba_bridge_v1.plan
Open
OID
07379d…debd:68
cancelPlan details

Inspect func

governs

func(app string) bool

governs reports whether the bridge is app's admin now.

Open
OID
07379d…debd:69
governs details

Inspect func

pendingAdmin

func(app string) string
Open
OID
07379d…debd:70
pendingAdmin details

Inspect func

EmergencyPause

func(app string)

EmergencyPause pauses app for 7 days, without a vote. Each member may use it once per 30 days, so one key cannot keep an app closed.

Open
OID
07379d…debd:71
EmergencyPause details

Inspect func

SetPause

func(pid uint64, app string, until int64)

SetPause ends the bridge's pause of app now (until = 0) or keeps app paused until the unix time until, at most 30 days ahead. The approval names the pause episode, so it never ends a later pause.

Open
OID
07379d…debd:72
SetPause details

Inspect func

pausePlan

func(app string, until int64) memba_bridge_v1.plan
Open
OID
07379d…debd:73
pausePlan details

Inspect func

ExpirePause

func(app string)

ExpirePause lets anyone end the bridge's pause of app once it is over. A SetPause that keeps app paused longer must execute before then. Once the bridge no longer governs app, its record no longer applies: anyone drops it, and the app, now its new admin's, is left as it is.

Open
OID
07379d…debd:74
ExpirePause details

Inspect func

setPaused

func(app string, on bool)
Open
OID
07379d…debd:77
setPaused details

Inspect func

PausedUntil

func(app string) int64

PausedUntil returns the unix end of the bridge's pause of app, or 0 (also once the bridge no longer governs app).

Open
OID
07379d…debd:79
PausedUntil details

Inspect func

PauseEpisode

func(app string) uint64

PauseEpisode returns how many pauses of app the bridge has started; a SetPause approval binds it.

Open
OID
07379d…debd:80
PauseEpisode details

Inspect func

Tenure

func(app string) uint64

Tenure returns how many times the bridge has accepted app; every approval for app binds it as its last argument.

Open
OID
07379d…debd:81
Tenure details

Inspect func

EmergencyPauseFor

time.Duration

// escrow keeps exits closed this long

Value

<zero>

PauseAllowance

time.Duration

// one emergency pause per member per period

Value

<zero>

MaxPauseAhead

time.Duration

The pause durations, in their own file so a node fixture, which cannot wait days, can replace this file alone; TestProductionDurations pins them.

Value

<zero>
Grant : func(pid uint64, app string, who .uverse.address) Inspect
Revoke : func(pid uint64, app string, who .uverse.address) Inspect
role : func(pid uint64, app string, who .uverse.address, grant bool) Inspect
rolePlan : func(app string, who .uverse.address, grant bool) memba_bridge_v1.plan Inspect
hasRole : func(app string, who .uverse.address) bool Inspect
Curate : func(pid uint64, op string, pkgPath string, reason string) Inspect
curatePlan : func(op string, pkgPath string, reason string) memba_bridge_v1.plan Inspect
SetRegistrationFee : func(pid uint64, fee int64) Inspect
registrationFeePlan : func(fee int64) memba_bridge_v1.plan Inspect
SetTreasury : func(pid uint64, app string, addr .uverse.address) Inspect
treasuryPlan : func(app string, addr .uverse.address) memba_bridge_v1.plan Inspect
SetFee : func(pid uint64, lane string, bps int64) Inspect
feePlan : func(lane string, bps int64) memba_bridge_v1.plan Inspect
ResolveDispute : func(pid uint64, contractID string, milestone int, refund bool) Inspect
disputePlan : func(contractID string, milestone int, refund bool) (memba_bridge_v1.plan, int64) Inspect
escrowBalance : func() int64 Inspect
ProposeFeeRecipient : func(pid uint64, addr .uverse.address) Inspect
feeRecipientPlan : func(addr .uverse.address) memba_bridge_v1.plan Inspect
CancelFeeRecipient : func(pid uint64) Inspect
cancelFeeRecipientPlan : func() memba_bridge_v1.plan Inspect
HideReview : func(pid uint64, id uint64) Inspect
HideComment : func(pid uint64, id uint64) Inspect
Unhide : func(pid uint64, id uint64) Inspect
moderate : func(pid uint64, op string, id uint64) Inspect
moderationPlan : func(op string, id uint64) memba_bridge_v1.plan Inspect
SetQuestSigner : func(pid uint64, pubKeyHex string) Inspect
signerPlan : func(pubKeyHex string) memba_bridge_v1.plan Inspect
AddMember : func(pid uint64, app string, addr .uverse.address, roles string) Inspect
RemoveMember : func(pid uint64, app string, addr .uverse.address) Inspect
SetRoles : func(pid uint64, app string, addr .uverse.address, roles string) Inspect
member : func(pid uint64, app string, op string, who .uverse.address, roles string) Inspect
memberPlan : func(app string, op string, who .uverse.address, roles string) memba_bridge_v1.plan Inspect
validRoles : func(r string) bool Inspect
CreateChannel : func(pid uint64, app string, name string, description string, ctype string) Inspect
channelPlan : func(app string, name string, description string, ctype string) memba_bridge_v1.plan Inspect
channelName : func(name string) bool Inspect
appMarket : untyped string ="memba_market_config"
appEscrow : untyped string ="escrow_v4"
appAppstore : untyped string ="memba_appstore_v3"
appReviews : untyped string ="memba_reviews_v2"
appQuest : untyped string ="memba_quest_attestation_v1"
appArcade : untyped string ="memba_arcade_leaderboard_v1"
appBadges : untyped string ="gnobuilders_badges_v2"
appFeed : untyped string ="memba_feed_v1"
appChannels : untyped string ="memba_dao_channels_v2"
appFeedback : untyped string ="memba_feedback_v2"
self : .uverse.address =<gnolang.StringValue>
apps : []string (len=10) Inspect
protected : map[.uverse.address]bool Inspect
tenure : map[string]uint64 Inspect
pausedUntil : map[string]time.Time Inspect
episodes : map[string]uint64 Inspect
lastPause : map[string]time.Time Inspect
init.53 : func() Inspect
direct : func() .uverse.address Inspect
plan : type =memba_bridge_v1.plan
newPlan : func(app string, op string, args *daoauth.Args, scope string, class int) memba_bridge_v1.plan Inspect
approve : func(pid uint64, p memba_bridge_v1.plan) Inspect
Approval : func(call string) string Inspect
call : type =memba_bridge_v1.call
parseCall : func(s string) *memba_bridge_v1.call Inspect
quote : func(s string) string Inspect
checkApp : func(app string) Inspect
arg : func(a .uverse.address) .uverse.address Inspect
canonical : func(a .uverse.address) .uverse.address Inspect
Accept : func(app string) Inspect
TransferAdmin : func(pid uint64, app string, to .uverse.address) Inspect
transferPlan : func(app string, to .uverse.address) memba_bridge_v1.plan Inspect
CancelTransfer : func(pid uint64, app string) Inspect
cancelPlan : func(app string) memba_bridge_v1.plan Inspect
governs : func(app string) bool Inspect
pendingAdmin : func(app string) string Inspect
EmergencyPause : func(app string) Inspect
SetPause : func(pid uint64, app string, until int64) Inspect
pausePlan : func(app string, until int64) memba_bridge_v1.plan Inspect
ExpirePause : func(app string) Inspect
hasPause : func(app string) bool Inspect
isPaused : func(app string) bool Inspect
setPaused : func(app string, on bool) Inspect
unixOf : func(t time.Time) int64 Inspect
PausedUntil : func(app string) int64 Inspect
PauseEpisode : func(app string) uint64 Inspect
Tenure : func(app string) uint64 Inspect
Render : func(string) string Inspect
EmergencyPauseFor : time.Duration =<zero>
PauseAllowance : time.Duration =<zero>
MaxPauseAhead : time.Duration =<zero>