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

factory package

Functions

AbortMigration

func AbortMigration(cur realm, symbol string)

AbortMigration clears a started-but-unfinished migration so bonding-curve trading resumes. MIGRATE-FREEZE-1: StartMigration sets IsMigrating, which panics Buy/Sell; without an abort path a stalled migration freezes the token's market indefinitely with no recourse. Only valid before any internal AMM pool is initialized (after that, finish via CompleteMigration instead).

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

AcceptAdmin

func AcceptAdmin(cur realm)

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

AddLiquidity

func AddLiquidity(cur realm, symbol string, tokenAmount int64, minLpOut int64) int64

AddLiquidity lets users add liquidity to graduated token pools They send GNOT and equivalent tokens get pulled from their balance. minLpOut is the caller's slippage bound (0 = no bound): the call reverts if fewer LP tokens than minLpOut would be minted.

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/g187zknttvdv5f53vamtygg0wg5gwp0n3zdffr3e/factory" -func "AddLiquidity" -args $'' -args $'' -args $'' -gas-fee 1000000ugnot -gas-wanted 1_000_000_000 -send "" -chainid "pearl-1" -remote "https://rpc.pearl.testnets.gno.land" ADDRESSgnokey query -remote "https://rpc.pearl.testnets.gno.land" auth/accounts/ADDRESS
gnokey maketx call -pkgpath "gno.land/r/g187zknttvdv5f53vamtygg0wg5gwp0n3zdffr3e/factory" -func "AddLiquidity" -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 "pearl-1" -account-number ACCOUNTNUMBER -account-sequence SEQUENCENUMBER ADDRESS
gnokey broadcast -remote "https://rpc.pearl.testnets.gno.land" call.tx
  

AdminRemoveLiquidity

func AdminRemoveLiquidity(cur realm, symbol string, lpAmount int64, to address) (tokensOut int64, gnotOut int64)

AdminRemoveLiquidity withdraws the protocol-owned LP position (the initial liquidity credited to realmAddr in InitializeAMMPool) to a treasury address. LOCKED-PROTOCOL-LP-1: without this, the protocol's seeded GNOT + tokens and its accrued LP-fee yield are permanently stranded, because RemoveLiquidity keys the burn on the immediate caller and realmAddr can never be the immediate caller of an exported function.

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/g187zknttvdv5f53vamtygg0wg5gwp0n3zdffr3e/factory" -func "AdminRemoveLiquidity" -args $'' -args $'' -args $'' -gas-fee 1000000ugnot -gas-wanted 1_000_000_000 -send "" -chainid "pearl-1" -remote "https://rpc.pearl.testnets.gno.land" ADDRESSgnokey query -remote "https://rpc.pearl.testnets.gno.land" auth/accounts/ADDRESS
gnokey maketx call -pkgpath "gno.land/r/g187zknttvdv5f53vamtygg0wg5gwp0n3zdffr3e/factory" -func "AdminRemoveLiquidity" -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 "pearl-1" -account-number ACCOUNTNUMBER -account-sequence SEQUENCENUMBER ADDRESS
gnokey broadcast -remote "https://rpc.pearl.testnets.gno.land" call.tx
  

Allowance

func Allowance(symbol string, owner address, spender address) int64

Allowance returns the remaining allowance

Params

Command

gnokey query vm/qeval -remote "https://rpc.pearl.testnets.gno.land" -data "gno.land/r/g187zknttvdv5f53vamtygg0wg5gwp0n3zdffr3e/factory.Allowance(,,)"

Result

Approve

func Approve(cur realm, symbol string, spender address, amount int64)

