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

impl source realm

Variables 1

Functions 17

func AddMember

crossing Action
1func AddMember(cur realm, addr address)
source

AddMember allows T1 and T2 members to freely add T3 members using their invitation points.

func NewTreasuryGRC20TokensUpdate

crossing Action
1func NewTreasuryGRC20TokensUpdate(cur realm, newTokenKeys []string) dao.ProposalRequest
source

NewTreasuryGRC20TokensUpdate creates a proposal request to update the list of GRC20 tokens registry keys used by the treasury. The new list, if voted and accepted, will overwrite the current one.

func Render

crossing
1func Render(cur realm, in string) string
source

func GetInstance

Action
1func GetInstance(_ int, rlm realm) *GovDAO
source

GetInstance returns the singleton *GovDAO. Only the loader realm may call it (used during the bootstrap UpdateImpl handoff). The IsCurrent() check rejects stale or stashed realm values; PkgPath() after the check is the authentic immediate caller.

Types 4

type GovDAO

struct
1type GovDAO struct {
2	pss    ProposalsStatuses
3	render *render
4}
source

Methods on GovDAO

func ExecuteProposal

method on GovDAO
1func (g *GovDAO) ExecuteProposal(_ int, rlm realm, pid dao.ProposalID, e dao.Executor) error
source

func PostCreateProposal

method on GovDAO
1func (g *GovDAO) PostCreateProposal(_ int, rlm realm, r dao.ProposalRequest, pid dao.ProposalID)
source

func PreCreateProposal

method on GovDAO
1func (g *GovDAO) PreCreateProposal(_ int, rlm realm, r dao.ProposalRequest) (address, error)
source

func PreExecuteProposal

method on GovDAO
1func (g *GovDAO) PreExecuteProposal(_ int, rlm realm, pid dao.ProposalID) (bool, error)
source

func Render

crossing method on GovDAO
1func (g *GovDAO) Render(cur realm, pkgPath string, path string) string
source

func VoteOnProposal

method on GovDAO
1func (g *GovDAO) VoteOnProposal(_ int, rlm realm, r dao.VoteRequest) error
source

type Law

struct
1type Law struct {
2	Supermajority float64
3}
source

Methods on Law

func String

method on Law
1func (l *Law) String() string
source

type ProposalsStatuses

struct
1type ProposalsStatuses struct {
2	*bptree.BPTree // map[int]*proposalStatus
3}
source

ProposalsStatuses contains the status of all the proposals indexed by the proposal ID.

Methods on ProposalsStatuses

func GetStatus

method on ProposalsStatuses
1func (pss ProposalsStatuses) GetStatus(id dao.ProposalID) *proposalStatus
source

Imports 19

Source Files 13