@dolomite-exchange/dolomite-margin 0.2.2 → 0.2.3

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.
Files changed (150) hide show
  1. package/build/contracts/Account.json +11 -11
  2. package/build/contracts/Actions.json +11 -11
  3. package/build/contracts/Address.json +1 -1
  4. package/build/contracts/Admin.json +23 -23
  5. package/build/contracts/AdminImpl.json +31 -322
  6. package/build/contracts/AdvancedMath.json +7 -7
  7. package/build/contracts/AmmRebalancerProxy.json +32 -77
  8. package/build/contracts/Babylonian.json +1 -1
  9. package/build/contracts/Bits.json +9 -9
  10. package/build/contracts/Cache.json +13 -13
  11. package/build/contracts/ChainlinkPriceOracleV1.json +16 -16
  12. package/build/contracts/Context.json +1 -1
  13. package/build/contracts/CustomTestToken.json +9 -9
  14. package/build/contracts/Decimal.json +9 -9
  15. package/build/contracts/DelayedMultiSig.json +9 -9
  16. package/build/contracts/DolomiteAmmERC20.json +11 -11
  17. package/build/contracts/DolomiteAmmFactory.json +14 -52
  18. package/build/contracts/DolomiteAmmLibrary.json +24 -24
  19. package/build/contracts/DolomiteAmmPair.json +27 -27
  20. package/build/contracts/DolomiteAmmRouterProxy.json +30 -363
  21. package/build/contracts/DolomiteMargin.json +23 -78
  22. package/build/contracts/DoubleExponentInterestSetter.json +14 -20
  23. package/build/contracts/EnumerableSet.json +7 -7
  24. package/build/contracts/ErroringOmiseToken.json +9 -9
  25. package/build/contracts/ErroringToken.json +10 -10
  26. package/build/contracts/Events.json +17 -17
  27. package/build/contracts/Exchange.json +15 -15
  28. package/build/contracts/Expiry.json +34 -173
  29. package/build/contracts/Getters.json +34 -34
  30. package/build/contracts/IAutoTrader.json +9 -9
  31. package/build/contracts/ICallee.json +7 -7
  32. package/build/contracts/IChainlinkAggregator.json +5 -5
  33. package/build/contracts/IDolomiteAmmERC20.json +5 -5
  34. package/build/contracts/IDolomiteAmmFactory.json +9 -9
  35. package/build/contracts/IDolomiteAmmPair.json +9 -9
  36. package/build/contracts/IDolomiteMargin.json +23 -23
  37. package/build/contracts/IERC20.json +1 -1
  38. package/build/contracts/IERC20Detailed.json +5 -5
  39. package/build/contracts/IExchangeWrapper.json +5 -5
  40. package/build/contracts/IExpiry.json +9 -9
  41. package/build/contracts/IInterestSetter.json +7 -7
  42. package/build/contracts/ILiquidationCallback.json +7 -7
  43. package/build/contracts/IMakerOracle.json +5 -5
  44. package/build/contracts/IOasisDex.json +5 -5
  45. package/build/contracts/IPriceOracle.json +7 -7
  46. package/build/contracts/IRecyclable.json +9 -9
  47. package/build/contracts/ITransferProxy.json +5 -5
  48. package/build/contracts/IUniswapV2Callee.json +5 -5
  49. package/build/contracts/IUniswapV2Factory.json +5 -5
  50. package/build/contracts/IUniswapV2Pair.json +5 -5
  51. package/build/contracts/IUniswapV2Router.json +5 -5
  52. package/build/contracts/IWETH.json +5 -5
  53. package/build/contracts/Interest.json +15 -15
  54. package/build/contracts/LiquidateOrVaporizeImpl.json +31 -82
  55. package/build/contracts/LiquidatorProxyHelper.json +23 -23
  56. package/build/contracts/LiquidatorProxyV1.json +31 -37
  57. package/build/contracts/LiquidatorProxyV1WithAmm.json +32 -149
  58. package/build/contracts/Math.json +1 -1
  59. package/build/contracts/Migrations.json +8 -14
  60. package/build/contracts/Monetary.json +7 -7
  61. package/build/contracts/MultiCall.json +8 -14
  62. package/build/contracts/MultiSig.json +7 -7
  63. package/build/contracts/OmiseToken.json +8 -8
  64. package/build/contracts/OnlyDolomiteMargin.json +11 -11
  65. package/build/contracts/Operation.json +15 -15
  66. package/build/contracts/OperationImpl.json +39 -47
  67. package/build/contracts/Ownable.json +1 -1
  68. package/build/contracts/PartiallyDelayedMultiSig.json +9 -9
  69. package/build/contracts/PayableProxy.json +17 -23
  70. package/build/contracts/Permission.json +11 -11
  71. package/build/contracts/PolynomialInterestSetter.json +13 -13
  72. package/build/contracts/RecyclableTokenProxy.json +25 -25
  73. package/build/contracts/ReentrancyGuard.json +1 -1
  74. package/build/contracts/Require.json +7 -7
  75. package/build/contracts/SafeERC20.json +1 -1
  76. package/build/contracts/SafeETH.json +7 -7
  77. package/build/contracts/SafeMath.json +1 -1
  78. package/build/contracts/SignedOperationProxy.json +21 -104
  79. package/build/contracts/SimpleFeeOwner.json +18 -63
  80. package/build/contracts/State.json +9 -9
  81. package/build/contracts/Storage.json +3222 -3222
  82. package/build/contracts/TestAmmRebalancerProxy.json +32 -58
  83. package/build/contracts/TestAutoTrader.json +22 -22
  84. package/build/contracts/TestBtcUsdChainlinkAggregator.json +11 -11
  85. package/build/contracts/TestCallee.json +19 -19
  86. package/build/contracts/TestChainlinkPriceOracleV1.json +10 -94
  87. package/build/contracts/TestCounter.json +7 -7
  88. package/build/contracts/TestDaiUsdChainlinkAggregator.json +11 -11
  89. package/build/contracts/TestDolomiteMargin.json +21 -21
  90. package/build/contracts/TestDoubleExponentInterestSetter.json +10 -10
  91. package/build/contracts/TestEthUsdChainlinkAggregator.json +11 -11
  92. package/build/contracts/TestExchangeWrapper.json +10 -10
  93. package/build/contracts/TestInterestSetter.json +12 -12
  94. package/build/contracts/TestLib.json +22 -22
  95. package/build/contracts/TestLinkUsdChainlinkAggregator.json +11 -11
  96. package/build/contracts/TestLiquidateCallback.json +15 -15
  97. package/build/contracts/TestLrcEthChainlinkAggregator.json +11 -11
  98. package/build/contracts/TestMakerOracle.json +10 -10
  99. package/build/contracts/TestMaticUsdChainlinkAggregator.json +11 -11
  100. package/build/contracts/TestOasisDex.json +12 -12
  101. package/build/contracts/TestOperationImpl.json +15 -15
  102. package/build/contracts/TestPolynomialInterestSetter.json +10 -10
  103. package/build/contracts/TestPriceAggregator.json +9 -9
  104. package/build/contracts/TestPriceOracle.json +12 -12
  105. package/build/contracts/TestRecyclableToken.json +9 -9
  106. package/build/contracts/TestSimpleCallee.json +15 -15
  107. package/build/contracts/TestToken.json +9 -9
  108. package/build/contracts/TestTrader.json +17 -17
  109. package/build/contracts/TestUniswapAmmRebalancerProxy.json +16 -16
  110. package/build/contracts/TestUsdcUsdChainlinkAggregator.json +11 -11
  111. package/build/contracts/TestWETH.json +9 -9
  112. package/build/contracts/Time.json +9 -9
  113. package/build/contracts/Token.json +9 -9
  114. package/build/contracts/TokenA.json +10 -10
  115. package/build/contracts/TokenB.json +10 -10
  116. package/build/contracts/TokenC.json +10 -10
  117. package/build/contracts/TokenD.json +10 -10
  118. package/build/contracts/TokenE.json +10 -10
  119. package/build/contracts/TokenF.json +10 -10
  120. package/build/contracts/TransferProxy.json +22 -28
  121. package/build/contracts/TypedSignature.json +9 -9
  122. package/build/contracts/Types.json +9 -9
  123. package/build/contracts/UQ112x112.json +7 -7
  124. package/build/contracts/UniswapV2ERC20.json +7 -7
  125. package/build/contracts/UniswapV2Factory.json +12 -12
  126. package/build/contracts/UniswapV2Library.json +20 -20
  127. package/build/contracts/UniswapV2Pair.json +17 -17
  128. package/build/contracts/UniswapV2Router02.json +16 -16
  129. package/build/contracts/WETH9.json +1 -1
  130. package/contracts/protocol/impl/artifacts/OperationImpl.json +80 -0
  131. package/contracts/protocol/impl/artifacts/OperationImpl_metadata.json +193 -0
  132. package/contracts/protocol/lib/Storage.sol +7 -0
  133. package/dist/build/published_contracts/AdminImpl.json +1 -1
  134. package/dist/build/published_contracts/AmmRebalancerProxy.json +1 -1
  135. package/dist/build/published_contracts/ChainlinkPriceOracleV1.json +1 -1
  136. package/dist/build/published_contracts/DolomiteAmmFactory.json +1 -1
  137. package/dist/build/published_contracts/DolomiteAmmRouterProxy.json +1 -1
  138. package/dist/build/published_contracts/DoubleExponentInterestSetter.json +1 -1
  139. package/dist/build/published_contracts/Expiry.json +1 -1
  140. package/dist/build/published_contracts/LiquidatorProxyV1.json +2 -2
  141. package/dist/build/published_contracts/LiquidatorProxyV1WithAmm.json +1 -1
  142. package/dist/build/published_contracts/MultiCall.json +1 -1
  143. package/dist/build/published_contracts/PayableProxy.json +2 -2
  144. package/dist/build/published_contracts/SignedOperationProxy.json +2 -2
  145. package/dist/build/published_contracts/SimpleFeeOwner.json +1 -1
  146. package/dist/build/published_contracts/TransferProxy.json +1 -1
  147. package/dist/src/modules/operate/AccountOperation.d.ts +8 -2
  148. package/dist/src/modules/operate/AccountOperation.js +7 -7
  149. package/dist/src/modules/operate/AccountOperation.js.map +1 -1
  150. package/package.json +2 -2
