Skip to content

Commit

Permalink
chore: add l2 support (#106)
Browse files Browse the repository at this point in the history
  • Loading branch information
halaprix authored Jan 25, 2024
1 parent 893d833 commit 871a5da
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 1 deletion.
2 changes: 1 addition & 1 deletion packages/automation/package.json
Original file line number Diff line number Diff line change
@@ -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",
Expand Down
9 changes: 9 additions & 0 deletions packages/automation/src/mapping.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down
2 changes: 2 additions & 0 deletions packages/automation/src/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@ export enum EthereumNetwork {
MAINNET = 1,
GOERLI = 5,
OPTIMISM = 10,
BASE = 8453,
ARBITRUM = 42161,
}

export enum CommandContractType {
Expand Down

0 comments on commit 871a5da

Please sign in to comment.