evx-sdk
Version:
The Evx SDK is a developer toolkit designed to simplify interaction with the Evx decentralized liquidity protocol. It provides an abstraction layer over the smart contracts, allowing developers to easily build applications, integrate liquidity pools, fetc
20 lines (19 loc) • 1.04 kB
TypeScript
import { IGetTokenURIQueryParams } from '../../interfaces/queries/params/IGetTokenURIQueryParams';
import { IGetTokenURIQueryOutput } from '../../interfaces/queries/outputs/IGetTokenURIQueryOutput';
import { IBaseQuery } from '../../interfaces/queries/IBaseQuery';
import { PositionManagerContract } from '@contracts';
/**
* @title Get Token URI Query
* @notice Gets the token URI for a given NFT position and decodes the JSON from base64
* @dev This query interacts with the PositionManagerContract to get and decode the token URI
*/
export declare class GetTokenURIQuery implements IBaseQuery<IGetTokenURIQueryParams, IGetTokenURIQueryOutput> {
private readonly positionManager;
constructor(positionManager: PositionManagerContract);
/**
* @notice Executes the get token URI query
* @param params The parameters for getting the token URI (must include tokenId)
* @returns The decoded JSON object from the token URI
*/
execute(params: IGetTokenURIQueryParams): Promise<IGetTokenURIQueryOutput>;
}