Package hof is the hall of fame realm. The Hall of Fame is an exhibition that holds items. Users can add their realms to the Hall of Fame by importing the Hall of Fame realm and calling hof.Register() from their init function.
Functions
Delete
func Delete(pkgpath string)
Param
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/leon/hof" -func "Delete" -args "" -gas-fee 1000000ugnot -gas-wanted 5000000 -broadcast -chainid "portal-loop" -remote "https://rpc.gno.land:443" ADDRESSgnokey query -remote "https://rpc.gno.land:443" auth/accounts/ADDRESS
gnokey maketx call -pkgpath "gno.land/r/leon/hof" -func "Delete" -args "" -gas-fee 1000000ugnot -gas-wanted 5000000 -send "" ADDRESS > call.tx
gnokey sign -tx-path call.tx -chainid "portal-loop" -account-number ACCOUNTNUMBER -account-sequence SEQUENCENUMBER ADDRESS
gnokey broadcast -remote "https://rpc.gno.land:443" call.tx
Downvote
func Downvote(pkgpath string)
Param
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/leon/hof" -func "Downvote" -args "" -gas-fee 1000000ugnot -gas-wanted 5000000 -broadcast -chainid "portal-loop" -remote "https://rpc.gno.land:443" ADDRESSgnokey query -remote "https://rpc.gno.land:443" auth/accounts/ADDRESS
gnokey maketx call -pkgpath "gno.land/r/leon/hof" -func "Downvote" -args "" -gas-fee 1000000ugnot -gas-wanted 5000000 -send "" ADDRESS > call.tx
gnokey sign -tx-path call.tx -chainid "portal-loop" -account-number ACCOUNTNUMBER -account-sequence SEQUENCENUMBER ADDRESS
gnokey broadcast -remote "https://rpc.gno.land:443" call.tx
Register
func Register(title, description string)
Register registers your realm to the Hall of Fame Should be called from within code
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/leon/hof" -func "Register" -args "" -args "" -gas-fee 1000000ugnot -gas-wanted 5000000 -broadcast -chainid "portal-loop" -remote "https://rpc.gno.land:443" ADDRESSgnokey query -remote "https://rpc.gno.land:443" auth/accounts/ADDRESS
gnokey maketx call -pkgpath "gno.land/r/leon/hof" -func "Register" -args "" -args "" -gas-fee 1000000ugnot -gas-wanted 5000000 -send "" ADDRESS > call.tx
gnokey sign -tx-path call.tx -chainid "portal-loop" -account-number ACCOUNTNUMBER -account-sequence SEQUENCENUMBER ADDRESS
gnokey broadcast -remote "https://rpc.gno.land:443" call.tx
Render
func Render(path string) string
Param
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/leon/hof" -func "Render" -args "" -gas-fee 1000000ugnot -gas-wanted 5000000 -broadcast -chainid "portal-loop" -remote "https://rpc.gno.land:443" ADDRESSgnokey query -remote "https://rpc.gno.land:443" auth/accounts/ADDRESS
gnokey maketx call -pkgpath "gno.land/r/leon/hof" -func "Render" -args "" -gas-fee 1000000ugnot -gas-wanted 5000000 -send "" ADDRESS > call.tx
gnokey sign -tx-path call.tx -chainid "portal-loop" -account-number ACCOUNTNUMBER -account-sequence SEQUENCENUMBER ADDRESS
gnokey broadcast -remote "https://rpc.gno.land:443" call.tx
RenderExhibWidget
func RenderExhibWidget(itemsToRender int) string
Param
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/leon/hof" -func "RenderExhibWidget" -args "" -gas-fee 1000000ugnot -gas-wanted 5000000 -broadcast -chainid "portal-loop" -remote "https://rpc.gno.land:443" ADDRESSgnokey query -remote "https://rpc.gno.land:443" auth/accounts/ADDRESS
gnokey maketx call -pkgpath "gno.land/r/leon/hof" -func "RenderExhibWidget" -args "" -gas-fee 1000000ugnot -gas-wanted 5000000 -send "" ADDRESS > call.tx
gnokey sign -tx-path call.tx -chainid "portal-loop" -account-number ACCOUNTNUMBER -account-sequence SEQUENCENUMBER ADDRESS
gnokey broadcast -remote "https://rpc.gno.land:443" call.tx
Upvote
func Upvote(pkgpath string)
Param
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/leon/hof" -func "Upvote" -args "" -gas-fee 1000000ugnot -gas-wanted 5000000 -broadcast -chainid "portal-loop" -remote "https://rpc.gno.land:443" ADDRESSgnokey query -remote "https://rpc.gno.land:443" auth/accounts/ADDRESS
gnokey maketx call -pkgpath "gno.land/r/leon/hof" -func "Upvote" -args "" -gas-fee 1000000ugnot -gas-wanted 5000000 -send "" ADDRESS > call.tx
gnokey sign -tx-path call.tx -chainid "portal-loop" -account-number ACCOUNTNUMBER -account-sequence SEQUENCENUMBER ADDRESS
gnokey broadcast -remote "https://rpc.gno.land:443" call.tx
NewDatasource
func NewDatasource() Datasource
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/leon/hof" -func "NewDatasource" -gas-fee 1000000ugnot -gas-wanted 5000000 -broadcast -chainid "portal-loop" -remote "https://rpc.gno.land:443" ADDRESSgnokey query -remote "https://rpc.gno.land:443" auth/accounts/ADDRESS
gnokey maketx call -pkgpath "gno.land/r/leon/hof" -func "NewDatasource" -gas-fee 1000000ugnot -gas-wanted 5000000 -send "" ADDRESS > call.tx
gnokey sign -tx-path call.tx -chainid "portal-loop" -account-number ACCOUNTNUMBER -account-sequence SEQUENCENUMBER ADDRESS
gnokey broadcast -remote "https://rpc.gno.land:443" call.tx