From 3dc290c3df35318112db04c80f3dc3d97259c2ad Mon Sep 17 00:00:00 2001 From: pistomat Date: Wed, 27 Mar 2024 10:31:00 +0100 Subject: [PATCH] Formatting --- docs/logic/vm-integration/ethereum-solidity.md | 4 ++-- evm/src/balancer-v2/BalancerV2SwapAdapter.sol | 1 - evm/src/balancer-v2/manifest.yaml | 12 ++++++------ evm/src/template/TemplateSwapAdapter.sol | 1 - evm/src/template/manifest.yaml | 4 ++-- evm/src/uniswap-v2/manifest.yaml | 16 ++-------------- 6 files changed, 12 insertions(+), 26 deletions(-) diff --git a/docs/logic/vm-integration/ethereum-solidity.md b/docs/logic/vm-integration/ethereum-solidity.md index 0d6133a..f7bf759 100644 --- a/docs/logic/vm-integration/ethereum-solidity.md +++ b/docs/logic/vm-integration/ethereum-solidity.md @@ -43,7 +43,7 @@ contract: instances: - chain: name: mainnet - id: 0 + id: 1 # Arguments passed to the constructor when building the contract arguments: - "0x5C69bEe701ef814a2B6a3EDD4B1652CB9cc5aA6f" @@ -57,8 +57,8 @@ tests: buy_token: "0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48" block: 17000000 chain: - id: 0 name: mainnet + id: 1 ``` #### Price (optional) diff --git a/evm/src/balancer-v2/BalancerV2SwapAdapter.sol b/evm/src/balancer-v2/BalancerV2SwapAdapter.sol index 56d1d6e..6413013 100644 --- a/evm/src/balancer-v2/BalancerV2SwapAdapter.sol +++ b/evm/src/balancer-v2/BalancerV2SwapAdapter.sol @@ -1,5 +1,4 @@ // SPDX-License-Identifier: AGPL-3.0-or-later -pragma experimental ABIEncoderV2; pragma solidity ^0.8.13; import {IERC20, ISwapAdapter} from "src/interfaces/ISwapAdapter.sol"; diff --git a/evm/src/balancer-v2/manifest.yaml b/evm/src/balancer-v2/manifest.yaml index 0f985e9..8a01c49 100644 --- a/evm/src/balancer-v2/manifest.yaml +++ b/evm/src/balancer-v2/manifest.yaml @@ -1,6 +1,6 @@ # information about the author helps us reach out in case of issues. author: - name: Propellerheads.xyz + name: Matt email: pistomat@propellerheads.xyz # Protocol Constants @@ -19,7 +19,7 @@ contract: BalancerV2SwapAdapter.sol instances: - chain: name: mainnet - id: 0 + id: 1 arguments: - "0xBA12222222228d8Ba445958a75a0704d566BF2C8" @@ -27,10 +27,10 @@ instances: # getTokens are not implemented. tests: instances: - - pool_id: "0xB4e16d0168e52d35CaCD2c6185b44281Ec28C9Dc" - sell_token: "0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2" - buy_token: "0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48" + - pool_id: "0x5c6ee304399dbdb9c8ef030ab642b10820db8f56000200000000000000000014" + sell_token: "0xba100000625a3754423978a60c9317c58a424e3D" + buy_token: "0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2" block: 17000000 chain: - id: 0 name: mainnet + id: 1 diff --git a/evm/src/template/TemplateSwapAdapter.sol b/evm/src/template/TemplateSwapAdapter.sol index 5c8d638..e7f1dcc 100644 --- a/evm/src/template/TemplateSwapAdapter.sol +++ b/evm/src/template/TemplateSwapAdapter.sol @@ -1,5 +1,4 @@ // SPDX-License-Identifier: AGPL-3.0-or-later -pragma experimental ABIEncoderV2; pragma solidity ^0.8.13; import {IERC20, ISwapAdapter} from "src/interfaces/ISwapAdapter.sol"; diff --git a/evm/src/template/manifest.yaml b/evm/src/template/manifest.yaml index 7343007..069da33 100644 --- a/evm/src/template/manifest.yaml +++ b/evm/src/template/manifest.yaml @@ -19,7 +19,7 @@ contract: TemplateSwapAdapter.sol instances: - chain: name: mainnet - id: 0 + id: 1 arguments: - "0xBA12222222228d8Ba445958a75a0704d566BF2C8" @@ -32,5 +32,5 @@ tests: buy_token: "0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48" block: 17000000 chain: - id: 0 name: mainnet + id: 1 diff --git a/evm/src/uniswap-v2/manifest.yaml b/evm/src/uniswap-v2/manifest.yaml index a6f469c..7c68477 100644 --- a/evm/src/uniswap-v2/manifest.yaml +++ b/evm/src/uniswap-v2/manifest.yaml @@ -1,6 +1,6 @@ # information about the author helps us reach out in case of issues. author: - name: Propellerheads.xyz + name: Alan email: alan@propellerheads.xyz # Protocol Constants @@ -19,18 +19,6 @@ contract: UniswapV2SwapAdapter.sol instances: - chain: name: mainnet - id: 0 + id: 1 arguments: - "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