Approve sets allowance for spender to spend caller's tokens

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/g187zknttvdv5f53vamtygg0wg5gwp0n3zdffr3e/factory" -func "Approve" -args $'' -args $'' -args $'' -gas-fee 1000000ugnot -gas-wanted 1_000_000_000 -send "" -chainid "pearl-1" -remote "https://rpc.pearl.testnets.gno.land" ADDRESSgnokey query -remote "https://rpc.pearl.testnets.gno.land" auth/accounts/ADDRESS
gnokey maketx call -pkgpath "gno.land/r/g187zknttvdv5f53vamtygg0wg5gwp0n3zdffr3e/factory" -func "Approve" -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 "pearl-1" -account-number ACCOUNTNUMBER -account-sequence SEQUENCENUMBER ADDRESS
gnokey broadcast -remote "https://rpc.pearl.testnets.gno.land" call.tx
  

BalanceOf

func BalanceOf(symbol string, addr address) int64

Params

Command

gnokey query vm/qeval -remote "https://rpc.pearl.testnets.gno.land" -data "gno.land/r/g187zknttvdv5f53vamtygg0wg5gwp0n3zdffr3e/factory.BalanceOf(,)"

Result

Buy

func Buy(cur realm, symbol string, minTokensOut int64) int64

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

CompleteMigration

func CompleteMigration(cur realm, symbol string, dexPoolID string)

CompleteMigration unlocks trading after DEX pool is live Trading resumes on both GnoPump and GnoSwap (like pump.fun + Raydium)

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

ForkToken

func ForkToken(cur realm, parentSymbol, rawSymbol, rawName, rawDescription, rawImageURL, rawTwitter, rawTelegram, rawDiscord, rawWebsite string) string

ForkToken creates a new token that pays royalties to the parent's creator

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/g187zknttvdv5f53vamtygg0wg5gwp0n3zdffr3e/factory" -func "ForkToken" -args $'' -args $'' -args $'' -args $'' -args $'' -args $'' -args $'' -args $'' -args $'' -gas-fee 1000000ugnot -gas-wanted 1_000_000_000 -send "" -chainid "pearl-1" -remote "https://rpc.pearl.testnets.gno.land" ADDRESSgnokey query -remote "https://rpc.pearl.testnets.gno.land" auth/accounts/ADDRESS
gnokey maketx call -pkgpath "gno.land/r/g187zknttvdv5f53vamtygg0wg5gwp0n3zdffr3e/factory" -func "ForkToken" -args $'' -args $'' -args $'' -args $'' -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 "pearl-1" -account-number ACCOUNTNUMBER -account-sequence SEQUENCENUMBER ADDRESS
gnokey broadcast -remote "https://rpc.pearl.testnets.gno.land" call.tx
  

GetAMMPoolInfo

func GetAMMPoolInfo(symbol string) (tokenReserve int64, gnotReserve int64, k int64, totalLP int64, active bool)

GetAMMPoolInfo returns pool state for a graduated token

Param

Command

gnokey query vm/qeval -remote "https://rpc.pearl.testnets.gno.land" -data "gno.land/r/g187zknttvdv5f53vamtygg0wg5gwp0n3zdffr3e/factory.GetAMMPoolInfo()"

Result

GetAMMPrice

func GetAMMPrice(symbol string) int64

GetAMMPrice returns current price from pool (GNOT per token, scaled by 1e6)

Param

Command

gnokey query vm/qeval -remote "https://rpc.pearl.testnets.gno.land" -data "gno.land/r/g187zknttvdv5f53vamtygg0wg5gwp0n3zdffr3e/factory.GetAMMPrice()"

Result

GetDEXInfo

func GetDEXInfo(symbol string) (supply int64, decimals int, poolAddr address, migrated bool)

GetDEXInfo returns all info GnoSwap needs to work with a token

Param

Command

gnokey query vm/qeval -remote "https://rpc.pearl.testnets.gno.land" -data "gno.land/r/g187zknttvdv5f53vamtygg0wg5gwp0n3zdffr3e/factory.GetDEXInfo()"

Result

GetDecimals

func GetDecimals(symbol string) int

Param

Command

