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

memba_notes_v1 package

Overview

Package memba_notes_v1 stores versioned Markdown notes and their receipts. Publication is immutable; deployment is gated on the complete contract audit.

Function

RedactPublicContentAtSeq

func RedactPublicContentAtSeq(cur realm, id [16]byte, baseRevision uint64, field uint8, seq uint64, opID [16]byte)

RedactPublicContentAtSeq removes one public title (field 1) or body (field 2) from realm storage: the one recorded by the note-level history event seq (a version's recorded_seq). The name carries the addressing so a caller written for field revisions cannot act on the wrong version. History stores each field revision once, so every version that kept that title or body shows it redacted. Public history keeps its SHA-256 and a content-redact entry naming the moderator and the field revision. Redacting the current version also replaces it (placeholder title, empty body) under a new field revision. Gno refunds the freed storage to the moderator who frees it.

Params

Command

# WARNING: This command is running in an INSECURE mode.
# It is strongly recommended to use a hardware device for signing
# and avoid trusting any computer connected to the internet,
# as your private keys could be exposed.

gnokey maketx call -pkgpath "gno.land/r/samcrew/memba_notes_v1" -func "RedactPublicContentAtSeq" -args $'' -args $'' -args $'' -args $'' -args $'' -gas-fee 1000000ugnot -gas-wanted 1_000_000_000 -send "" -chainid "gnoland-1" -remote "https://rpc.gno.land" ADDRESSgnokey query -remote "https://rpc.gno.land" auth/accounts/ADDRESS
gnokey maketx call -pkgpath "gno.land/r/samcrew/memba_notes_v1" -func "RedactPublicContentAtSeq" -args $'' -args $'' -args $'' -args $'' -args $'' -gas-fee 1000000ugnot -gas-wanted 1_000_000_000 -send "" -broadcast=false ADDRESS > call.tx
gnokey sign -tx-path call.tx -chainid "gnoland-1" -account-number ACCOUNTNUMBER -account-sequence SEQUENCENUMBER ADDRESS
gnokey broadcast -remote "https://rpc.gno.land" call.tx