This repository has been archived by the owner on Jan 24, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 381
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
1792cdd
commit cbde9d4
Showing
13 changed files
with
1,849 additions
and
2,110 deletions.
There are no files selected for viewing
798 changes: 0 additions & 798 deletions
798
src/apps/olympus/contracts/abis/olympus-bond-depository.json
This file was deleted.
Oops, something went wrong.
363 changes: 363 additions & 0 deletions
363
src/apps/olympus/contracts/abis/olympus-v-2-bond-depository.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,363 @@ | ||
[ | ||
{ | ||
"inputs": [ | ||
{ "internalType": "contract IOlympusAuthority", "name": "_authority", "type": "address" }, | ||
{ "internalType": "contract IERC20", "name": "_ohm", "type": "address" }, | ||
{ "internalType": "contract IgOHM", "name": "_gohm", "type": "address" }, | ||
{ "internalType": "contract IStaking", "name": "_staking", "type": "address" }, | ||
{ "internalType": "contract ITreasury", "name": "_treasury", "type": "address" } | ||
], | ||
"stateMutability": "nonpayable", | ||
"type": "constructor" | ||
}, | ||
{ | ||
"anonymous": false, | ||
"inputs": [ | ||
{ "indexed": true, "internalType": "contract IOlympusAuthority", "name": "authority", "type": "address" } | ||
], | ||
"name": "AuthorityUpdated", | ||
"type": "event" | ||
}, | ||
{ | ||
"anonymous": false, | ||
"inputs": [ | ||
{ "indexed": true, "internalType": "uint256", "name": "id", "type": "uint256" }, | ||
{ "indexed": false, "internalType": "uint256", "name": "amount", "type": "uint256" }, | ||
{ "indexed": false, "internalType": "uint256", "name": "price", "type": "uint256" } | ||
], | ||
"name": "Bond", | ||
"type": "event" | ||
}, | ||
{ | ||
"anonymous": false, | ||
"inputs": [{ "indexed": true, "internalType": "uint256", "name": "id", "type": "uint256" }], | ||
"name": "CloseMarket", | ||
"type": "event" | ||
}, | ||
{ | ||
"anonymous": false, | ||
"inputs": [ | ||
{ "indexed": true, "internalType": "uint256", "name": "id", "type": "uint256" }, | ||
{ "indexed": true, "internalType": "address", "name": "baseToken", "type": "address" }, | ||
{ "indexed": true, "internalType": "address", "name": "quoteToken", "type": "address" }, | ||
{ "indexed": false, "internalType": "uint256", "name": "initialPrice", "type": "uint256" } | ||
], | ||
"name": "CreateMarket", | ||
"type": "event" | ||
}, | ||
{ | ||
"anonymous": false, | ||
"inputs": [ | ||
{ "indexed": true, "internalType": "uint256", "name": "id", "type": "uint256" }, | ||
{ "indexed": false, "internalType": "uint64", "name": "oldControlVariable", "type": "uint64" }, | ||
{ "indexed": false, "internalType": "uint64", "name": "newControlVariable", "type": "uint64" } | ||
], | ||
"name": "Tuned", | ||
"type": "event" | ||
}, | ||
{ | ||
"inputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], | ||
"name": "adjustments", | ||
"outputs": [ | ||
{ "internalType": "uint64", "name": "change", "type": "uint64" }, | ||
{ "internalType": "uint48", "name": "lastAdjustment", "type": "uint48" }, | ||
{ "internalType": "uint48", "name": "timeToAdjusted", "type": "uint48" }, | ||
{ "internalType": "bool", "name": "active", "type": "bool" } | ||
], | ||
"stateMutability": "view", | ||
"type": "function" | ||
}, | ||
{ | ||
"inputs": [], | ||
"name": "authority", | ||
"outputs": [{ "internalType": "contract IOlympusAuthority", "name": "", "type": "address" }], | ||
"stateMutability": "view", | ||
"type": "function" | ||
}, | ||
{ | ||
"inputs": [{ "internalType": "uint256", "name": "_id", "type": "uint256" }], | ||
"name": "close", | ||
"outputs": [], | ||
"stateMutability": "nonpayable", | ||
"type": "function" | ||
}, | ||
{ | ||
"inputs": [ | ||
{ "internalType": "contract IERC20", "name": "_quoteToken", "type": "address" }, | ||
{ "internalType": "uint256[3]", "name": "_market", "type": "uint256[3]" }, | ||
{ "internalType": "bool[2]", "name": "_booleans", "type": "bool[2]" }, | ||
{ "internalType": "uint256[2]", "name": "_terms", "type": "uint256[2]" }, | ||
{ "internalType": "uint32[2]", "name": "_intervals", "type": "uint32[2]" } | ||
], | ||
"name": "create", | ||
"outputs": [{ "internalType": "uint256", "name": "id_", "type": "uint256" }], | ||
"stateMutability": "nonpayable", | ||
"type": "function" | ||
}, | ||
{ | ||
"inputs": [{ "internalType": "uint256", "name": "_id", "type": "uint256" }], | ||
"name": "currentControlVariable", | ||
"outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], | ||
"stateMutability": "view", | ||
"type": "function" | ||
}, | ||
{ | ||
"inputs": [{ "internalType": "uint256", "name": "_id", "type": "uint256" }], | ||
"name": "currentDebt", | ||
"outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], | ||
"stateMutability": "view", | ||
"type": "function" | ||
}, | ||
{ | ||
"inputs": [], | ||
"name": "daoReward", | ||
"outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], | ||
"stateMutability": "view", | ||
"type": "function" | ||
}, | ||
{ | ||
"inputs": [{ "internalType": "uint256", "name": "_id", "type": "uint256" }], | ||
"name": "debtDecay", | ||
"outputs": [{ "internalType": "uint64", "name": "", "type": "uint64" }], | ||
"stateMutability": "view", | ||
"type": "function" | ||
}, | ||
{ | ||
"inputs": [{ "internalType": "uint256", "name": "_id", "type": "uint256" }], | ||
"name": "debtRatio", | ||
"outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], | ||
"stateMutability": "view", | ||
"type": "function" | ||
}, | ||
{ | ||
"inputs": [ | ||
{ "internalType": "uint256", "name": "_id", "type": "uint256" }, | ||
{ "internalType": "uint256", "name": "_amount", "type": "uint256" }, | ||
{ "internalType": "uint256", "name": "_maxPrice", "type": "uint256" }, | ||
{ "internalType": "address", "name": "_user", "type": "address" }, | ||
{ "internalType": "address", "name": "_referral", "type": "address" } | ||
], | ||
"name": "deposit", | ||
"outputs": [ | ||
{ "internalType": "uint256", "name": "payout_", "type": "uint256" }, | ||
{ "internalType": "uint256", "name": "expiry_", "type": "uint256" }, | ||
{ "internalType": "uint256", "name": "index_", "type": "uint256" } | ||
], | ||
"stateMutability": "nonpayable", | ||
"type": "function" | ||
}, | ||
{ "inputs": [], "name": "getReward", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, | ||
{ | ||
"inputs": [{ "internalType": "address", "name": "_user", "type": "address" }], | ||
"name": "indexesFor", | ||
"outputs": [{ "internalType": "uint256[]", "name": "", "type": "uint256[]" }], | ||
"stateMutability": "view", | ||
"type": "function" | ||
}, | ||
{ | ||
"inputs": [{ "internalType": "uint256", "name": "_id", "type": "uint256" }], | ||
"name": "isLive", | ||
"outputs": [{ "internalType": "bool", "name": "", "type": "bool" }], | ||
"stateMutability": "view", | ||
"type": "function" | ||
}, | ||
{ | ||
"inputs": [], | ||
"name": "liveMarkets", | ||
"outputs": [{ "internalType": "uint256[]", "name": "", "type": "uint256[]" }], | ||
"stateMutability": "view", | ||
"type": "function" | ||
}, | ||
{ | ||
"inputs": [{ "internalType": "address", "name": "_token", "type": "address" }], | ||
"name": "liveMarketsFor", | ||
"outputs": [{ "internalType": "uint256[]", "name": "", "type": "uint256[]" }], | ||
"stateMutability": "view", | ||
"type": "function" | ||
}, | ||
{ | ||
"inputs": [{ "internalType": "uint256", "name": "_id", "type": "uint256" }], | ||
"name": "marketPrice", | ||
"outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], | ||
"stateMutability": "view", | ||
"type": "function" | ||
}, | ||
{ | ||
"inputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], | ||
"name": "markets", | ||
"outputs": [ | ||
{ "internalType": "uint256", "name": "capacity", "type": "uint256" }, | ||
{ "internalType": "contract IERC20", "name": "quoteToken", "type": "address" }, | ||
{ "internalType": "bool", "name": "capacityInQuote", "type": "bool" }, | ||
{ "internalType": "uint64", "name": "totalDebt", "type": "uint64" }, | ||
{ "internalType": "uint64", "name": "maxPayout", "type": "uint64" }, | ||
{ "internalType": "uint64", "name": "sold", "type": "uint64" }, | ||
{ "internalType": "uint256", "name": "purchased", "type": "uint256" } | ||
], | ||
"stateMutability": "view", | ||
"type": "function" | ||
}, | ||
{ | ||
"inputs": [ | ||
{ "internalType": "address", "name": "", "type": "address" }, | ||
{ "internalType": "uint256", "name": "", "type": "uint256" } | ||
], | ||
"name": "marketsForQuote", | ||
"outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], | ||
"stateMutability": "view", | ||
"type": "function" | ||
}, | ||
{ | ||
"inputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], | ||
"name": "metadata", | ||
"outputs": [ | ||
{ "internalType": "uint48", "name": "lastTune", "type": "uint48" }, | ||
{ "internalType": "uint48", "name": "lastDecay", "type": "uint48" }, | ||
{ "internalType": "uint48", "name": "length", "type": "uint48" }, | ||
{ "internalType": "uint48", "name": "depositInterval", "type": "uint48" }, | ||
{ "internalType": "uint48", "name": "tuneInterval", "type": "uint48" }, | ||
{ "internalType": "uint8", "name": "quoteDecimals", "type": "uint8" } | ||
], | ||
"stateMutability": "view", | ||
"type": "function" | ||
}, | ||
{ | ||
"inputs": [ | ||
{ "internalType": "address", "name": "", "type": "address" }, | ||
{ "internalType": "uint256", "name": "", "type": "uint256" } | ||
], | ||
"name": "notes", | ||
"outputs": [ | ||
{ "internalType": "uint256", "name": "payout", "type": "uint256" }, | ||
{ "internalType": "uint48", "name": "created", "type": "uint48" }, | ||
{ "internalType": "uint48", "name": "matured", "type": "uint48" }, | ||
{ "internalType": "uint48", "name": "redeemed", "type": "uint48" }, | ||
{ "internalType": "uint48", "name": "marketID", "type": "uint48" } | ||
], | ||
"stateMutability": "view", | ||
"type": "function" | ||
}, | ||
{ | ||
"inputs": [ | ||
{ "internalType": "uint256", "name": "_amount", "type": "uint256" }, | ||
{ "internalType": "uint256", "name": "_id", "type": "uint256" } | ||
], | ||
"name": "payoutFor", | ||
"outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], | ||
"stateMutability": "view", | ||
"type": "function" | ||
}, | ||
{ | ||
"inputs": [ | ||
{ "internalType": "address", "name": "_user", "type": "address" }, | ||
{ "internalType": "uint256", "name": "_index", "type": "uint256" } | ||
], | ||
"name": "pendingFor", | ||
"outputs": [ | ||
{ "internalType": "uint256", "name": "payout_", "type": "uint256" }, | ||
{ "internalType": "bool", "name": "matured_", "type": "bool" } | ||
], | ||
"stateMutability": "view", | ||
"type": "function" | ||
}, | ||
{ | ||
"inputs": [ | ||
{ "internalType": "address", "name": "_from", "type": "address" }, | ||
{ "internalType": "uint256", "name": "_index", "type": "uint256" } | ||
], | ||
"name": "pullNote", | ||
"outputs": [{ "internalType": "uint256", "name": "newIndex_", "type": "uint256" }], | ||
"stateMutability": "nonpayable", | ||
"type": "function" | ||
}, | ||
{ | ||
"inputs": [ | ||
{ "internalType": "address", "name": "_to", "type": "address" }, | ||
{ "internalType": "uint256", "name": "_index", "type": "uint256" } | ||
], | ||
"name": "pushNote", | ||
"outputs": [], | ||
"stateMutability": "nonpayable", | ||
"type": "function" | ||
}, | ||
{ | ||
"inputs": [ | ||
{ "internalType": "address", "name": "_user", "type": "address" }, | ||
{ "internalType": "uint256[]", "name": "_indexes", "type": "uint256[]" }, | ||
{ "internalType": "bool", "name": "_sendgOHM", "type": "bool" } | ||
], | ||
"name": "redeem", | ||
"outputs": [{ "internalType": "uint256", "name": "payout_", "type": "uint256" }], | ||
"stateMutability": "nonpayable", | ||
"type": "function" | ||
}, | ||
{ | ||
"inputs": [ | ||
{ "internalType": "address", "name": "_user", "type": "address" }, | ||
{ "internalType": "bool", "name": "_sendgOHM", "type": "bool" } | ||
], | ||
"name": "redeemAll", | ||
"outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], | ||
"stateMutability": "nonpayable", | ||
"type": "function" | ||
}, | ||
{ | ||
"inputs": [], | ||
"name": "refReward", | ||
"outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], | ||
"stateMutability": "view", | ||
"type": "function" | ||
}, | ||
{ | ||
"inputs": [{ "internalType": "address", "name": "", "type": "address" }], | ||
"name": "rewards", | ||
"outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], | ||
"stateMutability": "view", | ||
"type": "function" | ||
}, | ||
{ | ||
"inputs": [{ "internalType": "contract IOlympusAuthority", "name": "_newAuthority", "type": "address" }], | ||
"name": "setAuthority", | ||
"outputs": [], | ||
"stateMutability": "nonpayable", | ||
"type": "function" | ||
}, | ||
{ | ||
"inputs": [ | ||
{ "internalType": "uint256", "name": "_toFrontEnd", "type": "uint256" }, | ||
{ "internalType": "uint256", "name": "_toDAO", "type": "uint256" } | ||
], | ||
"name": "setRewards", | ||
"outputs": [], | ||
"stateMutability": "nonpayable", | ||
"type": "function" | ||
}, | ||
{ | ||
"inputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], | ||
"name": "terms", | ||
"outputs": [ | ||
{ "internalType": "bool", "name": "fixedTerm", "type": "bool" }, | ||
{ "internalType": "uint64", "name": "controlVariable", "type": "uint64" }, | ||
{ "internalType": "uint48", "name": "vesting", "type": "uint48" }, | ||
{ "internalType": "uint48", "name": "conclusion", "type": "uint48" }, | ||
{ "internalType": "uint64", "name": "maxDebt", "type": "uint64" } | ||
], | ||
"stateMutability": "view", | ||
"type": "function" | ||
}, | ||
{ "inputs": [], "name": "updateTreasury", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, | ||
{ | ||
"inputs": [{ "internalType": "address", "name": "_operator", "type": "address" }], | ||
"name": "whitelist", | ||
"outputs": [], | ||
"stateMutability": "nonpayable", | ||
"type": "function" | ||
}, | ||
{ | ||
"inputs": [{ "internalType": "address", "name": "", "type": "address" }], | ||
"name": "whitelisted", | ||
"outputs": [{ "internalType": "bool", "name": "", "type": "bool" }], | ||
"stateMutability": "view", | ||
"type": "function" | ||
} | ||
] |
Oops, something went wrong.