gnokey query vm/qeval -remote "https://rpc.pearl.testnets.gno.land" -data "gno.land/r/g187zknttvdv5f53vamtygg0wg5gwp0n3zdffr3e/factory.GetDecimals()"

Result

GetGnoSwapPoolInfo

func GetGnoSwapPoolInfo(symbol string) (poolAddr address, migrated bool, tokenReserve int64, gnotReserve int64)

GetGnoSwapPoolInfo returns info about our pool for external DEX compatibility

Param

Command

gnokey query vm/qeval -remote "https://rpc.pearl.testnets.gno.land" -data "gno.land/r/g187zknttvdv5f53vamtygg0wg5gwp0n3zdffr3e/factory.GetGnoSwapPoolInfo()"

Result

GetLPBalance

func GetLPBalance(symbol string, user address) int64

GetLPBalance returns user's LP token balance

Params

Command

gnokey query vm/qeval -remote "https://rpc.pearl.testnets.gno.land" -data "gno.land/r/g187zknttvdv5f53vamtygg0wg5gwp0n3zdffr3e/factory.GetLPBalance(,)"

Result

GetMigrationStatus

func GetMigrationStatus(symbol string) (graduated bool, migrating bool, complete bool, poolID string)

GetMigrationStatus returns current migration state for a token

Param

Command

gnokey query vm/qeval -remote "https://rpc.pearl.testnets.gno.land" -data "gno.land/r/g187zknttvdv5f53vamtygg0wg5gwp0n3zdffr3e/factory.GetMigrationStatus()"

Result

GetName

func GetName(symbol string) string

Param

Command

gnokey query vm/qeval -remote "https://rpc.pearl.testnets.gno.land" -data "gno.land/r/g187zknttvdv5f53vamtygg0wg5gwp0n3zdffr3e/factory.GetName()"

Result

GetProtocolFees

func GetProtocolFees() int64

Command

gnokey query vm/qeval -remote "https://rpc.pearl.testnets.gno.land" -data "gno.land/r/g187zknttvdv5f53vamtygg0wg5gwp0n3zdffr3e/factory.GetProtocolFees()"

Result

GetProtocolTokenFees

func GetProtocolTokenFees(symbol string) int64

GetProtocolTokenFees returns accumulated token fees from DEX trades

Param

Command

gnokey query vm/qeval -remote "https://rpc.pearl.testnets.gno.land" -data "gno.land/r/g187zknttvdv5f53vamtygg0wg5gwp0n3zdffr3e/factory.GetProtocolTokenFees()"

Result

GetSymbol

func GetSymbol(symbol string) string

Param

Command

gnokey query vm/qeval -remote "https://rpc.pearl.testnets.gno.land" -data "gno.land/r/g187zknttvdv5f53vamtygg0wg5gwp0n3zdffr3e/factory.GetSymbol()"

Result

GetTradeRoute

func GetTradeRoute(symbol string) string

GetTradeRoute tells the UI which function to call for a given token Returns: "bonding" for Buy/Sell, "amm" for SwapGNOTForToken/SwapTokenForGNOT

Param

Command

gnokey query vm/qeval -remote "https://rpc.pearl.testnets.gno.land" -data "gno.land/r/g187zknttvdv5f53vamtygg0wg5gwp0n3zdffr3e/factory.GetTradeRoute()"

Result

GlobalPause

func GlobalPause(cur realm)

GlobalPause halts all trading on the factory (emergency use only)

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

GlobalUnpause

func GlobalUnpause(cur realm)

GlobalUnpause resumes trading on the factory

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

InitializeAMMPool

func InitializeAMMPool(cur realm, symbol string, tokenAmount int64)

InitializeAMMPool creates the AMM pool during migration Called by admin after graduation to seed liquidity

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

IsGlobalPaused

func IsGlobalPaused() bool

IsGlobalPaused returns the global pause state

Command

