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_weighted_host source pure

Package memba\_weighted\_host hosts the founding policy's governed role actions. This source-only component is not th...

Overview

Package memba_weighted_host hosts the founding policy's governed role actions. This source-only component is not the current memba_dao and grants no external application authority. The owning realm must keep its Host private.

Constants 30

const ArcadePath

1const ArcadePath = "gno.land/r/samcrew/memba_arcade_leaderboard_v1"
source

const BadgesPath

1const BadgesPath = "gno.land/r/samcrew/gnobuilders_badges_v2"
source

const ChannelsPath

1const ChannelsPath = "gno.land/r/samcrew/memba_dao_channels_v2"
source

const FeedPath

1const FeedPath = "gno.land/r/samcrew/memba_feed_v1"
source

const MarketConfigPath

1const MarketConfigPath = "gno.land/r/samcrew/memba_market_config"
source

MarketConfigPath is the sole target of this source-only typed action model. These values do not dispatch an action or grant the host application authority.

const MaxPendingPage

1const MaxPendingPage = 50
source

Ballot reads. Pending pages hold at most MaxPendingPage proposals, and one call examines at most MaxPendingScan proposals before handing back a cursor.

const QuestPath

1const QuestPath = "gno.land/r/samcrew/memba_quest_attestation_v1"
source

const AppstoreAccept, AppstoreReturn, AppstoreAbortReturn, AppstoreAddCurator, AppstoreRemoveCurator, AppstoreFee, AppstoreTreasury, AppstoreUnpause, AppstoreSeal, AppstoreApprove, AppstoreReject, AppstoreDelist, AppstoreRestore, AppstoreClearFlags

 1const (
 2	AppstoreAccept        AppstoreKind = "accept-owner"
 3	AppstoreReturn        AppstoreKind = "return-owner"
 4	AppstoreAbortReturn   AppstoreKind = "abort-return"
 5	AppstoreAddCurator    AppstoreKind = "add-curator"
 6	AppstoreRemoveCurator AppstoreKind = "remove-curator"
 7	AppstoreFee           AppstoreKind = "set-fee"
 8	AppstoreTreasury      AppstoreKind = "set-treasury"
 9	AppstoreUnpause       AppstoreKind = "unpause"
10	AppstoreSeal          AppstoreKind = "seal-import"
11	AppstoreApprove       AppstoreKind = "approve"
12	AppstoreReject        AppstoreKind = "reject"
13	AppstoreDelist        AppstoreKind = "delist"
14	AppstoreRestore       AppstoreKind = "restore"
15	AppstoreClearFlags    AppstoreKind = "clear-flags"
16)
source

const ChannelsAcceptOwner, ChannelsReturnOwner, ChannelsAbortReturn, ChannelsAddMember, ChannelsRemoveMember, ChannelsSetRoles, ChannelsCreateText, ChannelsUnpause

 1const (
 2	ChannelsAcceptOwner  ChannelsActionKind = "accept-owner"
 3	ChannelsReturnOwner  ChannelsActionKind = "return-owner"
 4	ChannelsAbortReturn  ChannelsActionKind = "abort-return"
 5	ChannelsAddMember    ChannelsActionKind = "add-member"
 6	ChannelsRemoveMember ChannelsActionKind = "remove-member"
 7	ChannelsSetRoles     ChannelsActionKind = "set-roles"
 8	ChannelsCreateText   ChannelsActionKind = "create-text-channel"
 9	ChannelsUnpause      ChannelsActionKind = "unpause"
10)
source

const EscrowAcceptOwner, EscrowReturnOwner, EscrowAbortReturn, EscrowUnpause, EscrowRefundClient, EscrowPayFreelancer, EscrowSetFeeRecipient

 1const (
 2	EscrowAcceptOwner   EscrowActionKind = "accept-owner"
 3	EscrowReturnOwner   EscrowActionKind = "return-owner"
 4	EscrowAbortReturn   EscrowActionKind = "abort-return"
 5	EscrowUnpause       EscrowActionKind = "unpause"
 6	EscrowRefundClient  EscrowActionKind = "refund-client"
 7	EscrowPayFreelancer EscrowActionKind = "pay-freelancer"
 8	// EscrowSetFeeRecipient stages a new fallback fee recipient (escrow_v4
 9	// two-step rotation); the staged address accepts with its own transaction.
10	EscrowSetFeeRecipient EscrowActionKind = "set-fee-recipient"
11)
source

