Skip to content Search Apps Documentation Source Content Run Reset Eval Playground File Folder Download Copy Actions State String Boolean Number Struct Map Slice Pointer Function Closure Reference Nil Package Type Interface Unknown

limit package

Overview

Package limit is the GnoSwap limit order realm.

Users escrow makingAmount of tokenIn for takingAmount of tokenOut before expiresAt. Authorized keepers fill orders on a whitelisted direct pool, without the router, choosing the pool fee tier and swap price limit for each fill. Partial fills leave unsold input in escrow; each fill pays the owner immediately after deducting the order's snapshotted execution fee, while enforcing the order's slippage-adjusted owner-net exchange ratio. Owners can cancel for the remaining input, and anyone can refund expired orders through bounded cleanup. Settled orders are removed from the indexes.

This package is the permanent entry point. It owns the escrow address, the KV store shared by every version, and the upgrade switch; the business logic lives in a registered implementation (impl/v0).

Files:

  • proxy.gno: state-changing entry points
  • getter.gno: read-only queries
  • store.gno: KV store and store keys
  • state.gno: realm state and the active implementation
  • upgrade.gno: implementation registration and upgrades
  • swap_callback.gno: authenticated pool callback paying escrowed input

Functions

CancelOrder

func CancelOrder(cur realm, orderID uint64) int64
Ask AI Claude ChatGPT

CancelOrder refunds the remaining input and removes the order from the indexes. A past-deadline refund uses the expired event. It returns the refunded input.

Owner only. Reverts while withdrawals are halted for limit orders.

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

CleanupExpiredOrders

func CleanupExpiredOrders(cur realm, startAfterOrderID uint64, maxOrders int) (int, uint64)
Ask AI Claude ChatGPT

CleanupExpiredOrders refunds pending orders after their deadline. Anyone may call it.

One call examines at most min(maxOrders, maxCleanupBatchSize) orders after startAfterOrderID, in ID order. It returns the number of orders expired and the cursor for the next call; repeat until the cursor is 0. Reverts while withdrawals are halted for limit orders.

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

CleanupExpiredOrdersByIDs

func CleanupExpiredOrdersByIDs(cur realm, orderIDs string) (int, string)
Ask AI Claude ChatGPT

CleanupExpiredOrdersByIDs refunds only the named expired orders. orderIDs is a strictly increasing comma-separated list of positive decimal order IDs. Existing unexpired or underfunded orders are returned for retry. Reverts while withdrawals are halted for limit orders.

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

CollectPendingExecutionFee

func CollectPendingExecutionFee(cur realm, tokenPath string) (int64, int64)
Ask AI Claude ChatGPT

CollectPendingExecutionFee forwards fees pending for tokenPath to the protocol fee realm without another fill. Anyone may call it; the caller receives nothing. Returns the amount forwarded and the amount left pending. Reverts while withdrawals are halted for Limit orders.

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

CreateOrder

func CreateOrder( cur realm, tokenIn string, tokenOut string, makingAmount int64, takingAmount int64, slippageBps int64, expiresAt int64, baseToken string, ) uint64
Ask AI Claude ChatGPT

CreateOrder escrows makingAmount of tokenIn for takingAmount of tokenOut. Each fill supplies its pool fee tier and price limit. slippageBps=0 enforces the making/taking ratio or better. expiresAt must be positive and within the configured duration bounds. The execution fee rate is snapshotted into each new order. baseToken must be tokenIn (Sell) or tokenOut (Buy); it is emitted only as creation metadata and does not affect the order's execution terms. The caller must first approve Address() for makingAmount. Reverts while execution is halted for Limit orders.

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

ExecuteOrder

func ExecuteOrder(cur realm, orderID uint64, maxAmountIn int64, poolFee uint32, sqrtPriceLimitX96 string) (int64, int64)
Ask AI Claude ChatGPT

ExecuteOrder fills up to maxAmountIn through the order's token pair at poolFee. A nonzero sqrtPriceLimitX96 stops at that pool price and may leave input unspent in escrow. Zero requires maxAmountIn to be consumed in full. The order's minimum owner-net output is enforced on the actual input. Returns actual input and pool output before the order's execution fee; the owner is paid immediately after that fee is deducted. The immediate caller must be authorized for ExecuteOrder by the shared keeper policy. Reverts while execution or withdrawals are halted for limit orders.

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

ExistsOrder

func ExistsOrder(orderID uint64) bool
Ask AI Claude ChatGPT

ExistsOrder reports whether an order is pending. Settled orders are deleted.

Parameters:

  • orderID: order to look up

Returns:

  • bool: true while the order is pending

Param

Command

gnokey query vm/qeval -remote "https://rpc.onyx.testnets.gno.land" -data "gno.land/r/gnoswap/order/limit.ExistsOrder()"

Result

GetConfig

