Refactor and add Balancer V2 stub

This commit is contained in:
pistomat
2023-12-01 13:09:02 +01:00
parent 316d1ffdb1
commit 092fce79f6
11 changed files with 187 additions and 38 deletions

View File

@@ -4,3 +4,22 @@ This page describes the interface required to implement protocol logic component
To create a VM implementation, it is required two provide a manifest file as well as a implementation of the corresponding adapter interface.
## Step by step
### Prerequisites
1. Start by making a local copy of the Propeller Protocol Lib repository:
```bash
git clone https://github.com/propeller-heads/propeller-protocol-lib
```
2. Install `Foundry`, the smart contract development toolchain we use. We recommend installation using [foundryup](https://book.getfoundry.sh/getting-started/installation#using-foundryup)
3. Install forge dependencies:
```bash
cd evm
forge install
```
4. Your integration should be in a separate directory in the `evm/src` folder. You can clone one of the example directories `evm/src/uniswap-v2` or `evm/src/balancer` and rename it to your integration name.
```

View File

@@ -46,7 +46,7 @@ instances:
arguments:
- "0x5C69bEe701ef814a2B6a3EDD4B1652CB9cc5aA6f"
# Specify some automatic test cases in case getPools and
# Specify some automatic test cases in case getPoolIds and
# getTokens are not implemented.
tests:
instances:
@@ -117,7 +117,7 @@ Retrieves the capabilities of the selected pair.
```solidity
function getCapabilities(bytes32 pairId, IERC20 sellToken, IERC20 buyToken)
external
returns (Capabilities[] memory);
returns (Capability[] memory);
```
#### getTokens (optional)