@syncswap/sdk
Version:
SyncSwap TypeScript SDK for building DeFi applications
4 lines • 10.5 kB
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.default = [{ "inputs": [{ "internalType": "address", "name": "account", "type": "address" }, { "internalType": "contract IMaster", "name": "master", "type": "address" }, { "internalType": "uint256", "name": "startIndex", "type": "uint256" }, { "internalType": "uint256", "name": "count", "type": "uint256" }, { "internalType": "address[]", "name": "factories", "type": "address[]" }, { "internalType": "address", "name": "tokenTo", "type": "address" }, { "internalType": "address[]", "name": "pathTokens", "type": "address[]" }], "name": "getAllPools", "outputs": [{ "components": [{ "internalType": "address", "name": "pool", "type": "address" }, { "internalType": "uint16", "name": "poolType", "type": "uint16" }, { "internalType": "uint24", "name": "swapFee01", "type": "uint24" }, { "internalType": "uint24", "name": "swapFee10", "type": "uint24" }, { "internalType": "uint24", "name": "protocolFee", "type": "uint24" }, { "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 IQuoteHelper.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 IQuoteHelper.Token", "name": "token1", "type": "tuple" }, { "internalType": "uint256", "name": "reserve0", "type": "uint256" }, { "internalType": "uint256", "name": "reserve1", "type": "uint256" }, { "internalType": "uint256", "name": "totalSupply", "type": "uint256" }, { "internalType": "uint256", "name": "accountBalance", "type": "uint256" }, { "internalType": "uint256", "name": "token0Value", "type": "uint256" }, { "internalType": "uint256", "name": "token1Value", "type": "uint256" }, { "internalType": "uint256", "name": "feesCurrentEpoch", "type": "uint256" }, { "internalType": "uint256", "name": "feesLastEpoch", "type": "uint256" }, { "internalType": "uint256", "name": "feeStartTime", "type": "uint256" }, { "internalType": "uint256", "name": "totalFeeAmount", "type": "uint256" }, { "components": [{ "internalType": "uint256", "name": "a", "type": "uint256" }, { "internalType": "uint256", "name": "gamma", "type": "uint256" }, { "internalType": "uint256", "name": "invariantLast", "type": "uint256" }, { "internalType": "uint256", "name": "priceScale", "type": "uint256" }, { "internalType": "uint256", "name": "futureParamsTime", "type": "uint256" }, { "internalType": "uint256", "name": "virtualPrice", "type": "uint256" }, { "internalType": "uint256", "name": "totalSupply", "type": "uint256" }], "internalType": "struct PoolHelper.CryptoPoolData[]", "name": "cryptoPoolData", "type": "tuple[]" }], "internalType": "struct PoolHelper.PoolData[]", "name": "pools", "type": "tuple[]" }], "stateMutability": "view", "type": "function" }, { "inputs": [{ "internalType": "uint256", "name": "ts", "type": "uint256" }, { "internalType": "uint256", "name": "duration", "type": "uint256" }], "name": "getEpochStart", "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], "stateMutability": "pure", "type": "function" }, { "inputs": [{ "components": [{ "internalType": "contract IBasePool", "name": "pool", "type": "address" }, { "internalType": "address", "name": "account", "type": "address" }, { "internalType": "uint256", "name": "epoch", "type": "uint256" }, { "internalType": "uint256", "name": "epochDuration", "type": "uint256" }, { "internalType": "contract IFeeManager", "name": "feeManager", "type": "address" }, { "internalType": "contract IFeeRecipient", "name": "feeRecipient", "type": "address" }, { "internalType": "address[]", "name": "factories", "type": "address[]" }, { "internalType": "address", "name": "tokenTo", "type": "address" }, { "internalType": "address[]", "name": "pathTokens", "type": "address[]" }], "internalType": "struct PoolHelper.GetPoolParams", "name": "params", "type": "tuple" }], "name": "getPool", "outputs": [{ "components": [{ "internalType": "address", "name": "pool", "type": "address" }, { "internalType": "uint16", "name": "poolType", "type": "uint16" }, { "internalType": "uint24", "name": "swapFee01", "type": "uint24" }, { "internalType": "uint24", "name": "swapFee10", "type": "uint24" }, { "internalType": "uint24", "name": "protocolFee", "type": "uint24" }, { "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 IQuoteHelper.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 IQuoteHelper.Token", "name": "token1", "type": "tuple" }, { "internalType": "uint256", "name": "reserve0", "type": "uint256" }, { "internalType": "uint256", "name": "reserve1", "type": "uint256" }, { "internalType": "uint256", "name": "totalSupply", "type": "uint256" }, { "internalType": "uint256", "name": "accountBalance", "type": "uint256" }, { "internalType": "uint256", "name": "token0Value", "type": "uint256" }, { "internalType": "uint256", "name": "token1Value", "type": "uint256" }, { "internalType": "uint256", "name": "feesCurrentEpoch", "type": "uint256" }, { "internalType": "uint256", "name": "feesLastEpoch", "type": "uint256" }, { "internalType": "uint256", "name": "feeStartTime", "type": "uint256" }, { "internalType": "uint256", "name": "totalFeeAmount", "type": "uint256" }, { "components": [{ "internalType": "uint256", "name": "a", "type": "uint256" }, { "internalType": "uint256", "name": "gamma", "type": "uint256" }, { "internalType": "uint256", "name": "invariantLast", "type": "uint256" }, { "internalType": "uint256", "name": "priceScale", "type": "uint256" }, { "internalType": "uint256", "name": "futureParamsTime", "type": "uint256" }, { "internalType": "uint256", "name": "virtualPrice", "type": "uint256" }, { "internalType": "uint256", "name": "totalSupply", "type": "uint256" }], "internalType": "struct PoolHelper.CryptoPoolData[]", "name": "cryptoPoolData", "type": "tuple[]" }], "internalType": "struct PoolHelper.PoolData", "name": "data", "type": "tuple" }], "stateMutability": "view", "type": "function" }, { "inputs": [{ "internalType": "contract IMaster", "name": "master", "type": "address" }], "name": "getPoolData", "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }, { "internalType": "uint256", "name": "", "type": "uint256" }], "stateMutability": "view", "type": "function" }, { "inputs": [{ "internalType": "contract IBasePool", "name": "pool", "type": "address" }, { "internalType": "address", "name": "account", "type": "address" }, { "internalType": "contract IMaster", "name": "master", "type": "address" }, { "internalType": "address[]", "name": "factories", "type": "address[]" }, { "internalType": "address", "name": "tokenTo", "type": "address" }, { "internalType": "address[]", "name": "pathTokens", "type": "address[]" }], "name": "getPoolWithMaster", "outputs": [{ "components": [{ "internalType": "address", "name": "pool", "type": "address" }, { "internalType": "uint16", "name": "poolType", "type": "uint16" }, { "internalType": "uint24", "name": "swapFee01", "type": "uint24" }, { "internalType": "uint24", "name": "swapFee10", "type": "uint24" }, { "internalType": "uint24", "name": "protocolFee", "type": "uint24" }, { "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 IQuoteHelper.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 IQuoteHelper.Token", "name": "token1", "type": "tuple" }, { "internalType": "uint256", "name": "reserve0", "type": "uint256" }, { "internalType": "uint256", "name": "reserve1", "type": "uint256" }, { "internalType": "uint256", "name": "totalSupply", "type": "uint256" }, { "internalType": "uint256", "name": "accountBalance", "type": "uint256" }, { "internalType": "uint256", "name": "token0Value", "type": "uint256" }, { "internalType": "uint256", "name": "token1Value", "type": "uint256" }, { "internalType": "uint256", "name": "feesCurrentEpoch", "type": "uint256" }, { "internalType": "uint256", "name": "feesLastEpoch", "type": "uint256" }, { "internalType": "uint256", "name": "feeStartTime", "type": "uint256" }, { "internalType": "uint256", "name": "totalFeeAmount", "type": "uint256" }, { "components": [{ "internalType": "uint256", "name": "a", "type": "uint256" }, { "internalType": "uint256", "name": "gamma", "type": "uint256" }, { "internalType": "uint256", "name": "invariantLast", "type": "uint256" }, { "internalType": "uint256", "name": "priceScale", "type": "uint256" }, { "internalType": "uint256", "name": "futureParamsTime", "type": "uint256" }, { "internalType": "uint256", "name": "virtualPrice", "type": "uint256" }, { "internalType": "uint256", "name": "totalSupply", "type": "uint256" }], "internalType": "struct PoolHelper.CryptoPoolData[]", "name": "cryptoPoolData", "type": "tuple[]" }], "internalType": "struct PoolHelper.PoolData", "name": "data", "type": "tuple" }, { "internalType": "uint256", "name": "epochDuration", "type": "uint256" }, { "internalType": "uint256", "name": "epoch", "type": "uint256" }], "stateMutability": "view", "type": "function" }];
//# sourceMappingURL=pool_helper.js.map