const FeedbackAcceptOwner, FeedbackReturnOwner, FeedbackAbortReturn, FeedbackAddMember, FeedbackRemoveMember, FeedbackSetRoles, FeedbackCreateText, FeedbackUnpause

 1const (
 2	FeedbackAcceptOwner  FeedbackActionKind = "accept-owner"
 3	FeedbackReturnOwner  FeedbackActionKind = "return-owner"
 4	FeedbackAbortReturn  FeedbackActionKind = "abort-return"
 5	FeedbackAddMember    FeedbackActionKind = "add-member"
 6	FeedbackRemoveMember FeedbackActionKind = "remove-member"
 7	FeedbackSetRoles     FeedbackActionKind = "set-roles"
 8	FeedbackCreateText   FeedbackActionKind = "create-text-channel"
 9	FeedbackUnpause      FeedbackActionKind = "unpause"
10)
source

Functions 34

func New

1func New(seats []Seat, rlm realm) *Host
source

New must run inside the owning realm's init with its own live realm value. No realm value is persisted; each mutation requires a fresh live frame.

func NewWithMarket

1func NewWithMarket(seats []Seat, policy MarketPolicy, rlm realm) *Host
source

NewWithMarket binds immutable destinations. Keep the Host private; the realm must expose only the reviewed fixed-target adapter, never ConsumeMarket.

func NewWithReviews

1func NewWithReviews(seats []Seat, policy ReviewsPolicy, rlm realm) *Host
source

func MarketFee

1func MarketFee(lane MarketLane, bps int64) MarketAction
source

func NewReviewsPolicy

1func NewReviewsPolicy(dao address, target string, successor address) ReviewsPolicy
source

Types 51

type ApplicationPolicies

struct
 1type ApplicationPolicies struct {
 2	Feedback FeedbackPolicy
 3	Channels ChannelsPolicy
 4	Feed     FeedPolicy
 5	Badges   BadgesPolicy
 6	Escrow   EscrowPolicy
 7	Appstore AppstorePolicy
 8	Arcade   ArcadePolicy
 9	Market   MarketPolicy
10	Reviews  ReviewsPolicy
11	Quest    QuestPolicy
12}
source

ApplicationPolicies is copied and validated by construction. No policy can subsequently be attached or changed on an existing host.

type AppstoreAction

struct
1type AppstoreAction struct {
2	kind         AppstoreKind
3	recipient    address
4	fee          int64
5	path, reason string
6}
source

Methods on AppstoreAction

func Bytes

method on AppstoreAction
1func (a AppstoreAction) Bytes() string
source

func Category

method on AppstoreAction
1func (a AppstoreAction) Category() memba_weighted_policy.Category
source

func Fee

method on AppstoreAction
1func (a AppstoreAction) Fee() int64
source

func IsListing

method on AppstoreAction
1func (a AppstoreAction) IsListing() bool
source

func Kind

method on AppstoreAction
1func (a AppstoreAction) Kind() AppstoreKind
source

func Path

method on AppstoreAction
1func (a AppstoreAction) Path() string
source

func Reason

method on AppstoreAction
1func (a AppstoreAction) Reason() string
source

func Recipient

method on AppstoreAction
1func (a AppstoreAction) Recipient() address
source

type AppstoreListing

struct
1type AppstoreListing struct {
2	Exists                      bool
3	ContentHash, Status, Reason string
4	Credit                      bool
5	Flags                       int
6	ClearKeys                   string
7}
source

type AppstorePolicy

struct
1type AppstorePolicy struct{ dao, successor, treasury address }
source

Methods on AppstorePolicy

func AbortReturn

method on AppstorePolicy
1func (p AppstorePolicy) AbortReturn() AppstoreAction
source

func Accept

method on AppstorePolicy
1func (p AppstorePolicy) Accept() AppstoreAction
source

func DAO

method on AppstorePolicy
1func (p AppstorePolicy) DAO() address
source

func Return

method on AppstorePolicy
1func (p AppstorePolicy) Return() AppstoreAction
source

func SetTreasury

method on AppstorePolicy
1func (p AppstorePolicy) SetTreasury() AppstoreAction
source

func Successor

method on AppstorePolicy
1func (p AppstorePolicy) Successor() address
source

func Treasury

method on AppstorePolicy
1func (p AppstorePolicy) Treasury() address
source

type AppstoreState

struct
1type AppstoreState struct {
2	Owner, PendingOwner, Treasury                                              address
3	Fee                                                                        int64
4	Paused, Sealed, OwnerCurator, DAOCurator, SuccessorCurator, SubjectCurator bool
5	Listing                                                                    AppstoreListing
6}
source

type ArcadeAction

struct
1type ArcadeAction struct {
2	kind      ArcadeActionKind
3	recipient address
4	attester  address
5}
source

Methods on ArcadeAction

func Attester

method on ArcadeAction
1func (a ArcadeAction) Attester() address
source

func Bytes

method on ArcadeAction
1func (a ArcadeAction) Bytes() string
source

func Category

