Skip to content

Commit

Permalink
feat: add new chains
Browse files Browse the repository at this point in the history
  • Loading branch information
tv3636 committed Aug 9, 2023
1 parent 083e82b commit bb23618
Show file tree
Hide file tree
Showing 5 changed files with 60 additions and 0 deletions.
12 changes: 12 additions & 0 deletions .github/workflows/continuous-delivery.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -133,3 +133,15 @@ jobs:
./prod/platform/relayer-zora.yaml \
${{ github.sha }} \
relayer-zora
./utils/version_update.sh \
./prod/platform/relayer-sepolia.yaml \
${{ github.sha }} \
relayer-sepolia
./utils/version_update.sh \
./prod/platform/relayer-base-goerli.yaml \
${{ github.sha }} \
relayer-base-goerli
./utils/version_update.sh \
./prod/platform/relayer-zora-testnet.yaml \
${{ github.sha }} \
relayer-zora-testnet
12 changes: 12 additions & 0 deletions src/common/logger.ts
Original file line number Diff line number Diff line change
Expand Up @@ -63,10 +63,22 @@ const log = (level: "debug" | "error" | "info" | "warn") => {
case 8453:
network = "base";
break;

case 84531:
network = "base-goerli";
break;

case 7777777:
network = "zora";
break;

case 999:
network = "zora-testnet";
break;

case 11155111:
network = "sepolia";
break;
}

const service = `relayer-${network}`;
Expand Down
12 changes: 12 additions & 0 deletions src/common/tracer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -45,9 +45,21 @@ if (process.env.DATADOG_AGENT_URL) {
network = "base";
break;

case 84531:
network = "base-goerli";
break;

case 7777777:
network = "zora";
break;

case 999:
network = "zora-testnet";
break;

case 11155111:
network = "sepolia";
break;
}

const service = `relayer-${network}`;
Expand Down
12 changes: 12 additions & 0 deletions src/jobs/sync-token/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -98,9 +98,21 @@ if (config.doBackgroundWork) {
network = "base";
break;

case 84531:
network = "base-goerli";
break;

case 7777777:
network = "zora";
break;

case 999:
network = "zora-testnet";
break;

case 11155111:
network = "sepolia";
break;
}

// Fetch recent listings
Expand Down
12 changes: 12 additions & 0 deletions src/utils/seaport.ts
Original file line number Diff line number Diff line change
Expand Up @@ -89,10 +89,22 @@ export class Seaport {
network = "base";
break;

case 84531:
network = "base-goerli";
break;

case 7777777:
network = "zora";
break;

case 999:
network = "zora-testnet";
break;

case 11155111:
network = "sepolia";
break;

default:
throw new Error("Unsupported chain");
}
Expand Down

0 comments on commit bb23618

Please sign in to comment.