UNPKG

@mstable/protocol

Version:
167 lines (166 loc) 3.22 kB
[ { "inputs": [ { "internalType": "address", "name": "_nexus", "type": "address" } ], "stateMutability": "nonpayable", "type": "constructor" }, { "inputs": [ { "internalType": "address[]", "name": "_spenders", "type": "address[]" }, { "internalType": "address[]", "name": "_tokens", "type": "address[]" } ], "name": "approve", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [ { "internalType": "address", "name": "_input", "type": "address" }, { "internalType": "bool", "name": "_inputIsCredit", "type": "bool" }, { "internalType": "address", "name": "_output", "type": "address" } ], "name": "getIsBassetOut", "outputs": [ { "internalType": "bool", "name": "isBassetOut", "type": "bool" } ], "stateMutability": "view", "type": "function" }, { "inputs": [ { "internalType": "bool", "name": "_isBassetOut", "type": "bool" }, { "internalType": "address", "name": "_router", "type": "address" }, { "internalType": "address", "name": "_input", "type": "address" }, { "internalType": "bool", "name": "_inputIsCredit", "type": "bool" }, { "internalType": "address", "name": "_output", "type": "address" }, { "internalType": "uint256", "name": "_amount", "type": "uint256" } ], "name": "getUnwrapOutput", "outputs": [ { "internalType": "uint256", "name": "outputQuantity", "type": "uint256" } ], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "nexus", "outputs": [ { "internalType": "contract INexus", "name": "", "type": "address" } ], "stateMutability": "view", "type": "function" }, { "inputs": [ { "internalType": "bool", "name": "_isBassetOut", "type": "bool" }, { "internalType": "address", "name": "_router", "type": "address" }, { "internalType": "address", "name": "_input", "type": "address" }, { "internalType": "address", "name": "_output", "type": "address" }, { "internalType": "uint256", "name": "_amount", "type": "uint256" }, { "internalType": "uint256", "name": "_minAmountOut", "type": "uint256" }, { "internalType": "address", "name": "_beneficiary", "type": "address" } ], "name": "unwrapAndSend", "outputs": [ { "internalType": "uint256", "name": "outputQuantity", "type": "uint256" } ], "stateMutability": "nonpayable", "type": "function" } ]