UNPKG

@reflex-mev/sdk

Version:

TypeScript SDK for Reflex Router - Execute MEV backruns with ease

127 lines 3.75 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.REFLEX_ROUTER_ABI = void 0; exports.REFLEX_ROUTER_ABI = [ { type: "constructor", inputs: [], stateMutability: "nonpayable", }, { type: "function", name: "backrunedExecute", inputs: [ { name: "executeParams", type: "tuple", components: [ { name: "target", type: "address" }, { name: "value", type: "uint256" }, { name: "callData", type: "bytes" }, ], }, { name: "backrunParams", type: "tuple", components: [ { name: "triggerPoolId", type: "bytes32" }, { name: "swapAmountIn", type: "uint112" }, { name: "token0In", type: "bool" }, { name: "recipient", type: "address" }, ], }, ], outputs: [ { name: "success", type: "bool" }, { name: "returnData", type: "bytes" }, { name: "profit", type: "uint256" }, { name: "profitToken", type: "address" }, ], stateMutability: "payable", }, { type: "function", name: "triggerBackrun", inputs: [ { name: "triggerPoolId", type: "bytes32" }, { name: "swapAmountIn", type: "uint112" }, { name: "token0In", type: "bool" }, { name: "recipient", type: "address" }, ], outputs: [ { name: "profit", type: "uint256" }, { name: "profitToken", type: "address" }, ], stateMutability: "nonpayable", }, { type: "function", name: "setReflexQuoter", inputs: [{ name: "_reflexQuoter", type: "address" }], outputs: [], stateMutability: "nonpayable", }, { type: "function", name: "getReflexAdmin", inputs: [], outputs: [{ name: "", type: "address" }], stateMutability: "view", }, { type: "function", name: "owner", inputs: [], outputs: [{ name: "", type: "address" }], stateMutability: "view", }, { type: "function", name: "reflexQuoter", inputs: [], outputs: [{ name: "", type: "address" }], stateMutability: "view", }, { type: "function", name: "withdrawToken", inputs: [ { name: "token", type: "address" }, { name: "amount", type: "uint256" }, { name: "_to", type: "address" }, ], outputs: [], stateMutability: "nonpayable", }, { type: "function", name: "withdrawEth", inputs: [ { name: "amount", type: "uint256" }, { name: "_to", type: "address" }, ], outputs: [], stateMutability: "nonpayable", }, { type: "event", name: "BackrunExecuted", inputs: [ { name: "triggerPoolId", type: "bytes32", indexed: true }, { name: "swapAmountIn", type: "uint112", indexed: false }, { name: "token0In", type: "bool", indexed: false }, { name: "profit", type: "uint256", indexed: false }, { name: "profitToken", type: "address", indexed: true }, { name: "recipient", type: "address", indexed: true }, ], }, { type: "fallback", stateMutability: "payable", }, { type: "receive", stateMutability: "payable", }, ]; //# sourceMappingURL=abi.js.map