From 871a5dabfe0cf1f94dc1434b835c3c9d8fd3834c Mon Sep 17 00:00:00 2001 From: Halaprix Date: Thu, 25 Jan 2024 10:56:03 +0100 Subject: [PATCH] chore: add l2 support (#106) --- packages/automation/package.json | 2 +- packages/automation/src/mapping.ts | 9 +++++++++ packages/automation/src/types.ts | 2 ++ 3 files changed, 12 insertions(+), 1 deletion(-) diff --git a/packages/automation/package.json b/packages/automation/package.json index 35d85e3..3c6373d 100644 --- a/packages/automation/package.json +++ b/packages/automation/package.json @@ -1,7 +1,7 @@ { "name": "@oasisdex/automation", "packageManager": "yarn@1.22.21", - "version": "1.5.9-alpha5", + "version": "1.6.0", "description": "The set of utilities for Oasis automation", "homepage": "https://github.com/OasisDEX/common#readme", "main": "lib/src/index.js", diff --git a/packages/automation/src/mapping.ts b/packages/automation/src/mapping.ts index 5885d7f..d188a3a 100644 --- a/packages/automation/src/mapping.ts +++ b/packages/automation/src/mapping.ts @@ -204,6 +204,15 @@ export const commandAddressMapping: Record< type: CommandContractType.AaveBasicSellCommandV2, }, }, + [EthereumNetwork.BASE]: { + + '0xb7CB13e4cD2D64e739b5746563978Ab7ee36B064': { + type: CommandContractType.AaveBasicBuyCommandV2, + }, + '0xbf566C1b260F0464f75470C146288283f11219a9': { + type: CommandContractType.AaveBasicSellCommandV2, + }, + }, }).map(([network, mapping]) => [ network, Object.fromEntries( diff --git a/packages/automation/src/types.ts b/packages/automation/src/types.ts index 7e01ed9..68288b0 100644 --- a/packages/automation/src/types.ts +++ b/packages/automation/src/types.ts @@ -4,6 +4,8 @@ export enum EthereumNetwork { MAINNET = 1, GOERLI = 5, OPTIMISM = 10, + BASE = 8453, + ARBITRUM = 42161, } export enum CommandContractType {