@dolomite-exchange/dolomite-margin 0.2.6 → 0.2.7
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 +35 -307
- package/build/contracts/AdvancedMath.json +7 -7
- package/build/contracts/AmmRebalancerProxy.json +577 -621
- package/build/contracts/AmmRebalancerProxyV1.json +78 -32
- 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 +21 -67
- 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/ExcessivelySafeCall.json +35 -35
- package/build/contracts/Exchange.json +15 -15
- package/build/contracts/Expiry.json +36 -36
- package/build/contracts/Getters.json +33 -33
- 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 +32 -83
- package/build/contracts/LiquidatorProxyHelper.json +23 -23
- package/build/contracts/LiquidatorProxyV1.json +30 -36
- package/build/contracts/LiquidatorProxyV1WithAmm.json +49 -105
- 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 +17 -23
- 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/SafeLiquidationCallback.json +17 -17
- package/build/contracts/SafeMath.json +1 -1
- package/build/contracts/SignedOperationProxy.json +21 -104
- package/build/contracts/SimpleFeeOwner.json +18 -63
- package/build/contracts/State.json +9 -9
- package/build/contracts/Storage.json +37 -37
- package/build/contracts/TestAmmRebalancerProxy.json +32 -58
- package/build/contracts/TestAutoTrader.json +22 -22
- package/build/contracts/TestBtcUsdChainlinkAggregator.json +10 -10
- package/build/contracts/TestCallee.json +19 -19
- 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 +22 -22
- package/build/contracts/TestDoubleExponentInterestSetter.json +10 -10
- package/build/contracts/TestEthUsdChainlinkAggregator.json +11 -11
- package/build/contracts/TestExchangeWrapper.json +28 -28
- 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 +719 -719
- package/build/contracts/TestLiquidationCallback.json +13 -13
- 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 +14 -14
- 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 +15 -15
- package/build/contracts/TestToken.json +9 -9
- package/build/contracts/TestTrader.json +17 -17
- package/build/contracts/TestUniswapAmmRebalancerProxy.json +16 -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/external/amm/DolomiteAmmERC20.sol +135 -0
- package/contracts/external/amm/DolomiteAmmFactory.sol +122 -0
- package/contracts/external/amm/DolomiteAmmPair.sol +573 -0
- package/contracts/external/amm/SimpleFeeOwner.sol +107 -0
- package/contracts/external/helpers/LiquidatorProxyHelper.sol +252 -0
- package/contracts/external/helpers/OnlyDolomiteMargin.sol +63 -0
- package/contracts/external/interestsetters/DoubleExponentInterestSetter.sol +212 -0
- package/contracts/external/interestsetters/PolynomialInterestSetter.sol +205 -0
- package/contracts/external/interfaces/IChainlinkAggregator.sol +33 -0
- package/contracts/external/interfaces/IDolomiteAmmERC20.sol +52 -0
- package/contracts/external/interfaces/IDolomiteAmmFactory.sol +42 -0
- package/contracts/external/interfaces/IDolomiteAmmPair.sol +116 -0
- package/contracts/external/interfaces/IExpiry.sol +70 -0
- package/contracts/external/interfaces/IMakerOracle.sol +52 -0
- package/contracts/external/interfaces/IOasisDex.sol +326 -0
- package/contracts/external/interfaces/ITransferProxy.sol +53 -0
- package/contracts/external/interfaces/IUniswapV2Router.sol +134 -0
- package/contracts/external/lib/AdvancedMath.sol +23 -0
- package/contracts/external/lib/DolomiteAmmLibrary.sol +323 -0
- package/contracts/external/lib/TypedSignature.sol +120 -0
- package/contracts/external/lib/UQ112x112.sol +22 -0
- package/contracts/external/multisig/DelayedMultiSig.sol +206 -0
- package/contracts/external/multisig/MultiSig.sol +571 -0
- package/contracts/external/multisig/PartiallyDelayedMultiSig.sol +174 -0
- package/contracts/external/oracles/ChainlinkPriceOracleV1.sol +197 -0
- package/contracts/external/oracles/TestChainlinkPriceOracleV1.sol +98 -0
- package/contracts/external/proxies/AmmRebalancerProxyV1.sol +465 -0
- package/contracts/external/proxies/DolomiteAmmRouterProxy.sol +877 -0
- package/contracts/external/proxies/LiquidatorProxyV1.sol +507 -0
- package/contracts/external/proxies/LiquidatorProxyV1WithAmm.sol +574 -0
- package/contracts/external/proxies/PayableProxy.sol +146 -0
- package/contracts/external/proxies/RecyclableTokenProxy.sol +463 -0
- package/contracts/external/proxies/SignedOperationProxy.sol +553 -0
- package/contracts/external/proxies/TransferProxy.sol +207 -0
- package/contracts/external/traders/Expiry.sol +532 -0
- package/contracts/external/uniswap-v2/UniswapV2ERC20.sol +118 -0
- package/contracts/external/uniswap-v2/UniswapV2Factory.sol +67 -0
- package/contracts/external/uniswap-v2/UniswapV2Pair.sol +283 -0
- package/contracts/external/uniswap-v2/UniswapV2Router02.sol +566 -0
- package/contracts/external/uniswap-v2/interfaces/IUniswapV2Callee.sol +13 -0
- package/contracts/external/uniswap-v2/interfaces/IUniswapV2Factory.sol +18 -0
- package/contracts/external/uniswap-v2/interfaces/IUniswapV2Pair.sol +67 -0
- package/contracts/external/uniswap-v2/interfaces/IWETH.sol +7 -0
- package/contracts/external/uniswap-v2/libraries/SafeETH.sol +29 -0
- package/contracts/external/uniswap-v2/libraries/UniswapV2Library.sol +117 -0
- package/contracts/external/utils/MultiCall.sol +95 -0
- package/contracts/protocol/impl/artifacts/OperationImpl.json +80 -0
- package/contracts/protocol/impl/artifacts/OperationImpl_metadata.json +193 -0
- package/dist/build/published_contracts/AdminImpl.json +2 -2
- package/dist/build/published_contracts/AmmRebalancerProxyV1.json +5 -0
- 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 +1 -1
- package/dist/build/published_contracts/LiquidatorProxyV1WithAmm.json +1 -1
- package/dist/build/published_contracts/MultiCall.json +1 -1
- package/dist/build/published_contracts/PayableProxy.json +2 -2
- package/dist/build/published_contracts/SignedOperationProxy.json +2 -2
- package/dist/build/published_contracts/SimpleFeeOwner.json +1 -1
- package/dist/build/published_contracts/TestUniswapAmmRebalancerProxy.json +140 -0
- package/dist/build/published_contracts/TransferProxy.json +1 -1
- package/dist/src/lib/Contracts.d.ts +3 -1
- package/dist/src/lib/Contracts.js +7 -3
- package/dist/src/lib/Contracts.js.map +1 -1
- package/package.json +2 -1
|
@@ -1874,7 +1874,7 @@
|
|
|
1874
1874
|
},
|
|
1875
1875
|
"networks": {},
|
|
1876
1876
|
"schemaVersion": "3.0.23",
|
|
1877
|
-
"updatedAt": "2022-02-
|
|
1877
|
+
"updatedAt": "2022-02-07T07:18:45.317Z",
|
|
1878
1878
|
"devdoc": {
|
|
1879
1879
|
"details": "Standard math utilities missing in the Solidity language.",
|
|
1880
1880
|
"methods": {}
|
|
@@ -68,15 +68,15 @@
|
|
|
68
68
|
"type": "function"
|
|
69
69
|
}
|
|
70
70
|
],
|
|
71
|
-
"metadata": "{\"compiler\":{\"version\":\"0.5.16+commit.9c3226ce\"},\"language\":\"Solidity\",\"output\":{\"abi\":[{\"inputs\":[],\"payable\":false,\"stateMutability\":\"nonpayable\",\"type\":\"constructor\"},{\"constant\":true,\"inputs\":[],\"name\":\"last_completed_migration\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"payable\":false,\"stateMutability\":\"view\",\"type\":\"function\"},{\"constant\":true,\"inputs\":[],\"name\":\"owner\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"payable\":false,\"stateMutability\":\"view\",\"type\":\"function\"},{\"constant\":false,\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"completed\",\"type\":\"uint256\"}],\"name\":\"setCompleted\",\"outputs\":[],\"payable\":false,\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"constant\":false,\"inputs\":[{\"internalType\":\"address\",\"name\":\"newAddress\",\"type\":\"address\"}],\"name\":\"upgrade\",\"outputs\":[],\"payable\":false,\"stateMutability\":\"nonpayable\",\"type\":\"function\"}],\"devdoc\":{\"methods\":{}},\"userdoc\":{\"methods\":{}}},\"settings\":{\"compilationTarget\":{\"/
|
|
72
|
-
"bytecode": "
|
|
73
|
-
"deployedBytecode": "
|
|
71
|
+
"metadata": "{\"compiler\":{\"version\":\"0.5.16+commit.9c3226ce\"},\"language\":\"Solidity\",\"output\":{\"abi\":[{\"inputs\":[],\"payable\":false,\"stateMutability\":\"nonpayable\",\"type\":\"constructor\"},{\"constant\":true,\"inputs\":[],\"name\":\"last_completed_migration\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"payable\":false,\"stateMutability\":\"view\",\"type\":\"function\"},{\"constant\":true,\"inputs\":[],\"name\":\"owner\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"payable\":false,\"stateMutability\":\"view\",\"type\":\"function\"},{\"constant\":false,\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"completed\",\"type\":\"uint256\"}],\"name\":\"setCompleted\",\"outputs\":[],\"payable\":false,\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"constant\":false,\"inputs\":[{\"internalType\":\"address\",\"name\":\"newAddress\",\"type\":\"address\"}],\"name\":\"upgrade\",\"outputs\":[],\"payable\":false,\"stateMutability\":\"nonpayable\",\"type\":\"function\"}],\"devdoc\":{\"methods\":{}},\"userdoc\":{\"methods\":{}}},\"settings\":{\"compilationTarget\":{\"/Users/corey/Leavitt-Innovations/dolomite-v2-protocol/contracts/Migrations.sol\":\"Migrations\"},\"evmVersion\":\"istanbul\",\"libraries\":{},\"optimizer\":{\"enabled\":true,\"runs\":10000},\"remappings\":[]},\"sources\":{\"/Users/corey/Leavitt-Innovations/dolomite-v2-protocol/contracts/Migrations.sol\":{\"keccak256\":\"0xc1201bbe9e255aa4b53db78217373d146219a9427be45b374e91c3052f29ac3a\",\"urls\":[\"bzz-raw://7f27fdabed1013f495bd07382c4fa286dd4cb068551ece2becd82e93271406de\",\"dweb:/ipfs/QmQH9qUD5LnA8LdxBMBcsEe5jbtjvPDbmfC1NZDMKc6Z7k\"]}},\"version\":1}",
|
|
72
|
+
"bytecode": "0x608060405234801561001057600080fd5b50600080546001600160a01b031916331790556102b4806100326000396000f3fe608060405234801561001057600080fd5b506004361061004c5760003560e01c80630900f01014610051578063445df0ac146100665780638da5cb5b14610084578063fdacd57614610099575b600080fd5b61006461005f3660046101bb565b6100ac565b005b61006e610158565b60405161007b9190610225565b60405180910390f35b61008c61015e565b60405161007b9190610217565b6100646100a73660046101e1565b61017a565b60005473ffffffffffffffffffffffffffffffffffffffff16331415610155576001546040517ffdacd576000000000000000000000000000000000000000000000000000000008152829173ffffffffffffffffffffffffffffffffffffffff83169163fdacd5769161012191600401610225565b600060405180830381600087803b15801561013b57600080fd5b505af115801561014f573d6000803e3d6000fd5b50505050505b50565b60015481565b60005473ffffffffffffffffffffffffffffffffffffffff1681565b60005473ffffffffffffffffffffffffffffffffffffffff1633141561015557600155565b80356101aa81610254565b92915050565b80356101aa81610268565b6000602082840312156101cd57600080fd5b60006101d9848461019f565b949350505050565b6000602082840312156101f357600080fd5b60006101d984846101b0565b61020881610233565b82525050565b61020881610251565b602081016101aa82846101ff565b602081016101aa828461020e565b600073ffffffffffffffffffffffffffffffffffffffff82166101aa565b90565b61025d81610233565b811461015557600080fd5b61025d8161025156fea365627a7a7231582068eb8c30b6722ac1e1db333bf807de356da0da90ad424fed2c586f37a461dde76c6578706572696d656e74616cf564736f6c63430005100040",
|
|
73
|
+
"deployedBytecode": "0x608060405234801561001057600080fd5b506004361061004c5760003560e01c80630900f01014610051578063445df0ac146100665780638da5cb5b14610084578063fdacd57614610099575b600080fd5b61006461005f3660046101bb565b6100ac565b005b61006e610158565b60405161007b9190610225565b60405180910390f35b61008c61015e565b60405161007b9190610217565b6100646100a73660046101e1565b61017a565b60005473ffffffffffffffffffffffffffffffffffffffff16331415610155576001546040517ffdacd576000000000000000000000000000000000000000000000000000000008152829173ffffffffffffffffffffffffffffffffffffffff83169163fdacd5769161012191600401610225565b600060405180830381600087803b15801561013b57600080fd5b505af115801561014f573d6000803e3d6000fd5b50505050505b50565b60015481565b60005473ffffffffffffffffffffffffffffffffffffffff1681565b60005473ffffffffffffffffffffffffffffffffffffffff1633141561015557600155565b80356101aa81610254565b92915050565b80356101aa81610268565b6000602082840312156101cd57600080fd5b60006101d9848461019f565b949350505050565b6000602082840312156101f357600080fd5b60006101d984846101b0565b61020881610233565b82525050565b61020881610251565b602081016101aa82846101ff565b602081016101aa828461020e565b600073ffffffffffffffffffffffffffffffffffffffff82166101aa565b90565b61025d81610233565b811461015557600080fd5b61025d8161025156fea365627a7a7231582068eb8c30b6722ac1e1db333bf807de356da0da90ad424fed2c586f37a461dde76c6578706572696d656e74616cf564736f6c63430005100040",
|
|
74
74
|
"sourceMap": "663:548:0:-;;;856:56;8:9:-1;5:2;;;30:1;27;20:12;5:2;-1:-1;887:5:0;:18;;-1:-1:-1;;;;;;887:18:0;895:10;887:18;;;663:548;;;;;;",
|
|
75
75
|
"deployedSourceMap": "663:548:0:-;;;;8:9:-1;5:2;;;30:1;27;20:12;5:2;663:548:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;1036:173;;;;;;;;;:::i;:::-;;715:39;;;:::i;:::-;;;;;;;;;;;;;;;;689:20;;;:::i;:::-;;;;;;;;918:112;;;;;;;;;:::i;1036:173::-;811:5;;;;797:10;:19;793:51;;;1177:24;;1155:47;;;;;1134:10;;1155:21;;;;;;:47;;;;;;;;;;;;;;;;;;;8:9:-1;5:2;;;30:1;27;20:12;5:2;1155:47:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;1155:47:0;;;;832:1;793:51;1036:173;:::o;715:39::-;;;;:::o;689:20::-;;;;;;:::o;918:112::-;811:5;;;;797:10;:19;793:51;;;987:24;:36;918:112::o;5:130:-1:-;72:20;;97:33;72:20;97:33;;;57:78;;;;;142:130;209:20;;234:33;209:20;234:33;;279:241;;383:2;371:9;362:7;358:23;354:32;351:2;;;399:1;396;389:12;351:2;434:1;451:53;496:7;476:9;451:53;;;441:63;345:175;-1:-1;;;;345:175;527:241;;631:2;619:9;610:7;606:23;602:32;599:2;;;647:1;644;637:12;599:2;682:1;699:53;744:7;724:9;699:53;;775:113;858:24;876:5;858:24;;;853:3;846:37;840:48;;;895:113;978:24;996:5;978:24;;1015:213;1133:2;1118:18;;1147:71;1122:9;1191:6;1147:71;;1235:213;1353:2;1338:18;;1367:71;1342:9;1411:6;1367:71;;1455:91;;1626:42;1615:54;;1517:24;1598:76;1681:72;1743:5;1726:27;1760:117;1829:24;1847:5;1829:24;;;1822:5;1819:35;1809:2;;1868:1;1865;1858:12;1884:117;1953:24;1971:5;1953:24;",
|
|
76
76
|
"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\ncontract Migrations {\n address public owner;\n uint256 public last_completed_migration;\n\n modifier restricted() {\n if (msg.sender == owner) {\n _;\n }\n }\n\n constructor() public {\n owner = msg.sender;\n }\n\n function setCompleted(uint256 completed) public restricted {\n last_completed_migration = completed;\n }\n\n function upgrade(address newAddress) public restricted {\n Migrations upgraded = Migrations(newAddress);\n upgraded.setCompleted(last_completed_migration);\n }\n}\n",
|
|
77
|
-
"sourcePath": "/
|
|
77
|
+
"sourcePath": "/Users/corey/Leavitt-Innovations/dolomite-v2-protocol/contracts/Migrations.sol",
|
|
78
78
|
"ast": {
|
|
79
|
-
"absolutePath": "/
|
|
79
|
+
"absolutePath": "/Users/corey/Leavitt-Innovations/dolomite-v2-protocol/contracts/Migrations.sol",
|
|
80
80
|
"exportedSymbols": {
|
|
81
81
|
"Migrations": [
|
|
82
82
|
58
|
|
@@ -738,7 +738,7 @@
|
|
|
738
738
|
"src": "603:609:0"
|
|
739
739
|
},
|
|
740
740
|
"legacyAST": {
|
|
741
|
-
"absolutePath": "/
|
|
741
|
+
"absolutePath": "/Users/corey/Leavitt-Innovations/dolomite-v2-protocol/contracts/Migrations.sol",
|
|
742
742
|
"exportedSymbols": {
|
|
743
743
|
"Migrations": [
|
|
744
744
|
58
|
|
@@ -1408,17 +1408,11 @@
|
|
|
1408
1408
|
"events": {},
|
|
1409
1409
|
"links": {},
|
|
1410
1410
|
"address": "0xe78A0F7E598Cc8b0Bb87894B0F60dD2a88d6a8Ab",
|
|
1411
|
-
"transactionHash": "
|
|
1412
|
-
},
|
|
1413
|
-
"80001": {
|
|
1414
|
-
"events": {},
|
|
1415
|
-
"links": {},
|
|
1416
|
-
"address": "0xb58AB7B22Bd203B6EfFE4ECb0FA09B8703c2f785",
|
|
1417
|
-
"transactionHash": "0x33ecaa94f18f7e609c7ab4f9d6cf91044b166624e18bbc31d6e0ce337d7cd827"
|
|
1411
|
+
"transactionHash": "0xa615efb1d0285d5198e2487020e3a11903dc7f8d6a0f275aba333013bcc498af"
|
|
1418
1412
|
}
|
|
1419
1413
|
},
|
|
1420
1414
|
"schemaVersion": "3.0.23",
|
|
1421
|
-
"updatedAt": "2022-02-
|
|
1415
|
+
"updatedAt": "2022-02-07T07:18:44.749Z",
|
|
1422
1416
|
"devdoc": {
|
|
1423
1417
|
"methods": {}
|
|
1424
1418
|
},
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
{
|
|
2
2
|
"contractName": "Monetary",
|
|
3
3
|
"abi": [],
|
|
4
|
-
"metadata": "{\"compiler\":{\"version\":\"0.5.16+commit.9c3226ce\"},\"language\":\"Solidity\",\"output\":{\"abi\":[],\"devdoc\":{\"author\":\"dYdX * Library for types involving money\",\"methods\":{},\"title\":\"Monetary\"},\"userdoc\":{\"methods\":{}}},\"settings\":{\"compilationTarget\":{\"/
|
|
5
|
-
"bytecode": "
|
|
6
|
-
"deployedBytecode": "
|
|
4
|
+
"metadata": "{\"compiler\":{\"version\":\"0.5.16+commit.9c3226ce\"},\"language\":\"Solidity\",\"output\":{\"abi\":[],\"devdoc\":{\"author\":\"dYdX * Library for types involving money\",\"methods\":{},\"title\":\"Monetary\"},\"userdoc\":{\"methods\":{}}},\"settings\":{\"compilationTarget\":{\"/Users/corey/Leavitt-Innovations/dolomite-v2-protocol/contracts/protocol/lib/Monetary.sol\":\"Monetary\"},\"evmVersion\":\"istanbul\",\"libraries\":{},\"optimizer\":{\"enabled\":true,\"runs\":10000},\"remappings\":[]},\"sources\":{\"/Users/corey/Leavitt-Innovations/dolomite-v2-protocol/contracts/protocol/lib/Monetary.sol\":{\"keccak256\":\"0x5257274f2d4d3605f3e97ec45fb902111fe9a22506f0b4cf308ea933bc81bfe2\",\"urls\":[\"bzz-raw://85b8023b78805063a2ec8d376f1f5983994eabd96efd8ceadb0224dbb71c5678\",\"dweb:/ipfs/QmaDhzCzRqsuHuJfhToEC4pATQHwhh7yWWsjwfuRzFT1kG\"]}},\"version\":1}",
|
|
5
|
+
"bytecode": "0x60636023600b82828239805160001a607314601657fe5b30600052607381538281f3fe73000000000000000000000000000000000000000030146080604052600080fdfea365627a7a7231582007f9da89c6be25fbad16b91556983afeee33890866ecda79da0d791c6038aa526c6578706572696d656e74616cf564736f6c63430005100040",
|
|
6
|
+
"deployedBytecode": "0x73000000000000000000000000000000000000000030146080604052600080fdfea365627a7a7231582007f9da89c6be25fbad16b91556983afeee33890866ecda79da0d791c6038aa526c6578706572696d656e74616cf564736f6c63430005100040",
|
|
7
7
|
"sourceMap": "746:322: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": "746:322: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 Monetary\n * @author dYdX\n *\n * Library for types involving money\n */\nlibrary Monetary {\n\n /*\n * The price of a base-unit of an asset. Has `36 - token.decimals` decimals\n */\n struct Price {\n uint256 value;\n }\n\n /*\n * Total value of an some amount of an asset. Equal to (price * amount). Has 36 decimals.\n */\n struct Value {\n uint256 value;\n }\n}\n",
|
|
10
|
-
"sourcePath": "/
|
|
10
|
+
"sourcePath": "/Users/corey/Leavitt-Innovations/dolomite-v2-protocol/contracts/protocol/lib/Monetary.sol",
|
|
11
11
|
"ast": {
|
|
12
|
-
"absolutePath": "/
|
|
12
|
+
"absolutePath": "/Users/corey/Leavitt-Innovations/dolomite-v2-protocol/contracts/protocol/lib/Monetary.sol",
|
|
13
13
|
"exportedSymbols": {
|
|
14
14
|
"Monetary": [
|
|
15
15
|
30757
|
|
@@ -133,7 +133,7 @@
|
|
|
133
133
|
"src": "603:466:76"
|
|
134
134
|
},
|
|
135
135
|
"legacyAST": {
|
|
136
|
-
"absolutePath": "/
|
|
136
|
+
"absolutePath": "/Users/corey/Leavitt-Innovations/dolomite-v2-protocol/contracts/protocol/lib/Monetary.sol",
|
|
137
137
|
"exportedSymbols": {
|
|
138
138
|
"Monetary": [
|
|
139
139
|
30757
|
|
@@ -262,7 +262,7 @@
|
|
|
262
262
|
},
|
|
263
263
|
"networks": {},
|
|
264
264
|
"schemaVersion": "3.0.23",
|
|
265
|
-
"updatedAt": "2022-02-
|
|
265
|
+
"updatedAt": "2022-02-07T07:18:45.318Z",
|
|
266
266
|
"devdoc": {
|
|
267
267
|
"author": "dYdX * Library for types involving money",
|
|
268
268
|
"methods": {},
|
|
@@ -157,15 +157,15 @@
|
|
|
157
157
|
"type": "function"
|
|
158
158
|
}
|
|
159
159
|
],
|
|
160
|
-
"metadata": "{\"compiler\":{\"version\":\"0.5.16+commit.9c3226ce\"},\"language\":\"Solidity\",\"output\":{\"abi\":[{\"constant\":false,\"inputs\":[{\"components\":[{\"internalType\":\"address\",\"name\":\"target\",\"type\":\"address\"},{\"internalType\":\"bytes\",\"name\":\"callData\",\"type\":\"bytes\"}],\"internalType\":\"struct MultiCall.Call[]\",\"name\":\"calls\",\"type\":\"tuple[]\"}],\"name\":\"aggregate\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"blockNumber\",\"type\":\"uint256\"},{\"internalType\":\"bytes[]\",\"name\":\"returnData\",\"type\":\"bytes[]\"}],\"payable\":false,\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"constant\":true,\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"blockNumber\",\"type\":\"uint256\"}],\"name\":\"getBlockHash\",\"outputs\":[{\"internalType\":\"bytes32\",\"name\":\"blockHash\",\"type\":\"bytes32\"}],\"payable\":false,\"stateMutability\":\"view\",\"type\":\"function\"},{\"constant\":true,\"inputs\":[],\"name\":\"getCurrentBlockCoinbase\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"coinbase\",\"type\":\"address\"}],\"payable\":false,\"stateMutability\":\"view\",\"type\":\"function\"},{\"constant\":true,\"inputs\":[],\"name\":\"getCurrentBlockDifficulty\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"difficulty\",\"type\":\"uint256\"}],\"payable\":false,\"stateMutability\":\"view\",\"type\":\"function\"},{\"constant\":true,\"inputs\":[],\"name\":\"getCurrentBlockGasLimit\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"gaslimit\",\"type\":\"uint256\"}],\"payable\":false,\"stateMutability\":\"view\",\"type\":\"function\"},{\"constant\":true,\"inputs\":[],\"name\":\"getCurrentBlockTimestamp\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"timestamp\",\"type\":\"uint256\"}],\"payable\":false,\"stateMutability\":\"view\",\"type\":\"function\"},{\"constant\":true,\"inputs\":[{\"internalType\":\"address\",\"name\":\"addr\",\"type\":\"address\"}],\"name\":\"getEthBalance\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"balance\",\"type\":\"uint256\"}],\"payable\":false,\"stateMutability\":\"view\",\"type\":\"function\"},{\"constant\":true,\"inputs\":[],\"name\":\"getLastBlockHash\",\"outputs\":[{\"internalType\":\"bytes32\",\"name\":\"blockHash\",\"type\":\"bytes32\"}],\"payable\":false,\"stateMutability\":\"view\",\"type\":\"function\"}],\"devdoc\":{\"author\":\"Michael Elliot <mike@makerdao.com>Joshua Levine <joshua@makerdao.com>Nick Johnson <arachnid@notdot.net>Corey Caplan <corey@dolomite.io>\",\"methods\":{},\"title\":\"MultiCall - Aggregate results from multiple read-only function calls\"},\"userdoc\":{\"methods\":{}}},\"settings\":{\"compilationTarget\":{\"/
|
|
161
|
-
"bytecode": "
|
|
162
|
-
"deployedBytecode": "
|
|
160
|
+
"metadata": "{\"compiler\":{\"version\":\"0.5.16+commit.9c3226ce\"},\"language\":\"Solidity\",\"output\":{\"abi\":[{\"constant\":false,\"inputs\":[{\"components\":[{\"internalType\":\"address\",\"name\":\"target\",\"type\":\"address\"},{\"internalType\":\"bytes\",\"name\":\"callData\",\"type\":\"bytes\"}],\"internalType\":\"struct MultiCall.Call[]\",\"name\":\"calls\",\"type\":\"tuple[]\"}],\"name\":\"aggregate\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"blockNumber\",\"type\":\"uint256\"},{\"internalType\":\"bytes[]\",\"name\":\"returnData\",\"type\":\"bytes[]\"}],\"payable\":false,\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"constant\":true,\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"blockNumber\",\"type\":\"uint256\"}],\"name\":\"getBlockHash\",\"outputs\":[{\"internalType\":\"bytes32\",\"name\":\"blockHash\",\"type\":\"bytes32\"}],\"payable\":false,\"stateMutability\":\"view\",\"type\":\"function\"},{\"constant\":true,\"inputs\":[],\"name\":\"getCurrentBlockCoinbase\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"coinbase\",\"type\":\"address\"}],\"payable\":false,\"stateMutability\":\"view\",\"type\":\"function\"},{\"constant\":true,\"inputs\":[],\"name\":\"getCurrentBlockDifficulty\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"difficulty\",\"type\":\"uint256\"}],\"payable\":false,\"stateMutability\":\"view\",\"type\":\"function\"},{\"constant\":true,\"inputs\":[],\"name\":\"getCurrentBlockGasLimit\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"gaslimit\",\"type\":\"uint256\"}],\"payable\":false,\"stateMutability\":\"view\",\"type\":\"function\"},{\"constant\":true,\"inputs\":[],\"name\":\"getCurrentBlockTimestamp\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"timestamp\",\"type\":\"uint256\"}],\"payable\":false,\"stateMutability\":\"view\",\"type\":\"function\"},{\"constant\":true,\"inputs\":[{\"internalType\":\"address\",\"name\":\"addr\",\"type\":\"address\"}],\"name\":\"getEthBalance\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"balance\",\"type\":\"uint256\"}],\"payable\":false,\"stateMutability\":\"view\",\"type\":\"function\"},{\"constant\":true,\"inputs\":[],\"name\":\"getLastBlockHash\",\"outputs\":[{\"internalType\":\"bytes32\",\"name\":\"blockHash\",\"type\":\"bytes32\"}],\"payable\":false,\"stateMutability\":\"view\",\"type\":\"function\"}],\"devdoc\":{\"author\":\"Michael Elliot <mike@makerdao.com>Joshua Levine <joshua@makerdao.com>Nick Johnson <arachnid@notdot.net>Corey Caplan <corey@dolomite.io>\",\"methods\":{},\"title\":\"MultiCall - Aggregate results from multiple read-only function calls\"},\"userdoc\":{\"methods\":{}}},\"settings\":{\"compilationTarget\":{\"/Users/corey/Leavitt-Innovations/dolomite-v2-protocol/contracts/external/utils/MultiCall.sol\":\"MultiCall\"},\"evmVersion\":\"istanbul\",\"libraries\":{},\"optimizer\":{\"enabled\":true,\"runs\":10000},\"remappings\":[]},\"sources\":{\"/Users/corey/Leavitt-Innovations/dolomite-v2-protocol/contracts/external/utils/MultiCall.sol\":{\"keccak256\":\"0x6debf83be9e61b4621dd7a08361ebe2c63f49a2f27d66bd20d3eb32c9f0495a3\",\"urls\":[\"bzz-raw://6ff1b16a5bc81c8805081a59833bd47269b99350544df703369d8ab0071e2c65\",\"dweb:/ipfs/QmYGS5y7V1HXV7zL4px5o5jbpRPWMHX61Qq7KnbgffMttw\"]}},\"version\":1}",
|
|
161
|
+
"bytecode": "0x608060405234801561001057600080fd5b50610bed806100206000396000f3fe608060405234801561001057600080fd5b50600436106100885760003560e01c806372425d9d1161005b57806372425d9d146100e757806386d516e8146100ef578063a8b0574e146100f7578063ee82ac5e1461010c57610088565b80630f28c97d1461008d578063252dba42146100ab57806327e86d6e146100cc5780634d2301cc146100d4575b600080fd5b61009561011f565b6040516100a29190610a1a565b60405180910390f35b6100be6100b9366004610757565b610123565b6040516100a2929190610a39565b61009561031e565b6100956100e2366004610731565b610345565b61009561035f565b610095610363565b6100ff610367565b6040516100a29190610a0c565b61009561011a3660046107c1565b61036b565b4290565b60006060439150825160405190808252806020026020018201604052801561015f57816020015b606081526020019060019003908161014a5790505b50905060005b8351811015610318576000606085838151811061017e57fe5b60200260200101516000015173ffffffffffffffffffffffffffffffffffffffff168684815181106101ac57fe5b6020026020010151602001516040516101c591906109b0565b6000604051808303816000865af19150503d8060008114610202576040519150601f19603f3d011682016040523d82523d6000602084013e610207565b606091505b5091509150816102f6576044815110156102b757606061023d87858151811061022c57fe5b60200260200101516000015161036f565b90508060405160200161025091906109ea565b604080517fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0818403018152908290527f08c379a00000000000000000000000000000000000000000000000000000000082526102ae91600401610a28565b60405180910390fd5b60048101905060606102ce87858151811061022c57fe5b905080828060200190516102e5919081019061078c565b6040516020016102509291906109bc565b8084848151811061030357fe5b60209081029190910101525050600101610165565b50915091565b7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff43014090565b73ffffffffffffffffffffffffffffffffffffffff163190565b4490565b4590565b4190565b4090565b604080518082018252601081527f303132333435363738396162636465660000000000000000000000000000000060208201528151602a808252606082810190945273ffffffffffffffffffffffffffffffffffffffff8516929184916020820181803883390190505090507f30000000000000000000000000000000000000000000000000000000000000008160008151811061040957fe5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a9053507f78000000000000000000000000000000000000000000000000000000000000008160018151811061046657fe5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a90535060005b60148110156105ac578260048583600c01602081106104b357fe5b1a60f81b7effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916901c60f81c60ff16815181106104eb57fe5b602001015160f81c60f81b82826002026002018151811061050857fe5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350828482600c016020811061054757fe5b825191901a600f1690811061055857fe5b602001015160f81c60f81b82826002026003018151811061057557fe5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350600101610498565b50949350505050565b80356105c081610b8a565b92915050565b600082601f8301126105d757600080fd5b81356105ea6105e582610a80565b610a59565b81815260209384019390925082018360005b83811015610628578135860161061288826106c7565b84525060209283019291909101906001016105fc565b5050505092915050565b600082601f83011261064357600080fd5b81356106516105e582610aa1565b9150808252602083016020830185838301111561066d57600080fd5b610678838284610b26565b50505092915050565b600082601f83011261069257600080fd5b81516106a06105e582610aa1565b915080825260208301602083018583830111156106bc57600080fd5b610678838284610b32565b6000604082840312156106d957600080fd5b6106e36040610a59565b905060006106f184846105b5565b825250602082013567ffffffffffffffff81111561070e57600080fd5b61071a84828501610632565b60208301525092915050565b80356105c081610ba1565b60006020828403121561074357600080fd5b600061074f84846105b5565b949350505050565b60006020828403121561076957600080fd5b813567ffffffffffffffff81111561078057600080fd5b61074f848285016105c6565b60006020828403121561079e57600080fd5b815167ffffffffffffffff8111156107b557600080fd5b61074f84828501610681565b6000602082840312156107d357600080fd5b600061074f8484610726565b60006107eb8383610878565b9392505050565b6107fb81610aff565b82525050565b600061080c82610aed565b6108168185610af1565b93508360208202850161082885610ae7565b8060005b85811015610862578484038952815161084585826107df565b945061085083610ae7565b60209a909a019992505060010161082c565b5091979650505050505050565b6107fb81610b0a565b600061088382610aed565b61088d8185610af1565b935061089d818560208601610b32565b6108a681610b62565b9093019392505050565b60006108bb82610aed565b6108c58185610afa565b93506108d5818560208601610b32565b9290920192915050565b60006108ec602183610afa565b7f4d756c746963616c6c3a3a6167677265676174653a207265766572742061742081527f3c00000000000000000000000000000000000000000000000000000000000000602082015260210192915050565b600061094b600f83610afa565b7f3e207769746820726561736f6e3a2000000000000000000000000000000000008152600f0192915050565b6000610984600183610afa565b7f3e00000000000000000000000000000000000000000000000000000000000000815260010192915050565b60006107eb82846108b0565b60006109c7826108df565b91506109d382856108b0565b91506109de8261093e565b915061074f82846108b0565b60006109f5826108df565b9150610a0182846108b0565b91506107eb82610977565b602081016105c082846107f2565b602081016105c0828461086f565b602080825281016107eb8184610878565b60408101610a47828561086f565b818103602083015261074f8184610801565b60405181810167ffffffffffffffff81118282101715610a7857600080fd5b604052919050565b600067ffffffffffffffff821115610a9757600080fd5b5060209081020190565b600067ffffffffffffffff821115610ab857600080fd5b506020601f919091017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0160190565b60200190565b5190565b90815260200190565b919050565b60006105c082610b0d565b90565b73ffffffffffffffffffffffffffffffffffffffff1690565b82818337506000910152565b60005b83811015610b4d578181015183820152602001610b35565b83811115610b5c576000848401525b50505050565b601f017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe01690565b610b9381610aff565b8114610b9e57600080fd5b50565b610b9381610b0a56fea365627a7a723158201202aa70bc9b154000cf1c472f56f4c39aacdbb37fe24dd4dac58800b4c080c26c6578706572696d656e74616cf564736f6c63430005100040",
|
|
162
|
+
"deployedBytecode": "0x608060405234801561001057600080fd5b50600436106100885760003560e01c806372425d9d1161005b57806372425d9d146100e757806386d516e8146100ef578063a8b0574e146100f7578063ee82ac5e1461010c57610088565b80630f28c97d1461008d578063252dba42146100ab57806327e86d6e146100cc5780634d2301cc146100d4575b600080fd5b61009561011f565b6040516100a29190610a1a565b60405180910390f35b6100be6100b9366004610757565b610123565b6040516100a2929190610a39565b61009561031e565b6100956100e2366004610731565b610345565b61009561035f565b610095610363565b6100ff610367565b6040516100a29190610a0c565b61009561011a3660046107c1565b61036b565b4290565b60006060439150825160405190808252806020026020018201604052801561015f57816020015b606081526020019060019003908161014a5790505b50905060005b8351811015610318576000606085838151811061017e57fe5b60200260200101516000015173ffffffffffffffffffffffffffffffffffffffff168684815181106101ac57fe5b6020026020010151602001516040516101c591906109b0565b6000604051808303816000865af19150503d8060008114610202576040519150601f19603f3d011682016040523d82523d6000602084013e610207565b606091505b5091509150816102f6576044815110156102b757606061023d87858151811061022c57fe5b60200260200101516000015161036f565b90508060405160200161025091906109ea565b604080517fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0818403018152908290527f08c379a00000000000000000000000000000000000000000000000000000000082526102ae91600401610a28565b60405180910390fd5b60048101905060606102ce87858151811061022c57fe5b905080828060200190516102e5919081019061078c565b6040516020016102509291906109bc565b8084848151811061030357fe5b60209081029190910101525050600101610165565b50915091565b7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff43014090565b73ffffffffffffffffffffffffffffffffffffffff163190565b4490565b4590565b4190565b4090565b604080518082018252601081527f303132333435363738396162636465660000000000000000000000000000000060208201528151602a808252606082810190945273ffffffffffffffffffffffffffffffffffffffff8516929184916020820181803883390190505090507f30000000000000000000000000000000000000000000000000000000000000008160008151811061040957fe5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a9053507f78000000000000000000000000000000000000000000000000000000000000008160018151811061046657fe5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a90535060005b60148110156105ac578260048583600c01602081106104b357fe5b1a60f81b7effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916901c60f81c60ff16815181106104eb57fe5b602001015160f81c60f81b82826002026002018151811061050857fe5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350828482600c016020811061054757fe5b825191901a600f1690811061055857fe5b602001015160f81c60f81b82826002026003018151811061057557fe5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350600101610498565b50949350505050565b80356105c081610b8a565b92915050565b600082601f8301126105d757600080fd5b81356105ea6105e582610a80565b610a59565b81815260209384019390925082018360005b83811015610628578135860161061288826106c7565b84525060209283019291909101906001016105fc565b5050505092915050565b600082601f83011261064357600080fd5b81356106516105e582610aa1565b9150808252602083016020830185838301111561066d57600080fd5b610678838284610b26565b50505092915050565b600082601f83011261069257600080fd5b81516106a06105e582610aa1565b915080825260208301602083018583830111156106bc57600080fd5b610678838284610b32565b6000604082840312156106d957600080fd5b6106e36040610a59565b905060006106f184846105b5565b825250602082013567ffffffffffffffff81111561070e57600080fd5b61071a84828501610632565b60208301525092915050565b80356105c081610ba1565b60006020828403121561074357600080fd5b600061074f84846105b5565b949350505050565b60006020828403121561076957600080fd5b813567ffffffffffffffff81111561078057600080fd5b61074f848285016105c6565b60006020828403121561079e57600080fd5b815167ffffffffffffffff8111156107b557600080fd5b61074f84828501610681565b6000602082840312156107d357600080fd5b600061074f8484610726565b60006107eb8383610878565b9392505050565b6107fb81610aff565b82525050565b600061080c82610aed565b6108168185610af1565b93508360208202850161082885610ae7565b8060005b85811015610862578484038952815161084585826107df565b945061085083610ae7565b60209a909a019992505060010161082c565b5091979650505050505050565b6107fb81610b0a565b600061088382610aed565b61088d8185610af1565b935061089d818560208601610b32565b6108a681610b62565b9093019392505050565b60006108bb82610aed565b6108c58185610afa565b93506108d5818560208601610b32565b9290920192915050565b60006108ec602183610afa565b7f4d756c746963616c6c3a3a6167677265676174653a207265766572742061742081527f3c00000000000000000000000000000000000000000000000000000000000000602082015260210192915050565b600061094b600f83610afa565b7f3e207769746820726561736f6e3a2000000000000000000000000000000000008152600f0192915050565b6000610984600183610afa565b7f3e00000000000000000000000000000000000000000000000000000000000000815260010192915050565b60006107eb82846108b0565b60006109c7826108df565b91506109d382856108b0565b91506109de8261093e565b915061074f82846108b0565b60006109f5826108df565b9150610a0182846108b0565b91506107eb82610977565b602081016105c082846107f2565b602081016105c0828461086f565b602080825281016107eb8184610878565b60408101610a47828561086f565b818103602083015261074f8184610801565b60405181810167ffffffffffffffff81118282101715610a7857600080fd5b604052919050565b600067ffffffffffffffff821115610a9757600080fd5b5060209081020190565b600067ffffffffffffffff821115610ab857600080fd5b506020601f919091017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0160190565b60200190565b5190565b90815260200190565b919050565b60006105c082610b0d565b90565b73ffffffffffffffffffffffffffffffffffffffff1690565b82818337506000910152565b60005b83811015610b4d578181015183820152602001610b35565b83811115610b5c576000848401525b50505050565b601f017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe01690565b610b9381610aff565b8114610b9e57600080fd5b50565b610b9381610b0a56fea365627a7a723158201202aa70bc9b154000cf1c472f56f4c39aacdbb37fe24dd4dac58800b4c080c26c6578706572696d656e74616cf564736f6c63430005100040",
|
|
163
163
|
"sourceMap": "365:2974:46:-;;;;8:9:-1;5:2;;;30:1;27;20:12;5:2;365:2974:46;;;;;;;",
|
|
164
164
|
"deployedSourceMap": "365:2974:46:-;;;;8:9:-1;5:2;;;30:1;27;20:12;5:2;365:2974:46;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2335:120;;;:::i;:::-;;;;;;;;;;;;;;;;464:1451;;;;;;;;;:::i;:::-;;;;;;;;;2205:124;;;:::i;1945:114::-;;;;;;;;;:::i;2461:124::-;;;:::i;2591:116::-;;;:::i;2713:::-;;;:::i;:::-;;;;;;;;2065:134;;;;;;;;;:::i;2335:120::-;2433:15;;2335:120::o;464:1451::-;520:19;541:25;592:12;578:26;;639:5;:12;627:25;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;614:38:46;-1:-1:-1;667:9:46;662:1247;686:5;:12;682:1;:16;662:1247;;;788:12;802:19;825:5;831:1;825:8;;;;;;;;;;;;;;:15;;;:20;;846:5;852:1;846:8;;;;;;;;;;;;;;:17;;;825:39;;;;;;;;;;;;;;;;;;;;;;;14:1:-1;21;16:31;;;;75:4;69:11;64:16;;144:4;140:9;133:4;115:16;111:27;107:43;104:1;100:51;94:4;87:65;169:16;166:1;159:27;225:16;222:1;215:4;212:1;208:12;193:49;7:242;;16:31;36:4;31:9;;7:242;;787:77:46;;;;883:7;878:985;;930:2;914:6;:13;:18;910:939;;;956:26;985:33;1002:5;1008:1;1002:8;;;;;;;;;;;;;;:15;;;985:16;:33::i;:::-;956:62;;1108:12;1054:72;;;;;;;;;;;;;22:32:-1;26:21;;;22:32;6:49;;1054:72:46;;;;1040:88;;;;;;;;;;;;;;;;;910:939;1308:4;1300:6;1296:17;1286:27;;1356:26;1385:33;1402:5;1408:1;1402:8;;;;;;;1385:33;1356:62;;1627:12;1735:6;1724:28;;;;;;;;;;;;;;1508:274;;;;;;;;;;910:939;1892:6;1876:10;1887:1;1876:13;;;;;;;;;;;;;;;;;:22;-1:-1:-1;;700:3:46;;662:1247;;;;464:1451;;;:::o;2205:124::-;2305:16;:12;:16;2295:27;;2205:124::o;1945:114::-;2040:12;;;;1945:114::o;2461:124::-;2562:16;;2461:124::o;2591:116::-;2686:14;;2591:116::o;2713:::-;2808:14;;2713:116::o;2065:134::-;2170:22;;2065:134::o;2835:502::-;2979:37;;;;;;;;;;;;;;;;3049:13;;3059:2;3049:13;;;2901;3049;;;;;;2951:17;;;;2979:37;2901:13;;3049;;;21:6:-1;;104:10;3049:13:46;87:34:-1;135:17;;-1:-1;3049:13:46;3026:36;;3072:16;:7;3080:1;3072:10;;;;;;;;;;;:16;;;;;;;;;;;3098;:7;3106:1;3098:10;;;;;;;;;;;:16;;;;;;;;;;-1:-1:-1;3129:6:46;3124:175;3145:2;3141:1;:6;3124:175;;;3189:3;3217:1;3199:6;3206:1;3210:2;3206:6;3199:14;;;;;;;;;;:19;;;;;3193:26;;3189:31;;;;;;;;;;;;;;;;;;3168:7;3180:1;3184;3180:5;3176:1;:9;3168:18;;;;;;;;;;;:52;;;;;;;;;;;3255:3;3265:6;3272:1;3276:2;3272:6;3265:14;;;;;;;3255:33;;3265:14;;;3282:4;3259:28;;3255:33;;;;;;;;;;;;;;3234:7;3246:1;3250;3246:5;3242:1;:9;3234:18;;;;;;;;;;;:54;;;;;;;;;;-1:-1:-1;3149:3:46;;3124:175;;;-1:-1:-1;3322:7:46;2835:502;-1:-1:-1;;;;2835:502:46:o;5:130:-1:-;72:20;;97:33;72:20;97:33;;;57:78;;;;;174:735;;310:3;303:4;295:6;291:17;287:27;277:2;;328:1;325;318:12;277:2;365:6;352:20;387:99;402:83;478:6;402:83;;;387:99;;;514:21;;;558:4;546:17;;;;378:108;;-1:-1;571:14;;546:17;666:1;651:252;676:6;673:1;670:13;651:252;;;759:3;746:17;738:6;734:30;783:56;835:3;823:10;783:56;;;771:69;;-1:-1;863:4;854:14;;;;882;;;;;698:1;691:9;651:252;;;655:14;270:639;;;;;;;;918:432;;1015:3;1008:4;1000:6;996:17;992:27;982:2;;1033:1;1030;1023:12;982:2;1070:6;1057:20;1092:60;1107:44;1144:6;1107:44;;1092:60;1083:69;;1172:6;1165:5;1158:21;1208:4;1200:6;1196:17;1241:4;1234:5;1230:16;1276:3;1267:6;1262:3;1258:16;1255:25;1252:2;;;1293:1;1290;1283:12;1252:2;1303:41;1337:6;1332:3;1327;1303:41;;;975:375;;;;;;;;1359:436;;1468:3;1461:4;1453:6;1449:17;1445:27;1435:2;;1486:1;1483;1476:12;1435:2;1516:6;1510:13;1538:61;1553:45;1591:6;1553:45;;1538:61;1529:70;;1619:6;1612:5;1605:21;1655:4;1647:6;1643:17;1688:4;1681:5;1677:16;1723:3;1714:6;1709:3;1705:16;1702:25;1699:2;;;1740:1;1737;1730:12;1699:2;1750:39;1782:6;1777:3;1772;1750:39;;1831:558;;1939:4;1927:9;1922:3;1918:19;1914:30;1911:2;;;1957:1;1954;1947:12;1911:2;1975:20;1990:4;1975:20;;;1966:29;-1:-1;2047:1;2079:49;2124:3;2104:9;2079:49;;;2054:75;;-1:-1;2222:2;2207:18;;2194:32;2246:18;2235:30;;2232:2;;;2278:1;2275;2268:12;2232:2;2313:54;2363:3;2354:6;2343:9;2339:22;2313:54;;;2306:4;2299:5;2295:16;2288:80;2150:229;1905:484;;;;;2396:130;2463:20;;2488:33;2463:20;2488:33;;2533:241;;2637:2;2625:9;2616:7;2612:23;2608:32;2605:2;;;2653:1;2650;2643:12;2605:2;2688:1;2705:53;2750:7;2730:9;2705:53;;;2695:63;2599:175;-1:-1;;;;2599:175;2781:415;;2929:2;2917:9;2908:7;2904:23;2900:32;2897:2;;;2945:1;2942;2935:12;2897:2;2980:31;;3031:18;3020:30;;3017:2;;;3063:1;3060;3053:12;3017:2;3083:97;3172:7;3163:6;3152:9;3148:22;3083:97;;3203:354;;3324:2;3312:9;3303:7;3299:23;3295:32;3292:2;;;3340:1;3337;3330:12;3292:2;3375:24;;3419:18;3408:30;;3405:2;;;3451:1;3448;3441:12;3405:2;3471:70;3533:7;3524:6;3513:9;3509:22;3471:70;;3564:241;;3668:2;3656:9;3647:7;3643:23;3639:32;3636:2;;;3684:1;3681;3674:12;3636:2;3719:1;3736:53;3781:7;3761:9;3736:53;;3813:177;;3924:60;3980:3;3972:6;3924:60;;;3910:74;3903:87;-1:-1;;;3903:87;3998:113;4081:24;4099:5;4081:24;;;4076:3;4069:37;4063:48;;;4145:888;;4300:59;4353:5;4300:59;;;4372:91;4456:6;4451:3;4372:91;;;4365:98;;4486:3;4528:4;4520:6;4516:17;4511:3;4507:27;4555:61;4610:5;4555:61;;;4636:7;4664:1;4649:345;4674:6;4671:1;4668:13;4649:345;;;4736:9;4730:4;4726:20;4721:3;4714:33;4781:6;4775:13;4803:74;4872:4;4857:13;4803:74;;;4795:82;;4894:65;4952:6;4894:65;;;4982:4;4973:14;;;;;4884:75;-1:-1;;4696:1;4689:9;4649:345;;;-1:-1;5007:4;;4279:754;-1:-1;;;;;;;4279:754;5041:113;5124:24;5142:5;5124:24;;5161:315;;5257:34;5285:5;5257:34;;;5303:60;5356:6;5351:3;5303:60;;;5296:67;;5368:52;5413:6;5408:3;5401:4;5394:5;5390:16;5368:52;;;5441:29;5463:6;5441:29;;;5432:39;;;;5237:239;-1:-1;;;5237:239;5483:348;;5607:34;5635:5;5607:34;;;5653:88;5734:6;5729:3;5653:88;;;5646:95;;5746:52;5791:6;5786:3;5779:4;5772:5;5768:16;5746:52;;;5810:16;;;;;5587:244;-1:-1;;5587:244;6919:406;;7097:85;7179:2;7174:3;7097:85;;;7215:34;7195:55;;7284:3;7279:2;7270:12;;7263:25;7316:2;7307:12;;7083:242;-1:-1;;7083:242;7334:351;;7512:85;7594:2;7589:3;7512:85;;;7630:17;7610:38;;7676:2;7667:12;;7498:187;-1:-1;;7498:187;7694:335;;7872:84;7954:1;7949:3;7872:84;;;7989:3;7969:24;;8021:1;8012:11;;7858:171;-1:-1;;7858:171;8157:254;;8297:89;8382:3;8373:6;8297:89;;8418:953;;8810:148;8954:3;8810:148;;;8803:155;;8976:95;9067:3;9058:6;8976:95;;;8969:102;;9089:148;9233:3;9089:148;;;9082:155;;9255:91;9342:3;9333:6;9255:91;;9378:800;;9726:148;9870:3;9726:148;;;9719:155;;9892:95;9983:3;9974:6;9892:95;;;9885:102;;10005:148;10149:3;10005:148;;10185:213;10303:2;10288:18;;10317:71;10292:9;10361:6;10317:71;;10405:213;10523:2;10508:18;;10537:71;10512:9;10581:6;10537:71;;10625:301;10763:2;10777:47;;;10748:18;;10838:78;10748:18;10902:6;10838:78;;11153:492;11359:2;11344:18;;11373:71;11348:9;11417:6;11373:71;;;11492:9;11486:4;11482:20;11477:2;11466:9;11462:18;11455:48;11517:118;11630:4;11621:6;11517:118;;11652:256;11714:2;11708:9;11740:17;;;11815:18;11800:34;;11836:22;;;11797:62;11794:2;;;11872:1;11869;11862:12;11794:2;11888;11881:22;11692:216;;-1:-1;11692:216;11915:323;;12093:18;12085:6;12082:30;12079:2;;;12125:1;12122;12115:12;12079:2;-1:-1;12160:4;12148:17;;;12213:15;;12016:222;12245:317;;12384:18;12376:6;12373:30;12370:2;;;12416:1;12413;12406:12;12370:2;-1:-1;12547:4;12483;12460:17;;;;12479:9;12456:33;12537:15;;12307:255;12894:156;13023:4;13014:14;;12971:79;13057:142;13165:12;;13136:63;13705:183;13828:19;;;13877:4;13868:14;;13821:67;14058:144;14193:3;14171:31;-1:-1;14171:31;14536:91;;14598:24;14616:5;14598:24;;14634:72;14696:5;14679:27;14713:121;14786:42;14775:54;;14758:76;14921:145;15002:6;14997:3;14992;14979:30;-1:-1;15058:1;15040:16;;15033:27;14972:94;15075:268;15140:1;15147:101;15161:6;15158:1;15155:13;15147:101;;;15228:11;;;15222:18;15209:11;;;15202:39;15183:2;15176:10;15147:101;;;15263:6;15260:1;15257:13;15254:2;;;15328:1;15319:6;15314:3;15310:16;15303:27;15254:2;15124:219;;;;;15351:97;15439:2;15419:14;15435:7;15415:28;;15399:49;15456:117;15525:24;15543:5;15525:24;;;15518:5;15515:35;15505:2;;15564:1;15561;15554:12;15505:2;15499:74;;15580:117;15649:24;15667:5;15649:24;",
|
|
165
165
|
"source": "// SPDX-License-Identifier: MIT\n\npragma solidity >=0.5.0;\npragma experimental ABIEncoderV2;\n\n\n\n/**\n * @title MultiCall - Aggregate results from multiple read-only function calls\n * @author Michael Elliot <mike@makerdao.com>\n * @author Joshua Levine <joshua@makerdao.com>\n * @author Nick Johnson <arachnid@notdot.net>\n * @author Corey Caplan <corey@dolomite.io>\n */\ncontract MultiCall {\n\n struct Call {\n address target;\n bytes callData;\n }\n\n function aggregate(Call[] memory calls) public returns (uint256 blockNumber, bytes[] memory returnData) {\n blockNumber = block.number;\n returnData = new bytes[](calls.length);\n for (uint256 i = 0; i < calls.length; i++) {\n // solium-disable-next-line security/no-low-level-calls\n (bool success, bytes memory result) = calls[i].target.call(calls[i].callData);\n if (!success) {\n if (result.length < 68) {\n string memory targetString = _addressToString(calls[i].target);\n revert(string(abi.encodePacked(\"Multicall::aggregate: revert at <\", targetString, \">\")));\n } else {\n // solium-disable-next-line security/no-inline-assembly\n assembly {\n result := add(result, 0x04)\n }\n string memory targetString = _addressToString(calls[i].target);\n revert(\n string(\n abi.encodePacked(\n \"Multicall::aggregate: revert at <\",\n targetString,\n \"> with reason: \",\n abi.decode(result, (string))\n )\n )\n );\n }\n }\n returnData[i] = result;\n }\n }\n\n // Helper functions\n function getEthBalance(address addr) public view returns (uint256 balance) {\n balance = addr.balance;\n }\n\n function getBlockHash(uint256 blockNumber) public view returns (bytes32 blockHash) {\n blockHash = blockhash(blockNumber);\n }\n\n function getLastBlockHash() public view returns (bytes32 blockHash) {\n blockHash = blockhash(block.number - 1);\n }\n\n function getCurrentBlockTimestamp() public view returns (uint256 timestamp) {\n timestamp = block.timestamp;\n }\n\n function getCurrentBlockDifficulty() public view returns (uint256 difficulty) {\n difficulty = block.difficulty;\n }\n\n function getCurrentBlockGasLimit() public view returns (uint256 gaslimit) {\n gaslimit = block.gaslimit;\n }\n\n function getCurrentBlockCoinbase() public view returns (address coinbase) {\n coinbase = block.coinbase;\n }\n\n function _addressToString(address _address) internal pure returns(string memory) {\n bytes32 _bytes = bytes32(uint256(_address));\n bytes memory HEX = \"0123456789abcdef\";\n bytes memory _string = new bytes(42);\n _string[0] = \"0\";\n _string[1] = \"x\";\n for (uint i = 0; i < 20; i++) {\n _string[2 + i * 2] = HEX[uint8(_bytes[i + 12] >> 4)];\n _string[3 + i * 2] = HEX[uint8(_bytes[i + 12] & 0x0f)];\n }\n return string(_string);\n }\n}\n",
|
|
166
|
-
"sourcePath": "/
|
|
166
|
+
"sourcePath": "/Users/corey/Leavitt-Innovations/dolomite-v2-protocol/contracts/external/utils/MultiCall.sol",
|
|
167
167
|
"ast": {
|
|
168
|
-
"absolutePath": "/
|
|
168
|
+
"absolutePath": "/Users/corey/Leavitt-Innovations/dolomite-v2-protocol/contracts/external/utils/MultiCall.sol",
|
|
169
169
|
"exportedSymbols": {
|
|
170
170
|
"MultiCall": [
|
|
171
171
|
22482
|
|
@@ -4309,7 +4309,7 @@
|
|
|
4309
4309
|
"src": "33:3307:46"
|
|
4310
4310
|
},
|
|
4311
4311
|
"legacyAST": {
|
|
4312
|
-
"absolutePath": "/
|
|
4312
|
+
"absolutePath": "/Users/corey/Leavitt-Innovations/dolomite-v2-protocol/contracts/external/utils/MultiCall.sol",
|
|
4313
4313
|
"exportedSymbols": {
|
|
4314
4314
|
"MultiCall": [
|
|
4315
4315
|
22482
|
|
@@ -8461,17 +8461,11 @@
|
|
|
8461
8461
|
"events": {},
|
|
8462
8462
|
"links": {},
|
|
8463
8463
|
"address": "0x6eD79Aa1c71FD7BdBC515EfdA3Bd4e26394435cC",
|
|
8464
|
-
"transactionHash": "
|
|
8465
|
-
},
|
|
8466
|
-
"80001": {
|
|
8467
|
-
"events": {},
|
|
8468
|
-
"links": {},
|
|
8469
|
-
"address": "0x74819e81e3dBE03D92621d62194d530C5824B4e5",
|
|
8470
|
-
"transactionHash": "0xae2fa2b30c2fb2fa34bc35cff10622521b51a0d36d03dc1c47d05e744c2c75bb"
|
|
8464
|
+
"transactionHash": "0x67a01bc8719f39b97a6adfa07c565667609ba026c1921009fdad1e5b8d48a83e"
|
|
8471
8465
|
}
|
|
8472
8466
|
},
|
|
8473
8467
|
"schemaVersion": "3.0.23",
|
|
8474
|
-
"updatedAt": "2022-02-
|
|
8468
|
+
"updatedAt": "2022-02-07T07:18:45.160Z",
|
|
8475
8469
|
"devdoc": {
|
|
8476
8470
|
"author": "Michael Elliot <mike@makerdao.com>Joshua Levine <joshua@makerdao.com>Nick Johnson <arachnid@notdot.net>Corey Caplan <corey@dolomite.io>",
|
|
8477
8471
|
"methods": {},
|