@dolomite-exchange/dolomite-margin 0.2.0 → 0.2.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/contracts/Account.json +11 -11
- package/build/contracts/Actions.json +11 -11
- package/build/contracts/Address.json +1 -1
- package/build/contracts/Admin.json +23 -23
- package/build/contracts/AdminImpl.json +31 -322
- package/build/contracts/AdvancedMath.json +7 -7
- package/build/contracts/AmmRebalancerProxy.json +32 -77
- package/build/contracts/Babylonian.json +1 -1
- package/build/contracts/Bits.json +9 -9
- package/build/contracts/Cache.json +13 -13
- package/build/contracts/ChainlinkPriceOracleV1.json +16 -16
- package/build/contracts/Context.json +1 -1
- package/build/contracts/CustomTestToken.json +9 -9
- package/build/contracts/Decimal.json +9 -9
- package/build/contracts/DelayedMultiSig.json +9 -9
- package/build/contracts/DolomiteAmmERC20.json +11 -11
- package/build/contracts/DolomiteAmmFactory.json +14 -52
- package/build/contracts/DolomiteAmmLibrary.json +24 -24
- package/build/contracts/DolomiteAmmPair.json +27 -27
- package/build/contracts/DolomiteAmmRouterProxy.json +30 -363
- package/build/contracts/DolomiteMargin.json +22 -68
- package/build/contracts/DoubleExponentInterestSetter.json +15 -21
- package/build/contracts/EnumerableSet.json +7 -7
- package/build/contracts/ErroringOmiseToken.json +9 -9
- package/build/contracts/ErroringToken.json +10 -10
- package/build/contracts/Events.json +17 -17
- package/build/contracts/Exchange.json +15 -15
- package/build/contracts/Expiry.json +34 -34
- package/build/contracts/Getters.json +34 -34
- package/build/contracts/IAutoTrader.json +9 -9
- package/build/contracts/ICallee.json +7 -7
- package/build/contracts/IChainlinkAggregator.json +5 -5
- package/build/contracts/IDolomiteAmmERC20.json +5 -5
- package/build/contracts/IDolomiteAmmFactory.json +9 -9
- package/build/contracts/IDolomiteAmmPair.json +9 -9
- package/build/contracts/IDolomiteMargin.json +23 -23
- package/build/contracts/IERC20.json +1 -1
- package/build/contracts/IERC20Detailed.json +5 -5
- package/build/contracts/IExchangeWrapper.json +5 -5
- package/build/contracts/IExpiry.json +9 -9
- package/build/contracts/IInterestSetter.json +7 -7
- package/build/contracts/ILiquidationCallback.json +7 -7
- package/build/contracts/IMakerOracle.json +5 -5
- package/build/contracts/IOasisDex.json +5 -5
- package/build/contracts/IPriceOracle.json +7 -7
- package/build/contracts/IRecyclable.json +9 -9
- package/build/contracts/ITransferProxy.json +5 -5
- package/build/contracts/IUniswapV2Callee.json +5 -5
- package/build/contracts/IUniswapV2Factory.json +5 -5
- package/build/contracts/IUniswapV2Pair.json +5 -5
- package/build/contracts/IUniswapV2Router.json +5 -5
- package/build/contracts/IWETH.json +5 -5
- package/build/contracts/Interest.json +15 -15
- package/build/contracts/LiquidateOrVaporizeImpl.json +31 -82
- package/build/contracts/LiquidatorProxyHelper.json +23 -23
- package/build/contracts/LiquidatorProxyV1.json +31 -37
- package/build/contracts/LiquidatorProxyV1WithAmm.json +246 -363
- package/build/contracts/Math.json +1 -1
- package/build/contracts/Migrations.json +8 -14
- package/build/contracts/Monetary.json +7 -7
- package/build/contracts/MultiCall.json +8 -14
- package/build/contracts/MultiSig.json +7 -7
- package/build/contracts/OmiseToken.json +8 -8
- package/build/contracts/OnlyDolomiteMargin.json +11 -11
- package/build/contracts/Operation.json +15 -15
- package/build/contracts/OperationImpl.json +39 -47
- package/build/contracts/Ownable.json +1 -1
- package/build/contracts/PartiallyDelayedMultiSig.json +9 -9
- package/build/contracts/PayableProxy.json +16 -22
- package/build/contracts/Permission.json +11 -11
- package/build/contracts/PolynomialInterestSetter.json +13 -13
- package/build/contracts/RecyclableTokenProxy.json +25 -25
- package/build/contracts/ReentrancyGuard.json +1 -1
- package/build/contracts/Require.json +7 -7
- package/build/contracts/SafeERC20.json +1 -1
- package/build/contracts/SafeETH.json +7 -7
- package/build/contracts/SafeMath.json +1 -1
- package/build/contracts/SignedOperationProxy.json +21 -104
- package/build/contracts/SimpleFeeOwner.json +19 -64
- package/build/contracts/State.json +9 -9
- package/build/contracts/Storage.json +3222 -3222
- package/build/contracts/TestAmmRebalancerProxy.json +32 -58
- package/build/contracts/TestAutoTrader.json +22 -22
- package/build/contracts/TestBtcUsdChainlinkAggregator.json +11 -11
- package/build/contracts/TestCallee.json +18 -18
- package/build/contracts/TestChainlinkPriceOracleV1.json +10 -94
- package/build/contracts/TestCounter.json +7 -7
- package/build/contracts/TestDaiUsdChainlinkAggregator.json +11 -11
- package/build/contracts/TestDolomiteMargin.json +21 -21
- package/build/contracts/TestDoubleExponentInterestSetter.json +10 -10
- package/build/contracts/TestEthUsdChainlinkAggregator.json +11 -11
- package/build/contracts/TestExchangeWrapper.json +10 -10
- package/build/contracts/TestInterestSetter.json +13 -13
- package/build/contracts/TestLib.json +22 -22
- package/build/contracts/TestLinkUsdChainlinkAggregator.json +11 -11
- package/build/contracts/TestLiquidateCallback.json +15 -15
- package/build/contracts/TestLrcEthChainlinkAggregator.json +11 -11
- package/build/contracts/TestMakerOracle.json +10 -10
- package/build/contracts/TestMaticUsdChainlinkAggregator.json +10 -10
- package/build/contracts/TestOasisDex.json +12 -12
- package/build/contracts/TestOperationImpl.json +15 -15
- package/build/contracts/TestPolynomialInterestSetter.json +10 -10
- package/build/contracts/TestPriceAggregator.json +9 -9
- package/build/contracts/TestPriceOracle.json +13 -13
- package/build/contracts/TestRecyclableToken.json +9 -9
- package/build/contracts/TestSimpleCallee.json +14 -14
- package/build/contracts/TestToken.json +9 -9
- package/build/contracts/TestTrader.json +17 -17
- package/build/contracts/TestUniswapAmmRebalancerProxy.json +43 -16
- package/build/contracts/TestUsdcUsdChainlinkAggregator.json +11 -11
- package/build/contracts/TestWETH.json +9 -9
- package/build/contracts/Time.json +9 -9
- package/build/contracts/Token.json +9 -9
- package/build/contracts/TokenA.json +10 -10
- package/build/contracts/TokenB.json +10 -10
- package/build/contracts/TokenC.json +10 -10
- package/build/contracts/TokenD.json +10 -10
- package/build/contracts/TokenE.json +10 -10
- package/build/contracts/TokenF.json +10 -10
- package/build/contracts/TransferProxy.json +22 -28
- package/build/contracts/TypedSignature.json +9 -9
- package/build/contracts/Types.json +9 -9
- package/build/contracts/UQ112x112.json +7 -7
- package/build/contracts/UniswapV2ERC20.json +7 -7
- package/build/contracts/UniswapV2Factory.json +12 -12
- package/build/contracts/UniswapV2Library.json +20 -20
- package/build/contracts/UniswapV2Pair.json +17 -17
- package/build/contracts/UniswapV2Router02.json +16 -16
- package/build/contracts/WETH9.json +1 -1
- package/contracts/protocol/impl/artifacts/OperationImpl.json +80 -0
- package/contracts/protocol/impl/artifacts/OperationImpl_metadata.json +193 -0
- package/contracts/protocol/lib/Storage.sol +7 -0
- package/dist/build/published_contracts/AdminImpl.json +1 -1
- package/dist/build/published_contracts/AmmRebalancerProxy.json +1 -1
- package/dist/build/published_contracts/ChainlinkPriceOracleV1.json +1 -1
- package/dist/build/published_contracts/DolomiteAmmFactory.json +1 -1
- package/dist/build/published_contracts/DolomiteAmmRouterProxy.json +1 -1
- package/dist/build/published_contracts/DoubleExponentInterestSetter.json +2 -2
- package/dist/build/published_contracts/Expiry.json +1 -1
- package/dist/build/published_contracts/LiquidatorProxyV1.json +2 -2
- package/dist/build/published_contracts/LiquidatorProxyV1WithAmm.json +2 -2
- package/dist/build/published_contracts/MultiCall.json +1 -1
- package/dist/build/published_contracts/PayableProxy.json +1 -1
- package/dist/build/published_contracts/SignedOperationProxy.json +2 -2
- package/dist/build/published_contracts/SimpleFeeOwner.json +2 -2
- package/dist/build/published_contracts/TransferProxy.json +1 -1
- package/dist/build/wrappers/TestUniswapAmmRebalancerProxy.d.ts +66 -0
- package/dist/src/modules/MultiCall.js +2 -1
- package/dist/src/modules/MultiCall.js.map +1 -1
- package/dist/src/modules/operate/AccountOperation.d.ts +8 -2
- package/dist/src/modules/operate/AccountOperation.js +8 -10
- package/dist/src/modules/operate/AccountOperation.js.map +1 -1
- package/dist/src/types.d.ts +0 -1
- package/dist/src/types.js.map +1 -1
- package/package.json +4 -3
|
@@ -242,15 +242,15 @@
|
|
|
242
242
|
"type": "function"
|
|
243
243
|
}
|
|
244
244
|
],
|
|
245
|
-
"metadata": "{\"compiler\":{\"version\":\"0.5.16+commit.9c3226ce\"},\"language\":\"Solidity\",\"output\":{\"abi\":[{\"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\":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\":true,\"inputs\":[],\"name\":\"name\",\"outputs\":[{\"internalType\":\"string\",\"name\":\"\",\"type\":\"string\"}],\"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\"}],\"devdoc\":{\"author\":\"dYdX * Interface for using ERC20 Tokens. We have to use a special interface to call ERC20 functions so that we don't automatically revert when calling non-compliant tokens that have no return value for transfer(), transferFrom(), or approve().\",\"methods\":{\"allowance(address,address)\":{\"details\":\"Returns the remaining number of tokens that `spender` will be allowed to spend on behalf of `owner` through {transferFrom}. This is zero by default. * This value changes when {approve} or {transferFrom} are called.\"},\"approve(address,uint256)\":{\"details\":\"Sets `amount` as the allowance of `spender` over the caller's tokens. * Returns a boolean value indicating whether the operation succeeded. * IMPORTANT: Beware that changing an allowance with this method brings the risk that someone may use both the old and the new allowance by unfortunate transaction ordering. One possible solution to mitigate this race condition is to first reduce the spender's allowance to 0 and set the desired value afterwards: https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729 * Emits an {Approval} event.\"},\"balanceOf(address)\":{\"details\":\"Returns the amount of tokens owned by `account`.\"},\"totalSupply()\":{\"details\":\"Returns the amount of tokens in existence.\"},\"transfer(address,uint256)\":{\"details\":\"Moves `amount` tokens from the caller's account to `recipient`. * Returns a boolean value indicating whether the operation succeeded. * Emits a {Transfer} event.\"},\"transferFrom(address,address,uint256)\":{\"details\":\"Moves `amount` tokens from `sender` to `recipient` using the allowance mechanism. `amount` is then deducted from the caller's allowance. * Returns a boolean value indicating whether the operation succeeded. * Emits a {Transfer} event.\"}},\"title\":\"IERC20\"},\"userdoc\":{\"methods\":{}}},\"settings\":{\"compilationTarget\":{\"/
|
|
245
|
+
"metadata": "{\"compiler\":{\"version\":\"0.5.16+commit.9c3226ce\"},\"language\":\"Solidity\",\"output\":{\"abi\":[{\"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\":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\":true,\"inputs\":[],\"name\":\"name\",\"outputs\":[{\"internalType\":\"string\",\"name\":\"\",\"type\":\"string\"}],\"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\"}],\"devdoc\":{\"author\":\"dYdX * Interface for using ERC20 Tokens. We have to use a special interface to call ERC20 functions so that we don't automatically revert when calling non-compliant tokens that have no return value for transfer(), transferFrom(), or approve().\",\"methods\":{\"allowance(address,address)\":{\"details\":\"Returns the remaining number of tokens that `spender` will be allowed to spend on behalf of `owner` through {transferFrom}. This is zero by default. * This value changes when {approve} or {transferFrom} are called.\"},\"approve(address,uint256)\":{\"details\":\"Sets `amount` as the allowance of `spender` over the caller's tokens. * Returns a boolean value indicating whether the operation succeeded. * IMPORTANT: Beware that changing an allowance with this method brings the risk that someone may use both the old and the new allowance by unfortunate transaction ordering. One possible solution to mitigate this race condition is to first reduce the spender's allowance to 0 and set the desired value afterwards: https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729 * Emits an {Approval} event.\"},\"balanceOf(address)\":{\"details\":\"Returns the amount of tokens owned by `account`.\"},\"totalSupply()\":{\"details\":\"Returns the amount of tokens in existence.\"},\"transfer(address,uint256)\":{\"details\":\"Moves `amount` tokens from the caller's account to `recipient`. * Returns a boolean value indicating whether the operation succeeded. * Emits a {Transfer} event.\"},\"transferFrom(address,address,uint256)\":{\"details\":\"Moves `amount` tokens from `sender` to `recipient` using the allowance mechanism. `amount` is then deducted from the caller's allowance. * Returns a boolean value indicating whether the operation succeeded. * Emits a {Transfer} event.\"}},\"title\":\"IERC20\"},\"userdoc\":{\"methods\":{}}},\"settings\":{\"compilationTarget\":{\"/Users/corey/Leavitt-Innovations/dolomite-v2-protocol/contracts/protocol/interfaces/IERC20Detailed.sol\":\"IERC20Detailed\"},\"evmVersion\":\"istanbul\",\"libraries\":{},\"optimizer\":{\"enabled\":true,\"runs\":10000},\"remappings\":[]},\"sources\":{\"/Users/corey/Leavitt-Innovations/dolomite-v2-protocol/contracts/protocol/interfaces/IERC20Detailed.sol\":{\"keccak256\":\"0x22a62e2a8155e70300773721902f4b9118e17aa0bb5d9d1b046050a014cfb223\",\"urls\":[\"bzz-raw://03af737a33c552fbe58f6f1fbd5496854fdc28dd57be4365d56663725c083a18\",\"dweb:/ipfs/QmbgLqGAQEd6tXsZB8QaPNCAMiU6nNzP75wNbKdS65BuUF\"]},\"@openzeppelin/contracts/token/ERC20/IERC20.sol\":{\"keccak256\":\"0xe5bb0f57cff3e299f360052ba50f1ea0fff046df2be070b6943e0e3c3fdad8a9\",\"urls\":[\"bzz-raw://59fd025151435da35faa8093a5c7a17de02de9d08ad27275c5cdf05050820d91\",\"dweb:/ipfs/QmQMvwEcPhoRXzbXyrdoeRtvLoifUW9Qh7Luho7bmUPRkc\"]}},\"version\":1}",
|
|
246
246
|
"bytecode": "0x",
|
|
247
247
|
"deployedBytecode": "0x",
|
|
248
248
|
"sourceMap": "",
|
|
249
249
|
"deployedSourceMap": "",
|
|
250
250
|
"source": "/*\n\n Copyright 2019 dYdX Trading Inc.\n\n Licensed under the Apache License, Version 2.0 (the \"License\");\n you may not use this file except in compliance with the License.\n You may obtain a copy of the License at\n\n http://www.apache.org/licenses/LICENSE-2.0\n\n Unless required by applicable law or agreed to in writing, software\n distributed under the License is distributed on an \"AS IS\" BASIS,\n WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n See the License for the specific language governing permissions and\n limitations under the License.\n\n*/\n\npragma solidity ^0.5.7;\npragma experimental ABIEncoderV2;\n\nimport \"@openzeppelin/contracts/token/ERC20/IERC20.sol\";\n\n\n/**\n * @title IERC20\n * @author dYdX\n *\n * Interface for using ERC20 Tokens. We have to use a special interface to call ERC20 functions so\n * that we don't automatically revert when calling non-compliant tokens that have no return value for\n * transfer(), transferFrom(), or approve().\n */\ncontract IERC20Detailed is IERC20 {\n\n function name() external view returns (string memory);\n\n function symbol() external view returns (string memory);\n\n function decimals() external view returns (uint8);\n}\n",
|
|
251
|
-
"sourcePath": "/
|
|
251
|
+
"sourcePath": "/Users/corey/Leavitt-Innovations/dolomite-v2-protocol/contracts/protocol/interfaces/IERC20Detailed.sol",
|
|
252
252
|
"ast": {
|
|
253
|
-
"absolutePath": "/
|
|
253
|
+
"absolutePath": "/Users/corey/Leavitt-Innovations/dolomite-v2-protocol/contracts/protocol/interfaces/IERC20Detailed.sol",
|
|
254
254
|
"exportedSymbols": {
|
|
255
255
|
"IERC20Detailed": [
|
|
256
256
|
27665
|
|
@@ -495,7 +495,7 @@
|
|
|
495
495
|
"src": "603:624:59"
|
|
496
496
|
},
|
|
497
497
|
"legacyAST": {
|
|
498
|
-
"absolutePath": "/
|
|
498
|
+
"absolutePath": "/Users/corey/Leavitt-Innovations/dolomite-v2-protocol/contracts/protocol/interfaces/IERC20Detailed.sol",
|
|
499
499
|
"exportedSymbols": {
|
|
500
500
|
"IERC20Detailed": [
|
|
501
501
|
27665
|
|
@@ -745,7 +745,7 @@
|
|
|
745
745
|
},
|
|
746
746
|
"networks": {},
|
|
747
747
|
"schemaVersion": "3.0.23",
|
|
748
|
-
"updatedAt": "2022-01-
|
|
748
|
+
"updatedAt": "2022-01-29T21:54:40.974Z",
|
|
749
749
|
"devdoc": {
|
|
750
750
|
"author": "dYdX * Interface for using ERC20 Tokens. We have to use a special interface to call ERC20 functions so that we don't automatically revert when calling non-compliant tokens that have no return value for transfer(), transferFrom(), or approve().",
|
|
751
751
|
"methods": {
|
|
@@ -84,15 +84,15 @@
|
|
|
84
84
|
"type": "function"
|
|
85
85
|
}
|
|
86
86
|
],
|
|
87
|
-
"metadata": "{\"compiler\":{\"version\":\"0.5.16+commit.9c3226ce\"},\"language\":\"Solidity\",\"output\":{\"abi\":[{\"constant\":false,\"inputs\":[{\"internalType\":\"address\",\"name\":\"tradeOriginator\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"receiver\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"makerToken\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"takerToken\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"requestedFillAmount\",\"type\":\"uint256\"},{\"internalType\":\"bytes\",\"name\":\"orderData\",\"type\":\"bytes\"}],\"name\":\"exchange\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"payable\":false,\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"constant\":true,\"inputs\":[{\"internalType\":\"address\",\"name\":\"makerToken\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"takerToken\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"desiredMakerToken\",\"type\":\"uint256\"},{\"internalType\":\"bytes\",\"name\":\"orderData\",\"type\":\"bytes\"}],\"name\":\"getExchangeCost\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"payable\":false,\"stateMutability\":\"view\",\"type\":\"function\"}],\"devdoc\":{\"author\":\"dYdX * Interface that Exchange Wrappers for DolomiteMargin must implement in order to trade ERC20 tokens.\",\"methods\":{\"exchange(address,address,address,address,uint256,bytes)\":{\"params\":{\"makerToken\":\"Address of makerToken, the token to receive (target asset; IE path[path.length - 1])\",\"orderData\":\"Arbitrary bytes data for any information to pass to the exchange\",\"receiver\":\"Address to set allowance on once the trade has completed\",\"requestedFillAmount\":\"Amount of takerToken being paid\",\"takerToken\":\"Address of takerToken, the token to pay (originator asset; IE path[0])\",\"tradeOriginator\":\"Address of the initiator of the trade (however, this value cannot always be trusted as it is set at the discretion of the msg.sender)\"},\"return\":\"The amount of makerToken received\"},\"getExchangeCost(address,address,uint256,bytes)\":{\"params\":{\"desiredMakerToken\":\"Amount of makerToken requested\",\"makerToken\":\"Address of makerToken, the token to receive\",\"orderData\":\"Arbitrary bytes data for any information to pass to the exchange\",\"takerToken\":\"Address of takerToken, the token to pay\"},\"return\":\"Amount of takerToken the needed to complete the exchange\"}},\"title\":\"IExchangeWrapper\"},\"userdoc\":{\"methods\":{\"exchange(address,address,address,address,uint256,bytes)\":{\"notice\":\"Exchange some amount of takerToken for makerToken.\"},\"getExchangeCost(address,address,uint256,bytes)\":{\"notice\":\"Get amount of takerToken required to buy a certain amount of makerToken for a given trade. Should match the takerToken amount used in exchangeForAmount. If the order cannot provide exactly desiredMakerToken, then it must return the price to buy the minimum amount greater than desiredMakerToken\"}}}},\"settings\":{\"compilationTarget\":{\"/
|
|
87
|
+
"metadata": "{\"compiler\":{\"version\":\"0.5.16+commit.9c3226ce\"},\"language\":\"Solidity\",\"output\":{\"abi\":[{\"constant\":false,\"inputs\":[{\"internalType\":\"address\",\"name\":\"tradeOriginator\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"receiver\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"makerToken\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"takerToken\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"requestedFillAmount\",\"type\":\"uint256\"},{\"internalType\":\"bytes\",\"name\":\"orderData\",\"type\":\"bytes\"}],\"name\":\"exchange\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"payable\":false,\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"constant\":true,\"inputs\":[{\"internalType\":\"address\",\"name\":\"makerToken\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"takerToken\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"desiredMakerToken\",\"type\":\"uint256\"},{\"internalType\":\"bytes\",\"name\":\"orderData\",\"type\":\"bytes\"}],\"name\":\"getExchangeCost\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"payable\":false,\"stateMutability\":\"view\",\"type\":\"function\"}],\"devdoc\":{\"author\":\"dYdX * Interface that Exchange Wrappers for DolomiteMargin must implement in order to trade ERC20 tokens.\",\"methods\":{\"exchange(address,address,address,address,uint256,bytes)\":{\"params\":{\"makerToken\":\"Address of makerToken, the token to receive (target asset; IE path[path.length - 1])\",\"orderData\":\"Arbitrary bytes data for any information to pass to the exchange\",\"receiver\":\"Address to set allowance on once the trade has completed\",\"requestedFillAmount\":\"Amount of takerToken being paid\",\"takerToken\":\"Address of takerToken, the token to pay (originator asset; IE path[0])\",\"tradeOriginator\":\"Address of the initiator of the trade (however, this value cannot always be trusted as it is set at the discretion of the msg.sender)\"},\"return\":\"The amount of makerToken received\"},\"getExchangeCost(address,address,uint256,bytes)\":{\"params\":{\"desiredMakerToken\":\"Amount of makerToken requested\",\"makerToken\":\"Address of makerToken, the token to receive\",\"orderData\":\"Arbitrary bytes data for any information to pass to the exchange\",\"takerToken\":\"Address of takerToken, the token to pay\"},\"return\":\"Amount of takerToken the needed to complete the exchange\"}},\"title\":\"IExchangeWrapper\"},\"userdoc\":{\"methods\":{\"exchange(address,address,address,address,uint256,bytes)\":{\"notice\":\"Exchange some amount of takerToken for makerToken.\"},\"getExchangeCost(address,address,uint256,bytes)\":{\"notice\":\"Get amount of takerToken required to buy a certain amount of makerToken for a given trade. Should match the takerToken amount used in exchangeForAmount. If the order cannot provide exactly desiredMakerToken, then it must return the price to buy the minimum amount greater than desiredMakerToken\"}}}},\"settings\":{\"compilationTarget\":{\"/Users/corey/Leavitt-Innovations/dolomite-v2-protocol/contracts/protocol/interfaces/IExchangeWrapper.sol\":\"IExchangeWrapper\"},\"evmVersion\":\"istanbul\",\"libraries\":{},\"optimizer\":{\"enabled\":true,\"runs\":10000},\"remappings\":[]},\"sources\":{\"/Users/corey/Leavitt-Innovations/dolomite-v2-protocol/contracts/protocol/interfaces/IExchangeWrapper.sol\":{\"keccak256\":\"0xfca7f5635821bbc8ff21db6982471a5f20071365496b74a8202e59494d0f327f\",\"urls\":[\"bzz-raw://eb289cb96c83a3ff7fd72d9a646694d324ee955874ef61e986850459b5841d16\",\"dweb:/ipfs/QmeeiaqShMqWpttPJ3GuDwxFzmq235HMVG7vDnLWnCupaZ\"]}},\"version\":1}",
|
|
88
88
|
"bytecode": "0x",
|
|
89
89
|
"deployedBytecode": "0x",
|
|
90
90
|
"sourceMap": "",
|
|
91
91
|
"deployedSourceMap": "",
|
|
92
92
|
"source": "/*\n\n Copyright 2019 dYdX Trading Inc.\n\n Licensed under the Apache License, Version 2.0 (the \"License\");\n you may not use this file except in compliance with the License.\n You may obtain a copy of the License at\n\n http://www.apache.org/licenses/LICENSE-2.0\n\n Unless required by applicable law or agreed to in writing, software\n distributed under the License is distributed on an \"AS IS\" BASIS,\n WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n See the License for the specific language governing permissions and\n limitations under the License.\n\n*/\n\npragma solidity ^0.5.7;\npragma experimental ABIEncoderV2;\n\n\n/**\n * @title IExchangeWrapper\n * @author dYdX\n *\n * Interface that Exchange Wrappers for DolomiteMargin must implement in order to trade ERC20 tokens.\n */\ninterface IExchangeWrapper {\n\n // ============ Public Functions ============\n\n /**\n * Exchange some amount of takerToken for makerToken.\n *\n * @param tradeOriginator Address of the initiator of the trade (however, this value\n * cannot always be trusted as it is set at the discretion of the\n * msg.sender)\n * @param receiver Address to set allowance on once the trade has completed\n * @param makerToken Address of makerToken, the token to receive (target asset; IE path[path.length - 1])\n * @param takerToken Address of takerToken, the token to pay (originator asset; IE path[0])\n * @param requestedFillAmount Amount of takerToken being paid\n * @param orderData Arbitrary bytes data for any information to pass to the exchange\n * @return The amount of makerToken received\n */\n function exchange(\n address tradeOriginator,\n address receiver,\n address makerToken,\n address takerToken,\n uint256 requestedFillAmount,\n bytes calldata orderData\n )\n external\n returns (uint256);\n\n /**\n * Get amount of takerToken required to buy a certain amount of makerToken for a given trade.\n * Should match the takerToken amount used in exchangeForAmount. If the order cannot provide\n * exactly desiredMakerToken, then it must return the price to buy the minimum amount greater\n * than desiredMakerToken\n *\n * @param makerToken Address of makerToken, the token to receive\n * @param takerToken Address of takerToken, the token to pay\n * @param desiredMakerToken Amount of makerToken requested\n * @param orderData Arbitrary bytes data for any information to pass to the exchange\n * @return Amount of takerToken the needed to complete the exchange\n */\n function getExchangeCost(\n address makerToken,\n address takerToken,\n uint256 desiredMakerToken,\n bytes calldata orderData\n )\n external\n view\n returns (uint256);\n}\n",
|
|
93
|
-
"sourcePath": "/
|
|
93
|
+
"sourcePath": "/Users/corey/Leavitt-Innovations/dolomite-v2-protocol/contracts/protocol/interfaces/IExchangeWrapper.sol",
|
|
94
94
|
"ast": {
|
|
95
|
-
"absolutePath": "/
|
|
95
|
+
"absolutePath": "/Users/corey/Leavitt-Innovations/dolomite-v2-protocol/contracts/protocol/interfaces/IExchangeWrapper.sol",
|
|
96
96
|
"exportedSymbols": {
|
|
97
97
|
"IExchangeWrapper": [
|
|
98
98
|
27699
|
|
@@ -518,7 +518,7 @@
|
|
|
518
518
|
"src": "603:2411:60"
|
|
519
519
|
},
|
|
520
520
|
"legacyAST": {
|
|
521
|
-
"absolutePath": "/
|
|
521
|
+
"absolutePath": "/Users/corey/Leavitt-Innovations/dolomite-v2-protocol/contracts/protocol/interfaces/IExchangeWrapper.sol",
|
|
522
522
|
"exportedSymbols": {
|
|
523
523
|
"IExchangeWrapper": [
|
|
524
524
|
27699
|
|
@@ -949,7 +949,7 @@
|
|
|
949
949
|
},
|
|
950
950
|
"networks": {},
|
|
951
951
|
"schemaVersion": "3.0.23",
|
|
952
|
-
"updatedAt": "2022-01-
|
|
952
|
+
"updatedAt": "2022-01-29T21:54:40.975Z",
|
|
953
953
|
"devdoc": {
|
|
954
954
|
"author": "dYdX * Interface that Exchange Wrappers for DolomiteMargin must implement in order to trade ERC20 tokens.",
|
|
955
955
|
"methods": {
|
|
@@ -52,15 +52,15 @@
|
|
|
52
52
|
"type": "function"
|
|
53
53
|
}
|
|
54
54
|
],
|
|
55
|
-
"metadata": "{\"compiler\":{\"version\":\"0.5.16+commit.9c3226ce\"},\"language\":\"Solidity\",\"output\":{\"abi\":[{\"constant\":true,\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"heldMarketId\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"owedMarketId\",\"type\":\"uint256\"},{\"internalType\":\"uint32\",\"name\":\"expiry\",\"type\":\"uint32\"}],\"name\":\"getSpreadAdjustedPrices\",\"outputs\":[{\"components\":[{\"internalType\":\"uint256\",\"name\":\"value\",\"type\":\"uint256\"}],\"internalType\":\"struct Monetary.Price\",\"name\":\"heldPrice\",\"type\":\"tuple\"},{\"components\":[{\"internalType\":\"uint256\",\"name\":\"value\",\"type\":\"uint256\"}],\"internalType\":\"struct Monetary.Price\",\"name\":\"owedPriceAdj\",\"type\":\"tuple\"}],\"payable\":false,\"stateMutability\":\"view\",\"type\":\"function\"}],\"devdoc\":{\"author\":\"Dolomite\",\"methods\":{},\"title\":\"IExpiry\"},\"userdoc\":{\"methods\":{}}},\"settings\":{\"compilationTarget\":{\"/
|
|
55
|
+
"metadata": "{\"compiler\":{\"version\":\"0.5.16+commit.9c3226ce\"},\"language\":\"Solidity\",\"output\":{\"abi\":[{\"constant\":true,\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"heldMarketId\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"owedMarketId\",\"type\":\"uint256\"},{\"internalType\":\"uint32\",\"name\":\"expiry\",\"type\":\"uint32\"}],\"name\":\"getSpreadAdjustedPrices\",\"outputs\":[{\"components\":[{\"internalType\":\"uint256\",\"name\":\"value\",\"type\":\"uint256\"}],\"internalType\":\"struct Monetary.Price\",\"name\":\"heldPrice\",\"type\":\"tuple\"},{\"components\":[{\"internalType\":\"uint256\",\"name\":\"value\",\"type\":\"uint256\"}],\"internalType\":\"struct Monetary.Price\",\"name\":\"owedPriceAdj\",\"type\":\"tuple\"}],\"payable\":false,\"stateMutability\":\"view\",\"type\":\"function\"}],\"devdoc\":{\"author\":\"Dolomite\",\"methods\":{},\"title\":\"IExpiry\"},\"userdoc\":{\"methods\":{}}},\"settings\":{\"compilationTarget\":{\"/Users/corey/Leavitt-Innovations/dolomite-v2-protocol/contracts/external/interfaces/IExpiry.sol\":\"IExpiry\"},\"evmVersion\":\"istanbul\",\"libraries\":{},\"optimizer\":{\"enabled\":true,\"runs\":10000},\"remappings\":[]},\"sources\":{\"/Users/corey/Leavitt-Innovations/dolomite-v2-protocol/contracts/external/interfaces/IExpiry.sol\":{\"keccak256\":\"0xd7613bcef3a7384660aa4aeae9905faafbb0425b423080e5dcc0a6df4ee26cf6\",\"urls\":[\"bzz-raw://98b4cd8852fec0d6fe8bb92575974ca36d80d1a75f342c45292f2bfb62de1b67\",\"dweb:/ipfs/QmPmWrw5NhxGBqC3HByiAeV6BtTJtPXLnhvTSLEMKedj2z\"]},\"/Users/corey/Leavitt-Innovations/dolomite-v2-protocol/contracts/protocol/lib/Account.sol\":{\"keccak256\":\"0x0ab9a3fabc89984dff748af63d4319ee134051de2d7fc560e34ebaac86198396\",\"urls\":[\"bzz-raw://ab67f499a8ef83dc7e7cf7176a0f66eced40fa228eda8dd2d47e066ab985cf42\",\"dweb:/ipfs/QmXRHbsEYxr2Qsfsj5psXGV5LaPZHuzLiEXzSQJ77WSE27\"]},\"/Users/corey/Leavitt-Innovations/dolomite-v2-protocol/contracts/protocol/lib/EnumerableSet.sol\":{\"keccak256\":\"0x9710b0ab43cc2d964d8722a0aabbedbf7e9d4756dcc0b4ab7c46c1ee68653042\",\"urls\":[\"bzz-raw://2405593d37f0f224bfca556f01634a9755bb0ed626f74dd15293106a8b4dd7d3\",\"dweb:/ipfs/QmTZ16S336jsoDnK5p3vAZRzimBkmdEJibncHVBJxBt469\"]},\"/Users/corey/Leavitt-Innovations/dolomite-v2-protocol/contracts/protocol/lib/Math.sol\":{\"keccak256\":\"0x0c0c913b6ccdb69063f9ec84879fcad20a1ee6f44402c9f5ec2b4f5b9f2fa16b\",\"urls\":[\"bzz-raw://89b32eefb57e5e63ad8c6e079ae7bf2d2c8622776cd45af0cf304e1cafd6e078\",\"dweb:/ipfs/Qmcj7yRnYuTgKC3ZqZqe8rynHGYVDS3UrFExcVGcqeaDHY\"]},\"/Users/corey/Leavitt-Innovations/dolomite-v2-protocol/contracts/protocol/lib/Monetary.sol\":{\"keccak256\":\"0x5257274f2d4d3605f3e97ec45fb902111fe9a22506f0b4cf308ea933bc81bfe2\",\"urls\":[\"bzz-raw://85b8023b78805063a2ec8d376f1f5983994eabd96efd8ceadb0224dbb71c5678\",\"dweb:/ipfs/QmaDhzCzRqsuHuJfhToEC4pATQHwhh7yWWsjwfuRzFT1kG\"]},\"/Users/corey/Leavitt-Innovations/dolomite-v2-protocol/contracts/protocol/lib/Require.sol\":{\"keccak256\":\"0xe641662503ea29ca959e84674188c3e9deaaf64c5623fb9560a4301c521ca1d3\",\"urls\":[\"bzz-raw://b10a04c7d014b99eb792c8c774e203c846d070b30cf0b715325fc07838ed6a6d\",\"dweb:/ipfs/QmUqZWnbchfEY9jM647yQamHe4GzspfUeRQF9k2nn1Hixd\"]},\"/Users/corey/Leavitt-Innovations/dolomite-v2-protocol/contracts/protocol/lib/Types.sol\":{\"keccak256\":\"0xab134538648a2e223a7fe61db03c14f687657a5d37147f93c9088f11735aa311\",\"urls\":[\"bzz-raw://79dc7d2b30576d2349b99267642ac8d5fb7939c920b8d8045379d3614238bdc3\",\"dweb:/ipfs/QmaQJYg1nirHoWSC6G38Cjsk9pZBzEaNrGXKqTsvAzbyES\"]},\"@openzeppelin/contracts/math/SafeMath.sol\":{\"keccak256\":\"0x640b6dee7a4b830bdfd52b5031a07fc2b12209f5b2e29e5d364a7d37f69d8076\",\"urls\":[\"bzz-raw://31113152e1ddb78fe7a4197f247591ca894e93f916867beb708d8e747b6cc74f\",\"dweb:/ipfs/QmbZaJyXdpsYGykVhHH9qpVGQg9DGCxE2QufbCUy3daTgq\"]}},\"version\":1}",
|
|
56
56
|
"bytecode": "0x",
|
|
57
57
|
"deployedBytecode": "0x",
|
|
58
58
|
"sourceMap": "",
|
|
59
59
|
"deployedSourceMap": "",
|
|
60
60
|
"source": "/*\n\n Copyright 2021 Dolomite.\n\n Licensed under the Apache License, Version 2.0 (the \"License\");\n you may not use this file except in compliance with the License.\n You may obtain a copy of the License at\n\n http://www.apache.org/licenses/LICENSE-2.0\n\n Unless required by applicable law or agreed to in writing, software\n distributed under the License is distributed on an \"AS IS\" BASIS,\n WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n See the License for the specific language governing permissions and\n limitations under the License.\n\n*/\n\npragma solidity ^0.5.7;\npragma experimental ABIEncoderV2;\n\nimport {Account} from \"../../protocol/lib/Account.sol\";\nimport {Monetary} from \"../../protocol/lib/Monetary.sol\";\n\n\n/**\n * @title IExpiry\n * @author Dolomite\n */\ncontract IExpiry {\n\n // ============ Enums ============\n\n enum CallFunctionType {\n SetExpiry,\n SetApproval\n }\n\n // ============ Structs ============\n\n struct SetExpiryArg {\n Account.Info account;\n uint256 marketId;\n uint32 timeDelta;\n bool forceUpdate;\n }\n\n struct SetApprovalArg {\n address sender;\n uint32 minTimeDelta;\n }\n\n function getSpreadAdjustedPrices(\n uint256 heldMarketId,\n uint256 owedMarketId,\n uint32 expiry\n )\n public\n view\n returns (Monetary.Price memory heldPrice, Monetary.Price memory owedPriceAdj);\n\n}\n",
|
|
61
|
-
"sourcePath": "/
|
|
61
|
+
"sourcePath": "/Users/corey/Leavitt-Innovations/dolomite-v2-protocol/contracts/external/interfaces/IExpiry.sol",
|
|
62
62
|
"ast": {
|
|
63
|
-
"absolutePath": "/
|
|
63
|
+
"absolutePath": "/Users/corey/Leavitt-Innovations/dolomite-v2-protocol/contracts/external/interfaces/IExpiry.sol",
|
|
64
64
|
"exportedSymbols": {
|
|
65
65
|
"IExpiry": [
|
|
66
66
|
4359
|
|
@@ -90,7 +90,7 @@
|
|
|
90
90
|
"src": "619:33:13"
|
|
91
91
|
},
|
|
92
92
|
{
|
|
93
|
-
"absolutePath": "/
|
|
93
|
+
"absolutePath": "/Users/corey/Leavitt-Innovations/dolomite-v2-protocol/contracts/protocol/lib/Account.sol",
|
|
94
94
|
"file": "../../protocol/lib/Account.sol",
|
|
95
95
|
"id": 4326,
|
|
96
96
|
"nodeType": "ImportDirective",
|
|
@@ -106,7 +106,7 @@
|
|
|
106
106
|
"unitAlias": ""
|
|
107
107
|
},
|
|
108
108
|
{
|
|
109
|
-
"absolutePath": "/
|
|
109
|
+
"absolutePath": "/Users/corey/Leavitt-Innovations/dolomite-v2-protocol/contracts/protocol/lib/Monetary.sol",
|
|
110
110
|
"file": "../../protocol/lib/Monetary.sol",
|
|
111
111
|
"id": 4328,
|
|
112
112
|
"nodeType": "ImportDirective",
|
|
@@ -507,7 +507,7 @@
|
|
|
507
507
|
"src": "595:870:13"
|
|
508
508
|
},
|
|
509
509
|
"legacyAST": {
|
|
510
|
-
"absolutePath": "/
|
|
510
|
+
"absolutePath": "/Users/corey/Leavitt-Innovations/dolomite-v2-protocol/contracts/external/interfaces/IExpiry.sol",
|
|
511
511
|
"exportedSymbols": {
|
|
512
512
|
"IExpiry": [
|
|
513
513
|
4359
|
|
@@ -537,7 +537,7 @@
|
|
|
537
537
|
"src": "619:33:13"
|
|
538
538
|
},
|
|
539
539
|
{
|
|
540
|
-
"absolutePath": "/
|
|
540
|
+
"absolutePath": "/Users/corey/Leavitt-Innovations/dolomite-v2-protocol/contracts/protocol/lib/Account.sol",
|
|
541
541
|
"file": "../../protocol/lib/Account.sol",
|
|
542
542
|
"id": 4326,
|
|
543
543
|
"nodeType": "ImportDirective",
|
|
@@ -553,7 +553,7 @@
|
|
|
553
553
|
"unitAlias": ""
|
|
554
554
|
},
|
|
555
555
|
{
|
|
556
|
-
"absolutePath": "/
|
|
556
|
+
"absolutePath": "/Users/corey/Leavitt-Innovations/dolomite-v2-protocol/contracts/protocol/lib/Monetary.sol",
|
|
557
557
|
"file": "../../protocol/lib/Monetary.sol",
|
|
558
558
|
"id": 4328,
|
|
559
559
|
"nodeType": "ImportDirective",
|
|
@@ -959,7 +959,7 @@
|
|
|
959
959
|
},
|
|
960
960
|
"networks": {},
|
|
961
961
|
"schemaVersion": "3.0.23",
|
|
962
|
-
"updatedAt": "2022-01-
|
|
962
|
+
"updatedAt": "2022-01-29T21:54:40.514Z",
|
|
963
963
|
"devdoc": {
|
|
964
964
|
"author": "Dolomite",
|
|
965
965
|
"methods": {},
|
|
@@ -40,15 +40,15 @@
|
|
|
40
40
|
"type": "function"
|
|
41
41
|
}
|
|
42
42
|
],
|
|
43
|
-
"metadata": "{\"compiler\":{\"version\":\"0.5.16+commit.9c3226ce\"},\"language\":\"Solidity\",\"output\":{\"abi\":[{\"constant\":true,\"inputs\":[{\"internalType\":\"address\",\"name\":\"token\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"borrowWei\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"supplyWei\",\"type\":\"uint256\"}],\"name\":\"getInterestRate\",\"outputs\":[{\"components\":[{\"internalType\":\"uint256\",\"name\":\"value\",\"type\":\"uint256\"}],\"internalType\":\"struct Interest.Rate\",\"name\":\"\",\"type\":\"tuple\"}],\"payable\":false,\"stateMutability\":\"view\",\"type\":\"function\"}],\"devdoc\":{\"author\":\"dYdX * Interface that Interest Setters for DolomiteMargin must implement in order to report interest rates.\",\"methods\":{\"getInterestRate(address,uint256,uint256)\":{\"params\":{\"borrowWei\":\"The total borrowed token amount for the market\",\"supplyWei\":\"The total supplied token amount for the market\",\"token\":\"The address of the ERC20 token for the market\"},\"return\":\"The interest rate per second\"}},\"title\":\"IInterestSetter\"},\"userdoc\":{\"methods\":{\"getInterestRate(address,uint256,uint256)\":{\"notice\":\"Get the interest rate of a token given some borrowed and supplied amounts\"}}}},\"settings\":{\"compilationTarget\":{\"/
|
|
43
|
+
"metadata": "{\"compiler\":{\"version\":\"0.5.16+commit.9c3226ce\"},\"language\":\"Solidity\",\"output\":{\"abi\":[{\"constant\":true,\"inputs\":[{\"internalType\":\"address\",\"name\":\"token\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"borrowWei\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"supplyWei\",\"type\":\"uint256\"}],\"name\":\"getInterestRate\",\"outputs\":[{\"components\":[{\"internalType\":\"uint256\",\"name\":\"value\",\"type\":\"uint256\"}],\"internalType\":\"struct Interest.Rate\",\"name\":\"\",\"type\":\"tuple\"}],\"payable\":false,\"stateMutability\":\"view\",\"type\":\"function\"}],\"devdoc\":{\"author\":\"dYdX * Interface that Interest Setters for DolomiteMargin must implement in order to report interest rates.\",\"methods\":{\"getInterestRate(address,uint256,uint256)\":{\"params\":{\"borrowWei\":\"The total borrowed token amount for the market\",\"supplyWei\":\"The total supplied token amount for the market\",\"token\":\"The address of the ERC20 token for the market\"},\"return\":\"The interest rate per second\"}},\"title\":\"IInterestSetter\"},\"userdoc\":{\"methods\":{\"getInterestRate(address,uint256,uint256)\":{\"notice\":\"Get the interest rate of a token given some borrowed and supplied amounts\"}}}},\"settings\":{\"compilationTarget\":{\"/Users/corey/Leavitt-Innovations/dolomite-v2-protocol/contracts/protocol/interfaces/IInterestSetter.sol\":\"IInterestSetter\"},\"evmVersion\":\"istanbul\",\"libraries\":{},\"optimizer\":{\"enabled\":true,\"runs\":10000},\"remappings\":[]},\"sources\":{\"/Users/corey/Leavitt-Innovations/dolomite-v2-protocol/contracts/protocol/interfaces/IInterestSetter.sol\":{\"keccak256\":\"0x546825f65490a30e29d0f6446acec49c1e895ce6b33d48ca5c05092725a63a57\",\"urls\":[\"bzz-raw://6ad3013aed985bdf6e6234ae0f7f37e6bba76c3470c33bfa24678cf19b3b412c\",\"dweb:/ipfs/QmfYaSBzxGpgiHoR7ontMJY66S5L26XwkLYoEuzsEjpbQH\"]},\"/Users/corey/Leavitt-Innovations/dolomite-v2-protocol/contracts/protocol/lib/Decimal.sol\":{\"keccak256\":\"0x66990bbe3c58d0edf57d3f67ab5280e2a53958ce44f75c335c4c50542321bccb\",\"urls\":[\"bzz-raw://724cfdb5c99121aab5262679e46766a2883e344749870d7dbfa92d1617f68bf2\",\"dweb:/ipfs/QmYjAsS45f6UG2u3zuTks2HVfMYtyFCVMgUvD7Gt7XtU3R\"]},\"/Users/corey/Leavitt-Innovations/dolomite-v2-protocol/contracts/protocol/lib/Interest.sol\":{\"keccak256\":\"0xbb17eb41ff805df51e8d637ef2a368782fdc5f085889c2d847713484f8f1967b\",\"urls\":[\"bzz-raw://538001d60d625695754159a8f716877f72217899fdab296d4725dc44bdbe1895\",\"dweb:/ipfs/QmbRm1WpPpaynnwTdmwB5M7H1cZQEtRAuExqtJ3g9SUiVp\"]},\"/Users/corey/Leavitt-Innovations/dolomite-v2-protocol/contracts/protocol/lib/Math.sol\":{\"keccak256\":\"0x0c0c913b6ccdb69063f9ec84879fcad20a1ee6f44402c9f5ec2b4f5b9f2fa16b\",\"urls\":[\"bzz-raw://89b32eefb57e5e63ad8c6e079ae7bf2d2c8622776cd45af0cf304e1cafd6e078\",\"dweb:/ipfs/Qmcj7yRnYuTgKC3ZqZqe8rynHGYVDS3UrFExcVGcqeaDHY\"]},\"/Users/corey/Leavitt-Innovations/dolomite-v2-protocol/contracts/protocol/lib/Require.sol\":{\"keccak256\":\"0xe641662503ea29ca959e84674188c3e9deaaf64c5623fb9560a4301c521ca1d3\",\"urls\":[\"bzz-raw://b10a04c7d014b99eb792c8c774e203c846d070b30cf0b715325fc07838ed6a6d\",\"dweb:/ipfs/QmUqZWnbchfEY9jM647yQamHe4GzspfUeRQF9k2nn1Hixd\"]},\"/Users/corey/Leavitt-Innovations/dolomite-v2-protocol/contracts/protocol/lib/Time.sol\":{\"keccak256\":\"0x233d6ebf965711bf980f4bb2e672fb1a11b4b879fd41c884b3c2b704417d0d0c\",\"urls\":[\"bzz-raw://6478ff81706d531f9438b96274a7b904abbbd9c631540c68c6a89c3accf27abf\",\"dweb:/ipfs/QmWe9vkz3qwVjrcbmcTL8wgkjLPsrEqxcqPJL9ujM8PPbp\"]},\"/Users/corey/Leavitt-Innovations/dolomite-v2-protocol/contracts/protocol/lib/Types.sol\":{\"keccak256\":\"0xab134538648a2e223a7fe61db03c14f687657a5d37147f93c9088f11735aa311\",\"urls\":[\"bzz-raw://79dc7d2b30576d2349b99267642ac8d5fb7939c920b8d8045379d3614238bdc3\",\"dweb:/ipfs/QmaQJYg1nirHoWSC6G38Cjsk9pZBzEaNrGXKqTsvAzbyES\"]},\"@openzeppelin/contracts/math/SafeMath.sol\":{\"keccak256\":\"0x640b6dee7a4b830bdfd52b5031a07fc2b12209f5b2e29e5d364a7d37f69d8076\",\"urls\":[\"bzz-raw://31113152e1ddb78fe7a4197f247591ca894e93f916867beb708d8e747b6cc74f\",\"dweb:/ipfs/QmbZaJyXdpsYGykVhHH9qpVGQg9DGCxE2QufbCUy3daTgq\"]}},\"version\":1}",
|
|
44
44
|
"bytecode": "0x",
|
|
45
45
|
"deployedBytecode": "0x",
|
|
46
46
|
"sourceMap": "",
|
|
47
47
|
"deployedSourceMap": "",
|
|
48
48
|
"source": "/*\n\n Copyright 2019 dYdX Trading Inc.\n\n Licensed under the Apache License, Version 2.0 (the \"License\");\n you may not use this file except in compliance with the License.\n You may obtain a copy of the License at\n\n http://www.apache.org/licenses/LICENSE-2.0\n\n Unless required by applicable law or agreed to in writing, software\n distributed under the License is distributed on an \"AS IS\" BASIS,\n WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n See the License for the specific language governing permissions and\n limitations under the License.\n\n*/\n\npragma solidity ^0.5.7;\npragma experimental ABIEncoderV2;\n\nimport { Interest } from \"../lib/Interest.sol\";\n\n\n/**\n * @title IInterestSetter\n * @author dYdX\n *\n * Interface that Interest Setters for DolomiteMargin must implement in order to report interest rates.\n */\ninterface IInterestSetter {\n\n // ============ Public Functions ============\n\n /**\n * Get the interest rate of a token given some borrowed and supplied amounts\n *\n * @param token The address of the ERC20 token for the market\n * @param borrowWei The total borrowed token amount for the market\n * @param supplyWei The total supplied token amount for the market\n * @return The interest rate per second\n */\n function getInterestRate(\n address token,\n uint256 borrowWei,\n uint256 supplyWei\n )\n external\n view\n returns (Interest.Rate memory);\n}\n",
|
|
49
|
-
"sourcePath": "/
|
|
49
|
+
"sourcePath": "/Users/corey/Leavitt-Innovations/dolomite-v2-protocol/contracts/protocol/interfaces/IInterestSetter.sol",
|
|
50
50
|
"ast": {
|
|
51
|
-
"absolutePath": "/
|
|
51
|
+
"absolutePath": "/Users/corey/Leavitt-Innovations/dolomite-v2-protocol/contracts/protocol/interfaces/IInterestSetter.sol",
|
|
52
52
|
"exportedSymbols": {
|
|
53
53
|
"IInterestSetter": [
|
|
54
54
|
27716
|
|
@@ -78,7 +78,7 @@
|
|
|
78
78
|
"src": "627:33:61"
|
|
79
79
|
},
|
|
80
80
|
{
|
|
81
|
-
"absolutePath": "/
|
|
81
|
+
"absolutePath": "/Users/corey/Leavitt-Innovations/dolomite-v2-protocol/contracts/protocol/lib/Interest.sol",
|
|
82
82
|
"file": "../lib/Interest.sol",
|
|
83
83
|
"id": 27704,
|
|
84
84
|
"nodeType": "ImportDirective",
|
|
@@ -250,7 +250,7 @@
|
|
|
250
250
|
"src": "603:915:61"
|
|
251
251
|
},
|
|
252
252
|
"legacyAST": {
|
|
253
|
-
"absolutePath": "/
|
|
253
|
+
"absolutePath": "/Users/corey/Leavitt-Innovations/dolomite-v2-protocol/contracts/protocol/interfaces/IInterestSetter.sol",
|
|
254
254
|
"exportedSymbols": {
|
|
255
255
|
"IInterestSetter": [
|
|
256
256
|
27716
|
|
@@ -280,7 +280,7 @@
|
|
|
280
280
|
"src": "627:33:61"
|
|
281
281
|
},
|
|
282
282
|
{
|
|
283
|
-
"absolutePath": "/
|
|
283
|
+
"absolutePath": "/Users/corey/Leavitt-Innovations/dolomite-v2-protocol/contracts/protocol/lib/Interest.sol",
|
|
284
284
|
"file": "../lib/Interest.sol",
|
|
285
285
|
"id": 27704,
|
|
286
286
|
"nodeType": "ImportDirective",
|
|
@@ -457,7 +457,7 @@
|
|
|
457
457
|
},
|
|
458
458
|
"networks": {},
|
|
459
459
|
"schemaVersion": "3.0.23",
|
|
460
|
-
"updatedAt": "2022-01-
|
|
460
|
+
"updatedAt": "2022-01-29T21:54:40.975Z",
|
|
461
461
|
"devdoc": {
|
|
462
462
|
"author": "dYdX * Interface that Interest Setters for DolomiteMargin must implement in order to report interest rates.",
|
|
463
463
|
"methods": {
|
|
@@ -61,15 +61,15 @@
|
|
|
61
61
|
"type": "function"
|
|
62
62
|
}
|
|
63
63
|
],
|
|
64
|
-
"metadata": "{\"compiler\":{\"version\":\"0.5.16+commit.9c3226ce\"},\"language\":\"Solidity\",\"output\":{\"abi\":[{\"constant\":false,\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"accountNumber\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"heldMarketId\",\"type\":\"uint256\"},{\"components\":[{\"internalType\":\"bool\",\"name\":\"sign\",\"type\":\"bool\"},{\"internalType\":\"uint256\",\"name\":\"value\",\"type\":\"uint256\"}],\"internalType\":\"struct Types.Wei\",\"name\":\"heldDeltaWei\",\"type\":\"tuple\"},{\"internalType\":\"uint256\",\"name\":\"owedMarketId\",\"type\":\"uint256\"},{\"components\":[{\"internalType\":\"bool\",\"name\":\"sign\",\"type\":\"bool\"},{\"internalType\":\"uint256\",\"name\":\"value\",\"type\":\"uint256\"}],\"internalType\":\"struct Types.Wei\",\"name\":\"owedDeltaWei\",\"type\":\"tuple\"}],\"name\":\"onLiquidate\",\"outputs\":[],\"payable\":false,\"stateMutability\":\"nonpayable\",\"type\":\"function\"}],\"devdoc\":{\"methods\":{\"onLiquidate(uint256,uint256,(bool,uint256),uint256,(bool,uint256))\":{\"params\":{\"accountNumber\":\"The account number being liquidated\",\"heldDeltaWei\":\"The amount of seized collateral; always negative or 0\",\"heldMarketId\":\"The market that was positive for this account, whose collateral is being seized\",\"owedDeltaWei\":\"The amount of borrowed assets to be repaid. Always 0 or positive, since the user's balance is going from negative to 0.\",\"owedMarketId\":\"The borrowed balance that is being forcefully repaid\"}}}},\"userdoc\":{\"methods\":{\"onLiquidate(uint256,uint256,(bool,uint256),uint256,(bool,uint256))\":{\"notice\":\"A callback function to notify the smart contract that it is being liquidated. This function is called before the new balances are set in state, so calling `getAccountPar/Wei` will return this liquidated account's balance before `heldDeltaWei` or `owedDeltaWei` are applied.\"}}}},\"settings\":{\"compilationTarget\":{\"/
|
|
64
|
+
"metadata": "{\"compiler\":{\"version\":\"0.5.16+commit.9c3226ce\"},\"language\":\"Solidity\",\"output\":{\"abi\":[{\"constant\":false,\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"accountNumber\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"heldMarketId\",\"type\":\"uint256\"},{\"components\":[{\"internalType\":\"bool\",\"name\":\"sign\",\"type\":\"bool\"},{\"internalType\":\"uint256\",\"name\":\"value\",\"type\":\"uint256\"}],\"internalType\":\"struct Types.Wei\",\"name\":\"heldDeltaWei\",\"type\":\"tuple\"},{\"internalType\":\"uint256\",\"name\":\"owedMarketId\",\"type\":\"uint256\"},{\"components\":[{\"internalType\":\"bool\",\"name\":\"sign\",\"type\":\"bool\"},{\"internalType\":\"uint256\",\"name\":\"value\",\"type\":\"uint256\"}],\"internalType\":\"struct Types.Wei\",\"name\":\"owedDeltaWei\",\"type\":\"tuple\"}],\"name\":\"onLiquidate\",\"outputs\":[],\"payable\":false,\"stateMutability\":\"nonpayable\",\"type\":\"function\"}],\"devdoc\":{\"methods\":{\"onLiquidate(uint256,uint256,(bool,uint256),uint256,(bool,uint256))\":{\"params\":{\"accountNumber\":\"The account number being liquidated\",\"heldDeltaWei\":\"The amount of seized collateral; always negative or 0\",\"heldMarketId\":\"The market that was positive for this account, whose collateral is being seized\",\"owedDeltaWei\":\"The amount of borrowed assets to be repaid. Always 0 or positive, since the user's balance is going from negative to 0.\",\"owedMarketId\":\"The borrowed balance that is being forcefully repaid\"}}}},\"userdoc\":{\"methods\":{\"onLiquidate(uint256,uint256,(bool,uint256),uint256,(bool,uint256))\":{\"notice\":\"A callback function to notify the smart contract that it is being liquidated. This function is called before the new balances are set in state, so calling `getAccountPar/Wei` will return this liquidated account's balance before `heldDeltaWei` or `owedDeltaWei` are applied.\"}}}},\"settings\":{\"compilationTarget\":{\"/Users/corey/Leavitt-Innovations/dolomite-v2-protocol/contracts/protocol/interfaces/ILiquidationCallback.sol\":\"ILiquidationCallback\"},\"evmVersion\":\"istanbul\",\"libraries\":{},\"optimizer\":{\"enabled\":true,\"runs\":10000},\"remappings\":[]},\"sources\":{\"/Users/corey/Leavitt-Innovations/dolomite-v2-protocol/contracts/protocol/interfaces/ILiquidationCallback.sol\":{\"keccak256\":\"0x371f5287f1f3de144179f485ee617460ce52559685ce8214f4ee55bc605009ed\",\"urls\":[\"bzz-raw://ecb24b11427988292a722d078ffa2f1e390214bd71b5a1772ac304ddb20b2480\",\"dweb:/ipfs/QmdX6uJLKBiNTvUWU3MS7W3juRJXgmX1J8n572mh8ZexNA\"]},\"/Users/corey/Leavitt-Innovations/dolomite-v2-protocol/contracts/protocol/lib/Math.sol\":{\"keccak256\":\"0x0c0c913b6ccdb69063f9ec84879fcad20a1ee6f44402c9f5ec2b4f5b9f2fa16b\",\"urls\":[\"bzz-raw://89b32eefb57e5e63ad8c6e079ae7bf2d2c8622776cd45af0cf304e1cafd6e078\",\"dweb:/ipfs/Qmcj7yRnYuTgKC3ZqZqe8rynHGYVDS3UrFExcVGcqeaDHY\"]},\"/Users/corey/Leavitt-Innovations/dolomite-v2-protocol/contracts/protocol/lib/Require.sol\":{\"keccak256\":\"0xe641662503ea29ca959e84674188c3e9deaaf64c5623fb9560a4301c521ca1d3\",\"urls\":[\"bzz-raw://b10a04c7d014b99eb792c8c774e203c846d070b30cf0b715325fc07838ed6a6d\",\"dweb:/ipfs/QmUqZWnbchfEY9jM647yQamHe4GzspfUeRQF9k2nn1Hixd\"]},\"/Users/corey/Leavitt-Innovations/dolomite-v2-protocol/contracts/protocol/lib/Types.sol\":{\"keccak256\":\"0xab134538648a2e223a7fe61db03c14f687657a5d37147f93c9088f11735aa311\",\"urls\":[\"bzz-raw://79dc7d2b30576d2349b99267642ac8d5fb7939c920b8d8045379d3614238bdc3\",\"dweb:/ipfs/QmaQJYg1nirHoWSC6G38Cjsk9pZBzEaNrGXKqTsvAzbyES\"]},\"@openzeppelin/contracts/math/SafeMath.sol\":{\"keccak256\":\"0x640b6dee7a4b830bdfd52b5031a07fc2b12209f5b2e29e5d364a7d37f69d8076\",\"urls\":[\"bzz-raw://31113152e1ddb78fe7a4197f247591ca894e93f916867beb708d8e747b6cc74f\",\"dweb:/ipfs/QmbZaJyXdpsYGykVhHH9qpVGQg9DGCxE2QufbCUy3daTgq\"]}},\"version\":1}",
|
|
65
65
|
"bytecode": "0x",
|
|
66
66
|
"deployedBytecode": "0x",
|
|
67
67
|
"sourceMap": "",
|
|
68
68
|
"deployedSourceMap": "",
|
|
69
69
|
"source": "/*\n\n Copyright 2021 Dolomite.\n\n Licensed under the Apache License, Version 2.0 (the \"License\");\n you may not use this file except in compliance with the License.\n You may obtain a copy of the License at\n\n http://www.apache.org/licenses/LICENSE-2.0\n\n Unless required by applicable law or agreed to in writing, software\n distributed under the License is distributed on an \"AS IS\" BASIS,\n WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n See the License for the specific language governing permissions and\n limitations under the License.\n\n*/\n\npragma solidity >=0.5.0;\npragma experimental ABIEncoderV2;\n\nimport \"../lib/Types.sol\";\n\ninterface ILiquidationCallback {\n\n /**\n * A callback function to notify the smart contract that it is being liquidated. This function is called before the\n * new balances are set in state, so calling `getAccountPar/Wei` will return this liquidated account's balance\n * before `heldDeltaWei` or `owedDeltaWei` are applied.\n *\n * @param accountNumber The account number being liquidated\n * @param heldMarketId The market that was positive for this account, whose collateral is being seized\n * @param heldDeltaWei The amount of seized collateral; always negative or 0\n * @param owedMarketId The borrowed balance that is being forcefully repaid\n * @param owedDeltaWei The amount of borrowed assets to be repaid. Always 0 or positive, since the user's balance\n * is going from negative to 0.\n */\n function onLiquidate(\n uint accountNumber,\n uint heldMarketId,\n Types.Wei calldata heldDeltaWei,\n uint owedMarketId,\n Types.Wei calldata owedDeltaWei\n ) external;\n}\n",
|
|
70
|
-
"sourcePath": "/
|
|
70
|
+
"sourcePath": "/Users/corey/Leavitt-Innovations/dolomite-v2-protocol/contracts/protocol/interfaces/ILiquidationCallback.sol",
|
|
71
71
|
"ast": {
|
|
72
|
-
"absolutePath": "/
|
|
72
|
+
"absolutePath": "/Users/corey/Leavitt-Innovations/dolomite-v2-protocol/contracts/protocol/interfaces/ILiquidationCallback.sol",
|
|
73
73
|
"exportedSymbols": {
|
|
74
74
|
"ILiquidationCallback": [
|
|
75
75
|
27734
|
|
@@ -99,7 +99,7 @@
|
|
|
99
99
|
"src": "620:33:62"
|
|
100
100
|
},
|
|
101
101
|
{
|
|
102
|
-
"absolutePath": "/
|
|
102
|
+
"absolutePath": "/Users/corey/Leavitt-Innovations/dolomite-v2-protocol/contracts/protocol/lib/Types.sol",
|
|
103
103
|
"file": "../lib/Types.sol",
|
|
104
104
|
"id": 27720,
|
|
105
105
|
"nodeType": "ImportDirective",
|
|
@@ -292,7 +292,7 @@
|
|
|
292
292
|
"src": "595:1158:62"
|
|
293
293
|
},
|
|
294
294
|
"legacyAST": {
|
|
295
|
-
"absolutePath": "/
|
|
295
|
+
"absolutePath": "/Users/corey/Leavitt-Innovations/dolomite-v2-protocol/contracts/protocol/interfaces/ILiquidationCallback.sol",
|
|
296
296
|
"exportedSymbols": {
|
|
297
297
|
"ILiquidationCallback": [
|
|
298
298
|
27734
|
|
@@ -322,7 +322,7 @@
|
|
|
322
322
|
"src": "620:33:62"
|
|
323
323
|
},
|
|
324
324
|
{
|
|
325
|
-
"absolutePath": "/
|
|
325
|
+
"absolutePath": "/Users/corey/Leavitt-Innovations/dolomite-v2-protocol/contracts/protocol/lib/Types.sol",
|
|
326
326
|
"file": "../lib/Types.sol",
|
|
327
327
|
"id": 27720,
|
|
328
328
|
"nodeType": "ImportDirective",
|
|
@@ -520,7 +520,7 @@
|
|
|
520
520
|
},
|
|
521
521
|
"networks": {},
|
|
522
522
|
"schemaVersion": "3.0.23",
|
|
523
|
-
"updatedAt": "2022-01-
|
|
523
|
+
"updatedAt": "2022-01-29T21:54:40.976Z",
|
|
524
524
|
"devdoc": {
|
|
525
525
|
"methods": {
|
|
526
526
|
"onLiquidate(uint256,uint256,(bool,uint256),uint256,(bool,uint256))": {
|
|
@@ -80,15 +80,15 @@
|
|
|
80
80
|
"type": "function"
|
|
81
81
|
}
|
|
82
82
|
],
|
|
83
|
-
"metadata": "{\"compiler\":{\"version\":\"0.5.16+commit.9c3226ce\"},\"language\":\"Solidity\",\"output\":{\"abi\":[{\"anonymous\":true,\"inputs\":[{\"indexed\":true,\"internalType\":\"bytes4\",\"name\":\"msgSig\",\"type\":\"bytes4\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"msgSender\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"bytes32\",\"name\":\"arg1\",\"type\":\"bytes32\"},{\"indexed\":true,\"internalType\":\"bytes32\",\"name\":\"arg2\",\"type\":\"bytes32\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"msgValue\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"bytes\",\"name\":\"msgData\",\"type\":\"bytes\"}],\"name\":\"LogNote\",\"type\":\"event\"},{\"constant\":true,\"inputs\":[],\"name\":\"peek\",\"outputs\":[{\"internalType\":\"bytes32\",\"name\":\"\",\"type\":\"bytes32\"},{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"payable\":false,\"stateMutability\":\"view\",\"type\":\"function\"},{\"constant\":true,\"inputs\":[],\"name\":\"read\",\"outputs\":[{\"internalType\":\"bytes32\",\"name\":\"\",\"type\":\"bytes32\"}],\"payable\":false,\"stateMutability\":\"view\",\"type\":\"function\"}],\"devdoc\":{\"author\":\"dYdX * Interface for the price oracles run by MakerDao\",\"methods\":{},\"title\":\"IMakerOracle\"},\"userdoc\":{\"methods\":{}}},\"settings\":{\"compilationTarget\":{\"/
|
|
83
|
+
"metadata": "{\"compiler\":{\"version\":\"0.5.16+commit.9c3226ce\"},\"language\":\"Solidity\",\"output\":{\"abi\":[{\"anonymous\":true,\"inputs\":[{\"indexed\":true,\"internalType\":\"bytes4\",\"name\":\"msgSig\",\"type\":\"bytes4\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"msgSender\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"bytes32\",\"name\":\"arg1\",\"type\":\"bytes32\"},{\"indexed\":true,\"internalType\":\"bytes32\",\"name\":\"arg2\",\"type\":\"bytes32\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"msgValue\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"bytes\",\"name\":\"msgData\",\"type\":\"bytes\"}],\"name\":\"LogNote\",\"type\":\"event\"},{\"constant\":true,\"inputs\":[],\"name\":\"peek\",\"outputs\":[{\"internalType\":\"bytes32\",\"name\":\"\",\"type\":\"bytes32\"},{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"payable\":false,\"stateMutability\":\"view\",\"type\":\"function\"},{\"constant\":true,\"inputs\":[],\"name\":\"read\",\"outputs\":[{\"internalType\":\"bytes32\",\"name\":\"\",\"type\":\"bytes32\"}],\"payable\":false,\"stateMutability\":\"view\",\"type\":\"function\"}],\"devdoc\":{\"author\":\"dYdX * Interface for the price oracles run by MakerDao\",\"methods\":{},\"title\":\"IMakerOracle\"},\"userdoc\":{\"methods\":{}}},\"settings\":{\"compilationTarget\":{\"/Users/corey/Leavitt-Innovations/dolomite-v2-protocol/contracts/external/interfaces/IMakerOracle.sol\":\"IMakerOracle\"},\"evmVersion\":\"istanbul\",\"libraries\":{},\"optimizer\":{\"enabled\":true,\"runs\":10000},\"remappings\":[]},\"sources\":{\"/Users/corey/Leavitt-Innovations/dolomite-v2-protocol/contracts/external/interfaces/IMakerOracle.sol\":{\"keccak256\":\"0x1ad01e466dcbac37a636c7d0d2f57ea1c76479e1b999f8f1d372d44943adc490\",\"urls\":[\"bzz-raw://cbf1e8bee5070452296f08068e2d06ab7b6b503a8df9e574d833f600ce8eec18\",\"dweb:/ipfs/QmTvmEVU3Bk1PvWALu2Z4DtmX8Esb3SrD5NKvpEjmC52S2\"]}},\"version\":1}",
|
|
84
84
|
"bytecode": "0x",
|
|
85
85
|
"deployedBytecode": "0x",
|
|
86
86
|
"sourceMap": "",
|
|
87
87
|
"deployedSourceMap": "",
|
|
88
88
|
"source": "/*\n\n Copyright 2019 dYdX Trading Inc.\n\n Licensed under the Apache License, Version 2.0 (the \"License\");\n you may not use this file except in compliance with the License.\n You may obtain a copy of the License at\n\n http://www.apache.org/licenses/LICENSE-2.0\n\n Unless required by applicable law or agreed to in writing, software\n distributed under the License is distributed on an \"AS IS\" BASIS,\n WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n See the License for the specific language governing permissions and\n limitations under the License.\n\n*/\n\npragma solidity ^0.5.7;\npragma experimental ABIEncoderV2;\n\n\n/**\n * @title IMakerOracle\n * @author dYdX\n *\n * Interface for the price oracles run by MakerDao\n */\ninterface IMakerOracle {\n\n // Event that is logged when the `note` modifier is used\n event LogNote(\n bytes4 indexed msgSig,\n address indexed msgSender,\n bytes32 indexed arg1,\n bytes32 indexed arg2,\n uint256 msgValue,\n bytes msgData\n ) anonymous;\n\n // returns the current value (ETH/USD * 10**18) as a bytes32\n function peek()\n external\n view\n returns (bytes32, bool);\n\n // requires a fresh price and then returns the current value\n function read()\n external\n view\n returns (bytes32);\n}\n",
|
|
89
|
-
"sourcePath": "/
|
|
89
|
+
"sourcePath": "/Users/corey/Leavitt-Innovations/dolomite-v2-protocol/contracts/external/interfaces/IMakerOracle.sol",
|
|
90
90
|
"ast": {
|
|
91
|
-
"absolutePath": "/
|
|
91
|
+
"absolutePath": "/Users/corey/Leavitt-Innovations/dolomite-v2-protocol/contracts/external/interfaces/IMakerOracle.sol",
|
|
92
92
|
"exportedSymbols": {
|
|
93
93
|
"IMakerOracle": [
|
|
94
94
|
4389
|
|
@@ -450,7 +450,7 @@
|
|
|
450
450
|
"src": "603:752:14"
|
|
451
451
|
},
|
|
452
452
|
"legacyAST": {
|
|
453
|
-
"absolutePath": "/
|
|
453
|
+
"absolutePath": "/Users/corey/Leavitt-Innovations/dolomite-v2-protocol/contracts/external/interfaces/IMakerOracle.sol",
|
|
454
454
|
"exportedSymbols": {
|
|
455
455
|
"IMakerOracle": [
|
|
456
456
|
4389
|
|
@@ -817,7 +817,7 @@
|
|
|
817
817
|
},
|
|
818
818
|
"networks": {},
|
|
819
819
|
"schemaVersion": "3.0.23",
|
|
820
|
-
"updatedAt": "2022-01-
|
|
820
|
+
"updatedAt": "2022-01-29T21:54:40.514Z",
|
|
821
821
|
"devdoc": {
|
|
822
822
|
"author": "dYdX * Interface for the price oracles run by MakerDao",
|
|
823
823
|
"methods": {},
|