method on ArcadeAction
1func (a ArcadeAction) Category() memba_weighted_policy.Category
source

func Kind

method on ArcadeAction
1func (a ArcadeAction) Kind() ArcadeActionKind
source

func Recipient

method on ArcadeAction
1func (a ArcadeAction) Recipient() address
source

type ArcadePolicy

struct
1type ArcadePolicy struct{ dao, successor address }
source

Methods on ArcadePolicy

func AbortReturn

method on ArcadePolicy
1func (p ArcadePolicy) AbortReturn() ArcadeAction
source

func Accept

method on ArcadePolicy
1func (p ArcadePolicy) Accept() ArcadeAction
source

func AddAttester

method on ArcadePolicy
1func (p ArcadePolicy) AddAttester(who address) ArcadeAction
source

func DAO

method on ArcadePolicy
1func (p ArcadePolicy) DAO() address
source

func Return

method on ArcadePolicy
1func (p ArcadePolicy) Return() ArcadeAction
source

func Successor

method on ArcadePolicy
1func (p ArcadePolicy) Successor() address
source

type ArcadeState

struct
1type ArcadeState struct {
2	Owner, PendingOwner                                            address
3	Paused, OwnerListed, DAOListed, SuccessorListed, SubjectListed bool
4}
source

Explicit allowlist bits are separate from the owner's implicit attester right.

type BadgesAction

struct
1type BadgesAction struct {
2	kind      BadgesActionKind
3	recipient address
4	subject   address
5}
source

Methods on BadgesAction

func Bytes

method on BadgesAction
1func (a BadgesAction) Bytes() string
source

func Category

method on BadgesAction
1func (a BadgesAction) Category() memba_weighted_policy.Category
source

func Kind

method on BadgesAction
1func (a BadgesAction) Kind() BadgesActionKind
source

func Recipient

method on BadgesAction
1func (a BadgesAction) Recipient() address
source

func Subject

method on BadgesAction
1func (a BadgesAction) Subject() address
source

type BadgesPolicy

struct
1type BadgesPolicy struct{ dao, successor address }
source

Methods on BadgesPolicy

func AbortReturn

method on BadgesPolicy
1func (p BadgesPolicy) AbortReturn() BadgesAction
source

func Accept

method on BadgesPolicy
1func (p BadgesPolicy) Accept() BadgesAction
source

func AddAdmin

method on BadgesPolicy
1func (p BadgesPolicy) AddAdmin(who address) BadgesAction
source

func DAO

method on BadgesPolicy
1func (p BadgesPolicy) DAO() address
source

func Return

method on BadgesPolicy
1func (p BadgesPolicy) Return() BadgesAction
source

func Successor

method on BadgesPolicy
1func (p BadgesPolicy) Successor() address
source

type BadgesState

struct
1type BadgesState struct {
2	Owner, PendingOwner                                address
3	Paused                                             bool
4	AdminCount                                         int
5	OwnerAdmin, DAOAdmin, SuccessorAdmin, SubjectAdmin bool
6}
source

Admin bits are explicit grants. The current owner's authority to appoint is separate from those bits, but target ownership always installs an admin grant.

type ChannelsAction

struct
1type ChannelsAction struct {
2	kind               ChannelsActionKind
3	recipient, subject address
4	roles              string
5	name, description  string
6}
source

Methods on ChannelsAction

func Bytes

method on ChannelsAction
1func (a ChannelsAction) Bytes() string
source

func Category

method on ChannelsAction
1func (a ChannelsAction) Category() memba_weighted_policy.Category
source

func Description

method on ChannelsAction
1func (a ChannelsAction) Description() string
source

func Kind

method on ChannelsAction
1func (a ChannelsAction) Kind() ChannelsActionKind
source

func Name

method on ChannelsAction
1func (a ChannelsAction) Name() string
source

func Recipient

method on ChannelsAction
1func (a ChannelsAction) Recipient() address
source

func Roles

method on ChannelsAction
1func (a ChannelsAction) Roles() string
source

func Subject

method on ChannelsAction
1func (a ChannelsAction) Subject() address
source

type ChannelsPolicy

struct
1type ChannelsPolicy struct{ dao, successor address }
source

Methods on ChannelsPolicy

func AbortReturn

method on ChannelsPolicy
1func (p ChannelsPolicy) AbortReturn() ChannelsAction
source

func Accept

method on ChannelsPolicy
1func (p ChannelsPolicy) Accept() ChannelsAction
source

func AddMember

method on ChannelsPolicy
1func (p ChannelsPolicy) AddMember(who address, roles string) ChannelsAction
source

func CreateText

method on ChannelsPolicy
1func (p ChannelsPolicy) CreateText(name, description string) ChannelsAction
source

func DAO

method on ChannelsPolicy
1func (p ChannelsPolicy) DAO() address
source

