Bonsaiswap Docs
  • ๐ŸŒฟBonsaiswap Intro
  • Get Started
    • Create a Wallet
    • Get ERC20 Tokens
  • Roadmap
  • Products
    • ๐Ÿ”„Exchange
      • Swapping Tokens
      • Providing Liquidity
    • ๐Ÿ”ฎComing Soon!
  • Tokenomics
    • ๐ŸŽAKADAMA
  • Developers
    • ๐Ÿ› ๏ธTechnical Reference
      • Core
        • BonsaiswapV3Factory
        • BonsaiswapV3Pool
        • BonsaiswapV3PoolDeployer
        • Interfaces
          • IERC20Minimal
          • IBonsaiswapV3Factory
          • IBonsaiswapV3Pool
          • IBonsaiswapV3PoolDeployer
          • callback
            • IBonsaiswapV3FlashCallback
            • IBonsaiswapV3MintCallback
            • IBonsaiswapV3SwapCallback
          • Pool
            • IBonsaiswapV3PoolActions
            • IBonsaiswapV3PoolDerivedState
            • IBonsaiswapV3PoolEvents
            • IBonsaiswapV3PoolImmutables
            • IBonsaiswapV3PoolOwnerActions
            • IBonsaiswapV3PoolState
        • Libraries
          • BitMath
          • FixedPoint128
          • FixedPoint96
          • FullMath
          • LiquidityMath
          • LowGasSafeMath
          • Oracle
          • Position
          • SafeCast
          • SecondsOutside
          • SqrtPriceMath
          • SwapMath
          • Tick
          • TickBitmap
          • TickMath
          • TransferHelper
          • UnsafeMath
      • Periphery
        • Base
          • BlockTimestamp
          • ERC721Permit
          • LiquidityManagement
          • Multicall
          • PeripheryImmutableState
          • PeripheryPayments
          • PeripheryPaymentsWithFee
          • PoolInitializer
          • SelfPermit
        • Interfaces
          • IERC20Metadata
          • IERC721Permit
          • IMulticall
          • INonfungiblePositionManager
          • INonfungibleTokenPositionDescriptor
          • IPeripheryImmutableState
          • IPeripheryPayments
          • IPeripheryPaymentsWithFee
          • IPoolInitializer
          • IQuoter
          • IQuoterV2
          • ISelfPermit
          • ISwapRouter
          • ITickLens
          • external
            • IERC1271
            • IERC20PermitAllowed
            • IWETH9
        • Lens
          • Quoter
          • QuoterV2
          • TickLens
        • Libraries
          • Base64
          • BytesLib
          • CallbackValidation
          • ChainId
          • HexStrings
          • LiquidityAmounts
          • NFTDescriptor
          • NFTSVG
          • OracleLibrary
          • Path
          • PoolAddress
          • PoolTicksCounter
          • PositionKey
          • TokenRatioSortOrder
          • TransferHelper
          • WeightedOracleLibrary
        • NonfungiblePositionManager
        • NonfungibleTokenPositionDescriptor
        • SwapRouter
        • V3Migrator
      • Deployment Addresses
      • Error Codes
Powered by GitBook
On this page
  • Functionsโ€‹
  • Eventsโ€‹
  1. Developers
  2. Technical Reference
  3. Periphery
  4. Interfaces

INonfungibleTokenPositionDescriptor

PreviousINonfungiblePositionManagerNextIPeripheryImmutableState

Last updated 2 years ago

Functions

tokenURI

  function tokenURI(
    contract INonfungiblePositionManager positionManager,
    uint256 tokenId
  ) external returns (string)

Produces the URI describing a particular token ID for a position manager

Note this URI may be a data: URI with the JSON contents directly inlined

Parameters:

Name
Type
Description

positionManager

contract INonfungiblePositionManager

The position manager for which to describe the token

tokenId

uint256

The ID of the token for which to produce a description, which may not be valid

Return Values:

Type
Description

string

URI of the ERC721-compliant metadata

Events

UpdateTokenRatioPriority

  event UpdateTokenRatioPriority(
    address token,
    int256 priority
  )

Emitted when a token is given a new priority order in the displayed price ratio

Name
Type
Description

token

address

The token being given priority order

priority

int256

Represents priority in ratio - higher integers get numerator priority

Parameters:

๐Ÿ› ๏ธ
โ€‹
โ€‹
โ€‹
โ€‹
โ€‹
โ€‹
โ€‹