Skip to content Search Apps Documentation Source Content Run Reset Eval Playground 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.

v4 source realm

Package optimistic releases a proposal after its challenge window unless a guardian vetoes it.

Overview

Package optimistic releases a proposal after its challenge window unless a guardian vetoes it.

Functions 11

func Configure

crossing Action
1func Configure(cur realm, programID int64, lane string, proposer, guardian1, guardian2 address, challengeBlocks int64)
source

func Propose

crossing Action
1func Propose(cur realm, programID int64, lane string, recipient address, amount, holdBlocks int64, proofDigest, memo string) (int64, int64)
source

func Settle

crossing Action
1func Settle(cur realm, programID int64, lane string, itemID int64)
source

func Veto

crossing Action
1func Veto(cur realm, programID int64, lane string, itemID int64, reason string)
source

Veto can be used by either guardian, including a guardian named as recipient.

Types 2

type Config

struct
1type Config struct {
2	Lane            string
3	Proposer        address
4	Guardians       [2]address
5	ChallengeBlocks int64
6}
source

type ProposalView

struct
1type ProposalView struct {
2	Pruned       bool
3	Evidence     string
4	ChallengeEnd int64
5	VetoedBy     address
6	VetoReason   string
7	Settled      bool
8	Reservation  treasury.ReservationView
9}
source

Dependencies

Source Files 2