func RemoveMember

method on ChannelsPolicy
1func (p ChannelsPolicy) RemoveMember(who address) ChannelsAction
source

func Return

method on ChannelsPolicy
1func (p ChannelsPolicy) Return() ChannelsAction
source

func SetRoles

method on ChannelsPolicy
1func (p ChannelsPolicy) SetRoles(who address, roles string) ChannelsAction
source

func Successor

method on ChannelsPolicy
1func (p ChannelsPolicy) Successor() address
source

type ChannelsState

struct
 1type ChannelsState struct {
 2	Owner, PendingOwner                                                  address
 3	Paused                                                               bool
 4	MemberCount                                                          int
 5	MembershipRevision                                                   uint64
 6	OwnerMember, DAOMember, SuccessorMember, SubjectMember               bool
 7	OwnerRoles, DAORoles, SuccessorRoles, SubjectRoles                   string
 8	ChannelCount                                                         int
 9	ChannelExists                                                        bool
10	ChannelDescription, ChannelType, ChannelReadRoles, ChannelWriteRoles string
11}
source

type EscrowAction

struct
1type EscrowAction struct {
2	kind       EscrowActionKind
3	recipient  address
4	contractID string
5	milestone  int
6}
source

Methods on EscrowAction

func Bytes

method on EscrowAction
1func (a EscrowAction) Bytes() string
source

func Category

method on EscrowAction
1func (a EscrowAction) Category() memba_weighted_policy.Category
source

func ContractID

method on EscrowAction
1func (a EscrowAction) ContractID() string
source

func IsResolution

method on EscrowAction
1func (a EscrowAction) IsResolution() bool
source

func Kind

method on EscrowAction
1func (a EscrowAction) Kind() EscrowActionKind
source

func Milestone

method on EscrowAction
1func (a EscrowAction) Milestone() int
source

func Recipient

method on EscrowAction
1func (a EscrowAction) Recipient() address
source

type EscrowContract

struct
1type EscrowContract struct {
2	Exists                  bool
3	ID, ContentHash, Status string
4	Client, Freelancer      address
5	Count                   int
6	Milestones              [20]EscrowMilestone
7}
source

type EscrowFeeTerms

struct
1type EscrowFeeTerms struct {
2	RawBPS, EffectiveBPS                             int64
3	RawTreasury, FallbackTreasury, EffectiveTreasury address
4}
source

type EscrowMilestone

struct
1type EscrowMilestone struct {
2	ID                                int
3	Amount                            int64
4	Status                            string
5	FundedAt, CompletedAt, DisputedAt int64
6	PreDisputeStatus                  string
7}
source

type EscrowPolicy

struct
1type EscrowPolicy struct{ dao, successor address }
source

Methods on EscrowPolicy

func AbortReturn

method on EscrowPolicy
1func (p EscrowPolicy) AbortReturn() EscrowAction
source

func Accept

method on EscrowPolicy
1func (p EscrowPolicy) Accept() EscrowAction
source

func DAO

method on EscrowPolicy
1func (p EscrowPolicy) DAO() address
source

func Return

method on EscrowPolicy
1func (p EscrowPolicy) Return() EscrowAction
source

func Successor

method on EscrowPolicy
1func (p EscrowPolicy) Successor() address
source

type EscrowState

struct
 1type EscrowState struct {
 2	Owner, PendingOwner               address
 3	FeeRecipient, PendingFeeRecipient address
 4	Paused                            bool
 5	PausedAt, ExitsReopenAt           int64
 6	CooldownUntil                     int64
 7	ExitsOpen                         bool
 8	Contract                          EscrowContract
 9	Fees                              EscrowFeeTerms
10}
source

EscrowState is the escrow_v4 state a proposal freezes. The pause fields copy PauseInfo except PausedBlocks, which grows every block. ExitsOpen is also height-derived: it is read fresh at proposal and execution time and never enters the commitment (escrowStateJSON), so a pause ageing past its blocking window cannot make a frozen proposal stale.

type FeedAction

struct
1type FeedAction struct {
2	kind      FeedActionKind
3	recipient address
4	subject   address
5}
source

Methods on FeedAction

func Bytes

method on FeedAction
1func (a FeedAction) Bytes() string
source

func Category

method on FeedAction
1func (a FeedAction) Category() memba_weighted_policy.Category
source

func Kind

method on FeedAction
1func (a FeedAction) Kind() FeedActionKind
source

func Recipient

method on FeedAction
1func (a FeedAction) Recipient() address
source

func Subject

method on FeedAction
1func (a FeedAction) Subject() address
source

type FeedPolicy

struct
1type FeedPolicy struct{ dao, successor address }
source

Methods on FeedPolicy

func AbortReturn

