Skip to content Search Apps Documentation Source Content File Folder Download Copy Actions State String Boolean Number Struct Map Slice Pointer Function Closure Reference Nil Package Type Interface Unknown

Community realm. Read the code first. Community realm, deployed by its author. Read the code before you interact or send coins.

hlfees source realm

Package hlfees is the bridge's fee realm (bridge/PLAN.md §5.5): the routes pay every fee here — GNOT as coins, BUBBLE...

Overview

Package hlfees is the bridge's fee realm (bridge/PLAN.md §5.5): the routes pay every fee here — GNOT as coins, BUBBLE through the token realm — and only the treasurer a decision names may withdraw, to itself. The treasurer at launch is compiled in below; a decision made with the builder changes it, 7 days after it is made — the governor's own through Govern until it yields on r/hlmailbox, a GovDAO proposal's after (M1k).

Functions 7

func Balances

Action
1func Balances() (ugnot, bubbles int64)
source

Balances are the fees held: ugnot and BUBBLE base units.

func Execute

crossing Action
1func Execute(cur realm, id int64)
source

Execute applies a queued decision whose 7 days have passed; anyone may call it.

func Govern

crossing Action
1func Govern(cur realm, r Request)
source

Govern is the governor's way in before the yield (M1k): the same closure GovDAO's proxy runs after it, called non-crossing in this frame so it reads the governor from cur.Previous(); refused for anyone else and for everyone once the governor yielded on r/hlmailbox (or when none was compiled); see hlgnot's.

func Render

1func Render(path string) string
source

Render: "" the page; "json" the figures; "decisions" and "decisions.json" the decisions.

func Withdraw

crossing Action
1func Withdraw(cur realm)
source

Withdraw pays everything held to the treasurer, who alone may call it.

func NewCancelRequest

crossing Action
1func NewCancelRequest(cur realm, id int64) Request
source

NewCancelRequest cancels a pending decision of this realm, at once.

func NewSetTreasurerRequest

crossing Action
1func NewSetTreasurerRequest(cur realm, to address) Request
source

NewSetTreasurerRequest names the address that may withdraw, 7 days after the decision is made.

Types 1

type Request

struct
1type Request struct {
2	proposal dao.ProposalRequest
3	text     string
4	decide   func(cur realm) error
5}
source

Request is what a builder returns (M1k): the proposal GovDAO's proxy executes after the yield (Proposal), and the same decision the governor runs directly before it (Govern); see hlgnot's.

Methods on Request

func Description

method on Request
1func (r Request) Description() string
source

Description is the proposal's: the parameters as the builder wrote them.

func Proposal

method on Request
1func (r Request) Proposal() dao.ProposalRequest
source

Proposal is the request as a GovDAO proposal: `dao.MustCreateProposal(cross(cur), req.Proposal())`.

Dependencies

Source Files 2