Skip to content

Commit

Permalink
feat: Shift constants to decoder
Browse files Browse the repository at this point in the history
  • Loading branch information
karanpargal committed May 16, 2024
1 parent a771c04 commit 44b5616
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 12 deletions.
13 changes: 12 additions & 1 deletion services/decoder/protocols/connext/connext.decoders.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,21 @@ import {
import { decodeEventLog, type Abi } from "viem";
import ROUTER_ABI from "./abis/connext-router.abi.json";
import CALLER_ABI from "./abis/connext-call.abi.json";
import { DOMAIN_ID_TO_CHAIN_ID } from "./constants/domain-mapping";
import { timestampParser } from "../../../../utils/functions";
import { prettifyCurrency } from "@covalenthq/client-sdk";

const DOMAIN_ID_TO_CHAIN_ID: { [domain_id: number]: string } = {
6648936: "Ethereum Mainnet",
1886350457: "Polygon",
1869640809: "Optimism",
1634886255: "Arbitrum One",
6778479: "Gnosis Chain",
6450786: "BNB Chain",
1818848877: "Linea",
1835365481: "Metis",
1650553709: "Base",
};

GoldRushDecoder.on(
"connext:RouterLiquidityAdded",
["eth-mainnet"],
Expand Down
11 changes: 0 additions & 11 deletions services/decoder/protocols/connext/constants/domain-mapping.ts

This file was deleted.

0 comments on commit 44b5616

Please sign in to comment.