method on FeedPolicy
1func (p FeedPolicy) AbortReturn() FeedAction
source

func Accept

method on FeedPolicy
1func (p FeedPolicy) Accept() FeedAction
source

func AddModerator

method on FeedPolicy
1func (p FeedPolicy) AddModerator(who address) FeedAction
source

func DAO

method on FeedPolicy
1func (p FeedPolicy) DAO() address
source

func Return

method on FeedPolicy
1func (p FeedPolicy) Return() FeedAction
source

func Successor

method on FeedPolicy
1func (p FeedPolicy) Successor() address
source

type FeedState

struct
1type FeedState struct {
2	Owner, PendingOwner                                                address
3	Paused                                                             bool
4	ModeratorCount                                                     int
5	OwnerModerator, DAOModerator, SuccessorModerator, SubjectModerator bool
6}
source

Feed moderators are explicit grants. Ownership itself can moderate, so the outgoing owner must not retain a separate moderator grant after handoff.

type FeedbackAction

struct
1type FeedbackAction struct {
2	kind               FeedbackActionKind
3	recipient, subject address
4	roles              string
5	name, description  string
6}
source

Methods on FeedbackAction

func Bytes

method on FeedbackAction
1func (a FeedbackAction) Bytes() string
source

func Category

method on FeedbackAction
1func (a FeedbackAction) Category() memba_weighted_policy.Category
source

func Description

method on FeedbackAction
1func (a FeedbackAction) Description() string
source

func Kind

method on FeedbackAction
1func (a FeedbackAction) Kind() FeedbackActionKind
source

func Name

method on FeedbackAction
1func (a FeedbackAction) Name() string
source

func Recipient

method on FeedbackAction
1func (a FeedbackAction) Recipient() address
source

func Roles

method on FeedbackAction
1func (a FeedbackAction) Roles() string
source

func Subject

method on FeedbackAction
1func (a FeedbackAction) Subject() address
source

type FeedbackPolicy

struct
1type FeedbackPolicy struct{ dao, successor address }
source

Methods on FeedbackPolicy

func AbortReturn

method on FeedbackPolicy
1func (p FeedbackPolicy) AbortReturn() FeedbackAction
source

func Accept

method on FeedbackPolicy
1func (p FeedbackPolicy) Accept() FeedbackAction
source

func AddMember

method on FeedbackPolicy
1func (p FeedbackPolicy) AddMember(who address, roles string) FeedbackAction
source

func CreateText

method on FeedbackPolicy
1func (p FeedbackPolicy) CreateText(name, description string) FeedbackAction
source

func DAO

method on FeedbackPolicy
1func (p FeedbackPolicy) DAO() address
source

func RemoveMember

method on FeedbackPolicy
1func (p FeedbackPolicy) RemoveMember(who address) FeedbackAction
source

func Return

method on FeedbackPolicy
1func (p FeedbackPolicy) Return() FeedbackAction
source

func SetRoles

method on FeedbackPolicy
1func (p FeedbackPolicy) SetRoles(who address, roles string) FeedbackAction
source

func Successor

method on FeedbackPolicy
1func (p FeedbackPolicy) Successor() address
source

type FeedbackState

struct
 1type FeedbackState struct {
 2	Owner, PendingOwner                                                  address
 3	Paused                                                               bool
 4	MemberCount                                                          int
 5	MembershipRevision                                                   uint64
 6	OwnerMember, DAOMember, SuccessorMember, SubjectMember               bool
 7	OwnerRoles, DAORoles, SuccessorRoles, SubjectRoles                   string
 8	ChannelCount                                                         int
 9	ChannelExists                                                        bool
10	ChannelDescription, ChannelType, ChannelReadRoles, ChannelWriteRoles string
11}
source

type Host

struct
 1type Host struct {
 2	feedbackPolicy *FeedbackPolicy
 3	channelsPolicy *ChannelsPolicy
 4	feedPolicy     *FeedPolicy
 5	badgesPolicy   *BadgesPolicy
 6	escrowPolicy   *EscrowPolicy
 7	appstorePolicy *AppstorePolicy
 8	arcadePolicy   *ArcadePolicy
 9	questPolicy    *QuestPolicy
10	reviewsPolicy  *ReviewsPolicy
11	marketPolicy   *MarketPolicy
12	path           string
13	seats          [7]Seat
14	policy         *memba_weighted_policy.Policy
15	proposals      []*roleProposal
16	// rosters holds every distinct electorate, oldest first. A new entry is
17	// appended only when a recovery changes a seat address.
18	rosters [][7]address
19	// invalidations mirrors the policy generation: one record per Reconfigure.
20	invalidations []invalidation
21}
source

Methods on Host

func BallotJSON

