Formatting
This commit is contained in:
@@ -43,7 +43,7 @@ contract:
|
|||||||
instances:
|
instances:
|
||||||
- chain:
|
- chain:
|
||||||
name: mainnet
|
name: mainnet
|
||||||
id: 0
|
id: 1
|
||||||
# Arguments passed to the constructor when building the contract
|
# Arguments passed to the constructor when building the contract
|
||||||
arguments:
|
arguments:
|
||||||
- "0x5C69bEe701ef814a2B6a3EDD4B1652CB9cc5aA6f"
|
- "0x5C69bEe701ef814a2B6a3EDD4B1652CB9cc5aA6f"
|
||||||
@@ -57,8 +57,8 @@ tests:
|
|||||||
buy_token: "0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48"
|
buy_token: "0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48"
|
||||||
block: 17000000
|
block: 17000000
|
||||||
chain:
|
chain:
|
||||||
id: 0
|
|
||||||
name: mainnet
|
name: mainnet
|
||||||
|
id: 1
|
||||||
```
|
```
|
||||||
|
|
||||||
#### Price (optional)
|
#### Price (optional)
|
||||||
|
|||||||
@@ -1,5 +1,4 @@
|
|||||||
// SPDX-License-Identifier: AGPL-3.0-or-later
|
// SPDX-License-Identifier: AGPL-3.0-or-later
|
||||||
pragma experimental ABIEncoderV2;
|
|
||||||
pragma solidity ^0.8.13;
|
pragma solidity ^0.8.13;
|
||||||
|
|
||||||
import {IERC20, ISwapAdapter} from "src/interfaces/ISwapAdapter.sol";
|
import {IERC20, ISwapAdapter} from "src/interfaces/ISwapAdapter.sol";
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
# information about the author helps us reach out in case of issues.
|
# information about the author helps us reach out in case of issues.
|
||||||
author:
|
author:
|
||||||
name: Propellerheads.xyz
|
name: Matt
|
||||||
email: pistomat@propellerheads.xyz
|
email: pistomat@propellerheads.xyz
|
||||||
|
|
||||||
# Protocol Constants
|
# Protocol Constants
|
||||||
@@ -19,7 +19,7 @@ contract: BalancerV2SwapAdapter.sol
|
|||||||
instances:
|
instances:
|
||||||
- chain:
|
- chain:
|
||||||
name: mainnet
|
name: mainnet
|
||||||
id: 0
|
id: 1
|
||||||
arguments:
|
arguments:
|
||||||
- "0xBA12222222228d8Ba445958a75a0704d566BF2C8"
|
- "0xBA12222222228d8Ba445958a75a0704d566BF2C8"
|
||||||
|
|
||||||
@@ -27,10 +27,10 @@ instances:
|
|||||||
# getTokens are not implemented.
|
# getTokens are not implemented.
|
||||||
tests:
|
tests:
|
||||||
instances:
|
instances:
|
||||||
- pool_id: "0xB4e16d0168e52d35CaCD2c6185b44281Ec28C9Dc"
|
- pool_id: "0x5c6ee304399dbdb9c8ef030ab642b10820db8f56000200000000000000000014"
|
||||||
sell_token: "0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2"
|
sell_token: "0xba100000625a3754423978a60c9317c58a424e3D"
|
||||||
buy_token: "0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48"
|
buy_token: "0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2"
|
||||||
block: 17000000
|
block: 17000000
|
||||||
chain:
|
chain:
|
||||||
id: 0
|
|
||||||
name: mainnet
|
name: mainnet
|
||||||
|
id: 1
|
||||||
|
|||||||
@@ -1,5 +1,4 @@
|
|||||||
// SPDX-License-Identifier: AGPL-3.0-or-later
|
// SPDX-License-Identifier: AGPL-3.0-or-later
|
||||||
pragma experimental ABIEncoderV2;
|
|
||||||
pragma solidity ^0.8.13;
|
pragma solidity ^0.8.13;
|
||||||
|
|
||||||
import {IERC20, ISwapAdapter} from "src/interfaces/ISwapAdapter.sol";
|
import {IERC20, ISwapAdapter} from "src/interfaces/ISwapAdapter.sol";
|
||||||
|
|||||||
@@ -19,7 +19,7 @@ contract: TemplateSwapAdapter.sol
|
|||||||
instances:
|
instances:
|
||||||
- chain:
|
- chain:
|
||||||
name: mainnet
|
name: mainnet
|
||||||
id: 0
|
id: 1
|
||||||
arguments:
|
arguments:
|
||||||
- "0xBA12222222228d8Ba445958a75a0704d566BF2C8"
|
- "0xBA12222222228d8Ba445958a75a0704d566BF2C8"
|
||||||
|
|
||||||
@@ -32,5 +32,5 @@ tests:
|
|||||||
buy_token: "0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48"
|
buy_token: "0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48"
|
||||||
block: 17000000
|
block: 17000000
|
||||||
chain:
|
chain:
|
||||||
id: 0
|
|
||||||
name: mainnet
|
name: mainnet
|
||||||
|
id: 1
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
# information about the author helps us reach out in case of issues.
|
# information about the author helps us reach out in case of issues.
|
||||||
author:
|
author:
|
||||||
name: Propellerheads.xyz
|
name: Alan
|
||||||
email: alan@propellerheads.xyz
|
email: alan@propellerheads.xyz
|
||||||
|
|
||||||
# Protocol Constants
|
# Protocol Constants
|
||||||
@@ -19,18 +19,6 @@ contract: UniswapV2SwapAdapter.sol
|
|||||||
instances:
|
instances:
|
||||||
- chain:
|
- chain:
|
||||||
name: mainnet
|
name: mainnet
|
||||||
id: 0
|
id: 1
|
||||||
arguments:
|
arguments:
|
||||||
- "0x5C69bEe701ef814a2B6a3EDD4B1652CB9cc5aA6f"
|
- "0x5C69bEe701ef814a2B6a3EDD4B1652CB9cc5aA6f"
|
||||||
|
|
||||||
# Specify some automatic test cases in case getPoolIds and
|
|
||||||
# getTokens are not implemented.
|
|
||||||
tests:
|
|
||||||
instances:
|
|
||||||
- pool_id: "0xB4e16d0168e52d35CaCD2c6185b44281Ec28C9Dc"
|
|
||||||
sell_token: "0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2"
|
|
||||||
buy_token: "0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48"
|
|
||||||
block: 17000000
|
|
||||||
chain:
|
|
||||||
id: 0
|
|
||||||
name: mainnet
|
|
||||||
|
|||||||
Reference in New Issue
Block a user