UNPKG

@syncswap/sdk

Version:

SyncSwap TypeScript SDK for building DeFi applications

4 lines 7.89 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.default = [{ "inputs": [{ "internalType": "contract IUniswapV3Pool", "name": "pool", "type": "address" }, { "internalType": "address", "name": "account", "type": "address" }], "name": "getUniswapV3PoolData", "outputs": [{ "components": [{ "internalType": "address", "name": "pool", "type": "address" }, { "components": [{ "internalType": "address", "name": "token", "type": "address" }, { "internalType": "string", "name": "symbol", "type": "string" }, { "internalType": "string", "name": "name", "type": "string" }, { "internalType": "uint8", "name": "decimals", "type": "uint8" }], "internalType": "struct MulticallV2.Token", "name": "token0", "type": "tuple" }, { "components": [{ "internalType": "address", "name": "token", "type": "address" }, { "internalType": "string", "name": "symbol", "type": "string" }, { "internalType": "string", "name": "name", "type": "string" }, { "internalType": "uint8", "name": "decimals", "type": "uint8" }], "internalType": "struct MulticallV2.Token", "name": "token1", "type": "tuple" }, { "internalType": "uint16", "name": "poolType", "type": "uint16" }, { "internalType": "uint24", "name": "swapFee01", "type": "uint24" }, { "internalType": "uint24", "name": "swapFee10", "type": "uint24" }, { "internalType": "uint24", "name": "protocolFee", "type": "uint24" }, { "internalType": "uint128", "name": "liquidity", "type": "uint128" }, { "internalType": "int24", "name": "tick", "type": "int24" }, { "internalType": "uint256", "name": "reserve0", "type": "uint256" }, { "internalType": "uint256", "name": "reserve1", "type": "uint256" }, { "internalType": "uint160", "name": "sqrtPriceX96", "type": "uint160" }, { "internalType": "uint256", "name": "rewardRate", "type": "uint256" }, { "internalType": "uint256", "name": "rewardReserve", "type": "uint256" }, { "internalType": "uint256", "name": "periodFinish", "type": "uint256" }, { "internalType": "uint256", "name": "rollover", "type": "uint256" }, { "internalType": "uint128", "name": "stakedLiquidity", "type": "uint128" }, { "internalType": "uint32", "name": "lastUpdated", "type": "uint32" }, { "internalType": "int24", "name": "tickSpacing", "type": "int24" }], "internalType": "struct MulticallV2.UniswapV3PoolData", "name": "data", "type": "tuple" }], "stateMutability": "view", "type": "function" }, { "inputs": [{ "internalType": "contract IUniswapV3Factory", "name": "factory", "type": "address" }, { "internalType": "address", "name": "tokenA", "type": "address" }, { "internalType": "address", "name": "tokenB", "type": "address" }, { "internalType": "address", "name": "account", "type": "address" }, { "internalType": "int24[]", "name": "tickSpacings", "type": "int24[]" }], "name": "getUniswapV3PoolsWithTokens", "outputs": [{ "components": [{ "internalType": "address", "name": "pool", "type": "address" }, { "components": [{ "internalType": "address", "name": "token", "type": "address" }, { "internalType": "string", "name": "symbol", "type": "string" }, { "internalType": "string", "name": "name", "type": "string" }, { "internalType": "uint8", "name": "decimals", "type": "uint8" }], "internalType": "struct MulticallV2.Token", "name": "token0", "type": "tuple" }, { "components": [{ "internalType": "address", "name": "token", "type": "address" }, { "internalType": "string", "name": "symbol", "type": "string" }, { "internalType": "string", "name": "name", "type": "string" }, { "internalType": "uint8", "name": "decimals", "type": "uint8" }], "internalType": "struct MulticallV2.Token", "name": "token1", "type": "tuple" }, { "internalType": "uint16", "name": "poolType", "type": "uint16" }, { "internalType": "uint24", "name": "swapFee01", "type": "uint24" }, { "internalType": "uint24", "name": "swapFee10", "type": "uint24" }, { "internalType": "uint24", "name": "protocolFee", "type": "uint24" }, { "internalType": "uint128", "name": "liquidity", "type": "uint128" }, { "internalType": "int24", "name": "tick", "type": "int24" }, { "internalType": "uint256", "name": "reserve0", "type": "uint256" }, { "internalType": "uint256", "name": "reserve1", "type": "uint256" }, { "internalType": "uint160", "name": "sqrtPriceX96", "type": "uint160" }, { "internalType": "uint256", "name": "rewardRate", "type": "uint256" }, { "internalType": "uint256", "name": "rewardReserve", "type": "uint256" }, { "internalType": "uint256", "name": "periodFinish", "type": "uint256" }, { "internalType": "uint256", "name": "rollover", "type": "uint256" }, { "internalType": "uint128", "name": "stakedLiquidity", "type": "uint128" }, { "internalType": "uint32", "name": "lastUpdated", "type": "uint32" }, { "internalType": "int24", "name": "tickSpacing", "type": "int24" }], "internalType": "struct MulticallV2.UniswapV3PoolData[]", "name": "pools", "type": "tuple[]" }], "stateMutability": "view", "type": "function" }, { "inputs": [{ "internalType": "contract INFT", "name": "nft", "type": "address" }, { "internalType": "address", "name": "owner", "type": "address" }, { "internalType": "address", "name": "factory", "type": "address" }, { "internalType": "bool", "name": "ignoreEmptyPositions", "type": "bool" }, { "internalType": "uint256", "name": "startTokenIndex", "type": "uint256" }, { "internalType": "uint256", "name": "itemCount", "type": "uint256" }], "name": "getUserNFTPositions", "outputs": [{ "components": [{ "internalType": "uint256", "name": "totalSupply", "type": "uint256" }, { "internalType": "uint256", "name": "balance", "type": "uint256" }, { "components": [{ "internalType": "uint256", "name": "tokenId", "type": "uint256" }, { "internalType": "address", "name": "token0", "type": "address" }, { "internalType": "address", "name": "token1", "type": "address" }, { "internalType": "int24", "name": "tickSpacing", "type": "int24" }, { "internalType": "int24", "name": "tickLower", "type": "int24" }, { "internalType": "int24", "name": "tickUpper", "type": "int24" }, { "internalType": "uint128", "name": "liquidity", "type": "uint128" }, { "internalType": "uint256", "name": "feeGrowthInside0LastX128", "type": "uint256" }, { "internalType": "uint256", "name": "feeGrowthInside1LastX128", "type": "uint256" }, { "internalType": "uint128", "name": "tokensOwed0", "type": "uint128" }, { "internalType": "uint128", "name": "tokensOwed1", "type": "uint128" }, { "internalType": "uint256", "name": "tickLowerFeeGrowthOutside0X128", "type": "uint256" }, { "internalType": "uint256", "name": "tickLowerFeeGrowthOutside1X128", "type": "uint256" }, { "internalType": "uint256", "name": "tickUpperFeeGrowthOutside0X128", "type": "uint256" }, { "internalType": "uint256", "name": "tickUpperFeeGrowthOutside1X128", "type": "uint256" }, { "internalType": "address", "name": "pool", "type": "address" }, { "internalType": "uint256", "name": "reserve0", "type": "uint256" }, { "internalType": "uint256", "name": "reserve1", "type": "uint256" }, { "internalType": "int24", "name": "tickCurrent", "type": "int24" }, { "internalType": "uint24", "name": "protocolFee", "type": "uint24" }, { "internalType": "uint24", "name": "swapFee01", "type": "uint24" }, { "internalType": "uint24", "name": "swapFee10", "type": "uint24" }, { "internalType": "uint160", "name": "sqrtPriceX96", "type": "uint160" }, { "internalType": "uint128", "name": "poolLiquidity", "type": "uint128" }, { "internalType": "uint128", "name": "poolStakedLiquidity", "type": "uint128" }, { "internalType": "uint256", "name": "feeGrowthGlobal0X128", "type": "uint256" }, { "internalType": "uint256", "name": "feeGrowthGlobal1X128", "type": "uint256" }], "internalType": "struct MulticallV2.UserNFTPosition[]", "name": "positions", "type": "tuple[]" }], "internalType": "struct MulticallV2.UserNFTPositions", "name": "data", "type": "tuple" }], "stateMutability": "view", "type": "function" }]; //# sourceMappingURL=multicall2.js.map