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

/v1 package

Overview

package v1 manages liquidity positions as NFTs in GnoSwap pools.

Each position is represented as a GRC721 NFT with concentrated liquidity within a specific tick range. Unstaked NFTs follow GRC721 owner/approval/ operator transfer rules; staked NFTs are locked to staker-mediated transfers. The package handles minting, liquidity adjustments, fee collection, and repositioning.

Function

NewPositionV1

func NewPositionV1(positionStore position.IPositionStore, accessor NFTAccessor) position.IPosition
Ask AI Claude ChatGPT

NewPositionV1 constructs a position implementation backed by the supplied position store and NFT accessor.

Parameters:

  • positionStore: storage interface used to read and update position records
  • accessor: NFT interface used for position token minting, burning, approval, and ownership

Returns:

  • position: IPosition implementation connected to positionStore and accessor

Params

Command

gnokey query vm/qeval -remote "https://rpc.gno.land" -data "gno.land/r/gnoswap/position/v1.NewPositionV1(,)"

Result

Gno Expression Evaluator

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