-
Notifications
You must be signed in to change notification settings - Fork 116
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
8 changed files
with
44 additions
and
24 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
28 changes: 28 additions & 0 deletions
28
scalable-dex/contracts/src/interactions/CompositeActions.sol
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
// SPDX-License-Identifier: Apache-2.0. | ||
pragma solidity ^0.6.11; | ||
|
||
import "../interfaces/MDeposits.sol"; | ||
|
||
abstract contract CompositeActions is MDeposits { | ||
function registerAndDepositERC20( | ||
address ethKey, | ||
uint256 starkKey, | ||
bytes calldata signature, | ||
uint256 assetType, | ||
uint256 vaultId, | ||
uint256 quantizedAmount | ||
) external { | ||
depositERC20(starkKey, assetType, vaultId, quantizedAmount); | ||
} | ||
|
||
// NOLINTNEXTLINE: locked-ether. | ||
function registerAndDepositEth( | ||
address ethKey, | ||
uint256 starkKey, | ||
bytes calldata signature, | ||
uint256 assetType, | ||
uint256 vaultId | ||
) external payable { | ||
depositEth(starkKey, assetType, vaultId); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters