-
Notifications
You must be signed in to change notification settings - Fork 0
/
cog_pair.json
1 lines (1 loc) · 13.2 KB
/
cog_pair.json
1
[{"name": "AddCollateral", "inputs": [{"name": "to", "type": "address", "indexed": true}, {"name": "amount", "type": "uint256", "indexed": true}, {"name": "user_collateral_share", "type": "uint256", "indexed": true}], "anonymous": false, "type": "event"}, {"name": "RemoveCollateral", "inputs": [{"name": "to", "type": "address", "indexed": true}, {"name": "amount", "type": "uint256", "indexed": true}, {"name": "user_collateral_share", "type": "uint256", "indexed": true}], "anonymous": false, "type": "event"}, {"name": "Borrow", "inputs": [{"name": "amount", "type": "uint256", "indexed": true}, {"name": "to", "type": "address", "indexed": true}, {"name": "_from", "type": "address", "indexed": true}], "anonymous": false, "type": "event"}, {"name": "Paused", "inputs": [{"name": "time", "type": "uint256", "indexed": true}], "anonymous": false, "type": "event"}, {"name": "UnPaused", "inputs": [{"name": "time", "type": "uint256", "indexed": true}], "anonymous": false, "type": "event"}, {"name": "Transfer", "inputs": [{"name": "sender", "type": "address", "indexed": true}, {"name": "receiver", "type": "address", "indexed": true}, {"name": "amount", "type": "uint256", "indexed": false}], "anonymous": false, "type": "event"}, {"name": "Approval", "inputs": [{"name": "owner", "type": "address", "indexed": true}, {"name": "spender", "type": "address", "indexed": true}, {"name": "allowance", "type": "uint256", "indexed": false}], "anonymous": false, "type": "event"}, {"name": "Deposit", "inputs": [{"name": "depositor", "type": "address", "indexed": true}, {"name": "receiver", "type": "address", "indexed": true}, {"name": "assets", "type": "uint256", "indexed": false}, {"name": "shares", "type": "uint256", "indexed": false}], "anonymous": false, "type": "event"}, {"name": "Withdraw", "inputs": [{"name": "withdrawer", "type": "address", "indexed": true}, {"name": "receiver", "type": "address", "indexed": true}, {"name": "owner", "type": "address", "indexed": true}, {"name": "assets", "type": "uint256", "indexed": false}, {"name": "shares", "type": "uint256", "indexed": false}], "anonymous": false, "type": "event"}, {"stateMutability": "view", "type": "function", "name": "totalSupply", "inputs": [], "outputs": [{"name": "", "type": "uint256"}]}, {"stateMutability": "view", "type": "function", "name": "name", "inputs": [], "outputs": [{"name": "", "type": "string"}]}, {"stateMutability": "view", "type": "function", "name": "symbol", "inputs": [], "outputs": [{"name": "", "type": "string"}]}, {"stateMutability": "view", "type": "function", "name": "decimals", "inputs": [], "outputs": [{"name": "", "type": "uint8"}]}, {"stateMutability": "nonpayable", "type": "function", "name": "transfer", "inputs": [{"name": "receiver", "type": "address"}, {"name": "amount", "type": "uint256"}], "outputs": [{"name": "", "type": "bool"}]}, {"stateMutability": "nonpayable", "type": "function", "name": "approve", "inputs": [{"name": "spender", "type": "address"}, {"name": "amount", "type": "uint256"}], "outputs": [{"name": "", "type": "bool"}]}, {"stateMutability": "nonpayable", "type": "function", "name": "transferFrom", "inputs": [{"name": "sender", "type": "address"}, {"name": "receiver", "type": "address"}, {"name": "amount", "type": "uint256"}], "outputs": [{"name": "", "type": "bool"}]}, {"stateMutability": "view", "type": "function", "name": "totalAssets", "inputs": [], "outputs": [{"name": "", "type": "uint256"}]}, {"stateMutability": "view", "type": "function", "name": "convertToAssets", "inputs": [{"name": "shareAmount", "type": "uint256"}], "outputs": [{"name": "", "type": "uint256"}]}, {"stateMutability": "view", "type": "function", "name": "convertToShares", "inputs": [{"name": "assetAmount", "type": "uint256"}], "outputs": [{"name": "", "type": "uint256"}]}, {"stateMutability": "view", "type": "function", "name": "maxDeposit", "inputs": [{"name": "receiver", "type": "address"}], "outputs": [{"name": "", "type": "uint256"}]}, {"stateMutability": "view", "type": "function", "name": "previewDeposit", "inputs": [{"name": "assets", "type": "uint256"}], "outputs": [{"name": "", "type": "uint256"}]}, {"stateMutability": "nonpayable", "type": "function", "name": "deposit", "inputs": [{"name": "assets", "type": "uint256"}], "outputs": [{"name": "", "type": "uint256"}]}, {"stateMutability": "nonpayable", "type": "function", "name": "deposit", "inputs": [{"name": "assets", "type": "uint256"}, {"name": "receiver", "type": "address"}], "outputs": [{"name": "", "type": "uint256"}]}, {"stateMutability": "view", "type": "function", "name": "maxMint", "inputs": [{"name": "owner", "type": "address"}], "outputs": [{"name": "", "type": "uint256"}]}, {"stateMutability": "view", "type": "function", "name": "previewMint", "inputs": [{"name": "shares", "type": "uint256"}], "outputs": [{"name": "", "type": "uint256"}]}, {"stateMutability": "nonpayable", "type": "function", "name": "mint", "inputs": [{"name": "shares", "type": "uint256"}], "outputs": [{"name": "", "type": "uint256"}]}, {"stateMutability": "nonpayable", "type": "function", "name": "mint", "inputs": [{"name": "shares", "type": "uint256"}, {"name": "receiver", "type": "address"}], "outputs": [{"name": "", "type": "uint256"}]}, {"stateMutability": "view", "type": "function", "name": "maxWithdraw", "inputs": [{"name": "owner", "type": "address"}], "outputs": [{"name": "", "type": "uint256"}]}, {"stateMutability": "view", "type": "function", "name": "previewWithdraw", "inputs": [{"name": "assets", "type": "uint256"}], "outputs": [{"name": "", "type": "uint256"}]}, {"stateMutability": "nonpayable", "type": "function", "name": "withdraw", "inputs": [{"name": "assets", "type": "uint256"}], "outputs": [{"name": "", "type": "uint256"}]}, {"stateMutability": "nonpayable", "type": "function", "name": "withdraw", "inputs": [{"name": "assets", "type": "uint256"}, {"name": "receiver", "type": "address"}], "outputs": [{"name": "", "type": "uint256"}]}, {"stateMutability": "nonpayable", "type": "function", "name": "withdraw", "inputs": [{"name": "assets", "type": "uint256"}, {"name": "receiver", "type": "address"}, {"name": "owner", "type": "address"}], "outputs": [{"name": "", "type": "uint256"}]}, {"stateMutability": "view", "type": "function", "name": "maxRedeem", "inputs": [{"name": "owner", "type": "address"}], "outputs": [{"name": "", "type": "uint256"}]}, {"stateMutability": "view", "type": "function", "name": "previewRedeem", "inputs": [{"name": "shares", "type": "uint256"}], "outputs": [{"name": "", "type": "uint256"}]}, {"stateMutability": "nonpayable", "type": "function", "name": "redeem", "inputs": [{"name": "shares", "type": "uint256"}], "outputs": [{"name": "", "type": "uint256"}]}, {"stateMutability": "nonpayable", "type": "function", "name": "redeem", "inputs": [{"name": "shares", "type": "uint256"}, {"name": "receiver", "type": "address"}], "outputs": [{"name": "", "type": "uint256"}]}, {"stateMutability": "nonpayable", "type": "function", "name": "redeem", "inputs": [{"name": "shares", "type": "uint256"}, {"name": "receiver", "type": "address"}, {"name": "owner", "type": "address"}], "outputs": [{"name": "", "type": "uint256"}]}, {"stateMutability": "nonpayable", "type": "constructor", "inputs": [{"name": "_asset", "type": "address"}, {"name": "_collateral", "type": "address"}, {"name": "_oracle", "type": "address"}, {"name": "min_target_utilization", "type": "uint256"}, {"name": "max_target_utilization", "type": "uint256"}, {"name": "starting_interest_per_second", "type": "uint64"}, {"name": "min_interest", "type": "uint64"}, {"name": "max_interest", "type": "uint64"}, {"name": "elasticity", "type": "uint256"}], "outputs": []}, {"stateMutability": "nonpayable", "type": "function", "name": "accrue", "inputs": [], "outputs": []}, {"stateMutability": "nonpayable", "type": "function", "name": "add_collateral", "inputs": [{"name": "to", "type": "address"}, {"name": "amount", "type": "uint256"}], "outputs": []}, {"stateMutability": "nonpayable", "type": "function", "name": "remove_collateral", "inputs": [{"name": "to", "type": "address"}, {"name": "amount", "type": "uint256"}], "outputs": []}, {"stateMutability": "nonpayable", "type": "function", "name": "approve_borrow", "inputs": [{"name": "borrower", "type": "address"}, {"name": "amount", "type": "uint256"}], "outputs": [{"name": "", "type": "bool"}]}, {"stateMutability": "nonpayable", "type": "function", "name": "borrow", "inputs": [{"name": "amount", "type": "uint256"}], "outputs": [{"name": "", "type": "uint256"}]}, {"stateMutability": "nonpayable", "type": "function", "name": "borrow", "inputs": [{"name": "amount", "type": "uint256"}, {"name": "_from", "type": "address"}], "outputs": [{"name": "", "type": "uint256"}]}, {"stateMutability": "nonpayable", "type": "function", "name": "borrow", "inputs": [{"name": "amount", "type": "uint256"}, {"name": "_from", "type": "address"}, {"name": "to", "type": "address"}], "outputs": [{"name": "", "type": "uint256"}]}, {"stateMutability": "nonpayable", "type": "function", "name": "repay", "inputs": [{"name": "to", "type": "address"}, {"name": "payment", "type": "uint256"}], "outputs": [{"name": "", "type": "uint256"}]}, {"stateMutability": "nonpayable", "type": "function", "name": "get_exchange_rate", "inputs": [], "outputs": [{"name": "", "type": "bool"}, {"name": "", "type": "uint256"}]}, {"stateMutability": "nonpayable", "type": "function", "name": "liquidate", "inputs": [{"name": "user", "type": "address"}, {"name": "max_borrow_parts", "type": "uint256"}, {"name": "to", "type": "address"}], "outputs": []}, {"stateMutability": "nonpayable", "type": "function", "name": "update_borrow_fee", "inputs": [{"name": "newFee", "type": "uint256"}], "outputs": []}, {"stateMutability": "nonpayable", "type": "function", "name": "update_default_protocol_fee", "inputs": [{"name": "newFee", "type": "uint256"}], "outputs": []}, {"stateMutability": "nonpayable", "type": "function", "name": "pause", "inputs": [], "outputs": []}, {"stateMutability": "nonpayable", "type": "function", "name": "unpause", "inputs": [], "outputs": []}, {"stateMutability": "nonpayable", "type": "function", "name": "roll_over_pol", "inputs": [], "outputs": []}, {"stateMutability": "view", "type": "function", "name": "oracle", "inputs": [], "outputs": [{"name": "", "type": "address"}]}, {"stateMutability": "view", "type": "function", "name": "asset", "inputs": [], "outputs": [{"name": "", "type": "address"}]}, {"stateMutability": "view", "type": "function", "name": "collateral", "inputs": [], "outputs": [{"name": "", "type": "address"}]}, {"stateMutability": "view", "type": "function", "name": "total_collateral_share", "inputs": [], "outputs": [{"name": "", "type": "uint256"}]}, {"stateMutability": "view", "type": "function", "name": "total_asset", "inputs": [], "outputs": [{"name": "", "type": "tuple", "components": [{"name": "elastic", "type": "uint128"}, {"name": "base", "type": "uint128"}]}]}, {"stateMutability": "view", "type": "function", "name": "total_borrow", "inputs": [], "outputs": [{"name": "", "type": "tuple", "components": [{"name": "elastic", "type": "uint128"}, {"name": "base", "type": "uint128"}]}]}, {"stateMutability": "view", "type": "function", "name": "user_collateral_share", "inputs": [{"name": "arg0", "type": "address"}], "outputs": [{"name": "", "type": "uint256"}]}, {"stateMutability": "view", "type": "function", "name": "user_borrow_part", "inputs": [{"name": "arg0", "type": "address"}], "outputs": [{"name": "", "type": "uint256"}]}, {"stateMutability": "view", "type": "function", "name": "exchange_rate", "inputs": [], "outputs": [{"name": "", "type": "uint256"}]}, {"stateMutability": "view", "type": "function", "name": "accrue_info", "inputs": [], "outputs": [{"name": "", "type": "tuple", "components": [{"name": "interest_per_second", "type": "uint64"}, {"name": "last_accrued", "type": "uint64"}, {"name": "fees_earned_fraction", "type": "uint128"}]}]}, {"stateMutability": "view", "type": "function", "name": "surge_info", "inputs": [], "outputs": [{"name": "", "type": "tuple", "components": [{"name": "last_interest_per_second", "type": "uint64"}, {"name": "last_elapsed_time", "type": "uint64"}]}]}, {"stateMutability": "view", "type": "function", "name": "factory", "inputs": [], "outputs": [{"name": "", "type": "address"}]}, {"stateMutability": "view", "type": "function", "name": "paused", "inputs": [], "outputs": [{"name": "", "type": "bool"}]}, {"stateMutability": "view", "type": "function", "name": "BORROW_OPENING_FEE", "inputs": [], "outputs": [{"name": "", "type": "uint256"}]}, {"stateMutability": "view", "type": "function", "name": "protocol_fee", "inputs": [], "outputs": [{"name": "", "type": "uint256"}]}, {"stateMutability": "view", "type": "function", "name": "DEFAULT_PROTOCOL_FEE", "inputs": [], "outputs": [{"name": "", "type": "uint256"}]}, {"stateMutability": "view", "type": "function", "name": "balanceOf", "inputs": [{"name": "arg0", "type": "address"}], "outputs": [{"name": "", "type": "uint256"}]}, {"stateMutability": "view", "type": "function", "name": "allowance", "inputs": [{"name": "arg0", "type": "address"}, {"name": "arg1", "type": "address"}], "outputs": [{"name": "", "type": "uint256"}]}, {"stateMutability": "view", "type": "function", "name": "borrow_approvals", "inputs": [{"name": "arg0", "type": "address"}, {"name": "arg1", "type": "address"}], "outputs": [{"name": "", "type": "uint256"}]}]