method on Host
1func (h *Host) BallotJSON(proposalID string, voter address) string
source

BallotJSON reports one address's ballot on one proposal. Eligibility is the electorate frozen when the proposal was created, so a recovered key keeps its ballot on older proposals and has none on newer ones. choice is "yes", "no" or "abstain" (the host's three ballot values), or null with a null votedAtHeight when the address has not voted. Ballots stay readable after a proposal is executed, invalidated or expired; tallies do not.

func ConfigJSON

method on Host
1func (h *Host) ConfigJSON() string
source

ConfigJSON describes only implemented host capabilities. Fixed founding thresholds are not configurable through a role action. Operational role labels have no additional vote or execution privilege.

func ConsumeAppstore

method on Host
1func (h *Host) ConsumeAppstore(id uint64, s AppstoreState, rlm realm) AppstoreAction
source

func ConsumeArcade

method on Host
1func (h *Host) ConsumeArcade(id uint64, s ArcadeState, rlm realm) ArcadeAction
source

func ConsumeBadges

method on Host
1func (h *Host) ConsumeBadges(id uint64, s BadgesState, rlm realm) BadgesAction
source

func ConsumeChannels

method on Host
1func (h *Host) ConsumeChannels(id uint64, s ChannelsState, rlm realm) ChannelsAction
source

func ConsumeEscrow

method on Host
1func (h *Host) ConsumeEscrow(id uint64, s EscrowState, rlm realm) EscrowAction
source

func ConsumeFeed

method on Host
1func (h *Host) ConsumeFeed(id uint64, s FeedState, rlm realm) FeedAction
source

func ConsumeFeedback

method on Host
1func (h *Host) ConsumeFeedback(id uint64, s FeedbackState, rlm realm) FeedbackAction
source

func ConsumeMarket

method on Host
1func (h *Host) ConsumeMarket(id uint64, before MarketState, rlm realm) MarketAction
source

ConsumeMarket is for the owning realm's fixed adapter only. It checks the fresh target state and consumes authorization BEFORE crossing. No recovery is permitted in that adapter: a target panic must abort the transaction.

func ConsumeQuest

method on Host
1func (h *Host) ConsumeQuest(id uint64, before QuestState, rlm realm) QuestAction
source

func ConsumeReviews

method on Host
1func (h *Host) ConsumeReviews(id uint64, before ReviewsState, rlm realm) ReviewsAction
source

Only the owning realm's fixed adapter may use this. Keep Host private and let target panics/postcondition failures abort the entire transaction.

func Execute

method on Host
1func (h *Host) Execute(id uint64, rlm realm)
source

func HasRole

method on Host
1func (h *Host) HasRole(who address, role Role) bool
source

func Members

method on Host
1func (h *Host) Members() []Seat
source

func PendingVotesJSON

method on Host
1func (h *Host) PendingVotesJSON(voter address, before string, limit int) string
source

PendingVotesJSON lists, newest first, the proposals that are still open for voting where voter is in the frozen electorate and has not voted. before is an exclusive decimal cursor ("" or "0" for newest); limit is clamped to 1..MaxPendingPage. Executing any action invalidates every older open proposal, and deadlines follow creation order, so the scan stops at the first proposal that no longer accepts votes: nothing older can be pending. The scan also stops after MaxPendingScan proposals; next then resumes it. next is null when nothing older can be pending.

func PrepareArcadeEmergencyPause

method on Host
1func (h *Host) PrepareArcadeEmergencyPause(s ArcadeState, rlm realm)
source

A fixed pause-only capability, not a proposal category or a bool-controlled escape. An already-paused call cannot invalidate pending unpause approvals.

func Proposal

method on Host
1func (h *Host) Proposal(id uint64) ProposalView
source

func ProposalsJSON

method on Host
1func (h *Host) ProposalsJSON(before uint64, limit int) string
source

ProposalsJSON uses an exclusive descending ID cursor. before=0 means newest; a returned nextBefore remains stable when newer proposals are appended. IDs/cursors/counts are decimal strings so uint64 values never lose precision in a JavaScript client. A null cursor ends pagination, not an empty page guess.

func ProposeAppstore

method on Host
1func (h *Host) ProposeAppstore(a AppstoreAction, s AppstoreState, rlm realm) uint64
source

func ProposeArcade

method on Host
1func (h *Host) ProposeArcade(a ArcadeAction, s ArcadeState, rlm realm) uint64
source

func ProposeBadges

method on Host
1func (h *Host) ProposeBadges(a BadgesAction, s BadgesState, rlm realm) uint64
source

func ProposeChannels

method on Host
1func (h *Host) ProposeChannels(a ChannelsAction, s ChannelsState, rlm realm) uint64
source

func ProposeEscrow

