@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
|
@@ -588,15 +588,15 @@
|
|
|
588
588
|
"type": "function"
|
|
589
589
|
}
|
|
590
590
|
],
|
|
591
|
-
"metadata": "{\"compiler\":{\"version\":\"0.5.16+commit.9c3226ce\"},\"language\":\"Solidity\",\"output\":{\"abi\":[{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"uint256\",\"name\":\"input\",\"type\":\"uint256\"}],\"name\":\"DataDeleted\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"uint256\",\"name\":\"input\",\"type\":\"uint256\"},{\"components\":[{\"internalType\":\"bool\",\"name\":\"sign\",\"type\":\"bool\"},{\"internalType\":\"enum Types.AssetDenomination\",\"name\":\"denomination\",\"type\":\"uint8\"},{\"internalType\":\"enum Types.AssetReference\",\"name\":\"ref\",\"type\":\"uint8\"},{\"internalType\":\"uint256\",\"name\":\"value\",\"type\":\"uint256\"}],\"indexed\":false,\"internalType\":\"struct Types.AssetAmount\",\"name\":\"output\",\"type\":\"tuple\"}],\"name\":\"DataSet\",\"type\":\"event\"},{\"constant\":true,\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"name\":\"data\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"sign\",\"type\":\"bool\"},{\"internalType\":\"enum Types.AssetDenomination\",\"name\":\"denomination\",\"type\":\"uint8\"},{\"internalType\":\"enum Types.AssetReference\",\"name\":\"ref\",\"type\":\"uint8\"},{\"internalType\":\"uint256\",\"name\":\"value\",\"type\":\"uint256\"}],\"payable\":false,\"stateMutability\":\"view\",\"type\":\"function\"},{\"constant\":false,\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"inputMarketId\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"outputMarketId\",\"type\":\"uint256\"},{\"components\":[{\"internalType\":\"address\",\"name\":\"owner\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"number\",\"type\":\"uint256\"}],\"internalType\":\"struct Account.Info\",\"name\":\"makerAccount\",\"type\":\"tuple\"},{\"components\":[{\"internalType\":\"address\",\"name\":\"owner\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"number\",\"type\":\"uint256\"}],\"internalType\":\"struct Account.Info\",\"name\":\"takerAccount\",\"type\":\"tuple\"},{\"components\":[{\"internalType\":\"bool\",\"name\":\"sign\",\"type\":\"bool\"},{\"internalType\":\"uint128\",\"name\":\"value\",\"type\":\"uint128\"}],\"internalType\":\"struct Types.Par\",\"name\":\"oldInputPar\",\"type\":\"tuple\"},{\"components\":[{\"internalType\":\"bool\",\"name\":\"sign\",\"type\":\"bool\"},{\"internalType\":\"uint128\",\"name\":\"value\",\"type\":\"uint128\"}],\"internalType\":\"struct Types.Par\",\"name\":\"newInputPar\",\"type\":\"tuple\"},{\"components\":[{\"internalType\":\"bool\",\"name\":\"sign\",\"type\":\"bool\"},{\"internalType\":\"uint256\",\"name\":\"value\",\"type\":\"uint256\"}],\"internalType\":\"struct Types.Wei\",\"name\":\"inputWei\",\"type\":\"tuple\"},{\"internalType\":\"bytes\",\"name\":\"tradeData\",\"type\":\"bytes\"}],\"name\":\"getTradeCost\",\"outputs\":[{\"components\":[{\"internalType\":\"bool\",\"name\":\"sign\",\"type\":\"bool\"},{\"internalType\":\"enum Types.AssetDenomination\",\"name\":\"denomination\",\"type\":\"uint8\"},{\"internalType\":\"enum Types.AssetReference\",\"name\":\"ref\",\"type\":\"uint8\"},{\"internalType\":\"uint256\",\"name\":\"value\",\"type\":\"uint256\"}],\"internalType\":\"struct Types.AssetAmount\",\"name\":\"\",\"type\":\"tuple\"}],\"payable\":false,\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"constant\":true,\"inputs\":[],\"name\":\"requireInputMarketId\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"payable\":false,\"stateMutability\":\"view\",\"type\":\"function\"},{\"constant\":true,\"inputs\":[],\"name\":\"requireInputWei\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"sign\",\"type\":\"bool\"},{\"internalType\":\"uint256\",\"name\":\"value\",\"type\":\"uint256\"}],\"payable\":false,\"stateMutability\":\"view\",\"type\":\"function\"},{\"constant\":true,\"inputs\":[],\"name\":\"requireMakerAccount\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"owner\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"number\",\"type\":\"uint256\"}],\"payable\":false,\"stateMutability\":\"view\",\"type\":\"function\"},{\"constant\":true,\"inputs\":[],\"name\":\"requireNewInputPar\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"sign\",\"type\":\"bool\"},{\"internalType\":\"uint128\",\"name\":\"value\",\"type\":\"uint128\"}],\"payable\":false,\"stateMutability\":\"view\",\"type\":\"function\"},{\"constant\":true,\"inputs\":[],\"name\":\"requireOldInputPar\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"sign\",\"type\":\"bool\"},{\"internalType\":\"uint128\",\"name\":\"value\",\"type\":\"uint128\"}],\"payable\":false,\"stateMutability\":\"view\",\"type\":\"function\"},{\"constant\":true,\"inputs\":[],\"name\":\"requireOutputMarketId\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"payable\":false,\"stateMutability\":\"view\",\"type\":\"function\"},{\"constant\":true,\"inputs\":[],\"name\":\"requireTakerAccount\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"owner\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"number\",\"type\":\"uint256\"}],\"payable\":false,\"stateMutability\":\"view\",\"type\":\"function\"},{\"constant\":false,\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"input\",\"type\":\"uint256\"},{\"components\":[{\"internalType\":\"bool\",\"name\":\"sign\",\"type\":\"bool\"},{\"internalType\":\"enum Types.AssetDenomination\",\"name\":\"denomination\",\"type\":\"uint8\"},{\"internalType\":\"enum Types.AssetReference\",\"name\":\"ref\",\"type\":\"uint8\"},{\"internalType\":\"uint256\",\"name\":\"value\",\"type\":\"uint256\"}],\"internalType\":\"struct Types.AssetAmount\",\"name\":\"output\",\"type\":\"tuple\"}],\"name\":\"setData\",\"outputs\":[],\"payable\":false,\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"constant\":false,\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"inputMarketId\",\"type\":\"uint256\"}],\"name\":\"setRequireInputMarketId\",\"outputs\":[],\"payable\":false,\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"constant\":false,\"inputs\":[{\"components\":[{\"internalType\":\"bool\",\"name\":\"sign\",\"type\":\"bool\"},{\"internalType\":\"uint256\",\"name\":\"value\",\"type\":\"uint256\"}],\"internalType\":\"struct Types.Wei\",\"name\":\"inputWei\",\"type\":\"tuple\"}],\"name\":\"setRequireInputWei\",\"outputs\":[],\"payable\":false,\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"constant\":false,\"inputs\":[{\"components\":[{\"internalType\":\"address\",\"name\":\"owner\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"number\",\"type\":\"uint256\"}],\"internalType\":\"struct Account.Info\",\"name\":\"account\",\"type\":\"tuple\"}],\"name\":\"setRequireMakerAccount\",\"outputs\":[],\"payable\":false,\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"constant\":false,\"inputs\":[{\"components\":[{\"internalType\":\"bool\",\"name\":\"sign\",\"type\":\"bool\"},{\"internalType\":\"uint128\",\"name\":\"value\",\"type\":\"uint128\"}],\"internalType\":\"struct Types.Par\",\"name\":\"newInputPar\",\"type\":\"tuple\"}],\"name\":\"setRequireNewInputPar\",\"outputs\":[],\"payable\":false,\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"constant\":false,\"inputs\":[{\"components\":[{\"internalType\":\"bool\",\"name\":\"sign\",\"type\":\"bool\"},{\"internalType\":\"uint128\",\"name\":\"value\",\"type\":\"uint128\"}],\"internalType\":\"struct Types.Par\",\"name\":\"oldInputPar\",\"type\":\"tuple\"}],\"name\":\"setRequireOldInputPar\",\"outputs\":[],\"payable\":false,\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"constant\":false,\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"outputMarketId\",\"type\":\"uint256\"}],\"name\":\"setRequireOutputMarketId\",\"outputs\":[],\"payable\":false,\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"constant\":false,\"inputs\":[{\"components\":[{\"internalType\":\"address\",\"name\":\"owner\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"number\",\"type\":\"uint256\"}],\"internalType\":\"struct Account.Info\",\"name\":\"account\",\"type\":\"tuple\"}],\"name\":\"setRequireTakerAccount\",\"outputs\":[],\"payable\":false,\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"constant\":true,\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"name\":\"valid\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"payable\":false,\"stateMutability\":\"view\",\"type\":\"function\"}],\"devdoc\":{\"author\":\"dYdX * IAutoTrader for testing\",\"methods\":{},\"title\":\"TestAutoTrader\"},\"userdoc\":{\"methods\":{}}},\"settings\":{\"compilationTarget\":{\"/home/cdc218/projects/dolomite-protocol-v2/contracts/testing/TestAutoTrader.sol\":\"TestAutoTrader\"},\"evmVersion\":\"istanbul\",\"libraries\":{},\"optimizer\":{\"enabled\":true,\"runs\":10000},\"remappings\":[]},\"sources\":{\"/home/cdc218/projects/dolomite-protocol-v2/contracts/protocol/interfaces/IAutoTrader.sol\":{\"keccak256\":\"0x62cbb936c4abdfc1ab33bb3ee5505279cc7354f9404bedf74ee3d099623a6dfa\",\"urls\":[\"bzz-raw://91ab2bd45600b1d3268a5592deb8b396d0fc4bba05a00d1aa4b4b785a6ee46ad\",\"dweb:/ipfs/QmVmBdFGFuA6XzaWxVAxxFDH81mhomg6uJvnYi4NYRHfDk\"]},\"/home/cdc218/projects/dolomite-protocol-v2/contracts/protocol/lib/Account.sol\":{\"keccak256\":\"0x0ab9a3fabc89984dff748af63d4319ee134051de2d7fc560e34ebaac86198396\",\"urls\":[\"bzz-raw://ab67f499a8ef83dc7e7cf7176a0f66eced40fa228eda8dd2d47e066ab985cf42\",\"dweb:/ipfs/QmXRHbsEYxr2Qsfsj5psXGV5LaPZHuzLiEXzSQJ77WSE27\"]},\"/home/cdc218/projects/dolomite-protocol-v2/contracts/protocol/lib/Actions.sol\":{\"keccak256\":\"0x44ec62b766a88a2f65267991e76cab88711e733b826dc9e578cb6ad6b38b2445\",\"urls\":[\"bzz-raw://731a8d44e57c9dcd7fbdefc37a6b5889c0d06defb3bd66b921b2a7db0edf0103\",\"dweb:/ipfs/QmcVbXc9oi5DMxjPtsBF76oJzD6zVjm7RuXgJfP3Goqrrb\"]},\"/home/cdc218/projects/dolomite-protocol-v2/contracts/protocol/lib/EnumerableSet.sol\":{\"keccak256\":\"0x9710b0ab43cc2d964d8722a0aabbedbf7e9d4756dcc0b4ab7c46c1ee68653042\",\"urls\":[\"bzz-raw://2405593d37f0f224bfca556f01634a9755bb0ed626f74dd15293106a8b4dd7d3\",\"dweb:/ipfs/QmTZ16S336jsoDnK5p3vAZRzimBkmdEJibncHVBJxBt469\"]},\"/home/cdc218/projects/dolomite-protocol-v2/contracts/protocol/lib/Math.sol\":{\"keccak256\":\"0x0c0c913b6ccdb69063f9ec84879fcad20a1ee6f44402c9f5ec2b4f5b9f2fa16b\",\"urls\":[\"bzz-raw://89b32eefb57e5e63ad8c6e079ae7bf2d2c8622776cd45af0cf304e1cafd6e078\",\"dweb:/ipfs/Qmcj7yRnYuTgKC3ZqZqe8rynHGYVDS3UrFExcVGcqeaDHY\"]},\"/home/cdc218/projects/dolomite-protocol-v2/contracts/protocol/lib/Require.sol\":{\"keccak256\":\"0xe641662503ea29ca959e84674188c3e9deaaf64c5623fb9560a4301c521ca1d3\",\"urls\":[\"bzz-raw://b10a04c7d014b99eb792c8c774e203c846d070b30cf0b715325fc07838ed6a6d\",\"dweb:/ipfs/QmUqZWnbchfEY9jM647yQamHe4GzspfUeRQF9k2nn1Hixd\"]},\"/home/cdc218/projects/dolomite-protocol-v2/contracts/protocol/lib/Time.sol\":{\"keccak256\":\"0x233d6ebf965711bf980f4bb2e672fb1a11b4b879fd41c884b3c2b704417d0d0c\",\"urls\":[\"bzz-raw://6478ff81706d531f9438b96274a7b904abbbd9c631540c68c6a89c3accf27abf\",\"dweb:/ipfs/QmWe9vkz3qwVjrcbmcTL8wgkjLPsrEqxcqPJL9ujM8PPbp\"]},\"/home/cdc218/projects/dolomite-protocol-v2/contracts/protocol/lib/Types.sol\":{\"keccak256\":\"0xab134538648a2e223a7fe61db03c14f687657a5d37147f93c9088f11735aa311\",\"urls\":[\"bzz-raw://79dc7d2b30576d2349b99267642ac8d5fb7939c920b8d8045379d3614238bdc3\",\"dweb:/ipfs/QmaQJYg1nirHoWSC6G38Cjsk9pZBzEaNrGXKqTsvAzbyES\"]},\"/home/cdc218/projects/dolomite-protocol-v2/contracts/testing/TestAutoTrader.sol\":{\"keccak256\":\"0x2fde3aebf2760da357ba8534714a4a4c17107494169e9684e16d85564f1aad67\",\"urls\":[\"bzz-raw://ff7cbbfa31be62b7d8c6bfba59b26e68657f13529251a1e13bcce05f09596b17\",\"dweb:/ipfs/QmQwY185DjVZXMzL43mCV2TjCCnekPwCAmLZq3E6xXyjbC\"]},\"@openzeppelin/contracts/math/SafeMath.sol\":{\"keccak256\":\"0x640b6dee7a4b830bdfd52b5031a07fc2b12209f5b2e29e5d364a7d37f69d8076\",\"urls\":[\"bzz-raw://31113152e1ddb78fe7a4197f247591ca894e93f916867beb708d8e747b6cc74f\",\"dweb:/ipfs/QmbZaJyXdpsYGykVhHH9qpVGQg9DGCxE2QufbCUy3daTgq\"]}},\"version\":1}",
|
|
592
|
-
"bytecode": "0x608060405234801561001057600080fd5b506115cb806100206000396000f3fe608060405234801561001057600080fd5b50600436106101365760003560e01c8063bf8712c5116100b2578063e73af6fa11610081578063ef28faa911610066578063ef28faa914610270578063f0ba844014610285578063f4d193de146102a857610136565b8063e73af6fa14610255578063e81cb6051461025d57610136565b8063bf8712c514610207578063cd59f0c314610227578063d60463bb1461023a578063df9812671461024d57610136565b806348cedc55116101095780636b9d21e5116100ee5780636b9d21e5146101cb5780636ff94664146101de5780639ccf7320146101f457610136565b806348cedc55146101a55780636645da41146101b857610136565b80630b8bbc2d1461013b5780630e147b011461015a5780633858db2c14610170578063448f706514610185575b600080fd5b6101436102b0565b604051610151929190611394565b60405180910390f35b6101626102d2565b6040516101519291906113af565b61018361017e3660046110bf565b6102e1565b005b610198610193366004611117565b6102e6565b60405161015191906113ce565b6101836101b3366004611083565b610800565b6101836101c6366004611083565b61085c565b6101836101d93660046110bf565b6108b8565b6101e66108bd565b60405161015192919061132f565b6101836102023660046110dd565b6108df565b61021a6102153660046110bf565b6108ed565b6040516101519190611351565b61018361023536600461105d565b610902565b61018361024836600461105d565b610951565b6101e66109a0565b6101436109c2565b61018361026b3660046110a1565b6109e4565b610278610a00565b60405161015191906113dc565b6102986102933660046110bf565b610a06565b604051610151949392919061135f565b610278610a38565b60085460ff81169061010090046fffffffffffffffffffffffffffffffff1682565b600a54600b5460ff9091169082565b600355565b6102ee610e88565b600254156103455761034589600254147f546573744175746f5472616465720000000000000000000000000000000000007f696e707574206d61726b6574206d69736d617463680000000000000000000000610a3e565b6003541561039c5761039c88600354147f546573744175746f5472616465720000000000000000000000000000000000007f6f7574707574206d61726b6574206d69736d6174636800000000000000000000610a3e565b60045473ffffffffffffffffffffffffffffffffffffffff16156104795786516004546104259173ffffffffffffffffffffffffffffffffffffffff9182169116147f546573744175746f5472616465720000000000000000000000000000000000007f6d616b6572206163636f756e74206f776e6572206d69736d6174636800000000610a3e565b602087015160055461047991147f546573744175746f5472616465720000000000000000000000000000000000007f6d616b6572206163636f756e74206e756d626572206d69736d61746368000000610a3e565b60065473ffffffffffffffffffffffffffffffffffffffff16156105565785516006546105029173ffffffffffffffffffffffffffffffffffffffff9182169116147f546573744175746f5472616465720000000000000000000000000000000000007f74616b6572206163636f756e74206f776e6572206d69736d6174636800000000610a3e565b602086015160075461055691147f546573744175746f5472616465720000000000000000000000000000000000007f74616b6572206163636f756e74206e756d626572206d69736d61746368000000610a3e565b60085461010090046fffffffffffffffffffffffffffffffff161561063e5784516008546105cf91151560ff9091161515147f546573744175746f5472616465720000000000000000000000000000000000007f6f6c64496e707574506172207369676e206d69736d6174636800000000000000610a3e565b602085015160085461063e916fffffffffffffffffffffffffffffffff90811661010090920416147f546573744175746f5472616465720000000000000000000000000000000000007f6f6c64496e7075745061722076616c7565206d69736d61746368000000000000610a3e565b60095461010090046fffffffffffffffffffffffffffffffff16156107265783516009546106b791151560ff9091161515147f546573744175746f5472616465720000000000000000000000000000000000007f6e6577496e707574506172207369676e206d69736d6174636800000000000000610a3e565b6020840151600954610726916fffffffffffffffffffffffffffffffff90811661010090920416147f546573744175746f5472616465720000000000000000000000000000000000007f6e6577496e7075745061722076616c7565206d69736d61746368000000000000610a3e565b600b54156107dc578251600a5461078891151560ff9091161515147f546573744175746f5472616465720000000000000000000000000000000000007f696e707574576569207369676e206d69736d6174636800000000000000000000610a3e565b6020830151600b546107dc91147f546573744175746f5472616465720000000000000000000000000000000000007f696e7075745765692076616c7565206d69736d61746368000000000000000000610a3e565b60006107e783610af4565b90506107f281610b51565b9a9950505050505050505050565b8051600880546020909301516fffffffffffffffffffffffffffffffff16610100027fffffffffffffffffffffffffffffff00000000000000000000000000000000ff92151560ff199094169390931791909116919091179055565b8051600980546020909301516fffffffffffffffffffffffffffffffff16610100027fffffffffffffffffffffffffffffff00000000000000000000000000000000ff92151560ff199094169390931791909116919091179055565b600255565b60045460055473ffffffffffffffffffffffffffffffffffffffff9091169082565b6108e98282610cb3565b5050565b60016020526000908152604090205460ff1681565b8051600680547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff90921691909117905560200151600755565b8051600480547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff90921691909117905560200151600555565b60065460075473ffffffffffffffffffffffffffffffffffffffff9091169082565b60095460ff81169061010090046fffffffffffffffffffffffffffffffff1682565b8051600a805460ff191691151591909117905560200151600b55565b60025481565b6000602081905290815260409020805460019091015460ff808316926101008104821692620100009091049091169084565b60035481565b82610aef57610a4c82610db4565b7f3a20000000000000000000000000000000000000000000000000000000000000610a7683610db4565b604051602001610a88939291906112fe565b604080517fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0818403018152908290527f08c379a0000000000000000000000000000000000000000000000000000000008252610ae6916004016113bd565b60405180910390fd5b505050565b6000610b4582516020147f546573744175746f5472616465720000000000000000000000000000000000007f43616c6c206461746120696e76616c6964206c656e6774680000000000000000610a3e565b5060208101515b919050565b610b59610e88565b600082815260016020526040902054610bb69060ff167f546573744175746f5472616465720000000000000000000000000000000000007f547261646520646f6573206e6f74206578697374000000000000000000000000610a3e565b610bbe610e88565b60008381526020818152604091829020825160808101909352805460ff808216151585529192840191610100909104166001811115610bf957fe5b6001811115610c0457fe5b8152815460209091019062010000900460ff166001811115610c2257fe5b6001811115610c2d57fe5b81526001918201546020918201526000868152808252604080822080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffff000000168155840182905592909152818120805460ff19169055905191925084917fc08afd407b9302167fb675f0504288e953f9807568a5e2b502d47ea8bc6dcbed9190a292915050565b6000828152602081815260409091208251815460ff19169015151780825591830151839282907fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00ff16610100836001811115610d0a57fe5b02179055506040820151815482907fffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00ffff1662010000836001811115610d4a57fe5b02179055506060919091015160019182015560008381526020829052604090819020805460ff19169092179091555182907ff5a75b9133c4ad3380c8fb241cbd49cbc06a972af65c00521cb656776e8eab0f90610da89084906113ce565b60405180910390a25050565b60608082604051602001610dc891906112e9565b604080517fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0818403018152919052905060205b8015610e715781517fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff90910190829082908110610e3457fe5b01602001517fff000000000000000000000000000000000000000000000000000000000000001615610e6c5760010181529050610b4c565b610dfb565b505060408051600081526020810190915292915050565b604080516080810190915260008082526020820190815260200160008152602001600081525090565b8035610ebc8161154c565b92915050565b8035610ebc81611560565b600082601f830112610ede57600080fd5b8135610ef1610eec82611411565b6113ea565b91508082526020830160208301858383011115610f0d57600080fd5b610f188382846114df565b50505092915050565b8035610ebc81611569565b600060808284031215610f3e57600080fd5b610f4860806113ea565b90506000610f568484610ec2565b8252506020610f6784848301610f21565b6020830152506040610f7b84828501610f21565b6040830152506060610f8f84828501611052565b60608301525092915050565b600060408284031215610fad57600080fd5b610fb760406113ea565b90506000610fc58484610eb1565b8252506020610fd684848301611052565b60208301525092915050565b600060408284031215610ff457600080fd5b610ffe60406113ea565b9050600061100c8484610ec2565b8252506020610fd684848301611047565b60006040828403121561102f57600080fd5b61103960406113ea565b90506000610fc58484610ec2565b8035610ebc81611576565b8035610ebc8161157f565b60006040828403121561106f57600080fd5b600061107b8484610f9b565b949350505050565b60006040828403121561109557600080fd5b600061107b8484610fe2565b6000604082840312156110b357600080fd5b600061107b848461101d565b6000602082840312156110d157600080fd5b600061107b8484611052565b60008060a083850312156110f057600080fd5b60006110fc8585611052565b925050602061110d85828601610f2c565b9150509250929050565b6000806000806000806000806101a0898b03121561113457600080fd5b60006111408b8b611052565b98505060206111518b828c01611052565b97505060406111628b828c01610f9b565b96505060806111738b828c01610f9b565b95505060c06111848b828c01610fe2565b9450506101006111968b828c01610fe2565b9350506101406111a88b828c0161101d565b92505061018089013567ffffffffffffffff8111156111c657600080fd5b6111d28b828c01610ecd565b9150509295985092959890939650565b6111eb81611464565b82525050565b6111eb8161146f565b6111eb61120682611474565b611499565b6111eb61120682611499565b600061122282611457565b61122c8185610b4c565b935061123c8185602086016114eb565b9290920192915050565b6111eb816114d4565b600061125a82611457565b611264818561145b565b93506112748185602086016114eb565b61127d81611517565b9093019392505050565b8051608083019061129884826111f1565b5060208201516112ab6020850182611246565b5060408201516112be6040850182611246565b5060608201516112d160608501826112e0565b50505050565b6111eb816114a6565b6111eb81611499565b60006112f5828461120b565b50602001919050565b600061130a8286611217565b915061131682856111fa565b6002820191506113268284611217565b95945050505050565b6040810161133d82856111e2565b61134a60208301846112e0565b9392505050565b60208101610ebc82846111f1565b6080810161136d82876111f1565b61137a6020830186611246565b6113876040830185611246565b61132660608301846112e0565b604081016113a282856111f1565b61134a60208301846112d7565b6040810161133d82856111f1565b6020808252810161134a818461124f565b60808101610ebc8284611287565b60208101610ebc82846112e0565b60405181810167ffffffffffffffff8111828210171561140957600080fd5b604052919050565b600067ffffffffffffffff82111561142857600080fd5b506020601f919091017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0160190565b5190565b90815260200190565b6000610ebc826114bb565b151590565b7fffff0000000000000000000000000000000000000000000000000000000000001690565b90565b80610b4c8161153f565b6fffffffffffffffffffffffffffffffff1690565b73ffffffffffffffffffffffffffffffffffffffff1690565b6000610ebc8261149c565b82818337506000910152565b60005b838110156115065781810151838201526020016114ee565b838111156112d15750506000910152565b601f017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe01690565b6002811061154957fe5b50565b61155581611464565b811461154957600080fd5b6115558161146f565b6002811061154957600080fd5b611555816114a6565b6115558161149956fea365627a7a723158204787d6712118a11939ebdb901f95215ca4763f8d20d4e0bd6a46a269c3249b006c6578706572696d656e74616cf564736f6c63430005100040",
|
|
593
|
-
"deployedBytecode": "0x608060405234801561001057600080fd5b50600436106101365760003560e01c8063bf8712c5116100b2578063e73af6fa11610081578063ef28faa911610066578063ef28faa914610270578063f0ba844014610285578063f4d193de146102a857610136565b8063e73af6fa14610255578063e81cb6051461025d57610136565b8063bf8712c514610207578063cd59f0c314610227578063d60463bb1461023a578063df9812671461024d57610136565b806348cedc55116101095780636b9d21e5116100ee5780636b9d21e5146101cb5780636ff94664146101de5780639ccf7320146101f457610136565b806348cedc55146101a55780636645da41146101b857610136565b80630b8bbc2d1461013b5780630e147b011461015a5780633858db2c14610170578063448f706514610185575b600080fd5b6101436102b0565b604051610151929190611394565b60405180910390f35b6101626102d2565b6040516101519291906113af565b61018361017e3660046110bf565b6102e1565b005b610198610193366004611117565b6102e6565b60405161015191906113ce565b6101836101b3366004611083565b610800565b6101836101c6366004611083565b61085c565b6101836101d93660046110bf565b6108b8565b6101e66108bd565b60405161015192919061132f565b6101836102023660046110dd565b6108df565b61021a6102153660046110bf565b6108ed565b6040516101519190611351565b61018361023536600461105d565b610902565b61018361024836600461105d565b610951565b6101e66109a0565b6101436109c2565b61018361026b3660046110a1565b6109e4565b610278610a00565b60405161015191906113dc565b6102986102933660046110bf565b610a06565b604051610151949392919061135f565b610278610a38565b60085460ff81169061010090046fffffffffffffffffffffffffffffffff1682565b600a54600b5460ff9091169082565b600355565b6102ee610e88565b600254156103455761034589600254147f546573744175746f5472616465720000000000000000000000000000000000007f696e707574206d61726b6574206d69736d617463680000000000000000000000610a3e565b6003541561039c5761039c88600354147f546573744175746f5472616465720000000000000000000000000000000000007f6f7574707574206d61726b6574206d69736d6174636800000000000000000000610a3e565b60045473ffffffffffffffffffffffffffffffffffffffff16156104795786516004546104259173ffffffffffffffffffffffffffffffffffffffff9182169116147f546573744175746f5472616465720000000000000000000000000000000000007f6d616b6572206163636f756e74206f776e6572206d69736d6174636800000000610a3e565b602087015160055461047991147f546573744175746f5472616465720000000000000000000000000000000000007f6d616b6572206163636f756e74206e756d626572206d69736d61746368000000610a3e565b60065473ffffffffffffffffffffffffffffffffffffffff16156105565785516006546105029173ffffffffffffffffffffffffffffffffffffffff9182169116147f546573744175746f5472616465720000000000000000000000000000000000007f74616b6572206163636f756e74206f776e6572206d69736d6174636800000000610a3e565b602086015160075461055691147f546573744175746f5472616465720000000000000000000000000000000000007f74616b6572206163636f756e74206e756d626572206d69736d61746368000000610a3e565b60085461010090046fffffffffffffffffffffffffffffffff161561063e5784516008546105cf91151560ff9091161515147f546573744175746f5472616465720000000000000000000000000000000000007f6f6c64496e707574506172207369676e206d69736d6174636800000000000000610a3e565b602085015160085461063e916fffffffffffffffffffffffffffffffff90811661010090920416147f546573744175746f5472616465720000000000000000000000000000000000007f6f6c64496e7075745061722076616c7565206d69736d61746368000000000000610a3e565b60095461010090046fffffffffffffffffffffffffffffffff16156107265783516009546106b791151560ff9091161515147f546573744175746f5472616465720000000000000000000000000000000000007f6e6577496e707574506172207369676e206d69736d6174636800000000000000610a3e565b6020840151600954610726916fffffffffffffffffffffffffffffffff90811661010090920416147f546573744175746f5472616465720000000000000000000000000000000000007f6e6577496e7075745061722076616c7565206d69736d61746368000000000000610a3e565b600b54156107dc578251600a5461078891151560ff9091161515147f546573744175746f5472616465720000000000000000000000000000000000007f696e707574576569207369676e206d69736d6174636800000000000000000000610a3e565b6020830151600b546107dc91147f546573744175746f5472616465720000000000000000000000000000000000007f696e7075745765692076616c7565206d69736d61746368000000000000000000610a3e565b60006107e783610af4565b90506107f281610b51565b9a9950505050505050505050565b8051600880546020909301516fffffffffffffffffffffffffffffffff16610100027fffffffffffffffffffffffffffffff00000000000000000000000000000000ff92151560ff199094169390931791909116919091179055565b8051600980546020909301516fffffffffffffffffffffffffffffffff16610100027fffffffffffffffffffffffffffffff00000000000000000000000000000000ff92151560ff199094169390931791909116919091179055565b600255565b60045460055473ffffffffffffffffffffffffffffffffffffffff9091169082565b6108e98282610cb3565b5050565b60016020526000908152604090205460ff1681565b8051600680547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff90921691909117905560200151600755565b8051600480547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff90921691909117905560200151600555565b60065460075473ffffffffffffffffffffffffffffffffffffffff9091169082565b60095460ff81169061010090046fffffffffffffffffffffffffffffffff1682565b8051600a805460ff191691151591909117905560200151600b55565b60025481565b6000602081905290815260409020805460019091015460ff808316926101008104821692620100009091049091169084565b60035481565b82610aef57610a4c82610db4565b7f3a20000000000000000000000000000000000000000000000000000000000000610a7683610db4565b604051602001610a88939291906112fe565b604080517fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0818403018152908290527f08c379a0000000000000000000000000000000000000000000000000000000008252610ae6916004016113bd565b60405180910390fd5b505050565b6000610b4582516020147f546573744175746f5472616465720000000000000000000000000000000000007f43616c6c206461746120696e76616c6964206c656e6774680000000000000000610a3e565b5060208101515b919050565b610b59610e88565b600082815260016020526040902054610bb69060ff167f546573744175746f5472616465720000000000000000000000000000000000007f547261646520646f6573206e6f74206578697374000000000000000000000000610a3e565b610bbe610e88565b60008381526020818152604091829020825160808101909352805460ff808216151585529192840191610100909104166001811115610bf957fe5b6001811115610c0457fe5b8152815460209091019062010000900460ff166001811115610c2257fe5b6001811115610c2d57fe5b81526001918201546020918201526000868152808252604080822080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffff000000168155840182905592909152818120805460ff19169055905191925084917fc08afd407b9302167fb675f0504288e953f9807568a5e2b502d47ea8bc6dcbed9190a292915050565b6000828152602081815260409091208251815460ff19169015151780825591830151839282907fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00ff16610100836001811115610d0a57fe5b02179055506040820151815482907fffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00ffff1662010000836001811115610d4a57fe5b02179055506060919091015160019182015560008381526020829052604090819020805460ff19169092179091555182907ff5a75b9133c4ad3380c8fb241cbd49cbc06a972af65c00521cb656776e8eab0f90610da89084906113ce565b60405180910390a25050565b60608082604051602001610dc891906112e9565b604080517fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0818403018152919052905060205b8015610e715781517fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff90910190829082908110610e3457fe5b01602001517fff000000000000000000000000000000000000000000000000000000000000001615610e6c5760010181529050610b4c565b610dfb565b505060408051600081526020810190915292915050565b604080516080810190915260008082526020820190815260200160008152602001600081525090565b8035610ebc8161154c565b92915050565b8035610ebc81611560565b600082601f830112610ede57600080fd5b8135610ef1610eec82611411565b6113ea565b91508082526020830160208301858383011115610f0d57600080fd5b610f188382846114df565b50505092915050565b8035610ebc81611569565b600060808284031215610f3e57600080fd5b610f4860806113ea565b90506000610f568484610ec2565b8252506020610f6784848301610f21565b6020830152506040610f7b84828501610f21565b6040830152506060610f8f84828501611052565b60608301525092915050565b600060408284031215610fad57600080fd5b610fb760406113ea565b90506000610fc58484610eb1565b8252506020610fd684848301611052565b60208301525092915050565b600060408284031215610ff457600080fd5b610ffe60406113ea565b9050600061100c8484610ec2565b8252506020610fd684848301611047565b60006040828403121561102f57600080fd5b61103960406113ea565b90506000610fc58484610ec2565b8035610ebc81611576565b8035610ebc8161157f565b60006040828403121561106f57600080fd5b600061107b8484610f9b565b949350505050565b60006040828403121561109557600080fd5b600061107b8484610fe2565b6000604082840312156110b357600080fd5b600061107b848461101d565b6000602082840312156110d157600080fd5b600061107b8484611052565b60008060a083850312156110f057600080fd5b60006110fc8585611052565b925050602061110d85828601610f2c565b9150509250929050565b6000806000806000806000806101a0898b03121561113457600080fd5b60006111408b8b611052565b98505060206111518b828c01611052565b97505060406111628b828c01610f9b565b96505060806111738b828c01610f9b565b95505060c06111848b828c01610fe2565b9450506101006111968b828c01610fe2565b9350506101406111a88b828c0161101d565b92505061018089013567ffffffffffffffff8111156111c657600080fd5b6111d28b828c01610ecd565b9150509295985092959890939650565b6111eb81611464565b82525050565b6111eb8161146f565b6111eb61120682611474565b611499565b6111eb61120682611499565b600061122282611457565b61122c8185610b4c565b935061123c8185602086016114eb565b9290920192915050565b6111eb816114d4565b600061125a82611457565b611264818561145b565b93506112748185602086016114eb565b61127d81611517565b9093019392505050565b8051608083019061129884826111f1565b5060208201516112ab6020850182611246565b5060408201516112be6040850182611246565b5060608201516112d160608501826112e0565b50505050565b6111eb816114a6565b6111eb81611499565b60006112f5828461120b565b50602001919050565b600061130a8286611217565b915061131682856111fa565b6002820191506113268284611217565b95945050505050565b6040810161133d82856111e2565b61134a60208301846112e0565b9392505050565b60208101610ebc82846111f1565b6080810161136d82876111f1565b61137a6020830186611246565b6113876040830185611246565b61132660608301846112e0565b604081016113a282856111f1565b61134a60208301846112d7565b6040810161133d82856111f1565b6020808252810161134a818461124f565b60808101610ebc8284611287565b60208101610ebc82846112e0565b60405181810167ffffffffffffffff8111828210171561140957600080fd5b604052919050565b600067ffffffffffffffff82111561142857600080fd5b506020601f919091017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0160190565b5190565b90815260200190565b6000610ebc826114bb565b151590565b7fffff0000000000000000000000000000000000000000000000000000000000001690565b90565b80610b4c8161153f565b6fffffffffffffffffffffffffffffffff1690565b73ffffffffffffffffffffffffffffffffffffffff1690565b6000610ebc8261149c565b82818337506000910152565b60005b838110156115065781810151838201526020016114ee565b838111156112d15750506000910152565b601f017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe01690565b6002811061154957fe5b50565b61155581611464565b811461154957600080fd5b6115558161146f565b6002811061154957600080fd5b611555816114a6565b6115558161149956fea365627a7a723158204787d6712118a11939ebdb901f95215ca4763f8d20d4e0bd6a46a269c3249b006c6578706572696d656e74616cf564736f6c63430005100040",
|
|
591
|
+
"metadata": "{\"compiler\":{\"version\":\"0.5.16+commit.9c3226ce\"},\"language\":\"Solidity\",\"output\":{\"abi\":[{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"uint256\",\"name\":\"input\",\"type\":\"uint256\"}],\"name\":\"DataDeleted\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"uint256\",\"name\":\"input\",\"type\":\"uint256\"},{\"components\":[{\"internalType\":\"bool\",\"name\":\"sign\",\"type\":\"bool\"},{\"internalType\":\"enum Types.AssetDenomination\",\"name\":\"denomination\",\"type\":\"uint8\"},{\"internalType\":\"enum Types.AssetReference\",\"name\":\"ref\",\"type\":\"uint8\"},{\"internalType\":\"uint256\",\"name\":\"value\",\"type\":\"uint256\"}],\"indexed\":false,\"internalType\":\"struct Types.AssetAmount\",\"name\":\"output\",\"type\":\"tuple\"}],\"name\":\"DataSet\",\"type\":\"event\"},{\"constant\":true,\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"name\":\"data\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"sign\",\"type\":\"bool\"},{\"internalType\":\"enum Types.AssetDenomination\",\"name\":\"denomination\",\"type\":\"uint8\"},{\"internalType\":\"enum Types.AssetReference\",\"name\":\"ref\",\"type\":\"uint8\"},{\"internalType\":\"uint256\",\"name\":\"value\",\"type\":\"uint256\"}],\"payable\":false,\"stateMutability\":\"view\",\"type\":\"function\"},{\"constant\":false,\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"inputMarketId\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"outputMarketId\",\"type\":\"uint256\"},{\"components\":[{\"internalType\":\"address\",\"name\":\"owner\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"number\",\"type\":\"uint256\"}],\"internalType\":\"struct Account.Info\",\"name\":\"makerAccount\",\"type\":\"tuple\"},{\"components\":[{\"internalType\":\"address\",\"name\":\"owner\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"number\",\"type\":\"uint256\"}],\"internalType\":\"struct Account.Info\",\"name\":\"takerAccount\",\"type\":\"tuple\"},{\"components\":[{\"internalType\":\"bool\",\"name\":\"sign\",\"type\":\"bool\"},{\"internalType\":\"uint128\",\"name\":\"value\",\"type\":\"uint128\"}],\"internalType\":\"struct Types.Par\",\"name\":\"oldInputPar\",\"type\":\"tuple\"},{\"components\":[{\"internalType\":\"bool\",\"name\":\"sign\",\"type\":\"bool\"},{\"internalType\":\"uint128\",\"name\":\"value\",\"type\":\"uint128\"}],\"internalType\":\"struct Types.Par\",\"name\":\"newInputPar\",\"type\":\"tuple\"},{\"components\":[{\"internalType\":\"bool\",\"name\":\"sign\",\"type\":\"bool\"},{\"internalType\":\"uint256\",\"name\":\"value\",\"type\":\"uint256\"}],\"internalType\":\"struct Types.Wei\",\"name\":\"inputWei\",\"type\":\"tuple\"},{\"internalType\":\"bytes\",\"name\":\"tradeData\",\"type\":\"bytes\"}],\"name\":\"getTradeCost\",\"outputs\":[{\"components\":[{\"internalType\":\"bool\",\"name\":\"sign\",\"type\":\"bool\"},{\"internalType\":\"enum Types.AssetDenomination\",\"name\":\"denomination\",\"type\":\"uint8\"},{\"internalType\":\"enum Types.AssetReference\",\"name\":\"ref\",\"type\":\"uint8\"},{\"internalType\":\"uint256\",\"name\":\"value\",\"type\":\"uint256\"}],\"internalType\":\"struct Types.AssetAmount\",\"name\":\"\",\"type\":\"tuple\"}],\"payable\":false,\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"constant\":true,\"inputs\":[],\"name\":\"requireInputMarketId\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"payable\":false,\"stateMutability\":\"view\",\"type\":\"function\"},{\"constant\":true,\"inputs\":[],\"name\":\"requireInputWei\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"sign\",\"type\":\"bool\"},{\"internalType\":\"uint256\",\"name\":\"value\",\"type\":\"uint256\"}],\"payable\":false,\"stateMutability\":\"view\",\"type\":\"function\"},{\"constant\":true,\"inputs\":[],\"name\":\"requireMakerAccount\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"owner\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"number\",\"type\":\"uint256\"}],\"payable\":false,\"stateMutability\":\"view\",\"type\":\"function\"},{\"constant\":true,\"inputs\":[],\"name\":\"requireNewInputPar\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"sign\",\"type\":\"bool\"},{\"internalType\":\"uint128\",\"name\":\"value\",\"type\":\"uint128\"}],\"payable\":false,\"stateMutability\":\"view\",\"type\":\"function\"},{\"constant\":true,\"inputs\":[],\"name\":\"requireOldInputPar\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"sign\",\"type\":\"bool\"},{\"internalType\":\"uint128\",\"name\":\"value\",\"type\":\"uint128\"}],\"payable\":false,\"stateMutability\":\"view\",\"type\":\"function\"},{\"constant\":true,\"inputs\":[],\"name\":\"requireOutputMarketId\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"payable\":false,\"stateMutability\":\"view\",\"type\":\"function\"},{\"constant\":true,\"inputs\":[],\"name\":\"requireTakerAccount\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"owner\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"number\",\"type\":\"uint256\"}],\"payable\":false,\"stateMutability\":\"view\",\"type\":\"function\"},{\"constant\":false,\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"input\",\"type\":\"uint256\"},{\"components\":[{\"internalType\":\"bool\",\"name\":\"sign\",\"type\":\"bool\"},{\"internalType\":\"enum Types.AssetDenomination\",\"name\":\"denomination\",\"type\":\"uint8\"},{\"internalType\":\"enum Types.AssetReference\",\"name\":\"ref\",\"type\":\"uint8\"},{\"internalType\":\"uint256\",\"name\":\"value\",\"type\":\"uint256\"}],\"internalType\":\"struct Types.AssetAmount\",\"name\":\"output\",\"type\":\"tuple\"}],\"name\":\"setData\",\"outputs\":[],\"payable\":false,\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"constant\":false,\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"inputMarketId\",\"type\":\"uint256\"}],\"name\":\"setRequireInputMarketId\",\"outputs\":[],\"payable\":false,\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"constant\":false,\"inputs\":[{\"components\":[{\"internalType\":\"bool\",\"name\":\"sign\",\"type\":\"bool\"},{\"internalType\":\"uint256\",\"name\":\"value\",\"type\":\"uint256\"}],\"internalType\":\"struct Types.Wei\",\"name\":\"inputWei\",\"type\":\"tuple\"}],\"name\":\"setRequireInputWei\",\"outputs\":[],\"payable\":false,\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"constant\":false,\"inputs\":[{\"components\":[{\"internalType\":\"address\",\"name\":\"owner\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"number\",\"type\":\"uint256\"}],\"internalType\":\"struct Account.Info\",\"name\":\"account\",\"type\":\"tuple\"}],\"name\":\"setRequireMakerAccount\",\"outputs\":[],\"payable\":false,\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"constant\":false,\"inputs\":[{\"components\":[{\"internalType\":\"bool\",\"name\":\"sign\",\"type\":\"bool\"},{\"internalType\":\"uint128\",\"name\":\"value\",\"type\":\"uint128\"}],\"internalType\":\"struct Types.Par\",\"name\":\"newInputPar\",\"type\":\"tuple\"}],\"name\":\"setRequireNewInputPar\",\"outputs\":[],\"payable\":false,\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"constant\":false,\"inputs\":[{\"components\":[{\"internalType\":\"bool\",\"name\":\"sign\",\"type\":\"bool\"},{\"internalType\":\"uint128\",\"name\":\"value\",\"type\":\"uint128\"}],\"internalType\":\"struct Types.Par\",\"name\":\"oldInputPar\",\"type\":\"tuple\"}],\"name\":\"setRequireOldInputPar\",\"outputs\":[],\"payable\":false,\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"constant\":false,\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"outputMarketId\",\"type\":\"uint256\"}],\"name\":\"setRequireOutputMarketId\",\"outputs\":[],\"payable\":false,\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"constant\":false,\"inputs\":[{\"components\":[{\"internalType\":\"address\",\"name\":\"owner\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"number\",\"type\":\"uint256\"}],\"internalType\":\"struct Account.Info\",\"name\":\"account\",\"type\":\"tuple\"}],\"name\":\"setRequireTakerAccount\",\"outputs\":[],\"payable\":false,\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"constant\":true,\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"name\":\"valid\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"payable\":false,\"stateMutability\":\"view\",\"type\":\"function\"}],\"devdoc\":{\"author\":\"dYdX * IAutoTrader for testing\",\"methods\":{},\"title\":\"TestAutoTrader\"},\"userdoc\":{\"methods\":{}}},\"settings\":{\"compilationTarget\":{\"/Users/corey/Leavitt-Innovations/dolomite-v2-protocol/contracts/testing/TestAutoTrader.sol\":\"TestAutoTrader\"},\"evmVersion\":\"istanbul\",\"libraries\":{},\"optimizer\":{\"enabled\":true,\"runs\":10000},\"remappings\":[]},\"sources\":{\"/Users/corey/Leavitt-Innovations/dolomite-v2-protocol/contracts/protocol/interfaces/IAutoTrader.sol\":{\"keccak256\":\"0x62cbb936c4abdfc1ab33bb3ee5505279cc7354f9404bedf74ee3d099623a6dfa\",\"urls\":[\"bzz-raw://91ab2bd45600b1d3268a5592deb8b396d0fc4bba05a00d1aa4b4b785a6ee46ad\",\"dweb:/ipfs/QmVmBdFGFuA6XzaWxVAxxFDH81mhomg6uJvnYi4NYRHfDk\"]},\"/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/Actions.sol\":{\"keccak256\":\"0x44ec62b766a88a2f65267991e76cab88711e733b826dc9e578cb6ad6b38b2445\",\"urls\":[\"bzz-raw://731a8d44e57c9dcd7fbdefc37a6b5889c0d06defb3bd66b921b2a7db0edf0103\",\"dweb:/ipfs/QmcVbXc9oi5DMxjPtsBF76oJzD6zVjm7RuXgJfP3Goqrrb\"]},\"/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/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\"]},\"/Users/corey/Leavitt-Innovations/dolomite-v2-protocol/contracts/testing/TestAutoTrader.sol\":{\"keccak256\":\"0x2fde3aebf2760da357ba8534714a4a4c17107494169e9684e16d85564f1aad67\",\"urls\":[\"bzz-raw://ff7cbbfa31be62b7d8c6bfba59b26e68657f13529251a1e13bcce05f09596b17\",\"dweb:/ipfs/QmQwY185DjVZXMzL43mCV2TjCCnekPwCAmLZq3E6xXyjbC\"]},\"@openzeppelin/contracts/math/SafeMath.sol\":{\"keccak256\":\"0x640b6dee7a4b830bdfd52b5031a07fc2b12209f5b2e29e5d364a7d37f69d8076\",\"urls\":[\"bzz-raw://31113152e1ddb78fe7a4197f247591ca894e93f916867beb708d8e747b6cc74f\",\"dweb:/ipfs/QmbZaJyXdpsYGykVhHH9qpVGQg9DGCxE2QufbCUy3daTgq\"]}},\"version\":1}",
|
|
592
|
+
"bytecode": "0x608060405234801561001057600080fd5b506115cb806100206000396000f3fe608060405234801561001057600080fd5b50600436106101365760003560e01c8063bf8712c5116100b2578063e73af6fa11610081578063ef28faa911610066578063ef28faa914610270578063f0ba844014610285578063f4d193de146102a857610136565b8063e73af6fa14610255578063e81cb6051461025d57610136565b8063bf8712c514610207578063cd59f0c314610227578063d60463bb1461023a578063df9812671461024d57610136565b806348cedc55116101095780636b9d21e5116100ee5780636b9d21e5146101cb5780636ff94664146101de5780639ccf7320146101f457610136565b806348cedc55146101a55780636645da41146101b857610136565b80630b8bbc2d1461013b5780630e147b011461015a5780633858db2c14610170578063448f706514610185575b600080fd5b6101436102b0565b604051610151929190611394565b60405180910390f35b6101626102d2565b6040516101519291906113af565b61018361017e3660046110bf565b6102e1565b005b610198610193366004611117565b6102e6565b60405161015191906113ce565b6101836101b3366004611083565b610800565b6101836101c6366004611083565b61085c565b6101836101d93660046110bf565b6108b8565b6101e66108bd565b60405161015192919061132f565b6101836102023660046110dd565b6108df565b61021a6102153660046110bf565b6108ed565b6040516101519190611351565b61018361023536600461105d565b610902565b61018361024836600461105d565b610951565b6101e66109a0565b6101436109c2565b61018361026b3660046110a1565b6109e4565b610278610a00565b60405161015191906113dc565b6102986102933660046110bf565b610a06565b604051610151949392919061135f565b610278610a38565b60085460ff81169061010090046fffffffffffffffffffffffffffffffff1682565b600a54600b5460ff9091169082565b600355565b6102ee610e88565b600254156103455761034589600254147f546573744175746f5472616465720000000000000000000000000000000000007f696e707574206d61726b6574206d69736d617463680000000000000000000000610a3e565b6003541561039c5761039c88600354147f546573744175746f5472616465720000000000000000000000000000000000007f6f7574707574206d61726b6574206d69736d6174636800000000000000000000610a3e565b60045473ffffffffffffffffffffffffffffffffffffffff16156104795786516004546104259173ffffffffffffffffffffffffffffffffffffffff9182169116147f546573744175746f5472616465720000000000000000000000000000000000007f6d616b6572206163636f756e74206f776e6572206d69736d6174636800000000610a3e565b602087015160055461047991147f546573744175746f5472616465720000000000000000000000000000000000007f6d616b6572206163636f756e74206e756d626572206d69736d61746368000000610a3e565b60065473ffffffffffffffffffffffffffffffffffffffff16156105565785516006546105029173ffffffffffffffffffffffffffffffffffffffff9182169116147f546573744175746f5472616465720000000000000000000000000000000000007f74616b6572206163636f756e74206f776e6572206d69736d6174636800000000610a3e565b602086015160075461055691147f546573744175746f5472616465720000000000000000000000000000000000007f74616b6572206163636f756e74206e756d626572206d69736d61746368000000610a3e565b60085461010090046fffffffffffffffffffffffffffffffff161561063e5784516008546105cf91151560ff9091161515147f546573744175746f5472616465720000000000000000000000000000000000007f6f6c64496e707574506172207369676e206d69736d6174636800000000000000610a3e565b602085015160085461063e916fffffffffffffffffffffffffffffffff90811661010090920416147f546573744175746f5472616465720000000000000000000000000000000000007f6f6c64496e7075745061722076616c7565206d69736d61746368000000000000610a3e565b60095461010090046fffffffffffffffffffffffffffffffff16156107265783516009546106b791151560ff9091161515147f546573744175746f5472616465720000000000000000000000000000000000007f6e6577496e707574506172207369676e206d69736d6174636800000000000000610a3e565b6020840151600954610726916fffffffffffffffffffffffffffffffff90811661010090920416147f546573744175746f5472616465720000000000000000000000000000000000007f6e6577496e7075745061722076616c7565206d69736d61746368000000000000610a3e565b600b54156107dc578251600a5461078891151560ff9091161515147f546573744175746f5472616465720000000000000000000000000000000000007f696e707574576569207369676e206d69736d6174636800000000000000000000610a3e565b6020830151600b546107dc91147f546573744175746f5472616465720000000000000000000000000000000000007f696e7075745765692076616c7565206d69736d61746368000000000000000000610a3e565b60006107e783610af4565b90506107f281610b51565b9a9950505050505050505050565b8051600880546020909301516fffffffffffffffffffffffffffffffff16610100027fffffffffffffffffffffffffffffff00000000000000000000000000000000ff92151560ff199094169390931791909116919091179055565b8051600980546020909301516fffffffffffffffffffffffffffffffff16610100027fffffffffffffffffffffffffffffff00000000000000000000000000000000ff92151560ff199094169390931791909116919091179055565b600255565b60045460055473ffffffffffffffffffffffffffffffffffffffff9091169082565b6108e98282610cb3565b5050565b60016020526000908152604090205460ff1681565b8051600680547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff90921691909117905560200151600755565b8051600480547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff90921691909117905560200151600555565b60065460075473ffffffffffffffffffffffffffffffffffffffff9091169082565b60095460ff81169061010090046fffffffffffffffffffffffffffffffff1682565b8051600a805460ff191691151591909117905560200151600b55565b60025481565b6000602081905290815260409020805460019091015460ff808316926101008104821692620100009091049091169084565b60035481565b82610aef57610a4c82610db4565b7f3a20000000000000000000000000000000000000000000000000000000000000610a7683610db4565b604051602001610a88939291906112fe565b604080517fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0818403018152908290527f08c379a0000000000000000000000000000000000000000000000000000000008252610ae6916004016113bd565b60405180910390fd5b505050565b6000610b4582516020147f546573744175746f5472616465720000000000000000000000000000000000007f43616c6c206461746120696e76616c6964206c656e6774680000000000000000610a3e565b5060208101515b919050565b610b59610e88565b600082815260016020526040902054610bb69060ff167f546573744175746f5472616465720000000000000000000000000000000000007f547261646520646f6573206e6f74206578697374000000000000000000000000610a3e565b610bbe610e88565b60008381526020818152604091829020825160808101909352805460ff808216151585529192840191610100909104166001811115610bf957fe5b6001811115610c0457fe5b8152815460209091019062010000900460ff166001811115610c2257fe5b6001811115610c2d57fe5b81526001918201546020918201526000868152808252604080822080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffff000000168155840182905592909152818120805460ff19169055905191925084917fc08afd407b9302167fb675f0504288e953f9807568a5e2b502d47ea8bc6dcbed9190a292915050565b6000828152602081815260409091208251815460ff19169015151780825591830151839282907fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00ff16610100836001811115610d0a57fe5b02179055506040820151815482907fffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00ffff1662010000836001811115610d4a57fe5b02179055506060919091015160019182015560008381526020829052604090819020805460ff19169092179091555182907ff5a75b9133c4ad3380c8fb241cbd49cbc06a972af65c00521cb656776e8eab0f90610da89084906113ce565b60405180910390a25050565b60608082604051602001610dc891906112e9565b604080517fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0818403018152919052905060205b8015610e715781517fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff90910190829082908110610e3457fe5b01602001517fff000000000000000000000000000000000000000000000000000000000000001615610e6c5760010181529050610b4c565b610dfb565b505060408051600081526020810190915292915050565b604080516080810190915260008082526020820190815260200160008152602001600081525090565b8035610ebc8161154c565b92915050565b8035610ebc81611560565b600082601f830112610ede57600080fd5b8135610ef1610eec82611411565b6113ea565b91508082526020830160208301858383011115610f0d57600080fd5b610f188382846114df565b50505092915050565b8035610ebc81611569565b600060808284031215610f3e57600080fd5b610f4860806113ea565b90506000610f568484610ec2565b8252506020610f6784848301610f21565b6020830152506040610f7b84828501610f21565b6040830152506060610f8f84828501611052565b60608301525092915050565b600060408284031215610fad57600080fd5b610fb760406113ea565b90506000610fc58484610eb1565b8252506020610fd684848301611052565b60208301525092915050565b600060408284031215610ff457600080fd5b610ffe60406113ea565b9050600061100c8484610ec2565b8252506020610fd684848301611047565b60006040828403121561102f57600080fd5b61103960406113ea565b90506000610fc58484610ec2565b8035610ebc81611576565b8035610ebc8161157f565b60006040828403121561106f57600080fd5b600061107b8484610f9b565b949350505050565b60006040828403121561109557600080fd5b600061107b8484610fe2565b6000604082840312156110b357600080fd5b600061107b848461101d565b6000602082840312156110d157600080fd5b600061107b8484611052565b60008060a083850312156110f057600080fd5b60006110fc8585611052565b925050602061110d85828601610f2c565b9150509250929050565b6000806000806000806000806101a0898b03121561113457600080fd5b60006111408b8b611052565b98505060206111518b828c01611052565b97505060406111628b828c01610f9b565b96505060806111738b828c01610f9b565b95505060c06111848b828c01610fe2565b9450506101006111968b828c01610fe2565b9350506101406111a88b828c0161101d565b92505061018089013567ffffffffffffffff8111156111c657600080fd5b6111d28b828c01610ecd565b9150509295985092959890939650565b6111eb81611464565b82525050565b6111eb8161146f565b6111eb61120682611474565b611499565b6111eb61120682611499565b600061122282611457565b61122c8185610b4c565b935061123c8185602086016114eb565b9290920192915050565b6111eb816114d4565b600061125a82611457565b611264818561145b565b93506112748185602086016114eb565b61127d81611517565b9093019392505050565b8051608083019061129884826111f1565b5060208201516112ab6020850182611246565b5060408201516112be6040850182611246565b5060608201516112d160608501826112e0565b50505050565b6111eb816114a6565b6111eb81611499565b60006112f5828461120b565b50602001919050565b600061130a8286611217565b915061131682856111fa565b6002820191506113268284611217565b95945050505050565b6040810161133d82856111e2565b61134a60208301846112e0565b9392505050565b60208101610ebc82846111f1565b6080810161136d82876111f1565b61137a6020830186611246565b6113876040830185611246565b61132660608301846112e0565b604081016113a282856111f1565b61134a60208301846112d7565b6040810161133d82856111f1565b6020808252810161134a818461124f565b60808101610ebc8284611287565b60208101610ebc82846112e0565b60405181810167ffffffffffffffff8111828210171561140957600080fd5b604052919050565b600067ffffffffffffffff82111561142857600080fd5b506020601f919091017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0160190565b5190565b90815260200190565b6000610ebc826114bb565b151590565b7fffff0000000000000000000000000000000000000000000000000000000000001690565b90565b80610b4c8161153f565b6fffffffffffffffffffffffffffffffff1690565b73ffffffffffffffffffffffffffffffffffffffff1690565b6000610ebc8261149c565b82818337506000910152565b60005b838110156115065781810151838201526020016114ee565b838111156112d15750506000910152565b601f017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe01690565b6002811061154957fe5b50565b61155581611464565b811461154957600080fd5b6115558161146f565b6002811061154957600080fd5b611555816114a6565b6115558161149956fea365627a7a723158200a5469e8ca4cffcafe228eeafa10aa9a39a711a2b2c4d988d333834984bd33ce6c6578706572696d656e74616cf564736f6c63430005100040",
|
|
593
|
+
"deployedBytecode": "0x608060405234801561001057600080fd5b50600436106101365760003560e01c8063bf8712c5116100b2578063e73af6fa11610081578063ef28faa911610066578063ef28faa914610270578063f0ba844014610285578063f4d193de146102a857610136565b8063e73af6fa14610255578063e81cb6051461025d57610136565b8063bf8712c514610207578063cd59f0c314610227578063d60463bb1461023a578063df9812671461024d57610136565b806348cedc55116101095780636b9d21e5116100ee5780636b9d21e5146101cb5780636ff94664146101de5780639ccf7320146101f457610136565b806348cedc55146101a55780636645da41146101b857610136565b80630b8bbc2d1461013b5780630e147b011461015a5780633858db2c14610170578063448f706514610185575b600080fd5b6101436102b0565b604051610151929190611394565b60405180910390f35b6101626102d2565b6040516101519291906113af565b61018361017e3660046110bf565b6102e1565b005b610198610193366004611117565b6102e6565b60405161015191906113ce565b6101836101b3366004611083565b610800565b6101836101c6366004611083565b61085c565b6101836101d93660046110bf565b6108b8565b6101e66108bd565b60405161015192919061132f565b6101836102023660046110dd565b6108df565b61021a6102153660046110bf565b6108ed565b6040516101519190611351565b61018361023536600461105d565b610902565b61018361024836600461105d565b610951565b6101e66109a0565b6101436109c2565b61018361026b3660046110a1565b6109e4565b610278610a00565b60405161015191906113dc565b6102986102933660046110bf565b610a06565b604051610151949392919061135f565b610278610a38565b60085460ff81169061010090046fffffffffffffffffffffffffffffffff1682565b600a54600b5460ff9091169082565b600355565b6102ee610e88565b600254156103455761034589600254147f546573744175746f5472616465720000000000000000000000000000000000007f696e707574206d61726b6574206d69736d617463680000000000000000000000610a3e565b6003541561039c5761039c88600354147f546573744175746f5472616465720000000000000000000000000000000000007f6f7574707574206d61726b6574206d69736d6174636800000000000000000000610a3e565b60045473ffffffffffffffffffffffffffffffffffffffff16156104795786516004546104259173ffffffffffffffffffffffffffffffffffffffff9182169116147f546573744175746f5472616465720000000000000000000000000000000000007f6d616b6572206163636f756e74206f776e6572206d69736d6174636800000000610a3e565b602087015160055461047991147f546573744175746f5472616465720000000000000000000000000000000000007f6d616b6572206163636f756e74206e756d626572206d69736d61746368000000610a3e565b60065473ffffffffffffffffffffffffffffffffffffffff16156105565785516006546105029173ffffffffffffffffffffffffffffffffffffffff9182169116147f546573744175746f5472616465720000000000000000000000000000000000007f74616b6572206163636f756e74206f776e6572206d69736d6174636800000000610a3e565b602086015160075461055691147f546573744175746f5472616465720000000000000000000000000000000000007f74616b6572206163636f756e74206e756d626572206d69736d61746368000000610a3e565b60085461010090046fffffffffffffffffffffffffffffffff161561063e5784516008546105cf91151560ff9091161515147f546573744175746f5472616465720000000000000000000000000000000000007f6f6c64496e707574506172207369676e206d69736d6174636800000000000000610a3e565b602085015160085461063e916fffffffffffffffffffffffffffffffff90811661010090920416147f546573744175746f5472616465720000000000000000000000000000000000007f6f6c64496e7075745061722076616c7565206d69736d61746368000000000000610a3e565b60095461010090046fffffffffffffffffffffffffffffffff16156107265783516009546106b791151560ff9091161515147f546573744175746f5472616465720000000000000000000000000000000000007f6e6577496e707574506172207369676e206d69736d6174636800000000000000610a3e565b6020840151600954610726916fffffffffffffffffffffffffffffffff90811661010090920416147f546573744175746f5472616465720000000000000000000000000000000000007f6e6577496e7075745061722076616c7565206d69736d61746368000000000000610a3e565b600b54156107dc578251600a5461078891151560ff9091161515147f546573744175746f5472616465720000000000000000000000000000000000007f696e707574576569207369676e206d69736d6174636800000000000000000000610a3e565b6020830151600b546107dc91147f546573744175746f5472616465720000000000000000000000000000000000007f696e7075745765692076616c7565206d69736d61746368000000000000000000610a3e565b60006107e783610af4565b90506107f281610b51565b9a9950505050505050505050565b8051600880546020909301516fffffffffffffffffffffffffffffffff16610100027fffffffffffffffffffffffffffffff00000000000000000000000000000000ff92151560ff199094169390931791909116919091179055565b8051600980546020909301516fffffffffffffffffffffffffffffffff16610100027fffffffffffffffffffffffffffffff00000000000000000000000000000000ff92151560ff199094169390931791909116919091179055565b600255565b60045460055473ffffffffffffffffffffffffffffffffffffffff9091169082565b6108e98282610cb3565b5050565b60016020526000908152604090205460ff1681565b8051600680547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff90921691909117905560200151600755565b8051600480547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff90921691909117905560200151600555565b60065460075473ffffffffffffffffffffffffffffffffffffffff9091169082565b60095460ff81169061010090046fffffffffffffffffffffffffffffffff1682565b8051600a805460ff191691151591909117905560200151600b55565b60025481565b6000602081905290815260409020805460019091015460ff808316926101008104821692620100009091049091169084565b60035481565b82610aef57610a4c82610db4565b7f3a20000000000000000000000000000000000000000000000000000000000000610a7683610db4565b604051602001610a88939291906112fe565b604080517fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0818403018152908290527f08c379a0000000000000000000000000000000000000000000000000000000008252610ae6916004016113bd565b60405180910390fd5b505050565b6000610b4582516020147f546573744175746f5472616465720000000000000000000000000000000000007f43616c6c206461746120696e76616c6964206c656e6774680000000000000000610a3e565b5060208101515b919050565b610b59610e88565b600082815260016020526040902054610bb69060ff167f546573744175746f5472616465720000000000000000000000000000000000007f547261646520646f6573206e6f74206578697374000000000000000000000000610a3e565b610bbe610e88565b60008381526020818152604091829020825160808101909352805460ff808216151585529192840191610100909104166001811115610bf957fe5b6001811115610c0457fe5b8152815460209091019062010000900460ff166001811115610c2257fe5b6001811115610c2d57fe5b81526001918201546020918201526000868152808252604080822080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffff000000168155840182905592909152818120805460ff19169055905191925084917fc08afd407b9302167fb675f0504288e953f9807568a5e2b502d47ea8bc6dcbed9190a292915050565b6000828152602081815260409091208251815460ff19169015151780825591830151839282907fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00ff16610100836001811115610d0a57fe5b02179055506040820151815482907fffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00ffff1662010000836001811115610d4a57fe5b02179055506060919091015160019182015560008381526020829052604090819020805460ff19169092179091555182907ff5a75b9133c4ad3380c8fb241cbd49cbc06a972af65c00521cb656776e8eab0f90610da89084906113ce565b60405180910390a25050565b60608082604051602001610dc891906112e9565b604080517fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0818403018152919052905060205b8015610e715781517fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff90910190829082908110610e3457fe5b01602001517fff000000000000000000000000000000000000000000000000000000000000001615610e6c5760010181529050610b4c565b610dfb565b505060408051600081526020810190915292915050565b604080516080810190915260008082526020820190815260200160008152602001600081525090565b8035610ebc8161154c565b92915050565b8035610ebc81611560565b600082601f830112610ede57600080fd5b8135610ef1610eec82611411565b6113ea565b91508082526020830160208301858383011115610f0d57600080fd5b610f188382846114df565b50505092915050565b8035610ebc81611569565b600060808284031215610f3e57600080fd5b610f4860806113ea565b90506000610f568484610ec2565b8252506020610f6784848301610f21565b6020830152506040610f7b84828501610f21565b6040830152506060610f8f84828501611052565b60608301525092915050565b600060408284031215610fad57600080fd5b610fb760406113ea565b90506000610fc58484610eb1565b8252506020610fd684848301611052565b60208301525092915050565b600060408284031215610ff457600080fd5b610ffe60406113ea565b9050600061100c8484610ec2565b8252506020610fd684848301611047565b60006040828403121561102f57600080fd5b61103960406113ea565b90506000610fc58484610ec2565b8035610ebc81611576565b8035610ebc8161157f565b60006040828403121561106f57600080fd5b600061107b8484610f9b565b949350505050565b60006040828403121561109557600080fd5b600061107b8484610fe2565b6000604082840312156110b357600080fd5b600061107b848461101d565b6000602082840312156110d157600080fd5b600061107b8484611052565b60008060a083850312156110f057600080fd5b60006110fc8585611052565b925050602061110d85828601610f2c565b9150509250929050565b6000806000806000806000806101a0898b03121561113457600080fd5b60006111408b8b611052565b98505060206111518b828c01611052565b97505060406111628b828c01610f9b565b96505060806111738b828c01610f9b565b95505060c06111848b828c01610fe2565b9450506101006111968b828c01610fe2565b9350506101406111a88b828c0161101d565b92505061018089013567ffffffffffffffff8111156111c657600080fd5b6111d28b828c01610ecd565b9150509295985092959890939650565b6111eb81611464565b82525050565b6111eb8161146f565b6111eb61120682611474565b611499565b6111eb61120682611499565b600061122282611457565b61122c8185610b4c565b935061123c8185602086016114eb565b9290920192915050565b6111eb816114d4565b600061125a82611457565b611264818561145b565b93506112748185602086016114eb565b61127d81611517565b9093019392505050565b8051608083019061129884826111f1565b5060208201516112ab6020850182611246565b5060408201516112be6040850182611246565b5060608201516112d160608501826112e0565b50505050565b6111eb816114a6565b6111eb81611499565b60006112f5828461120b565b50602001919050565b600061130a8286611217565b915061131682856111fa565b6002820191506113268284611217565b95945050505050565b6040810161133d82856111e2565b61134a60208301846112e0565b9392505050565b60208101610ebc82846111f1565b6080810161136d82876111f1565b61137a6020830186611246565b6113876040830185611246565b61132660608301846112e0565b604081016113a282856111f1565b61134a60208301846112d7565b6040810161133d82856111f1565b6020808252810161134a818461124f565b60808101610ebc8284611287565b60208101610ebc82846112e0565b60405181810167ffffffffffffffff8111828210171561140957600080fd5b604052919050565b600067ffffffffffffffff82111561142857600080fd5b506020601f919091017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0160190565b5190565b90815260200190565b6000610ebc826114bb565b151590565b7fffff0000000000000000000000000000000000000000000000000000000000001690565b90565b80610b4c8161153f565b6fffffffffffffffffffffffffffffffff1690565b73ffffffffffffffffffffffffffffffffffffffff1690565b6000610ebc8261149c565b82818337506000910152565b60005b838110156115065781810151838201526020016114ee565b838111156112d15750506000910152565b601f017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe01690565b6002811061154957fe5b50565b61155581611464565b811461154957600080fd5b6115558161146f565b6002811061154957600080fd5b611555816114a6565b6115558161149956fea365627a7a723158200a5469e8ca4cffcafe228eeafa10aa9a39a711a2b2c4d988d333834984bd33ce6c6578706572696d656e74616cf564736f6c63430005100040",
|
|
594
594
|
"sourceMap": "1127:6136:88:-;;;;8:9:-1;5:2;;;30:1;27;20:12;5:2;1127:6136:88;;;;;;;",
|
|
595
595
|
"deployedSourceMap": "1127:6136:88:-;;;;8:9:-1;5:2;;;30:1;27;20:12;5:2;1127:6136:88;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;1799:35;;;:::i;:::-;;;;;;;;;;;;;;;;;1881:32;;;:::i;:::-;;;;;;;;;2279:146;;;;;;;;;:::i;:::-;;3213:2908;;;;;;;;;:::i;:::-;;;;;;;;2723:143;;;;;;;;;:::i;2872:::-;;;;;;;;;:::i;2131:142::-;;;;;;;;;:::i;1709:39::-;;;:::i;:::-;;;;;;;;;1972:153;;;;;;;;;:::i;1581:38::-;;;;;;;;;:::i;:::-;;;;;;;;2577:140;;;;;;;;;:::i;2431:::-;;;;;;;;;:::i;1754:39::-;;;:::i;1840:35::-;;;:::i;3021:131::-;;;;;;;;;:::i;1626:35::-;;;:::i;:::-;;;;;;;;1525:50;;;;;;;;;:::i;:::-;;;;;;;;;;;1667:36;;;:::i;1799:35::-;;;;;;;;;;;;;:::o;1881:32::-;;;;;;;;;;;:::o;2279:146::-;2380:21;:38;2279:146::o;3213:2908::-;3563:24;;:::i;:::-;3607:20;;:25;3603:200;;3648:144;3702:13;3678:20;;:37;3733:4;3648:144;:12;:144::i;:::-;3816:21;;:26;3812:204;;3858:147;3913:14;3888:21;;:39;3945:4;3858:147;:12;:147::i;:::-;4029:19;:25;:39;:25;:39;4025:409;;4143:18;;4114:19;:25;4084:161;;4114:47;:25;;;:47;;;4179:4;4084:161;:12;:161::i;:::-;4319:19;;;;4289:26;;4259:164;;4289:49;4356:4;4259:164;:12;:164::i;:::-;4447:19;:25;:39;:25;:39;4443:409;;4561:18;;4532:19;:25;4502:161;;4532:47;:25;;;:47;;;4597:4;4502:161;:12;:161::i;:::-;4737:19;;;;4707:26;;4677:164;;4707:49;4774:4;4677:164;:12;:164::i;:::-;4865:18;:24;;;;;;:29;4861:393;;4967:16;;4940:18;:23;4910:158;;4940:43;;:23;;;;:43;;;5001:4;4910:158;:12;:158::i;:::-;5140:17;;;;5112:18;:24;5082:161;;5112:45;;;;:24;;;;;:45;5175:4;5082:161;:12;:161::i;:::-;5267:18;:24;;;;;;:29;5263:385;;5369:16;;5342:18;:23;5312:154;;5342:43;;:23;;;;:43;;;5403:4;5312:154;:12;:154::i;:::-;5538:17;;;;5510:18;:24;5480:157;;5510:45;;;;:24;;;;;:45;5573:4;5480:157;:12;:157::i;:::-;5661:21;;:26;5657:364;;5757:13;;5733:15;:20;5703:145;;5733:37;;:20;;;;:37;;;5788:4;5703:145;:12;:145::i;:::-;5917:14;;;;5892:21;;5862:148;;5892:39;5949:4;5862:148;:12;:148::i;:::-;6031:13;6047:25;6062:9;6047:14;:25::i;:::-;6031:41;;6089:25;6108:5;6089:18;:25::i;:::-;6082:32;3213:2908;-1:-1:-1;;;;;;;;;;3213:2908:88:o;2723:143::-;2827:32;;:18;:32;;;;;;;;;;;;;;;-1:-1:-1;;2827:32:88;;;;;;;;;;;;;;;;;2723:143::o;2872:::-;2976:32;;:18;:32;;;;;;;;;;;;;;;-1:-1:-1;;2976:32:88;;;;;;;;;;;;;;;;;2872:143::o;2131:142::-;2230:20;:36;2131:142::o;1709:39::-;;;;;;;;;;;:::o;1972:153::-;2088:30;2104:5;2111:6;2088:15;:30::i;:::-;1972:153;;:::o;1581:38::-;;;;;;;;;;;;;;;:::o;2577:140::-;2681:29;;:19;:29;;;;;;;;;;;;;;;;;;;2577:140::o;2431:::-;2535:29;;:19;:29;;;;;;;;;;;;;;;;;;;2431:140::o;1754:39::-;;;;;;;;;;;:::o;1840:35::-;;;;;;;;;;;;;:::o;3021:131::-;3119:26;;:15;:26;;-1:-1:-1;;3119:26:88;;;;;;;;;;;;;;;3021:131::o;1626:35::-;;;;:::o;1525:50::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::o;1667:36::-;;;;:::o;1294:426:77:-;1428:4;1423:291;;1542:24;1561:4;1542:18;:24::i;:::-;1592:5;1623:26;1642:6;1623:18;:26::i;:::-;1500:171;;;;;;;;;;;;;;;22:32:-1;26:21;;;22:32;6:49;;1500:171:77;;;;1448:255;;;;;;;;;;;;;;;;;1423:291;1294:426;;;:::o;6816:445:88:-;6924:7;6947:116;6973:9;:16;6993:2;6973:22;7009:4;6947:116;:12;:116::i;:::-;-1:-1:-1;7218:2:88;7203:18;;7197:25;6816:445;;;;:::o;6403:407::-;6493:24;;:::i;:::-;6559:12;;;;:5;:12;;;;;;6533:102;;6559:12;;6585:4;6533:102;:12;:102::i;:::-;6645:31;;:::i;:::-;6679:4;:11;;;;;;;;;;;;6645:45;;;;;;;;;;;;;;;;;;6679:11;;6645:45;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;6707:11:88;;;;;;;;;;6700:18;;;;;;;;;;;6735:12;;;;;;;6728:19;;-1:-1:-1;;6728:19:88;;;6762:18;;6645:45;;-1:-1:-1;6712:5:88;;6762:18;;-1:-1:-1;6762:18:88;6797:6;6403:407;-1:-1:-1;;6403:407:88:o;6179:218::-;6304:4;:11;;;;;;;;;;;:20;;;;-1:-1:-1;;6304:20:88;;;;;;;;;;;;;;:11;;:20;;;;-1:-1:-1;6304:20:88;;;;;;;;;;;-1:-1:-1;6304:20:88;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;6304:20:88;;;;;;;;;;;6334:12;;;;;;;;;;;;;:19;;-1:-1:-1;;6334:19:88;;;;;;;6368:22;6340:5;;6368:22;;;;6383:6;;6368:22;;;;;;;;;;6179:218;;:::o;6359:966:77:-;6462:12;6537:19;6576:5;6559:23;;;;;;;;;;;;;22:32:-1;26:21;;;22:32;6:49;;6559:23:77;;;;-1:-1:-1;49:4;6688:571:77;6709:5;;6688:571;;6960:9;;6862:3;;;;;6960:6;;6862:3;;6960:9;;;;;;;;;;;;:14;6956:293;;7015:1;7011:5;7141:22;;7148:6;-1:-1:-1;7221:13:77;;6956:293;6688:571;;;-1:-1:-1;;7306:12:77;;;7316:1;7306:12;;;;;;;;;7299:19;-1:-1:-1;;6359:966:77:o;1127:6136:88:-;;;;;;;;;;-1:-1:-1;1127:6136:88;;;;;;;;;;;;;;;;;;;;;:::o;5:130:-1:-;72:20;;97:33;72:20;97:33;;;57:78;;;;;142:124;206:20;;231:30;206:20;231:30;;274:440;;375:3;368:4;360:6;356:17;352:27;342:2;;393:1;390;383:12;342:2;430:6;417:20;452:64;467:48;508:6;467:48;;;452:64;;;443:73;;536:6;529:5;522:21;572:4;564:6;560:17;605:4;598:5;594:16;640:3;631:6;626:3;622:16;619:25;616:2;;;657:1;654;647:12;616:2;667:41;701:6;696:3;691;667:41;;;335:379;;;;;;;;722:176;812:20;;837:56;812:20;837:56;;1113:808;;1232:4;1220:9;1215:3;1211:19;1207:30;1204:2;;;1250:1;1247;1240:12;1204:2;1268:20;1283:4;1268:20;;;1259:29;-1:-1;1338:1;1370:46;1412:3;1392:9;1370:46;;;1345:72;;-1:-1;1486:2;1519:72;1587:3;1563:22;;;1519:72;;;1512:4;1505:5;1501:16;1494:98;1438:165;1652:2;1685:69;1750:3;1741:6;1730:9;1726:22;1685:69;;;1678:4;1671:5;1667:16;1660:95;1613:153;1817:2;1850:49;1895:3;1886:6;1875:9;1871:22;1850:49;;;1843:4;1836:5;1832:16;1825:75;1776:135;1198:723;;;;;1954:468;;2066:4;2054:9;2049:3;2045:19;2041:30;2038:2;;;2084:1;2081;2074:12;2038:2;2102:20;2117:4;2102:20;;;2093:29;-1:-1;2173:1;2205:49;2250:3;2230:9;2205:49;;;2180:75;;-1:-1;2318:2;2351:49;2396:3;2372:22;;;2351:49;;;2344:4;2337:5;2333:16;2326:75;2276:136;2032:390;;;;;2452:462;;2563:4;2551:9;2546:3;2542:19;2538:30;2535:2;;;2581:1;2578;2571:12;2535:2;2599:20;2614:4;2599:20;;;2590:29;-1:-1;2669:1;2701:46;2743:3;2723:9;2701:46;;;2676:72;;-1:-1;2810:2;2843:49;2888:3;2864:22;;;2843:49;;2944:462;;3055:4;3043:9;3038:3;3034:19;3030:30;3027:2;;;3073:1;3070;3063:12;3027:2;3091:20;3106:4;3091:20;;;3082:29;-1:-1;3161:1;3193:46;3235:3;3215:9;3193:46;;3413:130;3480:20;;3505:33;3480:20;3505:33;;3550:130;3617:20;;3642:33;3617:20;3642:33;;3687:287;;3814:2;3802:9;3793:7;3789:23;3785:32;3782:2;;;3830:1;3827;3820:12;3782:2;3865:1;3882:76;3950:7;3930:9;3882:76;;;3872:86;3776:198;-1:-1;;;;3776:198;3981:285;;4107:2;4095:9;4086:7;4082:23;4078:32;4075:2;;;4123:1;4120;4113:12;4075:2;4158:1;4175:75;4242:7;4222:9;4175:75;;4273:285;;4399:2;4387:9;4378:7;4374:23;4370:32;4367:2;;;4415:1;4412;4405:12;4367:2;4450:1;4467:75;4534:7;4514:9;4467:75;;4565:241;;4669:2;4657:9;4648:7;4644:23;4640:32;4637:2;;;4685:1;4682;4675:12;4637:2;4720:1;4737:53;4782:7;4762:9;4737:53;;4813:427;;;4964:3;4952:9;4943:7;4939:23;4935:33;4932:2;;;4981:1;4978;4971:12;4932:2;5016:1;5033:53;5078:7;5058:9;5033:53;;;5023:63;;4995:97;5123:2;5141:83;5216:7;5207:6;5196:9;5192:22;5141:83;;;5131:93;;5102:128;4926:314;;;;;;5247:1450;;;;;;;;;5591:3;5579:9;5570:7;5566:23;5562:33;5559:2;;;5608:1;5605;5598:12;5559:2;5643:1;5660:53;5705:7;5685:9;5660:53;;;5650:63;;5622:97;5750:2;5768:53;5813:7;5804:6;5793:9;5789:22;5768:53;;;5758:63;;5729:98;5858:2;5876:76;5944:7;5935:6;5924:9;5920:22;5876:76;;;5866:86;;5837:121;5989:3;6008:76;6076:7;6067:6;6056:9;6052:22;6008:76;;;5998:86;;5968:122;6121:3;6140:75;6207:7;6198:6;6187:9;6183:22;6140:75;;;6130:85;;6100:121;6252:3;6271:75;6338:7;6329:6;6318:9;6314:22;6271:75;;;6261:85;;6231:121;6383:3;6402:75;6469:7;6460:6;6449:9;6445:22;6402:75;;;6392:85;;6362:121;6542:3;6531:9;6527:19;6514:33;6567:18;6559:6;6556:30;6553:2;;;6599:1;6596;6589:12;6553:2;6619:62;6673:7;6664:6;6653:9;6649:22;6619:62;;;6609:72;;6493:194;5553:1144;;;;;;;;;;;;6704:113;6787:24;6805:5;6787:24;;;6782:3;6775:37;6769:48;;;6824:94;6891:21;6906:5;6891:21;;7036:148;7135:43;7154:23;7171:5;7154:23;;;7135:43;;7191:152;7292:45;7312:24;7330:5;7312:24;;7350:356;;7478:38;7510:5;7478:38;;;7528:88;7609:6;7604:3;7528:88;;;7521:95;;7621:52;7666:6;7661:3;7654:4;7647:5;7643:16;7621:52;;;7685:16;;;;;7458:248;-1:-1;;7458:248;7713:158;7807:58;7859:5;7807:58;;8381:347;;8493:39;8526:5;8493:39;;;8544:71;8608:6;8603:3;8544:71;;;8537:78;;8620:52;8665:6;8660:3;8653:4;8646:5;8642:16;8620:52;;;8693:29;8715:6;8693:29;;;8684:39;;;;8473:255;-1:-1;;;8473:255;8794:835;9013:23;;8947:4;8938:14;;;9042:57;8942:3;9013:23;9042:57;;;8967:138;9186:4;9179:5;9175:16;9169:23;9198:84;9276:4;9271:3;9267:14;9253:12;9198:84;;;9115:173;9360:4;9353:5;9349:16;9343:23;9372:81;9447:4;9442:3;9438:14;9424:12;9372:81;;;9298:161;9533:4;9526:5;9522:16;9516:23;9545:63;9602:4;9597:3;9593:14;9579:12;9545:63;;;9469:145;8920:709;;;;9636:113;9719:24;9737:5;9719:24;;9756:103;9829:24;9847:5;9829:24;;9986:244;;10105:75;10176:3;10167:6;10105:75;;;-1:-1;10202:2;10193:12;;10093:137;-1:-1;10093:137;10237:553;;10453:93;10542:3;10533:6;10453:93;;;10446:100;;10557:73;10626:3;10617:6;10557:73;;;10652:1;10647:3;10643:11;10636:18;;10672:93;10761:3;10752:6;10672:93;;;10665:100;10434:356;-1:-1;;;;;10434:356;10797:324;10943:2;10928:18;;10957:71;10932:9;11001:6;10957:71;;;11039:72;11107:2;11096:9;11092:18;11083:6;11039:72;;;10914:207;;;;;;11128:201;11240:2;11225:18;;11254:65;11229:9;11292:6;11254:65;;11336:613;11571:3;11556:19;;11586:65;11560:9;11624:6;11586:65;;;11662:93;11751:2;11740:9;11736:18;11727:6;11662:93;;;11766:90;11852:2;11841:9;11837:18;11828:6;11766:90;;;11867:72;11935:2;11924:9;11920:18;11911:6;11867:72;;11956:312;12096:2;12081:18;;12110:65;12085:9;12148:6;12110:65;;;12186:72;12254:2;12243:9;12239:18;12230:6;12186:72;;12275:312;12415:2;12400:18;;12429:65;12404:9;12467:6;12429:65;;12594:301;12732:2;12746:47;;;12717:18;;12807:78;12717:18;12871:6;12807:78;;12902:334;13080:3;13065:19;;13095:131;13069:9;13199:6;13095:131;;13243:213;13361:2;13346:18;;13375:71;13350:9;13419:6;13375:71;;13463:256;13525:2;13519:9;13551:17;;;13626:18;13611:34;;13647:22;;;13608:62;13605:2;;;13683:1;13680;13673:12;13605:2;13699;13692:22;13503:216;;-1:-1;13503:216;13726:321;;13869:18;13861:6;13858:30;13855:2;;;13901:1;13898;13891:12;13855:2;-1:-1;14032:4;13968;13945:17;;;;13964:9;13941:33;14022:15;;13792:255;14054:121;14141:12;;14112:63;14465:163;14568:19;;;14617:4;14608:14;;14561:67;14636:91;;14698:24;14716:5;14698:24;;14734:85;14800:13;14793:21;;14776:43;14826:144;14898:66;14887:78;;14870:100;14977:72;15039:5;15022:27;15056:152;15141:5;15147:56;15141:5;15147:56;;15368:113;15441:34;15430:46;;15413:68;15488:121;15561:42;15550:54;;15533:76;15695:152;;15795:47;15836:5;15795:47;;16008:145;16089:6;16084:3;16079;16066:30;-1:-1;16145:1;16127:16;;16120:27;16059:94;16162:268;16227:1;16234:101;16248:6;16245:1;16242:13;16234:101;;;16315:11;;;16309:18;16296:11;;;16289:39;16270:2;16263:10;16234:101;;;16350:6;16347:1;16344:13;16341:2;;;-1:-1;;16415:1;16397:16;;16390:27;16211:219;16599:97;16687:2;16667:14;16683:7;16663:28;;16647:49;16704:114;16796:1;16789:5;16786:12;16776:2;;16802:9;16776:2;16770:48;;16943:117;17012:24;17030:5;17012:24;;;17005:5;17002:35;16992:2;;17051:1;17048;17041:12;17067:111;17133:21;17148:5;17133:21;;17185:117;17277:1;17270:5;17267:12;17257:2;;17293:1;17290;17283:12;17430:117;17499:24;17517:5;17499:24;;17554:117;17623:24;17641:5;17623:24;",
|
|
596
596
|
"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 { IAutoTrader } from \"../protocol/interfaces/IAutoTrader.sol\";\nimport { Account } from \"../protocol/lib/Account.sol\";\nimport { Actions } from \"../protocol/lib/Actions.sol\";\nimport { Math } from \"../protocol/lib/Math.sol\";\nimport { Require } from \"../protocol/lib/Require.sol\";\nimport { Time } from \"../protocol/lib/Time.sol\";\nimport { Types } from \"../protocol/lib/Types.sol\";\n\n\n/**\n * @title TestAutoTrader\n * @author dYdX\n *\n * IAutoTrader for testing\n */\ncontract TestAutoTrader is\n IAutoTrader\n{\n // ============ Constants ============\n\n bytes32 constant FILE = \"TestAutoTrader\";\n\n // ============ Events ============\n\n event DataSet(\n uint256 indexed input,\n Types.AssetAmount output\n );\n\n event DataDeleted(\n uint256 indexed input\n );\n\n // ============ Storage ============\n\n // input => output\n mapping (uint256 => Types.AssetAmount) public data;\n mapping (uint256 => bool) public valid;\n\n uint256 public requireInputMarketId;\n uint256 public requireOutputMarketId;\n Account.Info public requireMakerAccount;\n Account.Info public requireTakerAccount;\n Types.Par public requireOldInputPar;\n Types.Par public requireNewInputPar;\n Types.Wei public requireInputWei;\n\n // ============ Testing Functions ============\n\n function setData(\n uint256 input,\n Types.AssetAmount memory output\n )\n public\n {\n setDataInternal(input, output);\n }\n\n function setRequireInputMarketId(\n uint256 inputMarketId\n )\n public\n {\n requireInputMarketId = inputMarketId;\n }\n\n function setRequireOutputMarketId(\n uint256 outputMarketId\n )\n public\n {\n requireOutputMarketId = outputMarketId;\n }\n\n function setRequireMakerAccount(\n Account.Info memory account\n )\n public\n {\n requireMakerAccount = account;\n }\n\n function setRequireTakerAccount(\n Account.Info memory account\n )\n public\n {\n requireTakerAccount = account;\n }\n\n function setRequireOldInputPar(\n Types.Par memory oldInputPar\n )\n public\n {\n requireOldInputPar = oldInputPar;\n }\n\n function setRequireNewInputPar(\n Types.Par memory newInputPar\n )\n public\n {\n requireNewInputPar = newInputPar;\n }\n\n function setRequireInputWei(\n Types.Wei memory inputWei\n )\n public\n {\n requireInputWei = inputWei;\n }\n\n // ============ AutoTrader Functions ============\n\n function getTradeCost(\n uint256 inputMarketId,\n uint256 outputMarketId,\n Account.Info memory makerAccount,\n Account.Info memory takerAccount,\n Types.Par memory oldInputPar,\n Types.Par memory newInputPar,\n Types.Wei memory inputWei,\n bytes memory tradeData\n )\n public\n returns (Types.AssetAmount memory)\n {\n if (requireInputMarketId != 0) {\n Require.that(\n requireInputMarketId == inputMarketId,\n FILE,\n \"input market mismatch\"\n );\n }\n if (requireOutputMarketId != 0) {\n Require.that(\n requireOutputMarketId == outputMarketId,\n FILE,\n \"output market mismatch\"\n );\n }\n if (requireMakerAccount.owner != address(0)) {\n Require.that(\n requireMakerAccount.owner == makerAccount.owner,\n FILE,\n \"maker account owner mismatch\"\n );\n Require.that(\n requireMakerAccount.number == makerAccount.number,\n FILE,\n \"maker account number mismatch\"\n );\n }\n if (requireTakerAccount.owner != address(0)) {\n Require.that(\n requireTakerAccount.owner == takerAccount.owner,\n FILE,\n \"taker account owner mismatch\"\n );\n Require.that(\n requireTakerAccount.number == takerAccount.number,\n FILE,\n \"taker account number mismatch\"\n );\n }\n if (requireOldInputPar.value != 0) {\n Require.that(\n requireOldInputPar.sign == oldInputPar.sign,\n FILE,\n \"oldInputPar sign mismatch\"\n );\n Require.that(\n requireOldInputPar.value == oldInputPar.value,\n FILE,\n \"oldInputPar value mismatch\"\n );\n }\n if (requireNewInputPar.value != 0) {\n Require.that(\n requireNewInputPar.sign == newInputPar.sign,\n FILE,\n \"newInputPar sign mismatch\"\n );\n Require.that(\n requireNewInputPar.value == newInputPar.value,\n FILE,\n \"newInputPar value mismatch\"\n );\n }\n if (requireInputWei.value != 0) {\n Require.that(\n requireInputWei.sign == inputWei.sign,\n FILE,\n \"inputWei sign mismatch\"\n );\n Require.that(\n requireInputWei.value == inputWei.value,\n FILE,\n \"inputWei value mismatch\"\n );\n }\n\n uint256 input = parseTradeData(tradeData);\n return deleteDataInternal(input);\n }\n\n // ============ Private Functions ============\n\n function setDataInternal(\n uint256 input,\n Types.AssetAmount memory output\n )\n private\n {\n data[input] = output;\n valid[input] = true;\n emit DataSet(input, output);\n }\n\n function deleteDataInternal(\n uint256 input\n )\n private\n returns (Types.AssetAmount memory)\n {\n Require.that(\n valid[input],\n FILE,\n \"Trade does not exist\"\n );\n Types.AssetAmount memory output = data[input];\n delete data[input];\n delete valid[input];\n emit DataDeleted(input);\n return output;\n }\n\n function parseTradeData(\n bytes memory tradeData\n )\n private\n pure\n returns (uint256)\n {\n Require.that(\n tradeData.length == 32,\n FILE,\n \"Call data invalid length\"\n );\n\n uint256 input;\n\n /* solium-disable-next-line security/no-inline-assembly */\n assembly {\n input := mload(add(tradeData, 32))\n }\n\n return input;\n }\n}\n",
|
|
597
|
-
"sourcePath": "/
|
|
597
|
+
"sourcePath": "/Users/corey/Leavitt-Innovations/dolomite-v2-protocol/contracts/testing/TestAutoTrader.sol",
|
|
598
598
|
"ast": {
|
|
599
|
-
"absolutePath": "/
|
|
599
|
+
"absolutePath": "/Users/corey/Leavitt-Innovations/dolomite-v2-protocol/contracts/testing/TestAutoTrader.sol",
|
|
600
600
|
"exportedSymbols": {
|
|
601
601
|
"TestAutoTrader": [
|
|
602
602
|
35382
|
|
@@ -626,7 +626,7 @@
|
|
|
626
626
|
"src": "627:33:88"
|
|
627
627
|
},
|
|
628
628
|
{
|
|
629
|
-
"absolutePath": "/
|
|
629
|
+
"absolutePath": "/Users/corey/Leavitt-Innovations/dolomite-v2-protocol/contracts/protocol/interfaces/IAutoTrader.sol",
|
|
630
630
|
"file": "../protocol/interfaces/IAutoTrader.sol",
|
|
631
631
|
"id": 34941,
|
|
632
632
|
"nodeType": "ImportDirective",
|
|
@@ -642,7 +642,7 @@
|
|
|
642
642
|
"unitAlias": ""
|
|
643
643
|
},
|
|
644
644
|
{
|
|
645
|
-
"absolutePath": "/
|
|
645
|
+
"absolutePath": "/Users/corey/Leavitt-Innovations/dolomite-v2-protocol/contracts/protocol/lib/Account.sol",
|
|
646
646
|
"file": "../protocol/lib/Account.sol",
|
|
647
647
|
"id": 34943,
|
|
648
648
|
"nodeType": "ImportDirective",
|
|
@@ -658,7 +658,7 @@
|
|
|
658
658
|
"unitAlias": ""
|
|
659
659
|
},
|
|
660
660
|
{
|
|
661
|
-
"absolutePath": "/
|
|
661
|
+
"absolutePath": "/Users/corey/Leavitt-Innovations/dolomite-v2-protocol/contracts/protocol/lib/Actions.sol",
|
|
662
662
|
"file": "../protocol/lib/Actions.sol",
|
|
663
663
|
"id": 34945,
|
|
664
664
|
"nodeType": "ImportDirective",
|
|
@@ -674,7 +674,7 @@
|
|
|
674
674
|
"unitAlias": ""
|
|
675
675
|
},
|
|
676
676
|
{
|
|
677
|
-
"absolutePath": "/
|
|
677
|
+
"absolutePath": "/Users/corey/Leavitt-Innovations/dolomite-v2-protocol/contracts/protocol/lib/Math.sol",
|
|
678
678
|
"file": "../protocol/lib/Math.sol",
|
|
679
679
|
"id": 34947,
|
|
680
680
|
"nodeType": "ImportDirective",
|
|
@@ -690,7 +690,7 @@
|
|
|
690
690
|
"unitAlias": ""
|
|
691
691
|
},
|
|
692
692
|
{
|
|
693
|
-
"absolutePath": "/
|
|
693
|
+
"absolutePath": "/Users/corey/Leavitt-Innovations/dolomite-v2-protocol/contracts/protocol/lib/Require.sol",
|
|
694
694
|
"file": "../protocol/lib/Require.sol",
|
|
695
695
|
"id": 34949,
|
|
696
696
|
"nodeType": "ImportDirective",
|
|
@@ -706,7 +706,7 @@
|
|
|
706
706
|
"unitAlias": ""
|
|
707
707
|
},
|
|
708
708
|
{
|
|
709
|
-
"absolutePath": "/
|
|
709
|
+
"absolutePath": "/Users/corey/Leavitt-Innovations/dolomite-v2-protocol/contracts/protocol/lib/Time.sol",
|
|
710
710
|
"file": "../protocol/lib/Time.sol",
|
|
711
711
|
"id": 34951,
|
|
712
712
|
"nodeType": "ImportDirective",
|
|
@@ -722,7 +722,7 @@
|
|
|
722
722
|
"unitAlias": ""
|
|
723
723
|
},
|
|
724
724
|
{
|
|
725
|
-
"absolutePath": "/
|
|
725
|
+
"absolutePath": "/Users/corey/Leavitt-Innovations/dolomite-v2-protocol/contracts/protocol/lib/Types.sol",
|
|
726
726
|
"file": "../protocol/lib/Types.sol",
|
|
727
727
|
"id": 34953,
|
|
728
728
|
"nodeType": "ImportDirective",
|
|
@@ -6300,7 +6300,7 @@
|
|
|
6300
6300
|
"src": "603:6661:88"
|
|
6301
6301
|
},
|
|
6302
6302
|
"legacyAST": {
|
|
6303
|
-
"absolutePath": "/
|
|
6303
|
+
"absolutePath": "/Users/corey/Leavitt-Innovations/dolomite-v2-protocol/contracts/testing/TestAutoTrader.sol",
|
|
6304
6304
|
"exportedSymbols": {
|
|
6305
6305
|
"TestAutoTrader": [
|
|
6306
6306
|
35382
|
|
@@ -6330,7 +6330,7 @@
|
|
|
6330
6330
|
"src": "627:33:88"
|
|
6331
6331
|
},
|
|
6332
6332
|
{
|
|
6333
|
-
"absolutePath": "/
|
|
6333
|
+
"absolutePath": "/Users/corey/Leavitt-Innovations/dolomite-v2-protocol/contracts/protocol/interfaces/IAutoTrader.sol",
|
|
6334
6334
|
"file": "../protocol/interfaces/IAutoTrader.sol",
|
|
6335
6335
|
"id": 34941,
|
|
6336
6336
|
"nodeType": "ImportDirective",
|
|
@@ -6346,7 +6346,7 @@
|
|
|
6346
6346
|
"unitAlias": ""
|
|
6347
6347
|
},
|
|
6348
6348
|
{
|
|
6349
|
-
"absolutePath": "/
|
|
6349
|
+
"absolutePath": "/Users/corey/Leavitt-Innovations/dolomite-v2-protocol/contracts/protocol/lib/Account.sol",
|
|
6350
6350
|
"file": "../protocol/lib/Account.sol",
|
|
6351
6351
|
"id": 34943,
|
|
6352
6352
|
"nodeType": "ImportDirective",
|
|
@@ -6362,7 +6362,7 @@
|
|
|
6362
6362
|
"unitAlias": ""
|
|
6363
6363
|
},
|
|
6364
6364
|
{
|
|
6365
|
-
"absolutePath": "/
|
|
6365
|
+
"absolutePath": "/Users/corey/Leavitt-Innovations/dolomite-v2-protocol/contracts/protocol/lib/Actions.sol",
|
|
6366
6366
|
"file": "../protocol/lib/Actions.sol",
|
|
6367
6367
|
"id": 34945,
|
|
6368
6368
|
"nodeType": "ImportDirective",
|
|
@@ -6378,7 +6378,7 @@
|
|
|
6378
6378
|
"unitAlias": ""
|
|
6379
6379
|
},
|
|
6380
6380
|
{
|
|
6381
|
-
"absolutePath": "/
|
|
6381
|
+
"absolutePath": "/Users/corey/Leavitt-Innovations/dolomite-v2-protocol/contracts/protocol/lib/Math.sol",
|
|
6382
6382
|
"file": "../protocol/lib/Math.sol",
|
|
6383
6383
|
"id": 34947,
|
|
6384
6384
|
"nodeType": "ImportDirective",
|
|
@@ -6394,7 +6394,7 @@
|
|
|
6394
6394
|
"unitAlias": ""
|
|
6395
6395
|
},
|
|
6396
6396
|
{
|
|
6397
|
-
"absolutePath": "/
|
|
6397
|
+
"absolutePath": "/Users/corey/Leavitt-Innovations/dolomite-v2-protocol/contracts/protocol/lib/Require.sol",
|
|
6398
6398
|
"file": "../protocol/lib/Require.sol",
|
|
6399
6399
|
"id": 34949,
|
|
6400
6400
|
"nodeType": "ImportDirective",
|
|
@@ -6410,7 +6410,7 @@
|
|
|
6410
6410
|
"unitAlias": ""
|
|
6411
6411
|
},
|
|
6412
6412
|
{
|
|
6413
|
-
"absolutePath": "/
|
|
6413
|
+
"absolutePath": "/Users/corey/Leavitt-Innovations/dolomite-v2-protocol/contracts/protocol/lib/Time.sol",
|
|
6414
6414
|
"file": "../protocol/lib/Time.sol",
|
|
6415
6415
|
"id": 34951,
|
|
6416
6416
|
"nodeType": "ImportDirective",
|
|
@@ -6426,7 +6426,7 @@
|
|
|
6426
6426
|
"unitAlias": ""
|
|
6427
6427
|
},
|
|
6428
6428
|
{
|
|
6429
|
-
"absolutePath": "/
|
|
6429
|
+
"absolutePath": "/Users/corey/Leavitt-Innovations/dolomite-v2-protocol/contracts/protocol/lib/Types.sol",
|
|
6430
6430
|
"file": "../protocol/lib/Types.sol",
|
|
6431
6431
|
"id": 34953,
|
|
6432
6432
|
"nodeType": "ImportDirective",
|
|
@@ -12067,11 +12067,11 @@
|
|
|
12067
12067
|
},
|
|
12068
12068
|
"links": {},
|
|
12069
12069
|
"address": "0x2612Af3A521c2df9EAF28422Ca335b04AdF3ac66",
|
|
12070
|
-
"transactionHash": "
|
|
12070
|
+
"transactionHash": "0x05aca7ce082cc511dd5216cfd8531c0ac2d0f941201e7aaf1bcb96538e2251c7"
|
|
12071
12071
|
}
|
|
12072
12072
|
},
|
|
12073
12073
|
"schemaVersion": "3.0.23",
|
|
12074
|
-
"updatedAt": "2022-02-
|
|
12074
|
+
"updatedAt": "2022-02-07T07:18:45.393Z",
|
|
12075
12075
|
"devdoc": {
|
|
12076
12076
|
"author": "dYdX * IAutoTrader for testing",
|
|
12077
12077
|
"methods": {},
|
|
@@ -17,15 +17,15 @@
|
|
|
17
17
|
"type": "function"
|
|
18
18
|
}
|
|
19
19
|
],
|
|
20
|
-
"metadata": "{\"compiler\":{\"version\":\"0.5.16+commit.9c3226ce\"},\"language\":\"Solidity\",\"output\":{\"abi\":[{\"constant\":true,\"inputs\":[],\"name\":\"latestAnswer\",\"outputs\":[{\"internalType\":\"int256\",\"name\":\"\",\"type\":\"int256\"}],\"payable\":false,\"stateMutability\":\"view\",\"type\":\"function\"}],\"devdoc\":{\"details\":\"Gets the latest price from the Chainlink Oracle Network. Amount of decimals depends on the base.\",\"methods\":{}},\"userdoc\":{\"methods\":{}}},\"settings\":{\"compilationTarget\":{\"/
|
|
21
|
-
"bytecode": "
|
|
22
|
-
"deployedBytecode": "
|
|
20
|
+
"metadata": "{\"compiler\":{\"version\":\"0.5.16+commit.9c3226ce\"},\"language\":\"Solidity\",\"output\":{\"abi\":[{\"constant\":true,\"inputs\":[],\"name\":\"latestAnswer\",\"outputs\":[{\"internalType\":\"int256\",\"name\":\"\",\"type\":\"int256\"}],\"payable\":false,\"stateMutability\":\"view\",\"type\":\"function\"}],\"devdoc\":{\"details\":\"Gets the latest price from the Chainlink Oracle Network. Amount of decimals depends on the base.\",\"methods\":{}},\"userdoc\":{\"methods\":{}}},\"settings\":{\"compilationTarget\":{\"/Users/corey/Leavitt-Innovations/dolomite-v2-protocol/contracts/testing/TestBtcUsdChainlinkAggregator.sol\":\"TestBtcUsdChainlinkAggregator\"},\"evmVersion\":\"istanbul\",\"libraries\":{},\"optimizer\":{\"enabled\":true,\"runs\":10000},\"remappings\":[]},\"sources\":{\"/Users/corey/Leavitt-Innovations/dolomite-v2-protocol/contracts/external/interfaces/IChainlinkAggregator.sol\":{\"keccak256\":\"0xc8c16d8fb7fe57637d33bac84af3ea4c087896612ee629357735c6afe4802a75\",\"urls\":[\"bzz-raw://560ddc4d72da39030111a3ae74dc5f38f0a83eeb30a07bc49c5b6ba3ba07f981\",\"dweb:/ipfs/QmRdYwQRcWHnHmNi6Xuy139AP1SZit5u2NdvmauYjC48V6\"]},\"/Users/corey/Leavitt-Innovations/dolomite-v2-protocol/contracts/testing/TestBtcUsdChainlinkAggregator.sol\":{\"keccak256\":\"0x4a19df8b7b13832d23d115c8649059b67e8cde1d05df0ce94a213a0144701519\",\"urls\":[\"bzz-raw://deaf915db3b645d80b08e86f63c8e61b65c90f6e6c6915861c532024e9129428\",\"dweb:/ipfs/Qme2nrM9iTQtXxqd2Z6Luk7Eaf4Kg4j2YibZ6zRg5a1Wkm\"]}},\"version\":1}",
|
|
21
|
+
"bytecode": "0x6080604052348015600f57600080fd5b5060838061001e6000396000f3fe6080604052348015600f57600080fd5b506004361060285760003560e01c806350d25bcd14602d575b600080fd5b60336045565b60408051918252519081900360200190f35b64dfff2c4b809056fea265627a7a72315820c8d22d837450e073a02fa8dd7538f1673c03c1871954692c05f3db10ff7e4df164736f6c63430005100032",
|
|
22
|
+
"deployedBytecode": "0x6080604052348015600f57600080fd5b506004361060285760003560e01c806350d25bcd14602d575b600080fd5b60336045565b60408051918252519081900360200190f35b64dfff2c4b809056fea265627a7a72315820c8d22d837450e073a02fa8dd7538f1673c03c1871954692c05f3db10ff7e4df164736f6c63430005100032",
|
|
23
23
|
"sourceMap": "792:184:89:-;;;;8:9:-1;5:2;;;30:1;27;20:12;5:2;792:184:89;;;;;;;",
|
|
24
24
|
"deployedSourceMap": "792:184:89:-;;;;8:9:-1;5:2;;;30:1;27;20:12;5:2;792:184:89;;;;;;;;;;;;;;;;;;;862:111;;;:::i;:::-;;;;;;;;;;;;;;;;;954:12;862:111;:::o",
|
|
25
25
|
"source": "/*\n\n Copyright 2020 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;\n\nimport \"../external/interfaces/IChainlinkAggregator.sol\";\n\n/**\n * @dev Gets the latest price from the Chainlink Oracle Network. Amount of decimals depends on the base.\n */\ncontract TestBtcUsdChainlinkAggregator is IChainlinkAggregator {\n\n function latestAnswer() public view returns (int256) {\n // $9,620.588\n return 962058800000;\n }\n\n}",
|
|
26
|
-
"sourcePath": "/
|
|
26
|
+
"sourcePath": "/Users/corey/Leavitt-Innovations/dolomite-v2-protocol/contracts/testing/TestBtcUsdChainlinkAggregator.sol",
|
|
27
27
|
"ast": {
|
|
28
|
-
"absolutePath": "/
|
|
28
|
+
"absolutePath": "/Users/corey/Leavitt-Innovations/dolomite-v2-protocol/contracts/testing/TestBtcUsdChainlinkAggregator.sol",
|
|
29
29
|
"exportedSymbols": {
|
|
30
30
|
"TestBtcUsdChainlinkAggregator": [
|
|
31
31
|
35396
|
|
@@ -46,7 +46,7 @@
|
|
|
46
46
|
"src": "595:23:89"
|
|
47
47
|
},
|
|
48
48
|
{
|
|
49
|
-
"absolutePath": "/
|
|
49
|
+
"absolutePath": "/Users/corey/Leavitt-Innovations/dolomite-v2-protocol/contracts/external/interfaces/IChainlinkAggregator.sol",
|
|
50
50
|
"file": "../external/interfaces/IChainlinkAggregator.sol",
|
|
51
51
|
"id": 35385,
|
|
52
52
|
"nodeType": "ImportDirective",
|
|
@@ -183,7 +183,7 @@
|
|
|
183
183
|
"src": "595:381:89"
|
|
184
184
|
},
|
|
185
185
|
"legacyAST": {
|
|
186
|
-
"absolutePath": "/
|
|
186
|
+
"absolutePath": "/Users/corey/Leavitt-Innovations/dolomite-v2-protocol/contracts/testing/TestBtcUsdChainlinkAggregator.sol",
|
|
187
187
|
"exportedSymbols": {
|
|
188
188
|
"TestBtcUsdChainlinkAggregator": [
|
|
189
189
|
35396
|
|
@@ -204,7 +204,7 @@
|
|
|
204
204
|
"src": "595:23:89"
|
|
205
205
|
},
|
|
206
206
|
{
|
|
207
|
-
"absolutePath": "/
|
|
207
|
+
"absolutePath": "/Users/corey/Leavitt-Innovations/dolomite-v2-protocol/contracts/external/interfaces/IChainlinkAggregator.sol",
|
|
208
208
|
"file": "../external/interfaces/IChainlinkAggregator.sol",
|
|
209
209
|
"id": 35385,
|
|
210
210
|
"nodeType": "ImportDirective",
|
|
@@ -349,11 +349,11 @@
|
|
|
349
349
|
"events": {},
|
|
350
350
|
"links": {},
|
|
351
351
|
"address": "0xA586074FA4Fe3E546A132a16238abe37951D41fE",
|
|
352
|
-
"transactionHash": "
|
|
352
|
+
"transactionHash": "0xbd4ab16b87cdd4482ff296926eb48d666ef10678237316d4e8526456910e1677"
|
|
353
353
|
}
|
|
354
354
|
},
|
|
355
355
|
"schemaVersion": "3.0.23",
|
|
356
|
-
"updatedAt": "2022-02-
|
|
356
|
+
"updatedAt": "2022-02-07T07:18:45.399Z",
|
|
357
357
|
"devdoc": {
|
|
358
358
|
"details": "Gets the latest price from the Chainlink Oracle Network. Amount of decimals depends on the base.",
|
|
359
359
|
"methods": {}
|