func GetConfig() *plimit.Config
Ask AI Claude ChatGPT

GetConfig returns a detached copy of the current global configuration.

Returns:

  • *plimit.Config: copy of the stored configuration

Command

gnokey query vm/qeval -remote "https://rpc.onyx.testnets.gno.land" -data "gno.land/r/gnoswap/order/limit.GetConfig()"

Result

GetExecutionFeeRate

func GetExecutionFeeRate() int64
Ask AI Claude ChatGPT

GetExecutionFeeRate returns the execution fee rate snapshotted into new orders.

Returns:

  • int64: execution fee rate, in basis points of gross output

Command

gnokey query vm/qeval -remote "https://rpc.onyx.testnets.gno.land" -data "gno.land/r/gnoswap/order/limit.GetExecutionFeeRate()"

Result

GetImplementationPackagePath

func GetImplementationPackagePath() string
Ask AI Claude ChatGPT

GetImplementationPackagePath returns the active implementation path.

Command

gnokey query vm/qeval -remote "https://rpc.onyx.testnets.gno.land" -data "gno.land/r/gnoswap/order/limit.GetImplementationPackagePath()"

Result

GetMaxCleanupBatchSize

func GetMaxCleanupBatchSize() int64
Ask AI Claude ChatGPT

GetMaxCleanupBatchSize returns the most orders one CleanupExpiredOrders call examines.

Returns:

  • int64: maximum cleanup batch size

Command

gnokey query vm/qeval -remote "https://rpc.onyx.testnets.gno.land" -data "gno.land/r/gnoswap/order/limit.GetMaxCleanupBatchSize()"

Result

GetMaxSlippageBps

func GetMaxSlippageBps() int64
Ask AI Claude ChatGPT

GetMaxSlippageBps returns the slippage cap for new orders.

Returns:

  • int64: maximum slippage, in basis points

Command

gnokey query vm/qeval -remote "https://rpc.onyx.testnets.gno.land" -data "gno.land/r/gnoswap/order/limit.GetMaxSlippageBps()"

Result

GetMinMakingAmount

func GetMinMakingAmount() int64
Ask AI Claude ChatGPT

GetMinMakingAmount returns the minimum input amount for new orders.

Returns:

  • int64: minimum makingAmount, in raw token units

Command

gnokey query vm/qeval -remote "https://rpc.onyx.testnets.gno.land" -data "gno.land/r/gnoswap/order/limit.GetMinMakingAmount()"

Result

GetNextOrderID

func GetNextOrderID() uint64
Ask AI Claude ChatGPT

GetNextOrderID returns the ID the next created order receives.

Returns:

  • uint64: next order ID

Command

gnokey query vm/qeval -remote "https://rpc.onyx.testnets.gno.land" -data "gno.land/r/gnoswap/order/limit.GetNextOrderID()"

Result

GetOrder

func GetOrder(orderID uint64) *plimit.Order
Ask AI Claude ChatGPT

GetOrder returns a detached pending order, or nil after it is settled.

Parameters:

  • orderID: order to look up

Returns:

  • *plimit.Order: copy of the order; nil when it is not pending

Param

Command

gnokey query vm/qeval -remote "https://rpc.onyx.testnets.gno.land" -data "gno.land/r/gnoswap/order/limit.GetOrder()"

Result

GetOrderDeadlines

func GetOrderDeadlines() (int64, int64)
Ask AI Claude ChatGPT

GetOrderDeadlines returns the allowed order duration range for new orders.

Returns:

  • int64: shortest allowed expiresAt - createdAt, in seconds
  • int64: longest allowed expiresAt - createdAt, in seconds

Command

gnokey query vm/qeval -remote "https://rpc.onyx.testnets.gno.land" -data "gno.land/r/gnoswap/order/limit.GetOrderDeadlines()"

Result

GetOrders

func GetOrders() *rotree.ReadOnlyTree
Ask AI Claude ChatGPT

GetOrders returns a live read-only view of pending orders.

Returns:

  • *rotree.ReadOnlyTree: plimit.OrderKey(orderID) -> *plimit.Order; each order read from the view is detached from stored state

Command

gnokey query vm/qeval -remote "https://rpc.onyx.testnets.gno.land" -data "gno.land/r/gnoswap/order/limit.GetOrders()"

Result

GetOrdersByOwner

func GetOrdersByOwner() *rotree.ReadOnlyTree
Ask AI Claude ChatGPT

GetOrdersByOwner returns the read-only owner index of pending orders. Iterate the [plimit.OwnerOrderPrefix(owner), plimit.PrefixEnd(prefix)) range for one owner's orders in ID order, choosing the page size.

Returns:

  • *rotree.ReadOnlyTree: plimit.OwnerOrderKey(owner, orderID) -> uint64 orderID

Command

gnokey query vm/qeval -remote "https://rpc.onyx.testnets.gno.land" -data "gno.land/r/gnoswap/order/limit.GetOrdersByOwner()"

