From cbca8ae6b61ea37e2f8d337fc088fc5a091cac57 Mon Sep 17 00:00:00 2001 From: just-a-node Date: Thu, 23 May 2024 17:55:02 -0600 Subject: [PATCH] fix: lints --- packages/agents/sdk/src/config.ts | 6 +++--- packages/agents/sdk/src/sdkUtils.ts | 4 ++-- packages/examples/sdk-server/examples/index.http | 16 ++++++++-------- packages/examples/sdk-server/src/server.ts | 2 +- 4 files changed, 14 insertions(+), 14 deletions(-) diff --git a/packages/agents/sdk/src/config.ts b/packages/agents/sdk/src/config.ts index 0dc9c8a7cf..bad54f7865 100644 --- a/packages/agents/sdk/src/config.ts +++ b/packages/agents/sdk/src/config.ts @@ -198,7 +198,7 @@ export const domainsToChainNames: Record = { "1935897199": "scroll", "1936027759": "sepolia", "1869640549": "optimism-sepolia", - "1633842021": "arbitrum-sepolia" + "1633842021": "arbitrum-sepolia", }; // Need to add more domains here. @@ -216,7 +216,7 @@ export const XERC20REGISTRY_DOMAIN_ADDRESS: Record = { "1935897199": "0x397aEEEDd44f40326f9eB583a1DFB8A7A673C40B", // scroll "1936027759": "0x2a3fe9a49fb50536f1ed099192c2ae2404de7bb5", // sepolia "1869640549": "0x18b5b08b10a2e351180f07e31f4fef94d14e28f6", // op-sepolia - "1633842021": "0x343d827d5109e8038bbb71e9ba4f3fd0d546b9ff" // arb-sepolia + "1633842021": "0x343d827d5109e8038bbb71e9ba4f3fd0d546b9ff", // arb-sepolia }; // Need to add more domains here. @@ -234,5 +234,5 @@ export const LOCKBOX_ADAPTER_DOMAIN_ADDRESS: Record = { "1935897199": "", // scroll (TODO) "1936027759": "0xcF021fCFB9bd72E5aA7ab390cFA4fCfDF895c7Cf", // sepolia "1869640549": "0x20b4789065DE09c71848b9A4FcAABB2c10006FA2", // op-sepolia - "1633842021": "0x0f4Fe4903d01E0deb067A7297453fBEFdC36D189" // arb-sepolia + "1633842021": "0x0f4Fe4903d01E0deb067A7297453fBEFdC36D189", // arb-sepolia }; diff --git a/packages/agents/sdk/src/sdkUtils.ts b/packages/agents/sdk/src/sdkUtils.ts index a714d6d790..dd13b8fcac 100644 --- a/packages/agents/sdk/src/sdkUtils.ts +++ b/packages/agents/sdk/src/sdkUtils.ts @@ -361,11 +361,11 @@ export class SdkUtils extends SdkShared { domain: domainId, localAsset: _asset, order: { orderBy: "balance", ascOrDesc: "desc" }, - limit: _maxN + limit: _maxN, }); let totalLiquidity = BigNumber.from(0); - for (let routerBalance of routersByLargestBalance) { + for (const routerBalance of routersByLargestBalance) { const balanceBN = BigNumber.from(this.scientificToBigInt(routerBalance.balance.toString())); totalLiquidity = totalLiquidity.add(balanceBN); } diff --git a/packages/examples/sdk-server/examples/index.http b/packages/examples/sdk-server/examples/index.http index 4fece5dc4b..5bee43b586 100644 --- a/packages/examples/sdk-server/examples/index.http +++ b/packages/examples/sdk-server/examples/index.http @@ -1,9 +1,9 @@ - -# @baseUrl = http://127.0.0.1:8080 + # +@baseUrl = http://127.0.0.1:8080 # @baseUrl = https://sdk-server.testnet.staging.connext.ninja # @baseUrl = https://sdk-server.testnet.connext.ninja -@baseUrl = https://sdk-server.mainnet.connext.ninja +# @baseUrl = https://sdk-server.mainnet.connext.ninja @yourAddress = 0x6d2A06543D23Cc6523AE5046adD8bb60817E0a94 ############## @@ -221,10 +221,10 @@ POST {{baseUrl}}/calculateAmountReceived Content-Type: application/json { - "originDomain": "9991", - "destinationDomain": "1735356532", - "originTokenAddress": "0xeDb95D8037f769B72AAab41deeC92903A98C9E16", - "amount": "100000", + "originDomain": "6648936", + "destinationDomain": "1869640809", + "originTokenAddress": "0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48", + "amount": "100000000000", "receiveLocal": false, "checkFastLiquidity": true } @@ -779,7 +779,7 @@ Content-Type: application/json { "domainId": "1869640809", "asset": "0x67E51f46e8e14D4E4cab9dF48c59ad8F512486DD", - "minLiquidity": "100000000000000000000000", + "minLiquidity": "100000000000", "maxN": 4 } diff --git a/packages/examples/sdk-server/src/server.ts b/packages/examples/sdk-server/src/server.ts index 65d4e1b4ec..f8bf5e0c1c 100644 --- a/packages/examples/sdk-server/src/server.ts +++ b/packages/examples/sdk-server/src/server.ts @@ -1,4 +1,4 @@ -import fastify, { FastifyInstance, FastifyRequest, FastifyReply } from "fastify"; +import fastify, { FastifyInstance } from "fastify"; import { createLoggingContext, Logger, getBestProvider, jsonifyError } from "@connext/nxtp-utils"; import { fastifyRedis } from "@fastify/redis"; import cors from "@fastify/cors";