UNPKG

@crocswap-libs/sdk

Version:

🛠🐊🛠 An SDK for building applications on top of CrocSwap

94 lines 2.4 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.IMPACT_ABI = void 0; exports.IMPACT_ABI = [ { "inputs": [ { "internalType": "address", "name": "dex", "type": "address" } ], "stateMutability": "nonpayable", "type": "constructor" }, { "inputs": [ { "internalType": "address", "name": "base", "type": "address" }, { "internalType": "address", "name": "quote", "type": "address" }, { "internalType": "uint256", "name": "poolIdx", "type": "uint256" }, { "internalType": "bool", "name": "isBuy", "type": "bool" }, { "internalType": "bool", "name": "inBaseQty", "type": "bool" }, { "internalType": "uint128", "name": "qty", "type": "uint128" }, { "internalType": "uint16", "name": "poolTip", "type": "uint16" }, { "internalType": "uint128", "name": "limitPrice", "type": "uint128" } ], "name": "calcImpact", "outputs": [ { "internalType": "int128", "name": "baseFlow", "type": "int128" }, { "internalType": "int128", "name": "quoteFlow", "type": "int128" }, { "internalType": "uint128", "name": "finalPrice", "type": "uint128" } ], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "dex_", "outputs": [ { "internalType": "address", "name": "", "type": "address" } ], "stateMutability": "view", "type": "function" } ]; //# sourceMappingURL=impact.js.map