Result

GetPendingExecutionFeeAmount

func GetPendingExecutionFeeAmount(tokenPath string) int64
Ask AI Claude ChatGPT

GetPendingExecutionFeeAmount returns execution fees held for tokenPath until the protocol fee realm accepts them. A later fill with the same output token retries collection.

Parameters:

  • tokenPath: fee token path

Returns:

  • int64: pending execution fee, in raw token units

Param

Command

gnokey query vm/qeval -remote "https://rpc.onyx.testnets.gno.land" -data "gno.land/r/gnoswap/order/limit.GetPendingExecutionFeeAmount()"

Result

GetPendingExecutionFees

func GetPendingExecutionFees() *rotree.ReadOnlyTree
Ask AI Claude ChatGPT

GetPendingExecutionFees returns the read-only index of pending execution fees.

Returns:

  • *rotree.ReadOnlyTree: tokenPath -> int64 pending amount

Command

gnokey query vm/qeval -remote "https://rpc.onyx.testnets.gno.land" -data "gno.land/r/gnoswap/order/limit.GetPendingExecutionFees()"

Result

NewBPTreeN

func NewBPTreeN(fanout int) *bptree.BPTree
Ask AI Claude ChatGPT

NewBPTreeN allocates an empty B+tree in the order/limit realm. Implementations create the store trees through it, so the trees are owned by the realm that stores them.

Param

Command

gnokey query vm/qeval -remote "https://rpc.onyx.testnets.gno.land" -data "gno.land/r/gnoswap/order/limit.NewBPTreeN()"

Result

NewLimitOrderStore

func NewLimitOrderStore(kvStore store.KVStore) plimit.ILimitOrderStore
Ask AI Claude ChatGPT

NewLimitOrderStore wraps the domain KV store.

Param

Command

gnokey query vm/qeval -remote "https://rpc.onyx.testnets.gno.land" -data "gno.land/r/gnoswap/order/limit.NewLimitOrderStore()"

Result

NewSwapCallback

func NewSwapCallback(_ int, rlm realm, tokenIn string, zeroForOne bool, maxAmountIn int64) func(cur realm, amount0Delta, amount1Delta int64, marker *pool.CallbackMarker) error
Ask AI Claude ChatGPT

NewSwapCallback binds payment to this proxy's custody, the order's input token and its input budget. Only code already executing in the proxy's current realm context can create it. The closure is declared here so pool callbacks retain proxy custody rather than paying from an implementation realm.

Params

Command

gnokey query vm/qeval -remote "https://rpc.onyx.testnets.gno.land" -data "gno.land/r/gnoswap/order/limit.NewSwapCallback(,,,,)"

Result

RegisterInitializer

func RegisterInitializer(cur realm, initializer func(_ int, rlm realm, orderStore plimit.ILimitOrderStore) plimit.ILimitOrder)
Ask AI Claude ChatGPT

RegisterInitializer registers an implementation version. Each version calls it from init with a factory that receives the shared store. Only packages under this realm's path may register, and the first registration becomes active. A nil initializer is rejected before its version path is registered.

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

SetExecutionFeeRate

func SetExecutionFeeRate(cur realm, executionFeeRate int64)
Ask AI Claude ChatGPT

SetExecutionFeeRate sets the execution fee rate snapshotted into new orders, in basis points of gross output. Admin or governance only.

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

SetMaxCleanupBatchSize

func SetMaxCleanupBatchSize(cur realm, maxCleanupBatchSize int64)
Ask AI Claude ChatGPT

SetMaxCleanupBatchSize caps the orders one CleanupExpiredOrders call examines, bounding its gas. Admin or governance only.

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

SetMaxSlippageBps

func SetMaxSlippageBps(cur realm, maxSlippageBps int64)
Ask AI Claude ChatGPT

SetMaxSlippageBps sets the slippage cap for new orders in [0, 10000] bps. Existing orders keep their slippage. Admin or governance only.

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

SetMinMakingAmount

func SetMinMakingAmount(cur realm, minMakingAmount int64)
Ask AI Claude ChatGPT

SetMinMakingAmount sets the minimum input amount for new orders, in raw token units. Existing orders are unaffected. Admin or governance only.

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

SetOrderDeadlines

func SetOrderDeadlines(cur realm, minDuration int64, maxDuration int64)
Ask AI Claude ChatGPT

SetOrderDeadlines sets the allowed order duration range for new orders, in seconds. Admin or governance only.

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

UpgradeImpl

func UpgradeImpl(cur realm, packagePath string)
Ask AI Claude ChatGPT

UpgradeImpl activates a previously registered version by package path. Admin or governance only.

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

Gno Expression Evaluator

Evaluate any read-only Gno expression against gno.land/r/gnoswap/order/limit, for example a function call with arguments.