method on Host
1func (h *Host) ProposeEscrow(a EscrowAction, s EscrowState, rlm realm) uint64
source

func ProposeFeed

method on Host
1func (h *Host) ProposeFeed(a FeedAction, s FeedState, rlm realm) uint64
source

func ProposeFeedback

method on Host
1func (h *Host) ProposeFeedback(a FeedbackAction, s FeedbackState, rlm realm) uint64
source

func ProposeMarket

method on Host
1func (h *Host) ProposeMarket(action MarketAction, before MarketState, rlm realm) uint64
source

func ProposeQuest

method on Host
1func (h *Host) ProposeQuest(a QuestAction, before QuestState, rlm realm) uint64
source

func ProposeRecovery

method on Host
1func (h *Host) ProposeRecovery(personID string, target, replacement address, rlm realm) uint64
source

func ProposeReviews

method on Host
1func (h *Host) ProposeReviews(action ReviewsAction, before ReviewsState, rlm realm) uint64
source

func ProposeRole

method on Host
1func (h *Host) ProposeRole(target address, role Role, grant bool, rlm realm) uint64
source

Every role change is critical. The proposer cannot select a lower category, inject a callback or substitute the target/role/grant after voting begins.

func Vote

method on Host
1func (h *Host) Vote(id uint64, vote memba_weighted_policy.Vote, rlm realm)
source

type MarketAction

struct
1type MarketAction struct {
2	kind      MarketActionKind
3	lane      MarketLane
4	bps       int64
5	recipient address
6}
source

MarketAction is a closed value, not a callback, method name or free-form payload. Its private fields are frozen into the commitment returned by Bytes.

Methods on MarketAction

func BPS

method on MarketAction
1func (a MarketAction) BPS() int64
source

func Bytes

method on MarketAction
1func (a MarketAction) Bytes() string
source

Bytes commits the target path, operation, category-relevant arguments and recipient. There are no user-supplied delimiters in these closed domains.

func Category

method on MarketAction
1func (a MarketAction) Category() memba_weighted_policy.Category
source

func Kind

method on MarketAction
1func (a MarketAction) Kind() MarketActionKind
source

func Lane

method on MarketAction
1func (a MarketAction) Lane() MarketLane
source

func Recipient

method on MarketAction
1func (a MarketAction) Recipient() address
source

type MarketPolicy

struct
1type MarketPolicy struct {
2	dao       address
3	treasury  address
4	successor address
5}
source

MarketPolicy contains only addresses separately approved for a generated DAO candidate. The generator requires explicit inputs and binds fixed-target dispatch. No address here is inferred from an old testnet literal.

Methods on MarketPolicy

func AbortReturn

method on MarketPolicy
1func (p MarketPolicy) AbortReturn() MarketAction
source

func DAO

method on MarketPolicy
1func (p MarketPolicy) DAO() address
source

func ReturnAdmin

method on MarketPolicy
1func (p MarketPolicy) ReturnAdmin() MarketAction
source

func SetTreasury

method on MarketPolicy
1func (p MarketPolicy) SetTreasury() MarketAction
source

func Successor

method on MarketPolicy
1func (p MarketPolicy) Successor() address
source

func Treasury

method on MarketPolicy
1func (p MarketPolicy) Treasury() address
source

type MarketState

struct
1type MarketState struct {
2	Admin        address
3	PendingAdmin address
4	Treasury     address
5	BPS          int64
6}
source

MarketState is copied from the fixed target by the owning realm adapter. BPS is read only for a fee action; other actions commit zero in that field.

type ProposalView

struct
 1type ProposalView struct {
 2	Feedback       bool
 3	FeedbackAction FeedbackAction
 4	FeedbackBefore FeedbackState
 5	Channels       bool
 6	ChannelsAction ChannelsAction
 7	ChannelsBefore ChannelsState
 8	Feed           bool
 9	FeedAction     FeedAction
10	FeedBefore     FeedState
11	Badges         bool
12	BadgesAction   BadgesAction
13	BadgesBefore   BadgesState
14	Escrow         bool
15	EscrowAction   EscrowAction
16	EscrowBefore   EscrowState
17	Appstore       bool
18	AppstoreAction AppstoreAction
19	AppstoreBefore AppstoreState
20	Arcade         bool
21	ArcadeAction   ArcadeAction
22	ArcadeBefore   ArcadeState
23	Quest          bool
24	QuestAction    QuestAction
25	QuestBefore    QuestState
26	Reviews        bool
27	ReviewsAction  ReviewsAction
28	ReviewsBefore  ReviewsState
29	Market         bool
30	MarketAction   MarketAction
31	MarketBefore   MarketState
32	Recovery       bool
33	PersonID       string
34	Replacement    address
35	ID             uint64
36	Proposer       address
37	Target         address
38	Role           Role
39	Grant          bool
40	State          memba_weighted_policy.State
41	// Invalidation is set only for an INVALIDATED proposal. A proposal whose
42	// vote had already closed without qualifying stays EXPIRED instead.
43	Invalidated               bool
44	InvalidationCause         string
45	InvalidationHeight        int64
46	InvalidationProposal      uint64
47	InvalidationTarget        string
48	ExpiredBeforeInvalidation bool
49}
source