@@ -737,7 +737,7 @@
737
737
  },
738
738
  "networks": {},
739
739
  "schemaVersion": "3.0.23",
740
- "updatedAt": "2022-01-28T09:46:03.073Z",
740
+ "updatedAt": "2022-01-29T00:31:30.241Z",
741
741
  "devdoc": {
742
742
  "details": "Contract module that helps prevent reentrant calls to a function. * Inheriting from `ReentrancyGuard` will make the {nonReentrant} modifier available, which can be applied to functions to make sure there are no nested (reentrant) calls to them. * Note that because there is a single `nonReentrant` guard, functions marked as `nonReentrant` may not call one another. This can be worked around by making those functions `private`, and then adding `external` `nonReentrant` entry points to them. * TIP: If you would like to learn more about reentrancy and alternative ways to protect against it, check out our blog post https://blog.openzeppelin.com/reentrancy-after-istanbul/[Reentrancy After Istanbul]. * _Since v2.5.0:_ this module is now much more gas efficient, given net gas metering changes introduced in the Istanbul hardfork.",
743
743
  "methods": {}
@@ -1,15 +1,15 @@
1
1
  {
2
2
  "contractName": "Require",
3
3
  "abi": [],
4
- "metadata": "{\"compiler\":{\"version\":\"0.5.16+commit.9c3226ce\"},\"language\":\"Solidity\",\"output\":{\"abi\":[],\"devdoc\":{\"author\":\"dYdX * Stringifies parameters to pretty-print revert messages. Costs more gas than regular require()\",\"methods\":{},\"title\":\"Require\"},\"userdoc\":{\"methods\":{}}},\"settings\":{\"compilationTarget\":{\"/home/cdc218/projects/dolomite-protocol-v2/contracts/protocol/lib/Require.sol\":\"Require\"},\"evmVersion\":\"istanbul\",\"libraries\":{},\"optimizer\":{\"enabled\":true,\"runs\":10000},\"remappings\":[]},\"sources\":{\"/home/cdc218/projects/dolomite-protocol-v2/contracts/protocol/lib/Require.sol\":{\"keccak256\":\"0xe641662503ea29ca959e84674188c3e9deaaf64c5623fb9560a4301c521ca1d3\",\"urls\":[\"bzz-raw://b10a04c7d014b99eb792c8c774e203c846d070b30cf0b715325fc07838ed6a6d\",\"dweb:/ipfs/QmUqZWnbchfEY9jM647yQamHe4GzspfUeRQF9k2nn1Hixd\"]}},\"version\":1}",
5
- "bytecode": "0x60636023600b82828239805160001a607314601657fe5b30600052607381538281f3fe73000000000000000000000000000000000000000030146080604052600080fdfea365627a7a723158202a025beb6c31fa58bcd7d75e7f7f60aa6e8d29405144d6d13caa6e5983f96c086c6578706572696d656e74616cf564736f6c63430005100040",
6
- "deployedBytecode": "0x73000000000000000000000000000000000000000030146080604052600080fdfea365627a7a723158202a025beb6c31fa58bcd7d75e7f7f60aa6e8d29405144d6d13caa6e5983f96c086c6578706572696d656e74616cf564736f6c63430005100040",
4
+ "metadata": "{\"compiler\":{\"version\":\"0.5.16+commit.9c3226ce\"},\"language\":\"Solidity\",\"output\":{\"abi\":[],\"devdoc\":{\"author\":\"dYdX * Stringifies parameters to pretty-print revert messages. Costs more gas than regular require()\",\"methods\":{},\"title\":\"Require\"},\"userdoc\":{\"methods\":{}}},\"settings\":{\"compilationTarget\":{\"/Users/corey/Leavitt-Innovations/dolomite-v2-protocol/contracts/protocol/lib/Require.sol\":\"Require\"},\"evmVersion\":\"istanbul\",\"libraries\":{},\"optimizer\":{\"enabled\":true,\"runs\":10000},\"remappings\":[]},\"sources\":{\"/Users/corey/Leavitt-Innovations/dolomite-v2-protocol/contracts/protocol/lib/Require.sol\":{\"keccak256\":\"0xe641662503ea29ca959e84674188c3e9deaaf64c5623fb9560a4301c521ca1d3\",\"urls\":[\"bzz-raw://b10a04c7d014b99eb792c8c774e203c846d070b30cf0b715325fc07838ed6a6d\",\"dweb:/ipfs/QmUqZWnbchfEY9jM647yQamHe4GzspfUeRQF9k2nn1Hixd\"]}},\"version\":1}",
5
+ "bytecode": "0x60636023600b82828239805160001a607314601657fe5b30600052607381538281f3fe73000000000000000000000000000000000000000030146080604052600080fdfea365627a7a723158200efa8c083775429901012ef3581324a3cb57193fb103ee0167fd530098eae2bd6c6578706572696d656e74616cf564736f6c63430005100040",
6
+ "deployedBytecode": "0x73000000000000000000000000000000000000000030146080604052600080fdfea365627a7a723158200efa8c083775429901012ef3581324a3cb57193fb103ee0167fd530098eae2bd6c6578706572696d656e74616cf564736f6c63430005100040",
7
7
  "sourceMap": "805:9705:76:-;;132:2:-1;166:7;155:9;146:7;137:37;255:7;249:14;246:1;241:23;235:4;232:33;222:2;;269:9;222:2;293:9;290:1;283:20;323:4;314:7;306:22;347:7;338;331:24",
8
8
  "deployedSourceMap": "805:9705:76:-;;;;;;;;",
9
9
  "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 Require\n * @author dYdX\n *\n * Stringifies parameters to pretty-print revert messages. Costs more gas than regular require()\n */\nlibrary Require {\n\n // ============ Constants ============\n\n uint256 constant ASCII_ZERO = 48; // '0'\n uint256 constant ASCII_RELATIVE_ZERO = 87; // 'a' - 10\n uint256 constant ASCII_LOWER_EX = 120; // 'x'\n bytes2 constant COLON = 0x3a20; // ': '\n bytes2 constant COMMA = 0x2c20; // ', '\n bytes2 constant LPAREN = 0x203c; // ' <'\n byte constant RPAREN = 0x3e; // '>'\n uint256 constant FOUR_BIT_MASK = 0xf;\n\n // ============ Library Functions ============\n\n function that(\n bool must,\n bytes32 file,\n bytes32 reason\n )\n internal\n pure\n {\n if (!must) {\n revert(\n string(\n abi.encodePacked(\n stringifyTruncated(file),\n COLON,\n stringifyTruncated(reason)\n )\n )\n );\n }\n }\n\n function that(\n bool must,\n bytes32 file,\n bytes32 reason,\n uint256 payloadA\n )\n internal\n pure\n {\n if (!must) {\n revert(\n string(\n abi.encodePacked(\n stringifyTruncated(file),\n COLON,\n stringifyTruncated(reason),\n LPAREN,\n stringify(payloadA),\n RPAREN\n )\n )\n );\n }\n }\n\n function that(\n bool must,\n bytes32 file,\n bytes32 reason,\n uint256 payloadA,\n uint256 payloadB\n )\n internal\n pure\n {\n if (!must) {\n revert(\n string(\n abi.encodePacked(\n stringifyTruncated(file),\n COLON,\n stringifyTruncated(reason),\n LPAREN,\n stringify(payloadA),\n COMMA,\n stringify(payloadB),\n RPAREN\n )\n )\n );\n }\n }\n\n function that(\n bool must,\n bytes32 file,\n bytes32 reason,\n address payloadA\n )\n internal\n pure\n {\n if (!must) {\n revert(\n string(\n abi.encodePacked(\n stringifyTruncated(file),\n COLON,\n stringifyTruncated(reason),\n LPAREN,\n stringify(payloadA),\n RPAREN\n )\n )\n );\n }\n }\n\n function that(\n bool must,\n bytes32 file,\n bytes32 reason,\n address payloadA,\n uint256 payloadB\n )\n internal\n pure\n {\n if (!must) {\n revert(\n string(\n abi.encodePacked(\n stringifyTruncated(file),\n COLON,\n stringifyTruncated(reason),\n LPAREN,\n stringify(payloadA),\n COMMA,\n stringify(payloadB),\n RPAREN\n )\n )\n );\n }\n }\n\n function that(\n bool must,\n bytes32 file,\n bytes32 reason,\n address payloadA,\n uint256 payloadB,\n uint256 payloadC\n )\n internal\n pure\n {\n if (!must) {\n revert(\n string(\n abi.encodePacked(\n stringifyTruncated(file),\n COLON,\n stringifyTruncated(reason),\n LPAREN,\n stringify(payloadA),\n COMMA,\n stringify(payloadB),\n COMMA,\n stringify(payloadC),\n RPAREN\n )\n )\n );\n }\n }\n\n function that(\n bool must,\n bytes32 file,\n bytes32 reason,\n bytes32 payloadA\n )\n internal\n pure\n {\n if (!must) {\n revert(\n string(\n abi.encodePacked(\n stringifyTruncated(file),\n COLON,\n stringifyTruncated(reason),\n LPAREN,\n stringify(payloadA),\n RPAREN\n )\n )\n );\n }\n }\n\n function that(\n bool must,\n bytes32 file,\n bytes32 reason,\n bytes32 payloadA,\n uint256 payloadB,\n uint256 payloadC\n )\n internal\n pure\n {\n if (!must) {\n revert(\n string(\n abi.encodePacked(\n stringifyTruncated(file),\n COLON,\n stringifyTruncated(reason),\n LPAREN,\n stringify(payloadA),\n COMMA,\n stringify(payloadB),\n COMMA,\n stringify(payloadC),\n RPAREN\n )\n )\n );\n }\n }\n\n // ============ Private Functions ============\n\n function stringifyTruncated(\n bytes32 input\n )\n private\n pure\n returns (bytes memory)\n {\n // put the input bytes into the result\n bytes memory result = abi.encodePacked(input);\n\n // determine the length of the input by finding the location of the last non-zero byte\n for (uint256 i = 32; i > 0; ) {\n // reverse-for-loops with unsigned integer\n /* solium-disable-next-line security/no-modify-for-iter-var */\n i--;\n\n // find the last non-zero byte in order to determine the length\n if (result[i] != 0) {\n uint256 length = i + 1;\n\n /* solium-disable-next-line security/no-inline-assembly */\n assembly {\n mstore(result, length) // r.length = length;\n }\n\n return result;\n }\n }\n\n // all bytes are zero\n return new bytes(0);\n }\n\n function stringify(\n uint256 input\n )\n private\n pure\n returns (bytes memory)\n {\n if (input == 0) {\n return \"0\";\n }\n\n // get the final string length\n uint256 j = input;\n uint256 length;\n while (j != 0) {\n length++;\n j /= 10;\n }\n\n // allocate the string\n bytes memory bstr = new bytes(length);\n\n // populate the string starting with the least-significant character\n j = input;\n for (uint256 i = length; i > 0; ) {\n // reverse-for-loops with unsigned integer\n /* solium-disable-next-line security/no-modify-for-iter-var */\n i--;\n\n // take last decimal digit\n bstr[i] = byte(uint8(ASCII_ZERO + (j % 10)));\n\n // remove the last decimal digit\n j /= 10;\n }\n\n return bstr;\n }\n\n function stringify(\n address input\n )\n private\n pure\n returns (bytes memory)\n {\n uint256 z = uint256(input);\n\n // addresses are \"0x\" followed by 20 bytes of data which take up 2 characters each\n bytes memory result = new bytes(42);\n\n // populate the result with \"0x\"\n result[0] = byte(uint8(ASCII_ZERO));\n result[1] = byte(uint8(ASCII_LOWER_EX));\n\n // for each byte (starting from the lowest byte), populate the result with two characters\n for (uint256 i = 0; i < 20; i++) {\n // each byte takes two characters\n uint256 shift = i * 2;\n\n // populate the least-significant character\n result[41 - shift] = char(z & FOUR_BIT_MASK);\n z = z >> 4;\n\n // populate the most-significant character\n result[40 - shift] = char(z & FOUR_BIT_MASK);\n z = z >> 4;\n }\n\n return result;\n }\n\n function stringify(\n bytes32 input\n )\n private\n pure\n returns (bytes memory)\n {\n uint256 z = uint256(input);\n\n // bytes32 are \"0x\" followed by 32 bytes of data which take up 2 characters each\n bytes memory result = new bytes(66);\n\n // populate the result with \"0x\"\n result[0] = byte(uint8(ASCII_ZERO));\n result[1] = byte(uint8(ASCII_LOWER_EX));\n\n // for each byte (starting from the lowest byte), populate the result with two characters\n for (uint256 i = 0; i < 32; i++) {\n // each byte takes two characters\n uint256 shift = i * 2;\n\n // populate the least-significant character\n result[65 - shift] = char(z & FOUR_BIT_MASK);\n z = z >> 4;\n\n // populate the most-significant character\n result[64 - shift] = char(z & FOUR_BIT_MASK);\n z = z >> 4;\n }\n\n return result;\n }\n\n function char(\n uint256 input\n )\n private\n pure\n returns (byte)\n {\n // return ASCII digit (0-9)\n if (input < 10) {\n return byte(uint8(input + ASCII_ZERO));\n }\n\n // return ASCII letter (a-f)\n return byte(uint8(input + ASCII_RELATIVE_ZERO));\n }\n}\n",
10
- "sourcePath": "/home/cdc218/projects/dolomite-protocol-v2/contracts/protocol/lib/Require.sol",
10
+ "sourcePath": "/Users/corey/Leavitt-Innovations/dolomite-v2-protocol/contracts/protocol/lib/Require.sol",
11
11
  "ast": {
12
- "absolutePath": "/home/cdc218/projects/dolomite-protocol-v2/contracts/protocol/lib/Require.sol",
12
+ "absolutePath": "/Users/corey/Leavitt-Innovations/dolomite-v2-protocol/contracts/protocol/lib/Require.sol",
13
13
  "exportedSymbols": {
14
14
  "Require": [
15
15
  31340
@@ -9837,7 +9837,7 @@
9837
9837
  "src": "603:9908:76"
9838
9838
  },
9839
9839
  "legacyAST": {
9840
- "absolutePath": "/home/cdc218/projects/dolomite-protocol-v2/contracts/protocol/lib/Require.sol",
9840
+ "absolutePath": "/Users/corey/Leavitt-Innovations/dolomite-v2-protocol/contracts/protocol/lib/Require.sol",
9841
9841
  "exportedSymbols": {
9842
9842
  "Require": [
9843
9843
  31340
@@ -19670,7 +19670,7 @@
19670
19670
  },
19671
19671
  "networks": {},
19672
19672
  "schemaVersion": "3.0.23",
19673
- "updatedAt": "2022-01-28T09:46:02.907Z",
19673
+ "updatedAt": "2022-01-29T00:31:30.005Z",
19674
19674
  "devdoc": {
19675
19675
  "author": "dYdX * Stringifies parameters to pretty-print revert messages. Costs more gas than regular require()",
19676
19676
  "methods": {},
@@ -6386,7 +6386,7 @@
6386
6386
  },
6387
6387
  "networks": {},
6388
6388
  "schemaVersion": "3.0.23",
6389
- "updatedAt": "2022-01-28T09:46:03.071Z",
6389
+ "updatedAt": "2022-01-29T00:31:30.238Z",
6390
6390
  "devdoc": {
6391
6391
  "details": "Wrappers around ERC20 operations that throw on failure (when the token contract returns false). Tokens that return no value (and instead revert or throw on failure) are also supported, non-reverting calls are assumed to be successful. To use this library you can add a `using SafeERC20 for ERC20;` statement to your contract, which allows you to call the safe operations as `token.safeTransfer(...)`, etc.",
6392
6392
  "methods": {},
@@ -1,15 +1,15 @@
1
1
  {
2
2
  "contractName": "SafeETH",
3
3
  "abi": [],
4
- "metadata": "{\"compiler\":{\"version\":\"0.5.16+commit.9c3226ce\"},\"language\":\"Solidity\",\"output\":{\"abi\":[],\"devdoc\":{\"methods\":{}},\"userdoc\":{\"methods\":{}}},\"settings\":{\"compilationTarget\":{\"/home/cdc218/projects/dolomite-protocol-v2/contracts/external/uniswap-v2/libraries/SafeETH.sol\":\"SafeETH\"},\"evmVersion\":\"istanbul\",\"libraries\":{},\"optimizer\":{\"enabled\":true,\"runs\":10000},\"remappings\":[]},\"sources\":{\"/home/cdc218/projects/dolomite-protocol-v2/contracts/external/uniswap-v2/libraries/SafeETH.sol\":{\"keccak256\":\"0x892161c481fbcda56cbee1af0c4b507251e1aab8b922fbe78b0d21dcf77599a2\",\"urls\":[\"bzz-raw://2192df2eccdc0869f634e032c2aee543e4cae3569ab852fe115c2a5c04617f26\",\"dweb:/ipfs/QmTwx3GTTX6TkTDd6qN76R3JfV768erFKKnKMnT7Qdefw5\"]}},\"version\":1}",
5
- "bytecode": "0x60556023600b82828239805160001a607314601657fe5b30600052607381538281f3fe73000000000000000000000000000000000000000030146080604052600080fdfea265627a7a72315820b8b87d4e44ec6101702948c93f411b1cf169b4b04c8611820150187ffcc7541664736f6c63430005100032",
6
- "deployedBytecode": "0x73000000000000000000000000000000000000000030146080604052600080fdfea265627a7a72315820b8b87d4e44ec6101702948c93f411b1cf169b4b04c8611820150187ffcc7541664736f6c63430005100032",
4
+ "metadata": "{\"compiler\":{\"version\":\"0.5.16+commit.9c3226ce\"},\"language\":\"Solidity\",\"output\":{\"abi\":[],\"devdoc\":{\"methods\":{}},\"userdoc\":{\"methods\":{}}},\"settings\":{\"compilationTarget\":{\"/Users/corey/Leavitt-Innovations/dolomite-v2-protocol/contracts/external/uniswap-v2/libraries/SafeETH.sol\":\"SafeETH\"},\"evmVersion\":\"istanbul\",\"libraries\":{},\"optimizer\":{\"enabled\":true,\"runs\":10000},\"remappings\":[]},\"sources\":{\"/Users/corey/Leavitt-Innovations/dolomite-v2-protocol/contracts/external/uniswap-v2/libraries/SafeETH.sol\":{\"keccak256\":\"0x892161c481fbcda56cbee1af0c4b507251e1aab8b922fbe78b0d21dcf77599a2\",\"urls\":[\"bzz-raw://2192df2eccdc0869f634e032c2aee543e4cae3569ab852fe115c2a5c04617f26\",\"dweb:/ipfs/QmTwx3GTTX6TkTDd6qN76R3JfV768erFKKnKMnT7Qdefw5\"]}},\"version\":1}",
5
+ "bytecode": "0x60556023600b82828239805160001a607314601657fe5b30600052607381538281f3fe73000000000000000000000000000000000000000030146080604052600080fdfea265627a7a7231582079e0b6e3ef1a11c526b49656c578a74883e079087de78b61503679ceaa12d96c64736f6c63430005100032",
6
+ "deployedBytecode": "0x73000000000000000000000000000000000000000030146080604052600080fdfea265627a7a7231582079e0b6e3ef1a11c526b49656c578a74883e079087de78b61503679ceaa12d96c64736f6c63430005100032",
7
7
  "sourceMap": "621:269:44:-;;132:2:-1;166:7;155:9;146:7;137:37;255:7;249:14;246:1;241:23;235:4;232:33;222:2;;269:9;222:2;293:9;290:1;283:20;323:4;314:7;306:22;347:7;338;331:24",
8
8
  "deployedSourceMap": "621:269:44:-;;;;;;;;",
9
9
  "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.4;\n\n\nlibrary SafeETH {\n\n function safeTransferETH(address to, uint value) internal {\n // solium-disable-next-line security/no-call-value\n (bool success,) = to.call.value(value)(new bytes(0));\n require(success, \"SafeETH: ETH_TRANSFER_FAILED\");\n }\n}\n",
10
- "sourcePath": "/home/cdc218/projects/dolomite-protocol-v2/contracts/external/uniswap-v2/libraries/SafeETH.sol",
10
+ "sourcePath": "/Users/corey/Leavitt-Innovations/dolomite-v2-protocol/contracts/external/uniswap-v2/libraries/SafeETH.sol",
11
11
  "ast": {
12
- "absolutePath": "/home/cdc218/projects/dolomite-protocol-v2/contracts/external/uniswap-v2/libraries/SafeETH.sol",
12
+ "absolutePath": "/Users/corey/Leavitt-Innovations/dolomite-v2-protocol/contracts/external/uniswap-v2/libraries/SafeETH.sol",
13
13
  "exportedSymbols": {
14
14
  "SafeETH": [
15
15
  21644
@@ -423,7 +423,7 @@
423
423
  "src": "595:296:44"
424
424
  },
425
425
  "legacyAST": {
426
- "absolutePath": "/home/cdc218/projects/dolomite-protocol-v2/contracts/external/uniswap-v2/libraries/SafeETH.sol",
426
+ "absolutePath": "/Users/corey/Leavitt-Innovations/dolomite-v2-protocol/contracts/external/uniswap-v2/libraries/SafeETH.sol",
427
427
  "exportedSymbols": {
428
428
  "SafeETH": [
429
429
  21644
@@ -842,7 +842,7 @@
842
842
  },
843
843
  "networks": {},
844
844
  "schemaVersion": "3.0.23",
845
- "updatedAt": "2022-01-28T09:46:02.767Z",
845
+ "updatedAt": "2022-01-29T00:31:29.800Z",
846
846
  "devdoc": {
847
847
  "methods": {}
848
848
  },
@@ -4882,7 +4882,7 @@
4882
4882
  },
4883
4883
  "networks": {},
4884
4884
  "schemaVersion": "3.0.23",
4885
- "updatedAt": "2022-01-28T09:46:03.066Z",
4885
+ "updatedAt": "2022-01-29T00:31:30.231Z",
4886
4886
  "devdoc": {
4887
4887
  "details": "Wrappers over Solidity's arithmetic operations with added overflow checks. * Arithmetic operations in Solidity wrap on overflow. This can easily result in bugs, because programmers usually assume that an overflow raises an error, which is the standard behavior in high level programming languages. `SafeMath` restores this intuition by reverting the transaction when an operation overflows. * Using this library instead of the unchecked operations eliminates an entire class of bugs, so it's recommended to use it always.",
4888
4888
  "methods": {}