From d92d2c125887b807446261c79e22ee84998f37ad Mon Sep 17 00:00:00 2001 From: zhoufanjin Date: Sat, 27 Jul 2024 19:24:28 +0800 Subject: [PATCH] chore: fix some comments Signed-off-by: zhoufanjin --- src/adapters/orbitbridge/index.ts | 2 +- src/adapters/portal/index.ts | 2 +- src/utils/types.ts | 2 +- src/utils/wrappa/postgres/write.ts | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/adapters/orbitbridge/index.ts b/src/adapters/orbitbridge/index.ts index cf2ab0aa..4e2567eb 100644 --- a/src/adapters/orbitbridge/index.ts +++ b/src/adapters/orbitbridge/index.ts @@ -13,7 +13,7 @@ Docs: https://bridge-docs.orbitchain.io/ Adapter is finished for chains with a vault: Ethereum, BSC, (also on Klaytn). Issue is that other chains have minter contracts, and there appears to be multiple (at least on Polygon). It's difficult to find them all, but can use explorer txs to find them: https://scope.klaytn.com/bridge -(stil not sure I have found them all, some chains do not have much activity). +(still not sure I have found them all, some chains do not have much activity). Seems like Klaytn has both vault and minters, not sure if this is also true for Ethereum or BSC. diff --git a/src/adapters/portal/index.ts b/src/adapters/portal/index.ts index bc939676..e31cf8b2 100644 --- a/src/adapters/portal/index.ts +++ b/src/adapters/portal/index.ts @@ -190,7 +190,7 @@ const portalNativeAndWrappedTransfersFromHashes = async (chain: Chain, hashes: s return aggregated; }; -// checks deposits for Solana as receipient chain, withdrawals for Solana as source chain and returns only those txs +// checks deposits for Solana as recipient chain, withdrawals for Solana as source chain and returns only those txs // the 'wormhole chain id' for Solana is 1 const processLogsForSolana = async (logs: EventData[], chain: Chain) => { const provider = getProvider(chain) as any; diff --git a/src/utils/types.ts b/src/utils/types.ts index 759fcb83..1f0a7c44 100644 --- a/src/utils/types.ts +++ b/src/utils/types.ts @@ -13,7 +13,7 @@ export type EventData = { chainOverride?: string; // used to insert tx using bridgeID from same bridgeNetwork but a different chain isUSDVolume?: boolean; // used to insert tx without specifying any token, only a USD value txsCountedAs?: number; // used to insert tx and have it count as multiple txs (only affects transaction counts in hourly/daily aggregated entries) - timestamp?: number; // timetamp of the block if provided + timestamp?: number; // timestamp of the block if provided }; export type EventKeyMapping = { diff --git a/src/utils/wrappa/postgres/write.ts b/src/utils/wrappa/postgres/write.ts index 17389961..9823f97e 100644 --- a/src/utils/wrappa/postgres/write.ts +++ b/src/utils/wrappa/postgres/write.ts @@ -35,7 +35,7 @@ export const insertTransactionRow = async ( }, onConflict: "ignore" | "error" | "upsert" = "error" ) => { - // FIX should use dynamicly built strings here, I just didn't finish it + // FIX should use dynamically built strings here, I just didn't finish it let sqlCommand = sql` insert into bridges.transactions ${sql(params)} `;