-
Notifications
You must be signed in to change notification settings - Fork 43
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Zap Curve token to Principal token (#230)
- Loading branch information
1 parent
f01c51a
commit 65fddc8
Showing
18 changed files
with
2,294 additions
and
93 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -17,7 +17,7 @@ jobs: | |
- name: Coverage | ||
run: npm run build && npm run coverage | ||
- name: Edit lcov.info | ||
run: cat coverage/lcov.info | sed '/.*\/balancer-core-v2\/.*/,/TN:/d' | sed '/.*\/test\/.*/,/TN:/d' > coverage/tmp.info && mv coverage/tmp.info coverage/lcov.info | ||
run: cat coverage/lcov.info | sed '/.*\/balancer-core-v2\/.*/,/TN:/d' | sed '/.*\/test\/.*/,/TN:/d' | sed '/.*\/zaps\/.*/,/TN:/d' > coverage/tmp.info && mv coverage/tmp.info coverage/lcov.info | ||
- name: Coveralls | ||
uses: coverallsapp/[email protected] | ||
with: | ||
|
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
pragma solidity ^0.8.0; | ||
|
||
// This interface is used instead of importing one from balancer contracts to | ||
// resolve version conflicts | ||
interface IAsset { | ||
|
||
} |
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,46 @@ | ||
pragma solidity ^0.8.0; | ||
|
||
import "./IAsset.sol"; | ||
|
||
// This interface is used instead of importing one from balancer contracts to | ||
// resolve version conflicts | ||
interface IVault { | ||
enum SwapKind { | ||
GIVEN_IN, | ||
GIVEN_OUT | ||
} | ||
|
||
enum PoolSpecialization { | ||
GENERAL, | ||
MINIMAL_SWAP_INFO, | ||
TWO_TOKEN | ||
} | ||
|
||
struct SingleSwap { | ||
bytes32 poolId; | ||
SwapKind kind; | ||
IAsset assetIn; | ||
IAsset assetOut; | ||
uint256 amount; | ||
bytes userData; | ||
} | ||
|
||
struct FundManagement { | ||
address sender; | ||
bool fromInternalBalance; | ||
address payable recipient; | ||
bool toInternalBalance; | ||
} | ||
|
||
function swap( | ||
SingleSwap memory singleSwap, | ||
FundManagement memory funds, | ||
uint256 limit, | ||
uint256 deadline | ||
) external payable returns (uint256); | ||
|
||
function getPool(bytes32 poolId) | ||
external | ||
view | ||
returns (address, PoolSpecialization); | ||
} |
Oops, something went wrong.