AcceptInvite
func AcceptInvite(_ realm, boardID BoardID, user address)
Link
Execute
AcceptInvite accepts a board invite request.
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/gnoland/boards2/v1" -func "AcceptInvite" -args " " -args " " -gas-fee 1000000ugnot -gas-wanted 5000000 -send " " -broadcast -chainid "test9" -remote "https://rpc.test9.testnets.gno.land" ADDRESS gnokey query -remote "https://rpc.test9.testnets.gno.land" auth/accounts/ADDRESS
gnokey maketx call -pkgpath "gno.land/r/gnoland/boards2/v1" -func "AcceptInvite" -args " " -args " " -gas-fee 1000000ugnot -gas-wanted 5000000 -send " " ADDRESS > call.tx
gnokey sign -tx-path call.tx -chainid "test9" -account-number ACCOUNTNUMBER -account-sequence SEQUENCENUMBER ADDRESS
gnokey broadcast -remote "https://rpc.test9.testnets.gno.land" call.tx
AreRealmMembersLocked
func AreRealmMembersLocked() bool
Link
Execute
AreRealmMembersLocked checks if realm members has been locked.
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/gnoland/boards2/v1" -func "AreRealmMembersLocked" -gas-fee 1000000ugnot -gas-wanted 5000000 -send " " -broadcast -chainid "test9" -remote "https://rpc.test9.testnets.gno.land" ADDRESS gnokey query -remote "https://rpc.test9.testnets.gno.land" auth/accounts/ADDRESS
gnokey maketx call -pkgpath "gno.land/r/gnoland/boards2/v1" -func "AreRealmMembersLocked" -gas-fee 1000000ugnot -gas-wanted 5000000 -send " " ADDRESS > call.tx
gnokey sign -tx-path call.tx -chainid "test9" -account-number ACCOUNTNUMBER -account-sequence SEQUENCENUMBER ADDRESS
gnokey broadcast -remote "https://rpc.test9.testnets.gno.land" call.tx
Ban
func Ban(_ realm, boardID BoardID, user address, hours uint, reason string)
Link
Execute
Ban bans a user from a board for a period of time. Only invited guest members and external users can be banned. Banning board owners, admins and moderators is not allowed.
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/gnoland/boards2/v1" -func "Ban" -args " " -args " " -args " " -args " " -gas-fee 1000000ugnot -gas-wanted 5000000 -send " " -broadcast -chainid "test9" -remote "https://rpc.test9.testnets.gno.land" ADDRESS gnokey query -remote "https://rpc.test9.testnets.gno.land" auth/accounts/ADDRESS
gnokey maketx call -pkgpath "gno.land/r/gnoland/boards2/v1" -func "Ban" -args " " -args " " -args " " -args " " -gas-fee 1000000ugnot -gas-wanted 5000000 -send " " ADDRESS > call.tx
gnokey sign -tx-path call.tx -chainid "test9" -account-number ACCOUNTNUMBER -account-sequence SEQUENCENUMBER ADDRESS
gnokey broadcast -remote "https://rpc.test9.testnets.gno.land" call.tx
ChangeMemberRole
func ChangeMemberRole(_ realm, boardID BoardID, member address, role Role)
Link
Execute
ChangeMemberRole changes the role of a realm or board member.
Board ID is only required when changing the role for a member of a board.
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/gnoland/boards2/v1" -func "ChangeMemberRole" -args " " -args " " -args " " -gas-fee 1000000ugnot -gas-wanted 5000000 -send " " -broadcast -chainid "test9" -remote "https://rpc.test9.testnets.gno.land" ADDRESS gnokey query -remote "https://rpc.test9.testnets.gno.land" auth/accounts/ADDRESS
gnokey maketx call -pkgpath "gno.land/r/gnoland/boards2/v1" -func "ChangeMemberRole" -args " " -args " " -args " " -gas-fee 1000000ugnot -gas-wanted 5000000 -send " " ADDRESS > call.tx
gnokey sign -tx-path call.tx -chainid "test9" -account-number ACCOUNTNUMBER -account-sequence SEQUENCENUMBER ADDRESS
gnokey broadcast -remote "https://rpc.test9.testnets.gno.land" call.tx
DeleteReply
func DeleteReply(_ realm, boardID BoardID, threadID, replyID PostID)
Link
Execute
DeleteReply deletes a reply from a thread.
Replies can be deleted by the users who created them or otherwise by users with special permissions. Soft deletion is used when the deleted reply contains sub replies, in which case the reply content is replaced by a text informing that reply has been deleted to avoid deleting sub-replies.
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/gnoland/boards2/v1" -func "DeleteReply" -args " " -args " " -args " " -gas-fee 1000000ugnot -gas-wanted 5000000 -send " " -broadcast -chainid "test9" -remote "https://rpc.test9.testnets.gno.land" ADDRESS gnokey query -remote "https://rpc.test9.testnets.gno.land" auth/accounts/ADDRESS
gnokey maketx call -pkgpath "gno.land/r/gnoland/boards2/v1" -func "DeleteReply" -args " " -args " " -args " " -gas-fee 1000000ugnot -gas-wanted 5000000 -send " " ADDRESS > call.tx
gnokey sign -tx-path call.tx -chainid "test9" -account-number ACCOUNTNUMBER -account-sequence SEQUENCENUMBER ADDRESS
gnokey broadcast -remote "https://rpc.test9.testnets.gno.land" call.tx
DeleteThread
func DeleteThread(_ realm, boardID BoardID, threadID PostID)
Link
Execute
DeleteThread deletes a thread from a board.
Threads can be deleted by the users who created them or otherwise by users with special permissions.
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/gnoland/boards2/v1" -func "DeleteThread" -args " " -args " " -gas-fee 1000000ugnot -gas-wanted 5000000 -send " " -broadcast -chainid "test9" -remote "https://rpc.test9.testnets.gno.land" ADDRESS gnokey query -remote "https://rpc.test9.testnets.gno.land" auth/accounts/ADDRESS
gnokey maketx call -pkgpath "gno.land/r/gnoland/boards2/v1" -func "DeleteThread" -args " " -args " " -gas-fee 1000000ugnot -gas-wanted 5000000 -send " " ADDRESS > call.tx
gnokey sign -tx-path call.tx -chainid "test9" -account-number ACCOUNTNUMBER -account-sequence SEQUENCENUMBER ADDRESS
gnokey broadcast -remote "https://rpc.test9.testnets.gno.land" call.tx
EditReply
func EditReply(_ realm, boardID BoardID, threadID, replyID PostID, body string)
Link
Execute
EditReply updates the body of comment or reply.
Replies can be updated only by the users who created them.
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/gnoland/boards2/v1" -func "EditReply" -args " " -args " " -args " " -args " " -gas-fee 1000000ugnot -gas-wanted 5000000 -send " " -broadcast -chainid "test9" -remote "https://rpc.test9.testnets.gno.land" ADDRESS gnokey query -remote "https://rpc.test9.testnets.gno.land" auth/accounts/ADDRESS
gnokey maketx call -pkgpath "gno.land/r/gnoland/boards2/v1" -func "EditReply" -args " " -args " " -args " " -args " " -gas-fee 1000000ugnot -gas-wanted 5000000 -send " " ADDRESS > call.tx
gnokey sign -tx-path call.tx -chainid "test9" -account-number ACCOUNTNUMBER -account-sequence SEQUENCENUMBER ADDRESS
gnokey broadcast -remote "https://rpc.test9.testnets.gno.land" call.tx
EditThread
func EditThread(_ realm, boardID BoardID, threadID PostID, title, body string)
Link
Execute
EditThread updates the title and body of thread.
Threads can be updated by the users who created them or otherwise by users with special permissions.
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/gnoland/boards2/v1" -func "EditThread" -args " " -args " " -args " " -args " " -gas-fee 1000000ugnot -gas-wanted 5000000 -send " " -broadcast -chainid "test9" -remote "https://rpc.test9.testnets.gno.land" ADDRESS gnokey query -remote "https://rpc.test9.testnets.gno.land" auth/accounts/ADDRESS
gnokey maketx call -pkgpath "gno.land/r/gnoland/boards2/v1" -func "EditThread" -args " " -args " " -args " " -args " " -gas-fee 1000000ugnot -gas-wanted 5000000 -send " " ADDRESS > call.tx
gnokey sign -tx-path call.tx -chainid "test9" -account-number ACCOUNTNUMBER -account-sequence SEQUENCENUMBER ADDRESS
gnokey broadcast -remote "https://rpc.test9.testnets.gno.land" call.tx
FlagReply
func FlagReply(_ realm, boardID BoardID, threadID, replyID PostID, reason string)
Link
Execute
FlagReply adds a new flag to a comment or reply.
Flagging requires special permissions and hides the comment or reply when the number of flags reaches a pre-defined flagging threshold.
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/gnoland/boards2/v1" -func "FlagReply" -args " " -args " " -args " " -args " " -gas-fee 1000000ugnot -gas-wanted 5000000 -send " " -broadcast -chainid "test9" -remote "https://rpc.test9.testnets.gno.land" ADDRESS gnokey query -remote "https://rpc.test9.testnets.gno.land" auth/accounts/ADDRESS
gnokey maketx call -pkgpath "gno.land/r/gnoland/boards2/v1" -func "FlagReply" -args " " -args " " -args " " -args " " -gas-fee 1000000ugnot -gas-wanted 5000000 -send " " ADDRESS > call.tx
gnokey sign -tx-path call.tx -chainid "test9" -account-number ACCOUNTNUMBER -account-sequence SEQUENCENUMBER ADDRESS
gnokey broadcast -remote "https://rpc.test9.testnets.gno.land" call.tx
FlagThread
func FlagThread(_ realm, boardID BoardID, threadID PostID, reason string)
Link
Execute
FlagThread adds a new flag to a thread.
Flagging requires special permissions and hides the thread when the number of flags reaches a pre-defined flagging threshold.
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/gnoland/boards2/v1" -func "FlagThread" -args " " -args " " -args " " -gas-fee 1000000ugnot -gas-wanted 5000000 -send " " -broadcast -chainid "test9" -remote "https://rpc.test9.testnets.gno.land" ADDRESS gnokey query -remote "https://rpc.test9.testnets.gno.land" auth/accounts/ADDRESS
gnokey maketx call -pkgpath "gno.land/r/gnoland/boards2/v1" -func "FlagThread" -args " " -args " " -args " " -gas-fee 1000000ugnot -gas-wanted 5000000 -send " " ADDRESS > call.tx
gnokey sign -tx-path call.tx -chainid "test9" -account-number ACCOUNTNUMBER -account-sequence SEQUENCENUMBER ADDRESS
gnokey broadcast -remote "https://rpc.test9.testnets.gno.land" call.tx
FreezeBoard
func FreezeBoard(_ realm, boardID BoardID)
Link
Execute
FreezeBoard freezes a board so no more threads and comments can be created or modified.
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/gnoland/boards2/v1" -func "FreezeBoard" -args " " -gas-fee 1000000ugnot -gas-wanted 5000000 -send " " -broadcast -chainid "test9" -remote "https://rpc.test9.testnets.gno.land" ADDRESS gnokey query -remote "https://rpc.test9.testnets.gno.land" auth/accounts/ADDRESS
gnokey maketx call -pkgpath "gno.land/r/gnoland/boards2/v1" -func "FreezeBoard" -args " " -gas-fee 1000000ugnot -gas-wanted 5000000 -send " " ADDRESS > call.tx
gnokey sign -tx-path call.tx -chainid "test9" -account-number ACCOUNTNUMBER -account-sequence SEQUENCENUMBER ADDRESS
gnokey broadcast -remote "https://rpc.test9.testnets.gno.land" call.tx
FreezeReply
func FreezeReply(_ realm, boardID BoardID, threadID, replyID PostID)
Link
Execute
FreezeReply freezes a thread reply so it cannot be modified or deleted.
Fails when parent thread or board are frozen.
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/gnoland/boards2/v1" -func "FreezeReply" -args " " -args " " -args " " -gas-fee 1000000ugnot -gas-wanted 5000000 -send " " -broadcast -chainid "test9" -remote "https://rpc.test9.testnets.gno.land" ADDRESS gnokey query -remote "https://rpc.test9.testnets.gno.land" auth/accounts/ADDRESS
gnokey maketx call -pkgpath "gno.land/r/gnoland/boards2/v1" -func "FreezeReply" -args " " -args " " -args " " -gas-fee 1000000ugnot -gas-wanted 5000000 -send " " ADDRESS > call.tx
gnokey sign -tx-path call.tx -chainid "test9" -account-number ACCOUNTNUMBER -account-sequence SEQUENCENUMBER ADDRESS
gnokey broadcast -remote "https://rpc.test9.testnets.gno.land" call.tx
FreezeThread
func FreezeThread(_ realm, boardID BoardID, threadID PostID)
Link
Execute
FreezeThread freezes a thread so thread cannot be replied, modified or deleted.
Fails if board is frozen.
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/gnoland/boards2/v1" -func "FreezeThread" -args " " -args " " -gas-fee 1000000ugnot -gas-wanted 5000000 -send " " -broadcast -chainid "test9" -remote "https://rpc.test9.testnets.gno.land" ADDRESS gnokey query -remote "https://rpc.test9.testnets.gno.land" auth/accounts/ADDRESS
gnokey maketx call -pkgpath "gno.land/r/gnoland/boards2/v1" -func "FreezeThread" -args " " -args " " -gas-fee 1000000ugnot -gas-wanted 5000000 -send " " ADDRESS > call.tx
gnokey sign -tx-path call.tx -chainid "test9" -account-number ACCOUNTNUMBER -account-sequence SEQUENCENUMBER ADDRESS
gnokey broadcast -remote "https://rpc.test9.testnets.gno.land" call.tx
GetFlaggingThreshold
func GetFlaggingThreshold(boardID BoardID) int
Link
Execute
GetFlaggingThreshold returns the number of flags required to hide a thread or comment within a board.
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/gnoland/boards2/v1" -func "GetFlaggingThreshold" -args " " -gas-fee 1000000ugnot -gas-wanted 5000000 -send " " -broadcast -chainid "test9" -remote "https://rpc.test9.testnets.gno.land" ADDRESS gnokey query -remote "https://rpc.test9.testnets.gno.land" auth/accounts/ADDRESS
gnokey maketx call -pkgpath "gno.land/r/gnoland/boards2/v1" -func "GetFlaggingThreshold" -args " " -gas-fee 1000000ugnot -gas-wanted 5000000 -send " " ADDRESS > call.tx
gnokey sign -tx-path call.tx -chainid "test9" -account-number ACCOUNTNUMBER -account-sequence SEQUENCENUMBER ADDRESS
gnokey broadcast -remote "https://rpc.test9.testnets.gno.land" call.tx
HasMemberRole
func HasMemberRole(boardID BoardID, member address, role Role) bool
Link
Execute
HasMemberRole checks if a realm or board member has a specific role assigned.
Board ID is only required when checking a member of a board.
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/gnoland/boards2/v1" -func "HasMemberRole" -args " " -args " " -args " " -gas-fee 1000000ugnot -gas-wanted 5000000 -send " " -broadcast -chainid "test9" -remote "https://rpc.test9.testnets.gno.land" ADDRESS gnokey query -remote "https://rpc.test9.testnets.gno.land" auth/accounts/ADDRESS
gnokey maketx call -pkgpath "gno.land/r/gnoland/boards2/v1" -func "HasMemberRole" -args " " -args " " -args " " -gas-fee 1000000ugnot -gas-wanted 5000000 -send " " ADDRESS > call.tx
gnokey sign -tx-path call.tx -chainid "test9" -account-number ACCOUNTNUMBER -account-sequence SEQUENCENUMBER ADDRESS
gnokey broadcast -remote "https://rpc.test9.testnets.gno.land" call.tx
InviteMember
func InviteMember(_ realm, boardID BoardID, user address, role Role)
Link
Execute
InviteMember adds a member to the realm or to a board.
A role can optionally be specified to be assigned to the new member.
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/gnoland/boards2/v1" -func "InviteMember" -args " " -args " " -args " " -gas-fee 1000000ugnot -gas-wanted 5000000 -send " " -broadcast -chainid "test9" -remote "https://rpc.test9.testnets.gno.land" ADDRESS gnokey query -remote "https://rpc.test9.testnets.gno.land" auth/accounts/ADDRESS
gnokey maketx call -pkgpath "gno.land/r/gnoland/boards2/v1" -func "InviteMember" -args " " -args " " -args " " -gas-fee 1000000ugnot -gas-wanted 5000000 -send " " ADDRESS > call.tx
gnokey sign -tx-path call.tx -chainid "test9" -account-number ACCOUNTNUMBER -account-sequence SEQUENCENUMBER ADDRESS
gnokey broadcast -remote "https://rpc.test9.testnets.gno.land" call.tx
InviteMembers
func InviteMembers(_ realm, boardID BoardID, invites ...Invite)
Link
Execute
InviteMembers adds one or more members to the realm or to a board.
Board ID is only required when inviting a member to a specific board.
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/gnoland/boards2/v1" -func "InviteMembers" -args " " -args " " -gas-fee 1000000ugnot -gas-wanted 5000000 -send " " -broadcast -chainid "test9" -remote "https://rpc.test9.testnets.gno.land" ADDRESS gnokey query -remote "https://rpc.test9.testnets.gno.land" auth/accounts/ADDRESS
gnokey maketx call -pkgpath "gno.land/r/gnoland/boards2/v1" -func "InviteMembers" -args " " -args " " -gas-fee 1000000ugnot -gas-wanted 5000000 -send " " ADDRESS > call.tx
gnokey sign -tx-path call.tx -chainid "test9" -account-number ACCOUNTNUMBER -account-sequence SEQUENCENUMBER ADDRESS
gnokey broadcast -remote "https://rpc.test9.testnets.gno.land" call.tx
IsBanned
func IsBanned(boardID BoardID, user address) bool
Link
Execute
IsBanned checks if a user is banned from a board.
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/gnoland/boards2/v1" -func "IsBanned" -args " " -args " " -gas-fee 1000000ugnot -gas-wanted 5000000 -send " " -broadcast -chainid "test9" -remote "https://rpc.test9.testnets.gno.land" ADDRESS gnokey query -remote "https://rpc.test9.testnets.gno.land" auth/accounts/ADDRESS
gnokey maketx call -pkgpath "gno.land/r/gnoland/boards2/v1" -func "IsBanned" -args " " -args " " -gas-fee 1000000ugnot -gas-wanted 5000000 -send " " ADDRESS > call.tx
gnokey sign -tx-path call.tx -chainid "test9" -account-number ACCOUNTNUMBER -account-sequence SEQUENCENUMBER ADDRESS
gnokey broadcast -remote "https://rpc.test9.testnets.gno.land" call.tx
IsBoardFrozen
func IsBoardFrozen(boardID BoardID) bool
Link
Execute
IsBoardFrozen checks if a board has been frozen.
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/gnoland/boards2/v1" -func "IsBoardFrozen" -args " " -gas-fee 1000000ugnot -gas-wanted 5000000 -send " " -broadcast -chainid "test9" -remote "https://rpc.test9.testnets.gno.land" ADDRESS gnokey query -remote "https://rpc.test9.testnets.gno.land" auth/accounts/ADDRESS
gnokey maketx call -pkgpath "gno.land/r/gnoland/boards2/v1" -func "IsBoardFrozen" -args " " -gas-fee 1000000ugnot -gas-wanted 5000000 -send " " ADDRESS > call.tx
gnokey sign -tx-path call.tx -chainid "test9" -account-number ACCOUNTNUMBER -account-sequence SEQUENCENUMBER ADDRESS
gnokey broadcast -remote "https://rpc.test9.testnets.gno.land" call.tx
IsMember
func IsMember(boardID BoardID, user address) bool
Link
Execute
IsMember checks if an user is a member of the realm or a board.
Board ID is only required when checking if a user is a member of a board.
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/gnoland/boards2/v1" -func "IsMember" -args " " -args " " -gas-fee 1000000ugnot -gas-wanted 5000000 -send " " -broadcast -chainid "test9" -remote "https://rpc.test9.testnets.gno.land" ADDRESS gnokey query -remote "https://rpc.test9.testnets.gno.land" auth/accounts/ADDRESS
gnokey maketx call -pkgpath "gno.land/r/gnoland/boards2/v1" -func "IsMember" -args " " -args " " -gas-fee 1000000ugnot -gas-wanted 5000000 -send " " ADDRESS > call.tx
gnokey sign -tx-path call.tx -chainid "test9" -account-number ACCOUNTNUMBER -account-sequence SEQUENCENUMBER ADDRESS
gnokey broadcast -remote "https://rpc.test9.testnets.gno.land" call.tx
IsRealmLocked
func IsRealmLocked() bool
Link
Execute
IsRealmLocked checks if boards realm has been locked.
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/gnoland/boards2/v1" -func "IsRealmLocked" -gas-fee 1000000ugnot -gas-wanted 5000000 -send " " -broadcast -chainid "test9" -remote "https://rpc.test9.testnets.gno.land" ADDRESS gnokey query -remote "https://rpc.test9.testnets.gno.land" auth/accounts/ADDRESS
gnokey maketx call -pkgpath "gno.land/r/gnoland/boards2/v1" -func "IsRealmLocked" -gas-fee 1000000ugnot -gas-wanted 5000000 -send " " ADDRESS > call.tx
gnokey sign -tx-path call.tx -chainid "test9" -account-number ACCOUNTNUMBER -account-sequence SEQUENCENUMBER ADDRESS
gnokey broadcast -remote "https://rpc.test9.testnets.gno.land" call.tx
IsReplyFrozen
func IsReplyFrozen(boardID BoardID, threadID, replyID PostID) bool
Link
Execute
IsReplyFrozen checks if a thread reply has been frozen.
Returns true when board or a parent thread is frozen.
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/gnoland/boards2/v1" -func "IsReplyFrozen" -args " " -args " " -args " " -gas-fee 1000000ugnot -gas-wanted 5000000 -send " " -broadcast -chainid "test9" -remote "https://rpc.test9.testnets.gno.land" ADDRESS gnokey query -remote "https://rpc.test9.testnets.gno.land" auth/accounts/ADDRESS
gnokey maketx call -pkgpath "gno.land/r/gnoland/boards2/v1" -func "IsReplyFrozen" -args " " -args " " -args " " -gas-fee 1000000ugnot -gas-wanted 5000000 -send " " ADDRESS > call.tx
gnokey sign -tx-path call.tx -chainid "test9" -account-number ACCOUNTNUMBER -account-sequence SEQUENCENUMBER ADDRESS
gnokey broadcast -remote "https://rpc.test9.testnets.gno.land" call.tx
IsThreadFrozen
func IsThreadFrozen(boardID BoardID, threadID PostID) bool
Link
Execute
IsThreadFrozen checks if a thread has been frozen.
Returns true if board is frozen.
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/gnoland/boards2/v1" -func "IsThreadFrozen" -args " " -args " " -gas-fee 1000000ugnot -gas-wanted 5000000 -send " " -broadcast -chainid "test9" -remote "https://rpc.test9.testnets.gno.land" ADDRESS gnokey query -remote "https://rpc.test9.testnets.gno.land" auth/accounts/ADDRESS
gnokey maketx call -pkgpath "gno.land/r/gnoland/boards2/v1" -func "IsThreadFrozen" -args " " -args " " -gas-fee 1000000ugnot -gas-wanted 5000000 -send " " ADDRESS > call.tx
gnokey sign -tx-path call.tx -chainid "test9" -account-number ACCOUNTNUMBER -account-sequence SEQUENCENUMBER ADDRESS
gnokey broadcast -remote "https://rpc.test9.testnets.gno.land" call.tx
IterateRealmMembers
func IterateRealmMembers(offset int, fn UsersIterFn) (halted bool)
Link
Execute
IterateRealmMembers iterates boards realm members. The iteration is done only for realm members, board members are not iterated.
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/gnoland/boards2/v1" -func "IterateRealmMembers" -args " " -args " " -gas-fee 1000000ugnot -gas-wanted 5000000 -send " " -broadcast -chainid "test9" -remote "https://rpc.test9.testnets.gno.land" ADDRESS gnokey query -remote "https://rpc.test9.testnets.gno.land" auth/accounts/ADDRESS
gnokey maketx call -pkgpath "gno.land/r/gnoland/boards2/v1" -func "IterateRealmMembers" -args " " -args " " -gas-fee 1000000ugnot -gas-wanted 5000000 -send " " ADDRESS > call.tx
gnokey sign -tx-path call.tx -chainid "test9" -account-number ACCOUNTNUMBER -account-sequence SEQUENCENUMBER ADDRESS
gnokey broadcast -remote "https://rpc.test9.testnets.gno.land" call.tx
LockRealm
func LockRealm(_ realm, lockRealmMembers bool)
Link
Execute
LockRealm locks the realm making it readonly.
WARNING: Realm can't be unlocked once locked.
Realm can also be locked without locking realm members. Realm members can be locked when locking the realm or afterwards. This is relevant for two reasons, one so members can be modified after lock. The other is for realm owners, which can delete threads and comments after lock.
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/gnoland/boards2/v1" -func "LockRealm" -args " " -gas-fee 1000000ugnot -gas-wanted 5000000 -send " " -broadcast -chainid "test9" -remote "https://rpc.test9.testnets.gno.land" ADDRESS gnokey query -remote "https://rpc.test9.testnets.gno.land" auth/accounts/ADDRESS
gnokey maketx call -pkgpath "gno.land/r/gnoland/boards2/v1" -func "LockRealm" -args " " -gas-fee 1000000ugnot -gas-wanted 5000000 -send " " ADDRESS > call.tx
gnokey sign -tx-path call.tx -chainid "test9" -account-number ACCOUNTNUMBER -account-sequence SEQUENCENUMBER ADDRESS
gnokey broadcast -remote "https://rpc.test9.testnets.gno.land" call.tx
RemoveMember
func RemoveMember(_ realm, boardID BoardID, member address)
Link
Execute
RemoveMember removes a member from the realm or a boards.
Board ID is only required when removing a member from board.
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/gnoland/boards2/v1" -func "RemoveMember" -args " " -args " " -gas-fee 1000000ugnot -gas-wanted 5000000 -send " " -broadcast -chainid "test9" -remote "https://rpc.test9.testnets.gno.land" ADDRESS gnokey query -remote "https://rpc.test9.testnets.gno.land" auth/accounts/ADDRESS
gnokey maketx call -pkgpath "gno.land/r/gnoland/boards2/v1" -func "RemoveMember" -args " " -args " " -gas-fee 1000000ugnot -gas-wanted 5000000 -send " " ADDRESS > call.tx
gnokey sign -tx-path call.tx -chainid "test9" -account-number ACCOUNTNUMBER -account-sequence SEQUENCENUMBER ADDRESS
gnokey broadcast -remote "https://rpc.test9.testnets.gno.land" call.tx
RenameBoard
func RenameBoard(_ realm, name, newName string)
Link
Execute
RenameBoard changes the name of an existing board.
A history of previous board names is kept when boards are renamed. Because of that boards are also accesible using previous name(s).
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/gnoland/boards2/v1" -func "RenameBoard" -args " " -args " " -gas-fee 1000000ugnot -gas-wanted 5000000 -send " " -broadcast -chainid "test9" -remote "https://rpc.test9.testnets.gno.land" ADDRESS gnokey query -remote "https://rpc.test9.testnets.gno.land" auth/accounts/ADDRESS
gnokey maketx call -pkgpath "gno.land/r/gnoland/boards2/v1" -func "RenameBoard" -args " " -args " " -gas-fee 1000000ugnot -gas-wanted 5000000 -send " " ADDRESS > call.tx
gnokey sign -tx-path call.tx -chainid "test9" -account-number ACCOUNTNUMBER -account-sequence SEQUENCENUMBER ADDRESS
gnokey broadcast -remote "https://rpc.test9.testnets.gno.land" call.tx
Render
func Render(path string) string
Link
Execute
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/gnoland/boards2/v1" -func "Render" -args " " -gas-fee 1000000ugnot -gas-wanted 5000000 -send " " -broadcast -chainid "test9" -remote "https://rpc.test9.testnets.gno.land" ADDRESS gnokey query -remote "https://rpc.test9.testnets.gno.land" auth/accounts/ADDRESS
gnokey maketx call -pkgpath "gno.land/r/gnoland/boards2/v1" -func "Render" -args " " -gas-fee 1000000ugnot -gas-wanted 5000000 -send " " ADDRESS > call.tx
gnokey sign -tx-path call.tx -chainid "test9" -account-number ACCOUNTNUMBER -account-sequence SEQUENCENUMBER ADDRESS
gnokey broadcast -remote "https://rpc.test9.testnets.gno.land" call.tx
RequestInvite
func RequestInvite(_ realm, boardID BoardID)
Link
Execute
RequestInvite request to be invited to a board.
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/gnoland/boards2/v1" -func "RequestInvite" -args " " -gas-fee 1000000ugnot -gas-wanted 5000000 -send " " -broadcast -chainid "test9" -remote "https://rpc.test9.testnets.gno.land" ADDRESS gnokey query -remote "https://rpc.test9.testnets.gno.land" auth/accounts/ADDRESS
gnokey maketx call -pkgpath "gno.land/r/gnoland/boards2/v1" -func "RequestInvite" -args " " -gas-fee 1000000ugnot -gas-wanted 5000000 -send " " ADDRESS > call.tx
gnokey sign -tx-path call.tx -chainid "test9" -account-number ACCOUNTNUMBER -account-sequence SEQUENCENUMBER ADDRESS
gnokey broadcast -remote "https://rpc.test9.testnets.gno.land" call.tx
RevokeInvite
func RevokeInvite(_ realm, boardID BoardID, user address)
Link
Execute
RevokeInvite revokes a board invite request.
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/gnoland/boards2/v1" -func "RevokeInvite" -args " " -args " " -gas-fee 1000000ugnot -gas-wanted 5000000 -send " " -broadcast -chainid "test9" -remote "https://rpc.test9.testnets.gno.land" ADDRESS gnokey query -remote "https://rpc.test9.testnets.gno.land" auth/accounts/ADDRESS
gnokey maketx call -pkgpath "gno.land/r/gnoland/boards2/v1" -func "RevokeInvite" -args " " -args " " -gas-fee 1000000ugnot -gas-wanted 5000000 -send " " ADDRESS > call.tx
gnokey sign -tx-path call.tx -chainid "test9" -account-number ACCOUNTNUMBER -account-sequence SEQUENCENUMBER ADDRESS
gnokey broadcast -remote "https://rpc.test9.testnets.gno.land" call.tx
SetFlaggingThreshold
func SetFlaggingThreshold(_ realm, boardID BoardID, threshold int)
Link
Execute
SetFlaggingThreshold sets the number of flags required to hide a thread or comment.
Threshold is only applicable within the board where it's setted.
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/gnoland/boards2/v1" -func "SetFlaggingThreshold" -args " " -args " " -gas-fee 1000000ugnot -gas-wanted 5000000 -send " " -broadcast -chainid "test9" -remote "https://rpc.test9.testnets.gno.land" ADDRESS gnokey query -remote "https://rpc.test9.testnets.gno.land" auth/accounts/ADDRESS
gnokey maketx call -pkgpath "gno.land/r/gnoland/boards2/v1" -func "SetFlaggingThreshold" -args " " -args " " -gas-fee 1000000ugnot -gas-wanted 5000000 -send " " ADDRESS > call.tx
gnokey sign -tx-path call.tx -chainid "test9" -account-number ACCOUNTNUMBER -account-sequence SEQUENCENUMBER ADDRESS
gnokey broadcast -remote "https://rpc.test9.testnets.gno.land" call.tx
SetHelp
func SetHelp(_ realm, content string)
Link
Execute
SetHelp sets or updates boards realm help content.
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/gnoland/boards2/v1" -func "SetHelp" -args " " -gas-fee 1000000ugnot -gas-wanted 5000000 -send " " -broadcast -chainid "test9" -remote "https://rpc.test9.testnets.gno.land" ADDRESS gnokey query -remote "https://rpc.test9.testnets.gno.land" auth/accounts/ADDRESS
gnokey maketx call -pkgpath "gno.land/r/gnoland/boards2/v1" -func "SetHelp" -args " " -gas-fee 1000000ugnot -gas-wanted 5000000 -send " " ADDRESS > call.tx
gnokey sign -tx-path call.tx -chainid "test9" -account-number ACCOUNTNUMBER -account-sequence SEQUENCENUMBER ADDRESS
gnokey broadcast -remote "https://rpc.test9.testnets.gno.land" call.tx
SetPermissions
func SetPermissions(_ realm, bid BoardID, p Permissions)
Link
Execute
SetPermissions sets a permissions implementation for boards2 realm or a board.
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/gnoland/boards2/v1" -func "SetPermissions" -args " " -args " " -gas-fee 1000000ugnot -gas-wanted 5000000 -send " " -broadcast -chainid "test9" -remote "https://rpc.test9.testnets.gno.land" ADDRESS gnokey query -remote "https://rpc.test9.testnets.gno.land" auth/accounts/ADDRESS
gnokey maketx call -pkgpath "gno.land/r/gnoland/boards2/v1" -func "SetPermissions" -args " " -args " " -gas-fee 1000000ugnot -gas-wanted 5000000 -send " " ADDRESS > call.tx
gnokey sign -tx-path call.tx -chainid "test9" -account-number ACCOUNTNUMBER -account-sequence SEQUENCENUMBER ADDRESS
gnokey broadcast -remote "https://rpc.test9.testnets.gno.land" call.tx
SetRealmNotice
func SetRealmNotice(_ realm, message string)
Link
Execute
SetRealmNotice sets a notice to be displayed globally by the realm. An empty message removes the realm notice.
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/gnoland/boards2/v1" -func "SetRealmNotice" -args " " -gas-fee 1000000ugnot -gas-wanted 5000000 -send " " -broadcast -chainid "test9" -remote "https://rpc.test9.testnets.gno.land" ADDRESS gnokey query -remote "https://rpc.test9.testnets.gno.land" auth/accounts/ADDRESS
gnokey maketx call -pkgpath "gno.land/r/gnoland/boards2/v1" -func "SetRealmNotice" -args " " -gas-fee 1000000ugnot -gas-wanted 5000000 -send " " ADDRESS > call.tx
gnokey sign -tx-path call.tx -chainid "test9" -account-number ACCOUNTNUMBER -account-sequence SEQUENCENUMBER ADDRESS
gnokey broadcast -remote "https://rpc.test9.testnets.gno.land" call.tx
Unban
func Unban(_ realm, boardID BoardID, user address, reason string)
Link
Execute
Unban unbans a user from a board.
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/gnoland/boards2/v1" -func "Unban" -args " " -args " " -args " " -gas-fee 1000000ugnot -gas-wanted 5000000 -send " " -broadcast -chainid "test9" -remote "https://rpc.test9.testnets.gno.land" ADDRESS gnokey query -remote "https://rpc.test9.testnets.gno.land" auth/accounts/ADDRESS
gnokey maketx call -pkgpath "gno.land/r/gnoland/boards2/v1" -func "Unban" -args " " -args " " -args " " -gas-fee 1000000ugnot -gas-wanted 5000000 -send " " ADDRESS > call.tx
gnokey sign -tx-path call.tx -chainid "test9" -account-number ACCOUNTNUMBER -account-sequence SEQUENCENUMBER ADDRESS
gnokey broadcast -remote "https://rpc.test9.testnets.gno.land" call.tx
UnfreezeBoard
func UnfreezeBoard(_ realm, boardID BoardID)
Link
Execute
UnfreezeBoard removes frozen status from a board.
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/gnoland/boards2/v1" -func "UnfreezeBoard" -args " " -gas-fee 1000000ugnot -gas-wanted 5000000 -send " " -broadcast -chainid "test9" -remote "https://rpc.test9.testnets.gno.land" ADDRESS gnokey query -remote "https://rpc.test9.testnets.gno.land" auth/accounts/ADDRESS
gnokey maketx call -pkgpath "gno.land/r/gnoland/boards2/v1" -func "UnfreezeBoard" -args " " -gas-fee 1000000ugnot -gas-wanted 5000000 -send " " ADDRESS > call.tx
gnokey sign -tx-path call.tx -chainid "test9" -account-number ACCOUNTNUMBER -account-sequence SEQUENCENUMBER ADDRESS
gnokey broadcast -remote "https://rpc.test9.testnets.gno.land" call.tx
UnfreezeReply
func UnfreezeReply(_ realm, boardID BoardID, threadID, replyID PostID)
Link
Execute
UnfreezeReply removes frozen status from a reply.
Fails when parent thread or board are frozen.
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/gnoland/boards2/v1" -func "UnfreezeReply" -args " " -args " " -args " " -gas-fee 1000000ugnot -gas-wanted 5000000 -send " " -broadcast -chainid "test9" -remote "https://rpc.test9.testnets.gno.land" ADDRESS gnokey query -remote "https://rpc.test9.testnets.gno.land" auth/accounts/ADDRESS
gnokey maketx call -pkgpath "gno.land/r/gnoland/boards2/v1" -func "UnfreezeReply" -args " " -args " " -args " " -gas-fee 1000000ugnot -gas-wanted 5000000 -send " " ADDRESS > call.tx
gnokey sign -tx-path call.tx -chainid "test9" -account-number ACCOUNTNUMBER -account-sequence SEQUENCENUMBER ADDRESS
gnokey broadcast -remote "https://rpc.test9.testnets.gno.land" call.tx
UnfreezeThread
func UnfreezeThread(_ realm, boardID BoardID, threadID PostID)
Link
Execute
UnfreezeThread removes frozen status from a thread.
Fails if board is frozen.
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/gnoland/boards2/v1" -func "UnfreezeThread" -args " " -args " " -gas-fee 1000000ugnot -gas-wanted 5000000 -send " " -broadcast -chainid "test9" -remote "https://rpc.test9.testnets.gno.land" ADDRESS gnokey query -remote "https://rpc.test9.testnets.gno.land" auth/accounts/ADDRESS
gnokey maketx call -pkgpath "gno.land/r/gnoland/boards2/v1" -func "UnfreezeThread" -args " " -args " " -gas-fee 1000000ugnot -gas-wanted 5000000 -send " " ADDRESS > call.tx
gnokey sign -tx-path call.tx -chainid "test9" -account-number ACCOUNTNUMBER -account-sequence SEQUENCENUMBER ADDRESS
gnokey broadcast -remote "https://rpc.test9.testnets.gno.land" call.tx
NewBasicPermissions
func NewBasicPermissions(dao *commondao.CommonDAO) *BasicPermissions
Link
Execute
NewBasicPermissions creates a new permissions type. This type is a default implementation to handle users, roles and permissions.
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/gnoland/boards2/v1" -func "NewBasicPermissions" -args " " -gas-fee 1000000ugnot -gas-wanted 5000000 -send " " -broadcast -chainid "test9" -remote "https://rpc.test9.testnets.gno.land" ADDRESS gnokey query -remote "https://rpc.test9.testnets.gno.land" auth/accounts/ADDRESS
gnokey maketx call -pkgpath "gno.land/r/gnoland/boards2/v1" -func "NewBasicPermissions" -args " " -gas-fee 1000000ugnot -gas-wanted 5000000 -send " " ADDRESS > call.tx
gnokey sign -tx-path call.tx -chainid "test9" -account-number ACCOUNTNUMBER -account-sequence SEQUENCENUMBER ADDRESS
gnokey broadcast -remote "https://rpc.test9.testnets.gno.land" call.tx
GetBoard
func GetBoard(boardID BoardID) *Board
Link
Execute
GetBoard returns a single board.
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/gnoland/boards2/v1" -func "GetBoard" -args " " -gas-fee 1000000ugnot -gas-wanted 5000000 -send " " -broadcast -chainid "test9" -remote "https://rpc.test9.testnets.gno.land" ADDRESS gnokey query -remote "https://rpc.test9.testnets.gno.land" auth/accounts/ADDRESS
gnokey maketx call -pkgpath "gno.land/r/gnoland/boards2/v1" -func "GetBoard" -args " " -gas-fee 1000000ugnot -gas-wanted 5000000 -send " " ADDRESS > call.tx
gnokey sign -tx-path call.tx -chainid "test9" -account-number ACCOUNTNUMBER -account-sequence SEQUENCENUMBER ADDRESS
gnokey broadcast -remote "https://rpc.test9.testnets.gno.land" call.tx
CreateBoard
func CreateBoard(_ realm, name string, listed bool) BoardID
Link
Execute
CreateBoard creates a new board.
Listed boards are included in the list of boards.
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/gnoland/boards2/v1" -func "CreateBoard" -args " " -args " " -gas-fee 1000000ugnot -gas-wanted 5000000 -send " " -broadcast -chainid "test9" -remote "https://rpc.test9.testnets.gno.land" ADDRESS gnokey query -remote "https://rpc.test9.testnets.gno.land" auth/accounts/ADDRESS
gnokey maketx call -pkgpath "gno.land/r/gnoland/boards2/v1" -func "CreateBoard" -args " " -args " " -gas-fee 1000000ugnot -gas-wanted 5000000 -send " " ADDRESS > call.tx
gnokey sign -tx-path call.tx -chainid "test9" -account-number ACCOUNTNUMBER -account-sequence SEQUENCENUMBER ADDRESS
gnokey broadcast -remote "https://rpc.test9.testnets.gno.land" call.tx
GetBoardIDFromName
func GetBoardIDFromName(_ realm, name string) (_ BoardID, found bool)
Link
Execute
GetBoardIDFromName searches a board by name and returns it's ID.
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/gnoland/boards2/v1" -func "GetBoardIDFromName" -args " " -gas-fee 1000000ugnot -gas-wanted 5000000 -send " " -broadcast -chainid "test9" -remote "https://rpc.test9.testnets.gno.land" ADDRESS gnokey query -remote "https://rpc.test9.testnets.gno.land" auth/accounts/ADDRESS
gnokey maketx call -pkgpath "gno.land/r/gnoland/boards2/v1" -func "GetBoardIDFromName" -args " " -gas-fee 1000000ugnot -gas-wanted 5000000 -send " " ADDRESS > call.tx
gnokey sign -tx-path call.tx -chainid "test9" -account-number ACCOUNTNUMBER -account-sequence SEQUENCENUMBER ADDRESS
gnokey broadcast -remote "https://rpc.test9.testnets.gno.land" call.tx
CreateReply
func CreateReply(_ realm, boardID BoardID, threadID, replyID PostID, body string) PostID
Link
Execute
CreateReply creates a new comment or reply within a thread.
The value of \`replyID\` is only required when creating a reply of another reply.
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/gnoland/boards2/v1" -func "CreateReply" -args " " -args " " -args " " -args " " -gas-fee 1000000ugnot -gas-wanted 5000000 -send " " -broadcast -chainid "test9" -remote "https://rpc.test9.testnets.gno.land" ADDRESS gnokey query -remote "https://rpc.test9.testnets.gno.land" auth/accounts/ADDRESS
gnokey maketx call -pkgpath "gno.land/r/gnoland/boards2/v1" -func "CreateReply" -args " " -args " " -args " " -args " " -gas-fee 1000000ugnot -gas-wanted 5000000 -send " " ADDRESS > call.tx
gnokey sign -tx-path call.tx -chainid "test9" -account-number ACCOUNTNUMBER -account-sequence SEQUENCENUMBER ADDRESS
gnokey broadcast -remote "https://rpc.test9.testnets.gno.land" call.tx
CreateRepost
func CreateRepost(_ realm, boardID BoardID, threadID PostID, title, body string, destinationBoardID BoardID) PostID
Link
Execute
CreateRepost reposts a thread into another board.
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/gnoland/boards2/v1" -func "CreateRepost" -args " " -args " " -args " " -args " " -args " " -gas-fee 1000000ugnot -gas-wanted 5000000 -send " " -broadcast -chainid "test9" -remote "https://rpc.test9.testnets.gno.land" ADDRESS gnokey query -remote "https://rpc.test9.testnets.gno.land" auth/accounts/ADDRESS
gnokey maketx call -pkgpath "gno.land/r/gnoland/boards2/v1" -func "CreateRepost" -args " " -args " " -args " " -args " " -args " " -gas-fee 1000000ugnot -gas-wanted 5000000 -send " " ADDRESS > call.tx
gnokey sign -tx-path call.tx -chainid "test9" -account-number ACCOUNTNUMBER -account-sequence SEQUENCENUMBER ADDRESS
gnokey broadcast -remote "https://rpc.test9.testnets.gno.land" call.tx
CreateThread
func CreateThread(_ realm, boardID BoardID, title, body string) PostID
Link
Execute
CreateThread creates a new thread within a board.
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/gnoland/boards2/v1" -func "CreateThread" -args " " -args " " -args " " -gas-fee 1000000ugnot -gas-wanted 5000000 -send " " -broadcast -chainid "test9" -remote "https://rpc.test9.testnets.gno.land" ADDRESS gnokey query -remote "https://rpc.test9.testnets.gno.land" auth/accounts/ADDRESS
gnokey maketx call -pkgpath "gno.land/r/gnoland/boards2/v1" -func "CreateThread" -args " " -args " " -args " " -gas-fee 1000000ugnot -gas-wanted 5000000 -send " " ADDRESS > call.tx
gnokey sign -tx-path call.tx -chainid "test9" -account-number ACCOUNTNUMBER -account-sequence SEQUENCENUMBER ADDRESS
gnokey broadcast -remote "https://rpc.test9.testnets.gno.land" call.tx