Skip to content

Commit

Permalink
fix: lints
Browse files Browse the repository at this point in the history
  • Loading branch information
just-a-node committed May 23, 2024
1 parent 6adfaaa commit cbca8ae
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 14 deletions.
6 changes: 3 additions & 3 deletions packages/agents/sdk/src/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -198,7 +198,7 @@ export const domainsToChainNames: Record<string, string> = {
"1935897199": "scroll",
"1936027759": "sepolia",
"1869640549": "optimism-sepolia",
"1633842021": "arbitrum-sepolia"
"1633842021": "arbitrum-sepolia",
};

// Need to add more domains here.
Expand All @@ -216,7 +216,7 @@ export const XERC20REGISTRY_DOMAIN_ADDRESS: Record<string, string> = {
"1935897199": "0x397aEEEDd44f40326f9eB583a1DFB8A7A673C40B", // scroll
"1936027759": "0x2a3fe9a49fb50536f1ed099192c2ae2404de7bb5", // sepolia
"1869640549": "0x18b5b08b10a2e351180f07e31f4fef94d14e28f6", // op-sepolia
"1633842021": "0x343d827d5109e8038bbb71e9ba4f3fd0d546b9ff" // arb-sepolia
"1633842021": "0x343d827d5109e8038bbb71e9ba4f3fd0d546b9ff", // arb-sepolia
};

// Need to add more domains here.
Expand All @@ -234,5 +234,5 @@ export const LOCKBOX_ADAPTER_DOMAIN_ADDRESS: Record<string, string> = {
"1935897199": "", // scroll (TODO)
"1936027759": "0xcF021fCFB9bd72E5aA7ab390cFA4fCfDF895c7Cf", // sepolia
"1869640549": "0x20b4789065DE09c71848b9A4FcAABB2c10006FA2", // op-sepolia
"1633842021": "0x0f4Fe4903d01E0deb067A7297453fBEFdC36D189" // arb-sepolia
"1633842021": "0x0f4Fe4903d01E0deb067A7297453fBEFdC36D189", // arb-sepolia
};
4 changes: 2 additions & 2 deletions packages/agents/sdk/src/sdkUtils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down
16 changes: 8 additions & 8 deletions packages/examples/sdk-server/examples/index.http
Original file line number Diff line number Diff line change
@@ -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

##############
Expand Down Expand Up @@ -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
}
Expand Down Expand Up @@ -779,7 +779,7 @@ Content-Type: application/json
{
"domainId": "1869640809",
"asset": "0x67E51f46e8e14D4E4cab9dF48c59ad8F512486DD",
"minLiquidity": "100000000000000000000000",
"minLiquidity": "100000000000",
"maxN": 4
}

Expand Down
2 changes: 1 addition & 1 deletion packages/examples/sdk-server/src/server.ts
Original file line number Diff line number Diff line change
@@ -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";
Expand Down

0 comments on commit cbca8ae

Please sign in to comment.