@@ -4,7 +4,7 @@ import { GraphQL } from "$lib/graphql/service"
44import * as AppRuntime from "$lib/runtime"
55import { themes } from "$lib/themes"
66import type { Edition , Theme } from "$lib/themes"
7- import { Match , Option , pipe , Record as R , String as Str } from "effect"
7+ import { Effect , Match , Option , pipe , Record as R , String as Str } from "effect"
88
99const projectIds : Record < Edition , string > = {
1010 app : "f544d5ee6eb61962408fd456c114e9ed" ,
@@ -79,15 +79,21 @@ class UiStore {
7979 }
8080
8181 get graphqlEndpoint ( ) : string {
82- return AppRuntime . runSync ( GraphQL . getEndpoint )
82+ return AppRuntime . runSync ( GraphQL . pipe (
83+ Effect . andThen ( ( client ) => client . getEndpoint ) ,
84+ ) )
8385 }
8486
8587 set graphqlEndpoint ( s : string ) {
86- AppRuntime . runPromise ( GraphQL . updateEndpoint ( s ) )
88+ AppRuntime . runPromise ( GraphQL . pipe (
89+ Effect . andThen ( ( client ) => client . updateEndpoint ( s ) ) ,
90+ ) )
8791 }
8892
8993 clearGqlCache ( ) {
90- AppRuntime . runSync ( GraphQL . resetCache )
94+ AppRuntime . runSync ( GraphQL . pipe (
95+ Effect . andThen ( ( client ) => client . resetCache ) ,
96+ ) )
9197 }
9298
9399 openWalletModal ( ) {
0 commit comments