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

bond package

Overview

Package bond is the create-bond policy for gnomemepad — separate from pad so promo schedules can change without redeploying the pad realm.

Pad calls CurrentBondUgnot() at Create time. This package owns:

  • normal bond (default 2 GNOT)
  • promo bond (default ~$20 in ugnot at a fixed GNOT rate, admin-adjustable)
  • 10-day window OR admin EndPromo → back to normal

USD is not on-chain: promo amount is ugnot. Admin sets PromoBondUgnot to approximate $20 (e.g. at $1/GNOT → 20e6 ugnot; at $0.5/GNOT → 40e6).

Function

ExtendPromo

func ExtendPromo(cur realm, extraSec int64)

ExtendPromo adds seconds to the current end (or starts from now if inactive).

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/g1mv0052e7r6s09f5t9xsqf00nj3tqsgt9dg52jr/gnomemepad/bond" -func "ExtendPromo" -args $'' -gas-fee 1000000ugnot -gas-wanted 1_000_000_000 -send "" -chainid "sapphire-1" -remote "https://rpc.sapphire.testnets.gno.land" ADDRESSgnokey query -remote "https://rpc.sapphire.testnets.gno.land" auth/accounts/ADDRESS
gnokey maketx call -pkgpath "gno.land/r/g1mv0052e7r6s09f5t9xsqf00nj3tqsgt9dg52jr/gnomemepad/bond" -func "ExtendPromo" -args $'' -gas-fee 1000000ugnot -gas-wanted 1_000_000_000 -send "" -broadcast=false ADDRESS > call.tx
gnokey sign -tx-path call.tx -chainid "sapphire-1" -account-number ACCOUNTNUMBER -account-sequence SEQUENCENUMBER ADDRESS
gnokey broadcast -remote "https://rpc.sapphire.testnets.gno.land" call.tx