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

padv19 package

Overview

Package pad is gnomemepad: a self-contained meme launchpad for gno.land.

Example
1Create -> GRC20 + bonding curve (WUGNOT collateral) -> Graduate
2  -> remaining tokens + raised WUGNOT seed Gnoswap LP (auto-list)
3  -> CreatePool fee: pad GNS inventory or ExactOut surplus WUGNOT->GNS
4  -> else locked internal CPMM fallback (test / missing GNS fee path)

Production: Buy/Sell/Swap* use WUGNOT (push-pay + prepaid credits). Payment: user wugnot.Transfer(pad, amount) then Buy.

  • Free float on pad is auto-locked into caller's prepaid credit.
  • Buy may over-pay; unused WUGNOT stays as claimable credit (ClaimWugnot).
  • Never Approve/TransferFrom (GRC20 spender bugs with Adena).

List: pre-fund pad WUGNOT+GNS then RetryListGnoswap (no user TransferFrom). Unit tests (testSkipBanker): still use OriginSend ugnot as collateral units. Tokens are real GRC20 (mint on buy, burn on sell). Hybrid of Pump.fun + permanent LP lock.

Function

PushProtocolFees

func PushProtocolFees(cur realm) int64

PushProtocolFees sends pending protocol fees to protocolAddr. Permissionless: anyone may call so treasury can be paid without the protocol key signing (still only pays the configured protocolAddr).

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/padv19" -func "PushProtocolFees" -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/padv19" -func "PushProtocolFees" -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