Skip to content

Commit

Permalink
Add dydx.
Browse files Browse the repository at this point in the history
  • Loading branch information
jnaviask committed Aug 2, 2021
1 parent e5691d0 commit 9d10e53
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@commonwealth/chain-events",
"version": "0.7.0",
"version": "0.7.1",
"description": "Listen to various chains for events.",
"license": "GPL-3.0",
"files": [
Expand Down
4 changes: 4 additions & 0 deletions scripts/listener.ts
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,8 @@ const networkUrls = {

aave: 'wss://mainnet.infura.io/ws',
'aave-local': 'ws://127.0.0.1:9545',
'dydx-ropsten': 'wss://ropsten.infura.io/ws',
'dydx': 'wss://mainnet.infura.io/ws',

erc20: 'wss://mainnet.infura.io/ws',
} as const;
Expand All @@ -64,6 +66,8 @@ const contracts = {
marlin: '0x777992c2E4EDF704e49680468a9299C6679e37F6',
aave: '0xEC568fffba86c094cf06b22134B23074DFE2252c',
'aave-local': '0xcf7ed3acca5a467e9e704c703e8d87f634fb0fc9',
'dydx-ropsten': '0x6938240Ba19cB8a614444156244b658f650c8D5c',
dydx: '0x7E9B1672616FF6D6629Ef2879419aaE79A9018D2',
};

const { argv } = yargs
Expand Down
2 changes: 1 addition & 1 deletion src/aave/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ interface IAaveContracts {

export type Api = IAaveContracts;

export const EventChains = ['aave', 'aave-local'] as const;
export const EventChains = ['aave', 'aave-local', 'dydx-ropsten', 'dydx'] as const;

// eslint-disable-next-line @typescript-eslint/no-explicit-any
export type RawEvent = TypedEvent<any>;
Expand Down

0 comments on commit 9d10e53

Please sign in to comment.