Skip to content

Commit

Permalink
fix : dl api base url
Browse files Browse the repository at this point in the history
  • Loading branch information
tHeMaskedMan981 committed Jun 12, 2024
1 parent 3063433 commit c29e5af
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions scripts/deploy/helpers/send-msg/allPathTest.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,15 +9,16 @@ import {
isTestnet,
isMainnet,
CORE_CONTRACTS,
DeploymentMode,
} from "../../../../src";
import { getAddresses, getRelayUrl, getRelayAPIKEY } from "../../utils";
import { BigNumber, Contract, ethers } from "ethers";
import Counter from "../../../../out/Counter.sol/Counter.json";
import Socket from "../../../../out/Socket.sol/Socket.json";

import { chains, mode, overrides } from "../../config";
import { getProviderFromChainSlug } from "../../../constants/networks";
import { formatEther } from "ethers/lib/utils";
import { chains, mode, overrides } from "../../config/config";

interface RequestObj {
to: string;
Expand All @@ -28,6 +29,10 @@ interface RequestObj {
gasLimit: string | number | undefined;
}

const API_BASE_URL =
mode == DeploymentMode.DEV
? "https://raf5spoep4.execute-api.us-east-1.amazonaws.com/dev/v1"
: "https://prod.dlapi.socket.tech";
const getSiblingSlugs = (chainSlug: ChainSlug): ChainSlug[] => {
console.log(chainSlug, isMainnet(chainSlug));
if (isTestnet(chainSlug))
Expand Down Expand Up @@ -208,7 +213,7 @@ export const sendMessagesToAllPaths = async (params: {
provider
);
console.log(
`Track message here: https://prod.dlapi.socket.tech/messages-from-tx?srcChainSlug=${chainSlug}&srcTxHash=${response?.hash}`
`Track message here: ${API_BASE_URL}/messages-from-tx?srcChainSlug=${chainSlug}&srcTxHash=${response?.hash}`
);
})
);
Expand Down

0 comments on commit c29e5af

Please sign in to comment.