├── .babelrc ├── .circleci └── config.yml ├── .eslintrc.yaml ├── .gitattributes ├── .gitignore ├── .solcover.js ├── .soliumignore ├── .soliumrc.json ├── Dockerfile ├── LICENSE ├── README.md ├── contracts ├── Migrations.sol ├── external │ ├── 0x │ │ ├── v1 │ │ │ ├── README.md │ │ │ └── ZeroExExchangeInterfaceV1.sol │ │ └── v2 │ │ │ ├── interfaces │ │ │ ├── IAssetProxyDispatcher.sol │ │ │ ├── IExchange.sol │ │ │ ├── IExchangeCore.sol │ │ │ ├── IMatchOrders.sol │ │ │ ├── ISignatureValidator.sol │ │ │ ├── ITransactions.sol │ │ │ └── IWrapperFunctions.sol │ │ │ └── libs │ │ │ ├── LibFillResults.sol │ │ │ └── LibOrder.sol │ ├── Maker │ │ ├── Oasis │ │ │ ├── IMatchingMarketV1.sol │ │ │ ├── IMatchingMarketV2.sol │ │ │ └── ISimpleMarketV1.sol │ │ └── Other │ │ │ └── IScdMcdMigration.sol │ └── README.md ├── lib │ ├── AccessControlledBase.sol │ ├── AdvancedTokenInteract.sol │ ├── Exponent.sol │ ├── Fraction.sol │ ├── FractionMath.sol │ ├── GeneralERC20.sol │ ├── MathHelpers.sol │ ├── ReentrancyGuard.sol │ ├── StaticAccessControlled.sol │ ├── StringHelpers.sol │ ├── TimestampHelper.sol │ ├── TokenInteract.sol │ └── TypedSignature.sol ├── margin │ ├── Margin.sol │ ├── TokenProxy.sol │ ├── Vault.sol │ ├── external │ │ ├── AuctionProxy.sol │ │ ├── BucketLender │ │ │ ├── BucketLender.sol │ │ │ ├── BucketLenderFactory.sol │ │ │ ├── BucketLenderProxy.sol │ │ │ ├── BucketLenderWithRecoveryDelay.sol │ │ │ └── EthWrapperForBucketLender.sol │ │ ├── ERC20 │ │ │ ├── ERC20CappedLong.sol │ │ │ ├── ERC20CappedPosition.sol │ │ │ ├── ERC20CappedShort.sol │ │ │ ├── ERC20Long.sol │ │ │ ├── ERC20LongFactory.sol │ │ │ ├── ERC20Position.sol │ │ │ ├── ERC20PositionFactory.sol │ │ │ ├── ERC20PositionWithdrawer.sol │ │ │ ├── ERC20PositionWithdrawerV2.sol │ │ │ ├── ERC20Short.sol │ │ │ └── ERC20ShortFactory.sol │ │ ├── ERC721 │ │ │ ├── ERC721MarginLoan.sol │ │ │ └── ERC721MarginPosition.sol │ │ ├── PayableMarginMinter.sol │ │ ├── SharedLoan.sol │ │ ├── SharedLoanFactory.sol │ │ ├── exchangewrappers │ │ │ ├── OasisV1MatchingExchangeWrapper.sol │ │ │ ├── OasisV1SimpleExchangeWrapper.sol │ │ │ ├── OasisV2SimpleExchangeWrapper.sol │ │ │ ├── OasisV3MatchingExchangeWrapper.sol │ │ │ ├── OasisV3SimpleExchangeWrapper.sol │ │ │ ├── OpenDirectlyExchangeWrapper.sol │ │ │ ├── SaiDaiExchangeWrapper.sol │ │ │ ├── ZeroExV1ExchangeWrapper.sol │ │ │ ├── ZeroExV2ExchangeWrapper.sol │ │ │ └── ZeroExV2MultiOrderExchangeWrapper.sol │ │ ├── interfaces │ │ │ └── PositionCustodian.sol │ │ ├── lib │ │ │ ├── LoanOfferingParser.sol │ │ │ └── MarginHelper.sol │ │ └── payoutrecipients │ │ │ ├── DutchAuctionCloser.sol │ │ │ └── WethPayoutRecipient.sol │ ├── impl │ │ ├── BorrowShared.sol │ │ ├── ClosePositionImpl.sol │ │ ├── ClosePositionShared.sol │ │ ├── CloseWithoutCounterpartyImpl.sol │ │ ├── DepositCollateralImpl.sol │ │ ├── ForceRecoverCollateralImpl.sol │ │ ├── IncreasePositionImpl.sol │ │ ├── InterestImpl.sol │ │ ├── LoanGetters.sol │ │ ├── LoanImpl.sol │ │ ├── MarginAdmin.sol │ │ ├── MarginCommon.sol │ │ ├── MarginEvents.sol │ │ ├── MarginState.sol │ │ ├── MarginStorage.sol │ │ ├── OpenPositionImpl.sol │ │ ├── OpenWithoutCounterpartyImpl.sol │ │ ├── PositionGetters.sol │ │ ├── TransferImpl.sol │ │ └── TransferInternal.sol │ └── interfaces │ │ ├── ExchangeReader.sol │ │ ├── ExchangeWrapper.sol │ │ ├── LoanOfferingVerifier.sol │ │ ├── OnlyMargin.sol │ │ ├── PayoutRecipient.sol │ │ ├── lender │ │ ├── CancelMarginCallDelegator.sol │ │ ├── CloseLoanDelegator.sol │ │ ├── ForceRecoverCollateralDelegator.sol │ │ ├── IncreaseLoanDelegator.sol │ │ ├── LoanOwner.sol │ │ └── MarginCallDelegator.sol │ │ └── owner │ │ ├── ClosePositionDelegator.sol │ │ ├── DepositCollateralDelegator.sol │ │ ├── IncreasePositionDelegator.sol │ │ └── PositionOwner.sol └── testing │ ├── ErroringOmiseToken.sol │ ├── ErroringToken.sol │ ├── OmiseToken.sol │ ├── OwnedToken.sol │ ├── TestBucketLender.sol │ ├── TestCloseLoanDelegator.sol │ ├── TestClosePositionDelegator.sol │ ├── TestDepositCollateralDelegator.sol │ ├── TestERC20Position.sol │ ├── TestExchangeWrapper.sol │ ├── TestExponent.sol │ ├── TestForceRecoverCollateralDelegator.sol │ ├── TestFractionMath.sol │ ├── TestInterestImpl.sol │ ├── TestLoanOwner.sol │ ├── TestMarginCallDelegator.sol │ ├── TestMathHelpers.sol │ ├── TestNonReentrant.sol │ ├── TestPositionOwner.sol │ ├── TestReenterer.sol │ ├── TestScdMcdMigration.sol │ ├── TestSmartContractLender.sol │ ├── TestStaticAccessControlled.sol │ ├── TestToken.sol │ ├── TestTokenInteract.sol │ ├── TestTypedSignature.sol │ ├── TokenA.sol │ ├── TokenB.sol │ └── TokenC.sol ├── migrations ├── 1_initial_migration.js ├── 2_deploy.js ├── 3_seeds.js ├── deployed.json ├── deployed_addresses.md ├── external-deployed.json └── helpers.js ├── package.json ├── scripts ├── clean-build.js ├── docker.sh ├── prod_build.sh ├── publish_if_not_exists.sh └── save-deployed-addresses.js ├── src ├── index.js └── lib │ ├── contracts.js │ ├── seeds.js │ └── snapshots.js ├── test ├── contracts │ ├── OasisDex.js │ ├── ZeroExV1.js │ ├── ZeroExV2.js │ └── json │ │ ├── MatchingMarketV1.json │ │ └── MatchingMarketV2.json ├── helpers │ ├── AccessControlledHelper.js │ ├── BytesHelper.js │ ├── ClosePositionHelper.js │ ├── Constants.js │ ├── ContractHelper.js │ ├── ERC20PositionHelper.js │ ├── EventHelper.js │ ├── ExchangeHelper.js │ ├── ExpectHelper.js │ ├── LoanHelper.js │ ├── MarginHelper.js │ ├── MathHelper.js │ ├── NodeHelper.js │ ├── TokenHelper.js │ ├── ZeroExV1Helper.js │ └── ZeroExV2Helper.js └── tests │ ├── js │ ├── TestReset.js │ └── TestSeeds.js │ ├── lib │ ├── TestNonReentrant.js │ ├── TestStaticAccessControlled.js │ ├── TestTokenInteract.js │ └── TestTypedSignature.js │ └── margin │ ├── TestCancelLoan.js │ ├── TestClosePosition.js │ ├── TestCloseWithoutCounterparty.js │ ├── TestDepositCollateral.js │ ├── TestExponent.js │ ├── TestForceRecoverCollateral.js │ ├── TestFractionMath.js │ ├── TestIncreasePosition.js │ ├── TestIncreaseWithoutCounterparty.js │ ├── TestInterestImpl.js │ ├── TestInvalidPositions.js │ ├── TestLoanGetters.js │ ├── TestMarginAdmin.js │ ├── TestMarginCall.js │ ├── TestMathHelpers.js │ ├── TestOpenPosition.js │ ├── TestOpenWithoutCounterparty.js │ ├── TestPositionGetters.js │ ├── TestProxy.js │ ├── TestTransfer.js │ ├── TestVault.js │ └── external │ ├── SharedLoanHelper.js │ ├── TestAuctionProxy.js │ ├── TestDutchAuctionCloser.js │ ├── TestSharedLoan.js │ ├── TestSharedLoanFactory.js │ ├── TestWethPayoutRecipient.js │ ├── bucketlender │ ├── TestBucketLender.js │ ├── TestBucketLenderFactory.js │ ├── TestBucketLenderProxy.js │ ├── TestBucketLenderWithRecoveryDelay.js │ └── TestEthWrapperForBucketLender.js │ ├── erc20 │ ├── ERC20PositionHelper.js │ ├── TestERC20CappedPosition.js │ ├── TestERC20Long.js │ ├── TestERC20PositionFactory.js │ ├── TestERC20PositionWithdrawer.js │ ├── TestERC20PositionWithdrawerV2.js │ ├── TestERC20Short.js │ └── TestPayableMarginMinter.js │ ├── erc721 │ ├── TestERC721MarginLoan.js │ └── TestERC721MarginPosition.js │ └── exchangewrappers │ ├── TestOasisV1MatchingMarketExchangeWrapper.js │ ├── TestOasisV1SimpleMarketExchangeWrapper.js │ ├── TestOasisV2SimpleMarketExchangeWrapper.js │ ├── TestOasisV3MatchingMarketExchangeWrapper.js │ ├── TestOasisV3SimpleMarketExchangeWrapper.js │ ├── TestOpenDirectlyExchangeWrapper.js │ ├── TestSaiDaiExchangeWrapper.js │ ├── TestZeroExV1ExchangeWrapper.js │ ├── TestZeroExV2ExchangeWrapper.js │ └── TestZeroExV2MultiOrderExchangeWrapper.js ├── truffle.js └── util ├── DeployGasCosts.js ├── hideasserts.py ├── lintcontracts.py └── linttests.py /.babelrc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dydxprotocol/protocol_v1/HEAD/.babelrc -------------------------------------------------------------------------------- /.circleci/config.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dydxprotocol/protocol_v1/HEAD/.circleci/config.yml -------------------------------------------------------------------------------- /.eslintrc.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dydxprotocol/protocol_v1/HEAD/.eslintrc.yaml -------------------------------------------------------------------------------- /.gitattributes: -------------------------------------------------------------------------------- 1 | *.sol linguist-language=Solidity 2 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dydxprotocol/protocol_v1/HEAD/.gitignore -------------------------------------------------------------------------------- /.solcover.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dydxprotocol/protocol_v1/HEAD/.solcover.js -------------------------------------------------------------------------------- /.soliumignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dydxprotocol/protocol_v1/HEAD/.soliumignore -------------------------------------------------------------------------------- /.soliumrc.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dydxprotocol/protocol_v1/HEAD/.soliumrc.json -------------------------------------------------------------------------------- /Dockerfile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dydxprotocol/protocol_v1/HEAD/Dockerfile -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dydxprotocol/protocol_v1/HEAD/LICENSE -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dydxprotocol/protocol_v1/HEAD/README.md -------------------------------------------------------------------------------- /contracts/Migrations.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dydxprotocol/protocol_v1/HEAD/contracts/Migrations.sol -------------------------------------------------------------------------------- /contracts/external/0x/v1/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dydxprotocol/protocol_v1/HEAD/contracts/external/0x/v1/README.md -------------------------------------------------------------------------------- /contracts/external/0x/v1/ZeroExExchangeInterfaceV1.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dydxprotocol/protocol_v1/HEAD/contracts/external/0x/v1/ZeroExExchangeInterfaceV1.sol -------------------------------------------------------------------------------- /contracts/external/0x/v2/interfaces/IAssetProxyDispatcher.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dydxprotocol/protocol_v1/HEAD/contracts/external/0x/v2/interfaces/IAssetProxyDispatcher.sol -------------------------------------------------------------------------------- /contracts/external/0x/v2/interfaces/IExchange.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dydxprotocol/protocol_v1/HEAD/contracts/external/0x/v2/interfaces/IExchange.sol -------------------------------------------------------------------------------- /contracts/external/0x/v2/interfaces/IExchangeCore.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dydxprotocol/protocol_v1/HEAD/contracts/external/0x/v2/interfaces/IExchangeCore.sol -------------------------------------------------------------------------------- /contracts/external/0x/v2/interfaces/IMatchOrders.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dydxprotocol/protocol_v1/HEAD/contracts/external/0x/v2/interfaces/IMatchOrders.sol -------------------------------------------------------------------------------- /contracts/external/0x/v2/interfaces/ISignatureValidator.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dydxprotocol/protocol_v1/HEAD/contracts/external/0x/v2/interfaces/ISignatureValidator.sol -------------------------------------------------------------------------------- /contracts/external/0x/v2/interfaces/ITransactions.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dydxprotocol/protocol_v1/HEAD/contracts/external/0x/v2/interfaces/ITransactions.sol -------------------------------------------------------------------------------- /contracts/external/0x/v2/interfaces/IWrapperFunctions.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dydxprotocol/protocol_v1/HEAD/contracts/external/0x/v2/interfaces/IWrapperFunctions.sol -------------------------------------------------------------------------------- /contracts/external/0x/v2/libs/LibFillResults.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dydxprotocol/protocol_v1/HEAD/contracts/external/0x/v2/libs/LibFillResults.sol -------------------------------------------------------------------------------- /contracts/external/0x/v2/libs/LibOrder.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dydxprotocol/protocol_v1/HEAD/contracts/external/0x/v2/libs/LibOrder.sol -------------------------------------------------------------------------------- /contracts/external/Maker/Oasis/IMatchingMarketV1.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dydxprotocol/protocol_v1/HEAD/contracts/external/Maker/Oasis/IMatchingMarketV1.sol -------------------------------------------------------------------------------- /contracts/external/Maker/Oasis/IMatchingMarketV2.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dydxprotocol/protocol_v1/HEAD/contracts/external/Maker/Oasis/IMatchingMarketV2.sol -------------------------------------------------------------------------------- /contracts/external/Maker/Oasis/ISimpleMarketV1.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dydxprotocol/protocol_v1/HEAD/contracts/external/Maker/Oasis/ISimpleMarketV1.sol -------------------------------------------------------------------------------- /contracts/external/Maker/Other/IScdMcdMigration.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dydxprotocol/protocol_v1/HEAD/contracts/external/Maker/Other/IScdMcdMigration.sol -------------------------------------------------------------------------------- /contracts/external/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dydxprotocol/protocol_v1/HEAD/contracts/external/README.md -------------------------------------------------------------------------------- /contracts/lib/AccessControlledBase.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dydxprotocol/protocol_v1/HEAD/contracts/lib/AccessControlledBase.sol -------------------------------------------------------------------------------- /contracts/lib/AdvancedTokenInteract.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dydxprotocol/protocol_v1/HEAD/contracts/lib/AdvancedTokenInteract.sol -------------------------------------------------------------------------------- /contracts/lib/Exponent.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dydxprotocol/protocol_v1/HEAD/contracts/lib/Exponent.sol -------------------------------------------------------------------------------- /contracts/lib/Fraction.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dydxprotocol/protocol_v1/HEAD/contracts/lib/Fraction.sol -------------------------------------------------------------------------------- /contracts/lib/FractionMath.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dydxprotocol/protocol_v1/HEAD/contracts/lib/FractionMath.sol -------------------------------------------------------------------------------- /contracts/lib/GeneralERC20.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dydxprotocol/protocol_v1/HEAD/contracts/lib/GeneralERC20.sol -------------------------------------------------------------------------------- /contracts/lib/MathHelpers.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dydxprotocol/protocol_v1/HEAD/contracts/lib/MathHelpers.sol -------------------------------------------------------------------------------- /contracts/lib/ReentrancyGuard.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dydxprotocol/protocol_v1/HEAD/contracts/lib/ReentrancyGuard.sol -------------------------------------------------------------------------------- /contracts/lib/StaticAccessControlled.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dydxprotocol/protocol_v1/HEAD/contracts/lib/StaticAccessControlled.sol -------------------------------------------------------------------------------- /contracts/lib/StringHelpers.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dydxprotocol/protocol_v1/HEAD/contracts/lib/StringHelpers.sol -------------------------------------------------------------------------------- /contracts/lib/TimestampHelper.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dydxprotocol/protocol_v1/HEAD/contracts/lib/TimestampHelper.sol -------------------------------------------------------------------------------- /contracts/lib/TokenInteract.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dydxprotocol/protocol_v1/HEAD/contracts/lib/TokenInteract.sol -------------------------------------------------------------------------------- /contracts/lib/TypedSignature.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dydxprotocol/protocol_v1/HEAD/contracts/lib/TypedSignature.sol -------------------------------------------------------------------------------- /contracts/margin/Margin.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dydxprotocol/protocol_v1/HEAD/contracts/margin/Margin.sol -------------------------------------------------------------------------------- /contracts/margin/TokenProxy.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dydxprotocol/protocol_v1/HEAD/contracts/margin/TokenProxy.sol -------------------------------------------------------------------------------- /contracts/margin/Vault.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dydxprotocol/protocol_v1/HEAD/contracts/margin/Vault.sol -------------------------------------------------------------------------------- /contracts/margin/external/AuctionProxy.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dydxprotocol/protocol_v1/HEAD/contracts/margin/external/AuctionProxy.sol -------------------------------------------------------------------------------- /contracts/margin/external/BucketLender/BucketLender.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dydxprotocol/protocol_v1/HEAD/contracts/margin/external/BucketLender/BucketLender.sol -------------------------------------------------------------------------------- /contracts/margin/external/BucketLender/BucketLenderFactory.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dydxprotocol/protocol_v1/HEAD/contracts/margin/external/BucketLender/BucketLenderFactory.sol -------------------------------------------------------------------------------- /contracts/margin/external/BucketLender/BucketLenderProxy.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dydxprotocol/protocol_v1/HEAD/contracts/margin/external/BucketLender/BucketLenderProxy.sol -------------------------------------------------------------------------------- /contracts/margin/external/BucketLender/BucketLenderWithRecoveryDelay.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dydxprotocol/protocol_v1/HEAD/contracts/margin/external/BucketLender/BucketLenderWithRecoveryDelay.sol -------------------------------------------------------------------------------- /contracts/margin/external/BucketLender/EthWrapperForBucketLender.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dydxprotocol/protocol_v1/HEAD/contracts/margin/external/BucketLender/EthWrapperForBucketLender.sol -------------------------------------------------------------------------------- /contracts/margin/external/ERC20/ERC20CappedLong.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dydxprotocol/protocol_v1/HEAD/contracts/margin/external/ERC20/ERC20CappedLong.sol -------------------------------------------------------------------------------- /contracts/margin/external/ERC20/ERC20CappedPosition.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dydxprotocol/protocol_v1/HEAD/contracts/margin/external/ERC20/ERC20CappedPosition.sol -------------------------------------------------------------------------------- /contracts/margin/external/ERC20/ERC20CappedShort.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dydxprotocol/protocol_v1/HEAD/contracts/margin/external/ERC20/ERC20CappedShort.sol -------------------------------------------------------------------------------- /contracts/margin/external/ERC20/ERC20Long.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dydxprotocol/protocol_v1/HEAD/contracts/margin/external/ERC20/ERC20Long.sol -------------------------------------------------------------------------------- /contracts/margin/external/ERC20/ERC20LongFactory.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dydxprotocol/protocol_v1/HEAD/contracts/margin/external/ERC20/ERC20LongFactory.sol -------------------------------------------------------------------------------- /contracts/margin/external/ERC20/ERC20Position.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dydxprotocol/protocol_v1/HEAD/contracts/margin/external/ERC20/ERC20Position.sol -------------------------------------------------------------------------------- /contracts/margin/external/ERC20/ERC20PositionFactory.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dydxprotocol/protocol_v1/HEAD/contracts/margin/external/ERC20/ERC20PositionFactory.sol -------------------------------------------------------------------------------- /contracts/margin/external/ERC20/ERC20PositionWithdrawer.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dydxprotocol/protocol_v1/HEAD/contracts/margin/external/ERC20/ERC20PositionWithdrawer.sol -------------------------------------------------------------------------------- /contracts/margin/external/ERC20/ERC20PositionWithdrawerV2.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dydxprotocol/protocol_v1/HEAD/contracts/margin/external/ERC20/ERC20PositionWithdrawerV2.sol -------------------------------------------------------------------------------- /contracts/margin/external/ERC20/ERC20Short.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dydxprotocol/protocol_v1/HEAD/contracts/margin/external/ERC20/ERC20Short.sol -------------------------------------------------------------------------------- /contracts/margin/external/ERC20/ERC20ShortFactory.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dydxprotocol/protocol_v1/HEAD/contracts/margin/external/ERC20/ERC20ShortFactory.sol -------------------------------------------------------------------------------- /contracts/margin/external/ERC721/ERC721MarginLoan.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dydxprotocol/protocol_v1/HEAD/contracts/margin/external/ERC721/ERC721MarginLoan.sol -------------------------------------------------------------------------------- /contracts/margin/external/ERC721/ERC721MarginPosition.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dydxprotocol/protocol_v1/HEAD/contracts/margin/external/ERC721/ERC721MarginPosition.sol -------------------------------------------------------------------------------- /contracts/margin/external/PayableMarginMinter.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dydxprotocol/protocol_v1/HEAD/contracts/margin/external/PayableMarginMinter.sol -------------------------------------------------------------------------------- /contracts/margin/external/SharedLoan.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dydxprotocol/protocol_v1/HEAD/contracts/margin/external/SharedLoan.sol -------------------------------------------------------------------------------- /contracts/margin/external/SharedLoanFactory.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dydxprotocol/protocol_v1/HEAD/contracts/margin/external/SharedLoanFactory.sol -------------------------------------------------------------------------------- /contracts/margin/external/exchangewrappers/OasisV1MatchingExchangeWrapper.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dydxprotocol/protocol_v1/HEAD/contracts/margin/external/exchangewrappers/OasisV1MatchingExchangeWrapper.sol -------------------------------------------------------------------------------- /contracts/margin/external/exchangewrappers/OasisV1SimpleExchangeWrapper.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dydxprotocol/protocol_v1/HEAD/contracts/margin/external/exchangewrappers/OasisV1SimpleExchangeWrapper.sol -------------------------------------------------------------------------------- /contracts/margin/external/exchangewrappers/OasisV2SimpleExchangeWrapper.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dydxprotocol/protocol_v1/HEAD/contracts/margin/external/exchangewrappers/OasisV2SimpleExchangeWrapper.sol -------------------------------------------------------------------------------- /contracts/margin/external/exchangewrappers/OasisV3MatchingExchangeWrapper.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dydxprotocol/protocol_v1/HEAD/contracts/margin/external/exchangewrappers/OasisV3MatchingExchangeWrapper.sol -------------------------------------------------------------------------------- /contracts/margin/external/exchangewrappers/OasisV3SimpleExchangeWrapper.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dydxprotocol/protocol_v1/HEAD/contracts/margin/external/exchangewrappers/OasisV3SimpleExchangeWrapper.sol -------------------------------------------------------------------------------- /contracts/margin/external/exchangewrappers/OpenDirectlyExchangeWrapper.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dydxprotocol/protocol_v1/HEAD/contracts/margin/external/exchangewrappers/OpenDirectlyExchangeWrapper.sol -------------------------------------------------------------------------------- /contracts/margin/external/exchangewrappers/SaiDaiExchangeWrapper.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dydxprotocol/protocol_v1/HEAD/contracts/margin/external/exchangewrappers/SaiDaiExchangeWrapper.sol -------------------------------------------------------------------------------- /contracts/margin/external/exchangewrappers/ZeroExV1ExchangeWrapper.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dydxprotocol/protocol_v1/HEAD/contracts/margin/external/exchangewrappers/ZeroExV1ExchangeWrapper.sol -------------------------------------------------------------------------------- /contracts/margin/external/exchangewrappers/ZeroExV2ExchangeWrapper.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dydxprotocol/protocol_v1/HEAD/contracts/margin/external/exchangewrappers/ZeroExV2ExchangeWrapper.sol -------------------------------------------------------------------------------- /contracts/margin/external/exchangewrappers/ZeroExV2MultiOrderExchangeWrapper.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dydxprotocol/protocol_v1/HEAD/contracts/margin/external/exchangewrappers/ZeroExV2MultiOrderExchangeWrapper.sol -------------------------------------------------------------------------------- /contracts/margin/external/interfaces/PositionCustodian.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dydxprotocol/protocol_v1/HEAD/contracts/margin/external/interfaces/PositionCustodian.sol -------------------------------------------------------------------------------- /contracts/margin/external/lib/LoanOfferingParser.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dydxprotocol/protocol_v1/HEAD/contracts/margin/external/lib/LoanOfferingParser.sol -------------------------------------------------------------------------------- /contracts/margin/external/lib/MarginHelper.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dydxprotocol/protocol_v1/HEAD/contracts/margin/external/lib/MarginHelper.sol -------------------------------------------------------------------------------- /contracts/margin/external/payoutrecipients/DutchAuctionCloser.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dydxprotocol/protocol_v1/HEAD/contracts/margin/external/payoutrecipients/DutchAuctionCloser.sol -------------------------------------------------------------------------------- /contracts/margin/external/payoutrecipients/WethPayoutRecipient.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dydxprotocol/protocol_v1/HEAD/contracts/margin/external/payoutrecipients/WethPayoutRecipient.sol -------------------------------------------------------------------------------- /contracts/margin/impl/BorrowShared.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dydxprotocol/protocol_v1/HEAD/contracts/margin/impl/BorrowShared.sol -------------------------------------------------------------------------------- /contracts/margin/impl/ClosePositionImpl.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dydxprotocol/protocol_v1/HEAD/contracts/margin/impl/ClosePositionImpl.sol -------------------------------------------------------------------------------- /contracts/margin/impl/ClosePositionShared.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dydxprotocol/protocol_v1/HEAD/contracts/margin/impl/ClosePositionShared.sol -------------------------------------------------------------------------------- /contracts/margin/impl/CloseWithoutCounterpartyImpl.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dydxprotocol/protocol_v1/HEAD/contracts/margin/impl/CloseWithoutCounterpartyImpl.sol -------------------------------------------------------------------------------- /contracts/margin/impl/DepositCollateralImpl.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dydxprotocol/protocol_v1/HEAD/contracts/margin/impl/DepositCollateralImpl.sol -------------------------------------------------------------------------------- /contracts/margin/impl/ForceRecoverCollateralImpl.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dydxprotocol/protocol_v1/HEAD/contracts/margin/impl/ForceRecoverCollateralImpl.sol -------------------------------------------------------------------------------- /contracts/margin/impl/IncreasePositionImpl.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dydxprotocol/protocol_v1/HEAD/contracts/margin/impl/IncreasePositionImpl.sol -------------------------------------------------------------------------------- /contracts/margin/impl/InterestImpl.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dydxprotocol/protocol_v1/HEAD/contracts/margin/impl/InterestImpl.sol -------------------------------------------------------------------------------- /contracts/margin/impl/LoanGetters.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dydxprotocol/protocol_v1/HEAD/contracts/margin/impl/LoanGetters.sol -------------------------------------------------------------------------------- /contracts/margin/impl/LoanImpl.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dydxprotocol/protocol_v1/HEAD/contracts/margin/impl/LoanImpl.sol -------------------------------------------------------------------------------- /contracts/margin/impl/MarginAdmin.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dydxprotocol/protocol_v1/HEAD/contracts/margin/impl/MarginAdmin.sol -------------------------------------------------------------------------------- /contracts/margin/impl/MarginCommon.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dydxprotocol/protocol_v1/HEAD/contracts/margin/impl/MarginCommon.sol -------------------------------------------------------------------------------- /contracts/margin/impl/MarginEvents.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dydxprotocol/protocol_v1/HEAD/contracts/margin/impl/MarginEvents.sol -------------------------------------------------------------------------------- /contracts/margin/impl/MarginState.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dydxprotocol/protocol_v1/HEAD/contracts/margin/impl/MarginState.sol -------------------------------------------------------------------------------- /contracts/margin/impl/MarginStorage.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dydxprotocol/protocol_v1/HEAD/contracts/margin/impl/MarginStorage.sol -------------------------------------------------------------------------------- /contracts/margin/impl/OpenPositionImpl.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dydxprotocol/protocol_v1/HEAD/contracts/margin/impl/OpenPositionImpl.sol -------------------------------------------------------------------------------- /contracts/margin/impl/OpenWithoutCounterpartyImpl.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dydxprotocol/protocol_v1/HEAD/contracts/margin/impl/OpenWithoutCounterpartyImpl.sol -------------------------------------------------------------------------------- /contracts/margin/impl/PositionGetters.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dydxprotocol/protocol_v1/HEAD/contracts/margin/impl/PositionGetters.sol -------------------------------------------------------------------------------- /contracts/margin/impl/TransferImpl.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dydxprotocol/protocol_v1/HEAD/contracts/margin/impl/TransferImpl.sol -------------------------------------------------------------------------------- /contracts/margin/impl/TransferInternal.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dydxprotocol/protocol_v1/HEAD/contracts/margin/impl/TransferInternal.sol -------------------------------------------------------------------------------- /contracts/margin/interfaces/ExchangeReader.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dydxprotocol/protocol_v1/HEAD/contracts/margin/interfaces/ExchangeReader.sol -------------------------------------------------------------------------------- /contracts/margin/interfaces/ExchangeWrapper.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dydxprotocol/protocol_v1/HEAD/contracts/margin/interfaces/ExchangeWrapper.sol -------------------------------------------------------------------------------- /contracts/margin/interfaces/LoanOfferingVerifier.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dydxprotocol/protocol_v1/HEAD/contracts/margin/interfaces/LoanOfferingVerifier.sol -------------------------------------------------------------------------------- /contracts/margin/interfaces/OnlyMargin.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dydxprotocol/protocol_v1/HEAD/contracts/margin/interfaces/OnlyMargin.sol -------------------------------------------------------------------------------- /contracts/margin/interfaces/PayoutRecipient.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dydxprotocol/protocol_v1/HEAD/contracts/margin/interfaces/PayoutRecipient.sol -------------------------------------------------------------------------------- /contracts/margin/interfaces/lender/CancelMarginCallDelegator.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dydxprotocol/protocol_v1/HEAD/contracts/margin/interfaces/lender/CancelMarginCallDelegator.sol -------------------------------------------------------------------------------- /contracts/margin/interfaces/lender/CloseLoanDelegator.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dydxprotocol/protocol_v1/HEAD/contracts/margin/interfaces/lender/CloseLoanDelegator.sol -------------------------------------------------------------------------------- /contracts/margin/interfaces/lender/ForceRecoverCollateralDelegator.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dydxprotocol/protocol_v1/HEAD/contracts/margin/interfaces/lender/ForceRecoverCollateralDelegator.sol -------------------------------------------------------------------------------- /contracts/margin/interfaces/lender/IncreaseLoanDelegator.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dydxprotocol/protocol_v1/HEAD/contracts/margin/interfaces/lender/IncreaseLoanDelegator.sol -------------------------------------------------------------------------------- /contracts/margin/interfaces/lender/LoanOwner.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dydxprotocol/protocol_v1/HEAD/contracts/margin/interfaces/lender/LoanOwner.sol -------------------------------------------------------------------------------- /contracts/margin/interfaces/lender/MarginCallDelegator.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dydxprotocol/protocol_v1/HEAD/contracts/margin/interfaces/lender/MarginCallDelegator.sol -------------------------------------------------------------------------------- /contracts/margin/interfaces/owner/ClosePositionDelegator.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dydxprotocol/protocol_v1/HEAD/contracts/margin/interfaces/owner/ClosePositionDelegator.sol -------------------------------------------------------------------------------- /contracts/margin/interfaces/owner/DepositCollateralDelegator.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dydxprotocol/protocol_v1/HEAD/contracts/margin/interfaces/owner/DepositCollateralDelegator.sol -------------------------------------------------------------------------------- /contracts/margin/interfaces/owner/IncreasePositionDelegator.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dydxprotocol/protocol_v1/HEAD/contracts/margin/interfaces/owner/IncreasePositionDelegator.sol -------------------------------------------------------------------------------- /contracts/margin/interfaces/owner/PositionOwner.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dydxprotocol/protocol_v1/HEAD/contracts/margin/interfaces/owner/PositionOwner.sol -------------------------------------------------------------------------------- /contracts/testing/ErroringOmiseToken.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dydxprotocol/protocol_v1/HEAD/contracts/testing/ErroringOmiseToken.sol -------------------------------------------------------------------------------- /contracts/testing/ErroringToken.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dydxprotocol/protocol_v1/HEAD/contracts/testing/ErroringToken.sol -------------------------------------------------------------------------------- /contracts/testing/OmiseToken.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dydxprotocol/protocol_v1/HEAD/contracts/testing/OmiseToken.sol -------------------------------------------------------------------------------- /contracts/testing/OwnedToken.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dydxprotocol/protocol_v1/HEAD/contracts/testing/OwnedToken.sol -------------------------------------------------------------------------------- /contracts/testing/TestBucketLender.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dydxprotocol/protocol_v1/HEAD/contracts/testing/TestBucketLender.sol -------------------------------------------------------------------------------- /contracts/testing/TestCloseLoanDelegator.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dydxprotocol/protocol_v1/HEAD/contracts/testing/TestCloseLoanDelegator.sol -------------------------------------------------------------------------------- /contracts/testing/TestClosePositionDelegator.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dydxprotocol/protocol_v1/HEAD/contracts/testing/TestClosePositionDelegator.sol -------------------------------------------------------------------------------- /contracts/testing/TestDepositCollateralDelegator.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dydxprotocol/protocol_v1/HEAD/contracts/testing/TestDepositCollateralDelegator.sol -------------------------------------------------------------------------------- /contracts/testing/TestERC20Position.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dydxprotocol/protocol_v1/HEAD/contracts/testing/TestERC20Position.sol -------------------------------------------------------------------------------- /contracts/testing/TestExchangeWrapper.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dydxprotocol/protocol_v1/HEAD/contracts/testing/TestExchangeWrapper.sol -------------------------------------------------------------------------------- /contracts/testing/TestExponent.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dydxprotocol/protocol_v1/HEAD/contracts/testing/TestExponent.sol -------------------------------------------------------------------------------- /contracts/testing/TestForceRecoverCollateralDelegator.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dydxprotocol/protocol_v1/HEAD/contracts/testing/TestForceRecoverCollateralDelegator.sol -------------------------------------------------------------------------------- /contracts/testing/TestFractionMath.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dydxprotocol/protocol_v1/HEAD/contracts/testing/TestFractionMath.sol -------------------------------------------------------------------------------- /contracts/testing/TestInterestImpl.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dydxprotocol/protocol_v1/HEAD/contracts/testing/TestInterestImpl.sol -------------------------------------------------------------------------------- /contracts/testing/TestLoanOwner.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dydxprotocol/protocol_v1/HEAD/contracts/testing/TestLoanOwner.sol -------------------------------------------------------------------------------- /contracts/testing/TestMarginCallDelegator.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dydxprotocol/protocol_v1/HEAD/contracts/testing/TestMarginCallDelegator.sol -------------------------------------------------------------------------------- /contracts/testing/TestMathHelpers.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dydxprotocol/protocol_v1/HEAD/contracts/testing/TestMathHelpers.sol -------------------------------------------------------------------------------- /contracts/testing/TestNonReentrant.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dydxprotocol/protocol_v1/HEAD/contracts/testing/TestNonReentrant.sol -------------------------------------------------------------------------------- /contracts/testing/TestPositionOwner.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dydxprotocol/protocol_v1/HEAD/contracts/testing/TestPositionOwner.sol -------------------------------------------------------------------------------- /contracts/testing/TestReenterer.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dydxprotocol/protocol_v1/HEAD/contracts/testing/TestReenterer.sol -------------------------------------------------------------------------------- /contracts/testing/TestScdMcdMigration.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dydxprotocol/protocol_v1/HEAD/contracts/testing/TestScdMcdMigration.sol -------------------------------------------------------------------------------- /contracts/testing/TestSmartContractLender.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dydxprotocol/protocol_v1/HEAD/contracts/testing/TestSmartContractLender.sol -------------------------------------------------------------------------------- /contracts/testing/TestStaticAccessControlled.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dydxprotocol/protocol_v1/HEAD/contracts/testing/TestStaticAccessControlled.sol -------------------------------------------------------------------------------- /contracts/testing/TestToken.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dydxprotocol/protocol_v1/HEAD/contracts/testing/TestToken.sol -------------------------------------------------------------------------------- /contracts/testing/TestTokenInteract.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dydxprotocol/protocol_v1/HEAD/contracts/testing/TestTokenInteract.sol -------------------------------------------------------------------------------- /contracts/testing/TestTypedSignature.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dydxprotocol/protocol_v1/HEAD/contracts/testing/TestTypedSignature.sol -------------------------------------------------------------------------------- /contracts/testing/TokenA.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dydxprotocol/protocol_v1/HEAD/contracts/testing/TokenA.sol -------------------------------------------------------------------------------- /contracts/testing/TokenB.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dydxprotocol/protocol_v1/HEAD/contracts/testing/TokenB.sol -------------------------------------------------------------------------------- /contracts/testing/TokenC.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dydxprotocol/protocol_v1/HEAD/contracts/testing/TokenC.sol -------------------------------------------------------------------------------- /migrations/1_initial_migration.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dydxprotocol/protocol_v1/HEAD/migrations/1_initial_migration.js -------------------------------------------------------------------------------- /migrations/2_deploy.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dydxprotocol/protocol_v1/HEAD/migrations/2_deploy.js -------------------------------------------------------------------------------- /migrations/3_seeds.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dydxprotocol/protocol_v1/HEAD/migrations/3_seeds.js -------------------------------------------------------------------------------- /migrations/deployed.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dydxprotocol/protocol_v1/HEAD/migrations/deployed.json -------------------------------------------------------------------------------- /migrations/deployed_addresses.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dydxprotocol/protocol_v1/HEAD/migrations/deployed_addresses.md -------------------------------------------------------------------------------- /migrations/external-deployed.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dydxprotocol/protocol_v1/HEAD/migrations/external-deployed.json -------------------------------------------------------------------------------- /migrations/helpers.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dydxprotocol/protocol_v1/HEAD/migrations/helpers.js -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dydxprotocol/protocol_v1/HEAD/package.json -------------------------------------------------------------------------------- /scripts/clean-build.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dydxprotocol/protocol_v1/HEAD/scripts/clean-build.js -------------------------------------------------------------------------------- /scripts/docker.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dydxprotocol/protocol_v1/HEAD/scripts/docker.sh -------------------------------------------------------------------------------- /scripts/prod_build.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dydxprotocol/protocol_v1/HEAD/scripts/prod_build.sh -------------------------------------------------------------------------------- /scripts/publish_if_not_exists.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dydxprotocol/protocol_v1/HEAD/scripts/publish_if_not_exists.sh -------------------------------------------------------------------------------- /scripts/save-deployed-addresses.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dydxprotocol/protocol_v1/HEAD/scripts/save-deployed-addresses.js -------------------------------------------------------------------------------- /src/index.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dydxprotocol/protocol_v1/HEAD/src/index.js -------------------------------------------------------------------------------- /src/lib/contracts.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dydxprotocol/protocol_v1/HEAD/src/lib/contracts.js -------------------------------------------------------------------------------- /src/lib/seeds.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dydxprotocol/protocol_v1/HEAD/src/lib/seeds.js -------------------------------------------------------------------------------- /src/lib/snapshots.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dydxprotocol/protocol_v1/HEAD/src/lib/snapshots.js -------------------------------------------------------------------------------- /test/contracts/OasisDex.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dydxprotocol/protocol_v1/HEAD/test/contracts/OasisDex.js -------------------------------------------------------------------------------- /test/contracts/ZeroExV1.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dydxprotocol/protocol_v1/HEAD/test/contracts/ZeroExV1.js -------------------------------------------------------------------------------- /test/contracts/ZeroExV2.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dydxprotocol/protocol_v1/HEAD/test/contracts/ZeroExV2.js -------------------------------------------------------------------------------- /test/contracts/json/MatchingMarketV1.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dydxprotocol/protocol_v1/HEAD/test/contracts/json/MatchingMarketV1.json -------------------------------------------------------------------------------- /test/contracts/json/MatchingMarketV2.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dydxprotocol/protocol_v1/HEAD/test/contracts/json/MatchingMarketV2.json -------------------------------------------------------------------------------- /test/helpers/AccessControlledHelper.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dydxprotocol/protocol_v1/HEAD/test/helpers/AccessControlledHelper.js -------------------------------------------------------------------------------- /test/helpers/BytesHelper.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dydxprotocol/protocol_v1/HEAD/test/helpers/BytesHelper.js -------------------------------------------------------------------------------- /test/helpers/ClosePositionHelper.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dydxprotocol/protocol_v1/HEAD/test/helpers/ClosePositionHelper.js -------------------------------------------------------------------------------- /test/helpers/Constants.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dydxprotocol/protocol_v1/HEAD/test/helpers/Constants.js -------------------------------------------------------------------------------- /test/helpers/ContractHelper.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dydxprotocol/protocol_v1/HEAD/test/helpers/ContractHelper.js -------------------------------------------------------------------------------- /test/helpers/ERC20PositionHelper.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dydxprotocol/protocol_v1/HEAD/test/helpers/ERC20PositionHelper.js -------------------------------------------------------------------------------- /test/helpers/EventHelper.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dydxprotocol/protocol_v1/HEAD/test/helpers/EventHelper.js -------------------------------------------------------------------------------- /test/helpers/ExchangeHelper.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dydxprotocol/protocol_v1/HEAD/test/helpers/ExchangeHelper.js -------------------------------------------------------------------------------- /test/helpers/ExpectHelper.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dydxprotocol/protocol_v1/HEAD/test/helpers/ExpectHelper.js -------------------------------------------------------------------------------- /test/helpers/LoanHelper.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dydxprotocol/protocol_v1/HEAD/test/helpers/LoanHelper.js -------------------------------------------------------------------------------- /test/helpers/MarginHelper.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dydxprotocol/protocol_v1/HEAD/test/helpers/MarginHelper.js -------------------------------------------------------------------------------- /test/helpers/MathHelper.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dydxprotocol/protocol_v1/HEAD/test/helpers/MathHelper.js -------------------------------------------------------------------------------- /test/helpers/NodeHelper.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dydxprotocol/protocol_v1/HEAD/test/helpers/NodeHelper.js -------------------------------------------------------------------------------- /test/helpers/TokenHelper.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dydxprotocol/protocol_v1/HEAD/test/helpers/TokenHelper.js -------------------------------------------------------------------------------- /test/helpers/ZeroExV1Helper.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dydxprotocol/protocol_v1/HEAD/test/helpers/ZeroExV1Helper.js -------------------------------------------------------------------------------- /test/helpers/ZeroExV2Helper.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dydxprotocol/protocol_v1/HEAD/test/helpers/ZeroExV2Helper.js -------------------------------------------------------------------------------- /test/tests/js/TestReset.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dydxprotocol/protocol_v1/HEAD/test/tests/js/TestReset.js -------------------------------------------------------------------------------- /test/tests/js/TestSeeds.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dydxprotocol/protocol_v1/HEAD/test/tests/js/TestSeeds.js -------------------------------------------------------------------------------- /test/tests/lib/TestNonReentrant.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dydxprotocol/protocol_v1/HEAD/test/tests/lib/TestNonReentrant.js -------------------------------------------------------------------------------- /test/tests/lib/TestStaticAccessControlled.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dydxprotocol/protocol_v1/HEAD/test/tests/lib/TestStaticAccessControlled.js -------------------------------------------------------------------------------- /test/tests/lib/TestTokenInteract.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dydxprotocol/protocol_v1/HEAD/test/tests/lib/TestTokenInteract.js -------------------------------------------------------------------------------- /test/tests/lib/TestTypedSignature.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dydxprotocol/protocol_v1/HEAD/test/tests/lib/TestTypedSignature.js -------------------------------------------------------------------------------- /test/tests/margin/TestCancelLoan.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dydxprotocol/protocol_v1/HEAD/test/tests/margin/TestCancelLoan.js -------------------------------------------------------------------------------- /test/tests/margin/TestClosePosition.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dydxprotocol/protocol_v1/HEAD/test/tests/margin/TestClosePosition.js -------------------------------------------------------------------------------- /test/tests/margin/TestCloseWithoutCounterparty.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dydxprotocol/protocol_v1/HEAD/test/tests/margin/TestCloseWithoutCounterparty.js -------------------------------------------------------------------------------- /test/tests/margin/TestDepositCollateral.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dydxprotocol/protocol_v1/HEAD/test/tests/margin/TestDepositCollateral.js -------------------------------------------------------------------------------- /test/tests/margin/TestExponent.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dydxprotocol/protocol_v1/HEAD/test/tests/margin/TestExponent.js -------------------------------------------------------------------------------- /test/tests/margin/TestForceRecoverCollateral.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dydxprotocol/protocol_v1/HEAD/test/tests/margin/TestForceRecoverCollateral.js -------------------------------------------------------------------------------- /test/tests/margin/TestFractionMath.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dydxprotocol/protocol_v1/HEAD/test/tests/margin/TestFractionMath.js -------------------------------------------------------------------------------- /test/tests/margin/TestIncreasePosition.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dydxprotocol/protocol_v1/HEAD/test/tests/margin/TestIncreasePosition.js -------------------------------------------------------------------------------- /test/tests/margin/TestIncreaseWithoutCounterparty.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dydxprotocol/protocol_v1/HEAD/test/tests/margin/TestIncreaseWithoutCounterparty.js -------------------------------------------------------------------------------- /test/tests/margin/TestInterestImpl.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dydxprotocol/protocol_v1/HEAD/test/tests/margin/TestInterestImpl.js -------------------------------------------------------------------------------- /test/tests/margin/TestInvalidPositions.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dydxprotocol/protocol_v1/HEAD/test/tests/margin/TestInvalidPositions.js -------------------------------------------------------------------------------- /test/tests/margin/TestLoanGetters.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dydxprotocol/protocol_v1/HEAD/test/tests/margin/TestLoanGetters.js -------------------------------------------------------------------------------- /test/tests/margin/TestMarginAdmin.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dydxprotocol/protocol_v1/HEAD/test/tests/margin/TestMarginAdmin.js -------------------------------------------------------------------------------- /test/tests/margin/TestMarginCall.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dydxprotocol/protocol_v1/HEAD/test/tests/margin/TestMarginCall.js -------------------------------------------------------------------------------- /test/tests/margin/TestMathHelpers.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dydxprotocol/protocol_v1/HEAD/test/tests/margin/TestMathHelpers.js -------------------------------------------------------------------------------- /test/tests/margin/TestOpenPosition.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dydxprotocol/protocol_v1/HEAD/test/tests/margin/TestOpenPosition.js -------------------------------------------------------------------------------- /test/tests/margin/TestOpenWithoutCounterparty.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dydxprotocol/protocol_v1/HEAD/test/tests/margin/TestOpenWithoutCounterparty.js -------------------------------------------------------------------------------- /test/tests/margin/TestPositionGetters.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dydxprotocol/protocol_v1/HEAD/test/tests/margin/TestPositionGetters.js -------------------------------------------------------------------------------- /test/tests/margin/TestProxy.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dydxprotocol/protocol_v1/HEAD/test/tests/margin/TestProxy.js -------------------------------------------------------------------------------- /test/tests/margin/TestTransfer.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dydxprotocol/protocol_v1/HEAD/test/tests/margin/TestTransfer.js -------------------------------------------------------------------------------- /test/tests/margin/TestVault.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dydxprotocol/protocol_v1/HEAD/test/tests/margin/TestVault.js -------------------------------------------------------------------------------- /test/tests/margin/external/SharedLoanHelper.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dydxprotocol/protocol_v1/HEAD/test/tests/margin/external/SharedLoanHelper.js -------------------------------------------------------------------------------- /test/tests/margin/external/TestAuctionProxy.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dydxprotocol/protocol_v1/HEAD/test/tests/margin/external/TestAuctionProxy.js -------------------------------------------------------------------------------- /test/tests/margin/external/TestDutchAuctionCloser.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dydxprotocol/protocol_v1/HEAD/test/tests/margin/external/TestDutchAuctionCloser.js -------------------------------------------------------------------------------- /test/tests/margin/external/TestSharedLoan.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dydxprotocol/protocol_v1/HEAD/test/tests/margin/external/TestSharedLoan.js -------------------------------------------------------------------------------- /test/tests/margin/external/TestSharedLoanFactory.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dydxprotocol/protocol_v1/HEAD/test/tests/margin/external/TestSharedLoanFactory.js -------------------------------------------------------------------------------- /test/tests/margin/external/TestWethPayoutRecipient.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dydxprotocol/protocol_v1/HEAD/test/tests/margin/external/TestWethPayoutRecipient.js -------------------------------------------------------------------------------- /test/tests/margin/external/bucketlender/TestBucketLender.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dydxprotocol/protocol_v1/HEAD/test/tests/margin/external/bucketlender/TestBucketLender.js -------------------------------------------------------------------------------- /test/tests/margin/external/bucketlender/TestBucketLenderFactory.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dydxprotocol/protocol_v1/HEAD/test/tests/margin/external/bucketlender/TestBucketLenderFactory.js -------------------------------------------------------------------------------- /test/tests/margin/external/bucketlender/TestBucketLenderProxy.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dydxprotocol/protocol_v1/HEAD/test/tests/margin/external/bucketlender/TestBucketLenderProxy.js -------------------------------------------------------------------------------- /test/tests/margin/external/bucketlender/TestBucketLenderWithRecoveryDelay.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dydxprotocol/protocol_v1/HEAD/test/tests/margin/external/bucketlender/TestBucketLenderWithRecoveryDelay.js -------------------------------------------------------------------------------- /test/tests/margin/external/bucketlender/TestEthWrapperForBucketLender.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dydxprotocol/protocol_v1/HEAD/test/tests/margin/external/bucketlender/TestEthWrapperForBucketLender.js -------------------------------------------------------------------------------- /test/tests/margin/external/erc20/ERC20PositionHelper.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dydxprotocol/protocol_v1/HEAD/test/tests/margin/external/erc20/ERC20PositionHelper.js -------------------------------------------------------------------------------- /test/tests/margin/external/erc20/TestERC20CappedPosition.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dydxprotocol/protocol_v1/HEAD/test/tests/margin/external/erc20/TestERC20CappedPosition.js -------------------------------------------------------------------------------- /test/tests/margin/external/erc20/TestERC20Long.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dydxprotocol/protocol_v1/HEAD/test/tests/margin/external/erc20/TestERC20Long.js -------------------------------------------------------------------------------- /test/tests/margin/external/erc20/TestERC20PositionFactory.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dydxprotocol/protocol_v1/HEAD/test/tests/margin/external/erc20/TestERC20PositionFactory.js -------------------------------------------------------------------------------- /test/tests/margin/external/erc20/TestERC20PositionWithdrawer.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dydxprotocol/protocol_v1/HEAD/test/tests/margin/external/erc20/TestERC20PositionWithdrawer.js -------------------------------------------------------------------------------- /test/tests/margin/external/erc20/TestERC20PositionWithdrawerV2.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dydxprotocol/protocol_v1/HEAD/test/tests/margin/external/erc20/TestERC20PositionWithdrawerV2.js -------------------------------------------------------------------------------- /test/tests/margin/external/erc20/TestERC20Short.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dydxprotocol/protocol_v1/HEAD/test/tests/margin/external/erc20/TestERC20Short.js -------------------------------------------------------------------------------- /test/tests/margin/external/erc20/TestPayableMarginMinter.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dydxprotocol/protocol_v1/HEAD/test/tests/margin/external/erc20/TestPayableMarginMinter.js -------------------------------------------------------------------------------- /test/tests/margin/external/erc721/TestERC721MarginLoan.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dydxprotocol/protocol_v1/HEAD/test/tests/margin/external/erc721/TestERC721MarginLoan.js -------------------------------------------------------------------------------- /test/tests/margin/external/erc721/TestERC721MarginPosition.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dydxprotocol/protocol_v1/HEAD/test/tests/margin/external/erc721/TestERC721MarginPosition.js -------------------------------------------------------------------------------- /test/tests/margin/external/exchangewrappers/TestOasisV1MatchingMarketExchangeWrapper.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dydxprotocol/protocol_v1/HEAD/test/tests/margin/external/exchangewrappers/TestOasisV1MatchingMarketExchangeWrapper.js -------------------------------------------------------------------------------- /test/tests/margin/external/exchangewrappers/TestOasisV1SimpleMarketExchangeWrapper.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dydxprotocol/protocol_v1/HEAD/test/tests/margin/external/exchangewrappers/TestOasisV1SimpleMarketExchangeWrapper.js -------------------------------------------------------------------------------- /test/tests/margin/external/exchangewrappers/TestOasisV2SimpleMarketExchangeWrapper.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dydxprotocol/protocol_v1/HEAD/test/tests/margin/external/exchangewrappers/TestOasisV2SimpleMarketExchangeWrapper.js -------------------------------------------------------------------------------- /test/tests/margin/external/exchangewrappers/TestOasisV3MatchingMarketExchangeWrapper.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dydxprotocol/protocol_v1/HEAD/test/tests/margin/external/exchangewrappers/TestOasisV3MatchingMarketExchangeWrapper.js -------------------------------------------------------------------------------- /test/tests/margin/external/exchangewrappers/TestOasisV3SimpleMarketExchangeWrapper.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dydxprotocol/protocol_v1/HEAD/test/tests/margin/external/exchangewrappers/TestOasisV3SimpleMarketExchangeWrapper.js -------------------------------------------------------------------------------- /test/tests/margin/external/exchangewrappers/TestOpenDirectlyExchangeWrapper.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dydxprotocol/protocol_v1/HEAD/test/tests/margin/external/exchangewrappers/TestOpenDirectlyExchangeWrapper.js -------------------------------------------------------------------------------- /test/tests/margin/external/exchangewrappers/TestSaiDaiExchangeWrapper.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dydxprotocol/protocol_v1/HEAD/test/tests/margin/external/exchangewrappers/TestSaiDaiExchangeWrapper.js -------------------------------------------------------------------------------- /test/tests/margin/external/exchangewrappers/TestZeroExV1ExchangeWrapper.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dydxprotocol/protocol_v1/HEAD/test/tests/margin/external/exchangewrappers/TestZeroExV1ExchangeWrapper.js -------------------------------------------------------------------------------- /test/tests/margin/external/exchangewrappers/TestZeroExV2ExchangeWrapper.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dydxprotocol/protocol_v1/HEAD/test/tests/margin/external/exchangewrappers/TestZeroExV2ExchangeWrapper.js -------------------------------------------------------------------------------- /test/tests/margin/external/exchangewrappers/TestZeroExV2MultiOrderExchangeWrapper.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dydxprotocol/protocol_v1/HEAD/test/tests/margin/external/exchangewrappers/TestZeroExV2MultiOrderExchangeWrapper.js -------------------------------------------------------------------------------- /truffle.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dydxprotocol/protocol_v1/HEAD/truffle.js -------------------------------------------------------------------------------- /util/DeployGasCosts.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dydxprotocol/protocol_v1/HEAD/util/DeployGasCosts.js -------------------------------------------------------------------------------- /util/hideasserts.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dydxprotocol/protocol_v1/HEAD/util/hideasserts.py -------------------------------------------------------------------------------- /util/lintcontracts.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dydxprotocol/protocol_v1/HEAD/util/lintcontracts.py -------------------------------------------------------------------------------- /util/linttests.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dydxprotocol/protocol_v1/HEAD/util/linttests.py --------------------------------------------------------------------------------