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

position/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

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 "http://127.0.0.1:26657" -data "gno.land/r/gnoswap/position/v1.NewPositionV1(,)"

Result