gnokey query vm/qeval -remote "https://rpc.pearl.testnets.gno.land" -data "gno.land/r/g187zknttvdv5f53vamtygg0wg5gwp0n3zdffr3e/factory.IsGlobalPaused()"

Result

LaunchTemplate

func LaunchTemplate(cur realm, rawSymbol, rawName, rawDescription, rawImageURL, rawTwitter, rawTelegram, rawDiscord, rawWebsite string, royaltyRateBps int64) string

LaunchTemplate creates a token with a royalty rate, intended to be forked royaltyRateBps: 0-500 (0%-5%) of trade fees paid to creator on forks

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/g187zknttvdv5f53vamtygg0wg5gwp0n3zdffr3e/factory" -func "LaunchTemplate" -args $'' -args $'' -args $'' -args $'' -args $'' -args $'' -args $'' -args $'' -args $'' -gas-fee 1000000ugnot -gas-wanted 1_000_000_000 -send "" -chainid "pearl-1" -remote "https://rpc.pearl.testnets.gno.land" ADDRESSgnokey query -remote "https://rpc.pearl.testnets.gno.land" auth/accounts/ADDRESS
gnokey maketx call -pkgpath "gno.land/r/g187zknttvdv5f53vamtygg0wg5gwp0n3zdffr3e/factory" -func "LaunchTemplate" -args $'' -args $'' -args $'' -args $'' -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 "pearl-1" -account-number ACCOUNTNUMBER -account-sequence SEQUENCENUMBER ADDRESS
gnokey broadcast -remote "https://rpc.pearl.testnets.gno.land" call.tx
  

LaunchToken

func LaunchToken(cur realm, rawSymbol, rawName, rawDescription, rawImageURL, rawTwitter, rawTelegram, rawDiscord, rawWebsite string) string

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/g187zknttvdv5f53vamtygg0wg5gwp0n3zdffr3e/factory" -func "LaunchToken" -args $'' -args $'' -args $'' -args $'' -args $'' -args $'' -args $'' -args $'' -gas-fee 1000000ugnot -gas-wanted 1_000_000_000 -send "" -chainid "pearl-1" -remote "https://rpc.pearl.testnets.gno.land" ADDRESSgnokey query -remote "https://rpc.pearl.testnets.gno.land" auth/accounts/ADDRESS
gnokey maketx call -pkgpath "gno.land/r/g187zknttvdv5f53vamtygg0wg5gwp0n3zdffr3e/factory" -func "LaunchToken" -args $'' -args $'' -args $'' -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 "pearl-1" -account-number ACCOUNTNUMBER -account-sequence SEQUENCENUMBER ADDRESS
gnokey broadcast -remote "https://rpc.pearl.testnets.gno.land" call.tx
  

PauseToken

