From f13b2467a15f3d8f34775c697ad239ca94ff9dee Mon Sep 17 00:00:00 2001 From: Pierre Gee Date: Tue, 29 Aug 2023 10:56:14 +0800 Subject: [PATCH] chore(ops): update changi network to https (#160) * chore(ops): update changi network to https * fix prettier --- packages/walletkit-core/src/api/whale.ts | 2 +- packages/walletkit-core/src/api/whale.unit.ts | 4 ++-- packages/walletkit-ui/src/contexts/WhaleContext.test.tsx | 2 +- .../src/contexts/__snapshots__/WhaleContext.test.tsx.snap | 4 ++-- 4 files changed, 6 insertions(+), 6 deletions(-) diff --git a/packages/walletkit-core/src/api/whale.ts b/packages/walletkit-core/src/api/whale.ts index 4e81abb..cae0b5b 100644 --- a/packages/walletkit-core/src/api/whale.ts +++ b/packages/walletkit-core/src/api/whale.ts @@ -37,7 +37,7 @@ export function newOceanOptions( }; case EnvironmentNetwork.Changi: return { - url: url ?? "http://changi.ocean.jellyfishsdk.com", + url: url ?? "https://changi.ocean.jellyfishsdk.com", network: "changi", version: "v0", }; diff --git a/packages/walletkit-core/src/api/whale.unit.ts b/packages/walletkit-core/src/api/whale.unit.ts index 45a27a7..73e20fb 100644 --- a/packages/walletkit-core/src/api/whale.unit.ts +++ b/packages/walletkit-core/src/api/whale.unit.ts @@ -55,7 +55,7 @@ describe("whale", () => { it("should match ocean options for changi", () => { const oceanOptions = newOceanOptions(EnvironmentNetwork.Changi); expect(oceanOptions).toMatchObject({ - url: "http://changi.ocean.jellyfishsdk.com", + url: "https://changi.ocean.jellyfishsdk.com", network: "changi", version: "v0", }); @@ -104,7 +104,7 @@ describe("whale", () => { it("should match default ocean url for changi", () => { const defaultURL = getDefaultDefiChainURL(EnvironmentNetwork.Changi); - expect(defaultURL).toStrictEqual("http://changi.ocean.jellyfishsdk.com"); + expect(defaultURL).toStrictEqual("https://changi.ocean.jellyfishsdk.com"); }); }); diff --git a/packages/walletkit-ui/src/contexts/WhaleContext.test.tsx b/packages/walletkit-ui/src/contexts/WhaleContext.test.tsx index e776210..5277bf7 100644 --- a/packages/walletkit-ui/src/contexts/WhaleContext.test.tsx +++ b/packages/walletkit-ui/src/contexts/WhaleContext.test.tsx @@ -44,7 +44,7 @@ describe("Whale Context test", () => { name: EnvironmentNetwork.DevNet, }, { - url: "http://changi.ocean.jellyfishsdk.com", + url: "https://changi.ocean.jellyfishsdk.com", network: "changi", name: EnvironmentNetwork.Changi, }, diff --git a/packages/walletkit-ui/src/contexts/__snapshots__/WhaleContext.test.tsx.snap b/packages/walletkit-ui/src/contexts/__snapshots__/WhaleContext.test.tsx.snap index 14e362e..a3cd9a7 100644 --- a/packages/walletkit-ui/src/contexts/__snapshots__/WhaleContext.test.tsx.snap +++ b/packages/walletkit-ui/src/contexts/__snapshots__/WhaleContext.test.tsx.snap @@ -7,7 +7,7 @@ exports[`Whale Context test Whale Context test for Changi should match snapshot
- {"url":"http://changi.ocean.jellyfishsdk.com","timeout":60000,"version":"v0","network":"changi"} + {"url":"https://changi.ocean.jellyfishsdk.com","timeout":60000,"version":"v0","network":"changi"}
@@ -15,7 +15,7 @@ exports[`Whale Context test Whale Context test for Changi should match snapshot "container":
- {"url":"http://changi.ocean.jellyfishsdk.com","timeout":60000,"version":"v0","network":"changi"} + {"url":"https://changi.ocean.jellyfishsdk.com","timeout":60000,"version":"v0","network":"changi"}
,