Views contain copied values only, never pointers to policy, ballots or seats.

type QuestAction

struct
1type QuestAction struct {
2	kind      QuestActionKind
3	key       string
4	recipient address
5}
source

Methods on QuestAction

func Bytes

method on QuestAction
1func (a QuestAction) Bytes() string
source

func Category

method on QuestAction
1func (a QuestAction) Category() memba_weighted_policy.Category
source

func Key

method on QuestAction
1func (a QuestAction) Key() string
source

func Kind

method on QuestAction
1func (a QuestAction) Kind() QuestActionKind
source

func Recipient

method on QuestAction
1func (a QuestAction) Recipient() address
source

type QuestPolicy

struct
1type QuestPolicy struct{ dao, successor address }
source

Methods on QuestPolicy

func AbortReturn

method on QuestPolicy
1func (p QuestPolicy) AbortReturn() QuestAction
source

func Accept

method on QuestPolicy
1func (p QuestPolicy) Accept() QuestAction
source

func DAO

method on QuestPolicy
1func (p QuestPolicy) DAO() address
source

func Return

method on QuestPolicy
1func (p QuestPolicy) Return() QuestAction
source

func Successor

method on QuestPolicy
1func (p QuestPolicy) Successor() address
source

type QuestState

struct
1type QuestState struct {
2	Owner, PendingOwner address
3	Signer              string
4}
source

type ReviewsAction

struct
1type ReviewsAction struct {
2	kind      ReviewsActionKind
3	target    string
4	id        uint64
5	recipient address
6}
source

Methods on ReviewsAction

func Bytes

method on ReviewsAction
1func (a ReviewsAction) Bytes() string
source

func Category

method on ReviewsAction
1func (a ReviewsAction) Category() memba_weighted_policy.Category
source

func ID

method on ReviewsAction
1func (a ReviewsAction) ID() uint64
source

func Kind

method on ReviewsAction
1func (a ReviewsAction) Kind() ReviewsActionKind
source

func Recipient

method on ReviewsAction
1func (a ReviewsAction) Recipient() address
source

func Target

method on ReviewsAction
1func (a ReviewsAction) Target() string
source

type ReviewsItem

struct
 1type ReviewsItem struct {
 2	ID        uint64
 3	Review    bool
 4	ParentID  uint64
 5	Subject   string
 6	Author    address
 7	Rating    int
 8	BodyHash  string
 9	CreatedAt int64
10	EditedAt  int64
11	Hidden    bool
12	Deleted   bool
13	Flagged   bool
14}
source

ReviewsItem contains copied moderation-relevant state only. Ordinary reactions do not invalidate moderation; content edits, deletion and visibility do.

type ReviewsPolicy

struct
1type ReviewsPolicy struct {
2	dao       address
3	target    string
4	successor address
5}
source

Methods on ReviewsPolicy

func AbortReturn

method on ReviewsPolicy
1func (p ReviewsPolicy) AbortReturn() ReviewsAction
source

func Accept

method on ReviewsPolicy
1func (p ReviewsPolicy) Accept() ReviewsAction
source

func DAO

method on ReviewsPolicy
1func (p ReviewsPolicy) DAO() address
source

func HideComment

method on ReviewsPolicy
1func (p ReviewsPolicy) HideComment(id uint64) ReviewsAction
source

func HideReview

method on ReviewsPolicy
1func (p ReviewsPolicy) HideReview(id uint64) ReviewsAction
source

func Return

method on ReviewsPolicy
1func (p ReviewsPolicy) Return() ReviewsAction
source

func Successor

method on ReviewsPolicy
1func (p ReviewsPolicy) Successor() address
source

func Target

method on ReviewsPolicy
1func (p ReviewsPolicy) Target() string
source

func Unhide

method on ReviewsPolicy
1func (p ReviewsPolicy) Unhide(id uint64) ReviewsAction
source

type ReviewsState

struct
1type ReviewsState struct {
2	Moderator        address
3	PendingModerator address
4	Item             ReviewsItem
5}
source

type Seat

struct
1type Seat struct {
2	Member  memba_weighted_policy.Member
3	Admin   bool
4	Finance bool
5}
source

Seat is copied at construction. Founder/core-developer voting eligibility is independent from these operational role labels; all members may execute.

Imports 7

Source Files 32