func PauseToken(cur realm, symbol 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/g187zknttvdv5f53vamtygg0wg5gwp0n3zdffr3e/factory" -func "PauseToken" -args $'' -gas-fee 1000000ugnot -gas-wanted 1_000_000_000 -send "" -chainid "pearl-1" -remote "https://rpc.pearl.testnets.gno.land" ADDRESSgnokey query -remote "https://rpc.pearl.testnets.gno.land" auth/accounts/ADDRESS
gnokey maketx call -pkgpath "gno.land/r/g187zknttvdv5f53vamtygg0wg5gwp0n3zdffr3e/factory" -func "PauseToken" -args $'' -gas-fee 1000000ugnot -gas-wanted 1_000_000_000 -send "" -broadcast=false ADDRESS > call.tx
gnokey sign -tx-path call.tx -chainid "pearl-1" -account-number ACCOUNTNUMBER -account-sequence SEQUENCENUMBER ADDRESS
gnokey broadcast -remote "https://rpc.pearl.testnets.gno.land" call.tx
  

ProposeAdmin

func ProposeAdmin(cur realm, newAdmin address)

ProposeAdmin / AcceptAdmin implement a two-step admin handover. ADMIN-ROTATE-1: the admin key was previously immutable and unrecoverable. This lets the current admin hand control to a new key (e.g. a multisig) which must confirm, preventing a handover to a wrong or uncontrolled address.

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

QuoteAMMBuy

func QuoteAMMBuy(symbol string, ugnotIn int64) (tokensOut int64, fee int64)

QuoteAMMBuy returns expected tokens out for GNOT in fee is the TOTAL swap fee (protocol 1% + LP 1% = 2%), matching SwapGNOTForToken.

Params

Command

gnokey query vm/qeval -remote "https://rpc.pearl.testnets.gno.land" -data "gno.land/r/g187zknttvdv5f53vamtygg0wg5gwp0n3zdffr3e/factory.QuoteAMMBuy(,)"

Result

QuoteAMMSell

func QuoteAMMSell(symbol string, tokenAmount int64) (gnotOut int64, fee int64)

QuoteAMMSell returns expected GNOT out for tokens in. fee is the TOTAL swap fee (protocol 1% + LP 1% = 2%), matching SwapTokenForGNOT.

Params

Command

gnokey query vm/qeval -remote "https://rpc.pearl.testnets.gno.land" -data "gno.land/r/g187zknttvdv5f53vamtygg0wg5gwp0n3zdffr3e/factory.QuoteAMMSell(,)"

Result

QuoteBuy

func QuoteBuy(symbol string, ugnotIn int64) (tokensOut int64, fee int64, ugnotChange int64)

Params

Command

gnokey query vm/qeval -remote "https://rpc.pearl.testnets.gno.land" -data "gno.land/r/g187zknttvdv5f53vamtygg0wg5gwp0n3zdffr3e/factory.QuoteBuy(,)"

Result

QuoteSell

func QuoteSell(symbol string, tokensIn int64) (ugnotOut int64, fee int64)

Params

Command

gnokey query vm/qeval -remote "https://rpc.pearl.testnets.gno.land" -data "gno.land/r/g187zknttvdv5f53vamtygg0wg5gwp0n3zdffr3e/factory.QuoteSell(,)"

Result

QuoteTrade

func QuoteTrade(symbol string, isBuy bool, amountIn int64) (amountOut int64, fee int64, route string)

QuoteTrade returns expected output regardless of which route will be used

Params

Command

gnokey query vm/qeval -remote "https://rpc.pearl.testnets.gno.land" -data "gno.land/r/g187zknttvdv5f53vamtygg0wg5gwp0n3zdffr3e/factory.QuoteTrade(,,)"

Result

RegisterDEXPool

func RegisterDEXPool(cur realm, symbol string, poolAddr address)

RegisterDEXPool authorizes a GnoSwap pool address to transfer tokens This is called after pool creation on GnoSwap side

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

RemoveLiquidity

func RemoveLiquidity(cur realm, symbol string, lpAmount int64) (tokensOut int64, gnotOut int64)

RemoveLiquidity lets LP holders withdraw their share

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

Render

func Render(path string) string

Param

Command

gnokey query vm/qeval -remote "https://rpc.pearl.testnets.gno.land" -data "gno.land/r/g187zknttvdv5f53vamtygg0wg5gwp0n3zdffr3e/factory.Render()"

Result

Sell

func Sell(cur realm, symbol string, amount int64, minUgnotOut int64) int64

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/g187zknttvdv5f53vamtygg0wg5gwp0n3zdffr3e/factory" -func "Sell" -args $'' -args $'' -args $'' -gas-fee 1000000ugnot -gas-wanted 1_000_000_000 -send "" -chainid "pearl-1" -remote "https://rpc.pearl.testnets.gno.land" ADDRESSgnokey query -remote "https://rpc.pearl.testnets.gno.land" auth/accounts/ADDRESS
gnokey maketx call -pkgpath "gno.land/r/g187zknttvdv5f53vamtygg0wg5gwp0n3zdffr3e/factory" -func "Sell" -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 "pearl-1" -account-number ACCOUNTNUMBER -account-sequence SEQUENCENUMBER ADDRESS
gnokey broadcast -remote "https://rpc.pearl.testnets.gno.land" call.tx
  

SetGnoSwapRouter

func SetGnoSwapRouter(cur realm, routerAddr address)

SetGnoSwapRouter allows admin to configure the GnoSwap router address

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

StartMigration

func StartMigration(cur realm, symbol string)

StartMigration temporarily locks trading while DEX pool is created This matches pump.fun's model - short pause during liquidity migration

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

SwapGNOTForToken

func SwapGNOTForToken(cur realm, symbol string, minTokensOut int64) int64

SwapGNOTForToken buys tokens from the AMM pool Constant product: (x + dx)(y - dy) = k dy = y * dx / (x + dx)

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

SwapTokenForGNOT

func SwapTokenForGNOT(cur realm, symbol string, tokenAmount int64, minGNOTOut int64) int64

SwapTokenForGNOT sells tokens to the AMM pool for GNOT

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/g187zknttvdv5f53vamtygg0wg5gwp0n3zdffr3e/factory" -func "SwapTokenForGNOT" -args $'' -args $'' -args $'' -gas-fee 1000000ugnot -gas-wanted 1_000_000_000 -send "" -chainid "pearl-1" -remote "https://rpc.pearl.testnets.gno.land" ADDRESSgnokey query -remote "https://rpc.pearl.testnets.gno.land" auth/accounts/ADDRESS
gnokey maketx call -pkgpath "gno.land/r/g187zknttvdv5f53vamtygg0wg5gwp0n3zdffr3e/factory" -func "SwapTokenForGNOT" -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 "pearl-1" -account-number ACCOUNTNUMBER -account-sequence SEQUENCENUMBER ADDRESS
gnokey broadcast -remote "https://rpc.pearl.testnets.gno.land" call.tx
  

TotalSupply

func TotalSupply(symbol string) int64

Param

Command

gnokey query vm/qeval -remote "https://rpc.pearl.testnets.gno.land" -data "gno.land/r/g187zknttvdv5f53vamtygg0wg5gwp0n3zdffr3e/factory.TotalSupply()"

Result

Transfer

func Transfer(cur realm, symbol string, to address, amount int64)

Transfer moves tokens from caller to recipient

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/g187zknttvdv5f53vamtygg0wg5gwp0n3zdffr3e/factory" -func "Transfer" -args $'' -args $'' -args $'' -gas-fee 1000000ugnot -gas-wanted 1_000_000_000 -send "" -chainid "pearl-1" -remote "https://rpc.pearl.testnets.gno.land" ADDRESSgnokey query -remote "https://rpc.pearl.testnets.gno.land" auth/accounts/ADDRESS
gnokey maketx call -pkgpath "gno.land/r/g187zknttvdv5f53vamtygg0wg5gwp0n3zdffr3e/factory" -func "Transfer" -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 "pearl-1" -account-number ACCOUNTNUMBER -account-sequence SEQUENCENUMBER ADDRESS
gnokey broadcast -remote "https://rpc.pearl.testnets.gno.land" call.tx
  

TransferForDEX

func TransferForDEX(cur realm, symbol string, from address, to address, amount int64) int64

TransferForDEX allows authorized GnoSwap pools to transfer tokens during swaps GnoSwap calls this instead of requiring user approvals

Fee Structure (taken from transfer amount, in tokens):

  • Protocol Fee: 1% (100 bps) → accumulated for protocol
  • Royalty Fee: 0-5% → paid to parent creator (if forked token)
  • Net Amount: remainder → sent to recipient

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/g187zknttvdv5f53vamtygg0wg5gwp0n3zdffr3e/factory" -func "TransferForDEX" -args $'' -args $'' -args $'' -args $'' -gas-fee 1000000ugnot -gas-wanted 1_000_000_000 -send "" -chainid "pearl-1" -remote "https://rpc.pearl.testnets.gno.land" ADDRESSgnokey query -remote "https://rpc.pearl.testnets.gno.land" auth/accounts/ADDRESS
gnokey maketx call -pkgpath "gno.land/r/g187zknttvdv5f53vamtygg0wg5gwp0n3zdffr3e/factory" -func "TransferForDEX" -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 "pearl-1" -account-number ACCOUNTNUMBER -account-sequence SEQUENCENUMBER ADDRESS
gnokey broadcast -remote "https://rpc.pearl.testnets.gno.land" call.tx
  

TransferFrom

func TransferFrom(cur realm, symbol string, from address, to address, amount int64)

TransferFrom moves tokens using allowance mechanism

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/g187zknttvdv5f53vamtygg0wg5gwp0n3zdffr3e/factory" -func "TransferFrom" -args $'' -args $'' -args $'' -args $'' -gas-fee 1000000ugnot -gas-wanted 1_000_000_000 -send "" -chainid "pearl-1" -remote "https://rpc.pearl.testnets.gno.land" ADDRESSgnokey query -remote "https://rpc.pearl.testnets.gno.land" auth/accounts/ADDRESS
gnokey maketx call -pkgpath "gno.land/r/g187zknttvdv5f53vamtygg0wg5gwp0n3zdffr3e/factory" -func "TransferFrom" -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 "pearl-1" -account-number ACCOUNTNUMBER -account-sequence SEQUENCENUMBER ADDRESS
gnokey broadcast -remote "https://rpc.pearl.testnets.gno.land" call.tx
  

UnpauseToken

func UnpauseToken(cur realm, symbol 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/g187zknttvdv5f53vamtygg0wg5gwp0n3zdffr3e/factory" -func "UnpauseToken" -args $'' -gas-fee 1000000ugnot -gas-wanted 1_000_000_000 -send "" -chainid "pearl-1" -remote "https://rpc.pearl.testnets.gno.land" ADDRESSgnokey query -remote "https://rpc.pearl.testnets.gno.land" auth/accounts/ADDRESS
gnokey maketx call -pkgpath "gno.land/r/g187zknttvdv5f53vamtygg0wg5gwp0n3zdffr3e/factory" -func "UnpauseToken" -args $'' -gas-fee 1000000ugnot -gas-wanted 1_000_000_000 -send "" -broadcast=false ADDRESS > call.tx
gnokey sign -tx-path call.tx -chainid "pearl-1" -account-number ACCOUNTNUMBER -account-sequence SEQUENCENUMBER ADDRESS
gnokey broadcast -remote "https://rpc.pearl.testnets.gno.land" call.tx
  

WithdrawProtocolFees

func WithdrawProtocolFees(cur realm, to address)

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

WithdrawProtocolTokenFees

func WithdrawProtocolTokenFees(cur realm, symbol string, to address) int64

WithdrawProtocolTokenFees lets admin withdraw accumulated token fees Tokens are transferred to specified address (admin can sell them)

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

WithdrawReservesToPool

func WithdrawReservesToPool(cur realm, symbol string, poolAddr address) int64

WithdrawReservesToPool sends GNOT reserves to GnoSwap pool for liquidity Called during migration process to seed the AMM pool

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

GetFactoryState

func GetFactoryState() FactoryState

Command

gnokey query vm/qeval -remote "https://rpc.pearl.testnets.gno.land" -data "gno.land/r/g187zknttvdv5f53vamtygg0wg5gwp0n3zdffr3e/factory.GetFactoryState()"

Result

GetTokenInfo

func GetTokenInfo(symbol string) TokenMeta

Param

Command

gnokey query vm/qeval -remote "https://rpc.pearl.testnets.gno.land" -data "gno.land/r/g187zknttvdv5f53vamtygg0wg5gwp0n3zdffr3e/factory.GetTokenInfo()"

Result