Realm

gno.land/r/g16m0r7rm7fv5hx0ekr7gvx8g4fr7eu08nzhk6gt/govtreasury

Render

this realm has no Render() output

Query (read-only)

non-crossing functions · no tx, no wallet needed
GetAdmin() → string
GetMemberCount() → int64
GetProposalAmount(proposalID int64) → int64
GetProposalNoVotes(proposalID int64) → int64
GetProposalRecipient(proposalID int64) → string
GetProposalSnapshotMemberCount(proposalID int64) → int64
GetProposalStatus(proposalID int64) → string
GetProposalYesVotes(proposalID int64) → int64
IsMember(addr string) → bool

Call functions (state-changing)

signs a tx via Adena
AddMember(member string)
Bootstrap()
CreateProposal(recipient string, amount int64, description string, votingBlocks int64)
ExpireProposal(proposalID int64)
Fund()
RemoveMember(member string)
Vote(proposalID int64, approve bool)

All exported functions (16)

show raw signatures
NameParamsReturns
Bootstrap [{"Name": "cur", "Type": "interface {.seal func(); Address func() .uverse.address; IsCode func() bool; IsCurrent func() bool; IsEphemeral func() bool; IsUser func() bool; IsUserCall func() bool; IsUserRun func() bool; PkgPath func() string; Previous func() .uverse.realm; String func() string; Sub func(string) .uverse.realm; Subpath func() string}", "Value": ""}]
AddMember [{"Name": "cur", "Type": "interface {.seal func(); Address func() .uverse.address; IsCode func() bool; IsCurrent func() bool; IsEphemeral func() bool; IsUser func() bool; IsUserCall func() bool; IsUserRun func() bool; PkgPath func() string; Previous func() .uverse.realm; String func() string; Sub func(string) .uverse.realm; Subpath func() string}", "Value": ""}, {"Name": "member", "Type": "string", "Value": ""}]
RemoveMember [{"Name": "cur", "Type": "interface {.seal func(); Address func() .uverse.address; IsCode func() bool; IsCurrent func() bool; IsEphemeral func() bool; IsUser func() bool; IsUserCall func() bool; IsUserRun func() bool; PkgPath func() string; Previous func() .uverse.realm; String func() string; Sub func(string) .uverse.realm; Subpath func() string}", "Value": ""}, {"Name": "member", "Type": "string", "Value": ""}]
Fund [{"Name": "cur", "Type": "interface {.seal func(); Address func() .uverse.address; IsCode func() bool; IsCurrent func() bool; IsEphemeral func() bool; IsUser func() bool; IsUserCall func() bool; IsUserRun func() bool; PkgPath func() string; Previous func() .uverse.realm; String func() string; Sub func(string) .uverse.realm; Subpath func() string}", "Value": ""}]
CreateProposal [{"Name": "cur", "Type": "interface {.seal func(); Address func() .uverse.address; IsCode func() bool; IsCurrent func() bool; IsEphemeral func() bool; IsUser func() bool; IsUserCall func() bool; IsUserRun func() bool; PkgPath func() string; Previous func() .uverse.realm; String func() string; Sub func(string) .uverse.realm; Subpath func() string}", "Value": ""}, {"Name": "recipient", "Type": "string", "Value": ""}, {"Name": "amount", "Type": "int64", "Value": ""}, {"Name": "description", "Type": "string", "Value": ""}, {"Name": "votingBlocks", "Type": "int64", "Value": ""}] [{"Name": ".res.0", "Type": "int64", "Value": ""}]
Vote [{"Name": "cur", "Type": "interface {.seal func(); Address func() .uverse.address; IsCode func() bool; IsCurrent func() bool; IsEphemeral func() bool; IsUser func() bool; IsUserCall func() bool; IsUserRun func() bool; PkgPath func() string; Previous func() .uverse.realm; String func() string; Sub func(string) .uverse.realm; Subpath func() string}", "Value": ""}, {"Name": "proposalID", "Type": "int64", "Value": ""}, {"Name": "approve", "Type": "bool", "Value": ""}]
ExpireProposal [{"Name": "cur", "Type": "interface {.seal func(); Address func() .uverse.address; IsCode func() bool; IsCurrent func() bool; IsEphemeral func() bool; IsUser func() bool; IsUserCall func() bool; IsUserRun func() bool; PkgPath func() string; Previous func() .uverse.realm; String func() string; Sub func(string) .uverse.realm; Subpath func() string}", "Value": ""}, {"Name": "proposalID", "Type": "int64", "Value": ""}]
IsMember [{"Name": "addr", "Type": "string", "Value": ""}] [{"Name": ".res.0", "Type": "bool", "Value": ""}]
GetAdmin [{"Name": ".res.0", "Type": "string", "Value": ""}]
GetMemberCount [{"Name": ".res.0", "Type": "int64", "Value": ""}]
GetProposalStatus [{"Name": "proposalID", "Type": "int64", "Value": ""}] [{"Name": ".res.0", "Type": "string", "Value": ""}]
GetProposalAmount [{"Name": "proposalID", "Type": "int64", "Value": ""}] [{"Name": ".res.0", "Type": "int64", "Value": ""}]
GetProposalRecipient [{"Name": "proposalID", "Type": "int64", "Value": ""}] [{"Name": ".res.0", "Type": "string", "Value": ""}]
GetProposalYesVotes [{"Name": "proposalID", "Type": "int64", "Value": ""}] [{"Name": ".res.0", "Type": "int64", "Value": ""}]
GetProposalNoVotes [{"Name": "proposalID", "Type": "int64", "Value": ""}] [{"Name": ".res.0", "Type": "int64", "Value": ""}]
GetProposalSnapshotMemberCount [{"Name": "proposalID", "Type": "int64", "Value": ""}] [{"Name": ".res.0", "Type": "int64", "Value": ""}]

Files

Storage

{
  "raw": "storage: 23078, deposit: 2307800"
}