UNPKG

@composable-finance/v1-sdk-defi-protocols

Version:

Provides ABIs, Addresses, and Solidity Interfaces to popular DeFi protocols.

989 lines (988 loc) 25.9 kB
[ { "anonymous": false, "inputs": [ { "indexed": true, "internalType": "address", "name": "owner", "type": "address" }, { "indexed": true, "internalType": "address", "name": "spender", "type": "address" }, { "indexed": false, "internalType": "uint256", "name": "value", "type": "uint256" } ], "name": "Approval", "type": "event" }, { "anonymous": false, "inputs": [ { "indexed": false, "internalType": "address", "name": "forgeValidator", "type": "address" } ], "name": "ForgeValidatorChanged", "type": "event" }, { "anonymous": false, "inputs": [ { "indexed": true, "internalType": "address", "name": "minter", "type": "address" }, { "indexed": false, "internalType": "address", "name": "recipient", "type": "address" }, { "indexed": false, "internalType": "uint256", "name": "mAssetQuantity", "type": "uint256" }, { "indexed": false, "internalType": "address", "name": "bAsset", "type": "address" }, { "indexed": false, "internalType": "uint256", "name": "bAssetQuantity", "type": "uint256" } ], "name": "Minted", "type": "event" }, { "anonymous": false, "inputs": [ { "indexed": true, "internalType": "address", "name": "minter", "type": "address" }, { "indexed": false, "internalType": "address", "name": "recipient", "type": "address" }, { "indexed": false, "internalType": "uint256", "name": "mAssetQuantity", "type": "uint256" }, { "indexed": false, "internalType": "address[]", "name": "bAssets", "type": "address[]" }, { "indexed": false, "internalType": "uint256[]", "name": "bAssetQuantities", "type": "uint256[]" } ], "name": "MintedMulti", "type": "event" }, { "anonymous": false, "inputs": [ { "indexed": true, "internalType": "address", "name": "payer", "type": "address" }, { "indexed": false, "internalType": "address", "name": "asset", "type": "address" }, { "indexed": false, "internalType": "uint256", "name": "feeQuantity", "type": "uint256" } ], "name": "PaidFee", "type": "event" }, { "anonymous": false, "inputs": [ { "indexed": true, "internalType": "address", "name": "redeemer", "type": "address" }, { "indexed": false, "internalType": "address", "name": "recipient", "type": "address" }, { "indexed": false, "internalType": "uint256", "name": "mAssetQuantity", "type": "uint256" }, { "indexed": false, "internalType": "address[]", "name": "bAssets", "type": "address[]" }, { "indexed": false, "internalType": "uint256[]", "name": "bAssetQuantities", "type": "uint256[]" } ], "name": "Redeemed", "type": "event" }, { "anonymous": false, "inputs": [ { "indexed": true, "internalType": "address", "name": "redeemer", "type": "address" }, { "indexed": false, "internalType": "address", "name": "recipient", "type": "address" }, { "indexed": false, "internalType": "uint256", "name": "mAssetQuantity", "type": "uint256" } ], "name": "RedeemedMasset", "type": "event" }, { "anonymous": false, "inputs": [ { "indexed": false, "internalType": "uint256", "name": "fee", "type": "uint256" } ], "name": "RedemptionFeeChanged", "type": "event" }, { "anonymous": false, "inputs": [ { "indexed": false, "internalType": "uint256", "name": "fee", "type": "uint256" } ], "name": "SwapFeeChanged", "type": "event" }, { "anonymous": false, "inputs": [ { "indexed": true, "internalType": "address", "name": "swapper", "type": "address" }, { "indexed": false, "internalType": "address", "name": "input", "type": "address" }, { "indexed": false, "internalType": "address", "name": "output", "type": "address" }, { "indexed": false, "internalType": "uint256", "name": "outputAmount", "type": "uint256" }, { "indexed": false, "internalType": "address", "name": "recipient", "type": "address" } ], "name": "Swapped", "type": "event" }, { "anonymous": false, "inputs": [ { "indexed": true, "internalType": "address", "name": "from", "type": "address" }, { "indexed": true, "internalType": "address", "name": "to", "type": "address" }, { "indexed": false, "internalType": "uint256", "name": "value", "type": "uint256" } ], "name": "Transfer", "type": "event" }, { "constant": true, "inputs": [ { "internalType": "address", "name": "owner", "type": "address" }, { "internalType": "address", "name": "spender", "type": "address" } ], "name": "allowance", "outputs": [ { "internalType": "uint256", "name": "", "type": "uint256" } ], "payable": false, "stateMutability": "view", "type": "function" }, { "constant": false, "inputs": [ { "internalType": "address", "name": "spender", "type": "address" }, { "internalType": "uint256", "name": "amount", "type": "uint256" } ], "name": "approve", "outputs": [ { "internalType": "bool", "name": "", "type": "bool" } ], "payable": false, "stateMutability": "nonpayable", "type": "function" }, { "constant": true, "inputs": [ { "internalType": "address", "name": "account", "type": "address" } ], "name": "balanceOf", "outputs": [ { "internalType": "uint256", "name": "", "type": "uint256" } ], "payable": false, "stateMutability": "view", "type": "function" }, { "constant": true, "inputs": [], "name": "decimals", "outputs": [ { "internalType": "uint8", "name": "", "type": "uint8" } ], "payable": false, "stateMutability": "view", "type": "function" }, { "constant": false, "inputs": [ { "internalType": "address", "name": "spender", "type": "address" }, { "internalType": "uint256", "name": "subtractedValue", "type": "uint256" } ], "name": "decreaseAllowance", "outputs": [ { "internalType": "bool", "name": "", "type": "bool" } ], "payable": false, "stateMutability": "nonpayable", "type": "function" }, { "constant": true, "inputs": [], "name": "forgeValidator", "outputs": [ { "internalType": "contract IForgeValidator", "name": "", "type": "address" } ], "payable": false, "stateMutability": "view", "type": "function" }, { "constant": false, "inputs": [ { "internalType": "address", "name": "spender", "type": "address" }, { "internalType": "uint256", "name": "addedValue", "type": "uint256" } ], "name": "increaseAllowance", "outputs": [ { "internalType": "bool", "name": "", "type": "bool" } ], "payable": false, "stateMutability": "nonpayable", "type": "function" }, { "constant": true, "inputs": [], "name": "name", "outputs": [ { "internalType": "string", "name": "", "type": "string" } ], "payable": false, "stateMutability": "view", "type": "function" }, { "constant": true, "inputs": [], "name": "nexus", "outputs": [ { "internalType": "contract INexus", "name": "", "type": "address" } ], "payable": false, "stateMutability": "view", "type": "function" }, { "constant": true, "inputs": [], "name": "redemptionFee", "outputs": [ { "internalType": "uint256", "name": "", "type": "uint256" } ], "payable": false, "stateMutability": "view", "type": "function" }, { "constant": true, "inputs": [], "name": "swapFee", "outputs": [ { "internalType": "uint256", "name": "", "type": "uint256" } ], "payable": false, "stateMutability": "view", "type": "function" }, { "constant": true, "inputs": [], "name": "symbol", "outputs": [ { "internalType": "string", "name": "", "type": "string" } ], "payable": false, "stateMutability": "view", "type": "function" }, { "constant": true, "inputs": [], "name": "totalSupply", "outputs": [ { "internalType": "uint256", "name": "", "type": "uint256" } ], "payable": false, "stateMutability": "view", "type": "function" }, { "constant": false, "inputs": [ { "internalType": "address", "name": "recipient", "type": "address" }, { "internalType": "uint256", "name": "amount", "type": "uint256" } ], "name": "transfer", "outputs": [ { "internalType": "bool", "name": "", "type": "bool" } ], "payable": false, "stateMutability": "nonpayable", "type": "function" }, { "constant": false, "inputs": [ { "internalType": "address", "name": "sender", "type": "address" }, { "internalType": "address", "name": "recipient", "type": "address" }, { "internalType": "uint256", "name": "amount", "type": "uint256" } ], "name": "transferFrom", "outputs": [ { "internalType": "bool", "name": "", "type": "bool" } ], "payable": false, "stateMutability": "nonpayable", "type": "function" }, { "constant": false, "inputs": [ { "internalType": "string", "name": "_nameArg", "type": "string" }, { "internalType": "string", "name": "_symbolArg", "type": "string" }, { "internalType": "address", "name": "_nexus", "type": "address" }, { "internalType": "address", "name": "_forgeValidator", "type": "address" }, { "internalType": "address", "name": "_basketManager", "type": "address" } ], "name": "initialize", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function" }, { "constant": false, "inputs": [ { "internalType": "address", "name": "_bAsset", "type": "address" }, { "internalType": "uint256", "name": "_bAssetQuantity", "type": "uint256" } ], "name": "mint", "outputs": [ { "internalType": "uint256", "name": "massetMinted", "type": "uint256" } ], "payable": false, "stateMutability": "nonpayable", "type": "function" }, { "constant": false, "inputs": [ { "internalType": "address", "name": "_bAsset", "type": "address" }, { "internalType": "uint256", "name": "_bAssetQuantity", "type": "uint256" }, { "internalType": "address", "name": "_recipient", "type": "address" } ], "name": "mintTo", "outputs": [ { "internalType": "uint256", "name": "massetMinted", "type": "uint256" } ], "payable": false, "stateMutability": "nonpayable", "type": "function" }, { "constant": false, "inputs": [ { "internalType": "address[]", "name": "_bAssets", "type": "address[]" }, { "internalType": "uint256[]", "name": "_bAssetQuantity", "type": "uint256[]" }, { "internalType": "address", "name": "_recipient", "type": "address" } ], "name": "mintMulti", "outputs": [ { "internalType": "uint256", "name": "massetMinted", "type": "uint256" } ], "payable": false, "stateMutability": "nonpayable", "type": "function" }, { "constant": false, "inputs": [ { "internalType": "address", "name": "_input", "type": "address" }, { "internalType": "address", "name": "_output", "type": "address" }, { "internalType": "uint256", "name": "_quantity", "type": "uint256" }, { "internalType": "address", "name": "_recipient", "type": "address" } ], "name": "swap", "outputs": [ { "internalType": "uint256", "name": "output", "type": "uint256" } ], "payable": false, "stateMutability": "nonpayable", "type": "function" }, { "constant": true, "inputs": [ { "internalType": "address", "name": "_input", "type": "address" }, { "internalType": "address", "name": "_output", "type": "address" }, { "internalType": "uint256", "name": "_quantity", "type": "uint256" } ], "name": "getSwapOutput", "outputs": [ { "internalType": "bool", "name": "", "type": "bool" }, { "internalType": "string", "name": "", "type": "string" }, { "internalType": "uint256", "name": "output", "type": "uint256" } ], "payable": false, "stateMutability": "view", "type": "function" }, { "constant": false, "inputs": [ { "internalType": "address", "name": "_bAsset", "type": "address" }, { "internalType": "uint256", "name": "_bAssetQuantity", "type": "uint256" } ], "name": "redeem", "outputs": [ { "internalType": "uint256", "name": "massetRedeemed", "type": "uint256" } ], "payable": false, "stateMutability": "nonpayable", "type": "function" }, { "constant": false, "inputs": [ { "internalType": "address", "name": "_bAsset", "type": "address" }, { "internalType": "uint256", "name": "_bAssetQuantity", "type": "uint256" }, { "internalType": "address", "name": "_recipient", "type": "address" } ], "name": "redeemTo", "outputs": [ { "internalType": "uint256", "name": "massetRedeemed", "type": "uint256" } ], "payable": false, "stateMutability": "nonpayable", "type": "function" }, { "constant": false, "inputs": [ { "internalType": "address[]", "name": "_bAssets", "type": "address[]" }, { "internalType": "uint256[]", "name": "_bAssetQuantities", "type": "uint256[]" }, { "internalType": "address", "name": "_recipient", "type": "address" } ], "name": "redeemMulti", "outputs": [ { "internalType": "uint256", "name": "massetRedeemed", "type": "uint256" } ], "payable": false, "stateMutability": "nonpayable", "type": "function" }, { "constant": false, "inputs": [ { "internalType": "uint256", "name": "_mAssetQuantity", "type": "uint256" }, { "internalType": "address", "name": "_recipient", "type": "address" } ], "name": "redeemMasset", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function" }, { "constant": false, "inputs": [ { "internalType": "address", "name": "_newForgeValidator", "type": "address" } ], "name": "upgradeForgeValidator", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function" }, { "constant": false, "inputs": [], "name": "lockForgeValidator", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function" }, { "constant": false, "inputs": [ { "internalType": "uint256", "name": "_swapFee", "type": "uint256" } ], "name": "setSwapFee", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function" }, { "constant": false, "inputs": [ { "internalType": "uint256", "name": "_redemptionFee", "type": "uint256" } ], "name": "setRedemptionFee", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function" }, { "constant": true, "inputs": [], "name": "getBasketManager", "outputs": [ { "internalType": "address", "name": "", "type": "address" } ], "payable": false, "stateMutability": "view", "type": "function" }, { "constant": false, "inputs": [], "name": "collectInterest", "outputs": [ { "internalType": "uint256", "name": "totalInterestGained", "type": "uint256" }, { "internalType": "uint256", "name": "newSupply", "type": "uint256" } ], "payable": false, "stateMutability": "nonpayable", "type": "function" } ]