PathrockNetwork Gno Explorer
HomeBlocksTransactionsTokensRealmsPackagesValidatorsAnalytics

PathrockNetwork Gno Explorer — an independent explorer for Gno.land Mainnet (gnoland-1), operated by PathrockNetwork. Not an official Gno.land service.

gnowebarchive RPC

gno.land/p/samcrew/memba_weighted_host

Package
Open in gnoweb ↗

Overview

Kind
Pure package
Name
memba_weighted_host
Namespace
samcrew
Files
32 (gnomod.toml)
Exported functions
n/a — not supported for pure packages by the node (vm/qfuncs)
Module
gno.land/p/samcrew/memba_weighted_host
gno
0.9

Files (32)

  • gnomod.tomltoml
  • appstore_actions.gnogno
  • appstore_host.gnogno
  • appstore_reads.gnogno
  • arcade_actions.gnogno
  • arcade_host.gnogno
  • arcade_reads.gno
gno
  • badges_actions.gnogno
  • badges_host.gnogno
  • badges_reads.gnogno
  • channels_actions.gnogno
  • channels_host.gnogno
  • channels_reads.gnogno
  • escrow_actions.gnogno
  • escrow_host.gnogno
  • escrow_reads.gnogno
  • feed_actions.gnogno
  • feed_host.gnogno
  • feed_reads.gnogno
  • feedback_actions.gnogno
  • feedback_host.gnogno
  • feedback_reads.gnogno
  • host.gnogno
  • market_actions.gnogno
  • market_host.gnogno
  • quest_actions.gnogno
  • quest_host.gnogno
  • quest_reads.gnogno
  • reads.gnogno
  • reviews_actions.gnogno
  • reviews_host.gnogno
  • reviews_reads.gnogno
  • channels_reads.gnogno
    1package memba_weighted_host23import "strconv"45func (h *Host) channelsConfigJSON() string {6	if h.channelsPolicy==nil { return "" }7	return `,"channelsPolicy":{"target":`+quoteJSON(ChannelsPath)+`,"successor":`+quoteJSON(string(h.channelsPolicy.Successor()))+`,"memberCategory":"critical","unpauseCategory":"financial","emergencyPause":true,"returnStagesOnly":true,"invalidatesOtherProposals":true}`8}9func channelsStateJSON(s ChannelsState) string {10	return `{"owner":`+quoteJSON(string(s.Owner))+`,"pendingOwner":`+quoteJSON(string(s.PendingOwner))+`,"paused":`+strconv.FormatBool(s.Paused)+`,"memberCount":`+quoteJSON(strconv.Itoa(s.MemberCount))+`,"membershipRevision":`+quoteJSON(strconv.FormatUint(s.MembershipRevision,10))+`,"ownerMember":`+strconv.FormatBool(s.OwnerMember)+`,"daoMember":`+strconv.FormatBool(s.DAOMember)+`,"successorMember":`+strconv.FormatBool(s.SuccessorMember)+`,"subjectMember":`+strconv.FormatBool(s.SubjectMember)+`,"ownerRoles":`+quoteJSON(s.OwnerRoles)+`,"daoRoles":`+quoteJSON(s.DAORoles)+`,"successorRoles":`+quoteJSON(s.SuccessorRoles)+`,"subjectRoles":`+quoteJSON(s.SubjectRoles)+`,"channelCount":`+quoteJSON(strconv.Itoa(s.ChannelCount))+`,"channelExists":`+strconv.FormatBool(s.ChannelExists)+`,"channelDescription":`+quoteJSON(s.ChannelDescription)+`,"channelType":`+quoteJSON(s.ChannelType)+`,"channelReadRoles":`11}12func channelsActionJSON(a ChannelsAction, s ChannelsState) string {13	return `{"type":"channels","target":`+quoteJSON(ChannelsPath)+`,"operation":`+quoteJSON(string(a.Kind()))+`,"recipient":`+quoteJSON(string(a.Recipient()))+`,"subject":`+quoteJSON(string(a.Subject()))+`,"roles":`+quoteJSON(a.Roles())+`,"name":`+quoteJSON(a.Name())+`,"description":`+quoteJSON(a.Description())+`,"before":`+channelsStateJSON(s)+`}`14}15

    Functions

    not supported for pure packages by the node (vm/qfuncs)

    Signatures reconstructed verbatim from vm/qfuncs — interface params keep their inline definitions.

    +quoteJSON(s.ChannelReadRoles)+
    `,"channelWriteRoles":`
    +quoteJSON(s.ChannelWriteRoles)+
    `}`